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C1C,cACA,kBACA,YACA,YACA,YACA,eACA,gBACA,aACA,YACA,YACA,kBACA,cACA,gBAGD85H,EACX,CACA,SAASE,GAAgB7+R,EAAK8+R,GAC1B,UAAWnlZ,KAAQmlZ,EACfH,GAAiBhlZ,EAAK4f,eAAiBymG,CAC/C,CAUA,MAAM++R,GAAkC,IAAItiY,IAAI,CAC5C,UACA,QACA,kBACA,iBACA,MACA,kBAMJ,SAASuiY,GAA8B39F,GAGnC,OAAO09F,GAAgCniY,IAAIykS,EAAS9nS,cACxD,CAEA,MAAM0lY,IAGN,MA0DMC,GAAS,CACX,w6BAGA,wvCACA,+6CACA,gPACA,0kCACA,uBACA,2CACA,uBACA,wCACA,uBACA,kCACA,yCACA,4LACA,uKACA,eACA,yBACA,iCACA,wSACA,8GACA,sCACA,+BACA,4BACA,2BACA,0BACA,8BACA,yCACA,6BACA,0BACA,uDACA,wCACA,qCACA,uGACA,iGACA,6QACA,mDACA,sBACA,wCACA,6BACA,kMACA,qKACA,8ZACA,+BACA,8BACA,6BACA,+JACA,yBACA,4HACA,8BACA,yDACA,2DACA,sCACA,kDACA,uIACA,yCACA,6EACA,wDACA,wBACA,gDACA,yBACA,2BACA,qCACA,mCACA,0HACA,0GACA,0BACA,kEACA,sBACA,2CACA,8BACA,mHACA,+DACA,oHACA,iDACA,wDACA,0BACA,wMACA,8BACA,2BACA,sDACA,iCACA,yBACA,wHACA,wBACA,+BACA,qCACA,wCACA,6BACA,+BACA,2BACA,mBACA,sBACA,8BACA,sBACA,4BACA,kCACA,0BACA,+BACA,gCACA,gCACA,6BACA,2BACA,sBACA,+CACA,+CACA,+CACA,+CACA,6BACA,sBACA,sBACA,0BACA,2BACA,uBACA,2BACA,iCACA,0BACA,qBACA,2BACA,qBACA,oCACA,wBACA,oCACA,2BACA,qCACA,oBACA,qBACA,mBACA,uBACA,2BACA,sBACA,8BACA,+BACA,qCACA,2BACA,mDACA,yBACA,2BACA,mBACA,8CACA,6BACA,qBACA,mCACA,kCACA,k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AA9sD,EAAA8sD,EACA,CACA/L,EAAAsnJ,KAAAnoM,EAAA0sD,GAAAp6B,QAAAtM,QAAA0mC,GAAA3sD,KAAA2xE,EAAA/B,EACA,CACA,SAAAt8F,EAAAu5E,GACA,kBACA,IAAA5sD,EAAAlvB,KACAgvB,EAAAuP,UACA,WAAAijB,QAAA,SAAAo/C,EAAA/B,GACA,IAAAp5C,EAAAq2B,EAAAx9C,MAAApP,EAAAF,GACA,SAAAqkgB,EAAAv3c,GACAmtwB,EAAAxjyB,EAAAm7C,EAAA/B,EAAAw0b,EAAA61T,EAAA,OAAAptwB,EACA,CACA,SAAAotwB,EAAAptwB,GACAmtwB,EAAAxjyB,EAAAm7C,EAAA/B,EAAAw0b,EAAA61T,EAAA,QAAAptwB,EACA,CACAu3c,OAAA,EACA,EACA,CACA","names":["appendSearchParamToAnyString","urlLike","key","value","split","searchParams","URLSearchParams","set","toString","ProgrammaticBrowserRouter","children","window","basename","forceNewHistory","routerService","useResolve","RouterService","history","useConstant","createBrowserHistory","state","setState","useState","location","useLayoutEffect","listen","_jsx","Router","navigator","ResultInstance","constructor","ok","err","this","Ok","Err","internalHistory","v5_to_v6_patching_basename","Error","options","createMemoryHistory","navigateByUrl","to","go","path","resolvePath","pathname","replace","push","back","fallback","length","__decorate","Injectable","scope","Scopes","Singleton","ApiBase","static","API_VERSION","baseUri","endpoint","filter","Boolean","join","ApiBaseClient","AppointmentApiService","httpService","get","ticket","option","_this","_asyncToGenerator","getUpcomingAndUnfinished","_this2","getFileIdentifier","name","type","sendData","Name","Length","Type","resolveMimeType","post","cancel","_this3","delete","decline","bookingId","_this4","uploadChatFile","uploadURL","data","callStatus","survey","unitId","surveyAnswers","downloadChatFile","downloadURL","deleteFile","deleteURL","fileName","tslib__WEBPACK_IMPORTED_MODULE_2__","Sn","HttpService","AuthApiService","super","getMethods","licenceHolderId","getAuthMethods","countryCode","callTicket","parameterHandler","ParameterHandler","append","device","usage","getString","sendSMSCode","number","sendSMSCodeWithCallticket","resendSmsCode","authAttemptId","attemptId","getPreRegisteredNumber","receptionId","_this5","callticket","confirmSmsCode","code","sessionLifetime","_this6","beginNoAuth","_this7","confirmNoAuthIdentity","commonName","_this8","authAttempt","encodeURIComponent","Transient","tslib__WEBPACK_IMPORTED_MODULE_4__","BasketApiService","getActive","deleteActive","deleteProduct","basketId","productId","getBasket","postMessagingConversation","postReason","basketProductId","reason","Reason","postFiles","files","getFormAnswers","formId","postFormAnswers","commit","put","getCommitStatus","commitJobId","tslib__WEBPACK_IMPORTED_MODULE_3__","CasesApiService","getPrioritized","deleteNewIncoming","from","format","DynamicFormsApiService","getAllForms","conditionId","opportunity","getById","id","getRespondant","respondantId","answer","answers","map","BoolValue","boolValue","IntValue","intValue","Choices","choices","QuestionId","questionId","StringValue","stringValue","setCompletion","GeneralApiService","alias","getAppointmentAccessInfo","getCalendarInfo","getFeatureToggles","urlAlias","url","createUrl","setlanguage","languageCode","LanguageCode","getPatientBase","getPolicyDocuments","getTranslationSets","translationsSets","touchSession","FormOpportunity","BeforeBooking","AfterBooking","BeforeCase","States","Unpaid","Paid","Expired","IdentityApiService","isAlive","canDeleteAccount","deleteAccount","signOut","update","body","getSignOutPath","returnUrl","params","OfficeApiService","hostingService","getIdentity","langcode","setCompleted","SurveyAnswerValueType","HostingService","Int4SatisfactionScore","Text500","RedRobinApiService","universalConfig","getRepresentativeNin","sessionId","getSessionUrl","currentUnitId","getLanguageCode","selectedLanguageCode","peek","RED_ROBIN_SUPPORTED_LANGUAGES","includes","UniversalConfig","UnitsApiService","getTree","getUnitConfig","httpOptions","getTexts","keys","aliases","getLicenseHolderAboutData","getUnitComponents","getLicenseHolderData","getConditions","getPhysicalLocations","Analytic","MatomoTracker","_MatomoTracker","siteId","flags","storedTrackings","connectedPiwikInstance","wasKilled","create","spec","rest","Object","freeze","kill","attachPiwikInstance","piwikInstance","storedTracking","shift","dispatchAction","setCustomVariable","index","category","interceptAction","setCustomDimension","trackEvent","action","track","trackPageView","customTitle","documentTitle","href","document","title","args","Analytic2","trackersToBeCreated","scriptElement","attachTrackers","urlBase","matomoInstance","piwikTracker","Piwik","getTracker","useDisableCookies","disableCookies","useSetAPIUrl","setAPIUrl","useEnableCrossDomainLinking","enableCrossDomainLinking","useSetCookiePath","setCookiePath","useSetCookieDomain","setCookieDomain","useSetDomains","setDomains","useSetUserId","setUserId","useEnableLinkTracking","enableLinkTracking","forEach","fn","createTracker","initialize","loadScript","removeScript","remove","piwikAsyncInit","Matomo","piwik_log","AnalyticsTracker","matomoAsyncInit","matomoPluginAsyncInit","normalizedUrlBase","createElement","async","defer","src","head","insertBefore","console","log","AnalyticCategories","AnalyticActions","Unset","Window","TopNavigation","StartView","AttentionCards","SearchReception","PatientCall","CallChat","CallBar","CallErrors","DeviceSettings","CallScene","CallLobby","ReceptionHome","BrowseReceptionView","DeviceGateway","Visits","VisitsAppointment","VisitsChat","PaymentFlow","DynamicForm","Footer","SignIn","NavigationMenu","Guest","CreateNewMessage","TopBar","MyAccount","Booking","CookieConsent","UnhandledError","Clicked","ChangedLanguage","AnalyticService","consentService","tracker","logger","Logger","config","setup","globalCustomerId","analyticConfig","enabled","meta","logDebug","logError","logVerbose","mayUseCookie","hasConsent","UserConsent","hostname","undefined","safeJsonParse","changeTrackedUnitId","tslib_es6","ConsentService","Context","createContext","AnalyticProvider","Provider","useAnalyticContext","useContext","analyticService","service","AnalyticLink","analyticCtx","Link","onClick","handleClick","applicationLocalStorage","storage","devApplicationLocalStorage","applicationSessionStorage","AuthService","EventEmitter","#logger","#authMethods","getUser","user","identityApiService","authApiService","signal","isSignedIn","loadIdentity","logInformation","result","createUserObj","emit","terminateIdentity","removeItem","provideAuthenticationMethods","getAuthMethodsResult","selectedUnitId","selectedCountryCode","d","MethodId","response","firstName","FirstName","LastName","I18nAndL10n","translate","getUserCommonName","Id","LicenceHolderId","userType","UserType","lastName","email","Email","nationality","Nationality","phone","Phone","nationalIdentityNumber","NationalIdentityNumber","phoneRequirement","PhoneRequirement","emailRequirement","EmailRequirement","nationalIdentityNumberRequirement","NationalIdentityNumberRequirement","tslib__WEBPACK_IMPORTED_MODULE_9__","useUser","authService","useMisbehavedForceUpdate","cb","_","disposers","on","INTERVAL","createCounterState","startTime","prevMin","getElapsedTime","expected","Date","now","time","ms","diff","DateService","newDate","Math","ceil","tick","drift","minute","absoluteMs","timer","flush","presentation","write","hasElapse","wait","max","Timer","Presentation","hasBeenTriggeredExternally","useCounterState","countDowner","usePresentation","FeatureFlagService","FeatureFlagService_1","checkFlag","flag","globalThis","__visiba_feature_flags__","FeatureFlagStoreNotSet","retrievedFlag","setFlag","generalApiService","load","overrideFlags","_NOOP_EXAMPLE_DO_NOT_USE","toggle","setPrototypeOf","prototype","isDev_DONT_USE_IT_ONLY_EXIST_TO_MAKE_ANGULAR_WORK","process","VITE_HOSTING_API_URL","env","CUSTOM_GLOBAL_ENV","API_URL","VITE_HOSTING_REALTIME_HOST","REALTIME_HOST","VITE_HOSTING_REALTIME_PORT","REALTIME_PORT","VITE_BASE_RULE","api","uri","realtime","host","port","serverBaseUrl","cdn","customer","media","getAnalyticConfig","origin","assetPath","mediaCdn","customerCdn","apiBaseUri","wsBaseUri","tslib__WEBPACK_IMPORTED_MODULE_0__","RESTMethods","parseCookies","cookieStr","trim","Map","cookie","parts","decodeURIComponent","HEAD","GET","POST","PUT","PATCH","OPTIONS","DELETE","HttpService_1","send","method","requestPath","promise","URL","Request","fetch","JSON","stringify","headers","getHeaders","opts","parseAs","json","isVisibaEnvelope","Data","text","blob","arrayBuffer","webVersion","httpResponseBody","status","HttpError","error","HttpStatusCode","BadRequest_400","addApiBase","VisibaHttpOption","patch","isAbsolute","indexOf","defaultRequestConfig","Pragma","jwt","assign","beWebVersion","Continue_100","SwitchingProtocols_101","Processing_102","Ok_200","Created_201","Accepted_202","NonAuthoritativeInformation_203","NoContent_204","ResetContent_205","PartialContent_206","MultiStatus_207","AlreadyReported_208","ImUsed_226","MultipleChoices_300","MovedPermanently_301","Found_302","SeeOther_303","NotModified_304","UseProxy_305","SwitchProxy_306","TemporaryRedirect_307","PermanentRedirect_308","Unauthorized_401","PaymentRequired_402","Forbidden_403","NotFound_404","MethodNotAllowed_405","NotAcceptable_406","ProxyAuthenticationRequired_407","RequestTimeout_408","Conflict_409","Gone_410","LengthRequired_411","PreconditionFailed_412","PayloadTooLarge_413","UriTooLong_414","UnsupportedMediaType_415","RangeNotSatisfiable_416","ExpectationFailed_417","IAmATeapot_418","MisdirectedRequest_421","UnprocessableEntity_422","Locked_423","FailedDependency_424","UpgradeRequired_426","PreconditionRequired_428","TooManyRequests_429","RequestHeaderFieldsTooLarge_431","UnavailableForLegalReasons_451","InternalServerError_500","NotImplemented_501","BadGateway_502","ServiceUnavailable_503","GatewayTimeout_504","HttpVersionNotSupported_505","VariantAlsoNegotiates_506","InsufficientStorage_507","LoopDetected_508","NotExtended_510","NetworkAuthenticationRequired_511","message","statusCode","isHttpError","NOT_YET_ADDED_TRANSLATIONS","selectedLocale","translations","setLangCode","langCode","documentElement","lang","convertExternalLocaleToAvailableLocale","external","externalLowercase","toLocaleLowerCase","updateLangCode","getSelectedLangCode","insertTranslations","newTranslationSet","override","overrideData","derived","translationSet","replaceArguments","ignoreWarning","translation","styled","span","withTranslation","translationKey","PlatformService","PlatformService_1","runtimeIsInBrowser","runtimeSupportsTouch","maxTouchPoints","cachedUserAgentData","userAgentData","parseAgentData","browserIs","test","statements","agent","BrowserList","Edge","browsers","edge","SamsungBrowser","samsungBrowser","Opera","opera","Firefox","firefox","Chrome","chrome","Safari","safari","StrictSafari","strictSafari","IE","ie","EdgeChromium","edgeChromium","EdgeAndroid","edgeAndroid","EdgeIos","edgeIos","FirefoxIos","firefoxIos","ChromeIos","chromeIos","platformIs","PlatformList","Ios","platform","ios","Android","android","Mobile","mobile","Desktop","desktop","edgeHTML","userAgent","operaIos","None","OperaIos","getAbsoluteRoute","route","startsWith","DateDisplayFormats","dayjs","isBetween","weekDay","localizedFormat","localeData","weekOfYear","duration","customParseFormat","DEFAULT","FULL_DISPLAY_IN_CURRENT_YEAR_NO_WEEKDAY","FULL_DISPLAY_NO_CURRENT_YEAR_AND_WEEKDAY","FULL_DISPLAY_NO_CURRENT_YEAR_WEEKDAY_TIME","FULL_DISPLAY_NO_TIME_WEEKDAY","FULL_DISPLAY_NO_TIME","JUST_TIME","DateService_1","date","parseStringToUtc","isValidDate","isValid","getLocaleSpecificDateFormatTemplate","template","longDateFormat","part","match","locale","dateStr","toLowerCase","isYesterday","isSame","subtract","isToday","isTomorrow","add","isThisWeek","isThisYear","loadLocale","__webpack_require__","e","then","t","bind","convertExternalLocaleToLocal","EntranceTypeEnum","Regular","UnitConfigurationError","UnitNotFoundError","UnitsNotLoadedError","UnitNotListedError","RouteNotAccessible","UnitService","units","unitTree","rootUnit","internalRootUnitId","getUnitNodeInTree","unitsApiService","events","backTraceReception","rootId","backTracedMap","traverseReceptionModel","backTraceUnitIdFromRoute","backTraced","unit","getUnitNodeInTreeByReceptionId","Array","values","find","normalizePathnameToBackTraceableRoute","trimmedPathname","trimmedLeadingAndTrailingSlashes","str","substring","chunks","allRoutes","knownUrlAliases","Set","strBuilder","chunk","has","completedRoute","model","extractedMapRef","findListedChild","start","childStack","child","pop","IsListedToClients","Children","getRouteWithoutLicenceholder","splice","traverseNode","node","nodeBuilder","ReceptionId","isEntrance","IsClientEntrance","isListed","subtitle","Subtitle","parent","UrlAlias","routeWithoutLicenceholder","hasChildren","hasListableChildren","parentNode","ParentId","routeList","buildAliasUntilReachingTheTopNode","unshift","childNode","NotImplementedError","featureName","todo","captureStackTrace","recentlyVisitedReceptionId","loadedCriticalData","logo","theme","EmailLogoUrl","rootUnitId","availableLanguages","requireClientEmail","requireClientPhone","hideProvidedByVisibaCare","daysToDepersonalizeClientAfterRequest","legal","appConfig","insertCriticalData","criticalData","logWarning","CriticalData","initialCountryCode","LiveAnnouncerController","queueIsRunning","clearMessageTimeout","announceMessageQueue","lastElement","politeContainer","assertiveContainer","announce","assertiveness","announceMessage","v4","abortController","AbortController","render","abort","removeMessageIfExisting","getContainer","currentMessage","aborted","container","wrapper","innerHTML","htmlString","__html","DOMPurify","setAttribute","appendChild","delay","element","style","border","clip","clipPath","height","margin","overflow","padding","position","width","wordWrap","query","querySelector","useTitle","liveAnnouncerController","useService","prevTitle","removeMessage","validateNin","NiN","validate","validateRequired","elements","HeadlessButton","tokens","borderRadius","medium","color","muted","elevation","skim","content","default","bg","surface","size","x8","lifted","primitiveColorTokens","neutral","focus","iconContainer","surfaceBrand","mutedBrand","spacing","x1_5","x7","contentContainer","x2","arrowContainer","ActionCard","Root","ActionCardRoot","disabled","isStatic","icon","iconAlign","hideArrow","arrowAlign","variant","_jsxs","as","Icon","Content","ActionCardContent","Title","ActionCardTitle","Text","Meta","ActionCardMeta","div","regular","x1","Article","normalizedText","String","section","DelayedRender","shouldRender","setShouldRender","useEffect","Fragment","Async","fallbackDelay","derive","catch","$catch","flowState","_Fragment","ButtonArrange","justify","Flex","gap","breakpointSmallAndUp","direction","dateService","revision","parseRevision","consent","hasRevision","setDefault","consents","giveConsent","Essential","revokeConsent","getConsent","acceptConsent","version","timestamp","toISOString","tslib__WEBPACK_IMPORTED_MODULE_5__","Functional","ConsentDialog","props","DialogModal","trigger","ConsentContent","_handleSubmit","analytics","functional","apply","arguments","Form","onSubmit","handleSubmit","_x","defaultValues","essential","h2","TextLink","target","iconPosition","x0_5","p","Accordion","Item","header","InputSwitch","stopPropagation","Spacer","vertical","x4","Close","asChild","handleDeny","Button","handleAccept","SubmitButton","ConsentTrigger","StyledDataList","dl","Label","dt","label","semiBold","Value","dd","DataList","forwardRef","DataListRoot","align","DataListItem","hideLabel","dataListTitle","VisuallyHidden","IframeSheet","showIframe","setShowIframe","Sheet","onOpen","handleOpen","onClose","handleClose","HackyIframe","grow","Spinner","StyledIframe","iframe","allowFullScreen","illustrationMap","loadedIllustrationSet","Illustration","HeadlessIcon","viewBox","dangerouslySetInnerHTML","dangerouslyInjectHTML","illustration","IllustrativeView","description","callToAction","callToActionCallback","x2_5","titleSize","StyledLink","Logo","AspectRatio","ratio","Img","alt","objectFit","animation","keyframes","StyledShimmer","$widthInternal","$heightInternal","$opacityInternal","$cornerRadius","Shimmer","className","opacity","cornerRadius","ApplicationNotification","sid","guid","LocalPushNotification","event","EventType","Add","Remove","NotificationService","eventEmitter","storedNotifications","count","notificationType","notification","some","storedNotification","convertTypeToEvent","notifications","isAdded","eventType","upperCase","charAt","toUpperCase","slice","tslib__WEBPACK_IMPORTED_MODULE_1__","StyledNavRoot","nav","breakpointQuery","large","StyledButton","motion","li","xSmallRegular","interactive","brand","x6","NavItem","countedIssues","useLocation","isHovering","onBrand","BadgeNumber","AnimatePresence","mode","initial","transition","stiffness","damping","scale","animate","exit","Nav","ItemHome","NavItemHome","ItemBrowse","NavItemBrowse","unitService","ItemVisits","NavItemVisits","useCountedIssues","ItemUser","NavItemUser","StyledToolBar","primary","small","StyledNavigationBar","StyledInner","_NavigationBar","NavigationBar","__","ref","useRef","scrollY","useScroll","useMotionValueEvent","latest","current","setProperty","clamp","min","IconButton","OutletPage","minHeight","Outlet","StyledContainer","x3","main","DEFAULT_LAYOUT_VARIANT","StyledHeader","StyledNav","StyledMain","footer","x5","FloatersController","innerWidth","innerHeight","pos","computed","safeArea","FloatersController_1","ASPECT","whenMount","addEventListener","windowHeight","windowWidth","footerHeight","normalizeHeight","maxHeightConst","newHeight","newWidth","y","x","ScreenContext","useScreenContext","screenContext","noFocus","AutoFocusComp","AutoFocus","h1","StepBack","isMobile","useBreakpoint","BreakPoints","Small","shrink","GoBackTitle","StyledTopBarSize","StyledAbortSection","TopBarController","stack","whenDemount","addItem","goBack","onAbort","goBackIntercept","skipAbortDialog","list","prevItem","newTile","item","Event","cancelable","TopBarRoot","NewContainer","TopBarOutlet","controller","useResolveController","basis","handleGoBackClick","defaultPrevented","horizontal","textAlign","DialogAlert","abortText","successText","onSuccess","TopBarContent","hasEndToEndEncryptionSupport","_window$RTCRtpSender","_window$RTCRtpSender2","isCryptoSupported","crypto","isInsertableStreamsSupported","RTCRtpSender","createEncodedStreams","createdEncodedVideoStreams","isWebWorkerSupported","Worker","useVonageEncryptionWarning","platformService","featureFlagService","appDownloadUrl","androidPackageId","appStoreId","hasEncryptionSupport","PrimitiveVonageEncryptionWarning","VonageEncryptionWarningTitle","VonageEncryptionWarningText","Dialog","VonageEncryptionWarningDialog","dialogOpen","setDialogOpen","open","onOpenChange","handleDialogOpenChange","Description","VonageEncryptionWarning","NotificationAlert","SHEET_CLOSE_INTO_NOTIFICATION_WAIT","TRANSLATION_SETS","IDP_AUTHENTICATION_PROVIDER_ID","AuthMethodLink","scheme","StyledNhsButtonOuter","NhsButton","SchemeLogo","fill","xmlns","StyledSchemeLogo","background","BankIdLogo","SmsLogo","FrejaEId","SithsLogo","PadLockIcon","fillRule","clipRule","AuthController","userSettingsService","methods","Scheme","useIframe","UseIframe","selectMethod","appendedReturnUrl","getReturnUrl","getSettings","selectedLanguage","urlFragments","__TEMP__","UserSettingsService","AuthMethods","SafeArea","maxWidth","Divider","decorative","StyledTextWrapper","display","pp","Auth","MethodLink","Methods","SignInSheet","AuthSignInSheet","onCloseAnimationEnd","onCloseAutoFocus","authController","useFeatureFlag","featureToggleService","expectedFlag","handleTriggerClick","dispatchEvent","CustomEvent","detail","openTargetWith","leave","Slot","CaseCommunicator","removeAppointmentCase","CaseCacheService","injector","unhandledIssuesService","caseCommunicator","signaler","appointmentCases","messagingCases","$case","removeCase","getGroupedCases","completedAppointmentCases","completedMessagingCases","ongoingAppointmentCases","ongoingMessagingCases","appointmentCase","completed","messagingCase","ongoing","getListedData","MessagingCaseModel","parseInt","getIdentifier","createMessagingCase","caseModel","resolve","updateMessagingCase","caseData","MessageConversationId","updateLesserData","unhandledIssuesTrackingId","MESSAGE_UNHANDLED_ISSUES_TRACKING_ID_PREFIX","parseUnhandledIssues","createAppointmentCase","AppointmentCaseModel","updateAppointmentCase","AppointmentTicket","trackingId","removeIssuesByTrackingId","issues","awaitFormResponses","addIssue","awaitPayment","isNewCase","unreadMessages","Injector","UnhandledIssuesService","CaseService","casesApiService","caseCache","FETCH_INTERVAL","fetchTimer","isFetching","hasTimer","callbacks","updateSync","pollData","callback","startScheduledFetch","listedData","stopScheduledFetch","repeat","PhysicalLocationApiService","getPhysicalLocation","physicalLocationId","CaseModelShared","AppointmentCaseModel_1","APPOINTMENT_UNHANDLED_ISSUES_TRACKING_ID_PREFIX","appointmentApiService","physicalLocationApiService","metaData","participants","participant","OtherParticipants","descriptiveTitle","DescriptiveTitle","leftTimestamp","LeftTimestamp","profileImageUrl","ProfileImageUrl","representative","AsAgentFor","for","AsAgentForName","UnitId","link","reservedUntil","Reserved","ReservedUntil","startDate","Time","lobbyIsOpen","endOf","Cancelable","Completed","receptionName","ReceptionName","parseIssues","rfv","Condition","updateExtendedData","physicalLocation","PhysicalLocationId","physicalLocationResponse","address","Address","address2","Address2","postalCode","PostalCode","city","City","country","Country","locationName","locationDescription","imageUrl","ImageUrl","Start","endDate","Duration","day","end","Files","file","FileWorkerStale","downloadUrl","DownloadUrl","fileSize","fileType","thumbnailUrl","ThumbnailUrl","formHandler","FormManager","addRespondants","Forms","form","FormId","Header","Opportunity","RespondantId","issueTrackingId","dataProvider","BookingId","forms","payment","Payment","price","Price","vonageEncryptionRequired","VonageEncryptionRequired","markAsSeen","removeArbitraryIssue","markAsPayed","prev","read","ReceiptUrl","receiptUrl","State","getBookingId","cancelAppointment","toast","DialogAlertSuccessError","analyticQuirk_trackOnMountInVisitsView","MessagingConversationsApiService","getMessagingConversation","messagingConversationsApiService","lastMessageTimestamp","LastMessageTimestamp","hasReadUntilTimestamp","HasReadUntilTimestamp","completedTimestamp","CompletedTimestamp","allowClientResponse","AllowClientResponse","PaymentInfo","markAsCompleted","extract","markAsRead","totalCount","issue","UnhandledIssues","Infinity","quirk_iOSKeyboardLockBodyScroll","scrollBy","requestAnimationFrame","senderContainer","attachedFilesContainer","inputContainer","input","placeholder","validationErrorMessage","danger","contentMuted","attachedFileMotion","rem","MAX_CHARACTERS","ChatInputArea","onSend","fileUploadDispositionUri","isReadyForCommunication","connectedId","fileManagerService","FileManagerService","fileWorkers","useFileWorkerList","disableSend","setDisableSend","hiddenFileInput","containerRef","showCharCount","setShowCharCount","inputRef","uploadFiles","useCallback","fileList","assignWorker","queueMicrotask","workers","peakWorkerList","promises","worker","upload","Promise","allSettled","handleRemoveFileClick","dropWorker","clipboardItems","clipboardData","FileList","preventDefault","expectedUploadsLength","peakUploadedWorkers","addedWorkersLength","fileTickets","flushUploadedIdentities","onAfterSubmit","handleAfterSubmit","control","reset","InputTextArea","onBlur","handleInputMessageBlur","onKeyDown","handleEnterKey","shiftKey","currentTarget","bubbles","maxHeight","autoHeight","characterCount","alwaysShowCharacterCount","onChange","maxLength","FileViewer","showDownload","presenceAffectsLayout","custom","layout","variants","motionVariants","AttachedFile","onRemoveClick","disabledText","handleUploadFileButtonClick","click","handleFileChange","multiple","hidden","tabIndex","visible","bottomSection","ReadUntilContainer","shouldBeObserved","onVisible","isVisible","useIsVisible","setIsVisible","observer","IntersectionObserver","entry","isIntersecting","observe","disconnect","HTTP_FILE_PATTERN","WWW_PATTERN","MAILTO_PATTERN","messageAnchorTag","a","LinkInMessage","linkElement","finalText","hasHTTPS","hasWWW","splitRegEx","linkUrl","linkText","DefaultLinkElement","rel","ObfuscateNameContext","imageContainer","inner","me","senderInfoContainer","messageBubble","attachedFileWrapper","redRobinMessageIcon","ChatBubble","_ChatBubble","isMessageStreak","isNewSender","isLastMessageInStreak","onRead","windowHasFocus","shouldObfuscateName","messageIsEmpty","timestampRef","hasBeenRead","setHasBeenRead","timeStamp","hasRendered","displayName","fromInitials","senderName","displayNameFull","senderNameWithTitle","ariaLabel","isMe","staleFileWorkers","role","isAutoreplyMessage","senderImageUrl","Avatar","isRedRobinInitialMessage","classNames","other","streak","Box","formWorker","FormCard","analyticAction","marginTop","staleFileWorker","handleVisible","NEW_MESSAGES_BANNER_ID","button","largeSemiBold","pill","floating","interactiveMutedHover","interactiveMutedActive","NewMessageFloatingButton","show","whileHover","whileTap","scroller","scrollContainer","x0_25","newMessageBannerWrapper","newMessageBanner","ChatAutoScroller","isBlockingNewMessageSpam","setIsBlockingNewMessageSpam","isAutoScrolling","shouldPreventProgrammaticScroll","hasHadAChildUpdate","setHasHadAChildUpdate","scrollerRef","scrollContainerRef","containerElement","prevHeight","clientHeight","ResizeObserver","entries","scrollerRefElement","oldHeight","contentRect","top","scrollTop","scroll","scrollContainerElement","childNodes","firstChild","childrenLength","wasMyMessage","attributes","getNamedItem","behavior","scrolledTo","expectedHeight","scrollHeight","getAutoHeightDuration","constant","round","animationElement","newMessagesBanner","getElementById","offsetTop","transform","unobserve","onScroll","handleScroll","shouldAutoScroll","couldReceiveNewMessageSpam","onTouchStart","handleTouchStart","onTouchEnd","handleTouchEnd","handleManuallyScrollToBottomClick","Number","MAX_SAFE_INTEGER","smallRegular","NewMessagesBanner","_NewMessagesBanner","systemMessage","senderInfo","loader","ChatMessagesContainer","bridge","showLoader","bottomBanner","topBanner","onMarkAsCompleted","onReceivedHistory","hasReceivedHistory","setHasReceivedHistory","subscribe","setTimeout","isCompleted","Messages","handleMessageShown","setReadUntil","RovingFocusGroup","orientation","hasHadNewTimeStamp","messages","isLastMessage","isDefaultActiveInRovingFocus","previousMessage","nextMessage","fromId","active","ChatCommunicator","communicatorProtocol","issuesTrackedById","connectionId","visibilityState","hasFocus","bindEvents","lastReadMessageTimestamp","formManager","sendMessage","publish","topics","parseOutgoingMessage","analyticQuirk_action","analyticCategory","getAllMessages","getHistory","isValidSession","parseIncomingMessages","handleRetrieveMessage","destroy","disposer","controlledMessage","getUserMessageById","isAfter","caseId","removeIssuesByTag","setWindowVisibilityCallback","removeEventListener","retrieveMessages","containedAForm","containedAnAttachment","m","isSystemMessage","sender","isOld","actors","isBefore","autoReplyReception","redRobinSessionId","responseStatuses","respondant","analyticQuirk_didContainAForm","analyticQuirk_didContainAnAttachment","insertNewUnreadIndex","parsedMessages","rawMessage","resetMessages","updateMessages","ChatController","communicator","socket","connectedTo","connectId","controllerInstance","createSocket","getController","currentCommunicator","removeCurrentBridge","currentBridge","terminate","close","Axon","devSession","setParameters","AuthorizationTicket","Chat","forceHideActions","isReadyToJoin","hasReadUntilData","showTopBanner","showBottomBanner","onSendMessage","obfuscateName","handleSend","DynamicFormContext","useDynamicFormContext","context","DynamicFormRootSkeleton","x9","DynamicFormPage","page","setDefaultValues","questions","setQuestions","changePage","question","defaultValue","QuestionComp","InnerForm","formContext","useFormContext","YesNo","MultiChoice","Multiline","SingleChoiceRadio","SingleChoiceSelect","editable","useFormWorkerState","InputRadio","required","isRequired","readOnly","trueLabel","falseLabel","InputCheckboxGroup","InputCheckbox","defaultChecked","InputSelect","DynamicFormRoot","defaultPagePosition","pagePosition","resetPosition","getData","handleGoBack","outline","DynamicFormDescription","Stack","DynamicFormContent","pages","Actions","DynamicFormActions","getValues","DynamicFormPageLabel","isSinglePage","leftSide","rightSide","amount","sheetInner","onCompleted","notificationService","handleCompleted","closeSheet","off","Trigger","_Trigger","BadgeText","FormDataProviderBasket","dynamicFormsApiService","basketApiService","getForm","getAnswers","BoolAnswer","MultiAnswer","TextAnswer","FormDataProviderRespondant","formsApiService","Answers","FormDataProviderLocal","sessionData","getDataFromStorage","oldAnswer","associatedUnitId","countForms","filterForms","addBasketForms","respondantStatusesCluster","refArr","hasForm","FormWorker","createDataProvider","dataProviderType","getNextUncompletedForm","getState","getFormByFormId","getForms","isArray","filteredForms","formState","removeForms","dispose","FormOption","ID_PREFIX","composeOptionId","int","parseOptionId","FormQuestionBase","parseQuestionId","Required","Placeholder","composeQuestionId","parseQuestions","getAnswer","createAnswerApiModel","FormQuestionTypeMultiChoice","Options","pageData","allAnswers","FormQuestionTypeMultiline","formValue","FormQuestionTypeSingleChoiceRadio","choice","FormQuestionTypeSingleChoiceSelect","FormQuestionTypeYesNo","TrueLabel","FalseLabel","FormAction","CommitAnswers","TurnInAnswers","TurnInAnswersLocally","Move","DisplayAnError","FillRequiredFields","formDataProvider","readyState","updateData","formDataResult","handleAction","answersResult","flattenPages","distance","evaluateActionToTake","move","updateValues","turnInAnswers","newPagePosition","isLastPage","isLastPageByDistance","isFirstPageByDistance","isFirstPage","isFirstOrLastPage","success","PageGroups","Pages","pageModel","FormPage","newState","mergedState","Questions","SortValue","produceQuestion","sortValue","updateDefaultValues","forceUpdate","isStale","Attachment","formatBytes","onDelete","handleDelete","loading","fileState","WorkerTaskState","Uploading","invalid","failedReason","invalidText","preview","getThumbnail","HttpFileServer","identity","headerBuilder","requestVerificationToken","identitySession","__RequestVerificationToken","HttpOptions","requestConfig","Http","absoluteUrl","formData","FormData","cancelSource","createCancelTokenSource","cancelToken","patchedRequest","ac","withCredentials","FileManagerServiceReadyState","NotReady","Ready","FileManagerService_1","getExtension","filename","getFileType","extension","FileTypes","Image","Doc","Pdf","Xslx","Unknown","httpFileServer","identityEndpointPath","processingFiles","fileWorker","FileWorker","findIndex","drop","updateReadyState","isUploaded","peakUploadedIdentities","uncompleted","IdentityEndpointPathCtx","rootElements","IsWithinFileUploadDropZoneCtx","StyledDropZone","StyledDropContent","StyledDropContentAnimate","FileUpload","FileUploadRoot","onStateChange","List","FileUploadList","DropZone","FileUploadDropZone","isDropping","setIsDropping","onDrop","handleDrop","dataTransfer","onDragOver","handleDropDrag","dropEffect","onDragLeave","handleDragLeave","dropping","idle","FileUploadButton","Pristine","Uploaded","UploadFailed","UploadCancelled","Deleting","Deleted","DeletionFailed","Downloading","Downloaded","DownloadFailed","IdentityResolver","isCancelled","unwrapIdentity","__CANCEL__","uploadUrl","UploadUrl","deleteUrl","DeleteUrl","previewImageSrc","canCancelUpload","identityResolver","getImageBlob","giveIdentity","identityTicket","hasFailedUpload","errors","ErrorCode","maxFileSize","request","withReturnValue","removeThumbnail","getFileTaskState","revokeObjectURL","createObjectURL","fileManager","hasScheduled","removeAll","trackedBy","groupedBy","Issue","scheduleUpdate","filterByTags","tags","tag","getCountByIssuesById","tackingId","lengthBefore","trackingIds","_mustBeTagAs","mustBeTagAs","foundMatch","matches","useReducer","PaymentContext","PaymentContextProvider","paymentController","PaymentController","usePaymentContext","PaymentFrame","actionCardImage","img","PaymentOptions","onSelect","Skeleton","PaymentStateConveyer","availableOptions","currentStep","selectedPaymentOption","errorMessage","activeElement","PaymentConveyer","selectPaymentMethod","PaymentState","Url","PaymentInner","paymentAmount","billId","showCancel","setShowCancel","isClosing","setIsClosing","paymentState","loadBill","tearDown","fluid","alreadyPaid","handleAbort","PaymentApiService","getServices","getPayment","PaymentFailed","PaymentCanceled","PaymentCompleted","PaymentCompletedNoReceipt","paymentApiService","attemptData","imperativeSheetRef","bundMessageListenerFn","handlePaymentMessage","createRefBridge","trackedByIssueId","removeListener","handleLoadBillError","setSuccess","info","messageDetails","setError","setCancel","paymentAttemptData","hasReceipt","paymentResult","UserSettingsService_1","storageKey","failGracefully","settings","storedSettings","loadSettings","activeMigrationVersion","createNewSettings","save","updateSettings","builder","setLanguage","migrationVersion","retrieveSelectedLanguage","OLD_PATIENT_WEB_LANG","localStorage","getItem","languagesToTry","language","languages","tryToSelectLanguage","selectedLanguageCandidate","AppointmentController","officeApiService","savedTicket","appointmentInfo","accessInfo","all","resourceId","ResourceId","isHost","Role","isHcp","isGuest","OutsiderId","otherParticipants","proxyUrl","VonageProxyUrl","appointment","beforeForms","afterForms","reconnectVariants","isMissingPayment","beforeForm","shouldEvaluate","afterForm","handleForceEnd","handleReconnect","handleForceEvaluation","handleAfterRetinaLeave","leaveType","leaveAction","handleSurveyEnd","handleCallStarted","changeForm","prevState","nextForm","getFormPosition","prevForm","changeFormByIndex","handleBack","tslib__WEBPACK_IMPORTED_MODULE_13__","IllustrativeDefault","rx","stroke","strokeWidth","ViewNotFound","PageLoadHandler","reqeustQueue","pending","emitEvent","requestID","timeOut","clearTimeout","Doors","_spaContext","_dropInService","_timeslotService","scheduledDataService","_translateService","authContextService","getDropin","textTitle","textObject","getDropinText","getBooking","getBookingText","getVisit","getVisitsText","getProfile","getProfileText","getMessage","getMessageText","buildDoorsArray","doorFunctionsArray","doors","i","textObj","roomsOpen","lowestTime","chosenIndex","CurrentWaitTime","MinimumShownWaitTime","IsOpen","timeText","getWaitTimeText","seconds","minimumShownWaitTime","minutes","floor","specialityId","filterableUnitId","fromDate","toDate","fromTime","setHours","toTime","localityType","LocalityType","All","bookingsAvailable","isClient","onGetCases","cases","c","reduce","b","pushCachedCases","patientIdentity","CommonName","ctorParameters","tslib__WEBPACK_IMPORTED_MODULE_6__","SpaContext","DropInUnitServiceV2","TimeslotServiceV2","ScheduledDataService","TranslateService","AuthContextService","TransformOperationExecutor","transformationType","recursionStack","source","targetType","arrayType","isMap","level","newValue","TransformationType","PLAIN_TO_CLASS","instantiateArrayType","array","subValue","subSource","enableCircularCheck","isCircular","CLASS_TO_CLASS","realTargetType","discriminator","property","subTypes","subType","newObject","object","newType","typeFunction","keepDiscriminatorProperty","CLASS_TO_PLAIN","valueOf","getGlobal","global","self","Buffer","isPromise","reject","getKeys","valueKey","newValueKey","propertyName","ignoreDecorators","exposeMetadata","defaultMetadataStorage","findExposeMetadataByCustomName","findExposeMetadata","Function","isSubValueMap","metadata","findTypeMetadata","reflectedType","targetMaps","properties","enableImplicitConversion","Reflect","getMetadata","getReflectedType","descriptor","getOwnPropertyDescriptor","finalValue","applyCustomTransformations","exposeUnsetFields","transformKey","exposeDefaultValues","obj","metadatas","findTransformMetadatas","checkVersion","since","until","groups","checkGroups","transformFn","strategy","getStrategy","excludeExtraneousValues","getExposedProperties","getExcludedProperties","exposedProperties","concat","excludedProperties","excludePrefixes","every","prefix","substr","decision","optionGroup","defaultOptions","classTransformer","ClassTransformer","instanceToPlain","classToPlainFromExist","plainObject","plainToInstance","cls","plain","plainToClassFromExist","clsObject","instanceToInstance","classToClassFromExist","fromObject","serialize","deserialize","jsonObject","parse","deserializeArray","UnitConfigApiModel","Unit","unitConfig","_unitConfig","guiConfig","getCurrentConfig","baseHref","locationSelectorService","_spaEventService","_helper","generalService","translateService","documentSigningPending","sessionStorage","unitTreeFlat","sharedResolution","LocationSelectorService","configService","ConfigService","init","setUnitConfig","setUnitTree","µ","Env","LangCode","onSigningIn","loadedConfig","__TEMP__loadedConfigsRaw","About","WebContentButtons","plainToClass","setTranslations","Translations","Offer","HasConditionWorkflow","AllowClientAgents","HideProvidedByVisibaCare","HasPhysicalLocation","Controls","root","createFlatUnitArray","validNodeIds","u","closestEntranceId","n","v","findUnit","searchForId","hasControl","identifiers","Locale","DefaultCountry","supportedCountry","SupportedCountries","CountryCode","ClientIdentifierPhoneNumber","nin","ClientIdentifierNationalIdentityNumber","setGuiConfigItem","setItem","LicenceHolder","getGuiConfigItem","currentConfig","SpaEventService","Helper","GeneralService","MessageHandler","buttonContainer","baseHtml","asError","classList","asWarning","addClass","confirm","confirmBtn","cancelBtn","btnOk","addButton","btnAbort","finalize","Observable","next","el","inform","buttonText","persistant","btn","innerText","addCloseButton","setTopPosition","parentElement","removeChild","topMarg","pageYOffset","VisibaApiHttp","_pageLoadHandler","_http","_spaLogger","applicationService","errorMessageTimer","showGeneralApiErrorMessage","getTyped","emitLoading","environment","getDefaultOptions","res","handleSuccess","handleError","complete","postTyped","putTyped","deleteTyped","postFormData","sendProgress","xhr","XMLHttpRequest","k","onreadystatechange","Successful","onprogress","progress","loaded","total","errorCode","ActiveDomain","yes","no","checkBackendVersion","ApiResponse","sucessful","onSignInRequired","reload","overrideOptions","responseType","HttpClient","SpaLogger","ApplicationService","errorAssHttpErrorResponse","ErrorMessage","_body","parsed","logLevel","overrideLogLevel","_logLevel","deviceInfoModel","myDeviceId","myVisitId","outgoingEntries","postEntries","sendBatch","AppBuild","AppVersion","Browser","BrowserVersion","AppName","DeviceName","Os","os","family","OsVersion","Platform","setInterval","stackTrace","levelColor","logInstant","Timestamp","Tags","StackTrace","LogLevel","batch","xmlhttp","DONE","setRequestHeader","VisitId","DeviceId","ApiSessionToken","DeviceInfo","Entries","GlobalValidator","numberInt","parseFloat","isNaN","incorrectIntegerValue","numberFloat","incorrectFloatValue","mailFormat","validateAsEmail","incorrectMailFormat","nationalIdentityFormat","validateAsNationalIdentityNumber","incorrectNationalIdentityFormat","mobilePhoneFormat","num","isValidNumber","incorrectMobilePhoneFormat","requiredCheckbox","incorrectCheckboxValue","requiredNin","conditionalRequired","conditions","elt","conditionalRequiredNin","equals","equalityObject","notEqual","maxNumber","maxNumberValueExceded","minNumber","minNumberValueExceeded","maxValueLengthExceded","minLength","minValueLengthExceded","NationalIdentityNumbers","Validator","requireAtLeastOne","group","valid","controls","getError","prop","hasOwnProperty","setErrors","defaultErrorMessages","validateFormControl","errorMessages","hasError","nullable","validator","supportsCountry","SE","normalized","centuryMod","getFullYear","Algorithms","luhnCheck","NO","validateNorwegianBirthNumber","FI","mod","DK","Format","RegExp","TempCPRLastChars","IsTempCPR","isBirthDateValid","century","birthDay","dateString","getMonth","exec","birthCentury","GB","TrimWsRegex","ValidationRegex","normalizedNumber","checksum","arr","val","len","bit","sum","birthNumber","digit1","validateNorwegianBirthNumber_Checksum","digit2","factors","cc0","VisibaPopup","extraButtonsContainer","yesBtnExternalLink","createObserver","addLink","containerCls","externalLink","finishPromise","failPromise","useRedirect","exposedFinishListner","call","myObserver","__exposedFunction","exposedCallbackListner","windowOpen","redirect","loadDiv","disableButton","attatch","isConnected","addButtonContainer","ImageViewerComponent","_changeDetectorRef","http","activeFileInd","onRemove","isRemoveStepOneComplete","ngOnInit","selectPicture","onWindowResize","detectChanges","setPlaceOnImageResolution","imageElement","images","viewUrl","select","dir","stopClickThrough","onKey","keyCode","removeImage","cancelRemoval","downloadImage","filenameRegex","uuidRegex","contentDisposition","filenameMatch","uuidMatch","blobUrl","download","Input","Output","HostListener","Component","standalone","selector","ChangeDetectorRef","image","uploader","VisibaICDComponent","spaContext","elementRef","outcomesService","redRobinService","onBlurEvent","localPlaceholder","targetedOption","showOptions","currentError","searchValue","suggestedDiagnoses","suggestedSymptomDiagnoses","searchedDiagnoses","matchedIcdCodes","showRRContent","debounceTimer","propagateChange","getRRSessionsOutcomes","RRsessionId","getSessionOutcome","unsortedSuggestedDiagnoses","unsortedSuggestedSymptomDiagnoses","diagnoses","diagnose","icdCode","Code","icd10","Entry","Probability","probability","SuggestedFromRedRobin","symptomDiagnoses","sortDiagnosesOnProbabilityDescending","selected","writeValue","registerOnChange","registerOnTouch","registerOnTouched","emitValue","handleErrors","NgControl","blur","mouseoverOption","selectOption","addIcdCode","closeList","getChosenDiagnoses","search","searchIcdCodes","searchResults","searched","suggested","openList","handleSearchbarClicked","getElementsByTagName","listClickCheck","nativeElement","contains","arrowMove","IcdCode","newPos","targetElement","ulWrap","handleEntryChanged","prevent","unsorted","sort","ViewChild","providers","provide","NG_VALUE_ACCESSOR","useExisting","multi","tslib__WEBPACK_IMPORTED_MODULE_7__","ElementRef","OutcomesService","RedRobinService","VisibaSaveButtonComponent","_elem","tabInd","readonly","errorText","errorTextLeft","normalizeTimer","normalize","isLoading","isSuccess","isError","autoCheckErrorPosition","checkErrorTextPosition","elRects","getClientRects","clientWidth","left","VisibaSvgIconRepository","iconNotFoundSvg","html","iconList","ArrowDown","ArrowRight","ArrowLeft","ArrowUp","CheckWithCircle","PhysicalLocation","FullScreenCircleOpen","FullScreenCircleClose","CameraCircleOn","CameraCircleOff","MicrophoneCircleOn","MicrophoneCircleOff","SpeakerCircle","WifiCircle","ChatCircle","XCircle","UpAndDownload","ExitCallCircle","ScreenshotCircle","ScreenShareStart","ScreenShareEnd","StopScreenShareEnd","QuestionmarkCircle","InfoCircle","Clock","VideoCallCircle","AvatarPlusCircle","AvatarCircle","DoctorCircle","HandHeart","Queue","PartialQueue","X","Plus","Checkbox","Entrance","CheckboxChecked","Radio","RadioChecked","Loader","ProgressLoader","MoveTop","AvatarPlus","Notification","Ekg404","AddPerson","Statistics","Album","Active","At","CreditCard","CreditCardCheck","Closed","Cogs","Eye","ColorPalette","EditPen","FormPending","Hashtag","Help","newQuestionMark","Calendar","Light","NewTemplate","Reload","Open","Percent","Que","Shake","Star","Trashcan","InActive","VideoLink","VideoCall","Globe","PhoneSmart","PhoneDash","MinimizeSlide","Lock","House","Units","Tag","LogOut","Filter","File","Hearth","LocationMarker","Drag","Warning","PaymentPending","TextBubble","Check","Calendar2","Megaphone","AddressBook","Search","VerticalDots","FormCheck","AvatarAdd","AvatarAddCircle","AvatarGroup","Collapse","Expand","SendArrow","Thermometer","TextBubbleCross","Menu","FullScreenOpen","FullScreenClose","Cloud","Screenshot","Pin","ScreenShare","StopScreenShare","Devices","GroupAvatar","Shield","PictureRound","Exit","FormWithCheckmarks","guest","getIconsArray","FileHelper","stringFromBytes","fileSizeInBytes","toFixed","hasExtension","extensions","endsWith","base64ToBlob","base64Data","contentType","sliceSize","byteCharacters","atob","bytesLength","slicesCount","byteArrays","sliceIndex","begin","bytes","offset","charCodeAt","Uint8Array","Blob","IsHelper","visCheckLaptop","visCheckDesktop","iosApp","androidApp","app","IsAndroidApp","IsIosApp","isIpad","laptop","vanillaVisCheck","elem","offsetWidth","offsetHeight","function","functionToCheck","fireFox","InstallTrigger","webstore","ua","msie","rv","mediaDevices","today","indate","getDate","webRtcCompatable","getUserMedia","NumberHelper","padZero","ObjectHelper","stringProp","o","s","merge","obj1","obj2","clone","copy","setTime","getTime","attr","ArrayHelper","groupBy","func","groupByTyped","oArray","rArray","cArray","dr","reverse","groupByToKey","StringHelper","capitalizeFirstLetter","pad","char","isNullOrEmpty","seoFriendlyUrl","urlify","ColorHelper","hslToRgb","h","l","r","g","hue2rgb","q","rgbToHsl","hexToRgb","hex","rgbToHex","ImageHelper","getOrientation","reader","FileReader","onload","view","DataView","getUint16","byteLength","marker","getUint32","little","readAsArrayBuffer","UnitHelper","getUnitUrl","unitArray","getUnit","getClosestOfferFromCurrent","getFullUrlAlias","parentId","getParent","flatten","HtmlHelper","persistantNotification","loadJavascript","script","stripHtml","DOMParser","parseFromString","textContent","CookieHelper","days","expires","toUTCString","createReturn","regex","unescape","RedRobinHelper","getApiRoot","production","is","string","rr","hash","random","AudioPlayerService","_audioElements","onSuspended","play","loop","volume","currentTime","stop","pause","playing","paused","attachSinkId","sinkId","setSinkId","Audio","removeAudioElement","allowEmpty","showAlias","isDevelopment","paths","NO_SCROLL_CLASS_NAME","OpenTargetWith","AngularNavigation","NativeNavigation","NewTab","SignInComponent","_router","_identityService","usageAgreementsService","reasonText","authMethod","useCareExperiencePwIDP","chosenMethod","visibleMethodDirective","countryList","nhsLoading","shouldShowIDPMethods","navigate","signInPatient","completeSignIn","iframeMessageDisposer","angularSignInModalIsOpen","ngOnDestroy","handleNhsLoading","AuthenticationMethodId","results","ProviderId","combId","methodDirectivesRef","onSignInAborted","licenceHolderService","LicenceHolderService","onFinished","checkDocumentSigning","onRegistrationRequired","getSignatureDocuments","PrivacyPolicy","HasSigned","TermsOfService","onDocumentsSigningNeeded","signingSubscription","onDocumentsSigningCompleted","documents","unsubscribe","isAuthenticatedOutsider","encapsulation","ViewEncapsulation","IdentityServiceV2","AuthServiceV2","UsageAgreementsService","ConfirmPhoneNumberComponent","onNumberConfirmed","verificationAttemptId","smsTries","phoneNumber","verifyPhoneNumber","VerificationAttemptId","sendConfirmationCode","completePhoneNumberVerification","IframeEvents","submitData","externalTracking","externalPreCaseInfo","EmbeddedWebComponent","domSanitizer","webContentButtonsSerivce","externalDataService","router","ewUrl","handlePostEventFromIframe","messageEvent","selectedEmbeddedContent","baseUrl","submitExternalData","responses","setGuid","getUrl","routerState","snapshot","queryParams","bypassSecurityTrustResourceUrl","DomSanitizer","WebContentButtonsService","ExternalDataService","MediaTest","VisibaAudioAnalyser","audioElement","circlesContainer","bufferedSound","audioCtx","analyser","canvasCtx","AudioContext","webkitAudioContext","createAnalyser","minDecibels","maxDecibels","smoothingTimeConstant","createBuffer","createMediaElementSource","connectAnalyser","connect","destination","createBufferSource","buffer","noteOn","onended","fftSize","binCount","frequencyBinCount","frequencyData","circles","draw","getByteFrequencyData","cssText","checkTURNServers","iceServers","timeout","promiseResolved","pc","RTCPeerConnection","mozRTCPeerConnection","webkitRTCPeerConnection","noop","createDataChannel","createOffer","sdp","setLocalDescription","onicecandidate","ice","candidate","UserMedia","streamSessionID","_streamSessionID","ID","mediaStream","chosenVideoinputDeviceId","chosenAudioinputDeviceId","chosenAudiooutputDeviceId","onUpdateMediaDevice","onUpdateActiveDevices","onDeviceChange","onLocalTrackUpdated","devices","videoinput","audioinput","audiooutput","popupList","ondevicechange","deviceChange","newStreamSessionID","getMediaStream","constraints","_ref","getAudioTracks","audio","deviceId","exact","getVideoTracks","video","_x2","getDeviceList","enumerateDevices","listedDevices","kind","parseError","updateVideoTrack","exactID","fromStream","getCameraConstraints","_ref2","newTrack","oldTrack","removeTrack","addTrack","_x3","_x4","updateAudioTrack","getAudioConstraints","_ref3","removeOldAudioTrack","_x5","_x6","warn","statusState","updatedDevices","removed","added","popup","messagePrefix","translated","addPopup","LicensHolderId","ErrorType","closeStreams","getTracks","clearPopups","nextPopup","MediaTestMiniComponent","_audioPlayerService","_ngZone","helper","stateUpdate","openOnStart","activeStream","currentStates","camera","microphone","sound","network","showCompleted","localVideoStyle","micAnalyser","testSoundAnalyser","evaluationText","streamInited","isDestroyed","isReady","startedQueued","tests","updateActiveDevices","run","deviceViewState","updateVideo","setCurrentState","updateAudioInput","updateAudioOutput","ngAfterViewInit","stopStream","onEvaluationCompleteFunction","findAncestor","audioContext","getStream","useStream","startIfNeeded","setEvaluation","onEvaluationNextFunction","javascriptNode","tracks","frameRate","bindStream","trackID","checkMicrophone","stream","srcObject","setLocalVideoSize","videoWidth","videoHeight","toggleTestSound","pauseAudio","localMediaStreamID","createMediaStreamSource","localMicChecker","maxLevel","clearInterval","micCheckerTimeouted","createScriptProcessor","instant","NgZone","NotificationComplianceComponent","spaEventsService","notificationSettingsService","onCancel","showConfirmationDialog","notificationSettings","emitNotificationSettings","checkIfIgnoredSettings","AllowSms","AllowEmail","putComplianceSettings","allowEmail","allowSms","onNotificationComplianceCompleted","showSettingsView","setNotificationSetting","NotificationSettingsService","VisibaPaymentComponent","_builder","_sanitizer","_paymentService","abortEvent","finishEvent","stepChangeEvent","showReciept","paymentData","paymentTypeValue","selectedPaymentType","completedWithMethod","showFailedRetryButton","prevStep","customFailRetry","paymentMessage","setCurrentStep","formPaymentoptions","paymentType","UntypedFormControl","Validators","compose","step","stepData","pointerEvents","marginBottom","onPaymentTypeChange","paymentUrl","finish","completeFunction","submitPaymentOptions","submitted","retry","showRetryButton","customRetry","UntypedFormBuilder","PaymentServiceV2","CustomFailRetry","AttemptData","VisibaStepComponent","steps","stepIndex","ngOnChanges","changes","currentValue","setSteps","markForCheck","changeDetection","ChangeDetectionStrategy","OnPush","SecurityLevel","Public","Client","PublicClient","Outsider","Resource","ClientOrOutsider","ResourceOrClientOrOutsider","ResourceOrClient","ResourceOrOutsider","Developer","ViewGuard","spaLogger","_generalService","canActivate","HasMultipleLandingPages","entrance","availibleToNonEntrance","onDocumentsSigningAborted","access","isOutsider","isResource","IdpUrlRedirectStorageService","setRedirectPath","AuthenticationMethod","tslib__WEBPACK_IMPORTED_MODULE_15__","MessagingInjectable","_messagingService","totalUnreadMessages","currentActive","reconectAttempts","onMessages","onGetMessages","onHasReadUntil","onCaseClosed","onAllowClient","onCompletedForm","onTotalUnreadMessagesChanges","onSignedIn","initSocket","conn","xsockets","client","setPersistentId","utils","autoReconnect","devLocalStorage","ws","openSocketConnection","onunload","onbeforeunload","topic","sendTimeStamp","textFormat","getMessages","tslib__WEBPACK_IMPORTED_MODULE_8__","MessagingServiceV2","DropInQueueInterface","queueContext","queueData","queue","countdown","openStatus","estimatedQueueTime","stopQueueCountdownTimer","timeLeft","ti","room","roomInfo","waitTimeString","DropInQueueWebSocket","connectionNotificatioTimern","connectionNotification","onLine","onAppError","onKickedFromQueue","setData","IH","validForSeconds","handshake","handshakeKey","handshakeFailed","getTicket","ticketInfo","creds","Ticket","MayEnterQueue","DropInRoomUrlAlias","DropInQueueQueue","onDataEvent","intervalHandler","webSocket","placeInQueue","answerTime","that","handshakeInterval","hscw","onAcceptHandshake","HandshakeTimeout","DropInQueueService","DropInQueueService_1","audioPlayerService","_dropInUnitService","_activatedRoute","isInited","currentUrlAlias","currentTicket","lastFetchedActiveTicket","connectionError","routeSub","NavigationEnd","tryGetTicket","onCallEnded","isPatient","getActiveTicket","EventPackage","OnGetActiveTicket","dropInLink","getByUrlAlias","DropInModule","Room","QueueInfoUpdated","FetchCompleted","FetchFail","Initialize","Destroyed","leaveQueue","doDefaultRouting","invoke","CompletedRedirectUrl","KickedFromQueue","AcceptHandShake","DropInServiceV2","ActivatedRoute","ConditionServiceV2","getAll","HttpParams","getDropInRoom","dropInRoomId","DynamicFormServiceV2","submitForm","visibaHttp","externalData","calls","forkJoin","getExternalDataReferences","reference","isGuidValid","guidData","clearExternalDataReferences","currentDate","guidDate","getHours","Digital","Physical","getSearchCapabilities","getBookingById","bookingSlot","book","composite","externalDataReferences","asAgentFor","lockId","sendModel","TimeslotLockId","ExternalData","ConditionId","RedRobinSessionId","getLocalityAvailability","angularHttp","RootUnit","getConfig","getAbout","getText","getIdentifierConflicts","excludeClientId","OpenUrlWith","IFrame","SameTab","spaEventService","goToCustomButtonUrl","openUrlWith","ewRoute","requiresAuthentication","getButtonTranslation","AppointmentsServiceV2","startNoAuthAuth","CasesServiceV2","postEnqueue","getActiveRoomTicket","fetchActiveIdentity","HttpHeaders","isAliveOutsider","givenName","surname","phoneVerificationAttemptId","postData","PhoneVerificationAttemptId","LicenceHolderServiceV2","getCallSettings","getComplianceSettings","RegistrationService","getRegistration","completeRegistration","SmsAuthService","beginSmsAuth","resendCode","confirmCode","SurveyService","getSurvey","postSurveyAnswer","bookingCallTicket","getResourceSurvey","getOutcomeDefinitions","postResourceSurveyAnswer","BookingCallTicket","RegisterCallOutcome","icdCodes","outcomes","wasFitForDigitalVisit","customOutcome","IcdCodes","Outcomes","WasFitForDigitalVisit","CustomOutcome","UnitApiService","signDocument","UserFilesService","contentTop","contentBottom","ErrorInterrupted","FlowError","ViewGuestController","availability","flowData","policyDocuments","counterDisposer","accessInfoResult","calendarInfoResult","configResult","policyDocumentsResult","presentError","privacyPolicy","PrivacyPolicyUrl","termsOfService","TermsOfServiceUrl","unitName","ClientId","IdpAuth","calendarInfo","Cancelled","accessInfoData","calendarInfoData","AuthenticationProviderId","lobbyOpenAt","AppointmentStart","counter","remoteScheme","SideAreaContent","SideArea","OutletIdp","largeBreakpoint","Large","breakpointLargeAndUp","ViewGuest","withNewContainer","useParams","AppointmentEnd","ListItem","StatusWaitingForOpeningHour","StatusCancelled","StatusClosed","StatusCompleted","StatusAvailable","handleMethodClick","containerElementName","FULL_HEIGHT_CLASS_NAME","ALTERNATIVE_BACKGROUND_CLASS_NAME","GuestWrapperComponent","ngZone","unmount","universalConfigService","createRoot","routeBase","runOutsideAngular","CellulaProviderWrapper","useGlobals","Routes","Route","FunkyAngularRedirect","__TEMP__overrideNavigation","Container","Background","BackgroundOutlet","SingleForm","_routerService","handleGoBackIntercept","stopImmediatePropagation","routeStr","numberSafeParse","isFinite","StyledContent","AnimateChangeInHeight","setHeight","resizeObserver","observedHeight","ScreenEvaluationHcp","EvaluationHcpController","appointmentController","QuestionTypeInt4SatisfactionScore","QuestionTypeText500","InputRating","surveyAlias","SurveyQuestionId","QuestionAlias","QuestionText","AnswerType","payload","createSurveyQuestionAnswer","ScreenEvaluation","ScreenEvaluationPatient","EvaluationController","submit","handleSkipClick","skip","StyledRatingWrapper","Alias","sendSurveyAnswers","RetinaComponentLazy","React","module","Video","ScreenVideo","Suspense","BrandedIllustrationDoor","BrandedIllustrationDevices","cx","cy","BrandedIllustrationPhoneOngoing","BrandedIllustrationDisconnected","BrandedIllustration","illustrationComponent","OuterContainer","TextContainer","ButtonContainer","ViewAppointmentState","actions","ScreenMissingPayment","ScreenDone","handleNextClick","baseurl","ScreenReconnect","ScreenMayEnd","ScreenMayReconnect","ScreenMultipleConnections","ScreenUnexpectedlyDisconnected","ScreenForceLeave","handleRejoinClick","handleForceEvaluationClick","handleForceEndClick","ViewAppointment","AppointmentWrapperComponent","FunkyRedirect","StartupService","bootState","internalBootState","BootState","registerRecentVisitService","recentReceptionsApiService","licenceHolderApiService","boot","loadedData","StartupServiceAlreadyBootedError","addInterceptor","triggerOn","loadRecentlyVisited","NonFunctional","getUrlAlias","featureToggles","patientBaseResult","loadFromAlias","unitServiceResult","getTranslationSetResult","getTranslationSet","TRANSLATION_SET","HasCriticalInformation","setSelectedLocation","Routeable","logFatal","useImperativeHistoryListener","latestVisitedReceptionId","dispatchLatestRegistered","getRecentlyVisited","commitByUnitId","normalizePathname","commitByRoute","PUBLIC_SUB_URL_PATH","RegisterRecentVisitService","RecentReceptionsApiService","LicenceHolderApiService","LicenceHolderApi","getHomeGuiComponents","getLocale","getTheme","postToRecentlyVisited","ShellController","licenceHolderApi","caseService","globalLogger","useGlobalCatch","useAnalyticErrors","handleFailureOfCriticalData","Currency","_Currency","GlobalCustomerId","_LanguageCode","RootUnitId","DaysToDepersonalizeClientAfterRequest","RequireClientEmail","RequireClientPhone","AppConfig","localeResult","AvailableLanguages","DefaultLanguage","_SupportedCountries","TimeZoneIana","_TimeZoneIana","themeResult","identityResult","tos","AndroidPackageId","AppStoreId","getTranslationSetResults","featureFlagResult","serializeMessage","ctx","someValue","ErrorEvent","serializedError","getOwnPropertyNames","PromiseRejectionEvent","someReason","isSomeError","unitConfigData","unitAboutData","unitTreeData","patientIdentityData","resourceIdentityData","environmentService","EnvironmentService","injectedStartupService","InjectedStartupService","authServiceThatOriginatesFromReactOnly","instance","useGoogleFontPrevention","hosting","shell","UnitService_from_react_only","userSettings","createRoutes","ResolveStart","traceableRoute","isReception","requestOptions","about","resourceIdentity","interval","Dict","afterDataLoad","newElement","referenceElement","setGlobalDateNames","Theme","themeEl","i18n","dayNames","monthNames","resetConfig","routes","redirectTo","component","HomeWrapperComponent","MyAccountWrapperComponent","loadChildren","VisitsModule","CookiePolicyModule","ChangeUnitWrapperComponent","SignInFinishWrapperComponent","ReceptionHomeWrapperComponent","ComponentsComponent","CreateNewMessageWrapper","RedRobinRedirectWrapperComponent","isWithinVisibaWebView","GuestComponent","ProxyRedirectComponent","AppointmentModule","BookingWrapperModule","ErrorModule","DynamicFormModule","IdentityApiModel","legacyDocumentSignin","legacySignin","onSignedInAsOutsider","needsLegacyDocumentSigning","utc","timezone","tz","ComponentIdentityButton","subTitle","openAnotherApp","hasBrandedNavbar","ComponentIdentityButtonIcon","ComponentIdentityImage","altText","ComponentIdentityList","items","ComponentIdentityRockBottom","ComponentIdentityText","IdentityFactoryService","produce","passedData","backendMessage","convertUrlToValidRouterPathService","HasBrandedNavbar","OpenAnotherApp","RequiresAuthentication","IconSvgUrl","AltText","Items","subdivideTypes","glueTogether","FlexiblePatientButtonsService","unitApiService","identityFactoryService","components","types","componentIdentityButtonIcon","componentIdentityButton","componentIdentityImage","componentIdentityList","componentIdentityRockBottom","componentIdentityText","fetchComponents","locationUnitId","parseBackendData","Order","guiComponent","tslib__WEBPACK_IMPORTED_MODULE_11__","http2","getAppointmentCalendarInfo","getRRSessionId","PhoneNumber","verificationCode","VerificationCode","ModalService","componentFactoryResolver","loadedComponent","canBeClosed","viewContainerRef","attach","closable","factory","resolveComponentFactory","createComponent","detach","setViewContainerRef","ComponentFactoryResolver","getSession","setPerformerFeedback","feedback","_casesService","_messagingInjectable","onGetTodaysTimeslots","onGetDropInRoomsStatus","intervals","dataCache","getCases","setFullYear","getTodaysTimeslots","getDropInRoomsStatus","startSchedulers_Client","startSchedulers_Outsider","onSignedOut","stopSchedulers","onSignedOutAsOutsider","attachListerners","caseMessages","cachedCase","readUntil","intervalId","runAndScheduleFunction","forUser","startSchedulers_Patient","startSchedulers_All","onUpdateMenu","onNotificationComplianceNeeded","onNotificationComplianceConfirmation","onRegistrationAborted","onVisitorRegistred","onChangeUnit","AppointmentFlowService","appointmentService","subscriptions","flow","EXPECTED_FLOW","beforeCallDynamicForms","afterCallDynamicForms","onCallStateChange","onDynamicFormCompleted","onNoAccess","onShowViewImages","sharedFiles","chat","chatLanguageSelectOverlayClose","chatLanguageSelectOverlay","fullScreen","partnerOverlay","sipInviteBox","changeDevice","appointmentMenu","myID","chatFiles","chatMessages","initiateAppointment","allParticipants","MyParticipant","ownerResource","ownerResourceAsModel","VideoProvider","VideoService","Me","checksBeforeCall","checkBeforeCallHasPayment","goToSpecificFlow","checkBeforeCallHasDynamicForms","checksAfterCall","checkAfterCallDynamicForms","goToNextFlow","setMessages","messagesFiles","getDownloadUrl","fileId","fileServerUrl","downloadParam","getProfileImageFromId","ParticipantId","_svgIconRepository","noValue","noValueNin","valueLongText","valuePhone","valueNin","noValueTime","valueDate","valueDateSpan","valueDateSpanX2","valueDateSpanX2NotFirst","valueDateSpanXYNotFirst","listOptions","listOptionsLong","listOptionsShort","listOptionsMuchText","errorTextDynamic","saveBtn","allIcons","formCG","requiredField","requiredFieldNin","requiredCheckboxField","saveBtnDynamicErrorText","copyToClipboard","textarea","boxShadow","execCommand","toggleShowAlias","Func","ToggleShowAlias","AsUTC","DropInOpenTimes","timeslot","allTimesVisible","isInQueue","OpenHours","noDays","timeZoneIana","modifiedDays","toZonedDate","local","slots","Slots","ClosingTime","OpeningTime","AppointmentState","cancelled","early","startable","requiresSithsWeb","allowWebRedirect","isWithinWebView","identityService","applink","unitUrl","showOverlay","lobbyOpenCheckInterval","subscribers","guestLink","isVisibaApp","paramMap","handleReceivedDataChange","isAfterEndTime","isAfterStartTime","checkLobbyStatus","handleRouteClick","handleRouteClickWeb","isOpen","redirectUrl","RedirectUrl","styles","__NG_CLI_RESOURCE__1","token","RateService","getMessagingConversationPrice","handleReset","onSubscriber","SafeSubscriber","innerFrom","BasketService","baskedId","getExternalData","postExternalData","addProductMessagingConversation","conversation","ExternalDataReferences","observeable","pipe","share","connector","Subject","resetOnError","resetOnComplete","resetOnRefCountZero","wrapperSource","connection","resetConnection","subject","refCount","hasCompleted","hasErrored","cancelReset","resetAndUnsubscribe","operate","subscriber","dest","basketItemId","addFiles","deleteFiles","fileIds","setFormAnswers","getFormAnswersByQuestions","questionIds","createCommit","BasketStoreService","basket","currentBasket","basketService","mergeMap","currentBasketId","toPromise","updateBasket","conversationInput","itemId","deleteBasketItem","deleteId","deleteBasket","TranslateStaticAlias","_elementRef","viewContainer","insertAdjacentHTML","Directive","ViewContainerRef","TranslateDynamicAlias","TranslatePlaceholderDynamicAlias","HttpRequestInterceptor","intercept","req","setHeaders","outReq","handle","HttpResponse","ConfirmLeaveGuard","canDeactivate","DynamicFormAnswer","validFunc","Valid","BasketFormAnswer","DynamicFormComponent","_dynamicFormService","emitAnswers","onComplete","onNextPage","formMeta","activePage","currPage","currPageGroup","totalPages","flatPageIndex","staticLastPage","getStaticLastPage","ind","allQuestions","questionNumber","addAnswers","Answer","scrollToStartOfPage","getBoundingClientRect","scrollIntoView","continue","pageIsValid","continueComplete","submitPageAnswers","nok","nextPage","emitOutcome","prevPage","getAnswersFromQuestions","formAnswers","setActivePage","fm","firstIt","pageGroup","j","outcome","DfqYesNoComponent","formControl","valueChange","validators","Autosize","onInput","textArea","adjust","orgHeight","borderCorrection","exportAs","VisibaInputComponent","controlDir","wallColor","staticplaceholder","autofocus","localModel","cpPosition","cpOutputFormat","labelIcon","autosizeDirective","rndIdentifier","valueAccessor","validateAndEmitValue","Self","MessagingComponent","_caseId","selectCase","messagingService","_userFilesService","case","formCompleted","hasConnectionProblem","uploadingMessages","activeForm","fileUploadError","isDisabled","imageViewer","showDrop","isScrolledToBottom","lastReadUntilTimestamp","formFinished","responseStatus","statuses","formAlias","caseForm","initMessageEvents","initTextAreaFocusChecker","messageList","scrollToBottom","clearUnreadMessagedAtConversationLeave","clearMessageEvents","p_case","setReadUntilLastMessageTimestamp","clientScroll","messageArea","windowScroll","onMessagesSubscription","onGetMessagesSubscription","onHasReadUntilSubscription","onCaseClosedSubscription","onCaseAllowClientSubscription","lastMessage","clearUnreadClasses","allMessages","sizeFormatted","inputfield","onfocus","inputFieldHasFocus","onblur","respondent","ev","messageText","getSecondsToEarlier","trackByMessageId","setRead","compareReadUntilAndMessageTime","readUntilTime","messageTime","showMessagingForm","Abortable","showForm","FormAlias","trackClickedUpload","uploadMessage","failed","viewImages","startImageUrl","imageFiles","viewImagesStart","startIndex","ViewChildren","ErrHandler","addTypeMetadata","OptionInfo","AnswerInfo","QuestionInfo","DynamicForm1","DynamicForm2","DfqMultiChoiceComponent","dirty","DfqMultilineComponent","DfqSingleChoiceRadioComponent","radioModel","DfqSingleChoiceSelectComponent","selectModel","componentID","succesBox","onState","onToggle","class","CiscoMeetingServerService","addParticipant","sipAddress","SipAddress","startConversation","PhysicalLocationService","getPhysicalReception","visibaProgressBar","_value","VisibaSvg","childrenFill","querySelectorAll","childrenStroke","VisibaSelectComponent","showArrow","allowInput","clearable","coreOptions","clearButton","selectValue","selectedOption","showSelect","autocomplete","changed","setOptionFromValue","filterOptions","toggleOptions","displayLabel","selectOptionFromValue","deselect","DatepickerOptions","modelFormat","spanSize","numberOfSpans","lockSpanStartDate","VisibaDatepickerComponent","_changeDetector","maxView","minView","minDate","maxDate","sunFirst","dateFormat","views","currentView","calendarStyle","currentDateSpanIndex","visibleMonth","selectedDate","dateSpans","selectedDateText","dates","calClickCheck","closeCalendar","modelChange","selectDate","openCalendar","createMonth","elRect","calWidth","changeMonth","changeYear","selectDateInSpan","isSystemSet","validateSpanIndex","currentSpan","removeDateInSpan","getDay","setDate","validateSpanSelection","increaseSpanIndex","abs","monthStartDay","setMonth","idx","daysInMonth","daysInPrevMonth","isSelected","getDateSpanClasses","classString","indexString","valid1","valid2","monthStart","dInThisM","dInPrevM","sunIdx","dayNbr","week","month","year","sun","daysLeft","VisibaTimepickerComponent","hourTimeList","hourListVisible","hourTargetedValue","minuteTimeList","minuteListVisible","minuteTargetedValue","hourModel","minuteModel","localPlaceholderHours","localPlaceholderMinutes","hideList","onModelChange","hour","setValue","minuteInputEl","showList","relatedTarget","keyPress","VisibaTelComponent","iconColor","selectedCountry","targetedCountry","countries","nativeName","numberCode","countriesFiltered","countryListSearch","closeCountrySelectEventFunction","hideCountryList","countrySelectKeyEvent","countryChange","filterCountries","countrySearch","defualtCountrySearch","toggleCountryList","showCountryList","doc","searchName","startNumber","calculatedDialcode","getDialCode","suggestnumberCode","clearnumberCode","dialCode","numericChars","DescriptiveName","VisibaNationalIdentityNumberComponent","availibleCountries","onCountryChange","placeholderGenerated","alwaysShowPlaceholder","placeholderSwap","selectionStart","selectionEnd","searchCountry","forceStaticPlaceholderForGb","setSelectionRange","selectCountryByCountryCode","placeholderArrayWithoutDashOrWhitespace","numArray","placeholderArray","dontDoWeirdFiCheck","lastIndexOf","meshArray","swap","AlignHeight","Is","tablet","Tablet","VisibaGoogleChart","google","visualization","ChartWrapper","extraWidth","chartType","dataTable","containerId","charts","packages","setOnLoadCallback","onResize","chartArea","legend","alignment","colors","ToggleSwitchComponent","AutoStick","AutoStick_1","afterCheck","autoSticks","doStickCheck","doBottomStickCheck","dontCheckFixedTarget","addClassOnStick","stickToObj","bottomStickToObj","isSticked","isStickedBottom","beforeStickOffsetTop","beforeBottomStickOffsetTop","unStick","stickToId","ngAfterViewChecked","newLeft","getOffsetLeft","replacementElement","onWindowScroll","bottomstick","boFromTopDist","getOffsetTop","myBotPosFromTopDist","bottomOTop","stickObjPos","thisPosInWin","stick","stickPos","oPosition","oMarginLeft","marginLeft","oTop","oLeft","oWidth","oClassName","parrentElement","offsetParent","offsetLeft","VisibaAlertComponent","_showExit","_mode","heading","_heading","_message","updateMode","classMap","propDecorators","DateDisplayPipe","localValue","LocalValue","DateDisplay","ZonedAsUTC","Pipe","SafeHtmlPipe","sanitizer","bypassSecurityTrustHtml","TranslatePipe","TranslateAllowEmptyPipe","ConsolePipe","ModalComponent","modalService","TimeSlotLockApiService","currentLock","lockTimeSlot","timeSlotId","removeLockOnTimeSlot","of","SemanticViewComponent","hideOnMobile","TrapFocusDirective","trapFocus","focusableEls1","focusableEls","firstFocusableEl","lastFocusableEl","firstTabbing","handleKeydown","SharedModule","SharedModule_1","forRoot","ngModule","MessagingUnitServiceV2","useClass","HTTP_INTERCEPTORS","ErrorHandler","NgModule","imports","CommonModule","FormsModule","HttpClientModule","ReactiveFormsModule","RouterModule","declarations","exports","hmr","matomo","callstatsAnalytics","apiUrl","DebugConfig","saveDebugConfig","allowMobile","__visiba__","RR","debug","output","storeValues","secretQueryParam","mirrorState","levelBeforeUpdate","setLogLevel","print","Level","storedLogs","COMPILER_PROVIDERS","Compiler","useFactory","_lastDefined","_mergeArrays","platformCoreDynamic","createPlatformFactory","platformCore","COMPILER_OPTIONS","useValue","CompilerFactory","JitCompilerFactory","_defaultOptions","compilerOptions","defaultEncapsulation","Emulated","createCompiler","_mergeOptions","optionsArr","preserveWhitespaces","CompilerConfig","deps","ResourceLoaderImpl","ResourceLoader","rej","onerror","ɵResourceLoaderImpl_BaseFactory","__ngFactoryType__","i0","ɵfac","INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS","ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS","PLATFORM_ID","ɵPLATFORM_BROWSER_ID","platformBrowserDynamic","Version","NoAuthLoginComponent","attempt","AttemptId","AppRoutingModule","AppComponent","startupService","pageLoadHandler","usageAgreementsServie","versionIsSupported","signIn","registration","signatures","currentPage","currentPageClassName","headerHeight","identityIntervalOutsider","identityInterval","requireLogin","errorMsg","lineNumber","colNumber","visitorSignedOut","changeUnit","visitorSignedOutAsOutsider","reloadAfterSignOut","checkNotificationCompliance","visitorSignedIn","overrideRequireLogin","visitorSignedInAsOutsider","checkIdentity","notificationComplianceComponent","cachedTarget","urlParts","urlAfterRedirects","setHeaderHeight","checkCookies","initMatomoTracking","UpToDate","complianceSubscription","newSettings","headerComp","headerRef","ww","SmsLoginComponent","smsAuthService","showNumberForm","showCodeForm","errorMessageNumber","gettingCode","getCode","submitNumber","RegistrationTicket","parsedNum","IframeSignInComponent","_route","authenticationWindow","iframeMessage","transaction","Status","openAuthenticationWindow","Schemes","resetLoadingState","RegistrationComponent","_registrationService","_usageAgreementsService","registrationTicket","registrationData","FieldOption","canEditNationalNumber","ReadOnly","canEditPhoneNumber","countryInfo","phoneNumberToCheck","nationalIdentityNumberToCheck","IdentifiersAlreadyInUse","confirmPhoneNumberComponent","registerPatient","DocumentSignComponent","formPP","formTos","getFormControl","RequiresExplicitAccept","keyShort","documentUrl","signed","onSubmitPP","Language","PP","allNeededIsSigned","onSubmitTos","Tos","SigninMethodEhelseComponent","eHelseUrl","AudioPlayerComponent","audioSuspended","_clickListener","windowClicked","BreadcrumbStepClass","UnitPickerComponent","onEntranceSelected","selectedUnit","activeUnit","offers","crumbs","searchStringModel","entrances","setActiveUnit","targetUnitId","entranceId","addCrumb","filterUnits","compare","unitA","unitB","textA","textB","recursiveSearchAndAdd","listableIsVisiable","crumbIndex","BreadcrumbsComponent","_location","maxCrumbs","showBackButton","startingStep","enableNavigation","overrideBackButtonUrl","clickedBreadcrumb","crumLimitation","Location","IndexComponent","flexiblePatientButtonsService","_unitController","_scheduledDataService","webContentButtonsService","myCasesNotificationCount","_subscribers","View_Index_Title","View_Index_Body","subscriber1","caseList","isInstanceOf","MobileAppPromotionComponent","appStoreLink","playStoreLink","ExternalSvgComponent","ExternalSvgComponent_1","REGEX_TO_REMOVE_RANDOM_COLOR_MODIFIERS_IN_A_SVG","imgSrc","svgData","cleansedOfCustomColor","responseText","DropInSectionFromMenuComponent","dropInQueueService","changeDetectorRef","styleElement","checkShouldRenderStatus","sheet","createSheet","cssRules","deleteRule","insertRule","removeSheet","getDropInLink","ticketUnitId","createTextNode","NonSupportedBrowser","browserIsNotSupported","versionIsNotSupported","major","AppModule","BrowserModule","WrappersModule","APP_INITIALIZER","startupServiceFactory","APP_BASE_HREF","UrlSerializer","CustomUrlSerializer","defaultUrlSerializer","DefaultUrlSerializer","splittedUrl","matrixParams","extractMatrixParams","extractQueryParams","newUrl","buildNewString","tree","param","previous","bootstrap","lookup","attachChannel","StdOutChannel","enableProdMode","bootstrapModule","TimeSlotApiService","getTimeSlots","getTimeSlot","bookTimeSlot","bookingData","availableTimeSlots","availabilityCounts","updateLockedTimeSlot","timeSlotLockId","deleteLockTimeSlot","BookingBasketService","timeSlotApiService","useReasonForVisits","BasketDataStorage","restore","reasonForVisit","populateFormsResult","populateForms","clear","newUserData","unlockTimeSlot","unlockResult","lockResult","validateResult","bookTimeSlotResult","representativeNin","f","postAnswersResult","setCompletionResult","BillId","Formatted","UnansweredFormsError","formsResult","formRespondantId","Scoped","userData","respondantType","timeSlotFilterResourceId","timeSlotFilterSpecialityId","timeSlotFilterUnitId","ViewBookingSettingsService","defaultSettings","predefinedDescriptionOfMatter","predefinedReasonForVisit","attachFiles","lockFilters","predefinedLocationType","predefinedLocationId","predefinedFilterResourceId","predefinedFilterSpecialityId","predefinedFilterUnitId","rawFromDate","setSettings","flowSettings","clearSettings","BookingScreen","WhoIsRespondant","ReasonForVisit","TimeSlot","Conclusion","Done","ViewBookingController","bookingBasketService","bookingSettingsService","redRobinApiService","basketReady","unitConfigResult","allowRepresentative","reasonForVisits","reasonForVisitsResult","fetchReasonForVisits","physicalLocationsResult","fetchPhysicalLocations","userNationality","currentCountry","supportsCountryCode","physicalLocations","restoreBasket","goToScreen","screen","analyticActionName","locationType","locationId","formPage","ViewBookingAnalyticActions","GoToScreen","goToReceptionHome","setupNewBasket","clearBasket","redRobinResult","RepresentativeNin","abortBooking","getFlowSettings","getFlowData","getFilteredReasonForVisits","filteredReasonForVisits","getSelectedReasonForVisit","selectedReasonForVisit","physicalLocationResult","NotAllowedToBeHere","DoesNotAllowRepresentative","AutoSetRespondantTypeRepresentative","AutoSetRespondantTypeMe","AutoSetReasonForVisit","SelectReasonForVisit","NoReasonForVisits","AutoSetLocation","OnlyDigital","SelectLocation","ErrorFetchingAvailability","ErrorFetchingTimeSlots","OpenTimeSlotDetails","CloseTimeSlotDetails","ErrorFetchingTimeSlotDetails","ErrorWhileLockingTimeSlot","SelectTimeSlot","SelectTimeSlotAndLogin","NoDynamicForms","NumberOfDynamicForms","ErrorFetchingDynamicForms","ErrorFetchingTimeSlot","FormIsInvalid","SelectedTimeSlotNotIsAvailable","OpenedTimeSlotNotAvailableDialog","ClosedTimeSlotNotAvailableDialog","ScreenRfvController","viewBookingController","allowedToBeHere","selectReasonForVisit","reasonForVisitId","ScreenRfv","analytic","handleSelectReasonForVisit","ScreenLocationController","screenState","locations","locationAvailability","availabilityResult","FirstAvailableUpcomingTime","nextAvailableTime","firstAvailableUpcomingTime","PhysicalLocations","getLocation","selectLocation","EmptyState","ScreenLocation","formatNextAvailableTime","timeFormat","handleLocation","ScreenTimeSlotController","nextAvailableDate","timeSlots","timeSlotDetails","filters","selectedFilters","showUnavailableTimeSlotDialog","fetchFilters","basketData","getAvailability","shouldFetchTimeSlots","setCurrentDate","firstAvailableDate","loadTimeSlots","setNextAvailableDate","capabilitiesResult","resources","Resources","resource","specialities","Specialities","speciality","FilterableUnits","setFilter","isNewWeek","startOf","availabilityCountResult","yesterday","AvailableDates","Count","NextAvailableDate","timeSlotsResult","previewTimeSlot","timeSlotResult","selectedTimeSlot","clearSelectTimeSlot","requiresPayment","RequiresPayment","unbookableAfter","UnbookableAfter","clearTimeSlotDetails","selectTimeSlot","_this9","selectedTimeslot","timeSlot","ScreenConclusionController","termsOfServiceUrl","fetchTimeSlot","commitResult","SlotNotAvailableError","abortPayment","cancelResult","NewTimeslot","requirePayment","AvatarInfo","avatarSrc","StyledTermsOfServiceSection","ScreenConclusion","setPayment","disableSubmit","setDisableSubmit","handleFileManagerStateChange","submitResult","paymentBillId","handleInvalidSubmit","_handlePaymentSuccess","handleMessageChange","handleSubmitClick","showReasonTextarea","showAttachFiles","onInvalid","helperText","optional","TimeSlotInfo","PaymentSheet","handlePaymentSuccess","handlePaymentAbort","TimeSlotNotAvailableDialog","defaultOpen","getDateSpanDisplay","startOfCurrentWeek","endOfCurrentWeek","WeeklyCalender","onDateChange","onDayClick","startOfTodayWeek","getFirstAvailableDayOfWeek","prevWeek","disablePrevButton","currentWeekText","dayList","currentDateContainer","handlePrevWeek","handleNextWeek","nextWeek","dayButton","handleDayClick","dayName","dayNumber","dayNotification","surfaceDarkBrand","onDark","highlight","xSmallSemiBold","ScreenTimeSlot","ScreenTimeSlotContent","triggerButtonRef","isSmallDevice","timeSlotDetailsOpen","setTimeSlotDetailsOpen","handleTimeSlotDetailsOpenChange","handlePreviewTimeSlot","handleGoToNextAvailableDate","handleAutoFocusOnDetailClose","_fetchData","fetchData","handleWhenOldSignInIsTriggered","handleWhenOldSignInIsAborted","onInputChange","handleFilterChange","TimeSlotFilters","appointmentType","endTime","hcpName","hcpTitle","TimeSlotDetails","onOpenAutoFocus","setVisible","handleClearFilter","handleToggleFilter","right","ease","InputCombobox","handleSelectTimeSlot","handleCloseSignInSheet","breakpointMediumAndUp","largeRegular","ScreenFormsController","tempDisposers","loadSingleForm","nextFormId","getNextFormId","currentFormId","currentFormIndex","ScreenForms","Navigate","ScreenWhoIsRespondantController","respondentType","representativeNinPlaceholder","NiNFormatter","formatWithPlaceholder","ScreenWhoIsRespondant","ScreenWhoIsRespondantFormInputs","watch","handleRespondentTypeChange","InputText","handleRepresentativeNinChange","DoneInner","ScreenError","handleRestart","ViewBooking","_handleAbort","ViewBookingSetup","ViewBookingRoutes","_setup","BookingWrapper","UniversalConfigService","PatientFlowContainer","bookingWrapperRoutes","bookingWrapperRouting","forChild","ScreenProvider","setActive","screensRef","protectedScreensRef","screenStack","setScreenStack","protectedScreens","screens","activate","dismiss","ScreenOrigin","canHideMain","MotionConfig","isValidProp","loadExternalIsValidProp","MotionConfigContext","useMemo","transformPagePoint","reducedMotion","jsx","LiveAnnouncerProvider","DialogHandlerType","DialogStack","newApplicationState","FlowState","ACCESSIBLE","currentActiveModal","createSpecification","shortid","injectSpecification","mutate","DialogHandlerController","dialogStack","renderGlobal","addDialog","dialog","setGlobalRender","setScopedRender","DialogHandler","useApplicationState","Consent","StyledConcentCard","handleDenyClick","handleSettingsClick","handleAcceptClick","flying","restrictedZIndexes","DANGER","ConsentProvider","StyledConsentProvider","StyledConsentAnimation","parentContainer","useInheritanceLink","GlobalProviders","useCurrentLocation","overrides","ConsentProviderOrFragment","CellulaProvider","tokenOverrides","colorPrimary100","primary_100","colorPrimary200","primary_200","colorPrimary300","primary_300","colorPrimary400","primary_400","colorPrimary500","primary_500","colorPrimary600","primary_600","colorPrimary700","primary_700","colorPrimary800","primary_800","colorPrimary800t08","colorPrimary800t12","colorPrimary900","primary_900","colorPrimary1000","primary_1000","colorAccent100","accent_100","colorAccent200","accent_200","colorAccent300","accent_300","colorAccent400","accent_400","colorAccent500","accent_500","colorAccent600","accent_600","colorAccent700","accent_700","colorAccent800","accent_800","colorAccent800t08","colorAccent800t12","colorAccent900","accent_900","colorAccent1000","accent_1000","providedInRoot","PopoverManager","LocalPushNotifications","BannerNotifications","REACT_ONLY_PATCH_WTF_IS_GOING_ON_WITH_THIS_CODE_BASE","ScreenProvider_REMOVE_THE_OTHER_ONE","Inner","lazy","ChangeUnit","ErrorBoundary","CookiePolicyController","getCookiePolicyLanguageFile","intoChunks","table","row","rows","CookiePolicySkeleton","customSpacer","CookiePolicy","explicitLanguage","cookiePolicyController","TextChunk","rowItem","h3","CookiePolicyWrapperComponent","RateApiService","deleteResult","setActiveBasketIdResult","setActiveBasketId","getBasketResult","basketProducts","MessagingProducts","populateBasket","addData","clearResponse","ProductId","ReceptionConditionId","Answered","CreateNewMessageSettingsService","CreateNewMessageController","rateApiService","createNewMessageSettingsService","priceResult","startMessageResult","fetchPrice","fetchTexts","PaymentWorkflow","screenStart","analyticsSettings","CreateNewMessageAnalyticActions","UsingSettings","getCurrentBasket","basketDeleteResponse","conversationId","messageResult","Messaging_Intro_Title","Messaging_Intro_Message","NoForms","NumberOfForms","LoadForm","ScreenStart","handleNext","createNewMessageController","setReasonForVisit","postResponse","CommitResultStatus","QueryCommitStatus","ValidationResultType","ValidationErrors","PendingPayment","ReservationCommitted","CommitInProgress","JobNotFound","CompletedOk","Prepared","InProgress","WaitingForPickup","PaymentRequired","SystemError","FormMissingResponse","RecreateProduct","NoProducts","JustOneProduct","addReasonResult","addFilesResult","FileReference","ValidationResult","PaymentBillId","CommitJobId","NonRecoverableError","waitForCommitStatus","commitStatusResult","messageConversationId","MessagingCases","StyledBottomSection","selectedRfv","showMessageTextArea","showDetails","emptyDescription","ViewCreateNewMessage","ViewCreateNewMessageSetup","ViewCreateNewMessageRoutes","_setupBasket","setupBasket","AVATAR_NAME","createAvatarContext","createAvatarScope","createContextScope","AvatarProvider","useAvatarContext","forwardedRef","__scopeAvatar","avatarProps","imageLoadingStatus","setImageLoadingStatus","onImageLoadingStatusChange","Primitive","IMAGE_NAME","AvatarImage","onLoadingStatusChange","imageProps","useImageLoadingStatus","loadingStatus","setLoadingStatus","isMounted","updateStatus","handleLoadingStatusChange","useCallbackRef","FALLBACK_NAME","AvatarFallback","delayMs","fallbackProps","canRender","setCanRender","timerId","Fallback","RadixAvatar","css","IllustrativeContent","initials","createInitials","S","T","scrollWidth","__wrap_o","__wrap_b","dataset","brr","I","suppressHydrationWarning","nonce","preferNative","hasProvider","A","R","verticalAlign","textDecoration","textWrap","StyledView","StyledUniqueButtons","Home","__TEMP__onSignIn","HomeController","shouldShowAttentionCard","Medium","AttentionCard","HomeContextForLegacyRouting","legacySignInRouting","Hero","SuspendedPresentation","DataContainer","breakpoint","buttonIdentifierList","dataSet","componentsLarge","componentsSmall","FlexibleIdentifier","flexibleComponentService","createConcurrent","suspend","LayoutLarge","LayoutSmall","FlexibleComponentService","StyledHero","StyledBackground","StyledTitle","xLarge","StyledDescription","xSmall","InnerContainer","Balancer","Card","bottom","bounciness","patter","ShimmerBox","rightDefault","bottomDefault","scaleDefault","dive","validBreakpoint","rotate","zIndex","transformOrigin","baseDuration","IIcon","StyledArrowAligner","StyledArrowDown","setShow","wasMounted","Tooltip","handleScrollDownClick","translateY","rotation","onlyOffer","forwardSignIn","ScenarioService","escalatedScenario","escalateScenarios","scenarios","escalation","scenario","def","DeferredPromise","analyticQuirk_category","analyticQuirk_name","successButtonVariant","Scenario","ScenarioRoot","scenarioService","NotificationSettingsApiService","MyAccountController","notificationSettingsApiService","scenarioController","MyAccountState","ScenarioWithoutNotifications","ScenarioEmailAndSmsNotificationsWithoutEmailAndMobileNumber","ScenarioSmsNotificationsWithoutMobileNumber","ScenarioEmailNotificationsWithoutEmail","notificationsViaEmail","notificationsViaSms","identityResponse","notificationSettingsResponse","canDelete","getDeletePermission","MyAccountDeleteButton","_handleDeleteAccount","successProps","handleDeleteAccount","onDialogOpenChange","onDialogAbort","daysToDepersonalizeClient","validatorFactory","Optional","uiTimeout","setUiTimeout","buttons","buttonsDivider","notificationFieldset","fieldset","notificationFieldsetLabel","MyAccountRoot","MyAccountTitle","MyAccountForm","submitButtonRef","disabledSubmitButtonWhenClean","validateKindaOkEmail","ScreenAccount","BrowserRouter","useMotionValue","motionValue","setLatest","getMixer","mix","isCustomValueType","useCombineMotionValues","combineValues","updateValue","useIsomorphicLayoutEffect","frame","preRender","cancelFrame","useTransform","inputRangeOrTransformer","outputRange","useComputed","compute","collectMotionValues","transformer","useImmediate","argOffset","inputValue","inputRange","interpolator","interpolate","mixer","useListTransform","numValues","StickyTopBannerContent","SCROLL_THRESHOLD","LEAP_TRIGGER","StickyTopBannerLeapScrollVariant","pixelsScrolled","StickyTopBannerStickyScrollVariant","scrollYOnDirectionChange","lastPixelsScrolled","lastScrollDirection","isScrollingDown","getPrevious","scrollDirection","currentPixelsScrolled","newPixelsScrolled","StickyTopBanner","VariantComponent","font","uniqueButtons","buttonCount","ReceptionHomeLayout","aboutUsSection","heroSection","actionSection","footerSection","pageBrand","Banner","unitNode","useSelectedEntrance","ReceptionHomeSkeleton","useWindowSize","uniqueButtonsComponents","Bleed","viewportWide","ReceptionHomeHero","textReceptionTitle","receptionTitleText","textReceptionBody","receptionBodyText","verticalPadding","LogoUrl","sanitizedInjectHTML","ReceptionHomeController","onMount","textsPromise","unitComponentsPromise","promiseGroup","textsResponse","componentsResponse","parseResultsToPresentationModel","texts","parseUnitComponentsResponse","textAboutUs","Web_About","ReceptionHomeAboutUs","preserveLineBreaks","__TEMP__on_OPW_WebContentButton_proxy_invoke","requestSignIn","flexibleIdentifierData","ViewRedRobinRedirect","RedRobinRedirectController","handleBackClick","isInIframe","postMessage","VisitsController","ongoingCases","completedCases","casePollerDisposer","parsePolledData","clearEvents","sortByDateDescending","dataA","dataB","sortByDateAscending","TabNavigation","SCROLL_AREA_NAME","createScrollAreaContext","createScrollAreaScope","ScrollAreaProvider","useScrollAreaContext","ScrollArea","React2","__scopeScrollArea","scrollHideDelay","scrollAreaProps","scrollArea","setScrollArea","viewport","setViewport","setContent","scrollbarX","setScrollbarX","scrollbarY","setScrollbarY","cornerWidth","setCornerWidth","cornerHeight","setCornerHeight","scrollbarXEnabled","setScrollbarXEnabled","scrollbarYEnabled","setScrollbarYEnabled","composedRefs","useComposedRefs","useDirection","onViewportChange","onContentChange","onScrollbarXChange","onScrollbarXEnabledChange","onScrollbarYChange","onScrollbarYEnabledChange","onCornerWidthChange","onCornerHeightChange","VIEWPORT_NAME","ScrollAreaViewport","viewportProps","jsxs","overflowX","overflowY","minWidth","SCROLLBAR_NAME","forceMount","scrollbarProps","isHorizontal","ScrollAreaScrollbarHover","ScrollAreaScrollbarScroll","ScrollAreaScrollbarAuto","ScrollAreaScrollbarVisible","hideTimer","handlePointerEnter","handlePointerLeave","Presence","present","debounceScrollEnd","useDebounceCallback","useStateMachine","initialState","machine","SCROLL","scrolling","SCROLL_END","POINTER_ENTER","interacting","POINTER_LEAVE","HIDE","prevScrollPos","scrollPos","onPointerEnter","composeEventHandlers","onPointerLeave","handleResize","isOverflowX","isOverflowY","useResizeObserver","thumbRef","pointerOffsetRef","sizes","setSizes","scrollbar","paddingStart","paddingEnd","thumbRatio","getThumbRatio","commonProps","onSizesChange","hasThumb","onThumbChange","thumb","onThumbPointerUp","onThumbPointerDown","pointerPos","getScrollPosition","getScrollPositionFromPointer","pointerOffset","thumbSizePx","getThumbSize","thumbCenter","thumbOffsetFromEnd","minPointerPos","maxPointerPos","maxScrollPos","scrollRange","linearScale","ScrollAreaScrollbarX","onThumbPositionChange","getThumbOffsetFromScroll","scrollLeft","onWheelScroll","onDragScroll","ScrollAreaScrollbarY","computedStyle","setComputedStyle","composeRefs","getComputedStyle","ScrollAreaScrollbarImpl","deltaX","isScrollingWithinScrollbarBounds","toInt","paddingLeft","paddingRight","deltaY","paddingTop","paddingBottom","ScrollbarProvider","useScrollbarContext","setScrollbar","rectRef","prevWebkitUserSelectRef","handleWheelScroll","handleThumbPositionChange","handleDragScroll","clientX","clientY","handleWheel","passive","onPointerDown","mainPointer","setPointerCapture","pointerId","webkitUserSelect","scrollBehavior","onPointerMove","onPointerUp","hasPointerCapture","releasePointerCapture","THUMB_NAME","ScrollAreaThumb","thumbProps","scrollbarContext","ScrollAreaThumbImpl","scrollAreaContext","composedRef","removeUnlinkedScrollListenerRef","listener","addUnlinkedScrollListener","onPointerDownCapture","thumbRect","CORNER_NAME","hasBothScrollbarsVisible","ScrollAreaCornerImpl","cornerProps","setWidth","hasSize","height2","width2","viewportSize","contentSize","scrollbarPadding","thumbSize","maxThumbPos","scrollWithoutMomentum","handler","prevPosition","rAF","isHorizontalScroll","isVerticalScroll","cancelAnimationFrame","handleCallback","debounceTimerRef","Viewport","illustrativeSelection","IllustrativeSelection","avatar","textSections","textSection","ExtensiveInfo","representativeNiN","participantAmount","formattedDate","TextSectionOne","TextSectionTwo","arrow","labels","actionIconWrapper","ComprehensiveInfo","pendingPayment","formsNotSigned","stateText","isNew","Labels","ActionContainer","ArrowForMobile","Action","tooltipText","ActionPayment","clampMax","CountDownerBadge","BottomBanner","useTrackedIssue","CaseCard","issuesTrackedBy","showRfv","showTime","showLabel","shownLabelIcon","showBannerText","showReceptionName","showRepresentativeNiN","issuePendingPayment","issueFormsNotSigned","issueUnreadMessages","showIsNew","getAriaLabel","reception","lobbyOpenBannerText","typeStr","paymentSection","formSection","formCount","messageSection","messagesCount","rfvList","cardLabelContainer","cardLabelText","ul","CaseList","caseCollection","selectedCase","selectedCaseIdentifier","isPhysical","ReservedUntilDialogAlert","EmptyStateLocal","setIsOpen","ActivatedTab","tab","useSelectedCase","wildcard","identifier","messageCase","SignInEmptyState","ListRoot","ongoingIssues","completedIssues","bleedAmount","hiddenLabel","trailingSlot","Heading","bleed","Bar","analyticQuirk_handleTabClick","ViewNavBar","isExtraSmallScreen","DropdownMenu","StyledPortal","Portal","Screen","canBeActivated","isActivated","ActivatedScreen","cellulaContext","useCellulaProviderContext","cellulaId","hideWhenDesktop","physicalLocationImage","information","receiptLink","InfoViewAppointmentDetails","_mobileBreakpoint","LeftSection","RightSection","showPaymentSection","isPayed","shouldShowPayment","Row","topLeading","PaymentCard","PaymentCardInner","InfoViewAppointmentUnhandledActions","isUnpaid","paymentIsFinished","formsAreFinished","horizontalPadding","ContactItem","imageSrc","grid","InfoViewAppointmentParticipant","outerContainer","innerContainer","primaryAction","cancelAction","fixed","InfoViewAppointmentActions","_data","isMediumDeviceAndAbove","showLobbyNotOpenInfo","showPrimaryAction","PrimaryAction","CancelAction","useNavigate","callButtonIsDisabled","handleJoinCallButtonClick","isMultiPartCall","analyticQuirkProxyEvent_handleModalAlertAbort","analyticQuirk_handleModalAlertAbort","DialogAlertTrigger","_DialogAlertTrigger","hideWhenMobile","navBarWrapper","InfoViewAppointment","mobileBreakpoint","workableData","CountDownerNotificationAlert","SelectedAppointmentCase","getAppointmentCase","VisitsChatCommunicator","hiddenNavBarGoBackLink","InfoViewMessaging","shouldUseScreen","chatCommunicatorRef","handleMarkAsCompleted","handleReceivedHistory","NavBar","dateTime","SelectedMessagingCase","messageId","getMessageCase","LegacyShell3Layout","PageOutlet","StyledAppointmentWrapper","StyledMessagingWrapper","Grid","areas","base","M","columns","gridArea","VARIANT","ViewPatientCases","breakPoint","FixedRoutes","AppointmentCase","MessagingCase","TerribleAngularRedirectFix_DO_NOT_USE","VisitsWrapperComponent","AttentionCardWrapper","ReadMoreTextContext","maxLineNumber","ReadMoreText","showButton","setShowButton","toggleIsOpen","CollapsibleTrigger","BaseButton","FooterController","unitAboutPromise","loadConfig","unitAboutResponse","unitAbout","webAbout","addressInfo","VisitAddress","privacyPolicyUrl","aboutUsText","UrlLinkName","CountryFlag","getSvgPath","knownVisibaLocal","LanguageSelect","onValueChange","languageSelect","ceLogo","LanguageSelectSection","__TEMP__changeLanguage","analyticContext","handleLanguageChange","convertedLangCode","FooterLayout","addressInfoSection","externalLinkSection","infoTextSection","legalSection","appSection","wrap","FooterSkeleton","linkIconContainer","appLogoImage","appLink","footerController","AddressInfoSection","ExternalLinkSection","InfoTextSection","LegalSection","legalFields","AppSection","addressField","LinkWithIcon","analyticQuirk_handleClick","legalField","analyticQuirk_handleAppLinkClick","appType","androidDownloadLink","ASSET_IMAGE_PATH","androidImageUrl","iosDownloadLink","iosImageUrl","FooterWrapperComponent","convertedCode","useRouteDetails","relativeTo","isCurrentPage","absoluteTo","VisibaLink","iconActive","iconSize","_to","badgeNumber","__TEMP__navigate","setIsHovering","onMouseEnter","onMouseLeave","__TEMP__to","Layout","LinkReceptionPicker","LinkMyCases","LinkHome","HeaderNavController","showLinkHome","willShowHomeLink","showLinkReceptionPicker","willShowReceptionPickerLink","showLinkMyCases","hasMultipleLandingPages","headerNavController","usernameWrapper","userName","CallToAction","__TEMP__onSignOut","myAccountUrl","ext","handleNameClick","AuthButton","handleAuthClick","handleSignOutClick","terminateActiveIdentity","logoUrl","customerLogo","DIALOG_NAME","createDialogContext","createDialogScope","DialogProvider","useDialogContext","__scopeDialog","openProp","modal","triggerRef","contentRef","setOpen","useControllableState","defaultProp","contentId","useId","titleId","descriptionId","onOpenToggle","prevOpen","TRIGGER_NAME","DialogTrigger","triggerProps","composedTriggerRef","PORTAL_NAME","PortalProvider","usePortalContext","DialogPortal","PortalPrimitive","OVERLAY_NAME","portalContext","overlayProps","DialogOverlayImpl","RemoveScroll","allowPinchZoom","shards","CONTENT_NAME","DialogContent","contentProps","DialogContentModal","DialogContentNonModal","hideOthers","DialogContentImpl","disableOutsidePointerEvents","onPointerDownOutside","originalEvent","ctrlLeftClick","ctrlKey","onFocusOutside","hasInteractedOutsideRef","hasPointerDownOutsideRef","onInteractOutside","useFocusGuards","FocusScope","trapped","onMountAutoFocus","onUnmountAutoFocus","DismissableLayer","onDismiss","TitleWarning","DescriptionWarning","TITLE_NAME","DialogTitle","titleProps","DESCRIPTION_NAME","DialogDescription","descriptionProps","CLOSE_NAME","DialogClose","closeProps","TITLE_WARNING_NAME","WarningProvider","useWarningContext","contentName","titleName","docsSlug","titleWarningContext","MESSAGE","describedById","getAttribute","StyledListItem","MenuListItem","badgeCount","authenticate","analyticQuirk__text","PrimitiveRadixDialog","retrieveActiveIcon","StyledDialogContent","sidebarVariants","restDelta","closed","AS_TEMP_PROPS","tooltipAlign","analyticQuirk_handleOpenMenuClick","analyticQuirk_handleCloseMenuClick","AuthButtonSection","handleSignInClick","breakpoints","HeaderWrapperComponent","isFirstNavigation","routerSubscription","registerOutsideCollectorListener","listeners","forwardSignOut","forwardNavigate","forwardChangeLanguage","PopoverManagerComponent","AppointmentLazy","Appointment","VideoCallWrapperComponent","appointmentFlowService","navigateToDuplicateConnection","handleLeave","__TEMP__onLeave","__TEMP__navigateToDuplicateConnection","fakeButton","OLD_useNewReceptionPage_languageSelectContainer","languageSelectContainer","deviceType","UAParser","getDevice","userIgnoresPrompt","userIsOnDesktop","userIsGuestParticipant","appDownloadLink","getAppDownloadLink","userOS","getOS","isMobileBrowserFriendly","showLanguageSelect","shouldBlockRouteOnMobile","setHidden","handleAppButtonClick","AnalyticButton","handleContinueInBrowserClick","DeviceGatewayWrapperComponent","blockRouteOnMobileWeb","currentUrl","LanguageSelectWrapperComponent","LicenceHolderFooterComponent","unitsService","inverted","aboutText","showFulLAboutText","isIos","VisibaLogoStyle","addHyphensToEmail","removeUrlStart","SignInController","idpUrlRedirectStorageService","normalizeReturnUrl","idpUrlRedirectStorage","smallBreakpoint","__TEMP__onCloseSignIn","contentShow","RadixDialog","SignInModal","SignInWrapperComponent","getBaseUri","countrycode","getIceServers","turnTest","TurnProtocol","Port","Success","AnswerFormQuestionErrorStatus","AppPlatform","AuthMethodUsage","AuthScheme","BookingParticipantRole","BookingSource","ClientCaseDefinition","ClientCaseIssueType","ClientCaseType","CloudMessageTargetType","DocumentType","ExternalDataType","FormQuestionType","HorizontalAlignment","ListDirection","OpenUrlWithKind","PaymentWorkflowType","PrioritizedClientCaseDefinition","PrioritizedClientCaseType","SpacerSize","TextFormat","TextSize","TextWeight","TimeslotSearchCapability","QuestionNotFound","IncompatibleAnswerType","IncompatibleAnswerRange","IOs","Office","Native","Redirect","WebView","Host","User","Invitation","Timeslot","WaitingRoom","MessagingConversation","PhysicalAppointment","AwaitingPayment","AwaitingFormResponse","UnreadMessages","NewIncoming","WebCommonHeaderSignOutButton","WebAppointmentTakeScreenshotButton","WebAppointmentSharedFiles","WebAreaStart","WebAppointmentShareScreenButton","WebIcdOutcomeInput","WebAppointmentCloseAfterCallButton","NameValue","End","Vertical","Horizontal","NoPayment","ManualByHolder","ByUserBeforeEntering","CurrentAppointment","NewMessages","NewMessagesDifferentCases","UnansweredForms","UpcomingAppointment","XSmall","XLarge","Plaintext","Markdown","SmallBody","Body","LargeBody","SmallTitle","Semibold","Bold","DateFrom","DateTo","TimeFrom","TimeTo","ResourceSpecialityId","ResourceConditionId","ResourceUnitId","LicenceHolderApiService_1","baseUri_OLD","getSupportedLanguages","licenceHolder","translationsSet","VisibaOptions","successful","interceptors","isAuthenticated","provideSubscription","handleSubscriberEvent","interceptor","parseUserApiModel","SheetIsAbsentError","ThemeService","replaceTheme","themeModel","segments","MappedTheme","ThemeModel","createWithOldThemeVariables","oldTheme","c_mainColorDark","topNavigationBarBackground","topNavigationBarText","bottomNavigationBarBackground","bottomNavigationBarActiveItem","bottomNavigationBarInactiveItem","webMainNavigationBarBackground","webMainNavigationBarActiveItem","c_textTheme","webMainNavigationBarInactiveItem","webMainNavigationBarHoverIndicator","rgba","Color","createRgb","background1a","c_backgroundMain","background1b","textOnThemedBackground","secondaryTextInThemedBackground","baseButtonDefault","baseButtonHover","baseButtonClicked","iconButtonIcon","baseButtonText","iconButtonSecondaryText","baseButtonDisabled","baseButtonDisabledText","inputFieldBackground","inputFieldIcon","inputFieldText","inputFieldPlaceholderText","inputFieldBorder","background2","textOnBackground2","c_textLight","uiCardBackground","uiCardText","c_textBody","uiCardSecondaryText","imageText","imageOverlay","textOnWhiteBackground","secondaryTextOnWhiteBackground","themedTextOnWhiteBackground","primaryButtonDefault","primaryButtonHover","c_buttonHoverBackground","primaryButtonClicked","c_mainColorDarkActive","primaryButtonText","c_buttonText","secondaryButtonDefault","secondaryButtonBorder","secondaryButtonHover","secondaryButtonClicked","secondaryButtonText","textButton","disabledButton","c_buttonDisabledBackground","disabledButtonText","c_buttonDisabledText","uiElements","hyperLinkDefault","c_textLink","hyperLinkHover","c_textLinkHover","hyperLinkClicked","chatBubble1","chatText1","chatBubble2","chatText2","selectedElement","hoveredElement","accentColor","c_accentColor","systemColorSuccess","systemColorAttention","systemColorError","c_buttonDangerBackground","systemColorFocus","toLocaleUpperCase","ConfigNotSet","themeService","loadedConfigs","languagesCache","getLanguageData","parseAppConfig","licenceHolderMetaData","parseLicenceHolder","unitIdOrigin","mapLanguages","mappedLanguages","isSupported","visibaCode","NativeName","translatedName","imageLanguage","DisplayName","storeCompanyName","StoreCompanyName","legalName","LegalName","FULL_DISPLAY_IN_CURRENT_YEAR","FULL_DISPLAY_NO_CURRENT_YEAR","_BrowserList","apiComponent","baseSpec","order","horizontalAlignment","sortFunction","convertUrlToAbsoluteRoute","FlexibleButtonModel","hasExternalIllustration","IconPngUrl","FlexibleButtonIconModel","FlexibleButtonHyperlinkModel","FlexibleImageModel","imageHeight","ImageHeight","imageWidth","ImageWidth","FlexibleListModel","FlexibleListDirectionalModel","Direction","FlexibleTextModel","Size","weight","Weight","FlexibleSearchModel","FlexibleSpacerModel","FlexibleRecentVisitsModel","FlexibleActionCardModel","FlexibleRockBottomModel","normalizeUrlPathName","hostnameIsWithinSameDomain","FlexibleModelBase","SpaContextService","mockedResponseData","customHeadersBuilder","interceptBeforeGoingToRequester","clientIdentitySession","MockClient","httpClientRef","mockUrl","hasBody","storedData","exhaustMockResponse","ApplicationError","visibaOption","mock","wrapMockedResponseToBecomeVisibaBackendResponse","setCustomOption","setConfig","baseURL","assert","verbose","CriticalMissingConfigError","rootLanguageCode","enforcedWhiteLabel","CouldNotLoadUnitError","NoLocationCouldHaveBeenSet","getHeadingTowardsOrCurrentLocation","getHeadingTowardsOrCurrentEntrance","entranceUnitId","recentVisitService","selectingLocation","selectedLocation","selectingEntrance","selectedEntrance","shouldSelectEntrance","registerVisit","BannerNotification","ui","BannerMessageUi","latestVisited","asCssVariableGetter","locatedUnit","setLocatedUnit","getInitialLocation","setLoadedConfig","getInitialConfigValue","handleCommit","locatedEntrance","setLocatedEntrance","getInitialEntrance","loadedEntranceConfig","setLoadedEntranceConfig","getInitialEntranceConfigValue","__TEMP__setTitle","__TEMP__forceRegularLink","trackingCategory","AttentionCardController","setAttention","teardown","mapEnumToAnalyticEventAction","leading","parseData","parseAppointmentCase","countedParticipants","ParticipantCount","goToDetailView","actingHcp","ActingHcp","TicketId","parseMessageCase","Case","CaseId","unreadCount","UnreadCount","LastMessageFromPeerTimestamp","unansweredFormsNames","NewMessage","UnreadMessagesCount","dateFormatted","dateInstance","participantCount","variableToRgb","variableName","variableToHex","getPropertyValue","STANDARD_BOX_SHADOW","thumbnail","textContainer","iconWrapper","useAccentColor","modifiedText","childrenByType","toArray","hasFooter","CaseCardFooter","CaseCardThumbnail","CaseCardTitle","CaseCardSubtitle","CaseCardDate","CaseCardIcon","FONT_VARIANT","LARGE_BODY","BODY","fontWeight","Thumbnail","alertiveIcon","AttentionCardCaseCardWrapper","alertiveTitle","UglyMessLink__TEMP__","handleIntercept","AttentionCardTypeUnansweredForms","isAppointment","AttentionCardTypeUnpaid","AttentionCardCaseCardMessage","AttentionCardTypeNewMessage","AttentionCardTypeNewMessagesDifferentCases","badge","DEFAULT_SIZE","AvatarContext","getAppointmentParticipantsText","AttentionCardCaseCardAppointment","alertive","participantsText","AvatarIcon","Badge","AvatarBadge","Amount","AttentionCardTypeUpcomingAppointments","AttentionCardTypeCurrentAppointment","ellipse","BadgeAmount","displayAmount","focusContext","allowPassThrough","onFocus","onMouseDown","onMouseUp","onMouseOver","onKeyUp","onTouchMove","onMouseMove","buttonRef","combinedRef","useCombinedRefs","isFocused","setIsFocus","handleBlur","handleFocus","handleKeyDown","handleKeyUp","handleMouseDown","handleMouseMove","handleMouseEnter","handleMouseLeave","handleMouseUp","handleTouchMove","handleMouseOver","baseInput","BaseInput","errorInfo","getDerivedStateFromError","componentDidCatch","_error","componentStack","immediately","openWith","parsedUrl","convertUrlToEmbeddedWebLink","FlexibleButton","SvgHttpService","overrideColor","svgContent","unsafeSvgString","parsedUnsafeSvgString","ExternalSvg","visibaImageHttpClientService","gracefulDegradation","FlexibleButtonIcon","VStack","linkWrapper","FlexibleButtonHyperlink","center","FlexibleImage","FlexibleList","SMALL_BODY","FlexibleListDirectional","HStack","FlexibleRockBottom","FlexibleSearch","SearchReceptionComboBox","includeBrowseInResult","handleOpenChange","onNodeSelected","handleNodeSelected","eventAction","BROWSE_KEY","domCastingMap","SMALL_TITLE","TITLE","fontVariantMap","fontWeightMap","FlexibleText","fontVariant","domAs","spacerValueMap","FlexibleSpacer","fixedSizeContainer","illustrative","FlexibleRecentVisitsButtonIcon","FlexibleRecentVisits","Controller","presentationAuthState","authStateDisposer","actionTextContainer","handleOnClick","FlexibleActionCard","iconElement","getIcon","analyticQuirk_handleButtonClick","iconMap","loadedIconSet","BaseIcon","ol","listItem","warning","setNotifications","wrapperRef","toastRef","listRef","closeTimerRef","removeNotification","handleChange","toBeRemoved","Toast","handleOnKeyDown","nativeEvent","SquareButton","InformationBanner","removeFn","handleRemoveClick","outer","overlay","variantsWrapper","enter","variantsInner","preservedChild","createModalChild","cloneElement","Modal","popoverController","PopoverController","popoverService","modalStack","animationProps","animations","persistent","$e5be200c675c3b3a$export$aca958c65c314e6c","badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing","$e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE","$e5be200c675c3b3a$export$dad6ae84456c676a","isInvalid","validationDetails","validationErrors","$e5be200c675c3b3a$export$571b5131b7e65c11","$69F46$createContext","$e5be200c675c3b3a$export$a763b9476acd3eb","$e5be200c675c3b3a$export$fc1a364ae1f3ff10","realtimeValidation","displayValidation","updateValidation","resetValidation","commitValidation","$e5be200c675c3b3a$var$useFormValidationStateImpl","validationState","builtinValidation","validationBehavior","controlledError","clientError","$69F46$useMemo","$e5be200c675c3b3a$var$getValidationResult","$e5be200c675c3b3a$var$runValidate","$e5be200c675c3b3a$var$asArray","serverErrors","$69F46$useContext","serverErrorMessages","flatMap","lastServerErrors","setLastServerErrors","$69F46$useState","isServerErrorCleared","setServerErrorCleared","serverError","nextValidation","$69F46$useRef","currentValidity","setCurrentValidity","lastError","commitQueued","setCommitQueued","$e5be200c675c3b3a$var$isEqualValidation","$69F46$useEffect","$c5a24bc478652b5f$export$1005530eda016c13","collection","getChildren","$c5a24bc478652b5f$export$8c434b3a7a4dad6","parentKey","aAncestors","$c5a24bc478652b5f$var$getAncestors","bAncestors","firstNonMatchingAncestor","parents","$a02d57049d202695$export$d085fb9e920b5ca7","Symbol","iterator","iterable","keyMap","getKeyBefore","prevKey","getKeyAfter","nextKey","getFirstKey","firstKey","getLastKey","lastKey","at","nodes","visit","last","$e40ea825a81a3709$export$52baac22726c72bf","anchorKey","currentKey","$458b0a5536c1a7cf$export$40bfa8c7b0832715","stateValue","setStateValue","$3whtM$useState","isControlledRef","$3whtM$useRef","isControlled","$3whtM$useEffect","wasControlled","$3whtM$useCallback","onChangeCaller","onChangeArgs","updateFunction","oldValue","functionArgs","interceptedValue","$7af3f5b51489e0b5$var$convertSelection","selection","$d496c0a20b6e58ec$export$6c8a5aaad13c9852","selectionMode","disallowEmptySelection","selectionBehavior","setSelectionBehavior","setFocused","focusedKey","childFocusStrategy","setFocusedKey","selectedKeys","getSelectAllKeys","rawSelection","getKey","canSelectItem","isEmpty","isSelectAll","_isSelectAll","allKeys","firstSelectedKey","first","$jkhUT$compareNodeOrder","lastSelectedKey","disabledKeys","disabledBehavior","extendSelection","toKey","replaceSelection","getKeyRange","setSelectedKeys","fromItem","toItem","getKeyRangeInternal","allowsCellSelection","toggleSelection","addKeys","hasChildNodes","$jkhUT$getChildNodes","$c5a24bc478652b5f$export$5f3398f8733f90e2","selectAll","clearSelection","toggleSelectAll","pointerType","isSelectionEqual","_item_props","_this_collection_getItem_props","_this_collection_getItem","isLink","getItemProps","_options_allowsCellSelection","$eb2240fc39a57fa5$export$bf788dd355e3a401","build","$eb2240fc39a57fa5$var$iterable","iterateCollection","getFullNode","renderer","$fzaAv$react","partialNode","_v_key","getChildState","cached","cache","shouldInvalidate","isValidElement","getCollectionNode","done","nodeKey","$eb2240fc39a57fa5$var$compose","$eb2240fc39a57fa5$var$capitalize","rendered","textValue","WeakMap","$e72dd72e1c76a225$export$2f645645f7bca764","selectionState","$7af3f5b51489e0b5$export$253fe78d46329472","allowDuplicateSelectionEvents","selectionBehaviorProp","isFocusedRef","$6tM1y$useRef","$6tM1y$useState","focusedKeyRef","childFocusStrategyRef","selectedKeysProp","$6tM1y$useMemo","defaultSelectedKeys","$6tM1y$useControlledState","onSelectionChange","disabledKeysProp","lastSelectionBehavior","$6tM1y$useEffect","$7af3f5b51489e0b5$var$equalSets","setA","setB","$d5vlZ$useMultipleSelectionState","$d5vlZ$useMemo","$d5vlZ$useCallback","suppressTextValueWarning","$7613b1592d41b092$export$6cd28814d92fa9c9","$lbNth$useMemo","$d5vlZ$useCollection","selectionManager","$d5vlZ$SelectionManager","cachedCollection","$d5vlZ$useRef","$d5vlZ$useEffect","startItem","cachedItemNodes","itemNode","itemNodes","newNode","isReverseSearching","$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e","_collection_getItem","_collection_getItem1","defaultFilter","menuTrigger","allowsEmptyCollection","allowsCustomValue","shouldCloseOnBlur","showAllItems","setShowAllItems","$49BJP$useState","setFocusedState","focusStrategy","setFocusStrategy","_props_items","selectedKey","setSelectedKey","selectedItem","$a0d645289fe9b86b$export$e7f05e985daf4b5f","_props_defaultSelectedKey","$eBozH$useControlledState","defaultSelectedKey","$eBozH$useMemo","_keys_values_next_value","$49BJP$useSingleSelectListState","resetInputValue","closeMenu","defaultItems","_props_defaultInputValue","setInputValue","$49BJP$useControlledState","defaultInputValue","originalCollection","filteredCollection","$49BJP$useMemo","$a9e7382a7d111cb5$var$filterCollection","$49BJP$ListCollection","$a9e7382a7d111cb5$var$filterNodes","lastCollection","setLastCollection","menuOpenTrigger","$49BJP$useRef","triggerState","$fc909762b330b746$export$61c6a8c84e605fb6","$hnMvi$useControlledState","$hnMvi$useCallback","$49BJP$useOverlayTriggerState","displayAllItems","updateLastCollection","$49BJP$useCallback","toggleMenu","lastValue","setLastValue","_collection_getItem_textValue","itemText","_props_selectedKey","_ref1","lastSelectedKeyText","$49BJP$useEffect","selectedItemText","validation","$49BJP$useFormValidationState","commitCustomValue","commitSelection","commitValue","valueOnFocus","displayedCollection","isReadOnly","revert","filteredNode","filtered","$49BJP$getChildNodes","$de5926a92e8ebc5b$exports","buttonLabel","countAnnouncement","formatter","plural","optionCount","one","focusAnnouncement","true","groupTitle","groupCount","isGroupChange","optionText","listboxLabel","selectedAnnouncement","$319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY","$319e236875307eab$var$liveAnnouncer","$319e236875307eab$export$a9b970dcc4ae71a9","$319e236875307eab$var$LiveAnnouncer","createLog","ariaLive","assertiveLog","politeLog","liveAnnouncer","whiteSpace","prepend","$5e3802645cc19319$var$refCountMap","$5e3802645cc19319$var$observerStack","$b1f0cad8af73213b$export$3585ede4d035bf14","$b1f0cad8af73213b$export$9145995848b05025","itemKey","$b1f0cad8af73213b$var$normalizeKey","$ea8dcbcb9ea1b556$var$RouterContext","$g3jFn$createContext","isNative","$ea8dcbcb9ea1b556$var$openSyntheticLink","modifiers","$ea8dcbcb9ea1b556$var$getSyntheticLink","$ea8dcbcb9ea1b556$export$95185d699e05d4d7","useHref","$ea8dcbcb9ea1b556$export$9a302a45f65d0572","$g3jFn$useContext","setOpening","_window_event_type","_window_event","metaKey","altKey","$c87311424ea30a05$export$b7d78993b74f766d","$c87311424ea30a05$export$9ac100e40613ea10","$c87311424ea30a05$export$78551043582a6a98","$c87311424ea30a05$export$7bef049ce92e4224","KeyboardEvent","keyIdentifier","MouseEvent","isOpening","$7215afc6de606d6b$export$de79e2c695e052f3","HTMLAnchorElement","hasAttribute","ping","referrerPolicy","$313b98861ee5dd6c$export$d6875122194c7b44","defaultLabel","labelledBy","$bdb11010cef70236$export$f680877a34711e37","$453cc9f0df89c0a5$var$cache","$453cc9f0df89c0a5$export$77d5aafae4e095b2","countItems","$657e4dc4a6e88df0$export$8f5ed9ff9f511381","getItemRect","CSS","escape","containerRect","itemRect","getContentSize","getVisibleRect","$cc38e7bd3fc7b213$export$2bb74740c4e19def","checkForOverflow","isScrollable","$2a25aae57d74318e$export$a05409b8bb224a5a","getNextKey","getPreviousKey","findKey","shouldSkip","layoutDelegate","prevRect","isSameRow","isSameColumn","getKeyBelow","getKeyAbove","getNextColumn","getKeyRightOf","getKeyLeftOf","getKeyPageAbove","menu","$eak97$isScrollable","pageX","pageY","getKeyPageBelow","getKeyForSearch","fromKey","collator","$feb5ffebff200149$export$d3e3bd3e26688c04","$jUnAJ$isAppleDevice","$feb5ffebff200149$export$16792effe837dba3","$jUnAJ$isMac","$fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS","$e9faafb641e167db$export$90fc3a17d93f704c","handleEvent","$8ae05eaa5c114e9c$export$7f54fc3180508a52","$ceQd6$useEffect","$2f04cbc44ee30ce0$export$53a0910f038337bd","scrollView","offsetX","$2f04cbc44ee30ce0$var$relativeOffset","offsetY","borderTopWidth","borderLeftWidth","borderAdjustedX","borderAdjustedY","maxX","maxY","ancestor","axis","$2f04cbc44ee30ce0$export$c826860796309d1b","scrollingElement","scrollParents","$a40c673dc9f6d9c7$export$94ed1c92c7beeb22","scrollParent","_targetElement_scrollIntoView","originalLeft","originalTop","block","newTop","_opts_containingElement_scrollIntoView","_opts_containingElement","_targetElement_scrollIntoView1","containingElement","inline","$148a7a147e38ea7f$var$RTL_SCRIPTS","$148a7a147e38ea7f$var$RTL_LANGS","$148a7a147e38ea7f$export$702d680b21cbd764","localeString","Intl","maximize","textInfo","getTextInfo","$1e5a04cdaf7d1af8$var$localeSymbol","$1e5a04cdaf7d1af8$export$f09106e7c6677ec5","userLanguage","DateTimeFormat","supportedLocalesOf","$1e5a04cdaf7d1af8$var$currentLocale","$1e5a04cdaf7d1af8$var$listeners","$1e5a04cdaf7d1af8$var$updateLocale","$18f2051aff69b9bf$var$I18nContext","$h9FiU$react","$18f2051aff69b9bf$export$43bb16f9c6d9e3f7","defaultLocale","$1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a","isSSR","$ffhGL$useIsSSR","setDefaultLocale","$ffhGL$useState","$ffhGL$useEffect","$h9FiU$useContext","$ae20dd8cbca75726$export$d6daf82dcd84e87c","manager","keyboardDelegate","delegate","autoFocus","shouldFocusWrap","disallowSelectAll","selectOnFocus","disallowTypeAhead","shouldUseVirtualFocus","allowsTabNavigation","isVirtualized","scrollRef","linkBehavior","$3H3GQ$useLocale","$3H3GQ$useRouter","$3H3GQ$useRef","$3H3GQ$useEvent","autoFocusRef","$3H3GQ$useEffect","$3H3GQ$focusSafely","lastFocusedKey","modality","$3H3GQ$getInteractionModality","$3H3GQ$scrollIntoView","$3H3GQ$scrollIntoViewport","handlers","navigateToKey","childFocus","$3H3GQ$flushSync","itemProps","routerOptions","_delegate_getFirstKey","_delegate_getFirstKey1","_delegate_getLastKey","_delegate_getLastKey1","_delegate_getFirstKey2","_delegate_getLastKey2","_delegate_getLastKey3","_delegate_getFirstKey3","walker","$3H3GQ$getFocusableTreeWalker","tabbable","lastChild","$3H3GQ$focusWithoutScrolling","navigateToFirstKey","_manager_lastSelectedKey","_manager_firstSelectedKey","compareDocumentPosition","Node","DOCUMENT_POSITION_FOLLOWING","typeSelectProps","$fb3050f43d946246$export$e32c88dfddc6e1d8","onTypeSelect","$dAE4Y$useRef","onKeyDownCapture","character","$fb3050f43d946246$var$getStringForKey","$3H3GQ$mergeProps","collectionProps","$5b160d28a433310d$var$localeSymbol","$5b160d28a433310d$var$stringsSymbol","$5b160d28a433310d$var$cachedGlobalStrings","$5b160d28a433310d$export$c17fa47878dc55b6","getStringForLocale","getStringsForLocale","strings","$5b160d28a433310d$var$getStringsForLocale","$5b160d28a433310d$var$getLanguage","getGlobalDictionaryForPackage","packageName","globalStrings","pkg","Ce","dictionary","fromEntries","$6db58dc88e78b024$var$pluralRulesCache","$6db58dc88e78b024$var$numberFormatCache","$6db58dc88e78b024$export$2f817fcdc4b89ae0","variables","opt","pluralRules","PluralRules","numberFormat","NumberFormat","$fca6afa0e843324b$var$cache","$fca6afa0e843324b$export$87b761675e8eaa10","$6ksNp$LocalizedStringDictionary","$fca6afa0e843324b$var$getCachedDictionary","$fca6afa0e843324b$export$f12b703ca79dfbb1","$6ksNp$useMemo","$6ksNp$LocalizedStringFormatter","$2cbb7ca666678a14$exports","longPressMessage","$14c0b72509d70225$var$state","$14c0b72509d70225$var$savedUserSelect","$14c0b72509d70225$var$modifiedElementMap","$14c0b72509d70225$export$16a4697467175487","$7R18e$isIOS","documentObject","$7R18e$getOwnerDocument","HTMLElement","SVGElement","userSelect","$14c0b72509d70225$export$b0d6fa1ab32e3295","$7R18e$runAfterTransition","targetOldUserSelect","removeAttribute","$ae1eeba8b9eafd08$export$5165eccb35aaadb5","$3aeG1$react","register","_class_extract_field_descriptor","receiver","privateMap","TypeError","_class_private_field_init","_check_private_redeclaration","privateCollection","_class_private_field_set","_class_apply_descriptor_set","writable","$e7801be82b4b2a53$export$4debdb1a3f0fa79e","$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c","$03deb23ff14920c4$export$4eaf04e54aa8eed6","globalListeners","$lPAwt$useRef","addGlobalListener","$lPAwt$useCallback","eventTarget","once","removeGlobalListener","_globalListeners_current_get","removeAllGlobalListeners","$lPAwt$useEffect","$f6c31cce2adf654f$var$_shouldStopPropagation","$f6c31cce2adf654f$var$PressEvent","continuePropagation","$7mdmh$_2","shouldStopPropagation","_class_private_field_get","_class_apply_descriptor_get","$7mdmh$_","_state_target","$7mdmh$_1","rect","$f6c31cce2adf654f$var$LINK_CLICKED","$f6c31cce2adf654f$export$45712eceda6fad21","onPress","onPressChange","onPressStart","onPressEnd","onPressUp","isPressed","isPressedProp","preventFocusOnPress","shouldCancelOnPointerExit","allowTextSelectionOnPress","domProps","$f6c31cce2adf654f$var$usePressResponderContext","$7mdmh$useContext","contextProps","$7mdmh$mergeProps","$7mdmh$useSyncRef","setPressed","$7mdmh$useState","$7mdmh$useRef","ignoreEmulatedMouseEvents","ignoreClickAfterPress","didFirePressStart","isTriggeringEvent","activePointerId","isOverTarget","$7mdmh$useGlobalListeners","triggerPressStart","$7mdmh$useEffectEvent","triggerPressEnd","wasPressed","triggerPressUp","$f6c31cce2adf654f$var$createEvent","cancelOnPointerExit","pressProps","$7mdmh$useMemo","$f6c31cce2adf654f$var$isValidKeyboardEvent","_state_metaKeyEvents","$f6c31cce2adf654f$var$shouldPreventDefaultKeyboard","originalTarget","pressUp","$7mdmh$getOwnerDocument","$7mdmh$chain","$7mdmh$isMac","metaKeyEvents","$7mdmh$openLink","$7mdmh$isVirtualClick","$7mdmh$focusWithoutScrolling","stopPressStart","stopPressUp","stopPressEnd","_state_metaKeyEvents1","$f6c31cce2adf654f$var$isHTMLAnchorLink","PointerEvent","$7mdmh$isVirtualPointerEvent","$f6c31cce2adf654f$var$shouldPreventDefault","onPointerCancel","$f6c31cce2adf654f$var$isOverTarget","onDragStart","touch","$f6c31cce2adf654f$var$getTouchFromEvent","targetTouches","$f6c31cce2adf654f$var$createTouchEvent","$7mdmh$getOwnerWindow","$f6c31cce2adf654f$var$getTouchById","onTouchCancel","$7mdmh$useEffect","_ref_current_target","tagName","HTMLInputElement","$f6c31cce2adf654f$var$isValidInputKey","HTMLTextAreaElement","isContentEditable","changedTouches","point","pointRect","$f6c31cce2adf654f$var$getPointClientRect","radiusX","radiusY","$f6c31cce2adf654f$var$areRectanglesOverlapping","HTMLButtonElement","$f6c31cce2adf654f$var$nonTextInputTypes","$ef06256079686ba0$var$descriptionId","$ef06256079686ba0$var$descriptionNodes","$8a26561d2877236e$var$DEFAULT_THRESHOLD","$8a26561d2877236e$export$c24ed0104d07eab9","onLongPressStart","onLongPressEnd","onLongPress","threshold","accessibilityDescription","timeRef","$4k2kv$useRef","$4k2kv$useGlobalListeners","onContextMenu","$ef06256079686ba0$export$f8aeda7b10753fa1","setId","$hQ5Hp$useState","desc","$4k2kv$useDescription","longPressProps","$4k2kv$mergeProps","$dd149f63282afbbf$export$f6211563215e3b37","$168583247155ddda$export$dc9c12ed27dd1b49","menuTriggerId","$czs6v$useId","$628037886ba31236$export$f9d5c8beee7d008d","ariaHasPopup","$gMvIk$useEffect","overlayId","$gMvIk$useId","$czs6v$useOverlayTrigger","stringFormatter","$czs6v$useLocalizedStringFormatter","$parcel$interopDefault","__esModule","$czs6v$intlStringsmodulejs","$czs6v$useLongPress","menuTriggerProps","menuProps","$65484d02dcb7eb3e$var$DOMPropNames","$65484d02dcb7eb3e$var$labelablePropNames","$65484d02dcb7eb3e$var$linkPropNames","$65484d02dcb7eb3e$var$propRe","$65484d02dcb7eb3e$export$457c3d6518dd4c6f","labelable","propNames","filteredProps","$d191a55c9702f145$export$8467354a121f1b9f","ariaLabelledby","labelElementType","$83Elw$useId","labelId","labelProps","htmlFor","fieldProps","$83Elw$useLabels","$93925083ecbb358c$export$48d1ea6320830260","isDefaultPrevented","$e6afbd83fe6ebbd2$var$FocusableContext","$h8xso$react","$e6afbd83fe6ebbd2$export$4c014de7c8940b4c","domRef","focusProps","$h8xso$useFocus","keyboardProps","$46d819fcbaf35654$export$8f71654801c2f7cd","$h8xso$useKeyboard","interactions","$h8xso$mergeProps","$e6afbd83fe6ebbd2$var$useFocusableContext","$h8xso$useContext","$h8xso$useSyncRef","otherProps","interactionProps","$h8xso$useRef","$h8xso$useEffect","$6a99195332edec8b$export$80f3e147d781571c","focusableProps","excludeFromTabOrder","$e93e671b31057976$export$b8473d3665f3a75a","$9Gacy$useLayoutEffect","setCustomValidity","$e93e671b31057976$var$getNativeValidity","validity","$e93e671b31057976$var$getValidity","validationMessage","onReset","$9Gacy$useEffectEvent","_ref_current","_ref_current1","$e93e671b31057976$var$getFirstInvalidInput","$9Gacy$setInteractionModality","$9Gacy$useEffect","$2d73ec29415bd339$export$712718f7aec83d5","inputElementType","$ig234$useControlledState","$ig234$useFocusable","$ig234$useFormValidationState","errorMessageProps","$2baaea4c71418dea$export$294aa081a6c6f55d","$2kC82$useSlotId","errorMessageId","$2kC82$mergeProps","$ig234$useField","$ig234$filterDOMProps","inputOnlyProps","pattern","$99facab73266f662$export$5add1d006293d136","initialValue","resetValue","$8rM3G$useRef","$8rM3G$useEffect","$ig234$useFormReset","$ig234$useFormValidation","$ig234$useEffect","$ig234$getOwnerWindow","defineProperty","configurable","inputProps","$ig234$mergeProps","autoComplete","autoCapitalize","inputMode","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onBeforeInput","$c350ade66beef0af$export$8c18d1b4f7232bbf","popoverRef","listBoxRef","$dShfP$useLocalizedStringFormatter","$dShfP$intlStringsmodulejs","$dShfP$useMenuTrigger","$dShfP$listData","$dShfP$useMemo","$dShfP$ListKeyboardDelegate","$dShfP$useSelectableCollection","$dShfP$useRouter","$dShfP$useTextField","$dShfP$chain","isComposing","collectionItem","_popoverRef_current","blurFromButton","blurIntoPopover","$","$dShfP$privateValidationStateProp","triggerLabelProps","$dShfP$useLabels","listBoxProps","lastEventTime","$dShfP$useRef","focusedItem","_focusedItem_parentKey","sectionKey","_state_selectionManager_focusedKey","lastSection","lastItem","$dShfP$useEffect","$dShfP$isAppleDevice","sectionTitle","$dShfP$announce","$dShfP$getChildNodes","$dShfP$getItemCount","lastSize","lastOpen","didOpenWithoutFocusedItem","$5e3802645cc19319$export$1c3ebcada18427bf","targets","visibleNodes","hiddenNodes","walk","acceptNode","NodeFilter","FILTER_REJECT","FILTER_SKIP","FILTER_ACCEPT","createTreeWalker","SHOW_ELEMENT","acceptRoot","hide","nextNode","_refCountMap_get","MutationObserver","change","addedNodes","removedNodes","Element","reactAriaTopLayer","childList","subtree","observerWrapper","$dShfP$ariaHideOutside","buttonProps","$dShfP$mergeProps","$dShfP$getItemId","centerX","centerY","autoCorrect","spellCheck","shouldSelectOnPressUp","shouldFocusOnHover","$325a3faab7a68acd$var$cache","$325a3faab7a68acd$export$a16aca283550c30d","cacheKey","Collator","$e0b6e0b68ec7f50f$var$isValidEvent","ownerDocument","closest","$a11501f3d1d39e6c$var$visibleOverlays","$a11501f3d1d39e6c$export$ea8f71083e90600f","isDismissable","isKeyboardDismissDisabled","shouldCloseOnInteractOutside","$jtpZv$useEffect","onHide","$e0b6e0b68ec7f50f$export$872b660ac5a1ff98","onInteractOutsideStart","stateRef","$ispOf$useRef","isPointerDown","$ispOf$useEffectEvent","triggerInteractOutside","$ispOf$useEffect","$ispOf$getOwnerDocument","$jtpZv$useInteractOutside","focusWithinProps","$jtpZv$useFocusWithin","onBlurWithin","$jtpZv$isElementInChildOfActiveScope","underlayProps","$a2f21f5f14f60553$exports","$86ea4cb521eb2e37$export$2317d149ed6f78c4","$iYaQO$useLocalizedStringFormatter","$iYaQO$intlStringsmodulejs","$iYaQO$useLabels","$iYaQO$react","$iYaQO$VisuallyHidden","Popover","useOverlay","restoreFocus","DismissButton","$c132121280ec012d$export$50eacbbf140a3141","$by1yQ$filterDOMProps","listProps","$982254629710d113$export$b95089534ab7c1fd","$1aJk5$useCollator","sensitivity","$1aJk5$useMemo","$by1yQ$useSelectableList","$by1yQ$useFocusWithin","onFocusWithin","onFocusWithinChange","onFocusChange","$by1yQ$useId","onAction","$by1yQ$useLabel","$by1yQ$mergeProps","$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents","$6179b936705e76d3$var$hoverCount","$6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents","$6179b936705e76d3$var$handleGlobalPointerEvent","$6179b936705e76d3$var$setupGlobalTouchEvents","$880e95eb8b93ba9a$var$isActionKey","$880e95eb8b93ba9a$var$isSelectionKey","$293f70390ea03370$export$497855f14858aa34","_item_props1","_props_isDisabled","_props_isSelected","_props_shouldSelectOnPressUp","_props_shouldFocusOnHover","_props_shouldUseVirtualFocus","_props_isVirtualized","$fcwmx$useSlotId","optionProps","$fcwmx$isMac","$fcwmx$isWebKit","$fcwmx$getItemCount","_data_onAction","hasAction","allowsSelection","$880e95eb8b93ba9a$export$ecf600387e221c37","allowsDifferentPressOrigin","$581M0$useRouter","$581M0$useEffect","$581M0$focusSafely","isLinkOverride","hasLinkAction","allowsActions","hasPrimaryAction","hasSecondaryAction","$581M0$useRef","longPressEnabled","longPressEnabledOnPressStart","hadPrimaryActionOnPressStart","performAction","itemPressProps","$581M0$usePress","onDoubleClick","$581M0$useLongPress","$581M0$openLink","$581M0$mergeProps","onDragStartCapture","$fcwmx$useSelectableItem","$fcwmx$chain","hoverProps","$6179b936705e76d3$export$ae780daf29e6d456","onHoverStart","onHoverChange","onHoverEnd","isHovered","setHovered","$AWxnT$useState","$AWxnT$useRef","$AWxnT$useEffect","triggerHoverEnd","$AWxnT$useMemo","triggerHoverStart","$fcwmx$useHover","$fcwmx$isFocusVisible","$fcwmx$filterDOMProps","linkProps","$ea8dcbcb9ea1b556$export$7e924b3091a3bd18","$fcwmx$useLinkProps","$fcwmx$mergeProps","isFocusVisible","ListBox","useListBox","scrollOffset","onLoadMore","NoListableReceptions","Option","loadingState","useOption","$0d86e9c8f07f9a7b$export$79c0c687a5963b0a","dispatch","cursor","setFilterText","filterText","insert","$0d86e9c8f07f9a7b$var$insert","insertAfter","keySet","removeSelectedItems","toIndex","moveBefore","indices","$0d86e9c8f07f9a7b$var$move","moveAfter","moves","$f86e6c1ec7da6ebb$var$reducer","_action_filterText","_action_sortDescriptor","sortDescriptor","updater","_action_selectedKeys","_action_filterText1","_action_sortDescriptor1","_action_filterText2","_action_selectedKeys1","_action_sortDescriptor2","_action_filterText3","$c1d7fb2ec91bae71$var$Item","childItems","hasChildItems","$6Fm0V$react","$c1d7fb2ec91bae71$export$6d08773d2e66f8f2","iconArea","inputArea","Autocomplete","$bb77f239b46e8c72$export$3274cf84b703fff","$21ck9$useCallback","scan","sliceLen","$21ck9$useMemo","useFilter","useComboBoxState","useComboBox","SearchReceptionController","$f86e6c1ec7da6ebb$export$bc3384a35de93d66","initialSelectedKeys","initialSortDescriptor","initialFilterText","$fh1mr$useReducer","dispatchFetch","previousFilterText","_response_filterText","didDispatchInitialFetch","$fh1mr$useRef","$fh1mr$useEffect","loadMore","useAsyncList","__TEMP__navigation","prevRequest","Path","shimmer","widthInternal","heightInternal","opacityInternal","dash","svg","sizeMultiplier","_SquareButton","PresentationReader","MSStream","SPACE_SIZE","XS","L","XL","LARGE_TITLE","SMALL_TITLE_BOLD","BODY_BOLD","withTranslation_REMOVE_THIS_IMPORT_IN_SPRINT_77","webviewRegExp","isVisibaIOSApp","isVisibaAndroidApp","getCookie","BackendLogLevel","Outgoing","Debug","Info","addEntry","stringModified","getBitwise","bitWise","none","initializeConfig","debugConfig","enumToString","clientEnumToBackendEnum","UNSET","PENDING","ERROR","ids","designatedFlowState","hooks","ArgumentError","emptyState","unsafeRead","inFlow","changeFlowTo","currState","hook","refs","targetRef","PopoverType","ModalStack","PopoverService","addModal","mergedOptions","createTestBed","resolution","_DOM","getDOM","setRootDomAdapter","adapter","DomAdapter","DOCUMENT","InjectionToken","PlatformLocation","historyGo","relativePosition","inject","BrowserPlatformLocation","providedIn","LOCATION_INITIALIZED","_history","_doc","getBaseHrefFromDOM","getBaseHref","onPopState","getGlobalEventTarget","onHashChange","protocol","newPath","pushState","replaceState","forward","joinWithSlash","stripTrailingSlash","pathEndIdx","droppedSlashIdx","normalizeQueryParams","LocationStrategy","PathLocationStrategy","_platformLocation","_baseHref","_removeListenerFns","prepareExternalUrl","internal","includeHash","externalUrl","HashLocationStrategy","_subject","_basePath","_locationStrategy","_urlChangeListeners","_urlChangeSubscription","locationStrategy","_stripOrigin","_stripIndexHtml","isCurrentPathEqualTo","_stripBasePath","basePath","strippedUrl","_notifyUrlChangeListeners","onUrlChange","fnIndex","onNext","onThrow","onReturn","createLocation","ɵɵinject","CURRENCIES_EN","ADP","AFN","ALL","AMD","AOA","ARS","AUD","AZN","BAM","BBD","BDT","BHD","BIF","BMD","BND","BOB","BRL","BSD","BWP","BYN","BYR","BZD","CAD","CHF","CLF","CLP","CNY","COP","CRC","CUC","CUP","CZK","DJF","DKK","DOP","EGP","ESP","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GNF","GTQ","GYD","HKD","HNL","HRK","HUF","IDR","ILS","INR","IQD","IRR","ISK","ITL","JMD","JOD","JPY","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LTL","LUF","LVL","LYD","MGA","MGF","MMK","MNT","MRO","MUR","MXN","MYR","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PHP","PKR","PLN","PYG","RON","RSD","RUB","RWF","SBD","SEK","SGD","SHP","SLE","SLL","SOS","SRD","SSP","STD","STN","SYP","THB","TMM","TND","TOP","TRL","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYI","UYU","UYW","UZS","VEF","VND","VUV","XAF","XCD","XOF","XPF","XXX","YER","ZAR","ZMK","ZMW","ZWD","NumberFormatStyle","Plural","FormStyle","TranslationWidth","FormatWidth","Decimal","Scientific","Zero","One","Two","Few","Many","Other","Standalone","Narrow","Abbreviated","Wide","Short","Long","Full","NumberSymbol","WeekDay","getLocaleDateFormat","getLastDefinedValue","ɵfindLocaleData","ɵLocaleDataIndex","DateFormat","getLocaleTimeFormat","TimeFormat","getLocaleDateTimeFormat","dateTimeFormatData","getLocaleNumberSymbol","symbol","NumberSymbols","getLocaleNumberFormat","NumberFormats","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","getLocalePluralCase","ɵgetLocalePluralCase","checkFullData","ExtraData","LocaleId","extractTime","hours","getCurrencySymbol","currency","getLocaleCurrencies","Currencies","symbolNarrow","ISO8601_DATE_REGEX","NAMED_FORMATS","DATE_FORMATS_SPLIT","formatDate","isDate","createDate","parsedNb","isoStringToDate","tzHour","tzMin","dateSetter","setUTCFullYear","timeSetter","setUTCHours","getNamedFormat","dateTimezoneOffset","getTimezoneOffset","timezoneToOffset","convertTimezoneToLocal","reverseValue","timezoneOffset","addDateMinutes","setMinutes","getMinutes","dateFormatter","getDateFormatter","DATE_FORMATS","dateStrGetter","dateGetter","weekNumberingYearGetter","weekGetter","timeZoneGetter","localeId","getLocaleId","formatValue","shortTime","shortDate","formatDateTime","mediumTime","mediumDate","longTime","longDate","fullTime","fullDate","opt_values","padNumber","digits","minusSign","negWrap","neg","strNum","getDatePart","getSeconds","getMilliseconds","formatFractionalSeconds","milliseconds","localeMinus","extended","getDateTranslation","getLocaleMonthNames","formStyle","months","MonthsFormat","MonthsStandalone","getLocaleDayNames","DaysFormat","DaysStandalone","currentHours","currentMinutes","rules","getLocaleExtraDayPeriodRules","rule","dayPeriods","getLocaleExtraDayPeriods","afterFrom","beforeTo","getLocaleDayPeriods","amPm","DayPeriodsFormat","DayPeriodsStandalone","getLocaleEraNames","erasData","Eras","zone","JANUARY","THURSDAY","getThursdayThisIsoWeek","datetime","currentDay","deltaToThursday","monthBased","nbDaysBefore1stDayOfMonth","thisThurs","firstThurs","getFirstThursdayOfYear","firstDayOfYear","requestedTimezoneOffset","NUMBER_FORMAT_REGEXP","formatNumberToLocaleString","groupSymbol","decimalSymbol","digitsInfo","isPercent","formattedText","isZero","parsedNumber","parseNumber","integerLen","zeros","numStr","exponent","MAX_DIGITS","toPercent","fractionLen","minInt","minFraction","minFrac","maxFraction","maxFrac","minIntPart","minFractionPart","maxFractionPart","parseIntAutoRadix","roundNumber","fractionSize","roundAt","digit","dropTrailingZeros","minLen","carry","reduceRight","decimals","lgSize","gSize","negPre","negSuf","posPre","posSuf","formatCurrency","currencyCode","parseNumberFormat","getNumberOfCurrencyDigits","patternParts","positive","negative","positiveParts","integer","fraction","ch","trunkLen","NgLocalization","__ngConditionalFactory__","LOCALE_ID","NgLocaleLocalization","getPluralCategory","ngLocalization","parseCookieValue","eqIndex","cookieName","cookieValue","WS_REGEXP","EMPTY_ARRAY","NgClass","_ngEl","_renderer","initialClasses","rawClass","stateMap","klass","ngClass","ngDoCheck","_updateState","_applyStateDiff","nextEnabled","touched","stateEntry","_toggleClass","removeClass","selectors","inputs","NgComponentOutlet","_viewContainerRef","ngComponentOutlet","ngComponentOutletInputs","ngComponentOutletInjector","ngComponentOutletContent","ngComponentOutletNgModule","ngComponentOutletNgModuleFactory","_componentRef","_moduleRef","_inputsUsed","componentInstance","_needToReCreateNgModuleInstance","_needToReCreateComponentInstance","parentInjector","createNgModule","getParentInjector","ngModuleRef","projectableNodes","inputName","_applyInputStateDiff","componentRef","setInput","features","NgModuleRef","NgForOfContext","$implicit","ngForOf","even","odd","NgForOf","_viewContainer","_template","_differs","_ngForOf","_ngForOfDirty","ngForTrackBy","_trackByFn","_differ","ngForTemplate","_applyChanges","forEachOperation","adjustedPreviousIndex","currentIndex","previousIndex","createEmbeddedView","applyViewChange","ilen","forEachIdentityChange","record","ngTemplateContextGuard","NgIf","_context","NgIfContext","_thenTemplateRef","_elseTemplateRef","_thenViewRef","_elseViewRef","templateRef","ngIf","condition","_updateView","ngIfThen","assertTemplate","ngIfElse","ɵstringify","SwitchView","_templateRef","_created","enforceState","created","NgSwitch","_defaultViews","_defaultUsed","_caseCount","_lastCaseCheckIndex","_lastCasesMatched","_ngSwitch","ngSwitch","_updateDefaultCases","_addCase","_addDefault","_matchCase","matched","useDefault","defaultView","NgSwitchCase","_view","ngSwitchCase","NgSwitchDefault","NgPlural","_localization","_activeView","_caseViews","ngPlural","addCase","switchView","switchValue","_clearViews","_activateView","NgPluralCase","isANumber","NgStyle","_ngStyle","ngStyle","_setStyle","nameAndUnit","RendererStyleFlags2","DashCase","setStyle","removeStyle","forEachRemovedItem","forEachAddedItem","forEachChangedItem","NgTemplateOutlet","_viewRef","ngTemplateOutletContext","ngTemplateOutlet","ngTemplateOutletInjector","_shouldRecreateView","viewContext","_createContextForwardProxy","Proxy","_target","invalidPipeArgumentError","ɵRuntimeError","ngDevMode","_promiseStrategy","PromiseStrategy","createSubscription","updateLatestValue","subscription","_subscribableStrategy","SubscribableStrategy","untracked","AsyncPipe","_latestValue","markForCheckOnValueUpdate","_subscription","_obj","_strategy","_dispose","_subscribe","_selectStrategy","_updateLatestValue","ɵisPromise","ɵisSubscribable","pure","LowerCasePipe","unicodeWordMatch","TitleCasePipe","txt","UpperCasePipe","DATE_PIPE_DEFAULT_TIMEZONE","DATE_PIPE_DEFAULT_OPTIONS","DatePipe","defaultTimezone","_format","_timezone","_INTERPOLATION_REGEXP","I18nPluralPipe","pluralMap","I18nSelectPipe","mapping","JsonPipe","KeyValuePipe","differs","differ","keyValues","compareFn","defaultComparator","differChanges","compareFnChanged","forEachItem","makeKeyValuePair","keyValueA","keyValueB","aString","bString","DecimalPipe","_locale","isValue","formatNumber","strToNumber","PercentPipe","formatPercent","CurrencyPipe","_defaultCurrencyCode","DEFAULT_CURRENCY_CODE","SlicePipe","supports","PLATFORM_BROWSER_ID","PLATFORM_SERVER_ID","isPlatformServer","platformId","ViewportScroller","ɵɵdefineInjectable","BrowserViewportScroller","setOffset","scrollX","scrollToPosition","scrollTo","scrollToAnchor","elSelected","findAnchorFromDocument","documentResult","getElementsByName","attachShadow","treeWalker","currentNode","shadowRoot","scrollToElement","setHistoryScrollRestoration","scrollRestoration","pageXOffset","XhrFactory","win","isAbsoluteUrl","extractHostname","isValidPath","normalizeSrc","noopImageLoader","IMAGE_LOADER","createImageLoader","buildUrlFn","exampleUrls","throwInvalidPathError","normalizePath","throwUnexpectedAbsoluteUrlError","createCloudflareUrl","isPlaceholder","createCloudinaryUrl","loaderParams","rounded","createImagekitUrl","urlSegments","createImgixUrl","imgDirectiveDetails","ngSrc","includeNgSrc","assertDevMode","checkName","LCPImageObserver","isBrowser","isPlatformBrowser","PerformanceObserver","initPerformanceObserver","entryList","getEntries","priority","alreadyWarnedPriority","logMissingPriorityError","directiveDetails","ɵformatRuntimeError","modified","alreadyWarnedModified","logModifiedWarning","buffered","registerImage","rewrittenSrc","originalNgSrc","isPriority","newObservedImageState","unregisterImage","updateImage","originalSrc","newSrc","originalUrl","INTERNAL_PRECONNECT_CHECK_BLOCKLIST","PRECONNECT_CHECK_BLOCKLIST","PreconnectLinkChecker","preconnectLinks","alreadySeen","blocklist","populateBlocklist","origins","deepForEach","assertPreconnect","imgUrl","queryPreconnectLinks","preconnectUrls","links","PRELOADED_IMAGES","PreloadLinkCreator","preloadedImages","createPreloadLinkTag","srcset","preload","VALID_WIDTH_DESCRIPTOR_SRCSET","DENSITY_SRCSET_MULTIPLIERS","NgOptimizedImage","imageLoader","processConfig","sortedBreakpoints","ɵIMAGE_CONFIG_DEFAULTS","ɵIMAGE_CONFIG","Renderer2","imgElement","lcpObserver","_renderedSrc","ngSrcset","disableOptimizedSrcset","placeholderConfig","ɵperformanceMarkFeature","removePlaceholderOnLoad","setHostAttributes","setHostAttribute","getLoadingBehavior","getFetchPriority","updateSrcAndSrcset","isFirstChange","callImageLoader","configWithoutCustomParams","augmentedConfig","getRewrittenSrc","imgConfig","getRewrittenSrcset","widthSrcSet","srcStr","getAutomaticSrcset","getResponsiveSrcset","getFixedSrcset","filteredBreakpoints","bp","forceSrcRecalc","rewrittenSrcset","shouldGenerateAutomaticSrcset","multiplier","oversizedImage","generatePlaceholder","placeholderInput","placeholderResolution","shouldBlurPlaceholder","removeLoadListenerFn","removeErrorListenerFn","callOnLoadIfImageIsLoaded","hostVars","hostBindings","rf","unwrapSafeUrl","numberAttribute","booleanAttribute","booleanOrUrlAttribute","naturalWidth","ɵunwrapSafeValue","HttpHandler","HttpBackend","normalizedNames","lazyInit","lazyUpdate","line","addHeaderEntry","Headers","setHeaderEntries","op","maybeSetNormalizedName","lcName","copyFrom","applyUpdate","toDelete","existing","headerValues","HttpUrlEncodingCodec","encodeKey","standardEncoding","encodeValue","decodeKey","decodeValue","STANDARD_ENCODING_REGEX","STANDARD_ENCODING_REPLACEMENTS","valueToString","encoder","updates","cloneFrom","fromString","paramParser","rawParams","codec","eqIdx","appendAll","eKey","HttpContext","isArrayBuffer","ArrayBuffer","isBlob","isFormData","CONTENT_TYPE_HEADER","ACCEPT_HEADER","X_REQUEST_URL_HEADER","TEXT_CONTENT_TYPE","JSON_CONTENT_TYPE","ACCEPT_HEADER_VALUE","HttpRequest","reportProgress","urlWithParams","transferCache","third","fourth","mightHaveBody","qIdx","sep","serializeBody","isUrlSearchParams","detectContentTypeHeader","setParams","HttpEventType","Sent","UploadProgress","ResponseHeader","DownloadProgress","Response","HttpResponseBase","statusText","defaultStatus","defaultStatusText","HttpHeaderResponse","HttpErrorResponse","addBody","Continue","SwitchingProtocols","Processing","EarlyHints","Created","Accepted","NonAuthoritativeInformation","NoContent","ResetContent","PartialContent","MultiStatus","AlreadyReported","ImUsed","MultipleChoices","MovedPermanently","Found","SeeOther","NotModified","UseProxy","Unused","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","LengthRequired","PreconditionFailed","PayloadTooLarge","UriTooLong","UnsupportedMediaType","RangeNotSatisfiable","ExpectationFailed","ImATeapot","MisdirectedRequest","UnprocessableEntity","Locked","FailedDependency","TooEarly","UpgradeRequired","PreconditionRequired","TooManyRequests","RequestHeaderFieldsTooLarge","UnavailableForLegalReasons","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","HttpVersionNotSupported","VariantAlsoNegotiates","InsufficientStorage","LoopDetected","NotExtended","NetworkAuthenticationRequired","events$","concatMap","res$","jsonp","callbackParam","XSSI_PREFIX$1","getResponseUrl$1","xRequestUrl","FETCH_BACKEND","FetchBackend","fetchImpl","FetchFactory","aborter","doRequest","createRequestInit","fetchPromise","silenceSuperfluousUnhandledPromiseRejection","contentLength","getReader","decoder","partialText","receivedLength","reqZone","Zone","TextDecoder","decode","chunksAll","concatChunks","parseBody","binContent","credentials","detectedType","totalLength","interceptorChainEndFn","finalHandlerFn","adaptLegacyInterceptorToChain","chainTailFn","initialRequest","downstreamRequest","HTTP_INTERCEPTOR_FNS","HTTP_ROOT_INTERCEPTOR_FNS","REQUESTS_CONTRIBUTE_TO_STABILITY","legacyInterceptorFnFactory","chain","pendingTasks","ɵPendingTasksInternal","taskId","HttpInterceptorHandler","backend","contributeToStability","dedupedInterceptorFns","nextSequencedFn","interceptorFn","chainedInterceptorFn","runInInjectionContext","foreignDocument","nextRequestId","JsonpCallbackContext","jsonpCallbackContext","JsonpClientBackend","callbackMap","resolvedPromise","nextCallback","finished","cleanup","onLoad","onError","removeListeners","implementation","createHTMLDocument","adoptNode","jsonpInterceptorFn","JsonpInterceptor","XSSI_PREFIX","X_REQUEST_URL_REGEXP","HttpXhrBackend","xhrFactory","ɵloadImpl","switchMap","reqBody","headerResponse","partialFromXhr","getAllResponseHeaders","getResponseUrl","responseURL","getResponseHeader","originalBody","sentHeaders","onDownProgress","progressEvent","lengthComputable","onUpProgress","i1","XSRF_ENABLED","XSRF_DEFAULT_COOKIE_NAME","XSRF_COOKIE_NAME","XSRF_DEFAULT_HEADER_NAME","XSRF_HEADER_NAME","HttpXsrfTokenExtractor","HttpXsrfCookieExtractor","lastCookieString","lastToken","parseCount","getToken","cookieString","ɵparseCookieValue","xsrfInterceptorFn","lcUrl","headerName","HttpXsrfInterceptor","HttpFeatureKind","makeHttpFeature","ɵkind","ɵproviders","provideHttpClient","feature","makeEnvironmentProviders","Interceptors","LegacyInterceptors","CustomXsrfConfiguration","NoXsrfProtection","JsonpSupport","RequestsMadeViaParent","Fetch","LEGACY_INTERCEPTOR_FN","withInterceptorsFromDi","withXsrfConfiguration","withJsonpSupport","HttpClientXsrfModule","disable","withOptions","HttpClientJsonpModule","_SELECTOR_REGEXP","CssSelector","attrs","notSelectors","_addResult","cssSel","cssSelector","inNot","lastIndex","addAttribute","addClassName","setElement","attribute","unescapeAttribute","escaping","escapeAttribute","isElementSelector","hasElementSelector","getAttrs","notSelector","SelectorMatcher","createNotMatcher","notMatcher","addSelectables","_elementMap","_elementPartialMap","_classMap","_classPartialMap","_attrValueMap","_attrValuePartialMap","_listContexts","cssSelectors","callbackCtxt","listContext","SelectorListContext","_addSelectable","matcher","selectable","SelectorContext","_addTerminal","_addPartial","isTerminal","terminalMap","terminalValuesMap","partialMap","partialValuesMap","terminalList","matchedCallback","alreadyMatched","_matchTerminal","_matchPartial","selectables","starSelectables","nestedSelector","cbContext","InputFlags","ShadowDom","Default","SignalBased","HasDecoratorInputTransform","CUSTOM_ELEMENTS_SCHEMA","NO_ERRORS_SCHEMA","SecurityContext","MissingTranslationStrategy","parserSelectorToR3Selector","parserSelectorToSimpleSelector","classes","parserSelectorToNegativeSelector","parseSelectorToR3Selector","NONE","HTML","STYLE","SCRIPT","RESOURCE_URL","Ignore","textEncoder","computeDigest","sha1","TextEncoder","utf8","encode","words32","bytesToWords32","endian","wordAt","Endian","Big","w","Uint32Array","h0","h4","rol32","fkVal","fk","temp","add32","toHexU32","serializeNodes","serializerVisitor$1","meaning","decimalDigest","computeDecimalDigest","visitor","_SerializerIgnoreIcuExpVisitor","computeMsgId","_SerializerVisitor","visitText","visitContainer","visitIcu","icu","strCases","expression","visitTagPlaceholder","ph","isVoid","startName","closeName","visitPlaceholder","visitIcuPlaceholder","visitBlockPlaceholder","padStart","fingerprint","byteOffset","hi","hash32","lo","BigInt","asUintN","msg","msgFingerprint","remainder","getUint8","TypeModifier","BuiltinTypeName","add32to64","low","high","byteAt","word","Little","Const","hasModifier","modifier","Dynamic","Bool","Int","Inferred","BuiltinType","visitType","visitBuiltinType","ExpressionType","typeParams","visitExpressionType","DYNAMIC_TYPE","INFERRED_TYPE","BOOL_TYPE","NUMBER_TYPE","STRING_TYPE","NONE_TYPE","UnaryOperator","BinaryOperator","nullSafeIsEquivalent","isEquivalent","areAllEquivalentPredicate","equivalentPredicate","areAllEquivalent","baseElement","otherElement","Minus","Equals","NotEquals","Identical","NotIdentical","Divide","Multiply","Modulo","And","Or","BitwiseOr","BitwiseAnd","Lower","LowerEquals","Bigger","BiggerEquals","NullishCoalesce","Expression","sourceSpan","ReadPropExpr","ReadKeyExpr","callFn","InvokeFunctionExpr","instantiate","InstantiateExpr","conditional","trueCase","falseCase","ConditionalExpr","rhs","BinaryOperatorExpr","notEquals","identical","notIdentical","minus","plus","divide","multiply","modulo","and","bitwiseOr","parens","bitwiseAnd","or","lower","lowerEquals","bigger","biggerEquals","isBlank","TYPED_NULL_EXPR","nullishCoalesce","toStmt","ExpressionStatement","ReadVarExpr","isConstant","visitExpression","visitReadVarExpr","WriteVarExpr","TypeofExpr","expr","visitTypeofExpr","WrappedNodeExpr","visitWrappedNodeExpr","visitWriteVarExpr","toDeclStmt","DeclareVarStmt","toConstDecl","StmtModifier","Final","WriteKeyExpr","visitWriteKeyExpr","WritePropExpr","visitWritePropExpr","visitInvokeFunctionExpr","arg","TaggedTemplateExpr","expressions","visitTaggedTemplateExpr","classExpr","visitInstantiateExpr","LiteralExpr","visitLiteralExpr","TemplateLiteral","TemplateLiteralElement","rawText","escapeForTemplateLiteral","escapeSlashes","LiteralPiece","PlaceholderPiece","associatedMessage","LocalizedString","metaBlock","messageParts","placeHolderNames","visitLocalizedString","serializeI18nHead","customId","legacyIds","legacyId","createCookedRawString","getMessagePartSourceSpan","getPlaceholderSourceSpan","serializeI18nTemplatePart","partIndex","messagePart","messageString","escapeStartingColon","escapeColons","range","cooked","raw","ExternalExpr","moduleName","visitExternalExpr","visitConditionalExpr","NotExpr","visitNotExpr","FnParam","FunctionExpr","DeclareFunctionStmt","visitFunctionExpr","ArrowFunctionExpr","visitArrowFunctionExpr","UnaryOperatorExpr","operator","visitUnaryOperatorExpr","lhs","visitBinaryOperatorExpr","visitReadPropExpr","visitReadKeyExpr","LiteralArrayExpr","visitLiteralArrayExpr","LiteralMapEntry","quoted","LiteralMapExpr","valueType","visitLiteralMapExpr","entriesClone","NULL_EXPR","Private","Exported","Static","LeadingComment","multiline","trailingNewline","JSDocComment","serializeTags","tagToString","out","Statement","leadingComments","addLeadingComment","leadingComment","stmt","visitStatement","visitDeclareVarStmt","visitDeclareFunctionStmt","visitExpressionStmt","ReturnStatement","visitReturnStmt","IfStmt","visitIfStmt","jsDocComment","variable","importExpr","expressionType","typeModifiers","typeofExpr","literalArr","literalMap","not","arrowFn","ifStmt","thenClause","elseClause","taggedTemplate","literal","localizedString","placeholderNames","UNKNOWN_VALUE_KEY","KEY_CONTEXT","FixupExpression","resolved","original","shared","fixup","ConstantPool","isClosureCompilerEnabled","literals","literalFactories","sharedConstants","_claimedNames","nextNameIndex","getConstLiteral","forceShared","isLongStringLiteral","GenericKeyFn","INSTANCE","keyOf","freshName","definition","getSharedConstant","toSharedConstantDeclaration","getLiteralFactory","argumentsForKey","_getLiteralFactory","expressionForKey","getSharedFunctionReference","useUniqueName","isArrow","uniqueName","resultMap","literalFactory","literalFactoryArguments","resultExpressions","pureFunctionDeclaration","isVariable","alwaysIncludeSuffix","CORE","Identifiers","DASH_CASE_REGEXP","_splitAt","characterIndex","overriddenName","newLineIndex","_global","V1_TO_18","getJitStandaloneDefaultForVersion","SourceMapGenerator","sourcesContent","lines","lastCol0","hasMappings","addSource","addLine","addMapping","col0","sourceUrl","sourceLine0","sourceCol0","currentLine","toJSON","sourcesIndex","sources","mappings","lastSourceIndex","lastSourceLine0","lastSourceCol0","segment","segAsStr","toBase64VLQ","sourceRoot","toJsComment","toBase64String","b64","encoded","utf8Encode","codePoint","i2","i3","toBase64Digit","B64_DIGITS","_SINGLE_QUOTE_ESCAPE_STRING_RE","_LEGAL_IDENTIFIER_RE","_EmittedLine","indent","partsLength","srcSpans","EmitterVisitorContext","_indent","_lines","_currentLine","println","lastPart","lineIsEmpty","lineLength","_INDENT_WITH","newLine","removeEmptyLastLine","incIndent","decIndent","toSource","sourceLines","_createIndent","toSourceMapGenerator","genFilePath","startsAtLine","firstOffsetMapped","mapFirstOffsetIfNeeded","lineIdx","spans","spanIdx","sourceLine","sourceCol","col","spanOf","column","emittedLine","columnsLeft","AbstractEmitterVisitor","_escapeDollarInStrings","printLeadingComments","comment","hasElseCase","visitAllStatements","lineWasEmpty","shouldParenthesize","visitAllExpressions","ast","escapeIdentifier","visitDynamicImportExpr","opStr","visitAllObjects","visitCommaExpr","separator","incrementedIndent","escapeDollar","alwaysQuote","typeWithParameters","numParams","getSafePropertyAccessString","accessor","escapedName","guardedExpression","guard","guardExpr","guardNotDefined","guardUndefinedOrTrue","wrapReference","wrapped","refsToArray","shouldForwardDeclare","createMayBeForwardRefExpression","convertFromMaybeForwardRefExpression","generateForwardRef","R3FactoryDelegateType","FactoryTarget$1","ParsedPropertyType","ParsedEventType","BindingType","TagContentType","compileFactoryFunction","baseFactoryVar","typeForCtor","isDelegatedFactoryMetadata","ctorExpr","injectDependencies","retExpr","makeConditionalFactory","nonCtorExpr","ctorStmt","invalidFactory","delegateArgs","delegateDeps","delegateType","Class","isExpressionFactoryMetadata","getInheritedFactoryCall","getInheritedFactory","baseFactory","factoryFn","createFactoryType","ctorDepsType","createCtorDepsType","hasTypes","attributeTypes","dep","createCtorDepType","attributeNameType","skipSelf","FactoryDeclaration","typeArgumentCount","compileInjectDependency","invalidFactoryDep","flagsParam","injectArgs","injectFn","getInjectFn","directiveInject","injectAttribute","FactoryTarget","ParserError","errLocation","ctxLocation","ParseSpan","toAbsolute","absoluteOffset","AbsoluteSourceSpan","AST","ASTWithName","nameSpan","EmptyExpr$1","ImplicitReceiver","visitImplicitReceiver","ThisReceiver","visitThisReceiver","Chain","visitChain","Conditional","trueExp","falseExp","visitConditional","PropertyRead","visitPropertyRead","PropertyWrite","visitPropertyWrite","SafePropertyRead","visitSafePropertyRead","KeyedRead","visitKeyedRead","SafeKeyedRead","visitSafeKeyedRead","KeyedWrite","visitKeyedWrite","BindingPipe","exp","visitPipe","LiteralPrimitive","visitLiteralPrimitive","LiteralArray","visitLiteralArray","LiteralMap","visitLiteralMap","Interpolation$1","visitInterpolation","Binary","operation","visitBinary","Unary","createMinus","createPlus","binaryOp","binaryLeft","binaryRight","visitUnary","PrefixNot","visitPrefixNot","TypeofExpression","visitTypeofExpression","NonNullAssert","visitNonNullAssert","Call","argumentSpan","visitCall","SafeCall","visitSafeCall","ASTWithSource","visitASTWithSource","VariableBinding","ExpressionBinding","RecursiveAstVisitor","visitAll","asts","ParsedProperty","keySpan","valueSpan","isLiteral","isAnimation","LITERAL_ATTR","ANIMATION","TWO_WAY","Animation","TwoWay","ParsedEvent","targetOrPhase","handlerSpan","ParsedVariable","Property","Attribute","Style","BoundElementProperty","securityContext","splitNsName","elementName","fatal","colonIndex","isNgContainer","isNgContent","getNsPrefix","fullName","mergeNsAndName","localName","RAW_TEXT","ESCAPABLE_RAW_TEXT","PARSABLE_DATA","Comment$1","_visitor","Text$3","BoundText","visitBoundText","TextAttribute","visitTextAttribute","BoundAttribute","fromBoundElementProperty","visitBoundAttribute","BoundEvent","phase","fromParsedEvent","visitBoundEvent","Element$1","outputs","references","startSourceSpan","endSourceSpan","visitElement","DeferredTrigger","prefetchSpan","whenOrOnSourceSpan","hydrateSpan","visitDeferredTrigger","BoundDeferredTrigger","whenSourceSpan","NeverDeferredTrigger","IdleDeferredTrigger","ImmediateDeferredTrigger","HoverDeferredTrigger","onSourceSpan","TimerDeferredTrigger","InteractionDeferredTrigger","ViewportDeferredTrigger","BlockNode","DeferredBlockPlaceholder","minimumTime","visitDeferredBlockPlaceholder","DeferredBlockLoading","afterTime","visitDeferredBlockLoading","DeferredBlockError","visitDeferredBlockError","DeferredBlock","mainBlockSpan","triggers","prefetchTriggers","hydrateTriggers","definedTriggers","definedPrefetchTriggers","definedHydrateTriggers","visitDeferredBlock","visitTriggers","visitAll$1","SwitchBlock","unknownBlocks","visitSwitchBlock","SwitchBlockCase","visitSwitchBlockCase","ForLoopBlock","trackBy","trackKeywordSpan","contextVariables","empty","visitForLoopBlock","ForLoopBlockEmpty","visitForLoopBlockEmpty","IfBlock","branches","visitIfBlock","IfBlockBranch","expressionAlias","visitIfBlockBranch","UnknownBlock","visitUnknownBlock","LetDeclaration$1","visitLetDeclaration","Template","templateAttrs","visitTemplate","visitContent","Variable","visitVariable","Reference","visitReference","Icu$1","vars","placeholders","Message","placeholderToMessage","messageNodes","LocalizeMessageStringVisitor","filePath","startLine","startCol","endLine","endCol","Text$2","Icu","expressionPlaceholder","TagPlaceholder","IcuPlaceholder","BlockPlaceholder","parameters","_Visitor$2","visitTag","strAttrs","_serializeAttributes","strChildren","visitDeclaration","decl","visitDoctype","doctype","rootTag","dtd","toPublicName","internalName","I18N_ATTR_PREFIX","isI18nAttribute","icuFromI18nMessage","formatI18nPlaceholderNamesInMap","useCamelCase","_params","formatI18nPlaceholderName","publicName","postfix","UNSAFE_OBJECT_KEY_NAME_REGEXP","CONTEXT_NAME","temporaryAllocator","pushStatement","asLiteral","conditionallyCreateDirectiveBindingLiteral","forInputs","declaredName","minifiedName","expressionValue","classPropertyName","bindingPropertyName","differentDeclaringName","hasDecoratorInputTransform","transformFunction","isSignal","DefinitionMap","toLiteralMap","createCssSelectorFromNode","getAttrsForDirectiveMatching","elOrTpl","attributesMap","elementNameNoNs","nameNoNs","compileInjectable","resolveForwardRefs","factoryMeta","useClassOnSelf","delegateToFactory","injectableProps","createInjectableType","InjectableDeclaration","useType","unwrapForwardRefs","createFactoryFunction","resolveForwardRef","UNUSABLE_INTERPOLATION_REGEXPS","InterpolationConfig","fromArray","markers","assertInterpolationSymbols","regexp","DEFAULT_INTERPOLATION_CONFIG","DEFAULT_CONTAINER_BLOCKS","$LBRACE","$RBRACE","isWhitespace","isDigit","isAsciiLetter","isNewLine","isOctalDigit","isQuote","ParseLocation","moveBy","delta","priorLine","fromCharCode","getContext","maxChars","maxLines","startOffset","endOffset","ctxChars","ctxLines","before","after","ParseSourceFile","ParseSourceSpan","fullStart","details","ParseErrorLevel","WARNING","ParseError","relatedError","contextualMessage","_anonymousTypeIndex","sanitizeIdentifier","makeTemplateObjectPolyfill","AbstractJsEmitterVisitor","_visitParams","isObjectLiteral","policy","trustedScriptFromString","getPolicy","trustedTypes","createPolicy","createScript","newTrustedFunctionForJIT","eval","JitEvaluator","evaluateStatements","refResolver","createSourceMaps","converter","JitEmitterVisitor","isUseStrictStatement","statement","createReturnStmt","evaluateCode","getArgs","createSourceMap","fnBody","fnArgNames","fnArgValues","argName","emptyFn","headerLines","executeFunction","_evalArgNames","_evalArgValues","_evalExportedVars","resultVar","_emitReferenceToExternal","resolveExternalReference","identifierName","compileIdentifier","__anonymousType","__forward_ref__","compileInjector","definitionMap","defineInjector","createInjectorType","InjectorDeclaration","R3JitReflector","R3SelectorScopeMode","R3NgModuleMetadataKind","R3TemplateDependencyKind","compileNgModule","Global","containsForwardDecls","selectorScopeMode","Inline","SideEffect","setNgModuleScopeCall","generateSetNgModuleScopeCall","scopeMap","declarationsExpression","importsExpression","exportsExpression","Local","bootstrapExpression","fnCall","setNgModuleScope","guardedCall","jitOnlyGuardedExpression","iife","schemas","registerNgModuleType","defineNgModule","createNgModuleType","moduleType","includeImportTypes","publicDeclarationTypes","NgModuleDeclaration","tupleTypeOf","tupleOfTypes","typeofTypes","compilePipeFromMetadata","definitionMapValues","pipeName","isStandalone","definePipe","createPipeType","PipeDeclaration","Omit","animationKeywords","scopedAtRuleIdentifiers","ShadowCss","shimCssText","hostSelector","comments","_commentRe","_commentWithHashRe","newLinesMatches","_newLinesRe","COMMENT_PLACEHOLDER","_insertDirectives","scopedCssText","_scopeCssText","commentIdx","_commentWithHashPlaceHolderRe","_insertPolyfillDirectivesInCssText","_insertPolyfillRulesInCssText","_scopeKeyframesRelatedCss","scopeSelector","unscopedKeyframesSet","scopedKeyframesCssText","processRules","_scopeLocalKeyframeDeclarations","_scopeAnimationRule","quote","keyframeName","endSpaces","unescapeQuotes","_scopeAnimationKeyframe","keyframe","spaces1","spaces2","_animationDeclarationKeyframesRe","animationDeclarations","leadingSpaces","quotedName","nonQuotedName","_match","commaSeparatedKeyframes","_cssContentNextSelectorRe","_cssContentRuleRe","unscopedRules","_extractUnscopedRulesFromCssText","_insertPolyfillHostInCssText","_convertColonHost","_convertColonHostContext","_convertShadowDOMSelectors","_scopeSelectors","_cssContentUnscopedRuleRe","_cssColonHostRe","hostSelectors","otherSelectors","convertedSelectors","hostSelectorArray","convertedSelector","_polyfillHostNoCombinator","_polyfillHost","_convertColonHostContextInSelectorPart","_cssColonHostContextReGlobal","selectorText","pseudoPrefix","contextSelectorGroups","_cssColonHostContextRe","newContextSelectors","contextSelectorGroupsLength","repeatGroups","contextSelectors","_combineHostContextSelectors","hostMarker","_polyfillHostRe","otherSelectorsHasHost","combined","contextSelector","previousSelectors","_shadowDOMSelectorsRe","_scopeSelector","isParentSelector","atRule","_stripScopingSelectors","CssRule","_shadowDeepSelectors","_polyfillHostNoCombinatorRe","_safeSelector","_shouldScopeIndicator","deepParts","shallowPart","otherParts","_selectorNeedsScoping","_applySelectorScope","_makeScopeMatcher","_selectorReSuffix","_applySimpleSelectorScope","replaceBy","_hnc","colon","attrName","_scopeSelectorPart","scopedP","_polyfillHostNoCombinatorOutsidePseudoFunction","_pseudoFunctionAwareScopeSelectorPart","selectorPart","scopedPart","pseudoSelectorParts","pseudoSelectorMatch","_cssPrefixWithPseudoSelectorFunction","openedBrackets","currentSymbol","cssPseudoSelectorFunction","selectorToScope","SafeSelector","scopedSelector","hasHost","_colonHostContextRe","_polyfillHostContext","_colonHostRe","_content","_escapeRegexMatches","keep","pseudo","_ph","_parenSuffix","_hostContextPattern","BLOCK_PLACEHOLDER","_ruleRe","CONTENT_PAIRS","COMMA_IN_PLACEHOLDER","SEMI_IN_PLACEHOLDER","COLON_IN_PLACEHOLDER","_cssCommaInPlaceholderReGlobal","_cssSemiInPlaceholderReGlobal","_cssColonInPlaceholderReGlobal","ruleCallback","escaped","escapeInStrings","currentQuoteChar","ESCAPE_IN_STRING_MAP","inputWithEscapedBlocks","escapeBlocks","charPairs","resultParts","escapedBlocks","openChar","closeChar","openCharCount","nonBlockStartIndex","blockStartIndex","StringWithEscapedBlocks","nextBlockIndex","unescapeInStrings","escapedString","suffix","contentPrefix","blocks","isQuoted","multiples","OpKind","ExpressionKind","VariableFlags","SemanticVariableKind","CompatibilityMode","BindingKind","I18nParamResolutionTime","I18nExpressionFor","I18nParamValueFlags","Namespace","DeferTriggerKind","I18nContextKind","TemplateKind","ListEnd","ElementStart","ElementEnd","ContainerStart","ContainerEnd","DisableBindings","EnableBindings","Listener","InterpolateText","Binding","StyleProp","ClassProp","StyleMap","ClassMap","Advance","ExtractedAttribute","Defer","DeferOn","DeferWhen","I18nMessage","HostProperty","ProjectionDef","Projection","RepeaterCreate","Repeater","TwoWayProperty","TwoWayListener","DeclareLet","StoreLet","I18nStart","I18n","I18nEnd","I18nExpression","I18nApply","IcuStart","IcuEnd","I18nContext","I18nAttributes","SourceLocation","LexicalRead","TrackContext","ReadVariable","NextContext","ContextLetReference","GetCurrentView","RestoreView","ResetView","PureFunctionExpr","PureFunctionParameterExpr","PipeBinding","PipeBindingVariadic","SafeInvokeFunction","SafeTernaryExpr","EmptyExpr","AssignTemporaryExpr","ReadTemporaryExpr","SlotLiteralExpr","ConditionalCase","ConstCollected","TwoWayBindingSet","AlwaysInline","Identifier","SavedView","Normal","TemplateDefinitionBuilder","ClassName","StyleProperty","Creation","Postproccessing","I18nText","I18nAttribute","ElementTag","TemplateTag","OpenTag","CloseTag","ExpressionIndex","SVG","Idle","Immediate","Hover","Interaction","Never","RootI18n","Attr","NgTemplate","Structural","Block","ConsumesSlot","DependsOnSlotContext","ConsumesVarsTrait","UsesVarOffset","TRAIT_CONSUMES_SLOT","Kd","numSlotsUsed","TRAIT_DEPENDS_ON_SLOT_CONTEXT","sd","TRAIT_CONSUMES_VARS","iu","hasConsumesSlotTrait","hasDependsOnSlotContextTrait","hasConsumesVarsTrait","hasUsesVarOffsetTrait","createStatementOp","NEW_OP","createVariableOp","xref","initializer","debugListId","Interpolation","i18nPlaceholders","createBindingOp","isTextAttribute","isStructuralTemplateAttribute","templateKind","i18nMessage","bindingKind","i18nContext","createPropertyOp","isAnimationTrigger","createTwoWayPropertyOp","createStylePropOp","createClassPropOp","createStyleMapOp","createClassMapOp","createAttributeOp","namespace","createAdvanceOp","createConditionalOp","processed","contextValue","createI18nExpressionOp","i18nOwner","icuPlaceholder","i18nPlaceholder","resolutionTime","createI18nApplyOp","owner","isIrExpression","ExpressionBase","LexicalReadExpr","transformInternalExpressions","ReferenceExpr","targetSlot","StoreLetExpr","transformExpressionsInExpression","ContextLetReferenceExpr","ContextExpr","TrackContextExpr","NextContextExpr","GetCurrentViewExpr","RestoreViewExpr","ResetViewExpr","TwoWayBindingSetExpr","ReadVariableExpr","lc","varOffset","VisitorContextFlag","InChildOperation","PipeBindingExpr","PipeBindingVariadicExpr","numArgs","SafePropertyReadExpr","SafeKeyedReadExpr","SafeInvokeFunctionExpr","slot","ConditionalCaseExpr","ConstCollectedExpr","visitExpressionsInOp","transformExpressionsInOp","transformExpressionsInInterpolation","interpolation","transformExpressionsInStatement","innerOp","handlerOps","trustedValueFn","trackByFn","loadingConfig","resolverFn","postprocessingParams","caseStatement","isStringLiteral","OpList","nextListId","tail","assertIsNotEnd","assertIsUnowned","oldLast","ops","assertIsOwned","reversed","oldOp","newOp","replaceWithMany","newOps","listId","oldPrev","oldNext","byList","SlotHandle","elementContainerOpKinds","isElementOrContainerOp","createTemplateOp","functionNameSuffix","wholeSourceSpan","decls","localRefs","nonBindable","createDisableBindingsOp","createEnableBindingsOp","createTextOp","createListenerOp","animationPhase","hostListener","handlerList","handlerFnName","consumesDollarEvent","isAnimationListener","createTwoWayListenerOp","createPipeOp","createNamespaceOp","createProjectionDefOp","createExtractedAttributeOp","createDeferOnOp","createI18nStartOp","messageIndex","subTemplateIndex","createI18nEndOp","createIcuPlaceholderOp","expressionPlaceholders","createI18nContextOp","contextKind","i18nBlock","createI18nAttributesOp","i18nAttributesConfig","createSourceLocationOp","templatePath","createHostPropertyOp","CTX_REF","CompilationJobKind","Tmpl","Both","CompilationJob","componentName","pool","compatibility","allocateXrefId","nextXrefId","ComponentCompilationJob","relativeContextFilePath","i18nUseExternalIds","deferMeta","allDeferrableDepsFn","relativeTemplatePath","enableDebugLocations","ViewCompilationUnit","fnSuffix","contentSelectors","allocateView","addConst","newConst","initializers","consts","constsInitializers","CompilationUnit","fnName","listenerOp","job","HostBindingCompilationJob","HostBindingCompilationUnit","removeAnys","needsApplication","i18nContexts","nextContext","createOpXrefMap","emptyView","lookupElement$2","extractAttributeOp","extractable","extractedAttributeOp","ownerOp","lookupElement$1","CHAINABLE","classProp","elementContainer","elementContainerEnd","elementContainerStart","elementEnd","elementStart","hostProperty","i18nExp","styleProp","stylePropInterpolate1","stylePropInterpolate2","stylePropInterpolate3","stylePropInterpolate4","stylePropInterpolate5","stylePropInterpolate6","stylePropInterpolate7","stylePropInterpolate8","stylePropInterpolateV","syntheticHostListener","syntheticHostProperty","templateCreate","twoWayProperty","twoWayListener","declareLet","chainOperationsInList","opList","instruction","BINARY_OPERATORS","namespaceForKey","namespacePrefixKey","NAMESPACES","prefixWithNamespace","strippedTag","keyForNamespace","literalOrArrayLiteral","getConstIndex","allElementAttributes","attrArray","serializeAttributes","FLYWEIGHT_ARRAY","ElementAttributes","known","byKind","propertyBindings","projectAs","bindings","isKnown","nameToValue","arrayFor","getAttributeNameLiterals","nameLiteral","parsedR3Selector","Scope$1","REPLACEMENTS","IGNORED_OP_KINDS","needsTemporaryInSafeAccess","safeTernaryWithTemporary","eliminateTemporaryAssignments","tmps","temporariesIn","temporaries","isAccessExpression","isSafeAccessExpression","isUnsafeAccessExpression","safeTransform","dst","deepestSafeTernary","st","ternaryTransform","createI18nMessage","messagePlaceholder","formattedParams","formatParams","formattedPostprocessingParams","needsPostprocessing","createI18nMessageOp","subMessages","formatIcuPlaceholder","placeholderValues","serializedValues","formatParamValues","elementValue","templateValue","tagMarker","closeMarker","recursivelyProcessView","parentScope","getScopeForView","viewContextVariable","letDeclarations","targetId","fallbackView","generateVariablesInScopeForView","isListener","scopeView","BANG_IMPORTANT","isCssCustomProperty","hyphenate$1","parseProperty","overrideIndex","unitIndex","mapLiteral","serializer","IcuSerializerVisitor","formatPh","serializeIcuNode","NodeWithI18n","Expansion","switchValueSourceSpan","visitExpansion","ExpansionCase","valueSourceSpan","expSourceSpan","visitExpansionCase","valueTokens","visitAttribute","Comment","visitComment","visitBlock","BlockParameter","visitBlockParameter","LetDeclaration","astResult","NAMED_ENTITIES","AElig","AMP","amp","Aacute","Abreve","Acirc","Acy","Afr","Agrave","Alpha","Amacr","Aogon","Aopf","ApplyFunction","af","Aring","angst","Ascr","Assign","colone","coloneq","Atilde","Auml","Backslash","setminus","setmn","smallsetminus","ssetmn","Barv","Barwed","doublebarwedge","Bcy","Because","becaus","because","Bernoullis","Bscr","bernou","Beta","Bfr","Bopf","Breve","breve","Bumpeq","HumpDownHump","bump","CHcy","COPY","Cacute","Cap","CapitalDifferentialD","DD","Cayleys","Cfr","Ccaron","Ccedil","Ccirc","Cconint","Cdot","Cedilla","cedil","CenterDot","centerdot","middot","Chi","CircleDot","odot","CircleMinus","ominus","CirclePlus","oplus","CircleTimes","otimes","ClockwiseContourIntegral","cwconint","CloseCurlyDoubleQuote","rdquo","rdquor","CloseCurlyQuote","rsquo","rsquor","Colon","Proportion","Colone","Congruent","equiv","Conint","DoubleContourIntegral","ContourIntegral","conint","oint","Copf","complexes","Coproduct","coprod","CounterClockwiseContourIntegral","awconint","Cross","Cscr","Cup","CupCap","asympeq","DDotrahd","DJcy","DScy","DZcy","Dagger","ddagger","Darr","Dashv","DoubleLeftTee","Dcaron","Dcy","Del","nabla","Delta","Dfr","DiacriticalAcute","acute","DiacriticalDot","dot","DiacriticalDoubleAcute","dblac","DiacriticalGrave","grave","DiacriticalTilde","tilde","Diamond","diam","diamond","DifferentialD","Dopf","Dot","DoubleDot","die","uml","DotDot","DotEqual","doteq","esdot","DoubleDownArrow","Downarrow","dArr","DoubleLeftArrow","Leftarrow","lArr","DoubleLeftRightArrow","Leftrightarrow","hArr","iff","DoubleLongLeftArrow","Longleftarrow","xlArr","DoubleLongLeftRightArrow","Longleftrightarrow","xhArr","DoubleLongRightArrow","Longrightarrow","xrArr","DoubleRightArrow","Implies","Rightarrow","rArr","DoubleRightTee","vDash","DoubleUpArrow","Uparrow","uArr","DoubleUpDownArrow","Updownarrow","vArr","DoubleVerticalBar","par","parallel","shortparallel","spar","DownArrow","ShortDownArrow","darr","downarrow","DownArrowBar","DownArrowUpArrow","duarr","DownBreve","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","leftharpoondown","lhard","DownLeftVectorBar","DownRightTeeVector","DownRightVector","rhard","rightharpoondown","DownRightVectorBar","DownTee","DownTeeArrow","mapstodown","Dscr","Dstrok","ENG","ETH","Eacute","Ecaron","Ecirc","Ecy","Edot","Efr","Egrave","in","isin","isinv","Emacr","EmptySmallSquare","EmptyVerySmallSquare","Eogon","Eopf","Epsilon","Equal","EqualTilde","eqsim","esim","Equilibrium","rightleftharpoons","rlhar","Escr","expectation","Esim","Eta","Euml","Exists","exist","ExponentialE","ee","exponentiale","Fcy","Ffr","FilledSmallSquare","FilledVerySmallSquare","blacksquare","squarf","squf","Fopf","ForAll","forall","Fouriertrf","Fscr","GJcy","GT","gt","Gamma","Gammad","Gbreve","Gcedil","Gcirc","Gcy","Gdot","Gfr","Gg","ggg","Gopf","GreaterEqual","ge","geq","GreaterEqualLess","gel","gtreqless","GreaterFullEqual","gE","geqq","GreaterGreater","GreaterLess","gl","gtrless","GreaterSlantEqual","geqslant","ges","GreaterTilde","gsim","gtrsim","Gscr","Gt","NestedGreaterGreater","gg","HARDcy","Hacek","caron","Hat","Hcirc","Hfr","Poincareplane","HilbertSpace","Hscr","hamilt","Hopf","quaternions","HorizontalLine","boxh","Hstrok","HumpEqual","bumpe","bumpeq","IEcy","IJlig","IOcy","Iacute","Icirc","Icy","Idot","Ifr","Im","imagpart","Igrave","Imacr","ImaginaryI","ii","Integral","Intersection","bigcap","xcap","InvisibleComma","ic","InvisibleTimes","it","Iogon","Iopf","Iota","Iscr","imagline","Itilde","Iukcy","Iuml","Jcirc","Jcy","Jfr","Jopf","Jscr","Jsercy","Jukcy","KHcy","KJcy","Kappa","Kcedil","Kcy","Kfr","Kopf","Kscr","LJcy","LT","lt","Lacute","Lambda","Lang","Laplacetrf","Lscr","lagran","Larr","twoheadleftarrow","Lcaron","Lcedil","Lcy","LeftAngleBracket","langle","LeftArrow","ShortLeftArrow","larr","leftarrow","slarr","LeftArrowBar","larrb","LeftArrowRightArrow","leftrightarrows","lrarr","LeftCeiling","lceil","LeftDoubleBracket","lobrk","LeftDownTeeVector","LeftDownVector","dharl","downharpoonleft","LeftDownVectorBar","LeftFloor","lfloor","LeftRightArrow","harr","leftrightarrow","LeftRightVector","LeftTee","dashv","LeftTeeArrow","mapstoleft","LeftTeeVector","LeftTriangle","vartriangleleft","vltri","LeftTriangleBar","LeftTriangleEqual","ltrie","trianglelefteq","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","uharl","upharpoonleft","LeftUpVectorBar","LeftVector","leftharpoonup","lharu","LeftVectorBar","LessEqualGreater","leg","lesseqgtr","LessFullEqual","lE","leqq","LessGreater","lessgtr","lg","LessLess","LessSlantEqual","leqslant","les","LessTilde","lesssim","lsim","Lfr","Ll","Lleftarrow","lAarr","Lmidot","LongLeftArrow","longleftarrow","xlarr","LongLeftRightArrow","longleftrightarrow","xharr","LongRightArrow","longrightarrow","xrarr","Lopf","LowerLeftArrow","swarr","swarrow","LowerRightArrow","searr","searrow","Lsh","lsh","Lstrok","Lt","NestedLessLess","ll","Mcy","MediumSpace","Mellintrf","Mscr","phmmat","Mfr","MinusPlus","mnplus","mp","Mopf","Mu","NJcy","Nacute","Ncaron","Ncedil","Ncy","NegativeMediumSpace","NegativeThickSpace","NegativeThinSpace","NegativeVeryThinSpace","ZeroWidthSpace","NewLine","Nfr","NoBreak","NonBreakingSpace","nbsp","Nopf","naturals","Not","NotCongruent","nequiv","NotCupCap","NotDoubleVerticalBar","npar","nparallel","nshortparallel","nspar","NotElement","notin","notinva","NotEqual","ne","NotEqualTilde","nesim","NotExists","nexist","nexists","NotGreater","ngt","ngtr","NotGreaterEqual","nge","ngeq","NotGreaterFullEqual","ngE","ngeqq","NotGreaterGreater","nGtv","NotGreaterLess","ntgl","NotGreaterSlantEqual","ngeqslant","nges","NotGreaterTilde","ngsim","NotHumpDownHump","nbump","NotHumpEqual","nbumpe","NotLeftTriangle","nltri","ntriangleleft","NotLeftTriangleBar","NotLeftTriangleEqual","nltrie","ntrianglelefteq","NotLess","nless","nlt","NotLessEqual","nle","nleq","NotLessGreater","ntlg","NotLessLess","nLtv","NotLessSlantEqual","nleqslant","nles","NotLessTilde","nlsim","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","npr","nprec","NotPrecedesEqual","npre","npreceq","NotPrecedesSlantEqual","nprcue","NotReverseElement","notni","notniva","NotRightTriangle","nrtri","ntriangleright","NotRightTriangleBar","NotRightTriangleEqual","nrtrie","ntrianglerighteq","NotSquareSubset","NotSquareSubsetEqual","nsqsube","NotSquareSuperset","NotSquareSupersetEqual","nsqsupe","NotSubset","nsubset","vnsub","NotSubsetEqual","nsube","nsubseteq","NotSucceeds","nsc","nsucc","NotSucceedsEqual","nsce","nsucceq","NotSucceedsSlantEqual","nsccue","NotSucceedsTilde","NotSuperset","nsupset","vnsup","NotSupersetEqual","nsupe","nsupseteq","NotTilde","nsim","NotTildeEqual","nsime","nsimeq","NotTildeFullEqual","ncong","NotTildeTilde","nap","napprox","NotVerticalBar","nmid","nshortmid","nsmid","Nscr","Ntilde","Nu","OElig","Oacute","Ocirc","Ocy","Odblac","Ofr","Ograve","Omacr","Omega","ohm","Omicron","Oopf","OpenCurlyDoubleQuote","ldquo","OpenCurlyQuote","lsquo","Oscr","Oslash","Otilde","Otimes","Ouml","OverBar","oline","OverBrace","OverBracket","tbrk","OverParenthesis","PartialD","Pcy","Pfr","Phi","Pi","PlusMinus","plusmn","pm","Popf","primes","Pr","Precedes","pr","prec","PrecedesEqual","pre","preceq","PrecedesSlantEqual","prcue","preccurlyeq","PrecedesTilde","precsim","prsim","Prime","Product","prod","Proportional","propto","varpropto","vprop","Pscr","Psi","QUOT","quot","Qfr","Qopf","rationals","Qscr","RBarr","drbkarow","REG","circledR","reg","Racute","Rang","Rarr","twoheadrightarrow","Rarrtl","Rcaron","Rcedil","Rcy","Re","Rfr","real","realpart","ReverseElement","SuchThat","ni","niv","ReverseEquilibrium","leftrightharpoons","lrhar","ReverseUpEquilibrium","duhar","Rho","RightAngleBracket","rang","rangle","RightArrow","ShortRightArrow","rarr","rightarrow","srarr","RightArrowBar","rarrb","RightArrowLeftArrow","rightleftarrows","rlarr","RightCeiling","rceil","RightDoubleBracket","robrk","RightDownTeeVector","RightDownVector","dharr","downharpoonright","RightDownVectorBar","RightFloor","rfloor","RightTee","vdash","RightTeeArrow","mapsto","RightTeeVector","RightTriangle","vartriangleright","vrtri","RightTriangleBar","RightTriangleEqual","rtrie","trianglerighteq","RightUpDownVector","RightUpTeeVector","RightUpVector","uharr","upharpoonright","RightUpVectorBar","RightVector","rharu","rightharpoonup","RightVectorBar","Ropf","reals","RoundImplies","Rrightarrow","rAarr","Rscr","realine","Rsh","rsh","RuleDelayed","SHCHcy","SHcy","SOFTcy","Sacute","Sc","Scaron","Scedil","Scirc","Scy","Sfr","ShortUpArrow","UpArrow","uarr","uparrow","Sigma","SmallCircle","compfn","Sopf","Sqrt","radic","Square","squ","square","SquareIntersection","sqcap","SquareSubset","sqsub","sqsubset","SquareSubsetEqual","sqsube","sqsubseteq","SquareSuperset","sqsup","sqsupset","SquareSupersetEqual","sqsupe","sqsupseteq","SquareUnion","sqcup","Sscr","sstarf","Sub","Subset","SubsetEqual","sube","subseteq","Succeeds","sc","succ","SucceedsEqual","sce","succeq","SucceedsSlantEqual","sccue","succcurlyeq","SucceedsTilde","scsim","succsim","Sum","Sup","Supset","Superset","sup","supset","SupersetEqual","supe","supseteq","THORN","TRADE","trade","TSHcy","TScy","Tab","Tau","Tcaron","Tcedil","Tcy","Tfr","Therefore","there4","therefore","Theta","ThickSpace","ThinSpace","thinsp","Tilde","sim","thicksim","thksim","TildeEqual","sime","simeq","TildeFullEqual","cong","TildeTilde","ap","approx","asymp","thickapprox","thkap","Topf","TripleDot","tdot","Tscr","Tstrok","Uacute","Uarr","Uarrocir","Ubrcy","Ubreve","Ucirc","Ucy","Udblac","Ufr","Ugrave","Umacr","UnderBar","lowbar","UnderBrace","UnderBracket","bbrk","UnderParenthesis","Union","bigcup","xcup","UnionPlus","uplus","Uogon","Uopf","UpArrowBar","UpArrowDownArrow","udarr","UpDownArrow","updownarrow","varr","UpEquilibrium","udhar","UpTee","bot","perp","UpTeeArrow","mapstoup","UpperLeftArrow","nwarr","nwarrow","UpperRightArrow","nearr","nearrow","Upsi","upsih","Upsilon","Uring","Uscr","Utilde","Uuml","VDash","Vbar","Vcy","Vdash","Vdashl","Vee","bigvee","xvee","Verbar","Vert","VerticalBar","mid","shortmid","smid","VerticalLine","verbar","vert","VerticalSeparator","VerticalTilde","wr","wreath","VeryThinSpace","hairsp","Vfr","Vopf","Vscr","Vvdash","Wcirc","Wedge","bigwedge","xwedge","Wfr","Wopf","Wscr","Xfr","Xi","Xopf","Xscr","YAcy","YIcy","YUcy","Yacute","Ycirc","Ycy","Yfr","Yopf","Yscr","Yuml","ZHcy","Zacute","Zcaron","Zcy","Zdot","Zeta","Zfr","zeetrf","Zopf","integers","Zscr","aacute","abreve","mstpos","acE","acd","acirc","acy","aelig","afr","agrave","alefsym","aleph","alpha","amacr","amalg","wedge","andand","andd","andslope","andv","ang","angle","ange","angmsd","measuredangle","angmsdaa","angmsdab","angmsdac","angmsdad","angmsdae","angmsdaf","angmsdag","angmsdah","angrt","angrtvb","angrtvbd","angsph","angzarr","aogon","aopf","apE","apacir","ape","approxeq","apid","apos","aring","ascr","midast","atilde","auml","awint","bNot","backcong","bcong","backepsilon","bepsi","backprime","bprime","backsim","bsim","backsimeq","bsime","barvee","barwed","barwedge","bbrktbrk","bcy","bdquo","ldquor","bemptyv","beta","beth","between","twixt","bfr","bigcirc","xcirc","bigodot","xodot","bigoplus","xoplus","bigotimes","xotime","bigsqcup","xsqcup","bigstar","starf","bigtriangledown","xdtri","bigtriangleup","xutri","biguplus","xuplus","bkarow","rbarr","blacklozenge","lozf","blacktriangle","utrif","blacktriangledown","dtrif","blacktriangleleft","ltrif","blacktriangleright","rtrif","blank","blk12","blk14","blk34","bne","bnequiv","bnot","bopf","bowtie","boxDL","boxDR","boxDl","boxDr","boxH","boxHD","boxHU","boxHd","boxHu","boxUL","boxUR","boxUl","boxUr","boxV","boxVH","boxVL","boxVR","boxVh","boxVl","boxVr","boxbox","boxdL","boxdR","boxdl","boxdr","boxhD","boxhU","boxhd","boxhu","boxminus","minusb","boxplus","plusb","boxtimes","timesb","boxuL","boxuR","boxul","boxur","boxv","boxvH","boxvL","boxvR","boxvh","boxvl","boxvr","brvbar","bscr","bsemi","bsol","bsolb","bsolhsub","bull","bullet","bumpE","cacute","cap","capand","capbrcup","capcap","capcup","capdot","caps","caret","ccaps","ccaron","ccedil","ccirc","ccups","ccupssm","cdot","cemptyv","cent","cfr","chcy","check","checkmark","chi","cir","cirE","circ","circeq","cire","circlearrowleft","olarr","circlearrowright","orarr","circledS","oS","circledast","oast","circledcirc","ocir","circleddash","odash","cirfnint","cirmid","cirscir","clubs","clubsuit","comma","commat","comp","complement","congdot","copf","copysr","crarr","cross","cscr","csub","csube","csup","csupe","ctdot","cudarrl","cudarrr","cuepr","curlyeqprec","cuesc","curlyeqsucc","cularr","curvearrowleft","cularrp","cup","cupbrcap","cupcap","cupcup","cupdot","cupor","cups","curarr","curvearrowright","curarrm","curlyvee","cuvee","curlywedge","cuwed","curren","cwint","cylcty","dHar","dagger","daleth","hyphen","dbkarow","rBarr","dcaron","dcy","ddarr","downdownarrows","ddotseq","eDDot","deg","demptyv","dfisht","dfr","diamondsuit","diams","digamma","gammad","disin","divideontimes","divonx","djcy","dlcorn","llcorner","dlcrop","dollar","dopf","doteqdot","eDot","dotminus","minusd","dotplus","plusdo","dotsquare","sdotb","drcorn","lrcorner","drcrop","dscr","dscy","dsol","dstrok","dtdot","dtri","triangledown","dwangle","dzcy","dzigrarr","eacute","easter","ecaron","ecir","eqcirc","ecirc","ecolon","eqcolon","ecy","edot","efDot","fallingdotseq","efr","eg","egrave","egs","eqslantgtr","egsdot","elinters","ell","els","eqslantless","elsdot","emacr","emptyset","emptyv","varnothing","emsp13","emsp14","emsp","eng","ensp","eogon","eopf","epar","eparsl","eplus","epsi","epsilon","epsiv","straightepsilon","varepsilon","equest","questeq","equivDD","eqvparsl","erDot","risingdotseq","erarr","escr","eta","eth","euml","euro","excl","fcy","female","ffilig","fflig","ffllig","ffr","filig","fjlig","flat","fllig","fltns","fnof","fopf","fork","pitchfork","forkv","fpartint","frac12","half","frac13","frac14","frac15","frac16","frac18","frac23","frac25","frac34","frac35","frac38","frac45","frac56","frac58","frac78","frasl","frown","sfrown","fscr","gEl","gtreqqless","gacute","gamma","gtrapprox","gbreve","gcirc","gcy","gdot","gescc","gesdot","gesdoto","gesdotol","gesl","gesles","gfr","gimel","gjcy","glE","gla","glj","gnE","gneqq","gnap","gnapprox","gne","gneq","gnsim","gopf","gscr","gsime","gsiml","gtcc","gtcir","gtdot","gtrdot","gtlPar","gtquest","gtrarr","gvertneqq","gvnE","hardcy","harrcir","harrw","leftrightsquigarrow","hbar","hslash","planck","plankv","hcirc","hearts","heartsuit","hellip","mldr","hercon","hfr","hksearow","searhk","hkswarow","swarhk","hoarr","homtht","hookleftarrow","larrhk","hookrightarrow","rarrhk","hopf","horbar","hscr","hstrok","hybull","iacute","icirc","icy","iecy","iexcl","ifr","igrave","iiiint","qint","iiint","tint","iinfin","iiota","ijlig","imacr","imath","inodot","imof","imped","incare","infin","infintie","intcal","intercal","intlarhk","intprod","iprod","iocy","iogon","iopf","iota","iquest","iscr","isinE","isindot","isins","isinsv","itilde","iukcy","iuml","jcirc","jcy","jfr","jmath","jopf","jscr","jsercy","jukcy","kappa","kappav","varkappa","kcedil","kcy","kfr","kgreen","khcy","kjcy","kopf","kscr","lAtail","lBarr","lEg","lesseqqgtr","lHar","lacute","laemptyv","lambda","langd","lap","lessapprox","laquo","larrbfs","larrfs","larrlp","looparrowleft","larrpl","larrsim","larrtl","leftarrowtail","lat","latail","late","lates","lbarr","lbbrk","lbrace","lcub","lbrack","lsqb","lbrke","lbrksld","lbrkslu","lcaron","lcedil","lcy","ldca","ldrdhar","ldrushar","ldsh","le","leq","leftleftarrows","llarr","leftthreetimes","lthree","lescc","lesdot","lesdoto","lesdotor","lesg","lesges","lessdot","ltdot","lfisht","lfr","lgE","lharul","lhblk","ljcy","llhard","lltri","lmidot","lmoust","lmoustache","lnE","lneqq","lnap","lnapprox","lne","lneq","lnsim","loang","loarr","longmapsto","xmap","looparrowright","rarrlp","lopar","lopf","loplus","lotimes","lowast","loz","lozenge","lpar","lparlt","lrhard","lrm","lrtri","lsaquo","lscr","lsime","lsimg","lsquor","sbquo","lstrok","ltcc","ltcir","ltimes","ltlarr","ltquest","ltrPar","ltri","triangleleft","lurdshar","luruhar","lvertneqq","lvnE","mDDot","macr","strns","male","malt","maltese","mcomma","mcy","mdash","mfr","mho","micro","midcir","minusdu","mlcp","models","mopf","mscr","mu","multimap","mumap","nGg","nGt","nLeftarrow","nlArr","nLeftrightarrow","nhArr","nLl","nLt","nRightarrow","nrArr","nVDash","nVdash","nacute","nang","napE","napid","napos","natur","natural","ncap","ncaron","ncedil","ncongdot","ncup","ncy","ndash","neArr","nearhk","nedot","nesear","toea","nfr","nharr","nleftrightarrow","nhpar","nis","nisd","njcy","nlE","nleqq","nlarr","nleftarrow","nldr","nopf","notinE","notindot","notinvb","notinvc","notnivb","notnivc","nparsl","npart","npolint","nrarr","nrightarrow","nrarrc","nrarrw","nscr","nsub","nsubE","nsubseteqq","nsup","nsupE","nsupseteqq","ntilde","nu","numero","numsp","nvDash","nvHarr","nvap","nvdash","nvge","nvgt","nvinfin","nvlArr","nvle","nvlt","nvltrie","nvrArr","nvrtrie","nvsim","nwArr","nwarhk","nwnear","oacute","ocirc","ocy","odblac","odiv","odsold","oelig","ofcir","ofr","ogon","ograve","ogt","ohbar","olcir","olcross","olt","omacr","omega","omicron","omid","oopf","opar","operp","vee","ord","orderof","oscr","ordf","ordm","origof","oror","orslope","orv","oslash","osol","otilde","otimesas","ouml","ovbar","para","parsim","parsl","pcy","percnt","period","permil","pertenk","pfr","phi","phiv","straightphi","varphi","pi","piv","varpi","planckh","plusacir","pluscir","plusdu","pluse","plussim","plustwo","pointint","popf","pound","prE","prap","precapprox","precnapprox","prnap","precneqq","prnE","precnsim","prnsim","prime","profalar","profline","profsurf","prurel","pscr","psi","puncsp","qfr","qopf","qprime","qscr","quatint","quest","rAtail","rHar","race","racute","raemptyv","rangd","raquo","rarrap","rarrbfs","rarrc","rarrfs","rarrpl","rarrsim","rarrtl","rightarrowtail","rarrw","rightsquigarrow","ratail","rbbrk","rbrace","rcub","rbrack","rsqb","rbrke","rbrksld","rbrkslu","rcaron","rcedil","rcy","rdca","rdldhar","rdsh","rfisht","rfr","rharul","rho","rhov","varrho","rightrightarrows","rrarr","rightthreetimes","rthree","ring","rlm","rmoust","rmoustache","rnmid","roang","roarr","ropar","ropf","roplus","rotimes","rpar","rpargt","rppolint","rsaquo","rscr","rtimes","rtri","triangleright","rtriltri","ruluhar","sacute","scE","scap","succapprox","scaron","scedil","scirc","scnE","succneqq","scnap","succnapprox","scnsim","succnsim","scpolint","scy","sdot","sdote","seArr","sect","semi","seswar","tosa","sext","sfr","sharp","shchcy","shcy","shy","sigma","sigmaf","sigmav","varsigma","simdot","simg","simgE","siml","simlE","simne","simplus","simrarr","smashp","smeparsl","smile","ssmile","smt","smte","smtes","softcy","sol","solb","solbar","sopf","spades","spadesuit","sqcaps","sqcups","sscr","star","sub","subset","subE","subseteqq","subdot","subedot","submult","subnE","subsetneqq","subne","subsetneq","subplus","subrarr","subsim","subsub","subsup","sung","sup1","sup2","sup3","supE","supseteqq","supdot","supdsub","supedot","suphsol","suphsub","suplarr","supmult","supnE","supsetneqq","supne","supsetneq","supplus","supsim","supsub","supsup","swArr","swnwar","szlig","tau","tcaron","tcedil","tcy","telrec","tfr","theta","thetasym","thetav","vartheta","thorn","times","timesbar","timesd","topbot","topcir","topf","topfork","tprime","triangle","utri","triangleq","trie","tridot","triminus","triplus","trisb","tritime","trpezium","tscr","tscy","tshcy","tstrok","uHar","uacute","ubrcy","ubreve","ucirc","ucy","udblac","ufisht","ufr","ugrave","uhblk","ulcorn","ulcorner","ulcrop","ultri","umacr","uogon","uopf","upsi","upsilon","upuparrows","uuarr","urcorn","urcorner","urcrop","uring","urtri","uscr","utdot","utilde","uuml","uwangle","vBar","vBarv","vangrt","varsubsetneq","vsubne","varsubsetneqq","vsubnE","varsupsetneq","vsupne","varsupsetneqq","vsupnE","vcy","veebar","veeeq","vellip","vfr","vopf","vscr","vzigzag","wcirc","wedbar","wedgeq","weierp","wp","wfr","wopf","wscr","xfr","xi","xnis","xopf","xscr","yacute","yacy","ycirc","ycy","yen","yfr","yicy","yopf","yscr","yucy","yuml","zacute","zcaron","zcy","zdot","zeta","zfr","zhcy","zigrarr","zopf","zscr","zwj","zwnj","ngsp","TokenError","tokenType","TokenizeResult","nonNormalizedIcuExpressions","_CR_OR_CRLF_REGEXP","_unexpectedCharacterErrorMsg","charCode","_unknownEntityErrorMsg","entitySrc","CharacterReferenceType","HEX","DEC","_ControlFlowError","_Tokenizer","_getTagDefinition","_cursor","_tokenizeIcu","_interpolationConfig","_leadingTriviaCodePoints","_currentTokenStart","_currentTokenType","_expansionCaseStack","_inInterpolation","_preserveLineEndings","_i18nNormalizeLineEndingsInICUs","_tokenizeBlocks","_tokenizeLet","_file","tokenizeExpansionForms","interpolationConfig","leadingTriviaChars","codePointAt","endPos","startPos","EscapedCharacterCursor","PlainCharacterCursor","preserveLineEndings","i18nNormalizeLineEndingsInICUs","tokenizeBlocks","tokenizeLet","_processCarriageReturns","tokenize","_attemptCharCode","_consumeCdata","_consumeComment","_consumeDocType","_consumeTagClose","_consumeTagOpen","_attemptStr","_consumeLetDeclaration","_consumeBlockStart","_isInExpansionCase","_isInExpansionForm","_tokenizeExpansionForm","_consumeWithInterpolation","_isTextEnd","_isTagStart","_consumeBlockEnd","_beginToken","_endToken","_getBlockName","spacesInNameAllowed","nameCursor","_attemptCharCodeUntilFn","isBlockNameChar","getChars","startToken","advance","_consumeBlockParameters","isNotWhitespace","isBlockParameterChar","inQuote","openParens","_getLetDeclarationName","_consumeLetDeclarationValue","getSpan","allowDigit","isExpansionFormStart","_consumeExpansionFormStart","isExpansionCaseStart","_consumeExpansionCaseStart","_consumeExpansionCaseEnd","_consumeExpansionFormEnd","_createError","CursorError","_attemptCharCodeCaseInsensitive","compareCharCodeCaseInsensitive","code1","code2","toUpperCaseCharCode","_requireCharCode","chars","charsLeft","initialPosition","_attemptStrCaseInsensitive","_requireStr","predicate","_requireCharCodeUntilFn","_attemptUntilChar","_readChar","fromCodePoint","_consumeEntity","textTokenType","isHex","codeStart","isDigitEntityEnd","entityType","_unparsableEntityErrorMsg","entityStr","nameStart","isNamedEntityEnd","_consumeRawText","consumeEntities","endMarkerPredicate","tagCloseStart","foundEndMarker","contentStart","_consumePrefixAndName","nameOrPrefixStart","isPrefixEnd","isNameEnd","openTagToken","_consumeTagOpenStart","_consumeAttributeName","_consumeAttributeValue","_consumeTagOpenEnd","contentTokenType","getContentType","_consumeRawTextWithTagClose","attrNameStart","prefixAndName","quoteChar","_consumeQuote","endPredicate","_readUntil","normalizedCondition","conditionToken","interpolationTokenType","endInterpolation","_consumeInterpolation","interpolationStart","prematureEndPredicate","expressionStart","inComment","_getProcessedChars","_isInExpansion","tmp","isInterpolation","isAsciiHexDigit","fileOrCursor","advanceState","updatePeek","leadingTriviaCodePoints","startLocation","locationFromCursor","endLocation","fullStartLocation","currentChar","internalState","processEscapeSequence","$LF","$CR","$VTAB","$TAB","$BSPACE","$FF","digitStart","decodeHexDigits","octal","TreeError","ParseTreeResult","rootNodes","Parser$1","getTagDefinition","tokenizeResult","tokenizer","mergeTextTokens","srcTokens","dstTokens","lastDstToken","parser","_TreeBuilder","_index","_peek","_containerStack","_advance","_consumeStartTag","_consumeEndTag","_closeVoidElement","_consumeText","_consumeExpansion","_consumeBlockOpen","_consumeBlockClose","_consumeIncompleteBlock","_consumeLet","_consumeIncompleteLet","leftoverContainer","_advanceIf","_startToken","endToken","_addToParent","expCase","_parseExpansionCase","_collectExpansionExpTokens","expansionCaseParser","expansionFormStack","lastOnStack","startSpan","_getContainer","ignoreFirstLf","decodeEntity","endSpan","startTagToken","_consumeAttr","_getElementFullName","_getClosestParentElement","selfClosing","tagDef","canSelfClose","parentEl","_pushContainer","isClosedByChild","_popContainer","endTagToken","errMsg","expectedName","expectedType","unexpectedCloseTagDetected","stackIndex","closedByParent","attrEnd","valueStartSpan","valueEnd","valueToken","paramToken","nameString","implicitNamespacePrefix","parentTagName","preventNamespaceInheritance","entity","PRESERVE_WS_ATTR_NAME","SKIP_WS_TRIM_TAGS","WS_CHARS","NO_WS_REGEXP","WS_REPLACE_REGEXP","replaceNgsp","WhitespaceVisitor","preserveSignificantWhitespace","originalNodeMap","requireContext","icuExpansionDepth","hasPreserveWhitespacesAttr","visitAllWithSiblings","isNotBlank","hasExpansionSibling","createWhitespaceProcessedTextToken","processWhitespace","firstToken","trimLeadingWhitespace","transformTextToken","trimStart","trimTrailingWhitespace","trimEnd","trimLeadingAndTrailingWhitespace","isFirstTokenInTag","isLastTokenInTag","maybeTrimmedStart","expansion","newExpansion","expansionCase","newExpansionCase","newBlock","parameter","_node","TokenType","Character","PrivateIdentifier","Keyword","Operator","KEYWORDS","Lexer","scanner","_Scanner","scanToken","Token","numValue","strValue","isCharacter","isNumber","isString","isOperator","isIdentifier","isPrivateIdentifier","isKeyword","isKeywordLet","isKeywordAs","isKeywordNull","isKeywordUndefined","isKeywordTrue","isKeywordFalse","isKeywordThis","isKeywordTypeof","toNumber","newCharacterToken","newOperatorToken","EOF","isIdentifierStart","scanIdentifier","scanNumber","scanCharacter","scanString","scanPrivateIdentifier","scanOperator","scanQuestion","scanComplexOperator","twoCode","two","threeCode","three","isIdentifierPart","newKeywordToken","newIdentifierToken","newPrivateIdentifierToken","simple","hasSeparators","isExponentStart","isExponentSign","newNumberToken","unescapedCode","newStringToken","newErrorToken","SplitInterpolation","offsets","TemplateBindingParseResult","templateBindings","warnings","Parser","_lexer","parseAction","_checkNoInterpolation","sourceToLex","_stripComments","_ParseAST","parseChain","parseBinding","_parseBindingAst","checkSimpleExpression","checker","SimpleExpressionChecker","parseSimpleBinding","_reportError","parseTemplateBindings","templateKey","templateUrl","absoluteKeyOffset","absoluteValueOffset","parseInterpolation","interpolatedTokens","splitInterpolation","expressionNodes","expressionText","createInterpolationAst","parseInterpolationExpression","inputToTemplateIndexMap","getIndexMapForOriginalTemplate","offsetMap","consumedInOriginalTemplate","consumedInInput","tokenIndex","currentToken","decoded","lengthOfParts","atInterpolation","extendLastString","interpStart","interpEnd","exprStart","exprEnd","_getInterpolationEndIndex","fullEnd","piece","wrapLiteralPrimitive","_commentStart","outerQuote","nextChar","endIndex","charIndex","_forEachUnquotedChar","expressionEnd","currentQuote","escapeCount","ParseContextFlags","Writable","parseFlags","rparensExpected","rbracketsExpected","rbracesExpected","sourceSpanCache","atEOF","inputIndex","currentEndIndex","currentAbsoluteOffset","artificialEndIndex","serial","withContext","ret","consumeOptionalCharacter","peekKeywordLet","peekKeywordAs","expectCharacter","consumeOptionalOperator","expectOperator","prettyPrintToken","tok","expectIdentifierOrKeyword","_reportErrorForPrivateIdentifier","expectIdentifierOrKeywordOrString","exprs","parsePipe","errorIndex","artificialStart","artificialEnd","parseExpression","fullSpanEnd","nameId","parseConditional","parseLogicalOr","parseLogicalAnd","parseNullishCoalescing","parseEquality","parseRelational","parseAdditive","parseMultiplicative","parsePrefix","parseCallChain","parsePrimary","parseAccessMember","parseCall","parseKeyedReadOrWrite","parseExpressionList","parseLiteralMap","literalValue","terminator","keyStart","literalMapKey","isShorthandInitialized","readReceiver","isSafe","argumentStart","parseCallArguments","positionals","expectTemplateBindingKey","operatorFound","parseDirectiveKeywordBindings","letBinding","parseLetBinding","binding","parseAsBinding","consumeStatementTerminator","getDirectiveBoundTarget","spanEnd","asBinding","spanStart","locationText","extraMessage","SerializeExpressionVisitor","interleave","zip","_SECURITY_SCHEMA","SECURITY_SCHEMA","registerContext","specs","IFRAME_SECURITY_SENSITIVE_ATTRS","isIframeSecuritySensitiveAttr","ElementSchemaRegistry","SCHEMA","_ATTR_TO_PROP","formaction","innerHtml","tabindex","_PROP_TO_ATTR","attributeName","DomElementSchemaRegistry","_schema","_eventSchema","encodedType","strType","strProperties","typeNames","superName","superType","superEvent","hasProperty","propName","schemaMetas","schema","hasElement","isAttribute","getMappedPropName","getDefaultComponentElementName","validateProperty","validateAttribute","allKnownElementNames","allKnownAttributesOfElement","elementProperties","allKnownEventsOfElement","normalizeAnimationStyleProperty","dashCaseToCamelCase","normalizeAnimationStyleValue","camelCaseProp","userProvidedProp","strVal","_isPixelDimensionStyle","valAndSuffixMatch","HtmlTagDefinition","closedByChildren","DEFAULT_TAG_DEFINITION","TAG_DEFINITIONS","getHtmlTagDefinition","area","embed","hr","br","wbr","thead","tbody","tfoot","tr","td","th","foreignObject","math","rb","rt","rtc","rp","optgroup","listing","knownTagName","TAG_TO_PLACEHOLDER_NAMES","B","BR","EM","H1","H2","H3","H4","H5","H6","HR","LI","LINK","OL","P","Q","SMALL","SUB","SUP","TBODY","TD","TFOOT","TH","THEAD","TR","TT","U","UL","PlaceholderRegistry","_placeHolderNameCounts","_signatureToName","getStartTagPlaceholderName","signature","_hashTag","upperTag","baseName","_generateUniqueName","getCloseTagPlaceholderName","_hashClosingTag","getPlaceholderName","upperName","getUniquePlaceholder","getStartBlockPlaceholderName","_hashBlock","_toSnakeCase","getCloseBlockPlaceholderName","_hashClosingBlock","_expParser","createI18nMessageFactory","containerBlocks","retainEmptyTokens","preserveExpressionWhitespace","_I18nVisitor","visitNodeFn","toI18nMessage","noopVisitNodeFn","_html","_expressionParser","_containerBlocks","_retainEmptyTokens","_preserveExpressionWhitespace","isIcu","icuDepth","placeholderRegistry","placeholderToContent","i18nodes","startPhName","closePhName","_visitTextWithInterpolation","i18nIcuCases","i18nIcu","caze","expPh","phName","_icuCase","_parameter","previousI18n","hasInterpolation","startMarker","endMarker","extractPlaceholderName","normalizeExpression","reusePreviousSourceSpans","assertSingleContainerMessage","assertEquivalentNodes","previousNodes","_CUSTOM_PH_EXP","I18nError","TRUSTED_TYPES_SINKS","isTrustedTypesSink","setI18nRefs","trimmedNode","i18nNode","originalNode","I18nMetaVisitor","keepI18nAttrs","enableI18nLegacyMessageIdFormat","hasI18nMeta","_errors","_generateI18nMessage","_parseMetadata","_setMessageId","_setLegacyIds","visitAllWithErrors","hasI18nAttrs","attrsMeta","trimmedNodes","parseI18nMeta","idIndex","I18N_ID_SEPARATOR","descIndex","I18N_MEANING_SEPARATOR","meaningAndDesc","createGoogleGetMsgStatements","variable$1","closureVar","serializeI18nMessageForGetMsg","serializerVisitor","original_code","googGetMsgStmt","i18nMetaToJSDoc","GetMsgSerializerVisitor","createLocalizeStatements","placeHolders","serializeI18nMessageForLocalize","pieces","LocalizeSerializerVisitor","processMessagePieces","createEmptyMessagePart","getSourceSpan","startNode","endNode","localizedString$1","variableInitialization","createPlaceholderPiece","NG_I18N_CLOSURE_MODE","I18N_ICU_MAPPING_PREFIX","getTranslationConstPrefix","extra","declareI18nVariable","collectMessage","fileBasedI18nSuffix","messageOp","subMessagePlaceholders","subMessageId","subMessage","mainVar","subMessageVar","subMessageStatements","addSubMessageParams","i18nGenerateClosureVar","useExternalIds","uniqueSuffix","extraTransformFnParams","i18nPostprocess","getTranslationDeclStmts","paramsObject","createClosureModeGuard","serializeLocalRefs","constRefs","parenDepth","valueStart","propStart","currentProp","hyphenate","styleVal","addNamesToView","varNames","getVariableName","childView","normalizeStylePropName","stripImportant","compatPrefix","importantIndex","mergeNextContextsInOps","mergeSteps","tryToMerge","lookupElement","kindTest","kindWithInterpolationTest","CREATE_ORDERING","basicListenerKindTest","UPDATE_ORDERING","keepLast","nonInterpolationPropertyKindTest","UPDATE_HOST_ORDERING","handledOpKinds","orderWithin","ordering","opsToOrder","firstTargetInGroup","reorder","isSelectAttribute","lookupInXrefMap","processPipeBindingsInView","updateOp","addPipeToCreationBlock","afterTargetXref","propagateI18nBlocksToTemplates","propagateI18nBlocksForView","emptyI18nPlaceholder","wrapTemplateWithI18n","parentI18n","PureFunctionConstant","declName","keyExpr","fnParams","returnExpr","transformLiteralArray","derivedEntries","nonConstantArgs","transformLiteralMap","constIndex","localRefIndex","elementOrContainerBase","templateFnRef","templateRefExtractor","handlerFn","eventTargetResolver","syntheticHost","twoWayBindingSet","selfSlot","primarySlot","dependencyResolverFn","loadingSlot","placeholderSlot","errorSlot","enableTimerScheduling","deferEnableTimerScheduling","deferTriggerToR3TriggerInstructionsMap","deferOnIdle","prefetch","deferPrefetchOnIdle","hydrate","deferHydrateOnIdle","deferOnImmediate","deferPrefetchOnImmediate","deferHydrateOnImmediate","deferOnTimer","deferPrefetchOnTimer","deferHydrateOnTimer","deferOnHover","deferPrefetchOnHover","deferHydrateOnHover","deferOnInteraction","deferPrefetchOnInteraction","deferHydrateOnInteraction","deferOnViewport","deferPrefetchOnViewport","deferHydrateOnViewport","deferHydrateNever","deferOn","instructionToCall","projectionDef","projection","projectionSlotIndex","fallbackFnName","fallbackDecls","fallbackVars","i18nStart","repeaterCreate","viewFnName","trackByUsesComponentInstance","emptyViewFnName","emptyDecls","emptyVars","emptyTag","emptyConstIndex","repeater","deferWhen","deferPrefetchWhen","deferHydrateWhen","i18nEnd","i18nAttributes","styleMap","PIPE_BINDINGS","pipeBind1","pipeBind2","pipeBind3","pipeBind4","textInterpolate","interpolationArgs","collateInterpolationArgs","callVariadicInstruction","TEXT_INTERPOLATE_CONFIG","i18nApply","propertyInterpolate","extraArgs","PROPERTY_INTERPOLATE_CONFIG","attributeInterpolate","ATTRIBUTE_INTERPOLATE_CONFIG","stylePropInterpolate","STYLE_PROP_INTERPOLATE_CONFIG","styleMapInterpolate","STYLE_MAP_INTERPOLATE_CONFIG","classMapInterpolate","CLASS_MAP_INTERPOLATE_CONFIG","attachSourceLocation","attachSourceLocations","textInterpolate1","textInterpolate2","textInterpolate3","textInterpolate4","textInterpolate5","textInterpolate6","textInterpolate7","textInterpolate8","textInterpolateV","propertyInterpolate1","propertyInterpolate2","propertyInterpolate3","propertyInterpolate4","propertyInterpolate5","propertyInterpolate6","propertyInterpolate7","propertyInterpolate8","propertyInterpolateV","attributeInterpolate1","attributeInterpolate2","attributeInterpolate3","attributeInterpolate4","attributeInterpolate5","attributeInterpolate6","attributeInterpolate7","attributeInterpolate8","attributeInterpolateV","styleMapInterpolate1","styleMapInterpolate2","styleMapInterpolate3","styleMapInterpolate4","styleMapInterpolate5","styleMapInterpolate6","styleMapInterpolate7","styleMapInterpolate8","styleMapInterpolateV","classMapInterpolate1","classMapInterpolate2","classMapInterpolate3","classMapInterpolate4","classMapInterpolate5","classMapInterpolate6","classMapInterpolate7","classMapInterpolate8","classMapInterpolateV","PURE_FUNCTION_CONFIG","pureFunction0","pureFunction1","pureFunction2","pureFunction3","pureFunction4","pureFunction5","pureFunction6","pureFunction7","pureFunction8","pureFunctionV","callVariadicInstructionExpr","baseArgs","GLOBAL_TARGET_RESOLVERS","resolveWindow","resolveDocument","resolveBody","reifyCreateOperations","reifyIrExpression","disableBindings","enableBindings","listenerFn","reifyListenerHandler","namespaceHTML","namespaceSVG","namespaceMathML","timerScheduling","loadingMinimumTime","loadingAfterTime","placeholderMinimumTime","mainSlot","targetSlotViewSteps","fallbackViewFnName","repeaterView","usesComponentInstance","emptyAttributes","locationsLiteral","reifyUpdateOperations","_unit","restoreView","savedView","resetView","returnValue","getCurrentView","pureFunction","pipeBind","pipeBindV","readContextLet","storeLet","handlerStmts","processLexicalScope$1","transformDollarEvent","resolvePlaceholdersForView","pendingStructuralDirective","currentOps","pendingStructuralDirectiveCloses","recordElementStart","startOp","recordElementClose","recordTemplateStart","recordTemplateClose","forSlot","forView","emptySlot","structuralDirective","addParam","getSubTemplateIndexForTemplateTag","i18nOp","childOp","updatePlaceholder","icuPlaceholders","processLexicalScope","localDefinitions","sanitizerFns","sanitizeHtml","sanitizeResourceUrl","sanitizeScript","sanitizeStyle","sanitizeUrl","trustedValueFns","trustConstantHtml","trustConstantResourceUrl","isIframeElement","getOnlySecurityContext","addSaveRestoreViewOperationToListener","handlerOp","generateTemporaries","opCount","generatedStatements","finalReads","assigned","released","defs","assignName","names","isTrackByFunctionCall","rootView","arg0","arg1","varsUsedByOp","isSingletonInterpolation","varsUsedByIrExpression","Fence","inlineAlwaysInlineVariables","fencesForIrExpression","optimizeVariablesInOpList","varDecls","varUsages","varRemoteUsages","opMap","collectOpInfo","countVariableUsages","contextIsUsed","opInfo","fences","ViewContextRead","ViewContextWrite","SideEffectful","stmtOp","uncountVariableUsages","toInline","isAlwaysInline","varInfo","targetOp","variablesUsed","allowConservativeInlining","tryInlineVariableInitializer","safeToInlinePastFences","varRemoteUsage","declFences","inlined","inliningAllowed","exprFences","phases","removeContentSelectors","parseHostStyleProperties","STYLE_DOT","CLASS_DOT","emitNamespaceChanges","activeNamespace","propagateI18nBlocks","wrapI18nIcus","currentI18nOp","addedI18nId","deduplicateTextBindings","seen","seenForElement","specializeStyleBindings","specializeBindings","extractAttributes","createI18nContexts","attrContextByMessage","blockContextByI18nBlock","contextOp","rootContext","parseExtractedStyles","parsedStyles","parsedClasses","parsedClass","removeEmptyBindings","collapseSingletonInterpolations","orderOps","generateConditionalExpressions","defaultCase","cond","conditionalCase","useTmp","caseExpressionTemporaryXref","createPipes","configureDeferInstructions","convertI18nText","currentI18n","currentIcu","textNodeI18nBlocks","textNodeIcus","icuPlaceholderByText","icuPlaceholderOp","icuOp","contextId","convertI18nBindings","i18nAttributesByElem","i18nAttributesForElem","removeUnusedI18nAttributesOps","ownersWithI18nExpressions","assignI18nSlotDependencies","i18nExpressionsInProgress","createOp","blockXref","lastSlotConsumer","opToRemove","applyI18nExpressions","createVariadicPipes","generatePureLiteralStructures","generateProjectionDefs","defExpr","generateLocalLetReferences","generateVariables","saveAndRestoreView","needsRestoreView","deleteAnyCasts","resolveDollarEvent","generateTrackVariables","$index","removeIllegalLetReferences","resolveNames","resolveDeferTargetNames","scopes","resolveTrigger","deferOwnerView","placeholderView","targetName","placeholderOp","targetXref","targetView","defers","deferOp","mainView","transformTwoWayBindingSet","optimizeTrackFns","repeaterTrackByIndex","repeaterTrackByIdentity","resolveContexts","resolveSanitizers","sanitizerFn","sanitizeUrlOrResourceUrl","isIframe","validateIframeAttribute","liftLocalRefs","generateNullishCoalesceExpressions","assignment","expandSafeReads","generateTemporaryVariables","optimizeVariables","optimizeStoreLet","letUsedExternally","allocateSlots","slotMap","slotCount","resolveI18nElementPlaceholders","resolveI18nExpressionPlaceholders","subTemplateIndices","expressionIndices","referenceIndex","extractI18nMessages","i18nMessagesByContext","i18nBlocks","i18nMessageOp","icuContext","rootI18nBlock","rootMessage","generateTrackFns","usesComponentContext","collectI18nConsts","extractedAttributesByI18nContext","i18nAttributesByElement","i18nExpressionsByElement","i18nValuesByContext","messageConstIndices","i18nConst","attributesForMessage","i18nExpressions","seenPropertyNames","i18nExpr","i18nAttributeConfig","i18nExprValue","msgIndex","collectConstExpressions","collectElementConsts","removeI18nContexts","countVariables","varCount","generateAdvance","slotContext","consumer","nameFunctionsAndVariables","resolveDeferDepsFns","ownResolverFn","fullPathName","mergeNextContextExpressions","generateNgContainerOps","updatedElementXrefs","collapseEmptyInstructions","opReplacements","startKind","mergedKind","prevOp","disableBindings$1","extractPureFunctions","constantDef","reify","emitTemplateFn","tpl","rootFn","emitView","emitChildViews","viewFn","createStatements","updateStatements","createCond","maybeGenerateRfBlock","updateCond","compatibilityMode","domSchema","NG_TEMPLATE_TAG_NAME","isI18nRootNode","ingestHostProperty","securityContexts","convertAst","ingestHostAttribute","attrBinding","ingestHostEvent","eventBinding","makeListenerHandlerOps","ingestNodes","ingestElement","ingestTemplate","ingestContent","ingestText","ingestBoundText","ingestIfBlock","ingestSwitchBlock","ingestDeferBlock","ingestIcu","ingestForBlock","ingestLetDeclaration","namespaceKey","createElementStartOp","ingestElementBindings","i18nAttributeBindingNames","convertAstWithInterpolation","asMessage","BINDING_KINDS","astOf","makeTwoWayListenerHandlerOps","ingestReferences","i18nBlockId","endOp","createElementEndOp","tmpl","tagNameWithoutNamespace","namespacePrefix","isPlainTemplate","templateOp","ingestTemplateBindings","createTemplateBinding","createProjectionOp","textXref","baseSourceSpan","createInterpolateTextOp","ifBlock","firstXref","ifCase","cView","ingestControlFlowInsertionPoint","ifCaseI18nMeta","caseExpr","conditionalCaseExpr","switchBlock","switchCase","switchCaseI18nMeta","ingestDeferView","i18nMeta","secondaryView","deferBlock","deferXref","createDeferOp","loadingView","errorView","calcDeferBlockFlags","deferBlockDetails","deferOnOps","deferWhenOps","ingestDeferTriggers","onOps","whenOps","deferOnOp","immediate","hover","interaction","never","when","createDeferWhenOp","isSingleI18nIcu","createIcuStartOp","createIcuEndOp","forBlock","indexName","countName","indexVarNames","getComputedForLoopVariableExpression","convertSourceSpan","emptyTagName","createRepeaterCreateOp","primaryView","createRepeaterOp","createDeclareLetOp","createStoreLetOp","isTextBinding","bindingType","handlerExprs","handlerExpr","eventReference","twoWaySetExpr","assertIsArray","ENABLE_TEMPLATE_SOURCE_LOCATIONS","renderFlagCheckIfStmt","createQueryCreateCall","constantPool","queryTypeFns","prependParams","getQueryPredicate","toQueryFlags","descendants","emitDistinctChangesOnly","signalBased","nonSignal","queryAdvancePlaceholder","collapseAdvanceStatements","advanceCollapseCount","flushAdvanceCount","queryAdvance","HtmlParser","ANIMATE_PROP_PREFIX","BindingParser","_exprParser","_schemaRegistry","createBoundHostProperties","boundProps","parsePropertyBinding","createDirectiveHostEventAsts","hostListeners","targetEvents","parseEvent","sourceInfo","_reportExpressionParserErrors","parseInlineTemplateBinding","tplKey","tplValue","targetMatchableAttrs","targetProps","targetVars","isIvyAst","TEMPLATE_ATTR_PREFIX$1","_parseTemplateBindings","bindingSpan","moveParseSourceSpan","srcSpan","_parsePropertyAst","parseLiteralAttr","bindingsResult","isAnimationLabel","_parseAnimation","isPartOfAssignmentBinding","isAnimationProp","parsePropertyInterpolation","isHostBinding","createBoundElementProperty","elementSelector","boundProp","skipValidation","mapPropertyName","boundPropertyName","_validatePropertyOrAttributeName","calcPossibleSecurityContexts","nsSeparatorIdx","ns","mappedPropName","isAssignmentEvent","_parseAnimationEvent","_parseRegularEvent","splitAtPeriod","eventName","_parseAction","splitAtColon","prevErrorCount","_isAllowedAssignmentEvent","isAttr","report","registry","ctxs","elementNames","notElementNames","possibleElementNames","absoluteSpan","startDiff","endDiff","URL_WITH_SCHEMA_REGEXP","preparseElement","selectAttr","hrefAttr","relAttr","lcAttrName","normalizeNgContentSelect","nodeName","PreparsedElementType","OTHER","NG_CONTENT","STYLESHEET","PreparsedElement","FOR_LOOP_EXPRESSION_PATTERN","FOR_LOOP_TRACK_PATTERN","CONDITIONAL_ALIAS_PATTERN","ELSE_IF_PATTERN","FOR_LOOP_LET_PATTERN","CHARACTERS_IN_SURROUNDING_WHITESPACE_PATTERN","ALLOWED_FOR_LOOP_LET_VARIABLES","isConnectedForLoopBlock","isConnectedIfLoopBlock","createIfBlock","connectedBlocks","bindingParser","validateIfConnectedBlocks","hasElse","mainBlockParams","parseConditionalBlockParameters","ifBlockStartSourceSpan","ifBlockEndSourceSpan","lastBranch","createForLoop","parseForLoopParameters","expressionParam","secondaryParams","stripOptionalParentheses","spaceRegex","itemName","rawExpression","variableSpan","parseBlockParameterToBinding","emptySpanAfterForBlockStart","letMatch","variablesSpan","parseLetParameter","trackMatch","keywordSpan","createSwitchBlock","validateSwitchBlock","hasDefault","primaryExpression","loopItemName","expressionParts","keyLeadingWhitespace","keyName","valueLeadingWhitespace","implicit","aliasMatch","variableStart","TIME_PATTERN","SEPARATOR_PATTERN","COMMA_DELIMITED_SYNTAX","OnTriggerType","parseNeverTrigger","neverIndex","neverSourceSpan","getPrefetchSpan","getHydrateSpan","trackTrigger","parseWhenTrigger","whenIndex","getTriggerParametersStart","parseOnTrigger","onIndex","OnTriggerParser","validateHydrateReferenceBasedTrigger","validatePlainReferenceBasedTrigger","IDLE","TIMER","INTERACTION","IMMEDIATE","HOVER","VIEWPORT","NEVER","unexpectedToken","isFollowedByOrLast","consumeTrigger","prevErrors","consumeParameters","triggerNameStartSpan","isFirstTrigger","prefetchSourceSpan","hydrateSourceSpan","createIdleTrigger","createTimerTrigger","parseDeferredTime","createInteractionTrigger","createImmediateTrigger","createHoverTrigger","createViewportTrigger","commaDelimStack","tokenText","newStart","newEnd","allTriggers","startPosition","hasFoundSeparator","PREFETCH_WHEN_PATTERN","PREFETCH_ON_PATTERN","HYDRATE_WHEN_PATTERN","HYDRATE_ON_PATTERN","HYDRATE_NEVER_PATTERN","MINIMUM_PARAMETER_PATTERN","AFTER_PARAMETER_PATTERN","WHEN_PARAMETER_PATTERN","ON_PARAMETER_PATTERN","isConnectedDeferLoopBlock","createDeferredBlock","parseConnectedBlocks","parsePlaceholderBlock","parseLoadingBlock","parseErrorBlock","parsePrimaryTriggers","lastEndSourceSpan","endOfLastSourceSpan","lastConnectedBlock","sourceSpanWithConnectedBlocks","parsedTime","BIND_NAME_REGEXP","BINDING_DELIMS","HtmlAstToIvyAst","styleUrls","ngContentSelectors","commentNodes","inI18nBlock","processedNodes","isI18nRootElement","reportError","preparsedElement","contents","textContents","isStyleUrlResolvable","schemeMatch","isTemplateElement","isNgTemplate","parsedProperties","boundEvents","i18nAttrsMeta","templateParsedProperties","templateVariables","parsedElement","elementHasInlineTemplate","hasBinding","normalizedName","normalizeAttributeName","isTemplateBinding","TEMPLATE_ATTR_PREFIX","parsedVariables","parseAttribute","NON_BINDABLE_VISITOR","bound","hoistedAttrs","formattedKey","collectCommentNodes","findConnectedBlocks","primaryBlockIndex","siblings","relatedBlocks","i18nPropsMeta","bep","matchableAttributes","createKeySpan","normalizationAdjustment","keySpanStart","keySpanEnd","bindParts","parseVariable","parseReference","addEvents","parseAssignmentEvent","delims","valueNoNgsp","NonBindableVisitor","LEADING_TRIVIA_CHARS","parseTemplate","makeBindingParser","parseResult","enableBlockSyntax","enableLetSyntax","alwaysAttemptHtmlToR3AstConversion","parsedTemplate","i18nMetaVisitor","i18nMetaResult","htmlAstToRender3Ast","htmlNodes","elementRegistry","COMPONENT_VARIABLE","HOST_ATTR","CONTENT_ATTR","baseDirectiveFields","queries","createContentQueriesFunction","tempAllocator","contentQuery","contentQuerySignal","temporary","getQueryList","loadQuery","refresh","queryRefresh","updateDirective","contentQueriesFnName","viewQueries","createViewQueriesFunction","queryDefinitionCall","viewQuerySignal","viewQuery","viewQueryFnName","createHostBindingsFunction","hostBindingsMetadata","typeSourceSpan","eventBindings","specialAttributes","styleAttr","classAttr","hostJob","ingestHostBinding","componentSelector","emitHostBindingFunction","addFeatures","viewProviders","inputKeys","ProvidersFeature","InputTransformsFeatureFeature","hostDirectives","HostDirectivesFeature","createHostDirectivesFeatureArg","usesInheritance","InheritDefinitionFeature","fullInheritance","CopyDefinitionFeature","lifecycle","usesOnChanges","NgOnChangesFeature","externalStyles","externalStyleNodes","externalStyle","ExternalStylesFeature","compileComponentFromMetadata","firstSelector","selectorAttributes","templateTypeName","dependenciesFn","ingestComponent","getTemplateSourceLocationsEnabled","templateFn","declarationListEmitMode","compileDeclarationList","rawImports","getComponentDepsFactory","hasStyles","styleNodes","compileStyles","shadowCss","defineComponent","createComponentType","createBaseDirectiveTypeParams","stringArrayAsType","createHostDirectivesType","ComponentDeclaration","stringAsType","stringMapAsLiteralExpression","selectorForType","getInputsTypeExpression","createDirectiveType","DirectiveDeclaration","HOST_REG_EXP","hostMeta","directive","hasForwardRef","inputsLiteral","createHostDirectivesMappingArray","outputsLiteral","isForwardReference","R3TargetBinder","directiveMatcher","Scope","scopedNodeEntities","extractScopedNodeEntities","rootScope","entityMap","extractScopeEntities","rootNode","currentEntities","namedEntities","entities","scopesToProcess","childScope","childScopes","templateEntities","directives","eagerDirectives","DirectiveBinder","symbols","nestingLevel","usedPipes","eagerPipes","deferBlocks","TemplateBinder","applyWithScope","R3BoundTarget","elementsInScope","isDeferred","newRootScope","ingest","nodeOrNodes","ingestScopedNode","maybeDeclare","deferred","thing","getChildScope","isInDeferBlock","selectorMatcher","visitElementOrTemplate","_selector","dirTarget","isComponent","setAttributeBinding","ioType","hasBindingPropertyName","wasInDeferBlock","visitBoundAttributeOrEvent","visitNode","binder","maybeMap","exprTargets","deferredBlocks","deferredScopes","rawDeferred","getEntitiesInScope","getDirectivesOfNode","getReferenceTarget","getConsumerOfBinding","getExpressionTarget","getDefinitionNodeOfSymbol","getNestingLevel","getUsedDirectives","dirs","getEagerlyUsedDirectives","getUsedPipes","getEagerlyUsedPipes","getDeferBlocks","getDeferredTriggerTarget","outsideRef","findEntityInScope","referenceTargetToElement","refInPlaceholder","targetInPlaceholder","CompilerFacadeImpl","jitEvaluator","elementSchemaRegistry","compilePipe","angularCoreEnv","sourceMapUrl","facade","jitExpression","compilePipeDeclaration","declaration","convertDeclarePipeFacadeToMetadata","computeProvidedIn","convertToProviderExpression","wrapExpression","convertR3DependencyMetadata","compileInjectableDeclaration","convertR3DeclareDependencyMetadata","compileInjectorDeclaration","convertDeclareInjectorFacadeToMetadata","compileNgModuleDeclaration","compileNgModuleDeclarationExpression","compileDirective","convertDirectiveFacadeToMetadata","compileDirectiveFromMeta","compileDirectiveDeclaration","convertDeclareDirectiveFacadeToMetadata","createParseSourceSpan","compileDirectiveFromMetadata","defineDirective","compileComponent","parseJitTemplate","convertDeclarationFacadeToMetadata","jitExpressionSourceMap","compileComponentFromMeta","compileComponentDeclaration","convertDeclareComponentFacadeToMetadata","deferBlockDependencies","dependencies","innerDep","convertDirectiveDeclarationToMetadata","convertPipeDeclarationToMetadata","pipes","convertPipeMapToMetadata","compileFactory","factoryRes","convertR3DependencyMetadataArray","compileFactoryDeclaration","typeName","r3JitTypeSourceSpan","sourceFile","preStatements","$def","convertToR3QueryMetadata","convertQueryPredicate","convertQueryDeclarationToMetadata","inputsFromMetadata","parseInputsArray","parseMappingString","outputsFromMetadata","parseMappingStringArray","propMetadata","inputsFromType","outputsFromType","field","ann","isInput","isOutput","hostDirective","extractHostBindings","getHostDirectiveBindingMapping","inputsPartialMetadataToInputMetadata","convertHostDeclarationToMetadata","convertOpaqueValuesToExpressions","classAttribute","styleAttribute","createR3ComponentDeferMetadata","facades","isAttributeDep","rawToken","createR3DependencyMetadata","boundTarget","dependencyFn","parseHostBindings","verifyHostBindings","hostPropertyName","isHostListener","ngMetadataName","minifiedClassName","parseLegacyInputPartialOutput","fieldName","full","minor","splits","strictInjectionParameters","preserveWhitespacesDefault","preserveWhitespacesOption","defaultSetting","noUndefined","_VisitorMode","Extract","Merge","XmlTagDefinition","requireExtraParent","currentParent","publishFacade","ng","ɵcompilerFacade","defaultEquals","activeConsumer","inNotificationPhase","epoch","SIGNAL","setActiveConsumer","getActiveConsumer","REACTIVE_NODE","lastCleanEpoch","producerNode","producerLastReadVersion","producerIndexOfThis","nextProducerIndex","liveConsumerNode","liveConsumerIndexOfThis","consumerAllowSignalWrites","consumerIsAlwaysLive","producerMustRecompute","producerRecomputeValue","consumerMarkedDirty","consumerOnSignalRead","producerAccessed","assertConsumerNode","consumerIsLive","producerRemoveLiveConsumerAtIndex","producerAddLiveConsumer","producerUpdateValueVersion","consumerPollProducersForChange","producerMarkClean","producerNotifyConsumers","consumerMarkDirty","producerUpdatesAllowed","consumerBeforeComputation","consumerAfterComputation","prevConsumer","producer","seenVersion","consumerDestroy","indexOfThis","assertProducerNode","isConsumerNode","lastIdx","idxProducer","createComputed","computation","COMPUTED_NODE","ERRORED","COMPUTING","equal","wasEqual","throwInvalidWriteToSignalErrorFn","defaultThrowError","throwInvalidWriteToSignalError","postSignalSetFn","signalSetFn","signalValueChanged","producerIncrementEpoch","signalUpdateFn","SIGNAL_NODE","NOOP_CLEANUP_FN","CAPTURE_EVENT_TYPES","product","Restriction","I_AM_THE_JSACTION_FRAMEWORK","XSS_SECURITY_URL","RuntimeError","formatRuntimeError","REQUIRED_UNSET_VALUE","INPUT_SIGNAL_NODE","SIGNAL_NODE$1","applyValueToInputSignal","signalSetFn$1","createInputSignal","inputValueFn","producerAccessed$1","SIGNAL$1","noSideEffects","ANNOTATIONS","PARAMETERS","PROP_METADATA","makeDecorator","parentClass","additionalProcessing","typeFn","metaCtor","makeMetadataCtor","DecoratorFactory","annotationInstance","annotationCls","makeParamDecorator","ParamDecoratorFactory","ParamDecorator","annotation","unusedKey","makePropDecorator","PropDecoratorFactory","decoratorInstance","PropDecorator","getClosureSafeProperty","objWithPropertyToExtract","fillProperties","concatStringsWithSpace","forwardRefFn","isForwardRef","assertEqual","actual","throwError","comparison","ɵɵdefineInjector","getInjectableDef","getOwnDefinition","NG_PROV_DEF","NG_INJECTABLE_DEF","isInjectable","getInjectorDef","NG_INJ_DEF","NG_INJECTOR_DEF","ɵprov","ɵinj","ngInjectableDef","ngInjectorDef","_desc","__NG_ELEMENT_ID__","isEnvironmentProviders","NG_COMP_DEF","ɵcmp","NG_DIR_DEF","ɵdir","NG_PIPE_DEF","ɵpipe","NG_MOD_DEF","ɵmod","NG_FACTORY_DEF","NG_ELEMENT_ID","NG_ENV_ID","__NG_ENV_ID__","renderStringify","stringifyForError","throwProviderNotFoundError","injectorName","InjectFlags","_injectImplementation","getInjectImplementation","setInjectImplementation","impl","injectRootLimpMode","notFoundValue","injectableDef","SkipSelf","THROW_IF_NOT_FOUND","DI_DECORATOR_FLAG","NG_TEMP_TOKEN_PATH","NEW_LINE","SOURCE","_currentInjector","setCurrentInjector","former","injectInjectorOnly","ɵɵinvalidFactoryDep","convertToBitFlags","getInjectFlag","attachInjectFlag","decorator","catchInjectorError","injectorErrorName","tokenPath","formatError","Inject","getFactoryDef","throwNotFound","POSITIVE_INFINITY","addToArray","removeFromArray","newArray","arraySplice","arrayInsert2","value1","value2","previousEnd","keyValueArraySet","keyValueArray","keyValueArrayIndexOf","keyValueArrayGet","_arrayIndexOfSorted","middle","EMPTY_OBJ","ENVIRONMENT_INITIALIZER","INJECTOR$1","INJECTOR_DEF_TYPES","NullInjector","getNgModuleDef","ngModuleDef","getComponentDef","getDirectiveDef","getPipeDef$1","importProvidersFrom","internalImportProvidersFrom","ɵfromNgModule","checkForStandaloneCmp","providersOut","dedup","injectorTypesWithProviders","collectProviders","provider","internalSource","walkProviderTree","processInjectorTypesWithProviders","typesWithProviders","deepForEachProvider","defType","injDef","cmpDef","isDuplicate","importTypesWithProviders","imported","defProviders","injectorType","USE_VALUE$1","isValueProvider","isExistingProvider","isFactoryProvider","isTypeProvider","INJECTOR_SCOPE","NOT_YET","CIRCULAR","NULL_INJECTOR","getNullInjector","EnvironmentInjector","R3Injector","records","_ngOnDestroyHooks","_onDestroyHooks","destroyed","_destroyed","injectorDefTypes","forEachSingleProvider","processProvider","makeRecord","assertNotDestroyed","setActiveConsumer$1","onDestroyHooks","onDestroy","removeOnDestroy","runInContext","previousInjector","previousInjectImplementation","couldBeInjectableType","injectableDefInScope","injectableDefOrInjectorDefFactory","nextInjector","resolveInjectorInitializers","providerToRecord","providerToFactory","multiRecord","hasOnDestroy","destroyCBIdx","getUndecoratedInjectableFactory","inheritedInjectableDef","getInheritedInjectableDef","ngModuleType","unwrappedProvider","classRef","hasDeps","prevInjector","isInInjectionContext","getCurrentInjector","assertInInjectionContext","debugFn","ViewEncapsulation$1","getCompilerFacade","globalNg","angularCoreDiEnv","isType","ES5_DELEGATE_CTOR","ES2015_INHERITED_CLASS","ES2015_INHERITED_CLASS_WITH_CTOR","ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR","ReflectionCapabilities","_reflect","reflect","_zipTypesAndAnnotations","paramTypes","paramAnnotations","_ownParameters","parentCtor","isDelegateCtor","tsickleCtorParams","ctorParam","convertTsickleDecoratorIntoMetadata","decorators","getOwnMetadata","getParentCtor","_ownAnnotations","typeOrFunc","annotations","ownAnnotations","_ownPropMetadata","parentPropMetadata","ownPropMetadata","hasLifecycleHook","lcProperty","decoratorInvocations","decoratorInvocation","ctor","parentProto","getPrototypeOf","HOST","TVIEW","FLAGS","PARENT","NEXT","T_HOST","HYDRATION","CLEANUP","CONTEXT","INJECTOR","ENVIRONMENT","RENDERER","CHILD_HEAD","CHILD_TAIL","DECLARATION_VIEW","DECLARATION_COMPONENT_VIEW","DECLARATION_LCONTAINER","PREORDER_HOOK_FLAGS","QUERIES","EMBEDDED_VIEW_INJECTOR","HEADER_OFFSET","TYPE","MOVED_VIEWS","CONTAINER_HEADER_OFFSET","isLView","isLContainer","isContentQueryHost","tNode","isComponentHost","componentOffset","isDirectiveHost","isComponentDef","isRootView","lView","SimpleChange","previousValue","firstChange","applyValueToInputField","inputSignalNode","privateName","ɵɵNgOnChangesFeature","ɵɵNgOnChangesFeatureImpl","NgOnChangesFeatureImpl","ngInherit","ngOnChangesSetInput","rememberChangeHistoryAndInvokeOnChangesHook","simpleChangesStore","getSimpleChangesStore","declaredInputs","setSimpleChangesStore","store","SIMPLE_CHANGES_STORE","previousChange","profilerCallback","profiler","hookOrListener","unwrapRNode","unwrapLView","getNativeByIndex","getNativeByTNode","getTNode","tView","getComponentLViewByIndex","nodeIndex","hostView","slotValue","viewAttachedToChangeDetector","getConstant","resetPreOrderHookFlags","markViewForRefresh","markAncestorsForTraversal","walkUpViews","requiresRefreshOrTraversal","updateAncestorTraversalFlagsOnAttach","changeDetectionScheduler","notify","getLViewParent","storeLViewOnDestroy","onDestroyCallback","removeLViewOnDestroy","getOrCreateLViewCleanup","getOrCreateTViewCleanup","instructionState","lFrame","createLFrame","bindingsEnabled","skipHydrationRootTNode","CheckNoChangesMode","Off","Exhaustive","OnlyDirtyViews","_isRefreshingViews","getBindingsEnabled","isInSkipHydrationBlock$1","getLView","getTView","getCurrentTNode","currentTNode","getCurrentTNodePlaceholderOk","getCurrentParentTNode","isParent","setCurrentTNode","isCurrentTNodeParent","setCurrentTNodeAsNotParent","getContextLView","contextLView","isRefreshingViews","setIsRefreshingViews","getBindingRoot","bindingRootIndex","bindingStartIndex","getBindingIndex","bindingIndex","setBindingIndex","nextBindingIndex","incrementBindingIndex","setInI18nBlock","isInI18nBlock","inI18n","setBindingRootForHostBindings","currentDirectiveIndex","setCurrentDirectiveIndex","getCurrentDirectiveDef","tData","getCurrentQueryIndex","currentQueryIndex","setCurrentQueryIndex","getDeclarationTNode","declTNode","enterDI","parentTNode","parentLView","allocLFrame","enterView","newView","newLFrame","currentLFrame","childLFrame","selectedIndex","elementDepthCount","currentNamespace","leaveViewLight","oldLFrame","leaveDI","leaveView","getSelectedIndex","setSelectedIndex","getSelectedTNode","getNamespace$1","_wasLastNodeCreated","wasLastNodeCreated","lastNodeWasCreated","registerPostOrderHooks","directiveStart","directiveEnd","lifecycleHooks","ngAfterContentInit","ngAfterContentChecked","contentHooks","contentCheckHooks","viewHooks","viewCheckHooks","destroyHooks","executeCheckHooks","callHooks","executeInitAndCheckHooks","initPhase","incrementInitPhaseFlags","currentNodeIndex","nodeIndexLimit","lastNodeIndexFound","callHook","callHookInternal","isInitHook","NO_PARENT_INJECTOR","NodeInjectorFactory","injectImpl","resolving","canSeeViewProviders","componentProviders","providerFactory","isViewProvider","injectImplementation","isTNodeShape","insertBeforeIndex","isNameOnlyAttributeMarker","mergeHostAttrs","srcMarker","mergeHostAttribute","key1","key2","markerInsertPosition","dstValue","NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR","ChainedInjector","hasParentInjector","parentLocation","getParentInjectorIndex","getParentInjectorView","startView","viewOffset","getParentInjectorViewOffset","parentView","includeViewProviders","setIncludeViewProviders","BLOOM_MASK","BLOOM_BUCKET_BITS","nextNgElementId","NOT_FOUND","getOrCreateNodeInjectorForNode","existingInjectorIndex","getInjectorIndex","firstCreatePass","injectorIndex","insertBloom","blueprint","parentLoc","getParentInjectorLocation","parentIndex","parentData","declarationViewOffset","lViewCursor","getTNodeFromLView","diPublicInInjector","bloomAdd","bloomHash","mask","notFoundValueOrThrow","lookupTokenUsingModuleInjector","moduleInjector","getOrCreateInjectable","embeddedInjectorValue","lookupTokenUsingEmbeddedInjector","currentLView","nodeInjectorValue","lookupTokenUsingNodeInjector","embeddedViewInjector","embeddedViewInjectorValue","bloomHashBitOrFactory","tokenId","createNodeInjector","previousTView","hostTElementNode","shouldSearchParent","bloomHasToken","searchTokensOnInjector","currentTView","injectableIdx","locateDirectiveOrProvider","getNodeInjectable","canAccessViewProviders","isHostSpecialCase","nodeProviderIndexes","providerIndexes","tInjectables","injectablesStart","directivesStart","cptViewProvidersCount","providerTokenOrDef","dirDef","isFactory","throwCyclicDependencyError","previousIncludeViewProviders","registerPreOrderHooks","directiveIndex","directiveDef","wrappedOnChanges","preOrderHooks","preOrderCheckHooks","injectorView","isFirstHostTNode","NodeInjector","_tNode","_lView","ɵɵgetInheritedFactory","ownConstructor","ownFactory","getFactoryOf","objectPrototype","tViewType","ɵɵinjectAttribute","attrNameToInject","injectAttributeImpl","attrsLength","getReflect","reflectDependencies","convertDependencies","reflectDependency","proto","ngFactoryDef","getInjectableMetadata","srcMeta","compilerMeta","isUseClassProvider","isUseFactoryProvider","isUseValueProvider","USE_VALUE","isUseExistingProvider","compiler","createInjector","additionalProviders","createInjectorWithoutInjectorInstances","SCHEDULE_IN_ROOT_ZONE_DEFAULT","DestroyRef","injectDestroyRef","NodeInjectorDestroyRef","ChangeDetectionScheduler","ZONELESS_ENABLED","ZONELESS_SCHEDULER_DISABLED","SCHEDULE_IN_ROOT_ZONE","PendingTasksInternal","_hasPendingTasks","hasPendingTasks","BehaviorSubject","EventEmitter_","__isAsync","destroyRef","isAsync","observerOrNext","nextFn","errorFn","completeFn","wrapInTimeout","sink","Subscription","scheduleCallbackWithRafRace","timeoutId","animationFrameId","scheduleCallbackWithMicrotask","isAngularZoneProperty","angularZoneInstanceIdProperty","ngZoneInstanceId","hasPendingMacrotasks","hasPendingMicrotasks","isStable","onUnstable","onMicrotaskEmpty","onStable","enableLongStackTrace","shouldCoalesceEventChangeDetection","shouldCoalesceRunChangeDetection","scheduleInRootZone","assertZonePatched","_nesting","_outer","_inner","TaskTrackingZoneSpec","longStackTraceZoneSpec","callbackScheduled","forkInnerZoneWithAngularBehavior","delayChangeDetectionForEventsDelegate","delayChangeDetectionForEvents","isCheckStableRunning","scheduleCheckStable","updateMicroTaskStatus","checkStable","instanceId","Rs","Mc","onInvokeTask","task","applyThis","applyArgs","shouldBeIgnoredByZone","hasApplyArgsData","invokeTask","onEnter","onLeave","onInvoke","isSchedulerTick","onHasTask","hasTaskState","hasTask","_hasPendingMicrotasks","microTask","macroTask","onHandleError","isInAngularZone","assertInAngularZone","assertNotInAngularZone","runTask","scheduleEventTask","EMPTY_PAYLOAD","cancelTask","runGuarded","NoopNgZone","_console","INTERNAL_APPLICATION_ERROR_HANDLER","userErrorHandler","OutputEmitterRef","errorHandler","previousConsumer","inputFunction","inputRequiredFunction","injectElementRef","createElementRef","unwrapElementRef","markedFeatures","performanceMarkFeature","performance","mark","signalFn","createSignal","getter","createSignal$1","updateFn","signalUpdateFn$1","asReadonly","signalAsReadonlyFn","readonlyFn","isWritableSignal","symbolIterator","_results","QueryList","_emitDistinctChangesOnly","_onDirty","_changesDetected","_changes","resultsTree","identityAccessor","newResultFlat","arrayEquals","valueA","valueB","notifyOnChanges","onDirty","setDirty","hasInSkipHydrationBlockFlag","TRACKED_LVIEWS","uniqueIdCounter","unregisterLView","MONKEY_PATCH_KEY_NAME","attachPatchData","registerLView","getFirstLContainer","getNearestLContainer","getNextLContainer","viewOrContainer","setDocument","getDocument","APP_ID","DEFAULT_APP_ID","PLATFORM_INITIALIZER","CSP_NONCE","IMAGE_CONFIG_DEFAULTS","disableImageSizeWarning","disableImageLazyLoadWarning","IMAGE_CONFIG","initTransferState","transferState","TransferState","retrieveTransferredState","appId","onSerializeCallbacks","hasKey","onSerialize","toJson","NUM_ROOT_NODES","PRESERVE_HOST_CONTENT","IS_INCREMENTAL_HYDRATION_ENABLED","TracingAction","CHANGE_DETECTION","AFTER_NEXT_RENDER","TracingService","AfterRenderPhase","EarlyRead","Write","MixedReadWrite","Read","AfterRenderManager","execute","AFTER_RENDER_PHASES","AfterRenderImpl","scheduler","sequences","deferredRegistrations","executing","sequence","erroredOrDestroyed","pipelinedValue","maybeTrace","afterRun","unregister","AfterRenderSequence","unregisterOnDestroy","afterNextRender","callbackOrSpec","afterRenderImpl","tracing","manualCleanup","getHooks","earlyRead","mixedReadWrite","DeferDependenciesLoadingState","NOT_STARTED","IN_PROGRESS","COMPLETE","FAILED","DeferBlockState","DeferBlockInternalState","Loading","Complete","Initial","DeferBlockBehavior","storeTriggerCleanupFn","lDetails","cleanupFn","getCleanupFnKeyByType","invokeTriggerCleanupFns","cleanupFns","invokeAllTriggerCleanupFns","getDeferBlockDataIndex","deferBlockIndex","getLDeferBlockDetails","getTDeferBlockDetails","slotIndex","getMinimumDurationForState","tDetails","currentState","placeholderBlockConfig","loadingBlockConfig","getLoadingBlockAfter","addDepsToRegistry","currentDeps","newDeps","currentDepSet","Manual","Playthrough","eventListenerOptions","capture","hoverTriggers","interactionTriggers","viewportTriggers","interactionEventNames","hoverEventNames","intersectionObserver","observedViewportElements","DeferEventEntry","onInteraction","onHover","onViewport","registerDomTrigger","initialLView","triggerIndex","walkUpTimes","registerFn","pollDomTrigger","renderedState","triggerLView","getTriggerLView","deferredHostLView","deferredTNode","getTriggerElement","DEHYDRATED_BLOCK_REGISTRY","NGH_DEFER_BLOCKS_KEY","_retrieveHydrationInfoImpl","retrieveHydrationInfo","rNode","getLNodeForHydration","viewRef","HydrationStatus","Hydrated","Skipped","Mismatched","isIncrementalHydrationEnabled","refreshContentQueries","contentQueries","queryStartIdx","directiveDefIdx","executeViewQueryFn","viewQueryFn","executeContentQueries","directiveInstance","policy$1","getPolicy$1","createHTML","createScriptURL","trustedHTMLFromString","trustedHTMLFromStringBypass","trustedScriptFromStringBypass","trustedScriptURLFromStringBypass","SafeValueImpl","changingThisBreaksApplicationSecurity","SafeHtmlImpl","getTypeName","SafeStyleImpl","SafeScriptImpl","SafeUrlImpl","SafeResourceUrlImpl","unwrapSafeValue","allowSanitizationBypassAndThrow","actualType","getSanitizationBypassType","bypassSanitizationTrustHtml","trustedHtml","bypassSanitizationTrustStyle","trustedStyle","bypassSanitizationTrustScript","trustedScript","bypassSanitizationTrustUrl","trustedUrl","bypassSanitizationTrustResourceUrl","trustedResourceUrl","getInertBodyHelper","defaultDoc","inertDocumentHelper","InertDocumentHelper","isDOMParserAvailable","DOMParserHelper","getInertBodyElement","inertDocument","templateEl","SAFE_URL_PATTERN","_sanitizeUrl","tagSet","sets","VOID_ELEMENTS","OPTIONAL_END_TAG_BLOCK_ELEMENTS","OPTIONAL_END_TAG_INLINE_ELEMENTS","OPTIONAL_END_TAG_ELEMENTS","BLOCK_ELEMENTS","INLINE_ELEMENTS","VALID_ELEMENTS","URI_ATTRS","HTML_ATTRS","ARIA_ATTRS","VALID_ATTRS","SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS","SanitizingHtmlSerializer","sanitizedSomething","buf","sanitizeChildren","traverseContent","parentNodes","nodeType","ELEMENT_NODE","startElement","TEXT_NODE","nodeValue","getFirstChild","endElement","getNextSibling","getNodeName","elAttrs","elAttr","encodeEntities","nextSibling","previousSibling","clobberedElementError","isClobberedElement","DOCUMENT_POSITION_CONTAINED_BY","outerHTML","SURROGATE_PAIR_REGEXP","NON_ALPHANUMERIC_REGEXP","inertBodyHelper","_sanitizeHtml","unsafeHtmlInput","inertBodyElement","unsafeHtml","mXSSAttempts","parsedHtml","getTemplateContent","ɵɵsanitizeUrl","unsafeUrl","getSanitizer","sanitize","ɵɵsanitizeResourceUrl","unsafeResourceUrl","ɵɵsanitizeUrlOrResourceUrl","getUrlSanitizer","COMMENT_DISALLOWED","COMMENT_DELIMITER","escapeCommentText","ɵɵresolveBody","maybeUnwrapFn","classIndexOf","classToSearch","startingIndex","foundIndex","NG_TEMPLATE_SELECTOR","isCssClassMatching","cssClassToMatch","isProjectionMode","isInlineTemplate","hasTagAndTypeMatch","currentSelector","isNodeMatchingSelector","nodeAttrs","nameOnlyMarkerIdx","getNameOnlyMarkerIndex","skipToNextSelector","isPositive","selectorAttrValue","attrIndexInNode","findAttrIndexInNode","nodeAttrValue","bindingsMode","maybeAttrName","matchTemplateAttribute","isNodeMatchingSelectorList","isSelectorInSelectorList","selectorListLoop","currentSelectorInList","maybeWrapInNotSelector","isNegativeMode","stringifyCSSSelector","currentChunk","valueOrMarker","attrValue","NO_CHANGE","createText","updateTextNode","createCommentNode","createComment","createElementNode","nativeInsertBefore","beforeNode","isMove","nativeAppendChild","nativeAppendOrInsertBefore","nativeRemoveNode","isHostElement","setupStaticAttributes","mergedAttrs","setUpAttributes","native","namespaceURI","attrVal","writeDirectClass","writeDirectStyle","selectIndexInternal","checkNoChangesMode","ɵɵdirectiveInject","ɵɵinvalidFactory","writeToDirectiveInput","inputTransforms","createLView","tHostNode","hydrationInfo","getUniqueLViewId","allocExpando","numSlotsToAlloc","allocIdx","executeTemplate","prevSelectedIndex","isUpdatePhase","createDirectivesInstancesInInstruction","createDirectivesInstances","instantiateAllDirectives","createComponentLView","hostTNode","getOrCreateComponentTView","rendererFactory","componentView","addToEndOfViewTree","getInitialLViewFlagsFromDef","createRenderer","initialInputs","setInputsFromAttrs","invokeDirectivesHostBindings","elementIndex","getCurrentDirectiveIndex","dirIndex","hostAttrs","invokeHostBindingsInCreationMode","saveResolvedLocalsInData","viewData","localRefExtractor","localNames","localIndex","incompleteFirstPass","createTView","directiveDefs","pipeDefs","constsOrFactory","ssrId","initialViewLength","createViewBlueprint","expandoStartIndex","hostBindingOpCodes","firstUpdatePass","staticViewQueries","staticContentQueries","directiveRegistry","pipeRegistry","locateHostElement","elementOrSelector","preserveContent","rootElement","selectRootElement","applyRootElementTransform","_applyRootElementTransformImpl","captureNodeBindings","aliasMap","hostDirectiveAliasMap","inputFlags","finalPublicName","addPropertyBinding","elementPropertyInternal","nativeOnly","dataValue","inputData","setInputsForProperty","markDirtyIfOnPush","viewIndex","childComponentLView","mapPropName","resolveDirectives","exportsMap","matchedDirectiveDefs","findDirectiveDefMatches","hostDirectiveDefs","resolveHostDirectives","initializeDirectives","cacheMatchingLocalNames","initTNodeFlags","numberOfDirectives","providersResolver","preOrderHooksFound","preOrderCheckHooksFound","directiveIdx","configureViewWithDirective","saveNameToExportMap","lifeCycleHooks","initializeInputAndOutputAliases","hostDirectiveDefinitionMap","tViewData","tNodeAttrs","inputsFromAttrs","inputsStore","outputsStore","aliasData","aliasedInputs","aliasedOutputs","generateInitialInputs","allDirectiveDefs","findHostDirectiveDefs","markAsComponentHost","directiveFactory","nodeInjectorFactory","registerHostBindingOpCodes","directiveVarsIdx","elementIndx","lastSelectedElementIdx","signals","onPush","elementAttributeInternal","setElementAttribute","initialInputData","inputsToStore","inputConfig","createLContainer","hostNative","lViewOrLContainer","loadComponentRenderer","currentDef","renderComponent","hostLView","componentHostIdx","componentTView","syncViewWithBlueprint","hostRNode","renderView","finishViewCreation","renderChildComponents","_icuContainerIterate","icuContainerIterate","tIcuContainerNode","isDetachedByI18n","applyToElementOrContainer","lNodeToHandle","lContainer","destroyNode","applyContainer","parentRElement","anchor","applyView","removeViewFromDOM","detachViewFromDOM","trackMovedView","declarationContainer","movedViews","insertedComponentLView","detachMovedView","declarationViewIndex","detachView","removeIndex","indexInContainer","viewToDetach","declarationLContainer","removedLView","lQueries","destroyLView","destroyViewTree","cleanUpView","firstView","consumerDestroy$1","executeOnDestroys","toCall","callContext","processCleanups","tCleanup","lCleanup","targetIdx","destroyHooksFn","effects","effect","getParentRElement","getClosestRElement","getInsertInFrontOfRNode","_getInsertInFrontOfRNodeWithI18n","getInsertInFrontOfRNodeWithNoI18n","Important","_processI18nInsertBefore","setI18nHandling","getInsertInFrontOfRNodeWithI18n","processI18nInsertBefore","childRNode","childTNode","parentRNode","anchorNode","getFirstNativeNode","tNodeType","getBeforeNodeForView","elIcuContainerChild","rNodeOrLContainer","projectionNodes","getProjectionNodes","componentHost","slotIdx","viewIndexInContainer","nextViewIndex","firstTNodeOfView","applyNodes","isProjection","rawSlotValue","nextRNode","applyProjectionRecursive","projectionNext","tProjectionNode","componentLView","nodeToProjectOrRNodes","nodeToProject","projectedComponentLView","createAndRenderEmbeddedLView","declarationLView","templateTNode","embeddedTView","embeddedLView","dehydratedView","declarationViewLQueries","getLViewFromLContainer","adjustedIndex","shouldAddViewToDom","addLViewToLContainer","addToDOM","insertView","containerLength","addViewToDOM","parentNativeNode","removeLViewFromLContainer","collectNativeNodes","lNode","collectNativeNodesInLContainer","nodesInSlot","lViewInAContainer","lViewFirstChildTNode","freeConsumers","getOrBorrowReactiveLViewConsumer","borrowReactiveLViewConsumer","REACTIVE_LVIEW_CONSUMER_NODE","REACTIVE_NODE$1","TEMPORARY_CONSUMER_NODE","viewShouldHaveReactiveConsumer","runEffectsInView","tryFlushEffects","foundDirtyEffect","detectChangesInternal","notifyErrorHandler","detectChangesInViewWhileDirty","lastIsRefreshingViewsValue","detectChangesInView","retries","refreshView","returnConsumerToPool","currentConsumer","consumerBeforeComputation$1","getActiveConsumer$1","getOrCreateTemporaryConsumer","hooksInitPhaseCompleted","markTransplantedViewsForRefresh","detectChangesInEmbeddedViews","processHostBindingOpCodes","opCode","bindingRootIndx","hostBindingFn","detectChangesInChildComponents","notifyEffect","consumerAfterComputation$1","maybeReturnReactiveLViewConsumer","detectChangesInViewIfAttached","detectChangesInComponent","shouldRefreshView","consumerPollProducersForChange$1","markViewDirty","dirtyBitsToUse","ViewRef$1","_cdRefInjectingView","_appRef","_attachedToViewContainer","viewRefs","markForRefresh","reattach","checkNoChanges","attachToViewContainerRef","detachFromAppRef","isRoot","attachToAppRef","appRef","TemplateRef","injectTemplateRef","ViewEngineTemplateRef","R3TemplateRef","_declarationLView","_declarationTContainer","createEmbeddedViewImpl","createTemplateRef","tNodeInsertBeforeIndex","i18nParent","anchorRNode","getOrCreateTNode","createTNodeAtIndex","createTNode","tParent","directiveStylingLast","stylesWithoutHost","residualStyles","classesWithoutHost","residualClasses","classBindings","styleBindings","linkTNodeInTView","addTNodeAndUpdateInsertBeforeIndex","previousTNodes","newTNode","existingTNode","isI18nText","isNewTNodeCreatedBefore","getInsertBeforeIndex","setInsertBeforeIndex","getTIcu","createTNodePlaceholder","getCurrentICUCaseIndex","tIcu","currentCase","currentCaseLViewIndex","getParentFromIcuCreateOpCode","mergedCode","getRefFromIcuCreateOpCode","isRootTemplateMessage","enterIcu","removes","icuContainerIteratorNext","removeOpCode","tIcuIndex","loadIcuContainerVisitor","_state","icuContainerIteratorStart","_prepareI18nBlockForHydrationImpl","_claimDehydratedIcuCaseImpl","cleanupDehydratedIcuData","i18nNodes","dehydratedIcuData","removeDehydratedViews","retainedViews","removeDehydratedView","nodesRemoved","currentRNode","numNodes","cleanupLContainer","cleanupLView","cleanupI18nHydrationData","dehydratedIcuDataMap","cleanupDehydratedViews","_views","_findMatchingDehydratedViewImpl","findMatchingDehydratedView","ComponentRef$1","ComponentFactory$1","_NullComponentFactoryResolver","ComponentFactoryResolver$1","RendererFactory2","injectRenderer2","nodeAtIndex","Sanitizer","isModuleWithProviders","isNgModule","isPipe","isDirective","verifyStandaloneImport","depType","importingType","getDependencyTypeForError","DepsTracker","ownerNgModule","ngModulesWithSomeUnresolvedDecls","ngModulesScopeCache","standaloneComponentsScopeCache","resolveNgModulesDecls","getComponentDependencies","getStandaloneComponentScope","compilation","isPoisoned","ngModules","getNgModuleScope","registerNgModule","scopeInfo","clearScopeCacheFor","computeNgModuleScope","exported","importedScope","addSet","exportedScope","ans","computeStandaloneComponentScope","rawImport","isOrphanComponent","cmp","sourceSet","targetSet","depsTracker","computeStaticStyling","writeToHost","componentDef","ComponentFactory","toRefArray","isInputMap","templateName","componentType","isBoundToModule","refArray","stringifyCSSSelectorList","selectorList","rootSelectorOrNode","environmentInjector","realEnvironmentInjector","getStandaloneInjector","rootViewInjector","hostRenderer","getNamespace","rootFlags","rootTView","rootLView","tAttributes","extractAttrsAndClassesFromSelector","projectNodes","nodesforSlot","ComponentRef","_rootLView","previousInputValues","injectViewContainerRef","createContainerRef","VE_ViewContainerRef","R3ViewContainerRef","_lContainer","_hostTNode","_hostLView","getViewRefs","indexOrOptions","insertImpl","componentFactoryOrType","isComponentFactory","componentFactory","contextInjector","viewAttachedToContainer","prevIdx","prevLContainer","prevVCRef","adjustedIdx","_adjustIndex","getOrCreateViewRefs","newIndex","viewRefsArr","detachedView","_locateOrCreateAnchorNode","createAnchorNode","_populateDehydratedViewsInLContainer","populateDehydratedViewsInLContainer","commentNode","insertAnchorNode","parentOfHostNative","LQuery_","queryList","LQueries_","tQueries","noOfInheritedQueries","viewLQueries","tQuery","getByIndex","parentLQuery","indexInDeclarationView","dirtyQueriesWithMatches","getTQuery","TQueryMetadata_","splitQueryMultiSelectors","locator","TQueries_","queriesForTemplateRef","childQueryIndex","tqueryClone","tquery","TQuery_","crossesNgTemplate","_declarationNodeIndex","_appliesToNextNode","isApplyingToNode","matchTNode","addMatch","declarationNodeIdx","matchTNodeWithReadOption","getIdxOfMatchingSelector","nodeMatchIdx","directiveOrProviderIdx","tNodeIdx","matchIdx","createResultForNode","matchingIdx","createResultByTNodeType","createSpecialToken","materializeViewResults","queryIndex","lQuery","tQueryMatches","matchedNodeIdx","collectQueryResults","lViewResults","embeddedLViews","loadQueryInternal","createLQuery","storeCleanupWithContext","createViewQuery","createTQuery","createContentQuery","saveContentQueryAndDirectiveIndex","tViewContentQueries","lastSavedDirectiveIndex","getQueryResults","createQuerySignalFn","firstOnly","createComputed$1","_dirtyCounter","refreshSignalQuery","_queryIndex","_flatValue","createSingleResultOptionalQuerySignalFn","createSingleResultRequiredQuerySignalFn","bindQueryToSignal","_queryList","viewChildFn","viewChildRequiredFn","contentChildFn","contentChildRequiredFn","createModelSignal","emitterRef","assertModelSet","modelFunction","modelRequiredFunction","Query","ContentChildren","isViewQuery","resolveComponentResources","resourceResolver","componentResolved","urlMap","cachedResourceResolve","resp","unwrapResponse","componentResourceResolutionQueue","styleUrl","styleOffset","fullyResolved","componentDefResolved","componentDefPendingResolution","clearResolutionOfComponentResourcesQueue","old","componentNeedsResolution","modules","checkForDuplicateNgModules","assertSameOrNotExisting","incoming","NgModuleRef$1","NgModuleFactory$1","_parent","_bootstrapComponents","_r3Injector","destroyCbs","runInjectorInitializers","NgModuleFactory","EnvironmentNgModuleRefAdapter","debugName","runEnvironmentInitializers","createEnvironmentInjector","StandaloneService","_injector","cachedInjectors","getOrCreateStandaloneInjector","standaloneInjector","ɵɵdefineComponent","componentDefinition","baseDef","getNgDirectiveDef","getExternalStyles","initFeatures","extractDefListOrFactory","getComponentId","componentDefConsts","hashSelectors","imul","extractDirectiveDef","nonNull","ɵɵdefineNgModule","transitiveCompileScopes","parseAndConvertBindingsForDefinition","newLookup","minifiedKey","ɵɵdefineDirective","directiveDefinition","ɵɵdefinePipe","pipeDef","debugInfo","defExtractor","getSuperType","ɵɵInheritDefinitionFeature","shouldInheritFields","inheritanceChain","superDef","writeableDef","maybeUnwrapEmpty","superHostBindings","inheritHostBindings","superViewQuery","superContentQueries","inheritViewQuery","inheritContentQueries","mergeInputsWithTransforms","defData","mergeHostAttrsAcrossInheritance","prevViewQuery","prevContentQueries","prevHostBindings","COPY_DIRECTIVE_FIELDS","COPY_COMPONENT_FIELDS","matchedDefs","configOrFn","trackHostDirectiveDef","createHostDirectiveDef","hostDirectiveDef","patchDeclaredInputs","exposedInputs","remappedPublicName","bindingArrayToMap","ɵɵInputTransformsFeature","isListLikeIterable","isJsObject","updateBinding","getBinding","bindingUpdated","bindingUpdated2","exp1","exp2","different","bindingUpdated3","exp3","bindingUpdated4","exp4","declareTemplate","declarationTView","localRefsIndex","templateFirstCreatePass","tViewConsts","_locateOrCreateContainerAnchor","createContainerAnchorImpl","onIdle","IdleScheduler","executingCallbacks","idleId","requestIdleCallbackFn","_requestIdleCallback","requestIdleCallback","cancelIdleCallbackFn","_cancelIdleCallback","cancelIdleCallback","scheduleIdleCallback","onTimer","scheduleTimerTrigger","TimerScheduler","invokeTimerAt","addToQueue","scheduleTimer","removeFromQueue","invokeAt","insertAtIndex","lastCallbackIndex","FRAME_DURATION_MS","CachedInjectorService","getOrCreateInjector","DEFER_BLOCK_CONFIG","getOrCreateEnvironmentInjector","renderDeferBlockState","skipTimerScheduling","hostTView","ssrState","isValidStateChange","applyStateFn","applyDeferBlockState","applyDeferBlockStateWithSchedulingImpl","stateTmplIndex","getTemplateIndexForState","primaryTmplIndex","loadingTmplIndex","errorTmplIndex","placeholderTmplIndex","activeBlockTNode","createDeferBlockInjector","origInjector","envInjector","parentEnvInjector","findMatchingDehydratedViewForDeferBlock","applyDeferBlockStateWithScheduling","loadingAfter","inLoadingAfterPhase","scheduleDeferBlockUpdate","nextState","renderPlaceholder","renderDeferStateAfterResourceLoading","loadingPromise","setClassMetadata","clazz","Console","DIDebugData","resolverToTokenToDependencies","resolverToProviders","resolverToEffects","standaloneInjectorToComponent","GLOBAL_PUBLISH_EXPANDO_KEY","publishExternalGlobalUtil","publishUtil","COMPILED","TESTABILITY","TESTABILITY_GETTER","Testability","_isZoneStable","_callbacks","taskTrackingZone","testabilityGetter","_testabilityGetter","setTestabilityGetter","addToWindow","_watchAngularEvents","_runCallbacksIfReady","doneCb","getPendingTasks","updateCb","macroTasks","creationLocation","addCallback","whenStable","registerApplication","unregisterApplication","findProviders","using","exactMatch","TestabilityRegistry","_applications","testability","unregisterAllApplications","getTestability","getAllTestabilities","getAllRootElements","findTestabilityInTree","findInAncestors","isSubscribable","ApplicationInitStatus","initialized","donePromise","appInits","runInitializers","asyncInitPromises","initResult","observableAsPromise","EffectScheduler","ZoneAwareEffectScheduler","queuedEffectCount","queues","schedule","enqueue","flushQueue","APP_BOOTSTRAP_LISTENER","publishSignalConfiguration","setThrowInvalidWriteToSignalError","setThrowInvalidWriteToSignalError$1","optionsReducer","objs","ApplicationRef","_runningTick","_destroyListeners","internalErrorHandler","afterRenderManager","zonelessEnabled","rootEffectScheduler","dirtyFlags","deferredDirtyFlags","tracingSnapshot","externalTestViews","afterTick","allViews","componentTypes","stable","finally","_rendererFactory","componentOrFactory","cf","selectorOrNode","compRef","NULL","_loadComponent","_tick","synchronize","runs","synchronizeOnce","useGlobalCheck","detectChangesInViewIfRequired","syncDirtyFlagsWithViews","attachView","viewCount","isFirstPass","scheduleDelayedTrigger","scheduleFn","shouldTriggerDeferBlock","triggerDeferBlock","scheduleDelayedPrefetching","triggerPrefetching","scheduleDelayedHydrating","ssrUniqueId","triggerHydrationFromBlockName","triggerResourceLoading","primaryBlockTNode","getPrimaryBlockTNode","dependency","primaryBlockTView","triggerType","_triggerHydrationFromBlockName","blockName","replayQueuedEventsFn","dehydratedBlockRegistry","blocksBeingHydrated","hydrating","parentBlockPromise","hydrationQueue","getParentBlockHydrationQueue","deferBlockId","deferBlockParents","isTopMostDeferBlock","currentBlockId","hydratingParentBlock","populateHydratingStateForQueue","blockId","withResolvers","dehydratedBlockId","triggerResourceLoadingForHydration","nextRender","cleanupHydratedDeferBlocks","hydratedBlocks","resolveFn","_triggerResourceLoadingForHydration","onDeferBlockCompletion","shouldAttachTrigger","shouldAttachRegularTrigger","incrementalHydrationEnabled","hasHydrateTriggers","wasServerSideRendered","getHydrateTriggers","ɵɵattribute","interpolationV","isBindingUpdated","interpolation1","v0","interpolation2","v1","interpolation3","v2","interpolation4","v3","interpolation5","interpolation6","i4","v5","interpolation7","i5","v6","interpolation8","i6","v7","toTStylingRange","getTStylingRangePrev","tStylingRange","setTStylingRangePrevDuplicate","getTStylingRangeNext","setTStylingRangeNext","setTStylingRangeNextDuplicate","insertTStylingBinding","tStylingKeyWithStatic","isClassBinding","tBindings","tmplHead","tmplTail","tStylingKey","isKeyDuplicateOfStatic","staticKeyValueArray","previousNode","setTStylingRangePrev","markDuplicates","markDuplicateOfResidualStyling","residual","isPrevDir","tStylingAtIndex","foundDuplicate","tStylingValueAtCursor","tStyleRangeAtCursor","isStylingMatch","tStylingKeyCursor","parserState","textEnd","keyEnd","getLastParsedKey","getLastParsedValue","parseClassNameNext","consumeClassToken","consumeWhitespace","parseStyleNext","consumeStyleKey","consumeSeparator","consumeStyleValue","ch1","ch2","ch3","lastChIndex","consumeQuotedText","resetParserState","quoteCharCode","setDirectiveInputsWhichShadowsStyling","isClassBased","ɵɵstyleProp","checkStylingProperty","ɵɵclassProp","ɵɵstyleMap","checkStylingMap","styleKeyValueArraySet","styleStringParser","parseStyle","classStringParser","parseClassName","stylingFirstUpdatePass","updateStyling","normalizeSuffix","stringParser","hasStylingInputShadow","isInHostBindings","staticPrefix","updateStylingMap","oldKeyValueArray","newKeyValueArray","oldIndex","oldKey","newKey","setKey","toStylingKeyValueArray","styleKeyValueArray","unwrappedValue","isHostBindings","wrapInStaticStylingKey","stylingKey","collectStylingFromDirectives","collectStylingFromTAttrs","templateStylingKey","getTemplateHeadTStylingKey","setTemplateHeadTStylingKey","collectResidual","currentDirective","desiredMarker","currentMarker","classKeyValueArraySet","stringKey","tRange","higherPriorityValue","getTStylingRangeNextDuplicate","findStylingValue","isStylingValuePresent","getTStylingRangePrevDuplicate","applyStyling","isPrevDirection","rawKey","containsStatics","isStylingMap","valueAtLViewIndex","LiveCollection","index1","index2","startIdx","endIdx","endItem","prevIndex","newIdx","valuesMatching","liveIdx","liveValue","attachPreviouslyDetached","prevCollection","detachedItems","createOrAttach","liveCollection","newItem","initLiveItemsInTheFuture","UniqueValueMultiKeyMap","kvMap","_vMap","prevValue","vMap","RepeaterContext","$count","RepeaterMetadata","hasEmptyBlock","LiveCollectionLContainerImpl","operationsCounter","needsIndexUpdate","detachExistingView","recordCreate","recordDestroy","updateIndexes","getExistingLViewFromLContainer","getLContainer","getExistingTNode","ɵɵelementStart","attrsIndex","elementStartFirstCreatePass","_locateOrCreateElementNode","hasDirectives","getElementDepthCount","increaseElementDepthCount","ɵɵelementEnd","isSkipHydrationRootTNode","leaveSkipHydrationBlock","decreaseElementDepthCount","hasClassInput","hasStyleInput","ɵɵelement","ɵɵelementContainerStart","elementContainerStartFirstCreatePass","_locateOrCreateElementContainerNode","ɵɵelementContainerEnd","localeEn","LOCALE_DATA","findLocaleData","normalizedLocale","normalizeLocale","getLocaleData","parentLocale","LocaleDataIndex","PluralCase","common","locales","FirstDayOfWeek","WeekendRange","CurrencyCode","CurrencySymbol","CurrencyName","Directionality","pluralMapping","DEFAULT_LOCALE_ID","ELEMENT_MARKER","ICU_MARKER","I18nCreateOpCode","SHIFT","APPEND_EAGERLY","COMMENT","LOCALE_ID$1","changeMask","changeMaskCounter","createNodeWithoutHydration","textOrName","COMMENT_NODE","_locateOrCreateNode","applyMutableOpCodes","mutableOpCodes","rootRNode","rootIdx","textNodeIndex","parentIdx","insertInFrontOf","refIdx","caseIndex","anchorIdx","elementNodeIndex","commentValue","commentNodeIndex","applyUpdateOpCodes","updateOpCodes","bindingsStartIndex","checkBit","skipCodes","sanitizeFn","tNodeOrTagName","rText","applyIcuSwitchCase","applyIcuUpdateCase","activeCaseIndex","getCaseIndex","icuExpression","bindingValue","resolvedCase","getPluralCase","applyIcuSwitchCaseRemove","claimDehydratedIcuCase","icuIndex","removeCodes","nodeOrIcuIndex","BINDING_REGEXP","ICU_REGEXP","NESTED_ICU","ICU_BLOCK_REGEXP","MARKER","SUBTEMPLATE_REGEXP","PH_REGEXP","NGSP_UNICODE_REGEXP","i18nStartFirstCreatePass","parentTNodeIndex","rootTNode","createOpCodes","existingTNodeStack","astStack","getTranslationForTemplate","removeInnerTemplateTranslation","msgParts","placeholderNode","i18nParseTextIntoPartsAndICU","icuNodeIndex","createTNodeAndAddOpCode","icuStart","i18nStartFirstCreatePassProcessTextNode","existingTNodes","isICU","i18nNodeIdx","ensureIcuContainerVisitorLoaded","setTNodeInsertBeforeIndex","generateBindingUpdateOpCodes","destinationNode","bindingStart","maskIndex","sizeIndex","textParts","toMaskBit","countBindings","opCodes","tagMatched","inTemplate","bindingMask","addUpdateIcuSwitch","mainBinding","setTIcu","valueArr","nestedIcus","caseAst","parseIcuCase","addUpdateIcuUpdate","parseICUBlock","icuType","prevPos","braceStack","braces","caseName","unsafeCaseHtml","inertRootNode","walkIcuTree","sharedUpdateOpCodes","depth","addCreateNodeAndAppend","lowerAttrName","addCreateAttribute","elementNode","addRemoveNode","isNestedIcu","addRemoveNestedIcu","appendToParentIdx","createAtIdx","icuCreateOpCode","PP_MULTI_VALUE_PLACEHOLDERS_REGEXP","PP_PLACEHOLDERS_REGEXP","PP_ICU_VARS_REGEXP","PP_ICU_PLACEHOLDERS_REGEXP","PP_ICUS_REGEXP","PP_CLOSE_TEMPLATE_REGEXP","PP_TEMPLATE_ID_REGEXP","ɵɵi18nStart","tI18n","prepareI18nBlockForHydration","applyCreateOpCodes","isComment","appendNow","ɵɵi18nEnd","stashEventListener","ɵɵlistener","useCapture","listenerInternal","isTNodeDirectiveHost","processOutputs","lCleanupIndex","idxOrTargetGetter","existingListener","findExistingListener","cleanupEventName","listenerIdxInLCleanup","__ngLastListenerFn__","__ngNextListenerFn__","wrapListener","propsLength","executeListenerWithErrorHandling","wrapListenerIn_markDirtyAndPreventDefault","nextListenerFn","matchingProjectionSlotIndex","projectionSlots","wildcardNgContentIndex","ngProjectAsAttrVal","getProjectAsAttrValue","ngProjectAsAttrIdx","ɵɵpropertyInterpolate1","interpolatedValue","ɵɵcontentQuery","ɵɵqueryRefresh","isCreationMode","ɵɵloadQuery","_locateOrCreateTextNode","ɵɵtextInterpolate1","interpolated","textBindingInternal","UNINITIALIZED_LET","resolveProvider","lInjectablesBlueprint","beginIndex","existingFactoryIndex","registerDestroyHooksIfSupported","existingProvidersFactoryIndex","existingViewProvidersFactoryIndex","doesProvidersFactoryExist","doesViewProvidersFactoryExist","multiFactory","multiFactoryAdd","multiViewProvidersFactoryResolver","multiProvidersFactoryResolver","contextIndex","indexInFactory","providerIsTypeProvider","providerIsClassProvider","isClassProvider","existingCallbacksIndex","isComponentProvider","lData","multiResolve","factories","componentCount","multiProviders","ɵɵProvidersFeature","processProvidersFn","convertToTypeArray","flattenValues","maybeUnwrapModuleWithProviders","getPureFunctionReturnValue","returnValueIndex","lastReturnValue","pureFunction1Internal","bindingRoot","slotOffset","pureFn","thisArg","pureFunction2Internal","pureFunction3Internal","pureFunction4Internal","pureFunctionVInternal","exps","isPure","recreateMatchingLViews","newDef","oldDef","recreateLView","recreate","newHost","cloneNode","replaceWith","newTView","newLView","replaceLViewInTree","oldLView","clearRendererCache","componentReplaced","resetProjectionState","ɵɵattributeInterpolate1","ɵɵattributeInterpolate2","ɵɵattributeInterpolate3","ɵɵattributeInterpolate4","ɵɵattributeInterpolate5","ɵɵattributeInterpolate6","ɵɵattributeInterpolate7","ɵɵattributeInterpolate8","ɵɵattributeInterpolateV","ɵɵtemplateRefExtractor","ɵɵresetView","ɵɵHostDirectivesFeature","rawHostDirectives","isEager","ɵɵCopyDefinitionFeature","defAny","ɵɵExternalStylesFeature","encapsulationId","ɵɵnextContext","nextContextImpl","ɵɵnamespaceHTML","namespaceHTMLInternal","ɵɵnamespaceMathML","ɵɵnamespaceSVG","ɵɵenableBindings","ɵɵdisableBindings","ɵɵelementContainer","ɵɵpureFunction0","ɵɵpureFunction1","ɵɵpureFunction2","ɵɵpureFunction3","ɵɵpureFunction4","ɵɵpureFunction5","exp5","ɵɵpureFunction6","exp6","ɵɵpureFunction7","exp7","ɵɵpureFunction8","exp8","ɵɵpureFunctionV","ɵɵgetCurrentView","ɵɵrestoreView","viewToRestore","ɵɵprojection","selectorIndex","fallbackTemplateFn","fallbackIndex","isNodeCreationMode","insertFallbackContent","fallbackTNode","fallbackLContainer","fallbackLView","applyProjection","ɵɵsyntheticHostProperty","ɵɵsyntheticHostListener","ɵɵpipeBind1","pipeInstance","ɵɵpipeBind2","ɵɵpipeBind3","ɵɵpipeBind4","ɵɵpipeBindV","ɵɵprojectionDef","componentNode","numProjectionSlots","projectionHeads","tails","componentChild","ɵɵhostProperty","ɵɵproperty","ɵɵpropertyInterpolate","ɵɵpropertyInterpolate2","ɵɵpropertyInterpolate3","ɵɵpropertyInterpolate4","ɵɵpropertyInterpolate5","ɵɵpropertyInterpolate6","ɵɵpropertyInterpolate7","ɵɵpropertyInterpolate8","ɵɵpropertyInterpolateV","ɵɵpipe","getPipeDef","pipeFactory","ɵɵqueryAdvance","indexOffset","ɵɵviewQuery","ɵɵviewQuerySignal","ɵɵcontentQuerySignal","ɵɵreference","ɵɵclassMap","ɵɵclassMapInterpolate1","ɵɵclassMapInterpolate2","ɵɵclassMapInterpolate3","ɵɵclassMapInterpolate4","ɵɵclassMapInterpolate5","ɵɵclassMapInterpolate6","ɵɵclassMapInterpolate7","ɵɵclassMapInterpolate8","ɵɵclassMapInterpolateV","ɵɵstyleMapInterpolate1","ɵɵstyleMapInterpolate2","ɵɵstyleMapInterpolate3","ɵɵstyleMapInterpolate4","ɵɵstyleMapInterpolate5","ɵɵstyleMapInterpolate6","ɵɵstyleMapInterpolate7","ɵɵstyleMapInterpolate8","ɵɵstyleMapInterpolateV","ɵɵstylePropInterpolate1","valueSuffix","ɵɵstylePropInterpolate2","ɵɵstylePropInterpolate3","ɵɵstylePropInterpolate4","ɵɵstylePropInterpolate5","ɵɵstylePropInterpolate6","ɵɵstylePropInterpolate7","ɵɵstylePropInterpolate8","ɵɵstylePropInterpolateV","ɵɵadvance","ɵɵtemplate","ɵɵconditional","matchingTemplateIndex","prevMatchingTemplateIndex","prevContainer","nextLContainerIndex","nextContainer","ɵɵdefer","loadingConfigIndex","placeholderConfigIndex","setTDeferBlockDetails","deferBlockConfig","ssrBlockState","setLDeferBlockDetails","onLViewDestroy","ɵɵdeferWhen","rawValue","ɵɵdeferOnIdle","ɵɵdeferOnImmediate","ɵɵdeferOnTimer","ɵɵdeferOnHover","ɵɵdeferOnInteraction","ɵɵdeferOnViewport","ɵɵdeferPrefetchWhen","ɵɵdeferPrefetchOnIdle","ɵɵdeferPrefetchOnImmediate","ɵɵdeferPrefetchOnTimer","ɵɵdeferPrefetchOnHover","ɵɵdeferPrefetchOnInteraction","ɵɵdeferPrefetchOnViewport","ɵɵdeferHydrateWhen","ɵɵdeferHydrateNever","ɵɵdeferHydrateOnIdle","ɵɵdeferHydrateOnImmediate","ɵɵdeferHydrateOnTimer","ɵɵdeferHydrateOnHover","ɵɵdeferHydrateOnInteraction","ɵɵdeferHydrateOnViewport","ɵɵdeferEnableTimerScheduling","ɵɵrepeater","metadataSlotIdx","containerIndex","itemTemplateTNode","reconcile","newCollection","liveKeysInTheFuture","liveStartIdx","liveEndIdx","newEndIdx","liveStartValue","newStartValue","isStartMatching","liveEndValue","newEndValue","isEndMatching","liveStartKey","liveEndKey","newStartKey","newEndKey","newCollectionIterator","newIterationResult","liveKey","isCollectionEmpty","emptyTemplateIndex","lContainerForEmpty","emptyTemplateTNode","ɵɵrepeaterCreate","emptyTemplateFn","emptyAttrsIndex","boundTrackBy","ɵɵrepeaterTrackByIndex","ɵɵrepeaterTrackByIdentity","ɵɵcomponentInstance","ɵɵtext","textNative","ɵɵtextInterpolate","ɵɵtextInterpolate2","ɵɵtextInterpolate3","ɵɵtextInterpolate4","ɵɵtextInterpolate5","ɵɵtextInterpolate6","ɵɵtextInterpolate7","ɵɵtextInterpolate8","ɵɵtextInterpolateV","ɵɵi18n","ɵɵi18nAttributes","i18nAttributesFirstPass","previousElementIndex","ɵɵi18nExp","setMaskBit","hasChange","ɵɵi18nApply","applyI18n","ɵɵi18nPostprocess","replacements","templateIdsStack","phs","templateId","isCloseTemplateTag","currentTemplateId","_type","_idx","ɵɵresolveWindow","ɵɵresolveDocument","ɵɵsetComponentScope","ɵɵsetNgModuleScope","ɵɵgetComponentDepsFactory","ɵsetClassDebugInfo","ɵɵdeclareLet","ɵɵstoreLet","ɵɵreadContextLet","ɵɵattachSourceLocations","attributeValue","ɵɵsanitizeHtml","ɵɵsanitizeStyle","unsafeStyle","ɵɵsanitizeScript","unsafeScript","ɵɵtrustConstantHtml","ɵɵtrustConstantResourceUrl","trustedScriptURLFromString","ɵɵvalidateIframeAttribute","srcdoc","ɵɵtwoWayProperty","ɵɵtwoWayBindingSet","canWrite","ɵɵtwoWayListener","ɵɵreplaceMetadata","applyMetadata","namespaces","locals","mergeWithExistingDefinition","trackedViews","getTrackedLViews","jitOptions","moduleQueue","flushingModuleQueue","isResolvedDeclaration","compileNgModuleDefs","allowDuplicateDeclarationsInRoot","expandModuleWithProviders","enqueueModuleForDelayedScoping","setScopeOnDeclaredComponents","transitiveScopes","transitiveScopesFor","patchComponentDefWithScope","ngSelectorScope","compilationDepth","ngComponentDef","maybeQueueResolutionOfComponentResources","addDirectiveFactoryDef","getJitOptions","directiveMetadata","addDirectiveDefToUndecoratedParents","getStandaloneDefFunctions","flushModuleScopingQueueAsMuchAsPossible","hasSelectorScope","ngDirectiveDef","getDirectiveMetadata","extendsDirectlyFromObject","extractQueriesMetadata","isContentQuery","extractExportAs","objPrototype","shouldAddAbstractDirective","convertToR3QueryPredicate","splitByComma","isQueryAnn","queriesMeta","isInputAnnotation","LIFECYCLE_HOOKS","hookName","metadataName","getPipeMetadata","ngPipeDef","HostBinding","ModuleWithComponentFactories","ngModuleFactory","componentFactories","compileModuleSync","compileModuleAsync","compileModuleAndAllComponentsSync","compileModuleAndAllComponentsAsync","clearCache","clearCacheFor","getModuleId","compileNgModuleFactory","moduleFactory","ngJitMode","setJitOptions","isComponentResourceResolutionQueueEmpty","compilerProviders","resourceLoader","NgZoneChangeDetectionScheduler","applicationRef","_onMicrotaskEmptySubscription","runningTick","internalProvideZoneChangeDetection","ngZoneFactory","ignoreChangesOutsideZone","getNgZoneOptions","ngZoneChangeDetectionScheduler","ZoneStablePendingTask","eventCoalescing","runCoalescing","ChangeDetectionSchedulerImpl","taskService","disableScheduling","zoneIsDefined","schedulerTickApplyArgs","__scheduler_tick__","angularZoneId","cancelScheduledCallback","useMicrotaskScheduler","pendingRenderTaskId","force","shouldScheduleTick","scheduleCallback","getGlobalLocale","$localize","ImagePerformanceWarning","lcpImageUrl","waitToScan","scanImages","lcpElementFound","lcpElementLoadedCorrectly","isOversized","logOversizedImageWarning","logLazyLCPWarning","imageSource","renderedWidth","renderedHeight","boxSizing","intrinsicWidth","intrinsicHeight","naturalHeight","recommendedWidth","devicePixelRatio","recommendedHeight","PLATFORM_DESTROY_LISTENERS","ENABLE_ROOT_COMPONENT_BOOTSTRAP","isApplicationBootstrapConfig","moduleRef","r3Injector","exceptionHandler","onErrorSubscription","destroyListener","onPlatformDestroyListeners","platformInjector","allPlatformModules","_callAndReportToErrorHandler","initStatus","setLocaleId","rootComponent","moduleDoBootstrap","ngDoBootstrap","PlatformRef","_modules","bootstrapModuleFactory","allAppProviders","getNgZone","ngZoneToUse","ngZoneEventCoalescing","ngZoneRunCoalescing","createNgModuleRefWithProviders","destroyListeners","_platformInjector","ALLOW_MULTIPLE_PLATFORMS","parentPlatformFactory","extraProviders","getPlatform","platformProviders","createPlatform","runPlatformInitializers","createPlatformInjector","assertPlatform","requiredToken","inits","injectChangeDetectorRef","createViewRef","hostComponentView","DefaultIterableDifferFactory","DefaultIterableDiffer","trackByIdentity","_linkedRecords","_unlinkedRecords","_previousItHead","_itHead","_itTail","_additionsHead","_additionsTail","_movesHead","_movesTail","_removalsHead","_removalsTail","_identityChangesHead","_identityChangesTail","_next","nextIt","nextRemove","addRemoveOffset","moveOffsets","getPreviousIndex","adjPreviousIndex","_nextRemoved","localMovePreviousIndex","localCurrentIndex","forEachPreviousItem","_nextPrevious","_nextAdded","forEachMovedItem","_nextMoved","_nextIdentityChange","_reset","itemTrackBy","mayBeDirty","trackById","_verifyReinsertion","_addIdentityChange","_mismatch","iterateListLike","_truncate","isDirty","previousRecord","_prev","_remove","_reinsertAfter","_moveAfter","_addAfter","IterableChangeRecord_","reinsertRecord","_addToMoves","nextRecord","_addToRemovals","_unlink","prevRecord","_prevRemoved","_insertAfter","_DuplicateMap","_prevDup","_nextDup","_DuplicateItemRecordList","_head","_tail","atOrAfterIndex","duplicates","recordList","moveOffset","DefaultKeyValueDifferFactory","DefaultKeyValueDiffer","_records","_mapHead","_appendAfter","_previousMapHead","_changesHead","_changesTail","_nextChanged","_forEach","_maybeAddToChanges","_getOrCreateRecordForKey","_insertBeforeOrAppend","KeyValueChangeRecord_","_addToAdditions","_addToChanges","defaultIterableDiffersFactory","IterableDiffers","copied","extend","defaultKeyValueDiffersFactory","KeyValueDiffers","kv","keyValDiff","iterableDiff","ApplicationModule","fallbackValue","NaN","nonReactiveReadsFn","BASE_EFFECT_NODE","hasRun","onDestroyFn","registerCleanupFn","prevNode","prevRefreshingViews","maybeCleanup","NOT_SET","EMPTY_CLEANUP_SET","ResourceStatus","Reloading","Resolved","reflectComponentType","BaseControlValueAccessor","onTouched","setDisabledState","BuiltInControlValueAccessor","ɵBuiltInControlValueAccessor_BaseFactory","CHECKBOX_VALUE_ACCESSOR","CheckboxControlValueAccessor","ɵCheckboxControlValueAccessor_BaseFactory","$event","checked","DEFAULT_VALUE_ACCESSOR","DefaultValueAccessor","COMPOSITION_BUFFER_MODE","_compositionMode","_composing","_isAndroid","ɵgetDOM","getUserAgent","normalizedValue","_handleInput","_compositionStart","_compositionEnd","isEmptyInputValue","hasValidLength","NG_VALIDATORS","NG_ASYNC_VALIDATORS","EMAIL_REGEXP","minValidator","maxValidator","requiredValidator","requiredTrue","requiredTrueValidator","emailValidator","minLengthValidator","maxLengthValidator","patternValidator","nullValidator","composeAsync","minlength","requiredLength","actualLength","maxlength","regexStr","requiredPattern","actualValue","isPresent","toObservable","mergeErrors","arrayOfErrors","executeValidators","normalizeValidators","isValidatorFn","presentValidators","composeValidators","observables","composeAsyncValidators","mergeValidators","controlValidators","dirValidator","getControlValidators","_rawValidators","getControlAsyncValidators","_rawAsyncValidators","makeValidatorsArray","hasValidator","addValidators","currentValidators","validatorsToAdd","removeValidators","AbstractControlDirective","pristine","untouched","statusChanges","valueChanges","_composedValidatorFn","_composedAsyncValidatorFn","_setValidators","_setAsyncValidators","asyncValidator","_onDestroyCallbacks","_registerOnDestroy","_invokeOnDestroyCallbacks","ControlContainer","formDirective","AbstractControlStatus","_cd","cd","isTouched","_touched","isUntouched","isPristine","_pristine","_status","isPending","isSubmitted","_submitted","NgControlStatus","NgControlStatusGroup","VALID","INVALID","DISABLED","ControlEvent","ValueChangeEvent","PristineChangeEvent","TouchedChangeEvent","StatusChangeEvent","FormSubmittedEvent","FormResetEvent","pickValidators","validatorOrOpts","isOptionsObj","pickAsyncValidators","asyncValidators","assertControlPresent","isGroup","assertAllValuesPresent","_forEachChild","AbstractControl","_pendingDirty","_hasOwnPendingAsyncValidator","_pendingTouched","_onCollectionChange","_updateOn","_asyncValidationSubscription","_assignValidators","_assignAsyncValidators","validatorFn","asyncValidatorFn","statusReactive","pristineReactive","touchedReactive","_events","asObservable","updateOn","setValidators","setAsyncValidators","addAsyncValidators","removeAsyncValidators","hasAsyncValidator","clearValidators","clearAsyncValidators","markAsTouched","sourceControl","onlySelf","markAllAsTouched","markAsUntouched","_updateTouched","markAsDirty","markAsPristine","_updatePristine","markAsPending","skipPristineCheck","_parentMarkedDirty","_updateValue","_updateAncestors","_onDisabledChange","changeFn","enable","updateValueAndValidity","setParent","getRawValue","_setInitialStatus","shouldHaveEmitted","_cancelExistingSubscription","_runValidator","_calculateStatus","_runAsyncValidator","_updateTreeValidity","ctrl","_allControlsDisabled","obs","_updateControlsErrors","currPath","_find","changedControl","_initObservables","_anyControlsHaveStatus","_anyControls","_anyControlsDirty","_anyControlsTouched","newPristine","_registerOnCollectionChange","_setUpdateStrategy","parentDirty","coerceToValidator","coerceToAsyncValidator","FormGroup","_setUpControls","registerControl","addControl","removeControl","setControl","controlName","patchValue","_reduceChildren","acc","_syncPendingControls","subtreeUpdated","updated","_reduceValue","initValue","FormRecord","CALL_SET_DISABLED_STATE","setDisabledStateDefault","controlPath","setUpControl","callSetDisabledState","setUpValidators","setUpViewChangePipeline","_pendingValue","_pendingChange","updateControl","setUpModelChangePipeline","emitModelEvent","viewToModelUpdate","_unregisterOnChange","setUpBlurPipeline","setUpDisabledChangeHandler","onDisabledChange","registerOnDisabledChange","_unregisterOnDisabledChange","cleanUpControl","validateControlPresenceOnChange","cleanUpValidators","registerOnValidatorChange","onValidatorChange","isControlUpdated","updatedValidators","updatedAsyncValidators","emitModelToViewChange","setUpFormContainer","isPropertyUpdated","viewModel","syncPendingControls","selectValueAccessor","valueAccessors","defaultAccessor","builtinAccessor","customAccessor","isBuiltInAccessor","formDirectiveProvider$1","NgForm","resolvedPromise$1","submittedReactive","_directives","ngSubmit","_findContainer","getControl","addFormGroup","removeFormGroup","getFormGroup","updateModel","resetForm","removeListItem","isFormControlState","FormControl","_onChange","_applyFormState","nonNullable","initialValueIsDefault","emitViewToModelChange","AbstractFormGroupDirective","_checkParentType","ɵAbstractFormGroupDirective_BaseFactory","modelGroupProvider","NgModelGroup","formControlBinding$1","NgModel","_registered","_checkForErrors","_checkName","oldName","_getPath","_setUpControl","_updateDisabled","_isStandalone","_setUpStandalone","disabledValue","ɵNgNoValidate","NUMBER_VALUE_ACCESSOR","NumberValueAccessor","ɵNumberValueAccessor_BaseFactory","RADIO_VALUE_ACCESSOR","RadioControlValueAccessor","RadioControlRegistry","_accessors","_isSameGroup","fireUncheck","controlPair","_control","_registry","_fn","setDisabledStateFired","formControlName","RANGE_VALUE_ACCESSOR","RangeValueAccessor","ɵRangeValueAccessor_BaseFactory","NG_MODEL_WITH_FORM_CONTROL_WARNING","formControlBinding","FormControlDirective","_ngModelWarningConfig","_ngModelWarningSent","_isControlChanged","previousForm","formDirectiveProvider","FormGroupDirective","_submittedReactive","_oldForm","_updateDomValue","_checkFormPresent","_updateValidators","_updateRegistrations","removeListItem$1","_setUpFormContainer","_cleanUpFormContainer","addFormArray","removeFormArray","getFormArray","oldCtrl","newCtrl","cleanUpFormContainer","formGroupNameProvider","FormGroupName","_hasInvalidParent","formArrayNameProvider","FormArrayName","controlNameBinding","FormControlName","_added","SELECT_VALUE_ACCESSOR","SelectControlValueAccessor","_buildValueString$1","_optionMap","_idCounter","compareWith","_compareWith","valueString","_getOptionId","_getOptionValue","_registerOption","_extractId$1","ɵSelectControlValueAccessor_BaseFactory","NgSelectOption","_element","_select","ngValue","_setElementValue","SELECT_MULTIPLE_VALUE_ACCESSOR","SelectMultipleControlValueAccessor","_buildValueString","optionSelectedStateSetter","_setSelected","selectedOptions","_extractId","ɵSelectMultipleControlValueAccessor_BaseFactory","ɵNgSelectMultipleOption","toInteger","toFloat","AbstractValidatorDirective","_validator","_enabled","normalizeInput","createValidator","MAX_VALIDATOR","MaxValidator","ɵMaxValidator_BaseFactory","MIN_VALIDATOR","MinValidator","ɵMinValidator_BaseFactory","REQUIRED_VALIDATOR","RequiredValidator","CHECKBOX_REQUIRED_VALIDATOR","CheckboxRequiredValidator","ɵRequiredValidator_BaseFactory","ɵCheckboxRequiredValidator_BaseFactory","EMAIL_VALIDATOR","EmailValidator","ɵEmailValidator_BaseFactory","MIN_LENGTH_VALIDATOR","MinLengthValidator","ɵMinLengthValidator_BaseFactory","MAX_LENGTH_VALIDATOR","MaxLengthValidator","ɵMaxLengthValidator_BaseFactory","PATTERN_VALIDATOR","PatternValidator","ɵPatternValidator_BaseFactory","ɵInternalFormsSharedModule","FormArray","_registerControl","removeAt","isAbstractControlOptions","FormBuilder","useNonNullable","nnfb","reducedControls","_reduceControls","newOptions","createdControls","_createControl","controlsConfig","ɵUntypedFormBuilder_BaseFactory","withConfig","warnOnNgModelWithFormControl","GenericBrowserDomAdapter","ɵDomAdapter","supportsDOMEvents","BrowserDomAdapter","makeCurrent","ɵsetRootDomAdapter","onAndCancel","evt","getDefaultDocument","createHtmlDocument","isElementNode","isShadowRoot","DocumentFragment","getBaseElementHref","relativePath","baseURI","resetBaseElement","BrowserXhr","EVENT_MANAGER_PLUGINS","EventManager","_zone","_plugins","_eventNameToPlugin","plugins","plugin","_findPluginFor","getZone","EventManagerPlugin","APP_ID_ATTRIBUTE_NAME","removeElements","createStyleElement","createLinkElement","SharedStylesHost","hosts","isServer","addServerStyles","HTMLLinkElement","addStyles","urls","addUsage","removeStyles","removeUsage","usages","creator","addElement","addHost","hostNode","removeHost","NAMESPACE_URIS","xhtml","xlink","xml","COMPONENT_REGEX","REMOVE_STYLES_ON_COMPONENT_DESTROY","shimStylesContent","compId","DomRendererFactory2","eventManager","sharedStylesHost","removeStylesOnCompDestroy","tracingService","rendererByCompId","defaultRenderer","platformIsServer","DefaultDomRenderer2","getOrCreateRenderer","EmulatedEncapsulationDomRenderer2","applyToHost","NoneEncapsulationDomRenderer","applyStyles","ShadowDomRenderer","componentId","ɵTracingService","throwOnSyntheticProps","createElementNS","newChild","isTemplateNode","refChild","oldChild","namespaceUri","setAttributeNS","removeAttributeNS","removeProperty","wrappedCallback","decoratePreventDefault","wrapEventListener","eventHandler","hostEl","styleEl","linkEl","nodeOrShadowRoot","contentAttr","hostAttr","shimContentAttribute","componentShortId","shimHostAttribute","DomEventsPlugin","MODIFIER_KEYS","_keyMap","Esc","Left","Right","Up","Down","Scroll","Win","MODIFIER_KEY_GETTERS","KeyEventsPlugin","parseEventName","parsedEvent","outsideHandler","eventCallback","fullKey","domEventName","_normalizeKey","codeIX","modifierName","matchEventFullKeyCode","fullKeyCode","keycode","modifierGetter","INTERNAL_BROWSER_PLATFORM_PROVIDERS","initDomAdapter","_document","ɵsetDocument","TESTABILITY_PROVIDERS","platformBrowser","ɵTESTABILITY_GETTER","BrowserGetTestability","ɵglobal","getAngularTestability","getAllAngularTestabilities","getAllAngularRootElements","frameworkStabilizers","testabilities","decrement","ɵTESTABILITY","BROWSER_MODULE_PROVIDERS","ɵINJECTOR_SCOPE","_dom","addTag","forceCreation","_getOrCreateElement","addTags","getTag","attrSelector","getTags","updateTag","_parseSelector","_setMetaElementAttributes","removeTag","removeTagElement","_containsAttributes","_getMetaKeyMap","META_KEYS_MAP","httpEquiv","getTitle","setTitle","newTitle","EVENT_NAMES","pan","panstart","panmove","panend","pancancel","panleft","panright","panup","pandown","pinch","pinchstart","pinchmove","pinchend","pinchcancel","pinchin","pinchout","press","pressup","rotatestart","rotatemove","rotateend","rotatecancel","swipe","swipeleft","swiperight","swipeup","swipedown","tap","doubletap","HAMMER_GESTURE_CONFIG","HAMMER_LOADER","HammerGestureConfig","buildHammer","mc","Hammer","HammerGesturesPlugin","_config","_loaderPromise","isCustomEvent","cancelRegistration","deregister","eventObj","HammerModule","DomSanitizerImpl","ɵallowSanitizationBypassAndThrow","ɵ_sanitizeHtml","ɵ_sanitizeUrl","ɵbypassSanitizationTrustHtml","bypassSecurityTrustStyle","ɵbypassSanitizationTrustStyle","bypassSecurityTrustScript","ɵbypassSanitizationTrustScript","bypassSecurityTrustUrl","ɵbypassSanitizationTrustUrl","ɵbypassSanitizationTrustResourceUrl","HydrationFeatureKind","NoHttpTransferCache","HttpTransferCacheOptions","I18nSupport","EventReplay","IncrementalHydration","combineLatest","popScheduler","resultSelector","popResultSelector","argsArgArrayOrObject","combineLatestInit","valueTransform","maybeSchedule","remainingFirstValues","hasFirstValue","createOperatorSubscriber","createObject","mapOneOrManyArgs","executeSchedule","EmptyError","createErrorClass","_super","mergeAll","concurrent","concatAll","observableFactory","errorOrErrorFactory","errorFactory","isFunction","EMPTY","_refCount","refCounter","sharedConnection","_connection","ConnectableObservable","subjectFactory","hasLift","lift","getSubject","isStopped","_teardown","higherOrderRefCount","take","defaultIfEmpty","hasValue","throwIfEmpty","defaultErrorFactory","hasDefaultValue","tapObserver","_a","isUnsub","_b","catchError","handledResult","innerSub","syncUnsub","accumulator","seed","scanInternals","hasSeed","emitOnNext","emitBeforeComplete","hasState","takeLast","PRIMARY_OUTLET","RouteTitleKey","ParamsAsMap","convertToParamMap","defaultUrlMatcher","segmentGroup","pathMatch","posParams","consumed","shallowEqual","k1","getDataKeys","k2","equalArraysOrString","getOwnPropertySymbols","aSorted","bSorted","wrapIntoObservable","isObservable","pathCompareMap","equalSegmentGroups","containee","equalPath","matrixParamsMatch","numberOfChildren","containsSegmentGroup","paramCompareMap","equalParams","containsParams","ignored","containsTree","fragment","containsSegmentGroupHelper","containeePaths","containerPaths","containeeSegment","UrlTree","_queryParamMap","UrlSegmentGroup","queryParamMap","DEFAULT_SERIALIZER","serializePaths","UrlSegment","_parameterMap","parameterMap","serializePath","bs","UrlParser","parseRootSegment","parseQueryParams","parseFragment","serializeSegment","serializeQueryParams","strParams","encodeUriQuery","encodeUriFragment","encodeURI","mapChildrenIntoArray","childOutlet","encodeUriString","encodeUriSegment","decodeQuery","serializeMatrixParams","SEGMENT_RE","matchSegments","MATRIX_PARAM_SEGMENT_RE","QUERY_PARAM_RE","QUERY_PARAM_VALUE_RE","remaining","consumeOptional","peekStartsWith","parseChildren","parseQueryParam","parseSegment","parseParens","parseMatrixParams","parseParam","matchMatrixKeySegments","valueMatch","matchQueryParams","matchUrlQueryParamValue","decodedKey","decodedVal","currentVal","allowPrimary","outletName","rootCandidate","Zt","squashSegmentGroup","newChildren","childCandidate","grandChildOutlet","grandChild","mergeTrivialChildren","isUrlTree","createSegmentGroupFromRoute","targetGroup","createSegmentGroupFromRouteRecursive","currentRoute","childOutlets","childSnapshot","outlet","rootSegmentGroup","createUrlTreeFromSegmentGroup","commands","computeNavigation","Navigation","numberOfDoubleDots","cmd","cmdIdx","outlets","segmentPath","urlPart","toRoot","findStartingPositionForTargetGroup","Position","isMatrixParams","createPositionApplyingDoubleDots","ci","newSegmentGroup","processChildren","updateSegmentGroupChildren","updateSegmentGroup","command","isCommandWithOutlets","oldRoot","oldSegmentGroup","qp","replaceSegment","newRoot","oldSegment","newSegment","cmdWithOutlet","prefixedWith","currentCommandIndex","currentPathIndex","noMatch","pathIndex","commandIndex","curr","slicedCommands","createNewSegmentGroup","getOutlets","childrenOfEmptyChild","createNewSegmentChildren","IMPERATIVE_NAVIGATION","NavigationCancellationCode","NavigationSkippedCode","NavigationStart","NavigationCancel","NavigationError","RoutesRecognized","ResolveEnd","GuardsCheckStart","GuardsCheckEnd","RouteConfigLoadStart","RouteConfigLoadEnd","ChildActivationStart","ChildActivationEnd","ActivationStart","ActivationEnd","NavigationSkipped","RouterEvent","navigationTrigger","restoredState","SupersededByNewNavigation","NoDataFromResolver","GuardRejected","IgnoredSameUrlNavigation","IgnoredByUrlHandlingStrategy","shouldActivate","routeConfig","routerEvent","BeforeActivateRoutes","RedirectRequest","navigationBehaviorOptions","getOutlet","getClosestRouteInjector","_loadedInjector","OutletContext","rootInjector","attachRef","ChildrenOutletContexts","contexts","onChildOutletCreated","childName","getOrCreateContext","onChildOutletDestroyed","onOutletDeactivated","onOutletReAttached","Tree","_root","pathFromRoot","findNode","findPath","cc","TreeNode","nodeChildrenAsMap","RouterState","setRouterState","createEmptyState","createEmptyStateSnapshot","emptyParams","emptyData","emptyQueryParams","activated","ActivatedRouteSnapshot","RouterStateSnapshot","emptyUrl","urlSubject","paramsSubject","queryParamsSubject","fragmentSubject","dataSubject","_futureSnapshot","_routerState","_paramMap","futureSnapshot","getInherited","paramsInheritanceStrategy","inherited","loadComponent","_resolvedData","hasStaticTitle","_resolve","serializeNode","advanceActivatedRoute","currentSnapshot","nextSnapshot","shallowEqualArrays","equalParamsAndUrlSegments","equalUrlParams","equalSegments","parentsMismatch","ROUTER_OUTLET_DATA","RouterOutlet","activatedComponentRef","activateEvents","deactivateEvents","attachEvents","detachEvents","routerOutletData","parentContexts","changeDetector","inputBinder","INPUT_BINDER","supportsBindingToComponentInputs","isTrackedInParentContexts","deactivate","initializeOutletWithName","unsubscribeFromRouteData","activateWith","activatedRoute","activatedRouteData","bindActivatedRouteToOutletComponent","childContexts","OutletInjector","outletData","__ngOutletInjector","RoutedComponentInputBinder","outletDataSubscriptions","subscribeToRouteData","dataSubscription","mirror","createNode","routeReuseStrategy","shouldReuseRoute","createOrReuseChildren","shouldAttach","detachedRouteHandle","retrieve","createActivatedRoute","RedirectCommand","NAVIGATION_CANCELING_ERROR","redirectingNavigationError","urlSerializer","navigationCancelingError","cancellationCode","isNavigationCancelingError","ActivateRoutes","futureState","forwardEvent","inputBindingEnabled","futureRoot","currRoot","deactivateChildRoutes","activateChildRoutes","futureNode","currNode","futureChild","childOutletName","deactivateRoutes","deactivateRouteAndItsChildren","parentContext","future","shouldDetach","detachAndStoreRouteSubtree","deactivateRouteAndOutlet","treeNode","activateRoutes","stored","CanActivate","CanDeactivate","getAllRouteGuards","getChildRouteGuards","getTokenOrFunctionIdentity","tokenOrFunction","ɵisInjectable","futurePath","checks","canDeactivateChecks","canActivateChecks","prevChildren","getRouteGuards","shouldRun","shouldRunGuardsAndResolvers","runGuardsAndResolvers","isEmptyError","INITIAL_VALUE","prioritizedGuardValue","startWith","isRedirect","checkGuards","targetSnapshot","guards","guardsResult","runCanDeactivateChecks","futureRSS","currRSS","runCanDeactivate","currARS","canDeactivateObservables","closestInjector","isCanDeactivate","isBoolean","runCanActivateChecks","fireChildActivationStart","fireActivationStart","runCanActivateChild","futureARS","canActivateChildGuardsMapped","getCanActivateChild","canActivateChild","guardsMapped","isCanActivateChild","runCanActivate","canActivateObservables","isCanActivate","runCanLoadGuards","canLoad","canLoadObservables","injectionToken","isCanLoad","redirectIfUrlTree","runCanMatchGuards","canMatch","canMatchObservables","isCanMatch","NoMatch","AbsoluteRedirect","urlTree","noMatch$1","ApplyRedirects","lineralizeSegments","applyRedirectCommands","redirectToFn","newRedirect","newTree","applyRedirectCreateUrlTree","createSegmentGroup","createQueryParams","redirectToParams","actualParams","sourceName","updatedSegments","createSegments","redirectToSegments","actualSegments","findPosParam","findOrReturn","redirectToUrlSegment","consumedSegments","remainingSegments","positionalParamSegments","matchWithChecks","getOrCreateRouteInjectorIfNeeded","currentInjector","createWildcardMatchResult","slicedSegments","containsEmptyPathMatchesWithNamedOutlets","emptyPathMatch","createChildrenForEmptyPaths","containsEmptyPathMatches","addEmptyPathsToChildrenIfNeeded","primarySegment","NoLeftoversInUrl","Recognizer","configLoader","rootComponentType","applyRedirects","absoluteRedirectCount","allowRedirects","noMatchError","recognize","rootSnapshot","routeState","createUrlTreeFromSnapshot","processSegmentGroup","parentRoute","processSegment","sortedConfig","sortByMatchingOutlets","outletChildren","last$1","mergedChildren","mergeEmptyPathMatches","sortActivatedRouteSnapshots","localeCompare","processSegmentAgainstRoute","noLeftoversInUrl","rawSegment","matchSegmentAgainstRoute","expandSegmentAgainstRouteUsingRedirect","_loadedComponent","getResolve","newSegments","matchResult","getChildConfig","childConfig","childInjector","matchedOnOutlet","_loadedRoutes","shouldLoadResult","cfg","canLoadFails","hasEmptyPathConfig","mergedNodes","duplicateEmptyPathNode","resultNode","mergedNode","recognize$1","extractedUrl","resolveData","routesWithResolversToRun","routesNeedingDataUpdates","newRoute","flattenRouteTree","routesProcessed","runResolve","resolveNode","getResolver","resolver","resolverValue","resolvedData","switchTap","nextResult","TitleStrategy","buildTitle","pageTitle","getResolvedTitleForRoute","DefaultTitleStrategy","updateTitle","ROUTER_CONFIGURATION","ɵEmptyOutletComponent","standardizeConfig","ROUTES","RouterConfigLoader","componentLoaders","childrenLoaders","onLoadStartListener","onLoadEndListener","loadRunner","maybeUnwrapDefaultExport","factoryOrRoutes","rawRoutes","requireStandaloneComponents","isWrappedDefaultExport","UrlHandlingStrategy","DefaultUrlHandlingStrategy","shouldProcessUrl","newUrlPart","wholeUrl","CREATE_VIEW_TRANSITION","VIEW_TRANSITION_OPTIONS","createViewTransition","transitionOptions","startViewTransition","skipNextTransition","resolveViewTransitionStarted","viewTransitionStarted","createRenderPromise","onViewTransitionCreated","NAVIGATION_ERROR_HANDLER","NavigationTransitions","currentNavigation","currentTransition","lastSuccessfulNavigation","transitionAbortSubject","rootContexts","titleStrategy","urlHandlingStrategy","navigationErrorHandler","navigationId","hasRequestedNavigation","transitions","afterPreactivation","handleNavigationRequest","setupNavigations","initialUrlTree","initialRouterState","currentUrlTree","currentRawUrl","rawUrl","extras","currentRouterState","targetRouterState","overallTransitionState","errored","cancelNavigationTransition","initialUrl","targetBrowserUrl","browserUrl","previousNavigation","urlTransition","navigated","isUpdatingInternalState","isUpdatedBrowserUrl","onSameUrlNavigation","getValue","finalUrl","routesRecognized","navStart","skipLocationChange","replaceUrl","guardsStart","guardsEnd","resolveStart","dataResolved","resolveEnd","loadComponents","loaders","createRouterState","takeUntil","notifier","isRedirectingNavigationCancelingError","navigationError","navigationErrorHandlerResult","resolveNavigationPromiseOnError","navCancel","currentBrowserUrl","isBrowserTriggeredNavigation","RouteReuseStrategy","DefaultRouteReuseStrategy","BaseRouteReuseStrategy","detachedTree","ɵDefaultRouteReuseStrategy_BaseFactory","StateManager","HistoryStateManager","canceledNavigationResolution","urlUpdateStrategy","getCurrentUrlTree","rawUrlTree","getRawUrlTree","currentPageId","lastSuccessfulId","browserPageId","ɵrouterPageId","getRouterState","stateMemento","createStateMemento","registerNonRouterCurrentEntryChangeListener","handleRouterEvent","setBrowserUrl","restoreHistory","currentBrowserPageId","generateNgRouterState","navigation","restoringFromCaughtError","targetPagePosition","resetState","resetUrlToCurrentUrlTree","routerPageId","ɵHistoryStateManager_BaseFactory","afterNextNavigation","exactMatchOptions","subsetMatchOptions","stateManager","disposed","nonRouterCurrentEntryChangeSubscription","ɵConsole","navigationTransitions","componentInputBindingEnabled","subscribeToNavigationEvents","eventsSubscription","mergedTree","scheduleNavigation","isPublicRouterEvent","resetRootComponentType","initialNavigation","setUpLocationChangeListener","navigateToSyncWithBrowser","stateCopy","parseUrl","serializeUrl","getCurrentNavigation","createUrlTree","navigationExtras","queryParamsHandling","preserveFragment","relativeToUrlSegmentGroup","defaultQueryParamsHandling","removeEmptyProps","validateCommands","isActive","matchOptions","priorPromise","RouterLink","tabIndexAttribute","isAnchorElement","onChanges","updateHref","setTabIndexIfNotOnNativeEl","newTabIndex","applyAttributeValue","routerLinkInput","routerLink","commandsOrUrlTree","sanitizedValue","RouterLinkActive","cdr","routerEventsSubscription","linkInputChangesSubscription","_isActive","routerLinkActiveOptions","ariaCurrentWhenActive","isActiveChange","subscribeToEachLinkOnChanges","allLinkChanges","isLinkActive","routerLinkActive","hasActiveLinks","isActiveMatchOptions","isActiveCheckFn","_t","PreloadingStrategy","PreloadAllModules","NoPreloading","RouterPreloader","preloadingStrategy","setUpPreloading","processRoutes","injectorForCurrentRoute","injectorForChildren","preloadConfig","loadedChildren$","recursiveLoadChildren$","loadComponent$","ROUTER_SCROLLER","RouterScroller","viewportScroller","scrollEventsSubscription","lastId","lastSource","restoredId","scrollPositionRestoration","anchorScrolling","createScrollEvents","consumeScrollEvents","scheduleScrollEvent","rootRoute","routerFeature","getBootstrapListener","bootstrappedComponentRef","bootstrapDone","BOOTSTRAP_DONE","INITIAL_NAVIGATION","ROUTER_PRELOADER","withPreloading","withViewTransitions","skipInitialTransition","ROUTER_PROVIDERS","useHash","provideInitialNavigation","bindToComponentInputs","enableViewTransitions","ROUTER_INITIALIZER","locationInitialized","ɵpublishExternalGlobalUtil","getLoadedRoutes","reactPropsRegex","is_prop_valid_browser_esm","memoize","isPropValid","sides","createCoords","oppositeSideMap","oppositeAlignmentMap","evaluate","getSide","placement","getAlignment","getOppositeAxis","getAxisLength","getSideAxis","getAlignmentAxis","getOppositeAlignmentPlacement","getOppositePlacement","side","getPaddingObject","expandPaddingObject","rectToClientRect","computeCoordsFromPlacement","rtl","sideAxis","alignmentAxis","alignLength","isVertical","commonX","commonY","commonAlign","coords","computePosition","middleware","validMiddleware","isRTL","rects","getElementRects","statefulPlacement","middlewareData","resetCount","nextX","nextY","initialPlacement","En","detectOverflow","_detectOverflow","_await$platform$isEle","boundary","rootBoundary","elementContext","altBoundary","paddingObject","clippingClientRect","getClippingRect","isElement","contextElement","getDocumentElement","getOffsetParent","offsetScale","getScale","elementClientRect","convertOffsetParentRelativeRectToViewportRelativeRect","getSideOffsets","isAnySideFullyClipped","_convertValueToCoords","mainAxisMulti","crossAxisMulti","mainAxis","crossAxis","hasWindow","isNode","getWindow","_node$ownerDocument","isHTMLElement","ShadowRoot","isOverflowElement","isTableElement","isTopLayer","isContainingBlock","elementOrCss","webkit","isWebKit","perspective","containerType","backdropFilter","willChange","contain","isLastTraversableNode","getNodeScroll","getParentNode","assignedSlot","getNearestOverflowAncestor","getOverflowAncestors","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","frameElement","getFrameElement","visualViewport","getCssDimensions","hasOffset","shouldFallback","unwrapElement","domElement","noOffsets","getVisualOffsets","includeScale","isFixedStrategy","clientRect","visualOffsets","shouldAddVisualOffsets","isFixed","floatingOffsetParent","offsetWin","currentWin","currentIFrame","iframeScale","iframeRect","clientLeft","clientTop","getWindowScrollBarX","leftScroll","getClientRectFromClippingAncestor","clippingAncestor","getViewportRect","visualViewportBased","getDocumentRect","getInnerBoundingClientRect","hasFixedPositionAncestor","stopNode","getClippingElementAncestors","cachedResult","currentContainingBlockComputedStyle","elementIsFixed","currentNodeIsContaining","getRectRelativeToOffsetParent","isOffsetParentAnElement","offsetRect","htmlX","htmlY","htmlRect","isStaticPositioned","getTrueOffsetParent","polyfill","rawOffsetParent","svgOffsetParent","getContainingBlock","topLayer","clippingAncestors","_c","firstClippingAncestor","clippingRect","accRect","getOffsetParentFn","getDimensionsFn","getDimensions","floatingDimensions","autoUpdate","ancestorScroll","ancestorResize","elementResize","layoutShift","animationFrame","referenceEl","ancestors","cleanupIo","observeMove","onMove","io","_io","rootMargin","isFirstUpdate","handleObserve","intersectionRatio","reobserveFrame","firstEntry","_resizeObserver","frameId","prevRefRect","frameLoop","nextRefRect","_resizeObserver2","_middlewareData$offse","_middlewareData$arrow","diffCoords","convertValueToCoords","_x7","alignmentOffset","checkMainAxis","checkCrossAxis","limiter","detectOverflowOptions","mainAxisCoord","crossAxisCoord","maxSide","limitedCoords","Gn","nn","flip","_middlewareData$flip","fallbackPlacements","specifiedFallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment","initialSideAxis","isBasePlacement","getExpandedPlacements","oppositePlacement","hasFallbackAxisSideDirection","getOppositeAxisPlacements","getSideList","isStart","lr","rl","tb","bt","placements","overflows","overflowsData","getAlignmentSides","mainAlignmentSide","_middlewareData$flip2","_overflowsData$filter","nextIndex","nextPlacement","resetPlacement","_overflowsData$filter2","currentSideAxis","_state$middlewareData","_state$middlewareData2","isYAxis","heightSide","widthSide","maximumClippingHeight","maximumClippingWidth","overflowAvailableHeight","overflowAvailableWidth","noShift","availableHeight","availableWidth","xMin","xMax","yMin","yMax","nextDimensions","referenceHiddenOffsets","referenceHidden","escapedOffsets","arrowDimensions","minProp","maxProp","clientProp","arrowOffsetParent","clientSize","centerToReference","largestPossiblePadding","minPadding","maxPadding","min$1","shouldAddOffset","Qn","centerOffset","limitShift","rawOffset","computedOffset","limitMin","limitMax","_middlewareData$offse2","isOriginSide","platformWithCache","computePosition$1","deepEqual","$$typeof","getDPR","roundByDPR","dpr","useLatestRef","useFloating","externalReference","externalFloating","whileElementsMounted","isPositioned","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","referenceRef","setFloating","floatingRef","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","fullData","isMountedRef","ReactDOM","floatingStyles","initialStyles","arrow$1","isRef","arrow$2","offset$1","shift$1","limitShift$1","flip$1","size$1","hide$1","getUAString","uaData","brands","isLayoutViewport","scaleX","scaleY","addVisualOffsets","getWindowScroll","isScrollParent","_getComputedStyle","getCompositeRect","elementOrVirtualElement","offsetParentIsScaled","isElementScaled","getHTMLElementScroll","getLayoutRect","getScrollParent","listScrollParents","_element$ownerDocumen","updatedList","isFirefox","auto","basePlacements","popper","variationPlacements","modifierPhases","visited","requires","requiresIfExists","depModifier","debounce","DEFAULT_OPTIONS","areValidElements","_len","_key","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","orderedModifiers","modifiersData","effectCleanupFns","setOptions","setOptionsAction","cleanupModifierEffects","orderModifiers","mergeByName","merged","runModifierEffects","_ref$options","noopFn","_state$elements","_state$orderedModifie","_state$orderedModifie2","_options","onFirstUpdate","getBasePlacement","getVariation","getMainAxisFromPlacement","computeOffsets","basePlacement","variation","unsetSides","mapToStyles","_Object$assign2","popperRect","gpuAcceleration","adaptive","roundOffsets","_offsets$x","_offsets$y","hasX","hasY","sideX","sideY","heightProp","widthProp","_Object$assign","commonStyles","_ref4","roundOffsetsByDPR","getOppositeVariationPlacement","getRootNode","isSameNode","getClientRectFromMixedType","clippingParent","layoutViewport","winScroll","mainClippingParents","getClippingParents","clippingParents","clipperElement","firstClippingParent","mergePaddingObject","expandToHashMap","hashMap","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","_options$altBoundary","_options$padding","altContext","referenceClientRect","popperOffsets","popperClientRect","overflowOffsets","offsetData","within","mathMax","mathMin","preventedOffsets","createPopper","_options$scroll","_options$resize","resize","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","_options$offset","distanceAndSkiddingToXY","invertDistance","skidding","_data$state$placement","_skip","_options$mainAxis","_options$altAxis","altAxis","checkAltAxis","_options$flipVariatio","flipVariations","allowedAutoPlacements","preferredPlacement","getExpandedFallbackPlacements","computeAutoPlacement","_options$allowedAutoP","allPlacements","allowedPlacements","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","mainVariationSide","altVariationSide","_loop","_i","fittingPlacement","preventOverflow","_options$tether","tether","_options$tetherOffset","tetherOffset","getAltAxis","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","maxLen","arrowElement","arrowRect","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_min","_max","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","withinMaxClamp","_state$modifiersData$","toPaddingObject","axisProp","_options$element","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","E","N","useImperativeHandle","getSnapshot","O","defineProperties","ReactCurrentDispatcher","jsxDEV","$e42e1063c40fb3ef$export$b9ecd428b558ff10","originalEventHandler","ourEventHandler","checkForDefaultPrevented","$409067139f391064$var$COLLAPSIBLE_NAME","$409067139f391064$var$createCollapsibleContext","$409067139f391064$export$952b32dcbe73087a","$73KQ4$createContextScope","$409067139f391064$var$CollapsibleProvider","$409067139f391064$var$useCollapsibleContext","$409067139f391064$export$6eb0f7ddcda6131f","$73KQ4$forwardRef","__scopeCollapsible","collapsibleProps","$73KQ4$useControllableState","$73KQ4$createElement","$73KQ4$useId","$73KQ4$useCallback","$73KQ4$Primitive","$73KQ4$babelruntimehelpersesmextends","$409067139f391064$var$getState","$409067139f391064$export$c135dce7b15bbbdc","$73KQ4$composeEventHandlers","$409067139f391064$var$CONTENT_NAME","$409067139f391064$export$aadde00976f34151","$73KQ4$Presence","$409067139f391064$var$CollapsibleContentImpl","setIsPresent","$73KQ4$useState","$73KQ4$useRef","$73KQ4$useComposedRefs","heightRef","widthRef","isMountAnimationPreventedRef","originalStylesRef","$73KQ4$useEffect","$73KQ4$useLayoutEffect","transitionDuration","animationName","$409067139f391064$export$be92b6f5f03c0fe9","$409067139f391064$export$41fb9f06171c75f4","$409067139f391064$export$7c6e2c02157bb7d2","$1bf158f521e1b1b4$var$ACCORDION_NAME","$1bf158f521e1b1b4$var$ACCORDION_KEYS","$1bf158f521e1b1b4$var$Collection","$1bf158f521e1b1b4$var$useCollection","$1bf158f521e1b1b4$var$createCollectionScope","$3DjNB$createCollection","$1bf158f521e1b1b4$var$createAccordionContext","$1bf158f521e1b1b4$export$9748edc328a73be1","$3DjNB$createContextScope","$3DjNB$createCollapsibleScope","$1bf158f521e1b1b4$var$useCollapsibleScope","$1bf158f521e1b1b4$export$a766cd26d0d69044","$3DjNB$react","accordionProps","singleProps","multipleProps","__scopeAccordion","$1bf158f521e1b1b4$var$AccordionImplMultiple","$3DjNB$babelruntimehelpersesmextends","$1bf158f521e1b1b4$var$AccordionImplSingle","propTypes","$1bf158f521e1b1b4$var$AccordionValueProvider","$1bf158f521e1b1b4$var$useAccordionValueContext","$1bf158f521e1b1b4$var$AccordionCollapsibleProvider","$1bf158f521e1b1b4$var$useAccordionCollapsibleContext","collapsible","valueProp","accordionSingleProps","$3DjNB$useControllableState","onItemOpen","onItemClose","$1bf158f521e1b1b4$var$AccordionImpl","accordionMultipleProps","handleItemOpen","itemValue","handleItemClose","$1bf158f521e1b1b4$var$AccordionImplProvider","$1bf158f521e1b1b4$var$useAccordionContext","accordionRef","$3DjNB$useComposedRefs","getItems","isDirectionLTR","$3DjNB$useDirection","$3DjNB$composeEventHandlers","_triggerCollection$cl","triggerCollection","_item$ref$current","triggerCount","moveNext","homeIndex","movePrev","$3DjNB$Primitive","$1bf158f521e1b1b4$var$ITEM_NAME","$1bf158f521e1b1b4$var$AccordionItemProvider","$1bf158f521e1b1b4$var$useAccordionItemContext","$1bf158f521e1b1b4$var$TRIGGER_NAME","$1bf158f521e1b1b4$var$getState","$1bf158f521e1b1b4$export$be92b6f5f03c0fe9","$1bf158f521e1b1b4$export$6d08773d2e66f8f2","accordionItemProps","accordionContext","valueContext","collapsibleScope","triggerId","$3DjNB$useId","open1","$3DjNB$Root","$1bf158f521e1b1b4$export$8b251419efc915eb","headerProps","itemContext","$1bf158f521e1b1b4$export$41fb9f06171c75f4","collapsibleContext","ItemSlot","$3DjNB$Trigger","$1bf158f521e1b1b4$export$7c6e2c02157bb7d2","$3DjNB$Content","$905f4ae918aab1aa$var$createAlertDialogContext","$905f4ae918aab1aa$export$b8891880751c2c5b","$4k4D0$createContextScope","$4k4D0$createDialogScope","$905f4ae918aab1aa$var$useDialogScope","$905f4ae918aab1aa$export$6edd7a623ef0f40b","$4k4D0$forwardRef","__scopeAlertDialog","dialogScope","$4k4D0$createElement","$4k4D0$Trigger","$4k4D0$babelruntimehelpersesmextends","$905f4ae918aab1aa$export$a707a4895ce23256","$4k4D0$Overlay","$905f4ae918aab1aa$var$CONTENT_NAME","$905f4ae918aab1aa$var$AlertDialogContentProvider","$905f4ae918aab1aa$var$useAlertDialogContentContext","$905f4ae918aab1aa$export$94e6af45f0af4efd","$4k4D0$useRef","$4k4D0$useComposedRefs","cancelRef","$4k4D0$WarningProvider","$905f4ae918aab1aa$var$TITLE_NAME","$4k4D0$Content","$4k4D0$composeEventHandlers","_cancelRef$current","preventScroll","$4k4D0$Slottable","$905f4ae918aab1aa$export$225e0da62d314b7","$4k4D0$Title","$905f4ae918aab1aa$export$a23b55cde55ad9a5","$4k4D0$Description","$905f4ae918aab1aa$export$be92b6f5f03c0fe9","alertDialogProps","$4k4D0$Root","$905f4ae918aab1aa$export$41fb9f06171c75f4","$905f4ae918aab1aa$export$602eac185826482c","portalProps","$4k4D0$Portal","$905f4ae918aab1aa$export$c6fdb837b070b4ff","$905f4ae918aab1aa$export$7c6e2c02157bb7d2","$905f4ae918aab1aa$export$e19cd5f9376f8cee","actionProps","$4k4D0$Close","$905f4ae918aab1aa$export$848c9b7ead0df967","cancelProps","$905f4ae918aab1aa$export$f99233281efd08a0","$905f4ae918aab1aa$export$393edc798c47379d","$c1b5f66aac50e106$export$be92b6f5f03c0fe9","$8D4cD$forwardRef","aspectRatioProps","$8D4cD$createElement","$8D4cD$Primitive","$8D4cD$babelruntimehelpersesmextends","$cddcb0b647441e34$var$AVATAR_NAME","$cddcb0b647441e34$var$createAvatarContext","$cddcb0b647441e34$export$90370d16b488820f","$8NyvN$createContextScope","$cddcb0b647441e34$var$AvatarProvider","$cddcb0b647441e34$var$useAvatarContext","$cddcb0b647441e34$export$be92b6f5f03c0fe9","$8NyvN$forwardRef","$8NyvN$useState","$8NyvN$createElement","$8NyvN$Primitive","$8NyvN$babelruntimehelpersesmextends","$cddcb0b647441e34$export$3e431a229df88919","$cddcb0b647441e34$var$useImageLoadingStatus","$8NyvN$useLayoutEffect","$8NyvN$useCallbackRef","$cddcb0b647441e34$export$fb8d7f40caaeea67","$8NyvN$useEffect","$e02a7d9cb1dc128c$export$c74125a8e3af6bb2","PROVIDER_NAME","createCollectionContext","createCollectionScope","$6vYhU$createContextScope","CollectionProviderImpl","useCollectionContext","collectionRef","itemMap","COLLECTION_SLOT_NAME","ITEM_SLOT_NAME","ITEM_DATA_ATTR","$6vYhU$react","$6vYhU$useComposedRefs","$6vYhU$Slot","itemData","useCollection","collectionNode","orderedNodes","createCollection","CollectionProvider","CollectionSlot","CollectionItemSlot","Y","$6ed0406888f73fc4$export$43e446d32b3d21af","$6ed0406888f73fc4$var$setRef","$6ed0406888f73fc4$export$c7b2cbe3552a0d05","$3vqmr$useCallback","setRef","$c512c27ab02ef895$export$fd42f52fd3ae1109","rootComponentName","defaultContext","$3bkAK$createContext","$3bkAK$useMemo","$3bkAK$createElement","consumerName","$3bkAK$useContext","$c512c27ab02ef895$export$50c7b4e9d9f19c1","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","BaseContext","$c512c27ab02ef895$var$composeContextScopes","baseScope","createScope1","scopeHooks","useScope","overrideScopes","nextScopes1","nextScopes","createContext2","useContext2","createContext3","composeContextScopes","createScope2","nextScopes2","$5d3850c4d0b4e6c7$var$DIALOG_NAME","$5d3850c4d0b4e6c7$var$createDialogContext","$5d3850c4d0b4e6c7$export$cc702773b8ea3e41","$67UHm$createContextScope","$5d3850c4d0b4e6c7$var$DialogProvider","$5d3850c4d0b4e6c7$var$useDialogContext","$5d3850c4d0b4e6c7$export$2e1e1122cf0cba88","$67UHm$forwardRef","$67UHm$useComposedRefs","$67UHm$createElement","$67UHm$Primitive","$67UHm$babelruntimehelpersesmextends","$5d3850c4d0b4e6c7$var$getState","$67UHm$composeEventHandlers","$5d3850c4d0b4e6c7$var$PORTAL_NAME","$5d3850c4d0b4e6c7$var$PortalProvider","$5d3850c4d0b4e6c7$var$usePortalContext","$5d3850c4d0b4e6c7$var$OVERLAY_NAME","$5d3850c4d0b4e6c7$export$bd1d06c79be19e17","$67UHm$Presence","$5d3850c4d0b4e6c7$var$DialogOverlayImpl","$67UHm$RemoveScroll","$67UHm$Slot","$5d3850c4d0b4e6c7$var$CONTENT_NAME","$5d3850c4d0b4e6c7$export$b6d9565de1e068cf","$5d3850c4d0b4e6c7$var$DialogContentModal","$5d3850c4d0b4e6c7$var$DialogContentNonModal","$67UHm$useRef","$67UHm$useEffect","$67UHm$hideOthers","$5d3850c4d0b4e6c7$var$DialogContentImpl","_context$triggerRef$c","_props$onCloseAutoFoc","_context$triggerRef$c2","_props$onInteractOuts","_context$triggerRef$c3","$67UHm$useFocusGuards","$67UHm$Fragment","$67UHm$FocusScope","$67UHm$DismissableLayer","$5d3850c4d0b4e6c7$var$TITLE_NAME","$5d3850c4d0b4e6c7$export$16f7638e4a34b909","$5d3850c4d0b4e6c7$export$94e94c2ec2c954d5","$5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac","$5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME","$5d3850c4d0b4e6c7$export$69b62a49393917d6","$5d3850c4d0b4e6c7$var$useWarningContext","$67UHm$createContext","$5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9","$67UHm$useControllableState","$67UHm$useId","$67UHm$useCallback","$5d3850c4d0b4e6c7$export$41fb9f06171c75f4","$5d3850c4d0b4e6c7$export$602eac185826482c","$67UHm$Children","$67UHm$Portal","$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff","$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2","$5d3850c4d0b4e6c7$export$f99233281efd08a0","$5d3850c4d0b4e6c7$export$393edc798c47379d","$5d3850c4d0b4e6c7$export$f39c2d165cd861fe","$f631663db3294ace$var$DirectionContext","$7Gjcd$createContext","$f631663db3294ace$export$b39126d51d94e6f3","localDir","globalDir","$7Gjcd$useContext","DirectionContext","$5cb92bef7577960e$var$CONTEXT_UPDATE","$5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE","$5cb92bef7577960e$var$FOCUS_OUTSIDE","$5cb92bef7577960e$var$originalBodyPointerEvents","$5cb92bef7577960e$var$DismissableLayerContext","$kqwpH$createContext","layers","layersWithOutsidePointerEventsDisabled","$5cb92bef7577960e$export$177fb62ff3ec1f22","$kqwpH$forwardRef","onEscapeKeyDown","layerProps","$kqwpH$useContext","node1","setNode","$kqwpH$useState","$kqwpH$useComposedRefs","highestLayerWithOutsidePointerEventsDisabled","highestLayerWithOutsidePointerEventsDisabledIndex","isBodyPointerEventsDisabled","isPointerEventsEnabled","pointerDownOutside","$5cb92bef7577960e$var$usePointerDownOutside","handlePointerDownOutside","$kqwpH$useCallbackRef","isPointerInsideReactTreeRef","$kqwpH$useRef","handleClickRef","$kqwpH$useEffect","handlePointerDown","handleAndDispatchPointerDownOutsideEvent","$5cb92bef7577960e$var$handleAndDispatchCustomEvent","eventDetail","discrete","isPointerDownOnBranch","branch","focusOutside","$5cb92bef7577960e$var$useFocusOutside","handleFocusOutside","isFocusInsideReactTreeRef","onFocusCapture","onBlurCapture","$kqwpH$useEscapeKeydown","$addc16e1bbe58fd0$export$3a72a57244d6e765","onEscapeKeyDownProp","$hPSQ5$useCallbackRef","$hPSQ5$useEffect","$5cb92bef7577960e$var$dispatchUpdate","handleUpdate","$kqwpH$createElement","$kqwpH$Primitive","$kqwpH$babelruntimehelpersesmextends","$kqwpH$composeEventHandlers","$kqwpH$dispatchDiscreteCustomEvent","originalBodyPointerEvents","CONTEXT_UPDATE","POINTER_DOWN_OUTSIDE","FOCUS_OUTSIDE","DismissableLayerContext","node2","usePointerDownOutside","handleAndDispatchPointerDownOutsideEvent2","handleAndDispatchCustomEvent","useFocusOutside","useEscapeKeydown","dispatchUpdate","dispatchDiscreteCustomEvent","$3db38b7d1fb3fe6a$var$count","$3db38b7d1fb3fe6a$export$b7ece24a22aeda8c","$1wErz$useEffect","_edgeGuards$","_edgeGuards$2","edgeGuards","insertAdjacentElement","$3db38b7d1fb3fe6a$var$createFocusGuard","createFocusGuard","$d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT","$d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT","$d3863c46a17e8a28$var$EVENT_OPTIONS","$d3863c46a17e8a28$export$20e40289641fbbb6","$45QHv$forwardRef","onMountAutoFocusProp","onUnmountAutoFocusProp","scopeProps","container1","setContainer","$45QHv$useState","$45QHv$useCallbackRef","lastFocusedElementRef","$45QHv$useRef","$45QHv$useComposedRefs","focusScope","resume","$45QHv$useEffect","handleFocusIn","$d3863c46a17e8a28$var$focus","handleFocusOut","handleMutations","mutations","mutation","mutationObserver","$d3863c46a17e8a28$var$focusScopesStack","previouslyFocusedElement","mountEvent","$d3863c46a17e8a28$var$focusFirst","candidates","$d3863c46a17e8a28$var$removeLinks","$d3863c46a17e8a28$var$getTabbableCandidates","unmountEvent","$45QHv$useCallback","isTabKey","focusedElement","$d3863c46a17e8a28$var$getTabbableEdges","$d3863c46a17e8a28$var$findVisible","$45QHv$createElement","$45QHv$Primitive","$45QHv$babelruntimehelpersesmextends","isHiddenInput","$d3863c46a17e8a28$var$isHidden","upTo","visibility","$d3863c46a17e8a28$var$isSelectableInput","$d3863c46a17e8a28$var$createFocusScopesStack","activeFocusScope","$d3863c46a17e8a28$var$arrayRemove","_stack$","updatedArray","AUTOFOCUS_ON_MOUNT","AUTOFOCUS_ON_UNMOUNT","EVENT_OPTIONS","handleFocusIn2","handleFocusOut2","handleMutations2","focusScopesStack","focusFirst","removeLinks","getTabbableCandidates","container2","getTabbableEdges","findVisible","isHidden","isSelectableInput","createFocusScopesStack","arrayRemove","$1746a345f3d73bb7$var$useReactId","$2AODx$react","$1746a345f3d73bb7$var$count","$1746a345f3d73bb7$export$f680877a34711e37","deterministicId","$2AODx$useLayoutEffect","reactId","useReactId","$cb5cc270b50c6fcd$var$POPOVER_NAME","$cb5cc270b50c6fcd$var$createPopoverContext","$cb5cc270b50c6fcd$export$c8393c9e73286932","$am6gm$createContextScope","$am6gm$createPopperScope","$cb5cc270b50c6fcd$var$usePopperScope","$cb5cc270b50c6fcd$var$PopoverProvider","$cb5cc270b50c6fcd$var$usePopoverContext","$cb5cc270b50c6fcd$export$7dacb05d26466c3","$am6gm$forwardRef","__scopePopover","popperScope","$am6gm$useComposedRefs","$am6gm$createElement","$am6gm$Primitive","$am6gm$babelruntimehelpersesmextends","$cb5cc270b50c6fcd$var$getState","$am6gm$composeEventHandlers","hasCustomAnchor","$am6gm$Anchor","$cb5cc270b50c6fcd$var$PORTAL_NAME","$cb5cc270b50c6fcd$var$PortalProvider","$cb5cc270b50c6fcd$var$usePortalContext","$cb5cc270b50c6fcd$var$CONTENT_NAME","$cb5cc270b50c6fcd$export$d7e1f420b25549ff","$am6gm$Presence","$cb5cc270b50c6fcd$var$PopoverContentModal","$cb5cc270b50c6fcd$var$PopoverContentNonModal","$am6gm$useRef","isRightClickOutsideRef","$am6gm$useEffect","$am6gm$hideOthers","$am6gm$RemoveScroll","$am6gm$Slot","$cb5cc270b50c6fcd$var$PopoverContentImpl","isRightClick","$am6gm$useFocusGuards","$am6gm$FocusScope","$am6gm$DismissableLayer","$am6gm$Content","$cb5cc270b50c6fcd$export$be92b6f5f03c0fe9","setHasCustomAnchor","$am6gm$useState","$am6gm$useControllableState","$am6gm$Root","$am6gm$useId","$am6gm$useCallback","onCustomAnchorAdd","onCustomAnchorRemove","$cb5cc270b50c6fcd$export$41fb9f06171c75f4","$cb5cc270b50c6fcd$export$602eac185826482c","$am6gm$Portal","$cb5cc270b50c6fcd$export$7c6e2c02157bb7d2","$7e8f5cd07187803e$export$be92b6f5f03c0fe9","$jbnEx$forwardRef","arrowProps","$jbnEx$createElement","$jbnEx$Primitive","$jbnEx$babelruntimehelpersesmextends","preserveAspectRatio","points","$cf1ac5d9fe0e8206$var$POPPER_NAME","$cf1ac5d9fe0e8206$var$createPopperContext","$cf1ac5d9fe0e8206$export$722aac194ae923","$kY93V$createContextScope","$cf1ac5d9fe0e8206$var$PopperProvider","$cf1ac5d9fe0e8206$var$usePopperContext","$cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d","$kY93V$forwardRef","__scopePopper","virtualRef","anchorProps","$kY93V$useRef","$kY93V$useComposedRefs","$kY93V$useEffect","onAnchorChange","$kY93V$createElement","$kY93V$Primitive","$kY93V$babelruntimehelpersesmextends","$cf1ac5d9fe0e8206$var$CONTENT_NAME","$cf1ac5d9fe0e8206$var$PopperContentProvider","$cf1ac5d9fe0e8206$var$useContentContext","$cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc","_arrowSize$width","_arrowSize$height","_middlewareData$arrow2","_middlewareData$arrow3","_middlewareData$trans","_middlewareData$trans2","_middlewareData$hide","sideOffset","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","collisionPaddingProp","sticky","hideWhenDetached","updatePositionStrategy","onPlaced","$kY93V$useState","setArrow","arrowSize","$kY93V$useSize","arrowWidth","arrowHeight","desiredPlacement","hasExplicitBoundaries","$cf1ac5d9fe0e8206$var$isNotNull","$kY93V$useFloating","$kY93V$autoUpdate","$kY93V$offset","$kY93V$shift","$kY93V$limitShift","$kY93V$flip","$kY93V$size","anchorWidth","anchorHeight","contentStyle","$kY93V$arrow","$cf1ac5d9fe0e8206$var$transformOrigin","$kY93V$hide","placedSide","placedAlign","$cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement","handlePlaced","$kY93V$useCallbackRef","$kY93V$useLayoutEffect","arrowX","arrowY","cannotCenterArrow","contentZIndex","setContentZIndex","onArrowChange","shouldHideArrow","$cf1ac5d9fe0e8206$var$OPPOSITE_SIDE","_middlewareData$arrow4","_middlewareData$arrow5","_middlewareData$arrow6","_middlewareData$arrow7","_middlewareData$arrow8","isArrowHidden","noArrowAlign","arrowXCenter","arrowYCenter","$cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9","setAnchor","$cf1ac5d9fe0e8206$export$b688253958b8dfe7","$cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2","$cf1ac5d9fe0e8206$export$21b07c8f274aebd5","contentContext","baseSide","Mt","$kY93V$Root","$f1701beae083dbae$export$602eac185826482c","$7SXl2$forwardRef","_globalThis$document","$7SXl2$reactdom","$7SXl2$createElement","$7SXl2$Primitive","$7SXl2$babelruntimehelpersesmextends","containerProp","mounted","setMounted","$921a889cee6df7e8$export$99c2b779aa4e8b8b","presence","$921a889cee6df7e8$var$usePresence","$iqq3r$useState","stylesRef","$iqq3r$useRef","prevPresentRef","prevAnimationNameRef","$fe963b355347cc68$export$3e6543de14f8614f","$iqq3r$useReducer","UNMOUNT","ANIMATION_OUT","unmountSuspended","MOUNT","ANIMATION_END","unmounted","$iqq3r$useEffect","currentAnimationName","$921a889cee6df7e8$var$getAnimationName","$iqq3r$useLayoutEffect","wasPresent","prevAnimationName","handleAnimationEnd","isCurrentAnimation","$iqq3r$flushSync","handleAnimationStart","$iqq3r$useCallback","$iqq3r$Children","only","$iqq3r$useComposedRefs","$iqq3r$cloneElement","usePresence","getAnimationName","getElementRef","mayWarn","isReactWarning","$8927f6f2acc4f386$export$250ffa63cdc0d034","primitive","$4q5Fq$forwardRef","primitiveProps","Comp","$4q5Fq$Slot","$4q5Fq$useEffect","$4q5Fq$createElement","$4q5Fq$babelruntimehelpersesmextends","$8927f6f2acc4f386$export$6d1a0317bde7de7f","$4q5Fq$flushSync","$d7bdfb9eb0fdf311$var$ENTRY_FOCUS","$d7bdfb9eb0fdf311$var$EVENT_OPTIONS","$d7bdfb9eb0fdf311$var$GROUP_NAME","$d7bdfb9eb0fdf311$var$Collection","$d7bdfb9eb0fdf311$var$useCollection","$d7bdfb9eb0fdf311$var$createCollectionScope","$98Iye$createCollection","$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext","$d7bdfb9eb0fdf311$export$c7109489551a4f4","$98Iye$createContextScope","$d7bdfb9eb0fdf311$var$RovingFocusProvider","$d7bdfb9eb0fdf311$var$useRovingFocusContext","$d7bdfb9eb0fdf311$export$8699f7c8af148338","$98Iye$forwardRef","$98Iye$createElement","__scopeRovingFocusGroup","$d7bdfb9eb0fdf311$var$RovingFocusGroupImpl","$98Iye$babelruntimehelpersesmextends","currentTabStopId","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","groupProps","$98Iye$useRef","$98Iye$useComposedRefs","$98Iye$useDirection","setCurrentTabStopId","$98Iye$useControllableState","isTabbingBackOut","setIsTabbingBackOut","$98Iye$useState","handleEntryFocus","$98Iye$useCallbackRef","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","$98Iye$useEffect","onItemFocus","$98Iye$useCallback","tabStopId","onItemShiftTab","onFocusableItemAdd","prevCount","onFocusableItemRemove","$98Iye$Primitive","$98Iye$composeEventHandlers","isKeyboardFocus","entryFocusEvent","focusable","$d7bdfb9eb0fdf311$var$focusFirst","$d7bdfb9eb0fdf311$export$ab9df7c53fe8454","autoId","$98Iye$useId","isCurrentTabStop","focusIntent","$d7bdfb9eb0fdf311$var$getFocusIntent","$d7bdfb9eb0fdf311$var$getDirectionAwareKey","$d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT","candidateNodes","$d7bdfb9eb0fdf311$var$wrapArray","PageUp","PageDown","PREVIOUSLY_FOCUSED_ELEMENT","$d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9","$d7bdfb9eb0fdf311$export$6d08773d2e66f8f2","ENTRY_FOCUS","GROUP_NAME","Collection","createRovingFocusGroupContext","createRovingFocusGroupScope","RovingFocusProvider","useRovingFocusContext","RovingFocusGroupImpl","preventScrollOnEntryFocus","ITEM_NAME","RovingFocusGroupItem","getFocusIntent","getDirectionAwareKey","MAP_KEY_TO_FOCUS_INTENT","wrapArray","$ae6933e535247d3d$export$7d15b64cf5a3a4c4","$cc7e05a45900e73f$var$OPEN_KEYS","$cc7e05a45900e73f$var$SELECTION_KEYS","$cc7e05a45900e73f$var$SELECT_NAME","$cc7e05a45900e73f$var$Collection","$cc7e05a45900e73f$var$useCollection","$cc7e05a45900e73f$var$createCollectionScope","$01b9c$createCollection","$cc7e05a45900e73f$var$createSelectContext","$cc7e05a45900e73f$export$286727a75dc039bd","$01b9c$createContextScope","$01b9c$createPopperScope","$cc7e05a45900e73f$var$usePopperScope","$cc7e05a45900e73f$var$SelectProvider","$cc7e05a45900e73f$var$useSelectContext","$cc7e05a45900e73f$var$SelectNativeOptionsProvider","$cc7e05a45900e73f$var$useSelectNativeOptionsContext","$cc7e05a45900e73f$export$3ac1e88a1c0b9f1","$01b9c$forwardRef","__scopeSelect","$01b9c$useComposedRefs","onTriggerChange","searchRef","handleTypeaheadSearch","resetTypeahead","$cc7e05a45900e73f$var$useTypeaheadSearch","enabledItems","currentItem","nextItem","$cc7e05a45900e73f$var$findNextItem","$01b9c$createElement","$01b9c$Anchor","$01b9c$babelruntimehelpersesmextends","$01b9c$Primitive","$cc7e05a45900e73f$var$shouldShowPlaceholder","$01b9c$composeEventHandlers","triggerPointerDownPosRef","isTypingAhead","$cc7e05a45900e73f$export$e288731fd71264f0","valueProps","onValueNodeHasChildrenChange","onValueNodeChange","$01b9c$useLayoutEffect","$01b9c$Fragment","$cc7e05a45900e73f$export$99b400cabb58c515","iconProps","$cc7e05a45900e73f$var$CONTENT_NAME","$cc7e05a45900e73f$export$c973a4b3cb86a03d","setFragment","$01b9c$useState","frag","$01b9c$createPortal","$cc7e05a45900e73f$var$SelectContentProvider","$cc7e05a45900e73f$var$SelectContentImpl","$cc7e05a45900e73f$var$CONTENT_MARGIN","$cc7e05a45900e73f$var$useSelectContentContext","setSelectedItem","setSelectedItemText","setIsPositioned","firstValidItemFoundRef","$01b9c$useRef","$01b9c$useEffect","$01b9c$hideOthers","$01b9c$useFocusGuards","$01b9c$useCallback","firstItem","restItems","focusSelectedItem","pointerMoveDelta","handlePointerMove","_triggerPointerDownPo","_triggerPointerDownPo2","_triggerPointerDownPo3","_triggerPointerDownPo4","handlePointerUp","itemRefCallback","isFirstValidItem","handleItemLeave","itemTextRefCallback","SelectPosition","$cc7e05a45900e73f$var$SelectPopperPosition","$cc7e05a45900e73f$var$SelectItemAlignedPosition","popperContentProps","onItemLeave","$01b9c$RemoveScroll","$01b9c$Slot","$01b9c$FocusScope","_context$trigger","$01b9c$DismissableLayer","flexDirection","isModifierKey","currentElement","popperProps","contentWrapper","setContentWrapper","shouldExpandOnScrollRef","shouldRepositionRef","valueNode","triggerRect","valueNodeRect","itemTextRect","itemTextOffset","leftDelta","minContentWidth","contentWidth","rightEdge","clampedLeft","$01b9c$clamp","rightDelta","leftEdge","clampedRight","itemsHeight","contentStyles","contentBorderTopWidth","contentPaddingTop","contentBorderBottomWidth","borderBottomWidth","fullContentHeight","minContentHeight","viewportStyles","viewportPaddingTop","viewportPaddingBottom","topEdgeToTriggerMiddle","triggerMiddleToBottomEdge","selectedItemHalfHeight","contentTopToItemMiddle","itemMiddleToContentBottom","isLastItem","viewportOffsetBottom","isFirstItem","handleScrollButtonChange","$cc7e05a45900e73f$var$SelectViewportProvider","onScrollButtonChange","$01b9c$Content","$cc7e05a45900e73f$var$useSelectViewportContext","$cc7e05a45900e73f$var$VIEWPORT_NAME","$cc7e05a45900e73f$export$9ed6e7b40248d36d","viewportContext","prevScrollTopRef","flex","scrolledBy","cssMinHeight","cssHeight","nextHeight","clampedNextHeight","heightDiff","justifyContent","$cc7e05a45900e73f$var$SelectGroupContextProvider","$cc7e05a45900e73f$var$useSelectGroupContext","$cc7e05a45900e73f$export$ee25a334c55de1f4","groupId","$01b9c$useId","$cc7e05a45900e73f$export$f67338d29bd972f8","groupContext","$cc7e05a45900e73f$var$ITEM_NAME","$cc7e05a45900e73f$var$SelectItemContextProvider","$cc7e05a45900e73f$var$useSelectItemContext","$cc7e05a45900e73f$export$13ef48a934230896","textValueProp","setTextValue","setIsFocused","_contentContext$itemR","textId","handleSelect","onItemTextChange","prevTextValue","_node$textContent","_contentContext$onIte","_contentContext$onIte2","_contentContext$searc","$cc7e05a45900e73f$var$ITEM_TEXT_NAME","$cc7e05a45900e73f$export$3572fb0fb821ff49","itemTextProps","nativeOptionsContext","itemTextNode","setItemTextNode","_contentContext$itemT","nativeOption","$01b9c$useMemo","onNativeOptionAdd","onNativeOptionRemove","valueNodeHasChildren","$cc7e05a45900e73f$export$6b9198de19accfe6","itemIndicatorProps","$cc7e05a45900e73f$var$SCROLL_UP_BUTTON_NAME","$cc7e05a45900e73f$export$d8117927658af6d7","canScrollUp1","setCanScrollUp","canScrollUp","$cc7e05a45900e73f$var$SelectScrollButtonImpl","onAutoScroll","$cc7e05a45900e73f$var$SCROLL_DOWN_BUTTON_NAME","$cc7e05a45900e73f$export$ff951e476c12189","canScrollDown1","setCanScrollDown","maxScroll","canScrollDown","scrollIndicatorProps","autoScrollTimerRef","clearAutoScrollTimer","_activeItem$ref$curre","activeItem","flexShrink","_contentContext$onIte3","$cc7e05a45900e73f$export$eba4b1df07cb1d3","separatorProps","$cc7e05a45900e73f$var$BubbleSelect","selectProps","$01b9c$usePrevious","selectProto","HTMLSelectElement","$01b9c$VisuallyHidden","onSearchChange","handleSearchChange","$01b9c$useCallbackRef","timerRef","updateSearch","normalizedSearch","currentItemIndex","wrappedItems","$cc7e05a45900e73f$var$wrapArray","$cc7e05a45900e73f$export$be92b6f5f03c0fe9","setTrigger","setValueNode","setValueNodeHasChildren","$01b9c$useDirection","$01b9c$useControllableState","isFormControl","nativeOptionsSet","setNativeOptionsSet","nativeSelectKey","$01b9c$Root","optionsSet","$cc7e05a45900e73f$export$41fb9f06171c75f4","$cc7e05a45900e73f$export$4c8d1a57a761ef94","$cc7e05a45900e73f$export$f04a61298a47a40f","$cc7e05a45900e73f$export$602eac185826482c","$01b9c$Portal","$cc7e05a45900e73f$export$7c6e2c02157bb7d2","$cc7e05a45900e73f$export$d5c6c08dc2d3ca7","$cc7e05a45900e73f$export$eb2fcfdbd7ba97d4","$cc7e05a45900e73f$export$b04be29aa201d4f5","$cc7e05a45900e73f$export$6d08773d2e66f8f2","$cc7e05a45900e73f$export$d6e5bf9c43ea9319","$cc7e05a45900e73f$export$c3468e2714d175fa","$cc7e05a45900e73f$export$2f60d3ec9ad468f2","$cc7e05a45900e73f$export$bf1aedc3039c8d63","$cc7e05a45900e73f$export$1ff3c3f08ae963c0","$5e63c961fc1ce211$export$8c6ed5c666ac1360","$9IrjX$forwardRef","slotProps","childrenArray","$9IrjX$Children","slottable","$5e63c961fc1ce211$var$isSlottable","$9IrjX$isValidElement","$9IrjX$createElement","$5e63c961fc1ce211$var$SlotClone","$9IrjX$babelruntimehelpersesmextends","$9IrjX$cloneElement","$5e63c961fc1ce211$var$mergeProps","$9IrjX$composeRefs","$5e63c961fc1ce211$export$d9f1ccf0bdb05d45","$9IrjX$Fragment","childProps","overrideProps","slotPropValue","childPropValue","isSlottable","SlotClone","childrenRef","mergeProps","Slottable","$6be4966fd9bbc698$var$SWITCH_NAME","$6be4966fd9bbc698$var$createSwitchContext","$6be4966fd9bbc698$export$cf7f5f17f69cbd43","$irPIl$createContextScope","$6be4966fd9bbc698$var$SwitchProvider","$6be4966fd9bbc698$var$useSwitchContext","$6be4966fd9bbc698$export$b5d5cf8927ab7262","$irPIl$forwardRef","__scopeSwitch","checkedProp","onCheckedChange","switchProps","setButton","$irPIl$useState","$irPIl$useComposedRefs","hasConsumerStoppedPropagationRef","$irPIl$useRef","setChecked","$irPIl$useControllableState","$irPIl$createElement","$irPIl$Primitive","$irPIl$babelruntimehelpersesmextends","$6be4966fd9bbc698$var$getState","$irPIl$composeEventHandlers","prevChecked","isPropagationStopped","$6be4966fd9bbc698$var$BubbleInput","$irPIl$usePrevious","controlSize","$irPIl$useSize","$irPIl$useEffect","inputProto","$6be4966fd9bbc698$export$be92b6f5f03c0fe9","$6be4966fd9bbc698$export$6521433ed15a34db","$69cb30bb0017df05$var$TABS_NAME","$69cb30bb0017df05$var$createTabsContext","$69cb30bb0017df05$export$355f5bd209d7b13a","$1IHzk$createContextScope","$1IHzk$createRovingFocusGroupScope","$69cb30bb0017df05$var$useRovingFocusGroupScope","$69cb30bb0017df05$var$TabsProvider","$69cb30bb0017df05$var$useTabsContext","$69cb30bb0017df05$var$makeTriggerId","baseId","$69cb30bb0017df05$var$makeContentId","$69cb30bb0017df05$export$be92b6f5f03c0fe9","$1IHzk$forwardRef","__scopeTabs","activationMode","tabsProps","$1IHzk$useDirection","$1IHzk$useControllableState","$1IHzk$createElement","$1IHzk$useId","$1IHzk$Primitive","$1IHzk$babelruntimehelpersesmextends","$69cb30bb0017df05$export$54c2e3dc7acea9f5","rovingFocusGroupScope","$1IHzk$Root","$69cb30bb0017df05$export$41fb9f06171c75f4","$1IHzk$Item","$1IHzk$composeEventHandlers","isAutomaticActivation","$69cb30bb0017df05$export$7c6e2c02157bb7d2","$1IHzk$useRef","$1IHzk$useEffect","$1IHzk$Presence","animationDuration","$a093c7e1ec25a057$var$createTooltipContext","$a093c7e1ec25a057$export$1c540a2224f0d865","$8wepK$createContextScope","$8wepK$createPopperScope","$a093c7e1ec25a057$var$usePopperScope","$a093c7e1ec25a057$var$DEFAULT_DELAY_DURATION","$a093c7e1ec25a057$var$TOOLTIP_OPEN","$a093c7e1ec25a057$var$TooltipProviderContextProvider","$a093c7e1ec25a057$var$useTooltipProviderContext","$a093c7e1ec25a057$var$TOOLTIP_NAME","$a093c7e1ec25a057$var$TooltipContextProvider","$a093c7e1ec25a057$var$useTooltipContext","$a093c7e1ec25a057$var$TRIGGER_NAME","$a093c7e1ec25a057$export$8c610744efcf8a1d","$8wepK$forwardRef","__scopeTooltip","providerContext","$8wepK$useRef","$8wepK$useComposedRefs","isPointerDownRef","hasPointerMoveOpenedRef","$8wepK$useCallback","$8wepK$useEffect","$8wepK$createElement","$8wepK$Anchor","$8wepK$babelruntimehelpersesmextends","$8wepK$Primitive","stateAttribute","$8wepK$composeEventHandlers","isPointerInTransitRef","onTriggerEnter","onTriggerLeave","$a093c7e1ec25a057$var$PORTAL_NAME","$a093c7e1ec25a057$var$PortalProvider","$a093c7e1ec25a057$var$usePortalContext","$a093c7e1ec25a057$var$CONTENT_NAME","$a093c7e1ec25a057$export$e9003e2be37ec060","$8wepK$Presence","disableHoverableContent","$a093c7e1ec25a057$var$TooltipContentImpl","$a093c7e1ec25a057$var$TooltipContentHoverable","pointerGraceArea","setPointerGraceArea","$8wepK$useState","onPointerInTransitChange","handleRemoveGraceArea","handleCreateGraceArea","hoverTarget","exitPoint","exitSide","$a093c7e1ec25a057$var$getExitSideFromRect","paddedExitPoints","$a093c7e1ec25a057$var$getPaddedExitPoints","hoverTargetPoints","$a093c7e1ec25a057$var$getPointsFromRect","graceArea","$a093c7e1ec25a057$var$getHull","newPoints","$a093c7e1ec25a057$var$getHullPresorted","upperHull","lowerHull","handleTriggerLeave","handleContentLeave","handleTrackPointerGrace","pointerPosition","hasEnteredTarget","isPointerOutsideGraceArea","$a093c7e1ec25a057$var$isPointInPolygon","polygon","inside","yi","xj","yj","$a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider","$a093c7e1ec25a057$var$useVisuallyHiddenContentContext","isInside","$8wepK$DismissableLayer","$8wepK$Content","$8wepK$Slottable","$8wepK$Root1","$a093c7e1ec25a057$export$2881499e37b75b9a","delayDuration","skipDelayDuration","isOpenDelayed","setIsOpenDelayed","skipDelayTimerRef","skipDelayTimer","inTransit","$a093c7e1ec25a057$export$be92b6f5f03c0fe9","disableHoverableContentProp","delayDurationProp","$8wepK$useId","openTimerRef","wasOpenDelayedRef","$8wepK$useControllableState","$8wepK$useMemo","handleDelayedOpen","$8wepK$Root","$a093c7e1ec25a057$export$41fb9f06171c75f4","$a093c7e1ec25a057$export$602eac185826482c","$8wepK$Portal","$a093c7e1ec25a057$export$7c6e2c02157bb7d2","$a093c7e1ec25a057$export$21b07c8f274aebd5","$8wepK$Arrow","$b1b2314f5f9a1d84$export$25bec8c6f54ee79a","callbackRef","$lwiWj$useRef","$lwiWj$useEffect","$lwiWj$useMemo","_callbackRef$current","$71cd76cc60e0454e$export$6f32135080cb4c3","uncontrolledProp","setUncontrolledProp","$71cd76cc60e0454e$var$useUncontrolledState","uncontrolledState","$bnPw9$useState","prevValueRef","$bnPw9$useRef","$bnPw9$useCallbackRef","$bnPw9$useEffect","$bnPw9$useCallback","nextValue","useUncontrolledState","$9f79659886946c16$export$e5c5a5f917a5871c","$dxlwH$useLayoutEffect","useLayoutEffect2","$010c2913dbd2fe3d$export$5cae361ad82dce8b","$8LvvK$useRef","$8LvvK$useMemo","$db6c3485150b8e66$export$1ab7ae714698c4b8","setSize","$9gyGR$useState","$9gyGR$useLayoutEffect","borderSizeEntry","borderBoxSize","borderSize","inlineSize","blockSize","box","$ea1ef594cf570d83$export$439d29a4e110a164","$kVwnw$forwardRef","$kVwnw$createElement","$kVwnw$Primitive","$kVwnw$babelruntimehelpersesmextends","$ea1ef594cf570d83$export$be92b6f5f03c0fe9","$645f2e67b85a24c9$export$e989c0fffaa6b27a","childElement","$645f2e67b85a24c9$var$isStyleVisible","windowObject","$djhjW$getOwnerWindow","computedDisplay","computedVisibility","$645f2e67b85a24c9$var$isAttributeVisible","$9bf71ea28793e738$var$FocusContext","$cgawC$react","$9bf71ea28793e738$var$RESTORE_FOCUS_EVENT","$9bf71ea28793e738$var$activeScope","$9bf71ea28793e738$export$20e40289641fbbb6","startRef","$cgawC$useRef","endRef","scopeRef","$cgawC$useContext","$cgawC$useMemo","$9bf71ea28793e738$var$TreeNode","$cgawC$useLayoutEffect","$9bf71ea28793e738$export$d06fae2ee68b101e","getTreeNode","$9bf71ea28793e738$var$isAncestorScope","activeNode","addChild","addNode","_startRef_current","$9bf71ea28793e738$var$useActiveScopeTracker","$cgawC$getOwnerDocument","$9bf71ea28793e738$var$isElementInScope","$9bf71ea28793e738$var$isElementInAnyScope","$9bf71ea28793e738$var$useFocusContainment","focusedNode","raf","$9bf71ea28793e738$var$shouldContainFocus","$9bf71ea28793e738$export$2d6ec8fc375ceafa","$9bf71ea28793e738$var$getScopeRoot","nextElement","nextElementSibling","previousElementSibling","$9bf71ea28793e738$var$focusElement","$9bf71ea28793e738$var$isElementInChildScope","$9bf71ea28793e738$var$focusFirstInScope","_focusedNode_current","$9bf71ea28793e738$var$useRestoreFocus","nodeToRestoreRef","nodeToRestore","_nodeToRestoreRef_current","$9bf71ea28793e738$var$shouldRestoreFocus","clonedTree","$9bf71ea28793e738$var$restoreFocusToElement","$9bf71ea28793e738$var$getFirstInScope","$9bf71ea28793e738$var$useAutoFocus","$cgawC$useEffect","traverse","_focusScopeTree_getTreeNode_parent","_focusScopeTree_getTreeNode","_focusScopeTree_getTreeNode_parent_scopeRef","removeTreeNode","focusManager","$9bf71ea28793e738$var$createFocusManagerForScope","focusNext","accept","sentinel","focusPrevious","focusLast","$9bf71ea28793e738$var$focusableElements","$9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR","$9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR","$9bf71ea28793e738$export$1258395f99bf9cbf","scopeRoot","_opts_from","$9bf71ea28793e738$var$Tree","fastMap","addTreeNode","_node_parent","_node_parent_scopeRef","$jlOai$getOwnerDocument","$jlOai$getInteractionModality","lastFocusedElement","$jlOai$runAfterTransition","$jlOai$focusWithoutScrolling","$a1ea59d68270f0dd$export$f8168d8dd8fd66e6","onFocusProp","onBlurProp","$hf0lj$useCallback","onSyntheticFocus","$8a9cb279dc87e130$export$715c682d09d639cc","$hf0lj$getOwnerDocument","$507fabe10e71c6fb$var$currentModality","$507fabe10e71c6fb$var$changeHandlers","$507fabe10e71c6fb$export$d90243b58daecda7","$507fabe10e71c6fb$var$hasEventBeforeFocus","$507fabe10e71c6fb$var$hasBlurredWindowRecently","$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS","Escape","$507fabe10e71c6fb$var$triggerChangeHandlers","$507fabe10e71c6fb$var$handleKeyboardEvent","$507fabe10e71c6fb$var$isValidKey","$28AnR$isMac","$507fabe10e71c6fb$var$handlePointerEvent","$507fabe10e71c6fb$var$handleClickEvent","$28AnR$isVirtualClick","$507fabe10e71c6fb$var$handleFocusEvent","$507fabe10e71c6fb$var$handleWindowBlur","$507fabe10e71c6fb$var$setupGlobalFocusEvents","$28AnR$getOwnerWindow","$28AnR$getOwnerDocument","$507fabe10e71c6fb$var$tearDownWindowFocusTracking","loadListener","$507fabe10e71c6fb$export$b9b3dfddab17db27","$507fabe10e71c6fb$export$630ff653c5ada6a9","$507fabe10e71c6fb$export$8397ddfc504fdb9a","$507fabe10e71c6fb$export$2f1888112f558a7d","$507fabe10e71c6fb$var$nonTextInputTypes","$507fabe10e71c6fb$export$ec71b4b83ac08ec3","$28AnR$useEffect","$507fabe10e71c6fb$var$isKeyboardFocusEvent","isTextInput","_e_target","IHTMLInputElement","IHTMLTextAreaElement","IHTMLElement","IKeyboardEvent","$9ab94262bd0047c7$export$420e68273165f4ec","$3b9Q0$useRef","isFocusWithin","$3b9Q0$useCallback","$8a9cb279dc87e130$export$905e7fc544a71f36","persist","eventPhase","isTrusted","$6dfIe$useRef","$6dfIe$useLayoutEffect","dispatchBlur","$6dfIe$useEffectEvent","$6dfIe$useCallback","onBlurHandler","_stateRef_current_observer","relatedTargetEl","FocusEvent","attributeFilter","$b5e257d569688ac6$var$defaultContext","$b5e257d569688ac6$var$SSRContext","$670gB$react","$b5e257d569688ac6$var$IsSSRContext","$b5e257d569688ac6$var$canUseDOM","$b5e257d569688ac6$var$componentIds","$b5e257d569688ac6$var$useCounter","$670gB$useContext","$670gB$useRef","_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner","_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","currentOwner","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","prevComponentValue","memoizedState","$b5e257d569688ac6$export$619500959fc48b26","$b5e257d569688ac6$var$useModernSSRSafeId","defaultId","didSSR","$670gB$useState","$b5e257d569688ac6$export$535bd6ca7f90a273","$b5e257d569688ac6$var$useLegacySSRSafeId","$b5e257d569688ac6$var$getSnapshot","$b5e257d569688ac6$var$getServerSnapshot","$b5e257d569688ac6$var$subscribe","onStoreChange","useSyncExternalStore","$ff5963eb1fccf552$export$e08e3b67e392101e","$431fbd86ca7dc216$export$b204af158042fbac","_el_ownerDocument","$431fbd86ca7dc216$export$f21a1ffae260145a","$7215afc6de606d6b$var$supportsPreventScroll","$7215afc6de606d6b$var$supportsPreventScrollCached","scrollableElements","$7215afc6de606d6b$var$getScrollableElements","rootScrollingElement","$7215afc6de606d6b$var$restoreScrollPosition","$6a7db85432448f7f$export$60278871457622de","mozInputSource","$c87311424ea30a05$export$a11b0059900ceec8","$6a7db85432448f7f$export$29bf1b5f2c56cf63","pressure","dist_clsx","clsx","$3ef42575df84b30b$export$9d1611c77c2fe928","$bdb11010cef70236$export$cd8c9cb68f842629","$7jXr9$clsx","$c87311424ea30a05$var$testUserAgent","re","_window_navigator_userAgentData","$c87311424ea30a05$var$testPlatform","$c87311424ea30a05$var$cached","$c87311424ea30a05$export$186c6964ca17d99","$c87311424ea30a05$export$fedb369cb70207f1","$c87311424ea30a05$export$e1865c3bedcd822b","$c87311424ea30a05$export$6446a186d09e379e","$bbed8b41f857bcc0$var$transitionsByElement","$bbed8b41f857bcc0$var$transitionCallbacks","$bbed8b41f857bcc0$var$setupGlobalEvents","isTransitionEvent","onTransitionEnd","$bbed8b41f857bcc0$export$24490316f764c430","$lmaYr$useRef","$lmaYr$useCallback","$bdb11010cef70236$var$canUseDOM","$bdb11010cef70236$var$idsUpdaterMap","$eKkEp$useState","nextId","$eKkEp$useRef","$eKkEp$useSSRSafeId","$eKkEp$useCallback","$eKkEp$useEffect","newId","idA","idB","setIdA","setIdB","$bdb11010cef70236$export$b4cc09c592e8fdb8","depArray","resolvedId","setResolvedId","$1dbecbe27a04f9af$export$14d238f342723f25","$fCAlL$useState","$fCAlL$useRef","nextRef","updateId","$HgANd$react","$5c3e21d68f1c4674$var$styles","$5c3e21d68f1c4674$export$439d29a4e110a164","elementType","isFocusable","visuallyHiddenProps","$5c3e21d68f1c4674$export$a966af930f325cab","$7JYt2$useState","$7JYt2$useFocusWithin","combinedStyles","$7JYt2$useMemo","$7JYt2$react","$7JYt2$mergeProps","_extends","Pop","Push","Replace","PopStateEventType","getUrlBasedHistory","createBrowserLocation","globalHistory","usr","createBrowserHref","createPath","invariant","getHistoryState","parsePath","parsedPath","hashIndex","searchIndex","createHref","validateLocation","v5Compat","getIndex","handlePop","createURL","encodeLocation","historyState","DOMException","ResultType","matchRoutes","locationArg","matchRoutesImpl","allowPartial","stripBasename","flattenRoutes","rankRouteBranches","score","compareIndexes","routesMeta","childrenIndex","decodePath","matchRouteBranch","parentsMeta","parentPath","flattenRoute","caseSensitive","joinPaths","computeScore","_route$path","exploded","explodeOptionalSegments","isOptional","restExploded","subpath","paramRe","dynamicSegmentValue","indexRouteValue","emptySegmentValue","staticSegmentValue","splatPenalty","isSplat","initialScore","matchedParams","matchedPathname","remainingPathname","matchPath","pathnameBase","compiledParams","compilePath","regexpSource","paramName","captureGroups","memo","splatValue","fromPathname","toPathname","resolvePathname","normalizeSearch","normalizeHash","relativeSegments","getInvalidPathError","getPathContributingMatches","getResolveToMatches","v7_relativeSplatPath","pathMatches","resolveTo","toArg","routePathnames","locationPathname","isPathRelative","isEmptyPath","routePathnameIndex","toSegments","hasExplicitTrailingSlash","hasCurrentTrailingSlash","AbortedDeferredError","isRouteErrorResponse","validMutationMethodsArr","validRequestMethodsArr","ConvertMessageData","ConvertMessageData2","WebSocketTransport","_WebSocketTransport","onMessage","webSocketModuleProtocol","transferFormat","opened","binaryType","onopen","onmessage","onclose","closeInternal","isCloseEvent","wasClean","errorHandlers","offAll","C","D","AbstractSocketEvents","storedUncalledOnOpenEvents","storedUncalledOnCloseEvents","storedUncalledOnErrorEvents","storedUncalledOnReconnect","storedUncalledOnReconnected","onReconnect","onReconnected","SocketController","_SocketController","controllerContext","reporter","invokes","invoked","httpConnection","communicateReconnect","LOG_TRACE","communicateReconnected","ControllerContext","_ControllerContext","controllers","panicControllers","calmControllers","resyncUncoupledControllers","handleControllerMessage","HandshakeProtocol","_HandshakeProtocol","onPanic","failedHandshakes","pingController","sign","checkInterval","HANDSHAKE_CONTROLLER","handleTick","handlePong","HANDSHAKE_MESSAGE","ReconnectionPolicy","_ReconnectionPolicy","NOOP","reconnectTimer","reconnectAttempts","retryMethod","gracefulShutdown","reconnectAscent","reconnectCap","reconnectInterval","reconnectMaxAttempts","HttpConnection","_HttpConnection","handshakeProtocol","webSocketTransport","connectionState","reconnectionPolicy","onGracefulShutdown","handlePanic","handleOnMessage","handleOnWebSocketTransportClose","openInternal","CloseEvent","invokeReconnectionPolicy","Reporter","noop2","WebSocket","handleGracefulShutDown","createController","controllerName","clearParameters","_HttpError","_HttpOptions","throttle","clients","_send","Axios2","CancelToken","axiosEnhancedErrorAsHttpError","isAxiosError","optionConfiguration","optionCtor","removeClient","getClient","__defProp","__getOwnPropDesc","outgoing","Graph","lookupFn","insertEdge","fromNode","lookupOrInsertNode","toNode","removeNode","edges","currentResolution","Scopes2","INTERNAL_register","__fake__reflection","INTERNAL_setCachedReflection","getResolveScopeRef","REFLECTED_DATA_REGISTRY_CACHE","INTERNAL_getCachedReflection","reflector","cachedReflection","reflectedTokens","newCachedReflectionData","lifetime","naughtyReflection","_Container","singletons","scoped","hotRegistrationRegister","shouldInherit","instanceCounter","getPotentialResolvedDependency","dependencyToken","scanRegistration","scanResolved","hotRegistration","scanRegistrationStrict","unwrapTokenForPrint","lookThroughInheritedScopesToFindResolved","addHotRegistration","clearHotRegistration","clearSingletons","clearScoped","clearInheritedScoped","clearAll","Resolution","_Resolution","dependenciesForEachDependency","dependencyGraph","transients","nodeStack","step_one_createNode","registrations","registration2","newEdge","resolved2","step_two_retrieveArgs","newResolved","depRef","lookupDependencies","historyRef","__decorateClass","GlobalResolutionContext","backwards_compatible__inheritFrom","backwards_compatible__useInheritanceLink","inheritFrom","shouldInheritScopes","globalResolutionCtx","useResolveLifecycle","hasBeenResolved","hasCalledMount","latestParams","boxFn","whenUpdate","whenRepeatedlyMount","printBoxedError","exception","cause","TestBed","mockRegister","lifeTime","clearMocks","logger_1","require","enumerable","DETAILS","LOCALE","WARN","INFO","DEBUG","VERBOSE","printFns","setPrintFn","fns","second","levelEnumToString","printMessage","setLevel","getBitFlag","PRESENTATION_DEBUG_REF","PRESENTATION_DEBUG_HOOK","WeakSet","Presentation2","FixedSizeImpl","changeSet","preValue","toIter","FlowPresentation","unsafeWrite","peekState","overwriteData","ConcurrentPresentation","suspender","createPromise","parseFn","writeBlock","fallbackError","SynchronousPresentation","createFlow","fail","assertDeclared","Emitter","Vec2","getAsObj","registeredId","registerDisposer","callOnceOnInvoke","localUid","HEX_REGEX","createHex","rgb","isDark","lightLevel","normalizeValue","isLight","Retry","byBruteForce","defaultOption","attempts","finishedRequest","proxy","_proxy","resolvedIntoThis","the","againAfter","_proxy2","elements$c","elements$b","elements$a","transformBuilder","AnchorPointConsumer","_AnchorPointConsumer","Events","Update","Notify","Instance","vec2","elementReference","handleWindowEvent","calculatePosition","returnPercentageOfAnchorPointStr","topPercentage","leftPercentage","topPosition","leftPosition","configuration","anchorPointInstance","elements$7","elements$5","applySize","styleAlignItems","styleJustifyContent","styleAlignSelf","styleWrap","styleGrow","styleShrink","styleBasis","alignItems","styleDirection","StyleSheetController","addToRegister","cssStyleSheet","newCSSVariables","styleSheetController","HeadLessStack","halfSpacing","baseStr","parentClassName","childClassName","unwrapFragment","_child$props$classNam","elements$3","styleBox","stylePadding","styleMargin","styleBackground","styleCornerRadius","styleShadow","styleWidth","styleHeight","styleClip","styleAlignment","shadow","_document$body","root_element","styleSheet","ResetCss","createGlobalStyle","ScreenReaderTextElement","ScreenReaderText","elements$1","TextElement","fontFamily","fontSize","lineHeight","textTransform","asElement","h5","h6","Debug2","functionCall","Color2","Timer2","combine","px","Retry2","firstPart","getDefaultParent","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","applyAttributeToOthers","markerName","controlAttribute","correctedTarget","correctTargets","markerCounter","elementsToKeep","elementsToStop","deep","alreadyHidden","counterValue","markerValue","activeParentNode","MetadataStorage","_typeMetadatas","_transformMetadatas","_exposeMetadatas","_excludeMetadatas","_ancestorsMap","addTransformMetadata","addExposeMetadata","addExcludeMetadata","findMetadatas","toClassOnly","toPlainOnly","findExcludeMetadata","findMetadata","getExposedMetadatas","excludeMap","exclude","exposeMap","expose","getExcludedMetadatas","metadataFromTargetMap","metadataFromTarget","metadataFromAncestors","getAncestors","ancestorMetadataMap","metadataFromAncestor","ancestorResult","metadataFromAncestorsTarget","baseClass","effectCar","createSidecarMedium","nothing","parentRef","onScrollCapture","onWheelCapture","onTouchMoveCapture","setCallbacks","forwardProps","removeScrollBar","sideCar","noIsolation","inert","__rest","SideCar","useMergeRefs","containerProps","__assign","lockRef","defaultProps","fullWidth","fullWidthClassName","zeroRight","zeroRightClassName","passiveSupported","nonPassive","locationCouldBeScrolled","elementCouldBeScrolled","getScrollVariables","elementCouldBeVScrolled","elementCouldBeHScrolled","getVScrollVariables","getHScrollVariables","getTouchXY","getDeltaXY","extractRef","generateStyle","idCounter","lockStack","sidecar","exportSidecar","RemoveScrollSideCar","shouldPreventQueue","touchStartRef","activeAxis","styleSingleton","lastProps","allow_1","__spreadArray","shouldCancelEvent","touches","currentAxis","touchStart","moveDirection","canBeScrolledInMainDirection","cancelingAxis","endTarget","sourceDelta","noOverscroll","directionFactor","getDirectionFactor","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","elementScroll","shouldPrevent","_event","sourceEvent","deltaCompare","should","shardNodes","shouldCancel","scrollTouchStart","scrollWheel","scrollTouchMove","inst","RemoveScrollBar","gapMode","ReactRemoveScroll","Combination","Pn","Z","z","fe","te","oe","ae","shouldFilter","F","ye","W","G","V","K","inputId","ce","ariaDisabled","J","Se","H","xe","se","pe","alwaysRender","ve","be","he","Ee","Le","Group","Separator","Empty","borderWidth","PENALTY_SKIPPED","IS_GAP_REGEXP","COUNT_GAPS_REGEXP","commandScoreInner","abbreviation","lowerString","lowerAbbreviation","stringIndex","abbreviationIndex","transposedScore","wordBreaks","abbreviationChar","highScore","pow","commandScore","cssWithMappingToString","needLayer","dedupe","layer","alreadyImportedModules","_k","weekdays","ordinal","utcOffset","$L","$u","$x","$offset","$d","UTC","$y","$M","$D","$W","$H","$m","$s","$ms","$utils","$g","unix","$locale","weekStart","$set","invalidDate","meridiem","monthsShort","weekdaysMin","weekdaysShort","$i","isDayjs","en","Ls","LTS","LL","LLL","LLLL","afternoon","SS","SSS","ss","mm","HH","hh","Do","MM","MMM","MMMM","YY","YYYY","ZZ","formats","parseTwoDigitYear","years","weeks","$l","parseFromMilliseconds","calMilliseconds","humanize","fromNow","asMilliseconds","asSeconds","asMinutes","asHours","asDays","asWeeks","asMonths","asYears","isDuration","firstDayOfWeek","timeZoneName","hour12","timeZone","formatToParts","toLocaleString","$timezone","offsetName","guess","resolvedOptions","getUTCFullYear","getUTCMonth","getUTCDate","getUTCDay","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","$localOffset","isUTC","yearStart","weekday","_typeof","_setPrototypeOf","__proto__","_isNativeReflectConstruct","construct","sham","_construct","Parent","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","_arrayLikeToArray","iter","arr2","isFrozen","seal","fun","thisValue","arrayForEach","unapply","arrayPop","arrayPush","stringToLowerCase","stringToString","stringMatch","stringReplace","stringIndexOf","stringTrim","regExpTest","typeErrorCreate","unconstruct","_len2","_key2","addToSet","transformCaseFunc","_transformCaseFunc","lcElement","lookupGetter","html$1","svg$1","svgFilters","svgDisallowed","mathMl$1","mathMlDisallowed","mathMl","MUSTACHE_EXPR","ERB_EXPR","TMPLIT_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","DOCTYPE_NAME","CUSTOM_ELEMENT","_createTrustedTypesPolicy","ATTR_NAME","currentScript","policyName","scriptUrl","createDOMPurify","originalDocument","HTMLTemplateElement","_window$NamedNodeMap","NamedNodeMap","MozNamedAttrMap","HTMLFormElement","ElementPrototype","getChildNodes","trustedTypesPolicy","emptyHTML","createNodeIterator","createDocumentFragment","importNode","documentMode","PARSER_MEDIA_TYPE","MUSTACHE_EXPR$1","ERB_EXPR$1","TMPLIT_EXPR$1","DATA_ATTR$1","ARIA_ATTR$1","IS_SCRIPT_OR_DATA$1","ATTR_WHITESPACE$1","CUSTOM_ELEMENT$1","IS_ALLOWED_URI$1","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","CUSTOM_ELEMENT_HANDLING","tagNameCheck","attributeNameCheck","allowCustomizedBuiltInElements","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","ALLOW_SELF_CLOSE_IN_ATTR","SAFE_FOR_TEMPLATES","SAFE_FOR_XML","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_TRUSTED_TYPE","SANITIZE_DOM","SANITIZE_NAMED_PROPS","SANITIZE_NAMED_PROPS_PREFIX","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","ALLOWED_NAMESPACES","DEFAULT_ALLOWED_NAMESPACES","SUPPORTED_PARSER_MEDIA_TYPES","DEFAULT_PARSER_MEDIA_TYPE","CONFIG","formElement","isRegexOrFunction","testValue","_parseConfig","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","COMMON_SVG_AND_HTML_ELEMENTS","ALL_SVG_TAGS","ALL_MATHML_TAGS","_checkValidNamespace","_forceRemove","_removeAttribute","getAttributeNode","_initDocument","leadingWhitespace","dirtyPayload","createDocument","_createIterator","SHOW_COMMENT","SHOW_TEXT","SHOW_PROCESSING_INSTRUCTION","SHOW_CDATA_SECTION","_isClobbered","elm","_isNode","_executeHook","entryPoint","_sanitizeElements","allowedTags","firstElementChild","_basicCustomElementTest","childClone","__removalCount","_isValidAttribute","lcTag","_sanitizeAttributes","hookEvent","keepAttr","allowedAttributes","_attr","forceKeepAttr","getAttributeType","_sanitizeShadowDOM","shadowNode","shadowIterator","importedNode","oldNode","returnNode","toStaticHTML","nodeIterator","shadowroot","shadowrootmod","serializedHTML","clearConfig","isValidAttribute","addHook","hookFunction","removeHook","removeHooks","removeAllHooks","objectHasOwnProperty","cleanArray","EXPRESSIONS","NODE_TYPE","cdataSection","entityReference","entityNode","progressingInstruction","documentType","documentFragment","notation","purifyHostElement","TRUSTED_TYPES_POLICY","_createNodeIterator","_isBasicCustomElement","shadowrootmode","PopChildMeasure","getSnapshotBeforeUpdate","prevProps","childRef","sizeRef","componentDidUpdate","PopChild","useInsertionEffect","motionPopId","PresenceChild","onExitComplete","presenceChildren","newChildrenMap","childId","isComplete","PresenceContext","getChildKey","onlyElements","exitBeforeEnter","presentChildren","presentKeys","isInitialRender","pendingPresentChildren","exitComplete","diffedChildren","setDiffedChildren","renderedChildren","setRenderedChildren","exitingChildren","nextChildren","forceRender","LayoutGroupContext","onExit","isEveryExitComplete","isExitComplete","stepsOrder","maxElapsed","createRenderBatcher","scheduleNextBatch","allowKeepAlive","runNextFrame","useDefaultElapsed","isProcessing","flagRunNextFrame","createRenderStep","thisFrame","nextFrame","flushNextFrame","toKeepAlive","latestFrameData","triggerCallback","keepAlive","frameData","resolveKeyframes","postRender","processBatch","MotionGlobalConfig","useManualTiming","clearTime","newTime","MotionContext","LazyContext","strict","camelToDash","optimizedAppearDataAttribute","microtask","cancelMicrotask","isRefObject","SwitchLayoutGroupContext","scheduleHandoffComplete","useVisualElement","visualState","createVisualElement","ProjectionNodeConstructor","visualElement","lazyContext","presenceContext","reducedMotionConfig","visualElementRef","blockInitialAnimation","initialLayoutGroupConfig","createProjectionNode","initialPromotionConfig","layoutId","drag","dragConstraints","layoutScroll","layoutRoot","latestValues","getClosestProjectingNode","alwaysMeasureLayout","animationType","optimisedAppearId","wantsHandoff","MotionHandoffIsComplete","MotionHasOptimisedAnimation","updateFeatures","animationState","animateChanges","completeHandoff","allowProjection","useMotionRef","externalRef","mount","isVariantLabel","isAnimationControls","variantPriorityOrder","variantProps","isControllingVariants","isVariantNode","useCreateMotionContext","getCurrentTreeVariants","inherit","variantLabelsAsDependency","featureProps","inView","featureDefinitions","isEnabled","motionComponentSymbol","createMotionComponent","preloadedFeatures","useRender","useVisualState","loadFeatures","ForwardRefComponent","MotionComponent","MeasureLayout","configAndProps","useLayoutId","useStrictMode","isStrict","layoutProjection","getProjectionFunctionality","ProjectionNode","layoutGroupId","createMotionProxy","createConfig","customMotionComponentConfig","componentCache","lowercaseSVGElements","isSVGComponent","scaleCorrectors","transformPropOrder","transformProps","isForcedMotionValue","isMotionValue","getVelocity","getValueAsType","numberValueTypes","borderRightWidth","radius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","marginRight","degrees","rotateX","rotateY","rotateZ","numbers","hs","scaleZ","skew","skewX","skewY","translateX","translateZ","transformPerspective","originX","progressPercentage","originY","originZ","backgroundPositionX","backgroundPositionY","fillOpacity","strokeOpacity","numOctaves","translateAlias","numTransforms","buildHTMLStyles","transformTemplate","hasTransform","hasTransformOrigin","isCSSVariableName","valueAsType","buildTransform","transformString","transformIsDefault","valueIsDefault","createHtmlRenderState","copyRawValuesOnly","useStyle","useInitialMotionValues","useHTMLProps","htmlProps","dragListener","draggable","WebkitUserSelect","WebkitTouchCallout","touchAction","onTap","onTapStart","calcOrigin","dashKeys","camelKeys","buildSVGAttrs","attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset","isSVGTag","dimensions","calcSVGTransformOrigin","buildSVGPath","useDashCase","createSvgRenderState","useSVGProps","_isStatic","visualProps","rawStyles","createUseRender","forwardMotionProps","filterProps","elementProps","renderHTML","getProjectionStyles","camelCaseAttributes","renderSVG","renderState","_styleProp","scrapeMotionValuesFromProps","newValues","liveStyle","applyWillChange","scrapeMotionValuesFromProps$1","getValueState","resolveVariantFromProps","velocity","isKeyframesTarget","resolveFinalValueInKeyframes","resolveMotionValue","toValue","isCustomValue","acceleratedValues","getWillChangeName","makeUseVisualState","make","makeState","createRenderState","makeLatestValues","addWillChange","memberName","addUniqueItem","forEachDefinition","transitionEnd","shouldApplyWillChange","scrapeMotionValues","motionValues","isControllingVariants$1","isVariantNode$1","isInitialAnimationBlocked","variantToSet","valueTarget","svgMotionConfig","getBBox","htmlMotionConfig","addDomEvent","isPrimaryPointer","isPrimary","extractEventInfo","pointType","addPointerEvent","addPointerInfo","createLock","lock","openLock","globalHorizontalLock","globalVerticalLock","getGlobalLock","openHorizontal","openVertical","isDragActive","openGestureLock","Feature","addHoverEvent","callbackName","getProps","isNodeOrChild","fireSyntheticPointerEvent","syntheticPointerEvent","observerCallbacks","observers","fireObserverCallback","fireAllObserverCallbacks","observeIntersection","rootInteresectionObserver","initIntersectionObserver","lookupRoot","rootObservers","thresholdNames","gestureAnimations","InViewFeature","hasEnteredView","isInView","startObserver","onViewportEnter","onViewportLeave","hasViewportOptionChanged","prevViewport","PressGesture","removeStartListeners","removeEndListeners","removeAccessibleListeners","startPointerPress","startEvent","startInfo","isPressing","removePointerUpListener","endPointerPress","endEvent","endInfo","checkPressEnd","onTapCancel","globalTapTarget","removePointerCancelListener","cancelEvent","cancelInfo","cancelPress","startPress","startAccessiblePress","removeKeydownListener","keydownEvent","keyupEvent","removeBlurListener","removePointerListener","onPointerStart","removeFocusListener","FocusGesture","HoverGesture","shallowCompare","prevLength","resolveVariant","secondsToMilliseconds","millisecondsToSeconds","underDampedSpring","restSpeed","keyframesTransition","getDefaultTransition","sqrt","criticallyDampedSpring","getValueTransition","instantAnimationState","isNotNull","getFinalKeyframe","repeatType","finalKeyframe","resolvedKeyframes","isZeroValueString","isNumericalString","splitCSSVariableRegex","getVariableValue","parseCSSVariable","token1","token2","trimmed","isCSSVariableToken","positionalKeys","isNumOrPxType","getPosFromMatrix","matrix","getTranslateFromMatrix","pos2","pos3","_bbox","matrix3d","transformKeys","nonTranslationalTransformKeys","positionalValues","testValueType","dimensionValueTypes","percent","vw","vh","findDimensionValueType","toResolve","isScheduled","anyNeedsMeasurement","measureAllKeyframes","resolversToMeasure","needsMeasurement","elementsToMeasure","transformsToRestore","removedTransforms","removeNonTranslationalTransform","measureInitialState","measureEndState","suspendedScrollY","readAllKeyframes","readKeyframes","KeyframeResolver","unresolvedKeyframes","scheduleResolve","valueAsRead","readValue","setFinalKeyframe","renderEndStyles","maxDefaults","applyDefaultFilter","floatRegex","functionRegex","complex","getAnimatableNone","functions","defaultValueTypes","backgroundColor","outlineColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","WebkitFilter","getDefaultValueType","defaultValueType","invalidTemplates","DOMKeyframesResolver","resolveNoneKeyframes","originType","noneKeyframeIndexes","makeNoneKeyframesAnimatable","animatableTemplate","analyseComplexValue","noneIndex","measuredOrigin","measureViewportBox","measureKeyframe","jump","finalKeyframeIndex","unsetTransformName","unsetTransformValue","isAnimatable","BaseAnimation","autoplay","repeatDelay","hasAttemptedResolve","createdAt","updateFinishedPromise","calcStartTime","resolvedAt","_resolved","flushKeyframeResolvers","onKeyframesResolved","onUpdate","isGenerator","canAnimate","originKeyframe","targetKeyframe","isOriginAnimatable","isTargetAnimatable","hasKeyframesChanged","resolveFinishedPromise","resolvedAnimation","initPlayback","onPostResolved","currentFinishedPromise","calcGeneratorVelocity","resolveValue","prevT","velocityPerSecond","findSpring","bounce","mass","envelope","derivative","dampingRatio","undampedFreq","exponentialDecay","calcAngularFreq","approximateRoot","initialGuess","rootIterations","durationKeys","physicsKeys","isSpringType","spring","isResolvedFromDuration","getSpringOptions","springOptions","initialVelocity","initialDelta","undampedAngularFreq","isGranularScale","resolveSpring","angularFreq","sin","cos","dampedAngularFreq","freqForT","sinh","cosh","calculatedDuration","currentVelocity","isBelowVelocityThreshold","isBelowDisplacementThreshold","inertia","power","timeConstant","bounceDamping","bounceStiffness","modifyTarget","nearestBoundary","amplitude","ideal","calcDelta","calcLatest","applyFriction","timeReachedBoundary","spring$1","checkCatchBoundary","isOutOfBounds","hasUpdatedFrame","calcBezier","a1","a2","cubicBezier","mX1","mY1","mX2","mY2","getTForX","aX","binarySubdivide","lowerBound","upperBound","currentX","currentT","easeIn","easeOut","easeInOut","mirrorEasing","easing","reverseEasing","circIn","acos","circOut","circInOut","backOut","backIn","backInOut","easingLookup","linear","anticipate","easingDefinitionToFunction","y1","y2","defaultEasing","keyframeValues","easingFunctions","isEasingArray","absoluteTimes","convertOffsetToTimes","defaultOffset","mapTimeToKeyframe","frameloopDriver","passTimestamp","generators","decay","tween","percentToProgress","MainThreadAnimation","holdTime","cancelTime","playbackSpeed","pendingPlayState","onStop","KeyframeResolver$1","onResolved","keyframes$1","generatorFactory","mapPercentToKeyframes","mirroredGenerator","generator","calcGeneratorDuration","resolvedDuration","totalDuration","sample","speed","timeWithoutDelay","isInDelayPhase","elapsed","frameGenerator","currentIteration","iterationProgress","isAnimationFinished","driver","newSpeed","hasChanged","onPlay","stopDriver","isBezierDefinition","isWaapiSupportedEasing","supportedWaapiEasing","cubicBezierAsString","mapEasingToNativeEasingWithDefault","mapEasingToNativeEasing","supportsWaapi","AcceleratedAnimation","requiresPregeneratedKeyframes","pregeneratedAnimation","pregenerateKeyframes","sampleAnimation","pregeneratedKeyframes","animateStyle","valueName","keyframeOptions","iterations","pendingTimeline","timeline","onfinish","playbackRate","playState","attachTimeline","sampleTime","setWithVelocity","supportsScrollTimeline","ScrollTimeline","GroupPlaybackControls","runAll","onResolve","onReject","setAll","cancelAll","observeTimeline","prevProgress","onFrame","cancelTimeline","methodName","animateMotionValue","isHandoff","onEnd","valueTransition","isTransitionDefined","_delay","delayChildren","staggerChildren","staggerDirection","skipAnimations","setMotionValue","addValue","getOptimisedAppearId","WillChangeMotionValue","MotionValue","counts","styleName","hasRemoved","newCount","addValueToWillChange","isWillChangeMotionValue","shouldBlockAnimation","protectedKeys","needsAnimating","shouldBlock","animateTarget","targetAndTransition","transitionOverride","animationTypeState","MotionHandoffAnimation","appearId","shouldReduceMotion","setTarget","animateVariant","getAnimation","getChildAnimations","variantChildren","forwardDelay","animateChildren","maxStaggerDuration","generateStaggerDuration","sortByTreeOrder","sortNodePosition","reversePriorityOrder","numAnimationTypes","animateList","animateVisualElement","resolvedDefinition","checkVariantsDidChange","createTypeState","prevResolvedValues","createState","whileInView","whileDrag","whileFocus","AnimationFeature","createAnimationState","buildResolvedTypeValues","changedActiveType","getVariantContext","removedKeys","encounteredKeys","removedVariantIndex","typeState","propIsVariant","activeDelta","isInherited","manuallyAnimateOnMount","prevProp","shouldAnimateType","handledRemovedValues","definitionList","resolvedValues","markToAnimate","valueHasChanged","fallbackAnimation","fallbackTarget","getBaseTarget","shouldAnimate","setAnimateFunction","makeAnimator","updateAnimationControlsSubscription","unmountControls","prevAnimate","ExitAnimationFeature","prevIsPresent","prevPresenceContext","exitAnimation","PanSession","contextWindow","dragSnapToOrigin","lastMoveEvent","lastMoveEventInfo","updatePoint","getPanInfo","isPanStarted","isDistancePastThreshold","distance2D","xDelta","yDelta","onStart","transformPoint","onSessionEnd","resumeAnimation","panInfo","initialInfo","onSessionStart","updateHandlers","subtractPoint","lastDevicePoint","startDevicePoint","timeDelta","timestampedPoint","lastPoint","calcLength","calcAxisDelta","originPoint","mixNumber","calcBoxDelta","calcRelativeAxis","relative","calcRelativeAxisPosition","calcRelativePosition","calcRelativeAxisConstraints","calcViewportAxisConstraints","layoutAxis","constraintsAxis","defaultElastic","resolveAxisElastic","dragElastic","minLabel","maxLabel","resolvePointElastic","createBox","createAxis","eachAxis","convertBoundingBoxToBox","isIdentityScale","hasScale","has2DTranslate","is2DTranslate","scalePoint","applyPointDelta","boxScale","applyAxisDelta","applyBoxDelta","TREE_SCALE_SNAP_MIN","TREE_SCALE_SNAP_MAX","translateAxis","transformAxis","axisTranslate","axisScale","axisOrigin","transformBox","transformBoxPoints","topLeft","bottomRight","getContextWindow","elementDragControls","VisualElementDragControls","openGlobalLock","isDragging","currentDirection","hasMutatedConstraints","elastic","originEvent","snapToCursor","panSession","pauseAnimation","stopAnimation","dragPropagation","resolveConstraints","isAnimationBlocked","getAxisMotionValue","measuredAxis","layoutBox","removeWillChange","dragDirectionLock","onDirectionLock","onDrag","getCurrentDirection","lockThreshold","updateAxis","getAnimationState","getTransformPagePoint","startAnimation","onDragEnd","_point","shouldDrag","axisValue","applyConstraints","measure","prevConstraints","resolveRefConstraints","calcRelativeConstraints","resolveDragElastic","rebaseAxisConstraints","relativeConstraints","onMeasureDragConstraints","constraintsElement","constraintsBox","measurePageBox","rootProjectionNode","viewportBox","measuredConstraints","calcViewportConstraints","userConstraints","convertBoxToBoundingBox","dragMomentum","dragTransition","onDragTransitionEnd","momentumAnimations","startAxisValueAnimation","dragKey","scalePositionWithinConstraints","boxProgress","sourceLength","targetLength","updateScroll","updateLayout","addListeners","stopPointerListener","measureDragConstraints","stopMeasureLayoutListener","stopResizeListener","stopLayoutUpdateListener","hasLayoutChanged","asyncHandler","globalProjectionState","hasAnimatedSinceResize","hasEverUpdated","pixelsToPercent","pixels","correctBorderRadius","correct","correctBoxShadow","treeScale","projectionDelta","createTransformer","xScale","yScale","averageScale","MeasureLayoutWithContext","componentDidMount","layoutGroup","switchLayoutGroup","addScaleCorrector","correctors","defaultScaleCorrectors","didUpdate","safeToRemove","layoutDependency","willUpdate","promote","relegate","getStack","members","currentAnimation","isLead","componentWillUnmount","promoteContext","scheduleCheckAfterUnmount","applyTo","borders","numBorders","asNumber","isPx","getRadius","radiusName","easeCrossfadeIn","compress","easeCrossfadeOut","copyAxisInto","originAxis","copyBoxInto","originBox","copyAxisDeltaInto","originDelta","removePointDelta","removeAxisTransforms","transforms","scaleKey","originKey","sourceAxis","removeAxisDelta","xKeys","yKeys","removeBoxTransforms","sourceBox","isAxisDeltaZero","isDeltaZero","axisEquals","axisEqualsRounded","boxEqualsRounded","aspectRatio","axisDeltaEquals","NodeStack","scheduleRender","prevLead","lead","indexOfNode","member","preserveFollowOpacity","resumeFrom","preserveOpacity","animationValues","isUpdating","isLayoutDirty","crossfade","exitAnimationComplete","resumingFrom","removeLeadSnapshot","compareByDepth","FlatTree","metrics","totalNodes","resolvedTargetDeltas","recalculatedProjection","isDebug","MotionDebug","transformAxes","hiddenVisibility","resetDistortingTransform","sharedAnimationValues","setStaticValue","cancelTreeOptimisedTransformAnimations","projectionNode","hasCheckedOptimisedAppear","MotionCancelOptimisedAnimation","attachResizeListener","defaultParent","measureScroll","checkIsScrollRoot","resetTransform","animationId","isTreeAnimating","isProjectionDirty","isSharedProjectionDirty","isTransformDirty","updateManuallyBlocked","updateBlockedByResize","isSVG","needsReset","shouldResetTransform","eventHandlers","hasTreeAnimated","updateScheduled","projectionUpdateScheduled","checkUpdateFailed","clearAllSnapshots","updateProjection","propagateDirtyNodes","resolveTargetDelta","calcProjection","cleanDirtyNodes","resolvedRelativeTargetAt","hasProjected","animationProgress","sharedNodes","SubscriptionManager","notifyListeners","subscriptionManager","hasListeners","isSVGElement","cancelDelay","resizeUnblockUpdate","checkElapsed","finishAnimation","registerSharedNode","hasRelativeTargetChanged","newLayout","isTreeAnimationBlocked","relativeTarget","layoutTransition","defaultLayoutTransition","onLayoutAnimationStart","onLayoutAnimationComplete","targetChanged","targetLayout","hasOnlyRelativeTargetChanged","setAnimationOrigin","animationOptions","blockUpdate","unblockUpdate","isUpdateBlocked","startUpdate","resetSkewAndRotation","getTransformTemplate","shouldNotifyListeners","prevTransformTemplateValue","updateSnapshot","clearMeasurements","clearIsLayoutDirty","resetTransformStyle","notifyLayoutUpdate","clearSnapshot","removeLeadSnapshots","scheduleUpdateProjection","prevLayout","layoutCorrected","wasRoot","isResetRequested","hasProjection","transformTemplateValue","transformTemplateHasChanged","removeTransform","pageBox","removeElementScroll","roundBox","roundAxis","measuredBox","checkNodeWasScrollRoot","boxWithoutScroll","applyTransform","transformOnly","withTransforms","boxWithoutTransform","setTargetDelta","targetDelta","forceRelativeParentToResolveTarget","relativeParent","forceRecalculation","getLead","isShared","attemptToResolveRelativeTarget","getClosestProjectingParent","relativeTargetOrigin","targetWithTransforms","calcRelativeBox","isProjecting","canSkip","pendingAnimation","prevTreeScaleX","prevTreeScaleY","applyTreeDeltas","treePath","isSharedTransition","treeLength","prevProjectionDelta","createProjectionDeltas","notifyAll","createDelta","createAxisDelta","projectionDeltaWithTransform","snapshotLatestValues","mixedValues","relativeLayout","isSharedLayoutAnimation","isOnlyMember","shouldCrossfadeOpacity","hasOpacityCrossfade","prevRelativeTarget","mixTargetDelta","mixAxisDelta","mixBox","mixAxis","boxEquals","mixValues","follow","opacityExit","borderLabel","followRadius","leadRadius","animateSingleValue","motionValue$1","completeAnimation","applyTransformsToTarget","shouldAnimatePositionOnly","xLength","yLength","shouldPreserveFollowOpacity","getPrevLead","hasDistortingTransform","resetValues","emptyStyles","valuesToRender","buildProjectionTransform","latestTransform","xTranslate","yTranslate","zTranslate","elementScaleX","elementScaleY","corrected","resetTree","measuredLayout","axisSnapshot","layoutDelta","visualDelta","parentSnapshot","parentLayout","relativeSnapshot","onBeforeLayoutMeasure","userAgentContains","roundPoint","isNear","maxDistance","DocumentProjectionNode","HTMLProjectionNode","documentNode","PanGesture","removePointerDownListener","pointerDownEvent","session","createPanHandlers","onPanSessionStart","onPanStart","onPan","onPanEnd","DragGesture","removeGroupControls","dragControls","prefersReducedMotion","hasReducedMotionListener","visualElementStore","valueTypes","propEventHandlers","numVariantProps","VisualElement","_props","_prevProps","_visualElement","valueSubscriptions","prevMotionValues","propEventSubscriptions","notifyUpdate","isRenderScheduled","triggerBuild","renderInstance","baseTarget","initialValues","initialMotionValues","removeFromVariantTree","addVariantChild","bindToMotionValue","initPrefersReducedMotion","matchMedia","motionMediaQuery","setReducedMotionPreferences","addListener","valueIsTransform","removeOnChange","latestValue","removeOnRenderRequest","removeSyncCheck","MotionCheckAppearSync","sortInstanceNodePosition","featureDefinition","FeatureConstructor","measureInstanceViewportBox","getStaticValue","updateMotionValuesFromProps","existingValue","hasAnimated","removeValue","handleChildMotionValue","getVariant","getClosestVariantNode","startAtParent","closestVariantNode","removeValueFromRenderState","getBaseTargetFromProps","readValueFromInstance","setBaseTarget","valueFromInitial","DOMVisualElement","HTMLVisualElement","defaultType","childSubscription","SVGVisualElement","createDomVisualElement","createDomMotionConfig","validMotionProps","isValidMotionProp","shouldForward","isDom","checkStringStartsWith","startsAsVariableToken","singleCssVariableRegex","isClamp","inputLength","mixers","createMixers","customMixer","mixerFactory","numMixers","easingFunction","progressInRange","hueToRgb","mixImmediate","mixLinearColor","fromExpo","expo","colorTypes","hsla","asRGBA","getColorType","hslaToRgba","hue","saturation","lightness","red","green","blue","mixColor","fromRGBA","toRGBA","blended","invisibleValues","mixNumber$1","mixComplex","mixArray","mixObject","blendValue","originStats","targetStats","indexes","var","mixVisibility","matchOrder","orderedOrigin","pointers","originIndex","originValue","any","fillOffset","offsetProgress","combineFunctions","transformers","toFromDifference","numSubscriptions","getSize","frameDuration","canTrackVelocity","updateAndNotify","updatedAt","setPrevFrameValue","setCurrent","renderRequest","prevFrameValue","prevUpdatedAt","clearListeners","eventManagers","passiveEffect","stopPassiveEffect","endAnimation","animationStart","animationComplete","clearAnimation","animationCancel","isAnimating","isColorString","parseHex","splitColor","alpha$1","rgbUnit","clampRgbUnit","testProp","singleColorRegex","isNullish","aName","bName","cName","NUMBER_TOKEN","COLOR_TOKEN","VAR_TOKEN","VAR_FUNCTION_TOKEN","SPLIT_TOKEN","complexRegex","originalValue","parsedValue","parseComplexValue","numSections","convertNumbersToZero","colorRegex","createUnitType","resizeHandlers","notifyTarget","getElementSize","resizeElement","createResizeObserver","resolveElements","selectorCache","elementHandlers","windowCallbacks","windowResizeHandler","resizeWindow","createWindowResizeHandler","createScrollInfo","createAxisInfo","scrollLength","targetOffset","updateAxisInfo","axisName","prevTime","ScrollOffset","Enter","Any","namedEdges","resolveEdge","inset","resolveOffset","targetInset","offsetDefinition","targetPoint","containerPoint","resolveOffsets","lengthLabel","calcInset","svgBoundingBox","parentBoundingBox","SVGGraphicsElement","targetSize","getTargetSize","containerSize","numOffsets","interpolatorOffsets","createOnScrollHandler","updateScrollInfo","scrollListeners","resizeListeners","onScrollHandlers","getEventTarget","scrollInfo","containerHandlers","containerHandler","measureAll","updateAll","currentHandlers","scrollListener","refWarning","createScrollMotionValues","scrollXProgress","scrollYProgress","layoutEffect","useLifecycleEffect","BeforeUnloadEventType","_options$window","getIndexAndLocation","_window$location","blockedPopTx","blockers","nextAction","_getIndexAndLocation","nextLocation","applyTx","_getIndexAndLocation2","createEvents","getNextLocation","createKey","getHistoryStateAndUrl","allowTx","_getIndexAndLocation3","_getHistoryStateAndUr","_getHistoryStateAndUr2","blocker","unblock","promptBeforeUnload","_options3","_options3$initialEntr","initialEntries","initialIndex","_ref$pathname","_ref$search","_ref$hash","alphabet","LN2","aa","ca","da","ea","fa","ha","ia","ja","ka","la","ma","acceptsBooleans","attributeNamespace","mustUseProperty","sanitizeURL","removeEmptyString","ra","sa","ta","qa","pa","oa","xlinkHref","va","wa","ya","za","Aa","Ba","Ca","Da","Ea","Fa","Ga","Ha","Ia","Ja","Ka","La","Ma","Na","Oa","prepareStackTrace","Pa","Qa","_payload","_init","Ra","Sa","Ta","Va","_valueTracker","Ua","stopTracking","Wa","Xa","Ya","_wrapperState","initialChecked","Za","controlled","ab","bb","db","eb","fb","defaultSelected","gb","hb","ib","jb","kb","lb","mb","nb","MSApp","execUnsafeLocalFunction","ob","pb","animationIterationCount","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flexGrow","flexPositive","flexNegative","flexOrder","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","lineClamp","orphans","tabSize","widows","zoom","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","qb","sb","menuitem","keygen","ub","vb","wb","xb","srcElement","correspondingUseElement","yb","zb","Ab","Bb","Cb","stateNode","Db","Eb","Fb","Gb","Hb","Ib","Jb","Kb","Lb","Mb","Nb","Ob","Pb","Qb","Rb","Sb","Tb","Vb","alternate","return","Wb","dehydrated","Xb","Zb","Yb","sibling","$b","unstable_scheduleCallback","bc","unstable_cancelCallback","unstable_shouldYield","dc","unstable_requestPaint","unstable_now","ec","unstable_getCurrentPriorityLevel","fc","unstable_ImmediatePriority","gc","unstable_UserBlockingPriority","hc","unstable_NormalPriority","unstable_LowPriority","jc","unstable_IdlePriority","kc","oc","clz32","nc","qc","rc","tc","uc","pendingLanes","suspendedLanes","pingedLanes","entangledLanes","entanglements","vc","xc","yc","zc","Ac","eventTimes","Cc","Dc","Ec","Fc","Gc","Hc","Ic","Jc","Kc","Lc","Nc","Oc","Pc","Qc","Rc","Tc","blockedOn","eventSystemFlags","targetContainers","Vc","Wc","isDehydrated","containerInfo","Xc","Yc","Zc","$c","ad","bd","ReactCurrentBatchConfig","ed","fd","gd","hd","Uc","jd","kd","ld","md","nd","od","pd","qd","rd","_reactName","_targetInst","cancelBubble","isPersistent","wd","xd","yd","ud","vd","Ad","screenX","screenY","getModifierState","zd","fromElement","toElement","movementX","movementY","Bd","Dd","Fd","Hd","elapsedTime","pseudoElement","Jd","Ld","Md","Spacebar","Apps","MozPrintableKey","Nd","Od","Alt","Control","Shift","Pd","Qd","which","Rd","Td","tangentialPressure","tiltX","tiltY","twist","Vd","Xd","Yd","wheelDeltaX","wheelDeltaY","wheelDelta","deltaZ","deltaMode","Zd","de","password","tel","qe","ue","we","ze","oninput","Ae","detachEvent","Be","attachEvent","De","Fe","He","Ge","Ie","Je","Ke","HTMLIFrameElement","contentWindow","Ne","contentEditable","Oe","focusedElem","selectionRange","getSelection","rangeCount","anchorOffset","focusNode","focusOffset","createRange","setStart","removeAllRanges","addRange","setEnd","Pe","Qe","Te","Ue","Ve","We","animationend","animationiteration","animationstart","transitionend","Xe","Ye","Ze","$e","bf","df","ef","ff","gf","hf","lf","mf","nf","Ub","pf","qf","sf","tf","uf","parentWindow","vf","wf","na","xa","$a","ba","je","ke","xf","yf","zf","Af","Bf","Cf","Df","Ef","Ff","Gf","Hf","Jf","If","Kf","Lf","Mf","Nf","Of","Pf","Qf","Rf","Sf","Tf","Uf","Vf","Wf","Xf","Yf","contextTypes","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","Zf","childContextTypes","$f","ag","getChildContext","cg","__reactInternalMemoizedMergedChildContext","dg","fg","hg","jg","kg","mg","og","pg","qg","rg","sg","tg","ug","vg","wg","xg","yg","zg","Ag","Bg","deletions","Cg","pendingProps","treeContext","retryLane","Dg","Eg","Fg","memoizedProps","Hg","Ig","Jg","Kg","Lg","_owner","_stringRef","Mg","Ng","Og","Pg","Qg","Rg","Sg","Tg","Ug","Vg","Wg","Xg","Yg","Zg","ah","_currentValue","bh","childLanes","firstContext","lanes","dh","eh","memoizedValue","fh","gh","interleaved","ih","jh","kh","updateQueue","baseState","firstBaseUpdate","lastBaseUpdate","lh","mh","eventTime","lane","nh","oh","qh","rh","sh","uh","wh","xh","yh","zh","Ah","Bh","Ch","revealOrder","Dh","Eh","_workInProgressVersionPrimary","Fh","Gh","Hh","Ih","Jh","Kh","Lh","Mh","Nh","Oh","Ph","Qh","Rh","Sh","Th","baseQueue","Uh","Vh","Wh","lastRenderedReducer","hasEagerState","eagerState","lastRenderedState","Xh","Yh","Zh","$h","ai","bi","di","lastEffect","stores","ei","fi","gi","ji","ki","mi","oi","qi","ri","si","vi","wi","zi","Ai","Bi","readContext","useDebugValue","useDeferredValue","useTransition","useMutableSource","unstable_isNewReconciler","identifierPrefix","Ci","Di","Ei","_reactInternals","enqueueSetState","enqueueReplaceState","enqueueForceUpdate","Fi","shouldComponentUpdate","isPureReactComponent","Gi","contextType","Hi","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","Ii","getDerivedStateFromProps","UNSAFE_componentWillMount","componentWillMount","Ji","digest","Ki","Li","Mi","Ni","Oi","Qi","Ri","Si","pingCache","Ti","Ui","Vi","Wi","Yi","Zi","aj","bj","cj","dj","baseLanes","cachePool","ej","fj","gj","hj","ij","UNSAFE_componentWillUpdate","componentWillUpdate","jj","kj","pendingContext","lj","zj","Aj","Bj","Cj","mj","nj","oj","pj","qj","rj","sj","dgst","tj","uj","_reactRetry","subtreeFlags","vj","wj","isBackwards","rendering","renderingStartTime","tailMode","Dj","Ej","Fj","wasMultiple","onclick","Gj","Hj","Ij","Jj","Kj","Lj","Mj","Nj","Pj","Qj","Rj","Sj","Tj","Uj","Vj","_reactRootContainer","Wj","Xj","Yj","Zj","onCommitFiberUnmount","ak","bk","ck","dk","ek","gk","hk","ik","jk","kk","__reactInternalSnapshotBeforeUpdate","Vk","lk","mk","nk","pk","qk","rk","sk","tk","uk","vk","wk","xk","yk","zk","Ak","Bk","Ck","Dk","callbackNode","wc","expirationTimes","expiredLanes","callbackPriority","ig","Ek","Fk","Gk","Hk","Ik","Jk","Kk","Lk","Mk","Nk","finishedWork","finishedLanes","Pk","timeoutHandle","Qk","Rk","Sk","Tk","Uk","Wk","Bc","mutableReadLanes","Oj","onCommitFiberRoot","onRecoverableError","onPostCommitFiberRoot","Xk","Yk","$k","isReactComponent","pendingChildren","al","mutableSourceEagerHydrationData","bl","pendingSuspenseBoundaries","fl","hl","il","Zk","kl","_internalRoot","ml","nl","pl","ql","unstable_scheduleHydration","sl","usingClientEntryPoint","tl","findFiberByHostInstance","bundleType","rendererPackageName","rendererConfig","overrideHookState","overrideHookStateDeletePath","overrideHookStateRenamePath","overridePropsDeletePath","overridePropsRenamePath","setErrorHandler","setSuspenseHandler","currentDispatcherRef","findHostInstanceByFiber","jl","findHostInstancesForRefresh","scheduleRefresh","scheduleRoot","setRefreshHandler","getCurrentFiber","reconcilerVersion","__REACT_DEVTOOLS_GLOBAL_HOOK__","vl","supportsFiber","cl","unstable_strictMode","hydratedSources","_getVersion","_source","hydrateRoot","checkDCE","isCheckBoxInput","isDateObject","isNullOrUndefined","isObjectType","isObject","getEventValue","isNameInFieldArray","getNodeParentName","isPlainObject","tempObject","prototypeCopy","isWeb","cloneObject","compact","isUndefined","EVENTS","BLUR","FOCUS_OUT","CHANGE","VALIDATION_MODE","INPUT_VALIDATION_RULES","HookFormContext","getProxyFormState","localProxyFormState","_defaultValues","_proxyFormState","isEmptyObject","shouldRenderFormState","formStateData","updateFormState","convertToArrayPayload","shouldSubscribeByName","signalName","currentName","useSubscribe","generateWatchOutput","_names","formValues","isGlobal","watchAll","isKey","stringToPath","tempPath","objValue","useController","shouldUnregister","isArrayField","useWatch","_name","_subjects","_formValues","_getWatch","_removeUnmounted","useFormState","_formState","_mounted","_localProxyFormState","dirtyFields","touchedFields","isValidating","_updateFormState","_updateValid","_registerProps","_shouldUnregisterField","updateMounted","_fields","_f","_updateDisabledField","fields","reportValidity","fieldState","appendErrors","validateAllFieldCriteria","getValidationModes","isOnSubmit","isOnBlur","isOnChange","isOnAll","isOnTouch","isWatched","isBlurEvent","watchName","iterateFieldsByAction","fieldsNames","abortEarly","currentField","updateFieldArrayRootError","fieldArrayErrors","isFileInput","isMessage","isRadioInput","isRegex","defaultResult","validResult","getCheckboxValue","defaultReturn","getRadioValue","getValidateError","getValueAndMessage","validationData","validateField","shouldUseNativeValidation","isFieldArray","valueAsNumber","isRadio","isCheckBox","isRadioOrCheckbox","appendErrorsCurry","getMinMaxMessage","exceedMax","maxLengthMessage","minLengthMessage","maxType","minType","exceedMin","maxOutput","minOutput","valueAsDate","convertTimeToDate","toDateString","isTime","isWeek","valueNumber","maxLengthOutput","minLengthOutput","patternValue","validateError","validationResult","unset","childObject","baseGet","updatePath","isEmptyArray","createSubject","_observers","isPrimitive","object1","object2","keys1","keys2","val1","val2","isMultipleSelect","live","objectHasFunction","markFieldsDirty","isParentNodeArray","getDirtyFieldsFromDefaultValues","dirtyFieldsFromValues","getDirtyFields","getFieldValueAs","setValueAs","getFieldValue","getResolverOptions","criteriaMode","getRuleValue","hasValidation","schemaErrorLookup","foundError","reValidateMode","unsetEmptyArray","shouldFocusError","createFormControl","flushRootRender","delayErrorCallback","submitCount","isSubmitting","isSubmitSuccessful","unMount","shouldCaptureDirtyFields","resetOptions","keepDirtyValues","validationModeBeforeSubmit","validationModeAfterSubmit","shouldDisplayAllAssociatedErrors","shouldUpdateValid","_executeSchema","executeBuiltInValidation","_x8","_updateIsValidating","updateValidAndValue","shouldSkipSetValueAs","setFieldValue","updateTouchAndDirty","fieldValue","shouldDirty","shouldUpdateField","isPreviousDirty","_getDirty","isCurrentFieldPristine","isPreviousFieldTouched","shouldRenderByError","previousFieldError","delayError","updateErrors","updatedFormState","_x9","executeSchemaAndUpdateState","_ref6","_x10","_ref7","shouldOnlyCheckValid","isFieldArrayRoot","fieldError","_x11","_x12","fieldReference","optionRef","checkboxRef","radioRef","shouldTouch","shouldValidate","setValues","fieldKey","cloneValue","_ref8","isFieldValueUpdated","_updateIsFieldValueUpdated","shouldSkipValidation","watched","previousErrorLookupResult","errorLookupResult","_x13","_focusInput","_ref9","fieldNames","_ref10","xr","_x15","shouldFocus","_x14","getFieldState","keepValue","keepError","keepDirty","keepTouched","keepDefaultValue","keepIsValid","disabledIsDefined","progressive","fieldRef","radioOrCheckbox","_focusError","onValid","_ref11","fieldValues","_x16","keepStateOptions","updatedValues","cloneUpdatedValues","keepDefaultValues","keepValues","keepSubmitCount","keepIsSubmitted","keepErrors","keepIsSubmitSuccessful","_updateFieldArray","shouldSetValues","shouldUpdateFieldsAndState","argA","argB","_getFieldArray","_resetDefaultValues","_disableForm","resetField","clearErrors","setFocus","shouldSelect","useForm","_formControl","_values","noScrollbarsClassName","removedBarSizeVariable","zeroGap","getGapWidth","cs","getOffset","documentWidth","lockAttribute","getStyles","allowRelative","important","getCurrentUseCounter","noRelative","noImportant","newCounter","elementCanBeScrolled","alwaysContainsScroll","getOutermostShadowParent","shadowParent","createSearchParams","_excluded","__reactRouterVersion","startTransitionImpl","setStateImpl","v7_startTransition","navigationType","ABSOLUTE_URL_REGEX","absoluteHref","reloadDocument","preventScrollReset","unstable_viewTransition","_objectWithoutPropertiesLoose","excluded","sourceKeys","UNSAFE_NavigationContext","isExternal","targetUrl","internalOnClick","useLinkClickHandler","_temp","replaceProp","useResolvedPath","shouldProcessLinkClick","isModifiedEvent","DataRouterHook","DataRouterStateHook","useSearchParams","defaultInit","defaultSearchParamsRef","hasSetSearchParamsRef","getSearchParamsForLocation","locationSearch","defaultSearchParams","setSearchParams","nextInit","navigateOptions","newSearchParams","UseScrollRestoration","UseSubmit","UseSubmitFetcher","UseFetcher","useViewTransitionState","UseFetchers","DataRouterContext","DataRouterStateContext","NavigationContext","LocationContext","RouteContext","isDataRoute","RouteErrorContext","useInRouterContext","UNSAFE_invariant","joinedPathname","useNavigateStable","useDataRouterContext","UseNavigateStable","useCurrentRouteId","activeRef","fromRouteId","useNavigateUnstable","dataRouterContext","routePathnamesJson","UNSAFE_getResolveToMatches","routeMatch","_temp2","useRoutesImpl","dataRouterState","parentMatches","parentParams","parentPathnameBase","locationFromContext","_parsedLocationArg$pa","parsedLocationArg","parentSegments","renderedMatches","_renderMatches","DefaultErrorComponent","useRouteError","_state$errors","useDataRouterState","UseRouteError","routeId","lightgrey","preStyles","fontStyle","defaultErrorElement","RenderErrorBoundary","revalidation","routeContext","RenderedRoute","staticContext","errorElement","_deepestRenderedBoundaryId","_dataRouterState","_future","v7_partialHydration","renderFallback","HydrateFallback","hydrateFallbackElement","loaderData","needsToRunLoader","shouldRenderHydrateFallback","warningOnce","alreadyWarned","UseBlocker","UseRevalidator","UseLoaderData","UseActionData","UseNavigation","UseRouteLoaderData","UseMatches","UseRouteId","useRouteContext","thisRoute","jsonPath","useOutlet","basenameProp","locationProp","staticProp","navigationContext","locationContext","trailingPathname","useRoutes","createRoutesFromChildren","hasErrorBoundary","shouldRevalidate","currentNonce","makeStyleTag","__webpack_nonce__","stylesheetSingleton","stylesheet","injectStyles","insertStyleTag","isDynamic","styleHookSingleton","dynamic","__self","__source","_result","_currentValue2","_threadCount","Consumer","_defaultValue","_globalName","thrownError","_throwIfClosed","observable","isSubscriber","Subscriber","isObserver","isSubscription","errorContext","_trySubscribe","promiseCtor","getPromiseCtor","Symbol_observable","operations","pipeFromArray","ObjectUnsubscribedError","currentObservers","AnonymousSubject","observed","_checkFinalizedStatuses","_innerSubscribe","EMPTY_SUBSCRIPTION","arrRemove","COMPLETE_NOTIFICATION","createNotification","EMPTY_OBSERVER","handleStoppedNotification","nextNotification","errorNotification","_complete","_bind","ConsumerObserver","partialObserver","handleUnhandledError","useDeprecatedNextContext","useDeprecatedSynchronousErrorHandling","captureError","reportUnhandledError","onStoppedNotification","timeoutProvider","defaultErrorHandler","UnsubscriptionError","initialTeardown","_parentage","_finalizers","initialFinalizer","finalizer","execFinalizer","_hasParent","_addParent","_removeParent","onUnhandledError","remainingCompletions","remainingEmissions","sourceIndex","observeOn","subscribeOn","scheduleAsyncIterable","asyncIterator","scheduled","isInteropObservable","scheduleObservable","isArrayLike","scheduleArray","schedulePromise","isAsyncIterable","isIterable","scheduleIterable","Symbol_iterator","isReadableStreamLike","scheduleReadableStreamLike","readableStreamLikeToAsyncGenerator","createInvalidObservableTypeError","fromInteropObservable","fromArrayLike","fromPromise","fromAsyncIterable","fromIterable","fromReadableStreamLike","readableStream","asyncIterable","asyncIterable_1","asyncIterable_1_1","e_1","__awaiter","__asyncValues","e_1_1","onFinalize","OperatorSubscriber","shouldUnsubscribe","project","mergeInternals","onBeforeNext","expand","innerSubScheduler","additionalFinalizer","checkComplete","outerNext","doInnerSub","innerComplete","innerValue","bufferedValue","innerSubscriber","innerIndex","outerIndex","getSymbolIterator","isScheduler","objectProto","isPOJO","createImpl","ctorFunc","errorThrown","parentSubscription","work","scheduleSubscription","__asyncGenerator","__await","releaseLock","liftedSource","callOrApply","sortIndex","setImmediate","expirationTime","priorityLevel","scheduling","isInputPending","MessageChannel","port2","port1","objA","objB","compareContext","keysA","keysB","bHasOwnProperty","previousSeed","shuffled","randomFromSeed","ORIGINAL","setCharacters","_alphabet_","unique","getShuffled","shuffle","sourceArray","targetArray","characters","setSeed","previousSeconds","generate","clusterWorkerId","loopCounter","seedValue","workerId","newCharacters","isShortId","randomByte","msCrypto","getRandomValues","getNextValue","_seed_","MS","MOZ","WEBKIT","RULESET","DECLARATION","KEYFRAMES","replacement","indexof","charat","strlen","sizeof","alloc","dealloc","delimit","delimiter","whitespace","commenter","prefixer","compile","rulesets","atrule","scanning","ampersand","ruleset","unitlessKeys","msGridRow","msGridRowSpan","msGridColumn","msGridColumnSpan","WebkitLineClamp","REACT_APP_SC_ATTR","SC_ATTR","SC_DISABLE_SPEEDY","REACT_APP_SC_DISABLE_SPEEDY","getDefaultProps","mixins","caller","callee","arity","groupSizes","indexOfGroup","insertRules","clearGroup","getGroup","getRule","registerName","_e","styleSheets","ownerNode","useCSSOMInjection","gs","server","registerId","rehydrate","reconstructWithOptions","allocateGSInstance","hasNameForId","clearNames","clearRules","clearTag","replaceAll","rulesheet","shouldForwardProp","stylis","stylisPlugins","disableCSSOMInjection","enableVendorPrefixes","getName","isCss","styledComponentId","staticRulesId","baseHash","baseStyle","generateAndInjectStyles","et","parentComponentId","componentStyle","foldedComponentIds","forwardedAs","_foldedDefaultProps","ct","ut","pt","ht","createStyles","renderStyles","ft","mt","_emitSheetCSS","getStyleTags","sealed","getStyleElement","collectStyles","interleaveWithNodeStream","__WEBPACK_AMD_DEFINE_RESULT__","FUNC_TYPE","UNDEF_TYPE","OBJ_TYPE","STR_TYPE","MAJOR","MODEL","NAME","VENDOR","VERSION","ARCHITECTURE","CONSOLE","MOBILE","TABLET","SMARTTV","WEARABLE","EMBEDDED","AMAZON","APPLE","BLACKBERRY","BROWSER","CHROME","FIREFOX","GOOGLE","MICROSOFT","MOTOROLA","OPERA","SAMSUNG","SONY","XIAOMI","ZEBRA","FACEBOOK","CHROMIUM_OS","enumerize","enums","str1","str2","lowerize","rgxMapper","arrays","strMapper","windowsVersionMap","ME","XP","Vista","RT","regexes","browser","cpu","engine","EDGE","getResult","_navigator","_ua","_uach","_rgxmap","mergedRegexes","_isSelfNav","getBrowser","_browser","majorize","brave","isBrave","getCPU","_cpu","_device","getEngine","_engine","_os","getUA","setUA","CPU","DEVICE","ENGINE","OS","define","jQuery","Zepto","assignRef","currentValues","prevRefs_1","nextRefs_1","current_1","Target","useMedium","isSideCarExport","ItoI","innerCreateMedium","defaults","assignSyncMedium","cbs","assignMedium","pendingQueue","executeQueue","cycle","ssr","esm_browser_native","randomUUID","rnds8","rng","byteToHex","unsafeStringify","esm_browser_v4","rnds","___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___","___CSS_LOADER_EXPORT___","___CSS_LOADER_API_IMPORT___","propertyIsEnumerable","decorate","__metadata","metadataKey","metadataValue","_arguments","fulfilled","rejected","throw","adopt","__values","pack","ar","AsyncIterator","verb","awaitReturn","fulfill","settle","SuppressedError","__WEBPACK_AMD_DEFINE_ARRAY__","hasOwn","appendClass","parseValue","newClass","sloppyModeThis","functionThis","indirectEvalThis","exporter","makeExporter","supportsSymbol","toPrimitiveSymbol","toPrimitive","iteratorSymbol","supportsCreate","supportsProto","downLevel","HashMap","MakeDictionary","functionPrototype","_Map","CreateMapPolyfill","_Set","CreateSetPolyfill","_WeakMap","CreateWeakMapPolyfill","registrySymbol","metadataRegistry","GetOrCreateMetadataRegistry","metadataProvider","CreateMetadataProvider","propertyKey","IsUndefined","IsArray","IsConstructor","DecorateConstructor","IsObject","IsNull","DecorateProperty","ToPropertyKey","IsPropertyKey","OrdinaryDefineOwnMetadata","defineMetadata","hasMetadata","OrdinaryHasMetadata","hasOwnMetadata","OrdinaryHasOwnMetadata","OrdinaryGetMetadata","OrdinaryGetOwnMetadata","getMetadataKeys","OrdinaryMetadataKeys","getOwnMetadataKeys","OrdinaryOwnMetadataKeys","deleteMetadata","GetMetadataProvider","OrdinaryDeleteMetadata","decorated","MetadataKey","OrdinaryGetPrototypeOf","ToBoolean","MetadataValue","ownKeys","parentKeys","ownKeys_1","parentKeys_1","IsSymbol","ToPrimitive","PreferredType","hint","exoticToPrim","GetMethod","OrdinaryToPrimitive","toString_1","IsCallable","toString_2","argument","ToString","SameValueZero","GetIterator","IteratorValue","iterResult","IteratorStep","IteratorClose","prototypeProto","CreateMetadataRegistry","CreateFallbackProvider","targetProviderMap","registerProvider","getProvider","setProvider","isExtensible","getProviderNoCache","isProviderFor","providerMap","existingProvider","targetMetadata","GetOrCreateMetadataMap","Create","createdTargetMetadata","metadataMap","metadataOwner","metadataPropertySet","registeredProvider","cacheSentinel","arraySentinel","MapIterator","_keys","_cacheKey","_cacheIndex","getEntry","_map","UUID_SIZE","rootKey","CreateUniqueKey","GetOrCreateWeakMapTable","CreateUUID","FillRandomBytes","GenRandomBytes","byte","kindOf","kindOfTest","typeOfTest","toStringTag","isFile","isFileList","isURLSearchParams","allOwnKeys","isContextDefined","isTypedArray","TypedArray","isHTMLForm","isRegExp","reduceDescriptors","reducer","descriptors","getOwnPropertyDescriptors","reducedDescriptors","ALPHA","DIGIT","ALPHABET","ALPHA_DIGIT","isAsyncFn","isBuffer","isArrayBufferView","isView","isStream","caseless","assignValue","targetKey","stripBOM","inherits","superConstructor","toFlatObject","sourceObj","destObj","propFilter","searchString","forEachEntry","pair","matchAll","regExp","utils_hasOwnProperty","hasOwnProp","freezeMethods","toObjectSet","arrayOrString","toCamelCase","p1","p2","toFiniteNumber","generateString","isSpecCompliantForm","toJSONObject","reducedValue","isThenable","AxiosError","columnNumber","customProps","axiosError","core_AxiosError","isVisitable","removeBrackets","renderKey","dots","predicates","helpers_toFormData","toFormData","metaTokens","defaultVisitor","useBlob","convertValue","isFlatArray","exposedHelpers","charMap","AxiosURLSearchParams","_pairs","_encode","helpers_AxiosURLSearchParams","buildURL","serializeFn","serializedParams","hashmarkIndex","core_InterceptorManager","InterceptorManager","use","synchronous","runWhen","eject","defaults_transitional","silentJSONParsing","forcedJSONParsing","clarifyTimeoutError","isStandardBrowserEnv","isStandardBrowserWebWorkerEnv","WorkerGlobalScope","importScripts","protocols","helpers_formDataToJSON","formDataToJSON","buildPath","isNumericKey","isLast","arrayToObject","parsePropPath","transitional","transitionalDefaults","transformRequest","hasJSONContentType","isObjectPayload","setContentType","toURLEncodedForm","helpers","formSerializer","_FormData","stringifySafely","transformResponse","JSONRequested","strictJSONParsing","ERR_BAD_RESPONSE","xsrfCookieName","xsrfHeaderName","maxContentLength","maxBodyLength","validateStatus","Accept","lib_defaults","ignoreDuplicateOf","$internals","normalizeHeader","matchHeaderValue","isHeaderNameFilter","AxiosHeaders","valueOrRewrite","rewrite","setHeader","_header","_rewrite","lHeader","rawHeaders","parseHeaders","parseTokens","tokensRE","deleted","deleteHeader","formatHeader","asStrings","accessors","defineAccessor","buildAccessors","accessorName","arg2","arg3","mapped","headerValue","core_AxiosHeaders","transformData","isCancel","CanceledError","ERR_CANCELED","cancel_CanceledError","cookies","domain","secure","toGMTString","buildFullPath","requestedURL","isAbsoluteURL","combineURLs","relativeURL","isURLSameOrigin","urlParsingNode","originURL","resolveURL","requestURL","helpers_speedometer","speedometer","samplesCount","timestamps","firstSampleTS","chunkLength","startedAt","bytesCount","passed","progressEventReducer","isDownloadStream","bytesNotified","_speedometer","progressBytes","rate","estimated","knownAdapters","requestData","requestHeaders","onCanceled","auth","username","btoa","fullPath","onloadend","responseHeaders","ERR_BAD_REQUEST","paramsSerializer","onabort","ECONNABORTED","ERR_NETWORK","ontimeout","timeoutErrorMessage","ETIMEDOUT","xsrfValue","onDownloadProgress","onUploadProgress","parseProtocol","adapters","nameOrAdapter","throwIfCancellationRequested","throwIfRequested","dispatchRequest","headersToObject","mergeConfig","config1","config2","getMergedValue","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","timeoutMessage","decompress","beforeRedirect","transport","httpAgent","httpsAgent","socketPath","responseEncoding","configValue","deprecatedWarnings","formatMessage","ERR_DEPRECATED","assertOptions","allowUnknown","ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","Axios","instanceConfig","configOrUrl","boolean","contextHeaders","requestInterceptorChain","synchronousRequestInterceptors","responseInterceptorChain","newConfig","onFulfilled","onRejected","getUri","generateHTTPMethod","isForm","core_Axios","executor","resolvePromise","_listeners","onfulfilled","cancel_CancelToken","helpers_HttpStatusCode","axios","createInstance","defaultConfig","Cancel","spread","formToJSON","getAdapter","lib_axios","MIN_LENGTH_FOR_NSN","MAX_LENGTH_FOR_NSN","MAX_LENGTH_COUNTRY_CODE","VALID_DIGITS","VALID_PUNCTUATION","PLUS_CHARS","FIRST_GROUP_PATTERN","formatNationalNumberUsingFormat","useInternationalFormat","withNationalPrefix","formattedNumber","carrierCode","internationalFormat","nationalPrefixFormattingRule","applyInternationalSeparatorStyle","SINGLE_IDD_PREFIX_REG_EXP","_createForOfIteratorHelperLoose","allowArrayLike","enumerableOnly","sym","_objectSpread","_defineProperty","formatExtension","Metadata","hasCountry","countryCallingCode","selectNumberingPlan","nationalNumber","addExtension","formatNationalNumber","formatRFC3966","fromCountry","formatIDD","fromCountryCallingCode","getCountryCallingCode","iddPrefix","getIddPrefix","callingCode","countryMetadata","defaultIDDPrefix","IDDPrefix","formatAs","chooseFormatForNumber","availableFormats","nationalNnumber","_step","_iterator","leadingDigitsPatterns","lastLeadingDigitsPattern","matchesEntirely","nationalPrefixIsOptionalWhenFormattingInNationalFormat","nationalPrefix","RFC3966_EXTN_PREFIX","getExtensionDigitsPattern","createExtensionPattern","purpose","possibleSeparatorsBetweenNumberAndExtLabel","possibleCharsAfterExtLabel","optionalExtnSuffix","possibleSeparatorsNumberExtLabelNoComma","NON_FIXED_LINE_PHONE_TYPES","getNumberType","nationalNumberPattern","isNumberTypeEqualTo","possibleLengths","objectConstructor","MIN_LENGTH_PHONE_NUMBER_PATTERN","VALID_PHONE_NUMBER","VALID_PHONE_NUMBER_START_REG_EXP","VALID_PHONE_NUMBER_WITH_EXTENSION","VALID_PHONE_NUMBER_PATTERN","isViablePhoneNumber","isViablePhoneNumberStart","regular_expression","semver_compare","_classCallCheck","Constructor","_defineProperties","_createClass","protoProps","staticProps","DEFAULT_EXT_PREFIX","CALLING_CODE_REG_EXP","validateMetadata","typeOf","setVersion","nonGeographic","nonGeographical","getCountryMetadata","getCountryCodesForCallingCode","countryCodes","countryCallingCodes","numberingPlan","NumberingPlan","hasCallingCode","getNumberingPlanMetadata","getCountryCodeForCallingCode","nationalPrefixForParsing","nationalPrefixTransformRule","leadingDigits","country_phone_code_to_countries","country_calling_codes","globalMetadataObject","_getFormats","getDefaultCountryMetadataForRegion","_getNationalPrefixFormattingRule","_nationalPrefixForParsing","_getNationalPrefixIsOptionalWhenFormatting","_type2","getType","usesNationalPrefix","FIRST_GROUP_ONLY_PREFIX_PATTERN","_createSuper","Derived","hasNativeReflectConstruct","Super","_getPrototypeOf","NewTarget","_possibleConstructorReturn","_assertThisInitialized","ReferenceError","_wrapNativeSuper","_cache","_isNativeFunction","Wrapper","_Error","_inherits","subClass","superClass","EXTN_PATTERN","DIGITS","parseDigit","parseIncompletePhoneNumber","parsePhoneNumberCharacter","prevParsedCharacters","checkNumberLength","checkNumberLengthForType","type_info","possible_lengths","mobile_type","mergeArrays","actual_length","minimum_length","isPossibleNumber","getPossibleCountriesForNumber","possibleCountries","couldNationalNumberBelongToCountry","_metadata","countryOrCountryCallingCode","_getCountryAndCountry","getCountryAndCountryCallingCode","metadataJson","isCountryCode","isPossiblePhoneNumber","isNonGeographicCallingCode","CAPTURING_DIGIT_PATTERN","extractNationalNumber","_extractNationalNumbe","extractNationalNumberFromPossiblyIncompleteNumber","prefixPattern","prefixMatch","capturedGroupsCount","hasCapturedGroups","prefixBeforeNationalNumber","possiblePositionOfTheFirstCapturedGroup","shouldHaveExtractedNationalPrefix","nationalNumberBefore","nationalNumberAfter","isPossibleIncompleteNationalNumber","extractCountryCallingCode","isNumberWithIddPrefix","numberWithoutIDD","stripIddPrefix","IDDPrefixPattern","matchedGroups","_extractCountryCallin","extractCountryCallingCodeFromInternationalNumberWithoutPlusSign","possibleShorterNumber","possibleShorterNationalNumber","shorterNumber","countryCallingCodeSource","_countryCallingCode","USE_NON_GEOGRAPHIC_COUNTRY_CODE","getCountryByCallingCode","nationalPhoneNumber","defaultCountry","getCountryByNationalNumber","matchingCountries","PLUS_SIGN","RFC3966_PHONE_DIGIT_","RFC3966_GLOBAL_NUMBER_DIGITS_","RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_","ALPHANUM_","RFC3966_DOMAINNAME_PATTERN_","RFC3966_PREFIX_","RFC3966_PHONE_CONTEXT_","RFC3966_ISDN_SUBADDRESS_","extractFormattedPhoneNumberFromPossibleRfc3966NumberUri","numberToParse","phoneNumberString","extractFormattedPhoneNumber","phoneContext","extractPhoneContext","numberToExtractFrom","indexOfPhoneContext","phoneContextStart","phoneContextEnd","isPhoneContextValid","indexOfNationalNumber","indexOfRfc3966Prefix","indexOfIsdn","MAX_INPUT_STRING_LENGTH","PHONE_NUMBER_START_PATTERN","AFTER_PHONE_NUMBER_END_PATTERN","_parseInput","parseInput","_extractFormattedPhoneNumber","throwOnError","startsAt","withExtensionStripped","extractExtension","numberWithoutExtension","formattedPhoneNumber","_parsePhoneNumber","parsePhoneNumber","defaultCallingCode","exactCountry","hasSelectedNumberingPlan","__countryCallingCodeSource","possible","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_s","_arr","_n","_d","_nonIterableRest","_normalizeArguments","normalizeArguments","_Array$prototype$slic","_Array$prototype$slic2","arg_1","arg_2","arg_3","arg_4","arg_5","_formatNumber","withMetadataArgument","_isValidNumber","_parseNumber","_parse","metadata_min_json","AC","AD","AE","AF","AG","AI","AL","AM","AO","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BS","BT","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FJ","FK","FM","FO","FR","GA","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GU","GW","GY","HK","HN","HT","HU","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LK","LR","LS","LU","LV","LY","MA","MC","MD","MF","MG","MH","MK","ML","MN","MO","MP","MQ","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","ST","SV","SX","SY","SZ","TA","TC","TG","TJ","TK","TL","TM","TN","TO","TV","TW","TZ","UA","UG","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW","colorNeutral0","cssVar","colorNeutral100","colorNeutral200","colorNeutral300","colorNeutral400","colorNeutral500","colorNeutral600","colorNeutral700","colorNeutral800","colorNeutral900","colorNeutral1000","colorWarning100","colorWarning200","colorWarning300","colorWarning400","colorWarning500","colorWarning600","colorWarning700","colorWarning800","colorWarning900","colorWarning1000","colorDanger100","colorDanger200","colorDanger300","colorDanger400","colorDanger500","colorDanger600","colorDanger700","colorDanger800","colorDanger900","colorDanger1000","colorSuccess100","colorSuccess200","colorSuccess300","colorSuccess400","colorSuccess500","colorSuccess600","colorSuccess700","colorSuccess800","colorSuccess900","colorSuccess1000","colorInfo100","colorInfo200","colorInfo300","colorInfo400","colorInfo500","colorInfo600","colorInfo700","colorInfo800","colorInfo900","colorInfo1000","colorFocus","componentIconButtonHover","componentIconButtonActive","componentIconButtonHoverInteractive","componentIconButtonActiveInteractive","componentIconButtonHoverOnDark","componentIconButtonActiveOnDark","componentIconButtonHoverInfo","componentIconButtonActiveInfo","componentIconButtonHoverSuccess","componentIconButtonActiveSuccess","componentIconButtonHoverWarning","componentIconButtonActiveWarning","componentIconButtonHoverDanger","componentIconButtonActiveDanger","onInteractive","onAppNav","onHighlight","interactiveHover","interactiveActive","surfaceDark","deselected","deselectedHover","deselectedActive","bgHover","borderMuted","bgActive","iconButton","hoverInteractive","activeInteractive","hoverOnDark","activeOnDark","hoverInfo","activeInfo","hoverSuccess","activeSuccess","hoverWarning","activeWarning","hoverDanger","activeDanger","accent","focusColor","accordion","headerFont","bodyFont","commonInput","baseBorderColor","basePaddingHorizontal","basePaddingVertical","baseFont","baseTextColor","baseBorderRadius","baseBackground","focusRingColor","hoverBorderColor","readOnlyBackground","readOnlyBorderColor","placeholderTextColor","labelMarginBottom","descriptionMarginBottom","invalidBorderColor","helpTextGap","iconBackground","fallbackBackground","fallbackColor","baseFocusRingColor","baseIconMarginToText","primaryBackground","primaryHoverBackground","primaryActiveBackground","primaryTextColor","secondaryBorderColor","secondaryHoverBackground","secondaryActiveBackground","secondaryTextColor","ghostHoverBackground","ghostActiveBackground","ghostTextColor","dangerBackground","dangerHoverBackground","dangerActiveBackground","dangerTextColor","xSmallPaddingVertical","xSmallPaddingHorizontal","xSmallFont","smallSemiBold","xSmallMinWidth","xSmallMinHeight","xSmallIconPadding","xSmallIconSize","smallPaddingVertical","smallPaddingHorizontal","smallFont","smallMinWidth","smallMinHeight","smallIconPadding","smallIconSize","mediumPaddingVertical","mediumPaddingHorizontal","mediumFont","mediumMinWidth","mediumMinHeight","mediumIconPadding","mediumIconSize","largePaddingVertical","largePaddingHorizontal","largeFont","largeMinWidth","largeMinHeight","largeIconPadding","largeIconSize","xLargePaddingVertical","xLargePaddingHorizontal","xLargeFont","xLargeMinWidth","xLargeMinHeight","xLargeIconPadding","xLargeIconSize","interactiveBackground","interactiveTextColor","brandDarkBackground","brandDarkTextColor","brandLightBackground","brandLightTextColor","neutralDarkBackground","neutralDarkTextColor","neutralLightBackground","neutralLightTextColor","smallText","mediumText","badgeText","basePadding","baseAdjustTextPadding","successBackground","successTextColor","infoBackground","infoTextColor","warningBackground","warningTextColor","smallHeight","mediumHeight","divider","xSmallSize","smallSize","mediumSize","largeSize","xLargeSize","baseText","baseHoverBackground","baseActiveBackground","interactiveHoverBackground","interactiveActiveBackground","onDarkTextColor","onDarkHoverBackground","onDarkActiveBackground","infoHoverBackground","infoActiveBackground","successHoverBackground","successActiveBackground","warningHoverBackground","warningActiveBackground","smallPadding","mediumPadding","largePadding","notificationAlert","baseIconMargin","infoBorderColor","infoIconColor","successBorderColor","successIconColor","warningBorderColor","warningIconColor","dangerBorderColor","dangerIconColor","spinner","tooltip","baseElevation","baseArrowMargin","darkBackground","darkTextColor","lightBackground","lightTextColor","arrowBorderRadius","baseMinHeight","iconPaddingLeft","iconFocusRingColor","invalidPaddingRight","invalidIconColor","invalidIconSize","optionalFont","optionalTextColor","inputDate","inputTime","inputPhoneNumber","countrySelectTriggerHoverBg","countrySelectTriggerActiveBg","dialogAlert","innerPadding","headerText","headerTextAtMediumAndAbove","headerMarginBottom","bodyText","bodyTextAtMediumAndAbove","bodyMarginBottom","errorMarginBottom","buttonGroupGap","dialogModal","titleFont","titleFontAtMediumAndAbove","descriptionFont","descriptionFontAtMediumAndAbove","contentFont","tabNavigation","triggerPadding","triggerFont","triggerPassiveColor","triggerActiveFont","triggerActiveColor","triggerActiveBackground","triggerHoverColor","sliderBackground","inputSelect","triggerColor","triggerBackground","triggerPlaceholderColor","triggerSelectedBackground","triggerInvalidBackground","triggerInvalidBorder","selectIconColor","contentBackground","contentBorderRadius","contentBorderColor","contentBoxShadow","itemColor","itemBorderRadius","itemHeight","itemHeightMobile","itemPadding","itemPaddingMobile","itemDisabledColor","itemDisabledBackground","itemCheckedFont","itemCheckedBackground","itemHighlightBackground","itemSeparatorBackground","itemSeparatorSpacing","itemIndicatorSpacing","itemIndicatorSpacingMobile","itemIndicatorColor","itemScrollButtonColor","itemViewportPadding","itemViewportPaddingMobile","inputRadio","itemsGap","itemsMargin","itemsHorizontalGap","outlinedItemsGap","itemFont","itemTextColor","itemGap","indicatorBackground","indicatorBorderColor","indicatorOuterSize","indicatorInnerSize","activeIndicatorOutlineColor","checkedItemFont","checkedIndicatorBorderColor","outlinedItemPadding","outlinedItemMinHeight","outlinedItemBorderColor","outlinedItemBorderRadius","hoverOutlinedItemBorderColor","activeOutlinedItemOutlineColor","checkedOutlinedItemBackground","disabledOutlinedItemBackground","disabledIndicatorBorderColor","disabledIndicatorBackground","inputCheckbox","indicatorSize","checkedIndicatorBackground","inputSwitch","labelColor","labelFont","labelCheckedFont","inputIconColor","inputBg","inputCheckedBg","inputCheckedHoverBg","inputCheckedActiveBg","inputHoverBg","inputActiveBg","inputFocus","thumbBg","inputCombobox","triggerFontColor","triggerIconColor","triggerSelectedFont","contentFontColor","inputFont","inputBorderColor","inputHeight","emptyFont","emptyFontColor","emptyPadding","itemFontColor","itemMinHeight","itemHoverBackground","itemSelectedBackground","itemSubLabelFont","itemSubLabelFontColor","textLink","baseIconSize","activeTextColor","smallIconMargin","mediumIconMargin","largeText","largeIconMargin","helpText","baseMarginTop","baseMarginLeft","invalidTextColor","fileViewer","textColor","dropdownMenu","itemActiveBackground","attachment","baseBoxShadow","hoverBoxShadow","previewBackground","previewIconColor","nameFont","nameFontColor","metaFont","metaFontColor","toastNotification","baseGap","inputRating","indicatorHover","canHandoff","HandoffAppearAnimations","transformIsNone","enableHardwareAcceleration","allowTransformNone","transformValues","numToRun","addToCurrentFrame","processStep","stepId","getCurrent","cssVarTokeniser","countKey","colorTokeniser","numberTokeniser","tokenise","tokenised","numVars","numColors","numNumbers","fromThis","detectMixerFactory","animateValue","hasStopped","animationDriver","mapNumbersToKeyframes","iterationIsOdd","stopAnimationDriver","createAcceleratedAnimation","syncStart","cancelAnimation","safeCancel","isNone","getKeyframes","defaultOrigin","animatableTemplateValue","createInstantAnimation","acceleratedAnimation","lastUpdated","scheduleVelocityCheck","velocityChange","velocityCheck","findValueType","makeTargetAnimatable","setVariants","variantLabels","getOriginFromTransition","variantDidChange","snapToDefault","isInteger","React__default","projectionFrameData","resetRotation","rootScroll","projectionTransform","prevProjectionTransform","hasRotate","isPositionalKey","checkAndConvertChangedValueTypes","targetPositionalKeys","removedTransformValues","hasAttemptedToRemoveTransformValues","changedValueTypeKeys","fromType","toType","numKeyframes","fromIndex","convertedTarget","convertChangedValueTypes","changedKeys","originBbox","elementComputedStyle","targetBbox","unitConversion","hasPositionalKey","parseDomVariant","resolveCSSVariables","featureNames","numFeatures","renderedProps","MeasureLayoutComponent","canMutate","makeTargetAnimatableFromInstance","getOrigin","transitionOrigin","checkTargetForNewValues","newValueKeys","numNewValues","targetValue","useIsMounted","useForceUpdate","forcedRenderCount","setForcedRenderCount","filteredChildren","childrenToRender","allChildren","updateChildLookup","useUnmountEffect","targetKeys","numPresent","insertionIndex","exitingComponent","leftOverKeys","childKey","leftOverKey","presentChild","presentChildKey","DragControls","componentControls","createDragControls","useDragControls","animationControls","hasMounted","useAnimation","useAnimationControls","$6cc32821e9371a1c$var$SELECTION_KEYS","$6cc32821e9371a1c$var$LAST_KEYS","$6cc32821e9371a1c$var$FIRST_LAST_KEYS","$6cc32821e9371a1c$var$MENU_NAME","$6cc32821e9371a1c$var$Collection","$6cc32821e9371a1c$var$useCollection","$6cc32821e9371a1c$var$createCollectionScope","$epM9y$createCollection","$6cc32821e9371a1c$var$createMenuContext","$6cc32821e9371a1c$export$4027731b685e72eb","$epM9y$createContextScope","$epM9y$createPopperScope","$epM9y$createRovingFocusGroupScope","$6cc32821e9371a1c$var$usePopperScope","$6cc32821e9371a1c$var$useRovingFocusGroupScope","$6cc32821e9371a1c$var$MenuProvider","$6cc32821e9371a1c$var$useMenuContext","$6cc32821e9371a1c$var$MenuRootProvider","$6cc32821e9371a1c$var$useMenuRootContext","$6cc32821e9371a1c$export$9fa5ebd18bee4d43","$epM9y$forwardRef","__scopeMenu","$epM9y$createElement","$epM9y$Anchor","$epM9y$babelruntimehelpersesmextends","$6cc32821e9371a1c$var$PORTAL_NAME","$6cc32821e9371a1c$var$PortalProvider","$6cc32821e9371a1c$var$usePortalContext","$6cc32821e9371a1c$var$CONTENT_NAME","$6cc32821e9371a1c$var$MenuContentProvider","$6cc32821e9371a1c$var$useMenuContentContext","$6cc32821e9371a1c$export$479f0f2f71193efe","$epM9y$Presence","$6cc32821e9371a1c$var$MenuRootContentModal","$6cc32821e9371a1c$var$MenuRootContentNonModal","$epM9y$useRef","$epM9y$useComposedRefs","$epM9y$useEffect","$epM9y$hideOthers","$6cc32821e9371a1c$var$MenuContentImpl","disableOutsideScroll","$epM9y$composeEventHandlers","currentItemId","setCurrentItemId","$epM9y$useState","pointerGraceTimerRef","pointerGraceIntentRef","pointerDirRef","lastPointerXRef","ScrollLockWrapper","$epM9y$RemoveScroll","$epM9y$Fragment","scrollLockWrapperProps","$epM9y$Slot","_items$find","_items$find2","currentMatch","nextMatch","$6cc32821e9371a1c$var$getNextMatch","currentMatchIndex","wrappedValues","$6cc32821e9371a1c$var$wrapArray","$epM9y$useFocusGuards","isPointerMovingToSubmenu","$epM9y$useCallback","_pointerGraceIntentRe","_pointerGraceIntentRe2","$6cc32821e9371a1c$var$isPointerInGraceArea","cursorPos","$6cc32821e9371a1c$var$isPointInPolygon","onItemEnter","_contentRef$current","onPointerGraceIntentChange","intent","$epM9y$FocusScope","_contentRef$current2","$epM9y$DismissableLayer","$epM9y$Root1","isUsingKeyboardRef","$epM9y$Content","$6cc32821e9371a1c$var$getOpenState","isKeyDownInside","isCharacterKey","$6cc32821e9371a1c$var$focusFirst","$6cc32821e9371a1c$var$whenMouse","pointerXHasChanged","newDir","$6cc32821e9371a1c$var$ITEM_NAME","$6cc32821e9371a1c$var$ITEM_SELECT","$6cc32821e9371a1c$export$2ce376c2cc3355c8","$6cc32821e9371a1c$var$MenuItemImpl","menuItem","itemSelectEvent","$epM9y$dispatchDiscreteCustomEvent","_props$onPointerDown","_event$currentTarget","setTextContent","_menuItem$textContent","$epM9y$Item","$epM9y$Primitive","$6cc32821e9371a1c$var$RadioGroupProvider","$6cc32821e9371a1c$var$useRadioGroupContext","$6cc32821e9371a1c$var$ITEM_INDICATOR_NAME","$6cc32821e9371a1c$var$ItemIndicatorProvider","$6cc32821e9371a1c$var$useItemIndicatorContext","$6cc32821e9371a1c$var$SUB_NAME","$6cc32821e9371a1c$var$MenuSubProvider","$6cc32821e9371a1c$var$useMenuSubContext","$6cc32821e9371a1c$export$be92b6f5f03c0fe9","$epM9y$useCallbackRef","$epM9y$useDirection","handlePointer","$epM9y$Root","$6cc32821e9371a1c$export$b688253958b8dfe7","$6cc32821e9371a1c$export$602eac185826482c","$epM9y$Portal","$6cc32821e9371a1c$export$7c6e2c02157bb7d2","$6cc32821e9371a1c$export$6d08773d2e66f8f2","$d08ef79370b62062$var$DROPDOWN_MENU_NAME","$d08ef79370b62062$var$createDropdownMenuContext","$d08ef79370b62062$export$c0623cd925aeb687","$9kmUS$createContextScope","$9kmUS$createMenuScope","$d08ef79370b62062$var$useMenuScope","$d08ef79370b62062$var$DropdownMenuProvider","$d08ef79370b62062$var$useDropdownMenuContext","$d08ef79370b62062$export$d2469213b3befba9","$9kmUS$forwardRef","__scopeDropdownMenu","menuScope","$9kmUS$createElement","$9kmUS$Anchor","$9kmUS$babelruntimehelpersesmextends","$9kmUS$Primitive","$9kmUS$composeRefs","$9kmUS$composeEventHandlers","$d08ef79370b62062$export$6e76d93a37c01248","$9kmUS$useRef","$9kmUS$Content","$d08ef79370b62062$export$ed97964d1871885d","$9kmUS$Item","$d08ef79370b62062$export$be92b6f5f03c0fe9","$9kmUS$useControllableState","$9kmUS$useId","$9kmUS$useCallback","$9kmUS$Root","$d08ef79370b62062$export$41fb9f06171c75f4","$d08ef79370b62062$export$602eac185826482c","$9kmUS$Portal","$d08ef79370b62062$export$7c6e2c02157bb7d2","$d08ef79370b62062$export$6d08773d2e66f8f2","$e698a72e93240346$var$CHECKBOX_NAME","$e698a72e93240346$var$createCheckboxContext","$e698a72e93240346$export$b566c4ff5488ea01","$1bpvS$createContextScope","$e698a72e93240346$var$CheckboxProvider","$e698a72e93240346$var$useCheckboxContext","$e698a72e93240346$export$48513f6b9f8ce62d","$1bpvS$forwardRef","__scopeCheckbox","checkboxProps","$1bpvS$useState","$1bpvS$useComposedRefs","$1bpvS$useRef","$1bpvS$useControllableState","initialCheckedStateRef","$1bpvS$useEffect","$1bpvS$createElement","$1bpvS$Primitive","$1bpvS$babelruntimehelpersesmextends","$e698a72e93240346$var$isIndeterminate","$e698a72e93240346$var$getState","$1bpvS$composeEventHandlers","$e698a72e93240346$var$BubbleInput","$e698a72e93240346$export$59aad738f51d1c05","indicatorProps","$1bpvS$Presence","$1bpvS$usePrevious","$1bpvS$useSize","indeterminate","$e698a72e93240346$export$be92b6f5f03c0fe9","$e698a72e93240346$export$adb584737d712b70","$ce77a8961b41be9e$var$createRadioContext","$ce77a8961b41be9e$export$67d2296460f1b002","$8Wolv$createContextScope","$ce77a8961b41be9e$var$RadioProvider","$ce77a8961b41be9e$var$useRadioContext","$ce77a8961b41be9e$export$d7b12c4107be0d61","$8Wolv$forwardRef","__scopeRadio","onCheck","radioProps","$8Wolv$useState","$8Wolv$useComposedRefs","$8Wolv$useRef","$8Wolv$createElement","$8Wolv$Primitive","$8Wolv$babelruntimehelpersesmextends","$ce77a8961b41be9e$var$getState","$8Wolv$composeEventHandlers","$ce77a8961b41be9e$var$BubbleInput","$ce77a8961b41be9e$export$d35a9ffa9a04f9e7","$8Wolv$Presence","$8Wolv$usePrevious","$8Wolv$useSize","$8Wolv$useEffect","$f99a8c78507165f7$var$ARROW_KEYS","$f99a8c78507165f7$var$RADIO_GROUP_NAME","$f99a8c78507165f7$var$createRadioGroupContext","$f99a8c78507165f7$export$c547093f11b76da2","$8Wolv$createRovingFocusGroupScope","$f99a8c78507165f7$var$useRovingFocusGroupScope","$f99a8c78507165f7$var$useRadioScope","$f99a8c78507165f7$var$RadioGroupProvider","$f99a8c78507165f7$var$useRadioGroupContext","$f99a8c78507165f7$export$a98f0dcb43a68a25","__scopeRadioGroup","$8Wolv$useDirection","$8Wolv$useControllableState","$8Wolv$Root","$f99a8c78507165f7$export$9f866c100ef519e4","radioScope","isArrowKeyPressedRef","$8Wolv$Item","_ref$current","$f99a8c78507165f7$export$5fb54c671a65c88","$f99a8c78507165f7$export$be92b6f5f03c0fe9","$f99a8c78507165f7$export$6d08773d2e66f8f2","$f99a8c78507165f7$export$adb584737d712b70","_getCountryCallingCode","AsYouTypeState","onCallingCodeChange","international","missingPlus","resetNationalSignificantNumber","initCountryAndCallingCode","nationalSignificantNumber","getNationalDigits","nationalSignificantNumberMatchesInput","complexPrefixBeforeNationalSignificantNumber","_Object$keys","setCountry","setCallingCode","nextDigits","DIGIT_PLACEHOLDER","DIGIT_PLACEHOLDER_MATCHER","cutAndStripNonPairedParens","cutBeforeIndex","stripNonPairedParens","dangling_braces","cleared_string","_dangling_braces","parseDigits","formatCompleteNumber","shouldTryNationalPrefixFormattingRule","getSeparatorAfterNationalPrefix","formatNationalNumberWithAndWithoutNationalPrefixFormattingRule","useNationalPrefixFormattingRule","formattedNationalNumber","isValidFormattedNationalNumber","PatternParser","instructions","parsePattern","_this$context$","expandSingleElementArray","OPERATOR","rightPart","startContext","endContext","oneOfSet","parseOneOfSet","ILLEGAL_CHARACTER_REGEXP","PatternMatcher","matchTree","allowOverflow","matchedChars","characterString","partialMatch","restCharacters","_step2","_iterator2","_char","LONGEST_DUMMY_PHONE_NUMBER","NATIONAL_PREFIX_SEPARATORS_PATTERN","CREATE_CHARACTER_CLASS_PATTERN","CREATE_STANDALONE_DIGIT_PATTERN","NON_ALTERING_FORMAT_REG_EXP","AsYouTypeFormatter","resetFormat","chosenFormat","nationalNumberTemplate","populatedNationalNumberTemplate","populatedNationalNumberTemplatePosition","isNANP","matchingFormats","narrowDownMatchingFormats","canFormatCompleteNumber","formattedCompleteNumber","setNationalNumberTemplate","formatNationalNumberWithNextDigits","previouslyChosenFormat","newlyChosenFormat","chooseFormat","formatNextNationalNumberDigits","leadingDigitsPatternIndex","formatSuits","formatMatches","nationalPrefixIsMandatoryWhenFormattingInNationalFormat","leadingDigitsPatternsCount","leadingDigitsPattern","getFormatFormat","createTemplateForFormat","getTemplateForFormat","internationalPrefix","getInternationalPrefixBeforeCountryCallingCode","getDigitsWithoutInternationalPrefix","strictPattern","nationalNumberDummyDigits","nationalPrefixIncludedInTemplate","numberFormatWithNationalPrefix","populateTemplateWithDigits","VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN","VALID_FORMATTED_PHONE_NUMBER_PART","AFTER_PHONE_NUMBER_DIGITS_END_PATTERN","COMPLEX_NATIONAL_PREFIX","AsYouTypeParser","onNationalSignificantNumberChange","justLeadingPlus","_extractFormattedDigi","extractFormattedDigitsAndPlus","_extractFormattedDigi3","_extractFormattedDigitsAndPlus","extractedNumber","hasPlus","_extractFormattedDigi4","formattedDigits","_extractFormattedDigi2","startInternationalNumber","inputDigits","hasReceivedThreeLeadingDigits","appendDigits","extractIddPrefix","isWaitingForCountryCallingCode","appendNationalSignificantNumberDigits","hasExtractedNationalSignificantNumber","extractNationalSignificantNumber","_extractCountryCallingCode","couldPossiblyExtractAnotherNationalSignificantNumber","nationalDigits","onExtractedNationalNumber","prevNationalSignificantNumber","_extractNationalNumbe2","nationalSignificantNumberIndex","extractAnotherNationalSignificantNumber","fixMissingPlus","extractCallingCodeAndNationalSignificantNumber","_extractCountryCallin2","newCallingCode","AsYouType","optionsOrDefaultCountry","_this$getCountryAndCa2","getCountryAndCallingCode","_this$parser$input","formattedOutput","determineTheCountryIfNeeded","reExtractNationalSignificantNumber","getFullNumber","getNonFormattedNumber","isInternational","getCallingCode","_getCountry","isCountryCallingCodeAmbiguous","determineTheCountry","_this$state","getNonFormattedNationalNumberWithPrefix","_this$state2","_this$state3","_callingCode","ambiguousCountries","getNumber","isPossible","getTemplate","getNonFormattedTemplate","_AsYouType","parsePhoneNumberWithError","parsePhoneNumberWithError_","_parsePhoneNumberWithError","t7","b0","o7","n7","f7","r7","L4","C2","_p","R3","vt","Ct","M7","M5","I4","S4","C1","D3","b7","i7","xt","kt","$1","Y1","z7","T4","V4","g5","W1","a7","y0","b4","c7","H0","zt","c2","N1","F0","yt","Ht","u3","w0","s7","z4","y4","Ft","wt","d7","p7","F4","u7","Tt","Vt","It","St","y7","Bt","Et","H7","h7","L0","F7","afterSanitizeAttributes","afterSanitizeElements","afterSanitizeShadowDOM","beforeSanitizeAttributes","beforeSanitizeElements","beforeSanitizeShadowDOM","uponSanitizeAttribute","uponSanitizeElement","uponSanitizeShadowNode","f1","D1","X1","n2","r2","S1","d1","n3","r3","a3","a5","F2","D2","w2","L2","c3","T2","c5","s5","f0","s3","V2","I2","N2","d5","C0","I3","S3","B3","E3","$2","g0","M4","Z2","d3","O2","S2","x0","b1","B2","k4","M0","A3","Rt","u5","j1","P3","f5","m1","C5","k0","e1","U1","m5","n1","p3","T1","E2","Ot","e2","fontWeightRegular","fontWeightSemiBold","textDisplayXlarge","textDisplayLarge","textDisplayMedium","textDisplaySmall","textHeadingXlarge","textHeadingLarge","textHeadingMedium","textHeadingSmall","textHeadingXsmall","textBodyLargeRegular","textBodyLargeSemiBold","textBodyRegular","textBodySemiBold","textBodySmallRegular","textBodySmallSemiBold","textLabelLargeRegular","textLabelLargeSemiBold","textLabelXlargeRegular","textLabelXlargeSemiBold","textLabelRegular","textLabelSemiBold","textLabelSmallRegular","textLabelSmallSemiBold","textLabelXsmallRegular","textLabelXsmallSemiBold","spacingX0_25","spacingX0_5","spacingX1","spacingX1_5","spacingX2","spacingX2_5","spacingX3","spacingX4","spacingX5","spacingX6","spacingX7","spacingX8","spacingX9","sizeX0_25","sizeX0_5","sizeX1","sizeX1_5","sizeX2","sizeX2_5","sizeX3","sizeX4","sizeX5","sizeX6","sizeX7","sizeX8","sizeX9","elevationSkim","elevationLifted","elevationFloating","elevationFlying","borderRadiusXsmall","borderRadiusSmall","borderRadiusMedium","borderRadiusLarge","borderRadiusPill","borderRadiusCircle","xLargeRegular","xLargeSemiBold","circle","J1","Ut","e3","Xt","displayZero","L7","u1","Qt","$rotation","$mirror","$center","qt","K1","I7","infoCircle","chevronUp","chevronRight","chevronDown","chevronLeft","laboratoryFlask","videoFilled","videoCrossed","microphoneFilled","microphoneCrossed","speaker","speakerCrossed","speakerViewFilled","userFilled","warningFilled","gridViewFilled","calendarClockFilled","calendarFilled","envelopeFilled","waitingRoomFilled","cog","cogFilled","notesBoardPencil","notesBoardMagnifying","pinMark","speechBubbleLines","calendarX","calendar","clock","house","houseFilled","wallet","logout","login","checkCircleFilled","arrowUp","arrowRight","arrowDown","arrowLeft","arrowDecrease","arrowDisappeared","arrowIncrease","arrowIncreaseSharp","arrowUnchanged","paperPlane","paperPlaneFilled","paperClip","medicalPlus","medicalPlusFilled","archiveFilled","prohibited","warningCircle","pin","pinFilled","pinCrossed","playStoreLogo","appleLogo","ellipsisVertical","ellipsisHorizontal","keyboardEnter","bin","wifi","creditCard","padLockKey","userCard","zoomIn","zoomOut","copyClipboard","undo","documentExport","resizeSmaller","resizeLarger","pencil","intoBuilding","magnifyingGlass","padLock","pencilPaper","stopwatch","hourglass","duplicate","notesBoard","listBullet","wifiCrossed","speechBubbleDots","speechBubble","phoneX","eye","eyeCrossed","screenShare","linkBroken","userX","userPlus","syringe","bandaid","stethoscope","cameraSwitch","thermometer","graph","suitcase","thumbUp","thumbDown","deviceLaptop","deviceSmartphone","deviceTablet","medicalPlusThin","videoBackground","archive","secureConnection","treeChart","linkIn","linkOut","heart","translateCrossed","paragraph","smartphoneSms","checkCircle","xCircle","plusCircle","questionMarkCircle","inbox","clockArrow","arrowRoundRight","arrowRoundLeft","minusCircle","calendarClock","bell","bellNotification","bellCrossed","bookUser","bookCrossed","waitingRoom","waitingRoomCog","condom","gridView","building","calendarCog","speechBubbleLinesCog","envelopMove","houseArrow","textItalic","textBold","sliders","listBullet2","listNumber","speechBubbleExclamation","lineStraight","lineWave","regulatory_ce","regulatory_ce2797","regulatory_release_date","regulatory_manufacturer","regulatory_ifu","regulatory_medical_device","regulatory_red_robin","regulatory_udi","regulatory_ref","starFilled","videoBlur","lightbulb","hangUp","boardExclamation","fillFrame","fitFrame","phoneDown","s2","busy","T0","Cl","E7","m3","V0","P7","R7","V1","k5","B1","insertTokens","f3","Z7","D7","Fl","N7","I0","b5","visibaIOSApp","S0","B0","E4","A4","_p2","_i2","y5","Vl","displayXLarge","displayLarge","displayMedium","displaySmall","headingXLarge","headingLarge","headingMedium","headingSmall","headingXSmall","bodyLargeRegular","bodyLargeSemiBold","bodyRegular","bodySemiBold","bodySmallRegular","bodySmallSemiBold","labelXLargeRegular","labelXLargeSemiBold","labelLargeRegular","labelLargeSemiBold","labelRegular","labelSemiBold","labelSmallRegular","labelSmallSemiBold","labelXSmallRegular","labelXSmallSemiBold","Il","$variant","$color","z1","Sl","truncate","Bl","El","Al","Pl","Rl","Dl","Nl","F1","J7","k7","Xl","l1","normal","Kl","Ql","Yl","R4","t2","g3","eo","portalElement","D4","r1","oo","E1","tooltipVariant","M1","$4","q7","$3","listItemParent","t6","l6","Co","xo","vo","up","down","Mo","o6","bo","O4","Fragment$1","w5","g2","QUIRK_HACK_TO_BE_USED_IN_RENDER_BODY","convertStyleIntoClassName","breakpointMapping","toHyphenCase","numberToString","cachedKeys","cachedValues","key_i","KEY_DIGIT","values_i","VALUE_DIGIT","getHexId","getSheet","BREAK_POINT_DIGIT","insertedRules","insertIndex","L5","T5","V5","I5","flexBasis","flexWrap","w1","Eo","_4","No","n6","_o","jo","a6","G2","s6","Yo","d6","p6","u6","m6","f6","C6","g6","textOverrides","sv","pn","un","hC","X2","createPortal","Mn","j2","kn","KC","zn","X4","closeButton","A2","Fn","A1","Bn","O3","L1","buttonGroup","S5","An","c1","Nn","$n","B5","l2","innerContent","closeCornerButton","On","Xn","Jn","qn","closeable","w6","I6","T6","L6","B6","E6","A6","G1","W2","N6","contentInner","Jv","$6","R6","$breakPoints","R0","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","ur","_6","fileExcel","filePdf","fileVideo","fileWord","fileImage","fileOtherFormat","attachedForm","o2","am","ao","au","az","bn","bw","by","cm","cn","co","cr","cu","cv","cz","dm","dz","er","fr","ga","gm","gn","gq","gr","gw","gy","hn","hu","iq","ir","jm","jp","km","kp","kr","kw","ls","lu","lv","ly","mn","mr","mv","mw","my","mz","np","nr","nz","om","pw","ro","ru","rw","sn","so","sr","sy","sz","tn","tt","tv","tw","us","uy","uz","vn","zm","zw","Mr","X6","A5","o1","Y6","e8","t8","Ir","disabledSubmitButtonWhenInvalid","allowSubmitEventPropagation","_T","Vr","Tr","_H","_z","Lr","submitError","setSubmitError","successMessage","noValidate","Q6","J6","j6","Z1","J2","R5","Er","I1","a8","c8","Dr","fullHeight","onMouseOut","D0","d8","X3","u8","g1","Xr","Qr","qr","N0","limit","alwaysShow","helpTextProps","characterCountProps","D5","additionalInformation","staticTexts","$5","t1","O5","_5","indicator","g8","f8","G5","v8","X5","s1","W5","Command","subLabel","J5","selectItem","M3","contentHead","contentInputIcon","contentInput","contentList","contentEmpty","y8","q5","G0","triggerIcon","disallowDeselection","M8","My","e4","F8","o4","l4","radio","oH","L8","T8","H8","k3","E8","K3","sheetBackground","sheetContent","sheetHeader","sheetScrollable","styledContent","S8","D8","arrowIcon","N8","M2","labelWrapper","scrollUpButton","scrollDownButton","labelSlot","$8","A8","I8","O8","j0","J0","showPicker","nw","Y3","t0","Pw","O1","n0","d4","nL","r0","G8","X8","z3","countrySelect","getNumberValue","Q8","Y8","filled","J8","u4","e9","l9","$minWidth","onClickOutside","onBackdropClick","l3","i9","tabs","activeTab","changeTab","registerTab","unregisterTab","tabRoot","m2","u9","c9","d9","h9","m4","C9","es","hasStartedDragging","M9","b9","g9","y9","e5","R1","C4","F9","_F","X7","G7","U7","_w","_7","L9","t5","ps","T9","fs","V9","ks","$compactMode","$size","zs","compactMode","deleteTooltip","_P","w9","q1","A9","P9","itemStyle","D9","setHasDisabledScroll","setShowBarManually","currentFile","totalFiles","Ps","controlsList","disablePictureInPicture","disableRemotePlayback","_9","hasDisabledScroll","setCurrentIndex","setShowBar","$7","F3","U9","_G","n5","actionBar","counterSegment","navigationCurrent","X9","showBar","showBarManually","onDownloadError","goToNext","goToPrevious","_z2","G9","W9","topBar","K9","fader","sE","defaultStartIndex","setFiles","setStartIndex","B9","d0","u0","O7","_1","Cd","OE","ot","Sd","Ed","_Logger","channel","runtime","Runtime","strTemplate","replaceArgs","createMessage","LogLevel2","Verbose","Information","Fatal","msgRaw","isScheduledToPrint","printIndex","parsedMsg","parseMessage","extractedDataIndex","walkerIndex","openBraceIndex","closeBraceIndex","unwrapData","toLocaleTimeString","getCtxSection","_SE","VALIDATION_REGEX","getDateOfBirth","dateOfBirth","_GB","_NO","_DK","isTempCPR","TEMP_CPR_LAST_CHARS","_FI","CHECK_SUM_CHAR","NiN2","NiNFormatter2","COUNTRIES","splittedTemplate","nationalIdentityNumberArray","placeholderArrayWithoutDash","formattedNationalIdentityNumber","jsxRuntime","require$$0","reactJsxRuntime_production_min","requireReactJsxRuntime_production_min","useResize","useEventListener","savedListener","handleEventListener","getRefElement","getWindowSize","windowSize","setWindowSize","_executeHooks","_ArgumentError","_ApplicationError","delayTime","storeType","AggregateError","EvalError","RangeError","SyntaxError","URIError","asyncGeneratorStep","_throw"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["../patient/src/_cortex_shim/append_search_param_to_any_string.tsx","../patient/src/_cortex_shim/programmatic_browser_router.component.tsx","../patient/src/_cortex_shim/result_runtime.tsx","../patient/src/_cortex_shim/router.service.tsx","../patient/src/api/_api_base.tsx","../patient/src/api/_api_base_client.tsx","../patient/src/api/appointment_api.service.tsx","../patient/src/api/auth_api.service.tsx","../patient/src/api/basket_api.service.tsx","../patient/src/api/cases_api.service.tsx","../patient/src/api/dynamic_forms_api.service.tsx","../patient/src/api/general_api.service.tsx","../patient/src/api/generated/clientv2/models/form-opportunity.ts","../patient/src/api/generated/clientv2/models/states.ts","../patient/src/api/identity_api.service.tsx","../patient/src/api/office_api.service.tsx","../patient/src/api/red_robin_api.service.tsx","../patient/src/api/units_api.service.tsx","../packages/analytic/src/analytic.ts","../packages/analytic/src/matomo_tracker.ts","../patient/src/application/analytic/analytic.service.tsx","../patient/src/application/analytic/analytic_context.provider.tsx","../patient/src/application/analytic/analytic_link/analytic_link.component.tsx","../patient/src/application/application_storage_local.tsx","../patient/src/application/application_storage_local_dev.tsx","../patient/src/application/application_storage_session.tsx","../patient/src/application/authentication/auth.service.tsx","../patient/src/application/authentication/use_user.tsx","../patient/src/application/counter.tsx","../patient/src/application/feature_flags/feature_flag.service.tsx","../patient/src/application/hosting.service.tsx","../patient/src/application/http.service.tsx","../patient/src/_cortex_shim/parse_cookies.tsx","../patient/src/modules/is_absolute.tsx","../patient/src/application/http_error.tsx","../patient/src/application/i18n/not_yet_added_translation_dictionary.tsx","../patient/src/application/i18n/i18n_and_l10n.tsx","../patient/src/application/i18n/with_translation.tsx","../patient/src/application/platform.service.tsx","../patient/src/application/route.tsx","../patient/src/application/time/date.service.tsx","../patient/src/application/unit.service.tsx","../patient/src/_cortex_shim/todo.ts","../patient/src/application/universal_config.service.tsx","../patient/src/components/live_announcer/live_announcer.controller.tsx","../patient/src/_cortex_shim/sanitized_inject_html.tsx","../patient/src/application/use_title.tsx","../patient/src/application/validators.tsx","../patient/src/components/action_card.component.tsx","../patient/src/components/article.component.tsx","../patient/src/components/delayed_render.component.tsx","../patient/src/components/async.component.tsx","../patient/src/components/button_arrange.component.tsx","../patient/src/components/consent/consent.service.tsx","../patient/src/components/consent/consent_dialog.component.tsx","../patient/src/components/consent/consent_trigger.component.tsx","../patient/src/components/data_list.component.tsx","../patient/src/components/iframe_sheet.component.tsx","../patient/src/components/illustration/illustration.component.tsx","../patient/src/components/illustrative_view.component.tsx","../patient/src/components/logo.component.tsx","../patient/src/components/new_shimmer.component.tsx","../patient/src/components/notification_manager/notification/common.tsx","../patient/src/components/notification_manager/notification/local_push_notification.tsx","../patient/src/components/notification_manager/notification/bar_notification.tsx","../patient/src/components/notification_manager/notification/notification.service.tsx","../patient/src/components/nav.components.tsx","../patient/src/components/tab_bar.component.tsx","../patient/src/components/navigation_bar.component.tsx","../patient/src/_cortex_shim/clamp.tsx","../patient/src/components/qr_code.component.tsx","../patient/src/components/outlet_page.component.tsx","../patient/src/components/screen/_screen.context.tsx","../patient/src/components/screen/use_screen.context.tsx","../patient/src/components/title.component.tsx","../patient/src/components/step_back.component.tsx","../patient/src/components/top_bar.component.tsx","../patient/src/components/vonage_encryption_warning/has_end_to_end_encryption_support.module.tsx","../patient/src/components/vonage_encryption_warning/use_vonage_excryption_warning.hook.tsx","../patient/src/components/vonage_encryption_warning/vonage_encryption_warning.component.tsx","../patient/src/components/vonage_encryption_warning/_vonage_encryption_warning_title.component.tsx","../patient/src/components/vonage_encryption_warning/_vonage_encryption_warning_text.component.tsx","../patient/src/components/vonage_encryption_warning/_vonage_encryption_warning_dialog.component.tsx","../patient/src/constants.tsx","../patient/src/features/auth/_auth_method_link.component.tsx","../patient/src/features/auth/auth.controller.tsx","../patient/src/features/auth/_auth_methods.component.tsx","../patient/src/features/auth/auth.component.tsx","../patient/src/features/auth/_auth_sign_in_sheet.component.tsx","../patient/src/application/feature_flags/use_feature_flag.tsx","../patient/src/features/cases/_case_communicator.tsx","../patient/src/features/cases/_case_cache.service.tsx","../patient/src/features/cases/common.tsx","../patient/src/features/cases/case.service.tsx","../patient/src/api/physical_location_api.service.tsx","../patient/src/features/cases/case_appointment_model.tsx","../patient/src/api/messaging_conversations_api.service.tsx","../patient/src/features/cases/case_messaging_model.tsx","../patient/src/features/cases/case_model_shared.tsx","../patient/src/modules/quirk_ios_keyboard_lock_body_scroll.tsx","../patient/src/features/chat/_chat_input_area.component.tsx","../patient/src/features/chat/_read_until_container.component.tsx","../patient/src/application/use_is_visible.tsx","../patient/src/components/link_in_message.component.tsx","../patient/src/features/chat/_obfuscate_name.context.tsx","../patient/src/features/chat/_chat_bubble.component.tsx","../patient/src/features/chat/_constants.tsx","../patient/src/features/chat/_chat_new_message_floating_button.component.tsx","../patient/src/features/chat/_chat_auto_scroller.component.tsx","../patient/src/features/chat/_chat_new_messages_banner.component.tsx","../patient/src/features/chat/_chat_messages_container.component.tsx","../patient/src/features/chat/chat_communicator.tsx","../patient/src/features/chat/chat.controller.tsx","../patient/src/features/chat/chat.component.tsx","../patient/src/features/dynamic_form/dynamic_form.context.tsx","../patient/src/features/dynamic_form/_dynamic_form_root.component.tsx","../patient/src/features/dynamic_form/_dynamic_form_page.component.tsx","../patient/src/features/dynamic_form/dynamic_form.component.tsx","../patient/src/features/dynamic_form/_dynamic_form_description.component.tsx","../patient/src/features/dynamic_form/_dynamic_form_content.component.tsx","../patient/src/features/dynamic_form/_dynamic_form_actions.component.tsx","../patient/src/features/dynamic_form/dynamic_form_page_label.component.tsx","../patient/src/features/dynamic_form/form_card.component.tsx","../patient/src/features/dynamic_form/form_manager/form_data_providers/form_data_provider_basket.tsx","../patient/src/features/dynamic_form/form_manager/form_data_providers/form_data_provider_respondant.tsx","../patient/src/features/dynamic_form/form_manager/form_data_providers/form_data_provider_local.tsx","../patient/src/features/dynamic_form/form_manager/form_manager.service.tsx","../patient/src/features/dynamic_form/form_manager/form_questions/_form_option.tsx","../patient/src/features/dynamic_form/form_manager/form_questions/_form_question_base.tsx","../patient/src/features/dynamic_form/form_manager/form_questions/form_question_type_multichoice.tsx","../patient/src/features/dynamic_form/form_manager/form_questions/form_question_type_multiline.tsx","../patient/src/features/dynamic_form/form_manager/form_questions/form_question_type_single_choice_radio.tsx","../patient/src/features/dynamic_form/form_manager/form_questions/form_question_type_single_choice_select.tsx","../patient/src/features/dynamic_form/form_manager/form_questions/form_question_type_yes_no.tsx","../patient/src/features/dynamic_form/form_manager/form_worker.tsx","../patient/src/features/dynamic_form/form_manager/use_form_worker.tsx","../patient/src/features/file_manager/attached_file.component.tsx","../patient/src/application/http_file_server.service.tsx","../patient/src/features/file_manager/file_manager.service.tsx","../patient/src/features/file_manager/file_upload.component.tsx","../patient/src/features/file_manager/file_worker/common.tsx","../patient/src/features/file_manager/file_worker/file_worker_stale.tsx","../patient/src/features/file_manager/file_worker/_identity_resolver.tsx","../patient/src/features/file_manager/file_worker/file_worker.tsx","../patient/src/features/file_manager/use_file_worker_list.tsx","../patient/src/features/issues/unhandled_issues.service.tsx","../patient/src/features/issues/use_counted_issues.tsx","../patient/src/features/payment/_payment.context.tsx","../patient/src/features/payment/_payment_frame.component.tsx","../patient/src/features/payment/_payment_options.component.tsx","../patient/src/features/payment/_payment_state_conveyer.component.tsx","../patient/src/features/payment/payment.component.tsx","../patient/src/api/payment_api.service.tsx","../patient/src/features/payment/payment.controller.tsx","../patient/src/features/settings/user_settings.service.tsx","../patient/src/views/view_appointment/view_appointment.controller.tsx","../patient/src/views/view_guest/_illustrative.component.tsx","../patient/src/views/view_not_found/view_not_found_route.component.tsx","./Public_old/app/Classes/PageLoadHandler.ts","./Public_old/app/Classes/doors.class.ts","../node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/esm2015/TransformOperationExecutor.js","../node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/esm2015/utils/get-global.util.js","../node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/esm2015/utils/is-promise.util.js","../node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/esm2015/constants/default-options.constant.js","../node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/esm2015/index.js","../node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/esm2015/ClassTransformer.js","./Public_old/app/Services/api/v2/Models/UnitConfigApiModel.ts","./Public_old/app/Classes/spacontext.ts","./Public_old/app/Common/Classes/messageHandler.ts","./Public_old/app/Classes/visibaHttp.class.ts","./Public_old/app/Common/Classes/Global/spalogger.class.ts","./Public_old/app/Common/Classes/globalValidator.ts","./Public_old/app/Common/Classes/nationalIdentityNumbers.ts","./Public_old/app/Common/Classes/visibaPopup.ts","./Public_old/app/Common/Components/imageviewer.component.ts","./Public_old/app/Common/Directives/visibaICD.component.ts","./Public_old/app/Common/Directives/visibaSaveButton.ts","./Public_old/app/Common/Directives/visibaSvgIconRepository.ts","./Public_old/app/Common/Helpers/file.helper.ts","./Public_old/app/Common/Helpers/is.helper.ts","./Public_old/app/Common/Helpers/number.helper.ts","./Public_old/app/Common/Helpers/object.helper.ts","./Public_old/app/Common/Helpers/array.helper.ts","./Public_old/app/Common/Helpers/string.helper.ts","./Public_old/app/Common/Helpers/color.helper.ts","./Public_old/app/Common/Helpers/image.helper.ts","./Public_old/app/Common/Helpers/unit.helper.ts","./Public_old/app/Common/Helpers/html.helper.ts","./Public_old/app/Common/Helpers/cookie.helper.ts","./Public_old/app/Common/Helpers/redrobin.helper.ts","./Public_old/app/Common/Helpers/helper.ts","./Public_old/app/Common/Helpers/v4.ts","./Public_old/app/Common/Services/audioPlayer.service.ts","./Public_old/app/Common/Services/translate.service.ts","./Public_old/app/Components/Authentication/signin.component.ts","./Public_old/app/Components/confirmPhoneNumber.ts","./Public_old/app/Components/embedded-web.component.ts","./Public_old/app/Components/mediaTest.component.ts","./Public_old/app/Classes/UserMedia.ts","./Public_old/app/Components/mediaTestMini.component.ts","./Public_old/app/Components/notificationCompliance.component.ts","./Public_old/app/Components/visibaPayment.component.ts","./Public_old/app/Components/visibaStep.component.ts","./Public_old/app/Constants/securityLevel.ts","./Public_old/app/Guards/view.guard.ts","./Public_old/app/Injectables/messaging.injectable.ts","./Public_old/app/Services/Queue/dropin-queue-interface.class.ts","./Public_old/app/Services/Queue/dropin-queue-websocket.class.ts","./Public_old/app/Services/Queue/dropin-queue-queue.class.ts","./Public_old/app/Services/Queue/dropin-queue.service.ts","./Public_old/app/Services/api/v2/Units/condition.service.ts","./Public_old/app/Services/api/v2/Units/dropIn.service.ts","./Public_old/app/Services/api/v2/Units/dynamic-form.service.ts","./Public_old/app/Services/api/v2/Units/external-data.service.ts","./Public_old/app/Services/api/v2/Units/payment.service.ts","./Public_old/app/Services/api/v2/Units/timeslot.service.ts","./Public_old/app/Services/api/v2/Units/units.service.ts","./Public_old/app/Services/api/v2/Models/WebContentButtonApiModel.ts","./Public_old/app/Services/api/v2/Units/webContentButtons.service.ts","./Public_old/app/Services/api/v2/appointments.service.ts","./Public_old/app/Services/api/v2/auth.service.ts","./Public_old/app/Services/api/v2/cases.service.ts","./Public_old/app/Services/api/v2/dropin.service.ts","./Public_old/app/Services/api/v2/identity.service.ts","./Public_old/app/Services/api/v2/licenceholder.service.ts","./Public_old/app/Services/api/v2/messaging.service.ts","./Public_old/app/Services/api/v2/notificationSettings.service.ts","./Public_old/app/Services/api/v2/registration.service.ts","./Public_old/app/Services/api/v2/smsAuth.service.ts","./Public_old/app/Services/api/v2/survey.service.ts","./Public_old/app/Services/api/v2/units_api.service.ts","./Public_old/app/Services/api/v2/usageAgreements.service.ts","./Public_old/app/Services/api/v2/userfiles.service.ts","../patient/src/components/error_interrupted.component.tsx","../patient/src/views/view_guest/flow_error.component.tsx","../patient/src/views/view_guest/view_guest.controller.tsx","../patient/src/views/view_guest/view_guest.component.tsx","./Public_old/wrappers/guest.wrapper.tsx","../patient/src/views/view_appointment/screen_form/_background_outlet.tsx","../patient/src/views/view_appointment/screen_form/screen_form.component.tsx","../patient/src/views/view_appointment/screen_evaluation/_background_outlet.tsx","../patient/src/modules/safe_number_parse.tsx","../patient/src/components/animate_change_in_height.component.tsx","../patient/src/views/view_appointment/screen_evaluation/screen_evaluation_hcp.component.tsx","../patient/src/views/view_appointment/screen_evaluation/screen_evaluation.component.tsx","../patient/src/views/view_appointment/screen_video/screen_video.tsx","../patient/src/components/branded_illustration/illustrations/door.component.tsx","../patient/src/components/branded_illustration/illustrations/devices.component.tsx","../patient/src/components/branded_illustration/illustrations/phone_ongoing.component.tsx","../patient/src/components/branded_illustration/illustrations/disconnected.component.tsx","../patient/src/components/branded_illustration/branded_illustration.component.tsx","../patient/src/views/view_appointment/view_appointment_state.component.tsx","../patient/src/views/view_appointment/screen_missing_payment/missing_payment.component.tsx","../patient/src/views/view_appointment/screen_done/_background_outlet.tsx","../patient/src/views/view_appointment/screen_done/screen_done.component.tsx","../patient/src/views/view_appointment/screen_reconnect/screen_reconnect.component.tsx","../patient/src/views/view_appointment/view_appointment.component.tsx","./Public_old/wrappers/appointment.wrapper.tsx","./src/application/services/startup.service.tsx","../patient/src/api/licence_holder_api.service.tsx","../patient/src/api/recent_receptions_api.service.tsx","../patient/src/application/shell/shell.controller.tsx","./Public_old/app/Services/app/startup.service.ts","./Public_old/app/routes.ts","./Public_old/app/Services/application.service.ts","./Public_old/app/Services/api/v2/Models/IdentityApiModel.ts","./Public_old/app/Services/authContext.service.ts","./Public_old/app/Services/date.service.ts","./Public_old/app/Services/flexible_patient_buttons.service/component_identity_button.ts","./Public_old/app/Services/flexible_patient_buttons.service/component_identity_button_icon.ts","./Public_old/app/Services/flexible_patient_buttons.service/component_identity_image.ts","./Public_old/app/Services/flexible_patient_buttons.service/component_identity_list.ts","./Public_old/app/Services/flexible_patient_buttons.service/component_identity_rock_bottom.ts","./Public_old/app/Services/flexible_patient_buttons.service/component_identity_text.ts","./Public_old/app/Services/flexible_patient_buttons.service/identity_factory.service.ts","./Public_old/app/Services/flexible_patient_buttons.service/mod.ts","./Public_old/app/Services/general.service.ts","./Public_old/app/Services/modalService.ts","./Public_old/app/Services/outcomes.service.ts","./Public_old/app/Services/red-robin.service.ts","./Public_old/app/Services/scheduled-data.ts","./Public_old/app/Services/spaEvents.service.ts","./Public_old/app/Views/Appointment/appointment-flow.service.ts","./Public_old/app/Views/Develop/components.component.ts","./Public_old/app/Views/DropIn/dropin-room.class.ts","./Public_old/app/Views/Guest/guest.component.ts","./Public_old/app/Views/ProxyRedirect/ProxyRedirect.component.ts","./Public_old/app/Services/api/v2/rate.service.ts","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/share.js","./Public_old/app/Services/api/v2/basket.service.ts","./Public_old/app/Services/stores/basket.store.ts","./Public_old/app/Common/Directives/translation.ts","./Public_old/app/Interceptors/http-request.interceptor.ts","./Public_old/app/Guards/confirm-leave.guard.ts","./Public_old/app/Components/DynamicForm/DynamicFormAnswer.ts","./Public_old/app/Services/api/v2/Models/Basket/BasketFormAnswer.ts","./Public_old/app/Components/DynamicForm/dynamicForm.component.ts","./Public_old/app/Components/DynamicForm/question-yesno.component.ts","./Public_old/app/Common/Directives/autosize.directive.ts","./Public_old/app/Common/Directives/visibaInput.ts","./Public_old/app/Components/messaging.component.ts","./Public_old/app/error.handler.ts","./Public_old/app/Common/Models/Api/Info/DynamicForm/OptionInfo.ts","./Public_old/app/Common/Models/Api/Info/DynamicForm/AnswerInfo.ts","../node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/esm2015/decorators/type.decorator.js","./Public_old/app/Common/Models/Api/Info/DynamicForm/QuestionInfo.ts","./Public_old/app/Components/DynamicForm/question-multichoice.component.ts","./Public_old/app/Components/DynamicForm/question-multiline.component.ts","./Public_old/app/Components/DynamicForm/question-singlechoiceradio.component.ts","./Public_old/app/Components/DynamicForm/question-singlechoiceselect.component.ts","./Public_old/app/Components/succesBox.component.ts","./Public_old/app/Services/ciscoMeetingServer.service.ts","./Public_old/app/Services/api/v2/Units/messaging.service.ts","./Public_old/app/Services/api/v2/Units/physical-location.service.ts","./Public_old/app/Common/Directives/visibaProgressBar.ts","./Public_old/app/Common/Directives/visibaSvg.ts","./Public_old/app/Common/Directives/visibaSelect.ts","./Public_old/app/Common/Directives/visibaDatepicker.ts","./Public_old/app/Common/Directives/visibaTimepicker.ts","./Public_old/app/Common/Directives/visibaTel.ts","./Public_old/app/Common/Directives/visibaNationalIdentityNumber.ts","./Public_old/app/Common/Directives/html.ts","./Public_old/app/Common/Directives/visibaGoogleChart.ts","./Public_old/app/Common/Components/toggle-switch.component.ts","./Public_old/app/Common/Directives/autoStick.directive.ts","./Public_old/app/Common/Directives/visibaAlert.ts","./Public_old/app/Common/Pipes/dateDisplayPipe.ts","./Public_old/app/Common/Pipes/safeHtmlPipe.ts","./Public_old/app/Common/Pipes/translate.pipe.ts","./Public_old/app/Common/Pipes/consolePipe.ts","./Public_old/app/Components/modal.component.ts","./Public_old/app/Services/api/v2/timeslot_lock.service.ts","./Public_old/app/Components/semantic-view.component.ts","./Public_old/app/Common/Directives/trapFocus.directive.ts","./Public_old/app/appShares.module.ts","./Public_old/environments/environment.prod.ts","./src/modules/debug_config.tsx","../node_modules/.pnpm/@angular+platform-browser-dynamic@19.1.4_@angular+common@19.1.4_@angular+core@19.1.4_rx_a72c60a33241897a42f2ec67da77180c/node_modules/@angular/platform-browser-dynamic/fesm2022/platform-browser-dynamic.mjs","./Public_old/app/Components/Authentication/signin-method-noAuth.component.ts","./Public_old/app/app-routing.module.ts","./Public_old/app/app.component.ts","./Public_old/app/Components/Authentication/signin-method-sms.component.ts","./Public_old/app/Components/Authentication/signin-method-iframe.component.ts","./Public_old/app/Components/registration.component.component.ts","./Public_old/app/Components/document-sign.component.ts","./Public_old/app/Components/Authentication/signin-method-ehelse.ts","./Public_old/app/Common/Components/audio-player/audio-player.component.ts","./Public_old/app/Classes/BreadcrumbStepClass.ts","./Public_old/app/Components/unit-picker.component.ts","./Public_old/app/Components/breadcrumbs.component.ts","./Public_old/app/Views/Index/index.component.ts","./Public_old/app/Components/mobile-app-promotion.component.ts","./Public_old/app/Components/externalSvg.component.ts","./Public_old/app/Components/drop-in-section-from-menu.component.ts","./Public_old/app/Components/non-supported-browser.component.ts","./Public_old/app/app.module.ts","./Public_old/app/Classes/customUrlSerializer.ts","./Public_old/main.tsx","../patient/src/api/timeslot_api.service.tsx","../patient/src/views/view_booking/booking_basket.service.tsx","../patient/src/views/view_booking/view_booking_settings.service.tsx","../patient/src/views/view_booking/view_booking.controller.tsx","../patient/src/views/view_booking/screen_rfv/screen_rfv.controller.tsx","../patient/src/views/view_booking/screen_rfv/screen_rfv.component.tsx","../patient/src/views/view_booking/screen_location/screen_location.controller.tsx","../patient/src/application/flexible_component/flexible_identifier/flexible_identifier_flexible_recent_visits.component.tsx","../patient/src/modules/capitalize_first_letter.tsx","../patient/src/views/view_booking/screen_location/screen_location.component.tsx","../patient/src/api/generated/clientv2/models/locality-type.ts","../patient/src/views/view_booking/screen_time_slot/screen_time_slot.controller.tsx","../patient/src/views/view_booking/screen_conclusion/screen_conclusion.controller.tsx","../patient/src/components/avatar_info.component.tsx","../patient/src/views/view_booking/screen_conclusion/screen_conclusion.component.tsx","../patient/src/components/weekly_calender.component.tsx","../patient/src/views/view_booking/screen_time_slot/screen_time_slot.component.tsx","../patient/src/views/view_booking/screen_forms/screen_forms.controller.tsx","../patient/src/views/view_booking/screen_forms/screen_forms.component.tsx","../patient/src/views/view_booking/screen_who_is_respondant/screen_who_is_respondant.controller.tsx","../patient/src/views/view_booking/screen_who_is_respondant/screen_who_is_respondant.component.tsx","../patient/src/views/view_booking/screen_done/screen_done.component.tsx","../patient/src/views/view_booking/screen_error/screen_error.component.tsx","../patient/src/views/view_booking/view_booking.component.tsx","./Public_old/wrappers/booking.wrapper.tsx","./src/components/screen/_screen.context.tsx","./src/components/screen/screen.provider.tsx","./src/components/screen/use_screen.context.tsx","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs","./src/components/live_announcer/live_announcer_provider.component.tsx","./src/application/dialog_handler/dialog_handler.controller.tsx","./src/application/dialog_handler/dialog_handler.component.tsx","../patient/src/components/screen/screen.provider.tsx","../patient/src/components/consent/consent.component.tsx","../patient/src/components/consent/consent.provider.tsx","./Public_old/wrappers/cellula_provider_wrapper.component.tsx","./src/routes/change_unit/mod.tsx","./Public_old/wrappers/change-unit.wrapper.tsx","../patient/src/views/cookie_policy/_cookie_policy.controller.tsx","../patient/src/views/cookie_policy/_cookie_policy_skeleton.tsx","../patient/src/views/cookie_policy/cookie_policy.component.tsx","./Public_old/wrappers/cookie_policy.wrapper.tsx","../patient/src/api/rate_api.service.tsx","../patient/src/views/view_create_new_message/basket.service.tsx","../patient/src/views/view_create_new_message/create_new_message_settings.service.tsx","../patient/src/views/view_create_new_message/view_create_new_message.controller.tsx","../patient/src/views/view_create_new_message/screen_start/screen_start.component.tsx","../patient/src/views/view_create_new_message/screen_rfv/screen_rfv.controller.tsx","../patient/src/views/view_create_new_message/screen_rfv/screen_rfv.component.tsx","../patient/src/views/view_create_new_message/screen_forms/screen_forms.controller.tsx","../patient/src/views/view_create_new_message/screen_error/screen_error.tsx","../patient/src/views/view_create_new_message/screen_forms/screen_forms.component.tsx","../patient/src/api/generated/clientv2/models/commit-result-status.ts","../patient/src/api/generated/clientv2/models/query-commit-status.ts","../patient/src/api/generated/clientv2/models/validation-result-type.ts","../patient/src/views/view_create_new_message/screen_conclusion/screen_conclusion.controller.tsx","../patient/src/views/view_create_new_message/screen_conclusion/screen_conclusion.component.tsx","../patient/src/views/view_create_new_message/screen_done/screen_done.component.tsx","../patient/src/views/view_create_new_message/view_create_new_message.component.tsx","./Public_old/wrappers/create-new-message.wrapper.tsx","../node_modules/.pnpm/@radix-ui+react-avatar@1.1.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-avatar/dist/index.mjs","./src/components/aavatar.component.tsx","../node_modules/.pnpm/react-wrap-balancer@1.1.1_react@18.3.1/node_modules/react-wrap-balancer/dist/index.mjs","./src/routes/new_home/home.component.tsx","./Public_old/wrappers/home.wrapper.tsx","../patient/src/features/my_account/scenario.service.tsx","../patient/src/api/notification_settings_api.service.tsx","../patient/src/features/my_account/my_account.controller.tsx","../patient/src/features/my_account/_my_account_delete_button.component.tsx","../patient/src/api/generated/clientv2/models/field-option.ts","../patient/src/application/form_validators.tsx","../patient/src/_cortex_shim/async.component.tsx","../patient/src/features/my_account/_my_account_form.component.tsx","../patient/src/features/my_account/my_account.component.tsx","../patient/src/features/my_account/_my_account_root.component.tsx","../patient/src/features/my_account/_my_account_title.component.tsx","../patient/src/views/view_settings/screen_account.component.tsx","./Public_old/wrappers/my_account.wrapper.tsx","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/use-motion-value.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/transform.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/use-combine-values.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/use-transform.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/use-computed.mjs","./src/components/sticky_top_banner/_sticky_top_banner_content.component.tsx","./src/components/sticky_top_banner/_sticky_top_banner_variant_leap_scroll.component.tsx","./src/components/sticky_top_banner/_sticky_top_banner_variant_sticky_scroll.component.tsx","./src/components/sticky_top_banner/sticky_top_banner.component.tsx","./src/routes/reception_home/_reception_home_layout.component.tsx","./src/routes/reception_home/_reception_home_skeleton.component.tsx","./src/routes/reception_home/_reception_home_hero.component.tsx","./src/routes/reception_home/_reception_home.controller.tsx","./src/routes/reception_home/_reception_home_about_us.component.tsx","./src/routes/reception_home/reception_home.component.tsx","./Public_old/wrappers/reception-home.wrapper.tsx","../patient/src/views/view_red_robin_redirect/view_red_robin_redirect.tsx","./Public_old/wrappers/red_robin_forward.wrapper.tsx","./Public_old/wrappers/sign-in-finish.wrapper.tsx","../patient/src/views/view_patient_cases/view_patient_cases.controller.tsx","../patient/src/views/view_patient_cases/root.component.tsx","../node_modules/.pnpm/@radix-ui+react-scroll-area@1.1.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom_74c02bb127653cfbb01fbf0007666259/node_modules/@radix-ui/react-scroll-area/dist/index.mjs","../node_modules/.pnpm/@radix-ui+number@1.1.0/node_modules/@radix-ui/number/dist/index.mjs","../patient/src/views/view_patient_cases/_empty_state.component.tsx","../patient/src/components/case_card/_illustrative_selection.component.tsx","../patient/src/components/case_card/_extensive_info.component.tsx","../patient/src/components/case_card/_comprehensive_info.component.tsx","../patient/src/components/case_card/_bottom_banner.component.tsx","../patient/src/features/issues/use_tracked_issue.tsx","../patient/src/components/case_card/case_card.component.tsx","../patient/src/views/view_patient_cases/_case_list.component.tsx","../patient/src/views/view_patient_cases/activated_tab.component.tsx","../patient/src/views/view_patient_cases/_sign_in_empty_state.component.tsx","../patient/src/views/view_patient_cases/list_root.component.tsx","../patient/src/views/view_patient_cases/heading.component.tsx","../patient/src/components/view_nav_bar.component.tsx","../patient/src/components/screen/screen.component.tsx","../patient/src/views/view_patient_cases/_info_view_appointment/_info_view_appointment_details.component.tsx","../patient/src/features/payment/payment_card.component.tsx","../patient/src/views/view_patient_cases/_info_view_appointment/_info_view_appointment_unhandled_actions.component.tsx","../patient/src/views/view_patient_cases/_contact_item.component.tsx","../patient/src/views/view_patient_cases/_info_view_appointment/_info_view_appointment_participants.component.tsx","../patient/src/views/view_patient_cases/_info_view_appointment/_info_view_appointment_actions.component.tsx","../patient/src/views/view_patient_cases/_info_view_appointment/info_view_appointment.component.tsx","../patient/src/views/view_patient_cases/selected_appointment_case.component.tsx","../patient/src/views/view_patient_cases/_info_view_messaging.component.tsx","../patient/src/views/view_patient_cases/selected_messagingCase.component.tsx","../patient/src/views/view_patient_cases/legacy_shell-3_layout.component.tsx","../patient/src/views/view_patient_cases/view_patient_cases.component.tsx","../patient/src/views/view_patient_cases/fixed_routes.component.tsx","./src/components/terrible_angular_redirect_fix_do_not_use.component.tsx","./Public_old/wrappers/visits.wrapper.tsx","./Public_old/wrappers/attention-card.wrapper.tsx","./src/components/read_more_text.component.tsx","./src/components/footer/_footer.controller.tsx","./src/components/country_flag.component.tsx","./src/components/language_select/language_select.component.tsx","./src/components/footer/_footer_layout.component.tsx","./src/components/footer/_footer.skeleton.component.tsx","./src/components/footer/footer.component.tsx","./Public_old/wrappers/footer.wrapper.tsx","./src/components/header/_use_route_details.tsx","./src/components/header/_item.component.tsx","./src/components/header/_header_nav/_header_nav_link_reception_picker.component.tsx","./src/application/services/unhandled_issues.service/unhandled_issues.service.tsx","./src/application/services/unhandled_issues.service/use_counted_issues.tsx","./src/components/header/_header_nav/_header_nav_link_my_cases.component.tsx","./src/components/header/_header_nav/_header_nav_link_home.component.tsx","./src/application/controllers/header_nav.controller.tsx","./src/components/header/_header_nav/_header_nav.component.tsx","./src/components/header/_header_call_to_action.component.tsx","./src/components/logo.component.tsx","../node_modules/.pnpm/@radix-ui+react-dialog@1.1.1_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-dialog/dist/index.mjs","./src/components/header/_header_navigation_menu/_header_navigation_menu_list_item.component.tsx","./src/components/header/_header_navigation_menu/header_navigation_menu.component.tsx","./src/components/header/header.component.tsx","./Public_old/wrappers/header.wrapper.tsx","./Public_old/wrappers/popover_manager.wrapper.tsx","./Public_old/wrappers/video-call.wrapper.tsx","./src/modules/application_session_storage.tsx","./src/components/device_gateway.component.tsx","./src/application/helpers/app_download_link.tsx","./Public_old/wrappers/device-gateway.wrapper.tsx","./Public_old/wrappers/language_select.wrapper.tsx","./Public_old/app/Views/licenceholder-footer.component.ts","./src/components/sign_in/sign_in.controller.tsx","./src/components/sign_in/sign_in.component.tsx","./src/components/sign_in/sign_in_modal.component.tsx","./Public_old/wrappers/sign-in.wrapper.tsx","./Public_old/wrappers/wrappers.module.ts","./src/api/_api_client_base.tsx","./src/api/auth_api.service.tsx","./src/api/general_api.service.tsx","./src/api/generated/models/answer-form-question-error-status.ts","./src/api/generated/models/app-platform.ts","./src/api/generated/models/auth-method-usage.ts","./src/api/generated/models/auth-scheme.ts","./src/api/generated/models/booking-participant-role.ts","./src/api/generated/models/booking-source.ts","./src/api/generated/models/client-case-definition.ts","./src/api/generated/models/client-case-issue-type.ts","./src/api/generated/models/client-case-type.ts","./src/api/generated/models/cloud-message-target-type.ts","./src/api/generated/models/commit-result-status.ts","./src/api/generated/models/controls.ts","./src/api/generated/models/document-type.ts","./src/api/generated/models/external-data-type.ts","./src/api/generated/models/field-option.ts","./src/api/generated/models/form-opportunity.ts","./src/api/generated/models/form-question-type.ts","./src/api/generated/models/horizontal-alignment.ts","./src/api/generated/models/list-direction.ts","./src/api/generated/models/locality-type.ts","./src/api/generated/models/open-url-with.ts","./src/api/generated/models/open-url-with-kind.ts","./src/api/generated/models/payment-workflow-type.ts","./src/api/generated/models/prioritized-client-case-definition.ts","./src/api/generated/models/prioritized-client-case-type.ts","./src/api/generated/models/query-commit-status.ts","./src/api/generated/models/spacer-size.ts","./src/api/generated/models/states.ts","./src/api/generated/models/survey-answer-value-type.ts","./src/api/generated/models/text-format.ts","./src/api/generated/models/text-size.ts","./src/api/generated/models/text-weight.ts","./src/api/generated/models/timeslot-search-capability.ts","./src/api/generated/models/user-type.ts","./src/api/generated/models/validation-result-type.ts","./src/api/identity_api.service.tsx","./src/api/licence_holder_api.service.tsx","./src/api/recent_receptions_api.service.tsx","./src/api/units_api.service.tsx","./src/application/dev_local_storage.tsx","./src/application/helpers/route.tsx","./src/application/idp_url_redirect_storage.service.tsx","./src/modules/dev_local_storage.tsx","./src/application/services/auth/auth.service.tsx","./src/application/services/auth/temp_migration_file.tsx","./src/application/services/auth/use_user.tsx","./src/application/services/theme.service/mod.tsx","./src/application/services/theme.service/theme_model.tsx","./src/modules/capitalize_first_letter.tsx","./src/application/services/config.service.tsx","./src/application/services/date.service.tsx","./src/application/services/environment.service/_hosting.service.tsx","./src/application/services/environment.service/_platform.service.tsx","./src/application/services/environment.service/mod.tsx","./src/application/services/feature_flag/feature_flag.service.tsx","./src/application/services/feature_flag/use_feature_flag.tsx","./src/application/services/flexible_component/flexible_component.service.tsx","./src/application/services/flexible_component/models/flexible_base.tsx","./src/application/services/flexible_component/models/flexible_action_card.tsx","./src/application/services/flexible_component/models/flexible_button.tsx","./src/application/services/flexible_component/models/flexible_button_hyperlink.tsx","./src/application/services/flexible_component/models/flexible_button_icon.tsx","./src/application/services/flexible_component/models/flexible_image.tsx","./src/application/services/flexible_component/models/flexible_list.tsx","./src/application/services/flexible_component/models/flexible_list_directional.tsx","./src/application/services/flexible_component/models/flexible_recent_visits.tsx","./src/application/services/flexible_component/models/flexible_rock_bottom.tsx","./src/application/services/flexible_component/models/flexible_search.tsx","./src/application/services/flexible_component/models/flexible_spacer.tsx","./src/application/services/flexible_component/models/flexible_text.tsx","./src/application/services/spa_context.service.tsx","./src/application/services/http.service.tsx","./src/application/services/licence_holder.service.tsx","./src/application/services/location_selector.service.tsx","./src/application/services/notification.service/bar_notification.tsx","./src/application/services/notification.service/common.tsx","./src/application/services/notification.service/local_push_notification.tsx","./src/application/services/notification.service/notification.service.tsx","./src/application/services/register_recent_visit.service.tsx","./src/application/services/router.service.tsx","./src/application/services/theme.service/_mapped_theme.tsx","./src/application/services/theme.service/theme.tsx","./src/application/services/unit.service.tsx","./src/application/application_local_storage.tsx","./src/application/services/user_settings.service.tsx","./src/application/use_current_location.tsx","./src/application/use_selected_entrance.tsx","./src/application/use_title.tsx","./src/components/analytic_link/analytic_link.component.tsx","./src/components/analytic_link/analytic_link.provider.tsx","./src/components/analytic_link/analytic_button.component.tsx","./src/api/cases_api.service.tsx","./src/components/attention_card/_attention_card.controller.tsx","./src/modules/color.tsx","./src/components/case_card.component.tsx","./src/components/attention_card/_attention_card_case_card_wrapper.component.tsx","./src/components/attention_card/_attention_card_type_unanswered_forms.component.tsx","./src/components/attention_card/_attention_card_type_unpaid.component.tsx","./src/components/attention_card/_attention_card_case_card_message.component.tsx","./src/components/attention_card/_attention_card_type_new_message.component.tsx","./src/components/attention_card/_attention_card_type_new_messages_different_cases.component.tsx","./src/components/avatar.component.tsx","./src/components/attention_card/_get_appointment_participant_text.tsx","./src/components/attention_card/_attention_card_case_card_appointment.component.tsx","./src/components/attention_card/_attention_card_type_upcoming_appointment.component.tsx","./src/components/attention_card/_attention_card_type_current_appointment.component.tsx","./src/components/attention_card/attention_card.component.tsx","./src/components/badge.component.tsx","./src/modules/focus_context.tsx","./src/components/components_base/base_button.component.tsx","./src/components/components_base/base_input.component.tsx","./src/components/error_boundary.component.tsx","./src/components/flexible_identifier/_flexible_identifier_routeable.component.tsx","./src/components/flexible_identifier/flexible_identifier_flexible_button.component.tsx","./src/application/services/svg_http.service.tsx","./src/components/external_svg.component.tsx","./src/components/flexible_identifier/flexible_identifier_flexible_button_icon.component.tsx","./src/components/flexible_identifier/flexible_identifier_flexible_button_hyperlink.component.tsx","./src/components/flexible_identifier/flexible_identifier_flexible_image.component.tsx","./src/components/flexible_identifier/flexible_identifier_flexible_list.component.tsx","./src/components/flexible_identifier/flexible_identifier_flexible_list_directional.component.tsx","./src/components/flexible_identifier/flexible_identifier_flexible_rock_bottom.component.tsx","./src/components/flexible_identifier/flexible_identifier_flexible_search.component.tsx","./src/components/flexible_identifier/flexible_identifier_flexible_text.component.tsx","./src/components/flexible_identifier/flexible_identifier_flexible_spacer.component.tsx","./src/components/flexible_identifier/flexible_identifier_flexible_recent_visits.component.tsx","./src/components/action_card.component.tsx","./src/components/flexible_identifier/flexible_identifier_flexible_action_card.component.tsx","./src/components/flexible_identifier/flexible_identifier.component.tsx","./src/components/icon.component.tsx","./src/components/link_in_message.component.tsx","./src/components/live_announcer/live_announcer.controller.tsx","./src/components/notification_manager/local_push_notifications.component.tsx","./src/components/notification_manager/banner_notification/_banner_notification_information_banner.component.tsx","./src/components/notification_manager/banner_notification/banner_notification.component.tsx","./src/components/patient_flow_container.component.tsx","./src/components/popover_manager.component.tsx","./src/components/search_reception_combo_box/_common.tsx","../node_modules/.pnpm/@react-stately+form@3.0.5_react@18.3.1/node_modules/@react-stately/form/dist/useFormValidationState.mjs","../node_modules/.pnpm/@react-stately+collections@3.10.9_react@18.3.1/node_modules/@react-stately/collections/dist/getChildNodes.mjs","../node_modules/.pnpm/@react-stately+list@3.10.8_react@18.3.1/node_modules/@react-stately/list/dist/ListCollection.mjs","../node_modules/.pnpm/@react-stately+selection@3.16.2_react@18.3.1/node_modules/@react-stately/selection/dist/Selection.mjs","../node_modules/.pnpm/@react-stately+utils@3.10.3_react@18.3.1/node_modules/@react-stately/utils/dist/useControlledState.mjs","../node_modules/.pnpm/@react-stately+selection@3.16.2_react@18.3.1/node_modules/@react-stately/selection/dist/useMultipleSelectionState.mjs","../node_modules/.pnpm/@react-stately+selection@3.16.2_react@18.3.1/node_modules/@react-stately/selection/dist/SelectionManager.mjs","../node_modules/.pnpm/@react-stately+collections@3.10.9_react@18.3.1/node_modules/@react-stately/collections/dist/CollectionBuilder.mjs","../node_modules/.pnpm/@react-stately+list@3.10.8_react@18.3.1/node_modules/@react-stately/list/dist/useListState.mjs","../node_modules/.pnpm/@react-stately+collections@3.10.9_react@18.3.1/node_modules/@react-stately/collections/dist/useCollection.mjs","../node_modules/.pnpm/@react-stately+combobox@3.9.2_react@18.3.1/node_modules/@react-stately/combobox/dist/useComboBoxState.mjs","../node_modules/.pnpm/@react-stately+list@3.10.8_react@18.3.1/node_modules/@react-stately/list/dist/useSingleSelectListState.mjs","../node_modules/.pnpm/@react-stately+overlays@3.6.10_react@18.3.1/node_modules/@react-stately/overlays/dist/useOverlayTriggerState.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/ar-AE.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/intlStrings.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/bg-BG.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/cs-CZ.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/da-DK.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/de-DE.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/el-GR.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/en-US.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/es-ES.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/et-EE.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/fi-FI.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/fr-FR.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/he-IL.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/hr-HR.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/hu-HU.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/it-IT.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/ja-JP.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/ko-KR.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/lt-LT.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/lv-LV.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/nb-NO.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/nl-NL.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/pl-PL.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/pt-BR.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/pt-PT.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/ro-RO.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/ru-RU.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/sk-SK.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/sl-SI.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/sr-SP.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/sv-SE.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/tr-TR.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/uk-UA.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/zh-CN.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/zh-TW.mjs","../node_modules/.pnpm/@react-aria+live-announcer@3.3.4/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/ariaHideOutside.mjs","../node_modules/.pnpm/@react-aria+listbox@3.13.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/listbox/dist/utils.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/openLink.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/useLabels.mjs","../node_modules/.pnpm/@react-stately+collections@3.10.9_react@18.3.1/node_modules/@react-stately/collections/dist/getItemCount.mjs","../node_modules/.pnpm/@react-aria+selection@3.19.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/isScrollable.mjs","../node_modules/.pnpm/@react-aria+selection@3.19.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.mjs","../node_modules/.pnpm/@react-aria+selection@3.19.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/selection/dist/utils.mjs","../node_modules/.pnpm/@react-aria+selection@3.19.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/selection/dist/useTypeSelect.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/useEvent.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/scrollIntoView.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/getScrollParents.mjs","../node_modules/.pnpm/@react-aria+i18n@3.12.2_react@18.3.1/node_modules/@react-aria/i18n/dist/utils.mjs","../node_modules/.pnpm/@react-aria+i18n@3.12.2_react@18.3.1/node_modules/@react-aria/i18n/dist/useDefaultLocale.mjs","../node_modules/.pnpm/@react-aria+i18n@3.12.2_react@18.3.1/node_modules/@react-aria/i18n/dist/context.mjs","../node_modules/.pnpm/@react-aria+selection@3.19.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/selection/dist/useSelectableCollection.mjs","../node_modules/.pnpm/@internationalized+string@3.2.3/node_modules/@internationalized/string/dist/LocalizedStringDictionary.mjs","../node_modules/.pnpm/@internationalized+string@3.2.3/node_modules/@internationalized/string/dist/LocalizedStringFormatter.mjs","../node_modules/.pnpm/@react-aria+i18n@3.12.2_react@18.3.1/node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/ar-AE.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/intlStrings.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/bg-BG.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/cs-CZ.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/da-DK.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/de-DE.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/el-GR.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/en-US.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/es-ES.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/et-EE.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/fi-FI.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/fr-FR.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/he-IL.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/hr-HR.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/hu-HU.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/it-IT.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/ja-JP.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/ko-KR.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/lt-LT.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/lv-LV.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/nb-NO.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/nl-NL.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/pl-PL.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/pt-BR.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/pt-PT.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/ro-RO.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/ru-RU.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/sk-SK.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/sl-SI.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/sr-SP.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/sv-SE.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/tr-TR.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/uk-UA.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/zh-CN.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/zh-TW.mjs","../node_modules/.pnpm/@react-aria+interactions@3.22.2_react@18.3.1/node_modules/@react-aria/interactions/dist/textSelection.mjs","../node_modules/.pnpm/@react-aria+interactions@3.22.2_react@18.3.1/node_modules/@react-aria/interactions/dist/context.mjs","../node_modules/.pnpm/@swc+helpers@0.5.13/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.js","../node_modules/.pnpm/@swc+helpers@0.5.13/node_modules/@swc/helpers/esm/_class_private_field_init.js","../node_modules/.pnpm/@swc+helpers@0.5.13/node_modules/@swc/helpers/esm/_check_private_redeclaration.js","../node_modules/.pnpm/@swc+helpers@0.5.13/node_modules/@swc/helpers/esm/_class_private_field_set.js","../node_modules/.pnpm/@swc+helpers@0.5.13/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.js","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/useSyncRef.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs","../node_modules/.pnpm/@react-aria+interactions@3.22.2_react@18.3.1/node_modules/@react-aria/interactions/dist/usePress.mjs","../node_modules/.pnpm/@swc+helpers@0.5.13/node_modules/@swc/helpers/esm/_class_private_field_get.js","../node_modules/.pnpm/@swc+helpers@0.5.13/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.js","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/useDescription.mjs","../node_modules/.pnpm/@react-aria+interactions@3.22.2_react@18.3.1/node_modules/@react-aria/interactions/dist/useLongPress.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/useCloseOnScroll.mjs","../node_modules/.pnpm/@react-aria+menu@3.15.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/menu/dist/useMenuTrigger.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/useOverlayTrigger.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/filterDOMProps.mjs","../node_modules/.pnpm/@react-aria+label@3.7.11_react@18.3.1/node_modules/@react-aria/label/dist/useLabel.mjs","../node_modules/.pnpm/@react-aria+interactions@3.22.2_react@18.3.1/node_modules/@react-aria/interactions/dist/createEventHandler.mjs","../node_modules/.pnpm/@react-aria+focus@3.18.2_react@18.3.1/node_modules/@react-aria/focus/dist/useFocusable.mjs","../node_modules/.pnpm/@react-aria+interactions@3.22.2_react@18.3.1/node_modules/@react-aria/interactions/dist/useKeyboard.mjs","../node_modules/.pnpm/@react-aria+form@3.0.8_react@18.3.1/node_modules/@react-aria/form/dist/useFormValidation.mjs","../node_modules/.pnpm/@react-aria+textfield@3.14.8_react@18.3.1/node_modules/@react-aria/textfield/dist/useTextField.mjs","../node_modules/.pnpm/@react-aria+label@3.7.11_react@18.3.1/node_modules/@react-aria/label/dist/useField.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/useFormReset.mjs","../node_modules/.pnpm/@react-aria+combobox@3.10.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/combobox/dist/useComboBox.mjs","../node_modules/.pnpm/@react-aria+i18n@3.12.2_react@18.3.1/node_modules/@react-aria/i18n/dist/useCollator.mjs","../node_modules/.pnpm/@react-aria+interactions@3.22.2_react@18.3.1/node_modules/@react-aria/interactions/dist/useInteractOutside.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/useOverlay.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/ar-AE.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/intlStrings.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/bg-BG.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/cs-CZ.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/da-DK.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/de-DE.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/el-GR.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/en-US.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/es-ES.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/et-EE.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/fi-FI.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/fr-FR.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/he-IL.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/hr-HR.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/hu-HU.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/it-IT.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/ja-JP.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/ko-KR.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/lt-LT.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/lv-LV.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/nb-NO.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/nl-NL.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/pl-PL.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/pt-BR.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/pt-PT.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/ro-RO.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/ru-RU.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/sk-SK.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/sl-SI.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/sr-SP.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/sv-SE.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/tr-TR.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/uk-UA.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/zh-CN.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/zh-TW.mjs","../node_modules/.pnpm/@react-aria+overlays@3.23.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/overlays/dist/DismissButton.mjs","./src/components/search_reception_combo_box/_popover.component.tsx","../node_modules/.pnpm/@react-aria+listbox@3.13.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/listbox/dist/useListBox.mjs","../node_modules/.pnpm/@react-aria+selection@3.19.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/selection/dist/useSelectableList.mjs","../node_modules/.pnpm/@react-aria+interactions@3.22.2_react@18.3.1/node_modules/@react-aria/interactions/dist/useHover.mjs","../node_modules/.pnpm/@react-aria+selection@3.19.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/selection/dist/useSelectableItem.mjs","../node_modules/.pnpm/@react-aria+listbox@3.13.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/listbox/dist/useOption.mjs","./src/components/search_reception_combo_box/_list_box.component.tsx","../node_modules/.pnpm/@react-stately+data@3.11.6_react@18.3.1/node_modules/@react-stately/data/dist/useListData.mjs","../node_modules/.pnpm/@react-stately+data@3.11.6_react@18.3.1/node_modules/@react-stately/data/dist/useAsyncList.mjs","../node_modules/.pnpm/@react-stately+collections@3.10.9_react@18.3.1/node_modules/@react-stately/collections/dist/Item.mjs","./src/components/search_reception_combo_box/search_reception_combo_box.component.tsx","../node_modules/.pnpm/@react-aria+i18n@3.12.2_react@18.3.1/node_modules/@react-aria/i18n/dist/useFilter.mjs","./src/components/shimmer.component.tsx","./src/components/spinner.component.tsx","./src/components/square_button.component.tsx","./src/components/suspended_presentation.component.tsx","./src/components/visiba-link.component.tsx","./src/constants.tsx","./src/modules/i18n_and_l10n/with_translation.tsx","./src/modules/is_within_visiba_web_view.tsx","./src/api/models/BackEndLogEnum.ts","./src/modules/logger/outgoing.ts","./src/modules/logger/logger.ts","./src/modules/state/state.ts","./src/modules/state/state_hook.ts","./src/modules/use_combined_ref.tsx","./src/routes/appointment/popover.service.tsx","./src/routes/appointment/popover.controller.tsx","./src/shared_resolution.ts","../node_modules/.pnpm/@angular+common@19.1.4_@angular+core@19.1.4_rxjs@7.8.1_zone.js@0.15.0__rxjs@7.8.1/node_modules/@angular/common/fesm2022/common.mjs","../node_modules/.pnpm/@angular+common@19.1.4_@angular+core@19.1.4_rxjs@7.8.1_zone.js@0.15.0__rxjs@7.8.1/node_modules/@angular/common/fesm2022/http.mjs","../node_modules/.pnpm/@angular+compiler@19.1.4_@angular+core@19.1.4_rxjs@7.8.1_zone.js@0.15.0_/node_modules/@angular/compiler/fesm2022/compiler.mjs","../node_modules/.pnpm/@angular+core@19.1.4_rxjs@7.8.1_zone.js@0.15.0/node_modules/@angular/core/fesm2022/primitives/signals.mjs","../node_modules/.pnpm/@angular+core@19.1.4_rxjs@7.8.1_zone.js@0.15.0/node_modules/@angular/core/fesm2022/primitives/event-dispatch.mjs","../node_modules/.pnpm/@angular+core@19.1.4_rxjs@7.8.1_zone.js@0.15.0/node_modules/@angular/core/fesm2022/core.mjs","../node_modules/.pnpm/@angular+forms@19.1.4_@angular+common@19.1.4_@angular+core@19.1.4_rxjs@7.8.1_zone.js@0._af6474d4af03a84ada6cce2a0a86fca0/node_modules/@angular/forms/fesm2022/forms.mjs","../node_modules/.pnpm/@angular+platform-browser@19.1.4_@angular+animations@19.1.4_@angular+core@19.1.4_rxjs@7_1ad8886a2ce3e58f1f03561b7ead4f17/node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/observable/combineLatest.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/EmptyError.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/mergeAll.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/observable/concat.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/concatAll.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/observable/defer.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/observable/throwError.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/observable/empty.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/refCount.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/observable/ConnectableObservable.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/take.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/defaultIfEmpty.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/first.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/tap.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/catchError.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/scan.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/scanInternals.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/takeLast.js","../node_modules/.pnpm/@angular+router@19.1.4_@angular+common@19.1.4_@angular+core@19.1.4_rxjs@7.8.1_zone.js@0_29c85fcc3398cfd50c495e5c22dc8023/node_modules/@angular/router/fesm2022/router.mjs","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/isObservable.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/startWith.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/last.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/takeUntil.js","../node_modules/.pnpm/@emotion+is-prop-valid@0.8.8/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js","../node_modules/.pnpm/@emotion+memoize@0.7.4/node_modules/@emotion/memoize/dist/memoize.browser.esm.js","../node_modules/.pnpm/@emotion+memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../node_modules/.pnpm/@emotion+is-prop-valid@1.2.2/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","../node_modules/.pnpm/@floating-ui+utils@0.2.8/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../node_modules/.pnpm/@floating-ui+core@1.6.8/node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../node_modules/.pnpm/@floating-ui+utils@0.2.8/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","../node_modules/.pnpm/@floating-ui+dom@1.6.11/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../node_modules/.pnpm/@floating-ui+react-dom@2.1.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/math.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/userAgent.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/enums.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/orderModifiers.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/debounce.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/createPopper.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/mergeByName.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getVariation.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/computeOffsets.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/contains.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/detectOverflow.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/within.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/hide.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/popper.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/offset.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/flip.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getAltAxis.js","../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/arrow.js","../node_modules/.pnpm/@preact+signals-core@1.8.0/node_modules/@preact/signals-core/dist/signals-core.module.js","../node_modules/.pnpm/@preact+signals-react@1.3.8_react@18.3.1/node_modules/@preact/signals-react/dist/signals.module.js","../node_modules/.pnpm/@radix-ui+primitive@1.0.1/node_modules/@radix-ui/primitive/dist/index.mjs","../node_modules/.pnpm/@radix-ui+primitive@1.1.0/node_modules/@radix-ui/primitive/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-collapsible@1.0.3_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom_dfeec15840ca6ae5222e321221b01329/node_modules/@radix-ui/react-collapsible/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-accordion@1.1.2_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-accordion/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-alert-dialog@1.0.5_@types+react-dom@18.3.0_@types+react@18.3.3_react-do_b8497ba71fc7c2b0fba3de2ec77e9ba8/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-aspect-ratio@1.0.3_@types+react-dom@18.3.0_@types+react@18.3.3_react-do_8c5d2058ae9552ab8d074b39ba951305/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-avatar@1.0.4_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-avatar/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-collection@1.0.3_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-collection/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-collection@1.1.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-collection/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-compose-refs@1.0.1_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-context@1.0.1_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-context@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-dialog@1.0.5_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-dialog/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-direction@1.0.1_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-direction@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.0.5_@types+react-dom@18.3.0_@types+react@18.3.3_rea_441caa3678b0500d4585d3d21c1e046a/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.0.3_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.0_@types+react-dom@18.3.0_@types+react@18.3.3_rea_cbe999c1a4c987596831638835fce092/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-focus-guards@1.0.1_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-focus-scope@1.0.4_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom_9df85fe84c147210f823e226f723b327/node_modules/@radix-ui/react-focus-scope/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom_adf62befd6e0244b7c8c42272cfc3978/node_modules/@radix-ui/react-focus-scope/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-id@1.0.1_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-id@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-popover@1.0.7_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-popover/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-arrow@1.0.3_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-arrow/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-popper@1.1.3_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-popper/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-portal@1.0.4_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-portal/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-portal@1.1.1_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-portal/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-presence@1.0.1_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-presence/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-presence@1.1.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-presence/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-primitive@1.0.3_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-primitive/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-primitive@2.0.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-primitive/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-roving-focus@1.0.4_@types+react-dom@18.3.0_@types+react@18.3.3_react-do_ac5da05d5954a77f1af577cf829025cf/node_modules/@radix-ui/react-roving-focus/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-do_eebc5056478fae6ab24f6f105ef07b4a/node_modules/@radix-ui/react-roving-focus/dist/index.mjs","../node_modules/.pnpm/@radix-ui+number@1.0.1/node_modules/@radix-ui/number/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-select@2.0.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-select/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-slot@1.0.2_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-slot@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-switch@1.0.3_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-switch/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-tabs@1.0.4_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-tabs/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-tooltip@1.0.7_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-tooltip/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.0.1_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.0.1_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.0.1_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-use-previous@1.0.1_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-previous/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-use-size@1.0.1_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.0.3_@types+react-dom@18.3.0_@types+react@18.3.3_react_a9f97785834eeda49c1aa55b817c9341/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs","../node_modules/.pnpm/@react-aria+focus@3.18.2_react@18.3.1/node_modules/@react-aria/focus/dist/isElementVisible.mjs","../node_modules/.pnpm/@react-aria+focus@3.18.2_react@18.3.1/node_modules/@react-aria/focus/dist/FocusScope.mjs","../node_modules/.pnpm/@react-aria+focus@3.18.2_react@18.3.1/node_modules/@react-aria/focus/dist/focusSafely.mjs","../node_modules/.pnpm/@react-aria+interactions@3.22.2_react@18.3.1/node_modules/@react-aria/interactions/dist/useFocus.mjs","../node_modules/.pnpm/@react-aria+interactions@3.22.2_react@18.3.1/node_modules/@react-aria/interactions/dist/useFocusVisible.mjs","../node_modules/.pnpm/@react-aria+interactions@3.22.2_react@18.3.1/node_modules/@react-aria/interactions/dist/useFocusWithin.mjs","../node_modules/.pnpm/@react-aria+interactions@3.22.2_react@18.3.1/node_modules/@react-aria/interactions/dist/utils.mjs","../node_modules/.pnpm/@react-aria+ssr@3.9.5_react@18.3.1/node_modules/@react-aria/ssr/dist/SSRProvider.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/chain.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/domHelpers.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/isVirtualEvent.mjs","../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/mergeProps.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/platform.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/runAfterTransition.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/useEffectEvent.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/useId.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/useValueEffect.mjs","../node_modules/.pnpm/@react-aria+utils@3.25.2_react@18.3.1/node_modules/@react-aria/utils/dist/useLayoutEffect.mjs","../node_modules/.pnpm/@react-aria+visually-hidden@3.8.15_react@18.3.1/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.mjs","../node_modules/.pnpm/@remix-run+router@1.19.1/node_modules/@remix-run/router/dist/router.js","../node_modules/.pnpm/@visiba-cortex+axon@2.0.0_@visiba-cortex+logger@2.0.0-rc.0_@visiba-cortex+std@2.0.0/node_modules/@visiba-cortex/axon/dist/index.mjs","../node_modules/.pnpm/@visiba-cortex+http@2.0.0_@jest+globals@29.7.0_@types+jest@29.5.12_debug@4.3.4_jest@29._627a927f982437251ec9e897d686c0d5/node_modules/@visiba-cortex/http/dist/index.mjs","../node_modules/.pnpm/@visiba-cortex+instantiation@3.0.0-rc.10_react-dom@18.3.1_react@18.3.1__react-is@18.3.1_react@18.3.1/node_modules/@visiba-cortex/instantiation/dist/main.mjs","../node_modules/.pnpm/@visiba-cortex+logger@1.0.0-alpha-01.2/node_modules/@visiba-cortex/logger/lib/index.js","../node_modules/.pnpm/@visiba-cortex+logger@1.0.0-alpha-01.2/node_modules/@visiba-cortex/logger/lib/logger.js","../node_modules/.pnpm/@visiba-cortex+presentation@2.0.0_@visiba-cortex+std@2.0.0_react@18.3.1/node_modules/@visiba-cortex/presentation/dist/index.mjs","../node_modules/.pnpm/@visiba-cortex+std@1.0.0-alpha-02/node_modules/@visiba-cortex/std/lib/debug.js","../node_modules/.pnpm/@visiba-cortex+std@1.0.0-alpha-02/node_modules/@visiba-cortex/std/lib/timer.js","../node_modules/.pnpm/@visiba-cortex+std@1.0.0-alpha-02/node_modules/@visiba-cortex/std/lib/color.js","../node_modules/.pnpm/@visiba-cortex+std@1.0.0-alpha-02/node_modules/@visiba-cortex/std/lib/emitter.js","../node_modules/.pnpm/@visiba-cortex+std@1.0.0-alpha-02/node_modules/@visiba-cortex/std/lib/vector.js","../node_modules/.pnpm/@visiba-cortex+std@1.0.0-alpha-02/node_modules/@visiba-cortex/std/lib/retry.js","../node_modules/.pnpm/@visiba-cortex+std@1.0.0-alpha-02/node_modules/@visiba-cortex/std/lib/errors/argumentError.js","../node_modules/.pnpm/@visiba-cortex+std@1.0.0-alpha-02/node_modules/@visiba-cortex/std/lib/errors/applicationError.js","../node_modules/.pnpm/@visiba-cortex+react-ui-std@1.0.0-beta.12_react-dom@18.3.1_react@18.3.1__react@18.3.1_s_434401e9a8c978fbf16bdcf14518ae51/node_modules/@visiba-cortex/react-ui-std/dist/visiba-cortex-react-ui-std.esm.js","../node_modules/.pnpm/@visiba-cortex+std@2.0.0/node_modules/@visiba-cortex/std/dist/index.mjs","../node_modules/.pnpm/aria-hidden@1.2.4/node_modules/aria-hidden/dist/es2015/index.js","../node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/esm2015/enums/transformation-type.enum.js","../node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/esm2015/storage.js","../node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/esm2015/MetadataStorage.js","../node_modules/.pnpm/@radix-ui+primitive@1.0.0/node_modules/@radix-ui/primitive/dist/index.module.js","../node_modules/.pnpm/@radix-ui+react-compose-refs@1.0.0_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.module.js","../node_modules/.pnpm/@radix-ui+react-context@1.0.0_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.module.js","../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.0.0_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js","../node_modules/.pnpm/@radix-ui+react-id@1.0.0_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.module.js","../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.0.0_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js","../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.0.0_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.js","../node_modules/.pnpm/@radix-ui+react-slot@1.0.0_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.module.js","../node_modules/.pnpm/@radix-ui+react-primitive@1.0.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-primitive/dist/index.module.js","../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.0.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.js","../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.0.0_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.js","../node_modules/.pnpm/@radix-ui+react-focus-scope@1.0.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-focus-scope/dist/index.module.js","../node_modules/.pnpm/@radix-ui+react-portal@1.0.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-portal/dist/index.module.js","../node_modules/.pnpm/@radix-ui+react-presence@1.0.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-presence/dist/index.module.js","../node_modules/.pnpm/@radix-ui+react-focus-guards@1.0.0_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.module.js","../node_modules/.pnpm/react-remove-scroll@2.5.4_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js","../node_modules/.pnpm/react-remove-scroll@2.5.4_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js","../node_modules/.pnpm/react-remove-scroll@2.5.4_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js","../node_modules/.pnpm/react-remove-scroll@2.5.4_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js","../node_modules/.pnpm/react-remove-scroll@2.5.4_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js","../node_modules/.pnpm/react-remove-scroll@2.5.4_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js","../node_modules/.pnpm/react-remove-scroll@2.5.4_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js","../node_modules/.pnpm/@radix-ui+react-dialog@1.0.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-dialog/dist/index.module.js","../node_modules/.pnpm/cmdk@0.2.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/cmdk/dist/index.mjs","../node_modules/.pnpm/command-score@0.1.2/node_modules/command-score/index.js","../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js","../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js","../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js","../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/customParseFormat.js","../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/duration.js","../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isBetween.js","../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/localeData.js","../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/localizedFormat.js","../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.js","../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.js","../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/weekOfYear.js","../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/weekday.js","../node_modules/.pnpm/dompurify@2.5.6/node_modules/dompurify/dist/purify.js","../node_modules/.pnpm/dompurify@3.1.6/node_modules/dompurify/dist/purify.js","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/PresenceContext.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/frameloop/batcher.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/frameloop/render-step.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/frameloop/frame.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/frameloop/sync-time.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/LazyContext.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/frameloop/microtask.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/variant-props.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/definitions.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/symbol.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/load-features.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/motion-proxy.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/utils/transform.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/number.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/use-props.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/use-props.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/use-render.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/utils/render.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/render.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/resolve-value.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/use-will-change/get-will-change-name.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/config-motion.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/config-motion.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/events/add-dom-event.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/events/utils/is-primary-pointer.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/events/event-info.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/drag/utils/lock.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/Feature.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/hover.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/press.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/gestures.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/focus.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/shallow-compare.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/time-conversion.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/utils/transitions.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-instant-transition-state.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/is-zero-value-string.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/is-numerical-string.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/test.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/complex/filter.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/utils/is-none.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/memo.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/generators/spring/find.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/generators/spring/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/generators/inertia.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/cubic-bezier.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/ease.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/modifiers/mirror.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/modifiers/reverse.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/circ.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/back.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/utils/map.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/anticipate.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/generators/keyframes.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/offsets/time.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/generators/utils/calc-duration.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/utils/is-bezier-definition.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/waapi/easing.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/waapi/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/scroll/supports.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/GroupPlaybackControls.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/scroll/observe.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/setters.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/use-will-change/WillChangeMotionValue.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/use-will-change/is.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/animations.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/distance.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/geometry/models.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/utils/measure.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/get-context-window.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/pan/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/node/state.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/geometry/copy.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/geometry/utils.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/shared/stack.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/delay.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/interfaces/single-value.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/styles/transform.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/drag.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/drag/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/store.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/find.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/VisualElement.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/motion.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/layout.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/create-config.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/GlobalConfig.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/array.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/clamp.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/errors.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/interpolate.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/is-browser.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/mix/immediate.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/mix/color.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/mix/visibility.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/mix/complex.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/mix/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/mix/number.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/noop.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/offsets/default.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/offsets/fill.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/pipe.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/progress.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/subscription-manager.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-constant.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-motion-value-event.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/velocity-per-second.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/color/hex.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/color/hsla.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/color/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/color/rgba.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/color/utils.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/complex/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/numbers/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/numbers/units.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/utils.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/resize/handle-element.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/resolve-element.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/resize/handle-window.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/scroll/info.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/scroll/track.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/resize/index.mjs","../node_modules/.pnpm/framer-motion@11.3.31_@emotion+is-prop-valid@1.2.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/use-scroll.mjs","../node_modules/.pnpm/history@5.3.0/node_modules/history/index.js","../node_modules/.pnpm/nanoid@2.1.11/node_modules/nanoid/format.browser.js","../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js","../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js","../node_modules/.pnpm/react-hook-form@7.48.2_react@18.3.1/node_modules/react-hook-form/dist/index.esm.mjs","../node_modules/.pnpm/react-remove-scroll-bar@2.3.6_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js","../node_modules/.pnpm/react-remove-scroll-bar@2.3.6_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js","../node_modules/.pnpm/react-remove-scroll-bar@2.3.6_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js","../node_modules/.pnpm/react-remove-scroll@2.5.5_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js","../node_modules/.pnpm/react-remove-scroll@2.5.5_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js","../node_modules/.pnpm/react-remove-scroll@2.5.5_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js","../node_modules/.pnpm/react-remove-scroll@2.5.5_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js","../node_modules/.pnpm/react-remove-scroll@2.5.5_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js","../node_modules/.pnpm/react-remove-scroll@2.5.5_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js","../node_modules/.pnpm/react-remove-scroll@2.5.5_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js","../node_modules/.pnpm/react-remove-scroll@2.5.7_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js","../node_modules/.pnpm/react-remove-scroll@2.5.7_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js","../node_modules/.pnpm/react-remove-scroll@2.5.7_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js","../node_modules/.pnpm/react-remove-scroll@2.5.7_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js","../node_modules/.pnpm/react-remove-scroll@2.5.7_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js","../node_modules/.pnpm/react-remove-scroll@2.5.7_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js","../node_modules/.pnpm/react-remove-scroll@2.5.7_@types+react@18.3.3_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js","../node_modules/.pnpm/react-router-dom@6.26.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-router-dom/dist/index.js","../node_modules/.pnpm/react-router@6.26.1_react@18.3.1/node_modules/react-router/dist/index.js","../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js","../node_modules/.pnpm/react-style-singleton@2.2.1_@types+react@18.3.3_react@18.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js","../node_modules/.pnpm/react-style-singleton@2.2.1_@types+react@18.3.3_react@18.3.1/node_modules/react-style-singleton/dist/es2015/component.js","../node_modules/.pnpm/react-style-singleton@2.2.1_@types+react@18.3.3_react@18.3.1/node_modules/react-style-singleton/dist/es2015/hook.js","../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js","../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js","../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js","../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-dev-runtime.js","../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/BehaviorSubject.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/Observable.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/ObjectUnsubscribedError.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/Subject.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/NotificationFactories.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/Subscriber.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/Subscription.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/config.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/observable/forkJoin.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/observeOn.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/observable/from.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/observable/innerFrom.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/observable/of.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/concatMap.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/filter.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/finalize.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/map.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/mergeMap.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/mergeInternals.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/operators/switchMap.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/symbol/iterator.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/symbol/observable.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/args.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/isScheduler.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/argsArgArrayOrObject.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/arrRemove.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/createErrorClass.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/createObject.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/errorContext.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/executeSchedule.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/identity.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/isArrayLike.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/isFunction.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/isIterable.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/isPromise.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/lift.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/noop.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/pipe.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js","../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js","../node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/index.js","../node_modules/.pnpm/shallowequal@1.1.0/node_modules/shallowequal/index.js","../node_modules/.pnpm/shortid@2.2.16/node_modules/shortid/index.js","../node_modules/.pnpm/shortid@2.2.16/node_modules/shortid/lib/alphabet.js","../node_modules/.pnpm/shortid@2.2.16/node_modules/shortid/lib/build.js","../node_modules/.pnpm/shortid@2.2.16/node_modules/shortid/lib/generate.js","../node_modules/.pnpm/shortid@2.2.16/node_modules/shortid/lib/index.js","../node_modules/.pnpm/shortid@2.2.16/node_modules/shortid/lib/is-valid.js","../node_modules/.pnpm/shortid@2.2.16/node_modules/shortid/lib/random/random-byte-browser.js","../node_modules/.pnpm/shortid@2.2.16/node_modules/shortid/lib/random/random-from-seed.js","../node_modules/.pnpm/shortid@2.2.16/node_modules/shortid/lib/util/cluster-worker-id-browser.js","../node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Enum.js","../node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Utility.js","../node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Tokenizer.js","../node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Serializer.js","../node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Prefixer.js","../node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Middleware.js","../node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Parser.js","../node_modules/.pnpm/@emotion+unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js","../node_modules/.pnpm/styled-components@6.1.13_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js","../node_modules/.pnpm/ua-parser-js@1.0.38/node_modules/ua-parser-js/src/ua-parser.js","../node_modules/.pnpm/use-callback-ref@1.3.2_@types+react@18.3.3_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js","../node_modules/.pnpm/use-callback-ref@1.3.2_@types+react@18.3.3_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js","../node_modules/.pnpm/use-callback-ref@1.3.2_@types+react@18.3.3_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js","../node_modules/.pnpm/use-sidecar@1.1.2_@types+react@18.3.3_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js","../node_modules/.pnpm/use-sidecar@1.1.2_@types+react@18.3.3_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js","../node_modules/.pnpm/use-sync-external-store@1.2.2_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","../node_modules/.pnpm/use-sync-external-store@1.2.2_react@18.3.1/node_modules/use-sync-external-store/shim/index.js","../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/native.js","../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/rng.js","../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/stringify.js","../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v4.js","../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/native.js","../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/rng.js","../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/stringify.js","../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js","webpack:///./Public_old/app/Components/embedded-web.component.ts?c78f","webpack:///./Public_old/wrappers/guest.wrapper.tsx?ba25","webpack:///./Public_old/wrappers/visits.wrapper.tsx?a0ca","webpack:///./Public_old/wrappers/cookie_policy.wrapper.tsx?427f","webpack:///./Public_old/app/Components/confirmPhoneNumber.ts?fc2c","./Public_old/app/Css/Components/MediaTestMini.scss","./Public_old/app/Css/Components/Messaging.scss","./Public_old/app/Css/Components/breadcrumbs.component.scss","./Public_old/app/Css/Components/document-sign.component.scss","./Public_old/app/Css/Components/drop-in-section-from-menu.component.scss","./Public_old/app/Css/Components/dynamicFormComponent.scss","./Public_old/app/Css/Components/externalSvg.scss","./Public_old/app/Css/Components/licenceHolderFooter.scss","./Public_old/app/Css/Components/mobileAppPromotion.scss","./Public_old/app/Css/Components/modal.component.scss","./Public_old/app/Css/Components/non-supported-browser.component.scss","./Public_old/app/Css/Components/notificationCompliance.component.scss","./Public_old/app/Css/Components/registration.component.scss","./Public_old/app/Css/Components/semantic-view.component.scss","./Public_old/app/Css/Components/signIn.component.scss","./Public_old/app/Css/Components/succesBox.scss","./Public_old/app/Css/Components/unit-picker.component.scss","./Public_old/app/Css/Components/visibaPayment.scss","./Public_old/app/Css/Components/visibaProgressBar.scss","./Public_old/app/Css/Components/visibaStep.scss","./Public_old/app/Css/Views/Guest/Guest.scss","./Public_old/app/Css/Views/Index/IndexMain.scss","./Public_old/app/app.component.scss","./Public_old/wrappers/css/appointment.wrapper.scss","./Public_old/wrappers/css/create-new-message.wrapper.scss","./Public_old/wrappers/css/header.wrapper.scss","./Public_old/wrappers/css/reception-home.wrapper.scss","./Public_old/wrappers/css/video-call.wrapper.scss","../../node_modules/.pnpm/tslib@2.7.0/node_modules/tslib/tslib.es6.js","../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js","../node_modules/.pnpm/reflect-metadata@0.2.2/node_modules/reflect-metadata/Reflect.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/bind.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/utils.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/core/AxiosError.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/toFormData.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/AxiosURLSearchParams.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/buildURL.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/core/InterceptorManager.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/defaults/transitional.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/platform/browser/index.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/platform/browser/classes/FormData.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/platform/browser/classes/Blob.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/formDataToJSON.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/defaults/index.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/toURLEncodedForm.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/parseHeaders.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/core/AxiosHeaders.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/core/transformData.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/cancel/isCancel.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/cancel/CanceledError.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/cookies.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/core/buildFullPath.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/isAbsoluteURL.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/combineURLs.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/isURLSameOrigin.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/speedometer.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/adapters/xhr.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/adapters/adapters.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/null.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/core/settle.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/parseProtocol.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/core/dispatchRequest.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/core/mergeConfig.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/env/data.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/validator.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/core/Axios.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/cancel/CancelToken.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/HttpStatusCode.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/axios.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/spread.js","../node_modules/.pnpm/axios@1.5.0_debug@4.3.4/node_modules/axios/lib/helpers/isAxiosError.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/constants.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/format.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/RFC3966.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/getNumberType.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/isObject.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/isValid.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/tools/semver-compare.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/metadata.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/ParseError.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/parseDigits.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/isPossible.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/PhoneNumber.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/parse.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/legacy/format.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/index.es6.exports/format.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/legacy/getNumberType.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/legacy/isValidNumber.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/index.es6.exports/isValidNumber.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/normalizeArguments.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/es6/legacy/parse.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/index.es6.exports/parse.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/metadata.min.json.js","../node_modules/.pnpm/libphonenumber-js@1.11.7/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js","../packages/cellula-theme-patient/dist/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/PresenceContext.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/is-browser.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/LazyContext.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/variant-props.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/definitions.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/symbol.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/load-features.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/motion-proxy.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/utils/transform.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/clamp.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/numbers/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/utils.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/numbers/units.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/number.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/use-props.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/use-props.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/use-render.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/utils/render.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/render.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-constant.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/resolve-value.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/noop.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/frameloop/render-step.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/frameloop/batcher.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/frameloop/frame.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/config-motion.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/config-motion.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/events/add-dom-event.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/events/utils/is-primary-pointer.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/events/event-info.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/pipe.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/drag/utils/lock.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/Feature.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/hover.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/press.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/gestures.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/focus.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/shallow-compare.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/errors.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/time-conversion.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-instant-transition-state.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/utils/is-bezier-definition.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/waapi/easing.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/cubic-bezier.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/ease.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/modifiers/mirror.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/modifiers/reverse.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/circ.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/back.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/utils/map.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/anticipate.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/color/utils.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/color/rgba.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/color/hex.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/color/hsla.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/color/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/mix.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/mix-color.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/complex/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/mix-complex.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/progress.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/interpolate.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/offsets/default.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/offsets/fill.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/generators/keyframes.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/offsets/time.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/velocity-per-second.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/generators/spring/find.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/generators/spring/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/generators/inertia.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/js/driver-frameloop.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/generators/utils/calc-duration.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/js/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/waapi/create-accelerated-animation.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/memo.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/waapi/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/types/complex/filter.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/is-zero-value-string.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/utils/is-none.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/utils/transitions.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/utils/keyframes.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/animators/instant.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/use-will-change/is.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/is-numerical-string.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/array.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/subscription-manager.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/test.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/value-types/find.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/setters.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/animations.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/distance.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/utils/measure.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/geometry/models.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/pan/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/node/state.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/geometry/copy.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/geometry/utils.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/shared/stack.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/styles/transform.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/debug/record.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/delay.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/interfaces/single-value.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/drag.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/drag/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/parse-dom-variant.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/store.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/VisualElement.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/motion.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/layout.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/utils/create-config.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-force-update.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-unmount-effect.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/hooks/use-animation.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/transform.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/use-motion-value.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/use-combine-values.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/use-transform.mjs","../node_modules/.pnpm/framer-motion@10.16.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/value/use-computed.mjs","../node_modules/.pnpm/@radix-ui+react-menu@2.0.6_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-menu/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-dropdown-menu@2.0.6_@types+react-dom@18.3.0_@types+react@18.3.3_react-d_9ea2ecf6c69cb4f7e82755d9945542e8/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-checkbox@1.0.4_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-checkbox/dist/index.mjs","../node_modules/.pnpm/@radix-ui+react-radio-group@1.1.3_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom_867c13b0e34a7811faf1fe2a35711531/node_modules/@radix-ui/react-radio-group/dist/index.mjs","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/metadata.min.json.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/tools/semver-compare.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/isObject.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/metadata.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/isPossible.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/getNumberType.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/constants.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/format.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/RFC3966.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/PhoneNumber.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/isValid.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/AsYouTypeState.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/parseDigits.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/AsYouTypeParser.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/AsYouType.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/min/exports/AsYouType.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/ParseError.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/parse.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/normalizeArguments.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError.js","../node_modules/.pnpm/libphonenumber-js@1.10.51/node_modules/libphonenumber-js/min/exports/parsePhoneNumberWithError.js","../packages/cellula/dist/index.mjs","../packages/logger/logger.ts","../packages/national-identity-number/src/countries/se.ts","../packages/national-identity-number/src/nin.ts","../packages/national-identity-number/src/nin_formatter.ts","../packages/national-identity-number/src/countries/gb.ts","../packages/national-identity-number/src/countries/no.ts","../packages/national-identity-number/src/countries/dk.ts","../packages/national-identity-number/src/countries/fi.ts","../packages/national-identity-number/src/countries/nl.ts","../packages/std/dist/index.mjs","../packages/react-std/src/hooks/use_constant.tsx","../packages/react-std/src/misc/is_ssr.tsx","../packages/react-std/src/hooks/use_misbehaved_force_update.tsx","../packages/react-std/src/hooks/use_resize.tsx","../packages/react-std/src/hooks/use_event_listener.tsx","../packages/react-std/src/misc/get_ref_element.tsx","../packages/react-std/src/hooks/use_ssr_safe_effect.tsx","../packages/react-std/src/hooks/use_ssr_safe_layout_effect.tsx","../packages/react-std/src/hooks/use_window_size.tsx","../packages/react-std/src/misc/dangerously_inject_html.tsx","../node_modules/.pnpm/dompurify@3.2.3/node_modules/dompurify/dist/purify.es.mjs","../packages/std/src/color.ts","../packages/std/src/debug.ts","../packages/std/src/errors/argument_error.ts","../packages/std/src/errors/application_error.ts","../packages/std/src/clamp.tsx","../packages/std/src/debounce.ts","../packages/std/src/timer.ts","../packages/std/src/delay.tsx","../packages/std/src/event_emitter.ts","../packages/std/src/get_cookie.tsx","../packages/std/src/is_visiba_ios_app.tsx","../packages/std/src/platform.tsx","../packages/std/src/retry.ts","../packages/std/src/parameter_handler.ts","../packages/std/src/rem.ts","../packages/std/src/safe_json_parse.ts","../packages/std/src/storage.tsx","../packages/std/src/create_initials.ts","../packages/std/src/format_bytes.ts","../packages/std/src/is_some_error.tsx","../../node_modules/.pnpm/@babel+runtime@7.25.6/node_modules/@babel/runtime/helpers/esm/extends.js","../../node_modules/.pnpm/@babel+runtime@7.26.0/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"],"sourcesContent":["export function appendSearchParamToAnyString(urlLike: string, key: string, value: string) {\n\tconst split = urlLike.split('?');\n\tconst searchParams = new URLSearchParams(split[1] ?? '');\n\n\tsearchParams.set(key, value);\n\n\treturn `${split[0]}?${searchParams.toString()}`;\n}\n","import { useResolve } from '@visiba-cortex/instantiation';\nimport { ReactNode, useLayoutEffect, useState } from 'react';\nimport { Router } from 'react-router';\nimport { RouterService } from './router.service';\nimport { useConstant } from '@visiba/react-std';\n\ninterface Props {\n\tbasename?: string;\n\tchildren?: ReactNode;\n\twindow?: Window;\n\tforceNewHistory?: boolean;\n}\n\n// Implements https://github.com/ReactTraining/react-router/blob/dev/packages/react-router-dom/index.tsx#L95\n\n/**\n * A for use in web browsers. Provides the cleanest URLs.\n */\nexport function ProgrammaticBrowserRouter({ children, window, basename, forceNewHistory }: Props) {\n\tconst routerService = useResolve(RouterService);\n\tconst history = useConstant(() => routerService.createBrowserHistory({ window, basename }, forceNewHistory));\n\n\tconst [state, setState] = useState({\n\t\tlocation: history.location,\n\t});\n\n\tuseLayoutEffect(() => history.listen(setState), [history]);\n\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t\n\t);\n}\n","class ResultInstance {\n\tconstructor(\n\t\tpublic readonly ok: T,\n\t\tpublic readonly err: K,\n\t) {\n\t\t// Empty\n\t}\n}\n\nwindow.Ok = (value: T) => {\n\treturn new ResultInstance(value, null);\n};\n\nwindow.Err = <_T, K>(value: K) => {\n\treturn new ResultInstance(null, value);\n};\n","import { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport {\n\tBrowserHistory,\n\tBrowserHistoryOptions,\n\tcreateBrowserHistory,\n\tcreateMemoryHistory,\n\tMemoryHistory,\n\tMemoryHistoryOptions,\n\tState,\n} from 'history';\nimport { resolvePath } from 'react-router';\n\ninterface NavigateOption {\n\treplace?: boolean;\n\tstate?: State;\n}\n\n@Injectable({\n\tscope: Scopes.Singleton,\n})\nexport class RouterService {\n\tprivate internalHistory: BrowserHistory | MemoryHistory | null = null;\n\tprivate v5_to_v6_patching_basename: Nullable = null;\n\tpublic get history(): BrowserHistory | MemoryHistory {\n\t\tif (!this.internalHistory) throw new Error('History is null, initialize one by calling the `createBrowserHistory` method');\n\n\t\treturn this.internalHistory;\n\t}\n\n\t// Text copied from https://github.com/ReactTraining/history/blob/master/packages/history/index.ts#L390\n\t/**\n\t * Browser history stores the location in regular URLs. This is the standard for\n\t * most web apps, but it requires some configuration on the server to ensure you\n\t * serve the same app at multiple URLs.\n\t */\n\tpublic createBrowserHistory(\n\t\toptions?: BrowserHistoryOptions & {\n\t\t\tbasename?: string;\n\t\t},\n\t\tforceNewHistory?: boolean,\n\t): BrowserHistory {\n\t\tif (this.internalHistory == null || forceNewHistory) {\n\t\t\tthis.internalHistory = createBrowserHistory(options);\n\t\t\tthis.v5_to_v6_patching_basename ??= options?.basename ?? '';\n\t\t}\n\n\t\treturn this.internalHistory;\n\t}\n\n\t// Text copied from https://github.com/ReactTraining/history/blob/master/packages/history/index.ts#L877\n\t/**\n\t * Memory history stores the current location in memory. It is designed for use\n\t * in stateful non-browser environments like tests and React Native.\n\t */\n\tpublic createMemoryHistory(options?: MemoryHistoryOptions): MemoryHistory {\n\t\tif (this.internalHistory == null) {\n\t\t\tthis.internalHistory = createMemoryHistory(options);\n\t\t}\n\n\t\treturn this.internalHistory as MemoryHistory;\n\t}\n\n\t/**\n\t * Navigates to a view using an relative route path.\n\t */\n\tpublic navigateByUrl(to: string | number, options: NavigateOption = {}): void {\n\t\tif (typeof to === 'string' && to[0] === '/') {\n\t\t\tto = (this.v5_to_v6_patching_basename ?? '') + to;\n\t\t}\n\n\t\t// Implements https://github.com/ReactTraining/react-router/blob/dev/packages/react-router/index.tsx#L420\n\t\tif (typeof to === 'number') {\n\t\t\tthis.history.go(to);\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst path = resolvePath(to, this.internalHistory?.location.pathname);\n\n\t\tif (options.replace) {\n\t\t\tthis.history.replace(path, options.state);\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.history.push(path, options.state);\n\t}\n\n\t/**\n\t * Navigates the user back one step in the history.\n\t * If the history does not have a length, use the fallback.\n\t */\n\tpublic back(fallback?: string) {\n\t\tif (history.length > 0) {\n\t\t\tthis.history.back();\n\t\t} else if (fallback) {\n\t\t\tthis.navigateByUrl(fallback);\n\t\t}\n\t}\n}\n","export class ApiBase {\n\tprivate static API_VERSION = '/' as const;\n\n\tprotected get baseUri() {\n\t\treturn [ApiBase.API_VERSION, this.endpoint].filter(Boolean).join('/');\n\t}\n\n\tconstructor(private readonly endpoint?: string) {\n\t\t// Empty\n\t}\n}\n","export class ApiBaseClient {\n\tpublic static API_VERSION = '/client/v2' as const;\n\n\tprotected get baseUri() {\n\t\treturn [ApiBaseClient.API_VERSION, this.endpoint].filter(Boolean).join('/');\n\t}\n\n\tconstructor(private readonly endpoint?: string) {\n\t\t// Empty\n\t}\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport type {\n\tCallStatusApiModel,\n\tCancelBookingApiResult,\n\tClientAppointmentApiModel,\n\tFileUploadApiModel,\n\tSurveyApiModel,\n\tSurveyQuestionAnswerApiModel,\n} from '@api_patient/generated/clientv2/models';\nimport { HttpResponse, HttpService, VisibaHttpOption } from '@application/http.service';\n\ntype MimeType =\n\t| 'application/msword'\n\t| 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'\n\t| 'application/octet-stream';\n\n@Injectable()\nexport class AppointmentApiService {\n\tconstructor(private readonly httpService: HttpService) {\n\t\t// Empty\n\t}\n\n\tpublic async get(ticket: string, option?: VisibaHttpOption): HttpResponse {\n\t\treturn this.httpService.get(`/Client/v2/appointments/${ticket}`, option);\n\t}\n\n\tpublic async getUpcomingAndUnfinished(): HttpResponse {\n\t\treturn this.httpService.get(`/Client/v2/appointments`);\n\t}\n\n\tpublic getFileIdentifier(ticket: Guid, name: string, length: number, type: string): HttpResponse {\n\t\tconst sendData = {\n\t\t\tName: name,\n\t\t\tLength: length,\n\t\t\tType: type === '' ? this.resolveMimeType(name) : type,\n\t\t};\n\n\t\treturn this.httpService.post(`Client/v2/appointments/${ticket}/files`, sendData);\n\t}\n\n\tpublic async cancel(ticket: string): HttpResponse {\n\t\treturn this.httpService.delete(`/Client/v2/appointments/${ticket}`);\n\t}\n\n\tpublic async decline(bookingId: number): HttpResponse {\n\t\treturn this.httpService.delete(`/Client/v2/appointments/decline/${bookingId.toString()}`);\n\t}\n\n\tpublic uploadChatFile(uploadURL: string, data: FormData): HttpResponse {\n\t\treturn this.httpService.post(`${uploadURL}`, data);\n\t}\n\n\tpublic callStatus(ticket: string): HttpResponse {\n\t\treturn this.httpService.get(`/Client/v2/appointments/${ticket}/callstatus`);\n\t}\n\n\tpublic survey(unitId: number): HttpResponse {\n\t\treturn this.httpService.get(`/client/v2/units/${unitId}/surveys/callCompleted`);\n\t}\n\n\tpublic surveyAnswers(\n\t\tunitId: number,\n\t\tdata: {\n\t\t\tAnswers: SurveyQuestionAnswerApiModel[];\n\t\t\tAppointmentTicket: string;\n\t\t},\n\t): HttpResponse {\n\t\treturn this.httpService.post(`/client/v2/units/${unitId}/surveys/callCompleted`, data);\n\t}\n\n\tpublic downloadChatFile(downloadURL: string): HttpResponse {\n\t\t// const options = new VisibaOptions({\n\t\t// \trequestConfig: {\n\t\t// \t\tresponseType: 'blob',\n\t\t// \t\twithCredentials: true,\n\t\t// \t},\n\t\t// });\n\n\t\treturn this.httpService.get(`${downloadURL}`);\n\t}\n\n\tpublic deleteFile(deleteURL: string): HttpResponse {\n\t\t// const options = new VisibaOptions({\n\t\t// \trequestConfig: {\n\t\t// \t\twithCredentials: true,\n\t\t// \t},\n\t\t// });\n\n\t\treturn this.httpService.delete(`${deleteURL}`);\n\t}\n\n\tprivate resolveMimeType(fileName: string): MimeType {\n\t\tconst extension = fileName.split('.')[fileName.split('.').length];\n\t\tswitch (extension) {\n\t\t\tcase 'doc':\n\t\t\t\treturn 'application/msword';\n\t\t\tcase 'docx':\n\t\t\t\treturn 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';\n\t\t\tdefault:\n\t\t\t\treturn 'application/octet-stream';\n\t\t}\n\t}\n}\n","import { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { ParameterHandler } from '@visiba/std';\nimport { ApiBaseClient } from './_api_base_client';\nimport type { AuthMethodApiModel, SmsConfirmCodeApiResult, SmsStartAuthModel } from './generated/clientv2/models';\nimport { HttpResponse, HttpService } from '@application/http.service';\n\n@Injectable({\n\tscope: Scopes.Transient,\n})\nexport class AuthApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('units');\n\t}\n\n\tpublic getMethods(licenceHolderId: number): HttpResponse<\n\t\t{\n\t\t\tScheme: string;\n\t\t\tName: string;\n\t\t\tDescription: string;\n\t\t\tUseIframe: boolean;\n\t\t}[]\n\t> {\n\t\treturn this.httpService.get(`/client/auth/idp/${licenceHolderId}/methods`);\n\t}\n\n\tpublic async getAuthMethods(\n\t\tunitId: number,\n\t\tcountryCode: string,\n\t\tcallTicket: Nullable = null,\n\t): HttpResponse {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({\n\t\t\tdevice: 'computer',\n\t\t\tcountryCode,\n\t\t});\n\t\tif (callTicket != null) parameterHandler.append({ usage: 'Outsider' });\n\n\t\treturn this.httpService.get(`${this.baseUri}/${unitId}/Auth/Methods${parameterHandler.getString()}`);\n\t}\n\n\tpublic async sendSMSCode(unitId: number, number: string, countryCode?: string): HttpResponse {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({ number: number });\n\t\tif (countryCode) parameterHandler.append({ countryCode });\n\n\t\treturn this.httpService.post(`${this.baseUri}/${unitId}/Auth/Methods/Sms/SendCode${parameterHandler.getString()}`, null);\n\t}\n\n\tpublic async sendSMSCodeWithCallticket(unitId: number, countryCode: string, callTicket: string): HttpResponse {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({\n\t\t\tcallTicket: callTicket,\n\t\t\tcountryCode: countryCode,\n\t\t});\n\n\t\treturn this.httpService.post(\n\t\t\t`${this.baseUri}/${unitId}/Auth/Methods/Sms/SendCodeWithCallTicket${parameterHandler.getString()}`,\n\t\t\tnull,\n\t\t);\n\t}\n\n\tpublic async resendSmsCode(unitId: number, authAttemptId: Guid): AsyncResult {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({ attemptId: authAttemptId });\n\n\t\treturn this.httpService.post(`${this.baseUri}/${unitId}/Auth/Methods/Sms/ReSendCode${parameterHandler.getString()}`, null);\n\t}\n\n\tpublic async getPreRegisteredNumber(receptionId: number, callTicket: string): HttpResponse {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({ callticket: callTicket });\n\n\t\treturn this.httpService.get(`${this.baseUri}/${receptionId}/Auth/Methods/Sms/PreRegisteredNumber${parameterHandler.getString()}`);\n\t}\n\n\tpublic async confirmSmsCode(\n\t\tunitId: number,\n\t\tattemptId: Guid,\n\t\tcode: string,\n\t\tsessionLifetime?: number,\n\t): HttpResponse {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({ attemptId: attemptId, code: code });\n\t\tif (sessionLifetime) parameterHandler.append({ sessionLifetime: sessionLifetime });\n\n\t\treturn this.httpService.post(`${this.baseUri}/${unitId}/Auth/Methods/Sms/ConfirmCode${parameterHandler.getString()}`, null);\n\t}\n\n\tpublic async beginNoAuth(unitId: number, callTicket: string, countryCode?: string): HttpResponse {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({ callTicket: callTicket });\n\t\tif (countryCode) parameterHandler.append({ countryCode: countryCode });\n\n\t\treturn this.httpService.post(`${this.baseUri}/${unitId}/Auth/Methods/NoAuth/StartAuth${parameterHandler.getString()}`, null);\n\t}\n\n\tpublic async confirmNoAuthIdentity(unitId: number, attemptId: Guid, commonName: string): HttpResponse {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({ authAttempt: attemptId, commonName: encodeURIComponent(commonName) });\n\n\t\treturn this.httpService.post(`${this.baseUri}/${unitId}/Auth/Methods/NoAuth/ConfirmIdentity${parameterHandler.getString()}`, null);\n\t}\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport { ApiBaseClient } from './_api_base_client';\nimport { HttpResponse, HttpService } from '@application/http.service';\nimport type {\n\tAddMessagingConversationResult,\n\tBasketContentsApiModel,\n\tBasketFileReferenceInput,\n\tBasketFormAnswer,\n\tCommitResult,\n\tCommitSuccessResult,\n\tFormQuestionAnswer,\n\tMessagingConversationInput,\n} from './generated/clientv2/models';\n\n@Injectable()\nexport class BasketApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('baskets');\n\t}\n\n\tpublic getActive(receptionId: number): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/active/${receptionId}`);\n\t}\n\n\tpublic deleteActive(receptionId: number): HttpResponse {\n\t\treturn this.httpService.delete(`${this.baseUri}/active/${receptionId}`);\n\t}\n\n\tpublic deleteProduct(basketId: number, productId: number): HttpResponse {\n\t\treturn this.httpService.delete(`${this.baseUri}/${basketId}/items/${productId}`);\n\t}\n\n\tpublic getBasket(basketId: number): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/${basketId}`);\n\t}\n\n\tpublic postMessagingConversation(\n\t\tbasketId: number,\n\t\tdata: Partial,\n\t): HttpResponse {\n\t\treturn this.httpService.post(`${this.baseUri}/${basketId}/MessagingConversation`, data as unknown as Record);\n\t}\n\n\tpublic postReason(basketId: number, basketProductId: number, reason: string): HttpResponse {\n\t\treturn this.httpService.post(`${this.baseUri}/${basketId}/Item/${basketProductId}/Reason`, {\n\t\t\tReason: reason,\n\t\t});\n\t}\n\n\tpublic postFiles(basketId: number, basketProductId: number, files: BasketFileReferenceInput[]): HttpResponse {\n\t\treturn this.httpService.post(\n\t\t\t`${this.baseUri}/${basketId}/Item/${basketProductId}/Files`,\n\t\t\tfiles as unknown as Record,\n\t\t);\n\t}\n\n\tpublic getFormAnswers(basketId: number, basketProductId: number, formId: number): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/${basketId}/FormAnswers/${basketProductId}/${formId}`);\n\t}\n\n\tpublic postFormAnswers(\n\t\tbasketId: number,\n\t\tbasketProductId: number,\n\t\tformId: number,\n\t\tdata: FormQuestionAnswer[],\n\t): HttpResponse {\n\t\treturn this.httpService.post(\n\t\t\t`${this.baseUri}/${basketId}/FormAnswers/${basketProductId}/${formId}`,\n\t\t\tdata as unknown as Record,\n\t\t);\n\t}\n\n\tpublic commit(basketId: number): HttpResponse {\n\t\treturn this.httpService.put(`${this.baseUri}/${basketId}/commit`, {});\n\t}\n\n\tpublic async getCommitStatus(commitJobId: number): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/commit/${commitJobId}`);\n\t}\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport { ParameterHandler } from '@visiba/std';\nimport { ApiBaseClient } from './_api_base_client';\nimport { HttpResponse, HttpService } from '@application/http.service';\nimport type { CaseOtherApiModel, PrioritizedCaseApiModel } from './generated/clientv2/models';\n\n@Injectable()\nexport class CasesApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('cases');\n\t}\n\n\tpublic getPrioritized(): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/prioritized`);\n\t}\n\n\tpublic deleteNewIncoming(callticket: string): HttpResponse {\n\t\treturn this.httpService.delete(`${this.baseUri}/newIncoming/appointment/${callticket}`);\n\t}\n\n\tpublic get(from?: VisibaDate, to?: VisibaDate): HttpResponse {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({\n\t\t\tfrom: from?.format('YYYY-MM-DD') ?? null,\n\t\t\tto: to?.format('YYYY-MM-DD') ?? null,\n\t\t});\n\n\t\treturn this.httpService.get(`${this.baseUri}${parameterHandler.getString()}`);\n\t}\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport { HttpResponse, HttpService } from '@application/http.service';\nimport { ApiBaseClient } from './_api_base_client';\nimport type {\n\tAnswerApiModel,\n\tFormApiModel,\n\tFormGraphApiModel,\n\tFormOpportunity,\n\tRespondantApiModel,\n} from './generated/clientv2/models';\nimport { ParameterHandler } from '@visiba/std';\n\nexport interface DynamicFormAnswer {\n\tboolValue: boolean | null;\n\tchoices: Array;\n\tintValue: number | null;\n\tquestionId: number;\n\tstringValue: string | null;\n}\n\nexport interface DynamicFormAnswers {\n\tcompleted: boolean;\n\tanswers: DynamicFormAnswer[];\n}\n\n@Injectable()\nexport class DynamicFormsApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('units');\n\t}\n\n\tpublic getAllForms(unitId: number, conditionId: number | null = null, opportunity: FormOpportunity | null = null) {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({\n\t\t\tconditionId,\n\t\t\topportunity,\n\t\t});\n\n\t\treturn this.httpService.get(`${this.baseUri}/${unitId}/forms/${parameterHandler.getString()}`);\n\t}\n\n\tpublic getById(unitId: number, id: number) {\n\t\treturn this.httpService.get(`${this.baseUri}/${unitId}/forms/${id}`);\n\t}\n\n\tpublic getRespondant(unitId: number, respondantId: number) {\n\t\treturn this.httpService.get(`${this.baseUri}/${unitId}/forms/respondants/${respondantId}`);\n\t}\n\n\tpublic answer(unitId: number, respondantId: number, answers: DynamicFormAnswer[]): HttpResponse {\n\t\treturn this.httpService.post(\n\t\t\t`${this.baseUri}/${unitId}/forms/respondants/${respondantId}/answers`,\n\t\t\tanswers.map(\n\t\t\t\t(answer) =>\n\t\t\t\t\t({\n\t\t\t\t\t\tBoolValue: answer.boolValue,\n\t\t\t\t\t\tIntValue: answer.intValue,\n\t\t\t\t\t\tChoices: answer.choices,\n\t\t\t\t\t\tQuestionId: answer.questionId,\n\t\t\t\t\t\tStringValue: answer.stringValue,\n\t\t\t\t\t}) satisfies AnswerApiModel,\n\t\t\t) as unknown as Record,\n\t\t);\n\t}\n\n\tpublic setCompletion(unitId: number, respondantId: number): HttpResponse {\n\t\treturn this.httpService.post(`${this.baseUri}/${unitId}/forms/respondants/${respondantId}/completion`, null);\n\t}\n}\n","import { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { HttpResponse, HttpService } from '@application/http.service';\nimport { ApiBase } from './_api_base';\nimport type {\n\tAppointmentAccessApiModel,\n\tAppointmentCalendarInfoApiModel,\n\tPatientPolicyDocumentsApiModel,\n\tPublicBaseDataApiModel,\n} from './generated/general/models';\n\n@Injectable({\n\tscope: Scopes.Transient,\n})\nexport class GeneralApiService extends ApiBase {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('general');\n\t}\n\n\tpublic get(alias: string): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/licenceHolder/${alias}`);\n\t}\n\n\tpublic getAppointmentAccessInfo(callTicket: string): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/appointment/${callTicket}/accessInfo`);\n\t}\n\n\tpublic getCalendarInfo(callTicket: string): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/appointment/${callTicket}/calendarInfo`);\n\t}\n\n\tpublic getFeatureToggles(urlAlias: string): HttpResponse> {\n\t\tconst url = this.httpService.createUrl(`${this.baseUri}/featureToggles`);\n\t\turl.searchParams.append('urlAlias', urlAlias);\n\n\t\treturn this.httpService.get(url);\n\t}\n\n\tpublic setlanguage(languageCode: string): HttpResponse {\n\t\treturn this.httpService.put(`${this.baseUri}/language/setLanguage`, { LanguageCode: languageCode });\n\t}\n\n\tpublic getPatientBase(alias: string): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/licenceHolder/${alias}/publicBase`);\n\t}\n\n\tpublic getPolicyDocuments(alias: string, languageCode: string): HttpResponse {\n\t\tconst url = this.httpService.createUrl(`${this.baseUri}/licenceHolder/${alias}/patient/policyDocuments`);\n\t\turl.searchParams.append('languageCode', languageCode);\n\n\t\treturn this.httpService.get(url);\n\t}\n\n\tpublic getTranslationSets(\n\t\tlicenceHolderId: number,\n\t\ttranslationsSets: string[],\n\t\tlanguageCode: string,\n\t): HttpResponse> {\n\t\treturn this.httpService.get(`${this.baseUri}/translationSets/${licenceHolderId}/${translationsSets.join(',')}/${languageCode}`);\n\t}\n\n\tpublic touchSession(): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/session/touch`);\n\t}\n}\n","/* This file is auto-generated. Do not edit directly. */\n/* eslint-disable */\nexport enum FormOpportunity {\n BeforeBooking = 'BeforeBooking',\n AfterBooking = 'AfterBooking',\n BeforeCase = 'BeforeCase'\n}\n\n","/* This file is auto-generated. Do not edit directly. */\n/* eslint-disable */\nexport enum States {\n Unpaid = 'Unpaid',\n Paid = 'Paid',\n Expired = 'Expired'\n}\n\n","import { HttpService } from '@application/http.service';\nimport { Injectable } from '@visiba-cortex/instantiation';\nimport { ApiBaseClient } from './_api_base_client';\nimport type { IdentityApiModel, SignOutApiModel, UpdateIdentityApiInput } from './generated/clientv2/models';\n\n@Injectable()\nexport class IdentityApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('identity');\n\t}\n\n\tpublic isAlive() {\n\t\treturn this.httpService.get(this.baseUri + '/isAlive');\n\t}\n\n\tpublic get() {\n\t\treturn this.httpService.get(this.baseUri);\n\t}\n\n\tpublic canDeleteAccount() {\n\t\treturn this.httpService.get(this.baseUri + '/canDelete');\n\t}\n\n\tpublic deleteAccount() {\n\t\treturn this.httpService.delete(this.baseUri);\n\t}\n\n\tpublic signOut() {\n\t\treturn this.httpService.post(this.baseUri + '/signOut', null);\n\t}\n\n\tpublic update(body: Partial) {\n\t\treturn this.httpService.put(this.baseUri, body);\n\t}\n\n\tpublic getSignOutPath(returnUrl: string): string {\n\t\tconst params = new URLSearchParams();\n\t\tparams.append('returnUrl', returnUrl);\n\n\t\t// TODO: Should probably not hardcode \"api\" here... It won't hurt but it's a bit ugly.\n\t\treturn `/api${this.baseUri}/signOutIdp?${params.toString()}`;\n\t}\n}\n","import { HostingService } from '@application/hosting.service';\nimport { HttpResponse, HttpService } from '@application/http.service';\nimport { Injectable } from '@visiba-cortex/instantiation';\n\n@Injectable()\nexport class OfficeApiService {\n\tprivate readonly baseUri: string;\n\n\tconstructor(\n\t\tprivate readonly httpService: HttpService,\n\t\tprivate readonly hostingService: HostingService,\n\t) {\n\t\tthis.baseUri = `${this.hostingService.location ?? ''}/api/office`;\n\t}\n\n\tpublic getIdentity(licenceHolderId: number): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/prioritized/${licenceHolderId}/identity/info`);\n\t}\n\n\tpublic survey(licenceHolderId: number, alias: string, langcode: string): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/${licenceHolderId}/surveys/${alias}/questions/${langcode}`);\n\t}\n\n\tpublic setCompleted(licenceHolderId: number, bookingId: number): HttpResponse {\n\t\treturn this.httpService.put(`${this.baseUri}/${licenceHolderId}/bookings/${bookingId}/completed`, null);\n\t}\n\n\tpublic surveyAnswers(\n\t\tlicenceHolderId: number,\n\t\talias: string,\n\t\tdata: {\n\t\t\tBookingCallTicket: string;\n\t\t\tAnswers: AnswerSurveyQuestionInput[];\n\t\t},\n\t): HttpResponse {\n\t\treturn this.httpService.post(`${this.baseUri}/${licenceHolderId}/surveys/${alias}`, data);\n\t}\n}\n\n// Reason, the {} type is needed to get the typing to work as intended.\n// eslint-disable-next-line @typescript-eslint/ban-types\ntype InferedOfficeModel = {};\n\nexport enum SurveyAnswerValueType {\n\tInt4SatisfactionScore = 'Int4SatisfactionScore',\n\tText500 = 'Text500',\n}\n\nexport interface SurveyQuestionInfo {\n\tAnswerType: SurveyAnswerValueType;\n\tQuestionAlias: string;\n\tQuestionText: string | null;\n\tSortValue: number;\n\tSurveyQuestionId: number;\n}\n\nexport interface AnswerSurveyQuestionInput {\n\tIntValue: number | null;\n\tQuestionAlias: string;\n\tStringValue: string | null;\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport { HttpService } from '@application/http.service';\nimport { ApiBase } from './_api_base';\nimport type { GetRepresentativeNinApiModel } from './generated/general/models';\nimport { RED_ROBIN_SUPPORTED_LANGUAGES } from '../constants';\nimport { UniversalConfig } from '@application/universal_config.service';\n\n@Injectable()\nexport class RedRobinApiService extends ApiBase {\n\tconstructor(\n\t\tprivate readonly httpService: HttpService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t) {\n\t\tsuper('general');\n\t}\n\n\tpublic getRepresentativeNin(sessionId: string) {\n\t\treturn this.httpService.get(`${this.baseUri}/RedRobin/${sessionId}/GetRepresentativeNin`);\n\t}\n\n\tpublic getSessionUrl() {\n\t\tconst getLanguageCode = (): string => {\n\t\t\tconst selectedLanguageCode = this.universalConfig.selectedLanguageCode.peek();\n\t\t\tif (RED_ROBIN_SUPPORTED_LANGUAGES.includes(selectedLanguageCode)) {\n\t\t\t\treturn selectedLanguageCode;\n\t\t\t}\n\n\t\t\treturn 'en';\n\t\t};\n\n\t\treturn this.httpService.post(`/client/v2/units/${this.universalConfig.currentUnitId}/redrobin/startSession`, {\n\t\t\tlanguageCode: getLanguageCode(),\n\t\t});\n\t}\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport { ParameterHandler } from '@visiba/std';\nimport { HttpResponse, HttpService, VisibaHttpOption } from '@application/http.service';\nimport { ApiBaseClient } from './_api_base_client';\nimport type {\n\tClientConditionApiModel,\n\tClientPhysicalLocationApiModel,\n\tGuiComponentApiModel,\n\tSurveyApiModel,\n\tUnitAboutApiModel,\n\tUnitConfigApiModel,\n\tUnitModel,\n} from './generated/clientv2/models';\nimport { PublicBaseDataApiModel } from './generated/general/models';\n\n@Injectable()\nexport class UnitsApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('units');\n\t}\n\n\tpublic getTree(unitId: number): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/${unitId}/tree`);\n\t}\n\n\tpublic getUnitConfig(unitId: number, httpOptions?: VisibaHttpOption): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/${unitId}/config/web`, httpOptions);\n\t}\n\n\tpublic getTexts(receptionId: number, keys: T[]): HttpResponse<{ [K in T]: string | null }> {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({ aliases: keys.join(',') });\n\n\t\treturn this.httpService.get(`${this.baseUri}/${receptionId}/texts${parameterHandler.getString()}`);\n\t}\n\n\tpublic getLicenseHolderAboutData(unitId: number): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/${unitId}/About`);\n\t}\n\n\t// public async getData(unitId: number): HttpResponse> {\n\t// \tconst {\n\t// \t\tdata: { Offer },\n\t// \t} = await this.httpService.get(`${this.baseUri}/${unitId}/config/app`);\n\n\t// \tif (Offer === null) throw new Error('Todo: should never be null');\n\n\t// \treturn {\n\t// \t\tdata: Offer,\n\t// \t\tsuccessful: true,\n\t// \t\theaders: {},\n\t// \t};\n\t// }\n\n\tpublic getUnitComponents(unitId: number): HttpResponse {\n\t\tconst url = `${this.baseUri}/${unitId}/guicomponents`;\n\n\t\treturn this.httpService.get(url);\n\t}\n\n\tpublic getLicenseHolderData(alias: string): HttpResponse {\n\t\treturn this.httpService.get(`/general/licenceHolder/${alias}/publicBase`);\n\t}\n\n\tpublic getConditions(unitId: number): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/${unitId}/conditions`);\n\t}\n\n\tpublic getPhysicalLocations(unitId: number, languageCode: string): HttpResponse {\n\t\tconst url = this.httpService.createUrl(`${this.baseUri}/${unitId}/physicalLocations`);\n\t\turl.searchParams.append('languageCode', languageCode);\n\n\t\treturn this.httpService.get(url);\n\t}\n\n\tpublic survey(alias: string): HttpResponse {\n\t\treturn this.httpService.get(`${this.baseUri}/survey/${alias}`);\n\t}\n}\n","import { MatomoTracker } from './matomo_tracker';\nimport type { MatomoTrackerSpecification } from './matomo_tracker';\n\nexport namespace Analytic {\n\tconst trackersToBeCreated: MatomoTracker[] = [];\n\n\tlet scriptElement: HTMLScriptElement | null = null;\n\n\texport function createTracker(spec: MatomoTrackerSpecification): MatomoTracker {\n\t\t// pushes all specs so they can be used when piwik gets loaded\n\t\tconst matomoInstance = MatomoTracker.create(spec);\n\t\ttrackersToBeCreated.push(matomoInstance);\n\n\t\treturn matomoInstance;\n\t}\n\n\texport function initialize(urlBase: string): void {\n\t\t// window does not exist in non-DOM environments\n\t\tif (typeof window === 'undefined') return;\n\n\t\tloadScript(urlBase);\n\t}\n\n\texport function attachTrackers(urlBase: string): void {\n\t\twhile (trackersToBeCreated.length > 0) {\n\t\t\tconst matomoInstance = trackersToBeCreated.shift();\n\t\t\tif (matomoInstance == null) break;\n\n\t\t\tconst piwikTracker = window.Piwik.getTracker(`${urlBase}piwik.php`, matomoInstance.siteId);\n\n\t\t\t// Setting up the flag execution per instance. https://github.com/matomo-org/matomo/blob/4.x-dev/js/piwik.js#L7378\n\t\t\t// 🚨 Correct execution order is:\n\t\t\t// → disableCookies\n\t\t\t// → setAPIUrl\n\t\t\t// → enableCrossDomainLinking\n\t\t\t// → setCookiePath\n\t\t\t// → setCookieDomain\n\t\t\t// → setDomains\n\t\t\t// → setUserId\n\t\t\t// → enableLinkTracking\n\t\t\t// https://matomo.org/blog/2017/02/complete-guide-tracking-websites-web-apps-multiple-piwiks-easily-efficiently/\n\t\t\t// ref in source code https://github.com/matomo-org/matomo/blob/4.x-dev/js/piwik.js#L7122\n\t\t\t// prettier-ignore\n\t\t\tconst fixedFnOrder = [\n\t\t\t\tmatomoInstance.flags.useDisableCookies && piwikTracker.disableCookies,\n\t\t\t\tmatomoInstance.flags.useSetAPIUrl && piwikTracker.setAPIUrl,\n\t\t\t\tmatomoInstance.flags.useEnableCrossDomainLinking && piwikTracker.enableCrossDomainLinking,\n\t\t\t\tmatomoInstance.flags.useSetCookiePath && piwikTracker.setCookiePath,\n\t\t\t\tmatomoInstance.flags.useSetCookieDomain && piwikTracker.setCookieDomain,\n\t\t\t\tmatomoInstance.flags.useSetDomains && piwikTracker.setDomains,\n\t\t\t\tmatomoInstance.flags.useSetUserId && piwikTracker.setUserId,\n\t\t\t\tmatomoInstance.flags.useEnableLinkTracking && piwikTracker.enableLinkTracking,\n\t\t\t];\n\t\t\tfixedFnOrder.forEach((fn) => fn && fn());\n\n\t\t\tmatomoInstance.attachPiwikInstance(piwikTracker);\n\t\t}\n\t}\n\n\tfunction removeScript(): void {\n\t\tif (scriptElement == null) return;\n\n\t\tscriptElement.remove();\n\n\t\t// Reason: We trust the Matomo script...\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t(window as any).piwikAsyncInit = undefined;\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t(window as any).Matomo = undefined;\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t(window as any).Piwik = undefined;\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t(window as any).piwik_log = undefined;\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t(window as any).AnalyticsTracker = undefined;\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t(window as any).piwikAsyncInit = undefined;\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t(window as any).matomoAsyncInit = undefined;\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t(window as any).matomoPluginAsyncInit = undefined;\n\n\t\tscriptElement = null;\n\t}\n\n\tfunction loadScript(urlBase: string): void {\n\t\tremoveScript();\n\n\t\t// Is called when piwik script has been loaded\n\t\twindow.piwikAsyncInit = () => {\n\t\t\tattachTrackers(urlBase);\n\t\t\twindow.piwikAsyncInit = undefined;\n\t\t};\n\n\t\tconst normalizedUrlBase = urlBase[urlBase.length - 1] !== '/' ? `${urlBase}/` : urlBase;\n\n\t\tscriptElement = document.createElement('script');\n\t\tscriptElement.type = 'text/javascript';\n\t\tscriptElement.async = true;\n\t\tscriptElement.defer = true;\n\t\tscriptElement.src = `${normalizedUrlBase}matomo.js`;\n\n\t\tdocument.head.insertBefore(scriptElement, null);\n\t\tconsole.log('inserted matomo');\n\t}\n}\n","export interface MatomoInstanceFlags {\n\tuseDisableCookies?: boolean;\n\tuseSetAPIUrl?: boolean;\n\tuseEnableCrossDomainLinking?: boolean;\n\tuseSetCookiePath?: boolean;\n\tuseSetCookieDomain?: boolean;\n\tuseSetDomains?: boolean;\n\tuseSetUserId?: boolean;\n\tuseEnableLinkTracking?: boolean;\n}\n\nexport interface MatomoTrackerSpecification extends MatomoInstanceFlags {\n\tsiteId: string;\n}\n\n// F needs to extend Function here\n// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any\ntype ArgumentTypes = F extends (...args: infer A) => any ? A : never;\ntype InterceptedArgs = [T, ArgumentTypes];\n\n// This is heavily inspired by:\n// https://github.com/Amsterdam/matomo-tracker/blob/master/packages/js/src/MatomoTracker.ts\n// https://github.com/Arnaud73/ngx-matomo/blob/master/projects/ngx-matomo/src/lib/matomo-tracker.service.ts\n// It's a merge between them\nexport class MatomoTracker {\n\tpublic readonly siteId: string;\n\tpublic readonly flags: MatomoInstanceFlags;\n\tprivate storedTrackings: InterceptedArgs[] = [];\n\tprivate connectedPiwikInstance: PiwikInstanceApi | null = null;\n\tprivate wasKilled = false;\n\n\t/* @internal */\n\tpublic static create(spec: MatomoTrackerSpecification): MatomoTracker {\n\t\treturn new MatomoTracker(spec);\n\t}\n\n\tprivate constructor({ siteId, ...rest }: MatomoTrackerSpecification) {\n\t\tthis.siteId = siteId;\n\n\t\tthis.flags = Object.freeze({\n\t\t\t...rest,\n\t\t});\n\t}\n\n\t/**\n\t * Disables all tracking for the Matomo instance.\n\t */\n\tpublic kill() {\n\t\tthis.wasKilled = true;\n\t\tthis.connectedPiwikInstance = null;\n\t\tthis.storedTrackings = [];\n\t}\n\n\t/**\n\t * A side effect that occurs when attaching a loaded Piwik instance is that\n\t * each stored tracking event up to this point will be dispatched.\n\t */\n\tpublic attachPiwikInstance(piwikInstance: PiwikInstanceApi): void {\n\t\tthis.connectedPiwikInstance = piwikInstance;\n\n\t\t// Dispatches all stored tracking actions. Empties the array in the process\n\t\twhile (this.storedTrackings.length > 0) {\n\t\t\tconst storedTracking = this.storedTrackings.shift();\n\t\t\tif (!storedTracking) break;\n\t\t\tthis.dispatchAction(storedTracking);\n\t\t}\n\t}\n\n\t/**\n\t * Custom variable statistics are reported in Matomo under Visitors > custom variables.\n\t *\n\t * https://developer.matomo.org/guides/tracking-javascript-guide#custom-variables\n\t *\n\t * @param {number} params.index - The number from 1 to 5 where this custom variable name is stored\n\t * @param {string} params.category - The name of the variable, for example: `Gender`, `VisitorType`\n\t * @param {string} params.value - The value, for example: `Male`, `Female` or `new`, `engaged`, `customer`\n\t * @param {string} params.scope - Scope of the custom variable, `visit` means the custom variable applies to the current visit\n\t */\n\tpublic setCustomVariable(params: { index: 1 | 2 | 3 | 4 | 5; category: string; value: string; scope: string }): void {\n\t\tthis.isAlive();\n\n\t\tconst { index, category, scope, value } = params;\n\n\t\tthis.interceptAction('setCustomVariable', [index, category, value, scope]);\n\t}\n\n\t/**\n\t * Custom dimension statistics are reported in Matomo under Visitors.\n\t *\n\t * https://developer.matomo.org/guides/tracking-javascript-guide#custom-dimensions\n\t *\n\t * @param {number} params.id - The custom dimension id\n\t * @param {string} params.value - The value, for example: `Male`, `Female` or `new`, `engaged`, `customer`\n\t */\n\tpublic setCustomDimension(params: { id: number; value: string }): void {\n\t\tthis.isAlive();\n\n\t\tconst { id, value } = params;\n\n\t\tthis.interceptAction('setCustomDimension', [id, value]);\n\t}\n\n\t/**\n\t * Tracks events\n\t *\n\t * https://matomo.org/docs/event-tracking/#tracking-events\n\t *\n\t * @param {string} params.category - Category of the event\n\t * @param {string} params.action - Action of the event\n\t * @param {string=} params.name - Optional name of the event\n\t * @param {number=} params.value - Optional value for the event\n\t */\n\tpublic trackEvent(params: { category: string; action: string; name?: string; value?: number }): void {\n\t\tthis.isAlive();\n\n\t\tconst { category, action, name, value } = params;\n\n\t\tif (category && action) {\n\t\t\tthis.track({\n\t\t\t\tdata: ['trackEvent', [category, action, name, value]],\n\t\t\t});\n\t\t} else {\n\t\t\tthrow new Error('Category and action are required');\n\t\t}\n\t}\n\n\t/**\n\t * Tracks page views\n\t *\n\t * https://developer.matomo.org/guides/spa-tracking#tracking-a-new-page-view\n\t *\n\t * @param {string=} params.customTitle - Custom title for the page\n\t */\n\tpublic trackPageView(params: { customTitle: string; documentTitle?: string; href?: string }): void {\n\t\tthis.isAlive();\n\n\t\tconst { customTitle, documentTitle, href } = params;\n\n\t\tthis.track({\n\t\t\tdocumentTitle,\n\t\t\thref,\n\t\t\tdata: ['trackPageView', [customTitle]],\n\t\t});\n\t}\n\n\t/** Sends the tracked page/view/search to Matomo */\n\tprivate track(params: { data: InterceptedArgs; documentTitle?: string; href?: string | Location }): void {\n\t\tthis.isAlive();\n\n\t\tconst { data = [], documentTitle = window.document.title, href = window.location.href } = params;\n\n\t\tif (data.length === 0) return;\n\n\t\tthis.interceptAction('setCustomUrl', [href]);\n\t\tthis.interceptAction('setDocumentTitle', [documentTitle]);\n\t\tthis.interceptAction(...data);\n\t}\n\n\tprivate interceptAction(...args: InterceptedArgs): void {\n\t\tthis.isAlive();\n\n\t\t// This interceptor exists to not lose events when piwik is loading asynchronously. During piwik load it'll queue up all requested actions instead of dispatching them\n\t\tif (this.connectedPiwikInstance == null) {\n\t\t\tthis.storedTrackings.push(args);\n\t\t} else {\n\t\t\tthis.dispatchAction(args);\n\t\t}\n\t}\n\n\tprivate dispatchAction(args: InterceptedArgs): void {\n\t\tthis.isAlive();\n\n\t\tif (!this.connectedPiwikInstance) throw new Error(`no piwik instance has been linked to this MatomoTracker`);\n\t\tif (!this.connectedPiwikInstance[args[0]]) throw new Error(`${args[0]} is not included in the piwik's public api`);\n\n\t\t// This is extremely hard to type correctly\n\t\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t\t// @ts-ignore\n\t\tthis.connectedPiwikInstance[args[0]](...args[1]);\n\t}\n\n\tprivate isAlive() {\n\t\tif (this.wasKilled) throw new Error('Matomo tracker is disabled, tracking should not be called.');\n\t}\n}\n","import { safeJsonParse } from '@visiba/std';\nimport { Analytic, MatomoTracker } from '@visiba/analytic';\nimport { HostingService } from '@application/hosting.service';\nimport { Injectable } from '@visiba-cortex/instantiation';\nimport { Logger } from '@visiba/logger';\nimport { ConsentService, UserConsent } from '@component/consent/consent.service';\n\nexport enum AnalyticCategories {\n\tUnset = 'Generic',\n\tWindow = 'Window',\n\tTopNavigation = 'Top-navigation',\n\tStartView = 'Start-view',\n\tAttentionCards = 'Attention cards',\n\tSearchReception = 'SearchReception-popup',\n\tPatientCall = 'Patient-Call',\n\tCallChat = 'Call-Chat',\n\tCallBar = 'Call-Bar',\n\tCallErrors = 'Call-Errors',\n\tDeviceSettings = 'Call-Device-Settings',\n\tCallScene = 'Call-Scene',\n\tCallLobby = 'Call-Lobby',\n\tReceptionHome = 'ReceptionHome',\n\tBrowseReceptionView = 'BrowseReception-view',\n\tDeviceGateway = 'Device-Gateway',\n\tVisits = 'Visits',\n\tVisitsAppointment = 'Visits-Appointment',\n\tVisitsChat = 'Visits-Chat',\n\tPaymentFlow = 'Payment-Flow',\n\tDynamicForm = 'Dynamic-Form',\n\tFooter = 'Footer',\n\tSignIn = 'Sign-In',\n\tNavigationMenu = 'Navigation-Menu',\n\tGuest = 'Guest',\n\tCreateNewMessage = 'Create-New-Message',\n\tTopBar = 'Top-Bar',\n\tMyAccount = 'My-Account',\n\tBooking = 'Booking',\n\tCookieConsent = 'CookieConsent',\n\tError = 'Error',\n\tUnhandledError = 'Unhandled Error',\n}\n\nexport enum AnalyticActions {\n\tClicked = 'Clicked',\n\tChangedLanguage = 'Changed language to',\n}\n\nexport type AnalyticAction = `${AnalyticActions}: ${string}`;\n\nexport class InvalidAnalyticConfig extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'InvalidAnalyticConfig';\n\t\tObject.setPrototypeOf(this, InvalidAnalyticConfig.prototype);\n\t}\n}\n\ninterface Config {\n\tlicenceHolderId: number;\n\tglobalCustomerId: string;\n\tsiteId: number;\n\turl: string;\n}\n\n@Injectable()\nexport class AnalyticService {\n\tprivate tracker: Nullable = null;\n\tprivate readonly logger = new Logger('analytic');\n\tprivate config: Nullable = null;\n\n\tconstructor(\n\t\tprivate readonly hostingService: HostingService,\n\t\tprivate readonly consentService: ConsentService,\n\t) {\n\t\t// Empty\n\t}\n\n\t/**\n\t * Needs to be called after the LicenceHolder service has had its data populated.\n\t */\n\tpublic setup(licenceHolderId: number, globalCustomerId: string): void {\n\t\tconst analyticConfig = this.hostingService.analyticConfig;\n\t\tif (!analyticConfig.enabled) {\n\t\t\tthis.logger.logDebug('Analytic is disabled. No tracking will be done.');\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.config = {\n\t\t\tlicenceHolderId: licenceHolderId,\n\t\t\tglobalCustomerId: globalCustomerId,\n\t\t\tsiteId: analyticConfig.meta.siteId,\n\t\t\turl: analyticConfig.meta.url,\n\t\t};\n\n\t\tthis.createTracker();\n\t}\n\n\t/**\n\t * Creates a new tracker instance with the correct Visiba settings.\n\t * If one already exists it will be killed and a new one will be created.\n\t */\n\tpublic createTracker() {\n\t\tif (this.config == null) {\n\t\t\tthis.logger.logError('No config was set up for the analytic service');\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.tracker != null) {\n\t\t\tthis.logger.logVerbose('A tracker was already initiated and was now killed - bye bye!');\n\t\t\tthis.tracker.kill();\n\t\t}\n\n\t\t// We're rolling double/tripple negation here but: no consent -> no cookies.\n\t\tconst mayUseCookie = this.consentService.hasConsent(UserConsent.Analytic);\n\t\tconst useDisableCookies = mayUseCookie === false;\n\n\t\tthis.logger.logVerbose('A new tracker was created. May use cookies: {mayUseCookie}', mayUseCookie);\n\n\t\tthis.tracker = Analytic.createTracker({\n\t\t\tsiteId: this.config.siteId.toString(),\n\t\t\tuseEnableCrossDomainLinking: false,\n\t\t\t// Important that this adheres to the user's cookie choice. Else it'll not be legal.\n\t\t\tuseDisableCookies: useDisableCookies,\n\t\t});\n\t\tthis.tracker.setCustomVariable({\n\t\t\tindex: 1,\n\t\t\tcategory: 'LicenceHolderId',\n\t\t\tvalue: this.config.licenceHolderId.toString(),\n\t\t\tscope: 'page',\n\t\t});\n\t\tthis.tracker.setCustomVariable({\n\t\t\tindex: 3,\n\t\t\tcategory: 'GlobalCustomerId',\n\t\t\tvalue: this.config.globalCustomerId,\n\t\t\tscope: 'page',\n\t\t});\n\t\tthis.tracker.setCustomVariable({\n\t\t\tindex: 4,\n\t\t\tcategory: 'Instance',\n\t\t\tvalue: location.hostname,\n\t\t\tscope: 'page',\n\t\t});\n\t\tthis.tracker.setCustomVariable({\n\t\t\tindex: 5,\n\t\t\tcategory: 'Space',\n\t\t\tvalue: 'V4', // V4 == the fourth iteration of the patient web. Ask some old räv for more info!\n\t\t\tscope: 'page',\n\t\t});\n\n\t\tAnalytic.initialize(this.config.url);\n\t}\n\n\tpublic trackEvent(category: AnalyticCategories, action: string, name?: string, value?: number): void {\n\t\tif (name !== undefined && value !== undefined) {\n\t\t\tthis.logger.logVerbose(\n\t\t\t\t'trackEvent: category: \"{category}\", action: \"{action}\", name: \"{name}\", value: \"{value}\"',\n\t\t\t\tcategory,\n\t\t\t\taction,\n\t\t\t\tname,\n\t\t\t\tvalue,\n\t\t\t);\n\t\t} else if (name !== undefined) {\n\t\t\tthis.logger.logVerbose('trackEvent: category: \"{category}\", action: \"{action}\", name: \"{name}\"', category, action, name);\n\t\t} else {\n\t\t\tthis.logger.logVerbose('trackEvent: category: \"{category}\", action: \"{action}\"', category, action);\n\t\t}\n\n\t\tif (this.tracker == null) {\n\t\t\tthis.logger.logDebug('In trackEvent. No analytic instance has been created');\n\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tthis.tracker.trackEvent({\n\t\t\t\taction,\n\t\t\t\tcategory,\n\t\t\t\tname,\n\t\t\t\tvalue,\n\t\t\t});\n\t\t} catch (error: unknown) {\n\t\t\tthis.logger.logError('could not track event {category}: \"{action}\"', category, action);\n\t\t}\n\t}\n\n\tpublic trackPageView(...args: Parameters): void {\n\t\tthis.logger.logVerbose('trackPageView: \"{title}\"', args[0].customTitle);\n\n\t\tif (this.tracker == null) {\n\t\t\tthis.logger.logDebug('In trackPageView. No analytic instance has been created');\n\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tthis.tracker.trackPageView(...args);\n\t\t} catch (error: unknown) {\n\t\t\tthis.logger.logError('could not track event {args}', safeJsonParse(args));\n\t\t}\n\t}\n\n\tpublic changeTrackedUnitId(unitId: number): void {\n\t\tif (this.tracker == null) {\n\t\t\tthis.logger.logDebug('In changeTrackedUnitId. No analytic instance has been created');\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.tracker.setCustomVariable({\n\t\t\tindex: 2,\n\t\t\tcategory: 'UnitId',\n\t\t\tvalue: unitId.toString(),\n\t\t\tscope: 'page',\n\t\t});\n\t}\n}\n","import { createContext, ReactNode, useContext } from 'react';\nimport { AnalyticCategories, AnalyticService } from './analytic.service';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { useConstant } from '@visiba/react-std';\n\nconst Context = createContext(AnalyticCategories.Unset);\n\ninterface Props {\n\tcategory: AnalyticCategories;\n\tchildren: ReactNode;\n}\n\nexport function AnalyticProvider({ children, category }: Props): JSX.Element {\n\treturn {children};\n}\n\nexport function useAnalyticContext() {\n\tconst category = useContext(Context);\n\tconst analyticService = useResolve(AnalyticService);\n\n\tconst obj = useConstant(() => {\n\t\treturn {\n\t\t\tservice: analyticService,\n\t\t\tcategory,\n\t\t\ttrackEvent(action: string, name?: string) {\n\t\t\t\tanalyticService.trackEvent(category, action, name);\n\t\t\t},\n\t\t} as const;\n\t});\n\n\treturn obj;\n}\n","import { useAnalyticContext } from '../analytic_context.provider';\nimport { Link, LinkProps } from 'react-router-dom';\nimport type { ReactNode } from 'react';\n\ninterface Props extends LinkProps {\n\taction: string;\n\tto: string;\n\tchildren: ReactNode;\n}\n\nexport function AnalyticLink({ to, action, children, ...rest }: Props): JSX.Element {\n\tconst analyticCtx = useAnalyticContext();\n\n\tfunction handleClick(): void {\n\t\tanalyticCtx.trackEvent(action);\n\t}\n\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t\n\t);\n}\n","import { storage } from '@visiba/std';\nimport type { Settings } from '../features/settings/user_settings.service';\nimport type { CreateNewMessageSettings } from '@view/view_create_new_message/create_new_message_settings.service';\nimport type { BookingSettingsRawData } from '@view/view_booking/view_booking_settings.service';\n\nexport const applicationLocalStorage = storage<{\n\tUSER_SETTINGS: Settings;\n\tidentitySession: string;\n\twebVersion: string;\n\tcreateNewMessageSettings: Record;\n\tbookingSettings: Record;\n\t'shell-variant': 'shell' | 'shell-2' | 'shell-3';\n\tcookieConsentRevision: {\n\t\tversion: number;\n\t\ttimestamp: string;\n\t\tconsent: number;\n\t};\n}>({ type: 'local' });\n","import { storage } from '@visiba/std';\n\nexport const devApplicationLocalStorage = storage<{\n\tidentitySession: string | null;\n\trequestVerificationToken: string | null;\n\toverrideFlags: Record | null;\n}>();\n","import { storage } from '@visiba/std';\nimport type { DynamicFormAnswers } from '@api_patient/dynamic_forms_api.service';\nimport type { BasketStorageData } from '@view/view_booking/booking_basket.service';\n\nexport const applicationSessionStorage = storage<{\n\tshowAlias: boolean;\n\tdynamicForms: Record>;\n\tbookingBasket: Record;\n}>({ type: 'session' });\n","import { IdentityApiService } from '@api_patient/identity_api.service';\nimport { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { AuthApiService } from '@api_patient/auth_api.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { applicationLocalStorage } from '@application/application_storage_local';\nimport { signal } from '@preact/signals-react';\nimport { EventEmitter } from '@visiba/std';\nimport { Logger } from '@visiba/logger';\nimport type { FieldOption, IdentityApiModel, SignOutApiModel, UserType } from '@api_patient/generated/clientv2/models';\nimport { HttpError } from '@application/http_error';\nimport { I18nAndL10n } from '@application/i18n/i18n_and_l10n';\n\n@Injectable({\n\tscope: Scopes.Singleton,\n})\nexport class AuthService extends EventEmitter<{\n\tonSuccessfulAuthentication: User;\n\tonAuthenticationTermination: User;\n\tonSuccessfulAuthMethods: Method[];\n}> {\n\tpublic readonly user = signal>(null);\n\t#logger = new Logger('auth service');\n\t#authMethods: Method[] | null = null;\n\n\tpublic getUser(): User | null {\n\t\treturn this.user.peek();\n\t}\n\n\tpublic getMethods(): Method[] | null {\n\t\treturn this.#authMethods;\n\t}\n\n\tconstructor(\n\t\tprivate readonly identityApiService: IdentityApiService,\n\t\tprivate readonly authApiService: AuthApiService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t) {\n\t\tsuper();\n\t}\n\n\tpublic isSignedIn(): boolean {\n\t\treturn this.getUser() != null;\n\t}\n\n\tpublic async loadIdentity(): AsyncResult {\n\t\tthis.#logger.logInformation('loads identity');\n\n\t\tconst result = await this.identityApiService.get();\n\n\t\tif (result.err) {\n\t\t\tthis.#logger.logError('could not load user');\n\n\t\t\treturn result /* TODO: This cast can removed when not using Angular */ as unknown as AsyncResult>;\n\t\t}\n\n\t\tif (result.ok.data != null) {\n\t\t\tthis.user.value = this.createUserObj(result.ok.data);\n\t\t\tthis.emit('onSuccessfulAuthentication', this.user.value);\n\t\t\tthis.#logger.logInformation('identity loaded');\n\t\t}\n\n\t\treturn Ok(this.user.value);\n\t}\n\n\tpublic async terminateIdentity(): AsyncResult {\n\t\tthis.#logger.logInformation('signs out user');\n\n\t\tconst result = await this.identityApiService.signOut();\n\t\tif (result.ok) {\n\t\t\tapplicationLocalStorage.removeItem('identitySession');\n\n\t\t\tconst user = this.user.peek();\n\t\t\tif (user != null) {\n\t\t\t\tthis.user.value = null;\n\t\t\t\tthis.emit('onAuthenticationTermination', user);\n\t\t\t} else {\n\t\t\t\tthis.#logger.logError('user was null, is this an error?');\n\t\t\t}\n\n\t\t\treturn Ok(result.ok.data);\n\t\t}\n\n\t\treturn result /* TODO: This cast can removed when not using Angular */ as unknown as AsyncResult<\n\t\t\tSignOutApiModel,\n\t\t\tHttpError\n\t\t>;\n\t}\n\n\tpublic async provideAuthenticationMethods(): AsyncResult {\n\t\tconst getAuthMethodsResult = await this.authApiService.getAuthMethods(\n\t\t\tthis.universalConfig.selectedUnitId,\n\t\t\tthis.universalConfig.selectedCountryCode.value,\n\t\t);\n\t\tif (getAuthMethodsResult.err) {\n\t\t\treturn Ok([]);\n\t\t}\n\n\t\tthis.#authMethods = getAuthMethodsResult.ok.data.map((d) => ({ id: d.MethodId, name: d.Name ?? '-' }));\n\t\tthis.emit('onSuccessfulAuthMethods', this.#authMethods);\n\n\t\treturn Ok(this.#authMethods);\n\t}\n\n\tprivate createUserObj(response: IdentityApiModel): User {\n\t\tconst firstName =\n\t\t\tresponse.FirstName == null && response.LastName == null ? I18nAndL10n.translate('PW.Common.Anonymous') : response.FirstName;\n\t\tconst commonName = this.getUserCommonName(response.FirstName, response.LastName);\n\n\t\treturn {\n\t\t\tid: response.Id,\n\t\t\tlicenceHolderId: response.LicenceHolderId,\n\t\t\tuserType: response.UserType,\n\t\t\tfirstName: firstName ?? '',\n\t\t\tlastName: response.LastName ?? '',\n\t\t\tcommonName: commonName,\n\t\t\temail: response.Email,\n\t\t\tnationality: response.Nationality,\n\t\t\tphone: response.Phone,\n\t\t\tnationalIdentityNumber: response.NationalIdentityNumber,\n\t\t\tphoneRequirement: response.PhoneRequirement,\n\t\t\temailRequirement: response.EmailRequirement,\n\t\t\tnationalIdentityNumberRequirement: response.NationalIdentityNumberRequirement,\n\t\t};\n\t}\n\n\tprivate getUserCommonName(firstName: string | null, lastName: string | null): string {\n\t\tif (firstName && lastName) return firstName + ' ' + lastName;\n\t\tif (!firstName && lastName) return lastName;\n\t\tif (firstName && !lastName) return firstName;\n\n\t\treturn I18nAndL10n.translate('PW.Common.Anonymous');\n\t}\n}\n\nexport type User = Readonly<{\n\tid: number;\n\tlicenceHolderId: number;\n\tuserType: UserType;\n\tfirstName: string;\n\tlastName: string;\n\tcommonName: string;\n\tphone: string | null;\n\temail: string | null;\n\tnationality: string | null;\n\tnationalIdentityNumber: string | null;\n\temailRequirement: FieldOption;\n\tphoneRequirement: FieldOption;\n\tnationalIdentityNumberRequirement: FieldOption;\n}>;\n\nexport type Method = {\n\tid: string;\n\tname: string;\n};\n","import { useResolve } from '@visiba-cortex/instantiation';\nimport { AuthService, User } from './auth.service';\nimport { useLayoutEffect } from 'react';\nimport { useMisbehavedForceUpdate } from '@visiba/react-std';\n\nexport function useUser(): User | null {\n\tconst authService = useResolve(AuthService);\n\tconst update = useMisbehavedForceUpdate();\n\n\tuseLayoutEffect(() => {\n\t\tconst cb = (_: User) => {\n\t\t\tupdate();\n\t\t};\n\t\tconst disposers = [authService.on('onAuthenticationTermination', cb), authService.on('onSuccessfulAuthentication', cb)];\n\n\t\treturn () => {\n\t\t\tdisposers.forEach((d) => d());\n\t\t};\n\t}, [authService, update]);\n\n\treturn authService.getUser();\n}\n","import { DateService } from '@application/time/date.service';\nimport { Presentation, SynchronousPresentation, usePresentation } from '@visiba-cortex/presentation';\nimport { Disposer, Timer } from '@visiba/std';\n\nexport type CounterState = [state: SynchronousPresentation, disposer: Disposer];\n\ninterface Presentation {\n\ttime: number;\n\thasElapse: boolean;\n\thasBeenTriggeredExternally: boolean;\n}\n\nconst INTERVAL = 100;\n\nexport function createCounterState(startTime: VisibaDate): CounterState {\n\tlet prevMin = getElapsedTime(startTime)[0];\n\t// JavaScript is a single threaded language and we can't reliably count on the\n\t// event loop being accurate. To ensure steady interval executing the callback\n\t// without drift.\n\tlet expected = Date.now() + INTERVAL;\n\n\tfunction getElapsedTime(time: VisibaDate): [minute: number, absolute: number] {\n\t\tconst ms = time.diff(DateService.newDate(), 'milliseconds');\n\n\t\treturn [Math.ceil(ms / 60_000), ms];\n\t}\n\n\tconst tick = (): void => {\n\t\tconst drift = Date.now() - expected;\n\n\t\texpected += INTERVAL;\n\n\t\tconst [minute, absoluteMs] = getElapsedTime(startTime);\n\n\t\tif (absoluteMs <= 0) {\n\t\t\ttimer.flush();\n\n\t\t\tpresentation.write({\n\t\t\t\thasElapse: true,\n\t\t\t\ttime: 0,\n\t\t\t});\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (prevMin !== minute) {\n\t\t\tprevMin = minute;\n\t\t\tpresentation.write({\n\t\t\t\ttime: prevMin,\n\t\t\t});\n\t\t}\n\n\t\ttimer.wait(tick, Math.max(0, INTERVAL - drift)); // Take into account drift\n\t};\n\n\tconst timer = new Timer();\n\tconst presentation = Presentation.create({\n\t\ttime: prevMin,\n\t\thasElapse: false,\n\t\thasBeenTriggeredExternally: false,\n\t});\n\n\ttimer.wait(tick, INTERVAL);\n\n\treturn [presentation, timer.flush];\n}\n\nexport function useCounterState(countDowner: CounterState): Presentation {\n\treturn usePresentation(countDowner[0]);\n}\n","import { GeneralApiService } from '@api_patient/general_api.service';\nimport { devApplicationLocalStorage } from '@application/application_storage_local_dev';\nimport { Injectable, Scopes } from '@visiba-cortex/instantiation';\n\n/**\n * Service to load and distribute Feature Flags in the application.\n *\n * To add a new Feature Flag, add a new property to the \"ExpectedFlags\"\n * interface in `feature_flags.d.ts`.\n *\n * ### Related modules\n * * useFeatureFlag hook - used in React views for conditional renders.\n */\n@Injectable({\n\tscope: Scopes.Singleton,\n})\nexport class FeatureFlagService {\n\tpublic static checkFlag(flag: keyof T): Result {\n\t\tif ((globalThis as typeof window).__visiba_feature_flags__ == null) Err(new FeatureFlagStoreNotSet());\n\n\t\tconst retrievedFlag = (globalThis as typeof window).__visiba_feature_flags__[flag as keyof ExpectedFlags];\n\n\t\treturn Ok(retrievedFlag ?? false);\n\t}\n\n\tpublic static setFlag(flag: keyof T, value: boolean) {\n\t\tif ((globalThis as typeof window).__visiba_feature_flags__ == null)\n\t\t\t(globalThis as typeof window).__visiba_feature_flags__ = {} as Record;\n\t\t(globalThis as typeof window).__visiba_feature_flags__[flag as keyof ExpectedFlags] = value;\n\t}\n\n\tconstructor(private readonly generalApiService: GeneralApiService) {\n\t\t// Empty\n\t}\n\n\tpublic async load(urlAlias: string): AsyncResult {\n\t\t(globalThis as typeof window).__visiba_feature_flags__ = undefined as never;\n\n\t\tconst { ok, err } = await this.generalApiService.getFeatureToggles(urlAlias);\n\t\tif (err) return Err(err);\n\n\t\t// A way in for us programers to manually override any flag we want at initialization.\n\t\t// Especially useful for when new flags are being tested locally.\n\t\t// Example:\n\t\t// 1. Add \"overrideFlags\" into a new key slot in your Local Storage.\n\t\t// 2. Paste a serialized record (string, boolean) into the value field: {\"WayIn.AlternativeHome\": true}.\n\t\t// 3. Your override should start to work now.\n\t\tconst overrideFlags = devApplicationLocalStorage.get('overrideFlags');\n\n\t\t(globalThis as typeof window).__visiba_feature_flags__ = {\n\t\t\t_NOOP_EXAMPLE_DO_NOT_USE: false,\n\t\t\t'CareExperience.PW.Idp': false,\n\t\t\t'PatientWeb.UseRelativeScrollPositionInChat': false,\n\t\t\t'PatientWeb.UseAlternativeAppointment': false,\n\t\t\t'PatientWeb.UseVonage': false,\n\t\t\t'Office.RedRobinButton': false,\n\t\t\t'PatientWeb.UseNewConsent': false,\n\t\t\t'CareExperience.AllowedIPList': false,\n\t\t\t'CareExperience.VonageForceRouted': false,\n\t\t\t'CareExperience.VonageE2EE': false,\n\t\t\t...ok.data,\n\t\t\t...(overrideFlags == null ? {} : overrideFlags),\n\t\t};\n\n\t\treturn Ok((globalThis as typeof window).__visiba_feature_flags__);\n\t}\n\n\tpublic checkFlag(toggle: keyof T): boolean {\n\t\tconst flag = FeatureFlagService.checkFlag(toggle);\n\t\tif (flag.err) return false;\n\n\t\treturn flag.ok;\n\t}\n\n\tpublic setFlag(toggle: keyof T, value: boolean) {\n\t\tFeatureFlagService.setFlag(toggle, value);\n\t}\n}\n\nexport class FeatureFlagNotSet extends Error {\n\tconstructor(featureFlag: keyof T) {\n\t\tsuper(`The feature flag \"${String(featureFlag)}\" has not yet been registered, was it removed?`);\n\t\tthis.name = 'FeatureFlagNotSet';\n\t\tObject.setPrototypeOf(this, FeatureFlagNotSet.prototype);\n\t}\n}\n\nexport class FeatureFlagStoreNotSet extends Error {\n\tconstructor() {\n\t\tsuper(`The feature flag store has not yet been declared, has the \"load\" method not been invoked?`);\n\t\tthis.name = 'FeatureFlagStoreNotSet';\n\t\tObject.setPrototypeOf(this, FeatureFlagStoreNotSet.prototype);\n\t}\n}\n","// Reason, weird mix of node and non-node enviroment variables.\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { Injectable, Scopes } from '@visiba-cortex/instantiation';\n\ninterface AnalyticMeta {\n\turl: string;\n\tsiteId: number;\n}\n\ninterface AnalyticConfigPresent {\n\tenabled: true;\n\tmeta: Readonly;\n}\n\ninterface AnalyticConfigDisabled {\n\tenabled: false;\n\tmeta: null;\n}\n\ntype AnalyticConfig = AnalyticConfigPresent | AnalyticConfigDisabled;\n\ninterface Environment {\n\tapi: {\n\t\turi: string | null;\n\t};\n\trealtime: {\n\t\thost: string | null;\n\t\tport: string;\n\t};\n\tanalyticConfig: AnalyticConfig;\n\tserverBaseUrl: string;\n\tcdn: {\n\t\tcustomer: string;\n\t\tmedia: string;\n\t};\n}\n\n@Injectable({\n\tscope: Scopes.Singleton,\n})\nexport class HostingService {\n\tpublic wsBaseUri: string;\n\tpublic apiBaseUri: string;\n\tpublic readonly isDev_DONT_USE_IT_ONLY_EXIST_TO_MAKE_ANGULAR_WORK: boolean;\n\tpublic readonly assetPath: string;\n\tpublic readonly mediaCdn: string;\n\tpublic readonly customerCdn: string;\n\tpublic readonly location: string;\n\tpublic readonly analyticConfig: AnalyticConfig;\n\n\tconstructor() {\n\t\t// We're doing a bit of tomfoolery here to get the environment variables from the Vite environment or Webpack environment.\n\t\t// Very cool, very epic. Let's hope we can get rid of this soon...\n\t\tthis.isDev_DONT_USE_IT_ONLY_EXIST_TO_MAKE_ANGULAR_WORK =\n\t\t\timport.meta.env != null ? (import.meta.env as any).DEV : process.env.NODE_ENV === 'development';\n\t\tconst VITE_HOSTING_API_URL =\n\t\t\timport.meta.env != null ? import.meta.env.VITE_HOSTING_API_URL : (process?.env as any)?.CUSTOM_GLOBAL_ENV?.API_URL;\n\t\tconst VITE_HOSTING_REALTIME_HOST =\n\t\t\timport.meta.env != null ? import.meta.env.VITE_HOSTING_REALTIME_HOST : (process?.env as any)?.CUSTOM_GLOBAL_ENV?.REALTIME_HOST;\n\t\tconst VITE_HOSTING_REALTIME_PORT =\n\t\t\timport.meta.env != null ? import.meta.env.VITE_HOSTING_REALTIME_PORT : (process?.env as any)?.CUSTOM_GLOBAL_ENV?.REALTIME_PORT;\n\t\tconst VITE_BASE_RULE = import.meta.env != null ? ((import.meta.env.VITE_BASE_RULE ?? '') as string) : '/PublicV3/assets';\n\n\t\tconst config: Environment = this.isDev_DONT_USE_IT_ONLY_EXIST_TO_MAKE_ANGULAR_WORK\n\t\t\t? {\n\t\t\t\t\tapi: {\n\t\t\t\t\t\turi: VITE_HOSTING_API_URL ?? 'https://dev1.vcare.pl',\n\t\t\t\t\t},\n\t\t\t\t\trealtime: {\n\t\t\t\t\t\thost: VITE_HOSTING_REALTIME_HOST ?? 'dev1.vcare.pl',\n\t\t\t\t\t\tport: VITE_HOSTING_REALTIME_PORT ?? (443).toString(),\n\t\t\t\t\t},\n\t\t\t\t\tanalyticConfig: {\n\t\t\t\t\t\tenabled: true,\n\t\t\t\t\t\tmeta: {\n\t\t\t\t\t\t\turl: '//analytics.visibacare.com/',\n\t\t\t\t\t\t\tsiteId: 7,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tserverBaseUrl: VITE_BASE_RULE,\n\t\t\t\t\tcdn: {\n\t\t\t\t\t\tcustomer: '//customer-cdn.visibacare.com',\n\t\t\t\t\t\tmedia: '//media-cdn.visibacare.com',\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t: {\n\t\t\t\t\tapi: {\n\t\t\t\t\t\turi: null,\n\t\t\t\t\t},\n\t\t\t\t\trealtime: {\n\t\t\t\t\t\thost: null,\n\t\t\t\t\t\tport: '443',\n\t\t\t\t\t},\n\t\t\t\t\tanalyticConfig: this.getAnalyticConfig(),\n\t\t\t\t\tserverBaseUrl: VITE_BASE_RULE,\n\t\t\t\t\tcdn: {\n\t\t\t\t\t\tcustomer: '//customer-cdn.visibacare.com',\n\t\t\t\t\t\tmedia: '//media-cdn.visibacare.com',\n\t\t\t\t\t},\n\t\t\t\t};\n\n\t\tthis.location = config.api.uri ?? globalThis.location.origin;\n\t\tthis.assetPath = config.serverBaseUrl;\n\t\tthis.mediaCdn = config.cdn.media;\n\t\tthis.customerCdn = config.cdn.customer;\n\t\tthis.apiBaseUri = `${this.location ?? ''}/api`;\n\t\tthis.wsBaseUri = `wss://${config.realtime.host ?? location.hostname}:${config.realtime.port}`;\n\t\tthis.analyticConfig = config.analyticConfig;\n\t}\n\n\tprivate getAnalyticConfig(): AnalyticConfig {\n\t\tlet siteId: number;\n\n\t\tif (location.hostname.includes('vcare.pl') || location.hostname.includes('stage-service.visibacare')) {\n\t\t\tsiteId = 7; // 7 == New patient web (DEV) siteId in Matomo\n\t\t} else {\n\t\t\tsiteId = 12; // 12 == New patient web (Prod) siteId in Matomo\n\t\t}\n\n\t\treturn {\n\t\t\tenabled: true,\n\t\t\tmeta: {\n\t\t\t\turl: '//analytics.visibacare.com/',\n\t\t\t\tsiteId: siteId,\n\t\t\t},\n\t\t};\n\t}\n}\n","// Reason: Needed for certain types in this file.\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { HostingService } from './hosting.service';\nimport { applicationLocalStorage } from './application_storage_local';\nimport { UniversalConfig } from './universal_config.service';\nimport { HttpError } from './http_error';\nimport { Logger } from '@visiba/logger';\nimport { parseCookies } from '@cortex-shim/parse_cookies';\nimport { isAbsolute } from '@module/is_absolute';\n\nexport interface ProblemDetails {\n\ttype: T;\n\ttitle: string;\n\tdetail: string;\n\tadditionalProps: K;\n\tvalidationProblems: [];\n\n\t// Legacy Props\n\terrorCode: Nullable;\n\terrorMessage: Nullable;\n\tvalidationErrors: Nullable;\n}\n\nexport interface HttpResponseBody {\n\treadonly data: T;\n\treadonly headers: Headers;\n\treadonly status: HttpStatusCode;\n}\n\nexport type HttpResponse> = AsyncResult, E>;\n\nexport enum RESTMethods {\n\tHEAD = 'HEAD',\n\tGET = 'GET',\n\tPOST = 'POST',\n\tPUT = 'PUT',\n\tPATCH = 'PATCH',\n\tOPTIONS = 'OPTIONS',\n\tDELETE = 'DELETE',\n}\n\ntype RequestPath = URL | RequestInfo;\n\n@Injectable({\n\tscope: Scopes.Singleton,\n})\nexport class HttpService {\n\tprivate static logger = new Logger('httpService');\n\n\tconstructor(\n\t\tprivate readonly hostingService: HostingService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t) {\n\t\t// Empty\n\t}\n\n\tpublic static async send(\n\t\tmethod: RESTMethods,\n\t\trequestPath: RequestPath,\n\t\toption: VisibaHttpOption,\n\t\tbody?: Payload,\n\t): HttpResponse> {\n\t\tlet promise: Promise;\n\n\t\t// todo: should go through a middleware?\n\t\tlet href: string;\n\t\tif (requestPath instanceof URL) {\n\t\t\thref = requestPath.href;\n\t\t} else if (requestPath instanceof Request) {\n\t\t\thref = requestPath.url;\n\t\t} else {\n\t\t\thref = requestPath;\n\t\t}\n\n\t\t// todo: should go through a middleware?\n\t\tHttpService.logger.logVerbose(`{method} {url}`, method, href);\n\n\t\t// todo: should go through a middleware?\n\t\tif (body) {\n\t\t\tpromise = fetch(requestPath, {\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\tmethod,\n\t\t\t\theaders: option.getHeaders(),\n\t\t\t});\n\t\t} else {\n\t\t\tpromise = fetch(requestPath, {\n\t\t\t\tmethod,\n\t\t\t\theaders: option.getHeaders(),\n\t\t\t});\n\t\t}\n\n\t\ttry {\n\t\t\tconst response = await promise;\n\n\t\t\t// todo: should go through a middleware?\n\t\t\tlet data: T;\n\t\t\ttry {\n\t\t\t\tswitch (option.opts.parseAs) {\n\t\t\t\t\tcase 'json': {\n\t\t\t\t\t\tdata = (await response.json()) as T;\n\n\t\t\t\t\t\t// To enforce the removal of the wrapper and migrating to problem details & auto generated clients.\n\t\t\t\t\t\tif (HttpService.isVisibaEnvelope(data)) {\n\t\t\t\t\t\t\tdata = data['Data'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase 'text': {\n\t\t\t\t\t\tdata = (await response.text()) as T;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase 'blob': {\n\t\t\t\t\t\tdata = (await response.blob()) as T;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase 'arrayBuffer': {\n\t\t\t\t\t\tdata = (await response.arrayBuffer()) as T;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tdata = null as never;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch {\n\t\t\t\tdata = null as never;\n\t\t\t}\n\n\t\t\t// todo: should go through a middleware?\n\t\t\tconst session = response.headers.get('x-app-clientsession');\n\t\t\t// We're doing a bit of tomfoolery here to read if we're in development mode between React and Angular.\n\t\t\tconst isDev = import.meta.env != null ? (import.meta.env as any).DEV : process.env.NODE_ENV === 'development';\n\t\t\tif (isDev && session != null) {\n\t\t\t\tapplicationLocalStorage.set('identitySession', session);\n\t\t\t}\n\n\t\t\tconst webVersion = response.headers.get('X-App-WebVersion');\n\t\t\tif (webVersion != null) {\n\t\t\t\tapplicationLocalStorage.set('webVersion', webVersion);\n\t\t\t}\n\n\t\t\tconst httpResponseBody = {\n\t\t\t\tdata,\n\t\t\t\theaders: response.headers,\n\t\t\t\tstatus: response.status,\n\t\t\t} satisfies HttpResponseBody;\n\n\t\t\tif (response.status < 200 || response.status >= 300) {\n\t\t\t\tthis.logger.logError('Response failed with response {response} {data}', response.status, data);\n\n\t\t\t\treturn {\n\t\t\t\t\terr: new HttpError('HTTP error', response.status, data as unknown as E),\n\t\t\t\t\tok: null,\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\terr: null,\n\t\t\t\tok: httpResponseBody,\n\t\t\t};\n\t\t} catch (error) {\n\t\t\tthis.logger.logError('We could not create a fetch message for reason: {error}', error);\n\n\t\t\treturn {\n\t\t\t\terr: new HttpError('HTTP error', HttpStatusCode.BadRequest_400, {} as E),\n\t\t\t\tok: null,\n\t\t\t};\n\t\t}\n\t}\n\n\tprivate static isVisibaEnvelope(response: any): response is { Data: T } {\n\t\tif ('Data' in response) return true;\n\n\t\treturn false;\n\t}\n\n\tpublic head(url: RequestPath, option?: VisibaHttpOption): HttpResponse {\n\t\treturn HttpService.send(RESTMethods.HEAD, this.addApiBase(url), option ?? new VisibaHttpOption(this.universalConfig));\n\t}\n\n\tpublic get(url: RequestPath, option?: VisibaHttpOption): HttpResponse {\n\t\treturn HttpService.send(RESTMethods.GET, this.addApiBase(url), option ?? new VisibaHttpOption(this.universalConfig));\n\t}\n\n\tpublic post(url: RequestPath, body: Payload, option?: VisibaHttpOption): HttpResponse {\n\t\treturn HttpService.send(RESTMethods.POST, this.addApiBase(url), option ?? new VisibaHttpOption(this.universalConfig), body);\n\t}\n\n\tpublic put(url: RequestPath, body: Payload, option?: VisibaHttpOption): HttpResponse {\n\t\treturn HttpService.send(RESTMethods.PUT, this.addApiBase(url), option ?? new VisibaHttpOption(this.universalConfig), body);\n\t}\n\n\tpublic patch(url: RequestPath, body: Payload, option?: VisibaHttpOption): HttpResponse {\n\t\treturn HttpService.send(RESTMethods.PATCH, this.addApiBase(url), option ?? new VisibaHttpOption(this.universalConfig), body);\n\t}\n\n\tpublic options(url: RequestPath, body: Payload, option?: VisibaHttpOption): HttpResponse {\n\t\treturn HttpService.send(RESTMethods.OPTIONS, this.addApiBase(url), option ?? new VisibaHttpOption(this.universalConfig), body);\n\t}\n\n\tpublic delete(url: RequestPath, option?: VisibaHttpOption): HttpResponse {\n\t\treturn HttpService.send(RESTMethods.DELETE, this.addApiBase(url), option ?? new VisibaHttpOption(this.universalConfig));\n\t}\n\n\tpublic createUrl(path: string): URL {\n\t\tif (!this.hostingService.apiBaseUri) {\n\t\t\treturn new URL(location.origin + path);\n\t\t}\n\n\t\treturn new URL(this.hostingService.apiBaseUri + path);\n\t}\n\n\tprivate addApiBase(path: RequestPath): RequestPath {\n\t\tif (isAbsolute(path)) return path;\n\n\t\tif (typeof path === 'string') {\n\t\t\treturn this.hostingService.apiBaseUri + path;\n\t\t}\n\n\t\treturn path;\n\t}\n}\n\ntype Payload = null | string | number | { [key: string]: any } | Record | FormData;\n\ninterface HttpOptionImpl {\n\tgetHeaders(): Record;\n}\n\ninterface Opts {\n\tparseAs: 'json' | 'text' | 'blob' | 'arrayBuffer';\n}\n\nexport class VisibaHttpOption implements HttpOptionImpl {\n\tpublic static defaultRequestConfig = {\n\t\theaders: {\n\t\t\t'Content-Type': 'application/json',\n\t\t\tPragma: 'no-cache',\n\t\t\t'If-Modified-Since': 'Mon, 26 Jul 1997 05:00:00 GMT',\n\t\t\t'Cache-Control': 'no-cache, no-store, must-revalidate',\n\t\t},\n\t};\n\n\tconstructor(\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tpublic readonly opts: Opts = {\n\t\t\tparseAs: 'json',\n\t\t},\n\t) {\n\t\t// Empty\n\t}\n\n\tgetHeaders() {\n\t\tconst headers = VisibaHttpOption.defaultRequestConfig.headers;\n\n\t\tconst jwt = applicationLocalStorage.get('identitySession');\n\t\tif (jwt) {\n\t\t\tObject.assign(headers, {\n\t\t\t\t'X-Authorization': `ticket ${jwt}`,\n\t\t\t\t'X-App-SkipXsfrVerification': 'true',\n\t\t\t});\n\t\t}\n\n\t\tlet selectedLanguageCode: string;\n\t\ttry {\n\t\t\tselectedLanguageCode = this.universalConfig.selectedLanguageCode.value;\n\t\t} catch {\n\t\t\tselectedLanguageCode = '';\n\t\t}\n\n\t\tObject.assign(headers, {\n\t\t\t// This is needed. Otherwise the server will not accept the request.\n\t\t\t'X-App-WebVersion': applicationLocalStorage.get('webVersion') ?? this.universalConfig.beWebVersion,\n\t\t\t'X-App-Lang': selectedLanguageCode,\n\t\t\t'X-XSRF-TOKEN': parseCookies(document.cookie).get('XSRF-TOKEN') ?? '',\n\t\t});\n\n\t\treturn headers;\n\t}\n}\n\n// Copy paste source: https://gist.github.com/RWOverdijk/6cef816cfdf5722228e01cc05fd4b094\n// Which was based of https://gist.github.com/scokmen/f813c904ef79022e84ab2409574d1b45\n\n/**\n * Hypertext Transfer Protocol (HTTP) response status codes.\n * @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}\n */\nexport enum HttpStatusCode {\n\t/**\n\t * The server has received the request headers and the client should proceed to send the request body\n\t * (in the case of a request for which a body needs to be sent; for example, a POST request).\n\t * Sending a large request body to a server after a request has been rejected for inappropriate headers would be inefficient.\n\t * To have a server check the request's headers, a client must send Expect: 100-continue as a header in its initial request\n\t * and receive a 100 Continue status code in response before sending the body. The response 417 Expectation Failed indicates the request should not be continued.\n\t */\n\tContinue_100 = 100,\n\n\t/**\n\t * The requester has asked the server to switch protocols and the server has agreed to do so.\n\t */\n\tSwitchingProtocols_101 = 101,\n\n\t/**\n\t * A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request.\n\t * This code indicates that the server has received and is processing the request, but no response is available yet.\n\t * This prevents the client from timing out and assuming the request was lost.\n\t */\n\tProcessing_102 = 102,\n\n\t/**\n\t * Standard response for successful HTTP requests.\n\t * The actual response will depend on the request method used.\n\t * In a GET request, the response will contain an entity corresponding to the requested resource.\n\t * In a POST request, the response will contain an entity describing or containing the result of the action.\n\t */\n\tOk_200 = 200,\n\n\t/**\n\t * The request has been fulfilled, resulting in the creation of a new resource.\n\t */\n\tCreated_201 = 201,\n\n\t/**\n\t * The request has been accepted for processing, but the processing has not been completed.\n\t * The request might or might not be eventually acted upon, and may be disallowed when processing occurs.\n\t */\n\tAccepted_202 = 202,\n\n\t/**\n\t * SINCE HTTP/1.1\n\t * The server is a transforming proxy that received a 200 OK from its origin,\n\t * but is returning a modified version of the origin's response.\n\t */\n\tNonAuthoritativeInformation_203 = 203,\n\n\t/**\n\t * The server successfully processed the request and is not returning any content.\n\t */\n\tNoContent_204 = 204,\n\n\t/**\n\t * The server successfully processed the request, but is not returning any content.\n\t * Unlike a 204 response, this response requires that the requester reset the document view.\n\t */\n\tResetContent_205 = 205,\n\n\t/**\n\t * The server is delivering only part of the resource (byte serving) due to a range header sent by the client.\n\t * The range header is used by HTTP clients to enable resuming of interrupted downloads,\n\t * or split a download into multiple simultaneous streams.\n\t */\n\tPartialContent_206 = 206,\n\n\t/**\n\t * The message body that follows is an XML message and can contain a number of separate response codes,\n\t * depending on how many sub-requests were made.\n\t */\n\tMultiStatus_207 = 207,\n\n\t/**\n\t * The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response,\n\t * and are not being included again.\n\t */\n\tAlreadyReported_208 = 208,\n\n\t/**\n\t * The server has fulfilled a request for the resource,\n\t * and the response is a representation of the result of one or more instance-manipulations applied to the current instance.\n\t */\n\tImUsed_226 = 226,\n\n\t/**\n\t * Indicates multiple options for the resource from which the client may choose (via agent-driven content negotiation).\n\t * For example, this code could be used to present multiple video format options,\n\t * to list files with different filename extensions, or to suggest word-sense disambiguation.\n\t */\n\tMultipleChoices_300 = 300,\n\n\t/**\n\t * This and all future requests should be directed to the given URI.\n\t */\n\tMovedPermanently_301 = 301,\n\n\t/**\n\t * This is an example of industry practice contradicting the standard.\n\t * The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect\n\t * (the original describing phrase was \"Moved Temporarily\"), but popular browsers implemented 302\n\t * with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307\n\t * to distinguish between the two behaviours. However, some Web applications and frameworks\n\t * use the 302 status code as if it were the 303.\n\t */\n\tFound_302 = 302,\n\n\t/**\n\t * SINCE HTTP/1.1\n\t * The response to the request can be found under another URI using a GET method.\n\t * When received in response to a POST (or PUT/DELETE), the client should presume that\n\t * the server has received the data and should issue a redirect with a separate GET message.\n\t */\n\tSeeOther_303 = 303,\n\n\t/**\n\t * Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.\n\t * In such case, there is no need to retransmit the resource since the client still has a previously-downloaded copy.\n\t */\n\tNotModified_304 = 304,\n\n\t/**\n\t * SINCE HTTP/1.1\n\t * The requested resource is available only through a proxy, the address for which is provided in the response.\n\t * Many HTTP clients (such as Mozilla and Internet Explorer) do not correctly handle responses with this status code, primarily for security reasons.\n\t */\n\tUseProxy_305 = 305,\n\n\t/**\n\t * No longer used. Originally meant \"Subsequent requests should use the specified proxy.\"\n\t */\n\tSwitchProxy_306 = 306,\n\n\t/**\n\t * SINCE HTTP/1.1\n\t * In this case, the request should be repeated with another URI; however, future requests should still use the original URI.\n\t * In contrast to how 302 was historically implemented, the request method is not allowed to be changed when reissuing the original request.\n\t * For example, a POST request should be repeated using another POST request.\n\t */\n\tTemporaryRedirect_307 = 307,\n\n\t/**\n\t * The request and all future requests should be repeated using another URI.\n\t * 307 and 308 parallel the behaviors of 302 and 301, but do not allow the HTTP method to change.\n\t * So, for example, submitting a form to a permanently redirected resource may continue smoothly.\n\t */\n\tPermanentRedirect_308 = 308,\n\n\t/**\n\t * The server cannot or will not process the request due to an apparent client error\n\t * (e.g., malformed request syntax, too large size, invalid request message framing, or deceptive request routing).\n\t */\n\tBadRequest_400 = 400,\n\n\t/**\n\t * Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet\n\t * been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the\n\t * requested resource. See Basic access authentication and Digest access authentication. 401 semantically means\n\t * \"unauthenticated\",i.e. the user does not have the necessary credentials.\n\t */\n\tUnauthorized_401 = 401,\n\n\t/**\n\t * Reserved for future use. The original intention was that this code might be used as part of some form of digital\n\t * cash or micro payment scheme, but that has not happened, and this code is not usually used.\n\t * Google Developers API uses this status if a particular developer has exceeded the daily limit on requests.\n\t */\n\tPaymentRequired_402 = 402,\n\n\t/**\n\t * The request was valid, but the server is refusing action.\n\t * The user might not have the necessary permissions for a resource.\n\t */\n\tForbidden_403 = 403,\n\n\t/**\n\t * The requested resource could not be found but may be available in the future.\n\t * Subsequent requests by the client are permissible.\n\t */\n\tNotFound_404 = 404,\n\n\t/**\n\t * A request method is not supported for the requested resource;\n\t * for example, a GET request on a form that requires data to be presented via POST, or a PUT request on a read-only resource.\n\t */\n\tMethodNotAllowed_405 = 405,\n\n\t/**\n\t * The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.\n\t */\n\tNotAcceptable_406 = 406,\n\n\t/**\n\t * The client must first authenticate itself with the proxy.\n\t */\n\tProxyAuthenticationRequired_407 = 407,\n\n\t/**\n\t * The server timed out waiting for the request.\n\t * According to HTTP specifications:\n\t * \"The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time.\"\n\t */\n\tRequestTimeout_408 = 408,\n\n\t/**\n\t * Indicates that the request could not be processed because of conflict in the request,\n\t * such as an edit conflict between multiple simultaneous updates.\n\t */\n\tConflict_409 = 409,\n\n\t/**\n\t * Indicates that the resource requested is no longer available and will not be available again.\n\t * This should be used when a resource has been intentionally removed and the resource should be purged.\n\t * Upon receiving a 410 status code, the client should not request the resource in the future.\n\t * Clients such as search engines should remove the resource from their indices.\n\t * Most use cases do not require clients and search engines to purge the resource, and a \"404 Not Found\" may be used instead.\n\t */\n\tGone_410 = 410,\n\n\t/**\n\t * The request did not specify the length of its content, which is required by the requested resource.\n\t */\n\tLengthRequired_411 = 411,\n\n\t/**\n\t * The server does not meet one of the preconditions that the requester put on the request.\n\t */\n\tPreconditionFailed_412 = 412,\n\n\t/**\n\t * The request is larger than the server is willing or able to process. Previously called \"Request Entity Too Large\".\n\t */\n\tPayloadTooLarge_413 = 413,\n\n\t/**\n\t * The URI provided was too long for the server to process. Often the result of too much data being encoded as a query-string of a GET request,\n\t * in which case it should be converted to a POST request.\n\t * Called \"Request-URI Too Long\" previously.\n\t */\n\tUriTooLong_414 = 414,\n\n\t/**\n\t * The request entity has a media type which the server or resource does not support.\n\t * For example, the client uploads an image as image/svg+xml, but the server requires that images use a different format.\n\t */\n\tUnsupportedMediaType_415 = 415,\n\n\t/**\n\t * The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.\n\t * For example, if the client asked for a part of the file that lies beyond the end of the file.\n\t * Called \"Requested Range Not Satisfiable\" previously.\n\t */\n\tRangeNotSatisfiable_416 = 416,\n\n\t/**\n\t * The server cannot meet the requirements of the Expect request-header field.\n\t */\n\tExpectationFailed_417 = 417,\n\n\t/**\n\t * This code was defined in 1998 as one of the traditional IETF April Fools' jokes, in RFC 2324, Hyper Text Coffee Pot Control Protocol,\n\t * and is not expected to be implemented by actual HTTP servers. The RFC specifies this code should be returned by\n\t * teapots requested to brew coffee. This HTTP status is used as an Easter egg in some websites, including Google.com.\n\t */\n\tIAmATeapot_418 = 418,\n\n\t/**\n\t * The request was directed at a server that is not able to produce a response (for example because a connection reuse).\n\t */\n\tMisdirectedRequest_421 = 421,\n\n\t/**\n\t * The request was well-formed but was unable to be followed due to semantic errors.\n\t */\n\tUnprocessableEntity_422 = 422,\n\n\t/**\n\t * The resource that is being accessed is locked.\n\t */\n\tLocked_423 = 423,\n\n\t/**\n\t * The request failed due to failure of a previous request (e.g., a PROPPATCH).\n\t */\n\tFailedDependency_424 = 424,\n\n\t/**\n\t * The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.\n\t */\n\tUpgradeRequired_426 = 426,\n\n\t/**\n\t * The origin server requires the request to be conditional.\n\t * Intended to prevent \"the 'lost update' problem, where a client\n\t * GETs a resource's state, modifies it, and PUTs it back to the server,\n\t * when meanwhile a third party has modified the state on the server, leading to a conflict.\"\n\t */\n\tPreconditionRequired_428 = 428,\n\n\t/**\n\t * The user has sent too many requests in a given amount of time. Intended for use with rate-limiting schemes.\n\t */\n\tTooManyRequests_429 = 429,\n\n\t/**\n\t * The server is unwilling to process the request because either an individual header field,\n\t * or all the header fields collectively, are too large.\n\t */\n\tRequestHeaderFieldsTooLarge_431 = 431,\n\n\t/**\n\t * A server operator has received a legal demand to deny access to a resource or to a set of resources\n\t * that includes the requested resource. The code 451 was chosen as a reference to the novel Fahrenheit 451.\n\t */\n\tUnavailableForLegalReasons_451 = 451,\n\n\t/**\n\t * A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.\n\t */\n\tInternalServerError_500 = 500,\n\n\t/**\n\t * The server either does not recognize the request method, or it lacks the ability to fulfill the request.\n\t * Usually this implies future availability (e.g., a new feature of a web-service API).\n\t */\n\tNotImplemented_501 = 501,\n\n\t/**\n\t * The server was acting as a gateway or proxy and received an invalid response from the upstream server.\n\t */\n\tBadGateway_502 = 502,\n\n\t/**\n\t * The server is currently unavailable (because it is overloaded or down for maintenance).\n\t * Generally, this is a temporary state.\n\t */\n\tServiceUnavailable_503 = 503,\n\n\t/**\n\t * The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.\n\t */\n\tGatewayTimeout_504 = 504,\n\n\t/**\n\t * The server does not support the HTTP protocol version used in the request\n\t */\n\tHttpVersionNotSupported_505 = 505,\n\n\t/**\n\t * Transparent content negotiation for the request results in a circular reference.\n\t */\n\tVariantAlsoNegotiates_506 = 506,\n\n\t/**\n\t * The server is unable to store the representation needed to complete the request.\n\t */\n\tInsufficientStorage_507 = 507,\n\n\t/**\n\t * The server detected an infinite loop while processing the request.\n\t */\n\tLoopDetected_508 = 508,\n\n\t/**\n\t * Further extensions to the request are required for the server to fulfill it.\n\t */\n\tNotExtended_510 = 510,\n\n\t/**\n\t * The client needs to authenticate to gain network access.\n\t * Intended for use by intercepting proxies used to control access to the network (e.g., \"captive portals\" used\n\t * to require agreement to Terms of Service before granting full Internet access via a Wi-Fi hotspot).\n\t */\n\tNetworkAuthenticationRequired_511 = 511,\n}\n","export function parseCookies(cookieStr: string) {\n\tcookieStr = cookieStr.trim();\n\tif (!cookieStr) return new Map();\n\n\tconst cookies = new Map(\n\t\tcookieStr.split(';').map((cookie) => {\n\t\t\tconst parts = cookie.split('=');\n\t\t\tconst name = parts[0].trim();\n\t\t\tconst value = decodeURIComponent(parts[1]);\n\n\t\t\treturn [name, value];\n\t\t}),\n\t);\n\n\treturn cookies;\n}\n","export function isAbsolute(path: URL | Request | string): boolean {\n\tif (path instanceof URL) return true;\n\tif (path instanceof Request) return true;\n\n\treturn path.indexOf('http://') === 0 || path.indexOf('https://') === 0;\n}\n","import type { HttpStatusCode } from './http.service';\n\n/**\n * ## @visiba-cortex/http\n *\n * Error to check\n *\n * ```tsx\n * try {\n * \tawait Http.get('https://api.api.com');\n * } catch (error: unknown) {\n * \tif (error instanceof HttpError) {\n *\t\t\t// We know how to handle the error\n * \t}\n *\n * \tthrow error;\n * }\n * ```\n */\nexport class HttpError extends Error {\n\tconstructor(\n\t\tpublic readonly message: string,\n\t\tpublic readonly statusCode: HttpStatusCode,\n\t\tpublic readonly data: E,\n\t) {\n\t\tsuper(message);\n\t\tthis.name = 'HttpError';\n\t\tObject.setPrototypeOf(this, HttpError.prototype);\n\t}\n}\n\n/**\n * ## @visiba-cortex/http\n *\n * Will assert that an unknown symbol is actually shaped as an HttpError so it\n * may be casted as such\n */\nexport function isHttpError(error: unknown): error is HttpError {\n\tif (error instanceof HttpError) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}\n","export const NOT_YET_ADDED_TRANSLATIONS = {\n\t// Insert your key value pair here. Should be empty when pushed.\n} as const;\n","import { applicationSessionStorage } from '@application/application_storage_session';\nimport { NOT_YET_ADDED_TRANSLATIONS } from './not_yet_added_translation_dictionary';\nimport type {\n\tTranslationDictionaryPatientWeb,\n\tTranslationDictionaryCommonFrontend,\n\tTranslationDictionaryPatient,\n} from '@visiba/translation-dictionaries';\n\n/**\n * # Internationalization and localization\n */\nexport namespace I18nAndL10n {\n\ttype CombinedTranslationDictionary = typeof NOT_YET_ADDED_TRANSLATIONS &\n\t\tTranslationDictionaryPatient &\n\t\tTranslationDictionaryPatientWeb &\n\t\tTranslationDictionaryCommonFrontend;\n\n\texport type TranslationDictionary = Partial;\n\n\texport type LocaleKey = keyof TranslationDictionary;\n\n\texport type AvailableVisibaLocales =\n\t\t| 'sv' // Swedish\n\t\t| 'en-gb' // English (United Kingdom)\n\t\t| 'da' // Danish\n\t\t| 'de' // German\n\t\t| 'nb' // Norwegian Bokmål\n\t\t| 'fi' // Finnish\n\t\t| 'ar' // Arabic\n\t\t| 'fa' // Persian\n\t\t| 'hr' // Croatian\n\t\t| 'nl' // Dutch\n\t\t| 'pt-br'; // Portuguese (Brazil)\n\n\tlet selectedLocale: AvailableVisibaLocales | null = null;\n\tlet translations: Partial = {};\n\n\tfunction setLangCode(langCode: AvailableVisibaLocales): AvailableVisibaLocales {\n\t\tdocument.documentElement.lang = langCode;\n\n\t\treturn langCode;\n\t}\n\n\texport function convertExternalLocaleToAvailableLocale(external: string): AvailableVisibaLocales {\n\t\tconst externalLowercase = external.toLocaleLowerCase();\n\n\t\t// Needs to convert some Visiba locales due to not matching directly to Dayjs\n\t\tif (externalLowercase === 'en') return 'en-gb';\n\t\tif (externalLowercase === 'no') return 'nb';\n\n\t\tconst availableLocales: I18nAndL10n.AvailableVisibaLocales[] = [\n\t\t\t'sv',\n\t\t\t'nb',\n\t\t\t'fi',\n\t\t\t'da',\n\t\t\t'de',\n\t\t\t'en-gb',\n\t\t\t'ar',\n\t\t\t'fa',\n\t\t\t'hr',\n\t\t\t'nl',\n\t\t\t'pt-br',\n\t\t];\n\n\t\tif (availableLocales.includes(externalLowercase as I18nAndL10n.AvailableVisibaLocales)) {\n\t\t\treturn externalLowercase as I18nAndL10n.AvailableVisibaLocales;\n\t\t}\n\n\t\tthrow new Error(`${external} is unsupported`);\n\t}\n\n\texport function updateLangCode(external: string): void {\n\t\ttry {\n\t\t\tselectedLocale = setLangCode(convertExternalLocaleToAvailableLocale(external));\n\t\t} catch (error) {\n\t\t\tconsole.error(error);\n\t\t\tselectedLocale = setLangCode('sv');\n\t\t}\n\t}\n\n\texport function getSelectedLangCode(): AvailableVisibaLocales {\n\t\tif (selectedLocale == null) throw new Error('Locale was never selected');\n\n\t\treturn selectedLocale;\n\t}\n\n\texport function insertTranslations(newTranslationSet: { [key: string]: string }): void {\n\t\ttry {\n\t\t\ttranslations = {\n\t\t\t\t...NOT_YET_ADDED_TRANSLATIONS,\n\t\t\t\t...newTranslationSet,\n\t\t\t};\n\t\t} catch {\n\t\t\tthrow new Error('there was an Error trying to insert translations');\n\t\t}\n\t}\n\n\texport function override(overrideData: TranslationDictionary): void {\n\t\ttranslations = { ...translations, ...overrideData };\n\t}\n\n\texport function derived(translationSet: TranslationDictionary): void {\n\t\ttranslations = { ...translationSet, ...translations };\n\t}\n\n\texport function translate(key: LocaleKey, replaceArguments: { [key: string]: string } | null = null, ignoreWarning = false): string {\n\t\tconst shouldShowAlias = applicationSessionStorage.get('showAlias');\n\t\tif (shouldShowAlias) return key;\n\n\t\tlet translation = translations[key];\n\t\tif (!translation) return ignoreWarning ? '' : `! ! ! ${key} ! ! !`;\n\n\t\tif (replaceArguments) {\n\t\t\tfor (const replace in replaceArguments) {\n\t\t\t\ttranslation = translation.replace(`{{${replace}}}`, replaceArguments[replace]);\n\t\t\t}\n\t\t}\n\n\t\treturn translation;\n\t}\n}\n","import styled from 'styled-components';\nimport { I18nAndL10n } from './mod';\n\nconst Error = styled.span`\n\tcolor: #fff;\n\tposition: relative;\n\tz-index: 0;\n\tfont-size: inherit;\n\n\t&::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tmargin: -5px;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tborder: 2px solid #790000;\n\t\tbackground: #ff7a7a;\n\t\tbox-shadow: 0 4px 14px 0 rgb(255 122 122 / 39%);\n\t\tz-index: -1;\n\t\tborder-radius: 4px;\n\t}\n`;\n\nexport const withTranslation = (\n\ttranslationKey: I18nAndL10n.LocaleKey,\n\treplaceArguments: { [key: string]: string } | null = null,\n): string => {\n\t// Returns the text alias when running tests\n\tif (process.env.NODE_ENV === 'test') return translationKey;\n\n\tconst translation = I18nAndL10n.translate(translationKey, replaceArguments, true);\n\tif (translation !== '') return translation;\n\n\treturn ({translationKey}) as unknown as string;\n};\n","import { Injectable } from '@visiba-cortex/instantiation';\n\n@Injectable()\nexport class PlatformService {\n\tprivate cachedUserAgentData: Nullable = null;\n\n\tpublic static get runtimeIsInBrowser(): boolean {\n\t\treturn typeof navigator !== 'undefined' && typeof window !== 'undefined';\n\t}\n\n\tpublic static get runtimeSupportsTouch(): boolean {\n\t\treturn 'ontouchstart' in window || window.navigator.maxTouchPoints > 0;\n\t}\n\n\tpublic get runtimeIsInBrowser(): boolean {\n\t\treturn PlatformService.runtimeIsInBrowser;\n\t}\n\n\tpublic get runtimeSupportsTouch(): boolean {\n\t\treturn PlatformService.runtimeSupportsTouch;\n\t}\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\tpublic get userAgentData(): Readonly {\n\t\treturn this.parseAgentData();\n\t}\n\n\tpublic browserIs(test: number): boolean {\n\t\tconst statements: boolean[] = [];\n\t\tconst agent = this.parseAgentData();\n\n\t\tif ((test & BrowserList.Edge) === BrowserList.Edge) {\n\t\t\tstatements.push(agent.browsers.edge);\n\t\t}\n\n\t\tif ((test & BrowserList.SamsungBrowser) === BrowserList.SamsungBrowser) {\n\t\t\tstatements.push(agent.browsers.samsungBrowser);\n\t\t}\n\n\t\tif ((test & BrowserList.Opera) === BrowserList.Opera) {\n\t\t\tstatements.push(agent.browsers.opera);\n\t\t}\n\n\t\tif ((test & BrowserList.Firefox) === BrowserList.Firefox) {\n\t\t\tstatements.push(agent.browsers.firefox);\n\t\t}\n\n\t\tif ((test & BrowserList.Chrome) === BrowserList.Chrome) {\n\t\t\tstatements.push(agent.browsers.chrome);\n\t\t}\n\n\t\tif ((test & BrowserList.Safari) === BrowserList.Safari) {\n\t\t\tstatements.push(agent.browsers.safari);\n\t\t}\n\n\t\tif ((test & BrowserList.StrictSafari) === BrowserList.StrictSafari) {\n\t\t\tstatements.push(agent.browsers.strictSafari);\n\t\t}\n\n\t\tif ((test & BrowserList.IE) === BrowserList.IE) {\n\t\t\tstatements.push(agent.browsers.ie);\n\t\t}\n\n\t\tif ((test & BrowserList.EdgeChromium) === BrowserList.EdgeChromium) {\n\t\t\tstatements.push(agent.browsers.edgeChromium);\n\t\t}\n\n\t\tif ((test & BrowserList.EdgeAndroid) === BrowserList.EdgeAndroid) {\n\t\t\tstatements.push(agent.browsers.edgeAndroid);\n\t\t}\n\n\t\tif ((test & BrowserList.EdgeIos) === BrowserList.EdgeIos) {\n\t\t\tstatements.push(agent.browsers.edgeIos);\n\t\t}\n\n\t\tif ((test & BrowserList.FirefoxIos) === BrowserList.FirefoxIos) {\n\t\t\tstatements.push(agent.browsers.firefoxIos);\n\t\t}\n\n\t\tif ((test & BrowserList.ChromeIos) === BrowserList.ChromeIos) {\n\t\t\tstatements.push(agent.browsers.chromeIos);\n\t\t}\n\n\t\treturn statements.filter(Boolean).length > 0;\n\t}\n\n\tpublic platformIs(test: number): boolean {\n\t\tconst statements: boolean[] = [];\n\t\tconst agent = this.parseAgentData();\n\n\t\tif ((test & PlatformList.Ios) === PlatformList.Ios) {\n\t\t\tstatements.push(agent.platform.ios);\n\t\t}\n\n\t\tif ((test & PlatformList.Android) === PlatformList.Android) {\n\t\t\tstatements.push(agent.platform.android);\n\t\t}\n\n\t\tif ((test & PlatformList.Mobile) === PlatformList.Mobile) {\n\t\t\tstatements.push(agent.platform.mobile);\n\t\t}\n\n\t\tif ((test & PlatformList.Desktop) === PlatformList.Desktop) {\n\t\t\tstatements.push(agent.platform.desktop);\n\t\t}\n\n\t\treturn statements.filter(Boolean).length > 0;\n\t}\n\n\tpublic parseAgentData(): Readonly {\n\t\tif (this.cachedUserAgentData != null) return this.cachedUserAgentData;\n\n\t\tconst edgeHTML = this.runtimeIsInBrowser && navigator.userAgent.includes('Edge/');\n\t\tconst edgeChromium = this.runtimeIsInBrowser && navigator.userAgent.includes('Edg/');\n\t\tconst edgeAndroid = this.runtimeIsInBrowser && navigator.userAgent.includes('EdgA/');\n\t\tconst edgeIos = this.runtimeIsInBrowser && navigator.userAgent.includes('EdgiOS/');\n\t\tconst edge = edgeHTML || edgeChromium || edgeAndroid || edgeIos;\n\t\tconst samsungBrowser = this.runtimeIsInBrowser && navigator.userAgent.includes('SamsungBrowser/');\n\t\tconst opera = this.runtimeIsInBrowser && (navigator.userAgent.includes('Opera') || navigator.userAgent.includes('OPR/'));\n\t\tconst operaIos = this.runtimeIsInBrowser && navigator.userAgent.includes('OPiOS/');\n\t\tconst firefoxIos = this.runtimeIsInBrowser && navigator.userAgent.includes('FxiOS/');\n\t\tconst firefox = this.runtimeIsInBrowser && (navigator.userAgent.includes('Firefox') || firefoxIos);\n\t\tconst chromeIos = this.runtimeIsInBrowser && navigator.userAgent.includes('CriOS/');\n\t\tconst chrome =\n\t\t\tthis.runtimeIsInBrowser && (navigator.userAgent.includes('Chrome') || chromeIos) && !edge && !opera && !samsungBrowser;\n\t\tconst safari =\n\t\t\t(this.runtimeIsInBrowser &&\n\t\t\t\tnavigator.userAgent.includes('Safari') &&\n\t\t\t\t!chrome &&\n\t\t\t\t!edgeChromium &&\n\t\t\t\t!firefox &&\n\t\t\t\t!opera &&\n\t\t\t\t!samsungBrowser) ||\n\t\t\tedgeIos ||\n\t\t\tchromeIos ||\n\t\t\tfirefoxIos;\n\t\tconst strictSafari =\n\t\t\tthis.runtimeIsInBrowser && navigator.userAgent.includes('Safari') && !chrome && !edge && !firefox && !opera && !samsungBrowser;\n\t\tconst ie = this.runtimeIsInBrowser && navigator.userAgent.includes('Trident');\n\n\t\tconst browsers = Object.freeze({\n\t\t\tedgeChromium,\n\t\t\tedgeAndroid,\n\t\t\tedgeIos,\n\t\t\tedge,\n\t\t\tfirefoxIos,\n\t\t\tchromeIos,\n\t\t\tsamsungBrowser,\n\t\t\topera,\n\t\t\toperaIos,\n\t\t\tfirefox,\n\t\t\tchrome,\n\t\t\tsafari,\n\t\t\tstrictSafari,\n\t\t\tie,\n\t\t} satisfies BrowsersData);\n\n\t\tconst ios = this.runtimeIsInBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent);\n\t\tconst android = this.runtimeIsInBrowser && /Android/.test(navigator.userAgent);\n\t\t// Should pass is-mobile tests suites tbh\n\t\tconst mobile = ios || android;\n\t\tconst desktop = !mobile;\n\n\t\tconst platform = Object.freeze({\n\t\t\tios,\n\t\t\tandroid,\n\t\t\tmobile,\n\t\t\tdesktop,\n\t\t} satisfies PlatformData);\n\n\t\tthis.cachedUserAgentData = Object.freeze({\n\t\t\tbrowsers,\n\t\t\tplatform,\n\t\t});\n\n\t\treturn this.cachedUserAgentData;\n\t}\n}\n\ninterface BrowsersData {\n\tedgeChromium: boolean;\n\tedgeAndroid: boolean;\n\tedgeIos: boolean;\n\tedge: boolean;\n\tsamsungBrowser: boolean;\n\topera: boolean;\n\toperaIos: boolean;\n\tfirefoxIos: boolean;\n\tfirefox: boolean;\n\tchromeIos: boolean;\n\tchrome: boolean;\n\tsafari: boolean;\n\tstrictSafari: boolean;\n\tie: boolean;\n}\n\nexport interface PlatformData {\n\tios: boolean;\n\tandroid: boolean;\n\tmobile: boolean;\n\tdesktop: boolean;\n}\n\ninterface UserAgentData {\n\tbrowsers: Readonly;\n\tplatform: Readonly;\n}\n\n// prettier-ignore\nexport enum BrowserList {\n\tNone = 0, // 0 - Runtime is in terminal\n\tEdge = 1 << 0, // 1\n\tSafari = 1 << 1, // 2\n\tStrictSafari = 1 << 2, // 4 - All browsers within iOS is using Safari in the background, but this flag ignores that fact.\n\tFirefox = 1 << 3, // 8\n\tChrome = 1 << 4, // 16\n\tSamsungBrowser = 1 << 5, // 32\n\tOpera = 1 << 6, // 64\n\tIE = 1 << 7, // 128\n\tEdgeChromium = 1 << 8, // 256\n\tEdgeAndroid = 1 << 9, // 512\n\tEdgeIos = 1 << 10, // 1024\n\tFirefoxIos = 1 << 11, // 2048\n\tChromeIos = 1 << 12, // 4096\n\tOperaIos = 1 << 13, // 8192\n}\n\n// prettier-ignore\nexport enum PlatformList {\n\tNone = 0, // 0 - Runtime is in terminal\n\tIos = 1 << 0, // 1\n\tAndroid = 1 << 1, // 2\n\tMobile = 1 << 2, // 4\n\tDesktop = 1 << 3, // 8\n}\n","export function getAbsoluteRoute(route: string): string {\n\treturn route.startsWith('/') ? route : `/${route}`;\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport dayjs from 'dayjs';\nimport isBetween from 'dayjs/plugin/isBetween';\nimport weekDay from 'dayjs/plugin/weekday';\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\nimport localeData from 'dayjs/plugin/localeData';\nimport weekOfYear from 'dayjs/plugin/weekOfYear';\nimport duration from 'dayjs/plugin/duration';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\nimport { I18nAndL10n } from '@application/i18n/mod';\n\ndayjs.extend(isBetween);\ndayjs.extend(weekDay);\ndayjs.extend(localizedFormat);\ndayjs.extend(localeData);\ndayjs.extend(weekOfYear);\ndayjs.extend(duration);\ndayjs.extend(customParseFormat);\n\nexport enum DateDisplayFormats {\n\tDEFAULT,\n\tFULL_DISPLAY_IN_CURRENT_YEAR_NO_WEEKDAY,\n\tFULL_DISPLAY_NO_CURRENT_YEAR_AND_WEEKDAY,\n\tFULL_DISPLAY_NO_CURRENT_YEAR_WEEKDAY_TIME,\n\tFULL_DISPLAY_NO_TIME_WEEKDAY,\n\tFULL_DISPLAY_NO_TIME,\n\tJUST_TIME,\n}\n\n@Injectable()\nexport class DateService {\n\t/**\n\t * Returns a new instance of DayJs\n\t */\n\tpublic static newDate(date?: Date | string | DateTime, format?: string): VisibaDate {\n\t\tif (typeof date === 'string') {\n\t\t\tif (date === '') {\n\t\t\t\treturn dayjs();\n\t\t\t}\n\n\t\t\tdate = DateService.parseStringToUtc(date);\n\t\t}\n\n\t\treturn dayjs(date, date ? format : undefined);\n\t}\n\n\t/**\n\t * Check if the date is valid\n\t */\n\tpublic isValidDate(date?: Date | string | DateTime): boolean {\n\t\tif (date == null) return false;\n\n\t\treturn dayjs(date).isValid();\n\t}\n\n\tpublic static getLocaleSpecificDateFormatTemplate(format = DateDisplayFormats.DEFAULT): string {\n\t\tlet template = dayjs().localeData().longDateFormat('LLLL');\n\n\t\tswitch (format) {\n\t\t\tcase DateDisplayFormats.FULL_DISPLAY_IN_CURRENT_YEAR_NO_WEEKDAY: {\n\t\t\t\ttemplate = template\n\t\t\t\t\t.split(' ')\n\t\t\t\t\t.filter((part) => !part.match(/[yY]{4}/g))\n\t\t\t\t\t.join(' ')\n\t\t\t\t\t.replace('dddd,', 'dddd')\n\t\t\t\t\t.replace('dddd', '');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase DateDisplayFormats.FULL_DISPLAY_NO_TIME_WEEKDAY: {\n\t\t\t\ttemplate = template\n\t\t\t\t\t.split(' ')\n\t\t\t\t\t.filter((part) => !part.match(/[Hh]{2}|[m]{2}|[s]{2}|\\[kl.\\]|[A]{1}/g))\n\t\t\t\t\t.join(' ')\n\t\t\t\t\t.replace('dddd,', 'dddd')\n\t\t\t\t\t.replace('dddd', '')\n\t\t\t\t\t.replace('YYYY,', 'YYYY');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase DateDisplayFormats.FULL_DISPLAY_NO_CURRENT_YEAR_WEEKDAY_TIME: {\n\t\t\t\ttemplate = template\n\t\t\t\t\t.split(' ')\n\t\t\t\t\t.filter((part) => !part.match(/[Hh]{2}|[m]{2}|[s]{2}|\\[kl.\\]|[A]{1}/g))\n\t\t\t\t\t.join(' ')\n\t\t\t\t\t.replace('dddd,', 'dddd')\n\t\t\t\t\t.replace('dddd', '')\n\t\t\t\t\t.replace('YYYY,', 'YYYY')\n\t\t\t\t\t.replace('YYYY', '');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase DateDisplayFormats.FULL_DISPLAY_NO_TIME: {\n\t\t\t\ttemplate = template\n\t\t\t\t\t.split(' ')\n\t\t\t\t\t.filter((part) => !part.match(/[Hh]{2}|[m]{2}|[s]{2}|\\[kl.\\]|[A]{1}/g))\n\t\t\t\t\t.join(' ')\n\t\t\t\t\t.replace('YYYY,', 'YYYY');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase DateDisplayFormats.JUST_TIME: {\n\t\t\t\ttemplate = template\n\t\t\t\t\t.split(' ')\n\t\t\t\t\t.filter((part) => part.match(/[Hh]{2}|[m]{2}|[s]{2}|\\[kl.\\]|[A]{1}/g))\n\t\t\t\t\t.join(' ');\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase DateDisplayFormats.FULL_DISPLAY_NO_CURRENT_YEAR_AND_WEEKDAY: {\n\t\t\t\ttemplate = template.replace('YYYY,', 'YYYY').replace('YYYY', '').replace('dddd,', 'dddd').replace('dddd', '');\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn template;\n\t}\n\n\t/**\n\t * @param time — If unit is not present, time treated as number of milliseconds\n\t */\n\tpublic static duration = dayjs.duration;\n\n\t/**\n\t *\n\t */\n\tpublic static locale = dayjs.locale;\n\n\t/**\n\t * The reason why we need to parse the date string to UTC (sometimes) is\n\t * because we can receive different types of date strings from the backend.\n\t */\n\tprivate static parseStringToUtc(dateStr: string): string {\n\t\tconst char = dateStr[dateStr.length - 1];\n\n\t\tif (char.toLowerCase() === 'z') {\n\t\t\treturn dateStr;\n\t\t}\n\n\t\treturn dateStr + 'Z';\n\t}\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\t/**\n\t * Returns a new instance of DayJs\n\t *\n\t * @deprecated use the \"newDate\" method instead.\n\t */\n\tpublic create(date?: Date | string): VisibaDate {\n\t\treturn this.newDate(date);\n\t}\n\n\t/**\n\t * Returns a new instance of VisibaDate (DayJS)\n\t */\n\tpublic newDate(date?: Date | string, format?: string): VisibaDate {\n\t\treturn DateService.newDate(date, date ? format : undefined);\n\t}\n\n\t/**\n\t * Returns an format template based on loaded locale.\n\t */\n\tpublic getLocaleSpecificDateFormatTemplate(format = DateDisplayFormats.DEFAULT): string {\n\t\treturn DateService.getLocaleSpecificDateFormatTemplate(format);\n\t}\n\n\t/**\n\t * Will compare \"day\" values between the argument and current time, resulting\n\t * in if the date was indeed _yesterday_.\n\t */\n\tpublic isYesterday(date: dayjs.Dayjs): boolean {\n\t\treturn date.isSame(this.create().subtract(1, 'day'), 'day');\n\t}\n\n\t/**\n\t * Will compare \"day\" values between the argument and current time, resulting\n\t * in if the date was indeed _today_.\n\t */\n\tpublic isToday(date: dayjs.Dayjs): boolean {\n\t\treturn date.isSame(this.create(), 'day');\n\t}\n\n\t/**\n\t * Will compare \"day\" values between the argument and current time, resulting\n\t * in if the date was indeed _tomorrow_.\n\t */\n\tpublic isTomorrow(date: dayjs.Dayjs): boolean {\n\t\treturn date.isSame(this.create().add(1, 'day'), 'day');\n\t}\n\n\tpublic isThisWeek(date: dayjs.Dayjs): boolean {\n\t\treturn date.isSame(this.create(), 'week');\n\t}\n\n\tpublic isThisYear(date: dayjs.Dayjs): boolean {\n\t\treturn date.isSame(this.create(), 'year');\n\t}\n\n\t/**\n\t * Loads a supported locale by fetching the file\n\t */\n\tpublic async loadLocale(locale: I18nAndL10n.AvailableVisibaLocales): AsyncResult {\n\t\ttry {\n\t\t\tif (locale === 'sv') {\n\t\t\t\tawait import('dayjs/locale/sv');\n\t\t\t} else if (locale === 'nb') {\n\t\t\t\tawait import('dayjs/locale/nb');\n\t\t\t} else if (locale === 'fi') {\n\t\t\t\tawait import('dayjs/locale/fi');\n\t\t\t} else if (locale === 'da') {\n\t\t\t\tawait import('dayjs/locale/da');\n\t\t\t} else if (locale === 'en-gb') {\n\t\t\t\tawait import('dayjs/locale/en-gb');\n\t\t\t} else if (locale === 'ar') {\n\t\t\t\tawait import('dayjs/locale/ar');\n\t\t\t} else if (locale === 'fa') {\n\t\t\t\tawait import('dayjs/locale/fa');\n\t\t\t} else if (locale === 'hr') {\n\t\t\t\tawait import('dayjs/locale/hr');\n\t\t\t} else if (locale === 'pt-br') {\n\t\t\t\tawait import('dayjs/locale/pt-br');\n\t\t\t} else if (locale === 'nl') {\n\t\t\t\tawait import('dayjs/locale/nl');\n\t\t\t}\n\n\t\t\tdayjs.locale(locale);\n\n\t\t\treturn Ok();\n\t\t} catch (error) {\n\t\t\tconsole.error(`Unexpected locale error loading, the provided locale \"${locale}\" is not supported in dayjs`);\n\n\t\t\t// To not cause the application to fail to start, we'll just let the user through even\n\t\t\t// though this one failed\n\t\t\treturn Ok();\n\t\t}\n\t}\n\n\t/**\n\t * Since our backend uses a different ISO standard, we need to map theirs to Dayjs's locales\n\t */\n\tpublic convertExternalLocaleToLocal(external: string): I18nAndL10n.AvailableVisibaLocales {\n\t\tconst externalLowercase = external.toLocaleLowerCase();\n\n\t\t// Needs to convert some Visiba locales due to not matching directly to Dayjs\n\t\tif (externalLowercase === 'en') return 'en-gb';\n\t\tif (externalLowercase === 'no') return 'nb';\n\n\t\tconst availableLocales: I18nAndL10n.AvailableVisibaLocales[] = ['sv', 'nb', 'fi', 'da', 'en-gb', 'ar', 'fa', 'hr', 'pt-br'];\n\n\t\tif (availableLocales.includes(externalLowercase as I18nAndL10n.AvailableVisibaLocales)) {\n\t\t\treturn externalLowercase as I18nAndL10n.AvailableVisibaLocales;\n\t\t}\n\n\t\t// Returns en-gb if external did not match anything\n\t\treturn 'en-gb';\n\t}\n}\n","import { EventEmitter } from '@visiba/std';\nimport { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { UnitsApiService } from '@api_patient/units_api.service';\nimport type { UnitModel } from '@api_patient/generated/clientv2/models';\nimport { HttpError } from './http_error';\n\nenum EntranceTypeEnum {\n\tRegular = 0,\n}\n\nexport interface UnitEntrance {\n\tid: string;\n\tto: string;\n\tinternal: boolean;\n\tbody: string;\n\tlabel: string;\n\ttype: EntranceTypeEnum;\n}\n\nexport interface UnitNodeData {\n\ttitle: string;\n\tbody: string;\n\tallowClientAgents: boolean;\n\thasAreaBooking: boolean;\n\thasAreaDropIn: boolean;\n\thasAreaMessaging: boolean;\n\thasConditionWorkflow: boolean;\n\thasPhysicalLocation: boolean;\n\thideProvidedByVisibaCare: boolean;\n\tmessagingIsUnlisted: boolean;\n\tentrances: UnitEntrance[];\n}\n\nexport interface UnitNode {\n\tname: string;\n\tsubtitle: string;\n\tid: number;\n\talias: string;\n\troute: string;\n\trouteWithoutLicenceholder: string;\n\tparent: UnitNode | null;\n\tisListed: boolean;\n\tisEntrance: boolean;\n\treceptionId: number;\n\tdata: UnitNodeData | null;\n\tchildren: UnitNode[];\n\thasListableChildren: boolean;\n\thasChildren: boolean;\n}\n\nexport class UnitConfigurationError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'UnitConfigurationError';\n\t\tObject.setPrototypeOf(this, UnitConfigurationError.prototype);\n\t}\n}\n\nexport class UnitNotFoundError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'UnitNotFoundError';\n\t\tObject.setPrototypeOf(this, UnitNotFoundError.prototype);\n\t}\n}\n\nexport class UnitsNotLoadedError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'UnitsNotLoadedError';\n\t\tObject.setPrototypeOf(this, UnitsNotLoadedError.prototype);\n\t}\n}\n\nexport class UnitNotListedError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'UnitNotListedError';\n\t\tObject.setPrototypeOf(this, UnitNotListedError.prototype);\n\t}\n}\n\nexport class RouteNotAccessible extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'RouteNotAccessible';\n\t\tObject.setPrototypeOf(this, RouteNotAccessible.prototype);\n\t}\n}\n\n/**\n * A singleton service that manages units throughout the application.\n *\n * In the Visiba platform we have a concept called _Unit_. A Unit is a model\n * that represent a customer's department within their organization. A Unit\n * can be flagged as an _Entrance_ and if the Entrance flag is present we're\n * referring it has an _Reception_.\n *\n * Units and Receptions are different from each other, Units are part of a\n * hierarchically structure while a Reception is the place a patient can\n * \"enter\" (visually in the UI). They do not share the same id; meaning that a\n * Unit, as a node in the tree, is just a bridge to fetch the Reception data\n * (containing the reception id). The ids are formally known as `unitId` and\n * `receptionId` and through out our code bases we have moved more of our\n * logic to target a `receptionId` over a `unitId`. Newer code is written for\n * `receptionId` while \"legacy\" parts still targets `unitId`.\n */\n@Injectable({\n\tscope: Scopes.Singleton,\n})\nexport class UnitService {\n\tpublic readonly events = new EventEmitter<{\n\t\tonTreeConstructing: null;\n\t\tonTreeConstructed: null;\n\t}>();\n\tprivate unitTree: Readonly> | null = null;\n\tprivate backTraceReception: Readonly> | null = null;\n\tprivate internalRootUnitId: number | null = null;\n\n\t/**\n\t * Retrieves the loaded Unit Node Tree for the LicenceHolder the application is\n\t * running under.\n\t */\n\tpublic get units(): Readonly> {\n\t\tif (this.unitTree == null) throw new UnitsNotLoadedError('Tried to operate on unloaded units');\n\n\t\treturn this.unitTree;\n\t}\n\n\t/**\n\t * Retrieves the root Unit Id of the loaded Unit Node Tree for the\n\t * licenceHolder the application is running under.\n\t */\n\tpublic get rootUnit(): UnitNode {\n\t\tif (this.internalRootUnitId == null) throw new UnitsNotLoadedError('Tried to operate on unloaded units');\n\n\t\tconst unit = this.getUnitNodeInTree(this.internalRootUnitId);\n\n\t\treturn unit;\n\t}\n\n\tconstructor(private readonly unitsApiService: UnitsApiService) {\n\t\t// Empty\n\t}\n\n\t/**\n\t * This method will \"load\" the service with a collection of\n\t * nodes starting from the passed root id\n\t *\n\t * @param rootId The root Unit node id that the remainder of Unit\n\t * tree will be built on.\n\t */\n\tpublic async load(rootId: number): AsyncResult> {\n\t\tthis.events.emit('onTreeConstructing', null);\n\n\t\tconst result = await this.unitsApiService.getTree(rootId);\n\t\tif (result.err)\n\t\t\treturn result /* TODO: This cast can removed when not using Angular */ as unknown as AsyncResult>;\n\n\t\tconst [unitTree, backTracedMap] = this.traverseReceptionModel(result.ok.data);\n\n\t\tthis.internalRootUnitId = rootId;\n\n\t\tthis.backTraceReception = backTracedMap;\n\t\tthis.unitTree = unitTree;\n\n\t\tthis.events.emit('onTreeConstructed', null);\n\n\t\treturn Ok(result.ok.data);\n\t}\n\n\t/** Given an valid reception route, the id of that unit will be resolved */\n\tpublic backTraceUnitIdFromRoute(url: string): number {\n\t\tif (this.backTraceReception == null) throw new UnitsNotLoadedError('Tried to operate on unloaded units');\n\n\t\tconst backTraced = this.backTraceReception.get(url);\n\t\tif (backTraced == null) throw new UnitNotListedError(`The url \"${url}\" did not result in any matching unit`);\n\n\t\treturn backTraced;\n\t}\n\n\t/** Retrieves the Unit Node for given UnitId */\n\tpublic getUnitNodeInTree(unitId: number): UnitNode {\n\t\tconst unit = this.units.get(unitId);\n\t\tif (unit == null) throw new UnitNotFoundError(`No unit found with unitId ${unitId}`);\n\n\t\treturn unit;\n\t}\n\n\tpublic getUnitNodeInTreeByReceptionId(receptionId: number): UnitNode {\n\t\tconst unit = Array.from(this.units.values()).find((unit) => unit.receptionId == receptionId);\n\t\tif (unit == null) throw new UnitNotFoundError(`No unit found with receptionId ${receptionId}`);\n\n\t\treturn unit;\n\t}\n\n\tpublic normalizePathnameToBackTraceableRoute(pathname: string): string {\n\t\t// Given the pathname: /v/1/2/3/visits?x=y&y=x\n\t\t// The goal is to normalize it to 1/2/3\n\n\t\t//We want to normalize the string to: v/1/2/3/visits?x=y&y=x\n\t\tfunction trimmedLeadingAndTrailingSlashes(str: string): string {\n\t\t\treturn str.replace(/^\\/|\\/$/g, '');\n\t\t}\n\t\tlet trimmedPathname = trimmedLeadingAndTrailingSlashes(pathname);\n\n\t\t// We want to remove the \"v/\" if present, giving us: 1/2/3/visits?x=y&y=x\n\t\tif (trimmedPathname.startsWith(`v/`)) {\n\t\t\ttrimmedPathname = trimmedPathname.substring(2);\n\t\t}\n\n\t\t// We want to remove the \"?x=y&y=x\" if present, giving us: 1/2/3/visits\n\t\ttrimmedPathname = trimmedPathname.split('?')[0];\n\n\t\t// We want to split at the slashes, giving us: ['1', '2', '3', 'visits?x=y&y=x']\n\t\tconst chunks = trimmedPathname.split('/');\n\t\t// We want to know all the possible units that can be found in the pathname,\n\t\t// so it may be checked against in the next step\n\t\tconst allRoutes: string[] = [];\n\n\t\tfor (const [route] of this.backTraceReception ?? []) {\n\t\t\tallRoutes.push(route);\n\t\t}\n\t\tconst knownUrlAliases = new Set(allRoutes.join('/').split('/'));\n\n\t\t// We want to travel forward and check how far we can go until we find an\n\t\t// off chunk or just reached the end\n\t\tconst strBuilder: string[] = [];\n\t\twhile (chunks.length) {\n\t\t\t// It's guaranteed that chunks.length > 0 here\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t\t\tconst chunk = chunks.shift()!;\n\t\t\tif (knownUrlAliases.has(chunk)) {\n\t\t\t\tstrBuilder.push(chunk);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tbreak;\n\t\t}\n\n\t\t// 1/2/3\n\t\t// Down here we're hopefully done! Just a check if the made string is valid.\n\t\t// If not, big sad :c\n\t\tconst completedRoute = strBuilder.join('/');\n\t\tif (this.backTraceReception?.has(completedRoute)) {\n\t\t\treturn completedRoute;\n\t\t}\n\n\t\tthrow new RouteNotAccessible(\n\t\t\t`The route \"${pathname}\" couldn't be normalized into anything recognizable.\nBest we could do was: \"${completedRoute}\", but no records of that key was found.`,\n\t\t);\n\t}\n\n\tprivate traverseReceptionModel(model: UnitModel): [Readonly>, Readonly>] {\n\t\tconst extractedMapRef = new Map();\n\t\tconst backTraceReception = new Map();\n\n\t\tfunction findListedChild(start: UnitModel[]): boolean {\n\t\t\tconst childStack: UnitModel[] = [...start];\n\t\t\twhile (childStack.length > 0) {\n\t\t\t\tconst child = childStack.pop();\n\t\t\t\tif (child?.IsListedToClients) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tchildStack.push(...(child?.Children ?? []));\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\n\t\tconst getRouteWithoutLicenceholder = (route: string): string => {\n\t\t\tconst split = route.split('/');\n\n\t\t\tif (split.length > 1) {\n\t\t\t\tsplit.splice(0, 1);\n\n\t\t\t\treturn split.join('/');\n\t\t\t}\n\n\t\t\treturn '';\n\t\t};\n\n\t\tconst traverseNode = (node: UnitModel): void => {\n\t\t\t// If it already exists the tree structure is in a state that's not\n\t\t\t// meant to be supported. So we exiting with an exception\n\t\t\tconst existingNode = extractedMapRef.get(node.Id);\n\t\t\tif (existingNode) throw new UnitConfigurationError(`The node ${node.Id} has already been resolved in another branch`);\n\n\t\t\t// Else we need to create this node and its child nodes\n\t\t\tconst nodeBuilder: UnitNode = {\n\t\t\t\tid: node.Id,\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\treceptionId: node.ReceptionId ?? -1,\n\t\t\t\tisEntrance: node.IsClientEntrance,\n\t\t\t\tisListed: node.IsListedToClients,\n\t\t\t\t// Customers shouldn't be able to have null names, this could occur\n\t\t\t\t// though when new languages are added to the system. So we'll just\n\t\t\t\t// set this value to an empty string to avoid any type errors.\n\t\t\t\tname: node.Name ?? '',\n\t\t\t\tsubtitle: node.Subtitle ?? '',\n\n\t\t\t\tparent: null,\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\talias: node.UrlAlias ?? '',\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\troute: node.UrlAlias ?? '',\n\t\t\t\trouteWithoutLicenceholder: getRouteWithoutLicenceholder(node.UrlAlias),\n\t\t\t\tdata: null,\n\t\t\t\tchildren: [],\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\thasChildren: (node.Children ?? []).length > 0,\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\thasListableChildren: findListedChild(node.Children ?? []),\n\t\t\t};\n\n\t\t\tconst parentNode = node.ParentId ? extractedMapRef.get(node.ParentId) : undefined;\n\t\t\tif (parentNode) {\n\t\t\t\tnodeBuilder.parent = parentNode;\n\n\t\t\t\t// Recursive traverse until hitting the top, building the route for\n\t\t\t\t// this node\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\tconst routeList: string[] = [node.UrlAlias ?? '-'];\n\t\t\t\tconst buildAliasUntilReachingTheTopNode = (node: UnitNode): void => {\n\t\t\t\t\trouteList.unshift(node.alias);\n\n\t\t\t\t\tif (node.parent) {\n\t\t\t\t\t\tbuildAliasUntilReachingTheTopNode(node.parent);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tbuildAliasUntilReachingTheTopNode(parentNode);\n\t\t\t\tnodeBuilder.route = routeList.join('/');\n\t\t\t\tnodeBuilder.routeWithoutLicenceholder = getRouteWithoutLicenceholder(nodeBuilder.route);\n\n\t\t\t\tparentNode.children.push(nodeBuilder);\n\t\t\t}\n\n\t\t\t// Once everything is settled, store this node for later use\n\t\t\textractedMapRef.set(nodeBuilder.id, nodeBuilder);\n\t\t\tbackTraceReception.set(nodeBuilder.route, nodeBuilder.id);\n\n\t\t\tnode.Children?.forEach((childNode) => {\n\t\t\t\ttraverseNode(childNode);\n\t\t\t});\n\t\t};\n\n\t\ttraverseNode(model);\n\n\t\treturn [extractedMapRef, backTraceReception];\n\t}\n}\n","class NotImplementedError extends Error {\n\tconstructor(featureName?: string) {\n\t\tconst message = featureName ? `Feature \"${featureName}\" is not implemented.` : 'Not implemented.';\n\t\tsuper(message);\n\t\tthis.name = 'NotImplementedError';\n\t}\n}\n\n/**\n * Throws a custom error indicating that the feature is not implemented yet.\n *\n * @param featureName The name of the feature that is not implemented. (Optional)\n * @throws {NotImplementedError} Throws a NotImplementedError with the feature name in the error message.\n */\nexport function todo(featureName?: string): never {\n\tconst err = new NotImplementedError(featureName);\n\n\t// We want to know where it error occurred, and not inside this function.\n\tError.captureStackTrace?.(err, todo);\n\n\tthrow err;\n}\n","import { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { Signal, signal } from '@preact/signals-react';\nimport { NiN } from '@visiba/national-identity-number';\nimport { Logger } from '@visiba/logger';\nimport { todo } from '@cortex-shim/todo';\nimport { type TokenOverrides } from '@cellula/react';\n\n@Injectable({\n\tscope: Scopes.Singleton,\n})\nexport class UniversalConfig {\n\tpublic currentUnitId: Nullable = null;\n\tpublic beWebVersion = '';\n\tpublic recentlyVisitedReceptionId = signal(null);\n\n\tprivate loadedCriticalData = signal(null);\n\tprivate readonly logger = new Logger('universal config');\n\n\tpublic get globalCustomerId() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn d.globalCustomerId;\n\t}\n\tpublic get logo() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn this.theme['EmailLogoUrl'] ?? null;\n\t}\n\tpublic get selectedUnitId() {\n\t\tconst d = this.loadedCriticalData.peek();\n\n\t\tif (this.currentUnitId != null) {\n\t\t\treturn this.currentUnitId;\n\t\t}\n\n\t\tif (d?.rootUnitId != null) {\n\t\t\treturn d.rootUnitId;\n\t\t}\n\n\t\ttodo('how to handle this case?');\n\t}\n\tpublic get licenceHolderId() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn d.licenceHolderId;\n\t}\n\tpublic get rootUnit() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn d.rootUnitId;\n\t}\n\tpublic get selectedCountryCode() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn d.selectedCountryCode;\n\t}\n\tpublic get selectedLanguageCode() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn d.selectedLanguageCode;\n\t}\n\tpublic get theme() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn d.theme;\n\t}\n\tpublic get alias() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn d.urlAlias;\n\t}\n\tpublic get availableLanguages() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn d.availableLanguages;\n\t}\n\tpublic get requireClientEmail() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn d.requireClientEmail;\n\t}\n\tpublic get requireClientPhone() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn d.requireClientPhone;\n\t}\n\tpublic get hideProvidedByVisibaCare() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn d.hideProvidedByVisibaCare;\n\t}\n\tpublic get daysToDepersonalizeClientAfterRequest() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn d.daysToDepersonalizeClientAfterRequest;\n\t}\n\tpublic get legal() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn d.legal;\n\t}\n\tpublic get appConfig() {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d == null) todo('how to handle this case?');\n\n\t\treturn d.appConfig;\n\t}\n\n\tpublic insertCriticalData(criticalData: CriticalData) {\n\t\tconst d = this.loadedCriticalData.peek();\n\t\tif (d != null) {\n\t\t\tthis.logger.logWarning('cannot rebind critical data twice');\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.loadedCriticalData.value = criticalData;\n\t\tthis.logger.logInformation('retrieved critical data');\n\t}\n}\n\ninterface Opts {\n\treadonly availableLanguages: string[];\n\treadonly rootUnitId: number;\n\treadonly licenceHolderId: number;\n\treadonly globalCustomerId: string;\n\treadonly initialCountryCode: NiN.ImplementationsKeys;\n\treadonly languageCode: string;\n\treadonly urlAlias: string;\n\treadonly theme: TokenOverrides;\n\treadonly requireClientEmail: boolean;\n\treadonly requireClientPhone: boolean;\n\treadonly hideProvidedByVisibaCare: boolean;\n\treadonly daysToDepersonalizeClientAfterRequest: number;\n\treadonly legal: {\n\t\treadonly tos: string;\n\t\treadonly pp: string;\n\t};\n\treadonly appConfig: Nullable;\n}\n\nexport class CriticalData {\n\tpublic readonly availableLanguages: string[];\n\tpublic readonly urlAlias: string;\n\tpublic readonly globalCustomerId: string;\n\tpublic readonly rootUnitId: number;\n\tpublic readonly licenceHolderId: number;\n\tpublic readonly theme: TokenOverrides;\n\tpublic readonly requireClientEmail: boolean;\n\tpublic readonly requireClientPhone: boolean;\n\tpublic readonly hideProvidedByVisibaCare: boolean;\n\tpublic readonly daysToDepersonalizeClientAfterRequest: number;\n\tpublic readonly legal: {\n\t\treadonly tos: string;\n\t\treadonly pp: string;\n\t};\n\tpublic readonly appConfig: Nullable;\n\tpublic selectedCountryCode: Signal;\n\tpublic selectedLanguageCode: Signal;\n\n\tconstructor(opts: Opts) {\n\t\tthis.availableLanguages = opts.availableLanguages;\n\t\tthis.urlAlias = '/' + opts.urlAlias;\n\t\tthis.rootUnitId = opts.rootUnitId;\n\t\tthis.licenceHolderId = opts.licenceHolderId;\n\t\tthis.globalCustomerId = opts.globalCustomerId;\n\t\tthis.theme = opts.theme;\n\t\tthis.requireClientEmail = opts.requireClientEmail;\n\t\tthis.requireClientPhone = opts.requireClientPhone;\n\t\tthis.hideProvidedByVisibaCare = opts.hideProvidedByVisibaCare;\n\t\tthis.daysToDepersonalizeClientAfterRequest = opts.daysToDepersonalizeClientAfterRequest;\n\t\tthis.legal = opts.legal;\n\t\tthis.appConfig = opts.appConfig;\n\n\t\tthis.selectedCountryCode = signal(opts.initialCountryCode);\n\t\tthis.selectedLanguageCode = signal(opts.languageCode);\n\t}\n}\n\ninterface AppConfig {\n\tandroidPackageId: string | null;\n\tappStoreId: string | null;\n}\n","import { Logger } from '@visiba/logger';\nimport { sanitizedInjectHTML } from '@cortex-shim/sanitized_inject_html';\nimport { Injectable } from '@visiba-cortex/instantiation';\nimport { delay, Timer } from '@visiba/std';\nimport { v4 } from 'uuid';\n\nexport type Assertiveness = 'polite' | 'assertive';\n\ninterface AnnounceMessage {\n\tid: string;\n\tassertiveness: Assertiveness;\n\tmessage: string;\n\tabortController: AbortController;\n}\n\n@Injectable()\nexport class LiveAnnouncerController {\n\tpublic politeContainer: HTMLDivElement;\n\tpublic assertiveContainer: HTMLDivElement;\n\tprivate queueIsRunning = false;\n\tprivate clearMessageTimeout = new Timer();\n\tprivate announceMessageQueue: AnnounceMessage[] = [];\n\tprivate lastElement: HTMLElement | null = null;\n\tprivate readonly logger = new Logger('LiveAnnouncerController');\n\n\tconstructor() {\n\t\tthis.politeContainer = this.createElement('polite');\n\t\tthis.assertiveContainer = this.createElement('assertive');\n\t}\n\n\tpublic announce(message: string, assertiveness: Assertiveness = 'polite'): RemoveThisMessageFromDom {\n\t\tconst announceMessage: AnnounceMessage = {\n\t\t\tid: v4(),\n\t\t\tassertiveness,\n\t\t\tmessage,\n\t\t\tabortController: new AbortController(),\n\t\t};\n\t\tthis.announceMessageQueue.push(announceMessage);\n\n\t\tthis.render();\n\n\t\treturn () => {\n\t\t\tannounceMessage.abortController.abort();\n\t\t\tthis.removeMessageIfExisting(announceMessage.id);\n\t\t};\n\t}\n\n\tpublic getContainer(assertiveness: Assertiveness): HTMLElement {\n\t\treturn assertiveness === 'assertive' ? this.assertiveContainer : this.politeContainer;\n\t}\n\n\tprivate async render(): Promise {\n\t\tif (this.queueIsRunning) return;\n\n\t\tthis.queueIsRunning = true;\n\t\tthis.clearMessageTimeout.flush();\n\n\t\tdo {\n\t\t\tthis.lastElement?.remove();\n\n\t\t\tconst currentMessage = this.announceMessageQueue.shift();\n\t\t\tif (currentMessage == null) break;\n\n\t\t\tif (currentMessage.abortController.signal.aborted) {\n\t\t\t\tthis.removeMessageIfExisting(currentMessage.id);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst container = this.getContainer(currentMessage.assertiveness);\n\n\t\t\tconst wrapper = document.createElement('div');\n\n\t\t\twrapper.innerHTML = sanitizedInjectHTML(currentMessage.message).__html;\n\t\t\twrapper.setAttribute('data-id', currentMessage.id);\n\t\t\tthis.lastElement = wrapper;\n\n\t\t\tcontainer.appendChild(wrapper);\n\t\t\tthis.logger.logInformation(`[${currentMessage.assertiveness}] ${currentMessage.message}`);\n\n\t\t\t// Delay the next message so screen readers have time to perceive the change\n\t\t\tawait delay(100);\n\t\t} while (this.announceMessageQueue.length !== 0);\n\n\t\t// Once settle clear message after a timeout so there are no messages\n\t\t// that could be read later.\n\t\tthis.queueIsRunning = false;\n\t}\n\n\tprivate createElement(assertiveness: Assertiveness): HTMLDivElement {\n\t\tconst element = document.createElement('div');\n\n\t\telement.setAttribute('role', assertiveness === 'polite' ? 'log' : 'log');\n\t\telement.setAttribute('aria-live', assertiveness);\n\t\telement.setAttribute('aria-relevant', 'additions');\n\n\t\telement.style.border = '0';\n\t\telement.style.clip = 'rect(1px, 1px, 1px, 1px)';\n\t\telement.style.clipPath = 'inset(50%)';\n\t\telement.style.height = '1px';\n\t\telement.style.margin = '-1px';\n\t\telement.style.overflow = 'hidden';\n\t\telement.style.padding = '0';\n\t\telement.style.position = 'absolute';\n\t\telement.style.width = '1px';\n\t\telement.style.wordWrap = 'normal !important';\n\n\t\tdocument.body.appendChild(element);\n\n\t\treturn element;\n\t}\n\n\tprivate removeMessageIfExisting(id: string): void {\n\t\tconst query = `[data-id=\"${id}\"]`;\n\t\tconst element = this.politeContainer.querySelector(query) ?? this.politeContainer.querySelector(query);\n\t\telement?.remove();\n\t}\n}\n\ntype RemoveThisMessageFromDom = () => void;\n","import DOMPurify from 'dompurify';\n\n/**\n * ## cortex:react-ui-std:sanitizedInjectHTML\n * Sanitization is the inspection of an untrusted value, turning it into a value that's safe to insert into the DOM.\n */\nexport function sanitizedInjectHTML(htmlString: string): { __html: string } {\n\treturn { __html: DOMPurify.sanitize(htmlString) };\n}\n","import { LiveAnnouncerController } from '@component/live_announcer/live_announcer.controller';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { useLayoutEffect } from 'react';\n\nexport function useTitle(title: string): void {\n\tconst liveAnnouncerController = useService(LiveAnnouncerController);\n\n\tuseLayoutEffect(\n\t\tfunction whenHookMounts() {\n\t\t\tconst prevTitle = document.title;\n\t\t\tdocument.title = title;\n\n\t\t\tconst removeMessage = liveAnnouncerController.announce(\n\t\t\t\twithTranslation('Common.Word.A11y.NavigateTo', {\n\t\t\t\t\tlocation: title,\n\t\t\t\t}),\n\t\t\t);\n\n\t\t\treturn () => {\n\t\t\t\tremoveMessage();\n\t\t\t\tdocument.title = prevTitle;\n\t\t\t};\n\t\t},\n\t\t[liveAnnouncerController, title],\n\t);\n}\n","import { NiN } from '@visiba/national-identity-number';\n\nexport function validateNin(countryCode: keyof NiN.Implementations, value: string | null) {\n\treturn value != null && NiN.validate(countryCode, value.trim());\n}\n\nexport function validateRequired(value: string | null): boolean {\n\tif (value != null && value.trim() != '') {\n\t\treturn true;\n\t}\n\n\treturn false;\n}\n","import { HeadlessButton, Icon, Text } from '@cellula/react';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport type { ReactNode, MouseEvent } from 'react';\nimport styled from 'styled-components';\n\nconst elements = {\n\tcontainer: styled(HeadlessButton)`\n\t\tall: unset;\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\tjustify-content: space-between;\n\t\tborder-radius: ${tokens.borderRadius.medium};\n\t\tborder: 1px solid ${tokens.color.border.muted};\n\t\tbox-shadow: ${tokens.elevation.skim};\n\t\ttransition: box-shadow 150ms ease-in;\n\t\tcolor: ${tokens.color.content.default};\n\t\tbackground: ${tokens.color.bg.surface};\n\t\toverflow: hidden;\n\t\tposition: relative;\n\t\tbackground: ${tokens.color.bg.surface};\n\n\t\tmin-height: ${tokens.size.x8};\n\n\t\t&:hover {\n\t\t\ttransition: box-shadow 50ms;\n\t\t\tbox-shadow: ${tokens.elevation.lifted};\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&[aria-disabled='true'] {\n\t\t\tbox-shadow: none;\n\t\t\topacity: 0.7;\n\t\t\tcursor: not-allowed;\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\tinset: 0;\n\t\t\t\tbackground-color: ${primitiveColorTokens.neutral[100]};\n\t\t\t\tz-index: -1;\n\t\t\t\topacity: 0.4;\n\t\t\t}\n\t\t}\n\n\t\t&[data-focus='true'] {\n\t\t\toutline: 2px solid ${tokens.color.focus};\n\t\t\toutline-offset: 2px;\n\t\t}\n\n\t\t&[data-variant='chunky'] {\n\t\t\tmin-height: 120px;\n\t\t}\n\t`,\n\ticonContainer: styled.span`\n\t\tdisplay: flex;\n\t\tbackground-color: ${tokens.color.bg.surfaceBrand};\n\t\tcolor: ${tokens.color.content.mutedBrand};\n\t\tpadding: ${tokens.spacing.x1_5};\n\t\twidth: ${tokens.size.x7};\n\t\tflex-shrink: 0;\n\t\tflex-grow: 0;\n\t\tposition: relative;\n\n\t\t&[data-align='center'] {\n\t\t\talign-items: center;\n\t\t}\n\t`,\n\tcontentContainer: styled.span`\n\t\tdisplay: flex;\n\t\tflex-grow: 1;\n\t\tpadding: ${tokens.spacing.x2};\n\t\talign-items: center;\n\n\t\t&[data-align='top'] {\n\t\t\talign-items: flex-start;\n\t\t}\n\t`,\n\tcontent: styled.span`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: ${tokens.spacing.x1_5};\n\t\talign-items: flex-start;\n\t\tword-wrap: break-word;\n\t\tword-break: break-word;\n\t`,\n\tarrowContainer: styled.span`\n\t\tdisplay: flex;\n\t\talign-items: flex-end;\n\t\tpadding: ${tokens.spacing.x1_5} ${tokens.spacing.x1_5} ${tokens.spacing.x1_5} 0;\n\t\tcolor: ${tokens.color.content.muted};\n\t\tflex-shrink: 0;\n\n\t\t&[data-align='center'] {\n\t\t\talign-items: center;\n\t\t}\n\t`,\n};\n\ntype Variants = 'slim' | 'chunky';\n\ninterface ActionCardRootProps {\n\tchildren: ReactNode;\n\tdisabled?: boolean;\n\tisStatic?: boolean;\n\ticon?: JSX.Element;\n\ticonAlign?: 'top' | 'center';\n\tvariant?: Variants;\n\thideArrow?: boolean;\n\tarrowAlign?: 'bottom' | 'center';\n\tonClick?: (event: MouseEvent) => void;\n}\nfunction ActionCardRoot({\n\tchildren,\n\tdisabled,\n\tisStatic,\n\ticon,\n\ticonAlign = 'top',\n\thideArrow = false,\n\tarrowAlign = 'center',\n\tvariant = 'slim',\n\tonClick,\n\t...rest\n}: ActionCardRootProps): JSX.Element {\n\treturn (\n\t\t\n\t\t\t{icon ? {icon} : null}\n\t\t\t{children}\n\t\t\t{!hideArrow ? (\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t) : null}\n\t\t\n\t);\n}\n\ninterface ActionCardContentProps {\n\tchildren: ReactNode;\n}\nfunction ActionCardContent({ children }: ActionCardContentProps) {\n\treturn {children};\n}\n\ninterface ActionCardTitleProps {\n\tchildren: ReactNode;\n}\nfunction ActionCardTitle({ children }: ActionCardTitleProps) {\n\treturn {children};\n}\n\ninterface ActionCardMetaProps {\n\tchildren: ReactNode;\n}\nfunction ActionCardMeta({ children }: ActionCardMetaProps) {\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t\n\t);\n}\n\nexport const ActionCard = {\n\tRoot: ActionCardRoot,\n\tContent: ActionCardContent,\n\tTitle: ActionCardTitle,\n\tMeta: ActionCardMeta,\n};\n","import { tokens } from '@cellula/react-theme-patient';\nimport styled from 'styled-components';\n\ninterface Props {\n\tchildren: string;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tfont: ${tokens.text.body.regular};\n\t\twhite-space: pre-line;\n\n\t\tp {\n\t\t\tmargin-bottom: ${tokens.spacing.x1};\n\n\t\t\t&:last-of-type {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t}\n\t`,\n};\n\nexport function Article({ children, ...rest }: Props): JSX.Element {\n\tconst normalizedText = (children as unknown) instanceof String ? children : `${children}`;\n\n\treturn (\n\t\t\n\t\t\t{normalizedText.split('\\n\\n').map((section) => (\n\t\t\t\t

{section}

\n\t\t\t))}\n\t\t
\n\t);\n}\n","import { useConstant } from '@visiba/react-std';\nimport { Timer } from '@visiba/std';\nimport { Fragment, ReactNode, useEffect, useState } from 'react';\n\ninterface Props {\n\tdelay?: number;\n\tchildren: ReactNode;\n}\n\nexport function DelayedRender({ delay = 250, children }: Props): JSX.Element | null {\n\tconst [shouldRender, setShouldRender] = useState(false);\n\tconst timer = useConstant(() => new Timer());\n\n\tuseEffect(\n\t\tfunction whenMounted() {\n\t\t\treturn timer.wait(() => setShouldRender(true), delay);\n\t\t},\n\t\t[timer, delay],\n\t);\n\n\tif (!shouldRender) {\n\t\treturn null;\n\t}\n\n\treturn {children};\n}\n","import { DelayedRender } from '@component/delayed_render.component';\nimport type { Signal } from '@preact/signals-react';\nimport { ReactNode } from 'react';\n\ntype AsyncSignalValueIdle = {\n\tvalue: null;\n\tflowState: 'idle';\n};\n\ntype AsyncSignalValuePending = {\n\tvalue: null;\n\tflowState: 'pending';\n};\n\ntype AsyncSignalValueError = {\n\tvalue: null;\n\tflowState: 'error';\n};\n\ntype AsyncSignalValueAccessible = {\n\tvalue: T;\n\tflowState: 'accessible';\n};\n\nexport type AsyncSignalValue =\n\t| AsyncSignalValueIdle\n\t| AsyncSignalValuePending\n\t| AsyncSignalValueError\n\t| AsyncSignalValueAccessible;\n\ninterface Props {\n\tderive: Signal>;\n\tfallback?: ReactNode;\n\tcatch?: ReactNode;\n\tchildren?: ((data: T) => ReactNode) | ReactNode;\n\tfallbackDelay?: number;\n}\n\nexport function Async({ fallbackDelay, derive, fallback, catch: $catch, children }: Props): JSX.Element | null {\n\tif (derive.value.flowState === 'idle') {\n\t\treturn null;\n\t}\n\n\tif (derive.value.flowState === 'pending') {\n\t\treturn fallback ? {fallback} : null;\n\t}\n\n\tif (derive.value.flowState === 'error') {\n\t\treturn $catch ? <>{$catch} : null;\n\t}\n\n\treturn <>{typeof children === 'function' ? children(derive.value.value) : children};\n}\n\nexport function isAsyncSignalAccessible(value: Signal>): value is Signal> {\n\treturn value.value.flowState === 'accessible';\n}\n","import { Flex } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { ReactNode } from 'react';\n\ninterface ButtonArrangeProps {\n\tjustify?: 'space-between' | 'center';\n\tchildren: ReactNode;\n}\n\nexport function ButtonArrange({ justify, children }: ButtonArrangeProps) {\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t\n\t);\n}\n","import { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { Signal, signal } from '@preact/signals-react';\nimport { EventEmitter } from '@visiba/std';\nimport { applicationLocalStorage } from '@application/application_storage_local';\nimport { DateService } from '@application/time/date.service';\nimport { Logger } from '@visiba/logger';\n\n@Injectable({\n\tscope: Scopes.Singleton,\n})\nexport class ConsentService extends EventEmitter<{\n\tonConsent: Revision;\n}> {\n\tprivate readonly logger = new Logger('ConsentService');\n\n\tpublic hasRevision: Signal>;\n\n\tprivate consent: number;\n\n\tconstructor(private readonly dateService: DateService) {\n\t\tsuper();\n\n\t\tconst revision = this.parseRevision().ok;\n\t\tthis.consent = revision?.consent ?? 0;\n\n\t\tthis.hasRevision = signal(revision);\n\t}\n\n\tpublic setDefault(...consents: UserConsent[]) {\n\t\t// If the value already have a value, do nothing.\n\n\t\tif (this.consent !== 0) return;\n\n\t\tthis.giveConsent(...consents);\n\t}\n\n\tpublic giveConsent(...consents: UserConsent[]) {\n\t\t// Set consent using bitwise OR\n\t\tthis.consent = UserConsent.Essential;\n\n\t\tfor (const consent of consents) {\n\t\t\tthis.consent |= consent;\n\t\t}\n\n\t\tthis.logger.logVerbose('Users consent level is at {consent}', this.consent);\n\t}\n\n\tpublic hasConsent(consent: UserConsent): boolean {\n\t\t// Check consent using bitwise AND\n\t\treturn (this.consent & consent) !== 0;\n\t}\n\n\tpublic revokeConsent(consent: UserConsent): void {\n\t\t// Remove consent using bitwise AND with negation\n\t\tthis.consent &= ~consent;\n\t}\n\n\tpublic getConsent(): number {\n\t\treturn this.consent;\n\t}\n\n\tpublic acceptConsent(...consents: UserConsent[]) {\n\t\tthis.giveConsent(...consents);\n\n\t\tconst revision = {\n\t\t\tversion: 0,\n\t\t\ttimestamp: this.dateService.newDate().toISOString(),\n\t\t\tconsent: this.getConsent(),\n\t\t} satisfies Revision;\n\n\t\tapplicationLocalStorage.set('cookieConsentRevision', revision);\n\n\t\tthis.hasRevision.value = revision;\n\n\t\tthis.emit('onConsent', revision);\n\t}\n\n\tprivate parseRevision(): Result {\n\t\tconst consent = applicationLocalStorage.get('cookieConsentRevision');\n\n\t\tif (consent == null) {\n\t\t\treturn Err(new Error('No consent found'));\n\t\t}\n\n\t\tif (consent?.consent == null || consent?.timestamp == null || consent?.version == null) {\n\t\t\treturn Err(new Error('Consent data has malfunction'));\n\t\t}\n\n\t\treturn Ok(consent);\n\t}\n}\n\n// prettier-ignore\nexport enum UserConsent {\n\tEssential = 1 << 0,\n\tAnalytic = 1 << 1,\n\tFunctional = 1 << 2,\n}\n\ntype Revision = {\n\tversion: number;\n\ttimestamp: string;\n\tconsent: number;\n};\n","import { withTranslation } from '@application/i18n/with_translation';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { Accordion, Button, DialogModal, Flex, Form, InputSwitch, Spacer, TextLink, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { delay } from '@visiba/std';\nimport { ConsentService, UserConsent } from './consent.service';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\n\ninterface ConsentDialogProps {\n\ttrigger: React.ReactNode;\n}\n\nexport function ConsentDialog(props: ConsentDialogProps) {\n\treturn (\n\t\t\n\t\t\t\n\t\t\n\t);\n}\n\ntype CellulaFormData = {\n\tanalytics: boolean;\n\tfunctional: boolean;\n\tessential: boolean;\n};\n\nfunction ConsentContent() {\n\tconst universalConfig = useResolve(UniversalConfig);\n\tconst consentService = useResolve(ConsentService);\n\tconst analyticService = useResolve(AnalyticService);\n\n\tfunction handleAccept() {\n\t\tconsentService.acceptConsent(UserConsent.Analytic, UserConsent.Functional);\n\t\tanalyticService.trackEvent(AnalyticCategories.CookieConsent, 'In dialog, user clicked accept additional cookies');\n\t}\n\n\tfunction handleDeny() {\n\t\tconsentService.acceptConsent();\n\t\tanalyticService.trackEvent(AnalyticCategories.CookieConsent, 'In dialog, user denied additional cookies');\n\t}\n\n\tasync function handleSubmit(data: CellulaFormData) {\n\t\tconst consents: UserConsent[] = [];\n\t\tif (data.analytics) consents.push(UserConsent.Analytic);\n\t\tif (data.functional) consents.push(UserConsent.Functional);\n\n\t\tconsentService.acceptConsent(...consents);\n\n\t\tif (consents.length > 0) {\n\t\t\tanalyticService.trackEvent(AnalyticCategories.CookieConsent, 'In dialog, user saved cookies with changes');\n\t\t} else {\n\t\t\tanalyticService.trackEvent(AnalyticCategories.CookieConsent, 'In dialog, user saved cookies without changes');\n\t\t}\n\n\t\tawait delay(250);\n\t}\n\n\treturn (\n\t\t handleSubmit(d as CellulaFormData)}\n\t\t\toptions={{\n\t\t\t\tdefaultValues: {\n\t\t\t\t\tanalytics: consentService.hasConsent(UserConsent.Analytic),\n\t\t\t\t\tfunctional: consentService.hasConsent(UserConsent.Functional),\n\t\t\t\t\tessential: consentService.hasConsent(UserConsent.Essential),\n\t\t\t\t},\n\t\t\t}}\n\t\t>\n\t\t\t\n\t\t\t\t{withTranslation('Component.Consent.Dialog.Title')}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{withTranslation('Component.Consent.Dialog.ReadMore')}{' '}\n\t\t\t\t\t\n\t\t\t\t\t\t{withTranslation('Component.Footer.CookiePolicy')}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{withTranslation('Component.Consent.Dialog.Body')}\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{withTranslation('Component.Consent.Dialog.Item.Analytic.Title')}\n\t\t\t\t\t\t\t\t\t e.stopPropagation()} />\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvalue='analytics'\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{withTranslation('Component.Consent.Dialog.Item.Analytic.Body')}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{withTranslation('Component.Consent.Dialog.Item.Functional.Title')}\n\t\t\t\t\t\t\t\t\t e.stopPropagation()} />\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvalue='functional'\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{withTranslation('Component.Consent.Dialog.Item.Functional.Body')}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{withTranslation('Component.Consent.Dialog.Item.Essential.Title')}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t{withTranslation('Component.Consent.Dialog.Item.Essential.IsMandatory')}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvalue='essential'\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{withTranslation('Component.Consent.Dialog.Item.Essential.Body')}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{withTranslation('Component.Consent.CTA.Save')}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n}\n","import { Button } from '@cellula/react';\nimport { ConsentDialog } from './consent_dialog.component';\nimport { withTranslation } from '@application/i18n/with_translation';\n\ninterface Props {}\n\nexport function ConsentTrigger(_: Props) {\n\treturn (\n\t\t\n\t\t\t\t\t{withTranslation('Component.Consent.Trigger.Button')}\n\t\t\t\t\n\t\t\t}\n\t\t/>\n\t);\n}\n","import { Icon, IconDictionary, VisuallyHidden } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { ReactNode, forwardRef } from 'react';\nimport styled from 'styled-components';\n\nconst StyledDataList = {\n\tRoot: styled.dl`\n\t\t--gap: ${tokens.spacing.x1};\n\t\t--align: flex-start;\n\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: var(--gap);\n\n\t\t&[data-variant='slim'] {\n\t\t\t--gap: 0;\n\t\t}\n\n\t\t&[data-align='right'] {\n\t\t\t--align: flex-end;\n\t\t}\n\t`,\n\tItem: styled.div`\n\t\tdisplay: flex;\n\t\tgap: ${tokens.spacing.x0_5};\n\t\tjustify-content: var(--align);\n\n\t\t&[data-direction='vertical'] {\n\t\t\tflex-direction: column;\n\t\t}\n\t`,\n\tLabel: styled.dt`\n\t\tfont: ${tokens.text.label.semiBold};\n\t\tcolor: ${tokens.color.content.default};\n\n\t\t&[data-icon] {\n\t\t\tmargin-right: ${tokens.spacing.x0_5};\n\t\t\tcolor: ${tokens.color.content.muted};\n\t\t}\n\n\t\t&[data-hidden] {\n\t\t\tdisplay: none;\n\t\t}\n\t`,\n\tValue: styled.dd`\n\t\tfont: ${tokens.text.label.regular};\n\t\tcolor: ${tokens.color.content.default};\n\t`,\n};\n\ninterface DataListRootProps {\n\ttitle?: string;\n\talign?: 'left' | 'right';\n\tvariant?: 'default' | 'slim';\n\tchildren: ReactNode;\n}\n\nfunction DataListRoot({ title, align = 'left', variant = 'default', children }: DataListRootProps) {\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t\n\t);\n}\n\ninterface DataListItemProps {\n\tlabel: string;\n\thideLabel?: boolean;\n\ticon?: keyof IconDictionary;\n\tdirection?: 'horizontal' | 'vertical';\n\tchildren: ReactNode;\n}\nfunction DataListItem({ label, hideLabel, icon, direction = 'horizontal', children }: DataListItemProps) {\n\tconst dataListTitle = (\n\t\t\n\t\t\t{icon ? (\n\t\t\t\t<>\n\t\t\t\t\t{label}:\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t) : (\n\t\t\t\t`${label}:`\n\t\t\t)}\n\t\t\n\t);\n\n\treturn (\n\t\t\n\t\t\t{hideLabel ? {dataListTitle} : dataListTitle}\n\t\t\t{children}\n\t\t\n\t);\n}\n\nexport const DataList = {\n\tRoot: forwardRef(DataListRoot),\n\tItem: forwardRef(DataListItem),\n};\n","import { Flex, Sheet, Spinner } from '@cellula/react';\nimport { useConstant } from '@visiba/react-std';\nimport { Timer } from '@visiba/std';\nimport { useEffect, useState } from 'react';\nimport styled from 'styled-components';\n\ninterface Props {\n\tsrc: string;\n\ttrigger: JSX.Element;\n}\n\nexport function IframeSheet(props: Props): JSX.Element {\n\tconst [showIframe, setShowIframe] = useState(false);\n\tconst timer = useConstant(() => new Timer());\n\n\tuseEffect(() => {\n\t\treturn () => {\n\t\t\ttimer.flush();\n\t\t};\n\t}, [timer]);\n\n\tfunction handleClose() {\n\t\ttimer.wait(() => {\n\t\t\tsetShowIframe(false);\n\t\t}, 350);\n\t}\n\n\tfunction handleOpen() {\n\t\ttimer.wait(() => {\n\t\t\tsetShowIframe(true);\n\t\t}, 350);\n\t}\n\n\treturn (\n\t\t\n\t\t\t{showIframe ? (\n\t\t\t\t\n\t\t\t) : (\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t)}\n\t\t\n\t);\n}\n\nconst StyledIframe = styled.iframe`\n\tall: unset;\n\twidth: 100%;\n\theight: 90vh;\n`;\n\nfunction HackyIframe(props: { src: string }): JSX.Element {\n\treturn ;\n}\n","import { HeadlessIcon, HeadlessIconProps } from '@cellula/react';\nimport loadedIllustrationSet from './illustration_set.json';\nimport { dangerouslyInjectHTML } from '@visiba/react-std';\n\ninterface IllustrationDictionary {\n\tfileExcel: string;\n\tfilePdf: string;\n\tfileWord: string;\n\tfileImage: string;\n\tfileOtherFormat: string;\n\tattachedForm: string;\n\terror: string;\n\tmessageSent: string;\n}\n\ntype IllustrationMap = {\n\t[key in keyof IllustrationDictionary]: {\n\t\tinnerHTML: string;\n\t\tviewBox: string;\n\t};\n};\n\nexport type IllustrationType = keyof IllustrationDictionary;\n\nconst illustrationMap = loadedIllustrationSet as unknown as IllustrationMap;\n\ninterface IllustrationProps extends Omit {\n\t/**\n\t * The icon to use.\n\t */\n\ttype: IllustrationType;\n}\n\nexport function Illustration({ type, ...rest }: IllustrationProps): JSX.Element {\n\treturn (\n\t\t\n\t);\n}\n","import { Flex, Button } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Title } from './title.component';\nimport styled from 'styled-components';\nimport { Illustration } from './illustration/mod';\nimport type { IllustrationType } from './illustration/mod';\nimport { ReactNode } from 'react';\nimport { ButtonArrange } from './button_arrange.component';\n\nconst elements = {\n\tcontainer: styled(Flex)`\n\t\ttext-align: center;\n\t\tmax-width: 400px;\n\t`,\n\tillustration: styled(Illustration)`\n\t\twidth: 200px;\n\t\tmax-width: 100%;\n\t`,\n};\n\ninterface Props {\n\ttitle: string;\n\tdescription?: ReactNode;\n\tillustration?: IllustrationType;\n\tcallToAction?: string;\n\tcallToActionCallback?: () => void;\n}\n\nexport function IllustrativeView({ title, description, illustration, callToAction, callToActionCallback }: Props) {\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t{illustration ? : null}\n\t\t\t\t\n\t\t\t</elements.container>\n\t\t\t{callToAction ? (\n\t\t\t\t<Flex style={{ width: '100%' }}>\n\t\t\t\t\t<ButtonArrange justify='center'>\n\t\t\t\t\t\t<Button variant='primary' onClick={callToActionCallback}>\n\t\t\t\t\t\t\t{callToAction}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</ButtonArrange>\n\t\t\t\t</Flex>\n\t\t\t) : null}\n\t\t</Flex>\n\t);\n}\n","import { UniversalConfig } from '@application/universal_config.service';\nimport { AspectRatio } from '@cellula/react';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport React from 'react';\nimport { Link } from 'react-router-dom';\nimport styled from 'styled-components';\n\nconst StyledLink = styled(Link)`\n\tmask-image: -webkit-linear-gradient(30deg, rgb(0, 0, 0) 25%, rgba(0, 0, 0, 0.2) 50%, rgb(0, 0, 0) 75%);\n\tmask-size: 400%;\n\t-webkit-mask-position-x: 0px;\n\t-webkit-mask-position-y: center;\n\n\t&:hover {\n\t\ttransition-duration: 0.4s, 0.8s;\n\t\ttransition-timing-function: cubic-bezier(0.4, 0, 1, 1), cubic-bezier(0.4, 0, 1, 1);\n\t\ttransition-delay: 0s, 0s;\n\t\ttransition-property:\n\t\t\tmask-position,\n\t\t\t-webkit-mask-position;\n\t\t-webkit-mask-position-x: -150%;\n\t\t-webkit-mask-position-y: center;\n\t}\n`;\n\ninterface Props {\n\tsize?: 'small' | 'medium' | 'large';\n\tonClick?: React.MouseEventHandler<HTMLAnchorElement>;\n}\n\nexport function Logo({ size = 'medium', onClick }: Props) {\n\tconst universalConfig = useResolve(UniversalConfig);\n\n\tlet width: number;\n\tswitch (size) {\n\t\tcase 'small':\n\t\t\twidth = 48;\n\t\t\tbreak;\n\t\tcase 'medium':\n\t\t\twidth = 96;\n\t\t\tbreak;\n\t\tcase 'large':\n\t\t\twidth = 128;\n\t\t\tbreak;\n\t}\n\n\treturn (\n\t\t<StyledLink to='/' onClick={onClick}>\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\twidth: width,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<AspectRatio.Root ratio={2}>\n\t\t\t\t\t<AspectRatio.Img\n\t\t\t\t\t\tsrc={universalConfig.logo}\n\t\t\t\t\t\talt=''\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\tobjectFit: 'contain',\n\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t\t\tborderRadius: 'var(--radius-2)',\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t</AspectRatio.Root>\n\t\t\t</div>\n\t\t</StyledLink>\n\t);\n}\n","import styled, { keyframes } from 'styled-components';\n\nexport type Props = {\n\theight: number | string;\n\twidth?: number | string;\n\tcornerRadius?: number;\n\topacity?: number;\n\tclassName?: string;\n};\n\ninterface InternalProps {\n\t$widthInternal?: number | string;\n\t$heightInternal: number | string;\n\t$opacityInternal: number;\n\t$cornerRadius: number;\n}\n\nconst animation = keyframes`\n\t0% {\n\t\tbackground-position: top right;\n\t}\n\t100% {\n\t\tbackground-position: top left;\n\t}\n`;\n\nconst StyledShimmer = styled.div<InternalProps>`\n\tdisplay: flex;\n\twidth: ${({ $widthInternal }) => (typeof $widthInternal === 'string' ? $widthInternal : `${$widthInternal}px`)};\n\theight: ${({ $heightInternal }) => (typeof $heightInternal === 'string' ? $heightInternal : `${$heightInternal}px`)};\n\topacity: ${({ $opacityInternal }) => $opacityInternal};\n\n\t.shimmer {\n\t\tborder-radius: ${({ $cornerRadius }) => $cornerRadius}px;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground-image: linear-gradient(-80deg, rgba(57, 57, 57, 0.1) 8%, rgba(0, 0, 0, 0.05) 18%, rgba(57, 57, 57, 0.1) 33%);\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: 0 0;\n\t\tbackground-size: ${({ $heightInternal, $widthInternal }) =>\n\t\t\t`${\n\t\t\t\t$widthInternal ? `calc(${typeof $widthInternal === 'string' ? $widthInternal : `${$widthInternal}px`} * 10)` : '1000%'\n\t\t\t} ${$heightInternal}px`};\n\t\tanimation-duration: 2s;\n\t\tanimation-fill-mode: forwards;\n\t\tanimation-iteration-count: infinite;\n\t\tanimation-name: ${animation};\n\t\tanimation-timing-function: ease-in-out;\n\t\tdisplay: flex;\n\t}\n`;\n\nexport function Shimmer({ className, width, height, opacity = 1, cornerRadius = 12 }: Props): JSX.Element {\n\treturn (\n\t\t<StyledShimmer\n\t\t\tclassName={className}\n\t\t\t$widthInternal={width}\n\t\t\t$heightInternal={height}\n\t\t\t$cornerRadius={cornerRadius}\n\t\t\t$opacityInternal={opacity}\n\t\t>\n\t\t\t<div className='shimmer' />\n\t\t</StyledShimmer>\n\t);\n}\n","import { DateService } from '@application/time/date.service';\nimport { v4 } from 'uuid';\n\nexport type KnownApplicationNotificationTypes = 'localPush' | 'banner';\n\nexport abstract class ApplicationNotification<T extends string = KnownApplicationNotificationTypes> {\n\tpublic readonly guid: string;\n\tpublic readonly timestamp: VisibaDate;\n\tpublic abstract readonly event: T;\n\n\tconstructor(sid?: string) {\n\t\tthis.timestamp = DateService.newDate();\n\t\tthis.guid = sid ?? v4();\n\t}\n}\n\nexport interface ApplicationNotificationSpecificationBase<_T extends ApplicationNotification> {\n\tguid?: string;\n}\n","import { ApplicationNotification, ApplicationNotificationSpecificationBase } from './common';\n\ntype Type = 'toast';\n\nexport type Variants = 'danger' | 'warning' | 'success' | 'info';\n\ninterface Specification extends ApplicationNotificationSpecificationBase<LocalPushNotification> {\n\ttype: Type;\n\tlabel: string;\n\tmessage?: string;\n\tvariant: Variants;\n}\n\nexport class LocalPushNotification extends ApplicationNotification {\n\tpublic readonly event = 'localPush';\n\tpublic readonly type: Type;\n\tpublic readonly label: string;\n\tpublic readonly message: string | null;\n\tpublic readonly variant: Variants;\n\n\tconstructor(spec: Specification) {\n\t\tsuper();\n\n\t\tthis.type = spec.type;\n\t\tthis.label = spec.label;\n\t\tthis.message = spec.message ?? null;\n\t\tthis.variant = spec.variant;\n\t}\n}\n","import { ApplicationNotification, ApplicationNotificationSpecificationBase } from './common';\nimport type { FC } from 'react';\n\nexport type Type = 'information';\n\ninterface Specification extends ApplicationNotificationSpecificationBase<BannerNotification> {\n\ttype: Type;\n\tsid?: string;\n\tui: FC<{ message: BannerNotification }>;\n}\n\nexport class BannerNotification extends ApplicationNotification {\n\tpublic readonly ui: FC;\n\tpublic readonly event = 'banner';\n\tpublic readonly type: Type;\n\n\tconstructor(spec: Specification) {\n\t\tsuper(spec.sid);\n\n\t\tconst BannerMessageUi: FC = () => {\n\t\t\treturn <spec.ui message={this} />;\n\t\t};\n\t\tthis.ui = BannerMessageUi;\n\t\tthis.type = spec.type;\n\t}\n}\n","import { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { EventEmitter } from '@visiba/std';\nimport { BannerNotification } from './bar_notification';\nimport { KnownApplicationNotificationTypes, ApplicationNotification } from './common';\nimport type { LocalPushNotification } from './local_push_notification';\n\nenum EventType {\n\tAdd = 'add',\n\tRemove = 'remove',\n}\n\ntype Events<T extends string> = `on${Capitalize<EventType>}${Capitalize<T>}`;\n\nexport type MappedEvents = ImplementRecordWithKnownKeys<\n\tKnownApplicationNotificationTypes,\n\t{\n\t\tlocalPush: LocalPushNotification;\n\t\tbanner: BannerNotification;\n\t}\n>;\n\n@Injectable({\n\tscope: Scopes.Singleton,\n})\nexport class NotificationService<\n\tT extends ImplementRecordWithKnownKeys<string, Record<string, ApplicationNotification<string>>> = MappedEvents,\n> {\n\tpublic readonly eventEmitter = new EventEmitter<{\n\t\t// Reason: Needs any to make the typing work.\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t[key in Events<Extract<keyof T, string>>]: any;\n\t}>();\n\tprivate readonly storedNotifications = new Map<keyof T, T[keyof T][]>();\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\tpublic count<K extends keyof T>(notificationType: K): number {\n\t\tconst list = this.get(notificationType);\n\n\t\treturn list.length;\n\t}\n\n\tpublic add<K extends keyof T>(notification: T[K]): void {\n\t\tconst storedNotifications = this.storedNotifications.get(notification.event);\n\t\tif (storedNotifications?.some((storedNotification) => storedNotification.guid === notification.guid)) return;\n\n\t\tthis.storedNotifications.set(notification.event, [...(this.storedNotifications.get(notification.event) || []), notification]);\n\t\tthis.eventEmitter.emit(this.convertTypeToEvent(notification.event, EventType.Add), notification);\n\t}\n\n\tpublic remove<K extends keyof T>(notification: T[K]): void {\n\t\tconst notifications = this.storedNotifications.get(notification.event);\n\t\tif (notifications) {\n\t\t\tnotifications.splice(notifications.indexOf(notification), 1);\n\t\t\tthis.eventEmitter.emit(this.convertTypeToEvent(notification.event, EventType.Remove), notification);\n\t\t}\n\t}\n\n\tpublic isAdded<K extends keyof T>(notification: T[K]): boolean {\n\t\tconst notifications = this.storedNotifications.get(notification.event);\n\t\tif (notifications == null) return false;\n\n\t\treturn notifications.indexOf(notification) !== -1;\n\t}\n\n\tpublic get<K extends keyof T>(notificationType: K): T[K][] {\n\t\treturn (this.storedNotifications.get(notificationType) as T[K][]) || [];\n\t}\n\n\tprivate convertTypeToEvent(str: string, eventType: EventType): Events<Extract<keyof T, string>> {\n\t\tfunction upperCase<K extends string | EventType>(str: K): `${Capitalize<K>}` {\n\t\t\treturn (str.charAt(0).toUpperCase() + str.slice(1)) as `${Capitalize<K>}`;\n\t\t}\n\n\t\treturn `on${upperCase(eventType)}${upperCase(str)}` as Events<Extract<keyof T, string>>;\n\t}\n}\n","import { BadgeNumber, Icon, IconDictionary } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { useCountedIssues } from '@feature/issues/use_counted_issues';\nimport { Link, useLocation } from 'react-router-dom';\nimport styled from 'styled-components';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport { useState } from 'react';\nimport { useUser } from '@application/authentication/use_user';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { UnitService } from '@application/unit.service';\n\nconst StyledNavRoot = styled.nav`\n\tdisplay: flex;\n\n\t${tokens.breakpointQuery.large} {\n\t\tflex-direction: column;\n\t\tgap: ${tokens.spacing.x2};\n\t}\n\n\t&[data-variant='shell-3'] {\n\t\t${tokens.breakpointQuery.large} {\n\t\t\tflex-direction: row;\n\t\t\tgap: ${tokens.spacing.x2};\n\t\t}\n\t}\n`;\n\nconst StyledButton = styled(motion.li)`\n\tflex-direction: column;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\twidth: 50px;\n\theight: 50px;\n\tborder-radius: 50%;\n\tpadding: 0 8px;\n\tposition: relative;\n\n\t.iconArea {\n\t\tposition: relative;\n\n\t\t& ._icon {\n\t\t\ttransition: scale 75ms ease-in;\n\t\t}\n\t}\n\n\tspan {\n\t\tfont: ${tokens.text.label.xSmallRegular};\n\t\twhite-space: nowrap;\n\t}\n\n\t& .badge {\n\t\tposition: absolute;\n\t\ttop: -10px;\n\t\tright: -10px;\n\t}\n\n\t&[data-is-brand='true'] {\n\t\tcolor: ${tokens.color.content.mutedBrand};\n\t}\n\n\t&[data-is-selected='true'] {\n\t\tcolor: ${tokens.color.content.interactive};\n\n\t\t${tokens.breakpointQuery.large} {\n\t\t\tcolor: ${tokens.color.content.brand};\n\t\t}\n\t}\n\n\t${tokens.breakpointQuery.large} {\n\t\theight: unset;\n\t\twidth: unset;\n\t\tflex-direction: row;\n\t\tjustify-content: start;\n\t\tgap: ${tokens.size.x2};\n\t\tmin-height: ${tokens.size.x6};\n\t\tborder-radius: ${tokens.borderRadius.medium};\n\t\ttransition: all 75ms ease-in;\n\n\t\tspan {\n\t\t\tfont: ${tokens.text.label.regular};\n\t\t\tdisplay: inline-flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tjustify-content: space-between;\n\t\t\ttransition: color 150ms ease-in-out;\n\n\t\t\t/*\n\t\t\t\tTo avoid layout shift, this pseudo-element is added.\n\t\t\t*/\n\t\t\t&::after {\n\t\t\t\tcontent: attr(data-text);\n\t\t\t\tcontent: attr(data-text) / '';\n\t\t\t\theight: 0;\n\t\t\t\tvisibility: hidden;\n\t\t\t\toverflow: hidden;\n\t\t\t\tuser-select: none;\n\t\t\t\tpointer-events: none;\n\t\t\t\tfont: ${tokens.text.label.semiBold};\n\n\t\t\t\t@media speech {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground-color: rgba(111, 111, 111, 0.07);\n\t\t\twebkit-backdrop-filter: blur(50px);\n\t\t\tbackdrop-filter: blur(50px);\n\n\t\t\t& .iconArea ._icon {\n\t\t\t\tscale: 1.1;\n\t\t\t\trotate: 2deg;\n\t\t\t}\n\t\t}\n\n\t\t&[data-is-selected='true'] {\n\t\t\tspan {\n\t\t\t\tfont: ${tokens.text.label.semiBold};\n\t\t\t}\n\t\t}\n\t}\n`;\n\nfunction NavItemVisits() {\n\tconst countedIssues = useCountedIssues(['ongoing', 'completed']);\n\n\treturn <NavItem to='/visits' icon='archive' label={withTranslation('Component.Nav.PatientCases')} countedIssues={countedIssues} />;\n}\n\nfunction NavItemHome() {\n\treturn <NavItem to='/home' icon='house' label={withTranslation('Component.Nav.Home')} />;\n}\n\nfunction NavItemBrowse() {\n\tconst universalConfig = useResolve(UniversalConfig);\n\tconst unitService = useResolve(UnitService);\n\n\tlet to: string;\n\tlet label: string;\n\tif (universalConfig.recentlyVisitedReceptionId.value != null) {\n\t\tconst unit = unitService.getUnitNodeInTreeByReceptionId(universalConfig.recentlyVisitedReceptionId.value);\n\n\t\tto = unit.routeWithoutLicenceholder;\n\t\tlabel = unit.name;\n\t} else {\n\t\tto = '/browse';\n\t\tlabel = withTranslation('Component.Nav.Browse');\n\t}\n\n\treturn <NavItem to={to} icon='treeChart' label={label} />;\n}\n\nfunction NavItemUser() {\n\tconst user = useUser();\n\tif (user != null) return <NavItem to='/settings/my-account' icon='user' label={user.commonName} />;\n\n\treturn <NavItem to='/sign-in' icon='user' label={withTranslation('Common.Button.SignIn')} />;\n}\n\ninterface NavItemProps {\n\tto: string;\n\ticon: keyof IconDictionary;\n\tlabel: string;\n\tcountedIssues?: number;\n\tonBrand?: boolean;\n}\n\nfunction NavItem(props: NavItemProps) {\n\tconst countedIssues = props.countedIssues ?? 0;\n\tconst location = useLocation();\n\tconst [isHovering, _] = useState(false);\n\n\treturn (\n\t\t<StyledButton data-is-brand={props.onBrand} data-is-selected={location.pathname === props.to} as={Link} to={props.to}>\n\t\t\t<div className='iconArea'>\n\t\t\t\t<Icon type={props.icon} className='_icon' />\n\t\t\t\t{countedIssues > 0 ? (\n\t\t\t\t\t<div className='badge'>\n\t\t\t\t\t\t<BadgeNumber variant='brandLight' label='Notiser' value={countedIssues} size='medium' />\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</div>\n\t\t\t<span data-text={props.label}>{props.label}</span>\n\n\t\t\t<AnimatePresence mode='popLayout' initial={false}>\n\t\t\t\t{isHovering ? (\n\t\t\t\t\t<motion.div\n\t\t\t\t\t\ttransition={{\n\t\t\t\t\t\t\ttype: 'spring',\n\t\t\t\t\t\t\tstiffness: 100,\n\t\t\t\t\t\t\tdamping: 10,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tinitial={{ opacity: 0, scale: 0.97 }}\n\t\t\t\t\t\tanimate={{ opacity: 1, scale: 1 }}\n\t\t\t\t\t\texit={{ opacity: 0, scale: 0.97 }}\n\t\t\t\t\t/>\n\t\t\t\t) : null}\n\t\t\t</AnimatePresence>\n\t\t</StyledButton>\n\t);\n}\n\nexport const Nav = {\n\tRoot: (p: React.PropsWithChildren) => <>{p.children}</>,\n\tContent: StyledNavRoot,\n\tItemHome: NavItemHome,\n\tItemBrowse: NavItemBrowse,\n\tItemVisits: NavItemVisits,\n\tItemUser: NavItemUser,\n\tItem: NavItem,\n} as const;\n","import { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport { styled } from 'styled-components';\nimport { Nav } from './nav.components';\n\ninterface Props {}\n\nconst StyledToolBar = styled(Nav.Content)`\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-self: center;\n\tposition: fixed;\n\tgap: ${tokens.spacing.x1};\n\tbottom: 0;\n\tpadding: 8px;\n\twidth: 100%;\n\tjustify-content: space-evenly;\n\tz-index: 1;\n\n\t&:after {\n\t\tcontent: '';\n\t\tborder: 1px solid ${primitiveColorTokens.primary[200]};\n\t\tborder-bottom: none;\n\t\tborder-top-right-radius: 5px;\n\t\tborder-top-left-radius: 5px;\n\t\tmargin: 0 -1px;\n\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tz-index: -1;\n\n\t\t--extended-by: 150px;\n\t\tbottom: calc(-1 * var(--extended-by));\n\t\ttop: -1px;\n\n\t\t--cutoff: calc(100% - var(--extended-by));\n\n\t\t-webkit-mask-image: linear-gradient(to bottom, black 0, black var(--cutoff), transparent var(--cutoff));\n\n\t\t--blur: 15px;\n\t\tbackdrop-filter: blur(var(--blur));\n\t\t-webkit-backdrop-filter: blur(var(--blur));\n\n\t\tbackground: linear-gradient(180deg, #fff 10%, transparent 100%);\n\n\t\tuser-select: none;\n\n\t\t${tokens.breakpointQuery.small} {\n\t\t\tborder: 0;\n\t\t}\n\t}\n\n\t/* ${tokens.breakpointQuery.medium} {\n\t\tmargin-bottom: 40px;\n\t\tmax-width: 400px;\n\t\tborder-radius: 999px;\n\t\toverflow: hidden;\n\t\tborder: 1px solid ${primitiveColorTokens.primary[200]};\n\t} */\n`;\n\nexport function ToolBar(_: Props) {\n\treturn (\n\t\t<Nav.Root>\n\t\t\t<StyledToolBar>\n\t\t\t\t<Nav.ItemBrowse />\n\t\t\t\t<Nav.ItemHome />\n\t\t\t\t<Nav.ItemVisits />\n\t\t\t</StyledToolBar>\n\t\t</Nav.Root>\n\t);\n}\n","import { Fragment, Ref, forwardRef, useRef } from 'react';\nimport { useMotionValueEvent, useScroll } from 'framer-motion';\nimport { Link } from 'react-router-dom';\nimport { AspectRatio, IconButton, Text } from '@cellula/react';\nimport { styled } from 'styled-components';\nimport { clamp } from '@cortex-shim/clamp';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { useResolve, useService } from '@visiba-cortex/instantiation';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { RouterService } from '@cortex-shim/router.service';\n\nconst StyledNavigationBar = styled.div`\n\tdisplay: flex;\n\tpadding: 16px 22px;\n\tposition: fixed;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tz-index: 1;\n\n\t&:after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tz-index: -1;\n\n\t\t--extended-by: 100px;\n\t\tbottom: calc(-1 * var(--extended-by));\n\t\ttop: -1px;\n\n\t\t--cutoff: calc(100% - var(--extended-by));\n\n\t\t-webkit-mask-image: linear-gradient(to bottom, black 0, black var(--cutoff), transparent var(--cutoff));\n\n\t\t--blur: 15px;\n\t\tbackdrop-filter: blur(var(--blur));\n\t\t-webkit-backdrop-filter: blur(var(--blur));\n\n\t\tbackground: linear-gradient(180deg, var(--bg-page-color) 10%, transparent 100%);\n\n\t\tuser-select: none;\n\t\tpointer-events: none;\n\n\t\t${tokens.breakpointQuery.large} {\n\t\t\tbackground: linear-gradient(180deg, #fff 10%, transparent 100%);\n\t\t}\n\t}\n\n\t&:before {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\theight: 1px;\n\t\topacity: var(--_opacity, 0);\n\t\tbackground: rgba(71, 51, 51, 0.06);\n\n\t\t${tokens.breakpointQuery.large} {\n\t\t\topacity: 1;\n\t\t}\n\t}\n`;\n\nconst StyledInner = styled.div`\n\talign-items: center;\n\tjustify-content: space-between;\n\tdisplay: flex;\n\twidth: 100%;\n\tmax-width: 1532px;\n`;\n\nfunction NavigationBar(\n\tprops: React.PropsWithChildren<{\n\t\ttitle?: string;\n\t}>,\n\t__: Ref<HTMLDivElement>,\n) {\n\tconst universalConfig = useResolve(UniversalConfig);\n\n\tconst ref = useRef<HTMLDivElement>(null);\n\tconst { scrollY } = useScroll();\n\tuseMotionValueEvent(scrollY, 'change', (latest) => {\n\t\tref.current?.style.setProperty('--_opacity', clamp(0, latest / 100, 1).toString());\n\t});\n\n\tconst routerService = useService(RouterService);\n\n\treturn (\n\t\t<Fragment>\n\t\t\t<StyledNavigationBar ref={ref}>\n\t\t\t\t<StyledInner>\n\t\t\t\t\t<Link to='/'>\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\twidth: 48,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<AspectRatio.Root ratio={1.6}>\n\t\t\t\t\t\t\t\t<AspectRatio.Img\n\t\t\t\t\t\t\t\t\tsrc={universalConfig.logo}\n\t\t\t\t\t\t\t\t\talt=''\n\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\tobjectFit: 'contain',\n\t\t\t\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t\t\t\t\t\tborderRadius: 'var(--radius-2)',\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</AspectRatio.Root>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</Link>\n\n\t\t\t\t\t{props.title ? <Text variant='bodySemiBold'>{props.title}</Text> : <div />}\n\n\t\t\t\t\t<IconButton\n\t\t\t\t\t\ticon='user'\n\t\t\t\t\t\tvariant='neutral'\n\t\t\t\t\t\tsize='medium'\n\t\t\t\t\t\ttext=''\n\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\trouterService.navigateByUrl('/settings');\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t</StyledInner>\n\t\t\t</StyledNavigationBar>\n\t\t</Fragment>\n\t);\n}\n\nconst _NavigationBar = forwardRef(NavigationBar) as typeof NavigationBar;\nexport { _NavigationBar as NavigationBar };\n","export function clamp(min: number, value: number, max: number): number {\n\tif (min > max) throw new Error('min can not be greater than max');\n\n\treturn Math.min(max, Math.max(min, value));\n}\n","import styled from 'styled-components';\nimport { useEffect, useState } from 'react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Shimmer } from './new_shimmer.component';\nimport { type QRCodeToDataURLOptions } from 'qrcode';\nimport { Button, Flex, Icon, Text } from '@cellula/react';\nimport { withTranslation } from '@application/i18n/with_translation';\n\nconst QR_CODE_OPTIONS = {\n\twidth: 200,\n\tmargin: 0,\n\terrorCorrectionLevel: 'L',\n} satisfies QRCodeToDataURLOptions;\n\ninterface Props {\n\tqrCode: string | null;\n}\n\nconst StyledQrCodeWrapper = styled.div`\n\twidth: 200px;\n\theight: 200px;\n\tbox-sizing: content-box;\n\tborder-radius: ${tokens.borderRadius.large};\n\tbackground-color: #fff;\n`;\n\nlet qrCodeModule: Nullable<typeof import('qrcode')> = null;\nlet qrCodeModulePromise: Nullable<Promise<typeof import('qrcode')>> = null;\n\nasync function getUrlB64Image(str: string): Promise<string> {\n\tif (qrCodeModule == null) {\n\t\tqrCodeModulePromise = qrCodeModulePromise ?? import('qrcode');\n\t\tqrCodeModule = await qrCodeModulePromise;\n\t\tqrCodeModulePromise = null;\n\t}\n\n\treturn qrCodeModule.toDataURL(str, QR_CODE_OPTIONS);\n}\n\nexport function QrCode({ qrCode }: Props) {\n\tconst [qrImage, setQrImage] = useState<string>();\n\tconst [generationFailed, setGenerationFailed] = useState(false);\n\n\tfunction regenerateQrCode(qrCode: string) {\n\t\tsetGenerationFailed(false);\n\t\tsetQrImage(undefined);\n\n\t\tgetUrlB64Image(qrCode)\n\t\t\t.then((url) => {\n\t\t\t\tsetQrImage(url);\n\t\t\t})\n\t\t\t.catch(() => {\n\t\t\t\tsetQrImage(undefined);\n\t\t\t\tsetGenerationFailed(true);\n\t\t\t});\n\t}\n\n\tuseEffect(() => {\n\t\tif (qrCode == null) return;\n\n\t\tconst ac = new AbortController();\n\n\t\tgetUrlB64Image(qrCode)\n\t\t\t.then((url) => {\n\t\t\t\tif (ac.signal.aborted) return;\n\n\t\t\t\tsetQrImage(url);\n\t\t\t})\n\t\t\t.catch(() => {\n\t\t\t\tsetQrImage(undefined);\n\t\t\t\tsetGenerationFailed(true);\n\t\t\t});\n\n\t\treturn () => {\n\t\t\tac.abort();\n\t\t};\n\t}, [qrCode]);\n\n\tconst code =\n\t\tqrImage != null ? (\n\t\t\t<img\n\t\t\t\theight={200}\n\t\t\t\twidth={200}\n\t\t\t\tsrc={qrImage}\n\t\t\t\talt={withTranslation('Component.QRCode.AltText')}\n\t\t\t\tstyle={{\n\t\t\t\t\tpointerEvents: 'none',\n\t\t\t\t}}\n\t\t\t/>\n\t\t) : (\n\t\t\t<QRSkeleton />\n\t\t);\n\tconst failed = generationFailed ? (\n\t\t<Flex\n\t\t\talign='center'\n\t\t\tjustify='center'\n\t\t\tgap={tokens.spacing.x1_5}\n\t\t\tstyle={{\n\t\t\t\theight: '100%',\n\t\t\t\twidth: '100%',\n\t\t\t\tcolor: tokens.color.danger.content,\n\t\t\t\tboxSizing: 'border-box',\n\t\t\t\ttextAlign: 'center',\n\t\t\t}}\n\t\t>\n\t\t\t<Icon type='warning' size='large' />\n\t\t\t<Text variant='labelSmallRegular'>{withTranslation('Component.QRCode.GenericError')}</Text>\n\t\t\t<Button\n\t\t\t\tvariant='danger'\n\t\t\t\tsize='xSmall'\n\t\t\t\tonClick={() => {\n\t\t\t\t\tif (qrCode == null) return;\n\n\t\t\t\t\tregenerateQrCode(qrCode);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{withTranslation('Component.QRCode.Retry')}\n\t\t\t</Button>\n\t\t</Flex>\n\t) : null;\n\n\treturn <StyledQrCodeWrapper>{failed != null ? failed : code}</StyledQrCodeWrapper>;\n}\n\nfunction QRSkeleton() {\n\treturn (\n\t\t<div\n\t\t\tstyle={{\n\t\t\t\tpadding: '16px',\n\t\t\t\theight: '100%',\n\t\t\t\twidth: '100%',\n\t\t\t\tposition: 'relative',\n\t\t\t}}\n\t\t>\n\t\t\t<Shimmer cornerRadius={8} width='100%' height='100%' />\n\t\t</div>\n\t);\n}\n","import { Outlet } from 'react-router';\nimport { ToolBar } from './tab_bar.component';\nimport { NavigationBar } from './navigation_bar.component';\nimport {\n\tBox,\n\tBreakPoints,\n\tButton,\n\tDialogModal,\n\tFlex,\n\tTextLink,\n\tTooltip,\n\tuseBreakpoint,\n\tText,\n\tInputSelect,\n\tFlag,\n\tDivider,\n} from '@cellula/react';\nimport { Logo } from './logo.component';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport styled from 'styled-components';\nimport { Nav } from './nav.components';\nimport { TopBar } from './top_bar.component';\nimport { Injectable, useResolveController, ControllerProtocol, useResolve } from '@visiba-cortex/instantiation';\nimport { computed, signal, useSignal } from '@preact/signals-react';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport { Title } from './title.component';\nimport * as ScrollArea from '@radix-ui/react-scroll-area';\nimport { Illustration } from './illustration/illustration.component';\nimport { Link } from 'react-router-dom';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { Auth } from '@feature/auth/auth.component';\nimport { useUser } from '@application/authentication/use_user';\nimport { applicationLocalStorage } from '@application/application_storage_local';\nimport { DEFAULT_LAYOUT_VARIANT } from '../constants';\nimport { ConsentTrigger } from './consent/consent_trigger.component';\nimport { QrCode } from './qr_code.component';\nimport { GeneralApiService } from '@api_patient/general_api.service';\nimport { AuthService } from '@application/authentication/auth.service';\nimport { UserSettingsService } from '@feature/settings/user_settings.service';\nimport { I18nAndL10n } from '@application/i18n/mod';\nimport { localeToCountry } from '@module/locale_to_country_code';\nimport { SignOutButton } from './sign_out_button.component';\nimport { AndroidBadge, IOSBadge } from './app_badge.component';\n\nexport function OutletPage() {\n\treturn (\n\t\t<Flex\n\t\t\tgrow={1}\n\t\t\tstyle={{\n\t\t\t\theight: '100%',\n\t\t\t\tminHeight: '100%',\n\t\t\t}}\n\t\t>\n\t\t\t<TopBar.Root>\n\t\t\t\t<TopBar.Outlet />\n\t\t\t\t<StyledContainer>\n\t\t\t\t\t<Outlet />\n\t\t\t\t</StyledContainer>\n\t\t\t</TopBar.Root>\n\t\t</Flex>\n\t);\n}\n\nexport function OutletMain() {\n\tconst breakpoint = useBreakpoint();\n\n\tif (breakpoint === BreakPoints.Large) {\n\t\treturn <GoldenLayout key='golden' />;\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<ToolBar />\n\t\t\t<Outlet />\n\t\t</>\n\t);\n}\n\nexport function OutletPageNavigation() {\n\tconst breakpoint = useBreakpoint();\n\n\treturn (\n\t\t<>\n\t\t\t{breakpoint !== BreakPoints.Large ? <NavigationBar /> : null}\n\t\t\t<Outlet />\n\t\t</>\n\t);\n}\n\nconst StyledHeaderContainer = styled.header`\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\twidth: 250px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex-shrink: 0;\n\tpadding: ${tokens.size.x2};\n\tborder-right: 1px solid ${primitiveColorTokens.neutral[200]};\n\tgap: ${tokens.size.x4};\n\theight: 100%;\n\n\t&::before {\n\t\tdisplay: block;\n\t\tcontent: '';\n\t\tdisplay: flex;\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tbackground: linear-gradient(200deg, transparent 26%, ${primitiveColorTokens.primary['300']});\n\t\topacity: 0.5;\n\t\tpointer-events: none;\n\t\tz-index: 0;\n\t}\n`;\n\nconst StyledHeaderContainerDisplacement = styled.div`\n\twidth: 250px;\n\tmax-height: 100vh;\n`;\n\nconst StyledContainer = styled.div`\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex-grow: 1;\n\tpadding: ${tokens.spacing.x2};\n\n\t${tokens.breakpointQuery.small} {\n\t\tpadding: ${tokens.spacing.x3} ${tokens.spacing.x4} ${tokens.spacing.x4};\n\t\tmax-width: 580px;\n\t\twidth: 100%;\n\t\tmargin: 0 auto;\n\t}\n`;\n\nconst StyledWebsiteMain = styled.main`\n\tdisplay: flex;\n\tflex-direction: column;\n\tmin-height: calc(100vh - 150px);\n`;\n\nconst StyledHeaderShell3 = styled.header`\n\tposition: sticky;\n\ttop: 0;\n\tbox-shadow: ${tokens.elevation.skim};\n\tborder-bottom: 1px solid ${tokens.color.border};\n\tz-index: 1;\n\n\t&:after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tz-index: -1;\n\n\t\t--extended-by: 100px;\n\t\tbottom: calc(-1 * var(--extended-by));\n\t\ttop: -1px;\n\n\t\t--cutoff: calc(100% - var(--extended-by));\n\n\t\tmask-image: linear-gradient(to bottom, black 0, black var(--cutoff), transparent var(--cutoff));\n\t\t-webkit-mask-image: linear-gradient(to bottom, black 0, black var(--cutoff), transparent var(--cutoff));\n\n\t\t--blur: 15px;\n\t\tbackdrop-filter: blur(var(--blur));\n\t\t-webkit-backdrop-filter: blur(var(--blur));\n\n\t\tbackground: linear-gradient(180deg, #fff 15%, transparent 100%);\n\n\t\tuser-select: none;\n\t\tpointer-events: none;\n\t}\n`;\n\nconst VARIANT = applicationLocalStorage.get('shell-variant') ?? DEFAULT_LAYOUT_VARIANT;\n\nfunction GoldenLayout() {\n\tconst user = useUser();\n\n\tif (VARIANT === 'shell-3') {\n\t\treturn (\n\t\t\t<Flex\n\t\t\t\tstyle={{\n\t\t\t\t\tposition: 'relative',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<StyledHeaderShell3>\n\t\t\t\t\t<Flex\n\t\t\t\t\t\tdirection='row'\n\t\t\t\t\t\tjustify='space-between'\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\tpadding: `${tokens.size.x2}`,\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Flex direction='row' align='center' gap={tokens.size.x4}>\n\t\t\t\t\t\t\t<Logo />\n\n\t\t\t\t\t\t\t<Nav.Content data-variant={VARIANT}>\n\t\t\t\t\t\t\t\t<Nav.ItemHome />\n\t\t\t\t\t\t\t\t<Nav.ItemBrowse />\n\t\t\t\t\t\t\t\t<Nav.ItemVisits />\n\t\t\t\t\t\t\t</Nav.Content>\n\t\t\t\t\t\t</Flex>\n\n\t\t\t\t\t\t<Flex direction='row' align='center' gap={tokens.size.x2}>\n\t\t\t\t\t\t\t{user != null ? <Nav.ItemUser /> : null}\n\t\t\t\t\t\t\t{user != null ? (\n\t\t\t\t\t\t\t\t<SignOutButton />\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<Auth.SignInSheet\n\t\t\t\t\t\t\t\t\treturnUrl='/'\n\t\t\t\t\t\t\t\t\ttrigger={<Button variant='primary'>{withTranslation('Common.Button.SignIn')}</Button>}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</Flex>\n\t\t\t\t</StyledHeaderShell3>\n\n\t\t\t\t<StyledWebsiteMain>\n\t\t\t\t\t<Outlet />\n\t\t\t\t</StyledWebsiteMain>\n\n\t\t\t\t<Footer />\n\t\t\t</Flex>\n\t\t);\n\t}\n\n\tif (VARIANT === 'shell-2') {\n\t\treturn (\n\t\t\t<Flex direction='row' grow='1'>\n\t\t\t\t<StyledHeaderContainerDisplacement>\n\t\t\t\t\t<StyledHeaderContainer>\n\t\t\t\t\t\t<Logo />\n\n\t\t\t\t\t\t<Nav.Root>\n\t\t\t\t\t\t\t<Flex gap={tokens.size.x1}>\n\t\t\t\t\t\t\t\t<Nav.Content>\n\t\t\t\t\t\t\t\t\t<Nav.ItemHome />\n\t\t\t\t\t\t\t\t\t<Nav.ItemVisits />\n\t\t\t\t\t\t\t\t\t<Nav.ItemBrowse />\n\t\t\t\t\t\t\t\t</Nav.Content>\n\t\t\t\t\t\t\t</Flex>\n\n\t\t\t\t\t\t\t<Flex grow='1' justify='end'>\n\t\t\t\t\t\t\t\t<Nav.Item icon='menu' label='Mer' to='/settings' onBrand />\n\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t</Nav.Root>\n\t\t\t\t\t</StyledHeaderContainer>\n\t\t\t\t</StyledHeaderContainerDisplacement>\n\n\t\t\t\t<Flex grow='1' as='main'>\n\t\t\t\t\t<Outlet />\n\t\t\t\t</Flex>\n\t\t\t</Flex>\n\t\t);\n\t}\n\n\treturn (\n\t\t<StyledAltLayout key='styledAltlayout'>\n\t\t\t<Floaters key='floaters' />\n\t\t</StyledAltLayout>\n\t);\n}\n\nfunction Footer() {\n\tconst universalConfig = useResolve(UniversalConfig);\n\tconst generalApiService = useResolve(GeneralApiService);\n\tconst authService = useResolve(AuthService);\n\tconst userSettingsService = useResolve(UserSettingsService);\n\n\tfunction handleOnValueChange(languageCode: string) {\n\t\tI18nAndL10n.updateLangCode(languageCode);\n\n\t\tlocalStorage.setItem('languageCode', languageCode);\n\t\tuserSettingsService.updateSettings({\n\t\t\tselectedLanguage: I18nAndL10n.convertExternalLocaleToAvailableLocale(languageCode),\n\t\t});\n\t\tif (authService.isSignedIn()) {\n\t\t\tgeneralApiService.setlanguage(languageCode).then(() => {\n\t\t\t\twindow.location.reload();\n\t\t\t});\n\t\t} else {\n\t\t\twindow.location.reload();\n\t\t}\n\t}\n\n\treturn (\n\t\t<Flex\n\t\t\tas='footer'\n\t\t\tstyle={{\n\t\t\t\tborderTop: `1px solid ${tokens.color.border}`,\n\t\t\t\tbackground: tokens.color.bg.surfaceBrand,\n\t\t\t\tpadding: `${tokens.spacing.x3}`,\n\t\t\t}}\n\t\t>\n\t\t\t<Flex\n\t\t\t\tdirection='row'\n\t\t\t\tstyle={{\n\t\t\t\t\tmargin: '0 auto',\n\t\t\t\t\twidth: '100%',\n\t\t\t\t\tmaxWidth: '1200px',\n\t\t\t\t\tpadding: `${tokens.spacing.x3} ${tokens.spacing.x3}`,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Flex basis='33%' align='start' grow={1}>\n\t\t\t\t\t<Flex align='start' justify='start' fluid='directional'>\n\t\t\t\t\t\t<InputSelect.Root\n\t\t\t\t\t\t\tvalue={I18nAndL10n.convertExternalLocaleToAvailableLocale(universalConfig.selectedLanguageCode.value)}\n\t\t\t\t\t\t\tlabel={withTranslation('PW.Common.ChooseLanguage')}\n\t\t\t\t\t\t\tplaceholder={withTranslation('Common.ChangeLanguage')}\n\t\t\t\t\t\t\tonValueChange={handleOnValueChange}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{universalConfig.availableLanguages.map((x) => (\n\t\t\t\t\t\t\t\t<InputSelect.Item key={x} value={I18nAndL10n.convertExternalLocaleToAvailableLocale(x)}>\n\t\t\t\t\t\t\t\t\t<Flex direction='row' gap={tokens.size.x1} align='center'>\n\t\t\t\t\t\t\t\t\t\t<Flag flag={localeToCountry(x)} size='medium' /> {x}\n\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t</InputSelect.Item>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</InputSelect.Root>\n\t\t\t\t\t</Flex>\n\t\t\t\t</Flex>\n\t\t\t\t<Flex basis='33%' align='center' grow={1}>\n\t\t\t\t\t<Flex align='start' justify='end' fluid='directional' gap={tokens.size.x1_5}>\n\t\t\t\t\t\t<TextLink size='small' href={universalConfig.legal.pp} target='_blank' icon='linkOut' iconPosition='trailing'>\n\t\t\t\t\t\t\t{withTranslation('PW.Component.Footer.PP')}\n\t\t\t\t\t\t</TextLink>\n\n\t\t\t\t\t\t<TextLink size='small' href={universalConfig.legal.tos} target='_blank' icon='linkOut' iconPosition='trailing'>\n\t\t\t\t\t\t\t{withTranslation('PW.Component.Footer.ToS')}\n\t\t\t\t\t\t</TextLink>\n\n\t\t\t\t\t\t<TextLink\n\t\t\t\t\t\t\tsize='small'\n\t\t\t\t\t\t\thref={universalConfig.alias + '/cookie-policy'}\n\t\t\t\t\t\t\ttarget='_blank'\n\t\t\t\t\t\t\ticon='linkOut'\n\t\t\t\t\t\t\ticonPosition='trailing'\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{withTranslation('Component.Footer.CookiePolicy')}\n\t\t\t\t\t\t</TextLink>\n\n\t\t\t\t\t\t<ConsentTrigger />\n\t\t\t\t\t</Flex>\n\t\t\t\t</Flex>\n\t\t\t\t<Flex basis='33%' align='end' grow={1}>\n\t\t\t\t\t<DialogModal.Root\n\t\t\t\t\t\ttrigger={\n\t\t\t\t\t\t\t<Button variant='secondary' size='xSmall'>\n\t\t\t\t\t\t\t\t{withTranslation('PW.Component.Footer.DownloadApp.Title')}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t<DialogModal.Title>\n\t\t\t\t\t\t\t{withTranslation('Component.AppQRDownload.Title', {\n\t\t\t\t\t\t\t\tappName: universalConfig.alias,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</DialogModal.Title>\n\t\t\t\t\t\t<DialogModal.Content>\n\t\t\t\t\t\t\t<Flex\n\t\t\t\t\t\t\t\tgap={tokens.size.x4}\n\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\tmargin: `${tokens.spacing.x3} 0`,\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Flex align='center' gap={tokens.size.x2}>\n\t\t\t\t\t\t\t\t\t<Text.p variant='bodyRegular' color={tokens.color.content.default}>\n\t\t\t\t\t\t\t\t\t\t{withTranslation('Component.AppQRDownload.Scan')}\n\t\t\t\t\t\t\t\t\t</Text.p>\n\t\t\t\t\t\t\t\t\t<Flex align='center'>\n\t\t\t\t\t\t\t\t\t\t<QrCode qrCode={location.origin + universalConfig.alias + '/app-download'} />\n\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t</Flex>\n\n\t\t\t\t\t\t\t\t<Divider decorative offset={tokens.size.x2} />\n\n\t\t\t\t\t\t\t\t<Flex fluid='horizontal' align='center' gap={tokens.size.x2}>\n\t\t\t\t\t\t\t\t\t<Text.h3 variant='bodyRegular'>{withTranslation('Component.AppQRDownload.Stores')}</Text.h3>\n\n\t\t\t\t\t\t\t\t\t<Flex direction='row' gap={tokens.size.x0_25} justify='center'>\n\t\t\t\t\t\t\t\t\t\t{universalConfig.appConfig?.androidPackageId != null ? (\n\t\t\t\t\t\t\t\t\t\t\t<Link\n\t\t\t\t\t\t\t\t\t\t\t\ttarget='__blank'\n\t\t\t\t\t\t\t\t\t\t\t\tto={`https://play.app.goo.gl/?link=https://play.google.com/store/apps/details?id=${universalConfig.appConfig.androidPackageId}`}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<AndroidBadge />\n\t\t\t\t\t\t\t\t\t\t\t</Link>\n\t\t\t\t\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t\t\t\t\t{universalConfig.appConfig?.appStoreId != null ? (\n\t\t\t\t\t\t\t\t\t\t\t<Link target='__blank' to={`https://itunes.apple.com/se/app/id${universalConfig.appConfig.appStoreId}`}>\n\t\t\t\t\t\t\t\t\t\t\t\t<IOSBadge />\n\t\t\t\t\t\t\t\t\t\t\t</Link>\n\t\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t</DialogModal.Content>\n\t\t\t\t\t</DialogModal.Root>\n\t\t\t\t</Flex>\n\t\t\t</Flex>\n\t\t</Flex>\n\t);\n}\n\nconst StyledAltLayout = styled.div`\n\tdisplay: flex;\n\tflex-grow: 1;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbackground: #fafbfb;\n\tposition: relative;\n\n\t--shadow-color: 248deg 9% 69%;\n\t--shadow-color: 218deg 19% 71%;\n\t--shadow-color: 212deg 25% 65%;\n\t--shadow-elevation-low: 0px 0.3px 0.4px hsl(var(--shadow-color) / 0.16), 0px 0.4px 0.5px -0.8px hsl(var(--shadow-color) / 0.21),\n\t\t0px 0.9px 1.1px -1.6px hsl(var(--shadow-color) / 0.26);\n\t--shadow-elevation-medium: 0px 0.3px 0.4px hsl(var(--shadow-color) / 0.16), 0px 0.9px 1.1px -0.5px hsl(var(--shadow-color) / 0.21),\n\t\t0px 2.1px 2.6px -1.1px hsl(var(--shadow-color) / 0.25), 0.1px 4.7px 5.9px -1.6px hsl(var(--shadow-color) / 0.29);\n\t--shadow-elevation-high: 0px 0.3px 0.4px hsl(var(--shadow-color) / 0.17), 0px 1.7px 2.1px -0.3px hsl(var(--shadow-color) / 0.2),\n\t\t0px 3.1px 3.9px -0.5px hsl(var(--shadow-color) / 0.23), 0.1px 5.1px 6.4px -0.8px hsl(var(--shadow-color) / 0.25),\n\t\t0.1px 8.1px 10.1px -1.1px hsl(var(--shadow-color) / 0.28), 0.2px 12.8px 16px -1.4px hsl(var(--shadow-color) / 0.3),\n\t\t0.3px 19.5px 24.4px -1.6px hsl(var(--shadow-color) / 0.33);\n\n\t&::before {\n\t\tdisplay: block;\n\t\tcontent: '';\n\t\tdisplay: flex;\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tbackground: linear-gradient(150deg, transparent 26%, ${primitiveColorTokens.primary['300']});\n\t\tpointer-events: none;\n\t\tz-index: 0;\n\t\topacity: 0.9;\n\t}\n\n\t&.stacked {\n\t\tscale: 0.9;\n\t\tborder-radius: 32px;\n\t\toverflow: hidden;\n\t\topacity: 0.5;\n\t}\n`;\n\nconst StyledHeader = styled(motion.header)`\n\twidth: 250px;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tbackground: #fcfcfc;\n\tborder-radius: 16px;\n\tbox-shadow: var(--shadow-elevation-medium);\n\toverflow: hidden;\n\tpadding: 8px 8px 8px;\n\tposition: relative;\n\tz-index: 0;\n\tgap: 16px;\n\n\t&::before {\n\t\tdisplay: block;\n\t\tcontent: '';\n\t\tdisplay: flex;\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tbackground: linear-gradient(200deg, transparent 26%, ${primitiveColorTokens.primary['300']});\n\t\topacity: 0.5;\n\t\tpointer-events: none;\n\t\tz-index: 0;\n\t\topacity: 0.5;\n\t}\n`;\n\nconst StyledNav = styled(motion.nav)`\n\tposition: relative;\n\twidth: 350px;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tbackground: #fcfcfc;\n\tborder-radius: 16px;\n\tbox-shadow: var(--shadow-elevation-medium);\n\toverflow: hidden;\n\tz-index: 0;\n`;\n\nconst StyledMain = styled(motion.main)`\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: column;\n\tbackground: #fcfcfc;\n\twidth: 924px;\n\theight: 100%;\n\tborder-radius: 16px;\n\tbox-shadow: var(--shadow-elevation-medium);\n\toverflow-y: auto;\n\tz-index: 0;\n`;\n\nconst StyledFooter = styled.footer`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: fixed;\n\tleft: 0;\n\tbottom: ${tokens.size.x4};\n\twidth: 100%;\n\tmargin: 0 auto;\n\tpadding: 0 ${tokens.size.x2};\n\tgap: ${tokens.size.x5};\n`;\n\nfunction Floaters() {\n\tconst controller = useResolveController(FloatersController);\n\tconst universalConfig = useResolve(UniversalConfig);\n\n\tconst x = useSignal(false);\n\n\treturn (\n\t\t<motion.div\n\t\t\tlayout\n\t\t\tclassName='stacked'\n\t\t\tstyle={{\n\t\t\t\tdisplay: 'flex',\n\t\t\t\tflexDirection: 'row',\n\t\t\t\tgap: '12px',\n\t\t\t\tjustifyContent: 'center',\n\t\t\t\tposition: 'fixed',\n\t\t\t\ttop: controller.pos.value.y,\n\t\t\t\tleft: controller.pos.value.x,\n\t\t\t\twidth: controller.pos.value.width,\n\t\t\t\theight: controller.pos.value.height,\n\t\t\t}}\n\t\t>\n\t\t\t<StyledHeader layout>\n\t\t\t\t<Nav.Root>\n\t\t\t\t\t<Logo />\n\t\t\t\t\t<Flex>\n\t\t\t\t\t\t<Nav.Content>\n\t\t\t\t\t\t\t<Nav.ItemHome />\n\t\t\t\t\t\t\t<Nav.ItemVisits />\n\t\t\t\t\t\t\t<Nav.ItemBrowse />\n\t\t\t\t\t\t\t<Nav.ItemUser />\n\t\t\t\t\t\t</Nav.Content>\n\t\t\t\t\t</Flex>\n\n\t\t\t\t\t<Flex grow='1' justify='end'>\n\t\t\t\t\t\t<Nav.Item icon='menu' label={withTranslation('Component.Nav.More')} to='/settings' onBrand />\n\t\t\t\t\t</Flex>\n\t\t\t\t</Nav.Root>\n\t\t\t</StyledHeader>\n\n\t\t\t<AnimatePresence mode='popLayout' initial={false}>\n\t\t\t\t{x.value ? (\n\t\t\t\t\t<StyledNav\n\t\t\t\t\t\tlayout\n\t\t\t\t\t\ttransition={{\n\t\t\t\t\t\t\tduration: 0.4,\n\t\t\t\t\t\t\ttype: 'tween',\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tinitial={{ translateX: 70, opacity: 0, rotateY: 90, scale: 0.97 }}\n\t\t\t\t\t\tanimate={{ translateX: 0, opacity: 1, rotateY: 0, scale: 1 }}\n\t\t\t\t\t\texit={{ translateX: 70, opacity: 0, rotateY: -90, scale: 0.97 }}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Flex\n\t\t\t\t\t\t\tas={ScrollArea.Root}\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<ScrollArea.Viewport\n\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t\t\t\t\tpadding: `${tokens.spacing.x4} ${tokens.spacing.x2}`,\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Title title='Inställningar' />\n\t\t\t\t\t\t\t</ScrollArea.Viewport>\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</StyledNav>\n\t\t\t\t) : null}\n\t\t\t</AnimatePresence>\n\n\t\t\t<StyledMain layout>\n\t\t\t\t<Outlet />\n\t\t\t</StyledMain>\n\n\t\t\t<StyledFooter>\n\t\t\t\t<TextLink size='small' as={Link} to='/my-account/about-us'>\n\t\t\t\t\t{withTranslation('Component.Footer.AboutUs')}\n\t\t\t\t</TextLink>\n\n\t\t\t\t<TextLink size='small' href={universalConfig.alias + '/privacy-policy'} target='_blank' icon='linkOut' iconPosition='trailing'>\n\t\t\t\t\t{withTranslation('Component.Footer.PP')}\n\t\t\t\t</TextLink>\n\n\t\t\t\t<TextLink\n\t\t\t\t\tsize='small'\n\t\t\t\t\thref={universalConfig.alias + '/terms-of-service'}\n\t\t\t\t\ttarget='_blank'\n\t\t\t\t\ticon='linkOut'\n\t\t\t\t\ticonPosition='trailing'\n\t\t\t\t>\n\t\t\t\t\t{withTranslation('Component.Footer.ToS')}\n\t\t\t\t</TextLink>\n\n\t\t\t\t<TextLink size='small' href={universalConfig.alias + '/cookie-policy'} target='_blank' icon='linkOut' iconPosition='trailing'>\n\t\t\t\t\t{withTranslation('Component.Footer.CookiePolicy')}\n\t\t\t\t</TextLink>\n\t\t\t</StyledFooter>\n\t\t</motion.div>\n\t);\n}\n\n@Injectable()\nclass FloatersController implements ControllerProtocol {\n\tpublic static ASPECT = 4 / 2;\n\n\tpublic width = signal(window.innerWidth);\n\tpublic height = signal(window.innerHeight);\n\n\tpublic pos = computed(() => {\n\t\tconst safeArea = this.safeArea();\n\n\t\treturn safeArea;\n\t});\n\n\twhenMount() {\n\t\twindow.addEventListener('resize', (_) => {\n\t\t\tthis.width.value = window.innerWidth;\n\t\t\tthis.height.value = window.innerHeight;\n\t\t});\n\t}\n\n\tprivate safeArea(): Boundary {\n\t\tconst windowHeight = this.height.value;\n\t\tconst windowWidth = this.width.value;\n\n\t\tlet footerHeight = 58;\n\n\t\tlet normalizeHeight = windowHeight - 32;\n\t\tif (this.height.value < 800 + footerHeight * 2) {\n\t\t\tnormalizeHeight = normalizeHeight - footerHeight;\n\t\t} else {\n\t\t\tfooterHeight = 0;\n\t\t}\n\n\t\tlet maxHeightConst = 800 / normalizeHeight;\n\t\tif (maxHeightConst >= 1) maxHeightConst = 1;\n\n\t\tconst maxHeight = normalizeHeight * maxHeightConst;\n\t\tconst newHeight = maxHeight;\n\t\tconst newWidth = newHeight * FloatersController.ASPECT;\n\n\t\tlet y = (windowHeight - newHeight) / 2 - footerHeight;\n\t\tif (y < 16) y = 16;\n\t\tconst x = (windowWidth - newWidth) / 2;\n\n\t\treturn { x, y, width: newWidth, height: newHeight };\n\t}\n}\n\ninterface Boundary {\n\tx: number;\n\ty: number;\n\twidth: number;\n\theight: number;\n}\n","import { createContext } from 'react';\n\ntype Stack = string[];\n\nexport interface ScreenContextState {\n\treadonly active: string | null;\n\treadonly screens: Set<string>;\n\treadonly protectedScreens: Set<string>;\n\treadonly screenStack: Readonly<Stack>;\n\treadonly target: string | undefined;\n\tactivate(link: string): void;\n\tdismiss(): void;\n}\n\nexport const ScreenContext = createContext<ScreenContextState>(undefined as unknown as ScreenContextState);\n","import { useContext } from 'react';\nimport { ScreenContext, ScreenContextState } from './_screen.context';\n\nexport function useScreenContext(): ScreenContextState {\n\tconst screenContext = useContext(ScreenContext);\n\tif (screenContext === undefined) {\n\t\tthrow new Error('useScreenContext must be used within a ScreenProvider');\n\t}\n\n\treturn screenContext;\n}\n","import { AutoFocus, Flex, Spacer, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Fragment, ReactNode } from 'react';\n\ninterface Props {\n\ttitle: ReactNode;\n\ttitleSize?: 'large' | 'small';\n\tdescription?: ReactNode | { __html: string };\n\tnoFocus?: boolean;\n}\n\nexport function Title({ title, titleSize = 'large', description, noFocus }: Props) {\n\tconst AutoFocusComp = noFocus ? Fragment : AutoFocus;\n\n\treturn (\n\t\t<Flex direction='column'>\n\t\t\t<AutoFocusComp>\n\t\t\t\t<Text.h1 variant={titleSize === 'large' ? 'headingLarge' : 'headingSmall'}>{title}</Text.h1>\n\t\t\t</AutoFocusComp>\n\n\t\t\t{description ? (\n\t\t\t\t<>\n\t\t\t\t\t<Spacer vertical={tokens.spacing.x1} />\n\t\t\t\t\t{typeof description === 'object' && description != null && '__html' in description ? (\n\t\t\t\t\t\t<Text.p variant='bodyRegular' dangerouslySetInnerHTML={description}>\n\t\t\t\t\t\t\t{null}\n\t\t\t\t\t\t</Text.p>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<Text.p variant='bodyRegular'>{(description as string) != null ? (description as string) : ''}</Text.p>\n\t\t\t\t\t)}\n\t\t\t\t</>\n\t\t\t) : null}\n\t\t</Flex>\n\t);\n}\n","import { BreakPoints, Button, Flex, IconButton, useBreakpoint } from '@cellula/react';\n\ninterface Props {\n\tonClick: (event: React.MouseEvent<HTMLButtonElement>) => void;\n\ttext: string;\n}\n\nexport function StepBack({ onClick, text }: Props): JSX.Element {\n\tconst isMobile = useBreakpoint(BreakPoints.Small);\n\n\treturn (\n\t\t<Flex shrink={0}>\n\t\t\t{isMobile ? (\n\t\t\t\t<IconButton variant='interactive' icon='arrowLeft' size='small' text={text} onClick={onClick} />\n\t\t\t) : (\n\t\t\t\t<Button variant='ghost' size='xSmall' icon='arrowLeft' onClick={onClick}>\n\t\t\t\t\t{text}\n\t\t\t\t</Button>\n\t\t\t)}\n\t\t</Flex>\n\t);\n}\n","import { tokens } from '@cellula/react-theme-patient';\nimport { signal } from '@preact/signals-react';\nimport { ControllerProtocol, Injectable, useResolveController, useResolve, NewContainer } from '@visiba-cortex/instantiation';\nimport { useEffect, useRef } from 'react';\nimport styled from 'styled-components';\nimport { RouterService } from '@cortex-shim/router.service';\nimport { clamp, useMotionValueEvent, useScroll } from 'framer-motion';\nimport { DialogAlert, Flex, Text, Spacer, Button, useBreakpoint, BreakPoints } from '@cellula/react';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { StepBack } from './step_back.component';\nimport { I18nAndL10n } from '@application/i18n/i18n_and_l10n';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\n\nfunction TopBarRoot(props: React.PropsWithChildren) {\n\treturn <NewContainer>{props.children}</NewContainer>;\n}\n\ninterface TopBarContentProps {\n\ttitle?: string;\n\tgoBack?: boolean | string;\n\tonAbort?: (() => void) | null;\n\tgoBackIntercept?: GoBackInterceptHandler;\n\tskipAbortDialog?: boolean;\n}\n\nfunction TopBarContent(props: TopBarContentProps) {\n\tconst controller = useResolveController(TopBarController);\n\n\tuseEffect(() => {\n\t\tconst item = controller.addItem(props.title, props?.goBack ?? false, props.onAbort, props.goBackIntercept, props.skipAbortDialog);\n\n\t\treturn () => {\n\t\t\tcontroller.removeItem(item);\n\t\t};\n\t}, [controller, props.goBack, props.title, props.onAbort, props.goBackIntercept, props.skipAbortDialog]);\n\n\treturn null;\n}\n\nfunction GoBackTitle(value: boolean | string | null): string {\n\tif (value == null) return '';\n\n\tif (typeof value === 'string') return value;\n\n\treturn I18nAndL10n.translate('Component.TopBar.BackText');\n}\n\nconst StyledTopBarSize = styled.div`\n\theight: ${tokens.size.x7};\n\tflex-shrink: 0;\n`;\n\nconst StyledHeader = styled.div`\n\tdisplay: flex;\n\theight: ${tokens.size.x7};\n\tpadding: 0 ${tokens.spacing.x2};\n\tposition: fixed;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tz-index: 1;\n\n\t&:after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tz-index: -1;\n\n\t\t--extended-by: 100px;\n\t\tbottom: calc(-1 * var(--extended-by));\n\t\ttop: -1px;\n\n\t\t--cutoff: calc(100% - var(--extended-by));\n\n\t\tmask-image: linear-gradient(to bottom, black 0, black var(--cutoff), transparent var(--cutoff));\n\t\t-webkit-mask-image: linear-gradient(to bottom, black 0, black var(--cutoff), transparent var(--cutoff));\n\n\t\t--blur: 15px;\n\t\tbackdrop-filter: blur(var(--blur));\n\t\t-webkit-backdrop-filter: blur(var(--blur));\n\n\t\tbackground: linear-gradient(180deg, var(--bg-page-color) 10%, transparent 100%);\n\t\tbackground: linear-gradient(180deg, #fefefe 10%, transparent 100%);\n\n\t\tuser-select: none;\n\t\tpointer-events: none;\n\t}\n\n\t&:before {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\theight: 1px;\n\t\topacity: var(--_opacity, 0);\n\t\tbackground: rgba(71, 51, 51, 0.06);\n\n\t\t${tokens.breakpointQuery.large} {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t${tokens.breakpointQuery.small} {\n\t\tposition: absolute;\n\n\t\t&:after {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t&:before {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n`;\n\nconst StyledAbortSection = styled.span`\n\t* {\n\t\tword-break: keep-all;\n\t}\n`;\n\nfunction TopBarOutlet(_: React.PropsWithChildren) {\n\tconst routerService = useResolve(RouterService);\n\tconst controller = useResolveController(TopBarController);\n\tconst item = controller.stack.value[controller.stack.value.length - 1] as StackItem | undefined;\n\tconst isMobile = useBreakpoint(BreakPoints.Small);\n\tconst analyticService = useResolve(AnalyticService);\n\n\tconst ref = useRef<HTMLDivElement>(null);\n\tconst { scrollY } = useScroll();\n\tuseMotionValueEvent(scrollY, 'change', (latest) => {\n\t\tref.current?.style.setProperty('--_opacity', clamp(0, latest / 100, 1).toString());\n\t});\n\n\tfunction handleGoBackClick() {\n\t\tanalyticService.trackEvent(AnalyticCategories.TopBar, 'Clicked', 'Go back button');\n\n\t\tif (item == null) return;\n\n\t\tconst event = item.event;\n\t\titem.goBackIntercept?.(event);\n\n\t\tif (event.defaultPrevented) return;\n\n\t\trouterService.back();\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<StyledTopBarSize />\n\t\t\t<StyledHeader ref={ref}>\n\t\t\t\t<Flex direction='row' grow='1' justify='start' basis='25%' shrink={0}>\n\t\t\t\t\t{item?.goBack ? <StepBack onClick={handleGoBackClick} text={GoBackTitle(item.goBack)} /> : null}\n\t\t\t\t</Flex>\n\n\t\t\t\t<Flex direction='row' grow='1' align='center' justify='center' basis='50%' asChild>\n\t\t\t\t\t<Spacer horizontal={tokens.spacing.x1}>\n\t\t\t\t\t\t<Text.p variant={isMobile ? 'labelSmallRegular' : 'labelSemiBold'} style={{ textAlign: 'center' }}>\n\t\t\t\t\t\t\t{item?.title}\n\t\t\t\t\t\t</Text.p>\n\t\t\t\t\t</Spacer>\n\t\t\t\t</Flex>\n\n\t\t\t\t<Flex direction='row' grow='1' justify='end' basis='25%' shrink={0} asChild>\n\t\t\t\t\t<StyledAbortSection>\n\t\t\t\t\t\t{item?.onAbort != null && !item?.skipAbortDialog ? (\n\t\t\t\t\t\t\t<DialogAlert\n\t\t\t\t\t\t\t\ttrigger={\n\t\t\t\t\t\t\t\t\t<Button variant='ghost' size='xSmall'>\n\t\t\t\t\t\t\t\t\t\t{withTranslation('Component.TopBar.AbortText')}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\theader={withTranslation('Component.TopBar.AbortDialog.Header')}\n\t\t\t\t\t\t\t\tdescription={withTranslation('Component.TopBar.AbortDialog.Description')}\n\t\t\t\t\t\t\t\tabortText={withTranslation('Component.TopBar.AbortDialog.AbortText')}\n\t\t\t\t\t\t\t\tsuccessText={withTranslation('Component.TopBar.AbortDialog.SuccessText')}\n\t\t\t\t\t\t\t\tonSuccess={item.onAbort}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t{item?.onAbort != null && item?.skipAbortDialog ? (\n\t\t\t\t\t\t\t<Button variant='ghost' size='xSmall' onClick={item.onAbort}>\n\t\t\t\t\t\t\t\t{withTranslation('Component.TopBar.AbortText')}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t</StyledAbortSection>\n\t\t\t\t</Flex>\n\t\t\t</StyledHeader>\n\t\t</>\n\t);\n}\n\ntype OnAbortCallback = (event: React.MouseEvent<HTMLButtonElement>) => void;\ntype GoBackInterceptHandler = (event: Event) => void;\n\ninterface StackItem {\n\tevent: Event;\n\ttitle?: string;\n\tonAbort: OnAbortCallback | null;\n\tgoBack: boolean | string;\n\tgoBackIntercept?: GoBackInterceptHandler;\n\tskipAbortDialog: boolean;\n}\n\n@Injectable()\nclass TopBarController implements ControllerProtocol {\n\tpublic stack = signal<StackItem[]>([]);\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\twhenMount() {\n\t\t// Empty\n\t}\n\n\twhenDemount() {\n\t\t// Empty\n\t}\n\n\tpublic addItem(\n\t\ttitle?: string,\n\t\tgoBack?: boolean | string,\n\t\tonAbort?: (() => void) | null,\n\t\tgoBackIntercept?: GoBackInterceptHandler,\n\t\tskipAbortDialog = false,\n\t): StackItem {\n\t\tconst list = this.stack.peek();\n\t\tconst prevItem = list[list.length - 1];\n\t\tconst newTile: string | undefined = title ?? prevItem?.title;\n\n\t\tconst item: StackItem = {\n\t\t\tevent: new Event('goBack', { cancelable: true }),\n\t\t\ttitle: newTile,\n\t\t\tgoBack: goBack ?? false,\n\t\t\tgoBackIntercept: goBackIntercept,\n\t\t\tonAbort: onAbort !== undefined ? onAbort : prevItem?.onAbort,\n\t\t\tskipAbortDialog,\n\t\t};\n\n\t\tthis.stack.value = [...list, item];\n\n\t\treturn item;\n\t}\n\n\tpublic removeItem(item: StackItem) {\n\t\tconst list = this.stack.peek();\n\t\tconst index = list.indexOf(item);\n\n\t\tif (index <= -1) return;\n\n\t\tlist.splice(index, 1);\n\t\tthis.stack.value = [...list];\n\t}\n\n\tpublic pop() {\n\t\tconst list = this.stack.peek();\n\t\tlist.pop();\n\n\t\tthis.stack.value = [...list];\n\t}\n}\n\nexport const TopBar = {\n\tRoot: TopBarRoot,\n\tOutlet: TopBarOutlet,\n\tContent: TopBarContent,\n} as const;\n","// This piece of code is taken from Vonage own way of checking if end-to-end encryption is supported\nexport function hasEndToEndEncryptionSupport() {\n\tlet _window$RTCRtpSender, _window$RTCRtpSender2;\n\tconst isCryptoSupported = !!window.crypto;\n\tconst isInsertableStreamsSupported =\n\t\t!!(\n\t\t\t(_window$RTCRtpSender = window.RTCRtpSender) != null &&\n\t\t\t(_window$RTCRtpSender.prototype as RTCRtpSender & { createEncodedStreams: unknown }).createEncodedStreams\n\t\t) ||\n\t\t!!(\n\t\t\t(_window$RTCRtpSender2 = window.RTCRtpSender) != null &&\n\t\t\t(_window$RTCRtpSender2.prototype as RTCRtpSender & { createdEncodedVideoStreams: unknown }).createdEncodedVideoStreams\n\t\t);\n\tconst isWebWorkerSupported = !!window.Worker;\n\n\treturn isCryptoSupported && isInsertableStreamsSupported && isWebWorkerSupported;\n}\n","import { FeatureFlagService } from '@application/feature_flags/feature_flag.service';\nimport { PlatformService } from '@application/platform.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { hasEndToEndEncryptionSupport } from './has_end_to_end_encryption_support.module';\nimport { useConstant } from '@visiba/react-std';\n\nexport function useVonageEncryptionWarning() {\n\tconst universalConfig = useResolve(UniversalConfig);\n\tconst platformService = useResolve(PlatformService);\n\tconst featureFlagService = useResolve(FeatureFlagService);\n\tconst appConfig = universalConfig.appConfig;\n\tconst platform = platformService.parseAgentData().platform;\n\tconst appDownloadUrl = useConstant(() => {\n\t\tif (appConfig && platform.android) {\n\t\t\treturn `https://play.app.goo.gl/?link=https://play.google.com/store/apps/details?id=${appConfig.androidPackageId}`;\n\t\t}\n\t\tif (appConfig && platform.ios) {\n\t\t\treturn `https://itunes.apple.com/se/app/id${appConfig.appStoreId}`;\n\t\t}\n\n\t\treturn null;\n\t});\n\n\treturn {\n\t\tplatform: platformService.parseAgentData().platform,\n\t\tappConfig: appConfig\n\t\t\t? {\n\t\t\t\t\tandroidPackageId: appConfig.androidPackageId,\n\t\t\t\t\tappStoreId: appConfig.appStoreId,\n\t\t\t\t\tappDownloadUrl: appDownloadUrl,\n\t\t\t\t}\n\t\t\t: null,\n\t\thasEncryptionSupport: featureFlagService.checkFlag('PatientWeb.UseVonage') && hasEndToEndEncryptionSupport(),\n\t};\n}\n","import { NotificationAlert } from '@cellula/react';\nimport { VonageEncryptionWarningDialog } from './_vonage_encryption_warning_dialog.component';\nimport { VonageEncryptionWarningText } from './_vonage_encryption_warning_text.component';\nimport { VonageEncryptionWarningTitle } from './_vonage_encryption_warning_title.component';\nimport { useVonageEncryptionWarning } from './use_vonage_excryption_warning.hook';\n\nexport const PrimitiveVonageEncryptionWarning = {\n\tTitle: VonageEncryptionWarningTitle,\n\tText: VonageEncryptionWarningText,\n\tDialog: VonageEncryptionWarningDialog,\n};\n\nexport function VonageEncryptionWarning() {\n\tconst { hasEncryptionSupport } = useVonageEncryptionWarning();\n\n\tif (hasEncryptionSupport) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<NotificationAlert variant='danger'>\n\t\t\t\t<PrimitiveVonageEncryptionWarning.Text type='notificationAlert' />\n\t\t\t</NotificationAlert>\n\t\t\t<PrimitiveVonageEncryptionWarning.Dialog />\n\t\t</>\n\t);\n}\n","import { withTranslation } from '@application/i18n/with_translation';\n\nexport function VonageEncryptionWarningTitle() {\n\treturn <>{withTranslation('VonageEncryptionWarning.Dialog.Title')}</>;\n}\n","import { withTranslation } from '@application/i18n/with_translation';\nimport { TextLink } from '@cellula/react';\nimport { useVonageEncryptionWarning } from './use_vonage_excryption_warning.hook';\n\ninterface Props {\n\ttype: 'dialog' | 'notificationAlert';\n}\n\nexport function VonageEncryptionWarningText({ type }: Props) {\n\tconst { platform, appConfig } = useVonageEncryptionWarning();\n\n\tif (type === 'dialog') {\n\t\tif (platform.android) {\n\t\t\treturn withTranslation(`VonageEncryptionWarning.Dialog.${appConfig != null ? 'HasApp' : 'NoApp'}.Android`);\n\t\t}\n\t\tif (platform.ios) {\n\t\t\treturn withTranslation(`VonageEncryptionWarning.Dialog.${appConfig != null ? 'HasApp' : 'NoApp'}.iOS`);\n\t\t}\n\n\t\treturn withTranslation(`VonageEncryptionWarning.Dialog.Desktop`);\n\t}\n\n\tif (type === 'notificationAlert') {\n\t\tif (platform.android || platform.ios) {\n\t\t\tif (appConfig == null) {\n\t\t\t\treturn withTranslation(`VonageEncryptionWarning.NotificationAlert.NoApp.${platform.ios ? 'iOS' : 'Android'}`);\n\t\t\t}\n\t\t\tif (appConfig != null && appConfig.appDownloadUrl) {\n\t\t\t\treturn (\n\t\t\t\t\t<>\n\t\t\t\t\t\t{withTranslation(`VonageEncryptionWarning.NotificationAlert.HasApp.${platform.ios ? 'iOS' : 'Android'}.Part1`)}\n\t\t\t\t\t\t<TextLink href={appConfig.appDownloadUrl} target='_blank'>\n\t\t\t\t\t\t\t{withTranslation(`VonageEncryptionWarning.NotificationAlert.HasApp.${platform.ios ? 'iOS' : 'Android'}.Link`)}\n\t\t\t\t\t\t</TextLink>\n\t\t\t\t\t\t{withTranslation(`VonageEncryptionWarning.NotificationAlert.HasApp.${platform.ios ? 'iOS' : 'Android'}.Part2`)}\n\t\t\t\t\t</>\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn withTranslation(`VonageEncryptionWarning.NotificationAlert.Desktop`);\n\t}\n\n\treturn null;\n}\n","import { DialogModal, ButtonArrange, Button } from '@cellula/react';\nimport { useState } from 'react';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { PrimitiveVonageEncryptionWarning } from './vonage_encryption_warning.component';\nimport { useVonageEncryptionWarning } from './use_vonage_excryption_warning.hook';\n\nexport function VonageEncryptionWarningDialog() {\n\tconst { hasEncryptionSupport, appConfig } = useVonageEncryptionWarning();\n\tconst [dialogOpen, setDialogOpen] = useState(true);\n\n\tif (hasEncryptionSupport) {\n\t\treturn null;\n\t}\n\n\tfunction handleDialogOpenChange(open: boolean) {\n\t\tsetDialogOpen(open);\n\t}\n\n\treturn (\n\t\t<DialogModal.Root open={dialogOpen} onOpenChange={handleDialogOpenChange}>\n\t\t\t<DialogModal.Content>\n\t\t\t\t<DialogModal.Title>\n\t\t\t\t\t<PrimitiveVonageEncryptionWarning.Title />\n\t\t\t\t</DialogModal.Title>\n\t\t\t\t<DialogModal.Description>\n\t\t\t\t\t<PrimitiveVonageEncryptionWarning.Text type='dialog' />\n\t\t\t\t</DialogModal.Description>\n\t\t\t</DialogModal.Content>\n\t\t\t<DialogModal.Footer>\n\t\t\t\t<ButtonArrange gap={tokens.spacing.x1}>\n\t\t\t\t\t{appConfig?.appDownloadUrl ? (\n\t\t\t\t\t\t<Button as='a' variant='primary' href={appConfig.appDownloadUrl}>\n\t\t\t\t\t\t\t{withTranslation('VonageEncryptionWarning.Dialog.ButtonDownloadApp')}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t) : null}\n\t\t\t\t\t<DialogModal.Close asChild>\n\t\t\t\t\t\t<Button variant='ghost'>{withTranslation('Common.Button.Close')}</Button>\n\t\t\t\t\t</DialogModal.Close>\n\t\t\t\t</ButtonArrange>\n\t\t\t</DialogModal.Footer>\n\t\t</DialogModal.Root>\n\t);\n}\n","// Arbitrary value to not overwhelm the user with visual feedback (a lot of animations is happening)\nexport const SHEET_CLOSE_INTO_NOTIFICATION_WAIT = 350;\n\nexport const ASSET_IMAGE_PATH = '/assets/images';\n\nexport const TRANSLATION_SETS = ['PatientWeb', 'Patient', 'CommonFrontend'] as const;\n\nexport const IDP_AUTHENTICATION_PROVIDER_ID = 'OpenIdConnect' as const;\n\nexport const RED_ROBIN_SUPPORTED_LANGUAGES = ['sv', 'en', 'fi', 'no'];\n\nexport const DEFAULT_LAYOUT_VARIANT = 'shell-3';\n","import { HeadlessButton, VisuallyHidden } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { ActionCard } from '@component/action_card.component';\nimport styled from 'styled-components';\n\ninterface Props {\n\ttitle: string;\n\tdescription?: string;\n\tscheme: string;\n\tonClick: () => void;\n}\n\nexport function AuthMethodLink(props: Props): JSX.Element {\n\treturn (\n\t\t<>\n\t\t\t{props.scheme.toLocaleLowerCase() === 'nhs' ? (\n\t\t\t\t<StyledNhsButtonOuter onClick={props.onClick} aria-label='NHS'>\n\t\t\t\t\t<VisuallyHidden>{props.title}</VisuallyHidden>\n\t\t\t\t\t{props.description ? <VisuallyHidden>{props.description}</VisuallyHidden> : null}\n\n\t\t\t\t\t<NhsButton />\n\t\t\t\t</StyledNhsButtonOuter>\n\t\t\t) : (\n\t\t\t\t<ActionCard.Root icon={<SchemeLogo scheme={props.scheme} />} onClick={props.onClick}>\n\t\t\t\t\t<ActionCard.Content>\n\t\t\t\t\t\t<ActionCard.Title>{props.title}</ActionCard.Title>\n\t\t\t\t\t\t{props.description != null ? <ActionCard.Meta>{props.description}</ActionCard.Meta> : null}\n\t\t\t\t\t</ActionCard.Content>\n\t\t\t\t</ActionCard.Root>\n\t\t\t)}\n\t\t</>\n\t);\n}\n\nconst StyledNhsButtonOuter = styled(HeadlessButton)`\n\tdisplay: flex;\n\twidth: 100%;\n\theight: 64px;\n\tposition: relative;\n\tborder: unset;\n\tbackground-color: #003087;\n\tborder-radius: 4px;\n\n\t&:before {\n\t\tcontent: '';\n\t\theight: 60px;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tbackground-color: #005eb8;\n\t\tborder-radius: 4px;\n\t}\n\n\tsvg {\n\t\tposition: absolute;\n\t}\n`;\n\nfunction NhsButton(): JSX.Element {\n\treturn (\n\t\t<svg width='352' height='64' viewBox='0 0 352 64' fill='none' xmlns='http://www.w3.org/2000/svg'>\n\t\t\t<g clipPath='url(#clip0_1081_41502)'>\n\t\t\t\t<path\n\t\t\t\t\td='M111.73 34.0288C112.73 34.5884 113.851 34.8974 114.996 34.9291C116.085 34.9291 117.587 34.3867 117.587 33.0525C117.587 31.9678 116.608 31.4579 115.16 30.883C113.211 30.1345 111.186 29.321 111.186 26.544C111.186 23.4091 113.548 22.0966 116.314 22.0966C117.492 22.0817 118.665 22.2576 119.787 22.6172L119.514 25.0145C118.575 24.6119 117.565 24.4016 116.542 24.3962C116.255 24.3685 115.966 24.4018 115.692 24.494C115.419 24.5862 115.169 24.7352 114.958 24.9311C114.747 25.127 114.58 25.3653 114.468 25.6303C114.357 25.8953 114.303 26.1808 114.311 26.4681C114.311 27.5528 115.573 27.9976 116.793 28.4749C118.752 29.2017 120.723 30.102 120.723 32.8139C120.723 35.5257 118.72 37.2179 115.214 37.2179C113.952 37.2132 112.697 37.0231 111.491 36.6539L111.73 34.0288Z'\n\t\t\t\t\tfill='white'\n\t\t\t\t/>\n\t\t\t\t<path d='M123.172 24.2544V21.5859H125.97V24.2544H123.172ZM123.172 36.9676V26.2178H125.97V36.9676H123.172Z' fill='white' />\n\t\t\t\t<path\n\t\t\t\t\td='M136.084 35.2544C135.721 35.8021 135.224 36.2475 134.638 36.5477C134.053 36.8479 133.4 36.9927 132.742 36.9683C129.759 36.9683 128.387 34.712 128.387 31.5446C128.387 28.952 129.737 25.969 132.959 25.969C133.609 25.9311 134.256 26.0707 134.832 26.3728C135.407 26.6749 135.889 27.1279 136.225 27.6829V26.2185H138.904V35.9812C138.904 39.6151 137.02 41.611 133.253 41.611C131.957 41.6288 130.672 41.3814 129.476 40.8842L129.704 38.5086C130.684 39.0361 131.763 39.3538 132.872 39.4415C135.507 39.4415 136.138 37.7493 136.138 35.5256L136.084 35.2544ZM136.084 31.4578C136.084 29.809 135.496 28.1168 133.721 28.1168C131.947 28.1168 131.228 29.5595 131.228 31.5229C131.228 32.9873 132.001 34.7771 133.613 34.7771C135.365 34.7988 136.084 33.2151 136.084 31.4578Z'\n\t\t\t\t\tfill='white'\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\td='M148.832 36.9689V30.9377C148.832 29.3323 148.506 28.1391 147.014 28.1391C145.229 28.1391 144.543 29.853 144.543 31.7513V36.9689H141.734V26.2191H144.39V27.6835C144.784 27.1202 145.316 26.6669 145.935 26.3668C146.555 26.0668 147.241 25.93 147.929 25.9696C150.4 25.9696 151.597 27.6618 151.597 30.1892V36.9689H148.832Z'\n\t\t\t\t\tfill='white'\n\t\t\t\t/>\n\t\t\t\t<path d='M160.427 24.2544V21.5859H163.235V24.2544H160.427ZM160.427 36.9676V26.2178H163.235V36.9676H160.427Z' fill='white' />\n\t\t\t\t<path\n\t\t\t\t\td='M173.295 36.9672V30.936C173.295 29.3306 172.957 28.1374 171.466 28.1374C169.691 28.1374 168.994 29.8513 168.994 31.7496V36.9672H166.186V26.2174H168.853V27.6818C169.248 27.1177 169.782 26.6639 170.403 26.3639C171.025 26.0638 171.713 25.9275 172.402 25.9679C174.873 25.9679 176.06 27.6601 176.06 30.1875V36.9672H173.295Z'\n\t\t\t\t\tfill='white'\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\td='M195.144 36.9686L192.793 28.7679L190.485 36.9686H187.251L183.604 26.2188H186.576L188.961 34.1699L191.138 26.2188H194.404L196.745 34.1699L198.987 26.2188H201.665L198.399 36.9686H195.144Z'\n\t\t\t\t\tfill='white'\n\t\t\t\t/>\n\t\t\t\t<path d='M203.505 24.2544V21.5859H206.314V24.2544H203.505ZM203.505 36.9676V26.2178H206.314V36.9676H203.505Z' fill='white' />\n\t\t\t\t<path\n\t\t\t\t\td='M215.677 36.9681C215.01 37.1513 214.321 37.2354 213.63 37.2176C213.163 37.2585 212.693 37.196 212.253 37.0347C211.813 36.8733 211.415 36.6171 211.086 36.2844C210.757 35.9516 210.507 35.5506 210.352 35.11C210.197 34.6693 210.141 34.2 210.19 33.7356V28.3118H208.121V26.2183H210.19V24.0488L212.998 23.1484V26.1966H215.492V28.2467H212.998V33.2366C212.998 34.3213 213.358 35.0264 214.338 35.0264C214.765 35.0313 215.186 34.9227 215.557 34.7118L215.677 36.9681Z'\n\t\t\t\t\tfill='white'\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\td='M224.527 36.9673V30.8928C224.527 28.9294 223.94 28.1375 222.699 28.1375C221.044 28.1375 220.227 29.6453 220.227 31.7714V36.9673H217.418V21.3145H220.227V27.6819C220.607 27.1386 221.116 26.6977 221.709 26.3985C222.302 26.0994 222.96 25.9515 223.624 25.968C226.117 25.968 227.282 27.7036 227.282 30.166V36.9673H224.527Z'\n\t\t\t\t\tfill='white'\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\td='M244.592 36.9685L239.007 26.1211V36.9685H236.198V22.4004H239.802L245.376 33.3021V22.4546H248.217V36.9685H244.592Z'\n\t\t\t\t\tfill='white'\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\td='M260.192 36.9685V30.5794H254.335V36.9685H251.483V22.4004H254.422V28.2906H260.192V22.4004H263.132V36.9685H260.192Z'\n\t\t\t\t\tfill='white'\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\td='M266.583 34.0288C267.582 34.5884 268.703 34.8974 269.849 34.9291C270.938 34.9291 272.44 34.3867 272.44 33.0525C272.44 31.9677 271.46 31.4579 270.012 30.883C268.064 30.1345 266.039 29.321 266.039 26.544C266.039 23.4091 268.401 22.0966 271.166 22.0966C272.348 22.0819 273.524 22.2577 274.65 22.6172L274.378 25.0145C273.435 24.6127 272.421 24.4025 271.395 24.3962C271.107 24.3573 270.814 24.3805 270.536 24.4644C270.258 24.5482 270.001 24.6906 269.784 24.882C269.566 25.0734 269.392 25.3092 269.273 25.5735C269.155 25.8379 269.095 26.1244 269.098 26.4138C269.098 27.4986 270.35 27.9433 271.569 28.4206C273.529 29.1474 275.499 30.0477 275.499 32.7596C275.499 35.4715 273.496 37.1637 269.99 37.1637C268.728 37.1589 267.474 36.9689 266.267 36.5996L266.583 34.0288Z'\n\t\t\t\t\tfill='white'\n\t\t\t\t/>\n\t\t\t\t<path d='M283.849 36.9673V21.3145H286.658V36.9673H283.849Z' fill='white' />\n\t\t\t\t<path\n\t\t\t\t\td='M294.551 37.2179C293.805 37.2614 293.058 37.148 292.359 36.885C291.66 36.622 291.025 36.2154 290.494 35.6915C289.963 35.1677 289.549 34.5383 289.278 33.8444C289.007 33.1505 288.886 32.4076 288.922 31.664C288.889 30.9046 289.01 30.1463 289.279 29.4349C289.547 28.7234 289.958 28.0735 290.485 27.5244C291.013 26.9752 291.646 26.5382 292.348 26.2396C293.049 25.941 293.804 25.7871 294.567 25.7871C295.33 25.7871 296.085 25.941 296.787 26.2396C297.488 26.5382 298.122 26.9752 298.649 27.5244C299.177 28.0735 299.587 28.7234 299.856 29.4349C300.124 30.1463 300.245 30.9046 300.212 31.664C300.247 32.4101 300.124 33.1551 299.851 33.8506C299.577 34.5461 299.16 35.1764 298.626 35.7005C298.092 36.2245 297.453 36.6304 296.751 36.8919C296.049 37.1534 295.299 37.2644 294.551 37.2179ZM297.283 31.3386C297.283 29.6247 296.358 28.1386 294.551 28.1386C292.744 28.1386 291.851 29.6464 291.851 31.3386C291.851 33.6057 292.733 35.0484 294.551 35.0484C296.369 35.0484 297.283 33.6274 297.283 31.3386Z'\n\t\t\t\t\tfill='white'\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\td='M309.52 35.2544C309.156 35.8029 308.656 36.2488 308.069 36.549C307.481 36.8492 306.827 36.9936 306.167 36.9683C303.195 36.9683 301.812 34.712 301.812 31.5446C301.812 28.952 303.151 25.969 306.374 25.969C307.023 25.9311 307.671 26.0707 308.246 26.3728C308.822 26.6749 309.304 27.1279 309.64 27.6829V26.2185H312.318V35.9812C312.318 39.6151 310.435 41.611 306.668 41.611C305.375 41.6279 304.093 41.3806 302.901 40.8842L303.13 38.5086C304.105 39.037 305.18 39.3549 306.287 39.4415C308.932 39.4415 309.553 37.7493 309.553 35.5256L309.52 35.2544ZM309.52 31.4795C309.52 29.8307 308.932 28.1385 307.147 28.1385C305.361 28.1385 304.654 29.5812 304.654 31.5446C304.654 33.009 305.427 34.7988 307.049 34.7988C308.845 34.7988 309.52 33.2151 309.52 31.4578V31.4795Z'\n\t\t\t\t\tfill='white'\n\t\t\t\t/>\n\t\t\t\t<path d='M315.279 24.2544V21.5859H318.088V24.2544H315.279ZM315.279 36.9676V26.2178H318.088V36.9676H315.279Z' fill='white' />\n\t\t\t\t<path\n\t\t\t\t\td='M328.147 36.9676V30.9364C328.147 29.331 327.81 28.1378 326.318 28.1378C324.544 28.1378 323.847 29.8517 323.847 31.75V36.9676H321.038V26.2178H323.705V27.6822C324.097 27.1174 324.629 26.6629 325.249 26.3627C325.869 26.0625 326.556 25.9266 327.244 25.9683C329.715 25.9683 330.912 27.6605 330.912 30.188V36.9676H328.147Z'\n\t\t\t\t\tfill='white'\n\t\t\t\t/>\n\t\t\t\t<path d='M20.184 15.7715V43.8881H91.9056V15.7715H20.184Z' fill='#005EB8' />\n\t\t\t\t<path\n\t\t\t\t\td='M92.5915 44.4737V15.1855H19.5961V44.4737H92.5915ZM48.9902 18.0167L43.9061 41.5883H36.0023L31.0271 25.3171H30.9618L27.6958 41.5883H21.6537L26.7378 18.0167H34.6633L39.5405 34.3639H39.6058L42.9481 18.0167H48.9902ZM71.6019 18.0167L66.6267 41.5883H60.2579L62.37 31.4567H54.8363L52.7243 41.5557H46.3556L51.2982 17.9842H57.6996L55.827 26.9984H63.3498L65.2223 17.9842L71.6019 18.0167ZM89.9025 18.6567L88.3674 23.3537C86.723 22.6018 84.9289 22.2309 83.12 22.2689C80.6052 22.2689 78.5585 22.6378 78.5585 24.5361C78.5585 27.8771 87.7904 26.6296 87.7904 33.7889C87.7904 40.2974 81.6939 41.9896 76.1743 41.9896C73.6763 41.929 71.1991 41.5201 68.8149 40.7747L70.3173 35.9801C72.1281 36.9049 74.1398 37.3706 76.1743 37.3361C78.1448 37.3361 81.2475 36.9564 81.2475 34.5266C81.2475 30.7408 72.0156 32.1618 72.0156 25.5123C72.0156 19.4269 77.3936 17.6045 82.6083 17.6045C85.0868 17.5005 87.5625 17.8687 89.9025 18.6893V18.6567Z'\n\t\t\t\t\tfill='white'\n\t\t\t\t/>\n\t\t\t</g>\n\t\t\t<defs>\n\t\t\t\t<clipPath id='clip0_1081_41502'>\n\t\t\t\t\t<rect width='352' height='64' fill='white' />\n\t\t\t\t</clipPath>\n\t\t\t</defs>\n\t\t</svg>\n\t);\n}\n\ninterface LogoProps {\n\tscheme: string;\n}\n\nconst StyledSchemeLogo = styled.div`\n\tposition: absolute;\n\tinset: 0;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tpadding: ${tokens.spacing.x1_5};\n`;\n\nfunction SchemeLogo(props: LogoProps): JSX.Element {\n\tconst scheme = props.scheme.toLocaleLowerCase();\n\n\tlet icon: JSX.Element;\n\tswitch (scheme) {\n\t\tcase 'bankid':\n\t\t\ticon = <BankIdLogo />;\n\t\t\tbreak;\n\t\tcase 'sms':\n\t\t\ticon = <SmsLogo />;\n\t\t\tbreak;\n\t\tcase 'freja':\n\t\t\ticon = <FrejaEId />;\n\t\t\tbreak;\n\t\tcase 'siths':\n\t\t\ticon = <SithsLogo />;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ticon = <PadLockIcon />;\n\t\t\tbreak;\n\t}\n\n\tlet background: string;\n\tswitch (scheme) {\n\t\tcase 'bankid':\n\t\t\tbackground = '#183E4F';\n\t\t\tbreak;\n\t\tcase 'siths':\n\t\t\tbackground = '#00706E';\n\t\t\tbreak;\n\t\tcase 'freja':\n\t\t\tbackground = 'linear-gradient(90deg, #3E3A94 0%, #1B7BCD 100%)';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbackground = tokens.color.bg.surfaceBrand;\n\t\t\tbreak;\n\t}\n\n\treturn (\n\t\t<StyledSchemeLogo\n\t\t\tstyle={{\n\t\t\t\tbackground,\n\t\t\t}}\n\t\t>\n\t\t\t{icon}\n\t\t</StyledSchemeLogo>\n\t);\n}\n\nfunction FrejaEId(): JSX.Element {\n\treturn (\n\t\t<svg xmlns='http://www.w3.org/2000/svg' width='32' height='8' viewBox='0 0 32 8' fill='none'>\n\t\t\t<path\n\t\t\t\td='M23.2054 7.41595L24.1134 5.45693C24.1219 5.44012 24.1219 5.4233 24.1219 5.40649V0.32819C24.1219 0.235704 24.0462 0.160034 23.9537 0.160034H21.1875C21.1371 0.160034 21.0866 0.193665 21.0698 0.244112L20.5906 1.40439C20.557 1.48846 20.6158 1.58095 20.7083 1.58095H22.3899C22.4823 1.58095 22.558 1.65662 22.558 1.7491V5.39808C22.558 5.86892 22.2385 6.33975 21.65 6.3902C21.0782 6.43224 20.4813 6.01185 20.1282 5.70917C20.0693 5.64191 19.9516 5.65872 19.918 5.7428L19.4303 6.76855C19.4051 6.81059 19.4135 6.86944 19.4471 6.90307L19.4639 6.91989C20.187 7.55047 20.6831 7.87837 21.6584 7.87837C22.3058 7.87837 22.7262 7.73544 23.1634 7.45799C23.1802 7.45799 23.197 7.43276 23.2054 7.41595Z'\n\t\t\t\tfill='white'\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td='M5.38938 1.48006L5.80137 0.395452C5.85181 0.277743 5.76773 0.160034 5.65003 0.160034H0.723069C0.655807 0.160034 0.596952 0.202073 0.571729 0.269335L0.00840778 1.64821C0.00840778 1.64821 0 1.68184 0 1.69866V7.64296C0 7.81952 0.07567 7.89519 0.168156 7.89519H1.47136C1.56385 7.89519 1.63952 7.81952 1.63952 7.72703V4.92724C1.63952 4.83476 1.71519 4.75909 1.80767 4.75909H3.97688C4.04414 4.75909 4.1114 4.71705 4.13663 4.64979L4.57383 3.57359C4.61587 3.46429 4.5402 3.34658 4.41408 3.34658H1.80767C1.71519 3.34658 1.63952 3.27091 1.63952 3.17843V1.7491C1.63952 1.65662 1.71519 1.58095 1.80767 1.58095H5.23804C5.30531 1.58095 5.36416 1.53891 5.38938 1.48006Z'\n\t\t\t\tfill='white'\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td='M19.1025 1.48006L19.5734 0.395452C19.6238 0.286151 19.5397 0.160034 19.422 0.160034H14.823C14.7557 0.160034 14.6884 0.202073 14.6632 0.269335L14.0663 1.75751C14.0579 1.77433 14.0579 1.79955 14.0579 1.81637V7.71863C14.0579 7.81111 14.1335 7.88678 14.226 7.88678H17.6059C17.6732 7.88678 17.7321 7.84474 17.7657 7.78589L18.2113 6.70129C18.2533 6.59198 18.1777 6.46587 18.0516 6.46587H15.7899C15.6974 6.46587 15.6217 6.3902 15.6217 6.29771V4.88521C15.6217 4.79272 15.6974 4.71705 15.7899 4.71705H17.6984C17.7657 4.71705 17.8245 4.67501 17.8498 4.61616L18.2954 3.53996C18.3374 3.43066 18.2617 3.30454 18.144 3.30454H15.7899C15.6974 3.30454 15.6217 3.22887 15.6217 3.13639V1.7491C15.6217 1.65662 15.6974 1.58095 15.7899 1.58095H18.9596C19.01 1.58095 19.0689 1.54732 19.1025 1.48006Z'\n\t\t\t\tfill='white'\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td='M12.5865 7.3823L11.3085 5.48214C11.2496 5.39806 11.2833 5.28876 11.3674 5.23832C12.2081 4.77589 12.6706 3.94352 12.6706 2.8421C12.6706 1.13532 11.5187 0.151611 9.51765 0.151611H7.06257C6.99531 0.151611 6.92805 0.19365 6.90283 0.260912L6.43199 1.53889C6.42358 1.55571 6.42358 1.58093 6.42358 1.59775V7.71861C6.42358 7.8111 6.49925 7.88677 6.59174 7.88677H7.81087C7.90335 7.88677 7.97902 7.8111 7.97902 7.71861V5.81845C7.97902 5.72597 8.05469 5.6503 8.14718 5.6503H9.50924C9.56809 5.6503 9.61854 5.6503 9.67739 5.6503C9.73625 5.6503 9.7951 5.68393 9.82033 5.73438L11.0815 7.8111C11.1151 7.86154 11.1656 7.89517 11.2244 7.89517H12.4436C12.536 7.89517 12.6117 7.8195 12.6117 7.72702V7.47479C12.6117 7.44115 12.6033 7.40752 12.5865 7.3823ZM9.50924 4.22938H8.14718C8.05469 4.22938 7.97902 4.15371 7.97902 4.06123V1.74909C7.97902 1.6566 8.05469 1.58093 8.14718 1.58093H9.50924C10.6107 1.58093 11.1656 2.01814 11.1656 2.87573C11.174 3.77536 10.6107 4.22938 9.50924 4.22938Z'\n\t\t\t\tfill='white'\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td='M31.9832 6.33134L29.2927 0.260928C29.2675 0.202073 29.2087 0.160034 29.1414 0.160034H29.1246H27.8634C27.7961 0.160034 27.7373 0.202073 27.7121 0.260928L24.4414 7.65136C24.391 7.76066 24.4751 7.88678 24.5928 7.88678H25.8624C25.9296 7.88678 25.9885 7.84474 26.0137 7.78589L26.6359 6.31453C26.6611 6.25567 26.72 6.21363 26.7872 6.21363H30.1251C30.184 6.21363 30.226 6.23886 30.2596 6.2893L30.8482 7.72703L30.8818 7.8027L30.907 7.85315C30.9238 7.87837 30.9323 7.88678 30.9491 7.89519C30.9659 7.89519 30.9827 7.89519 31.0079 7.89519H31.2938C31.361 7.89519 31.4199 7.85315 31.4451 7.7943L31.9748 6.48268C32.0084 6.43224 32.0084 6.38179 31.9832 6.33134ZM29.3768 4.80113H27.5271C27.4094 4.80113 27.3253 4.67501 27.3758 4.56571L28.3006 2.3965C28.3595 2.26198 28.5528 2.26198 28.6117 2.3965L29.5366 4.56571C29.587 4.67501 29.5029 4.80113 29.3768 4.80113Z'\n\t\t\t\tfill='white'\n\t\t\t/>\n\t\t</svg>\n\t);\n}\n\nfunction SithsLogo(): JSX.Element {\n\treturn (\n\t\t<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'>\n\t\t\t<path\n\t\t\t\tfillRule='evenodd'\n\t\t\t\tclipRule='evenodd'\n\t\t\t\td='M11.2589 29.8871C11.2589 31.0542 10.2783 32.0001 9.06891 32.0001C7.85888 32.0001 6.87892 31.0542 6.87892 29.8871V28.9133H2.6835C1.46609 28.9133 0.47998 27.9616 0.47998 26.7879C0.47998 25.629 1.45379 24.6891 2.65582 24.6891H6.87892V16.313L6.20409 16.0846C2.0911 14.6884 -0.40032 10.4464 0.769108 6.13787C1.63588 2.94374 4.48593 0.519804 7.87857 0.0777405C13.591 -0.666943 18.4231 4.04682 17.5563 9.57053C17.0771 12.6264 14.7635 15.1227 11.7412 16.1493L11.2589 16.313V29.8871ZM4.93808 7.48898C4.37274 10.3449 6.93429 12.8139 9.89446 12.268C11.5486 11.963 12.8829 10.6754 13.1991 9.07922C13.7645 6.22391 11.2035 3.75488 8.24336 4.30078C6.58857 4.60578 5.25427 5.8928 4.93808 7.48898Z'\n\t\t\t\tfill='#00706E'\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td='M19.8796 6.04179C19.8067 4.58719 19.4815 3.202 18.9324 1.93391C28.3961 3.02033 35.0698 13.6298 29.4594 24.109C27.2517 28.2344 22.9339 30.7295 18.3223 30.7295H15.4718C14.4251 30.7295 13.5762 29.864 13.5762 28.7975C13.5762 27.7304 14.4251 26.8661 15.4718 26.8661H18.3181C21.4304 26.8661 24.3502 25.2322 25.9431 22.5083C30.2313 15.175 26.1925 7.67021 19.8796 6.04179Z'\n\t\t\t\tfill='#00706E'\n\t\t\t/>\n\t\t</svg>\n\t);\n}\n\nfunction SmsLogo(): JSX.Element {\n\treturn (\n\t\t<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'>\n\t\t\t<path\n\t\t\t\td='M10.5 6C10.5 5.44772 10.9477 5 11.5 5H14.5C15.0523 5 15.5 5.44772 15.5 6C15.5 6.55228 15.0523 7 14.5 7H11.5C10.9477 7 10.5 6.55228 10.5 6Z'\n\t\t\t\tfill={tokens.color.content.mutedBrand}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td='M13 24C12.1716 24 11.5 24.6716 11.5 25.5C11.5 26.3284 12.1716 27 13 27C13.8284 27 14.5 26.3284 14.5 25.5C14.5 24.6716 13.8284 24 13 24Z'\n\t\t\t\tfill={tokens.color.content.mutedBrand}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td='M17.5 15.9998C18.0523 15.9998 18.5 15.552 18.5 14.9998C18.5 14.4475 18.0523 13.9998 17.5 13.9998C16.9478 13.9998 16.5 14.4475 16.5 14.9998C16.5 15.552 16.9478 15.9998 17.5 15.9998Z'\n\t\t\t\tfill={tokens.color.content.mutedBrand}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td='M22.5 15C22.5 15.5523 22.0523 16 21.5 16C20.9477 16 20.5 15.5523 20.5 15C20.5 14.4477 20.9477 14 21.5 14C22.0523 14 22.5 14.4477 22.5 15Z'\n\t\t\t\tfill={tokens.color.content.mutedBrand}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td='M25.5 16C26.0523 16 26.5 15.5523 26.5 15C26.5 14.4477 26.0523 14 25.5 14C24.9477 14 24.5 14.4477 24.5 15C24.5 15.5523 24.9477 16 25.5 16Z'\n\t\t\t\tfill={tokens.color.content.mutedBrand}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tfillRule='evenodd'\n\t\t\t\tclipRule='evenodd'\n\t\t\t\td='M7 2C5.34315 2 4 3.34315 4 5V27C4 28.6569 5.34315 30 7 30H19C20.6569 30 22 28.6569 22 27V21.25H27C28.6569 21.25 30 19.9069 30 18.25V11C30 9.34315 28.6569 8 27 8H22V5C22 3.34315 20.6569 2 19 2H7ZM18.4872 24.6757L20 23.0253V27C20 27.5523 19.5523 28 19 28H7C6.44772 28 6 27.5523 6 27V5C6 4.44772 6.44772 4 7 4H19C19.5523 4 20 4.44772 20 5V8H16C14.3431 8 13 9.34315 13 11V18.25C13 19.9069 14.3431 21.25 16 21.25H16.75V24C16.75 24.4124 17.0031 24.7825 17.3875 24.932C17.7718 25.0815 18.2085 24.9797 18.4872 24.6757ZM16 10C15.4477 10 15 10.4477 15 11V18.25C15 18.8023 15.4477 19.25 16 19.25H17.75C18.3023 19.25 18.75 19.6977 18.75 20.25V21.4292L20.4503 19.5743C20.6398 19.3676 20.9072 19.25 21.1875 19.25H27C27.5523 19.25 28 18.8023 28 18.25V11C28 10.4477 27.5523 10 27 10H16Z'\n\t\t\t\tfill={tokens.color.content.mutedBrand}\n\t\t\t/>\n\t\t</svg>\n\t);\n}\n\nfunction BankIdLogo(): JSX.Element {\n\treturn (\n\t\t<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'>\n\t\t\t<path\n\t\t\t\td='M10.0557 16.6155L11.3924 8.19074C10.8658 8.19074 9.96453 8.19074 9.96453 8.19074C9.29618 8.19074 8.43542 7.81608 8.18225 7.12752C8.10124 6.89463 7.90884 6.09468 9.01263 5.31499C9.40757 5.04159 9.66073 4.73781 9.71137 4.50492C9.762 4.26189 9.70124 4.04925 9.52909 3.88724C9.28605 3.65434 8.8101 3.52271 8.20251 3.52271C7.17972 3.52271 6.46073 4.11001 6.38985 4.53529C6.33922 4.8492 6.58225 5.10234 6.79491 5.26436C7.43289 5.74027 7.58478 6.42883 7.18985 7.07689C6.78478 7.7452 5.90377 8.18061 4.962 8.19074C4.962 8.19074 4.03035 8.19074 3.50377 8.19074C3.38225 9.01094 1.39744 21.5873 1.24554 22.5796H9.12403C9.19491 22.1442 9.55947 19.7646 10.0557 16.6155Z'\n\t\t\t\tfill='white'\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td='M0.820232 25.4961H4.05061C5.42783 25.4961 5.762 26.1948 5.66074 26.8327C5.57972 27.3491 5.2253 27.7339 4.6177 27.9871C5.38732 28.2807 5.69112 28.7364 5.57973 29.4553C5.43795 30.3565 4.65821 31.0248 3.63542 31.0248H-0.0405273L0.820232 25.4961ZM2.95694 27.7845C3.58479 27.7845 3.87846 27.4504 3.93922 27.0555C3.99998 26.6302 3.80757 26.3365 3.17972 26.3365H2.62276L2.39998 27.7845H2.95694ZM2.61264 30.1641C3.26074 30.1641 3.63542 29.9009 3.72656 29.3642C3.79745 28.8984 3.53416 28.625 2.90631 28.625H2.27846L2.03542 30.1743H2.61264V30.1641Z'\n\t\t\t\tfill='white'\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td='M10.1064 31.0653C9.2659 31.126 8.86083 31.0349 8.6583 30.6704C8.21273 30.9438 7.71653 31.0855 7.18995 31.0855C6.23805 31.0855 5.90387 30.5894 5.99501 30.0426C6.03552 29.7793 6.18742 29.5262 6.43045 29.3135C6.95704 28.8578 8.25324 28.7971 8.75957 28.4528C8.80007 28.068 8.64817 27.9263 8.17222 27.9263C7.61526 27.9263 7.14944 28.1085 6.34944 28.6553L6.54185 27.3997C7.23045 26.9035 7.89881 26.6707 8.66843 26.6707C9.65071 26.6707 10.5216 27.0757 10.3596 28.149L10.1672 29.3641C10.0963 29.7894 10.1165 29.9211 10.5925 29.9312L10.1064 31.0653ZM8.64817 29.1515C8.2026 29.435 7.37222 29.3844 7.28109 29.9717C7.24058 30.2451 7.41273 30.4476 7.68615 30.4476C7.94944 30.4476 8.27349 30.3362 8.53678 30.154C8.51653 30.0527 8.52666 29.9514 8.55704 29.7591L8.64817 29.1515Z'\n\t\t\t\tfill='white'\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td='M11.676 26.7415H13.357L13.2659 27.2985C13.8026 26.8428 14.2076 26.6707 14.7342 26.6707C15.676 26.6707 16.1114 27.2478 15.9595 28.1895L15.5241 31.0147H13.8431L14.2076 28.6756C14.2785 28.2503 14.1469 28.0478 13.8228 28.0478C13.5595 28.0478 13.3165 28.1895 13.0836 28.5034L12.6988 31.0045H11.0178L11.676 26.7415Z'\n\t\t\t\tfill='white'\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td='M17.2759 25.4961H18.9569L18.5316 28.2098L20.1417 26.7416H22.2177L20.1519 28.5642L21.8126 31.0147H19.6962L18.4202 29.03H18.4L18.0962 31.0046H16.4152L17.2759 25.4961Z'\n\t\t\t\tfill='white'\n\t\t\t/>\n\t\t\t<path d='M23.2202 25.4961H25.1544L24.3037 31.0147H22.3696L23.2202 25.4961Z' fill='white' />\n\t\t\t<path\n\t\t\t\td='M26.0962 25.4961H28.8607C30.9974 25.4961 31.6152 27.0454 31.4126 28.3313C31.2202 29.587 30.2278 31.0147 28.3544 31.0147H25.2354L26.0962 25.4961ZM27.8886 29.6983C28.8303 29.6983 29.3468 29.2325 29.4987 28.2503C29.6101 27.5213 29.3873 26.8023 28.3443 26.8023H27.8278L27.3822 29.6983H27.8886Z'\n\t\t\t\tfill='white'\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td='M20.648 0.829346H12.5974L11.524 7.64407H12.8911C13.6404 7.64407 14.3493 7.29979 14.6531 6.80362C14.7544 6.64161 14.7949 6.49984 14.7949 6.36821C14.7949 6.08468 14.6025 5.87204 14.4101 5.73028C13.8835 5.33537 13.7721 4.92021 13.7721 4.62655C13.7721 4.5658 13.7721 4.51517 13.7822 4.46454C13.8936 3.7456 14.8658 2.96591 16.1518 2.96591C16.9215 2.96591 17.5088 3.14817 17.8632 3.48233C18.1772 3.77598 18.2987 4.19114 18.2075 4.62655C18.0961 5.14297 17.5797 5.56826 17.286 5.78091C16.5063 6.3277 16.6075 6.80362 16.6582 6.94538C16.8202 7.37067 17.4379 7.64407 17.9139 7.64407H19.9999C19.9999 7.64407 19.9999 7.64407 19.9999 7.6542C22.8354 7.67445 24.3544 8.98069 23.8784 12.0185C23.4328 14.8436 21.2658 16.0587 18.6835 16.0789L17.6607 22.6H19.1696C25.5392 22.6 30.7442 18.5092 31.767 12.0488C33.0329 4.02913 27.9392 0.829346 20.648 0.829346Z'\n\t\t\t\tfill='white'\n\t\t\t/>\n\t\t</svg>\n\t);\n}\n\nfunction PadLockIcon() {\n\treturn (\n\t\t<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'>\n\t\t\t<path\n\t\t\t\tfillRule='evenodd'\n\t\t\t\tclipRule='evenodd'\n\t\t\t\td='M9 10C6.23858 10 4 12.2386 4 15V25C4 27.7614 6.23858 30 9 30H9.5C10.0523 30 10.5 29.5523 10.5 29C10.5 28.4477 10.0523 28 9.5 28H9C7.34315 28 6 26.6569 6 25V15C6 13.3431 7.34315 12 9 12H23C24.6569 12 26 13.3431 26 15V20.5C26 21.0523 26.4477 21.5 27 21.5C27.5523 21.5 28 21.0523 28 20.5V15C28 12.2386 25.7614 10 23 10V9C23 7.14347 22.2625 5.36302 20.9497 4.05028C19.637 2.73753 17.8565 2 16 2C14.1435 2 12.363 2.73753 11.0502 4.05028C9.7375 5.36303 9 7.14348 9 9V10ZM12.4645 5.46449C13.4022 4.5268 14.6739 4 16 4C17.3261 4 18.5978 4.5268 19.5355 5.46449C20.4732 6.40218 21 7.67393 21 9V10H11V9C11 7.67392 11.5268 6.40218 12.4645 5.46449Z'\n\t\t\t\tfill={tokens.color.content.mutedBrand}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tfillRule='evenodd'\n\t\t\t\tclipRule='evenodd'\n\t\t\t\td='M16 15C14.3431 15 13 16.3431 13 18C13 19.3113 13.8414 20.4262 15.0137 20.8341C15.0047 20.8881 15 20.9435 15 21V23C15 23.5523 15.4477 24 16 24C16.5523 24 17 23.5523 17 23V21C17 20.9435 16.9953 20.8881 16.9863 20.8341C18.1586 20.4262 19 19.3113 19 18C19 16.3431 17.6569 15 16 15ZM15 18C15 17.4477 15.4477 17 16 17C16.5523 17 17 17.4477 17 18C17 18.5523 16.5523 19 16 19C15.4477 19 15 18.5523 15 18Z'\n\t\t\t\tfill={tokens.color.content.mutedBrand}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tfillRule='evenodd'\n\t\t\t\tclipRule='evenodd'\n\t\t\t\td='M24.1707 28C24.5825 29.1652 25.6938 30 27 30C28.6569 30 30 28.6569 30 27C30 25.3431 28.6569 24 27 24C25.6938 24 24.5825 24.8348 24.1707 26H16C15.4477 26 15 26.4477 15 27C15 27.5523 15.4477 28 16 28H17V29C17 29.5523 17.4477 30 18 30C18.5523 30 19 29.5523 19 29V28H20V29C20 29.5523 20.4477 30 21 30C21.5523 30 22 29.5523 22 29V28H24.1707ZM27 26C26.4477 26 26 26.4477 26 27C26 27.5523 26.4477 28 27 28C27.5523 28 28 27.5523 28 27C28 26.4477 27.5523 26 27 26Z'\n\t\t\t\tfill={tokens.color.content.mutedBrand}\n\t\t\t/>\n\t\t</svg>\n\t);\n}\n","import { ControllerProtocol, Injectable } from '@visiba-cortex/instantiation';\nimport { signal } from '@preact/signals-react';\nimport { appendSearchParamToAnyString } from '@cortex-shim/append_search_param_to_any_string';\nimport { HostingService } from '@application/hosting.service';\nimport { UserSettingsService } from '@feature/settings/user_settings.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { AuthApiService } from '@api_patient/auth_api.service';\nimport { AsyncSignalValue } from '@component/async.component';\nimport { UnitService } from '@application/unit.service';\n\n@Injectable()\nexport class AuthController implements ControllerProtocol {\n\tpublic methods = signal<AsyncSignalValue<Method[]>>({\n\t\tvalue: null,\n\t\tflowState: 'pending',\n\t});\n\n\tconstructor(\n\t\tpublic readonly hostingService: HostingService,\n\t\tpublic readonly userSettingsService: UserSettingsService,\n\t\tpublic readonly universalConfig: UniversalConfig,\n\t\tprivate readonly authApiService: AuthApiService,\n\t\tprivate readonly unitService: UnitService,\n\t) {\n\t\t// Empty\n\t}\n\n\tpublic async whenMount() {\n\t\tconst result = await this.authApiService.getMethods(this.universalConfig.licenceHolderId);\n\t\tif (result.err) {\n\t\t\tthis.methods.value = {\n\t\t\t\tvalue: null,\n\t\t\t\tflowState: 'error',\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.methods.value = {\n\t\t\tvalue: result.ok.data.map((method) => ({\n\t\t\t\tscheme: method.Scheme,\n\t\t\t\tname: method.Name,\n\t\t\t\tdescription: method.Description,\n\t\t\t\tuseIframe: method.UseIframe,\n\t\t\t})),\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n\n\tpublic selectMethod(method: Method, returnUrl: string) {\n\t\tconst params = new URLSearchParams();\n\t\t// TODO: Return url should adapt to the outgoing page\n\t\tconst appendedReturnUrl = appendSearchParamToAnyString(this.getReturnUrl(returnUrl), 'openInApp', 'false');\n\t\tparams.append('returnUrl', appendedReturnUrl);\n\t\tparams.append('languageCode', this.userSettingsService.getSettings().selectedLanguage);\n\n\t\twindow.location.href = `${this.hostingService.location}/api/auth/${\n\t\t\tthis.universalConfig.licenceHolderId\n\t\t}/client/${method.scheme.toLowerCase()}/challenge?${params.toString()}`;\n\t}\n\n\tpublic getReturnUrl(url = ''): string {\n\t\tif (url === '') {\n\t\t\treturn window.location.href;\n\t\t}\n\n\t\tif (url.slice(0, 4) === 'http') {\n\t\t\treturn url;\n\t\t}\n\n\t\tconst urlFragments = [];\n\n\t\t// If the url starts with a slash, we assume it's a relative path to current reception root url\n\t\tif (url.slice(0, 1) === '/') {\n\t\t\tconst unit = this.unitService.getUnitNodeInTree(this.universalConfig.selectedUnitId);\n\t\t\turlFragments.push(this.hostingService.location, ...unit.route.split('/'));\n\t\t}\n\t\t// Otherwise, we assume it's a relative path to the current page\n\t\telse {\n\t\t\t// Special case to make Angular work.\n\t\t\tif ((window as typeof window & { __TEMP__: boolean }).__TEMP__) {\n\t\t\t\turlFragments.push(this.hostingService.location);\n\t\t\t} else {\n\t\t\t\turlFragments.push(this.hostingService.location, ...window.location.pathname.split('/'));\n\t\t\t}\n\t\t}\n\n\t\turlFragments.push(...url.split('/'));\n\n\t\t// Filter out empty strings and join the fragments\n\t\treturn urlFragments.filter(Boolean).join('/');\n\t}\n}\n\nexport interface Method {\n\tscheme: string;\n\tname: string;\n\tdescription: string | null;\n\tuseIframe: boolean;\n}\n","import { useResolve, useResolveController } from '@visiba-cortex/instantiation';\nimport { AuthController } from './auth.controller';\nimport { Async } from '@component/async.component';\nimport { Divider, Flex, NotificationAlert, SafeArea, Text, TextLink } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Shimmer } from '@component/new_shimmer.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { AuthMethodLink } from './_auth_method_link.component';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport styled from 'styled-components';\n\nexport function AuthMethods({ returnUrl }: Props): JSX.Element {\n\tconst controller = useResolveController(AuthController);\n\tconst universalConfig = useResolve(UniversalConfig);\n\n\treturn (\n\t\t<SafeArea maxWidth={'600px'}>\n\t\t\t<Flex gap={tokens.spacing.x2} color={tokens.color.content.default} style={{ width: '100%' }}>\n\t\t\t\t<Text.h1 variant='headingLarge'>{withTranslation('Feature.Auth.Methods.Header')}</Text.h1>\n\t\t\t\t<Text.p variant='bodyLargeRegular'>{withTranslation('Feature.Auth.Methods.Description')}</Text.p>\n\n\t\t\t\t<Async\n\t\t\t\t\tderive={controller.methods}\n\t\t\t\t\tfallback={\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t\t<Shimmer height={16} opacity={1} cornerRadius={6} width={'30%'} />\n\t\t\t\t\t\t\t\t<Shimmer height={64} opacity={1} />\n\t\t\t\t\t\t\t\t<Shimmer height={64} opacity={0.6} />\n\t\t\t\t\t\t\t\t<Shimmer height={64} opacity={0.4} />\n\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t<Divider decorative />\n\t\t\t\t\t\t\t<Shimmer height={24} opacity={0.4} cornerRadius={6} width={'50%'} />\n\t\t\t\t\t\t</>\n\t\t\t\t\t}\n\t\t\t\t\tcatch={<NotificationAlert variant='danger'>{withTranslation('Feature.Auth.Methods.FetchError')}</NotificationAlert>}\n\t\t\t\t>\n\t\t\t\t\t{(methods) => (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x1} style={{ margin: `${tokens.spacing.x0_5} 0` }}>\n\t\t\t\t\t\t\t\t<Text.h2 variant='labelSemiBold'>{withTranslation('Feature.Auth.Methods.Label')}</Text.h2>\n\t\t\t\t\t\t\t\t{methods.map((method) => (\n\t\t\t\t\t\t\t\t\t<AuthMethodLink\n\t\t\t\t\t\t\t\t\t\tkey={method.scheme}\n\t\t\t\t\t\t\t\t\t\tscheme={method.scheme}\n\t\t\t\t\t\t\t\t\t\ttitle={method.name}\n\t\t\t\t\t\t\t\t\t\tdescription={method.description ?? undefined}\n\t\t\t\t\t\t\t\t\t\tonClick={() => controller.selectMethod(method, returnUrl)}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</Flex>\n\n\t\t\t\t\t\t\t<Divider decorative />\n\n\t\t\t\t\t\t\t<StyledTextWrapper>\n\t\t\t\t\t\t\t\t<Text.p style={{ display: 'inline' }} variant='bodySmallRegular'>\n\t\t\t\t\t\t\t\t\t{withTranslation('Common.PP.ReadMore')}\n\t\t\t\t\t\t\t\t</Text.p>{' '}\n\t\t\t\t\t\t\t\t<TextLink size='small' href={universalConfig.legal.pp} target='_blank' icon='linkOut' iconPosition='trailing'>\n\t\t\t\t\t\t\t\t\t{withTranslation('Common.PP')}\n\t\t\t\t\t\t\t\t</TextLink>\n\t\t\t\t\t\t\t</StyledTextWrapper>\n\t\t\t\t\t\t</>\n\t\t\t\t\t)}\n\t\t\t\t</Async>\n\t\t\t</Flex>\n\t\t</SafeArea>\n\t);\n}\n\nconst StyledTextWrapper = styled.div`\n\tdisplay: inline;\n`;\n\ninterface Props {\n\treturnUrl: string;\n}\n","import { AuthMethodLink } from './_auth_method_link.component';\nimport { AuthMethods } from './_auth_methods.component';\nimport { AuthSignInSheet } from './_auth_sign_in_sheet.component';\n\nexport const Auth = {\n\tMethodLink: AuthMethodLink,\n\tMethods: AuthMethods,\n\tSignInSheet: AuthSignInSheet,\n};\n","import { Sheet } from '@cellula/react';\nimport { AuthMethods } from './_auth_methods.component';\nimport { Slot } from '@radix-ui/react-slot';\nimport { useResolveController } from '@visiba-cortex/instantiation';\nimport { AuthController } from './auth.controller';\nimport { useFeatureFlag } from '@application/feature_flags/use_feature_flag';\n\nexport function AuthSignInSheet({ returnUrl, trigger, onClose, onCloseAnimationEnd, onCloseAutoFocus, onOpen }: Props) {\n\tconst authController = useResolveController(AuthController);\n\tconst useIDP = useFeatureFlag('CareExperience.PW.Idp');\n\n\tif (!useIDP) {\n\t\tfunction handleTriggerClick() {\n\t\t\tonOpen?.();\n\t\t\twindow.dispatchEvent(\n\t\t\t\tnew CustomEvent('triggerSignIn', {\n\t\t\t\t\tdetail: { target: authController.getReturnUrl(returnUrl), openTargetWith: 'NativeNavigation', leave: false },\n\t\t\t\t}),\n\t\t\t);\n\t\t}\n\n\t\treturn <Slot onClick={handleTriggerClick}>{trigger}</Slot>;\n\t}\n\n\treturn (\n\t\t<Sheet\n\t\t\tlabel='' // We don't want any label. We will use a H1 in the AuthMethods component instead.\n\t\t\tonClose={onClose}\n\t\t\tonCloseAnimationEnd={onCloseAnimationEnd}\n\t\t\tonCloseAutoFocus={onCloseAutoFocus}\n\t\t\tonOpen={onOpen}\n\t\t\ttrigger={trigger}\n\t\t>\n\t\t\t<AuthMethods returnUrl={returnUrl} />\n\t\t</Sheet>\n\t);\n}\n\ninterface Props {\n\treturnUrl: string;\n\ttrigger: JSX.Element;\n\tonClose?: () => void;\n\tonCloseAnimationEnd?: () => void;\n\tonCloseAutoFocus?: (event: Event) => void;\n\tonOpen?: () => void;\n}\n","import { useResolve } from '@visiba-cortex/instantiation';\nimport { FeatureFlagService } from './feature_flag.service';\n\nexport function useFeatureFlag<T extends ExpectedFlags>(flag: keyof T): boolean {\n\tconst featureToggleService = useResolve(FeatureFlagService<T>);\n\n\tlet expectedFlag: boolean;\n\ttry {\n\t\texpectedFlag = featureToggleService.checkFlag(flag);\n\t} catch {\n\t\texpectedFlag = false;\n\t}\n\n\treturn expectedFlag;\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport { EventEmitter } from '@visiba/std';\n\n@Injectable()\nexport class CaseCommunicator extends EventEmitter<{\n\tremoveAppointment: string;\n}> {\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tpublic removeAppointmentCase(id: string) {\n\t\t// this.caseCommunicator.removeCase(this);\n\n\t\tthis.emit('removeAppointment', id);\n\t}\n}\n","import { Injectable, Injector } from '@visiba-cortex/instantiation';\nimport { EventEmitter } from '@visiba/std';\nimport { ListedData } from './case.service';\nimport { AppointmentCaseModel } from './case_appointment_model';\nimport { MessagingCaseModel } from './case_messaging_model';\nimport { UnhandledIssuesService } from '@feature/issues/unhandled_issues.service';\nimport { CaseCommunicator } from './_case_communicator';\nimport { APPOINTMENT_UNHANDLED_ISSUES_TRACKING_ID_PREFIX } from './common';\nimport type { CaseOtherApiModel } from '@api_patient/generated/clientv2/models';\n\n@Injectable()\nexport class CaseCacheService {\n\tpublic readonly signaler = new EventEmitter<{\n\t\tonCaseListUpdate: void;\n\t}>();\n\n\tprivate appointmentCases = new Map<string, AppointmentCaseModel>();\n\tprivate messagingCases = new Map<number, MessagingCaseModel>();\n\n\tconstructor(\n\t\tprivate readonly injector: Injector,\n\t\tprivate readonly unhandledIssuesService: UnhandledIssuesService,\n\t\tprivate readonly caseCommunicator: CaseCommunicator,\n\t) {\n\t\tthis.caseCommunicator.on('removeAppointment', (id) => {\n\t\t\tconst $case = this.appointmentCases.get(id);\n\t\t\tif ($case != null) {\n\t\t\t\tthis.removeCase($case);\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * We would want to remove this in favour of something a lot simpler.\n\t *\n\t * @deprecated\n\t * */\n\tpublic getGroupedCases(): {\n\t\tcompleted: {\n\t\t\tappointmentCases: AppointmentCaseModel[];\n\t\t\tmessagingCases: MessagingCaseModel[];\n\t\t};\n\t\tongoing: {\n\t\t\tappointmentCases: AppointmentCaseModel[];\n\t\t\tmessagingCases: MessagingCaseModel[];\n\t\t};\n\t} {\n\t\tconst completedAppointmentCases: AppointmentCaseModel[] = [];\n\t\tconst completedMessagingCases: MessagingCaseModel[] = [];\n\t\tconst ongoingAppointmentCases: AppointmentCaseModel[] = [];\n\t\tconst ongoingMessagingCases: MessagingCaseModel[] = [];\n\n\t\tfor (const appointmentCase of this.appointmentCases.values()) {\n\t\t\tconst data = appointmentCase.get();\n\n\t\t\tif (data.completed) {\n\t\t\t\tcompletedAppointmentCases.push(appointmentCase);\n\t\t\t} else {\n\t\t\t\tongoingAppointmentCases.push(appointmentCase);\n\t\t\t}\n\t\t}\n\n\t\tfor (const messagingCase of this.messagingCases.values()) {\n\t\t\tconst data = messagingCase.get();\n\n\t\t\tif (data.completed) {\n\t\t\t\tcompletedMessagingCases.push(messagingCase);\n\t\t\t} else {\n\t\t\t\tongoingMessagingCases.push(messagingCase);\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\tcompleted: {\n\t\t\t\tappointmentCases: completedAppointmentCases,\n\t\t\t\tmessagingCases: completedMessagingCases,\n\t\t\t},\n\t\t\tongoing: {\n\t\t\t\tappointmentCases: ongoingAppointmentCases,\n\t\t\t\tmessagingCases: ongoingMessagingCases,\n\t\t\t},\n\t\t};\n\t}\n\n\t/**\n\t * We would want to remove this in favour of something a lot simpler.\n\t *\n\t * @deprecated\n\t * */\n\tpublic getListedData(): ListedData {\n\t\tconst appointments = Array.from(this.appointmentCases.values());\n\t\tconst messaging = Array.from(this.messagingCases.values());\n\n\t\tconst listedData: ListedData = {\n\t\t\tappointmentCases: appointments,\n\t\t\tmessagingCases: messaging,\n\t\t};\n\n\t\treturn listedData;\n\t}\n\n\tpublic removeCase($case: MessagingCaseModel | AppointmentCaseModel): void {\n\t\tif ($case instanceof MessagingCaseModel) {\n\t\t\tthis.messagingCases.delete(parseInt($case.getIdentifier(), 10));\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.appointmentCases.delete($case.getIdentifier());\n\n\t\tthis.signaler.emit('onCaseListUpdate', void 0);\n\t}\n\n\tprivate createMessagingCase(id: number): MessagingCaseModel {\n\t\tconst caseModel = this.injector.resolve(MessagingCaseModel);\n\n\t\tthis.messagingCases.set(id, caseModel);\n\n\t\treturn caseModel;\n\t}\n\n\t/**\n\t * We would want to remove this in favour of something a lot simpler.\n\t *\n\t * @deprecated\n\t * */\n\tpublic updateMessagingCase(caseData: Readonly<CaseOtherApiModel>): MessagingCaseModel {\n\t\tif (caseData.MessageConversationId == null) throw new Error('did not expect \"MessageConversationId\" to be null');\n\n\t\tlet caseModel = this.messagingCases.get(caseData.MessageConversationId);\n\t\tif (caseModel == null) {\n\t\t\tcaseModel = this.createMessagingCase(caseData.MessageConversationId);\n\t\t}\n\n\t\tcaseModel.updateLesserData(caseData);\n\n\t\tconst unhandledIssuesTrackingId =\n\t\t\tMessagingCaseModel.MESSAGE_UNHANDLED_ISSUES_TRACKING_ID_PREFIX + caseData.MessageConversationId.toString();\n\t\tthis.parseUnhandledIssues(unhandledIssuesTrackingId, caseModel);\n\n\t\treturn caseModel;\n\t}\n\n\tprivate createAppointmentCase(id: string): AppointmentCaseModel {\n\t\tconst caseModel = this.injector.resolve(AppointmentCaseModel);\n\n\t\tthis.appointmentCases.set(id, caseModel);\n\n\t\treturn caseModel;\n\t}\n\n\t/**\n\t * We would want to remove this in favour of something a lot simpler.\n\t *\n\t * @deprecated\n\t * */\n\tpublic updateAppointmentCase(caseData: Readonly<CaseOtherApiModel>): AppointmentCaseModel {\n\t\tif (caseData.AppointmentTicket == null) throw new Error('did not expect \"AppointmentTicket\" to be null');\n\n\t\tlet caseModel = this.appointmentCases.get(caseData.AppointmentTicket);\n\t\tif (caseModel == null) {\n\t\t\tcaseModel = this.createAppointmentCase(caseData.AppointmentTicket);\n\t\t}\n\n\t\tcaseModel.updateLesserData(caseData);\n\n\t\tconst unhandledIssuesTrackingId = APPOINTMENT_UNHANDLED_ISSUES_TRACKING_ID_PREFIX + caseData.AppointmentTicket;\n\t\tthis.parseUnhandledIssues(unhandledIssuesTrackingId, caseModel);\n\n\t\treturn caseModel;\n\t}\n\n\t// TODO: This should be private but we need to expose it for OPW\n\tpublic parseUnhandledIssues(trackingId: string, caseModel: AppointmentCaseModel | MessagingCaseModel): void {\n\t\tthis.unhandledIssuesService.removeIssuesByTrackingId(trackingId);\n\t\tconst { issues, completed } = caseModel.get();\n\t\tArray.from(Array(issues.awaitFormResponses).keys()).forEach(() => {\n\t\t\tthis.unhandledIssuesService.addIssue(trackingId, [completed ? 'completed' : 'ongoing', 'awaitFormResponses']);\n\t\t});\n\t\tArray.from(Array(issues.awaitPayment).keys()).forEach(() => {\n\t\t\tthis.unhandledIssuesService.addIssue(trackingId, [completed ? 'completed' : 'ongoing', 'awaitPayment']);\n\t\t});\n\t\tArray.from(Array(issues.isNewCase ? 1 : 0).keys()).forEach(() => {\n\t\t\tthis.unhandledIssuesService.addIssue(trackingId, [completed ? 'completed' : 'ongoing', 'isNewCase']);\n\t\t});\n\t\tArray.from(Array(issues.unreadMessages).keys()).forEach(() => {\n\t\t\tthis.unhandledIssuesService.addIssue(trackingId, [completed ? 'completed' : 'ongoing', 'unreadMessages']);\n\t\t});\n\t}\n}\n","export type AppointmentType = 'physical' | 'video';\n\nexport type MessagingType = 'messaging';\n\nexport type CaseType = AppointmentType | MessagingType;\n\nexport interface Participant {\n\tdescriptiveTitle: string | null;\n\ttitle: string | null;\n\tleftTimestamp: string | null;\n\tname: string;\n\tprofileImageUrl: string | null;\n}\n\nexport const APPOINTMENT_UNHANDLED_ISSUES_TRACKING_ID_PREFIX = 'A_';\n","import { CasesApiService } from '@api_patient/cases_api.service';\nimport { Injectable } from '@visiba-cortex/instantiation';\nimport { Timer } from '@visiba/std';\nimport { MessagingCaseModel } from './case_messaging_model';\nimport { AppointmentCaseModel } from './case_appointment_model';\nimport { CaseCacheService } from './_case_cache.service';\nimport { DateService } from '@application/time/date.service';\n\nexport interface ListedData {\n\tappointmentCases: AppointmentCaseModel[];\n\tmessagingCases: MessagingCaseModel[];\n}\nexport type Disposer = () => void;\nexport type Callback = (data: ListedData) => void;\n\n@Injectable()\nexport class CaseService {\n\tprivate readonly FETCH_INTERVAL = 60_000;\n\tprivate fetchTimer = new Timer();\n\tprivate isFetching = false;\n\tprivate hasTimer = false;\n\n\tprivate callbacks: Callback[] = [];\n\n\tconstructor(\n\t\tprivate readonly casesApiService: CasesApiService,\n\t\tprivate readonly dateService: DateService,\n\t\tprivate readonly caseCache: CaseCacheService,\n\t) {\n\t\tthis.caseCache.signaler.on('onCaseListUpdate', () => {\n\t\t\tthis.updateSync();\n\t\t});\n\t}\n\n\tpublic pollData(callback: Callback): Disposer {\n\t\tconst index = this.callbacks.length;\n\t\tthis.callbacks.push(callback);\n\n\t\tthis.startScheduledFetch();\n\n\t\tconst listedData = this.caseCache.getListedData();\n\t\tif (listedData.appointmentCases.length > 0 || listedData.messagingCases.length > 0) {\n\t\t\tcallback(listedData);\n\t\t}\n\n\t\treturn () => {\n\t\t\tthis.callbacks.splice(index, 1);\n\n\t\t\tif (this.callbacks.length === 0) {\n\t\t\t\tthis.stopScheduledFetch();\n\t\t\t}\n\t\t};\n\t}\n\n\tpublic getGroupedCases(): {\n\t\tcompleted: {\n\t\t\tappointmentCases: AppointmentCaseModel[];\n\t\t\tmessagingCases: MessagingCaseModel[];\n\t\t};\n\t\tongoing: {\n\t\t\tappointmentCases: AppointmentCaseModel[];\n\t\t\tmessagingCases: MessagingCaseModel[];\n\t\t};\n\t} {\n\t\treturn this.caseCache.getGroupedCases();\n\t}\n\n\tpublic updateSync(): void {\n\t\tconst listedData = this.caseCache.getListedData();\n\n\t\tfor (const callback of this.callbacks) {\n\t\t\tcallback(listedData);\n\t\t}\n\t}\n\n\tprivate startScheduledFetch(): void {\n\t\tif (this.hasTimer) return;\n\n\t\tthis.hasTimer = true;\n\t\tthis.fetchTimer.repeat(() => this.fetch(), this.FETCH_INTERVAL, true);\n\t}\n\n\tprivate stopScheduledFetch(): void {\n\t\tthis.hasTimer = false;\n\t\tthis.isFetching = false;\n\t\tthis.fetchTimer.flush();\n\t}\n\n\tprivate async fetch(): Promise<void> {\n\t\tif (this.isFetching) return;\n\n\t\tthis.isFetching = true;\n\t\tconst result = await this.casesApiService.get();\n\t\t// TODO: handle error\n\t\tif (result.err) return;\n\n\t\tconst data = result.ok.data;\n\t\tthis.isFetching = false;\n\n\t\tfor (const caseData of data) {\n\t\t\tswitch (caseData.Type) {\n\t\t\t\tcase 'Appointment':\n\t\t\t\tcase 'PhysicalAppointment': {\n\t\t\t\t\tthis.caseCache.updateAppointmentCase(caseData);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 'MessagingConversation': {\n\t\t\t\t\tthis.caseCache.updateMessagingCase(caseData);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.updateSync();\n\t}\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport type { ClientPhysicalLocationApiModel } from './generated/clientv2/models';\nimport { HttpResponse, HttpService } from '@application/http.service';\nimport { ApiBaseClient } from './_api_base_client';\n\n@Injectable()\nexport class PhysicalLocationApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('receptions');\n\t}\n\n\tpublic getPhysicalLocation(physicalLocationId: number, receptionId: number): HttpResponse<ClientPhysicalLocationApiModel> {\n\t\treturn this.httpService.get(`${this.baseUri}/${receptionId}/PhysicalLocations/${physicalLocationId}`);\n\t}\n}\n","import { Injectable, Injector, Scopes } from '@visiba-cortex/instantiation';\nimport { Presentation } from '@visiba-cortex/presentation';\nimport { delay, Timer } from '@visiba/std';\nimport { DialogAlertSuccessError, toast } from '@cellula/react';\nimport { Issues, CaseModelShared } from './case_model_shared';\nimport { DateDisplayFormats, DateService } from '@application/time/date.service';\nimport { RouterService } from '@cortex-shim/router.service';\nimport { FormManager } from '@feature/dynamic_form/form_manager/mod';\nimport { UnhandledIssuesService } from '@feature/issues/unhandled_issues.service';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { FileWorkerStale } from '@feature/file_manager/file_worker/file_worker_stale';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { CounterState, createCounterState } from '@application/counter';\nimport { CasesApiService } from '@api_patient/cases_api.service';\nimport { AppointmentApiService } from '@api_patient/appointment_api.service';\nimport { CaseCommunicator } from './_case_communicator';\nimport { States } from '@api_patient/generated/clientv2/models/states';\nimport type { CaseOtherApiModel } from '@api_patient/generated/clientv2/models';\nimport type { PaymentApiModel, CurrencyDisplay } from '@api_patient/generated/clientv2/models';\nimport type { Participant, AppointmentType } from './common';\nimport type { AttemptData } from '@feature/payment/payment.controller';\nimport { UnitService } from '@application/unit.service';\nimport { PhysicalLocationApiService } from '@api_patient/physical_location_api.service';\n\ninterface Representative {\n\tfor: string;\n\tname: string;\n}\n\nexport interface AppointmentData {\n\treadonly ticket: string;\n\treadonly representative: Readonly<Representative> | null;\n\treadonly cancelable: boolean;\n\treadonly completed: boolean;\n\treadonly lobbyIsOpen: boolean;\n\treadonly date: VisibaDate;\n\treadonly reservedUntil: CounterState | null;\n\treadonly participants: Readonly<Participant>[];\n\treadonly receptionName: string;\n\treadonly rfv: Nullable<string>;\n\treadonly type: AppointmentType;\n\treadonly issues: Issues;\n\treadonly link: string | null;\n}\n\ninterface PhysicalLocation {\n\taddress: string;\n\taddress2: string;\n\tpostalCode: string;\n\tcity: string;\n\tcountry: string;\n\tlocationName: string;\n\tlocationDescription: string;\n\timageUrl: string | null;\n}\n\nexport interface MetaData {\n\treadonly bookingId: number;\n\treadonly files: FileWorkerStale[];\n\treadonly forms: FormManager;\n\treadonly rfv: string;\n\treadonly reason: string;\n\treadonly day: string;\n\treadonly time: string;\n\treadonly physicalLocation: PhysicalLocation | null;\n\treadonly payment: PaymentApiModel | null;\n\treadonly price: CurrencyDisplay | null;\n\treadonly vonageEncryptionRequired: boolean;\n}\n\ninterface Presentation {\n\treadonly data: AppointmentData | null;\n\treadonly metaData: MetaData | null;\n}\n\n@Injectable({\n\tscope: Scopes.Transient,\n})\nexport class AppointmentCaseModel extends CaseModelShared<AppointmentData> {\n\tpublic static readonly APPOINTMENT_UNHANDLED_ISSUES_TRACKING_ID_PREFIX = 'A_';\n\tpublic readonly presentation = Presentation.create<Presentation>({\n\t\tdata: null,\n\t\tmetaData: null,\n\t});\n\n\tconstructor(\n\t\tprivate readonly dateService: DateService,\n\t\tprivate readonly appointmentApiService: AppointmentApiService,\n\t\tprivate readonly physicalLocationApiService: PhysicalLocationApiService,\n\t\tprivate readonly routerService: RouterService,\n\t\tprivate readonly injector: Injector,\n\t\tprivate readonly unhandledIssuesService: UnhandledIssuesService,\n\t\tprivate readonly casesApiService: CasesApiService,\n\t\tprivate readonly caseCommunicator: CaseCommunicator,\n\t\tprivate readonly analyticService: AnalyticService,\n\t\tprivate readonly unitService: UnitService,\n\t) {\n\t\tsuper();\n\t}\n\n\tpublic updateLesserData(caseData: CaseOtherApiModel): void {\n\t\tif (caseData.AppointmentTicket == null) throw new Error('Invalid appointment');\n\n\t\tconst participants: Participant[] = [];\n\t\tfor (const participant of caseData.OtherParticipants) {\n\t\t\tparticipants.push({\n\t\t\t\tdescriptiveTitle: participant.DescriptiveTitle,\n\t\t\t\ttitle: participant.Title,\n\t\t\t\tleftTimestamp: participant.LeftTimestamp,\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\tname: participant.Name ?? '',\n\t\t\t\tprofileImageUrl: participant.ProfileImageUrl,\n\t\t\t});\n\t\t}\n\n\t\tlet type: AppointmentType;\n\t\tswitch (caseData.Type) {\n\t\t\tcase 'Appointment': {\n\t\t\t\ttype = 'video';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 'PhysicalAppointment': {\n\t\t\t\ttype = 'physical';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tthrow new Error('Unimplemented type');\n\t\t\t}\n\t\t}\n\n\t\t// const unit = this.unitService.getUnitNodeInTree(caseData.UnitId);\n\n\t\tlet representative: Representative | null = null;\n\t\tif (caseData.AsAgentFor) {\n\t\t\trepresentative = {\n\t\t\t\tfor: caseData.AsAgentFor,\n\t\t\t\tname: caseData.AsAgentForName ?? '',\n\t\t\t};\n\t\t}\n\n\t\tconst unit = this.unitService.getUnitNodeInTree(caseData.UnitId);\n\t\tconst route = '/' + unit.routeWithoutLicenceholder + '/appointment/' + caseData.AppointmentTicket;\n\n\t\tconst link = caseData.Type === 'Appointment' ? route : null;\n\n\t\tlet reservedUntil: CounterState | null = null;\n\t\tif (caseData.Reserved && caseData.ReservedUntil != null) {\n\t\t\treservedUntil = createCounterState(this.dateService.newDate(caseData.ReservedUntil));\n\t\t}\n\n\t\tconst startDate = this.dateService.newDate(caseData.Time);\n\t\tconst now = this.dateService.newDate();\n\n\t\t// Lobby opens 15 minutes before the start time\n\t\tconst lobbyIsOpen = now.isBetween(startDate.subtract(15, 'm'), startDate.endOf('day'));\n\n\t\tthis.presentation.write({\n\t\t\tdata: {\n\t\t\t\ttype,\n\t\t\t\tlink,\n\t\t\t\trepresentative,\n\t\t\t\treservedUntil,\n\t\t\t\tlobbyIsOpen,\n\t\t\t\tcancelable: caseData.Cancelable,\n\t\t\t\tticket: caseData.AppointmentTicket,\n\t\t\t\tcompleted: caseData.Completed,\n\t\t\t\tdate: this.dateService.create(caseData.Time),\n\t\t\t\tparticipants: participants,\n\t\t\t\treceptionName: caseData.ReceptionName ?? '',\n\t\t\t\tissues: this.parseIssues(caseData),\n\t\t\t\trfv: caseData.Condition,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic async updateExtendedData() {\n\t\tconst result = await this.appointmentApiService.get(this.getIdentifier());\n\t\t// TODO: handle error\n\t\tif (result.err) return;\n\n\t\tconst data = result.ok.data;\n\t\tlet physicalLocation: PhysicalLocation | null = null;\n\n\t\tif (data.PhysicalLocationId != null) {\n\t\t\tconst physicalLocationResponse = await this.physicalLocationApiService.getPhysicalLocation(\n\t\t\t\tdata.PhysicalLocationId,\n\t\t\t\tdata.ReceptionId,\n\t\t\t);\n\n\t\t\tif (physicalLocationResponse.ok) {\n\t\t\t\tconst location = physicalLocationResponse.ok.data;\n\t\t\t\tphysicalLocation = {\n\t\t\t\t\taddress: location.Address ?? '',\n\t\t\t\t\taddress2: location.Address2 ?? '',\n\t\t\t\t\tpostalCode: location.PostalCode ?? '',\n\t\t\t\t\tcity: location.City ?? '',\n\t\t\t\t\tcountry: location.Country ?? '',\n\t\t\t\t\tlocationName: location.Name ?? '',\n\t\t\t\t\tlocationDescription: location.Description ?? '',\n\t\t\t\t\timageUrl: location.ImageUrl,\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\n\t\tconst startDate = this.dateService.create(data.Start);\n\t\tconst endDate = startDate.add(data.Duration, 'minutes');\n\t\tconst day = startDate.format(\n\t\t\tthis.dateService.getLocaleSpecificDateFormatTemplate(DateDisplayFormats.FULL_DISPLAY_NO_TIME_WEEKDAY),\n\t\t);\n\t\tconst start = startDate.format('LT');\n\t\tconst end = endDate.format('LT');\n\n\t\tconst files = data.Files.map(\n\t\t\t(file) =>\n\t\t\t\tnew FileWorkerStale({\n\t\t\t\t\tdownloadUrl: file.DownloadUrl ?? '',\n\t\t\t\t\tfileName: file.Name,\n\t\t\t\t\tfileSize: file.Length,\n\t\t\t\t\tfileType: file.Type,\n\t\t\t\t\tthumbnailUrl: file.ThumbnailUrl ?? undefined,\n\t\t\t\t}),\n\t\t);\n\n\t\tconst formHandler = this.injector.resolve(FormManager);\n\t\tformHandler.addRespondants(\n\t\t\tdata.Forms.map((form) => ({\n\t\t\t\tcompleted: form.Completed,\n\t\t\t\tformId: form.FormId,\n\t\t\t\theader: form.Header ?? '',\n\t\t\t\topportunity: form.Opportunity,\n\t\t\t\trespondantId: form.RespondantId,\n\t\t\t\tissueTrackingId: AppointmentCaseModel.APPOINTMENT_UNHANDLED_ISSUES_TRACKING_ID_PREFIX + this.getIdentifier(),\n\t\t\t\tdataProvider: {\n\t\t\t\t\ttype: 'respondant',\n\t\t\t\t\trespondantId: form.RespondantId,\n\t\t\t\t},\n\t\t\t})),\n\t\t);\n\n\t\tthis.presentation.write({\n\t\t\tmetaData: {\n\t\t\t\tday,\n\t\t\t\tfiles,\n\t\t\t\tbookingId: data.BookingId,\n\t\t\t\tforms: formHandler,\n\t\t\t\treason: data.Reason ?? '',\n\t\t\t\trfv: data.Condition?.Name ?? '',\n\t\t\t\ttime: `${start} - ${end} (${data.Duration} ${withTranslation('Common.Word.Minutes').toLocaleLowerCase()})`,\n\t\t\t\tphysicalLocation: physicalLocation,\n\t\t\t\tpayment: data?.Payment ?? null,\n\t\t\t\tprice: data?.Price ?? null,\n\t\t\t\tvonageEncryptionRequired: data?.VonageEncryptionRequired ?? false,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic markAsSeen(): void {\n\t\tconst data = this.get();\n\n\t\tthis.casesApiService.deleteNewIncoming(data.ticket).catch(() => {\n\t\t\t// noop\n\t\t});\n\n\t\tthis.unhandledIssuesService.removeArbitraryIssue(\n\t\t\tAppointmentCaseModel.APPOINTMENT_UNHANDLED_ISSUES_TRACKING_ID_PREFIX + this.getIdentifier(),\n\t\t\t['isNewCase'],\n\t\t);\n\t}\n\n\tpublic markAsPayed(data: AttemptData): void {\n\t\tconst prev = this.presentation.read();\n\t\tif (prev.data == null) throw new Error('did not expect data to be null here');\n\t\tif (prev.metaData == null) throw new Error('did not expect metaData to be null here');\n\t\tif (prev.metaData.payment == null) throw new Error('did not expect payment field to be null here');\n\n\t\tthis.presentation.write({\n\t\t\tdata: {\n\t\t\t\t...prev.data,\n\t\t\t\treservedUntil: null,\n\t\t\t},\n\t\t\tmetaData: {\n\t\t\t\t...prev.metaData,\n\t\t\t\tpayment: {\n\t\t\t\t\t...prev.metaData.payment,\n\t\t\t\t\tReceiptUrl: data.receiptUrl as string,\n\t\t\t\t\tState: States.Paid,\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic get(): AppointmentData {\n\t\tconst data = this.presentation.read().data;\n\t\tif (data == null) throw new Error('Did not expect data to be null');\n\n\t\treturn data;\n\t}\n\n\tpublic getIdentifier(): string {\n\t\tconst data = this.presentation.read().data;\n\t\tif (data?.ticket == null) throw new Error('data not set');\n\n\t\treturn data.ticket;\n\t}\n\n\tpublic getBookingId(): number {\n\t\tconst metaData = this.presentation.read().metaData;\n\t\tif (metaData == null) throw new Error('metaData not set');\n\n\t\treturn metaData.bookingId;\n\t}\n\n\tpublic remove(): void {\n\t\tthis.caseCommunicator.removeAppointmentCase(this.getIdentifier());\n\t\tthis.unhandledIssuesService.removeIssuesByTrackingId(\n\t\t\tAppointmentCaseModel.APPOINTMENT_UNHANDLED_ISSUES_TRACKING_ID_PREFIX + this.getIdentifier(),\n\t\t);\n\t}\n\n\tpublic async cancelAppointment(): Promise<void> {\n\t\ttry {\n\t\t\tawait delay(250);\n\n\t\t\tconst { participants } = this.get();\n\t\t\tif (participants.length > 1) {\n\t\t\t\tawait this.appointmentApiService.decline(this.getBookingId());\n\t\t\t} else {\n\t\t\t\tawait this.appointmentApiService.cancel(this.getIdentifier());\n\t\t\t}\n\n\t\t\tthis.remove();\n\n\t\t\tthis.routerService.navigateByUrl('/visits');\n\n\t\t\tTimer.wait(() => {\n\t\t\t\ttoast({\n\t\t\t\t\tlabel: withTranslation('PW.Component.Visits.AppointmentInfo.CancelCall.SuccessToast'),\n\t\t\t\t\tvariant: 'success',\n\t\t\t\t});\n\t\t\t}, 300);\n\t\t} catch {\n\t\t\tthrow new DialogAlertSuccessError(withTranslation('PW.Component.Visits.AppointmentInfo.CancelCall.Error'));\n\t\t}\n\t}\n\n\tpublic analyticQuirk_trackOnMountInVisitsView(): void {\n\t\tconst data = this.get();\n\n\t\tthis.analyticService.trackEvent(\n\t\t\tAnalyticCategories.Visits,\n\t\t\t`Opened: ${data.type === 'physical' ? 'Physical' : 'Video'} appointment (${data.completed ? 'completed' : 'ongoing'})`,\n\t\t);\n\t}\n}\n","import { HttpResponse, HttpService } from '@application/http.service';\nimport { ApiBaseClient } from './_api_base_client';\nimport { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport type { ClientPersonalizedCaseResult } from './generated/clientv2/models';\n\n@Injectable({\n\tscope: Scopes.Transient,\n})\nexport class MessagingConversationsApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('MessagingConversations');\n\t}\n\n\tpublic getMessagingConversation(id: string): HttpResponse<ClientPersonalizedCaseResult> {\n\t\treturn this.httpService.get(`${this.baseUri}/case/${id}`);\n\t}\n}\n","import { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { DateService } from '@application/time/date.service';\nimport { Presentation } from '@visiba-cortex/presentation';\nimport { CaseModelShared, Issues } from './case_model_shared';\nimport { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { MessagingConversationsApiService } from '@api_patient/messaging_conversations_api.service';\nimport type { Participant } from './common';\nimport type { CaseOtherApiModel } from '@api_patient/generated/clientv2/models';\n\nexport interface MessagingData {\n\treadonly id: string;\n\treadonly completed: boolean;\n\treadonly date: VisibaDate;\n\treadonly participants: Readonly<Participant>[];\n\treadonly receptionName: string;\n\treadonly issues: Issues;\n\treadonly rfv: Nullable<string>;\n}\n\nexport interface MessagingMetaData {\n\treadonly hasReadUntilTimestamp: VisibaDate | undefined;\n\treadonly lastMessageTimestamp: VisibaDate | undefined;\n\treadonly allowClientResponse: boolean;\n\treadonly completedTimestamp: VisibaDate | undefined;\n\treadonly receiptUrl: Nullable<string>;\n}\n\ninterface Presentation {\n\treadonly data: MessagingData | null;\n\treadonly metaData: MessagingMetaData | null;\n}\n\n@Injectable({\n\tscope: Scopes.Transient,\n})\nexport class MessagingCaseModel extends CaseModelShared<MessagingData> {\n\tpublic static readonly MESSAGE_UNHANDLED_ISSUES_TRACKING_ID_PREFIX = 'M_';\n\tpublic readonly presentation = Presentation.create<Presentation>({\n\t\tdata: null,\n\t\tmetaData: null,\n\t});\n\n\tconstructor(\n\t\tprivate readonly dateService: DateService,\n\t\tprivate readonly messagingConversationsApiService: MessagingConversationsApiService,\n\t\tprivate readonly analyticService: AnalyticService,\n\t) {\n\t\tsuper();\n\t}\n\n\tpublic updateLesserData(caseData: CaseOtherApiModel): void {\n\t\tif (caseData.MessageConversationId == null) throw new Error('Invalid messaging');\n\n\t\tconst participants: Participant[] = [];\n\t\tfor (const participant of caseData.OtherParticipants) {\n\t\t\tparticipants.push({\n\t\t\t\tdescriptiveTitle: participant.DescriptiveTitle,\n\t\t\t\ttitle: participant.Title,\n\t\t\t\tleftTimestamp: participant.LeftTimestamp,\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\tname: participant.Name ?? '',\n\t\t\t\tprofileImageUrl: participant.ProfileImageUrl,\n\t\t\t});\n\t\t}\n\n\t\tthis.presentation.write({\n\t\t\tdata: {\n\t\t\t\tid: caseData.MessageConversationId.toString(),\n\t\t\t\tcompleted: caseData.Completed,\n\t\t\t\tdate: this.dateService.newDate(caseData.Time),\n\t\t\t\tparticipants: participants,\n\t\t\t\treceptionName: caseData.ReceptionName ?? '',\n\t\t\t\tissues: this.parseIssues(caseData),\n\t\t\t\trfv: caseData.Condition,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic get(): MessagingData {\n\t\tconst data = this.presentation.read().data;\n\t\tif (data == null) throw new Error('Did not expect data to be null');\n\n\t\treturn data;\n\t}\n\n\tpublic updateExtendedData(): void {\n\t\tthis.messagingConversationsApiService.getMessagingConversation(this.getIdentifier()).then((result) => {\n\t\t\tif (result.err) return;\n\n\t\t\tconst data = result.ok.data;\n\t\t\tconst lastMessageTimestamp =\n\t\t\t\t// TODO PAT-426: Missing type? LastMessageTimestamp\n\t\t\t\t(data as unknown as { LastMessageTimestamp: string }).LastMessageTimestamp != null\n\t\t\t\t\t? // TODO PAT-426: Missing type? LastMessageTimestamp\n\t\t\t\t\t\tthis.dateService.newDate((data as unknown as { LastMessageTimestamp: string }).LastMessageTimestamp)\n\t\t\t\t\t: undefined;\n\t\t\tconst hasReadUntilTimestamp =\n\t\t\t\tdata.HasReadUntilTimestamp != null ? this.dateService.newDate(data.HasReadUntilTimestamp) : undefined;\n\t\t\tconst completedTimestamp = data.CompletedTimestamp != null ? this.dateService.newDate(data.CompletedTimestamp) : undefined;\n\n\t\t\tthis.presentation.write({\n\t\t\t\tmetaData: {\n\t\t\t\t\tlastMessageTimestamp: lastMessageTimestamp,\n\t\t\t\t\thasReadUntilTimestamp: hasReadUntilTimestamp,\n\t\t\t\t\tcompletedTimestamp: completedTimestamp,\n\t\t\t\t\tallowClientResponse: data.AllowClientResponse,\n\t\t\t\t\treceiptUrl: data.PaymentInfo?.ReceiptUrl ?? null,\n\t\t\t\t},\n\t\t\t});\n\t\t});\n\t}\n\n\tpublic getIdentifier(): string {\n\t\tconst data = this.presentation.read().data;\n\t\tif (data?.id == null) throw new Error('data not set');\n\n\t\treturn data.id;\n\t}\n\n\tpublic markAsCompleted(date: VisibaDate): void {\n\t\tthis.presentation.write((data) => {\n\t\t\tconst prev = data.extract();\n\t\t\tif (prev.metaData == null) return prev;\n\n\t\t\treturn {\n\t\t\t\tmetaData: {\n\t\t\t\t\t...prev.metaData,\n\t\t\t\t\tcompletedTimestamp: date,\n\t\t\t\t},\n\t\t\t};\n\t\t});\n\t}\n\n\tpublic markAsRead(): void {\n\t\tthis.presentation.write((data) => {\n\t\t\tconst prev = data.extract();\n\t\t\tif (prev.data == null) return prev;\n\n\t\t\tconst issues = prev.data.issues as Issues;\n\n\t\t\treturn {\n\t\t\t\tdata: {\n\t\t\t\t\t...prev.data,\n\t\t\t\t\tissues: {\n\t\t\t\t\t\t...issues,\n\t\t\t\t\t\tunreadMessages: 0,\n\t\t\t\t\t\ttotalCount: issues.totalCount - issues.unreadMessages,\n\t\t\t\t\t} as Issues,\n\t\t\t\t},\n\t\t\t};\n\t\t});\n\t}\n\n\tpublic analyticQuirk_trackOnMountInVisitsView(): void {\n\t\tconst data = this.get();\n\n\t\tthis.analyticService.trackEvent(AnalyticCategories.Visits, `Opened: Messaging case (${data.completed ? 'completed' : 'ongoing'})`);\n\t}\n}\n","import { clamp } from '@visiba/std';\nimport type { CaseOtherApiModel } from '@api_patient/generated/clientv2/models';\n\nexport interface Issues {\n\treadonly totalCount: number;\n\treadonly awaitPayment: number;\n\treadonly unreadMessages: number;\n\treadonly awaitFormResponses: number;\n\treadonly isNewCase: boolean;\n}\n\nexport abstract class CaseModelShared<T = unknown> {\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\tabstract updateLesserData(caseData: CaseOtherApiModel): void;\n\tabstract get(): T;\n\tabstract getIdentifier(): string | number;\n\n\tprotected parseIssues(caseData: CaseOtherApiModel): Issues {\n\t\tlet unreadMessages = 0;\n\t\tlet awaitFormResponses = 0;\n\t\tlet awaitPayment = 0;\n\t\tlet isNewCase = 0;\n\t\tfor (const issue of caseData.UnhandledIssues) {\n\t\t\tif (issue === 'UnreadMessages') {\n\t\t\t\tunreadMessages++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (issue === 'AwaitingFormResponse') {\n\t\t\t\tawaitFormResponses++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (issue === 'AwaitingPayment') {\n\t\t\t\tawaitPayment++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (issue === 'NewIncoming') {\n\t\t\t\tisNewCase = 1;\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\ttotalCount: clamp(unreadMessages + awaitFormResponses + awaitPayment + isNewCase, [0, Infinity]),\n\t\t\tisNewCase: !!isNewCase,\n\t\t\tawaitPayment: clamp(awaitPayment, [0, Infinity]),\n\t\t\tunreadMessages: clamp(unreadMessages, [0, Infinity]),\n\t\t\tawaitFormResponses: clamp(awaitFormResponses, [0, Infinity]),\n\t\t};\n\t}\n}\n","// 🚨 Know your side effects before using this... 🚨\n//\n// iOS can get a tendency to lock the keyboard x px when the user unblurs. The\n// process to get unstuck is a convoluted since the user needs to scroll the\n// viewport.\n//\n// But using this quirk makes this never be an issue but.\nexport function quirk_iOSKeyboardLockBodyScroll(): void {\n\tglobalThis.scrollY = 0;\n\tglobalThis.scrollBy(0, 0);\n\n\trequestAnimationFrame(() => {\n\t\tglobalThis.scrollY = 0;\n\t\tglobalThis.scrollBy(0, 0);\n\t});\n}\n","import styled from 'styled-components';\nimport { Button, FileViewer, Flex, Spacer, InputTextArea, Form, CellulaFormSubmitData, CellulaFormControl } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { AttachedFile } from '@feature/file_manager/attached_file.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { ChangeEvent, useRef, useState, useEffect, useCallback } from 'react';\nimport { AnimatePresence, motion, Variants } from 'framer-motion';\nimport { FileManagerService } from '@feature/file_manager/file_manager.service';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { useFileWorkerList } from '@feature/file_manager/use_file_worker_list';\nimport { rem } from '@visiba/std';\nimport { quirk_iOSKeyboardLockBodyScroll } from '@module/quirk_ios_keyboard_lock_body_scroll';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { PlatformList, PlatformService } from '@application/platform.service';\n\ninterface Props {\n\tonSend: (message: string | null, fileTickets: string[]) => void;\n\tfileUploadDispositionUri: string;\n\tisReadyForCommunication: boolean;\n\t/**\n\t * This is passed down to make sure that a11y focus when chat is open/changed gets applied correctly.\n\t */\n\tconnectedId: string;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tmin-height: 130px;\n\t\twidth: 100%;\n\t\tpadding: ${tokens.spacing.x1} ${tokens.spacing.x2} ${tokens.spacing.x2_5};\n\t\tcontainer: ChatInputAreaContainer / inline-size;\n\n\t\t@media screen and (min-width: 905px) {\n\t\t\tpadding: ${tokens.spacing.x1} ${tokens.spacing.x4} ${tokens.spacing.x2_5};\n\t\t}\n\t`,\n\tsenderContainer: styled.div`\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t\tflex-direction: column;\n\t\tpadding: ${tokens.spacing.x1_5} ${tokens.spacing.x2};\n\t\tborder-radius: 8px;\n\t\twidth: 100%;\n\t\tgap: ${tokens.spacing.x0_5};\n\t`,\n\tattachedFilesContainer: styled.div`\n\t\tmargin-top: ${tokens.spacing.x1_5};\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tgap: ${tokens.spacing.x1_5};\n\n\t\t@container ChatInputAreaContainer (min-width: 950px) {\n\t\t\tmargin-top: ${tokens.spacing.x1_5};\n\t\t\tdisplay: grid;\n\t\t\tgrid-template-columns: repeat(3, 1fr);\n\t\t\tgap: ${tokens.spacing.x1};\n\t\t}\n\t`,\n\tinputContainer: styled.div`\n\t\tposition: relative;\n\t`,\n\tinput: styled.input`\n\t\tall: unset;\n\t\tcolor: ${tokens.color.content.default};\n\n\t\t&::placeholder {\n\t\t\tcolor: ${tokens.color.content.placeholder};\n\t\t}\n\t`,\n\tvalidationErrorMessage: styled.span`\n\t\tcolor: ${tokens.color.danger.contentMuted};\n\t\tposition: absolute;\n\t\ttop: 100%;\n\t\tleft: 0;\n\t\tpadding: 0 5px;\n\t`,\n\tattachedFileMotion: styled(motion.div)`\n\t\twidth: 100%;\n\t\ttransform-origin: bottom left 60px;\n\t\tmin-width: 0;\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\twidth: unset;\n\t\t}\n\t`,\n\ticon: styled.span`\n\t\tvertical-align: middle;\n\t\tfont-size: ${rem(21)};\n\t\tcolor: ${tokens.color.danger.border};\n\t\tposition: absolute;\n\t\ttop: auto;\n\t\tright: ${tokens.spacing.x1_5};\n\t`,\n};\n\nconst MAX_CHARACTERS = 4000;\n\nexport function ChatInputArea({ onSend, fileUploadDispositionUri, isReadyForCommunication, connectedId }: Props) {\n\tconst fileManagerService = useService(FileManagerService);\n\tconst fileWorkers = useFileWorkerList(fileManagerService);\n\tconst [disableSend, setDisableSend] = useState(false);\n\tconst hiddenFileInput = useRef<HTMLInputElement>(null);\n\tconst analyticCtx = useAnalyticContext();\n\tconst platformService = useService(PlatformService);\n\tconst containerRef = useRef(null);\n\tconst [showCharCount, setShowCharCount] = useState(false);\n\n\tconst inputRef = useRef<HTMLInputElement>(null);\n\n\tuseEffect(\n\t\tfunction whenChatIsOpenSetFocusOnRegion() {\n\t\t\tif (platformService.runtimeSupportsTouch === false) {\n\t\t\t\tinputRef.current?.focus();\n\t\t\t}\n\t\t},\n\t\t[connectedId, platformService],\n\t);\n\n\tconst uploadFiles = useCallback(\n\t\tfunction uploadFiles(fileList: Nullable<FileList>) {\n\t\t\tif (fileList != null) {\n\t\t\t\tfileManagerService.assignWorker(fileList, fileUploadDispositionUri);\n\t\t\t}\n\n\t\t\t// This needs to check for another batch of files after the first batch is\n\t\t\t// being uploaded.\n\t\t\tsetDisableSend(true);\n\t\t\tqueueMicrotask(async () => {\n\t\t\t\tconst workers = fileManagerService.peakWorkerList();\n\t\t\t\tconst promises = [];\n\t\t\t\tfor (const worker of workers) {\n\t\t\t\t\tpromises.push(worker.upload());\n\t\t\t\t\tanalyticCtx.trackEvent('Uploaded attachment');\n\t\t\t\t}\n\n\t\t\t\tawait Promise.allSettled(promises)\n\t\t\t\t\t.then(() => {\n\t\t\t\t\t\tsetDisableSend(false);\n\t\t\t\t\t})\n\t\t\t\t\t.catch(() => {\n\t\t\t\t\t\tsetDisableSend(true);\n\t\t\t\t\t});\n\t\t\t});\n\t\t},\n\t\t[analyticCtx, fileManagerService, fileUploadDispositionUri],\n\t);\n\n\tuseEffect(\n\t\tfunction bindPasteImage() {\n\t\t\tconst abortController = new AbortController();\n\n\t\t\tdocument.addEventListener(\n\t\t\t\t'paste',\n\t\t\t\t(e) => {\n\t\t\t\t\tconst clipboardItems = e.clipboardData?.files ?? new FileList();\n\n\t\t\t\t\tif (clipboardItems.length > 0) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\tuploadFiles(clipboardItems);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tsignal: abortController.signal,\n\t\t\t\t},\n\t\t\t);\n\n\t\t\treturn () => {\n\t\t\t\tabortController.abort();\n\t\t\t};\n\t\t},\n\t\t[uploadFiles],\n\t);\n\n\tfunction handleUploadFileButtonClick() {\n\t\thiddenFileInput.current?.click();\n\t}\n\n\tfunction handleSubmit(body: CellulaFormSubmitData) {\n\t\tconst expectedUploadsLength = fileManagerService.peakUploadedWorkers().length;\n\t\tconst addedWorkersLength = fileManagerService.peakWorkerList().length;\n\n\t\tif (!isReadyForCommunication) return false;\n\t\tif (addedWorkersLength !== 0 && expectedUploadsLength !== addedWorkersLength) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst fileTickets = fileManagerService.flushUploadedIdentities();\n\t\tonSend(body.message ? body.message : null, fileTickets);\n\n\t\treturn true;\n\t}\n\n\tfunction handleFileChange(event: ChangeEvent<HTMLInputElement>) {\n\t\tuploadFiles(event.target.files);\n\n\t\tevent.target.value = '';\n\t\tinputRef.current?.focus();\n\t\t// TODO PAT-569: Send message to aria-live\n\t}\n\n\tfunction handleRemoveFileClick(id: string) {\n\t\tfileManagerService.dropWorker(id);\n\t\tanalyticCtx.trackEvent('Removed uploaded attachment');\n\t}\n\n\tfunction handleInputMessageBlur() {\n\t\tquirk_iOSKeyboardLockBodyScroll();\n\t}\n\n\tfunction handleEnterKey(event: React.KeyboardEvent<HTMLTextAreaElement>) {\n\t\tif (event.key !== 'Enter') return;\n\t\tif (platformService.platformIs(PlatformList.Mobile)) return;\n\t\tif (event.shiftKey) return;\n\n\t\tevent.preventDefault();\n\t\tevent.currentTarget.form?.dispatchEvent(new Event('submit', { bubbles: true, cancelable: true }));\n\t}\n\n\tfunction handleAfterSubmit(_: CellulaFormSubmitData, control: CellulaFormControl) {\n\t\tcontrol.reset({\n\t\t\tmessage: '',\n\t\t});\n\t}\n\n\treturn (\n\t\t<Form.Root\n\t\t\tonSubmit={handleSubmit}\n\t\t\tonAfterSubmit={handleAfterSubmit}\n\t\t\toptions={{\n\t\t\t\tdefaultValues: {\n\t\t\t\t\tmessage: '',\n\t\t\t\t},\n\t\t\t}}\n\t\t>\n\t\t\t<elements.container ref={containerRef}>\n\t\t\t\t<elements.senderContainer>\n\t\t\t\t\t<InputTextArea\n\t\t\t\t\t\tonBlur={handleInputMessageBlur}\n\t\t\t\t\t\tonKeyDown={handleEnterKey}\n\t\t\t\t\t\tname='message'\n\t\t\t\t\t\tlabel=''\n\t\t\t\t\t\tplaceholder={withTranslation('C.Component.AppointmentChat.MessageInput.Placeholder')}\n\t\t\t\t\t\tmaxHeight={200}\n\t\t\t\t\t\tautoHeight\n\t\t\t\t\t\t// TODO - CHAR COUNT REACT HOOK FORM: These character count props should be replace with react hook form later.\n\t\t\t\t\t\tcharacterCount={MAX_CHARACTERS}\n\t\t\t\t\t\talwaysShowCharacterCount={showCharCount}\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tsetShowCharCount(e.target.value.length > MAX_CHARACTERS - 500);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\toptions={{\n\t\t\t\t\t\t\tmaxLength: {\n\t\t\t\t\t\t\t\tmessage: withTranslation('PW.Component.Chat.InputValidationErrorMessage.MaxCharNumber'),\n\t\t\t\t\t\t\t\tvalue: MAX_CHARACTERS,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\n\t\t\t\t\t{fileWorkers.length > 0 ? (\n\t\t\t\t\t\t<FileViewer.Root showDownload={false}>\n\t\t\t\t\t\t\t<elements.attachedFilesContainer>\n\t\t\t\t\t\t\t\t<AnimatePresence presenceAffectsLayout>\n\t\t\t\t\t\t\t\t\t{fileWorkers.map((worker, index) => (\n\t\t\t\t\t\t\t\t\t\t<elements.attachedFileMotion\n\t\t\t\t\t\t\t\t\t\t\tkey={worker.id}\n\t\t\t\t\t\t\t\t\t\t\tcustom={index}\n\t\t\t\t\t\t\t\t\t\t\tlayout\n\t\t\t\t\t\t\t\t\t\t\tvariants={motionVariants}\n\t\t\t\t\t\t\t\t\t\t\tinitial='hidden'\n\t\t\t\t\t\t\t\t\t\t\tanimate='visible'\n\t\t\t\t\t\t\t\t\t\t\texit='hidden'\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<AttachedFile worker={worker} onRemoveClick={handleRemoveFileClick} />\n\t\t\t\t\t\t\t\t\t\t</elements.attachedFileMotion>\n\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t</AnimatePresence>\n\t\t\t\t\t\t\t</elements.attachedFilesContainer>\n\t\t\t\t\t\t</FileViewer.Root>\n\t\t\t\t\t) : null}\n\t\t\t\t</elements.senderContainer>\n\n\t\t\t\t<Spacer vertical={tokens.spacing.x2} />\n\n\t\t\t\t<Flex direction='row' align='center' justify='space-between'>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tdisabled={!isReadyForCommunication}\n\t\t\t\t\t\tdisabledText=''\n\t\t\t\t\t\tvariant='ghost'\n\t\t\t\t\t\tsize='medium'\n\t\t\t\t\t\ticon='paperClip'\n\t\t\t\t\t\ticonPosition='leading'\n\t\t\t\t\t\tonClick={handleUploadFileButtonClick}\n\t\t\t\t\t>\n\t\t\t\t\t\t{withTranslation('PW.Component.Chat.Button.File')}\n\t\t\t\t\t</Button>\n\t\t\t\t\t<input type='file' ref={hiddenFileInput} onChange={handleFileChange} multiple hidden tabIndex={0} />\n\t\t\t\t\t<Form.SubmitButton\n\t\t\t\t\t\tvariant='ghost'\n\t\t\t\t\t\tsize='medium'\n\t\t\t\t\t\ticon='paperPlaneFilled'\n\t\t\t\t\t\ticonPosition='trailing'\n\t\t\t\t\t\tdisabled={disableSend || !isReadyForCommunication}\n\t\t\t\t\t\tdisabledText=''\n\t\t\t\t\t>\n\t\t\t\t\t\t{withTranslation('PW.Component.Chat.Button.Send')}\n\t\t\t\t\t</Form.SubmitButton>\n\t\t\t\t</Flex>\n\t\t\t</elements.container>\n\t\t</Form.Root>\n\t);\n}\n\nconst motionVariants: Variants = {\n\thidden: {\n\t\topacity: 0,\n\t\tscale: 0.9,\n\t\ttransition: {\n\t\t\tstiffness: 500,\n\t\t\tdamping: 40,\n\t\t\ttype: 'spring',\n\t\t},\n\t},\n\tvisible: (custom: number) => ({\n\t\tscale: 1,\n\t\topacity: 1,\n\t\ttransition: {\n\t\t\tdelay: custom * 0.025,\n\t\t\tstiffness: 500,\n\t\t\tdamping: 40,\n\t\t\ttype: 'spring',\n\t\t},\n\t}),\n};\n","import { useIsVisible } from '@application/use_is_visible';\nimport { useEffect, useRef } from 'react';\nimport styled from 'styled-components';\n\ninterface Props {\n\tshouldBeObserved: boolean;\n\tonVisible: () => void;\n}\n\nconst elements = {\n\tbottomSection: styled.span`\n\t\tposition: absolute;\n\t\tbottom: 0;\n\t\twidth: 100%;\n\t\tleft: 0px;\n\t\theight: 30px;\n\t`,\n};\n\nexport function ReadUntilContainer({ shouldBeObserved, onVisible }: Props): JSX.Element {\n\tconst ref = useRef<HTMLDivElement>(null);\n\tconst isVisible = useIsVisible(ref);\n\n\tuseEffect(() => {\n\t\tif (shouldBeObserved && isVisible) {\n\t\t\tonVisible();\n\t\t}\n\t}, [isVisible, onVisible, shouldBeObserved]);\n\n\treturn <elements.bottomSection ref={ref} />;\n}\n","import { RefObject, useEffect, useState } from 'react';\n\nexport function useIsVisible(ref: RefObject<HTMLElement>): boolean {\n\tconst [isVisible, setIsVisible] = useState(false);\n\n\tuseEffect(() => {\n\t\tif (ref.current == null) return;\n\n\t\tconst observer = new IntersectionObserver(([entry]) => {\n\t\t\tsetIsVisible(entry?.isIntersecting ?? false);\n\t\t});\n\n\t\tobserver.observe(ref.current);\n\n\t\treturn () => {\n\t\t\tobserver.disconnect();\n\t\t};\n\t}, [ref]);\n\n\treturn isVisible;\n}\n","import { tokens } from '@cellula/react-theme-patient';\nimport styled from 'styled-components';\nimport { Fragment, ReactNode } from 'react';\n\nconst HTTP_FILE_PATTERN = /(\\b((https?|ftp|file):\\/\\/)[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|]*)/i;\n\nconst WWW_PATTERN = /(^|[^/])(www.[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|]+(\\b|$))/i;\n\nconst MAILTO_PATTERN = /\\bmailto:(.*)(\\?.*)?\\b/;\n\ninterface Props {\n\ttext: string;\n\tlinkElement?: (url: string, text: string) => ReactNode;\n}\n\nconst elements = {\n\tmessageAnchorTag: styled.a`\n\t\tcolor: ${tokens.color.content.interactive};\n\t\ttransition: text-decoration 200ms;\n\n\t\t&:hover {\n\t\t\tcolor: ${tokens.color.content.interactive};\n\t\t\ttext-decoration: underline;\n\t\t}\n\t`,\n};\n\nexport function LinkInMessage({ text, linkElement, ...rest }: Props): JSX.Element {\n\tlet finalText;\n\tconst hasHTTPS = HTTP_FILE_PATTERN.test(text);\n\tconst hasWWW = WWW_PATTERN.test(text);\n\tif (!hasHTTPS && !hasWWW) {\n\t\tfinalText = text;\n\t} else {\n\t\tconst splitRegEx = /([^\\s]+)/g;\n\t\tlet linkUrl = '',\n\t\t\tlinkText = '';\n\t\t//divides the text to sections, then goes through every section and looks for link patterns to replace it with the given link/anchor tag component\n\t\tfinalText = text.split(splitRegEx).map((current) => {\n\t\t\tif (HTTP_FILE_PATTERN.test(current) || MAILTO_PATTERN.test(current)) {\n\t\t\t\tlinkUrl = current;\n\t\t\t\tlinkText = current;\n\t\t\t} else if (WWW_PATTERN.test(current)) {\n\t\t\t\tlinkUrl = 'https://' + current;\n\t\t\t\tlinkText = current;\n\t\t\t} else {\n\t\t\t\treturn current;\n\t\t\t}\n\t\t\tconst formattedText =\n\t\t\t\tlinkElement != null ? linkElement(linkUrl, linkText) : <DefaultLinkElement url={linkUrl} text={linkText} {...rest} />;\n\n\t\t\treturn formattedText;\n\t\t});\n\t}\n\n\treturn <Fragment>{finalText}</Fragment>;\n}\n\ninterface defaultLinkProps {\n\turl: string;\n\ttext: string;\n}\n\nfunction DefaultLinkElement({ url, text, ...rest }: defaultLinkProps): JSX.Element {\n\treturn (\n\t\t<elements.messageAnchorTag href={url} target='_blank' rel='noreferrer' {...rest}>\n\t\t\t{text}\n\t\t</elements.messageAnchorTag>\n\t);\n}\n","import { createContext } from 'react';\n\nexport const ObfuscateNameContext = createContext(false);\n","import classNames from 'classnames';\nimport styled from 'styled-components';\nimport { Box, Flex, Spacer, Icon, Avatar, Text } from '@cellula/react';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport { forwardRef, HTMLAttributes, Ref, useContext, useEffect, useRef, useState } from 'react';\nimport { motion } from 'framer-motion';\nimport { useService } from '@visiba-cortex/instantiation';\nimport type { ControlledChatMessage } from './common';\nimport { ReadUntilContainer } from './_read_until_container.component';\nimport { DateDisplayFormats, DateService } from '@application/time/date.service';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { FormCard } from '@feature/dynamic_form/form_card.component';\nimport { AttachedFile } from '@feature/file_manager/attached_file.component';\nimport { LinkInMessage } from '@component/link_in_message.component';\nimport { ObfuscateNameContext } from './_obfuscate_name.context';\n\ninterface Props extends HTMLAttributes<HTMLDivElement> {\n\tisMessageStreak: boolean;\n\tisNewSender: boolean;\n\tisLastMessageInStreak: boolean;\n\tmessage: ControlledChatMessage;\n\tonRead(message: ControlledChatMessage): void;\n\twindowHasFocus: boolean;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tcontainer: ChatBubbleContainer / inline-size;\n\t\tdisplay: flex;\n\t\tpadding: 0 ${tokens.spacing.x2};\n\t\tposition: relative;\n\n\t\t@media screen and (min-width: 905px) {\n\t\t\tpadding: 0 ${tokens.spacing.x4};\n\t\t}\n\t`,\n\timageContainer: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tjustify-content: flex-end;\n\t\tflex-shrink: 0;\n\t\tmargin-right: ${tokens.spacing.x1};\n\t\twidth: 32px;\n\t`,\n\tinner: styled.div<{ me: boolean }>`\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t\talign-items: ${({ me }) => (me ? 'flex-end' : 'flex-start')};\n\t`,\n\tsenderInfoContainer: styled.div`\n\t\tfont: ${tokens.text.label.xSmallRegular};\n\t\tcolor: ${tokens.color.content.muted};\n\t\tmargin: ${tokens.spacing.x2_5} 0 ${tokens.spacing.x0_5};\n\t`,\n\tmessageBubble: styled(motion.div)`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tpadding: ${tokens.spacing.x1} ${tokens.spacing.x1_5};\n\t\tmax-width: 250px;\n\t\tbox-shadow: ${tokens.elevation.skim};\n\t\tborder-radius: ${tokens.borderRadius.large};\n\t\tmargin-top: ${tokens.spacing.x0_5};\n\t\tword-break: break-word;\n\t\twhite-space: pre-line;\n\t\tuser-select: text;\n\t\tcolor: ${tokens.color.content.default};\n\n\t\t@media screen and (min-width: 905px) {\n\t\t\tmax-width: 380px;\n\t\t}\n\n\t\t&.other {\n\t\t\tbackground-color: ${primitiveColorTokens.neutral[100]};\n\t\t\ttransform-origin: 0 100%;\n\t\t\tborder-bottom-left-radius: 0;\n\n\t\t\t&.streak {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&.me {\n\t\t\tbackground-color: ${tokens.color.bg.surfaceBrand};\n\t\t\tcolor: ${tokens.color.content.brand};\n\t\t\ttransform-origin: 100% 100%;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t\talign-items: flex-end;\n\n\t\t\t&.streak {\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t`,\n\tmessageAnchorTag: styled.a`\n\t\tcolor: ${tokens.color.content.interactive};\n\t\ttransition: text-decoration 100ms;\n\n\t\t&:hover {\n\t\t\tcolor: ${tokens.color.content.interactive};\n\t\t\ttext-decoration: underline;\n\t\t}\n\t`,\n\ttimestamp: styled.time`\n\t\tdisplay: flex;\n\t\tfont: ${tokens.text.label.xSmallRegular};\n\t\tcolor: ${tokens.color.content.muted};\n\t\ttext-align: right;\n\t\tmargin-top: ${tokens.spacing.x1};\n\t`,\n\tattachedFileWrapper: styled(motion.div)`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex-shrink: 0;\n\t\twidth: 80%;\n\n\t\t@container ChatBubbleContainer (min-width: 400px) {\n\t\t\twidth: 60%;\n\t\t}\n\t`,\n\tredRobinMessageIcon: styled(Icon)`\n\t\tfill: ${tokens.color.content.muted};\n\t`,\n};\n\nconst linkElement = (url: string, text: string): JSX.Element => (\n\t<elements.messageAnchorTag href={url} target='_blank' rel='noreferrer'>\n\t\t{text}\n\t</elements.messageAnchorTag>\n);\n\nfunction _ChatBubble(\n\t{ message, isMessageStreak, isNewSender, isLastMessageInStreak, tabIndex, onRead, windowHasFocus, ...rest }: Props,\n\tref: Ref<HTMLDivElement>,\n): JSX.Element {\n\tconst shouldObfuscateName = useContext(ObfuscateNameContext);\n\tconst dateService = useService(DateService);\n\tconst messageIsEmpty = message.text === null || message.text === '';\n\tconst timestampRef = useRef(null);\n\tconst [hasBeenRead, setHasBeenRead] = useState(message.hasBeenRead);\n\n\tconst timeStamp = message.timestamp.format(\n\t\tdateService.getLocaleSpecificDateFormatTemplate(DateDisplayFormats.FULL_DISPLAY_IN_CURRENT_YEAR_NO_WEEKDAY),\n\t);\n\n\tuseEffect(\n\t\tfunction toPreventInMemMessageAnimationToReplay() {\n\t\t\tmessage.hasRendered = true;\n\t\t},\n\t\t[message],\n\t);\n\n\tconst displayName = shouldObfuscateName ? message.fromInitials ?? '' : message.senderName;\n\tconst displayNameFull = shouldObfuscateName ? message.fromInitials ?? '' : message.senderNameWithTitle;\n\n\tconst ariaLabel =\n\t\twithTranslation(message.isMe ? 'PW.Component.Chat.A11y.ISaid' : 'PW.Component.Chat.A11y.OtherParticipantSays', {\n\t\t\tname: displayName,\n\t\t}) +\n\t\t(', ' + (message.text ?? '')) +\n\t\t'. ' +\n\t\twithTranslation('PW.Component.Chat.A11y.AtTime', { timeStamp }) +\n\t\t(message.forms.length > 1\n\t\t\t? '. ' + withTranslation('PW.Component.Chat.A11y.MessageHasForms')\n\t\t\t: message.forms.length > 0\n\t\t\t\t? '. ' + withTranslation('PW.Component.Chat.A11y.MessageHasForm')\n\t\t\t\t: '') +\n\t\t(message.staleFileWorkers.length > 1\n\t\t\t? ', ' + withTranslation('PW.Component.Chat.A11y.MessageHasAttachments')\n\t\t\t: message.staleFileWorkers.length > 0\n\t\t\t\t? ', ' + withTranslation('PW.Component.Chat.A11y.MessageHasAttachment')\n\t\t\t\t: '');\n\n\tfunction handleVisible(): void {\n\t\tsetHasBeenRead(true);\n\t\tonRead(message);\n\t}\n\n\tconst getAvatar = (): JSX.Element => {\n\t\tif (message.isAutoreplyMessage) {\n\t\t\treturn message.senderImageUrl ? (\n\t\t\t\t<Avatar src={message.senderImageUrl} name='' size='small' />\n\t\t\t) : (\n\t\t\t\t<Avatar icon='house' size='small' />\n\t\t\t);\n\t\t}\n\n\t\treturn <Avatar src={message.senderImageUrl} name={message.fromInitials ?? displayName} size='small' />;\n\t};\n\n\treturn (\n\t\t<elements.container tabIndex={tabIndex} role='listitem' aria-label={ariaLabel} ref={ref} {...rest}>\n\t\t\t{!message.isMe ? (\n\t\t\t\t<elements.imageContainer aria-hidden='true'>{isLastMessageInStreak ? getAvatar() : null}</elements.imageContainer>\n\t\t\t) : null}\n\t\t\t<elements.inner me={message.isMe}>\n\t\t\t\t{isNewSender ? (\n\t\t\t\t\tmessage.isMe ? (\n\t\t\t\t\t\t<Spacer vertical={tokens.spacing.x2_5} />\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<elements.senderInfoContainer aria-hidden='true'>{displayNameFull}</elements.senderInfoContainer>\n\t\t\t\t\t)\n\t\t\t\t) : null}\n\t\t\t\t{message.isRedRobinInitialMessage ? (\n\t\t\t\t\t<Flex direction='row'>\n\t\t\t\t\t\t<elements.redRobinMessageIcon type='paperClip' size='small' />\n\t\t\t\t\t\t<Spacer horizontal={tokens.spacing.x0_5} />\n\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\tvariant='bodySmallRegular'\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tcolor: tokens.color.content.muted,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{withTranslation('PW.Component.Chat.Triage.Info.Message')}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t</Flex>\n\t\t\t\t) : null}\n\t\t\t\t{!messageIsEmpty ? (\n\t\t\t\t\t<elements.messageBubble\n\t\t\t\t\t\tclassName={classNames({\n\t\t\t\t\t\t\tother: !message.isMe,\n\t\t\t\t\t\t\tme: message.isMe,\n\t\t\t\t\t\t\tstreak: isMessageStreak,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tinitial={message.hasRendered ? false : { scale: 0 }}\n\t\t\t\t\t\tanimate={{ scale: 1 }}\n\t\t\t\t\t\ttransition={{\n\t\t\t\t\t\t\ttype: 'spring',\n\t\t\t\t\t\t\tstiffness: 240,\n\t\t\t\t\t\t\tdamping: 20,\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Text variant='bodyRegular'>\n\t\t\t\t\t\t\t<LinkInMessage text={message.text ?? ''} linkElement={linkElement} />\n\t\t\t\t\t\t</Text>\n\n\t\t\t\t\t\t<elements.timestamp ref={timestampRef} aria-hidden='true'>\n\t\t\t\t\t\t\t{timeStamp}\n\t\t\t\t\t\t</elements.timestamp>\n\t\t\t\t\t</elements.messageBubble>\n\t\t\t\t) : null}\n\t\t\t\t{message.forms.length > 0 ? (\n\t\t\t\t\t<Box height='unset' aria-label={withTranslation('PW.Component.Chat.A11y.ListOfForms')}>\n\t\t\t\t\t\t<Spacer vertical={tokens.spacing.x0_5} />\n\n\t\t\t\t\t\t<Flex grow={1} gap={tokens.spacing.x0_5}>\n\t\t\t\t\t\t\t{message.forms.map((formWorker) => (\n\t\t\t\t\t\t\t\t<FormCard\n\t\t\t\t\t\t\t\t\tkey={formWorker.formId}\n\t\t\t\t\t\t\t\t\tdisabled={tabIndex === -1}\n\t\t\t\t\t\t\t\t\tanalyticAction='Viewed form in chat'\n\t\t\t\t\t\t\t\t\tformWorker={formWorker}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</Box>\n\t\t\t\t) : null}\n\t\t\t\t{message.staleFileWorkers.length > 0 ? (\n\t\t\t\t\t<Box\n\t\t\t\t\t\theight='unset'\n\t\t\t\t\t\taria-label={withTranslation('PW.Component.Chat.A11y.ListOfAttachments')}\n\t\t\t\t\t\talign={message.isMe ? 'end' : 'start'}\n\t\t\t\t\t\tstyle={{ marginTop: tokens.spacing.x0_5 }}\n\t\t\t\t\t\tasChild\n\t\t\t\t\t>\n\t\t\t\t\t\t<Flex grow={1} gap={tokens.spacing.x0_5} align={message.isMe ? 'end' : 'start'}>\n\t\t\t\t\t\t\t{message.staleFileWorkers.map((staleFileWorker) => {\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t<elements.attachedFileWrapper\n\t\t\t\t\t\t\t\t\t\tkey={staleFileWorker.id}\n\t\t\t\t\t\t\t\t\t\tinitial={message.hasRendered ? false : { scale: 0 }}\n\t\t\t\t\t\t\t\t\t\tanimate={{ scale: 1 }}\n\t\t\t\t\t\t\t\t\t\ttransition={{\n\t\t\t\t\t\t\t\t\t\t\ttype: 'spring',\n\t\t\t\t\t\t\t\t\t\t\tstiffness: 240,\n\t\t\t\t\t\t\t\t\t\t\tdamping: 20,\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<AttachedFile worker={staleFileWorker} />\n\t\t\t\t\t\t\t\t\t</elements.attachedFileWrapper>\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</Box>\n\t\t\t\t) : null}\n\t\t\t</elements.inner>\n\t\t\t{hasBeenRead ? null : <ReadUntilContainer onVisible={handleVisible} shouldBeObserved={windowHasFocus} />}\n\t\t</elements.container>\n\t);\n}\nexport const ChatBubble = forwardRef(_ChatBubble);\n","/**\n * Used to position the scroll position in the chat to it if present.\n */\nexport const NEW_MESSAGES_BANNER_ID = '_nmbi';\n","import styled from 'styled-components';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\n\ninterface Props {\n\tshow: boolean;\n\tonClick: () => void;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tposition: absolute;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tdisplay: flex;\n\t\theight: 60px;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tz-index: 1;\n\t\tpointer-events: none;\n\t`,\n\tbutton: styled(motion.button)`\n\t\tposition: absolute;\n\t\tbottom: 0;\n\t\tleft: 50%;\n\t\ttransform: translateX(-50%);\n\t\tall: unset;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\tbackground-color: ${tokens.color.bg.surface};\n\t\tpadding: ${tokens.size.x1} ${tokens.size.x3};\n\t\tfont: ${tokens.text.label.largeSemiBold};\n\t\tcolor: ${tokens.color.content.interactive};\n\t\tborder-radius: ${tokens.borderRadius.pill};\n\t\tbox-shadow: ${tokens.elevation.floating};\n\t\tborder: 2px solid ${tokens.color.content.interactive};\n\t\tuser-select: none;\n\t\ttransition: box-shadow 150ms ease-in;\n\t\toverflow: hidden;\n\t\tposition: relative;\n\t\tpointer-events: all;\n\n\t\t&::after {\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t\tleft: 0;\n\t\t\ttransition: background-color 150ms ease-in;\n\t\t\tz-index: -1;\n\t\t}\n\n\t\t&:hover {\n\t\t\t&::after {\n\t\t\t\tbackground-color: ${tokens.color.bg.interactiveMutedHover};\n\t\t\t}\n\t\t}\n\n\t\t&:active {\n\t\t\t&::after {\n\t\t\t\tbackground-color: ${tokens.color.bg.interactiveMutedActive};\n\t\t\t}\n\t\t}\n\t`,\n};\n\nexport function NewMessageFloatingButton({ show, onClick }: Props): JSX.Element {\n\tconst analyticCtx = useAnalyticContext();\n\n\tfunction handleClick(): void {\n\t\tanalyticCtx.trackEvent('Clicked scroll to bottom arrow');\n\n\t\tonClick();\n\t}\n\n\treturn (\n\t\t<elements.container aria-hidden tabIndex={-1}>\n\t\t\t<AnimatePresence>\n\t\t\t\t{show ? (\n\t\t\t\t\t<elements.button\n\t\t\t\t\t\tinitial={{ y: 100 }}\n\t\t\t\t\t\tanimate={{ y: 0 }}\n\t\t\t\t\t\texit={{ y: 100, scale: 0 }}\n\t\t\t\t\t\twhileHover={{\n\t\t\t\t\t\t\tscale: 1.1,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\twhileTap={{\n\t\t\t\t\t\t\tscale: 0.98,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonClick={handleClick}\n\t\t\t\t\t>\n\t\t\t\t\t\t{withTranslation('PW.Component.Chat.NewMessagesButton')}\n\t\t\t\t\t</elements.button>\n\t\t\t\t) : null}\n\t\t\t</AnimatePresence>\n\t\t</elements.container>\n\t);\n}\n","import styled from 'styled-components';\nimport { ReactNode, UIEvent, useEffect, useRef, useState } from 'react';\n// import ResizeObserver from 'resize-observer-polyfill';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { clamp } from '@visiba/std';\nimport { NEW_MESSAGES_BANNER_ID } from './_constants';\nimport { motion } from 'framer-motion';\nimport { NewMessageFloatingButton } from './_chat_new_message_floating_button.component';\n\ninterface Props {\n\tchildren: ReactNode | ReactNode[];\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tposition: absolute;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t`,\n\tscroller: styled.div`\n\t\tposition: absolute;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\tmax-height: 100%;\n\t\toverflow-x: hidden;\n\t\toverflow-y: auto;\n\t\toverscroll-behavior-block: contain;\n\t\tz-index: 1;\n\t`,\n\tscrollContainer: styled.div`\n\t\tpadding-bottom: calc(${tokens.spacing.x0_25} + ${tokens.spacing.x2});\n\t\topacity: 0;\n\t\ttransition: opacity 100ms ease-in-out;\n\t`,\n\tnewMessageBannerWrapper: styled.div`\n\t\tposition: absolute;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tdisplay: flex;\n\t\theight: 60px;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tz-index: 1;\n\t`,\n\tnewMessageBanner: styled(motion.button)`\n\t\tposition: absolute;\n\t\tbottom: 0;\n\t\tleft: 50%;\n\t\ttransform: translateX(-50%);\n\t\tall: unset;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\tbackground-color: ${tokens.color.bg.surface};\n\t\tpadding: ${tokens.size.x1} ${tokens.size.x3};\n\t\tfont: ${tokens.text.label.largeSemiBold};\n\t\tcolor: ${tokens.color.content.interactive};\n\t\tborder-radius: ${tokens.borderRadius.pill};\n\t\tbox-shadow: ${tokens.elevation.floating};\n\t\tborder: 2px solid ${tokens.color.content.interactive};\n\t\tuser-select: none;\n\t\ttransition: box-shadow 150ms ease-in;\n\t\toverflow: hidden;\n\t\tposition: relative;\n\n\t\t&::after {\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t\tleft: 0;\n\t\t\ttransition: background-color 150ms ease-in;\n\t\t\tz-index: -1;\n\t\t}\n\n\t\t&:hover {\n\t\t\t&::after {\n\t\t\t\tbackground-color: ${tokens.color.bg.interactiveMutedHover};\n\t\t\t}\n\t\t}\n\n\t\t&:active {\n\t\t\t&::after {\n\t\t\t\tbackground-color: ${tokens.color.bg.interactiveMutedActive};\n\t\t\t}\n\t\t}\n\t`,\n};\n\nexport function ChatAutoScroller({ children }: Props): JSX.Element {\n\tconst [isBlockingNewMessageSpam, setIsBlockingNewMessageSpam] = useState(false);\n\tconst isAutoScrolling = useRef(true);\n\tconst shouldPreventProgrammaticScroll = useRef(false);\n\tconst [hasHadAChildUpdate, setHasHadAChildUpdate] = useState(false);\n\n\t// ╔═ container & scroller ╗ The idea is that the \"container\" element\n\t// ║ ┌ scrollContainer ┐ ║ retrieves its parent's dimensions so it\n\t// ║ ┌─── firstChild ──┐ ║ can be fitted anywhere.\n\t// ║ ││ ││ ║\n\t// ║ │ │ ║ To make the \"scroller\" element be\n\t// ║ ││ ││ ║ scrollable within it's parent container\n\t// ║ │ │ ║ - while having dynamic height - its\n\t// ║ ││ ││ ║ using CSS absolute position. If it's not\n\t// ║ │ │ ║ done this way, the scroller element will\n\t// ║ ││ ││ ║ be needing a fixed height which is not\n\t// ╚══│ │══╝ ideal.\n\t// ││ ││\n\t// │ │ And to give the scroller's something to\n\t// ││ ││ scroll, a inner element is needed. This\n\t// │ │ is the \"scrollContainer\".\n\t// ││ ││\n\t// │ │ The last one, \"firstChild\", is only\n\t// ││ ││ there to provide something to make sure\n\t// │ │ the \"jump to\" animation isn't\n\t// │└─────────────────┘│ interfering with the scroll position.\n\t// ─ ─ ─ ─ ─ ─ ─ ─ ─ ─\n\t//\n\tconst scrollerRef = useRef<HTMLDivElement>(null);\n\tconst scrollContainerRef = useRef<HTMLDivElement>(null);\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\n\t// To prevent the chat to scroll to the bottom if the user has manually\n\t// scrolled the container.\n\tfunction handleScroll(_: UIEvent<HTMLDivElement>): void {\n\t\tconst scrollerRefElement = scrollerRef.current;\n\t\tif (scrollerRefElement == null) return;\n\n\t\tconst scroll = scrollerRefElement.scrollHeight - scrollerRefElement.scrollTop;\n\t\tconst shouldAutoScroll = (scroll / scrollerRefElement.clientHeight) * 10 <= 12;\n\t\tconst couldReceiveNewMessageSpam = (scroll / scrollerRefElement.clientHeight) * 10 <= 15;\n\n\t\tisAutoScrolling.current = shouldAutoScroll;\n\t\tsetIsBlockingNewMessageSpam(shouldAutoScroll);\n\n\t\tif (couldReceiveNewMessageSpam) {\n\t\t\tsetHasHadAChildUpdate(false);\n\t\t}\n\t}\n\n\tfunction handleManuallyScrollToBottomClick(): void {\n\t\tconst maxHeight = scrollContainerRef.current?.clientHeight ?? Number.MAX_SAFE_INTEGER;\n\n\t\tscrollerRef.current?.scroll({\n\t\t\tbehavior: 'smooth',\n\t\t\ttop: maxHeight,\n\t\t});\n\n\t\tsetHasHadAChildUpdate(false);\n\t\tsetIsBlockingNewMessageSpam(true);\n\t\tisAutoScrolling.current = true;\n\t}\n\n\tuseEffect(function toKeepRelativeScrollPositionWhenInputAreaChangesSize() {\n\t\tif (!__visiba_feature_flags__['PatientWeb.UseRelativeScrollPositionInChat']) return;\n\n\t\tif (containerRef.current == null) return;\n\t\tconst containerElement = containerRef.current;\n\n\t\tlet prevHeight = containerElement.clientHeight;\n\n\t\tconst observer = new ResizeObserver((entries) => {\n\t\t\tif (scrollerRef.current == null) return;\n\t\t\tconst scrollerRefElement = scrollerRef.current;\n\n\t\t\tconst entry = entries[0];\n\t\t\tif (entry == null) return;\n\n\t\t\tconst oldHeight = prevHeight;\n\t\t\tprevHeight = entry.contentRect.height;\n\n\t\t\tconst top = scrollerRefElement.scrollTop + (oldHeight - prevHeight);\n\n\t\t\tscrollerRefElement.scroll({\n\t\t\t\ttop,\n\t\t\t});\n\t\t});\n\n\t\tobserver.observe(containerElement);\n\n\t\treturn () => {\n\t\t\tobserver.disconnect();\n\t\t};\n\t}, []);\n\n\tuseEffect(\n\t\tfunction toHandleScrollWithinTheChat() {\n\t\t\tif (scrollContainerRef.current == null) return;\n\t\t\tconst scrollContainerElement = scrollContainerRef.current;\n\n\t\t\t// ╔═┌┌─────────────────┐┐═╗ Once new messages is added, it'll\n\t\t\t// ║ │ ██████ │ ║ increase the height of the scroller\n\t\t\t// ║ ││ █████████ ││ ║ element, triggering the ResizeObserver's\n\t\t\t// ║ │ ████████ │ ║ callback.\n\t\t\t// ╚═││ ██████ ││═╝\n\t\t\t// │ ████████ │\n\t\t\t// ││ █████ ││\n\t\t\t// │ █ new █ │\n\t\t\t// └└─────────────────┘┘\n\t\t\t//\n\t\t\tconst observer = new ResizeObserver(() => {\n\t\t\t\tif (scrollerRef?.current == null) return;\n\t\t\t\tconst scrollerRefElement = scrollerRef.current;\n\t\t\t\tconst childNodes = scrollContainerElement.firstChild?.childNodes;\n\t\t\t\tconst childrenLength = scrollContainerElement.firstChild?.childNodes.length ?? 0;\n\n\t\t\t\tif (!isAutoScrolling.current && childrenLength > 0) {\n\t\t\t\t\tconst lastElement = childNodes?.item(childNodes.length - 1);\n\t\t\t\t\tconst wasMyMessage = (lastElement as HTMLDivElement | undefined)?.attributes.getNamedItem('data-is-me')?.value;\n\t\t\t\t\tsetHasHadAChildUpdate(wasMyMessage === 'false');\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tlet behavior: ScrollBehavior = 'smooth';\n\t\t\t\t// ┌┌─────────────────┐┐ In normal circumstances when one or two\n\t\t\t\t// │ ██████ │ messages is being received, it'll just\n\t\t\t\t// ││ █████████ ││ set the scroll height to the bottom of\n\t\t\t\t// │ ████████ │ the scroller element.\n\t\t\t\t// ╔═││ ██████ ││═╗\n\t\t\t\t// ║ │ ████████ │ ║\n\t\t\t\t// ║ ││ █████ ││ ║\n\t\t\t\t// ║ │ █ new █ │ ║\n\t\t\t\t// ╚═└└─────────────────┘┘═╝\n\t\t\t\t//\n\t\t\t\tlet top = scrollContainerElement.clientHeight;\n\n\t\t\t\t// But we also want a nice lil animation\n\t\t\t\t// when the total messages exceeds a\n\t\t\t\t// certain limit to visually indicate that\n\t\t\t\t// there's more messages above. The\n\t\t\t\t// \"jumpTo\" variable is determining if that\n\t\t\t\t//\n\t\t\t\tconst scrolledTo = scrollerRefElement.scrollTop ?? 0;\n\t\t\t\tconst height = scrollerRefElement.clientHeight ?? 0;\n\t\t\t\tconst expectedHeight = scrollerRefElement.scrollHeight ?? 0;\n\t\t\t\tconst jumpTo = scrolledTo === 0 && expectedHeight > height;\n\t\t\t\tif (jumpTo) {\n\t\t\t\t\tbehavior = 'auto';\n\t\t\t\t\tif (scrollContainerRef?.current == null) return;\n\t\t\t\t\tconst scrollContainer = scrollContainerRef.current;\n\t\t\t\t\tconst animationElement = scrollContainer.firstChild as HTMLElement | null;\n\t\t\t\t\tif (animationElement == null) return;\n\n\t\t\t\t\t// ╔═┌┌─────────────────┐┐═╗ If the \"new message banner\" exists in\n\t\t\t\t\t// ║ │ ███████│ ║ the DOM, we don't want to animate to the\n\t\t\t\t\t// ║ ││ ███████ ││ ║ bottom of the \"scroller\" element. But\n\t\t\t\t\t// ║ │ █████ │ ║ rather scroll the \"new message banner\"\n\t\t\t\t\t// ╚═││ ██████ ││═╝ into view.\n\t\t\t\t\t// │ ███████│\n\t\t\t\t\t// ││ ││\n\t\t\t\t\t// │ ───── new ───── │\n\t\t\t\t\t// ││ ││\n\t\t\t\t\t// │ ███████ │\n\t\t\t\t\t// ││ █████ ││\n\t\t\t\t\t// │ ████████ │\n\t\t\t\t\t// └└─────────────────┘┘\n\t\t\t\t\t//\n\t\t\t\t\tconst newMessagesBanner = document.getElementById(NEW_MESSAGES_BANNER_ID);\n\t\t\t\t\tif (newMessagesBanner != null) {\n\t\t\t\t\t\t// ┌┌─────────────────┐┐ Like so.\n\t\t\t\t\t\t// │ ███████│\n\t\t\t\t\t\t// ││ ███████ ││\n\t\t\t\t\t\t// │ █████ │\n\t\t\t\t\t\t// ││ ██████ ││\n\t\t\t\t\t\t// │ ███████│\n\t\t\t\t\t\t// ╔═││ ││═╗\n\t\t\t\t\t\t// ║ │ ───── new ───── │ ║\n\t\t\t\t\t\t// ║ ││ ││ ║\n\t\t\t\t\t\t// ║ │ ███████ │ ║\n\t\t\t\t\t\t// ╚═││ █████ ││═╝\n\t\t\t\t\t\t// │ ████████ │\n\t\t\t\t\t\t// └└─────────────────┘┘\n\t\t\t\t\t\t//\n\t\t\t\t\t\ttop = newMessagesBanner.offsetTop - 14; // -14 is arbitrary. Makes its scroll position a bit nicer.\n\t\t\t\t\t}\n\n\t\t\t\t\t// ┌┌─────────────────┐┐ The remaining code below is just to\n\t\t\t\t\t// │ ███████│ create the animation for scrolling down\n\t\t\t\t\t// ││ ███████ ││ the the latest messages. 🚀\n\t\t\t\t\t// │ █████ │\n\t\t\t\t\t// ││ ██████ ││\n\t\t\t\t\t// │ ███████│\n\t\t\t\t\t// ││ █████││\n\t\t\t\t\t// │ ████████│\n\t\t\t\t\t// ╔═││ █████││═╗\n\t\t\t\t\t// ║ │ ███████ │ ║\n\t\t\t\t\t// ║ ││ █████ ││ ║\n\t\t\t\t\t// ║ │ ████████ │ ║\n\t\t\t\t\t// ╚═└└─────────────────┘┘═╝\n\t\t\t\t\t//\n\t\t\t\t\tfunction getAutoHeightDuration(height: number): number {\n\t\t\t\t\t\tconst constant = height / 2;\n\n\t\t\t\t\t\treturn Math.round((4 + (15 * constant ** 0.25 + constant) / 5) * 10);\n\t\t\t\t\t}\n\n\t\t\t\t\tconst height = clamp(childrenLength * 10, [0, 600]);\n\n\t\t\t\t\tanimationElement.style.transform = `translateY(${height}px)`;\n\n\t\t\t\t\trequestAnimationFrame(() => {\n\t\t\t\t\t\tscrollContainer.style.opacity = '1';\n\t\t\t\t\t\tanimationElement.style.transform = 'translateY(0px)';\n\t\t\t\t\t\tanimationElement.style.transition = `transform ${getAutoHeightDuration(height)}ms cubic-bezier(0.18, 0.89, 0.32, 1.05) 0s`;\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tif (scrollContainerRef?.current == null) return;\n\t\t\t\t\tconst scrollContainer = scrollContainerRef.current;\n\t\t\t\t\tscrollContainer.style.transition = 'opacity 250ms ease-in-out';\n\t\t\t\t\tscrollContainer.style.opacity = '1';\n\t\t\t\t}\n\n\t\t\t\tif (!shouldPreventProgrammaticScroll.current) {\n\t\t\t\t\tscrollerRefElement?.scroll({\n\t\t\t\t\t\tbehavior,\n\t\t\t\t\t\ttop,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tobserver.observe(scrollContainerElement);\n\n\t\t\treturn () => {\n\t\t\t\tobserver.unobserve(scrollContainerElement);\n\t\t\t};\n\t\t},\n\t\t[scrollContainerRef],\n\t);\n\n\tfunction handleTouchStart(): void {\n\t\tshouldPreventProgrammaticScroll.current = true;\n\t}\n\n\tfunction handleTouchEnd(): void {\n\t\tshouldPreventProgrammaticScroll.current = false;\n\t}\n\n\treturn (\n\t\t<elements.container ref={containerRef}>\n\t\t\t<elements.scroller ref={scrollerRef} onScroll={handleScroll} onTouchStart={handleTouchStart} onTouchEnd={handleTouchEnd}>\n\t\t\t\t<elements.scrollContainer style={{ overflow: 'hidden' }} ref={scrollContainerRef}>\n\t\t\t\t\t{children}\n\t\t\t\t</elements.scrollContainer>\n\t\t\t</elements.scroller>\n\n\t\t\t<NewMessageFloatingButton show={!isBlockingNewMessageSpam && hasHadAChildUpdate} onClick={handleManuallyScrollToBottomClick} />\n\t\t</elements.container>\n\t);\n}\n","import styled from 'styled-components';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { NEW_MESSAGES_BANNER_ID } from './_constants';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { forwardRef, Ref } from 'react';\nimport { Text } from '@cellula/react';\n\ninterface Props {}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tpadding: 0 ${tokens.spacing.x2};\n\t\tfont: ${tokens.text.label.smallRegular};\n\t\tcolor: ${tokens.color.content.interactive};\n\t\tmargin-top: ${tokens.spacing.x2};\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tpadding: 0 ${tokens.spacing.x4};\n\t\t}\n\n\t\tspan {\n\t\t\tpadding: 0 ${tokens.spacing.x0_5};\n\t\t}\n\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: '';\n\t\t\tdisplay: flex;\n\t\t\tbackground: ${tokens.color.content.interactive};\n\t\t\theight: 1px;\n\t\t\tflex: 1;\n\t\t}\n\t`,\n};\n\nfunction _NewMessagesBanner(props: Props, ref: Ref<HTMLDivElement>): JSX.Element {\n\treturn (\n\t\t<elements.container ref={ref} id={NEW_MESSAGES_BANNER_ID} {...props}>\n\t\t\t<Text variant='bodySmallRegular'>{withTranslation('PW.Component.Chat.Banner.NewMessages')}</Text>\n\t\t</elements.container>\n\t);\n}\nexport const NewMessagesBanner = forwardRef(_NewMessagesBanner);\n","import styled from 'styled-components';\nimport { ChatBubble } from './_chat_bubble.component';\nimport { rem } from '@visiba/std';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { ChatAutoScroller } from './_chat_auto_scroller.component';\nimport { usePresentation } from '@visiba-cortex/presentation';\nimport { ReactNode, useEffect, useState } from 'react';\nimport type { ChatCommunicator } from './chat_communicator';\nimport type { ControlledChatMessage, ControlledMessage, ControlledSystemMessage } from './common';\nimport { NewMessagesBanner } from './_chat_new_messages_banner.component';\nimport { FileViewer, Spinner, Text, VisuallyHidden } from '@cellula/react';\nimport * as RovingFocusGroup from '@radix-ui/react-roving-focus';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { ReadUntilContainer } from './_read_until_container.component';\n\ninterface Props {\n\tshowLoader: boolean;\n\tbridge: ChatCommunicator | null;\n\tmarkAsCompleted: boolean;\n\ttopBanner: ReactNode | undefined;\n\tbottomBanner: ReactNode | undefined;\n\tonMarkAsCompleted?: () => void;\n\tonReceivedHistory?: () => void;\n}\n\nconst elements = {\n\tstart: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\tmargin: ${tokens.spacing.x2} 0;\n\t`,\n\tsystemMessage: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\tmargin: ${tokens.spacing.x3} 0;\n\t`,\n\tend: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\tmargin: ${tokens.spacing.x6} 0 ${tokens.spacing.x8} 0;\n\t`,\n\tcontainer: styled.div`\n\t\tdisplay: flex;\n\t\tflex: 1;\n\t\toverflow: hidden;\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\tmin-height: 150px;\n\t\tflex-direction: column;\n\t\tmask-image: linear-gradient(to top, transparent 0px, #000 4px);\n\t\t-webkit-mask-image: linear-gradient(to top, transparent 0px, #000 4px);\n\t`,\n\tsenderInfo: styled.div`\n\t\tmargin-top: ${rem(16)};\n\t\tfont-size: ${rem(14)};\n\t\tline-height: ${rem(16)};\n\t`,\n\tloader: styled.div`\n\t\tz-index: 1;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tbackground: #ffffff9c;\n\t\tz-index: 1;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tbackdrop-filter: blur(2px);\n\t`,\n};\n\nexport function ChatMessagesContainer({\n\tbridge,\n\tshowLoader,\n\tbottomBanner,\n\ttopBanner,\n\tonMarkAsCompleted,\n\tonReceivedHistory,\n}: Props): JSX.Element {\n\tconst [hasReceivedHistory, setHasReceivedHistory] = useState(false);\n\n\tuseEffect(() => {\n\t\tif (bridge == null) return;\n\n\t\tsetHasReceivedHistory(bridge.presentation.read().hasReceivedHistory);\n\n\t\t// This dirty logic is needed since the code is currently made so bridge\n\t\t// is potentially null in the component's scope but is still dependent\n\t\t// on its state. TODO: Will change this.\n\t\treturn bridge.presentation.subscribe((set) => {\n\t\t\tif (set?.has('hasReceivedHistory')) {\n\t\t\t\tconst { hasReceivedHistory } = bridge.presentation.read();\n\t\t\t\tsetHasReceivedHistory(hasReceivedHistory);\n\n\t\t\t\tif (hasReceivedHistory && onReceivedHistory != null) {\n\t\t\t\t\t// FIX ME: without the tick, it's an infinite loop...\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tonReceivedHistory();\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (set?.has('isCompleted')) {\n\t\t\t\tconst { isCompleted } = bridge.presentation.read();\n\t\t\t\tif (isCompleted && onMarkAsCompleted != null) {\n\t\t\t\t\tonMarkAsCompleted();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}, [bridge, onMarkAsCompleted, onReceivedHistory]);\n\n\treturn (\n\t\t<elements.container>\n\t\t\t{hasReceivedHistory && bridge != null ? <Messages bridge={bridge} bottomBanner={bottomBanner} topBanner={topBanner} /> : null}\n\n\t\t\t{showLoader ? (\n\t\t\t\t<elements.loader>\n\t\t\t\t\t<Spinner size='large' />\n\t\t\t\t</elements.loader>\n\t\t\t) : null}\n\t\t</elements.container>\n\t);\n}\n\ninterface MessagesProps {\n\tbridge: ChatCommunicator;\n\ttopBanner: ReactNode | undefined;\n\tbottomBanner: ReactNode | undefined;\n}\n\nfunction Messages({ bridge, bottomBanner, topBanner }: MessagesProps): JSX.Element {\n\tconst presentation = usePresentation(bridge.presentation);\n\n\tfunction handleMessageShown(message: ControlledChatMessage | ControlledSystemMessage): void {\n\t\tbridge.setReadUntil(message);\n\t}\n\n\treturn (\n\t\t<FileViewer.Root>\n\t\t\t<ChatAutoScroller>\n\t\t\t\t<RovingFocusGroup.Root orientation='vertical' role='list' aria-labelledby='chat_messages_container'>\n\t\t\t\t\t<VisuallyHidden id='chat_messages_container'>{withTranslation('PW.Component.Chat.A11y.ChatRegion')}</VisuallyHidden>\n\n\t\t\t\t\t{topBanner != null ? (\n\t\t\t\t\t\t<RovingFocusGroup.Item asChild>\n\t\t\t\t\t\t\t<elements.start>{topBanner}</elements.start>\n\t\t\t\t\t\t</RovingFocusGroup.Item>\n\t\t\t\t\t) : null}\n\n\t\t\t\t\t{(() => {\n\t\t\t\t\t\t// This should maybe be derived from the controller rather than be set locally here. A bit hacky with the IIFE hehe.\n\t\t\t\t\t\tlet hasHadNewTimeStamp = false;\n\n\t\t\t\t\t\treturn presentation.messages.map((message, index): JSX.Element => {\n\t\t\t\t\t\t\tconst isLastMessage = presentation.messages.length - 1 === index;\n\t\t\t\t\t\t\tconst isDefaultActiveInRovingFocus = hasHadNewTimeStamp ? false : isLastMessage;\n\n\t\t\t\t\t\t\tswitch (message.type) {\n\t\t\t\t\t\t\t\tcase 'chatMessage': {\n\t\t\t\t\t\t\t\t\tconst previousMessage = presentation.messages[index - 1] as ControlledMessage | undefined; // Casting to not implicitly assert non-nullish.\n\t\t\t\t\t\t\t\t\tconst nextMessage = presentation.messages[index + 1] as ControlledMessage | undefined; // Casting to not implicitly assert non-nullish.\n\t\t\t\t\t\t\t\t\tconst isNewSender = previousMessage?.fromId !== message.fromId;\n\t\t\t\t\t\t\t\t\tconst isMessageStreak = previousMessage?.fromId === message.fromId;\n\t\t\t\t\t\t\t\t\tconst isLastMessageInStreak = nextMessage?.fromId !== message.fromId;\n\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t<RovingFocusGroup.Item key={message.id} asChild active={isDefaultActiveInRovingFocus}>\n\t\t\t\t\t\t\t\t\t\t\t<ChatBubble\n\t\t\t\t\t\t\t\t\t\t\t\tmessage={message}\n\t\t\t\t\t\t\t\t\t\t\t\tonRead={handleMessageShown}\n\t\t\t\t\t\t\t\t\t\t\t\tdata-is-me={message.isMe}\n\t\t\t\t\t\t\t\t\t\t\t\tisNewSender={isNewSender}\n\t\t\t\t\t\t\t\t\t\t\t\tisMessageStreak={isMessageStreak}\n\t\t\t\t\t\t\t\t\t\t\t\tisLastMessageInStreak={isLastMessageInStreak}\n\t\t\t\t\t\t\t\t\t\t\t\twindowHasFocus={presentation.windowHasFocus}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t</RovingFocusGroup.Item>\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase 'systemMessage': {\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t<RovingFocusGroup.Item key={message.id} asChild active={isDefaultActiveInRovingFocus} data-is-me={false}>\n\t\t\t\t\t\t\t\t\t\t\t<elements.systemMessage>\n\t\t\t\t\t\t\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant='bodySmallRegular'\n\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: tokens.color.content.muted,\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{message.text}\n\t\t\t\t\t\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t\t\t\t\t\t\t{message.hasBeenRead ? null : (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ReadUntilContainer\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonVisible={() => handleMessageShown(message)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tshouldBeObserved={presentation.windowHasFocus}\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t</elements.systemMessage>\n\t\t\t\t\t\t\t\t\t\t</RovingFocusGroup.Item>\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase 'unreadTimestampMessage': {\n\t\t\t\t\t\t\t\t\t// The mutation here is crucial just to make the default roving list logic work.\n\t\t\t\t\t\t\t\t\thasHadNewTimeStamp = true;\n\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t<RovingFocusGroup.Item key={message.id} asChild active>\n\t\t\t\t\t\t\t\t\t\t\t<NewMessagesBanner />\n\t\t\t\t\t\t\t\t\t\t</RovingFocusGroup.Item>\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t})()}\n\n\t\t\t\t\t{bottomBanner != null ? (\n\t\t\t\t\t\t<RovingFocusGroup.Item asChild>\n\t\t\t\t\t\t\t<elements.end>{bottomBanner}</elements.end>\n\t\t\t\t\t\t</RovingFocusGroup.Item>\n\t\t\t\t\t) : null}\n\t\t\t\t</RovingFocusGroup.Root>\n\t\t\t</ChatAutoScroller>\n\t\t</FileViewer.Root>\n\t);\n}\n","import { v4 } from 'uuid';\nimport { Presentation } from '@visiba-cortex/presentation';\nimport { FileWorkerStale } from '@feature/file_manager/mod';\nimport { AnalyticService } from '@application/analytic/analytic.service';\nimport { Injector } from '@visiba-cortex/instantiation';\nimport { FormManager } from '@feature/dynamic_form/form_manager/mod';\nimport { MessagingCaseModel } from '@feature/cases/case_messaging_model';\nimport { UnhandledIssuesService } from '@feature/issues/unhandled_issues.service';\nimport { Logger } from '@visiba/logger';\nimport type { SocketController } from '@visiba-cortex/axon';\nimport type { ControlledMessage, ControlledSystemMessage, ControlledChatMessage } from './common';\nimport type { DateService } from '@application/time/date.service';\nimport type { ChatCommunicatorProtocol, ParsedMessage } from './chat_communicator_protocol';\n\ninterface PresentationForBridge {\n\thasReceivedHistory: boolean;\n\tisCompleted: boolean;\n\twindowHasFocus: boolean;\n\tmessages: ControlledMessage[];\n}\n\nexport interface ChatCommunicatorMetadata {\n\treadonly hasReadUntilTimestamp: VisibaDate | null;\n\treadonly issuesTrackedById?: string;\n}\n\nexport class ChatCommunicator {\n\tpublic readonly presentation = Presentation.create<PresentationForBridge>({\n\t\thasReceivedHistory: false,\n\t\tisCompleted: false,\n\t\twindowHasFocus: window.document.visibilityState === 'visible' && window.document.hasFocus(),\n\t\tmessages: [],\n\t});\n\tpublic readonly formManager: FormManager;\n\n\tprivate disposers: (() => void)[] = [];\n\tprivate lastReadMessageTimestamp: VisibaDate | null;\n\tprivate readonly logger = new Logger('ChatCommunicator');\n\n\tconstructor(\n\t\tprivate readonly communicatorProtocol: ChatCommunicatorProtocol,\n\t\tprivate readonly issuesTrackedById: string | null,\n\t\tprivate readonly connectionId: string,\n\t\tprivate readonly metaData: ChatCommunicatorMetadata,\n\t\tprivate readonly dateService: DateService,\n\t\tprivate readonly controller: SocketController,\n\t\tprivate readonly analyticService: AnalyticService,\n\t\tprivate readonly injector: Injector,\n\t\tprivate readonly unhandledIssuesService: UnhandledIssuesService,\n\t) {\n\t\tthis.bindEvents();\n\t\tthis.lastReadMessageTimestamp = this.metaData.hasReadUntilTimestamp;\n\t\tthis.formManager = this.injector.resolve(FormManager);\n\t}\n\n\tpublic sendMessage(message: string | null, fileTickets: string[] = []): void {\n\t\tthis.controller.publish(\n\t\t\tthis.communicatorProtocol.topics.sendMessage,\n\t\t\tthis.communicatorProtocol.parseOutgoingMessage(message, fileTickets),\n\t\t);\n\n\t\tconst analyticQuirk_userOnlySentText = message != null && fileTickets.length === 0;\n\t\tconst analyticQuirk_action = analyticQuirk_userOnlySentText ? 'Message with text sent' : 'Message with attachment sent';\n\n\t\tthis.analyticService.trackEvent(this.communicatorProtocol.analyticCategory, analyticQuirk_action);\n\n\t\t// Todo: do local diff checks. So we don't need to wait for the messages\n\t\t// you've sent on the client.\n\t\t// this.updateMessages([\n\t\t// \t{\n\t\t// \t\tid: v4(),\n\t\t// \t\tisMe: true,\n\t\t// \t\tfromId: -1,\n\t\t// \t\thasRendered: false,\n\t\t// \t\ttext: message,\n\t\t// \t},\n\t\t// ]);\n\t}\n\n\tpublic getAllMessages(): void {\n\t\tthis.communicatorProtocol.getHistory(this.controller, (response) => {\n\t\t\tif (!this.communicatorProtocol.isValidSession(response)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst messages = this.communicatorProtocol.parseIncomingMessages(response);\n\t\t\tthis.handleRetrieveMessage(messages, true);\n\n\t\t\tthis.presentation.write({\n\t\t\t\thasReceivedHistory: true,\n\t\t\t});\n\t\t});\n\t}\n\n\tpublic destroy(): void {\n\t\tthis.logger.logInformation('Destroyed bind events for chat');\n\t\tthis.disposers.forEach((disposer) => disposer());\n\t}\n\n\tpublic setReadUntil(controlledMessage: ControlledChatMessage | ControlledSystemMessage): void {\n\t\tif (controlledMessage.hasBeenRead) return;\n\t\t// To return to more prioritized work.\n\t\tqueueMicrotask(() => {\n\t\t\tcontrolledMessage.hasBeenRead = true;\n\t\t\tconst message = this.getUserMessageById(controlledMessage.id);\n\t\t\tconst timestamp = message.timestamp.add(250, 'milliseconds');\n\t\t\tif (timestamp.isAfter(this.lastReadMessageTimestamp)) {\n\t\t\t\tthis.lastReadMessageTimestamp = timestamp;\n\n\t\t\t\tthis.controller.publish('setReadUntil', {\n\t\t\t\t\ttimestamp: timestamp.toISOString(),\n\t\t\t\t\tcaseId: this.connectionId,\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (this.issuesTrackedById != null) {\n\t\t\t\tthis.unhandledIssuesService.removeIssuesByTag(this.issuesTrackedById, 'unreadMessages');\n\t\t\t}\n\t\t});\n\t}\n\n\tprivate bindEvents(): void {\n\t\tthis.logger.logInformation('Bind events for chat');\n\n\t\tthis.controller.onOpen = () => {\n\t\t\tthis.logger.logInformation('Chat controller invoked \"onOpen\"');\n\n\t\t\tqueueMicrotask(() => {\n\t\t\t\tthis.getAllMessages();\n\t\t\t});\n\t\t};\n\n\t\tconst setWindowVisibilityCallback = (): void => {\n\t\t\tthis.presentation.write({ windowHasFocus: window.document.visibilityState === 'visible' && window.document.hasFocus() });\n\t\t};\n\n\t\t// Since visibilitychange maintain visibilityState as \"visible\" even if the browser\n\t\t// window is below other windows we need to maintain this state using the focus/blur-events\n\t\t// as well. This will ensure that we will only send read-receipts when the user has focused\n\t\t// the browser content and the window/tab is visible.\n\t\twindow.addEventListener('visibilitychange', setWindowVisibilityCallback, false);\n\t\twindow.addEventListener('focus', setWindowVisibilityCallback, false);\n\t\twindow.addEventListener('blur', setWindowVisibilityCallback, false);\n\n\t\tthis.disposers = [\n\t\t\t() => {\n\t\t\t\twindow.removeEventListener('visibilitychange', setWindowVisibilityCallback, false);\n\t\t\t\twindow.removeEventListener('focus', setWindowVisibilityCallback, false);\n\t\t\t\twindow.removeEventListener('blur', setWindowVisibilityCallback, false);\n\t\t\t},\n\n\t\t\tthis.controller.on(this.communicatorProtocol.topics.retrieveMessages, (response: unknown) => {\n\t\t\t\tif (!this.communicatorProtocol.isValidSession(response)) return;\n\n\t\t\t\tconst messages = this.communicatorProtocol.parseIncomingMessages(response);\n\t\t\t\tconst [containedAForm, containedAnAttachment] = this.handleRetrieveMessage(messages);\n\n\t\t\t\tconst analyticQuirk_receivedMessageFromPeer = messages.some((m) => !m.isSystemMessage && !m.sender.isMe);\n\t\t\t\tif (analyticQuirk_receivedMessageFromPeer) {\n\t\t\t\t\t// TODO: DEV-14218 make category generic/fetch from AnalyticContext\n\t\t\t\t\tthis.analyticService.trackEvent(this.communicatorProtocol.analyticCategory, 'Received message from peer');\n\n\t\t\t\t\tif (containedAForm) {\n\t\t\t\t\t\tthis.analyticService.trackEvent(this.communicatorProtocol.analyticCategory, 'Received form from peer');\n\t\t\t\t\t}\n\n\t\t\t\t\tif (containedAnAttachment) {\n\t\t\t\t\t\tthis.analyticService.trackEvent(this.communicatorProtocol.analyticCategory, 'Received attachment from peer');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}),\n\n\t\t\tthis.controller.on('case_closed', (caseId: number) => {\n\t\t\t\tif (caseId.toString() !== this.connectionId) return;\n\t\t\t\tthis.presentation.write({\n\t\t\t\t\tisCompleted: true,\n\t\t\t\t});\n\t\t\t}),\n\n\t\t\t// todo fix?\n\t\t\t// this.controller.on('onReconnected', () => {\n\t\t\t// \tthis.getAllMessages();\n\t\t\t// });\n\n\t\t\tthis.controller.on('app_error', () => {\n\t\t\t\t// not implemented\n\t\t\t}),\n\t\t\tthis.controller.on('duplicate_connection', () => {\n\t\t\t\t// not implemented\n\t\t\t}),\n\t\t];\n\t}\n\n\tprivate handleRetrieveMessage(messages: ParsedMessage[], isOld = false): [containedAForm: boolean, containedAnAttachment: boolean] {\n\t\t// We need a way to tell how many have written in the chat to determine if\n\t\t// we should show the \"unread messages\" banner.\n\t\tconst actors = new Set<number>();\n\t\tconst hasReadUntilTimestamp = this.metaData.hasReadUntilTimestamp;\n\n\t\tconst controlledMessage = (message: ParsedMessage): ControlledChatMessage | ControlledSystemMessage => {\n\t\t\tlet text = message.text;\n\t\t\tif (text != null) {\n\t\t\t\ttext = text.trim();\n\t\t\t}\n\n\t\t\tif (message.isSystemMessage && text) {\n\t\t\t\tactors.add(0);\n\n\t\t\t\treturn {\n\t\t\t\t\ttype: 'systemMessage',\n\t\t\t\t\ttext,\n\t\t\t\t\tid: v4(),\n\t\t\t\t\tfromId: v4(),\n\t\t\t\t\ttimestamp: this.dateService.create(message.timestamp),\n\t\t\t\t\thasBeenRead: !hasReadUntilTimestamp?.isBefore(message.timestamp),\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tlet senderNameWithTitle: string;\n\t\t\tlet fromId: number;\n\t\t\tlet senderName: string;\n\t\t\tlet senderImageUrl: string | null;\n\t\t\tlet isMe: boolean;\n\t\t\tlet isAutoreplyMessage: boolean;\n\t\t\tlet fromInitials: string | null = null;\n\n\t\t\tif (message.autoReplyReception != null) {\n\t\t\t\tsenderNameWithTitle = message.autoReplyReception.name ?? '';\n\t\t\t\tfromId = message.autoReplyReception.receptionId;\n\t\t\t\tsenderName = message.autoReplyReception.name || '';\n\t\t\t\tsenderImageUrl = message.autoReplyReception.profileImageUrl;\n\t\t\t\tisMe = false;\n\t\t\t\tisAutoreplyMessage = true;\n\t\t\t} else {\n\t\t\t\tsenderNameWithTitle = `${message.sender.title ? message.sender.title + ', ' : ''}${message.sender.name}`;\n\t\t\t\tfromId = message.sender.id;\n\t\t\t\tsenderName = message.sender.name;\n\t\t\t\tsenderImageUrl = message.sender.profileImageUrl;\n\t\t\t\tisMe = message.sender.isMe;\n\t\t\t\tisAutoreplyMessage = false;\n\t\t\t\tfromInitials = message.sender.fromInitials;\n\t\t\t}\n\n\t\t\tactors.add(fromId);\n\n\t\t\treturn {\n\t\t\t\ttype: 'chatMessage',\n\t\t\t\tid: v4(),\n\t\t\t\thasRendered: isOld,\n\t\t\t\ttext,\n\t\t\t\tsenderName,\n\t\t\t\tfromInitials,\n\t\t\t\tsenderNameWithTitle,\n\t\t\t\tsenderImageUrl,\n\t\t\t\tfromId,\n\t\t\t\tisMe,\n\t\t\t\tisAutoreplyMessage,\n\t\t\t\ttimestamp: this.dateService.create(message.timestamp),\n\t\t\t\thasBeenRead: !hasReadUntilTimestamp?.isBefore(message.timestamp),\n\t\t\t\tisRedRobinInitialMessage: message.redRobinSessionId != null,\n\t\t\t\tstaleFileWorkers: message.files.map(\n\t\t\t\t\t(file) =>\n\t\t\t\t\t\tnew FileWorkerStale({\n\t\t\t\t\t\t\tdownloadUrl: file.url,\n\t\t\t\t\t\t\tfileName: file.fileName,\n\t\t\t\t\t\t\tfileSize: file.length,\n\t\t\t\t\t\t\tfileType: file.type,\n\t\t\t\t\t\t\tthumbnailUrl: file.url + '/thumbnail',\n\t\t\t\t\t\t}),\n\t\t\t\t),\n\t\t\t\t// We need to register the forms that may be contained within a message.\n\t\t\t\tforms: this.formManager.addRespondants(\n\t\t\t\t\tmessage.responseStatuses.map((respondant) => ({\n\t\t\t\t\t\t...respondant,\n\t\t\t\t\t\tissueTrackingId: MessagingCaseModel.MESSAGE_UNHANDLED_ISSUES_TRACKING_ID_PREFIX + this.connectionId,\n\t\t\t\t\t\tdataProvider: {\n\t\t\t\t\t\t\ttype: 'respondant',\n\t\t\t\t\t\t\trespondantId: respondant.respondantId,\n\t\t\t\t\t\t},\n\t\t\t\t\t})),\n\t\t\t\t),\n\t\t\t};\n\t\t};\n\n\t\tlet analyticQuirk_didContainAForm = false;\n\t\tlet analyticQuirk_didContainAnAttachment = false;\n\n\t\tlet insertNewUnreadIndex = -1;\n\t\tconst parsedMessages: ControlledMessage[] = [];\n\t\tfor (let index = 0; index < messages.length; index++) {\n\t\t\tconst rawMessage = messages[index];\n\t\t\tconst message = controlledMessage(rawMessage);\n\n\t\t\tif (!analyticQuirk_didContainAForm) {\n\t\t\t\tanalyticQuirk_didContainAForm = rawMessage.responseStatuses.length > 0;\n\t\t\t}\n\n\t\t\tif (!analyticQuirk_didContainAnAttachment) {\n\t\t\t\tanalyticQuirk_didContainAnAttachment = rawMessage.files.length > 0;\n\t\t\t}\n\n\t\t\tparsedMessages.push(message);\n\n\t\t\t// We already have a new unread message, we don't want the last message to\n\t\t\t// be flagged as the unread one.\n\t\t\tif (insertNewUnreadIndex !== -1) continue;\n\n\t\t\tif (hasReadUntilTimestamp?.isBefore(message.timestamp)) {\n\t\t\t\tinsertNewUnreadIndex = index;\n\t\t\t}\n\t\t}\n\n\t\t// We don't want to show unread if there's only one that have been active in\n\t\t// the chat.\n\t\tif (actors.size > 1 && insertNewUnreadIndex > 0) {\n\t\t\tparsedMessages.splice(insertNewUnreadIndex, 0, {\n\t\t\t\ttype: 'unreadTimestampMessage',\n\t\t\t\tid: v4(),\n\t\t\t\tfromId: v4(),\n\t\t\t});\n\t\t}\n\n\t\tif (isOld) {\n\t\t\tthis.resetMessages();\n\t\t}\n\n\t\tthis.updateMessages(parsedMessages);\n\n\t\treturn [analyticQuirk_didContainAForm, analyticQuirk_didContainAnAttachment];\n\t}\n\n\tprivate updateMessages(messages: ControlledMessage[]): void {\n\t\tthis.presentation.write((prev) => {\n\t\t\tconst prevMessages = prev.extract().messages as unknown as ControlledMessage[];\n\n\t\t\treturn {\n\t\t\t\tmessages: [...prevMessages, ...messages],\n\t\t\t};\n\t\t});\n\t}\n\n\tprivate getUserMessageById(id: string): ControlledChatMessage | ControlledSystemMessage {\n\t\tconst { messages } = this.presentation.read();\n\t\tconst message = messages.find((message) => message.id === id);\n\n\t\tif (message == null) throw new Error(`Could not find a message with id ${id}`);\n\t\tif (message.type !== 'chatMessage' && message.type !== 'systemMessage')\n\t\t\tthrow new Error(`The message was found but it was not of type \"ControlledChatMessage\" but rather: ${message.type}`);\n\n\t\treturn message;\n\t}\n\n\tprivate resetMessages(): void {\n\t\tthis.presentation.write({\n\t\t\tmessages: [],\n\t\t});\n\t}\n}\n","import { Axon, SocketController } from '@visiba-cortex/axon';\nimport { Injectable } from '@visiba-cortex/instantiation';\nimport { Presentation } from '@visiba-cortex/presentation';\nimport { HostingService } from '@application/hosting.service';\nimport { devApplicationLocalStorage } from '@application/application_storage_local_dev';\nimport { DateService } from '@application/time/date.service';\nimport { ChatCommunicator, ChatCommunicatorMetadata } from './chat_communicator';\nimport { Logger } from '@visiba/logger';\nimport { AnalyticService } from '@application/analytic/analytic.service';\nimport { Injector } from '@visiba-cortex/instantiation';\nimport { UnhandledIssuesService } from '@feature/issues/unhandled_issues.service';\nimport type { ChatCommunicatorProtocol } from './chat_communicator_protocol';\n\ninterface Presentation {\n\tcommunicator: ChatCommunicator | null;\n\tisReadyForCommunication: boolean;\n}\n\n@Injectable()\nexport class ChatController {\n\tpublic readonly presentation = Presentation.create<Presentation>({\n\t\tcommunicator: null,\n\t\tisReadyForCommunication: false,\n\t});\n\tprivate socket: Axon | null = null;\n\tprivate connectedTo: string | null = null;\n\tprivate readonly logger = new Logger('ChatController');\n\n\tconstructor(\n\t\tprivate readonly hostingService: HostingService,\n\t\tprivate readonly dateService: DateService,\n\t\tprivate readonly analyticService: AnalyticService,\n\t\tprivate readonly injector: Injector,\n\t\tprivate readonly unhandledIssuesService: UnhandledIssuesService,\n\t) {\n\t\t// Empty\n\t}\n\n\tpublic join(connectId: string, metaData: ChatCommunicatorMetadata, communicatorProtocol: ChatCommunicatorProtocol): void {\n\t\tif (this.connectedTo === connectId) {\n\t\t\tthis.logger.logInformation('tried to join an already joined room');\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.connectedTo = connectId;\n\n\t\tlet controller: SocketController;\n\t\tif (communicatorProtocol.controllerInstance == null) {\n\t\t\tcontroller = this.createSocket().getController('messaging');\n\t\t} else {\n\t\t\tcontroller = communicatorProtocol.controllerInstance;\n\t\t\tthis.presentation.write({\n\t\t\t\tisReadyForCommunication: true,\n\t\t\t});\n\t\t}\n\n\t\tconst { communicator: currentCommunicator } = this.presentation.read();\n\t\tcurrentCommunicator?.destroy();\n\n\t\tconst communicator = new ChatCommunicator(\n\t\t\tcommunicatorProtocol,\n\t\t\tmetaData.issuesTrackedById ?? null,\n\t\t\tconnectId,\n\t\t\tmetaData,\n\t\t\tthis.dateService,\n\t\t\tcontroller,\n\t\t\tthis.analyticService,\n\t\t\tthis.injector,\n\t\t\tthis.unhandledIssuesService,\n\t\t);\n\n\t\tthis.presentation.write({\n\t\t\tcommunicator,\n\t\t});\n\t}\n\n\tpublic removeCurrentBridge(): void {\n\t\tconst { communicator: currentBridge } = this.presentation.read();\n\t\tcurrentBridge?.destroy();\n\t\tthis.connectedTo = null;\n\t}\n\n\tpublic terminate(): void {\n\t\tthis.removeCurrentBridge();\n\n\t\tthis.socket\n\t\t\t?.close()\n\t\t\t.then(() => {\n\t\t\t\tthis.presentation.write({\n\t\t\t\t\tisReadyForCommunication: false,\n\t\t\t\t});\n\t\t\t})\n\t\t\t.catch(() => {\n\t\t\t\t// noop\n\t\t\t});\n\n\t\tthis.socket = null;\n\t}\n\n\tpublic sendMessage(message: string | null, fileTickets: string[]): void {\n\t\tconst { communicator: currentBridge } = this.presentation.read();\n\t\tif (currentBridge == null) return;\n\n\t\tcurrentBridge.sendMessage(message, fileTickets);\n\t}\n\n\tprivate createSocket(): Axon {\n\t\tif (this.socket == null) {\n\t\t\tthis.socket = new Axon(this.hostingService.wsBaseUri, (message: string) => {\n\t\t\t\tthis.logger.logVerbose('{message}', message);\n\t\t\t});\n\t\t\tconst devSession = devApplicationLocalStorage.get('identitySession');\n\t\t\tthis.socket.setParameters({\n\t\t\t\tAuthorizationTicket: devSession,\n\t\t\t});\n\t\t\tthis.socket.events.on('onReconnecting', () => {\n\t\t\t\tthis.presentation.write({\n\t\t\t\t\tisReadyForCommunication: false,\n\t\t\t\t});\n\t\t\t});\n\t\t\tthis.socket.events.on('onReconnected', () => {\n\t\t\t\tconst bridge = this.presentation.read().communicator;\n\t\t\t\tbridge?.getAllMessages();\n\n\t\t\t\tthis.presentation.write({\n\t\t\t\t\tisReadyForCommunication: true,\n\t\t\t\t});\n\t\t\t});\n\n\t\t\t// The creation of microtask is intended to return to higher priority work.\n\t\t\tqueueMicrotask(() => {\n\t\t\t\tthis.socket\n\t\t\t\t\t?.open()\n\t\t\t\t\t.then(() => {\n\t\t\t\t\t\tthis.presentation.write({\n\t\t\t\t\t\t\tisReadyForCommunication: true,\n\t\t\t\t\t\t});\n\t\t\t\t\t})\n\t\t\t\t\t.catch(() => {\n\t\t\t\t\t\tthis.socket = null;\n\t\t\t\t\t\tthis.connectedTo = null;\n\t\t\t\t\t});\n\t\t\t});\n\t\t} else {\n\t\t\tthis.presentation.write({\n\t\t\t\tisReadyForCommunication: true,\n\t\t\t});\n\t\t}\n\n\t\treturn this.socket;\n\t}\n}\n","import styled from 'styled-components';\nimport { ReactNode, useEffect, useRef } from 'react';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { usePresentation } from '@visiba-cortex/presentation';\nimport { ChatInputArea } from './_chat_input_area.component';\nimport { ChatMessagesContainer } from './_chat_messages_container.component';\nimport { ChatController } from './chat.controller';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { ChatCommunicatorProtocol } from './chat_communicator_protocol';\nimport { quirk_iOSKeyboardLockBodyScroll } from '@module/quirk_ios_keyboard_lock_body_scroll';\nimport { ObfuscateNameContext } from './_obfuscate_name.context';\n\ninterface Props {\n\tcommunicator: ChatCommunicatorProtocol;\n\t/**\n\t * @deprecated\n\t */\n\tconnectedId: string;\n\tisReadyToJoin?: boolean;\n\theader?: ReactNode | ReactNode[];\n\tforceHideActions?: boolean;\n\thasReadUntilData?: VisibaDate;\n\tshowTopBanner?: ReactNode;\n\tshowBottomBanner?: ReactNode;\n\tissuesTrackedById?: string;\n\tonMarkAsCompleted?: () => void;\n\tonReceivedHistory?: () => void;\n\tonSendMessage?: () => void;\n\tobfuscateName?: boolean;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\theight: 100%;\n\t\tflex: 1;\n\t`,\n\theader: styled.div`\n\t\twidth: 100%;\n\t`,\n};\n\nexport function Chat({\n\tcommunicator,\n\tconnectedId,\n\theader,\n\tforceHideActions,\n\tisReadyToJoin,\n\thasReadUntilData,\n\tshowTopBanner,\n\tshowBottomBanner,\n\tissuesTrackedById,\n\tonMarkAsCompleted,\n\tonReceivedHistory,\n\tonSendMessage,\n\tobfuscateName = false,\n}: Props): JSX.Element {\n\tconst controller = useService(ChatController);\n\tconst presentation = usePresentation(controller.presentation);\n\tconst analyticCtx = useAnalyticContext();\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\n\tfunction handleSend(message: string | null, fileTickets: string[]): void {\n\t\tcontroller.sendMessage(message, fileTickets);\n\t\tanalyticCtx.trackEvent('User clicked on send message button');\n\n\t\tif (onSendMessage != null) {\n\t\t\tonSendMessage();\n\t\t}\n\t}\n\n\tuseEffect(\n\t\tfunction whenUserIsReadyToJoinRoom() {\n\t\t\tif (isReadyToJoin) {\n\t\t\t\tcontroller.join(\n\t\t\t\t\tconnectedId,\n\t\t\t\t\t{\n\t\t\t\t\t\tissuesTrackedById,\n\t\t\t\t\t\thasReadUntilTimestamp: hasReadUntilData ?? null,\n\t\t\t\t\t},\n\t\t\t\t\tcommunicator,\n\t\t\t\t);\n\t\t\t}\n\t\t},\n\t\t[controller, connectedId, hasReadUntilData, isReadyToJoin, issuesTrackedById, communicator],\n\t);\n\n\tuseEffect(\n\t\tfunction whenComponentUnmounts() {\n\t\t\treturn () => {\n\t\t\t\tcontroller.terminate();\n\t\t\t};\n\t\t},\n\t\t[controller],\n\t);\n\n\tuseEffect(\n\t\tfunction whenConnectedIdChanges() {\n\t\t\treturn () => {\n\t\t\t\tcontroller.removeCurrentBridge();\n\t\t\t};\n\t\t},\n\t\t[controller, connectedId],\n\t);\n\n\treturn (\n\t\t<ObfuscateNameContext.Provider value={obfuscateName}>\n\t\t\t<elements.container\n\t\t\t\tref={containerRef}\n\t\t\t\tonBlur={() => {\n\t\t\t\t\tquirk_iOSKeyboardLockBodyScroll();\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<elements.header>{header}</elements.header>\n\t\t\t\t<ChatMessagesContainer\n\t\t\t\t\tbridge={presentation.communicator}\n\t\t\t\t\tshowLoader={!presentation.isReadyForCommunication}\n\t\t\t\t\tmarkAsCompleted={forceHideActions ?? false}\n\t\t\t\t\ttopBanner={showTopBanner}\n\t\t\t\t\tbottomBanner={showBottomBanner}\n\t\t\t\t\tonMarkAsCompleted={onMarkAsCompleted}\n\t\t\t\t\tonReceivedHistory={onReceivedHistory}\n\t\t\t\t/>\n\t\t\t\t{!forceHideActions ? (\n\t\t\t\t\t<ChatInputArea\n\t\t\t\t\t\tconnectedId={connectedId}\n\t\t\t\t\t\tfileUploadDispositionUri={communicator.fileUploadDispositionUri}\n\t\t\t\t\t\tonSend={handleSend}\n\t\t\t\t\t\tisReadyForCommunication={presentation.isReadyForCommunication}\n\t\t\t\t\t/>\n\t\t\t\t) : null}\n\t\t\t</elements.container>\n\t\t</ObfuscateNameContext.Provider>\n\t);\n}\n","import { ChangeEvent, createContext, useContext } from 'react';\nimport type { FormWorker } from './form_manager/form_worker';\n\ninterface DynamicFormContextValue {\n\tformWorker: Readonly<FormWorker>;\n\thandleSubmit: (event: ChangeEvent<HTMLFormElement>) => void;\n\thandleGoBack: () => void;\n}\n\nexport const DynamicFormContext = createContext<DynamicFormContextValue>(undefined as unknown as DynamicFormContextValue);\n\nexport function useDynamicFormContext(): DynamicFormContextValue {\n\tconst context = useContext(DynamicFormContext);\n\n\tif (!context) {\n\t\tthrow new Error(\"DynamicFormContext can't be used outside <DynamicForm.Root />\");\n\t}\n\n\treturn context;\n}\n","import { ChangeEvent, ReactNode, useEffect, useRef } from 'react';\nimport { useFormWorkerState } from '@feature/dynamic_form/form_manager/use_form_worker';\nimport type { FormWorker } from '@feature/dynamic_form/form_manager/form_worker';\nimport { Flex } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Timer } from '@visiba/std';\nimport { DynamicFormContext } from './dynamic_form.context';\nimport { Shimmer } from '@component/new_shimmer.component';\n\nfunction DynamicFormRootSkeleton() {\n\treturn (\n\t\t<Flex gap={tokens.spacing.x3}>\n\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t<Shimmer height={tokens.size.x3} width='60%' />\n\t\t\t</Flex>\n\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t<Shimmer height={tokens.size.x2} width='30%' />\n\t\t\t\t<Shimmer height={tokens.size.x9} />\n\t\t\t</Flex>\n\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t<Shimmer height={tokens.size.x2} width='42%' />\n\t\t\t\t<Shimmer height={tokens.size.x5} />\n\t\t\t</Flex>\n\t\t</Flex>\n\t);\n}\n\ninterface Props {\n\tdefaultPagePosition?: number;\n\tformWorker: Readonly<FormWorker>;\n\tchildren: ReactNode;\n}\n\nexport function DynamicFormRoot({ formWorker, defaultPagePosition = 0, children }: Props): JSX.Element {\n\tconst { meta, pagePosition } = useFormWorkerState(formWorker);\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\n\tuseEffect(() => {\n\t\tformWorker.resetPosition(defaultPagePosition);\n\n\t\treturn Timer.wait(() => {\n\t\t\tformWorker.getData();\n\t\t}, 500); // Waiting a bit to let the sheet open, avoid cluttering the main thread.;\n\t}, [formWorker, defaultPagePosition]);\n\n\tuseEffect(\n\t\tfunction whenPageIsChanged() {\n\t\t\tcontainerRef.current?.focus();\n\t\t},\n\t\t[pagePosition],\n\t);\n\n\tfunction handleGoBack(): void {\n\t\tformWorker.changePage('backwards', {});\n\t}\n\n\tfunction handleSubmit(event: ChangeEvent<HTMLFormElement>): void {\n\t\tevent.preventDefault();\n\n\t\tformWorker.changePage('forwards', event.target);\n\t}\n\n\treturn (\n\t\t<DynamicFormContext.Provider value={{ formWorker, handleSubmit, handleGoBack }}>\n\t\t\t{meta == null ? (\n\t\t\t\t<DynamicFormRootSkeleton />\n\t\t\t) : (\n\t\t\t\t<Flex grow={1} gap={tokens.spacing.x2} ref={containerRef} tabIndex={-1} style={{ outline: 'none' }}>\n\t\t\t\t\t{children}\n\t\t\t\t</Flex>\n\t\t\t)}\n\t\t</DynamicFormContext.Provider>\n\t);\n}\n","import { tokens } from '@cellula/react-theme-patient';\nimport {\n\tFlex,\n\tInputRadio,\n\tInputSelect,\n\tInputCheckbox,\n\tForm,\n\tInputTextArea,\n\tInputCheckboxGroup,\n\tCellulaFormSubmitData,\n\tuseFormContext,\n} from '@cellula/react';\nimport { ReactNode, useEffect, useRef, useState } from 'react';\nimport { useFormWorkerState } from './form_manager/use_form_worker';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport type {\n\tFormPage,\n\tFormWorker,\n\tQuestionUnion,\n\tFormQuestionTypeSingleChoiceRadio,\n\tFormQuestionTypeYesNo,\n\tFormQuestionTypeMultiChoice,\n\tFormQuestionTypeMultiline,\n\tFormQuestionTypeSingleChoiceSelect,\n} from './form_manager/mod';\nimport { I18nAndL10n } from '@application/i18n/i18n_and_l10n';\n\ninterface Props {\n\tpage: FormPage;\n\tformWorker: Readonly<FormWorker>;\n\tchildren: ReactNode;\n}\n\nexport function DynamicFormPage({ page, formWorker, children }: Props): JSX.Element | null {\n\tconst ref = useRef<HTMLDivElement | null>(null);\n\tconst [defaultValues, setDefaultValues] = useState<CellulaFormSubmitData>({});\n\tconst [questions, setQuestions] = useState<ReactNode[]>([]);\n\n\tuseEffect(\n\t\tfunction whenCurrentStepChanges() {\n\t\t\tref.current?.focus();\n\n\t\t\tconst defaultValues: CellulaFormSubmitData = {};\n\n\t\t\tsetQuestions(\n\t\t\t\tpage.questions.map((question) => {\n\t\t\t\t\tdefaultValues[question.id] = question.defaultValue ?? undefined;\n\n\t\t\t\t\treturn <QuestionComp key={question.id} formWorker={formWorker} question={question} />;\n\t\t\t\t}),\n\t\t\t);\n\t\t\tsetDefaultValues(defaultValues);\n\t\t},\n\t\t[page, formWorker],\n\t);\n\n\tasync function handleSubmit(data: CellulaFormSubmitData): Promise<void> {\n\t\ttry {\n\t\t\tawait formWorker.changePage('forwards', data);\n\t\t} catch {\n\t\t\tthrow new Error('Something went wrong.. Please try again!');\n\t\t}\n\t}\n\n\treturn (\n\t\t<Form.Root onSubmit={handleSubmit} options={{ defaultValues }}>\n\t\t\t<InnerForm defaultValues={defaultValues}>{questions}</InnerForm>\n\n\t\t\t<Form.Error />\n\t\t\t{children}\n\t\t</Form.Root>\n\t);\n}\n\nfunction InnerForm({ defaultValues, children }: { defaultValues: CellulaFormSubmitData; children: ReactNode }): JSX.Element | null {\n\tconst formContext = useFormContext();\n\n\tuseEffect(\n\t\tfunction whenDefaultValuesChange() {\n\t\t\tformContext?.control.reset(defaultValues);\n\t\t},\n\t\t// Reason, we only want to run this effect once, when the defaultValues change.\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t\t[defaultValues],\n\t);\n\n\treturn <Flex gap={tokens.spacing.x2}>{children}</Flex>;\n}\n\ntype WithCommonProps = {\n\tformWorker: Readonly<FormWorker>;\n};\n\nfunction QuestionComp({ question, formWorker }: { question: QuestionUnion } & WithCommonProps): JSX.Element {\n\tswitch (question.type) {\n\t\tcase 'YesNo':\n\t\t\treturn <YesNo question={question} formWorker={formWorker} />;\n\t\tcase 'MultiChoice':\n\t\t\treturn <MultiChoice question={question} formWorker={formWorker} />;\n\t\tcase 'Multiline':\n\t\t\treturn <Multiline question={question} formWorker={formWorker} />;\n\t\tcase 'SingleChoiceRadio':\n\t\t\treturn <SingleChoiceRadio question={question} formWorker={formWorker} />;\n\t\tcase 'SingleChoiceSelect':\n\t\t\treturn <SingleChoiceSelect question={question} formWorker={formWorker} />;\n\t\tdefault:\n\t\t\tthrow new Error(`Could not resolve a component type: {question.type}`);\n\t}\n}\n\nfunction YesNo({ question, formWorker }: { question: FormQuestionTypeYesNo } & WithCommonProps): JSX.Element | null {\n\tconst { completed, editable } = useFormWorkerState(formWorker);\n\n\treturn (\n\t\t<InputRadio.Root\n\t\t\trequired={question.isRequired}\n\t\t\treadOnly={completed && !editable}\n\t\t\tname={question.id}\n\t\t\tlabel={question.header}\n\t\t\toptions={question.isRequired ? { required: I18nAndL10n.translate('Form.ValidationError.OnlyOneOption') } : undefined}\n\t\t>\n\t\t\t<InputRadio.Item value='true' label={question.trueLabel} />\n\t\t\t<InputRadio.Item value='false' label={question.falseLabel} />\n\t\t</InputRadio.Root>\n\t);\n}\n\nfunction Multiline({ question, formWorker }: { question: FormQuestionTypeMultiline } & WithCommonProps): JSX.Element | null {\n\tconst { completed, editable } = useFormWorkerState(formWorker);\n\n\treturn (\n\t\t<InputTextArea\n\t\t\tlabel={question.header}\n\t\t\trequired={question.isRequired}\n\t\t\treadOnly={completed && !editable}\n\t\t\tname={question.id}\n\t\t\toptions={question.isRequired ? { required: I18nAndL10n.translate('Form.ValidationError.Required') } : undefined}\n\t\t\tminHeight={120}\n\t\t\tplaceholder={question.placeholder}\n\t\t></InputTextArea>\n\t);\n}\n\nfunction MultiChoice({ question, formWorker }: { question: FormQuestionTypeMultiChoice } & WithCommonProps): JSX.Element | null {\n\tconst { completed, editable } = useFormWorkerState(formWorker);\n\n\treturn (\n\t\t<InputCheckboxGroup\n\t\t\tlabel={question.header}\n\t\t\tname={question.id}\n\t\t\treadOnly={completed && !editable}\n\t\t\trequired={question.isRequired}\n\t\t\toptions={question.isRequired ? { required: I18nAndL10n.translate('Form.ValidationError.MinOneOption') } : undefined}\n\t\t>\n\t\t\t{question.options.map((option) => (\n\t\t\t\t<InputCheckbox\n\t\t\t\t\tkey={option.id}\n\t\t\t\t\tvalue={option.id}\n\t\t\t\t\tlabel={option.text}\n\t\t\t\t\tdefaultChecked={question.defaultValue?.includes(option.id)}\n\t\t\t\t/>\n\t\t\t))}\n\t\t</InputCheckboxGroup>\n\t);\n}\n\nfunction SingleChoiceSelect({\n\tquestion,\n\tformWorker,\n}: { question: FormQuestionTypeSingleChoiceSelect } & WithCommonProps): JSX.Element | null {\n\tconst { completed, editable } = useFormWorkerState(formWorker);\n\n\treturn (\n\t\t<InputSelect.Root\n\t\t\tlabel={question.header}\n\t\t\trequired={question.isRequired}\n\t\t\treadOnly={completed && !editable}\n\t\t\tname={question.id}\n\t\t\tplaceholder={withTranslation('Feature.DynamicForms.SingleChoiceSelect.Placeholder')}\n\t\t\toptions={question.isRequired ? { required: I18nAndL10n.translate('Form.ValidationError.OnlyOneOption') } : undefined}\n\t\t>\n\t\t\t{question.options.map((option) => (\n\t\t\t\t<InputSelect.Item key={option.id} value={option.id}>\n\t\t\t\t\t{option.text}\n\t\t\t\t</InputSelect.Item>\n\t\t\t))}\n\t\t</InputSelect.Root>\n\t);\n}\n\nfunction SingleChoiceRadio({\n\tquestion,\n\tformWorker,\n}: { question: FormQuestionTypeSingleChoiceRadio } & WithCommonProps): JSX.Element | null {\n\tconst { completed, editable } = useFormWorkerState(formWorker);\n\n\treturn (\n\t\t<InputRadio.Root\n\t\t\trequired={question.isRequired}\n\t\t\treadOnly={completed && !editable}\n\t\t\tname={question.id}\n\t\t\tlabel={question.header}\n\t\t\toptions={question.isRequired ? { required: I18nAndL10n.translate('Form.ValidationError.OnlyOneOption') } : undefined}\n\t\t>\n\t\t\t{question.options.map((option) => (\n\t\t\t\t<InputRadio.Item key={option.id} value={option.id} label={option.text} />\n\t\t\t))}\n\t\t</InputRadio.Root>\n\t);\n}\n","import { DynamicFormRoot } from './_dynamic_form_root.component';\nimport { DynamicFormActions } from './_dynamic_form_actions.component';\nimport { DynamicFormDescription } from './_dynamic_form_description.component';\nimport { DynamicFormContent } from './_dynamic_form_content.component';\n\nexport const DynamicForm = {\n\tRoot: DynamicFormRoot,\n\tDescription: DynamicFormDescription,\n\tContent: DynamicFormContent,\n\tActions: DynamicFormActions,\n};\n","import { Stack, Divider, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { useDynamicFormContext } from './dynamic_form.context';\nimport { useFormWorkerState } from './form_manager/use_form_worker';\n\nexport function DynamicFormDescription(): JSX.Element | null {\n\tconst context = useDynamicFormContext();\n\tconst { meta } = useFormWorkerState(context.formWorker);\n\n\tif (meta == null) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<Stack gap={tokens.spacing.x1}>\n\t\t\t\t<Text variant='headingSmall'>{meta.header}</Text>\n\t\t\t\t<Text variant='bodyRegular'>{meta.description}</Text>\n\t\t\t</Stack>\n\n\t\t\t<Divider />\n\t\t</>\n\t);\n}\n","import { useDynamicFormContext } from './dynamic_form.context';\nimport { useFormWorkerState } from './form_manager/use_form_worker';\nimport { DynamicFormPage } from './_dynamic_form_page.component';\nimport { ReactNode } from 'react';\n\ninterface DynamicFormContentProps {\n\tchildren: ReactNode;\n}\n\nexport function DynamicFormContent({ children }: DynamicFormContentProps): JSX.Element | null {\n\tconst context = useDynamicFormContext();\n\tconst { meta, pagePosition } = useFormWorkerState(context.formWorker);\n\n\tif (meta == null) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<DynamicFormPage page={meta.pages[pagePosition]} formWorker={context.formWorker}>\n\t\t\t{children}\n\t\t</DynamicFormPage>\n\t);\n}\n","import { withTranslation } from '@application/i18n/with_translation';\nimport { Flex, Divider, Button, useFormContext, Form } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { useDynamicFormContext } from './dynamic_form.context';\nimport { useFormWorkerState } from './form_manager/use_form_worker';\n\nexport function DynamicFormActions(): JSX.Element | null {\n\tconst context = useDynamicFormContext();\n\tconst formContext = useFormContext();\n\tconst { meta, pagePosition, completed, editable } = useFormWorkerState(context.formWorker);\n\n\tif (meta == null) {\n\t\treturn null;\n\t}\n\n\tfunction handleGoBack(): void {\n\t\tcontext.formWorker.changePage('backwards', formContext?.control.getValues() ?? {});\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<Flex grow={1} />\n\n\t\t\t<Divider />\n\t\t\t<Flex justify='space-between' gap={tokens.spacing.x1} direction='row'>\n\t\t\t\t{pagePosition > 0 && meta.pages.length !== 1 ? (\n\t\t\t\t\t<Button\n\t\t\t\t\t\ttype='button'\n\t\t\t\t\t\tsize='medium'\n\t\t\t\t\t\tdisabled={pagePosition === 0}\n\t\t\t\t\t\tdisabledText={withTranslation('Feature.DynamicForms.Button.Backwards.AriaDisabled')}\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\tonClick={handleGoBack}\n\t\t\t\t\t>\n\t\t\t\t\t\t{withTranslation('Feature.DynamicForms.Button.Backwards')}\n\t\t\t\t\t</Button>\n\t\t\t\t) : null}\n\t\t\t\t<Flex grow={1} />\n\t\t\t\t<Form.SubmitButton size='medium' variant='primary'>\n\t\t\t\t\t{pagePosition === meta.pages.length - 1\n\t\t\t\t\t\t? !completed || editable\n\t\t\t\t\t\t\t? withTranslation('Feature.DynamicForms.Button.Send')\n\t\t\t\t\t\t\t: withTranslation('Feature.DynamicForms.Button.Close')\n\t\t\t\t\t\t: withTranslation('Feature.DynamicForms.Button.Forward')}\n\t\t\t\t</Form.SubmitButton>\n\t\t\t</Flex>\n\t\t</>\n\t);\n}\n","import { withTranslation } from '@application/i18n/with_translation';\nimport { useFormWorkerState } from './form_manager/use_form_worker';\nimport type { FormWorker } from './form_manager/form_worker';\n\ninterface Props {\n\tformWorker: Readonly<FormWorker>;\n}\n\nexport function DynamicFormPageLabel({ formWorker }: Props): JSX.Element | null {\n\tconst { meta, pagePosition } = useFormWorkerState(formWorker);\n\n\tconst isSinglePage = (meta?.pages.length ?? 0) <= 1;\n\tconst leftSide = meta != null ? pagePosition + 1 : '-';\n\tconst rightSide = meta != null ? meta?.pages.length : '-';\n\n\treturn isSinglePage ? (\n\t\t<span />\n\t) : (\n\t\t<span tabIndex={-1} aria-live='polite'>\n\t\t\t{withTranslation('Feature.DynamicForms.PageStep', {\n\t\t\t\tcurrent: leftSide.toString(),\n\t\t\t\tamount: rightSide.toString(),\n\t\t\t})}\n\t\t</span>\n\t);\n}\n","import styled from 'styled-components';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport { Sheet, BadgeText, Flex, Icon, Text, HeadlessButton, ImperativeSheetRef } from '@cellula/react';\nimport { useFormWorkerState } from './form_manager/use_form_worker';\nimport { DynamicFormPageLabel } from './dynamic_form_page_label.component';\nimport { DynamicForm } from './dynamic_form.component';\nimport { forwardRef, HTMLAttributes, MouseEvent, Ref, useCallback, useEffect, useRef } from 'react';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport type { FormWorker } from '@feature/dynamic_form/form_manager/form_worker';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { NotificationService } from '@component/notification_manager/notification/notification.service';\nimport { LocalPushNotification } from '@component/notification_manager/notification/mod';\n\nconst elements = {\n\tsheetInner: styled.div`\n\t\tmax-width: 600px;\n\t\twidth: 100%;\n\t\tmargin: 0 auto;\n\t\tdisplay: flex;\n\t\tflex-grow: 1;\n\t\tflex-direction: column;\n\t\tpadding: 0 ${tokens.spacing.x2};\n\t`,\n\tcontainer: styled(HeadlessButton)`\n\t\tpadding: ${tokens.spacing.x2} ${tokens.spacing.x1_5};\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: ${tokens.spacing.x1_5};\n\t\tbackground-color: ${tokens.color.bg.surface};\n\t\tborder-radius: ${tokens.borderRadius.medium};\n\t\ttext-align: start;\n\t\tborder: 1px solid transparent;\n\t\tbox-shadow: ${tokens.elevation.skim};\n\t\tjustify-content: flex-start;\n\t\toverflow: hidden;\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\tborder: 1px solid ${tokens.color.border.muted};\n\t\ttransition: box-shadow 150ms ease-in;\n\t\tcolor: ${tokens.color.content.default};\n\n\t\t&:hover {\n\t\t\ttransition: box-shadow 50ms;\n\t\t\tbox-shadow: ${tokens.elevation.lifted};\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:disabled,\n\t\t&[data-disabled='true'] {\n\t\t\tbox-shadow: none;\n\t\t\topacity: 0.6;\n\t\t\tcursor: not-allowed;\n\t\t}\n\n\t\t&::after {\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\tinset: 0;\n\t\t\tbackground-color: ${primitiveColorTokens.primary[100]};\n\t\t\tz-index: -1;\n\t\t\topacity: 0.4;\n\t\t}\n\n\t\t&[data-focus='true'] {\n\t\t\toutline: 2px solid ${tokens.color.focus};\n\t\t\toutline-offset: 2px;\n\t\t}\n\t`,\n};\n\ninterface Props {\n\tformWorker: Readonly<FormWorker>;\n\tanalyticAction: string;\n\tdisabled?: boolean;\n\tonCompleted?: (() => void) | false;\n}\n\nexport function FormCard({ formWorker, analyticAction, disabled, onCompleted }: Props): JSX.Element {\n\tconst ref = useRef<ImperativeSheetRef>(null);\n\tconst notificationService = useResolve(NotificationService);\n\n\tconst handleCompleted = useCallback(\n\t\tfunction handleCompleted() {\n\t\t\tif (onCompleted === false) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (onCompleted) {\n\t\t\t\tonCompleted();\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tnotificationService.add(\n\t\t\t\tnew LocalPushNotification({\n\t\t\t\t\tlabel: withTranslation('Feature.DynamicForms.Notification.Completed'),\n\t\t\t\t\ttype: 'toast',\n\t\t\t\t\tvariant: 'success',\n\t\t\t\t}),\n\t\t\t);\n\t\t},\n\t\t[notificationService, onCompleted],\n\t);\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tfunction closeSheet() {\n\t\t\t\tref.current?.close();\n\t\t\t}\n\n\t\t\tformWorker.events.on('onAbort', closeSheet);\n\t\t\tformWorker.events.on('onCommit', closeSheet);\n\t\t\tformWorker.events.on('onCompleted', handleCompleted);\n\n\t\t\treturn function whenUnmount() {\n\t\t\t\tformWorker.events.off('onAbort', closeSheet);\n\t\t\t\tformWorker.events.off('onCommit', closeSheet);\n\t\t\t\tformWorker.events.off('onCompleted', handleCompleted);\n\t\t\t};\n\t\t},\n\t\t[formWorker, handleCompleted],\n\t);\n\n\treturn (\n\t\t<Sheet\n\t\t\tref={ref}\n\t\t\tvariant='full-restricted'\n\t\t\tlabel={<DynamicFormPageLabel formWorker={formWorker} />}\n\t\t\tkey={formWorker.formId}\n\t\t\ttrigger={<Trigger disabled={disabled} analyticAction={analyticAction} formWorker={formWorker} />}\n\t\t>\n\t\t\t<elements.sheetInner>\n\t\t\t\t<DynamicForm.Root key={formWorker.formId} formWorker={formWorker}>\n\t\t\t\t\t<Flex gap={tokens.spacing.x2} grow={1}>\n\t\t\t\t\t\t<DynamicForm.Description />\n\t\t\t\t\t\t<DynamicForm.Content>\n\t\t\t\t\t\t\t<DynamicForm.Actions />\n\t\t\t\t\t\t</DynamicForm.Content>\n\t\t\t\t\t</Flex>\n\t\t\t\t</DynamicForm.Root>\n\t\t\t</elements.sheetInner>\n\t\t</Sheet>\n\t);\n}\n\ninterface TriggerProps extends HTMLAttributes<HTMLButtonElement> {\n\tformWorker: Readonly<FormWorker>;\n\tanalyticAction: string;\n\tdisabled?: boolean;\n}\n\nfunction _Trigger({ formWorker, analyticAction, disabled, onClick, ...rest }: TriggerProps, ref: Ref<HTMLButtonElement>): JSX.Element {\n\tconst { completed } = useFormWorkerState(formWorker);\n\tconst analyticCtx = useAnalyticContext();\n\n\tfunction handleClick(event: MouseEvent<HTMLButtonElement>): void {\n\t\tif (onClick != null) {\n\t\t\tonClick(event);\n\t\t}\n\n\t\t// TODO: Make useAnalyticContext return a function wrapping queueMicrotask,\n\t\t// can't have events bloating up the main thread.\n\t\tqueueMicrotask(() => {\n\t\t\tanalyticCtx.trackEvent(analyticAction);\n\t\t});\n\t}\n\n\treturn (\n\t\t<elements.container ref={ref} tabIndex={disabled ? -1 : undefined} onClick={handleClick} {...rest}>\n\t\t\t<Icon type='notesBoardPencil' />\n\n\t\t\t<Flex grow={1}>\n\t\t\t\t<Text variant='bodySemiBold'>{formWorker.header}</Text>\n\t\t\t</Flex>\n\n\t\t\t{completed ? (\n\t\t\t\t<BadgeText variant='success' icon='check' size='small'>\n\t\t\t\t\t{withTranslation('Feature.DynamicForms.FormCard.Label.Answered')}\n\t\t\t\t</BadgeText>\n\t\t\t) : (\n\t\t\t\t<BadgeText variant='interactive' size='small'>\n\t\t\t\t\t{withTranslation('Feature.DynamicForms.FormCard.Label.Unanswered')}\n\t\t\t\t</BadgeText>\n\t\t\t)}\n\t\t</elements.container>\n\t);\n}\nconst Trigger = forwardRef(_Trigger);\n","import { FormDataProvider } from './form_data_provider';\nimport { BasketApiService } from '@api_patient/basket_api.service';\nimport { DynamicFormAnswer, DynamicFormAnswers, DynamicFormsApiService } from '@api_patient/dynamic_forms_api.service';\nimport { FormGraphApiModel } from '@api_patient/generated/clientv2/models';\n\nexport class FormDataProviderBasket implements FormDataProvider {\n\tprivate unitId: number;\n\tprivate formId: number;\n\tprivate basketId: number;\n\tprivate basketProductId: number;\n\n\tconstructor(\n\t\tunitId: number,\n\t\tformId: number,\n\t\tbasketId: number,\n\t\tbasketProductId: number,\n\t\tprivate readonly dynamicFormsApiService: DynamicFormsApiService,\n\t\tprivate readonly basketApiService: BasketApiService,\n\t) {\n\t\tthis.unitId = unitId;\n\t\tthis.formId = formId;\n\t\tthis.basketId = basketId;\n\t\tthis.basketProductId = basketProductId;\n\t\t// Empty\n\t}\n\n\tpublic async getForm(): AsyncResult<FormGraphApiModel> {\n\t\tconst result = await this.dynamicFormsApiService.getById(this.unitId, this.formId);\n\n\t\tif (result.err) {\n\t\t\treturn Err(result.err);\n\t\t}\n\n\t\treturn Ok(result.ok.data);\n\t}\n\n\tpublic async getAnswers(): AsyncResult<DynamicFormAnswers> {\n\t\tconst result = await this.basketApiService.getFormAnswers(this.basketId, this.basketProductId, this.formId);\n\n\t\tif (result.err) {\n\t\t\treturn Err(result.err);\n\t\t}\n\n\t\treturn Ok({\n\t\t\tcompleted: false,\n\t\t\tanswers: result.ok.data.map((answer) => ({\n\t\t\t\tboolValue: answer.BoolAnswer,\n\t\t\t\tchoices: answer.MultiAnswer ?? [],\n\t\t\t\tintValue: answer.IntValue,\n\t\t\t\tquestionId: answer.QuestionId,\n\t\t\t\tstringValue: answer.TextAnswer,\n\t\t\t})),\n\t\t});\n\t}\n\n\tpublic async answer(answers: DynamicFormAnswer[]): AsyncResult {\n\t\tconst result = await this.basketApiService.postFormAnswers(\n\t\t\tthis.basketId,\n\t\t\tthis.basketProductId,\n\t\t\tthis.formId,\n\t\t\tanswers.map((answer) => ({\n\t\t\t\tBoolAnswer: answer.boolValue ?? null,\n\t\t\t\tIntValue: answer.intValue ?? null,\n\t\t\t\tMultiAnswer: answer.choices.length ? answer.choices : null,\n\t\t\t\tQuestionId: answer.questionId,\n\t\t\t\tTextAnswer: answer.stringValue ?? null,\n\t\t\t})),\n\t\t);\n\n\t\tif (result.err) {\n\t\t\treturn Err(result.err);\n\t\t}\n\n\t\treturn Ok();\n\t}\n\n\tpublic setCompletion(): Result {\n\t\treturn Ok();\n\t}\n}\n","import { FormGraphApiModel } from '@api_patient/generated/clientv2/models';\nimport { FormDataProvider } from './form_data_provider';\nimport { DynamicFormAnswer, DynamicFormAnswers, DynamicFormsApiService } from '@api_patient/dynamic_forms_api.service';\n\nexport class FormDataProviderRespondant implements FormDataProvider {\n\tprivate unitId: number;\n\tprivate formId: number;\n\tprivate respondantId: number;\n\n\tconstructor(\n\t\tunitId: number,\n\t\tformId: number,\n\t\trespondantId: number,\n\t\tprivate readonly formsApiService: DynamicFormsApiService,\n\t) {\n\t\tthis.unitId = unitId;\n\t\tthis.formId = formId;\n\t\tthis.respondantId = respondantId;\n\t\t// Empty\n\t}\n\n\tpublic async getForm(): AsyncResult<FormGraphApiModel> {\n\t\tconst result = await this.formsApiService.getById(this.unitId, this.formId);\n\n\t\tif (result.err) {\n\t\t\treturn Err(result.err);\n\t\t}\n\n\t\treturn Ok(result.ok.data);\n\t}\n\n\tpublic async getAnswers(): AsyncResult<DynamicFormAnswers> {\n\t\tconst result = await this.formsApiService.getRespondant(this.unitId, this.respondantId);\n\n\t\tif (result.err) {\n\t\t\treturn Err(result.err);\n\t\t}\n\n\t\treturn Ok({\n\t\t\tcompleted: result.ok.data.Completed,\n\t\t\tanswers: result.ok.data.Answers.map((answer) => ({\n\t\t\t\tboolValue: answer.BoolValue,\n\t\t\t\tchoices: answer.Choices,\n\t\t\t\tintValue: answer.IntValue,\n\t\t\t\tquestionId: answer.QuestionId,\n\t\t\t\tstringValue: answer.StringValue,\n\t\t\t})),\n\t\t});\n\t}\n\n\tpublic async answer(answers: DynamicFormAnswer[]): AsyncResult {\n\t\tconst result = await this.formsApiService.answer(this.unitId, this.respondantId, answers);\n\n\t\tif (result.err) {\n\t\t\treturn Err(result.err);\n\t\t}\n\n\t\treturn Ok();\n\t}\n\n\tpublic async setCompletion(): AsyncResult {\n\t\tconst result = await this.formsApiService.setCompletion(this.unitId, this.respondantId);\n\n\t\tif (result.err) {\n\t\t\treturn Err(result.err);\n\t\t}\n\n\t\treturn Ok();\n\t}\n}\n","import { FormGraphApiModel } from '@api_patient/generated/clientv2/models';\nimport { FormDataProvider } from './form_data_provider';\nimport { applicationSessionStorage } from '@application/application_storage_session';\nimport type { DynamicFormAnswer, DynamicFormAnswers, DynamicFormsApiService } from '@api_patient/dynamic_forms_api.service';\n\nexport class FormDataProviderLocal implements FormDataProvider {\n\tpublic id: Guid;\n\tpublic formId: number;\n\tprivate unitId: number;\n\n\tconstructor(\n\t\tunitId: number,\n\t\tformId: number,\n\t\tid: Guid,\n\t\tprivate readonly formsApiService: DynamicFormsApiService,\n\t) {\n\t\tthis.unitId = unitId;\n\t\tthis.formId = formId;\n\t\tthis.id = id;\n\t\t// Empty\n\t}\n\n\tpublic async getForm(): AsyncResult<FormGraphApiModel> {\n\t\tconst result = await this.formsApiService.getById(this.unitId, this.formId);\n\n\t\tif (result.err) {\n\t\t\treturn Err(result.err);\n\t\t}\n\n\t\treturn Ok(result.ok.data);\n\t}\n\n\tpublic async getAnswers(): AsyncResult<DynamicFormAnswers> {\n\t\tconst answers: DynamicFormAnswers = {\n\t\t\tcompleted: false,\n\t\t\tanswers: [],\n\t\t};\n\n\t\tconst sessionData = this.getDataFromStorage();\n\t\tif (sessionData) {\n\t\t\tconst form = sessionData[this.formId];\n\t\t\tif (form) {\n\t\t\t\tanswers.completed = form.completed;\n\t\t\t\tanswers.answers = form.answers;\n\t\t\t}\n\t\t}\n\n\t\treturn Ok(answers);\n\t}\n\n\tpublic async answer(answers: DynamicFormAnswer[]): AsyncResult {\n\t\tlet data = applicationSessionStorage.get('dynamicForms');\n\t\tif (data == null) {\n\t\t\tdata = {};\n\t\t}\n\n\t\tif (data[this.id] == null) {\n\t\t\tdata[this.id] = {};\n\t\t}\n\n\t\tif (data[this.id][this.formId] == null) {\n\t\t\tdata[this.id][this.formId] = {\n\t\t\t\tcompleted: false,\n\t\t\t\tanswers: [],\n\t\t\t};\n\t\t}\n\n\t\tdata[this.id][this.formId] = {\n\t\t\tcompleted: false,\n\t\t\tanswers: [\n\t\t\t\t...data[this.id][this.formId].answers.filter(\n\t\t\t\t\t(oldAnswer) => !answers.find((answer) => answer.questionId == oldAnswer.questionId),\n\t\t\t\t),\n\t\t\t\t...answers,\n\t\t\t],\n\t\t};\n\n\t\tapplicationSessionStorage.set('dynamicForms', data);\n\n\t\treturn Ok();\n\t}\n\n\tpublic async setCompletion(): AsyncResult {\n\t\tconst data = applicationSessionStorage.get('dynamicForms') ?? {};\n\t\tdata[this.id][this.formId].completed = true;\n\n\t\tapplicationSessionStorage.set('dynamicForms', data);\n\n\t\treturn Ok();\n\t}\n\n\tprivate getDataFromStorage() {\n\t\treturn applicationSessionStorage.get('dynamicForms')?.[this.id] ?? null;\n\t}\n}\n","import { AnalyticService } from '@application/analytic/analytic.service';\nimport { NotificationService } from '@component/notification_manager/notification/mod';\nimport { UnhandledIssuesService } from '@feature/issues/unhandled_issues.service';\nimport { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { FormWorker } from './form_worker';\nimport type { FormOpportunity } from '@api_patient/generated/clientv2/models';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { FormDataProvider } from './form_data_providers/form_data_provider';\nimport { DynamicFormsApiService } from '@api_patient/dynamic_forms_api.service';\nimport { BasketApiService } from '@api_patient/basket_api.service';\nimport { FormDataProviderRespondant } from './form_data_providers/form_data_provider_respondant';\nimport { FormDataProviderBasket } from './form_data_providers/form_data_provider_basket';\nimport { FormDataProviderLocal } from './form_data_providers/form_data_provider_local';\n\ninterface FormDataProviderRespondantType {\n\ttype: 'respondant';\n\trespondantId: number;\n}\n\ninterface FormDataProviderBasketType {\n\ttype: 'basket';\n\tbasketId: number;\n\tbasketProductId: number;\n}\n\ninterface FormDataProviderLocalType {\n\ttype: 'local';\n\tid: Guid;\n}\n\n// We need a common interface between API and sockets results. The API uses\n// PascalCase serialization while the socket uses lowerCase.\nexport interface ExoticRespondantStatusApiModel {\n\trespondantId?: number;\n\tbasketId?: number;\n\tbasketProductId?: number;\n\tformId: number;\n\theader: string;\n\topportunity: FormOpportunity;\n\tcompleted: boolean;\n\tissueTrackingId: string;\n\teditable?: boolean;\n\tdataProvider: FormDataProviderRespondantType | FormDataProviderBasketType | FormDataProviderLocalType;\n}\n\ninterface Filter {\n\tcompleted?: boolean;\n\topportunity?: FormOpportunity | FormOpportunity[];\n}\n\n@Injectable({\n\tscope: Scopes.Transient,\n})\nexport class FormManager {\n\tprivate readonly associatedUnitId: number;\n\tprivate forms: FormWorker[] = [];\n\n\tconstructor(\n\t\tprivate readonly notificationService: NotificationService,\n\t\tprivate readonly unhandledIssuesService: UnhandledIssuesService,\n\t\tprivate readonly analyticService: AnalyticService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly formsApiService: DynamicFormsApiService,\n\t\tprivate readonly basketApiService: BasketApiService,\n\t) {\n\t\tthis.associatedUnitId = this.universalConfig.selectedUnitId;\n\t}\n\n\tpublic get length(): number {\n\t\treturn this.forms.length;\n\t}\n\n\tpublic countForms(filter: Filter): number {\n\t\treturn this.filterForms(filter).length;\n\t}\n\n\tpublic addBasketForms(): void {}\n\n\tpublic addRespondants(respondantStatusesCluster: ExoticRespondantStatusApiModel[]): Readonly<Readonly<FormWorker>[]> {\n\t\tconst refArr: FormWorker[] = [];\n\n\t\tfor (const respondant of respondantStatusesCluster) {\n\t\t\tif (this.hasForm(respondant)) continue;\n\n\t\t\trefArr.push(\n\t\t\t\tnew FormWorker(\n\t\t\t\t\t{\n\t\t\t\t\t\tcompleted: respondant.completed,\n\t\t\t\t\t\teditable: respondant.editable ?? false,\n\t\t\t\t\t\tformId: respondant.formId,\n\t\t\t\t\t\theader: respondant.header,\n\t\t\t\t\t\topportunity: respondant.opportunity,\n\t\t\t\t\t\tissueTrackingId: respondant.issueTrackingId,\n\t\t\t\t\t\tdataProvider: this.createDataProvider(respondant.dataProvider, respondant.formId),\n\t\t\t\t\t},\n\t\t\t\t\tthis.associatedUnitId,\n\t\t\t\t\tthis.notificationService,\n\t\t\t\t\tthis.unhandledIssuesService,\n\t\t\t\t\tthis.analyticService,\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\n\t\tthis.forms.push(...refArr);\n\n\t\treturn refArr;\n\t}\n\n\tprivate createDataProvider(\n\t\tdataProviderType: FormDataProviderRespondantType | FormDataProviderBasketType | FormDataProviderLocalType,\n\t\tformId: number,\n\t): FormDataProvider {\n\t\tif (dataProviderType.type === 'respondant') {\n\t\t\treturn new FormDataProviderRespondant(this.associatedUnitId, formId, dataProviderType.respondantId, this.formsApiService);\n\t\t}\n\n\t\tif (dataProviderType.type === 'basket') {\n\t\t\treturn new FormDataProviderBasket(\n\t\t\t\tthis.associatedUnitId,\n\t\t\t\tformId,\n\t\t\t\tdataProviderType.basketId,\n\t\t\t\tdataProviderType.basketProductId,\n\t\t\t\tthis.formsApiService,\n\t\t\t\tthis.basketApiService,\n\t\t\t);\n\t\t}\n\n\t\tif (dataProviderType.type === 'local') {\n\t\t\treturn new FormDataProviderLocal(this.associatedUnitId, formId, dataProviderType.id, this.formsApiService);\n\t\t}\n\n\t\tthrow new Error('Unknown data provider type');\n\t}\n\n\tpublic hasForm(respondant: ExoticRespondantStatusApiModel): boolean {\n\t\treturn this.forms.some((form) => form.formId === respondant.respondantId);\n\t}\n\n\tpublic getNextUncompletedForm(filter?: Filter): Readonly<FormWorker> | null {\n\t\tconst filteredForms = filter != null ? this.filterForms(filter) : this.forms;\n\n\t\treturn filteredForms.find((form) => !form.getState().completed) ?? null;\n\t}\n\n\tpublic getFormByFormId(formId: number): FormWorker | null {\n\t\treturn this.forms.find((form) => form.formId === formId) ?? null;\n\t}\n\n\tpublic getForms(): Readonly<Readonly<FormWorker>[]> {\n\t\treturn this.forms;\n\t}\n\n\tpublic filterForms(filter: Filter): Readonly<Readonly<FormWorker>[]> {\n\t\tconst opportunity = Array.isArray(filter.opportunity) ? filter.opportunity : [filter.opportunity];\n\t\tconst filteredForms: FormWorker[] = [];\n\t\tfor (const form of this.forms) {\n\t\t\tconst formState = form.getState();\n\n\t\t\tif (filter.completed != null && formState.completed !== filter.completed) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (filter.opportunity != null && !opportunity.includes(form.opportunity)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tfilteredForms.push(form);\n\t\t}\n\n\t\treturn filteredForms;\n\t}\n\n\tpublic removeForms() {\n\t\tthis.forms.forEach((x) => x.dispose());\n\n\t\tthis.forms = [];\n\t}\n}\n","import type { OptionApiModel } from '@api_patient/generated/clientv2/models';\n\n// TODO: Use this when not injected anymore...\n// export type ValidOptionId = `${typeof FormOption.ID_PREFIX}${number}`;\nexport type ValidOptionId = string;\n\nexport class FormOption {\n\t// Needs to use non id numbers. Seems to follow other specs that indicates\n\t// that only [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the\n\t// hyphen (-) and the underscore (_) are allowed.\n\tpublic static readonly ID_PREFIX = 'DFO_';\n\n\tpublic static composeOptionId(id: ValidOptionId): number {\n\t\tconst int = id.replace(FormOption.ID_PREFIX, '');\n\n\t\treturn parseInt(int, 10);\n\t}\n\n\tpublic static parseOptionId(id: number): ValidOptionId {\n\t\treturn `${FormOption.ID_PREFIX}${id}`;\n\t}\n\n\tpublic readonly id: ValidOptionId;\n\tpublic readonly text: string;\n\tpublic readonly value: unknown | null;\n\n\tconstructor(question: OptionApiModel) {\n\t\tthis.id = this.parseOptionId(question.Id);\n\t\t// TODO PAT-426: Allow null?\n\t\tthis.text = question.Text ?? '';\n\t}\n\n\tpublic composeOptionId(id?: ValidOptionId): number {\n\t\treturn FormOption.composeOptionId(id ?? this.id);\n\t}\n\n\tpublic parseOptionId(id: number): ValidOptionId {\n\t\treturn FormOption.parseOptionId(id);\n\t}\n}\n","import type { OptionApiModel, QuestionApiModel } from '@api_patient/generated/clientv2/models';\nimport { FormOption } from './_form_option';\nimport { DynamicFormAnswer } from '@api_patient/dynamic_forms_api.service';\n// import type { OptionApiModel } from '@src/api/models/OptionApiModel';\n// import type { QuestionApiModel } from '@src/api/models/QuestionApiModel';\n// import type { AnswerApiModel } from '@src/api/models/AnswerApiModel';\n\n// TODO: Use this when not injected anymore...\n// export type ValidQuestionId = `${typeof FormQuestionBase.ID_PREFIX}${number}`;\nexport type ValidQuestionId = string;\n\nexport abstract class FormQuestionBase {\n\t// Needs to use non id numbers. Seems to follow other specs that indicates\n\t// that only [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the\n\t// hyphen (-) and the underscore (_) are allowed.\n\tpublic static readonly ID_PREFIX = 'DFQ_';\n\n\tpublic readonly header: string;\n\tpublic readonly description: string;\n\tpublic readonly isRequired: boolean;\n\tpublic readonly id: ValidQuestionId;\n\tpublic readonly placeholder: string;\n\n\tconstructor(question: QuestionApiModel) {\n\t\tthis.id = this.parseQuestionId(question.Id);\n\t\tthis.isRequired = question.Required;\n\n\t\t// TODO PAT-426: Allow null?\n\t\tthis.header = question.Header ?? '';\n\t\t// TODO PAT-426: Allow null?\n\t\tthis.description = question.Description ?? '';\n\t\t// TODO PAT-426: Allow null?\n\t\tthis.placeholder = question.Placeholder ?? '';\n\t}\n\n\tpublic composeQuestionId(id?: ValidQuestionId): number {\n\t\tconst int = (id ?? this.id).replace(FormQuestionBase.ID_PREFIX, '');\n\n\t\treturn parseInt(int, 10);\n\t}\n\n\tpublic parseQuestionId(id: number): ValidQuestionId {\n\t\treturn `${FormQuestionBase.ID_PREFIX}${id}`;\n\t}\n\n\tprotected parseQuestions(options: OptionApiModel[]): FormOption[] {\n\t\treturn options.map((option) => new FormOption(option));\n\t}\n\n\t// For override so it's exposed correctly the facade level.\n\tprotected getAnswer(_: FormElements<string>): DynamicFormAnswer {\n\t\tthrow new Error('getAnswer is not implemented on the implementor');\n\t}\n\n\t// For override so it's exposed correctly the facade level.\n\tprotected setDefault(_: Readonly<DynamicFormAnswer[]>): void {\n\t\tthrow new Error('setDefault is not implemented on the implementor');\n\t}\n\n\tprotected createAnswerApiModel({\n\t\tboolValue,\n\t\tchoices,\n\t\tintValue,\n\t\tstringValue,\n\t}: {\n\t\tstringValue?: string | null;\n\t\tintValue?: number | null;\n\t\tboolValue?: boolean | null;\n\t\tchoices?: number[] | null;\n\t}): DynamicFormAnswer {\n\t\treturn {\n\t\t\tquestionId: this.composeQuestionId(),\n\t\t\tboolValue: boolValue ?? null,\n\t\t\tchoices: choices ?? [],\n\t\t\tintValue: intValue ?? null,\n\t\t\tstringValue: stringValue ?? null,\n\t\t};\n\t}\n}\n","import { FormQuestionBase } from './_form_question_base';\nimport type { FormOption, ValidOptionId } from './_form_option';\nimport type { QuestionApiModel } from '@api_patient/generated/clientv2/models';\nimport { DynamicFormAnswer } from '@api_patient/dynamic_forms_api.service';\nimport { CellulaFormSubmitData } from '@cellula/react';\n\nexport class FormQuestionTypeMultiChoice extends FormQuestionBase {\n\tpublic readonly type = 'MultiChoice';\n\tpublic readonly options: FormOption[];\n\tpublic defaultValue: ValidOptionId[] | undefined = undefined;\n\n\tconstructor(question: QuestionApiModel) {\n\t\tsuper(question);\n\n\t\t// TODO PAT-426: Allow null?\n\t\tthis.options = this.parseQuestions(question.Options ?? []);\n\t}\n\n\t// TODO: Use this when not injected anymore...\n\t// public override getAnswer(formElements: FormElements<string>): AnswerApiModel {\n\tpublic getAnswer(pageData: CellulaFormSubmitData): DynamicFormAnswer {\n\t\tconst choices: number[] = [];\n\n\t\tconst answers = pageData[this.id] ?? [];\n\n\t\tfor (const option of this.options) {\n\t\t\tconst isChecked = answers.includes(option.id);\n\t\t\tif (!isChecked) continue;\n\n\t\t\tchoices.push(option.composeOptionId(option.id));\n\t\t}\n\n\t\treturn this.createAnswerApiModel({\n\t\t\tchoices,\n\t\t});\n\t}\n\n\t// TODO: Use this when not injected anymore...\n\t// public override setDefault(allAnswers: Readonly<AnswerApiModel[]>): void {\n\tpublic setDefault(allAnswers: Readonly<DynamicFormAnswer[]>): void {\n\t\tconst answer = allAnswers.find((answer) => answer.questionId === this.composeQuestionId());\n\t\tconst options = this.options.filter((option) => answer?.choices?.includes(option.composeOptionId()));\n\t\tthis.defaultValue = options.map((option) => option.id) ?? undefined;\n\t}\n}\n","import { DynamicFormAnswer } from '@api_patient/dynamic_forms_api.service';\nimport { FormQuestionBase } from './_form_question_base';\nimport type { QuestionApiModel } from '@api_patient/generated/clientv2/models';\nimport { CellulaFormSubmitData } from '@cellula/react';\n\nexport class FormQuestionTypeMultiline extends FormQuestionBase {\n\tpublic readonly type = 'Multiline';\n\tpublic defaultValue: string | undefined = undefined;\n\n\tconstructor(question: QuestionApiModel) {\n\t\tsuper(question);\n\t}\n\n\t// TODO: Use this when not injected anymore...\n\t// public override getAnswer(formElements: FormElements<string>): AnswerApiModel {\n\tpublic getAnswer(pageData: CellulaFormSubmitData): DynamicFormAnswer {\n\t\t// public override getAnswer(formElements: FormElements<string>): AnswerApiModel {\n\t\tconst formValue = pageData[this.id] ?? null;\n\n\t\treturn this.createAnswerApiModel({\n\t\t\tstringValue: formValue,\n\t\t});\n\t}\n\n\t// TODO: Use this when not injected anymore...\n\t// public override setDefault(allAnswers: Readonly<AnswerApiModel[]>): void {\n\tpublic setDefault(allAnswers: Readonly<DynamicFormAnswer[]>): void {\n\t\tconst answer = allAnswers.find((answer) => answer.questionId === this.composeQuestionId());\n\t\tthis.defaultValue = answer?.stringValue ?? undefined;\n\t}\n}\n","import { FormQuestionBase } from './_form_question_base';\nimport { FormOption, ValidOptionId } from './_form_option';\nimport type { QuestionApiModel } from '@api_patient/generated/clientv2/models';\nimport { DynamicFormAnswer } from '@api_patient/dynamic_forms_api.service';\nimport { CellulaFormSubmitData } from '@cellula/react';\n\nexport class FormQuestionTypeSingleChoiceRadio extends FormQuestionBase {\n\tpublic readonly type = 'SingleChoiceRadio';\n\tpublic readonly options: FormOption[];\n\tpublic defaultValue: ValidOptionId | undefined = undefined;\n\n\tconstructor(question: QuestionApiModel) {\n\t\tsuper(question);\n\n\t\t// TODO PAT-426: Allow null?\n\t\tthis.options = this.parseQuestions(question.Options ?? []);\n\t}\n\n\t// TODO: Use this when not injected anymore...\n\t// public override getAnswer(formElements: FormElements<string>): AnswerApiModel {\n\tpublic getAnswer(pageData: CellulaFormSubmitData): DynamicFormAnswer {\n\t\tconst formValue: ValidOptionId | null = (pageData[this.id] as ValidOptionId) || null;\n\t\tconst choice = formValue ? [FormOption.composeOptionId(formValue)] : [];\n\n\t\treturn this.createAnswerApiModel({\n\t\t\tchoices: choice,\n\t\t});\n\t}\n\n\t// TODO: Use this when not injected anymore...\n\t// public override setDefault(allAnswers: Readonly<AnswerApiModel[]>): void {\n\tpublic setDefault(allAnswers: Readonly<DynamicFormAnswer[]>): void {\n\t\tconst answer = allAnswers.find((answer) => answer.questionId === this.composeQuestionId());\n\t\tconst option = this.options.find((option) => answer?.choices?.includes(option.composeOptionId()));\n\t\tthis.defaultValue = option?.id ?? undefined;\n\t}\n}\n","import { FormQuestionBase } from './_form_question_base';\nimport { FormOption, ValidOptionId } from './_form_option';\nimport type { QuestionApiModel } from '@api_patient/generated/clientv2/models';\nimport { DynamicFormAnswer } from '@api_patient/dynamic_forms_api.service';\nimport { CellulaFormSubmitData } from '@cellula/react';\n\nexport class FormQuestionTypeSingleChoiceSelect extends FormQuestionBase {\n\tpublic readonly type = 'SingleChoiceSelect';\n\tpublic readonly options: FormOption[];\n\tpublic defaultValue: ValidOptionId | undefined = undefined;\n\n\tconstructor(question: QuestionApiModel) {\n\t\tsuper(question);\n\n\t\t// TODO PAT-426: Allow null?\n\t\tthis.options = this.parseQuestions(question.Options ?? []);\n\t}\n\n\t// TODO: Use this when not injected anymore...\n\tpublic getAnswer(pageData: CellulaFormSubmitData): DynamicFormAnswer {\n\t\t// public override getAnswer(formElements: FormElements<string>): AnswerApiModel {\n\t\tconst formValue = pageData[this.id] ?? null;\n\t\tconst option =\n\t\t\tformValue != null\n\t\t\t\t? this.options.find((option) => option.composeOptionId(formValue as ValidOptionId) === option.composeOptionId())\n\t\t\t\t: null;\n\n\t\treturn this.createAnswerApiModel({\n\t\t\tchoices: option != null ? [option.composeOptionId()] : [],\n\t\t});\n\t}\n\n\t// TODO: Use this when not injected anymore...\n\t// public override setDefault(allAnswers: Readonly<AnswerApiModel[]>): void {\n\tpublic setDefault(allAnswers: Readonly<DynamicFormAnswer[]>): void {\n\t\tconst answer = allAnswers.find((answer) => answer.questionId === this.composeQuestionId());\n\n\t\tlet defaultValue: ValidOptionId | undefined = undefined;\n\n\t\t// PAT-593\n\t\t// Allowing old data to still be displayed before migrating to how it actually should be stored as.\n\t\t// TODO @emilnordling: This condition can be removed in the future.\n\t\tif (answer?.intValue != null) {\n\t\t\tdefaultValue = FormOption.parseOptionId(answer.intValue);\n\t\t}\n\n\t\tif (answer?.choices != null && answer.choices[0] != null) {\n\t\t\tdefaultValue = FormOption.parseOptionId(answer.choices[0]);\n\t\t}\n\n\t\tthis.defaultValue = defaultValue;\n\t}\n}\n","import { FormQuestionBase } from './_form_question_base';\nimport { safeJsonParse } from '@visiba/std';\nimport type { QuestionApiModel } from '@api_patient/generated/clientv2/models';\nimport { DynamicFormAnswer } from '@api_patient/dynamic_forms_api.service';\nimport { CellulaFormSubmitData } from '@cellula/react';\n\nexport class FormQuestionTypeYesNo extends FormQuestionBase {\n\tpublic readonly type = 'YesNo';\n\tpublic readonly trueLabel: string;\n\tpublic readonly falseLabel: string;\n\tpublic defaultValue: 'true' | 'false' | undefined = undefined;\n\n\tconstructor(question: QuestionApiModel) {\n\t\tsuper(question);\n\n\t\t// TODO PAT-426: Allow null?\n\t\tthis.trueLabel = question.TrueLabel ?? '';\n\t\t// TODO PAT-426: Allow null?\n\t\tthis.falseLabel = question.FalseLabel ?? '';\n\t}\n\n\t// TODO: Use this when not injected anymore...\n\t// public override getAnswer(formElements: FormElements<string>): AnswerApiModel {\n\tpublic getAnswer(pageData: CellulaFormSubmitData): DynamicFormAnswer {\n\t\tconst formValue = pageData[this.id] ?? null;\n\t\tconst value = safeJsonParse<boolean | null>(formValue);\n\n\t\treturn this.createAnswerApiModel({\n\t\t\tboolValue: value,\n\t\t});\n\t}\n\n\t// TODO: Use this when not injected anymore...\n\t// public override setDefault(allAnswers: Readonly<AnswerApiModel[]>): void {\n\tpublic setDefault(allAnswers: Readonly<DynamicFormAnswer[]>): void {\n\t\tconst answer = allAnswers.find((answer) => answer.questionId === this.composeQuestionId());\n\t\tthis.defaultValue = answer?.boolValue === false ? 'false' : answer?.boolValue ? 'true' : undefined ?? undefined;\n\t}\n}\n","import { EventEmitter, Timer } from '@visiba/std';\nimport {\n\tFormQuestionTypeMultiChoice,\n\tFormQuestionTypeMultiline,\n\tFormQuestionTypeSingleChoiceRadio,\n\tFormQuestionTypeSingleChoiceSelect,\n\tFormQuestionTypeYesNo,\n\tQuestionUnion,\n} from './form_questions/mod';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { SHEET_CLOSE_INTO_NOTIFICATION_WAIT } from '../../../constants';\nimport { DynamicFormAnswer } from '@api_patient/dynamic_forms_api.service';\nimport { LocalPushNotification } from '@component/notification_manager/notification/local_push_notification';\nimport { NotificationService } from '@component/notification_manager/notification/notification.service';\nimport { AnalyticService, AnalyticCategories } from '@application/analytic/analytic.service';\nimport { UnhandledIssuesService } from '@feature/issues/unhandled_issues.service';\nimport { CellulaFormSubmitData } from '@cellula/react';\nimport type { FormGraphApiModel, FormOpportunity, PageApiModel, QuestionApiModel } from '@api_patient/generated/clientv2/models';\nimport { FormDataProvider } from './form_data_providers/form_data_provider';\nimport { FormDataProviderBasket } from './form_data_providers/form_data_provider_basket';\n\nexport interface FormMeta {\n\theader: string;\n\tdescription: string;\n\tpages: FormPage[];\n}\n\nexport interface FormState {\n\tcompleted: boolean;\n\teditable: boolean;\n\treadyState: 'ready' | 'loading' | 'pristine' | 'disposed';\n\tmeta: FormMeta | null;\n\tpagePosition: number;\n}\n\ninterface FormSpec {\n\tcompleted: boolean;\n\tformId: number;\n\theader: string;\n\topportunity: FormOpportunity;\n\tissueTrackingId: string;\n\teditable?: boolean;\n\tdataProvider: FormDataProvider;\n}\n\nenum FormAction {\n\tCommitAnswers,\n\tTurnInAnswers,\n\tTurnInAnswersLocally,\n\tClose,\n\tMove,\n\tDisplayAnError,\n\tFillRequiredFields,\n}\n\nexport class FormWorker {\n\tpublic readonly events = new EventEmitter<{\n\t\tonChange: Readonly<FormState>;\n\t\tonCommit: void;\n\t\tonCompleted: void;\n\t\tonAbort: void;\n\t\tonChangePage: { newPagePosition: number };\n\t}>();\n\tpublic readonly opportunity: FormOpportunity;\n\tpublic readonly formId: number;\n\tpublic readonly issueTrackingId: string;\n\tpublic header: string;\n\tpublic editable: boolean;\n\tpublic formDataProvider: FormDataProvider;\n\tprivate state: FormState;\n\n\tconstructor(\n\t\tspec: FormSpec,\n\t\tprivate readonly unitId: number,\n\t\tprivate readonly notificationService: NotificationService,\n\t\tprivate readonly unhandledIssuesService: UnhandledIssuesService,\n\t\tprivate readonly analyticService: AnalyticService,\n\t) {\n\t\tthis.header = spec.header;\n\t\tthis.formId = spec.formId;\n\t\tthis.opportunity = spec.opportunity;\n\t\tthis.issueTrackingId = spec.issueTrackingId;\n\t\tthis.editable = spec.editable ?? false;\n\t\tthis.formDataProvider = spec.dataProvider;\n\n\t\tthis.state = {\n\t\t\tcompleted: spec.completed,\n\t\t\teditable: this.editable,\n\t\t\treadyState: 'pristine',\n\t\t\tmeta: null,\n\t\t\tpagePosition: -1,\n\t\t};\n\t}\n\n\tpublic async getData(): Promise<void> {\n\t\tthis.updateData({\n\t\t\treadyState: 'loading',\n\t\t});\n\n\t\tconst formDataResult = await this.formDataProvider.getForm();\n\t\tif (formDataResult.err) {\n\t\t\tthis.handleAction(FormAction.DisplayAnError);\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst answersResult = await this.formDataProvider.getAnswers();\n\t\tif (answersResult.err) {\n\t\t\tthis.handleAction(FormAction.DisplayAnError);\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.updateData({\n\t\t\treadyState: 'ready',\n\t\t\tcompleted: this.formDataProvider instanceof FormDataProviderBasket ? this.state.completed : answersResult.ok.completed,\n\t\t\tmeta: {\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\tdescription: formDataResult.ok.Description ?? '',\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\theader: formDataResult.ok.Header ?? '',\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\tpages: this.flattenPages(formDataResult.ok, answersResult.ok.answers ?? []),\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic dispose(): void {\n\t\tthis.updateData({\n\t\t\treadyState: 'disposed',\n\t\t});\n\t}\n\n\tpublic getState(): FormState {\n\t\treturn this.state;\n\t}\n\n\tpublic resetPosition(pagePosition = 0): void {\n\t\tthis.updateData({\n\t\t\tpagePosition,\n\t\t});\n\t}\n\n\tpublic async changePage(direction: 'backwards' | 'forwards', pageData: CellulaFormSubmitData): Promise<void> {\n\t\tconst { meta, pagePosition } = this.getState();\n\t\tconst distance = direction === 'forwards' ? 1 : -1;\n\t\tconst page = meta?.pages[pagePosition];\n\n\t\tif (page == null) return;\n\n\t\tconst action = this.evaluateActionToTake(distance);\n\n\t\tif (action === FormAction.Move) {\n\t\t\tthis.move(distance);\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.DynamicForm, distance === 1 ? 'Clicked next' : 'Clicked previous');\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (action === FormAction.Close) {\n\t\t\tthis.events.emit('onAbort', undefined);\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.DynamicForm, 'Clicked close');\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (action === FormAction.TurnInAnswersLocally) {\n\t\t\tthis.move(distance);\n\t\t\tpage.updateValues(pageData);\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (action === FormAction.TurnInAnswers) {\n\t\t\tawait this.turnInAnswers(page, pageData, false);\n\t\t\tthis.move(distance);\n\t\t\tthis.analyticService.trackEvent(\n\t\t\t\tAnalyticCategories.DynamicForm,\n\t\t\t\tdistance === 1 ? 'Clicked next (send page)' : 'Clicked previous (send page)',\n\t\t\t);\n\t\t\tthis.events.emit('onChangePage', {\n\t\t\t\tnewPagePosition: pagePosition + distance,\n\t\t\t});\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (action === FormAction.CommitAnswers) {\n\t\t\tawait this.turnInAnswers(page, pageData, true);\n\t\t\tthis.updateData({\n\t\t\t\tcompleted: true,\n\t\t\t});\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.DynamicForm, 'Clicked send');\n\n\t\t\tthis.events.emit('onCommit', undefined);\n\n\t\t\treturn;\n\t\t}\n\t}\n\n\tpublic evaluateActionToTake(distance: number): FormAction {\n\t\tconst { completed, editable } = this.getState();\n\t\tconst isLastPage = this.isLastPageByDistance(distance);\n\n\t\tif (isLastPage && completed && !editable) {\n\t\t\treturn FormAction.Close;\n\t\t}\n\n\t\tif (completed && !editable) {\n\t\t\treturn FormAction.Move;\n\t\t}\n\n\t\tif (isLastPage) {\n\t\t\treturn FormAction.CommitAnswers;\n\t\t}\n\n\t\tif (distance === -1) {\n\t\t\treturn FormAction.TurnInAnswersLocally;\n\t\t}\n\n\t\treturn FormAction.TurnInAnswers;\n\t}\n\n\tpublic isFirstPageByDistance(distance: number): boolean {\n\t\tconst { pagePosition } = this.getState();\n\t\tconst isFirstPage = pagePosition + distance === (0 ?? -1);\n\n\t\treturn isFirstPage;\n\t}\n\n\tpublic isFirstPage(): boolean {\n\t\tconst { pagePosition } = this.getState();\n\t\tconst isFirstPage = pagePosition === 0;\n\n\t\treturn isFirstPage;\n\t}\n\n\tpublic isFirstOrLastPage(): boolean {\n\t\tif (this.isFirstPage()) return true;\n\t\tif (this.isLastPage()) return true;\n\n\t\treturn false;\n\t}\n\n\tpublic isLastPage(): boolean {\n\t\tconst { meta, pagePosition } = this.getState();\n\t\tconst isLastPage = pagePosition === (meta?.pages.length ?? -1);\n\n\t\treturn isLastPage;\n\t}\n\n\tpublic isLastPageByDistance(distance: number): boolean {\n\t\tconst { meta, pagePosition } = this.getState();\n\t\tconst isLastPage = pagePosition + distance === (meta?.pages.length ?? -1);\n\n\t\treturn isLastPage;\n\t}\n\n\tprivate move(distance: number): void {\n\t\tconst { pagePosition } = this.getState();\n\n\t\tthis.updateData({\n\t\t\tpagePosition: pagePosition + distance,\n\t\t});\n\t}\n\n\tprivate async turnInAnswers(page: FormPage, pageData: CellulaFormSubmitData, commit: boolean): Promise<void> {\n\t\tconst action = await page.turnInAnswers(pageData, commit);\n\t\tthis.handleAction(action);\n\t}\n\n\tprivate async markAsCompleted(): Promise<void> {\n\t\tlet success = true;\n\t\ttry {\n\t\t\tawait this.formDataProvider.setCompletion();\n\n\t\t\tTimer.wait(() => {\n\t\t\t\tthis.events.emit('onCompleted', undefined);\n\n\t\t\t\tthis.unhandledIssuesService.removeArbitraryIssue(this.issueTrackingId, 'awaitFormResponses');\n\t\t\t}, SHEET_CLOSE_INTO_NOTIFICATION_WAIT);\n\t\t} catch {\n\t\t\tsuccess = false;\n\t\t\tthis.notificationService.add(\n\t\t\t\tnew LocalPushNotification({\n\t\t\t\t\tlabel: withTranslation('Feature.DynamicForms.Notification.CommitFailed'),\n\t\t\t\t\ttype: 'toast',\n\t\t\t\t\tvariant: 'danger',\n\t\t\t\t}),\n\t\t\t);\n\t\t} finally {\n\t\t\tthis.updateData({\n\t\t\t\tcompleted: success,\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate flattenPages(data: FormGraphApiModel, allAnswers: DynamicFormAnswer[]): FormPage[] {\n\t\t// TODO PAT-426: Allow null?\n\t\tconst formPages = ((data.PageGroups ?? [])[0]?.Pages ?? []).map(\n\t\t\t(pageModel) => new FormPage(pageModel, allAnswers, this.unitId, this.formDataProvider),\n\t\t);\n\n\t\treturn formPages;\n\t}\n\n\tprivate updateData(newState: Partial<FormState>): FormState {\n\t\tconst mergedState = {\n\t\t\t...this.state,\n\t\t\t...newState,\n\t\t};\n\n\t\tthis.state = mergedState;\n\t\tthis.events.emit('onChange', this.state);\n\n\t\treturn mergedState;\n\t}\n\n\tprivate handleAction(action: FormAction): void {\n\t\tswitch (action) {\n\t\t\tcase FormAction.CommitAnswers: {\n\t\t\t\tthis.markAsCompleted();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase FormAction.TurnInAnswers: {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase FormAction.DisplayAnError: {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport class FormPage {\n\tpublic readonly sortValue: number;\n\tpublic readonly id: number;\n\tpublic readonly header: string;\n\tpublic readonly description: string;\n\tpublic readonly questions: QuestionUnion[];\n\n\tconstructor(\n\t\t// TODO PAT-426: SortValue does not exist?\n\t\t{ Id, Description, Header, Questions, SortValue }: PageApiModel & { SortValue?: number },\n\t\tallAnswers: Readonly<DynamicFormAnswer[]>,\n\t\tprivate readonly unitId: number,\n\t\tprivate readonly formDataProvider: FormDataProvider,\n\t) {\n\t\tthis.id = Id;\n\t\t// TODO PAT-426: Allow null?\n\t\tthis.description = Description ?? '';\n\t\t// TODO PAT-426: Allow null?\n\t\tthis.header = Header ?? '';\n\t\t// TODO PAT-426: Allow null?\n\t\tthis.questions = (Questions ?? []).map((question) => this.produceQuestion(question));\n\t\t// TODO PAT-426: Allow null?\n\t\tthis.sortValue = SortValue ?? 0;\n\n\t\tthis.updateDefaultValues(allAnswers);\n\t}\n\n\tpublic updateValues(pageData: CellulaFormSubmitData): DynamicFormAnswer[] {\n\t\tconst values = this.questions.map((question) => question.getAnswer(pageData));\n\n\t\tthis.updateDefaultValues(values);\n\n\t\treturn values;\n\t}\n\n\tpublic async turnInAnswers(pageData: CellulaFormSubmitData, commit = false): Promise<FormAction> {\n\t\tconst values = this.updateValues(pageData);\n\n\t\tawait this.formDataProvider.answer(values);\n\n\t\tif (commit) {\n\t\t\treturn FormAction.CommitAnswers;\n\t\t}\n\n\t\treturn FormAction.TurnInAnswers;\n\t}\n\n\tprivate produceQuestion(question: QuestionApiModel): QuestionUnion {\n\t\tswitch (question.Type) {\n\t\t\tcase 'MultiChoice':\n\t\t\t\treturn new FormQuestionTypeMultiChoice(question);\n\t\t\tcase 'Multiline':\n\t\t\t\treturn new FormQuestionTypeMultiline(question);\n\t\t\tcase 'SingleChoiceRadio':\n\t\t\t\treturn new FormQuestionTypeSingleChoiceRadio(question);\n\t\t\tcase 'SingleChoiceSelect':\n\t\t\t\treturn new FormQuestionTypeSingleChoiceSelect(question);\n\t\t\tcase 'YesNo':\n\t\t\t\treturn new FormQuestionTypeYesNo(question);\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`${question.Type} was not expected`);\n\t\t}\n\t}\n\n\tprivate updateDefaultValues(allAnswers: Readonly<DynamicFormAnswer[]>): void {\n\t\tfor (const question of this.questions) {\n\t\t\tquestion.setDefault(allAnswers);\n\t\t}\n\t}\n}\n","import { useState } from 'react';\nimport { useEffect } from 'react';\nimport type { FormState, FormWorker } from './form_worker';\n\nexport function useFormWorkerState(formWorker: Readonly<FormWorker>): Readonly<FormState> {\n\tconst [, forceUpdate] = useState([]);\n\n\tuseEffect(() => {\n\t\treturn formWorker.events.on('onChange', () => {\n\t\t\tforceUpdate([]);\n\t\t});\n\t}, [formWorker]);\n\n\treturn formWorker.getState();\n}\n","import { FileViewer, Attachment } from '@cellula/react';\nimport { FileWorker, FileWorkerStale, WorkerTaskState } from '@feature/file_manager/mod';\nimport { usePresentation } from '@visiba-cortex/presentation';\nimport { formatBytes } from '@visiba/std';\n\ninterface Props {\n\tworker: FileWorker | FileWorkerStale;\n\tonRemoveClick?: (fileId: string) => void;\n}\n\nexport function AttachedFile({ onRemoveClick, worker }: Props) {\n\tconst presentation = usePresentation(worker.presentation);\n\tconst isStale = worker instanceof FileWorkerStale;\n\n\tfunction handleDelete(): void {\n\t\tonRemoveClick?.(worker.id);\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<FileViewer.Item file={worker} asChild>\n\t\t\t\t<Attachment\n\t\t\t\t\tname={worker.fileName}\n\t\t\t\t\tmeta={formatBytes(worker.fileSize, 1)}\n\t\t\t\t\tonDelete={onRemoveClick != null && !isStale ? handleDelete : undefined}\n\t\t\t\t\tloading={presentation.fileState === WorkerTaskState.Uploading}\n\t\t\t\t\tinvalid={!!presentation.failedReason}\n\t\t\t\t\tinvalidText={presentation.failedReason ?? undefined}\n\t\t\t\t\tpreview={worker.getThumbnail() ?? undefined}\n\t\t\t\t/>\n\t\t\t</FileViewer.Item>\n\t\t</>\n\t);\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport { Http, HttpOptionConfiguration, HttpOptions } from '@visiba-cortex/http';\nimport type { FileUploadApiModel } from '@api_patient/generated/clientv2/models/file-upload-api-model';\nimport { HostingService } from './hosting.service';\nimport { HttpResponseBody } from './http.service';\nimport { devApplicationLocalStorage } from './application_storage_local_dev';\nimport { HttpError, isHttpError } from './http_error';\n\n@Injectable()\nexport class HttpFileServer {\n\tconstructor(private readonly hostingService: HostingService) {\n\t\t// Empty\n\t}\n\n\tpublic async identity(endpoint: string, name: string, size: number, type: string): Promise<FileUploadApiModel> {\n\t\tconst headerBuilder: NonNullable<NonNullable<HttpOptionConfiguration['requestConfig']>['headers']> = {\n\t\t\t'Content-Type': 'application/json',\n\t\t\tPragma: 'no-cache',\n\t\t\t'If-Modified-Since': 'Mon, 26 Jul 1997 05:00:00 GMT',\n\t\t\t'Cache-Control': 'no-cache, no-store, must-revalidate',\n\t\t};\n\n\t\tconst requestVerificationToken = devApplicationLocalStorage.get('requestVerificationToken');\n\t\tconst identitySession = devApplicationLocalStorage.get('identitySession');\n\t\tif (requestVerificationToken) {\n\t\t\theaderBuilder['__RequestVerificationToken'] = requestVerificationToken;\n\t\t} else if (this.hostingService.isDev_DONT_USE_IT_ONLY_EXIST_TO_MAKE_ANGULAR_WORK && identitySession) {\n\t\t\theaderBuilder['X-Authorization'] = `ticket ${identitySession}`;\n\t\t\theaderBuilder['X-App-SkipXsfrVerification'] = 'true';\n\t\t}\n\n\t\tconst options = new HttpOptions({\n\t\t\trequestConfig: {\n\t\t\t\theaders: headerBuilder,\n\t\t\t},\n\t\t});\n\n\t\tconst response = await Http.post<VisibaBackendApiResponse<FileUploadApiModel>>(\n\t\t\tthis.hostingService.apiBaseUri + '/' + endpoint,\n\t\t\t{\n\t\t\t\tName: name,\n\t\t\t\tLength: size,\n\t\t\t\tType: type,\n\t\t\t},\n\t\t\toptions,\n\t\t);\n\n\t\treturn response.data.Data;\n\t}\n\n\tpublic upload(file: File, absoluteUrl: string): [request: AsyncResult<HttpResponseBody<void>>, cancelSource: AbortController] {\n\t\tconst formData = new FormData();\n\t\tformData.append('uploads[]', file, file.name);\n\n\t\tconst cancelSource = Http.createCancelTokenSource();\n\t\tconst options = new HttpOptions({\n\t\t\tcancelToken: cancelSource,\n\t\t\trequestConfig: {\n\t\t\t\theaders: {\n\t\t\t\t\tPragma: 'no-cache',\n\t\t\t\t\t'If-Modified-Since': 'Mon, 26 Jul 1997 05:00:00 GMT',\n\t\t\t\t\t'Cache-Control': 'no-cache, no-store, must-revalidate',\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\n\t\tconst request = Http.post<void>(absoluteUrl, formData, options);\n\n\t\t// We have not migrated to fetch API with these methods yet. So we're still dependant on Axios via\n\t\t// our http module from cortex.\n\t\t// To bridge the gap between the two, we need to convert the response to act as if it was the fetch\n\t\t// variant instead.\n\t\tconst patchedRequest = request\n\t\t\t.then((response) => {\n\t\t\t\treturn Ok(response);\n\t\t\t})\n\t\t\t.catch((err) => {\n\t\t\t\tif (isHttpError(err)) {\n\t\t\t\t\treturn err;\n\t\t\t\t}\n\n\t\t\t\treturn Err(new HttpError('failed', 400, err));\n\t\t\t});\n\n\t\tconst ac = new AbortController();\n\t\tac.signal.addEventListener('abort', () => {\n\t\t\tcancelSource.cancel();\n\t\t});\n\n\t\treturn [patchedRequest as AsyncResult<HttpResponseBody<void>>, ac];\n\t}\n\n\tpublic async remove(absoluteUrl: string): Promise<HttpResponseBody<void>> {\n\t\tconst options = new HttpOptions({\n\t\t\trequestConfig: {\n\t\t\t\twithCredentials: true,\n\t\t\t\theaders: {\n\t\t\t\t\t'Content-Type': 'application/json',\n\t\t\t\t\tPragma: 'no-cache',\n\t\t\t\t\t'If-Modified-Since': 'Mon, 26 Jul 1997 05:00:00 GMT',\n\t\t\t\t\t'Cache-Control': 'no-cache, no-store, must-revalidate',\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\n\t\tconst response = await Http.delete<void>(absoluteUrl, options);\n\n\t\treturn {\n\t\t\theaders: response.headers as unknown as Headers,\n\t\t\tstatus: response.status,\n\t\t\tdata: response.data,\n\t\t};\n\t}\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport { EventEmitter } from '@visiba/std';\nimport { FileWorker } from './file_worker/mod';\nimport { HttpFileServer } from '@application/http_file_server.service';\nimport { signal } from '@preact/signals-react';\n\nexport enum FileManagerServiceReadyState {\n\tNotReady = 'NotReady',\n\tReady = 'Ready',\n}\n\n/**\n * @example\n * ```tsx\n * function MyComponent(): JSX.Element {\n * const fileManagerService = useService(FileManagerService);\n *\n * function handleFileChange(event: ChangeEvent<HTMLInputElement>): void {\n * if (event.target.files != null) {\n * fileManagerService.assignWorker(event.target.files, 'endpoint/identity');\n *\n * queueMicrotask(() => {\n * for (const worker of fileManagerService.peakWorkerList()) {\n * worker.giveIdentity();\n * }\n * });\n * }\n *\n * event.target.value = '';\n * }\n *\n * function handleClick(): void {\n * queueMicrotask(() => {\n * for (const worker of fileManagerService.peakWorkerList()) {\n * worker.upload().then(() => {\n * fileManagerService.exhaustUploadedWorkers();\n * });\n * }\n * });\n * }\n *\n * return (\n * <div>\n * <input type='file' onChange={handleFileChange} multiple />\n * <button onClick={handleClick} />\n * </div>\n * );\n * }\n * ```\n */\n@Injectable()\nexport class FileManagerService {\n\tpublic readonly readyState = signal<FileManagerServiceReadyState>(FileManagerServiceReadyState.Ready);\n\n\tpublic static getExtension(filename: string): string {\n\t\tconst split = filename.split('.').pop();\n\n\t\treturn split?.toLowerCase() ?? '';\n\t}\n\n\tpublic static getFileType(fileName: string): FileTypes {\n\t\t// Todo: Should this check file type?\n\t\tconst extension = FileManagerService.getExtension(fileName);\n\n\t\tif (\n\t\t\textension === 'png' ||\n\t\t\textension === 'jpg' ||\n\t\t\textension === 'gif' ||\n\t\t\textension === 'webp' ||\n\t\t\textension === 'jpeg' ||\n\t\t\textension === 'tiff'\n\t\t) {\n\t\t\treturn FileTypes.Image;\n\t\t}\n\n\t\tif (extension === 'doc' || extension === 'docx') {\n\t\t\treturn FileTypes.Doc;\n\t\t}\n\n\t\tif (extension === 'pdf') {\n\t\t\treturn FileTypes.Pdf;\n\t\t}\n\n\t\tif (extension === 'xlsx') {\n\t\t\treturn FileTypes.Xslx;\n\t\t}\n\n\t\treturn FileTypes.Unknown;\n\t}\n\n\tpublic static resolveMimeType(fileName: string): VisibaAcceptedMimeTypes {\n\t\tconst extension = FileManagerService.getExtension(fileName);\n\t\tswitch (extension) {\n\t\t\tcase 'doc':\n\t\t\t\treturn 'application/msword';\n\t\t\tcase 'docx':\n\t\t\t\treturn 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';\n\t\t\tdefault:\n\t\t\t\treturn 'application/octet-stream';\n\t\t}\n\t}\n\n\tpublic readonly events = new EventEmitter<{\n\t\tonFileWorkerUpdate: Readonly<FileWorker[]>;\n\t}>();\n\n\tprivate workers: FileWorker[] = [];\n\n\tconstructor(private readonly httpFileServer: HttpFileServer) {\n\t\t// Empty\n\t}\n\n\t/**\n\t * Assign a Worker to leverage the file uploading. This method only registers\n\t * that a Worker is assigned to the file manager. The actual uploading process\n\t * is managed by the Worker internally.\n\t *\n\t * @param file File or FileList to upload.\n\t * @param identityEndpointPath An endpoint path to retrieve the file's\n\t * identity. It's not static since different places may use different endpoints.\n\t */\n\tpublic assignWorker(file: File, identityEndpointPath: string): void;\n\tpublic assignWorker(file: FileList, identityEndpointPath: string): void;\n\tpublic assignWorker(file: File | FileList, identityEndpointPath: string): void {\n\t\tlet processingFiles: File[];\n\t\tif (file instanceof FileList) {\n\t\t\tprocessingFiles = Array.from(file);\n\t\t} else {\n\t\t\tprocessingFiles = [file];\n\t\t}\n\n\t\tfor (const file of processingFiles) {\n\t\t\tconst fileWorker = new FileWorker(file, identityEndpointPath, this.httpFileServer);\n\t\t\tthis.workers.push(fileWorker);\n\t\t}\n\n\t\tthis.events.emit('onFileWorkerUpdate', this.workers);\n\t}\n\n\t/**\n\t * Drops a worker from the list of workers. Will cancel the uploading process\n\t * if ongoing.\n\t *\n\t * @param id a file worker's identity.\n\t */\n\tpublic dropWorker(id: string): void {\n\t\tconst index = this.workers.findIndex((worker) => worker.id === id);\n\t\tif (index >= 0) {\n\t\t\tconst worker = this.workers.splice(index, 1)[0];\n\t\t\tworker.drop();\n\n\t\t\tthis.events.emit('onFileWorkerUpdate', this.workers);\n\t\t}\n\n\t\tthis.updateReadyState();\n\t}\n\n\tpublic peakWorkerList(): Readonly<FileWorker[]> {\n\t\treturn this.workers;\n\t}\n\n\t/**\n\t * Returns a list of all the workers that has not been dropped.\n\t */\n\tpublic peakUploadedWorkers(): Readonly<FileWorker[]> {\n\t\tconst completed: FileWorker[] = [];\n\n\t\tfor (const worker of this.workers) {\n\t\t\tif (worker.isUploaded()) {\n\t\t\t\tcompleted.push(worker);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\treturn completed;\n\t}\n\n\t/**\n\t *\n\t *\n\t * @returns List of the uploaded identifier's id.\n\t */\n\tpublic peakUploadedIdentities(): string[] {\n\t\tconst completed: string[] = [];\n\t\tfor (const worker of this.workers) {\n\t\t\tconst id = worker.isUploaded(true);\n\t\t\tif (id != null) {\n\t\t\t\tcompleted.push(id);\n\t\t\t}\n\t\t}\n\n\t\treturn completed;\n\t}\n\n\t/**\n\t *\n\t *\n\t * @returns List of the uploaded identifier's id.\n\t */\n\tpublic flushUploadedIdentities(): string[] {\n\t\tconst completed: string[] = [];\n\t\tconst uncompleted: FileWorker[] = [];\n\t\tfor (const worker of this.workers) {\n\t\t\tconst id = worker.isUploaded(true);\n\t\t\tif (id != null) {\n\t\t\t\tcompleted.push(id);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tuncompleted.push(worker);\n\t\t}\n\n\t\tthis.workers = uncompleted;\n\t\tif (completed.length > 0) {\n\t\t\tthis.events.emit('onFileWorkerUpdate', this.workers);\n\t\t}\n\n\t\treturn completed;\n\t}\n\n\tpublic updateReadyState(): void {\n\t\tconst expectedUploadsLength = this.peakUploadedWorkers().length;\n\t\tconst addedWorkersLength = this.peakWorkerList().length;\n\n\t\tthis.readyState.value =\n\t\t\taddedWorkersLength !== 0 && expectedUploadsLength !== addedWorkersLength\n\t\t\t\t? FileManagerServiceReadyState.NotReady\n\t\t\t\t: FileManagerServiceReadyState.Ready;\n\t}\n}\n\nexport enum FileTypes {\n\tImage,\n\tDoc,\n\tPdf,\n\tXslx,\n\tUnknown,\n}\n\ntype VisibaAcceptedMimeTypes =\n\t| 'application/msword'\n\t| 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'\n\t| 'application/octet-stream';\n","import { useResolve } from '@visiba-cortex/instantiation';\nimport { FileManagerService } from './file_manager.service';\nimport type { FileManagerServiceReadyState } from './file_manager.service';\nimport { useFileWorkerList } from './use_file_worker_list';\nimport {\n\tChangeEvent,\n\tMouseEvent,\n\tPropsWithChildren,\n\tDragEvent,\n\tcreateContext,\n\tuseContext,\n\tuseRef,\n\tuseState,\n\tuseEffect,\n\tuseCallback,\n} from 'react';\nimport { Button, FileViewer, Flex, Icon, Text, VisuallyHidden } from '@cellula/react';\nimport { AnimatePresence, type Variants, motion } from 'framer-motion';\nimport { AttachedFile } from './attached_file.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport styled from 'styled-components';\nimport { tokens } from '@cellula/react-theme-patient';\n\ninterface Props extends PropsWithChildren {\n\tidentityEndpointPath: string;\n\tonStateChange?: (state: FileManagerServiceReadyState) => void;\n}\n\nconst IdentityEndpointPathCtx = createContext('missing-path');\n\nfunction FileUploadRoot({ identityEndpointPath, onStateChange, children }: Props) {\n\tconst fileManagerService = useResolve(FileManagerService);\n\tconst [state, setState] = useState<FileManagerServiceReadyState>(fileManagerService.readyState.value);\n\n\tuseEffect(\n\t\tfunction whenStateChanges() {\n\t\t\tif (state !== fileManagerService.readyState.value) {\n\t\t\t\tsetState(fileManagerService.readyState.value);\n\t\t\t\tonStateChange?.(fileManagerService.readyState.value);\n\t\t\t}\n\t\t},\n\t\t[fileManagerService.readyState.value, onStateChange, state],\n\t);\n\n\treturn <IdentityEndpointPathCtx.Provider value={identityEndpointPath}>{children}</IdentityEndpointPathCtx.Provider>;\n}\n\nconst rootElements = {\n\tattachedFilesContainer: styled.div`\n\t\tmargin-top: ${tokens.spacing.x2};\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tgap: ${tokens.spacing.x1_5};\n\t`,\n\tattachedFileMotion: styled(motion.div)`\n\t\twidth: 100%;\n\t\ttransform-origin: bottom left 60px;\n\t\tmin-width: 0;\n\t`,\n};\n\nconst motionVariants: Variants = {\n\thidden: {\n\t\topacity: 0,\n\t\tscale: 0.9,\n\t\ttransition: {\n\t\t\tstiffness: 500,\n\t\t\tdamping: 40,\n\t\t\ttype: 'spring',\n\t\t},\n\t},\n\tvisible: (custom: number) => ({\n\t\tscale: 1,\n\t\topacity: 1,\n\t\ttransition: {\n\t\t\tdelay: custom * 0.025,\n\t\t\tstiffness: 500,\n\t\t\tdamping: 40,\n\t\t\ttype: 'spring',\n\t\t},\n\t}),\n};\n\nfunction FileUploadList() {\n\tconst fileManagerService = useResolve(FileManagerService);\n\tconst fileWorkers = useFileWorkerList(fileManagerService);\n\n\tfunction handleRemoveFileClick(id: string): void {\n\t\tfileManagerService.dropWorker(id);\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{fileWorkers.length > 0 ? (\n\t\t\t\t<FileViewer.Root>\n\t\t\t\t\t<rootElements.attachedFilesContainer>\n\t\t\t\t\t\t<AnimatePresence presenceAffectsLayout>\n\t\t\t\t\t\t\t{fileWorkers.map((worker, index) => (\n\t\t\t\t\t\t\t\t<rootElements.attachedFileMotion\n\t\t\t\t\t\t\t\t\tkey={worker.id}\n\t\t\t\t\t\t\t\t\tcustom={index}\n\t\t\t\t\t\t\t\t\tlayout\n\t\t\t\t\t\t\t\t\tvariants={motionVariants}\n\t\t\t\t\t\t\t\t\tinitial='hidden'\n\t\t\t\t\t\t\t\t\tanimate='visible'\n\t\t\t\t\t\t\t\t\texit='hidden'\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<AttachedFile worker={worker} onRemoveClick={handleRemoveFileClick} />\n\t\t\t\t\t\t\t\t</rootElements.attachedFileMotion>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</AnimatePresence>\n\t\t\t\t\t</rootElements.attachedFilesContainer>\n\t\t\t\t</FileViewer.Root>\n\t\t\t) : null}\n\t\t</>\n\t);\n}\n\nconst IsWithinFileUploadDropZoneCtx = createContext(false);\n\nconst StyledDropZone = styled.div`\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tpadding: ${tokens.size.x1_5} ${tokens.size.x2};\n\twidth: 100%;\n\tborder: 1px dashed ${tokens.color.border.default};\n\tborder-radius: ${tokens.borderRadius.medium};\n\tmin-height: ${tokens.size.x9};\n\n\t&[data-isDropping='true'] {\n\t\tborder-color: ${tokens.color.border.interactive};\n\t\tbackground: ${tokens.color.bg.interactiveMutedActive};\n\t}\n\n\t@media (hover: hover) and (pointer: fine) {\n\t\t&:hover {\n\t\t\tborder-color: ${tokens.color.border.interactive};\n\t\t}\n\t}\n\n\t&:has(input[type='file']:focus-visible) {\n\t\toutline: 2px solid ${tokens.color.focus};\n\t\toutline-offset: 2px;\n\t}\n`;\n\nconst StyledDropContent = styled.div`\n\theight: 48px;\n\toverflow: hidden;\n\tposition: relative;\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tcolor: ${tokens.color.content.interactive};\n`;\n\nconst StyledDropContentAnimate = styled(motion.div)`\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: column;\n\tposition: absolute;\n\theight: 150%;\n\tbottom: 13px;\n\tleft: 0;\n\tright: 0;\n\tjustify-content: space-between;\n`;\n\nfunction FileUploadDropZone(props: PropsWithChildren) {\n\tconst ref = useRef<HTMLDivElement>(null);\n\tconst identityEndpointPath = useContext(IdentityEndpointPathCtx);\n\tconst fileManagerService = useResolve(FileManagerService);\n\tconst [isDropping, setIsDropping] = useState(false);\n\n\tfunction handleDropDrag(e: DragEvent) {\n\t\te.preventDefault();\n\t\te.dataTransfer.dropEffect = 'move';\n\n\t\tsetIsDropping(true);\n\t}\n\n\t// Propagate the click to potentially hidden input element\n\tfunction handleClick(_: MouseEvent) {\n\t\tref.current?.querySelector('button')?.click();\n\t}\n\n\tfunction handleDrop(event: DragEvent) {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tsetIsDropping(false);\n\n\t\tif (event.dataTransfer.files.length <= 0) return;\n\n\t\tfileManagerService.assignWorker(event.dataTransfer.files, identityEndpointPath);\n\n\t\tqueueMicrotask(async () => {\n\t\t\tfileManagerService.updateReadyState();\n\n\t\t\tconst workers = fileManagerService.peakWorkerList();\n\t\t\tconst promises = [];\n\t\t\tfor (const worker of workers) {\n\t\t\t\tpromises.push(worker.upload());\n\t\t\t}\n\n\t\t\t// TODO: callback to parent component? Or the upload should be handled in the parent component?\n\t\t\ttry {\n\t\t\t\tawait Promise.allSettled(promises);\n\t\t\t} finally {\n\t\t\t\tfileManagerService.updateReadyState();\n\t\t\t}\n\t\t});\n\t}\n\n\tfunction handleDragLeave() {\n\t\tsetIsDropping(false);\n\t}\n\n\treturn (\n\t\t<StyledDropZone\n\t\t\tdata-isDropping={isDropping}\n\t\t\tref={ref}\n\t\t\tonClick={handleClick}\n\t\t\tonDrop={handleDrop}\n\t\t\tonDragOver={handleDropDrag}\n\t\t\tonDragLeave={handleDragLeave}\n\t\t>\n\t\t\t<StyledDropContent>\n\t\t\t\t<StyledDropContentAnimate\n\t\t\t\t\tvariants={{\n\t\t\t\t\t\tdropping: {\n\t\t\t\t\t\t\ty: 52,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tidle: {\n\t\t\t\t\t\t\ty: 0,\n\t\t\t\t\t\t\ttransition: {\n\t\t\t\t\t\t\t\tdelay: 0.1,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t\tanimate={isDropping ? 'dropping' : 'idle'}\n\t\t\t\t>\n\t\t\t\t\t<Flex direction='row' gap={tokens.size.x1}>\n\t\t\t\t\t\t<Icon type='upload' size='small' />\n\t\t\t\t\t\t<Text variant='labelSemiBold'>{withTranslation('Feature.FileManager.DropZone')}</Text>\n\t\t\t\t\t</Flex>\n\n\t\t\t\t\t<Flex direction='row' gap={tokens.size.x1}>\n\t\t\t\t\t\t<Icon type='paperClip' size='small' />\n\t\t\t\t\t\t<Text variant='labelSemiBold'>{withTranslation('Feature.FileManager.AttachFile')}</Text>\n\t\t\t\t\t</Flex>\n\t\t\t\t</StyledDropContentAnimate>\n\t\t\t</StyledDropContent>\n\n\t\t\t<IsWithinFileUploadDropZoneCtx.Provider value={true}>{props.children}</IsWithinFileUploadDropZoneCtx.Provider>\n\t\t</StyledDropZone>\n\t);\n}\n\nfunction FileUploadButton() {\n\tconst fileManagerService = useResolve(FileManagerService);\n\tconst identityEndpointPath = useContext(IdentityEndpointPathCtx);\n\n\tconst inputRef = useRef<HTMLInputElement>(null);\n\tconst hiddenFileInput = useRef<HTMLInputElement>(null);\n\n\tfunction handleUploadFileButtonClick(): void {\n\t\thiddenFileInput.current?.click();\n\t}\n\n\tconst uploadFiles = useCallback(\n\t\tfunction uploadFiles(fileList: Nullable<FileList>) {\n\t\t\tif (fileList != null) {\n\t\t\t\tfileManagerService.assignWorker(fileList, identityEndpointPath);\n\t\t\t}\n\n\t\t\tqueueMicrotask(async () => {\n\t\t\t\tfileManagerService.updateReadyState();\n\n\t\t\t\tconst workers = fileManagerService.peakWorkerList();\n\t\t\t\tconst promises = [];\n\t\t\t\tfor (const worker of workers) {\n\t\t\t\t\tpromises.push(worker.upload());\n\t\t\t\t}\n\n\t\t\t\t// TODO: callback to parent component? Or the upload should be handled in the parent component?\n\t\t\t\ttry {\n\t\t\t\t\tawait Promise.allSettled(promises);\n\t\t\t\t} finally {\n\t\t\t\t\tfileManagerService.updateReadyState();\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\t[fileManagerService, identityEndpointPath],\n\t);\n\n\tuseEffect(\n\t\tfunction bindPasteImage() {\n\t\t\tconst abortController = new AbortController();\n\n\t\t\tdocument.addEventListener(\n\t\t\t\t'paste',\n\t\t\t\t(e) => {\n\t\t\t\t\tconst clipboardItems = e.clipboardData?.files ?? new FileList();\n\n\t\t\t\t\tif (clipboardItems.length > 0) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\tuploadFiles(clipboardItems);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tsignal: abortController.signal,\n\t\t\t\t},\n\t\t\t);\n\n\t\t\treturn () => {\n\t\t\t\tabortController.abort();\n\t\t\t};\n\t\t},\n\t\t[uploadFiles],\n\t);\n\n\tfunction handleFileChange(event: ChangeEvent<HTMLInputElement>): void {\n\t\tuploadFiles(event.target.files);\n\n\t\tevent.target.value = '';\n\t\tinputRef.current?.focus();\n\t}\n\n\tconst button = (\n\t\t<Button variant='ghost' size='medium' icon='paperClip' iconPosition='leading' onClick={handleUploadFileButtonClick}>\n\t\t\t{withTranslation('PW.Component.Chat.Button.File')}\n\t\t</Button>\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{IsWithinFileUploadDropZoneCtx ? <VisuallyHidden>{button}</VisuallyHidden> : button}\n\t\t\t<VisuallyHidden>\n\t\t\t\t<input aria-hidden='true' type='file' ref={hiddenFileInput} onChange={handleFileChange} multiple tabIndex={0} />\n\t\t\t</VisuallyHidden>\n\t\t</>\n\t);\n}\n\nexport const FileUpload = {\n\tRoot: FileUploadRoot,\n\tList: FileUploadList,\n\tDropZone: FileUploadDropZone,\n\tButton: FileUploadButton,\n} as const;\n","export type ResolvedResultState = [string, 'success'] | [null, 'cancelled'] | [null, 'failed'] | [null, 'unknown'];\n\nexport enum WorkerTaskState {\n\tPristine,\n\tUploading,\n\tUploaded,\n\tUploadFailed,\n\tUploadCancelled,\n\tDeleting,\n\tDeleted,\n\tDeletionFailed,\n\tDownloading,\n\tDownloaded,\n\tDownloadFailed,\n}\n","import { Presentation } from '@visiba-cortex/presentation';\nimport { v4 } from 'uuid';\nimport { WorkerTaskState } from './common';\nimport { FileWorkerPresentationModel } from './mod';\n\nexport class FileWorkerStale {\n\tpublic readonly presentation = Presentation.create<FileWorkerPresentationModel>({\n\t\tfileState: WorkerTaskState.Pristine,\n\t\tfailedReason: null,\n\t});\n\tpublic readonly id: string;\n\tpublic readonly fileName: string;\n\tpublic readonly fileType: string;\n\tpublic readonly fileSize: number;\n\tpublic readonly downloadUrl: string;\n\tpublic readonly thumbnailUrl: string | null;\n\n\tconstructor({\n\t\tfileName,\n\t\tfileType,\n\t\tfileSize,\n\t\tdownloadUrl,\n\t\tthumbnailUrl,\n\t}: {\n\t\tfileName: string;\n\t\tfileType: string;\n\t\tfileSize: number;\n\t\tdownloadUrl: string;\n\t\tthumbnailUrl?: string;\n\t}) {\n\t\tthis.id = v4();\n\t\tthis.fileName = fileName;\n\t\tthis.fileType = fileType;\n\t\tthis.fileSize = fileSize;\n\t\tthis.downloadUrl = downloadUrl;\n\t\tthis.thumbnailUrl = thumbnailUrl ?? null;\n\t}\n\n\tpublic getThumbnail(): string | null {\n\t\t// TODO: DON'T USE DOWNLOAD URL FOR THUMBNAIL !!!\n\t\tif (this.fileType.includes('image')) {\n\t\t\tif (this.thumbnailUrl != null) {\n\t\t\t\treturn this.thumbnailUrl;\n\t\t\t}\n\n\t\t\treturn this.downloadUrl;\n\t\t}\n\n\t\treturn null;\n\t}\n}\n","import { HttpFileServer } from '@application/http_file_server.service';\n\nexport interface FileIdentity {\n\tid: string;\n\tuploadUrl: string;\n\tdownloadUrl: string;\n\tdeleteUrl: string;\n}\n\nexport class IdentityResolver {\n\tprivate identity: FileIdentity | null = null;\n\tprivate isCancelled = false;\n\n\tconstructor(private readonly httpFileServer: HttpFileServer) {\n\t\t// Empty\n\t}\n\n\tpublic reset(): void {\n\t\tthis.isCancelled = true;\n\t\tthis.identity = null;\n\t}\n\n\tpublic getIdentity(): FileIdentity | null {\n\t\treturn this.identity;\n\t}\n\n\tpublic async unwrapIdentity(endpoint: string, fileName: string, fileSize: number, fileType: string): Promise<FileIdentity> {\n\t\tif (this.identity != null) {\n\t\t\treturn this.identity;\n\t\t}\n\n\t\t// This request should be cancellable from backend.\n\t\tconst identity = await this.httpFileServer.identity(endpoint, fileName, fileSize, fileType);\n\n\t\tif (this.isCancelled) {\n\t\t\t// TODO: DEV-13650 expose a type of error from @visiba-cortex/http matching this.\n\t\t\tthrow {\n\t\t\t\t__CANCEL__: true,\n\t\t\t};\n\t\t}\n\n\t\tthis.identity = {\n\t\t\tid: identity.Id,\n\t\t\tuploadUrl: identity.UploadUrl,\n\t\t\tdownloadUrl: identity.DownloadUrl,\n\t\t\tdeleteUrl: identity.DeleteUrl,\n\t\t};\n\n\t\treturn this.identity;\n\t}\n}\n","import { Presentation } from '@visiba-cortex/presentation';\nimport { v4 } from 'uuid';\nimport { ResolvedResultState, WorkerTaskState } from './common';\nimport { FileIdentity, IdentityResolver } from './_identity_resolver';\nimport { FileManagerService } from '../file_manager.service';\nimport { HttpFileServer } from '@application/http_file_server.service';\nimport { isHttpError } from '@visiba-cortex/http';\nimport { I18nAndL10n } from '@application/i18n/i18n_and_l10n';\nexport interface FileWorkerPresentationModel {\n\tfileState: WorkerTaskState;\n\tfailedReason: Nullable<string>;\n}\n\nexport class FileWorker {\n\tpublic readonly presentation = Presentation.create<FileWorkerPresentationModel>({\n\t\tfileState: WorkerTaskState.Pristine,\n\t\tfailedReason: null,\n\t});\n\tpublic readonly id: string;\n\tpublic readonly fileName: string;\n\tpublic readonly fileType: string;\n\tpublic readonly fileSize: number;\n\n\tprivate previewImageSrc: Nullable<string> = null;\n\tprivate canCancelUpload: Nullable<AbortController> = null;\n\tprivate identityResolver: Nullable<IdentityResolver> = null;\n\n\tconstructor(\n\t\tprivate readonly file: File,\n\t\tprivate readonly endpoint: string,\n\t\tprivate readonly httpFileServer: HttpFileServer,\n\t) {\n\t\tthis.id = v4();\n\t\tthis.fileName = file.name;\n\t\tthis.fileSize = file.size;\n\t\tthis.fileType = file.type === '' ? FileManagerService.resolveMimeType(file.name) : file.type;\n\t}\n\n\tpublic get downloadUrl(): string {\n\t\tconst blob = this.getImageBlob();\n\t\tif (blob == null) return '';\n\n\t\treturn blob;\n\t}\n\n\t/**\n\t * If the worker is missing an identity, it'll try to resolve one for this worker.\n\t */\n\tpublic async giveIdentity(): Promise<FileIdentity> {\n\t\tif (this.identityResolver == null) {\n\t\t\tthis.identityResolver = new IdentityResolver(this.httpFileServer);\n\t\t}\n\n\t\treturn await this.identityResolver.unwrapIdentity(this.endpoint, this.fileName, this.fileSize, this.fileType);\n\t}\n\n\t/**\n\t * Uploads the file to the server.\n\t */\n\tpublic async upload(): Promise<ResolvedResultState> {\n\t\tconst identityTicket = this.isUploaded(true);\n\t\tif (identityTicket != null) {\n\t\t\treturn [identityTicket, 'success'];\n\t\t}\n\n\t\tif (this.hasFailedUpload()) {\n\t\t\treturn [null, 'failed'];\n\t\t}\n\n\t\tthis.presentation.write({ fileState: WorkerTaskState.Uploading });\n\n\t\tlet identity: FileIdentity;\n\t\ttry {\n\t\t\tif (this.identityResolver != null) {\n\t\t\t\tidentity = await this.identityResolver.unwrapIdentity(this.endpoint, this.fileName, this.fileSize, this.fileType);\n\t\t\t} else {\n\t\t\t\tidentity = await this.giveIdentity();\n\t\t\t}\n\t\t} catch (error: unknown) {\n\t\t\t// TODO DEV-13650: expose a type of error from @visiba-cortex/http matching this.\n\t\t\tif ((error as { __CANCEL__: boolean }).__CANCEL__ === true) {\n\t\t\t\tthis.presentation.write({ fileState: WorkerTaskState.UploadCancelled });\n\n\t\t\t\treturn [null, 'cancelled'];\n\t\t\t} else {\n\t\t\t\tlet failedReason: string | null = null;\n\n\t\t\t\tif (isHttpError<{ ErrorCode: string }>(error)) {\n\t\t\t\t\tconst errors = error.data.ErrorCode?.split(', ') ?? [];\n\t\t\t\t\tif (errors.length) {\n\t\t\t\t\t\tif (errors.includes('File extension not allowed') || errors.includes('File mime type not allowed')) {\n\t\t\t\t\t\t\tfailedReason = I18nAndL10n.translate('Feature.FileManager.FailedUploadReason.FileTypeNotAllowed');\n\t\t\t\t\t\t} else if (errors.includes('File too large')) {\n\t\t\t\t\t\t\tfailedReason = I18nAndL10n.translate('Feature.FileManager.FailedUploadReason.FileSizeTooLarge', {\n\t\t\t\t\t\t\t\tmaxFileSize: '100 mb',\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfailedReason = I18nAndL10n.translate('Feature.FileManager.FailedUploadReason.Unknown');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.presentation.write({ fileState: WorkerTaskState.UploadFailed, failedReason });\n\t\t\t}\n\n\t\t\tthrow [null, 'unknown'];\n\t\t}\n\n\t\tconst [request, cancel] = this.httpFileServer.upload(this.file, identity.uploadUrl);\n\n\t\ttry {\n\t\t\tthis.canCancelUpload = cancel;\n\t\t\tconst uploadResult = await request;\n\n\t\t\tif (uploadResult.err) {\n\t\t\t\tthis.presentation.write({\n\t\t\t\t\tfileState: WorkerTaskState.UploadFailed,\n\t\t\t\t\tfailedReason: I18nAndL10n.translate('Feature.FileManager.FailedUploadReason.Unknown'),\n\t\t\t\t});\n\n\t\t\t\tthrow [null, 'unknown'];\n\t\t\t}\n\n\t\t\tthis.presentation.write({ fileState: WorkerTaskState.Uploaded });\n\t\t} catch (error: unknown) {\n\t\t\t// TODO DEV-13650: expose a type of error from @visiba-cortex/http matching this.\n\t\t\tif ((error as { __CANCEL__: boolean }).__CANCEL__ === true) {\n\t\t\t\tthis.presentation.write({ fileState: WorkerTaskState.UploadCancelled });\n\t\t\t}\n\n\t\t\treturn [null, 'cancelled'];\n\t\t} finally {\n\t\t\tthis.canCancelUpload = null;\n\t\t}\n\n\t\treturn [identity.id, 'success'];\n\t}\n\n\t/**\n\t * Returns a binary state whether the file has been uploaded or not.\n\t */\n\tpublic isUploaded(): boolean;\n\t/**\n\t * Returns the files identity if the file has been uploaded, if not the return\n\t * value will be null.\n\t */\n\tpublic isUploaded(withReturnValue?: boolean): string | null;\n\tpublic isUploaded(withReturnValue?: boolean): boolean | string | null {\n\t\tconst identity = this.identityResolver?.getIdentity();\n\t\tconst isUploaded = this.presentation.read().fileState === WorkerTaskState.Uploaded;\n\n\t\tif (!withReturnValue) {\n\t\t\treturn identity != null && isUploaded;\n\t\t}\n\n\t\tif (identity == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn isUploaded ? identity.id : null;\n\t}\n\n\tpublic hasFailedUpload(): boolean {\n\t\treturn this.presentation.read().fileState === WorkerTaskState.UploadFailed;\n\t}\n\n\t/**\n\t * Cancels the upload if it is in progress. If the upload is completed, it'll\n\t * try to remove the file.\n\t */\n\tpublic async drop(): Promise<void> {\n\t\tthis.removeThumbnail();\n\n\t\tconst identity = this.identityResolver?.getIdentity();\n\t\tif (identity == null) {\n\t\t\tthis.identityResolver?.reset();\n\t\t\tthis.presentation.write({ fileState: WorkerTaskState.UploadCancelled });\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.canCancelUpload) {\n\t\t\tthis.canCancelUpload.abort();\n\t\t\tthis.presentation.write({ fileState: WorkerTaskState.UploadCancelled });\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst { fileState } = this.presentation.read();\n\t\tif (fileState === WorkerTaskState.Uploaded) {\n\t\t\ttry {\n\t\t\t\tthis.presentation.write({ fileState: WorkerTaskState.Deleting });\n\t\t\t\tawait this.httpFileServer.remove(identity.deleteUrl);\n\t\t\t\tthis.identityResolver = null;\n\t\t\t\tthis.presentation.write({ fileState: WorkerTaskState.Deleted });\n\t\t\t} catch (error) {\n\t\t\t\tthis.presentation.write({ fileState: WorkerTaskState.DeletionFailed });\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Taps into the workers identity resolver to get the identity of the file, or\n\t * null if the identiy is not yet resolved.\n\t *\n\t * @returns FileIdentity | null\n\t */\n\tpublic getIdentity(): FileIdentity | null {\n\t\treturn this.identityResolver?.getIdentity() ?? null;\n\t}\n\n\t/**\n\t * Returns which state the file assigned to the worker is in.\n\t *\n\t * @returns WorkerTaskState\n\t */\n\tpublic getFileTaskState(): WorkerTaskState {\n\t\treturn this.presentation.read().fileState;\n\t}\n\n\tpublic getThumbnail(): Nullable<string> {\n\t\tif (!this.fileType.includes('image')) return null;\n\n\t\treturn this.getImageBlob();\n\t}\n\n\tpublic removeThumbnail(): void {\n\t\tif (this.previewImageSrc != null) {\n\t\t\tURL.revokeObjectURL(this.previewImageSrc);\n\t\t\tthis.previewImageSrc = null;\n\t\t}\n\t}\n\n\tprivate getImageBlob(): Nullable<string> {\n\t\tif (this.previewImageSrc == null) {\n\t\t\tthis.previewImageSrc = URL.createObjectURL(this.file);\n\t\t}\n\n\t\treturn this.previewImageSrc;\n\t}\n}\n","import { useState } from 'react';\nimport { useEffect } from 'react';\nimport { FileManagerService } from './file_manager.service';\nimport type { FileWorker } from './file_worker/mod';\n\nexport function useFileWorkerList(fileManager: FileManagerService): Readonly<FileWorker[]> {\n\tconst [, forceUpdate] = useState([]);\n\n\tuseEffect(() => {\n\t\treturn fileManager.events.on('onFileWorkerUpdate', () => {\n\t\t\tforceUpdate([]);\n\t\t});\n\t}, [fileManager]);\n\n\treturn fileManager.peakWorkerList();\n}\n","import { AuthService } from '@application/authentication/auth.service';\nimport { Injectable, Scopes } from '@visiba-cortex/instantiation';\n\n/**\n * Service that tracks the number of unhandled issues that the user needs to\n * take action on.\n */\n@Injectable({\n\tscope: Scopes.Singleton,\n})\nexport class UnhandledIssuesService {\n\tpublic issues: Issue[] = [];\n\tprivate hasScheduled = false;\n\tprivate callbacks: Callback[] = [];\n\n\tconstructor(private authService: AuthService) {\n\t\tauthService.on('onAuthenticationTermination', () => {\n\t\t\tthis.removeAll();\n\t\t});\n\t}\n\n\t/**\n\t * Registers a new issue.\n\t */\n\tpublic addIssue(trackedBy: string, groupedBy?: string[]): void {\n\t\tthis.issues.push(new Issue(trackedBy, groupedBy ?? []));\n\n\t\tthis.scheduleUpdate();\n\t}\n\n\t/**\n\t * Returns a count of issues, either all or grouped by the given grouping tags.\n\t */\n\tpublic count(filterByTags?: string[], issues = this.issues): number {\n\t\tif (filterByTags == null || filterByTags.length === 0) return issues.length;\n\n\t\treturn issues.filter((issue) => {\n\t\t\treturn issue.tags.some((tag) => filterByTags.includes(tag));\n\t\t}).length;\n\t}\n\n\t/**\n\t * Returns a count of issues from a tracking id, either all or grouped by the given grouping tags.\n\t */\n\tpublic getCountByIssuesById(tackingId: string, filterByTags?: string[]): number {\n\t\tconst issues = this.issues.filter((issue) => issue.trackingId === tackingId);\n\n\t\treturn this.count(filterByTags, issues);\n\t}\n\n\t/**\n\t * Invalidates issues matching the given tracking id, removing them to be\n\t * counted.\n\t */\n\tpublic removeIssuesByTrackingId(trackingId: string): void;\n\tpublic removeIssuesByTrackingId(...trackingIds: string[]): void;\n\tpublic removeIssuesByTrackingId(...args: string[]): void {\n\t\tconst lengthBefore = this.callbacks.length;\n\n\t\tconst trackingIds = Array.isArray(args) ? args : [args];\n\t\tfor (const trackingId of trackingIds) {\n\t\t\tthis.issues = this.issues.filter((issue) => issue.trackingId !== trackingId);\n\t\t}\n\n\t\tif (this.issues.length === lengthBefore) return;\n\n\t\tthis.scheduleUpdate();\n\t}\n\n\t/**\n\t * Issues are not deeply tracked. And multiple similar instances could exist\n\t * simultaneously. So removing one \"arbitrary\" by matching tags is equal to\n\t * finding a specific one.\n\t */\n\tpublic removeArbitraryIssue(trackingId: string, mustBeTagAs: string): void;\n\tpublic removeArbitraryIssue(trackingId: string, mustBeTagAs: string[]): void;\n\tpublic removeArbitraryIssue(trackingId: string, _mustBeTagAs: string | string[]): void {\n\t\tconst mustBeTagAs = (Array.isArray(_mustBeTagAs) ? _mustBeTagAs : [_mustBeTagAs]) as string[];\n\n\t\tconst lengthBefore = this.issues.length;\n\n\t\tconst foundMatch = this.issues.findIndex((issue) => {\n\t\t\tif (issue.trackingId !== trackingId) return false;\n\n\t\t\tlet matches = 0;\n\t\t\tfor (const tag of issue.tags) {\n\t\t\t\tif (mustBeTagAs.includes(tag)) {\n\t\t\t\t\tmatches++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn matches >= mustBeTagAs.length;\n\t\t});\n\n\t\tif (foundMatch === -1) return;\n\n\t\tthis.issues.splice(foundMatch, 1);\n\n\t\tif (this.issues.length === lengthBefore) return;\n\n\t\tthis.scheduleUpdate();\n\t}\n\n\tpublic removeIssuesByTag(trackingId: string, mustBeTagAs: string): void;\n\tpublic removeIssuesByTag(trackingId: string, mustBeTagAs: string[]): void;\n\tpublic removeIssuesByTag(trackingId: string, _mustBeTagAs: string | string[]): void {\n\t\tconst mustBeTagAs = (Array.isArray(_mustBeTagAs) ? _mustBeTagAs : [_mustBeTagAs]) as string[];\n\n\t\tconst lengthBefore = this.issues.length;\n\t\tthis.issues = this.issues.filter((issue) => {\n\t\t\tif (issue.trackingId !== trackingId) return true;\n\n\t\t\treturn !issue.tags.some((tag) => mustBeTagAs.includes(tag));\n\t\t});\n\n\t\tif (this.issues.length === lengthBefore) return;\n\n\t\tthis.scheduleUpdate();\n\t}\n\n\tpublic removeAll() {\n\t\tthis.issues = [];\n\t\tthis.scheduleUpdate();\n\t}\n\n\t/**\n\t * Registers a callback to be called when issues are being added or invalidated.\n\t */\n\tpublic onChange(callback: Callback): Disposer {\n\t\tthis.callbacks.push(callback);\n\n\t\treturn () => {\n\t\t\tconst index = this.callbacks.findIndex((cb) => cb === callback);\n\t\t\tthis.callbacks.splice(index, 1);\n\t\t};\n\t}\n\n\tprivate scheduleUpdate(): void {\n\t\tif (this.hasScheduled) return;\n\n\t\tthis.hasScheduled = true;\n\n\t\tqueueMicrotask(() => {\n\t\t\tfor (const callback of this.callbacks) {\n\t\t\t\tcallback();\n\t\t\t}\n\n\t\t\tthis.hasScheduled = false;\n\t\t});\n\t}\n}\n\nclass Issue {\n\tpublic readonly trackingId: string;\n\tpublic readonly tags: Readonly<string>[] = [];\n\n\tconstructor(trackedBy: string, groupedBy: string[]) {\n\t\tthis.trackingId = trackedBy;\n\t\tthis.tags = groupedBy;\n\t}\n}\n\nexport type Callback = () => void;\nexport type Disposer = () => void;\n","import { useEffect, useReducer } from 'react';\nimport { UnhandledIssuesService } from './unhandled_issues.service';\nimport { useResolve } from '@visiba-cortex/instantiation';\n\n/**\n * Hook that taps into the UnhandledIssuesService, counting the number of issues.\n */\nexport function useCountedIssues(filterByTags?: string[]): number {\n\tconst unhandledIssuesService = useResolve(UnhandledIssuesService);\n\tconst [, forceUpdate] = useReducer((x) => x + 1, 0);\n\n\tuseEffect(\n\t\tfunction whenHookIsMounted() {\n\t\t\treturn unhandledIssuesService.onChange(() => {\n\t\t\t\tforceUpdate();\n\t\t\t});\n\t\t},\n\t\t[unhandledIssuesService],\n\t);\n\n\tuseEffect(\n\t\tfunction whenFilterIsChanged() {\n\t\t\tforceUpdate();\n\t\t},\n\t\t// We might need to use something like: https://github.com/kentcdodds/use-deep-compare-effect\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t\t[...(filterByTags ?? [])],\n\t);\n\n\treturn unhandledIssuesService.count(filterByTags);\n}\n","import { useService } from '@visiba-cortex/instantiation';\nimport { createContext, Fragment, ReactNode, useContext } from 'react';\nimport { PaymentController } from './payment.controller';\n\ninterface PaymentContext {\n\tcontroller: PaymentController;\n}\n\nconst PaymentContext = createContext(undefined as unknown as PaymentContext);\n\nexport function PaymentContextProvider({ children }: { children: ReactNode }): JSX.Element {\n\tconst paymentController = useService(PaymentController);\n\tconst existingPaymentContext = useContext(PaymentContext);\n\n\tif (existingPaymentContext != null) {\n\t\treturn <Fragment>{children}</Fragment>;\n\t}\n\n\treturn (\n\t\t<PaymentContext.Provider\n\t\t\tvalue={{\n\t\t\t\tcontroller: paymentController,\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</PaymentContext.Provider>\n\t);\n}\n\nexport function usePaymentContext(): PaymentContext {\n\tconst context = useContext(PaymentContext);\n\n\tif (context == null) throw new Error('usePaymentContext must be used within a PaymentProvider');\n\n\treturn context;\n}\n","import { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { useEffect } from 'react';\nimport styled from 'styled-components';\n\ninterface Props {\n\turl: string;\n}\n\nconst elements = {\n\tiframe: styled.iframe`\n\t\twidth: 100%;\n\t\tmin-height: 300px;\n\t\tborder: none;\n\t\toutline: none;\n\t`,\n};\n\nexport function PaymentFrame({ url }: Props): JSX.Element {\n\tconst analyticCtx = useAnalyticContext();\n\n\tuseEffect(() => {\n\t\tanalyticCtx.trackEvent('Started payment');\n\t}, [analyticCtx]);\n\n\treturn <elements.iframe title={withTranslation('PW.Component.Visits.AppointmentInfo.Payment.Sheet.Iframe.Title')} src={url} />;\n}\n","import styled from 'styled-components';\nimport { Stack, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport type { PaymentServiceApiModel } from '@api_patient/generated/clientv2/models';\nimport { ActionCard } from '@component/action_card.component';\nimport { Shimmer } from '@component/new_shimmer.component';\n\ninterface Props {\n\toptions: PaymentServiceApiModel[];\n\tonSelect: (item: PaymentServiceApiModel) => void;\n}\n\nconst elements = {\n\tactionCardImage: styled.img`\n\t\twidth: ${tokens.spacing.x4};\n\t\theight: ${tokens.spacing.x4};\n\t`,\n};\n\nexport function PaymentOptions({ options, onSelect }: Props): JSX.Element {\n\tconst analyticCtx = useAnalyticContext();\n\n\tfunction handleClick(item: PaymentServiceApiModel): () => void {\n\t\treturn () => {\n\t\t\tanalyticCtx.trackEvent(`Selected ${item.Name}`);\n\n\t\t\tonSelect(item);\n\t\t};\n\t}\n\n\treturn (\n\t\t<Stack gap={tokens.spacing.x1}>\n\t\t\t<Text variant='labelLargeSemiBold'>{withTranslation('PW.Component.Payment.ChoosePayment')}</Text>\n\t\t\t{!options.length ? (\n\t\t\t\t<Skeleton />\n\t\t\t) : (\n\t\t\t\t<>\n\t\t\t\t\t{options.map((item) => (\n\t\t\t\t\t\t<ActionCard.Root\n\t\t\t\t\t\t\tkey={item.Name}\n\t\t\t\t\t\t\ticon={<elements.actionCardImage src={item.ImageUrl} alt='' />}\n\t\t\t\t\t\t\tonClick={handleClick(item)}\n\t\t\t\t\t\t\thideArrow\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<ActionCard.Title>{item.Name}</ActionCard.Title>\n\t\t\t\t\t\t</ActionCard.Root>\n\t\t\t\t\t))}\n\t\t\t\t</>\n\t\t\t)}\n\t\t</Stack>\n\t);\n}\n\nfunction Skeleton() {\n\treturn (\n\t\t<>\n\t\t\t<Shimmer height={64} width='100%' />\n\t\t\t<Shimmer height={64} width='100%' />\n\t\t\t<Shimmer height={64} width='100%' />\n\t\t</>\n\t);\n}\n","import { PaymentState } from './payment.controller';\nimport { Divider, NotificationAlert } from '@cellula/react';\nimport { usePresentation } from '@visiba-cortex/presentation';\nimport { Fragment, useEffect, useRef } from 'react';\nimport { PaymentFrame } from './_payment_frame.component';\nimport { PaymentOptions } from './_payment_options.component';\nimport { usePaymentContext } from './_payment.context';\nimport type { PaymentServiceApiModel } from '@api_patient/generated/clientv2/models';\n\ninterface Props {}\n\nexport function PaymentStateConveyer(_: Props): JSX.Element | null {\n\tconst { controller } = usePaymentContext();\n\tconst { availableOptions, currentStep, selectedPaymentOption, errorMessage } = usePresentation(controller.presentation);\n\tconst ref = useRef<HTMLDivElement | null>(null);\n\n\tuseEffect(\n\t\tfunction whenCurrentStepChanges() {\n\t\t\t// A user can lose its focus trap when content they've tabbed into\n\t\t\t// disappears. To regain the focus we'll do a check if the browser\n\t\t\t// did a fallback to document body.\n\t\t\tif (document.activeElement === document.body) {\n\t\t\t\tref.current?.focus();\n\t\t\t}\n\t\t},\n\t\t[controller, currentStep],\n\t);\n\n\treturn (\n\t\t<Fragment>\n\t\t\t{errorMessage != null ? <NotificationAlert variant='danger'>{errorMessage}</NotificationAlert> : null}\n\n\t\t\t<div ref={ref} role='region' tabIndex={-1}>\n\t\t\t\t{selectedPaymentOption != null ? (\n\t\t\t\t\t<PaymentConveyer selectedPaymentOption={selectedPaymentOption} />\n\t\t\t\t) : (\n\t\t\t\t\t<PaymentOptions options={availableOptions} onSelect={controller.selectPaymentMethod.bind(controller)} />\n\t\t\t\t)}\n\t\t\t</div>\n\n\t\t\t{currentStep === PaymentState.PaymentFrame ? <Divider /> : null}\n\t\t</Fragment>\n\t);\n}\n\nfunction PaymentConveyer(props: { selectedPaymentOption: PaymentServiceApiModel }): JSX.Element {\n\treturn (\n\t\t<Fragment>\n\t\t\t<PaymentFrame url={props.selectedPaymentOption.Url} />\n\t\t</Fragment>\n\t);\n}\n","import { SafeArea, Stack, Button, Text, NotificationAlert } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { AnalyticCategories } from '@application/analytic/analytic.service';\nimport { AnalyticProvider, useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { useEffect, useState } from 'react';\nimport { PaymentContextProvider, usePaymentContext } from './_payment.context';\nimport { PaymentStateConveyer } from './_payment_state_conveyer.component';\nimport { AttemptData } from './payment.controller';\nimport { usePresentation } from '@visiba-cortex/presentation';\nimport { ButtonArrange } from '@component/button_arrange.component';\nimport { Article } from '@component/article.component';\n\ninterface Props {\n\tbillId: number;\n\tpaymentAmount: string;\n\tissueTrackingId?: string;\n\tonSuccess?: (data: AttemptData) => void;\n\tonAbort?: () => void;\n}\n\nexport function Payment(props: Props): JSX.Element {\n\treturn (\n\t\t<AnalyticProvider category={AnalyticCategories.PaymentFlow}>\n\t\t\t<PaymentContextProvider>\n\t\t\t\t<PaymentInner {...props} />\n\t\t\t</PaymentContextProvider>\n\t\t</AnalyticProvider>\n\t);\n}\n\nfunction PaymentInner({ paymentAmount, billId, issueTrackingId, onSuccess, onAbort }: Props): JSX.Element {\n\tconst { controller } = usePaymentContext();\n\tconst analyticCtx = useAnalyticContext();\n\tconst [showCancel, setShowCancel] = useState(true);\n\tconst [isClosing, setIsClosing] = useState(false);\n\n\tconst paymentState = usePresentation(controller.state);\n\n\tuseEffect(\n\t\tfunction bindEventsDuringLifeTime() {\n\t\t\treturn controller.events.on('onSuccess', (data) => {\n\t\t\t\tsetShowCancel(false);\n\t\t\t\tonSuccess?.(data);\n\t\t\t});\n\t\t},\n\t\t[controller, onSuccess],\n\t);\n\n\tuseEffect(\n\t\tfunction bindEventsDuringLifeTime() {\n\t\t\treturn controller.events.on('onAbort', () => {\n\t\t\t\tonAbort?.();\n\t\t\t});\n\t\t},\n\t\t[controller, onAbort],\n\t);\n\n\tuseEffect(\n\t\tfunction whenComponentMountsOrBillIdChanges() {\n\t\t\tcontroller.loadBill(billId, issueTrackingId);\n\t\t},\n\t\t[controller, billId, issueTrackingId],\n\t);\n\n\tuseEffect(\n\t\tfunction whenComponentUnmounts() {\n\t\t\treturn () => {\n\t\t\t\tcontroller.tearDown();\n\t\t\t};\n\t\t},\n\t\t[controller],\n\t);\n\n\tfunction handleAbort(): void {\n\t\tanalyticCtx.trackEvent('Clicked cancel');\n\t\tcontroller.cancel();\n\t}\n\n\tfunction handleClose(): void {\n\t\tsetIsClosing(true);\n\t\tanalyticCtx.trackEvent('Clicked close');\n\t\tcontroller.alreadyPaid();\n\t}\n\n\treturn (\n\t\t<SafeArea maxWidth='560px'>\n\t\t\t<Stack gap={tokens.spacing.x4} fluid='horizontal'>\n\t\t\t\t<Stack gap={tokens.spacing.x2} fluid='horizontal'>\n\t\t\t\t\t<Text variant='headingMedium'>{withTranslation('PW.Component.Payment.Title')}</Text>\n\t\t\t\t\t<Text variant='bodyLargeRegular'>\n\t\t\t\t\t\t{withTranslation('PW.Component.Payment.Amount', {\n\t\t\t\t\t\t\tpaymentAmount: paymentAmount,\n\t\t\t\t\t\t})}\n\t\t\t\t\t</Text>\n\t\t\t\t</Stack>\n\n\t\t\t\t{paymentState.state === 'alreadyPaid' ? (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<NotificationAlert variant='info'>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<Text variant='bodySemiBold'>{withTranslation('PW.Component.Payment.AlreadyPaid.Title')}</Text>\n\t\t\t\t\t\t\t\t<Article>{withTranslation('PW.Component.Payment.AlreadyPaid.Description')}</Article>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</NotificationAlert>\n\n\t\t\t\t\t\t<ButtonArrange>\n\t\t\t\t\t\t\t<Button variant='primary' size='small' onClick={handleClose} loading={isClosing}>\n\t\t\t\t\t\t\t\t{withTranslation('Common.Button.Close')}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</ButtonArrange>\n\t\t\t\t\t</>\n\t\t\t\t) : (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<PaymentStateConveyer />\n\n\t\t\t\t\t\t<ButtonArrange>\n\t\t\t\t\t\t\t<Button variant='ghost' size='small' onClick={handleAbort} disabled={!showCancel} disabledText=''>\n\t\t\t\t\t\t\t\t{withTranslation('PW.Component.Payment.ButtonCancel')}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</ButtonArrange>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t</Stack>\n\t\t</SafeArea>\n\t);\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport type { PaymentApiModel, PaymentServiceApiModel } from './generated/clientv2/models';\nimport { HttpResponse, HttpService } from '@application/http.service';\nimport { ApiBaseClient } from './_api_base_client';\n\n@Injectable()\nexport class PaymentApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('');\n\t}\n\n\tpublic getServices(unitId: number, billId: number): HttpResponse<PaymentServiceApiModel[]> {\n\t\treturn this.httpService.get(`${this.baseUri}/units/${unitId}/Payments/${billId}/Services`);\n\t}\n\n\tpublic getPayment(billId: number): HttpResponse<PaymentApiModel> {\n\t\treturn this.httpService.get(`${this.baseUri}/Payments/${billId}`);\n\t}\n}\n","import type { PaymentServiceApiModel } from '@api_patient/generated/clientv2/models';\nimport { PaymentApiService } from '@api_patient/payment_api.service';\nimport { HttpError } from '@application/http_error';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { ImperativeSheetRef } from '@cellula/react';\nimport { LocalPushNotification } from '@component/notification_manager/notification/local_push_notification';\nimport { NotificationService } from '@component/notification_manager/notification/notification.service';\nimport { AnalyticService, AnalyticCategories } from '@application/analytic/analytic.service';\nimport { I18nAndL10n } from '@application/i18n/i18n_and_l10n';\nimport { UnhandledIssuesService } from '@feature/issues/unhandled_issues.service';\nimport { Injectable } from '@visiba-cortex/instantiation';\nimport { Presentation } from '@visiba-cortex/presentation';\nimport { EventEmitter, Timer } from '@visiba/std';\nimport { SHEET_CLOSE_INTO_NOTIFICATION_WAIT } from '../../constants';\nimport { RefCallback } from 'react';\n\nexport enum PaymentState {\n\tPaymentOptions,\n\tPaymentFrame,\n\tPaymentFailed,\n\tPaymentCanceled,\n\tPaymentCompleted,\n\tPaymentCompletedNoReceipt,\n}\n\nexport interface AttemptData {\n\treceiptUrl: string | null;\n\thasReceipt: boolean;\n}\n\ninterface PresentationModel {\n\tavailableOptions: PaymentServiceApiModel[];\n\tselectedPaymentOption: PaymentServiceApiModel | null;\n\tcurrentStep: PaymentState;\n\terrorMessage: Nullable<string>;\n\tattemptData: AttemptData | null;\n\tissueTrackingId: string | null;\n}\n\nexport interface MessageEventData {\n\tevent: 'Success' | 'Error' | 'Cancel';\n\tdata: {\n\t\tinfo: AttemptData;\n\t\tmessage: string;\n\t\tmessageDetails?: string;\n\t};\n}\n\n@Injectable()\nexport class PaymentController {\n\tpublic readonly events = new EventEmitter<{\n\t\tonSuccess: AttemptData;\n\t\tonAbort: void;\n\t}>();\n\tpublic readonly presentation = Presentation.create<PresentationModel>({\n\t\tavailableOptions: [],\n\t\tselectedPaymentOption: null,\n\t\terrorMessage: null,\n\t\tcurrentStep: PaymentState.PaymentOptions,\n\t\tattemptData: null,\n\t\tissueTrackingId: null,\n\t});\n\tpublic readonly state = Presentation.create<{ state: 'unpaid' | 'paid' | 'alreadyPaid' }>({\n\t\tstate: 'unpaid',\n\t});\n\tprivate billId: number | null = null;\n\n\tprivate imperativeSheetRef: ImperativeSheetRef | null = null;\n\tprivate readonly bundMessageListenerFn: (message: MessageEvent<MessageEventData>) => void;\n\n\tconstructor(\n\t\tprivate readonly paymentApiService: PaymentApiService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly notificationService: NotificationService,\n\t\tprivate readonly unhandledIssuesService: UnhandledIssuesService,\n\t\tprivate readonly analyticService: AnalyticService,\n\t) {\n\t\tthis.bundMessageListenerFn = this.handlePaymentMessage.bind(this);\n\t}\n\n\tpublic createRefBridge(): RefCallback<ImperativeSheetRef> {\n\t\treturn (ref) => {\n\t\t\tthis.imperativeSheetRef = ref;\n\t\t};\n\t}\n\n\tpublic async loadBill(billId: number, trackedByIssueId: string | null = null): Promise<void> {\n\t\tthis.billId = billId;\n\n\t\tthis.presentation.write({\n\t\t\tcurrentStep: PaymentState.PaymentOptions,\n\t\t\tavailableOptions: [],\n\t\t\tselectedPaymentOption: null,\n\t\t\terrorMessage: null,\n\t\t\tissueTrackingId: trackedByIssueId,\n\t\t});\n\n\t\tthis.removeListener();\n\t\tglobalThis.addEventListener('message', this.bundMessageListenerFn);\n\n\t\tconst response = await this.paymentApiService.getServices(this.universalConfig.selectedUnitId, billId);\n\t\tif (response.err) {\n\t\t\tthis.handleLoadBillError(response.err);\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.presentation.write({ availableOptions: response.ok.data });\n\t}\n\n\tpublic handlePaymentMessage(message: MessageEvent<MessageEventData>): void {\n\t\tswitch (message.data?.event) {\n\t\t\tcase 'Success':\n\t\t\t\tthis.setSuccess(message.data?.data.info);\n\t\t\t\tbreak;\n\t\t\tcase 'Error':\n\t\t\t\tif (message.data?.data != null) {\n\t\t\t\t\tif (message.data.data.messageDetails === 'AlreadyPaid') {\n\t\t\t\t\t\tthis.state.write({ state: 'alreadyPaid' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tthis.setError(message.data.data.message);\n\t\t\t\t} else {\n\t\t\t\t\tthis.setError('Unknown error');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'Cancel':\n\t\t\t\tthis.setCancel();\n\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tpublic tearDown(): void {\n\t\tthis.removeListener();\n\t}\n\n\tpublic selectPaymentMethod(option: PaymentServiceApiModel): void {\n\t\tthis.presentation.write({ errorMessage: null, selectedPaymentOption: option, currentStep: PaymentState.PaymentFrame });\n\t}\n\n\tpublic async alreadyPaid(): Promise<void> {\n\t\tlet paymentAttemptData: AttemptData = { hasReceipt: false, receiptUrl: null };\n\n\t\tif (this.billId) {\n\t\t\tconst paymentResult = await this.paymentApiService.getPayment(this.billId);\n\t\t\tif (paymentResult.ok && paymentResult.ok.data.State === 'Paid') {\n\t\t\t\tconst receiptUrl = paymentResult.ok.data.ReceiptUrl;\n\t\t\t\tpaymentAttemptData = { hasReceipt: !!receiptUrl, receiptUrl };\n\t\t\t}\n\t\t}\n\n\t\tthis.closeSheet();\n\t\tthis.events.emit('onSuccess', paymentAttemptData);\n\n\t\tconst { issueTrackingId } = this.presentation.read();\n\t\tif (issueTrackingId != null) {\n\t\t\tthis.unhandledIssuesService.removeArbitraryIssue(issueTrackingId, 'awaitPayment');\n\t\t}\n\t}\n\n\tpublic cancel(): void {\n\t\tthis.closeSheet();\n\t\tthis.events.emit('onAbort', undefined);\n\n\t\tif (this.presentation.read().currentStep === PaymentState.PaymentOptions) return;\n\n\t\tTimer.wait(() => {\n\t\t\tthis.notificationService.add(\n\t\t\t\tnew LocalPushNotification({\n\t\t\t\t\tlabel: I18nAndL10n.translate('PW.Component.Visits.Payment.Toast.CancelledPayment'),\n\t\t\t\t\tvariant: 'warning',\n\t\t\t\t\ttype: 'toast',\n\t\t\t\t}),\n\t\t\t);\n\t\t}, SHEET_CLOSE_INTO_NOTIFICATION_WAIT);\n\t}\n\n\tprivate setSuccess(info: AttemptData): void {\n\t\tthis.analyticService.trackEvent(AnalyticCategories.PaymentFlow, 'Finished payment');\n\n\t\tthis.presentation.write({ currentStep: PaymentState.PaymentCompleted, attemptData: info });\n\n\t\tthis.closeSheet();\n\t\tthis.events.emit('onSuccess', info);\n\n\t\tTimer.wait(() => {\n\t\t\tthis.notificationService.add(\n\t\t\t\tnew LocalPushNotification({\n\t\t\t\t\tlabel: I18nAndL10n.translate('PW.Component.Visits.Payment.Toast.SuccessfulPayment'),\n\t\t\t\t\tvariant: 'success',\n\t\t\t\t\ttype: 'toast',\n\t\t\t\t}),\n\t\t\t);\n\n\t\t\tconst { issueTrackingId } = this.presentation.read();\n\t\t\tif (issueTrackingId != null) {\n\t\t\t\tthis.unhandledIssuesService.removeArbitraryIssue(issueTrackingId, 'awaitPayment');\n\t\t\t}\n\t\t}, SHEET_CLOSE_INTO_NOTIFICATION_WAIT);\n\t}\n\n\tprivate closeSheet(): void {\n\t\tthis.imperativeSheetRef?.close();\n\t}\n\n\tprivate removeListener(): void {\n\t\tglobalThis.removeEventListener('message', this.bundMessageListenerFn);\n\t}\n\n\tprivate setError(error: string): void {\n\t\tthis.analyticService.trackEvent(AnalyticCategories.PaymentFlow, 'Got error from iframe');\n\n\t\tthis.presentation.write({ errorMessage: error, currentStep: PaymentState.PaymentFailed, selectedPaymentOption: null });\n\t}\n\n\tprivate setCancel(): void {\n\t\tthis.presentation.write({ currentStep: PaymentState.PaymentCanceled, selectedPaymentOption: null });\n\t}\n\n\tprivate handleLoadBillError(error: HttpError<unknown>): void {\n\t\tthis.presentation.write({ errorMessage: error.message });\n\n\t\tthis.analyticService.trackEvent(AnalyticCategories.PaymentFlow, 'Got error from Visiba');\n\n\t\tTimer.wait(() => {\n\t\t\tthis.notificationService.add(\n\t\t\t\tnew LocalPushNotification({\n\t\t\t\t\tlabel: I18nAndL10n.translate('PW.Component.Visits.Payment.Toast.FailedPayment'),\n\t\t\t\t\tvariant: 'danger',\n\t\t\t\t\ttype: 'toast',\n\t\t\t\t}),\n\t\t\t);\n\t\t}, SHEET_CLOSE_INTO_NOTIFICATION_WAIT);\n\t}\n}\n","import { I18nAndL10n } from '@application/i18n/i18n_and_l10n';\nimport { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { applicationLocalStorage } from '../../application/application_storage_local';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { Logger } from '@visiba/logger';\n\n// import { Singleton } from '@visiba-cortex/instantiation';\n// import { applicationLocalStorage } from '../application_local_storage';\n// import { LicenceHolderService } from './licence_holder.service';\n\n// TODO: DEV-10753 Find a new home for these interfaces.\ninterface MigrationVerifier {\n\treadonly migrationVersion: number;\n}\ninterface DataIteration_v0 {\n\treadonly selectedLanguage: I18nAndL10n.AvailableVisibaLocales;\n}\n\nexport type Settings = MigrationVerifier & DataIteration_v0;\n\nexport class UserSettingsNotSetError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'UserSettingsNotSetError';\n\t\tObject.setPrototypeOf(this, UserSettingsNotSetError.prototype);\n\t}\n}\n\n@Injectable({\n\tscope: Scopes.Singleton,\n})\nexport class UserSettingsService {\n\tprivate static readonly storageKey = 'USER_SETTINGS';\n\tprivate readonly activeMigrationVersion = 0;\n\tprivate storedSettings: Settings | null = null;\n\tprivate logger = new Logger('user settings service');\n\n\tpublic getSettings(): Omit<Settings, 'migrationVersion'>;\n\tpublic getSettings(failGracefully: boolean): Omit<Settings, 'migrationVersion'> | null;\n\tpublic getSettings(failGracefully?: boolean): Omit<Settings, 'migrationVersion'> | null {\n\t\tlet settings: Settings;\n\t\tif (this.storedSettings == null) {\n\t\t\tif (failGracefully) return null;\n\n\t\t\tsettings = this.loadSettings();\n\t\t} else {\n\t\t\tsettings = this.storedSettings;\n\t\t}\n\n\t\treturn settings;\n\t}\n\n\tconstructor(private readonly universalConfig: UniversalConfig) {\n\t\t// Empty\n\t}\n\n\tpublic loadSettings(): Settings {\n\t\tconst data = applicationLocalStorage.get(UserSettingsService.storageKey);\n\t\tif (data == null) {\n\t\t\tthis.storedSettings = this.createNewSettings();\n\t\t\tthis.save(this.storedSettings);\n\n\t\t\treturn this.storedSettings;\n\t\t}\n\n\t\tthis.storedSettings = data;\n\t\tthis.updateSettings(data);\n\n\t\treturn data;\n\t}\n\n\tpublic updateSettings(settings: Partial<Omit<Settings, 'migrationVersion'>>): void {\n\t\t// Casting this as the actual data structure it's store as\n\t\tconst currentSettings = this.getSettings() as Settings;\n\n\t\t// TODO: DEV-10753 Add migration logic\n\t\t// if (this.activeMigrationVersion !== currentSettings.migrationVersion) {\n\t\t// \tconst migration = new MigrationStrategyPipe(currentSettings);\n\t\t// \tthis.storedSettings = migration.migrate(settings);\n\n\t\t// \treturn;\n\t\t// }\n\n\t\tconst builder: Settings = {\n\t\t\t...currentSettings,\n\t\t\t...settings,\n\t\t};\n\n\t\tthis.save(builder);\n\t\tthis.storedSettings = builder;\n\t}\n\n\tpublic setLanguage(): void {\n\t\tconst { selectedLanguage } = this.getSettings();\n\t\tthis.logger.logInformation('Sets language to {selectedLanguage}', selectedLanguage);\n\n\t\tthis.universalConfig.selectedLanguageCode.value = selectedLanguage;\n\t\tI18nAndL10n.updateLangCode(selectedLanguage);\n\t}\n\n\tprivate save(data: Settings): void {\n\t\tapplicationLocalStorage.set(UserSettingsService.storageKey, data);\n\t}\n\n\tprivate createNewSettings(): Settings {\n\t\treturn {\n\t\t\tmigrationVersion: this.activeMigrationVersion,\n\t\t\tselectedLanguage: this.retrieveSelectedLanguage(),\n\t\t};\n\t}\n\n\tprivate retrieveSelectedLanguage(): I18nAndL10n.AvailableVisibaLocales {\n\t\t// TODO: DEV-10753 Remove this in favour of migration logic\n\t\tconst OLD_PATIENT_WEB_LANG = localStorage.getItem('languageCode') as string | null;\n\n\t\tconst languagesToTry = new Set([OLD_PATIENT_WEB_LANG, navigator.language, ...navigator.languages].filter(Boolean) as string[]);\n\n\t\tfunction tryToSelectLanguage(str: string): I18nAndL10n.AvailableVisibaLocales | null {\n\t\t\ttry {\n\t\t\t\treturn I18nAndL10n.convertExternalLocaleToAvailableLocale(str);\n\t\t\t} catch (_: unknown) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\tlet selectedLanguage = this.universalConfig.selectedLanguageCode.value;\n\t\tfor (const language of languagesToTry) {\n\t\t\tconst selectedLanguageCandidate = tryToSelectLanguage(language);\n\t\t\tif (selectedLanguageCandidate != null) {\n\t\t\t\tselectedLanguage = selectedLanguageCandidate;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn selectedLanguage as I18nAndL10n.AvailableVisibaLocales;\n\t}\n}\n","import { ControllerProtocol, Injectable } from '@visiba-cortex/instantiation';\nimport { AppointmentApiService } from '@api_patient/appointment_api.service';\nimport { signal } from '@preact/signals-react';\nimport { AsyncSignalValue } from '@component/async.component';\nimport { ExoticRespondantStatusApiModel, FormManager } from '@feature/dynamic_form/form_manager/form_manager.service';\nimport { FormOpportunity } from '@api_patient/generated/clientv2/models/form-opportunity';\nimport { States as PaymentState } from '@api_patient/generated/clientv2/models/states';\nimport type { FormWorker } from '@feature/dynamic_form/form_manager/form_worker';\nimport { GeneralApiService } from '@api_patient/general_api.service';\nimport { RouterService } from '@cortex-shim/router.service';\nimport { I18nAndL10n } from '@application/i18n/mod';\nimport { DateService } from '@application/time/date.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { OfficeApiService } from '@api_patient/office_api.service';\nimport { Logger } from '@visiba/logger';\nimport { type LeaveType } from '@visiba/retina';\n\ninterface AppointmentState {\n\tbeforeForm: Nullable<Readonly<FormWorker>>;\n\tafterForm: Nullable<Readonly<FormWorker>>;\n\tshouldEvaluate: Nullable<'completed' | 'not_completed'>;\n\tisMissingPayment: boolean;\n\treconnectVariants: Nullable<LeaveType>;\n}\n\ninterface AppointmentInfo {\n\tbookingId: number;\n\tresourceId: Nullable<number>;\n\tisHcp: boolean;\n\tisGuest: boolean;\n\tisHost: boolean;\n\totherParticipants: string[];\n\ttime: {\n\t\tstart: string;\n\t\tend: string;\n\t};\n\tvonageEncryptionRequired: boolean;\n\tproxyUrl: Nullable<string>;\n}\n\n@Injectable()\nexport class AppointmentController implements ControllerProtocol {\n\tpublic logger = new Logger('Retina');\n\tpublic savedTicket: Nullable<string> = null;\n\n\tpublic readonly appointmentInfo = signal<Nullable<AppointmentInfo>>(null);\n\n\tpublic readonly state = signal<AsyncSignalValue<AppointmentState>>({\n\t\tvalue: null,\n\t\tflowState: 'pending',\n\t});\n\n\tconstructor(\n\t\tpublic readonly formManager: FormManager,\n\t\tprivate readonly appointmentApiService: AppointmentApiService,\n\t\tprivate readonly officeApiService: OfficeApiService,\n\t\tprivate readonly generalApiService: GeneralApiService,\n\t\tprivate readonly routerService: RouterService,\n\t\tprivate readonly dateService: DateService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t) {}\n\n\tpublic callStatus(callticket: string) {\n\t\treturn this.appointmentApiService.callStatus(callticket);\n\t}\n\n\tasync whenMount(callticket: Nullablish<string>) {\n\t\tif (callticket == null) return;\n\n\t\tthis.savedTicket = callticket;\n\n\t\tconst [result, accessInfo] = await Promise.all([\n\t\t\tthis.appointmentApiService.get(callticket),\n\t\t\tthis.generalApiService.getAppointmentAccessInfo(callticket),\n\t\t]);\n\n\t\tif (accessInfo.err || result.err) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst start = this.dateService.newDate(result.ok.data.Start);\n\n\t\tthis.appointmentInfo.value = {\n\t\t\tbookingId: result.ok.data.BookingId,\n\t\t\tresourceId: result.ok.data.ResourceId,\n\t\t\tisHost: result.ok.data.Role === 'Host',\n\t\t\tisHcp: accessInfo.ok.data.ResourceId != null,\n\t\t\tisGuest: accessInfo.ok.data.OutsiderId != null,\n\t\t\totherParticipants: result.ok.data.OtherParticipants.map((x) => x.Name ?? I18nAndL10n.translate('PW.Common.Anonymous')),\n\t\t\ttime: {\n\t\t\t\tstart: start.format('HH:mm'),\n\t\t\t\tend: start.add(result.ok.data.Duration, 'minutes').format('HH:mm'),\n\t\t\t},\n\t\t\tvonageEncryptionRequired: result.ok.data.VonageEncryptionRequired,\n\t\t\tproxyUrl: result.ok.data.VonageProxyUrl,\n\t\t};\n\n\t\tif (result.ok) {\n\t\t\tconst appointment = result.ok.data;\n\t\t\tconst beforeForms = appointment.Forms.filter((x) => x.Opportunity === FormOpportunity.BeforeBooking).map((x) => ({\n\t\t\t\tformId: x.FormId,\n\t\t\t\tcompleted: x.Completed,\n\t\t\t\theader: x.Header ?? '',\n\t\t\t\tissueTrackingId: '',\n\t\t\t\topportunity: x.Opportunity,\n\t\t\t\trespondantId: x.RespondantId,\n\t\t\t\tdataProvider: {\n\t\t\t\t\ttype: 'respondant',\n\t\t\t\t\trespondantId: x.RespondantId,\n\t\t\t\t},\n\t\t\t})) satisfies ExoticRespondantStatusApiModel[];\n\n\t\t\tconst afterForms = appointment.Forms.filter((x) => x.Opportunity === FormOpportunity.AfterBooking).map((x) => ({\n\t\t\t\tformId: x.FormId,\n\t\t\t\tcompleted: x.Completed,\n\t\t\t\theader: x.Header ?? '',\n\t\t\t\tissueTrackingId: '',\n\t\t\t\topportunity: x.Opportunity,\n\t\t\t\trespondantId: x.RespondantId,\n\t\t\t\tdataProvider: {\n\t\t\t\t\ttype: 'respondant',\n\t\t\t\t\trespondantId: x.RespondantId,\n\t\t\t\t},\n\t\t\t})) satisfies ExoticRespondantStatusApiModel[];\n\n\t\t\tthis.formManager.addRespondants(beforeForms);\n\t\t\tthis.formManager.addRespondants(afterForms);\n\n\t\t\tthis.state.value = {\n\t\t\t\tvalue: {\n\t\t\t\t\treconnectVariants: null,\n\t\t\t\t\tisMissingPayment: appointment.Payment != null && appointment.Payment.State !== PaymentState.Paid,\n\t\t\t\t\tbeforeForm: this.formManager.getNextUncompletedForm({\n\t\t\t\t\t\topportunity: FormOpportunity.BeforeBooking,\n\t\t\t\t\t}),\n\t\t\t\t\tshouldEvaluate: null,\n\t\t\t\t\tafterForm: null,\n\t\t\t\t},\n\t\t\t\tflowState: 'accessible',\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic async handleForceEnd() {\n\t\tconst prev = this.state.peek();\n\n\t\tconst appointmentInfo = this.appointmentInfo.peek();\n\t\tconst bookingId = appointmentInfo?.bookingId ?? -1;\n\t\tconst licenceHolderId = this.universalConfig.licenceHolderId;\n\n\t\tawait this.officeApiService.setCompleted(licenceHolderId, bookingId);\n\n\t\tthis.state.value = {\n\t\t\tvalue: {\n\t\t\t\t...prev.value!,\n\t\t\t\treconnectVariants: null,\n\t\t\t\tshouldEvaluate: 'not_completed',\n\t\t\t},\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n\n\tpublic handleReconnect() {\n\t\tconst prev = this.state.peek();\n\n\t\tthis.state.value = {\n\t\t\tvalue: {\n\t\t\t\t...prev.value!,\n\t\t\t\treconnectVariants: null,\n\t\t\t\tshouldEvaluate: null,\n\t\t\t\tafterForm: null,\n\t\t\t},\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n\n\tpublic handleForceEvaluation() {\n\t\tconst prev = this.state.peek();\n\n\t\tthis.state.value = {\n\t\t\tvalue: {\n\t\t\t\t...prev.value!,\n\t\t\t\treconnectVariants: null,\n\t\t\t\tshouldEvaluate: 'not_completed',\n\t\t\t},\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n\n\tpublic handleAfterRetinaLeave(leaveType: LeaveType) {\n\t\tlet leaveAction: Nullable<LeaveType> = leaveType;\n\t\t// We don't want to show any addiation flow for these leave types.\n\t\tif (leaveType === 'shouldEnd' || leaveType === 'shouldLeave') {\n\t\t\tleaveAction = null;\n\t\t}\n\n\t\tthis.logger.logVerbose('Leavetype {type}', leaveType);\n\n\t\tthis.state.value = {\n\t\t\tvalue: {\n\t\t\t\treconnectVariants: leaveAction,\n\t\t\t\tisMissingPayment: false,\n\t\t\t\tbeforeForm: null,\n\t\t\t\tshouldEvaluate: 'not_completed',\n\t\t\t\tafterForm: this.formManager.getNextUncompletedForm({\n\t\t\t\t\topportunity: FormOpportunity.AfterBooking,\n\t\t\t\t}),\n\t\t\t},\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n\n\tpublic handleSurveyEnd() {\n\t\tthis.state.value = {\n\t\t\tvalue: {\n\t\t\t\treconnectVariants: null,\n\t\t\t\tisMissingPayment: false,\n\t\t\t\tbeforeForm: null,\n\t\t\t\tshouldEvaluate: 'completed',\n\t\t\t\tafterForm: this.formManager.getNextUncompletedForm({\n\t\t\t\t\topportunity: FormOpportunity.AfterBooking,\n\t\t\t\t}),\n\t\t\t},\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n\n\tpublic async handleCallStarted() {\n\t\t// When the call starts. We need to refetch the already populated data\n\t\t// so we may read \"afterBooking\" again. These may or may not have been added.\n\t\t// Ideally this should be a slimmed down request.\n\n\t\tif (this.savedTicket == null) return;\n\n\t\tthis.logger.logVerbose('Fetches for afterBooking forms');\n\t\tconst result = await this.appointmentApiService.get(this.savedTicket);\n\t\tif (result.err != null) return;\n\n\t\tconst afterForms = result.ok.data.Forms.filter((x) => x.Opportunity === FormOpportunity.AfterBooking).map((x) => ({\n\t\t\tformId: x.FormId,\n\t\t\tcompleted: x.Completed,\n\t\t\theader: x.Header ?? '',\n\t\t\tissueTrackingId: '',\n\t\t\topportunity: x.Opportunity,\n\t\t\trespondantId: x.RespondantId,\n\t\t\tdataProvider: {\n\t\t\t\ttype: 'respondant',\n\t\t\t\trespondantId: x.RespondantId,\n\t\t\t},\n\t\t})) satisfies ExoticRespondantStatusApiModel[];\n\n\t\tthis.formManager.addRespondants(afterForms);\n\t}\n\n\tpublic changeForm(opportunity: FormOpportunity) {\n\t\tconst prevState = this.state.peek().value;\n\n\t\tconst nextForm = this.formManager.getNextUncompletedForm({\n\t\t\topportunity: opportunity,\n\t\t});\n\n\t\tthis.state.value = {\n\t\t\tvalue: {\n\t\t\t\treconnectVariants: null,\n\t\t\t\tisMissingPayment: false,\n\t\t\t\tbeforeForm: opportunity === FormOpportunity.BeforeBooking ? nextForm : prevState?.beforeForm ?? null,\n\t\t\t\tshouldEvaluate: prevState?.shouldEvaluate ?? null,\n\t\t\t\tafterForm: opportunity === FormOpportunity.AfterBooking ? nextForm : prevState?.afterForm ?? null,\n\t\t\t},\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n\n\tpublic getFormPosition(worker: Readonly<FormWorker>): number {\n\t\tconst allForms = this.formManager.filterForms({\n\t\t\topportunity: worker.opportunity,\n\t\t});\n\t\tconst formIndex = allForms.findIndex((x) => x.formId === worker.formId);\n\t\tconst prevForm = formIndex - 1;\n\t\tif (prevForm < 0) return -1;\n\n\t\treturn prevForm;\n\t}\n\n\tpublic changeFormByIndex(opportunity: FormOpportunity, index: number) {\n\t\tconst allForms = this.formManager.filterForms({\n\t\t\topportunity: opportunity,\n\t\t});\n\n\t\tconst nextForm = allForms[index];\n\t\tif (nextForm == null) return;\n\n\t\tconst prevState = this.state.peek().value;\n\n\t\tthis.state.value = {\n\t\t\tvalue: {\n\t\t\t\treconnectVariants: null,\n\t\t\t\tisMissingPayment: false,\n\t\t\t\tbeforeForm: opportunity === FormOpportunity.BeforeBooking ? nextForm : prevState?.beforeForm ?? null,\n\t\t\t\tshouldEvaluate: prevState?.shouldEvaluate ?? null,\n\t\t\t\tafterForm: opportunity === FormOpportunity.AfterBooking ? nextForm : prevState?.afterForm ?? null,\n\t\t\t},\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n\n\tpublic handleBack() {\n\t\tconst route = this.universalConfig.alias + '/visits' + (this.savedTicket != null ? `/video/${this.savedTicket}` : '');\n\n\t\tthis.routerService.navigateByUrl(route);\n\t}\n}\n","import { primitiveColorTokens } from '@cellula/react-theme-patient';\n\nexport function IllustrativeDefault(): JSX.Element {\n\treturn (\n\t\t<svg width='500' height='526' viewBox='0 0 500 526' fill='none' xmlns='http://www.w3.org/2000/svg'>\n\t\t\t<g id='login-ouline' clipPath='url(#clip0_1066_38923)'>\n\t\t\t\t<g id='calendar'>\n\t\t\t\t\t<g id='calendar_page'>\n\t\t\t\t\t\t<rect y='131.531' width='158.559' height='145.946' rx='16' fill={primitiveColorTokens.primary[600]} />\n\t\t\t\t\t\t<g id='calendar_page_days'>\n\t\t\t\t\t\t\t<g id='calendar_page_days_row'>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day'\n\t\t\t\t\t\t\t\t\td='M48.6487 162.162C48.6487 158.182 51.8755 154.955 55.8559 154.955H68.4685C72.4489 154.955 75.6757 158.182 75.6757 162.162V169.369C75.6757 173.35 72.4489 176.576 68.4685 176.576H55.8559C51.8755 176.576 48.6487 173.35 48.6487 169.369V162.162Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day_2'\n\t\t\t\t\t\t\t\t\td='M82.8829 162.162C82.8829 158.182 86.1097 154.955 90.0901 154.955H102.703C106.683 154.955 109.91 158.182 109.91 162.162V169.369C109.91 173.35 106.683 176.576 102.703 176.576H90.0901C86.1097 176.576 82.8829 173.35 82.8829 169.369V162.162Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day_3'\n\t\t\t\t\t\t\t\t\td='M117.117 162.162C117.117 158.182 120.344 154.955 124.324 154.955H136.937C140.917 154.955 144.144 158.182 144.144 162.162V169.369C144.144 173.35 140.917 176.576 136.937 176.576H124.324C120.344 176.576 117.117 173.35 117.117 169.369V162.162Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t<g id='calendar_page_days_row_2'>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day_4'\n\t\t\t\t\t\t\t\t\td='M14.4144 190.991C14.4144 187.01 17.6412 183.784 21.6216 183.784H34.2342C38.2147 183.784 41.4415 187.01 41.4415 190.991V198.198C41.4415 202.179 38.2147 205.405 34.2342 205.405H21.6216C17.6412 205.405 14.4144 202.179 14.4144 198.198V190.991Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day_5'\n\t\t\t\t\t\t\t\t\td='M48.6487 190.991C48.6487 187.01 51.8755 183.784 55.8559 183.784H68.4685C72.4489 183.784 75.6757 187.01 75.6757 190.991V198.198C75.6757 202.179 72.4489 205.405 68.4685 205.405H55.8559C51.8755 205.405 48.6487 202.179 48.6487 198.198V190.991Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day_6'\n\t\t\t\t\t\t\t\t\td='M82.8829 190.991C82.8829 187.01 86.1097 183.784 90.0901 183.784H102.703C106.683 183.784 109.91 187.01 109.91 190.991V198.198C109.91 202.179 106.683 205.405 102.703 205.405H90.0901C86.1097 205.405 82.8829 202.179 82.8829 198.198V190.991Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day-selected'\n\t\t\t\t\t\t\t\t\tfillRule='evenodd'\n\t\t\t\t\t\t\t\t\tclipRule='evenodd'\n\t\t\t\t\t\t\t\t\td='M102.703 185.585H90.0901C87.1048 185.585 84.6847 188.006 84.6847 190.991V198.198C84.6847 201.183 87.1048 203.604 90.0901 203.604H102.703C105.688 203.604 108.108 201.183 108.108 198.198V190.991C108.108 188.006 105.688 185.585 102.703 185.585ZM90.0901 183.784C86.1097 183.784 82.8829 187.01 82.8829 190.991V198.198C82.8829 202.179 86.1097 205.405 90.0901 205.405H102.703C106.683 205.405 109.91 202.179 109.91 198.198V190.991C109.91 187.01 106.683 183.784 102.703 183.784H90.0901Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[800]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day_7'\n\t\t\t\t\t\t\t\t\td='M117.117 190.991C117.117 187.01 120.344 183.784 124.324 183.784H136.937C140.917 183.784 144.144 187.01 144.144 190.991V198.198C144.144 202.179 140.917 205.405 136.937 205.405H124.324C120.344 205.405 117.117 202.179 117.117 198.198V190.991Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t<g id='calendar_page_days_row_3'>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day_8'\n\t\t\t\t\t\t\t\t\td='M14.4144 219.82C14.4144 215.839 17.6412 212.613 21.6216 212.613H34.2342C38.2147 212.613 41.4415 215.839 41.4415 219.82V227.027C41.4415 231.007 38.2147 234.234 34.2342 234.234H21.6216C17.6412 234.234 14.4144 231.007 14.4144 227.027V219.82Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day_9'\n\t\t\t\t\t\t\t\t\td='M48.6487 219.82C48.6487 215.839 51.8755 212.613 55.8559 212.613H68.4685C72.4489 212.613 75.6757 215.839 75.6757 219.82V227.027C75.6757 231.007 72.4489 234.234 68.4685 234.234H55.8559C51.8755 234.234 48.6487 231.007 48.6487 227.027V219.82Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day_10'\n\t\t\t\t\t\t\t\t\td='M82.8829 219.82C82.8829 215.839 86.1097 212.613 90.0901 212.613H102.703C106.683 212.613 109.91 215.839 109.91 219.82V227.027C109.91 231.007 106.683 234.234 102.703 234.234H90.0901C86.1097 234.234 82.8829 231.007 82.8829 227.027V219.82Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day_11'\n\t\t\t\t\t\t\t\t\td='M117.117 219.82C117.117 215.839 120.344 212.613 124.324 212.613H136.937C140.917 212.613 144.144 215.839 144.144 219.82V227.027C144.144 231.007 140.917 234.234 136.937 234.234H124.324C120.344 234.234 117.117 231.007 117.117 227.027V219.82Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t<g id='calendar_page_days_row_4'>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day_12'\n\t\t\t\t\t\t\t\t\td='M14.4144 248.649C14.4144 244.668 17.6412 241.441 21.6216 241.441H34.2342C38.2147 241.441 41.4415 244.668 41.4415 248.649V255.856C41.4415 259.836 38.2147 263.063 34.2342 263.063H21.6216C17.6412 263.063 14.4144 259.836 14.4144 255.856V248.649Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day_13'\n\t\t\t\t\t\t\t\t\td='M48.6487 248.649C48.6487 244.668 51.8755 241.441 55.8559 241.441H68.4685C72.4489 241.441 75.6757 244.668 75.6757 248.649V255.856C75.6757 259.836 72.4489 263.063 68.4685 263.063H55.8559C51.8755 263.063 48.6487 259.836 48.6487 255.856V248.649Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='calendar_page_day_14'\n\t\t\t\t\t\t\t\t\td='M82.8829 248.649C82.8829 244.668 86.1097 241.441 90.0901 241.441H102.703C106.683 241.441 109.91 244.668 109.91 248.649V255.856C109.91 259.836 106.683 263.063 102.703 263.063H90.0901C86.1097 263.063 82.8829 259.836 82.8829 255.856V248.649Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t</g>\n\t\t\t\t\t</g>\n\t\t\t\t\t<g id='calendar_hooks'>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tid='calendar_hook'\n\t\t\t\t\t\t\td='M41.8918 124.324C41.8918 122.334 43.5052 120.721 45.4954 120.721C47.4857 120.721 49.0991 122.334 49.0991 124.324V138.739C49.0991 140.729 47.4857 142.342 45.4954 142.342C43.5052 142.342 41.8918 140.729 41.8918 138.739V124.324Z'\n\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[800]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tid='calendar_hook_2'\n\t\t\t\t\t\t\td='M109.459 124.324C109.459 122.334 111.073 120.721 113.063 120.721C115.053 120.721 116.667 122.334 116.667 124.324V138.739C116.667 140.729 115.053 142.342 113.063 142.342C111.073 142.342 109.459 140.729 109.459 138.739V124.324Z'\n\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[800]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</g>\n\t\t\t\t</g>\n\t\t\t\t<g id='checklist'>\n\t\t\t\t\t<rect x='369.369' y='345.045' width='130.631' height='180.18' rx='16' fill={primitiveColorTokens.primary[600]} />\n\t\t\t\t\t<g id='checklist_row'>\n\t\t\t\t\t\t<g id='check'>\n\t\t\t\t\t\t\t<rect x='383.784' y='359.459' width='32.4324' height='32.4324' rx='8' fill={primitiveColorTokens.primary[700]} />\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='check_icon'\n\t\t\t\t\t\t\t\tfillRule='evenodd'\n\t\t\t\t\t\t\t\tclipRule='evenodd'\n\t\t\t\t\t\t\t\td='M409.646 369.633C409.998 369.985 409.998 370.555 409.646 370.907L397.484 383.069C397.132 383.421 396.562 383.421 396.21 383.069L389.453 376.312C389.101 375.961 389.101 375.39 389.453 375.038C389.805 374.687 390.375 374.687 390.727 375.038L396.847 381.158L408.372 369.633C408.724 369.281 409.294 369.281 409.646 369.633Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</g>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tid='checklist_row_text'\n\t\t\t\t\t\t\td='M427.027 375.675C427.027 371.695 430.254 368.468 434.234 368.468H478.378C482.359 368.468 485.586 371.695 485.586 375.675C485.586 379.656 482.359 382.883 478.378 382.883H434.234C430.254 382.883 427.027 379.656 427.027 375.675Z'\n\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</g>\n\t\t\t\t\t<g id='checklist_row_2'>\n\t\t\t\t\t\t<g id='check_2'>\n\t\t\t\t\t\t\t<rect x='383.784' y='399.099' width='32.4324' height='32.4324' rx='8' fill={primitiveColorTokens.primary[700]} />\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='check_icon_2'\n\t\t\t\t\t\t\t\tfillRule='evenodd'\n\t\t\t\t\t\t\t\tclipRule='evenodd'\n\t\t\t\t\t\t\t\td='M409.646 409.273C409.998 409.624 409.998 410.195 409.646 410.547L397.484 422.709C397.132 423.061 396.562 423.061 396.21 422.709L389.453 415.952C389.101 415.6 389.101 415.03 389.453 414.678C389.805 414.326 390.375 414.326 390.727 414.678L396.847 420.798L408.372 409.273C408.724 408.921 409.294 408.921 409.646 409.273Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</g>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tid='checklist_row_text_2'\n\t\t\t\t\t\t\td='M427.027 415.315C427.027 411.335 430.254 408.108 434.234 408.108H478.378C482.359 408.108 485.586 411.335 485.586 415.315C485.586 419.296 482.359 422.522 478.378 422.522H434.234C430.254 422.522 427.027 419.296 427.027 415.315Z'\n\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</g>\n\t\t\t\t\t<g id='checklist_row_3'>\n\t\t\t\t\t\t<g id='check_3'>\n\t\t\t\t\t\t\t<rect x='383.784' y='438.739' width='32.4324' height='32.4324' rx='8' fill={primitiveColorTokens.primary[700]} />\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='check_icon_3'\n\t\t\t\t\t\t\t\tfillRule='evenodd'\n\t\t\t\t\t\t\t\tclipRule='evenodd'\n\t\t\t\t\t\t\t\td='M409.646 448.912C409.998 449.264 409.998 449.835 409.646 450.186L397.484 462.349C397.132 462.7 396.562 462.7 396.21 462.349L389.453 455.592C389.101 455.24 389.101 454.67 389.453 454.318C389.805 453.966 390.375 453.966 390.727 454.318L396.847 460.437L408.372 448.912C408.724 448.56 409.294 448.56 409.646 448.912Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</g>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tid='checklist_row_text_3'\n\t\t\t\t\t\t\td='M427.027 454.955C427.027 450.974 430.254 447.748 434.234 447.748H478.378C482.359 447.748 485.586 450.974 485.586 454.955C485.586 458.935 482.359 462.162 478.378 462.162H434.234C430.254 462.162 427.027 458.935 427.027 454.955Z'\n\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</g>\n\t\t\t\t\t<g id='checklist_row_4'>\n\t\t\t\t\t\t<g id='check_4'>\n\t\t\t\t\t\t\t<rect x='383.784' y='478.378' width='32.4324' height='32.4324' rx='8' fill={primitiveColorTokens.primary[700]} />\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='check_icon_4'\n\t\t\t\t\t\t\t\tfillRule='evenodd'\n\t\t\t\t\t\t\t\tclipRule='evenodd'\n\t\t\t\t\t\t\t\td='M409.646 488.552C409.998 488.904 409.998 489.474 409.646 489.826L397.484 501.988C397.132 502.34 396.562 502.34 396.21 501.988L389.453 495.231C389.101 494.88 389.101 494.309 389.453 493.957C389.805 493.606 390.375 493.606 390.727 493.957L396.847 500.077L408.372 488.552C408.724 488.2 409.294 488.2 409.646 488.552Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</g>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tid='checklist_row_text_4'\n\t\t\t\t\t\t\td='M427.027 494.594C427.027 490.614 430.254 487.387 434.234 487.387H478.378C482.359 487.387 485.586 490.614 485.586 494.594C485.586 498.575 482.359 501.802 478.378 501.802H434.234C430.254 501.802 427.027 498.575 427.027 494.594Z'\n\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</g>\n\t\t\t\t</g>\n\t\t\t\t<g id='circled-doctor_frame'>\n\t\t\t\t\t<g clipPath='url(#clip1_1066_38923)'>\n\t\t\t\t\t\t<rect x='28.8289' y='312.613' width='197.297' height='197.297' rx='98.6487' fill={primitiveColorTokens.primary[500]} />\n\t\t\t\t\t\t<g id='circled-doctor' clipPath='url(#clip2_1066_38923)'>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='circled-doctor_hair'\n\t\t\t\t\t\t\t\td='M142.829 459.855C142.829 459.855 102.874 463.234 95.8018 462.008C88.7297 460.783 81.081 451.864 81.081 451.864C81.081 451.864 65.3693 455.549 57.3783 440.792C57.3783 440.792 73.9819 439.261 67.5225 427.576C61.063 415.891 52.4594 407.9 59.2252 394.99C65.9909 382.081 74.9008 385.468 73.3603 374.09C73.3603 374.09 69.9819 366.099 75.2072 359.027C80.4324 351.954 85.7927 354.108 88.5585 349.189C91.3243 344.27 100.721 331.675 127.153 333.513C153.586 335.351 152.378 347.027 160.351 349.189C168.324 351.351 181.568 359.999 182.793 372.558C184.018 385.117 180.027 392.531 184.595 395.612C189.162 398.693 194.432 404.828 191.973 413.126C189.513 421.423 192.279 431.882 202.117 430.342C202.117 430.342 199.045 442.054 180.595 440.792C180.64 440.792 174.495 458.008 142.829 459.855Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[800]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='circled-doctor_robe'\n\t\t\t\t\t\t\t\td='M195.601 510.811C190.492 500.264 184.363 490.322 177.038 481.349C174.406 477.426 171.169 473.847 167.433 470.702C157.09 462 142.982 456.648 127.469 456.648C106.36 456.648 87.8607 466.542 77.9218 481.317C70.5879 490.292 64.4472 500.246 59.328 510.811H195.601Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[700]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='circled-doctor_head'\n\t\t\t\t\t\t\t\td='M169.122 417.808C163.178 439.769 146.774 455.55 127.468 455.55C103.148 455.55 83.4324 430.506 83.4324 399.613C83.4324 368.72 103.148 343.676 127.468 343.676C151.789 343.676 171.504 368.72 171.504 399.613C171.504 399.974 171.502 400.334 171.496 400.694C172.352 400.439 173.209 400.429 174.012 400.707C176.992 401.742 178.095 406.364 176.475 411.032C175.028 415.201 171.898 417.996 169.122 417.808Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[300]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='circled-doctor_eye'\n\t\t\t\t\t\t\t\td='M108.414 408.252C109.564 408.252 110.496 407.321 110.496 406.171C110.496 405.022 109.564 404.09 108.414 404.09C107.265 404.09 106.333 405.022 106.333 406.171C106.333 407.321 107.265 408.252 108.414 408.252Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[900]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='circled-doctor_eye_2'\n\t\t\t\t\t\t\t\td='M146.514 408.252C147.663 408.252 148.595 407.321 148.595 406.171C148.595 405.022 147.663 404.09 146.514 404.09C145.364 404.09 144.432 405.022 144.432 406.171C144.432 407.321 145.364 408.252 146.514 408.252Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[900]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='circled-doctor_eyebrow (Stroke)'\n\t\t\t\t\t\t\t\tfillRule='evenodd'\n\t\t\t\t\t\t\t\tclipRule='evenodd'\n\t\t\t\t\t\t\t\td='M157.776 396.061C157.777 396.061 157.777 396.061 157.216 396.766L157.777 396.061C158.167 396.371 158.231 396.938 157.921 397.327C157.612 397.716 157.046 397.781 156.657 397.472C156.656 397.472 156.656 397.471 156.655 397.471M156.655 397.471L156.649 397.466C156.641 397.46 156.626 397.449 156.606 397.434C156.565 397.404 156.501 397.357 156.413 397.297C156.237 397.178 155.968 397.005 155.612 396.806C154.9 396.408 153.842 395.905 152.481 395.504C149.768 394.706 145.831 394.308 140.989 395.987C140.519 396.15 140.006 395.901 139.843 395.431C139.68 394.96 139.928 394.447 140.399 394.284C145.638 392.468 149.962 392.885 152.99 393.776C154.499 394.22 155.681 394.78 156.492 395.234C156.898 395.46 157.211 395.661 157.427 395.808C157.535 395.881 157.618 395.942 157.677 395.985C157.706 396.007 157.729 396.024 157.746 396.037L157.766 396.053L157.773 396.058L157.775 396.06L157.776 396.061'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[600]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='circled-doctor_eyebrow (Stroke)_2'\n\t\t\t\t\t\t\t\tfillRule='evenodd'\n\t\t\t\t\t\t\t\tclipRule='evenodd'\n\t\t\t\t\t\t\t\td='M97.7117 396.766L97.1507 396.061C96.7614 396.371 96.697 396.938 97.0068 397.327C97.3164 397.716 97.8827 397.781 98.272 397.472C98.2723 397.471 98.2725 397.471 98.2727 397.471L97.7117 396.766ZM98.2713 397.472L98.2791 397.466C98.2874 397.46 98.3017 397.449 98.322 397.434C98.3627 397.404 98.4273 397.357 98.5153 397.297C98.6911 397.178 98.9597 397.005 99.3156 396.806C100.028 396.408 101.086 395.905 102.447 395.504C105.16 394.706 109.097 394.308 113.939 395.987C114.409 396.15 114.922 395.901 115.085 395.431C115.248 394.96 114.999 394.447 114.529 394.284C109.29 392.468 104.966 392.885 101.938 393.776C100.429 394.22 99.2466 394.78 98.4359 395.234C98.0303 395.46 97.7169 395.661 97.5011 395.808C97.3932 395.881 97.3096 395.942 97.251 395.985C97.2217 396.007 97.1987 396.024 97.1819 396.037L97.1616 396.053L97.155 396.058L97.1526 396.06L97.1516 396.061C97.1511 396.061 97.1507 396.061 97.7117 396.766M98.2709 397.472C98.2706 397.473 98.2708 397.473 98.2713 397.472L98.2709 397.472Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[600]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='circled-doctor_mouth (Stroke)'\n\t\t\t\t\t\t\t\tfillRule='evenodd'\n\t\t\t\t\t\t\t\tclipRule='evenodd'\n\t\t\t\t\t\t\t\td='M119.825 435.261C120.084 434.836 120.638 434.701 121.063 434.96C123.551 436.473 126.325 437.456 129.211 437.846C129.704 437.913 130.05 438.366 129.983 438.859C129.916 439.352 129.463 439.698 128.97 439.631C125.837 439.208 122.827 438.142 120.127 436.499C119.701 436.241 119.566 435.687 119.825 435.261Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[600]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='circled-doctor_nose (Stroke)'\n\t\t\t\t\t\t\t\tfillRule='evenodd'\n\t\t\t\t\t\t\t\tclipRule='evenodd'\n\t\t\t\t\t\t\t\td='M130.143 405.982C130.61 405.812 131.127 406.053 131.297 406.521L136.081 419.683C136.176 419.945 136.145 420.235 135.997 420.471C135.849 420.706 135.6 420.86 135.323 420.887L127.963 421.617C127.468 421.666 127.027 421.305 126.977 420.809C126.928 420.314 127.29 419.873 127.785 419.824L133.992 419.209L129.604 407.136C129.434 406.669 129.675 406.152 130.143 405.982Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[600]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='circled-doctor_fringe'\n\t\t\t\t\t\t\t\td='M176.027 424.198C176.027 424.198 169.883 416.514 168.964 408.829C168.045 401.144 167.73 399.91 163.117 393.766C158.505 387.622 158.198 384.234 159.126 377.162C160.054 370.09 149.288 359.334 149.288 359.334C149.288 359.334 138.838 374.09 116.397 381.775C93.9551 389.46 84.5317 401.307 86.0632 425.018L68.7479 402.37C68.7479 402.37 79.5587 348.316 107.793 339.045C136.027 329.775 154.514 344.279 162.162 361.18C169.811 378.081 179.108 402.703 180.64 411.901C182.171 421.099 176.027 424.198 176.027 424.198Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[800]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\tid='circled-doctor_neck'\n\t\t\t\t\t\t\t\td='M139.477 457.747C140.236 457.887 140.993 458.04 141.748 458.207C141.794 458.402 141.818 458.601 141.82 458.802C141.82 460.232 140.597 461.543 138.56 462.566L126.973 487.135L116.275 462.519C114.293 461.503 113.108 460.21 113.108 458.802C113.11 458.601 113.134 458.402 113.18 458.207C113.935 458.04 114.692 457.887 115.45 457.747V449.027H139.477V457.747Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[300]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<g id='circled-doctor_robe_lines'>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\td='M142.311 458.426C142.847 458.742 143.025 459.433 142.709 459.968C141.797 461.514 140.482 462.778 138.909 463.629L128.649 487.245L128.633 511.712H126.38L126.396 487.493L116.019 463.628C114.449 462.776 113.138 461.512 112.228 459.968C111.912 459.432 112.091 458.742 112.627 458.426C113.163 458.11 113.853 458.289 114.169 458.825C114.926 460.11 116.045 461.144 117.386 461.799C117.627 461.916 117.818 462.116 117.925 462.362L127.468 484.31L137.003 462.362C137.11 462.115 137.302 461.915 137.544 461.798C138.888 461.145 140.01 460.111 140.769 458.824C141.085 458.288 141.775 458.11 142.311 458.426Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[600]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\td='M109.671 511.712L108.335 506.709L116.781 493.769C116.996 493.44 117.023 493.021 116.853 492.666C116.682 492.311 116.339 492.071 115.947 492.033L107.124 491.174L97.8161 465.331C97.6053 464.746 96.9601 464.442 96.375 464.653C95.7898 464.864 95.4863 465.509 95.6971 466.094L105.247 492.608C105.394 493.017 105.764 493.305 106.197 493.347L113.879 494.095L106.174 505.899C105.999 506.166 105.946 506.496 106.029 506.805L107.339 511.712H109.671Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[600]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\td='M147.597 511.712L148.908 506.805C148.99 506.496 148.938 506.166 148.763 505.899L141.058 494.095L148.74 493.347C149.173 493.305 149.543 493.017 149.69 492.608L159.24 466.094C159.451 465.509 159.147 464.864 158.562 464.653C157.977 464.442 157.332 464.746 157.121 465.331L147.813 491.174L138.99 492.033C138.598 492.071 138.255 492.311 138.084 492.666C137.914 493.021 137.941 493.44 138.156 493.769L146.602 506.709L145.266 511.712H147.597Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[600]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t</g>\n\t\t\t\t\t</g>\n\t\t\t\t</g>\n\t\t\t\t<g id='computer'>\n\t\t\t\t\t<g id='computer_screen'>\n\t\t\t\t\t\t<g clipPath='url(#clip3_1066_38923)'>\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\td='M134.234 59.2432C134.234 50.4066 141.398 43.2432 150.234 43.2432H438.955C447.792 43.2432 454.955 50.4066 454.955 59.2432V240.54H134.234V59.2432Z'\n\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[400]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<g id='computer_doctor' clipPath='url(#clip4_1066_38923)'>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='computer_doctor_robe'\n\t\t\t\t\t\t\t\t\td='M358.271 234.234C354.115 226.859 349.395 219.858 344.042 213.373C341.485 209.68 338.387 206.301 334.838 203.315C324.496 194.613 310.387 189.261 294.874 189.261C273.878 189.261 255.464 199.049 245.487 213.693C240.243 220.089 235.609 226.98 231.521 234.234H358.271Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[100]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='computer_doctor_face'\n\t\t\t\t\t\t\t\t\td='M338.901 132.597C338.907 132.231 338.91 131.864 338.91 131.496C338.91 100.602 319.194 75.5586 294.874 75.5586C270.553 75.5586 250.838 100.602 250.838 131.496C250.838 131.866 250.84 132.236 250.846 132.605C249.987 132.347 249.126 132.336 248.319 132.616C245.339 133.65 244.237 138.272 245.857 142.94C247.307 147.118 250.446 149.916 253.226 149.715C257.891 166.925 268.981 180.335 282.856 185.324V190.362C282.1 190.501 281.346 190.654 280.595 190.82C280.544 191.014 280.519 191.214 280.523 191.414C280.523 192.816 281.703 194.105 283.676 195.121L294.378 219.739L305.988 195.148C308.017 194.122 309.234 192.818 309.234 191.414C309.234 191.214 309.207 191.014 309.153 190.82C308.401 190.654 307.647 190.501 306.892 190.361V185.324C320.768 180.335 331.859 166.921 336.523 149.707C339.302 149.906 342.44 147.108 343.889 142.932C345.509 138.264 344.407 133.642 341.427 132.608C340.621 132.328 339.76 132.339 338.901 132.597Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[600]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='computer_doctor_hair'\n\t\t\t\t\t\t\t\t\td='M263.063 110.342C261.681 113.768 261.27 117.508 261.874 121.153C261.874 121.153 269.775 111.36 278.928 108.54C278.883 111.702 272.423 121.36 272.423 121.36C272.423 121.36 291.748 121.153 308.459 104.072C308.459 104.072 311.838 115.54 323.919 113.423C323.919 113.423 317.405 105.693 318.423 99.594C323.982 101.981 336.261 120.216 338.955 132.63C338.955 132.63 343.459 121.351 342.63 111.189C342.045 103.873 335.306 74.3688 311.919 68.2697C288.531 62.1706 263.369 74.7742 255 88.2877C247.703 99.9995 246.982 110.99 247.991 118.72C248.614 123.421 249.568 128.072 250.847 132.639C250.847 132.639 255.126 112.675 263.063 110.342Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[900]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='computer_doctor_eye'\n\t\t\t\t\t\t\t\t\td='M275.82 140.144C276.969 140.144 277.901 139.213 277.901 138.063C277.901 136.914 276.969 135.982 275.82 135.982C274.671 135.982 273.739 136.914 273.739 138.063C273.739 139.213 274.671 140.144 275.82 140.144Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[1000]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='computer_doctor_eye_2'\n\t\t\t\t\t\t\t\t\td='M313.928 140.144C315.077 140.144 316.009 139.213 316.009 138.063C316.009 136.914 315.077 135.982 313.928 135.982C312.778 135.982 311.847 136.914 311.847 138.063C311.847 139.213 312.778 140.144 313.928 140.144Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[1000]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='computer_doctor_nose'\n\t\t\t\t\t\t\t\t\tfillRule='evenodd'\n\t\t\t\t\t\t\t\t\tclipRule='evenodd'\n\t\t\t\t\t\t\t\t\td='M297.548 137.864C298.016 137.695 298.532 137.936 298.702 138.403L303.486 151.566C303.581 151.827 303.55 152.118 303.402 152.353C303.254 152.589 303.005 152.742 302.728 152.77L295.368 153.5C294.873 153.549 294.432 153.187 294.383 152.692C294.333 152.197 294.695 151.756 295.19 151.707L301.397 151.091L297.009 139.019C296.839 138.551 297.08 138.034 297.548 137.864Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[900]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='computer_doctor_eyebrow'\n\t\t\t\t\t\t\t\t\tfillRule='evenodd'\n\t\t\t\t\t\t\t\t\tclipRule='evenodd'\n\t\t\t\t\t\t\t\t\td='M325.191 127.943C325.191 127.943 325.192 127.944 324.631 128.649L325.192 127.944C325.581 128.253 325.645 128.82 325.336 129.21C325.026 129.598 324.461 129.663 324.071 129.355C324.071 129.355 324.071 129.354 324.07 129.354L324.07 129.354L324.063 129.349C324.055 129.342 324.041 129.331 324.02 129.316C323.98 129.286 323.915 129.24 323.827 129.18C323.651 129.06 323.383 128.888 323.027 128.689C322.315 128.29 321.257 127.788 319.896 127.388C317.183 126.591 313.246 126.195 308.404 127.878C307.934 128.041 307.421 127.793 307.257 127.323C307.094 126.853 307.342 126.339 307.812 126.176C313.051 124.355 317.376 124.77 320.404 125.659C321.913 126.103 323.096 126.663 323.906 127.116C324.312 127.343 324.625 127.544 324.841 127.69C324.949 127.764 325.033 127.824 325.091 127.867C325.121 127.889 325.144 127.907 325.16 127.919L325.181 127.935L325.187 127.94L325.19 127.942L325.191 127.943Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[900]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='computer_doctor_eyebrow_2'\n\t\t\t\t\t\t\t\t\tfillRule='evenodd'\n\t\t\t\t\t\t\t\t\tclipRule='evenodd'\n\t\t\t\t\t\t\t\t\td='M265.126 128.649L264.565 127.944C264.176 128.254 264.112 128.821 264.422 129.21C264.732 129.599 265.298 129.663 265.687 129.354L265.686 129.354L265.686 129.354C265.686 129.355 265.686 129.355 265.686 129.355M265.126 128.649C264.565 127.944 264.565 127.944 264.566 127.943L264.567 127.943L264.569 127.941L264.576 127.936L264.596 127.92C264.613 127.907 264.636 127.889 264.665 127.868C264.723 127.824 264.807 127.764 264.915 127.691C265.13 127.544 265.443 127.343 265.849 127.116C266.659 126.663 267.84 126.103 269.348 125.659C272.374 124.769 276.696 124.355 281.935 126.176C282.405 126.339 282.654 126.853 282.491 127.323C282.327 127.793 281.814 128.041 281.344 127.878C276.502 126.195 272.567 126.591 269.857 127.388C268.497 127.788 267.44 128.29 266.729 128.688C266.373 128.887 266.105 129.06 265.93 129.18C265.842 129.239 265.777 129.286 265.737 129.316C265.716 129.331 265.702 129.342 265.694 129.348L265.686 129.354'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[900]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<g id='computer_doctor_robe_lines'>\n\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\td='M281.572 191.435C281.255 190.9 280.565 190.723 280.03 191.04C279.494 191.357 279.318 192.048 279.635 192.583C280.548 194.125 281.862 195.388 283.433 196.24L293.727 219.934C293.743 220.029 293.771 220.122 293.81 220.209L293.801 234.234H296.054L296.063 219.753L306.277 196.244C307.861 195.397 309.188 194.133 310.111 192.586C310.43 192.052 310.255 191.361 309.721 191.042C309.187 190.723 308.496 190.898 308.177 191.432C307.407 192.723 306.273 193.758 304.918 194.408C304.674 194.525 304.48 194.726 304.372 194.975L294.856 216.88L285.339 194.975C285.232 194.729 285.041 194.529 284.8 194.411C283.456 193.756 282.334 192.721 281.572 191.435Z'\n\t\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[500]}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\td='M310.69 234.234H313.379L308.463 226.698L316.145 225.95C316.578 225.907 316.948 225.62 317.095 225.21L326.645 198.697C326.856 198.112 326.552 197.467 325.967 197.256C325.382 197.045 324.737 197.349 324.526 197.934L315.218 223.777L306.395 224.636C306.003 224.674 305.66 224.914 305.489 225.269C305.319 225.624 305.346 226.042 305.561 226.372L310.69 234.234Z'\n\t\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[500]}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\td='M276.369 234.234H279.058L284.186 226.372C284.401 226.042 284.428 225.624 284.258 225.269C284.087 224.914 283.744 224.674 283.352 224.636L274.529 223.777L265.221 197.934C265.011 197.349 264.365 197.045 263.78 197.256C263.195 197.467 262.892 198.112 263.102 198.697L272.652 225.21C272.799 225.62 273.169 225.907 273.602 225.95L281.285 226.698L276.369 234.234Z'\n\t\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[500]}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\tid='computer_doctor_mouth'\n\t\t\t\t\t\t\t\t\tfillRule='evenodd'\n\t\t\t\t\t\t\t\t\tclipRule='evenodd'\n\t\t\t\t\t\t\t\t\td='M287.482 169.417C287.705 168.972 288.246 168.791 288.691 169.014C290.328 169.833 292.655 170.27 295.045 170.27C297.435 170.27 299.762 169.833 301.399 169.014C301.844 168.791 302.385 168.972 302.608 169.417C302.83 169.862 302.65 170.403 302.205 170.626C300.238 171.609 297.61 172.072 295.045 172.072C292.48 172.072 289.852 171.609 287.885 170.626C287.44 170.403 287.26 169.862 287.482 169.417Z'\n\t\t\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[900]}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</g>\n\t\t\t\t\t\t</g>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td='M138.234 59.2432C138.234 52.6157 143.607 47.2432 150.234 47.2432H438.955C445.582 47.2432 450.955 52.6157 450.955 59.2432V236.54H138.234V59.2432Z'\n\t\t\t\t\t\t\tstroke={primitiveColorTokens.primary[700]}\n\t\t\t\t\t\t\tstrokeWidth='8'\n\t\t\t\t\t\t/>\n\t\t\t\t\t</g>\n\t\t\t\t\t<path\n\t\t\t\t\t\tid='computer_bottom'\n\t\t\t\t\t\td='M121.622 247.748C121.622 243.767 124.848 240.541 128.829 240.541H459.459C463.44 240.541 466.667 243.767 466.667 247.748V251.351C466.667 255.332 463.44 258.559 459.459 258.559H128.829C124.848 258.559 121.622 255.332 121.622 251.351V247.748Z'\n\t\t\t\t\t\tfill={primitiveColorTokens.primary[800]}\n\t\t\t\t\t/>\n\t\t\t\t\t<path\n\t\t\t\t\t\tid='computer_line'\n\t\t\t\t\t\td='M238.739 249.549C238.739 251.042 239.949 252.252 241.441 252.252H346.847C348.34 252.252 349.55 251.042 349.55 249.549C349.55 248.057 348.34 246.847 346.847 246.847H241.441C239.949 246.847 238.739 248.057 238.739 249.549Z'\n\t\t\t\t\t\tfill={primitiveColorTokens.primary[600]}\n\t\t\t\t\t/>\n\t\t\t\t</g>\n\t\t\t\t<g id='speach-bubble'>\n\t\t\t\t\t<path\n\t\t\t\t\t\td='M44.1442 16C44.1442 7.16346 51.3076 0 60.1442 0H220.937C229.774 0 236.937 7.16344 236.937 16V82.8829H60.1442C51.3076 82.8829 44.1442 75.7194 44.1442 66.8829V16Z'\n\t\t\t\t\t\tfill={primitiveColorTokens.primary[100]}\n\t\t\t\t\t/>\n\t\t\t\t\t<g id='speach-bubble_text'>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tid='speach-bubble_text_row'\n\t\t\t\t\t\t\td='M65.7657 28.8288C65.7657 24.8484 68.9925 21.6216 72.973 21.6216H208.108C212.089 21.6216 215.315 24.8484 215.315 28.8288C215.315 32.8092 212.089 36.036 208.108 36.036H72.973C68.9925 36.036 65.7657 32.8092 65.7657 28.8288Z'\n\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[500]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tid='speach-bubble_text_row_2'\n\t\t\t\t\t\t\td='M65.7657 54.0541C65.7657 50.0737 68.9925 46.8469 72.973 46.8469H192.86C196.84 46.8469 200.067 50.0737 200.067 54.0541C200.067 58.0346 196.84 61.2613 192.86 61.2613H72.9729C68.9925 61.2613 65.7657 58.0346 65.7657 54.0541Z'\n\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[500]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</g>\n\t\t\t\t</g>\n\t\t\t\t<g id='speach-bubble_2'>\n\t\t\t\t\t<path\n\t\t\t\t\t\td='M195.495 299.784C195.495 290.947 202.659 283.784 211.495 283.784H436.252C445.089 283.784 452.252 290.947 452.252 299.784V375.892C452.252 384.728 445.089 391.892 436.252 391.892H195.495V299.784Z'\n\t\t\t\t\t\tfill={primitiveColorTokens.primary[100]}\n\t\t\t\t\t/>\n\t\t\t\t\t<g id='speach-bubble_text_2'>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tid='speach-bubble_text_row_3'\n\t\t\t\t\t\t\td='M217.117 312.612C217.117 308.632 220.344 305.405 224.324 305.405H423.423C427.404 305.405 430.631 308.632 430.631 312.612C430.631 316.593 427.404 319.82 423.423 319.82H224.324C220.344 319.82 217.117 316.593 217.117 312.612Z'\n\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[500]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tid='speach-bubble_text_row_4'\n\t\t\t\t\t\t\td='M217.117 337.838C217.117 333.857 220.344 330.631 224.324 330.631H379.078C383.059 330.631 386.286 333.857 386.286 337.838C386.286 341.818 383.059 345.045 379.078 345.045H224.324C220.344 345.045 217.117 341.818 217.117 337.838Z'\n\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[500]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\tid='speach-bubble_text_row_5'\n\t\t\t\t\t\t\td='M217.117 363.063C217.117 359.082 220.344 355.856 224.324 355.856H397.966C401.946 355.856 405.173 359.082 405.173 363.063C405.173 367.043 401.946 370.27 397.966 370.27H224.324C220.344 370.27 217.117 367.043 217.117 363.063Z'\n\t\t\t\t\t\t\tfill={primitiveColorTokens.primary[500]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</g>\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t\t<defs>\n\t\t\t\t<clipPath id='clip0_1066_38923'>\n\t\t\t\t\t<rect width='500' height='525.225' fill='white' />\n\t\t\t\t</clipPath>\n\t\t\t\t<clipPath id='clip1_1066_38923'>\n\t\t\t\t\t<rect x='28.8289' y='312.613' width='197.297' height='197.297' rx='98.6487' fill='white' />\n\t\t\t\t</clipPath>\n\t\t\t\t<clipPath id='clip2_1066_38923'>\n\t\t\t\t\t<rect width='145.405' height='181' fill='white' transform='translate(56.7568 333.333)' />\n\t\t\t\t</clipPath>\n\t\t\t\t<clipPath id='clip3_1066_38923'>\n\t\t\t\t\t<path\n\t\t\t\t\t\td='M134.234 59.2432C134.234 50.4066 141.398 43.2432 150.234 43.2432H438.955C447.792 43.2432 454.955 50.4066 454.955 59.2432V240.54H134.234V59.2432Z'\n\t\t\t\t\t\tfill='white'\n\t\t\t\t\t/>\n\t\t\t\t</clipPath>\n\t\t\t\t<clipPath id='clip4_1066_38923'>\n\t\t\t\t\t<rect width='139.64' height='179.279' fill='white' transform='translate(225.225 66.6665)' />\n\t\t\t\t</clipPath>\n\t\t\t</defs>\n\t\t</svg>\n\t);\n}\n","import { withTranslation } from '@application/i18n/with_translation';\nimport { Flex, Text } from '@cellula/react';\nimport { Title } from '@component/title.component';\nimport { Link } from 'react-router-dom';\n\nexport function ViewNotFound() {\n\treturn (\n\t\t<Flex>\n\t\t\t<Title title={withTranslation('View.NotFound.Title')} />\n\n\t\t\t<Flex>\n\t\t\t\t<Text variant='labelSemiBold'>{withTranslation('View.NotFound.Causes')}</Text>\n\t\t\t\t<ul>\n\t\t\t\t\t<li>{withTranslation('View.NotFound.Causes.1')}</li>\n\t\t\t\t\t<li>{withTranslation('View.NotFound.Causes.2')}</li>\n\t\t\t\t</ul>\n\n\t\t\t\t<Text variant='labelSemiBold'>{withTranslation('View.NotFound.Actions')}</Text>\n\t\t\t\t<ul>\n\t\t\t\t\t<li>{withTranslation('View.NotFound.Actions.1')}</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t{withTranslation('View.NotFound.Actions.2.1')} <Link to='/'>{withTranslation('View.NotFound.Actions.2.2')}</Link>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</Flex>\n\t\t</Flex>\n\t);\n}\n","import { EventEmitter, Injectable } from '@angular/core';\nimport { v4 } from '../Common/Helpers/v4';\n\n@Injectable()\nexport class PageLoadHandler {\n\tpublic event = new EventEmitter();\n\tprivate reqeustQueue: Array<string> = [];\n\n\tpublic pending(emitEvent: boolean | number) {\n\t\tconst requestID = v4();\n\n\t\tif (emitEvent) {\n\t\t\tthis.reqeustQueue.push(requestID);\n\n\t\t\tconst TimeOut = window.setTimeout(() => this.event.emit('show'), typeof emitEvent === 'boolean' ? 300 : emitEvent);\n\n\t\t\treturn {\n\t\t\t\tid: requestID,\n\t\t\t\ttimeOut: TimeOut,\n\t\t\t};\n\t\t}\n\n\t\treturn false;\n\t}\n\n\tpublic resolve(request: { id: string; timeOut: number }) {\n\t\tconst index = this.reqeustQueue.indexOf(request.id);\n\t\tthis.reqeustQueue.splice(index, 1);\n\t\tclearTimeout(request.timeOut);\n\n\t\tif (this.reqeustQueue.length === 0) {\n\t\t\tthis.event.emit('hide');\n\t\t}\n\t}\n}\n","import { TranslateService } from '../Common/Services/translate.service';\nimport { Injectable } from '@angular/core';\nimport { SpaContext } from './spacontext';\nimport { TimeslotServiceV2, LocalityType } from '../Services/api/v2/Units/timeslot.service';\nimport { DropInUnitServiceV2 } from '../Services/api/v2/Units/dropIn.service';\nimport { ScheduledDataService } from '../Services/scheduled-data';\nimport { CaseApiModel } from '../Services/api/v2/Models/CaseApiModel';\nimport { AuthContextService } from '../Services/authContext.service';\n\n@Injectable()\nexport class Doors {\n\tconstructor(\n\t\tpublic _spaContext: SpaContext,\n\t\tprivate _dropInService: DropInUnitServiceV2,\n\t\tprivate _timeslotService: TimeslotServiceV2,\n\t\tprivate scheduledDataService: ScheduledDataService,\n\t\tprivate _translateService: TranslateService,\n\t\tprivate authContextService: AuthContextService,\n\t) {}\n\n\tpublic buildDoorsArray(doorFunctionsArray: (() => any)[]): any[] {\n\t\tlet doors: any[] = [];\n\t\tfor (let i in doorFunctionsArray) {\n\t\t\tdoors.push(doorFunctionsArray[i]());\n\t\t}\n\t\treturn doors;\n\t}\n\n\tgetDropin = () => {\n\t\treturn {\n\t\t\ticon: 'Queue',\n\t\t\tlink: '/dropin',\n\t\t\ttextTitle: this._translateService.get('LicenceHolder.Common.Door.Title.DropIn'),\n\t\t\ttextObject: this.getDropinText({ text: null }),\n\t\t};\n\t};\n\n\tgetBooking = () => {\n\t\treturn {\n\t\t\ticon: 'Calendar2',\n\t\t\tlink: '/booking',\n\t\t\ttextTitle: this._translateService.get('LicenceHolder.Common.Door.Title.Booking'),\n\t\t\ttextObject: this.getBookingText({ text: null }),\n\t\t};\n\t};\n\tgetVisit = () => {\n\t\treturn {\n\t\t\ticon: 'HandHeart',\n\t\t\tlink: '/visits',\n\t\t\ttextTitle: this._translateService.get('LicenceHolder.Common.Door.Title.Visits'),\n\t\t\ttextObject: this.getVisitsText({ text: null }),\n\t\t};\n\t};\n\tgetProfile = () => {\n\t\treturn {\n\t\t\ticon: 'Avatar',\n\t\t\tlink: '/profile',\n\t\t\ttextTitle: this._translateService.get('LicenceHolder.Common.Door.Title.Profile'),\n\t\t\ttextObject: this.getProfileText({ text: null }),\n\t\t};\n\t};\n\tgetMessage = () => {\n\t\treturn {\n\t\t\ticon: 'TextBubble',\n\t\t\tlink: '/message',\n\t\t\ttextTitle: this._translateService.get('LicenceHolder.Common.Door.Title.Message'),\n\t\t\ttextObject: this.getMessageText({ text: '' }),\n\t\t};\n\t};\n\n\tprivate getDropinText(textObj: any) {\n\t\tthis._dropInService.get().subscribe((response) => {\n\t\t\tlet roomsOpen = 0;\n\t\t\tlet lowestTime = Number.MAX_SAFE_INTEGER;\n\t\t\tlet chosenIndex = 0;\n\t\t\tfor (let i = 0; i < response.data.length; i++) {\n\t\t\t\tlet time = Math.max(response.data[i].CurrentWaitTime, response.data[i].MinimumShownWaitTime);\n\t\t\t\tif (time < lowestTime) {\n\t\t\t\t\tlowestTime = time;\n\t\t\t\t\tchosenIndex = i;\n\t\t\t\t}\n\n\t\t\t\tif (response.data[i].IsOpen) {\n\t\t\t\t\troomsOpen++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (response.data.length === 0) {\n\t\t\t\ttextObj.text = this._translateService.get('LicenceHolder.Component.Menu.Unit.DropIn.Sub.NoOpenRooms');\n\t\t\t} else {\n\t\t\t\tlet timeText = this.getWaitTimeText(\n\t\t\t\t\tresponse.data[chosenIndex].CurrentWaitTime,\n\t\t\t\t\tresponse.data[chosenIndex].MinimumShownWaitTime,\n\t\t\t\t);\n\n\t\t\t\tif (roomsOpen === 0) {\n\t\t\t\t\ttextObj.text = this._translateService.get('LicenceHolder.Common.Door.Phrase.DropInNone');\n\t\t\t\t} else if (roomsOpen === 1) {\n\t\t\t\t\ttextObj.text =\n\t\t\t\t\t\troomsOpen.toString() +\n\t\t\t\t\t\t' ' +\n\t\t\t\t\t\tthis._translateService.get('LicenceHolder.Common.Door.Phrase.DropInSingular') +\n\t\t\t\t\t\t' ' +\n\t\t\t\t\t\ttimeText;\n\t\t\t\t} else {\n\t\t\t\t\ttextObj.text =\n\t\t\t\t\t\troomsOpen.toString() + ' ' + this._translateService.get('LicenceHolder.Common.Door.Phrase.DropIn') + ' ' + timeText;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn textObj;\n\t}\n\n\tprivate getWaitTimeText(seconds: number, minimumShownWaitTime: number) {\n\t\tlet minutes = Math.floor(seconds / 60);\n\t\tvar text = minutes + ' ' + this._translateService.get('Common.Abbreviation.MinutesShort');\n\t\tif (seconds < minimumShownWaitTime + 1)\n\t\t\ttext = Math.floor(minimumShownWaitTime / 60) + ' ' + this._translateService.get('Common.Abbreviation.MinutesShort');\n\t\telse if (minutes > 59)\n\t\t\ttext =\n\t\t\t\tMath.floor(minutes / 60) +\n\t\t\t\tthis._translateService.get('Common.Abbreviation.Hours') +\n\t\t\t\t' ' +\n\t\t\t\t(minutes % 60) +\n\t\t\t\tthis._translateService.get('Common.Abbreviation.Minutes');\n\n\t\treturn text;\n\t}\n\n\tprivate getBookingText(textObj: any) {\n\t\tthis._timeslotService\n\t\t\t.get({\n\t\t\t\tspecialityId: undefined,\n\t\t\t\tconditionId: undefined,\n\t\t\t\tresourceId: undefined,\n\t\t\t\tfilterableUnitId: undefined,\n\t\t\t\tdate: undefined,\n\t\t\t\tfromDate: new Date().format('yyyy-MM-dd'),\n\t\t\t\ttoDate: new Date().format('yyyy-MM-dd'),\n\t\t\t\tfromTime: new Date(new Date().setHours(0, 0)).format('HH:mm:ss'),\n\t\t\t\ttoTime: new Date(new Date().setHours(23, 59)).format('HH:mm:ss'),\n\t\t\t\tlocalityType: LocalityType.All,\n\t\t\t})\n\t\t\t.subscribe((response) => {\n\t\t\t\tlet bookingsAvailable = (textObj.text = response.data.length);\n\t\t\t\tif (bookingsAvailable === 0) {\n\t\t\t\t\ttextObj.text = this._translateService.get('LicenceHolder.Common.Door.Phrase.NoTimeslots');\n\t\t\t\t} else if (bookingsAvailable === 1) {\n\t\t\t\t\ttextObj.text =\n\t\t\t\t\t\tresponse.data.length.toString() + ' ' + this._translateService.get('LicenceHolder.Common.Door.Phrase.BookingSingular');\n\t\t\t\t} else {\n\t\t\t\t\ttextObj.text =\n\t\t\t\t\t\tresponse.data.length.toString() + ' ' + this._translateService.get('LicenceHolder.Common.Door.Phrase.Booking');\n\t\t\t\t}\n\t\t\t});\n\t\treturn textObj;\n\t}\n\n\tprivate getVisitsText(textObj: any) {\n\t\tif (this.authContextService.isClient()) {\n\t\t\tthis.scheduledDataService.onGetCases.subscribe((cases: Array<CaseApiModel>) => {\n\t\t\t\tconst count = cases.map((c) => c.UnhandledIssues.length).reduce((a, b) => a + b, 0);\n\t\t\t\tif (count === 0) {\n\t\t\t\t\ttextObj.text = this._translateService.get('LicenceHolder.Common.Door.Phrase.VisitsNoNewActivity');\n\t\t\t\t} else if (count === 1) {\n\t\t\t\t\ttextObj.text = this._translateService.get('LicenceHolder.Common.Door.Phrase.VisitsNewActivitySingular', {\n\t\t\t\t\t\tnumber: count,\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\ttextObj.text = this._translateService.get('LicenceHolder.Common.Door.Phrase.VisitsNewActivityPlural', {\n\t\t\t\t\t\tnumber: count,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.scheduledDataService.pushCachedCases();\n\t\t} else {\n\t\t\ttextObj.text = this._translateService.get('LicenceHolder.Common.Door.Phrase.VisitsLogIn');\n\t\t}\n\t\treturn textObj;\n\t}\n\n\tprivate getProfileText(textObj: any) {\n\t\tif (this.authContextService.isClient()) {\n\t\t\ttextObj.text = this.authContextService.patientIdentity.CommonName;\n\t\t} else {\n\t\t\ttextObj.text = this._translateService.get('LicenceHolder.Common.Door.Phrase.ProfileLogIn');\n\t\t}\n\t\treturn textObj;\n\t}\n\n\tprivate getMessageText(textObj: any) {\n\t\tif (this.authContextService.isClient()) {\n\t\t\ttextObj.text = this._translateService.get('LicenceHolder.Common.Door.Phrase.Message');\n\t\t} else {\n\t\t\ttextObj.text = this._translateService.get('LicenceHolder.Common.Door.Phrase.MessageLogIn');\n\t\t}\n\t\treturn textObj;\n\t}\n}\n","import { defaultMetadataStorage } from './storage';\nimport { TransformationType } from './enums';\nimport { getGlobal, isPromise } from './utils';\nfunction instantiateArrayType(arrayType) {\n const array = new arrayType();\n if (!(array instanceof Set) && !('push' in array)) {\n return [];\n }\n return array;\n}\nexport class TransformOperationExecutor {\n // -------------------------------------------------------------------------\n // Constructor\n // -------------------------------------------------------------------------\n constructor(transformationType, options) {\n this.transformationType = transformationType;\n this.options = options;\n // -------------------------------------------------------------------------\n // Private Properties\n // -------------------------------------------------------------------------\n this.recursionStack = new Set();\n }\n // -------------------------------------------------------------------------\n // Public Methods\n // -------------------------------------------------------------------------\n transform(source, value, targetType, arrayType, isMap, level = 0) {\n if (Array.isArray(value) || value instanceof Set) {\n const newValue = arrayType && this.transformationType === TransformationType.PLAIN_TO_CLASS\n ? instantiateArrayType(arrayType)\n : [];\n value.forEach((subValue, index) => {\n const subSource = source ? source[index] : undefined;\n if (!this.options.enableCircularCheck || !this.isCircular(subValue)) {\n let realTargetType;\n if (typeof targetType !== 'function' &&\n targetType &&\n targetType.options &&\n targetType.options.discriminator &&\n targetType.options.discriminator.property &&\n targetType.options.discriminator.subTypes) {\n if (this.transformationType === TransformationType.PLAIN_TO_CLASS) {\n realTargetType = targetType.options.discriminator.subTypes.find(subType => subType.name === subValue[targetType.options.discriminator.property]);\n const options = { newObject: newValue, object: subValue, property: undefined };\n const newType = targetType.typeFunction(options);\n realTargetType === undefined ? (realTargetType = newType) : (realTargetType = realTargetType.value);\n if (!targetType.options.keepDiscriminatorProperty)\n delete subValue[targetType.options.discriminator.property];\n }\n if (this.transformationType === TransformationType.CLASS_TO_CLASS) {\n realTargetType = subValue.constructor;\n }\n if (this.transformationType === TransformationType.CLASS_TO_PLAIN) {\n subValue[targetType.options.discriminator.property] = targetType.options.discriminator.subTypes.find(subType => subType.value === subValue.constructor).name;\n }\n }\n else {\n realTargetType = targetType;\n }\n const value = this.transform(subSource, subValue, realTargetType, undefined, subValue instanceof Map, level + 1);\n if (newValue instanceof Set) {\n newValue.add(value);\n }\n else {\n newValue.push(value);\n }\n }\n else if (this.transformationType === TransformationType.CLASS_TO_CLASS) {\n if (newValue instanceof Set) {\n newValue.add(subValue);\n }\n else {\n newValue.push(subValue);\n }\n }\n });\n return newValue;\n }\n else if (targetType === String && !isMap) {\n if (value === null || value === undefined)\n return value;\n return String(value);\n }\n else if (targetType === Number && !isMap) {\n if (value === null || value === undefined)\n return value;\n return Number(value);\n }\n else if (targetType === Boolean && !isMap) {\n if (value === null || value === undefined)\n return value;\n return Boolean(value);\n }\n else if ((targetType === Date || value instanceof Date) && !isMap) {\n if (value instanceof Date) {\n return new Date(value.valueOf());\n }\n if (value === null || value === undefined)\n return value;\n return new Date(value);\n }\n else if (!!getGlobal().Buffer && (targetType === Buffer || value instanceof Buffer) && !isMap) {\n if (value === null || value === undefined)\n return value;\n return Buffer.from(value);\n }\n else if (isPromise(value) && !isMap) {\n return new Promise((resolve, reject) => {\n value.then((data) => resolve(this.transform(undefined, data, targetType, undefined, undefined, level + 1)), reject);\n });\n }\n else if (!isMap && value !== null && typeof value === 'object' && typeof value.then === 'function') {\n // Note: We should not enter this, as promise has been handled above\n // This option simply returns the Promise preventing a JS error from happening and should be an inaccessible path.\n return value; // skip promise transformation\n }\n else if (typeof value === 'object' && value !== null) {\n // try to guess the type\n if (!targetType && value.constructor !== Object /* && TransformationType === TransformationType.CLASS_TO_PLAIN*/)\n if (!Array.isArray(value) && value.constructor === Array) {\n // Somebody attempts to convert special Array like object to Array, eg:\n // const evilObject = { '100000000': '100000000', __proto__: [] };\n // This could be used to cause Denial-of-service attack so we don't allow it.\n // See prevent-array-bomb.spec.ts for more details.\n }\n else {\n // We are good we can use the built-in constructor\n targetType = value.constructor;\n }\n if (!targetType && source)\n targetType = source.constructor;\n if (this.options.enableCircularCheck) {\n // add transformed type to prevent circular references\n this.recursionStack.add(value);\n }\n const keys = this.getKeys(targetType, value, isMap);\n let newValue = source ? source : {};\n if (!source &&\n (this.transformationType === TransformationType.PLAIN_TO_CLASS ||\n this.transformationType === TransformationType.CLASS_TO_CLASS)) {\n if (isMap) {\n newValue = new Map();\n }\n else if (targetType) {\n newValue = new targetType();\n }\n else {\n newValue = {};\n }\n }\n // traverse over keys\n for (const key of keys) {\n if (key === '__proto__' || key === 'constructor') {\n continue;\n }\n const valueKey = key;\n let newValueKey = key, propertyName = key;\n if (!this.options.ignoreDecorators && targetType) {\n if (this.transformationType === TransformationType.PLAIN_TO_CLASS) {\n const exposeMetadata = defaultMetadataStorage.findExposeMetadataByCustomName(targetType, key);\n if (exposeMetadata) {\n propertyName = exposeMetadata.propertyName;\n newValueKey = exposeMetadata.propertyName;\n }\n }\n else if (this.transformationType === TransformationType.CLASS_TO_PLAIN ||\n this.transformationType === TransformationType.CLASS_TO_CLASS) {\n const exposeMetadata = defaultMetadataStorage.findExposeMetadata(targetType, key);\n if (exposeMetadata && exposeMetadata.options && exposeMetadata.options.name) {\n newValueKey = exposeMetadata.options.name;\n }\n }\n }\n // get a subvalue\n let subValue = undefined;\n if (this.transformationType === TransformationType.PLAIN_TO_CLASS) {\n /**\n * This section is added for the following report:\n * https://github.com/typestack/class-transformer/issues/596\n *\n * We should not call functions or constructors when transforming to class.\n */\n subValue = value[valueKey];\n }\n else {\n if (value instanceof Map) {\n subValue = value.get(valueKey);\n }\n else if (value[valueKey] instanceof Function) {\n subValue = value[valueKey]();\n }\n else {\n subValue = value[valueKey];\n }\n }\n // determine a type\n let type = undefined, isSubValueMap = subValue instanceof Map;\n if (targetType && isMap) {\n type = targetType;\n }\n else if (targetType) {\n const metadata = defaultMetadataStorage.findTypeMetadata(targetType, propertyName);\n if (metadata) {\n const options = { newObject: newValue, object: value, property: propertyName };\n const newType = metadata.typeFunction ? metadata.typeFunction(options) : metadata.reflectedType;\n if (metadata.options &&\n metadata.options.discriminator &&\n metadata.options.discriminator.property &&\n metadata.options.discriminator.subTypes) {\n if (!(value[valueKey] instanceof Array)) {\n if (this.transformationType === TransformationType.PLAIN_TO_CLASS) {\n type = metadata.options.discriminator.subTypes.find(subType => {\n if (subValue && subValue instanceof Object && metadata.options.discriminator.property in subValue) {\n return subType.name === subValue[metadata.options.discriminator.property];\n }\n });\n type === undefined ? (type = newType) : (type = type.value);\n if (!metadata.options.keepDiscriminatorProperty) {\n if (subValue && subValue instanceof Object && metadata.options.discriminator.property in subValue) {\n delete subValue[metadata.options.discriminator.property];\n }\n }\n }\n if (this.transformationType === TransformationType.CLASS_TO_CLASS) {\n type = subValue.constructor;\n }\n if (this.transformationType === TransformationType.CLASS_TO_PLAIN) {\n if (subValue) {\n subValue[metadata.options.discriminator.property] = metadata.options.discriminator.subTypes.find(subType => subType.value === subValue.constructor).name;\n }\n }\n }\n else {\n type = metadata;\n }\n }\n else {\n type = newType;\n }\n isSubValueMap = isSubValueMap || metadata.reflectedType === Map;\n }\n else if (this.options.targetMaps) {\n // try to find a type in target maps\n this.options.targetMaps\n .filter(map => map.target === targetType && !!map.properties[propertyName])\n .forEach(map => (type = map.properties[propertyName]));\n }\n else if (this.options.enableImplicitConversion &&\n this.transformationType === TransformationType.PLAIN_TO_CLASS) {\n // if we have no registererd type via the @Type() decorator then we check if we have any\n // type declarations in reflect-metadata (type declaration is emited only if some decorator is added to the property.)\n const reflectedType = Reflect.getMetadata('design:type', targetType.prototype, propertyName);\n if (reflectedType) {\n type = reflectedType;\n }\n }\n }\n // if value is an array try to get its custom array type\n const arrayType = Array.isArray(value[valueKey])\n ? this.getReflectedType(targetType, propertyName)\n : undefined;\n // const subValueKey = TransformationType === TransformationType.PLAIN_TO_CLASS && newKeyName ? newKeyName : key;\n const subSource = source ? source[valueKey] : undefined;\n // if its deserialization then type if required\n // if we uncomment this types like string[] will not work\n // if (this.transformationType === TransformationType.PLAIN_TO_CLASS && !type && subValue instanceof Object && !(subValue instanceof Date))\n // throw new Error(`Cannot determine type for ${(targetType as any).name }.${propertyName}, did you forget to specify a @Type?`);\n // if newValue is a source object that has method that match newKeyName then skip it\n if (newValue.constructor.prototype) {\n const descriptor = Object.getOwnPropertyDescriptor(newValue.constructor.prototype, newValueKey);\n if ((this.transformationType === TransformationType.PLAIN_TO_CLASS ||\n this.transformationType === TransformationType.CLASS_TO_CLASS) &&\n // eslint-disable-next-line @typescript-eslint/unbound-method\n ((descriptor && !descriptor.set) || newValue[newValueKey] instanceof Function))\n // || TransformationType === TransformationType.CLASS_TO_CLASS\n continue;\n }\n if (!this.options.enableCircularCheck || !this.isCircular(subValue)) {\n const transformKey = this.transformationType === TransformationType.PLAIN_TO_CLASS ? newValueKey : key;\n let finalValue;\n if (this.transformationType === TransformationType.CLASS_TO_PLAIN) {\n // Get original value\n finalValue = value[transformKey];\n // Apply custom transformation\n finalValue = this.applyCustomTransformations(finalValue, targetType, transformKey, value, this.transformationType);\n // If nothing change, it means no custom transformation was applied, so use the subValue.\n finalValue = value[transformKey] === finalValue ? subValue : finalValue;\n // Apply the default transformation\n finalValue = this.transform(subSource, finalValue, type, arrayType, isSubValueMap, level + 1);\n }\n else {\n if (subValue === undefined && this.options.exposeDefaultValues) {\n // Set default value if nothing provided\n finalValue = newValue[newValueKey];\n }\n else {\n finalValue = this.transform(subSource, subValue, type, arrayType, isSubValueMap, level + 1);\n finalValue = this.applyCustomTransformations(finalValue, targetType, transformKey, value, this.transformationType);\n }\n }\n if (finalValue !== undefined || this.options.exposeUnsetFields) {\n if (newValue instanceof Map) {\n newValue.set(newValueKey, finalValue);\n }\n else {\n newValue[newValueKey] = finalValue;\n }\n }\n }\n else if (this.transformationType === TransformationType.CLASS_TO_CLASS) {\n let finalValue = subValue;\n finalValue = this.applyCustomTransformations(finalValue, targetType, key, value, this.transformationType);\n if (finalValue !== undefined || this.options.exposeUnsetFields) {\n if (newValue instanceof Map) {\n newValue.set(newValueKey, finalValue);\n }\n else {\n newValue[newValueKey] = finalValue;\n }\n }\n }\n }\n if (this.options.enableCircularCheck) {\n this.recursionStack.delete(value);\n }\n return newValue;\n }\n else {\n return value;\n }\n }\n applyCustomTransformations(value, target, key, obj, transformationType) {\n let metadatas = defaultMetadataStorage.findTransformMetadatas(target, key, this.transformationType);\n // apply versioning options\n if (this.options.version !== undefined) {\n metadatas = metadatas.filter(metadata => {\n if (!metadata.options)\n return true;\n return this.checkVersion(metadata.options.since, metadata.options.until);\n });\n }\n // apply grouping options\n if (this.options.groups && this.options.groups.length) {\n metadatas = metadatas.filter(metadata => {\n if (!metadata.options)\n return true;\n return this.checkGroups(metadata.options.groups);\n });\n }\n else {\n metadatas = metadatas.filter(metadata => {\n return !metadata.options || !metadata.options.groups || !metadata.options.groups.length;\n });\n }\n metadatas.forEach(metadata => {\n value = metadata.transformFn({ value, key, obj, type: transformationType, options: this.options });\n });\n return value;\n }\n // preventing circular references\n isCircular(object) {\n return this.recursionStack.has(object);\n }\n getReflectedType(target, propertyName) {\n if (!target)\n return undefined;\n const meta = defaultMetadataStorage.findTypeMetadata(target, propertyName);\n return meta ? meta.reflectedType : undefined;\n }\n getKeys(target, object, isMap) {\n // determine exclusion strategy\n let strategy = defaultMetadataStorage.getStrategy(target);\n if (strategy === 'none')\n strategy = this.options.strategy || 'exposeAll'; // exposeAll is default strategy\n // get all keys that need to expose\n let keys = [];\n if (strategy === 'exposeAll' || isMap) {\n if (object instanceof Map) {\n keys = Array.from(object.keys());\n }\n else {\n keys = Object.keys(object);\n }\n }\n if (isMap) {\n // expose & exclude do not apply for map keys only to fields\n return keys;\n }\n /**\n * If decorators are ignored but we don't want the extraneous values, then we use the\n * metadata to decide which property is needed, but doesn't apply the decorator effect.\n */\n if (this.options.ignoreDecorators && this.options.excludeExtraneousValues && target) {\n const exposedProperties = defaultMetadataStorage.getExposedProperties(target, this.transformationType);\n const excludedProperties = defaultMetadataStorage.getExcludedProperties(target, this.transformationType);\n keys = [...exposedProperties, ...excludedProperties];\n }\n if (!this.options.ignoreDecorators && target) {\n // add all exposed to list of keys\n let exposedProperties = defaultMetadataStorage.getExposedProperties(target, this.transformationType);\n if (this.transformationType === TransformationType.PLAIN_TO_CLASS) {\n exposedProperties = exposedProperties.map(key => {\n const exposeMetadata = defaultMetadataStorage.findExposeMetadata(target, key);\n if (exposeMetadata && exposeMetadata.options && exposeMetadata.options.name) {\n return exposeMetadata.options.name;\n }\n return key;\n });\n }\n if (this.options.excludeExtraneousValues) {\n keys = exposedProperties;\n }\n else {\n keys = keys.concat(exposedProperties);\n }\n // exclude excluded properties\n const excludedProperties = defaultMetadataStorage.getExcludedProperties(target, this.transformationType);\n if (excludedProperties.length > 0) {\n keys = keys.filter(key => {\n return !excludedProperties.includes(key);\n });\n }\n // apply versioning options\n if (this.options.version !== undefined) {\n keys = keys.filter(key => {\n const exposeMetadata = defaultMetadataStorage.findExposeMetadata(target, key);\n if (!exposeMetadata || !exposeMetadata.options)\n return true;\n return this.checkVersion(exposeMetadata.options.since, exposeMetadata.options.until);\n });\n }\n // apply grouping options\n if (this.options.groups && this.options.groups.length) {\n keys = keys.filter(key => {\n const exposeMetadata = defaultMetadataStorage.findExposeMetadata(target, key);\n if (!exposeMetadata || !exposeMetadata.options)\n return true;\n return this.checkGroups(exposeMetadata.options.groups);\n });\n }\n else {\n keys = keys.filter(key => {\n const exposeMetadata = defaultMetadataStorage.findExposeMetadata(target, key);\n return (!exposeMetadata ||\n !exposeMetadata.options ||\n !exposeMetadata.options.groups ||\n !exposeMetadata.options.groups.length);\n });\n }\n }\n // exclude prefixed properties\n if (this.options.excludePrefixes && this.options.excludePrefixes.length) {\n keys = keys.filter(key => this.options.excludePrefixes.every(prefix => {\n return key.substr(0, prefix.length) !== prefix;\n }));\n }\n // make sure we have unique keys\n keys = keys.filter((key, index, self) => {\n return self.indexOf(key) === index;\n });\n return keys;\n }\n checkVersion(since, until) {\n let decision = true;\n if (decision && since)\n decision = this.options.version >= since;\n if (decision && until)\n decision = this.options.version < until;\n return decision;\n }\n checkGroups(groups) {\n if (!groups)\n return true;\n return this.options.groups.some(optionGroup => groups.includes(optionGroup));\n }\n}\n","/**\n * This function returns the global object across Node and browsers.\n *\n * Note: `globalThis` is the standardized approach however it has been added to\n * Node.js in version 12. We need to include this snippet until Node 12 EOL.\n */\nexport function getGlobal() {\n if (typeof globalThis !== 'undefined') {\n return globalThis;\n }\n if (typeof global !== 'undefined') {\n return global;\n }\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Cannot find name 'window'.\n if (typeof window !== 'undefined') {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Cannot find name 'window'.\n return window;\n }\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Cannot find name 'self'.\n if (typeof self !== 'undefined') {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Cannot find name 'self'.\n return self;\n }\n}\n","export function isPromise(p) {\n return p !== null && typeof p === 'object' && typeof p.then === 'function';\n}\n","/**\n * These are the default options used by any transformation operation.\n */\nexport const defaultOptions = {\n enableCircularCheck: false,\n enableImplicitConversion: false,\n excludeExtraneousValues: false,\n excludePrefixes: undefined,\n exposeDefaultValues: false,\n exposeUnsetFields: true,\n groups: undefined,\n ignoreDecorators: false,\n strategy: undefined,\n targetMaps: undefined,\n version: undefined,\n};\n","import { ClassTransformer } from './ClassTransformer';\nexport { ClassTransformer } from './ClassTransformer';\nexport * from './decorators';\nexport * from './interfaces';\nexport * from './enums';\nconst classTransformer = new ClassTransformer();\nexport function classToPlain(object, options) {\n return classTransformer.instanceToPlain(object, options);\n}\nexport function instanceToPlain(object, options) {\n return classTransformer.instanceToPlain(object, options);\n}\nexport function classToPlainFromExist(object, plainObject, options) {\n return classTransformer.classToPlainFromExist(object, plainObject, options);\n}\nexport function plainToClass(cls, plain, options) {\n return classTransformer.plainToInstance(cls, plain, options);\n}\nexport function plainToInstance(cls, plain, options) {\n return classTransformer.plainToInstance(cls, plain, options);\n}\nexport function plainToClassFromExist(clsObject, plain, options) {\n return classTransformer.plainToClassFromExist(clsObject, plain, options);\n}\nexport function instanceToInstance(object, options) {\n return classTransformer.instanceToInstance(object, options);\n}\nexport function classToClassFromExist(object, fromObject, options) {\n return classTransformer.classToClassFromExist(object, fromObject, options);\n}\nexport function serialize(object, options) {\n return classTransformer.serialize(object, options);\n}\n/**\n * Deserializes given JSON string to a object of the given class.\n *\n * @deprecated This function is being removed. Please use the following instead:\n * ```\n * instanceToClass(cls, JSON.parse(json), options)\n * ```\n */\nexport function deserialize(cls, json, options) {\n return classTransformer.deserialize(cls, json, options);\n}\n/**\n * Deserializes given JSON string to an array of objects of the given class.\n *\n * @deprecated This function is being removed. Please use the following instead:\n * ```\n * JSON.parse(json).map(value => instanceToClass(cls, value, options))\n * ```\n *\n */\nexport function deserializeArray(cls, json, options) {\n return classTransformer.deserializeArray(cls, json, options);\n}\n","import { TransformOperationExecutor } from './TransformOperationExecutor';\nimport { TransformationType } from './enums';\nimport { defaultOptions } from './constants/default-options.constant';\nexport class ClassTransformer {\n instanceToPlain(object, options) {\n const executor = new TransformOperationExecutor(TransformationType.CLASS_TO_PLAIN, {\n ...defaultOptions,\n ...options,\n });\n return executor.transform(undefined, object, undefined, undefined, undefined, undefined);\n }\n classToPlainFromExist(object, plainObject, options) {\n const executor = new TransformOperationExecutor(TransformationType.CLASS_TO_PLAIN, {\n ...defaultOptions,\n ...options,\n });\n return executor.transform(plainObject, object, undefined, undefined, undefined, undefined);\n }\n plainToInstance(cls, plain, options) {\n const executor = new TransformOperationExecutor(TransformationType.PLAIN_TO_CLASS, {\n ...defaultOptions,\n ...options,\n });\n return executor.transform(undefined, plain, cls, undefined, undefined, undefined);\n }\n plainToClassFromExist(clsObject, plain, options) {\n const executor = new TransformOperationExecutor(TransformationType.PLAIN_TO_CLASS, {\n ...defaultOptions,\n ...options,\n });\n return executor.transform(clsObject, plain, undefined, undefined, undefined, undefined);\n }\n instanceToInstance(object, options) {\n const executor = new TransformOperationExecutor(TransformationType.CLASS_TO_CLASS, {\n ...defaultOptions,\n ...options,\n });\n return executor.transform(undefined, object, undefined, undefined, undefined, undefined);\n }\n classToClassFromExist(object, fromObject, options) {\n const executor = new TransformOperationExecutor(TransformationType.CLASS_TO_CLASS, {\n ...defaultOptions,\n ...options,\n });\n return executor.transform(fromObject, object, undefined, undefined, undefined, undefined);\n }\n serialize(object, options) {\n return JSON.stringify(this.instanceToPlain(object, options));\n }\n /**\n * Deserializes given JSON string to a object of the given class.\n */\n deserialize(cls, json, options) {\n const jsonObject = JSON.parse(json);\n return this.plainToInstance(cls, jsonObject, options);\n }\n /**\n * Deserializes given JSON string to an array of objects of the given class.\n */\n deserializeArray(cls, json, options) {\n const jsonObject = JSON.parse(json);\n return this.plainToInstance(cls, jsonObject, options);\n }\n}\n","import { LicenceHolder } from './LicenceHolder';\nimport { Locale } from './Locale';\nimport { Offer } from './Offer';\nimport { AppConfigInfo } from './AppConfigInfo';\nimport { UnitAboutApiModel } from './UnitAboutApiModel';\nimport { WebContentButtonApiModel } from './WebContentButtonApiModel';\n\nexport class UnitConfigApiModel {\n\tUnit: UnitConfigApiModel.Unit;\n\tOffer: Offer;\n\tLocale: Locale;\n\tAppConfig: AppConfigInfo;\n\tLicenceHolder: LicenceHolder;\n\tTranslations: { [alias: string]: string };\n\tTheme: UnitConfigApiModel.Theme;\n\tTermsOfServiceUrl: string;\n\tPrivacyPolicyUrl: string;\n\tReceptionId: number;\n\n\t// Not in backend\n\tAbout: UnitAboutApiModel;\n\tWebContentButtons: WebContentButtonApiModel[];\n\n\t// isPreNodeSelection() {\n\t// \treturn this.LicenceHolder.HasMultipleLandingPages && this.LicenceHolder.RootUnit === this.Unit.UnitId;\n\t// }\n}\n\nexport module UnitConfigApiModel {\n\texport class Unit {\n\t\tUnitId: number;\n\t\tName: string;\n\t}\n\n\texport type Theme = { [alias: string]: string | number | boolean };\n}\n","import { Helper } from '../Common/Helpers/helper';\nimport { Injectable } from '@angular/core';\nimport { plainToClass } from 'class-transformer';\nimport { UnitConfigApiModel } from '../Services/api/v2/Models/UnitConfigApiModel';\nimport { SpaEventService } from '../Services/spaEvents.service';\nimport { GuiConfigType } from '../Constants/GuiConfigType';\nimport { UnitModel } from '../Services/api/v2/Models/UnitModel';\nimport { Controls } from '../Constants/Controls';\nimport { GeneralService } from '../Services/general.service';\nimport { TranslateService } from '../Common/Services/translate.service';\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport { ConfigService } from '@services/config.service';\nimport { sharedResolution } from '../../../src/shared_resolution';\n\n@Injectable()\nexport class SpaContext {\n\tprivate _unitConfig: UnitConfigApiModel = null;\n\tget unitConfig() {\n\t\treturn this._unitConfig;\n\t}\n\n\tdocumentSigningPending = false;\n\tlanguageCode: string = null;\n\tsessionStorage: Storage = window.sessionStorage;\n\tunitTreeFlat: Array<UnitModel> = [];\n\trootUnitId: number;\n\n\tprivate readonly locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\tprivate readonly configService = sharedResolution.resolve(ConfigService);\n\n\tget guiConfig() {\n\t\treturn this.getCurrentConfig();\n\t}\n\n\tget baseHref() {\n\t\treturn `/${this.locationSelectorService.location.route}/`;\n\t}\n\n\tconstructor(\n\t\tprivate _spaEventService: SpaEventService,\n\t\tprivate _helper: Helper,\n\t\tprivate generalService: GeneralService,\n\t\tprivate translateService: TranslateService,\n\t) {\n\t\t// Empty\n\t}\n\n\tinit(unitConfig: UnitConfigApiModel, unitTree: UnitModel) {\n\t\tthis.setUnitConfig(unitConfig);\n\t\tthis.setUnitTree(unitTree);\n\n\t\tconst langCode = localStorage.getItem('languageCode');\n\t\tthis.languageCode = langCode ? langCode : µ.Env.LangCode;\n\n\t\tthis._spaEventService.onSigningIn.subscribe(() => {\n\t\t\tconst langCode = localStorage.getItem('languageCode');\n\t\t\tif (langCode) {\n\t\t\t\tthis.generalService.setlanguage(langCode).subscribe();\n\t\t\t}\n\t\t});\n\n\t\t// Workaround for syncing SpaContext and LocationSelectorService\n\t\tthis.locationSelectorService.events.on('onCommitted', (unitId: number) => {\n\t\t\tconst loadedConfig = this.configService.__TEMP__loadedConfigsRaw.get(unitId);\n\t\t\tif (loadedConfig == null) throw new Error(`No config has been set for unit with id ${unitId}`);\n\n\t\t\tconst config = {\n\t\t\t\t...loadedConfig,\n\n\t\t\t\t// About isn't a part of the API model and is set at startup separately in StartupService.\n\t\t\t\t// The initial one set at startup is fetched for the license holder.\n\t\t\t\t// This always sets a reference to the initial one, since it doesn't change between units.\n\t\t\t\tAbout: this.unitConfig.About,\n\t\t\t\tWebContentButtons: [],\n\t\t\t};\n\n\t\t\tthis.setUnitConfig(config);\n\t\t});\n\t}\n\n\tsetUnitConfig(data: UnitConfigApiModel) {\n\t\tthis._unitConfig = plainToClass(UnitConfigApiModel, data);\n\t\tthis.translateService.setTranslations(this._unitConfig.Translations);\n\n\t\tif (this._unitConfig.Offer == null) {\n\t\t\tthis._unitConfig.Offer = {\n\t\t\t\t// Please better solution one day\n\t\t\t\tHasConditionWorkflow: false,\n\t\t\t\tAllowClientAgents: false,\n\t\t\t\tHideProvidedByVisibaCare: false,\n\t\t\t\tHasPhysicalLocation: false,\n\t\t\t\tControls: [],\n\t\t\t};\n\t\t}\n\t}\n\n\tsetUnitTree(root: UnitModel) {\n\t\tthis.rootUnitId = root.Id;\n\t\tthis.unitTreeFlat = this._helper.unit.createFlatUnitArray(root);\n\t\tconst validNodeIds = [root.Id];\n\n\t\t// Detach branches with no Offer from root\n\t\tconst endNodesWithOffer = this.unitTreeFlat.filter(\n\t\t\t(u) => (u.IsClientEntrance || u.closestEntranceId !== null) && u.Children.length === 0,\n\t\t);\n\t\tendNodesWithOffer.forEach((n) => {\n\t\t\tlet node = n;\n\t\t\twhile (node.ParentId !== null) {\n\t\t\t\tvalidNodeIds.push(node.Id);\n\t\t\t\tnode = this.unitTreeFlat.find((u) => u.Id === node.ParentId);\n\t\t\t}\n\t\t});\n\n\t\tthis.unitTreeFlat.forEach((u) => (u.Children = u.Children.filter((c) => validNodeIds.some((v) => v === c.Id))));\n\t}\n\n\tfindUnit(searchForId: number): UnitModel {\n\t\treturn this.unitTreeFlat.find((unit) => unit.Id === searchForId);\n\t}\n\n\thasControl(name: Controls) {\n\t\treturn this.unitConfig.Offer.Controls.indexOf(name) > -1;\n\t}\n\n\tidentifiers(countryCode = null) {\n\t\tif (countryCode === null) countryCode = this.unitConfig.Locale.DefaultCountry;\n\n\t\tconst supportedCountry = this.unitConfig.Locale.SupportedCountries.find((c) => c.CountryCode === countryCode);\n\n\t\treturn {\n\t\t\tphone: supportedCountry.ClientIdentifierPhoneNumber,\n\t\t\tnin: supportedCountry.ClientIdentifierNationalIdentityNumber,\n\t\t};\n\t}\n\n\tsetGuiConfigItem(item: string | GuiConfigType, value: any) {\n\t\tconst config = this.getCurrentConfig();\n\t\tconfig[item] = value;\n\n\t\twindow.localStorage.setItem(`HolderConfig_${this.unitConfig.LicenceHolder.Id}`, JSON.stringify(config));\n\t}\n\n\t/**\n\t * To get typed\n\t * @param item\n\t */\n\tgetGuiConfigItem<T>(item: string | GuiConfigType): T | null {\n\t\tconst config = this.getCurrentConfig();\n\n\t\treturn config[item] || null;\n\t}\n\n\tprivate getCurrentConfig(): { [name: string]: any } {\n\t\tlet currentConfig: any = window.localStorage.getItem(`HolderConfig_${this.unitConfig.LicenceHolder.Id}`);\n\t\tif (currentConfig === null) currentConfig = {};\n\t\telse currentConfig = JSON.parse(currentConfig);\n\n\t\treturn currentConfig;\n\t}\n}\n","import { Observable } from 'rxjs';\n\nexport class MessageHandler {\n\tme: HTMLElement;\n\tbuttonContainer: HTMLElement = null;\n\n\tconstructor(private title: string = '', private body: string = '') {\n\t\tthis.baseHtml();\n\t}\n\n\tasError() {\n\t\tthis.me.classList.add('error');\n\t\treturn this;\n\t}\n\n\tasWarning() {\n\t\tthis.me.classList.add('warning');\n\t\treturn this;\n\t}\n\n\taddClass(cls: string) {\n\t\tthis.me.classList.add(cls);\n\t\treturn this;\n\t}\n\n\tconfirm(confirmBtn: string, cancelBtn: string): Observable<any> {\n\t\tlet btnOk = this.addButton('span4 offset1', confirmBtn);\n\t\tlet btnAbort = this.addButton('span4', cancelBtn);\n\n\t\tthis.addClass('confirm');\n\t\tthis.finalize();\n\n\t\treturn Observable.create(observer => {\n\t\t\tbtnOk.addEventListener('click', () => {\n\t\t\t\tobserver.next({ el: this.me });\n\t\t\t\tthis.destroy();\n\t\t\t});\n\t\t\tbtnAbort.addEventListener('click', () => {\n\t\t\t\tobserver.error({ el: this.me });\n\t\t\t\tthis.destroy();\n\t\t\t});\n\t\t});\n\t}\n\n\tinform(buttonText: string): Observable<any> {\n\t\tlet btnOk = this.addButton('', buttonText);\n\n\t\tthis.addClass('inform');\n\t\tthis.finalize();\n\n\t\treturn Observable.create(observer => {\n\t\t\tbtnOk.addEventListener('click', () => {\n\t\t\t\tobserver.next({ el: this.me });\n\t\t\t\tthis.destroy();\n\t\t\t});\n\t\t});\n\t}\n\n\tpersistant(): HTMLElement {\n\t\tthis.finalize();\n\n\t\treturn this.me;\n\t}\n\n\t/** PRIVATE **/\n\n\tprivate baseHtml() {\n\t\tthis.me = document.createElement('div');\n\t\tthis.me.className = 'visibaMessageWrap';\n\t\tthis.me.innerHTML = `<div class=\"visibaMessage\">\n <div class=\"inner\">\n <h2>${this.title}</h2>\n <div class=\"text\">${this.body}</div>\n </div>\n </div>`;\n\t}\n\n\tprivate addButton(cls: string, text: string): HTMLElement {\n\t\tif (this.buttonContainer === null) {\n\t\t\tthis.buttonContainer = document.createElement('div');\n\t\t\tthis.buttonContainer.className = 'buttons';\n\t\t\tthis.me.querySelector('.inner').appendChild(this.buttonContainer);\n\t\t}\n\n\t\tlet btn = document.createElement('div');\n\t\tbtn.className = `btn ${cls}`;\n\t\tbtn.innerText = text;\n\t\tthis.buttonContainer.appendChild(btn);\n\t\treturn btn;\n\t}\n\n\tprivate addCloseButton(text: string): HTMLElement {\n\t\tlet btn = document.createElement('a');\n\t\tbtn.className = 'close';\n\t\tbtn.innerText = text;\n\t\tthis.me.querySelector('.inner').appendChild(btn);\n\t\treturn btn;\n\t}\n\n\tprivate finalize() {\n\t\tdocument.querySelector('body').appendChild(this.me);\n\t\tthis.setTopPosition();\n\n\t\tdocument.addEventListener('scroll', this.setTopPosition);\n\t}\n\n\tdestroy() {\n\t\tthis.me.parentElement.removeChild(this.me);\n\t\tdocument.removeEventListener('scroll', this.setTopPosition);\n\t\tthis.me = null;\n\t}\n\n\tprivate setTopPosition() {\n\t\tlet topMarg = 0;\n\t\tif (\n\t\t\tdocument.querySelector('office-header') !== null &&\n\t\t\twindow.pageYOffset < document.querySelector('office-header header').clientHeight + 20\n\t\t)\n\t\t\ttopMarg = document.querySelector('office-header header').clientHeight - window.pageYOffset + 20;\n\n\t\tif (document.querySelector('licenceholder-header') !== null)\n\t\t\ttopMarg = document.querySelector('licenceholder-header header').clientHeight;\n\n\t\ttopMarg = Math.max(topMarg - window.pageYOffset, 0);\n\n\t\t(document.querySelector('.visibaMessageWrap .visibaMessage') as HTMLElement).style.top = topMarg + 'px';\n\t}\n}\n","import { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport { environment } from './../../environments/environment';\nimport { HttpHeaders, HttpParams, HttpResponse, HttpErrorResponse, HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { SpaEventService } from '../Services/spaEvents.service';\nimport { PageLoadHandler } from './PageLoadHandler';\nimport { MessageHandler } from '../Common/Classes/messageHandler';\nimport { SpaLogger } from '../Common/Classes/Global/spalogger.class';\nimport { Observable } from 'rxjs';\nimport { AuthContextService } from '../Services/authContext.service';\nimport { ApplicationService } from '../Services/application.service';\n\n@Injectable()\nexport class VisibaApiHttp {\n\terrorMessage: MessageHandler = null;\n\terrorMessageTimer: number = null;\n\n\tconstructor(\n\t\tprivate _pageLoadHandler: PageLoadHandler,\n\t\tprivate _http: HttpClient,\n\t\tprivate _spaEventService: SpaEventService,\n\t\tprivate _spaLogger: SpaLogger,\n\t\tprivate translateService: TranslateService,\n\t\tprivate authContextService: AuthContextService,\n\t\tprivate applicationService: ApplicationService,\n\t) {}\n\n\tget(url: string, showGeneralApiErrorMessage = true, options?: HttpClientOptions): Observable<ApiResponse<any>> {\n\t\treturn this.getTyped<any>(url, showGeneralApiErrorMessage, options);\n\t}\n\n\tgetTyped<T>(\n\t\turl: string,\n\t\tshowGeneralApiErrorMessage = true,\n\t\toptions?: HttpClientOptions,\n\t\temitLoading: boolean | number = true,\n\t): Observable<ApiResponse<T>> {\n\t\treturn Observable.create((observer) => {\n\t\t\t// pass obs\n\t\t\tconst request = this._pageLoadHandler.pending(showGeneralApiErrorMessage ? emitLoading : false);\n\n\t\t\tthis._http.get<BackendApiResponse<T>>(environment.api.uri + url, this.getDefaultOptions(options)).subscribe(\n\t\t\t\t(res) => {\n\t\t\t\t\tthis.handleSuccess(res, observer, request);\n\t\t\t\t},\n\t\t\t\t(err) => {\n\t\t\t\t\tthis.handleError(err, observer, showGeneralApiErrorMessage, request);\n\t\t\t\t},\n\t\t\t\t() => {\n\t\t\t\t\tobserver.complete();\n\n\t\t\t\t\tif (request !== false) {\n\t\t\t\t\t\tthis._pageLoadHandler.resolve(request);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t);\n\t\t});\n\t}\n\n\tpost(url: string, body: any, showGeneralApiErrorMessage = true, options?: HttpClientOptions): Observable<ApiResponse<any>> {\n\t\treturn this.postTyped<any>(url, body, showGeneralApiErrorMessage, options);\n\t}\n\tpostTyped<T>(\n\t\turl: string,\n\t\tbody: any,\n\t\tshowGeneralApiErrorMessage = true,\n\t\toptions?: HttpClientOptions,\n\t\temitLoading: boolean | number = true,\n\t): Observable<ApiResponse<T>> {\n\t\treturn Observable.create((observer) => {\n\t\t\tconst request = this._pageLoadHandler.pending(showGeneralApiErrorMessage ? emitLoading : false);\n\n\t\t\tthis._http.post<BackendApiResponse<T>>(environment.api.uri + url, body, this.getDefaultOptions(options)).subscribe(\n\t\t\t\t(res) => {\n\t\t\t\t\tthis.handleSuccess(res, observer, request);\n\t\t\t\t},\n\t\t\t\t(err) => {\n\t\t\t\t\tthis.handleError(err, observer, showGeneralApiErrorMessage, request);\n\t\t\t\t},\n\t\t\t\t() => {\n\t\t\t\t\tobserver.complete();\n\n\t\t\t\t\tif (request !== false) {\n\t\t\t\t\t\tthis._pageLoadHandler.resolve(request);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t);\n\t\t});\n\t}\n\n\tput(url: string, body: any, showGeneralApiErrorMessage = true, options?: HttpClientOptions): Observable<ApiResponse<any>> {\n\t\treturn this.putTyped<any>(url, body, showGeneralApiErrorMessage, options);\n\t}\n\tputTyped<T>(\n\t\turl: string,\n\t\tbody: any,\n\t\tshowGeneralApiErrorMessage = true,\n\t\toptions?: HttpClientOptions,\n\t\temitLoading: boolean | number = true,\n\t): Observable<ApiResponse<T>> {\n\t\treturn Observable.create((observer) => {\n\t\t\tconst request = this._pageLoadHandler.pending(showGeneralApiErrorMessage ? emitLoading : false);\n\n\t\t\tthis._http\n\t\t\t\t.put<BackendApiResponse<T>>(environment.api.uri + url, JSON.stringify(body), this.getDefaultOptions(options))\n\t\t\t\t.subscribe(\n\t\t\t\t\t(res) => {\n\t\t\t\t\t\tthis.handleSuccess(res, observer, request);\n\t\t\t\t\t},\n\t\t\t\t\t(err) => {\n\t\t\t\t\t\tthis.handleError(err, observer, showGeneralApiErrorMessage, request);\n\t\t\t\t\t},\n\t\t\t\t\t() => {\n\t\t\t\t\t\tobserver.complete();\n\n\t\t\t\t\t\tif (request !== false) {\n\t\t\t\t\t\t\tthis._pageLoadHandler.resolve(request);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t});\n\t}\n\n\tdelete(url: string, showGeneralApiErrorMessage = true, options?: HttpClientOptions): Observable<ApiResponse<any>> {\n\t\treturn this.deleteTyped<any>(url, showGeneralApiErrorMessage, options);\n\t}\n\tdeleteTyped<T>(\n\t\turl: string,\n\t\tshowGeneralApiErrorMessage = true,\n\t\toptions?: HttpClientOptions,\n\t\temitLoading: boolean | number = true,\n\t): Observable<ApiResponse<T>> {\n\t\treturn Observable.create((observer) => {\n\t\t\tconst request = this._pageLoadHandler.pending(showGeneralApiErrorMessage ? emitLoading : false);\n\n\t\t\tthis._http.delete<BackendApiResponse<T>>(environment.api.uri + url, this.getDefaultOptions(options)).subscribe(\n\t\t\t\t(res) => {\n\t\t\t\t\tthis.handleSuccess(res, observer, request);\n\t\t\t\t},\n\t\t\t\t(err) => {\n\t\t\t\t\tthis.handleError(err, observer, showGeneralApiErrorMessage, request);\n\t\t\t\t},\n\t\t\t\t() => {\n\t\t\t\t\tobserver.complete();\n\n\t\t\t\t\tif (request !== false) {\n\t\t\t\t\t\tthis._pageLoadHandler.resolve(request);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t);\n\t\t});\n\t}\n\n\tpostFormData(\n\t\turl: string,\n\t\tparams: any,\n\t\tfiles: FileList,\n\t\tsendProgress = false,\n\t\tshowGeneralApiErrorMessage = true,\n\t): Observable<ApiResponse<any>> | Observable<number> {\n\t\treturn Observable.create((observer) => {\n\t\t\tconst formData = new FormData();\n\t\t\tconst xhr = new XMLHttpRequest();\n\n\t\t\tfor (let i = 0; i < files.length; i++) formData.append('uploads[]', files[i], files[i].name);\n\n\t\t\tfor (const k in params) formData.append(k, params[k].toString());\n\n\t\t\txhr.onreadystatechange = () => {\n\t\t\t\tif (xhr.readyState === 4) {\n\t\t\t\t\tlet response = xhr.response;\n\t\t\t\t\tif (response == null || response === '') response = { Successful: xhr.status === 200, ErrorCode: null };\n\t\t\t\t\telse response = JSON.parse(response);\n\n\t\t\t\t\tif (xhr.status === 200) {\n\t\t\t\t\t\tconst request = this._pageLoadHandler.pending(showGeneralApiErrorMessage);\n\n\t\t\t\t\t\tthis.handleSuccess(response, observer, request);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.handleError(response, observer, showGeneralApiErrorMessage, false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\n\t\t\txhr.withCredentials = true;\n\t\t\txhr.upload.onprogress = (event) => {\n\t\t\t\tconst progress = Math.round((event.loaded / event.total) * 100);\n\t\t\t\tif (sendProgress) observer.next(progress);\n\t\t\t};\n\n\t\t\txhr.open('POST', url, true);\n\n\t\t\tconst serverFileName = xhr.send(formData);\n\t\t\treturn serverFileName;\n\t\t});\n\t}\n\n\tshowGeneralApiErrorMessage(errorCode: string) {\n\t\tif (errorCode === null) return;\n\n\t\tif (this.errorMessage === null) {\n\t\t\terrorCode = µ.Env.ActiveDomain.split('.')[0] + errorCode;\n\t\t\tthis.errorMessage = new MessageHandler(\n\t\t\t\tthis.translateService.get('Common.Error.UnexpectedErrorTitle').replace('{{errorCode}}', errorCode),\n\t\t\t\tthis.translateService.get('Common.Error.UnexpectedErrorBody').replace('{{errorCode}}', errorCode),\n\t\t\t).asError();\n\t\t\tthis.errorMessage.inform(this.translateService.get('Common.Button.OK')).subscribe(\n\t\t\t\t(yes) => {\n\t\t\t\t\tthis.errorMessage = null;\n\t\t\t\t\tclearTimeout(this.errorMessageTimer);\n\t\t\t\t},\n\t\t\t\t(no) => {\n\t\t\t\t\tthis.errorMessage = null;\n\t\t\t\t\tclearTimeout(this.errorMessageTimer);\n\t\t\t\t},\n\t\t\t);\n\t\t\t// this.errorMessageTimer = window.setTimeout(() => {\n\t\t\t// this.errorMessage.destroy();\n\t\t\t// this.errorMessage = null;\n\t\t\t// }, 30000);\n\t\t}\n\t}\n\n\tprivate handleSuccess(response: HttpResponse<BackendApiResponse<any>>, observer, request: { id: string; timeOut: number } | false) {\n\t\tif (request !== false) {\n\t\t\tthis._pageLoadHandler.resolve(request);\n\t\t}\n\n\t\tif (response.headers) this.checkBackendVersion(response.headers.get('X-App-WebVersion'));\n\n\t\tconst res = new ApiResponse<any>(response);\n\t\tif (res.sucessful) observer.next(res);\n\t\telse observer.error(res);\n\n\t\tobserver.complete();\n\t}\n\n\tprivate handleError(\n\t\tresponse: HttpResponse<BackendApiResponse<any>>,\n\t\tobserver,\n\t\tshowGeneralApiErrorMessage,\n\t\trequest: { id: string; timeOut: number } | false,\n\t) {\n\t\tif (request !== false) {\n\t\t\tthis._pageLoadHandler.resolve(request);\n\t\t}\n\n\t\tif (response.headers) this.checkBackendVersion(response.headers.get('X-App-WebVersion'));\n\n\t\tif (\n\t\t\tshowGeneralApiErrorMessage &&\n\t\t\t(typeof response.status === 'undefined' ||\n\t\t\t\t(response.status !== 400 && response.status !== 401 && response.status !== 403 && response.status !== 404)) &&\n\t\t\ttypeof response.headers !== 'undefined'\n\t\t) {\n\t\t\tthis.showGeneralApiErrorMessage(response.headers.get('X-App-LogId'));\n\t\t}\n\n\t\tif (response.status === 401) {\n\t\t\tthis._spaEventService.onSignInRequired.emit({\n\t\t\t\ttarget: location.pathname,\n\t\t\t\treason: this.translateService.get(\n\t\t\t\t\t'Common.Error.Phrase.401SignInRequired' + (this.authContextService.patientIdentity === null ? '' : '_HasIdentity'),\n\t\t\t\t),\n\t\t\t});\n\t\t}\n\n\t\tobserver.error(new ApiResponse<any>(response));\n\t}\n\n\tprivate checkBackendVersion(version: string) {\n\t\tif (version === null || this.errorMessage !== null) return;\n\n\t\tif (this.applicationService.webVersion !== version) {\n\t\t\tthis.errorMessage = new MessageHandler(\n\t\t\t\tthis.translateService.get('Common.Error.Title.BackendVersionIsOutdated'),\n\t\t\t\tthis.translateService.get('Common.Error.Phrase.BackendVersionIsOutdated'),\n\t\t\t).asWarning();\n\t\t\tthis.errorMessage\n\t\t\t\t.confirm(this.translateService.get('Common.Button.OK'), this.translateService.get('Common.Button.Reload'))\n\t\t\t\t.subscribe(\n\t\t\t\t\t(yes) => {\n\t\t\t\t\t\tthis.errorMessage = null;\n\t\t\t\t\t},\n\t\t\t\t\t(no) => {\n\t\t\t\t\t\tthis.errorMessage = null;\n\t\t\t\t\t\tlocation.reload();\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t}\n\t}\n\n\tprivate getDefaultOptions(overrideOptions?: HttpClientOptions) {\n\t\tconst defaultOptions: HttpClientOptionsBase = { observe: 'response', responseType: 'json' };\n\t\tif (!overrideOptions) return defaultOptions;\n\n\t\tconst mergedOptions: HttpClientOptionsBase = Object.assign(defaultOptions, overrideOptions);\n\n\t\treturn mergedOptions;\n\t}\n}\n\nexport class ApiResponse<T> {\n\tdata: T;\n\tstatusCode: number;\n\terrorCode: string;\n\terrorMessage: string;\n\tsucessful: boolean;\n\tresponse: HttpResponse<BackendApiResponse<T>> | Partial<HttpErrorResponse>;\n\n\tconstructor(response: HttpResponse<BackendApiResponse<T>> | Partial<HttpErrorResponse>) {\n\t\tif (response.status) {\n\t\t\tthis.statusCode = response.status;\n\t\t\tif (\n\t\t\t\tresponse.status === 500 ||\n\t\t\t\tresponse.status === 404 ||\n\t\t\t\tresponse.headers.get('content-type') === null ||\n\t\t\t\tresponse.headers.get('content-type').indexOf('json') === -1\n\t\t\t) {\n\t\t\t\tthis.sucessful = false;\n\t\t\t\tthis.response = response;\n\t\t\t\tif (typeof response['error'] !== 'undefined') {\n\t\t\t\t\tconst errorAssHttpErrorResponse: HttpErrorResponse = response as HttpErrorResponse;\n\t\t\t\t\tif (errorAssHttpErrorResponse.error.ErrorMessage) this.errorMessage = errorAssHttpErrorResponse.error.ErrorMessage;\n\t\t\t\t\tif (errorAssHttpErrorResponse.error.ErrorCode) this.errorCode = errorAssHttpErrorResponse.error.ErrorCode;\n\t\t\t\t}\n\t\t\t} else if ((response as any)._body !== '') {\n\t\t\t\tconst parsed = response.ok\n\t\t\t\t\t? (response as HttpResponse<BackendApiResponse<any>>).body\n\t\t\t\t\t: (response as HttpErrorResponse).error;\n\n\t\t\t\tthis.sucessful = parsed.Successful;\n\t\t\t\tthis.errorCode = parsed.ErrorCode;\n\t\t\t\tthis.errorMessage = parsed.ErrorMessage;\n\t\t\t\tthis.data = parsed.Data;\n\t\t\t}\n\t\t} else {\n\t\t\tthis.sucessful = (response as any).Successful;\n\t\t\tthis.errorCode = (response as any).ErrorCode;\n\t\t}\n\t}\n}\n\nexport interface HttpClientOptions {\n\theaders?:\n\t\t| HttpHeaders\n\t\t| {\n\t\t\t\t[header: string]: string | string[];\n\t\t };\n\tparams?:\n\t\t| HttpParams\n\t\t| {\n\t\t\t\t[param: string]: string | string[];\n\t\t };\n\treportProgress?: boolean;\n}\n\nexport interface HttpClientOptionsBase {\n\theaders?:\n\t\t| HttpHeaders\n\t\t| {\n\t\t\t\t[header: string]: string | string[];\n\t\t };\n\tobserve: 'response';\n\tparams?:\n\t\t| HttpParams\n\t\t| {\n\t\t\t\t[param: string]: string | string[];\n\t\t };\n\treportProgress?: boolean;\n\tresponseType?: 'arraybuffer' | 'blob' | 'json' | 'text' | any;\n\twithCredentials?: boolean;\n}\n\nexport class BackendApiResponse<T> {\n\tData: T | null = null;\n\tSuccessful: boolean = false;\n\tErrorCode: string = '';\n\tErrorMessage: string = '';\n}\n","import { DeviceInfoModel, LogEntry, DeviceLogLevel, DeviceLogInput } from '../../Models/Logging/Logging';\nimport { Injectable } from '@angular/core';\nimport { v4 } from '../../Helpers/v4';\nimport { environment } from 'Public_old/src/environments/environment';\n\n@Injectable()\nexport class SpaLogger {\n\tentries: Array<LogEntry> = [];\n\tdeviceInfoModel: DeviceInfoModel = null;\n\tmyDeviceId: string = localStorage.getItem('X-DeviceId');\n\tmyVisitId: string = null;\n\toutgoingEntries: Array<Array<LogEntry>> = [];\n\n\t/**\n\t * @param logLevel - 1=Normal, 2=Dno, 3=Debug\n\t */\n\tprivate _logLevel: number = 1;\n\n\tget logLevel(): number {\n\t\treturn window['overrideLogLevel'] || this._logLevel;\n\t}\n\n\tset logLevel(value: number) {\n\t\tthis._logLevel = value;\n\t}\n\n\tconstructor() {\n\t\tthis.myVisitId = v4();\n\n\t\tif (this.myDeviceId === null) {\n\t\t\tthis.myDeviceId = v4();\n\t\t\tlocalStorage.setItem('X-DeviceId', this.myDeviceId);\n\t\t}\n\n\t\tthis.deviceInfoModel = {\n\t\t\tAppBuild: null,\n\t\t\tAppVersion: null,\n\t\t\tBrowser: platform.name,\n\t\t\tBrowserVersion: platform.version,\n\t\t\tAppName: null,\n\t\t\tDeviceName: null,\n\t\t\tOs: platform.os.family,\n\t\t\tOsVersion: platform.os.version,\n\t\t\tPlatform: 'JavaScript',\n\t\t};\n\n\t\twindow.setInterval(this.postEntries, 30 * 1000);\n\t}\n\n\tlog(logLevel: DeviceLogLevel, tags: Array<string>, text: string, data: Object = null, stackTrace: string = null) {\n\t\tconst levelColor = logLevel === 'Debug' ? 'blue' : logLevel === 'Error' ? 'red' : 'grey';\n\n\t\tif (this.logLevel === 3) {\n\t\t\tconsole.log(\n\t\t\t\t`%c-${logLevel.toUpperCase()}- %c[${tags.join('][')}] %c${text}`,\n\t\t\t\t`color: ${levelColor};font-weight:bold;font-size:14px;`,\n\t\t\t\t'font-weight:bold;color: #008296;',\n\t\t\t\t'color: #59b6c4;',\n\t\t\t\tdata,\n\t\t\t);\n\t\t}\n\n\t\t// this.entries.push({\n\t\t// \tTimestamp: new Date(),\n\t\t// \tTags: tags,\n\t\t// \tText: text,\n\t\t// \tData: data,\n\t\t// \tStackTrace: stackTrace,\n\t\t// \tLogLevel: logLevel,\n\t\t// });\n\t}\n\n\tlogInstant(logLevel: DeviceLogLevel, tags: Array<string>, text: string, data: Object = null, stackTrace: string = null) {\n\t\tthis.entries.push({\n\t\t\tTimestamp: new Date(),\n\t\t\tTags: tags,\n\t\t\tText: text,\n\t\t\tData: data,\n\t\t\tStackTrace: stackTrace,\n\t\t\tLogLevel: logLevel,\n\t\t});\n\t\tthis.postEntries();\n\t}\n\n\tpostEntries = () => {\n\t\tif (this.entries.length > 0) this.outgoingEntries.push(this.entries.splice(0));\n\n\t\twhile (this.outgoingEntries.length > 0) this.sendBatch(this.outgoingEntries.shift());\n\t};\n\n\tprivate sendBatch(batch: Array<LogEntry>) {\n\t\tconst xmlhttp = new XMLHttpRequest();\n\n\t\txmlhttp.onreadystatechange = (success) => {\n\t\t\tif (xmlhttp.readyState === XMLHttpRequest.DONE) {\n\t\t\t\t// if (xmlhttp.status !== 200) this.outgoingEntries.push(batch);\n\t\t\t}\n\t\t};\n\t\txmlhttp.open('POST', `${environment.api.uri}/api/General/DeviceLog`, true);\n\t\txmlhttp.setRequestHeader('X-TouchSessions', 'false');\n\t\txmlhttp.setRequestHeader('Accept', 'application/json');\n\t\txmlhttp.setRequestHeader('Content-Type', 'application/json');\n\n\t\tconst sendData: DeviceLogInput = {\n\t\t\tVisitId: this.myVisitId,\n\t\t\tDeviceId: this.myDeviceId,\n\t\t\tApiSessionToken: null,\n\t\t\tDeviceInfo: this.deviceInfoModel,\n\t\t\tEntries: batch,\n\t\t};\n\t\txmlhttp.send(JSON.stringify(sendData));\n\t}\n}\n","import { TranslateService } from '../Services/translate.service';\nimport { UntypedFormControl, UntypedFormGroup } from '@angular/forms';\nimport { NationalIdentityNumbers } from './nationalIdentityNumbers';\nimport { parse, isValidNumber } from 'libphonenumber-js';\n\nexport class GlobalValidator {\n\tstatic numberInt(control: UntypedFormControl): ValidationResult {\n\t\tif (typeof control.value === 'undefined' || control.value === null || control.value === '') return null;\n\n\t\tconst parsed = parseFloat(control.value);\n\t\tif (isNaN(control.value) || (parsed | 0) !== parsed) return { incorrectIntegerValue: true };\n\n\t\treturn null;\n\t}\n\n\tstatic numberFloat(control: UntypedFormControl): ValidationResult {\n\t\tif (typeof control.value === 'undefined' || control.value === null || control.value === '') return null;\n\n\t\tif (/^\\s*$/.test(control.value) || isNaN(control.value)) return { incorrectFloatValue: true };\n\n\t\treturn null;\n\t}\n\n\tstatic mailFormat(control: UntypedFormControl): ValidationResult {\n\t\tif (!GlobalValidator.validateAsEmail(control.value as string)) return { incorrectMailFormat: true };\n\n\t\treturn null;\n\t}\n\n\tstatic nationalIdentityFormat(control: UntypedFormControl): ValidationResult {\n\t\tif (GlobalValidator.validateAsNationalIdentityNumber(control.value.nin as string, control.value.countryCode)) return null;\n\n\t\treturn { incorrectNationalIdentityFormat: true };\n\t}\n\n\tstatic mobilePhoneFormat(control: UntypedFormControl): ValidationResult | null {\n\t\tif (typeof control.value === 'undefined' || control.value === null || control.value === '') return null;\n\n\t\tlet num;\n\t\ttry {\n\t\t\tnum = parse(control.value);\n\t\t\tif (!isValidNumber(num)) {\n\t\t\t\treturn { incorrectMobilePhoneFormat: true };\n\t\t\t}\n\t\t} catch (numberParseException) {\n\t\t\treturn { incorrectMobilePhoneFormat: true };\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tstatic requiredCheckbox(control: UntypedFormControl): ValidationResult {\n\t\tif (!control.value) return { incorrectCheckboxValue: true };\n\n\t\treturn null;\n\t}\n\n\tstatic requiredNin(control: UntypedFormControl): ValidationResult {\n\t\tif (typeof control.value === 'undefined' || control.value.nin === null || control.value.nin === '') return { required: true };\n\n\t\treturn null;\n\t}\n\n\tstatic conditionalRequired(conditions: any) {\n\t\treturn (control: UntypedFormControl): { [s: string]: boolean } => {\n\t\t\tlet required: boolean = false;\n\t\t\tfor (const elt in conditions) {\n\t\t\t\tif (conditions[elt]) required = true;\n\t\t\t}\n\n\t\t\tif (required && !control.value) {\n\t\t\t\treturn { required: true };\n\t\t\t}\n\t\t};\n\t}\n\n\tstatic conditionalRequiredNin(conditions: any) {\n\t\treturn (control: UntypedFormControl): { [s: string]: boolean } => {\n\t\t\tlet required: boolean = true;\n\t\t\tfor (const elt in conditions) {\n\t\t\t\tif (conditions[elt] === false) {\n\t\t\t\t\trequired = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (required && !control.value.nin) {\n\t\t\t\treturn { required: true };\n\t\t\t}\n\t\t};\n\t}\n\n\tstatic equals(equalityObject: { value: any }) {\n\t\treturn (control: UntypedFormControl): { [s: string]: boolean } => {\n\t\t\tif (control.value && control.value != equalityObject.value) {\n\t\t\t\treturn { notEqual: true };\n\t\t\t}\n\t\t};\n\t}\n\n\tstatic maxNumber(num: number) {\n\t\treturn (control: UntypedFormControl): { [s: string]: boolean } => {\n\t\t\tif (control.value && control.value > num) {\n\t\t\t\treturn { maxNumberValueExceded: true };\n\t\t\t}\n\t\t};\n\t}\n\n\tstatic minNumber(num: number) {\n\t\treturn (control: UntypedFormControl): { [s: string]: boolean } => {\n\t\t\tif (control.value && control.value < num) {\n\t\t\t\treturn { minNumberValueExceeded: true };\n\t\t\t}\n\t\t};\n\t}\n\n\tstatic maxLength(length: number) {\n\t\treturn (control: UntypedFormControl): { [s: string]: boolean } => {\n\t\t\tif (control.value && control.value.length > length) {\n\t\t\t\treturn { maxValueLengthExceded: true };\n\t\t\t}\n\t\t};\n\t}\n\n\tstatic minLength(length: number) {\n\t\treturn (control: UntypedFormControl): { [s: string]: boolean } => {\n\t\t\tif (control.value && control.value.length < length) {\n\t\t\t\treturn { minValueLengthExceded: true };\n\t\t\t}\n\t\t};\n\t}\n\n\t// ###############################################################################################################\n\t// Validations\n\tstatic validateAsEmail(email: string) {\n\t\tconst EMAIL_REGEXP = /^[a-z0-9!#$%&'*+\\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i;\n\t\tif (typeof email === 'undefined' || email === null || email === '') return true;\n\n\t\treturn email.length > 5 && EMAIL_REGEXP.test(email);\n\t}\n\n\tstatic validateAsNationalIdentityNumber(number: string, country: string) {\n\t\treturn NationalIdentityNumbers.Validator.validate(country, number, true);\n\t}\n\n\tstatic requireAtLeastOne(group: UntypedFormGroup): ValidationResult {\n\t\tlet valid: boolean = false;\n\t\tfor (const i in group.controls) {\n\t\t\tif (typeof group.controls[i].value !== 'undefined' && group.controls[i].value !== null && group.controls[i].value !== '') {\n\t\t\t\tvalid = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (valid) {\n\t\t\tfor (const i in group.controls) {\n\t\t\t\tif (group.controls[i].getError('requireAtLeastOne')) {\n\t\t\t\t\tconst errors = group.controls[i].errors;\n\t\t\t\t\tdelete errors['requireAtLeastOne'];\n\n\t\t\t\t\tlet count = 0;\n\t\t\t\t\tfor (const prop in errors) {\n\t\t\t\t\t\tif (errors.hasOwnProperty(prop)) ++count;\n\t\t\t\t\t}\n\t\t\t\t\tif (count > 0) {\n\t\t\t\t\t\tgroup.controls[i].setErrors(errors);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tgroup.controls[i].setErrors(null);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfor (const i in group.controls) {\n\t\t\t\tlet errors = group.controls[i].errors;\n\t\t\t\tif (errors === null) errors = {};\n\n\t\t\t\terrors['requireAtLeastOne'] = true;\n\t\t\t\tgroup.controls[i].setErrors(errors);\n\t\t\t}\n\n\t\t\treturn { requireAtLeastOne: true };\n\t\t}\n\t}\n\n\tstatic defaultErrorMessages = {\n\t\tincorrectIntegerValue: 'Default.InputError.IncorrectIntegerValue',\n\t\tincorrectFloatValue: 'Default.InputError.IncorrectFloatValue',\n\t\tincorrectMailFormat: 'Default.InputError.IncorrectMailFormat',\n\t\tincorrectNationalIdentityFormat: 'Default.InputError.IncorrectNationalIdentityFormat',\n\t\tincorrectMobilePhoneFormat: 'Default.InputError.IncorrectMobilePhoneFormat',\n\t\tincorrectCheckboxValue: 'Default.InputError.IncorrectCheckboxValue',\n\t\tmaxValueLengthExceded: 'Default.InputError.MaxValueLengthExceded',\n\t\tminValueLengthExceded: 'Default.InputError.MinValueLengthExceded',\n\t\tmaxNumberValueExceded: 'Default.InputError.MaxNumberValueExceded',\n\t\tminNumberValueExceeded: 'Default.InputError.MinNumberValueExceeded',\n\t\tnotEqual: 'Default.InputError.NotEqual',\n\t\trequired: 'Default.InputError.Required',\n\t\trequireAtLeastOne: 'Default.InputError.requireAtLeastOne',\n\t};\n\n\t// ###############################################################################################################\n\t// Helper functions\n\n\tstatic validateFormControl(\n\t\ttranslateService: TranslateService,\n\t\tcontrol: UntypedFormControl,\n\t\terrorMessages: { [name: string]: string } | string = 'default',\n\t): string {\n\t\tif (typeof control === 'undefined' || control === null || control.valid || errorMessages === 'none') return null;\n\n\t\tif (errorMessages === 'default') {\n\t\t\treturn translateService.get(this.defaultErrorMessages[Object.keys(control.errors)[0]]);\n\t\t} else {\n\t\t\tfor (const k in errorMessages as Object) {\n\t\t\t\tif (control.hasError(k)) {\n\t\t\t\t\treturn translateService.get(errorMessages[k]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (typeof errorMessages['default'] !== 'undefined') return translateService.get(errorMessages['default']);\n\t\t}\n\n\t\treturn null;\n\t}\n}\n\ninterface ValidationResult {\n\t[key: string]: boolean;\n}\n","export module NationalIdentityNumbers {\n\texport class Validator {\n\t\tconstructor() {}\n\n\t\tstatic validate(countryCode: string, input: string, nullable: boolean): boolean {\n\t\t\tif (\n\t\t\t\ttypeof input === 'undefined' ||\n\t\t\t\tinput === null ||\n\t\t\t\tinput === '' ||\n\t\t\t\ttypeof countryCode === 'undefined' ||\n\t\t\t\tcountryCode === null\n\t\t\t)\n\t\t\t\treturn nullable;\n\n\t\t\tconst validator = Validator[countryCode.toUpperCase()];\n\t\t\tif (typeof validator !== 'function') return false;\n\n\t\t\treturn validator.valid(input);\n\t\t}\n\n\t\tstatic supportsCountry(countryCode: string): boolean {\n\t\t\tconst validator = Validator[countryCode.toUpperCase()];\n\t\t\treturn typeof validator === 'function';\n\t\t}\n\t}\n\n\t// Implementations\n\texport module Validator {\n\t\texport class SE {\n\t\t\t// https://en.wikipedia.org/wiki/National_identification_number#Sweden\n\t\t\tstatic valid(input: string): boolean {\n\t\t\t\tvar REGEXP = /^([0-9]{6}|[0-9]{8})[-|+]?[0-9A-Z]{4}$/i;\n\t\t\t\tif (input.length < 10 || input.length > 13 || !REGEXP.test(input)) return false;\n\n\t\t\t\t// Normalize to YYYYMMDDXXXZ\n\t\t\t\tlet normalized = '';\n\t\t\t\tswitch (input.length) {\n\t\t\t\t\tcase 11: // YYMMDD?XXXZ\n\t\t\t\t\t\tvar centuryMod = input[6] === '+' ? 1 : 0;\n\t\t\t\t\t\tnormalized =\n\t\t\t\t\t\t\tMath.floor((new Date().getFullYear() - parseInt(input.substring(0, 2))) / 100) +\n\t\t\t\t\t\t\tcenturyMod +\n\t\t\t\t\t\t\tinput.substring(0, 6) +\n\t\t\t\t\t\t\tinput.substring(7);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 10: // YYMMDDXXXZ (century guessing; by the year you were born, not the birthdate)\n\t\t\t\t\t\tnormalized =\n\t\t\t\t\t\t\tMath.floor((new Date().getFullYear() - parseInt(input.substring(0, 2))) / 100) +\n\t\t\t\t\t\t\tinput.substring(0, 6) +\n\t\t\t\t\t\t\tinput.substring(6);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 12: // YYYYMMDDXXXZ\n\t\t\t\t\t\tnormalized = input;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 13: // YYYYMMDD?XXXZ\n\t\t\t\t\t\tnormalized = input.substring(0, 8) + input.substring(9);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// Apply checksum if there are no letters (expected behavior with letters is unknown)\n\t\t\t\tif (normalized.match(/[A-Z]/gi) === null && !Algorithms.luhnCheck(normalized.substring(2))) return false;\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\texport class NO {\n\t\t\t// http://www.skatteetaten.no/en/Person/National-Registry/Birth-and-name-selection/Children-born-in-Norway/National-ID-number/\n\t\t\tstatic valid(input: string): boolean {\n\t\t\t\tvar REGEXP = /^[0-9]{11}$/i;\n\t\t\t\tif (!REGEXP.test(input)) return false;\n\n\t\t\t\t// No normalization\n\t\t\t\tvar normalized = input;\n\n\t\t\t\t// Validate check digits\n\t\t\t\tif (!Algorithms.validateNorwegianBirthNumber(normalized)) return false;\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\texport class FI {\n\t\t\t// https://en.wikipedia.org/wiki/National_identification_number#Finland\n\n\t\t\tstatic valid(input: string): boolean {\n\t\t\t\tlet checksumChar = '0123456789ABCDEFHJKLMNPRSTUVWXY';\n\t\t\t\tlet normalized = input.toUpperCase();\n\n\t\t\t\tvar REGEXP = /^[0-9]{6}[-|+|A][0-9]{3}[0-9A-Z]$/i;\n\t\t\t\tif (!REGEXP.test(normalized)) return false;\n\n\t\t\t\t// Validate checksum character\n\n\t\t\t\tvar mod = parseInt(normalized.substring(0, 6) + normalized.substring(7, 10)) % 31;\n\t\t\t\tif (normalized[normalized.length - 1] !== checksumChar[mod]) return false;\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\texport class DK {\n\t\t\tprivate static Format: RegExp = new RegExp('^\\\\d{6}-(\\\\d{4}|[a-z|æ|ø|å]{4})$', 'i');\n\t\t\tprivate static TempCPRLastChars: RegExp = new RegExp('^[a-z|æ|ø|å]{4}$', 'i');\n\t\t\tprivate static IsTempCPR(input: string): boolean {\n\t\t\t\treturn DK.TempCPRLastChars.test(input.substring(7, 11));\n\t\t\t}\n\t\t\tprivate static isBirthDateValid(input: string, century: string): boolean {\n\t\t\t\tlet birthDay: Date;\n\t\t\t\tlet dateString: string = century + input.substring(4, 6) + '/' + input.substring(2, 4) + '/' + input.substring(0, 2);\n\t\t\t\tbirthDay = new Date(dateString);\n\t\t\t\tif (birthDay.toString() === 'Invalid Date' || parseInt(input.substring(2, 4)) !== birthDay.getMonth() + 1) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tstatic valid(input: string): boolean {\n\t\t\t\tlet match = DK.Format.exec(input);\n\t\t\t\tif (match === null || match.length == 0) return false;\n\t\t\t\tif (this.IsTempCPR(input)) return DK.isBirthDateValid(input, '19');\n\n\t\t\t\tlet birthCentury = Number(input[7]) > 4 ? '19' : '20';\n\t\t\t\treturn DK.isBirthDateValid(input, birthCentury);\n\t\t\t}\n\t\t}\n\n\t\texport class GB {\n\t\t\t// https://www.nhs.uk/using-the-nhs/about-the-nhs/what-is-an-nhs-number/\n\t\t\t// https://en.wikipedia.org/wiki/NHS_number\n\n\t\t\tprivate static TrimWsRegex: RegExp = /\\s+/g;\n\t\t\tprivate static ValidationRegex: RegExp = /^[0-9]{10}$/;\n\n\t\t\tstatic valid(input: string): boolean {\n\t\t\t\t// Strip all whitespace.\n\t\t\t\tconst normalizedNumber = input.replace(GB.TrimWsRegex, '');\n\n\t\t\t\t// Verify that the NHS number consists of exactly 10 ASCII digits.\n\t\t\t\tif (!GB.ValidationRegex.test(normalizedNumber))\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tlet checksum = 0;\n\n\t\t\t\t// Multiply each of the first 9 digits by 11 subtracted by their 1-based position (here,\n\t\t\t\t// it is 10 subtracted by their 0-based position for simplicity).\n\t\t\t\tfor (let i = 0; i < 9; i++)\n\t\t\t\t{\n\t\t\t\t\tchecksum += +normalizedNumber[i] * (10 - i);\n\t\t\t\t}\n\n\t\t\t\t// Get the remainder of the checksum divided by 11, then subtract 11 by the remainder to\n\t\t\t\t// get the checksum total. If the total is 11, it is considered to be 0 (done here by\n\t\t\t\t// getting the remainder of the total divided by 11).\n\t\t\t\tchecksum = (11 - (checksum % 11)) % 11;\n\n\t\t\t\t// If the total is equal to the check digit, the NHS number is valid.\n\t\t\t\treturn checksum === +normalizedNumber[9];\n\t\t\t}\n\t\t}\n\t}\n\n\tclass Algorithms {\n\t\t/**\n\t\t * Luhn algorithm in JavaScript: validate credit card number supplied as string of numbers\n\t\t * @author ShirtlessKirk. Copyright (c) 2012.\n\t\t * @license WTFPL (http://www.wtfpl.net/txt/copying)\n\t\t */\n\t\tstatic luhnCheck(input: string): boolean {\n\t\t\tconst arr = [0, 2, 4, 6, 8, 1, 3, 5, 7, 9];\n\t\t\tlet len = input.length,\n\t\t\t\tbit = 1,\n\t\t\t\tsum = 0,\n\t\t\t\tval: number;\n\n\t\t\twhile (len) {\n\t\t\t\tval = parseInt(input.charAt(--len), 10);\n\t\t\t\tsum += (bit ^= 1) ? arr[val] : val;\n\t\t\t}\n\n\t\t\treturn sum && sum % 10 === 0;\n\t\t}\n\n\t\t/// <summary>\n\t\t/// Validates a norwegian Birth Number by verifying its check digits.\n\t\t/// </summary>\n\t\tstatic validateNorwegianBirthNumber(birthNumber: any): boolean {\n\t\t\t// https://en.wikipedia.org/wiki/National_identification_number#Norway (doesn't contain detailed info)\n\t\t\t// https://github.com/miles-no/no-validation-scala/blob/master/src/main/scala/no/sand/eirik/novalidation/ValidBirthNumber.scala (implementation from here)\n\n\t\t\t// Each check digit is calculated by multiplying every digit to the left of it with\n\t\t\t// a specific factor per index, summing the result and then doing 11 - sum % 11.\n\t\t\t// If the calculated digits match those in the input number, the number is valid.\n\n\t\t\tvar digit1 = this.validateNorwegianBirthNumber_Checksum(birthNumber, [3, 7, 6, 1, 8, 9, 4, 5, 2]);\n\t\t\tvar digit2 = this.validateNorwegianBirthNumber_Checksum(birthNumber, [5, 4, 3, 2, 7, 6, 5, 4, 3, 2]);\n\n\t\t\treturn parseInt(birthNumber[9]) === digit1 && parseInt(birthNumber[10]) === digit2;\n\t\t}\n\n\t\tprivate static validateNorwegianBirthNumber_Checksum(birthNumber: any, factors: Array<number>) {\n\t\t\tlet sum = 0;\n\t\t\tlet cc0 = '0'.charAt(0) as any;\n\t\t\tfor (var n = 0; n < factors.length; n++) sum += factors[n] * (birthNumber.charAt(n) - cc0);\n\n\t\t\tlet result = 11 - (sum % 11);\n\t\t\treturn result === 11 ? 0 : result;\n\t\t}\n\t}\n}\n","import { Observable } from 'rxjs';\n\nexport class VisibaPopup {\n\tme: HTMLElement;\n\tbuttonContainer: HTMLElement = null;\n\textraButtonsContainer: Array<HTMLElement> = [];\n\tmyObserver: any;\n\n\tconstructor(private title: string, private body: string, private className: string = '') {\n\t\tthis.baseHtml();\n\t}\n\tconfirm(confirmBtn: string, cancelBtn: string, yesBtnExternalLink: string = null): VisibaPopup {\n\t\tthis.createObserver();\n\n\t\tthis.button('okRow', 'btn confirmBtn', confirmBtn, yesBtnExternalLink, () => {}, true);\n\t\tthis.button('abortRow', 'abortBtn pointer', cancelBtn, null, () => {}, false, true);\n\n\t\treturn this;\n\t}\n\n\tinform(buttonText: string): VisibaPopup {\n\t\tthis.createObserver();\n\n\t\tthis.button('okRow', 'btn', buttonText, null, () => {}, true);\n\t\tthis.addCloseButton('x');\n\t\treturn this;\n\t}\n\n\tlink(buttonText: string, url: string, external: boolean = false): VisibaPopup {\n\t\tthis.createObserver();\n\n\t\tthis.addLink('', buttonText, url, external);\n\t\treturn this;\n\t}\n\n\tpersistant(): VisibaPopup {\n\t\tthis.createObserver();\n\t\treturn this;\n\t}\n\n\t/**\n\t * Add extra button\n\t */\n\tbutton(\n\t\tcontainerCls: string,\n\t\tcls: string,\n\t\ttext: string,\n\t\texternalLink: string,\n\t\tcallback: (instance: this, element: HTMLElement, redirect?: (success: boolean, link?: string) => void) => void,\n\t\tfinishPromise: boolean | null = false,\n\t\tfailPromise: boolean | null = false,\n\t\tuseRedirect = false,\n\t): VisibaPopup {\n\t\tif (typeof this.extraButtonsContainer[containerCls] === 'undefined') {\n\t\t\tthis.extraButtonsContainer[containerCls] = document.createElement('div');\n\t\t\tthis.extraButtonsContainer[containerCls].className = 'extraButtons ' + containerCls;\n\t\t\tthis.me.querySelector('.inner').appendChild(this.extraButtonsContainer[containerCls]);\n\t\t}\n\n\t\tlet button = document.createElement('div');\n\t\tbutton.className = `${cls}`;\n\t\tif (externalLink === null) button.innerText = text;\n\t\telse button.innerHTML = '<a target=\"_blank\" href=\"' + externalLink + '\">' + text + '</a>';\n\n\t\tthis.extraButtonsContainer[containerCls].appendChild(button);\n\n\t\t// Puts \"__exposedFunction\" in the HTMLElement instance so \"removeEventListener\" can be used later.\n\n\t\tif (failPromise !== null || finishPromise !== null) {\n\t\t\tconst exposedFinishListner = () => {\n\t\t\t\tcallback.call(this, this, button);\n\n\t\t\t\tif (finishPromise) this.myObserver.next({ el: this.me });\n\t\t\t\telse if (failPromise) this.myObserver.error({ el: this.me });\n\n\t\t\t\tif (finishPromise || failPromise) this.destroy();\n\t\t\t};\n\n\t\t\tbutton['__exposedFunction'] = exposedFinishListner.bind(this);\n\n\t\t\tbutton.addEventListener('click', button['__exposedFunction']);\n\t\t} else {\n\t\t\tconst exposedCallbackListner = () => {\n\t\t\t\t// To prevent \"block of popup\" to happen after promises resolves, we must first open a new window inside this trusted event.\n\t\t\t\t// Then populate the new window's location to the desire location.\n\t\t\t\t// A regular window.open(LINK) will not work after the promise resolve - it will cause a \"block of popup\"\n\t\t\t\tlet windowOpen;\n\n\t\t\t\tif (useRedirect) {\n\t\t\t\t\twindowOpen = window.open();\n\t\t\t\t}\n\n\t\t\t\tconst redirect = (success: boolean, link: string) => {\n\t\t\t\t\tif (!useRedirect) return;\n\n\t\t\t\t\tif (success) {\n\t\t\t\t\t\twindowOpen.location.replace(link);\n\t\t\t\t\t} else {\n\t\t\t\t\t\twindowOpen.close();\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tcallback.call(this, this, button, redirect);\n\t\t\t};\n\n\t\t\tbutton['__exposedFunction'] = exposedCallbackListner.bind(this);\n\n\t\t\tbutton.addEventListener('click', button['__exposedFunction']);\n\t\t}\n\n\t\treturn this;\n\t}\n\n\tloading(): VisibaPopup {\n\t\tlet loadDiv = document.createElement('div');\n\t\tloadDiv.className = 'row loading';\n\t\tloadDiv.innerHTML = `<svg class=\"loader svg_Loader\" viewBox=\"0 0 100 100 \" style=\"transform: rotate(-90deg);\">\n <circle class=\"stroke\" cx=\"50 \" cy=\"50\" r=\"40 \" fill=\"none \" stroke-width=\"6\">\n <animate attributeName=\"stroke-dasharray\" dur=\"2s\" repeatCount=\"indefinite\" values=\"0 250; 250 50; 0 250; 0 250\" keyTimes=\"0; 0.5; 0.9; 1\"> </animate>\n <animate attributeName=\"stroke-dashoffset\" dur=\"2s\" repeatCount=\"indefinite\" values=\"0; 0; -40; -250; -250\" keyTimes=\"0; 0.3; 0.5; 0.9; 1\"> </animate>\n </circle>\n </svg>`;\n\n\t\tthis.me.querySelector('.inner').appendChild(loadDiv);\n\n\t\treturn this;\n\t}\n\n\tdisableButton(button: HTMLElement) {\n\t\tbutton.removeEventListener;\n\t}\n\n\tattatch(): VisibaPopup {\n\t\tdocument.querySelector('body').appendChild(this.me);\n\n\t\treturn this;\n\t}\n\n\telement(): HTMLElement {\n\t\treturn this.me;\n\t}\n\n\tobserver(): Observable<any> {\n\t\treturn this.myObserver;\n\t}\n\n\tdestroy(): void {\n\t\t// Interface Node -> readonly isConnected: boolean;\n\t\tif (this.me && this.me['isConnected']) {\n\t\t\tthis.me.parentElement.removeChild(this.me);\n\t\t}\n\t\tthis.me = null;\n\n\t\tif (typeof this.myObserver !== 'undefined') {\n\t\t\tthis.myObserver.complete();\n\t\t}\n\t}\n\n\t/** PRIVATE **/\n\tprivate createObserver() {\n\t\tthis.myObserver = Observable.create(observer => {\n\t\t\tthis.myObserver = observer;\n\t\t});\n\t}\n\n\tprivate baseHtml() {\n\t\tthis.me = document.createElement('div');\n\t\tthis.me.className = `visibaPopupWrap ${this.className}`;\n\t\tthis.me.innerHTML = `<div class=\"visibaPopup row\">\n <div class=\"inner span10\"></div>\n </div>`;\n\n\t\tif (this.title !== null && this.title !== '') {\n\t\t\tlet title = document.createElement('h2');\n\t\t\ttitle.innerHTML = this.title;\n\t\t\tthis.me.querySelector('.inner').appendChild(title);\n\t\t}\n\n\t\tif (this.body !== null && this.body !== '') {\n\t\t\tlet title = document.createElement('div');\n\t\t\ttitle.className = 'text';\n\t\t\ttitle.innerHTML = this.body;\n\t\t\tthis.me.querySelector('.inner').appendChild(title);\n\t\t}\n\t}\n\n\tprivate addLink(cls: string, text: string, url: string, external: boolean = false): HTMLElement {\n\t\tthis.addButtonContainer();\n\n\t\tlet btn = document.createElement('a');\n\t\tbtn.className = `btn ${cls}`;\n\t\tbtn.href = url;\n\t\tbtn.target = external ? '_blank' : '';\n\t\tbtn.innerText = text;\n\t\tthis.buttonContainer.appendChild(btn);\n\n\t\tbtn.addEventListener('click', () => {\n\t\t\tthis.myObserver.next({ el: this.me });\n\t\t\tthis.destroy();\n\t\t});\n\n\t\treturn btn;\n\t}\n\n\tprivate addButtonContainer() {\n\t\tif (this.buttonContainer === null) {\n\t\t\tthis.buttonContainer = document.createElement('div');\n\t\t\tthis.buttonContainer.className = 'buttons';\n\t\t\tthis.me.querySelector('.inner').appendChild(this.buttonContainer);\n\t\t}\n\t}\n\n\tprivate addCloseButton(text: string): HTMLElement {\n\t\tlet btn = document.createElement('a');\n\t\tbtn.className = 'close';\n\t\tbtn.innerText = text;\n\t\tthis.me.querySelector('.inner').appendChild(btn);\n\n\t\tbtn.addEventListener('click', () => {\n\t\t\tthis.myObserver.error({ el: this.me });\n\t\t\tthis.destroy();\n\t\t});\n\n\t\treturn btn;\n\t}\n}\n","import { Component, Input, Output, EventEmitter, HostListener, ChangeDetectorRef } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\n\n@Component({\n\tstandalone: false,\n\tselector: 'image-viewer',\n\ttemplate: `\n\t\t<div class=\"overlay\" (click)=\"close()\"></div>\n\t\t<div class=\"file\" (click)=\"close()\">\n\t\t\t<ng-container *ngIf=\"item?.type?.indexOf('image') === -1\">\n\t\t\t\t<visiba-svg a=\"File\"></visiba-svg>\n\t\t\t\t<p class=\"fileName\">{{ item.fileName }}</p>\n\t\t\t</ng-container>\n\n\t\t\t<ng-container *ngIf=\"item?.type?.indexOf('image') > -1\">\n\t\t\t\t<img\n\t\t\t\t\tid=\"GaleryViewImage\"\n\t\t\t\t\t[src]=\"viewUrl\"\n\t\t\t\t\talt=\"\"\n\t\t\t\t\t(click)=\"stopClickThrough($event); (false)\"\n\t\t\t\t\t(load)=\"setPlaceOnImageResolution()\"\n\t\t\t\t/>\n\t\t\t</ng-container>\n\n\t\t\t<visiba-svg *ngIf=\"item?.type?.indexOf('image') > -1 && !imageElement\" a=\"Loader\"></visiba-svg>\n\n\t\t\t<div\n\t\t\t\tclass=\"placeOnImage\"\n\t\t\t\t[style.width.px]=\"imageElement?.clientWidth\"\n\t\t\t\t[style.height.px]=\"imageElement?.clientHeight\"\n\t\t\t\t(click)=\"cancelRemoval(); stopClickThrough($event); (false)\"\n\t\t\t>\n\t\t\t\t<div class=\"ViewElements\" (window:keydown)=\"onKey($event)\">\n\t\t\t\t\t<div class=\"meta\">\n\t\t\t\t\t\t<div *ngIf=\"item.uploader != null\">\n\t\t\t\t\t\t\t{{ 'Component.FileViewer.Phrase.ImageUploadedBy' | translate: { name: item.uploader } : 1 }}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"pointer\" *ngIf=\"item.downloadUrl != null\" (click)=\"downloadImage(item.downloadUrl)\">\n\t\t\t\t\t\t\t<a>{{ 'Component.FileViewer.Button.Download' | translate }}</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"closeHolder\">\n\t\t\t\t\t\t<span class=\"index\">{{\n\t\t\t\t\t\t\t'Component.FileViewer.Phrase.FileIndex' | translate: { current: activeFileInd + 1, total: images?.length } : 1\n\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t<visiba-svg a=\"XCircle\" (click)=\"close()\"></visiba-svg>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div (click)=\"select(-1); stopClickThrough($event); (false)\" *ngIf=\"activeFileInd > 0\" class=\"nav prev\">\n\t\t\t\t\t\t<visiba-svg a=\"ArrowLeft\"></visiba-svg>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div (click)=\"select(1); stopClickThrough($event); (false)\" *ngIf=\"images?.length > activeFileInd + 1\" class=\"nav next\">\n\t\t\t\t\t\t<visiba-svg a=\"ArrowRight\"></visiba-svg>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"removeImage\" *ngIf=\"this.onRemove.observers?.length > 0\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"trashIcon\"\n\t\t\t\t\t\t\t[style.transform]=\"isRemoveStepOneComplete ? 'scale(1.2)' : 'scale(1)'\"\n\t\t\t\t\t\t\t(click)=\"removeImage(); stopClickThrough($event); (false)\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<visiba-svg a=\"Trashcan\"></visiba-svg>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<p *ngIf=\"!isRemoveStepOneComplete\">{{ 'Common.Button.Delete' | translate }}</p>\n\t\t\t\t\t\t<p *ngIf=\"isRemoveStepOneComplete\">{{ 'Component.FileViewer.Phrase.DeleteConfirm' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<img class=\"preload\" *ngIf=\"images?.length > activeFileInd + 1\" [src]=\"images[activeFileInd + 1].viewUrl\" alt=\"\" />\n\t\t\t<img class=\"preload\" *ngIf=\"activeFileInd > 0\" [src]=\"images[activeFileInd - 1].viewUrl\" alt=\"\" />\n\t\t</div>\n\t`,\n})\nexport class ImageViewerComponent {\n\t@Input('images') images: Array<any>;\n\t@Input('startIndex') activeFileInd: number = 0;\n\t@Output() onClose = new EventEmitter();\n\t@Output() onRemove = new EventEmitter<number>();\n\timageElement: HTMLElement;\n\n\tisRemoveStepOneComplete: boolean = false;\n\titem: any;\n\tviewUrl: any;\n\n\tconstructor(\n\t\tprivate _changeDetectorRef: ChangeDetectorRef,\n\t\tprivate http: HttpClient,\n\t) {}\n\tngOnInit() {\n\t\tthis.selectPicture();\n\t}\n\n\t@HostListener('window:resize', ['$event.target'])\n\tonWindowResize(event: any) {\n\t\tthis._changeDetectorRef.detectChanges();\n\t}\n\n\tsetPlaceOnImageResolution() {\n\t\tthis.imageElement = document.getElementById('GaleryViewImage');\n\t}\n\n\tselectPicture() {\n\t\tif (this.activeFileInd >= 0 && this.activeFileInd < this.images.length) {\n\t\t\tthis.item = this.images[this.activeFileInd];\n\t\t\tthis.viewUrl = this.item.viewUrl;\n\t\t}\n\t}\n\n\tselect(dir: number) {\n\t\tthis.activeFileInd = Math.max(0, Math.min(this.images.length - 1, this.activeFileInd + dir));\n\t\tthis.isRemoveStepOneComplete = false;\n\t\tthis.selectPicture();\n\t}\n\tclose() {\n\t\tthis.onClose.emit();\n\t}\n\tstopClickThrough(e: any) {\n\t\te.stopPropagation();\n\t}\n\tonKey(e: any) {\n\t\tif (e.keyCode === 37) {\n\t\t\tthis.select(-1);\n\t\t} else if (e.keyCode === 39) {\n\t\t\tthis.select(1);\n\t\t}\n\t}\n\tremoveImage() {\n\t\tif (this.isRemoveStepOneComplete === false) {\n\t\t\tthis.isRemoveStepOneComplete = true;\n\t\t\treturn;\n\t\t}\n\t\tthis.onRemove.emit(this.activeFileInd);\n\t\tthis.isRemoveStepOneComplete = false;\n\n\t\tif (this.activeFileInd !== 0) {\n\t\t\tthis.activeFileInd -= 1;\n\t\t}\n\n\t\tif (this.images.length === 0) {\n\t\t\tthis.onClose.emit();\n\t\t}\n\t\tthis.selectPicture();\n\t}\n\tcancelRemoval() {\n\t\tthis.isRemoveStepOneComplete = false;\n\t}\n\n\tdownloadImage(imageUrl: string) {\n\t\tthis.http\n\t\t\t.get(imageUrl, {\n\t\t\t\twithCredentials: true,\n\t\t\t\tobserve: 'response',\n\t\t\t\tresponseType: 'blob',\n\t\t\t})\n\t\t\t.subscribe(\n\t\t\t\t(response) => {\n\t\t\t\t\tconst filenameRegex = /filename=\"(.*?)\"/gi;\n\t\t\t\t\tconst uuidRegex = /http.+\\/(.*)/gi;\n\n\t\t\t\t\tlet filename = '';\n\n\t\t\t\t\tconst contentDisposition = response.headers.get('Content-Disposition');\n\n\t\t\t\t\tif (contentDisposition) {\n\t\t\t\t\t\tconst filenameMatch = filenameRegex.exec(contentDisposition);\n\n\t\t\t\t\t\t// Using [1] to get the group value\n\t\t\t\t\t\tif (filenameMatch !== null && filenameMatch[1]) {\n\t\t\t\t\t\t\tfilename = filenameMatch[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// If the contentDisposition getting fails, default to uuid and in worst cast just\n\t\t\t\t\t// call it \"picture\"\n\t\t\t\t\tif (filename === '') {\n\t\t\t\t\t\tconst uuidMatch = uuidRegex.exec(imageUrl);\n\n\t\t\t\t\t\t// Using [1] to get the group value\n\t\t\t\t\t\tif (uuidMatch !== null && uuidMatch[1]) {\n\t\t\t\t\t\t\tfilename = uuidMatch[1];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfilename = 'picture';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tconst blobUrl = URL.createObjectURL(response.body);\n\t\t\t\t\tconst link = document.createElement('a');\n\t\t\t\t\tlink.href = blobUrl;\n\t\t\t\t\tlink.download = filename;\n\t\t\t\t\tdocument.body.appendChild(link);\n\t\t\t\t\tlink.click();\n\t\t\t\t\tdocument.body.removeChild(link);\n\t\t\t\t},\n\t\t\t\t(error) => {},\n\t\t\t);\n\t}\n}\n\nexport module ImageViewerComponent {\n\texport class image {\n\t\tconstructor(\n\t\t\tpublic viewUrl: string = null,\n\t\t\tpublic uploader: string = null,\n\t\t\tpublic downloadUrl: string = null,\n\t\t\tpublic fileName: string = null,\n\t\t\tpublic type: string = null,\n\t\t) {}\n\t}\n}\n","import { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport { IcdCode } from '../Models/Api/Models/IcdCode';\nimport { Component, Output, Input, EventEmitter, forwardRef, ElementRef, ViewChild, Injector } from '@angular/core';\nimport { NG_VALUE_ACCESSOR, NgControl, FormControl } from '@angular/forms';\nimport { GlobalValidator } from '../Classes/globalValidator';\nimport { SpaContext } from 'Public_old/src/app/Classes/spacontext';\nimport { RedRobinService } from 'Public_old/src/app/Services/red-robin.service';\nimport { OutcomesService } from '../../Services/outcomes.service';\n\ninterface IcdOption extends IcdCode {\n\tselected: boolean;\n}\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-icd',\n\ttemplate: `\n\t\t<div class=\"subSection\">\n\t\t\t<div class=\"wallInput wallStyling inputWrap\" [class.hasIcon]=\"icon != null\">\n\t\t\t\t<input\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t[readonly]=\"false\"\n\t\t\t\t\t[(ngModel)]=\"searchValue\"\n\t\t\t\t\t[placeholder]=\"localPlaceholder\"\n\t\t\t\t\t(ngModelChange)=\"search($event)\"\n\t\t\t\t\t(click)=\"handleSearchbarClicked()\"\n\t\t\t\t\t(keydown.arrowdown)=\"arrowMove(1); prevent($event)\"\n\t\t\t\t\t(keydown.arrowup)=\"arrowMove(-1); prevent($event)\"\n\t\t\t\t\t(keyup.esc)=\"closeList()\"\n\t\t\t\t\t(keyup.enter)=\"showOptions === true ? selectOption(targetedOption) : openList(); prevent($event)\"\n\t\t\t\t\t(keydown.enter)=\"prevent($event)\"\n\t\t\t\t\t(blur)=\"blur()\"\n\t\t\t\t/>\n\n\t\t\t\t<div #ulWrap class=\"ulWrap\" [hidden]=\"!showOptions\">\n\t\t\t\t\t<div\n\t\t\t\t\t\t*ngFor=\"let entry of matchedIcdCodes\"\n\t\t\t\t\t\t[class.targeted]=\"targetedOption?.Entry === entry.Entry\"\n\t\t\t\t\t\t(mouseover)=\"mouseoverOption(entry)\"\n\t\t\t\t\t\t(click)=\"selectOption(entry)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"code\">{{ entry.Code }}</span>\n\t\t\t\t\t\t<span class=\"desc\">{{ entry.Description }}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"subSection\">\n\t\t\t<div *ngFor=\"let entry of searchedDiagnoses\">\n\t\t\t\t<visiba-input\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t[(ngModel)]=\"entry.selected\"\n\t\t\t\t\t(ngModelChange)=\"this.handleEntryChanged()\"\n\t\t\t\t\t[staticplaceholder]=\"entry.Entry\"\n\t\t\t\t></visiba-input>\n\t\t\t</div>\n\t\t</div>\n\t\t<!-- If RR -->\n\t\t<ng-container *ngIf=\"showRRContent\">\n\t\t\t<div class=\"subSection\">\n\t\t\t\t<div class=\"textblock margin-bottom\">\n\t\t\t\t\t{{ 'LicenceHolder.AppointmentEvaluation.Title.DiagnosisSuggestions' | translate }}\n\t\t\t\t</div>\n\t\t\t\t<div *ngFor=\"let entry of suggestedDiagnoses\">\n\t\t\t\t\t<visiba-input\n\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t[(ngModel)]=\"entry.selected\"\n\t\t\t\t\t\t(ngModelChange)=\"this.handleEntryChanged()\"\n\t\t\t\t\t\t[staticplaceholder]=\"entry.Entry\"\n\t\t\t\t\t></visiba-input>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"subSection\">\n\t\t\t\t<div class=\"textblock margin-bottom\">\n\t\t\t\t\t{{ 'LicenceHolder.AppointmentEvaluation.Title.RDiagnosisSuggestions' | translate }}\n\t\t\t\t</div>\n\t\t\t\t<div *ngFor=\"let entry of suggestedSymptomDiagnoses\">\n\t\t\t\t\t<visiba-input\n\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t[(ngModel)]=\"entry.selected\"\n\t\t\t\t\t\t(ngModelChange)=\"this.handleEntryChanged()\"\n\t\t\t\t\t\t[staticplaceholder]=\"entry.Entry\"\n\t\t\t\t\t></visiba-input>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-container>\n\t`,\n\thost: {},\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: forwardRef(() => VisibaICDComponent),\n\t\t\tmulti: true,\n\t\t},\n\t],\n})\nexport class VisibaICDComponent {\n\t@Input() icon: string = null;\n\t@Input() placeholder = '';\n\t@Input() errorMessages: { [name: string]: string } | string = 'default';\n\t@Output() onChange = new EventEmitter<IcdCode[]>();\n\t@Output('blur') onBlurEvent = new EventEmitter();\n\t@ViewChild('ulWrap', { static: false }) ulWrap: ElementRef;\n\n\tpublic localPlaceholder: string = null;\n\tpublic targetedOption: IcdCode = null;\n\tpublic showOptions = false;\n\tpublic currentError: string = null;\n\tpublic searchValue = '';\n\n\tpublic suggestedDiagnoses: IcdOption[] = [];\n\tpublic suggestedSymptomDiagnoses: IcdOption[] = [];\n\tpublic searchedDiagnoses: IcdOption[] = [];\n\n\tpublic matchedIcdCodes: IcdCode[] = [];\n\tpublic showRRContent = false;\n\n\tprivate debounceTimer = null;\n\n\tconstructor(\n\t\tpublic spaContext: SpaContext,\n\t\tprivate elementRef: ElementRef,\n\t\tprivate outcomesService: OutcomesService,\n\t\tprivate injector: Injector,\n\t\tprivate translateService: TranslateService,\n\t\tprivate redRobinService: RedRobinService,\n\t) {}\n\n\tpublic ngOnInit(): void {\n\t\tthis.localPlaceholder = this.translateService.get(this.placeholder);\n\t}\n\n\tpublic getRRSessionsOutcomes(RRsessionId: string): void {\n\t\tthis.redRobinService.getSessionOutcome(RRsessionId).subscribe(\n\t\t\t(response) => {\n\t\t\t\tconst unsortedSuggestedDiagnoses: IcdCode[] = [];\n\t\t\t\tconst unsortedSuggestedSymptomDiagnoses: IcdCode[] = [];\n\t\t\t\tresponse.diagnoses.forEach((diagnose) => {\n\t\t\t\t\tconst icdCode = <IcdCode>{\n\t\t\t\t\t\tCode: diagnose.icd10,\n\t\t\t\t\t\tDescription: diagnose.name,\n\t\t\t\t\t\tEntry: `${diagnose.icd10} ${diagnose.name}`,\n\t\t\t\t\t\tProbability: diagnose.probability,\n\t\t\t\t\t\tSuggestedFromRedRobin: true,\n\t\t\t\t\t};\n\t\t\t\t\tunsortedSuggestedDiagnoses.push(icdCode);\n\t\t\t\t});\n\t\t\t\tresponse.symptomDiagnoses.forEach((diagnose) => {\n\t\t\t\t\tconst icdCode = <IcdCode>{\n\t\t\t\t\t\tCode: diagnose.icd10,\n\t\t\t\t\t\tDescription: diagnose.name,\n\t\t\t\t\t\tEntry: `${diagnose.icd10} ${diagnose.name}`,\n\t\t\t\t\t\tProbability: diagnose.probability,\n\t\t\t\t\t\tSuggestedFromRedRobin: true,\n\t\t\t\t\t};\n\t\t\t\t\tunsortedSuggestedSymptomDiagnoses.push(icdCode);\n\t\t\t\t});\n\n\t\t\t\tthis.suggestedDiagnoses = this.sortDiagnosesOnProbabilityDescending(unsortedSuggestedDiagnoses).map((diagnose) => {\n\t\t\t\t\treturn { ...diagnose, selected: false };\n\t\t\t\t});\n\t\t\t\tthis.suggestedSymptomDiagnoses = this.sortDiagnosesOnProbabilityDescending(unsortedSuggestedSymptomDiagnoses).map(\n\t\t\t\t\t(diagnose) => {\n\t\t\t\t\t\treturn { ...diagnose, selected: false };\n\t\t\t\t\t},\n\t\t\t\t);\n\n\t\t\t\tthis.showRRContent = true;\n\t\t\t},\n\t\t\t() => {\n\t\t\t\t// noop\n\t\t\t},\n\t\t);\n\t}\n\n\tpublic writeValue(): void {\n\t\t// noop\n\t}\n\t//Call to push value\n\tpublic propagateChange = (_: unknown): void => {\n\t\t// noop\n\t};\n\tpublic registerOnChange(fn: (_: unknown) => void): void {\n\t\tthis.propagateChange = fn;\n\t}\n\tpublic registerOnTouch(): void {\n\t\t// noop\n\t}\n\tpublic registerOnTouched(): void {\n\t\t// noop\n\t}\n\n\tpublic emitValue(val: IcdCode[]): void {\n\t\tthis.propagateChange(val);\n\n\t\tthis.handleErrors();\n\n\t\tif (typeof this.onChange !== 'undefined') {\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tthis.onChange.emit(val);\n\t\t\t}, 10);\n\t\t}\n\t}\n\n\tpublic handleErrors(): void {\n\t\tthis.currentError = GlobalValidator.validateFormControl(\n\t\t\tthis.translateService,\n\t\t\tthis.injector.get(NgControl).control as FormControl,\n\t\t\tthis.errorMessages,\n\t\t);\n\t}\n\n\tpublic blur(): void {\n\t\twindow.setTimeout(() => {\n\t\t\tif (this.showOptions) {\n\t\t\t\tthis.blur();\n\t\t\t} else {\n\t\t\t\tthis.onBlurEvent.emit();\n\t\t\t}\n\t\t}, 10);\n\t}\n\n\tpublic mouseoverOption(option: IcdCode): void {\n\t\tthis.targetedOption = option;\n\t}\n\n\tpublic selectOption(option: IcdCode): void {\n\t\tif (!option) return;\n\t\tthis.addIcdCode(option);\n\t\tthis.closeList();\n\t\tthis.searchValue = '';\n\t\tthis.emitValue(this.getChosenDiagnoses());\n\t}\n\n\tpublic search(text: string): void {\n\t\tif (text.length <= 2) {\n\t\t\tthis.matchedIcdCodes = [];\n\t\t} else {\n\t\t\tif (this.debounceTimer) clearTimeout(this.debounceTimer);\n\n\t\t\tthis.debounceTimer = setTimeout(() => {\n\t\t\t\tthis.outcomesService.searchIcdCodes(text, 15).subscribe((searchResults) => {\n\t\t\t\t\tthis.matchedIcdCodes = searchResults.data.filter((code) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t!this.searchedDiagnoses.find((searched) => searched.Code === code.Code) &&\n\t\t\t\t\t\t\t!this.suggestedDiagnoses.find((suggested) => suggested.Code === code.Code)\n\t\t\t\t\t\t);\n\t\t\t\t\t});\n\n\t\t\t\t\tif (this.matchedIcdCodes.length > 0) {\n\t\t\t\t\t\tthis.openList();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.closeList();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}, 250);\n\t\t}\n\t}\n\n\tpublic handleSearchbarClicked(): void {\n\t\tif (this.showOptions) {\n\t\t\tthis.closeList();\n\t\t} else {\n\t\t\tthis.search(this.searchValue);\n\t\t}\n\t}\n\n\tpublic openList(): void {\n\t\tif (this.showOptions || this.matchedIcdCodes.length === 0) return;\n\n\t\tthis.showOptions = true;\n\t\twindow.setTimeout(() => {\n\t\t\tconst doc = document.getElementsByTagName('html')[0];\n\t\t\tdoc.addEventListener('click', this.listClickCheck, false);\n\t\t});\n\t}\n\tpublic listClickCheck(event: Event): void {\n\t\tif (\n\t\t\tthis.showOptions &&\n\t\t\tevent.target &&\n\t\t\tthis.elementRef.nativeElement !== event.target &&\n\t\t\t!this.elementRef.nativeElement.contains(event.target)\n\t\t) {\n\t\t\tthis.closeList();\n\t\t}\n\t}\n\n\tpublic closeList(): void {\n\t\tthis.showOptions = false;\n\t\tconst doc = document.getElementsByTagName('html')[0];\n\t\tdoc.removeEventListener('click', this.listClickCheck, false);\n\t\tthis.targetedOption = null;\n\t}\n\n\tpublic arrowMove(direction: number): void {\n\t\tlet pos = -1;\n\t\tif (this.targetedOption.Entry !== null)\n\t\t\tpos = this.matchedIcdCodes.map((IcdCode) => IcdCode.Entry).indexOf(this.targetedOption.Entry);\n\n\t\tconst newPos = pos + direction;\n\n\t\tif (newPos >= 0 && newPos < this.matchedIcdCodes.length) this.targetedOption = this.matchedIcdCodes[newPos];\n\n\t\tthis.openList();\n\n\t\tconst targetElement = this.ulWrap.nativeElement.querySelector('.targeted');\n\t\tif (targetElement !== null) {\n\t\t\tthis.ulWrap.nativeElement.scrollTop = targetElement.offsetTop - targetElement.clientHeight;\n\t\t}\n\t}\n\n\tpublic addIcdCode(icdCode: IcdCode): void {\n\t\tif (this.suggestedDiagnoses.find((c) => c.Code === icdCode.Code)) this.suggestedDiagnoses.push({ ...icdCode, selected: true });\n\t\telse if (this.suggestedSymptomDiagnoses.find((c) => c.Code === icdCode.Code))\n\t\t\tthis.suggestedSymptomDiagnoses.push({ ...icdCode, selected: true });\n\t\telse this.searchedDiagnoses.push({ ...icdCode, selected: true });\n\t}\n\n\tpublic getChosenDiagnoses(): IcdCode[] {\n\t\tconst selectedCodes = [...this.suggestedDiagnoses, ...this.suggestedSymptomDiagnoses, ...this.searchedDiagnoses].filter(\n\t\t\t(code) => code.selected,\n\t\t);\n\n\t\treturn selectedCodes;\n\t}\n\n\tpublic handleEntryChanged(): void {\n\t\tthis.emitValue(this.getChosenDiagnoses());\n\t}\n\n\tpublic prevent(event: KeyboardEvent): void {\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t}\n\n\tprivate sortDiagnosesOnProbabilityDescending(unsorted: IcdCode[]): IcdCode[] {\n\t\tconst sorted = unsorted.sort((a, b) => b.Probability - a.Probability);\n\n\t\treturn sorted;\n\t}\n}\n","import { Component, ElementRef, Input } from '@angular/core';\n\n@Component({\n\tstandalone: false,\n\tselector: 'save-btn',\n\ttemplate: /*language=html*/ `\n\t\t<button\n\t\t\t[tabindex]=\"tabInd\"\n\t\t\tclass=\"btn\"\n\t\t\t[class.disabled]=\"readonly\"\n\t\t\t[class.error]=\"error\"\n\t\t\t[class.errorWithText]=\"errorText != null\"\n\t\t>\n\t\t\t<div [hidden]=\"loading || success || error\"><ng-content></ng-content></div>\n\t\t\t<div class=\"inner\" *ngIf=\"loading\"><visiba-svg a=\"Loader\"></visiba-svg>{{ 'Common.Button.Saving' | translate }}...</div>\n\t\t\t<div class=\"inner\" *ngIf=\"success\"><visiba-svg a=\"CheckWithCircle\"></visiba-svg>{{ 'Common.Button.Saved' | translate }}</div>\n\t\t\t<svg *ngIf=\"error\" viewBox=\"0 0 200 200\" (click)=\"errorText = null\">\n\t\t\t\t<path\n\t\t\t\t\tclass=\"fill\"\n\t\t\t\t\td=\"M160.423,155.475l-8.099,8.131c-2.449,2.459-6.429,2.46-8.88,0.003l-45.071-45.192l-45.071,45.192\n\t\t c-2.45,2.457-6.431,2.456-8.88-0.003l-8.1-8.131c-2.438-2.447-2.436-6.405,0.003-8.851l44.901-45.023L36.325,56.58\n\t\t c-2.439-2.446-2.44-6.404-0.003-8.851l8.1-8.131c2.449-2.459,6.429-2.46,8.88-0.003l45.071,45.192l45.071-45.192\n\t\t c2.451-2.457,6.431-2.456,8.88,0.003l8.099,8.131c2.438,2.447,2.436,6.405-0.003,8.851l-44.901,45.022l44.901,45.023\n\t\t C162.859,149.07,162.86,153.028,160.423,155.475z\"\n\t\t\t\t></path>\n\t\t\t</svg>\n\t\t</button>\n\t\t<div class=\"errorText\" *ngIf=\"errorText != null\" [class.left]=\"errorTextLeft\">\n\t\t\t<svg class=\"svg_X\" viewBox=\"0 0 200 200\" (click)=\"errorText = null\">\n\t\t\t\t<path\n\t\t\t\t\tclass=\"fill\"\n\t\t\t\t\td=\"M160.423,155.475l-8.099,8.131c-2.449,2.459-6.429,2.46-8.88,0.003l-45.071-45.192l-45.071,45.192\n\t\t c-2.45,2.457-6.431,2.456-8.88-0.003l-8.1-8.131c-2.438-2.447-2.436-6.405,0.003-8.851l44.901-45.023L36.325,56.58\n\t\t c-2.439-2.446-2.44-6.404-0.003-8.851l8.1-8.131c2.449-2.459,6.429-2.46,8.88-0.003l45.071,45.192l45.071-45.192\n\t\t c2.451-2.457,6.431-2.456,8.88,0.003l8.099,8.131c2.438,2.447,2.436,6.405-0.003,8.851l-44.901,45.022l44.901,45.023\n\t\t C162.859,149.07,162.86,153.028,160.423,155.475z\"\n\t\t\t\t></path>\n\t\t\t</svg>\n\t\t\t<div class=\"arrow\"></div>\n\t\t\t<div>{{ errorText }}</div>\n\t\t</div>\n\t`,\n\thost: {\n\t\t'[class.readonly]': 'readonly',\n\t},\n})\nexport class VisibaSaveButtonComponent {\n\t@Input() tabInd: number = 0;\n\t@Input() action: string = 'save';\n\t@Input() loading: boolean = false;\n\t@Input() readonly: boolean = false;\n\t@Input() success: boolean = false;\n\t@Input() error: boolean = false;\n\t@Input() errorText: string = null;\n\n\terrorTextLeft: boolean = false;\n\ttimer: number = null;\n\n\tconstructor(private _elem: ElementRef) {}\n\n\tnormalizeTimer(seconds) {\n\t\tthis.timer = window.setTimeout(() => {\n\t\t\tthis.normalize();\n\t\t}, seconds * 1000);\n\t}\n\n\tnormalize() {\n\t\tthis.loading = false;\n\t\tthis.success = false;\n\t\tthis.error = false;\n\t\tthis.errorText = null;\n\t}\n\n\tisLoading() {\n\t\tthis.normalize();\n\t\tthis.loading = true;\n\t}\n\n\tisSuccess() {\n\t\tthis.normalize();\n\t\tthis.success = true;\n\t\tthis.normalizeTimer(3);\n\t}\n\n\tisError(message: string = null, autoCheckErrorPosition: boolean = true) {\n\t\tthis.normalize();\n\t\tif (message === null) {\n\t\t\tthis.normalizeTimer(3);\n\t\t\tthis.error = true;\n\t\t} else {\n\t\t\tthis.errorText = message;\n\t\t\tthis.normalizeTimer(200);\n\n\t\t\tif (autoCheckErrorPosition) this.checkErrorTextPosition();\n\t\t}\n\t}\n\n\tcheckErrorTextPosition() {\n\t\tthis.errorTextLeft = false;\n\t\tlet elRects = this._elem.nativeElement.getClientRects()[0];\n\t\tif (!elRects) return;\n\t\tif (document.body.clientWidth < elRects.left + elRects.width + 160) this.errorTextLeft = true;\n\t}\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class VisibaSvgIconRepository {\n\tget(name: string): { viewBox: string; style: string; html: string } {\n\t\treturn name in this.iconList ? this.iconList[name] : this.iconNotFoundSvg;\n\t}\n\n\tgetIconsArray(): Array<string> {\n\t\treturn Object.keys(this.iconList);\n\t}\n\n\tprivate iconNotFoundSvg = {\n\t\tviewBox: '0 0 100 100',\n\t\tstyle: null,\n\t\thtml: `<circle cx=\"50\" cy=\"50\" r=\"40\" stroke=\"black\" stroke-width=\"3\" fill=\"red\" />`,\n\t};\n\n\tprivate iconList: { [name: string]: { viewBox: string; style: string; html: string } } = {\n\t\tArrowDown: {\n\t\t\tviewBox: '0 0 56.7 32.9',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <polygon class=\"fill\" points=\"0 3.4 28.3 32.8 28.3 32.9 28.35 32.85 28.4 32.9 28.4 32.8 56.7 3.4 52.2 0 28.35 23.75 4.5 0 0 3.4\"/>\n `,\n\t\t},\n\t\tArrowRight: {\n\t\t\tviewBox: '0 0 32.9 56.7',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <polygon class=\"fill\" points=\"3.4 56.7 32.8 28.4 32.9 28.4 32.85 28.35 32.9 28.3 32.8 28.3 3.4 0 0 4.5 23.75 28.35 0 52.2 3.4 56.7\"/>\n `,\n\t\t},\n\t\tArrowLeft: {\n\t\t\tviewBox: '0 0 32.9 56.7',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <polygon class=\"fill\" points=\"29.5 0 0.1 28.3 0 28.3 0.05 28.35 0 28.4 0.1 28.4 29.5 56.7 32.9 52.2 9.15 28.35 32.9 4.5 29.5 0\"/>\n `,\n\t\t},\n\t\tArrowUp: {\n\t\t\tviewBox: '0 0 56.7 32.9',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <polygon class=\"fill\" points=\"56.7 29.5 28.4 0.1 28.4 0 28.35 0.05 28.3 0 28.3 0.1 0 29.5 4.5 32.9 28.35 9.15 52.2 32.9 56.7 29.5\"/>\n `,\n\t\t},\n\t\tCheckWithCircle: {\n\t\t\tviewBox: '0 0 100 100',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M50,0a50,50,0,1,0,50,50A50,50,0,0,0,50,0M85.88,38.71,54.57,70h0l-14,14h0l-14-14h0L14.12,57.67a4.54,4.54,0,0,1,0-6.42l7.63-7.63a4.54,4.54,0,0,1,6.42,0L40.52,56,71.83,24.66a4.54,4.54,0,0,1,6.42,0l7.63,7.63a4.54,4.54,0,0,1,0,6.42\" transform=\"translate(0 0)\"/>\n `,\n\t\t},\n\t\tPhysicalLocation: {\n\t\t\tviewBox: '0 0 256 256',\n\t\t\tstyle: null,\n\t\t\thtml: `\n\t\t\t\t\t<path class=\"fill\" d=\"M167.26,121.46V42.94L128,3.68,88.74,42.94V69.11H10.23V252.32H245.77V121.46ZM62.57,226.14H36.4V200H62.57Zm0-52.34H36.4V147.63H62.57Zm0-52.34H36.4V95.29H62.57Zm78.52,104.68H114.91V200h26.18Zm0-52.34H114.91V147.63h26.18Zm0-52.34H114.91V95.29h26.18Zm0-52.35H114.91V42.94h26.18Zm78.51,157H193.43V200H219.6Zm0-52.34H193.43V147.63H219.6Z\"/>\n\t\t\t`,\n\t\t},\n\t\tFullScreenCircleOpen: {\n\t\t\tviewBox: '0 0 200 200',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M100,0C44.772,0,0,44.772,0,100s44.772,100,100,100s100-44.772,100-100S155.228,0,100,0z M80.558,62.374L94.015,75.83\n c0.824,0.825,0.824,2.162-0.001,2.988L78.297,94.535c-0.824,0.824-2.162,0.824-2.987,0L61.853,81.079\n c-0.825-0.824-2.162-0.825-2.987,0l-13.738,13.74c-1.273,1.273-3.452,0.471-3.598-1.323l-4.34-53.508\n c-0.105-1.298,0.978-2.381,2.276-2.275l53.508,4.34c1.795,0.145,2.595,2.325,1.322,3.598L80.559,59.387\n C79.733,60.212,79.734,61.549,80.558,62.374z M160.533,162.287l-53.508-4.34c-1.795-0.146-2.595-2.325-1.322-3.598l13.739-13.738\n c0.825-0.824,0.825-2.161,0-2.986l-13.456-13.456c-0.824-0.824-0.824-2.162,0.001-2.987l15.718-15.718\n c0.825-0.824,2.162-0.825,2.987,0l13.457,13.456c0.825,0.824,2.161,0.825,2.987-0.001l13.738-13.739\n c1.273-1.273,3.453-0.471,3.597,1.322l4.341,53.508C162.913,161.31,161.83,162.393,160.533,162.287z\"/>\n `,\n\t\t},\n\t\tFullScreenCircleClose: {\n\t\t\tviewBox: '0 0 200 200',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M100,0C44.772,0,0,44.772,0,100s44.772,100,100,100s100-44.772,100-100S155.228,0,100,0z M89.081,91.782l-51.69-4.192\n c-1.734-0.141-2.507-2.246-1.277-3.476l13.272-13.271c0.797-0.796,0.797-2.088,0-2.884l-12.999-13c-0.796-0.796-0.796-2.089,0-2.885\n L51.571,36.89c0.796-0.796,2.088-0.796,2.885,0l12.999,12.999c0.797,0.796,2.088,0.797,2.885,0l13.271-13.273\n c1.23-1.23,3.335-0.455,3.476,1.278l4.193,51.688C91.381,90.838,90.334,91.884,89.081,91.782z M150.615,132.042l12.999,12.999\n c0.796,0.796,0.796,2.089,0,2.885L148.43,163.11c-0.796,0.796-2.089,0.797-2.885,0.001l-12.999-13\n c-0.797-0.796-2.088-0.796-2.885,0.001l-13.271,13.272c-1.23,1.23-3.335,0.456-3.476-1.277l-4.193-51.689\n c-0.102-1.255,0.945-2.301,2.198-2.199l51.69,4.192c1.734,0.141,2.507,2.246,1.277,3.476l-13.272,13.271\n C149.818,129.953,149.818,131.245,150.615,132.042z\" />\n `,\n\t\t},\n\t\tCameraCircleOn: {\n\t\t\tviewBox: '0 0 100 100',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M99.93,47.4A50,50,0,1,0,47.4,99.93,50.19,50.19,0,0,0,99.93,47.4M70.52,71.84A1.55,1.55,0,0,1,69,73.38H16.11a1.55,1.55,0,0,1-1.55-1.55V28.16a1.55,1.55,0,0,1,1.55-1.55H69a1.55,1.55,0,0,1,1.55,1.55Zm17.1-1.64c0,.85-.55,1.12-1.22.59L74.06,61.12a3.6,3.6,0,0,1-1.22-2.5V41.39a3.61,3.61,0,0,1,1.22-2.5L86.4,29.21c.67-.53,1.22-.26,1.22.59Z\" transform=\"translate(0 0)\"/>\n `,\n\t\t},\n\t\tCameraCircleOff: {\n\t\t\tviewBox: '0 0 100 100',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M81.23,11l-.86-.69a49.93,49.93,0,0,0-70,70c.22.29.46.57.69.86s.46.58.69.86l8.7-8.7L67.2,26.62,82.08,11.73,81.23,11M17.33,73.38H16.11a1.55,1.55,0,0,1-1.55-1.55V28.16a1.55,1.55,0,0,1,1.55-1.55h48Z\" transform=\"translate(0 0)\"/>\n\t <path class=\"fill\" d=\"M99.93,47.4A49.6,49.6,0,0,0,89.65,19.63L89,18.77c-.23-.29-.46-.58-.69-.86L70.52,35.67,32.8,73.38,17.92,88.27l.86.69.86.69A49.93,49.93,0,0,0,99.93,47.4M70.52,71.84A1.55,1.55,0,0,1,69,73.38H35.9L70.52,38.76Zm17.1-1.64c0,.85-.55,1.12-1.22.59L74.06,61.12a3.61,3.61,0,0,1-1.22-2.5V41.39a3.61,3.61,0,0,1,1.22-2.5L86.4,29.21c.67-.53,1.22-.26,1.22.59Z\" transform=\"translate(0 0)\"/>\n `,\n\t\t},\n\t\tMicrophoneCircleOn: {\n\t\t\tviewBox: '0 0 200 200',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M100,0C44.772,0,0,44.772,0,100s44.772,100,100,100s100-44.772,100-100S155.228,0,100,0z M76.543,39.789\n c0-12.955,10.502-23.457,23.457-23.457s23.457,10.502,23.457,23.457v52.408c0,12.955-10.502,23.457-23.457,23.457\n s-23.457-10.502-23.457-23.457V39.789z M111.21,138.979c-1.123,0.262-1.908,1.278-1.908,2.433v20.514\n c0,1.386,1.123,2.509,2.509,2.509h13.894c1.386,0,2.509,1.123,2.509,2.509v14.216c0,1.386-1.123,2.509-2.509,2.509h-16.403H90.068\n H73.665c-1.386,0-2.509-1.123-2.509-2.509v-14.216c0-1.386,1.123-2.509,2.509-2.509h13.894c1.386,0,2.509-1.123,2.509-2.509v-20.654\n c0-1.142-0.769-2.152-1.879-2.425c-20.665-5.088-36.197-23.222-37.358-45.168c-0.076-1.436,1.075-2.644,2.513-2.644h11.414\n c1.327,0,2.405,1.035,2.499,2.358c1.21,17.028,15.407,30.467,32.743,30.467s31.534-13.439,32.742-30.468\n c0.094-1.323,1.173-2.358,2.499-2.358h11.414c1.439,0,2.589,1.209,2.513,2.646C147.995,115.835,132.172,134.097,111.21,138.979z\"/>\n `,\n\t\t},\n\t\tMicrophoneCircleOff: {\n\t\t\tviewBox: '0 0 200 200',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M160.307,20.224l-0.016,0.016C143.526,7.547,122.649,0,100,0C44.772,0,0,44.772,0,100c0,22.649,7.547,43.526,20.24,60.291\n l-0.016,0.016c0.445,0.583,0.802,1.255,1.259,1.827L162.091,21.526C161.518,21.07,160.89,20.668,160.307,20.224z M76.543,39.789\n c0-12.955,10.502-23.457,23.457-23.457s23.457,10.502,23.457,23.457v17.285l-44.813,44.813c-1.344-2.954-2.101-6.232-2.101-9.69\n V39.789z M50.831,93.679c-0.076-1.436,1.075-2.644,2.513-2.644h11.414c1.327,0,2.405,1.035,2.499,2.358\n c0.39,5.481,2.139,10.581,4.892,14.989l-11.816,11.816C54.809,112.697,51.355,103.578,50.831,93.679z\"/>\n <path class=\"fill\" d=\"M178.469,38.043l0.017-0.017c-0.453-0.576-0.858-1.198-1.323-1.763l-140.901,140.9c0.566,0.465,1.187,0.869,1.764,1.322\n l0.016-0.016C55.08,191.94,76.593,200,100,200c55.228,0,100-44.772,100-100C200,76.594,191.94,55.081,178.469,38.043z\n M123.435,93.077c-0.453,12.254-10.301,22.102-22.555,22.555L123.435,93.077z M111.21,138.979c-1.123,0.262-1.908,1.278-1.908,2.433\n v20.514c0,1.386,1.123,2.509,2.509,2.509h13.894c1.386,0,2.509,1.123,2.509,2.509v14.216c0,1.386-1.123,2.509-2.509,2.509h-16.403\n H90.068H73.665c-1.386,0-2.509-1.123-2.509-2.509v-14.216c0-1.386,1.123-2.509,2.509-2.509h13.894c1.386,0,2.509-1.123,2.509-2.509\n v-20.654c0-1.142-0.769-2.152-1.879-2.425c-2.715-0.668-5.332-1.578-7.848-2.677l13.001-13.001c2.151,0.444,4.375,0.691,6.658,0.691\n c17.336,0,31.534-13.439,32.742-30.468c0.094-1.323,1.173-2.358,2.499-2.358h11.414c1.439,0,2.589,1.209,2.513,2.646\n C147.995,115.835,132.172,134.097,111.21,138.979z\" />\n `,\n\t\t},\n\t\tSpeakerCircle: {\n\t\t\tviewBox: '0 0 91.4 91.29',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M76.29,11.69a45.7,45.7,0,1,0,0,67.91,45.87,45.87,0,0,0,0-67.91m-29.1,55a1.22,1.22,0,0,1-.64,1.08,1.24,1.24,0,0,1-.58.15,1.21,1.21,0,0,1-.68-.21c-.16-.12-11.69-8.78-16-10.72a12.73,12.73,0,0,0-3-.64c-3.36-.29-13.68,0-13.78,0h0a1.26,1.26,0,0,1-1.31-1.22v-19a1.25,1.25,0,0,1,1.28-1.22c.13,0,10.44.29,13.81,0a12.64,12.64,0,0,0,3-.64c4.27-1.93,15.8-10.6,15.91-10.69a1.24,1.24,0,0,1,1.29-.1h0a1.22,1.22,0,0,1,.64,1.08Zm8.47-4.59a2.11,2.11,0,0,1-1.19-3.85,15.26,15.26,0,0,0,0-25.26,2.11,2.11,0,0,1-.93-1.75,2.11,2.11,0,0,1,3.29-1.75,19.47,19.47,0,0,1,.06,32.24,2.1,2.1,0,0,1-1.18.36M61,67.35a2.11,2.11,0,0,1-1.29-3.77h0a22.8,22.8,0,0,0,2.19-1.93,22.62,22.62,0,0,0,0-32,22.91,22.91,0,0,0-2.19-1.93,2.11,2.11,0,0,1,2.58-3.34,27.46,27.46,0,0,1,2.59,2.28,26.84,26.84,0,0,1,0,38,27.22,27.22,0,0,1-2.59,2.28,2.1,2.1,0,0,1-1.29.44m9.1,2.51c-.78.78-1.6,1.53-2.46,2.24A2.11,2.11,0,0,1,65,68.84c.75-.61,1.47-1.27,2.16-2a30,30,0,0,0,0-42.43c-.71-.71-1.45-1.38-2.21-2a2.11,2.11,0,0,1,2.68-3.26c.87.71,1.72,1.48,2.52,2.28a34.22,34.22,0,0,1,0,48.39\" transform=\"translate(0 0)\"/>\n `,\n\t\t},\n\t\tWifiCircle: {\n\t\t\tviewBox: '0 0 91.4 91.29',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M76.29,11.69A45.7,45.7,0,1,0,15.11,79.6,45.7,45.7,0,1,0,76.29,11.69M45.74,75.58a6.41,6.41,0,1,1,6.41-6.41,6.42,6.42,0,0,1-6.41,6.41M61.43,57.91l-3.18,3.18a1.88,1.88,0,0,1-2.66,0,13.83,13.83,0,0,0-19.73,0,1.88,1.88,0,0,1-2.65,0L30,57.91a1.89,1.89,0,0,1-.55-1.33A2,2,0,0,1,30,55.21a22.21,22.21,0,0,1,15.67-6.64h0a21.87,21.87,0,0,1,15.72,6.64,1.93,1.93,0,0,1,0,2.7M71.72,47.17l-3.18,3.18a1.88,1.88,0,0,1-2.66,0,28.79,28.79,0,0,0-40.6,0,1.88,1.88,0,0,1-2.66,0l-3.17-3.17a1.88,1.88,0,0,1,0-2.66A37.07,37.07,0,0,1,45.7,33.75a36.29,36.29,0,0,1,26,10.77,1.88,1.88,0,0,1,0,2.65m6.81-7.56a1.88,1.88,0,0,1-2.66,0,42.77,42.77,0,0,0-60.41,0,1.88,1.88,0,0,1-2.65,0L9.62,36.43a1.89,1.89,0,0,1-.55-1.33,2.32,2.32,0,0,1,.56-1.51C19.28,24,29.49,18,45.72,18s26.33,6.11,35.91,15.69a1.94,1.94,0,0,1,0,2.7Z\" transform=\"translate(0 0)\"/>\n `,\n\t\t},\n\t\tChatCircle: {\n\t\t\tviewBox: '0 0 200 200',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M100,0C44.772,0,0,44.772,0,100s44.772,100,100,100s100-44.772,100-100S155.228,0,100,0z M170.493,127.726\n c0,3.587-2.908,6.495-6.495,6.495H72.91v-0.001l-21.189,23.116l1.616-23.116H41.442c-3.587,0-6.495-2.908-6.495-6.495V52.972\n c0-3.587,2.908-6.495,6.495-6.495h122.556c3.587,0,6.495,2.908,6.495,6.495V127.726z\" />\n `,\n\t\t},\n\t\tXCircle: {\n\t\t\tviewBox: '0 0 200 200',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M100,0C44.772,0,0,44.772,0,100s44.772,100,100,100s100-44.772,100-100S155.228,0,100,0z M162.047,146.625\n c2.439,2.445,2.44,6.403,0.003,8.85l-8.099,8.131c-2.449,2.459-6.429,2.46-8.88,0.003L100,118.417L54.93,163.609\n c-2.45,2.457-6.431,2.456-8.88-0.003l-8.1-8.131c-2.438-2.447-2.436-6.405,0.003-8.851l44.901-45.023L37.953,56.58\n c-2.439-2.446-2.44-6.404-0.003-8.851l8.1-8.131c2.449-2.459,6.429-2.46,8.88-0.003L100,84.787l45.071-45.192\n c2.451-2.457,6.431-2.456,8.88,0.003l8.099,8.131c2.438,2.447,2.436,6.405-0.003,8.851l-44.901,45.022L162.047,146.625z\"/>\n `,\n\t\t},\n\t\tUpAndDownload: {\n\t\t\tviewBox: '0 0 200 200',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M100,0C44.772,0,0,44.772,0,100s44.772,100,100,100s100-44.772,100-100S155.228,0,100,0z M162.218,145.389h-89.73\n c0.015-0.088,0.027-0.176,0.027-0.269v-26.55c0-0.914,0.741-1.654,1.654-1.654h9.584c1.391,0,2.161-1.612,1.286-2.694L64.75,89.15\n c-0.662-0.819-1.909-0.819-2.572,0L41.89,114.222c-0.876,1.081-0.106,2.694,1.285,2.694h9.584c0.913,0,1.654,0.741,1.654,1.654\n v26.55c0,0.093,0.013,0.182,0.027,0.269h-5.046c-17.241,0-31.218-13.976-31.218-31.217c0-12.953,7.891-24.063,19.127-28.788\n c0.017-23.904,19.4-43.277,43.308-43.277c19.535,0,36.044,12.936,41.44,30.708c2.769-1.249,5.837-1.951,9.071-1.951\n c12.191,0,22.075,9.883,22.075,22.075c0,2.729-0.499,5.341-1.404,7.753c2.24-0.73,4.629-1.131,7.112-1.131\n c12.655,0,22.915,10.259,22.915,22.916C181.822,134.005,173.304,143.784,162.218,145.389z\"/>\n <path class=\"fill\" d=\"M142.235,117.009h-9.584c-0.914,0-1.654-0.741-1.654-1.653V88.805c0-0.913-0.741-1.653-1.654-1.653H114.55\n c-0.913,0-1.654,0.741-1.654,1.653v26.551c0,0.913-0.741,1.653-1.654,1.653h-9.584c-1.391,0-2.161,1.614-1.286,2.695l20.289,25.072\n c0.662,0.817,1.91,0.817,2.572,0l20.288-25.072C144.396,118.622,143.626,117.009,142.235,117.009z\"/>\n `,\n\t\t},\n\t\tExitCallCircle: {\n\t\t\tviewBox: '0 0 200 200',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M100,0C44.772,0,0,44.772,0,100s44.772,100,100,100s100-44.772,100-100S155.228,0,100,0z M57.437,132.46l0.001-18.139\n c0-1.09-0.882-1.972-1.971-1.972H37.699c-1.089,0-1.971-0.883-1.971-1.972V89.623c0-1.089,0.883-1.972,1.971-1.972h17.768\n c1.089,0,1.972-0.882,1.971-1.972l-0.001-18.14c0-1.681,1.968-2.591,3.249-1.502l38.191,32.46c0.926,0.788,0.926,2.218,0,3.005\n l-38.191,32.461C59.405,135.052,57.437,134.141,57.437,132.46z M161.904,158.241l-48.117,13.001\n c-2.046,0.442-4.062-0.777-4.062-2.456V159.5c-0.052,0.002-0.1,0.016-0.152,0.016H79.929h-4.037c-2.23,0-4.037-1.808-4.037-4.037\n v-19.626c0-2.23,1.808-4.037,4.037-4.037c2.23,0,4.037,1.808,4.037,4.037v11.552c0,2.23,1.807,4.036,4.037,4.036h25.606\n c0.052,0,0.1,0.014,0.152,0.016V48.543c-0.052,0.002-0.1,0.015-0.152,0.015H83.966c-2.23,0-4.037,1.808-4.037,4.037v11.552\n c0,2.23-1.808,4.037-4.037,4.037c-2.23,0-4.037-1.808-4.037-4.037V44.521c0-2.23,1.808-4.037,4.037-4.037h4.037h29.643\n c0.052,0,0.1,0.014,0.152,0.016v-9.285c0-1.678,2.016-2.898,4.062-2.456l48.117,15.458c1.399,0.302,2.369,1.308,2.369,2.456v109.111\n h0.001C164.273,156.933,163.303,157.938,161.904,158.241z\"/>\n <polygon class=\"fill\" points=\"142.898,84.506 133.713,95.799 121.505,81.408 118.064,85.674 130.256,100.047 118.064,114.326 121.505,118.592 133.699, 104.313 142.716, 115.495 146.159, 111.227 137.154, 100.064 146.34, 88.773\" />\n `,\n\t\t},\n\t\tScreenshotCircle: {\n\t\t\tviewBox: '0 0 200 200',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M100,0C44.772,0,0,44.772,0,100s44.772,100,100,100s100-44.772,100-100S155.228,0,100,0z M60.235,149.624h-20.61\n c-7.847,0-14.208-6.361-14.208-14.209v-20.609c0-1.916,1.553-3.469,3.47-3.469h6.292c1.916,0,3.469,1.553,3.469,3.469v17.381\n c0,2.323,1.883,4.205,4.205,4.205h17.381c1.917,0,3.47,1.554,3.47,3.469v6.294h0.001C63.705,148.07,62.152,149.624,60.235,149.624z\n M63.705,60.138c0,1.915-1.553,3.469-3.47,3.469H42.853c-2.322,0-4.205,1.882-4.205,4.205v17.381c0,1.916-1.554,3.469-3.469,3.469\n h-6.292c-1.917,0-3.47-1.553-3.47-3.469v-20.61c0-7.847,6.361-14.208,14.208-14.208h20.61c1.917,0,3.47,1.554,3.47,3.469V60.138z\n M118.262,102.44l-15.293-0.02l0.02,15.292c0.001,0.831-0.673,1.505-1.504,1.504l-2.75-0.006c-0.828-0.001-1.498-0.672-1.499-1.5\n l-0.02-15.236l-15.235-0.02c-0.828-0.001-1.499-0.671-1.5-1.499l-0.005-2.75c-0.002-0.832,0.672-1.507,1.504-1.505l15.293,0.02\n l-0.021-15.292c-0.001-0.831,0.674-1.505,1.505-1.504l2.75,0.006c0.828,0.001,1.499,0.672,1.499,1.5l0.021,15.235l15.235,0.022\n c0.828,0.001,1.499,0.671,1.5,1.499l0.005,2.75C119.767,101.767,119.093,102.441,118.262,102.44z M160.374,149.624h-20.61\n c-1.916,0-3.469-1.554-3.469-3.469v-6.293c0-1.916,1.553-3.469,3.469-3.469h17.382c2.322,0,4.205-1.882,4.205-4.205v-17.381\n c0-1.916,1.554-3.469,3.469-3.469h6.293c1.916,0,3.469,1.553,3.469,3.469v20.608h0.001\n C174.583,143.263,168.222,149.624,160.374,149.624z M174.583,85.194c0,1.916-1.554,3.469-3.469,3.469h-6.293\n c-1.916,0-3.469-1.553-3.469-3.469V67.813c0-2.323-1.882-4.205-4.205-4.205h-17.382c-1.916,0-3.469-1.553-3.469-3.469v-6.293\n c0-1.915,1.553-3.469,3.469-3.469h20.61c7.848,0,14.209,6.361,14.209,14.208L174.583,85.194L174.583,85.194z\"/>\n `,\n\t\t},\n\t\tScreenShareStart: {\n\t\t\tviewBox: '0 0 66.08 66.08',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M34.31,25.84H27c-8.18,0-8.44,7.79-8.62,12.24a.26.26,0,0,0,.46.17c1.22-1.52,4.5-5.13,8.16-5.13h7.36v5.16l13.55-8.75L34.31,20.77Z\"/>\n <path class=\"fill\" d=\"M33,0a33,33,0,1,0,33,33A33,33,0,0,0,33,0Zm7.23,53.65a49,49,0,0,1-7.09.21c-5,0-6.25-.06-7.09-.21-.39-.06-.51-.36-.21-.6s1.09-.88,1.42-1.21a2.39,2.39,0,0,0,.51-1.18l.36-3.59h10l.36,3.59A2.33,2.33,0,0,0,39,51.87a14.69,14.69,0,0,0,1.42,1.18C40.75,53.29,40.63,53.59,40.27,53.65Zm15.47-8.49H10.46A1.21,1.21,0,0,1,9.25,44V17.39a1.21,1.21,0,0,1,1.21-1.21H55.74a1.21,1.21,0,0,1,1.21,1.21V44A1.21,1.21,0,0,1,55.74,45.17Z\"/>\n `,\n\t\t},\n\t\tScreenShareEnd: {\n\t\t\tviewBox: '0 0 66.08 66.08',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M33,0a33,33,0,1,0,33,33A33,33,0,0,0,33,0Zm7.33,54.87c-.87.16-2.12.22-7.32.22s-6.45-.06-7.32-.22c-.4-.06-.53-.37-.22-.62S26.64,53.34,27,53a2.47,2.47,0,0,0,.53-1.21l.37-3.71H38.19l.37,3.71A2.41,2.41,0,0,0,39.09,53a15.16,15.16,0,0,0,1.46,1.21C40.87,54.5,40.75,54.81,40.37,54.87Zm16-8.72H9.68A1.25,1.25,0,0,1,8.44,44.9V17.5a1.25,1.25,0,0,1,1.25-1.25H56.39a1.25,1.25,0,0,1,1.25,1.25V44.9A1.25,1.25,0,0,1,56.39,46.15Z\"/>\n <polygon class=\"fill\" points=\"40.15 21.56 33.05 28.65 33.02 28.62 32.99 28.65 25.9 21.56 23.47 23.99 30.56 31.12 23.47 38.21 25.9 40.64 32.99 33.55 33.02 33.58 33.05 33.55 40.15 40.64 42.61 38.21 35.48 31.12 42.61 23.99 40.15 21.56\"/>\n `,\n\t\t},\n\t\tStopScreenShareEnd: {\n\t\t\tviewBox: '0 0 82.48 64.43',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M54,63a26.73,26.73,0,0,1-2.45-2,4,4,0,0,1-.89-2.09L50,52.68H32.71l-.63,6.21a4.15,4.15,0,0,1-.89,2c-.57.57-1.72,1.51-2.45,2.09-.52.41-.31.93.36,1,1.47.26,3.55.42,12.27.36s10.81-.1,12.27-.36C54.27,64,54.47,63.43,54,63Z\"/>\n <path class=\"fill\" d=\"M80.39,0H2.09A2.08,2.08,0,0,0,0,2.09V48a2.08,2.08,0,0,0,2.09,2.08h78.3A2.09,2.09,0,0,0,82.48,48V2.09A2.09,2.09,0,0,0,80.39,0ZM53.7,39.94a1,1,0,0,1-1.45,0L41.37,29.06l0,.05,0-.05L30.39,39.93a1,1,0,0,1-1.45,0l-2.52-2.52a1,1,0,0,1,0-1.45L37.29,25.08,26.41,14.16a1,1,0,0,1,0-1.46l2.52-2.52a1,1,0,0,1,1.45,0L41.27,21.05l0-.05,0,.05L52.25,10.18a1,1,0,0,1,1.45,0l2.57,2.53a1,1,0,0,1,0,1.46L45.35,25.08,57,36.68Z\"/>\n `,\n\t\t},\n\t\tQuestionmarkCircle: {\n\t\t\tviewBox: '0 0 200 200',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M100,0C44.772,0,0,44.772,0,100s44.772,100,100,100s100-44.772,100-100S155.228,0,100,0z M95.984,175.831\n c-11.145,0-19.232-8.742-19.232-20.105c0-11.583,8.087-20.324,19.232-20.324s19.449,8.742,19.449,20.324\n C115.433,167.089,107.129,175.831,95.984,175.831z M110.141,117.428c-0.261,2.972-2.654,5.298-5.637,5.298H87.258\n c-3.116,0-5.679-2.527-5.671-5.642c0.069-25.939,27.947-37.822,27.947-53.142c0-8.96-5.902-13.768-14.642-13.768\n c-6.438,0-11.49,2.631-16.26,6.682c-2.167,1.84-5.365,1.783-7.463-0.134l-9.688-8.85c-2.418-2.209-2.422-5.965-0.096-8.271\n c9.416-9.334,21.648-15.432,35.692-15.432c24.694,0,43.27,11.582,43.27,37.369C140.346,86.705,112.07,95.473,110.141,117.428z\"/>\n `,\n\t\t},\n\t\tInfoCircle: {\n\t\t\tviewBox: '1101.838 -279.162 20 20',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M10,0A10,10,0,1,0,20,10,10,10,0,0,0,10,0Zm1.754,17.061H8.289V6.974h3.465ZM10,5.7a1.762,1.762,0,1,1,0-3.509A1.762,1.762,0,1,1,10,5.7Z\" transform=\"translate(1101.838 -279.162)\"/>\n `,\n\t\t},\n\t\tClock: {\n\t\t\tviewBox: '0 0 84.8 84.9',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M42.4,0h0A43.08,43.08,0,0,0,24.8,3.8,42.55,42.55,0,0,0,0,40.6v3.6a4.1,4.1,0,0,0,.1,1.1A42.4,42.4,0,1,0,42.4,0Zm4.7,19.7V46.9l-.7.7-9.8,9.8-2.4,2.4L33,61c-.3.5-.9.7-1.4,1-1,.6-2,1.2-3.1,1.8s-2.1,1.1-3.2,1.7A32.38,32.38,0,0,1,27,62.3c.6-1.1,1.2-2.1,1.8-3.1.3-.5.5-1.1,1-1.4L31,56.6l2.4-2.4,9.1-9.1V19.7a5.58,5.58,0,0,1,.3-2.2c.2-.7.4-1.5.6-2.2.4-1.5.9-2.9,1.4-4.4.5,1.5.9,2.9,1.4,4.4.2.7.4,1.5.6,2.2S47.3,19,47.1,19.7Z\"/>\n `,\n\t\t},\n\t\tVideoCallCircle: {\n\t\t\tviewBox: '0 0 91.4 91.4',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M32.1,56.67a.88.88,0,0,1-1.4-.85V35.58a.88.88,0,0,1,1.4-.85L52.66,45c.78.39.78,1,0,1.4Z\"/>\n\t <path class=\"fill\" d=\"M91.34,43.32a45.7,45.7,0,1,0-48,48,45.87,45.87,0,0,0,48-48M64.46,65.66A1.42,1.42,0,0,1,63,67.07H14.73a1.42,1.42,0,0,1-1.42-1.42V25.74a1.42,1.42,0,0,1,1.42-1.42H63a1.42,1.42,0,0,1,1.42,1.42Zm15.63-1.5c0,.78-.5,1-1.11.54L67.69,55.86a3.29,3.29,0,0,1-1.11-2.29V37.83a3.3,3.3,0,0,1,1.11-2.29L79,26.7c.61-.48,1.11-.24,1.11.54Z\"/>\n `,\n\t\t},\n\t\tAvatarPlusCircle: {\n\t\t\tviewBox: '0 0 100 100',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M50,0a50,50,0,1,0,50,50A50,50,0,0,0,50,0M81.57,80.83a27.4,27.4,0,0,1-6.33,2.27A98.69,98.69,0,0,1,53,86.23a94,94,0,0,1-32.55-4.48,10.45,10.45,0,0,1-2.89-1.47,4.09,4.09,0,0,1-1.82-3.66,79.44,79.44,0,0,1,.79-10.07,34.73,34.73,0,0,1,1.33-4.87,8.54,8.54,0,0,1,3.9-4.49c2.69-1.7,5.74-2.32,8.8-2.89a32,32,0,0,0,9.14-2.63,2.53,2.53,0,0,0,1.58-2.23c.08-1.16.18-2.32.29-3.47a1.69,1.69,0,0,0-.23-1,52,52,0,0,1-3.55-8.61c-.16-.52-.28-.87-1-.7s-1.17-.28-1.23-1c-.19-2.05-.35-4.11-.49-6.16,0-.24.06-.63.22-.72.9-.46.64-1.26.62-2a26.81,26.81,0,0,1,.31-5.82c.85-4.4,3.66-7.22,7.6-9,7-3.06,15.21-.48,18.78,5.78,1,1.72,1.41,4,1.37,7.76,0,.6,0,1.2,0,1.8s-.07.94.5,1.24c.4.21.4.69.36,1.11-.14,1.87-.28,3.74-.43,5.6-.08.91-.45,1.54-1.51,1.28-.48-.12-.57.16-.68.51a53.91,53.91,0,0,1-3.67,8.92,1.55,1.55,0,0,0-.16.87,13,13,0,0,1,.13,2c-.21,2.57,1.28,3.7,3.45,4.49a73.14,73.14,0,0,0,9.61,2.25,19.15,19.15,0,0,1,7.25,2.89,9.55,9.55,0,0,1,3.57,5C84,67.23,84,72,84.23,76.73c.08,2-1.05,3.21-2.66,4.1\" transform=\"translate(0 0)\"/>\n\t <polygon class=\"fill\" points=\"68.46 67.91 61.72 67.91 61.72 67.88 61.69 67.88 61.69 61.13 59.37 61.13 59.37 67.88 52.63 67.88 52.63 70.2 59.37 70.2 59.37 70.22 59.4 70.22 59.4 76.97 61.72 76.97 61.72 70.22 68.46 70.22 68.46 67.91\"/>\n `,\n\t\t},\n\t\tAvatarCircle: {\n\t\t\tviewBox: '0 0 100 100',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M50,0a50,50,0,1,0,50,50A50,50,0,0,0,50,0M81.57,80.83a27.4,27.4,0,0,1-6.33,2.27A98.69,98.69,0,0,1,53,86.23a94,94,0,0,1-32.55-4.48,10.45,10.45,0,0,1-2.89-1.47,4.09,4.09,0,0,1-1.82-3.66,79.44,79.44,0,0,1,.79-10.07,34.73,34.73,0,0,1,1.33-4.87,8.54,8.54,0,0,1,3.9-4.49c2.69-1.7,5.74-2.32,8.8-2.89a32,32,0,0,0,9.14-2.63,2.53,2.53,0,0,0,1.58-2.23c.08-1.16.18-2.32.29-3.47a1.69,1.69,0,0,0-.23-1,52,52,0,0,1-3.55-8.61c-.16-.52-.28-.87-1-.7s-1.17-.28-1.23-1c-.19-2.05-.35-4.11-.49-6.16,0-.24.06-.63.22-.72.9-.46.64-1.26.62-2a26.81,26.81,0,0,1,.31-5.82c.85-4.4,3.66-7.22,7.6-9,7-3.06,15.21-.48,18.78,5.78,1,1.72,1.41,4,1.37,7.76,0,.6,0,1.2,0,1.8s-.07.94.5,1.24c.4.21.4.69.36,1.11-.14,1.87-.28,3.74-.43,5.6-.08.91-.45,1.54-1.51,1.28-.48-.12-.57.16-.68.51a53.91,53.91,0,0,1-3.67,8.92,1.55,1.55,0,0,0-.16.87,13,13,0,0,1,.13,2c-.21,2.57,1.28,3.7,3.45,4.49a73.14,73.14,0,0,0,9.61,2.25,19.15,19.15,0,0,1,7.25,2.89,9.55,9.55,0,0,1,3.57,5C84,67.23,84,72,84.23,76.73c.08,2-1.05,3.21-2.66,4.1\" transform=\"translate(0)\"/>\n `,\n\t\t},\n\t\tDoctorCircle: {\n\t\t\tviewBox: '0 0 103.92 103.92',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M52,0a52,52,0,1,0,52,52A52,52,0,0,0,52,0M85.57,65.4H65.4V85.58H38.52V65.4H18.35V38.52H38.52V18.34H65.4V38.52H85.58Z\" />\n `,\n\t\t},\n\t\tHandHeart: {\n\t\t\tviewBox: '0 0 100 86.89',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M64,0C56.86,0,51,4.46,50,9.49c-.06.13-.25.13-.25,0-.94-5-6.85-9.49-14-9.49A14.31,14.31,0,0,0,21.61,14.45a14.59,14.59,0,0,0,4,10.05l.82.82,22.43,21.8a1.56,1.56,0,0,0,2.14,0l22.43-21.8a10,10,0,0,0,.82-.82,14.71,14.71,0,0,0,4-10.05A14.31,14.31,0,0,0,64,0\" transform=\"translate(0 0)\"/>\n\t <path class=\"fill\" d=\"M0,75.2,12.56,86.89l12.13-5.47a3.16,3.16,0,0,1,1.7-.31l31.54,1.44a8,8,0,0,0,5.53-1.88A195,195,0,0,0,79.6,64.52C89.09,53.9,97.44,44,99.83,41.15A.76.76,0,0,0,99.51,40L95,38.13a4.15,4.15,0,0,0-3.83.38l-26,17.09a2.7,2.7,0,0,0-1.26,2.07c-.25,2.32-.94,7-1.82,7.41-3.14,1.38-9.61,2.39-16.08,3.2-6,.75-5-2.2-5-2.2S55.79,64.4,58.8,63.7c2.26-.57,2.51-4,2.45-5.72a1.28,1.28,0,0,0-.88-1.19c-3.83-1.13-19.85-5.72-28.08-4.21-9.42,1.7-12.69,4.33-21.11,11.94C2.51,72.19,0,75.2,0,75.2\" transform=\"translate(0 0)\"/>\n `,\n\t\t},\n\t\tQueue: {\n\t\t\tviewBox: '0 0 83.86 100',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M19.93,100H2.72V51.77a8.61,8.61,0,0,1,17.21,0Z\" transform=\"translate(0 0)\"/>\n\t <path class=\"fill\" d=\"M22.66,27.32A11.33,11.33,0,1,1,11.33,16,11.33,11.33,0,0,1,22.66,27.32\" transform=\"translate(0 0)\"/>\n\t <path class=\"fill\" d=\"M81.14,100H63.93V51.77a8.61,8.61,0,0,1,17.21,0Z\" transform=\"translate(0 0)\"/>\n\t <path class=\"fill\" d=\"M83.86,27.32A11.33,11.33,0,1,1,72.53,16,11.33,11.33,0,0,1,83.86,27.32\" transform=\"translate(0 0)\"/>\n\t <path class=\"fill\" d=\"M50.54,100H33.32V36.95a8.61,8.61,0,1,1,17.21,0Z\" transform=\"translate(0 0)\"/>\n\t <path class=\"fill\" d=\"M54.43,12.5A12.5,12.5,0,1,1,41.93,0a12.5,12.5,0,0,1,12.5,12.5\" transform=\"translate(0 0)\"/>\n `,\n\t\t},\n\t\tPartialQueue: {\n\t\t\tviewBox: '25 0 83.86 100',\n\t\t\tstyle: null,\n\t\t\thtml: `\n\t <path class=\"fill\" d=\"M81.14,100H63.93V51.77a8.61,8.61,0,0,1,17.21,0Z\" transform=\"translate(0 0)\"/>\n\t <path class=\"fill\" d=\"M83.86,27.32A11.33,11.33,0,1,1,72.53,16,11.33,11.33,0,0,1,83.86,27.32\" transform=\"translate(0 0)\"/>\n\t <path class=\"fill\" d=\"M50.54,100H33.32V36.95a8.61,8.61,0,1,1,17.21,0Z\" transform=\"translate(0 0)\"/>\n\t <path class=\"fill\" d=\"M54.43,12.5A12.5,12.5,0,1,1,41.93,0a12.5,12.5,0,0,1,12.5,12.5\" transform=\"translate(0 0)\"/>\n `,\n\t\t},\n\t\tX: {\n\t\t\tviewBox: '0 0 200 200',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M160.423,155.475l-8.099,8.131c-2.449,2.459-6.429,2.46-8.88,0.003l-45.071-45.192l-45.071,45.192\n\t\t c-2.45,2.457-6.431,2.456-8.88-0.003l-8.1-8.131c-2.438-2.447-2.436-6.405,0.003-8.851l44.901-45.023L36.325,56.58\n\t\t c-2.439-2.446-2.44-6.404-0.003-8.851l8.1-8.131c2.449-2.459,6.429-2.46,8.88-0.003l45.071,45.192l45.071-45.192\n\t\t c2.451-2.457,6.431-2.456,8.88,0.003l8.099,8.131c2.438,2.447,2.436,6.405-0.003,8.851l-44.901,45.022l44.901,45.023\n\t\t C162.859,149.07,162.86,153.028,160.423,155.475z\"></path>\n `,\n\t\t},\n\t\tPlus: {\n\t\t\tviewBox: '0 0 160 160',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <polygon class=\"fill\" points=\"71,0, 71,160, 90,160, 90,0\" />\n <polygon class=\"fill\" points=\"0,71, 160,71, 160,90, 0,90\" />\n `,\n\t\t},\n\t\tCheckbox: {\n\t\t\tviewBox: '0 0 40 40',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <rect x=\"1\" y=\"1\" fill=\"transparent\" class=\"stroke\" stroke-width=\"8\" width=\"38\" height=\"38\" style=\"shape-rendering: geometricprecision;\" />\n `,\n\t\t},\n\n\t\tEntrance: {\n\t\t\tviewBox: '0 0 15.833 20',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M0,.479V17.828H1.833V2H4.5V.729l9.666,1.033v15.9h1.667V.479A.484.484,0,0,0,15.349,0H.5A.468.468,0,0,0,0,.479Z\" transform=\"translate(0 0.005)\"/>\n <path class=\"fill\" d=\"M32,10.5V28.749l8-2.083V11.333Zm.967,10.366a1.028,1.028,0,1,1,2,0,1.159,1.159,0,0,1-1,1.267A1.137,1.137,0,0,1,32.967,20.866Z\" transform=\"translate(-26.667 -8.749)\"/>\n `,\n\t\t},\n\n\t\tCheckboxChecked: {\n\t\t\tviewBox: '0 0 40 40',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <rect x=\"1\" y=\"1\" fill=\"transparent\" class=\"stroke\" stroke-width=\"8\" width=\"38\" height=\"38\" />\n <polygon class=\"fill\" points=\"2,20.5 15.8,34.4 15.8,34.4 38.9,11.3 34,6.5 15.8,24.7 6.8,15.7\" style=\"shape-rendering: geometricprecision;\" />\n `,\n\t\t},\n\t\tRadio: {\n\t\t\tviewBox: '0 0 63.78 63.78',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M31.89,0A31.89,31.89,0,1,0,63.78,31.89,31.89,31.89,0,0,0,31.89,0m0,59.39a27.5,27.5,0,1,1,27.5-27.5,27.53,27.53,0,0,1-27.5,27.5\" />\n `,\n\t\t},\n\t\tRadioChecked: {\n\t\t\tviewBox: '0 0 63.78 63.78',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M31.89,9.1A22.79,22.79,0,1,0,54.68,31.89,22.81,22.81,0,0,0,31.89,9.1\" />\n\t <path class=\"fill\" d=\"M31.89,0A31.89,31.89,0,1,0,63.78,31.89,31.89,31.89,0,0,0,31.89,0m0,59.39a27.5,27.5,0,1,1,27.5-27.5,27.53,27.53,0,0,1-27.5,27.5\" />\n `,\n\t\t},\n\t\tLoader: {\n\t\t\tviewBox: '0 0 100 100',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <circle class=\"stroke\" cx=\"50\" cy=\"50\" r=\"40\" fill=\"none\" stroke-width=\"6\"></circle>\n `,\n\t\t},\n\t\tProgressLoader: {\n\t\t\tviewBox: '0 0 100 100',\n\t\t\tstyle: 'transform: rotate(-90deg);',\n\t\t\thtml: `\n <circle class=\"stroke\" cx=\"50\" cy=\"50\" r=\"40\" fill=\"none\" stroke-width=\"6\"></circle>\n `,\n\t\t},\n\t\tMoveTop: {\n\t\t\tviewBox: '0 0 73.17 84.39',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M47.72,53.33a1.74,1.74,0,0,1,1.74-1.74h16a1.74,1.74,0,0,0,1.32-2.86L38.16,15.08a1.74,1.74,0,0,0-2.65,0L6.91,48.73A1.74,1.74,0,0,0,8.24,51.6h16A1.74,1.74,0,0,1,26,53.33V82.65a1.74,1.74,0,0,0,1.74,1.74H46a1.74,1.74,0,0,0,1.74-1.74Z\"/>\n <rect class=\"fill\" width=\"73.17\" height=\"9.17\"/>\n `,\n\t\t},\n\t\tAvatar: {\n\t\t\tviewBox: '0 0 118.53 132.42',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M83.52,25.82v3.1c0,.9-.1,1.6.9,2.1.7.4.7,1.2.6,1.9-.2,3.2-.5,6.5-.7,9.7-.1,1.6-.8,2.7-2.6,2.2-.8-.2-1,.3-1.2.9a86.28,86.28,0,0,1-6.4,15.4,4,4,0,0,0-.3,1.5,20.56,20.56,0,0,1,.2,3.5c-.4,4.4,2.2,6.4,6,7.8,5.4,2,11.1,2.7,16.6,3.9,4.5,1,8.8,2.3,12.6,5a16.19,16.19,0,0,1,6.2,8.7c2.7,8,2.8,16.2,3.1,24.4.1,3.4-1.8,5.6-4.6,7.1a46.42,46.42,0,0,1-11,3.9,172.65,172.65,0,0,1-38.5,5.4,160.56,160.56,0,0,1-56.3-7.8,18,18,0,0,1-5-2.5,6.82,6.82,0,0,1-3.1-6.3c.3-5.8.4-11.7,1.4-17.4a57.73,57.73,0,0,1,2.3-8.4c1.1-3.5,3.7-5.9,6.7-7.8,4.7-2.9,9.9-4,15.2-5s10.8-2,15.8-4.6a4.33,4.33,0,0,0,2.7-3.9c.1-2,.3-4,.5-6a2.68,2.68,0,0,0-.4-1.7A80.43,80.43,0,0,1,38.12,46c-.3-.9-.5-1.5-1.7-1.2s-2-.5-2.1-1.7c-.3-3.6-.6-7.1-.8-10.7,0-.4.1-1.1.4-1.2,1.6-.8,1.1-2.2,1.1-3.4a48.55,48.55,0,0,1,.5-10.1c1.5-7.6,6.3-12.5,13.2-15.5,12.1-5.3,26.3-.8,32.5,10,1.6,3.2,2.3,7.2,2.3,13.6\"/>\n `,\n\t\t},\n\t\tAvatarPlus: {\n\t\t\tviewBox: '0 0 118.41 132.41',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M115.51,91.32a16.56,16.56,0,0,0-6.2-8.7c-3.8-2.7-8.1-4-12.6-5-5.6-1.2-11.2-1.9-16.6-3.9-3.8-1.4-6.3-3.3-6-7.8a20.56,20.56,0,0,0-.2-3.5,2.7,2.7,0,0,1,.3-1.5,98.16,98.16,0,0,0,6.4-15.4c.2-.6.3-1.1,1.2-.9,1.8.5,2.5-.6,2.6-2.2.3-3.2.5-6.5.7-9.7.1-.7.1-1.6-.6-1.9-1-.5-.9-1.3-.9-2.1v-3.1c.1-6.4-.7-10.5-2.4-13.4-6.2-10.8-20.4-15.3-32.5-10-6.8,3-11.7,7.9-13.2,15.5a48.55,48.55,0,0,0-.5,10.1c0,1.2.5,2.6-1.1,3.4-.3.1-.4.8-.4,1.2.2,3.6.5,7.1.8,10.7.1,1.2.9,2,2.1,1.7s1.4.3,1.7,1.2a97,97,0,0,0,6.1,14.9,3.06,3.06,0,0,1,.4,1.7c-.2,2-.4,4-.5,6a4.5,4.5,0,0,1-2.7,3.9c-5,2.6-10.4,3.5-15.8,4.6s-10.6,2.1-15.2,5c-3,1.9-5.6,4.3-6.7,7.8a61.41,61.41,0,0,0-2.3,8.4c-1,5.8-1.1,11.6-1.4,17.4a7,7,0,0,0,3.1,6.3,15.65,15.65,0,0,0,5,2.5,163.24,163.24,0,0,0,56.3,7.8,171,171,0,0,0,38.4-5.4,48,48,0,0,0,11-3.9c2.8-1.5,4.7-3.7,4.6-7.1C118.31,107.42,118.21,99.22,115.51,91.32Zm-16.7,13.9H81v18.9h-7.1v-18.9H56.11v-7.1h17.8V81.52H81v16.6h17.8Z\"/>\n `,\n\t\t},\n\t\tNotification: {\n\t\t\tviewBox: '-5480 4708 30 30',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <g id=\"Group_1677\" data-name=\"Group 1677\" transform=\"translate(-7306 3677)\">\n <g id=\"Group_1676\" data-name=\"Group 1676\" transform=\"translate(-16 12)\">\n <circle class=\"fill\" cx=\"15\" cy=\"15\" r=\"15\" transform=\"translate(1842 1019)\"/>\n <g id=\"group-33\" transform=\"translate(1847 1027.815)\">\n <path fill=\"#fff\" d=\"M12.249,12.832l-1.219-.858A18.886,18.886,0,0,0,3.258,8.791l-2.388-.4A1.05,1.05,0,0,1,0,7.373V5.508a1.031,1.031,0,0,1,.871-1.02l2.388-.4A18.906,18.906,0,0,0,10.968.944l1.281-.9a.355.355,0,0,1,.56.286V12.559A.35.35,0,0,1,12.249,12.832Z\" transform=\"translate(0 0)\"/>\n <path fill=\"#fff\" d=\"M7.34,75.012H4.007L3,72.4l1.069.05.647,1.567H6.669l.348-.833,1.045.261Z\" transform=\"translate(-2.627 -63.41)\"/>\n <path fill=\"#fff\" d=\"M133.8,2.7a9.17,9.17,0,0,1,.025,12.722l-.9-.9A7.969,7.969,0,0,0,132.9,3.608Z\" transform=\"translate(-116.373 -2.378)\"/>\n <path fill=\"#fff\" d=\"M117.545,20a6.1,6.1,0,0,1-.05,8.506l-.9-.9a4.929,4.929,0,0,0,.05-6.7Z\" transform=\"translate(-102.1 -17.527)\"/>\n </g>\n </g>\n </g>\n `,\n\t\t},\n\t\tEkg404: {\n\t\t\tviewBox: '0 0 690.2 125.7',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <switch>\n <path class=\"fill\" d=\"M0.1,64.4c0,0,19,0,52.2-0.1c0.5,0.1,0.9-0.2,1-0.7c0.1-0.5,0.2-1,0.3-1.6c0.2-1,0.4-2.1,0.6-3.2\n\t\t\t\t c0.4-2.2,0.8-4.4,1.2-6.6c0.8-4.5,1.7-9.2,2.7-14.2c1.9-9.8,3.9-20.5,6-31.9C64.4,4.9,64.7,3.5,65,2c0.1-0.4,0-0.7,0.4-1.2\n\t\t\t\t c0.3-0.4,0.8-0.5,1.2-0.5c0.5,0.1,0.9,0.4,1,0.9c0.1,0.4,0.1,0.8,0.1,1.1c0.3,3,0.6,6,0.9,9c0.6,6.1,1.2,12.4,1.8,18.9\n\t\t\t\t c1.2,12.9,2.5,26.5,3.9,40.7c1.4,14.2,2.8,29,4.3,44.2c0.2,1.9,0.4,3.8,0.6,5.8c0.1,1,0.2,1.9,0.3,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,64.6,0,64.6,0.1,64.4C0,64.5,0,64.4,0.1,64.4z\" />\n </switch>\n `,\n\t\t},\n\t\tAddPerson: {\n\t\t\tviewBox: '0 0 171.82 132.42',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M83.42,25.82v3.1c0,.9-.1,1.6.9,2.1.7.4.7,1.2.6,1.9-.2,3.2-.5,6.5-.7,9.7-.1,1.6-.8,2.7-2.6,2.2-.8-.2-1,.3-1.2.9A86.3,86.3,0,0,1,74,61.12a4,4,0,0,0-.3,1.5,20.53,20.53,0,0,1,.2,3.5c-.4,4.4,2.2,6.4,6,7.8,5.4,2,11.1,2.7,16.6,3.9,4.5,1,8.8,2.3,12.6,5a16.19,16.19,0,0,1,6.2,8.7c2.7,8,2.8,16.2,\n 3.1,24.4.1,3.4-1.8,5.6-4.6,7.1a46.42,46.42,0,0,1-11,3.9,172.59,172.59,0,0,1-38.4,5.4,160.56,160.56,0,0,1-56.3-7.8,18,18,0,0,1-5-2.5,6.82,6.82,0,0,1-3.1-6.3c.3-5.8.4-11.7,1.4-17.4a57.72,57.72,0,0,1,2.3-8.4c1.1-3.5,3.7-5.9,6.7-7.8,4.7-2.9,9.9-4,15.2-5s10.8-2,15.8-4.6a4.33,4.33,0,0,0,\n 2.7-3.9c.1-2, .3-4,.5-6a2.68,2.68,0,0,0-.4-1.7A80.43,80.43,0,0,1,38.12,46c-.3-.9-.5-1.5-1.7-1.2s-2-.5-2.1-1.7c-.3-3.6-.6-7.1-.8-10.7,0-.4.1-1.1.4-1.2,1.6-.8,1.1-2.2,1.1-3.4a48.53,48.53,0,0,1,.5-10.1c1.5-7.6,6.3-12.5,13.2-15.5,12.1-5.3,26.3-.8,32.5,10,1.6,3.1,2.3,7.2,2.2,13.6\"/>\n <rect class=\"fill\" x=\"93.82\" y=\"33.22\" width=\"78\" height=\"13\" />\n <rect class=\"fill\" x=\"126.32\" y=\"2.92\" width=\"13\" height=\"78\" />\n `,\n\t\t},\n\t\tStatistics: {\n\t\t\tviewBox: '0 0 100 100',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <rect class=\"fill\" y=\"50\" width=\"29.41\" height=\"50\"/>\n <rect class=\"fill\" x=\"35.29\" width=\"29.41\" height=\"100\"/>\n <rect class=\"fill\" x=\"70.59\" y=\"33.33\" width=\"29.41\" height=\"66.67\"/>\n `,\n\t\t},\n\t\tAlbum: {\n\t\t\tviewBox: '0 0 100 100',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M50,0a50,50,0,1,0,50,50A50,50,0,0,0,50,0M39.36,21.09a10.1,10.1,0,1,1-10.1,10.11,10.1,10.1,0,0,1,10.1-10.11m-28,50,13.91-26a2.49,2.49,0,0,1,4.06-.74l9.95,10a1.36,1.36,0,0,0,2-.1L61,30.7a3.15,3.15,0,0,1,5.27.55L88.6,71.11Z\" transform=\"translate(0 0)\"/>\n `,\n\t\t},\n\t\tActive: {\n\t\t\tviewBox: '0 0 63.8 63.8',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M31.9,9.1A22.8,22.8,0,1,0,54.7,31.9,22.79,22.79,0,0,0,31.9,9.1Z\" />\n <path class=\"fill\" d=\"M31.9,0A31.9,31.9,0,1,0,63.8,31.9,31.92,31.92,0,0,0,31.9,0Zm0,57.7A25.8,25.8,0,1,1,57.7,31.9,25.86,25.86,0,0,1,31.9,57.7Z\"/>\n `,\n\t\t},\n\t\tAt: {\n\t\t\tviewBox: '0 0 51.33 53.07',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M28.77,0C42.53,0,51.33,9.42,51.33,22.69c0,11.53-7.94,17.23-14.76,17.23-3.66,0-6.69-1.74-7.44-4.71H29a9.75,9.75,0,0,1-7.44,4.09c-5.08,0-8.43-3.84-8.43-9.55,0-7.93,5.7-15.5,12.77-15.5a4.69,4.69,0,0,1,4.59,3.1h.12l.36-.94a2.58,2.58,0,0,1,2.41-1.66h1.49a2.58,2.58,0,0,1,2.52,3.11l-2.32,11c-.74,3.1.12,4.59,2.6,4.59,3.72,0,7.07-4.22,7.07-10.54,0-8.43-4.34-16.61-16.86-16.61C17.48,6.32,7.07,15.25,7.07,29c0,12.28,8.68,17.73,18,17.73A22.21,22.21,0,0,0,32,45.46,2.57,2.57,0,0,1,35.18,47l.39,1a2.56,2.56,0,0,1-1.39,3.31,26.5,26.5,0,0,1-10,1.81C11.66,53.07,0,45.63,0,29.26,0,11.66,13,0,28.77,0M23.93,32.73c1.12,0,2.11-.62,3.47-2.48l1.36-7.81A2.75,2.75,0,0,0,26.29,21c-3.22,0-5.21,4.84-5.21,8.18,0,2.29,1,3.6,2.85,3.6\"/>\n `,\n\t\t},\n\t\tCreditCard: {\n\t\t\tviewBox: '0 0 158.87 129.58',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M.23,79.14A4.67,4.67,0,0,0,2.71,84.8l122.45,44.57a4.82,4.82,0,0,0,5.69-2.69L148.13,79.2,17.51,31.66Z\"/>\n <path class=\"fill\" d=\"M155.94,44.8,33.49.23A4.4,4.4,0,0,0,28,2.71L23,16.63,153.6,64.17l5.07-13.92A4.55,4.55,0,0,0,155.94,44.8Z\"/>\n `,\n\t\t},\n\t\tCreditCardCheck: {\n\t\t\tviewBox: '0 0 158.87 129.58',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M155.94,44.8,33.49.23A4.4,4.4,0,0,0,28,2.71L23,16.63,153.6,64.17l5.07-13.92a4.55,4.55,0,0,0-2.73-5.45\" transform=\"translate(0 0)\"/>\n <path class=\"fill\" d=\"M17.51,31.66.23,79.14a4.7,4.7,0,0,0,2.25,5.55l2-2,1-1a10.89,10.89,0,0,1,15.4,0l6,6,3,3L59.33,61.36a10.89,10.89,0,0,1,15.4,0l8.21,8.21a10.89,10.89,0,0,1,0,15.4L61.65,106.26l63.5,23.11a4.81,4.81,0,0,0,5.69-2.69L148.13,79.2Z\" transform=\"translate(0 0)\"/>\n <path class=\"fill\" d=\"M78.7,73.81,70.49,65.6a4.89,4.89,0,0,0-6.91,0L33.25,95.92l-3.4,3.4L22.58,92l-6-6a4.89,4.89,0,0,0-6.92,0l-1,1L1.43,94.23a4.89,4.89,0,0,0,0,6.92l13.3,13.3h0l15.13,15.13h0L45,114.45h0L55.43,104,78.7,80.73a4.89,4.89,0,0,0,0-6.92\" transform=\"translate(0 0)\"/>\n <path class=\"fill\" d=\"M13.1,84.59a4.91,4.91,0,0,1,1.84.36,4.91,4.91,0,0,0-1.84-.36\" transform=\"translate(0 0)\"/>\n <path class=\"fill\" d=\"M11.26,84.94a4.92,4.92,0,0,1,1.84-.36,4.92,4.92,0,0,0-1.84.36\" transform=\"translate(0 0)\"/>\n <path class=\"fill\" d=\"M9.64,86a4.88,4.88,0,0,1,1.62-1.07A4.88,4.88,0,0,0,9.64,86\" transform=\"translate(0 0)\"/>\n <path class=\"fill\" d=\"M14.94,84.94A4.88,4.88,0,0,1,16.56,86a4.88,4.88,0,0,0-1.62-1.07\" transform=\"translate(0 0)\"/>\n <path class=\"fill\" d=\"M68.87,64.52a4.87,4.87,0,0,1,1.62,1.07,4.87,4.87,0,0,0-1.62-1.07\" transform=\"translate(0 0)\"/>\n <path class=\"fill\" d=\"M63.57,65.6a4.87,4.87,0,0,1,1.62-1.07,4.87,4.87,0,0,0-1.62,1.07\" transform=\"translate(0 0)\"/>\n `,\n\t\t},\n\t\tClosed: {\n\t\t\tviewBox: '0 0 94.7 107.3',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <polygon class=\"fill\" points=\"0 0 0 106.4 10 106.4 10 11.4 84.7 11.4 84.7 106.4 94.7 106.4 94.7 0 0 0\" />\n <path class=\"fill\" d=\"M16.8,17.7v89.6h61V17.7ZM28.4,60.9a6.7,6.7,0,1,1,6.7-6.7A6.7,6.7,0,0,1,28.4,60.9Z\"/>\n `,\n\t\t},\n\t\tCogs: {\n\t\t\tviewBox: '0 0 224.3 205.6',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M149.5,92.1v21.6a4.26,4.26,0,0,1-.8,2.3,2.85,2.85,0,0,1-1.9,1.2L128.7,120a68,68,0,0,1-3.7,8.9c2.6,3.7,6.1,8.2,10.5,13.4a4.55,4.55,0,0,1,.8,2.3,3.11,3.11,0,0,1-.8,2.2,129.49,129.49,0,0,1-9.6,10.4c-4.6,4.6-7.7,6.9-9.2,6.9a4.63,4.63,0,0,1-2.5-.8l-13.4-10.5a49.72,49.72,0,0,1-9,3.6,155.29,155.29,0,0,1-2.7,18.1,3.35,3.35,0,0,1-3.5,2.8H63.9a3.34,3.34,0,0,1-2.3-.9,3.29,3.29,0,0,1-1.2-2l-2.7-17.9a58.53,58.53,0,0,1-8.8-3.6L35.1,163.3a3.2,3.2,0,0,1-2.3.8,4,4,0,0,1-2.5-.9c-11.2-10.4-16.8-16.6-16.8-18.7a4.25,4.25,0,0,1,.8-2.2c.8-1.1,2.4-3.2,4.8-6.2s4.2-5.4,5.5-7.1a54.16,54.16,0,0,1-4.1-9.6L2.8,116.6a2.9,2.9,0,0,1-2-1.1,3.24,3.24,0,0,1-.8-2.3V91.8a4.26,4.26,0,0,1,.8-2.3,2.85,2.85,0,0,1,1.9-1.2l18.1-2.8a68,68,0,0,1,3.7-8.9c-2.6-3.7-6.1-8.2-10.5-13.4a4.88,4.88,0,0,1-.8-2.3,3.57,3.57,0,0,1,.8-2.3,99.7,99.7,0,0,1,9.6-10.4c4.7-4.6,7.7-6.9,9.2-6.9a4.63,4.63,0,0,1,2.5.8L48.7,52.6a54.26,54.26,0,0,1,9-3.7,149.3,149.3,0,0,1,2.7-18,3.35,3.35,0,0,1,3.5-2.8H85.6a3.34,3.34,0,0,1,2.3.9,3.29,3.29,0,0,1,1.2,2l2.7,17.9a58.53,58.53,0,0,1,8.8,3.6l13.8-10.4a3.57,3.57,0,0,1,2.3-.8,4,4,0,0,1,2.5.9C130.4,52.6,136,58.8,136,60.9a4.25,4.25,0,0,1-.8,2.2c-.9,1.2-2.6,3.3-4.9,6.3s-4.1,5.3-5.3,7a80.19,80.19,0,0,1,4,9.6l17.7,2.7a4.15,4.15,0,0,1,2,1.2A3,3,0,0,1,149.5,92.1ZM96,123.9a28.93,28.93,0,0,0,8.8-21.1A28.55,28.55,0,0,0,96,81.7a28.93,28.93,0,0,0-21.1-8.8,28.55,28.55,0,0,0-21.1,8.8A28.93,28.93,0,0,0,45,102.8a28.39,28.39,0,0,0,8.8,21.1,28.93,28.93,0,0,0,21.1,8.8A29.5,29.5,0,0,0,96,123.9ZM224.3,34.8V51.1c0,1.2-5.8,2.5-17.4,3.6a34.18,34.18,0,0,1-3.5,6.1c4,8.8,6,14.2,6,16.1a1,1,0,0,1-.5.8c-9.5,5.5-14.3,8.3-14.5,8.3-.6,0-2.4-1.8-5.4-5.5s-5-6.3-6.1-7.9a25.83,25.83,0,0,1-3.5.2c-.8,0-1.9-.1-3.5-.2-1.1,1.6-3.1,4.3-6.1,7.9S165,86,164.4,86c-.2,0-5-2.8-14.5-8.3a1,1,0,0,1-.5-.8c0-1.9,2-7.3,6-16.1a31,31,0,0,1-3.5-6.1q-17.4-1.8-17.4-3.6V34.8c0-1.2,5.8-2.5,17.4-3.6a32.45,32.45,0,0,1,3.5-6.1c-4-8.8-6-14.2-6-16.1a1,1,0,0,1,.5-.8c.3-.2,1.7-.9,4.1-2.3s4.7-2.7,6.9-4S164.2,0,164.4,0q.9,0,5.4,5.4a93.13,93.13,0,0,1,6.1,7.9,25.83,25.83,0,0,1,3.5-.2c.8,0,1.9.1,3.5.2A113.15,113.15,0,0,1,193.6.2l.7-.2c.3,0,5.1,2.7,14.5,8.2a1,1,0,0,1,.5.8c0,1.9-2,7.3-6,16.1a32.45,32.45,0,0,1,3.5,6.1C218.5,32.4,224.3,33.6,224.3,34.8Zm0,119.6v16.3c0,1.2-5.8,2.5-17.4,3.6a34.18,34.18,0,0,1-3.5,6.1c4,8.8,6,14.2,6,16.1a1,1,0,0,1-.5.8c-9.5,5.5-14.3,8.3-14.5,8.3-.6,0-2.4-1.8-5.4-5.5s-5-6.3-6.1-7.9a25.83,25.83,0,0,1-3.5.2c-.8,0-1.9-.1-3.5-.2-1.1,1.6-3.1,4.3-6.1,7.9s-4.8,5.5-5.4,5.5c-.2,0-5-2.8-14.5-8.3a1,1,0,0,1-.5-.8c0-1.9,2-7.3,6-16.1a31,31,0,0,1-3.5-6.1q-17.4-1.8-17.4-3.6V154.4c0-1.2,5.8-2.5,17.4-3.6a32.45,32.45,0,0,1,3.5-6.1c-4-8.8-6-14.2-6-16.1a1,1,0,0,1,.5-.8c.3-.2,1.7-.9,4.1-2.3s4.7-2.7,6.9-4,3.3-1.9,3.5-1.9q.9,0,5.4,5.4a93.13,93.13,0,0,1,6.1,7.9,25.83,25.83,0,0,1,3.5-.2c.8,0,1.9.1,3.5.2a113.15,113.15,0,0,1,10.7-13.1l.7-.2c.3,0,5.1,2.7,14.5,8.2a1,1,0,0,1,.5.8c0,1.9-2,7.3-6,16.1a32.45,32.45,0,0,1,3.5,6.1C218.5,151.9,224.3,153.1,224.3,154.4ZM194.4,43A14.69,14.69,0,0,0,190,32.5a14.29,14.29,0,0,0-10.5-4.4A14.69,14.69,0,0,0,169,32.5,14.29,14.29,0,0,0,164.6,43,14.74,14.74,0,0,0,169,53.6,14.42,14.42,0,0,0,179.6,58a14.74,14.74,0,0,0,10.6-4.4A15.41,15.41,0,0,0,194.4,43Zm0,119.5A14.69,14.69,0,0,0,190,152a14.29,14.29,0,0,0-10.5-4.4A14.69,14.69,0,0,0,169,152a14.29,14.29,0,0,0-4.4,10.5,14.74,14.74,0,0,0,4.4,10.6,14,14,0,0,0,10.6,4.4,14.74,14.74,0,0,0,10.6-4.4A15.06,15.06,0,0,0,194.4,162.5Z\"/>\n `,\n\t\t},\n\t\tEye: {\n\t\t\tviewBox: '0 0 260 110',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M258.33,51.27C256,49.18,200.14,0,130,0S4,49.18,1.67,51.27a5,5,0,0,0,0,7.46C4,60.82,59.86,110,130,110S256,60.82,258.33,58.73a5,5,0,0,0,0-7.46ZM12.87,55a133.9,133.9,0,0,1,16.6-8.8c2.43-.91,5-1.94,7.68-2.91s5.5-2.07,8.46-3.07,6-2.13,9.14-3.13S61.12,35,64.48,34c6.66-2,13.67-3.91,20.87-5.58.88-.21,1.78-.39,2.67-.56a50,50,0,0,0,15.74,69.7C60.18,89.64,25,64.54,12.87,55ZM130,67.5A12.5,12.5,0,1,1,142.5,55,12.5,12.5,0,0,1,130,67.5Zm26.24,30.06A50,50,0,0,0,171.95,27.8l2.72.57c7.2,1.66,14.22,3.54,20.88,5.57,3.35,1,6.57,2.07,9.74,3.09s6.19,2.11,9.14,3.14c5.88,2.07,11.3,4.12,16.13,6A134.54,134.54,0,0,1,247.13,55C235,64.55,199.82,89.64,156.24,97.56Z\"/>\n `,\n\t\t},\n\t\tColorPalette: {\n\t\t\tviewBox: '0 0 88.22 61.29',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M44.61,0c-11.09,0-17,1.72-17,10.26,0,7.1,28,18.72,1.79,14.72-12.56-1.92-15.83-5.2-20.25-5.2C3.77,19.77,0,25.1,0,30.64,0,47.57,20.52,61.29,44.61,61.29S88.22,47.57,88.22,30.64,68.69,0,44.61,0M22.18,49.36c-5.37,0-9.72-3.07-9.72-6.84s4.35-6.84,9.72-6.84,9.72,3.07,9.72,6.84-4.35,6.84-9.72,6.84M49.5,56.28c-5,0-9.08-3.13-9.08-6.92s4.06-6.92,9.08-6.92,9.09,3.14,9.09,6.92-4.06,6.92-9.09,6.92m-.81-46.14c0-2.19,2.49-4,5.58-4s5.58,1.78,5.58,4-2.49,4-5.58,4-5.58-1.77-5.58-4M71.17,44c-4.37,0-7.87-2.67-7.87-5.9s3.51-5.88,7.87-5.88S79,34.89,79,38.14,75.52,44,71.17,44m0-19.3C67.73,24.74,65,22.64,65,20s2.78-4.7,6.21-4.7,6.21,2.11,6.21,4.7-2.78,4.71-6.21,4.71\"/>\n `,\n\t\t},\n\t\tEditPen: {\n\t\t\tviewBox: '0 0 123.16 123.73',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <rect class=\"fill\" x=\"21.44\" y=\"37.33\" width=\"83.9\" height=\"46\" transform=\"translate(-24.1 62.5) rotate(-45)\" />\n <path class=\"fill\" d=\"M113.28,42.41,80.75,9.88,87.4,3.24a11,11,0,0,1,15.56,0l17,17a11,11,0,0,1,0,15.56Z\" />\n <polygon class=\"fill\" points=\"45.33 110.93 12.8 78.4 0 123.73 45.33 110.93\" />\n `,\n\t\t},\n\t\tForm: {\n\t\t\tviewBox: '0 0 88.6 120.2',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M83.4,0H5.2A5.23,5.23,0,0,0,0,5.2V115a5.23,5.23,0,0,0,5.2,5.2H88.6V5.2A5.29,5.29,0,0,0,83.4,0ZM73.6,63.1H14.9a5.23,5.23,0,0,1-5.2-5.2,5.16,5.16,0,0,1,5.2-5.2H73.6a5.23,5.23,0,0,1,5.2,5.2A5.16,5.16,0,0,1,73.6,63.1Zm0,26.7H14.9a5.23,5.23,0,0,1-5.2-5.2,5.16,5.16,0,0,1,5.2-5.2H73.6a5.23,5.23,0,0,1,5.2,5.2A5.16,5.16,0,0,1,73.6,89.8Zm0-54.9H14.9a5.23,5.23,0,0,1-5.2-5.2,5.16,5.16,0,0,1,5.2-5.2H73.6a5.23,5.23,0,0,1,5.2,5.2A5.16,5.16,0,0,1,73.6,34.9Z\" />\n `,\n\t\t},\n\t\tFormPending: {\n\t\t\tviewBox: '0 0 100.44 108.14',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M30.8,76.69a38.47,38.47,0,0,1,.63-6.92H12.74A3.9,3.9,0,0,1,8.87,65.6,4,4,0,0,1,12.94,62H33.72a38.41,38.41,0,0,1,9.15-13.17H12.74a3.9,3.9,0,0,1-3.87-4.17,4,4,0,0,1,4.07-3.59H55.17A38.22,38.22,0,0,1,69,38.5V4a4.11,4.11,0,0,0-4-4H4.05A4.06,4.06,0,0,0,0,4V89a4.06,4.06,0,0,0,4.05,4H34.46A38,38,0,0,1,30.8,76.69ZM8.87,23a4,4,0,0,1,4.07-3.58H56.49a3.89,3.89,0,0,1,3.86,4.17,4,4,0,0,1-4.07,3.58H12.74A3.9,3.9,0,0,1,8.87,23Z\"/>\n <path class=\"fill\" d=\"M69,45.24a31.45,31.45,0,1,0,31.45,31.45A31.45,31.45,0,0,0,69,45.24Zm20,45.93a1.84,1.84,0,0,1,0,2.62l-2.83,2.8a1.86,1.86,0,0,1-2.61,0L69,82.13,69,82.2l-.07-.07L54.44,96.57a1.84,1.84,0,0,1-2.62,0L49,93.79a1.86,1.86,0,0,1,0-2.62L63.49,76.73,49,62.21a1.85,1.85,0,0,1,0-2.61l2.78-2.79a1.86,1.86,0,0,1,2.62,0L68.89,71.26l.07-.08.07.08L83.49,56.8a1.86,1.86,0,0,1,2.61,0l2.83,2.8a1.85,1.85,0,0,1,0,2.63L74.43,76.73Z\"/>\n `,\n\t\t},\n\t\tHashtag: {\n\t\t\tviewBox: '0 0 50.11 70.2',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M8,50H2a2,2,0,0,1-2-2V41.85a2,2,0,0,1,2-2H9.18L10.69,28H4.16a2,2,0,0,1-2-2V19.82a2,2,0,0,1,2-2H12L14,1.75A2,2,0,0,1,16,0h5.06a2,2,0,0,1,2,2.24L21.17,17.82H32.4l2-16.07a2,2,0,0,1,2-1.75h5.05a2,2,0,0,1,2,2.24L41.58,17.82h6.53a2,2,0,0,1,2,2V26a2,2,0,0,1-2,2H40.28l-1.4,11.88H46a2,2,0,0,1,2,2V48a2,2,0,0,1-2,2H37.69L35.42,68.44a2,2,0,0,1-2,1.76H28.28a2,2,0,0,1-2-2.23L28.4,50H17.28L15,68.44a2,2,0,0,1-2,1.76H7.86a2,2,0,0,1-2-2.23Zm21.6-10.15L31.1,28H19.87L18.47,39.85Z\"/>\n `,\n\t\t},\n\t\tHelp: {\n\t\t\tviewBox: '0 0 37.33 70.1',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M16.92,70.1c-5.2,0-8.9-4-8.9-9.3s3.7-9.4,8.9-9.4,9,4,9,9.4A9,9,0,0,1,16.92,70.1Z\" />\n <path class=\"fill\" d=\"M23.42,43.1a2.63,2.63,0,0,1-2.6,2.5h-8a2.65,2.65,0,0,1-2.6-2.6c0-12,12.9-17.5,12.9-24.6,0-4.1-2.7-6.4-6.8-6.4a11,11,0,0,0-7.5,3.1,2.61,2.61,0,0,1-3.5-.1L.82,10.9a2.6,2.6,0,0,1,0-3.8A23.4,23.4,0,0,1,17.32,0c11.4,0,20,5.4,20,17.3C37.42,28.8,24.32,32.9,23.42,43.1Z\" />\n `,\n\t\t},\n\t\tnewQuestionMark: {\n\t\t\tviewBox: '0 0 18 18',\n\t\t\tstyle: null,\n\t\t\thtml: `\n\t\t\t<path class=\"fill\" d=\"M14.25 2.25H3.75C3.35254 2.25119 2.9717 2.4096 2.69065 2.69065C2.4096 2.9717 2.25119 3.35254 2.25 3.75V14.25C2.25119 14.6475 2.4096 15.0283 2.69065 15.3093C2.9717 15.5904 3.35254 15.7488 3.75 15.75H14.25C14.6475 15.7488 15.0283 15.5904 15.3093 15.3093C15.5904 15.0283 15.7488 14.6475 15.75 14.25V3.75C15.7488 3.35254 15.5904 2.9717 15.3093 2.69065C15.0283 2.4096 14.6475 2.25119 14.25 2.25ZM9.0075 13.5C8.88326 13.5005 8.76015 13.4764 8.64528 13.4291C8.5304 13.3818 8.42603 13.3122 8.33818 13.2243C8.25033 13.1365 8.18074 13.0321 8.13342 12.9172C8.08611 12.8023 8.062 12.6792 8.0625 12.555C8.06148 12.431 8.08529 12.308 8.13251 12.1933C8.17974 12.0786 8.24943 11.9745 8.33748 11.8872C8.42554 11.7998 8.53018 11.7309 8.64525 11.6846C8.76031 11.6383 8.88348 11.6155 9.0075 11.6175C9.13129 11.6151 9.25429 11.6376 9.36914 11.6839C9.48399 11.7301 9.58832 11.7991 9.67586 11.8866C9.76341 11.9742 9.83238 12.0785 9.87862 12.1934C9.92487 12.3082 9.94745 12.4312 9.945 12.555C9.94569 12.6787 9.92197 12.8012 9.87519 12.9157C9.82842 13.0302 9.7595 13.1343 9.67241 13.2221C9.58532 13.3099 9.48175 13.3796 9.36765 13.4273C9.25355 13.475 9.13116 13.4997 9.0075 13.5ZM11.265 7.95C10.695 8.7825 10.155 9.045 9.8625 9.5775C9.7425 9.795 9.6975 9.9375 9.6975 10.635H8.3325C8.27613 10.1281 8.3564 9.61539 8.565 9.15C8.9325 8.4975 9.63 8.1075 10.035 7.53C10.1578 7.35507 10.2276 7.14851 10.2362 6.93497C10.2448 6.72142 10.1918 6.50992 10.0834 6.32569C9.97511 6.14147 9.81607 5.9923 9.62529 5.89598C9.43452 5.79966 9.22005 5.76027 9.0075 5.7825C8.69117 5.79136 8.38679 5.90525 8.14235 6.10624C7.89791 6.30722 7.72733 6.58385 7.6575 6.8925L6.42 6.3675C6.59221 5.82173 6.93513 5.34569 7.39826 5.00948C7.86138 4.67328 8.42023 4.49468 8.9925 4.5C9.43572 4.47532 9.87763 4.56766 10.2739 4.76776C10.6701 4.96786 11.0068 5.26867 11.25 5.64C11.4597 5.98822 11.5717 6.38648 11.5744 6.79294C11.577 7.19941 11.4701 7.59909 11.265 7.95Z\"/>\n\t\t\t`,\n\t\t},\n\t\tCalendar: {\n\t\t\tviewBox: '0 0 115 106',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <rect class=\"fill\" x=\"17\" y=\"0.8\" width=\"10\" height=\"20\" />\n <rect class=\"fill\" x=\"90.8\" width=\"10\" height=\"10\" />\n <path class=\"fill\" d=\"M104.8,10V24h-18V10H31V24.9H13V10H0v96H115V10ZM56.9,91.6c-14.3,0-24.8-7.5-24.8-18.4,0-8.2,5.4-13.1,12.1-16.5v-.4c-5.5-3.9-9.5-8.8-9.5-15.9,0-11.5,9.5-18.6,22.8-18.6,13,0,21.7,7.3,21.7,18.4,0,6.5-4.4,11.7-9.3,14.7v.4c6.9,3.5,12.4,8.7,12.4,17.6C82.1,83.5,72,91.6,56.9,91.6Z\"/>\n <path class=\"fill\" d=\"M61.4,51.1c2.8-3.1,4.4-6.4,4.4-9.9,0-5.2-3.3-8.7-8.6-8.7-4.4,0-8,2.5-8,7.7C49.1,45.8,54,48.5,61.4,51.1Z\"/>\n <path class=\"fill\" d=\"M51.7,60.6c-3.1,2.8-5.5,6.6-5.5,10.7,0,5.9,5.1,9.4,11,9.4,5.5,0,9.5-2.8,9.5-8.4C66.7,66.5,60.7,64.2,51.7,60.6Z\"/>\n <rect class=\"fill\" x=\"90.8\" width=\"10\" height=\"20\" />\n `,\n\t\t},\n\t\tLight: {\n\t\t\tviewBox: '0 0 33.97 60.91',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M25.22,47.27H8.75a2.62,2.62,0,0,1,0-5.25H25.22a2.62,2.62,0,1,1,0,5.25\" />\n <path class=\"fill\" d=\"M25.22,53.9H8.75a2.62,2.62,0,0,1,0-5.25H25.22a2.62,2.62,0,1,1,0,5.25\" />\n <path class=\"fill\" d=\"M20.93,60.91H13a1,1,0,0,1-.81-.42L9.67,56.82a1,1,0,0,1,.81-1.55h13a1,1,0,0,1,.81,1.55l-2.56,3.67a1,1,0,0,1-.81.42\"/>\n <path class=\"fill\" d=\"M34,17A17,17,0,1,0,4.74,28.76,11.14,11.14,0,0,1,7.8,36.49v1.09a2.7,2.7,0,0,0,2.7,2.7H23.7a2.7,2.7,0,0,0,2.7-2.7V36.17a11.22,11.22,0,0,1,3-7.63A16.92,16.92,0,0,0,34,17\"/>\n `,\n\t\t},\n\t\tNewTemplate: {\n\t\t\tviewBox: '0 0 148.5 120.13',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <rect class=\"fill\" x=\"59.99\" y=\"46.79\" width=\"18.05\" height=\"13.01\" />\n <path class=\"fill\" d=\"M143.34,0H65.14A5.16,5.16,0,0,0,60,5.16V41.79H83v23H60V115a5.16,5.16,0,0,0,5.16,5.16h63.2L148.5,100V5.16A5.16,5.16,0,0,0,143.34,0m-9.76,81.2H74.9a5.16,5.16,0,1,1,0-10.31h58.68a5.16,5.16,0,1,1,0,10.31m5.16-28.32c0,2.85-1.59,5.16-3.56,5.16H94.72c-2,0-3.56-2.31-3.56-5.16s1.59-5.16,3.56-5.16h40.46c2,0,3.56,2.31,3.56,5.16m-5.16-18H74.9a5.16,5.16,0,1,1,0-10.31h58.68a5.16,5.16,0,1,1,0,10.31\"/>\n <rect class=\"fill\" y=\"46.79\" width=\"78.04\" height=\"13.01\" />\n <rect class=\"fill\" x=\"32.51\" y=\"16.42\" width=\"13.01\" height=\"78.04\" />\n `,\n\t\t},\n\t\tReload: {\n\t\t\tviewBox: '0 0 489.533 489.533',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M268.175,488.161c98.2-11,176.9-89.5,188.1-187.7c14.7-128.4-85.1-237.7-210.2-239.1v-57.6c0-3.2-4-4.9-6.7-2.9l-118.6,87.1c-2,1.5-2,4.4,0,5.9l118.6,87.1c2.7,2,6.7,0.2,6.7-2.9v-57.5c87.9,1.4,158.3,76.2,152.3,165.6c-5.1,76.9-67.8,139.3-144.7,144.2c-81.5,5.2-150.8-53-163.2-130c-2.3-14.3-14.8-24.7-29.2-24.7c-17.9,0-31.9,15.9-29.1,33.6C49.575,418.961,150.875,501.261,268.175,488.161z\"/>\n `,\n\t\t},\n\t\tOpen: {\n\t\t\tviewBox: '0 0 94.7 120.4',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <polygon class=\"fill\" points=\"0 0 0 106.4 10 106.4 10 11.4 84.7 11.4 84.7 106.4 94.7 106.4 94.7 0 0 0\" />\n <path class=\"fill\" d=\"M30.9,29.1v91.3l48.3-12.6V15.2Zm6,43.6c0-4.2,2.7-7.6,6-7.6s6,3.4,6,7.6-2.7,7.6-6,7.6S36.9,77,36.9,72.7Z\"/>\n `,\n\t\t},\n\t\tPercent: {\n\t\t\tviewBox: '0 0 85.71 69.94',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M0,21.38C0,7.89,7.47,0,17.43,0S34.86,7.89,34.86,21.38,27.39,43,17.43,43,0,34.86,0,21.38m22.62,0c0-9.13-2.49-11.62-5.19-11.62s-5.19,2.49-5.19,11.62S14.73,33.2,17.43,33.2s5.19-2.7,5.19-11.83M21.43,67l34-65.94A2,2,0,0,1,57.25,0h5.46a2,2,0,0,1,1.78,2.92l-34,65.94a2,2,0,0,1-1.78,1.08H23.21A2,2,0,0,1,21.43,67M50.84,48.35C50.84,34.86,58.32,27,68.28,27s17.43,7.89,17.43,21.37S78.24,69.94,68.28,69.94,50.84,61.84,50.84,48.35m22.62,0c0-9.13-2.49-11.62-5.19-11.62s-5.19,2.49-5.19,11.62,2.49,11.83,5.19,11.83,5.19-2.7,5.19-11.83\"/>\n `,\n\t\t},\n\t\tQue: {\n\t\t\tviewBox: '0 0 73.1 87.2',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M17.4,87.2H2.4v-42a7.55,7.55,0,0,1,7.5-7.5h0a7.55,7.55,0,0,1,7.5,7.5Z\" />\n <circle class=\"fill\" cx=\"9.9\" cy=\"23.8\" r=\"9.9\" />\n <path class=\"fill\" d=\"M70.7,87.2h-15v-42a7.55,7.55,0,0,1,7.5-7.5h0a7.55,7.55,0,0,1,7.5,7.5Z\" />\n <circle class=\"fill\" cx=\"63.2\" cy=\"23.8\" r=\"9.9\" />\n <path class=\"fill\" d=\"M44.1,87.2h-15v-55a7.55,7.55,0,0,1,7.5-7.5h0a7.55,7.55,0,0,1,7.5,7.5Z\" />\n <circle class=\"fill\" cx=\"36.6\" cy=\"10.9\" r=\"10.9\" />\n `,\n\t\t},\n\t\tShake: {\n\t\t\tviewBox: '0 0 70.14 55.04',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M7.42,4a1.93,1.93,0,0,1,1,.3c2.2,1.1,3.9,2,5.1,2.6A45.62,45.62,0,0,0,11,18.22a4.58,4.58,0,0,0,.8,3.4c1,1.4,2.9,2.1,5.2,2.1a12.9,12.9,0,0,0,4-.7c3.4-1.4,5.4-5.2,6.8-7.8,1.7,0,4.4-.1,7.2-.2,2.3,1.3,7.6,4.1,11.3,5.8,2,.9,6.2,4.1,9.3,6.5h0a57.82,57.82,0,0,0,6.2,4.4c2.3,2,2.7,3.6,1.4,5.5a3.29,3.29,0,0,1-2.8,1.3,7.84,7.84,0,0,1-2.4-.4l-2.5-1,1.4,2.2a3.53,3.53,0,0,1,.4,1.2,2.26,2.26,0,0,1-.8,2.3,4.45,4.45,0,0,1-3.3,1.3,7.82,7.82,0,0,1-3.3-.8l-1.7-1,.5,1.9s.6,2.5-.6,3.8a5.14,5.14,0,0,1-3.7,1.4,3.2,3.2,0,0,1-1.8-.5l-2-1.4.7,2.4a3,3,0,0,1-.6,2.2,3.64,3.64,0,0,1-2.9,1.5,5.38,5.38,0,0,1-2.1-.5h0c-.1,0-.2-.1-.4-.3a10.21,10.21,0,0,0-.1-4.6,6,6,0,0,0-2.6-3.9,6.19,6.19,0,0,0-1.9-.7,6.08,6.08,0,0,0-2.8-5.5,7.42,7.42,0,0,0-3.5-1h-.6a5.72,5.72,0,0,0-2.4-2.7,5.61,5.61,0,0,0-3.1-.9,10,10,0,0,0-1.6.2,6.42,6.42,0,0,0-4.3-3.3,5.7,5.7,0,0,0-1.3-.1,6.23,6.23,0,0,0-4,1.5,8.06,8.06,0,0,0-1.3-3,26.67,26.67,0,0,0-4.7-4.2c-1-.7-1.1-1.2-1.1-1.7a8.07,8.07,0,0,1,.3-2l5.4-15.5a2.35,2.35,0,0,1,.8-1h.1a.9.9,0,0,1,.8-.4\"/>\n <path class=\"fill\" d=\"M30.32,55a2.69,2.69,0,0,1-1.5-.5,2.89,2.89,0,0,1-.9-4.2l.3-.5c1-1.5,3.3-2.1,4.4-1.5.9.6,1.3,2.7.9,4.6l-.1.3c-1.1,1.7-2,1.9-3.1,1.8\"/>\n <path class=\"fill\" d=\"M14.92,18.72s1-10.4,3.6-12.7,4.6-2.9,8-3.5,11-3.1,13.6-2.4S47,2,49.62,2.52s5.6,2.4,7.1,2.5c.9.1,3-1,4.7-1.8a2.37,2.37,0,0,1,2.2.2A2.76,2.76,0,0,1,64.72,5l5.2,16.2a4.23,4.23,0,0,1,.2,1.6,2.37,2.37,0,0,1-1.3,1.8c-1.8,1.2-4.5,3-4.7,3.5-.4.8-11.6-8.9-16-11s-11.9-6.2-11.9-6.2-9.6.2-10.3.2-2.8,6.7-6.1,8c-2,1.1-5.3.9-4.9-.4\"/>\n <path class=\"fill\" d=\"M9.92,41.22a.9.9,0,0,1-.5-.1,3.23,3.23,0,0,1-2.5-3.9l.2-.8c.4-1.8,2-3.8,3.8-3.4s2.6,2.9,2.2,4.6l-.2,1.2a2.65,2.65,0,0,1-3,2.4\"/>\n <path class=\"fill\" d=\"M16.12,46.62a2.08,2.08,0,0,1-1.3-.3,3.54,3.54,0,0,1-1.3-4.6l1.5-2.3c.9-1.6,2.9-2.8,4.5-1.8s1.3,3.1.6,4.7l-1.2,2.6a3.2,3.2,0,0,1-2.8,1.7\"/>\n <path class=\"fill\" d=\"M23.52,50.22a3,3,0,0,1-1.5-.5,3.33,3.33,0,0,1-1.1-4.5l2-2.9a2.94,2.94,0,0,1,4.2-1.2c1.5.9,1,3.6.4,5.3l-1,2.2a3,3,0,0,1-3,1.6\"/>\n `,\n\t\t},\n\t\tStar: {\n\t\t\tviewBox: '0 0 76.36 72.58',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M40.13,1.13l10,21a2.09,2.09,0,0,0,1.5,1.1l23,3a2,2,0,0,1,1.1,3.4l-16.9,16a2.11,2.11,0,0,0-.6,1.8l4.2,22.8a2,2,0,0,1-2.9,2.1l-20.4-11.1a2.12,2.12,0,0,0-1.9,0l-20.4,11.1a2,2,0,0,1-2.9-2.1l4.2-22.8a2,2,0,0,0-.6-1.8l-16.9-16a2,2,0,0,1,1.1-3.4l23-3a1.78,1.78,0,0,0,1.5-1.1l10-21A2.25,2.25,0,0,1,40.13,1.13Z\"/>\n `,\n\t\t},\n\t\tTimer: {\n\t\t\tviewBox: '0 0 77.3 113.6',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M27.9,56.6c.1,0,.1.1.2.1-.1,0-.1.1-.2.1C20,61.1,10.5,72,9.9,100.1H4.1A4.06,4.06,0,0,0,0,104.2v9.4H77.3v-9.4a4.06,4.06,0,0,0-4.1-4.1H67.4c-.7-28-10.3-39-18.1-43.3-.1,0-.1-.1-.2-.1.1,0,.1-.1.2-.1a20.71,20.71,0,0,0,6.3-4.8C63.1,44.1,67,31.2,67.4,13.5h5.8a4.06,4.06,0,0,0,4.1-4.1V4.1A4.06,4.06,0,0,0,73.2,0H4.2A4.06,4.06,0,0,0,.1,4.1V9.4a4.06,4.06,0,0,0,4.1,4.1H9.8C10.5,41.4,20,52.3,27.9,56.6m8.9,2.7h3.5c3.9.3,14.5,2.9,19.3,21-3.8,2.1-8.7,2.5-15.9-.4C36,77,28.4,73.7,18.7,76c-.1,0-.1.1-.2.1V76C24,61.7,33.2,59.7,36.8,59.3M20.8,42c-3.2-6.1-5.7-15.1-6-28.6H62C61.7,26,59.6,36,55.7,42.9c-13.9-6.6-24.9,4.7-34.9-.9\"/>\n `,\n\t\t},\n\t\tTrashcan: {\n\t\t\tviewBox: '0 0 116.6 133.9',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M72.5,8.2h0A8.24,8.24,0,0,0,64.3,0h-12a8.24,8.24,0,0,0-8.2,8.2H4.2A4.23,4.23,0,0,0,0,12.4v5.2H116.6V12.4a4.23,4.23,0,0,0-4.2-4.2Z\"/>\n <path class=\"fill\" d=\"M9.1,23.3,20.3,133.9H96.2L107.4,23.3ZM36.6,121a4.25,4.25,0,0,1-4.6-3.9L25.7,41.8a4.26,4.26,0,1,1,8.5-.7l6.3,75.3A4.25,4.25,0,0,1,36.6,121Zm25.9-4.6a4.2,4.2,0,0,1-8.4,0V41.3a4.2,4.2,0,0,1,8.4,0ZM90.9,41.8l-6.6,75.3a4.26,4.26,0,0,1-8.5-.7l6.6-75.3a4.26,4.26,0,1,1,8.5.7Z\"/>\n `,\n\t\t},\n\t\tInActive: {\n\t\t\tviewBox: '0 0 63.8 63.8',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M31.9,0A31.9,31.9,0,1,0,63.8,31.9,31.92,31.92,0,0,0,31.9,0Zm0,57.6A25.8,25.8,0,1,1,57.7,31.8,25.86,25.86,0,0,1,31.9,57.6Z\"/>\n `,\n\t\t},\n\t\tVideoLink: {\n\t\t\tviewBox: '0 0 265 168',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M0,5.2v158.2c0,3.1,3.3,4.5,6.4,4.5h191.5c3.1,0,6.1-1.4,6.1-4.5V5.2c0-3.1-3-5.2-6.1-5.2H6.4C3.3,0,0,2.1,0,5.2\n\t\t M104.4,35l8.3-8.3c11.8-11.7,29.6-11,42.4,1.6c12.1,12,12.2,31.5,0.2,43.6c-0.1,0.1-0.1,0.1-0.2,0.2l-26.2,26\n\t\t c-8.1,8-16.6,12.1-24.7,12.1c-6.6,0-12.9-2.7-18.4-8.2c-3.2-3.2-3.2-8.4,0-11.6c3.2-3.2,8.4-3.2,11.6,0l0,0\n\t\t c2.4,2.4,8,8,20-3.9l26.2-26c5.7-5.6,5.8-14.8,0.1-20.5c0,0-0.1-0.1-0.1-0.1c-5.2-5.2-13.2-7.7-19.3-1.6l-8.3,8.3\n\t\t c-3.2,3.2-8.4,3.2-11.6-0.1S101.2,38.2,104.4,35 M41.4,97.5L66,73.1c15.3-15.2,32.8-17.3,44.7-5.6c3.2,3.2,3.2,8.4,0,11.6\n\t\t c-3.2,3.2-8.4,3.2-11.6,0c-7-6.9-16.6,0.5-21.7,5.6L53,109c-5.7,5.6-5.7,14.8-0.1,20.5c0,0,0.1,0.1,0.1,0.1\n\t\t c5.8,5.7,15.2,5.7,21,0l6.7-6.6c3.3-3.1,8.5-3,11.6,0.3c3,3.2,3,8.1,0,11.3l-6.7,6.6c-12.2,12-31.8,12-44,0\n\t\t c-12.1-12-12.2-31.5-0.2-43.6c0.1-0.1,0.1-0.1,0.2-0.2\"/>\n\t <path class=\"fill\" d=\"M260.8,9l-45.1,35.1c-2.4,1.9-4.8,5.9-4.8,9.1v62.4c0,3.1,2.5,7.2,4.9,9.1l44.7,35.1c2.4,1.9,4.4,0.9,4.4-2.1V11.1\n C265,8.1,263.2,7.1,260.8,9\"/>\n `,\n\t\t},\n\t\tVideoCall: {\n\t\t\tviewBox: '0 0 262.4 168',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M201,5.6c0-3.1-2.5-5.6-5.6-5.6H5.6C2.5,0,0,2.5,0,5.6v156.9c0,3.1,2.5,5.6,5.6,5.6h189.9\n\t\t c3.1,0,5.6-2.5,5.6-5.6V5.6z M71.9,123.4c-2.7,1.4-5,0-5-3.1V47.7c0-3.1,2.2-4.4,5-3.1l73.8,36.9c2.7,1.4,2.7,3.6,0,5L71.9,123.4z\"/>\n\t <path class=\"fill\" d=\"M213.7,44.1c-2.4,1.9-4.4,5.9-4.4,9v61.9c0,3.1,2,7.1,4.4,9l44.3,34.8c2.4,1.9,4.4,0.9,4.4-2.1V11.4\n\t\t c0-3.1-2-4-4.4-2.1L213.7,44.1z\"/>\n `,\n\t\t},\n\t\tGlobe: {\n\t\t\tviewBox: '0 0 100 100',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M49.95,0A50,50,0,1,0,100,50,50,50,0,0,0,49.95,0ZM84.6,30H69.85A78.25,78.25,0,0,0,63,12.2,40.15,40.15,0,0,1,84.6,30ZM50,10.2A70.43,70.43,0,0,1,59.55,30H40.45A70.43,70.43,0,0,1,50,10.2ZM11.3,60A41.21,41.21,0,0,1,10,50a41.21,41.21,0,0,1,1.3-10H28.2a82.58,82.58,0,0,0-.7,10,82.58,82.58,0,0,0,.7,10Zm4.1,10H30.15a78.25,78.25,0,0,0,6.9,17.8A39.93,39.93,0,0,1,15.4,70ZM30.15,30H15.4A39.93,39.93,0,0,1,37,12.2,78.25,78.25,0,0,0,30.15,30ZM50,89.8A70.43,70.43,0,0,1,40.45,70h19.1A70.43,70.43,0,0,1,50,89.8ZM61.7,60H38.3a73.56,73.56,0,0,1-.8-10,72.92,72.92,0,0,1,.8-10H61.7a72.92,72.92,0,0,1,.8,10A73.56,73.56,0,0,1,61.7,60ZM63,87.8A78.25,78.25,0,0,0,69.85,70H84.6A40.15,40.15,0,0,1,63,87.8ZM71.8,60a82.58,82.58,0,0,0,.7-10,82.58,82.58,0,0,0-.7-10H88.7A41.21,41.21,0,0,1,90,50a41.21,41.21,0,0,1-1.3,10Z\"/>\n `,\n\t\t},\n\t\tPhoneSmart: {\n\t\t\tviewBox: '0 0 77.4 141.1',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M65.7,0H11.2A11,11,0,0,0,0,10.7V131.1c0,5.6,4.7,10,11.2,10H65.7c6.5,0,11.7-4.4,11.7-10V10.7C77.4,5.2,72.2,0,65.7,0Zm5.7,116.9H5.9V16.6H71.4Z\"/>\n `,\n\t\t},\n\t\tPhone: {\n\t\t\tviewBox: '0 0 473.1 473.09',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M207,115.31c6.4-5.79,3.58-14.82-.19-19.57L132.87,4.82C128.18.19,119.24-1.56,112,1.61L93.31,17.15l95,116.84Z\" transform=\"translate(-26.9 0)\"/>\n <path class=\"fill\" d=\"M206,374.46c56.14,50.45,124.72,82.67,165.3,98.63,14.13-1.33,34.59-9.47,53.38-19.65,17.37-9.63,33.54-21.56,43-30.67L349.86,327c-4.65,4-8.12,6.34-15.52,10.48-10.76,6-15.14,7.3-31.53-4.41-5.56-4.24-17.11-12.33-30.64-24.81C251.25,289,211,248.74,191.69,227.83c-12.49-13.53-20.57-25.09-24.81-30.65-11.7-16.4-10.41-20.76-4.41-31.53,4.14-7.41,6.47-10.86,10.48-15.52L77.22,32.36c-9.12,9.41-21,25.58-30.68,43C36.38,94.11,28.24,114.57,26.9,128.69c16,40.58,48.18,109.16,98.63,165.3C144.55,315.15,184.84,355.44,206,374.46Z\" transform=\"translate(-26.9 0)\"/>\n <path class=\"fill\" d=\"M404.25,293.22c-4.75-3.77-13.78-6.59-19.56-.18L366,311.72l116.84,95L498.4,388c3.17-7.27,1.41-16.22-3.21-20.91Z\" transform=\"translate(-26.9 0)\"/>\n `,\n\t\t},\n\t\tPhoneDash: {\n\t\t\tviewBox: '0 0 121.82 121.82',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M50.42,28.1c1.56-1.41.87-3.61,0-4.77l-18-22.15A4.85,4.85,0,0,0,27.28.39L22.73,4.18,45.87,32.64Z\"/>\n <path class=\"fill\" d=\"M90.46,115.26c3.44-.32,8.43-2.31,13-4.79A53.52,53.52,0,0,0,113.94,103L85.24,79.68a19.76,19.76,0,0,1-3.78,2.55c-2.62,1.46-3.69,1.78-7.68-1.07-1.35-1-4-3.14-7.47-6L50.19,91.23c14.31,11.55,30.39,20.14,40.27,24\"/>\n <path class=\"fill\" d=\"M40.66,48c-2.85-4-2.54-5.06-1.07-7.68a19.93,19.93,0,0,1,2.55-3.78L18.81,7.88a53.37,53.37,0,0,0-7.47,10.47c-2.48,4.58-4.46,9.56-4.79,13,3.89,9.89,12.48,26,24,40.27L46.7,55.51c-2.91-3.42-5-6.11-6-7.47\"/>\n <path class=\"fill\" d=\"M98.49,71.44c-1.16-.92-3.36-1.61-4.77,0l-4.55,4.55,28.47,23.14,3.79-4.54a4.85,4.85,0,0,0-.78-5.09Z\"/>\n <path class=\"fill\" d=\"M108.82,13a6.55,6.55,0,0,0-9.27,0L1.92,110.63a6.55,6.55,0,1,0,9.27,9.27l97.63-97.63a6.55,6.55,0,0,0,0-9.27\"/>\n `,\n\t\t},\n\t\tMinimizeSlide: {\n\t\t\tviewBox: '1538 564 13 20',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <g transform=\"translate(1538 564)\">\n\t\t\t\t\t<path class=\"fill\" d=\"M6.489,4.622,1.65,0,0,1.577,6.489,7.8,13,1.577,11.35,0Z\" transform=\"translate(13 20) rotate(180)\"/>\n\t\t\t\t\t<path class=\"fill\" d=\"M6.489,4.622,1.65,0,0,1.577,6.489,7.8,13,1.577,11.35,0Z\" transform=\"translate(0 0)\"/>\n\t\t\t\t</g>\n `,\n\t\t},\n\t\tLock: {\n\t\t\tviewBox: '0 0 111.3 152.8',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M111.3,79.4v62.9a10.72,10.72,0,0,1-2.7,7.4,8.64,8.64,0,0,1-6.6,3.1H9.3a8.33,8.33,0,0,1-6.6-3.1A10.71,10.71,0,0,1,0,142.3V79.4A10.72,10.72,0,0,1,2.7,72c1.8-2,6-3.1,8.6-3.1h3.1v-21c0-13.4,2.2-24.9,10.8-34.5S43.9,0,55.7,0s22,3.8,30.5,13.4S96.9,34.5,96.9,47.9v21H102a8.33,8.33,0,0,1,6.6,3.1A10.71,10.71,0,0,1,111.3,79.4ZM26.9,68.9H84.4v-21c0-7.7-1.4-20.3-6.2-25.8s-10.3-9.2-21.5-9.2c-13.3,0-16.7,3.7-21.5,9.2S27,40.2,27,47.9l-.1,21Zm36,41.9a11.79,11.79,0,0,0,4.7-9.5,11.9,11.9,0,1,0-23.8,0,12.05,12.05,0,0,0,4.3,9.2l-4.8,22.2H67.8Z\"/>\n `,\n\t\t},\n\t\tHouse: {\n\t\t\tviewBox: '0 0 139.6 130.6',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M139.6,69.8,69.8,0,0,69.8l7.4,7.4a5.07,5.07,0,0,0,7.2,0L69.7,22.1l55.1,55.1a5.07,5.07,0,0,0,7.2,0Z\"/>\n <path class=\"fill\" d=\"M69.9,27.4,14.3,83v47.6H55.2V90.4a5.48,5.48,0,0,1,5.5-5.5H76.1a5.48,5.48,0,0,1,5.5,5.5v40.2h44.1V83Z\"/>\n `,\n\t\t},\n\n\t\tUnits: {\n\t\t\tviewBox: '0 0 256 256',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <circle class=\"fill\" cx=\"128\" cy=\"56.86\" r=\"30.01\"/>\n\t\t\t<circle class=\"fill\" cx=\"35.32\" cy=\"199.14\" r=\"30.01\"/>\n\t\t\t<circle class=\"fill\" cx=\"128\" cy=\"199.14\" r=\"30.01\"/>\n\t\t\t<circle class=\"fill\" cx=\"220.68\" cy=\"199.14\" r=\"30.01\"/>\n\t\t\t<path class=\"fill\" d=\"M35.49,161.55a35.61,35.61,0,0,1,12.35,2.12V149.2a9.65,9.65,0,0,1,9.54-9.71H116.7v24.88a37.46,37.46,0,0,1,11.12-1.76,34.29,34.29,0,0,1,13.59,2.65V139.49H199A9.53,9.53,0,0,1,208.5,149v14.65a37.14,37.14,0,0,1,24.71,0V127.12h0a12.39,12.39,0,0,0-12.35-12.35H150.74a9.44,9.44,0,0,1-9.37-9.36V93.58a35.38,35.38,0,0,1-13.59,2.65,34.15,34.15,0,0,1-11.12-1.77v11a9.42,9.42,0,0,1-9.36,9.36H35.49a12.51,12.51,0,0,0-12.36,12.35h0v36.2A46.55,46.55,0,0,1,35.49,161.55Z\"/>\n `,\n\t\t},\n\n\t\tTag: {\n\t\t\tviewBox: '0 0 109.38 52.6',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M83,0H6.3A6.27,6.27,0,0,0,0,6.3v40a6.27,6.27,0,0,0,6.3,6.3H83a6.71,6.71,0,0,0,4.5-1.8l20-20a6.22,6.22,0,0,0,0-8.9l-20-20A6.36,6.36,0,0,0,83,0Zm5.8,34.7a8.3,8.3,0,1,1,8.3-8.3A8.28,8.28,0,0,1,88.8,34.7Z\"/>\n `,\n\t\t},\n\t\tLogOut: {\n\t\t\tviewBox: '0 0 51.7 57.39',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M25.4,28.14,10,15.14a.79.79,0,0,0-1.3.6V23a.86.86,0,0,1-.8.8H.8a.86.86,0,0,0-.8.8v8.3a.86.86,0,0,0,.8.8H7.9a.86.86,0,0,1,.8.8v7.3a.79.79,0,0,0,1.3.6l15.4-13A.85.85,0,0,0,25.4,28.14Z\"/>\n <path class=\"fill\" d=\"M50.8,6.24,31.4,0a1.22,1.22,0,0,0-1.6,1v55.3a1.22,1.22,0,0,0,1.6,1l19.3-5.2a1.07,1.07,0,0,0,1-1V7.24C51.7,6.84,51.3,6.44,50.8,6.24Zm-4.7,27-1.4,1.7-3.6-4.5-4.9,5.7-1.4-1.7,4.9-5.7-4.9-5.8,1.4-1.7L41.1,27l3.7-4.5,1.4,1.7-3.7,4.5Z\"/>\n <path class=\"fill\" class=\"fill\" d=\"M17.8,4.84H16.2a1.58,1.58,0,0,0-1.6,1.6v7.9a1.58,1.58,0,0,0,1.6,1.6h0a1.58,1.58,0,0,0,1.6-1.6V9.74a1.58,1.58,0,0,1,1.6-1.6H29.7a1.58,1.58,0,0,0,1.6-1.6h0a1.58,1.58,0,0,0-1.6-1.6l-11.9-.1Z\"/>\n <path class=\"fill\" d=\"M17.8,52.64H16.2A1.58,1.58,0,0,1,14.6,51v-7.9a1.58,1.58,0,0,1,1.6-1.6h0a1.58,1.58,0,0,1,1.6,1.6v4.6a1.58,1.58,0,0,0,1.6,1.6H29.7a1.58,1.58,0,0,1,1.6,1.6h0a1.58,1.58,0,0,1-1.6,1.6l-11.9.1Z\"/>\n `,\n\t\t},\n\t\tFilter: {\n\t\t\tviewBox: '0 0 100 92.09',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M8.22,9.53H.93a.91.91,0,0,0-.93.9v5.12a1,1,0,0,0,.93,1H8.22a19.72,19.72,0,0,1,0-7\" transform=\"translate(0)\"/>\n <path class=\"fill\" d=\"M99.07,9.53H47.6a19.72,19.72,0,0,1,0,7H99.07a1,1,0,0,0,.93-1V10.44a.91.91,0,0,0-.93-.9\" transform=\"translate(0)\"/>\n <path class=\"fill\" d=\"M40.45,9.53A13,13,0,1,0,40.93,13a13,13,0,0,0-.48-3.49\" transform=\"translate(0)\"/>\n <path class=\"fill\" d=\"M22.17,75.58H.93a.91.91,0,0,0-.93.9V81.6a1,1,0,0,0,.93,1H22.17a19.72,19.72,0,0,1,0-7\" transform=\"translate(0)\"/>\n <path class=\"fill\" d=\"M99.07,75.58H61.55a19.72,19.72,0,0,1,0,7H99.07a1,1,0,0,0,.93-1V76.49a.91.91,0,0,0-.93-.9\" transform=\"translate(0)\"/>\n <path class=\"fill\" d=\"M91.78,42.56h7.29a.91.91,0,0,1,.93.9v5.12a1,1,0,0,1-.93,1H91.78a19.72,19.72,0,0,0,0-7\" transform=\"translate(0)\"/>\n <path class=\"fill\" d=\"M.93,42.56H52.4A20.27,20.27,0,0,0,52.09,46a20,20,0,0,0,.31,3.49H.93a1,1,0,0,1-.93-1V43.46a.91.91,0,0,1,.93-.9\" transform=\"translate(0)\"/>\n <path class=\"fill\" d=\"M54.41,75.58a13,13,0,1,0,.48,3.49,13,13,0,0,0-.48-3.49\" transform=\"translate(0)\"/>\n <path class=\"fill\" d=\"M59.55,42.56A13,13,0,1,1,59.07,46a13,13,0,0,1,.48-3.49\" transform=\"translate(0)\"/>\n `,\n\t\t},\n\t\tFile: {\n\t\t\tviewBox: '11012 12129 28.571 40',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <g id=\"Group_1534\" data-name=\"Group 1534\" transform=\"translate(11012 12129)\">\n <path class=\"fill\" d=\"M28.243,13.086H38.871L25.786,0H25.5V10.343A2.708,2.708,0,0,0,28.243,13.086Z\" transform=\"translate(-10.929)\"/>\n <path class=\"fill\" d=\"M16.4,15.371c-3.029,0-4.114-1.314-4.114-4.114V0H1.714A1.684,1.684,0,0,0,0,1.714V38.286A1.684,1.684,0,0,0,1.714,40H26.857a1.684,1.684,0,0,0,1.714-1.714V15.371Z\"/>\n </g>\n `,\n\t\t},\n\t\tHearth: {\n\t\t\tviewBox: '0 0 100 84.13',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M74.94,0C62.29,0,51.88,7.93,50.2,16.81a.25.25,0,0,1-.48,0C48,8,37.63,0,25,0,11.21,0,0,11.45,0,25.54A25.54,25.54,0,0,0,7,43.31c.48.48,1,1,1.44,1.44L48.12,83.35a2.66,2.66,0,0,0,3.76,0L91.51,44.76A12.23,12.23,0,0,0,93,43.31a26,26,0,0,0,7-17.77C99.92,11.45,88.71,0,74.94,0\" transform=\"translate(0)\"/>\n `,\n\t\t},\n\t\tLocationMarker: {\n\t\t\tviewBox: '0 0 66.67 100',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M33.33,0A33.33,33.33,0,0,0,0,33.33C0,51.74,33.33,100,33.33,100S66.67,51.74,66.67,33.33A33.33,33.33,0,0,0,33.33,0m0,53.54A20.21,20.21,0,1,1,53.54,33.33,20.21,20.21,0,0,1,33.33,53.54\" transform=\"translate(0)\"/>\n `,\n\t\t},\n\t\tDrag: {\n\t\t\tviewBox: '0 71 128 57',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <rect class=\"fill\" width=\"128\" height=\"9\" transform=\"translate(0 71)\"/>\n <rect class=\"fill\" width=\"128\" height=\"9\" transform=\"translate(0 95)\"/>\n <rect class=\"fill\" width=\"128\" height=\"9\" transform=\"translate(0 119)\"/>\n `,\n\t\t},\n\t\tWarning: {\n\t\t\tviewBox: '0 0 100 89.45',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M98.54,73.33l-39.23-68a10.75,10.75,0,0,0-18.62,0l-39.23,68a10.75,10.75,0,0,0,9.31,16.12H89.23a10.75,10.75,0,0,0,9.31-16.12m-53-59h8.88a2.46,2.46,0,0,1,2.7,2.27l-.4,9.29L54.86,58.39a2.52,2.52,0,0,1-2.69,2.09H47.73A2.52,2.52,0,0,1,45,58.39L43.16,25.91l-.3-9.31a2.47,2.47,0,0,1,2.7-2.25M50,83.48A8.5,8.5,0,1,1,58.5,75a8.5,8.5,0,0,1-8.5,8.5\" transform=\"translate(0 0)\"/>\n `,\n\t\t},\n\t\tPaymentPending: {\n\t\t\tviewBox: '0 0 172.97 96.47',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M135,0H4.3A4.31,4.31,0,0,0,0,4.3V19H139V4.2c.1-2.2-2.1-4.2-4.4-4.2\"/>\n <path class=\"fill\" d=\"M95.48,62.05A42.86,42.86,0,0,1,105.05,35H0V85.5A4.51,4.51,0,0,0,4.5,90H105.8A42.87,42.87,0,0,1,95.48,62.05Z\"/>\n <path class=\"fill\" d=\"M172.93,60.75a34,34,0,1,0-35.67,35.67A34.13,34.13,0,0,0,172.93,60.75ZM159.85,80.67l-2.75,2.75a2.11,2.11,0,0,1-3,0L139,68.26,123.81,83.42a2.11,2.11,0,0,1-3,0l-2.75-2.75a2.11,2.11,0,0,1,0-3l15.09-15.16L118.08,47.38a2.11,2.11,0,0,1,0-3l2.75-2.75a2.11,2.11,0,0,1,3,0L139,56.82l15.16-15.16a2.11,2.11,0,0,1,3,0l2.75,2.75a2.11,2.11,0,0,1,0,3L144.76,62.54,159.85,77.7A2.11,2.11,0,0,1,159.85,80.67Z\"/>\n `,\n\t\t},\n\t\tTextBubble: {\n\t\t\tviewBox: '0 0 91.62 74.94',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M87.23,0a4.39,4.39,0,0,1,4.39,4.39V54.92a4.39,4.39,0,0,1-4.39,4.39H25.66L11.34,74.94l1.09-15.63h-8A4.39,4.39,0,0,1,0,54.92V4.39A4.39,4.39,0,0,1,4.39,0\"/>\n `,\n\t\t},\n\t\tCheck: {\n\t\t\tviewBox: '0 0 65.55 53.51',\n\t\t\tstyle: null,\n\t\t\thtml:\n\t\t\t\t'<path class=\"fill\" d=\"M64.38,7.89,57.66,1.17a4,4,0,0,0-5.66,0L24.42,28.75,13.55,17.87a4,4,0,0,0-5.66,0L1.17,24.59a4,4,0,0,0,0,5.66L12.05,41.13h0L24.42,53.51h0L36.81,41.14h0L64.38,13.55a4,4,0,0,0,0-5.66\" transform=\"translate(0 0)\" />',\n\t\t},\n\t\tCalendar2: {\n\t\t\tviewBox: '0 0 100 93.75',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <rect class=\"fill\" x=\"11.8\" y=\"0.56\" width=\"6.94\" height=\"13.88\"/>\n\t <path class=\"fill\" d=\"M42.61,35.46a10.31,10.31,0,0,0,3.05-6.87c0-3.61-2.29-6-6-6-3.05,0-5.55,1.73-5.55,5.34-.07,3.89,3.33,5.76,8.47,7.56\" transform=\"translate(0 0)\"/>\n\t <path class=\"fill\" d=\"M35.88,42.05c-2.15,1.94-3.82,4.58-3.82,7.43,0,4.09,3.54,6.52,7.63,6.52,3.82,0,6.59-1.94,6.59-5.83s-4.16-5.62-10.41-8.12\" transform=\"translate(0 0)\"/>\n\t <rect class=\"fill\" x=\"63.01\" width=\"6.94\" height=\"13.88\"/>\n\t <path class=\"fill\" d=\"M79.81,53.37A20.19,20.19,0,1,0,100,73.56,20.21,20.21,0,0,0,79.81,53.37M94.31,69,81.68,81.68,76.06,87.3l-5.62-5.62-5.07-5a1.84,1.84,0,0,1,0-2.57l3.05-3.05a1.84,1.84,0,0,1,2.57,0l5,5L88.62,63.43a1.84,1.84,0,0,1,2.57,0l3.05,3.05A1.91,1.91,0,0,1,94.31,69\" transform=\"translate(0 0)\"/>\n <path class=\"fill\" d=\"M79.81,47.61V6.94H72.73v9.72H60.24V6.94H21.51V17.28H9V6.94H0V73.56H53.85a25.91,25.91,0,0,1,26-26m-40.32,16c-9.92,0-17.21-5.2-17.21-12.77,0-5.69,3.75-9.09,8.4-11.45v-.28c-3.82-2.71-6.59-6.11-6.59-11,0-8,6.59-12.91,15.82-12.91,9,0,15.06,5.07,15.06,12.77,0,4.51-3.05,8.12-6.45,10.2v.28c4.79,2.43,8.61,6,8.61,12.21-.14,7.36-7.15,13-17.63,13\" transform=\"translate(0 0)\"/>\n `,\n\t\t},\n\t\tMegaphone: {\n\t\t\tviewBox: '0 0 24 15.672',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M14.7,15.4l-1.462-1.03a22.664,22.664,0,0,0-9.327-3.82l-2.865-.478A1.26,1.26,0,0,1,0,8.851V6.612A1.237,1.237,0,0,1,1.045,5.389L3.91,4.911a22.687,22.687,0,0,0,9.252-3.776L14.7.061A.426.426,0,0,1,15.371.4V15.074A.421.421,0,0,1,14.7,15.4Z\" transform=\"translate(0 0)\" />\n <path class=\"fill\" d=\"M8.208,75.534h-4L3,72.4l1.283.06.776,1.88H7.4l.418-1,1.254.313Z\" transform=\"translate(-2.552 -61.609)\" />\n <path class=\"fill\" d=\"M133.974,2.7A11,11,0,0,1,134,17.966l-1.074-1.074a9.563,9.563,0,0,0-.03-13.1Z\" transform=\"translate(-113.067 -2.311)\" />\n <path class=\"fill\" d=\"M117.734,20a7.326,7.326,0,0,1-.06,10.207L116.6,29.133a5.914,5.914,0,0,0,.06-8.044Z\" transform=\"translate(-99.2 -17.029)\" />\n `,\n\t\t},\n\t\tAddressBook: {\n\t\t\tviewBox: '1384.531 343 25.469 32',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d= \"M20.5,0H1.2A1.187,1.187,0,0,0,0,1.2V30.8A1.2,1.2,0,0,0,1.2,32H20.519a1.2,1.2,0,0,0,1.2-1.2V1.2A1.218,1.218,0,0,0,20.5,0ZM17.127,22.731a5.508,5.508,0,0,1-1.285.463,19.581,19.581,0,0,1-4.55.632,19.794,19.794,0,0,1-6.657-.906,2.21,2.21,0,0,1-.59-.295.9.9,0,0,1-.379-.758A13.643,13.643,0,0,1,3.834,19.8a7.619,7.619,0,0,1,.274-.99,1.727,1.727,0,0,1,.8-.927A5.387,5.387,0,0,1,6.72,17.3,6.6,6.6,0,0,0,8.6,16.748a.5.5,0,0,0,.316-.463c.021-.232.042-.463.063-.716a.615.615,0,0,0-.042-.19,9.16,9.16,0,0,1-.716-1.77c-.042-.105-.063-.169-.19-.147-.147.042-.232-.063-.253-.19-.042-.421-.063-.843-.105-1.264a.3.3,0,0,1,.042-.147c.19-.105.126-.253.126-.4a4.6,4.6,0,0,1,.063-1.2A2.464,2.464,0,0,1,9.459,8.427a3.008,3.008,0,0,1,3.834,1.18,2.868,2.868,0,0,1,.274,1.58v.358c0,.105-.021.19.105.253.084.042.084.147.084.232-.021.379-.063.758-.084,1.138-.021.19-.084.316-.316.253-.105-.021-.126.042-.147.105a9.892,9.892,0,0,1-.758,1.833.5.5,0,0,0-.042.169,1.418,1.418,0,0,1,.021.421c-.042.527.253.758.716.927a15.572,15.572,0,0,0,1.959.463,3.748,3.748,0,0,1,1.475.59,1.957,1.957,0,0,1,.737,1.032,9.6,9.6,0,0,1,.358,2.886A.973.973,0,0,1,17.127,22.731Z\" transform= \"translate(1384.531 343)\" />\n <path class=\"fill\" d= \"M108.57,22.5H106.8v6.109h1.77a1.2,1.2,0,0,0,1.2-1.2V23.7A1.228,1.228,0,0,0,108.57,22.5Z\" transform= \"translate(1300.23 325.24)\" />\n <path class=\"fill\" d= \"M108.57,61.4H106.8v6.109h1.77a1.2,1.2,0,0,0,1.2-1.2V62.6A1.228,1.228,0,0,0,108.57,61.4Z\" transform= \"translate(1300.23 294.535)\" />\n <path class=\"fill\" d= \"M108.57,100.3H106.8v6.109h1.77a1.2,1.2,0,0,0,1.2-1.2V101.5A1.214,1.214,0,0,0,108.57,100.3Z\" transform= \"translate(1300.23 263.83)\" />\n `,\n\t\t},\n\t\tSearch: {\n\t\t\tviewBox: '0 0 100 100',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d= \"M61.45,10.54A36,36,0,0,0,10.54,61.45,36,36,0,1,0,61.45,10.54ZM55,55a26.83,26.83,0,1,1,0-38A26.66,26.66,0,0,1,55,55ZM98.55,91.54,71.26,64.25a5,5,0,0,0-7,7L91.54,98.55a5,5,0,1,0,7-7Z\" />\n `,\n\t\t},\n\t\tVerticalDots: {\n\t\t\tviewBox: '0 0 4 20',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <circle class=\"fill\" cx= \"2\" cy= \"2\" r= \"2\" transform= \"translate(0 0)\" />\n <circle class=\"fill\" cx= \"2\" cy= \"2\" r= \"2\" transform= \"translate(0 8)\" />\n <circle class=\"fill\" cx= \"2\" cy= \"2\" r= \"2\" transform= \"translate(0 16)\" />\n `,\n\t\t},\n\t\tFormCheck: {\n\t\t\tviewBox: '0 0 102.6 136.58',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d= \"M97.4,0H19.2A5.23,5.23,0,0,0,14,5.2V86.63a9.85,9.85,0,0,1,6.09,2.85l6,6,3.75,3.75L39.3,89.8H28.9a5.23,5.23,0,0,1-5.2-5.2,5.16,5.16,0,0,1,5.2-5.2H49.7L60,69.06a9.88,9.88,0,0,1,14,0l8.21,8.21a9.92,9.92,0,0,1,1.61,2.12H87.6a5.23,5.23,0,0,1,5.2,5.2,5.16,5.16,0,0,1-5.2,5.2H83.44a10,10,0,0,1-1.21,1.46L59,114.53,53.3,120.2h49.3V5.2A5.29,5.29,0,0,0,97.4,0ZM87.6,63.1H28.9a5.23,5.23,0,0,1-5.2-5.2,5.16,5.16,0,0,1,5.2-5.2H87.6a5.23,5.23,0,0,1,5.2,5.2A5.16,5.16,0,0,1,87.6,63.1Zm0-28.2H28.9a5.23,5.23,0,0,1-5.2-5.2,5.16,5.16,0,0,1,5.2-5.2H87.6a5.23,5.23,0,0,1,5.2,5.2A5.16,5.16,0,0,1,87.6,34.9Z\" />\n <path class=\"fill\" d= \"M55.43,111,76.63,89.8l2.07-2.07a4.89,4.89,0,0,0,0-6.91L70.49,72.6a4.88,4.88,0,0,0-6.91,0L46.37,89.8h0L33.25,102.92l-3.4,3.4L22.58,99l-6-6A4.82,4.82,0,0,0,14,91.67h0A4.87,4.87,0,0,0,9.64,93l-1,1-7.25,7.25a4.89,4.89,0,0,0,0,6.91l13.3,13.3h0l15.13,15.13h0L45,121.45h0l1.24-1.24Z\" />\n `,\n\t\t},\n\t\tAvatarAdd: {\n\t\t\tviewBox: '0 0 100 76.97',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M48.58,14.92c0,.6,0,1.21,0,1.81s-.07.95.5,1.25c.41.21.4.7.37,1.12-.14,1.88-.28,3.76-.44,5.64-.08.91-.45,1.55-1.52,1.28-.49-.12-.58.16-.69.51a54.3,54.3,0,0,1-3.7,9,1.57,1.57,0,0,0-.16.87,13.06,13.06,0,0,1,.13,2c-.21,2.58,1.29,3.73,3.47,4.52a73.48,73.48,0,0,0,9.68,2.27,19.28,19.28,0,0,1,7.3,2.91,9.61,9.61,0,0,1,3.59,5c1.54,4.63,1.61,9.41,1.81,14.19.08,2-1.06,3.23-2.68,4.13a27.58,27.58,0,0,1-6.37,2.29,99.33,99.33,0,0,1-22.36,3.15A94.62,94.62,0,0,1,4.75,72.41a10.49,10.49,0,0,1-2.91-1.48A4.12,4.12,0,0,1,0,67.24,80.12,80.12,0,0,1,.8,57.1a35,35,0,0,1,1.34-4.9,8.6,8.6,0,0,1,3.92-4.52c2.71-1.71,5.78-2.33,8.86-2.91s6.3-1.14,9.2-2.65a2.55,2.55,0,0,0,1.59-2.24c.08-1.17.18-2.33.29-3.49a1.71,1.71,0,0,0-.23-1,52.41,52.41,0,0,1-3.57-8.67c-.16-.52-.28-.87-1-.7s-1.17-.28-1.24-1c-.19-2.07-.35-4.13-.49-6.2,0-.24.06-.64.22-.72.9-.47.65-1.27.63-2a26.93,26.93,0,0,1,.31-5.86c.85-4.43,3.69-7.27,7.65-9,7-3.08,15.31-.48,18.9,5.81,1,1.73,1.41,4.07,1.38,7.81\" transform=\"translate(0 0)\"/>\n <rect class=\"fill\" x=\"54.62\" y=\"19.24\" width=\"45.38\" height=\"7.56\"/>\n <rect class=\"fill\" x=\"73.53\" y=\"1.58\" width=\"7.56\" height=\"45.38\"/>\n `,\n\t\t},\n\t\tAvatarAddCircle: {\n\t\t\tviewBox: '0 0 100 100',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d= \"M50,100a50,50,0,1,1,50-50A50.057,50.057,0,0,1,50,100ZM34.642,43.093c.335,0,.411.246.506.557a39.354,39.354,0,0,0,2.677,6.5A1.277,1.277,0,0,1,38,50.9c-.083.869-.158,1.74-.218,2.617a1.918,1.918,0,0,1-1.193,1.68,23.339,23.339,0,0,1-6.6,1.931l-.3.056a18.532,18.532,0,0,0-6.645,2.182,6.452,6.452,0,0,0-2.94,3.39A26.312,26.312,0,0,0,19.1,66.435a60.316,60.316,0,0,0-.6,7.606,3.1,3.1,0,0,0,1.381,2.768,7.856,7.856,0,0,0,2.183,1.11,70.877,70.877,0,0,0,21.694,3.4q1.438,0,2.877-.059A74.58,74.58,0,0,0,63.4,78.893a20.673,20.673,0,0,0,4.778-1.717,3.247,3.247,0,0,0,2.01-3.1l-.035-.862a35.025,35.025,0,0,0-1.323-9.781,7.256,7.256,0,0,0-2.693-3.75A14.383,14.383,0,0,0,60.665,57.5a55.329,55.329,0,0,1-7.26-1.7c-1.383-.5-2.773-1.3-2.6-3.389a9.873,9.873,0,0,0-.1-1.5,1.175,1.175,0,0,1,.12-.653,40.844,40.844,0,0,0,2.775-6.75c.068-.217.127-.4.362-.4a.662.662,0,0,1,.155.021,1.406,1.406,0,0,0,.34.047c.478,0,.74-.329.8-1.007.12-1.41.225-2.82.33-4.23.024-.34.023-.686-.278-.84-.383-.2-.38-.428-.376-.8V34.8c.007-2.851-.307-4.616-1.05-5.9a10.916,10.916,0,0,0-9.545-5.329,11.424,11.424,0,0,0-4.63.972,9.056,9.056,0,0,0-5.737,6.75,20.227,20.227,0,0,0-.233,4.4c0,.091.01.183.017.275.036.458.073.931-.49,1.225-.12.06-.165.363-.165.54.1,1.553.225,3.1.367,4.649.047.487.313.777.712.777a.96.96,0,0,0,.218-.027A1.063,1.063,0,0,1,34.642,43.093ZM59.465,38.04v5.67H73.647V58.83h5.67V43.71H93.5V38.04H79.317V24.8h-5.67V38.04Z\" />\n `,\n\t\t},\n\t\tAvatarGroup: {\n\t\t\tviewBox: '0 0 100.33 59.46',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d= \"M99.42,29.38a4.84,4.84,0,0,0-1.81-2.54,9.72,9.72,0,0,0-3.68-1.47,37,37,0,0,1-4.88-1.14c-1.1-.4-1.85-1-1.75-2.28a6.55,6.55,0,0,0-.06-1,.79.79,0,0,1,.08-.44A27.34,27.34,0,0,0,89.19,16c.05-.18.1-.32.35-.26.54.13.73-.19.77-.65.08-.95.15-1.89.22-2.84,0-.21,0-.46-.19-.56s-.26-.38-.25-.63,0-.61,0-.91a7.69,7.69,0,0,0-.7-3.94,7.53,7.53,0,0,0-9.52-2.93A6.09,6.09,0,0,0,76,7.78a13.56,13.56,0,0,0-.16,3c0,.36.14.76-.32,1-.08,0-.12.24-.11.36.07,1,.15,2.08.25,3.13,0,.35.26.58.62.49s.42.09.5.35a26.38,26.38,0,0,0,1.8,4.37.86.86,0,0,1,.12.49c-.05.59-.11,1.17-.14,1.76a1.28,1.28,0,0,1-.8,1.13,16.25,16.25,0,0,1-4.64,1.33,12.42,12.42,0,0,0-4.46,1.47,4.33,4.33,0,0,0-2,2.28A18,18,0,0,0,66,31.32c1.52.36,3.06.61,4.59.94a13.85,13.85,0,0,1,5.25,2.09A6.91,6.91,0,0,1,78.43,38a20.64,20.64,0,0,1,.78,3.28,52.08,52.08,0,0,0,5.29.1,50.07,50.07,0,0,0,11.27-1.58A13.91,13.91,0,0,0,99,38.61a2.21,2.21,0,0,0,1.35-2.08,25.47,25.47,0,0,0-.91-7.15\" transform= \"translate(0 0)\" />\n <path class=\"fill\" d= \"M22.28,37.34a6.19,6.19,0,0,1,2.82-3.26A17.73,17.73,0,0,1,31.48,32c1-.18,1.93-.36,2.88-.59a14.11,14.11,0,0,0-.49-2,4.85,4.85,0,0,0-1.81-2.55,9.73,9.73,0,0,0-3.68-1.47,37,37,0,0,1-4.88-1.14c-1.1-.4-1.86-1-1.75-2.28a6.57,6.57,0,0,0-.06-1,.79.79,0,0,1,.08-.44A27.39,27.39,0,0,0,23.62,16c.05-.18.1-.32.35-.26.54.13.73-.19.77-.65.08-.95.15-1.9.22-2.85,0-.21,0-.46-.19-.57s-.26-.38-.25-.63,0-.61,0-.91a7.7,7.7,0,0,0-.7-3.94,7.55,7.55,0,0,0-9.54-2.93,6.1,6.1,0,0,0-3.86,4.55,13.57,13.57,0,0,0-.16,3c0,.36.14.77-.32,1-.08,0-.12.24-.11.36.07,1,.15,2.09.25,3.13a.49.49,0,0,0,.63.49c.35-.09.42.09.5.35A26.45,26.45,0,0,0,13,20.47a.86.86,0,0,1,.12.49c-.05.59-.11,1.17-.15,1.76a1.29,1.29,0,0,1-.8,1.13,16.27,16.27,0,0,1-4.64,1.34,12.43,12.43,0,0,0-4.47,1.47,4.34,4.34,0,0,0-2,2.28A17.65,17.65,0,0,0,.4,31.41,40.42,40.42,0,0,0,0,36.53a2.08,2.08,0,0,0,.92,1.86,5.28,5.28,0,0,0,1.47.75,47.75,47.75,0,0,0,16.53,2.27c.77,0,1.55-.07,2.32-.12,0-.14,0-.28.06-.42a25.23,25.23,0,0,1,1-3.53\" transform= \"translate(0 0)\" />\n <path class=\"fill\" d= \"M76.29,44.59a22.18,22.18,0,0,0-.84-3.52,7.42,7.42,0,0,0-2.77-3.9A14.89,14.89,0,0,0,67,34.93c-1.64-.36-3.3-.62-4.93-1a23,23,0,0,1-2.55-.74c-1.69-.61-2.84-1.5-2.68-3.49a10.1,10.1,0,0,0-.1-1.57,1.21,1.21,0,0,1,.12-.67,41.93,41.93,0,0,0,2.86-6.94c.08-.27.15-.49.53-.39.83.2,1.12-.28,1.18-1,.12-1.45.23-2.9.34-4.36,0-.33,0-.7-.28-.87s-.4-.58-.39-1,0-.93,0-1.4c0-2.89-.3-4.7-1.07-6A11.55,11.55,0,0,0,45.46,1a9.34,9.34,0,0,0-5.91,7,20.83,20.83,0,0,0-.24,4.53c0,.55.21,1.17-.49,1.53-.12.06-.18.37-.17.56.11,1.6.23,3.2.38,4.79.05.54.4.89,1,.75s.64.14.76.54a40.45,40.45,0,0,0,2.76,6.7,1.31,1.31,0,0,1,.18.75c-.08.9-.16,1.8-.22,2.7a2,2,0,0,1-1.23,1.73,17.1,17.1,0,0,1-4,1.42c-1,.24-2.06.43-3.09.63a19,19,0,0,0-6.84,2.25,6.64,6.64,0,0,0-3,3.49,27,27,0,0,0-1,3.79c0,.15,0,.3-.07.45a67.23,67.23,0,0,0-.54,7.38A3.19,3.19,0,0,0,25,54.8a8.1,8.1,0,0,0,2.25,1.14,73.1,73.1,0,0,0,25.31,3.48A76.76,76.76,0,0,0,69.85,57a21.31,21.31,0,0,0,4.92-1.77A3.39,3.39,0,0,0,76.84,52a63.32,63.32,0,0,0-.55-7.44\" transform= \"translate(0 0)\" />\n `,\n\t\t},\n\t\tCollapse: {\n\t\t\tviewBox: '0 0 12.421 20',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M6.2,4.622,1.577,0,0,1.577,6.2,7.8l6.22-6.22L10.842,0Z\" transform=\"translate(12.419 20) rotate(180)\"/>\n <path class=\"fill\" d=\"M6.2,4.622,1.577,0,0,1.577,6.2,7.8l6.22-6.22L10.842,0Z\" transform=\"translate(0 0)\"/>\n `,\n\t\t},\n\t\tExpand: {\n\t\t\tviewBox: '0 0 12.421 20',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M6.2,4.622,1.577,0,0,1.577,6.2,7.8l6.22-6.22L10.842,0Z\" transform=\"translate(-0.001 12.2)\"/>\n <path class=\"fill\" d=\"M6.2,4.622,1.577,0,0,1.577,6.2,7.8l6.22-6.22L10.842,0Z\" transform=\"translate(12.42 7.8) rotate(180)\"/>\n\n `,\n\t\t},\n\t\tSendArrow: {\n\t\t\tviewBox: '0 0 20 18.862',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M19.477,8.857,1.23.123A1.092,1.092,0,0,0,.738,0C.287,0,0,.328,0,.861V6.684L10.005,9.431,0,11.768v6.274a.735.735,0,0,0,.738.82,1.092,1.092,0,0,0,.492-.123l18.247-8.734C20.174,9.718,20.174,9.185,19.477,8.857Z\"/>\n `,\n\t\t},\n\t\tThermometer: {\n\t\t\tviewBox: '0 0 15.727 20',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M33.684,12.808V2.4a2.674,2.674,0,0,0-5.32,0V12.808A3.884,3.884,0,0,0,26.6,16a4.215,4.215,0,0,0,4.412,4,4.215,4.215,0,0,0,4.412-4A3.827,3.827,0,0,0,33.684,12.808Zm-2.647,6.134a3.076,3.076,0,0,1-3.218-2.914,2.862,2.862,0,0,1,1.505-2.468V2.632a1.721,1.721,0,0,1,3.425,0v10.9A2.862,2.862,0,0,1,34.255,16,3.1,3.1,0,0,1,31.037,18.942Z\" transform=\"translate(-19.697)\"/>\n <path class=\"fill\" d=\"M38.07,40.716V34.7h-1.92v6.04a2.079,2.079,0,0,0-1.349,1.9,2.321,2.321,0,0,0,4.619,0A2.086,2.086,0,0,0,38.07,40.716Z\" transform=\"translate(-25.769 -26.545)\"/>\n <rect class=\"fill\" width=\"6.903\" height=\"0.94\" transform=\"translate(0 1.951)\"/>\n <rect class=\"fill\" width=\"6.903\" height=\"0.94\" transform=\"translate(0 6.181)\"/>\n <rect class=\"fill\" width=\"3.451\" height=\"0.94\" transform=\"translate(3.451 4.066)\"/>\n <rect class=\"fill\" width=\"6.903\" height=\"0.94\" transform=\"translate(0 10.435)\"/>\n <rect class=\"fill\" width=\"3.451\" height=\"0.94\" transform=\"translate(3.451 8.32)\"/>\n `,\n\t\t},\n\t\tTextBubbleCross: {\n\t\t\tviewBox: '0 0 19.15 15.56',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M18.227,0H.923A.919.919,0,0,0,0,.923V11.388a.919.919,0,0,0,.923.923H2.6L2.36,15.56l3.009-3.249H18.227a.919.919,0,0,0,.923-.923V.923A.919.919,0,0,0,18.227,0ZM14.192,9.4a.476.476,0,0,1,0,.65l-.616.616a.476.476,0,0,1-.65,0L9.575,7.318,6.224,10.669a.476.476,0,0,1-.65,0l-.616-.616a.476.476,0,0,1,0-.65L8.31,6.053,4.959,2.7a.475.475,0,0,1,0-.65l.616-.616a.476.476,0,0,1,.65,0L9.575,4.788l3.351-3.351a.476.476,0,0,1,.65,0l.616.616a.476.476,0,0,1,0,.65L10.84,6.053Z\"/>\n `,\n\t\t},\n\t\tMenu: {\n\t\t\tviewBox: '0 0 200 200',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M100,0A100,100,0,1,0,200,100,100.111,100.111,0,0,0,100,0m69.8,143.983c0,4.814-3.5,8.534-7.659,8.534H38.074c-4.158,0-7.659-3.939-7.659-8.534v-5.689c0-4.814,3.5-8.534,7.659-8.534H161.926c4.158,0,7.659,3.939,7.659,8.534v5.689Zm0-41.138c0,4.814-3.5,8.534-7.659,8.534H38.074c-4.158,0-7.659-3.939-7.659-8.534V97.155c0-4.814,3.5-8.534,7.659-8.534H161.926c4.158,0,7.659,3.939,7.659,8.534v5.689Zm-7.877-32.6H38.074c-4.158,0-7.659-3.939-7.659-8.534V56.018c0-4.814,3.5-8.534,7.659-8.534H161.926c4.158,0,7.659,3.939,7.659,8.534v5.689a7.844,7.844,0,0,1-7.659,8.534\"/>\n `,\n\t\t},\n\t\tFullScreenOpen: {\n\t\t\tviewBox: '0 0 59.75 59.26',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M20.63,11.73l6.4,6.4a1,1,0,0,1,0,1.42L19.55,27a1,1,0,0,1-1.42,0l-6.4-6.4a1,1,0,0,0-1.42,0L3.78,27.16a1,1,0,0,1-1.71-.63L0,1.09A1,1,0,0,1,1.09,0L26.54,2.07a1,1,0,0,1,.62,1.71l-6.53,6.53a1,1,0,0,0,0,1.42\"/>\n <path class=\"fill\" d=\"M58.67,59.25,33.22,57.19a1,1,0,0,1-.63-1.71l6.53-6.54a1,1,0,0,0,0-1.42l-6.4-6.4a1,1,0,0,1,0-1.42l7.48-7.47a1,1,0,0,1,1.42,0l6.4,6.4a1,1,0,0,0,1.42,0L56,32.09a1,1,0,0,1,1.71.63l2.07,25.45a1,1,0,0,1-1.08,1.08\"/>\n `,\n\t\t},\n\t\tFullScreenClose: {\n\t\t\tviewBox: '0 0 63.5 63',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M26.37,27.46.93,25.39A1,1,0,0,1,.3,23.68l6.53-6.53a1,1,0,0,0,0-1.42L.43,9.33a1,1,0,0,1,0-1.42L7.91.43a1,1,0,0,1,1.42,0l6.4,6.4a1,1,0,0,0,1.42,0L23.68.3a1,1,0,0,1,1.71.62l2.07,25.45a1,1,0,0,1-1.09,1.09\"/>\n <path class=\"fill\" d=\"M56.67,47.28l6.4,6.4a1,1,0,0,1,0,1.42l-7.48,7.47a1,1,0,0,1-1.42,0l-6.4-6.4a1,1,0,0,0-1.42,0l-6.53,6.54a1,1,0,0,1-1.71-.63L36,36.63a1,1,0,0,1,1.09-1.08l25.45,2.06a1,1,0,0,1,.62,1.71l-6.53,6.54a1,1,0,0,0,0,1.42\"/>\n `,\n\t\t},\n\t\tCloud: {\n\t\t\tviewBox: '0 0 162.6 102.09',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M139.8,56.49a24.28,24.28,0,0,0-7.1,1.09A21.43,21.43,0,0,0,134.1,50,21.77,21.77,0,0,0,112.2,28.3a22.47,22.47,0,0,0-9,1.88A43.12,43.12,0,0,0,62,0C38.3,0,19,19,19,42.54a30.63,30.63,0,0,0-19,28c-.14,17,14.36,30.93,31.38,30.93H36V75.1a1.59,1.59,0,0,0-1.59-1.59H24.9a1.66,1.66,0,0,1-1.3-2.67L43.7,46.2a1.72,1.72,0,0,1,2.6,0L66.4,70.84a1.63,1.63,0,0,1-1.3,2.67H55.59A1.59,1.59,0,0,0,54,75.1v26.41h89.1a22.62,22.62,0,0,0-3.3-45ZM120.57,76.25l-20.21,25.24a1.72,1.72,0,0,1-2.62,0L77.53,76.25a1.68,1.68,0,0,1,1.31-2.74H88.4a1.6,1.6,0,0,0,1.6-1.6V45.11a1.6,1.6,0,0,1,1.6-1.6h14.8a1.6,1.6,0,0,1,1.6,1.6v26.8a1.6,1.6,0,0,0,1.6,1.6h9.56A1.71,1.71,0,0,1,120.57,76.25Z\"/>\n `,\n\t\t},\n\t\tScreenshot: {\n\t\t\tviewBox: '0 0 72.01 47.92',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M18.49,46.24a1.68,1.68,0,0,1-1.68,1.68H6.86A6.86,6.86,0,0,1,0,41.06v-10a1.68,1.68,0,0,1,1.68-1.68h3a1.68,1.68,0,0,1,1.68,1.68V39.5a2,2,0,0,0,2,2h8.39a1.68,1.68,0,0,1,1.68,1.67Z\"/>\n <path class=\"fill\" d=\"M18.49,4.71a1.68,1.68,0,0,1-1.68,1.68H8.42a2,2,0,0,0-2,2v8.39a1.68,1.68,0,0,1-1.68,1.68h-3A1.68,1.68,0,0,1,0,16.81V6.86A6.86,6.86,0,0,1,6.86,0h10a1.68,1.68,0,0,1,1.68,1.68Z\"/>\n <path class=\"fill\" d=\"M44.82,25.14H37.44v7.38a.71.71,0,0,1-.73.72H35.4a.73.73,0,0,1-.73-.72V25.15H27.31a.73.73,0,0,1-.73-.72V23.09a.72.72,0,0,1,.73-.72h7.38V15a.73.73,0,0,1,.73-.72h1.32a.73.73,0,0,1,.73.72v7.36h7.35a.73.73,0,0,1,.73.72v1.33a.73.73,0,0,1-.73.73\"/>\n <path class=\"fill\" d=\"M72,41.06a6.86,6.86,0,0,1-6.86,6.86h-10a1.68,1.68,0,0,1-1.67-1.68v-3a1.67,1.67,0,0,1,1.67-1.67h8.4a2,2,0,0,0,2-2V31.11a1.68,1.68,0,0,1,1.67-1.68h3A1.68,1.68,0,0,1,72,31.11Z\"/>\n <path class=\"fill\" d=\"M72,16.81a1.68,1.68,0,0,1-1.67,1.68h-3a1.68,1.68,0,0,1-1.67-1.68V8.42a2,2,0,0,0-2-2H55.2a1.68,1.68,0,0,1-1.67-1.68v-3A1.68,1.68,0,0,1,55.2,0h10A6.86,6.86,0,0,1,72,6.86Z\"/>\n `,\n\t\t},\n\t\tPin: {\n\t\t\tviewBox: '0 0 256 256',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M3,233.75,66.87,170,28.76,131.9a68.87,68.87,0,0,1,10.7-8.72A68.28,68.28,0,0,1,77,112c1.13,0,2.26,0,3.39.09l73.37-73.27-16.53-16.5L156.52,3l16.53,16.5.19-.19,64.31,64.22-.19.2L253,99.34l-19.29,19.27L218.07,103l-73,72.89c.09,1.4.13,2.8.13,4.2a67.94,67.94,0,0,1-20,48.17l-39.09-39L22.26,253Z\"/>\n `,\n\t\t},\n\t\tScreenShare: {\n\t\t\tviewBox: '0 0 82.48 64.43',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M80.39,0H2.09A2.08,2.08,0,0,0,0,2.09V48a2.08,2.08,0,0,0,2.09,2.08h78.3A2.09,2.09,0,0,0,82.48,48V2.09A2.09,2.09,0,0,0,80.39,0Zm-37,38.2V29.29H30.61c-6.33,0-12,6.25-14.1,8.87a.45.45,0,0,1-.8-.3c.31-7.69.76-21.16,14.9-21.16H43.34V7.93L66.77,23.07Z\"/>\n <path class=\"fill\" d=\"M53.84,63a26.73,26.73,0,0,1-2.45-2,4.13,4.13,0,0,1-.89-2.09l-.62-6.21H32.6L32,58.89a4.15,4.15,0,0,1-.89,2c-.57.57-1.72,1.51-2.45,2.09-.52.41-.31.93.37,1,1.46.26,3.55.42,12.26.36s10.81-.1,12.27-.36C54.16,64,54.37,63.43,53.84,63Z\"/>\n `,\n\t\t},\n\t\tStopScreenShare: {\n\t\t\tviewBox: '0 0 82.48 64.43',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M80.39,0H2.09A2.08,2.08,0,0,0,0,2.09V48a2.08,2.08,0,0,0,2.09,2.08h78.3A2.09,2.09,0,0,0,82.48,48V2.09A2.09,2.09,0,0,0,80.39,0ZM53.7,39.94a1,1,0,0,1-1.45,0L41.37,29.06l0,.05,0-.05L30.39,39.93a1,1,0,0,1-1.45,0l-2.52-2.52a1,1,0,0,1,0-1.45L37.29,25.08,26.41,14.16a1,1,0,0,1,0-1.46l2.52-2.52a1,1,0,0,1,1.45,0L41.27,21.05l0-.05,0,.05L52.25,10.18a1,1,0,0,1,1.45,0l2.57,2.53a1,1,0,0,1,0,1.46L45.35,25.08,57,36.68Z\"/>\n <path class=\"fill\" d=\"M54,63a26.73,26.73,0,0,1-2.45-2,4,4,0,0,1-.89-2.09L50,52.68H32.71l-.63,6.21a4.15,4.15,0,0,1-.89,2c-.57.57-1.72,1.51-2.45,2.09-.52.41-.31.93.36,1,1.47.26,3.55.42,12.27.36s10.81-.1,12.27-.36C54.27,64,54.47,63.43,54,63Z\"/>\n `,\n\t\t},\n\t\tDevices: {\n\t\t\tviewBox: '0 0 256 256',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M80,252.62V180.47a26.78,26.78,0,0,1,26.67-26.88h95a8.86,8.86,0,0,0,8.82-8.81V117.9a8.87,8.87,0,0,0-8.82-8.82H43.94A26.79,26.79,0,0,1,17.06,82.4V36.1A27.13,27.13,0,0,1,43.94,8.82H70.82a4.66,4.66,0,0,1,4.62,4.62v18a4.67,4.67,0,0,1-4.62,4.61H53.16a8.86,8.86,0,0,0-8.82,8.81V71.79a8.87,8.87,0,0,0,8.82,8.82H210.93a26.78,26.78,0,0,1,26.88,26.68v45a26.77,26.77,0,0,1-26.67,26.88h-95a8.87,8.87,0,0,0-8.82,8.82v63.37a4,4,0,0,1-3.72,4.2H84.21C82.11,256.82,80,255.15,80,252.62ZM170.23,41.55a3.76,3.76,0,0,1-3.68,3.84H83.78a3.78,3.78,0,0,1-3.84-3.69V3.84A3.76,3.76,0,0,1,83.63,0h83.19a3.76,3.76,0,0,1,3.83,3.69.38.38,0,0,1,0,.15V41.55Zm36.1-10.08a4.67,4.67,0,0,1-4.62,4.63H179.05a4.67,4.67,0,0,1-4.62-4.63v-18a4.65,4.65,0,0,1,4.62-4.62h22.66a4.65,4.65,0,0,1,4.62,4.62Zm30.2-5.87-8.81,8.82a4.76,4.76,0,0,1-3.36,1.28h-8.82a4.66,4.66,0,0,1-4.62-4.62V13.43a4.65,4.65,0,0,1,4.62-4.62h8.87a4.76,4.76,0,0,1,3.36,1.28l8.82,8.82A5.12,5.12,0,0,1,236.53,25.6Z\"/>\n `,\n\t\t},\n\t\tGroupAvatar: {\n\t\t\tviewBox: '0 0 256 256',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M128,253.19A125.22,125.22,0,0,1,79.27,12.65a125.22,125.22,0,0,1,97.46,230.69A124.38,124.38,0,0,1,128,253.19ZM108,107.83c.66,0,.83.5,1,1.14a87.57,87.57,0,0,0,5.47,13.36,2.78,2.78,0,0,1,.36,1.52v.07c-.18,1.73-.36,3.52-.44,5.31a4,4,0,0,1-2.42,3.5,39.8,39.8,0,0,1-8,2.87c-2.31.51-4.25.91-6.18,1.26a37.83,37.83,0,0,0-13.62,4.48,13,13,0,0,0-6,7l-.14.46a50.9,50.9,0,0,0-1.91,7.07,2.73,2.73,0,0,0-.1.48,3.1,3.1,0,0,1-.08.42,132.94,132.94,0,0,0-1.08,14.65v0a6.29,6.29,0,0,0,2.79,5.65,13.92,13.92,0,0,0,4.47,2.24,143,143,0,0,0,44.72,7c1.84,0,3.72,0,5.73-.09a154.5,154.5,0,0,0,34.42-4.84,43.59,43.59,0,0,0,9.85-3.49,6.67,6.67,0,0,0,4.12-6.38,102.75,102.75,0,0,0-1-14.77,38.14,38.14,0,0,0-1.71-7,14.65,14.65,0,0,0-5.56-7.79,30,30,0,0,0-11.28-4.48c-1.65-.37-3.36-.69-5-1l-.11,0h-.06c-1.53-.3-3.12-.6-4.68-.94a50.81,50.81,0,0,1-5.11-1.53c-3.42-1.25-5.64-2.91-5.38-7a12.18,12.18,0,0,0-.09-2.26l-.09-.87a2.52,2.52,0,0,1,.26-1.35,86.21,86.21,0,0,0,5.74-13.8l0-.11c.13-.41.25-.73.73-.73a1.55,1.55,0,0,1,.31,0,2.64,2.64,0,0,0,.73.11c1,0,1.51-.72,1.6-2.08.25-2.73.43-5.59.59-8.11l0-.58c.12-.93-.05-1.49-.54-1.71-.83-.4-.82-1-.81-1.68v-3a22.86,22.86,0,0,0-2.15-12,22.52,22.52,0,0,0-19.64-11,23.41,23.41,0,0,0-9.48,2,18.85,18.85,0,0,0-11.83,13.88,43.71,43.71,0,0,0-.46,9.07c0,.2,0,.4,0,.63.07.9.14,1.83-1,2.41-.1,0-.19.51-.19.9.17,3,.4,5.81.65,8.83v.11l0,.65c.09.95.65,1.57,1.44,1.57a1.74,1.74,0,0,0,.45-.06,1.87,1.87,0,0,1,.48-.11ZM49.88,99.07c.4,0,.5.29.63.69l0,.07a49.13,49.13,0,0,0,3.59,8.68,2,2,0,0,1,.27,1c-.09,1-.16,2-.24,3v.18l0,.29a2.64,2.64,0,0,1-1.61,2.23A31,31,0,0,1,44,117.78l-.75.15a26.85,26.85,0,0,0-9,3,8.17,8.17,0,0,0-3.94,4.57l0,.07A29.2,29.2,0,0,0,29,130.4,36.39,36.39,0,0,0,27.93,139v.06c0,.5-.05,1-.08,1.5a3.93,3.93,0,0,0,1.89,3.66,11.07,11.07,0,0,0,2.95,1.54,95.9,95.9,0,0,0,29.64,4.61c1.36,0,2.39,0,3.35,0l1.85-.11,2.8-.15c0-.13,0-.27,0-.4a2.57,2.57,0,0,0,0-.4,40.26,40.26,0,0,1,1.88-7.09A12,12,0,0,1,78,135.75a37,37,0,0,1,12.51-4.15l.22,0,.83-.15.36-.07c1.51-.29,3.06-.59,4.55-.94l0-.22a26.51,26.51,0,0,0-1-3.73,9.84,9.84,0,0,0-3.57-5.11,20.2,20.2,0,0,0-7.35-3c-1-.22-2.09-.43-3-.61a54.51,54.51,0,0,1-6.76-1.63c-3.27-1.18-3.6-3-3.5-4.57a5.07,5.07,0,0,0,0-1.23c0-.28,0-.55-.06-.83a1.76,1.76,0,0,1,.18-.9,53.91,53.91,0,0,0,3.76-9.06c.07-.31.16-.55.54-.55l.18,0a1.82,1.82,0,0,0,.46.06c.63,0,1-.42,1.06-1.31s.16-1.85.22-2.8v-.13c.07-.89.13-1.81.22-2.71,0-.47,0-.91-.36-1.17-.54-.28-.54-.71-.54-1.25V87.92A16.06,16.06,0,0,0,75.53,80a14.57,14.57,0,0,0-12.77-7.16,15.32,15.32,0,0,0-6.25,1.33,12.21,12.21,0,0,0-7.7,9.06,25.34,25.34,0,0,0-.27,5.9,2.88,2.88,0,0,0,0,.41c0,.59.08,1.21-.64,1.57a.62.62,0,0,0-.18.71c.06.7.11,1.42.16,2.11.09,1.35.19,2.75.37,4.17.08.64.43,1,1,1a1.45,1.45,0,0,0,.29,0,1.12,1.12,0,0,1,.36-.05ZM180.53,99c.4,0,.5.29.63.69l0,.08a48.36,48.36,0,0,0,3.59,8.69,1.8,1.8,0,0,1,.26,1c0,.5-.07,1-.11,1.53v.16c-.05.61-.09,1.21-.14,1.82a2.62,2.62,0,0,1-1.62,2.23,29.48,29.48,0,0,1-8.36,2.52l-.42.09-.44.08a23.05,23.05,0,0,0-8.87,3,8.23,8.23,0,0,0-4,4.57l-.17.52a28.17,28.17,0,0,0-1.18,4.32c1.89.45,3.8.82,5.66,1.18l.2,0,3.3.66a26,26,0,0,1,10.48,4.22,13.71,13.71,0,0,1,5.1,7.26,33.41,33.41,0,0,1,1.53,6.54c2,.15,4.17.23,6.71.23,1.31,0,2.7,0,3.82-.05h0a100.43,100.43,0,0,0,22.49-3.13l.63-.18.08,0h0a22.2,22.2,0,0,0,5.62-2.12,4.37,4.37,0,0,0,2.69-4.13c0-.68-.1-1.36-.14-2l0-.22a47.39,47.39,0,0,0-1.81-12.07,9.84,9.84,0,0,0-3.59-5.11,19.75,19.75,0,0,0-7.34-3c-1-.21-2-.41-2.92-.59a53.37,53.37,0,0,1-6.85-1.65c-1.84-.69-3.69-1.78-3.51-4.57a5.43,5.43,0,0,0,0-1.21,6.22,6.22,0,0,1-.06-.86,1.57,1.57,0,0,1,.18-.9,45.81,45.81,0,0,0,3.67-9c.08-.3.15-.56.52-.56l.2,0a1.74,1.74,0,0,0,.45.06c.64,0,1-.42,1.07-1.32s.16-2,.23-2.83.13-1.86.22-2.81a1.36,1.36,0,0,0-.36-1.17c-.53-.26-.53-.7-.53-1.25v-1.8A16,16,0,0,0,206.19,80a14.47,14.47,0,0,0-12.71-7.15,15.27,15.27,0,0,0-6.28,1.34,12.25,12.25,0,0,0-7.71,9,26.1,26.1,0,0,0-.27,5.92,3,3,0,0,0,0,.42c0,.58.08,1.19-.64,1.55a.64.64,0,0,0-.18.72c.06.73.11,1.47.17,2.23.09,1.31.19,2.66.36,4,.09.64.44,1,1,1l.31,0a.87.87,0,0,1,.32-.06Z\"/>\n `,\n\t\t},\n\t\tShield: {\n\t\t\tviewBox: '0 0 256 256',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M218.24,171.27c0,30.56-90,84.73-90,84.73s-90-58.34-90-84.73V23.34S79.78,36.39,128.24,0c51.65,36.67,90,23.34,90,23.34Z\"/>\n `,\n\t\t},\n\t\tPictureRound: {\n\t\t\tviewBox: '0 0 256 256',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M128,0A128,128,0,1,0,256,128,128.14,128.14,0,0,0,128,0ZM100.83,54.06A25.77,25.77,0,1,1,75.06,79.82,25.69,25.69,0,0,1,100.83,54.06ZM29.13,182.34,64.7,115.68a6.4,6.4,0,0,1,10.36-2l25.49,25.76a3.65,3.65,0,0,0,5.32-.28L156.29,79c3.92-4.48,10.64-3.92,13.44,1.4l57.14,102Z\"/>\n `,\n\t\t},\n\t\tExit: {\n\t\t\tviewBox: '0 0 256 256',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M37.11,183.49v-31a3.37,3.37,0,0,0-3.37-3.37H3.37A3.37,3.37,0,0,1,0,145.74V110.26a3.37,3.37,0,0,1,3.37-3.37H33.74a3.37,3.37,0,0,0,3.37-3.37v-31a3.37,3.37,0,0,1,5.55-2.57L108,125.43a3.38,3.38,0,0,1,0,5.14L42.66,186.06a3.37,3.37,0,0,1-5.55-2.57\"/>\n <path class=\"fill\" d=\"M215.69,32.64,133.44,6.22c-3.5-.76-7,1.33-7,4.19V26.29a2.3,2.3,0,0,0-.26,0H68.66a6.91,6.91,0,0,0-6.91,6.9V66.71a6.91,6.91,0,0,0,13.81,0V47a6.91,6.91,0,0,1,6.9-6.91h43.77l.26,0V216l-.26,0H82.46a6.9,6.9,0,0,1-6.9-6.9V189.29a6.91,6.91,0,0,0-13.81,0v33.55a6.91,6.91,0,0,0,6.91,6.9h57.57a2.3,2.3,0,0,0,.26,0v15.88c0,2.87,3.45,4.95,7,4.19l82.25-22.22c2.39-.52,4.05-2.24,4.05-4.2V36.84C219.74,34.88,218.08,33.16,215.69,32.64ZM194,145.63l-5.89,7.29-15.41-19.11-20.85,24.41L146,150.93l20.84-24.42L146,102l5.88-7.3,20.87,24.6,15.7-19.3,5.88,7.29-15.7,19.3Z\"/>\n `,\n\t\t},\n\t\tFormWithCheckmarks: {\n\t\t\tviewBox: '0 0 256 256',\n\t\t\tstyle: null,\n\t\t\thtml: `\n\t\t\t<path class=\"fill\" d=\"M89.21,56.73l-9.27-9.27a5.51,5.51,0,0,0-7.88,0L33.89,85.63,18.81,70.56a5.51,5.51,0,0,0-7.88,0L1.66,79.83a5.51,5.51,0,0,0,0,7.88l15.08,15.07h0l17.15,17.15h0L51,102.78h0L89.21,64.61A5.51,5.51,0,0,0,89.21,56.73Z\"/>\n\t\t\t<rect class=\"fill\" x=\"113.67\" y=\"65.46\" width=\"142.33\" height=\"34.82\"/>\n\t\t\t<path class=\"fill\" d=\"M89.21,147.15l-9.27-9.27a5.51,5.51,0,0,0-7.88,0L33.89,176.05,18.81,161a5.51,5.51,0,0,0-7.88,0l-9.27,9.27a5.51,5.51,0,0,0,0,7.88L16.74,193.2h0l17.15,17.15h0L51,193.2h0L89.21,155A5.51,5.51,0,0,0,89.21,147.15Z\"/>\n\t\t\t<rect class=\"fill\" x=\"113.67\" y=\"155.88\" width=\"142.33\" height=\"34.82\"/>\n\t\t\t`,\n\t\t},\n\t\tguest: {\n\t\t\tviewBox: '0 0 256 256',\n\t\t\tstyle: null,\n\t\t\thtml: `\n <path class=\"fill\" d=\"M215.49,253.1H40.5A37.54,37.54,0,0,1,3,215.6V40.6A37.54,37.54,0,0,1,40.5,3.1h100a12.51,12.51,0,0,1,0,25H40.5A12.51,12.51,0,0,0,28,40.6v175a12.5,12.5,0,0,0,12.5,12.5h175A12.51,12.51,0,0,0,228,215.6v-100a12.5,12.5,0,1,1,25-.83c0,.28,0,.55,0,.83v100A37.54,37.54,0,0,1,215.49,253.1Z\"/>\n <path class=\"fill\" d=\"M70,198.63h75a12.51,12.51,0,0,0,8.84-21.35L125.2,148.6l91.26-91.27a12.52,12.52,0,1,0-17.71-17.71l-91.26,91.27L78.83,102.23A12.5,12.5,0,0,0,70,98.57a12.26,12.26,0,0,0-4.79,1,12.51,12.51,0,0,0-7.71,11.55v75.05A12.5,12.5,0,0,0,70,198.63Z\"/>\n `,\n\t\t},\n\t};\n}\n","export class FileHelper {\n\t/**\n\t *\n\t */\n\tpublic stringFromBytes(fileSizeInBytes) {\n\t\tif (fileSizeInBytes < 1024) return '1 KB';\n\n\t\tlet i = -1;\n\t\tconst byteUnits = [' kB', ' MB', ' GB', ' TB', 'PB', 'EB', 'ZB', 'YB'];\n\t\tdo {\n\t\t\tfileSizeInBytes = fileSizeInBytes / 1024;\n\t\t\ti++;\n\t\t} while (fileSizeInBytes > 1024);\n\n\t\treturn Math.max(fileSizeInBytes, 0.1).toFixed(1) + byteUnits[i];\n\t}\n\n\tpublic hasExtension(fileName: string, extensions: string[]) {\n\t\treturn extensions.some(extension => fileName.endsWith(`.${extension}`));\n\t}\n\n\tpublic base64ToBlob(base64Data, contentType) {\n\t\tcontentType = contentType || '';\n\t\tconst sliceSize = 1024;\n\t\tconst byteCharacters = atob(base64Data);\n\t\tconst bytesLength = byteCharacters.length;\n\t\tconst slicesCount = Math.ceil(bytesLength / sliceSize);\n\t\tconst byteArrays = new Array(slicesCount);\n\n\t\tfor (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {\n\t\t\tconst begin = sliceIndex * sliceSize;\n\t\t\tconst end = Math.min(begin + sliceSize, bytesLength);\n\n\t\t\tconst bytes = new Array(end - begin);\n\t\t\tfor (let offset = begin, i = 0; offset < end; ++i, ++offset) {\n\t\t\t\tbytes[i] = byteCharacters[offset].charCodeAt(0);\n\t\t\t}\n\t\t\tbyteArrays[sliceIndex] = new Uint8Array(bytes);\n\t\t}\n\t\treturn new Blob(byteArrays, { type: contentType });\n\t}\n}\n","declare var platform: any;\ndeclare var µ: any;\n\nexport class IsHelper {\n\tvisCheckLaptop: any = null;\n\tvisCheckDesktop: any = null;\n\n\tconstructor() {\n\t\tthis.visCheckLaptop = document.querySelector('#vis-check-laptop');\n\t\tthis.visCheckDesktop = document.querySelector('#vis-check-desktop');\n\t}\n\n\tpublic laptop() {\n\t\treturn this.vanillaVisCheck(this.visCheckLaptop);\n\t}\n\n\tpublic desktop() {\n\t\treturn this.vanillaVisCheck(this.visCheckDesktop);\n\t}\n\n\tpublic vanillaVisCheck(elem: any) {\n\t\treturn !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length);\n\t}\n\n\tpublic date(date: Date) {\n\t\treturn date instanceof Date && !isNaN(date.valueOf());\n\t}\n\n\tpublic function(functionToCheck: any) {\n\t\tvar getType = {};\n\t\treturn functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';\n\t}\n\n\tpublic safari() {\n\t\treturn /^((?!chrome).)*safari/i.test(navigator.userAgent);\n\t}\n\tpublic fireFox() {\n\t\treturn typeof (window as any).InstallTrigger !== 'undefined';\n\t\t//return /firefox/i.test(navigator.userAgent);\n\t}\n\tpublic chrome() {\n\t\treturn !!(window as any).chrome && !!(window as any).chrome.webstore;\n\t}\n\tpublic IE() {\n\t\tvar ua = window.navigator.userAgent;\n\n\t\tvar msie = ua.indexOf('MSIE ');\n\t\tif (msie > 0) {\n\t\t\t// IE 10 or older => return version number\n\t\t\treturn parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);\n\t\t}\n\n\t\tvar trident = ua.indexOf('Trident/');\n\t\tif (trident > 0) {\n\t\t\t// IE 11 => return version number\n\t\t\tvar rv = ua.indexOf('rv:');\n\t\t\treturn parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);\n\t\t}\n\n\t\tvar edge = ua.indexOf('Edge/');\n\t\tif (edge > 0) {\n\t\t\t// IE 12 => return version number\n\t\t\treturn parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10);\n\t\t}\n\n\t\t// other browser\n\t\treturn false;\n\t}\n\n\tpublic edge() {\n\t\treturn navigator.mediaDevices && navigator.userAgent.indexOf('Edge/') > -1;\n\t}\n\n\tpublic today(indate) {\n\t\tvar today = new Date();\n\t\tif (\n\t\t\tindate.getDate() == today.getDate() &&\n\t\t\tindate.getMonth() == today.getMonth() &&\n\t\t\tindate.getFullYear() == today.getFullYear()\n\t\t) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}\n\tpublic webRtcCompatable() {\n\t\treturn (\n\t\t\ttypeof navigator['mediaDevices'] === 'object' && typeof navigator['mediaDevices']!.getUserMedia === 'function' && !this.edge()\n\t\t);\n\t}\n\n\tpublic iosApp = function() {\n\t\treturn µ.Env.Platform === 'iOS';\n\t};\n\tpublic androidApp = function() {\n\t\treturn µ.Env.Platform === 'Android';\n\t};\n\tpublic app = function() {\n\t\treturn this.IsAndroidApp() || this.IsIosApp();\n\t};\n\tpublic ios = function() {\n\t\tlet isIpad = /Macintosh/i.test(navigator.userAgent) && navigator.maxTouchPoints && navigator.maxTouchPoints > 1;\n\t\tif (platform.os.family === 'iOS' || isIpad) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t\t//return /(iPad|iPhone|iPod)/g.test(navigator.userAgent);\n\t};\n\tpublic android = function() {\n\t\tif (platform.os.family === 'Android') {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t\t//var ua = window.navigator.userAgent.toLowerCase();\n\t\t//return ua.indexOf(\"android\") > -1;\n\t};\n}\n","export class NumberHelper {\n\tpublic padZero(num) {\n\t\tif (num < 10) return '0' + num;\n\t\telse return '' + num;\n\t}\n}\n","export class ObjectHelper {\n\tpublic stringProp(o, s) {\n\t\tif (typeof o === 'undefined') return false;\n\n\t\ts = s.replace(/\\[(\\w+)\\]/g, '.$1'); // convert indexes to properties\n\t\ts = s.replace(/^\\./, ''); // strip a leading dot\n\t\tvar a = s.split('.');\n\t\twhile (a.length) {\n\t\t\tvar n = a.shift();\n\t\t\tif (!o) return null;\n\n\t\t\tif (n in o) {\n\t\t\t\to = o[n];\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\treturn o;\n\t}\n\n\t/*\n\t * Recursively merge properties of two objects\n\t */\n\tpublic merge(obj1, obj2) {\n\t\tfor (var p in obj2) {\n\t\t\ttry {\n\t\t\t\t// Property in destination object set; update its value.\n\t\t\t\tif (obj2[p].constructor == Object) {\n\t\t\t\t\tobj1[p] = this.merge(obj1[p], obj2[p]);\n\t\t\t\t} else {\n\t\t\t\t\tobj1[p] = obj2[p];\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\t// Property in destination object not set; create it and set its value.\n\t\t\t\tobj1[p] = obj2[p];\n\t\t\t}\n\t\t}\n\n\t\treturn obj1;\n\t}\n\t/*\n\t * Recursively merge properties of two objects\n\t */\n\tpublic clone(obj) {\n\t\tvar copy;\n\n\t\t// Handle the 3 simple types, and null or undefined\n\t\tif (null == obj || 'object' != typeof obj) return obj;\n\n\t\t// Handle Date\n\t\tif (obj instanceof Date) {\n\t\t\tcopy = new Date();\n\t\t\tcopy.setTime(obj.getTime());\n\t\t\treturn copy;\n\t\t}\n\n\t\t// Handle Array\n\t\tif (obj instanceof Array) {\n\t\t\tcopy = [];\n\t\t\tfor (var i = 0, len = obj.length; i < len; i++) {\n\t\t\t\tcopy[i] = this.clone(obj[i]);\n\t\t\t}\n\t\t\treturn copy;\n\t\t}\n\n\t\t// Handle Object\n\t\tif (obj instanceof Object) {\n\t\t\tcopy = {};\n\t\t\tfor (var attr in obj) {\n\t\t\t\tif (obj.hasOwnProperty(attr)) copy[attr] = this.clone(obj[attr]);\n\t\t\t}\n\t\t\treturn copy;\n\t\t}\n\n\t\tthrow new Error(\"Unable to copy obj! Its type isn't supported.\");\n\t}\n}\n","export class ArrayHelper {\n\tstatic groupBy(array: Array<any>, func: (t) => any): Array<any> {\n\t\treturn this.groupByTyped<any>(array, func);\n\t}\n\n\tstatic groupByTyped<T>(array: Array<T>, func: (t) => any): Array<Array<T>> {\n\t\tlet oArray = array.slice();\n\t\tlet rArray: Array<Array<T>> = [];\n\t\tif (oArray.length > 0) {\n\t\t\twhile (oArray.length > 0) {\n\t\t\t\tlet cArray: Array<any> = [];\n\t\t\t\tlet dr = func(oArray[0]);\n\t\t\t\tfor (let i: number = oArray.length - 1; i >= 0; i--) {\n\t\t\t\t\tif (func(oArray[i]) === dr) {\n\t\t\t\t\t\tcArray.push(oArray[i]);\n\t\t\t\t\t\toArray.splice(i, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trArray.push(cArray.reverse());\n\t\t\t}\n\t\t}\n\t\treturn rArray;\n\t}\n\n\tstatic groupByToKey(array: Array<any>, func: (t) => string): { [key: string]: Array<any> } {\n\t\tlet rArray: { [key: string]: Array<any> } = {};\n\t\tfor (let k in array) {\n\t\t\tif (!array.hasOwnProperty(k)) continue;\n\n\t\t\tlet dr = func(array[k]);\n\t\t\tif (typeof rArray[dr] === 'undefined') rArray[dr] = [];\n\n\t\t\trArray[dr].push(array[k]);\n\t\t}\n\t\treturn rArray;\n\t}\n}\n\nArray.groupBy = (array, func) => ArrayHelper.groupBy(array, func);\nArray.groupByToKey = (array, func) => ArrayHelper.groupByToKey(array, func);\n","export class StringHelper {\n\tpublic capitalizeFirstLetter(str: string): string {\n\t\treturn str.charAt(0).toUpperCase() + str.slice(1);\n\t}\n\tpublic pad(str: string, width: number, char: string): string {\n\t\treturn str.length >= width ? str : new Array(width - str.length + 1).join(char) + str;\n\t}\n\tpublic isNullOrEmpty(str: string): boolean {\n\t\treturn str === null || str === '';\n\t}\n\tpublic seoFriendlyUrl(str: string): string {\n\t\treturn str\n\t\t\t.toString()\n\t\t\t.toLowerCase()\n\t\t\t.replace(/[��]/g, 'a') // Replace spaces with -\n\t\t\t.replace(/[�]/g, 'o') // Replace spaces with -\n\t\t\t.replace(/\\s+/g, '-') // Replace spaces with -\n\t\t\t.replace(/[^\\w\\-]+/g, '') // Remove all non-word chars\n\t\t\t.replace(/\\-\\-+/g, '-') // Replace multiple - with single -\n\t\t\t.replace(/^-+/, '') // Trim - from start of text\n\t\t\t.replace(/-+$/, ''); // Trim - from end of text\n\t}\n\n\tpublic urlify(str: string, target: string = '_blank') {\n\t\tconst urlRegex = /(https?:\\/\\/[^\\s]+)/g;\n\t\treturn str.replace(urlRegex, `<a target=\"${target}\" href=\"$1\">$1</a>`);\n\t}\n}\n\nString.prototype['capitalizeFirstLetter'] = function(this: string) {\n\treturn new StringHelper().capitalizeFirstLetter(this);\n};\nString.prototype['pad'] = function(this: string, width: number = 2, char: string) {\n\treturn new StringHelper().pad(this, width, char);\n};\nString.isNullOrEmpty = (str: string) => new StringHelper().isNullOrEmpty(str);\n","export class ColorHelper {\n\t/**\n\t * Converts an HSL color value to RGB. Conversion formula\n\t * adapted from http://en.wikipedia.org/wiki/HSL_color_space.\n\t * Assumes h, s, and l are contained in the set [0, 1] and\n\t * returns r, g, and b in the set [0, 255].\n\t *\n\t * @param {number} h The hue\n\t * @param {number} s The saturation\n\t * @param {number} l The lightness\n\t * @return {Array} The RGB representation\n\t */\n\tpublic hslToRgb(h: number, s: number, l: number): Array<number> {\n\t\tlet r: number, g, b: number;\n\n\t\tif (s === 0) {\n\t\t\tr = g = b = l; // achromatic\n\t\t} else {\n\t\t\tconst hue2rgb = (p, q, t) => {\n\t\t\t\tif (t < 0) t += 1;\n\t\t\t\tif (t > 1) t -= 1;\n\t\t\t\tif (t < 1 / 6) return p + (q - p) * 6 * t;\n\t\t\t\tif (t < 1 / 2) return q;\n\t\t\t\tif (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;\n\t\t\t\treturn p;\n\t\t\t};\n\n\t\t\tconst q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n\t\t\tconst p = 2 * l - q;\n\t\t\tr = hue2rgb(p, q, h + 1 / 3);\n\t\t\tg = hue2rgb(p, q, h);\n\t\t\tb = hue2rgb(p, q, h - 1 / 3);\n\t\t}\n\n\t\treturn [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];\n\t}\n\n\t/**\n\t * Converts an RGB color value to HSL. Conversion formula\n\t * adapted from http://en.wikipedia.org/wiki/HSL_color_space.\n\t * Assumes r, g, and b are contained in the set [0, 255] and\n\t * returns h, s, and l in the set [0, 1].\n\t *\n\t * @param {number} r The red color value\n\t * @param {number} g The green color value\n\t * @param {number} b The blue color value\n\t * @return {Array} The HSL representation\n\t */\n\tpublic rgbToHsl(r: number, g: number, b: number): Array<number> {\n\t\t(r /= 255), (g /= 255), (b /= 255);\n\t\tconst max = Math.max(r, g, b),\n\t\t\tmin = Math.min(r, g, b);\n\t\tlet h = (max + min) / 2;\n\t\tlet s = h;\n\t\tconst l = h;\n\n\t\tif (max === min) {\n\t\t\th = s = 0; // achromatic\n\t\t} else {\n\t\t\tconst d = max - min;\n\t\t\ts = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\t\t\tswitch (max) {\n\t\t\t\tcase r:\n\t\t\t\t\th = (g - b) / d + (g < b ? 6 : 0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase g:\n\t\t\t\t\th = (b - r) / d + 2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase b:\n\t\t\t\t\th = (r - g) / d + 4;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\th /= 6;\n\t\t}\n\n\t\treturn [Math.floor(h * 360), Math.floor(s * 100), Math.floor(l * 100)];\n\t}\n\n\tpublic hexToRgb(hex: string): Array<number> {\n\t\t// Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n\t\tconst shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n\t\thex = hex.replace(shorthandRegex, (m, r, g, b) => {\n\t\t\treturn r + r + g + g + b + b;\n\t\t});\n\n\t\tconst result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n\t\treturn result ? [parseInt(result[1], 16), parseInt(result[2], 16), parseInt(result[3], 16)] : null;\n\t}\n\tpublic rgbToHex(r: number, g: number, b: number) {\n\t\treturn `#${((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1)}`;\n\t}\n}\n","export class ImageHelper {\n\t/*\n\t * Returns exif orientation\n\t */\n\tpublic getOrientation(file): Promise<number> {\n\t\treturn new Promise(resolve => {\n\t\t\tvar reader = new FileReader();\n\t\t\treader.onload = (e: any) => {\n\t\t\t\tvar view = new DataView(e.target.result);\n\t\t\t\tif (view.getUint16(0, false) != 0xffd8) return resolve(-2);\n\t\t\t\tvar length = view.byteLength,\n\t\t\t\t\toffset = 2;\n\t\t\t\twhile (offset < length) {\n\t\t\t\t\tvar marker = view.getUint16(offset, false);\n\t\t\t\t\toffset += 2;\n\t\t\t\t\tif (marker == 0xffe1) {\n\t\t\t\t\t\tif (view.getUint32((offset += 2), false) != 0x45786966) return resolve(-1);\n\t\t\t\t\t\tvar little = view.getUint16((offset += 6), false) == 0x4949;\n\t\t\t\t\t\toffset += view.getUint32(offset + 4, little);\n\t\t\t\t\t\tvar tags = view.getUint16(offset, little);\n\t\t\t\t\t\toffset += 2;\n\t\t\t\t\t\tfor (var i = 0; i < tags; i++)\n\t\t\t\t\t\t\tif (view.getUint16(offset + i * 12, little) == 0x0112)\n\t\t\t\t\t\t\t\treturn resolve(view.getUint16(offset + i * 12 + 8, little));\n\t\t\t\t\t} else if ((marker & 0xff00) != 0xff00) break;\n\t\t\t\t\telse offset += view.getUint16(offset, false);\n\t\t\t\t}\n\t\t\t\treturn resolve(-1);\n\t\t\t};\n\t\t\treader.readAsArrayBuffer(file);\n\t\t});\n\t}\n}\n","import { UnitModel } from '../../Services/api/v2/Models/UnitModel';\nexport class UnitHelper {\n\tgetUnitUrl(unitId: number, unitArray: any) {\n\t\tif (!this.getUnit(unitId, unitArray).IsClientEntrance) {\n\t\t\tunitId = this.getClosestOfferFromCurrent(unitId, unitArray).Id;\n\t\t}\n\n\t\treturn this.getFullUrlAlias(unitId, unitArray);\n\t}\n\n\tgetClosestOfferFromCurrent(parentId: number | null, unitArray: any) {\n\t\tconst getParent = (parentId: number | null) => {\n\t\t\tif (!parentId) return null;\n\n\t\t\tconst unit = this.getUnit(parentId, unitArray);\n\n\t\t\treturn unit.IsClientEntrance ? unit : getParent(unit.ParentId);\n\t\t};\n\n\t\treturn getParent(parentId);\n\t}\n\n\tgetUnit(unitId: number, unitArray: any) {\n\t\tconst unit = unitArray.find((u) => u.Id === unitId) || null;\n\n\t\treturn unit;\n\t}\n\n\tgetFullUrlAlias(unitId: number, unitArray: any): string {\n\t\tconst unit = this.getUnit(unitId, unitArray);\n\n\t\tif (unit.ParentId === null) return `/${unit.UrlAlias}`;\n\n\t\treturn `${this.getFullUrlAlias(unit.ParentId, unitArray)}/${unit.UrlAlias}`;\n\t}\n\n\tcreateFlatUnitArray(root: UnitModel) {\n\t\tconst key = 'Children';\n\t\tlet flatten = [root];\n\n\t\tif (root[key] && root[key].length > 0) {\n\t\t\troot[key].forEach((c) => {\n\t\t\t\t// Not including not listed here. Might bite me in the but later\n\t\t\t\tc.closestEntranceId =\n\t\t\t\t\t(root.IsClientEntrance && root.IsListedToClients) || root.closestEntranceId ? root.closestEntranceId || root.Id : null;\n\t\t\t});\n\n\t\t\treturn flatten.concat(root[key].map((child) => this.createFlatUnitArray(child)).reduce((a, b) => a.concat(b), []));\n\t\t}\n\n\t\treturn flatten;\n\t}\n}\n","export class HtmlHelper {\n\tpublic persistantNotification(options): HTMLElement {\n\t\tif (options === 'clearAll') {\n\t\t\tdocument.querySelector('.VisibaPersistantNotificationWrap').remove();\n\t\t\treturn null;\n\t\t}\n\n\t\tconst div = document.createElement('div');\n\t\tdiv.className = 'VisibaPersistantNotificationWrap';\n\t\tdiv.innerHTML = `\n <div class=\"VisibaPersistantNotification\">\n <div class=\"title\">${options.Title}</div>\n <div class=\"description\">${typeof options.Description === 'undefined' ? '' : options.Description}</div>\n </div>`;\n\t\tdocument.body.appendChild(div);\n\n\t\treturn div;\n\t}\n\n\tpublic loading(action: 'show' | 'hide') {\n\t\tconst elem = document.querySelector('#contentLoading') as HTMLElement;\n\n\t\tif (action === 'show') {\n\t\t\tif (elem === null) {\n\t\t\t\tconst div = document.createElement('div');\n\t\t\t\tdiv.id = 'contentLoading';\n\t\t\t\tdiv.innerHTML = '<img class=\"inner\" src=\"/Images/ajax-loader-squares.gif\" alt=\"Loading\" />';\n\t\t\t\tdocument.body.appendChild(div);\n\t\t\t}\n\n\t\t\tif (!elem) return;\n\t\t\tif (elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length) return false;\n\n\t\t\telem.style.display = 'block';\n\t\t} else {\n\t\t\telem.style.display = 'none';\n\t\t}\n\t}\n\n\tpublic loadJavascript(src, callback) {\n\t\tconst script = document.createElement('script');\n\t\tlet loaded = false;\n\n\t\tscript.src = src;\n\t\tif (callback) {\n\t\t\tscript.onload = script.onload = () => {\n\t\t\t\tif (!loaded) {\n\t\t\t\t\tcallback();\n\t\t\t\t}\n\t\t\t\tloaded = true;\n\t\t\t};\n\t\t}\n\t\tdocument.head.appendChild(script);\n\t}\n\n\t/**\n\t * Strips all HTML in text while still leaving things like heart symbols that uses < >\n\t */\n\tpublic stripHtml(input: string): string {\n\t\treturn new DOMParser().parseFromString(input, 'text/html').body.textContent;\n\t}\n}\n","export class CookieHelper {\n\tpublic create(name: string, value: string | number | boolean, days: number = null) {\n\t\tlet expires;\n\t\tif (days) {\n\t\t\tconst date = new Date();\n\t\t\tdate.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);\n\t\t\texpires = '; expires=' + date.toUTCString();\n\t\t} else {\n\t\t\texpires = '';\n\t\t}\n\t\tdocument.cookie = name + '=' + value + expires + '; path=/';\n\t}\n\n\t// making a new one because I don't know if I'm going to break something if I edit the one above\n\tpublic createReturn(name: string): string | null {\n\t\tconst regex = `(?:(?:^|.*;)\\\\s*${encodeURIComponent(name).replace(/[\\-\\.\\+\\*]/g, '\\\\$&')}\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$`;\n\t\tconst cookieValue = decodeURIComponent(document.cookie.replace(new RegExp(regex), '$1'));\n\n\t\treturn cookieValue || null;\n\t}\n\n\tpublic get(name: string): string | null {\n\t\tif (document.cookie.length > 0) {\n\t\t\tlet start = document.cookie.indexOf(name + '=');\n\t\t\tif (start !== -1) {\n\t\t\t\tstart = start + name.length + 1;\n\t\t\t\tlet end = document.cookie.indexOf(';', start);\n\t\t\t\tif (end === -1) {\n\t\t\t\t\tend = document.cookie.length;\n\t\t\t\t}\n\t\t\t\treturn unescape(document.cookie.substring(start, end));\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n}\n","import { environment } from 'Public_old/src/environments/environment';\n\nexport class RedRobinHelper {\n\tconstructor() {}\n\n\tpublic getApiRoot(): string {\n\t\t// Adds this check for now until we got a better way to load env\n\t\tif (location.hostname.includes('stage-service.visibacare')) {\n\t\t\treturn 'https://stage-rr-api.visibacare.com/api';\n\t\t}\n\n\t\tif (!environment.production || location.hostname.includes('vcare.pl')) {\n\t\t\t// Find the dev environment string in the url. But in one exception, if\n\t\t\t// the environment string is dev1 then we want to strip the number. But in\n\t\t\t// all other cases we want the number.\n\t\t\tconst devEnv = location.hostname.match(/dev[0-9]{2,}|dev[2-9]{1,1}/)?.pop() || 'dev';\n\n\t\t\treturn `https://${devEnv}-rr-api.vcare.pl/api`;\n\t\t}\n\n\t\treturn 'https://rr-api.visibacare.com/api';\n\t}\n}\n","import { FileHelper } from './file.helper';\nimport { IsHelper } from './is.helper';\nimport { NumberHelper } from './number.helper';\nimport { ObjectHelper } from './object.helper';\nimport { Injectable } from '@angular/core';\nimport { ArrayHelper } from './array.helper';\nimport { StringHelper } from './string.helper';\nimport { ColorHelper } from './color.helper';\nimport { ImageHelper } from './image.helper';\nimport { UnitHelper } from './unit.helper';\nimport { HtmlHelper } from './html.helper';\nimport { CookieHelper } from './cookie.helper';\nimport { RedRobinHelper } from './redrobin.helper';\n\n@Injectable()\nexport class Helper {\n\tis = new IsHelper();\n\tarray: ArrayHelper = new ArrayHelper();\n\tstring: StringHelper = new StringHelper();\n\tcolor: ColorHelper = new ColorHelper();\n\timage: ImageHelper = new ImageHelper();\n\tunit: UnitHelper = new UnitHelper();\n\thtml = new HtmlHelper();\n\tcookie = new CookieHelper();\n\tobject = new ObjectHelper();\n\tnumber = new NumberHelper();\n\tfile = new FileHelper();\n\trr = new RedRobinHelper();\n}\n","// TODO: use https://www.npmjs.com/package/uuid when switching to new enviroment.\n\nexport function v4() {\n\tconst hash = () =>\n\t\tMath.floor((1 + Math.random()) * 0x10000)\n\t\t\t.toString(16)\n\t\t\t.substring(1);\n\n\treturn `${hash()}${hash()}-${hash()}-${hash()}-${hash()}-${hash()}${hash()}${hash()}`;\n}\n","import { Injectable, EventEmitter } from '@angular/core';\n\n@Injectable()\nexport class AudioPlayerService {\n\tprivate _audioElements: { [src: string]: HTMLAudioElement } = {};\n\n\tonSuspended = new EventEmitter<string>();\n\n\tconstructor() {}\n\n\tplay(src: string, loop: boolean = false) {\n\t\tthis.element(src).loop = loop;\n\t\tthis.element(src).volume = 1.0;\n\t\tthis.element(src).currentTime = 0;\n\t\t(this.element(src).play() as any).then(\n\t\t\t(success) => {\n\t\t\t\tthis.onSuspended.emit(null);\n\t\t\t},\n\t\t\t(error: DOMException) => {\n\t\t\t\tif (error.message.indexOf('Failed to load') === -1) this.onSuspended.emit(src);\n\t\t\t},\n\t\t);\n\n\t\treturn this.element(src);\n\t}\n\n\tstop(src: string) {\n\t\tthis.element(src).pause();\n\t\tthis.onSuspended.emit(null);\n\t}\n\n\tplaying(src: string) {\n\t\treturn typeof this.element(src) === 'undefined' ? false : !this.element(src).paused;\n\t}\n\n\telement(src: string): HTMLAudioElement {\n\t\tif (typeof this._audioElements[src] === 'undefined') this.createElement(src);\n\n\t\treturn this._audioElements[src];\n\t}\n\n\tasync attachSinkId(src, sinkId) {\n\t\ttry {\n\t\t\t(this.element(src) as any)\n\t\t\t\t.setSinkId(sinkId)\n\t\t\t\t.then((s) => {\n\t\t\t\t\tconsole.log('Set Sink ID for');\n\t\t\t\t})\n\t\t\t\t.catch((error) => {\n\t\t\t\t\tconsole.error('Failed to set Sink ID for', error);\n\t\t\t\t});\n\t\t} catch (error) {\n\t\t\tconsole.log('sinkId err', error);\n\t\t}\n\t}\n\n\tprivate createElement(src: string) {\n\t\tthis._audioElements[src] = document.body.appendChild(new Audio(src));\n\t}\n\n\tpublic removeAudioElement(src: string): void {\n\t\tthis._audioElements[src].src = null;\n\t\tthis._audioElements[src].remove();\n\t}\n}\n","import { Injectable } from '@angular/core';\n\ntype Translations = { [key: string]: string };\n\n@Injectable()\nexport class TranslateService {\n\tprivate translations: Translations = {};\n\n\tpublic get(alias: string, args: Object = null, allowEmpty: boolean = false): string {\n\t\tif (window.sessionStorage['showAlias']) {\n\t\t\treturn alias;\n\t\t}\n\t\tlet translation = this.translations[alias];\n\n\t\tif (typeof translation === 'undefined' || typeof translation === 'object' || translation === '') {\n\t\t\tif (allowEmpty) return '';\n\n\t\t\tconsole.error('Missing translation: ' + alias);\n\t\t\ttranslation = alias;\n\t\t} else if (typeof args !== 'undefined') {\n\t\t\tfor (var k in args) translation = translation.replace('{{' + k + '}}', args[k]);\n\n\t\t\tif (typeof translation === 'undefined' || typeof translation === 'object' || translation === '') {\n\t\t\t\tconsole.error('Missing translation: ' + alias);\n\t\t\t}\n\n\t\t\tif (typeof translation === 'undefined') {\n\t\t\t\tif (µ.isDevelopment) {\n\t\t\t\t\tlet paths = alias.split('.');\n\t\t\t\t\ttranslation = paths[paths.length - 1] + '⚠';\n\t\t\t\t} else {\n\t\t\t\t\ttranslation = alias;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn translation;\n\t\t}\n\t}\n\n\tpublic setTranslations(translations: Translations) {\n\t\tthis.translations = translations;\n\t}\n}\n","import { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport { AuthenticationMethodApiModel } from '../../Services/Models/General/AuthenticationMethodApiModel';\nimport { Component, Input, OnInit, OnDestroy, ViewChild, ElementRef, ViewEncapsulation } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { SpaContext } from '../../Classes/spacontext';\nimport { SpaEventService } from '../../Services/spaEvents.service';\nimport { IdentityServiceV2 } from '../../Services/api/v2/identity.service';\nimport { AuthServiceV2 } from '../../Services/api/v2/auth.service';\nimport { AuthMethodApiModel } from '../../Services/Models/Auth/AuthMethodApiModel';\nimport { AuthContextService } from '../../Services/authContext.service';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport type { SignInOnFinishedEvent } from './SignInOnFinishedEvent';\nimport { UsageAgreementsService } from '../../Services/api/v2/usageAgreements.service';\nimport { sharedResolution } from '../../../../src/shared_resolution';\n\nconst NO_SCROLL_CLASS_NAME = 'js-noScroll';\n\nexport enum OpenTargetWith {\n\tAngularNavigation = 'AngularNavigation',\n\tNativeNavigation = 'NativeNavigation',\n\tNewTab = 'NewTab',\n}\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-signin',\n\ttemplate: `\n\t\t<ng-container *ngIf=\"useCareExperiencePwIDP; then newSignIn; else oldSignIn\"> </ng-container>\n\n\t\t<ng-template #newSignIn>\n\t\t\t<sign-in-wrapper></sign-in-wrapper>\n\t\t</ng-template>\n\n\t\t<ng-template #oldSignIn>\n\t\t\t<div class=\"outerWrapper overlay\" (click)=\"abort()\"></div>\n\n\t\t\t<div class=\"container\">\n\t\t\t\t<div class=\"innerWrapper\" id=\"js-innerRef\">\n\t\t\t\t\t<div class=\"innerContent\" trapFocus *ngIf=\"view == 'method'\">\n\t\t\t\t\t\t<div class=\"countrySelect\" *ngIf=\"countryList.length > 1\">\n\t\t\t\t\t\t\t<visiba-select\n\t\t\t\t\t\t\t\t[(ngModel)]=\"countryCode\"\n\t\t\t\t\t\t\t\t[options]=\"countryList\"\n\t\t\t\t\t\t\t\tplaceholder=\"LicenceHolder.Component.SignIn.Placeholder.ChooseNationality\"\n\t\t\t\t\t\t\t\t(onChange)=\"getAuthMethods(countryCode)\"\n\t\t\t\t\t\t\t\tlabel=\"Name\"\n\t\t\t\t\t\t\t\tvalue=\"CountryCode\"\n\t\t\t\t\t\t\t></visiba-select>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"loginReason\" *ngIf=\"reasonText !== null\">\n\t\t\t\t\t\t\t<div class=\"title\">{{ 'LicenceHolder.Component.SignIn.Title.LoginNeeded' | translate }}</div>\n\t\t\t\t\t\t\t{{ reasonText }}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"methodDirectives\" #methodDirectives>\n\t\t\t\t\t\t\t<div class=\"marginBottom2\" *ngIf=\"countryCode === 'GB'; else allOtherCountries\">\n\t\t\t\t\t\t\t\t<div *ngIf=\"!nhsLoading\" class=\"marginBottom2\">\n\t\t\t\t\t\t\t\t\t<h2>{{ 'LicenceHolder.Defaults.Views.View_SignInMethod_Title' | translate }}</h2>\n\t\t\t\t\t\t\t\t\t<p>{{ 'LicenceHolder.Component.SignIn.Nhs.LoginDescription' | translate }}</p>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div *ngFor=\"let method of methods\">\n\t\t\t\t\t\t\t\t\t<div *ngIf=\"method.MethodId === 'NhsOidc'\" class=\"marginBottom4\">\n\t\t\t\t\t\t\t\t\t\t<visibacare-iframe-auth\n\t\t\t\t\t\t\t\t\t\t\t[returnUrl]=\"returnUrl\"\n\t\t\t\t\t\t\t\t\t\t\t[ticket]=\"callTicket\"\n\t\t\t\t\t\t\t\t\t\t\t[countryCode]=\"countryCode\"\n\t\t\t\t\t\t\t\t\t\t\t[method]=\"chosenMethod\"\n\t\t\t\t\t\t\t\t\t\t\t[availableMethods]=\"methods\"\n\t\t\t\t\t\t\t\t\t\t\t(onFinished)=\"onFinished($event)\"\n\t\t\t\t\t\t\t\t\t\t\t(nhsLoading)=\"handleNhsLoading($event)\"\n\t\t\t\t\t\t\t\t\t\t></visibacare-iframe-auth>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div *ngIf=\"method.MethodId === 'SMS' && !nhsLoading\" class=\"marginBottom2\">\n\t\t\t\t\t\t\t\t\t\t<sms-login\n\t\t\t\t\t\t\t\t\t\t\t(onFinished)=\"onFinished($event)\"\n\t\t\t\t\t\t\t\t\t\t\t[countryCode]=\"countryCode\"\n\t\t\t\t\t\t\t\t\t\t\t[ticket]=\"callTicket\"\n\t\t\t\t\t\t\t\t\t\t\t[isOutsider]=\"authMethod\"\n\t\t\t\t\t\t\t\t\t\t></sms-login>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div *ngIf=\"method.MethodId === 'QuickAuth' && !nhsLoading\" class=\"marginBottom2\">\n\t\t\t\t\t\t\t\t\t\t<quick-auth (onFinished)=\"onFinished($event)\" [countryCode]=\"countryCode\"></quick-auth>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div *ngIf=\"method.MethodId === 'NoAuth' && !nhsLoading\" class=\"marginBottom2\">\n\t\t\t\t\t\t\t\t\t\t<no-auth-login (onFinished)=\"onFinished($event)\" [ticket]=\"callTicket\" [countryCode]=\"countryCode\"></no-auth-login>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<ng-template #allOtherCountries>\n\t\t\t\t\t\t\t\t<div [ngSwitch]=\"visibleMethodDirective\">\n\t\t\t\t\t\t\t\t\t<ng-template [ngSwitchCase]=\"'VisibaCare_SMS'\">\n\t\t\t\t\t\t\t\t\t\t<sms-login\n\t\t\t\t\t\t\t\t\t\t\t(onFinished)=\"onFinished($event)\"\n\t\t\t\t\t\t\t\t\t\t\t[countryCode]=\"countryCode\"\n\t\t\t\t\t\t\t\t\t\t\t[ticket]=\"callTicket\"\n\t\t\t\t\t\t\t\t\t\t\t[isOutsider]=\"authMethod\"\n\t\t\t\t\t\t\t\t\t\t></sms-login>\n\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t<ng-template [ngSwitchCase]=\"'VisibaCare_QuickAuth'\">\n\t\t\t\t\t\t\t\t\t\t<quick-auth (onFinished)=\"onFinished($event)\" [countryCode]=\"countryCode\"></quick-auth>\n\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t<ng-template [ngSwitchCase]=\"'ehelse'\">\n\t\t\t\t\t\t\t\t\t\t<signin-method-ehelse [ticket]=\"callTicket\"></signin-method-ehelse>\n\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t<ng-template [ngSwitchCase]=\"'Iframe'\">\n\t\t\t\t\t\t\t\t\t\t<visibacare-iframe-auth\n\t\t\t\t\t\t\t\t\t\t\t[returnUrl]=\"returnUrl\"\n\t\t\t\t\t\t\t\t\t\t\t[ticket]=\"callTicket\"\n\t\t\t\t\t\t\t\t\t\t\t[countryCode]=\"countryCode\"\n\t\t\t\t\t\t\t\t\t\t\t[method]=\"chosenMethod\"\n\t\t\t\t\t\t\t\t\t\t\t(onFinished)=\"onFinished($event)\"\n\t\t\t\t\t\t\t\t\t\t></visibacare-iframe-auth>\n\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t<ng-template [ngSwitchCase]=\"'VisibaCare_NoAuth'\">\n\t\t\t\t\t\t\t\t\t\t<no-auth-login (onFinished)=\"onFinished($event)\" [ticket]=\"callTicket\" [countryCode]=\"countryCode\"></no-auth-login>\n\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t<ng-template [ngSwitchCase]=\"null\">\n\t\t\t\t\t\t\t\t\t\t<p>{{ 'LicenceHolder.Component.SignIn.Title.NoMethodsForNationality' | translate }}</p>\n\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"row error marginBottom2\" *ngIf=\"errorMessage != null\">{{ errorMessage }}</div>\n\t\t\t\t\t\t<div *ngIf=\"countryCode !== 'GB'\" class=\"row methods\">\n\t\t\t\t\t\t\t<span *ngIf=\"methods.length > 1\">{{ 'LicenceHolder.Component.SignIn.Title.OtherMethods' | translate }}</span>\n\t\t\t\t\t\t\t<div class=\"list\">\n\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\tclass=\"list-item\"\n\t\t\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\t\t\t(click)=\"selectMethod(m)\"\n\t\t\t\t\t\t\t\t\t*ngFor=\"let m of methods\"\n\t\t\t\t\t\t\t\t\t[class.selected]=\"m === chosenMethod\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<img class=\"logInTypeImg\" [src]=\"m.ImageUrl\" />\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t{{ 'Common.AuthType.' + m.ProviderId.replace(' ', '_') + '.' + m.MethodId.replace(' ', '_') | translate }}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\tclass=\"cancel\"\n\t\t\t\t\t\t\t[attr.aria-label]=\"'Common.Button.Close' | translate\"\n\t\t\t\t\t\t\t(click)=\"abort()\"\n\t\t\t\t\t\t\t*ngIf=\"!authMethod\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<visiba-svg a=\"X\"></visiba-svg>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-template>\n\t`,\n\tstyleUrls: ['../../Css/Components/signIn.component.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class SignInComponent implements OnInit, OnDestroy {\n\t@Input('target') returnUrl: string = null;\n\t@Input('openTargetWith') openTargetWith: OpenTargetWith = OpenTargetWith.AngularNavigation;\n\t@Input('reason') reasonText: string = null;\n\t@Input('ticket') callTicket: string = null;\n\t@Input('error') errorMessage: string = null;\n\t@Input('leave') leave: boolean = true;\n\t@Input('authMethod') authMethod: AuthenticationMethodApiModel | null = null;\n\t@ViewChild('methodDirectives', { static: false }) public methodDirectivesRef: ElementRef;\n\n\tuseCareExperiencePwIDP = null;\n\tauthAttemptId: string;\n\tmethods: Array<AuthMethodApiModel>;\n\tchosenMethod: AuthMethodApiModel = null;\n\tvisibleMethodDirective: string = null;\n\tcountryCode: string = null;\n\tcountryList: Array<any> = [];\n\tview: 'method' = null;\n\tnhsLoading: boolean = false;\n\tiframeMessageDisposer: () => void;\n\n\tconstructor(\n\t\tprivate _spaContext: SpaContext,\n\t\tprivate _router: Router,\n\t\tprivate _spaEventService: SpaEventService,\n\t\tprivate _identityService: IdentityServiceV2,\n\t\tprivate authService: AuthServiceV2,\n\t\tprivate translateService: TranslateService,\n\t\tprivate authContextService: AuthContextService,\n\t\tprivate usageAgreementsService: UsageAgreementsService,\n\t) {}\n\n\tngOnInit() {\n\t\tthis.useCareExperiencePwIDP = this.shouldShowIDPMethods(this.returnUrl);\n\n\t\tif (this.authContextService.patientIdentity !== null && this.returnUrl !== null) {\n\t\t\tthis._identityService.isAlive().subscribe((result) => {\n\t\t\t\tif (result.data) this._router.navigate([decodeURIComponent(this.returnUrl)]);\n\t\t\t\telse {\n\t\t\t\t\tthis.authContextService.signInPatient(null, false);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tif (this.useCareExperiencePwIDP) {\n\t\t\tconst callback = (event) => {\n\t\t\t\tif (event.data === 'sign-in-finished') {\n\t\t\t\t\tthis.completeSignIn();\n\t\t\t\t\tglobalThis.removeEventListener('message', callback);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tglobalThis.addEventListener('message', callback);\n\n\t\t\tthis.iframeMessageDisposer = () => {\n\t\t\t\tglobalThis.removeEventListener('message', callback);\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.authMethod) {\n\t\t\tthis.countryList = this._spaContext.unitConfig.Locale.SupportedCountries.filter(\n\t\t\t\t(country) => country.CountryCode === this.authMethod.CountryCode,\n\t\t\t);\n\t\t\tthis.countryCode = this.authMethod.CountryCode;\n\t\t} else {\n\t\t\tthis.countryList = this._spaContext.unitConfig.Locale.SupportedCountries;\n\t\t\tthis.countryCode = this._spaContext.unitConfig.Locale.DefaultCountry;\n\t\t}\n\t\tthis.getAuthMethods(this.countryCode);\n\n\t\twindow.angularSignInModalIsOpen = true;\n\n\t\tdocument.body.classList.add(NO_SCROLL_CLASS_NAME);\n\t}\n\n\tngOnDestroy() {\n\t\tdocument.body.classList.remove(NO_SCROLL_CLASS_NAME);\n\n\t\twindow.angularSignInModalIsOpen = false;\n\n\t\tthis.iframeMessageDisposer?.();\n\t}\n\n\tpublic handleNhsLoading(event: boolean) {\n\t\tthis.nhsLoading = event;\n\t}\n\n\tgetAuthMethods(countryCode: string) {\n\t\tif (countryCode === null) return;\n\t\tthis.view = null;\n\n\t\tthis.authService.getAuthMethods(countryCode, this.callTicket, this._spaContext.unitConfig.Unit.UnitId).subscribe(\n\t\t\t(response) => {\n\t\t\t\tif (this.authMethod) {\n\t\t\t\t\tthis.methods = response.filter((method) => method.MethodId === this.authMethod.AuthenticationMethodId) as any;\n\t\t\t\t} else {\n\t\t\t\t\tthis.methods = response as any;\n\t\t\t\t}\n\t\t\t\tthis.view = 'method';\n\n\t\t\t\tif (this.methods.length === 0) {\n\t\t\t\t\tthis.chosenMethod = null;\n\t\t\t\t\tthis.visibleMethodDirective = null;\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tlet method = this.methods[0];\n\t\t\t\tif (localStorage.getItem('X-App-PublicSignInMethod') !== null && countryCode !== 'GB') {\n\t\t\t\t\tconst results = this.methods.filter(\n\t\t\t\t\t\t(x) =>\n\t\t\t\t\t\t\tx.ProviderId === localStorage.getItem('X-App-PublicSignInMethod').split('_')[0] &&\n\t\t\t\t\t\t\tx.MethodId === localStorage.getItem('X-App-PublicSignInMethod').split('_')[1],\n\t\t\t\t\t);\n\t\t\t\t\tif (results.length > 0) method = results[0];\n\t\t\t\t}\n\n\t\t\t\tthis.selectMethod(method);\n\t\t\t},\n\t\t\t(error) => {},\n\t\t);\n\t}\n\n\tselectMethod(method: AuthMethodApiModel): void {\n\t\tconst combId = method.ProviderId + '_' + method.MethodId;\n\n\t\tthis.chosenMethod = method;\n\t\tthis.visibleMethodDirective = combId;\n\t\tlocalStorage.setItem('X-App-PublicSignInMethod', combId);\n\n\t\tif (this.methodDirectivesRef != null) {\n\t\t\tthis.methodDirectivesRef.nativeElement.tabIndex = 0;\n\t\t\tthis.methodDirectivesRef.nativeElement.focus();\n\t\t\tthis.methodDirectivesRef.nativeElement.onBlur = () => {\n\t\t\t\tthis.methodDirectivesRef.nativeElement.tabIndex = -1;\n\t\t\t};\n\t\t}\n\n\t\tif (combId === 'VisibaCare_SMS') return;\n\n\t\tif (combId === 'VisibaCare_QuickAuth') return;\n\n\t\tif (combId === 'VisibaCare_NoAuth') return;\n\n\t\tif (method.MethodId === 'ehelse') {\n\t\t\tthis.visibleMethodDirective = 'ehelse';\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.visibleMethodDirective = 'Iframe';\n\t}\n\n\tabort() {\n\t\tthis._spaEventService.onSignInAborted.emit();\n\t\tif (this.leave) {\n\t\t\tconst licenceHolderService = sharedResolution.resolve(LicenceHolderService);\n\t\t\tthis._router.navigateByUrl('/' + licenceHolderService.alias);\n\t\t}\n\t}\n\n\tback() {\n\t\tthis.abort();\n\t}\n\n\tonFinished(event: SignInOnFinishedEvent) {\n\t\tif (event.code === 'Signed') {\n\t\t\tthis.checkDocumentSigning();\n\t\t} else if (event.code === 'Register') {\n\t\t\tthis._spaEventService.onRegistrationRequired.emit({ target: this.returnUrl, ticket: event.data.ticket });\n\t\t} else if (event.code === 'Cancel') {\n\t\t\tthis.back();\n\t\t} else if (this.chosenMethod.Name === 'NHS' && event.code === 'Failed' && event.data.errorMessage.startsWith('Consent')) {\n\t\t\tthis.errorMessage = this.translateService.get('LicenceHolder.Component.SignIn.Error.NhsConsent');\n\t\t} else {\n\t\t\tthis.errorMessage = this.translateService.get('LicenceHolder.Common.Error.Authentication.' + event.data.errorCode);\n\t\t}\n\t}\n\n\tcheckDocumentSigning() {\n\t\tthis.usageAgreementsService.getSignatureDocuments(this._spaContext.unitConfig.LicenceHolder.Id).subscribe(\n\t\t\t(response) => {\n\t\t\t\tif (!response.data.PrivacyPolicy.HasSigned || !response.data.TermsOfService.HasSigned) {\n\t\t\t\t\tthis._spaEventService.onDocumentsSigningNeeded.emit(response.data);\n\n\t\t\t\t\tconst signingSubscription = this._spaEventService.onDocumentsSigningCompleted.subscribe((documents) => {\n\t\t\t\t\t\tthis.completeSignIn();\n\t\t\t\t\t\tsigningSubscription.unsubscribe();\n\t\t\t\t\t});\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.completeSignIn();\n\t\t\t},\n\t\t\t(error) => {},\n\t\t);\n\t}\n\n\tcompleteSignIn() {\n\t\tthis._identityService.get().subscribe(\n\t\t\t() => {\n\t\t\t\tthis.authContextService.signInPatient(null);\n\t\t\t\tif (this.authMethod && this.callTicket) this.authContextService.isAuthenticatedOutsider = true;\n\t\t\t\tswitch (this.openTargetWith) {\n\t\t\t\t\tcase OpenTargetWith.NewTab: {\n\t\t\t\t\t\twindow.open(this.returnUrl);\n\n\t\t\t\t\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\t\t\t\t\t\tthis._router.navigateByUrl('/' + locationSelectorService.location.route);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase OpenTargetWith.NativeNavigation: {\n\t\t\t\t\t\twindow.location.href = this.returnUrl;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase OpenTargetWith.AngularNavigation: {\n\t\t\t\t\t\tthis._router.navigateByUrl(this.returnUrl);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t(error) => {},\n\t\t);\n\t}\n\n\tprivate shouldShowIDPMethods(returnUrl: string) {\n\t\tconst split = decodeURIComponent(returnUrl).split('?');\n\t\tif (split.length === 2 && new URLSearchParams(split[1]).get('legacy') === 'true') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn window.__visiba_feature_flags__['CareExperience.PW.Idp'];\n\t}\n}\n","import { Component, Input, OnInit, EventEmitter, Output } from '@angular/core';\nimport { GeneralService } from '../Services/general.service';\nimport { SpaContext } from '../Classes/spacontext';\nimport { TranslateService } from '../Common/Services/translate.service';\n\ninterface ConfirmationModel {\n\tnumber: string;\n\tcode: string;\n}\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-confirm-phone-number',\n\ttemplate: `\n\t\t<visiba-svg *ngIf=\"loading\" a=\"Loader\"></visiba-svg>\n\t\t<ng-container *ngIf=\"!loading\">\n\t\t\t<h2>{{ 'LicenceHolder.Component.ConfirmPhoneNumber.Title' | translate }}</h2>\n\t\t\t<form novalidate (ngSubmit)=\"sendConfirmationCode()\" #codeform=\"ngForm\" trapFocus>\n\t\t\t\t<div class=\"row codeSent\">\n\t\t\t\t\t{{ 'LicenceHolder.Component.SmsLoginComponent.Phrase.CodeSent' | translate: { number: model.number } : 1 }}\n\t\t\t\t</div>\n\t\t\t\t<div class=\"row codeField\">\n\t\t\t\t\t<visiba-input\n\t\t\t\t\t\trequired\n\t\t\t\t\t\tmaxlength=\"6\"\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t[(ngModel)]=\"model.code\"\n\t\t\t\t\t\tname=\"code\"\n\t\t\t\t\t\tplaceholder=\"LicenceHolder.Component.SmsLoginComponent.Placeholder.YourCode\"\n\t\t\t\t\t></visiba-input>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"row error\" *ngIf=\"errorMessage != null\">{{ errorMessage }}</div>\n\t\t\t\t<div class=\"row codeAgain\">\n\t\t\t\t\t<a (click)=\"verifyPhoneNumber()\">{{ 'LicenceHolder.Component.SmsLoginComponent.Button.GetSmsCode' | translate }}</a>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"row sendButton\">\n\t\t\t\t\t<button class=\"btn large\" [disabled]=\"!codeform.form.valid\">{{ 'Common.Word.Confirm' | translate }}</button>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</ng-container>\n\t`,\n\tstyles: ['.sendButton {margin-top: 15px;} visiba-svg { width: 60px; }'],\n})\nexport class ConfirmPhoneNumberComponent implements OnInit {\n\t@Input('phoneNumber') public phoneNumber: string;\n\t@Input('countryCode') public countryCode: string;\n\t@Input('languageCode') public languageCode: string;\n\n\t@Output() public onNumberConfirmed = new EventEmitter<string>();\n\tpublic errorMessage: string | null = null;\n\tpublic loading = true;\n\tpublic model: ConfirmationModel = { number: '', code: '' };\n\tprivate verificationAttemptId: string | null = null;\n\tprivate smsTries: number = 0;\n\n\tconstructor(\n\t\tprivate generalService: GeneralService,\n\t\tprivate spaContext: SpaContext,\n\t\tprivate translateService: TranslateService,\n\t) {}\n\n\tngOnInit() {\n\t\tthis.model.number = this.phoneNumber;\n\t\tthis.verifyPhoneNumber();\n\t}\n\n\tpublic verifyPhoneNumber() {\n\t\tif (this.smsTries > 2) return false;\n\n\t\tthis.smsTries++;\n\t\tthis.loading = true;\n\n\t\tthis.generalService\n\t\t\t.verifyPhoneNumber(this.spaContext.unitConfig.LicenceHolder.Id, this.model.number, this.countryCode, this.languageCode)\n\t\t\t.subscribe(\n\t\t\t\t(response) => {\n\t\t\t\t\tthis.verificationAttemptId = response.data.VerificationAttemptId;\n\t\t\t\t\tthis.loading = false;\n\t\t\t\t},\n\t\t\t\t(error) => {\n\t\t\t\t\tthis.errorMessage = this.translateService.get('LicenceHolder.Component.SmsLoginComponent.Phrase.UnableToGetCode');\n\t\t\t\t\tthis.loading = false;\n\t\t\t\t},\n\t\t\t);\n\t}\n\n\tsendConfirmationCode() {\n\t\tthis.loading = true;\n\n\t\tthis.generalService\n\t\t\t.completePhoneNumberVerification(this.spaContext.unitConfig.LicenceHolder.Id, this.verificationAttemptId, this.model.code)\n\t\t\t.subscribe(\n\t\t\t\t(response) => {\n\t\t\t\t\tthis.onNumberConfirmed.emit(this.verificationAttemptId);\n\t\t\t\t\tthis.loading = false;\n\t\t\t\t},\n\t\t\t\t(error) => {\n\t\t\t\t\tthis.loading = false;\n\t\t\t\t\tthis.errorMessage = this.translateService.get('LicenceHolder.Component.SmsLoginComponent.Phrase.InvalidSmsCode');\n\t\t\t\t},\n\t\t\t);\n\t}\n}\n","import { Component, OnDestroy, OnInit } from '@angular/core';\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\nimport { WebContentButtonsService } from '../Services/api/v2/Units/webContentButtons.service';\nimport { Router } from '@angular/router';\nimport { ExternalDataService, ExternalDataModel } from '../Services/api/v2/Units/external-data.service';\n// import { MatomoTracker } from 'ngx-matomo';\nimport { AnalyticService } from '@application/analytic/analytic.service';\nimport { sharedResolution } from '../../../src/shared_resolution';\n\nenum IframeEvents {\n\texit = 'exitIframe',\n\tsubmitData = 'externalData',\n\texternalTracking = 'externalTracking',\n\texternalPreCaseInfo = 'externalPreCaseInfo',\n}\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-embedded-web',\n\tstyles: [\n\t\t`\n\t\t\t.iFrame {\n\t\t\t\tposition: fixed;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\ttop: 0px;\n\t\t\t\tborder-width: 0;\n\t\t\t\tz-index: 2147483647;\n\t\t\t\tbackground: #ffffff;\n\t\t\t}\n\t\t`,\n\t],\n\ttemplate: /*language=html*/ `\n\t\t<ng-container *ngIf=\"ewUrl\">\n\t\t\t<iframe [src]=\"ewUrl\" width=\"100%\" height=\"100%\" class=\"iFrame\"></iframe>\n\t\t</ng-container>\n\t`,\n})\nexport class EmbeddedWebComponent implements OnInit, OnDestroy {\n\tpublic ewUrl: SafeResourceUrl = null;\n\tprivate readonly analyticService = sharedResolution.resolve(AnalyticService);\n\n\tconstructor(\n\t\tpublic domSanitizer: DomSanitizer,\n\t\tprivate webContentButtonsSerivce: WebContentButtonsService,\n\t\tprivate externalDataService: ExternalDataService,\n\t\tprivate router: Router,\n\t\t// private matomoTracker: MatomoTracker,\n\t) {}\n\n\tngOnInit() {\n\t\tthis.analyticService.trackPageView({ customTitle: 'Embedded Web' });\n\t\twindow.addEventListener('message', this.handlePostEventFromIframe, false);\n\n\t\tif (this.webContentButtonsSerivce.selectedEmbeddedContent) {\n\t\t\tthis.ewUrl = this.getUrl(this.webContentButtonsSerivce.selectedEmbeddedContent.ewUrl);\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst url = this.router.routerState.snapshot.root.queryParams['url'];\n\t\tif (url) {\n\t\t\tthis.ewUrl = this.getUrl(url);\n\t\t}\n\t}\n\n\tngOnDestroy() {\n\t\twindow.removeEventListener('message', this.handlePostEventFromIframe, false);\n\t}\n\n\tpublic getUrl(url: string) {\n\t\ttry {\n\t\t\treturn this.domSanitizer.bypassSecurityTrustResourceUrl(decodeURIComponent(url));\n\t\t} catch {\n\t\t\treturn this.domSanitizer.bypassSecurityTrustResourceUrl(url);\n\t\t}\n\t}\n\n\tpublic handlePostEventFromIframe = (messageEvent): void => {\n\t\tconst { event, data } = messageEvent.data;\n\n\t\tif (data === undefined) return;\n\n\t\tif (event === IframeEvents.exit && data) {\n\t\t\tconst url = data.replace(this.webContentButtonsSerivce.selectedEmbeddedContent.baseUrl, '');\n\t\t\tthis.router.navigateByUrl(url);\n\t\t} else if (event === IframeEvents.submitData && data) {\n\t\t\tthis.externalDataService.submitExternalData(data as ExternalDataModel[]).subscribe((responses) => {\n\t\t\t\tresponses.forEach((response) => this.externalDataService.setGuid(response.data, new Date()));\n\t\t\t});\n\t\t} else if (event === IframeEvents.externalTracking && data) {\n\t\t\t// const parsedData = JSON.parse(data);\n\t\t\t// if (parsedData.event) {\n\t\t\t// \tthis.matomoTracker.trackEvent(parsedData.event.category, parsedData.event.action);\n\t\t\t// } else if (parsedData.view) {\n\t\t\t// \tthis.matomoTracker.setCustomUrl(`${window.location.origin}/appview/${parsedData.view}`);\n\t\t\t// \tthis.matomoTracker.setGenerationTimeMs(0);\n\t\t\t// \tthis.matomoTracker.trackPageView();\n\t\t\t// }\n\t\t} else if (event === IframeEvents.externalPreCaseInfo) {\n\t\t\tsessionStorage.setItem('externalPreCaseInfo', data);\n\t\t}\n\t};\n}\n","import { Helper } from '../Common/Helpers/helper';\nimport { Observable } from 'rxjs';\n\nexport class VisibaAudioAnalyser {\n\tbufferedSound: any = null;\n\taudioCtx: any = null;\n\tanalyser: any = null;\n\tcanvasCtx: any = null;\n\tsource: any = null;\n\n\tconstructor(private audioElement: HTMLAudioElement, private circlesContainer: HTMLElement, private _helper: Helper) {}\n\n\tinit() {\n\t\tthis.audioCtx = new ((<any>window).AudioContext || (<any>window).webkitAudioContext)();\n\t\tthis.analyser = this.audioCtx.createAnalyser();\n\t\tthis.analyser.minDecibels = -90;\n\t\tthis.analyser.maxDecibels = -10;\n\t\tthis.analyser.smoothingTimeConstant = 0.85;\n\n\t\tif (/^((?!chrome).)*safari/i.test(navigator.userAgent)) {\n\t\t\t// Bugger sound\n\t\t\tvar request = new XMLHttpRequest();\n\t\t\trequest.open('GET', '/Images/Public/soundtest.mp3', true);\n\t\t\trequest.responseType = 'arraybuffer';\n\t\t\trequest.addEventListener(\n\t\t\t\t'load',\n\t\t\t\tevent => {\n\t\t\t\t\tthis.bufferedSound = this.audioCtx.createBuffer(request.response, false);\n\t\t\t\t},\n\t\t\t\tfalse,\n\t\t\t);\n\t\t\trequest.send();\n\t\t} else {\n\t\t\t// Creating audioContext makes sinkId not work! : 2018-09-04\n\t\t\tthis.source = this.audioCtx.createMediaElementSource(this.audioElement);\n\t\t\tthis.connectAnalyser();\n\t\t}\n\t}\n\n\tconnectAnalyser() {\n\t\tthis.source.connect(this.analyser);\n\t\tthis.analyser.connect(this.audioCtx.destination);\n\t}\n\n\tstart() {\n\t\tif (/^((?!chrome).)*safari/i.test(navigator.userAgent)) {\n\t\t\tthis.source = this.audioCtx.createBufferSource();\n\t\t\tthis.source.buffer = this.bufferedSound;\n\t\t\tthis.connectAnalyser();\n\t\t\tthis.source.noteOn(0);\n\t\t\tthis.source.onended = () => {\n\t\t\t\tthis.stop();\n\t\t\t};\n\t\t}\n\n\t\tthis.analyser.fftSize = 64;\n\t\tvar binCount = this.analyser.frequencyBinCount;\n\t\tvar frequencyData = new Uint8Array(binCount);\n\t\tvar max = 256;\n\t\tvar minAnimCircleSize = 0.4;\n\n\t\tvar circles = [];\n\t\tfor (var i = 0; i < binCount; i++) {\n\t\t\tvar node = document.createElement('div');\n\t\t\tnode.classList.add('circle');\n\t\t\tcircles.push(node);\n\t\t\tthis.circlesContainer.appendChild(node);\n\t\t}\n\n\t\tlet draw = () => {\n\t\t\tif (!this.audioElement.paused) window.requestAnimationFrame(draw);\n\t\t\telse while (this.circlesContainer.firstChild) this.circlesContainer.removeChild(this.circlesContainer.firstChild);\n\n\t\t\tthis.analyser.getByteFrequencyData(frequencyData);\n\n\t\t\tfor (var i = 0; i < circles.length; i++) {\n\t\t\t\tvar circle = circles[i];\n\t\t\t\tcircle.style.cssText =\n\t\t\t\t\t'transform:scale(' +\n\t\t\t\t\t((frequencyData[i] / 255) * (1 - minAnimCircleSize) + minAnimCircleSize) +\n\t\t\t\t\t');-webkit-transform:scale(' +\n\t\t\t\t\t((frequencyData[i] / max) * (1 - minAnimCircleSize) + minAnimCircleSize) +\n\t\t\t\t\t')';\n\t\t\t}\n\t\t};\n\t\twindow.requestAnimationFrame(draw);\n\t\treturn;\n\t}\n\n\tstop() {\n\t\tif (/^((?!chrome).)*safari/i.test(navigator.userAgent)) {\n\t\t\tthis.source.stop(0);\n\t\t\tthis.source = null;\n\t\t} else this.audioElement.pause();\n\n\t\treturn;\n\t}\n}\n\nexport module MediaTest {\n\texport function checkTURNServers(iceServers: any, timeout: number = 5000): Observable<boolean> {\n\t\treturn Observable.create(observer => {\n\t\t\tvar promiseResolved = false,\n\t\t\t\tmyPeerConnection = window['RTCPeerConnection'] || window['mozRTCPeerConnection'] || window['webkitRTCPeerConnection'], //compatibility for firefox and chrome\n\t\t\t\tpc = new myPeerConnection({ iceServers: iceServers }),\n\t\t\t\tnoop = () => {};\n\n\t\t\tpc.createDataChannel(''); //create a bogus data channel\n\t\t\tpc.createOffer(sdp => {\n\t\t\t\tif (sdp.sdp.indexOf('typ relay') > -1) {\n\t\t\t\t\t// sometimes sdp contains the ice candidates...\n\t\t\t\t\tpromiseResolved = true;\n\t\t\t\t\tpc.close();\n\t\t\t\t\tobserver.next(true);\n\t\t\t\t}\n\t\t\t\tpc.setLocalDescription(sdp, noop, noop);\n\t\t\t}, noop); // create offer and set local description\n\t\t\tpc.onicecandidate = ice => {\n\t\t\t\t//listen for candidate events\n\t\t\t\tif (\n\t\t\t\t\tpromiseResolved ||\n\t\t\t\t\t!ice ||\n\t\t\t\t\t!ice.candidate ||\n\t\t\t\t\t!ice.candidate.candidate ||\n\t\t\t\t\t!(ice.candidate.candidate.indexOf('typ relay') > -1)\n\t\t\t\t)\n\t\t\t\t\treturn;\n\t\t\t\tpromiseResolved = true;\n\t\t\t\tpc.close();\n\t\t\t\tobserver.next(true);\n\t\t\t};\n\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tif (promiseResolved) return;\n\t\t\t\tobserver.next(false);\n\t\t\t\tpc.close();\n\t\t\t\tpromiseResolved = true;\n\t\t\t}, timeout);\n\t\t});\n\t}\n}\n","import { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport { EventEmitter } from '@angular/core';\nimport { SpaContext } from './spacontext';\nimport { VisibaPopup } from '../Common/Classes/visibaPopup';\nimport { v4 } from '../Common/Helpers/v4';\nimport { SpaLogger } from '../Common/Classes/Global/spalogger.class';\n\nexport abstract class UserMedia {\n\tpublic mediaStream: MediaStream = null;\n\tpublic chosenVideoinputDeviceId = 'default';\n\tpublic chosenAudioinputDeviceId = 'default';\n\tpublic chosenAudiooutputDeviceId = 'default';\n\n\t// Check which ones that are really needed.\n\tpublic onUpdateMediaDevice = new EventEmitter<'videoinput' | 'audioinput' | 'audiooutput'>();\n\tpublic onUpdateActiveDevices = new EventEmitter<{\n\t\tdevice: 'videoinput' | 'audioinput' | 'audiooutput';\n\t\tstate: 'added' | 'removed';\n\t}>();\n\tpublic onDeviceChange = new EventEmitter<void>();\n\tpublic onLocalTrackUpdated = new EventEmitter<MediaStreamTrack>();\n\n\tpublic devices = {\n\t\tvideoinput: [],\n\t\taudioinput: [],\n\t\taudiooutput: [],\n\t};\n\tprivate activePopup: VisibaPopup;\n\tprivate popupList: Array<VisibaPopup> = [];\n\tprivate _streamSessionID: string = v4();\n\tget streamSessionID(): string {\n\t\treturn this._streamSessionID;\n\t}\n\tset streamSessionID(ID: string) {\n\t\tthis._streamSessionID = ID;\n\t}\n\n\tconstructor(public _spaLogger: SpaLogger, public _spaContext: SpaContext, public translateService: TranslateService) {\n\t\tif (!navigator.mediaDevices) return;\n\n\t\tnavigator.mediaDevices.ondevicechange = () => this.deviceChange();\n\t}\n\n\tpublic newStreamSessionID() {\n\t\tthis.streamSessionID = v4();\n\t}\n\n\tpublic getMediaStream(constraints): Promise<MediaStream> {\n\t\treturn new Promise(async (resolve, reject) => {\n\t\t\ttry {\n\t\t\t\t// Keeping the comment if it should be needed...\n\t\t\t\t// exactID & type will be removed when a better solution for the FireFox bug arrives.\n\t\t\t\t//let builder;\n\t\t\t\t//if (typeof exactID !== 'undefined' && exactID !== 'default') {\n\t\t\t\t// if (type === 'video') {\n\t\t\t\t// builder = {\n\t\t\t\t// video: {\n\t\t\t\t// width: { max: 1280 },\n\t\t\t\t// height: { max: 720 },\n\t\t\t\t// deviceId: { exact: exactID },\n\t\t\t\t// },\n\t\t\t\t// audio: false\n\t\t\t\t// };\n\t\t\t\t// } else {\n\t\t\t\t// builder = {\n\t\t\t\t// video: false,\n\t\t\t\t// audio: {\n\t\t\t\t// deviceId: { exact: exactID },\n\t\t\t\t// },\n\t\t\t\t// };\n\t\t\t\t// }\n\t\t\t\t//} else {\n\t\t\t\t// if (type === 'video') {\n\t\t\t\t// builder = { video: true, audio: false };\n\t\t\t\t// } else {\n\t\t\t\t// builder = { audio: false, video: true };\n\t\t\t\t// }\n\t\t\t\t//}\n\n\t\t\t\tconst mediaStream = await navigator.mediaDevices.getUserMedia(constraints);\n\n\t\t\t\tif (mediaStream.getAudioTracks().length > 0) {\n\t\t\t\t\tthis.chosenAudioinputDeviceId =\n\t\t\t\t\t\ttypeof constraints.audio.deviceId !== 'undefined' ? constraints.audio.deviceId.exact : 'default';\n\t\t\t\t}\n\n\t\t\t\tif (mediaStream.getVideoTracks().length > 0) {\n\t\t\t\t\tthis.chosenVideoinputDeviceId =\n\t\t\t\t\t\ttypeof constraints.video.deviceId !== 'undefined' ? constraints.video.deviceId.exact : 'default';\n\t\t\t\t}\n\n\t\t\t\tthis.newStreamSessionID();\n\t\t\t\tresolve(mediaStream);\n\t\t\t} catch (error) {\n\t\t\t\treject(error);\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic getDeviceList(): Promise<any> {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tnavigator.mediaDevices\n\t\t\t\t.enumerateDevices()\n\t\t\t\t.then((devices: Array<MediaDeviceInfo>) => {\n\t\t\t\t\tlet listedDevices = {\n\t\t\t\t\t\tvideoinput: [{ label: 'Default', deviceId: 'default', kind: 'videoinput' }],\n\t\t\t\t\t\taudioinput: [],\n\t\t\t\t\t\taudiooutput: [],\n\t\t\t\t\t};\n\n\t\t\t\t\tdevices.forEach((device) =>\n\t\t\t\t\t\tlistedDevices[`${device.kind}`].push({ label: device.label, deviceId: device.deviceId, kind: device.kind }),\n\t\t\t\t\t);\n\n\t\t\t\t\tlistedDevices.videoinput.forEach((device, i) => {\n\t\t\t\t\t\tif (device.label === null || device.label === '') {\n\t\t\t\t\t\t\tdevice.label = `Camera ${i.toString()}`;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tlistedDevices.audioinput.forEach((device, i) => {\n\t\t\t\t\t\tif (device.label === null || device.label === '') {\n\t\t\t\t\t\t\tdevice.label = `Microphone ${i.toString()}`;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tlistedDevices.audiooutput.forEach((device, i) => {\n\t\t\t\t\t\tif (device.label === null || device.label === '') {\n\t\t\t\t\t\t\tdevice.label = `Sound output ${i.toString()}`;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tthis._spaLogger.log('Debug', ['Media'], 'Devices', listedDevices);\n\n\t\t\t\t\tresolve(listedDevices);\n\t\t\t\t})\n\t\t\t\t.catch((error) => reject(this.parseError(error, 'Generic', false)));\n\t\t});\n\t}\n\n\tpublic updateVideoTrack(\n\t\texactID: string | null = 'default',\n\t\tconstraints?: MediaTrackConstraints,\n\t\tfromStream?: MediaStream,\n\t): Promise<{ oldTrack: MediaStreamTrack; newTrack: MediaStreamTrack }> {\n\t\tconst builder = {\n\t\t\taudio: false,\n\t\t\tvideo: constraints || this.getCameraConstraints(exactID),\n\t\t};\n\n\t\treturn new Promise(async (resolve, reject) => {\n\t\t\ttry {\n\t\t\t\tconst stream: MediaStream = fromStream || (await this.getMediaStream(builder));\n\t\t\t\tconst newTrack: MediaStreamTrack = stream.getVideoTracks()[0];\n\t\t\t\tconst oldTrack = this.mediaStream.getVideoTracks()[0];\n\n\t\t\t\tnewTrack.enabled = oldTrack.enabled;\n\n\t\t\t\toldTrack.onended = null;\n\t\t\t\toldTrack.stop();\n\n\t\t\t\tthis.mediaStream.removeTrack(oldTrack);\n\t\t\t\tthis.mediaStream.addTrack(newTrack);\n\t\t\t\tthis.onLocalTrackUpdated.emit(newTrack);\n\n\t\t\t\tresolve({ oldTrack: oldTrack, newTrack: newTrack });\n\t\t\t} catch (error) {\n\t\t\t\treject(this.parseError(error, 'Video'));\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic updateAudioTrack(\n\t\texactID: string | null = 'default',\n\t\tconstraints?: MediaTrackConstraints,\n\t): Promise<{ oldTrack: MediaStreamTrack; newTrack: MediaStreamTrack }> {\n\t\tconst builder = {\n\t\t\taudio: constraints || this.getAudioConstraints(exactID),\n\t\t\tvideo: false,\n\t\t};\n\n\t\treturn new Promise(async (resolve, reject) => {\n\t\t\ttry {\n\t\t\t\tconst oldTrack = this.mediaStream.getAudioTracks()[0];\n\t\t\t\tif (platform.name === 'Firefox')\n\t\t\t\t\t// Here for firefox, to prevent bug, sound will be abrupted\n\t\t\t\t\tthis.removeOldAudioTrack(oldTrack);\n\n\t\t\t\tconst stream: MediaStream = await this.getMediaStream(builder);\n\t\t\t\tconst newTrack: MediaStreamTrack = stream.getAudioTracks()[0];\n\n\t\t\t\tnewTrack.enabled = oldTrack.enabled;\n\n\t\t\t\tif (platform.name !== 'Firefox')\n\t\t\t\t\t// Here for non firefox, sound not abrupted\n\t\t\t\t\tthis.removeOldAudioTrack(oldTrack);\n\n\t\t\t\tthis.mediaStream.addTrack(newTrack);\n\n\t\t\t\tresolve({ oldTrack: oldTrack, newTrack: newTrack });\n\t\t\t} catch (error) {\n\t\t\t\treject(this.parseError(error, 'Audio'));\n\t\t\t}\n\t\t});\n\t}\n\n\tprivate removeOldAudioTrack(track: MediaStreamTrack) {\n\t\t// 2018-10-09: Firefox cant access new audiostream unless the old is removed before.\n\t\ttrack.onended = null;\n\t\ttrack.stop();\n\t\tthis.mediaStream.removeTrack(track);\n\t}\n\n\tpublic async attachSinkId(element, sinkId) {\n\t\tif (typeof element.sinkId !== 'undefined') {\n\t\t\ttry {\n\t\t\t\tawait element.setSinkId(sinkId);\n\n\t\t\t\tconsole.log('Success, audio output device attached');\n\t\t\t} catch (error) {\n\t\t\t\tthis.parseError(error, 'SinkId');\n\t\t\t}\n\t\t} else {\n\t\t\tconsole.warn('Browser does not support output device selection.');\n\t\t}\n\t}\n\n\tpublic async deviceChange() {\n\t\ttry {\n\t\t\tlet status = '';\n\t\t\tlet statusState = '';\n\t\t\tlet deviceId = 'default';\n\t\t\tconst updatedDevices = await this.getDeviceList();\n\t\t\tconst [removed] = Object.keys(updatedDevices).filter((device) => updatedDevices[device].length < this.devices[device].length);\n\t\t\tconst [added] = Object.keys(updatedDevices).filter((device) => {\n\t\t\t\tif (updatedDevices[device].length > this.devices[device].length) {\n\t\t\t\t\tdeviceId = updatedDevices[device].filter((d) => !this.devices[device].find((e) => e.deviceId === d.deviceId))[0]\n\t\t\t\t\t\t.deviceId;\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\t\t\t});\n\n\t\t\tif (typeof added !== 'undefined') {\n\t\t\t\tstatus = added;\n\t\t\t\tstatusState = 'added';\n\t\t\t}\n\n\t\t\tif (typeof removed !== 'undefined') {\n\t\t\t\tstatus = removed;\n\t\t\t\tstatusState = 'removed';\n\t\t\t}\n\t\t\tif (this.mediaStream !== null) {\n\t\t\t\tswitch (status) {\n\t\t\t\t\tcase 'videoinput':\n\t\t\t\t\t\tthis.chosenVideoinputDeviceId = deviceId;\n\t\t\t\t\t\tthis.onUpdateActiveDevices.emit({ device: status, state: statusState as any });\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'audioinput':\n\t\t\t\t\t\tthis.chosenAudioinputDeviceId = deviceId;\n\t\t\t\t\t\tthis.onUpdateActiveDevices.emit({ device: status, state: statusState as any });\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'audiooutput':\n\t\t\t\t\t\tthis.chosenAudiooutputDeviceId = deviceId;\n\t\t\t\t\t\tthis.onUpdateActiveDevices.emit({ device: status, state: statusState as any });\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.devices = updatedDevices;\n\t\t\tthis.onDeviceChange.emit();\n\t\t} catch (error) {\n\t\t\tthis.parseError(error);\n\t\t}\n\t}\n\n\tpublic parseError(error: any, id = 'Generic', popup = true): { code: string; translated: string; source: string } {\n\t\tlet message = '';\n\t\tconst { name } = error;\n\t\tconst messagePrefix = 'Common.Devices.Error.';\n\n\t\tswitch (name) {\n\t\t\t/* \t\tcase 'NotFoundError':\n\t\t\t\tmessage = `${messagePrefix}${id}.NotFound`;\n\n\t\t\t\tbreak;\n\t\t\tcase 'DevicesNotFoundError':\n\t\t\t\tmessage = `${messagePrefix}${id}.NotFound`;\n\n\t\t\t\tbreak; */\n\t\t\t/* \t\t\tcase 'NotReadableError':\n\t\t\t\tmessage = `${messagePrefix}${id}.SourceUnavailable`;\n\n\t\t\t\tbreak; */\n\t\t\t/* \t\tcase 'SourceUnavailableError':\n\t\t\t\tmessage = `${messagePrefix}${id}.SourceUnavailable`;\n\n\t\t\t\tbreak; */\n\t\t\tcase 'PermissionDeniedError':\n\t\t\t\tmessage = `${messagePrefix}${id}.PermissionDenied`;\n\n\t\t\t\tbreak;\n\t\t\tcase 'NotAllowedError':\n\t\t\t\tmessage = `${messagePrefix}${id}.PermissionDenied`;\n\n\t\t\t\tbreak;\n\t\t\tcase 'SecurityError':\n\t\t\t\tmessage = `${messagePrefix}${id}.PermissionDenied`;\n\n\t\t\t\tbreak;\n\t\t\t/* \t\tcase 'OverconstrainedError':\n\t\t\t\tmessage = `${messagePrefix}${id}.Overconstrained`;\n\n\t\t\t\tbreak; */\n\t\t\t/* \t\t\tcase 'SecurityError':\n\t\t\t\tmessage = 'You need to use HTTPS for selecting audio output';\n\n\t\t\t\tbreak; */\n\t\t\tdefault:\n\t\t\t\tmessage = `${messagePrefix}${id}.Unsorted`;\n\n\t\t\t\tbreak;\n\t\t}\n\n\t\tconst errorMessage = {\n\t\t\ttranslated: message,\n\t\t\tcode: name,\n\t\t\tsource: id,\n\t\t};\n\n\t\t// These are the errors currently replaced in new patient web/retina. Suppress them.\n\t\t// This is a quick and dirty way of disabling these until the whole file can be deleted.\n\t\tconst errorsReplacedInNewCall = ['NotFoundError', 'DevicesNotFoundError'];\n\n\t\tif (popup && !errorsReplacedInNewCall.some((error) => error === name)) {\n\t\t\tthis.addPopup(errorMessage);\n\t\t}\n\n\t\tthis._spaLogger.log(\n\t\t\t'Debug',\n\t\t\t['Public'],\n\t\t\t`${error.name}: ${id} | ${error['message']}`,\n\t\t\t{ Url: window.location.href, LicensHolderId: this._spaContext.unitConfig.LicenceHolder.Id, ErrorType: error.name },\n\t\t\terror.stack,\n\t\t);\n\n\t\treturn errorMessage;\n\t}\n\n\tpublic closeStreams() {\n\t\tif (!this.mediaStream) return;\n\n\t\tthis.mediaStream.getTracks().forEach((track) => {\n\t\t\ttrack.onended = null;\n\t\t\ttrack.stop();\n\t\t});\n\n\t\tthis.mediaStream = null;\n\t\tthis.newStreamSessionID();\n\t}\n\n\tpublic clearPopups() {\n\t\twhile (this.popupList.length) {\n\t\t\tlet popup = this.popupList.pop();\n\t\t\tpopup.destroy();\n\t\t}\n\t}\n\n\tprivate addPopup(message: { code: string; translated: string; source: string }) {\n\t\tconst popup = new VisibaPopup(\n\t\t\tthis.translateService.get(`Common.Devices.Error.${message.source}`),\n\t\t\tthis.translateService.get(message.translated),\n\t\t)\n\t\t\t.persistant()\n\t\t\t.inform(this.translateService.get('Common.Button.OK'));\n\n\t\tthis.popupList.push(popup);\n\n\t\tif (this.popupList.length === 1) {\n\t\t\tpopup\n\t\t\t\t.attatch()\n\t\t\t\t.observer()\n\t\t\t\t.subscribe((ok) => {\n\t\t\t\t\tthis.nextPopup();\n\t\t\t\t});\n\t\t}\n\t}\n\n\tprivate getCameraConstraints(exactID: string | null) {\n\t\tif (exactID === null || typeof exactID === 'undefined') exactID = 'default';\n\n\t\tconst trackConstraints: MediaTrackConstraints = {\n\t\t\twidth: { max: 1280 },\n\t\t\theight: { max: 720 },\n\t\t\tdeviceId: exactID !== 'default' ? { exact: exactID } : undefined,\n\t\t};\n\n\t\treturn trackConstraints;\n\t}\n\n\tprivate getAudioConstraints(exactID: string | null) {\n\t\tif (exactID === null || typeof exactID === 'undefined') exactID = 'default';\n\n\t\tconst trackConstraints: MediaTrackConstraints = {\n\t\t\tdeviceId: exactID !== 'default' ? { exact: exactID } : undefined,\n\t\t};\n\n\t\treturn trackConstraints;\n\t}\n\n\tprivate nextPopup() {\n\t\tconst popup = this.popupList.shift();\n\n\t\tif (this.popupList.length > 0) {\n\t\t\tthis.popupList[0]\n\t\t\t\t.attatch()\n\t\t\t\t.observer()\n\t\t\t\t.subscribe((ok) => {\n\t\t\t\t\tthis.nextPopup();\n\t\t\t\t});\n\t\t}\n\t}\n}\n","import { Subscription } from 'rxjs';\nimport { Component, Input, Output, ViewChild, EventEmitter, NgZone, ViewEncapsulation } from '@angular/core';\nimport { VisibaAudioAnalyser } from './mediaTest.component';\nimport { UserMedia } from '../Classes/UserMedia';\nimport { SpaContext } from '../Classes/spacontext';\nimport { Helper } from '../Common/Helpers/helper';\nimport { TranslateService } from '../Common/Services/translate.service';\nimport { AudioPlayerService } from '../Common/Services/audioPlayer.service';\nimport { SpaLogger } from '../Common/Classes/Global/spalogger.class';\nimport { CookieHelper } from '../Common/Helpers/cookie.helper';\n\n@Component({\n\tstandalone: false,\n\tselector: 'media-test-mini',\n\ttemplate: /*language=html*/ `\n\t\t<div class=\"row\" [hidden]=\"currentStates.camera === 'none'\">\n\t\t\t<!-- Evaluation message -->\n\t\t\t<div *ngIf=\"showCompleted === true\">\n\t\t\t\t<div class=\"testEvaluation\">\n\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t<div class=\"switchContentHolder\">\n\t\t\t\t\t\t\t<div class=\"switchContent evaluation_start\">\n\t\t\t\t\t\t\t\t<visiba-succesBox\n\t\t\t\t\t\t\t\t\t*ngIf=\"showCompleted === true\"\n\t\t\t\t\t\t\t\t\ttitle=\"{{ 'LicenceHolder.Component.MediaTestMini.Title.Done' | translate }}\"\n\t\t\t\t\t\t\t\t\tinfo=\"{{ evaluationText }}\"\n\t\t\t\t\t\t\t\t\tbutton=\"{{ 'LicenceHolder.Component.MediaTestMini.Button.Done' | translate }}\"\n\t\t\t\t\t\t\t\t\t(onToggle)=\"onEvaluationNextFunction()\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t</visiba-succesBox>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class=\"tests\" [hidden]=\"showCompleted\">\n\t\t\t\t<!-- Camera -->\n\t\t\t\t<div class=\"testBox\">\n\t\t\t\t\t<div class=\"testCamera js-test-camera\">\n\t\t\t\t\t\t<div class=\"inner\">\n\t\t\t\t\t\t\t<visiba-svg a=\"CameraCircleOn\" class=\"testIcon\"></visiba-svg>\n\t\t\t\t\t\t\t<div class=\"switchContentHolder\">\n\t\t\t\t\t\t\t\t<div class=\"switchContent camera_start\" *ngIf=\"currentStates['camera'] === 'start'\">\n\t\t\t\t\t\t\t\t\t<h2 class=\"title\">{{ 'LicenceHolder.Component.MediaTestMini.Title.Video' | translate }}</h2>\n\t\t\t\t\t\t\t\t\t<p class=\"desc\">{{ 'LicenceHolder.Component.MediaTestMini.Phrase.TestVideo' | translate }}</p>\n\n\t\t\t\t\t\t\t\t\t<div class=\"btnWrapper\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"btn\" (click)=\"setCurrentState('camera', 'failed')\">{{ 'Common.Button.No' | translate }}</div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"btn\" (click)=\"setCurrentState('camera', 'completed')\">\n\t\t\t\t\t\t\t\t\t\t\t{{ 'Common.Button.Yes' | translate }}\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class=\"switchContent camera_failed\" *ngIf=\"currentStates['camera'] === 'failed'\">\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2 class=\"title\">{{ 'LicenceHolder.Component.MediaTestMini.Title.Video' | translate }}</h2>\n\t\t\t\t\t\t\t\t\t\t<p class=\"desc\">{{ 'LicenceHolder.Component.MediaTestMini.Phrase.VideoHelp' | translate }}</p>\n\n\t\t\t\t\t\t\t\t\t\t<div class=\"btnWrapper\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"btn\" (click)=\"setCurrentState('camera', 'failed')\">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ 'Common.Button.No' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"btn\" (click)=\"setCurrentState('camera', 'completed')\">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ 'Common.Button.Yes' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class=\"switchContent camera_completed\" *ngIf=\"currentStates['camera'] === 'completed'\">\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2 class=\"title\">{{ 'LicenceHolder.Component.MediaTestMini.Title.Video' | translate }}</h2>\n\t\t\t\t\t\t\t\t\t\t<p class=\"desc\">{{ 'LicenceHolder.Component.MediaTestMini.Phrase.Functional' | translate }}</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"innerColumn\" *ngIf=\"currentStates['camera'] !== 'completed'\">\n\t\t\t\t\t\t\t<div class=\"portrait\">\n\t\t\t\t\t\t\t\t<div class=\"videoWrap\">\n\t\t\t\t\t\t\t\t\t<video autoplay=\"autoplay\" style=\"width: 100%; display: none;\" [ngStyle]=\"localVideoStyle\"></video>\n\n\t\t\t\t\t\t\t\t\t<visiba-svg a=\"Loader\" class=\"videoLoaderIcon\"></visiba-svg>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<visiba-select\n\t\t\t\t\t\t\t\t*ngIf=\"currentStates['camera'] !== 'completed' && devices.videoinput.length > 0\"\n\t\t\t\t\t\t\t\ticon=\"CameraCircleOn\"\n\t\t\t\t\t\t\t\t(onChange)=\"updateVideo($event)\"\n\t\t\t\t\t\t\t\t[(ngModel)]=\"chosenVideoinputDeviceId\"\n\t\t\t\t\t\t\t\tplaceholder=\"Common.Devices.Videoinput\"\n\t\t\t\t\t\t\t\tlabel=\"label\"\n\t\t\t\t\t\t\t\tvalue=\"deviceId\"\n\t\t\t\t\t\t\t\t[options]=\"devices.videoinput\"\n\t\t\t\t\t\t\t\t[clearButton]=\"false\"\n\t\t\t\t\t\t\t></visiba-select>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"statusIconArea\">\n\t\t\t\t\t\t\t<visiba-svg a=\"Check\" class=\"statusIcon check\" [class.show]=\"currentStates['camera'] === 'completed'\"></visiba-svg>\n\t\t\t\t\t\t\t<visiba-svg a=\"Warning\" class=\"statusIcon warning\" [class.show]=\"currentStates['camera'] === 'failed'\"></visiba-svg>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- Microphone -->\n\t\t\t\t<div class=\"testBox\">\n\t\t\t\t\t<div class=\"testMicrophone js-test-microphone\">\n\t\t\t\t\t\t<div class=\"inner\">\n\t\t\t\t\t\t\t<div class=\"iconWrapper\">\n\t\t\t\t\t\t\t\t<visiba-svg a=\"MicrophoneCircleOn\" class=\"testIcon\"></visiba-svg>\n\t\t\t\t\t\t\t\t<div class=\"circlesWrapper\">\n\t\t\t\t\t\t\t\t\t<div class=\"svgbg\"></div>\n\t\t\t\t\t\t\t\t\t<div class=\"circles\"></div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"switchContentHolder\">\n\t\t\t\t\t\t\t\t<div class=\"switchContent microphone_start\" *ngIf=\"currentStates['microphone'] === 'start'\">\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2 class=\"title\">{{ 'LicenceHolder.Component.MediaTestMini.Title.Microphone' | translate }}</h2>\n\t\t\t\t\t\t\t\t\t\t<p class=\"desc\">{{ 'LicenceHolder.Component.MediaTestMini.Phrase.TestMicrophone' | translate }}</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"switchContent microphone_failed\" *ngIf=\"currentStates['microphone'] === 'failed'\">\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2 class=\"title\">{{ 'LicenceHolder.Component.MediaTestMini.Title.Microphone' | translate }}</h2>\n\t\t\t\t\t\t\t\t\t\t<p class=\"desc\">\n\t\t\t\t\t\t\t\t\t\t\t<visiba-svg a=\"Warning\"></visiba-svg\n\t\t\t\t\t\t\t\t\t\t\t>{{ 'LicenceHolder.Component.MediaTestMini.Phrase.MicrophoneHelp' | translate }}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"switchContent microphone_completed\" *ngIf=\"currentStates['microphone'] === 'completed'\">\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2 class=\"title\">{{ 'LicenceHolder.Component.MediaTestMini.Title.Microphone' | translate }}</h2>\n\t\t\t\t\t\t\t\t\t\t<p class=\"desc\">{{ 'LicenceHolder.Component.MediaTestMini.Phrase.Functional' | translate }}</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"innerColumn\" *ngIf=\"currentStates['microphone'] !== 'completed' && devices.audioinput.length > 0\">\n\t\t\t\t\t\t\t<visiba-select\n\t\t\t\t\t\t\t\ticon=\"MicrophoneCircleOn\"\n\t\t\t\t\t\t\t\t(onChange)=\"updateAudioInput($event)\"\n\t\t\t\t\t\t\t\t[(ngModel)]=\"chosenAudioinputDeviceId\"\n\t\t\t\t\t\t\t\tplaceholder=\"Common.Devices.Audioinput\"\n\t\t\t\t\t\t\t\tlabel=\"label\"\n\t\t\t\t\t\t\t\tvalue=\"deviceId\"\n\t\t\t\t\t\t\t\t[options]=\"devices.audioinput\"\n\t\t\t\t\t\t\t\t[clearButton]=\"false\"\n\t\t\t\t\t\t\t></visiba-select>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"statusIconArea\">\n\t\t\t\t\t\t\t<visiba-svg a=\"Check\" class=\"statusIcon check\" [class.show]=\"currentStates['microphone'] === 'completed'\"></visiba-svg>\n\t\t\t\t\t\t\t<visiba-svg a=\"Warning\" class=\"statusIcon warning\" [class.show]=\"currentStates['microphone'] === 'failed'\"></visiba-svg>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- Sound -->\n\t\t\t\t<div class=\"testBox\">\n\t\t\t\t\t<div class=\"testSound js-test-sound\">\n\t\t\t\t\t\t<div class=\"inner\">\n\t\t\t\t\t\t\t<div class=\"iconWrapper\">\n\t\t\t\t\t\t\t\t<visiba-svg a=\"SpeakerCircle\" class=\"testIcon\" (click)=\"toggleTestSound()\"></visiba-svg>\n\t\t\t\t\t\t\t\t<div class=\"circlesWrapper\">\n\t\t\t\t\t\t\t\t\t<div class=\"svgbg\"></div>\n\t\t\t\t\t\t\t\t\t<div class=\"circles\"></div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"switchContentHolder\">\n\t\t\t\t\t\t\t\t<div class=\"switchContent sound_start\" *ngIf=\"currentStates['sound'] === 'start'\">\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2 class=\"title\">{{ 'LicenceHolder.Component.MediaTestMini.Title.Audio' | translate }}</h2>\n\t\t\t\t\t\t\t\t\t\t<p class=\"desc\">{{ 'LicenceHolder.Component.MediaTestMini.Phrase.TestAudio' | translate }}</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"btnWrapper\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"btn span6\" (click)=\"setCurrentState('sound', 'failed')\">\n\t\t\t\t\t\t\t\t\t\t\t{{ 'Common.Button.No' | translate }}\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"btn span6 offset1\" (click)=\"setCurrentState('sound', 'completed'); pauseAudio()\">\n\t\t\t\t\t\t\t\t\t\t\t{{ 'Common.Button.Yes' | translate }}\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"switchContent sound_failed\" *ngIf=\"currentStates['sound'] === 'failed'\">\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2 class=\"title\">{{ 'LicenceHolder.Component.MediaTestMini.Title.Audio' | translate }}</h2>\n\t\t\t\t\t\t\t\t\t\t<p class=\"desc\">{{ 'LicenceHolder.Component.MediaTestMini.Phrase.AudioHelp' | translate }}</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"btnWrapper\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"btn span6\" (click)=\"setCurrentState('sound', 'failed')\">\n\t\t\t\t\t\t\t\t\t\t\t{{ 'Common.Button.No' | translate }}\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"btn span6 offset1\" (click)=\"setCurrentState('sound', 'completed'); pauseAudio()\">\n\t\t\t\t\t\t\t\t\t\t\t{{ 'Common.Button.Yes' | translate }}\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"switchContent sound_completed\" *ngIf=\"currentStates['sound'] === 'completed'\">\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2 class=\"title\">{{ 'LicenceHolder.Component.MediaTestMini.Title.Audio' | translate }}</h2>\n\t\t\t\t\t\t\t\t\t\t<p class=\"desc\">{{ 'LicenceHolder.Component.MediaTestMini.Phrase.Functional' | translate }}</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"innerColumn\" *ngIf=\"currentStates['sound'] !== 'completed' && devices.audiooutput.length > 0 && false\">\n\t\t\t\t\t\t\t<visiba-select\n\t\t\t\t\t\t\t\ticon=\"Megaphone\"\n\t\t\t\t\t\t\t\t(onChange)=\"updateAudioOutput($event)\"\n\t\t\t\t\t\t\t\t[(ngModel)]=\"chosenAudiooutputDeviceId\"\n\t\t\t\t\t\t\t\tplaceholder=\"Common.Devices.Audiooutput\"\n\t\t\t\t\t\t\t\tlabel=\"label\"\n\t\t\t\t\t\t\t\tvalue=\"deviceId\"\n\t\t\t\t\t\t\t\t[options]=\"devices.audiooutput\"\n\t\t\t\t\t\t\t\t[clearButton]=\"false\"\n\t\t\t\t\t\t\t></visiba-select>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"statusIconArea\">\n\t\t\t\t\t\t\t<visiba-svg a=\"Check\" class=\"statusIcon check\" [class.show]=\"currentStates['sound'] === 'completed'\"></visiba-svg>\n\t\t\t\t\t\t\t<visiba-svg a=\"Warning\" class=\"statusIcon warning\" [class.show]=\"currentStates['sound'] === 'failed'\"></visiba-svg>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- Network -->\n\t\t\t\t<div class=\"testBox\">\n\t\t\t\t\t<div class=\"testNetwork js-test-network\">\n\t\t\t\t\t\t<div class=\"inner\">\n\t\t\t\t\t\t\t<visiba-svg a=\"WifiCircle\" class=\"testIcon\"></visiba-svg>\n\t\t\t\t\t\t\t<div class=\"switchContentHolder\">\n\t\t\t\t\t\t\t\t<div class=\"switchContent network_start\" *ngIf=\"currentStates['network'] === 'start'\">\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2 class=\"title\">{{ 'LicenceHolder.Component.MediaTestMini.Title.Network' | translate }}</h2>\n\t\t\t\t\t\t\t\t\t\t<p class=\"desc\">{{ 'LicenceHolder.Component.MediaTestMini.Phrase.TestNetwork' | translate }}</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"switchContent network_failed\" *ngIf=\"currentStates['network'] === 'failed'\">\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2 class=\"title\">{{ 'LicenceHolder.Component.MediaTestMini.Title.Network' | translate }}</h2>\n\t\t\t\t\t\t\t\t\t\t<p class=\"desc\">{{ 'LicenceHolder.Component.MediaTestMini.Phrase.NetworkHelp' | translate }}</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"switchContent network_completed\" *ngIf=\"currentStates['network'] === 'completed'\">\n\t\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t\t<h2 class=\"title\">{{ 'LicenceHolder.Component.MediaTestMini.Title.Network' | translate }}</h2>\n\t\t\t\t\t\t\t\t\t\t<p class=\"desc\">{{ 'LicenceHolder.Component.MediaTestMini.Phrase.Functional' | translate }}</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"statusIconArea\">\n\t\t\t\t\t\t\t<visiba-svg a=\"Check\" class=\"statusIcon check\" [class.show]=\"currentStates['network'] === 'completed'\"></visiba-svg>\n\t\t\t\t\t\t\t<visiba-svg a=\"Warning\" class=\"statusIcon warning\" [class.show]=\"currentStates['network'] === 'failed'\"></visiba-svg>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t`,\n\tstyleUrls: ['../Css/Components/MediaTestMini.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class MediaTestMiniComponent extends UserMedia {\n\t@Output() stateUpdate = new EventEmitter();\n\t@Input('openOnStart') openOnStart: boolean = true;\n\t@Input('stream') activeStream?: MediaStream = null;\n\n\tcurrentStates = {\n\t\tcamera: 'none',\n\t\tmicrophone: 'none',\n\t\tsound: 'none',\n\t\tnetwork: 'none',\n\t};\n\n\tshowCompleted: boolean = false;\n\tlocalVideoStyle: any = {};\n\tmicAnalyser = null;\n\ttestSoundAnalyser: VisibaAudioAnalyser = null;\n\tevaluationText: string = this._translateService.get('LicenceHolder.Component.MediaTestMini.Phrase.DonePaymentMessage');\n\taudioContext: AudioContext;\n\tstreamInited: boolean = false;\n\tisDestroyed: boolean = false;\n\tisReady: boolean = false;\n\tstartedQueued: boolean = false;\n\ttests: { [name: string]: TestState } = {\n\t\taudio: 'none',\n\t\tvideo: 'none',\n\t\tmicrophone: 'none',\n\t\tnetwork: 'completed',\n\t};\n\tprivate updateActiveDevices: Subscription;\n\n\tconstructor(\n\t\tprivate _translateService: TranslateService,\n\t\tprivate _audioPlayerService: AudioPlayerService,\n\t\tprivate _ngZone: NgZone,\n\t\tpublic _spaLogger: SpaLogger,\n\t\tpublic _spaContext: SpaContext,\n\t\tprivate helper: Helper,\n\t) {\n\t\tsuper(_spaLogger, _spaContext, _translateService);\n\n\t\tthis.updateActiveDevices = this.onUpdateActiveDevices.subscribe((update) => {\n\t\t\tthis._ngZone.run(() => {\n\t\t\t\tconst { device } = update;\n\t\t\t\tconst deviceViewState = update.state === 'removed' ? 'failed' : 'start';\n\n\t\t\t\tswitch (device) {\n\t\t\t\t\tcase 'videoinput':\n\t\t\t\t\t\tthis.updateVideo(this.chosenVideoinputDeviceId);\n\t\t\t\t\t\tthis.setCurrentState('camera', deviceViewState);\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'audioinput':\n\t\t\t\t\t\tthis.updateAudioInput(this.chosenAudioinputDeviceId);\n\t\t\t\t\t\tthis.setCurrentState('microphone', deviceViewState);\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'audiooutput':\n\t\t\t\t\t\tthis.updateAudioOutput(this.chosenAudiooutputDeviceId);\n\t\t\t\t\t\tthis.setCurrentState('sound', deviceViewState);\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\tngOnInit() {\n\t\tif (this.openOnStart === true) {\n\t\t\tthis.start();\n\t\t}\n\t}\n\n\tngAfterViewInit() {\n\t\twindow.setTimeout(() => {\n\t\t\tthis.isReady = true;\n\t\t\tif (this.startedQueued === true) {\n\t\t\t\tthis.start();\n\t\t\t}\n\t\t}, 500);\n\t}\n\n\tngOnDestroy() {\n\t\tthis.stopStream();\n\t\tthis.isDestroyed = true;\n\t\tthis.updateActiveDevices.unsubscribe();\n\t}\n\n\tsetCurrentState(object: string, state: TestState) {\n\t\tif (this.currentStates[object] === state) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.currentStates[object] = state;\n\n\t\tlet completed = null;\n\n\t\tif (state === 'completed' && object !== 'evaluation') {\n\t\t\tif (\n\t\t\t\tthis.currentStates['camera'] === 'completed' &&\n\t\t\t\tthis.currentStates['microphone'] === 'completed' &&\n\t\t\t\tthis.currentStates['sound'] === 'completed' &&\n\t\t\t\tthis.currentStates['network'] === 'completed'\n\t\t\t) {\n\t\t\t\tthis.setCurrentState('evaluation', 'start');\n\t\t\t\tthis.helper.cookie.create('X-App-MediaTest', 'true');\n\t\t\t\tthis.showCompleted = true;\n\t\t\t\tthis.onEvaluationCompleteFunction();\n\t\t\t}\n\t\t\tcompleted = 0;\n\t\t\tObject.keys(this.currentStates).forEach((i) => {\n\t\t\t\tif (this.currentStates[i] === 'completed') completed++;\n\t\t\t});\n\t\t}\n\t\tthis.stateUpdate.emit({\n\t\t\tcompleted: completed,\n\t\t\ttotal: Object.keys(this.currentStates).length,\n\t\t\ttests: this.currentStates,\n\t\t\tdevices: { microphone: this.chosenAudioinputDeviceId, video: this.chosenVideoinputDeviceId },\n\t\t});\n\t}\n\n\tfindAncestor(el, cls) {\n\t\twhile ((el = el.parentElement) && !el.classList.contains(cls));\n\t\treturn el;\n\t}\n\n\tpublic start(): void {\n\t\tthis.mediaStream = null;\n\t\tthis.micAnalyser = null;\n\t\tthis.testSoundAnalyser = null;\n\t\tthis.audioContext = null;\n\t\tthis.streamInited = false;\n\t\tthis.isDestroyed = false;\n\n\t\tif (!this.isReady) {\n\t\t\tthis.startedQueued = true;\n\t\t\treturn;\n\t\t}\n\t\tthis.startedQueued = false;\n\n\t\tthis.setCurrentState('camera', 'start');\n\t\tthis.setCurrentState('microphone', 'start');\n\t\tthis.setCurrentState('sound', 'start');\n\t\tthis.setCurrentState('network', 'completed');\n\n\t\tif (this.helper.is.webRtcCompatable() && this.streamInited === false) {\n\t\t\tthis.activeStream === null ? this.getStream() : this.useStream(this.activeStream);\n\t\t}\n\t}\n\n\tpublic startIfNeeded(): boolean {\n\t\tif (this.helper.cookie.get('X-App-MediaTest') === null) {\n\t\t\tthis.start();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tpublic setEvaluation(\n\t\tevaluationText?: string,\n\t\tonEvaluationNextFunction?: () => void,\n\t\tonEvaluationCompleteFunction?: () => void,\n\t): void {\n\t\tthis.evaluationText = evaluationText || this.evaluationText;\n\t\tthis.onEvaluationNextFunction = onEvaluationNextFunction || this.onEvaluationCompleteFunction;\n\t\tthis.onEvaluationCompleteFunction = onEvaluationCompleteFunction || this.onEvaluationCompleteFunction;\n\t}\n\n\tpublic close(): void {\n\t\tthis.setCurrentState('camera', 'none');\n\t\tthis.setCurrentState('microphone', 'none');\n\t\tthis.setCurrentState('sound', 'none');\n\t\tthis.setCurrentState('network', 'none');\n\t\tthis.setCurrentState('evaluation', 'none');\n\t\tthis.showCompleted = false;\n\t\tthis.stopStream();\n\t}\n\n\tpublic stopStream() {\n\t\tif (this.mediaStream === null || this.activeStream !== null) return;\n\n\t\tif (this.audioContext !== null && typeof this.audioContext !== 'undefined') {\n\t\t\tthis.audioContext.close();\n\t\t\tdelete window['javascriptNode'];\n\t\t\tdelete this.audioContext;\n\t\t}\n\t\tif (this.mediaStream !== null && typeof this.mediaStream !== 'undefined') {\n\t\t\tlet tracks: MediaStreamTrack[] = this.mediaStream.getTracks();\n\t\t\tfor (let i in tracks) {\n\t\t\t\ttracks[i].stop();\n\t\t\t\tthis.mediaStream.removeTrack(tracks[i]);\n\t\t\t}\n\t\t\tdelete this.mediaStream;\n\t\t}\n\t}\n\n\tasync getStream() {\n\t\tthis.streamInited = true;\n\t\tconst constraints: MediaStreamConstraints = {\n\t\t\taudio: true,\n\t\t\tvideo: {\n\t\t\t\twidth: 1280,\n\t\t\t\theight: 720,\n\t\t\t\tframeRate: 24,\n\t\t\t},\n\t\t};\n\n\t\ttry {\n\t\t\tconst mediaStream = await this.getMediaStream(constraints);\n\t\t\tthis.devices = await this.getDeviceList();\n\n\t\t\tif (this.isDestroyed) {\n\t\t\t\tthis.mediaStream = mediaStream;\n\t\t\t\tthis.stopStream();\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.stopStream();\n\n\t\t\tthis.mediaStream = mediaStream;\n\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tthis.bindStream();\n\t\t\t});\n\t\t} catch (error) {\n\t\t\tthis.parseError(error, 'MediaStream');\n\t\t\tthis.streamInited = false;\n\t\t}\n\t}\n\n\tasync updateAudioInput(trackID: string) {\n\t\ttry {\n\t\t\tawait this.updateAudioTrack(trackID);\n\n\t\t\tthis.checkMicrophone();\n\t\t} catch (error) {}\n\t}\n\n\tasync updateVideo(trackID: string) {\n\t\ttry {\n\t\t\tawait this.updateVideoTrack(trackID);\n\t\t} catch (error) {}\n\t}\n\n\tasync updateAudioOutput(sinkId: string) {\n\t\tthis._audioPlayerService.attachSinkId('/Images/Public/soundtest.mp3', sinkId);\n\t}\n\n\tasync useStream(stream: MediaStream) {\n\t\ttry {\n\t\t\tthis.mediaStream = stream;\n\t\t\tthis.devices = await this.getDeviceList();\n\n\t\t\tthis.bindStream();\n\n\t\t\tthis.streamInited = true;\n\t\t} catch (error) {\n\t\t\tconsole.error(error);\n\t\t\tthis.streamInited = false;\n\t\t}\n\t}\n\n\tbindStream() {\n\t\tif (document.querySelector('.testCamera .videoLoaderIcon') !== null)\n\t\t\tdocument.querySelector('.testCamera .videoLoaderIcon').remove();\n\n\t\tlet element = document.querySelector('.testCamera video') as HTMLVideoElement;\n\t\telement.muted = true;\n\t\telement.style.display = 'block';\n\t\telement.srcObject = this.mediaStream;\n\n\t\telement.addEventListener(\n\t\t\t'loadedmetadata',\n\t\t\t(e) => {\n\t\t\t\tthis.setLocalVideoSize();\n\t\t\t},\n\t\t\tfalse,\n\t\t);\n\n\t\tthis.checkMicrophone();\n\t}\n\tsetLocalVideoSize() {\n\t\tlet el: HTMLVideoElement = document.querySelector('.testCamera video') as HTMLVideoElement;\n\t\tif (el === null) return;\n\n\t\tif (el.videoWidth > el.videoHeight) {\n\t\t\tlet ratio: number = (el.videoWidth / el.videoHeight) * 100;\n\t\t\tthis.localVideoStyle = {\n\t\t\t\twidth: ratio + '%',\n\t\t\t\tleft: -((ratio - 100) / 2) + '%',\n\t\t\t\tposition: 'absolute',\n\t\t\t};\n\t\t} else {\n\t\t\tlet ratio: number = (el.videoHeight / el.videoWidth) * 100;\n\t\t\tthis.localVideoStyle = {\n\t\t\t\theight: ratio + '%',\n\t\t\t\ttop: -((ratio - 100) / 2) + '%',\n\t\t\t\tposition: 'absolute',\n\t\t\t};\n\t\t}\n\t}\n\ttoggleTestSound() {\n\t\tif (this._audioPlayerService.playing('/Images/Public/soundtest.mp3'))\n\t\t\tthis._audioPlayerService.stop('/Images/Public/soundtest.mp3');\n\t\telse {\n\t\t\tconst audio = this._audioPlayerService.play('/Images/Public/soundtest.mp3');\n\t\t\taudio.onended = () => {\n\t\t\t\tthis.testSoundAnalyser.stop();\n\t\t\t};\n\t\t\tif (this.testSoundAnalyser === null) {\n\t\t\t\tthis.testSoundAnalyser = new VisibaAudioAnalyser(\n\t\t\t\t\taudio,\n\t\t\t\t\tdocument.querySelector('media-test-mini .testSound .circles') as HTMLElement,\n\t\t\t\t\tthis.helper,\n\t\t\t\t);\n\t\t\t\tthis.testSoundAnalyser.init();\n\t\t\t}\n\t\t\twindow.setTimeout(\n\t\t\t\t() => {\n\t\t\t\t\t//.5s for it to buffer on safari, I'm this nice\n\t\t\t\t\tthis.testSoundAnalyser.start();\n\t\t\t\t},\n\t\t\t\tthis.helper.is.safari() ? 500 : 0,\n\t\t\t);\n\t\t}\n\t}\n\n\tpauseAudio() {\n\t\tthis._audioPlayerService.stop('/Images/Public/soundtest.mp3');\n\t}\n\n\t//---- check microphone -----\n\tcheckMicrophone() {\n\t\tif (this.mediaStream.getAudioTracks().length === 0) return;\n\n\t\tif (this.audioContext !== null && typeof this.audioContext !== 'undefined') {\n\t\t\tdocument.querySelector('media-test-mini .testMicrophone .circles').textContent = '';\n\t\t\tthis.audioContext.close();\n\t\t\tdelete window['javascriptNode'];\n\t\t}\n\n\t\tthis.audioContext = new AudioContext();\n\n\t\tconst localMediaStreamID = this.mediaStream.getAudioTracks()[0].id;\n\t\tconst element = document.querySelector('media-test-mini .testMicrophone .circles');\n\t\tconst minAnimCircleSize = 0.4;\n\t\tconst microphone = this.audioContext.createMediaStreamSource(this.mediaStream);\n\t\tconst localMicChecker: number = window.setInterval(() => {\n\t\t\tif (maxLevel < 25) return;\n\n\t\t\tclearInterval(localMicChecker);\n\t\t\tthis.setCurrentState('microphone', 'completed');\n\t\t}, 100);\n\n\t\tconst micCheckerTimeouted: number = window.setTimeout(() => {\n\t\t\tif (maxLevel >= 25) return;\n\n\t\t\tthis.setCurrentState('microphone', 'failed');\n\t\t}, 10 * 1000);\n\t\tlet circles = [];\n\t\tlet maxLevel = 0;\n\n\t\twindow['javascriptNode'] = this.audioContext.createScriptProcessor(1024, 1, 1);\n\n\t\tthis.micAnalyser = this.audioContext.createAnalyser();\n\t\tthis.micAnalyser.smoothingTimeConstant = 0.5;\n\t\tthis.micAnalyser.fftSize = 64;\n\n\t\tconst binCount = this.micAnalyser.frequencyBinCount;\n\t\tconst frequencyData = new Uint8Array(binCount);\n\n\t\tmicrophone.connect(this.micAnalyser);\n\t\tthis.micAnalyser.connect(window['javascriptNode']);\n\t\twindow['javascriptNode'].connect(this.audioContext.destination);\n\n\t\tfor (let i = 0; i < binCount; i++) {\n\t\t\tconst node = document.createElement('div');\n\t\t\tnode.classList.add('circle');\n\t\t\tcircles.push(node);\n\t\t\telement.appendChild(node);\n\t\t}\n\n\t\tconst draw = () => {\n\t\t\tif (\n\t\t\t\tthis.mediaStream === null ||\n\t\t\t\tthis.mediaStream === undefined ||\n\t\t\t\tthis.mediaStream.getAudioTracks().length === 0 ||\n\t\t\t\tlocalMediaStreamID !== this.mediaStream.getAudioTracks()[0].id\n\t\t\t) {\n\t\t\t\tclearInterval(localMicChecker);\n\t\t\t\tclearTimeout(micCheckerTimeouted);\n\t\t\t\tcircles = [];\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.micAnalyser.getByteFrequencyData(frequencyData);\n\n\t\t\tfor (var i = 0; i < circles.length; i++) {\n\t\t\t\tvar circle = circles[i];\n\n\t\t\t\tcircle.style.cssText =\n\t\t\t\t\t'transform:scale(' +\n\t\t\t\t\t((frequencyData[i] / 255) * (1 - minAnimCircleSize) + minAnimCircleSize) +\n\t\t\t\t\t');-webkit-transform:scale(' +\n\t\t\t\t\t((frequencyData[i] / 255) * (1 - minAnimCircleSize) + minAnimCircleSize) +\n\t\t\t\t\t')';\n\t\t\t}\n\n\t\t\tvar sum = 0.0;\n\t\t\tfor (var i = 0; i < frequencyData.length; ++i) sum += frequencyData[i];\n\n\t\t\tvar instant = sum / frequencyData.length;\n\t\t\tmaxLevel = Math.max(maxLevel, instant);\n\n\t\t\twindow.requestAnimationFrame(draw);\n\t\t};\n\t\twindow.requestAnimationFrame(draw);\n\t}\n\n\t// placeholder\n\tonEvaluationNextFunction() {}\n\tonEvaluationCompleteFunction() {}\n}\n\ntype TestState = 'none' | 'failed' | 'completed' | 'start';\n","import { Component, Input, Output, EventEmitter, ViewEncapsulation } from '@angular/core';\nimport { NotificationSettingsService, ComplianceSettings } from '../Services/api/v2/notificationSettings.service';\nimport { SpaEventService } from '../Services/spaEvents.service';\nimport { SpaContext } from '../Classes/spacontext';\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-notification-compliance',\n\ttemplate: `\n\t\t<div class=\"notificationComplianceContainer\" *ngIf=\"notificationSettings\">\n\t\t\t<ng-container *ngIf=\"showConfirmationDialog\">\n\t\t\t\t<h2 class=\"title\">{{ 'Notification.Approval.Dialog.Title' | translate }}</h2>\n\t\t\t\t<p>\n\t\t\t\t\t{{ 'Notification.Approval.Dialog.Body' | translate }}\n\t\t\t\t</p>\n\t\t\t\t<div class=\"row\">\n\t\t\t\t\t<button (click)=\"emitNotificationSettings(false)\" class=\"btn danger\">\n\t\t\t\t\t\t{{ 'Notification.Approval.Dialog.Continue' | translate }}\n\t\t\t\t\t</button>\n\t\t\t\t\t<button (click)=\"showSettingsView()\" class=\"btn\">{{ 'Notification.Approval.Dialog.GoBack' | translate }}</button>\n\t\t\t\t</div>\n\t\t\t</ng-container>\n\t\t\t<ng-container *ngIf=\"!showConfirmationDialog\">\n\t\t\t\t<h2 class=\"title\">{{ 'Notification.Approval.Title' | translate }}</h2>\n\t\t\t\t<p\n\t\t\t\t\tclass=\"infoText\"\n\t\t\t\t\t[innerHtml]=\"\n\t\t\t\t\t\t'Notification.Approval.Body' | translate: { customerName: spaContext.unitConfig.LicenceHolder.DisplayName } | safeHtml\n\t\t\t\t\t\"\n\t\t\t\t></p>\n\t\t\t\t<div class=\"row toggleContainer\">\n\t\t\t\t\t<span class=\"bold\">{{ 'Notification.Approval.ApproveEmail' | translate }}</span>\n\t\t\t\t\t<toggle-switch\n\t\t\t\t\t\t(onChange)=\"setNotificationSetting('email', $event)\"\n\t\t\t\t\t\t[value]=\"notificationSettings.AllowEmail\"\n\t\t\t\t\t></toggle-switch>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"row toggleContainer\">\n\t\t\t\t\t<span class=\"bold\">{{ 'Notification.Approval.ApproveSms' | translate }}</span>\n\t\t\t\t\t<toggle-switch (onChange)=\"setNotificationSetting('sms', $event)\" [value]=\"notificationSettings.AllowSms\"></toggle-switch>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"row\" *ngIf=\"hasError\">\n\t\t\t\t\t<span class=\"error\">{{ 'Common.Error.Retry' | translate }}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"row\">\n\t\t\t\t\t<button (click)=\"emitNotificationSettings()\" class=\"btn sendButton\">{{ 'Common.Button.Save' | translate }}</button>\n\t\t\t\t</div>\n\t\t\t</ng-container>\n\t\t</div>\n\t`,\n\tstyleUrls: ['../Css/Components/notificationCompliance.component.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class NotificationComplianceComponent {\n\t@Output() public onSubmit = new EventEmitter();\n\t@Output() public onCancel = new EventEmitter();\n\tpublic showConfirmationDialog = false;\n\tpublic hasError = false;\n\n\t@Input() public notificationSettings: ComplianceSettings | null = null;\n\n\tconstructor(\n\t\tprivate spaEventsService: SpaEventService,\n\t\tprivate notificationSettingsService: NotificationSettingsService,\n\t\tpublic spaContext: SpaContext,\n\t) {}\n\n\tpublic emitNotificationSettings(checkIfIgnoredSettings = true) {\n\t\tif (checkIfIgnoredSettings && (!this.notificationSettings.AllowSms || !this.notificationSettings.AllowEmail)) {\n\t\t\tthis.showConfirmationDialog = true;\n\t\t\treturn;\n\t\t}\n\t\tthis.hasError = false;\n\n\t\tthis.notificationSettingsService\n\t\t\t.putComplianceSettings({ allowEmail: this.notificationSettings.AllowEmail, allowSms: this.notificationSettings.AllowSms })\n\t\t\t.subscribe(\n\t\t\t\t(response) => {\n\t\t\t\t\tthis.spaEventsService.onNotificationComplianceCompleted.emit();\n\t\t\t\t},\n\t\t\t\t(error) => {\n\t\t\t\t\tthis.hasError = true;\n\t\t\t\t},\n\t\t\t);\n\t}\n\n\tpublic showSettingsView() {\n\t\tthis.showConfirmationDialog = false;\n\t\tthis.onCancel.emit();\n\t}\n\n\tpublic setNotificationSetting(property: string, value: boolean) {\n\t\tif (property === 'sms') {\n\t\t\tthis.notificationSettings.AllowSms = value;\n\t\t}\n\n\t\tif (property === 'email') {\n\t\t\tthis.notificationSettings.AllowEmail = value;\n\t\t}\n\t}\n}\n","import { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport { Component, Input, Output, EventEmitter, ViewEncapsulation } from '@angular/core';\nimport { UntypedFormControl, Validators, UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { PaymentServiceV2 } from '../Services/api/v2/Units/payment.service';\nimport { PaymentServiceApiModel } from '../Services/api/v2/Models/PaymentServiceApiModel';\n\nexport type PaymentStep = 'paymentOptions' | 'paymentFrame' | 'paymentFailed' | 'paymentCompleted' | 'paymentCompletedNoReceipt';\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-payment',\n\ttemplate: /*language=html*/ `\n\t\t<div class=\"paymentBox\" *ngIf=\"paymentData !== null\">\n\t\t\t<div *ngIf=\"currentStep === 'paymentOptions' || prevStep === 'paymentOptions'\" class=\"paymentOptions\">\n\t\t\t\t<form\n\t\t\t\t\tnovalidate\n\t\t\t\t\t(ngSubmit)=\"submitPaymentOptions()\"\n\t\t\t\t\t[formGroup]=\"formPaymentoptions\"\n\t\t\t\t\t[class.ng-submitted]=\"formPaymentoptions['submitted']\"\n\t\t\t\t>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<h2 class=\"paymentTitle\">{{ 'LicenceHolder.VisibaPayment.Title.HowYouWantToPay' | translate }}</h2>\n\t\t\t\t\t\t<p>{{ 'LicenceHolder.VisibaPayment.Phrase.PaymentProviderInfo' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"paymentChoices\">\n\t\t\t\t\t\t<visiba-input\n\t\t\t\t\t\t\tformControlName=\"paymentType\"\n\t\t\t\t\t\t\tvalue=\"Name\"\n\t\t\t\t\t\t\tlabel=\"Name\"\n\t\t\t\t\t\t\t[options]=\"paymentData\"\n\t\t\t\t\t\t\t[(ngModel)]=\"paymentTypeValue\"\n\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t(onChange)=\"onPaymentTypeChange($event)\"\n\t\t\t\t\t\t></visiba-input>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"continueActions\">\n\t\t\t\t\t\t<div class=\"continue\">\n\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn\">{{ 'LicenceHolder.VisibaPayment.Button.ToPayment' | translate }}</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"cancel\" [class.hide]=\"!showCancel\">\n\t\t\t\t\t\t\t<a (click)=\"abort()\">{{ 'Common.Button.Abort' | translate }}</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t</div>\n\n\t\t\t<div *ngIf=\"currentStep === 'paymentFrame' || prevStep === 'paymentFrame'\" class=\"paymentFrame\">\n\t\t\t\t<visiba-svg class=\"loadingIcon\" a=\"Loader\"></visiba-svg>\n\t\t\t\t<iframe [src]=\"paymentUrl\"> </iframe>\n\t\t\t</div>\n\n\t\t\t<div *ngIf=\"currentStep === 'paymentFailed' || prevStep === 'paymentFailed'\" class=\"paymentFailed\">\n\t\t\t\t<div>\n\t\t\t\t\t<visiba-svg a=\"XCircle\"></visiba-svg>\n\t\t\t\t\t<h2 class=\"paymentTitle\">{{ 'LicenceHolder.VisibaPayment.Title.PaymentAborted' | translate }}</h2>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"failedMessage\" [class.span13]=\"showFailedRetryButton\">\n\t\t\t\t\t<p>{{ this.errorMessage }}</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"continueActions\">\n\t\t\t\t\t<div *ngIf=\"showFailedRetryButton\">\n\t\t\t\t\t\t<div class=\"btn\" (click)=\"retry()\">\n\t\t\t\t\t\t\t{{ customFailRetry !== null ? customFailRetry.buttonText : ('LicenceHolder.VisibaPayment.Button.Retry' | translate) }}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"cancel\" [class.hide]=\"!showCancel\">\n\t\t\t\t\t\t<a (click)=\"abort()\">{{ 'Common.Button.Abort' | translate }}</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<ng-container *ngIf=\"showReciept\">\n\t\t\t\t<visiba-succesBox\n\t\t\t\t\tclass=\"paymentCompleted\"\n\t\t\t\t\t*ngIf=\"currentStep === 'paymentCompleted' || prevStep === 'paymentCompleted'\"\n\t\t\t\t\tmode=\"href\"\n\t\t\t\t\t[href]=\"attemptData.receiptUrl\"\n\t\t\t\t\t[title]=\"'LicenceHolder.VisibaPayment.Title.PaymentThanks' | translate\"\n\t\t\t\t\t[info]=\"'LicenceHolder.BookingList.Phrase.BookConfirmation' | translate\"\n\t\t\t\t\t[button]=\"'LicenceHolder.VisibaPayment.Button.GetReceiptAsPdf' | translate\"\n\t\t\t\t\t(onToggle)=\"finish()\"\n\t\t\t\t>\n\t\t\t\t</visiba-succesBox>\n\n\t\t\t\t<visiba-succesBox\n\t\t\t\t\tclass=\"paymentCompleted paymentCompletedNoReceipt\"\n\t\t\t\t\t*ngIf=\"currentStep === 'paymentCompletedNoReceipt' || prevStep === 'paymentCompletedNoReceipt'\"\n\t\t\t\t\tmode=\"none\"\n\t\t\t\t\t[href]=\"null\"\n\t\t\t\t\t[title]=\"'LicenceHolder.VisibaPayment.Title.PaymentThanksNoReceipt' | translate\"\n\t\t\t\t\t[info]=\"'LicenceHolder.VisibaPayment.Phrase.ReceiptSent_' + completedWithMethod | translate\"\n\t\t\t\t\t(onToggle)=\"finish()\"\n\t\t\t\t>\n\t\t\t\t</visiba-succesBox>\n\t\t\t</ng-container>\n\t\t</div>\n\t`,\n\tstyleUrls: ['../Css/Components/visibaPayment.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class VisibaPaymentComponent {\n\t@Output('onAbort') abortEvent: EventEmitter<void> = new EventEmitter<void>();\n\t@Output('onFinish') finishEvent: EventEmitter<void> = new EventEmitter<void>();\n\t@Output('onStepChange') stepChangeEvent = new EventEmitter<{ step: PaymentStep; data: any }>();\n\t@Input('showCancel') showCancel = false;\n\t@Input('billId') billId: number = null;\n\t@Input('showReciept') showReciept = true;\n\n\tpaymentData: PaymentServiceApiModel[] = null;\n\n\tpaymentTypeValue: string = null;\n\tselectedPaymentType: PaymentServiceApiModel = null;\n\tpaymentUrl: any;\n\tcompletedWithMethod: string = null;\n\n\tformPaymentoptions: UntypedFormGroup;\n\terrorMessage: string = null;\n\tshowFailedRetryButton: boolean = true;\n\tcurrentStep: PaymentStep = 'paymentOptions';\n\tprevStep: PaymentStep = 'paymentOptions';\n\tcustomFailRetry: VisibaPaymentComponent.CustomFailRetry = null;\n\n\tattemptData: VisibaPaymentComponent.AttemptData = null;\n\n\tconstructor(\n\t\tprivate _builder: UntypedFormBuilder,\n\t\tprivate _sanitizer: DomSanitizer,\n\t\tprivate _paymentService: PaymentServiceV2,\n\t\tprivate translateService: TranslateService,\n\t) {\n\t\tthis.formPaymentoptions = _builder.group({\n\t\t\tpaymentType: new UntypedFormControl(null, Validators.compose([Validators.required])),\n\t\t});\n\t}\n\tngOnInit() {\n\t\tthis.init();\n\t}\n\n\tinit() {\n\t\tthis._paymentService.get(this.billId).subscribe((response) => {\n\t\t\tthis.paymentData = response.data;\n\n\t\t\tthis.setCurrentStep('paymentOptions');\n\t\t});\n\t}\n\n\tsetCurrentStep(step: PaymentStep, stepData: any = null) {\n\t\tthis.prevStep = this.currentStep;\n\t\tif (step === 'paymentCompleted' && !stepData.hasReceipt) step = 'paymentCompletedNoReceipt';\n\n\t\tthis.currentStep = step;\n\t\tthis.stepChangeEvent.emit({ step: this.currentStep, data: stepData });\n\n\t\twindow.setTimeout(() => {\n\t\t\t{\n\t\t\t\tlet selector: string = '.' + this.prevStep;\n\t\t\t\tlet element: HTMLElement = document.querySelector(selector) as HTMLElement;\n\t\t\t\tif (element !== null) {\n\t\t\t\t\telement.style.opacity = '0';\n\t\t\t\t\telement.style.pointerEvents = 'none';\n\t\t\t\t}\n\t\t\t}\n\t\t\t{\n\t\t\t\tlet selector: string = '.' + step;\n\t\t\t\tlet element: HTMLElement = document.querySelector(selector) as HTMLElement;\n\t\t\t\tif (!element) return;\n\t\t\t\tlet height = element.clientHeight;\n\t\t\t\telement.parentElement.style.height = height.toString() + 'px';\n\t\t\t\telement.style.pointerEvents = 'all';\n\n\t\t\t\tif (step === 'paymentCompleted' || step === 'paymentCompletedNoReceipt') {\n\t\t\t\t\telement.parentElement.style.marginBottom = '10px';\n\t\t\t\t}\n\n\t\t\t\twindow.setTimeout(() => {\n\t\t\t\t\telement.style.opacity = '1';\n\t\t\t\t\tthis.prevStep = null;\n\t\t\t\t}, 250);\n\t\t\t}\n\t\t}, 0);\n\t}\n\n\tonPaymentTypeChange(paymentType: any) {\n\t\tthis.selectedPaymentType = this.paymentData.find((x) => x.Name === paymentType);\n\t\tthis.paymentUrl = this._sanitizer.bypassSecurityTrustResourceUrl(this.selectedPaymentType.Url);\n\t}\n\n\tabort() {\n\t\tthis.abortEvent.emit();\n\t}\n\n\tfinish() {\n\t\tthis.finishEvent.emit();\n\t}\n\n\tclose(completeFunction: () => void = null) {\n\t\tlet selector: string = '.' + this.currentStep;\n\t\tlet element: HTMLElement = document.querySelector(selector) as HTMLElement;\n\t\tlet height = 0;\n\t\telement.parentElement.style.height = height.toString() + 'px';\n\t\telement.style.pointerEvents = 'none';\n\t\telement.style.opacity = '0';\n\t\tthis.prevStep = null;\n\n\t\tif (completeFunction !== null) {\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tcompleteFunction();\n\t\t\t}, 500);\n\t\t}\n\t}\n\n\tsubmitPaymentOptions() {\n\t\tthis.formPaymentoptions['submitted'] = true;\n\t\tif (!this.formPaymentoptions.valid) {\n\t\t\treturn;\n\t\t}\n\t\tthis.setCurrentStep('paymentFrame');\n\t}\n\n\tretry() {\n\t\tif (this.customFailRetry !== null) {\n\t\t\tthis.customFailRetry.func();\n\t\t} else {\n\t\t\tthis.setCurrentStep('paymentOptions');\n\t\t}\n\t}\n\n\tsetError(errorMessage: string, showRetryButton = true, customRetry: VisibaPaymentComponent.CustomFailRetry = null) {\n\t\tthis.errorMessage = errorMessage;\n\t\tthis.showFailedRetryButton = showRetryButton;\n\t\tthis.customFailRetry = customRetry;\n\t\tthis.setCurrentStep('paymentFailed');\n\t}\n\n\tngAfterViewInit() {\n\t\twindow.addEventListener('message', this.paymentMessage, false);\n\t}\n\tpaymentMessage = (message) => {\n\t\tswitch (message.data.event) {\n\t\t\tcase 'Success':\n\t\t\t\tthis.completedWithMethod = message.data.data.method;\n\t\t\t\tthis.attemptData = message.data.data.info;\n\t\t\t\tthis.setCurrentStep('paymentCompleted', message.data.data.info);\n\t\t\t\tbreak;\n\t\t\tcase 'Error':\n\t\t\t\tif (typeof message.data.data !== 'undefined' && message.data.data !== null) {\n\t\t\t\t\tthis.setError(message.data.data.message);\n\t\t\t\t} else {\n\t\t\t\t\tthis.setError(this.translateService.get('LicenceHolder.VisibaPayment.Error.UnknownError'));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'Cancel':\n\t\t\t\tif (typeof message.data.data !== 'undefined' && message.data.data !== null) {\n\t\t\t\t\tthis.setError(message.data.data.message);\n\t\t\t\t} else {\n\t\t\t\t\tthis.setError(this.translateService.get('LicenceHolder.VisibaPayment.Error.CanceledByUser'));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t};\n\tngOnDestroy() {\n\t\twindow.removeEventListener('message', this.paymentMessage, false);\n\t}\n\n\tpublic reset() {\n\t\tthis.currentStep = null;\n\t\tthis.prevStep = null;\n\n\t\tthis.paymentData = null;\n\n\t\tthis.paymentTypeValue = null;\n\t\tthis.selectedPaymentType = null;\n\t\tthis.paymentUrl = null;\n\t\tthis.formPaymentoptions = this._builder.group({\n\t\t\tpaymentType: new UntypedFormControl(null, Validators.compose([Validators.required])),\n\t\t});\n\t\tthis.errorMessage = null;\n\t\tthis.showFailedRetryButton = true;\n\t\tthis.customFailRetry = null;\n\n\t\tthis.setCurrentStep('paymentOptions');\n\t}\n}\n\nexport module VisibaPaymentComponent {\n\texport class CustomFailRetry {\n\t\tconstructor(\n\t\t\tpublic buttonText: string,\n\t\t\tpublic func: () => void,\n\t\t) {}\n\t}\n\n\texport class AttemptData {\n\t\treceiptUrl: string | null;\n\t\thasReceipt: boolean;\n\t}\n}\n","import {\n\tComponent,\n\tInput,\n\tOutput,\n\tSimpleChanges,\n\tOnChanges,\n\tChangeDetectionStrategy,\n\tChangeDetectorRef,\n\tViewEncapsulation,\n} from '@angular/core';\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-step',\n\ttemplate: `\n\t\t<div\n\t\t\tclass=\"step\"\n\t\t\t*ngFor=\"let step of steps; let i = index\"\n\t\t\t[class.done]=\"i < stepIndex\"\n\t\t\t[class.current]=\"step.alias === currentStep\"\n\t\t>\n\t\t\t<span *ngIf=\"step.noTranslate\">{{ step.description }}</span>\n\t\t\t<span *ngIf=\"!step.noTranslate\">{{ step.description | translate }}</span>\n\t\t\t<visiba-svg *ngIf=\"i !== steps.length - 1\" a=\"ArrowRight\"></visiba-svg>\n\t\t</div>\n\t`,\n\tstyleUrls: ['../Css/Components/visibaStep.scss'],\n\tencapsulation: ViewEncapsulation.None,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class VisibaStepComponent implements OnChanges {\n\t@Input() steps: Array<{ alias: string; description: string; noTranslate?: boolean }> = [];\n\t@Input() currentStep: string = null;\n\tpublic stepIndex: number = 0;\n\n\tconstructor(private _changeDetectorRef: ChangeDetectorRef) {}\n\n\tngOnChanges(changes: SimpleChanges) {\n\t\tthis.setCurrentStep(changes['currentStep'].currentValue);\n\t}\n\n\tpublic setSteps(steps: Array<{ alias: string; description: string; noTranslate?: boolean }>) {\n\t\tthis.steps = steps;\n\t\tthis.setCurrentStep(this.currentStep);\n\t}\n\n\tpublic setCurrentStep(step: string) {\n\t\tthis.currentStep = step;\n\t\tthis.stepIndex = this.steps.findIndex((x) => x.alias === step);\n\n\t\twindow.setTimeout(() => {\n\t\t\tthis._changeDetectorRef.markForCheck();\n\t\t}, 0);\n\t}\n}\n","export enum SecurityLevel {\n\tPublic,\n\tClient,\n\tPublicClient,\n\tOutsider,\n\tResource,\n\tClientOrOutsider,\n\tResourceOrClientOrOutsider,\n\tResourceOrClient,\n\tResourceOrOutsider,\n\tDeveloper,\n}\n","// eslint-disable-next-line @typescript-eslint/triple-slash-reference\n/// <reference path=\"../../../src/environment.d.ts\" />\n\nimport { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport { Injectable } from '@angular/core';\nimport { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\nimport { Observable } from 'rxjs';\nimport { SpaContext } from '../Classes/spacontext';\nimport { SpaLogger } from '../Common/Classes/Global/spalogger.class';\nimport { GeneralService } from '../Services/general.service';\nimport { SpaEventService } from '../Services/spaEvents.service';\nimport { SecurityLevel } from '../Constants/securityLevel';\nimport { AuthContextService } from '../Services/authContext.service';\nimport { LicenceHolderService } from '@services/licence_holder.service';\n\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport { IdpUrlRedirectStorageService } from '@public/src/application/idp_url_redirect_storage.service';\nimport { sharedResolution } from '../../../src/shared_resolution';\nimport { HostingService } from '@application/hosting.service';\nimport { UniversalConfig } from '@application/universal_config.service';\n\n@Injectable()\nexport class ViewGuard implements CanActivate {\n\tconstructor(\n\t\tprivate _router: Router,\n\t\tpublic _spaContext: SpaContext,\n\t\tprivate spaLogger: SpaLogger,\n\t\tprivate _generalService: GeneralService,\n\t\tprivate _spaEventService: SpaEventService,\n\t\tprivate translateService: TranslateService,\n\t\tprivate authContextService: AuthContextService,\n\t) {}\n\n\tcanActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean> | Observable<boolean> | boolean {\n\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\t\tconst licenceHolderService = sharedResolution.resolve(LicenceHolderService);\n\n\t\tif (\n\t\t\t(this._spaContext.unitConfig.LicenceHolder.HasMultipleLandingPages &&\n\t\t\t\tlicenceHolderService.rootUnitId === locationSelectorService.entrance?.id &&\n\t\t\t\ttypeof route.data['availibleToNonEntrance'] === 'undefined') ||\n\t\t\troute.data['availibleToNonEntrance'] === false\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (window.__visiba_feature_flags__['CareExperience.PW.Idp']) {\n\t\t\t// noop\n\t\t} else {\n\t\t\tif (this._spaContext.documentSigningPending) {\n\t\t\t\treturn Observable.create((observer) => {\n\t\t\t\t\tthis._spaEventService.onDocumentsSigningCompleted.subscribe(() => {\n\t\t\t\t\t\tobserver.next(true);\n\t\t\t\t\t\tobserver.complete();\n\t\t\t\t\t});\n\t\t\t\t\tthis._spaEventService.onDocumentsSigningAborted.subscribe(() => {\n\t\t\t\t\t\tobserver.next(route.data['access'] === SecurityLevel.Public);\n\t\t\t\t\t\tobserver.complete();\n\t\t\t\t\t\tif (route.data['access'] !== SecurityLevel.Public) {\n\t\t\t\t\t\t\twindow.setTimeout(() => {\n\t\t\t\t\t\t\t\tdocument.location.reload();\n\t\t\t\t\t\t\t}, 500);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tlet result = false;\n\t\tswitch (route.data['access']) {\n\t\t\tcase SecurityLevel.Public:\n\t\t\t\tresult = true;\n\t\t\t\tbreak;\n\t\t\tcase SecurityLevel.Developer:\n\t\t\t\tresult = µ.isDevelopment;\n\t\t\t\tbreak;\n\t\t\tcase SecurityLevel.Client:\n\t\t\t\tresult = this.authContextService.isClient();\n\t\t\t\tbreak;\n\t\t\tcase SecurityLevel.ClientOrOutsider:\n\t\t\t\tresult = this.authContextService.isClient() || this.authContextService.isOutsider();\n\t\t\t\tbreak;\n\t\t\tcase SecurityLevel.Outsider:\n\t\t\t\tresult = this.authContextService.isOutsider();\n\t\t\t\tbreak;\n\t\t\tcase SecurityLevel.Resource:\n\t\t\t\tresult = this.authContextService.isResource();\n\t\t\t\tbreak;\n\t\t\tcase SecurityLevel.ResourceOrClient:\n\t\t\t\tresult = this.authContextService.isResource() || this.authContextService.isClient();\n\t\t\t\tbreak;\n\t\t\tcase SecurityLevel.ResourceOrOutsider:\n\t\t\t\tresult = this.authContextService.isResource() || this.authContextService.isOutsider();\n\t\t\t\tbreak;\n\t\t\tcase SecurityLevel.ResourceOrClientOrOutsider:\n\t\t\t\tresult = this.authContextService.isResource() || this.authContextService.isClient() || this.authContextService.isOutsider();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tresult = false; // Should not ever get here!\n\t\t}\n\n\t\t// If the CareExperience.PW.Idp feature flag is enabled, we will skip the rest of this function and return immediately.\n\t\t// This allows us to easily disable this routing logic by setting the flag to true in our configuration.\n\t\tif (__visiba_feature_flags__['CareExperience.PW.Idp']) {\n\t\t\tif (!result) {\n\t\t\t\tsharedResolution.resolve(IdpUrlRedirectStorageService).setRedirectPath(state.url);\n\t\t\t}\n\t\t}\n\n\t\tif (!result) {\n\t\t\tconst ticket = (route.params['ticket'] ?? route.params['callTicket'])?.split('?')[0];\n\n\t\t\t// ## Check user type from appointment callticket\n\t\t\tif (state.url.indexOf('/appointment/') !== -1 && ticket != null) {\n\t\t\t\treturn new Promise((resolve) => {\n\t\t\t\t\tthis._generalService.getAppointmentAccessInfo(ticket).subscribe(\n\t\t\t\t\t\t(response) => {\n\t\t\t\t\t\t\tif (response) {\n\t\t\t\t\t\t\t\tif (response.data.ResourceId !== null) {\n\t\t\t\t\t\t\t\t\tconst hostingService = sharedResolution.resolve(HostingService);\n\t\t\t\t\t\t\t\t\tconst universalConfig = sharedResolution.resolve(UniversalConfig);\n\n\t\t\t\t\t\t\t\t\tconst returnUrl = encodeURIComponent(`${hostingService.location}${state.url}`);\n\t\t\t\t\t\t\t\t\tconst url = `/o${universalConfig.alias}/sign-in;returnUrl=${returnUrl}`.replace('//', '/');\n\n\t\t\t\t\t\t\t\t\twindow.location.href = url;\n\t\t\t\t\t\t\t\t} else if (response.data.OutsiderId && response.data.AuthenticationMethod) {\n\t\t\t\t\t\t\t\t\tthis._spaEventService.onSignInRequired.emit({\n\t\t\t\t\t\t\t\t\t\ttarget: state.url,\n\t\t\t\t\t\t\t\t\t\treason: this.translateService.get('LicenceHolder.Component.SignIn.Phrase.ReasonGuestAuth'),\n\t\t\t\t\t\t\t\t\t\tcallticket: ticket,\n\t\t\t\t\t\t\t\t\t\tauthMethod: response.data.AuthenticationMethod,\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthis._spaEventService.onSignInRequired.emit({ target: state.url });\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tresolve(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t() => {\n\t\t\t\t\t\t\tthis._spaEventService.onSignInRequired.emit({ target: state.url });\n\t\t\t\t\t\t\tresolve(false);\n\t\t\t\t\t\t},\n\t\t\t\t\t);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tthis._spaEventService.onSignInRequired.emit({ target: state.url, leave: false });\n\t\t}\n\n\t\treturn result;\n\t}\n}\n","import { Injectable, EventEmitter } from '@angular/core';\nimport { Messaging } from './Models/Messaging/messaging.models';\nimport { MessagingServiceV2 } from '../Services/api/v2/messaging.service';\nimport { SpaLogger } from '../Common/Classes/Global/spalogger.class';\nimport { SpaContext } from '../Classes/spacontext';\nimport { SpaEventService } from '../Services/spaEvents.service';\nimport { environment } from 'Public_old/src/environments/environment';\nimport { AuthContextService } from '../Services/authContext.service';\nimport { devLocalStorage } from 'src/application/dev_local_storage';\n\n@Injectable()\nexport class MessagingInjectable {\n\ttotalUnreadMessages = 0;\n\tcurrentActive: number = null;\n\n\tconn: xsockets.client;\n\tws: xsockets.controller;\n\n\treconectAttempts = 0;\n\n\t/**\n\t * returns current messages when new messages has been sent from server.\n\t */\n\tonMessages: EventEmitter<Messaging.CaseMessagesSocketModel> = new EventEmitter<Messaging.CaseMessagesSocketModel>();\n\t/**\n\t * returns all messages sent in a case, is triggered by first asking for getMessages by caseId.\n\t */\n\tonGetMessages: EventEmitter<Messaging.CaseMessagesSocketModel> = new EventEmitter<Messaging.CaseMessagesSocketModel>();\n\t/**\n\t * returns current ReadUntil time, is triggered by first setting SetReadUntil.\n\t */\n\tonHasReadUntil: EventEmitter<Messaging.HasReadUntilSocketModel> = new EventEmitter<Messaging.HasReadUntilSocketModel>();\n\n\tonCaseClosed = new EventEmitter<number>();\n\tonAllowClient = new EventEmitter<Messaging.AllowClientResponseChangedModel>();\n\n\t// Return CaseId of case that completed a form\n\tonCompletedForm = new EventEmitter<number>();\n\t/**\n\t * returns the total count of unread messages when value has been changed.\n\t */\n\tonTotalUnreadMessagesChanges: EventEmitter<number> = new EventEmitter<number>();\n\n\tconstructor(\n\t\tprivate _messagingService: MessagingServiceV2,\n\t\tprivate spaLogger: SpaLogger,\n\t\tpublic _spaContext: SpaContext,\n\t\tprivate _spaEventService: SpaEventService,\n\t\tprivate authContextService: AuthContextService,\n\t) {\n\t\tif (authContextService.isClient()) {\n\t\t\tthis.init();\n\t\t} else {\n\t\t\tthis._spaEventService.onSignedIn.subscribe(() => {\n\t\t\t\tthis.init();\n\t\t\t});\n\t\t}\n\t}\n\n\tpublic init(): void {\n\t\tthis.initSocket();\n\t}\n\n\tprivate initSocket(): void {\n\t\tthis.conn = new xsockets.client(\n\t\t\t`wss://${environment.production ? location.hostname : environment.realtime.host}:${environment.realtime.port}`,\n\t\t\t['messaging'],\n\t\t);\n\t\tthis.conn.setPersistentId(xsockets.utils.guid());\n\t\tthis.conn.autoReconnect(false);\n\t\tif (!environment.production && devLocalStorage.get('identitySession'))\n\t\t\tthis.conn.setParameters({ AuthorizationTicket: devLocalStorage.get('identitySession') });\n\n\t\tthis.conn.onOpen = () => {\n\t\t\tthis.reconectAttempts = 0;\n\t\t\tthis.ws.publish('ping', null); // Ping the server when reconnect, so it know we're back\n\t\t};\n\t\tthis.conn.onClose = () => {\n\t\t\tthis.reconectAttempts++;\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tif (this.reconectAttempts < 30) {\n\t\t\t\t\tthis.openSocketConnection();\n\t\t\t\t}\n\t\t\t}, 1000 * this.reconectAttempts);\n\t\t};\n\n\t\tthis.ws = this.conn.controller('messaging');\n\n\t\tthis.ws.onOpen = () => {\n\t\t\tthis.spaLogger.log('Info', ['Messaging', 'Websocket'], 'Messaging_Websocket_Connected');\n\t\t\twindow.onunload = () => {\n\t\t\t\tthis.ws.close();\n\t\t\t};\n\t\t};\n\n\t\tthis.ws.on('duplicate_connection', () => {\n\t\t\tthis.ws = null;\n\t\t\twindow.onbeforeunload = null;\n\t\t\twindow.location.href = `/${µ.LicenceHolder.UrlAlias}/error/multiconnections`;\n\t\t});\n\n\t\t// ---- Messaging Events ----\n\t\tthis.ws.on('messages', (data) => {\n\t\t\tthis.onMessages.emit(data);\n\t\t\tif (data.data.some((m) => m.sender?.isMe)) {\n\t\t\t\tthis.setReadUntil(data.caseId, new Date(data.data[0].timestamp));\n\t\t\t}\n\t\t});\n\t\tthis.ws.on('getmessages_r', (data) => {\n\t\t\tthis.onGetMessages.emit(data);\n\t\t});\n\t\tthis.ws.on('has_read_until', (data) => {\n\t\t\tthis.onHasReadUntil.emit(data);\n\t\t});\n\t\tthis.ws.on('case_closed', (caseId) => {\n\t\t\tthis.onCaseClosed.emit(caseId);\n\t\t});\n\t\tthis.ws.on('allow_client_response_changed', (data: Messaging.AllowClientResponseChangedModel) => {\n\t\t\tthis.onAllowClient.emit(data);\n\t\t});\n\n\t\tthis.reconectAttempts = 0;\n\t\tthis.openSocketConnection();\n\t}\n\n\tprivate openSocketConnection(): void {\n\t\tthis.conn.open();\n\t}\n\tprivate send(topic, data = null): void {\n\t\tthis.ws.publish(topic, data);\n\t}\n\n\t// ---- Private Messaging Functions ----\n\tpublic setReadUntil(caseId: number, timestamp: Date): void {\n\t\tconst sendTimeStamp: Date = new Date(new Date(timestamp).getTime() + 20);\n\t\tthis.send('SetReadUntil', { caseId, timestamp: sendTimeStamp });\n\t}\n\t// ---- Public Messaging Functions ----\n\n\tpublic sendMessage(caseId: number, text: string, files: Array<Guid> = []): void {\n\t\tthis.send('SendMessage', { caseId, text, textFormat: 'Plaintext', fileTickets: files });\n\t}\n\tpublic getMessages(caseId: number): void {\n\t\tthis.send('GetMessages', { caseId });\n\t}\n}\n","import { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport { DropInQueueService } from './dropin-queue.service';\n\nexport class DropInQueueInterface {\n\tconstructor(private queueContext: DropInQueueService, private translateService: TranslateService) {}\n\n\t/**\n\t *\n\t * Update Queuedata\n\t */\n\tqueueData() {\n\t\tif (typeof this.queueContext.queue.data === 'undefined') return false;\n\n\t\tthis.countdown('start', 'queuedata', this.queueContext.queue.data.openStatus.estimatedQueueTime);\n\t}\n\n\tstopQueueCountdownTimer() {\n\t\tthis.countdown('stop', 'queuedata', null);\n\t}\n\n\t/**\n\t * Countdown\n\t */\n\tcountdown(action: string, name: string, timeLeft: number) {\n\t\tvar ti = timeLeft;\n\t\tif (action === 'start') {\n\t\t\tclearInterval(this[name]);\n\t\t\tthis[name] = window.setInterval(() => {\n\t\t\t\tif (this.queueContext.room === null) return;\n\n\t\t\t\tti--;\n\t\t\t\tlet minutes = Math.floor(ti / 60);\n\t\t\t\tvar text = minutes + ' ' + this.translateService.get('Common.Abbreviation.MinutesShort');\n\t\t\t\tif (ti < this.queueContext.room.roomInfo.MinimumShownWaitTime + 1)\n\t\t\t\t\ttext = '< ' + Math.floor(this.queueContext.room.roomInfo.MinimumShownWaitTime / 60);\n\t\t\t\telse if (minutes > 59)\n\t\t\t\t\ttext =\n\t\t\t\t\t\tMath.floor(minutes / 60) +\n\t\t\t\t\t\tthis.translateService.get('Common.Abbreviation.Hours') +\n\t\t\t\t\t\t' ' +\n\t\t\t\t\t\t(minutes % 60) +\n\t\t\t\t\t\tthis.translateService.get('Common.Word.Minutes');\n\n\t\t\t\tthis.queueContext.queue.waitTimeString = text;\n\n\t\t\t\tif (ti < 1) clearInterval(this[name]);\n\t\t\t}, 1000);\n\t\t} else if (action === 'stop') {\n\t\t\tclearInterval(this[name]);\n\t\t}\n\t}\n}\n","import { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport { DropInQueueService } from './dropin-queue.service';\nimport { Router } from '@angular/router';\nimport { SpaContext } from '../../Classes/spacontext';\nimport { SpaLogger } from 'Public_old/src/app/Common/Classes/Global/spalogger.class';\nimport { AudioPlayerService } from 'Public_old/src/app/Common/Services/audioPlayer.service';\nimport { Helper } from 'Public_old/src/app/Common/Helpers/helper';\nimport { environment } from 'Public_old/src/environments/environment';\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport { devLocalStorage } from 'src/application/dev_local_storage';\nimport { sharedResolution } from '../../../../src/shared_resolution';\n\nexport class DropInQueueWebSocket {\n\tconn: xsockets.client;\n\tws: xsockets.controller;\n\tconnectionNotificatioTimern: number = null;\n\tconnectionNotification: HTMLElement = null;\n\n\tconstructor(\n\t\tprivate router: Router,\n\t\tprivate spaLogger: SpaLogger,\n\t\tprivate queueContext: DropInQueueService,\n\t\tprivate _audioPlayerService: AudioPlayerService,\n\t\tprivate ticket: any,\n\t\tpublic _spaContext: SpaContext,\n\t\tprivate translateService: TranslateService,\n\t\tprivate helper: Helper,\n\t) {}\n\n\tinit() {\n\t\tthis.conn = new xsockets.client(\n\t\t\t`wss://${environment.production ? location.hostname : environment.realtime.host}:${environment.realtime.port}`,\n\t\t\t['Queue'],\n\t\t);\n\t\tthis.conn.setPersistentId(xsockets.utils.guid());\n\t\tthis.conn.autoReconnect(false);\n\t\tif (!environment.production && devLocalStorage.get('identitySession'))\n\t\t\tthis.conn.setParameters({ AuthorizationTicket: devLocalStorage.get('identitySession') });\n\n\t\tthis.conn.onOpen = () => {\n\t\t\tif (this.connectionNotificatioTimern !== null) {\n\t\t\t\tclearTimeout(this.connectionNotificatioTimern);\n\t\t\t\tthis.connectionNotificatioTimern = null;\n\t\t\t}\n\n\t\t\tif (this.connectionNotification !== null) {\n\t\t\t\tthis.connectionNotification.remove();\n\t\t\t\tthis.connectionNotification = null;\n\n\t\t\t\tthis.ws.publish('ping', null); // Ping the server when reconnect, so it know we're back\n\t\t\t}\n\t\t};\n\n\t\tthis.conn.onClose = () => {\n\t\t\tif (this.connectionNotification !== null || this.connectionNotification !== null) return;\n\n\t\t\tthis.connectionNotificatioTimern = window.setTimeout(() => {\n\t\t\t\tthis.connectionNotificatioTimern = null;\n\t\t\t\tthis.connectionNotification = this.helper.html.persistantNotification({\n\t\t\t\t\tTitle: navigator.onLine\n\t\t\t\t\t\t? this.translateService.get('Common.Notification.SocketConnectionLost')\n\t\t\t\t\t\t: this.translateService.get('Common.Notification.NotInternetConnection'),\n\t\t\t\t\tDescription: navigator.onLine ? this.translateService.get('Common.Notification.TryingSocketReconnect') : '',\n\t\t\t\t});\n\t\t\t}, 5000);\n\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tthis.openSocketConnection();\n\t\t\t}, 1000);\n\t\t};\n\n\t\tthis.ws = this.conn.controller('queue');\n\n\t\t/*\n\t\t * SocketEvent: Open\n\t\t */\n\t\tthis.ws.onOpen = () => {\n\t\t\tthis.spaLogger.log('Info', ['DropIn', 'Websocket'], 'DropIn_Websocket_Connected');\n\n\t\t\twindow.onunload = () => {\n\t\t\t\tthis.ws.close();\n\t\t\t};\n\t\t};\n\n\t\tthis.ws.on('duplicate_connection', () => {\n\t\t\tthis.ws = null;\n\t\t\twindow.onbeforeunload = null;\n\t\t\twindow.location.href = `/${µ.LicenceHolder.UrlAlias}/error/multiconnections`;\n\t\t});\n\n\t\t/**\n\t\t * SocketEvent: Close\n\t\t */\n\t\tthis.ws.onClose = () => {};\n\n\t\t/* Custom Events */\n\t\tthis.ws.on('app_error', (data) => {\n\t\t\tthis.queueContext.onAppError();\n\t\t});\n\n\t\tthis.ws.on('kicked_from_queue', (data) => {\n\t\t\tthis.queueContext.onKickedFromQueue();\n\t\t});\n\n\t\t/*\n\t\t * Queue info\n\t\t */\n\t\tthis.ws.on('queue_info', (data) => {\n\t\t\tthis.queueContext.queue.setData(data);\n\t\t\tthis.queueContext.IH.queueData();\n\t\t});\n\n\t\t/*\n\t\t * Dequeued\n\t\t */\n\t\tthis.ws.on('dequeued', (data) => {\n\t\t\tthis._audioPlayerService.stop(`${environment.serverBaseUrl}/assets/ringing.mp3`);\n\n\t\t\tthis.helper.cookie.create('AutoAnswer', 'true', 30 / 86400);\n\n\t\t\tif (data.unitId === this._spaContext.unitConfig.Unit.UnitId) {\n\t\t\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\t\t\t\tthis.router.navigate([locationSelectorService.location.route + '/appointment', data.callTicket]);\n\t\t\t} else {\n\t\t\t\tthis.helper.html.loading('show');\n\n\t\t\t\tconst url = `${this.helper.unit.getUnitUrl(data.unitId, this._spaContext.unitTreeFlat)}/appointment/${data.callTicket}`;\n\t\t\t\twindow.location.href = url;\n\t\t\t}\n\n\t\t\tthis.queueContext.destroy();\n\t\t});\n\n\t\t/*\n\t\t * Handshake\n\t\t */\n\t\tthis.ws.on('handshake_request', (data) => {\n\t\t\tthis.spaLogger.log('Debug', ['DropIn', 'Websocket'], 'DropIn_Websocket_HandshakeRequest', data);\n\n\t\t\tconst timeout = data.validForSeconds;\n\t\t\tthis.queueContext.queue.handshake(data.handshakeKey, timeout);\n\n\t\t\tthis._audioPlayerService.play(`${environment.serverBaseUrl}/assets/Ring1.mp3`, true);\n\t\t});\n\n\t\t/*\n\t\t * Handshake in progress\n\t\t */\n\t\tthis.ws.on('handshake_in_progress', (data) => {\n\t\t\tconst timeout = data.validForSeconds;\n\t\t\tthis.queueContext.queue.handshake(data.handshakeKey, timeout);\n\t\t\tthis._audioPlayerService.play(`${environment.serverBaseUrl}/assets/Ring1.mp3`, true);\n\t\t});\n\n\t\t/*\n\t\t * Handshake timed out\n\t\t */\n\t\tthis.ws.on('handshake_request_timed_out', (data) => {\n\t\t\tthis.spaLogger.log('Debug', ['DropIn', 'Websocket'], 'DropIn_Websocket_HandshakeTimedOut', data);\n\n\t\t\tthis._audioPlayerService.stop(`${environment.serverBaseUrl}/assets/Ring1.mp3`);\n\t\t\tthis.queueContext.queue.handshakeFailed();\n\t\t});\n\n\t\t/*\n\t\t * Handshake failed\n\t\t */\n\t\tthis.ws.on('handshake_request_failed', (data) => {\n\t\t\tthis.spaLogger.log('Debug', ['DropIn', 'Websocket'], 'DropIn_Websocket_HandshakeFailed', data);\n\t\t\tthis._audioPlayerService.stop(`${environment.serverBaseUrl}/assets/Ring1.mp3`);\n\t\t});\n\n\t\tthis.openSocketConnection();\n\t}\n\n\topenSocketConnection() {\n\t\tthis.queueContext._dropInService.getTicket(this.ticket).subscribe(\n\t\t\t(response) => {\n\t\t\t\tthis.queueContext.ticketInfo = response.data;\n\t\t\t\tconst creds = {\n\t\t\t\t\tticket: response.data.Ticket,\n\t\t\t\t\tAuthorizationTicket: environment.production ? null : devLocalStorage.get('identitySession'),\n\t\t\t\t};\n\n\t\t\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\n\t\t\t\tif (!this.queueContext.ticketInfo.MayEnterQueue) {\n\t\t\t\t\tthis.queueContext._router.navigate([\n\t\t\t\t\t\tlocationSelectorService.location.route + '/dropin',\n\t\t\t\t\t\tthis.queueContext.ticketInfo.DropInRoomUrlAlias,\n\t\t\t\t\t]);\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis.conn.setParameters(creds);\n\t\t\t\tthis.conn.open();\n\t\t\t},\n\t\t\t(err) => {\n\t\t\t\twindow.setTimeout(() => {\n\t\t\t\t\tthis.openSocketConnection();\n\t\t\t\t}, 3000);\n\t\t\t},\n\t\t);\n\t}\n\n\tsend(type: string, data: any) {\n\t\tthis.ws.publish(type, data);\n\t}\n}\n","import { Helper } from '../../Common/Helpers/helper';\nimport { DropInQueueService } from './dropin-queue.service';\nimport { GeneralService } from '../general.service';\nimport { EventEmitter } from '@angular/core';\nimport { SpaLogger } from 'Public_old/src/app/Common/Classes/Global/spalogger.class';\nimport { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\n\nexport class DropInQueueQueue {\n\thandshakeInterval: any;\n\tdata: any = null;\n\tonDataEvent: EventEmitter<any> = new EventEmitter<any>();\n\twaitTimeString: string = '-';\n\n\tprivate intervalHandler = null;\n\n\tconstructor(\n\t\tprivate spaLogger: SpaLogger,\n\t\tprivate _generalService: GeneralService,\n\t\tprivate queueContext: DropInQueueService,\n\t\tprivate translateService: TranslateService,\n\t\tprivate helper: Helper,\n\t) {\n\t\tthis.queueContext.webSocket.init();\n\n\t\t// Touch pining\n\t\tthis.intervalHandler = window.setInterval(() => {\n\t\t\tthis._generalService.touchSession().subscribe();\n\t\t}, 60 * 1000);\n\t}\n\n\tdestroy() {\n\t\tif (this.intervalHandler) {\n\t\t\tclearInterval(this.intervalHandler);\n\t\t\tthis.intervalHandler = null;\n\t\t}\n\t}\n\n\tsetData(data: any): void {\n\t\tthis.data = data;\n\t\tif (this.data.placeInQueue === 0) {\n\t\t\tthis.data.placeInQueue = null;\n\t\t}\n\t\tthis.onDataEvent.emit(data);\n\t}\n\n\thandshake(key, answerTime) {\n\t\tvar ti = answerTime;\n\t\tconst that = this;\n\n\t\t// If doctors pressed twice, remove first\n\t\tif (document.querySelector('.handshakeContainer')) document.querySelector('.handshakeContainer').remove();\n\n\t\tclearInterval(this.handshakeInterval);\n\t\tvar hscw = document.createElement('div');\n\t\thscw.className = 'handshakeContainerWrap';\n\t\thscw.innerHTML = `<div class=\"handshakeContainer\">\n <div class=\"message\">\n <h2>${this.translateService.get('LicenceHolder.DropInQueue.Phrase.TheDoctorIsReady')}</h2>\n <div class=\"timer\">${this.translateService.get(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'LicenceHolder.DropInQueue.Phrase.AnswerWithin',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)} <span>${ti}</span> ${this.translateService.get('Common.Word.Seconds').toLowerCase()}.</div>\n <div class=\"btn\">${this.translateService.get('LicenceHolder.DropInQueue.Button.GoToCall')}</div>\n </div>\n </div>`;\n\n\t\tdocument.querySelector('.template_queueNotifications').appendChild(hscw);\n\n\t\thscw.querySelector('.btn').addEventListener('click', () => {\n\t\t\tclearInterval(this.handshakeInterval);\n\t\t\thscw.parentElement.removeChild(hscw);\n\n\t\t\tthis.queueContext.webSocket.send('handshakeresponse', { handshakeKey: key });\n\t\t\tthis.queueContext.onAcceptHandshake();\n\t\t});\n\n\t\tthis.handshakeInterval = window.setInterval(() => {\n\t\t\tti--;\n\t\t\t(hscw.querySelector('.timer span') as HTMLElement).innerText = ti;\n\n\t\t\tif (ti === 0) {\n\t\t\t\tthis.queueContext.webSocket.send('handshaketimeout', { handshakeKey: key });\n\n\t\t\t\tclearInterval(that.handshakeInterval);\n\t\t\t\thscw.remove();\n\t\t\t}\n\t\t}, 1000);\n\t}\n\n\t/**\n\t * Handshake failed\n\t */\n\thandshakeFailed() {\n\t\tclearInterval(this.handshakeInterval);\n\t\tif (document.querySelector('.handshakeContainerWrap')) document.querySelector('.handshakeContainerWrap').remove();\n\n\t\tvar hscw = document.createElement('div');\n\t\thscw.className = 'timeoutContainerWrap';\n\t\thscw.innerHTML = `<div class=\"timeoutContainer\">\n <div class=\"message\">\n <h2>${this.translateService.get('LicenceHolder.DropInQueue.Phrase.YouMissedYourCall')}</h2>\n ${this.translateService.get('LicenceHolder.DropInQueue.Phrase.YouHaveToAnswerWithin', {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tseconds: this.queueContext.room.roomInfo.HandshakeTimeout,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})}\n <div class=\"btn\">${this.translateService.get(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'LicenceHolder.DropInQueue.Button.NewQueuePlace',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}</div>\n </div>\n </div>`;\n\n\t\tdocument.querySelector('.template_queueNotifications').appendChild(hscw);\n\n\t\thscw.querySelector('.btn').addEventListener('click', () => {\n\t\t\thscw.parentElement.removeChild(hscw);\n\t\t\tthis.queueContext.webSocket.send('endtimeout', null);\n\t\t});\n\t}\n}\n","import { Injectable, EventEmitter } from '@angular/core';\n\nimport { Router, ActivatedRoute, NavigationEnd } from '@angular/router';\nimport { SpaContext } from '../../Classes/spacontext';\nimport { environment } from 'Public_old/src/environments/environment';\nimport { DropInQueueInterface } from './dropin-queue-interface.class';\nimport { DropInQueueWebSocket } from './dropin-queue-websocket.class';\nimport { DropInQueueQueue } from './dropin-queue-queue.class';\n\nimport { GeneralService } from '../general.service';\nimport { DropInUnitServiceV2 } from '../api/v2/Units/dropIn.service';\nimport { SpaEventService } from '../spaEvents.service';\nimport { DropInTicketApiModel } from '../api/v2/Models/DropInTicketApiModel';\nimport { DropInServiceV2 } from '../api/v2/dropin.service';\nimport { SpaLogger } from 'Public_old/src/app/Common/Classes/Global/spalogger.class';\nimport { AudioPlayerService } from 'Public_old/src/app/Common/Services/audioPlayer.service';\nimport { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport { Helper } from 'Public_old/src/app/Common/Helpers/helper';\nimport { VisibaPopup } from 'Public_old/src/app/Common/Classes/visibaPopup';\nimport { DropInModule } from 'Public_old/src/app/Views/DropIn/dropin-room.class';\nimport { AuthContextService } from '../authContext.service';\nimport { DateService } from '../date.service';\n\n@Injectable()\nexport class DropInQueueService {\n\tIH: DropInQueueInterface;\n\twebSocket: DropInQueueWebSocket = null;\n\tqueue: DropInQueueQueue = null;\n\troom: DropInModule.Room = null;\n\tticketInfo: any = null;\n\tevent: EventEmitter<DropInQueueService.EventPackage> = new EventEmitter<DropInQueueService.EventPackage>();\n\tisAlive: boolean = false;\n\tisInited: boolean = false;\n\n\tcurrentUrlAlias: string = null;\n\tcurrentTicket: string = null;\n\tlastFetchedActiveTicket: DropInTicketApiModel = null;\n\tconnectionError = false;\n\n\tconstructor(\n\t\tprivate spaLogger: SpaLogger,\n\t\tprivate _spaEventService: SpaEventService,\n\t\tpublic generalService: GeneralService,\n\t\tpublic audioPlayerService: AudioPlayerService,\n\t\tpublic _dropInService: DropInServiceV2,\n\t\tpublic _dropInUnitService: DropInUnitServiceV2,\n\t\tpublic _router: Router,\n\t\tpublic _activatedRoute: ActivatedRoute,\n\t\tpublic _spaContext: SpaContext,\n\t\tprivate translateService: TranslateService,\n\t\tprivate authContextService: AuthContextService,\n\t\tprivate helper: Helper,\n\t\tprivate dateService: DateService,\n\t) {\n\t\tlet routeSub = this._router.events.subscribe((e) => {\n\t\t\tif (e instanceof NavigationEnd) {\n\t\t\t\tif (this._router.url.indexOf('multiconnections') > -1) return;\n\n\t\t\t\trouteSub.unsubscribe();\n\t\t\t\tthis.tryGetTicket();\n\t\t\t}\n\t\t});\n\n\t\tthis._spaEventService.onSignedIn.subscribe(() => {\n\t\t\tthis.tryGetTicket();\n\t\t});\n\t\tthis._spaEventService.onCallEnded.subscribe(() => {\n\t\t\tthis.tryGetTicket();\n\t\t});\n\t}\n\n\tpublic tryGetTicket() {\n\t\tif (this.authContextService.isPatient()) {\n\t\t\tthis._dropInService.getActiveTicket().subscribe(\n\t\t\t\t(response) => {\n\t\t\t\t\tthis.lastFetchedActiveTicket = response.data;\n\t\t\t\t\tthis.event.emit(new DropInQueueService.EventPackage(DropInQueueService.EventType.OnGetActiveTicket, response.data));\n\t\t\t\t\tif (response.sucessful && response.data !== null) {\n\t\t\t\t\t\tif (!this.isInited) {\n\t\t\t\t\t\t\tif (response.data.Payment !== null) {\n\t\t\t\t\t\t\t\tconst dropInLink = '/dropin/' + response.data.DropInRoomUrlAlias + '/' + response.data.Ticket;\n\t\t\t\t\t\t\t\tif (response.data.UnitId !== this._spaContext.unitConfig.Unit.UnitId) {\n\t\t\t\t\t\t\t\t\twindow.location.href =\n\t\t\t\t\t\t\t\t\t\tthis.helper.unit.getUnitUrl(response.data.UnitId, this._spaContext.unitTreeFlat) + dropInLink;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthis._router.navigate([dropInLink]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis.init(\n\t\t\t\t\t\t\t\t\tthis._spaContext.unitConfig.LicenceHolder.Id,\n\t\t\t\t\t\t\t\t\tresponse.data.DropInRoomUrlAlias,\n\t\t\t\t\t\t\t\t\tresponse.data.Ticket,\n\t\t\t\t\t\t\t\t\tresponse.data.UnitId,\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t(error) => {},\n\t\t\t);\n\t\t}\n\t}\n\n\tinit(licenceHolderId: number, urlAlias: string, ticket: any, unitId: number = null) {\n\t\tif (this.isAlive) {\n\t\t\tthis.destroy();\n\t\t}\n\n\t\tif (this.isInited) return;\n\n\t\tthis.currentUrlAlias = urlAlias;\n\t\tthis.currentTicket = ticket;\n\t\tthis.isInited = true;\n\n\t\tthis._dropInUnitService.getByUrlAlias(urlAlias, unitId).subscribe(\n\t\t\t(response) => {\n\t\t\t\tthis.room = new DropInModule.Room(response.data, this.translateService, this._spaContext, this.dateService);\n\n\t\t\t\tthis.IH = new DropInQueueInterface(this, this.translateService);\n\t\t\t\tthis.webSocket = new DropInQueueWebSocket(\n\t\t\t\t\tthis._router,\n\t\t\t\t\tthis.spaLogger,\n\t\t\t\t\tthis,\n\t\t\t\t\tthis.audioPlayerService,\n\t\t\t\t\tticket,\n\t\t\t\t\tthis._spaContext,\n\t\t\t\t\tthis.translateService,\n\t\t\t\t\tthis.helper,\n\t\t\t\t);\n\t\t\t\tthis.queue = new DropInQueueQueue(this.spaLogger, this.generalService, this, this.translateService, this.helper);\n\t\t\t\tthis.isAlive = true;\n\n\t\t\t\tthis.queue.onDataEvent.subscribe((data) => {\n\t\t\t\t\tthis.event.emit(new DropInQueueService.EventPackage(DropInQueueService.EventType.QueueInfoUpdated));\n\t\t\t\t});\n\n\t\t\t\tthis.event.emit(new DropInQueueService.EventPackage(DropInQueueService.EventType.FetchCompleted));\n\t\t\t},\n\t\t\t(error) => {\n\t\t\t\tthis.event.emit(new DropInQueueService.EventPackage(DropInQueueService.EventType.FetchFail));\n\t\t\t},\n\t\t);\n\t\tthis.event.emit(new DropInQueueService.EventPackage(DropInQueueService.EventType.Initialize));\n\t}\n\n\tdestroy() {\n\t\tif (this.queue) this.queue.destroy();\n\t\tif (this.webSocket !== null && typeof this.webSocket.conn !== 'undefined' && this.webSocket.conn !== null) {\n\t\t\tthis.webSocket.conn.onClose = () => {};\n\t\t\tthis.webSocket.conn.close();\n\t\t}\n\t\tthis.IH.stopQueueCountdownTimer();\n\t\tthis.isAlive = false;\n\t\tthis.isInited = false;\n\t\tthis.event.emit(new DropInQueueService.EventPackage(DropInQueueService.EventType.Destroyed));\n\t}\n\n\tleaveQueue(doDefaultRouting: boolean = true) {\n\t\tthis.webSocket.ws.invoke('CancelMyTicket', JSON.stringify({ ticket: this.ticketInfo.Ticket })).then(() => {\n\t\t\tif (doDefaultRouting) {\n\t\t\t\tif (this.ticketInfo.CompletedRedirectUrl !== null && this.ticketInfo.CompletedRedirectUrl !== '') {\n\t\t\t\t\twindow.location.href = this.ticketInfo.CompletedRedirectUrl;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.destroy();\n\t\t});\n\t}\n\n\tonKickedFromQueue() {\n\t\tthis.destroy();\n\t\tthis.event.emit(new DropInQueueService.EventPackage(DropInQueueService.EventType.KickedFromQueue));\n\t\tnew VisibaPopup(\n\t\t\tthis.translateService.get('LicenceHolder.DropInQueue.Title.KickedFromQueue') as string,\n\t\t\tthis.translateService.get('LicenceHolder.DropInQueue.Phrase.KickedFromQueue') as string,\n\t\t)\n\t\t\t.inform(this.translateService.get('Common.Button.OK') as string)\n\t\t\t.attatch()\n\t\t\t.observer()\n\t\t\t.subscribe((ok) => {});\n\t}\n\n\tonAppError() {\n\t\tthis.connectionError = true;\n\t}\n\n\tonAcceptHandshake() {\n\t\tthis.event.emit(new DropInQueueService.EventPackage(DropInQueueService.EventType.AcceptHandShake));\n\t\tthis.audioPlayerService.stop(`${environment.serverBaseUrl}/assets/Ring1.mp3`);\n\t}\n}\n\nexport module DropInQueueService {\n\texport class EventPackage {\n\t\tconstructor(public eventType: EventType, public data: any = null) {}\n\t}\n\texport enum EventType {\n\t\tFetchFail,\n\t\tFetchCompleted,\n\t\tKickedFromQueue,\n\t\tAcceptHandShake,\n\t\tDestroyed,\n\t\tInitialize,\n\t\tOnGetActiveTicket,\n\t\tQueueInfoUpdated,\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { VisibaApiHttp } from '../../../../Classes/visibaHttp.class';\nimport { ConditionApiModel } from '../Models/ConditionApiModel';\nimport { SpaContext } from '../../../../Classes/spacontext';\nimport { HttpParams } from '@angular/common/http';\n\n@Injectable()\nexport class ConditionServiceV2 {\n\tbaseUri = () => `/api/Client/v2/units/${this.spaContext.unitConfig.Unit.UnitId}/Conditions`;\n\n\tconstructor(private http: VisibaApiHttp, private spaContext: SpaContext) {\n\t\t// Empty\n\t}\n\n\tgetAll(licenceHolderId: number, languageCode: string = null) {\n\t\tlet params = new HttpParams();\n\n\t\tparams = params.append('licenceholderId', licenceHolderId.toString());\n\t\tif (languageCode !== null) params = params.append('languageCode', languageCode);\n\n\t\treturn this.http.getTyped<ConditionApiModel[]>(this.baseUri(), true);\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { SpaContext } from '../../../../Classes/spacontext';\nimport { VisibaApiHttp } from '../../../../Classes/visibaHttp.class';\nimport { DropInApiModel } from '../Models/DropInApiModel';\n\n@Injectable()\nexport class DropInUnitServiceV2 {\n\treadonly baseUri = '/api/Client/v2/units/';\n\n\tconstructor(private http: VisibaApiHttp, public spaContext: SpaContext) {}\n\n\tpublic get(emitLoading = true) {\n\t\treturn this.http.getTyped<DropInApiModel[]>(\n\t\t\t`${this.baseUri}${this.spaContext.unitConfig.Unit.UnitId}/Dropin`,\n\t\t\ttrue,\n\t\t\tnull,\n\t\t\temitLoading,\n\t\t);\n\t}\n\n\tpublic getDropInRoom(dropInRoomId: number) {\n\t\treturn this.http.getTyped<DropInApiModel>(\n\t\t\t`${this.baseUri}${this.spaContext.unitConfig.Unit.UnitId}/Dropin/${dropInRoomId}`,\n\t\t\ttrue,\n\t\t);\n\t}\n\n\tpublic getByUrlAlias(urlAlias: string, unitId: number = null) {\n\t\treturn this.http.getTyped<DropInApiModel>(\n\t\t\t`${this.baseUri}${unitId || this.spaContext.unitConfig.Unit.UnitId}/Dropin/Url/${urlAlias}`,\n\t\t\ttrue,\n\t\t);\n\t}\n}\n","import { FormOpportunity } from '../../../Constants/FormOpportunity';\nimport { Injectable } from '@angular/core';\nimport { VisibaApiHttp } from '../../../../Classes/visibaHttp.class';\nimport { FormApiModel } from '../Models/FormApiModel';\nimport { SpaContext } from '../../../../Classes/spacontext';\nimport { RespondantApiModel } from '../Models/RespondantApiModel';\nimport { Observable, throwError } from 'rxjs';\nimport { AnswerApiModel } from '../Models/AnswerApiModel';\nimport { FormGraphApiModel } from '../Models/FormGraphApiModel';\nimport { HttpParams } from '@angular/common/http';\n\n@Injectable()\nexport class DynamicFormServiceV2 {\n\tprivate baseUri = () => `/api/Client/v2/units/${this.spaContext.unitConfig.Unit.UnitId}`;\n\n\tconstructor(\n\t\tprivate http: VisibaApiHttp,\n\t\tprivate spaContext: SpaContext,\n\t) {\n\t\t// Empty\n\t}\n\n\tpublic getAllForms(conditionId: number = null, opportunity: FormOpportunity = null) {\n\t\tlet params = new HttpParams();\n\n\t\tif (conditionId !== null) params = params.append('conditionId', conditionId.toString());\n\t\tif (opportunity !== null) params = params.append('opportunity', opportunity);\n\n\t\treturn this.http.getTyped<FormApiModel[]>(`${this.baseUri()}/forms`, true, { params });\n\t}\n\n\tpublic get(id: number) {\n\t\treturn this.http.getTyped<FormGraphApiModel>(`${this.baseUri()}/forms/${id}`, true);\n\t}\n\n\tpublic getRespondant(respondantId: number) {\n\t\treturn this.http.getTyped<RespondantApiModel>(`${this.baseUri()}/forms/respondants/${respondantId}`, true);\n\t}\n\n\tpublic answer(id: number, model: AnswerApiModel[]) {\n\t\treturn this.http.postTyped<AnswerApiModel[]>(`${this.baseUri()}/forms/respondants/${id}/answers`, model);\n\t}\n\n\tpublic setCompletion(respondantId: number) {\n\t\treturn this.http.postTyped(`${this.baseUri()}/forms/respondants/${respondantId}/completion`, null);\n\t}\n\n\tpublic submitForm(respondantId: number, answers: AnswerApiModel[]) {\n\t\treturn this.answer(respondantId, answers);\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { ApiResponse, VisibaApiHttp } from '../../../../Classes/visibaHttp.class';\nimport { forkJoin, Observable } from 'rxjs';\n\nexport interface ExternalDataModel {\n\tOrigin: string;\n\tType: string;\n\tData: any;\n}\n\nexport interface ExternalDataReference {\n\tguid: string;\n\ttimestamp: number;\n}\n\n@Injectable()\nexport class ExternalDataService {\n\treadonly baseUri = '/api/Client/v2';\n\n\tconstructor(private visibaHttp: VisibaApiHttp) {}\n\n\tpublic submitExternalData(externalData: ExternalDataModel[]): Observable<ApiResponse<any>[]> {\n\t\tconst calls = externalData.map((item) => this.visibaHttp.post(`/api/Client/v2/externaldata`, item));\n\n\t\treturn forkJoin(calls);\n\t}\n\n\tpublic getExternalDataReferences(): ExternalDataReference[] {\n\t\tconst references: ExternalDataReference[] = JSON.parse(sessionStorage.getItem('externalDataReferences')) || [];\n\n\t\treturn references.filter((reference) => this.isGuidValid(reference.timestamp));\n\t}\n\n\tpublic setGuid(guid: string, time: Date): void {\n\t\tconst guidData = { guid, timestamp: time.getTime() };\n\t\tconst externalData = this.getExternalDataReferences();\n\t\texternalData.push(guidData);\n\t\tsessionStorage.setItem('externalDataReferences', JSON.stringify(externalData));\n\t}\n\n\tpublic clearExternalDataReferences(): void {\n\t\tsessionStorage.removeItem('externalDataReferences');\n\t}\n\n\tprivate isGuidValid(time: number): boolean {\n\t\tconst currentDate = new Date();\n\t\tconst guidDate = new Date(time);\n\t\tguidDate.setHours(guidDate.getHours() + 12);\n\n\t\treturn guidDate.getTime() >= currentDate.getTime();\n\t}\n}\n","import { Injectable } from '@angular/core';\n\nimport { SpaContext } from '../../../../Classes/spacontext';\nimport { VisibaApiHttp } from '../../../../Classes/visibaHttp.class';\nimport { PaymentServiceApiModel } from '../Models/PaymentServiceApiModel';\n\n@Injectable()\nexport class PaymentServiceV2 {\n\treadonly baseUri = '/api/Client/v2/Units/';\n\n\tconstructor(private http: VisibaApiHttp, public spaContext: SpaContext) {}\n\n\tpublic get(billId: number | string) {\n\t\treturn this.http.getTyped<PaymentServiceApiModel[]>(\n\t\t\t`${this.baseUri}${this.spaContext.unitConfig.Unit.UnitId}/Payments/${billId}/Services`,\n\t\t\ttrue,\n\t\t);\n\t}\n}\n","import { Injectable } from '@angular/core';\n\nimport { SpaContext } from '../../../../Classes/spacontext';\nimport { ApiResponse, VisibaApiHttp } from '../../../../Classes/visibaHttp.class';\nimport { TimeslotApiModel } from '../Models/TimeslotApiModel';\nimport { SearchCapabilitiesApiModel } from '../Models/SearchCapabilitiesApiModel';\nimport { AppointmentApiModel } from '../Models/AppointmentApiModel';\nimport { HttpParams } from '@angular/common/http';\nimport { Observable } from 'rxjs';\n\nexport interface SearchParameters {\n\tspecialityId: string;\n\tconditionId: string;\n\tfilterableUnitId: string;\n\tresourceId: string;\n\tdate?: Date;\n\tfromDate?: Date;\n\ttoDate?: Date;\n\tfromTime?: TimeSpan;\n\ttoTime?: TimeSpan;\n\tphysicalLocationId?: number;\n\tlocalityType?: LocalityType;\n}\n\ninterface BookSlotApiInput {\n\tReason: string;\n\tAsAgentFor: string;\n\tFiles: Guid[];\n\tExternalData: Guid[];\n\tConditionId?: number;\n}\n\nexport enum LocalityType {\n\tAll = 'all',\n\tDigital = 'digital',\n\tPhysical = 'physical',\n}\n\ninterface AvailabilityModel {\n\tSupported: boolean;\n\tFirstAvailableUpcomingTime: string;\n}\n\nexport interface LocalityAvailabilityModel {\n\tDigital: AvailabilityModel;\n\tPhysicalLocations: { [key: number]: AvailabilityModel };\n}\n\n@Injectable()\nexport class TimeslotServiceV2 {\n\tprivate baseUri = (): string => `/api/Client/v2/units/${this.spaContext.unitConfig.Unit.UnitId}/Timeslots`;\n\n\tconstructor(\n\t\tprivate http: VisibaApiHttp,\n\t\tpublic spaContext: SpaContext,\n\t) {\n\t\t// Empty\n\t}\n\n\tpublic get(searchParams: SearchParameters, emitLoading = true): Observable<ApiResponse<TimeslotApiModel[]>> {\n\t\tlet params = new HttpParams();\n\n\t\tObject.keys(searchParams).forEach((key) => {\n\t\t\tif (!searchParams[key]) return;\n\t\t\tparams = params.append(key, searchParams[key]);\n\t\t});\n\n\t\treturn this.http.getTyped<TimeslotApiModel[]>(this.baseUri(), true, { params }, emitLoading);\n\t}\n\n\tpublic getById(id: string): Observable<ApiResponse<TimeslotApiModel>> {\n\t\treturn this.http.getTyped<TimeslotApiModel>(`${this.baseUri()}/${id}`);\n\t}\n\n\tpublic getSearchCapabilities(): Observable<ApiResponse<SearchCapabilitiesApiModel>> {\n\t\treturn this.http.getTyped<SearchCapabilitiesApiModel>(`${this.baseUri()}/searchcapabilities`);\n\t}\n\n\tpublic getBookingById(id: string, bookingSlot: BookSlotApiInput): Observable<ApiResponse<TimeslotApiModel>> {\n\t\treturn this.http.postTyped<TimeslotApiModel>(`${this.baseUri()}/${id}/book`, bookingSlot);\n\t}\n\n\tpublic book(\n\t\tcomposite: string,\n\t\treason: string,\n\t\tfiles: Array<any>,\n\t\texternalDataReferences: Guid[] = [],\n\t\tconditionId: number = null,\n\t\tasAgentFor: string = null,\n\t\tredRobinSessionId: string | null,\n\t\tlockId: string,\n\t): Observable<ApiResponse<AppointmentApiModel>> {\n\t\tconst sendModel = {\n\t\t\tReason: reason,\n\t\t\tAsAgentFor: asAgentFor,\n\t\t\tFiles: files,\n\t\t\tTimeslotLockId: lockId,\n\t\t\tExternalData: externalDataReferences,\n\t\t\tConditionId: conditionId,\n\t\t\t...(redRobinSessionId && { RedRobinSessionId: redRobinSessionId }),\n\t\t};\n\n\t\treturn this.http.postTyped<AppointmentApiModel>(`${this.baseUri()}/${composite}/book`, sendModel);\n\t}\n\n\tpublic getLocalityAvailability(searchParams: SearchParameters): Observable<ApiResponse<LocalityAvailabilityModel>> {\n\t\tlet params = new HttpParams();\n\n\t\tObject.keys(searchParams).forEach((key) => {\n\t\t\tif (!searchParams[key]) return;\n\t\t\tparams = params.append(key, searchParams[key]);\n\t\t});\n\n\t\treturn this.http.getTyped<LocalityAvailabilityModel>(`${this.baseUri()}/Availability`, true, { params });\n\t}\n}\n","import { Injectable } from '@angular/core';\n\nimport { UnitModel } from '../Models/UnitModel';\nimport { UnitConfigApiModel } from '../Models/UnitConfigApiModel';\nimport { SpaContext } from '../../../../Classes/spacontext';\nimport { VisibaApiHttp } from '../../../../Classes/visibaHttp.class';\nimport { UnitAboutApiModel } from '../Models/UnitAboutApiModel';\nimport { WebContentButtonApiModel } from '../Models/WebContentButtonApiModel';\nimport { IdentifierConflictsApiModel } from '../Models/IdentifierConflictsApiModel';\nimport { HttpParams, HttpClient } from '@angular/common/http';\n\n@Injectable()\nexport class UnitService {\n\treadonly baseUri = '/api/Client/v2/units';\n\n\tconstructor(private http: VisibaApiHttp, private spaContext: SpaContext, private angularHttp: HttpClient) {}\n\n\tpublic getTree(unitId: number = null) {\n\t\tif (unitId === null) unitId = this.spaContext.unitConfig.LicenceHolder.RootUnit;\n\n\t\treturn this.http.getTyped<UnitModel>(`${this.baseUri}/${unitId}/tree` + unitId + '/tree');\n\t}\n\n\tpublic getConfig() {\n\t\treturn this.http.getTyped<UnitConfigApiModel>(`${this.baseUri}/${this.spaContext.unitConfig.Unit.UnitId}/config/web`);\n\t}\n\n\tpublic getAbout() {\n\t\treturn this.http.getTyped<UnitAboutApiModel>(`${this.baseUri}/${this.spaContext.unitConfig.Unit.UnitId}/about`);\n\t}\n\n\tpublic getText(aliases: Array<string>) {\n\t\treturn this.http.getTyped<{ [alias: string]: string }>(`${this.baseUri}/${this.spaContext.unitConfig.Unit.UnitId}/texts`, true, {\n\t\t\tparams: { aliases: aliases.join() },\n\t\t});\n\t}\n\n\tpublic getIdentifierConflicts(\n\t\tcountryCode: string,\n\t\tnationalIdentityNumber?: string,\n\t\tphoneNumber?: string,\n\t\texcludeClientId?: number,\n\t) {\n\t\tlet params = new HttpParams();\n\t\tparams = params.append('countryCode', countryCode);\n\t\tif (nationalIdentityNumber) {\n\t\t\tparams = params.append('nationalIdentityNumber', nationalIdentityNumber);\n\t\t}\n\t\tif (phoneNumber) {\n\t\t\tparams = params.append('phoneNumber', phoneNumber);\n\t\t}\n\t\tif (excludeClientId) {\n\t\t\tparams = params.append('excludeClientId', excludeClientId.toString());\n\t\t}\n\n\t\treturn this.http.getTyped<IdentifierConflictsApiModel>(\n\t\t\t`${this.baseUri}/${this.spaContext.unitConfig.Unit.UnitId}/IdentifierConflicts`,\n\t\t\tnull,\n\t\t\t{ params },\n\t\t);\n\t}\n}\n","import { WebContentButtonTranslationApiModel } from './WebContentButtonTranslationApiModel';\n\nexport enum OpenUrlWith {\n\tIFrame = 'IFrame',\n\tSameTab = 'SameTab',\n\tNewTab = 'NewTab',\n}\n\nexport class WebContentButtonApiModel {\n\tId: number;\n\tReceptionId: number;\n\tIconUrl: string;\n\tHasBrandedNavbar: boolean;\n\tRequiresAuthentication: boolean;\n\tIsActive: boolean;\n\tOpenUrlWith: OpenUrlWith;\n\tTranslations: WebContentButtonTranslationApiModel[];\n}\n","import { Injectable } from '@angular/core';\nimport { SpaContext } from '../../../../Classes/spacontext';\nimport { WebContentButtonApiModel, OpenUrlWith } from '../Models/WebContentButtonApiModel';\nimport { SpaEventService } from '../../../spaEvents.service';\nimport { WebContentButtonTranslationApiModel } from '../Models/WebContentButtonTranslationApiModel';\nimport { Router } from '@angular/router';\nimport { OpenTargetWith } from 'Public_old/src/app/Components/Authentication/signin.component';\nimport { AuthContextService } from '../../../authContext.service';\nimport { ComponentIdentityButtonIcon } from '../../../flexible_patient_buttons.service/component_identity_button_icon';\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport { sharedResolution } from '@public/src/shared_resolution';\n\nexport interface EmbeddedWebContent {\n\tbaseUrl: string;\n\tewUrl: string;\n}\n\n@Injectable()\nexport class WebContentButtonsService {\n\treadonly baseUri = '/api/Client/v2/units';\n\tpublic selectedEmbeddedContent: EmbeddedWebContent;\n\n\tconstructor(\n\t\tprivate spaEventService: SpaEventService,\n\t\tpublic spaContext: SpaContext,\n\t\tprivate router: Router,\n\t\tprivate authContextService: AuthContextService,\n\t) {}\n\n\tpublic goToCustomButtonUrl(button: ComponentIdentityButtonIcon) {\n\t\tswitch (button.openUrlWith) {\n\t\t\tcase OpenUrlWith.IFrame: {\n\t\t\t\tthis.selectedEmbeddedContent = {\n\t\t\t\t\tbaseUrl: window.location.origin + this.spaContext.baseHref,\n\t\t\t\t\tewUrl: button.url,\n\t\t\t\t};\n\n\t\t\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\t\t\t\tlet ewRoute = `${locationSelectorService.location.route}/ew?url=${button.url}`;\n\t\t\t\tif (!ewRoute.startsWith('/')) {\n\t\t\t\t\tewRoute = `/${ewRoute}`;\n\t\t\t\t}\n\n\t\t\t\tif (button.requiresAuthentication && !this.authContextService.isSignedIn()) {\n\t\t\t\t\tthis.spaEventService.onSignInRequired.emit({\n\t\t\t\t\t\ttarget: ewRoute,\n\t\t\t\t\t\topenTargetWith: OpenTargetWith.AngularNavigation,\n\t\t\t\t\t});\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.router.navigate([`${locationSelectorService.location.route}/ew`], {\n\t\t\t\t\tqueryParams: {\n\t\t\t\t\t\turl: button.url,\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase OpenUrlWith.NewTab: {\n\t\t\t\tif (button.requiresAuthentication && !this.authContextService.isSignedIn()) {\n\t\t\t\t\tthis.spaEventService.onSignInRequired.emit({\n\t\t\t\t\t\ttarget: button.url,\n\t\t\t\t\t\topenTargetWith: OpenTargetWith.NewTab,\n\t\t\t\t\t});\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twindow.open(button.url);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase OpenUrlWith.SameTab: {\n\t\t\t\tif (button.requiresAuthentication && !this.authContextService.isSignedIn()) {\n\t\t\t\t\tthis.spaEventService.onSignInRequired.emit({ target: button.url, openTargetWith: OpenTargetWith.NativeNavigation });\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlocation.href = button.url;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic getButtonTranslation(button: WebContentButtonApiModel): WebContentButtonTranslationApiModel {\n\t\treturn button.Translations.find((language) => language.LanguageCode === this.spaContext.languageCode);\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { VisibaApiHttp } from '../../../Classes/visibaHttp.class';\nimport { AppointmentApiModel } from './Models/AppointmentApiModel';\n\n@Injectable()\nexport class AppointmentsServiceV2 {\n\treadonly baseUri = '/api/Client/v2/Appointments';\n\n\tconstructor(private http: VisibaApiHttp) {}\n\n\tpublic getAll() {\n\t\treturn this.http.getTyped<AppointmentApiModel[]>(this.baseUri);\n\t}\n\n\tpublic get(ticket: Guid) {\n\t\treturn this.http.getTyped<AppointmentApiModel>(`${this.baseUri}/${ticket}`);\n\t}\n\n\tpublic cancel(ticket: Guid) {\n\t\treturn this.http.delete(`${this.baseUri}/${ticket}`);\n\t}\n\n\tpublic decline(bookingId: number) {\n\t\treturn this.http.delete(`${this.baseUri}/decline/${bookingId}`);\n\t}\n\n\tpublic getFileIdentifier(ticket: Guid, name: string, length: number, type: string) {\n\t\tconst sendData = {\n\t\t\tName: name,\n\t\t\tLength: length,\n\t\t\tType: type === '' ? this.resolveMimeType(name) : type,\n\t\t};\n\n\t\treturn this.http.post(`${this.baseUri}/${ticket}/files`, sendData);\n\t}\n\n\tprivate resolveMimeType(fileName: string) {\n\t\tconst extension = fileName.split('.')[fileName.split('.').length];\n\t\tswitch (extension) {\n\t\t\tcase 'doc':\n\t\t\t\treturn 'application/msword';\n\t\t\tcase 'docx':\n\t\t\t\treturn 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';\n\t\t\tdefault:\n\t\t\t\treturn 'application/octet-stream';\n\t\t}\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { AuthApiService } from '@api/auth_api.service';\n\nimport { from } from 'rxjs';\nimport { sharedResolution } from '@public/src/shared_resolution';\n\n@Injectable()\nexport class AuthServiceV2 {\n\treadonly baseUri = '/api/Client/v2';\n\tprivate readonly authApiService: AuthApiService = sharedResolution.resolve(AuthApiService);\n\n\tgetAuthMethods(countryCode: string, callTicket: string, unitId: number) {\n\t\tconst authApiService = sharedResolution.resolve(AuthApiService);\n\n\t\treturn from(authApiService.getAuthMethods(unitId, countryCode, callTicket).then(({ data }) => data));\n\t}\n\n\t/*\n\t * SMS\n\t */\n\tpublic sendSMSCode(unitId: number, number: string, countryCode?: string) {\n\t\treturn from(this.authApiService.sendSMSCode(unitId, number, countryCode));\n\t}\n\n\tpublic sendSMSCodeWithCallticket(unitId: number, countryCode: string, callTicket: string) {\n\t\treturn from(this.authApiService.sendSMSCodeWithCallticket(unitId, countryCode, callTicket));\n\t}\n\n\tpublic resendSmsCode(unitId: number, authAttemptId: Guid) {\n\t\treturn from(this.authApiService.resendSmsCode(unitId, authAttemptId));\n\t}\n\n\tpublic getPreRegisteredNumber(callTicket: string, unitId: number) {\n\t\treturn from(this.authApiService.getPreRegisteredNumber(unitId, callTicket));\n\t}\n\n\tpublic confirmSmsCode(unitId: number, attemptId: Guid, code: string, sessionLifetime?: number) {\n\t\treturn from(this.authApiService.confirmSmsCode(unitId, attemptId, code, sessionLifetime));\n\t}\n\n\t/**\n\t * NoAuth\n\t */\n\tpublic startNoAuthAuth(unitId: number, callTicket: string, countryCode?: string) {\n\t\treturn from(this.authApiService.beginNoAuth(unitId, callTicket, countryCode));\n\t}\n\n\tpublic confirmNoAuthIdentity(unitId: number, attemptId: Guid, commonName: string) {\n\t\treturn from(this.authApiService.confirmNoAuthIdentity(unitId, attemptId, commonName));\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { VisibaApiHttp } from '../../../Classes/visibaHttp.class';\nimport { CaseApiModel } from './Models/CaseApiModel';\n\n@Injectable()\nexport class CasesServiceV2 {\n\treadonly baseUri = '/api/Client/v2/Cases';\n\n\tconstructor(private http: VisibaApiHttp) {}\n\n\tpublic get(from: Date | null, to: Date | null, emitLoading = true) {\n\t\tconst getData = {\n\t\t\tfrom: from === null ? '' : from.format('yyyy-MM-dd\"T\"HH:mm'),\n\t\t\tto: to === null ? '' : to.format('yyyy-MM-dd\"T\"HH:mm'),\n\t\t};\n\n\t\treturn this.http.getTyped<Array<CaseApiModel>>(`${this.baseUri}`, true, { params: getData }, emitLoading);\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { ApiResponse, VisibaApiHttp } from '../../../Classes/visibaHttp.class';\nimport { DropInTicketApiModel as DropInEnqueueApiModel } from './Models/DropInTicketApiModel';\nimport { UserFileApiInput } from './Models/UserFileApiInput';\n\n@Injectable()\nexport class DropInServiceV2 {\n\treadonly baseUri = '/api/Client/v2/DropIn';\n\n\tconstructor(private http: VisibaApiHttp) {}\n\n\tpublic postEnqueue(dropInRoomId: number, model: any): Observable<ApiResponse<DropInEnqueueApiModel>> {\n\t\tmodel.LanguageCode = µ.Env.LangCode;\n\n\t\treturn this.http.postTyped<DropInEnqueueApiModel>(`${this.baseUri}/${dropInRoomId}/tickets`, model);\n\t}\n\n\tpublic cancel(ticket: Guid): Observable<ApiResponse<void>> {\n\t\treturn this.http.deleteTyped<void>(`${this.baseUri}/tickets/${ticket}`, true);\n\t}\n\n\tpublic getTicket(ticket: Guid): Observable<ApiResponse<DropInEnqueueApiModel>> {\n\t\treturn this.http.getTyped<DropInEnqueueApiModel>(`${this.baseUri}/tickets/${ticket}`, true);\n\t}\n\n\tpublic getActiveTicket(): Observable<ApiResponse<DropInEnqueueApiModel>> {\n\t\treturn this.http.getTyped<DropInEnqueueApiModel>(`${this.baseUri}/tickets/active`, true);\n\t}\n\n\tpublic getActiveRoomTicket(dropInRoomId: number): Observable<ApiResponse<DropInEnqueueApiModel>> {\n\t\treturn this.http.getTyped<DropInEnqueueApiModel>(`${this.baseUri}/${dropInRoomId}/tickets/active`, true);\n\t}\n\n\tpublic upload(ticket: Guid, input: UserFileApiInput): Observable<ApiResponse<DropInEnqueueApiModel>> {\n\t\treturn this.http.postTyped<DropInEnqueueApiModel>(`${this.baseUri}/tickets/${ticket}/files`, input, true);\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { ApiResponse, VisibaApiHttp } from '../../../Classes/visibaHttp.class';\nimport { HttpHeaders } from '@angular/common/http';\nimport { Observable, from } from 'rxjs';\nimport { AuthService } from '@public/src/application/services/auth/mod';\nimport { IdentityApiModel } from './Models/IdentityApiModel';\nimport { sharedResolution } from '@public/src/shared_resolution';\n\n@Injectable()\nexport class IdentityServiceV2 {\n\treadonly baseUri = '/api/Client/v2/Identity/';\n\n\tconstructor(private http: VisibaApiHttp) {}\n\n\tpublic get() {\n\t\tconst authService = sharedResolution.resolve(AuthService);\n\n\t\treturn from(\n\t\t\tauthService.fetchActiveIdentity().then((user) => {\n\t\t\t\treturn user;\n\t\t\t}),\n\t\t);\n\t}\n\n\tpublic isAlive() {\n\t\tlet headers = new HttpHeaders();\n\t\theaders = headers.append('X-TouchSessions', 'false');\n\n\t\treturn this.http.getTyped<boolean>(`${this.baseUri}IsAlive`, false, { headers });\n\t}\n\n\tpublic isAliveOutsider() {\n\t\tlet headers = new HttpHeaders();\n\n\t\theaders = headers.append('X-TouchSessions', 'false');\n\n\t\treturn this.http.getTyped<boolean>(`${this.baseUri}IsAliveOutsider`, false, { headers });\n\t}\n\n\tpublic signOut() {\n\t\tlocalStorage.removeItem('identitySession');\n\n\t\treturn this.http.postTyped<{ RedirectUrl: null | string }>(`${this.baseUri}SignOut`, null);\n\t}\n\n\tpublic update(\n\t\tgivenName: string,\n\t\tsurname: string,\n\t\temail: string,\n\t\tphoneNumber: string,\n\t\tcountryCode: string,\n\t\tphoneVerificationAttemptId: string | null = null,\n\t): Observable<ApiResponse<IdentityApiModel>> {\n\t\tconst postData = {\n\t\t\tFirstName: givenName,\n\t\t\tLastName: surname,\n\t\t\tEmail: email,\n\t\t\tPhone: phoneNumber,\n\t\t\tNationality: countryCode,\n\t\t\tPhoneVerificationAttemptId: phoneVerificationAttemptId,\n\t\t};\n\n\t\treturn this.http.putTyped<IdentityApiModel>(`${this.baseUri}`, postData);\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { VisibaApiHttp } from '../../../Classes/visibaHttp.class';\nimport { CallSettingsApiModel } from './Models/CallSettingsApiModel';\nimport { SpaContext } from '../../../Classes/spacontext';\n\n@Injectable()\nexport class LicenceHolderServiceV2 {\n\tbaseUri: string = '';\n\n\tconstructor(public http: VisibaApiHttp, public spaContext: SpaContext) {\n\t\tthis.baseUri = `/api/Client/v2/${this.spaContext.unitConfig.LicenceHolder.Id}`;\n\t}\n\n\tgetCallSettings() {\n\t\treturn this.http.getTyped<CallSettingsApiModel>(this.baseUri + '/CallSettings');\n\t}\n}\n","import { Injectable } from '@angular/core';\n\nimport { SpaContext } from '../../../Classes/spacontext';\nimport { VisibaApiHttp } from '../../../Classes/visibaHttp.class';\nimport { MessagingConversationApiModel } from './Models/MessagingConversationApiModel';\n\n@Injectable()\nexport class MessagingServiceV2 {\n\treadonly baseUri = '/api/Client/v2/MessagingConversations';\n\n\tconstructor(private http: VisibaApiHttp) {}\n\n\tpublic getAll() {\n\t\treturn this.http.getTyped<MessagingConversationApiModel[]>(`${this.baseUri}`);\n\t}\n\n\tpublic get(id: number) {\n\t\treturn this.http.getTyped<MessagingConversationApiModel>(`${this.baseUri}/case/${id}`);\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { VisibaApiHttp, ApiResponse } from '../../../Classes/visibaHttp.class';\n\nexport interface ComplianceSettings {\n\tAllowEmail: boolean;\n\tAllowSms: boolean;\n\tUpToDate: boolean;\n}\n\nexport interface ComplianceSettingsInput {\n\tallowEmail: boolean;\n\tallowSms: boolean;\n}\n\n@Injectable()\nexport class NotificationSettingsService {\n\tprivate readonly baseUri = '/api/Client/v2/notificationsettings';\n\n\tconstructor(private http: VisibaApiHttp) {}\n\n\tpublic getComplianceSettings() {\n\t\treturn this.http.getTyped<ComplianceSettings>(`${this.baseUri}/Compliance`);\n\t}\n\n\tpublic putComplianceSettings(settings: ComplianceSettingsInput) {\n\t\treturn this.http.putTyped<ComplianceSettingsInput>(`${this.baseUri}/Compliance`, settings);\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { ApiResponse, VisibaApiHttp } from '../../../Classes/visibaHttp.class';\nimport { CompleteRegistrationApiResult } from '../../Models/Client/CompleteRegistrationApiResult';\nimport { GetRegistrationApiModel } from '@public/src/api/generated/models';\n\nexport interface RegisterClientModel {\n\tNationality: string;\n\tNationalIdentityNumber: string;\n\tPhone: string;\n\tFirstName: string;\n\tLastName: string;\n\tEmail: string;\n\tPhoneVerificationAttemptId?: string;\n}\n\n@Injectable()\nexport class RegistrationService {\n\treadonly baseUri: string = '/Api/Client/v2/Registration';\n\n\tconstructor(private http: VisibaApiHttp) {}\n\n\tpublic getRegistration(ticket: string): Observable<ApiResponse<GetRegistrationApiModel>> {\n\t\treturn this.http.getTyped<GetRegistrationApiModel>(`${this.baseUri}/Registration/${ticket}`);\n\t}\n\n\tpublic completeRegistration(ticket: string, postData: any): Observable<ApiResponse<void>> {\n\t\treturn this.http.postTyped<void>(`${this.baseUri}/Registration/${ticket}`, postData);\n\t}\n}\n","import { Injectable } from '@angular/core';\n\nimport { Observable, from } from 'rxjs';\nimport { AuthApiService } from '@public/src/api/auth_api.service';\nimport { SpaContext } from '../../../Classes/spacontext';\nimport { ApiResponse, VisibaApiHttp } from '../../../Classes/visibaHttp.class';\nimport { AuthMethodApiModel, SmsConfirmCodeApiResult, SmsStartAuthModel } from '@public/src/api/generated/models';\nimport { sharedResolution } from '@public/src/shared_resolution';\n\n@Injectable()\nexport class SmsAuthService {\n\treadonly baseUri = '/Api/Client/v2/units';\n\n\tconstructor(\n\t\tprivate _http: VisibaApiHttp,\n\t\tprivate _spaContext: SpaContext,\n\t) {}\n\n\tpublic getAuthMethods(countryCode: string, callTicket: string, unitId: number): Observable<AuthMethodApiModel[]> {\n\t\tconst authApiService = sharedResolution.resolve(AuthApiService);\n\n\t\treturn from(authApiService.getAuthMethods(unitId, countryCode, callTicket).then(({ data }) => data));\n\t}\n\n\tpublic beginSmsAuth(\n\t\tlicenceHolderId: number,\n\t\tcountryCode: string,\n\t\tnumber: string = null,\n\t\tcallTicket: string = null,\n\t): Observable<ApiResponse<SmsStartAuthModel>> {\n\t\tlet uri = `${this.baseUri}/${this._spaContext.unitConfig.Unit.UnitId}/Auth/Methods/Sms/`;\n\t\tlet query = '?licenceHolderId=' + licenceHolderId + '&countrycode=' + countryCode;\n\n\t\tif (callTicket !== null) {\n\t\t\turi += 'SendCodeWithCallTicket';\n\t\t\tquery += '&callTicket=' + callTicket;\n\t\t} else {\n\t\t\turi += 'SendCode';\n\t\t}\n\n\t\tif (number !== null && number !== '') query += '&number=' + encodeURIComponent(number);\n\n\t\treturn this._http.postTyped<SmsStartAuthModel>(uri + query, null);\n\t}\n\n\tpublic resendCode(authAttemptId: Guid): Observable<ApiResponse<void>> {\n\t\tconst query = '?attemptId=' + authAttemptId;\n\n\t\treturn this._http.postTyped<null>(\n\t\t\t`${this.baseUri}/${this._spaContext.unitConfig.Unit.UnitId}/Auth/Methods/Sms/ReSendCode${query}`,\n\t\t\tnull,\n\t\t);\n\t}\n\n\tpublic confirmCode(attemptId: string, code: string): Observable<ApiResponse<SmsConfirmCodeApiResult>> {\n\t\tconst query = '?attemptId=' + attemptId + '&code=' + encodeURIComponent(code);\n\n\t\treturn this._http.postTyped<SmsConfirmCodeApiResult>(\n\t\t\t`${this.baseUri}/${this._spaContext.unitConfig.Unit.UnitId}/Auth/Methods/Sms/ConfirmCode${query}`,\n\t\t\tnull,\n\t\t);\n\t}\n}\n","import { OutcomeType } from '../../Models/Survey/OutcomeType';\nimport { AnswerSurveyResult } from '../../../Common/Models/Api/Models/AnswerSurveyResult';\nimport { SurveyQuestionInfo } from '../../../Common/Models/Api/Info/SurveyQuestionInfo';\nimport { Injectable } from '@angular/core';\nimport { ApiResponse, VisibaApiHttp } from '../../../Classes/visibaHttp.class';\nimport { SpaContext } from '../../../Classes/spacontext';\nimport { Observable } from 'rxjs';\n\n@Injectable()\nexport class SurveyService {\n\treadonly baseUri: string = '/Api/Client/v2/units';\n\n\tconstructor(\n\t\tprivate _http: VisibaApiHttp,\n\t\tpublic _spaContext: SpaContext,\n\t) {}\n\n\tgetSurvey(alias: string): Observable<ApiResponse<Array<SurveyQuestionInfo>>> {\n\t\treturn this._http.getTyped<Array<SurveyQuestionInfo>>(\n\t\t\t`${this.baseUri}/${this._spaContext.unitConfig.Unit.UnitId}/Surveys/${alias}`,\n\t\t);\n\t}\n\n\tpostSurveyAnswer(alias: string, answers: any, bookingCallTicket: string): Observable<ApiResponse<AnswerSurveyResult>> {\n\t\tconst postData = {\n\t\t\tAnswers: answers,\n\t\t\tAppointmentTicket: bookingCallTicket,\n\t\t};\n\n\t\treturn this._http.postTyped<AnswerSurveyResult>(\n\t\t\t`${this.baseUri}/${this._spaContext.unitConfig.Unit.UnitId}/Surveys/${alias}`,\n\t\t\tpostData,\n\t\t);\n\t}\n\n\t// Resource\n\tgetResourceSurvey(alias: string, langCode: string): Observable<ApiResponse<Array<SurveyQuestionInfo>>> {\n\t\treturn this._http.getTyped<Array<SurveyQuestionInfo>>(\n\t\t\t`/Api/Office/${this._spaContext.unitConfig.LicenceHolder.Id}/Surveys/${alias}/questions/${langCode}`,\n\t\t);\n\t}\n\n\tgetOutcomeDefinitions(): Observable<ApiResponse<Array<OutcomeType>>> {\n\t\treturn this._http.getTyped<Array<OutcomeType>>(\n\t\t\t`/Api/Office/${this._spaContext.unitConfig.LicenceHolder.Id}/Outcomes/definitions`,\n\t\t);\n\t}\n\n\tpostResourceSurveyAnswer(alias: string, answers: any, bookingCallTicket: string): Observable<ApiResponse<AnswerSurveyResult>> {\n\t\tconst postData = {\n\t\t\tAnswers: answers,\n\t\t\tBookingCallTicket: bookingCallTicket,\n\t\t};\n\n\t\treturn this._http.postTyped<AnswerSurveyResult>(\n\t\t\t`/Api/Office/${this._spaContext.unitConfig.LicenceHolder.Id}/Surveys/${alias}`,\n\t\t\tpostData,\n\t\t);\n\t}\n\n\tRegisterCallOutcome(\n\t\ticdCodes: string[],\n\t\toutcomes: Array<OutcomeType>,\n\t\twasFitForDigitalVisit: boolean,\n\t\tcustomOutcome: string,\n\t\tbookingId: number,\n\t): Observable<ApiResponse<void>> {\n\t\tconst postData = {\n\t\t\tIcdCodes: icdCodes,\n\t\t\tOutcomes: outcomes,\n\t\t\tWasFitForDigitalVisit: wasFitForDigitalVisit,\n\t\t\tCustomOutcome: customOutcome,\n\t\t};\n\n\t\treturn this._http.postTyped<void>(`/Api/Office/${this._spaContext.unitConfig.LicenceHolder.Id}/Outcomes/${bookingId}`, postData);\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { of } from 'rxjs';\nimport { AsyncScheduler } from 'rxjs/internal/scheduler/AsyncScheduler';\nimport { VisibaApiHttp } from '../../../Classes/visibaHttp.class';\nimport { GuiComponentApiModel } from './Models/GuiComponentApiModel';\n\n@Injectable()\nexport class UnitApiService {\n\tprivate readonly baseUri = '/api/Client/v2/units'; // Todo: extend a base api class\n\n\tconstructor(private readonly httpService: VisibaApiHttp) {\n\t\t// Empty\n\t}\n\n\tpublic getUnitComponents(receptionId: number) {\n\t\tconst url = `${this.baseUri}/${receptionId}/guicomponents`;\n\n\t\treturn this.httpService.getTyped<GuiComponentApiModel[]>(url);\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { ApiResponse, VisibaApiHttp } from '../../../Classes/visibaHttp.class';\nimport { HttpParams } from '@angular/common/http';\nimport { SignableDocumentType } from '../../../Common/Models/Api/Constants/SignableDocumentType';\nimport { SignatureDocuments } from '../../Models/Client/SignatureDocuments';\nimport { Observable } from 'rxjs';\nimport { SpaContext } from '../../../Classes/spacontext';\n\n@Injectable()\nexport class UsageAgreementsService {\n\treadonly baseUri = '/Api/Client/v2/units';\n\n\tconstructor(\n\t\tprivate http: VisibaApiHttp,\n\t\tprivate _spaContext: SpaContext,\n\t) {}\n\n\tpublic getSignatureDocuments(licenceHolderId: number): Observable<ApiResponse<SignatureDocuments>> {\n\t\tlet params = new HttpParams();\n\t\tparams = params.append('licenceHolderId', licenceHolderId.toString());\n\n\t\treturn this.http.getTyped<SignatureDocuments>(\n\t\t\t`${this.baseUri}/${this._spaContext.unitConfig.Unit.UnitId}/UsageAgreements`,\n\t\t\ttrue,\n\t\t\t{ params },\n\t\t);\n\t}\n\n\tpublic signDocument(type: SignableDocumentType, langCode: string): Observable<ApiResponse<void>> {\n\t\tconst sendModel = {\n\t\t\tType: type,\n\t\t\tLanguageCode: langCode,\n\t\t};\n\n\t\treturn this.http.post(`${this.baseUri}/${this._spaContext.unitConfig.Unit.UnitId}/UsageAgreements`, sendModel);\n\t}\n}\n","import { UserFileApiResult } from '../../Models/DropIn/UserFileApiResult';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { VisibaApiHttp } from '../../../Classes/visibaHttp.class';\n\n@Injectable()\nexport class UserFilesService {\n\tconstructor(private _http: VisibaApiHttp) {}\n\n\t/**\n\t * Get file identifier for upload\n\t */\n\tgetFileIdentifier(name: string, length: number, type: string) {\n\t\tconst sendData = {\n\t\t\tName: name,\n\t\t\tLength: length,\n\t\t\tType: type === '' ? this.resolveMimeType(name) : type,\n\t\t};\n\n\t\treturn this._http.postTyped<UserFileApiResult>('/Api/Client/v2/userfiles', sendData);\n\t}\n\n\tuploadFiles(uploadUrl: string, files: any, sendProgress: boolean = false): Observable<any> {\n\t\treturn this._http.postFormData(uploadUrl, [], files, sendProgress);\n\t}\n\n\tprivate resolveMimeType(fileName: string) {\n\t\tconst extension = fileName.split('.')[fileName.split('.').length];\n\t\tswitch (extension) {\n\t\t\tcase 'doc':\n\t\t\t\treturn 'application/msword';\n\t\t\tcase 'docx':\n\t\t\t\treturn 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';\n\t\t\tdefault:\n\t\t\t\treturn 'application/octet-stream';\n\t\t}\n\t}\n}\n","import { Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { ReactNode } from 'react';\nimport { Article } from './article.component';\nimport { Illustration } from './illustration/illustration.component';\nimport styled from 'styled-components';\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tmargin: 0 auto;\n\t\tgap: ${tokens.spacing.x2};\n\t\tmax-width: 100%;\n\t\twidth: 480px;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\t`,\n\tillustration: styled.div`\n\t\tmax-width: 320px;\n\t`,\n\tcontent: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t\tgap: ${tokens.spacing.x2};\n\t\tflex-grow: 1;\n\t`,\n\tcontentTop: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: ${tokens.spacing.x2};\n\t\tflex-grow: 1;\n\n\t\t${tokens.breakpointQuery.small} {\n\t\t\tflex-grow: 0;\n\t\t}\n\t`,\n\tcontentBottom: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\n\t\t${tokens.breakpointQuery.small} {\n\t\t\tflex-direction: row;\n\t\t}\n\t`,\n};\n\ninterface ErrorInterruptedProps {\n\tchildren?: ReactNode;\n\ttitle: string;\n\tbody: string;\n}\n\nexport function ErrorInterrupted({ children, title, body }: ErrorInterruptedProps) {\n\treturn (\n\t\t<elements.container>\n\t\t\t<elements.illustration>\n\t\t\t\t<Illustration type='error' />\n\t\t\t</elements.illustration>\n\t\t\t<elements.content>\n\t\t\t\t<elements.contentTop>\n\t\t\t\t\t<Text.h1 variant='headingMedium'>{title}</Text.h1>\n\t\t\t\t\t<Article>{body}</Article>\n\t\t\t\t</elements.contentTop>\n\n\t\t\t\t{children ? <elements.contentBottom>{children}</elements.contentBottom> : null}\n\t\t\t</elements.content>\n\t\t</elements.container>\n\t);\n}\n","import { I18nAndL10n } from '@application/i18n/i18n_and_l10n';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { Button } from '@cellula/react';\nimport { ErrorInterrupted } from '@component/error_interrupted.component';\nimport { Link } from 'react-router-dom';\n\nexport function FlowError(): JSX.Element {\n\treturn (\n\t\t<ErrorInterrupted\n\t\t\ttitle={withTranslation('View.Guest.ErrorInterrupted.Title')}\n\t\t\tbody={I18nAndL10n.translate('View.Guest.ErrorInterrupted.Body')}\n\t\t>\n\t\t\t<Button as={Link} to='./error'>\n\t\t\t\t{withTranslation('View.Guest.ErrorInterrupted.Button')}\n\t\t\t</Button>\n\t\t</ErrorInterrupted>\n\t);\n}\n","import { signal } from '@preact/signals-react';\nimport { GeneralApiService } from '@api_patient/general_api.service';\nimport { AppointmentAccessApiModel, AppointmentCalendarInfoApiModel } from '@api_patient/generated/general/models';\nimport { UnitsApiService } from '@api_patient/units_api.service';\nimport { HostingService } from '@application/hosting.service';\nimport { UnitService } from '@application/unit.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { AsyncSignalValue } from '@component/async.component';\nimport { UserSettingsService } from '@feature/settings/user_settings.service';\nimport { ControllerProtocol, Injectable } from '@visiba-cortex/instantiation';\nimport { IDP_AUTHENTICATION_PROVIDER_ID } from '../../constants';\nimport { AuthService } from '@application/authentication/auth.service';\nimport { DateService } from '@application/time/date.service';\nimport { createCounterState } from '@application/counter';\n\n@Injectable()\nexport class ViewGuestController implements ControllerProtocol {\n\tpublic availability = signal<Availability>('available');\n\tpublic flowData = signal<AsyncSignalValue<FlowData>>({\n\t\tvalue: null,\n\t\tflowState: 'pending',\n\t});\n\tpublic readonly policyDocuments = signal<{ privacyPolicy: string; termsOfService: string } | null>(null);\n\tprivate counterDisposer: Nullable<ReturnType<typeof createCounterState>[1]> = null;\n\n\tconstructor(\n\t\tprivate readonly generalApiService: GeneralApiService,\n\t\tprivate readonly unitsApiService: UnitsApiService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly userSettingsService: UserSettingsService,\n\t\tprivate readonly hostingService: HostingService,\n\t\tprivate readonly unitService: UnitService,\n\t\tprivate readonly authService: AuthService,\n\t) {\n\t\t// Empty\n\t}\n\n\tasync whenMount(callticket: string) {\n\t\tconst [accessInfoResult, calendarInfoResult, configResult, policyDocumentsResult] = await Promise.all([\n\t\t\tthis.generalApiService.getAppointmentAccessInfo(callticket),\n\t\t\tthis.generalApiService.getCalendarInfo(callticket),\n\t\t\t// We're intentionally over fetching here. It's not good but the way we've orchestrated the data flow.\n\t\t\tthis.unitsApiService.getUnitConfig(this.universalConfig.currentUnitId ?? -1),\n\t\t\tthis.generalApiService.getPolicyDocuments(this.universalConfig.alias, this.universalConfig.selectedLanguageCode.peek()),\n\t\t]);\n\n\t\tif (configResult.err || configResult.ok.data.Offer == null) {\n\t\t\tthis.presentError();\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (policyDocumentsResult.ok) {\n\t\t\tthis.policyDocuments.value = {\n\t\t\t\tprivacyPolicy: policyDocumentsResult.ok.data.PrivacyPolicyUrl,\n\t\t\t\ttermsOfService: policyDocumentsResult.ok.data.TermsOfServiceUrl,\n\t\t\t};\n\t\t}\n\n\t\tconst unitName = configResult.ok.data.Unit.Name;\n\n\t\tif (calendarInfoResult.ok?.data.Completed) {\n\t\t\tthis.availability.value = 'completed';\n\t\t\tthis.flowData.value = {\n\t\t\t\tvalue: {\n\t\t\t\t\treceptionName: unitName,\n\t\t\t\t\taccessInfo: {\n\t\t\t\t\t\tAuthenticationMethod: null,\n\t\t\t\t\t\tClientId: null,\n\t\t\t\t\t\tIdpAuth: null,\n\t\t\t\t\t\tOutsiderId: null,\n\t\t\t\t\t\tResourceId: null,\n\t\t\t\t\t},\n\t\t\t\t\tcalendarInfo: calendarInfoResult.ok.data,\n\t\t\t\t},\n\t\t\t\tflowState: 'accessible',\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (calendarInfoResult.ok?.data.Cancelled) {\n\t\t\tthis.availability.value = 'cancelled';\n\t\t\tthis.flowData.value = {\n\t\t\t\tvalue: {\n\t\t\t\t\treceptionName: unitName,\n\t\t\t\t\taccessInfo: {\n\t\t\t\t\t\tAuthenticationMethod: null,\n\t\t\t\t\t\tClientId: null,\n\t\t\t\t\t\tIdpAuth: null,\n\t\t\t\t\t\tOutsiderId: null,\n\t\t\t\t\t\tResourceId: null,\n\t\t\t\t\t},\n\t\t\t\t\tcalendarInfo: calendarInfoResult.ok.data,\n\t\t\t\t},\n\t\t\t\tflowState: 'accessible',\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (calendarInfoResult.err != null || accessInfoResult.err != null) {\n\t\t\tthis.presentError();\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst accessInfoData = accessInfoResult.ok.data;\n\t\tconst calendarInfoData = calendarInfoResult.ok.data;\n\n\t\tconst isAlreadySignedIn = this.authService.user.peek() != null && accessInfoData.AuthenticationMethod == null;\n\t\tif (isAlreadySignedIn) {\n\t\t\tconst unit = this.unitService.getUnitNodeInTree(this.universalConfig.currentUnitId ?? -1);\n\t\t\twindow.location.href = `${this.hostingService.location}/${unit.route}/appointment/${callticket}`;\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (accessInfoData.AuthenticationMethod == null) {\n\t\t\tthis.presentError();\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (accessInfoData.AuthenticationMethod.AuthenticationProviderId !== IDP_AUTHENTICATION_PROVIDER_ID) {\n\t\t\tconst unit = this.unitService.getUnitNodeInTree(this.universalConfig.currentUnitId ?? -1);\n\t\t\twindow.location.href = `${this.hostingService.location}/${unit.route}/guest-participant/legacy/${callticket}`;\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst lobbyOpenAt = DateService.newDate(calendarInfoData.AppointmentStart).add(-15, 'minutes');\n\t\tconst cannotJoinYet = DateService.newDate().isBefore(lobbyOpenAt);\n\t\tif (cannotJoinYet) {\n\t\t\tthis.availability.value = 'waitingForOpen';\n\n\t\t\tconst [counter, disposer] = createCounterState(lobbyOpenAt);\n\t\t\tthis.counterDisposer = disposer;\n\t\t\tcounter.subscribe(() => {\n\t\t\t\tconst state = counter.read();\n\t\t\t\tif (state.hasElapse) {\n\t\t\t\t\tthis.availability.value = 'available';\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tthis.flowData.value = {\n\t\t\t\tvalue: {\n\t\t\t\t\treceptionName: unitName,\n\t\t\t\t\taccessInfo: accessInfoData,\n\t\t\t\t\tcalendarInfo: calendarInfoData,\n\t\t\t\t},\n\t\t\t\tflowState: 'accessible',\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.availability.value = 'available';\n\t\tthis.flowData.value = {\n\t\t\tvalue: {\n\t\t\t\treceptionName: unitName,\n\t\t\t\taccessInfo: accessInfoData,\n\t\t\t\tcalendarInfo: calendarInfoData,\n\t\t\t},\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n\n\twhenDemount() {\n\t\tthis.counterDisposer?.();\n\t}\n\n\tpublic selectMethod(remoteScheme: string, callticket: string) {\n\t\tconst unit = this.unitService.getUnitNodeInTree(this.universalConfig.currentUnitId ?? -1);\n\n\t\tconst params = new URLSearchParams();\n\t\tparams.append('returnUrl', `/${unit.route}/appointment/${callticket}`);\n\t\tparams.append('languageCode', this.userSettingsService.getSettings().selectedLanguage);\n\t\tparams.append('outsiderType', 'booking');\n\t\tparams.append('outsiderId', callticket);\n\n\t\twindow.location.href = `${this.hostingService.location}/api/auth/${\n\t\t\tthis.universalConfig.licenceHolderId\n\t\t}/outsider/${remoteScheme.toLowerCase()}/challenge?${params.toString()}`;\n\t}\n\n\tprivate presentError() {\n\t\tthis.flowData.value = {\n\t\t\tvalue: null,\n\t\t\tflowState: 'error',\n\t\t};\n\t}\n}\n\nexport interface FlowData {\n\treceptionName: string;\n\taccessInfo: AppointmentAccessApiModel;\n\tcalendarInfo: AppointmentCalendarInfoApiModel;\n}\n\nexport interface Method {\n\tscheme: string;\n\tname: string;\n\tdescription: string;\n\tuseIframe: boolean;\n}\n\ntype Availability = 'available' | 'waitingForOpen' | 'completed' | 'cancelled' | 'closed';\n","import { useResolveController, useService, withNewContainer } from '@visiba-cortex/instantiation';\nimport {\n\tBreakPoints,\n\tDivider,\n\tFlex,\n\tIcon,\n\tIconDictionary,\n\tNotificationAlert,\n\tSpacer,\n\tText,\n\tTextLink,\n\tVisuallyHidden,\n\tuseBreakpoint,\n} from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Title } from '@component/title.component';\nimport { ReactNode, useEffect } from 'react';\nimport styled from 'styled-components';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { useTitle } from '@application/use_title';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { AnalyticProvider } from '@application/analytic/analytic_link/mod';\nimport { Logo } from '@component/logo.component';\nimport { IllustrativeDefault } from './_illustrative.component';\nimport { IframeSheet } from '@component/iframe_sheet.component';\nimport { Async } from '@component/async.component';\nimport { Shimmer } from '@component/new_shimmer.component';\nimport { FlowError } from './flow_error.component';\nimport { DateService } from '@application/time/date.service';\nimport { useParams } from 'react-router';\nimport { FlowData, ViewGuestController } from './view_guest.controller';\nimport { Auth } from '@feature/auth/auth.component';\nimport { useVonageEncryptionWarning, VonageEncryptionWarning } from '@component/vonage_encryption_warning/mod';\n\nconst StyledContainer = styled.div`\n\twidth: 100%;\n\theight: 100%;\n\tmargin: ${tokens.spacing.x2} 0 ${tokens.spacing.x1};\n\n\t${tokens.breakpointQuery.large} {\n\t\tpadding-top: 240px;\n\t\tmax-width: 500px;\n\t\tmax-height: 700px;\n\t}\n`;\n\nconst StyledHeader = styled.div`\n\tdisplay: none;\n\n\t${tokens.breakpointQuery.large} {\n\t\tdisplay: block;\n\t\tposition: fixed;\n\t\ttop: ${tokens.spacing.x3};\n\t\tleft: ${tokens.spacing.x3};\n\t\tz-index: 1;\n\t}\n`;\n\nconst SideAreaContent = styled.div`\n\twidth: 630px;\n`;\n\nconst SideArea = styled.div`\n\tposition: fixed;\n\tright: 0;\n\ttop: 0;\n\tdisplay: flex;\n\twidth: 630px;\n\tmin-height: 100%;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tflex-shrink: 0;\n\tpadding: 0px 65px;\n\tbackground-color: ${tokens.color.bg.surfaceBrand};\n`;\n\nfunction OutletIdp(props: React.PropsWithChildren): JSX.Element {\n\tconst largeBreakpoint = useBreakpoint(BreakPoints.Large);\n\n\treturn (\n\t\t<Flex\n\t\t\tgrow={1}\n\t\t\tdirection='row'\n\t\t\tstyle={{\n\t\t\t\theight: '100%',\n\t\t\t\tminHeight: '100%',\n\t\t\t}}\n\t\t>\n\t\t\t<Flex\n\t\t\t\tgrow={1}\n\t\t\t\tbreakpointLargeAndUp={{\n\t\t\t\t\talign: 'center',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<StyledContainer>\n\t\t\t\t\t<StyledHeader>\n\t\t\t\t\t\t<Logo />\n\t\t\t\t\t</StyledHeader>\n\n\t\t\t\t\t{props.children}\n\t\t\t\t</StyledContainer>\n\t\t\t</Flex>\n\n\t\t\t{largeBreakpoint ? (\n\t\t\t\t<SideAreaContent>\n\t\t\t\t\t<SideArea>\n\t\t\t\t\t\t<IllustrativeDefault />\n\t\t\t\t\t</SideArea>\n\t\t\t\t</SideAreaContent>\n\t\t\t) : null}\n\t\t</Flex>\n\t);\n}\n\nexport const ViewGuest = withNewContainer(function ViewGuest(): JSX.Element {\n\tconst { ticket } = useParams();\n\tconst controller = useResolveController(ViewGuestController, ticket ?? 'no-ticket');\n\tconst analyticService = useService(AnalyticService);\n\tconst { hasEncryptionSupport } = useVonageEncryptionWarning();\n\n\tuseTitle(withTranslation('View.Guest.PageTitle'));\n\n\tuseEffect(\n\t\tfunction analyticQuirk_whenComponentMounts() {\n\t\t\tanalyticService.trackPageView({ customTitle: 'guest' });\n\t\t},\n\t\t[analyticService],\n\t);\n\n\treturn (\n\t\t<AnalyticProvider category={AnalyticCategories.Guest}>\n\t\t\t<OutletIdp>\n\t\t\t\t<Flex\n\t\t\t\t\tgrow='1'\n\t\t\t\t\tgap={tokens.spacing.x2}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tmargin: `0 ${tokens.spacing.x2}`,\n\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t}}\n\t\t\t\t\tdata-testid='sign_in'\n\t\t\t\t>\n\t\t\t\t\t<Async derive={controller.flowData} fallback={<Skeleton />} catch={<FlowError />}>\n\t\t\t\t\t\t{(data) => {\n\t\t\t\t\t\t\tconst start = DateService.newDate(data.calendarInfo.AppointmentStart);\n\t\t\t\t\t\t\tconst end = DateService.newDate(data.calendarInfo.AppointmentEnd);\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x4}>\n\t\t\t\t\t\t\t\t\t\t<Title title={withTranslation('View.Guest.Title')} />\n\n\t\t\t\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x1_5}>\n\t\t\t\t\t\t\t\t\t\t\t<Text.h2 variant='labelSemiBold'>{withTranslation('View.Guest.Details.Title')}</Text.h2>\n\t\t\t\t\t\t\t\t\t\t\t<ListItem icon='calendar'>\n\t\t\t\t\t\t\t\t\t\t\t\t<VisuallyHidden>{withTranslation('View.Guest.Details.Date')}</VisuallyHidden>{' '}\n\t\t\t\t\t\t\t\t\t\t\t\t{DateService.newDate(data.calendarInfo.AppointmentStart).format('D MMMM')}\n\t\t\t\t\t\t\t\t\t\t\t</ListItem>\n\t\t\t\t\t\t\t\t\t\t\t<ListItem icon='clock'>\n\t\t\t\t\t\t\t\t\t\t\t\t<VisuallyHidden>{withTranslation('View.Guest.Details.Time')}</VisuallyHidden>\n\t\t\t\t\t\t\t\t\t\t\t\t{start.format('HH:mm')}-{end.format('HH:mm')} ({end.diff(start, 'minutes')})\n\t\t\t\t\t\t\t\t\t\t\t</ListItem>\n\t\t\t\t\t\t\t\t\t\t\t<ListItem icon='house'>\n\t\t\t\t\t\t\t\t\t\t\t\t<VisuallyHidden>{withTranslation('View.Guest.Details.Reception')}</VisuallyHidden>\n\t\t\t\t\t\t\t\t\t\t\t\t{data.receptionName}\n\t\t\t\t\t\t\t\t\t\t\t</ListItem>\n\t\t\t\t\t\t\t\t\t\t</Flex>\n\n\t\t\t\t\t\t\t\t\t\t<Divider />\n\t\t\t\t\t\t\t\t\t\t{data.calendarInfo.VonageEncryptionRequired &&\n\t\t\t\t\t\t\t\t\t\t!hasEncryptionSupport &&\n\t\t\t\t\t\t\t\t\t\t['waitingForOpen', 'available'].includes(controller.availability.value) ? (\n\t\t\t\t\t\t\t\t\t\t\t<VonageEncryptionWarning />\n\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\t{(() => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst availability = controller.availability.value;\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch (availability) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase 'waitingForOpen':\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn <StatusWaitingForOpeningHour />;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase 'cancelled':\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn <StatusCancelled />;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase 'closed':\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn <StatusClosed />;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase 'completed':\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn <StatusCompleted />;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase 'available':\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn <StatusAvailable data={data} controller={controller} ticket={ticket ?? '-'} />;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst _exhaustiveCheck: never = availability;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t})()}\n\n\t\t\t\t\t\t\t\t\t\t\t\t<Flex\n\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: tokens.color.content.default,\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Text.p variant='bodySmallRegular'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Text variant='bodySmallRegular'>{withTranslation('View.Guest.Terms.1')}</Text>{' '}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<IframeSheet\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc={controller.policyDocuments.value?.termsOfService ?? ''}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttrigger={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<TextLink as='button' size='small'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{withTranslation('Common.ToS')}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</TextLink>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t. <Text variant='bodySmallRegular'>{withTranslation('View.Guest.Terms.2')}</Text>{' '}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<IframeSheet\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc={controller.policyDocuments.value?.privacyPolicy ?? ''}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttrigger={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<TextLink as='button' size='small'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{withTranslation('Common.PP')}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</TextLink>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Text.p>\n\t\t\t\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</Flex>\n\n\t\t\t\t\t\t\t\t\t<Spacer vertical={tokens.spacing.x9} />\n\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}}\n\t\t\t\t\t</Async>\n\t\t\t\t</Flex>\n\t\t\t</OutletIdp>\n\t\t</AnalyticProvider>\n\t);\n});\n\nfunction StatusWaitingForOpeningHour() {\n\treturn <NotificationAlert variant='info'>{withTranslation('View.Guest.Notification.WaitingForOpen')}</NotificationAlert>;\n}\n\nfunction StatusCancelled() {\n\treturn <NotificationAlert variant='info'>{withTranslation('View.Guest.Notification.Cancelled')}</NotificationAlert>;\n}\n\nfunction StatusClosed() {\n\treturn <NotificationAlert variant='info'>{withTranslation('View.Guest.Notification.Closed')}</NotificationAlert>;\n}\n\nfunction StatusCompleted() {\n\treturn <NotificationAlert variant='info'>{withTranslation('View.Guest.Notification.Completed')}</NotificationAlert>;\n}\n\nfunction StatusAvailable({ data, controller, ticket }: { data: FlowData; controller: ViewGuestController; ticket: string }) {\n\tfunction handleMethodClick(remoteScheme: string, callticket: string) {\n\t\tcontroller.selectMethod(remoteScheme, callticket);\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t<Text.h2 variant='headingXSmall'>{withTranslation('View.Guest.SignIn.Title')}</Text.h2>\n\t\t\t\t<Text.p variant='bodyRegular'>{withTranslation('View.Guest.SignIn.Description')}</Text.p>\n\t\t\t</Flex>\n\n\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t<Text.h2 variant='labelSemiBold'>{withTranslation('View.Guest.SignIn.Choices')}</Text.h2>\n\n\t\t\t\t<Auth.MethodLink\n\t\t\t\t\tscheme={data.accessInfo.AuthenticationMethod?.AuthenticationMethodId ?? '-'}\n\t\t\t\t\ttitle={data.accessInfo.AuthenticationMethod?.Name ?? data.accessInfo.AuthenticationMethod?.AuthenticationMethodId ?? '-'}\n\t\t\t\t\tdescription={undefined /* TODO: Add description? */}\n\t\t\t\t\tonClick={() => handleMethodClick(data.accessInfo.AuthenticationMethod?.AuthenticationMethodId ?? '-', ticket)}\n\t\t\t\t/>\n\t\t\t</Flex>\n\t\t</>\n\t);\n}\n\ninterface ListItemProps {\n\tchildren: ReactNode;\n\ticon: keyof IconDictionary;\n}\n\nfunction ListItem(props: ListItemProps) {\n\treturn (\n\t\t<Flex\n\t\t\tgap={tokens.spacing.x1}\n\t\t\tdirection='row'\n\t\t\talign='center'\n\t\t\tstyle={{\n\t\t\t\tcolor: tokens.color.content.default,\n\t\t\t}}\n\t\t>\n\t\t\t<Icon type={props.icon} />\n\t\t\t<Text.p variant='labelRegular'>{props.children}</Text.p>\n\t\t</Flex>\n\t);\n}\n\nfunction Skeleton() {\n\treturn (\n\t\t<Flex gap={tokens.spacing.x3} grow='1'>\n\t\t\t<Shimmer height={40} width='50%' />\n\n\t\t\t<Flex gap={tokens.spacing.x0_5}>\n\t\t\t\t<Shimmer height={15} width='30%' />\n\t\t\t\t<Shimmer height={15} width='80%' />\n\t\t\t\t<Shimmer height={15} width='60%' />\n\t\t\t\t<Shimmer height={15} width='70%' />\n\t\t\t</Flex>\n\t\t</Flex>\n\t);\n}\n","import { AfterViewInit, Component, ElementRef, NgZone, OnDestroy, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { Root, createRoot } from 'react-dom/client';\nimport { ViewGuest } from '../../../patient/src/views/view_guest/mod';\nimport { Route, Routes } from 'react-router';\nimport { sharedResolution } from '@public/src/shared_resolution';\nimport { LocationSelectorService } from '@public/src/application/services/location_selector.service';\nimport { useEffect } from 'react';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { ProgrammaticBrowserRouter } from '@cortex-shim/programmatic_browser_router.component';\n\nconst containerElementName = 'GuestComponent';\nconst FULL_HEIGHT_CLASS_NAME = 'js-fullHeight';\nconst ALTERNATIVE_BACKGROUND_CLASS_NAME = 'js-alternativeBackground';\n\n@Component({\n\tstandalone: false,\n\tselector: 'guest-component',\n\ttemplate: ` <div class=\"wrapper-container full-height\" #${containerElementName}></div> `,\n\tencapsulation: ViewEncapsulation.None,\n\tstyles: [\n\t\t`\n\t\t\t& .full-height {\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t`,\n\t],\n})\nexport class GuestWrapperComponent implements OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(private readonly ngZone: NgZone) {\n\t\t// Empty\n\t}\n\n\tngAfterViewInit() {\n\t\tdocument.body.classList.add(FULL_HEIGHT_CLASS_NAME);\n\t\tdocument.body.classList.add(ALTERNATIVE_BACKGROUND_CLASS_NAME);\n\t\tthis.render();\n\t}\n\n\tngOnDestroy() {\n\t\tdocument.body.classList.remove(FULL_HEIGHT_CLASS_NAME);\n\t\tdocument.body.classList.remove(ALTERNATIVE_BACKGROUND_CLASS_NAME);\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate async render() {\n\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\t\tconst universalConfigService = sharedResolution.resolve(UniversalConfig);\n\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tconst split = locationSelectorService.location.route.split('/');\n\t\tsplit.splice(0, 1);\n\t\tconst routeBase = split.join('/');\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper useGlobals>\n\t\t\t\t\t<ProgrammaticBrowserRouter basename={universalConfigService.alias} forceNewHistory>\n\t\t\t\t\t\t<Routes>\n\t\t\t\t\t\t\t<Route path={routeBase}>\n\t\t\t\t\t\t\t\t<Route path='guest-participant/:ticket' element={<ViewGuest />} />\n\t\t\t\t\t\t\t\t<Route path='*' element={<FunkyAngularRedirect />} />\n\t\t\t\t\t\t\t</Route>\n\t\t\t\t\t\t</Routes>\n\t\t\t\t\t</ProgrammaticBrowserRouter>\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n\nfunction FunkyAngularRedirect() {\n\tconst universalConfig = useResolve(UniversalConfig);\n\n\tuseEffect(() => {\n\t\twindow.__TEMP__overrideNavigation(universalConfig.alias);\n\t}, [universalConfig]);\n\n\treturn null;\n}\n","import React from 'react';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport styled from 'styled-components';\n\nconst Container = styled.div`\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: column;\n\tbackground: #fcfcfc;\n\twidth: 100%;\n\theight: 100%;\n\tborder-radius: 16px;\n\toverflow-y: auto;\n\tz-index: 0;\n\tpadding: 16px;\n\tmargin: 0 auto;\n\n\t${tokens.breakpointQuery.medium} {\n\t\tmargin: ${tokens.spacing.x9} 0;\n\t\tmin-height: 80vh;\n\t\tmax-width: 650px;\n\t\tbox-shadow: ${tokens.elevation.skim};\n\t}\n`;\n\nconst Background = styled.div`\n\tdisplay: flex;\n\tflex-grow: 1;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbackground: #fafbfb;\n\tposition: relative;\n\n\t--shadow-color: 218deg 19% 71%;\n\t--shadow-color: 212deg 25% 65%;\n\t--shadow-elevation-low: 0px 0.3px 0.4px hsl(var(--shadow-color) / 0.16), 0px 0.4px 0.5px -0.8px hsl(var(--shadow-color) / 0.21),\n\t\t0px 0.9px 1.1px -1.6px hsl(var(--shadow-color) / 0.26);\n\t--shadow-elevation-medium: 0px 0.3px 0.4px hsl(var(--shadow-color) / 0.16), 0px 0.9px 1.1px -0.5px hsl(var(--shadow-color) / 0.21),\n\t\t0px 2.1px 2.6px -1.1px hsl(var(--shadow-color) / 0.25), 0.1px 4.7px 5.9px -1.6px hsl(var(--shadow-color) / 0.29);\n\t--shadow-elevation-high: 0px 0.3px 0.4px hsl(var(--shadow-color) / 0.17), 0px 1.7px 2.1px -0.3px hsl(var(--shadow-color) / 0.2),\n\t\t0px 3.1px 3.9px -0.5px hsl(var(--shadow-color) / 0.23), 0.1px 5.1px 6.4px -0.8px hsl(var(--shadow-color) / 0.25),\n\t\t0.1px 8.1px 10.1px -1.1px hsl(var(--shadow-color) / 0.28), 0.2px 12.8px 16px -1.4px hsl(var(--shadow-color) / 0.3),\n\t\t0.3px 19.5px 24.4px -1.6px hsl(var(--shadow-color) / 0.33);\n\n\t&::before {\n\t\tdisplay: block;\n\t\tcontent: '';\n\t\tdisplay: flex;\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tbackground: linear-gradient(150deg, transparent 26%, ${primitiveColorTokens.primary['300']});\n\t\tpointer-events: none;\n\t\tz-index: 0;\n\t\topacity: 0.9;\n\t}\n\n\t&.stacked {\n\t\tscale: 0.9;\n\t\tborder-radius: 32px;\n\t\toverflow: hidden;\n\t\topacity: 0.5;\n\t}\n`;\n\ninterface Props {\n\tchildren: React.ReactNode;\n}\n\nexport function BackgroundOutlet(props: Props) {\n\treturn (\n\t\t<Background>\n\t\t\t<Container>{props.children}</Container>\n\t\t</Background>\n\t);\n}\n","import { withTranslation } from '@application/i18n/with_translation';\nimport { useResolve, useResolveController } from '@visiba-cortex/instantiation';\nimport { useEffect } from 'react';\nimport { DynamicForm } from '@feature/dynamic_form/dynamic_form.component';\nimport { Flex, Form, useFormContext } from '@cellula/react';\nimport { ButtonArrange } from '@component/button_arrange.component';\nimport { TopBar } from '@component/top_bar.component';\nimport { FormWorker } from '@feature/dynamic_form/form_manager/form_worker';\nimport { AppointmentController } from '../view_appointment.controller';\nimport { BackgroundOutlet } from './_background_outlet';\nimport { RouterService } from '@cortex-shim/router.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { useParams } from 'react-router';\nimport { FormOpportunity } from '@api_patient/generated/clientv2/models/form-opportunity';\n\ninterface SingleFormProps {\n\tworker: Readonly<FormWorker>;\n}\n\nexport function SingleForm(props: SingleFormProps) {\n\tconst controller = useResolveController(AppointmentController, '');\n\n\tuseEffect(() => {\n\t\tconst disposers = [\n\t\t\tprops.worker.events.on('onCommit', () => {\n\t\t\t\tcontroller.changeForm(props.worker.opportunity);\n\t\t\t\tdisposers.forEach((x) => x());\n\t\t\t}),\n\t\t\tprops.worker.events.on('onAbort', () => {\n\t\t\t\tcontroller.changeForm(props.worker.opportunity);\n\t\t\t\tdisposers.forEach((x) => x());\n\t\t\t}),\n\t\t];\n\n\t\treturn () => {\n\t\t\tdisposers.forEach((x) => x());\n\t\t};\n\t}, [controller, props.worker]);\n\n\treturn (\n\t\t<BackgroundOutlet>\n\t\t\t<TopBar.Outlet />\n\n\t\t\t<Flex\n\t\t\t\tgrow='1'\n\t\t\t\tstyle={{\n\t\t\t\t\tmargin: '0 auto',\n\t\t\t\t\twidth: '100%',\n\t\t\t\t\tmaxWidth: '600px',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<DynamicForm.Root formWorker={props.worker}>\n\t\t\t\t\t<TopBarContent worker={props.worker} />\n\n\t\t\t\t\t<DynamicForm.Description />\n\t\t\t\t\t<DynamicForm.Content>\n\t\t\t\t\t\t<Flex grow={1} justify='flex-end'>\n\t\t\t\t\t\t\t<ButtonArrange>\n\t\t\t\t\t\t\t\t<Form.SubmitButton>{withTranslation('PW.Common.Next')}</Form.SubmitButton>\n\t\t\t\t\t\t\t</ButtonArrange>\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</DynamicForm.Content>\n\t\t\t\t</DynamicForm.Root>\n\t\t\t</Flex>\n\t\t</BackgroundOutlet>\n\t);\n}\n\ninterface TopBarContentProps {\n\tworker: Readonly<FormWorker>;\n}\n\nfunction TopBarContent(props: TopBarContentProps) {\n\tconst controller = useResolveController(AppointmentController, '');\n\tconst formContext = useFormContext();\n\tconst _routerService = useResolve(RouterService);\n\tconst universalConfig = useResolve(UniversalConfig);\n\tconst { ticket } = useParams();\n\n\tfunction handleGoBackIntercept(event: Event) {\n\t\tevent.preventDefault();\n\t\tevent.stopImmediatePropagation();\n\n\t\tconst isLastPage = props.worker.isFirstOrLastPage();\n\t\tif (!isLastPage) {\n\t\t\tprops.worker.changePage('backwards', formContext?.control.getValues() ?? {});\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst result = controller.getFormPosition(props.worker);\n\t\tif (result === -1) {\n\t\t\tconst routeStr = universalConfig.alias + '/visits/video/' + (ticket ?? 'not_found');\n\t\t\t// routerService.navigateByUrl(routeStr);\n\n\t\t\t// Help me escape this hell.\n\t\t\twindow.location.href = routeStr;\n\t\t} else {\n\t\t\tcontroller.changeFormByIndex(props.worker.opportunity, result);\n\t\t}\n\t}\n\n\treturn (\n\t\t<TopBar.Content\n\t\t\ttitle={props.worker.header}\n\t\t\tgoBack={props.worker.opportunity === FormOpportunity.AfterBooking ? !props.worker.isFirstPage() : true}\n\t\t\tgoBackIntercept={handleGoBackIntercept}\n\t\t/>\n\t);\n}\n","import { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport styled from 'styled-components';\n\nconst Container = styled.div`\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: column;\n\tbackground: #fcfcfc;\n\twidth: 100%;\n\theight: 100%;\n\tborder-radius: 16px;\n\toverflow-y: auto;\n\tz-index: 0;\n\tpadding: ${tokens.size.x2};\n\tmargin: 0 auto;\n\n\t${tokens.breakpointQuery.medium} {\n\t\twidth: unset;\n\t\theight: unset;\n\t\tbox-shadow: ${tokens.elevation.skim};\n\t\tpadding: ${tokens.size.x4};\n\t\tmargin-top: 0;\n\t}\n`;\n\nconst Background = styled.div`\n\tdisplay: flex;\n\tflex-grow: 1;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbackground: #fafbfb;\n\tposition: relative;\n\n\t--shadow-color: 218deg 19% 71%;\n\t--shadow-color: 212deg 25% 65%;\n\t--shadow-elevation-low: 0px 0.3px 0.4px hsl(var(--shadow-color) / 0.16), 0px 0.4px 0.5px -0.8px hsl(var(--shadow-color) / 0.21),\n\t\t0px 0.9px 1.1px -1.6px hsl(var(--shadow-color) / 0.26);\n\t--shadow-elevation-medium: 0px 0.3px 0.4px hsl(var(--shadow-color) / 0.16), 0px 0.9px 1.1px -0.5px hsl(var(--shadow-color) / 0.21),\n\t\t0px 2.1px 2.6px -1.1px hsl(var(--shadow-color) / 0.25), 0.1px 4.7px 5.9px -1.6px hsl(var(--shadow-color) / 0.29);\n\t--shadow-elevation-high: 0px 0.3px 0.4px hsl(var(--shadow-color) / 0.17), 0px 1.7px 2.1px -0.3px hsl(var(--shadow-color) / 0.2),\n\t\t0px 3.1px 3.9px -0.5px hsl(var(--shadow-color) / 0.23), 0.1px 5.1px 6.4px -0.8px hsl(var(--shadow-color) / 0.25),\n\t\t0.1px 8.1px 10.1px -1.1px hsl(var(--shadow-color) / 0.28), 0.2px 12.8px 16px -1.4px hsl(var(--shadow-color) / 0.3),\n\t\t0.3px 19.5px 24.4px -1.6px hsl(var(--shadow-color) / 0.33);\n\n\t&::before {\n\t\tdisplay: block;\n\t\tcontent: '';\n\t\tdisplay: flex;\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tbackground: linear-gradient(150deg, transparent 26%, ${primitiveColorTokens.primary['300']});\n\t\tpointer-events: none;\n\t\tz-index: 0;\n\t\topacity: 0.9;\n\t}\n\n\t&.stacked {\n\t\tscale: 0.9;\n\t\tborder-radius: 32px;\n\t\toverflow: hidden;\n\t\topacity: 0.5;\n\t}\n`;\n\ninterface BackgroundOutletProps {\n\tchildren: React.ReactNode;\n}\n\nexport function BackgroundOutlet(props: BackgroundOutletProps) {\n\treturn (\n\t\t<Background>\n\t\t\t<Container>{props.children}</Container>\n\t\t</Background>\n\t);\n}\n","// - Return `null` instead of `NaN` on failure.\n// - Doesn't parse things like `42foo` as `42` (vs using `Number.parseFloat()`)\n// - Doesn't parse whitespace-only strings as `0` (vs using `Number()`)\n// - Doesn't parse \"NaN\" into `NaN` or \"Infinity\" into `Infinity` (vs using `Number()`)\n// or `Number.parseFloat()`)\n// - In short, only parses token sequences that are *exactly* valid JS numbers.\nexport function numberSafeParse(input: string): number | null {\n\tif (input == null || input.trim() === '') return null;\n\tconst parsed = Number(input);\n\n\tif (!Number.isFinite(parsed)) return null;\n\n\treturn parsed;\n}\n","import classNames from 'classnames';\nimport { motion } from 'framer-motion';\nimport React, { useLayoutEffect, useRef, useState } from 'react';\nimport styled from 'styled-components';\n\ninterface Props {\n\tchildren: React.ReactNode;\n\tclassName?: string;\n}\n\nconst StyledContent = styled(motion.div)`\n\toverflow: hidden;\n`;\n\nexport function AnimateChangeInHeight({ children, className }: Props) {\n\tconst containerRef = useRef<HTMLDivElement | null>(null);\n\tconst [height, setHeight] = useState<number | 'auto'>('auto');\n\n\tuseLayoutEffect(() => {\n\t\tif (containerRef.current) {\n\t\t\tconst resizeObserver = new ResizeObserver((entries) => {\n\t\t\t\t// We only have one entry, so we can use entries[0].\n\t\t\t\tlet observedHeight: 'auto' | number = entries[0].contentRect.height;\n\t\t\t\tif (observedHeight === 0) {\n\t\t\t\t\tobservedHeight = 'auto';\n\t\t\t\t}\n\n\t\t\t\tsetHeight(observedHeight);\n\t\t\t});\n\n\t\t\tresizeObserver.observe(containerRef.current);\n\n\t\t\treturn () => {\n\t\t\t\tresizeObserver.disconnect();\n\t\t\t};\n\t\t}\n\t}, []);\n\n\treturn (\n\t\t<StyledContent className={classNames(className)} style={{ height }} animate={{ height }} transition={{ duration: 0.2 }}>\n\t\t\t<div ref={containerRef}>{children}</div>\n\t\t</StyledContent>\n\t);\n}\n","import { Flex, Text, Form, InputTextArea, CellulaFormSubmitData, toast, InputRating } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Injectable, useResolveController, ControllerProtocol, useResolve } from '@visiba-cortex/instantiation';\nimport { ButtonArrange } from '@component/button_arrange.component';\nimport { Async, AsyncSignalValue } from '@component/async.component';\nimport { signal } from '@preact/signals-react';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { AppointmentController } from '../view_appointment.controller';\nimport { BackgroundOutlet } from './_background_outlet';\nimport { Shimmer } from '@component/new_shimmer.component';\nimport { numberSafeParse } from '@module/safe_number_parse';\nimport { AnimateChangeInHeight } from '@component/animate_change_in_height.component';\nimport { AnswerSurveyQuestionInput, OfficeApiService, SurveyAnswerValueType } from '@api_patient/office_api.service';\nimport { UserSettingsService } from '@feature/settings/user_settings.service';\nimport { I18nAndL10n } from '@application/i18n/mod';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { TopBar } from '@component/top_bar.component';\n\nexport function ScreenEvaluationHcp() {\n\tconst controller = useResolveController(EvaluationHcpController);\n\n\tconst appointmentController = useResolve(AppointmentController);\n\n\tfunction handleGoBackIntercept(event: Event) {\n\t\tevent.preventDefault();\n\t\tappointmentController.handleReconnect();\n\t}\n\n\treturn (\n\t\t<Form.Root\n\t\t\tonSubmit={(d) => controller.handleSubmit(d)}\n\t\t\toptions={{\n\t\t\t\tdefaultValues: {},\n\t\t\t}}\n\t\t>\n\t\t\t<BackgroundOutlet>\n\t\t\t\t<TopBar.Outlet />\n\t\t\t\t<TopBar.Content goBack goBackIntercept={handleGoBackIntercept} />\n\n\t\t\t\t<Flex\n\t\t\t\t\tgrow='1'\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tmargin: `0 auto`,\n\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\tmaxWidth: '600px',\n\t\t\t\t\t}}\n\t\t\t\t\tgap={tokens.size.x5}\n\t\t\t\t>\n\t\t\t\t\t<Flex gap={tokens.size.x1}>\n\t\t\t\t\t\t<Text.h1 variant='headingMedium'>{withTranslation('View.Appointment.ScreenEvaluationHcp.Title')}</Text.h1>\n\t\t\t\t\t\t<Text.p variant='bodyRegular'>{withTranslation('View.Appointment.ScreenEvaluationHcp.Description')}</Text.p>\n\t\t\t\t\t</Flex>\n\n\t\t\t\t\t<AnimateChangeInHeight>\n\t\t\t\t\t\t<Async derive={controller.state} fallback={<DynamicFormRootSkeleton />} fallbackDelay={0}>\n\t\t\t\t\t\t\t{(questions) => (\n\t\t\t\t\t\t\t\t<Flex gap={tokens.size.x4}>\n\t\t\t\t\t\t\t\t\t{questions.map((x) => {\n\t\t\t\t\t\t\t\t\t\tswitch (x.type) {\n\t\t\t\t\t\t\t\t\t\t\tcase 'Int4SatisfactionScore':\n\t\t\t\t\t\t\t\t\t\t\t\treturn <QuestionTypeInt4SatisfactionScore key={x.alias} question={x} />;\n\t\t\t\t\t\t\t\t\t\t\tcase 'Text500':\n\t\t\t\t\t\t\t\t\t\t\t\treturn <QuestionTypeText500 key={x.alias} question={x} />;\n\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</Async>\n\t\t\t\t\t</AnimateChangeInHeight>\n\n\t\t\t\t\t<Flex grow={1} justify='flex-end' gap={tokens.size.x3}>\n\t\t\t\t\t\t<Form.Error />\n\t\t\t\t\t\t<ButtonArrange>\n\t\t\t\t\t\t\t<Form.SubmitButton>{withTranslation('View.Appointment.ScreenEvaluationHcp.Continue')}</Form.SubmitButton>\n\t\t\t\t\t\t</ButtonArrange>\n\t\t\t\t\t</Flex>\n\t\t\t\t</Flex>\n\t\t\t</BackgroundOutlet>\n\t\t</Form.Root>\n\t);\n}\n\ninterface QuestionTypeInt4SatisfactionScoreProps {\n\tquestion: Question;\n}\n\nfunction QuestionTypeInt4SatisfactionScore(props: QuestionTypeInt4SatisfactionScoreProps) {\n\treturn (\n\t\t<Flex\n\t\t\talign='center'\n\t\t\tstyle={{\n\t\t\t\tmargin: `${tokens.size.x5} 0`,\n\t\t\t}}\n\t\t>\n\t\t\t<InputRating.Root direction='horizontal' label={props.question.text} name={props.question.alias} max={4} />\n\t\t</Flex>\n\t);\n}\n\ninterface QuestionTypeText500Props {\n\tquestion: Question;\n}\n\nfunction QuestionTypeText500(props: QuestionTypeText500Props) {\n\treturn (\n\t\t<InputTextArea\n\t\t\tlabel={props.question.text}\n\t\t\tname={props.question.alias}\n\t\t\tminHeight={200}\n\t\t\talwaysShowCharacterCount\n\t\t\tcharacterCount={500}\n\t\t\toptions={{\n\t\t\t\tmaxLength: 500,\n\t\t\t}}\n\t\t/>\n\t);\n}\n\n@Injectable()\nclass EvaluationHcpController implements ControllerProtocol {\n\tpublic state = signal<AsyncSignalValue<Question[]>>({\n\t\tvalue: null,\n\t\tflowState: 'pending',\n\t});\n\tprivate surveyAlias: Nullable<string> = null;\n\n\tconstructor(\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly appointmentController: AppointmentController,\n\t\tprivate readonly officeApiService: OfficeApiService,\n\t\tprivate readonly userSettingsService: UserSettingsService,\n\t) {\n\t\t// Empty\n\t}\n\n\tasync whenMount() {\n\t\tthis.surveyAlias = (this.appointmentController.appointmentInfo?.peek() ?? {}).isHost ? 'CallCompletedResource' : 'CallCompleted';\n\t\tconst result = await this.officeApiService.survey(\n\t\t\tthis.universalConfig.licenceHolderId,\n\t\t\tthis.surveyAlias,\n\t\t\tthis.userSettingsService.getSettings().selectedLanguage,\n\t\t);\n\t\tif (result.err) {\n\t\t\tthis.state.value = {\n\t\t\t\tflowState: 'error',\n\t\t\t\tvalue: null,\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.state.value = {\n\t\t\tflowState: 'accessible',\n\t\t\tvalue: result.ok.data.map((x) => ({\n\t\t\t\tid: x.SurveyQuestionId,\n\t\t\t\talias: x.QuestionAlias,\n\t\t\t\ttext: x.QuestionText ?? '',\n\t\t\t\tsortValue: x.SortValue,\n\t\t\t\ttype: x.AnswerType,\n\t\t\t})),\n\t\t};\n\t}\n\n\tpublic async handleSubmit(data: CellulaFormSubmitData) {\n\t\tconst payload = {\n\t\t\tBookingCallTicket: this.appointmentController.savedTicket ?? '',\n\t\t\tAnswers: Object.entries(data)\n\t\t\t\t.filter(([, value]) => value != null && value !== '')\n\t\t\t\t.map(([key, value]) => this.createSurveyQuestionAnswer(key, value)),\n\t\t};\n\n\t\tconst result = await this.officeApiService.surveyAnswers(\n\t\t\tthis.universalConfig.licenceHolderId,\n\t\t\tthis.surveyAlias ?? 'MISSING_ALIAS',\n\t\t\tpayload,\n\t\t);\n\t\tif (result.err) {\n\t\t\ttoast({\n\t\t\t\tlabel: I18nAndL10n.translate('PW.Common.Error.Unknown'),\n\t\t\t\tvariant: 'danger',\n\t\t\t});\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.appointmentController.handleSurveyEnd();\n\t}\n\n\tprivate createSurveyQuestionAnswer(alias: string, value: string): AnswerSurveyQuestionInput {\n\t\tconst parsed = numberSafeParse(value);\n\t\tif (parsed != null) {\n\t\t\treturn {\n\t\t\t\tQuestionAlias: alias,\n\t\t\t\tIntValue: parsed,\n\t\t\t\tStringValue: null,\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\tQuestionAlias: alias,\n\t\t\tIntValue: null,\n\t\t\tStringValue: value,\n\t\t};\n\t}\n}\n\ninterface Question {\n\tid: number;\n\talias: string;\n\ttext: string;\n\tsortValue: number;\n\ttype: SurveyAnswerValueType;\n}\n\nfunction DynamicFormRootSkeleton() {\n\treturn (\n\t\t<Flex\n\t\t\tgap={tokens.spacing.x3}\n\t\t\tstyle={{\n\t\t\t\theight: '400px',\n\t\t\t}}\n\t\t>\n\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t<Shimmer height={tokens.size.x3} width='60%' />\n\t\t\t</Flex>\n\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t<Shimmer height={tokens.size.x2} width='30%' />\n\t\t\t\t<Shimmer height={tokens.size.x9} />\n\t\t\t</Flex>\n\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t<Shimmer height={tokens.size.x2} width='42%' />\n\t\t\t\t<Shimmer height={tokens.size.x5} />\n\t\t\t</Flex>\n\t\t</Flex>\n\t);\n}\n","import { Flex, Text, Form, InputTextArea, CellulaFormSubmitData, toast, InputRating, Button } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Injectable, useResolveController, ControllerProtocol, useResolve } from '@visiba-cortex/instantiation';\nimport { ButtonArrange } from '@component/button_arrange.component';\nimport { Async, AsyncSignalValue } from '@component/async.component';\nimport { signal } from '@preact/signals-react';\nimport { AppointmentApiService } from '@api_patient/appointment_api.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { AppointmentController } from '../view_appointment.controller';\nimport { BackgroundOutlet } from './_background_outlet';\nimport { Shimmer } from '@component/new_shimmer.component';\nimport { numberSafeParse } from '@module/safe_number_parse';\nimport type { SurveyAnswerValueType, SurveyQuestionAnswerApiModel } from '@api_patient/generated/clientv2/models';\nimport { AnimateChangeInHeight } from '@component/animate_change_in_height.component';\nimport { ScreenEvaluationHcp } from './screen_evaluation_hcp.component';\nimport { I18nAndL10n } from '@application/i18n/mod';\nimport styled from 'styled-components';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { TopBar } from '@component/top_bar.component';\n\nexport function ScreenEvaluation() {\n\tconst appointmentController = useResolveController(AppointmentController, '');\n\n\tif (appointmentController.appointmentInfo.value?.isHcp) {\n\t\treturn <ScreenEvaluationHcp />;\n\t}\n\n\treturn <ScreenEvaluationPatient />;\n}\n\nfunction ScreenEvaluationPatient() {\n\tconst appointmentController = useResolve(AppointmentController);\n\tconst controller = useResolveController(EvaluationController);\n\n\tfunction handleGoBackIntercept(event: Event) {\n\t\tevent.preventDefault();\n\t\tappointmentController.handleReconnect();\n\t}\n\n\tfunction handleSkipClick() {\n\t\tcontroller.skip();\n\t}\n\n\treturn (\n\t\t<Form.Root\n\t\t\tonSubmit={(d) => controller.submit(d)}\n\t\t\toptions={{\n\t\t\t\tdefaultValues: {},\n\t\t\t}}\n\t\t>\n\t\t\t<BackgroundOutlet>\n\t\t\t\t<TopBar.Outlet />\n\t\t\t\t<TopBar.Content goBack goBackIntercept={handleGoBackIntercept} />\n\n\t\t\t\t<Flex\n\t\t\t\t\tgrow='1'\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tmargin: `0 auto`,\n\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\tmaxWidth: '600px',\n\t\t\t\t\t}}\n\t\t\t\t\tgap={tokens.size.x5}\n\t\t\t\t>\n\t\t\t\t\t<Flex gap={tokens.size.x1}>\n\t\t\t\t\t\t<Text.h1 variant='headingMedium'>{withTranslation('View.Appointment.ScreenEvaluation.Title')}</Text.h1>\n\t\t\t\t\t\t<Text.p variant='bodyRegular'>{withTranslation('View.Appointment.ScreenEvaluation.Description')}</Text.p>\n\t\t\t\t\t</Flex>\n\n\t\t\t\t\t<AnimateChangeInHeight>\n\t\t\t\t\t\t<Async derive={controller.state} fallback={<DynamicFormRootSkeleton />} fallbackDelay={0}>\n\t\t\t\t\t\t\t{(questions) => (\n\t\t\t\t\t\t\t\t<Flex gap={tokens.size.x4}>\n\t\t\t\t\t\t\t\t\t{questions.map((x) => {\n\t\t\t\t\t\t\t\t\t\tswitch (x.type) {\n\t\t\t\t\t\t\t\t\t\t\tcase 'Int4SatisfactionScore':\n\t\t\t\t\t\t\t\t\t\t\t\treturn <QuestionTypeInt4SatisfactionScore key={x.alias} question={x} />;\n\t\t\t\t\t\t\t\t\t\t\tcase 'Text500':\n\t\t\t\t\t\t\t\t\t\t\t\treturn <QuestionTypeText500 key={x.alias} question={x} />;\n\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</Async>\n\t\t\t\t\t</AnimateChangeInHeight>\n\n\t\t\t\t\t<Flex grow={1} justify='flex-end' gap={tokens.size.x3}>\n\t\t\t\t\t\t<Form.Error />\n\t\t\t\t\t\t<ButtonArrange>\n\t\t\t\t\t\t\t<Button variant='secondary' onClick={handleSkipClick}>\n\t\t\t\t\t\t\t\t{withTranslation('View.Appointment.ScreenEvaluation.Skip')}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t<Form.SubmitButton>{withTranslation('View.Appointment.ScreenEvaluation.Continue')}</Form.SubmitButton>\n\t\t\t\t\t\t</ButtonArrange>\n\t\t\t\t\t</Flex>\n\t\t\t\t</Flex>\n\t\t\t</BackgroundOutlet>\n\t\t</Form.Root>\n\t);\n}\n\ninterface QuestionTypeInt4SatisfactionScoreProps {\n\tquestion: Question;\n}\n\nconst StyledRatingWrapper = styled.div`\n\tdisplay: flex;\n\tjustify-content: center;\n\tmargin: ${tokens.size.x5} 0;\n\n\tfieldset {\n\t\talign-items: center;\n\t}\n`;\n\nfunction QuestionTypeInt4SatisfactionScore(props: QuestionTypeInt4SatisfactionScoreProps) {\n\treturn (\n\t\t<StyledRatingWrapper>\n\t\t\t<InputRating.Root direction='horizontal' label={props.question.text} name={props.question.alias} max={4} />\n\t\t</StyledRatingWrapper>\n\t);\n}\n\ninterface QuestionTypeText500Props {\n\tquestion: Question;\n}\n\nfunction QuestionTypeText500(props: QuestionTypeText500Props) {\n\treturn (\n\t\t<InputTextArea\n\t\t\tlabel={props.question.text}\n\t\t\tname={props.question.alias}\n\t\t\tminHeight={200}\n\t\t\talwaysShowCharacterCount\n\t\t\tcharacterCount={500}\n\t\t\toptions={{\n\t\t\t\tmaxLength: 500,\n\t\t\t}}\n\t\t/>\n\t);\n}\n\n@Injectable()\nclass EvaluationController implements ControllerProtocol {\n\tpublic state = signal<AsyncSignalValue<Question[]>>({\n\t\tvalue: null,\n\t\tflowState: 'pending',\n\t});\n\n\tconstructor(\n\t\tprivate readonly appointmentApiService: AppointmentApiService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly appointmentController: AppointmentController,\n\t) {\n\t\t// Empty\n\t}\n\n\tasync whenMount() {\n\t\tconst result = await this.appointmentApiService.survey(this.universalConfig.selectedUnitId);\n\t\tif (result.err) {\n\t\t\tthis.state.value = {\n\t\t\t\tflowState: 'error',\n\t\t\t\tvalue: null,\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.state.value = {\n\t\t\tflowState: 'accessible',\n\t\t\tvalue: result.ok.data.Questions.map((x) => ({\n\t\t\t\tid: x.Id,\n\t\t\t\talias: x.Alias,\n\t\t\t\ttext: x.Text ?? '',\n\t\t\t\tsortValue: x.SortValue,\n\t\t\t\ttype: x.Type,\n\t\t\t})),\n\t\t};\n\t}\n\n\tpublic async skip() {\n\t\tconst result = await this.sendSurveyAnswers([]);\n\t\tif (result.err) return;\n\n\t\tthis.appointmentController.handleSurveyEnd();\n\t}\n\n\tpublic async submit(data: CellulaFormSubmitData) {\n\t\tconst answers = Object.entries(data)\n\t\t\t.filter(([, value]) => value != null && value !== '')\n\t\t\t.map(([key, value]) => this.createSurveyQuestionAnswer(key, value));\n\n\t\tconst result = await this.sendSurveyAnswers(answers);\n\t\tif (result.err) return;\n\n\t\tthis.appointmentController.handleSurveyEnd();\n\t}\n\n\tprivate async sendSurveyAnswers(answers: SurveyQuestionAnswerApiModel[]): AsyncResult {\n\t\tconst payload = {\n\t\t\tAppointmentTicket: this.appointmentController.savedTicket ?? '',\n\t\t\tAnswers: answers,\n\t\t};\n\n\t\tconst result = await this.appointmentApiService.surveyAnswers(this.universalConfig.selectedUnitId, payload);\n\t\tif (result.err) {\n\t\t\ttoast({\n\t\t\t\tlabel: I18nAndL10n.translate('PW.Common.Error.Unknown'),\n\t\t\t\tvariant: 'danger',\n\t\t\t});\n\n\t\t\treturn Err(result.err);\n\t\t}\n\n\t\treturn Ok();\n\t}\n\n\tprivate createSurveyQuestionAnswer(alias: string, value: string): SurveyQuestionAnswerApiModel {\n\t\tconst parsed = numberSafeParse(value);\n\t\tif (parsed != null) {\n\t\t\treturn {\n\t\t\t\tAlias: alias,\n\t\t\t\tIntValue: parsed,\n\t\t\t\tStringValue: null,\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\tAlias: alias,\n\t\t\tIntValue: null,\n\t\t\tStringValue: value,\n\t\t};\n\t}\n}\n\ninterface Question {\n\tid: number;\n\talias: string;\n\ttext: string;\n\tsortValue: number;\n\ttype: SurveyAnswerValueType;\n}\n\nfunction DynamicFormRootSkeleton() {\n\treturn (\n\t\t<Flex\n\t\t\tgap={tokens.spacing.x3}\n\t\t\tstyle={{\n\t\t\t\theight: '400px',\n\t\t\t}}\n\t\t>\n\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t<Shimmer height={tokens.size.x3} width='60%' />\n\t\t\t</Flex>\n\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t<Shimmer height={tokens.size.x2} width='30%' />\n\t\t\t\t<Shimmer height={tokens.size.x9} />\n\t\t\t</Flex>\n\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t<Shimmer height={tokens.size.x2} width='42%' />\n\t\t\t\t<Shimmer height={tokens.size.x5} />\n\t\t\t</Flex>\n\t\t</Flex>\n\t);\n}\n","import { useParams } from 'react-router-dom';\nimport React, { Suspense } from 'react';\n\nconst RetinaComponentLazy = React.lazy(() => import('./_retina.component').then((module) => ({ default: module.Video })));\n\nexport function ScreenVideo() {\n\tconst { ticket } = useParams();\n\n\tif (ticket == null) return null;\n\n\treturn (\n\t\t<div\n\t\t\tstyle={{\n\t\t\t\theight: '100%',\n\t\t\t\twidth: '100%',\n\t\t\t\tposition: 'absolute',\n\t\t\t\tdisplay: 'flex',\n\t\t\t}}\n\t\t>\n\t\t\t<Suspense fallback={null}>\n\t\t\t\t<RetinaComponentLazy ticket={ticket} />\n\t\t\t</Suspense>\n\t\t</div>\n\t);\n}\n","import { primitiveColorTokens } from '@cellula/react-theme-patient';\n\nexport function BrandedIllustrationDoor() {\n\treturn (\n\t\t<svg viewBox='0 0 400 256' fill='none' xmlns='http://www.w3.org/2000/svg'>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M131 52C131 47.5817 134.582 44 139 44H261C265.418 44 269 47.5817 269 52V220C269 224.418 265.418 228 261 228H139C134.582 228 131 224.418 131 220V52Z'\n\t\t\t\tfill={primitiveColorTokens.primary['300']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M131 40C131 35.5817 134.582 32 139 32H261C265.418 32 269 35.5817 269 40V216C269 220.418 265.418 224 261 224H139C134.582 224 131 220.418 131 216V40Z'\n\t\t\t\tfill={primitiveColorTokens.primary['600']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M139 44C139 41.7909 140.791 40 143 40H241C243.209 40 245 41.7909 245 44V212C245 214.209 243.209 216 241 216H143C140.791 216 139 214.209 139 212V44Z'\n\t\t\t\tfill={primitiveColorTokens.primary['900']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M157 36.8338C157 34.3246 159.284 32.435 161.748 32.9045L237.748 47.3807C239.635 47.74 241 49.3895 241 51.31V212.69C241 214.611 239.635 216.26 237.748 216.619L161.748 231.096C159.284 231.565 157 229.675 157 227.166V36.8338Z'\n\t\t\t\tfill={primitiveColorTokens.primary['600']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M161 28.6909C161 26.2296 163.202 24.3523 165.632 24.7411L257.632 39.4611C259.572 39.7716 261 41.4457 261 43.4109V212.589C261 214.554 259.572 216.228 257.632 216.539L165.632 231.259C163.202 231.648 161 229.77 161 227.309V28.6909Z'\n\t\t\t\tfill={primitiveColorTokens.primary['500']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M187.917 128C187.441 130.838 184.973 133 182 133C178.686 133 176 130.314 176 127C176 123.686 178.686 121 182 121H194.5C196.433 121 198 122.567 198 124.5C198 126.433 196.433 128 194.5 128H187.917Z'\n\t\t\t\tfill={primitiveColorTokens.primary['600']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M187.917 126C187.441 128.838 184.973 131 182 131C178.686 131 176 128.314 176 125C176 121.686 178.686 119 182 119H194.5C196.433 119 198 120.567 198 122.5C198 124.433 196.433 126 194.5 126H187.917Z'\n\t\t\t\tfill={primitiveColorTokens.primary['800']}\n\t\t\t/>\n\t\t</svg>\n\t);\n}\n","import { primitiveColorTokens } from '@cellula/react-theme-patient';\n\nexport function BrandedIllustrationDevices() {\n\treturn (\n\t\t<svg viewBox='0 0 400 256' fill='none' xmlns='http://www.w3.org/2000/svg'>\n\t\t\t<rect stroke='none' x='170' y='219' width='83' height='13' rx='6.5' fill={primitiveColorTokens.primary['600']} />\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M233 191H190V215H176.5C172.91 215 170 217.91 170 221.5C170 225.09 172.91 228 176.5 228H246.5C250.09 228 253 225.09 253 221.5C253 217.91 250.09 215 246.5 215H233V191Z'\n\t\t\t\tfill={primitiveColorTokens.primary['500']}\n\t\t\t/>\n\t\t\t<rect stroke='none' x='98' y='28' width='226' height='169' rx='16' fill={primitiveColorTokens.primary['600']} />\n\t\t\t<rect stroke='none' x='98' y='24' width='226' height='169' rx='16' fill={primitiveColorTokens.primary['500']} />\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M98 40C98 31.1634 105.163 24 114 24H308C316.837 24 324 31.1634 324 40V160H98V40Z'\n\t\t\t\tfill={primitiveColorTokens.primary['800']}\n\t\t\t/>\n\t\t\t<rect stroke='none' x='110' y='36' width='202' height='112' rx='8' fill={primitiveColorTokens.primary['400']} />\n\t\t\t<circle stroke='none' cx='211.5' cy='176.5' r='6.5' fill={primitiveColorTokens.primary['600']} />\n\t\t\t<rect stroke='none' x='75' y='95' width='79' height='136' rx='16' fill={primitiveColorTokens.primary['600']} />\n\t\t\t<rect stroke='none' x='75' y='91' width='79' height='136' rx='16' fill={primitiveColorTokens.primary['700']} />\n\t\t\t<rect stroke='none' x='85' y='113' width='59' height='92' rx='8' fill={primitiveColorTokens.primary['400']} />\n\t\t\t<circle stroke='none' cx='114.5' cy='215.5' r='6.5' fill={primitiveColorTokens.primary['600']} />\n\t\t\t<rect stroke='none' x='102' y='99' width='25' height='7' rx='3.5' fill={primitiveColorTokens.primary['900']} />\n\t\t</svg>\n\t);\n}\n","import { primitiveColorTokens } from '@cellula/react-theme-patient';\n\nexport function BrandedIllustrationPhoneOngoing() {\n\treturn (\n\t\t<svg viewBox='0 0 400 256' fill='none' xmlns='http://www.w3.org/2000/svg'>\n\t\t\t<circle stroke='none' cx='229' cy='93' r='64' fill={primitiveColorTokens.primary['500']} />\n\t\t\t<circle stroke='none' cx='229' cy='89' r='64' fill={primitiveColorTokens.primary['400']} />\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M243.25 72.375C243.25 80.2451 236.87 86.625 229 86.625C221.13 86.625 214.75 80.2451 214.75 72.375C214.75 64.5049 221.13 58.125 229 58.125C236.87 58.125 243.25 64.5049 243.25 72.375Z'\n\t\t\t\tfill={primitiveColorTokens.primary['700']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M200.5 112.75C200.5 103.422 206.064 95.4708 216.942 92.42C221.958 91.0133 236.138 91.0401 241.058 92.42C251.936 95.4708 257.5 103.422 257.5 112.75V115.125C257.5 117.748 255.373 119.875 252.75 119.875H205.25C202.627 119.875 200.5 117.748 200.5 115.125V112.75Z'\n\t\t\t\tfill={primitiveColorTokens.primary['700']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M89.0315 69.1636C92.6106 159.061 162.976 229.427 252.8 232.932C264.716 233.421 274.83 223.307 275.096 211.374L275.501 193.249C275.74 182.525 267.86 173.718 257.314 172.746L230.647 170.322C224.32 169.708 217.851 172.042 213.142 176.751L193.805 196.087C193.503 196.39 193.04 196.467 192.657 196.276C163.672 181.84 140.12 158.436 125.686 129.306C125.496 128.923 125.573 128.461 125.875 128.159L145.29 108.745C149.922 104.112 152.255 97.6441 151.719 91.2399L149.292 64.7236C148.245 54.1036 139.513 46.2972 128.788 46.5366L110.663 46.9412C98.6568 47.1337 88.6164 57.3218 89.0315 69.1636Z'\n\t\t\t\tfill={primitiveColorTokens.primary['600']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M89.0315 65.3081C92.6106 155.206 162.976 225.571 252.8 229.077C264.716 229.566 274.83 219.451 275.096 207.519L275.501 189.394C275.74 178.669 267.86 169.863 257.314 168.89L230.647 166.466C224.32 165.853 217.851 168.186 213.142 172.896L193.805 192.232C193.503 192.535 193.04 192.611 192.657 192.42C163.672 177.984 140.12 154.58 125.686 125.45C125.496 125.067 125.573 124.606 125.875 124.304L145.29 104.889C149.922 100.257 152.255 93.7886 151.719 87.3844L149.292 60.8681C148.245 50.2482 139.513 42.4418 128.788 42.6811L110.663 43.0857C98.6568 43.2783 88.6164 53.4663 89.0315 65.3081Z'\n\t\t\t\tfill={primitiveColorTokens.primary['700']}\n\t\t\t/>\n\t\t</svg>\n\t);\n}\n","import { primitiveColorTokens } from '@cellula/react-theme-patient';\n\nexport function BrandedIllustrationDisconnected() {\n\treturn (\n\t\t<svg width='400' height='256' viewBox='0 0 400 256' fill='none' xmlns='http://www.w3.org/2000/svg'>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\tfillRule='evenodd'\n\t\t\t\tclipRule='evenodd'\n\t\t\t\td='M94.408 116.934C94.723 115.364 96.1024 114.233 97.7042 114.233H110.191C111.799 114.233 113.181 115.372 113.49 116.949L115.121 125.278C117.302 125.953 119.416 126.828 121.438 127.89L128.588 123.131C129.922 122.244 131.696 122.421 132.828 123.553L141.631 132.356C142.764 133.489 142.94 135.263 142.053 136.596L137.294 143.747C138.358 145.771 139.234 147.889 139.91 150.074L148.313 151.76C149.883 152.075 151.013 153.454 151.013 155.056V167.543C151.013 169.15 149.875 170.533 148.297 170.842L139.969 172.472C139.293 174.654 138.419 176.768 137.356 178.789L142.115 185.94C143.002 187.273 142.826 189.047 141.694 190.18L132.891 198.983C131.758 200.115 129.984 200.292 128.651 199.404L121.5 194.646C119.476 195.71 117.358 196.585 115.173 197.261L113.487 205.664C113.172 207.235 111.793 208.365 110.191 208.365H97.7042C96.0965 208.365 94.7138 207.227 94.4049 205.649L92.7744 197.32C90.5932 196.645 88.4787 195.771 86.4576 194.708L79.3069 199.467C77.9736 200.354 76.1996 200.178 75.0671 199.045L66.2639 190.242C65.1315 189.11 64.9551 187.336 65.8423 186.002L70.6011 178.852C69.5368 176.827 68.6613 174.709 67.9854 172.524L59.5825 170.839C58.012 170.524 56.8818 169.144 56.8818 167.543V155.056C56.8818 153.448 58.02 152.065 59.5977 151.757L67.9262 150.126C68.6016 147.945 69.4761 145.83 70.5386 143.809L65.7799 136.658C64.8927 135.325 65.0691 133.551 66.2015 132.419L75.0046 123.615C76.1371 122.483 77.9111 122.307 79.2444 123.194L86.3951 127.953C88.4194 126.888 90.5375 126.013 92.7223 125.337L94.408 116.934ZM120.757 161.299C120.757 170.583 113.231 178.108 103.948 178.108C94.6641 178.108 87.1384 170.583 87.1384 161.299C87.1384 152.016 94.6641 144.49 103.948 144.49C113.231 144.49 120.757 152.016 120.757 161.299Z'\n\t\t\t\tfill={primitiveColorTokens.primary['600']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M212.506 33.3519C207.25 23.2147 192.75 23.2147 187.493 33.3519L95.3785 211.002C90.5161 220.38 97.3217 231.575 107.885 231.575H292.115C302.678 231.575 309.484 220.38 304.621 211.002L212.506 33.3519Z'\n\t\t\t\tfill={primitiveColorTokens.primary['500']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M212.506 29.3519C207.25 19.2147 192.75 19.2147 187.493 29.3519L95.3785 207.002C90.5161 216.38 97.3217 227.575 107.885 227.575H292.115C302.678 227.575 309.484 216.38 304.621 207.002L212.506 29.3519Z'\n\t\t\t\tfill={primitiveColorTokens.primary['400']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M200 90.54C203.536 90.54 206.403 93.407 206.403 96.9436V145.45C206.403 148.987 203.536 151.854 200 151.854C196.463 151.854 193.596 148.987 193.596 145.45V96.9436C193.596 93.407 196.463 90.54 200 90.54Z'\n\t\t\t\tfill={primitiveColorTokens.primary['800']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M200 171.384C194.231 171.384 189.554 176.061 189.554 181.83C189.554 187.599 194.231 192.276 200 192.276C205.769 192.276 210.446 187.599 210.446 181.83C210.446 176.061 205.769 171.384 200 171.384Z'\n\t\t\t\tfill={primitiveColorTokens.primary['800']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M280.7 148.508C281.575 147.633 282.994 147.633 283.869 148.508L293.49 158.129L303.112 148.508C303.987 147.633 305.406 147.633 306.281 148.508C307.157 149.383 307.157 150.802 306.281 151.678L296.66 161.299L306.281 170.92C307.157 171.796 307.157 173.215 306.281 174.09C305.406 174.965 303.987 174.965 303.112 174.09L293.49 164.469L283.869 174.09C282.994 174.965 281.575 174.965 280.7 174.09C279.824 173.215 279.824 171.796 280.7 170.92L290.321 161.299L280.7 151.678C279.824 150.802 279.824 149.383 280.7 148.508Z'\n\t\t\t\tfill={primitiveColorTokens.primary['700']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\tfillRule='evenodd'\n\t\t\t\tclipRule='evenodd'\n\t\t\t\td='M262.113 161.299C262.113 143.97 276.161 129.922 293.49 129.922C310.82 129.922 324.868 143.97 324.868 161.299C324.868 178.628 310.82 192.676 293.49 192.676C276.161 192.676 262.113 178.628 262.113 161.299ZM293.49 134.404C278.637 134.404 266.596 146.446 266.596 161.299C266.596 176.153 278.637 188.194 293.49 188.194C308.344 188.194 320.385 176.153 320.385 161.299C320.385 146.446 308.344 134.404 293.49 134.404Z'\n\t\t\t\tfill={primitiveColorTokens.primary['700']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M120.692 64.7424C122.325 65.4162 124.074 65.7596 125.84 65.7525C127.606 65.7594 129.355 65.4162 130.987 64.7424C132.619 64.0686 134.101 63.0776 135.348 61.827L144.857 52.3193C147.376 49.797 148.79 46.3776 148.789 42.8127C148.788 39.2478 147.372 35.8291 144.851 33.3083C142.33 30.7874 138.912 29.3704 135.347 29.3691C131.782 29.3679 128.362 30.7826 125.84 33.3017L121.085 38.0555C120.877 38.2636 120.712 38.5109 120.599 38.7827C120.487 39.0546 120.429 39.3459 120.429 39.6402C120.429 39.9345 120.487 40.2257 120.599 40.4976C120.712 40.7695 120.877 41.0167 121.085 41.2248C121.293 41.4329 121.54 41.5981 121.812 41.7107C122.084 41.8233 122.375 41.8814 122.67 41.8814C122.964 41.8814 123.255 41.8233 123.527 41.7107C123.799 41.5981 124.046 41.4329 124.254 41.2248L129.009 36.4709C129.842 35.6375 130.83 34.9759 131.918 34.5246C133.006 34.0733 134.172 33.841 135.35 33.8407C136.528 33.8403 137.694 34.0718 138.783 34.5224C139.871 34.973 140.86 35.6342 141.693 36.4671C142.525 37.3 143.186 38.2887 143.636 39.377C144.087 40.4653 144.319 41.6315 144.318 42.8094C144.318 43.9873 144.085 45.1539 143.634 46.2418C143.182 47.3298 142.521 48.3178 141.687 49.1501L132.179 58.6578C130.493 60.331 128.214 61.27 125.839 61.27C123.465 61.27 121.186 60.331 119.5 58.6578C119.08 58.2375 118.51 58.0012 117.916 58.0012C117.322 58.0012 116.752 58.2375 116.331 58.6578C115.911 59.078 115.675 59.6481 115.675 60.2424C115.675 60.8367 115.911 61.4068 116.331 61.827C117.578 63.0777 119.06 64.0686 120.692 64.7424Z'\n\t\t\t\tfill={primitiveColorTokens.primary['700']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M100.935 80.9305C103.147 82.4074 105.747 83.1947 108.407 83.1931C110.173 83.1963 111.922 82.8503 113.554 82.1754C115.186 81.5004 116.668 80.5097 117.916 79.26L122.67 74.5062C122.878 74.2981 123.043 74.0509 123.155 73.779C123.268 73.5071 123.326 73.2158 123.326 72.9215C123.326 72.6273 123.268 72.336 123.155 72.0641C123.043 71.7922 122.878 71.545 122.67 71.3369C122.462 71.1288 122.215 70.9637 121.943 70.851C121.671 70.7384 121.379 70.6803 121.085 70.6803C120.791 70.6803 120.499 70.7384 120.227 70.851C119.956 70.9637 119.709 71.1288 119.5 71.3369L114.747 76.0908C113.065 77.7721 110.785 78.7166 108.407 78.7167C106.03 78.7168 103.749 77.7725 102.068 76.0913C100.387 74.4101 99.442 72.13 99.4419 69.7523C99.4418 67.3746 100.386 65.0941 102.067 63.4127L111.576 53.9039C113.262 52.2307 115.541 51.2917 117.916 51.2917C120.291 51.2917 122.57 52.2307 124.255 53.9039C124.463 54.112 124.711 54.2772 124.982 54.3898C125.254 54.5024 125.546 54.5605 125.84 54.5605C126.134 54.5605 126.426 54.5024 126.698 54.3898C126.969 54.2772 127.217 54.112 127.425 53.9039C127.633 53.6958 127.798 53.4486 127.91 53.1767C128.023 52.9048 128.081 52.6136 128.081 52.3193C128.081 52.025 128.023 51.7338 127.91 51.4619C127.798 51.19 127.633 50.9428 127.425 50.7347C124.899 48.2206 121.48 46.8093 117.916 46.8093C114.352 46.8093 110.933 48.2206 108.407 50.7347L98.8982 60.2435C97.0168 62.1234 95.7354 64.5191 95.2162 67.1275C94.6969 69.7359 94.9632 72.4398 95.9812 74.8968C96.9992 77.3539 98.7233 79.4537 100.935 80.9305Z'\n\t\t\t\tfill={primitiveColorTokens.primary['700']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M112.912 38.3507C112.318 38.3507 111.748 38.1144 111.327 37.6941C110.907 37.2738 110.671 36.7039 110.671 36.1094L110.671 29.3858C110.671 28.7913 110.907 28.2215 111.327 27.8011C111.748 27.3808 112.318 27.1445 112.912 27.1445C113.507 27.1445 114.077 27.3808 114.497 27.8011C114.917 28.2215 115.153 28.7913 115.153 29.3858L115.153 36.1094C115.153 36.7038 114.917 37.2738 114.497 37.6941C114.077 38.1144 113.507 38.3506 112.912 38.3507Z'\n\t\t\t\tfill={primitiveColorTokens.primary['400']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M107.614 44.2591C107.32 44.2594 107.029 44.2016 106.757 44.0889C106.485 43.9762 106.238 43.8109 106.03 43.6025L101.275 38.8475C100.855 38.4272 100.619 37.8572 100.619 37.2629C100.619 36.6685 100.855 36.0985 101.275 35.6783C101.695 35.258 102.265 35.0217 102.86 35.0217C103.454 35.0217 104.024 35.258 104.444 35.6783L109.199 40.4332C109.513 40.7467 109.726 41.146 109.812 41.5807C109.899 42.0153 109.854 42.4658 109.685 42.8753C109.515 43.2847 109.228 43.6347 108.86 43.881C108.491 44.1272 108.058 44.259 107.614 44.2591Z'\n\t\t\t\tfill={primitiveColorTokens.primary['400']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M94.9824 49.5568L101.706 49.5568C102.301 49.5568 102.871 49.3205 103.291 48.9002C103.711 48.4799 103.947 47.91 103.947 47.3156C103.947 46.7212 103.711 46.1513 103.291 45.731C102.871 45.3107 102.301 45.0744 101.706 45.0744L94.9824 45.0744C94.388 45.0744 93.818 45.3107 93.3977 45.731C92.9773 46.1513 92.7412 46.7212 92.7412 47.3156C92.7412 47.91 92.9773 48.4799 93.3977 48.9002C93.818 49.3205 94.388 49.5568 94.9824 49.5568Z'\n\t\t\t\tfill={primitiveColorTokens.primary['400']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M140.037 77.3692C140.309 77.4819 140.6 77.5397 140.895 77.5394C141.338 77.5393 141.771 77.4075 142.14 77.1613C142.508 76.915 142.795 76.565 142.965 76.1555C143.135 75.7461 143.179 75.2956 143.093 74.8609C143.006 74.4262 142.793 74.0269 142.479 73.7135L137.726 68.9586C137.518 68.7505 137.27 68.5853 136.999 68.4727C136.727 68.36 136.435 68.3019 136.141 68.3019C135.847 68.3019 135.555 68.36 135.283 68.4727C135.011 68.5853 134.764 68.7505 134.556 68.9586C134.348 69.1666 134.183 69.4139 134.071 69.6857C133.958 69.9576 133.9 70.2489 133.9 70.5432C133.9 70.8375 133.958 71.1287 134.071 71.4006C134.183 71.6725 134.348 71.9197 134.556 72.1278L139.31 76.8827C139.518 77.0912 139.765 77.2565 140.037 77.3692Z'\n\t\t\t\tfill={primitiveColorTokens.primary['400']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M148.772 67.4867L142.048 67.4867C141.454 67.4867 140.884 67.2504 140.463 66.83C140.043 66.4097 139.807 65.8398 139.807 65.2454C139.807 64.651 140.043 64.0811 140.463 63.6608C140.884 63.2405 141.454 63.0042 142.048 63.0042L148.772 63.0042C149.366 63.0042 149.936 63.2405 150.357 63.6608C150.777 64.0811 151.013 64.651 151.013 65.2454C151.013 65.8398 150.777 66.4097 150.357 66.83C149.936 67.2504 149.366 67.4867 148.772 67.4867Z'\n\t\t\t\tfill={primitiveColorTokens.primary['400']}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tstroke='none'\n\t\t\t\td='M129.257 84.7599C129.678 85.1802 130.248 85.4165 130.842 85.4165C131.437 85.4165 132.007 85.1802 132.427 84.7599C132.847 84.3396 133.083 83.7697 133.083 83.1753L133.083 76.4516C133.083 75.8572 132.847 75.2873 132.427 74.8669C132.007 74.4466 131.437 74.2103 130.842 74.2103C130.248 74.2103 129.678 74.4466 129.257 74.8669C128.837 75.2873 128.601 75.8572 128.601 76.4516L128.601 83.1753C128.601 83.7697 128.837 84.3396 129.257 84.7599Z'\n\t\t\t\tfill={primitiveColorTokens.primary['400']}\n\t\t\t/>\n\t\t</svg>\n\t);\n}\n","import styled from 'styled-components';\nimport { BrandedIllustrationDoor } from './illustrations/door.component';\nimport { BrandedIllustrationDevices } from './illustrations/devices.component';\nimport { BrandedIllustrationPhoneOngoing } from './illustrations/phone_ongoing.component';\nimport { BrandedIllustrationDisconnected } from './illustrations/disconnected.component';\n\nconst Container = styled.div`\n\tsvg {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: block;\n\t\tpointer-events: none;\n\t\tfill: currentColor;\n\t\tstroke: currentColor;\n\t\tflex-shrink: 0;\n\t}\n`;\n\ntype BrandedIllustrations = {\n\tdoor: string;\n\tdevices: string;\n\tphoneOngoing: string;\n\tdisconnected: string;\n};\n\nexport type BrandedIllustrationType = keyof BrandedIllustrations;\n\ninterface BrandedIllustrationProps {\n\tillustration: BrandedIllustrationType;\n}\n\nexport function BrandedIllustration({ illustration }: BrandedIllustrationProps) {\n\tlet illustrationComponent;\n\n\tswitch (illustration) {\n\t\tcase 'door':\n\t\t\tillustrationComponent = <BrandedIllustrationDoor />;\n\t\t\tbreak;\n\t\tcase 'devices':\n\t\t\tillustrationComponent = <BrandedIllustrationDevices />;\n\t\t\tbreak;\n\t\tcase 'phoneOngoing':\n\t\t\tillustrationComponent = <BrandedIllustrationPhoneOngoing />;\n\t\t\tbreak;\n\t\tcase 'disconnected':\n\t\t\tillustrationComponent = <BrandedIllustrationDisconnected />;\n\t\t\tbreak;\n\t}\n\n\treturn <Container>{illustrationComponent}</Container>;\n}\n","import { Flex, Text } from '@cellula/react';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport { BrandedIllustration, BrandedIllustrationType } from '@component/branded_illustration/branded_illustration.component';\nimport type { ReactNode } from 'react';\nimport styled from 'styled-components';\n\nconst Background = styled.div`\n\tdisplay: flex;\n\tflex-grow: 1;\n\tflex-direction: column;\n\talign-items: center;\n\tbackground: ${tokens.color.bg.page};\n\tposition: relative;\n\toverflow: auto;\n\n\t${tokens.breakpointQuery.small} {\n\t\tjustify-content: center;\n\n\t\t&::before {\n\t\t\tdisplay: block;\n\t\t\tcontent: '';\n\t\t\tdisplay: flex;\n\t\t\tposition: absolute;\n\t\t\tinset: 0;\n\t\t\tbackground: linear-gradient(150deg, transparent 26%, ${primitiveColorTokens.primary['300']});\n\t\t\tpointer-events: none;\n\t\t\tz-index: 0;\n\t\t\topacity: 0.9;\n\t\t}\n\t}\n`;\n\nconst OuterContainer = styled.div`\n\tdisplay: flex;\n\tflex-grow: 1;\n\tflex-direction: column;\n\tposition: relative;\n\ttext-align: center;\n\tpadding: ${tokens.spacing.x2};\n\tcolor: ${tokens.color.content.default};\n\tmax-width: 460px;\n\twidth: 100%;\n\talign-items: center;\n\tjustify-content: center;\n\tgap: ${tokens.spacing.x4};\n\n\t${tokens.breakpointQuery.small} {\n\t\tflex-grow: 0;\n\t\tbackground: ${tokens.color.bg.surface};\n\t\tpadding: ${tokens.spacing.x6};\n\t\tbox-shadow: ${tokens.elevation.floating};\n\t\tborder-radius: ${tokens.borderRadius.small};\n\t\theight: auto;\n\t\toverflow: hidden;\n\t}\n`;\n\nconst TextContainer = styled(Flex)`\n\tmax-width: 360px;\n\twidth: 100%;\n\tgap: ${tokens.spacing.x1};\n`;\n\nconst ButtonContainer = styled(Flex)`\n\tmax-width: 296px;\n\twidth: 100%;\n\tgap: ${tokens.spacing.x1};\n`;\n\ninterface Props {\n\ttitle: ReactNode;\n\tdescription?: ReactNode;\n\tillustration?: BrandedIllustrationType;\n\tactions?: ReactNode;\n}\n\nexport function ViewAppointmentState({ title, description, illustration, actions }: Props) {\n\treturn (\n\t\t<Background>\n\t\t\t<OuterContainer>\n\t\t\t\t<Flex grow='1' justify='center'>\n\t\t\t\t\t<Flex gap={tokens.spacing.x4} align='center'>\n\t\t\t\t\t\t<TextContainer>\n\t\t\t\t\t\t\t<Text.h1 variant='headingMedium'>{title}</Text.h1>\n\t\t\t\t\t\t\t{description ? <Text variant='bodyRegular'>{description}</Text> : null}\n\t\t\t\t\t\t</TextContainer>\n\t\t\t\t\t\t{illustration ? (\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<BrandedIllustration illustration={illustration} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t</Flex>\n\t\t\t\t</Flex>\n\t\t\t\t{actions ? <ButtonContainer>{actions}</ButtonContainer> : null}\n\t\t\t</OuterContainer>\n\t\t</Background>\n\t);\n}\n","import { Button } from '@cellula/react';\nimport { Link } from 'react-router-dom';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { ViewAppointmentState } from '../view_appointment_state.component';\n\ninterface Props {\n\tticket?: string;\n}\n\nexport function ScreenMissingPayment(props: Props) {\n\tconst universalConfig = useResolve(UniversalConfig);\n\n\treturn (\n\t\t<ViewAppointmentState\n\t\t\ttitle={withTranslation('View.Appointment.ScreenMissingPayment.Title')}\n\t\t\tdescription={withTranslation('View.Appointment.ScreenMissingPayment.Description')}\n\t\t\tactions={\n\t\t\t\t<Button as={Link} variant='primary' to={`${universalConfig.alias}/visits/video/${props.ticket ?? ''}?openPayment=true`}>\n\t\t\t\t\t{withTranslation('View.Appointment.ScreenMissingPayment.Continue')}\n\t\t\t\t</Button>\n\t\t\t}\n\t\t/>\n\t);\n}\n","import { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport styled from 'styled-components';\n\nconst Container = styled.div`\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: column;\n\tbackground: #fcfcfc;\n\twidth: 100%;\n\theight: 100%;\n\tborder-radius: 16px;\n\toverflow-y: auto;\n\tz-index: 0;\n\tpadding: ${tokens.size.x2};\n\tmargin: 0 auto;\n\tmargin-top: ${tokens.spacing.x6};\n\n\t${tokens.breakpointQuery.medium} {\n\t\tmargin: ${tokens.spacing.x9} 0;\n\t\tmax-width: 400px;\n\t\theight: unset;\n\t\tbox-shadow: ${tokens.elevation.skim};\n\t\tpadding: ${tokens.size.x4};\n\t\tmargin-top: 0;\n\t}\n`;\n\nconst Background = styled.div`\n\tdisplay: flex;\n\tflex-grow: 1;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbackground: #fafbfb;\n\tposition: relative;\n\n\t--shadow-color: 218deg 19% 71%;\n\t--shadow-color: 212deg 25% 65%;\n\t--shadow-elevation-low: 0px 0.3px 0.4px hsl(var(--shadow-color) / 0.16), 0px 0.4px 0.5px -0.8px hsl(var(--shadow-color) / 0.21),\n\t\t0px 0.9px 1.1px -1.6px hsl(var(--shadow-color) / 0.26);\n\t--shadow-elevation-medium: 0px 0.3px 0.4px hsl(var(--shadow-color) / 0.16), 0px 0.9px 1.1px -0.5px hsl(var(--shadow-color) / 0.21),\n\t\t0px 2.1px 2.6px -1.1px hsl(var(--shadow-color) / 0.25), 0.1px 4.7px 5.9px -1.6px hsl(var(--shadow-color) / 0.29);\n\t--shadow-elevation-high: 0px 0.3px 0.4px hsl(var(--shadow-color) / 0.17), 0px 1.7px 2.1px -0.3px hsl(var(--shadow-color) / 0.2),\n\t\t0px 3.1px 3.9px -0.5px hsl(var(--shadow-color) / 0.23), 0.1px 5.1px 6.4px -0.8px hsl(var(--shadow-color) / 0.25),\n\t\t0.1px 8.1px 10.1px -1.1px hsl(var(--shadow-color) / 0.28), 0.2px 12.8px 16px -1.4px hsl(var(--shadow-color) / 0.3),\n\t\t0.3px 19.5px 24.4px -1.6px hsl(var(--shadow-color) / 0.33);\n\n\t&::before {\n\t\tdisplay: block;\n\t\tcontent: '';\n\t\tdisplay: flex;\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tbackground: linear-gradient(150deg, transparent 26%, ${primitiveColorTokens.primary['300']});\n\t\tpointer-events: none;\n\t\tz-index: 0;\n\t\topacity: 0.9;\n\t}\n\n\t&.stacked {\n\t\tscale: 0.9;\n\t\tborder-radius: 32px;\n\t\toverflow: hidden;\n\t\topacity: 0.5;\n\t}\n`;\n\ninterface BackgroundOutletProps {\n\tchildren: React.ReactNode;\n}\n\nexport function BackgroundOutlet(props: BackgroundOutletProps) {\n\treturn (\n\t\t<Background>\n\t\t\t<Container>{props.children}</Container>\n\t\t</Background>\n\t);\n}\n","import { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { Box, Button, Flex } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Illustration } from '@component/illustration/illustration.component';\nimport { Title } from '@component/title.component';\nimport { TopBar } from '@component/top_bar.component';\nimport { RouterService } from '@cortex-shim/router.service';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { useEffect, useLayoutEffect } from 'react';\nimport styled from 'styled-components';\nimport { AppointmentController } from '../view_appointment.controller';\nimport { BackgroundOutlet } from './_background_outlet';\nimport { UniversalConfig } from '@application/universal_config.service';\n\nconst elements = {\n\tillustration: styled(Illustration)`\n\t\twidth: 200px;\n\t\tmax-width: 100%;\n\t`,\n};\n\nexport function ScreenDone() {\n\tconst routerService = useResolve(RouterService);\n\tconst analyticCtx = useAnalyticContext();\n\tconst controller = useResolve(AppointmentController);\n\tconst universalConfig = useResolve(UniversalConfig);\n\n\tuseLayoutEffect(function whenMountTryToCloseTheWindow() {\n\t\tif (controller.appointmentInfo.peek()?.isHcp) {\n\t\t\twindow.close();\n\t\t}\n\t});\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tanalyticCtx.service.trackPageView({\n\t\t\t\tcustomTitle: 'Appointment: Done',\n\t\t\t});\n\t\t},\n\t\t[analyticCtx],\n\t);\n\n\tfunction handleNextClick() {\n\t\tanalyticCtx.trackEvent('Clicked', 'Go to case button');\n\n\t\t// TODO: Remove when not Angular\n\t\tconst baseurl =\n\t\t\t(window as typeof window & { __TEMP__overrideNavigation: unknown }).__TEMP__overrideNavigation != null\n\t\t\t\t? universalConfig.alias\n\t\t\t\t: '';\n\n\t\trouterService.navigateByUrl(`${baseurl}/visits/video/${controller.savedTicket}`);\n\t}\n\n\treturn (\n\t\t<BackgroundOutlet>\n\t\t\t<TopBar.Content onAbort={null} />\n\t\t\t<Flex gap={tokens.spacing.x4} grow={1}>\n\t\t\t\t<Flex\n\t\t\t\t\talign='center'\n\t\t\t\t\tgap={tokens.spacing.x2_5}\n\t\t\t\t\tgrow={1}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Box width='200px' height='200px'>\n\t\t\t\t\t\t<elements.illustration type='messageSent' />\n\t\t\t\t\t</Box>\n\n\t\t\t\t\t<Title\n\t\t\t\t\t\ttitle={withTranslation('View.Appointment.ScreenDone.Title')}\n\t\t\t\t\t\ttitleSize='small'\n\t\t\t\t\t\tdescription={withTranslation('View.Appointment.ScreenDone.Description')}\n\t\t\t\t\t/>\n\t\t\t\t</Flex>\n\n\t\t\t\t{controller.appointmentInfo.peek()?.isHcp || controller.appointmentInfo.peek()?.isGuest ? null : (\n\t\t\t\t\t<Flex grow={1} justify='flex-end'>\n\t\t\t\t\t\t<Button variant='primary' onClick={handleNextClick}>\n\t\t\t\t\t\t\t{withTranslation('View.Appointment.ScreenDone.CTA')}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</Flex>\n\t\t\t\t)}\n\t\t\t</Flex>\n\t\t</BackgroundOutlet>\n\t);\n}\n","import { Button } from '@cellula/react';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { AppointmentController } from '../view_appointment.controller';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { ViewAppointmentState } from '../view_appointment_state.component';\nimport type { LeaveType } from '@visiba/retina';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { useEffect } from 'react';\n\ninterface Props {\n\tticket?: string;\n\ttype: LeaveType;\n}\n\nexport function ScreenReconnect(props: Props) {\n\tswitch (props.type) {\n\t\tcase 'mayEnd':\n\t\t\treturn <ScreenMayEnd {...props} />;\n\t\tcase 'mayReconnect':\n\t\t\treturn <ScreenMayReconnect {...props} />;\n\t\tcase 'multipleConnections':\n\t\t\treturn <ScreenMultipleConnections {...props} />;\n\t\tcase 'unexpectedlyDisconnected':\n\t\t\treturn <ScreenUnexpectedlyDisconnected {...props} />;\n\t\tdefault:\n\t\t\treturn <ScreenForceLeave {...props} />;\n\t}\n}\n\nfunction ScreenMultipleConnections(_: Props) {\n\tconst analyticCtx = useAnalyticContext();\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tanalyticCtx.service.trackPageView({\n\t\t\t\tcustomTitle: 'Left appointment: Multiple connections',\n\t\t\t});\n\t\t},\n\t\t[analyticCtx],\n\t);\n\n\treturn (\n\t\t<ViewAppointmentState\n\t\t\ttitle={withTranslation('View.Appointment.ScreenReconnect.MultipleConnections.Title')}\n\t\t\tdescription={withTranslation('View.Appointment.ScreenReconnect.MultipleConnections.Description')}\n\t\t\tillustration='devices'\n\t\t/>\n\t);\n}\n\nfunction ScreenUnexpectedlyDisconnected(_: Props) {\n\tconst controller = useResolve(AppointmentController);\n\tconst analyticCtx = useAnalyticContext();\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tanalyticCtx.service.trackPageView({\n\t\t\t\tcustomTitle: 'Left appointment: Unexpectedly disconnected',\n\t\t\t});\n\t\t},\n\t\t[analyticCtx],\n\t);\n\n\tfunction handleRejoinClick() {\n\t\tanalyticCtx.trackEvent('Clicked CTA: Reconnect');\n\t\tcontroller.handleReconnect();\n\t}\n\n\treturn (\n\t\t<ViewAppointmentState\n\t\t\ttitle={withTranslation('View.Appointment.ScreenReconnect.UnexpectedlyDisconnected.Title')}\n\t\t\tdescription={withTranslation('View.Appointment.ScreenReconnect.UnexpectedlyDisconnected.Description')}\n\t\t\tillustration='disconnected'\n\t\t\tactions={\n\t\t\t\t<Button variant='secondary' onClick={handleRejoinClick}>\n\t\t\t\t\t{withTranslation('View.Appointment.ScreenReconnect.CTA.Rejoin')}\n\t\t\t\t</Button>\n\t\t\t}\n\t\t/>\n\t);\n}\n\nfunction ScreenForceLeave(_: Props) {\n\tconst controller = useResolve(AppointmentController);\n\tconst analyticCtx = useAnalyticContext();\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tanalyticCtx.service.trackPageView({\n\t\t\t\tcustomTitle: 'Left appointment: Force leave',\n\t\t\t});\n\t\t},\n\t\t[analyticCtx],\n\t);\n\n\tfunction handleForceEvaluationClick() {\n\t\tanalyticCtx.trackEvent('Clicked CTA: Evaluation');\n\t\tcontroller.handleForceEvaluation();\n\t}\n\n\treturn (\n\t\t<ViewAppointmentState\n\t\t\ttitle={withTranslation('View.Appointment.ScreenReconnect.ForcedLeft.Title')}\n\t\t\tdescription={withTranslation('View.Appointment.ScreenReconnect.ForcedLeft.Description')}\n\t\t\tillustration='door'\n\t\t\tactions={\n\t\t\t\t<Button variant='primary' onClick={handleForceEvaluationClick}>\n\t\t\t\t\t{withTranslation('View.Appointment.ScreenReconnect.CTA.Evaluation')}\n\t\t\t\t</Button>\n\t\t\t}\n\t\t/>\n\t);\n}\n\nfunction ScreenMayEnd(_: Props) {\n\tconst controller = useResolve(AppointmentController);\n\tconst analyticCtx = useAnalyticContext();\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tanalyticCtx.service.trackPageView({\n\t\t\t\tcustomTitle: 'Left appointment: May end',\n\t\t\t});\n\t\t},\n\t\t[analyticCtx],\n\t);\n\n\tfunction handleRejoinClick() {\n\t\tanalyticCtx.trackEvent('Clicked CTA: Reconnect');\n\t\tcontroller.handleReconnect();\n\t}\n\n\tfunction handleForceEndClick() {\n\t\tanalyticCtx.trackEvent('Clicked CTA: End');\n\n\t\treturn controller.handleForceEnd();\n\t}\n\n\treturn (\n\t\t<ViewAppointmentState\n\t\t\ttitle={withTranslation('View.Appointment.ScreenReconnect.MayEnd.Title')}\n\t\t\tdescription={withTranslation('View.Appointment.ScreenReconnect.MayEnd.Description')}\n\t\t\tillustration='phoneOngoing'\n\t\t\tactions={\n\t\t\t\t<>\n\t\t\t\t\t<Button variant='primary' onClick={handleForceEndClick}>\n\t\t\t\t\t\t{withTranslation('View.Appointment.ScreenReconnect.CTA.End')}\n\t\t\t\t\t</Button>\n\t\t\t\t\t<Button variant='secondary' onClick={handleRejoinClick}>\n\t\t\t\t\t\t{withTranslation('View.Appointment.ScreenReconnect.CTA.Rejoin')}\n\t\t\t\t\t</Button>\n\t\t\t\t</>\n\t\t\t}\n\t\t/>\n\t);\n}\n\nfunction ScreenMayReconnect(_: Props) {\n\tconst controller = useResolve(AppointmentController);\n\tconst analyticCtx = useAnalyticContext();\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tanalyticCtx.service.trackPageView({\n\t\t\t\tcustomTitle: 'Left appointment: May reconnect',\n\t\t\t});\n\t\t},\n\t\t[analyticCtx],\n\t);\n\n\tfunction handleRejoinClick() {\n\t\tanalyticCtx.trackEvent('Clicked CTA: Reconnect');\n\t\tcontroller.handleReconnect();\n\t}\n\n\tfunction handleForceEvaluationClick() {\n\t\tanalyticCtx.trackEvent('Clicked CTA: Evaluation');\n\t\tcontroller.handleForceEvaluation();\n\t}\n\n\treturn (\n\t\t<ViewAppointmentState\n\t\t\ttitle={withTranslation('View.Appointment.ScreenReconnect.MayReconnect.Title')}\n\t\t\tdescription={withTranslation('View.Appointment.ScreenReconnect.MayReconnect.Description')}\n\t\t\tillustration='door'\n\t\t\tactions={\n\t\t\t\t<>\n\t\t\t\t\t<Button variant='primary' onClick={handleForceEvaluationClick}>\n\t\t\t\t\t\t{withTranslation('View.Appointment.ScreenReconnect.CTA.Evaluation')}\n\t\t\t\t\t</Button>\n\t\t\t\t\t<Button variant='secondary' onClick={handleRejoinClick}>\n\t\t\t\t\t\t{withTranslation('View.Appointment.ScreenReconnect.CTA.Rejoin')}\n\t\t\t\t\t</Button>\n\t\t\t\t</>\n\t\t\t}\n\t\t/>\n\t);\n}\n","import { useParams } from 'react-router-dom';\nimport { useResolve, useResolveController, withNewContainer } from '@visiba-cortex/instantiation';\nimport { styled } from 'styled-components';\nimport { Async } from '@component/async.component';\nimport { AnalyticProvider } from '@application/analytic/analytic_link/mod';\nimport { AnalyticCategories } from '@application/analytic/analytic.service';\nimport { AppointmentController } from './view_appointment.controller';\nimport { SingleForm } from './screen_form/mod';\nimport { ScreenEvaluation } from './screen_evaluation/mod';\nimport { ScreenVideo } from './screen_video/mod';\nimport { ScreenMissingPayment } from './screen_missing_payment/mod';\nimport { ScreenDone } from './screen_done/mod';\nimport { ScreenReconnect } from './screen_reconnect/screen_reconnect.component';\nimport { useEffect } from 'react';\nimport { GeneralApiService } from '@api_patient/general_api.service';\nimport { Timer } from '@visiba/std';\nimport { ViewAppointmentState } from './view_appointment_state.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { PrimitiveVonageEncryptionWarning, useVonageEncryptionWarning } from '@component/vonage_encryption_warning/mod';\nimport { Button } from '@cellula/react';\n\nconst Container = styled.div`\n\tdisplay: flex;\n\tflex: 1;\n\toverflow: hidden;\n\tposition: relative;\n\theight: 100%;\n\twidth: 100%;\n`;\n\ninterface Props {}\n\nexport const ViewAppointment = withNewContainer(function ViewAppointment(_: Props) {\n\tconst { ticket } = useParams();\n\tconst controller = useResolveController(AppointmentController, ticket);\n\tconst generalApiService = useResolve(GeneralApiService);\n\tconst { hasEncryptionSupport, appConfig } = useVonageEncryptionWarning();\n\n\tuseEffect(() => {\n\t\treturn Timer.repeat(() => {\n\t\t\tgeneralApiService.touchSession();\n\t\t}, 1000 * 60);\n\t}, [generalApiService]);\n\n\treturn (\n\t\t<AnalyticProvider category={AnalyticCategories.PatientCall}>\n\t\t\t<Container>\n\t\t\t\t<Async derive={controller.state} catch={<div>error</div>}>\n\t\t\t\t\t{(state) => {\n\t\t\t\t\t\tif (controller.appointmentInfo.value?.vonageEncryptionRequired && !hasEncryptionSupport) {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<ViewAppointmentState\n\t\t\t\t\t\t\t\t\ttitle={<PrimitiveVonageEncryptionWarning.Title />}\n\t\t\t\t\t\t\t\t\tdescription={<PrimitiveVonageEncryptionWarning.Text type='dialog' />}\n\t\t\t\t\t\t\t\t\tillustration='disconnected'\n\t\t\t\t\t\t\t\t\tactions={\n\t\t\t\t\t\t\t\t\t\tappConfig?.appDownloadUrl ? (\n\t\t\t\t\t\t\t\t\t\t\t<Button as='a' href={appConfig.appDownloadUrl}>\n\t\t\t\t\t\t\t\t\t\t\t\t{withTranslation('VonageEncryptionWarning.Dialog.ButtonDownloadApp')}\n\t\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t) : null\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (state.isMissingPayment) {\n\t\t\t\t\t\t\treturn <ScreenMissingPayment ticket={ticket} />;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Keeping this if we ever decides that it was indeed good that the before form is present here.\n\t\t\t\t\t\t// if (state.beforeForm != null) {\n\t\t\t\t\t\t// \treturn <SingleForm worker={state.beforeForm} />;\n\t\t\t\t\t\t// }\n\n\t\t\t\t\t\tif (state.reconnectVariants != null) {\n\t\t\t\t\t\t\treturn <ScreenReconnect type={state.reconnectVariants} />;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (state.shouldEvaluate === 'not_completed') {\n\t\t\t\t\t\t\treturn <ScreenEvaluation />;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (state.afterForm != null) {\n\t\t\t\t\t\t\treturn <SingleForm worker={state.afterForm} />;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (state.shouldEvaluate === 'completed') {\n\t\t\t\t\t\t\treturn <ScreenDone />;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn <ScreenVideo />;\n\t\t\t\t\t}}\n\t\t\t\t</Async>\n\t\t\t</Container>\n\t\t</AnalyticProvider>\n\t);\n});\n","import { AfterViewInit, Component, ElementRef, NgZone, OnDestroy, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { SpaEventService } from '../app/Services/spaEvents.service';\nimport { Route, Routes, useLocation } from 'react-router-dom';\nimport { Root, createRoot } from 'react-dom/client';\nimport { ViewAppointment } from '@view/view_appointment/view_appointment.component';\nimport { sharedResolution } from '@public/src/shared_resolution';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { LocationSelectorService } from '@public/src/application/services/location_selector.service';\nimport { ProgrammaticBrowserRouter } from '@cortex-shim/programmatic_browser_router.component';\n\nconst containerElementName = 'SignInWrapper';\n\n@Component({\n\tstandalone: false,\n\tstyleUrls: ['./css/appointment.wrapper.scss'],\n\tselector: 'appointment-wrapper',\n\ttemplate: ` <div class=\"wrapper-container\" #${containerElementName}></div> `,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class AppointmentWrapperComponent implements OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(\n\t\tprivate readonly ngZone: NgZone,\n\t\tprivate readonly spaEventService: SpaEventService,\n\t) {\n\t\t// Empty\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.render();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate async render() {\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tconst universalConfigService = sharedResolution.resolve(UniversalConfig);\n\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\n\t\tconst split = locationSelectorService.location.route.split('/');\n\t\tsplit.splice(0, 1);\n\t\tconst routeBase = split.join('/');\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper useGlobals>\n\t\t\t\t\t<ProgrammaticBrowserRouter basename={universalConfigService.alias} forceNewHistory>\n\t\t\t\t\t\t<Routes>\n\t\t\t\t\t\t\t<Route path={routeBase}>\n\t\t\t\t\t\t\t\t<Route path='appointment/:ticket' element={<ViewAppointment />} />\n\t\t\t\t\t\t\t</Route>\n\t\t\t\t\t\t\t<Route path='*' element={<FunkyRedirect />} />\n\t\t\t\t\t\t</Routes>\n\t\t\t\t\t</ProgrammaticBrowserRouter>\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n\nfunction FunkyRedirect() {\n\tconst { pathname } = useLocation();\n\n\tif (window.__TEMP__overrideNavigation) {\n\t\twindow.__TEMP__overrideNavigation(pathname);\n\t}\n\n\treturn null;\n}\n","import { Logger } from '@visiba/logger';\nimport { Singleton } from '@visiba-cortex/instantiation';\nimport { EventEmitter } from '@visiba/std';\nimport { PUBLIC_SUB_URL_PATH, TRANSLATION_SET } from '../../constants';\nimport { DateService } from './date.service';\nimport { LicenceHolderService } from './licence_holder.service';\nimport { LocationSelectorService } from './location_selector.service';\nimport { RouterService } from './router.service';\nimport { RouteNotAccessible, UnitService } from './unit.service';\nimport { UserSettingsService } from './user_settings.service';\nimport { RegisterRecentVisitService } from './register_recent_visit.service';\nimport { RecentReceptionsApiService } from '@api/recent_receptions_api.service';\nimport { UnitsApiService } from '@api/units_api.service';\nimport { FeatureFlagService } from './feature_flag/mod';\nimport { AuthService, ReadonlyUser } from './auth/mod';\nimport { UnitModel, UserType } from '@api/generated/models';\nimport { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport { LicenceHolderApiService } from '@api/licence_holder_api.service';\nimport { PublicBaseApiModel } from '@public/src/api/models/PublicBaseApiModel';\n\n@Singleton()\nexport class StartupService {\n\tprivate readonly logger = new Logger('Startup Angular/React');\n\n\tpublic readonly events = new EventEmitter<{\n\t\tbootStateChange: BootState;\n\t}>();\n\n\t/**\n\t * State representing how the application's health is for the first invokes.\n\t */\n\tprivate internalBootState: BootState = BootState.Pristine;\n\tpublic get bootState(): BootState {\n\t\treturn this.internalBootState;\n\t}\n\tpublic set bootState(state: BootState) {\n\t\t// private set bootState(state: BootState) { // injection issue. TS incompatibility.\n\t\tthis.internalBootState = state;\n\t\tthis.events.emit('bootStateChange', state);\n\t\tthis.logger.logInformation(`🚩 Boot state changed to ${BootState[state]}`);\n\t}\n\n\tconstructor(\n\t\tprivate readonly licenceHolderService: LicenceHolderService,\n\t\tprivate readonly userSettingsService: UserSettingsService,\n\t\tprivate readonly unitService: UnitService,\n\t\tprivate readonly authService: AuthService,\n\t\tprivate readonly routerService: RouterService,\n\t\tprivate readonly locationSelectorService: LocationSelectorService,\n\t\tprivate readonly dateService: DateService,\n\t\tprivate readonly registerRecentVisitService: RegisterRecentVisitService,\n\t\tprivate readonly recentReceptionsApiService: RecentReceptionsApiService,\n\t\tprivate readonly unitsApiService: UnitsApiService,\n\t\tprivate readonly featureToggleService: FeatureFlagService,\n\t\tprivate readonly licenceHolderApiService: LicenceHolderApiService,\n\t) {\n\t\t// Empty\n\t}\n\n\t/**\n\t * Starts the application\n\t * ---\n\t * Initializing and distributing necessary data through globally dependant\n\t * services. While not all data is required for the application to render, a\n\t * portion is and that data is under a \"Critical Data\" section. The way the\n\t * application will be able to determine when it may render is through a\n\t * \"bootState\". This boot state is mutated through the flow of this method,\n\t * and everything under \"Routeable\" should not invoke any React tree that's\n\t * sensitive to the critical data existing.\n\t *\n\t * To make the experience better for the end user, keeping the amount of\n\t * Critical Data down is important for us. Especially when the application\n\t * is a SPA (Single Page Application) for the time being and the user needs to\n\t * fetch both a main.js bundle and the booting data. We'll need to do some\n\t * classic kluringar eventually to keep the load time for mobile devices as\n\t * fast as possible - either smarter SPA handling or going SSR hybrid.\n\t */\n\tpublic async boot(\n\t\tloadedData?: Partial<{\n\t\t\tpatientBaseResult: PublicBaseApiModel;\n\t\t\tfeatureToggles: Record<string, boolean>;\n\t\t\tunitServiceResult: UnitModel;\n\t\t\tgetTranslationSetResult: Record<string, string>;\n\t\t}>,\n\t): Promise<StartupService> {\n\t\tif (this.bootState !== BootState.Pristine) {\n\t\t\tthrow new StartupServiceAlreadyBootedError('application may only be booted once');\n\t\t}\n\n\t\ttry {\n\t\t\tthis.logger.logInformation('Adds \"authenticated\" interceptor');\n\t\t\tthis.authService.addInterceptor({\n\t\t\t\ttriggerOn: 'authenticated',\n\t\t\t\tfn: this.loadRecentlyVisited.bind(this),\n\t\t\t});\n\n\t\t\tthis.bootState = BootState.NonFunctional;\n\n\t\t\tconst urlAlias = this.getUrlAlias();\n\n\t\t\tif (loadedData?.featureToggles == null) {\n\t\t\t\tthis.logger.logWarning('Needs to refetch Feature Toggles (this is a bug)');\n\t\t\t\tawait this.featureToggleService.load(urlAlias);\n\t\t\t}\n\n\t\t\tlet data: PublicBaseApiModel;\n\t\t\tif (loadedData?.patientBaseResult) {\n\t\t\t\tthis.logger.logInformation('Derived licenceHolder data');\n\t\t\t\tdata = loadedData.patientBaseResult;\n\t\t\t} else {\n\t\t\t\tthis.logger.logWarning('Needs to refetch licenceHolder (this is a bug)');\n\t\t\t\tconst patientBaseResult = await this.unitsApiService.getLicenseHolderData(urlAlias);\n\t\t\t\tdata = patientBaseResult.data;\n\t\t\t}\n\t\t\tawait this.licenceHolderService.loadFromAlias(urlAlias, data);\n\n\t\t\tthis.logger.logInformation('Refreshes user settings for Angular/React application');\n\t\t\tthis.userSettingsService.loadSettings();\n\t\t\tthis.userSettingsService.setLanguage();\n\n\t\t\tawait this.unitService.load(this.licenceHolderService.rootUnitId, loadedData?.unitServiceResult);\n\n\t\t\tif (loadedData?.getTranslationSetResult) {\n\t\t\t\tthis.logger.logInformation('Derived translation set');\n\t\t\t\tI18nAndL10n.insertTranslations(loadedData?.getTranslationSetResult);\n\t\t\t} else {\n\t\t\t\tthis.logger.logWarning('Needs to refetch translation set (this is a bug)');\n\t\t\t\ttry {\n\t\t\t\t\tconst { data: translationSet } = await this.licenceHolderApiService.getTranslationSet(\n\t\t\t\t\t\tthis.licenceHolderService.id,\n\t\t\t\t\t\tTRANSLATION_SET,\n\t\t\t\t\t\tthis.userSettingsService.getSettings().selectedLanguage,\n\t\t\t\t\t);\n\t\t\t\t\tI18nAndL10n.insertTranslations(translationSet);\n\t\t\t\t} catch (error: unknown) {\n\t\t\t\t\tthis.logger.logError('failed to fetch translations, reason: {reason}', (error as Error).message);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tawait this.dateService.loadLocale(this.userSettingsService.getSettings().selectedLanguage);\n\n\t\t\tthis.bootState = BootState.HasCriticalInformation;\n\n\t\t\tawait this.authService.fetchActiveIdentity();\n\n\t\t\tthis.setSelectedLocation(location.pathname).catch((error) => {\n\t\t\t\tlet message = 'unknown';\n\n\t\t\t\tif (error instanceof RouteNotAccessible) {\n\t\t\t\t\tmessage = error.message;\n\t\t\t\t}\n\n\t\t\t\tthis.logger.logError('failed to set location, reason: {reason}', message);\n\t\t\t});\n\n\t\t\tthis.bootState = BootState.Routeable;\n\t\t\tthis.bootState = BootState.Completed;\n\n\t\t\treturn this;\n\t\t} catch (error: unknown) {\n\t\t\tthis.bootState = BootState.NonFunctional;\n\t\t\tthis.logger.logFatal('failed to boot application, reason: {reason}', (error as Error).message);\n\n\t\t\tthrow error;\n\t\t}\n\t}\n\n\t/**\n\t * Enables Selected Location updates on a history push level\n\t * ---\n\t * Since we're semi offloading \"global application state\" away from a React\n\t * tree, we can't sync the Reception Location that the user is currently on\n\t * with React hooks without getting unwanted race conditions. This is because\n\t * React works asynchronous with its reconciliation algorithm (Fiber) while\n\t * the \"global application state\" side is mostly synchronous. The issues that\n\t * occurs otherwise is id miss matches and we don't want that. Thus this is a\n\t * part of the application.\n\t */\n\tpublic useImperativeHistoryListener(): StartupService {\n\t\t// Needs to create an history if we're going to listen to it.\n\t\tthis.routerService.createBrowserHistory();\n\n\t\tthis.routerService.history.listen((state) => {\n\t\t\t// \"setLocationByRoute\" will fail if the booting state is not in \"Routeable\".\n\t\t\tif (this.bootState >= BootState.Routeable) return;\n\t\t\tthis.setSelectedLocation(state.location.pathname);\n\t\t});\n\n\t\treturn this;\n\t}\n\n\tprivate async loadRecentlyVisited(user: ReadonlyUser | null): Promise<void> {\n\t\t// Ignored this if not signed in\n\t\tif (user == null) return;\n\t\t// Ignored this if outsider\n\t\tif (user.userType === UserType.Outsider) return;\n\n\t\tthis.logger.logDebug('Took action on the \"authenticated\" interceptor');\n\n\t\tlet latestVisitedReceptionId = await this.registerRecentVisitService.dispatchLatestRegistered();\n\t\tif (latestVisitedReceptionId == null) {\n\t\t\tconst { data } = await this.recentReceptionsApiService.getRecentlyVisited(1);\n\t\t\tlatestVisitedReceptionId = data[0]?.ReceptionId ?? null;\n\t\t}\n\n\t\tif (latestVisitedReceptionId != null) {\n\t\t\tconst unit = this.unitService.getUnitNodeInTreeByReceptionId(latestVisitedReceptionId);\n\n\t\t\tawait this.locationSelectorService.commitByUnitId(unit.id);\n\t\t}\n\t}\n\n\tprivate async setSelectedLocation(pathname: string): Promise<void> {\n\t\tconst normalizePathname = this.unitService.normalizePathnameToBackTraceableRoute(pathname);\n\t\tconst unitId = this.unitService.backTraceUnitIdFromRoute(normalizePathname);\n\t\tconst unit = this.unitService.getUnitNodeInTree(unitId);\n\t\tif (!unit.isEntrance && unit.parent != null) {\n\t\t\tthis.logger.logDebug(\n\t\t\t\t`Exited route \"${normalizePathname}\" early, can't do routing on non-entrances (non-root if not enterprise)`,\n\t\t\t);\n\n\t\t\treturn;\n\t\t}\n\n\t\tawait this.locationSelectorService.commitByRoute(normalizePathname);\n\t}\n\n\tprivate getUrlAlias(): string {\n\t\tlet urlAlias = location.pathname.replace(`/${PUBLIC_SUB_URL_PATH}/`, '');\n\t\tif (urlAlias.charAt(0) == '/') {\n\t\t\turlAlias = urlAlias.substring(1);\n\t\t}\n\t\turlAlias = urlAlias.split('/')[0];\n\n\t\treturn urlAlias;\n\t}\n}\n\nexport enum BootState {\n\tPristine = 0,\n\tNonFunctional = 1,\n\tHasCriticalInformation = 2,\n\tRouteable = 3,\n\tCompleted = 32,\n}\n\nexport class StartupServiceAlreadyBootedError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'StartupServiceAlreadyBootedError';\n\t\tObject.setPrototypeOf(this, StartupServiceAlreadyBootedError.prototype);\n\t}\n}\n","import { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { ApiBaseClient } from './_api_base_client';\nimport { HttpResponse, HttpService } from '@application/http.service';\nimport type { HomeGuiComponentsApiModel, Locale } from './generated/clientv2/models';\n\n@Injectable({\n\tscope: Scopes.Transient,\n})\nexport class LicenceHolderApi extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper();\n\t}\n\n\tpublic getHomeGuiComponents(licenceHolderId: number): HttpResponse<HomeGuiComponentsApiModel> {\n\t\treturn this.httpService.get(`${this.baseUri}/${licenceHolderId}/HomeGuiComponents`);\n\t}\n\n\tpublic getLocale(licenceHolderId: number): HttpResponse<Locale> {\n\t\treturn this.httpService.get(`${this.baseUri}/${licenceHolderId}/locale`);\n\t}\n\n\tpublic getTheme(licenceHolderId: number): HttpResponse<Record<string, string>> {\n\t\treturn this.httpService.get(`${this.baseUri}/${licenceHolderId}/theme/public`);\n\t}\n\n\tpublic getMethods(licenceHolderId: number): HttpResponse<\n\t\t{\n\t\t\tScheme: 'string';\n\t\t\tName: 'string';\n\t\t\tDescription: 'string';\n\t\t\tUseIframe: boolean;\n\t\t}[]\n\t> {\n\t\t// Why tf is this not v2 when it's new?\n\t\treturn this.httpService.get(`/client/auth/idp/${licenceHolderId}/methods`);\n\t}\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport { ParameterHandler } from '@visiba/std';\nimport { ApiBaseClient } from './_api_base_client';\nimport { HttpResponse, HttpService } from '@application/http.service';\nimport { ReceptionVisitInput } from './generated/clientv2/models';\n\n@Injectable()\nexport class RecentReceptionsApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('Receptions');\n\t}\n\n\tpublic async getRecentlyVisited(count: number): HttpResponse<ReceptionVisitInput[]> {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({\n\t\t\tcount,\n\t\t});\n\n\t\treturn this.httpService.get(`${this.baseUri}/recentlyVisited${parameterHandler.getString()}`);\n\t}\n\n\tpublic async postToRecentlyVisited(receptionId: number): HttpResponse<unknown> {\n\t\treturn this.httpService.post(`${this.baseUri}/recentlyVisited`, { receptionId });\n\t}\n}\n","import { ControllerProtocol, Injectable } from '@visiba-cortex/instantiation';\nimport { signal } from '@preact/signals-react';\nimport { Logger, Message } from '@visiba/logger';\nimport { FeatureFlagService } from '@application/feature_flags/feature_flag.service';\nimport { LicenceHolderApi } from '@api_patient/licence_holder_api.service';\nimport { GeneralApiService } from '@api_patient/general_api.service';\nimport { TokenOverrides } from '@cellula/react';\nimport { CriticalData, UniversalConfig } from '@application/universal_config.service';\nimport { I18nAndL10n } from '@application/i18n/i18n_and_l10n';\nimport { TRANSLATION_SETS } from '../../constants';\nimport { AuthService } from '@application/authentication/auth.service';\nimport { CaseService } from '@feature/cases/case.service';\nimport { UnitService } from '@application/unit.service';\nimport { UserSettingsService } from '@feature/settings/user_settings.service';\nimport { DateService } from '@application/time/date.service';\nimport { isSomeError } from '@visiba/std';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { RecentReceptionsApiService } from '@api_patient/recent_receptions_api.service';\nimport { ConsentService, UserConsent } from '@component/consent/consent.service';\nimport { NiN } from '@visiba/national-identity-number';\n\nexport enum BootState {\n\tPristine = 1 << 0,\n\tNonFunctional = 1 << 1,\n\tHasCriticalInformation = 1 << 2,\n\tRouteable = 1 << 3,\n\tCompleted = 1 << 4,\n}\n\n@Injectable()\nexport class ShellController implements ControllerProtocol {\n\tpublic bootState = signal(BootState.Pristine);\n\n\tprivate readonly logger = new Logger('startup');\n\tprivate readonly globalLogger = new Logger('global');\n\n\tconstructor(\n\t\tprivate readonly featureFlagService: FeatureFlagService,\n\t\tprivate readonly licenceHolderApi: LicenceHolderApi,\n\t\tprivate readonly generalApiService: GeneralApiService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly authService: AuthService,\n\t\tprivate readonly caseService: CaseService,\n\t\tprivate readonly unitService: UnitService,\n\t\tprivate readonly userSettingsService: UserSettingsService,\n\t\tprivate readonly dateService: DateService,\n\t\tprivate readonly analyticService: AnalyticService,\n\t\tprivate readonly recentReceptionsApiService: RecentReceptionsApiService,\n\t\tprivate readonly consentService: ConsentService,\n\t) {\n\t\t// Empty\n\t}\n\n\tasync whenMount() {\n\t\tawait this.boot();\n\t}\n\n\t/**\n\t * Starts the application\n\t * ---\n\t * Initializing and distributing necessary data through globally dependant\n\t * services. While not all data is required for the application to render, a\n\t * portion is and that data is under a \"Critical Data\" section. The way the\n\t * application will be able to determine when it may render is through a\n\t * \"bootState\". This boot state is mutated through the flow of this method,\n\t * and everything under \"Routeable\" should not invoke any React tree that's\n\t * sensitive to the critical data existing.\n\t *\n\t * To make the experience better for the end user, keeping the amount of\n\t * Critical Data down is important for us. Especially when the application\n\t * is a SPA (Single Page Application) for the time being and the user needs to\n\t * fetch both a main.js bundle and the booting data. We'll need to do some\n\t * classic kluringar eventually to keep the load time for mobile devices as\n\t * fast as possible - either smarter SPA handling or going SSR hybrid.\n\t */\n\tpublic async boot() {\n\t\tthis.useGlobalCatch();\n\t\tthis.useAnalyticErrors();\n\n\t\tthis.logger.logInformation('start booting process');\n\n\t\t// We need to boot the application with some customer.\n\t\tconst urlAlias = this.getUrlAlias();\n\n\t\tthis.logger.logInformation('loads public base');\n\t\tconst patientBaseResult = await this.generalApiService.getPatientBase(urlAlias);\n\t\tif (patientBaseResult.err) return this.handleFailureOfCriticalData(patientBaseResult.err);\n\t\tconst {\n\t\t\tCurrency: _Currency,\n\t\t\tGlobalCustomerId,\n\t\t\tHideProvidedByVisibaCare,\n\t\t\tLanguageCode: _LanguageCode,\n\t\t\tLicenceHolderId,\n\t\t\tRootUnitId,\n\t\t\tDaysToDepersonalizeClientAfterRequest,\n\t\t\tPrivacyPolicyUrl,\n\t\t\tRequireClientEmail,\n\t\t\tRequireClientPhone,\n\t\t\tTermsOfServiceUrl,\n\t\t\tAppConfig,\n\t\t} = patientBaseResult.ok.data;\n\n\t\tconst localeResult = await this.licenceHolderApi.getLocale(LicenceHolderId);\n\t\tif (localeResult.err) return this.handleFailureOfCriticalData(localeResult.err);\n\t\tconst {\n\t\t\tAvailableLanguages,\n\t\t\tDefaultCountry,\n\t\t\tDefaultLanguage,\n\t\t\tSupportedCountries: _SupportedCountries,\n\t\t\tTimeZoneIana: _TimeZoneIana,\n\t\t} = localeResult.ok.data;\n\n\t\tthis.logger.logInformation('loads theme');\n\t\tconst themeResult = await this.licenceHolderApi.getTheme(patientBaseResult.ok.data.LicenceHolderId);\n\t\tif (themeResult.err) return this.handleFailureOfCriticalData(themeResult.err);\n\n\t\tthis.logger.logInformation('check auth status');\n\t\tconst identityResult = await this.authService.loadIdentity();\n\t\tif (identityResult.err) return this.handleFailureOfCriticalData(identityResult.err);\n\n\t\tthis.universalConfig.insertCriticalData(\n\t\t\tnew CriticalData({\n\t\t\t\tavailableLanguages: AvailableLanguages,\n\t\t\t\tglobalCustomerId: GlobalCustomerId,\n\t\t\t\turlAlias: urlAlias,\n\t\t\t\trootUnitId: RootUnitId,\n\t\t\t\tlicenceHolderId: LicenceHolderId,\n\t\t\t\tinitialCountryCode: DefaultCountry as keyof NiN.Implementations,\n\t\t\t\tlanguageCode: DefaultLanguage,\n\t\t\t\ttheme: themeResult.ok.data as TokenOverrides,\n\t\t\t\thideProvidedByVisibaCare: HideProvidedByVisibaCare,\n\t\t\t\trequireClientEmail: RequireClientEmail,\n\t\t\t\trequireClientPhone: RequireClientPhone,\n\t\t\t\tdaysToDepersonalizeClientAfterRequest: DaysToDepersonalizeClientAfterRequest,\n\t\t\t\tlegal: {\n\t\t\t\t\ttos: TermsOfServiceUrl,\n\t\t\t\t\tpp: PrivacyPolicyUrl,\n\t\t\t\t},\n\t\t\t\tappConfig: AppConfig\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tandroidPackageId: AppConfig.AndroidPackageId,\n\t\t\t\t\t\t\tappStoreId: AppConfig.AppStoreId,\n\t\t\t\t\t\t}\n\t\t\t\t\t: null,\n\t\t\t}),\n\t\t);\n\n\t\tthis.bootState.value = BootState.HasCriticalInformation;\n\n\t\tthis.userSettingsService.loadSettings();\n\t\tthis.userSettingsService.setLanguage();\n\n\t\t// Figure out how to remove this...\n\t\tthis.logger.logInformation('Unnecessarily loads unit tree');\n\t\tconst unitServiceResult = await this.unitService.load(RootUnitId);\n\t\tif (unitServiceResult.err) return this.handleFailureOfCriticalData(unitServiceResult.err);\n\n\t\tif (this.authService.isSignedIn()) {\n\t\t\tconst result = await this.recentReceptionsApiService.getRecentlyVisited(1);\n\t\t\tif (result.ok) {\n\t\t\t\tconst latestVisitedReceptionId = result.ok.data[0]?.ReceptionId ?? null;\n\n\t\t\t\tthis.universalConfig.recentlyVisitedReceptionId.value = latestVisitedReceptionId;\n\t\t\t}\n\t\t}\n\n\t\tthis.logger.logInformation('loads translation set');\n\n\t\tconst getTranslationSetResults = await this.generalApiService.getTranslationSets(\n\t\t\tLicenceHolderId,\n\t\t\t[...TRANSLATION_SETS],\n\t\t\tthis.userSettingsService.getSettings().selectedLanguage,\n\t\t);\n\n\t\tif (getTranslationSetResults.err) {\n\t\t\treturn this.handleFailureOfCriticalData(getTranslationSetResults.err);\n\t\t}\n\n\t\tI18nAndL10n.insertTranslations(getTranslationSetResults.ok.data);\n\n\t\t// Set locale for date service\n\t\tawait this.dateService.loadLocale(this.userSettingsService.getSettings().selectedLanguage);\n\n\t\tthis.logger.logInformation('loads feature flags');\n\t\tconst featureFlagResult = await this.featureFlagService.load(urlAlias);\n\t\tif (featureFlagResult.err) {\n\t\t\tthis.logger.logError('failed to load feature flags');\n\t\t}\n\n\t\t// Keep current behaviour of consent if the toggle is not activated.\n\t\tif (!this.featureFlagService.checkFlag('PatientWeb.UseNewConsent')) {\n\t\t\tthis.consentService.setDefault(UserConsent.Essential, UserConsent.Analytic, UserConsent.Functional);\n\t\t} else {\n\t\t\tthis.consentService.setDefault(UserConsent.Essential);\n\t\t}\n\n\t\tthis.consentService.on('onConsent', () => {\n\t\t\tthis.analyticService.createTracker();\n\t\t});\n\n\t\tthis.analyticService.setup(LicenceHolderId, GlobalCustomerId);\n\n\t\t// This case polling is a side effect of that we don't have a proper api call to\n\t\t// fetch notification count for patient cases.\n\t\t// TODO: Fix a better solution!\n\t\tif (identityResult.ok) {\n\t\t\tconst d = this.caseService.pollData(() => {\n\t\t\t\td();\n\t\t\t});\n\t\t}\n\n\t\tthis.bootState.value = BootState.Routeable;\n\t\tthis.logger.logInformation('finished booting process');\n\n\t\treturn {\n\t\t\tunitServiceResult: unitServiceResult.ok,\n\t\t\tfeatureToggles: featureFlagResult.ok,\n\t\t\tlocaleResult: localeResult.ok.data,\n\t\t\tpatientBaseResult: patientBaseResult.ok.data,\n\t\t\tthemeResult: themeResult.ok.data,\n\t\t\tidentityResult: identityResult.ok,\n\t\t\tgetTranslationSetResult: getTranslationSetResults.ok.data,\n\t\t};\n\t}\n\n\tprivate useGlobalCatch() {\n\t\tthis.globalLogger.logInformation('set up global event emitters');\n\t\tglobalThis.addEventListener('error', (err) => {\n\t\t\tthis.globalLogger.logFatal('error: {error}', err);\n\t\t});\n\t\tglobalThis.addEventListener('unhandledrejection', (err) => {\n\t\t\tthis.globalLogger.logFatal('unhandledrejection {error}', err);\n\t\t});\n\t}\n\n\tprivate useAnalyticErrors() {\n\t\tfunction serializeMessage(message: Message): string {\n\t\t\ttry {\n\t\t\t\tconst sendData: Message = {\n\t\t\t\t\tctx: message.ctx,\n\t\t\t\t\tdata: message.data.map((someValue: unknown) => {\n\t\t\t\t\t\tif (someValue instanceof ErrorEvent) {\n\t\t\t\t\t\t\tconst err = someValue.error;\n\n\t\t\t\t\t\t\tconst serializedError = JSON.stringify(err, Object.getOwnPropertyNames(err));\n\n\t\t\t\t\t\t\treturn JSON.parse(serializedError);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (someValue instanceof PromiseRejectionEvent) {\n\t\t\t\t\t\t\tconst someReason = someValue.reason;\n\n\t\t\t\t\t\t\tif (isSomeError(someValue)) {\n\t\t\t\t\t\t\t\tconst serializedError = JSON.stringify(someReason, Object.getOwnPropertyNames(someReason));\n\n\t\t\t\t\t\t\t\treturn JSON.parse(serializedError);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn someReason;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (isSomeError(someValue)) {\n\t\t\t\t\t\t\tconst serializedError = JSON.stringify(someValue, Object.getOwnPropertyNames(someValue));\n\n\t\t\t\t\t\t\treturn JSON.parse(serializedError);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn someValue;\n\t\t\t\t\t}),\n\t\t\t\t\tlevel: message.level,\n\t\t\t\t\ttemplate: message.template,\n\t\t\t\t\ttimestamp: message.timestamp,\n\t\t\t\t};\n\n\t\t\t\treturn JSON.stringify(sendData);\n\t\t\t} catch {\n\t\t\t\treturn '<could not parse>';\n\t\t\t}\n\t\t}\n\n\t\tLogger.on('fatal', (data) => {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.UnhandledError, data[1].template, serializeMessage(data[1]));\n\t\t});\n\t\tLogger.on('error', (data) => {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Error, data[1].template, serializeMessage(data[1]));\n\t\t});\n\t}\n\n\tprivate handleFailureOfCriticalData(err: Error) {\n\t\tI18nAndL10n.derived({\n\t\t\t'View.NonRecoverableError.Text': 'Unexpected error',\n\t\t\t'View.NonRecoverableError.Heading': 'error',\n\t\t});\n\n\t\tthis.bootState.value = BootState.NonFunctional;\n\n\t\tthis.logger.logFatal('failed to boot application, reason: {reason}', err.message);\n\n\t\treturn null;\n\t}\n\n\tprivate getUrlAlias(): string {\n\t\tlet urlAlias = location.pathname.replace(`/v/`, '');\n\t\tif (urlAlias.charAt(0) == '/') {\n\t\t\turlAlias = urlAlias.substring(1);\n\t\t}\n\t\turlAlias = urlAlias.split('/')[0];\n\n\t\treturn urlAlias;\n\t}\n}\n","import '../../../../src/environment.d.ts';\nimport { environment } from '../../../environments/environment';\nimport { Helper } from '../../Common/Helpers/helper';\nimport { BackendApiResponse, HttpClientOptionsBase } from '../../Classes/visibaHttp.class';\nimport { Injectable, NgZone } from '@angular/core';\nimport { forkJoin } from 'rxjs';\nimport { UnitConfigApiModel } from '../api/v2/Models/UnitConfigApiModel';\nimport { UnitAboutApiModel } from '../api/v2/Models/UnitAboutApiModel';\nimport { IdentityApiModel } from '../api/v2/Models/IdentityApiModel';\nimport { ResourceIdentityApiModel } from '../api/v2/Models/ResourceIdentityApiModel';\nimport { UnitModel } from '../api/v2/Models/UnitModel';\nimport { HttpClient } from '@angular/common/http';\nimport { ResolveStart, Router } from '@angular/router';\nimport { root } from '../../routes';\nimport { UnitService } from '@services/unit.service';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { EnvironmentService } from '@services/environment.service/mod';\nimport { StartupService as InjectedStartupService } from '@services/startup.service';\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport { UserSettingsService } from '@services/user_settings.service';\nimport { ConfigService } from '@services/config.service';\nimport { sharedResolution } from '../../../../src/shared_resolution';\nimport { ShellController } from '@application/shell/shell.controller';\nimport type { UnitConfigApiModel as NewUnitConfigApiModel } from '@api/generated/models';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { UnitService as UnitService_from_react_only } from '@application/unit.service';\nimport { authServiceThatOriginatesFromReactOnly } from '../../../../src/application/services/auth/temp_migration_file';\nimport { AuthService } from '@application/authentication/auth.service';\n\n@Injectable()\nexport class StartupService {\n\twebVersion: string = null;\n\tunitConfigData: UnitConfigApiModel = null;\n\tunitAboutData: UnitAboutApiModel = null;\n\tunitTreeData: UnitModel = null;\n\tpatientIdentityData: IdentityApiModel = null;\n\tresourceIdentityData: ResourceIdentityApiModel = null;\n\n\tprivate readonly environmentService = sharedResolution.resolve(EnvironmentService);\n\tprivate readonly injectedStartupService = sharedResolution.resolve(InjectedStartupService);\n\tprivate readonly unitService = sharedResolution.resolve(UnitService);\n\tprivate readonly licenceHolderService = sharedResolution.resolve(LicenceHolderService);\n\tprivate readonly locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\tprivate readonly userSettingsService = sharedResolution.resolve(UserSettingsService);\n\tprivate readonly configService = sharedResolution.resolve(ConfigService);\n\n\tconstructor(\n\t\tprivate _http: HttpClient,\n\t\tprivate helper: Helper,\n\t\tprivate readonly router: Router,\n\t\tprivate readonly ngZone: NgZone,\n\t) {}\n\n\t// This is the method you want to call at bootstrap\n\t// Important: It should return a Promise\n\tasync load(): Promise<any> {\n\t\tauthServiceThatOriginatesFromReactOnly.instance = sharedResolution.resolve(AuthService);\n\n\t\tthis.useGoogleFontPrevention();\n\n\t\twindow.__TEMP__ = true;\n\t\twindow.__TEMP__overrideNavigation = (to: string) => {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tthis.router.navigateByUrl(to);\n\t\t\t});\n\t\t};\n\n\t\tthis.environmentService.hosting.apiBaseUri = environment.api.uri + '/api';\n\n\t\tconst shell = sharedResolution.resolve(ShellController);\n\t\tconst unitService = sharedResolution.resolve(UnitService_from_react_only);\n\t\tconst universalConfig = sharedResolution.resolve(UniversalConfig);\n\t\tconst result = await shell.boot();\n\t\tif (result == null) {\n\t\t\tthrow new Error('Shell failed to boot');\n\t\t}\n\n\t\tawait this.injectedStartupService.boot(result);\n\n\t\tconst userSettings = this.userSettingsService.getSettings();\n\t\tif (localStorage.getItem('languageCode') == null) {\n\t\t\tlocalStorage.setItem('languageCode', userSettings.selectedLanguage);\n\t\t}\n\n\t\tthis.createRoutes();\n\n\t\tthis.router.events.subscribe((event) => {\n\t\t\tif (event instanceof ResolveStart) {\n\t\t\t\tconst traceableRoute = this.unitService.normalizePathnameToBackTraceableRoute(event.url);\n\n\t\t\t\tthis.locationSelectorService.commitByRoute(traceableRoute);\n\n\t\t\t\tconst isReception = unitService.normalizePathnameToBackTraceableRoute(window.location.pathname);\n\t\t\t\tconst unitId = unitService.backTraceUnitIdFromRoute(isReception);\n\t\t\t\tuniversalConfig.currentUnitId = unitId;\n\t\t\t}\n\t\t});\n\n\t\treturn new Promise<void>(async (resolve, reject) => {\n\t\t\tconst requestOptions: HttpClientOptionsBase = {\n\t\t\t\tobserve: 'response',\n\t\t\t\tresponseType: 'json',\n\t\t\t\theaders: {\n\t\t\t\t\t'X-App-WebVersion': 'init',\n\t\t\t\t\t'X-App-Lang': localStorage.getItem('languageCode'),\n\t\t\t\t} as any,\n\t\t\t};\n\t\t\tforkJoin([\n\t\t\t\tthis._http.get<BackendApiResponse<any>>(\n\t\t\t\t\t`${environment.api.uri}/api/Client/v2/units/${this.unitService.rootUnit.id}/about`,\n\t\t\t\t\trequestOptions,\n\t\t\t\t),\n\t\t\t\tthis._http.get<BackendApiResponse<any>>(`${environment.api.uri}/api/Client/v2/identity`, requestOptions),\n\t\t\t\tthis._http.get<BackendApiResponse<any>>(\n\t\t\t\t\t`${environment.api.uri}/Api/Office/${this.licenceHolderService.id}/Identity/Info`,\n\t\t\t\t\trequestOptions,\n\t\t\t\t),\n\t\t\t]).subscribe(\n\t\t\t\tasync ([about, patientIdentity, resourceIdentity]) => {\n\t\t\t\t\tthis.webVersion = about.headers.get('X-App-WebVersion');\n\n\t\t\t\t\t// Use config that's loaded in new ConfigService via boot above\n\t\t\t\t\tconst traceableRoute = this.unitService.normalizePathnameToBackTraceableRoute(location.pathname);\n\t\t\t\t\tconst unitId = this.unitService.backTraceUnitIdFromRoute(traceableRoute);\n\t\t\t\t\tuniversalConfig.currentUnitId = unitId;\n\t\t\t\t\tlet loadedConfig: NewUnitConfigApiModel = this.configService.__TEMP__loadedConfigsRaw.get(unitId);\n\t\t\t\t\tif (loadedConfig == null) {\n\t\t\t\t\t\tloadedConfig = await new Promise<NewUnitConfigApiModel>((resolve) => {\n\t\t\t\t\t\t\tconst interval = setInterval(() => {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tconst config = this.configService.__TEMP__loadedConfigsRaw.get(unitId);\n\t\t\t\t\t\t\t\t\tif (config != null) {\n\t\t\t\t\t\t\t\t\t\tclearInterval(interval);\n\t\t\t\t\t\t\t\t\t\tresolve(config);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\t\t\t// noop\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}, 50);\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.unitConfigData = {\n\t\t\t\t\t\t...loadedConfig,\n\n\t\t\t\t\t\tAbout: about.body.Data,\n\t\t\t\t\t\tWebContentButtons: [],\n\t\t\t\t\t};\n\n\t\t\t\t\tthis.unitTreeData = result.unitServiceResult;\n\n\t\t\t\t\tif (patientIdentity.body.Data !== null) this.patientIdentityData = patientIdentity.body.Data;\n\n\t\t\t\t\tif (resourceIdentity.body.Data !== null) this.resourceIdentityData = resourceIdentity.body.Data;\n\n\t\t\t\t\tµ.Dict = this.unitConfigData.Translations; // Until this.translateService.get is no longer used\n\n\t\t\t\t\tthis.afterDataLoad();\n\n\t\t\t\t\tresolve();\n\t\t\t\t},\n\t\t\t\t(error) => {\n\t\t\t\t\tconsole.error(error);\n\t\t\t\t\tdocument.body.innerHTML =\n\t\t\t\t\t\t'<h1 class=\"title -h1\" style=\"position:absolute;top:40%;left:50%;transform:translateX(-50%);\">Unable to load application! Please try again later!</h1>';\n\t\t\t\t},\n\t\t\t);\n\t\t});\n\t}\n\n\tprivate useGoogleFontPrevention() {\n\t\tconst head = document.getElementsByTagName('head')[0] as any;\n\t\tconst insertBefore = head.insertBefore;\n\t\thead.insertBefore = (newElement: any, referenceElement: any) => {\n\t\t\tif (newElement.href && newElement.href.indexOf('//fonts.googleapis.com/css?') > -1) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tinsertBefore.call(head, newElement, referenceElement);\n\t\t};\n\t}\n\n\tprivate afterDataLoad() {\n\t\tthis.setGlobalDateNames();\n\n\t\tif (this.unitConfigData.Theme !== null) {\n\t\t\tconst themeEl = document.createElement('link');\n\t\t\tthemeEl.rel = 'stylesheet';\n\t\t\tthemeEl.type = 'text/css';\n\t\t\tthemeEl.href = `${environment.api.uri}/Api/General/Theme/holder/${this.unitConfigData.LicenceHolder.Id}`;\n\t\t\tdocument.body.appendChild(themeEl);\n\n\t\t\t// TODO: Uncomment this when we can actually support this\n\t\t\t// if (this.unitConfigData.Theme.FontUrl != null) {\n\t\t\t// \tconst fontEl = document.createElement('link');\n\t\t\t// \tfontEl.rel = 'stylesheet';\n\t\t\t// \tfontEl.type = 'text/css';\n\t\t\t// \tfontEl.href = this.unitConfigData.Theme.FontUrl.toString();\n\t\t\t// \tdocument.head.appendChild(fontEl);\n\t\t\t// }\n\t\t}\n\t}\n\n\tprivate setGlobalDateNames() {\n\t\tµ.Env.i18n = {\n\t\t\tdayNames: [\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.DayShort.0'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.DayShort.1'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.DayShort.2'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.DayShort.3'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.DayShort.4'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.DayShort.5'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.DayShort.6'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Day.0'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Day.1'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Day.2'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Day.3'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Day.4'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Day.5'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Day.6'],\n\t\t\t],\n\t\t\tmonthNames: [\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.MonthShort.1'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.MonthShort.2'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.MonthShort.3'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.MonthShort.4'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.MonthShort.5'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.MonthShort.6'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.MonthShort.7'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.MonthShort.8'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.MonthShort.9'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.MonthShort.10'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.MonthShort.11'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.MonthShort.12'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Month.1'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Month.2'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Month.3'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Month.4'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Month.5'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Month.6'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Month.7'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Month.8'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Month.9'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Month.10'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Month.11'],\n\t\t\t\tthis.unitConfigData.Translations['Common.Calendar.Month.12'],\n\t\t\t],\n\t\t};\n\t}\n\n\tprivate createRoutes(): void {\n\t\tthis.router.resetConfig(root());\n\t}\n}\n","// eslint-disable-next-line @typescript-eslint/triple-slash-reference\n\nimport { GuestComponent } from './Views/Guest/guest.component';\nimport { ViewGuard } from './Guards/view.guard';\nimport { Routes } from '@angular/router';\nimport { SecurityLevel } from './Constants/securityLevel';\nimport { ComponentsComponent } from './Views/Develop/components.component';\nimport { EmbeddedWebComponent } from './Components/embedded-web.component';\nimport { ProxyRedirectComponent } from './Views/ProxyRedirect/ProxyRedirect.component';\n\nimport { UnitService } from '@services/unit.service';\nimport { HomeWrapperComponent } from 'Public_old/src/wrappers/home.wrapper';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { ChangeUnitWrapperComponent } from 'Public_old/src/wrappers/change-unit.wrapper';\nimport { ReceptionHomeWrapperComponent } from '../wrappers/reception-home.wrapper';\nimport { MyAccountWrapperComponent } from '../wrappers/my_account.wrapper';\nimport { SignInFinishWrapperComponent } from '../wrappers/sign-in-finish.wrapper';\nimport { sharedResolution } from '../../src/shared_resolution';\nimport { GuestWrapperComponent } from '../wrappers/guest.wrapper';\nimport { CreateNewMessageWrapper } from '../wrappers/create-new-message.wrapper';\nimport { isWithinVisibaWebView } from '@public/src/modules/is_within_visiba_web_view';\nimport { AppointmentWrapperComponent } from '../wrappers/appointment.wrapper';\nimport { RedRobinRedirectWrapperComponent } from '../wrappers/red_robin_forward.wrapper';\n\nexport function root(): Routes {\n\tconst unitService = sharedResolution.resolve(UnitService);\n\tconst licenceHolderService = sharedResolution.resolve(LicenceHolderService);\n\tconst routes: Routes = [{ path: '**', redirectTo: 'error/404' }];\n\n\tfor (const unit of unitService.units.values()) {\n\t\tconst isRoot = unit.id === unitService.rootUnit.id;\n\n\t\tif (isRoot) {\n\t\t\tif (!unit.isEntrance) {\n\t\t\t\troutes.push({\n\t\t\t\t\tpath: unit.route,\n\t\t\t\t\tcomponent: HomeWrapperComponent,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Public },\n\t\t\t\t});\n\t\t\t}\n\n\t\t\troutes.push(\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/my-account`,\n\t\t\t\t\tcomponent: MyAccountWrapperComponent,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Client, availibleToNonEntrance: true },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/visits`,\n\t\t\t\t\tloadChildren: () => import('./Views/Visits/visits.module').then((m) => m.VisitsModule),\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Public },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/cookie-policy`,\n\t\t\t\t\tloadChildren: () => import('./Views/CookiePolicy/cookiePolicy.module').then((m) => m.CookiePolicyModule),\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/change`,\n\t\t\t\t\tcomponent: ChangeUnitWrapperComponent,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Public },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/change-unit`,\n\t\t\t\t\tcomponent: ChangeUnitWrapperComponent,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Public },\n\t\t\t\t},\n\t\t\t);\n\n\t\t\tif (__visiba_feature_flags__['CareExperience.PW.Idp']) {\n\t\t\t\troutes.push({\n\t\t\t\t\tpath: `${unit.route}/sign-in-finish`,\n\t\t\t\t\tcomponent: SignInFinishWrapperComponent,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Public },\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tif (unit.isEntrance) {\n\t\t\troutes.push(\n\t\t\t\t{\n\t\t\t\t\tpath: unit.route,\n\t\t\t\t\tcomponent: ReceptionHomeWrapperComponent,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Public },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/_dev`,\n\t\t\t\t\tcomponent: ComponentsComponent,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Developer },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/message`,\n\t\t\t\t\tcomponent: CreateNewMessageWrapper,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Client },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/message/start`,\n\t\t\t\t\tcomponent: CreateNewMessageWrapper,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Client },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/message/reason-for-visit`,\n\t\t\t\t\tcomponent: CreateNewMessageWrapper,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Client },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/message/conclusion`,\n\t\t\t\t\tcomponent: CreateNewMessageWrapper,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Client },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/message/forms`,\n\t\t\t\t\tcomponent: CreateNewMessageWrapper,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Client },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/message/forms/:formId`,\n\t\t\t\t\tcomponent: CreateNewMessageWrapper,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Client },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/message/forms/:formId/:page`,\n\t\t\t\t\tcomponent: CreateNewMessageWrapper,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Client },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/message/done`,\n\t\t\t\t\tcomponent: CreateNewMessageWrapper,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Client },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/message/done/:conversationId`,\n\t\t\t\t\tcomponent: CreateNewMessageWrapper,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Client },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/message/info`,\n\t\t\t\t\tredirectTo: `${unit.route}/message`,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/ew`,\n\t\t\t\t\tcomponent: EmbeddedWebComponent,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Public },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/go-to-red-robin`,\n\t\t\t\t\tcomponent: RedRobinRedirectWrapperComponent,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Client },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/guest-participant`,\n\t\t\t\t\tredirectTo: `${licenceHolderService.alias}`,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/guest-participant/:callTicket`,\n\t\t\t\t\tcomponent: getGuestComponent(),\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Public, availibleToNonEntrance: true },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/guest-participant/legacy/:callTicket`,\n\t\t\t\t\tcomponent: GuestComponent,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Public, availibleToNonEntrance: true },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/guest-participant/new/:callTicket`,\n\t\t\t\t\tcomponent: GuestWrapperComponent,\n\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\tdata: { access: SecurityLevel.Public, availibleToNonEntrance: true },\n\t\t\t\t},\n\t\t\t\t{ path: `${unit.route}/completeRegistration`, component: ProxyRedirectComponent },\n\n\t\t\t\t__visiba_feature_flags__['PatientWeb.UseAlternativeAppointment']\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tpath: `${unit.route}/appointment/:callTicket`,\n\t\t\t\t\t\t\tcomponent: AppointmentWrapperComponent,\n\t\t\t\t\t\t\tcanActivate: [ViewGuard],\n\t\t\t\t\t\t\tdata: { access: SecurityLevel.ResourceOrClientOrOutsider },\n\t\t\t\t\t\t}\n\t\t\t\t\t: {\n\t\t\t\t\t\t\tpath: `${unit.route}/appointment`,\n\t\t\t\t\t\t\tloadChildren: () => import('./Views/Appointment/appointment.module').then((m) => m.AppointmentModule),\n\t\t\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/booking`,\n\t\t\t\t\tloadChildren: () => import('../wrappers/booking.wrapper').then((m) => m.BookingWrapperModule),\n\t\t\t\t},\n\t\t\t\t{ path: `${unit.route}/error`, loadChildren: () => import('./Views/Error/error.module').then((m) => m.ErrorModule) },\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/form`,\n\t\t\t\t\tloadChildren: () => import('./Views/DynamicForm/dynamicform.module').then((m) => m.DynamicFormModule),\n\t\t\t\t},\n\t\t\t\t{ path: `${unit.route}/dropin`, loadChildren: () => import('./Views/DropIn/dropin.module').then((m) => m.DropInModule) },\n\t\t\t\t// Legacy deeplink support\n\t\t\t\t// https://visibacare.atlassian.net/wiki/spaces/PROD/pages/1281359982/How+to+create+the+right+deep+link\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/visits`,\n\t\t\t\t\tredirectTo: `${licenceHolderService.alias}/visits`,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: `${unit.route}/profile`,\n\t\t\t\t\tredirectTo: `${licenceHolderService.alias}/profile`,\n\t\t\t\t},\n\t\t\t);\n\t\t}\n\t}\n\n\treturn routes;\n}\n\nfunction getGuestComponent() {\n\tif (isWithinVisibaWebView()) return GuestComponent;\n\tif (__visiba_feature_flags__['CareExperience.PW.Idp']) return GuestWrapperComponent;\n\n\treturn GuestComponent;\n}\n","import { Injectable } from '@angular/core';\nimport { SpaEventService } from './spaEvents.service';\n\n@Injectable()\nexport class ApplicationService {\n\tpublic webVersion: string | null = null;\n\n\tconstructor(private spaEventService: SpaEventService) {}\n}\n","import { FieldOption } from '../../../../Constants/FieldOption';\n\nexport class IdentityApiModel {\n\tId: number;\n\tNationality: string;\n\tNationalIdentityNumber: string;\n\tPhone: string;\n\tFirstName: string;\n\tLastName: string;\n\tEmail: string;\n\tNationalIdentityNumberRequirement: FieldOption;\n\tPhoneRequirement: FieldOption;\n\tEmailRequirement: FieldOption;\n\n\t// Not in backend YET VC-2430\n\tUserType: 'Client' | 'Outsider' | 'Resource';\n\t// LicenceHolderId: number;\n\t// Id: number;\n\n\tpublic legacyDocumentSignin = false;\n\n\t// Frontend property\n\tget CommonName() {\n\t\treturn `${this.FirstName} ${this.LastName}`;\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { IdentityApiModel } from './api/v2/Models/IdentityApiModel';\nimport { SpaEventService } from './spaEvents.service';\nimport { ResourceIdentityApiModel } from './api/v2/Models/ResourceIdentityApiModel';\nimport { AuthService, ReadonlyUser } from '@public/src/application/services/auth/mod';\nimport { sharedResolution } from '../../../src/shared_resolution';\n\n@Injectable()\nexport class AuthContextService {\n\tpublic patientIdentity: IdentityApiModel | null = null;\n\tpublic resourceIdentity: ResourceIdentityApiModel | null = null;\n\tpublic isAuthenticatedOutsider = false;\n\n\tconstructor(private spaEventService: SpaEventService) {}\n\n\tpublic signInPatient(ctx: { legacySignin: Boolean } | null = null, emit = true): void {\n\t\tconst authService = sharedResolution.resolve(AuthService);\n\t\tconst user = authService.getUser();\n\t\tif (user == null) {\n\t\t\tthis.patientIdentity = null;\n\t\t} else {\n\t\t\tif ((user.userType as any) === 'Resource') {\n\t\t\t\tthis.patientIdentity = null;\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst identity = new IdentityApiModel();\n\n\t\t\tif (ctx?.legacySignin) {\n\t\t\t\tidentity.legacyDocumentSignin = true;\n\t\t\t}\n\n\t\t\tidentity.Id = user.id;\n\t\t\tidentity.Nationality = user.nationality;\n\t\t\tidentity.NationalIdentityNumber = user.nationalIdentityNumber;\n\t\t\tidentity.Phone = user.phone;\n\t\t\tidentity.FirstName = user.firstName;\n\t\t\tidentity.LastName = user.lastName;\n\t\t\tidentity.Email = user.email;\n\t\t\tidentity.NationalIdentityNumberRequirement = user.nationalIdentityNumberRequirement;\n\t\t\tidentity.PhoneRequirement = user.phoneRequirement;\n\t\t\tidentity.EmailRequirement = user.emailRequirement;\n\t\t\tidentity.UserType = user.userType;\n\t\t\tthis.patientIdentity = identity;\n\n\t\t\tthis.spaEventService.onSigningIn.emit();\n\n\t\t\tif (!emit) return;\n\n\t\t\tif (this.patientIdentity.UserType === 'Client') {\n\t\t\t\tthis.spaEventService.onSignedIn.emit(this.patientIdentity);\n\t\t\t} else {\n\t\t\t\tthis.spaEventService.onSignedInAsOutsider.emit(true);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic isPatient(): boolean {\n\t\treturn this.patientIdentity !== null;\n\t}\n\n\tpublic isOutsider(): boolean {\n\t\treturn this.patientIdentity !== null && this.patientIdentity.UserType === 'Outsider';\n\t}\n\n\tpublic isClient(): boolean {\n\t\treturn this.patientIdentity !== null && this.patientIdentity.UserType === 'Client';\n\t}\n\n\tpublic isResource(): boolean {\n\t\treturn this.resourceIdentity !== null;\n\t}\n\n\tpublic needsLegacyDocumentSigning(): boolean {\n\t\treturn this.patientIdentity !== null && this.patientIdentity.legacyDocumentSignin;\n\t}\n\n\tpublic isSignedIn(): boolean {\n\t\treturn this.isPatient() || this.isResource();\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport dayjs from 'dayjs';\nimport isBetween from 'dayjs/plugin/isBetween';\nimport weekDay from 'dayjs/plugin/weekday';\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\nimport localeData from 'dayjs/plugin/localeData';\nimport weekOfYear from 'dayjs/plugin/weekOfYear';\nimport utc from 'dayjs/plugin/utc';\nimport timezone from 'dayjs/plugin/timezone';\n\ndayjs.extend(isBetween);\ndayjs.extend(weekDay);\ndayjs.extend(localizedFormat);\ndayjs.extend(localeData);\ndayjs.extend(weekOfYear);\ndayjs.extend(utc);\ndayjs.extend(timezone);\n\n@Injectable()\nexport class DateService {\n\t/**\n\t * Returns a new instance of DayJs\n\t */\n\tpublic create(date?: Date | string): dayjs.Dayjs {\n\t\treturn dayjs(date);\n\t}\n\n\tpublic tz(date: string, timezone: string) {\n\t\treturn dayjs.tz(date, timezone);\n\t}\n}\n","import { GuiOpenUrlWith } from '../api/v2/Models/GuiComponentApiModel';\n\nexport interface ComponentIdentityButtonSpecification {\n\tid: number;\n\ttitle: string;\n\tsubtitle: string;\n\turl: string;\n\topenUrlWith: GuiOpenUrlWith;\n\trequiresAuthentication: boolean;\n\topenAnotherApp: boolean;\n\thasBrandedNavbar: boolean;\n}\n\nexport class ComponentIdentityButton {\n\tpublic readonly id: number;\n\tpublic readonly title: string;\n\tpublic readonly subTitle: string;\n\tpublic readonly url: string;\n\tpublic readonly openUrlWith: GuiOpenUrlWith;\n\tpublic readonly requiresAuthentication: boolean;\n\tpublic readonly openAnotherApp: boolean;\n\tpublic readonly hasBrandedNavbar: boolean;\n\n\tconstructor(spec: ComponentIdentityButtonSpecification) {\n\t\tthis.id = spec.id;\n\t\tthis.title = spec.title;\n\t\tthis.subTitle = spec.subtitle;\n\t\tthis.url = spec.url;\n\t\tthis.openUrlWith = spec.openUrlWith;\n\t\tthis.requiresAuthentication = spec.requiresAuthentication;\n\t\tthis.openAnotherApp = spec.openAnotherApp;\n\t\tthis.hasBrandedNavbar = spec.hasBrandedNavbar;\n\t}\n}\n","import { GuiOpenUrlWith } from '../api/v2/Models/GuiComponentApiModel';\n\nexport interface ComponentIdentityButtonIconSpecification {\n\tid: number;\n\ttitle: string;\n\tsubtitle: string;\n\turl: string;\n\topenUrlWith: GuiOpenUrlWith;\n\trequiresAuthentication: boolean;\n\topenAnotherApp: boolean;\n\thasBrandedNavbar: boolean;\n\timageUrl: string;\n}\n\nexport class ComponentIdentityButtonIcon {\n\tpublic readonly id: number;\n\tpublic readonly title: string;\n\tpublic readonly url: string;\n\tpublic readonly openUrlWith: GuiOpenUrlWith;\n\tpublic readonly requiresAuthentication: boolean;\n\tpublic readonly openAnotherApp: boolean;\n\tpublic readonly hasBrandedNavbar: boolean;\n\tpublic readonly imageUrl: string;\n\tpublic readonly subtitle: string;\n\n\tconstructor(spec: ComponentIdentityButtonIconSpecification) {\n\t\tthis.id = spec.id;\n\t\tthis.title = spec.title;\n\t\tthis.url = spec.openUrlWith === 'IFrame' ? encodeURIComponent(spec.url) : spec.url;\n\t\tthis.openUrlWith = spec.openUrlWith;\n\t\tthis.requiresAuthentication = spec.requiresAuthentication;\n\t\tthis.openAnotherApp = spec.openAnotherApp;\n\t\tthis.hasBrandedNavbar = spec.hasBrandedNavbar;\n\t\tthis.imageUrl = spec.imageUrl;\n\t\tthis.subtitle = spec.subtitle;\n\t}\n}\n","export interface ComponentIdentityImageSpecification {\n\tid: number;\n\timageUrl: string;\n\taltText: string;\n}\n\nexport class ComponentIdentityImage {\n\tpublic readonly id: number;\n\tpublic readonly imageUrl: string;\n\tpublic readonly altText: string;\n\n\tconstructor(spec: ComponentIdentityImageSpecification) {\n\t\tthis.id = spec.id;\n\t\tthis.imageUrl = spec.imageUrl;\n\t\tthis.altText = spec.altText;\n\t}\n}\n","export interface ComponentIdentityListSpecification {\n\tid: number;\n\ttitle: string;\n\titems: unknown;\n}\n\nexport class ComponentIdentityList {\n\tpublic readonly id: number;\n\tpublic readonly title: string;\n\tpublic readonly items: unknown;\n\n\tconstructor(spec: ComponentIdentityListSpecification) {\n\t\tthis.id = spec.id;\n\t\tthis.title = spec.title;\n\t\tthis.items = spec.items;\n\t}\n}\n","export interface ComponentIdentityRockBottomSpecification {\n\tid: number;\n}\n\nexport class ComponentIdentityRockBottom {\n\tpublic readonly id: number;\n\n\tconstructor(spec: ComponentIdentityRockBottomSpecification) {\n\t\tthis.id = spec.id;\n\t}\n}\n","export interface ComponentIdentityTextSpecification {\n\tid: number;\n\ttext: string;\n}\n\nexport class ComponentIdentityText {\n\tpublic readonly id: number;\n\tpublic readonly text: string;\n\n\tconstructor(spec: ComponentIdentityTextSpecification) {\n\t\tthis.id = spec.id;\n\t\tthis.text = spec.text;\n\t}\n}\n","import { ComponentIdentityButton } from './component_identity_button';\nimport { ComponentIdentityButtonIcon } from './component_identity_button_icon';\nimport { ComponentIdentityImage } from './component_identity_image';\nimport { ComponentIdentityList } from './component_identity_list';\nimport { ComponentIdentityText } from './component_identity_text';\nimport { ComponentIdentityRockBottom } from './component_identity_rock_bottom';\nimport {\n\tGuiComponentButton,\n\tGuiComponentButtonIcon,\n\tGuiComponentImage,\n\tGuiComponentList,\n\tGuiComponentText,\n} from '../api/v2/Models/GuiComponentApiModel';\nimport { Injectable } from '@angular/core';\nimport { SpaContext } from '../../Classes/spacontext';\n\nexport type ComponentUnion =\n\t| ComponentIdentityButton\n\t| ComponentIdentityButtonIcon\n\t| ComponentIdentityImage\n\t| ComponentIdentityList\n\t| ComponentIdentityText\n\t| ComponentIdentityRockBottom;\n\ninterface PassedData<T> {\n\tid: number;\n\tbackendMessage: T;\n}\n\n@Injectable()\nexport class IdentityFactoryService {\n\tconstructor(public readonly spaContext: SpaContext) {\n\t\t// Empty\n\t}\n\n\tpublic produce(type: 'Button', data: PassedData<unknown>): ComponentIdentityButton;\n\tpublic produce(type: 'Button.Icon', data: PassedData<unknown>): ComponentIdentityButtonIcon;\n\tpublic produce(type: 'Image', data: PassedData<unknown>): ComponentIdentityImage;\n\tpublic produce(type: 'List', data: PassedData<unknown>): ComponentIdentityList;\n\tpublic produce(type: 'Text', data: PassedData<unknown>): ComponentIdentityText;\n\tpublic produce(type: string, data: PassedData<unknown>): ComponentUnion;\n\tpublic produce(\n\t\ttype: 'Button' | 'Button.Icon' | 'Image' | 'List' | 'Text' | string,\n\t\tpassedData: PassedData<unknown>,\n\t): ComponentUnion {\n\t\tswitch (type) {\n\t\t\tcase 'Button': {\n\t\t\t\tconst message = passedData.backendMessage as GuiComponentButton;\n\n\t\t\t\tlet url = message.Url;\n\t\t\t\tif (message.OpenUrlWith === 'SameTab') {\n\t\t\t\t\turl = this.convertUrlToValidRouterPathService(url);\n\t\t\t\t}\n\n\t\t\t\treturn new ComponentIdentityButton({\n\t\t\t\t\turl,\n\t\t\t\t\tid: passedData.id,\n\t\t\t\t\thasBrandedNavbar: message.HasBrandedNavbar,\n\t\t\t\t\topenAnotherApp: message.OpenAnotherApp,\n\t\t\t\t\topenUrlWith: message.OpenUrlWith,\n\t\t\t\t\trequiresAuthentication: message.RequiresAuthentication,\n\t\t\t\t\ttitle: message.Title,\n\t\t\t\t\tsubtitle: message.Subtitle,\n\t\t\t\t});\n\t\t\t}\n\t\t\tcase 'Button.Icon': {\n\t\t\t\tconst message = passedData.backendMessage as GuiComponentButtonIcon;\n\n\t\t\t\tlet url = message.Url;\n\t\t\t\tif (message.OpenUrlWith === 'SameTab') {\n\t\t\t\t\turl = this.convertUrlToValidRouterPathService(url);\n\t\t\t\t}\n\n\t\t\t\treturn new ComponentIdentityButtonIcon({\n\t\t\t\t\turl,\n\t\t\t\t\tid: passedData.id,\n\t\t\t\t\thasBrandedNavbar: message.HasBrandedNavbar,\n\t\t\t\t\topenAnotherApp: message.OpenAnotherApp,\n\t\t\t\t\topenUrlWith: message.OpenUrlWith,\n\t\t\t\t\trequiresAuthentication: message.RequiresAuthentication,\n\t\t\t\t\ttitle: message.Title,\n\t\t\t\t\tsubtitle: message.Subtitle,\n\t\t\t\t\timageUrl: message.IconSvgUrl,\n\t\t\t\t});\n\t\t\t}\n\t\t\tcase 'Image': {\n\t\t\t\tconst message = passedData.backendMessage as GuiComponentImage;\n\n\t\t\t\treturn new ComponentIdentityImage({\n\t\t\t\t\tid: passedData.id,\n\t\t\t\t\taltText: message.AltText,\n\t\t\t\t\timageUrl: message.ImageUrl,\n\t\t\t\t});\n\t\t\t}\n\t\t\tcase 'List': {\n\t\t\t\tconst message = passedData.backendMessage as GuiComponentList;\n\n\t\t\t\treturn new ComponentIdentityList({\n\t\t\t\t\tid: passedData.id,\n\t\t\t\t\ttitle: message.Title,\n\t\t\t\t\titems: message.Items,\n\t\t\t\t});\n\t\t\t}\n\t\t\tcase 'Text': {\n\t\t\t\tconst message = passedData.backendMessage as GuiComponentText;\n\n\t\t\t\treturn new ComponentIdentityText({\n\t\t\t\t\tid: passedData.id,\n\t\t\t\t\ttext: message.Text,\n\t\t\t\t});\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tconst subdivideTypes = type.split('.');\n\t\t\t\tif (subdivideTypes.length === 1) {\n\t\t\t\t\treturn new ComponentIdentityRockBottom({\n\t\t\t\t\t\tid: passedData.id,\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tsubdivideTypes.pop();\n\t\t\t\tconst glueTogether = subdivideTypes.join('.');\n\n\t\t\t\treturn this.produce(glueTogether, passedData);\n\t\t\t}\n\t\t}\n\t}\n\n\n\tprivate convertUrlToValidRouterPathService(str: string): string {\n\t\t// https://media.giphy.com/media/3FQ87l4tXAZWGvV3yY/giphy.gif\n\n\t\t// This is how links worked before, it's not a downgrade but it's not good\n\t\treturn str;\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { GuiComponentApiModel } from '../api/v2/Models/GuiComponentApiModel';\nimport { SpaContext } from '../../Classes/spacontext';\nimport { UnitApiService } from '../api/v2/units_api.service';\nimport { ComponentUnion, IdentityFactoryService } from './identity_factory.service';\nimport { ComponentIdentityButtonIcon } from './component_identity_button_icon';\nimport { ComponentIdentityButton } from './component_identity_button';\nimport { ComponentIdentityImage } from './component_identity_image';\nimport { ComponentIdentityList } from './component_identity_list';\nimport { ComponentIdentityRockBottom } from './component_identity_rock_bottom';\nimport { ComponentIdentityText } from './component_identity_text';\n\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport { sharedResolution } from '../../../../src/shared_resolution';\n\n// https://github.com/VisibaCare/public/pull/105\n\n@Injectable()\nexport class FlexiblePatientButtonsService {\n\tpublic components: any[] = []; // Angular template doesn't work with union idk don't fire me\n\t// public components: ComponentUnion[] = [];\n\tpublic types = {\n\t\tcomponentIdentityButtonIcon: ComponentIdentityButtonIcon,\n\t\tcomponentIdentityButton: ComponentIdentityButton,\n\t\tcomponentIdentityImage: ComponentIdentityImage,\n\t\tcomponentIdentityList: ComponentIdentityList,\n\t\tcomponentIdentityRockBottom: ComponentIdentityRockBottom,\n\t\tcomponentIdentityText: ComponentIdentityText,\n\t};\n\tpublic isLoading = true;\n\n\tconstructor(\n\t\tprivate readonly spaContext: SpaContext,\n\t\tprivate readonly unitApiService: UnitApiService,\n\t\tprivate readonly identityFactoryService: IdentityFactoryService,\n\t) {\n\t\t// Empty\n\t}\n\n\tpublic fetchComponents(): void {\n\t\tthis.isLoading = true;\n\n\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\n\t\tthis.unitApiService.getUnitComponents(locationSelectorService.locationUnitId).subscribe(\n\t\t\t({ data }) => {\n\t\t\t\tthis.components = this.parseBackendData(data);\n\t\t\t\tthis.isLoading = false;\n\t\t\t},\n\t\t\t() => {},\n\t\t);\n\t}\n\n\tprivate parseBackendData(data: GuiComponentApiModel[]): ComponentUnion[] {\n\t\treturn data\n\t\t\t.sort((a, b) => {\n\t\t\t\tif (a.Order > b.Order) return 1;\n\t\t\t\tif (a.Order < b.Order) return -1;\n\n\t\t\t\treturn 0;\n\t\t\t})\n\t\t\t.map((guiComponent) =>\n\t\t\t\tthis.identityFactoryService.produce(guiComponent.Type, {\n\t\t\t\t\tid: guiComponent.Id,\n\t\t\t\t\tbackendMessage: guiComponent.Data,\n\t\t\t\t}),\n\t\t\t);\n\t}\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { VisibaApiHttp } from '../Classes/visibaHttp.class';\nimport { AppointmentAccessApiModel } from './Models/General/AppointmentAccessApiModel';\nimport { AppointmentCalendarInfoApiModel } from './Models/General/AppointmentCalendarInfoApiModel';\nimport { PhoneVerificationApiModel } from './Models/General/PhoneVerificationApiModel';\nimport { CompletePhoneVerificationApiModel } from './Models/General/CompletePhoneVerificationApiModel';\nimport { environment } from 'Public_old/src/environments/environment';\nimport { RRSessionApiModel } from './Models/General/RRSessionApiModel';\n\n@Injectable()\nexport class GeneralService {\n\tconstructor(private http2: HttpClient, private http: VisibaApiHttp) {}\n\n\tsetlanguage(languageCode: string) {\n\t\treturn this.http.put('/Api/General/Language/SetLanguage', { LanguageCode: languageCode });\n\t}\n\n\tsignOut() {\n\t\tlocalStorage.removeItem('identitySession');\n\t\treturn this.http2.get('/Api/General/Identity/signOut');\n\t}\n\n\tgetAppointmentAccessInfo(callTicket: string) {\n\t\treturn this.http.getTyped<AppointmentAccessApiModel>(`/Api/General/Appointment/${callTicket}/accessInfo`);\n\t}\n\n\tgetAppointmentCalendarInfo(callTicket: string) {\n\t\treturn this.http.getTyped<AppointmentCalendarInfoApiModel>(`/Api/General/Appointment/${callTicket}/calendarInfo`);\n\t}\n\n\tpublic getRRSessionId(bookingId: number) {\n\t\treturn this.http.getTyped<RRSessionApiModel>(`/Api/General/Appointment/${bookingId}/redRobinSession`);\n\t}\n\n\ttouchSession() {\n\t\treturn this.http2.get(`${environment.api.uri}/Api/General/Session/touch`);\n\t}\n\n\tverifyPhoneNumber(licenceHolderId: number, phoneNumber: string, countryCode: string, languageCode: string) {\n\t\treturn this.http.postTyped<PhoneVerificationApiModel>(\n\t\t\t`/api/General/LicenceHolders/${licenceHolderId}/VerificationAttempts/Phone`,\n\t\t\t{\n\t\t\t\tPhoneNumber: phoneNumber,\n\t\t\t\tCountryCode: countryCode,\n\t\t\t\tLanguageCode: languageCode,\n\t\t\t},\n\t\t);\n\t}\n\n\tcompletePhoneNumberVerification(licenceHolderId: number, verificationAttemptId: string, verificationCode: string) {\n\t\treturn this.http.putTyped<CompletePhoneVerificationApiModel>(\n\t\t\t`/api/General/LicenceHolders/${licenceHolderId}/VerificationAttempts/${verificationAttemptId}`,\n\t\t\t{\n\t\t\t\tVerificationCode: verificationCode,\n\t\t\t},\n\t\t);\n\t}\n}\n","import { Injectable, Type, ComponentRef, ViewContainerRef, ComponentFactoryResolver } from '@angular/core';\n@Injectable()\nexport class ModalService {\n\tpublic loadedComponent: ComponentRef<any> | null = null;\n\tpublic canBeClosed = true;\n\tprivate viewContainerRef: ViewContainerRef | null = null;\n\n\tconstructor(private componentFactoryResolver: ComponentFactoryResolver) {}\n\n\t/**\n\t * Adds an component reference to be rendered within a modal\n\t *\n\t * @param component An Angular component\n\t */\n\tpublic attach<T>(component: Type<T>, closable: boolean = true): ComponentRef<T> {\n\t\tif (this.loadedComponent) {\n\t\t\tthrow new Error('Another component already loaded');\n\t\t}\n\n\t\tconst factory = this.componentFactoryResolver.resolveComponentFactory(component);\n\t\tthis.loadedComponent = this.viewContainerRef.createComponent<T>(factory);\n\t\tthis.canBeClosed = closable;\n\n\t\treturn this.loadedComponent;\n\t}\n\n\t/**\n\t * Removes current component reference\n\t */\n\tpublic detach(): void {\n\t\tif (this.loadedComponent === null) return;\n\n\t\tthis.loadedComponent.destroy();\n\t\tthis.loadedComponent = null;\n\t}\n\n\t/**\n\t * Set viewcontainer where modals will be loaded\n\t */\n\tpublic setViewContainerRef(viewContainerRef: ViewContainerRef) {\n\t\tthis.viewContainerRef = viewContainerRef;\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { HttpParams } from '@angular/common/http';\nimport { ApiResponse, VisibaApiHttp } from '../Classes/visibaHttp.class';\nimport { SpaContext } from '../Classes/spacontext';\nimport { IcdCode } from '../Common/Models/Api/Models/IcdCode';\n\n@Injectable()\nexport class OutcomesService {\n\treadonly baseUri = '/api/Office';\n\n\tconstructor(\n\t\tpublic _http: VisibaApiHttp,\n\t\tpublic _spaContext: SpaContext,\n\t) {}\n\n\tpublic searchIcdCodes(query: string, count?: number): Observable<ApiResponse<IcdCode[]>> {\n\t\tlet params = new HttpParams();\n\t\tparams = params.append('searchQuery', query);\n\t\tparams = count != undefined ? params.append('count', `${count}`) : params;\n\n\t\treturn this._http.getTyped<IcdCode[]>(\n\t\t\t`${this.baseUri}/${this._spaContext.unitConfig.LicenceHolder.Id}/Outcomes/icdcodes/search`,\n\t\t\tnull,\n\t\t\t{\n\t\t\t\tparams,\n\t\t\t},\n\t\t);\n\t}\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { SpaContext } from '../Classes/spacontext';\nimport { ApiResponse, VisibaApiHttp } from '../Classes/visibaHttp.class';\nimport { Helper } from '../Common/Helpers/helper';\nimport { RR_SessionOutcome } from '../Common/Models/Api/Models/RR_SessionOutcome';\n\nexport type MedicalCoreOutcome =\n\t| 'solved-by-messaging'\n\t| 'called-the-patient'\n\t| 'referral-to-video'\n\t| 'referral-to-physical'\n\t| 'self-care'\n\t| 'new-remote-appointment'\n\t| 'new-local-appointment'\n\t| 'recipe'\n\t| 'test'\n\t| 'proof-of-sickness'\n\t| 'custom'\n\t| 'solved-during-consultation'\n\t| 'referral-digital-competence'\n\t| 'referral-emergency-treatment'\n\t| 'referral-physiotherapist'\n\t| 'referral-specialty-care'\n\t| 'other';\n\nexport interface PerformerFeedback {\n\tsession_id: string;\n\tdiagnosis_icd10s: string[];\n\toutcomes?: MedicalCoreOutcome[];\n\turgency_ok: boolean | null;\n\turgency_revision: number | null;\n\tselfcare_recommendation: boolean | null;\n\tother_outcome: string | null;\n}\n\ninterface RepresentativeNinResponse {\n\tRepresentativeNin: string | null;\n}\n\ninterface RedRobinSessionApiModel {\n\tSessionId: string;\n\tRepresentativeNin: string | null;\n\tInitialSymptoms: string[] | null;\n}\n\n@Injectable()\nexport class RedRobinService {\n\tconstructor(private http: HttpClient, private visibaHttp: VisibaApiHttp, private helper: Helper, private spaContext: SpaContext) {}\n\n\tpublic getSessionOutcome(sessionId: string): Observable<RR_SessionOutcome> {\n\t\treturn this.http.get<RR_SessionOutcome>(\n\t\t\t`${this.helper.rr.getApiRoot()}/sessions/${this.spaContext.unitConfig.LicenceHolder.GlobalCustomerId}/${sessionId}/outcome`,\n\t\t);\n\t}\n\n\tpublic getRepresentativeNin(sessionId: string): Observable<ApiResponse<RepresentativeNinResponse>> {\n\t\treturn this.visibaHttp.getTyped<RepresentativeNinResponse>(`/Api/General/RedRobin/${sessionId}/GetRepresentativeNin`);\n\t}\n\n\tpublic getSession(sessionId: string): Observable<ApiResponse<RedRobinSessionApiModel>> {\n\t\treturn this.visibaHttp.getTyped<RedRobinSessionApiModel>(`/Api/General/RedRobin/${sessionId}`);\n\t}\n\n\tpublic setPerformerFeedback(sessionId: string, feedback: PerformerFeedback): Observable<unknown> {\n\t\t// Because of the difference between how the GUID is represented by our backend and\n\t\t// the AI-backend, we need to trim away all the hyphens\n\t\treturn this.http.post(\n\t\t\t`${this.helper.rr.getApiRoot()}/sessions/${sessionId.replace(/-/g, '')}/proxy/sessions/hcp_feedback`,\n\t\t\tfeedback,\n\t\t\t{\n\t\t\t\twithCredentials: false,\n\t\t\t\theaders: undefined,\n\t\t\t},\n\t\t);\n\t}\n}\n","import { EventEmitter, Injectable, Output } from '@angular/core';\nimport { SpaEventService } from './spaEvents.service';\nimport { SpaContext } from '../Classes/spacontext';\nimport { DropInApiModel } from './api/v2/Models/DropInApiModel';\nimport { TimeslotServiceV2, LocalityType } from './api/v2/Units/timeslot.service';\nimport { TimeslotApiModel } from './api/v2/Models/TimeslotApiModel';\nimport { CasesServiceV2 } from './api/v2/cases.service';\nimport { CaseApiModel } from './api/v2/Models/CaseApiModel';\nimport { DropInUnitServiceV2 } from './api/v2/Units/dropIn.service';\nimport { MessagingInjectable } from '../Injectables/messaging.injectable';\nimport { Messaging } from '../Injectables/Models/Messaging/messaging.models';\nimport { AuthContextService } from './authContext.service';\n\ntype SchedulerFor = 'ForAll' | 'ForPatient' | 'ForClient' | 'ForOutsider';\n\n@Injectable()\nexport class ScheduledDataService {\n\t@Output() onGetCases = new EventEmitter<Array<CaseApiModel>>();\n\t@Output() onGetTodaysTimeslots = new EventEmitter<Array<TimeslotApiModel>>();\n\t@Output() onGetDropInRoomsStatus = new EventEmitter<DropInApiModel[]>();\n\n\tintervals: Array<{ intervalId: number; name: string; for: SchedulerFor }> = [];\n\n\tdataCache: {\n\t\tcases: Array<CaseApiModel>;\n\t} = {\n\t\tcases: [],\n\t};\n\n\tconstructor(\n\t\tpublic _spaContext: SpaContext,\n\t\tprivate _spaEventService: SpaEventService,\n\t\tprivate _casesService: CasesServiceV2,\n\t\tprivate _timeslotService: TimeslotServiceV2,\n\t\tprivate _dropInUnitService: DropInUnitServiceV2,\n\t\tprivate _messagingInjectable: MessagingInjectable,\n\t\tprivate authContextService: AuthContextService,\n\t) {\n\t\t// Initial start\n\n\t\t// The event emitters that is triggered from this is only used in menu.component.ts\n\t\t// which is not used right now\n\t\t// TODO: Do we need these schedulers when implementing a toggle?\n\t\t// if (!this._spaContext.unitConfig.isPreNodeSelection()) {\n\t\t// \tthis.startSchedulers_All();\n\t\t// }\n\t\tif (this.authContextService.isClient()) {\n\t\t\tthis.startSchedulers_Client();\n\t\t}\n\t\tif (this.authContextService.isOutsider()) {\n\t\t\tthis.startSchedulers_Outsider();\n\t\t}\n\n\t\t// On event start\n\t\tthis._spaEventService.onSignedIn.subscribe(() => {\n\t\t\tthis.startSchedulers_Client();\n\t\t});\n\t\tthis._spaEventService.onSignedOut.subscribe(() => {\n\t\t\tthis.stopSchedulers('ForClient');\n\t\t\tthis.stopSchedulers('ForPatient');\n\t\t});\n\n\t\tthis._spaEventService.onSignedInAsOutsider.subscribe(() => {\n\t\t\tthis.startSchedulers_Outsider();\n\t\t});\n\n\t\tthis._spaEventService.onSignedOutAsOutsider.subscribe(() => {\n\t\t\tthis.stopSchedulers('ForOutsider');\n\t\t\tthis.stopSchedulers('ForPatient');\n\t\t});\n\n\t\tthis._spaEventService.onCallEnded.subscribe(() => {\n\t\t\tthis.getCases();\n\t\t});\n\n\t\tthis.attachListerners();\n\t}\n\n\tpushCachedCases(): void {\n\t\tthis.onGetCases.emit(this.dataCache.cases);\n\t}\n\n\tprivate attachListerners(): void {\n\t\tthis._messagingInjectable.onMessages.subscribe((caseMessages: Messaging.CaseMessagesSocketModel) => {\n\t\t\tif (caseMessages.data.every((m) => m.sender?.isMe)) return;\n\n\t\t\tconst cachedCase = this.dataCache.cases.find((c) => c.MessageConversationId === caseMessages.caseId);\n\t\t\tif (cachedCase?.UnhandledIssues.indexOf('UnreadMessages') === -1) cachedCase.UnhandledIssues.push('UnreadMessages');\n\t\t\tthis.onGetCases.emit(this.dataCache.cases);\n\t\t});\n\n\t\tthis._messagingInjectable.onHasReadUntil.subscribe((readUntil: Messaging.HasReadUntilSocketModel) => {\n\t\t\tconst cachedCase = this.dataCache.cases.find((c) => c.MessageConversationId === readUntil.caseId);\n\t\t\tcachedCase.UnhandledIssues = cachedCase.UnhandledIssues.filter((i) => i !== 'UnreadMessages');\n\t\t\tthis.onGetCases.emit(this.dataCache.cases);\n\t\t});\n\t}\n\n\tpublic stopSchedulers(access: SchedulerFor): void {\n\t\tthis.intervals\n\t\t\t.filter((s) => s.for === access)\n\t\t\t.forEach((s) => {\n\t\t\t\tclearTimeout(s.intervalId);\n\t\t\t});\n\n\t\tthis.intervals = this.intervals.filter((s) => s.for !== access);\n\t}\n\n\tprivate runAndScheduleFunction(func: () => void, name: string, forUser: SchedulerFor, interval = 60000): void {\n\t\tif (typeof this.intervals.find((i) => i.name === name) !== 'undefined') return;\n\n\t\tconst intervalId = window.setInterval(() => {\n\t\t\tfunc();\n\t\t}, interval);\n\t\tthis.intervals.push({ intervalId: intervalId, name: name, for: forUser });\n\n\t\tfunc();\n\t}\n\n\t/**\n\t * Scheduler initiators\n\t */\n\tprivate startSchedulers_Client(): void {\n\t\tthis.runAndScheduleFunction(this.getCases, 'getCases', 'ForClient');\n\t}\n\tprivate startSchedulers_Outsider(): void {\n\t\t// noop\n\t}\n\tprivate startSchedulers_Patient(): void {\n\t\t//this.runAndScheduleFunction(this.getActiveDropInTickets, 'activeDropInTickets', 'ForClient');\n\t}\n\n\tpublic startSchedulers_All(): void {\n\t\tthis.runAndScheduleFunction(this.getTodaysTimeslots, 'getTodaysTimeslots', 'ForAll');\n\t\tthis.runAndScheduleFunction(this.getDropInRoomsStatus, 'getDropInRoomsStatus', 'ForAll');\n\t}\n\n\t/**\n\t * Scheduled methods\n\t */\n\tpublic getCases = (): void => {\n\t\tconst from = new Date();\n\t\tfrom.setFullYear(from.getFullYear() - 1);\n\t\tfrom.setHours(0, 0, 0, 0);\n\n\t\tthis._casesService.get(from, null, false).subscribe((response) => {\n\t\t\tthis.dataCache.cases = response.data;\n\n\t\t\tthis.onGetCases.emit(response.data);\n\t\t});\n\t};\n\n\tprivate getTodaysTimeslots = (): void => {\n\t\tthis._timeslotService\n\t\t\t.get(\n\t\t\t\t{\n\t\t\t\t\tspecialityId: undefined,\n\t\t\t\t\tconditionId: undefined,\n\t\t\t\t\tresourceId: undefined,\n\t\t\t\t\tfilterableUnitId: undefined,\n\t\t\t\t\tdate: undefined,\n\t\t\t\t\tfromDate: new Date().format('yyyy-MM-dd'),\n\t\t\t\t\ttoDate: new Date().format('yyyy-MM-dd'),\n\t\t\t\t\tfromTime: new Date(new Date().setHours(0, 0)).format('HH:mm:ss'),\n\t\t\t\t\ttoTime: new Date(new Date().setHours(23, 59)).format('HH:mm:ss'),\n\t\t\t\t\tlocalityType: LocalityType.All,\n\t\t\t\t},\n\t\t\t\tfalse,\n\t\t\t)\n\t\t\t.subscribe((response) => {\n\t\t\t\tthis.onGetTodaysTimeslots.emit(response.data);\n\t\t\t});\n\t};\n\n\tprivate getDropInRoomsStatus = (): void => {\n\t\tthis._dropInUnitService.get(false).subscribe((response) => {\n\t\t\tthis.onGetDropInRoomsStatus.emit(response.data);\n\t\t});\n\t};\n}\n","import { AuthenticationMethodApiModel } from './Models/General/AuthenticationMethodApiModel';\nimport { SignatureDocuments } from './Models/Client/SignatureDocuments';\nimport { EventEmitter, Injectable } from '@angular/core';\nimport { ComplianceSettings } from './api/v2/notificationSettings.service';\nimport { IdentityApiModel } from './api/v2/Models/IdentityApiModel';\nimport { OpenTargetWith } from '../Components/Authentication/signin.component';\n\n@Injectable()\nexport class SpaEventService {\n\t//\n\tonUpdateMenu = new EventEmitter<void>();\n\n\t// AppointmentEvents\n\tonCallEnded = new EventEmitter<void>();\n\n\t// Sign events\n\tonSignInRequired = new EventEmitter<{\n\t\ttarget: string;\n\t\treason?: string;\n\t\terror?: string;\n\t\tleave?: boolean;\n\t\tcallticket?: Guid;\n\t\tauthMethod?: AuthenticationMethodApiModel;\n\t\topenTargetWith?: OpenTargetWith;\n\t}>();\n\tonSignedIn = new EventEmitter<IdentityApiModel>();\n\tonSignedInAsOutsider = new EventEmitter<boolean>(); // Bool overrideRequireLogin\n\tonSignedOut = new EventEmitter<{\n\t\tredirectUrl?: string | null;\n\t}>();\n\tonSignedOutAsOutsider = new EventEmitter<{\n\t\tredirectUrl?: string | null;\n\t\treloadAfterSignOut?: boolean;\n\t}>();\n\tonSignInAborted = new EventEmitter<void>();\n\tonSigningIn = new EventEmitter<void>();\n\n\t// Signatures\n\tonDocumentsSigningNeeded = new EventEmitter<SignatureDocuments>();\n\tonDocumentsSigningCompleted = new EventEmitter<void>();\n\tonDocumentsSigningAborted = new EventEmitter<void>();\n\n\t// NotificationCompliance\n\tonNotificationComplianceNeeded = new EventEmitter<ComplianceSettings>();\n\tonNotificationComplianceConfirmation = new EventEmitter<ComplianceSettings & { onCancel: () => void }>();\n\tonNotificationComplianceCompleted = new EventEmitter<void>();\n\n\t// Registration events\n\tonRegistrationAborted = new EventEmitter<void>();\n\tonVisitorRegistred = new EventEmitter<void>();\n\tonRegistrationRequired = new EventEmitter<{ target: string; ticket: Guid }>();\n\n\t// Unit events\n\tonChangeUnit = new EventEmitter<{ unitId: number }>();\n}\n","import { Injectable, EventEmitter, NgZone } from '@angular/core';\nimport { AppointmentsServiceV2 } from 'Public_old/src/app/Services/api/v2/appointments.service';\nimport { GeneralService } from 'Public_old/src/app/Services/general.service';\nimport { AppointmentApiModel } from '../../Services/api/v2/Models/AppointmentApiModel';\nimport { AppointmentAccessApiModel } from '../../Services/Models/General/AppointmentAccessApiModel';\nimport { ResourceApiModel } from '../../Models/Resources/ResourceApiModel';\nimport { OtherParticipantModel } from '../../Services/api/v2/Models/OtherParticipantModel';\nimport { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport { DateService } from 'Public_old/src/app/Services/date.service';\nimport type { FileAttachment, Message } from '@routes/appointment/chat.controller';\n\ninterface AppointmentApiModelModified extends AppointmentApiModel {\n\tResource: ResourceApiModel;\n\tMe: OtherParticipantModel | null;\n}\nexport type Callback = (data: boolean) => void;\nexport type Disposer = () => void;\nexport interface FormData {\n\tid: number;\n\trespondantId: number;\n\tcompleted: boolean;\n}\n\n@Injectable()\nexport class AppointmentFlowService {\n\tpublic appointmentInfo: AppointmentApiModelModified = null;\n\tpublic accessInfo: AppointmentAccessApiModel;\n\tpublic subscriptions: Array<any> = [];\n\tpublic flow = 0;\n\tpublic readonly EXPECTED_FLOW = [\n\t\t'none',\n\t\t'beforeCallHasPayment',\n\t\t'beforeCallHasDynamicForms',\n\t\t'__INJECT__',\n\t\t'afterCallDynamicForms',\n\t\t'afterCallEvaluation',\n\t\t'couldNotReachCall',\n\t] as const;\n\n\tpublic beforeCallDynamicForms: FormData[] = [];\n\tpublic afterCallDynamicForms: FormData[] = [];\n\n\t// ---- need to figure out if below is needed ----\n\n\t// Is this needed?\n\tpublic onCallStateChange: EventEmitter<string> = new EventEmitter<string>();\n\t// Is this needed?\n\tpublic onDynamicFormCompleted = new EventEmitter<number>();\n\t// Is this needed?\n\tpublic onNoAccess: EventEmitter<void> = new EventEmitter<void>();\n\t// Is this needed?\n\tpublic onShowViewImages = new EventEmitter<{ images: Array<any>; startIndex: number }>();\n\t// Is this needed?\n\tpublic show = {\n\t\tsharedFiles: false,\n\t\tchat: false,\n\t\tchatLanguageSelectOverlayClose: true, // When triggered externally, force selection\n\t\tchatLanguageSelectOverlay: false,\n\t\tfullScreen: false,\n\t\tpartnerOverlay: false,\n\t\tsipInviteBox: false,\n\t\tchangeDevice: false,\n\t\tappointmentMenu: false,\n\t};\n\t// Is this needed?\n\tpublic myID: number | null = null;\n\t// Is this needed?\n\tpublic chatFiles: FileAttachment[] = [];\n\t// Is this needed?\n\tpublic chatMessages: Message[] = [];\n\tprivate currentTicket: string | null = null;\n\n\tconstructor(\n\t\tprivate _generalService: GeneralService,\n\t\tpublic appointmentService: AppointmentsServiceV2,\n\t\tpublic ngZone: NgZone,\n\t\tpublic dateService: DateService,\n\t\tpublic translateService: TranslateService,\n\t) {\n\t\t// Empty\n\t}\n\n\tpublic initiateAppointment(ticket: string): void {\n\t\tthis.currentTicket = ticket;\n\n\t\tthis._generalService.getAppointmentAccessInfo(ticket).subscribe(\n\t\t\t(response) => {\n\t\t\t\tthis.accessInfo = response.data;\n\n\t\t\t\tthis.appointmentService.get(ticket).subscribe(\n\t\t\t\t\t(response) => {\n\t\t\t\t\t\tconst { data } = response;\n\t\t\t\t\t\tconst allParticipants = [data.MyParticipant, ...data.OtherParticipants];\n\n\t\t\t\t\t\t// The owner resource is the participant whose resource ID is the same as the booking\n\t\t\t\t\t\t// resource ID. In some cases (such as drop-in and Embassy v1 bookings), the booking\n\t\t\t\t\t\t// resource will be null, in which case we fall back to assuming the first participant\n\t\t\t\t\t\t// with a resource ID is the owner.\n\t\t\t\t\t\tconst ownerResource: OtherParticipantModel =\n\t\t\t\t\t\t\tdata.ResourceId !== null\n\t\t\t\t\t\t\t\t? allParticipants.find((p) => p.ResourceId === data.ResourceId)\n\t\t\t\t\t\t\t\t: allParticipants.find((p) => p.ResourceId !== null);\n\n\t\t\t\t\t\tconst ownerResourceAsModel: ResourceApiModel = {\n\t\t\t\t\t\t\tId: ownerResource.ResourceId,\n\t\t\t\t\t\t\tTitle: ownerResource.Title,\n\t\t\t\t\t\t\tName: ownerResource.Name,\n\t\t\t\t\t\t\tDescriptiveTitle: ownerResource.DescriptiveTitle,\n\t\t\t\t\t\t\tProfileImageUrl: ownerResource.ProfileImageUrl,\n\t\t\t\t\t\t\tVideoProvider: data.VideoService,\n\t\t\t\t\t\t\tUnitId: data.UnitId,\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tthis.appointmentInfo = {\n\t\t\t\t\t\t\t...data,\n\t\t\t\t\t\t\tResource: ownerResourceAsModel,\n\t\t\t\t\t\t\t// 'Me' should only be set if the current user is a resource.\n\t\t\t\t\t\t\tMe: data.MyParticipant.ResourceId !== null ? data.MyParticipant : null,\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tthis.beforeCallDynamicForms = this.appointmentInfo.Forms.filter((form) => form.Opportunity === 'BeforeBooking').map(\n\t\t\t\t\t\t\t(form) => ({\n\t\t\t\t\t\t\t\tcompleted: form.Completed,\n\t\t\t\t\t\t\t\tid: form.FormId,\n\t\t\t\t\t\t\t\trespondantId: form.RespondantId,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t);\n\t\t\t\t\t\tthis.afterCallDynamicForms = this.appointmentInfo.Forms.filter((form) => form.Opportunity === 'AfterBooking').map(\n\t\t\t\t\t\t\t(form) => ({\n\t\t\t\t\t\t\t\tcompleted: form.Completed,\n\t\t\t\t\t\t\t\tid: form.FormId,\n\t\t\t\t\t\t\t\trespondantId: form.RespondantId,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tthis.checksBeforeCall();\n\t\t\t\t\t},\n\t\t\t\t\t(err) => {\n\t\t\t\t\t\tthis.onNoAccess.emit();\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t},\n\t\t\t(err) => {\n\t\t\t\tconsole.log(err);\n\t\t\t},\n\t\t);\n\t}\n\n\tpublic checksBeforeCall(): void {\n\t\tif (this.checkBeforeCallHasPayment()) {\n\t\t\tthis.goToSpecificFlow('beforeCallHasPayment');\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.checkBeforeCallHasDynamicForms()) {\n\t\t\tthis.goToSpecificFlow('beforeCallHasDynamicForms');\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.goToSpecificFlow('__INJECT__');\n\t}\n\n\tpublic checksAfterCall(): void {\n\t\tthis.appointmentService.get(this.currentTicket).subscribe((res) => {\n\t\t\tthis.afterCallDynamicForms = res.data.Forms.filter((form) => form.Opportunity === 'AfterBooking').map((form) => ({\n\t\t\t\tcompleted: form.Completed,\n\t\t\t\tid: form.FormId,\n\t\t\t\trespondantId: form.RespondantId,\n\t\t\t}));\n\n\t\t\tif (this.checkAfterCallDynamicForms()) this.goToSpecificFlow('afterCallDynamicForms');\n\n\t\t\treturn;\n\t\t});\n\n\t\tthis.goToSpecificFlow('afterCallEvaluation');\n\t}\n\n\tpublic goToSpecificFlow(state: AppointmentFlowService['EXPECTED_FLOW'][number]): void {\n\t\tthis.ngZone.run(() => {\n\t\t\tconst index = this.EXPECTED_FLOW.indexOf(state);\n\t\t\tthis.flow = index;\n\t\t});\n\t}\n\n\tpublic goToNextFlow(): void {\n\t\tthis.ngZone.run(() => {\n\t\t\tthis.flow++;\n\t\t});\n\t}\n\n\tpublic setMessages(messages: Message[]): void {\n\t\tthis.chatMessages = messages;\n\t\tlet messagesFiles: FileAttachment[] = [];\n\t\tmessages.map((message) => {\n\t\t\tif (message.files.length > 0) messagesFiles = [...messagesFiles, ...message.files];\n\t\t});\n\t\tthis.chatFiles = messagesFiles;\n\t}\n\n\tpublic getDownloadUrl(fileId: string[]): string {\n\t\t// We used to get this link from backend but since we're not using WS in the evaluation page we do it like this.\n\t\t// Previous it looked something like this: this.webSocket.publish('getfilebatchurl', { fileId });\n\n\t\t//eg. https://fs1-dev1.vcare.pl/\n\t\tconst fileServerUrl = this.chatFiles[0].downloadUrl.split('download')[0];\n\n\t\tlet downloadParam = 'download/';\n\n\t\tif (fileId.length > 1) {\n\t\t\tdownloadParam += 'batch?files=';\n\t\t}\n\t\t//eg. multiple files: https://fs1-dev1.vcare.pl/download/batch?files=c1b3fef5-5cac-473a-ade8-79bbb0fb1b8e,b8a52dc6-35ef-456d-8c61-2fa63ae316e1\n\t\t//single file: https://fs1-dev1.vcare.pl/download/c1b3fef5-5cac-473a-ade8-79bbb0fb1b8e\n\t\tconst downloadUrl = fileServerUrl + downloadParam + fileId;\n\n\t\treturn downloadUrl;\n\t}\n\n\tpublic getProfileImageFromId(id: number): string | null {\n\t\tif (this.appointmentInfo.Me && this.appointmentInfo.Me.ParticipantId === id) return this.appointmentInfo.Me.ProfileImageUrl;\n\n\t\tconst participant = this.appointmentInfo.OtherParticipants.find((participant) => participant.ParticipantId === id);\n\n\t\tif (!participant) return null;\n\n\t\treturn participant.ProfileImageUrl;\n\t}\n\n\tprivate checkBeforeCallHasPayment(): boolean {\n\t\tif (this.appointmentInfo.Role !== 'User') {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this.appointmentInfo.Payment != null && this.appointmentInfo.Payment.State === 'Unpaid') {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}\n\n\tprivate checkBeforeCallHasDynamicForms(): boolean {\n\t\tif (this.appointmentInfo.Role !== 'User') return false;\n\n\t\tconst hasUnfinishedForm = this.beforeCallDynamicForms.some((form) => !form.completed);\n\n\t\treturn hasUnfinishedForm;\n\t}\n\n\tprivate checkAfterCallDynamicForms(): boolean {\n\t\tif (this.appointmentInfo.Role !== 'User') return false;\n\n\t\tconst hasUnfinishedForm = this.afterCallDynamicForms.some((form) => !form.completed);\n\n\t\treturn hasUnfinishedForm;\n\t}\n\t// ---- need to figure out if below is needed ----\n\n\t// Is this needed?\n\tpublic destroy(): void {\n\t\tthis.appointmentInfo = null;\n\t\tthis.accessInfo = null;\n\n\t\t// Is this needed?\n\t\tthis.show = {\n\t\t\tsharedFiles: false,\n\t\t\tchat: false,\n\t\t\tchatLanguageSelectOverlayClose: true, // When triggered externally, force selection\n\t\t\tchatLanguageSelectOverlay: false,\n\t\t\tfullScreen: false,\n\t\t\tpartnerOverlay: false,\n\t\t\tsipInviteBox: false,\n\t\t\tchangeDevice: false,\n\t\t\tappointmentMenu: false,\n\t\t};\n\t}\n}\n","import { UntypedFormControl, Validators, UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';\nimport { Component, ViewChild } from '@angular/core';\nimport { SpaContext } from '../../Classes/spacontext';\nimport { VisibaSaveButtonComponent } from 'Public_old/src/app/Common/Directives/visibaSaveButton';\nimport { VisibaSvgIconRepository } from 'Public_old/src/app/Common/Directives/visibaSvgIconRepository';\nimport { GlobalValidator } from 'Public_old/src/app/Common/Classes/globalValidator';\n\n@Component({ standalone: false, templateUrl: '../../ViewHtml/Develop/Components.html' })\nexport class ComponentsComponent {\n\t@ViewChild('saveBtnDynamicErrorText', { static: false }) saveBtnDynamicErrorText: VisibaSaveButtonComponent;\n\n\tformCG: UntypedFormGroup;\n\tform: any = {\n\t\tnoValue: null,\n\t\tnoValueNin: { nin: null, countryCode: 'SE' },\n\t\tvalue: 'Value',\n\t\tvalueLongText: 'Det var en gång.. och den var saltad.',\n\t\tvaluePhone: '+46701234567',\n\t\tvalueNin: { nin: '8908121638', countryCode: 'SE' },\n\t\ttime: new Date(new Date().setHours(10, 10, 0, 0)),\n\t\tnoValueTime: null,\n\t\tvalueDate: new Date(),\n\t\tvalueDateSpan: [\n\t\t\t{\n\t\t\t\tfrom: new Date(new Date().setHours(0, 0, 0, 0)),\n\t\t\t\tto: new Date(new Date().setHours(0, 0, 0, 0) + 2 * 24 * 60 * 60 * 1000),\n\t\t\t\teditable: true,\n\t\t\t},\n\t\t],\n\t\tvalueDateSpanX2: [\n\t\t\t{\n\t\t\t\tfrom: new Date(new Date().setHours(0, 0, 0, 0)),\n\t\t\t\tto: new Date(new Date().setHours(0, 0, 0, 0) + 2 * 24 * 60 * 60 * 1000),\n\t\t\t\teditable: true,\n\t\t\t},\n\t\t\t{\n\t\t\t\tfrom: new Date(new Date().setHours(0, 0, 0, 0) + 5 * 24 * 60 * 60 * 1000),\n\t\t\t\tto: new Date(new Date().setHours(0, 0, 0, 0) + 8 * 24 * 60 * 60 * 1000),\n\t\t\t\teditable: true,\n\t\t\t},\n\t\t],\n\t\tvalueDateSpanX2NotFirst: [\n\t\t\t{\n\t\t\t\tfrom: new Date(new Date().setHours(0, 0, 0, 0)),\n\t\t\t\tto: new Date(new Date().setHours(0, 0, 0, 0) + 2 * 24 * 60 * 60 * 1000),\n\t\t\t\teditable: false,\n\t\t\t},\n\t\t\t{\n\t\t\t\tfrom: new Date(new Date().setHours(0, 0, 0, 0) + 5 * 24 * 60 * 60 * 1000),\n\t\t\t\tto: new Date(new Date().setHours(0, 0, 0, 0) + 8 * 24 * 60 * 60 * 1000),\n\t\t\t\teditable: true,\n\t\t\t},\n\t\t],\n\t\tvalueDateSpanXYNotFirst: [\n\t\t\t{\n\t\t\t\tfrom: new Date(new Date().setHours(0, 0, 0, 0)),\n\t\t\t\tto: new Date(new Date().setHours(0, 0, 0, 0) + 2 * 24 * 60 * 60 * 1000),\n\t\t\t\teditable: false,\n\t\t\t},\n\t\t\t{\n\t\t\t\tfrom: new Date(new Date().setHours(0, 0, 0, 0) + 5 * 24 * 60 * 60 * 1000),\n\t\t\t\tto: new Date(new Date().setHours(0, 0, 0, 0) + 8 * 24 * 60 * 60 * 1000),\n\t\t\t\teditable: true,\n\t\t\t},\n\t\t],\n\t};\n\tlistOptions = [\n\t\t{ value: 'Fredrik', icon: 'http://media-cdn.visibacare.com/service/public/logo/google-play-badge.png' },\n\t\t{ value: 'Görgen', icon: 'http://media-cdn.visibacare.com/service/public/logo/google-play-badge.png' },\n\t\t{ value: 'Klas', icon: 'http://media-cdn.visibacare.com/service/public/logo/google-play-badge.png' },\n\t];\n\tlistOptionsLong = [\n\t\t{ value: 'Fredrik' },\n\t\t{ value: 'Görgen' },\n\t\t{ value: 'Klas' },\n\t\t{ value: 'Anna' },\n\t\t{ value: 'Karin' },\n\t\t{ value: 'Gustav' },\n\t\t{ value: 'Greta' },\n\t\t{ value: 'Karl' },\n\t\t{ value: 'Agneta' },\n\t\t{ value: 'Fredrik' },\n\t\t{ value: 'Görgen' },\n\t\t{ value: 'Klas' },\n\t\t{ value: 'Anna' },\n\t\t{ value: 'Karin' },\n\t\t{ value: 'Gustav' },\n\t\t{ value: 'Greta' },\n\t\t{ value: 'Karl' },\n\t\t{ value: 'Agneta' },\n\t\t{ value: 'Fredrik' },\n\t\t{ value: 'Görgen' },\n\t\t{ value: 'Klas' },\n\t\t{ value: 'Anna' },\n\t\t{ value: 'Karin' },\n\t\t{ value: 'Gustav' },\n\t\t{ value: 'Greta' },\n\t\t{ value: 'Karl' },\n\t\t{ value: 'Agneta' },\n\t\t{ value: 'Fredrik' },\n\t\t{ value: 'Görgen' },\n\t\t{ value: 'Klas' },\n\t\t{ value: 'Anna' },\n\t\t{ value: 'Karin' },\n\t\t{ value: 'Gustav' },\n\t\t{ value: 'Greta' },\n\t\t{ value: 'Karl' },\n\t\t{ value: 'Agneta' },\n\t];\n\tlistOptionsShort = [{ value: 'Fredrik' }];\n\tlistOptionsMuchText = [\n\t\t{ value: 'Dr. Fredrik göran pettersson' },\n\t\t{ value: 'Dr. Bartholomeus Maximiliam Amadeus Gustavsson' },\n\t\t{ value: 'Dr. Fredrik göran pettersson' },\n\t\t{ value: 'Dr. Bartholomeus Maximiliam Amadeus Gustavsson' },\n\t\t{ value: 'Dr. Fredrik göran pettersson' },\n\t\t{ value: 'Dr. Bartholomeus Maximiliam Amadeus Gustavsson' },\n\t];\n\terrorTextDynamic: string = null;\n\tsaveBtn: any = {\n\t\tloading: false,\n\t\tsuccess: false,\n\t};\n\tallIcons: Array<string> = [];\n\n\tconstructor(\n\t\tprivate _svgIconRepository: VisibaSvgIconRepository,\n\t\tpublic _spaContext: SpaContext,\n\t\tprivate _builder: UntypedFormBuilder,\n\t) {\n\t\tthis.formCG = _builder.group({\n\t\t\trequiredField: new UntypedFormControl(null, Validators.compose([Validators.required])),\n\t\t\trequiredFieldNin: new UntypedFormControl({ nin: null, countryCode: 'SE' }, Validators.compose([GlobalValidator.requiredNin])),\n\t\t\trequiredCheckboxField: new UntypedFormControl(null, Validators.compose([GlobalValidator.requiredCheckbox])),\n\t\t\tnationalIdentityNumber: new UntypedFormControl(\n\t\t\t\t{ nin: null, countryCode: 'SE' },\n\t\t\t\tValidators.compose([GlobalValidator.nationalIdentityFormat]),\n\t\t\t),\n\t\t});\n\t\twindow.setInterval(() => {\n\t\t\tif (this.saveBtn.loading === false && this.saveBtn.success === false) {\n\t\t\t\tthis.saveBtn.loading = true;\n\t\t\t\tthis.saveBtn.success = false;\n\t\t\t\tthis.saveBtn.error = false;\n\t\t\t} else if (this.saveBtn.loading === true) {\n\t\t\t\tthis.saveBtn.loading = false;\n\t\t\t\tthis.saveBtn.success = true;\n\t\t\t\tthis.saveBtn.error = true;\n\t\t\t\tthis.saveBtnDynamicErrorText.errorText = 'Ett errormeddelande kan skrivas här!';\n\t\t\t} else {\n\t\t\t\tthis.saveBtn.loading = false;\n\t\t\t\tthis.saveBtn.success = false;\n\t\t\t\tthis.saveBtn.error = false;\n\t\t\t}\n\t\t}, 2000);\n\n\t\tthis.allIcons = this._svgIconRepository.getIconsArray();\n\t}\n\n\tcopyToClipboard(text: string) {\n\t\tvar textarea = document.createElement('textarea') as HTMLTextAreaElement;\n\n\t\t// Place in top-left corner of screen regardless of scroll position.\n\t\ttextarea.style.position = 'fixed';\n\t\ttextarea.style.top = '0';\n\t\ttextarea.style.left = '0';\n\t\ttextarea.style.width = '1px';\n\t\ttextarea.style.height = '1px';\n\t\ttextarea.style.padding = '0';\n\t\ttextarea.style.border = 'none';\n\t\ttextarea.style.outline = 'none';\n\t\ttextarea.style.boxShadow = 'none';\n\t\ttextarea.style.background = 'transparent';\n\n\t\tdocument.body.appendChild(textarea);\n\n\t\ttextarea.value = text;\n\t\ttextarea.select();\n\n\t\ttry {\n\t\t\tvar status = document.execCommand('copy');\n\t\t} catch (err) {\n\t\t\tconsole.log('Unable to copy.', err);\n\t\t}\n\t\tdocument.body.removeChild(textarea);\n\t}\n\n\tpublic toggleShowAlias() {\n\t\tµ.Func.ToggleShowAlias();\n\t}\n}\n","import { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport { Day, DropInApiModel } from 'Public_old/src/app/Services/api/v2/Models/DropInApiModel';\nimport { SpaContext } from '../../Classes/spacontext';\nimport { DateService } from '../../Services/date.service';\n\ninterface ModifiedDay extends Day {\n\tisToday: boolean;\n\tisTomorrow: boolean;\n}\n\ninterface ModifiedDropIn extends DropInApiModel {\n\tOpenHours: ModifiedDay[];\n}\n\nfunction isToday(date: string): boolean {\n\treturn new Date(date).setHours(0, 0, 0, 0) === new Date(new Date().AsUTC().setHours(0, 0, 0, 0)).getTime();\n}\n\nfunction isTomorrow(date: string): boolean {\n\treturn new Date(date).setHours(0, 0, 0, 0) === new Date(new Date().setHours(0, 0, 0, 0) + 24 * 60 * 60 * 1000).getTime();\n}\n\nexport module DropInModule {\n\texport class DropInOpenTimes {\n\t\tisToday: boolean;\n\t\tisTomorrow: boolean;\n\t\tconstructor(public timeslot: any) {}\n\t}\n\n\texport class Room {\n\t\tpublic roomInfo: ModifiedDropIn;\n\n\t\twaitTimeString: string = '';\n\t\tinterval: any = null;\n\t\tallTimesVisible: boolean = false;\n\t\tisInQueue: boolean = false;\n\n\t\tconstructor(\n\t\t\troomInfo: DropInApiModel,\n\t\t\tprivate translateService: TranslateService,\n\t\t\tprivate spaContext: SpaContext,\n\t\t\tprivate dateService: DateService,\n\t\t) {\n\t\t\tconst { OpenHours, ...noDays } = roomInfo;\n\t\t\tconst timeZoneIana = this.spaContext.unitConfig.Locale.TimeZoneIana;\n\n\t\t\tconst modifiedDays: ModifiedDay[] = OpenHours.map((date) => {\n\t\t\t\tconst toZonedDate = (timeStamp: string): string => {\n\t\t\t\t\tlet str = date.Date.split('T')[0];\n\t\t\t\t\tstr += `T${timeStamp}`;\n\n\t\t\t\t\treturn this.dateService.tz(str, timeZoneIana).local().format('HH:mm');\n\t\t\t\t};\n\n\t\t\t\tconst slots = date.Slots.map(({ ClosingTime, OpeningTime }) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tClosingTime: toZonedDate(ClosingTime),\n\t\t\t\t\t\tOpeningTime: toZonedDate(OpeningTime),\n\t\t\t\t\t};\n\t\t\t\t});\n\n\t\t\t\treturn {\n\t\t\t\t\t...date,\n\t\t\t\t\tSlots: slots,\n\t\t\t\t\tisToday: isToday(date.Date),\n\t\t\t\t\tisTomorrow: isTomorrow(date.Date),\n\t\t\t\t};\n\t\t\t});\n\n\t\t\tthis.roomInfo = {\n\t\t\t\t...noDays,\n\t\t\t\tOpenHours: modifiedDays,\n\t\t\t};\n\t\t}\n\n\t\t/**\n\t\t * Countdown\n\t\t */\n\t\tpublic countdown(action: string, name: string) {\n\t\t\tlet ti = this.roomInfo.CurrentWaitTime;\n\t\t\tthis.getWaitTimeText(ti);\n\t\t\tif (action === 'start') {\n\t\t\t\tclearInterval(this.interval);\n\t\t\t\tthis.interval = window.setInterval(() => {\n\t\t\t\t\tti--;\n\t\t\t\t\tthis.getWaitTimeText(ti);\n\t\t\t\t\tif (ti < 1) clearInterval(this.interval);\n\t\t\t\t}, 1000);\n\t\t\t} else if (action === 'stop') {\n\t\t\t\tclearInterval(this.interval);\n\t\t\t}\n\t\t}\n\n\t\tgetWaitTimeText(seconds: number) {\n\t\t\tconst minutes = Math.floor(seconds / 60);\n\t\t\tlet text = minutes + ' ' + this.translateService.get('Common.Abbreviation.MinutesShort');\n\t\t\tif (seconds < this.roomInfo.MinimumShownWaitTime + 1) {\n\t\t\t\ttext =\n\t\t\t\t\t'< ' +\n\t\t\t\t\tMath.floor(this.roomInfo.MinimumShownWaitTime / 60) +\n\t\t\t\t\t' ' +\n\t\t\t\t\tthis.translateService.get('Common.Abbreviation.MinutesShort');\n\t\t\t} else if (minutes > 59) {\n\t\t\t\ttext =\n\t\t\t\t\tMath.floor(minutes / 60) +\n\t\t\t\t\tthis.translateService.get('Common.Abbreviation.Hours') +\n\t\t\t\t\t' ' +\n\t\t\t\t\t(minutes % 60) +\n\t\t\t\t\tthis.translateService.get('Common.Abbreviation.Minutes');\n\t\t\t}\n\n\t\t\tthis.waitTimeString = text;\n\t\t}\n\t}\n}\n","import { FeatureFlagService } from '../../../../src/application/services/feature_flag/feature_flag.service';\nimport { AppointmentCalendarInfoApiModel } from '../../Services/Models/General/AppointmentCalendarInfoApiModel';\nimport { AppointmentAccessApiModel } from '../../Services/Models/General/AppointmentAccessApiModel';\nimport { Component } from '@angular/core';\nimport { SpaContext } from '../../Classes/spacontext';\nimport { GeneralService } from '../../Services/general.service';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { IdentityServiceV2 } from '../../Services/api/v2/identity.service';\nimport { SpaEventService } from '../../Services/spaEvents.service';\nimport { Subscription } from 'rxjs';\nimport { Helper } from 'Public_old/src/app/Common/Helpers/helper';\nimport { AuthContextService } from '../../Services/authContext.service';\nimport { ApiResponse } from 'Public_old/src/app/Classes/visibaHttp.class';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport { DateService } from 'Public_old/src/app/Services/date.service';\nimport { AnalyticService } from '@application/analytic/analytic.service';\nimport { isWithinVisibaWebView } from '@public/src/modules/is_within_visiba_web_view';\nimport { sharedResolution } from '../../../../src/shared_resolution';\nimport { IDP_AUTHENTICATION_PROVIDER_ID } from '../../../../../patient/src/constants';\n\nenum AppointmentState {\n\tcancelled = 'Cancelled',\n\tcompleted = 'Completed',\n\tearly = 'Early',\n\tstartable = 'Startable',\n\trequiresSithsWeb = 'RequiresSithsWeb',\n}\n\n@Component({ standalone: false, templateUrl: '../../ViewHtml/Guest/Guest.html', styleUrls: ['../../Css/Views/Guest/Guest.scss'] })\nexport class GuestComponent {\n\tpublic state: AppointmentState | null = null;\n\tpublic AppointmentState = AppointmentState;\n\tpublic applink = {\n\t\tios: null,\n\t\tandroid: null,\n\t};\n\tpublic isWithinWebView = false;\n\tpublic callTicket: Guid;\n\tpublic unitUrl = this.helper.unit.getFullUrlAlias(this.spaContext.unitConfig.Unit.UnitId, this.spaContext.unitTreeFlat);\n\tpublic showOverlay = false;\n\tpublic get allowWebRedirect(): boolean {\n\t\treturn !this.isWithinWebView;\n\t}\n\tpublic readonly device: 'Desktop' | 'Android' | 'iOS' = 'Desktop';\n\tprivate lobbyOpenCheckInterval = null;\n\tprivate subscribers: Subscription[] = [];\n\tprivate accessInfo: AppointmentAccessApiModel = null;\n\tpublic calendarInfo: AppointmentCalendarInfoApiModel = null;\n\tpublic guestLink: string | null = null;\n\n\tpublic readonly locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\tprivate readonly analyticService = sharedResolution.resolve(AnalyticService);\n\tprivate readonly featureFlagService = sharedResolution.resolve(FeatureFlagService);\n\n\tconstructor(\n\t\tpublic spaContext: SpaContext,\n\t\tpublic route: ActivatedRoute,\n\t\tpublic router: Router,\n\t\tpublic authContextService: AuthContextService,\n\t\tprivate generalService: GeneralService,\n\t\tprivate identityService: IdentityServiceV2,\n\t\tprivate spaEventService: SpaEventService,\n\t\tprivate helper: Helper,\n\t\tprivate dateService: DateService,\n\t) {\n\t\tif (isWithinVisibaWebView()) {\n\t\t\tthis.isWithinWebView = true;\n\t\t}\n\n\t\tif (this.helper.is.ios() || this.isVisibaApp()) {\n\t\t\tthis.device = 'iOS';\n\n\t\t\tif (this.spaContext.unitConfig.AppConfig !== null && this.spaContext.unitConfig.AppConfig.AppStoreId !== null) {\n\t\t\t\tthis.applink.ios = 'https://itunes.apple.com/se/app/id' + this.spaContext.unitConfig.AppConfig.AppStoreId;\n\t\t\t}\n\t\t} else if (platform.os.family === 'Android') {\n\t\t\tthis.device = 'Android';\n\n\t\t\tif (this.spaContext.unitConfig.AppConfig !== null && this.spaContext.unitConfig.AppConfig.AndroidPackageId !== null) {\n\t\t\t\tthis.applink.android =\n\t\t\t\t\t'https://play.app.goo.gl/?link=https://play.google.com/store/apps/details?id=' +\n\t\t\t\t\tthis.spaContext.unitConfig.AppConfig.AndroidPackageId;\n\t\t\t}\n\t\t}\n\t}\n\n\tngOnInit() {\n\t\tthis.analyticService.trackPageView({ customTitle: 'Appointment guest' });\n\n\t\tthis.callTicket = this.route.snapshot.paramMap.get('callTicket');\n\n\t\tthis.generalService.getAppointmentCalendarInfo(this.callTicket).subscribe((response) => {\n\t\t\tthis.calendarInfo = response.data;\n\t\t\tthis.handleReceivedDataChange();\n\t\t});\n\n\t\tthis.generalService.getAppointmentAccessInfo(this.callTicket).subscribe(\n\t\t\t(response) => {\n\t\t\t\tthis.accessInfo = response.data;\n\t\t\t\tif (this.accessInfo.AuthenticationMethod.AuthenticationProviderId === IDP_AUTHENTICATION_PROVIDER_ID) {\n\t\t\t\t\twindow.location.href = `${this.locationSelectorService.entrance.route}/guest-participant/new/${this.callTicket}`;\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.handleReceivedDataChange();\n\t\t\t},\n\t\t\t(err: ApiResponse<HttpErrorResponse>) => {\n\t\t\t\tif (err.statusCode === 404) {\n\t\t\t\t\tthis.state = AppointmentState.cancelled;\n\t\t\t\t}\n\t\t\t},\n\t\t);\n\n\t\tthis.guestLink = `/${this.locationSelectorService.entrance.route}/appointment/${this.callTicket}?legacy=true`;\n\t}\n\n\tprivate handleReceivedDataChange() {\n\t\tif (this.accessInfo && (this.accessInfo?.OutsiderId === null || this.accessInfo?.AuthenticationMethod === null)) {\n\t\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\t\t\tthis.router.navigateByUrl('/' + locationSelectorService.location.route);\n\t\t} else if (this.calendarInfo?.Completed || this.isAfterEndTime()) {\n\t\t\tthis.state = AppointmentState.completed;\n\t\t} else if (this.calendarInfo?.Cancelled) {\n\t\t\tthis.state = AppointmentState.cancelled;\n\t\t} else if (\n\t\t\tthis.allowWebRedirect &&\n\t\t\tthis.accessInfo &&\n\t\t\tthis.accessInfo?.AuthenticationMethod &&\n\t\t\tthis.accessInfo?.AuthenticationMethod.AuthenticationProviderId === 'Siths'\n\t\t) {\n\t\t\tthis.state = AppointmentState.requiresSithsWeb;\n\t\t} else if (this.isAfterStartTime()) {\n\t\t\tthis.state = AppointmentState.startable;\n\t\t} else {\n\t\t\tthis.state = AppointmentState.early;\n\t\t\tthis.lobbyOpenCheckInterval = setInterval(() => this.checkLobbyStatus(), 1000);\n\t\t}\n\t}\n\n\tngOnDestroy() {\n\t\tthis.subscribers.forEach((s) => s.unsubscribe());\n\t\tif (this.lobbyOpenCheckInterval) {\n\t\t\tclearInterval(this.lobbyOpenCheckInterval);\n\t\t}\n\t}\n\n\tpublic handleRouteClick() {\n\t\tthis.showOverlay = true;\n\t\tif (this.device === 'iOS' && !this.isVisibaApp()) {\n\t\t\twindow.open(this.applink.ios, '_blank');\n\n\t\t\treturn;\n\t\t}\n\n\t\twindow.open(`${this.unitUrl}/appointment/guest/${this.callTicket}?legacy=true`, '_blank');\n\t}\n\n\t// https://github.com/angular/angular/issues/28917#issuecomment-606417549\n\tpublic handleRouteClickWeb(e: MouseEvent) {\n\t\te.preventDefault();\n\n\t\tthis.router.navigateByUrl(this.guestLink);\n\t}\n\n\tpublic isOpen() {\n\t\treturn (\n\t\t\tthis.state === AppointmentState.early ||\n\t\t\tthis.state === AppointmentState.startable ||\n\t\t\tthis.state === AppointmentState.requiresSithsWeb\n\t\t);\n\t}\n\n\tpublic signOut() {\n\t\tthis.identityService.signOut().subscribe(\n\t\t\t({ data }) => {\n\t\t\t\tthis.spaEventService.onSignedOut.emit({\n\t\t\t\t\tredirectUrl: data.RedirectUrl,\n\t\t\t\t});\n\t\t\t},\n\t\t\t(err) => {\n\t\t\t\twindow.location.reload();\n\t\t\t},\n\t\t);\n\t}\n\n\tprivate isVisibaApp(): boolean {\n\t\t// Exist to detect if the user is coming from an iPad\n\t\ttry {\n\t\t\tconst cookie = this.helper.cookie.get('VisibaIOSApp');\n\n\t\t\tif (!cookie) return false;\n\n\t\t\treturn JSON.parse(cookie);\n\t\t} catch (error) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tprivate checkLobbyStatus() {\n\t\tif (this.isAfterStartTime()) {\n\t\t\tthis.state = AppointmentState.startable;\n\t\t\tclearInterval(this.lobbyOpenCheckInterval);\n\t\t}\n\t}\n\n\t/**\n\t * Lobby is open if within 15minutes from start\n\t * */\n\tprivate isAfterStartTime(): boolean {\n\t\treturn new Date(this.calendarInfo.AppointmentStart).getTime() - 15 * 60 * 1000 < new Date().getTime();\n\t}\n\n\tprivate isAfterEndTime(): boolean {\n\t\treturn this.dateService.create().isAfter(this.dateService.create(this.calendarInfo.AppointmentEnd), 'day');\n\t}\n}\n","import { Router, ActivatedRoute } from '@angular/router';\nimport { Component } from '@angular/core';\nimport { SpaEventService } from '../../Services/spaEvents.service';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { sharedResolution } from '../../../../src/shared_resolution';\n\n@Component({ standalone: false, template: ` <div>...</div> ` })\nexport class ProxyRedirectComponent {\n\tconstructor(router: Router, route: ActivatedRoute, spaEventService: SpaEventService) {\n\t\tconst token = route.snapshot.queryParams['token'];\n\t\tconst licenceHolderService = sharedResolution.resolve(LicenceHolderService);\n\n\t\tif (token) {\n\t\t\trouter.navigate([licenceHolderService.alias]);\n\n\t\t\tspaEventService.onRegistrationRequired.emit({\n\t\t\t\ttarget: licenceHolderService.alias,\n\t\t\t\tticket: token,\n\t\t\t});\n\n\t\t\treturn;\n\t\t}\n\n\t\trouter.navigate([licenceHolderService.alias]);\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { SpaContext } from '../../../Classes/spacontext';\nimport { VisibaApiHttp } from '../../../Classes/visibaHttp.class';\nimport { ProductPrice } from './Models/ProductPrice';\n\n@Injectable()\nexport class RateService {\n\treadonly baseUri = '/api/Client/v2/Rate';\n\n\tconstructor(private http: VisibaApiHttp, private spaContext: SpaContext) {}\n\n\tpublic getMessagingConversationPrice() {\n\t\treturn this.http.getTyped<ProductPrice>(\n\t\t\t`${this.baseUri}/${this.spaContext.unitConfig.ReceptionId}/GetMessagingConversationPrice`,\n\t\t);\n\t}\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { SafeSubscriber } from '../Subscriber';\nimport { operate } from '../util/lift';\nexport function share(options = {}) {\n const { connector = () => new Subject(), resetOnError = true, resetOnComplete = true, resetOnRefCountZero = true } = options;\n return (wrapperSource) => {\n let connection;\n let resetConnection;\n let subject;\n let refCount = 0;\n let hasCompleted = false;\n let hasErrored = false;\n const cancelReset = () => {\n resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();\n resetConnection = undefined;\n };\n const reset = () => {\n cancelReset();\n connection = subject = undefined;\n hasCompleted = hasErrored = false;\n };\n const resetAndUnsubscribe = () => {\n const conn = connection;\n reset();\n conn === null || conn === void 0 ? void 0 : conn.unsubscribe();\n };\n return operate((source, subscriber) => {\n refCount++;\n if (!hasErrored && !hasCompleted) {\n cancelReset();\n }\n const dest = (subject = subject !== null && subject !== void 0 ? subject : connector());\n subscriber.add(() => {\n refCount--;\n if (refCount === 0 && !hasErrored && !hasCompleted) {\n resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);\n }\n });\n dest.subscribe(subscriber);\n if (!connection &&\n refCount > 0) {\n connection = new SafeSubscriber({\n next: (value) => dest.next(value),\n error: (err) => {\n hasErrored = true;\n cancelReset();\n resetConnection = handleReset(reset, resetOnError, err);\n dest.error(err);\n },\n complete: () => {\n hasCompleted = true;\n cancelReset();\n resetConnection = handleReset(reset, resetOnComplete);\n dest.complete();\n },\n });\n innerFrom(source).subscribe(connection);\n }\n })(wrapperSource);\n };\n}\nfunction handleReset(reset, on, ...args) {\n if (on === true) {\n reset();\n return;\n }\n if (on === false) {\n return;\n }\n const onSubscriber = new SafeSubscriber({\n next: () => {\n onSubscriber.unsubscribe();\n reset();\n },\n });\n return innerFrom(on(...args)).subscribe(onSubscriber);\n}\n","import { Injectable } from '@angular/core';\nimport { VisibaApiHttp } from '../../../Classes/visibaHttp.class';\nimport { BasketContents } from './Models/Basket/BasketContents';\nimport { MessagingConversationInput } from './Models/Basket/MessagingConversationInput';\nimport { FileMapResult } from './Models/Basket/FileMapResult';\nimport { BasketFileReferenceInput } from './Models/Basket/BasketFileReferenceInput';\nimport { AnswerFormQuestionUpdateResult } from './Models/Basket/AnswerFormQuestionUpdateResult';\nimport { BasketFormAnswer } from './Models/Basket/BasketFormAnswer';\nimport { FormQuestionAnswer } from './Models/Basket/FormQuestionAnswer';\nimport { CommitResult } from './Models/Basket/CommitResult';\nimport { SpaContext } from '../../../Classes/spacontext';\nimport { CommitSuccessResult } from './Models/Basket/CommitSuccessResult';\nimport { ExternalDataResult } from './Models/Basket/ExternalDataResult';\nimport { ExternalDataService } from './Units/external-data.service';\nimport { share } from 'rxjs/operators';\n\n@Injectable()\nexport class BasketService {\n\treadonly baseUri = '/api/Client/v2/Baskets';\n\n\tconstructor(private http: VisibaApiHttp, private spaContext: SpaContext, private externalDataService: ExternalDataService) {}\n\n\tpublic getActive() {\n\t\treturn this.http.getTyped<number>(`${this.baseUri}/Active/${this.spaContext.unitConfig.ReceptionId}`);\n\t}\n\n\tpublic get(baskedId: number) {\n\t\treturn this.http.getTyped<BasketContents>(`${this.baseUri}/${baskedId}`);\n\t}\n\n\tpublic delete(baskedId: number) {\n\t\treturn this.http.deleteTyped<BasketContents>(`${this.baseUri}/${baskedId}`);\n\t}\n\n\t/**\n\t * External data\n\t */\n\tpublic getExternalData(basketId: number, basketProductId: number) {\n\t\treturn this.http.getTyped<ExternalDataResult>(`${this.baseUri}/${basketId}/Item/${basketProductId}/ExternalData`);\n\t}\n\n\tpublic postExternalData(basketId: number, basketProductId: number, externalDataReferences: Guid[]) {\n\t\treturn this.http.postTyped<void>(`${this.baseUri}/${basketId}/Item/${basketProductId}/ExternalData`, externalDataReferences);\n\t}\n\n\t/**\n\t * Items\n\t */\n\tpublic addProductMessagingConversation(baskedId: number, conversation: MessagingConversationInput) {\n\t\tconversation.ExternalDataReferences = this.externalDataService.getExternalDataReferences().map(reference => reference.guid);\n\t\tconst observeable = this.http\n\t\t\t.postTyped<BasketContents>(`${this.baseUri}/${baskedId}/MessagingConversation`, conversation)\n\t\t\t.pipe(share());\n\n\t\tobserveable.subscribe(() => this.externalDataService.clearExternalDataReferences());\n\n\t\treturn observeable;\n\t}\n\n\tpublic removeItem(baskedId: number, basketItemId: number) {\n\t\treturn this.http.deleteTyped<void>(`${this.baseUri}/${baskedId}/Items/${basketItemId}`);\n\t}\n\n\t/**\n\t * Files\n\t */\n\tpublic addFiles(baskedId: number, basketItemId: number, files: BasketFileReferenceInput[]) {\n\t\treturn this.http.postTyped<FileMapResult[]>(`${this.baseUri}/${baskedId}/Item/${basketItemId}/Files`, files);\n\t}\n\n\tpublic deleteFiles(baskedId: number, basketItemId: number, fileIds: Guid[]) {\n\t\tlet params = '';\n\t\tfileIds.forEach(id => (params += `fid/${id}/`));\n\n\t\treturn this.http.deleteTyped<{ [key: string]: boolean }>(`${this.baseUri}/${baskedId}/Item/${basketItemId}/Files/${params}`);\n\t}\n\n\t/**\n\t * Forms\n\t */\n\tpublic setFormAnswers(baskedId: number, formId: number, basketProductId: number, answers: BasketFormAnswer[]) {\n\t\treturn this.http.postTyped<AnswerFormQuestionUpdateResult[]>(\n\t\t\t`${this.baseUri}/${baskedId}/FormAnswers/${basketProductId}/${formId}`,\n\t\t\tanswers,\n\t\t);\n\t}\n\n\tpublic getFormAnswers(baskedId: number, formId: number, basketProductId: number) {\n\t\treturn this.http.getTyped<FormQuestionAnswer[]>(`${this.baseUri}/${baskedId}/FormAnswers/${basketProductId}/${formId}`);\n\t}\n\n\tpublic getFormAnswersByQuestions(baskedId: number, formId: number, basketProductId: number, questionIds: number[]) {\n\t\treturn this.http.postTyped<FormQuestionAnswer[]>(\n\t\t\t`${this.baseUri}/${baskedId}/GetFormAnswers/${basketProductId}/${formId}`,\n\t\t\tquestionIds,\n\t\t);\n\t}\n\n\t/**\n\t * Commiting\n\t */\n\tpublic commit(baskedId: number) {\n\t\treturn this.http.putTyped<CommitResult>(`${this.baseUri}/${baskedId}/Commit`, null);\n\t}\n\n\tpublic createCommit(baskedId: number) {\n\t\treturn this.http.putTyped<number>(`${this.baseUri}/${baskedId}/CreateCommit`, null);\n\t}\n\n\tpublic getCommitStatus(commitJobId: number) {\n\t\treturn this.http.getTyped<CommitSuccessResult>(`${this.baseUri}/Commit/${commitJobId}`, null);\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { BasketService } from '../api/v2/basket.service';\nimport { BasketContents } from '../api/v2/Models/Basket/BasketContents';\nimport { MessagingConversationInput } from '../api/v2/Models/Basket/MessagingConversationInput';\nimport { BasketFormAnswer } from '../api/v2/Models/Basket/BasketFormAnswer';\nimport { mergeMap } from 'rxjs/operators';\n\n@Injectable()\nexport class BasketStoreService {\n\tprivate currentBasketId: number | null = null;\n\tprivate currentBasket: BasketContents | null = null;\n\tget basket() {\n\t\tif (this.currentBasket) {\n\t\t\treturn Promise.resolve({ data: this.currentBasket });\n\t\t}\n\n\t\treturn this.basketService\n\t\t\t.getActive()\n\t\t\t.pipe(\n\t\t\t\tmergeMap((response) => {\n\t\t\t\t\tthis.currentBasketId = response.data;\n\n\t\t\t\t\treturn this.basketService.get(this.currentBasketId);\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.toPromise();\n\t}\n\n\tget basketId() {\n\t\treturn this.currentBasketId;\n\t}\n\n\tpublic setFormAnswers(formId: number, basketProductId: number, answers: BasketFormAnswer[]) {\n\t\treturn this.basketService.setFormAnswers(this.basketId, formId, basketProductId, answers);\n\t}\n\n\t/**\n\t * Get updated basket from database\n\t */\n\tget updateBasket() {\n\t\tif (!this.currentBasketId) throw new Error('No basket found');\n\n\t\treturn this.basketService.get(this.currentBasketId);\n\t}\n\n\tpublic addProductMessagingConversation(conversationInput: MessagingConversationInput) {\n\t\tif (!this.currentBasketId) throw new Error('No basket found');\n\n\t\treturn this.basketService.addProductMessagingConversation(this.basketId, conversationInput);\n\t}\n\n\tpublic commit() {\n\t\tif (!this.currentBasketId) throw new Error('No basket found');\n\n\t\treturn this.basketService.commit(this.basketId);\n\t}\n\n\tpublic removeItem(itemId: number) {\n\t\tif (!this.currentBasketId) throw new Error('No basket found');\n\t\tthis.currentBasket = null;\n\n\t\treturn this.basketService.removeItem(this.basketId, itemId);\n\t}\n\n\tpublic deleteBasketItem() {\n\t\tif (!this.currentBasketId) throw new Error('No basket found');\n\t\tconst deleteId = this.currentBasketId;\n\t\tthis.currentBasket = null;\n\t\tthis.currentBasketId = null;\n\n\t\treturn this.basketService.delete(deleteId);\n\t}\n\n\tpublic createCommit() {\n\t\tif (!this.currentBasketId) throw new Error('No basket found');\n\n\t\treturn this.basketService.createCommit(this.basketId);\n\t}\n\n\tpublic getCommitStatus(commitJobId: number) {\n\t\treturn this.basketService.getCommitStatus(commitJobId);\n\t}\n\n\tpublic deleteBasket() {\n\t\tif (!this.currentBasketId) throw new Error('No basket found');\n\t\tconst deleteId = this.currentBasketId;\n\t\tthis.currentBasket = null;\n\t\tthis.currentBasketId = null;\n\n\t\treturn this.basketService.delete(deleteId);\n\t}\n\n\tconstructor(private basketService: BasketService) {}\n}\n","import { TranslateService } from '../Services/translate.service';\nimport { Directive, ElementRef, Input, ViewContainerRef } from '@angular/core';\n\n@Directive({ standalone: false, selector: 't' })\nexport class TranslateStaticAlias {\n\t@Input('d') data: Object;\n\n\tconstructor(\n\t\t_elementRef: ElementRef,\n\t\tviewContainer: ViewContainerRef,\n\t\tprivate translateService: TranslateService,\n\t) {\n\t\tlet el: HTMLElement = _elementRef.nativeElement;\n\n\t\tsetTimeout(() => {\n\t\t\tvar key = el.innerHTML;\n\t\t\tvar translation = this.translateService.get(key, '<span style=\"color:red;\">' + key + '</span>');\n\n\t\t\tfor (var k in this.data) translation = translation.replace('{{' + k + '}}', this.data[k]);\n\n\t\t\tel.insertAdjacentHTML('afterend', translation);\n\t\t\tel.parentNode.removeChild(el);\n\t\t});\n\t}\n}\n\n@Directive({ standalone: false, selector: '[t]' })\nexport class TranslateDynamicAlias {\n\t@Input('t') alias: string;\n\t@Input('d') data: Object;\n\n\tconstructor(\n\t\tprivate _elementRef: ElementRef,\n\t\tprivate translateService: TranslateService,\n\t) {}\n\n\tngOnInit() {\n\t\tlet el: HTMLElement = this._elementRef.nativeElement;\n\n\t\tvar translation = this.translateService.get(this.alias, '<span style=\"color:red;\">' + this.alias + '</span>');\n\n\t\tfor (var k in this.data) translation = translation.replace('{{' + k + '}}', this.data[k]);\n\n\t\tel.insertAdjacentHTML('afterend', translation);\n\t\tel.parentNode.removeChild(el);\n\t}\n}\n\n@Directive({ standalone: false, selector: '[tplaceholder]' })\nexport class TranslatePlaceholderDynamicAlias {\n\t@Input('tplaceholder') alias: string;\n\n\tconstructor(\n\t\tprivate _elementRef: ElementRef,\n\t\tprivate translateService: TranslateService,\n\t) {}\n\n\tngOnInit() {\n\t\tlet el: HTMLElement = this._elementRef.nativeElement;\n\n\t\tvar translation = this.translateService.get(this.alias, this.alias);\n\n\t\tel.setAttribute('placeholder', translation);\n\t}\n}\n","import { SpaContext } from '../Classes/spacontext';\nimport { Helper } from '../Common/Helpers/helper';\nimport { Injectable } from '@angular/core';\nimport { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpResponse } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { environment } from 'Public_old/src/environments/environment';\nimport { ApplicationService } from '../Services/application.service';\nimport { devLocalStorage } from 'src/application/dev_local_storage';\n\n@Injectable()\nexport class HttpRequestInterceptor implements HttpInterceptor {\n\tconstructor(\n\t\tpublic _spaContext: SpaContext,\n\t\tprivate helper: Helper,\n\t\tprivate applicationService: ApplicationService,\n\t) {}\n\n\tintercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {\n\t\tconst defaultOptions = {\n\t\t\t'Content-Type': 'application/json', // Breaks fileupload\n\t\t\t'If-Modified-Since': 'Mon, 26 Jul 1997 05:00:00 GMT',\n\t\t\t'Cache-Control': 'no-cache, no-store, must-revalidate',\n\t\t\tPragma: 'no-cache',\n\t\t\t'X-App-WebVersion': this.applicationService.webVersion,\n\t\t\t'X-App-Lang': `${this._spaContext.languageCode}`,\n\t\t\t'X-XSRF-TOKEN': this.helper.cookie.get('XSRF-TOKEN') || '',\n\t\t};\n\n\t\tif (req.body instanceof FormData) {\n\t\t\t// Needed to auto generate corret content type\n\t\t\tdelete defaultOptions['Content-Type'];\n\t\t}\n\n\t\t// Using this for dev1\n\t\tif (!environment.production && devLocalStorage.get('identitySession') !== null) {\n\t\t\tdefaultOptions['X-Authorization'] = `ticket ${devLocalStorage.get('identitySession')}`;\n\t\t\tdefaultOptions['X-App-SkipXsfrVerification'] = `true`;\n\t\t}\n\n\t\tconst setHeaders: { [key: string]: string } = {};\n\t\tObject.keys(defaultOptions).forEach((key) => {\n\t\t\tif (req.headers.has(key)) return;\n\t\t\tsetHeaders[key] = defaultOptions[key];\n\t\t});\n\n\t\tconst outReq = req.clone({\n\t\t\tsetHeaders,\n\t\t\twithCredentials: true,\n\t\t});\n\n\t\treturn next.handle(outReq).pipe(\n\t\t\tmap((event) => {\n\t\t\t\tif (event instanceof HttpResponse) {\n\t\t\t\t\tconst response = event as HttpResponse<any>;\n\t\t\t\t\tif (!environment.production) {\n\t\t\t\t\t\tif (response.headers.has('X-App-ResourceSession')) {\n\t\t\t\t\t\t\tlocalStorage.setItem('identitySession', response.headers.get('X-App-ResourceSession'));\n\t\t\t\t\t\t} else if (response.headers.has('X-App-ClientSession')) {\n\t\t\t\t\t\t\tlocalStorage.setItem('identitySession', response.headers.get('X-App-ClientSession'));\n\t\t\t\t\t\t} else if (response.headers.has('X-App-OutsiderSession')) {\n\t\t\t\t\t\t\tlocalStorage.setItem('identitySession', response.headers.get('X-App-OutsiderSession'));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn event;\n\t\t\t}),\n\t\t);\n\t}\n}\n","import { Observable } from 'rxjs';\nimport { CanDeactivate } from '@angular/router';\n\nexport interface ComponentCanDeactivate {\n\tcanDeactivate: () => Observable<boolean> | boolean;\n}\n\nexport class ConfirmLeaveGuard implements CanDeactivate<ComponentCanDeactivate> {\n\tcanDeactivate(component: ComponentCanDeactivate): Observable<boolean> | boolean {\n\t\treturn component.canDeactivate();\n\t}\n}\n","import { AnswerApiModel } from '../../Services/api/v2/Models/AnswerApiModel';\n\nexport class DynamicFormAnswer implements AnswerApiModel {\n\tId: number | null;\n\tQuestionId: number;\n\tStringValue: string | null;\n\tIntValue: number | null;\n\tBoolValue: boolean | null;\n\tChoices: Array<number>;\n\n\tValid: () => boolean;\n\n\tconstructor(answer: AnswerApiModel | null, questionId: number, validFunc: () => boolean) {\n\t\tif (answer !== null) {\n\t\t\tthis.StringValue = answer.StringValue;\n\t\t\tthis.IntValue = answer.IntValue;\n\t\t\tthis.BoolValue = answer.BoolValue;\n\t\t\tthis.Choices = answer.Choices;\n\t\t} else {\n\t\t\tthis.StringValue = null;\n\t\t\tthis.IntValue = null;\n\t\t\tthis.BoolValue = null;\n\t\t\tthis.Choices = [];\n\t\t}\n\n\t\tthis.QuestionId = questionId;\n\n\t\tthis.Valid = validFunc;\n\t}\n}\n","export class BasketFormAnswer {\n\tQuestionId: number;\n\tIntValue: number | null;\n\tBoolAnswer: boolean | null;\n\tTextAnswer: string;\n\tMultiAnswer: number[] | null;\n}\n","import { DynamicFormOutcome } from './DynamicFormOutcome';\nimport { Component, Input, Output, EventEmitter, ElementRef, ViewEncapsulation } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { DynamicFormAnswer } from './DynamicFormAnswer';\nimport { DynamicFormData } from './DynamicFormData';\nimport { SpaContext } from '../../Classes/spacontext';\nimport { DynamicFormServiceV2 } from '../../Services/api/v2/Units/dynamic-form.service';\nimport { FormGraphApiModel } from '../../Services/api/v2/Models/FormGraphApiModel';\nimport { PageApiModel } from '../../Services/api/v2/Models/PageApiModel';\nimport { QuestionApiModel } from '../../Services/api/v2/Models/QuestionApiModel';\nimport { AnswerApiModel } from '../../Services/api/v2/Models/AnswerApiModel';\nimport { BasketFormAnswer } from '../../Services/api/v2/Models/Basket/BasketFormAnswer';\nimport { Helper } from 'Public_old/src/app/Common/Helpers/helper';\nimport { VisibaSaveButtonComponent } from '../../Common/Directives/visibaSaveButton';\n\n@Component({\n\tstandalone: false,\n\tselector: 'dynamic-form',\n\ttemplate: `\n\t\t<div *ngIf=\"form != null\">\n\t\t\t<div class=\"row head\">\n\t\t\t\t<h1>{{ form.Header }}</h1>\n\t\t\t\t<div class=\"description\">\n\t\t\t\t\t{{ form.Description }}\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class=\"page\">\n\t\t\t\t<form *ngIf=\"activePage != null\" [class.ng-submitted]=\"activePage.submitted\">\n\t\t\t\t\t<h2>{{ 'DynamicForms.Page' | translate }} {{ formMeta.flatPageIndex + 1 }}</h2>\n\t\t\t\t\t<div class=\"questions\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"question row\"\n\t\t\t\t\t\t\t*ngFor=\"let q of activePage.Questions\"\n\t\t\t\t\t\t\t[ngSwitch]=\"q.Type\"\n\t\t\t\t\t\t\t[class.customValidation]=\"q.Type === 'MultiChoice' || q.Type === 'SingleChoiceRadio'\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<ng-template [ngSwitchCase]=\"'YesNo'\">\n\t\t\t\t\t\t\t\t<dfq-yesno [formId]=\"form.Id\" [data]=\"q\" [readonly]=\"completed\"></dfq-yesno>\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t<ng-template [ngSwitchCase]=\"'MultiChoice'\">\n\t\t\t\t\t\t\t\t<dfq-multichoice [formId]=\"form.Id\" [data]=\"q\" [readonly]=\"completed\"></dfq-multichoice>\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t<ng-template [ngSwitchCase]=\"'Multiline'\">\n\t\t\t\t\t\t\t\t<dfq-multiline [formId]=\"form.Id\" [data]=\"q\" [readonly]=\"completed\"></dfq-multiline>\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t<ng-template [ngSwitchCase]=\"'SingleChoiceRadio'\">\n\t\t\t\t\t\t\t\t<dfq-singlechoiceradio [formId]=\"form.Id\" [data]=\"q\" [readonly]=\"completed\"></dfq-singlechoiceradio>\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t<ng-template [ngSwitchCase]=\"'SingleChoiceSelect'\">\n\t\t\t\t\t\t\t\t<div class=\"span24\">\n\t\t\t\t\t\t\t\t\t<dfq-singlechoiceselect [formId]=\"form.Id\" [data]=\"q\" [readonly]=\"completed\"></dfq-singlechoiceselect>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\n\t\t\t\t<div class=\"navigation\">\n\t\t\t\t\t<ng-template [ngIf]=\"activePage === null\">\n\t\t\t\t\t\t<save-btn class=\"send\" (click)=\"setActivePage()\">{{ 'LicenceHolder.DynamicForm.Button.Start' | translate }}</save-btn>\n\t\t\t\t\t</ng-template>\n\n\t\t\t\t\t<ng-template [ngIf]=\"activePage !== null\">\n\t\t\t\t\t\t<div class=\"pagination\">\n\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\t<span>{{ formMeta.flatPageIndex + 1 }}</span>\n\t\t\t\t\t\t\t\t{{ 'Common.Word.NavigationOf' | translate }}\n\t\t\t\t\t\t\t\t{{ formMeta.totalPages }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<div class=\"back\" [style.opacity]=\"formMeta.flatPageIndex > 0 ? 100 : 0\" (click)=\"back()\">\n\t\t\t\t\t\t\t\t<visiba-svg a=\"ArrowLeft\"></visiba-svg>\n\t\t\t\t\t\t\t\t{{ 'Common.Button.Back' | translate }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<button *ngIf=\"formMeta.staticLastPage?.Id != activePage?.Id\" class=\"btn next\" (click)=\"continue()\">\n\t\t\t\t\t\t\t\t{{ 'Common.Button.Next' | translate }}\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t<save-btn\n\t\t\t\t\t\t\t\t*ngIf=\"formMeta.staticLastPage?.Id == activePage?.Id && !completed\"\n\t\t\t\t\t\t\t\tclass=\"send\"\n\t\t\t\t\t\t\t\t#finishbtn\n\t\t\t\t\t\t\t\t(click)=\"continue(finishbtn)\"\n\t\t\t\t\t\t\t\t>{{ 'Common.Button.Next' | translate }}</save-btn\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</ng-template>\n\t\t\t\t\t<div class=\"abortLink\" *ngIf=\"false && data.Delayable\">\n\t\t\t\t\t\t<a (click)=\"emitOutcome('delayed')\">{{ 'LicenceHolder.DynamicForm.Button.AnswerLater' | translate }}</a>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"abortLink\" *ngIf=\"false && !formMeta.isRequired\">\n\t\t\t\t\t\t<a (click)=\"emitOutcome('skipped'); setCompletion()\">{{ 'LicenceHolder.DynamicForm.Button.SkipForm' | translate }}</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"abortLink\" *ngIf=\"data.Abortable\">\n\t\t\t\t\t\t<a (click)=\"emitOutcome('aborted')\">{{ 'LicenceHolder.DynamicForm.Button.Abort' | translate }}</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t`,\n\tstyleUrls: ['../../Css/Components/dynamicFormComponent.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class DynamicFormComponent {\n\t@Input() id: number = null;\n\t@Input() data: DynamicFormData;\n\t@Input() emitAnswers = false;\n\t@Output() onComplete = new EventEmitter<DynamicFormOutcome>();\n\n\t@Output() onNextPage = new EventEmitter<{ [key: number]: BasketFormAnswer[] }>();\n\n\trespondantId: number = null;\n\tform: FormGraphApiModel = null;\n\tformMeta: FormMeta = null;\n\tactivePage: PageApiModel = null;\n\tpublic completed = false;\n\tprivate answers = [];\n\n\tconstructor(\n\t\tprivate _dynamicFormService: DynamicFormServiceV2,\n\t\tprivate _spaContext: SpaContext,\n\t\tprivate _elementRef: ElementRef,\n\t\tprivate readonly helper: Helper,\n\t) {}\n\n\tngOnChanges() {\n\t\tthis.formMeta = { currPage: 0, currPageGroup: 0, totalPages: null, flatPageIndex: 0, isRequired: true };\n\t\tthis.form = null;\n\t\tthis.activePage = null;\n\t\tthis.respondantId = null;\n\t\tthis.answers = [];\n\t\tthis._dynamicFormService.get(this.id).subscribe(\n\t\t\t(response) => {\n\t\t\t\tthis.form = response.data;\n\n\t\t\t\t// Remove empty PageGroups\n\t\t\t\tthis.form.PageGroups = this.form.PageGroups.filter((x) => x.Pages.length > 0);\n\n\t\t\t\tthis.formMeta.staticLastPage = this.getStaticLastPage();\n\t\t\t\tthis.formMeta.isRequired = this.isRequired();\n\n\t\t\t\tlet totalPages = 0;\n\t\t\t\tfor (let i = 0; i < this.form.PageGroups.length; i++) totalPages += this.form.PageGroups[i].Pages.length;\n\n\t\t\t\tthis.formMeta.totalPages = totalPages;\n\n\t\t\t\tlet ind = 0;\n\t\t\t\tthis.allQuestions().forEach((x) => {\n\t\t\t\t\tx.questionNumber = ++ind;\n\t\t\t\t});\n\n\t\t\t\tif (typeof this.data.RespondantId === 'number') {\n\t\t\t\t\tthis.getRespondant();\n\t\t\t\t}\n\t\t\t},\n\t\t\t(error) => {},\n\t\t);\n\t}\n\n\tgetRespondant() {\n\t\tthis._dynamicFormService.getRespondant(this.data.RespondantId).subscribe(\n\t\t\t(response) => {\n\t\t\t\tif (response.data.Answers !== null) this.addAnswers(response.data.Answers);\n\n\t\t\t\tthis.respondantId = response.data.Id;\n\t\t\t\tthis.completed = response.data.Completed;\n\t\t\t},\n\t\t\t(error) => {},\n\t\t);\n\t}\n\n\tallQuestions(): QuestionApiModel[] {\n\t\treturn this.form.PageGroups.map((x) => x.Pages)\n\t\t\t.reduce((a, b) => {\n\t\t\t\treturn a.concat(b);\n\t\t\t}, [])\n\t\t\t.map((x) => x.Questions)\n\t\t\t.reduce((a, b) => {\n\t\t\t\treturn a.concat(b);\n\t\t\t}, []);\n\t}\n\n\taddAnswers(answers: AnswerApiModel[]) {\n\t\tconst questions = this.allQuestions();\n\n\t\tanswers.forEach((a) => {\n\t\t\tconst question = questions.filter((q) => q.Id === a.QuestionId);\n\n\t\t\tif (a.Choices && a.Choices.length > 0)\n\t\t\t\t// Verify choices still exist on question\n\t\t\t\ta.Choices = a.Choices.filter((x) => question[0].Options.find((o) => o.Id === x));\n\n\t\t\tif (question.length > 0) question[0].Answer = new DynamicFormAnswer(a, a.QuestionId, () => true);\n\t\t});\n\t}\n\n\tisRequired() {\n\t\tconst questions: QuestionApiModel[] = this.allQuestions();\n\n\t\treturn typeof questions.find((x) => x.Required) !== 'undefined';\n\t}\n\n\tscrollToStartOfPage() {\n\t\tconst element = this._elementRef.nativeElement.querySelector('.row .head > h1');\n\t\tif (\n\t\t\ttypeof element !== 'undefined' &&\n\t\t\telement !== null &&\n\t\t\telement.getBoundingClientRect().top + window.scrollY < window.pageYOffset\n\t\t) {\n\t\t\telement.scrollIntoView();\n\t\t\twindow.scrollBy(0, -120);\n\t\t}\n\t}\n\n\t/**\n\t * Get next availible page\n\t */\n\tcontinue(btn: VisibaSaveButtonComponent = null) {\n\t\tthis.scrollToStartOfPage();\n\t\tthis.activePage.submitted = true;\n\t\tif (!this.pageIsValid(this.activePage)) return;\n\n\t\tif (btn !== null) btn.isLoading();\n\n\t\tconst questions = this.activePage.Questions.filter(\n\t\t\t(x) => x.Answer.StringValue !== null || x.Answer.BoolValue !== null || x.Answer.IntValue !== null || x.Answer.Choices.length > 0,\n\t\t);\n\n\t\tif (questions.length === 0 || this.completed) {\n\t\t\tthis.continueComplete();\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.submitPageAnswers(questions, this.activePage).subscribe(\n\t\t\t(ok) => {\n\t\t\t\tif (btn !== null) btn.isSuccess();\n\n\t\t\t\tthis.continueComplete();\n\t\t\t},\n\t\t\t(nok) => {\n\t\t\t\tif (btn !== null) btn.isError();\n\t\t\t},\n\t\t);\n\t}\n\n\tcontinueComplete() {\n\t\tconst nextPage = this.nextPage();\n\t\tif (nextPage !== null) {\n\t\t\tthis.activePage = nextPage;\n\t\t} else {\n\t\t\tif (this.respondantId === null) {\n\t\t\t\tthis.emitOutcome('completed');\n\t\t\t} else {\n\t\t\t\tthis.setCompletion();\n\t\t\t}\n\t\t}\n\t}\n\n\tsetCompletion() {\n\t\tif (this.respondantId !== null)\n\t\t\tthis._dynamicFormService.setCompletion(this.respondantId).subscribe(\n\t\t\t\t(response) => {\n\t\t\t\t\tthis.emitOutcome('completed');\n\t\t\t\t},\n\t\t\t\t(error) => {},\n\t\t\t);\n\t}\n\n\tback() {\n\t\tif (this.formMeta.flatPageIndex === 0) return;\n\n\t\tthis.scrollToStartOfPage();\n\t\tthis.activePage = this.prevPage();\n\t\tthis.formMeta.flatPageIndex--;\n\t}\n\n\tgetAnswersFromQuestions(questions: QuestionApiModel[]) {\n\t\tconst answers = questions.map((x) => {\n\t\t\tx.Answer.Choices =\n\t\t\t\tx.Type === 'MultiChoice' || x.Type === 'SingleChoiceRadio' || x.Type === 'SingleChoiceSelect' ? x.Answer.Choices : null;\n\n\t\t\treturn x.Answer;\n\t\t});\n\n\t\tthis.answers.push(...answers);\n\n\t\treturn this.answers;\n\t}\n\n\t/**\n\t *\n\t */\n\tsubmitPageAnswers(questions: QuestionApiModel[], page: PageApiModel): Observable<boolean> {\n\t\treturn Observable.create((observer) => {\n\t\t\tconst allAnswers = this.getAnswersFromQuestions(questions);\n\t\t\tallAnswers.forEach((answer) => {\n\t\t\t\tif (answer.StringValue) {\n\t\t\t\t\tanswer.StringValue = this.helper.html.stripHtml(answer.StringValue);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tif (this.emitAnswers) {\n\t\t\t\tconst formAnswers = {\n\t\t\t\t\t[this.form.Id]: allAnswers.map((answer) => {\n\t\t\t\t\t\tconst p = new BasketFormAnswer();\n\t\t\t\t\t\tp.BoolAnswer = answer.BoolValue;\n\t\t\t\t\t\tp.IntValue = answer.IntValue;\n\t\t\t\t\t\tp.MultiAnswer = answer.Choices;\n\t\t\t\t\t\tp.QuestionId = answer.QuestionId;\n\t\t\t\t\t\tp.TextAnswer = answer.StringValue;\n\n\t\t\t\t\t\treturn p;\n\t\t\t\t\t}),\n\t\t\t\t};\n\n\t\t\t\tthis.onNextPage.emit(formAnswers);\n\t\t\t\tobserver.next();\n\t\t\t\tobserver.complete();\n\t\t\t} else if (this.respondantId === null) {\n\t\t\t\t// Cache answers\n\t\t\t\tobserver.next();\n\t\t\t\tobserver.complete();\n\t\t\t} else {\n\t\t\t\tthis._dynamicFormService.answer(this.respondantId, allAnswers).subscribe(\n\t\t\t\t\t(response) => {\n\t\t\t\t\t\tobserver.next(response);\n\t\t\t\t\t},\n\t\t\t\t\t(error) => observer.error(error),\n\t\t\t\t\t() => observer.complete(),\n\t\t\t\t);\n\t\t\t}\n\t\t});\n\t}\n\n\tsetActivePage() {\n\t\tthis.activePage = this.form.PageGroups[0].Pages[0];\n\t}\n\n\t/**\n\t * Get next availible page\n\t */\n\tnextPage(): PageApiModel {\n\t\tconst fm = this.formMeta;\n\t\tconst nav = { g: fm.currPageGroup, p: fm.currPage + 1 };\n\t\tlet firstIt = true;\n\n\t\tfor (let i = nav.g; i < this.form.PageGroups.length; i++) {\n\t\t\tconst pageGroup = this.form.PageGroups[i];\n\t\t\tif (!firstIt) nav.p = 0;\n\t\t\tfirstIt = false;\n\n\t\t\tfor (let j = nav.p; j < pageGroup.Pages.length; j++) {\n\t\t\t\tconst page = pageGroup.Pages[j];\n\t\t\t\tfm.currPageGroup = i;\n\t\t\t\tfm.currPage = j;\n\t\t\t\tthis.formMeta.flatPageIndex++;\n\n\t\t\t\treturn page;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tprevPage(): PageApiModel {\n\t\tconst fm = this.formMeta;\n\t\t//Todo: Has no constrint check\n\t\tfm.currPage--;\n\n\t\tif (fm.currPage < 0 && fm.currPageGroup > 0) {\n\t\t\tfm.currPageGroup--;\n\t\t\tfm.currPage = this.form.PageGroups[fm.currPageGroup].Pages.length - 1;\n\t\t}\n\n\t\treturn this.form.PageGroups[fm.currPageGroup].Pages[fm.currPage];\n\t}\n\n\t/**\n\t * Check if form has a static last page. A page that will always be shown.\n\t * Return: That page\n\t */\n\tgetStaticLastPage(): PageApiModel {\n\t\tconst group = this.form.PageGroups[this.form.PageGroups.length - 1];\n\n\t\treturn group.Pages[group.Pages.length - 1];\n\t}\n\n\t/**\n\t * Check if a page validates\n\t */\n\tpageIsValid(page: PageApiModel): boolean {\n\t\tlet result = true;\n\t\tpage.Questions.forEach((q) => {\n\t\t\tresult = result && q.Answer.Valid();\n\t\t});\n\n\t\treturn result;\n\t}\n\n\temitOutcome(outcome: DynamicFormOutcome) {\n\t\tthis.onComplete.emit(outcome);\n\t}\n}\n\ninterface FormMeta {\n\tcurrPageGroup: number;\n\tcurrPage: number;\n\ttotalPages: number;\n\tflatPageIndex: number;\n\tisRequired: boolean;\n\n\tstaticLastPage?: PageApiModel;\n\tformHasConstraints?: boolean;\n}\n","import { Component, Input } from '@angular/core';\nimport { UntypedFormControl, Validators } from '@angular/forms';\nimport { DynamicFormAnswer } from './DynamicFormAnswer';\nimport { QuestionApiModel } from '@public/src/api/generated/models';\n\n@Component({\n\tstandalone: false,\n\tselector: 'dfq-yesno',\n\ttemplate: /*language=html*/ `\n\t\t<h3>\n\t\t\t<span>{{ data.questionNumber }}</span> {{ data.Header }} <span class=\"required\" *ngIf=\"data.Required\">*</span>\n\t\t</h3>\n\t\t<div class=\"row input\">\n\t\t\t<visiba-input\n\t\t\t\ttype=\"radio\"\n\t\t\t\t[formControl]=\"formControl\"\n\t\t\t\t[(ngModel)]=\"value\"\n\t\t\t\t(onChange)=\"valueChange()\"\n\t\t\t\t[options]=\"[\n\t\t\t\t\t{ value: true, label: data.TrueLabel },\n\t\t\t\t\t{ value: false, label: data.FalseLabel },\n\t\t\t\t]\"\n\t\t\t\t[readonly]=\"readonly\"\n\t\t\t></visiba-input>\n\t\t</div>\n\t`,\n})\nexport class DfqYesNoComponent {\n\t@Input() formId: number = null;\n\t@Input() data: any = null;\n\t@Input() readonly = false;\n\tvalue: any = null;\n\n\tformControl: UntypedFormControl = null;\n\n\tconstructor() {}\n\n\tngOnInit() {\n\t\tif (typeof this.data.Answer === 'undefined' || this.data.Answer === null)\n\t\t\t(this.data as any).Answer = new DynamicFormAnswer(null, this.data.Id, this.valid);\n\t\telse {\n\t\t\t(this.data.Answer as any).Valid = this.valid;\n\t\t\tthis.value = this.data.Answer.BoolValue;\n\t\t}\n\n\t\tconst validators = [];\n\t\tif (this.data.Required) validators.push(Validators.required);\n\n\t\tthis.formControl = new UntypedFormControl(null, validators);\n\t}\n\n\tvalueChange = () => {\n\t\tthis.data.Answer.BoolValue = this.value;\n\t};\n\n\tvalid = (): boolean => {\n\t\treturn !this.data.Required || this.data.Answer.BoolValue != null;\n\t};\n}\n","import { ElementRef, HostListener, Directive } from '@angular/core';\n\n@Directive({ standalone: false, selector: 'textarea[autosize]', exportAs: 'autosizedirective' })\nexport class Autosize {\n\t@HostListener('input', ['$event.target'])\n\tonInput(textArea: HTMLTextAreaElement): void {\n\t\tthis.adjust();\n\t}\n\n\tconstructor(public element: ElementRef) {}\n\n\tngOnInit(): void {\n\t\tthis.adjust();\n\t}\n\n\tadjust(): void {\n\t\tlet el = this.element.nativeElement;\n\n\t\tlet orgHeight = el.style.height;\n\n\t\tel.style.overflow = 'hidden';\n\t\tel.style.height = '';\n\n\t\tlet borderCorrection = el.offsetHeight - el.clientHeight;\n\t\tlet newHeight = el.scrollHeight + borderCorrection;\n\n\t\tif (newHeight === 0) newHeight = orgHeight;\n\n\t\tel.style.height = newHeight + 'px';\n\t}\n}\n","import { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport {\n\tComponent,\n\tOutput,\n\tInput,\n\tEventEmitter,\n\tElementRef,\n\tDirective,\n\tProvider,\n\tforwardRef,\n\tInjector,\n\tViewChild,\n\tEnvironmentInjector,\n\tSelf,\n\tinject,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, UntypedFormControl, NgControl } from '@angular/forms';\nimport { GlobalValidator } from '../Classes/globalValidator';\nimport { Autosize } from './autosize.directive';\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-input',\n\ttemplate: `\n\t\t<div\n\t\t\t[ngSwitch]=\"type\"\n\t\t\t[ngStyle]=\"{ 'border-color': wallColor }\"\n\t\t\tclass=\"wallInput\"\n\t\t\t[class.wallStyling]=\"type != 'checkbox' && type != 'radio'\"\n\t\t\t[class.hasIcon]=\"icon != null\"\n\t\t>\n\t\t\t<ng-template ngSwitchCase=\"radio\">\n\t\t\t\t<div class=\"radioWrap row\" *ngFor=\"let o of options\">\n\t\t\t\t\t<input\n\t\t\t\t\t\t[tabindex]=\"tabInd\"\n\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t[(ngModel)]=\"localModel\"\n\t\t\t\t\t\t[readonly]=\"readonly\"\n\t\t\t\t\t\t[disabled]=\"readonly\"\n\t\t\t\t\t\t[name]=\"rndIdentifier\"\n\t\t\t\t\t\t[value]=\"o[value]\"\n\t\t\t\t\t\t[id]=\"'radio_' + rndIdentifier + o[value]\"\n\t\t\t\t\t\t(change)=\"validateAndEmitValue()\"\n\t\t\t\t\t/>\n\t\t\t\t\t<label [attr.for]=\"'radio_' + rndIdentifier + o[value]\">\n\t\t\t\t\t\t<visiba-svg a=\"Radio\"></visiba-svg>\n\t\t\t\t\t\t<visiba-svg a=\"RadioChecked\"></visiba-svg>\n\t\t\t\t\t\t<visiba-svg class=\"icon\" *ngIf=\"icon != null\" [a]=\"icon\"></visiba-svg>\n\t\t\t\t\t\t<img *ngIf=\"labelIcon !== null\" [src]=\"o[labelIcon]\" class=\"labelIcon\" />\n\t\t\t\t\t\t<span [innerHTML]=\"o[label]\"></span>\n\t\t\t\t\t</label>\n\t\t\t\t</div>\n\t\t\t</ng-template>\n\t\t\t<ng-template ngSwitchCase=\"checkbox\">\n\t\t\t\t<div class=\"checkboxWrap\">\n\t\t\t\t\t<input\n\t\t\t\t\t\t[tabindex]=\"tabInd\"\n\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t[readonly]=\"readonly\"\n\t\t\t\t\t\t[disabled]=\"readonly\"\n\t\t\t\t\t\t[id]=\"'check_' + rndIdentifier\"\n\t\t\t\t\t\t[(ngModel)]=\"localModel\"\n\t\t\t\t\t\t(ngModelChange)=\"validateAndEmitValue()\"\n\t\t\t\t\t/>\n\t\t\t\t\t<label [for]=\"'check_' + rndIdentifier\">\n\t\t\t\t\t\t<visiba-svg a=\"Checkbox\"></visiba-svg>\n\t\t\t\t\t\t<visiba-svg a=\"CheckboxChecked\"></visiba-svg>\n\t\t\t\t\t\t<visiba-svg class=\"icon\" *ngIf=\"icon != null\" [a]=\"icon\"></visiba-svg>\n\t\t\t\t\t\t<span [innerHTML]=\"localPlaceholder\"></span>\n\t\t\t\t\t</label>\n\t\t\t\t</div>\n\t\t\t</ng-template>\n\t\t\t<ng-template ngSwitchCase=\"textarea\">\n\t\t\t\t<textarea\n\t\t\t\t\t[tabindex]=\"tabInd\"\n\t\t\t\t\t(blur)=\"onBlurEvent()\"\n\t\t\t\t\t[(ngModel)]=\"localModel\"\n\t\t\t\t\t#autosizeDirective=\"autosizedirective\"\n\t\t\t\t\tautosize\n\t\t\t\t\t[readonly]=\"readonly\"\n\t\t\t\t\t[placeholder]=\"localPlaceholder\"\n\t\t\t\t\t(ngModelChange)=\"validateAndEmitValue()\"\n\t\t\t\t></textarea>\n\t\t\t</ng-template>\n\t\t\t<ng-template ngSwitchDefault>\n\t\t\t\t<input\n\t\t\t\t\t[tabindex]=\"tabInd\"\n\t\t\t\t\t(blur)=\"onBlurEvent()\"\n\t\t\t\t\t[attr.autofocus]=\"autofocus ? '' : null\"\n\t\t\t\t\t[(ngModel)]=\"localModel\"\n\t\t\t\t\t[ngStyle]=\"{ color: wallColor }\"\n\t\t\t\t\ttype=\"{{ type }}\"\n\t\t\t\t\t[readonly]=\"readonly\"\n\t\t\t\t\t[placeholder]=\"localPlaceholder\"\n\t\t\t\t\t(ngModelChange)=\"validateAndEmitValue()\"\n\t\t\t\t\t[class.svg]=\"icon != null && icon != ''\"\n\t\t\t\t/>\n\t\t\t</ng-template>\n\t\t\t<ng-template [ngIf]=\"type != 'checkbox' && type != 'radio'\">\n\t\t\t\t<visiba-svg *ngIf=\"icon != null\" class=\"iconSvg\" [color]=\"wallColor\" [a]=\"icon\"></visiba-svg>\n\t\t\t\t<label class=\"ellipsis\" [class.value]=\"localModel != null && localModel != ''\" [class.svg]=\"icon != null\">{{\n\t\t\t\t\tlocalPlaceholder\n\t\t\t\t}}</label>\n\t\t\t</ng-template>\n\t\t\t<span *ngIf=\"currentError != null\" class=\"error\" [class.value]=\"localModel != null && localModel != ''\">{{ currentError }}</span>\n\t\t</div>\n\t`,\n\thost: {\n\t\t'[class.readonly]': 'readonly',\n\t},\n})\nexport class VisibaInputComponent implements ControlValueAccessor {\n\t@Input() tabInd: number = 0;\n\t@Input() icon: string = null;\n\t@Input() wallColor: string = null;\n\t@Input() type: string = null;\n\t@Input() placeholder: string = null;\n\t@Input() staticplaceholder: string = null;\n\t@Input() readonly: boolean = false;\n\t@Input() autofocus: boolean = false;\n\t@Input() errorMessages: { [name: string]: string } | string = 'default';\n\n\t@Input('modelValue') localModel: any = null;\n\n\t// Colorpicker\n\t@Input() cpPosition: string = null;\n\t@Input() cpOutputFormat: string = null;\n\n\t// Select / Radio\n\t@Input() label: string = 'label';\n\t@Input() labelIcon: string = null;\n\t@Input() value: string = 'value';\n\t@Input() options: Array<any> = [];\n\n\t// Textarea\n\t@ViewChild('autosizeDirective', { static: false }) autosizeDirective: Autosize = null;\n\n\t@Output() onChange = new EventEmitter();\n\t@Output() onBlur = new EventEmitter();\n\n\tcurrentError: string = null;\n\tlocalPlaceholder: string = '';\n\trndIdentifier: string = Math.floor((1 + Math.random()) * 0x1000000).toString(16);\n\n\tconstructor(\n\t\tpublic elem: ElementRef,\n\t\t@Self() public controlDir: NgControl,\n\t\tprivate translateService: TranslateService,\n\t) {\n\t\tcontrolDir.valueAccessor = this;\n\t}\n\n\t/**\n\t *\n\t */\n\twriteValue(value: any) {\n\t\tthis.localModel = value;\n\n\t\tif (this.type !== 'radio' && !isNaN(parseFloat(value)) && isFinite(value)) {\n\t\t\tthis.localModel = value.toString();\n\t\t}\n\n\t\twindow.setTimeout(() => {\n\t\t\tthis.currentError = GlobalValidator.validateFormControl(\n\t\t\t\tthis.translateService,\n\t\t\t\tthis.controlDir.control as UntypedFormControl,\n\t\t\t\tthis.errorMessages,\n\t\t\t);\n\t\t\tif (typeof this.autosizeDirective !== 'undefined' && this.autosizeDirective !== null) {\n\t\t\t\tthis.autosizeDirective.adjust();\n\t\t\t}\n\t\t});\n\t}\n\n\t//Call to push value\n\tpropagateChange = (_: any) => {};\n\n\tregisterOnChange(fn) {\n\t\tthis.propagateChange = fn;\n\t}\n\n\tregisterOnTouch() {}\n\tregisterOnTouched() {}\n\n\t/**\n\t *\n\t */\n\n\tngOnInit() {\n\t\tif (this.placeholder !== null) {\n\t\t\tthis.localPlaceholder = this.translateService.get(this.placeholder) + (this.elem.nativeElement.required ? ' *' : '');\n\t\t} else if (this.staticplaceholder != null) this.localPlaceholder = this.staticplaceholder;\n\t}\n\n\tvalidateAndEmitValue() {\n\t\tif (this.localModel === '') this.localModel = null;\n\n\t\tthis.propagateChange(this.localModel);\n\t\tthis.currentError = GlobalValidator.validateFormControl(\n\t\t\tthis.translateService,\n\t\t\tthis.controlDir.control as UntypedFormControl,\n\t\t\tthis.errorMessages,\n\t\t);\n\t\tif (typeof this.onChange !== 'undefined') {\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tthis.onChange.emit(this.localModel);\n\t\t\t}, 10);\n\t\t}\n\t}\n\n\tonBlurEvent() {\n\t\tif (typeof this.onBlur !== 'undefined') this.onBlur.emit(this.localModel);\n\t}\n}\n","import { DynamicFormOutcome } from './DynamicForm/DynamicFormOutcome';\nimport { Component, Input, NgZone, ViewChild, ViewChildren, ElementRef, ViewEncapsulation, Output, EventEmitter } from '@angular/core';\nimport { MessagingInjectable } from '../Injectables/messaging.injectable';\nimport { Messaging } from '../Injectables/Models/Messaging/messaging.models';\nimport { SpaContext } from '../Classes/spacontext';\nimport { DynamicFormData } from './DynamicForm/DynamicFormData';\nimport { UserFilesService } from '../Services/api/v2/userfiles.service';\nimport { MessagingConversationApiModel } from '../Services/api/v2/Models/MessagingConversationApiModel';\nimport { DynamicFormServiceV2 } from '../Services/api/v2/Units/dynamic-form.service';\nimport { MessagingServiceV2 } from '../Services/api/v2/messaging.service';\nimport { VisibaInputComponent } from '../Common/Directives/visibaInput';\nimport { Subscription } from 'rxjs';\nimport { SpaLogger } from '../Common/Classes/Global/spalogger.class';\nimport { ResponseStatus } from '../Services/Models/Appointment/ResponseStatus';\nimport { Helper } from '../Common/Helpers/helper';\n// import { MatomoTracker } from 'ngx-matomo';\nimport { AuthContextService } from '../Services/authContext.service';\n\n@Component({\n\tstandalone: false,\n\tselector: 'messaging',\n\ttemplateUrl: '../ComponentHtml/Messaging.html',\n\tstyleUrls: ['../Css/Components/Messaging.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class MessagingComponent {\n\tcase: MessagingConversationApiModel = null;\n\t_caseId: number = null;\n\t@Input() set caseId(value: number) {\n\t\tif (typeof value === 'string') {\n\t\t\tvalue = Number(value);\n\t\t}\n\t\tthis._caseId = value;\n\t\tthis.selectCase(this._caseId);\n\t}\n\tget caseId(): number {\n\t\treturn this._caseId;\n\t}\n\t@ViewChild('messageArea', { static: false }) messageArea: ElementRef;\n\t@ViewChildren('messageList') messageList;\n\t@ViewChild('inputfield', { static: false }) inputfield: VisibaInputComponent;\n\t@Output()\n\tpublic formCompleted = new EventEmitter<number>();\n\n\tinputFieldHasFocus: boolean;\n\thasConnectionProblem: boolean = false;\n\tmessageText: string;\n\tmessages: Messaging.MessageSocketModel[] = [];\n\tuploadingMessages: Messaging.MessageSocketModel[] = [];\n\tactiveForm: { alias: any; formData: DynamicFormData } = null;\n\tfileUploadError: string = null;\n\tpublic isDisabled = false;\n\timageViewer: any = null;\n\tshowDrop: boolean = false;\n\tisScrolledToBottom: boolean = true;\n\tprivate lastReadUntilTimestamp = null;\n\tprivate onMessagesSubscription: Subscription;\n\tprivate onGetMessagesSubscription: Subscription;\n\tprivate onHasReadUntilSubscription: Subscription;\n\tprivate onCaseClosedSubscription: Subscription;\n\tprivate onCaseAllowClientSubscription: Subscription;\n\n\tconstructor(\n\t\tprivate spaLogger: SpaLogger,\n\t\tprivate _messagingInjectable: MessagingInjectable,\n\t\tprivate messagingService: MessagingServiceV2,\n\t\tprivate _dynamicFormService: DynamicFormServiceV2,\n\t\tprivate _userFilesService: UserFilesService,\n\t\tprivate _spaContext: SpaContext,\n\t\tprivate _ngZone: NgZone,\n\t\t// private matomoTracker: MatomoTracker,\n\t\tprivate helper: Helper,\n\t\tprivate authContextService: AuthContextService,\n\t) {}\n\n\tngOnInit() {\n\t\tthis.initMessageEvents();\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.initTextAreaFocusChecker();\n\n\t\tthis.messageList.changes.subscribe(() => {\n\t\t\tthis.scrollToBottom();\n\t\t});\n\t}\n\n\tngOnDestroy() {\n\t\tthis.clearUnreadMessagedAtConversationLeave(this.case);\n\n\t\tthis.caseId = null;\n\t\tthis.clearMessageEvents();\n\t}\n\n\tclearUnreadMessagedAtConversationLeave(p_case: MessagingConversationApiModel) {\n\t\tif (this.isScrolledToBottom) {\n\t\t\tthis.setReadUntilLastMessageTimestamp();\n\t\t}\n\t}\n\n\tonScroll(event: any) {\n\t\tconst clientScroll = this.messageArea.nativeElement.scrollTop + this.messageArea.nativeElement.clientHeight;\n\t\tconst windowScroll = this.messageArea.nativeElement.scrollHeight;\n\t\tthis.isScrolledToBottom = clientScroll + 35 >= windowScroll;\n\t}\n\n\tprivate clearMessageEvents() {\n\t\tthis.onMessagesSubscription.unsubscribe();\n\t\tthis.onGetMessagesSubscription.unsubscribe();\n\t\tthis.onHasReadUntilSubscription.unsubscribe();\n\t\tthis.onCaseClosedSubscription.unsubscribe();\n\t\tthis.onCaseAllowClientSubscription.unsubscribe();\n\t}\n\n\tprivate setReadUntilLastMessageTimestamp() {\n\t\tif (this.case == null) return;\n\t\tif (!this.case['LastMessageTimestamp']) return;\n\t\tthis.case['LastMessageTimestamp'] = new Date(new Date(this.case['LastMessageTimestamp']).getTime() + 20);\n\t\tthis._messagingInjectable.setReadUntil(this.case.Id, this.case['LastMessageTimestamp']);\n\t}\n\n\tprivate initMessageEvents() {\n\t\tthis.onMessagesSubscription = this._messagingInjectable.onMessages.subscribe((caseMessages: Messaging.CaseMessagesSocketModel) => {\n\t\t\tif (caseMessages.caseId === this.caseId) {\n\t\t\t\tlet lastReceivedMessageWasRead: boolean =\n\t\t\t\t\tnew Date(this.case.HasReadUntilTimestamp).valueOf() >= new Date(this.messages[this.messages.length - 1].timestamp).valueOf();\n\n\t\t\t\tthis.setMessages(caseMessages.data, true);\n\t\t\t\tthis.case['LastMessageTimestamp'] = caseMessages.data[caseMessages.data.length - 1].timestamp;\n\n\t\t\t\tlet lastMessage: Messaging.MessageSocketModel = caseMessages.data[caseMessages.data.length - 1];\n\t\t\t\tthis.lastReadUntilTimestamp = lastMessage.timestamp;\n\t\t\t\tif (lastMessage.sender?.isMe === false) {\n\t\t\t\t\t//Messages sent by me automaticly sets readUntil value, so there is no need to set read until timestamp if the sender is me.\n\t\t\t\t\tif (this.isScrolledToBottom) {\n\t\t\t\t\t\tthis.clearUnreadClasses();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthis.clearUnreadClasses();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis.onGetMessagesSubscription = this._messagingInjectable.onGetMessages.subscribe(\n\t\t\t(caseMessages: Messaging.CaseMessagesSocketModel) => {\n\t\t\t\tif (caseMessages === null) {\n\t\t\t\t\tlet message: Messaging.MessageSocketModel = {\n\t\t\t\t\t\tid: null,\n\t\t\t\t\t\tsender: {\n\t\t\t\t\t\t\tid: this.case.Id,\n\t\t\t\t\t\t\tisMe: false,\n\t\t\t\t\t\t\tname: this.authContextService.patientIdentity.CommonName,\n\t\t\t\t\t\t\tprofileImageUrl: null,\n\t\t\t\t\t\t\ttitle: null,\n\t\t\t\t\t\t},\n\t\t\t\t\t\ttext: '',\n\t\t\t\t\t\ttextFormat: null,\n\t\t\t\t\t\ttimestamp: new Date(),\n\t\t\t\t\t\tfiles: [],\n\t\t\t\t\t\tresponseStatuses: [],\n\t\t\t\t\t\tisSystemMessage: false,\n\t\t\t\t\t\tredRobinSessionId: null,\n\t\t\t\t\t};\n\t\t\t\t\tthis.messages = [message];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (caseMessages.caseId === this.caseId) {\n\t\t\t\t\tthis.setMessages(caseMessages.data);\n\t\t\t\t\tthis.case['LastMessageTimestamp'] = caseMessages.data[caseMessages.data.length - 1].timestamp;\n\t\t\t\t\tthis.scrollToBottom();\n\t\t\t\t}\n\t\t\t},\n\t\t);\n\t\tthis.onHasReadUntilSubscription = this._messagingInjectable.onHasReadUntil.subscribe(\n\t\t\t(readUntil: Messaging.HasReadUntilSocketModel) => {\n\t\t\t\tif (readUntil.caseId === this.caseId) {\n\t\t\t\t\tthis.case.HasReadUntilTimestamp = readUntil.data.timestamp;\n\t\t\t\t}\n\t\t\t},\n\t\t);\n\t\tthis.onCaseAllowClientSubscription = this._messagingInjectable.onAllowClient.subscribe(\n\t\t\t({ caseId, data }: Messaging.AllowClientResponseChangedModel) => {\n\t\t\t\tif (this.caseId === caseId) {\n\t\t\t\t\tthis.isDisabled = !data.allowClientResponse;\n\t\t\t\t}\n\t\t\t},\n\t\t);\n\n\t\tthis.onCaseClosedSubscription = this._messagingInjectable.onCaseClosed.subscribe((caseId: number) => {\n\t\t\tif (caseId === this.caseId) {\n\t\t\t\tthis.case.CompletedTimestamp = new Date().toUTCString();\n\t\t\t}\n\t\t});\n\t}\n\n\tallMessages() {\n\t\treturn this.messages.concat(this.uploadingMessages);\n\t}\n\n\tprivate setMessages(messages: Array<Messaging.MessageSocketModel>, append: boolean = false) {\n\t\tmessages.forEach((message) => {\n\t\t\tmessage.text = this.helper.html.stripHtml(message.text);\n\t\t\tmessage.files.forEach((file) => (file.sizeFormatted = this.helper.file.stringFromBytes(file.length)));\n\t\t});\n\n\t\tif (!append) this.messages = messages;\n\t\telse {\n\t\t\tfor (let i in messages) {\n\t\t\t\tthis.messages.push(messages[i]);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate initTextAreaFocusChecker() {\n\t\tif (!this.inputfield) return;\n\n\t\tlet textArea = this.inputfield.elem.nativeElement.getElementsByTagName('textarea')[0];\n\n\t\ttextArea.onfocus = () => {\n\t\t\tthis.inputFieldHasFocus = true;\n\t\t};\n\t\ttextArea.onblur = () => {\n\t\t\tthis.inputFieldHasFocus = false;\n\t\t};\n\t}\n\n\tprivate selectCase(caseId: number) {\n\t\tif (this.case !== null && caseId !== null) {\n\t\t\tthis.clearUnreadMessagedAtConversationLeave(this.case);\n\t\t}\n\t\tthis.uploadingMessages = [];\n\t\tthis.messages = [];\n\t\tthis.activeForm = null;\n\t\tthis.isDisabled = false;\n\n\t\tif (this.caseId === null) return;\n\n\t\tthis.messagingService.get(this.caseId).subscribe((response) => {\n\t\t\tthis.case = response.data;\n\t\t\tthis.isDisabled = !response.data.AllowClientResponse;\n\n\t\t\tthis._messagingInjectable.getMessages(this.caseId);\n\n\t\t\tfor (let i in this.case.Forms) {\n\t\t\t\tlet respondent = this.case.Forms[i];\n\t\t\t\tif (typeof respondent['Header'] === 'undefined') {\n\t\t\t\t\tthis._dynamicFormService.get(respondent.FormId).subscribe(\n\t\t\t\t\t\t(response) => {\n\t\t\t\t\t\t\trespondent['Header'] = response.data.Header;\n\t\t\t\t\t\t},\n\t\t\t\t\t\t(_) => {},\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic sendMessage(ev: KeyboardEvent = null, files: Array<Guid> = []) {\n\t\tif (this.isDisabled) return;\n\n\t\tif (ev !== null) ev.preventDefault();\n\t\tif (files.length > 0) {\n\t\t\tthis._messagingInjectable.sendMessage(this.caseId, '', files);\n\t\t} else if (this.messageText !== '' && this.messageText !== null) {\n\t\t\tthis._messagingInjectable.sendMessage(this.caseId, this.helper.html.stripHtml(this.messageText), files);\n\t\t\tthis.messageText = '';\n\t\t}\n\t}\n\n\tpublic getSecondsToEarlier(index: number) {\n\t\tif (index === 0) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn (\n\t\t\t(new Date(this.allMessages()[index].timestamp).valueOf() - new Date(this.allMessages()[index - 1].timestamp).valueOf()) * 0.001\n\t\t);\n\t}\n\n\tpublic scrollToBottom() {\n\t\tif (this.messageArea && this.isScrolledToBottom) {\n\t\t\tthis.messageArea.nativeElement.scrollTop = this.messageArea.nativeElement.scrollHeight;\n\t\t\tthis.setReadUntilLastMessageTimestamp();\n\t\t}\n\t}\n\n\tpublic trackByMessageId(index: number, message: Messaging.MessageSocketModel): number {\n\t\treturn message.id;\n\t}\n\n\tpublic clearUnreadClasses() {\n\t\tfor (let i = this.messages.length - 1; i >= 0; i--) {\n\t\t\tif (new Date(this.messages[i].timestamp).valueOf() < new Date(this.lastReadUntilTimestamp).valueOf()) {\n\t\t\t\tthis.lastReadUntilTimestamp = this.case.HasReadUntilTimestamp;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.messages[i]['setRead'] = true;\n\t\t}\n\t\tthis.lastReadUntilTimestamp = this.case.HasReadUntilTimestamp;\n\t}\n\n\tpublic compareReadUntilAndMessageTime(readUntilTime: string, messageTime: string) {\n\t\treturn new Date(readUntilTime) < new Date(messageTime);\n\t}\n\n\tshowMessagingForm(form: Messaging.ResponseStatus) {\n\t\tthis.activeForm = {\n\t\t\talias: form.formAlias,\n\t\t\tformData: { RespondantId: form.respondantId, Abortable: true },\n\t\t};\n\t}\n\n\tshowForm(form: ResponseStatus) {\n\t\tthis.activeForm = {\n\t\t\talias: form.FormAlias,\n\t\t\tformData: { RespondantId: form.RespondantId, Abortable: true },\n\t\t};\n\t}\n\n\tformFinished = (outcome: DynamicFormOutcome) => {\n\t\tconst findForm = (): void => {\n\t\t\tlet responseStatus: Messaging.ResponseStatus;\n\n\t\t\tthis.messages.find((message) => {\n\t\t\t\tconst statuses = message.responseStatuses.find((responseStatus) => responseStatus.formAlias === this.activeForm.alias);\n\n\t\t\t\tif (statuses) {\n\t\t\t\t\tresponseStatus = statuses;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t});\n\n\t\t\tif (responseStatus) {\n\t\t\t\tresponseStatus.completed = true;\n\t\t\t}\n\n\t\t\tconst caseForm = this.case.Forms?.find((form) => form.FormId === this.activeForm.alias);\n\n\t\t\tif (caseForm) {\n\t\t\t\tcaseForm.Completed = true;\n\t\t\t}\n\t\t};\n\n\t\tif (outcome === 'skipped' || outcome === 'completed') {\n\t\t\tfindForm();\n\t\t}\n\n\t\tthis._messagingInjectable.onCompletedForm.emit(this.caseId);\n\n\t\tthis.formCompleted.emit(this.caseId);\n\n\t\tthis.activeForm = null;\n\t};\n\n\tpublic trackClickedUpload() {\n\t\t// this.matomoTracker.trackEvent('Uploads conversation', `Dialog opened`);\n\t}\n\n\tupload(event: any) {\n\t\tlet files = typeof event.dataTransfer === 'undefined' ? event.target.files : event.dataTransfer.files;\n\n\t\tfor (let i = 0; i < files.length; i++) {\n\t\t\tthis._userFilesService.getFileIdentifier(files[i].name, files[i].size, files[i].type).subscribe((response) => {\n\t\t\t\tconst fileId = response.data.Id;\n\t\t\t\tconst uploadMessage: Messaging.MessageSocketModel = {\n\t\t\t\t\tid: 0,\n\t\t\t\t\tsender: {\n\t\t\t\t\t\tid: this.case.Id,\n\t\t\t\t\t\tisMe: true,\n\t\t\t\t\t\tname: this.authContextService.patientIdentity.CommonName,\n\t\t\t\t\t\tprofileImageUrl: null,\n\t\t\t\t\t\ttitle: null,\n\t\t\t\t\t},\n\t\t\t\t\ttext: '',\n\t\t\t\t\ttextFormat: '',\n\t\t\t\t\ttimestamp: new Date(),\n\t\t\t\t\tfiles: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\turl: '',\n\t\t\t\t\t\t\tfileName: files[i].name,\n\t\t\t\t\t\t\tlength: files[i].size,\n\t\t\t\t\t\t\ttype: 'uploading',\n\t\t\t\t\t\t\tsizeFormatted: this.helper.file.stringFromBytes(files[i].size),\n\t\t\t\t\t\t\tfailed: false,\n\t\t\t\t\t\t\tprogress: 0,\n\t\t\t\t\t\t\tid: fileId,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\tresponseStatuses: [],\n\t\t\t\t\tisSystemMessage: false,\n\t\t\t\t\tredRobinSessionId: null,\n\t\t\t\t};\n\t\t\t\tthis.uploadingMessages.push(uploadMessage);\n\t\t\t\twindow.setTimeout(() => {\n\t\t\t\t\tthis.scrollToBottom();\n\t\t\t\t});\n\n\t\t\t\t// Check file size 100mb\n\t\t\t\tif (files[i].size > 100 * 1000 * 1024) {\n\t\t\t\t\tuploadMessage.files[0].failed = true;\n\t\t\t\t\twindow.setTimeout(() => {\n\t\t\t\t\t\tthis.uploadingMessages = this.uploadingMessages.filter((message) => message.files[0].id !== fileId);\n\t\t\t\t\t}, 5000);\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis._userFilesService.uploadFiles(response.data.UploadUrl, [files[i]], true).subscribe(\n\t\t\t\t\t(response) => {\n\t\t\t\t\t\tif (typeof response === 'number') {\n\t\t\t\t\t\t\tthis._ngZone.run(() => {\n\t\t\t\t\t\t\t\tuploadMessage.files[0].progress = response;\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.uploadingMessages = this.uploadingMessages.filter((message) => message.files[0].id !== fileId);\n\t\t\t\t\t\t\tthis.sendMessage(null, [fileId]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// this.matomoTracker.trackEvent('Uploads conversation', 'Upload completed');\n\t\t\t\t\t},\n\t\t\t\t\t(error) => {\n\t\t\t\t\t\tuploadMessage.files[0].failed = true;\n\t\t\t\t\t\twindow.setTimeout(() => {\n\t\t\t\t\t\t\tthis.uploadingMessages = this.uploadingMessages.filter((message) => message.files[0].id !== fileId);\n\t\t\t\t\t\t}, 5000);\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t});\n\t\t}\n\n\t\tthis.showDrop = false;\n\n\t\treturn false;\n\t}\n\n\tviewImages(startImageUrl) {\n\t\tlet imageFiles = this.messages\n\t\t\t.map((message) => message.files)\n\t\t\t.reduce((a, b) => {\n\t\t\t\treturn a.concat(b);\n\t\t\t}, []);\n\n\t\tlet viewImagesStart = 0;\n\t\tlet images = imageFiles.map((item, index) => {\n\t\t\tif (item.url === startImageUrl) viewImagesStart = index;\n\n\t\t\treturn { uploader: null, viewUrl: item.url, downloadUrl: item.url, fileName: item.fileName, type: item.type };\n\t\t});\n\n\t\t// const fileType = images[viewImagesStart].type.toLowerCase().indexOf('image') > -1 ? 'image' : 'file';\n\t\t// this.matomoTracker.trackEvent('Uploads conversation', `Show ${fileType} clicked`);\n\t\tthis.imageViewer = { images: images, startIndex: viewImagesStart };\n\t}\n}\n","import { ErrorHandler, Injectable } from '@angular/core';\nimport { SpaContext } from './Classes/spacontext';\nimport { SpaLogger } from './Common/Classes/Global/spalogger.class';\n\n@Injectable()\nexport class ErrHandler implements ErrorHandler {\n\tconstructor(public _spaContext: SpaContext, private _spaLogger: SpaLogger) {}\n\n\thandleError(error) {\n\t\tconsole.error(error);\n\t\tif (typeof error !== 'undefined' && error !== null) {\n\t\t\tthis._spaLogger.log(\n\t\t\t\t'Debug',\n\t\t\t\t['Public', 'ConsoleError'],\n\t\t\t\t`${error.name}: ${error['message']}`,\n\t\t\t\t{\n\t\t\t\t\tUrl: window.location.href,\n\t\t\t\t\tLicensHolderId: this._spaContext.unitConfig.LicenceHolder.Id,\n\t\t\t\t\tUnitId: this._spaContext.unitConfig.Unit.UnitId,\n\t\t\t\t\tErrorType: error.name,\n\t\t\t\t},\n\t\t\t\terror.stack,\n\t\t\t);\n\t\t}\n\n\t\tthrow error;\n\t}\n}\n","export namespace DynamicForm {\n\texport class OptionInfo {\n\t\tId: number;\n\t\tParentId: number;\n\t\tSortValue: number;\n\t\tText: string;\n\t}\n}\n","export namespace DynamicForm {\n\texport class AnswerInfo {\n\t\tId: number;\n\t\tQuestionId: number;\n\t\tStringValue: string | null;\n\t\tIntValue: number | null;\n\t\tBoolValue: boolean | null;\n\t\tChoices: Array<number>;\n\t\tValid: () => boolean | undefined;\n\t}\n}\n","import { defaultMetadataStorage } from '../storage';\n/**\n * Specifies a type of the property.\n * The given TypeFunction can return a constructor. A discriminator can be given in the options.\n *\n * Can be applied to properties only.\n */\nexport function Type(typeFunction, options = {}) {\n return function (target, propertyName) {\n const reflectedType = Reflect.getMetadata('design:type', target, propertyName);\n defaultMetadataStorage.addTypeMetadata({\n target: target.constructor,\n propertyName: propertyName,\n reflectedType,\n typeFunction,\n options,\n });\n };\n}\n","import { FormQuestionType } from '../../../../../Services/Constants/FormQuestionType';\nimport { Type } from 'class-transformer';\nimport { DynamicForm as DynamicForm1 } from './OptionInfo';\nimport { DynamicForm as DynamicForm2 } from './AnswerInfo';\n\nexport class QuestionInfo {\n\tId: number;\n\tParentId: number;\n\tSortValue: number;\n\tAlias: string;\n\tRequired: boolean;\n\t@Type(() => DynamicForm1.OptionInfo)\n\tOptions: Array<DynamicForm1.OptionInfo>;\n\tHeader: string;\n\tDescription: string;\n\tTrueDescriptor: string;\n\tFalseDescriptor: string;\n\tPlaceholder: string;\n\tType: FormQuestionType;\n\t@Type(() => DynamicForm2.AnswerInfo)\n\tAnswer: DynamicForm2.AnswerInfo | undefined;\n\n\t// Spa specific\n\tquestionNumber: number;\n}\n","import { QuestionInfo } from '../../Common/Models/Api/Info/DynamicForm/QuestionInfo';\nimport { Component, Input } from '@angular/core';\nimport { DynamicFormAnswer } from './DynamicFormAnswer';\n\n@Component({\n\tstandalone: false,\n\tselector: 'dfq-multichoice',\n\ttemplate: /*language=html*/ `\n\t\t<h3>\n\t\t\t<span>{{ data.questionNumber }}</span> {{ data.Header }} <span class=\"required\" *ngIf=\"data.Required\">*</span>\n\t\t</h3>\n\t\t<div class=\"row input\" [class.dirty]=\"dirty\">\n\t\t\t<visiba-input\n\t\t\t\t*ngFor=\"let o of options\"\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\t[(ngModel)]=\"o.value\"\n\t\t\t\t(onChange)=\"valueChange()\"\n\t\t\t\t[staticplaceholder]=\"o.label\"\n\t\t\t\t[readonly]=\"readonly\"\n\t\t\t></visiba-input>\n\t\t\t<span class=\"error\" *ngIf=\"!valid()\">{{ 'LicenceHolder.DynamicForm.Error.MultiChoiceRequired' | translate }}</span>\n\t\t</div>\n\t`,\n})\nexport class DfqMultiChoiceComponent {\n\t@Input() formId: number = null;\n\t@Input() data: QuestionInfo = null;\n\t@Input() readonly = false;\n\toptions: Array<{ resourceId: number; value: boolean; label: string }> = [];\n\tdirty: boolean = false;\n\n\tconstructor() {}\n\n\tngOnInit() {\n\t\tthis.options = this.data.Options.map((x) => {\n\t\t\treturn { resourceId: x.Id, value: false, label: x.Text };\n\t\t});\n\t\tif (typeof this.data.Answer === 'undefined' || this.data.Answer === null)\n\t\t\tthis.data.Answer = new DynamicFormAnswer(null, this.data.Id, this.valid);\n\t\telse {\n\t\t\tthis.data.Answer.Valid = this.valid;\n\t\t\tthis.data.Answer.Choices.forEach((c) => {\n\t\t\t\tlet options = this.options.filter((x) => x.resourceId === c);\n\t\t\t\tif (options.length > 0) options[0].value = true;\n\t\t\t});\n\t\t}\n\t}\n\n\tvalueChange = () => {\n\t\tthis.dirty = true;\n\t\tthis.data.Answer.Choices = this.options\n\t\t\t.filter((x) => {\n\t\t\t\treturn x.value;\n\t\t\t})\n\t\t\t.map((x) => {\n\t\t\t\treturn x.resourceId;\n\t\t\t});\n\t};\n\n\tvalid = (): boolean => {\n\t\treturn !this.data.Required || (typeof this.data.Answer.Choices !== 'undefined' && this.data.Answer.Choices.length > 0);\n\t};\n}\n","import { QuestionInfo } from '../../Common/Models/Api/Info/DynamicForm/QuestionInfo';\nimport { Component, Input } from '@angular/core';\nimport { UntypedFormControl, Validators } from '@angular/forms';\nimport { DynamicFormAnswer } from './DynamicFormAnswer';\n\n@Component({\n\tstandalone: false,\n\tselector: 'dfq-multiline',\n\ttemplate: /*language=html*/ `\n\t\t<h3>\n\t\t\t<span>{{ data.questionNumber }}</span> {{ data.Header }} <span class=\"required\" *ngIf=\"data.Required\">*</span>\n\t\t</h3>\n\t\t<div class=\"row input\">\n\t\t\t<visiba-input\n\t\t\t\ttype=\"textarea\"\n\t\t\t\t[formControl]=\"formControl\"\n\t\t\t\t[(ngModel)]=\"data.Answer.StringValue\"\n\t\t\t\t[staticplaceholder]=\"data.Placeholder\"\n\t\t\t\t[readonly]=\"readonly\"\n\t\t\t></visiba-input>\n\t\t</div>\n\t`,\n})\nexport class DfqMultilineComponent {\n\t@Input() formId: number = null;\n\t@Input() data: QuestionInfo = null;\n\t@Input() readonly = false;\n\tvalue: any = null;\n\n\tformControl: UntypedFormControl = null;\n\n\tconstructor() {}\n\n\tngOnInit() {\n\t\tif (typeof this.data.Answer === 'undefined' || this.data.Answer === null)\n\t\t\tthis.data.Answer = new DynamicFormAnswer(null, this.data.Id, this.valid);\n\t\telse this.data.Answer.Valid = this.valid;\n\n\t\tlet validators = [];\n\t\tif (this.data.Required) validators.push(Validators.required);\n\n\t\tthis.formControl = new UntypedFormControl(null, validators);\n\t}\n\n\tvalid = (): boolean => {\n\t\treturn this.formControl.valid;\n\t};\n}\n","import { QuestionInfo } from '../../Common/Models/Api/Info/DynamicForm/QuestionInfo';\nimport { Component, Input } from '@angular/core';\nimport { DynamicFormAnswer } from './DynamicFormAnswer';\n\n@Component({\n\tstandalone: false,\n\tselector: 'dfq-singlechoiceradio',\n\ttemplate: /*language=html*/ `\n\t\t<h3>\n\t\t\t<span>{{ data.questionNumber }}</span> {{ data.Header }} <span class=\"required\" *ngIf=\"data.Required\">*</span>\n\t\t</h3>\n\t\t<div class=\"row input\" [class.dirty]=\"dirty\">\n\t\t\t<visiba-input\n\t\t\t\t[options]=\"options\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\t[(ngModel)]=\"radioModel\"\n\t\t\t\tvalue=\"resourceId\"\n\t\t\t\t(onChange)=\"valueChange()\"\n\t\t\t\t[readonly]=\"readonly\"\n\t\t\t></visiba-input>\n\t\t\t<span class=\"error\" *ngIf=\"!valid()\">{{ 'LicenceHolder.DynamicForm.Error.SingleChoiceRequired' | translate }}</span>\n\t\t</div>\n\t`,\n})\nexport class DfqSingleChoiceRadioComponent {\n\t@Input() formId: number = null;\n\t@Input() data: QuestionInfo = null;\n\t@Input() readonly = false;\n\toptions: Array<{ resourceId: number; value: boolean; label: string }> = [];\n\tdirty: boolean = false;\n\tradioModel: number = null;\n\n\tconstructor() {}\n\n\tngOnInit() {\n\t\tthis.options = this.data.Options.map((x) => {\n\t\t\treturn { resourceId: x.Id, value: false, label: x.Text };\n\t\t});\n\t\tif (typeof this.data.Answer === 'undefined' || this.data.Answer === null)\n\t\t\tthis.data.Answer = new DynamicFormAnswer(null, this.data.Id, this.valid);\n\t\telse {\n\t\t\tthis.data.Answer.Valid = this.valid;\n\t\t\tif (this.data.Answer.Choices.length > 0) this.radioModel = this.data.Answer.Choices[0];\n\t\t}\n\t}\n\n\tvalueChange = () => {\n\t\tthis.dirty = true;\n\t\tthis.data.Answer.Choices = [this.radioModel];\n\t};\n\n\tvalid = (): boolean => {\n\t\treturn !this.data.Required || (typeof this.data.Answer.Choices !== 'undefined' && this.data.Answer.Choices.length > 0);\n\t};\n}\n","import { QuestionInfo } from '../../Common/Models/Api/Info/DynamicForm/QuestionInfo';\nimport { Component, Input } from '@angular/core';\nimport { DynamicFormAnswer } from './DynamicFormAnswer';\n\n@Component({\n\tstandalone: false,\n\tselector: 'dfq-singlechoiceselect',\n\ttemplate: /*language=html*/ `\n\t\t<h3>\n\t\t\t<span>{{ data.questionNumber }}</span> {{ data.Header }} <span class=\"required\" *ngIf=\"data.Required\">*</span>\n\t\t</h3>\n\t\t<div class=\"row input\" [class.dirty]=\"dirty\">\n\t\t\t<visiba-select\n\t\t\t\t[required]=\"data.Required\"\n\t\t\t\t[options]=\"options\"\n\t\t\t\t[(ngModel)]=\"selectModel\"\n\t\t\t\tvalue=\"resourceId\"\n\t\t\t\t(onChange)=\"valueChange()\"\n\t\t\t\t[readonly]=\"readonly\"\n\t\t\t></visiba-select>\n\t\t</div>\n\t`,\n})\nexport class DfqSingleChoiceSelectComponent {\n\t@Input() formId: number = null;\n\t@Input() data: QuestionInfo = null;\n\t@Input() readonly = false;\n\toptions: Array<{ resourceId: number; value: boolean; label: string }> = [];\n\tdirty: boolean = false;\n\tselectModel = null;\n\n\tconstructor() {}\n\n\tngOnInit() {\n\t\tthis.options = this.data.Options.map((x) => {\n\t\t\treturn { resourceId: x.Id, value: false, label: x.Text };\n\t\t});\n\t\tif (typeof this.data.Answer === 'undefined' || this.data.Answer === null)\n\t\t\tthis.data.Answer = new DynamicFormAnswer(null, this.data.Id, this.valid);\n\t\telse {\n\t\t\tthis.data.Answer.Valid = this.valid;\n\t\t\tif (this.data.Answer.Choices.length > 0) this.selectModel = this.data.Answer.Choices[0];\n\t\t}\n\t}\n\n\tvalueChange = () => {\n\t\tthis.dirty = true;\n\t\tthis.data.Answer.Choices = [this.selectModel];\n\t};\n\n\tvalid = (): boolean => {\n\t\treturn !this.data.Required || (typeof this.data.Answer.Choices !== 'undefined' && this.data.Answer.Choices.length > 0);\n\t};\n}\n","import { Component, Input, Output, ElementRef, EventEmitter, ViewEncapsulation } from '@angular/core';\n\nlet componentID: number = 0;\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-succesBox',\n\ttemplate: `\n\t\t<div class=\"succesBox__container\">\n\t\t\t<div class=\"succesBox__header\">\n\t\t\t\t<visiba-svg class=\"succesBox__check\" a=\"CheckWithCircle\"></visiba-svg>\n\t\t\t\t<div class=\"succesBox__exit\" (click)=\"toggle(false)\">\n\t\t\t\t\t<visiba-svg a=\"X\"></visiba-svg>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"succesBox__info\">\n\t\t\t\t<h2>{{ title }}</h2>\n\t\t\t\t<p>{{ info }}</p>\n\t\t\t\t<a *ngIf=\"receiptUrl\" class=\"succesBox__receiptUrl\" [href]=\"receiptUrl\">{{\n\t\t\t\t\t'LicenceHolder.Messaging.Header.Phrase.SaveReciept' | translate\n\t\t\t\t}}</a>\n\t\t\t\t<div [ngSwitch]=\"mode\" class=\"succesBox__action\">\n\t\t\t\t\t<div *ngSwitchCase=\"'return'\" class=\"btn\" (click)=\"toggle(false)\">{{ button }}</div>\n\t\t\t\t\t<a *ngSwitchCase=\"'href'\" [href]=\"href\" class=\"succesBox__href\" (click)=\"action()\">{{ button }}</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t`,\n\thost: {\n\t\tclass: 'succesBox',\n\t\t'[attr.mode]': 'mode',\n\t},\n\tstyleUrls: ['../Css/Components/succesBox.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class succesBox {\n\tshow: boolean = false;\n\tcomponentID: number = componentID++;\n\n\t@Output() onState: EventEmitter<any> = new EventEmitter();\n\t@Output() onToggle: EventEmitter<any> = new EventEmitter();\n\t@Input() mode: 'return' | 'href' | 'none' = 'return';\n\t@Input() href: string = '#__HREF__';\n\t@Input() title: string = '__TITLE__';\n\t@Input() info: string = '__INFO__';\n\t@Input() button: string = '__BUTTON__';\n\t@Input() receiptUrl: string | null = null;\n\n\tconstructor() {}\n\n\ttoggle(e) {\n\t\tthis.show = e || !this.show;\n\t\tthis.onToggle.emit(this.show);\n\t}\n\n\taction() {\n\t\tthis.onState.emit(true);\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { VisibaApiHttp } from '../Classes/visibaHttp.class';\nimport { SpaContext } from '../Classes/spacontext';\n\n@Injectable()\nexport class CiscoMeetingServerService {\n\tprivate baseUri: string = null;\n\n\tconstructor(private http: VisibaApiHttp, public _spaContext: SpaContext) {\n\t\tthis.baseUri = `/Api/Office/${this._spaContext.unitConfig.LicenceHolder.Id}/units/${this._spaContext.unitConfig.Unit.UnitId}/CiscoMeetingServer`;\n\t}\n\n\taddParticipant(callTicket: Guid, sipAddress: string) {\n\t\treturn this.http.post(this.baseUri + callTicket + '/Participants', { SipAddress: sipAddress });\n\t}\n}\n","import { Injectable } from '@angular/core';\nimport { VisibaApiHttp } from '../../../../Classes/visibaHttp.class';\nimport { MessagingConversationApiModel } from '../Models/MessagingConversationApiModel';\nimport { SpaContext } from '../../../../Classes/spacontext';\n\ninterface Conversation {\n\treason: string;\n\tconditionId: number;\n\tfiles: Guid[];\n\texternalData: Guid[];\n}\n@Injectable()\nexport class MessagingServiceV2 {\n\treadonly baseUri = '/api/Client/v2/Units/';\n\n\tconstructor(private http: VisibaApiHttp, public spaContext: SpaContext) {}\n\n\tpublic startConversation(body: Conversation) {\n\t\treturn this.http.postTyped<MessagingConversationApiModel>(\n\t\t\t`${this.baseUri}${this.spaContext.unitConfig.Unit.UnitId}/MessagingConversations`,\n\t\t\tbody,\n\t\t);\n\t}\n}\n","import { Observable } from 'rxjs';\nimport { ApiResponse } from 'Public_old/src/app/Classes/visibaHttp.class';\nimport { HttpParams } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { SpaContext } from '../../../../Classes/spacontext';\nimport { VisibaApiHttp } from '../../../../Classes/visibaHttp.class';\nimport { PhysicalLocationApiModel } from '../Models/PhysicalLocationApiModel';\n\n@Injectable()\nexport class PhysicalLocationService {\n\tprivate baseUri;\n\n\tconstructor(private http: VisibaApiHttp, public spaContext: SpaContext) {\n\t\t// Empty\n\t\tthis.baseUri = `/api/Client/v2/units/${this.spaContext.unitConfig.Unit.UnitId}`;\n\t}\n\n\tpublic getPhysicalReception(): Observable<ApiResponse<PhysicalLocationApiModel[]>> {\n\t\tlet params = new HttpParams();\n\t\tparams = params.append('languageCode', this.spaContext.languageCode);\n\n\t\treturn this.http.getTyped<PhysicalLocationApiModel[]>(`${this.baseUri}/PhysicalLocations`, true, { params });\n\t}\n}\n","import { Component, Input, ElementRef, ViewEncapsulation } from '@angular/core';\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-progressbar',\n\ttemplate: `\n\t\t<div class=\"progressbar__line\">\n\t\t\t<div *ngIf=\"type == 'indeterminate'\" class=\"indeterminate\" [ngClass]=\"childClassList\"></div>\n\t\t\t<div *ngIf=\"type == 'determinate'\" class=\"determinate\" [ngClass]=\"childClassList\" [ngStyle]=\"transform()\"></div>\n\t\t</div>\n\t`,\n\thost: {\n\t\t'[attr.type]': 'type',\n\t\tclass: 'progressbar',\n\t},\n\tstyleUrls: ['../../Css/Components/visibaProgressBar.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class visibaProgressBar {\n\t@Input('childClass')\n\tchildClassList: string;\n\n\t@Input()\n\ttype: 'determinate' | 'indeterminate' = 'determinate';\n\n\t@Input()\n\tget value(): number {\n\t\treturn this._value;\n\t}\n\tset value(val: number) {\n\t\tthis._value = Math.max(0, Math.min(100, val)) || 0;\n\t}\n\tprivate _value: number = 0;\n\n\tprivate modifedClassList: string;\n\n\tconstructor(private _ref: ElementRef) {}\n\n\tpublic transform() {\n\t\tconst scale = this.value / 100;\n\t\treturn { transform: `scaleX(${scale})` };\n\t}\n\n\tpublic show(value: boolean) {\n\t\tif (value) {\n\t\t\tthis._ref.nativeElement.classList.add('js-disable');\n\t\t} else {\n\t\t\tthis._ref.nativeElement.classList.remove('js-disable');\n\t\t}\n\t}\n}\n","import { Component, ElementRef, Input, ChangeDetectionStrategy } from '@angular/core';\nimport { VisibaSvgIconRepository } from './visibaSvgIconRepository';\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-svg',\n\ttemplate: /*language=html*/ `\n\t\t<svg\n\t\t\t[innerHtml]=\"icon.html | safeHtml\"\n\t\t\t[attr.viewBox]=\"icon.viewBox\"\n\t\t\t[attr.style]=\"icon.style\"\n\t\t\t[attr.class]=\"'svg_' + alias\"\n\t\t></svg>\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class VisibaSvg {\n\t@Input('a') alias: string;\n\t@Input('color') color: string = null;\n\ticon = null;\n\n\tconstructor(\n\t\tprivate _elementRef: ElementRef,\n\t\tprivate _svgIconRepository: VisibaSvgIconRepository,\n\t) {}\n\n\tngOnInit() {\n\t\tthis.icon = this._svgIconRepository.get(this.alias);\n\t}\n\n\tngAfterViewInit() {\n\t\tif (this.color !== null) {\n\t\t\tconst childrenFill = this._elementRef.nativeElement.querySelectorAll('.fill');\n\t\t\tfor (let i = 0; i < childrenFill.length; i++) childrenFill[i].style.fill = this.color;\n\n\t\t\tconst childrenStroke = this._elementRef.nativeElement.querySelectorAll('.stroke');\n\t\t\tfor (let i = 0; i < childrenStroke.length; i++) childrenStroke[i].style.stroke = this.color;\n\t\t}\n\t}\n}\n","import { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport {\n\tComponent,\n\tOutput,\n\tInput,\n\tEventEmitter,\n\tDirective,\n\tProvider,\n\tforwardRef,\n\tElementRef,\n\tInjector,\n\tViewChild,\n\tEnvironmentInjector,\n\tSelf,\n\tOptional,\n\tinject,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, UntypedFormControl, NgControl } from '@angular/forms';\nimport { GlobalValidator } from '../Classes/globalValidator';\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-select',\n\ttemplate: /*language=html*/ `\n\t\t<div class=\"wallInput wallStyling inputWrap\" [class.witharrow]=\"showArrow\" [class.hasIcon]=\"icon != null\">\n\t\t\t<input\n\t\t\t\t[tabindex]=\"tabInd\"\n\t\t\t\ttype=\"text\"\n\t\t\t\t[readonly]=\"(autocomplete == undefined && !allowInput) || readonly\"\n\t\t\t\t[(ngModel)]=\"localModel\"\n\t\t\t\t[placeholder]=\"localPlaceholder\"\n\t\t\t\t(ngModelChange)=\"search()\"\n\t\t\t\t(click)=\"toggleOptions()\"\n\t\t\t\t(keyup.esc)=\"toggleOptions('off')\"\n\t\t\t\t(keyup.enter)=\"selectOption(targetedOption); prevent($event)\"\n\t\t\t\t(keydown.enter)=\"prevent($event)\"\n\t\t\t\t(keydown.arrowdown)=\"arrowMove(1); prevent($event)\"\n\t\t\t\t(keydown.arrowup)=\"arrowMove(-1); prevent($event)\"\n\t\t\t/>\n\t\t\t<div class=\"svgWrap\" *ngIf=\"localModel != null && !readonly && clearButton\" (click)=\"deselect()\">\n\t\t\t\t<visiba-svg a=\"X\"></visiba-svg>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclass=\"svgWrap arrow\"\n\t\t\t\t*ngIf=\"(localModel == null || !clearButton) && showArrow && !readonly\"\n\t\t\t\t[class.open]=\"showOptions\"\n\t\t\t\t(click)=\"toggleOptions()\"\n\t\t\t>\n\t\t\t\t<visiba-svg a=\"ArrowDown\"></visiba-svg>\n\t\t\t</div>\n\n\t\t\t<div #ulWrap class=\"ulWrap\" [hidden]=\"!showOptions\">\n\t\t\t\t<ul>\n\t\t\t\t\t<li\n\t\t\t\t\t\t[class.selected]=\"selectedOption[value] == opt[value]\"\n\t\t\t\t\t\t[class.targeted]=\"targetedOption[value] == opt[value]\"\n\t\t\t\t\t\t(mouseover)=\"mouseoverOption(opt)\"\n\t\t\t\t\t\t*ngFor=\"let opt of options\"\n\t\t\t\t\t\t(click)=\"selectOption(opt)\"\n\t\t\t\t\t\t[innerHtml]=\"opt.displayLabel\"\n\t\t\t\t\t></li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<select *ngIf=\"showSelect\" [(ngModel)]=\"selectValue\" (ngModelChange)=\"selectOptionFromValue(selectValue)\">\n\t\t\t\t<option *ngFor=\"let opt of options\" [value]=\"opt[value]\">{{ opt[label] }}</option>\n\t\t\t</select>\n\t\t\t<visiba-svg *ngIf=\"icon != null\" class=\"iconSvg\" [a]=\"icon\"></visiba-svg>\n\t\t\t<label [class.value]=\"localModel != null && localModel != ''\" [class.svg]=\"icon != null\">{{ localPlaceholder }}</label>\n\t\t\t<span class=\"error\" [class.value]=\"localModel != null && localModel != ''\">{{ currentError }}</span>\n\t\t</div>\n\t`,\n\thost: {\n\t\t'[class.readonly]': 'readonly',\n\t},\n})\nexport class VisibaSelectComponent implements ControlValueAccessor {\n\t@Input() tabInd: number = 0;\n\t@Input() icon: string = null;\n\t@Input() placeholder: string = '';\n\t@Input() label: string = 'label';\n\t@Input() value: string = 'value';\n\t@Input() showArrow: boolean = true;\n\t@Input() autocomplete: string;\n\t@Input() allowInput: boolean = false;\n\t@Input() readonly: boolean = false;\n\t@Input() clearable: boolean = true;\n\t@Input() errorMessages: { [name: string]: string } | string = 'default';\n\t@Input('modelValue') localModel: any = null;\n\t@Input('options') coreOptions: Array<any> = [];\n\t@Input() optionsUrl: string; // /Api/Client/Get?name={{searchStr}}\n\t@Input() clearButton: boolean = true;\n\t@Output() onChange = new EventEmitter();\n\n\t@ViewChild('ulWrap', { static: false }) ulWrap: ElementRef;\n\n\tcurrentError: string = null;\n\tshowOptions: boolean = false;\n\tlocalPlaceholder: string = '';\n\tselectValue: string = '';\n\toptions: Array<any> = [];\n\ttargetedOption: any = {};\n\tselectedOption: any = {};\n\tshowSelect: boolean = false;\n\n\tconstructor(\n\t\tprivate _elementRef: ElementRef,\n\t\t@Self() public controlDir: NgControl,\n\t\tprivate translateService: TranslateService,\n\t) {\n\t\tcontrolDir.valueAccessor = this;\n\t\tlet el = _elementRef.nativeElement;\n\t\tthis.showSelect =\n\t\t\t/(ipad|iphone|ipod|android)/g.test(navigator.userAgent.toLowerCase()) && typeof this.autocomplete === 'undefined';\n\t}\n\n\tngOnChanges(changed) {\n\t\tif (typeof changed.coreOptions !== 'undefined') this.setOptionFromValue();\n\t}\n\n\twriteValue(val: any) {\n\t\twindow.setTimeout(() => {\n\t\t\tthis.handleErrors();\n\t\t});\n\n\t\tif (val === '') val = null;\n\n\t\tlet option = this.coreOptions.filter((o) => {\n\t\t\treturn o[this.value] == val;\n\t\t})[0];\n\n\t\tif (typeof option === 'undefined') {\n\t\t\tthis.targetedOption = {};\n\t\t\tthis.selectedOption = {};\n\n\t\t\tthis.localModel = null;\n\t\t} else {\n\t\t\tthis.targetedOption = option;\n\t\t\tthis.selectedOption = option;\n\n\t\t\tthis.localModel = option[this.label];\n\t\t}\n\t}\n\n\tsetOptionFromValue() {\n\t\tlet option = this.coreOptions.filter((o) => {\n\t\t\treturn o[this.value] == this.selectedOption[this.value];\n\t\t})[0];\n\n\t\tif (typeof option !== 'undefined') {\n\t\t\tthis.targetedOption = option;\n\t\t\tthis.selectedOption = option;\n\n\t\t\tthis.localModel = option[this.label];\n\t\t}\n\t}\n\n\t//Call to push value\n\tpropagateChange = (_: any) => {};\n\n\tregisterOnChange(fn) {\n\t\tthis.propagateChange = fn;\n\t}\n\n\tregisterOnTouch() {}\n\tregisterOnTouched() {}\n\n\tngOnInit() {\n\t\tthis.filterOptions();\n\t\tif (this.placeholder !== null && this.placeholder !== '')\n\t\t\tthis.localPlaceholder = this.translateService.get(this.placeholder) + (this._elementRef.nativeElement.required ? ' *' : '');\n\t}\n\n\temitValue(val) {\n\t\tthis.propagateChange(val);\n\n\t\tthis.handleErrors();\n\n\t\tif (typeof this.onChange !== 'undefined') {\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tthis.onChange.emit(val);\n\t\t\t}, 10);\n\t\t}\n\t}\n\n\t/*** ######## **/\n\tarrowMove(direction: number) {\n\t\tlet pos = -1;\n\t\tif (this.targetedOption[this.value] !== null)\n\t\t\tpos = this.options.map((o) => o[this.value]).indexOf(this.targetedOption[this.value]);\n\n\t\tlet newPos = pos + direction;\n\n\t\tif (newPos >= 0 && newPos < this.options.length) this.targetedOption = this.options[newPos];\n\n\t\tif (this.selectedOption[this.value] === null) this.localModel = this.targetedOption[this.label];\n\n\t\tthis.toggleOptions('on');\n\n\t\tlet targetElement = this.ulWrap.nativeElement.querySelector('.targeted');\n\t\tif (targetElement !== null) {\n\t\t\tthis.ulWrap.nativeElement.scrollTop = targetElement.offsetTop - targetElement.clientHeight;\n\t\t}\n\t}\n\n\tsearch() {\n\t\tif (this.localModel === '') this.localModel = null;\n\n\t\tthis.toggleOptions('on');\n\n\t\tif (this.localModel !== null) {\n\t\t\tlet matches = (this.options = this.coreOptions.filter((o) => {\n\t\t\t\treturn o[this.label].toLowerCase().indexOf(this.localModel.toLowerCase()) === 0;\n\t\t\t}));\n\t\t\tif (matches.length !== 0) this.targetedOption = matches[0];\n\t\t} else {\n\t\t\tthis.targetedOption = {};\n\t\t}\n\n\t\tthis.filterOptions();\n\t}\n\n\tfilterOptions() {\n\t\tif (typeof this.coreOptions === 'undefined' || this.coreOptions === null) return;\n\n\t\tif (this.localModel === null || typeof this.autocomplete === 'undefined') this.options = this.coreOptions.slice(0);\n\t\telse if (typeof this.autocomplete !== 'undefined')\n\t\t\tthis.options = this.coreOptions.filter((o) => {\n\t\t\t\treturn o[this.label].toLowerCase().indexOf(this.localModel.toLowerCase()) === 0;\n\t\t\t});\n\n\t\tthis.options = this.options.map((o) => {\n\t\t\tif (this.autocomplete) {\n\t\t\t\tvar regex = new RegExp('(' + this.localModel + ')', 'i');\n\t\t\t\to.displayLabel = o[this.label].replace(regex, '<span>$1</span>');\n\t\t\t} else {\n\t\t\t\to.displayLabel = o[this.label];\n\t\t\t}\n\t\t\treturn o;\n\t\t});\n\t}\n\n\tprevent(event: KeyboardEvent) {\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t}\n\n\tselectOption(option: any) {\n\t\tif (!this.showOptions) {\n\t\t\tthis.openList();\n\t\t\treturn;\n\t\t}\n\n\t\tif (typeof option[this.value] === 'undefined') {\n\t\t\tthis.selectOptionFromValue(this.localModel);\n\t\t\treturn;\n\t\t}\n\n\t\tthis.selectedOption = option;\n\t\tthis.localModel = option[this.label];\n\n\t\tthis.toggleOptions('off');\n\t\tthis.emitValue(option[this.value]);\n\t}\n\n\tselectOptionFromValue(val) {\n\t\tif (val === null) return;\n\n\t\tlet option = this.coreOptions.filter((o) => {\n\t\t\treturn o[this.value].toString().indexOf(val) === 0;\n\t\t});\n\n\t\tif (option.length > 0) this.selectOption(option[0]);\n\t}\n\n\tdeselect() {\n\t\tthis.selectedOption = {};\n\t\tthis.localModel = null;\n\t\tthis.toggleOptions('off');\n\t\tthis.emitValue(null);\n\t}\n\n\tmouseoverOption(option: any) {\n\t\tthis.targetedOption = option;\n\t}\n\n\t/*** ######## **/\n\ttoggleOptions(status: string = null) {\n\t\tif (this.readonly) return;\n\n\t\tthis.filterOptions();\n\n\t\tif (status === 'on') this.openList();\n\t\telse if (status === 'off') this.closeList();\n\t\telse if (this.showOptions) this.closeList();\n\t\telse this.openList();\n\n\t\tif (!this.showOptions) {\n\t\t\tthis.targetedOption = {};\n\t\t\tif (this.selectedOption[this.value] === null) this.localModel = null;\n\t\t}\n\t}\n\n\thandleErrors() {\n\t\tthis.currentError = GlobalValidator.validateFormControl(\n\t\t\tthis.translateService,\n\t\t\tthis.controlDir.control as UntypedFormControl,\n\t\t\tthis.errorMessages,\n\t\t);\n\t}\n\n\topenList(): void {\n\t\tif (this.readonly || this.showOptions) return;\n\n\t\tthis.showOptions = true;\n\n\t\twindow.setTimeout(() => {\n\t\t\tlet doc = document.getElementsByTagName('html')[0];\n\t\t\tdoc.addEventListener('click', this.listClickCheck, false);\n\t\t});\n\n\t\tif (this.selectedOption !== null) {\n\t\t\tthis.targetedOption = this.selectedOption;\n\t\t}\n\t}\n\n\tlistClickCheck = (event) => {\n\t\tif (\n\t\t\tthis.showOptions &&\n\t\t\tevent.target &&\n\t\t\tthis._elementRef.nativeElement !== event.target &&\n\t\t\t!this._elementRef.nativeElement.contains(event.target)\n\t\t) {\n\t\t\tthis.closeList();\n\t\t}\n\t};\n\n\tcloseList(): void {\n\t\tthis.showOptions = false;\n\t\tlet doc = document.getElementsByTagName('html')[0];\n\t\tdoc.removeEventListener('click', this.listClickCheck, false);\n\t}\n}\n","import { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport {\n\tComponent,\n\tOutput,\n\tInput,\n\tEventEmitter,\n\tChangeDetectionStrategy,\n\tChangeDetectorRef,\n\tforwardRef,\n\tElementRef,\n\tInjector,\n\tEnvironmentInjector,\n\tSelf,\n\tinject,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, UntypedFormControl, NgControl } from '@angular/forms';\nimport { GlobalValidator } from '../Classes/globalValidator';\n\ninterface MyMonth {\n\tm: number;\n\ty: number;\n}\n\ninterface Day {\n\tdate: Date;\n\tday: number;\n\tmonth: number;\n\tyear: number;\n\tsun: boolean;\n}\n\ninterface dateSpan {\n\teditable: boolean;\n\tfrom: Date;\n\tto: Date;\n}\n\nexport class DatepickerOptions {\n\tshow: 'calendar' | 'input';\n\tmodelFormat: 'singleDate' | 'timeSpan';\n\tspanSize: { min: number; max: number };\n\tlockSpanStartDate: boolean;\n\tnumberOfSpans: number;\n\n\tconstructor(overrideOptions) {\n\t\tthis.show = overrideOptions.show ? overrideOptions.show : 'input';\n\t\tthis.modelFormat = overrideOptions.modelFormat ? overrideOptions.modelFormat : 'singleDate';\n\t\tthis.spanSize = overrideOptions.spanSize ? overrideOptions.spanSize : { min: 1, max: 999 };\n\t\tthis.numberOfSpans = overrideOptions.numberOfSpans ? overrideOptions.numberOfSpans : 1;\n\t\tthis.lockSpanStartDate = overrideOptions.lockSpanStartDate ? overrideOptions.lockSpanStartDate : false;\n\t}\n}\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-datepicker',\n\ttemplate: /*language=html*/ `\n\t\t<div\n\t\t\tclass=\"inputWrap wallInput wallStyling\"\n\t\t\t[class.hasIcon]=\"icon != null\"\n\t\t\t[tabindex]=\"tabInd\"\n\t\t\t(focus)=\"openCalendar()\"\n\t\t\t*ngIf=\"options().show === 'input'\"\n\t\t>\n\t\t\t<input type=\"text\" readonly=\"true\" [(ngModel)]=\"selectedDateText\" [placeholder]=\"localPlaceholder\" (click)=\"openCalendar()\" />\n\t\t\t<div class=\"svgWrap\" *ngIf=\"selectedDateText != null && !readonly && clearButton\" (click)=\"deselect()\">\n\t\t\t\t<visiba-svg a=\"X\"></visiba-svg>\n\t\t\t</div>\n\t\t\t<visiba-svg *ngIf=\"icon != null\" class=\"iconSvg\" [a]=\"icon\"></visiba-svg>\n\t\t\t<label [class.value]=\"selectedDateText != null && selectedDateText != ''\" [class.svg]=\"icon != null\">{{\n\t\t\t\tlocalPlaceholder\n\t\t\t}}</label>\n\t\t\t<span class=\"error\" [class.value]=\"selectedDateText != null && selectedDateText != ''\">{{ currentError }}</span>\n\t\t</div>\n\t\t<div class=\"calendar\" *ngIf=\"currentView != null\" [ngStyle]=\"calendarStyle\">\n\t\t\t<div class=\"header\">\n\t\t\t\t<span class=\"prev\" (click)=\"changeMonth(-1)\">\n\t\t\t\t\t<svg viewBox=\"0 0 32.9 56.7\">\n\t\t\t\t\t\t<polygon\n\t\t\t\t\t\t\tclass=\"fill\"\n\t\t\t\t\t\t\tpoints=\"29.5 0 0.1 28.3 0 28.3 0.05 28.35 0 28.4 0.1 28.4 29.5 56.7 32.9 52.2 9.15 28.35 32.9 4.5 29.5 0\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</svg>\n\t\t\t\t</span>\n\t\t\t\t{{ monthNames[visibleMonth.m - 1] }} {{ visibleMonth.y }}\n\t\t\t\t<span class=\"next\" (click)=\"changeMonth(1)\">\n\t\t\t\t\t<svg viewBox=\"0 0 32.9 56.7\">\n\t\t\t\t\t\t<polygon points=\"3.4 56.7 32.8 28.4 32.9 28.4 32.85 28.35 32.9 28.3 32.8 28.3 3.4 0 0 4.5 23.75 28.35 0 52.2 3.4 56.7\" />\n\t\t\t\t\t</svg>\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t<table class=\"caltable\">\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th *ngFor=\"let d of dayNames\">{{ d.substring(0, 1) }}</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr *ngFor=\"let w of dates\">\n\t\t\t\t\t\t<td *ngFor=\"let d of w\" (click)=\"selectDate(d.date)\" [ngClass]=\"getDateSpanClasses(d.date)\">\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t\t\t\t\tisInvalid: !isValid(d.date),\n\t\t\t\t\t\t\t\t\tisToday: isToday(d.date),\n\t\t\t\t\t\t\t\t\tisSelected: isSelected(d.date),\n\t\t\t\t\t\t\t\t\tisOld: false,\n\t\t\t\t\t\t\t\t\tisOtherMonth: d.month != visibleMonth.m,\n\t\t\t\t\t\t\t\t}\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{{ d.day }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>\n\t`,\n\thost: {\n\t\t'[class]': '\"show_\" + options().show',\n\t\t'[class.readonly]': 'readonly',\n\t},\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class VisibaDatepickerComponent implements ControlValueAccessor {\n\t@Input() tabInd: number = 0;\n\t@Input() icon: string = null;\n\t@Input() placeholder: string = '';\n\n\t@Input('options') overrideOptions: any = {};\n\n\t@Input() maxView: string = 'year';\n\t@Input() minView: string = 'minute';\n\t@Input() minDate: Date | string = null;\n\t@Input() maxDate: Date | string = null;\n\t@Input() sunFirst: boolean = false; // First week day\n\t@Input() readonly: boolean = false;\n\t@Input() errorMessages: { [name: string]: string } | string = 'default';\n\t@Input() dateFormat: string = 'yyyy-MM-dd HH:mm';\n\t@Input() clearButton: boolean = true;\n\t@Output() modelChange: any;\n\n\tviews: Array<string> = ['year', 'month', 'day', 'hour', 'minute', 'second'];\n\tcurrentView: string = null;\n\tcalendarStyle: any = {};\n\tcurrentDateSpanIndex: number = 0;\n\n\tmonthNames: Array<string> = µ.Env.i18n.monthNames.slice(12, 24);\n\tdayNames: Array<string> = µ.Env.i18n.dayNames.slice(0, 7);\n\n\tlocalPlaceholder: string = null;\n\tcurrentError: string = null;\n\tvisibleMonth: MyMonth = { m: 0, y: 0 };\n\tselectedDate: Date = null;\n\tdateSpans: Array<dateSpan> = [];\n\tselectedDateText: string = null;\n\ttoday: Date = null;\n\tdates: Array<Array<Day>> = [];\n\n\tconstructor(\n\t\tpublic elem: ElementRef,\n\t\t@Self() public controlDir: NgControl,\n\t\tprivate _changeDetector: ChangeDetectorRef,\n\t\tprivate translateService: TranslateService,\n\t) {\n\t\tcontrolDir.valueAccessor = this;\n\t\tthis.today = new Date();\n\t\tthis.modelChange = new EventEmitter();\n\t}\n\n\twriteValue(value: any) {\n\t\twindow.setTimeout(() => {\n\t\t\tthis.handleErrors();\n\t\t});\n\t\tif (value !== undefined && value !== null) {\n\t\t\ttry {\n\t\t\t\tif (this.options().modelFormat === 'singleDate') {\n\t\t\t\t\tconst d = new Date(value);\n\t\t\t\t\tthis.selectDate(d, false);\n\t\t\t\t} else {\n\t\t\t\t\tthis.dateSpans = value;\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tthis.dateSpans = [];\n\t\t\t\tthis.selectedDate = null;\n\t\t\t\tthis.selectedDateText = null;\n\t\t\t\tthis.closeCalendar();\n\t\t\t}\n\t\t} else {\n\t\t\tthis.dateSpans = [];\n\t\t\tthis.selectedDate = null;\n\t\t\tthis.selectedDateText = null;\n\t\t\tthis.closeCalendar();\n\t\t}\n\t\tthis.currentDateSpanIndex = 0;\n\t\tthis._changeDetector.markForCheck(); // Start check here otherwise errors when using datepicket in cipyfunction office calendar, 2017-12-20\n\t}\n\n\t// Call to push value\n\tpropagateChange = (_: any) => {};\n\n\tregisterOnChange(fn) {\n\t\tthis.propagateChange = fn;\n\t}\n\n\tregisterOnTouch() {}\n\tregisterOnTouched() {}\n\n\tngOnInit() {\n\t\tif (this.minDate === 'now') this.minDate = new Date();\n\n\t\tif (!this.sunFirst) this.dayNames.push(this.dayNames.splice(0, 1)[0]);\n\n\t\tif (this.placeholder !== null && this.placeholder !== '') {\n\t\t\tthis.localPlaceholder = this.translateService.get(this.placeholder) + (this.elem.nativeElement.required ? ' *' : '');\n\t\t}\n\n\t\t// TODO\n\t\t// Set correct first day of week\n\t\t// Set Min/max view\n\t}\n\n\tngAfterViewInit() {\n\t\tif (this.options().show === 'calendar') this.openCalendar();\n\t}\n\n\tngOnDestroy() {}\n\n\temitValue(value: any) {\n\t\tthis.modelChange.emit(value);\n\t\tthis.propagateChange(value);\n\n\t\tthis.handleErrors();\n\t}\n\n\topenCalendar(): void {\n\t\tif (this.readonly || this.currentView !== null) return;\n\n\t\tthis.currentView = this.maxView;\n\n\t\tlet startDate = new Date();\n\n\t\tif (this.selectedDate !== null) startDate = this.selectedDate;\n\t\telse if (this.dateSpans && this.dateSpans[0] && this.dateSpans[0].from) startDate = this.dateSpans[0].from;\n\n\t\tthis.visibleMonth = { m: startDate.getMonth() + 1, y: startDate.getFullYear() };\n\n\t\t// Create current month\n\t\tthis.createMonth(this.visibleMonth.m, this.visibleMonth.y);\n\n\t\tif (this.options().show === 'calendar') return;\n\n\t\twindow.setTimeout(() => {\n\t\t\tconst doc = document.getElementsByTagName('html')[0];\n\t\t\tdoc.addEventListener('click', this.calClickCheck, false);\n\t\t});\n\n\t\tconst elRect = this.elem.nativeElement.getClientRects()[0];\n\t\tif (!elRect) return;\n\t\tconst calWidth = elRect.left + elRect.width / 2;\n\t\tif (calWidth < 125) {\n\t\t\tthis.calendarStyle = { 'margin-left': 125 - calWidth - 135 + 'px' };\n\t\t} else {\n\t\t\tthis.calendarStyle = {};\n\t\t}\n\n\t\tthis._changeDetector.detectChanges();\n\t}\n\n\tcalClickCheck = (event) => {\n\t\tif (\n\t\t\tthis.currentView !== null &&\n\t\t\tevent.target &&\n\t\t\tthis.elem.nativeElement !== event.target &&\n\t\t\t!this.elem.nativeElement.contains(event.target)\n\t\t) {\n\t\t\tthis.closeCalendar();\n\t\t}\n\t};\n\n\tcloseCalendar(): void {\n\t\tif (this.options().show === 'calendar') return;\n\t\tthis.currentView = null;\n\t\tconst doc = document.getElementsByTagName('html')[0];\n\t\tdoc.removeEventListener('click', this.calClickCheck, false);\n\n\t\tthis._changeDetector.detectChanges();\n\t}\n\n\tchangeMonth(go: number): void {\n\t\tthis.visibleMonth.m = this.visibleMonth.m + go;\n\n\t\tif (this.visibleMonth.m === 13) {\n\t\t\tthis.visibleMonth.m = 1;\n\t\t\tthis.visibleMonth.y++;\n\t\t} else if (this.visibleMonth.m === 0) {\n\t\t\tthis.visibleMonth.m = 12;\n\t\t\tthis.visibleMonth.y--;\n\t\t}\n\n\t\tthis.createMonth(this.visibleMonth.m, this.visibleMonth.y);\n\t}\n\n\tchangeYear(go: number): void {\n\t\tthis.visibleMonth.y = this.visibleMonth.y + go;\n\t\tthis.createMonth(this.visibleMonth.m, this.visibleMonth.y);\n\t}\n\n\tselectDate(date: Date, emit: boolean = true): void {\n\t\tif (this.options().modelFormat !== 'singleDate') {\n\t\t\tthis.selectDateInSpan(date, emit);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.isValid(date)) return;\n\n\t\tthis.selectedDate = date;\n\t\tthis.selectedDateText = date.format(this.dateFormat);\n\n\t\tthis.closeCalendar(); // TODO: Set next if not minView\n\n\t\tif (emit) this.emitValue(this.selectedDate);\n\t}\n\n\tselectDateInSpan(date: Date, emit: boolean = true, isSystemSet = false): void {\n\t\tif (!this.isValid(date)) return;\n\n\t\tthis.validateSpanIndex();\n\t\tconst currentSpan = this.dateSpans[this.currentDateSpanIndex];\n\n\t\t// If date is in span, remove it\n\t\tif (this.removeDateInSpan(date)) {\n\t\t\tif (isSystemSet) {\n\t\t\t\t// After remove crash rerun to set TO value of fixed span length :316\n\t\t\t\tthis.selectDateInSpan(date, emit, isSystemSet);\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (currentSpan.from === null || currentSpan.to !== null || date.getTime() < currentSpan.from.getTime()) {\n\t\t\t// If lockSpanStartDate move to day befre that matches\n\t\t\tif (this.options().lockSpanStartDate && this.dateSpans[0].from.getDay() !== date.getDay()) {\n\t\t\t\tconst diff = date.getDate() - (date.getDay() - this.dateSpans[0].from.getDay());\n\t\t\t\tdate = new Date(new Date(date).setDate(diff));\n\t\t\t}\n\n\t\t\tcurrentSpan.from = date;\n\t\t\tcurrentSpan.to = null;\n\t\t\tif (this.options().spanSize.min === this.options().spanSize.max) {\n\t\t\t\t// If spanSize is fixed. Set it directly\n\t\t\t\tthis.selectDateInSpan(new Date(date.getTime() + (this.options().spanSize.min - 1) * 24 * 60 * 60 * 1000), emit, true);\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\tif (!this.validateSpanSelection(currentSpan.from, date)) return;\n\n\t\t\tcurrentSpan.to = date;\n\t\t\tthis.increaseSpanIndex();\n\t\t\tthis.validateSpanIndex();\n\t\t}\n\n\t\tif (emit) this.emitValue(this.dateSpans);\n\t}\n\n\tprivate removeDateInSpan(date: Date): boolean {\n\t\tlet result = false;\n\t\tthis.dateSpans.forEach((span, index) => {\n\t\t\tif (\n\t\t\t\tspan.from &&\n\t\t\t\tspan.to &&\n\t\t\t\tspan.from.format('yyyyMMdd') <= date.format('yyyyMMdd') &&\n\t\t\t\tspan.to.format('yyyyMMdd') >= date.format('yyyyMMdd')\n\t\t\t) {\n\t\t\t\tresult = true;\n\t\t\t\tif (span.editable) {\n\t\t\t\t\tspan.from = null;\n\t\t\t\t\tspan.to = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn result;\n\t}\n\n\tprivate validateSpanSelection(from: Date, to: Date): boolean {\n\t\tconst spanSize = Math.round(Math.abs((from.setHours(0, 0, 0, 0) - to.setHours(0, 0, 0, 0)) / (24 * 60 * 60 * 1000))) + 1;\n\t\treturn spanSize >= this.options().spanSize.min && spanSize <= this.options().spanSize.max;\n\t}\n\n\tprivate validateSpanIndex() {\n\t\twhile (this.dateSpans[this.currentDateSpanIndex] && !this.dateSpans[this.currentDateSpanIndex].editable) {\n\t\t\t// Skip non editable fields\n\t\t\tthis.increaseSpanIndex();\n\t\t}\n\t\tif (!this.dateSpans[this.currentDateSpanIndex]) this.dateSpans.push({ from: null, to: null, editable: true });\n\t}\n\n\tprivate increaseSpanIndex() {\n\t\tif (this.options().numberOfSpans === 1) return;\n\n\t\tthis.currentDateSpanIndex = (this.currentDateSpanIndex + 1) % this.options().numberOfSpans;\n\t}\n\n\tdeselect() {\n\t\tthis.selectedDate = null;\n\t\tthis.selectedDateText = null;\n\t\tthis.currentView = null; // TODO: Set next if not minView\n\t\tthis.emitValue(null);\n\t}\n\n\tmonthStartDay(y: number, m: number): number {\n\t\t// Month start index\n\t\tconst d = new Date();\n\t\td.setDate(1);\n\t\td.setMonth(m - 1);\n\t\td.setFullYear(y);\n\t\tconst idx = d.getDay() + (this.sunFirst ? 0 : 6);\n\t\treturn idx >= 7 ? idx - 7 : idx;\n\t}\n\n\tdaysInMonth(m: number, y: number): number {\n\t\t// Return number of days of current month\n\t\treturn new Date(y, m, 0).getDate();\n\t}\n\n\tdaysInPrevMonth(m: number, y: number): number {\n\t\t// Return number of days of the previous month\n\t\tif (m === 1) {\n\t\t\tm = 12;\n\t\t\ty--;\n\t\t} else {\n\t\t\tm--;\n\t\t}\n\t\treturn this.daysInMonth(m, y);\n\t}\n\n\tisToday(date: Date): boolean {\n\t\treturn (\n\t\t\tdate.getDate() === this.today.getDate() &&\n\t\t\tdate.getMonth() === this.today.getMonth() &&\n\t\t\tdate.getFullYear() === this.today.getFullYear()\n\t\t);\n\t}\n\n\tisSelected(date: Date): boolean {\n\t\treturn (\n\t\t\tthis.selectedDate !== null &&\n\t\t\tdate.getDate() === this.selectedDate.getDate() &&\n\t\t\tdate.getMonth() === this.selectedDate.getMonth() &&\n\t\t\tdate.getFullYear() === this.selectedDate.getFullYear()\n\t\t);\n\t}\n\n\t/**\n\t * Check if class is within a datespan and return class accordingly\n\t * @param date\n\t */\n\tgetDateSpanClasses(date: Date): string {\n\t\tlet classString = '';\n\t\tthis.dateSpans.forEach((span, index) => {\n\t\t\tconst indexString = index === 0 ? (index + 1).toString() : 'x';\n\t\t\tif (\n\t\t\t\tspan.from &&\n\t\t\t\tspan.to &&\n\t\t\t\tspan.from.format('yyyyMMdd') <= date.format('yyyyMMdd') &&\n\t\t\t\tspan.to.format('yyyyMMdd') >= date.format('yyyyMMdd')\n\t\t\t) {\n\t\t\t\tclassString = ` sp_${indexString}_middle`;\n\t\t\t}\n\n\t\t\tif (span.from && span.from.format('yyyyMMdd') === date.format('yyyyMMdd')) {\n\t\t\t\tclassString += ` sp_${indexString}_start`;\n\t\t\t}\n\n\t\t\t// If no end selected and day is start, then it should get end border\n\t\t\tif (\n\t\t\t\t(span.to && span.to.format('yyyyMMdd') === date.format('yyyyMMdd')) ||\n\t\t\t\t(!span.to && span.from && span.from.format('yyyyMMdd') === date.format('yyyyMMdd'))\n\t\t\t) {\n\t\t\t\tclassString += ` sp_${indexString}_end`;\n\t\t\t}\n\t\t});\n\n\t\treturn classString;\n\t}\n\n\t/**\n\t * Validate that date is within min/max date\n\t * @param date\n\t */\n\tisValid(date: Date): boolean {\n\t\tconst valid1 = this.minDate === null || date.format('yyyyMMdd') >= (this.minDate as Date).format('yyyyMMdd');\n\t\tconst valid2 = this.maxDate === null || date.format('yyyyMMdd') <= (this.maxDate as Date).format('yyyyMMdd');\n\n\t\treturn valid1 && valid2;\n\t}\n\n\tcreateMonth(m: number, y: number): void {\n\t\tthis.dates.length = 0;\n\t\tconst monthStart = this.monthStartDay(y, m);\n\t\tconst dInThisM = this.daysInMonth(m, y);\n\t\tconst dInPrevM = this.daysInPrevMonth(m, y);\n\t\tconst sunIdx = this.sunFirst ? 0 : 6;\n\n\t\tlet dayNbr = 1;\n\t\tfor (let i = 1; i <= 6; i++) {\n\t\t\tconst week: Array<Day> = [];\n\t\t\tif (i === 1) {\n\t\t\t\tconst pm = dInPrevM - monthStart + 1;\n\t\t\t\t// Previous month\n\t\t\t\tfor (let j = pm; j <= dInPrevM; j++) {\n\t\t\t\t\tweek.push({ date: new Date(y, m - 2, j), day: j, month: m - 1, year: y, sun: week.length === sunIdx });\n\t\t\t\t}\n\t\t\t\t// Current month\n\t\t\t\tconst daysLeft = 7 - week.length;\n\t\t\t\tfor (let j = 0; j < daysLeft; j++) {\n\t\t\t\t\tweek.push({ date: new Date(y, m - 1, dayNbr), day: dayNbr, month: m, year: y, sun: week.length === sunIdx });\n\t\t\t\t\tdayNbr++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Rest of the weeks\n\t\t\t\tfor (let j = 1; j < 8; j++) {\n\t\t\t\t\tif (dayNbr > dInThisM) {\n\t\t\t\t\t\t// Next month\n\t\t\t\t\t\tdayNbr = 1;\n\t\t\t\t\t\tm++;\n\t\t\t\t\t}\n\t\t\t\t\tweek.push({ date: new Date(y, m - 1, dayNbr), day: dayNbr, month: m, year: y, sun: week.length === sunIdx });\n\t\t\t\t\tdayNbr++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.dates.push(week);\n\t\t}\n\t}\n\n\thandleErrors() {\n\t\tthis.currentError = GlobalValidator.validateFormControl(\n\t\t\tthis.translateService,\n\t\t\tthis.controlDir.control as UntypedFormControl,\n\t\t\tthis.errorMessages,\n\t\t);\n\t}\n\n\t/**\n\t * Recreate so we always get the latest options\n\t */\n\tpublic options() {\n\t\treturn new DatepickerOptions(this.overrideOptions);\n\t}\n}\n","import { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport { Helper } from '../Helpers/helper';\nimport {\n\tComponent,\n\tOutput,\n\tInput,\n\tEventEmitter,\n\tDirective,\n\tProvider,\n\tforwardRef,\n\tElementRef,\n\tViewChild,\n\tInjector,\n\tEnvironmentInjector,\n\tSelf,\n\tinject,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, NgControl, UntypedFormControl } from '@angular/forms';\nimport { GlobalValidator } from '../Classes/globalValidator';\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-timepicker',\n\ttemplate: `\n\t\t<div class=\"wallInput\" [class.hasIcon]=\"icon != null\" [class.twoFields]=\"view.length == 4\">\n\t\t\t<ng-template [ngIf]=\"icon != null\">\n\t\t\t\t<visiba-svg class=\"iconSvg\" [a]=\"icon\"></visiba-svg>\n\t\t\t</ng-template>\n\t\t\t<div class=\"timeField hour\" *ngIf=\"view.toLowerCase().indexOf('hh') > -1\">\n\t\t\t\t<div class=\"wallStyling\">\n\t\t\t\t\t<input\n\t\t\t\t\t\t[tabindex]=\"tabInd\"\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t[(ngModel)]=\"hourModel\"\n\t\t\t\t\t\t[readonly]=\"readonly\"\n\t\t\t\t\t\t[maxLength]=\"2\"\n\t\t\t\t\t\t(ngModelChange)=\"onModelChange()\"\n\t\t\t\t\t\t[placeholder]=\"localPlaceholderHours\"\n\t\t\t\t\t\t(focus)=\"showList('hour')\"\n\t\t\t\t\t\t(click)=\"showList('hour')\"\n\t\t\t\t\t\t(keypress)=\"keyPress($event)\"\n\t\t\t\t\t\t(blur)=\"blur($event, 'hour')\"\n\t\t\t\t\t\t(keydown.arrowdown)=\"arrowMove(1)\"\n\t\t\t\t\t\t(keydown.arrowup)=\"arrowMove(-1)\"\n\t\t\t\t\t\t(keyup.esc)=\"hideList('hour')\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div #hourListEl class=\"list\" [hidden]=\"!hourListVisible\">\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<ng-template ngFor let-d [ngForOf]=\"hourTimeList\">\n\t\t\t\t\t\t\t<li\n\t\t\t\t\t\t\t\t(click)=\"setValue('hour', d)\"\n\t\t\t\t\t\t\t\t[class.selected]=\"hourModel == d || '0' + hourModel == d\"\n\t\t\t\t\t\t\t\t[class.targeted]=\"d === hourTargetedValue\"\n\t\t\t\t\t\t\t\t(mouseover)=\"hourTargetedValue = d\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{{ d }}\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"timeSeperator\" *ngIf=\"view.length == 4\">:</div>\n\t\t\t<div class=\"timeField minute\" *ngIf=\"view.indexOf('mm') > -1\">\n\t\t\t\t<div class=\"wallStyling\">\n\t\t\t\t\t<input\n\t\t\t\t\t\t[tabindex]=\"tabInd\"\n\t\t\t\t\t\t#minuteInput\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t[(ngModel)]=\"minuteModel\"\n\t\t\t\t\t\t[readonly]=\"readonly\"\n\t\t\t\t\t\t[maxLength]=\"2\"\n\t\t\t\t\t\t(ngModelChange)=\"onModelChange()\"\n\t\t\t\t\t\t[placeholder]=\"localPlaceholderMinutes\"\n\t\t\t\t\t\t(focus)=\"showList('minute')\"\n\t\t\t\t\t\t(click)=\"showList('minute')\"\n\t\t\t\t\t\t(keypress)=\"keyPress($event)\"\n\t\t\t\t\t\t(blur)=\"blur($event, 'minute')\"\n\t\t\t\t\t\t(keydown.arrowdown)=\"arrowMove(1)\"\n\t\t\t\t\t\t(keydown.arrowup)=\"arrowMove(-1)\"\n\t\t\t\t\t\t(keyup.esc)=\"hideList('minute')\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div #minuteListEl class=\"list\" [hidden]=\"!minuteListVisible\">\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<ng-template ngFor let-d [ngForOf]=\"minuteTimeList\">\n\t\t\t\t\t\t\t<li\n\t\t\t\t\t\t\t\t(click)=\"setValue('minute', d)\"\n\t\t\t\t\t\t\t\t[class.selected]=\"minuteModel == d || '0' + minuteModel == d\"\n\t\t\t\t\t\t\t\t[class.targeted]=\"d === minuteTargetedValue\"\n\t\t\t\t\t\t\t\t(mouseover)=\"minuteTargetedValue = d\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{{ d }}\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<label class=\"value\" [class.svg]=\"icon != null\">{{ localPlaceholder }}</label>\n\t\t\t<span class=\"error\" [class.value]=\"model != null\">{{ currentError }}</span>\n\t\t</div>\n\t`,\n\thost: {\n\t\t'[class.readonly]': 'readonly',\n\t},\n})\nexport class VisibaTimepickerComponent implements ControlValueAccessor {\n\t@Input() tabInd: number = 0;\n\t@Input() icon: string = null;\n\t@Input() placeholder: string = '';\n\t@Input() view: string = 'hhmm'; // HHmm, HH, mm, hhmm, hh\n\t@Input('modelValue') model: Date = null;\n\t@Output() modelChange: any;\n\t@Input() readonly: boolean = false;\n\t@Input() errorMessages: { [name: string]: string } | string = 'default';\n\n\t@ViewChild('minuteListEl', { static: false }) minuteListEl: ElementRef;\n\t@ViewChild('hourListEl', { static: false }) hourListEl: ElementRef;\n\t@ViewChild('minuteInput', { static: false }) minuteInputEl: ElementRef;\n\n\thourTimeList: Array<string> = [];\n\thourListVisible: boolean = false;\n\thourTargetedValue: string = 'dummy';\n\n\tminuteTimeList: Array<string> = [];\n\tminuteListVisible: boolean = false;\n\tminuteTargetedValue: string = 'dummy';\n\n\tcurrentError: string = null;\n\thourModel: string = null;\n\tminuteModel: string = null;\n\tlocalPlaceholder: string = null;\n\tlocalPlaceholderHours: string = null;\n\tlocalPlaceholderMinutes: string = null;\n\n\tconstructor(\n\t\tpublic elem: ElementRef,\n\t\t@Self() public controlDir: NgControl,\n\t\tprivate helper: Helper,\n\t\tprivate translateService: TranslateService,\n\t) {\n\t\tcontrolDir.valueAccessor = this;\n\n\t\tthis.modelChange = new EventEmitter();\n\t}\n\n\tngOnInit() {\n\t\tfor (let i = 0; i < (this.view.indexOf('HH') > -1 ? 24 : 12); i++) {\n\t\t\tthis.hourTimeList.push(this.helper.number.padZero(i).toString());\n\t\t}\n\n\t\tfor (let j = 0; j < 60; j += 5) {\n\t\t\tthis.minuteTimeList.push(this.helper.number.padZero(j).toString());\n\t\t}\n\n\t\tif (this.placeholder !== null && this.placeholder !== '') {\n\t\t\tthis.localPlaceholder = this.translateService.get(this.placeholder);\n\t\t}\n\n\t\tthis.localPlaceholderHours = this.translateService.get('Common.Abbreviation.Hours24');\n\t\tthis.localPlaceholderMinutes = this.translateService.get('Common.Abbreviation.Minutes');\n\t}\n\n\twriteValue(value: Date) {\n\t\twindow.setTimeout(() => {\n\t\t\tthis.handleErrors();\n\t\t});\n\n\t\tif (typeof value !== 'undefined') {\n\t\t\tthis.model = value;\n\n\t\t\tthis.hourModel = value === null ? null : value.format(this.view.indexOf('hh') > -1 ? 'hh' : 'HH');\n\t\t\tthis.minuteModel = value === null ? null : value.format('mm');\n\n\t\t\tthis.hourTargetedValue = this.hourModel;\n\t\t\tthis.minuteTargetedValue = this.minuteModel;\n\t\t} else this.model = null;\n\t}\n\n\tonModelChange() {\n\t\tconst hour = String.isNullOrEmpty(this.hourModel) ? 0 : parseInt(this.hourModel);\n\t\tconst minute = String.isNullOrEmpty(this.minuteModel) ? 0 : parseInt(this.minuteModel);\n\n\t\tconst combValue = hour.toString().pad(2, '0') + ':' + minute.toString().pad(2, '0');\n\n\t\tif (\n\t\t\t(this.view.toLowerCase().indexOf('hh') > -1 && String.isNullOrEmpty(this.hourModel)) ||\n\t\t\t(this.view.indexOf('mm') > -1 && String.isNullOrEmpty(this.minuteModel))\n\t\t) {\n\t\t\tthis.model = null;\n\t\t} else {\n\t\t\tthis.model = new Date(new Date().setHours(hour, minute, 0, 0));\n\t\t}\n\n\t\tthis.emitValue(this.model);\n\n\t\tthis.hourTargetedValue = String.isNullOrEmpty(this.hourModel) ? null : this.hourModel.pad(2, '0');\n\t\tthis.minuteTargetedValue = String.isNullOrEmpty(this.minuteModel) ? null : this.minuteModel.pad(2, '0');\n\t}\n\n\t// Call to push value\n\tpropagateChange = (_: any) => {};\n\n\tregisterOnChange(fn) {\n\t\tthis.propagateChange = fn;\n\t}\n\n\tregisterOnTouch() {}\n\tregisterOnTouched() {}\n\n\temitValue(value: any) {\n\t\tthis.hideList('hour');\n\t\tthis.hideList('minute');\n\t\tthis.model = value;\n\t\tthis.modelChange.emit(value);\n\t\tthis.propagateChange(value);\n\t\tthis.handleErrors();\n\t}\n\n\tsetValue(type: 'hour' | 'minute', value: any) {\n\t\tthis[type + 'Model'] = value;\n\n\t\tthis.onModelChange();\n\n\t\tif (this.view.length === 4 && type === 'hour' && (this.minuteModel === null || this.minuteModel === '')) {\n\t\t\tthis.minuteInputEl.nativeElement.focus();\n\t\t}\n\t}\n\n\tshowList(type: 'hour' | 'minute') {\n\t\tconst el = this[type + 'ListEl'].nativeElement;\n\n\t\tif (this.readonly || this[type + 'ListVisible']) return;\n\n\t\tthis.hourListVisible = false;\n\t\tthis.minuteListVisible = false;\n\n\t\tthis[type + 'ListVisible'] = true;\n\n\t\twindow.setTimeout(() => {\n\t\t\tconst doc = document.getElementsByTagName('html')[0];\n\t\t\tdoc.addEventListener('click', this.listClickCheck, false);\n\t\t\tif (el.querySelector('.targeted') !== null) {\n\t\t\t\tel.scrollTop = el.querySelector('.targeted').offsetTop - 60;\n\t\t\t} else if (this.view.indexOf('HH') > -1) {\n\t\t\t\tel.scrollTop = 175;\n\t\t\t} else {\n\t\t\t\tel.scrollTop = 0;\n\t\t\t}\n\t\t});\n\t}\n\n\thideList(type: 'hour' | 'minute') {\n\t\tthis[type + 'ListVisible'] = false;\n\t\tconst doc = document.getElementsByTagName('html')[0];\n\t\tdoc.removeEventListener('click', this.listClickCheck, false);\n\t}\n\n\tblur(e: any, type: 'hour' | 'minute') {\n\t\tif (e.relatedTarget !== null) {\n\t\t\t// Needed to be able to select option with mouse click as the blur event is triggered on click outside.\n\t\t\tthis.hideList(type);\n\t\t}\n\t}\n\n\tkeyPress(event: KeyboardEvent) {\n\t\tif (event.keyCode === 46 || event.keyCode === 58 || (event.keyCode >= 48 && event.keyCode <= 57)) {\n\t\t\treturn;\n\t\t}\n\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\n\t\tif (event.type === 'keydown') return;\n\n\t\tconst type: 'hour' | 'minute' = this.minuteInputEl.nativeElement !== document.activeElement ? 'hour' : 'minute';\n\n\t\tswitch (event.key) {\n\t\t\tcase 'Enter':\n\t\t\t\tif (this[type + 'ListVisible']) {\n\t\t\t\t\tthis.setValue(type, this[type + 'TargetedValue']);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'Escape':\n\t\t\t\tthis.hideList(type);\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tlistClickCheck = (event) => {\n\t\tif (\n\t\t\tthis.hourListVisible &&\n\t\t\tevent.target &&\n\t\t\tthis.elem.nativeElement !== event.target &&\n\t\t\t!this.elem.nativeElement.contains(event.target)\n\t\t) {\n\t\t\tthis.hideList('hour');\n\t\t}\n\t\tif (\n\t\t\tthis.minuteListVisible &&\n\t\t\tevent.target &&\n\t\t\tthis.elem.nativeElement !== event.target &&\n\t\t\t!this.elem.nativeElement.contains(event.target)\n\t\t) {\n\t\t\tthis.hideList('minute');\n\t\t}\n\t};\n\n\tarrowMove(direction: number) {\n\t\tif (this.hourListVisible === false && this.minuteListVisible === false) {\n\t\t\tconst type: 'hour' | 'minute' = this.minuteInputEl.nativeElement !== document.activeElement ? 'hour' : 'minute';\n\t\t\tthis.showList(type);\n\t\t}\n\n\t\tconst type: 'hour' | 'minute' = this.hourListVisible ? 'hour' : 'minute';\n\n\t\tlet pos = -1;\n\t\tif (this[type + 'TargetedValue'] !== null) pos = this[type + 'TimeList'].indexOf(this[type + 'TargetedValue']);\n\n\t\tconst newPos = pos + direction;\n\n\t\tif (newPos >= 0 && newPos < this[type + 'TimeList'].length) this[type + 'TargetedValue'] = this[type + 'TimeList'][newPos];\n\n\t\tconst targetElement = this[type + 'ListEl'].nativeElement.querySelector('.targeted');\n\t\tif (targetElement !== null) this[type + 'ListEl'].nativeElement.scrollTop = targetElement.offsetTop - targetElement.clientHeight;\n\t}\n\n\thandleErrors() {\n\t\tthis.currentError = GlobalValidator.validateFormControl(\n\t\t\tthis.translateService,\n\t\t\tthis.controlDir.control as UntypedFormControl,\n\t\t\tthis.errorMessages,\n\t\t);\n\t}\n}\n","import { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport {\n\tComponent,\n\tOutput,\n\tInput,\n\tEventEmitter,\n\tElementRef,\n\tDirective,\n\tProvider,\n\tforwardRef,\n\tInjector,\n\tViewChild,\n\tEnvironmentInjector,\n\tSelf,\n\tinject,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, UntypedFormControl, NgControl } from '@angular/forms';\nimport { GlobalValidator } from '../Classes/globalValidator';\nimport { parse, format, isValidNumber } from 'libphonenumber-js';\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-tel',\n\ttemplate: `\n\t\t<div class=\"wallInput wallStyling\" [class.hasIcon]=\"icon != null\">\n\t\t\t<visiba-svg *ngIf=\"icon != null\" class=\"iconSvg\" [color]=\"iconColor\" [a]=\"icon\"></visiba-svg>\n\t\t\t<label [class.value]=\"number != null && number != ''\" [class.svg]=\"icon != null\">{{ localPlaceholder }}</label>\n\t\t\t<input\n\t\t\t\t[tabindex]=\"tabInd\"\n\t\t\t\ttype=\"tel\"\n\t\t\t\t[readonly]=\"readonly\"\n\t\t\t\t[(ngModel)]=\"number\"\n\t\t\t\t[placeholder]=\"localPlaceholder\"\n\t\t\t\t(ngModelChange)=\"validateAndEmitValue()\"\n\t\t\t\t(focus)=\"suggestnumberCode()\"\n\t\t\t\t(blur)=\"clearnumberCode()\"\n\t\t\t\t(click)=\"suggestnumberCode()\"\n\t\t\t/>\n\t\t\t<div class=\"countrySelection\">\n\t\t\t\t<visiba-svg (click)=\"toggleCountryList()\" [color]=\"iconColor\" a=\"Globe\"></visiba-svg>\n\t\t\t\t<visiba-svg (click)=\"toggleCountryList()\" [color]=\"iconColor\" a=\"ArrowDown\"></visiba-svg>\n\t\t\t</div>\n\t\t\t<div class=\"select\" [class.open]=\"showList\" #ulWrap>\n\t\t\t\t<ul>\n\t\t\t\t\t<ng-template ngFor let-c [ngForOf]=\"countriesFiltered\">\n\t\t\t\t\t\t<li\n\t\t\t\t\t\t\t[class.selected]=\"c.countryCode === selectedCountry?.countryCode\"\n\t\t\t\t\t\t\t[class.targeted]=\"c.countryCode === targetedCountry?.countryCode\"\n\t\t\t\t\t\t\t(click)=\"countryChange(c)\"\n\t\t\t\t\t\t\t(mouseover)=\"targetedCountry = c\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span [innerHtml]=\"c.searchName\"></span> <span class=\"code\">+ {{ c.numberCode }}</span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ng-template>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<span class=\"error\" [class.value]=\"number != null && number != ''\">{{ currentError }}</span>\n\t\t</div>\n\t`,\n\thost: {\n\t\t'[class.readonly]': 'readonly',\n\t},\n})\nexport class VisibaTelComponent implements ControlValueAccessor {\n\t@Input() tabInd = 0;\n\t@Input() icon: string = null;\n\t@Input() iconColor: string = null;\n\t@Input() country: string = µ.LicenceHolder.CountryCode;\n\t@Input() placeholder = '';\n\t@Input() staticplaceholder = '';\n\t@Input() readonly: boolean;\n\t@Input() errorMessages: { [name: string]: string } | string = 'default';\n\t@Input('modeValue') number: string = null;\n\n\t@ViewChild('ulWrap', { static: false }) ulWrap: ElementRef;\n\n\t@Output() onChange = new EventEmitter<string>();\n\n\tcurrentError: string = null;\n\tselectedCountry: any = null;\n\ttargetedCountry: any = null;\n\tshowList = false;\n\tlocalPlaceholder: string = null;\n\n\tcountries: any[] = [\n\t\t//{ countryCode: 'AC', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'AD', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'AX', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'BL', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'BQ', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'CW', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'ME', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'MF', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'MM', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'PS', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'RS', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'SX', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'TA', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'TC', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'VA', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'VG', 'DescriptiveName': null, 'delete': true },\n\t\t//{ countryCode: 'VI', 'DescriptiveName': null, 'delete': true },\n\t\t{ countryCode: 'AF', name: 'Afghanistan', nativeName: 'افغانستان', numberCode: '93' },\n\t\t{ countryCode: 'AL', name: 'Albania', nativeName: 'Shqipëria', numberCode: '355' },\n\t\t{ countryCode: 'DZ', name: 'Algeria', nativeName: 'الجزائر', numberCode: '213' },\n\t\t{ countryCode: 'AS', name: 'American Samoa', nativeName: 'American Samoa', numberCode: '1684' },\n\t\t{ countryCode: 'AO', name: 'Angola', nativeName: 'Angola', numberCode: '244' },\n\t\t{ countryCode: 'AI', name: 'Anguilla', nativeName: 'Anguilla', numberCode: '1264' },\n\t\t{ countryCode: 'AG', name: 'Antigua and Barbuda', nativeName: 'Antigua and Barbuda', numberCode: '1268' },\n\t\t{ countryCode: 'AR', name: 'Argentina', nativeName: 'Argentina', numberCode: '54' },\n\t\t{ countryCode: 'AM', name: 'Armenia', nativeName: 'Հայաստան', numberCode: '374' },\n\t\t{ countryCode: 'AW', name: 'Aruba', nativeName: 'Aruba', numberCode: '297' },\n\t\t{ countryCode: 'AU', name: 'Australia', nativeName: 'Australia', numberCode: '61' },\n\t\t{ countryCode: 'AT', name: 'Austria', nativeName: 'Österreich', numberCode: '43' },\n\t\t{ countryCode: 'AZ', name: 'Azerbaijan', nativeName: 'Azərbaycan', numberCode: '994' },\n\t\t{ countryCode: 'BH', name: 'Bahrain', nativeName: '‏البحرين', numberCode: '973' },\n\t\t{ countryCode: 'BD', name: 'Bangladesh', nativeName: 'বাংলাদেশ', numberCode: '880' },\n\t\t{ countryCode: 'BB', name: 'Barbados', nativeName: 'Barbados', numberCode: '1246' },\n\t\t{ countryCode: 'BY', name: 'Belarus', nativeName: 'Белару́сь', numberCode: '375' },\n\t\t{ countryCode: 'BE', name: 'Belgium', nativeName: 'België', numberCode: '32' },\n\t\t{ countryCode: 'BZ', name: 'Belize', nativeName: 'Belize', numberCode: '501' },\n\t\t{ countryCode: 'BJ', name: 'Benin', nativeName: 'Bénin', numberCode: '229' },\n\t\t{ countryCode: 'BM', name: 'Bermuda', nativeName: 'Bermuda', numberCode: '1441' },\n\t\t{ countryCode: 'BT', name: 'Bhutan', nativeName: 'ʼbrug-yul', numberCode: '975' },\n\t\t{ countryCode: 'BO', name: 'Bolivia', nativeName: 'Bolivia', numberCode: '591' },\n\t\t{ countryCode: 'BA', name: 'Bosnia and Herzegovina', nativeName: 'Bosna i Hercegovina', numberCode: '387' },\n\t\t{ countryCode: 'BW', name: 'Botswana', nativeName: 'Botswana', numberCode: '267' },\n\t\t{ countryCode: 'BR', name: 'Brazil', nativeName: 'Brasil', numberCode: '55' },\n\t\t{ countryCode: 'IO', name: 'British Indian Ocean Territory', nativeName: 'British Indian Ocean Territory', numberCode: '246' },\n\t\t{ countryCode: 'BN', name: 'Brunei', nativeName: 'Negara Brunei Darussalam', numberCode: '673' },\n\t\t{ countryCode: 'BG', name: 'Bulgaria', nativeName: 'България', numberCode: '359' },\n\t\t{ countryCode: 'BF', name: 'Burkina Faso', nativeName: 'Burkina Faso', numberCode: '226' },\n\t\t{ countryCode: 'BI', name: 'Burundi', nativeName: 'Burundi', numberCode: '257' },\n\t\t{ countryCode: 'KH', name: 'Cambodia', nativeName: 'Kâmpŭchéa', numberCode: '855' },\n\t\t{ countryCode: 'CM', name: 'Cameroon', nativeName: 'Cameroon', numberCode: '237' },\n\t\t{ countryCode: 'CA', name: 'Canada', nativeName: 'Canada', numberCode: '1' },\n\t\t{ countryCode: 'CV', name: 'Cape Verde', nativeName: 'Cabo Verde', numberCode: '238' },\n\t\t{ countryCode: 'KY', name: 'Cayman Islands', nativeName: 'Cayman Islands', numberCode: '1345' },\n\t\t{ countryCode: 'CF', name: 'Central African Republic', nativeName: 'Ködörösêse tî Bêafrîka', numberCode: '236' },\n\t\t{ countryCode: 'TD', name: 'Chad', nativeName: 'Tchad', numberCode: '235' },\n\t\t{ countryCode: 'CL', name: 'Chile', nativeName: 'Chile', numberCode: '56' },\n\t\t{ countryCode: 'CN', name: 'China', nativeName: '中国', numberCode: '86' },\n\t\t{ countryCode: 'CX', name: 'Christmas Island', nativeName: 'Christmas Island', numberCode: '61' },\n\t\t{ countryCode: 'CC', name: 'Cocos (Keeling) Islands', nativeName: 'Cocos (Keeling) Islands', numberCode: '61' },\n\t\t{ countryCode: 'CO', name: 'Colombia', nativeName: 'Colombia', numberCode: '57' },\n\t\t{ countryCode: 'KM', name: 'Comoros', nativeName: 'Komori', numberCode: '269' },\n\t\t{ countryCode: 'CK', name: 'Cook Islands', nativeName: 'Cook Islands', numberCode: '682' },\n\t\t{ countryCode: 'CR', name: 'Costa Rica', nativeName: 'Costa Rica', numberCode: '506' },\n\t\t{ countryCode: 'HR', name: 'Croatia', nativeName: 'Hrvatska', numberCode: '385' },\n\t\t{ countryCode: 'CU', name: 'Cuba', nativeName: 'Cuba', numberCode: '53' },\n\t\t{ countryCode: 'CY', name: 'Cyprus', nativeName: 'Κύπρος', numberCode: '357' },\n\t\t{ countryCode: 'CZ', name: 'Czech Republic', nativeName: 'Česká republika', numberCode: '420' },\n\t\t{\n\t\t\tcountryCode: 'CD',\n\t\t\tname: 'Democratic Republic of the Congo',\n\t\t\tnativeName: 'République démocratique du Congo',\n\t\t\tnumberCode: '243',\n\t\t},\n\t\t{ countryCode: 'DK', name: 'Denmark', nativeName: 'Danmark', numberCode: '45' },\n\t\t{ countryCode: 'DJ', name: 'Djibouti', nativeName: 'Djibouti', numberCode: '253' },\n\t\t{ countryCode: 'DM', name: 'Dominica', nativeName: 'Dominica', numberCode: '1767' },\n\t\t{ countryCode: 'DO', name: 'Dominican Republic', nativeName: 'República Dominicana', numberCode: '1809' },\n\t\t{ countryCode: 'TL', name: 'East Timor', nativeName: 'Timor- Leste', numberCode: '670' },\n\t\t{ countryCode: 'EC', name: 'Ecuador', nativeName: 'Ecuador', numberCode: '593' },\n\t\t{ countryCode: 'EG', name: 'Egypt', nativeName: 'مصر‎', numberCode: '20' },\n\t\t{ countryCode: 'SV', name: 'El Salvador', nativeName: 'El Salvador', numberCode: '503' },\n\t\t{ countryCode: 'GQ', name: 'Equatorial Guinea', nativeName: 'Guinea Ecuatorial', numberCode: '240' },\n\t\t{ countryCode: 'ER', name: 'Eritrea', nativeName: 'ኤርትራ', numberCode: '291' },\n\t\t{ countryCode: 'EE', name: 'Estonia', nativeName: 'Eesti', numberCode: '372' },\n\t\t{ countryCode: 'ET', name: 'Ethiopia', nativeName: 'ኢትዮጵያ', numberCode: '251' },\n\t\t{ countryCode: 'FK', name: 'Falkland Islands', nativeName: 'Falkland Islands', numberCode: '500' },\n\t\t{ countryCode: 'FO', name: 'Faroe Islands', nativeName: 'Føroyar', numberCode: '298' },\n\t\t{ countryCode: 'FM', name: 'Federated States of Micronesia', nativeName: 'Micronesia', numberCode: '691' },\n\t\t{ countryCode: 'FJ', name: 'Fiji', nativeName: 'Fiji', numberCode: '679' },\n\t\t{ countryCode: 'FI', name: 'Finland', nativeName: 'Suomi', numberCode: '358' },\n\t\t{ countryCode: 'FR', name: 'France', nativeName: 'France', numberCode: '33' },\n\t\t{ countryCode: 'GF', name: 'French Guiana', nativeName: 'Guyane française', numberCode: '594' },\n\t\t{ countryCode: 'PF', name: 'French Polynesia', nativeName: 'Polynésie française', numberCode: '689' },\n\t\t{ countryCode: 'GA', name: 'Gabon', nativeName: 'Gabon', numberCode: '241' },\n\t\t{ countryCode: 'GE', name: 'Georgia', nativeName: 'საქართველო', numberCode: '995' },\n\t\t{ countryCode: 'DE', name: 'Germany', nativeName: 'Deutschland', numberCode: '49' },\n\t\t{ countryCode: 'GH', name: 'Ghana', nativeName: 'Ghana', numberCode: '233' },\n\t\t{ countryCode: 'GI', name: 'Gibraltar', nativeName: 'Gibraltar', numberCode: '350' },\n\t\t{ countryCode: 'GR', name: 'Greece', nativeName: 'Ελλάδα', numberCode: '30' },\n\t\t{ countryCode: 'GL', name: 'Greenland', nativeName: 'Kalaallit Nunaat', numberCode: '299' },\n\t\t{ countryCode: 'GD', name: 'Grenada', nativeName: 'Grenada', numberCode: '1473' },\n\t\t{ countryCode: 'GP', name: 'Guadeloupe', nativeName: 'Guadeloupe', numberCode: '590' },\n\t\t{ countryCode: 'GU', name: 'Guam', nativeName: 'Guam', numberCode: '1671' },\n\t\t{ countryCode: 'GT', name: 'Guatemala', nativeName: 'Guatemala', numberCode: '502' },\n\t\t{ countryCode: 'GG', name: 'Guernsey', nativeName: 'Guernsey', numberCode: '44' },\n\t\t{ countryCode: 'GN', name: 'Guinea', nativeName: 'Guinée', numberCode: '224' },\n\t\t{ countryCode: 'GW', name: 'Guinea- Bissau', nativeName: 'Guiné- Bissau', numberCode: '245' },\n\t\t{ countryCode: 'GY', name: 'Guyana', nativeName: 'Guyana', numberCode: '592' },\n\t\t{ countryCode: 'HT', name: 'Haiti', nativeName: 'Haïti', numberCode: '509' },\n\t\t{ countryCode: 'HN', name: 'Honduras', nativeName: 'Honduras', numberCode: '504' },\n\t\t{ countryCode: 'HK', name: 'Hong Kong', nativeName: '香港', numberCode: '852' },\n\t\t{ countryCode: 'HU', name: 'Hungary', nativeName: 'Magyarország', numberCode: '36' },\n\t\t{ countryCode: 'IS', name: 'Iceland', nativeName: 'Ísland', numberCode: '354' },\n\t\t{ countryCode: 'IN', name: 'India', nativeName: 'भारत', numberCode: '91' },\n\t\t{ countryCode: 'ID', name: 'Indonesia', nativeName: 'Indonesia', numberCode: '62' },\n\t\t{ countryCode: 'IR', name: 'Iran', nativeName: 'Irān', numberCode: '98' },\n\t\t{ countryCode: 'IQ', name: 'Iraq', nativeName: 'العراق', numberCode: '964' },\n\t\t{ countryCode: 'IE', name: 'Ireland', nativeName: 'Éire', numberCode: '353' },\n\t\t{ countryCode: 'IM', name: 'Isle of Man', nativeName: 'Isle of Man', numberCode: '44' },\n\t\t{ countryCode: 'IL', name: 'Israel', nativeName: 'יִשְׂרָאֵל', numberCode: '972' },\n\t\t{ countryCode: 'IT', name: 'Italy', nativeName: 'Italia', numberCode: '39' },\n\t\t{ countryCode: 'CI', name: 'Ivory Coast', nativeName: \"Côte d'Ivoire\", numberCode: '225' },\n\t\t{ countryCode: 'JM', name: 'Jamaica', nativeName: 'Jamaica', numberCode: '1876' },\n\t\t{ countryCode: 'JP', name: 'Japan', nativeName: '日本', numberCode: '81' },\n\t\t{ countryCode: 'JE', name: 'Jersey', nativeName: 'Jersey', numberCode: '44' },\n\t\t{ countryCode: 'JO', name: 'Jordan', nativeName: 'الأردن', numberCode: '962' },\n\t\t{ countryCode: 'KZ', name: 'Kazakhstan', nativeName: 'Қазақстан', numberCode: '76' },\n\t\t{ countryCode: 'KE', name: 'Kenya', nativeName: 'Kenya', numberCode: '254' },\n\t\t{ countryCode: 'KI', name: 'Kiribati', nativeName: 'Kiribati', numberCode: '686' },\n\t\t{ countryCode: 'KW', name: 'Kuwait', nativeName: 'الكويت', numberCode: '965' },\n\t\t{ countryCode: 'KG', name: 'Kyrgyzstan', nativeName: 'Кыргызстан', numberCode: '996' },\n\t\t{ countryCode: 'LA', name: 'Laos', nativeName: 'ສປປລາວ', numberCode: '856' },\n\t\t{ countryCode: 'LV', name: 'Latvia', nativeName: 'Latvija', numberCode: '371' },\n\t\t{ countryCode: 'LB', name: 'Lebanon', nativeName: 'لبنان', numberCode: '961' },\n\t\t{ countryCode: 'LS', name: 'Lesotho', nativeName: 'Lesotho', numberCode: '266' },\n\t\t{ countryCode: 'LR', name: 'Liberia', nativeName: 'Liberia', numberCode: '231' },\n\t\t{ countryCode: 'LY', name: 'Libya', nativeName: '‏ليبيا', numberCode: '218' },\n\t\t{ countryCode: 'LI', name: 'Liechtenstein', nativeName: 'Liechtenstein', numberCode: '423' },\n\t\t{ countryCode: 'LT', name: 'Lithuania', nativeName: 'Lietuva', numberCode: '370' },\n\t\t{ countryCode: 'LU', name: 'Luxembourg', nativeName: 'Luxembourg', numberCode: '352' },\n\t\t{ countryCode: 'MO', name: 'Macau', nativeName: '澳門', numberCode: '853' },\n\t\t{ countryCode: 'MG', name: 'Madagascar', nativeName: 'Madagasikara', numberCode: '261' },\n\t\t{ countryCode: 'MW', name: 'Malawi', nativeName: 'Malawi', numberCode: '265' },\n\t\t{ countryCode: 'MY', name: 'Malaysia', nativeName: 'Malaysia', numberCode: '60' },\n\t\t{ countryCode: 'MV', name: 'Maldives', nativeName: 'Maldives', numberCode: '960' },\n\t\t{ countryCode: 'ML', name: 'Mali', nativeName: 'Mali', numberCode: '223' },\n\t\t{ countryCode: 'MT', name: 'Malta', nativeName: 'Malta', numberCode: '356' },\n\t\t{ countryCode: 'MH', name: 'Marshall Islands', nativeName: 'M̧ajeļ', numberCode: '692' },\n\t\t{ countryCode: 'MQ', name: 'Martinique', nativeName: 'Martinique', numberCode: '596' },\n\t\t{ countryCode: 'MR', name: 'Mauritania', nativeName: 'موريتانيا', numberCode: '222' },\n\t\t{ countryCode: 'MU', name: 'Mauritius', nativeName: 'Maurice', numberCode: '230' },\n\t\t{ countryCode: 'YT', name: 'Mayotte', nativeName: 'Mayotte', numberCode: '262' },\n\t\t{ countryCode: 'MX', name: 'Mexico', nativeName: 'México', numberCode: '52' },\n\t\t{ countryCode: 'MD', name: 'Moldova', nativeName: 'Moldova', numberCode: '373' },\n\t\t{ countryCode: 'MC', name: 'Monaco', nativeName: 'Monaco', numberCode: '377' },\n\t\t{ countryCode: 'MN', name: 'Mongolia', nativeName: 'Монгол улс', numberCode: '976' },\n\t\t{ countryCode: 'MS', name: 'Montserrat', nativeName: 'Montserrat', numberCode: '1664' },\n\t\t{ countryCode: 'MA', name: 'Morocco', nativeName: 'المغرب', numberCode: '212' },\n\t\t{ countryCode: 'MZ', name: 'Mozambique', nativeName: 'Moçambique', numberCode: '258' },\n\t\t{ countryCode: 'NA', name: 'Namibia', nativeName: 'Namibia', numberCode: '264' },\n\t\t{ countryCode: 'NR', name: 'Nauru', nativeName: 'Nauru', numberCode: '674' },\n\t\t{ countryCode: 'NP', name: 'Nepal', nativeName: 'नेपाल', numberCode: '977' },\n\t\t{ countryCode: 'NL', name: 'Netherlands', nativeName: 'Nederland', numberCode: '31' },\n\t\t{ countryCode: 'NC', name: 'New Caledonia', nativeName: 'Nouvelle-Calédonie', numberCode: '687' },\n\t\t{ countryCode: 'NZ', name: 'New Zealand', nativeName: 'New Zealand', numberCode: '64' },\n\t\t{ countryCode: 'NI', name: 'Nicaragua', nativeName: 'Nicaragua', numberCode: '505' },\n\t\t{ countryCode: 'NE', name: 'Niger', nativeName: 'Niger', numberCode: '227' },\n\t\t{ countryCode: 'NG', name: 'Nigeria', nativeName: 'Nigeria', numberCode: '234' },\n\t\t{ countryCode: 'NU', name: 'Niue', nativeName: 'Niuē', numberCode: '683' },\n\t\t{ countryCode: 'NF', name: 'Norfolk Island', nativeName: 'Norfolk Island', numberCode: '672' },\n\t\t{ countryCode: 'KP', name: 'North Korea', nativeName: '북한', numberCode: '850' },\n\t\t{ countryCode: 'MP', name: 'Northern Mariana Islands', nativeName: 'Northern Mariana Islands', numberCode: '1670' },\n\t\t{ countryCode: 'NO', name: 'Norway', nativeName: 'Norge', numberCode: '47' },\n\t\t{ countryCode: 'OM', name: 'Oman', nativeName: 'عمان', numberCode: '968' },\n\t\t{ countryCode: 'PK', name: 'Pakistan', nativeName: 'Pakistan', numberCode: '92' },\n\t\t{ countryCode: 'PW', name: 'Palau', nativeName: 'Palau', numberCode: '680' },\n\t\t{ countryCode: 'PA', name: 'Panama', nativeName: 'Panamá', numberCode: '507' },\n\t\t{ countryCode: 'PG', name: 'Papua New Guinea', nativeName: 'Papua Niugini', numberCode: '675' },\n\t\t{ countryCode: 'PY', name: 'Paraguay', nativeName: 'Paraguay', numberCode: '595' },\n\t\t{ countryCode: 'PE', name: 'Peru', nativeName: 'Perú', numberCode: '51' },\n\t\t{ countryCode: 'PH', name: 'Philippines', nativeName: 'Pilipinas', numberCode: '63' },\n\t\t{ countryCode: 'PL', name: 'Poland', nativeName: 'Polska', numberCode: '48' },\n\t\t{ countryCode: 'PT', name: 'Portugal', nativeName: 'Portugal', numberCode: '351' },\n\t\t{ countryCode: 'PR', name: 'Puerto Rico', nativeName: 'Puerto Rico', numberCode: '1787' },\n\t\t{ countryCode: 'QA', name: 'Qatar', nativeName: 'قطر', numberCode: '974' },\n\t\t{ countryCode: 'MK', name: 'Republic of Macedonia', nativeName: 'Македонија', numberCode: '389' },\n\t\t{ countryCode: 'CG', name: 'Republic of the Congo', nativeName: 'République du Congo', numberCode: '242' },\n\t\t{ countryCode: 'RO', name: 'Romania', nativeName: 'România', numberCode: '40' },\n\t\t{ countryCode: 'RU', name: 'Russia', nativeName: 'Россия', numberCode: '7' },\n\t\t{ countryCode: 'RW', name: 'Rwanda', nativeName: 'Rwanda', numberCode: '250' },\n\t\t{ countryCode: 'RE', name: 'Réunion', nativeName: 'La Réunion', numberCode: '262' },\n\t\t{ countryCode: 'SH', name: 'Saint Helena', nativeName: 'Saint Helena', numberCode: '290' },\n\t\t{ countryCode: 'KN', name: 'Saint Kitts and Nevis', nativeName: 'Saint Kitts and Nevis', numberCode: '1869' },\n\t\t{ countryCode: 'LC', name: 'Saint Lucia', nativeName: 'Saint Lucia', numberCode: '1758' },\n\t\t{ countryCode: 'PM', name: 'Saint Pierre and Miquelon', nativeName: 'Saint- Pierre - et - Miquelon', numberCode: '508' },\n\t\t{\n\t\t\tcountryCode: 'VC',\n\t\t\tname: 'Saint Vincent and the Grenadines',\n\t\t\tnativeName: 'Saint Vincent and the Grenadines',\n\t\t\tnumberCode: '1784',\n\t\t},\n\t\t{ countryCode: 'WS', name: 'Samoa', nativeName: 'Samoa', numberCode: '685' },\n\t\t{ countryCode: 'SM', name: 'San Marino', nativeName: 'San Marino', numberCode: '378' },\n\t\t{ countryCode: 'SA', name: 'Saudi Arabia', nativeName: 'العربية السعودية', numberCode: '966' },\n\t\t{ countryCode: 'SN', name: 'Senegal', nativeName: 'Sénégal', numberCode: '221' },\n\t\t{ countryCode: 'SC', name: 'Seychelles', nativeName: 'Seychelles', numberCode: '248' },\n\t\t{ countryCode: 'SL', name: 'Sierra Leone', nativeName: 'Sierra Leone', numberCode: '232' },\n\t\t{ countryCode: 'SG', name: 'Singapore', nativeName: 'Singapore', numberCode: '65' },\n\t\t{ countryCode: 'SK', name: 'Slovakia', nativeName: 'Slovensko', numberCode: '421' },\n\t\t{ countryCode: 'SI', name: 'Slovenia', nativeName: 'Slovenija', numberCode: '386' },\n\t\t{ countryCode: 'SB', name: 'Solomon Islands', nativeName: 'Solomon Islands', numberCode: '677' },\n\t\t{ countryCode: 'SO', name: 'Somalia', nativeName: 'Soomaaliya', numberCode: '252' },\n\t\t{ countryCode: 'ZA', name: 'South Africa', nativeName: 'South Africa', numberCode: '27' },\n\t\t{ countryCode: 'KR', name: 'South Korea', nativeName: '대한민국', numberCode: '82' },\n\t\t{ countryCode: 'SS', name: 'South Sudan', nativeName: 'South Sudan', numberCode: '211' },\n\t\t{ countryCode: 'ES', name: 'Spain', nativeName: 'España', numberCode: '34' },\n\t\t{ countryCode: 'LK', name: 'Sri Lanka', nativeName: 'śrī laṃkāva', numberCode: '94' },\n\t\t{ countryCode: 'SD', name: 'Sudan', nativeName: 'السودان', numberCode: '249' },\n\t\t{ countryCode: 'SR', name: 'Suriname', nativeName: 'Suriname', numberCode: '597' },\n\t\t{ countryCode: 'SJ', name: 'Svalbard and Jan Mayen', nativeName: 'Svalbard og Jan Mayen', numberCode: '4779' },\n\t\t{ countryCode: 'SZ', name: 'Swaziland', nativeName: 'Swaziland', numberCode: '268' },\n\t\t{ countryCode: 'SE', name: 'Sweden', nativeName: 'Sverige', numberCode: '46' },\n\t\t{ countryCode: 'CH', name: 'Switzerland', nativeName: 'Schweiz', numberCode: '41' },\n\t\t{ countryCode: 'SY', name: 'Syria', nativeName: 'سوريا', numberCode: '963' },\n\t\t{ countryCode: 'ST', name: 'São Tomé and Príncipe', nativeName: 'São Tomé e Príncipe', numberCode: '239' },\n\t\t{ countryCode: 'TW', name: 'Taiwan', nativeName: '臺灣', numberCode: '886' },\n\t\t{ countryCode: 'TJ', name: 'Tajikistan', nativeName: 'Тоҷикистон', numberCode: '992' },\n\t\t{ countryCode: 'TZ', name: 'Tanzania', nativeName: 'Tanzania', numberCode: '255' },\n\t\t{ countryCode: 'TH', name: 'Thailand', nativeName: 'ประเทศไทย', numberCode: '66' },\n\t\t{ countryCode: 'BS', name: 'The Bahamas', nativeName: 'Bahamas', numberCode: '1242' },\n\t\t{ countryCode: 'GM', name: 'The Gambia', nativeName: 'Gambia', numberCode: '220' },\n\t\t{ countryCode: 'TG', name: 'Togo', nativeName: 'Togo', numberCode: '228' },\n\t\t{ countryCode: 'TK', name: 'Tokelau', nativeName: 'Tokelau', numberCode: '690' },\n\t\t{ countryCode: 'TO', name: 'Tonga', nativeName: 'Tonga', numberCode: '676' },\n\t\t{ countryCode: 'TT', name: 'Trinidad and Tobago', nativeName: 'Trinidad and Tobago', numberCode: '1868' },\n\t\t{ countryCode: 'TN', name: 'Tunisia', nativeName: 'تونس', numberCode: '216' },\n\t\t{ countryCode: 'TR', name: 'Turkey', nativeName: 'Türkiye', numberCode: '90' },\n\t\t{ countryCode: 'TM', name: 'Turkmenistan', nativeName: 'Türkmenistan', numberCode: '993' },\n\t\t{ countryCode: 'TV', name: 'Tuvalu', nativeName: 'Tuvalu', numberCode: '688' },\n\t\t{ countryCode: 'UG', name: 'Uganda', nativeName: 'Uganda', numberCode: '256' },\n\t\t{ countryCode: 'UA', name: 'Ukraine', nativeName: 'Україна', numberCode: '380' },\n\t\t{ countryCode: 'AE', name: 'United Arab Emirates', nativeName: 'دولة الإمارات العربية المتحدة', numberCode: '971' },\n\t\t{ countryCode: 'GB', name: 'United Kingdom', nativeName: 'United Kingdom', numberCode: '44' },\n\t\t{ countryCode: 'US', name: 'United States', nativeName: 'United States', numberCode: '1' },\n\t\t{ countryCode: 'UY', name: 'Uruguay', nativeName: 'Uruguay', numberCode: '598' },\n\t\t{ countryCode: 'UZ', name: 'Uzbekistan', nativeName: 'O‘zbekiston', numberCode: '998' },\n\t\t{ countryCode: 'VU', name: 'Vanuatu', nativeName: 'Vanuatu', numberCode: '678' },\n\t\t{ countryCode: 'VE', name: 'Venezuela', nativeName: 'Venezuela', numberCode: '58' },\n\t\t{ countryCode: 'VN', name: 'Vietnam', nativeName: 'Việt Nam', numberCode: '84' },\n\t\t{ countryCode: 'WF', name: 'Wallis and Futuna', nativeName: 'Wallis et Futuna', numberCode: '681' },\n\t\t{ countryCode: 'EH', name: 'Western Sahara', nativeName: 'الصحراء الغربية', numberCode: '212' },\n\t\t{ countryCode: 'YE', name: 'Yemen', nativeName: 'اليَمَن', numberCode: '967' },\n\t\t{ countryCode: 'ZM', name: 'Zambia', nativeName: 'Zambia', numberCode: '260' },\n\t\t{ countryCode: 'ZW', name: 'Zimbabwe', nativeName: 'Zimbabwe', numberCode: '263' },\n\t];\n\n\tcountriesFiltered = [];\n\tcountryListSearch = '';\n\n\tconstructor(\n\t\tprivate _elem: ElementRef,\n\t\t@Self() public controlDir: NgControl,\n\t\tprivate translateService: TranslateService,\n\t) {\n\t\tcontrolDir.valueAccessor = this;\n\t}\n\n\twriteValue(value: any) {\n\t\tthis.number = value;\n\t\tthis.validateAndEmitValue(false);\n\t}\n\n\t//Call to push value\n\tpropagateChange = (_: any) => {};\n\n\tregisterOnChange(fn) {\n\t\tthis.propagateChange = fn;\n\t}\n\n\tregisterOnTouch() {}\n\tregisterOnTouched() {}\n\n\tngOnInit() {\n\t\tconst countrySearch = this.countries.filter((item) => {\n\t\t\treturn item.countryCode === this.country;\n\t\t});\n\n\t\tif (countrySearch.length > 0) this.countryChange(countrySearch[0], false);\n\t\telse {\n\t\t\tconst defualtCountrySearch = this.countries.filter((item) => {\n\t\t\t\treturn item.countryCode === µ.LicenceHolder.CountryCode;\n\t\t\t});\n\t\t\tif (defualtCountrySearch.length > 0) {\n\t\t\t\tthis.countryChange(defualtCountrySearch[0], false);\n\t\t\t} else {\n\t\t\t\tthis.countryChange(this.countries[0], false);\n\t\t\t}\n\t\t}\n\t\tthis.localPlaceholder =\n\t\t\t(this.placeholder === '' ? '' : this.translateService.get(this.placeholder)) + (this._elem.nativeElement.required ? ' *' : '');\n\t}\n\n\ttoggleCountryList() {\n\t\tif (this.showList) this.hideCountryList();\n\t\telse this.showCountryList();\n\t}\n\n\tshowCountryList() {\n\t\tif (this.readonly) return;\n\n\t\tthis.showList = true;\n\t\tthis.countryListSearch = '';\n\t\tthis.filterCountries();\n\n\t\tconst doc = document.getElementsByTagName('html')[0];\n\t\twindow.setTimeout(() => {\n\t\t\tdoc.addEventListener('keyup', this.countrySelectKeyEvent, false);\n\t\t\tdoc.addEventListener('keydown', this.countrySelectKeyEvent, false);\n\t\t\tdoc.addEventListener('click', this.closeCountrySelectEventFunction, false);\n\t\t}, 10);\n\t}\n\n\thideCountryList() {\n\t\tthis.showList = false;\n\n\t\tconst doc = document.getElementsByTagName('html')[0];\n\t\tdoc.removeEventListener('keyup', this.countrySelectKeyEvent, false);\n\t\tdoc.removeEventListener('keydown', this.countrySelectKeyEvent, false);\n\t\tdoc.removeEventListener('click', this.closeCountrySelectEventFunction, false);\n\t}\n\n\tcloseCountrySelectEventFunction = (event) => {\n\t\tif (\n\t\t\tevent.target &&\n\t\t\tthis._elem.nativeElement.querySelector('.select') !== event.target &&\n\t\t\t!this._elem.nativeElement.querySelector('.select').contains(event.target)\n\t\t) {\n\t\t\tthis.hideCountryList();\n\t\t}\n\t};\n\tcountrySelectKeyEvent = (event: KeyboardEvent) => {\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\n\t\tif (event.type === 'keydown') return;\n\t\tswitch (event.key) {\n\t\t\tcase 'Enter':\n\t\t\t\tif (this.targetedCountry !== null) this.countryChange(this.targetedCountry);\n\t\t\t\tbreak;\n\t\t\tcase 'ArrowDown':\n\t\t\t\tthis.arrowMove(1);\n\t\t\t\tbreak;\n\t\t\tcase 'ArrowUp':\n\t\t\t\tthis.arrowMove(-1);\n\t\t\t\tbreak;\n\t\t\tcase 'Escape':\n\t\t\t\tthis.hideCountryList();\n\t\t\t\tbreak;\n\t\t\tcase 'Backspace':\n\t\t\t\tif (this.countryListSearch.length > 0) {\n\t\t\t\t\tthis.countryListSearch = this.countryListSearch.substring(0, this.countryListSearch.length - 1);\n\t\t\t\t\tthis.filterCountries();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (event.key.length === 1 && /[a-z ()]/i.test(event.key)) {\n\t\t\t\t\t// Saknas arabiska stöd\n\t\t\t\t\tthis.countryListSearch += event.key.toLowerCase();\n\t\t\t\t\tthis.filterCountries();\n\t\t\t\t}\n\t\t}\n\t};\n\n\tfilterCountries() {\n\t\tthis.countriesFiltered = this.countries.filter((c) => {\n\t\t\tconst result =\n\t\t\t\tc.name.toLowerCase().indexOf(this.countryListSearch) > -1 || c.nativeName.toLowerCase().indexOf(this.countryListSearch) > -1;\n\n\t\t\tif (result) {\n\t\t\t\tc.searchName = c.name;\n\t\t\t\tif (c.nativeName !== c.name) c.searchName += ` (${c.nativeName})`;\n\n\t\t\t\tconst regex = new RegExp('(' + this.countryListSearch + ')', 'i');\n\t\t\t\tc.searchName = c.searchName.replace(regex, '<span>$1</span>');\n\t\t\t}\n\n\t\t\treturn result;\n\t\t});\n\t}\n\n\tarrowMove(direction: number) {\n\t\tlet pos = -1;\n\t\tif (this.targetedCountry !== null)\n\t\t\tpos = this.countriesFiltered.map((o) => o.countryCode).indexOf(this.targetedCountry.countryCode);\n\n\t\tconst newPos = pos + direction;\n\n\t\tif (newPos >= 0 && newPos < this.countriesFiltered.length) this.targetedCountry = this.countriesFiltered[newPos];\n\n\t\tif (!this.showList) this.showCountryList();\n\n\t\tconst targetElement = this.ulWrap.nativeElement.querySelector('.targeted');\n\t\tif (targetElement !== null) this.ulWrap.nativeElement.scrollTop = targetElement.offsetTop - targetElement.clientHeight;\n\t}\n\n\tvalidateAndEmitValue(emit = true) {\n\t\tconst startNumber = this.number;\n\t\tif (this.number === '') this.number = null;\n\t\tif (this.number !== null) {\n\t\t\tconst calculatedDialcode = this.getDialCode(this.number).replace('+', '');\n\t\t\tif (calculatedDialcode !== '' && calculatedDialcode !== this.selectedCountry.numberCode) {\n\t\t\t\tconst matches = this.countries.filter((item) => {\n\t\t\t\t\treturn item.numberCode === calculatedDialcode;\n\t\t\t\t});\n\t\t\t\tif (matches.length > 0) this.countryChange(matches[0], emit);\n\n\t\t\t\treturn; // Will come back here from countryChange anyways\n\t\t\t}\n\t\t\t//Use phone lib number to format number if possible\n\t\t\tif (this.number.length < 6) return; // google-lib throws error if trying to validate number shortar than countryCode + 2\n\t\t\tlet num;\n\t\t\ttry {\n\t\t\t\tnum = parse(this.number, this.selectedCountry.countryCode);\n\t\t\t\tif (isValidNumber(num)) {\n\t\t\t\t\tthis.number = format(num, 'INTERNATIONAL');\n\t\t\t\t}\n\t\t\t} catch (numberParseException) {}\n\t\t}\n\n\t\twindow.setTimeout(() => {\n\t\t\tthis.handleErrors();\n\t\t});\n\n\t\tif (!emit && this.number === startNumber) return;\n\n\t\twindow.setTimeout(() => {\n\t\t\t// Timeout needed for emit to happen when writeValue needs formatting\n\t\t\tthis.propagateChange((this.number || '').replace(/ /g, ''));\n\t\t\tif (!emit) {\n\t\t\t\t(this.controlDir.control as UntypedFormControl).reset(this.number);\n\t\t\t}\n\t\t});\n\n\t\tif (typeof this.onChange !== 'undefined') {\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tthis.onChange.emit(this.number);\n\t\t\t}, 10);\n\t\t}\n\t}\n\n\t// Gui events\n\tsuggestnumberCode() {\n\t\tif (this.readonly) return;\n\n\t\tif (typeof this.number === 'undefined' || this.number === null || this.number === '')\n\t\t\tthis.number = '+' + this.selectedCountry.numberCode + ' ';\n\t}\n\n\tclearnumberCode() {\n\t\tif (this.number === '+' + this.selectedCountry.numberCode + ' ' || this.number === '+' + this.selectedCountry.numberCode) {\n\t\t\tthis.number = null;\n\t\t\tthis.validateAndEmitValue();\n\t\t}\n\t}\n\n\tcountryChange(country: any, emit = true) {\n\t\tthis.selectedCountry = country;\n\n\t\tif (this.getDialCode(this.number) !== '')\n\t\t\tthis.number = this.number.replace(this.getDialCode(this.number), '+' + country.numberCode);\n\n\t\tthis.hideCountryList();\n\t\tthis.validateAndEmitValue(emit);\n\t}\n\n\tgetDialCode(number): string {\n\t\tlet dialCode = '';\n\n\t\tif (typeof number !== 'undefined' && number !== null) {\n\t\t\t// only interested in international numbers (starting with a plus)\n\t\t\tif (number.charAt(0) == '+') {\n\t\t\t\tdialCode = '+';\n\t\t\t\tlet numericChars = '';\n\t\t\t\t// iterate over chars\n\t\t\t\tfor (let i = 0; i < number.length; i++) {\n\t\t\t\t\tconst c = number.charAt(i);\n\t\t\t\t\t// if char is number\n\t\t\t\t\tif (!isNaN(parseFloat(c)) && isFinite(c)) {\n\t\t\t\t\t\tnumericChars += c;\n\t\t\t\t\t\t// if current numericChars make a valid dial code\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tthis.countries.filter((item) => {\n\t\t\t\t\t\t\t\treturn item.numberCode === numericChars;\n\t\t\t\t\t\t\t}).length > 0\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t// store the actual raw string (useful for matching later)\n\t\t\t\t\t\t\tdialCode = number.substr(0, i + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// longest dial code is 4 chars\n\t\t\t\t\t\tif (numericChars.length == 4) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn dialCode;\n\t}\n\n\thandleErrors() {\n\t\tthis.currentError = GlobalValidator.validateFormControl(\n\t\t\tthis.translateService,\n\t\t\tthis.controlDir.control as UntypedFormControl,\n\t\t\tthis.errorMessages,\n\t\t);\n\t}\n}\n","import { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport {\n\tComponent,\n\tOutput,\n\tInput,\n\tEventEmitter,\n\tElementRef,\n\tforwardRef,\n\tSelf,\n\tInjector,\n\tViewChild,\n\tEnvironmentInjector,\n\tinject,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, UntypedFormControl, NgControl } from '@angular/forms';\nimport { GlobalValidator } from '../Classes/globalValidator';\nimport { NationalIdentityNumbers } from '../Classes/nationalIdentityNumbers';\n\nconst countries = [\n\t{\n\t\tCountryCode: 'SE',\n\t\tDescriptiveName: 'Sweden',\n\t\tplaceholder: 'YYYYMMDD-XXXX',\n\t\tImage:\n\t\t\t'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAVCAYAAAA0GqweAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjA5NU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gj1MTbwHYg5hIVRHPi8sZHh1Zs3DJw0CDloY4GBhRPqWk4i0gIL0IHIgENFhYEb6EB2GkUv52gmGXXgUG/N/KeXA9mIcNR/OjfBYG4CCDAAjh1b8TVjSzoAAAAASUVORK5CYII=',\n\t},\n\t{\n\t\tCountryCode: 'GB',\n\t\tDescriptiveName: 'United Kingdom',\n\t\tplaceholder: 'XXX XXX XXXX',\n\t\tImage:\n\t\t\t'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAAAVCAYAAADB5CeuAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAPaSURBVEhL7VZNb1tFFD3zHOeDSimp09pv3nMSt+VjDz8ACVX8hy5ggcoeiU3VJrFTCptKrNkURBE/ACFRhCqxYUUFEqhiUdLIfn7j57amsoB82H6enhm/2FZqNy5h0QXHlvzum/HMmXvvnHuFUkqjD4233/kMt76vJPbhULUrCN1cYvXg1SJIdzWxDseb55Zw/ca7eJDzyaALcRtCt1ICK0E1mUJqXY38UpG/InkzHkchJRyNSnUVkVcwm9p3K/UIzvy1TzAdayjpoXHuLTix4GSBarWEMCzCwYyd/F/CrBmE6/hRfIFILkPQP94PtyBViFYcw3nlgztwVc0OtO/8hmpeIn7xBISgl/gN1EUoVeRSnd6KR0KHnuVh/9qgd3yk4xZ3FXDDAPrlV+0MTcrc+j2bU3NzGlubH9FjLmJ+nCmNU2GNnhuk3MwssJhZ5z8HYZ0ofELjYaOEnVYKkSv7ofJVnRk0OOzZM+vY2RGklcAYrlzFL9e/gwwVuvE0oqxEJe9x0d4ie7tgSEv4/MZ5a08CM7dWvYqtjI8ol4PWmmGq2VDtE7p583f4csNyMOh76iAe/nkVO+1dqGyBzGMbSj+6T7LtZAZPdvoyNrc+HumpM4WLuHuvhJpcsu8cfrJqk8tMW9tgZjaNxROXEmuAsaQM0kihrC7BWTiOytw8LXth7Sn3IURqJKlA5sBLbSPlbm/DedRk1HseN/m67G6gbQ47Agd0ajxMGjm9NS3202ocKbrUPg+l38SwOpU8PzfoJ/rzhP9JTYqJE/0ghE7Ow5I0KtG1Tm4W66i5DBasdUanDsNTJcGIZhgaZU5b0+lS7BYWUD02D4dkOrzvearyU0kRVSmtvMQUlHyzge52C1Je5tUcHaix4Ws0rpHQBp96hGLRhvILlpAR0pwK8Mb0BTs2CmcLLEcJfKU4v0xSKQTHMwhZysKoaPcYhSdIffnVeYQswLt7f1vbiGXo5VF3Vyh2XXgsQbc//RZejrVsb7wImTFPFvH1N79a2xTavKqw+FdIjl1JNo+7mQyicM3uOYyhgizwx+bgdGnmQXk/LNzbqz+gQreQPfXvCnL9fgmdQYVCl3Jfy7kcEozCFJaDLZx+6Qrrn8lBXNABPcOGIZnOdsX3kLLqLeD/0wSaTRbrD2kPSXqCZ2vyHEZhLXk26LKEnUR1bpYjpolJ4STTwglVqU9I//QzAk9aQmLqBRbQe5DH3ichk1tPEnp2MPwMqSfX0GWOGpLdRw34bJH066/ZixCx2bSSINgJhnKx9z8njVwlQIGJ2mkfTuQo7fBU2kG5POw5sFVawmOib7ccySSNzQAAAABJRU5ErkJggg==',\n\t},\n];\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-nin',\n\ttemplate: `\n\t\t<div class=\"wallInput wallStyling\" [class.hasIcon]=\"icon != null\">\n\t\t\t<visiba-svg *ngIf=\"icon != null\" class=\"iconSvg\" [color]=\"iconColor\" [a]=\"icon\"></visiba-svg>\n\t\t\t<label [class.value]=\"(model.nin != null && model.nin != '') || alwaysShowPlaceholder\" [class.svg]=\"icon != null\">{{\n\t\t\t\tlocalPlaceholder !== '' ? localPlaceholder : selectedCountry.placeholder\n\t\t\t}}</label>\n\t\t\t<input\n\t\t\t\t[tabindex]=\"tabInd\"\n\t\t\t\t[attr.autofocus]=\"autofocus ? '' : null\"\n\t\t\t\ttype=\"text\"\n\t\t\t\t[maxlength]=\"selectedCountry.placeholder.length\"\n\t\t\t\t#input\n\t\t\t\t[readonly]=\"readonly\"\n\t\t\t\t[(ngModel)]=\"model.nin\"\n\t\t\t\t(ngModelChange)=\"validateAndEmitValue()\"\n\t\t\t\tclass=\"main\"\n\t\t\t/>\n\t\t\t<input type=\"text\" disabled=\"disabled\" readonly=\"readonly\" [placeholder]=\"placeholderGenerated\" class=\"placeholder\" />\n\t\t\t<div class=\"countrySelection\" *ngIf=\"countries.length > 1\">\n\t\t\t\t<img [src]=\"selectedCountry.Image\" [alt]=\"selectedCountry.DescriptiveName\" (click)=\"toggleCountryList()\" />\n\t\t\t\t<visiba-svg (click)=\"toggleCountryList()\" [color]=\"iconColor\" a=\"ArrowDown\"></visiba-svg>\n\t\t\t\t<visiba-svg *ngIf=\"model?.nin != null && !readonly\" [color]=\"iconColor\" a=\"X\"></visiba-svg>\n\t\t\t</div>\n\t\t\t<div class=\"select\" [class.open]=\"showList\" #ulWrap>\n\t\t\t\t<ul>\n\t\t\t\t\t<ng-template ngFor let-c [ngForOf]=\"countries\">\n\t\t\t\t\t\t<li\n\t\t\t\t\t\t\t[class.selected]=\"c.CountryCode === selectedCountry?.CountryCode\"\n\t\t\t\t\t\t\t[class.targeted]=\"c.CountryCode === targetedCountry?.CountryCode\"\n\t\t\t\t\t\t\t(click)=\"countryChange(c)\"\n\t\t\t\t\t\t\t(mouseover)=\"targetedCountry = c\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<img [src]=\"c.Image\" [alt]=\"c.DescriptiveName\" />\n\t\t\t\t\t\t\t{{ c.DescriptiveName }}\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ng-template>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<span class=\"error\" [class.value]=\"model?.nin != null && model?.nin != ''\">{{ currentError }}</span>\n\t\t</div>\n\t`,\n\thost: {\n\t\t'[class.readonly]': 'readonly',\n\t},\n})\nexport class VisibaNationalIdentityNumberComponent implements ControlValueAccessor {\n\t@Input() tabInd: number = 0;\n\t@Input() icon: string = null;\n\t@Input() iconColor: string = null;\n\t@Input() readonly: boolean;\n\t@Input() autofocus: boolean = false;\n\t@Input() availibleCountries: Array<string> = [];\n\t@Input() errorMessages: { [name: string]: string } | string = 'default';\n\t@Input('modelValue') model: { nin: string; countryCode: string } = { nin: null, countryCode: µ.LicenceHolder.CountryCode };\n\t@Input() placeholder: string = null;\n\t@Input() staticplaceholder: string = null;\n\t@ViewChild('ulWrap', { static: false }) ulWrap: ElementRef;\n\t@ViewChild('input', { static: false }) input: ElementRef;\n\n\t@Output() onChange = new EventEmitter<{ nin: string; countryCode: string }>();\n\t@Output() onCountryChange = new EventEmitter<string>();\n\n\tplaceholderGenerated: string = null;\n\tlocalPlaceholder: string = '';\n\tcurrentError: string = null;\n\tselectedCountry: any = null;\n\ttargetedCountry: any = null;\n\tshowList: boolean = false;\n\talwaysShowPlaceholder = false;\n\tplaceholderSwap = null;\n\n\tselectionStart: number = 0;\n\tselectionEnd: number = 0;\n\n\tcountries: any[] = countries;\n\n\tconstructor(\n\t\tprivate _elem: ElementRef,\n\t\t@Self() public controlDir: NgControl,\n\t\tprivate translateService: TranslateService,\n\t) {\n\t\tcontrolDir.valueAccessor = this;\n\t}\n\n\twriteValue(value: any) {\n\t\tif (!value || typeof value.nin === 'undefined') {\n\t\t\t// Invalid inmodel\n\t\t\tthis.model.nin = null;\n\t\t\treturn;\n\t\t}\n\t\tthis.model = value;\n\n\t\t// Ignore if unsupported country. Should not show field then anyways\n\t\tconst country = this.searchCountry(this.model.countryCode);\n\n\t\tif (country && country.CountryCode !== this.model.countryCode) return;\n\n\t\tthis.countryChange(country || countries[0]);\n\t\tthis.validateAndEmitValue();\n\t}\n\n\t//Call to push value\n\tpropagateChange = (_: any) => {};\n\n\tregisterOnChange(fn) {\n\t\tthis.propagateChange = fn;\n\t}\n\n\tregisterOnTouch() {}\n\tregisterOnTouched() {}\n\n\tngOnInit() {\n\t\tif (this.availibleCountries.length > 0)\n\t\t\tthis.countries = this.countries.filter((x) => this.availibleCountries.indexOf(x.CountryCode) > -1);\n\n\t\tthis.selectedCountry = this.searchCountry(µ.LicenceHolder.CountryCode);\n\t\tif (this.placeholder) {\n\t\t\tthis.localPlaceholder = this.translateService.get(this.placeholder) + (this._elem.nativeElement.required ? ' *' : '');\n\t\t} else if (this.staticplaceholder != null) {\n\t\t\tthis.localPlaceholder = this.staticplaceholder;\n\t\t}\n\n\t\tthis.forceStaticPlaceholderForGb();\n\t}\n\n\tngAfterViewInit() {\n\t\t(this.input.nativeElement as HTMLInputElement).addEventListener('input', (el) => {\n\t\t\tthis.input.nativeElement.setSelectionRange(this.selectionStart, this.selectionEnd);\n\t\t});\n\t}\n\n\tsearchCountry(countryCode) {\n\t\tlet countrySearch = this.countries.filter((item) => {\n\t\t\treturn item.CountryCode === countryCode;\n\t\t});\n\n\t\tif (countrySearch.length > 0) return countrySearch[0];\n\t\telse {\n\t\t\tcountrySearch = this.countries.filter((item) => {\n\t\t\t\treturn item.CountryCode === µ.LicenceHolder.CountryCode;\n\t\t\t});\n\n\t\t\tif (countrySearch.length > 0) return countrySearch[0];\n\t\t\telse return this.countries[0];\n\t\t}\n\t}\n\n\ttoggleCountryList() {\n\t\tif (this.showList) this.hideCountryList();\n\t\telse this.showCountryList();\n\t}\n\n\tshowCountryList() {\n\t\tif (this.readonly) return;\n\n\t\tthis.showList = true;\n\n\t\tlet doc = document.getElementsByTagName('html')[0];\n\t\twindow.setTimeout(() => {\n\t\t\tdoc.addEventListener('keyup', this.countrySelectKeyEvent, false);\n\t\t\tdoc.addEventListener('keydown', this.countrySelectKeyEvent, false);\n\t\t\tdoc.addEventListener('click', this.closeCountrySelectEventFunction, false);\n\t\t}, 10);\n\t}\n\n\thideCountryList() {\n\t\tthis.showList = false;\n\n\t\tlet doc = document.getElementsByTagName('html')[0];\n\t\tdoc.removeEventListener('keyup', this.countrySelectKeyEvent, false);\n\t\tdoc.removeEventListener('keydown', this.countrySelectKeyEvent, false);\n\t\tdoc.removeEventListener('click', this.closeCountrySelectEventFunction, false);\n\t}\n\n\tcloseCountrySelectEventFunction = (event) => {\n\t\tif (\n\t\t\tevent.target &&\n\t\t\tthis._elem.nativeElement.querySelector('.select') !== event.target &&\n\t\t\t!this._elem.nativeElement.querySelector('.select').contains(event.target)\n\t\t) {\n\t\t\tthis.hideCountryList();\n\t\t}\n\t};\n\n\tcountrySelectKeyEvent = (event: KeyboardEvent) => {\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\n\t\tif (event.type === 'keydown') return;\n\n\t\tswitch (event.key) {\n\t\t\tcase 'Enter':\n\t\t\t\tif (this.targetedCountry !== null) this.countryChange(this.targetedCountry);\n\t\t\t\tbreak;\n\t\t\tcase 'ArrowDown':\n\t\t\t\tthis.arrowMove(1);\n\t\t\t\tbreak;\n\t\t\tcase 'ArrowUp':\n\t\t\t\tthis.arrowMove(-1);\n\t\t\t\tbreak;\n\t\t\tcase 'Escape':\n\t\t\t\tthis.hideCountryList();\n\t\t\t\tbreak;\n\t\t}\n\t};\n\n\tarrowMove(direction: number) {\n\t\tlet pos = -1;\n\t\tif (this.targetedCountry !== null) pos = this.countries.map((o) => o.CountryCode).indexOf(this.targetedCountry.CountryCode);\n\n\t\tlet newPos = pos + direction;\n\n\t\tif (newPos >= 0 && newPos < this.countries.length) this.targetedCountry = this.countries[newPos];\n\n\t\tif (!this.showList) this.showCountryList();\n\n\t\tlet targetElement = this.ulWrap.nativeElement.querySelector('.targeted');\n\t\tif (targetElement !== null) this.ulWrap.nativeElement.scrollTop = targetElement.offsetTop - targetElement.clientHeight;\n\t}\n\n\tcountryChange(country: any) {\n\t\tthis.selectedCountry = country;\n\t\tthis.model.countryCode = country.CountryCode;\n\t\tthis.onCountryChange.emit(country.CountryCode);\n\t\tthis.hideCountryList();\n\t\tthis.validateAndEmitValue();\n\t\tthis.forceStaticPlaceholderForGb();\n\t}\n\n\tselectCountryByCountryCode(countryCode: string) {\n\t\tlet result = this.countries.filter((x) => x.CountryCode === countryCode);\n\t\tif (result.length > 0) {\n\t\t\tthis.countryChange(result[0]);\n\t\t}\n\t}\n\n\tvalidateAndEmitValue(emit: boolean = true) {\n\t\tif (this.model.nin === '') this.model.nin = null;\n\n\t\tthis.selectionStart = this.input ? this.input.nativeElement.selectionStart : 0;\n\t\tthis.selectionEnd = this.input ? this.input.nativeElement.selectionStart : 0;\n\n\t\tif (this.model.nin !== null) {\n\t\t\tif (this.selectedCountry.CountryCode === 'GB') this.model.nin = this.model.nin.replace(/\\s/g, '');\n\t\t\telse this.model.nin = this.model.nin.replace(/-/g, '');\n\t\t\tlet numArray = this.model.nin.split('');\n\t\t\tlet placeholderArray = this.selectedCountry.placeholder.split('');\n\t\t\tlet placeholderArrayWithoutDashOrWhitespace: string[];\n\n\t\t\tif (this.selectedCountry.CountryCode === 'GB')\n\t\t\t\tplaceholderArrayWithoutDashOrWhitespace = this.selectedCountry.placeholder.replace(/\\s/g, '');\n\t\t\telse placeholderArrayWithoutDashOrWhitespace = this.selectedCountry.placeholder.replace('-', '').split('');\n\n\t\t\t// Country specific exceptions\n\t\t\tif (this.selectedCountry.CountryCode === 'SE') {\n\t\t\t\tif (\n\t\t\t\t\tnumArray.length < placeholderArrayWithoutDashOrWhitespace.length &&\n\t\t\t\t\tNationalIdentityNumbers.Validator.validate(this.selectedCountry.CountryCode, this.model.nin, false)\n\t\t\t\t) {\n\t\t\t\t\tplaceholderArray.splice(0, 2);\n\t\t\t\t\tplaceholderArrayWithoutDashOrWhitespace.splice(0, 2);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If missing a - add it\n\t\t\tif (placeholderArray.indexOf('-') > -1 && numArray.length > placeholderArray.indexOf('-')) {\n\t\t\t\t// Yes, you are right. This is not how you should do this. 👍\n\t\t\t\tconst index = placeholderArray.indexOf('-');\n\t\t\t\tlet dontDoWeirdFiCheck = true;\n\t\t\t\tif (this.selectedCountry.CountryCode === 'FI' && numArray[index].toLowerCase() === 'a') {\n\t\t\t\t\tdontDoWeirdFiCheck = false;\n\t\t\t\t}\n\n\t\t\t\tif (dontDoWeirdFiCheck) {\n\t\t\t\t\tnumArray.splice(index, 0, '-');\n\n\t\t\t\t\tif (this.model.nin.indexOf('-') === -1) {\n\t\t\t\t\t\tthis.selectionStart++;\n\t\t\t\t\t\tthis.selectionEnd++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If UK insert space instead\n\t\t\tif (placeholderArray.indexOf(' ') > -1 && numArray.length > placeholderArray.indexOf(' ')) {\n\t\t\t\tnumArray.splice(placeholderArray.indexOf(' '), 0, ' ');\n\t\t\t\tthis.selectionStart++;\n\t\t\t\tthis.selectionEnd++;\n\t\t\t}\n\t\t\tif (placeholderArray.lastIndexOf(' ') > -1 && numArray.length > placeholderArray.lastIndexOf(' ')) {\n\t\t\t\tnumArray.splice(placeholderArray.lastIndexOf(' '), 0, ' ');\n\t\t\t\tthis.selectionStart++;\n\t\t\t\tthis.selectionEnd++;\n\t\t\t}\n\n\t\t\t// Merge input with placeholder\n\t\t\tlet meshArray = numArray.slice();\n\t\t\tif (numArray.length < placeholderArray.length) {\n\t\t\t\tfor (var i = numArray.length; i < placeholderArray.length; i++) {\n\t\t\t\t\tmeshArray[i] = placeholderArray[i];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.placeholderGenerated = meshArray.join('');\n\t\t\tthis.model.nin = numArray.join('');\n\t\t} else {\n\t\t\tthis.placeholderGenerated = this.selectedCountry.placeholder;\n\t\t}\n\n\t\tif (!emit) return;\n\n\t\twindow.setTimeout(() => {\n\t\t\t// Timeout needed for emit to happen when writeValue needs formatting\n\t\t\tif (this.model.nin !== null) {\n\t\t\t\tthis.propagateChange(this.model);\n\t\t\t} else {\n\t\t\t\tthis.propagateChange({ nin: (this.model.nin || '').replace(/ /g, ''), countryCode: this.model.countryCode });\n\t\t\t}\n\t\t\tthis.handleErrors();\n\t\t});\n\n\t\tif (typeof this.onChange !== 'undefined') {\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tthis.onChange.emit(this.model);\n\t\t\t}, 10);\n\t\t}\n\t}\n\n\thandleErrors() {\n\t\tthis.currentError = GlobalValidator.validateFormControl(\n\t\t\tthis.translateService,\n\t\t\tthis.controlDir.control as UntypedFormControl,\n\t\t\tthis.errorMessages,\n\t\t);\n\t}\n\n\tforceStaticPlaceholderForGb() {\n\t\tif (this.selectedCountry.CountryCode === 'GB') {\n\t\t\tthis.placeholderSwap = this.localPlaceholder;\n\t\t\tthis.localPlaceholder = 'NHS number';\n\t\t\tthis.alwaysShowPlaceholder = true;\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst swap = this.localPlaceholder;\n\t\tthis.placeholder = swap;\n\t\tthis.localPlaceholder = null;\n\t\tthis.alwaysShowPlaceholder = false;\n\t}\n}\n","import { Directive, ElementRef, Input } from '@angular/core';\n\n@Directive({ standalone: false, selector: '[align-height]' })\nexport class AlignHeight {\n\t@Input('align-height') settings: any;\n\n\tconstructor(private _elementRef: ElementRef) {}\n\n\tngOnInit() {\n\t\tlet max = 0;\n\t\tlet target = document.querySelectorAll('.' + this.settings.selector);\n\n\t\tif (!this.settings.desktop && µ.Is.Desktop()) return false;\n\n\t\tif (!this.settings.tablet && µ.Is.Tablet()) return false;\n\n\t\tif (!this.settings.phone && µ.Is.Phone()) return false;\n\n\t\twindow.setTimeout(() => {\n\t\t\tfor (let i = 0; i < target.length; i++) {\n\t\t\t\t(target[i] as HTMLElement).style.minHeight = 'auto';\n\t\t\t}\n\n\t\t\tif (µ.Is.Phone()) return;\n\n\t\t\tfor (let i = 0; i < target.length; i++) {\n\t\t\t\tif (target[i].clientHeight > max) max = target[i].clientHeight;\n\t\t\t}\n\n\t\t\tfor (let i = 0; i < target.length; i++) {\n\t\t\t\t(target[i] as HTMLElement).style.minHeight = max + 'px';\n\t\t\t}\n\t\t}, 10);\n\t}\n}\n","import { Helper } from '../Helpers/helper';\nimport { Component, ElementRef, Input, HostListener } from '@angular/core';\ndeclare var googleLoaded: any;\n\n@Component({ standalone: false, selector: 'visiba-google-chart', host: { '[id]': 'id' }, template: '' })\nexport class VisibaGoogleChart {\n\t@Input() type: string;\n\t@Input() options: any = {};\n\t@Input() data: any;\n\n\tid: string = 'vbla';\n\tyes: boolean = true;\n\n\tconstructor(\n\t\tpublic _elementRef: ElementRef,\n\t\tprivate helper: Helper,\n\t) {\n\t\tthis.id = Math.random().toString(36).substring(3);\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.init();\n\t}\n\n\tinit() {\n\t\tif (typeof google === 'undefined' || !google.charts) {\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tthis.init();\n\t\t\t}, 1000);\n\t\t\treturn;\n\t\t}\n\n\t\tgoogle.charts.load('current', { packages: ['corechart'] });\n\t\tgoogle.charts.setOnLoadCallback(() => {\n\t\t\tthis.draw();\n\t\t});\n\t}\n\n\t@HostListener('window:resize', ['$event'])\n\tonResize(event) {\n\t\tthis.draw();\n\t}\n\n\tdraw = () => {\n\t\tif (typeof this.data === 'undefined' || this.data === null || this.data === '' || this.data.length === 0) return;\n\n\t\tif (!google.visualization || !google.visualization.ChartWrapper) {\n\t\t\twindow.setTimeout(this.draw, 500);\n\t\t\treturn;\n\t\t}\n\n\t\tlet options = this.defaultOptions();\n\t\tthis.helper.object.merge(options, this.options);\n\n\t\tif (typeof this.options['extraWidth'] === 'number') {\n\t\t\toptions['width'] += this.options['extraWidth'];\n\t\t}\n\t\tnew google.visualization.ChartWrapper({\n\t\t\tchartType: this.type,\n\t\t\tdataTable: this.data,\n\t\t\toptions: options,\n\t\t\tcontainerId: this.id,\n\t\t}).draw();\n\t};\n\n\tdefaultOptions(): Object {\n\t\tlet opt: any = {\n\t\t\twidth: this._elementRef.nativeElement.parentNode.clientWidth,\n\t\t\tchartArea: { width: '85%', height: '65%' },\n\t\t\tlegend: { position: 'bottom', alignment: 'end' },\n\t\t\tcolors: ['008296'],\n\t\t};\n\t\treturn opt;\n\t}\n}\n","import { Component, Input, Output, EventEmitter, ChangeDetectorRef } from '@angular/core';\n\n@Component({\n\tstandalone: false,\n\tselector: 'toggle-switch',\n\ttemplate: `\n\t\t<label class=\"switch\">\n\t\t\t<input type=\"checkbox\" [(ngModel)]=\"value\" (ngModelChange)=\"validateAndEmitValue()\" />\n\t\t\t<span class=\"slider round\"></span>\n\t\t</label>\n\t`,\n})\nexport class ToggleSwitchComponent {\n\t@Input('value') value: boolean;\n\t@Output() onChange = new EventEmitter();\n\n\tconstructor() {}\n\tngOnInit() {}\n\n\tvalidateAndEmitValue() {\n\t\tif (typeof this.onChange !== 'undefined') {\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tthis.onChange.emit(this.value);\n\t\t\t}, 10);\n\t\t}\n\t}\n}\n","import { Directive, ElementRef, Input, HostListener } from '@angular/core';\n\n@Directive({ standalone: false, selector: '[autostick]' })\nexport class AutoStick {\n\t@Input() dontCheckFixedTarget: boolean = false;\n\t@Input() addClassOnStick: string = '';\n\t@Input('autostick') stickToId: string;\n\t@Input() bottomstick: string;\n\n\tstickToObj: HTMLElement = null;\n\tbottomStickToObj: HTMLElement = null;\n\n\tisSticked: boolean = false;\n\tisStickedBottom: boolean = false;\n\toPosition: string;\n\toMarginLeft: string;\n\toTop: string;\n\tbottomOTop: string;\n\toLeft: string;\n\toWidth: string;\n\toClassName: string;\n\treplacementElement: any;\n\tparrentElement: any;\n\tbeforeStickOffsetTop: number = 0;\n\tbeforeBottomStickOffsetTop: number = 0;\n\n\tstatic autoSticks: Array<AutoStick>;\n\tstatic afterCheck() {\n\t\tfor (let i in AutoStick.autoSticks) {\n\t\t\tAutoStick.autoSticks[i].doStickCheck();\n\t\t\tAutoStick.autoSticks[i].doBottomStickCheck();\n\t\t}\n\t}\n\n\tconstructor(private el: ElementRef) {\n\t\tif (AutoStick.autoSticks === null || AutoStick.autoSticks === undefined) {\n\t\t\tAutoStick.autoSticks = new Array<AutoStick>();\n\t\t}\n\t\tAutoStick.autoSticks.push(this);\n\t}\n\tngOnDestroy() {\n\t\tthis.isStickedBottom = false;\n\t\tthis.unStick();\n\t\tlet index = AutoStick.autoSticks.indexOf(this);\n\t\tif (index > -1) {\n\t\t\tAutoStick.autoSticks.splice(index, 1);\n\t\t}\n\t}\n\n\tngOnChanges(changes: any) {\n\t\tthis.stickToObj = document.getElementById(changes.stickToId.currentValue);\n\t\twindow.setTimeout(() => {\n\t\t\tthis.isStickedBottom = false;\n\t\t\tthis.unStick();\n\t\t\tthis.doStickCheck();\n\t\t\tthis.doBottomStickCheck();\n\t\t\tAutoStick.afterCheck();\n\t\t}, 0);\n\t}\n\n\tngAfterViewChecked() {\n\t\tif (this.isSticked) {\n\t\t\tlet newLeft = this.getOffsetLeft(this.replacementElement);\n\t\t\tlet newWidth = this.replacementElement.clientWidth;\n\n\t\t\tthis.el.nativeElement.style.left = newLeft.toString() + 'px';\n\t\t\tthis.el.nativeElement.style.width = newWidth.toString() + 'px';\n\t\t}\n\t\tthis.doStickCheck();\n\t\tthis.doBottomStickCheck();\n\t}\n\n\t@HostListener('window:scroll', ['$event.target'])\n\tonWindowScroll(event: any) {\n\t\t/* empty function needed to trigger ngAfterViewChecked*/\n\t}\n\n\t@HostListener('window:resize', ['$event.target'])\n\tonWindowResize(event: any) {\n\t\t/* empty function needed to trigger ngAfterViewChecked*/\n\t}\n\n\tdoBottomStickCheck() {\n\t\tif (this.bottomstick === null) {\n\t\t\treturn;\n\t\t}\n\t\tif (this.bottomStickToObj === null) {\n\t\t\tthis.bottomStickToObj = document.getElementById(this.bottomstick);\n\t\t\tif (this.bottomStickToObj === null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif (this.isSticked) {\n\t\t\tvar scrollTop = window.pageYOffset || document.documentElement.scrollTop;\n\t\t\tlet boFromTopDist = this.getOffsetTop(this.bottomStickToObj) - scrollTop;\n\t\t\tlet myBotPosFromTopDist = this.getOffsetTop(this.el.nativeElement);\n\n\t\t\tif (this.isStickedBottom) {\n\t\t\t\tmyBotPosFromTopDist = this.beforeBottomStickOffsetTop;\n\t\t\t} else {\n\t\t\t\tthis.beforeBottomStickOffsetTop = myBotPosFromTopDist;\n\t\t\t}\n\t\t\tmyBotPosFromTopDist += this.el.nativeElement.clientHeight;\n\n\t\t\tif (boFromTopDist <= myBotPosFromTopDist) {\n\t\t\t\tif (this.isStickedBottom === false) {\n\t\t\t\t\tthis.isStickedBottom = true;\n\t\t\t\t\tthis.bottomOTop = this.el.nativeElement.style.top;\n\t\t\t\t\tAutoStick.afterCheck();\n\t\t\t\t}\n\t\t\t\tthis.el.nativeElement.style.top = (boFromTopDist - this.el.nativeElement.clientHeight).toString() + 'px';\n\t\t\t} else {\n\t\t\t\tif (this.isStickedBottom === true) {\n\t\t\t\t\tthis.isStickedBottom = false;\n\t\t\t\t\tthis.el.nativeElement.style.top = this.bottomOTop;\n\t\t\t\t\tAutoStick.afterCheck();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tdoStickCheck() {\n\t\tif (this.stickToObj === null) {\n\t\t\tthis.stickToObj = document.getElementById(this.stickToId);\n\t\t\tif (this.stickToObj === null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (!this.isSticked) {\n\t\t\tthis.beforeStickOffsetTop = this.getOffsetTop(this.el.nativeElement);\n\t\t} else {\n\t\t\tthis.beforeStickOffsetTop = this.getOffsetTop(this.replacementElement);\n\t\t}\n\t\tvar scrollTop = window.pageYOffset || document.documentElement.scrollTop;\n\t\tlet thisPosInWin = this.beforeStickOffsetTop - scrollTop;\n\t\tlet stickObjPos;\n\n\t\tif (\n\t\t\tthis.stickToObj.style.position === 'fixed' ||\n\t\t\tthis.dontCheckFixedTarget === true ||\n\t\t\t(this.dontCheckFixedTarget as any) === 'true'\n\t\t) {\n\t\t\tstickObjPos = this.getOffsetTop(this.stickToObj) + this.stickToObj.clientHeight;\n\t\t} else {\n\t\t\tstickObjPos = this.getOffsetTop(this.stickToObj) + this.stickToObj.clientHeight - scrollTop;\n\t\t}\n\n\t\tif (thisPosInWin < stickObjPos) {\n\t\t\tthis.stick(stickObjPos);\n\t\t} else {\n\t\t\tthis.unStick();\n\t\t}\n\t}\n\tstick(stickPos: number) {\n\t\tif (!this.isSticked) {\n\t\t\tthis.replacementElement = document.createElement('div');\n\t\t\tthis.replacementElement.className = this.el.nativeElement.className;\n\t\t\tthis.replacementElement.style = this.el.nativeElement.style;\n\t\t\tthis.replacementElement.style.height = this.el.nativeElement.clientHeight + 'px';\n\t\t\tthis.replacementElement.style.opacity = '0';\n\n\t\t\tlet newLeft = this.getOffsetLeft(this.el.nativeElement);\n\t\t\tlet newWidth = this.el.nativeElement.clientWidth;\n\t\t\t//sav values\n\t\t\tthis.oPosition = this.el.nativeElement.style.position;\n\t\t\tthis.oMarginLeft = this.el.nativeElement.style.marginLeft;\n\t\t\tthis.oTop = this.el.nativeElement.style.top;\n\t\t\tthis.oLeft = this.el.nativeElement.style.left;\n\t\t\tthis.oWidth = this.el.nativeElement.style.width;\n\t\t\tthis.oClassName = this.el.nativeElement.className;\n\t\t\t//set new values\n\t\t\tthis.el.nativeElement.style.position = 'fixed';\n\t\t\tthis.el.nativeElement.style.marginLeft = '0px';\n\t\t\tthis.el.nativeElement.style.top = stickPos.toString() + 'px';\n\t\t\tthis.el.nativeElement.style.left = newLeft.toString() + 'px';\n\t\t\tthis.el.nativeElement.style.width = newWidth.toString() + 'px';\n\n\t\t\tthis.parrentElement = this.el.nativeElement.parentElement;\n\t\t\tthis.parrentElement.insertBefore(this.replacementElement, this.el.nativeElement);\n\n\t\t\t//on stick class add\n\t\t\tif (this.addClassOnStick !== null && this.addClassOnStick !== '') {\n\t\t\t\tthis.el.nativeElement.className += ' ' + this.addClassOnStick;\n\t\t\t}\n\n\t\t\tthis.isSticked = true;\n\t\t}\n\t}\n\tunStick() {\n\t\tif (this.isSticked) {\n\t\t\tthis.el.nativeElement.style.position = this.oPosition;\n\t\t\tthis.el.nativeElement.style.marginLeft = this.oMarginLeft;\n\t\t\tthis.el.nativeElement.style.top = this.oTop;\n\t\t\tthis.el.nativeElement.style.left = this.oLeft;\n\t\t\tthis.el.nativeElement.style.width = this.oWidth;\n\t\t\tthis.el.nativeElement.className = this.oClassName;\n\n\t\t\tthis.parrentElement.removeChild(this.replacementElement);\n\n\t\t\tthis.isSticked = false;\n\t\t}\n\t}\n\n\tgetOffsetTop(element: any): number {\n\t\tif (element.offsetParent !== null) {\n\t\t\treturn element.offsetTop + this.getOffsetTop(element.offsetParent);\n\t\t} else {\n\t\t\treturn element.offsetTop;\n\t\t}\n\t}\n\tgetOffsetLeft(element: any): number {\n\t\tif (element.offsetParent !== null) {\n\t\t\treturn element.offsetLeft + this.getOffsetLeft(element.offsetParent);\n\t\t} else {\n\t\t\treturn element.offsetLeft;\n\t\t}\n\t}\n}\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\n\nexport type Mode = 'info' | 'success' | 'error';\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-alert',\n\thost: {\n\t\t'[style.display]': 'block',\n\t},\n\ttemplate: `\n\t\t<div class=\"alert\" [ngClass]=\"classMap\">\n\t\t\t<div class=\"alert__header\" *ngIf=\"heading\">{{ heading }}</div>\n\t\t\t<div class=\"alert__message\" *ngIf=\"message\">{{ message }}</div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t`,\n})\nexport class VisibaAlertComponent {\n\tprivate _showExit = false;\n\tprivate _mode: Mode = 'success';\n\tprivate _heading: string;\n\tprivate _message: string;\n\tclassMap;\n\t@Output() onClose: EventEmitter<boolean> = new EventEmitter();\n\n\t@Input()\n\tset mode(value: Mode) {\n\t\tthis._mode = value;\n\t}\n\n\tget mode(): Mode {\n\t\treturn this._mode;\n\t}\n\n\t@Input()\n\tset heading(value: string) {\n\t\tthis._heading = value;\n\t}\n\n\tget heading(): string {\n\t\treturn this._heading;\n\t}\n\n\t@Input()\n\tset message(value: string) {\n\t\tthis._message = value;\n\t}\n\n\tget message(): string {\n\t\treturn this._message;\n\t}\n\n\tupdateMode() {\n\t\tthis.classMap = {\n\t\t\t[`-${this.mode}`]: true,\n\t\t};\n\t}\n\n\tngOnInit() {\n\t\tthis.updateMode();\n\t}\n}\n","import { Pipe } from '@angular/core';\n\n@Pipe({ standalone: false, name: 'datedisp' })\nexport class DateDisplayPipe {\n\ttransform(value: any, format: string) {\n\t\tif (value === null) return 'null';\n\t\tif (typeof value === 'string') value = new Date(value);\n\t\telse if (\n\t\t\ttypeof value === 'object' &&\n\t\t\tvalue !== null &&\n\t\t\t(typeof value.localValue !== 'undefined' || typeof value.LocalValue !== 'undefined')\n\t\t) {\n\t\t\tvalue = new DateDisplay(value).ZonedAsUTC();\n\t\t}\n\n\t\treturn value.format(format);\n\t}\n}\n","import { Pipe } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n@Pipe({ standalone: false, name: 'safeHtml' })\nexport class SafeHtmlPipe {\n\tconstructor(private sanitizer: DomSanitizer) {}\n\n\ttransform(html) {\n\t\treturn this.sanitizer.bypassSecurityTrustHtml(html);\n\t}\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { TranslateService } from '../Services/translate.service';\n\n@Pipe({ standalone: false, name: 'translate' })\nexport class TranslatePipe implements PipeTransform {\n\tconstructor(private translateService: TranslateService) {}\n\ttransform(value, ...args: any[]) {\n\t\tif (typeof args[0] === 'undefined') return this.translateService.get(value);\n\t\treturn this.translateService.get(value, args[0]);\n\t}\n}\n\n@Pipe({ standalone: false, name: 'translateAllowEmpty' })\nexport class TranslateAllowEmptyPipe {\n\tconstructor(private translateService: TranslateService) {}\n\ttransform(value, ...args: any[]) {\n\t\tif (typeof args[0] === 'undefined') return this.translateService.get(value, null, true);\n\t\treturn this.translateService.get(value, args[0], true);\n\t}\n}\n","import { Pipe } from '@angular/core';\n\n@Pipe({ standalone: false, name: 'console' })\nexport class ConsolePipe {\n\tconstructor() {}\n\ttransform(value) {\n\t\tconsole.log(value);\n\t\treturn '';\n\t}\n}\n","import { Component, OnInit, ViewChild, ViewContainerRef, AfterViewInit, ViewEncapsulation } from '@angular/core';\nimport { ModalService } from '../Services/modalService';\n\n@Component({\n\tstandalone: false,\n\tselector: 'public-modal',\n\ttemplate: `\n\t\t<div [hidden]=\"!modalService.loadedComponent\">\n\t\t\t<div class=\"modal__overlay\" (click)=\"handleClick()\"></div>\n\t\t\t<div class=\"modal\">\n\t\t\t\t<div class=\"modal__container\">\n\t\t\t\t\t<div class=\"cancel\" (click)=\"handleClick()\" *ngIf=\"modalService.canBeClosed\">\n\t\t\t\t\t\t<visiba-svg a=\"X\"></visiba-svg>\n\t\t\t\t\t</div>\n\t\t\t\t\t<ng-template #modalContainer></ng-template>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t`,\n\tstyleUrls: ['../Css/Components/modal.component.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class ModalComponent implements AfterViewInit {\n\t@ViewChild('modalContainer', { static: false, read: ViewContainerRef })\n\tpublic entry: ViewContainerRef;\n\n\tconstructor(public modalService: ModalService) {}\n\n\tngAfterViewInit() {\n\t\tthis.modalService.setViewContainerRef(this.entry);\n\t}\n\n\tpublic handleClick() {\n\t\tif (!this.modalService.canBeClosed) return;\n\t\tthis.modalService.detach();\n\t}\n}\n","import { Injectable } from '@angular/core';\n// import { MatomoTracker } from 'ngx-matomo';\nimport { Observable, of } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { SpaContext } from 'Public_old/src/app/Classes/spacontext';\nimport { ApiResponse, VisibaApiHttp } from 'Public_old/src/app/Classes/visibaHttp.class';\nimport { TimeSlotLockApiModel } from './Models/TimeSlotLockApiModel';\n\n@Injectable()\nexport class TimeSlotLockApiService {\n\tprivate readonly baseUri = '/api/Client/v2/units/';\n\tpublic currentLock: string = null;\n\n\tconstructor(\n\t\tprivate http: VisibaApiHttp,\n\t\tprivate spaContext: SpaContext,\n\t\t/*private matomoTracker: MatomoTracker,*/\n\t) {}\n\n\tpublic lockTimeSlot(timeSlotId: string): Observable<ApiResponse<TimeSlotLockApiModel>> {\n\t\treturn this.http\n\t\t\t.postTyped<TimeSlotLockApiModel>(`${this.baseUri}${this.spaContext.unitConfig.ReceptionId}/timeslots/${timeSlotId}/locks`, {})\n\t\t\t.pipe(\n\t\t\t\tmap(\n\t\t\t\t\t(res) => {\n\t\t\t\t\t\tthis.currentLock = res.data.Id;\n\n\t\t\t\t\t\treturn res;\n\t\t\t\t\t},\n\t\t\t\t\t() => {\n\t\t\t\t\t\tthis.currentLock = null;\n\t\t\t\t\t},\n\t\t\t\t),\n\t\t\t);\n\t}\n\n\tpublic removeLockOnTimeSlot(): Observable<unknown> {\n\t\tif (this.currentLock === null) {\n\t\t\treturn of(null);\n\t\t}\n\n\t\t// this.matomoTracker.trackEvent('SelectTime-view', 'Lock released manually');\n\n\t\treturn this.http.delete(`${this.baseUri}${this.spaContext.unitConfig.ReceptionId}/timeslotlocks/${this.currentLock}`);\n\t}\n}\n","import { Component, Input, ViewEncapsulation } from '@angular/core';\n\n@Component({\n\tstandalone: false,\n\tselector: 'semantic-view',\n\ttemplate: `\n\t\t<div class=\"semantic-view\">\n\t\t\t<header class=\"semantic-header\" [class.hide-on-small-devices]=\"hideOnMobile\">\n\t\t\t\t<ng-content select=\"[header]\"></ng-content>\n\t\t\t</header>\n\n\t\t\t<main class=\"semantic-main\" [class.full-screen]=\"hideOnMobile\">\n\t\t\t\t<ng-content></ng-content>\n\t\t\t</main>\n\n\t\t\t<footer class=\"semantic-footer\" [class.hide-on-small-devices]=\"hideOnMobile\">\n\t\t\t\t<ng-content select=\"[footer]\"></ng-content>\n\t\t\t</footer>\n\t\t</div>\n\t`,\n\tstyleUrls: ['../Css/Components/semantic-view.component.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class SemanticViewComponent {\n\t@Input() hideOnMobile: boolean = false;\n}\n","import { AfterViewInit, Directive, ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';\n\n// copy paste from https://medium.com/allenhwkim/angular-trap-focus-with-in-a-block-79b7572f23c2\n@Directive({ standalone: false, selector: '[trapFocus]' })\nexport class TrapFocusDirective implements AfterViewInit, OnChanges, OnDestroy {\n\tdisposer: Function | null = null;\n\n\tconstructor(private el: ElementRef) {\n\t\t// Empty\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.trapFocus(this.el.nativeElement);\n\t}\n\n\tngOnDestroy(): void {\n\t\tif (this.disposer != null) {\n\t\t\tthis.disposer();\n\t\t}\n\t}\n\n\tngOnChanges(changes: SimpleChanges): void {\n\t\tthis.trapFocus(this.el.nativeElement);\n\t}\n\n\ttrapFocus(element) {\n\t\tconst focusableEls1 = element.querySelectorAll(\n\t\t\t'a[href], button, textarea, input[type=\"text\"], input[type=\"radio\"], input[type=\"checkbox\"], select',\n\t\t);\n\t\tconst focusableEls = Array.from(focusableEls1).filter((el: any) => !el.disabled);\n\t\tconst firstFocusableEl: any = focusableEls[0];\n\t\tconst lastFocusableEl: any = focusableEls[focusableEls.length - 1];\n\n\t\tif (this.disposer != null) {\n\t\t\tthis.disposer();\n\t\t}\n\n\t\tlet firstTabbing = true;\n\n\t\tfunction handleKeydown(e) {\n\t\t\tvar isTabPressed = e.keyCode === 9; // isTabPressed\n\t\t\tif (!isTabPressed) return;\n\n\t\t\tif (e.shiftKey) {\n\t\t\t\t/* shift + tab */ if (document.activeElement === firstFocusableEl || firstTabbing) {\n\t\t\t\t\tlastFocusableEl.focus();\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\tfirstTabbing = false;\n\t\t\t\t}\n\t\t\t} /* tab */ else {\n\t\t\t\tif (document.activeElement === lastFocusableEl || firstTabbing) {\n\t\t\t\t\tfirstFocusableEl.focus();\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\tfirstTabbing = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tdocument.addEventListener('keydown', handleKeydown);\n\n\t\tthis.disposer = () => document.removeEventListener('keydown', handleKeydown);\n\t}\n}\n","import { AuthServiceV2 } from './Services/api/v2/auth.service';\nimport { RateService } from './Services/api/v2/rate.service';\nimport { BasketService } from './Services/api/v2/basket.service';\nimport { BasketStoreService } from './Services/stores/basket.store';\nimport { TranslateStaticAlias, TranslatePlaceholderDynamicAlias } from './Common/Directives/translation';\nimport { RouterModule } from '@angular/router';\nimport { ViewGuard } from './Guards/view.guard';\nimport { HttpRequestInterceptor } from './Interceptors/http-request.interceptor';\n// Angular\nimport { NgModule, ModuleWithProviders, ErrorHandler } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n// Modules\n\n// Custom classes\nimport { SpaContext } from './Classes/spacontext';\nimport { Doors } from './Classes/doors.class';\nimport { ConfirmLeaveGuard } from './Guards/confirm-leave.guard';\n\n// Directives\n\n// Components\nimport { VisibaPaymentComponent } from './Components/visibaPayment.component';\nimport { MediaTestMiniComponent } from './Components/mediaTestMini.component';\nimport { DynamicFormComponent } from './Components/DynamicForm/dynamicForm.component';\nimport { DfqYesNoComponent } from './Components/DynamicForm/question-yesno.component';\nimport { VisibaStepComponent } from './Components/visibaStep.component';\nimport { MessagingComponent } from './Components/messaging.component';\n\n// Services\nimport { SpaEventService } from './Services/spaEvents.service';\nimport { GeneralService } from './Services/general.service';\nimport { SurveyService } from './Services/api/v2/survey.service';\nimport { UserFilesService } from './Services/api/v2/userfiles.service';\nimport { ErrHandler } from './error.handler';\nimport { DropInQueueService } from './Services/Queue/dropin-queue.service';\nimport { DfqMultiChoiceComponent } from './Components/DynamicForm/question-multichoice.component';\nimport { DfqMultilineComponent } from './Components/DynamicForm/question-multiline.component';\nimport { DfqSingleChoiceRadioComponent } from './Components/DynamicForm/question-singlechoiceradio.component';\nimport { DfqSingleChoiceSelectComponent } from './Components/DynamicForm/question-singlechoiceselect.component';\nimport { succesBox } from './Components/succesBox.component';\nimport { MessagingInjectable } from './Injectables/messaging.injectable';\nimport { CiscoMeetingServerService } from './Services/ciscoMeetingServer.service';\nimport { VisibaApiHttp } from './Classes/visibaHttp.class';\nimport { PageLoadHandler } from './Classes/PageLoadHandler';\nimport { UnitService } from './Services/api/v2/Units/units.service';\nimport { PaymentServiceV2 } from './Services/api/v2/Units/payment.service';\nimport { DropInUnitServiceV2 } from './Services/api/v2/Units/dropIn.service';\nimport { MessagingServiceV2 } from './Services/api/v2/messaging.service';\nimport { MessagingServiceV2 as MessagingUnitServiceV2 } from './Services/api/v2/Units/messaging.service';\nimport { IdentityServiceV2 } from './Services/api/v2/identity.service';\nimport { ScheduledDataService } from './Services/scheduled-data';\nimport { TimeslotServiceV2 } from './Services/api/v2/Units/timeslot.service';\nimport { DropInServiceV2 } from './Services/api/v2/dropin.service';\nimport { CasesServiceV2 } from './Services/api/v2/cases.service';\nimport { AppointmentsServiceV2 } from './Services/api/v2/appointments.service';\nimport { DynamicFormServiceV2 } from './Services/api/v2/Units/dynamic-form.service';\nimport { ConditionServiceV2 } from './Services/api/v2/Units/condition.service';\nimport { WebContentButtonsService } from './Services/api/v2/Units/webContentButtons.service';\nimport { ExternalDataService } from './Services/api/v2/Units/external-data.service';\nimport { PhysicalLocationService } from './Services/api/v2/Units/physical-location.service';\nimport { LicenceHolderServiceV2 } from './Services/api/v2/licenceholder.service';\nimport { Autosize } from './Common/Directives/autosize.directive';\nimport { visibaProgressBar } from './Common/Directives/visibaProgressBar';\nimport { TranslateService } from './Common/Services/translate.service';\nimport { VisibaSvgIconRepository } from './Common/Directives/visibaSvgIconRepository';\nimport { AudioPlayerService } from './Common/Services/audioPlayer.service';\nimport { VisibaSvg } from './Common/Directives/visibaSvg';\nimport { VisibaSelectComponent } from './Common/Directives/visibaSelect';\nimport { VisibaDatepickerComponent } from './Common/Directives/visibaDatepicker';\nimport { VisibaTimepickerComponent } from './Common/Directives/visibaTimepicker';\nimport { VisibaTelComponent } from './Common/Directives/visibaTel';\nimport { VisibaNationalIdentityNumberComponent } from './Common/Directives/visibaNationalIdentityNumber';\nimport { VisibaInputComponent } from './Common/Directives/visibaInput';\nimport { AlignHeight } from './Common/Directives/html';\nimport { VisibaGoogleChart } from './Common/Directives/visibaGoogleChart';\nimport { VisibaICDComponent } from './Common/Directives/visibaICD.component';\nimport { ImageViewerComponent } from './Common/Components/imageviewer.component';\nimport { ToggleSwitchComponent } from './Common/Components/toggle-switch.component';\nimport { AutoStick } from './Common/Directives/autoStick.directive';\nimport { VisibaSaveButtonComponent } from './Common/Directives/visibaSaveButton';\nimport { VisibaAlertComponent } from './Common/Directives/visibaAlert';\nimport { DateDisplayPipe } from './Common/Pipes/dateDisplayPipe';\nimport { SafeHtmlPipe } from './Common/Pipes/safeHtmlPipe';\nimport { TranslatePipe, TranslateAllowEmptyPipe } from './Common/Pipes/translate.pipe';\nimport { ConsolePipe } from './Common/Pipes/consolePipe';\nimport { Helper } from './Common/Helpers/helper';\nimport { SpaLogger } from './Common/Classes/Global/spalogger.class';\nimport { ConfirmPhoneNumberComponent } from './Components/confirmPhoneNumber';\nimport { NotificationComplianceComponent } from './Components/notificationCompliance.component';\nimport { ModalComponent } from './Components/modal.component';\nimport { ModalService } from './Services/modalService';\nimport { NotificationSettingsService } from './Services/api/v2/notificationSettings.service';\nimport { AuthContextService } from './Services/authContext.service';\nimport { ApplicationService } from './Services/application.service';\nimport { DateService } from './Services/date.service';\nimport { RedRobinService } from './Services/red-robin.service';\nimport { IdentityFactoryService } from './Services/flexible_patient_buttons.service/identity_factory.service';\nimport { FlexiblePatientButtonsService } from './Services/flexible_patient_buttons.service/mod';\nimport { UnitApiService } from './Services/api/v2/units_api.service';\nimport { TimeSlotLockApiService } from './Services/api/v2/timeslot_lock.service';\nimport { AppointmentFlowService } from './Views/Appointment/appointment-flow.service';\nimport { SemanticViewComponent } from './Components/semantic-view.component';\nimport { TrapFocusDirective } from './Common/Directives/trapFocus.directive';\nimport { OutcomesService } from './Services/outcomes.service';\nimport { UsageAgreementsService } from './Services/api/v2/usageAgreements.service';\nimport { RegistrationService } from './Services/api/v2/registration.service';\nimport { SmsAuthService } from './Services/api/v2/smsAuth.service';\n\n@NgModule({\n\timports: [CommonModule, FormsModule, HttpClientModule, ReactiveFormsModule, RouterModule],\n\tdeclarations: [\n\t\t// Directives\n\t\tVisibaSvg,\n\t\tAutosize,\n\t\tVisibaSelectComponent,\n\t\tVisibaDatepickerComponent,\n\t\tVisibaTimepickerComponent,\n\t\tVisibaTelComponent,\n\t\tVisibaNationalIdentityNumberComponent,\n\t\tVisibaInputComponent,\n\t\tAlignHeight,\n\t\tVisibaGoogleChart,\n\t\tVisibaICDComponent,\n\t\tVisibaPaymentComponent,\n\t\tMediaTestMiniComponent,\n\t\tImageViewerComponent,\n\t\tToggleSwitchComponent,\n\t\tVisibaStepComponent,\n\t\tAutoStick,\n\t\tTrapFocusDirective,\n\t\tDynamicFormComponent,\n\t\tDfqYesNoComponent,\n\t\tDfqMultiChoiceComponent,\n\t\tDfqMultilineComponent,\n\t\tDfqSingleChoiceRadioComponent,\n\t\tDfqSingleChoiceSelectComponent,\n\t\tVisibaSaveButtonComponent,\n\t\tMessagingComponent,\n\t\tsuccesBox,\n\t\tvisibaProgressBar,\n\t\tVisibaAlertComponent,\n\t\tTranslateStaticAlias,\n\t\tTranslatePlaceholderDynamicAlias,\n\t\tConfirmPhoneNumberComponent,\n\t\tNotificationComplianceComponent,\n\t\tModalComponent,\n\t\tSemanticViewComponent,\n\t\t// Pipes\n\t\tDateDisplayPipe,\n\t\tSafeHtmlPipe,\n\t\tTranslatePipe,\n\t\tTranslateAllowEmptyPipe,\n\t\tConsolePipe,\n\t],\n\texports: [\n\t\tCommonModule,\n\t\tFormsModule,\n\t\tReactiveFormsModule,\n\t\tRouterModule,\n\t\t// Directives\n\t\tVisibaSvg,\n\t\tAutosize,\n\t\tVisibaSelectComponent,\n\t\tVisibaDatepickerComponent,\n\t\tVisibaTimepickerComponent,\n\t\tVisibaTelComponent,\n\t\tVisibaNationalIdentityNumberComponent,\n\t\tVisibaInputComponent,\n\t\tAlignHeight,\n\t\tVisibaGoogleChart,\n\t\tVisibaICDComponent,\n\t\tVisibaPaymentComponent,\n\t\tMediaTestMiniComponent,\n\t\tImageViewerComponent,\n\t\tToggleSwitchComponent,\n\t\tVisibaStepComponent,\n\t\tAutoStick,\n\t\tTrapFocusDirective,\n\t\tDynamicFormComponent,\n\t\tDfqYesNoComponent,\n\t\tDfqMultiChoiceComponent,\n\t\tDfqMultilineComponent,\n\t\tDfqSingleChoiceRadioComponent,\n\t\tDfqSingleChoiceSelectComponent,\n\t\tVisibaSaveButtonComponent,\n\t\tMessagingComponent,\n\t\tsuccesBox,\n\t\tvisibaProgressBar,\n\t\tVisibaAlertComponent,\n\t\tTranslateStaticAlias,\n\t\tTranslatePlaceholderDynamicAlias,\n\t\tConfirmPhoneNumberComponent,\n\t\tModalComponent,\n\t\tSemanticViewComponent,\n\t\t// Pipes\n\t\tDateDisplayPipe,\n\t\tSafeHtmlPipe,\n\t\tTranslatePipe,\n\t\tTranslateAllowEmptyPipe,\n\t\tConsolePipe,\n\t],\n})\nexport class SharedModule {\n\tstatic forRoot(): ModuleWithProviders<any> {\n\t\treturn {\n\t\t\tngModule: SharedModule,\n\t\t\tproviders: [\n\t\t\t\t// additional providers\n\t\t\t\tVisibaApiHttp,\n\t\t\t\tHelper,\n\t\t\t\tSpaEventService,\n\n\t\t\t\tGeneralService,\n\t\t\t\tUserFilesService,\n\n\t\t\t\tFlexiblePatientButtonsService,\n\t\t\t\tIdentityFactoryService,\n\n\t\t\t\tTranslateService,\n\t\t\t\tDropInQueueService,\n\t\t\t\tDoors,\n\t\t\t\tCiscoMeetingServerService,\n\t\t\t\tVisibaSvgIconRepository,\n\t\t\t\tMessagingInjectable,\n\t\t\t\tUnitService,\n\t\t\t\tWebContentButtonsService,\n\t\t\t\tExternalDataService,\n\t\t\t\tPhysicalLocationService,\n\t\t\t\tRedRobinService,\n\t\t\t\tOutcomesService,\n\n\t\t\t\tUnitApiService,\n\n\t\t\t\t// V2 API services\n\t\t\t\tDynamicFormServiceV2,\n\t\t\t\tAppointmentsServiceV2,\n\t\t\t\tDropInServiceV2,\n\t\t\t\tDropInUnitServiceV2,\n\t\t\t\tIdentityServiceV2,\n\t\t\t\tTimeslotServiceV2,\n\t\t\t\tMessagingServiceV2,\n\t\t\t\tMessagingUnitServiceV2,\n\t\t\t\tPaymentServiceV2,\n\t\t\t\tCasesServiceV2,\n\t\t\t\tConditionServiceV2,\n\t\t\t\tLicenceHolderServiceV2,\n\t\t\t\tRateService,\n\t\t\t\tAuthServiceV2,\n\t\t\t\tTimeSlotLockApiService,\n\t\t\t\tSurveyService,\n\t\t\t\tUsageAgreementsService,\n\t\t\t\tRegistrationService,\n\t\t\t\tSmsAuthService,\n\n\t\t\t\t// APP services\n\t\t\t\tScheduledDataService,\n\n\t\t\t\tAppointmentFlowService,\n\t\t\t\tAudioPlayerService,\n\n\t\t\t\tBasketService,\n\t\t\t\tBasketStoreService,\n\n\t\t\t\tModalService,\n\t\t\t\tNotificationSettingsService,\n\n\t\t\t\tAuthContextService,\n\t\t\t\tApplicationService,\n\t\t\t\tDateService,\n\n\t\t\t\t{ provide: ViewGuard, useClass: ViewGuard },\n\t\t\t\t{ provide: ConfirmLeaveGuard, useClass: ConfirmLeaveGuard },\n\t\t\t\t{ provide: SpaContext, useClass: SpaContext },\n\t\t\t\t{ provide: SpaLogger, useClass: SpaLogger },\n\t\t\t\t{\n\t\t\t\t\tprovide: HTTP_INTERCEPTORS,\n\t\t\t\t\tuseClass: HttpRequestInterceptor,\n\t\t\t\t\tmulti: true,\n\t\t\t\t},\n\t\t\t\t{ provide: ErrorHandler, useClass: ErrHandler },\n\t\t\t\t{ provide: PageLoadHandler, useClass: PageLoadHandler },\n\t\t\t],\n\t\t};\n\t}\n}\n","import { IEnvironment } from './Ienvironment';\n\nexport const environment: IEnvironment = {\n\tproduction: true,\n\thmr: false,\n\tapi: {\n\t\turi: '',\n\t},\n\trealtime: {\n\t\thost: null,\n\t\tport: 443,\n\t},\n\tmatomo: {\n\t\tenabled: true,\n\t\turl: '//analytics.visibacare.com/',\n\t\tsiteId: 4,\n\t},\n\tserverBaseUrl: '/PublicV3',\n\tcdn: {\n\t\tcustomer: '//customer-cdn.visibacare.com',\n\t\tmedia: '//media-cdn.visibacare.com',\n\t},\n\tcallstatsAnalytics: {\n\t\tapiUrl: 'https://c.analytics.visibacare.com',\n\t},\n};\n","import { devLocalStorage } from '../application/dev_local_storage';\nimport { Logger } from './logger/logger';\n\nexport namespace DebugConfig {\n\texport interface LocalStorageConfig extends WindowVisiba.Global {\n\t\tlog: {\n\t\t\tlevel: Logger.Level;\n\t\t\toutput: string;\n\t\t\tsave: boolean;\n\t\t};\n\t}\n\n\tfunction saveDebugConfig(): void {\n\t\tdevLocalStorage.set('config', {\n\t\t\tallowMobile: window.__visiba__.allowMobile,\n\t\t\tRR: {\n\t\t\t\tdebug: window.__visiba__.RR.debug,\n\t\t\t},\n\t\t\tlog: {\n\t\t\t\tlevel: Logger.state.level,\n\t\t\t\toutput: 'console',\n\t\t\t\tsave: Logger.state.storeValues,\n\t\t\t},\n\t\t});\n\t}\n\n\tconst config = devLocalStorage.get('config');\n\n\tconst url = new URL(location.href);\n\tconst search = new URLSearchParams(url.search);\n\tconst secretQueryParam = search.get('__SECRET_ALLOW_MOBILE_DO_NOT_USE');\n\tconst allowMobile = secretQueryParam === 'true' ? true : secretQueryParam === 'false' ? false : null;\n\n\tconst mirrorState = {\n\t\tallowMobile: allowMobile ?? config?.allowMobile ?? false,\n\t\tdebug: config?.RR?.debug ?? false,\n\t};\n\n\t// Sets up global object for the browser\n\twindow.__visiba__ = {\n\t\tset allowMobile(value: boolean) {\n\t\t\tmirrorState.allowMobile = value;\n\n\t\t\tsaveDebugConfig();\n\t\t},\n\t\tget allowMobile(): boolean {\n\t\t\treturn mirrorState.allowMobile;\n\t\t},\n\t\tRR: {\n\t\t\tset debug(value: boolean) {\n\t\t\t\tmirrorState.debug = value;\n\n\t\t\t\tsaveDebugConfig();\n\t\t\t},\n\t\t\tget debug(): boolean {\n\t\t\t\treturn mirrorState.debug;\n\t\t\t},\n\t\t},\n\t\tlog: {\n\t\t\tget level(): Logger.Level {\n\t\t\t\treturn Logger.state.level;\n\t\t\t},\n\t\t\tset level(level: Logger.Level) {\n\t\t\t\tconst levelBeforeUpdate = Logger.state.level;\n\n\t\t\t\tLogger.setLogLevel(level);\n\n\t\t\t\tif (process.env.NODE_ENV !== 'test') {\n\t\t\t\t\tif (levelBeforeUpdate !== level && level === Logger.state.level) {\n\t\t\t\t\t\tLogger.print('updated level');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tLogger.print('invalid level', Logger.Level.error);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tsaveDebugConfig();\n\t\t\t},\n\t\t\tget output(): string {\n\t\t\t\treturn `\\n${Logger.storedLogs.join('\\n')}\\n`;\n\t\t\t},\n\t\t},\n\t};\n\n\tsaveDebugConfig();\n}\n","/**\n * @license Angular v19.1.4\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { Compiler, ViewEncapsulation, Injector, createPlatformFactory, platformCore, COMPILER_OPTIONS, CompilerFactory, Injectable, PLATFORM_ID, Version } from '@angular/core';\nimport { CompilerConfig, ResourceLoader } from '@angular/compiler';\nimport { ɵPLATFORM_BROWSER_ID } from '@angular/common';\nimport { ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS } from '@angular/platform-browser';\n\nconst COMPILER_PROVIDERS = [\n { provide: Compiler, useFactory: () => new Compiler() },\n];\n/**\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n */\nclass JitCompilerFactory {\n _defaultOptions;\n /** @internal */\n constructor(defaultOptions) {\n const compilerOptions = {\n defaultEncapsulation: ViewEncapsulation.Emulated,\n };\n this._defaultOptions = [compilerOptions, ...defaultOptions];\n }\n createCompiler(options = []) {\n const opts = _mergeOptions(this._defaultOptions.concat(options));\n const injector = Injector.create({\n providers: [\n COMPILER_PROVIDERS,\n {\n provide: CompilerConfig,\n useFactory: () => {\n return new CompilerConfig({\n defaultEncapsulation: opts.defaultEncapsulation,\n preserveWhitespaces: opts.preserveWhitespaces,\n });\n },\n deps: [],\n },\n opts.providers,\n ],\n });\n return injector.get(Compiler);\n }\n}\nfunction _mergeOptions(optionsArr) {\n return {\n defaultEncapsulation: _lastDefined(optionsArr.map((options) => options.defaultEncapsulation)),\n providers: _mergeArrays(optionsArr.map((options) => options.providers)),\n preserveWhitespaces: _lastDefined(optionsArr.map((options) => options.preserveWhitespaces)),\n };\n}\nfunction _lastDefined(args) {\n for (let i = args.length - 1; i >= 0; i--) {\n if (args[i] !== undefined) {\n return args[i];\n }\n }\n return undefined;\n}\nfunction _mergeArrays(parts) {\n const result = [];\n parts.forEach((part) => part && result.push(...part));\n return result;\n}\n\n/**\n * A platform that included corePlatform and the compiler.\n *\n * @publicApi\n */\nconst platformCoreDynamic = createPlatformFactory(platformCore, 'coreDynamic', [\n { provide: COMPILER_OPTIONS, useValue: {}, multi: true },\n { provide: CompilerFactory, useClass: JitCompilerFactory, deps: [COMPILER_OPTIONS] },\n]);\n\nclass ResourceLoaderImpl extends ResourceLoader {\n get(url) {\n let resolve;\n let reject;\n const promise = new Promise((res, rej) => {\n resolve = res;\n reject = rej;\n });\n const xhr = new XMLHttpRequest();\n xhr.open('GET', url, true);\n xhr.responseType = 'text';\n xhr.onload = function () {\n const response = xhr.response;\n let status = xhr.status;\n // fix status code when it is 0 (0 status is undocumented).\n // Occurs when accessing file resources or on Android 4.1 stock browser\n // while retrieving files from application cache.\n if (status === 0) {\n status = response ? 200 : 0;\n }\n if (200 <= status && status <= 300) {\n resolve(response);\n }\n else {\n reject(`Failed to load ${url}`);\n }\n };\n xhr.onerror = function () {\n reject(`Failed to load ${url}`);\n };\n xhr.send();\n return promise;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ResourceLoaderImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ResourceLoaderImpl });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ResourceLoaderImpl, decorators: [{\n type: Injectable\n }] });\n\n/**\n * @publicApi\n */\nconst INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS = [\n ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,\n {\n provide: COMPILER_OPTIONS,\n useValue: { providers: [{ provide: ResourceLoader, useClass: ResourceLoaderImpl, deps: [] }] },\n multi: true,\n },\n { provide: PLATFORM_ID, useValue: ɵPLATFORM_BROWSER_ID },\n];\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the platform-browser-dynamic package.\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('19.1.4');\n\n/**\n * @publicApi\n */\nconst platformBrowserDynamic = createPlatformFactory(platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { JitCompilerFactory, VERSION, platformBrowserDynamic, INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS, platformCoreDynamic as ɵplatformCoreDynamic };\n","import { SmsStartAuthApiResult } from '../../Services/Models/Auth/SmsStartAuthApiResult';\nimport { Input, Output, Component, EventEmitter } from '@angular/core';\nimport { SpaContext } from '../../Classes/spacontext';\nimport { ApiResponse } from '../../Classes/visibaHttp.class';\nimport { AuthServiceV2 } from '../../Services/api/v2/auth.service';\nimport { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport type { SignInOnFinishedEvent } from './SignInOnFinishedEvent';\n\n@Component({\n\tstandalone: false,\n\ttemplate: `\n\t\t<form novalidate (ngSubmit)=\"onSubmit()\" #form=\"ngForm\">\n\t\t\t<div class=\"row codeField\">\n\t\t\t\t<visiba-input\n\t\t\t\t\trequired\n\t\t\t\t\t[(ngModel)]=\"model.name\"\n\t\t\t\t\tname=\"name\"\n\t\t\t\t\tplaceholder=\"LicenceHolder.Component.NoAuthLoginComponent.Placeholder.Name\"\n\t\t\t\t></visiba-input>\n\t\t\t</div>\n\t\t\t<div class=\"row err\" *ngIf=\"errorMessage != null\">{{ errorMessage }}</div>\n\t\t\t<div class=\"row\">\n\t\t\t\t<button class=\"btn darkTeal\" [disabled]=\"!form.form.valid\">\n\t\t\t\t\t{{ 'LicenceHolder.Component.NoAuthLoginComponent.Button.Submit' | translate }}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</form>\n\t\t<div class=\"row error\" *ngIf=\"errorMessage != null\">{{ errorMessage }}</div>\n\t`,\n\tselector: 'no-auth-login',\n})\nexport class NoAuthLoginComponent {\n\t@Output() onFinished = new EventEmitter<SignInOnFinishedEvent>();\n\t@Input('ticket') callTicket: string = null;\n\t@Input() countryCode: string = null;\n\tpublic attempt: SmsStartAuthApiResult = null;\n\tpublic model: any = { name: '' };\n\tpublic errorMessage: string = null;\n\n\tconstructor(\n\t\tprivate spaContext: SpaContext,\n\t\tprivate authService: AuthServiceV2,\n\t\tprivate translateService: TranslateService,\n\t) {}\n\n\tngOnInit() {\n\t\tthis.authService.startNoAuthAuth(this.spaContext.unitConfig.Unit.UnitId, this.callTicket, this.countryCode).subscribe(\n\t\t\t(response) => {\n\t\t\t\tthis.attempt = response.data as any;\n\t\t\t},\n\t\t\t(err: ApiResponse<any>) => {\n\t\t\t\tthis.errorMessage = this.translateService.get('LicenceHolder.Component.NoAuthLoginComponent.Phrase.ErrorMessage');\n\t\t\t},\n\t\t);\n\t}\n\n\tpublic onSubmit() {\n\t\tthis.authService.confirmNoAuthIdentity(this.spaContext.unitConfig.Unit.UnitId, this.attempt.AttemptId, this.model.name).subscribe(\n\t\t\t(response) => {\n\t\t\t\tthis.onFinished.emit({ code: 'Signed' });\n\t\t\t},\n\t\t\t(err: ApiResponse<any>) => {\n\t\t\t\tthis.errorMessage = this.translateService.get('LicenceHolder.Component.NoAuthLoginComponent.Phrase.ErrorMessage');\n\t\t\t},\n\t\t);\n\t}\n}\n","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nconst routes: Routes = [];\n\n@NgModule({\n\timports: [RouterModule.forRoot(routes)],\n\texports: [RouterModule],\n})\nexport class AppRoutingModule {}\n","// eslint-disable-next-line @typescript-eslint/triple-slash-reference\n/// <reference path=\"../../src/environment.d.ts\" />\n\nimport { Component, ViewEncapsulation, ViewChild } from '@angular/core';\nimport { SpaContext } from './Classes/spacontext';\nimport { SpaLogger } from './Common/Classes/Global/spalogger.class';\nimport { StartupService } from './Services/app/startup.service';\nimport { SpaEventService } from './Services/spaEvents.service';\nimport { Router, NavigationEnd } from '@angular/router';\nimport { Helper } from './Common/Helpers/helper';\nimport { IdentityServiceV2 } from './Services/api/v2/identity.service';\nimport { PageLoadHandler } from './Classes/PageLoadHandler';\nimport { TranslateService } from './Common/Services/translate.service';\n// import { MatomoInjector, MatomoTracker } from 'ngx-matomo';\nimport { ModalService } from './Services/modalService';\nimport { NotificationSettingsService } from './Services/api/v2/notificationSettings.service';\nimport { NotificationComplianceComponent } from './Components/notificationCompliance.component';\nimport { IdentityApiModel } from './Services/api/v2/Models/IdentityApiModel';\nimport { OpenTargetWith } from './Components/Authentication/signin.component';\nimport { AuthContextService } from './Services/authContext.service';\nimport { ApplicationService } from './Services/application.service';\n\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport { UsageAgreementsService } from './Services/api/v2/usageAgreements.service';\nimport { sharedResolution } from '../../src/shared_resolution';\nimport { IdpUrlRedirectStorageService } from '@public/src/application/idp_url_redirect_storage.service';\n\n@Component({\n\tstandalone: false,\n\tselector: 'app-root',\n\ttemplateUrl: './app.component.html',\n\tencapsulation: ViewEncapsulation.None,\n\tstyleUrls: ['./app.component.scss'],\n\thost: { '[class]': 'currentPageClassName' },\n})\nexport class AppComponent {\n\tbrowserIsSupported: boolean;\n\tversionIsSupported = true;\n\tsignIn = {\n\t\ttarget: null,\n\t\treason: null,\n\t\tticket: null,\n\t\tleave: null,\n\t\tauthMethod: null,\n\t\topenTargetWith: null,\n\t};\n\tregistration: any = null;\n\tsignatures: any = null;\n\tcurrentPage = '';\n\tcurrentPageClassName = '';\n\theaderHeight = 40;\n\t@ViewChild('headerComp', { static: false }) headerComp: any;\n\t@ViewChild('loader', { static: false }) loader: any;\n\tidentityIntervalOutsider: number = null;\n\tidentityInterval: number = null;\n\tprivate requireLogin = true;\n\n\tpublic readonly licenceHolderService = sharedResolution.resolve(LicenceHolderService);\n\tpublic readonly locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\n\tconstructor(\n\t\tpublic spaContext: SpaContext,\n\t\tpublic router: Router,\n\t\tpublic helper: Helper,\n\t\tpublic authContextService: AuthContextService,\n\t\tprivate spaLogger: SpaLogger,\n\t\tprivate startupService: StartupService,\n\t\tprivate spaEventService: SpaEventService,\n\t\tprivate identityService: IdentityServiceV2,\n\t\tprivate pageLoadHandler: PageLoadHandler,\n\t\tprivate translateService: TranslateService,\n\t\t// private matomoInjector: MatomoInjector,\n\t\t// private matomoTracker: MatomoTracker,\n\t\tprivate modalService: ModalService,\n\t\tprivate notificationSettingsService: NotificationSettingsService,\n\t\tprivate applicationService: ApplicationService,\n\t\tprivate usageAgreementsServie: UsageAgreementsService,\n\t) {\n\t\t//#region Event listeners\n\n\t\twindow.onerror = (\n\t\t\terrorMsg: any,\n\t\t\turl: string,\n\t\t\tlineNumber: number,\n\t\t\tcolNumber: number,\n\t\t\terror: { stack?: string; name?: string } = null,\n\t\t) => {\n\t\t\tif (typeof error !== 'undefined' && error !== null) {\n\t\t\t\tthis.spaLogger.log(\n\t\t\t\t\t'Debug',\n\t\t\t\t\t['Public', 'ConsoleError'],\n\t\t\t\t\t`${error.name}: ${error['message']}`,\n\t\t\t\t\t{\n\t\t\t\t\t\tUrl: window.location.href,\n\t\t\t\t\t\tLicensHolderId: this.spaContext.unitConfig.LicenceHolder.Id,\n\t\t\t\t\t\tUnitId: this.spaContext.unitConfig.Unit.UnitId,\n\t\t\t\t\t\tErrorType: error.name,\n\t\t\t\t\t},\n\t\t\t\t\terror.stack,\n\t\t\t\t);\n\t\t\t}\n\t\t};\n\n\t\twindow.addEventListener('triggerSignIn', (event: CustomEvent) => {\n\t\t\tthis.spaEventService.onSignInRequired.emit(event.detail);\n\t\t});\n\n\t\tthis.spaEventService.onSignInRequired.subscribe((event) => {\n\t\t\tthis.signIn.target = event.target;\n\t\t\tthis.signIn.ticket = typeof event.callticket === 'undefined' ? null : event.callticket;\n\t\t\tthis.signIn.reason = typeof event.reason === 'undefined' ? null : event.reason;\n\t\t\tthis.signIn.leave = typeof event.leave === 'undefined' ? true : event.leave;\n\t\t\tthis.signIn.authMethod = typeof event.authMethod === 'undefined' ? null : event.authMethod;\n\t\t\tthis.signIn.openTargetWith =\n\t\t\t\ttypeof event.openTargetWith === 'undefined' ? OpenTargetWith.AngularNavigation : event.openTargetWith;\n\n\t\t\tif (__visiba_feature_flags__['CareExperience.PW.Idp']) {\n\t\t\t\tsharedResolution.resolve(IdpUrlRedirectStorageService).setRedirectPath(this.signIn.target);\n\t\t\t}\n\t\t});\n\n\t\tthis.spaEventService.onSignedOut.subscribe((value) => {\n\t\t\tthis.visitorSignedOut(value?.redirectUrl);\n\t\t});\n\n\t\tthis.spaEventService.onChangeUnit.subscribe((data) => {\n\t\t\tthis.changeUnit(data.unitId);\n\t\t});\n\n\t\tthis.spaEventService.onSignedOutAsOutsider.subscribe((value) => {\n\t\t\tthis.visitorSignedOutAsOutsider(null, value?.reloadAfterSignOut);\n\t\t});\n\n\t\tthis.spaEventService.onSignInAborted.subscribe(() => {\n\t\t\tthis.signIn.target = null;\n\t\t\tthis.signIn.authMethod = null;\n\t\t\tthis.signIn.openTargetWith = null;\n\t\t\tthis.signIn.ticket = null;\n\t\t\tthis.signIn.reason = null;\n\n\t\t\twindow.dispatchEvent(new CustomEvent('abortSignIn'));\n\t\t});\n\n\t\tthis.spaEventService.onSignedIn.subscribe((identity: IdentityApiModel) => {\n\t\t\tthis.signIn.target = null;\n\t\t\tif (identity.UserType === 'Client') {\n\t\t\t\tthis.checkNotificationCompliance();\n\t\t\t}\n\t\t\tthis.visitorSignedIn();\n\t\t});\n\t\tthis.spaEventService.onSignedInAsOutsider.subscribe((overrideRequireLogin) => {\n\t\t\tthis.visitorSignedInAsOutsider();\n\t\t\tthis.signIn.target = null;\n\n\t\t\tif (this.requireLogin || overrideRequireLogin) {\n\t\t\t\tthis.checkIdentity();\n\t\t\t}\n\t\t});\n\n\t\tthis.spaEventService.onRegistrationRequired.subscribe((data) => {\n\t\t\tthis.signIn.target = null;\n\t\t\tthis.registration = { target: data.target, ticket: data.ticket };\n\t\t});\n\n\t\tthis.spaEventService.onNotificationComplianceNeeded.subscribe((settings) => {\n\t\t\tthis.modalService.detach();\n\t\t\tconst notificationComplianceComponent = this.modalService.attach(NotificationComplianceComponent, false);\n\t\t\tnotificationComplianceComponent.instance.notificationSettings = settings;\n\t\t});\n\n\t\tthis.spaEventService.onNotificationComplianceConfirmation.subscribe((settings) => {\n\t\t\tthis.modalService.detach();\n\t\t\tconst notificationComplianceComponent = this.modalService.attach(NotificationComplianceComponent, false);\n\t\t\tnotificationComplianceComponent.instance.showConfirmationDialog = true;\n\t\t\tnotificationComplianceComponent.instance.notificationSettings = settings;\n\t\t\tnotificationComplianceComponent.instance.onCancel.subscribe(() => {\n\t\t\t\tthis.modalService.detach();\n\t\t\t\tsettings.onCancel();\n\t\t\t});\n\t\t});\n\n\t\tthis.spaEventService.onNotificationComplianceCompleted.subscribe(() => {\n\t\t\tthis.modalService.detach();\n\t\t});\n\n\t\tthis.spaEventService.onRegistrationAborted.subscribe(() => {\n\t\t\tthis.registration = null;\n\t\t});\n\t\tthis.spaEventService.onVisitorRegistred.subscribe(() => {\n\t\t\tthis.registration = null;\n\t\t});\n\t\tthis.spaEventService.onDocumentsSigningNeeded.subscribe((documents) => {\n\t\t\tthis.signatures = { documents };\n\t\t});\n\t\tthis.spaEventService.onDocumentsSigningCompleted.subscribe((documents) => {\n\t\t\tthis.signatures = null;\n\t\t\tthis.spaContext.documentSigningPending = false;\n\t\t});\n\t\tthis.spaEventService.onDocumentsSigningAborted.subscribe((documents) => {\n\t\t\tthis.spaContext.documentSigningPending = false;\n\t\t\tthis.signatures = null;\n\t\t\tthis.registration = null;\n\n\t\t\tif (this.signIn.authMethod !== null) {\n\t\t\t\tconst cachedTarget = this.signIn.target;\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tthis.signIn.target = cachedTarget;\n\t\t\t\t}, 100);\n\t\t\t}\n\t\t\tthis.signIn.target = null;\n\t\t});\n\n\t\tthis.router.events.subscribe((e) => {\n\t\t\tif (e instanceof NavigationEnd) {\n\t\t\t\tlet currentPage: string;\n\n\t\t\t\tconst urlParts = e.urlAfterRedirects.replace(this.locationSelectorService.location.route, '').split('/');\n\t\t\t\tif (urlParts.every((value) => value === '')) {\n\t\t\t\t\tcurrentPage = 'index';\n\t\t\t\t} else {\n\t\t\t\t\tcurrentPage = urlParts.find((value) => value !== '');\n\t\t\t\t}\n\n\t\t\t\tthis.currentPage = currentPage;\n\t\t\t\tthis.currentPageClassName = 'area_' + currentPage;\n\t\t\t\tthis.setHeaderHeight();\n\t\t\t}\n\t\t});\n\n\t\tthis.pageLoadHandler.event.subscribe((event) => {\n\t\t\tthis.loader.show(event === 'hide' ? true : false);\n\t\t});\n\n\t\tdocument.addEventListener('DOMContentLoaded', () => {\n\t\t\tthis.setHeaderHeight();\n\t\t});\n\n\t\t(window as any).addEventListener(\n\t\t\t'resize',\n\t\t\t() => {\n\t\t\t\tthis.setHeaderHeight();\n\t\t\t},\n\t\t\ttrue,\n\t\t);\n\n\t\t//#endregion\n\n\t\t//#region Initialization\n\n\t\tthis.spaContext.init(this.startupService.unitConfigData, this.startupService.unitTreeData);\n\n\t\tthis.applicationService.webVersion = this.startupService.webVersion;\n\n\t\tthis.authContextService.signInPatient(null);\n\t\tthis.authContextService.resourceIdentity = this.startupService.resourceIdentityData;\n\n\t\tthis.checkIdentity();\n\n\t\tthis.checkCookies();\n\n\t\tif (µ.isDevelopment) this.spaLogger.logLevel = 3;\n\t\telse {\n\t\t\tthis.initMatomoTracking();\n\t\t}\n\n\t\t//#endregion\n\t}\n\n\tcheckNotificationCompliance() {\n\t\tthis.notificationSettingsService.getComplianceSettings().subscribe((response) => {\n\t\t\tconst currentSettings = response.data;\n\t\t\tif (!currentSettings.UpToDate) {\n\t\t\t\tthis.spaEventService.onNotificationComplianceNeeded.emit(response.data);\n\t\t\t\tconst complianceSubscription = this.spaEventService.onNotificationComplianceCompleted.subscribe((newSettings) => {\n\t\t\t\t\tcomplianceSubscription.unsubscribe();\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\n\tcheckIdentity() {\n\t\tif (\n\t\t\t(this.authContextService.isPatient() || this.startupService.patientIdentityData !== null) &&\n\t\t\tthis.startupService.resourceIdentityData == null\n\t\t) {\n\t\t\tif (__visiba_feature_flags__['CareExperience.PW.IDP']) {\n\t\t\t\tif (!this.authContextService.needsLegacyDocumentSigning()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.spaContext.documentSigningPending = true;\n\t\t\tthis.usageAgreementsServie.getSignatureDocuments(this.spaContext.unitConfig.LicenceHolder.Id).subscribe(\n\t\t\t\t(response) => {\n\t\t\t\t\tthis.requireLogin = false;\n\n\t\t\t\t\tif (!response.data.PrivacyPolicy.HasSigned || !response.data.TermsOfService.HasSigned) {\n\t\t\t\t\t\tthis.spaEventService.onDocumentsSigningNeeded.emit(response.data);\n\n\t\t\t\t\t\tconst signingSubscription = this.spaEventService.onDocumentsSigningCompleted.subscribe((documents) => {\n\t\t\t\t\t\t\tthis.completeSignIn();\n\t\t\t\t\t\t\tsigningSubscription.unsubscribe();\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tthis.completeSignIn();\n\t\t\t\t\tthis.spaEventService.onDocumentsSigningCompleted.emit(); // Emit so authGuard can let navigation through\n\t\t\t\t},\n\t\t\t\t(error) => {},\n\t\t\t);\n\n\t\t\tif (!this.authContextService.isOutsider) {\n\t\t\t\tthis.checkNotificationCompliance();\n\t\t\t}\n\t\t}\n\t}\n\n\tcompleteSignIn() {\n\t\tif (this.authContextService.patientIdentity === null) {\n\t\t\tthis.authContextService.signInPatient(null);\n\t\t\tthis.startupService.patientIdentityData = null;\n\t\t}\n\t}\n\n\tvisitorSignedIn() {\n\t\tthis.identityInterval = window.setInterval(() => {\n\t\t\tthis.identityService.isAlive().subscribe(\n\t\t\t\t(result) => {\n\t\t\t\t\tif (!result.data && this.signIn.target === null)\n\t\t\t\t\t\t// If signin is in progress dont reset. Promted from HttpsClass when 401\n\t\t\t\t\t\tthis.visitorSignedOut(null);\n\t\t\t\t},\n\t\t\t\t(error) => {},\n\t\t\t);\n\t\t}, 30 * 1000);\n\t}\n\n\tvisitorSignedOut(redirect: string | null) {\n\t\tclearInterval(this.identityInterval);\n\t\tif (redirect != null) {\n\t\t\twindow.location.href = redirect;\n\n\t\t\treturn;\n\t\t}\n\n\t\twindow.location.href = `${location.origin}/${this.licenceHolderService.alias}`;\n\t}\n\n\tvisitorSignedInAsOutsider() {\n\t\tif (this.identityIntervalOutsider !== null) return;\n\n\t\tthis.identityIntervalOutsider = window.setInterval(() => {\n\t\t\tthis.identityService.isAliveOutsider().subscribe(\n\t\t\t\t(result) => {\n\t\t\t\t\tif (!result.data) this.visitorSignedOutAsOutsider(null);\n\t\t\t\t},\n\t\t\t\t(error) => {},\n\t\t\t);\n\t\t}, 30 * 1000);\n\t}\n\n\tvisitorSignedOutAsOutsider(redirect: string | null, reloadAfterSignOut = true) {\n\t\tclearInterval(this.identityInterval);\n\t\tif (redirect != null) {\n\t\t\twindow.location.href = redirect;\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (reloadAfterSignOut) {\n\t\t\twindow.location.href = `${location.origin}/${this.licenceHolderService.alias}`;\n\t\t}\n\t}\n\n\tsetHeaderHeight() {\n\t\twindow.setTimeout(() => {\n\t\t\tif (this.headerComp && this.headerComp.headerRef !== null && typeof this.headerComp.headerRef !== 'undefined') {\n\t\t\t\tthis.headerHeight = this.headerComp.headerRef.nativeElement.clientHeight;\n\t\t\t}\n\t\t}, 0);\n\t}\n\n\tprivate changeUnit(unitId: number) {\n\t\tthis.spaContext.setGuiConfigItem('Selected_Unit', unitId);\n\t\tconst url = this.helper.unit.getFullUrlAlias(unitId, this.spaContext.unitTreeFlat);\n\t\twindow.location.href = url;\n\n\t\t// Cleaner reload some day?\n\t\t// Observable.forkJoin(\n\t\t// this._unitService.getTree(),\n\t\t// //this._unitService.getConfig(),\n\t\t// //this._unitService.getAbout(),\n\t\t// )\n\t\t// .subscribe(\n\t\t// ([unitTree, unitConfig, about]) => {\n\n\t\t// //unitConfig.data.About = about.data;\n\t\t// //this.spaContext.unitConfig = unitConfig.data;\n\t\t// //this._router.navigate([needsApproval ? '/approve' : '/_dev']);\n\t\t// },\n\t\t// );\n\t}\n\n\tprivate checkCookies() {\n\t\tif (__visiba_feature_flags__['PatientWeb.UseNewConsent']) return;\n\n\t\t/** Cookies **/\n\t\tif (localStorage.getItem('X-App-Cookies-Approved') === 'true') return;\n\n\t\twindow.setTimeout(() => {\n\t\t\tconst ww = document.createElement('div');\n\t\t\tww.className = 'cookiesNotification';\n\t\t\tww.innerHTML = `<div class=\"inner\">\n\t\t\t\t\t\t\t${this.translateService.get('Common.Phrase.CookiesWarning', {\n\t\t\t\t\t\t\t\tlink: `${window.origin}/${this.licenceHolderService.alias}/cookie-policy?skipPrompt=true`,\n\t\t\t\t\t\t\t})}\n\n <div class=\"btn\">\n ${this.translateService.get('Common.Button.IAccept')}\n </div>\n </div>`;\n\n\t\t\tww.querySelector('.btn').addEventListener('click', () => {\n\t\t\t\tlocalStorage.setItem('X-App-Cookies-Approved', 'true');\n\t\t\t\tww.parentNode.removeChild(ww);\n\t\t\t});\n\n\t\t\tdocument.body.appendChild(ww);\n\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tww.style.maxHeight = '200px';\n\t\t\t}, 1000);\n\t\t}, 2000);\n\t}\n\n\tprivate initMatomoTracking() {\n\t\t// this.matomoTracker.setCustomVariable(1, 'LicenceHolderId', this.spaContext.unitConfig.LicenceHolder.Id.toString(), 'page');\n\t\t// this.matomoTracker.setCustomVariable(2, 'UnitId', this.spaContext.unitConfig.Unit.UnitId.toString(), 'page');\n\t\t// this.matomoTracker.setCustomVariable(\n\t\t// \t3,\n\t\t// \t'GlobalCustomerId',\n\t\t// \tthis.spaContext.unitConfig.LicenceHolder.GlobalCustomerId.toString(),\n\t\t// \t'page',\n\t\t// );\n\t\t// this.matomoTracker.setCustomVariable(4, 'Instance', location.hostname, 'page');\n\t\t// this.matomoInjector.init();\n\t\t// this.router.events.subscribe((e) => {\n\t\t// \tif (e instanceof NavigationEnd) {\n\t\t// \t\t// https://developer.matomo.org/guides/spa-tracking\n\t\t// \t\tif (e.id === 1) return; // First navigation already logged\n\t\t// \t\tthis.matomoTracker.setCustomUrl(window.location.pathname.replace(this.locationSelectorService.location.route, ''));\n\t\t// \t\tthis.matomoTracker.setGenerationTimeMs(0);\n\t\t// \t\tthis.matomoTracker.trackPageView();\n\t\t// \t}\n\t\t// });\n\t}\n}\n","import { Input, Output, Component, EventEmitter } from '@angular/core';\nimport { SpaContext } from '../../Classes/spacontext';\nimport { ApiResponse } from '../../Classes/visibaHttp.class';\nimport { AuthServiceV2 } from '../../Services/api/v2/auth.service';\nimport { VisibaPopup } from 'Public_old/src/app/Common/Classes/visibaPopup';\nimport { parse, format, isValidNumber } from 'libphonenumber-js';\nimport { TranslateService } from 'Public_old/src/app/Common/Services/translate.service';\nimport type { SignInOnFinishedEvent } from './SignInOnFinishedEvent';\nimport { SmsStartAuthModel } from '@public/src/api/generated/models';\nimport { SmsAuthService } from '../../Services/api/v2/smsAuth.service';\n\n@Component({\n\tstandalone: false,\n\ttemplate: `\n\t\t<h2 [class.nhsFont]=\"countryCode === 'GB'\">\n\t\t\t{{ 'LicenceHolder.Component.SmsLoginComponent.Title.MethodSmsLogin' | translate }}\n\t\t</h2>\n\t\t<form novalidate (ngSubmit)=\"submitNumber()\" #numberform=\"ngForm\" *ngIf=\"showNumberForm\">\n\t\t\t<div class=\"row codeField\" [class.nhsStyling]=\"countryCode === 'GB'\">\n\t\t\t\t<visiba-tel required [(ngModel)]=\"model.Number\" [readonly]=\"isOutsider\" name=\"number\" [country]=\"countryCode\"></visiba-tel>\n\t\t\t</div>\n\t\t\t<div class=\"row err\" *ngIf=\"errorMessageNumber != null\">{{ errorMessageNumber }}</div>\n\t\t\t<div class=\"row\">\n\t\t\t\t<button\n\t\t\t\t\tclass=\"btn\"\n\t\t\t\t\t[class.small]=\"countryCode === 'GB'\"\n\t\t\t\t\t[class.large]=\"countryCode !== 'GB'\"\n\t\t\t\t\t[class.nhsButton]=\"countryCode === 'GB'\"\n\t\t\t\t>\n\t\t\t\t\t{{ 'LicenceHolder.Component.SmsLoginComponent.Button.SubmitNumber' | translate }}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</form>\n\t\t<form novalidate (ngSubmit)=\"onSubmit()\" #codeform=\"ngForm\" *ngIf=\"showCodeForm\">\n\t\t\t<div class=\"row codeSent\">\n\t\t\t\t{{ 'LicenceHolder.Component.SmsLoginComponent.Phrase.CodeSent' | translate: { number: number } : 1 }}\n\t\t\t</div>\n\t\t\t<div class=\"row codeField\">\n\t\t\t\t<visiba-input\n\t\t\t\t\trequired\n\t\t\t\t\tmaxlength=\"6\"\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t[(ngModel)]=\"model.Code\"\n\t\t\t\t\tname=\"code\"\n\t\t\t\t\tplaceholder=\"LicenceHolder.Component.SmsLoginComponent.Placeholder.YourCode\"\n\t\t\t\t></visiba-input>\n\t\t\t</div>\n\t\t\t<div class=\"row err\" *ngIf=\"errorMessage != null\">{{ errorMessage }}</div>\n\t\t\t<div class=\"row\">\n\t\t\t\t<button\n\t\t\t\t\tclass=\"btn large\"\n\t\t\t\t\t[class.small]=\"countryCode === 'GB'\"\n\t\t\t\t\t[class.large]=\"countryCode !== 'GB'\"\n\t\t\t\t\t[class.nhsButton]=\"countryCode === 'GB'\"\n\t\t\t\t>\n\t\t\t\t\t{{ 'Common.Button.SignIn' | translate }}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t\t<div class=\"row codeAgain\">\n\t\t\t\t<button type=\"text\" class=\"btn ghost\" (click)=\"resendCode()\">\n\t\t\t\t\t{{ 'LicenceHolder.Component.SmsLoginComponent.Button.GetSmsCode' | translate }}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</form>\n\t`,\n\tselector: 'sms-login',\n})\nexport class SmsLoginComponent {\n\t@Output() onFinished = new EventEmitter<SignInOnFinishedEvent>();\n\t@Input() countryCode: string;\n\t@Input('ticket') callTicket: Guid | null = null;\n\t@Input('isOutsider') isOutsider = false;\n\tattempt: SmsStartAuthModel;\n\tsmsTries = 0;\n\tshowNumberForm = false;\n\tshowCodeForm = false;\n\tmodel: any = { Number: '' };\n\terrorMessageNumber: string = null;\n\terrorMessage: string = null;\n\tpublic gettingCode = false;\n\tnumber: string | null = null;\n\n\tconstructor(\n\t\tprivate spaContext: SpaContext,\n\t\tprivate smsAuthService: SmsAuthService,\n\t\tprivate authService: AuthServiceV2,\n\t\tprivate translateService: TranslateService,\n\t) {}\n\n\tngOnInit() {\n\t\tif (this.callTicket !== null && !this.isOutsider) {\n\t\t\tthis.getCode();\n\t\t} else if (this.isOutsider && this.callTicket !== null) {\n\t\t\tthis.authService.getPreRegisteredNumber(this.callTicket, this.spaContext.unitConfig.Unit.UnitId).subscribe((response) => {\n\t\t\t\tthis.model.Number = response.data;\n\t\t\t\tthis.showNumberForm = true;\n\t\t\t});\n\t\t} else {\n\t\t\tthis.showNumberForm = true;\n\t\t}\n\t}\n\n\tsubmitNumber() {\n\t\tthis.getCode();\n\t}\n\n\tonSubmit() {\n\t\tif (this.isOutsider) {\n\t\t\tthis.authService.confirmSmsCode(this.spaContext.unitConfig.Unit.UnitId, this.attempt.AttemptId, this.model.Code).subscribe(\n\t\t\t\t() => {\n\t\t\t\t\tthis.onFinished.emit({ code: 'Signed' });\n\t\t\t\t},\n\t\t\t\t(err: ApiResponse<any>) => {\n\t\t\t\t\tif (err.errorCode === 'MaxAuthAttemptExeeded') {\n\t\t\t\t\t\tnew VisibaPopup(this.translateService.get('LicenceHolder.Component.SmsLoginComponent.Title.MaxAuthAttemptExeeded'), null)\n\t\t\t\t\t\t\t.inform(this.translateService.get('Common.Button.OK'))\n\t\t\t\t\t\t\t.attatch()\n\t\t\t\t\t\t\t.observer()\n\t\t\t\t\t\t\t.subscribe(\n\t\t\t\t\t\t\t\t() => {\n\t\t\t\t\t\t\t\t\tthis.showNumberForm = true;\n\t\t\t\t\t\t\t\t\tthis.showCodeForm = false;\n\t\t\t\t\t\t\t\t\tthis.attempt = null;\n\t\t\t\t\t\t\t\t\tthis.errorMessage = null;\n\t\t\t\t\t\t\t\t\tthis.model.Code = null;\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t() => {},\n\t\t\t\t\t\t\t);\n\t\t\t\t\t} else if (err.errorMessage !== null) {\n\t\t\t\t\t\tthis.errorMessage = err.errorMessage;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.errorMessage = this.translateService.get('LicenceHolder.Component.SmsLoginComponent.Phrase.InvalidSmsCode');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t);\n\t\t} else {\n\t\t\tthis.smsAuthService.confirmCode(this.attempt.AttemptId, this.model.Code).subscribe(\n\t\t\t\t(response) => {\n\t\t\t\t\tif (response.data.RegistrationTicket !== null) {\n\t\t\t\t\t\tthis.onFinished.emit({ code: 'Register', data: { ticket: response.data.RegistrationTicket } });\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.onFinished.emit({ code: 'Signed' });\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t(err: ApiResponse<any>) => {\n\t\t\t\t\tif (err.errorCode === 'MaxAuthAttemptExeeded') {\n\t\t\t\t\t\tnew VisibaPopup(this.translateService.get('LicenceHolder.Component.SmsLoginComponent.Title.MaxAuthAttemptExeeded'), null)\n\t\t\t\t\t\t\t.inform(this.translateService.get('Common.Button.OK'))\n\t\t\t\t\t\t\t.attatch()\n\t\t\t\t\t\t\t.observer()\n\t\t\t\t\t\t\t.subscribe(\n\t\t\t\t\t\t\t\t() => {\n\t\t\t\t\t\t\t\t\tthis.showNumberForm = true;\n\t\t\t\t\t\t\t\t\tthis.showNumberForm = true;\n\t\t\t\t\t\t\t\t\tthis.showCodeForm = false;\n\t\t\t\t\t\t\t\t\tthis.attempt = null;\n\t\t\t\t\t\t\t\t\tthis.errorMessage = null;\n\t\t\t\t\t\t\t\t\tthis.model.Code = null;\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t() => {},\n\t\t\t\t\t\t\t);\n\t\t\t\t\t} else if (err.errorMessage !== null) {\n\t\t\t\t\t\tthis.errorMessage = err.errorMessage;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.errorMessage = this.translateService.get('LicenceHolder.Component.SmsLoginComponent.Phrase.InvalidSmsCode');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t);\n\t\t}\n\n\t\treturn false;\n\t}\n\n\tresendCode() {\n\t\tif (this.smsTries > 2) return false;\n\n\t\tthis.smsTries++;\n\n\t\tthis.smsAuthService.resendCode(this.attempt.AttemptId).subscribe(\n\t\t\t() => {},\n\t\t\t() => {\n\t\t\t\tthis.errorMessageNumber = this.translateService.get('LicenceHolder.Component.SmsLoginComponent.Phrase.UnableToGetCode');\n\t\t\t},\n\t\t);\n\t}\n\n\tgetCode() {\n\t\tif (this.model.Number !== null && this.model.Number.length < 6) this.model.Number = null;\n\n\t\tlet phoneNumber = null;\n\t\tif (this.model.Number !== null) {\n\t\t\ttry {\n\t\t\t\tconst parsedNum = parse(this.model.Number, this.countryCode as any);\n\t\t\t\tif (isValidNumber(parsedNum)) {\n\t\t\t\t\tphoneNumber = format(parsedNum, 'INTERNATIONAL');\n\t\t\t\t}\n\t\t\t} catch (numberParseException) {\n\t\t\t\tphoneNumber = null;\n\t\t\t}\n\t\t}\n\n\t\tif (this.callTicket === null && (phoneNumber === null || this.model.Number === null || this.model.Number === '')) {\n\t\t\tthis.errorMessageNumber = this.translateService.get('LicenceHolder.Component.SmsLoginComponent.Phrase.InvalidNumber');\n\n\t\t\treturn false;\n\t\t}\n\n\t\tthis.number = this.model.Number;\n\t\tthis.smsTries++;\n\t\tthis.gettingCode = true;\n\n\t\tif (this.isOutsider) {\n\t\t\tthis.authService.sendSMSCodeWithCallticket(this.spaContext.unitConfig.Unit.UnitId, this.countryCode, this.callTicket).subscribe(\n\t\t\t\t(response) => {\n\t\t\t\t\tthis.showNumberForm = false;\n\t\t\t\t\tthis.showCodeForm = true;\n\t\t\t\t\tthis.attempt = response.data;\n\t\t\t\t\tthis.gettingCode = false;\n\t\t\t\t},\n\t\t\t\t() => {\n\t\t\t\t\tthis.errorMessageNumber = this.translateService.get('LicenceHolder.Component.SmsLoginComponent.Phrase.UnableToGetCode');\n\t\t\t\t\tthis.gettingCode = false;\n\t\t\t\t},\n\t\t\t);\n\t\t} else {\n\t\t\tthis.smsAuthService\n\t\t\t\t.beginSmsAuth(this.spaContext.unitConfig.LicenceHolder.Id, this.countryCode, this.model.Number, this.callTicket)\n\t\t\t\t.subscribe(\n\t\t\t\t\t(response) => {\n\t\t\t\t\t\tthis.showNumberForm = false;\n\t\t\t\t\t\tthis.showCodeForm = true;\n\t\t\t\t\t\tthis.attempt = response.data;\n\t\t\t\t\t\tthis.gettingCode = false;\n\t\t\t\t\t},\n\t\t\t\t\t() => {\n\t\t\t\t\t\tthis.errorMessageNumber = this.translateService.get('LicenceHolder.Component.SmsLoginComponent.Phrase.UnableToGetCode');\n\t\t\t\t\t\tthis.gettingCode = false;\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t}\n\t}\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { Input, Output, Component, EventEmitter, SimpleChanges } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { SpaContext } from '../../Classes/spacontext';\nimport { AuthMethodApiModel } from '../../Services/Models/Auth/AuthMethodApiModel';\nimport type { SignInOnFinishedEvent } from './SignInOnFinishedEvent';\n\n@Component({\n\tstandalone: false,\n\ttemplate: `\n\t\t<div *ngIf=\"loading\" class=\"loading\">\n\t\t\t<span class=\"loading-nhs\"\n\t\t\t\t><div>\n\t\t\t\t\t<svg width=\"68\" height=\"27\" viewBox=\"0 0 68 27\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M67.05 27V0H0V27H67.05ZM27 2.61L22.33 24.34H15.07L10.5 9.3H10.44L7.44 24.3H1.89L6.56 2.61H13.84L18.32 17.68H18.38L21.45 2.61H27ZM47.77 2.61L43.2 24.34H37.35L39.29 15H32.37L30.43 24.31H24.58L29.12 2.61H35L33.28 10.92H40.19L41.91 2.61H47.77ZM64.58 3.2L63.13 7.53C61.6195 6.83683 59.9716 6.49494 58.31 6.53C56 6.53 54.12 6.87 54.12 8.62C54.12 11.7 62.6 10.55 62.6 17.15C62.6 23.15 57 24.71 51.93 24.71C49.6354 24.6541 47.36 24.2771 45.17 23.59L46.55 19.17C48.2133 20.0225 50.0612 20.4519 51.93 20.42C53.74 20.42 56.59 20.07 56.59 17.83C56.59 14.34 48.11 15.65 48.11 9.52C48.11 3.91 53.05 2.23 57.84 2.23C60.1166 2.13409 62.3906 2.47349 64.54 3.23L64.58 3.2Z\"\n\t\t\t\t\t\t\tfill=\"#005EB8\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</svg>\n\t\t\t\t</div>\n\t\t\t\t<div>{{ 'LicenceHolder.Component.SignIn.Nhs.NhsLogin' | translate }}</div>\n\t\t\t</span>\n\t\t\t<p>{{ 'LicenceHolder.Component.SignIn.Nhs.Loading' | translate }}</p>\n\t\t\t<span (click)=\"resetLoadingState()\" class=\"btn danger\">{{ 'Common.Button.Abort' | translate }}</span>\n\t\t</div>\n\t\t<button class=\"btn-nhs\" *ngIf=\"!loading && method.MethodId === 'NhsOidc'\" (click)=\"openAuthenticationWindow()\">\n\t\t\t<div>\n\t\t\t\t<svg width=\"65\" height=\"27\" viewBox=\"0 0 65 27\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M64.7122 26.3909V0.450562H0.293579V26.3909H64.7122ZM26.234 2.95813L21.7472 23.8353H14.7722L10.3815 9.42401H10.3239L7.44159 23.8353H2.1094L6.59613 2.95813H13.5904L17.8946 17.4367H17.9522L20.9018 2.95813H26.234ZM46.1888 2.95813L41.7982 23.8353H36.1778L38.0416 14.8619H31.3932L29.5293 23.8065H23.9089L28.2708 2.92931H33.92L32.2675 10.9132H38.9063L40.5588 2.92931L46.1888 2.95813ZM62.3391 3.52498L60.9844 7.68504C59.5332 7.01908 57.95 6.6906 56.3536 6.72429C54.1343 6.72429 52.3281 7.05095 52.3281 8.73227C52.3281 11.6914 60.4753 10.5865 60.4753 16.9275C60.4753 22.692 55.095 24.1908 50.224 24.1908C48.0195 24.1371 45.8333 23.7749 43.7293 23.1148L45.0551 18.8682C46.6532 19.6873 48.4285 20.0998 50.224 20.0692C51.963 20.0692 54.7011 19.7329 54.7011 17.5808C54.7011 14.2278 46.5539 15.4864 46.5539 9.59695C46.5539 4.20711 51.3 2.59304 55.9021 2.59304C58.0893 2.5009 60.2741 2.82698 62.3391 3.5538V3.52498Z\"\n\t\t\t\t\t\tfill=\"white\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t</div>\n\t\t\t<div>{{ 'LicenceHolder.Component.SignIn.Nhs.Button' | translate }}</div>\n\t\t</button>\n\n\t\t<button class=\"btn\" *ngIf=\"method.MethodId !== 'NhsOidc'\" (click)=\"openAuthenticationWindow()\">\n\t\t\t{{ 'Common.Button.SignIn' | translate }}\n\t\t</button>\n\t`,\n\tselector: 'visibacare-iframe-auth',\n})\nexport class IframeSignInComponent {\n\t@Input() returnUrl: string;\n\t@Input('ticket') callTicket: Guid | null;\n\t@Input() countryCode: string;\n\t@Input() method: AuthMethodApiModel = null;\n\t@Output() onFinished = new EventEmitter<SignInOnFinishedEvent>();\n\t@Output() nhsLoading = new EventEmitter<boolean>();\n\n\tauthenticationWindow: Window | null = null;\n\tpublic loading: boolean = false;\n\n\tconstructor(\n\t\tprivate _http: HttpClient,\n\t\tprivate _router: Router,\n\t\tprivate _sanitizer: DomSanitizer,\n\t\tprivate _spaContext: SpaContext,\n\t\tprivate _route: ActivatedRoute,\n\t) {}\n\n\tngAfterViewInit() {\n\t\twindow.addEventListener('message', this.iframeMessage, false);\n\t}\n\n\tngOnDestroy() {\n\t\tif (this.authenticationWindow) this.authenticationWindow.close();\n\n\t\twindow.removeEventListener('message', this.iframeMessage, false);\n\t}\n\n\tngOnChanges(changes: SimpleChanges) {\n\t\tif (changes['method'] && this.authenticationWindow) this.authenticationWindow.close();\n\t}\n\n\topenAuthenticationWindow() {\n\t\tif (this.authenticationWindow) this.authenticationWindow.close();\n\t\tif (this.method.MethodId === 'NhsOidc') {\n\t\t\tthis.nhsLoading.emit(true);\n\t\t\tthis.loading = true;\n\t\t}\n\t\tlet url = this.method.Schemes.find((m) => m.Scheme === 'WebView').Url;\n\t\tif (this.callTicket) {\n\t\t\turl += `&callticket=${this.callTicket}`;\n\t\t}\n\t\tthis.authenticationWindow = window.open(url, '', `height=640,width=480`);\n\t}\n\n\t// See 'Public_old/src/VisibaCare/wwwroot/Scripts/Auth/VisibaAuthV2.js' for type definition.\n\tiframeMessage = (\n\t\tmessage: MessageEvent<{\n\t\t\tevent: 'Authenticated' | 'Failed' | 'Cancelled';\n\t\t\ttransaction: {\n\t\t\t\tStatus: string;\n\t\t\t\tDevice: string;\n\t\t\t\tToken: string;\n\t\t\t\tRegistrationTicket: string;\n\t\t\t\tErrorMessage: string;\n\t\t\t\tprovider: 'dummy_provider';\n\t\t\t\ttoken: string;\n\t\t\t\tsuccess: boolean;\n\t\t\t\ttype: 'authenticated' | 'failed' | 'cancelled';\n\t\t\t\terrorMessage: string;\n\t\t\t};\n\t\t}>,\n\t) => {\n\t\tthis.authenticationWindow.close();\n\t\tthis.authenticationWindow = null;\n\n\t\tswitch (message.data.event) {\n\t\t\tcase 'Authenticated':\n\t\t\t\tif (message.data.transaction.Status === 'RegistrationNeeded') {\n\t\t\t\t\tthis.onFinished.emit({\n\t\t\t\t\t\tcode: 'Register',\n\t\t\t\t\t\tdata: { ticket: message.data.transaction.RegistrationTicket },\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\t//TODO: Get Client\n\t\t\t\t\tthis.onFinished.emit({ code: 'Signed' });\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'Failed':\n\t\t\t\tthis.onFinished.emit({\n\t\t\t\t\tcode: 'Failed',\n\t\t\t\t\tdata: {\n\t\t\t\t\t\terrorCode: message.data.event,\n\t\t\t\t\t\terrorMessage: message.data.transaction.errorMessage,\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\tcase 'Cancelled':\n\t\t\t\tthis.onFinished.emit({ code: 'Cancel' });\n\t\t\t\tbreak;\n\t\t}\n\t};\n\n\tpublic resetLoadingState() {\n\t\tthis.nhsLoading.emit(false);\n\t\tthis.loading = false;\n\t\tthis.authenticationWindow.close();\n\t}\n}\n","import { UntypedFormControl, Validators, UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';\nimport { Component, Input, ViewEncapsulation } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { SpaContext } from '../Classes/spacontext';\nimport { SpaEventService } from '../Services/spaEvents.service';\nimport { ConfirmPhoneNumberComponent } from './confirmPhoneNumber';\nimport { ModalService } from '../Services/modalService';\nimport { UnitService } from '../Services/api/v2/Units/units.service';\nimport { TranslateService } from '../Common/Services/translate.service';\nimport { GlobalValidator } from '../Common/Classes/globalValidator';\nimport { AuthContextService } from '../Services/authContext.service';\n\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { AuthService } from '@public/src/application/services/auth/auth.service';\nimport { RegisterClientModel, RegistrationService } from '../Services/api/v2/registration.service';\nimport { UsageAgreementsService } from '../Services/api/v2/usageAgreements.service';\nimport { FieldOption, GetRegistrationApiModel } from '@public/src/api/generated/models';\nimport { sharedResolution } from '../../../src/shared_resolution';\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-registration',\n\ttemplate: `\n\t\t<div class=\"regContainer\">\n\t\t\t<div class=\"overlay\" (click)=\"abort()\"></div>\n\t\t\t<div class=\"container\">\n\t\t\t\t<div class=\"row\">\n\t\t\t\t\t<div class=\"inner span26 offset25 lspan26 loffset17\" *ngIf=\"formCG !== null\">\n\t\t\t\t\t\t<form\n\t\t\t\t\t\t\tnovalidate\n\t\t\t\t\t\t\t(ngSubmit)=\"onSubmit()\"\n\t\t\t\t\t\t\t[formGroup]=\"formCG\"\n\t\t\t\t\t\t\t*ngIf=\"registrationData != null\"\n\t\t\t\t\t\t\t[class.ng-submitted]=\"formCG['submitted']\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<div class=\"row icon\">\n\t\t\t\t\t\t\t\t<visiba-svg a=\"AvatarCircle\"></visiba-svg>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass=\"row intro span22 offset2\"\n\t\t\t\t\t\t\t\t[innerHtml]=\"'LicenceHolder.Component.RegistrationComponent.Phrase.Body' | translate\"\n\t\t\t\t\t\t\t></div>\n\t\t\t\t\t\t\t<div class=\"row\"></div>\n\t\t\t\t\t\t\t<div class=\"registration-fields row\">\n\t\t\t\t\t\t\t\t<div class=\"span10 offset2\">\n\t\t\t\t\t\t\t\t\t<visiba-input\n\t\t\t\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\t\t\t\tformControlName=\"FirstName\"\n\t\t\t\t\t\t\t\t\t\ttplaceholder=\"Common.Placeholder.GivenName\"\n\t\t\t\t\t\t\t\t\t\tplaceholder=\"Common.Placeholder.GivenName\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t</visiba-input>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"span10 offset2\">\n\t\t\t\t\t\t\t\t\t<visiba-input\n\t\t\t\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\t\t\t\tformControlName=\"LastName\"\n\t\t\t\t\t\t\t\t\t\ttplaceholder=\"Common.Placeholder.Surname\"\n\t\t\t\t\t\t\t\t\t\tplaceholder=\"Common.Placeholder.Surname\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t</visiba-input>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"span10 offset2\">\n\t\t\t\t\t\t\t\t\t<visiba-input\n\t\t\t\t\t\t\t\t\t\ttype=\"email\"\n\t\t\t\t\t\t\t\t\t\tformControlName=\"Email\"\n\t\t\t\t\t\t\t\t\t\ttplaceholder=\"Common.Placeholder.Email\"\n\t\t\t\t\t\t\t\t\t\tplaceholder=\"Common.Placeholder.Email\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t</visiba-input>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"span10 offset2\">\n\t\t\t\t\t\t\t\t\t<visiba-tel\n\t\t\t\t\t\t\t\t\t\t[readonly]=\"!canEditPhoneNumber()\"\n\t\t\t\t\t\t\t\t\t\tformControlName=\"Phone\"\n\t\t\t\t\t\t\t\t\t\tplaceholder=\"Common.Placeholder.Phone\"\n\t\t\t\t\t\t\t\t\t></visiba-tel>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"span10 offset2\" *ngIf=\"registrationData.NationalIdentityNumberRequirement !== 'Optional'\">\n\t\t\t\t\t\t\t\t\t<visiba-nin\n\t\t\t\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\t\t\t\t[readonly]=\"!canEditNationalNumber()\"\n\t\t\t\t\t\t\t\t\t\tformControlName=\"NationalIdentityNumber\"\n\t\t\t\t\t\t\t\t\t\t[availibleCountries]=\"[registrationData.Nationality]\"\n\t\t\t\t\t\t\t\t\t\t[placeholder]=\"registrationData.Nationality === 'GB' ? 'Common.Placeholder.NhsNumber' : null\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t</visiba-nin>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<button class=\"btn span10 offset8\">\n\t\t\t\t\t\t\t\t\t{{ 'LicenceHolder.Component.RegistrationComponent.Button.CompleteRegistration' | translate }}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"row error\">\n\t\t\t\t\t\t\t\t<div class=\"span22 offset2 center-text\">\n\t\t\t\t\t\t\t\t\t{{ errorMessage }}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t`,\n\tstyleUrls: ['../Css/Components/registration.component.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class RegistrationComponent {\n\t@Input('target') returnUrl: string = null;\n\t@Input('ticket') registrationTicket: string = null;\n\tformCG: UntypedFormGroup = null;\n\tregistrationData: GetRegistrationApiModel = null;\n\terrorMessage: string = null;\n\n\tprivate readonly authService = sharedResolution.resolve(AuthService);\n\n\tconstructor(\n\t\tprivate _router: Router,\n\t\tprivate _spaContext: SpaContext,\n\t\tprivate _registrationService: RegistrationService,\n\t\tprivate spaEventService: SpaEventService,\n\t\tprivate _builder: UntypedFormBuilder,\n\t\tprivate modalService: ModalService,\n\t\tprivate unitService: UnitService,\n\t\tprivate translateService: TranslateService,\n\t\tprivate authContextService: AuthContextService,\n\t\tprivate _usageAgreementsService: UsageAgreementsService,\n\t) {}\n\n\tngOnInit(): void {\n\t\tthis._registrationService.getRegistration(this.registrationTicket).subscribe(\n\t\t\t(response) => {\n\t\t\t\tthis.registrationData = response.data;\n\n\t\t\t\tthis.formCG = this._builder.group({\n\t\t\t\t\tNationalIdentityNumber: new UntypedFormControl(\n\t\t\t\t\t\t{ nin: response.data.NationalIdentityNumber, countryCode: this.registrationData.Nationality },\n\t\t\t\t\t\tValidators.compose([\n\t\t\t\t\t\t\tGlobalValidator.conditionalRequiredNin([\n\t\t\t\t\t\t\t\tthis.registrationData.NationalIdentityNumberRequirement === FieldOption.Required,\n\t\t\t\t\t\t\t]),\n\t\t\t\t\t\t\tGlobalValidator.nationalIdentityFormat,\n\t\t\t\t\t\t]),\n\t\t\t\t\t),\n\t\t\t\t\tEmail: new UntypedFormControl(\n\t\t\t\t\t\tresponse.data.Email,\n\t\t\t\t\t\tValidators.compose([\n\t\t\t\t\t\t\tGlobalValidator.conditionalRequired([this.registrationData.EmailRequirement === FieldOption.Required]),\n\t\t\t\t\t\t\tGlobalValidator.mailFormat,\n\t\t\t\t\t\t]),\n\t\t\t\t\t),\n\t\t\t\t\tPhone: new UntypedFormControl(\n\t\t\t\t\t\tresponse.data.Phone,\n\t\t\t\t\t\tValidators.compose([\n\t\t\t\t\t\t\tGlobalValidator.conditionalRequired([this.registrationData.PhoneRequirement === FieldOption.Required]),\n\t\t\t\t\t\t\tGlobalValidator.mobilePhoneFormat,\n\t\t\t\t\t\t]),\n\t\t\t\t\t),\n\t\t\t\t\tFirstName: new UntypedFormControl(response.data.FirstName, Validators.compose([Validators.required])),\n\t\t\t\t\tLastName: new UntypedFormControl(response.data.LastName, Validators.compose([Validators.required])),\n\t\t\t\t\tCountryCode: new UntypedFormControl(response.data.Nationality, Validators.compose([Validators.required])),\n\t\t\t\t\tLanguageCode: new UntypedFormControl(µ.Env.LangCode, Validators.compose([Validators.required])),\n\t\t\t\t});\n\t\t\t},\n\t\t\t() => {},\n\t\t);\n\t}\n\n\tcanEditNationalNumber(): boolean {\n\t\tif (\n\t\t\tthis.registrationData.NationalIdentityNumber !== null &&\n\t\t\tthis.registrationData.NationalIdentityNumber !== '' &&\n\t\t\tthis.registrationData.NationalIdentityNumberRequirement === FieldOption.ReadOnly\n\t\t) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tcanEditPhoneNumber(): boolean {\n\t\tif (\n\t\t\tthis.registrationData.Phone !== null &&\n\t\t\tthis.registrationData.Phone !== '' &&\n\t\t\tthis.registrationData.PhoneRequirement === FieldOption.ReadOnly\n\t\t) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tonSubmit(): void {\n\t\tthis.formCG['submitted'] = true;\n\t\tif (!this.formCG.valid) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst sendModel: RegisterClientModel = {\n\t\t\tNationality: this.formCG.value.CountryCode,\n\t\t\tNationalIdentityNumber: this.formCG.value.NationalIdentityNumber.nin,\n\t\t\tPhone: this.formCG.value.Phone,\n\t\t\tFirstName: this.formCG.value.FirstName,\n\t\t\tLastName: this.formCG.value.LastName,\n\t\t\tEmail: this.formCG.value.Email,\n\t\t};\n\n\t\tconst countryInfo = this._spaContext.unitConfig.Locale.SupportedCountries.find(\n\t\t\t(country) => country.CountryCode === this.formCG.value.CountryCode,\n\t\t);\n\t\tconst phoneNumberToCheck = countryInfo.ClientIdentifierPhoneNumber && this.canEditPhoneNumber() ? sendModel.Phone : null;\n\t\tconst nationalIdentityNumberToCheck =\n\t\t\tcountryInfo.ClientIdentifierNationalIdentityNumber && this.canEditNationalNumber() ? sendModel.NationalIdentityNumber : null;\n\n\t\tthis.unitService\n\t\t\t.getIdentifierConflicts(this.formCG.value.CountryCode, nationalIdentityNumberToCheck, phoneNumberToCheck)\n\t\t\t.subscribe((response) => {\n\t\t\t\tif (response.data.IdentifiersAlreadyInUse && this.canEditNationalNumber()) {\n\t\t\t\t\tthis.errorMessage = this.translateService.get(\n\t\t\t\t\t\t'LicenceHolder.Component.RegistrationComponent.Error.PersonalIdentityNumberTaken',\n\t\t\t\t\t);\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (response.data.IdentifiersAlreadyInUse && this.canEditPhoneNumber()) {\n\t\t\t\t\tthis.errorMessage = this.translateService.get('LicenceHolder.Component.RegistrationComponent.Error.PhoneNumber');\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (this.canEditPhoneNumber() && this.formCG.get('Phone').dirty) {\n\t\t\t\t\tconst confirmPhoneNumberComponent = this.modalService.attach(ConfirmPhoneNumberComponent);\n\t\t\t\t\tconfirmPhoneNumberComponent.instance.phoneNumber = this.formCG.value.Phone;\n\t\t\t\t\tconfirmPhoneNumberComponent.instance.countryCode = this.formCG.value.CountryCode;\n\t\t\t\t\tconfirmPhoneNumberComponent.instance.languageCode = this.formCG.value.LanguageCode;\n\t\t\t\t\tconfirmPhoneNumberComponent.instance.onNumberConfirmed.subscribe((verificationCode) => {\n\t\t\t\t\t\tthis.modalService.detach();\n\t\t\t\t\t\tsendModel.PhoneVerificationAttemptId = verificationCode;\n\t\t\t\t\t\tthis.registerPatient(sendModel);\n\t\t\t\t\t});\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis.registerPatient(sendModel);\n\t\t\t});\n\t}\n\n\tprivate registerPatient(model: RegisterClientModel): void {\n\t\tthis._registrationService.completeRegistration(this.registrationTicket, model).subscribe(\n\t\t\t() => {\n\t\t\t\tthis.spaEventService.onNotificationComplianceNeeded.emit({ AllowEmail: true, AllowSms: true, UpToDate: false });\n\t\t\t\tconst complianceSubscription = this.spaEventService.onNotificationComplianceCompleted.subscribe(() => {\n\t\t\t\t\tcomplianceSubscription.unsubscribe();\n\t\t\t\t\tthis.checkDocumentSigning();\n\t\t\t\t});\n\t\t\t},\n\t\t\t(error) => {\n\t\t\t\tif (error.ErrorCode === 'RegistrationAlreadyCompleted') {\n\t\t\t\t\tthis.spaEventService.onRegistrationAborted.emit();\n\t\t\t\t\tconst licenceHolderService = sharedResolution.resolve(LicenceHolderService);\n\t\t\t\t\tthis._router.navigate([licenceHolderService.alias]);\n\t\t\t\t}\n\n\t\t\t\tthis.errorMessage =\n\t\t\t\t\terror.ErrorMessage || this.translateService.get('LicenceHolder.Component.RegistrationComponent.Error.Default');\n\t\t\t},\n\t\t);\n\t}\n\n\tcheckDocumentSigning(): void {\n\t\tthis._usageAgreementsService.getSignatureDocuments(this._spaContext.unitConfig.LicenceHolder.Id).subscribe(\n\t\t\t(response) => {\n\t\t\t\tif (!response.data.PrivacyPolicy.HasSigned || !response.data.TermsOfService.HasSigned) {\n\t\t\t\t\tthis.spaEventService.onDocumentsSigningNeeded.emit(response.data);\n\n\t\t\t\t\tconst signingSubscription = this.spaEventService.onDocumentsSigningCompleted.subscribe(() => {\n\t\t\t\t\t\tthis.completeRegistration();\n\t\t\t\t\t\tsigningSubscription.unsubscribe();\n\t\t\t\t\t});\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.completeRegistration();\n\t\t\t},\n\t\t\t() => {},\n\t\t);\n\t}\n\n\tcompleteRegistration(): void {\n\t\tthis.authService\n\t\t\t.fetchActiveIdentity()\n\t\t\t.then(() => {\n\t\t\t\tthis.authContextService.signInPatient(null, false);\n\t\t\t\tthis.spaEventService.onVisitorRegistred.emit();\n\n\t\t\t\tthis._router.navigateByUrl(this.returnUrl);\n\t\t\t})\n\t\t\t.catch(() => {\n\t\t\t\twindow.location.href = '/' + this._spaContext.baseHref + '/';\n\t\t\t});\n\t}\n\n\tabort(): void {\n\t\tthis.spaEventService.onRegistrationAborted.emit();\n\t}\n}\n","import { SignatureDocuments } from '../Services/Models/Client/SignatureDocuments';\nimport { UntypedFormControl, Validators, UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';\nimport { Component, Input, ViewEncapsulation } from '@angular/core';\nimport { SpaContext } from '../Classes/spacontext';\nimport { SpaEventService } from '../Services/spaEvents.service';\nimport { IdentityServiceV2 } from '../Services/api/v2/identity.service';\nimport { TranslateService } from '../Common/Services/translate.service';\nimport { GlobalValidator } from '../Common/Classes/globalValidator';\nimport { AuthContextService } from '../Services/authContext.service';\nimport { UsageAgreementsService } from '../Services/api/v2/usageAgreements.service';\n\n@Component({\n\tstandalone: false,\n\tselector: 'visiba-document-sign',\n\ttemplate: /*language=html*/ `\n\t\t<div class=\"overlay\" (click)=\"abort()\"></div>\n\t\t<div class=\"container\">\n\t\t\t<div class=\"row containerInner\">\n\t\t\t\t<div class=\"inner span26 offset25 lspan26 loffset17\" *ngIf=\"formPP !== null\">\n\t\t\t\t\t<form\n\t\t\t\t\t\t*ngIf=\"!documents.PrivacyPolicy.HasSigned && currentView === 'PP'\"\n\t\t\t\t\t\tclass=\"innerForm\"\n\t\t\t\t\t\tnovalidate\n\t\t\t\t\t\t(ngSubmit)=\"onSubmitPP()\"\n\t\t\t\t\t\t[formGroup]=\"formPP\"\n\t\t\t\t\t\t[class.ng-submitted]=\"formPP['submitted']\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<div class=\"row center-text\">\n\t\t\t\t\t\t\t<h2>{{ documents.PrivacyPolicy.Title }}</h2>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"row block\">\n\t\t\t\t\t\t\t<div class=\"row body\">\n\t\t\t\t\t\t\t\t<div class=\"offset3 summary\" [innerHtml]=\"documents.PrivacyPolicy.Summary | safeHtml\"></div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"row center-text\" [innerHtml]=\"views.PP.url | safeHtml\"></div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div *ngIf=\"documents.PrivacyPolicy.RequiresExplicitAccept\" class=\"row checkboxes\">\n\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<visiba-input\n\t\t\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\t\t\tformControlName=\"pp\"\n\t\t\t\t\t\t\t\t\t[staticplaceholder]=\"'LicenceHolder.Component.DocumentSignComponent.Placeholder.PPAccept' | translate\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t</visiba-input>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<button class=\"btn span20 offset3\" [class.disabled]=\"formPP.invalid\">\n\t\t\t\t\t\t\t\t{{ 'LicenceHolder.Component.DocumentSignComponent.Button.Approve' | translate }}\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"row abortButton center-text\">\n\t\t\t\t\t\t\t<a (click)=\"abort()\">{{ 'Common.Button.Abort' | translate }}</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"row error\">\n\t\t\t\t\t\t\t<div class=\"span22 offset2 center-text\">\n\t\t\t\t\t\t\t\t{{ errorMessage }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</form>\n\n\t\t\t\t\t<form\n\t\t\t\t\t\t*ngIf=\"!documents.TermsOfService.HasSigned && currentView === 'Tos'\"\n\t\t\t\t\t\tclass=\"innerForm\"\n\t\t\t\t\t\tnovalidate\n\t\t\t\t\t\t(ngSubmit)=\"onSubmitTos()\"\n\t\t\t\t\t\t[formGroup]=\"formTos\"\n\t\t\t\t\t\t[class.ng-submitted]=\"formTos['submitted']\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<div class=\"row center-text\">\n\t\t\t\t\t\t\t<h2>{{ documents.TermsOfService.Title }}</h2>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"row block\">\n\t\t\t\t\t\t\t<div class=\"row body\">\n\t\t\t\t\t\t\t\t<div class=\"offset3 summary\" [innerHtml]=\"documents.TermsOfService.Summary | safeHtml\"></div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"row center-text\" [innerHtml]=\"views.Tos.url | safeHtml\"></div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div *ngIf=\"documents.TermsOfService.RequiresExplicitAccept\" class=\"row checkboxes\">\n\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<visiba-input\n\t\t\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\t\t\tformControlName=\"tos\"\n\t\t\t\t\t\t\t\t\t[staticplaceholder]=\"'LicenceHolder.Component.DocumentSignComponent.Placeholder.TosAccept' | translate\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t</visiba-input>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<button class=\"btn span20 offset3\" [class.disabled]=\"formTos.invalid\">\n\t\t\t\t\t\t\t\t{{ 'LicenceHolder.Component.DocumentSignComponent.Button.Approve' | translate }}\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class=\"row abortButton center-text\">\n\t\t\t\t\t\t\t<a (click)=\"abort()\">{{ 'Common.Button.Abort' | translate }}</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"row error\">\n\t\t\t\t\t\t\t<div class=\"span22 offset2 center-text\">\n\t\t\t\t\t\t\t\t{{ errorMessage }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t`,\n\tstyleUrls: ['../Css/Components/document-sign.component.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class DocumentSignComponent {\n\t@Input('documents') documents: SignatureDocuments;\n\tpublic formPP: UntypedFormGroup = null;\n\tpublic formTos: UntypedFormGroup = null;\n\tpublic errorMessage: string = null;\n\tpublic views: any = {};\n\tpublic currentView: 'PP' | 'Tos' = null;\n\n\tconstructor(\n\t\tprivate _translateService: TranslateService,\n\t\tpublic _spaContext: SpaContext,\n\t\tprivate _identityService: IdentityServiceV2,\n\t\tprivate _spaEventService: SpaEventService,\n\t\tprivate _builder: UntypedFormBuilder,\n\t\tprivate authContextService: AuthContextService,\n\t\tprivate _usageAgreementsService: UsageAgreementsService,\n\t) {}\n\n\tprivate getFormControl(key: 'PrivacyPolicy' | 'TermsOfService'): UntypedFormControl {\n\t\tconst builder = this.documents[key].RequiresExplicitAccept ? Validators.compose([GlobalValidator.requiredCheckbox]) : null;\n\n\t\treturn new UntypedFormControl(this.documents.PrivacyPolicy.HasSigned, builder);\n\t}\n\n\tprivate ngOnInit(): void {\n\t\tObject.keys(this.documents).forEach((key) => {\n\t\t\tif (this.documents[key].HasSigned) return;\n\n\t\t\tconst keyShort = key === 'PrivacyPolicy' ? 'PP' : 'Tos';\n\n\t\t\tthis.views[keyShort] = {\n\t\t\t\turl: this._translateService.get(`LicenceHolder.Component.DocumentSignComponent.Placeholder.${keyShort}`, {\n\t\t\t\t\tdocumentUrl: this.documents[key].Url,\n\t\t\t\t}),\n\t\t\t\tsigned: false,\n\t\t\t};\n\n\t\t\tthis.currentView = keyShort;\n\t\t});\n\n\t\tthis.formPP = this._builder.group({\n\t\t\tpp: this.getFormControl('PrivacyPolicy'),\n\t\t});\n\n\t\tthis.formTos = this._builder.group({\n\t\t\ttos: this.getFormControl('TermsOfService'),\n\t\t});\n\t}\n\tpublic onSubmitPP(): void {\n\t\tthis.formPP['submitted'] = true;\n\n\t\tif (!this.formPP.valid) return;\n\n\t\tthis._usageAgreementsService.signDocument('PrivacyPolicy', this.documents.PrivacyPolicy.Language).subscribe(\n\t\t\t() => {\n\t\t\t\tthis.views['PP'].signed = true;\n\t\t\t\tthis.allNeededIsSigned();\n\t\t\t},\n\t\t\t(error) =>\n\t\t\t\t(this.errorMessage =\n\t\t\t\t\terror.errorMessage || this._translateService.get('LicenceHolder.Component.DocumentSignComponent.Error.Default')),\n\t\t);\n\t}\n\n\tpublic onSubmitTos(): void {\n\t\tthis.formTos['submitted'] = true;\n\n\t\tif (!this.formTos.valid) return;\n\n\t\tthis._usageAgreementsService.signDocument('TermsOfService', this.documents.TermsOfService.Language).subscribe(\n\t\t\t() => {\n\t\t\t\tthis.views['Tos'].signed = true;\n\t\t\t\tthis.allNeededIsSigned();\n\t\t\t},\n\t\t\t(error) =>\n\t\t\t\t(this.errorMessage =\n\t\t\t\t\terror.errorMessage || this._translateService.get('LicenceHolder.Component.DocumentSignComponent.Error.Default')),\n\t\t);\n\t}\n\n\tprivate allNeededIsSigned(): void {\n\t\tif (Object.keys(this.views).every((key) => this.views[key].signed)) {\n\t\t\tthis._spaEventService.onDocumentsSigningCompleted.emit();\n\t\t} else {\n\t\t\tthis.currentView = this.currentView === 'PP' ? 'Tos' : 'PP';\n\t\t}\n\t}\n\n\tpublic abort(): void {\n\t\tthis._spaEventService.onDocumentsSigningAborted.emit();\n\t\tthis._identityService.signOut().subscribe(({ data }) => {\n\t\t\tif (this.authContextService.isOutsider) {\n\t\t\t\tthis._spaEventService.onSignedOutAsOutsider.emit({\n\t\t\t\t\tredirectUrl: data.RedirectUrl,\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis._spaEventService.onSignedOut.emit({\n\t\t\t\t\tredirectUrl: data.RedirectUrl,\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n}\n","import { Component, Input } from '@angular/core';\nimport { SpaContext } from '../../Classes/spacontext';\n\n@Component({\n\tstandalone: false,\n\tselector: 'signin-method-ehelse',\n\ttemplate: `\n\t\t<p>{{ 'LicenceHolder.Component.EhelseLogin.Title' | translate }}</p>\n\t\t<div class=\"row\" *ngIf=\"eHelseUrl\">\n\t\t\t<a [href]=\"eHelseUrl\"\n\t\t\t\t><button class=\"btn large\">{{ 'Common.Button.SignIn' | translate }}</button></a\n\t\t\t>\n\t\t</div>\n\t`,\n})\nexport class SigninMethodEhelseComponent {\n\t@Input('ticket') callTicket: Guid | null;\n\tpublic eHelseUrl: string | null = null;\n\n\tconstructor(public spaContext: SpaContext) {\n\t\tlet url = `${spaContext.baseHref}/?ehelse=true`;\n\t\tif (this.callTicket) {\n\t\t\turl += `&callTicket=${this.callTicket}`;\n\t\t}\n\t\tthis.eHelseUrl = url;\n\t}\n}\n","import { Component, OnInit } from '@angular/core';\nimport { AudioPlayerService } from '../../Services/audioPlayer.service';\n\n@Component({ standalone: false, selector: 'office-audio-player', template: `` })\nexport class AudioPlayerComponent implements OnInit {\n\tpublic audioSuspended: string = null;\n\tprivate _clickListener = false;\n\n\tconstructor(private _audioPlayerService: AudioPlayerService) {}\n\n\tngOnInit() {\n\t\tthis._audioPlayerService.onSuspended.subscribe((src) => {\n\t\t\tthis.audioSuspended = src;\n\n\t\t\tif (this._clickListener) {\n\t\t\t\tif (src === null) document.removeEventListener('click', this.windowClicked);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._clickListener = true;\n\t\t\tdocument.addEventListener('click', this.windowClicked);\n\t\t});\n\t}\n\n\twindowClicked = () => {\n\t\tthis._clickListener = false;\n\t\tdocument.removeEventListener('click', this.windowClicked);\n\n\t\tthis._audioPlayerService.play(this.audioSuspended);\n\t\tthis.audioSuspended = null;\n\t};\n}\n","export class BreadcrumbStepClass {\n\tconstructor(\n\t\tpublic label: string | null = null,\n\t\tpublic url: string | null = null,\n\t\tpublic callback: (step: BreadcrumbStepClass, index: number) => void | null = null,\n\t) {}\n}\n","import { Component, Input, Output, EventEmitter, ViewEncapsulation } from '@angular/core';\nimport { SpaContext } from '../Classes/spacontext';\nimport { BreadcrumbStepClass } from '../Classes/BreadcrumbStepClass';\nimport { UnitModel } from '../Services/api/v2/Models/UnitModel';\n\n@Component({\n\tstandalone: false,\n\tselector: 'unit-picker',\n\ttemplate: `\n\t\t<breadcrumbs *ngIf=\"crumbs.length > 1\" [steps]=\"crumbs\" [maxCrumbs]=\"2\"></breadcrumbs>\n\t\t<div class=\"header\">\n\t\t\t<ng-content></ng-content>\n\t\t\t<div class=\"searchRow\">\n\t\t\t\t<visiba-input\n\t\t\t\t\ticon=\"Search\"\n\t\t\t\t\tplaceholder=\"LicenceHolder.Component.UnitPicker.Placeholder.SearchUnit\"\n\t\t\t\t\t[(ngModel)]=\"searchStringModel\"\n\t\t\t\t\t(ngModelChange)=\"filterUnits()\"\n\t\t\t\t></visiba-input>\n\t\t\t</div>\n\t\t</div>\n\t\t<ng-container *ngFor=\"let u of units\">\n\t\t\t<div class=\"unit\" (click)=\"setActiveUnit(u)\">\n\t\t\t\t{{ u.Name }}\n\t\t\t\t<visiba-svg a=\"ArrowRight\"></visiba-svg>\n\t\t\t</div>\n\t\t</ng-container>\n\t\t<ng-container *ngFor=\"let o of offers\">\n\t\t\t<div class=\"unit -offer\" (click)=\"setActiveUnit(o)\">\n\t\t\t\t<visiba-svg a=\"House\"></visiba-svg>\n\t\t\t\t{{ o.Name }}\n\t\t\t</div>\n\t\t</ng-container>\n\t\t<ng-container *ngIf=\"units.length === 0 && offers.length === 0\">\n\t\t\t<div class=\"unit\">\n\t\t\t\t{{ 'Licenceholder.Units.NothingFound' | translate }}\n\t\t\t</div>\n\t\t</ng-container>\n\t`,\n\tstyleUrls: ['../Css/Components/unit-picker.component.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class UnitPickerComponent {\n\t@Output()\n\tpublic onEntranceSelected = new EventEmitter<{ entranceId: number }>();\n\n\t@Input()\n\tpublic selectedUnit: number = null;\n\n\tpublic activeUnit: UnitModel = null;\n\n\tpublic offers: UnitModel[] = null;\n\tpublic units: UnitModel[] = null;\n\n\tpublic crumbs: Array<BreadcrumbStepClass> = [];\n\tpublic searchStringModel: string = null;\n\n\tconstructor(public _spaContext: SpaContext) {}\n\n\tngOnInit() {\n\t\tconst entrances = this._spaContext.unitTreeFlat.filter((u) => u.IsClientEntrance && u.IsListedToClients);\n\t\tif (entrances.length === 1) {\n\t\t\tthis.setActiveUnit(entrances[0]);\n\t\t} else {\n\t\t\tconst targetUnitId = this.selectedUnit || this._spaContext.unitConfig.LicenceHolder.RootUnit;\n\t\t\tthis.setActiveUnit(this._spaContext.unitTreeFlat.find((u) => u.Id === targetUnitId));\n\t\t}\n\t}\n\n\tpublic setActiveUnit(unit: UnitModel) {\n\t\tif (typeof unit === 'undefined') return;\n\t\tthis.searchStringModel = '';\n\n\t\tif (unit.IsClientEntrance) {\n\t\t\tthis.onEntranceSelected.emit({ entranceId: unit.Id });\n\t\t\treturn;\n\t\t}\n\t\tthis.activeUnit = unit;\n\t\tthis.crumbs = [];\n\t\tthis.addCrumb(this.activeUnit);\n\t\tthis.filterUnits();\n\t}\n\n\tpublic filterUnits() {\n\t\tthis.offers = [];\n\t\tthis.units = [];\n\n\t\t// sorts lists into alphabetical order\n\t\tconst compare = (unitA: UnitModel, unitB: UnitModel) => {\n\t\t\tconst textA = (unitA.Name ?? '').toLowerCase();\n\t\t\tconst textB = (unitB.Name ?? '').toLowerCase();\n\n\t\t\treturn textA < textB ? -1 : textA > textB ? 1 : 0;\n\t\t};\n\n\t\tif (this.searchStringModel) {\n\t\t\tconst recursiveSearchAndAdd = (children: UnitModel[]) => {\n\t\t\t\tif (children.length) {\n\t\t\t\t\tchildren.forEach((child) => {\n\t\t\t\t\t\tif (child.Children.length) {\n\t\t\t\t\t\t\trecursiveSearchAndAdd(child.Children);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!(child.Name ?? '').toLowerCase().includes(this.searchStringModel.toLowerCase())) return;\n\n\t\t\t\t\t\tif (child.IsClientEntrance && child.IsListedToClients) {\n\t\t\t\t\t\t\tthis.offers.push(child);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!child.IsClientEntrance && this.listableIsVisiable(child.Children)) {\n\t\t\t\t\t\t\tthis.units.push(child);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t};\n\n\t\t\trecursiveSearchAndAdd(this.activeUnit.Children);\n\t\t\tthis.offers.sort(compare);\n\t\t\tthis.units.sort(compare);\n\t\t\treturn;\n\t\t}\n\n\t\tthis.activeUnit.Children.forEach((child) => {\n\t\t\tconst { IsListedToClients, IsClientEntrance, Name, Children } = child;\n\n\t\t\tif (IsClientEntrance && IsListedToClients) {\n\t\t\t\tthis.offers.push(child);\n\t\t\t} else if (!IsClientEntrance && this.listableIsVisiable(child.Children)) {\n\t\t\t\tthis.units.push(child);\n\t\t\t}\n\t\t});\n\n\t\tthis.offers.sort(compare);\n\t\tthis.units.sort(compare);\n\t}\n\n\tpublic back(parentId: number | null, crumbIndex: number) {\n\t\tthis.setActiveUnit(this._spaContext.unitTreeFlat.find((u) => u.Id === parentId));\n\t\tthis.crumbs.splice(crumbIndex + 1);\n\t}\n\n\tprivate addCrumb(unit: UnitModel) {\n\t\tthis.crumbs.unshift(\n\t\t\tnew BreadcrumbStepClass(unit.Name, null, (step, index) => {\n\t\t\t\tthis.back(unit.Id, index);\n\t\t\t}),\n\t\t);\n\n\t\tif (unit.ParentId === null) return;\n\t\tconst parent = this._spaContext.unitTreeFlat.find((u) => u.Id === unit.ParentId);\n\t\tthis.addCrumb(parent);\n\t}\n\n\tprivate listableIsVisiable(children: UnitModel[]): boolean {\n\t\treturn !!children.find((child) => {\n\t\t\tif (child.IsListedToClients) return true;\n\n\t\t\treturn this.listableIsVisiable(child.Children);\n\t\t});\n\t}\n}\n","import { Component, Input, OnInit, ViewEncapsulation } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { Location } from '@angular/common';\nimport { BreadcrumbStepClass } from '../Classes/BreadcrumbStepClass';\n\n@Component({\n\tstandalone: false,\n\tselector: 'breadcrumbs',\n\ttemplate: `\n\t\t<div *ngIf=\"showBackButton\" (click)=\"goBack()\" class=\"goBack\">\n\t\t\t<svg viewBox=\"0 0 256 256\" class=\"svg_arrowLeft\">\n\t\t\t\t<polygon class=\"fill\" points=\"106.51 127.84 173.5 60.85 150.65 38 60.5 127.84 150.65 218 173.5 195.15 106.51 127.84\"></polygon>\n\t\t\t</svg>\n\t\t\t<p class=\"paragraph\">{{ 'Common.Button.Back' | translate }}</p>\n\t\t</div>\n\n\t\t<div class=\"content\">\n\t\t\t<ul class=\"breadList\">\n\t\t\t\t<ng-template ngFor let-step [ngForOf]=\"steps\" let-i=\"index\">\n\t\t\t\t\t<li\n\t\t\t\t\t\tclass=\"breadList__item\"\n\t\t\t\t\t\t[class.clickable]=\"enableNavigation && i < currentStep\"\n\t\t\t\t\t\t[class.disabled]=\"i > currentStep\"\n\t\t\t\t\t\t[class.selected]=\"i === currentStep\"\n\t\t\t\t\t\t*ngIf=\"step.url === null && crumLimitation(i)\"\n\t\t\t\t\t\t(click)=\"clickedBreadcrumb(step, i)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<a class=\"link\">{{ step.label }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li\n\t\t\t\t\t\tclass=\"breadList__item\"\n\t\t\t\t\t\t[class.clickable]=\"enableNavigation && i < currentStep\"\n\t\t\t\t\t\t[class.selected]=\"i > currentStep\"\n\t\t\t\t\t\t*ngIf=\"step.url !== null && crumLimitation(i)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<a class=\"link\" [routerLink]=\"step.url\">{{ step.label }}</a>\n\t\t\t\t\t</li>\n\n\t\t\t\t\t<li class=\"breadList__item\" *ngIf=\"i === 1 && maxCrumbs !== null && steps.length > maxCrumbs\">...</li>\n\n\t\t\t\t\t<li\n\t\t\t\t\t\tclass=\"breadList__item\"\n\t\t\t\t\t\t[class.disabled]=\"i >= currentStep\"\n\t\t\t\t\t\t*ngIf=\"steps.length === i + 2 || (steps.length !== i + 1 && crumLimitation(i))\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<svg viewBox=\"0 0 256 256\" class=\"svg_arrowRight\">\n\t\t\t\t\t\t\t<polygon\n\t\t\t\t\t\t\t\tclass=\"fill\"\n\t\t\t\t\t\t\t\tpoints=\"138.49 128.16 71.5 195.15 94.35 218 184.5 128.16 94.35 38 71.5 60.85 138.49 128.16\"\n\t\t\t\t\t\t\t></polygon>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</li>\n\t\t\t\t</ng-template>\n\t\t\t</ul>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t`,\n\tstyleUrls: ['../Css/Components/breadcrumbs.component.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class BreadcrumbsComponent implements OnInit {\n\t@Input() public steps: Array<BreadcrumbStepClass> = [];\n\t@Input() public maxCrumbs: number = null;\n\t@Input() public showBackButton = true;\n\t@Input() public startingStep: number | null = null;\n\t@Input() public enableNavigation = true;\n\tpublic currentStep: number = 0;\n\tpublic overrideBackButtonUrl: string = null;\n\n\tconstructor(\n\t\tprivate _router: Router,\n\t\tprivate _location: Location,\n\t) {}\n\n\tngOnInit() {\n\t\tif (!this.steps.length) return;\n\t\tthis.startingStep !== null ? this.setCurrentStep(this.startingStep) : this.setCurrentStep(this.steps.length - 1);\n\t}\n\n\tclickedBreadcrumb(step: BreadcrumbStepClass, index: number) {\n\t\tif (this.currentStep <= index || !this.enableNavigation) return;\n\t\tthis.setCurrentStep(index);\n\t\tstep.callback(step, index);\n\t}\n\n\tgoBack() {\n\t\tif (this.overrideBackButtonUrl !== null) {\n\t\t\tthis._router.navigateByUrl(this.overrideBackButtonUrl);\n\t\t\treturn;\n\t\t}\n\n\t\tconst step = this.steps[this.steps.length - 2];\n\n\t\tif (step.url !== null) {\n\t\t\tthis._router.navigateByUrl(step.url);\n\t\t} else if (step.callback !== null) {\n\t\t\tstep.callback(step, this.steps.length - 2);\n\t\t} else {\n\t\t\tthis._location.back();\n\t\t}\n\t}\n\n\t// Show ... instead of crumb\n\tcrumLimitation(index: number) {\n\t\tif (this.maxCrumbs === null) return true;\n\t\tif (index === 0) return true;\n\t\tif (this.steps.length <= this.maxCrumbs) return true;\n\n\t\treturn this.steps.length - index < this.maxCrumbs - 1; // [1,2,3,4,5,6].forEach((i) => console.log(6-i < 3-1));\n\t}\n\n\tpublic setCurrentStep(step: number) {\n\t\tthis.currentStep = step;\n\t}\n}\n","import { Component, ViewEncapsulation } from '@angular/core';\nimport { SpaContext } from '../../Classes/spacontext';\nimport { SpaEventService } from '../../Services/spaEvents.service';\nimport { ScheduledDataService } from '../../Services/scheduled-data';\nimport { UnitService } from '../../Services/api/v2/Units/units.service';\nimport { WebContentButtonsService } from '../../Services/api/v2/Units/webContentButtons.service';\nimport { AuthContextService } from '../../Services/authContext.service';\nimport { FlexiblePatientButtonsService } from '../../Services/flexible_patient_buttons.service/mod';\n\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport { sharedResolution } from '../../../../src/shared_resolution';\n\n@Component({\n\tstandalone: false,\n\ttemplateUrl: '../../ViewHtml/Index/IndexMain.html',\n\tencapsulation: ViewEncapsulation.None,\n\tstyleUrls: ['../../Css/Views/Index/IndexMain.scss'],\n})\nexport class IndexComponent {\n\ttitle: string = '';\n\tbody: string = '';\n\tunit: any;\n\tselectValues: Array<any>;\n\tmodel: any = { Phone: '3' };\n\ttheme: any;\n\tmyCasesNotificationCount = 0;\n\tdoors: Array<any> = [];\n\n\tprivate _subscribers = [];\n\n\tconstructor(\n\t\tpublic readonly flexiblePatientButtonsService: FlexiblePatientButtonsService,\n\t\tpublic spaContext: SpaContext,\n\t\tpublic authContextService: AuthContextService,\n\t\tprivate _unitController: UnitService,\n\t\tprivate _spaEventService: SpaEventService,\n\t\tprivate _scheduledDataService: ScheduledDataService,\n\t\tpublic webContentButtonsService: WebContentButtonsService,\n\t) {\n\t\tthis.unit = spaContext.unitConfig.Unit;\n\t\tthis.theme = spaContext.unitConfig.Theme;\n\t}\n\n\tngOnInit() {\n\t\tthis.flexiblePatientButtonsService.fetchComponents();\n\n\t\tthis._unitController.getText(['View_Index_Title', 'View_Index_Body']).subscribe(\n\t\t\t(response) => {\n\t\t\t\tthis.title = response.data.View_Index_Title;\n\t\t\t\tthis.body = response.data.View_Index_Body;\n\t\t\t},\n\t\t\t(err) => {\n\t\t\t\tconsole.log(err);\n\t\t\t},\n\t\t);\n\n\t\tconst subscriber1 = this._scheduledDataService.onGetCases.subscribe((caseList) => {\n\t\t\tconst issues = caseList.map((c) => c.UnhandledIssues.length).reduce((a, b) => a + b, 0);\n\t\t\tthis.myCasesNotificationCount = issues;\n\t\t});\n\t\tthis._subscribers.push(subscriber1);\n\t}\n\n\tisInstanceOf(a: any, b: any) {\n\t\treturn a instanceof b;\n\t}\n\n\tngOnDestroy() {\n\t\tthis._subscribers.forEach((s) => s.unsubscribe());\n\t}\n\n\tsignIn() {\n\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\t\tthis._spaEventService.onSignInRequired.emit({\n\t\t\tleave: false,\n\t\t\ttarget: '/' + locationSelectorService.location.route,\n\t\t\treason: null,\n\t\t});\n\t}\n}\n","import { Component, ViewEncapsulation } from '@angular/core';\nimport { SpaContext } from '../Classes/spacontext';\n\n@Component({\n\tstandalone: false,\n\tselector: 'mobile-app-promotion',\n\ttemplate: `\n\t\t<div class=\"contentWrapper\" *ngIf=\"appStoreLink !== null || playStoreLink !== null\">\n\t\t\t<div class=\"textCircle\">\n\t\t\t\t<div class=\"textHolder\">\n\t\t\t\t\t<div class=\"text\">\n\t\t\t\t\t\t{{ 'LicenceHolder.MobileAppPromotion.Title' | translate }}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<a *ngIf=\"appStoreLink !== null\" [href]=\"appStoreLink\">\n\t\t\t\t<img src=\"//media-cdn.visibacare.com/service/public/logo/app-store-badge.svg\" alt=\"App store logo\" />\n\t\t\t</a>\n\t\t\t<a *ngIf=\"playStoreLink !== null\" [href]=\"playStoreLink\">\n\t\t\t\t<img src=\"//media-cdn.visibacare.com/service/public/logo/google-play-badge.png\" alt=\"Google play store logo\" />\n\t\t\t</a>\n\t\t</div>\n\t`,\n\tstyleUrls: ['../Css/Components/mobileAppPromotion.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class MobileAppPromotionComponent {\n\tappStoreLink: string = null;\n\tplayStoreLink: string = null;\n\n\tconstructor(public _spaContext: SpaContext) {\n\t\tif (this._spaContext.unitConfig.AppConfig !== null && this._spaContext.unitConfig.AppConfig.AppStoreId !== null) {\n\t\t\tthis.appStoreLink = 'https://itunes.apple.com/se/app/id' + this._spaContext.unitConfig.AppConfig.AppStoreId;\n\t\t}\n\n\t\tif (\n\t\t\tthis._spaContext.unitConfig.AppConfig !== null &&\n\t\t\tthis._spaContext.unitConfig.AppConfig !== null &&\n\t\t\tthis._spaContext.unitConfig.AppConfig.AndroidPackageId !== null\n\t\t) {\n\t\t\tthis.playStoreLink =\n\t\t\t\t'https://play.app.goo.gl/?link=https://play.google.com/store/apps/details?id=' +\n\t\t\t\tthis._spaContext.unitConfig.AppConfig.AndroidPackageId;\n\t\t}\n\t}\n}\n","import { Component, Input, OnInit, ViewEncapsulation } from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\n\n@Component({\n\tstandalone: false,\n\tselector: 'external-svg',\n\ttemplate: `\n\t\t<div>\n\t\t\t<div class=\"svg\" *ngIf=\"svgData\" [innerHTML]=\"svgData\"></div>\n\t\t</div>\n\t`,\n\tstyleUrls: ['../Css/Components/externalSvg.scss'],\n\tencapsulation: ViewEncapsulation.Emulated,\n})\nexport class ExternalSvgComponent implements OnInit {\n\tprivate static REGEX_TO_REMOVE_RANDOM_COLOR_MODIFIERS_IN_A_SVG = /(fill|class|style)=\"(.*?)\"/g;\n\n\t@Input() public imgSrc: string | null = null;\n\tpublic svgData: SafeHtml | null = null;\n\n\tconstructor(private readonly domSanitizer: DomSanitizer) {\n\t\t// Empty\n\t}\n\n\tngOnInit() {\n\t\tif (!this.imgSrc) throw new Error('imgSrc needs to be set');\n\n\t\t// Copied from, good job whoever wrote that:\n\t\t// https://github.com/VisibaCare/Visiba-Care-Service/blob/master/src/VisibaCare.Web/Public/src/app/Services/api/v2/Units/webContentButtons.service.ts#L41\n\t\t//\n\t\t// The seems to be the most the most convenient way to avoid any cors\n\t\t// issues or data getting flagged as \"opaque\".\n\t\t// https://media.giphy.com/media/1hAxQTH0HEWS3L0oRF/giphy.gif\n\t\tconst xhr = new XMLHttpRequest();\n\t\txhr.open('GET', this.imgSrc, true);\n\t\txhr.withCredentials = false;\n\t\txhr.send(null);\n\t\txhr.onreadystatechange = () => {\n\t\t\t// In local files, status is 0 upon success in Mozilla Firefox\n\t\t\tif (xhr.readyState === XMLHttpRequest.DONE) {\n\t\t\t\tconst cleansedOfCustomColor = xhr.responseText.replace(\n\t\t\t\t\tExternalSvgComponent.REGEX_TO_REMOVE_RANDOM_COLOR_MODIFIERS_IN_A_SVG,\n\t\t\t\t\t'',\n\t\t\t\t);\n\t\t\t\tthis.svgData = this.domSanitizer.bypassSecurityTrustHtml(cleansedOfCustomColor);\n\t\t\t}\n\t\t};\n\t}\n}\n","import { TranslateService } from '../Common/Services/translate.service';\nimport { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef, ViewEncapsulation, OnDestroy } from '@angular/core';\nimport { SpaContext } from '../Classes/spacontext';\nimport { DropInQueueService } from '../Services/Queue/dropin-queue.service';\n\nimport { UnitService } from '@services/unit.service';\nimport { sharedResolution } from '../../../src/shared_resolution';\n\n@Component({\n\tstandalone: false,\n\tselector: 'drop-in-section-from-menu',\n\t// The only reason for the \"injectionPatch\" is due to miss matching source of\n\t// truth between the injected variant and the old variant. SpaContext could\n\t// lag behind...\n\ttemplate: `\n\t\t<div class=\"wwrapper\">\n\t\t\t<ng-container *ngIf=\"checkShouldRenderStatus()\">\n\t\t\t\t<ng-container\n\t\t\t\t\t*ngIf=\"dropInQueueService.lastFetchedActiveTicket?.UnitId === spaContext.unitConfig.Unit.UnitId; else injectionPatch\"\n\t\t\t\t>\n\t\t\t\t\t<a class=\"item\" [routerLink]=\"getDropInLink()\">\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"queuePlaceNotice\"></ng-container>\n\t\t\t\t\t</a>\n\t\t\t\t</ng-container>\n\n\t\t\t\t<ng-template #injectionPatch>\n\t\t\t\t\t<a class=\"item\" [href]=\"getDropInLink()\">\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"queuePlaceNotice\"></ng-container>\n\t\t\t\t\t</a>\n\t\t\t\t</ng-template>\n\t\t\t</ng-container>\n\n\t\t\t<ng-template #queuePlaceNotice>\n\t\t\t\t<div class=\"svgWrap\">\n\t\t\t\t\t<span>{{ dropInQueueService.queue?.data?.placeInQueue }}</span>\n\t\t\t\t\t<visiba-svg a=\"PartialQueue\"></visiba-svg>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"content\">\n\t\t\t\t\t<div class=\"mainContent\">\n\t\t\t\t\t\t{{\n\t\t\t\t\t\t\t'LicenceHolder.Component.Menu.Notification.DropInQueue.Title'\n\t\t\t\t\t\t\t\t| translate: { roomName: dropInQueueService.room.roomInfo.Name }\n\t\t\t\t\t\t}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"subContent\">\n\t\t\t\t\t\t{{\n\t\t\t\t\t\t\t'LicenceHolder.Component.Menu.Notification.DropInQueue.Description'\n\t\t\t\t\t\t\t\t| translate: { placeInQueue: dropInQueueService.queue?.data?.placeInQueue }\n\t\t\t\t\t\t}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</ng-template>\n\t\t</div>\n\t`,\n\tencapsulation: ViewEncapsulation.None,\n\tstyleUrls: ['../Css/Components/drop-in-section-from-menu.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DropInSectionFromMenuComponent implements OnInit, OnDestroy {\n\tprivate readonly subscribers = [];\n\tprivate readonly unitService = sharedResolution.resolve(UnitService);\n\tprivate styleElement: HTMLStyleElement | null = null;\n\n\tconstructor(\n\t\tpublic readonly spaContext: SpaContext,\n\t\tpublic readonly translateService: TranslateService,\n\t\tpublic readonly dropInQueueService: DropInQueueService,\n\t\tprivate readonly changeDetectorRef: ChangeDetectorRef,\n\t) {\n\t\t// Empty\n\t}\n\n\tngOnInit() {\n\t\tthis.subscribers.push(\n\t\t\tthis.dropInQueueService.event.subscribe((event) => {\n\t\t\t\tconst shouldRender = this.checkShouldRenderStatus();\n\t\t\t\tif (shouldRender) {\n\t\t\t\t\tconst sheet = this.createSheet();\n\t\t\t\t\tif (sheet.cssRules.length > 0) {\n\t\t\t\t\t\tsheet.deleteRule(0);\n\t\t\t\t\t}\n\t\t\t\t\tsheet.insertRule(`\n\t\t\t\t\t\t.__TEMP__dropInIsOpen {\n\t\t\t\t\t\t\ttop: 180px !important;\n\t\t\t\t\t\t}\n\t\t\t\t\t`);\n\t\t\t\t} else {\n\t\t\t\t\tthis.removeSheet();\n\t\t\t\t}\n\n\t\t\t\tthis.changeDetectorRef.detectChanges();\n\t\t\t}),\n\t\t);\n\t}\n\n\tngOnDestroy() {\n\t\tthis.subscribers.forEach((subscriber) => subscriber.unsubscribe());\n\n\t\tthis.removeSheet();\n\t}\n\n\tpublic getDropInLink() {\n\t\t// The relation between lastFetchedActiveTicket and \"currentTicket\" makes\n\t\t// no sense but we seemed to have been using them interchangeably in the\n\t\t// past. So we'll do it now as well!\n\t\tconst ticketUnitId = this.dropInQueueService.lastFetchedActiveTicket.UnitId;\n\t\tconst unit = this.unitService.getUnitNodeInTree(ticketUnitId);\n\n\t\treturn `/${unit.route}/dropin/${this.dropInQueueService.currentUrlAlias}/${this.dropInQueueService.currentTicket}`;\n\t}\n\n\tpublic checkShouldRenderStatus(): boolean {\n\t\treturn this.dropInQueueService.isAlive && this.dropInQueueService.queue?.data?.placeInQueue !== null;\n\t}\n\n\tprivate removeSheet(): void {\n\t\tif (this.styleElement != null) {\n\t\t\tthis.styleElement.remove();\n\t\t\tthis.styleElement = null;\n\t\t}\n\t}\n\n\tprivate createSheet(): CSSStyleSheet {\n\t\tif (this.styleElement) return this.styleElement.sheet;\n\n\t\tconst styleElement = document.createElement('style');\n\t\tstyleElement.appendChild(document.createTextNode(''));\n\t\tstyleElement.type = 'text/css';\n\t\tdocument.head.appendChild(styleElement);\n\n\t\tthis.styleElement = styleElement;\n\n\t\treturn styleElement.sheet;\n\t}\n}\n","import { Component, OnInit, ViewEncapsulation } from '@angular/core';\nimport { Helper } from '../Common/Helpers/helper';\n\n@Component({\n\tstandalone: false,\n\tselector: 'non-supported-browser',\n\ttemplate: `\n\t\t<div class=\"notSupportedToastContainer\">\n\t\t\t<div class=\"notSupportedToast\" *ngIf=\"browserIsNotSupported\">\n\t\t\t\t<p>{{ 'LicenceHolder.Common.Phrase.BrowserNotSupported' | translate }}</p>\n\t\t\t</div>\n\t\t\t<div class=\"notSupportedToast\" *ngIf=\"versionIsNotSupported\">\n\t\t\t\t<p>{{ 'LicenceHolder.Common.Phrase.VersionNotSupported' | translate }}</p>\n\t\t\t</div>\n\t\t</div>\n\t`,\n\tstyleUrls: ['../Css/Components/non-supported-browser.component.scss'],\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class NonSupportedBrowser implements OnInit {\n\tpublic browserIsNotSupported = false;\n\tpublic versionIsNotSupported = false;\n\n\tconstructor(private helper: Helper) {\n\t\t// Empty\n\t}\n\n\tngOnInit() {\n\t\t//Also checks to make sure that the user is not on iOS or Android, which the popup is not designed for and could therefore block important functionality\n\t\tthis.browserIsNotSupported = !(\n\t\t\tplatform.name === 'Firefox' ||\n\t\t\tplatform.name === 'Chrome' ||\n\t\t\tplatform.name === 'Microsoft Edge' ||\n\t\t\tthis.helper.is.ios() ||\n\t\t\tthis.helper.is.android()\n\t\t);\n\n\t\tif (navigator.userAgent.includes('Edg/')) {\n\t\t\tconst [major, _, patch] = platform.version.split('.').map((version) => parseInt(version, 10));\n\n\t\t\t// 83.0.4\n\t\t\tif (major < 83 && patch < 4) {\n\t\t\t\tthis.versionIsNotSupported = true;\n\t\t\t}\n\t\t}\n\t}\n}\n","import { GuestComponent } from './Views/Guest/guest.component';\nimport { NoAuthLoginComponent } from './Components/Authentication/signin-method-noAuth.component';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule, APP_INITIALIZER } from '@angular/core';\nimport { AppRoutingModule } from './app-routing.module';\nimport { AppComponent } from './app.component';\nimport { StartupService } from './Services/app/startup.service';\nimport { SharedModule } from './appShares.module';\n// import { MatomoModule } from 'ngx-matomo';\nimport { SignInComponent } from './Components/Authentication/signin.component';\nimport { SmsLoginComponent } from './Components/Authentication/signin-method-sms.component';\nimport { IframeSignInComponent } from './Components/Authentication/signin-method-iframe.component';\nimport { RegistrationComponent } from './Components/registration.component.component';\nimport { DocumentSignComponent } from './Components/document-sign.component';\nimport { SigninMethodEhelseComponent } from './Components/Authentication/signin-method-ehelse';\nimport { AudioPlayerComponent } from './Common/Components/audio-player/audio-player.component';\nimport { UnitPickerComponent } from './Components/unit-picker.component';\nimport { BreadcrumbsComponent } from './Components/breadcrumbs.component';\nimport { IndexComponent } from './Views/Index/index.component';\nimport { ComponentsComponent } from './Views/Develop/components.component';\nimport { MobileAppPromotionComponent } from './Components/mobile-app-promotion.component';\nimport { ProxyRedirectComponent } from './Views/ProxyRedirect/ProxyRedirect.component';\nimport { EmbeddedWebComponent } from './Components/embedded-web.component';\nimport { APP_BASE_HREF } from '@angular/common';\nimport { UrlSerializer } from '@angular/router';\nimport { CustomUrlSerializer } from './Classes/customUrlSerializer';\nimport { SpaContext } from './Classes/spacontext';\nimport { SpaLogger } from './Common/Classes/Global/spalogger.class';\nimport { ExternalSvgComponent } from './Components/externalSvg.component';\nimport { WrappersModule } from 'Public_old/src/wrappers/wrappers.module';\nimport { DropInSectionFromMenuComponent } from './Components/drop-in-section-from-menu.component';\nimport { NonSupportedBrowser } from './Components/non-supported-browser.component';\n\nexport function startupServiceFactory(startupService: StartupService): Function {\n\treturn () => startupService.load();\n}\nexport function getBaseLocation() {\n\treturn document.querySelector('base').attributes.getNamedItem('href').value;\n}\n\n// const matomoId = location.hostname.includes('vcare.pl') || location.hostname.includes('stage-service') ? 1 : 4;\n\n@NgModule({\n\timports: [\n\t\tBrowserModule,\n\t\tAppRoutingModule,\n\t\tSharedModule.forRoot(),\n\t\t// MatomoModule.forRoot({\n\t\t// \tscriptUrl: '//analytics.visibacare.com/matomo.js',\n\t\t// \ttrackers: [\n\t\t// \t\t{\n\t\t// \t\t\ttrackerUrl: '//analytics.visibacare.com/matomo.php',\n\t\t// \t\t\tsiteId: matomoId,\n\t\t// \t\t},\n\t\t// \t],\n\t\t// }),\n\t\tWrappersModule,\n\t],\n\tdeclarations: [\n\t\t// directives, components, and pipes owned by this NgModule\n\t\t// Components\n\t\tAppComponent,\n\n\t\tSignInComponent,\n\t\tSmsLoginComponent,\n\t\tNoAuthLoginComponent,\n\t\tIframeSignInComponent,\n\t\tRegistrationComponent,\n\t\tDocumentSignComponent,\n\t\tSigninMethodEhelseComponent,\n\t\tGuestComponent,\n\t\tExternalSvgComponent,\n\t\tNonSupportedBrowser,\n\n\t\tAudioPlayerComponent,\n\t\tUnitPickerComponent,\n\t\tBreadcrumbsComponent,\n\t\tDropInSectionFromMenuComponent,\n\n\t\tIndexComponent,\n\t\tComponentsComponent,\n\t\tMobileAppPromotionComponent,\n\t\tProxyRedirectComponent,\n\t\tEmbeddedWebComponent,\n\t],\n\tproviders: [\n\t\tStartupService,\n\t\t{\n\t\t\tprovide: APP_INITIALIZER,\n\t\t\tuseFactory: startupServiceFactory,\n\t\t\tdeps: [StartupService],\n\t\t\tmulti: true,\n\t\t},\n\t\t{\n\t\t\tprovide: APP_BASE_HREF,\n\t\t\tuseFactory: () => '',\n\t\t},\n\t\t{ provide: UrlSerializer, useClass: CustomUrlSerializer },\n\t],\n\tbootstrap: [AppComponent],\n})\nexport class AppModule {\n\tconstructor(\n\t\tpublic spaContext: SpaContext,\n\t\tprivate spaLogger: SpaLogger,\n\t) {\n\t\tif (typeof µ.isDevelopment !== 'undefined' && µ.isDevelopment) this.spaLogger.logLevel = 3;\n\t}\n}\n","import { DefaultUrlSerializer, UrlTree, UrlSerializer } from '@angular/router';\n\nexport class CustomUrlSerializer implements UrlSerializer {\n\tpublic parse(url: string): UrlTree {\n\t\tconst defaultUrlSerializer = new DefaultUrlSerializer();\n\t\tconst splittedUrl = url.replace(/%3D/g, '=').split(/(;[\\w\\d-]*=[\\w\\d-]*)/g);\n\n\t\tconst matrixParams = this.extractMatrixParams(splittedUrl);\n\t\tconst queryParams = this.extractQueryParams(url);\n\n\t\tconst newUrl = this.buildNewString(splittedUrl, matrixParams, queryParams);\n\t\treturn defaultUrlSerializer.parse(newUrl);\n\t}\n\n\tpublic serialize(tree: UrlTree): string {\n\t\tconst defaultUrlSerializer = new DefaultUrlSerializer(),\n\t\t\tpath = defaultUrlSerializer.serialize(tree);\n\t\treturn path.replace(/%3D/g, '=');\n\t}\n\n\tprivate extractMatrixParams(splittedUrl: string[]): string {\n\t\treturn splittedUrl\n\t\t\t.filter(param => param.startsWith(';'))\n\t\t\t.reduce((previous, current) => ((previous = previous + current.substr(1) + '&'), previous), '')\n\t\t\t.slice(0, -1);\n\t}\n\n\tprivate extractQueryParams(url: string): string {\n\t\treturn url.lastIndexOf('?') > -1 ? url.substr(url.lastIndexOf('?') + 1, url.length - 1) : '';\n\t}\n\n\tprivate buildNewString(splittedUrl: string[], matrixParams: string, queryParams: string): string {\n\t\tlet newUrl = splittedUrl.reduce((previous, current) => {\n\t\t\tif (current && !current.startsWith(';')) {\n\t\t\t\tif (current.indexOf('?')) {\n\t\t\t\t\tprevious = previous + current.split('?')[0];\n\t\t\t\t} else {\n\t\t\t\t\tprevious = previous + current;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn previous;\n\t\t}, '');\n\n\t\tif (matrixParams || queryParams) {\n\t\t\tnewUrl = newUrl + '?';\n\t\t}\n\t\tif (matrixParams) {\n\t\t\tnewUrl = newUrl + matrixParams;\n\t\t}\n\t\tif (queryParams) {\n\t\t\tnewUrl = newUrl + (matrixParams ? '&' : '') + queryParams;\n\t\t}\n\n\t\treturn newUrl;\n\t}\n}\n","import '../src/modules/debug_config'; // Imported to initialize the module.\nimport '@cortex-shim/result_runtime';\nimport 'reflect-metadata';\nimport { Injectable } from '@visiba-cortex/instantiation';\nInjectable.lookup = (token) => {\n\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t// @ts-ignore\n\treturn Reflect.getMetadata('design:paramtypes', token) ?? [];\n};\n\nimport { enableProdMode, ViewEncapsulation } from '@angular/core';\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\nimport { AppModule } from './app/app.module';\nimport { environment } from './environments/environment';\nimport { Logger, StdOutChannel } from '@visiba/logger';\n\nLogger.attachChannel(new StdOutChannel());\n\nif (environment.production) {\n\tenableProdMode();\n}\n\nplatformBrowserDynamic()\n\t.bootstrapModule(AppModule, [\n\t\t{\n\t\t\tdefaultEncapsulation: ViewEncapsulation.None,\n\t\t},\n\t])\n\t.catch((err) => console.error(err));\n","import { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { HttpService } from '@application/http.service';\nimport { ApiBaseClient } from './_api_base_client';\nimport type {\n\tBookSlotApiInput,\n\tClientAppointmentApiModel,\n\tClientTimeslotApiModel,\n\tLocalityType,\n\tSearchCapabilitiesApiModel,\n\tTimeslotAvailabilityCountsApiModel,\n\tTimeslotAvailabilityGroupingApiModel,\n\tTimeslotLockApiModel,\n} from './generated/clientv2/models';\n\n@Injectable({\n\tscope: Scopes.Transient,\n})\nexport class TimeSlotApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('units');\n\t}\n\n\tpublic async getSearchCapabilities(unitId: number) {\n\t\treturn this.httpService.get<SearchCapabilitiesApiModel>(`${this.baseUri}/${unitId}/timeslots/searchcapabilities`);\n\t}\n\n\tpublic getTimeSlots(\n\t\tunitId: number,\n\t\toptions: {\n\t\t\tfromDate: string;\n\t\t\ttoDate: string;\n\t\t\tfromTime: string;\n\t\t\ttoTime: string;\n\t\t\tlocalityType: LocalityType;\n\t\t\tconditionId?: number;\n\t\t\tspecialityId?: number;\n\t\t\tfilterableUnitId?: number;\n\t\t\tresourceId?: number;\n\t\t\tphysicalLocationId?: number;\n\t\t},\n\t) {\n\t\tconst url = this.httpService.createUrl(`${this.baseUri}/${unitId}/timeslots`);\n\n\t\turl.searchParams.append('fromDate', options.fromDate);\n\t\turl.searchParams.append('toDate', options.toDate);\n\t\turl.searchParams.append('fromTime', options.fromTime);\n\t\turl.searchParams.append('toTime', options.toTime);\n\t\turl.searchParams.append('localityType', options.localityType);\n\n\t\tif (options?.conditionId) url.searchParams.append('conditionId', options.conditionId.toString());\n\t\tif (options?.specialityId) url.searchParams.append('specialityId', options.specialityId.toString());\n\t\tif (options?.resourceId) url.searchParams.append('resourceId', options.resourceId.toString());\n\t\tif (options?.filterableUnitId) url.searchParams.append('filterableUnitId', options.filterableUnitId.toString());\n\t\tif (options?.physicalLocationId) url.searchParams.append('physicalLocationId', options.physicalLocationId.toString());\n\n\t\treturn this.httpService.get<ClientTimeslotApiModel[]>(url);\n\t}\n\n\tpublic getTimeSlot(unitId: number, timeSlotId: string) {\n\t\treturn this.httpService.get<ClientTimeslotApiModel>(`${this.baseUri}/${unitId}/timeslots/${timeSlotId}`);\n\t}\n\n\tpublic bookTimeSlot(unitId: number, timeSlotId: string, bookingData: BookSlotApiInput) {\n\t\treturn this.httpService.post<ClientAppointmentApiModel>(\n\t\t\t`${this.baseUri}/${unitId}/timeslots/${timeSlotId}/book`,\n\t\t\tbookingData as unknown as Record<string, unknown>,\n\t\t);\n\t}\n\n\tpublic availableTimeSlots(\n\t\tunitId: number,\n\t\toptions?: {\n\t\t\tspecialityId?: number;\n\t\t\tconditionId?: number;\n\t\t\tresourceId?: number;\n\t\t\tfilterableUnitId?: number;\n\t\t\tfromDate?: string;\n\t\t\ttoDate?: string;\n\t\t},\n\t) {\n\t\tconst url = this.httpService.createUrl(`${this.baseUri}/${unitId}/timeslots/availability`);\n\n\t\tif (options?.specialityId) url.searchParams.append('specialityId', options.specialityId.toString());\n\t\tif (options?.conditionId) url.searchParams.append('conditionId', options.conditionId.toString());\n\t\tif (options?.resourceId) url.searchParams.append('resourceId', options.resourceId.toString());\n\t\tif (options?.filterableUnitId) url.searchParams.append('filterableUnitId', options.filterableUnitId.toString());\n\t\tif (options?.fromDate) url.searchParams.append('fromDate', options.fromDate);\n\t\tif (options?.toDate) url.searchParams.append('toDate', options.toDate);\n\n\t\treturn this.httpService.get<TimeslotAvailabilityGroupingApiModel>(url);\n\t}\n\n\tpublic availabilityCounts(\n\t\tunitId: number,\n\t\toptions?: {\n\t\t\tspecialityId?: number;\n\t\t\tconditionId?: number;\n\t\t\tresourceId?: number;\n\t\t\tfilterableUnitId?: number;\n\t\t\tphysicalLocationId?: number;\n\t\t\tfromDate?: string;\n\t\t\ttoDate?: string;\n\t\t\tfromTime?: string;\n\t\t\ttoTime?: string;\n\t\t\tlocalityType?: string;\n\t\t},\n\t) {\n\t\tconst url = this.httpService.createUrl(`${this.baseUri}/${unitId}/timeslots/availabilityCounts`);\n\n\t\tif (options?.specialityId) url.searchParams.append('specialityId', options.specialityId.toString());\n\t\tif (options?.conditionId) url.searchParams.append('conditionId', options.conditionId.toString());\n\t\tif (options?.resourceId) url.searchParams.append('resourceId', options.resourceId.toString());\n\t\tif (options?.filterableUnitId) url.searchParams.append('filterableUnitId', options.filterableUnitId.toString());\n\t\tif (options?.physicalLocationId) url.searchParams.append('physicalLocationId', options.physicalLocationId.toString());\n\t\tif (options?.fromDate) url.searchParams.append('fromDate', options.fromDate);\n\t\tif (options?.toDate) url.searchParams.append('toDate', options.toDate);\n\t\tif (options?.fromTime) url.searchParams.append('fromTime', options.fromTime);\n\t\tif (options?.toTime) url.searchParams.append('toTime', options.toTime);\n\t\tif (options?.localityType) url.searchParams.append('localityType', options.localityType);\n\n\t\treturn this.httpService.get<TimeslotAvailabilityCountsApiModel>(url);\n\t}\n\n\tpublic lockTimeSlot(unitId: number, timeSlotId: string) {\n\t\treturn this.httpService.post<TimeslotLockApiModel>(`${this.baseUri}/${unitId}/timeslots/${timeSlotId}/locks`, {});\n\t}\n\n\tpublic updateLockedTimeSlot(unitId: number, timeSlotLockId: string) {\n\t\treturn this.httpService.put<TimeslotLockApiModel>(`${this.baseUri}/${unitId}/timeslotlocks/${timeSlotLockId}`, {});\n\t}\n\n\tpublic deleteLockTimeSlot(unitId: number, timeSlotLockId: string) {\n\t\treturn this.httpService.delete<void>(`${this.baseUri}/${unitId}/timeslotlocks/${timeSlotLockId}`);\n\t}\n}\n","import { applicationSessionStorage } from '@application/application_storage_session';\nimport { UnitService } from '@application/unit.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport type { RespondentType } from './screen_who_is_respondant/screen_who_is_respondant.controller';\nimport { FormManager } from '@feature/dynamic_form/form_manager/mod';\nimport { DynamicFormsApiService } from '@api_patient/dynamic_forms_api.service';\nimport { FormOpportunity } from '@api_patient/generated/clientv2/models/form-opportunity';\nimport { States } from '@api_patient/generated/clientv2/models/states';\nimport type { FormApiModel } from '@api_patient/generated/clientv2/models';\nimport { v4 } from 'uuid';\nimport { TimeSlotApiService } from '@api_patient/timeslot_api.service';\nimport { DateService } from '@application/time/date.service';\nimport { Dayjs } from 'dayjs';\n\ninterface BookingBasketSpec {\n\tuseReasonForVisits: boolean;\n}\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class BookingBasketService {\n\tpublic forms: FormApiModel[] = [];\n\tprivate receptionId: number;\n\tprivate useReasonForVisits: boolean = false;\n\tprivate storage: BasketDataStorage;\n\n\tconstructor(\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly unitService: UnitService,\n\t\tprivate readonly dynamicFormsApiService: DynamicFormsApiService,\n\t\tprivate readonly timeSlotApiService: TimeSlotApiService,\n\t\tpublic readonly formManager: FormManager,\n\t\tpublic readonly dateService: DateService,\n\t) {\n\t\tconst unit = this.unitService.getUnitNodeInTree(this.universalConfig.selectedUnitId);\n\t\tthis.receptionId = unit.receptionId;\n\n\t\tthis.storage = new BasketDataStorage({\n\t\t\treceptionId: this.receptionId,\n\t\t});\n\t}\n\n\tpublic load(spec: BookingBasketSpec): void {\n\t\tthis.useReasonForVisits = spec.useReasonForVisits;\n\t}\n\n\tpublic async restore(): AsyncResult<void> {\n\t\t// Fetch forms if there is no reason for visit or the reason for visit is set\n\t\tif (this.get().timeSlotId && (this.useReasonForVisits === false || this.get().reasonForVisit !== null)) {\n\t\t\tconst populateFormsResult = await this.populateForms();\n\t\t\tif (populateFormsResult.err) {\n\t\t\t\treturn Err(populateFormsResult.err);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.forms = [];\n\t\t\tthis.formManager.removeForms();\n\t\t}\n\n\t\treturn Ok();\n\t}\n\n\tpublic clear(): void {\n\t\tthis.storage.clear();\n\t}\n\n\tpublic get(): BookingBasket {\n\t\tconst data = this.storage.get();\n\n\t\tlet currentDate: Dayjs | null = null;\n\n\t\tif (data.currentDate && this.dateService.isValidDate(data.currentDate)) {\n\t\t\tcurrentDate = this.dateService.newDate(data.currentDate, 'YYYY-MM-DD');\n\t\t}\n\n\t\treturn {\n\t\t\t...data,\n\t\t\tcurrentDate,\n\t\t};\n\t}\n\n\tpublic set(newUserData: Partial<BasketStorageData>): void {\n\t\tthis.storage.set({\n\t\t\t...newUserData,\n\t\t});\n\t}\n\n\tpublic async unlockTimeSlot(): AsyncResult<void> {\n\t\tconst { timeSlotLockId } = this.get();\n\t\tif (!timeSlotLockId) {\n\t\t\treturn Ok();\n\t\t}\n\n\t\tconst unlockResult = await this.timeSlotApiService.deleteLockTimeSlot(this.universalConfig.selectedUnitId, timeSlotLockId);\n\t\tif (unlockResult.err) {\n\t\t\treturn Err(unlockResult.err);\n\t\t}\n\n\t\tthis.set({\n\t\t\ttimeSlotLockId: null,\n\t\t});\n\n\t\treturn Ok();\n\t}\n\n\tpublic async updateLockedTimeSlot(timeSlotId: string): AsyncResult<void> {\n\t\tconst lockResult = await this.timeSlotApiService.updateLockedTimeSlot(this.universalConfig.selectedUnitId, timeSlotId);\n\t\tif (lockResult.err) {\n\t\t\treturn Err(lockResult.err);\n\t\t}\n\n\t\tthis.set({\n\t\t\ttimeSlotLockId: lockResult.ok.data.Id,\n\t\t});\n\n\t\treturn Ok();\n\t}\n\n\tpublic async lockTimeSlot(timeSlotId: string): AsyncResult<void> {\n\t\tawait this.unlockTimeSlot();\n\n\t\tconst lockResult = await this.timeSlotApiService.lockTimeSlot(this.universalConfig.selectedUnitId, timeSlotId);\n\t\tif (lockResult.err) {\n\t\t\treturn Err(lockResult.err);\n\t\t}\n\n\t\tthis.set({\n\t\t\ttimeSlotLockId: lockResult.ok.data.Id,\n\t\t});\n\n\t\treturn Ok();\n\t}\n\n\tpublic async commit(data: CommitSpec): AsyncResult<CommitResult> {\n\t\tconst validateResult = this.validate();\n\t\tif (validateResult.err) return Err(validateResult.err);\n\n\t\tconst bookTimeSlotResult = await this.timeSlotApiService.bookTimeSlot(\n\t\t\tthis.universalConfig.selectedUnitId,\n\t\t\tthis.get().timeSlotId ?? '',\n\t\t\t{\n\t\t\t\tAsAgentFor: this.get().representativeNin ?? null,\n\t\t\t\tAsAgentForName: null,\n\t\t\t\tConditionId: this.get().reasonForVisit,\n\t\t\t\tExternalData: [],\n\t\t\t\tFiles: data.files ?? [],\n\t\t\t\tReason: data.reason,\n\t\t\t\tRedRobinSessionId: data.redRobinSessionId ?? null,\n\t\t\t\tTimeslotLockId: null,\n\t\t\t},\n\t\t);\n\n\t\tif (bookTimeSlotResult.err) {\n\t\t\treturn Err(bookTimeSlotResult.err);\n\t\t}\n\n\t\tif (bookTimeSlotResult.ok.data.Forms.length) {\n\t\t\tconst forms = this.formManager.getForms();\n\t\t\tfor (const form of bookTimeSlotResult.ok.data.Forms) {\n\t\t\t\tconst formWorker = forms.find((f) => f.formId === form.FormId);\n\t\t\t\tif (formWorker) {\n\t\t\t\t\tconst answersResult = await formWorker.formDataProvider.getAnswers();\n\t\t\t\t\tif (answersResult.err) {\n\t\t\t\t\t\treturn Err(answersResult.err);\n\t\t\t\t\t}\n\n\t\t\t\t\tconst postAnswersResult = await this.dynamicFormsApiService.answer(\n\t\t\t\t\t\tthis.universalConfig.selectedUnitId,\n\t\t\t\t\t\tform.RespondantId,\n\t\t\t\t\t\tanswersResult.ok.answers,\n\t\t\t\t\t);\n\n\t\t\t\t\tif (postAnswersResult.err) {\n\t\t\t\t\t\treturn Err(postAnswersResult.err);\n\t\t\t\t\t}\n\n\t\t\t\t\tconst setCompletionResult = await this.dynamicFormsApiService.setCompletion(\n\t\t\t\t\t\tthis.universalConfig.selectedUnitId,\n\t\t\t\t\t\tform.RespondantId,\n\t\t\t\t\t);\n\n\t\t\t\t\tif (setCompletionResult.err) {\n\t\t\t\t\t\treturn Err(setCompletionResult.err);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tlet payment = null;\n\n\t\t// If payment if needed\n\t\tif (\n\t\t\tbookTimeSlotResult.ok.data.Payment &&\n\t\t\tbookTimeSlotResult.ok.data.Payment.State === States.Unpaid &&\n\t\t\tbookTimeSlotResult.ok.data.Payment.BillId\n\t\t) {\n\t\t\tpayment = {\n\t\t\t\tbillId: bookTimeSlotResult.ok.data.Payment.BillId,\n\t\t\t\tamount: `${bookTimeSlotResult.ok.data.Price?.Formatted}`,\n\t\t\t};\n\t\t}\n\n\t\treturn Ok({\n\t\t\tpayment,\n\t\t\tticket: bookTimeSlotResult.ok.data.Ticket,\n\t\t});\n\t}\n\n\tprivate validate(): Result<void> {\n\t\tif (this.useReasonForVisits && this.get().reasonForVisit == null) {\n\t\t\treturn Err(new Error('Reason for visit is required'));\n\t\t}\n\n\t\tif (this.forms.length && this.formManager.getForms().find((form) => !form.getState().completed)) {\n\t\t\treturn Err(new UnansweredFormsError('Forms are not completed'));\n\t\t}\n\n\t\treturn Ok();\n\t}\n\n\tprivate async populateForms(): AsyncResult<void> {\n\t\tif (!this.forms.length) {\n\t\t\tconst formsResult = await this.dynamicFormsApiService.getAllForms(\n\t\t\t\tthis.universalConfig.selectedUnitId,\n\t\t\t\tthis.get().reasonForVisit,\n\t\t\t\tFormOpportunity.BeforeBooking,\n\t\t\t);\n\t\t\tif (formsResult.err) {\n\t\t\t\treturn Err(formsResult.err);\n\t\t\t}\n\n\t\t\tthis.forms = formsResult.ok.data;\n\t\t}\n\n\t\tif (this.forms.length) {\n\t\t\tlet formRespondantId = this.get().formRespondantId;\n\n\t\t\tif (!formRespondantId) {\n\t\t\t\tformRespondantId = v4();\n\n\t\t\t\tthis.set({\n\t\t\t\t\tformRespondantId,\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tthis.formManager.addRespondants(\n\t\t\t\tthis.forms\n\t\t\t\t\t.filter((form) => !this.formManager.getFormByFormId(form.Id))\n\t\t\t\t\t.map((form) => ({\n\t\t\t\t\t\tcompleted: false,\n\t\t\t\t\t\teditable: true,\n\t\t\t\t\t\tformId: form.Id,\n\t\t\t\t\t\theader: form.Header ?? '',\n\t\t\t\t\t\topportunity: FormOpportunity.BeforeBooking,\n\t\t\t\t\t\tissueTrackingId: '',\n\t\t\t\t\t\tdataProvider: { type: 'local', id: formRespondantId ?? '' },\n\t\t\t\t\t})) ?? [],\n\t\t\t);\n\t\t}\n\n\t\treturn Ok();\n\t}\n}\n\ninterface CommitSpec {\n\treason: string;\n\tfiles?: string[];\n\tredRobinSessionId?: string;\n}\n\nexport interface CommitResult {\n\tpayment: {\n\t\tbillId: number;\n\t\tamount: string;\n\t} | null;\n\tticket: string;\n}\n\ninterface BookingBasketCommon {\n\trespondantType: Nullable<RespondentType>;\n\trepresentativeNin: Nullable<string>;\n\treasonForVisit: Nullable<number>;\n\ttimeSlotId: Nullable<string>;\n\ttimeSlotLockId: Nullable<string>;\n\ttimeSlotFilterResourceId: Nullable<number>;\n\ttimeSlotFilterSpecialityId: Nullable<number>;\n\ttimeSlotFilterUnitId: Nullable<number>;\n\tformRespondantId: Nullable<Guid>;\n}\n\nexport interface BookingBasket extends BookingBasketCommon {\n\tcurrentDate: Nullable<Dayjs>;\n}\n\nexport interface BasketStorageData extends BookingBasketCommon {\n\tcurrentDate: Nullable<string>;\n}\n\ninterface BasketDataSpec {\n\treceptionId: number;\n}\n\nclass BasketDataStorage {\n\tprivate receptionId: number;\n\n\tconstructor(spec: BasketDataSpec) {\n\t\tthis.receptionId = spec.receptionId;\n\t}\n\n\tpublic clear(): void {\n\t\tconst userData = applicationSessionStorage.get('bookingBasket') ?? {};\n\n\t\tdelete userData[this.receptionId];\n\n\t\tapplicationSessionStorage.set('bookingBasket', userData);\n\t}\n\n\tpublic get(): BasketStorageData {\n\t\tconst userData = applicationSessionStorage.get('bookingBasket') ?? {};\n\n\t\treturn (\n\t\t\tuserData[this.receptionId] ?? {\n\t\t\t\trespondantType: null,\n\t\t\t\trepresentativeNin: null,\n\t\t\t\treasonForVisit: null,\n\t\t\t\tcurrentDate: null,\n\t\t\t\ttimeSlotId: null,\n\t\t\t\ttimeSlotLockId: null,\n\t\t\t\ttimeSlotFilterResourceId: null,\n\t\t\t\ttimeSlotFilterSpecialityId: null,\n\t\t\t\ttimeSlotFilterUnitId: null,\n\t\t\t\tformRespondantId: null,\n\t\t\t}\n\t\t);\n\t}\n\n\tpublic async set(newUserData: Partial<BasketStorageData>): Promise<void> {\n\t\tconst userData = applicationSessionStorage.get('bookingBasket') ?? {};\n\n\t\tuserData[this.receptionId] = {\n\t\t\t...this.get(),\n\t\t\t...newUserData,\n\t\t};\n\n\t\tapplicationSessionStorage.set('bookingBasket', userData);\n\t}\n}\n\nexport class UnansweredFormsError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'UnansweredFormsError';\n\t\tObject.setPrototypeOf(this, UnansweredFormsError.prototype);\n\t}\n}\n","import { applicationLocalStorage } from '@application/application_storage_local';\nimport { DateService } from '@application/time/date.service';\nimport { UnitService } from '@application/unit.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport type { Dayjs } from 'dayjs';\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class ViewBookingSettingsService {\n\tprivate receptionId: number;\n\tprivate defaultSettings = {\n\t\tpredefinedDescriptionOfMatter: null,\n\t\tpredefinedReasonForVisit: null,\n\t\tredRobinSessionId: null,\n\t\trepresentativeNin: null,\n\t\tattachFiles: true,\n\t\tlockFilters: false,\n\t\tpredefinedLocationType: null,\n\t\tpredefinedLocationId: null,\n\t\tpredefinedFilterResourceId: null,\n\t\tpredefinedFilterSpecialityId: null,\n\t\tpredefinedFilterUnitId: null,\n\t\tfromDate: null,\n\t};\n\n\tconstructor(\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly unitService: UnitService,\n\t\tprivate readonly dateService: DateService,\n\t) {\n\t\tconst unit = this.unitService.getUnitNodeInTree(this.universalConfig.selectedUnitId);\n\t\tthis.receptionId = unit.receptionId;\n\t}\n\n\tpublic getSettings(): BookingSettings {\n\t\tconst settings = applicationLocalStorage.get('bookingSettings') ?? {};\n\n\t\tif (!settings[this.receptionId]) return this.defaultSettings;\n\n\t\tconst fromDate = settings[this.receptionId].fromDate;\n\t\tlet rawFromDate: Dayjs | null = null;\n\t\tif (fromDate && this.dateService.isValidDate(fromDate)) {\n\t\t\trawFromDate = this.dateService.newDate(fromDate, 'YYYY-MM-DD');\n\t\t}\n\n\t\tconst data: BookingSettings = {\n\t\t\t...this.defaultSettings,\n\t\t\t...settings[this.receptionId],\n\t\t\tfromDate: rawFromDate,\n\t\t};\n\n\t\treturn data;\n\t}\n\n\tpublic setSettings(flowSettings: Partial<BookingSettingsRawData>): void {\n\t\tconst settings = applicationLocalStorage.get('bookingSettings') ?? {};\n\n\t\tsettings[this.receptionId] = {\n\t\t\t...this.defaultSettings,\n\t\t\t...flowSettings,\n\t\t};\n\n\t\tapplicationLocalStorage.set('bookingSettings', settings);\n\t}\n\n\tpublic clearSettings(): void {\n\t\tconst settings = applicationLocalStorage.get('bookingSettings') ?? {};\n\n\t\tdelete settings[this.receptionId];\n\n\t\tapplicationLocalStorage.set('bookingSettings', settings);\n\t}\n}\n\ninterface BookingSettingsCommon {\n\tpredefinedDescriptionOfMatter: Nullable<string>;\n\tpredefinedReasonForVisit: Nullable<number[]>;\n\tredRobinSessionId: Nullable<string>;\n\trepresentativeNin: Nullable<string>;\n\tattachFiles: boolean;\n\tlockFilters: boolean;\n\tpredefinedLocationType: Nullable<string>;\n\tpredefinedLocationId: Nullable<number>;\n\tpredefinedFilterResourceId: Nullable<number>;\n\tpredefinedFilterSpecialityId: Nullable<number>;\n\tpredefinedFilterUnitId: Nullable<number>;\n}\n\nexport interface BookingSettings extends BookingSettingsCommon {\n\tfromDate: Nullable<Dayjs>;\n}\n\nexport interface BookingSettingsRawData extends BookingSettingsCommon {\n\tfromDate: Nullable<string>;\n}\n\nexport interface BookingSettingsSetInput extends BookingSettingsCommon {\n\tfromDate: Dayjs | string | null;\n}\n","import { ClientConditionApiModel, ClientPhysicalLocationApiModel } from '@api_patient/generated/clientv2/models';\nimport { UnitsApiService } from '@api_patient/units_api.service';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { UnitService } from '@application/unit.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { AsyncSignalValue } from '@component/async.component';\nimport { Logger } from '@visiba/logger';\nimport { RouterService } from '@cortex-shim/router.service';\nimport { signal } from '@preact/signals-react';\nimport { ControllerProtocol, Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { BookingBasketService } from './booking_basket.service';\nimport { NiN } from '@visiba/national-identity-number';\nimport { AuthService } from '@application/authentication/auth.service';\nimport { BookingSettings, BookingSettingsRawData, ViewBookingSettingsService } from './view_booking_settings.service';\nimport { RedRobinApiService } from '@api_patient/red_robin_api.service';\n\nexport enum BookingScreen {\n\tWhoIsRespondant = 'who-is-respondant',\n\tReasonForVisit = 'reason-for-visit',\n\tLocation = 'location',\n\tTimeSlot = 'time-slot',\n\tForms = 'forms',\n\tConclusion = 'conclusion',\n\tDone = 'done',\n\tError = 'error',\n}\n\ninterface FlowData {\n\tcurrentCountry: keyof NiN.Implementations;\n\tallowRepresentative: boolean;\n\tuseReasonForVisits: boolean;\n\treasonForVisits: ClientConditionApiModel[];\n\tphysicalLocations: ClientPhysicalLocationApiModel[];\n}\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class ViewBookingController implements ControllerProtocol {\n\tpublic flowData = signal<AsyncSignalValue<FlowData>>({\n\t\tvalue: null,\n\t\tflowState: 'pending',\n\t});\n\tpublic flowSettings = signal<AsyncSignalValue<BookingSettings>>({\n\t\tvalue: null,\n\t\tflowState: 'pending',\n\t});\n\n\tpublic basketReady = signal(false);\n\tprivate readonly logger = new Logger('ViewBookingController');\n\tprivate readonly routeBase: string;\n\n\tconstructor(\n\t\tprivate readonly routerService: RouterService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly unitService: UnitService,\n\t\tprivate readonly unitsApiService: UnitsApiService,\n\t\tprivate readonly analyticService: AnalyticService,\n\t\tprivate readonly bookingBasketService: BookingBasketService,\n\t\tprivate readonly authService: AuthService,\n\t\tprivate readonly bookingSettingsService: ViewBookingSettingsService,\n\t\tprivate readonly redRobinApiService: RedRobinApiService,\n\t) {\n\t\tconst unit = this.unitService.getUnitNodeInTree(this.universalConfig.selectedUnitId);\n\t\tthis.routeBase = unit.routeWithoutLicenceholder;\n\t}\n\n\tasync whenMount() {\n\t\tthis.analyticService.trackPageView({\n\t\t\tcustomTitle: 'Booking',\n\t\t});\n\n\t\tthis.logger.logInformation('Mounting ViewBookingController');\n\n\t\tthis.flowData.value = {\n\t\t\tvalue: null,\n\t\t\tflowState: 'pending',\n\t\t};\n\n\t\tconst unitConfigResult = await this.unitsApiService.getUnitConfig(this.universalConfig.selectedUnitId);\n\t\tif (unitConfigResult.err) return Err(unitConfigResult.err);\n\n\t\tconst allowRepresentative = unitConfigResult.ok.data.Offer?.AllowClientAgents || false;\n\t\tconst useReasonForVisits = unitConfigResult.ok.data.Offer?.HasConditionWorkflow || false;\n\t\tlet reasonForVisits: ClientConditionApiModel[] = [];\n\n\t\tif (useReasonForVisits) {\n\t\t\tconst reasonForVisitsResult = await this.fetchReasonForVisits();\n\n\t\t\tif (reasonForVisitsResult.err) {\n\t\t\t\tthis.flowData.value = {\n\t\t\t\t\tvalue: null,\n\t\t\t\t\tflowState: 'error',\n\t\t\t\t};\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\treasonForVisits = reasonForVisitsResult.ok;\n\t\t}\n\n\t\tconst physicalLocationsResult = await this.fetchPhysicalLocations();\n\n\t\tif (physicalLocationsResult.err) {\n\t\t\tthis.flowData.value = {\n\t\t\t\tvalue: null,\n\t\t\t\tflowState: 'error',\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.bookingBasketService.load({\n\t\t\tuseReasonForVisits,\n\t\t});\n\n\t\tconst userNationality = this.authService.getUser()?.nationality;\n\n\t\tthis.flowData.value = {\n\t\t\tvalue: {\n\t\t\t\tcurrentCountry:\n\t\t\t\t\tuserNationality && NiN.supportsCountryCode(userNationality)\n\t\t\t\t\t\t? (userNationality as keyof NiN.Implementations)\n\t\t\t\t\t\t: this.universalConfig.selectedCountryCode.peek(),\n\t\t\t\tallowRepresentative,\n\t\t\t\tuseReasonForVisits: useReasonForVisits,\n\t\t\t\treasonForVisits: reasonForVisits,\n\t\t\t\tphysicalLocations: physicalLocationsResult.ok,\n\t\t\t},\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n\n\tpublic async restoreBasket() {\n\t\tconst restoreResult = await this.bookingBasketService.restore();\n\t\tif (restoreResult.err) {\n\t\t\tthis.bookingBasketService.clear();\n\t\t\tthis.goToScreen(BookingScreen.WhoIsRespondant, { replace: true });\n\n\t\t\treturn;\n\t\t}\n\n\t\t// We need to unlock the time slot and lock it again to make sure the time\n\t\t// slot is locked to current user. Otherwise if the user locked a time slot\n\t\t// when it wasn't logged in and the login after, the time slot is still locked\n\t\t// to the previous anonymous user.\n\t\tconst { timeSlotLockId, timeSlotId } = this.bookingBasketService.get();\n\t\tif (timeSlotLockId && timeSlotId) {\n\t\t\tconst unlockResult = await this.bookingBasketService.unlockTimeSlot();\n\t\t\tif (unlockResult.err) {\n\t\t\t\t// We don't care if unlock fails\n\t\t\t}\n\n\t\t\tconst lockResult = await this.bookingBasketService.lockTimeSlot(timeSlotId);\n\t\t\tif (lockResult.err) {\n\t\t\t\tthis.bookingBasketService.set({\n\t\t\t\t\ttimeSlotLockId: null,\n\t\t\t\t\ttimeSlotId: null,\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tthis.basketReady.value = true;\n\t}\n\n\tpublic goToScreen(\n\t\tscreen: BookingScreen,\n\t\toptions: {\n\t\t\treplace?: boolean;\n\t\t\tlocationType?: 'physical' | 'digital';\n\t\t\tlocationId?: number;\n\t\t\tformId?: number;\n\t\t\tformPage?: number;\n\t\t\tticket?: string;\n\t\t} = {},\n\t): void {\n\t\tlet path = '';\n\t\tconst analyticActionName = screen;\n\n\t\tswitch (screen) {\n\t\t\tcase BookingScreen.WhoIsRespondant:\n\t\t\t\tpath = 'who-is-respondant';\n\t\t\t\tbreak;\n\t\t\tcase BookingScreen.ReasonForVisit:\n\t\t\t\tpath = 'reason-for-visit';\n\t\t\t\tbreak;\n\t\t\tcase BookingScreen.Location:\n\t\t\t\tpath = 'location';\n\t\t\t\tbreak;\n\t\t\tcase BookingScreen.TimeSlot:\n\t\t\t\tpath = 'time-slot';\n\n\t\t\t\tif (options.locationType === 'digital') {\n\t\t\t\t\tpath += '/digital';\n\t\t\t\t} else if (options.locationType === 'physical' && options.locationId) {\n\t\t\t\t\tpath += `/${options.locationId}`;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BookingScreen.Forms:\n\t\t\t\tpath = 'forms';\n\n\t\t\t\tif (options.formId) {\n\t\t\t\t\tpath += `/${options.formId}`;\n\n\t\t\t\t\tif (options.formPage) {\n\t\t\t\t\t\tpath += `/${options.formPage}`;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BookingScreen.Conclusion:\n\t\t\t\tpath = 'conclusion';\n\t\t\t\tbreak;\n\t\t\tcase BookingScreen.Done:\n\t\t\t\tpath = 'done';\n\n\t\t\t\tif (options.ticket) {\n\t\t\t\t\tpath += `/${options.ticket}`;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BookingScreen.Error:\n\t\t\t\tpath = 'error';\n\t\t\t\tbreak;\n\t\t}\n\n\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.GoToScreen, analyticActionName);\n\n\t\tconst url = [this.routeBase, 'booking', path].filter(Boolean);\n\n\t\tthis.routerService.navigateByUrl(`/${url.join('/')}`, { replace: options.replace });\n\t}\n\n\tpublic goToReceptionHome() {\n\t\tthis.routerService.navigateByUrl(`/${this.routeBase}`);\n\t}\n\n\tpublic async setupNewBasket() {\n\t\tthis.clearBasket();\n\n\t\tconst queryParams = new URLSearchParams(window.location.search);\n\n\t\tconst redRobinSessionId = queryParams.get('redRobinSessionId');\n\t\tlet representativeNin = null;\n\n\t\tif (redRobinSessionId) {\n\t\t\tconst redRobinResult = await this.redRobinApiService.getRepresentativeNin(redRobinSessionId);\n\n\t\t\tif (redRobinResult.err) {\n\t\t\t\tthis.logger.logError('Failed to get RedRobin session');\n\n\t\t\t\treturn Err(redRobinResult.err);\n\t\t\t}\n\n\t\t\trepresentativeNin = redRobinResult.ok.data.RepresentativeNin;\n\t\t}\n\n\t\tconst flowSettings: BookingSettingsRawData = {\n\t\t\tredRobinSessionId: redRobinSessionId,\n\t\t\trepresentativeNin,\n\t\t\tpredefinedDescriptionOfMatter: queryParams.get('dom') ?? null,\n\t\t\tpredefinedReasonForVisit:\n\t\t\t\tqueryParams\n\t\t\t\t\t.get('rfv')\n\t\t\t\t\t?.split(',')\n\t\t\t\t\t.map((id) => parseInt(id, 10)) ?? null,\n\t\t\tattachFiles: queryParams.get('file') !== 'false',\n\t\t\tlockFilters: queryParams.get('lock') === 'true',\n\t\t\tpredefinedFilterResourceId: queryParams.get('r') ? parseInt(queryParams.get('r') ?? '', 10) : null,\n\t\t\tpredefinedFilterSpecialityId: queryParams.get('s') ? parseInt(queryParams.get('s') ?? '', 10) : null,\n\t\t\tpredefinedFilterUnitId: queryParams.get('u') ? parseInt(queryParams.get('u') ?? '', 10) : null,\n\t\t\tpredefinedLocationId: queryParams.get('l') ? parseInt(queryParams.get('l') ?? '', 10) : null,\n\t\t\tpredefinedLocationType: queryParams.get('lt') ?? null,\n\t\t\tfromDate: queryParams.get('f') ?? null,\n\t\t};\n\n\t\tthis.bookingSettingsService.setSettings(flowSettings);\n\n\t\tthis.goToScreen(BookingScreen.WhoIsRespondant, { replace: true });\n\n\t\treturn Ok();\n\t}\n\n\tpublic clearBasket(): void {\n\t\tthis.bookingBasketService.clear();\n\t\tthis.bookingBasketService.unlockTimeSlot();\n\t\tthis.basketReady.value = true;\n\t}\n\n\tpublic async abortBooking(): AsyncResult<void> {\n\t\tawait this.bookingBasketService.unlockTimeSlot();\n\t\tthis.bookingBasketService.clear();\n\t\tthis.goToReceptionHome();\n\n\t\treturn Ok();\n\t}\n\n\tpublic async loadSettings() {\n\t\tthis.logger.logInformation('Load settings');\n\n\t\tconst settings = this.bookingSettingsService.getSettings();\n\n\t\tthis.flowSettings.value = {\n\t\t\tvalue: settings,\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n\n\tpublic getFlowSettings(): BookingSettings {\n\t\tif (this.flowSettings.value.flowState !== 'accessible') {\n\t\t\tthrow new Error('Flow settings not accessible yet.');\n\t\t}\n\n\t\treturn this.flowSettings.value.value;\n\t}\n\n\tpublic getFlowData(): FlowData {\n\t\tif (this.flowData.value?.flowState === 'accessible') {\n\t\t\treturn this.flowData.value.value;\n\t\t}\n\n\t\tthrow new Error(\"FlowData isn't accessible yet. Make sure to run whenMount() before trying to access flowData.\");\n\t}\n\n\tpublic getFilteredReasonForVisits(): ClientConditionApiModel[] {\n\t\tlet filteredReasonForVisits: ClientConditionApiModel[] = [];\n\n\t\tconst flowSettings = this.getFlowSettings();\n\t\tconst flowData = this.getFlowData();\n\n\t\tif (flowSettings.predefinedReasonForVisit) {\n\t\t\tif (flowSettings.predefinedReasonForVisit.length > 0) {\n\t\t\t\tfilteredReasonForVisits =\n\t\t\t\t\tflowData.reasonForVisits.filter((rfv) => flowSettings.predefinedReasonForVisit?.includes(rfv.Id)) ?? [];\n\t\t\t}\n\t\t} else {\n\t\t\tfilteredReasonForVisits = flowData.reasonForVisits ?? [];\n\t\t}\n\n\t\treturn filteredReasonForVisits;\n\t}\n\n\tpublic getSelectedReasonForVisit(): Nullable<ClientConditionApiModel> {\n\t\tconst selectedReasonForVisit = this.bookingBasketService.get().reasonForVisit;\n\n\t\treturn this.getFilteredReasonForVisits().find((rfv) => rfv.Id === selectedReasonForVisit) ?? null;\n\t}\n\n\tprivate async fetchReasonForVisits(): AsyncResult<ClientConditionApiModel[]> {\n\t\tthis.logger.logInformation('Get reason for visits');\n\n\t\tconst unitConfigResult = await this.unitsApiService.getUnitConfig(this.universalConfig.selectedUnitId);\n\t\tif (unitConfigResult.err) return Err(unitConfigResult.err);\n\n\t\tif (unitConfigResult.ok.data.Offer?.HasConditionWorkflow === false) {\n\t\t\treturn Ok([]);\n\t\t}\n\n\t\tconst reasonForVisitsResult = await this.unitsApiService.getConditions(this.universalConfig.selectedUnitId);\n\t\tif (reasonForVisitsResult.err) {\n\t\t\tthis.logger.logError(\n\t\t\t\t'User tried to get reason for visits: {message} {statusCode}',\n\t\t\t\treasonForVisitsResult.err.message,\n\t\t\t\treasonForVisitsResult.err.statusCode,\n\t\t\t);\n\n\t\t\treturn Err(reasonForVisitsResult.err);\n\t\t}\n\n\t\treturn Ok(reasonForVisitsResult.ok.data);\n\t}\n\n\tprivate async fetchPhysicalLocations(): AsyncResult<ClientPhysicalLocationApiModel[]> {\n\t\tthis.logger.logInformation('Get physical locations');\n\n\t\tconst unitConfigResult = await this.unitsApiService.getUnitConfig(this.universalConfig.selectedUnitId);\n\t\tif (unitConfigResult.err) return Err(unitConfigResult.err);\n\n\t\tif (unitConfigResult.ok.data.Offer?.HasPhysicalLocation === false) {\n\t\t\treturn Ok([]);\n\t\t}\n\n\t\tconst physicalLocationResult = await this.unitsApiService.getPhysicalLocations(\n\t\t\tthis.universalConfig.selectedUnitId,\n\t\t\tthis.universalConfig.selectedLanguageCode.peek(),\n\t\t);\n\n\t\tif (physicalLocationResult.err) {\n\t\t\tthis.logger.logError(\n\t\t\t\t'User tried to get physical locations: {message} {statusCode}',\n\t\t\t\tphysicalLocationResult.err.message,\n\t\t\t\tphysicalLocationResult.err.statusCode,\n\t\t\t);\n\n\t\t\treturn Err(physicalLocationResult.err);\n\t\t}\n\n\t\treturn Ok(physicalLocationResult.ok.data);\n\t}\n}\n\nexport enum ViewBookingAnalyticActions {\n\tGoToScreen = 'Go-to-screen',\n\tNotAllowedToBeHere = 'Not allowed to be here',\n\tDoesNotAllowRepresentative = 'Does not allow representative',\n\tAutoSetRespondantTypeRepresentative = 'Automatically respondant type set to \"representative\"',\n\tAutoSetRespondantTypeMe = 'Automatically respondant type set to \"me\"',\n\tAutoSetReasonForVisit = 'Automatically set reason for visit',\n\tSelectReasonForVisit = 'Select reason for visit',\n\tNoReasonForVisits = 'No reason for visits',\n\tAutoSetLocation = 'Automatically set location',\n\tOnlyDigital = 'Only digital',\n\tSelectLocation = 'Select location',\n\tErrorFetchingAvailability = 'Error fetching availability',\n\tErrorFetchingTimeSlots = 'Error fetching time slots',\n\tOpenTimeSlotDetails = 'Open time slot details',\n\tCloseTimeSlotDetails = 'Close time slot details',\n\tErrorFetchingTimeSlotDetails = 'Error fetching time slot details',\n\tErrorWhileLockingTimeSlot = 'Error while locking time slot',\n\tSelectTimeSlot = 'Select time slot',\n\tSelectTimeSlotAndLogin = 'Select time slot and login',\n\tNoDynamicForms = 'No dynamic forms',\n\tNumberOfDynamicForms = 'Number of dynamic forms',\n\tErrorFetchingDynamicForms = 'Error fetching dynamic forms',\n\tErrorFetchingTimeSlot = 'Error fetching time slot',\n\tFormIsInvalid = 'Form is invalid',\n\tSelectedTimeSlotNotIsAvailable = 'Selected time slot is not available',\n\tOpenedTimeSlotNotAvailableDialog = 'Opened time slot not available dialog',\n\tClosedTimeSlotNotAvailableDialog = 'Closed time slot not available dialog',\n}\n","import { Injectable, Scopes, ControllerProtocol } from '@visiba-cortex/instantiation';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { BookingScreen, ViewBookingAnalyticActions, ViewBookingController } from '../view_booking.controller';\nimport { BookingBasketService } from '../booking_basket.service';\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class ScreenRfvController implements ControllerProtocol {\n\tconstructor(\n\t\tprivate readonly viewBookingController: ViewBookingController,\n\t\tprivate readonly analyticService: AnalyticService,\n\t\tprivate readonly bookingBasketService: BookingBasketService,\n\t) {}\n\n\tasync whenMount() {\n\t\tthis.analyticService.trackPageView({\n\t\t\tcustomTitle: 'Booking: Reason for visit',\n\t\t});\n\n\t\tthis.bookingBasketService.unlockTimeSlot();\n\n\t\tif (!this.allowedToBeHere()) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.NotAllowedToBeHere, 'Reason for visit');\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.WhoIsRespondant, { replace: true });\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst reasonForVisits = this.viewBookingController.getFilteredReasonForVisits();\n\n\t\t// Redirect to new screen if there are no reason for visits\n\t\tif (reasonForVisits.length === 0) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.NoReasonForVisits);\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Location, { replace: true });\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Auto select reason for visit if there is only one, then redirect to new screen\n\t\tif (reasonForVisits.length === 1) {\n\t\t\tconst reasonForVisit = reasonForVisits[0].Id;\n\t\t\tthis.analyticService.trackEvent(\n\t\t\t\tAnalyticCategories.Booking,\n\t\t\t\tViewBookingAnalyticActions.AutoSetReasonForVisit,\n\t\t\t\t`${reasonForVisit}`,\n\t\t\t);\n\t\t\tthis.selectReasonForVisit(reasonForVisit, false);\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Location, { replace: true });\n\n\t\t\treturn;\n\t\t}\n\t}\n\n\tpublic async selectReasonForVisit(reasonForVisitId: number, redirect = true) {\n\t\tthis.analyticService.trackEvent(\n\t\t\tAnalyticCategories.Booking,\n\t\t\tViewBookingAnalyticActions.SelectReasonForVisit,\n\t\t\t`${reasonForVisitId}`,\n\t\t);\n\n\t\tthis.bookingBasketService.set({\n\t\t\treasonForVisit: reasonForVisitId,\n\t\t});\n\n\t\tif (redirect) {\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Location);\n\t\t}\n\t}\n\n\tprivate allowedToBeHere() {\n\t\t// If we don't have flow data, we can't be here.\n\t\tconst flowData = this.viewBookingController.flowData.peek().value;\n\t\tif (!flowData) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we don't have a selected respondent type, we can't be here.\n\t\tif (this.bookingBasketService.get().respondantType == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n}\n","import { Flex, Spacer } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { TopBar } from '@component/top_bar.component';\nimport { useResolveController, withNewContainer } from '@visiba-cortex/instantiation';\nimport { Async } from '@component/async.component';\nimport { ActionCard } from '@component/action_card.component';\nimport { Title } from '@component/title.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { ScreenRfvController } from './screen_rfv.controller';\nimport { ViewBookingAnalyticActions, ViewBookingController } from '../view_booking.controller';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\n\nexport const ScreenRfv = withNewContainer(function ScreenRfv() {\n\tconst viewBookingController = useResolveController(ViewBookingController);\n\tconst controller = useResolveController(ScreenRfvController);\n\tconst analytic = useAnalyticContext();\n\n\tfunction handleSelectReasonForVisit(reasonForVisitId: number) {\n\t\treturn () => {\n\t\t\tanalytic.trackEvent(ViewBookingAnalyticActions.SelectReasonForVisit, `${reasonForVisitId}`);\n\t\t\tcontroller.selectReasonForVisit(reasonForVisitId);\n\t\t};\n\t}\n\n\treturn (\n\t\t<Flex gap={tokens.spacing.x1_5}>\n\t\t\t<TopBar.Content goBack />\n\n\t\t\t<Title\n\t\t\t\ttitle={withTranslation('View.Booking.ScreenRfv.Title')}\n\t\t\t\ttitleSize='small'\n\t\t\t\tdescription={withTranslation('View.Booking.ScreenRfv.Description')}\n\t\t\t/>\n\n\t\t\t<Spacer vertical={tokens.spacing.x0_5} />\n\n\t\t\t<Async derive={viewBookingController.flowData}>\n\t\t\t\t{() => (\n\t\t\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t\t\t{viewBookingController.getFilteredReasonForVisits().map((reasonForVisit) => (\n\t\t\t\t\t\t\t<ActionCard.Root key={reasonForVisit.Id} onClick={handleSelectReasonForVisit(reasonForVisit.Id)}>\n\t\t\t\t\t\t\t\t<ActionCard.Title>{reasonForVisit.Name}</ActionCard.Title>\n\t\t\t\t\t\t\t</ActionCard.Root>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</Flex>\n\t\t\t\t)}\n\t\t\t</Async>\n\t\t</Flex>\n\t);\n});\n","import { Injectable, Scopes, ControllerProtocol } from '@visiba-cortex/instantiation';\nimport { signal } from '@preact/signals-react';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { BookingScreen, ViewBookingAnalyticActions, ViewBookingController } from '../view_booking.controller';\nimport type { ClientPhysicalLocationApiModel } from '@api_patient/generated/clientv2/models/client-physical-location-api-model';\nimport { TimeSlotApiService } from '@api_patient/timeslot_api.service';\nimport { BookingBasketService } from '../booking_basket.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { ClientTimeslotApiModel } from '@api_patient/generated/clientv2/models';\nimport { AsyncSignalValue } from '@component/async.component';\nimport { DateService } from '@application/time/date.service';\nimport type { Dayjs } from 'dayjs';\nimport { I18nAndL10n } from '@application/i18n/mod';\n\ntype LocationType = 'digital' | 'physical';\n\nexport interface Location {\n\tid: number;\n\ttype: LocationType;\n\tname: string;\n\tmeta: string;\n\tnextAvailableTime: Dayjs | null;\n}\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class ScreenLocationController implements ControllerProtocol {\n\tpublic screenState = signal<'ready' | 'not-ready' | 'busy'>('not-ready');\n\tpublic locations = signal<AsyncSignalValue<Location[]>>({\n\t\tflowState: 'pending',\n\t\tvalue: null,\n\t});\n\tpublic locationAvailability: ClientTimeslotApiModel[] = [];\n\n\tconstructor(\n\t\tprivate readonly viewBookingController: ViewBookingController,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly timeSlotApiService: TimeSlotApiService,\n\t\tprivate readonly bookingBasketService: BookingBasketService,\n\t\tprivate readonly analyticService: AnalyticService,\n\t\tprivate readonly dateService: DateService,\n\t) {}\n\n\tasync whenMount() {\n\t\tthis.analyticService.trackPageView({\n\t\t\tcustomTitle: 'Booking: Location',\n\t\t});\n\n\t\tthis.bookingBasketService.unlockTimeSlot();\n\n\t\tif (!this.allowedToBeHere()) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.NotAllowedToBeHere, 'Location');\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.ReasonForVisit, { replace: true });\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst flowSettings = this.viewBookingController.getFlowSettings();\n\n\t\tif (flowSettings.predefinedLocationId) {\n\t\t\tthis.analyticService.trackEvent(\n\t\t\t\tAnalyticCategories.Booking,\n\t\t\t\tViewBookingAnalyticActions.AutoSetLocation,\n\t\t\t\t`${flowSettings.predefinedLocationId}`,\n\t\t\t);\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.TimeSlot, {\n\t\t\t\treplace: true,\n\t\t\t\tlocationType: 'physical',\n\t\t\t\tlocationId: flowSettings.predefinedLocationId,\n\t\t\t});\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (flowSettings.predefinedLocationType === 'digital') {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.AutoSetLocation, 'Digital');\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.TimeSlot, { replace: true, locationType: 'digital' });\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst fromDate = flowSettings.fromDate ?? this.dateService.newDate();\n\n\t\t// Check for available time slots one year ahead\n\t\tconst availabilityResult = await this.timeSlotApiService.availableTimeSlots(this.universalConfig.selectedUnitId, {\n\t\t\tconditionId: this.bookingBasketService.get().reasonForVisit ?? undefined,\n\t\t\tfromDate: fromDate.format('YYYY-MM-DD'),\n\t\t\ttoDate: fromDate.add(1, 'year').format('YYYY-MM-DD'),\n\t\t\tfilterableUnitId: flowSettings.predefinedFilterUnitId ?? undefined,\n\t\t\tresourceId: flowSettings.predefinedFilterResourceId ?? undefined,\n\t\t\tspecialityId: flowSettings.predefinedFilterSpecialityId ?? undefined,\n\t\t});\n\n\t\tif (availabilityResult.err) {\n\t\t\tthis.analyticService.trackEvent(\n\t\t\t\tAnalyticCategories.Booking,\n\t\t\t\tViewBookingAnalyticActions.ErrorFetchingAvailability,\n\t\t\t\tavailabilityResult.err.message,\n\t\t\t);\n\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Error);\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst locations: Location[] = [];\n\n\t\tif (availabilityResult.ok.data.Digital.FirstAvailableUpcomingTime && flowSettings.predefinedLocationType !== 'physical') {\n\t\t\tlocations.push({\n\t\t\t\tid: -1,\n\t\t\t\ttype: 'digital',\n\t\t\t\tname: I18nAndL10n.translate('View.Booking.ScreenLocation.Digital.Title'),\n\t\t\t\tmeta: I18nAndL10n.translate('View.Booking.ScreenLocation.Digital.Description'),\n\t\t\t\tnextAvailableTime: this.dateService.newDate(availabilityResult.ok.data.Digital.FirstAvailableUpcomingTime),\n\t\t\t});\n\t\t}\n\n\t\tthis.viewBookingController.flowData.peek().value?.physicalLocations.map((location) => {\n\t\t\tconst firstAvailableUpcomingTime = availabilityResult.ok.data.PhysicalLocations[location.Id]?.FirstAvailableUpcomingTime;\n\n\t\t\tif (firstAvailableUpcomingTime) {\n\t\t\t\tlocations.push({\n\t\t\t\t\tid: location.Id,\n\t\t\t\t\ttype: 'physical',\n\t\t\t\t\tname: location.Name ?? '',\n\t\t\t\t\tmeta: `${location.Address}, ${location.PostalCode} ${location.City}`,\n\t\t\t\t\tnextAvailableTime: this.dateService.newDate(firstAvailableUpcomingTime),\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\tif (\n\t\t\tlocations.find((location) => location.type === 'digital') &&\n\t\t\tlocations.find((location) => location.type === 'physical') == null\n\t\t) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.OnlyDigital);\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.AutoSetLocation, 'Digital');\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.TimeSlot, { replace: true, locationType: 'digital' });\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.locations.value = {\n\t\t\tflowState: 'accessible',\n\t\t\tvalue: locations,\n\t\t};\n\t}\n\n\tpublic getLocation(locationId: number): ClientPhysicalLocationApiModel | null {\n\t\treturn this.viewBookingController.flowData.peek().value?.physicalLocations.find((location) => location.Id === locationId) ?? null;\n\t}\n\n\tpublic selectLocation(location: Location) {\n\t\tthis.bookingBasketService.set({\n\t\t\tcurrentDate: null,\n\t\t});\n\n\t\tif (location.type === 'digital') {\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.TimeSlot, { locationType: 'digital' });\n\t\t} else {\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.TimeSlot, { locationType: 'physical', locationId: location.id });\n\t\t}\n\t}\n\n\tprivate allowedToBeHere() {\n\t\t// If we don't have flow data, we can't be here.\n\t\tconst flowData = this.viewBookingController.flowData.peek().value;\n\t\tif (!flowData) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we don't have a selected respondent type, we can't be here.\n\t\tif (this.bookingBasketService.get().respondantType == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we have reason for visits, we need to have a selected reason for visit.\n\t\tif (\n\t\t\tflowData.useReasonForVisits &&\n\t\t\tthis.viewBookingController.getFilteredReasonForVisits().length > 0 &&\n\t\t\t!this.viewBookingController.getSelectedReasonForVisit()\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n}\n","import styled from 'styled-components';\nimport { Flex, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { PropsWithChildren } from 'react';\nimport type { FlexibleRecentVisitsModel } from '../models/flexible_recent_visits';\nimport { withTranslation } from '@application/i18n/with_translation';\n\ninterface Props {\n\tcomponent: FlexibleRecentVisitsModel;\n}\n\n// const elements = {\n// \tcontainer: styled.div`\n// \t\tmargin: ${rem(8)} 0;\n// \t\tdisplay: flex;\n// \t\tflex-direction: column;\n// \t`,\n// \tfixedSizeContainer: styled.div`\n// \t\tmin-height: ${rem(136)};\n// \t`,\n// \tillustrative: styled.div`\n// \t\tdisplay: flex;\n// \t\tjustify-content: center;\n// \t\talign-items: center;\n// \t\topacity: 0.3;\n// \t\tmargin: ${rem(8)} 0;\n// \t\tpadding: 0 25px;\n// \t`,\n// \tbutton: styled.div`\n// \t\tdisplay: flex;\n// \t\talign-items: center;\n// \t\twidth: 100%;\n// \t\tbackground: ${theme.primary};\n// \t\tborder-radius: ${rem(10)};\n// \t\tmin-height: ${rem(64)};\n// \t\tpadding-top: ${tokens.spacing.x2};\n// \t\tpadding-bottom: ${tokens.spacing.x2};\n// \t\tcolor: #fff;\n// \t`,\n// \ticon: styled.div`\n// \t\tmargin: 0 ${rem(20)};\n// \t\twidth: ${rem(24)};\n// \t\theight: ${rem(24)};\n// \t\tdisplay: flex;\n// \t\tjustify-content: center;\n// \t\talign-items: center;\n// \t\tfont-size: ${rem(24)};\n// \t\tcolor: #fff;\n// \t\tflex-shrink: 0;\n// \t`,\n// };\n\n// interface InnerProps {\n// \tcontroller: Controller;\n// }\n\n// function Inner({ controller }: InnerProps): JSX.Element {\n// \tconst presentation = usePresentation(controller.presentation);\n\n// \tconst items = presentation.items.map((item) => <FlexibleRecentVisitsButtonIcon key={item.id} component={item} />);\n\n// \treturn (\n// \t\t<VStack spacing={8}>\n// \t\t\t{items.length > 0 ? (\n// \t\t\t\titems\n// \t\t\t) : (\n// \t\t\t\t<elements.illustrative>\n// \t\t\t\t\t<Text>{withTranslation('PW.Component.Flexible.RecentVisits.Empty')}</Text>\n// \t\t\t\t</elements.illustrative>\n// \t\t\t)}\n// \t\t</VStack>\n// \t);\n// }\n\nexport function FlexibleRecentVisits({ component }: Props): JSX.Element {\n\t// const controller = useService(Controller);\n\t// const presentation = usePresentation(controller.presentationAuthState);\n\n\t// useEffect(() => {\n\t// \treturn () => {\n\t// \t\tcontroller.teardown();\n\t// \t};\n\t// }, [controller]);\n\n\t// return (\n\t// \t<Fragment>\n\t// \t\t{presentation.shouldRender ? (\n\t// \t\t\t<elements.container data-testid='FlexibleRecentVisits'>\n\t// \t\t\t\t<Text font={FONT_VARIANT.SMALL_BODY}>{component.title}</Text>\n\t// \t\t\t\t<Spacer height={rem(4)} />\n\n\t// \t\t\t\t<elements.fixedSizeContainer>\n\t// \t\t\t\t\t<Suspense\n\t// \t\t\t\t\t\tfallback={\n\t// \t\t\t\t\t\t\t<VStack spacing={8}>\n\t// \t\t\t\t\t\t\t\t<Shimmer width={300} height={64} cornerRadius={8} />\n\t// \t\t\t\t\t\t\t\t<Shimmer width={300} height={64} cornerRadius={8} opacity={0.6} />\n\t// \t\t\t\t\t\t\t</VStack>\n\t// \t\t\t\t\t\t}\n\t// \t\t\t\t\t>\n\t// \t\t\t\t\t\t<Inner controller={controller} />\n\t// \t\t\t\t\t</Suspense>\n\t// \t\t\t\t</elements.fixedSizeContainer>\n\t// \t\t\t</elements.container>\n\t// \t\t) : null}\n\t// \t</Fragment>\n\t// );\n\n\treturn (\n\t\t<Flex\n\t\t\tstyle={{\n\t\t\t\tmargin: `${tokens.size.x3} 0 ${tokens.size.x3}`,\n\t\t\t}}\n\t\t\tgap={tokens.size.x1}\n\t\t>\n\t\t\t<Text variant='labelLargeSemiBold'>{component.title}</Text>\n\n\t\t\t<EmptyState>{withTranslation('PW.Component.Flexible.RecentVisits.Empty')}</EmptyState>\n\t\t</Flex>\n\t);\n}\n\n// interface FlexibleRecentVisitsButtonIconProps {\n// \tcomponent: FlexibleButtonIconModel;\n// \t__TEMP__overrideNavigation?: (url: string) => void;\n// }\n\n// function FlexibleRecentVisitsButtonIcon({\n// \tcomponent,\n// \t__TEMP__overrideNavigation,\n// \t...rest\n// }: FlexibleRecentVisitsButtonIconProps): JSX.Element {\n// \treturn (\n// \t\t<Routeable\n// \t\t\turl={component.url}\n// \t\t\trequiresAuthentication={component.requiresAuthentication}\n// \t\t\topenWith={component.openUrlWith}\n// \t\t\t{...rest}\n// \t\t>\n// \t\t\t<elements.button data-testid='FlexibleButtonIcon'>\n// \t\t\t\t<elements.icon>\n// \t\t\t\t\t{component.icon?.type == 'local' ? (\n// \t\t\t\t\t\t<Icon type={component.icon.origin as IconType} />\n// \t\t\t\t\t) : component.icon?.type == 'svgUrl' ? (\n// \t\t\t\t\t\t<ExternalSvg imgSrc={component.icon.origin} size={24} />\n// \t\t\t\t\t) : component.icon?.type == 'pngUrl' ? (\n// \t\t\t\t\t\t<img src={component.icon.origin} height={24} alt='' />\n// \t\t\t\t\t) : null}\n// \t\t\t\t</elements.icon>\n\n// \t\t\t\t<VStack fluid={false}>\n// \t\t\t\t\t<Text font={FONT_VARIANT.LARGE_BODY}>{component.title}</Text>\n// \t\t\t\t\t{component.subtitle ? <Text font={FONT_VARIANT.BODY}>{component.subtitle}</Text> : null}\n// \t\t\t\t</VStack>\n// \t\t\t</elements.button>\n// \t\t</Routeable>\n// \t);\n// }\n\n// interface Presentation {\n// \titems: FlexibleButtonIconModel[];\n// }\n\n// @Scoped()\n// class Controller {\n// \tpublic readonly presentationAuthState = Presentation.create({\n// \t\tshouldRender: true,\n// \t});\n// \tpublic readonly presentation = Presentation.createConcurrent<Presentation>();\n// \tprivate authStateDisposer: Disposer | null = null;\n\n// \tconstructor(\n// \t\tprivate readonly recentReceptionsApiService: RecentReceptionsApiService,\n// \t\tprivate readonly unitService: UnitService,\n// \t\tprivate readonly authService: AuthService,\n// \t) {\n// \t\tthis.load();\n\n// \t\t// this.authStateDisposer = this.authService.state.subscribe(() => {\n// \t\t// \tthis.load();\n// \t\t// });\n// \t}\n\n// \tpublic teardown(): void {\n// \t\tif (this.authStateDisposer) {\n// \t\t\tthis.authStateDisposer();\n// \t\t\tthis.authStateDisposer = null;\n// \t\t}\n// \t}\n\n// \tprivate load(): void {\n// \t\tif (this.authService.isAuthenticated()) {\n// \t\t\tthis.presentation\n// \t\t\t\t.suspend(this.recentReceptionsApiService.getRecentlyVisited(2), this.parseBackendData.bind(this))\n// \t\t\t\t.gracefulDegradation(() => {\n// \t\t\t\t\t// TODO: This is not typed as it should be\n// \t\t\t\t\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// \t\t\t\t\t// @ts-ignore\n// \t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n// \t\t\t\t\treturn Promise.resolve<any>({\n// \t\t\t\t\t\tdata: [].filter(Boolean),\n// \t\t\t\t\t});\n// \t\t\t\t});\n// \t\t\tthis.presentationAuthState.write({ shouldRender: true });\n\n// \t\t\treturn;\n// \t\t}\n\n// \t\tthis.presentationAuthState.write({ shouldRender: false });\n// \t}\n\n// \tprivate parseBackendData({ data }: VisibaEnvelope<ReceptionVisitInput[]>): Presentation {\n// \t\treturn {\n// \t\t\titems: data\n// \t\t\t\t.map(({ ReceptionId }) => {\n// \t\t\t\t\tconst units = Array.from(this.unitService.units.values());\n// \t\t\t\t\tconst unit = units.find(({ receptionId }) => receptionId === ReceptionId);\n\n// \t\t\t\t\tif (unit == null) return null;\n\n// \t\t\t\t\treturn new FlexibleButtonIconModel({\n// \t\t\t\t\t\tid: ReceptionId,\n// \t\t\t\t\t\torder: -1,\n// \t\t\t\t\t\ttitle: unit.name,\n// \t\t\t\t\t\tsubtitle: '',\n// \t\t\t\t\t\turl: getAbsoluteRoute(unit.route),\n// \t\t\t\t\t\topenUrlWith: OpenUrlWithKind.SameTab,\n// \t\t\t\t\t\thorizontalAlignment: HorizontalAlignment.End,\n// \t\t\t\t\t\ticon: {\n// \t\t\t\t\t\t\torigin: 'home2',\n// \t\t\t\t\t\t\ttype: 'local',\n// \t\t\t\t\t\t},\n// \t\t\t\t\t\thasBrandedNavbar: false,\n// \t\t\t\t\t\topenAnotherApp: false,\n// \t\t\t\t\t\trequiresAuthentication: false,\n// \t\t\t\t\t});\n// \t\t\t\t})\n// \t\t\t\t.filter(Boolean) as FlexibleButtonIconModel[],\n// \t\t};\n// \t}\n// }\n\nconst elements = {\n\tcontainer: styled.div`\n\t\twidth: 100%;\n\t\tpadding: ${tokens.spacing.x3} ${tokens.spacing.x2};\n\t\tcolor: ${tokens.color.content.muted};\n\t\tborder: 1px dashed ${tokens.color.border.default};\n\t\tborder-radius: 12px;\n\t\ttext-align: center;\n\t`,\n};\n\nexport function EmptyState(props: PropsWithChildren): JSX.Element {\n\treturn (\n\t\t<elements.container>\n\t\t\t<Text variant='labelRegular'>{props.children}</Text>\n\t\t</elements.container>\n\t);\n}\n","export function capitalizeFirstLetter(string: string) {\n\treturn string.charAt(0).toUpperCase() + string.slice(1);\n}\n","import { BadgeText, Flex, Icon, Spacer } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { useResolve, useResolveController, withNewContainer } from '@visiba-cortex/instantiation';\nimport { Async } from '@component/async.component';\nimport { Title } from '@component/title.component';\nimport { Location, ScreenLocationController } from './screen_location.controller';\nimport { ActionCard } from '@component/action_card.component';\nimport { Dayjs } from 'dayjs';\nimport { DateService } from '@application/time/date.service';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { EmptyState } from '@application/flexible_component/flexible_identifier/flexible_identifier_flexible_recent_visits.component';\nimport { Shimmer } from '@component/new_shimmer.component';\nimport { capitalizeFirstLetter } from '@module/capitalize_first_letter';\nimport { TopBar } from '@component/top_bar.component';\nimport { ViewBookingAnalyticActions } from '../view_booking.controller';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\n\nexport const ScreenLocation = withNewContainer(function ScreenLocation() {\n\tconst controller = useResolveController(ScreenLocationController);\n\tconst analytic = useAnalyticContext();\n\tconst dateService = useResolve(DateService);\n\n\tfunction formatNextAvailableTime(date: Dayjs): string {\n\t\tlet dateFormat = '';\n\t\tconst timeFormat = date.format('HH:mm');\n\n\t\tif (dateService.isToday(date)) {\n\t\t\tdateFormat = withTranslation('Common.Word.Today');\n\t\t} else if (dateService.isTomorrow(date)) {\n\t\t\tdateFormat = withTranslation('Common.Word.Tomorrow');\n\t\t} else if (dateService.isThisYear(date)) {\n\t\t\tdateFormat = date.format('dddd D MMMM');\n\t\t} else {\n\t\t\tdateFormat = date.format('LL');\n\t\t}\n\n\t\treturn withTranslation('View.Booking.ScreenLocation.NextAvailableTime', {\n\t\t\tdate: capitalizeFirstLetter(dateFormat),\n\t\t\ttime: timeFormat,\n\t\t});\n\t}\n\n\tfunction handleLocation(location: Location) {\n\t\treturn () => {\n\t\t\tanalytic.trackEvent(ViewBookingAnalyticActions.SelectLocation, `${location.id}`);\n\t\t\tcontroller.selectLocation(location);\n\t\t};\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content goBack />\n\t\t\t<Title\n\t\t\t\ttitle={withTranslation('View.Booking.ScreenLocation.Title')}\n\t\t\t\ttitleSize='small'\n\t\t\t\tdescription={withTranslation('View.Booking.ScreenLocation.Description')}\n\t\t\t/>\n\n\t\t\t<Spacer vertical={tokens.spacing.x2_5} />\n\n\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t<Async derive={controller.locations} fallback={<Skeleton />} catch='Blä nu giock det fel...'>\n\t\t\t\t\t{(locations) => (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t{locations.length ? (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t{locations\n\t\t\t\t\t\t\t\t\t\t.filter((location) => location.nextAvailableTime)\n\t\t\t\t\t\t\t\t\t\t.map((location) => (\n\t\t\t\t\t\t\t\t\t\t\t<ActionCard.Root\n\t\t\t\t\t\t\t\t\t\t\t\tkey={location.id}\n\t\t\t\t\t\t\t\t\t\t\t\ticon={<Icon type={location.type === 'digital' ? 'video' : 'intoBuilding'} size='large' />}\n\t\t\t\t\t\t\t\t\t\t\t\ticonAlign='center'\n\t\t\t\t\t\t\t\t\t\t\t\tonClick={handleLocation(location)}\n\t\t\t\t\t\t\t\t\t\t\t\tvariant='slim'\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<ActionCard.Content>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ActionCard.Title>{location.name}</ActionCard.Title>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ActionCard.Meta>{location.meta}</ActionCard.Meta>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{location.nextAvailableTime ? (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<BadgeText variant='brandLight'>{formatNextAvailableTime(location.nextAvailableTime)}</BadgeText>\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t\t\t\t</ActionCard.Content>\n\t\t\t\t\t\t\t\t\t\t\t</ActionCard.Root>\n\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<EmptyState>{withTranslation('View.Booking.ScreenLocation.NoAvailableTimes')}</EmptyState>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</>\n\t\t\t\t\t)}\n\t\t\t\t</Async>\n\t\t\t</Flex>\n\t\t</>\n\t);\n});\n\nfunction Skeleton() {\n\treturn (\n\t\t<>\n\t\t\t<Shimmer height={80} width='100%' />\n\t\t\t<Shimmer height={80} width='100%' />\n\t\t\t<Shimmer height={80} width='100%' />\n\t\t</>\n\t);\n}\n","/* This file is auto-generated. Do not edit directly. */\n/* eslint-disable */\nexport enum LocalityType {\n All = 'All',\n Digital = 'Digital',\n Physical = 'Physical'\n}\n\n","import { Injectable, Scopes, ControllerProtocol } from '@visiba-cortex/instantiation';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { BookingScreen, ViewBookingAnalyticActions, ViewBookingController } from '../view_booking.controller';\nimport { BookingBasketService } from '../booking_basket.service';\nimport { signal } from '@preact/signals-react';\nimport { TimeSlotApiService } from '@api_patient/timeslot_api.service';\nimport { LocalityType } from '@api_patient/generated/clientv2/models/locality-type';\nimport type {\n\tClientPhysicalLocationApiModel,\n\tClientResourceModel,\n\tClientTimeslotApiModel,\n\tCurrencyDisplay,\n\tSearchCapabilitiesApiModel,\n} from '@api_patient/generated/clientv2/models';\nimport type { AsyncSignalValue } from '@component/async.component';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { DateService } from '@application/time/date.service';\nimport { Dayjs } from 'dayjs';\n\ninterface SelectedFilters {\n\tresourceId: number | null;\n\tspecialityId: number | null;\n\tunitId: number | null;\n}\n\ninterface Filters {\n\tresources: SearchCapabilitiesApiModel['Resources'];\n\tspecialities: SearchCapabilitiesApiModel['Specialities'];\n\tunits: SearchCapabilitiesApiModel['FilterableUnits'];\n}\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class ScreenTimeSlotController implements ControllerProtocol {\n\tpublic location = signal<Nullable<ClientPhysicalLocationApiModel>>(null);\n\tpublic currentDate = signal<Nullable<Dayjs>>(null);\n\tpublic availability = signal<{ dates: Map<string, number>; next: Nullable<Dayjs> }>({ dates: new Map(), next: null });\n\tpublic nextAvailableDate = signal<Nullable<Dayjs>>(null);\n\tpublic timeSlots = signal<AsyncSignalValue<ClientTimeslotApiModel[]>>({\n\t\tvalue: null,\n\t\tflowState: 'pending',\n\t});\n\tpublic timeSlotDetails = signal<AsyncSignalValue<TimeSlotDetails>>({\n\t\tvalue: null,\n\t\tflowState: 'idle',\n\t});\n\tpublic filters = signal<AsyncSignalValue<Filters>>({\n\t\tvalue: null,\n\t\tflowState: 'idle',\n\t});\n\tpublic selectedFilters = signal<SelectedFilters>({ resourceId: null, specialityId: null, unitId: null });\n\n\tpublic showUnavailableTimeSlotDialog = signal<boolean>(false);\n\tpublic localityType: LocalityType = LocalityType.Digital;\n\n\tconstructor(\n\t\tprivate readonly viewBookingController: ViewBookingController,\n\t\tprivate readonly analyticService: AnalyticService,\n\t\tprivate readonly bookingBasketService: BookingBasketService,\n\t\tprivate readonly timeSlotApiService: TimeSlotApiService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly dateService: DateService,\n\t) {}\n\n\tasync whenMount() {\n\t\tthis.analyticService.trackPageView({\n\t\t\tcustomTitle: 'Booking: Time slot',\n\t\t});\n\n\t\tif (!this.allowedToBeHere()) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.NotAllowedToBeHere, 'Time slot');\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Location, { replace: true });\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst { timeSlotFilterResourceId, timeSlotFilterSpecialityId, timeSlotFilterUnitId } = this.bookingBasketService.get();\n\t\tconst flowSettings = this.viewBookingController.getFlowSettings();\n\t\tthis.selectedFilters.value = {\n\t\t\tresourceId: flowSettings.predefinedFilterResourceId ?? timeSlotFilterResourceId,\n\t\t\tspecialityId: flowSettings.predefinedFilterSpecialityId ?? timeSlotFilterSpecialityId,\n\t\t\tunitId: flowSettings.predefinedFilterUnitId ?? timeSlotFilterUnitId,\n\t\t};\n\t}\n\n\tasync setup(localityType: LocalityType, locationId?: string) {\n\t\t// Setting location\n\t\tthis.localityType = localityType;\n\t\tthis.location.value =\n\t\t\tthis.viewBookingController.flowData.peek().value?.physicalLocations.find((location) => {\n\t\t\t\treturn location.Id.toString() == locationId;\n\t\t\t}) ?? null;\n\n\t\t// Fetch, populate and set filters\n\t\tthis.fetchFilters();\n\n\t\t// Set current date and check availability\n\t\tconst basketData = this.bookingBasketService.get();\n\t\tconst flowSettings = this.viewBookingController.getFlowSettings();\n\n\t\tconst date = basketData.currentDate ?? flowSettings.fromDate ?? undefined;\n\n\t\tthis.currentDate.value = date ?? this.dateService.newDate();\n\n\t\tconst availabilityResult = await this.getAvailability();\n\t\tif (availabilityResult.err) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.ErrorFetchingAvailability);\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Error);\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst availability = this.availability.peek();\n\n\t\tlet shouldFetchTimeSlots = false;\n\n\t\tif (date != null) {\n\t\t\t// If date is set and there is available time slots that day, we should fetch time slots.\n\t\t\tif (availability.dates.has(date.format('YYYY-MM-DD'))) {\n\t\t\t\tshouldFetchTimeSlots = true;\n\t\t\t}\n\n\t\t\t// If no date is set, try to figure out next available date to set.\n\t\t} else {\n\t\t\t// If there is no available time slot current week and there is time slots\n\t\t\t// in the future. Set current date to that date.\n\t\t\tif (availability.dates.size === 0 && availability.next != null) {\n\t\t\t\tawait this.setCurrentDate(availability.next);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// If there is available time slots this week, set current date to the nearest.\n\t\t\tif (availability.dates.size > 0) {\n\t\t\t\tconst firstAvailableDate = availability.dates.entries().next().value[0] ?? undefined;\n\t\t\t\tthis.currentDate.value = this.dateService.newDate(firstAvailableDate, 'YYYY-MM-DD');\n\n\t\t\t\tshouldFetchTimeSlots = true;\n\t\t\t}\n\t\t}\n\n\t\tif (shouldFetchTimeSlots) {\n\t\t\tconst timeSlotResult = await this.loadTimeSlots();\n\t\t\tif (timeSlotResult.err) {\n\t\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.ErrorFetchingTimeSlots);\n\t\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Error);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.timeSlots.value = {\n\t\t\t\tvalue: [],\n\t\t\t\tflowState: 'accessible',\n\t\t\t};\n\t\t}\n\n\t\tthis.setNextAvailableDate();\n\t}\n\n\tpublic async fetchFilters() {\n\t\tthis.filters.value = {\n\t\t\tvalue: null,\n\t\t\tflowState: 'pending',\n\t\t};\n\n\t\tconst capabilitiesResult = await this.timeSlotApiService.getSearchCapabilities(this.universalConfig.selectedUnitId);\n\t\tif (capabilitiesResult.err) {\n\t\t\tthis.filters.value = {\n\t\t\t\tvalue: null,\n\t\t\t\tflowState: 'error',\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst flowSettings = this.viewBookingController.getFlowSettings();\n\n\t\tthis.filters.value = {\n\t\t\tvalue: {\n\t\t\t\tresources: flowSettings.lockFilters\n\t\t\t\t\t? capabilitiesResult.ok.data.Resources?.filter((resource) => resource.Id === flowSettings.predefinedFilterResourceId) ?? null\n\t\t\t\t\t: capabilitiesResult.ok.data.Resources,\n\t\t\t\tspecialities: flowSettings.lockFilters\n\t\t\t\t\t? capabilitiesResult.ok.data.Specialities?.filter(\n\t\t\t\t\t\t\t(speciality) => speciality.Id === flowSettings.predefinedFilterSpecialityId,\n\t\t\t\t\t\t) ?? null\n\t\t\t\t\t: capabilitiesResult.ok.data.Specialities,\n\t\t\t\tunits: flowSettings.lockFilters\n\t\t\t\t\t? capabilitiesResult.ok.data.FilterableUnits?.filter((unit) => unit.Id === flowSettings.predefinedFilterUnitId) ?? null\n\t\t\t\t\t: capabilitiesResult.ok.data.FilterableUnits,\n\t\t\t},\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n\n\tpublic setFilter(filters: SelectedFilters) {\n\t\tthis.selectedFilters.value = filters;\n\t\tthis.bookingBasketService.set({\n\t\t\ttimeSlotFilterResourceId: filters.resourceId,\n\t\t\ttimeSlotFilterSpecialityId: filters.specialityId,\n\t\t\ttimeSlotFilterUnitId: filters.unitId,\n\t\t});\n\n\t\tthis.setCurrentDate(this.currentDate.peek() ?? this.dateService.newDate(), true);\n\t}\n\n\tpublic async setCurrentDate(date: Dayjs, forceUpdate = false) {\n\t\tconst currentDate = this.currentDate.peek();\n\n\t\tif (currentDate && date.isSame(currentDate, 'day') && !forceUpdate) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst isNewWeek = currentDate == null || !currentDate.isSame(date, 'week') || forceUpdate;\n\n\t\tthis.currentDate.value = date;\n\n\t\tif (isNewWeek) {\n\t\t\tconst availabilityResult = await this.getAvailability();\n\t\t\tif (availabilityResult.err) {\n\t\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.ErrorFetchingAvailability);\n\t\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Error);\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif (this.availability.peek().dates.has(date.format('YYYY-MM-DD'))) {\n\t\t\tconst timeslotResult = await this.loadTimeSlots();\n\t\t\tif (timeslotResult.err) {\n\t\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.ErrorFetchingTimeSlots);\n\t\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Error);\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\tthis.timeSlots.value = {\n\t\t\t\tvalue: [],\n\t\t\t\tflowState: 'accessible',\n\t\t\t};\n\t\t}\n\n\t\tthis.bookingBasketService.set({\n\t\t\tcurrentDate: date.format('YYYY-MM-DD'),\n\t\t});\n\n\t\tthis.setNextAvailableDate();\n\t}\n\n\tpublic async getAvailability() {\n\t\tconst basket = this.bookingBasketService.get();\n\n\t\tconst currentDate = this.currentDate.peek();\n\t\tif (!currentDate) {\n\t\t\treturn Err('No current date');\n\t\t}\n\n\t\tconst startDate = currentDate.startOf('week');\n\t\tconst endDate = startDate.endOf('week');\n\t\tconst selectedFilters = this.selectedFilters.peek();\n\n\t\tconst availabilityCountResult = await this.timeSlotApiService.availabilityCounts(this.universalConfig.selectedUnitId, {\n\t\t\tconditionId: basket.reasonForVisit ?? undefined,\n\t\t\tfromDate: startDate.format('YYYY-MM-DD'),\n\t\t\ttoDate: endDate.format('YYYY-MM-DD'),\n\t\t\tfromTime: '00:00:00',\n\t\t\ttoTime: '23:59:59',\n\t\t\tlocalityType: this.localityType,\n\t\t\tphysicalLocationId: this.location.peek()?.Id,\n\t\t\tresourceId: selectedFilters.resourceId ?? undefined,\n\t\t\tspecialityId: selectedFilters.specialityId ?? undefined,\n\t\t\tfilterableUnitId: selectedFilters.unitId ?? undefined,\n\t\t});\n\n\t\tif (availabilityCountResult.err) {\n\t\t\treturn Err(availabilityCountResult.err);\n\t\t}\n\n\t\tconst yesterday = this.dateService.newDate().subtract(1, 'day');\n\n\t\tconst dates = new Map<string, number>();\n\t\tavailabilityCountResult.ok.data.AvailableDates.filter((availability) => yesterday.isBefore(availability.Date, 'day')).map(\n\t\t\t(availability) => {\n\t\t\t\tdates.set(availability.Date, availability.Count);\n\t\t\t},\n\t\t);\n\n\t\tthis.availability.value = {\n\t\t\tdates: dates,\n\t\t\tnext: availabilityCountResult.ok.data.NextAvailableDate\n\t\t\t\t? this.dateService.newDate(availabilityCountResult.ok.data.NextAvailableDate, 'YYYY-MM-DD')\n\t\t\t\t: null,\n\t\t};\n\n\t\treturn Ok();\n\t}\n\n\tpublic setNextAvailableDate() {\n\t\tconst currentDate = this.currentDate.peek();\n\t\tif (!currentDate) {\n\t\t\treturn Err('No current date');\n\t\t}\n\n\t\tlet nextAvailableDate = undefined;\n\n\t\tfor (const [date, count] of this.availability.peek().dates) {\n\t\t\tif (this.dateService.newDate(date, 'YYYY-MM-DD').isAfter(currentDate, 'day') && count > 0) {\n\t\t\t\tnextAvailableDate = date;\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tthis.nextAvailableDate.value = nextAvailableDate\n\t\t\t? this.dateService.newDate(nextAvailableDate, 'YYYY-MM-DD')\n\t\t\t: this.availability.peek().next;\n\n\t\treturn Ok();\n\t}\n\n\tpublic async loadTimeSlots() {\n\t\tconst basket = this.bookingBasketService.get();\n\n\t\tconst currentDate = this.currentDate.peek();\n\t\tif (!currentDate) {\n\t\t\treturn Err('No current date');\n\t\t}\n\n\t\tthis.timeSlots.value = {\n\t\t\tvalue: null,\n\t\t\tflowState: 'pending',\n\t\t};\n\n\t\tconst selectedFilters = this.selectedFilters.peek();\n\n\t\tconst timeSlotsResult = await this.timeSlotApiService.getTimeSlots(this.universalConfig.selectedUnitId, {\n\t\t\tconditionId: basket.reasonForVisit ?? undefined,\n\t\t\tfromDate: currentDate.format('YYYY-MM-DD'),\n\t\t\ttoDate: currentDate.format('YYYY-MM-DD'),\n\t\t\tfromTime: '00:00:00',\n\t\t\ttoTime: '23:59:59',\n\t\t\tlocalityType: this.localityType,\n\t\t\tphysicalLocationId: this.location.peek()?.Id,\n\t\t\tresourceId: selectedFilters.resourceId ?? undefined,\n\t\t\tspecialityId: selectedFilters.specialityId ?? undefined,\n\t\t\tfilterableUnitId: selectedFilters.unitId ?? undefined,\n\t\t});\n\n\t\tif (timeSlotsResult.err) {\n\t\t\tthis.timeSlots.value = {\n\t\t\t\tvalue: null,\n\t\t\t\tflowState: 'error',\n\t\t\t};\n\n\t\t\treturn Err(timeSlotsResult.err);\n\t\t}\n\n\t\tthis.timeSlots.value = {\n\t\t\tvalue: timeSlotsResult.ok.data,\n\t\t\tflowState: 'accessible',\n\t\t};\n\n\t\treturn Ok();\n\t}\n\n\tpublic async previewTimeSlot(timeSlotId: string) {\n\t\tconst timeSlotResult = await this.getTimeSlot(timeSlotId);\n\n\t\tif (timeSlotResult.err) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.ErrorFetchingTimeSlotDetails);\n\n\t\t\treturn Err(timeSlotResult.err);\n\t\t}\n\n\t\tconst selectedTimeSlot = timeSlotResult.ok;\n\n\t\tconst lockResult = await this.bookingBasketService.lockTimeSlot(timeSlotId);\n\t\tif (lockResult.err) {\n\t\t\tthis.loadTimeSlots();\n\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.ErrorWhileLockingTimeSlot);\n\n\t\t\tthis.showUnavailableTimeSlotDialog.value = true;\n\t\t\tthis.clearSelectTimeSlot();\n\n\t\t\treturn Err(lockResult.err);\n\t\t}\n\n\t\tlet physicalLocation: ClientPhysicalLocationApiModel | null = null;\n\n\t\tif (selectedTimeSlot.PhysicalLocationId) {\n\t\t\tphysicalLocation =\n\t\t\t\tthis.viewBookingController.flowData\n\t\t\t\t\t.peek()\n\t\t\t\t\t.value?.physicalLocations.find((location) => location.Id === selectedTimeSlot.PhysicalLocationId) ?? null;\n\t\t}\n\n\t\tthis.timeSlotDetails.value = {\n\t\t\tflowState: 'accessible',\n\t\t\tvalue: {\n\t\t\t\tphysicalLocation,\n\t\t\t\trequiresPayment: selectedTimeSlot.RequiresPayment,\n\t\t\t\tduration: selectedTimeSlot.Duration,\n\t\t\t\tid: selectedTimeSlot.Id ?? 'NO_ID',\n\t\t\t\tdescription: selectedTimeSlot.Name,\n\t\t\t\tprice: selectedTimeSlot.Price,\n\t\t\t\tresource: selectedTimeSlot.Resource,\n\t\t\t\tstart: selectedTimeSlot.Start,\n\t\t\t\tunbookableAfter: selectedTimeSlot.UnbookableAfter,\n\t\t\t},\n\t\t};\n\n\t\treturn Ok();\n\t}\n\n\tpublic clearTimeSlotDetails() {\n\t\tthis.timeSlotDetails.value = {\n\t\t\tflowState: 'idle',\n\t\t\tvalue: null,\n\t\t};\n\n\t\tthis.clearSelectTimeSlot();\n\n\t\treturn this.bookingBasketService.unlockTimeSlot();\n\t}\n\n\tpublic clearSelectTimeSlot() {\n\t\tthis.bookingBasketService.set({\n\t\t\ttimeSlotId: null,\n\t\t});\n\t}\n\n\tpublic async selectTimeSlot(timeSlotId: string, redirect = true) {\n\t\tthis.bookingBasketService.set({\n\t\t\ttimeSlotId: timeSlotId,\n\t\t});\n\n\t\tif (redirect) {\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Forms);\n\t\t}\n\t}\n\n\tprivate async getTimeSlot(timeSlotId: string): AsyncResult<ClientTimeslotApiModel> {\n\t\tconst selectedTimeslot = this.timeSlots.peek().value?.find((timeSlot) => timeSlot.Id === timeSlotId);\n\n\t\tif (selectedTimeslot) return Ok(selectedTimeslot);\n\n\t\tconst timeSlotResult = await this.timeSlotApiService.getTimeSlot(this.universalConfig.selectedUnitId, timeSlotId);\n\n\t\tif (timeSlotResult.err) {\n\t\t\treturn Err(timeSlotResult.err);\n\t\t}\n\n\t\treturn Ok(timeSlotResult.ok.data);\n\t}\n\n\tprivate allowedToBeHere() {\n\t\t// If we don't have flow data, we can't be here.\n\t\tconst flowData = this.viewBookingController.flowData.peek().value;\n\t\tif (!flowData) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we don't have a selected respondent type, we can't be here.\n\t\tif (this.bookingBasketService.get().respondantType == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we have reason for visits, we need to have a selected reason for visit.\n\t\tif (\n\t\t\tflowData.useReasonForVisits &&\n\t\t\tthis.viewBookingController.getFilteredReasonForVisits().length > 0 &&\n\t\t\t!this.viewBookingController.getSelectedReasonForVisit()\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n}\n\nexport interface TimeSlotDetails {\n\tduration: number;\n\tid: string;\n\tdescription: string | null;\n\tprice: CurrencyDisplay | null;\n\trequiresPayment: boolean;\n\tresource: ClientResourceModel | null;\n\tstart: string;\n\tunbookableAfter: string;\n\tphysicalLocation: ClientPhysicalLocationApiModel | null;\n}\n","import { Injectable, Scopes, ControllerProtocol } from '@visiba-cortex/instantiation';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { BookingScreen, ViewBookingAnalyticActions, ViewBookingController } from '../view_booking.controller';\nimport { CommitResult, BookingBasket, BookingBasketService } from '../booking_basket.service';\nimport { signal } from '@preact/signals-react';\nimport { TimeSlotApiService } from '@api_patient/timeslot_api.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { AsyncSignalValue } from '@component/async.component';\nimport type { ClientTimeslotApiModel, ClientPhysicalLocationApiModel } from '@api_patient/generated/clientv2/models';\nimport { AppointmentApiService } from '@api_patient/appointment_api.service';\nimport { GeneralApiService } from '@api_patient/general_api.service';\nimport { CellulaFormSubmitData } from '@cellula/react';\nimport { FileManagerService } from '@feature/file_manager/mod';\nimport { isHttpError } from '@application/http_error';\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class ScreenConclusionController implements ControllerProtocol {\n\tpublic data = signal<AsyncSignalValue<Readonly<PresentationModel>>>({\n\t\tflowState: 'pending',\n\t\tvalue: null,\n\t});\n\tpublic timeSlot = signal<AsyncSignalValue<Readonly<ClientTimeslotApiModel>>>({\n\t\tflowState: 'pending',\n\t\tvalue: null,\n\t});\n\tpublic readonly termsOfServiceUrl = signal<string | null>(null);\n\tpublic showUnavailableTimeSlotDialog = signal<boolean>(false);\n\n\tprivate ticket: string | null = null;\n\tprivate basket: BookingBasket | null = null;\n\tconstructor(\n\t\tprivate readonly viewBookingController: ViewBookingController,\n\t\tprivate readonly analyticService: AnalyticService,\n\t\tprivate readonly bookingBasketService: BookingBasketService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly timeSlotApiService: TimeSlotApiService,\n\t\tprivate readonly appointmentApiService: AppointmentApiService,\n\t\tprivate readonly generalApiService: GeneralApiService,\n\t\tprivate readonly fileManagerService: FileManagerService,\n\t) {\n\t\tthis.basket = this.bookingBasketService.get();\n\t}\n\n\tasync whenMount() {\n\t\tthis.analyticService.trackPageView({\n\t\t\tcustomTitle: 'Booking: Conclusion',\n\t\t});\n\n\t\tif (!this.allowedToBeHere()) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.NotAllowedToBeHere, 'Conclusion');\n\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Forms);\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.fetchTimeSlot();\n\n\t\tconst policyDocumentsResult = await this.generalApiService.getPolicyDocuments(\n\t\t\tthis.universalConfig.alias,\n\t\t\tthis.universalConfig.selectedLanguageCode.peek(),\n\t\t);\n\t\tif (policyDocumentsResult.ok) {\n\t\t\tthis.termsOfServiceUrl.value = policyDocumentsResult.ok.data.TermsOfServiceUrl;\n\t\t}\n\t}\n\n\tpublic async submit(formData: CellulaFormSubmitData): AsyncResult<CommitResult> {\n\t\tconst flowSettings = this.viewBookingController.getFlowSettings();\n\t\tconst reason = flowSettings.predefinedDescriptionOfMatter ?? formData.reason ?? '';\n\n\t\tconst fileTickets = this.fileManagerService.peakUploadedIdentities();\n\n\t\tconst commitResult = await this.bookingBasketService.commit({\n\t\t\treason,\n\t\t\tfiles: fileTickets,\n\t\t\tredRobinSessionId: flowSettings.redRobinSessionId ?? undefined,\n\t\t});\n\t\tif (commitResult.err) {\n\t\t\tif (isHttpError<{ ErrorCode: string }>(commitResult.err) && commitResult.err.data?.ErrorCode === 'SlotNotAvailable') {\n\t\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.SelectedTimeSlotNotIsAvailable);\n\t\t\t\tthis.showUnavailableTimeSlotDialog.value = true;\n\n\t\t\t\treturn Err(new SlotNotAvailableError('Selected time slot is not available'));\n\t\t\t}\n\n\t\t\treturn Err(commitResult.err);\n\t\t}\n\n\t\tthis.ticket = commitResult.ok.ticket;\n\n\t\treturn Ok(commitResult.ok);\n\t}\n\n\tpublic async abortPayment() {\n\t\tif (!this.ticket) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst cancelResult = await this.appointmentApiService.cancel(this.ticket);\n\n\t\tif (cancelResult.err) {\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Error);\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.bookingBasketService.set({\n\t\t\ttimeSlotId: cancelResult.ok.data.NewTimeslot?.Id ?? null,\n\t\t});\n\t\tthis.basket = this.bookingBasketService.get();\n\n\t\tawait this.fetchTimeSlot();\n\t}\n\n\tprivate allowedToBeHere() {\n\t\t// If we don't have any user data, we can't be here.\n\t\tif (this.basket == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we don't have flow data, we can't be here.\n\t\tconst flowData = this.viewBookingController.flowData.value.value;\n\t\tif (!flowData) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we have reason for visits, we need to have a selected reason for visit.\n\t\tif (\n\t\t\tflowData.useReasonForVisits &&\n\t\t\tthis.viewBookingController.getFilteredReasonForVisits().length > 0 &&\n\t\t\t!this.viewBookingController.getSelectedReasonForVisit()\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we don't have a selected time slot, we can't be here.\n\t\tif (this.basket.timeSlotId == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprivate async fetchTimeSlot() {\n\t\tconst timeSlotResult = await this.timeSlotApiService.getTimeSlot(\n\t\t\tthis.universalConfig.selectedUnitId,\n\t\t\tthis.basket?.timeSlotId ?? '',\n\t\t);\n\t\tif (timeSlotResult.err) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.ErrorFetchingTimeSlot);\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Error);\n\n\t\t\treturn;\n\t\t}\n\n\t\tlet physicalLocation: ClientPhysicalLocationApiModel | null = null;\n\n\t\tif (timeSlotResult.ok.data.PhysicalLocationId) {\n\t\t\tphysicalLocation =\n\t\t\t\tthis.viewBookingController.flowData\n\t\t\t\t\t.peek()\n\t\t\t\t\t.value?.physicalLocations.find((location) => location.Id === timeSlotResult.ok.data.PhysicalLocationId) ?? null;\n\t\t}\n\n\t\tthis.data.value = {\n\t\t\tvalue: {\n\t\t\t\trequirePayment: timeSlotResult.ok.data.RequiresPayment,\n\t\t\t\ttimeSlot: timeSlotResult.ok.data,\n\t\t\t\tphysicalLocation,\n\t\t\t\treasonForVisit: this.viewBookingController.getSelectedReasonForVisit()?.Name ?? null,\n\t\t\t\trepresentativeNin: this.basket?.representativeNin ?? null,\n\t\t\t},\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n}\n\ninterface PresentationModel {\n\trequirePayment: boolean;\n\ttimeSlot: ClientTimeslotApiModel;\n\tphysicalLocation: ClientPhysicalLocationApiModel | null;\n\treasonForVisit: string | null;\n\trepresentativeNin: string | null;\n}\n\nexport class SlotNotAvailableError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'SlotNotAvailableError';\n\t\tObject.setPrototypeOf(this, SlotNotAvailableError.prototype);\n\t}\n}\n","import { Flex, Avatar, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { DataList } from './data_list.component';\nimport { withTranslation } from '@application/i18n/with_translation';\n\ninterface AvatarInfoProps {\n\tname?: string;\n\ttitle?: string;\n\tavatarSrc?: string;\n\talign?: 'left' | 'right';\n}\n\nexport function AvatarInfo({ name, title, avatarSrc, align = 'left' }: AvatarInfoProps) {\n\treturn (\n\t\t<Flex direction={align === 'right' ? 'row-reverse' : 'row'} gap={tokens.spacing.x1}>\n\t\t\t<Avatar name={name ?? ''} src={avatarSrc} />\n\t\t\t<DataList.Root variant='slim' align={align}>\n\t\t\t\t{name ? (\n\t\t\t\t\t<DataList.Item label={withTranslation('Component.AvatarInfo.Label.Name')} hideLabel>\n\t\t\t\t\t\t<Text variant='labelSemiBold' color={tokens.color.content.default}>\n\t\t\t\t\t\t\t{name}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t</DataList.Item>\n\t\t\t\t) : null}\n\t\t\t\t{title ? (\n\t\t\t\t\t<DataList.Item label={withTranslation('Component.AvatarInfo.Label.Title')} hideLabel>\n\t\t\t\t\t\t<Text variant='labelSmallRegular' color={tokens.color.content.muted}>\n\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t</DataList.Item>\n\t\t\t\t) : null}\n\t\t\t</DataList.Root>\n\t\t</Flex>\n\t);\n}\n","import {\n\tBadgeText,\n\tBox,\n\tCellulaFormSubmitData,\n\tDialogAlert,\n\tDivider,\n\tFlex,\n\tForm,\n\tInputTextArea,\n\tLabel,\n\tSheet,\n\tText,\n\tTextLink,\n} from '@cellula/react';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport { TopBar } from '@component/top_bar.component';\nimport { Title } from '@component/title.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { DataList } from '@component/data_list.component';\nimport { useResolve, useResolveController, withNewContainer } from '@visiba-cortex/instantiation';\nimport { ScreenConclusionController, SlotNotAvailableError } from './screen_conclusion.controller';\nimport { Async } from '@component/async.component';\nimport { ButtonArrange } from '@component/button_arrange.component';\nimport type { ClientPhysicalLocationApiModel, ClientResourceModel } from '@api_patient/generated/clientv2/models';\nimport { useEffect, useState } from 'react';\nimport { Payment } from '@feature/payment/payment.component';\nimport { BookingScreen, ViewBookingAnalyticActions, ViewBookingController } from '../view_booking.controller';\nimport { DateService } from '@application/time/date.service';\nimport { AvatarInfo } from '@component/avatar_info.component';\nimport { IframeSheet } from '@component/iframe_sheet.component';\nimport styled from 'styled-components';\nimport { FormCard } from '@feature/dynamic_form/form_card.component';\nimport { BookingBasketService, UnansweredFormsError } from '../booking_basket.service';\nimport { validateRequired } from '@application/validators';\nimport { FileUpload } from '@feature/file_manager/file_upload.component';\nimport { FileManagerServiceReadyState } from '@feature/file_manager/mod';\nimport { capitalizeFirstLetter } from '@module/capitalize_first_letter';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\n\nconst StyledTermsOfServiceSection = styled.div`\n\ttext-align: center;\n\tfont: ${tokens.text.label.smallRegular};\n\n\t${tokens.breakpointQuery.small} {\n\t\ttext-align: left;\n\t}\n`;\n\nconst REASON_MAX_LENGTH = 4000;\n\nexport const ScreenConclusion = withNewContainer(function ScreenConclusion() {\n\tconst controller = useResolveController(ScreenConclusionController);\n\tconst bookingBasketService = useResolve(BookingBasketService);\n\tconst viewBookingController = useResolveController(ViewBookingController);\n\tconst [payment, setPayment] = useState<{ paymentBillId: number; paymentAmount: string; ticket: string } | null>(null);\n\tconst [disableSubmit, setDisableSubmit] = useState<string | false>(false);\n\tconst analytic = useAnalyticContext();\n\n\tconst flowSettings = viewBookingController.flowSettings.value;\n\tif (flowSettings.flowState !== 'accessible') {\n\t\treturn null;\n\t}\n\n\tfunction handleFileManagerStateChange(state: FileManagerServiceReadyState) {\n\t\tanalytic.trackEvent('Changed \"attachments\"');\n\t\tsetDisableSubmit(\n\t\t\tstate === FileManagerServiceReadyState.NotReady\n\t\t\t\t? withTranslation('View.CreateNewMessage.ScreenConclusion.AttachedFilesNotReady')\n\t\t\t\t: false,\n\t\t);\n\t}\n\n\tasync function handleSubmit(data: CellulaFormSubmitData) {\n\t\tconst submitResult = await controller.submit({\n\t\t\t...data,\n\t\t});\n\n\t\tif (submitResult.err) {\n\t\t\tif (submitResult.err instanceof SlotNotAvailableError) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif (submitResult.err instanceof UnansweredFormsError) {\n\t\t\t\treturn Err(withTranslation('View.Booking.ScreenConclusion.FormValidationError'));\n\t\t\t}\n\n\t\t\treturn Err(withTranslation('View.Booking.ScreenConclusion.SubmitError'));\n\t\t}\n\n\t\tif (submitResult.ok.payment) {\n\t\t\tsetPayment({\n\t\t\t\tpaymentBillId: submitResult.ok.payment.billId,\n\t\t\t\tpaymentAmount: submitResult.ok.payment.amount,\n\t\t\t\tticket: submitResult.ok.ticket,\n\t\t\t});\n\t\t} else {\n\t\t\tviewBookingController.goToScreen(BookingScreen.Done, {\n\t\t\t\tticket: submitResult.ok.ticket,\n\t\t\t});\n\t\t}\n\n\t\treturn Ok();\n\t}\n\n\tfunction handleInvalidSubmit() {\n\t\tanalytic.trackEvent(ViewBookingAnalyticActions.FormIsInvalid);\n\t}\n\n\tasync function handlePaymentSuccess() {\n\t\tviewBookingController.goToScreen(BookingScreen.Done, {\n\t\t\tticket: payment?.ticket,\n\t\t});\n\n\t\treturn Ok();\n\t}\n\n\tfunction handlePaymentAbort() {\n\t\tsetPayment(null);\n\n\t\tcontroller.abortPayment();\n\t}\n\n\tfunction handleMessageChange() {\n\t\tanalytic.trackEvent('Changed \"message\"');\n\t}\n\n\tfunction handleSubmitClick(requirePayment: boolean) {\n\t\treturn () => {\n\t\t\tif (requirePayment) {\n\t\t\t\tanalytic.trackEvent('Clicked pay and book time slot');\n\t\t\t} else {\n\t\t\t\tanalytic.trackEvent('Clicked book time slot');\n\t\t\t}\n\t\t};\n\t}\n\n\tconst showReasonTextarea = !flowSettings.value.predefinedDescriptionOfMatter;\n\tconst showAttachFiles = flowSettings.value.attachFiles;\n\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content goBack />\n\n\t\t\t<Flex grow={1} gap={tokens.spacing.x2}>\n\t\t\t\t<Async derive={controller.data}>\n\t\t\t\t\t{(data) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t<Flex grow={1} gap={tokens.spacing.x2}>\n\t\t\t\t\t\t\t\t\t<Title title={withTranslation('View.Booking.ScreenConclusion.Title')} titleSize='small' />\n\n\t\t\t\t\t\t\t\t\t<Form.Root options={{}} onSubmit={handleSubmit} onInvalid={handleInvalidSubmit}>\n\t\t\t\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x3} grow={1}>\n\t\t\t\t\t\t\t\t\t\t\t{showReasonTextarea || showAttachFiles ? (\n\t\t\t\t\t\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x2}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{showReasonTextarea ? (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<InputTextArea\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tname='reason'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel={withTranslation('View.Booking.ScreenConclusion.Input.Label.Reason')}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thelperText={withTranslation('View.Booking.ScreenConclusion.Input.HelpText.Reason')}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tminHeight={120}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaxHeight={400}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tautoHeight\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcharacterCount={REASON_MAX_LENGTH}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonBlur={handleMessageChange}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\toptions={{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalidate: {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired: (v) =>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalidateRequired(v) ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twithTranslation('View.Booking.ScreenConclusion.ValidationError.Required.Reason'),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaxLength: {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: REASON_MAX_LENGTH,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: withTranslation('View.Booking.ScreenConclusion.ValidationError.MaxLength.Reason', {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaxLength: `${REASON_MAX_LENGTH}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t\t\t\t\t{showAttachFiles ? (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Flex gap={tokens.size.x1}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<fieldset style={{ display: 'contents' }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Label type='legend' optional>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{withTranslation('Form.Input.Label.AttachedFiles')}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<FileUpload.Root\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tidentityEndpointPath='client/v2/userfiles'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonStateChange={handleFileManagerStateChange}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<FileUpload.List />\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<FileUpload.DropZone>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<FileUpload.Button />\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</FileUpload.DropZone>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</FileUpload.Root>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t\t\t\t\t\t<TimeSlotInfo\n\t\t\t\t\t\t\t\t\t\t\t\ttitle={withTranslation('View.Booking.TimeSlotInfo.Title')}\n\t\t\t\t\t\t\t\t\t\t\t\ttimeSlot={{\n\t\t\t\t\t\t\t\t\t\t\t\t\tprice: data.timeSlot.Price?.Value ? data.timeSlot.Price?.Formatted : undefined,\n\t\t\t\t\t\t\t\t\t\t\t\t\trepresentativeNin: data.representativeNin ?? undefined,\n\t\t\t\t\t\t\t\t\t\t\t\t\treasonForVisit: data.reasonForVisit ?? undefined,\n\t\t\t\t\t\t\t\t\t\t\t\t\tduration: data.timeSlot.Duration,\n\t\t\t\t\t\t\t\t\t\t\t\t\tphysicalLocation: data.physicalLocation,\n\t\t\t\t\t\t\t\t\t\t\t\t\tresource: data.timeSlot.Resource,\n\t\t\t\t\t\t\t\t\t\t\t\t\tstart: data.timeSlot.Start,\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t\t\t\t\t{bookingBasketService.formManager.getForms().length > 0 ? (\n\t\t\t\t\t\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Text variant='labelSemiBold'>{withTranslation('Common.Label.AnsweredForms')}</Text>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{bookingBasketService.formManager.getForms().map((form) => (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<FormCard key={form.formId} formWorker={form} analyticAction='' onCompleted={false} />\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t\t\t\t\t\t<Flex grow='1' justify='flex-end' gap={tokens.spacing.x2}>\n\t\t\t\t\t\t\t\t\t\t\t\t<Form.Error />\n\t\t\t\t\t\t\t\t\t\t\t\t<StyledTermsOfServiceSection>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{withTranslation('View.CreateNewMessage.ScreenConclusion.Terms.Part1')}{' '}\n\t\t\t\t\t\t\t\t\t\t\t\t\t<IframeSheet\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc={controller.termsOfServiceUrl.value ?? ''}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttrigger={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<TextLink as='button' size='small'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{withTranslation('View.CreateNewMessage.ScreenConclusion.Terms.Link')}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</TextLink>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>{' '}\n\t\t\t\t\t\t\t\t\t\t\t\t\t{withTranslation('View.CreateNewMessage.ScreenConclusion.Terms.Part2')}\n\t\t\t\t\t\t\t\t\t\t\t\t</StyledTermsOfServiceSection>\n\t\t\t\t\t\t\t\t\t\t\t\t<ButtonArrange>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Form.SubmitButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled={!!disableSubmit}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabledText={disableSubmit || ''}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={handleSubmitClick(data.requirePayment)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{data.requirePayment\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? withTranslation('View.Booking.ScreenConclusion.ButtonWithPayment')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: withTranslation('View.Booking.ScreenConclusion.ButtonWithoutPayment')}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Form.SubmitButton>\n\t\t\t\t\t\t\t\t\t\t\t\t</ButtonArrange>\n\t\t\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t\t</Form.Root>\n\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t);\n\t\t\t\t\t}}\n\t\t\t\t</Async>\n\t\t\t</Flex>\n\t\t\t{payment ? (\n\t\t\t\t<PaymentSheet\n\t\t\t\t\tbillId={payment.paymentBillId}\n\t\t\t\t\tpaymentAmount={payment.paymentAmount}\n\t\t\t\t\tonSuccess={handlePaymentSuccess}\n\t\t\t\t\tonAbort={handlePaymentAbort}\n\t\t\t\t/>\n\t\t\t) : null}\n\t\t\t{controller.showUnavailableTimeSlotDialog.value ? <TimeSlotNotAvailableDialog /> : null}\n\t\t</>\n\t);\n});\n\nfunction TimeSlotNotAvailableDialog() {\n\tconst viewBookingController = useResolveController(ViewBookingController);\n\tconst analyticCtx = useAnalyticContext();\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tanalyticCtx.trackEvent(ViewBookingAnalyticActions.OpenedTimeSlotNotAvailableDialog);\n\t\t},\n\t\t[analyticCtx],\n\t);\n\n\tfunction handleAbort() {\n\t\tanalyticCtx.trackEvent(ViewBookingAnalyticActions.ClosedTimeSlotNotAvailableDialog);\n\t\tviewBookingController.goToScreen(BookingScreen.Location);\n\t}\n\n\treturn (\n\t\t<DialogAlert\n\t\t\tisOpen\n\t\t\theader={withTranslation('View.Booking.BookingUnavailableDialog.Header')}\n\t\t\tdescription={withTranslation('View.Booking.BookingUnavailableDialog.Description')}\n\t\t\tabortText={withTranslation('View.Booking.BookingUnavailableDialog.Button')}\n\t\t\tonAbort={handleAbort}\n\t\t/>\n\t);\n}\n\ninterface Props {\n\tbillId: number;\n\tpaymentAmount: string;\n\tonSuccess?: () => void;\n\tonAbort?: () => void;\n}\n\nfunction PaymentSheet({ paymentAmount, billId, onSuccess, onAbort }: Props): JSX.Element {\n\treturn (\n\t\t<Sheet onClose={onAbort} defaultOpen variant='full-restricted'>\n\t\t\t<Payment billId={billId} paymentAmount={paymentAmount} onSuccess={onSuccess} onAbort={onAbort} />\n\t\t</Sheet>\n\t);\n}\n\ninterface TimeSlotInfoProps {\n\ttitle?: string;\n\ttimeSlot: {\n\t\tprice?: string;\n\t\trepresentativeNin?: string;\n\t\treasonForVisit?: string;\n\t\tduration: number;\n\t\tphysicalLocation: ClientPhysicalLocationApiModel | null;\n\t\tresource: ClientResourceModel | null;\n\t\tstart: string;\n\t};\n}\n\nexport function TimeSlotInfo({ title, timeSlot }: TimeSlotInfoProps) {\n\tconst dateService = useResolve(DateService);\n\tconst startDate = dateService.newDate(timeSlot.start);\n\tconst endDate = startDate.add(timeSlot.duration, 'minutes');\n\n\treturn (\n\t\t<Box\n\t\t\tbackground={primitiveColorTokens.neutral[100]}\n\t\t\tborder={`1px solid ${tokens.color.border.muted}`}\n\t\t\tborderRadius={tokens.borderRadius.small}\n\t\t\tpadding={tokens.spacing.x2}\n\t\t\tgap={tokens.spacing.x2}\n\t\t>\n\t\t\t{title ? <Text variant='labelLargeSemiBold'>{title}</Text> : null}\n\t\t\t<DataList.Root>\n\t\t\t\t{timeSlot.price ? (\n\t\t\t\t\t<DataList.Item label={withTranslation('Common.Label.Cost')}>\n\t\t\t\t\t\t<BadgeText variant='info'>{timeSlot.price}</BadgeText>\n\t\t\t\t\t</DataList.Item>\n\t\t\t\t) : null}\n\t\t\t\t{timeSlot.representativeNin ? (\n\t\t\t\t\t<DataList.Item label={withTranslation('Common.Label.AgentFor')}>{timeSlot.representativeNin}</DataList.Item>\n\t\t\t\t) : null}\n\t\t\t\t{timeSlot.reasonForVisit ? (\n\t\t\t\t\t<DataList.Item label={withTranslation('Common.Label.Rfv')}>{timeSlot.reasonForVisit}</DataList.Item>\n\t\t\t\t) : null}\n\t\t\t\t{timeSlot.price || timeSlot.representativeNin || timeSlot.reasonForVisit ? <Divider offset={tokens.spacing.x1} /> : null}\n\n\t\t\t\t<DataList.Item label={withTranslation('View.Booking.TimeSlotInfo.Label.Date')} icon='calendar'>\n\t\t\t\t\t{capitalizeFirstLetter(startDate.format('dddd D MMMM YYYY'))}\n\t\t\t\t</DataList.Item>\n\t\t\t\t<DataList.Item label={withTranslation('View.Booking.TimeSlotInfo.Label.Time')} icon='clock'>\n\t\t\t\t\t{startDate.format('HH:mm')} - {endDate.format('HH:mm')} ({timeSlot.duration}{' '}\n\t\t\t\t\t{withTranslation('Common.Word.Minutes').toLocaleLowerCase()})\n\t\t\t\t</DataList.Item>\n\t\t\t\t{timeSlot.physicalLocation ? (\n\t\t\t\t\t<DataList.Item label={withTranslation('View.Booking.TimeSlotInfo.Label.Location')} icon='pinMark'>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t{timeSlot.physicalLocation.Name}\n\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t{timeSlot.physicalLocation.Address}\n\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t{timeSlot.physicalLocation.PostalCode}\n\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t{timeSlot.physicalLocation.City}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</DataList.Item>\n\t\t\t\t) : (\n\t\t\t\t\t<DataList.Item label={withTranslation('View.Booking.TimeSlotInfo.Label.Type')} icon='video'>\n\t\t\t\t\t\t{withTranslation('View.Booking.TimeSlotInfo.Label.Type.Digital')}\n\t\t\t\t\t</DataList.Item>\n\t\t\t\t)}\n\t\t\t\t{timeSlot.resource ? (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<Divider offset={tokens.spacing.x1} />\n\n\t\t\t\t\t\t<AvatarInfo\n\t\t\t\t\t\t\tname={timeSlot.resource.Name ?? undefined}\n\t\t\t\t\t\t\ttitle={timeSlot.resource.Title ?? undefined}\n\t\t\t\t\t\t\tavatarSrc={timeSlot.resource.ProfileImageUrl ?? undefined}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</>\n\t\t\t\t) : null}\n\t\t\t</DataList.Root>\n\t\t</Box>\n\t);\n}\n","import type { Dayjs } from 'dayjs';\nimport { DateDisplayFormats, DateService } from '@application/time/date.service';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { useEffect, useState } from 'react';\nimport styled from 'styled-components';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport { HeadlessButton, IconButton, VisuallyHidden } from '@cellula/react';\nimport { I18nAndL10n } from '@application/i18n/mod';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { useConstant } from '@visiba/react-std';\n\ninterface WeeklyCalenderProps {\n\tdate?: Dayjs;\n\tfromDate?: Dayjs;\n\tonDateChange?: (date: Dayjs) => void;\n\tonDayClick?: (date: Dayjs) => void;\n\tnotifications?: Map<string, number>;\n}\n\nfunction getDateSpanDisplay(today: Dayjs, startOfCurrentWeek: Dayjs, endOfCurrentWeek: Dayjs) {\n\t// If the current week is the same as the current year, we only show the day\n\t// and month. Otherwise, we includes the year too.\n\tconst dateFormat =\n\t\ttoday.isSame(startOfCurrentWeek, 'year') && today.isSame(endOfCurrentWeek, 'year')\n\t\t\t? DateService.getLocaleSpecificDateFormatTemplate(DateDisplayFormats.FULL_DISPLAY_NO_CURRENT_YEAR_WEEKDAY_TIME)\n\t\t\t: DateService.getLocaleSpecificDateFormatTemplate(DateDisplayFormats.FULL_DISPLAY_NO_TIME_WEEKDAY);\n\n\treturn `${startOfCurrentWeek.format(dateFormat)} - ${endOfCurrentWeek.format(dateFormat)}`;\n}\n\nexport function WeeklyCalender({ date, fromDate, notifications, onDateChange, onDayClick }: WeeklyCalenderProps): JSX.Element {\n\tconst dateService = useResolve(DateService);\n\tconst [currentDate, setCurrentDate] = useState(date ?? dateService.newDate());\n\n\tconst today = useConstant(() => fromDate ?? dateService.newDate());\n\tconst startOfTodayWeek = useConstant(() => today.startOf('week'));\n\n\tfunction getFirstAvailableDayOfWeek(date: Dayjs) {\n\t\tif (date.isBefore(today)) {\n\t\t\treturn today.clone();\n\t\t}\n\n\t\treturn date.startOf('week');\n\t}\n\n\tconst startOfCurrentWeek = currentDate.startOf('week');\n\tconst endOfCurrentWeek = currentDate.endOf('week');\n\tconst prevWeek = currentDate.subtract(1, 'week').startOf('week');\n\tconst disablePrevButton = prevWeek.isBefore(startOfTodayWeek);\n\n\tconst currentWeekText = withTranslation('Component.WeeklyCalendar.LabelCurrentWeek', {\n\t\tweek: endOfCurrentWeek.week().toString(),\n\t});\n\n\tuseEffect(\n\t\tfunction whenDateChanges() {\n\t\t\tsetCurrentDate(date ?? dateService.newDate());\n\t\t},\n\t\t[date, dateService],\n\t);\n\n\tfunction handlePrevWeek() {\n\t\tonDateChange?.(getFirstAvailableDayOfWeek(prevWeek));\n\t\tsetCurrentDate(getFirstAvailableDayOfWeek(prevWeek));\n\t}\n\n\tfunction handleNextWeek() {\n\t\tconst nextWeek = getFirstAvailableDayOfWeek(currentDate.add(1, 'week').startOf('week'));\n\n\t\tonDateChange?.(nextWeek);\n\t\tsetCurrentDate(nextWeek);\n\t}\n\n\tfunction handleDayClick(date: Dayjs) {\n\t\tonDayClick?.(date);\n\t}\n\n\tconst dayList = [];\n\n\tfor (let day = startOfCurrentWeek.clone(); day.isBefore(endOfCurrentWeek); day = day.add(1, 'day')) {\n\t\tdayList.push({\n\t\t\tdate: day.clone(),\n\t\t\tdisabled: day.isBefore(today, 'day'),\n\t\t\tnotification: notifications?.get(day.format('YYYY-MM-DD')) ?? false,\n\t\t});\n\t}\n\n\treturn (\n\t\t<elements.container aria-label={currentWeekText} tabIndex={0} role='region'>\n\t\t\t<elements.currentDateContainer>\n\t\t\t\t<IconButton\n\t\t\t\t\ticon='chevronLeft'\n\t\t\t\t\tonClick={handlePrevWeek}\n\t\t\t\t\tdisabled={!!disablePrevButton}\n\t\t\t\t\tvariant='interactive'\n\t\t\t\t\tsize='medium'\n\t\t\t\t\ttext={I18nAndL10n.translate('Component.WeeklyCalendar.PreviousWeek')}\n\t\t\t\t/>\n\t\t\t\t<elements.currentDate aria-live='polite' aria-relevant='all'>\n\t\t\t\t\t<VisuallyHidden>{currentWeekText}</VisuallyHidden>\n\t\t\t\t\t{getDateSpanDisplay(today, startOfCurrentWeek, endOfCurrentWeek)}\n\t\t\t\t</elements.currentDate>\n\t\t\t\t<IconButton\n\t\t\t\t\ticon='chevronRight'\n\t\t\t\t\tonClick={handleNextWeek}\n\t\t\t\t\tvariant='interactive'\n\t\t\t\t\tsize='medium'\n\t\t\t\t\ttext={I18nAndL10n.translate('Component.WeeklyCalendar.NextWeek')}\n\t\t\t\t/>\n\t\t\t</elements.currentDateContainer>\n\t\t\t<elements.days>\n\t\t\t\t{dayList.map((dayButton) => {\n\t\t\t\t\tconst ariaLabel = `${dayButton.date.format(\n\t\t\t\t\t\tdateService.getLocaleSpecificDateFormatTemplate(DateDisplayFormats.FULL_DISPLAY_NO_TIME),\n\t\t\t\t\t)}. ${\n\t\t\t\t\t\tdayButton.notification\n\t\t\t\t\t\t\t? I18nAndL10n.translate('Component.WeeklyCalendar.DayNotificationAvailableAppointments', {\n\t\t\t\t\t\t\t\t\tcount: dayButton.notification.toString(),\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t: I18nAndL10n.translate('Component.WeeklyCalendar.DayNotificationNoAppointments')\n\t\t\t\t\t}`;\n\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<elements.day\n\t\t\t\t\t\t\tkey={dayButton.date.date()}\n\t\t\t\t\t\t\ttype='button'\n\t\t\t\t\t\t\tdisabled={dayButton.disabled}\n\t\t\t\t\t\t\taria-current={dayButton.date.isSame(currentDate, 'day')}\n\t\t\t\t\t\t\tonClick={() => handleDayClick(dayButton.date)}\n\t\t\t\t\t\t\taria-label={ariaLabel}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<elements.dayName>{dayButton.date.format('ddd')}</elements.dayName>\n\t\t\t\t\t\t\t<elements.dayNumber>{dayButton.date.format('DD')}</elements.dayNumber>\n\n\t\t\t\t\t\t\t<elements.dayNotification>\n\t\t\t\t\t\t\t\t{dayButton.notification ? <div className='day-notification-dot' /> : null}\n\t\t\t\t\t\t\t</elements.dayNotification>\n\t\t\t\t\t\t</elements.day>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t</elements.days>\n\t\t</elements.container>\n\t);\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\toverflow: hidden;\n\n\t\t&:focus-visible {\n\t\t\toutline: 2px solid ${tokens.color.focus};\n\t\t\toutline-offset: 2px;\n\t\t\tborder-radius: ${tokens.borderRadius.small};\n\t\t}\n\t`,\n\tcurrentDateContainer: styled.div`\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\tbackground: ${primitiveColorTokens.primary[300]};\n\t\tpadding: ${tokens.spacing.x0_5};\n\t\tborder-top-left-radius: ${tokens.borderRadius.small};\n\t\tborder-top-right-radius: ${tokens.borderRadius.small};\n\t`,\n\tcurrentDate: styled.div`\n\t\ttext-align: center;\n\t`,\n\tdays: styled.div`\n\t\tbackground: ${tokens.color.bg.surfaceBrand};\n\t\tborder-bottom-left-radius: ${tokens.borderRadius.small};\n\t\tborder-bottom-right-radius: ${tokens.borderRadius.small};\n\t\tdisplay: flex;\n\t\tjustify-content: stretch;\n\t\talign-items: stretch;\n\t\tpadding: ${tokens.spacing.x0_5};\n\t\tgap: ${tokens.spacing.x0_5};\n\t`,\n\tday: styled(HeadlessButton)`\n\t\tall: unset;\n\t\twidth: 48px;\n\t\tflex-grow: 1;\n\t\tborder-radius: ${tokens.borderRadius.small};\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tcursor: default;\n\t\tpadding: ${tokens.spacing.x1};\n\t\tcolor: ${tokens.color.content.interactive};\n\t\tgap: 6px;\n\n\t\t&:not([aria-current='true'], [aria-disabled='true']) {\n\t\t\t@media (hover: hover) {\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground: ${tokens.color.bg.interactiveMutedHover};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&:active {\n\t\t\t\tbackground: ${tokens.color.bg.interactiveMutedActive};\n\t\t\t}\n\t\t}\n\n\t\t&[aria-current='true'] {\n\t\t\tbackground: ${tokens.color.bg.surfaceDarkBrand};\n\t\t\tcolor: ${tokens.color.content.onDark};\n\n\t\t\t.day-notification-dot {\n\t\t\t\tbackground: ${tokens.color.bg.highlight};\n\t\t\t}\n\t\t}\n\n\t\t&[aria-disabled='true'] {\n\t\t\topacity: 0.7;\n\t\t}\n\n\t\t&[data-focus='true'] {\n\t\t\toutline: 2px solid ${tokens.color.focus};\n\t\t\toutline-offset: 1px;\n\t\t}\n\n\t\t.day-notification-dot {\n\t\t\twidth: 6px;\n\t\t\theight: 6px;\n\t\t\tborder-radius: 50%;\n\t\t\tbackground: ${tokens.color.content.highlight};\n\t\t}\n\t`,\n\tdayName: styled.div`\n\t\tfont: ${tokens.text.label.xSmallSemiBold};\n\t\theight: 16px;\n\t\ttext-transform: capitalize;\n\t`,\n\tdayNumber: styled.div`\n\t\tfont: ${tokens.text.label.largeSemiBold};\n\t\theight: 16px;\n\t`,\n\tdayNotification: styled.div`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\theight: 20px;\n\t`,\n};\n","import { useEffect, MouseEvent, useRef, useState } from 'react';\nimport {\n\tAutoFocus,\n\tBadgeText,\n\tBreakPoints,\n\tButton,\n\tCellulaFormSubmitData,\n\tDialogAlert,\n\tDialogModal,\n\tFlex,\n\tForm,\n\tIconButton,\n\tInputCombobox,\n\tSheet,\n\tText,\n\tuseBreakpoint,\n\tuseFormContext,\n} from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { TopBar } from '@component/top_bar.component';\nimport { useResolve, useResolveController, useService, withNewContainer } from '@visiba-cortex/instantiation';\nimport { Title } from '@component/title.component';\nimport { Route, Routes, useParams } from 'react-router-dom';\nimport { ScreenTimeSlotController } from './screen_time_slot.controller';\nimport { Async } from '@component/async.component';\nimport { DataList } from '@component/data_list.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { TimeSlotInfo } from '../screen_conclusion/screen_conclusion.component';\nimport { LocalityType } from '@api_patient/generated/clientv2/models/locality-type';\nimport { AuthService } from '@application/authentication/auth.service';\nimport { Auth } from '@feature/auth/auth.component';\nimport { WeeklyCalender } from '@component/weekly_calender.component';\nimport { capitalizeFirstLetter } from '@module/capitalize_first_letter';\nimport styled from 'styled-components';\nimport { ActionCard } from '@component/action_card.component';\nimport { DateDisplayFormats, DateService } from '@application/time/date.service';\nimport { AvatarInfo } from '@component/avatar_info.component';\nimport { Shimmer } from '@component/new_shimmer.component';\nimport { I18nAndL10n } from '@application/i18n/mod';\nimport { ViewBookingAnalyticActions, ViewBookingController } from '../view_booking.controller';\n\nimport { AnimatePresence, motion } from 'framer-motion';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\n\nexport const ScreenTimeSlot = withNewContainer(function ScreenTimeSlot() {\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content goBack />\n\n\t\t\t<Routes>\n\t\t\t\t<Route path='digital' element={<ScreenTimeSlotContent localityType={LocalityType.Digital} />} />\n\t\t\t\t<Route path=':locationId' element={<ScreenTimeSlotContent localityType={LocalityType.Physical} />} />\n\t\t\t</Routes>\n\t\t</>\n\t);\n});\n\nfunction ScreenTimeSlotContent({ localityType }: ScreenTimeSlotContentProps) {\n\tconst { locationId } = useParams();\n\tconst viewBookingController = useResolveController(ViewBookingController);\n\tconst controller = useResolveController(ScreenTimeSlotController);\n\tconst triggerButtonRef = useRef<HTMLButtonElement | null>(null);\n\tconst isSmallDevice = useBreakpoint(BreakPoints.Small);\n\tconst analytic = useAnalyticContext();\n\tconst dateService = useService(DateService);\n\tconst containerRef = useRef<HTMLDivElement>(null);\n\tconst [timeSlotDetailsOpen, setTimeSlotDetailsOpen] = useState(false);\n\n\tuseEffect(\n\t\tfunction whenTimeSlotDetailsDataChanges() {\n\t\t\tif (controller.timeSlotDetails.peek().flowState === 'idle') {\n\t\t\t\tsetTimeSlotDetailsOpen(false);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsetTimeSlotDetailsOpen(true);\n\t\t},\n\t\t[controller.timeSlotDetails, controller.timeSlotDetails.value],\n\t);\n\n\tfunction handleTimeSlotDetailsOpenChange(open: boolean) {\n\t\tsetTimeSlotDetailsOpen(open);\n\n\t\tif (!open) {\n\t\t\tanalytic.trackEvent(ViewBookingAnalyticActions.CloseTimeSlotDetails);\n\t\t\tcontroller.clearTimeSlotDetails();\n\t\t}\n\t}\n\n\tfunction handlePreviewTimeSlot(timeSlotId: string) {\n\t\treturn (event: MouseEvent<HTMLButtonElement>) => {\n\t\t\tanalytic.trackEvent('Click time slot');\n\t\t\ttriggerButtonRef.current = event.currentTarget as HTMLButtonElement;\n\t\t\tcontroller.previewTimeSlot(timeSlotId);\n\t\t};\n\t}\n\n\tfunction handleGoToNextAvailableDate() {\n\t\tconst nextAvailableDate = controller.nextAvailableDate.peek();\n\t\tif (nextAvailableDate) {\n\t\t\tcontroller.setCurrentDate(nextAvailableDate);\n\t\t}\n\t}\n\n\tfunction handleAutoFocusOnDetailClose(event: Event) {\n\t\tevent.preventDefault();\n\n\t\ttriggerButtonRef.current?.focus();\n\t}\n\n\tfunction handleFilterChange(formData: CellulaFormSubmitData) {\n\t\tcontroller.setFilter({\n\t\t\tresourceId: formData.resourceId ?? null,\n\t\t\tspecialityId: formData.specialityId ?? null,\n\t\t\tunitId: formData.unitId ?? null,\n\t\t});\n\t}\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tasync function fetchData() {\n\t\t\t\t// We don't care about errors here\n\t\t\t\tawait controller.clearTimeSlotDetails();\n\n\t\t\t\tcontroller.setup(localityType, locationId);\n\t\t\t}\n\t\t\tfetchData();\n\n\t\t\tif (__visiba_feature_flags__['CareExperience.PW.Idp']) {\n\t\t\t\t// Nice, we don't need to do any quirks when using IDP 😌\n\t\t\t} else {\n\t\t\t\tfunction handleWhenOldSignInIsTriggered() {\n\t\t\t\t\tsetTimeSlotDetailsOpen(false);\n\t\t\t\t}\n\n\t\t\t\tfunction handleWhenOldSignInIsAborted() {\n\t\t\t\t\tcontroller.clearSelectTimeSlot();\n\t\t\t\t\tsetTimeSlotDetailsOpen(true);\n\t\t\t\t}\n\n\t\t\t\twindow.addEventListener('triggerSignIn', handleWhenOldSignInIsTriggered);\n\t\t\t\twindow.addEventListener('abortSignIn', handleWhenOldSignInIsAborted);\n\n\t\t\t\treturn () => {\n\t\t\t\t\twindow.removeEventListener('triggerSignIn', handleWhenOldSignInIsTriggered);\n\t\t\t\t\twindow.removeEventListener('abortSignIn', handleWhenOldSignInIsAborted);\n\t\t\t\t};\n\t\t\t}\n\t\t},\n\t\t[controller, localityType, locationId],\n\t);\n\n\tuseEffect(\n\t\tfunction setFocusToTimeSlotListWhenChangingDate() {\n\t\t\tcontainerRef.current?.focus();\n\t\t},\n\t\t[controller.nextAvailableDate.value],\n\t);\n\n\treturn (\n\t\t<Flex gap={tokens.spacing.x2_5}>\n\t\t\t<Flex gap={tokens.spacing.x3}>\n\t\t\t\t<Flex gap={tokens.spacing.x3} style={{ position: 'relative' }}>\n\t\t\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t\t\t<Title title={withTranslation('View.Booking.ScreenTimeSlot.Title')} titleSize='small' />\n\t\t\t\t\t\t<Text variant='labelSemiBold'>\n\t\t\t\t\t\t\t{localityType === LocalityType.Digital\n\t\t\t\t\t\t\t\t? withTranslation('View.Booking.ScreenTimeSlot.DigitalVideoAppointment')\n\t\t\t\t\t\t\t\t: controller.location.value?.Name}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t</Flex>\n\n\t\t\t\t\t<Form.Root onSubmit={() => {}} options={{}} onInputChange={handleFilterChange}>\n\t\t\t\t\t\t<TimeSlotFilters />\n\t\t\t\t\t</Form.Root>\n\t\t\t\t</Flex>\n\n\t\t\t\t<WeeklyCalender\n\t\t\t\t\tdate={controller.currentDate.value ?? undefined}\n\t\t\t\t\tfromDate={viewBookingController.getFlowSettings().fromDate ?? undefined}\n\t\t\t\t\tnotifications={controller.availability.value.dates}\n\t\t\t\t\tonDayClick={(date) => {\n\t\t\t\t\t\tcontroller.setCurrentDate(date);\n\t\t\t\t\t}}\n\t\t\t\t\tonDateChange={(date) => {\n\t\t\t\t\t\tcontroller.setCurrentDate(date);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</Flex>\n\t\t\t<Flex gap={tokens.spacing.x1} ref={containerRef} tabIndex={-1} style={{ outline: 'none' }}>\n\t\t\t\t{controller.currentDate.value ? (\n\t\t\t\t\t<Text variant='labelSmallRegular'>\n\t\t\t\t\t\t{capitalizeFirstLetter(\n\t\t\t\t\t\t\tcontroller.currentDate.value?.format(\n\t\t\t\t\t\t\t\tdateService.getLocaleSpecificDateFormatTemplate(DateDisplayFormats.FULL_DISPLAY_NO_TIME),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Text>\n\t\t\t\t) : null}\n\n\t\t\t\t<Async\n\t\t\t\t\tderive={controller.timeSlots}\n\t\t\t\t\tfallback={\n\t\t\t\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t<Shimmer height={80} width={'100%'} />\n\t\t\t\t\t\t\t<Shimmer height={80} width={'100%'} opacity={0.7} />\n\t\t\t\t\t\t\t<Shimmer height={80} width={'100%'} opacity={0.4} />\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t}\n\t\t\t\t>\n\t\t\t\t\t{(timeSlots) => (\n\t\t\t\t\t\t<Flex gap={tokens.spacing.x2} style={{ outline: 'none' }}>\n\t\t\t\t\t\t\t{timeSlots.length > 0 ? (\n\t\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t\t\t<ol\n\t\t\t\t\t\t\t\t\t\taria-label={withTranslation('View.Booking.ScreenTimeSlot.TimeSlotList.AriaLabel', {\n\t\t\t\t\t\t\t\t\t\t\tdate: controller.currentDate.value?.format('LL') ?? '',\n\t\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t\t\tstyle={{ display: 'contents' }}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{timeSlots.map((timeSlot) => {\n\t\t\t\t\t\t\t\t\t\t\tconst startDate = dateService.newDate(timeSlot.Start);\n\t\t\t\t\t\t\t\t\t\t\tconst ariaLabel = `${I18nAndL10n.translate('View.Booking.ScreenTimeSlot.TimeSlot.AriaLabel', {\n\t\t\t\t\t\t\t\t\t\t\t\tappointmentType: '',\n\t\t\t\t\t\t\t\t\t\t\t\tstartTime: startDate.format('HH:mm'),\n\t\t\t\t\t\t\t\t\t\t\t\tendTime: startDate.add(timeSlot.Duration, 'minutes').format('HH:mm'),\n\t\t\t\t\t\t\t\t\t\t\t\thcpName: timeSlot.Resource?.Name ?? '',\n\t\t\t\t\t\t\t\t\t\t\t\thcpTitle: timeSlot.Resource?.Title ?? '',\n\t\t\t\t\t\t\t\t\t\t\t})} ${timeSlot.Price ? `${I18nAndL10n.translate('Common.Label.Cost')}: ${timeSlot.Price.Formatted}` : ''}`;\n\n\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t<li key={timeSlot.Id} style={{ display: 'contents' }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ActionCard.Root onClick={handlePreviewTimeSlot(timeSlot.Id ?? '')} aria-label={ariaLabel} hideArrow>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Flex direction='row' gap={tokens.spacing.x2} justify='space-between' grow='1'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x0_25}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ActionCard.Title>{dateService.newDate(timeSlot.Start).format('HH:mm')}</ActionCard.Title>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ActionCard.Meta>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{timeSlot.Duration} {withTranslation('Common.Word.Minutes').toLocaleLowerCase()}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ActionCard.Meta>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Flex align='flex-end' gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{timeSlot.Resource ? (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<AvatarInfo\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tname={timeSlot.Resource.Name ?? undefined}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle={timeSlot.Resource.Title ?? undefined}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tavatarSrc={timeSlot.Resource.ProfileImageUrl ?? undefined}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talign='right'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{timeSlot.Price?.Value ? <BadgeText variant='info'>{timeSlot.Price?.Formatted}</BadgeText> : null}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ActionCard.Root>\n\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t\t</ol>\n\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<EmptyState>{withTranslation('View.Booking.ScreenTimeSlot.NoAvailableTimes')}</EmptyState>\n\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t{controller.nextAvailableDate.value ? (\n\t\t\t\t\t\t\t\t<Button variant='ghost' onClick={handleGoToNextAvailableDate} icon='arrowRight' iconPosition='trailing'>\n\t\t\t\t\t\t\t\t\t{withTranslation('View.Booking.ScreenTimeSlot.ButtonNextAvailableTime')}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t)}\n\t\t\t\t</Async>\n\t\t\t</Flex>\n\t\t\t{isSmallDevice ? (\n\t\t\t\t<Sheet\n\t\t\t\t\tlabel={withTranslation('View.Booking.TimeSlotSheet.Label')}\n\t\t\t\t\topen={timeSlotDetailsOpen}\n\t\t\t\t\tonOpenChange={handleTimeSlotDetailsOpenChange}\n\t\t\t\t\tonCloseAutoFocus={handleAutoFocusOnDetailClose}\n\t\t\t\t>\n\t\t\t\t\t<Flex\n\t\t\t\t\t\tgrow='1'\n\t\t\t\t\t\tstyle={{ width: '100%', maxWidth: '660px', margin: '0 auto', padding: `${tokens.spacing.x2} ${tokens.spacing.x2} 0` }}\n\t\t\t\t\t>\n\t\t\t\t\t\t<TimeSlotDetails />\n\t\t\t\t\t</Flex>\n\t\t\t\t</Sheet>\n\t\t\t) : (\n\t\t\t\t<DialogModal.Root\n\t\t\t\t\topen={timeSlotDetailsOpen}\n\t\t\t\t\tonOpenChange={handleTimeSlotDetailsOpenChange}\n\t\t\t\t\tonOpenAutoFocus={(e) => e.preventDefault()}\n\t\t\t\t\tonCloseAutoFocus={handleAutoFocusOnDetailClose}\n\t\t\t\t>\n\t\t\t\t\t<DialogModal.Content>\n\t\t\t\t\t\t<Flex grow='1' gap={tokens.spacing.x2}>\n\t\t\t\t\t\t\t<DialogModal.Title>{withTranslation('View.Booking.TimeSlotSheet.Label')}</DialogModal.Title>\n\t\t\t\t\t\t\t<TimeSlotDetails />\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</DialogModal.Content>\n\t\t\t\t</DialogModal.Root>\n\t\t\t)}\n\t\t\t{controller.showUnavailableTimeSlotDialog.value ? <TimeSlotNotAvailableDialog /> : null}\n\t\t</Flex>\n\t);\n}\n\nfunction TimeSlotNotAvailableDialog() {\n\tconst controller = useResolveController(ScreenTimeSlotController);\n\tconst analyticCtx = useAnalyticContext();\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tanalyticCtx.trackEvent(ViewBookingAnalyticActions.OpenedTimeSlotNotAvailableDialog);\n\t\t},\n\t\t[analyticCtx],\n\t);\n\n\tfunction handleAbort() {\n\t\tanalyticCtx.trackEvent(ViewBookingAnalyticActions.ClosedTimeSlotNotAvailableDialog);\n\t\tcontroller.showUnavailableTimeSlotDialog.value = false;\n\t}\n\n\treturn (\n\t\t<DialogAlert\n\t\t\tisOpen\n\t\t\theader={withTranslation('View.Booking.TimeSlotUnavailableDialog.Header')}\n\t\t\tdescription={withTranslation('View.Booking.TimeSlotUnavailableDialog.Description')}\n\t\t\tabortText={withTranslation('Common.Button.Close')}\n\t\t\tonAbort={handleAbort}\n\t\t/>\n\t);\n}\n\nfunction TimeSlotFilters() {\n\tconst viewBookingController = useResolveController(ViewBookingController);\n\tconst controller = useResolveController(ScreenTimeSlotController);\n\tconst formContext = useFormContext();\n\tconst [visible, setVisible] = useState(false);\n\tconst flowSettings = viewBookingController.getFlowSettings();\n\tconst analytic = useAnalyticContext();\n\n\tfunction handleClearFilter() {\n\t\tanalytic.trackEvent('Click clear and close filters');\n\t\tformContext?.control.reset({\n\t\t\tresourceId: null,\n\t\t\tspecialityId: null,\n\t\t\tunitId: null,\n\t\t});\n\t\tsetVisible(false);\n\t}\n\n\tfunction handleToggleFilter() {\n\t\tanalytic.trackEvent('Click show filters');\n\t\tsetVisible(true);\n\t}\n\n\tfunction handleFilterChange(filter: string) {\n\t\treturn () => {\n\t\t\tanalytic.trackEvent(`Changed filter: ${filter}`, formContext?.control.getValues(filter));\n\t\t};\n\t}\n\n\tuseEffect(() => {\n\t\tconst selectedFilters = controller.selectedFilters.peek();\n\n\t\tformContext?.control.reset({\n\t\t\tresourceId: selectedFilters.resourceId?.toString() ?? null,\n\t\t\tspecialityId: selectedFilters.specialityId?.toString() ?? null,\n\t\t\tunitId: selectedFilters.unitId?.toString() ?? null,\n\t\t});\n\n\t\tsetVisible(selectedFilters.resourceId != null || selectedFilters.specialityId != null || selectedFilters.unitId != null);\n\t}, [controller.selectedFilters, formContext?.control]);\n\n\treturn (\n\t\t<>\n\t\t\t<IconButton\n\t\t\t\ticon='sliders'\n\t\t\t\tsize='medium'\n\t\t\t\ttext={withTranslation('View.Booking.ScreenTimeSlot.FilterToggleTooltip')}\n\t\t\t\tvariant='interactive'\n\t\t\t\tonClick={handleToggleFilter}\n\t\t\t\tstyle={{ position: 'absolute', top: 0, right: 0, display: visible ? 'none' : 'block' }}\n\t\t\t/>\n\t\t\t<Async derive={controller.filters}>\n\t\t\t\t{(filters) => (\n\t\t\t\t\t<AnimatePresence>\n\t\t\t\t\t\t{visible ? (\n\t\t\t\t\t\t\t<motion.div\n\t\t\t\t\t\t\t\tstyle={{ overflow: 'hidden' }}\n\t\t\t\t\t\t\t\tinitial={{ height: 0 }}\n\t\t\t\t\t\t\t\tanimate={{ height: 'auto' }}\n\t\t\t\t\t\t\t\ttransition={{ duration: 0.2, ease: 'easeInOut' }}\n\t\t\t\t\t\t\t\texit={{ height: 0 }}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<AutoFocus>\n\t\t\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x1} style={{ outline: 'none' }}>\n\t\t\t\t\t\t\t\t\t\t{filters?.resources && filters.resources.length > 0 ? (\n\t\t\t\t\t\t\t\t\t\t\t<InputCombobox.Root\n\t\t\t\t\t\t\t\t\t\t\t\tlabel={withTranslation('View.Booking.ScreenTimeSlot.FilterLabelStaff')}\n\t\t\t\t\t\t\t\t\t\t\t\tname='resourceId'\n\t\t\t\t\t\t\t\t\t\t\t\toptional={false}\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder={withTranslation('Common.Word.All')}\n\t\t\t\t\t\t\t\t\t\t\t\tonChange={handleFilterChange('resourceId')}\n\t\t\t\t\t\t\t\t\t\t\t\treadOnly={flowSettings.lockFilters}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{filters.resources.map((resource) => (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<InputCombobox.Item key={resource.Id} value={resource.Id.toString()} label={resource.Name ?? ''} />\n\t\t\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t\t\t</InputCombobox.Root>\n\t\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t\t{filters?.specialities && filters.specialities.length > 0 ? (\n\t\t\t\t\t\t\t\t\t\t\t<InputCombobox.Root\n\t\t\t\t\t\t\t\t\t\t\t\tlabel={withTranslation('View.Booking.ScreenTimeSlot.FilterLabelSpeciality')}\n\t\t\t\t\t\t\t\t\t\t\t\tname='specialityId'\n\t\t\t\t\t\t\t\t\t\t\t\toptional={false}\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder={withTranslation('Common.Word.All')}\n\t\t\t\t\t\t\t\t\t\t\t\tonChange={handleFilterChange('specialityId')}\n\t\t\t\t\t\t\t\t\t\t\t\treadOnly={flowSettings.lockFilters}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{filters.specialities.map((speciality) => (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<InputCombobox.Item key={speciality.Id} value={speciality.Id.toString()} label={speciality.Name ?? ''} />\n\t\t\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t\t\t</InputCombobox.Root>\n\t\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t\t{filters?.units && filters.units.length > 0 ? (\n\t\t\t\t\t\t\t\t\t\t\t<InputCombobox.Root\n\t\t\t\t\t\t\t\t\t\t\t\tlabel={withTranslation('View.Booking.ScreenTimeSlot.FilterLabelUnit')}\n\t\t\t\t\t\t\t\t\t\t\t\tname='unitId'\n\t\t\t\t\t\t\t\t\t\t\t\toptional={false}\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder={withTranslation('Common.Word.All')}\n\t\t\t\t\t\t\t\t\t\t\t\tonChange={handleFilterChange('unitId')}\n\t\t\t\t\t\t\t\t\t\t\t\treadOnly={flowSettings.lockFilters}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{filters.units.map((unit) => (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<InputCombobox.Item key={unit.Id} value={unit.Id.toString()} label={unit.Name ?? ''} />\n\t\t\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t\t\t</InputCombobox.Root>\n\t\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t\t{!flowSettings.lockFilters ? (\n\t\t\t\t\t\t\t\t\t\t\t<Flex align='end'>\n\t\t\t\t\t\t\t\t\t\t\t\t<Button variant='ghost' onClick={handleClearFilter} icon='cross' size='xSmall'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{withTranslation('View.Booking.ScreenTimeSlot.FilterClearButton')}\n\t\t\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t</AutoFocus>\n\t\t\t\t\t\t\t</motion.div>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t</AnimatePresence>\n\t\t\t\t)}\n\t\t\t</Async>\n\t\t</>\n\t);\n}\n\ninterface ScreenTimeSlotContentProps {\n\tlocalityType: LocalityType;\n}\n\nfunction TimeSlotDetails(): JSX.Element {\n\tconst controller = useResolveController(ScreenTimeSlotController);\n\tconst authService = useResolve(AuthService);\n\tconst analyticCtx = useAnalyticContext();\n\tconst isSignedIn = authService.user.value != null;\n\n\tfunction handleSelectTimeSlot(timeSlotId: string) {\n\t\treturn () => {\n\t\t\tif (isSignedIn) {\n\t\t\t\tanalyticCtx.trackEvent(ViewBookingAnalyticActions.SelectTimeSlot);\n\t\t\t} else {\n\t\t\t\tanalyticCtx.trackEvent(ViewBookingAnalyticActions.SelectTimeSlotAndLogin);\n\t\t\t}\n\t\t\tcontroller.selectTimeSlot(timeSlotId, isSignedIn);\n\t\t};\n\t}\n\n\tfunction handleCloseSignInSheet() {\n\t\tcontroller.clearSelectTimeSlot();\n\t}\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tanalyticCtx.trackEvent(ViewBookingAnalyticActions.OpenTimeSlotDetails);\n\t\t},\n\t\t[analyticCtx],\n\t);\n\n\treturn (\n\t\t<Async derive={controller.timeSlotDetails}>\n\t\t\t{(timeSlot) => (\n\t\t\t\t<>\n\t\t\t\t\t<Flex grow='1' gap={tokens.spacing.x2_5}>\n\t\t\t\t\t\t{timeSlot.price && timeSlot.price.Value ? (\n\t\t\t\t\t\t\t<DataList.Root>\n\t\t\t\t\t\t\t\t<DataList.Item label={withTranslation('Common.Label.Cost')}>\n\t\t\t\t\t\t\t\t\t<BadgeText variant='info'>{timeSlot.price.Formatted}</BadgeText>\n\t\t\t\t\t\t\t\t</DataList.Item>\n\t\t\t\t\t\t\t</DataList.Root>\n\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t<TimeSlotInfo\n\t\t\t\t\t\t\ttimeSlot={{\n\t\t\t\t\t\t\t\tduration: timeSlot.duration,\n\t\t\t\t\t\t\t\tphysicalLocation: timeSlot.physicalLocation,\n\t\t\t\t\t\t\t\tresource: timeSlot.resource,\n\t\t\t\t\t\t\t\tstart: timeSlot.start,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{timeSlot.description ? (\n\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t\t<Text variant='labelSemiBold'>{withTranslation('View.Booking.TimeSlotInfo.Label.Description')}</Text>\n\t\t\t\t\t\t\t\t<Text variant='bodyRegular'>{timeSlot.description}</Text>\n\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t<Flex\n\t\t\t\t\t\t\tgap={tokens.spacing.x2}\n\t\t\t\t\t\t\tbreakpointMediumAndUp={{\n\t\t\t\t\t\t\t\tdirection: 'row-reverse',\n\t\t\t\t\t\t\t\tjustify: 'space-between',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{isSignedIn ? (\n\t\t\t\t\t\t\t\t<Button variant='primary' onClick={handleSelectTimeSlot(timeSlot.id)}>\n\t\t\t\t\t\t\t\t\t{withTranslation('View.Booking.TimeSlotSheet.ButtonSelectTimeSlot')}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<Auth.SignInSheet\n\t\t\t\t\t\t\t\t\treturnUrl='/booking/forms'\n\t\t\t\t\t\t\t\t\ttrigger={\n\t\t\t\t\t\t\t\t\t\t<Button variant='primary'>{withTranslation('View.Booking.TimeSlotSheet.ButtonLoginAndSelectTimeSlot')}</Button>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tonOpen={handleSelectTimeSlot(timeSlot.id)}\n\t\t\t\t\t\t\t\t\tonClose={handleCloseSignInSheet}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t<Sheet.Close asChild>\n\t\t\t\t\t\t\t\t<Button variant='ghost' type='button'>\n\t\t\t\t\t\t\t\t\t{withTranslation('Common.Button.Abort')}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</Sheet.Close>\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</Flex>\n\t\t\t\t</>\n\t\t\t)}\n\t\t</Async>\n\t);\n}\n\nconst EmptyState = styled.div`\n\tfont: ${tokens.text.label.largeRegular};\n\tcolor: ${tokens.color.content.muted};\n\tborder: 1px dashed ${tokens.color.border.default};\n\tborder-radius: ${tokens.borderRadius.medium};\n\tpadding: ${tokens.spacing.x4};\n\ttext-align: center;\n`;\n","import { AsyncSignalValue } from '@component/async.component';\nimport { FormWorker } from '@feature/dynamic_form/form_manager/form_worker';\nimport { signal } from '@preact/signals-react';\nimport { Injectable, Scopes, ControllerProtocol } from '@visiba-cortex/instantiation';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { BookingScreen, ViewBookingAnalyticActions, ViewBookingController } from '../view_booking.controller';\nimport { type BookingBasket, BookingBasketService } from '../booking_basket.service';\nimport type { FormApiModel } from '@api_patient/generated/clientv2/models';\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class ScreenFormsController implements ControllerProtocol {\n\tpublic forms = signal<AsyncSignalValue<FormApiModel[]>>({\n\t\tflowState: 'pending',\n\t\tvalue: null,\n\t});\n\tpublic formWorker = signal<AsyncSignalValue<Readonly<FormWorker>>>({\n\t\tflowState: 'pending',\n\t\tvalue: null,\n\t});\n\tprivate tempDisposers: (() => void)[] = [];\n\tprivate basket: BookingBasket | null = null;\n\n\tconstructor(\n\t\tprivate readonly viewBookingController: ViewBookingController,\n\t\tprivate readonly bookingBasketService: BookingBasketService,\n\t\tprivate readonly analyticService: AnalyticService,\n\t) {\n\t\tthis.basket = this.bookingBasketService.get();\n\t}\n\n\tasync whenMount() {\n\t\tthis.analyticService.trackPageView({\n\t\t\tcustomTitle: 'Booking: Dynamic forms',\n\t\t});\n\n\t\tif (!this.allowedToBeHere()) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.NotAllowedToBeHere, 'Dynamic forms');\n\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Location);\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst restoreResult = await this.bookingBasketService.restore();\n\t\tif (restoreResult.err) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.ErrorFetchingDynamicForms);\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Error);\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.bookingBasketService.forms.length < 1) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.NoDynamicForms);\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Conclusion, { replace: true });\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.forms.value = {\n\t\t\tflowState: 'accessible',\n\t\t\tvalue: this.bookingBasketService.forms,\n\t\t};\n\n\t\tthis.analyticService.trackEvent(\n\t\t\tAnalyticCategories.Booking,\n\t\t\tViewBookingAnalyticActions.NumberOfDynamicForms,\n\t\t\t` ${this.bookingBasketService.forms.length}`,\n\t\t);\n\t}\n\n\twhenDemount() {\n\t\tthis.tempDisposers.forEach((x) => x());\n\t}\n\n\tpublic async loadSingleForm(formId: number): Promise<void> {\n\t\tif (this.basket == null) {\n\t\t\tthis.formWorker.value = {\n\t\t\t\tflowState: 'error',\n\t\t\t\tvalue: null,\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.formWorker.value = {\n\t\t\tflowState: 'pending',\n\t\t\tvalue: null,\n\t\t};\n\n\t\tconst formWorker = this.bookingBasketService.formManager.getFormByFormId(formId);\n\t\tif (formWorker == null) {\n\t\t\tthis.formWorker.value = {\n\t\t\t\tflowState: 'error',\n\t\t\t\tvalue: null,\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.tempDisposers.forEach((x) => x());\n\t\tthis.tempDisposers = [\n\t\t\tformWorker.events.on('onCommit', () => {\n\t\t\t\tconst nextFormId = this.getNextFormId(formWorker.formId);\n\t\t\t\tif (nextFormId != null) {\n\t\t\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Forms, { formId: nextFormId });\n\t\t\t\t} else {\n\t\t\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Conclusion);\n\t\t\t\t}\n\t\t\t}),\n\t\t\tformWorker.events.on('onChangePage', (data) => {\n\t\t\t\tthis.viewBookingController.goToScreen(BookingScreen.Forms, { formId: formWorker.formId, formPage: data.newPagePosition });\n\t\t\t}),\n\t\t];\n\n\t\tthis.formWorker.value = {\n\t\t\tflowState: 'accessible',\n\t\t\tvalue: formWorker,\n\t\t};\n\t}\n\n\tpublic getNextFormId(currentFormId: number): number | null {\n\t\tif (!this.bookingBasketService.forms) {\n\t\t\tthrow new Error('Forms not loaded...');\n\t\t}\n\n\t\tconst currentFormIndex = this.bookingBasketService.forms.findIndex((form) => form.Id === currentFormId);\n\n\t\treturn this.bookingBasketService.forms[currentFormIndex + 1]?.Id ?? null;\n\t}\n\n\tprivate allowedToBeHere() {\n\t\t// If we don't have any user data, we can't be here.\n\t\tif (this.basket == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we don't have flow data, we can't be here.\n\t\tconst flowData = this.viewBookingController.flowData.value.value;\n\t\tif (!flowData) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we don't have a selected respondent type, we can't be here.\n\t\tif (this.bookingBasketService.get().respondantType == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we have reason for visits, we need to have a selected reason for visit.\n\t\tif (\n\t\t\tflowData.useReasonForVisits &&\n\t\t\tthis.viewBookingController.getFilteredReasonForVisits().length > 0 &&\n\t\t\t!this.viewBookingController.getSelectedReasonForVisit()\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!this.basket.timeSlotId) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n}\n","import { TopBar } from '@component/top_bar.component';\nimport { useResolveController, withNewContainer } from '@visiba-cortex/instantiation';\nimport { Navigate, Route, Routes, useParams } from 'react-router';\nimport { useEffect } from 'react';\nimport { Async } from '@component/async.component';\nimport { DynamicForm } from '@feature/dynamic_form/dynamic_form.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { Flex, Form } from '@cellula/react';\nimport { ScreenFormsController } from './screen_forms.controller';\nimport { ButtonArrange } from '@component/button_arrange.component';\n\nexport const ScreenForms = withNewContainer(function ScreenForms(): JSX.Element | null {\n\tconst controller = useResolveController(ScreenFormsController);\n\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content goBack />\n\t\t\t<Async derive={controller.forms}>\n\t\t\t\t{(forms) => (\n\t\t\t\t\t<Routes>\n\t\t\t\t\t\t<Route path=':formId/:formPage?' element={<SingleForm />} />\n\t\t\t\t\t\t<Route path='*' element={<Navigate to={`./${forms[0]?.Id}`} replace />} />\n\t\t\t\t\t</Routes>\n\t\t\t\t)}\n\t\t\t</Async>\n\t\t</>\n\t);\n});\n\nfunction SingleForm() {\n\tconst { formId, formPage = 0 } = useParams();\n\tconst controller = useResolveController(ScreenFormsController);\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tcontroller.loadSingleForm(Number(formId));\n\t\t},\n\t\t[controller, formId],\n\t);\n\n\treturn (\n\t\t<Async derive={controller.formWorker} fallback={<div>Loading...</div>} catch={<div>Error...</div>}>\n\t\t\t{(formWorker) => {\n\t\t\t\treturn (\n\t\t\t\t\t<DynamicForm.Root formWorker={formWorker} defaultPagePosition={Number(formPage)}>\n\t\t\t\t\t\t<DynamicForm.Description />\n\t\t\t\t\t\t<DynamicForm.Content>\n\t\t\t\t\t\t\t<Flex grow={1} justify='flex-end'>\n\t\t\t\t\t\t\t\t<ButtonArrange>\n\t\t\t\t\t\t\t\t\t<Form.SubmitButton>{withTranslation('PW.Common.Next')}</Form.SubmitButton>\n\t\t\t\t\t\t\t\t</ButtonArrange>\n\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t</DynamicForm.Content>\n\t\t\t\t\t</DynamicForm.Root>\n\t\t\t\t);\n\t\t\t}}\n\t\t</Async>\n\t);\n}\n","import { Injectable, Scopes, ControllerProtocol } from '@visiba-cortex/instantiation';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { BookingScreen, ViewBookingAnalyticActions, ViewBookingController } from '../view_booking.controller';\nimport { BookingBasketService } from '../booking_basket.service';\nimport { signal } from '@preact/signals-react';\nimport { NiNFormatter, NiN } from '@visiba/national-identity-number';\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class ScreenWhoIsRespondantController implements ControllerProtocol {\n\tpublic data = signal<PresentationModel>({ respondentType: null, representativeNin: null, representativeNinPlaceholder: '' });\n\n\tconstructor(\n\t\tprivate readonly viewBookingController: ViewBookingController,\n\t\tprivate readonly analyticService: AnalyticService,\n\t\tprivate readonly bookingBasketService: BookingBasketService,\n\t) {\n\t\tconst basket = bookingBasketService.get();\n\t\tthis.data.value = {\n\t\t\trespondentType: basket.respondantType,\n\t\t\trepresentativeNin: basket.representativeNin,\n\t\t\trepresentativeNinPlaceholder: '',\n\t\t};\n\t}\n\n\tasync whenMount() {\n\t\tthis.analyticService.trackPageView({\n\t\t\tcustomTitle: 'Booking: Who is respondant',\n\t\t});\n\n\t\tthis.bookingBasketService.unlockTimeSlot();\n\n\t\t// If the licenceholder does not allow representative, skip this screen\n\t\tif (!this.viewBookingController.flowData.peek().value?.allowRepresentative) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.DoesNotAllowRepresentative);\n\t\t\tthis.bookingBasketService.set({\n\t\t\t\trespondantType: 'me',\n\t\t\t\trepresentativeNin: null,\n\t\t\t});\n\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.ReasonForVisit, { replace: true });\n\n\t\t\treturn;\n\t\t}\n\n\t\t// If representative is set by flow settings, skip this screen\n\t\tconst flowSettings = this.viewBookingController.getFlowSettings();\n\t\tif (flowSettings.representativeNin) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.AutoSetRespondantTypeRepresentative);\n\t\t\tthis.bookingBasketService.set({\n\t\t\t\trespondantType: 'representative',\n\t\t\t\trepresentativeNin: flowSettings.representativeNin,\n\t\t\t});\n\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.ReasonForVisit, { replace: true });\n\n\t\t\treturn;\n\t\t}\n\n\t\t// If there is a red robin session id, but no representative nin, skip this screen\n\t\tif (flowSettings.redRobinSessionId && !flowSettings.representativeNin) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.Booking, ViewBookingAnalyticActions.AutoSetRespondantTypeMe);\n\t\t\tthis.bookingBasketService.set({\n\t\t\t\trespondantType: 'me',\n\t\t\t\trepresentativeNin: null,\n\t\t\t});\n\n\t\t\tthis.viewBookingController.goToScreen(BookingScreen.ReasonForVisit, { replace: true });\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst basket = this.bookingBasketService.get();\n\t\tthis.data.value = {\n\t\t\trespondentType: basket.representativeNin ? 'representative' : 'me',\n\t\t\trepresentativeNin: basket.representativeNin,\n\t\t\trepresentativeNinPlaceholder:\n\t\t\t\tNiNFormatter.formatWithPlaceholder(this.viewBookingController.getFlowData().currentCountry, '')[1] ?? '',\n\t\t};\n\t}\n\n\tpublic async submit(data: FormData) {\n\t\tconst flowData = this.viewBookingController.getFlowData();\n\n\t\tthis.bookingBasketService.set({\n\t\t\trespondantType: data.respondentType === 'representative' ? 'representative' : 'me',\n\t\t\trepresentativeNin:\n\t\t\t\tdata.respondentType === 'representative'\n\t\t\t\t\t? NiNFormatter.format(flowData.currentCountry, NiN.normalize(flowData.currentCountry, (data.representativeNin ?? '').trim()))\n\t\t\t\t\t: null,\n\t\t});\n\n\t\tthis.viewBookingController.goToScreen(BookingScreen.ReasonForVisit);\n\t}\n}\n\nexport type RespondentType = 'me' | 'representative';\n\ninterface PresentationModel {\n\trespondentType: Nullable<RespondentType>;\n\trepresentativeNin: Nullable<string>;\n\trepresentativeNinPlaceholder: string;\n}\n\ninterface FormData {\n\trespondentType: RespondentType;\n\trepresentativeNin: Nullable<string>;\n}\n","import { CellulaFormSubmitData, Flex, Form, InputRadio, InputText, useFormContext } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { TopBar } from '@component/top_bar.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { useResolveController, withNewContainer } from '@visiba-cortex/instantiation';\nimport { ButtonArrange } from '@component/button_arrange.component';\nimport { Title } from '@component/title.component';\nimport { I18nAndL10n } from '@application/i18n/i18n_and_l10n';\nimport { ScreenWhoIsRespondantController } from './screen_who_is_respondant.controller';\nimport { validateNin } from '@application/validators';\nimport { ViewBookingAnalyticActions, ViewBookingController } from '../view_booking.controller';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\n\nexport const ScreenWhoIsRespondant = withNewContainer(function ScreenWhoIsRespondant() {\n\tconst controller = useResolveController(ScreenWhoIsRespondantController);\n\tconst analytic = useAnalyticContext();\n\tconst data = controller.data.value;\n\n\tfunction handleSubmit(data: CellulaFormSubmitData) {\n\t\tcontroller.submit({\n\t\t\trespondentType: data.respondentType === 'representative' ? 'representative' : 'me',\n\t\t\trepresentativeNin: data.representativeNin ?? null,\n\t\t});\n\t}\n\n\tfunction handleInvalidSubmit() {\n\t\tanalytic.trackEvent(ViewBookingAnalyticActions.FormIsInvalid);\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content />\n\n\t\t\t<Flex grow={1} gap={tokens.spacing.x2}>\n\t\t\t\t<Form.Root\n\t\t\t\t\toptions={{\n\t\t\t\t\t\tdefaultValues: {\n\t\t\t\t\t\t\trespondentType: data.respondentType,\n\t\t\t\t\t\t\trepresentativeNin: data.representativeNin,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tmode: 'onBlur',\n\t\t\t\t\t}}\n\t\t\t\t\tonSubmit={handleSubmit}\n\t\t\t\t\tonInvalid={handleInvalidSubmit}\n\t\t\t\t>\n\t\t\t\t\t<Flex grow={1} gap={tokens.spacing.x2}>\n\t\t\t\t\t\t<Title title={withTranslation('View.Booking.ScreenWhoIsRespondant.Title')} titleSize='small' />\n\t\t\t\t\t\t<ScreenWhoIsRespondantFormInputs />\n\t\t\t\t\t</Flex>\n\n\t\t\t\t\t<ButtonArrange>\n\t\t\t\t\t\t<Form.SubmitButton onClick={() => analytic.trackEvent('Clicked next button')}>\n\t\t\t\t\t\t\t{withTranslation('PW.Common.Next')}\n\t\t\t\t\t\t</Form.SubmitButton>\n\t\t\t\t\t</ButtonArrange>\n\t\t\t\t</Form.Root>\n\t\t\t</Flex>\n\t\t</>\n\t);\n});\n\nfunction ScreenWhoIsRespondantFormInputs() {\n\tconst controller = useResolveController(ScreenWhoIsRespondantController);\n\tconst viewBookingController = useResolveController(ViewBookingController);\n\tconst analytic = useAnalyticContext();\n\tconst formContext = useFormContext();\n\tconst respondentType = formContext?.control.watch('respondentType');\n\n\tfunction handleRespondentTypeChange() {\n\t\tconst value = formContext?.control.getValues('respondentType');\n\t\tanalytic.trackEvent(`Changed \"RespondentType\" to \"${value}\"`);\n\t}\n\n\tfunction handleRepresentativeNinChange() {\n\t\tanalytic.trackEvent(`Changed \"RepresentativeNin\"`);\n\t}\n\n\treturn (\n\t\t<Flex gap={tokens.spacing.x2}>\n\t\t\t<InputRadio.Root\n\t\t\t\tlabel={withTranslation('View.Booking.ScreenWhoIsRespondant.Input.Label.WhoIsRespondant')}\n\t\t\t\tvariant='outlined'\n\t\t\t\trequired\n\t\t\t\tname='respondentType'\n\t\t\t\toptions={{\n\t\t\t\t\trequired: I18nAndL10n.translate('View.Booking.ScreenWhoIsRespondant.ValidationError.Required.WhoIsRespondant'),\n\t\t\t\t}}\n\t\t\t\tonChange={handleRespondentTypeChange}\n\t\t\t>\n\t\t\t\t<InputRadio.Item label={withTranslation('View.Booking.ScreenWhoIsRespondant.Option.Me')} value='me' />\n\t\t\t\t<InputRadio.Item label={withTranslation('View.Booking.ScreenWhoIsRespondant.Option.Representative')} value='representative' />\n\t\t\t</InputRadio.Root>\n\t\t\t{respondentType === 'representative' ? (\n\t\t\t\t<InputText\n\t\t\t\t\tlabel={withTranslation('Form.Input.Label.Nin')}\n\t\t\t\t\tname='representativeNin'\n\t\t\t\t\trequired\n\t\t\t\t\tdescription={withTranslation('View.Booking.ScreenWhoIsRespondant.RepresentativeNin.Description')}\n\t\t\t\t\tplaceholder={controller.data.value.representativeNinPlaceholder}\n\t\t\t\t\tonBlur={handleRepresentativeNinChange}\n\t\t\t\t\toptions={{\n\t\t\t\t\t\trequired: I18nAndL10n.translate('Form.ValidationError.Required.Nin'),\n\t\t\t\t\t\tvalidate: {\n\t\t\t\t\t\t\tnin: (value) => {\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\tvalidateNin(viewBookingController.getFlowData().currentCountry, value) ||\n\t\t\t\t\t\t\t\t\tI18nAndL10n.translate('Form.ValidationError.Format.Nin')\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t) : null}\n\t\t</Flex>\n\t);\n}\n","import { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { IllustrativeView } from '@component/illustrative_view.component';\nimport { TopBar } from '@component/top_bar.component';\nimport { RouterService } from '@cortex-shim/router.service';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { useEffect } from 'react';\nimport { Route, Routes, useParams } from 'react-router';\n\nexport function ScreenDone() {\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content goBack />\n\t\t\t<Routes>\n\t\t\t\t<Route path=':ticket' element={<DoneInner />} />\n\t\t\t\t<Route path='*' element={<DoneInner />} />\n\t\t\t</Routes>\n\t\t</>\n\t);\n}\n\nfunction DoneInner() {\n\tconst { ticket } = useParams();\n\tconst routerService = useResolve(RouterService);\n\tconst analyticCtx = useAnalyticContext();\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tanalyticCtx.service.trackPageView({\n\t\t\t\tcustomTitle: 'Booking: Done',\n\t\t\t});\n\t\t},\n\t\t[analyticCtx],\n\t);\n\n\tfunction handleNextClick() {\n\t\tanalyticCtx.trackEvent('Clicked', 'Go to appointment button');\n\n\t\tif (ticket) {\n\t\t\trouterService.navigateByUrl(`/visits/video/${ticket}`);\n\t\t} else {\n\t\t\trouterService.navigateByUrl('/visits');\n\t\t}\n\n\t\t// TODO: Remove when angular is gone!\n\t\tif (\n\t\t\t(window as typeof window & { __TEMP__overrideNavigation: Record<string, unknown> | undefined })['__TEMP__overrideNavigation'] !=\n\t\t\tnull\n\t\t) {\n\t\t\twindow.location.reload();\n\t\t}\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content onAbort={null} />\n\t\t\t<IllustrativeView\n\t\t\t\ttitle={withTranslation('View.Booking.ScreenDone.Title')}\n\t\t\t\tdescription={withTranslation('View.Booking.ScreenDone.Description')}\n\t\t\t\tillustration='messageSent'\n\t\t\t\tcallToAction={withTranslation('View.Booking.ScreenDone.Button')}\n\t\t\t\tcallToActionCallback={handleNextClick}\n\t\t\t/>\n\t\t</>\n\t);\n}\n","import { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { Flex, Button } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { TopBar } from '@component/top_bar.component';\nimport { useResolveController } from '@visiba-cortex/instantiation';\nimport { useEffect } from 'react';\nimport { ViewBookingController } from '../view_booking.controller';\nimport { Title } from '@component/title.component';\nimport styled from 'styled-components';\nimport { Illustration } from '@component/illustration/mod';\nimport { ButtonArrange } from '@component/button_arrange.component';\n\nconst elements = {\n\tcontainer: styled(Flex)`\n\t\ttext-align: center;\n\t\tmax-width: 400px;\n\t`,\n\tillustration: styled(Illustration)`\n\t\twidth: 200px;\n\t\tmax-width: 100%;\n\t`,\n};\n\nexport function ScreenError() {\n\tconst controller = useResolveController(ViewBookingController);\n\tconst analytics = useAnalyticContext();\n\n\tfunction handleRestart() {\n\t\tanalytics.trackEvent('Clicked start over');\n\t\tcontroller.goToReceptionHome();\n\n\t\t// TODO: Remove when angular is gone!\n\t\tif (\n\t\t\t(window as typeof window & { __TEMP__overrideNavigation: Record<string, unknown> | undefined })['__TEMP__overrideNavigation'] !=\n\t\t\tnull\n\t\t) {\n\t\t\twindow.location.reload();\n\t\t}\n\t}\n\n\tuseEffect(\n\t\tfunction whenMounted() {\n\t\t\tanalytics.service.trackPageView({\n\t\t\t\tcustomTitle: 'Booking: Error',\n\t\t\t});\n\t\t},\n\t\t[analytics],\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content onAbort={null} />\n\t\t\t<Flex gap={tokens.spacing.x4} grow={1} align='center' justify='center'>\n\t\t\t\t<elements.container align='center' gap={tokens.spacing.x2_5} grow={1}>\n\t\t\t\t\t<elements.illustration type='error' />\n\t\t\t\t\t<Title\n\t\t\t\t\t\ttitle={withTranslation('View.Booking.ErrorInterrupted.Title')}\n\t\t\t\t\t\ttitleSize='small'\n\t\t\t\t\t\tdescription={withTranslation('View.Booking.ErrorInterrupted.Body')}\n\t\t\t\t\t/>\n\t\t\t\t</elements.container>\n\t\t\t\t<Flex style={{ width: '100%' }}>\n\t\t\t\t\t<ButtonArrange justify='center'>\n\t\t\t\t\t\t<Button variant='primary' onClick={handleRestart}>\n\t\t\t\t\t\t\t{withTranslation('View.Booking.ErrorInterrupted.Button')}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</ButtonArrange>\n\t\t\t\t</Flex>\n\t\t\t</Flex>\n\t\t</>\n\t);\n}\n","import { AnalyticService, AnalyticCategories } from '@application/analytic/analytic.service';\nimport { AnalyticProvider, useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { useTitle } from '@application/use_title';\nimport { Flex } from '@cellula/react';\nimport { TopBar } from '@component/top_bar.component';\nimport { useResolve, useResolveController, withNewContainer } from '@visiba-cortex/instantiation';\nimport { Routes, Route } from 'react-router';\nimport { BookingScreen, ViewBookingController } from './view_booking.controller';\nimport { ViewNotFound } from '@view/view_not_found/view_not_found_route.component';\nimport { useEffect } from 'react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Shimmer } from '@component/new_shimmer.component';\nimport { Async } from '@component/async.component';\nimport { ScreenRfv } from './screen_rfv/mod';\nimport { ScreenLocation } from './screen_location/mod';\nimport { ScreenTimeSlot } from './screen_time_slot/mod';\nimport { ScreenForms } from './screen_forms/mod';\nimport { ScreenConclusion } from './screen_conclusion/mod';\nimport { ScreenWhoIsRespondant } from './screen_who_is_respondant/screen_who_is_respondant.component';\nimport { ScreenDone } from './screen_done/mod';\nimport { ScreenError } from './screen_error/mod';\n\ninterface Props {}\n\n/**\n * Entrypoint for Create New Message.\n *\n * **NOTE:**\n * Will isolate dependency resolution within its subtree.\n */\nexport const ViewBooking = withNewContainer(function ViewBooking(_: Props) {\n\tconst controller = useResolveController(ViewBookingController);\n\tconst analyticService = useResolve(AnalyticService);\n\n\tuseTitle(withTranslation('View.Booking.Title'));\n\n\tasync function handleAbort(): Promise<void> {\n\t\tanalyticService.trackEvent(AnalyticCategories.Booking, 'Clicked', 'Abort button');\n\n\t\tawait controller.abortBooking();\n\n\t\t// TODO: Remove when angular is gone!\n\t\tif (\n\t\t\t(window as typeof window & { __TEMP__overrideNavigation: Record<string, unknown> | undefined })['__TEMP__overrideNavigation'] !=\n\t\t\tnull\n\t\t) {\n\t\t\twindow.location.reload();\n\t\t}\n\t}\n\n\treturn (\n\t\t<AnalyticProvider category={AnalyticCategories.Booking}>\n\t\t\t<Flex grow='1'>\n\t\t\t\t<TopBar.Content title={withTranslation('View.Booking.Title')} onAbort={handleAbort} />\n\n\t\t\t\t<Async derive={controller.flowData} fallback={<Skeleton />} catch={<ScreenError />}>\n\t\t\t\t\t{() => (\n\t\t\t\t\t\t<Routes>\n\t\t\t\t\t\t\t<Route index element={<ViewBookingSetup />} />\n\t\t\t\t\t\t\t<Route path='*' element={<ViewBookingRoutes />} />\n\t\t\t\t\t\t</Routes>\n\t\t\t\t\t)}\n\t\t\t\t</Async>\n\t\t\t</Flex>\n\t\t</AnalyticProvider>\n\t);\n});\n\nfunction ViewBookingSetup() {\n\tconst controller = useResolveController(ViewBookingController);\n\tconst analytic = useAnalyticContext();\n\n\tuseEffect(\n\t\tfunction whenMounted() {\n\t\t\tanalytic.trackEvent('Setup new booking');\n\n\t\t\tasync function setup() {\n\t\t\t\tconst setupResult = await controller.setupNewBasket();\n\n\t\t\t\tif (setupResult.err) {\n\t\t\t\t\tcontroller.goToScreen(BookingScreen.Error);\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsetup();\n\t\t},\n\t\t[controller, analytic],\n\t);\n\n\treturn <></>;\n}\n\nfunction ViewBookingRoutes() {\n\tconst controller = useResolveController(ViewBookingController);\n\n\tuseEffect(\n\t\tfunction whenMounted() {\n\t\t\tcontroller.restoreBasket();\n\t\t\tcontroller.loadSettings();\n\t\t},\n\t\t[controller],\n\t);\n\n\tif (\n\t\tcontroller.flowData.value.flowState === 'pending' ||\n\t\tcontroller.basketReady.value === false ||\n\t\tcontroller.flowSettings.value.flowState === 'pending'\n\t) {\n\t\treturn <Skeleton />;\n\t}\n\n\treturn (\n\t\t<Routes>\n\t\t\t<Route path='/who-is-respondant/*' element={<ScreenWhoIsRespondant />} />\n\t\t\t<Route path='/reason-for-visit/*' element={<ScreenRfv />} />\n\t\t\t<Route path='/location/*' element={<ScreenLocation />} />\n\t\t\t<Route path='/time-slot/*' element={<ScreenTimeSlot />} />\n\t\t\t<Route path='/forms/*' element={<ScreenForms />} />\n\t\t\t<Route path='/conclusion/*' element={<ScreenConclusion />} />\n\t\t\t<Route path='/done/*' element={<ScreenDone />} />\n\t\t\t<Route path='/error/*' element={<ScreenError />} />\n\t\t\t<Route path='/*' element={<ViewNotFound />} />\n\t\t</Routes>\n\t);\n}\n\nexport function Skeleton() {\n\treturn (\n\t\t<Flex gap={tokens.spacing.x3} grow='1'>\n\t\t\t<Shimmer height={40} width='50%' />\n\n\t\t\t<Flex gap={tokens.spacing.x0_5}>\n\t\t\t\t<Shimmer height={15} width='30%' />\n\t\t\t\t<Shimmer height={15} width='80%' />\n\t\t\t\t<Shimmer height={15} width='60%' />\n\t\t\t\t<Shimmer height={15} width='70%' />\n\t\t\t</Flex>\n\t\t</Flex>\n\t);\n}\n","import { AfterViewInit, Component, ElementRef, NgModule, NgZone, OnDestroy, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { RouterModule, Routes as AngularRoutes } from '@angular/router';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { Root, createRoot } from 'react-dom/client';\nimport { ViewBooking } from '../../../patient/src/views/view_booking/view_booking.component';\nimport { Route, Routes } from 'react-router';\nimport { sharedResolution } from '@public/src/shared_resolution';\nimport { LocationSelectorService } from '@public/src/application/services/location_selector.service';\nimport { OutletPage } from '@component/outlet_page.component';\nimport { ProgrammaticBrowserRouter } from '@cortex-shim/programmatic_browser_router.component';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { PatientFlowContainer } from '@public/src/components/patient_flow_container.component';\nimport { ViewGuard } from '../app/Guards/view.guard';\nimport { SecurityLevel } from '../app/Constants/securityLevel';\n\nconst containerElementName = 'CreateNewMessageComponent';\nconst FULL_HEIGHT_CLASS_NAME = 'js-fullHeight';\n\n@Component({\n\tstandalone: false,\n\tstyleUrls: ['./css/create-new-message.wrapper.scss'],\n\tselector: 'create-new-message-component',\n\ttemplate: ` <semantic-view hideOnMobile=\"true\">\n\t\t<header-component header></header-component>\n\n\t\t<div class=\"wrapper-container\" #${containerElementName}></div>\n\n\t\t<footer-component footer></footer-component>\n\t</semantic-view>`,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class BookingWrapper implements OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(private readonly ngZone: NgZone) {\n\t\t// Empty\n\t}\n\n\tngAfterViewInit() {\n\t\tdocument.body.classList.add(FULL_HEIGHT_CLASS_NAME);\n\t\tthis.render();\n\t}\n\n\tngOnDestroy() {\n\t\tdocument.body.classList.remove(FULL_HEIGHT_CLASS_NAME);\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate async render() {\n\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\t\tconst UniversalConfigService = sharedResolution.resolve(UniversalConfig);\n\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tconst split = locationSelectorService.location.route.split('/');\n\t\tsplit.splice(0, 1);\n\t\tconst routeBase = split.join('/');\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper useGlobals>\n\t\t\t\t\t<PatientFlowContainer>\n\t\t\t\t\t\t<ProgrammaticBrowserRouter basename={UniversalConfigService.alias}>\n\t\t\t\t\t\t\t<Routes>\n\t\t\t\t\t\t\t\t<Route path={routeBase} element={<OutletPage />}>\n\t\t\t\t\t\t\t\t\t<Route path='booking/*' element={<ViewBooking />} />\n\t\t\t\t\t\t\t\t</Route>\n\t\t\t\t\t\t\t</Routes>\n\t\t\t\t\t\t</ProgrammaticBrowserRouter>\n\t\t\t\t\t</PatientFlowContainer>\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n\n/*\n\tAngular routes\n*/\nconst bookingWrapperRoutes: AngularRoutes = [\n\t{\n\t\tpath: '',\n\t\tcomponent: BookingWrapper,\n\t},\n\t{\n\t\tpath: `who-is-respondant`,\n\t\tcomponent: BookingWrapper,\n\t},\n\t{\n\t\tpath: `reason-for-visit`,\n\t\tcomponent: BookingWrapper,\n\t},\n\t{\n\t\tpath: `location`,\n\t\tcomponent: BookingWrapper,\n\t},\n\t{\n\t\tpath: `time-slot`,\n\t\tcomponent: BookingWrapper,\n\t},\n\t{\n\t\tpath: `time-slot/:locationId`,\n\t\tcomponent: BookingWrapper,\n\t},\n\t{\n\t\tpath: `forms`,\n\t\tcomponent: BookingWrapper,\n\t\tcanActivate: [ViewGuard],\n\t\tdata: { access: SecurityLevel.Client },\n\t},\n\t{\n\t\tpath: `forms/:formId`,\n\t\tcomponent: BookingWrapper,\n\t\tcanActivate: [ViewGuard],\n\t\tdata: { access: SecurityLevel.Client },\n\t},\n\t{\n\t\tpath: `forms/:formId/:formPageId`,\n\t\tcomponent: BookingWrapper,\n\t\tcanActivate: [ViewGuard],\n\t\tdata: { access: SecurityLevel.Client },\n\t},\n\t{\n\t\tpath: `conclusion`,\n\t\tcomponent: BookingWrapper,\n\t\tcanActivate: [ViewGuard],\n\t\tdata: { access: SecurityLevel.Client },\n\t},\n\t{\n\t\tpath: `done`,\n\t\tcomponent: BookingWrapper,\n\t\tcanActivate: [ViewGuard],\n\t\tdata: { access: SecurityLevel.Client },\n\t},\n];\n\nconst bookingWrapperRouting = RouterModule.forChild(bookingWrapperRoutes);\n\n/*\n\tAngular module\n*/\n@NgModule({\n\timports: [bookingWrapperRouting],\n\tproviders: [],\n\tdeclarations: [],\n})\nexport class BookingWrapperModule {}\n","import { createContext } from 'react';\n\ntype Stack = string[];\n\nexport interface ScreenContextState {\n\treadonly active: string | null;\n\treadonly screens: Set<string>;\n\treadonly protectedScreens: Set<string>;\n\treadonly screenStack: Readonly<Stack>;\n\treadonly target: string | undefined;\n\tactivate(link: string): void;\n\tdismiss(): void;\n}\n\nexport const ScreenContext = createContext<ScreenContextState>(undefined as unknown as ScreenContextState);\n","import { Fragment, ReactNode, useRef, useState } from 'react';\nimport { ScreenContext } from './_screen.context';\nimport styled from 'styled-components';\nimport { useScreenContext } from './use_screen.context';\nimport { useEffect } from 'react';\n\ninterface Props {\n\tchildren: ReactNode;\n\ttarget?: string;\n}\n\nconst Container = styled.div`\n\tdisplay: contents;\n\n\t&.is-hidden {\n\t\tdisplay: none;\n\t}\n`;\n\nexport function ScreenProvider({ target, children }: Props): JSX.Element {\n\tconst [active, setActive] = useState<string | null>(null);\n\tconst screensRef = useRef(new Set<string>());\n\tconst protectedScreensRef = useRef(new Set<string>());\n\tconst [screenStack, setScreenStack] = useState<string[]>([]);\n\n\tuseEffect(() => {\n\t\tif (active === null) return;\n\n\t\tsetScreenStack((prev) => {\n\t\t\tconst stack = [...prev];\n\t\t\tstack.push(active);\n\n\t\t\treturn stack;\n\t\t});\n\t}, [active]);\n\n\treturn (\n\t\t<ScreenContext.Provider\n\t\t\tvalue={{\n\t\t\t\ttarget,\n\t\t\t\tactive,\n\t\t\t\tscreenStack,\n\t\t\t\tprotectedScreens: protectedScreensRef.current,\n\t\t\t\tscreens: screensRef.current,\n\t\t\t\tactivate: (link) => {\n\t\t\t\t\tsetActive(link);\n\t\t\t\t},\n\t\t\t\tdismiss: () => {\n\t\t\t\t\tsetActive(null);\n\t\t\t\t},\n\t\t\t}}\n\t\t>\n\t\t\t<ScreenOrigin>{children}</ScreenOrigin>\n\t\t</ScreenContext.Provider>\n\t);\n}\n\ninterface ScreenOriginProps {\n\tchildren: ReactNode;\n}\n\nfunction ScreenOrigin({ children }: ScreenOriginProps): JSX.Element {\n\tconst { active, protectedScreens, target } = useScreenContext();\n\tconst canHideMain = active != null && !protectedScreens.has(active);\n\n\tuseEffect(() => {\n\t\tif (!window.__TEMP__ || target == null) return;\n\n\t\tconst element = document.getElementById(target) as HTMLDivElement;\n\t\tif (canHideMain) {\n\t\t\telement.classList.add('is-hidden');\n\t\t\telement.tabIndex = -1;\n\t\t} else {\n\t\t\telement.classList.remove('is-hidden');\n\t\t\t// Reason: Angular hacks\n\t\t\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t\t\t// @ts-ignore\n\t\t\telement.tabIndex = undefined;\n\t\t}\n\n\t\treturn () => {\n\t\t\tconst element = document.getElementById(target) as HTMLDivElement;\n\t\t\telement.classList.remove('is-hidden');\n\t\t\t// Reason: Angular hacks\n\t\t\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t\t\t// @ts-ignore\n\t\t\telement.tabIndex = undefined;\n\t\t};\n\t}, [canHideMain, target]);\n\n\tif (window.__TEMP__) {\n\t\treturn <Fragment>{children}</Fragment>;\n\t}\n\n\treturn (\n\t\t<Container className={canHideMain ? 'is-hidden' : undefined} tabIndex={canHideMain ? -1 : undefined}>\n\t\t\t{children}\n\t\t</Container>\n\t);\n}\n","import { useContext } from 'react';\nimport { ScreenContext, ScreenContextState } from './_screen.context';\n\nexport function useScreenContext(): ScreenContextState {\n\tconst screenContext = useContext(ScreenContext);\n\tif (screenContext === undefined) {\n\t\tthrow new Error('useScreenContext must be used within a ScreenProvider');\n\t}\n\n\treturn screenContext;\n}\n","import { jsx } from 'react/jsx-runtime';\nimport { useContext, useMemo } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { loadExternalIsValidProp } from '../../render/dom/utils/filter-props.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\n\n/**\n * `MotionConfig` is used to set configuration options for all children `motion` components.\n *\n * ```jsx\n * import { motion, MotionConfig } from \"framer-motion\"\n *\n * export function App() {\n * return (\n * <MotionConfig transition={{ type: \"spring\" }}>\n * <motion.div animate={{ x: 100 }} />\n * </MotionConfig>\n * )\n * }\n * ```\n *\n * @public\n */\nfunction MotionConfig({ children, isValidProp, ...config }) {\n isValidProp && loadExternalIsValidProp(isValidProp);\n /**\n * Inherit props from any parent MotionConfig components\n */\n config = { ...useContext(MotionConfigContext), ...config };\n /**\n * Don't allow isStatic to change between renders as it affects how many hooks\n * motion components fire.\n */\n config.isStatic = useConstant(() => config.isStatic);\n /**\n * Creating a new config context object will re-render every `motion` component\n * every time it renders. So we only want to create a new one sparingly.\n */\n const context = useMemo(() => config, [JSON.stringify(config.transition), config.transformPagePoint, config.reducedMotion]);\n return (jsx(MotionConfigContext.Provider, { value: context, children: children }));\n}\n\nexport { MotionConfig };\n","import { useService } from '@visiba-cortex/instantiation';\nimport { Fragment, ReactNode } from 'react';\nimport { LiveAnnouncerController } from './live_announcer.controller';\n\ninterface Props {\n\tchildren: ReactNode;\n}\n\nexport function LiveAnnouncerProvider({ children }: Props): JSX.Element {\n\t// We're doing it this way, with the initialization, just to prepare the DOM elements.\n\tuseService(LiveAnnouncerController);\n\n\treturn <Fragment>{children}</Fragment>;\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { newApplicationState, FlowState, IState } from '@modules/state/state';\nimport shortid from 'shortid';\nimport { signal } from '@preact/signals-react';\n\nexport enum DialogHandlerType {\n\tDialog,\n}\n\nexport interface DialogHandlerSpec<T extends DialogHandlerType> {\n\tjsx: JSX.Element;\n\ttype: T;\n\tid: string;\n}\n\nexport interface DialogHandlerStackStateValue<T extends DialogHandlerType> {\n\t[key: string]: DialogHandlerSpec<T>;\n}\n\ninterface Stack<T extends DialogHandlerType> {\n\treadonly state: IState<DialogHandlerStackStateValue<T>>;\n\tcreateSpecification(jsx: JSX.Element): DialogHandlerSpec<T>;\n\tinjectSpecification(spec: DialogHandlerSpec<DialogHandlerType.Dialog>): void;\n\tremove(): void;\n}\n\n/** Stack implementation for modal */\nclass DialogStack implements Stack<DialogHandlerType.Dialog> {\n\tpublic readonly state = newApplicationState<DialogHandlerStackStateValue<DialogHandlerType.Dialog>>({}, FlowState.ACCESSIBLE);\n\tpublic currentActiveModal: keyof DialogHandlerStackStateValue<DialogHandlerType.Dialog> | null = null;\n\n\t/** Creates a modal specification */\n\tpublic createSpecification(jsx: JSX.Element): DialogHandlerSpec<DialogHandlerType.Dialog> {\n\t\tconst dialog: DialogHandlerSpec<DialogHandlerType.Dialog> = {\n\t\t\tjsx,\n\t\t\ttype: DialogHandlerType.Dialog,\n\t\t\tid: shortid(),\n\t\t};\n\n\t\treturn dialog;\n\t}\n\n\t/** Updates the application state with the new spec, replacing current active modal */\n\tpublic injectSpecification(spec: DialogHandlerSpec<DialogHandlerType.Dialog>): void {\n\t\tthis.currentActiveModal = spec.id;\n\t\tthis.state.mutate(() => {\n\t\t\treturn {\n\t\t\t\t[spec.id]: spec,\n\t\t\t};\n\t\t});\n\t}\n\n\t/** Removes current active modal and updates the state */\n\tpublic remove(): void {\n\t\tthis.state.mutate((prev) => {\n\t\t\tif (this.currentActiveModal !== null) {\n\t\t\t\tdelete prev[this.currentActiveModal];\n\n\t\t\t\tthis.currentActiveModal = null;\n\t\t\t}\n\n\t\t\treturn prev;\n\t\t});\n\t}\n}\n\n@Singleton()\nexport class DialogHandlerController {\n\tpublic readonly renderGlobal = signal(true);\n\tpublic readonly dialogStack = new DialogStack();\n\n\t// May only be one modal present at once\n\tpublic get currentActiveModal(): keyof DialogHandlerStackStateValue<DialogHandlerType.Dialog> | null {\n\t\treturn this.dialogStack.currentActiveModal;\n\t}\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\tpublic addDialog(jsx: JSX.Element): void {\n\t\tthis.shift();\n\t\tconst dialog = this.dialogStack.createSpecification(jsx);\n\t\tthis.dialogStack.injectSpecification(dialog);\n\t}\n\n\tpublic shift(): void {\n\t\tthis.dialogStack.remove();\n\t}\n\n\tpublic setGlobalRender(): void {\n\t\tthis.renderGlobal.value = true;\n\t}\n\n\tpublic setScopedRender(): void {\n\t\tthis.renderGlobal.value = false;\n\t}\n}\n","import { Fragment } from 'react';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { DialogHandlerController } from './dialog_handler.controller';\nimport { useApplicationState } from '@modules/state/state_hook';\n\nexport function DialogHandler(): JSX.Element | null {\n\tconst controller = useService(DialogHandlerController);\n\tconst [dialog] = useApplicationState(controller.dialogStack.state);\n\n\tif (controller.currentActiveModal == null) {\n\t\treturn null;\n\t}\n\n\treturn <Fragment>{controller.renderGlobal.value ? dialog[controller.currentActiveModal].jsx : null}</Fragment>;\n}\n","import { ReactNode, useRef, useState } from 'react';\nimport { ScreenContext } from './_screen.context';\nimport styled from 'styled-components';\nimport { useScreenContext } from './use_screen.context';\nimport { useEffect } from 'react';\n\ninterface Props {\n\tchildren: ReactNode;\n\ttarget?: string;\n}\n\nconst Container = styled.div`\n\tdisplay: contents;\n\n\t&.is-hidden {\n\t\tdisplay: none;\n\t}\n`;\n\nexport function ScreenProvider({ target, children }: Props): JSX.Element {\n\tconst [active, setActive] = useState<string | null>(null);\n\tconst screensRef = useRef(new Set<string>());\n\tconst protectedScreensRef = useRef(new Set<string>());\n\tconst [screenStack, setScreenStack] = useState<string[]>([]);\n\n\tuseEffect(() => {\n\t\tif (active === null) return;\n\n\t\tsetScreenStack((prev) => {\n\t\t\tconst stack = [...prev];\n\t\t\tstack.push(active);\n\n\t\t\treturn stack;\n\t\t});\n\t}, [active]);\n\n\treturn (\n\t\t<ScreenContext.Provider\n\t\t\tvalue={{\n\t\t\t\ttarget,\n\t\t\t\tactive,\n\t\t\t\tscreenStack,\n\t\t\t\tprotectedScreens: protectedScreensRef.current,\n\t\t\t\tscreens: screensRef.current,\n\t\t\t\tactivate: (link) => {\n\t\t\t\t\tsetActive(link);\n\t\t\t\t},\n\t\t\t\tdismiss: () => {\n\t\t\t\t\tsetActive(null);\n\t\t\t\t},\n\t\t\t}}\n\t\t>\n\t\t\t<ScreenOrigin>{children}</ScreenOrigin>\n\t\t</ScreenContext.Provider>\n\t);\n}\n\ninterface ScreenOriginProps {\n\tchildren: ReactNode;\n}\n\nfunction ScreenOrigin({ children }: ScreenOriginProps): JSX.Element {\n\tconst { active, protectedScreens, target } = useScreenContext();\n\tconst canHideMain = active != null && !protectedScreens.has(active);\n\n\tuseEffect(() => {\n\t\tif (target == null) return;\n\n\t\tconst element = document.getElementById(target) as HTMLDivElement;\n\t\tif (canHideMain) {\n\t\t\telement.classList.add('is-hidden');\n\t\t\telement.tabIndex = -1;\n\t\t} else {\n\t\t\telement.classList.remove('is-hidden');\n\t\t\t// Reason: Angular hacks\n\t\t\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t\t\t// @ts-ignore\n\t\t\telement.tabIndex = undefined;\n\t\t}\n\n\t\treturn () => {\n\t\t\tconst element = document.getElementById(target) as HTMLDivElement;\n\t\t\telement.classList.remove('is-hidden');\n\t\t\t// Reason: Angular hacks\n\t\t\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t\t\t// @ts-ignore\n\t\t\telement.tabIndex = undefined;\n\t\t};\n\t}, [canHideMain, target]);\n\n\treturn (\n\t\t<Container className={canHideMain ? 'is-hidden' : undefined} tabIndex={canHideMain ? -1 : undefined}>\n\t\t\t{children}\n\t\t</Container>\n\t);\n}\n","import styled from 'styled-components';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Button, Flex, restrictedZIndexes, Text, TextLink } from '@cellula/react';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { ConsentService, UserConsent } from './consent.service';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { ConsentDialog } from './consent_dialog.component';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\n\nexport function Consent() {\n\tconst consentService = useResolve(ConsentService);\n\tconst universalConfig = useResolve(UniversalConfig);\n\tconst analyticService = useResolve(AnalyticService);\n\n\tfunction handleAcceptClick() {\n\t\tconsentService.acceptConsent(UserConsent.Analytic, UserConsent.Functional);\n\n\t\tanalyticService.trackEvent(AnalyticCategories.CookieConsent, 'In banner, user accepted additional cookies');\n\t}\n\n\tfunction handleDenyClick() {\n\t\tconsentService.acceptConsent();\n\n\t\tanalyticService.trackEvent(AnalyticCategories.CookieConsent, 'In banner, user denied additional cookies');\n\t}\n\n\tfunction handleSettingsClick() {\n\t\tanalyticService.trackEvent(AnalyticCategories.CookieConsent, 'In banner, user pressed settings');\n\t}\n\n\treturn (\n\t\t<StyledConcentCard>\n\t\t\t<Flex gap={tokens.spacing.x2}>\n\t\t\t\t<Text.p variant='bodySmallRegular'>{withTranslation('Component.Consent.Message')}</Text.p>\n\n\t\t\t\t<Text variant='bodySmallRegular'>\n\t\t\t\t\t{withTranslation('Component.Consent.Dialog.ReadMore')}{' '}\n\t\t\t\t\t<TextLink\n\t\t\t\t\t\tsize='small'\n\t\t\t\t\t\thref={universalConfig.alias + '/cookie-policy'}\n\t\t\t\t\t\ttarget='_blank'\n\t\t\t\t\t\ticon='linkOut'\n\t\t\t\t\t\ticonPosition='trailing'\n\t\t\t\t\t>\n\t\t\t\t\t\t{withTranslation('Component.Footer.CookiePolicy')}\n\t\t\t\t\t</TextLink>\n\t\t\t\t</Text>\n\t\t\t</Flex>\n\n\t\t\t<Flex direction='row' gap={tokens.size.x1} justify='space-between'>\n\t\t\t\t<Flex direction='row' gap={tokens.size.x1}>\n\t\t\t\t\t<Button onClick={handleDenyClick} size='xSmall' variant='secondary'>\n\t\t\t\t\t\t{withTranslation('Component.Consent.CTA.Deny')}\n\t\t\t\t\t</Button>\n\n\t\t\t\t\t<ConsentDialog\n\t\t\t\t\t\ttrigger={\n\t\t\t\t\t\t\t<Button onClick={handleSettingsClick} size='xSmall' variant='secondary'>\n\t\t\t\t\t\t\t\t{withTranslation('Component.Consent.CTA.Settings')}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t</Flex>\n\t\t\t\t<Button onClick={handleAcceptClick} size='xSmall' variant='primary'>\n\t\t\t\t\t{withTranslation('Component.Consent.CTA.AcceptAll')}\n\t\t\t\t</Button>\n\t\t\t</Flex>\n\t\t</StyledConcentCard>\n\t);\n}\n\nconst StyledConcentCard = styled.div`\n\tpointer-events: auto;\n\tdisplay: flex;\n\tmax-width: 600px;\n\tflex-direction: column;\n\tjustify-content: start;\n\toverflow: hidden;\n\tbackground-color: ${tokens.color.bg.surface};\n\tborder-radius: ${tokens.borderRadius.medium};\n\tbox-shadow: ${tokens.elevation.flying};\n\tpadding: ${tokens.spacing.x2};\n\tborder: 1px solid ${tokens.color.border.default};\n\tgap: ${tokens.spacing.x2};\n\tz-index: ${restrictedZIndexes.DANGER};\n`;\n","import { useResolve } from '@visiba-cortex/instantiation';\nimport { PropsWithChildren } from 'react';\nimport { ConsentService } from './consent.service';\nimport { Consent } from './consent.component';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport styled from 'styled-components';\nimport { tokens } from '@cellula/react-theme-patient';\n\nexport function ConsentProvider(props: PropsWithChildren) {\n\tconst controller = useResolve(ConsentService);\n\n\treturn (\n\t\t<>\n\t\t\t{props.children}\n\n\t\t\t<StyledConsentProvider>\n\t\t\t\t<AnimatePresence initial={false}>\n\t\t\t\t\t{controller.hasRevision.value ? null : (\n\t\t\t\t\t\t<StyledConsentAnimation\n\t\t\t\t\t\t\ttransition={{\n\t\t\t\t\t\t\t\topacity: {\n\t\t\t\t\t\t\t\t\tduration: 0.1,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttype: 'spring',\n\t\t\t\t\t\t\t\tdamping: 25,\n\t\t\t\t\t\t\t\tstiffness: 100,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tanimate={{\n\t\t\t\t\t\t\t\topacity: 1,\n\t\t\t\t\t\t\t\ty: 0,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\texit={{\n\t\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Consent />\n\t\t\t\t\t\t</StyledConsentAnimation>\n\t\t\t\t\t)}\n\t\t\t\t</AnimatePresence>\n\t\t\t</StyledConsentProvider>\n\t\t</>\n\t);\n}\n\nconst StyledConsentProvider = styled.div`\n\tposition: fixed;\n\tbottom: ${tokens.spacing.x2};\n\tleft: ${tokens.spacing.x2};\n\tright: ${tokens.spacing.x2};\n\tpointer-events: none;\n\tz-index: 1;\n\n\t${tokens.breakpointQuery.small} {\n\t\tleft: ${tokens.spacing.x2};\n\t\tmax-width: 480px;\n\t}\n`;\n\nconst StyledConsentAnimation = styled(motion.div)``;\n","import { CellulaProvider } from '@cellula/react';\nimport { useCurrentLocation } from '@src/application/use_current_location';\nimport { PopoverManager } from '@components/popover_manager.component';\nimport { LocalPushNotifications } from '@components/notification_manager/mod';\nimport { BannerNotifications } from '@components/notification_manager/mod';\nimport { Fragment, PropsWithChildren } from 'react';\nimport { ScreenProvider } from '@components/screen/screen.provider';\nimport { theme } from '@cellula/react-theme-patient';\nimport { MotionConfig } from 'framer-motion';\nimport { LiveAnnouncerProvider } from '@public/src/components/live_announcer/mod';\nimport { DialogHandler } from '@public/src/application/dialog_handler/mod';\nimport { I18nAndL10n } from '@public/src/modules/i18n_and_l10n/mod';\nimport { NewContainer, useResolve } from '@visiba-cortex/instantiation';\nimport { sharedResolution } from '../../src/shared_resolution';\nimport { ScreenProvider as ScreenProvider_REMOVE_THE_OTHER_ONE } from '@component/screen/screen.provider';\nimport { ConsentProvider } from '@component/consent/mod';\nimport type { TranslationDictionaryCellulaWeb } from '@visiba/translation-dictionaries';\nimport { UniversalConfig } from '@application/universal_config.service';\n\ninterface Props {\n\tuseGlobals?: boolean;\n\tchildren: React.ReactNode | React.ReactNode[];\n}\n\nexport function CellulaProviderWrapper(props: Props): JSX.Element | null {\n\treturn (\n\t\t<NewContainer parentContainer={sharedResolution} useInheritanceLink>\n\t\t\t<GlobalProviders {...props} />\n\t\t</NewContainer>\n\t);\n}\n\nfunction GlobalProviders({ children, useGlobals = false }: Props) {\n\tconst universalConfig = useResolve(UniversalConfig);\n\tconst [, config] = useCurrentLocation();\n\n\tif (config == null) return null;\n\n\tconst overrides = config.theme ?? ({} as any);\n\n\tconst ConsentProviderOrFragment = __visiba_feature_flags__['PatientWeb.UseNewConsent'] ? ConsentProvider : Fragment;\n\n\treturn (\n\t\t<LiveAnnouncerProvider>\n\t\t\t<MotionConfig reducedMotion='user'>\n\t\t\t\t<CellulaProvider\n\t\t\t\t\ttokenOverrides={{\n\t\t\t\t\t\tcolorPrimary100: (overrides['primary_100'] as string) ?? '#F8F8F9',\n\t\t\t\t\t\tcolorPrimary200: (overrides['primary_200'] as string) ?? '#EFEFF1',\n\t\t\t\t\t\tcolorPrimary300: (overrides['primary_300'] as string) ?? '#E1E2E5',\n\t\t\t\t\t\tcolorPrimary400: (overrides['primary_400'] as string) ?? '#D1D3D7',\n\t\t\t\t\t\tcolorPrimary500: (overrides['primary_500'] as string) ?? '#B3B7BE',\n\t\t\t\t\t\tcolorPrimary600: (overrides['primary_600'] as string) ?? '#9095A0',\n\t\t\t\t\t\tcolorPrimary700: (overrides['primary_700'] as string) ?? '#6A6F7B',\n\t\t\t\t\t\tcolorPrimary800: (overrides['primary_800'] as string) ?? '#555962',\n\t\t\t\t\t\tcolorPrimary800t08: ((overrides['primary_800'] as string) ?? '#555962') + '14', // Adding opacity 8% from primary 800\n\t\t\t\t\t\tcolorPrimary800t12: ((overrides['primary_800'] as string) ?? '#555962') + '1F', // Adding opacity 12% from primary 800\n\t\t\t\t\t\tcolorPrimary900: (overrides['primary_900'] as string) ?? '#464951',\n\t\t\t\t\t\tcolorPrimary1000: (overrides['primary_1000'] as string) ?? '#2F3136',\n\t\t\t\t\t\tcolorAccent100: (overrides['accent_100'] as string) ?? '#F8F8F9',\n\t\t\t\t\t\tcolorAccent200: (overrides['accent_200'] as string) ?? '#EFEFF1',\n\t\t\t\t\t\tcolorAccent300: (overrides['accent_300'] as string) ?? '#E1E2E5',\n\t\t\t\t\t\tcolorAccent400: (overrides['accent_400'] as string) ?? '#D1D3D7',\n\t\t\t\t\t\tcolorAccent500: (overrides['accent_500'] as string) ?? '#B3B7BE',\n\t\t\t\t\t\tcolorAccent600: (overrides['accent_600'] as string) ?? '#9095A0',\n\t\t\t\t\t\tcolorAccent700: (overrides['accent_700'] as string) ?? '#6A6F7B',\n\t\t\t\t\t\tcolorAccent800: (overrides['accent_800'] as string) ?? '#555962',\n\t\t\t\t\t\tcolorAccent800t08: ((overrides['accent_800'] as string) ?? '#555962') + '14', // Adding opacity 8% from accent 800\n\t\t\t\t\t\tcolorAccent800t12: ((overrides['accent_800'] as string) ?? '#555962') + '1F', // Adding opacity 12% from accent 800\n\t\t\t\t\t\tcolorAccent900: (overrides['accent_900'] as string) ?? '#464951',\n\t\t\t\t\t\tcolorAccent1000: (overrides['accent_1000'] as string) ?? '#2F3136',\n\t\t\t\t\t}}\n\t\t\t\t\tlang={universalConfig.selectedLanguageCode.value}\n\t\t\t\t\ttheme={theme}\n\t\t\t\t\tprovidedInRoot\n\t\t\t\t>\n\t\t\t\t\t<ScreenProvider target='innerRoot'>\n\t\t\t\t\t\t<ConsentProviderOrFragment>\n\t\t\t\t\t\t\t<DialogHandler />\n\n\t\t\t\t\t\t\t{useGlobals ? (\n\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t<PopoverManager />\n\t\t\t\t\t\t\t\t\t<LocalPushNotifications />\n\t\t\t\t\t\t\t\t\t<BannerNotifications />\n\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t\t<REACT_ONLY_PATCH_WTF_IS_GOING_ON_WITH_THIS_CODE_BASE>{children}</REACT_ONLY_PATCH_WTF_IS_GOING_ON_WITH_THIS_CODE_BASE>\n\t\t\t\t\t\t</ConsentProviderOrFragment>\n\t\t\t\t\t</ScreenProvider>\n\t\t\t\t</CellulaProvider>\n\t\t\t</MotionConfig>\n\t\t</LiveAnnouncerProvider>\n\t);\n}\n\nfunction REACT_ONLY_PATCH_WTF_IS_GOING_ON_WITH_THIS_CODE_BASE(props: PropsWithChildren) {\n\treturn <ScreenProvider_REMOVE_THE_OTHER_ONE target='innerRoot'>{props.children}</ScreenProvider_REMOVE_THE_OTHER_ONE>;\n}\n","import { ErrorBoundary } from '@components/error_boundary.component';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { useTitle } from '@src/application/use_title';\nimport { lazy, Suspense } from 'react';\n\ninterface Props {}\n\nconst Inner = lazy(() => import('./_inner.component').then((module) => ({ default: module['Inner'] })));\n\nexport function ChangeUnit(_: Props): JSX.Element {\n\tuseTitle(withTranslation('PW.Component.ChangeUnit.Title'));\n\n\treturn (\n\t\t<ErrorBoundary>\n\t\t\t<Suspense fallback={null}>\n\t\t\t\t<Inner />\n\t\t\t</Suspense>\n\t\t</ErrorBoundary>\n\t);\n}\n","import {\n\tAfterViewInit,\n\tComponent,\n\tElementRef,\n\tNgZone,\n\tOnChanges,\n\tOnDestroy,\n\tSimpleChanges,\n\tViewChild,\n\tViewEncapsulation,\n} from '@angular/core';\nimport { ChangeUnit } from '@routes/change_unit/mod';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { Root, createRoot } from 'react-dom/client';\n\nconst containerElementName = 'reactHeaderComponent';\n\n@Component({\n\tstandalone: false,\n\tselector: 'change-unit-component',\n\ttemplate: `\n\t\t<semantic-view>\n\t\t\t<header-component header></header-component>\n\t\t\t<div class=\"wrapper-container\" #${containerElementName}></div>\n\t\t\t<footer-component footer></footer-component>\n\t\t</semantic-view>\n\t`,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class ChangeUnitWrapperComponent implements OnChanges, OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) public containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(private readonly ngZone: NgZone) {\n\t\t// Empty\n\t}\n\n\tngOnChanges(_: SimpleChanges): void {\n\t\tthis.render();\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.render();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate render() {\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper>\n\t\t\t\t\t<ChangeUnit />\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport { delay } from '@visiba/std';\nimport { signal } from '@preact/signals-react';\nimport { v4 } from 'uuid';\nimport { UserSettingsService } from '@feature/settings/user_settings.service';\nimport { I18nAndL10n } from '@application/i18n/mod';\nimport { AsyncSignalValue } from '@component/async.component';\n\n@Injectable()\nexport class CookiePolicyController {\n\tpublic readonly presentation = signal<AsyncSignalValue<{ chunks: ChunkVariants[] }>>({\n\t\tvalue: null,\n\t\tflowState: 'idle',\n\t});\n\n\tconstructor(private readonly userSettingsService: UserSettingsService) {\n\t\t// Empty\n\t}\n\n\tpublic async load(language?: I18nAndL10n.AvailableVisibaLocales) {\n\t\tif (language == null) {\n\t\t\tconst settings = this.userSettingsService.getSettings();\n\t\t\tlanguage = settings.selectedLanguage;\n\t\t}\n\n\t\tconst result = await this.getCookiePolicyLanguageFile(language);\n\t\tif (result.err != null) {\n\t\t\tthis.presentation.value = {\n\t\t\t\tvalue: null,\n\t\t\t\tflowState: 'error',\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst chunks = this.intoChunks(result.ok);\n\n\t\tthis.presentation.value = {\n\t\t\tvalue: {\n\t\t\t\tchunks: chunks,\n\t\t\t},\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n\n\tprivate intoChunks(data: LanguageJsonModel): ChunkVariants[] {\n\t\tconst parsedChunks: ChunkVariants[] = data.chunks.map((chunk) => {\n\t\t\tconst id = v4();\n\n\t\t\tif (chunk.title != null && chunk.body == null) {\n\t\t\t\treturn {\n\t\t\t\t\tid,\n\t\t\t\t\ttype: 'title',\n\t\t\t\t\theader: chunk.title,\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif (chunk.table != null) {\n\t\t\t\treturn {\n\t\t\t\t\tid,\n\t\t\t\t\ttype: 'table',\n\t\t\t\t\tbody: chunk.body ?? '',\n\t\t\t\t\thead: chunk.table.head,\n\t\t\t\t\trow: chunk.table.rows,\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif (chunk.body != null && chunk.table == null && chunk.title == null) {\n\t\t\t\treturn {\n\t\t\t\t\tid,\n\t\t\t\t\ttype: 'perceived',\n\t\t\t\t\tbody: chunk.body ?? '',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\tid,\n\t\t\t\ttype: 'section',\n\t\t\t\theader: chunk.title ?? '',\n\t\t\t\tbody: chunk.body ?? '',\n\t\t\t};\n\t\t});\n\n\t\treturn parsedChunks;\n\t}\n\n\tprivate async getCookiePolicyLanguageFile(language: I18nAndL10n.AvailableVisibaLocales): AsyncResult<LanguageJsonModel> {\n\t\t// Artificially delays this. It's best to not show any skeletons but we\n\t\t// don't use SSR right now and having it flicker is worse.\n\t\tawait delay(200);\n\n\t\ttry {\n\t\t\tif (language === 'sv') {\n\t\t\t\tconst request = import('./_cookie_policy_text_sv.json') as Promise<LanguageJsonModel>;\n\t\t\t\tconst data = await request;\n\n\t\t\t\treturn Ok(data);\n\t\t\t}\n\n\t\t\tif (language === 'fi') {\n\t\t\t\tconst request = import('./_cookie_policy_text_fi.json') as Promise<LanguageJsonModel>;\n\t\t\t\tconst data = await request;\n\n\t\t\t\treturn Ok(data);\n\t\t\t}\n\n\t\t\tconst request = import('./_cookie_policy_text_en.json') as Promise<LanguageJsonModel>;\n\t\t\tconst data = await request;\n\n\t\t\treturn Ok(data);\n\t\t} catch (error) {\n\t\t\treturn Err(new Error('Failed to load language file'));\n\t\t}\n\t}\n}\n\nexport interface ChunkTitle {\n\tid: string;\n\ttype: 'title';\n\theader: string;\n}\n\nexport interface ChunkSection {\n\tid: string;\n\ttype: 'section';\n\theader: string;\n\tbody: string;\n}\n\nexport interface ChunkTable {\n\tid: string;\n\ttype: 'table';\n\tbody: string;\n\thead: string[];\n\trow: string[];\n}\n\nexport interface ChunkPerceived {\n\tid: string;\n\ttype: 'perceived';\n\tbody: string;\n}\n\nexport type ChunkVariants = ChunkTitle | ChunkSection | ChunkTable | ChunkPerceived;\n\ninterface LanguageJsonModel {\n\tchunks: Array<{\n\t\ttitle?: string;\n\t\tbody?: string;\n\t\ttable?: {\n\t\t\thead: string[];\n\t\t\trows: string[];\n\t\t};\n\t}>;\n}\n","import { Stack } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Shimmer } from '@component/new_shimmer.component';\nimport { Fragment } from 'react';\n\nexport function CookiePolicySkeleton(): JSX.Element {\n\treturn (\n\t\t<Fragment>\n\t\t\t<Shimmer height={45} width={150} />\n\t\t\t<Stack gap={tokens.spacing.x1}>\n\t\t\t\t<Shimmer height={10} width={100} />\n\t\t\t\t<Shimmer height={10} width={300} />\n\t\t\t\t<Shimmer height={10} width={200} />\n\t\t\t\t<Shimmer height={10} width={300} />\n\t\t\t\t<Shimmer height={10} width={100} />\n\t\t\t\t<Shimmer height={10} width={200} />\n\t\t\t\t<Shimmer height={10} width={300} />\n\t\t\t\t<Shimmer height={10} width={200} />\n\t\t\t</Stack>\n\t\t\t<Stack gap={tokens.spacing.x1}>\n\t\t\t\t<Shimmer height={30} width={100} />\n\t\t\t\t<Shimmer height={10} width={150} />\n\t\t\t\t<Shimmer height={10} width={200} />\n\t\t\t\t<Shimmer height={10} width={200} />\n\t\t\t\t<Shimmer height={10} width={250} />\n\t\t\t\t<Shimmer height={10} width={200} opacity={0.9} />\n\t\t\t\t<Shimmer height={10} width={100} opacity={0.9} />\n\t\t\t\t<Shimmer height={10} width={100} opacity={0.9} />\n\t\t\t\t<Shimmer height={10} width={200} opacity={0.9} />\n\t\t\t</Stack>\n\t\t\t<Stack gap={tokens.spacing.x1}>\n\t\t\t\t<Shimmer height={30} width={250} opacity={0.9} />\n\t\t\t\t<Shimmer height={10} width={150} opacity={0.8} />\n\t\t\t\t<Shimmer height={10} width={200} opacity={0.7} />\n\t\t\t\t<Shimmer height={10} width={250} opacity={0.6} />\n\t\t\t\t<Shimmer height={10} width={100} opacity={0.5} />\n\t\t\t\t<Shimmer height={10} width={200} opacity={0.4} />\n\t\t\t\t<Shimmer height={10} width={150} opacity={0.3} />\n\t\t\t\t<Shimmer height={10} width={100} opacity={0.2} />\n\t\t\t\t<Shimmer height={10} width={200} opacity={0.1} />\n\t\t\t</Stack>\n\t\t</Fragment>\n\t);\n}\n","import { useEffect } from 'react';\nimport styled from 'styled-components';\nimport { Flex, SafeArea, Stack, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { ChunkVariants, CookiePolicyController } from './_cookie_policy.controller';\nimport { CookiePolicySkeleton } from './_cookie_policy_skeleton';\nimport { Route, Routes } from 'react-router-dom';\nimport { AnalyticService } from '@application/analytic/analytic.service';\nimport { I18nAndL10n } from '@application/i18n/mod';\nimport { Async } from '@component/async.component';\nimport { TopBar } from '@component/top_bar.component';\n\nconst elements = {\n\t// TODO: Adds support for spacer to use breakpoints so we can remove styled\n\t// elements like this.\n\tcustomSpacer: styled.div`\n\t\tmargin: ${tokens.spacing.x4} 0;\n\n\t\t${tokens.breakpointQuery.small} {\n\t\t\tmargin: ${tokens.spacing.x6} 0;\n\t\t}\n\n\t\t${tokens.breakpointQuery.large} {\n\t\t\tmargin: ${tokens.spacing.x9} 0;\n\t\t}\n\t`,\n};\n\ninterface Props {}\n\nexport function CookiePolicy(_: Props): JSX.Element {\n\tconst analyticService = useService(AnalyticService);\n\n\tuseEffect(\n\t\tfunction analyticQuirk_whenComponentMounts() {\n\t\t\tanalyticService.trackPageView({ customTitle: 'Cookie-policy' });\n\t\t},\n\t\t[analyticService],\n\t);\n\n\treturn (\n\t\t<Routes>\n\t\t\t<Route index element={<Content />} />\n\t\t\t<Route path='/sv' element={<Content explicitLanguage='sv' />} />\n\t\t\t<Route path='/fi' element={<Content explicitLanguage='fi' />} />\n\t\t\t<Route path='*' element={<Content explicitLanguage='en-gb' />} />\n\t\t</Routes>\n\t);\n}\n\ninterface ContentProps {\n\texplicitLanguage?: I18nAndL10n.AvailableVisibaLocales;\n}\n\nfunction Content({ explicitLanguage }: ContentProps): JSX.Element {\n\tconst cookiePolicyController = useService(CookiePolicyController);\n\tconst analyticService = useService(AnalyticService);\n\n\tuseEffect(\n\t\tfunction analyticQuirk_whenComponentMounts() {\n\t\t\tanalyticService.trackPageView({ customTitle: `Cookie-policy-${explicitLanguage}` });\n\t\t},\n\t\t[analyticService, explicitLanguage],\n\t);\n\n\tuseEffect(() => {\n\t\tcookiePolicyController.load(explicitLanguage);\n\t});\n\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content goBack title='Cookie-policy' />\n\t\t\t<elements.customSpacer>\n\t\t\t\t<SafeArea maxWidth='872px' asChild data-testid='cookie_policy'>\n\t\t\t\t\t<Flex\n\t\t\t\t\t\tgap={tokens.spacing.x3}\n\t\t\t\t\t\tbreakpointSmallAndUp={{\n\t\t\t\t\t\t\tgap: tokens.spacing.x4,\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Async derive={cookiePolicyController.presentation} fallback={<CookiePolicySkeleton />} catch={null}>\n\t\t\t\t\t\t\t{(data) => (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t{data.chunks.map((chunk) => (\n\t\t\t\t\t\t\t\t\t\t<TextChunk key={chunk.id} variant={chunk} />\n\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</Async>\n\t\t\t\t\t</Flex>\n\t\t\t\t</SafeArea>\n\t\t\t</elements.customSpacer>\n\t\t</>\n\t);\n}\n\nfunction TextChunk({ variant }: { variant: ChunkVariants }): JSX.Element {\n\tswitch (variant.type) {\n\t\tcase 'title':\n\t\t\treturn <Text.h1 variant='headingXLarge'>{variant.header}</Text.h1>;\n\t\tcase 'perceived':\n\t\t\treturn <Text.p variant='bodyLargeRegular'>{variant.body}</Text.p>;\n\t\tcase 'section':\n\t\t\treturn (\n\t\t\t\t<Stack gap={tokens.spacing.x1}>\n\t\t\t\t\t<Text.h2 variant='headingSmall'>{variant.header}</Text.h2>\n\t\t\t\t\t<Text.p variant='bodyRegular'>{variant.body}</Text.p>\n\t\t\t\t</Stack>\n\t\t\t);\n\t\tcase 'table':\n\t\t\treturn (\n\t\t\t\t<>\n\t\t\t\t\t<Text.p variant='bodyRegular'>{variant.body}</Text.p>\n\n\t\t\t\t\t<Text.h2 variant='headingSmall'>{variant.head[0]}</Text.h2>\n\t\t\t\t\t<Flex as='ul' gap={tokens.spacing.x3}>\n\t\t\t\t\t\t{variant.row.map((rowItem, index) => (\n\t\t\t\t\t\t\t<Flex as='li' key={index} gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t\t<Text.h3 variant='headingXSmall'>{rowItem[0]}</Text.h3>\n\t\t\t\t\t\t\t\t<Text.p variant='bodyRegular'>{rowItem[1]}</Text.p>\n\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</Flex>\n\t\t\t\t</>\n\t\t\t);\n\t}\n}\n","import { AfterViewInit, Component, ElementRef, NgZone, OnDestroy, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { Route, Routes } from 'react-router-dom';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { sharedResolution } from '../../src/shared_resolution';\nimport { Root, createRoot } from 'react-dom/client';\nimport { ProgrammaticBrowserRouter } from '@cortex-shim/programmatic_browser_router.component';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { CookiePolicy } from '@view/cookie_policy/mod';\n\nconst containerElementName = 'CookiePolicyWrapper';\n\n@Component({\n\tstandalone: false,\n\tselector: 'cookie-policy-component',\n\ttemplate: `\n\t\t<semantic-view>\n\t\t\t<header-component header></header-component>\n\t\t\t<div class=\"wrapper-container\" #${containerElementName}></div>\n\t\t\t<footer-component footer></footer-component>\n\t\t</semantic-view>\n\t`,\n\tencapsulation: ViewEncapsulation.None,\n\tstyles: [\n\t\t`\n\t\t\tp,\n\t\t\tspan,\n\t\t\th1,\n\t\t\th2,\n\t\t\th3,\n\t\t\th4,\n\t\t\th5,\n\t\t\th6,\n\t\t\th7,\n\t\t\th8,\n\t\t\th9 {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t`,\n\t],\n})\nexport class CookiePolicyWrapperComponent implements OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(private readonly ngZone: NgZone) {\n\t\t// Empty\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.render();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate async render() {\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tconst universalConfigService = sharedResolution.resolve(UniversalConfig);\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper useGlobals>\n\t\t\t\t\t<ProgrammaticBrowserRouter basename={universalConfigService.alias} forceNewHistory>\n\t\t\t\t\t\t<Routes>\n\t\t\t\t\t\t\t<Route path='cookie-policy/*' element={<CookiePolicy />} />\n\t\t\t\t\t\t</Routes>\n\t\t\t\t\t</ProgrammaticBrowserRouter>\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n","import { Injectable } from '@visiba-cortex/instantiation';\nimport type { RateApiModel } from './generated/clientv2/models';\nimport { HttpResponse, HttpService } from '@application/http.service';\nimport { ApiBaseClient } from './_api_base_client';\n\n@Injectable()\nexport class RateApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('rate');\n\t}\n\n\tpublic getMessagingConversationPrice(receptionId: number): HttpResponse<RateApiModel> {\n\t\treturn this.httpService.get(`${this.baseUri}/${receptionId}/getMessagingConversationPrice`);\n\t}\n}\n","import { BasketApiService } from '@api_patient/basket_api.service';\nimport { Logger } from '@visiba/logger';\nimport { FormManager } from '@feature/dynamic_form/form_manager/form_manager.service';\nimport { FileManagerService } from '@feature/file_manager/mod';\nimport { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { FormOpportunity } from '@api_patient/generated/clientv2/models/form-opportunity';\nimport type { MessagingBasketProductApiModel } from '@api_patient/generated/clientv2/models';\n\nexport interface Basket extends MessagingBasketProductApiModel {\n\tId: number;\n\tProductId: number;\n}\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class BasketService {\n\tpublic receptionId: Nullable<number> = null;\n\tpublic basketId: Nullable<number> = null;\n\tpublic basket: Nullable<Basket> = null;\n\tpublic reasonForVisitId: Nullable<number> | undefined = undefined;\n\n\tprivate logger = new Logger('BasketService');\n\n\tconstructor(\n\t\tpublic readonly formManager: FormManager,\n\t\tpublic readonly fileManagerService: FileManagerService,\n\t\tprivate readonly basketApiService: BasketApiService,\n\t) {\n\t\t// Empty\n\t}\n\tpublic async delete(): AsyncResult {\n\t\tthis.logger.logInformation('Clear basket');\n\n\t\tconst deleteResult = await this.basketApiService.deleteActive(this.receptionId ?? -1);\n\t\tif (deleteResult.err) return Err(deleteResult.err);\n\n\t\tthis.formManager.removeForms();\n\t\tthis.basketId = null;\n\t\tthis.basket = null;\n\t\tthis.reasonForVisitId = undefined;\n\n\t\treturn Ok();\n\t}\n\n\tpublic async restore(receptionId: number): AsyncResult<void> {\n\t\tthis.logger.logInformation('Restoring basket at receptionId: {receptionId}', receptionId);\n\n\t\tthis.receptionId = receptionId;\n\n\t\tif (!this.basketId) {\n\t\t\tthis.logger.logInformation('No basket id found, creating a new basket');\n\n\t\t\tconst setActiveBasketIdResult = await this.setActiveBasketId(receptionId);\n\t\t\tif (setActiveBasketIdResult.err) return setActiveBasketIdResult;\n\n\t\t\treturn this.restore(receptionId);\n\t\t}\n\n\t\tthis.logger.logInformation('Basket id found, fetching basket products');\n\t\tconst getBasketResult = await this.basketApiService.getBasket(this.basketId);\n\t\tif (getBasketResult.err) return Err(getBasketResult.err);\n\n\t\tconst basketProducts = getBasketResult.ok.data.MessagingProducts ?? [];\n\n\t\tif (basketProducts.length > 0) {\n\t\t\tthis.populateBasket(basketProducts[0]);\n\t\t}\n\n\t\treturn Ok();\n\t}\n\n\tpublic get(): Nullable<Basket> {\n\t\treturn this.basket;\n\t}\n\n\tpublic async addData(data: {\n\t\treasonForVisitId: number | null;\n\t\tredRobinSessionId?: string | null;\n\t\tasAgentFor?: string | null;\n\t}): AsyncResult {\n\t\tif (this.basketId == null) {\n\t\t\treturn Err(new Error('BasketId is null. Run this.restore() before using this method.'));\n\t\t}\n\n\t\t// If basket have a product, we need to delete it before adding new data.\n\t\t// It will reset reason for visit and forms.\n\t\tif (this.basket != null) {\n\t\t\tconst clearResponse = await this.basketApiService.deleteProduct(this.basketId, this.basket.ProductId);\n\t\t\tif (clearResponse.err) return Err(clearResponse.err);\n\n\t\t\tthis.formManager.removeForms();\n\t\t\tthis.reasonForVisitId = undefined;\n\t\t}\n\n\t\tconst response = await this.basketApiService.postMessagingConversation(this.basketId, {\n\t\t\tReceptionConditionId: data.reasonForVisitId,\n\t\t\tAsAgentFor: data.asAgentFor,\n\t\t\tRedRobinSessionId: data.redRobinSessionId,\n\t\t});\n\t\tif (response.err) return Err(response.err);\n\n\t\tthis.reasonForVisitId = data.reasonForVisitId ?? null;\n\n\t\treturn await this.restore(this.receptionId ?? -1);\n\t}\n\n\tprivate async setActiveBasketId(receptionId: number): AsyncResult {\n\t\tconst response = await this.basketApiService.getActive(receptionId);\n\t\tif (response.err) {\n\t\t\treturn Err(response.err);\n\t\t}\n\n\t\tthis.basketId = response.ok.data;\n\t\tthis.logger.logInformation('Set active basket id to {basketId}', this.basketId);\n\n\t\treturn Ok();\n\t}\n\n\tprivate populateBasket(basket: MessagingBasketProductApiModel): Result {\n\t\tconst id = this.basketId;\n\t\tif (id == null) return Err(new Error('BasketId is null. Run this.restore() before using this method.'));\n\n\t\tthis.formManager.addRespondants(\n\t\t\tbasket.Forms?.map((form) => ({\n\t\t\t\tcompleted: form.Answered,\n\t\t\t\teditable: true,\n\t\t\t\tformId: form.Id,\n\t\t\t\theader: form.Header ?? '',\n\t\t\t\topportunity: FormOpportunity.BeforeCase,\n\t\t\t\tbasketId: id,\n\t\t\t\tbasketProductId: basket.Id,\n\t\t\t\tissueTrackingId: '',\n\t\t\t\tdataProvider: { type: 'basket', basketId: id, basketProductId: basket.Id },\n\t\t\t})) ?? [],\n\t\t);\n\n\t\tthis.basket = {\n\t\t\t...basket,\n\t\t\tId: id,\n\t\t\tProductId: basket.Id,\n\t\t};\n\t\tthis.reasonForVisitId = basket.ReceptionConditionId;\n\n\t\treturn Ok();\n\t}\n}\n","import { applicationLocalStorage } from '@application/application_storage_local';\nimport { UnitService } from '@application/unit.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { Injectable, Scopes } from '@visiba-cortex/instantiation';\n\nexport interface CreateNewMessageSettings {\n\tpredefinedDescriptionOfMatter: string | null;\n\tpredefinedReasonForVisit: number[] | null;\n\tredRobinSessionId: string | null;\n\tasAgentFor: string | null;\n\tattachFiles: boolean;\n}\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class CreateNewMessageSettingsService {\n\tprivate receptionId: number;\n\n\tconstructor(\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly unitService: UnitService,\n\t) {\n\t\tconst unit = this.unitService.getUnitNodeInTree(this.universalConfig.selectedUnitId);\n\t\tthis.receptionId = unit.receptionId;\n\t}\n\n\tpublic getSettings(): CreateNewMessageSettings {\n\t\tconst settings = applicationLocalStorage.get('createNewMessageSettings') ?? {};\n\n\t\treturn (\n\t\t\tsettings[this.receptionId] ?? {\n\t\t\t\tpredefinedDescriptionOfMatter: null,\n\t\t\t\tpredefinedReasonForVisit: null,\n\t\t\t\tredRobinSessionId: null,\n\t\t\t\tasAgentFor: null,\n\t\t\t\tattachFiles: true,\n\t\t\t}\n\t\t);\n\t}\n\n\tpublic setSettings(flowSettings: Partial<CreateNewMessageSettings>): void {\n\t\tconst settings = applicationLocalStorage.get('createNewMessageSettings') ?? {};\n\n\t\tsettings[this.receptionId] = {\n\t\t\t...this.getSettings(),\n\t\t\t...flowSettings,\n\t\t};\n\n\t\tapplicationLocalStorage.set('createNewMessageSettings', settings);\n\t}\n\n\tpublic clearSettings(): void {\n\t\tconst settings = applicationLocalStorage.get('createNewMessageSettings') ?? {};\n\n\t\tdelete settings[this.receptionId];\n\n\t\tapplicationLocalStorage.set('createNewMessageSettings', settings);\n\t}\n}\n","import { signal } from '@preact/signals-react';\nimport { ControllerProtocol, Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { RouterService } from '@cortex-shim/router.service';\nimport { Logger } from '@visiba/logger';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { UnitsApiService } from '@api_patient/units_api.service';\nimport { RateApiService } from '@api_patient/rate_api.service';\nimport { BasketService } from './basket.service';\nimport { UnitService } from '@application/unit.service';\nimport { CreateNewMessageSettingsService } from './create_new_message_settings.service';\nimport { RedRobinApiService } from '@api_patient/red_robin_api.service';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport type { ClientConditionApiModel, RateApiModel } from '@api_patient/generated/clientv2/models';\nimport type { AsyncSignalValue } from '@component/async.component';\nimport type { Basket } from './basket.service';\nimport type { CreateNewMessageSettings } from './create_new_message_settings.service';\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class CreateNewMessageController implements ControllerProtocol {\n\tpublic flowData = signal<AsyncSignalValue<CreateNewMessageFlowData>>({\n\t\tvalue: null,\n\t\tflowState: 'pending',\n\t});\n\n\tpublic screenState = signal<'idle' | 'busy'>('idle');\n\tpublic flowSettings = signal<AsyncSignalValue<CreateNewMessageSettings>>({\n\t\tvalue: null,\n\t\tflowState: 'pending',\n\t});\n\n\tprivate receptionId: number;\n\tprivate readonly logger = new Logger('CreateNewMessageController');\n\tprivate readonly routeBase: string;\n\n\tconstructor(\n\t\tprivate readonly routerService: RouterService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly unitsApiService: UnitsApiService,\n\t\tprivate readonly rateApiService: RateApiService,\n\t\tprivate readonly basketService: BasketService,\n\t\tprivate readonly unitService: UnitService,\n\t\tprivate readonly createNewMessageSettingsService: CreateNewMessageSettingsService,\n\t\tprivate readonly redRobinApiService: RedRobinApiService,\n\t\tprivate readonly analyticService: AnalyticService,\n\t) {\n\t\tconst unit = this.unitService.getUnitNodeInTree(this.universalConfig.selectedUnitId);\n\t\tthis.routeBase = unit.routeWithoutLicenceholder;\n\n\t\tconst receptionId = unit.receptionId;\n\t\tthis.receptionId = receptionId;\n\n\t\tthis.basketService.receptionId = receptionId;\n\t}\n\n\tasync whenMount() {\n\t\tthis.logger.logInformation('Mounting CreateNewMessageController');\n\n\t\tthis.flowData.value = {\n\t\t\tvalue: null,\n\t\t\tflowState: 'pending',\n\t\t};\n\n\t\tconst [priceResult, startMessageResult, reasonForVisitsResult] = await Promise.all([\n\t\t\tthis.fetchPrice(),\n\t\t\tthis.fetchTexts(),\n\t\t\tthis.fetchReasonForVisits(),\n\t\t]);\n\n\t\tif (priceResult.err || startMessageResult.err || reasonForVisitsResult.err) {\n\t\t\tthis.flowData.value = {\n\t\t\t\tvalue: null,\n\t\t\t\tflowState: 'error',\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.flowData.value = {\n\t\t\tvalue: {\n\t\t\t\tprice: priceResult.ok.PaymentWorkflow !== 'NoPayment' ? priceResult.ok.Price.Formatted : null,\n\t\t\t\trequirePayment: priceResult.ok.PaymentWorkflow === 'ByUserBeforeEntering',\n\t\t\t\tscreenStart: startMessageResult.ok,\n\t\t\t\treasonForVisits: reasonForVisitsResult.ok,\n\t\t\t},\n\t\t\tflowState: 'accessible',\n\t\t};\n\t}\n\n\tpublic async setupNewBasket(): AsyncResult<void> {\n\t\tthis.logger.logInformation('Setup basket');\n\n\t\t// Delete existing basket\n\t\tawait this.deleteBasket();\n\t\tawait this.basketService.restore(this.receptionId ?? -1);\n\n\t\tconst basketId = this.basketService.basketId;\n\t\tif (!basketId) return Err(new Error('No basket found...'));\n\n\t\tconst queryParams = new URLSearchParams(window.location.search);\n\n\t\tconst redRobinSessionId = queryParams.get('redRobinSessionId');\n\t\tlet asAgentFor = null;\n\n\t\tif (redRobinSessionId) {\n\t\t\tconst redRobinResult = await this.redRobinApiService.getRepresentativeNin(redRobinSessionId);\n\n\t\t\tif (redRobinResult.err) {\n\t\t\t\tthis.logger.logError('Failed to get RedRobin session');\n\n\t\t\t\treturn Err(redRobinResult.err);\n\t\t\t}\n\n\t\t\tasAgentFor = redRobinResult.ok.data.RepresentativeNin;\n\t\t}\n\n\t\tconst flowSettings = {\n\t\t\tredRobinSessionId: redRobinSessionId,\n\t\t\tasAgentFor,\n\t\t\tpredefinedDescriptionOfMatter: queryParams.get('dom') ?? null,\n\t\t\tpredefinedReasonForVisit:\n\t\t\t\tqueryParams\n\t\t\t\t\t.get('rfv')\n\t\t\t\t\t?.split(',')\n\t\t\t\t\t.map((id) => parseInt(id, 10)) ?? null,\n\t\t\tattachFiles: queryParams.get('file') !== 'false',\n\t\t};\n\n\t\tthis.createNewMessageSettingsService.setSettings(flowSettings);\n\n\t\treturn Ok();\n\t}\n\n\tpublic getFlowSettings(): CreateNewMessageSettings {\n\t\tif (this.flowSettings.value.flowState !== 'accessible') {\n\t\t\tthrow new Error('Flow settings not accessible yet.');\n\t\t}\n\n\t\treturn this.flowSettings.value.value;\n\t}\n\n\tpublic getFlowData(): CreateNewMessageFlowData {\n\t\tif (this.flowData.value.flowState !== 'accessible') {\n\t\t\tthrow new Error('Flow data not accessible yet.');\n\t\t}\n\n\t\treturn this.flowData.value.value;\n\t}\n\n\tpublic getFilteredReasonForVisits(): ClientConditionApiModel[] {\n\t\tlet filteredReasonForVisits: ClientConditionApiModel[] = [];\n\n\t\tconst flowSettings = this.getFlowSettings();\n\t\tconst flowData = this.getFlowData();\n\n\t\tif (flowSettings.predefinedReasonForVisit) {\n\t\t\tif (flowSettings.predefinedReasonForVisit.length > 1) {\n\t\t\t\tfilteredReasonForVisits =\n\t\t\t\t\tflowData.reasonForVisits.filter((rfv) => flowSettings.predefinedReasonForVisit?.includes(rfv.Id)) ?? [];\n\t\t\t}\n\t\t} else {\n\t\t\tfilteredReasonForVisits = flowData.reasonForVisits ?? [];\n\t\t}\n\n\t\treturn filteredReasonForVisits;\n\t}\n\n\tpublic async loadSettings() {\n\t\tthis.logger.logInformation('Load settings');\n\n\t\tif (!this.basketService.basket) {\n\t\t\tawait this.basketService.restore(this.receptionId ?? -1);\n\t\t}\n\n\t\tconst basketId = this.basketService.basketId;\n\t\tif (!basketId) {\n\t\t\tthrow new Error('WE NEED A BASKET!!');\n\t\t}\n\n\t\tconst settings = this.createNewMessageSettingsService.getSettings();\n\n\t\tthis.flowSettings.value = {\n\t\t\tvalue: settings,\n\t\t\tflowState: 'accessible',\n\t\t};\n\n\t\tconst analyticsSettings = [];\n\n\t\tif (settings.asAgentFor) analyticsSettings.push('asAgentFor');\n\t\tif (settings.redRobinSessionId) analyticsSettings.push('redRobinSessionId');\n\t\tif (settings.predefinedDescriptionOfMatter) analyticsSettings.push('predefinedDescriptionOfMatter');\n\t\tif (settings.predefinedReasonForVisit) analyticsSettings.push('predefinedReasonForVisit');\n\t\tif (settings.attachFiles === false) analyticsSettings.push('hideAttachFiles');\n\n\t\tif (analyticsSettings.length) {\n\t\t\tthis.analyticService.trackEvent(\n\t\t\t\tAnalyticCategories.CreateNewMessage,\n\t\t\t\tCreateNewMessageAnalyticActions.UsingSettings,\n\t\t\t\tanalyticsSettings.join(', '),\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic getCurrentBasket(): Nullable<Basket> {\n\t\treturn this.basketService.get();\n\t}\n\n\tpublic getSelectedReasonForVisit(): Nullable<ClientConditionApiModel> {\n\t\treturn this.getFlowData().reasonForVisits.find((rfv) => rfv.Id === this.basketService.reasonForVisitId) ?? null;\n\t}\n\n\tpublic async deleteBasket(): Promise<void> {\n\t\tconst basketDeleteResponse = await this.basketService.delete();\n\t\tif (basketDeleteResponse.err) {\n\t\t\tthis.logger.logError('User tried to delete basket: {message}', basketDeleteResponse.err.message);\n\t\t}\n\n\t\tthis.createNewMessageSettingsService.clearSettings();\n\t}\n\n\tpublic goToScreen(\n\t\tscreen: CreateNewMessageFlowScreen,\n\t\toptions: { replace?: boolean; formId?: number; formPage?: number; conversationId?: number } = {},\n\t): void {\n\t\tlet path = '';\n\t\tlet analyticActionName = screen;\n\n\t\tswitch (screen) {\n\t\t\tcase 'start':\n\t\t\t\tpath = 'start';\n\t\t\t\tbreak;\n\t\t\tcase 'reason-for-visit':\n\t\t\t\tpath = 'reason-for-visit';\n\t\t\t\tbreak;\n\t\t\tcase 'forms':\n\t\t\t\tpath = 'forms';\n\n\t\t\t\tif (options.formId) {\n\t\t\t\t\tpath += `/${options.formId}`;\n\n\t\t\t\t\tanalyticActionName += ' - formId: ${options.formId}';\n\n\t\t\t\t\tif (options.formPage) {\n\t\t\t\t\t\tpath += `/${options.formPage}`;\n\n\t\t\t\t\t\tanalyticActionName += ' page: ${options.formPage}';\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 'conclusion':\n\t\t\t\tpath = 'conclusion';\n\t\t\t\tbreak;\n\t\t\tcase 'done':\n\t\t\t\tpath = 'done';\n\n\t\t\t\tif (options.conversationId) {\n\t\t\t\t\tpath += `/${options.conversationId}`;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 'error':\n\t\t\t\tpath = 'error';\n\t\t\t\tbreak;\n\t\t}\n\n\t\tthis.analyticService.trackEvent(\n\t\t\tAnalyticCategories.CreateNewMessage,\n\t\t\tCreateNewMessageAnalyticActions.GoToScreen,\n\t\t\tanalyticActionName,\n\t\t);\n\n\t\tconst url = [this.routeBase, 'message', path].filter(Boolean);\n\n\t\tthis.routerService.navigateByUrl(`/${url.join('/')}`, { replace: options.replace });\n\t}\n\n\tpublic goToReceptionHome() {\n\t\tthis.routerService.navigateByUrl(`/${this.routeBase}`);\n\t}\n\n\tprivate async fetchPrice(): AsyncResult<RateApiModel> {\n\t\tconst response = await this.rateApiService.getMessagingConversationPrice(this.receptionId ?? -1);\n\t\tif (response.err) return Err(response.err);\n\n\t\treturn Ok(response.ok.data);\n\t}\n\n\tprivate async fetchTexts(): AsyncResult<ScreenStartData> {\n\t\tthis.logger.logInformation('Get start screen texts');\n\t\tconst messageResult = await this.unitsApiService.getTexts(this.universalConfig.selectedUnitId, [\n\t\t\t'Messaging_Intro_Title',\n\t\t\t'Messaging_Intro_Message',\n\t\t]);\n\t\tif (messageResult.err) {\n\t\t\tthis.logger.logError(\n\t\t\t\t'User tried to get start tests: {message} {statusCode}',\n\t\t\t\tmessageResult.err.message,\n\t\t\t\tmessageResult.err.statusCode,\n\t\t\t);\n\n\t\t\treturn Err(messageResult.err);\n\t\t}\n\n\t\treturn Ok({\n\t\t\ttitle: messageResult.ok.data.Messaging_Intro_Title,\n\t\t\tdescription: messageResult.ok.data.Messaging_Intro_Message,\n\t\t});\n\t}\n\n\tprivate async fetchReasonForVisits(): AsyncResult<ClientConditionApiModel[]> {\n\t\tthis.logger.logInformation('Get reason for visits');\n\n\t\tconst unitConfigResult = await this.unitsApiService.getUnitConfig(this.universalConfig.selectedUnitId);\n\t\tif (unitConfigResult.err) return Err(unitConfigResult.err);\n\n\t\tif (unitConfigResult.ok.data.Offer?.HasConditionWorkflow === false) {\n\t\t\treturn Ok([]);\n\t\t}\n\n\t\tconst reasonForVisitsResult = await this.unitsApiService.getConditions(this.universalConfig.selectedUnitId);\n\t\tif (reasonForVisitsResult.err) {\n\t\t\tthis.logger.logError(\n\t\t\t\t'User tried to get reason for visits: {message} {statusCode}',\n\t\t\t\treasonForVisitsResult.err.message,\n\t\t\t\treasonForVisitsResult.err.statusCode,\n\t\t\t);\n\n\t\t\treturn Err(reasonForVisitsResult.err);\n\t\t}\n\n\t\treturn Ok(reasonForVisitsResult.ok.data);\n\t}\n}\n\nexport enum CreateNewMessageAnalyticActions {\n\tUsingSettings = 'Using settings',\n\tGoToScreen = 'Go-to-screen',\n\tNotAllowedToBeHere = 'Not allowed to be here',\n\tAutoSetReasonForVisit = 'Automatically set reason for visit',\n\tSelectReasonForVisit = 'Select reason for visit',\n\tNoReasonForVisits = 'No reason for visits',\n\tNoForms = 'No forms',\n\tNumberOfForms = 'Number of forms',\n\tLoadForm = 'Load form',\n}\n\ninterface ScreenStartData {\n\ttitle: Nullable<string>;\n\tdescription: Nullable<string>;\n}\n\nexport interface CreateNewMessageFlowData {\n\tprice: Nullable<string>;\n\trequirePayment: boolean;\n\treasonForVisits: ClientConditionApiModel[];\n\tscreenStart: ScreenStartData;\n}\n\ntype CreateNewMessageFlowScreen = 'reason-for-visit' | 'forms' | 'conclusion' | 'error' | 'start' | 'done';\n","import { useEffect } from 'react';\nimport { BadgeText, Button, Flex, Spacer } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { TopBar } from '@component/top_bar.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { useResolveController } from '@visiba-cortex/instantiation';\nimport { CreateNewMessageController } from '../view_create_new_message.controller';\nimport { Async } from '@component/async.component';\nimport { Article } from '@component/article.component';\nimport { ButtonArrange } from '@component/button_arrange.component';\nimport { Title } from '@component/title.component';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { DataList } from '@component/data_list.component';\n\nexport function ScreenStart() {\n\tconst controller = useResolveController(CreateNewMessageController);\n\tconst analyticCtx = useAnalyticContext();\n\n\tfunction handleNext() {\n\t\tanalyticCtx.trackEvent('Clicked', 'Next button');\n\t\tcontroller.goToScreen('reason-for-visit');\n\t}\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tanalyticCtx.service.trackPageView({\n\t\t\t\tcustomTitle: 'Create new message: Start',\n\t\t\t});\n\t\t},\n\t\t[analyticCtx],\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content skipAbortDialog={controller.getCurrentBasket() == null} />\n\n\t\t\t<Async derive={controller.flowData}>\n\t\t\t\t{(flowData) => (\n\t\t\t\t\t<Flex grow={1} gap={tokens.spacing.x2}>\n\t\t\t\t\t\t<Flex grow={1} gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t<Title\n\t\t\t\t\t\t\t\ttitle={flowData.screenStart.title ?? withTranslation('View.CreateNewMessage.ScreenStart.FallbackTitle')}\n\t\t\t\t\t\t\t\ttitleSize='small'\n\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t{flowData.price ? (\n\t\t\t\t\t\t\t\t<DataList.Root>\n\t\t\t\t\t\t\t\t\t<DataList.Item label={withTranslation('Common.Label.Cost')}>\n\t\t\t\t\t\t\t\t\t\t<BadgeText variant='info'>{flowData.price}</BadgeText>\n\t\t\t\t\t\t\t\t\t</DataList.Item>\n\t\t\t\t\t\t\t\t</DataList.Root>\n\t\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t\t<Spacer vertical={tokens.spacing.x1_5}>\n\t\t\t\t\t\t\t\t<Article>\n\t\t\t\t\t\t\t\t\t{flowData.screenStart.description ?? withTranslation('View.CreateNewMessage.ScreenStart.FallbackDescription')}\n\t\t\t\t\t\t\t\t</Article>\n\t\t\t\t\t\t\t</Spacer>\n\t\t\t\t\t\t</Flex>\n\n\t\t\t\t\t\t<ButtonArrange>\n\t\t\t\t\t\t\t<Button onClick={handleNext} loading={controller.screenState.value === 'busy'}>\n\t\t\t\t\t\t\t\t{withTranslation('PW.Common.Next')}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</ButtonArrange>\n\t\t\t\t\t</Flex>\n\t\t\t\t)}\n\t\t\t</Async>\n\t\t</>\n\t);\n}\n","import { Injectable, Scopes, ControllerProtocol } from '@visiba-cortex/instantiation';\nimport { CreateNewMessageAnalyticActions, CreateNewMessageController } from '../view_create_new_message.controller';\nimport { Logger } from '@visiba/logger';\nimport { BasketService } from '../basket.service';\nimport { signal } from '@preact/signals-react';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { NotificationService } from '@component/notification_manager/notification/notification.service';\nimport { LocalPushNotification } from '@component/notification_manager/notification/local_push_notification';\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class ScreenRfvController implements ControllerProtocol {\n\tpublic screenState = signal<'ready' | 'not-ready' | 'busy'>('not-ready');\n\n\tprivate readonly logger = new Logger('ScreenRfvController');\n\n\tconstructor(\n\t\tprivate readonly createNewMessageController: CreateNewMessageController,\n\t\tprivate readonly basketService: BasketService,\n\t\tprivate readonly analyticService: AnalyticService,\n\t\tprivate readonly notificationService: NotificationService,\n\t) {}\n\n\tasync whenMount() {\n\t\tthis.analyticService.trackPageView({\n\t\t\tcustomTitle: 'Create new message: Reason for visit',\n\t\t});\n\n\t\tif (!this.allowedToBeHere()) {\n\t\t\tthis.analyticService.trackEvent(\n\t\t\t\tAnalyticCategories.CreateNewMessage,\n\t\t\t\tCreateNewMessageAnalyticActions.NotAllowedToBeHere,\n\t\t\t\t'Reason for visit',\n\t\t\t);\n\t\t\tthis.createNewMessageController.goToScreen('start');\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.createNewMessageController.getFilteredReasonForVisits().length === 0) {\n\t\t\tconst reasonForVisit = this.createNewMessageController.getFlowSettings().predefinedReasonForVisit?.[0] ?? null;\n\n\t\t\tif (reasonForVisit) {\n\t\t\t\tthis.analyticService.trackEvent(\n\t\t\t\t\tAnalyticCategories.CreateNewMessage,\n\t\t\t\t\tCreateNewMessageAnalyticActions.AutoSetReasonForVisit,\n\t\t\t\t\t`${reasonForVisit}`,\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tthis.analyticService.trackEvent(AnalyticCategories.CreateNewMessage, CreateNewMessageAnalyticActions.NoReasonForVisits);\n\t\t\t}\n\n\t\t\tthis.screenState.value = 'busy';\n\n\t\t\tawait this.setReasonForVisit(reasonForVisit);\n\t\t\tthis.createNewMessageController.goToScreen('forms', { replace: true });\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.screenState.value = 'ready';\n\t}\n\n\tpublic async selectReasonForVisit(reasonForVisitId: number) {\n\t\tthis.analyticService.trackEvent(\n\t\t\tAnalyticCategories.CreateNewMessage,\n\t\t\tCreateNewMessageAnalyticActions.SelectReasonForVisit,\n\t\t\t`${reasonForVisitId}`,\n\t\t);\n\n\t\tthis.screenState.value = 'busy';\n\t\tconst response = await this.setReasonForVisit(reasonForVisitId);\n\t\tif (response.err) {\n\t\t\tthis.notificationService.add(\n\t\t\t\tnew LocalPushNotification({\n\t\t\t\t\tlabel: 'Error',\n\t\t\t\t\tmessage: response.err.message,\n\t\t\t\t\tvariant: 'danger',\n\t\t\t\t\ttype: 'toast',\n\t\t\t\t}),\n\t\t\t);\n\n\t\t\tthis.screenState.value = 'ready';\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.createNewMessageController.goToScreen('forms');\n\t}\n\n\tprivate async setReasonForVisit(reasonForVisitId: number | null): AsyncResult<void> {\n\t\tthis.logger.logInformation('Select reason for visit');\n\n\t\tif (this.basketService.reasonForVisitId !== reasonForVisitId) {\n\t\t\tconst flowSettings = this.createNewMessageController.getFlowSettings();\n\t\t\tconst postResponse = await this.basketService.addData({\n\t\t\t\treasonForVisitId,\n\t\t\t\tredRobinSessionId: flowSettings.redRobinSessionId,\n\t\t\t\tasAgentFor: flowSettings.asAgentFor,\n\t\t\t});\n\t\t\tif (postResponse.err) {\n\t\t\t\tthis.logger.logError('User tried to post reason for visit');\n\n\t\t\t\treturn postResponse;\n\t\t\t}\n\t\t}\n\n\t\treturn Ok();\n\t}\n\n\tprivate allowedToBeHere() {\n\t\t// If we don't have flow data, we can't be here.\n\t\tconst flowData = this.createNewMessageController.flowData.value.value;\n\t\tif (!flowData) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n}\n","import { Flex, Spacer } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { TopBar } from '@component/top_bar.component';\nimport { useResolveController, withNewContainer } from '@visiba-cortex/instantiation';\nimport { CreateNewMessageController } from '../view_create_new_message.controller';\nimport { Async } from '@component/async.component';\nimport { ActionCard } from '@component/action_card.component';\nimport { Title } from '@component/title.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { ScreenRfvController } from './screen_rfv.controller';\nimport { Skeleton } from '../view_create_new_message.component';\n\nexport const ScreenRfv = withNewContainer(function ScreenRfv() {\n\tconst createNewMessageController = useResolveController(CreateNewMessageController);\n\tconst controller = useResolveController(ScreenRfvController);\n\n\treturn (\n\t\t<Flex gap={tokens.spacing.x1_5}>\n\t\t\t<TopBar.Content goBack />\n\n\t\t\t{controller.screenState.value !== 'ready' ? (\n\t\t\t\t<Skeleton />\n\t\t\t) : (\n\t\t\t\t<>\n\t\t\t\t\t<Title\n\t\t\t\t\t\ttitle={withTranslation('View.CreateNewMessage.ScreenRfv.Title')}\n\t\t\t\t\t\ttitleSize='small'\n\t\t\t\t\t\tdescription={withTranslation('View.CreateNewMessage.ScreenRfv.Description')}\n\t\t\t\t\t/>\n\n\t\t\t\t\t<Spacer vertical={tokens.spacing.x0_5} />\n\n\t\t\t\t\t<Async derive={createNewMessageController.flowData}>\n\t\t\t\t\t\t{() => (\n\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t\t{createNewMessageController.getFilteredReasonForVisits().map((reasonForVisit) => (\n\t\t\t\t\t\t\t\t\t<ActionCard.Root\n\t\t\t\t\t\t\t\t\t\tkey={reasonForVisit.Id}\n\t\t\t\t\t\t\t\t\t\tonClick={() => controller.selectReasonForVisit(reasonForVisit.Id)}\n\t\t\t\t\t\t\t\t\t\tdisabled={controller.screenState.value === 'busy'}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<ActionCard.Title>{reasonForVisit.Name}</ActionCard.Title>\n\t\t\t\t\t\t\t\t\t</ActionCard.Root>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Async>\n\t\t\t\t</>\n\t\t\t)}\n\t\t</Flex>\n\t);\n});\n","import { AsyncSignalValue } from '@component/async.component';\nimport { FormWorker } from '@feature/dynamic_form/form_manager/form_worker';\nimport { signal } from '@preact/signals-react';\nimport { Injectable, Scopes, ControllerProtocol } from '@visiba-cortex/instantiation';\nimport { BasketService } from '../basket.service';\nimport { CreateNewMessageAnalyticActions, CreateNewMessageController } from '../view_create_new_message.controller';\nimport type { Form as FormType } from '@api_patient/generated/clientv2/models/form';\nimport type { Basket } from '../basket.service';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class ScreenFormsController implements ControllerProtocol {\n\tpublic forms = signal<FormType[] | null>(null);\n\tpublic formWorker = signal<AsyncSignalValue<Readonly<FormWorker>>>({\n\t\tflowState: 'pending',\n\t\tvalue: null,\n\t});\n\tprivate basket: Nullable<Basket> = null;\n\tprivate tempDisposers: (() => void)[] = [];\n\n\tconstructor(\n\t\tprivate readonly createNewMessageController: CreateNewMessageController,\n\t\tprivate readonly basketService: BasketService,\n\t\tprivate readonly analyticService: AnalyticService,\n\t) {}\n\n\twhenMount() {\n\t\tthis.analyticService.trackPageView({\n\t\t\tcustomTitle: 'Create new message: Forms',\n\t\t});\n\n\t\tthis.basket = this.createNewMessageController.getCurrentBasket();\n\n\t\tif (!this.allowedToBeHere()) {\n\t\t\tthis.analyticService.trackEvent(\n\t\t\t\tAnalyticCategories.CreateNewMessage,\n\t\t\t\tCreateNewMessageAnalyticActions.NotAllowedToBeHere,\n\t\t\t\t'Forms',\n\t\t\t);\n\n\t\t\tthis.createNewMessageController.goToScreen('start');\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.forms.value = this.basket?.Forms ?? [];\n\n\t\tif (!this.forms.value.length) {\n\t\t\tthis.analyticService.trackEvent(AnalyticCategories.CreateNewMessage, CreateNewMessageAnalyticActions.NoForms);\n\n\t\t\tthis.createNewMessageController.goToScreen('conclusion', { replace: true });\n\t\t} else {\n\t\t\tthis.analyticService.trackEvent(\n\t\t\t\tAnalyticCategories.CreateNewMessage,\n\t\t\t\tCreateNewMessageAnalyticActions.NumberOfForms,\n\t\t\t\t` ${this.forms.value.length}`,\n\t\t\t);\n\t\t}\n\t}\n\n\twhenDemount() {\n\t\tthis.tempDisposers.forEach((x) => x());\n\t}\n\n\tpublic async loadSingleForm(formId: number): Promise<void> {\n\t\tthis.analyticService.trackEvent(AnalyticCategories.CreateNewMessage, CreateNewMessageAnalyticActions.LoadForm, ` ${formId}`);\n\n\t\tif (this.basket == null) {\n\t\t\tthis.formWorker.value = {\n\t\t\t\tflowState: 'error',\n\t\t\t\tvalue: null,\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.formWorker.value = {\n\t\t\tflowState: 'pending',\n\t\t\tvalue: null,\n\t\t};\n\n\t\tconst formWorker = this.basketService.formManager.getFormByFormId(formId);\n\t\tif (formWorker == null) {\n\t\t\tthis.formWorker.value = {\n\t\t\t\tflowState: 'error',\n\t\t\t\tvalue: null,\n\t\t\t};\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.tempDisposers.forEach((x) => x());\n\t\tthis.tempDisposers = [\n\t\t\tformWorker.events.on('onCommit', () => {\n\t\t\t\tconst nextFormId = this.getNextFormId(formWorker.formId);\n\t\t\t\tif (nextFormId != null) {\n\t\t\t\t\tthis.createNewMessageController.goToScreen('forms', { formId: nextFormId });\n\t\t\t\t} else {\n\t\t\t\t\tthis.createNewMessageController.goToScreen('conclusion');\n\t\t\t\t}\n\t\t\t}),\n\t\t\tformWorker.events.on('onChangePage', (data) => {\n\t\t\t\tthis.createNewMessageController.goToScreen('forms', { formId: formWorker.formId, formPage: data.newPagePosition });\n\t\t\t}),\n\t\t];\n\n\t\tthis.formWorker.value = {\n\t\t\tflowState: 'accessible',\n\t\t\tvalue: formWorker,\n\t\t};\n\t}\n\n\tpublic getNextFormId(currentFormId: number): number | null {\n\t\tif (!this.forms.value) {\n\t\t\tthrow new Error('Forms not loaded...');\n\t\t}\n\n\t\tconst currentFormIndex = this.forms.value.findIndex((form) => form.Id === currentFormId);\n\n\t\treturn this.forms.value[currentFormIndex + 1]?.Id ?? null;\n\t}\n\n\tprivate allowedToBeHere() {\n\t\t// If we don't have a basket, we can't be here.\n\t\tif (!this.basket) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we don't have flow data, we can't be here.\n\t\tconst flowData = this.createNewMessageController.flowData.value.value;\n\t\tif (!flowData) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we have reason for visits, we need to have a selected reason for visit.\n\t\tif (flowData.reasonForVisits.length > 0 && !this.createNewMessageController.getSelectedReasonForVisit()) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n}\n","import { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { IllustrativeView } from '@component/illustrative_view.component';\nimport { TopBar } from '@component/top_bar.component';\nimport { useResolveController } from '@visiba-cortex/instantiation';\nimport { useEffect } from 'react';\nimport { CreateNewMessageController } from '../view_create_new_message.controller';\n\nexport function ScreenError() {\n\tconst controller = useResolveController(CreateNewMessageController);\n\tconst analytics = useAnalyticContext();\n\n\tfunction handleRestart() {\n\t\tanalytics.trackEvent('Clicked', 'Restart button');\n\t\tcontroller.goToReceptionHome();\n\n\t\t// TODO: Remove when angular is gone!\n\t\tif (\n\t\t\t(window as typeof window & { __TEMP__overrideNavigation: Record<string, unknown> | undefined })['__TEMP__overrideNavigation'] !=\n\t\t\tnull\n\t\t) {\n\t\t\twindow.location.reload();\n\t\t}\n\t}\n\n\tuseEffect(\n\t\tfunction whenMounted() {\n\t\t\tanalytics.service.trackPageView({\n\t\t\t\tcustomTitle: 'Create new message: Error',\n\t\t\t});\n\t\t},\n\t\t[analytics],\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content onAbort={null} />\n\n\t\t\t<IllustrativeView\n\t\t\t\ttitle={withTranslation('View.CreateNewMessage.ErrorInterrupted.Title')}\n\t\t\t\tdescription={withTranslation('View.CreateNewMessage.ErrorInterrupted.Body')}\n\t\t\t\tillustration='error'\n\t\t\t\tcallToAction={withTranslation('View.CreateNewMessage.ErrorInterrupted.Button')}\n\t\t\t\tcallToActionCallback={handleRestart}\n\t\t\t/>\n\t\t</>\n\t);\n}\n","import { TopBar } from '@component/top_bar.component';\nimport { useResolveController, withNewContainer } from '@visiba-cortex/instantiation';\nimport { Navigate, Route, Routes, useParams } from 'react-router';\nimport { useEffect } from 'react';\nimport { Async } from '@component/async.component';\nimport { DynamicForm } from '@feature/dynamic_form/dynamic_form.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { Flex, Form } from '@cellula/react';\nimport { ScreenFormsController } from './screen_forms.controller';\nimport { ButtonArrange } from '@component/button_arrange.component';\nimport { ScreenError } from '../screen_error/screen_error';\n\nexport const ScreenForms = withNewContainer(function ScreenForms(): JSX.Element | null {\n\tconst controller = useResolveController(ScreenFormsController);\n\tconst forms = controller.forms.value ?? [];\n\n\tif (forms.length === 0) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content goBack />\n\t\t\t<Routes>\n\t\t\t\t<Route path=':formId/:formPage?' element={<SingleForm />} />\n\t\t\t\t<Route path='*' element={<Navigate to={`./${forms[0].Id}`} replace />} />\n\t\t\t</Routes>\n\t\t</>\n\t);\n});\n\nfunction SingleForm() {\n\tconst { formId, formPage = 0 } = useParams();\n\tconst controller = useResolveController(ScreenFormsController);\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tcontroller.loadSingleForm(Number(formId));\n\t\t},\n\t\t[controller, formId],\n\t);\n\n\treturn (\n\t\t<Async derive={controller.formWorker} catch={<ScreenError />}>\n\t\t\t{(formWorker) => {\n\t\t\t\treturn (\n\t\t\t\t\t<DynamicForm.Root formWorker={formWorker} defaultPagePosition={Number(formPage)}>\n\t\t\t\t\t\t<DynamicForm.Description />\n\t\t\t\t\t\t<DynamicForm.Content>\n\t\t\t\t\t\t\t<Flex grow={1} justify='flex-end'>\n\t\t\t\t\t\t\t\t<ButtonArrange>\n\t\t\t\t\t\t\t\t\t<Form.SubmitButton>{withTranslation('PW.Common.Next')}</Form.SubmitButton>\n\t\t\t\t\t\t\t\t</ButtonArrange>\n\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t</DynamicForm.Content>\n\t\t\t\t\t</DynamicForm.Root>\n\t\t\t\t);\n\t\t\t}}\n\t\t</Async>\n\t);\n}\n","/* This file is auto-generated. Do not edit directly. */\n/* eslint-disable */\nexport enum CommitResultStatus {\n ValidationErrors = 'ValidationErrors',\n PendingPayment = 'PendingPayment',\n ReservationCommitted = 'ReservationCommitted',\n CommitInProgress = 'CommitInProgress'\n}\n\n","/* This file is auto-generated. Do not edit directly. */\n/* eslint-disable */\nexport enum QueryCommitStatus {\n JobNotFound = 'JobNotFound',\n Error = 'Error',\n CompletedOk = 'CompletedOk',\n Prepared = 'Prepared',\n InProgress = 'InProgress',\n WaitingForPickup = 'WaitingForPickup',\n PaymentRequired = 'PaymentRequired'\n}\n\n","/* This file is auto-generated. Do not edit directly. */\n/* eslint-disable */\nexport enum ValidationResultType {\n SystemError = 'SystemError',\n FormMissingResponse = 'FormMissingResponse',\n RecreateProduct = 'RecreateProduct',\n NoProducts = 'NoProducts',\n Ok = 'Ok',\n JustOneProduct = 'JustOneProduct'\n}\n\n","import { Injectable, Scopes, ControllerProtocol } from '@visiba-cortex/instantiation';\nimport { CellulaFormSubmitData } from '@cellula/react';\nimport { BasketApiService } from '@api_patient/basket_api.service';\nimport { FileManagerService } from '@feature/file_manager/file_manager.service';\nimport { delay } from '@visiba/std';\nimport { CreateNewMessageAnalyticActions, CreateNewMessageController } from '../view_create_new_message.controller';\nimport { Logger } from '@visiba/logger';\nimport { I18nAndL10n } from '@application/i18n/i18n_and_l10n';\nimport { signal } from '@preact/signals-react';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { CommitResultStatus } from '@api_patient/generated/clientv2/models/commit-result-status';\nimport { QueryCommitStatus } from '@api_patient/generated/clientv2/models/query-commit-status';\nimport { ValidationResultType } from '@api_patient/generated/clientv2/models/validation-result-type';\nimport type { Basket } from '../basket.service';\nimport type { CommitSuccessResult } from '@api_patient/generated/clientv2/models';\nimport { GeneralApiService } from '@api_patient/general_api.service';\nimport { UniversalConfig } from '@application/universal_config.service';\n\nconst COMMIT_STATUS_RETRY_COUNT = 30;\nconst COMMIT_STATUS_DELAY = 1000;\n\n@Injectable({\n\tscope: Scopes.Scoped,\n})\nexport class ScreenConclusionController implements ControllerProtocol {\n\tpublic readonly payment = signal<null | { billId: number; commitId: number }>(null);\n\tpublic readonly termsOfServiceUrl = signal<string | null>(null);\n\tprivate basket: Basket | null = null;\n\tprivate readonly logger = new Logger('ScreenConclusionController');\n\n\tconstructor(\n\t\tprivate readonly createNewMessageController: CreateNewMessageController,\n\t\tprivate readonly basketApiService: BasketApiService,\n\t\tprivate readonly fileManagerService: FileManagerService,\n\t\tprivate readonly analyticService: AnalyticService,\n\t\tprivate readonly generalApiService: GeneralApiService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t) {}\n\n\tasync whenMount() {\n\t\tthis.analyticService.trackPageView({\n\t\t\tcustomTitle: 'Create new message: Conclusion',\n\t\t});\n\n\t\tthis.basket = this.createNewMessageController.getCurrentBasket();\n\n\t\tif (!this.allowedToBeHere()) {\n\t\t\tthis.analyticService.trackEvent(\n\t\t\t\tAnalyticCategories.CreateNewMessage,\n\t\t\t\tCreateNewMessageAnalyticActions.NotAllowedToBeHere,\n\t\t\t\t'Conclusion',\n\t\t\t);\n\n\t\t\tthis.logger.logInformation('Not allowed to be here. Redirect to start screen.');\n\t\t\tthis.createNewMessageController.goToScreen('start');\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst policyDocumentsResult = await this.generalApiService.getPolicyDocuments(\n\t\t\tthis.universalConfig.alias,\n\t\t\tthis.universalConfig.selectedLanguageCode.peek(),\n\t\t);\n\t\tif (policyDocumentsResult.ok) {\n\t\t\tthis.termsOfServiceUrl.value = policyDocumentsResult.ok.data.TermsOfServiceUrl;\n\t\t}\n\t}\n\n\tpublic async submit(\n\t\tformData: CellulaFormSubmitData,\n\t): AsyncResult<{ commitJobId?: number; paymentBillId?: number; messageConversationId?: number | null }, Error | string> {\n\t\tif (!this.basket) {\n\t\t\tthrow new Error('No basket found');\n\t\t}\n\n\t\tconst reason = this.createNewMessageController.getFlowSettings().predefinedDescriptionOfMatter ?? formData.message ?? '';\n\n\t\t// Post the reason text\n\t\tconst addReasonResult = await this.basketApiService.postReason(this.basket.Id, this.basket.ProductId, reason);\n\t\tif (addReasonResult.err) return Err(addReasonResult.err);\n\n\t\t// Post files if there are any\n\t\tconst fileTickets = this.fileManagerService.peakUploadedIdentities();\n\t\tif (fileTickets.length > 0) {\n\t\t\tconst addFilesResult = await this.basketApiService.postFiles(\n\t\t\t\tthis.basket.Id,\n\t\t\t\tthis.basket.ProductId,\n\t\t\t\tfileTickets.map((identity) => ({\n\t\t\t\t\tFileReference: identity,\n\t\t\t\t})),\n\t\t\t);\n\n\t\t\tif (addFilesResult.err) return Err(addFilesResult.err);\n\t\t}\n\n\t\t// If the basket is valid, we can commit it.\n\t\tconst commitResult = await this.basketApiService.commit(this.basket.Id);\n\t\tif (commitResult.err) return Err(commitResult.err);\n\n\t\tswitch (commitResult.ok.data.Status) {\n\t\t\tcase CommitResultStatus.ValidationErrors:\n\t\t\t\tif (commitResult.ok.data.ValidationResult === ValidationResultType.FormMissingResponse) {\n\t\t\t\t\treturn Err(I18nAndL10n.translate('View.CreateNewMessage.ScreenConclusion.FormValidationError'));\n\t\t\t\t} else {\n\t\t\t\t\treturn Err(I18nAndL10n.translate('Error.Patient.Unknown'));\n\t\t\t\t}\n\t\t\tcase CommitResultStatus.PendingPayment:\n\t\t\t\tif (!commitResult.ok.data.PaymentBillId || !commitResult.ok.data.CommitJobId) {\n\t\t\t\t\treturn Err(new NonRecoverableError('No payment bill id'));\n\t\t\t\t}\n\n\t\t\t\treturn Ok({\n\t\t\t\t\tpaymentBillId: commitResult.ok.data.PaymentBillId,\n\t\t\t\t\tcommitJobId: commitResult.ok.data.CommitJobId,\n\t\t\t\t});\n\t\t\tcase CommitResultStatus.CommitInProgress:\n\t\t\tcase CommitResultStatus.ReservationCommitted:\n\t\t\t// Just continue\n\t\t}\n\n\t\tif (!commitResult.ok.data.CommitJobId) {\n\t\t\treturn Err(new NonRecoverableError('No commit job id'));\n\t\t}\n\n\t\t// Then we have to get the commit status to find out if the commit was\n\t\t// successful.\n\t\treturn await this.waitForCommitStatus(commitResult.ok.data.CommitJobId);\n\t}\n\n\tpublic async waitForCommitStatus(commitJobId: number): AsyncResult<{ messageConversationId: number | null }> {\n\t\tconst commitStatusResult = await this.getCommitStatus(commitJobId);\n\t\tif (commitStatusResult.err) return Err(new NonRecoverableError(commitStatusResult.err.message));\n\n\t\t// If we got a messaging case Id, return it. Otherwise return null.\n\t\treturn Ok({\n\t\t\tmessageConversationId: commitStatusResult.ok.MessagingCases.length > 0 ? commitStatusResult.ok.MessagingCases[0].Id : null,\n\t\t});\n\t}\n\n\tprivate async getCommitStatus(commitJobId: number): AsyncResult<CommitSuccessResult> {\n\t\tfor (let count = 0; count < COMMIT_STATUS_RETRY_COUNT; count++) {\n\t\t\tconst commitStatusResult = await this.basketApiService.getCommitStatus(commitJobId);\n\n\t\t\tif (commitStatusResult.err) return Err(commitStatusResult.err);\n\n\t\t\tif (commitStatusResult.ok.data.Status === QueryCommitStatus.CompletedOk) {\n\t\t\t\treturn Ok(commitStatusResult.ok.data);\n\t\t\t}\n\n\t\t\tawait delay(COMMIT_STATUS_DELAY);\n\t\t}\n\n\t\treturn Err(new Error('Waited too long for commit status.'));\n\t}\n\n\tprivate allowedToBeHere() {\n\t\t// If we don't have a basket, we can't be here.\n\t\tif (!this.basket) {\n\t\t\tthis.logger.logInformation('No basket found.');\n\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we don't have flow data, we can't be here.\n\t\tconst flowData = this.createNewMessageController.flowData.value.value;\n\t\tif (!flowData) {\n\t\t\tthis.logger.logInformation('FlowData not set.');\n\n\t\t\treturn false;\n\t\t}\n\n\t\t// If we have reason for visits, we need to have a selected reason for visit.\n\t\tif (flowData.reasonForVisits.length > 0 && !this.createNewMessageController.getSelectedReasonForVisit()) {\n\t\t\tthis.logger.logInformation('No reason for visit selected.');\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n}\n\nexport class NonRecoverableError extends Error {\n\tconstructor(message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'NonRecoverableError';\n\t}\n}\n","import { Flex, Form, InputTextArea, CellulaFormSubmitData, Label, Sheet, TextLink, BadgeText } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { TopBar } from '@component/top_bar.component';\nimport { useResolve, useResolveController, withNewContainer } from '@visiba-cortex/instantiation';\nimport { Title } from '@component/title.component';\nimport { BasketService } from '../basket.service';\nimport { FormCard } from '@feature/dynamic_form/form_card.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { CreateNewMessageController, CreateNewMessageFlowData } from '../view_create_new_message.controller';\nimport { FileUpload } from '@feature/file_manager/file_upload.component';\nimport { ButtonArrange } from '@component/button_arrange.component';\nimport { FileManagerService, FileManagerServiceReadyState } from '@feature/file_manager/mod';\nimport { validateRequired } from '@application/validators';\nimport { NonRecoverableError, ScreenConclusionController } from './screen_conclusion.controller';\nimport { Payment } from '@feature/payment/payment.component';\nimport { useState } from 'react';\nimport { Async } from '@component/async.component';\nimport styled from 'styled-components';\nimport type { CreateNewMessageSettings } from '../create_new_message_settings.service';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { IframeSheet } from '@component/iframe_sheet.component';\nimport { DataList } from '@component/data_list.component';\n\nconst StyledBottomSection = styled(Flex)`\n\ttext-align: center;\n\tfont: ${tokens.text.label.smallRegular};\n\n\t${tokens.breakpointQuery.small} {\n\t\ttext-align: left;\n\t}\n`;\n\nconst REASON_MAX_LENGTH = 4000;\n\nexport const ScreenConclusion = withNewContainer(function ScreenConclusion(): JSX.Element | null {\n\tconst createNewMessageController = useResolveController(CreateNewMessageController);\n\n\treturn (\n\t\t<Async derive={createNewMessageController.flowSettings}>\n\t\t\t{(flowSettings) => (\n\t\t\t\t<Async derive={createNewMessageController.flowData}>\n\t\t\t\t\t{(flowData) => <Inner flowSettings={flowSettings} flowData={flowData} />}\n\t\t\t\t</Async>\n\t\t\t)}\n\t\t</Async>\n\t);\n});\n\ninterface InnerProps {\n\tflowSettings: CreateNewMessageSettings;\n\tflowData: CreateNewMessageFlowData;\n}\n\nfunction Inner({ flowSettings, flowData }: InnerProps) {\n\tconst createNewMessageController = useResolveController(CreateNewMessageController);\n\tconst controller = useResolveController(ScreenConclusionController);\n\tconst basketService = useResolve(BasketService);\n\tconst fileManagerService = useResolve(FileManagerService);\n\tconst [payment, setPayment] = useState<{ paymentBillId: number; paymentAmount: string; commitJobId: number } | null>(null);\n\tconst [disableSubmit, setDisableSubmit] = useState<string | false>(false);\n\tconst analytic = useAnalyticContext();\n\n\tconst selectedRfv = createNewMessageController.getSelectedReasonForVisit();\n\n\tfunction handleFileManagerStateChange(state: FileManagerServiceReadyState) {\n\t\tsetDisableSubmit(\n\t\t\tstate === FileManagerServiceReadyState.NotReady\n\t\t\t\t? withTranslation('View.CreateNewMessage.ScreenConclusion.AttachedFilesNotReady')\n\t\t\t\t: false,\n\t\t);\n\t}\n\n\tasync function handleSubmit(data: CellulaFormSubmitData) {\n\t\tanalytic.trackEvent('Clicked', 'Submit button');\n\n\t\tconst submitResult = await controller.submit({\n\t\t\t...data,\n\t\t\tfiles: fileManagerService.peakUploadedWorkers(),\n\t\t});\n\n\t\tif (submitResult.err) {\n\t\t\tif (submitResult.err instanceof NonRecoverableError) {\n\t\t\t\tcreateNewMessageController.goToScreen('error');\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\treturn Err(submitResult.err);\n\t\t}\n\n\t\tif (submitResult.ok?.commitJobId && submitResult.ok?.paymentBillId && flowData?.price) {\n\t\t\tsetPayment({\n\t\t\t\tpaymentBillId: submitResult.ok.paymentBillId,\n\t\t\t\tpaymentAmount: flowData.price,\n\t\t\t\tcommitJobId: submitResult.ok.commitJobId,\n\t\t\t});\n\t\t} else {\n\t\t\tcreateNewMessageController.goToScreen('done', {\n\t\t\t\tconversationId: submitResult.ok?.messageConversationId ?? undefined,\n\t\t\t});\n\t\t}\n\n\t\treturn Ok();\n\t}\n\n\tasync function handlePaymentSuccess() {\n\t\tif (!payment?.commitJobId) {\n\t\t\tcreateNewMessageController.goToScreen('error');\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst paymentResult = await controller.waitForCommitStatus(payment.commitJobId);\n\t\tif (paymentResult.err) {\n\t\t\tcreateNewMessageController.goToScreen('error');\n\n\t\t\treturn;\n\t\t}\n\n\t\tcreateNewMessageController.goToScreen('done', {\n\t\t\tconversationId: paymentResult.ok?.messageConversationId ?? undefined,\n\t\t});\n\n\t\treturn Ok();\n\t}\n\n\tfunction handlePaymentAbort() {\n\t\tsetPayment(null);\n\t}\n\n\tconst showMessageTextArea = !flowSettings.predefinedDescriptionOfMatter;\n\tconst showAttachFiles = flowSettings.attachFiles;\n\tconst showDetails = flowData.price || selectedRfv || basketService.formManager.getForms().length;\n\tconst emptyDescription =\n\t\tshowMessageTextArea || showAttachFiles || showDetails\n\t\t\t? undefined\n\t\t\t: withTranslation('View.CreateNewMessage.ScreenConclusion.EmptyDescription');\n\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content goBack />\n\n\t\t\t<Flex grow={1} gap={tokens.spacing.x2}>\n\t\t\t\t<Title\n\t\t\t\t\ttitle={withTranslation('View.CreateNewMessage.ScreenConclusion.Title')}\n\t\t\t\t\ttitleSize='small'\n\t\t\t\t\tdescription={emptyDescription}\n\t\t\t\t/>\n\n\t\t\t\t<Flex grow='1' gap={tokens.size.x3}>\n\t\t\t\t\t<Form.Root onSubmit={handleSubmit} options={{}}>\n\t\t\t\t\t\t{showMessageTextArea || showAttachFiles ? (\n\t\t\t\t\t\t\t<Flex gap={tokens.size.x2}>\n\t\t\t\t\t\t\t\t{showMessageTextArea ? (\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t<InputTextArea\n\t\t\t\t\t\t\t\t\t\t\tname='message'\n\t\t\t\t\t\t\t\t\t\t\tlabel={withTranslation('View.CreateNewMessage.ScreenConclusion.Input.Label.Reason')}\n\t\t\t\t\t\t\t\t\t\t\tminHeight={120}\n\t\t\t\t\t\t\t\t\t\t\tmaxHeight={400}\n\t\t\t\t\t\t\t\t\t\t\tautoHeight\n\t\t\t\t\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\t\t\t\t\tcharacterCount={REASON_MAX_LENGTH}\n\t\t\t\t\t\t\t\t\t\t\toptions={{\n\t\t\t\t\t\t\t\t\t\t\t\tvalidate: {\n\t\t\t\t\t\t\t\t\t\t\t\t\trequired: (v) =>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalidateRequired(v) ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twithTranslation('View.CreateNewMessage.ScreenConclusion.ValidationError.Required.Reason'),\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tmaxLength: {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: REASON_MAX_LENGTH,\n\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: withTranslation('View.CreateNewMessage.ScreenConclusion.ValidationError.MaxLength.Reason', {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaxLength: `${REASON_MAX_LENGTH}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t\t\t{showAttachFiles ? (\n\t\t\t\t\t\t\t\t\t<Flex gap={tokens.size.x1}>\n\t\t\t\t\t\t\t\t\t\t<fieldset style={{ display: 'contents' }}>\n\t\t\t\t\t\t\t\t\t\t\t<Label type='legend' optional>\n\t\t\t\t\t\t\t\t\t\t\t\t{withTranslation('Form.Input.Label.AttachedFiles')}\n\t\t\t\t\t\t\t\t\t\t\t</Label>\n\t\t\t\t\t\t\t\t\t\t\t<FileUpload.Root identityEndpointPath='client/v2/userfiles' onStateChange={handleFileManagerStateChange}>\n\t\t\t\t\t\t\t\t\t\t\t\t<FileUpload.List />\n\t\t\t\t\t\t\t\t\t\t\t\t<FileUpload.DropZone>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<FileUpload.Button />\n\t\t\t\t\t\t\t\t\t\t\t\t</FileUpload.DropZone>\n\t\t\t\t\t\t\t\t\t\t\t</FileUpload.Root>\n\t\t\t\t\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t{showDetails ? (\n\t\t\t\t\t\t\t<DataList.Root>\n\t\t\t\t\t\t\t\t{flowData.price ? (\n\t\t\t\t\t\t\t\t\t<DataList.Item label={withTranslation('Common.Label.Cost')}>\n\t\t\t\t\t\t\t\t\t\t<BadgeText variant='info'>{flowData.price}</BadgeText>\n\t\t\t\t\t\t\t\t\t</DataList.Item>\n\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t{selectedRfv ? (\n\t\t\t\t\t\t\t\t\t<DataList.Item label={withTranslation('Common.Label.Rfv')}>{selectedRfv?.Name ?? ''}</DataList.Item>\n\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t{basketService.formManager.getForms().length > 0 ? (\n\t\t\t\t\t\t\t\t\t<DataList.Item label={withTranslation('Common.Label.AnsweredForms')} direction='vertical'>\n\t\t\t\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t\t\t\t\t{basketService.formManager.getForms().map((form) => (\n\t\t\t\t\t\t\t\t\t\t\t\t<FormCard key={form.formId} formWorker={form} analyticAction='' onCompleted={false} />\n\t\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t\t</DataList.Item>\n\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t</DataList.Root>\n\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t<Form.Error />\n\n\t\t\t\t\t\t<StyledBottomSection grow='1' justify='flex-end' gap={tokens.spacing.x2}>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t{withTranslation('View.CreateNewMessage.ScreenConclusion.Terms.Part1')}{' '}\n\t\t\t\t\t\t\t\t<IframeSheet\n\t\t\t\t\t\t\t\t\tsrc={controller.termsOfServiceUrl.value ?? ''}\n\t\t\t\t\t\t\t\t\ttrigger={\n\t\t\t\t\t\t\t\t\t\t<TextLink as='button' size='small'>\n\t\t\t\t\t\t\t\t\t\t\t{withTranslation('View.CreateNewMessage.ScreenConclusion.Terms.Link')}\n\t\t\t\t\t\t\t\t\t\t</TextLink>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/>{' '}\n\t\t\t\t\t\t\t\t{withTranslation('View.CreateNewMessage.ScreenConclusion.Terms.Part2')}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<ButtonArrange>\n\t\t\t\t\t\t\t\t<Form.SubmitButton disabled={!!disableSubmit} disabledText={disableSubmit || ''}>\n\t\t\t\t\t\t\t\t\t{flowData.requirePayment\n\t\t\t\t\t\t\t\t\t\t? withTranslation('View.CreateNewMessage.ScreenConclusion.ButtonWithPayment')\n\t\t\t\t\t\t\t\t\t\t: withTranslation('View.CreateNewMessage.ScreenConclusion.ButtonWithoutPayment')}\n\t\t\t\t\t\t\t\t</Form.SubmitButton>\n\t\t\t\t\t\t\t</ButtonArrange>\n\t\t\t\t\t\t</StyledBottomSection>\n\t\t\t\t\t</Form.Root>\n\t\t\t\t</Flex>\n\t\t\t</Flex>\n\t\t\t{payment ? (\n\t\t\t\t<PaymentSheet\n\t\t\t\t\tbillId={payment.paymentBillId}\n\t\t\t\t\tpaymentAmount={payment.paymentAmount}\n\t\t\t\t\tonSuccess={handlePaymentSuccess}\n\t\t\t\t\tonAbort={handlePaymentAbort}\n\t\t\t\t/>\n\t\t\t) : null}\n\t\t</>\n\t);\n}\n\ninterface Props {\n\tbillId: number;\n\tpaymentAmount: string;\n\tonSuccess?: () => void;\n\tonAbort?: () => void;\n}\n\nfunction PaymentSheet({ paymentAmount, billId, onSuccess, onAbort }: Props): JSX.Element {\n\treturn (\n\t\t<Sheet onClose={onAbort} defaultOpen variant='full-restricted'>\n\t\t\t<Payment billId={billId} paymentAmount={paymentAmount} onSuccess={onSuccess} onAbort={onAbort} />\n\t\t</Sheet>\n\t);\n}\n","import { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { IllustrativeView } from '@component/illustrative_view.component';\nimport { TopBar } from '@component/top_bar.component';\nimport { RouterService } from '@cortex-shim/router.service';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { useEffect } from 'react';\nimport { useParams } from 'react-router';\n\nexport function ScreenDone() {\n\tconst { conversationId } = useParams();\n\tconst routerService = useResolve(RouterService);\n\tconst analyticCtx = useAnalyticContext();\n\n\tuseEffect(\n\t\tfunction whenMount() {\n\t\t\tanalyticCtx.service.trackPageView({\n\t\t\t\tcustomTitle: 'Create new message: Done',\n\t\t\t});\n\t\t},\n\t\t[analyticCtx],\n\t);\n\n\tfunction handleNextClick() {\n\t\tanalyticCtx.trackEvent('Clicked', 'Go to case button');\n\n\t\tif (conversationId) {\n\t\t\trouterService.navigateByUrl(`/visits/message/${conversationId}`);\n\t\t} else {\n\t\t\trouterService.navigateByUrl('/visits');\n\t\t}\n\n\t\t// TODO: Remove when angular is gone!\n\t\tif (\n\t\t\t(window as typeof window & { __TEMP__overrideNavigation: Record<string, unknown> | undefined })['__TEMP__overrideNavigation'] !=\n\t\t\tnull\n\t\t) {\n\t\t\twindow.location.reload();\n\t\t}\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content onAbort={null} />\n\t\t\t<IllustrativeView\n\t\t\t\ttitle={withTranslation('View.CreateNewMessage.ScreenDone.Title')}\n\t\t\t\tdescription={withTranslation('View.CreateNewMessage.ScreenDone.Description')}\n\t\t\t\tillustration='messageSent'\n\t\t\t\tcallToAction={withTranslation('View.CreateNewMessage.ScreenDone.Button')}\n\t\t\t\tcallToActionCallback={handleNextClick}\n\t\t\t/>\n\t\t</>\n\t);\n}\n","import { Flex } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { useResolve, useResolveController, withNewContainer } from '@visiba-cortex/instantiation';\nimport { useTitle } from '@application/use_title';\nimport { Route, Routes } from 'react-router';\nimport { TopBar } from '@component/top_bar.component';\nimport { ScreenStart } from './screen_start/screen_start.component';\nimport { ViewNotFound } from '@view/view_not_found/view_not_found_route.component';\nimport { ScreenRfv } from './screen_rfv/screen_rfv.component';\nimport { CreateNewMessageController } from './view_create_new_message.controller';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { Shimmer } from '@component/new_shimmer.component';\nimport { Async } from '@component/async.component';\nimport { ScreenForms } from './screen_forms/screen_forms.component';\nimport { ScreenConclusion } from './screen_conclusion/mod';\nimport { ScreenDone } from './screen_done/screen_done.component';\nimport { useEffect, useState } from 'react';\nimport { AnalyticProvider, useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { ScreenError } from './screen_error/screen_error';\n\ninterface Props {}\n\n/**\n * Entrypoint for Create New Message.\n *\n * **NOTE:**\n * Will isolate dependency resolution within its subtree.\n */\nexport const ViewCreateNewMessage = withNewContainer(function ViewCreateNewMessage(_: Props) {\n\tconst controller = useResolveController(CreateNewMessageController);\n\tconst analyticService = useResolve(AnalyticService);\n\n\tuseTitle(withTranslation('View.CreateNewMessage.Title'));\n\n\tasync function handleAbort(): Promise<void> {\n\t\tanalyticService.trackEvent(AnalyticCategories.CreateNewMessage, 'Clicked', 'Abort button');\n\n\t\ttry {\n\t\t\tawait controller.deleteBasket();\n\t\t} catch {\n\t\t\t// Just continue if the request fails...\n\t\t}\n\n\t\tcontroller.goToReceptionHome();\n\n\t\t// TODO: Remove when angular is gone!\n\t\tif (\n\t\t\t(window as typeof window & { __TEMP__overrideNavigation: Record<string, unknown> | undefined })['__TEMP__overrideNavigation'] !=\n\t\t\tnull\n\t\t) {\n\t\t\twindow.location.reload();\n\t\t}\n\t}\n\n\treturn (\n\t\t<AnalyticProvider category={AnalyticCategories.CreateNewMessage}>\n\t\t\t<Flex grow='1'>\n\t\t\t\t<TopBar.Content title={withTranslation('View.CreateNewMessage.Title')} onAbort={handleAbort} />\n\n\t\t\t\t<Async derive={controller.flowData} fallback={<Skeleton />} catch={<ScreenError />}>\n\t\t\t\t\t{() => (\n\t\t\t\t\t\t<Routes>\n\t\t\t\t\t\t\t<Route index element={<ViewCreateNewMessageSetup />} />\n\t\t\t\t\t\t\t<Route path='*' element={<ViewCreateNewMessageRoutes />} />\n\t\t\t\t\t\t</Routes>\n\t\t\t\t\t)}\n\t\t\t\t</Async>\n\t\t\t</Flex>\n\t\t</AnalyticProvider>\n\t);\n});\n\nfunction ViewCreateNewMessageSetup() {\n\tconst controller = useResolveController(CreateNewMessageController);\n\tconst [error, setError] = useState(false);\n\tconst analytic = useAnalyticContext();\n\n\tuseEffect(\n\t\tfunction whenMounted() {\n\t\t\tasync function setupBasket() {\n\t\t\t\tconst setupResult = await controller.setupNewBasket();\n\t\t\t\tif (setupResult.err) {\n\t\t\t\t\tsetError(true);\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tcontroller.goToScreen('start');\n\t\t\t}\n\n\t\t\tsetupBasket();\n\t\t\tanalytic.trackEvent('Setup new basket');\n\t\t},\n\t\t[controller, analytic],\n\t);\n\n\tif (error) {\n\t\treturn <ScreenError />;\n\t}\n\n\treturn <Skeleton />;\n}\n\nfunction ViewCreateNewMessageRoutes() {\n\tconst controller = useResolveController(CreateNewMessageController);\n\tconst analyticCtx = useAnalyticContext();\n\n\tuseEffect(\n\t\tfunction whenMounted() {\n\t\t\tcontroller.loadSettings();\n\n\t\t\tanalyticCtx.trackEvent('Load settings');\n\t\t},\n\t\t[controller, analyticCtx],\n\t);\n\n\tif (controller.flowSettings.value.flowState === 'pending') {\n\t\treturn <Skeleton />;\n\t}\n\n\treturn (\n\t\t<Routes>\n\t\t\t<Route path='/start'>\n\t\t\t\t<Route index element={<ScreenStart />} />\n\t\t\t</Route>\n\t\t\t<Route path='/reason-for-visit'>\n\t\t\t\t<Route index element={<ScreenRfv />} />\n\t\t\t</Route>\n\t\t\t<Route path='/forms/*' element={<ScreenForms />} />\n\t\t\t<Route path='/conclusion'>\n\t\t\t\t<Route index element={<ScreenConclusion />} />\n\t\t\t</Route>\n\t\t\t<Route path='/done' element={<ScreenDone />} />\n\t\t\t<Route path='/done/:conversationId' element={<ScreenDone />} />\n\t\t\t<Route path='/error'>\n\t\t\t\t<Route index element={<ScreenError />} />\n\t\t\t</Route>\n\t\t\t<Route path='/*' element={<ViewNotFound />} />\n\t\t</Routes>\n\t);\n}\n\nexport function Skeleton() {\n\treturn (\n\t\t<Flex gap={tokens.spacing.x3} grow='1'>\n\t\t\t<Shimmer height={40} width='50%' />\n\n\t\t\t<Flex gap={tokens.spacing.x0_5}>\n\t\t\t\t<Shimmer height={15} width='30%' />\n\t\t\t\t<Shimmer height={15} width='80%' />\n\t\t\t\t<Shimmer height={15} width='60%' />\n\t\t\t\t<Shimmer height={15} width='70%' />\n\t\t\t</Flex>\n\t\t</Flex>\n\t);\n}\n","import { AfterViewInit, Component, ElementRef, NgZone, OnDestroy, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { Root, createRoot } from 'react-dom/client';\nimport { ViewCreateNewMessage } from '../../../patient/src/views/view_create_new_message/view_create_new_message.component';\nimport { Route, Routes } from 'react-router';\nimport { sharedResolution } from '@public/src/shared_resolution';\nimport { LocationSelectorService } from '@public/src/application/services/location_selector.service';\nimport { OutletPage } from '@component/outlet_page.component';\nimport { ProgrammaticBrowserRouter } from '@cortex-shim/programmatic_browser_router.component';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { PatientFlowContainer } from '@public/src/components/patient_flow_container.component';\n\nconst containerElementName = 'CreateNewMessageComponent';\nconst FULL_HEIGHT_CLASS_NAME = 'js-fullHeight';\n\n@Component({\n\tstandalone: false,\n\tstyleUrls: ['./css/create-new-message.wrapper.scss'],\n\tselector: 'create-new-message-component',\n\ttemplate: ` <semantic-view hideOnMobile=\"true\">\n\t\t<header-component header></header-component>\n\n\t\t<div class=\"wrapper-container\" #${containerElementName}></div>\n\n\t\t<footer-component footer></footer-component>\n\t</semantic-view>`,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class CreateNewMessageWrapper implements OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(private readonly ngZone: NgZone) {\n\t\t// Empty\n\t}\n\n\tngAfterViewInit() {\n\t\tdocument.body.classList.add(FULL_HEIGHT_CLASS_NAME);\n\t\tthis.render();\n\t}\n\n\tngOnDestroy() {\n\t\tdocument.body.classList.remove(FULL_HEIGHT_CLASS_NAME);\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate async render() {\n\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\t\tconst universalConfigService = sharedResolution.resolve(UniversalConfig);\n\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tconst split = locationSelectorService.location.route.split('/');\n\t\tsplit.splice(0, 1);\n\t\tconst routeBase = split.join('/');\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper useGlobals>\n\t\t\t\t\t<PatientFlowContainer>\n\t\t\t\t\t\t<ProgrammaticBrowserRouter basename={universalConfigService.alias} forceNewHistory>\n\t\t\t\t\t\t\t<Routes>\n\t\t\t\t\t\t\t\t<Route path={routeBase} element={<OutletPage />}>\n\t\t\t\t\t\t\t\t\t<Route path='message/*' element={<ViewCreateNewMessage />} />\n\t\t\t\t\t\t\t\t</Route>\n\t\t\t\t\t\t\t</Routes>\n\t\t\t\t\t\t</ProgrammaticBrowserRouter>\n\t\t\t\t\t</PatientFlowContainer>\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n","\"use client\";\n\n// packages/react/avatar/src/Avatar.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AVATAR_NAME = \"Avatar\";\nvar [createAvatarContext, createAvatarScope] = createContextScope(AVATAR_NAME);\nvar [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);\nvar Avatar = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, ...avatarProps } = props;\n const [imageLoadingStatus, setImageLoadingStatus] = React.useState(\"idle\");\n return /* @__PURE__ */ jsx(\n AvatarProvider,\n {\n scope: __scopeAvatar,\n imageLoadingStatus,\n onImageLoadingStatusChange: setImageLoadingStatus,\n children: /* @__PURE__ */ jsx(Primitive.span, { ...avatarProps, ref: forwardedRef })\n }\n );\n }\n);\nAvatar.displayName = AVATAR_NAME;\nvar IMAGE_NAME = \"AvatarImage\";\nvar AvatarImage = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, src, onLoadingStatusChange = () => {\n }, ...imageProps } = props;\n const context = useAvatarContext(IMAGE_NAME, __scopeAvatar);\n const imageLoadingStatus = useImageLoadingStatus(src);\n const handleLoadingStatusChange = useCallbackRef((status) => {\n onLoadingStatusChange(status);\n context.onImageLoadingStatusChange(status);\n });\n useLayoutEffect(() => {\n if (imageLoadingStatus !== \"idle\") {\n handleLoadingStatusChange(imageLoadingStatus);\n }\n }, [imageLoadingStatus, handleLoadingStatusChange]);\n return imageLoadingStatus === \"loaded\" ? /* @__PURE__ */ jsx(Primitive.img, { ...imageProps, ref: forwardedRef, src }) : null;\n }\n);\nAvatarImage.displayName = IMAGE_NAME;\nvar FALLBACK_NAME = \"AvatarFallback\";\nvar AvatarFallback = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, delayMs, ...fallbackProps } = props;\n const context = useAvatarContext(FALLBACK_NAME, __scopeAvatar);\n const [canRender, setCanRender] = React.useState(delayMs === void 0);\n React.useEffect(() => {\n if (delayMs !== void 0) {\n const timerId = window.setTimeout(() => setCanRender(true), delayMs);\n return () => window.clearTimeout(timerId);\n }\n }, [delayMs]);\n return canRender && context.imageLoadingStatus !== \"loaded\" ? /* @__PURE__ */ jsx(Primitive.span, { ...fallbackProps, ref: forwardedRef }) : null;\n }\n);\nAvatarFallback.displayName = FALLBACK_NAME;\nfunction useImageLoadingStatus(src) {\n const [loadingStatus, setLoadingStatus] = React.useState(\"idle\");\n useLayoutEffect(() => {\n if (!src) {\n setLoadingStatus(\"error\");\n return;\n }\n let isMounted = true;\n const image = new window.Image();\n const updateStatus = (status) => () => {\n if (!isMounted) return;\n setLoadingStatus(status);\n };\n setLoadingStatus(\"loading\");\n image.onload = updateStatus(\"loaded\");\n image.onerror = updateStatus(\"error\");\n image.src = src;\n return () => {\n isMounted = false;\n };\n }, [src]);\n return loadingStatus;\n}\nvar Root = Avatar;\nvar Image = AvatarImage;\nvar Fallback = AvatarFallback;\nexport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n Fallback,\n Image,\n Root,\n createAvatarScope\n};\n","import styled, { css } from 'styled-components';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport * as RadixAvatar from '@radix-ui/react-avatar';\nimport { Fragment, ReactNode } from 'react';\nimport { createInitials } from '@visiba/std';\n\ntype Size = 'small' | 'medium' | 'large';\n\ninterface PropsWithImage {\n\tsrc?: string | null;\n\tname: string;\n\tsize?: Size;\n\ticon?: ReactNode;\n}\n\ninterface PropsWithIcon {\n\tsrc?: never;\n\tname?: never | null;\n\tsize?: Size;\n\ticon: ReactNode;\n}\n\ntype Props = PropsWithImage | PropsWithIcon;\n\nconst elements = {\n\troot: styled(RadixAvatar.Root)<{ size: Size }>`\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tvertical-align: middle;\n\t\toverflow: hidden;\n\t\tuser-select: none;\n\t\tborder-radius: 100%;\n\t\tbackground-color: ${primitiveColorTokens.neutral[100]};\n\t\tflex-shrink: 0;\n\n\t\t${({ size }) => {\n\t\t\tswitch (size) {\n\t\t\t\tcase 'small':\n\t\t\t\t\treturn css`\n\t\t\t\t\t\t--_avatar-size: 32px;\n\t\t\t\t\t`;\n\t\t\t\tcase 'medium':\n\t\t\t\t\treturn css`\n\t\t\t\t\t\t--_avatar-size: 40px;\n\t\t\t\t\t`;\n\t\t\t\tcase 'large':\n\t\t\t\t\treturn css`\n\t\t\t\t\t\t--_avatar-size: 48px;\n\t\t\t\t\t`;\n\t\t\t\tdefault:\n\t\t\t\t\treturn null;\n\t\t\t}\n\t\t}}\n\n\t\twidth: var(--_avatar-size);\n\t\theight: var(--_avatar-size);\n\t`,\n\timage: styled(RadixAvatar.Image)`\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t\tborder-radius: inherit;\n\t`,\n\ticon: styled.div`\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t\tborder-radius: inherit;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tbackground-color: ${tokens.color.bg.surfaceBrand};\n\t\tcolor: ${tokens.color.content.mutedBrand};\n\t\tfont-size: var(--_avatar-size);\n\t`,\n\tfallback: styled(RadixAvatar.Fallback)`\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tbackground-color: ${tokens.color.bg.surfaceBrand};\n\t\tcolor: ${tokens.color.content.mutedBrand};\n\t\tfont: ${tokens.text.label.largeSemiBold};\n\t`,\n};\n\nexport function Avatar({ src, name, size = 'medium', icon }: Props): JSX.Element {\n\treturn (\n\t\t<elements.root size={size}>\n\t\t\t<IllustrativeContent src={src} fallback={name} icon={icon} />\n\t\t</elements.root>\n\t);\n}\n\ninterface IllustrativePropsWithSrc {\n\tsrc: string;\n\tfallback: string;\n\ticon?: never;\n}\n\ninterface IllustrativePropsWithIcon {\n\tsrc?: string | null;\n\tfallback?: string | null;\n\ticon: ReactNode;\n}\n\ntype IllustrativeProps = IllustrativePropsWithSrc | IllustrativePropsWithIcon;\n\nfunction IllustrativeContent({ fallback, src, icon }: IllustrativeProps): JSX.Element {\n\tif (fallback != null) {\n\t\tconst initials = createInitials(fallback ?? '', '');\n\n\t\treturn (\n\t\t\t<Fragment>\n\t\t\t\t{src != null ? <elements.image aria-hidden='true' src={src} /> : null}\n\t\t\t\t<elements.fallback aria-hidden='true' delayMs={src != null ? 600 : undefined}>\n\t\t\t\t\t{initials}\n\t\t\t\t</elements.fallback>\n\t\t\t</Fragment>\n\t\t);\n\t}\n\n\treturn <elements.icon aria-hidden='true'>{icon}</elements.icon>;\n}\n","\"use client\"\nimport a from\"react\";import p from\"react\";var E=typeof window==\"undefined\",m=E?p.useEffect:p.useLayoutEffect,B=0,_=()=>++B,v=!1;function O(){let[n,r]=p.useState(v?_:void 0);return m(()=>{n===void 0&&r(_()),v=!0},[]),n===void 0?n:`rwb-${n.toString(32)}`}function R(){return p.useMemo(()=>\"useId\"in p?p.useId:O,[])()}var y=\"__wrap_b\",f=\"__wrap_n\",S=\"__wrap_o\",T=(n,r,e)=>{e=e||document.querySelector(`[data-br=\"${n}\"]`);let t=e==null?void 0:e.parentElement;if(!t)return;let l=u=>e.style.maxWidth=u+\"px\";e.style.maxWidth=\"\";let i=t.clientWidth,d=t.clientHeight,o=i/2-.25,s=i+.5,c;if(i){for(l(o),o=Math.max(e.scrollWidth,o);o+1<s;)c=Math.round((o+s)/2),l(c),t.clientHeight===d?s=c:o=c;l(s*r+i*(1-r))}e.__wrap_o||(typeof ResizeObserver!=\"undefined\"?(e.__wrap_o=new ResizeObserver(()=>{self.__wrap_b(0,+e.dataset.brr,e)})).observe(t):process.env.NODE_ENV===\"development\"&&console.warn(\"The browser you are using does not support the ResizeObserver API. Please consider add polyfill for this API to avoid potential layout shifts or upgrade your browser. Read more: https://github.com/shuding/react-wrap-balancer#browser-support-information\"))},I=T.toString(),w='(self.CSS&&CSS.supports(\"text-wrap\",\"balance\")?1:2)',g=(n,r,e=\"\")=>(e&&(e=`self.${f}!=1&&${e}`),a.createElement(\"script\",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:(n?\"\":`self.${f}=self.${f}||${w};self.${y}=${I};`)+e},nonce:r})),h=a.createContext({preferNative:!0,hasProvider:!1}),Y=({preferNative:n=!0,nonce:r,children:e})=>{let t=a.useMemo(()=>({preferNative:n,hasProvider:!0}),[n]);return a.createElement(h.Provider,{value:t},g(!1,r),e)},P=a.forwardRef(({ratio:n=1,preferNative:r,nonce:e,children:t,as:l,...i},d)=>{let o=R(),s=a.useRef(),c=a.useContext(h),u=r!=null?r:c.preferNative,x=l||\"span\";return a.useImperativeHandle(d,()=>s.current,[]),m(()=>{u&&self[f]===1||s.current&&(self[y]=T)(0,n,s.current)},[t,u,n]),m(()=>{if(!(u&&self[f]===1))return()=>{if(!s.current)return;let b=s.current[S];b&&(b.disconnect(),delete s.current[S])}},[u]),process.env.NODE_ENV===\"development\"&&t&&!Array.isArray(t)&&typeof t==\"object\"&&\"type\"in t&&typeof t.type==\"string\"&&t.type!==\"span\"&&console.warn(`<Balancer> should not wrap <${t.type}> inside. Instead, it should directly wrap text or inline nodes.\n\nTry changing this:\n <Balancer><${t.type}>content</${t.type}></Balancer>\nTo:\n <${t.type}><Balancer>content</Balancer></${t.type}>`),a.createElement(a.Fragment,null,a.createElement(x,{...i,\"data-br\":o,\"data-brr\":n,ref:s,style:{display:\"inline-block\",verticalAlign:\"top\",textDecoration:\"inherit\",textWrap:u?\"balance\":\"initial\"},suppressHydrationWarning:!0},t),g(c.hasProvider,e,`self.${y}(\"${o}\",${n})`))});if(!E&&process.env.NODE_ENV!==\"production\"){let n=document.querySelector(\"[data-next-hide-fouc]\");if(n){let r=t=>{for(let l of t)for(let i of Array.from(l.removedNodes)){if(i!==n)continue;e.disconnect();let d=document.querySelectorAll(\"[data-br]\");for(let o of Array.from(d))self[y](0,+o.dataset.brr,o)}},e=new MutationObserver(r);e.observe(document.head,{childList:!0})}}var A=P;export{P as Balancer,Y as Provider,A as default};\n","import { HomeGuiComponentsApiModel } from '@api/generated/models';\nimport { LicenceHolderApiService } from '@api/licence_holder_api.service';\nimport { Box, BreakPoints, Button, Flex, Icon, SafeArea, Spacer, Spinner, Tooltip, useBreakpoint } from '@cellula/react';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport { Avatar } from '@components/aavatar.component';\nimport { AttentionCard } from '@components/attention_card/attention_card.component';\nimport { FlexibleIdentifier } from '@components/flexible_identifier/flexible_identifier.component';\nimport { SuspendedPresentation } from '@components/suspended_presentation.component';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { useUser } from '@services/auth/mod';\nimport { ComponentUnion, FlexibleComponentService } from '@services/flexible_component/flexible_component.service';\nimport { VisibaEnvelope } from '@services/http.service';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { Scoped, useResolve } from '@visiba-cortex/instantiation';\nimport { Presentation } from '@visiba-cortex/presentation';\nimport { clamp, rem } from '@visiba/std';\nimport { AnimatePresence, motion, useScroll } from 'framer-motion';\nimport { createContext, Fragment, useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport Balancer from 'react-wrap-balancer';\nimport styled from 'styled-components';\nimport { Icon as IIcon, IconType as IIconType } from '../../../src/components/icon.component';\nimport { AnalyticService } from '@application/analytic/analytic.service';\n\ninterface Props {\n\t__TEMP__onSignIn?: () => void;\n}\n\nconst StyledView = styled.div`\n\tposition: relative;\n\tmin-height: calc(100vh - var(--header-height) - 50px);\n\twidth: 100%;\n\tbackground-color: #fff;\n`;\n\nconst StyledUniqueButtons = styled.div`\n\twidth: 100%;\n\tmargin: 0 auto;\n\tmax-width: var(--visiba-inner-width-medium);\n\tpadding: ${rem(64)} var(--gap) ${rem(64)};\n\tmin-height: 600px;\n\toverflow: hidden;\n\n\t${tokens.breakpointQuery.medium} {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: repeat(1, 1fr);\n\t\tgrid-column-gap: 10px;\n\t\tgrid-row-gap: 48px;\n\t}\n`;\n\nexport function Home({ __TEMP__onSignIn }: Props): JSX.Element {\n\tconst user = useUser();\n\tconst controller = useResolve(HomeController);\n\tconst analyticService = useResolve(AnalyticService);\n\tconst shouldShowAttentionCard = useBreakpoint(BreakPoints.Medium | BreakPoints.Large);\n\n\tuseEffect(\n\t\tfunction analyticQuirk_whenComponentMounts() {\n\t\t\tanalyticService.trackPageView({ customTitle: `Landing Page` });\n\t\t},\n\t\t[analyticService],\n\t);\n\n\treturn (\n\t\t<Fragment>\n\t\t\t{/* todo: This should be a provider, and not rendered like this... */}\n\t\t\t{/* todo: This should always be rendered but we'll constrain this to desktop... */}\n\t\t\t{shouldShowAttentionCard ? <AttentionCard /> : null}\n\n\t\t\t<HomeContextForLegacyRouting.Provider value={{ legacySignInRouting: __TEMP__onSignIn }}>\n\t\t\t\t{user == null ? <Hero /> : null}\n\n\t\t\t\t<StyledView>\n\t\t\t\t\t<SuspendedPresentation\n\t\t\t\t\t\tcontroller={controller}\n\t\t\t\t\t\tfallback={\n\t\t\t\t\t\t\t<StyledUniqueButtons>\n\t\t\t\t\t\t\t\t<Spinner size='large' />\n\t\t\t\t\t\t\t</StyledUniqueButtons>\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t{(presentation) => <DataContainer presentation={presentation} />}\n\t\t\t\t\t</SuspendedPresentation>\n\t\t\t\t</StyledView>\n\t\t\t</HomeContextForLegacyRouting.Provider>\n\t\t</Fragment>\n\t);\n}\n\nconst HomeContextForLegacyRouting = createContext<{ legacySignInRouting?: () => void }>({ legacySignInRouting: undefined });\n\nfunction DataContainer({ presentation }: { presentation: Presentation }): JSX.Element {\n\tconst breakpoint = useBreakpoint();\n\n\tconst buttonIdentifierList = useMemo(() => {\n\t\tlet dataSet = presentation.componentsLarge;\n\t\tif (breakpoint === BreakPoints.Small) {\n\t\t\tdataSet = presentation.componentsSmall;\n\t\t}\n\n\t\treturn dataSet.map((component) => <FlexibleIdentifier key={component.id} component={component} />);\n\t}, [breakpoint, presentation]);\n\n\treturn <StyledUniqueButtons data-testid='Home'>{buttonIdentifierList}</StyledUniqueButtons>;\n}\n\ninterface Presentation {\n\tcomponentsLarge: ComponentUnion[];\n\tcomponentsSmall: ComponentUnion[];\n}\n\n@Scoped()\nclass HomeController {\n\tpublic readonly presentation = Presentation.createConcurrent<Presentation>();\n\n\tconstructor(\n\t\tprivate readonly flexibleComponentService: FlexibleComponentService,\n\t\tprivate readonly licenceHolderService: LicenceHolderService,\n\t\tprivate readonly licenceHolderApiService: LicenceHolderApiService,\n\t) {\n\t\tthis.presentation.suspend(\n\t\t\tthis.licenceHolderApiService.getHomeGuiComponents(this.licenceHolderService.id),\n\t\t\tthis.parseBackendData.bind(this),\n\t\t);\n\t}\n\n\tprivate parseBackendData({ data }: VisibaEnvelope<HomeGuiComponentsApiModel>): Presentation {\n\t\treturn {\n\t\t\tcomponentsLarge: data.LayoutLarge.map((guiComponent) => this.flexibleComponentService.produce(guiComponent.Type, guiComponent)),\n\t\t\tcomponentsSmall: data.LayoutSmall.map((guiComponent) => this.flexibleComponentService.produce(guiComponent.Type, guiComponent)),\n\t\t};\n\t}\n}\n\nconst StyledHero = styled.div`\n\tdisplay: flex;\n\tposition: relative;\n\theight: calc(85vh - var(--header-height));\n\twidth: 100%;\n\tmin-height: 400px;\n`;\n\nconst StyledBackground = styled.div`\n\tposition: absolute;\n\tinset: 0;\n\tbackground: linear-gradient(252.15deg, ${primitiveColorTokens.primary['300']} 21.57%, ${primitiveColorTokens.primary['200']}) 88.57%\n\t\tcenter;\n\tz-index: -1;\n\n\t&:after {\n\t\tcontent: '';\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tposition: absolute;\n\t\theight: 200px;\n\t\tbackground: linear-gradient(0, #fff 0%, transparent 100%);\n\t\tpointer-events: none;\n\t\tz-index: 0;\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\theight: 400px;\n\t\t}\n\t}\n`;\n\nconst StyledTitle = styled.h1`\n\tz-index: 1;\n\n\tfont: ${tokens.text.heading.xLarge};\n\tcolor: ${tokens.color.content.default};\n\n\tfont-weight: 700;\n\tletter-spacing: 0px;\n\tfont-size: ${rem(35)};\n\tline-height: ${rem(35)};\n\twhite-space: normal;\n\n\t${tokens.breakpointQuery.medium} {\n\t\tfont-size: ${rem(55)};\n\t\tline-height: ${rem(66)};\n\t}\n`;\n\nconst StyledDescription = styled.p`\n\tz-index: 1;\n\tmax-width: 600px;\n\n\tfont: ${tokens.text.heading.xSmall};\n\tcolor: ${tokens.color.content.muted};\n\n\tletter-spacing: 0px;\n\twhite-space: normal;\n\n\t${tokens.breakpointQuery.medium} {\n\t\tfont: ${tokens.text.heading.xSmall};\n\t}\n`;\n\nconst InnerContainer = styled(motion.div)`\n\tmax-width: var(--visiba-inner-width-medium);\n\tpadding: 4rem var(--gap) 4rem;\n\tz-index: 1;\n`;\n\nfunction Hero(): JSX.Element {\n\tconst breakpoint = useBreakpoint();\n\tconst { legacySignInRouting } = useContext(HomeContextForLegacyRouting);\n\n\treturn (\n\t\t<StyledHero>\n\t\t\t<SafeArea maxWidth='1320px'>\n\t\t\t\t<Box as='article' align='center' justify='center'>\n\t\t\t\t\t<InnerContainer\n\t\t\t\t\t\tinitial={{\n\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tanimate={{\n\t\t\t\t\t\t\topacity: 1,\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<StyledTitle>\n\t\t\t\t\t\t\t<Balancer>{withTranslation('PW.Component.Hero.Title')}</Balancer>\n\t\t\t\t\t\t</StyledTitle>\n\n\t\t\t\t\t\t<Spacer vertical={breakpoint !== BreakPoints.Large ? tokens.spacing.x2 : tokens.spacing.x3} />\n\n\t\t\t\t\t\t<StyledDescription>{withTranslation('PW.Component.Hero.Description')}</StyledDescription>\n\n\t\t\t\t\t\t<Spacer vertical={breakpoint !== BreakPoints.Large ? tokens.spacing.x4 : tokens.spacing.x5} />\n\n\t\t\t\t\t\t<Flex\n\t\t\t\t\t\t\tbreakpointMediumAndUp={{\n\t\t\t\t\t\t\t\talign: 'flex-start',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Button size='xLarge' variant='primary' onClick={legacySignInRouting}>\n\t\t\t\t\t\t\t\t{withTranslation('Common.Button.SignIn')}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</InnerContainer>\n\t\t\t\t</Box>\n\t\t\t</SafeArea>\n\n\t\t\t<ArrowDown />\n\t\t\t<StyledBackground />\n\t\t\t<Card icon='RR_man' delay={0.6} right={5} bottom={60} scale={0.75} bounciness={4} patter='reverse' />\n\t\t\t<Card icon='RR_myself' delay={0.9} right={12} bottom={30} scale={1.3} />\n\t\t</StyledHero>\n\t);\n}\n\nconst ShimmerBox = styled.div`\n\theight: 4px;\n\twidth: 200px;\n\tz-index: 0;\n\tbackground-image: linear-gradient(90deg, rgba(196, 196, 196, 0.4) 0%, rgba(196, 196, 196, 0) 101.95%);\n`;\n\ninterface CardProps {\n\tright?: number;\n\tbottom?: number;\n\tscale?: number;\n\tdive?: number;\n\tdelay?: number;\n\tbounciness?: number;\n\ticon: IIconType;\n\tpatter?: 'reverse' | 'forward';\n}\n\nfunction Card({\n\tright: rightDefault = 0,\n\tbottom: bottomDefault = 0,\n\tscale: scaleDefault = 1,\n\tdelay = 0.3,\n\tdive = 20,\n\tbounciness = 3,\n\tpatter = 'forward',\n\ticon,\n}: CardProps): JSX.Element | null {\n\tconst breakpoint = useBreakpoint();\n\tconst validBreakpoint = breakpoint & (BreakPoints.Large | BreakPoints.Medium);\n\tconst right = breakpoint === BreakPoints.Medium ? clamp(rightDefault * 0.8, [-10, 100]) : rightDefault;\n\tconst bottom = breakpoint === BreakPoints.Medium ? clamp(bottomDefault * 0.8, [0, 100]) : bottomDefault;\n\n\tconst y = patter === 'forward' ? [dive, 0, dive] : [0, dive, 0];\n\tconst rotate =\n\t\tpatter === 'forward'\n\t\t\t? [bounciness, -bounciness, bounciness, -bounciness, bounciness]\n\t\t\t: [-bounciness, bounciness, -bounciness, bounciness, -bounciness];\n\tconst baseDuration = 8;\n\tconst scale = breakpoint !== BreakPoints.Large ? scaleDefault * 0.75 : scaleDefault;\n\n\treturn (\n\t\t<motion.div\n\t\t\tstyle={{\n\t\t\t\tzIndex: 0,\n\t\t\t\tright: `${right}%`,\n\t\t\t\tbottom: `${bottom}%`,\n\t\t\t\tposition: 'absolute',\n\t\t\t\tdisplay: validBreakpoint ? 'inline-block' : 'none',\n\t\t\t\ttransformOrigin: 'center center',\n\t\t\t}}\n\t\t\tinitial={{\n\t\t\t\ty: 50,\n\t\t\t\trotate: 2,\n\t\t\t\topacity: 0,\n\t\t\t\tscale: scale / 4,\n\t\t\t}}\n\t\t\tanimate={{\n\t\t\t\ty: y,\n\t\t\t\trotate: rotate,\n\t\t\t\topacity: 1,\n\t\t\t\tscale: scale,\n\t\t\t\ttransition: {\n\t\t\t\t\tdelay: delay,\n\t\t\t\t\topacity: {\n\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t},\n\t\t\t\t\tscale: {\n\t\t\t\t\t\ttype: 'spring',\n\t\t\t\t\t},\n\t\t\t\t\ty: {\n\t\t\t\t\t\tduration: baseDuration,\n\t\t\t\t\t\trepeat: Infinity,\n\t\t\t\t\t\tease: 'easeInOut',\n\t\t\t\t\t},\n\t\t\t\t\trotate: {\n\t\t\t\t\t\tduration: baseDuration * 3,\n\t\t\t\t\t\trepeat: Infinity,\n\t\t\t\t\t\tease: 'easeInOut',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}}\n\t\t>\n\t\t\t<Box\n\t\t\t\tbackground='white'\n\t\t\t\theight='80px'\n\t\t\t\twidth='300px'\n\t\t\t\tdirection='row'\n\t\t\t\tborderRadius={tokens.borderRadius.large}\n\t\t\t\talign='center'\n\t\t\t\tpadding={tokens.spacing.x1}\n\t\t\t\tboxShadow={tokens.elevation.flying}\n\t\t\t>\n\t\t\t\t<Avatar icon={<IIcon type={icon} />} size='large' />\n\n\t\t\t\t<Spacer vertical={tokens.spacing.x2} />\n\t\t\t\t<Box height='100px' width='250px' padding={'20px'}>\n\t\t\t\t\t<Spacer vertical={tokens.spacing.x1_5} />\n\t\t\t\t\t<ShimmerBox />\n\t\t\t\t\t<Spacer vertical={tokens.spacing.x1_5} />\n\t\t\t\t\t<ShimmerBox />\n\t\t\t\t\t<Spacer vertical={tokens.spacing.x1_5} />\n\t\t\t\t\t<ShimmerBox />\n\t\t\t\t\t<Spacer vertical={tokens.spacing.x1_5} />\n\t\t\t\t</Box>\n\t\t\t</Box>\n\t\t</motion.div>\n\t);\n}\n\nconst StyledArrowAligner = styled(motion.div)`\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\theight: ${tokens.size.x4};\n\tposition: absolute;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\tz-index: 1;\n`;\n\nconst StyledArrowDown = styled.button`\n\tall: unset;\n\twidth: ${tokens.size.x4};\n\theight: ${tokens.size.x4};\n\tborder-radius: 50%;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tborder: 2px solid ${tokens.color.content.interactive};\n\tcolor: ${tokens.color.content.interactive};\n\ttransition: opacity 0.3s ease-in-out;\n\tbackdrop-filter: blur(20px);\n\topacity: 1;\n\n\t${tokens.breakpointQuery.small} {\n\t\topacity: 0.8;\n\n\t\tfont: ${tokens.text.heading.xSmall};\n\t\t&:hover,\n\t\t&:focus {\n\t\t\topacity: 1;\n\t\t}\n\t}\n`;\n\nfunction ArrowDown(): JSX.Element {\n\tconst { scrollY } = useScroll();\n\tconst [show, setShow] = useState(() => scrollY.get() <= 200);\n\tconst ref = useRef<HTMLButtonElement>(null);\n\tconst wasMounted = useRef(false);\n\n\tfunction handleScrollDownClick(): void {\n\t\tref.current?.scrollIntoView({ behavior: 'smooth' });\n\t\tref.current?.blur();\n\t}\n\n\tuseEffect(() => {\n\t\treturn scrollY.on('change', (latest) => {\n\t\t\tsetShow(latest <= 200);\n\t\t});\n\t}, [scrollY]);\n\n\tuseEffect(() => {\n\t\twasMounted.current = true;\n\t}, []);\n\n\treturn (\n\t\t<AnimatePresence initial>\n\t\t\t{show ? (\n\t\t\t\t<StyledArrowAligner\n\t\t\t\t\tinitial={{\n\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\ty: 40,\n\t\t\t\t\t}}\n\t\t\t\t\tanimate={{\n\t\t\t\t\t\topacity: 1,\n\t\t\t\t\t\ty: 0,\n\t\t\t\t\t\ttransition: {\n\t\t\t\t\t\t\ttype: 'spring',\n\t\t\t\t\t\t\tdelay: wasMounted.current ? 0.3 : 1.2,\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t\texit={{\n\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\ty: 20,\n\t\t\t\t\t\ttransition: {\n\t\t\t\t\t\t\ttype: 'spring',\n\t\t\t\t\t\t\tdelay: 0.3,\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Tooltip content={withTranslation('PW.Component.Hero.ScrollDown')}>\n\t\t\t\t\t\t<StyledArrowDown onClick={handleScrollDownClick} ref={ref} tabIndex={-1}>\n\t\t\t\t\t\t\t<motion.div\n\t\t\t\t\t\t\t\tstyle={{ display: 'flex' }}\n\t\t\t\t\t\t\t\tanimate={{\n\t\t\t\t\t\t\t\t\ttranslateY: [4, 0, 4],\n\t\t\t\t\t\t\t\t\ttransition: {\n\t\t\t\t\t\t\t\t\t\ttranslateY: {\n\t\t\t\t\t\t\t\t\t\t\tduration: 2.5,\n\t\t\t\t\t\t\t\t\t\t\trepeat: Infinity,\n\t\t\t\t\t\t\t\t\t\t\tease: 'easeOut',\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Icon size='small' type='arrowRight' rotation={90} />\n\t\t\t\t\t\t\t</motion.div>\n\t\t\t\t\t\t</StyledArrowDown>\n\t\t\t\t\t</Tooltip>\n\t\t\t\t</StyledArrowAligner>\n\t\t\t) : null}\n\t\t</AnimatePresence>\n\t);\n}\n","import {\n\tAfterViewInit,\n\tComponent,\n\tElementRef,\n\tNgZone,\n\tOnChanges,\n\tOnDestroy,\n\tSimpleChanges,\n\tViewChild,\n\tViewEncapsulation,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { Home } from 'src/routes/new_home/mod';\nimport { SpaContext } from 'Public_old/src/app/Classes/spacontext';\nimport { SpaEventService } from 'Public_old/src/app/Services/spaEvents.service';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { Root, createRoot } from 'react-dom/client';\n\nconst containerElementName = 'reactHomeComponent';\n\n@Component({\n\tstandalone: false,\n\tselector: 'home-component',\n\ttemplate: `\n\t\t<semantic-view>\n\t\t\t<header-component header></header-component>\n\t\t\t<div class=\"wrapper-container\" #${containerElementName}></div>\n\t\t\t<footer-component footer></footer-component>\n\t\t</semantic-view>\n\t`,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class HomeWrapperComponent implements OnChanges, OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(\n\t\tprivate readonly router: Router,\n\t\tprivate readonly ngZone: NgZone,\n\t\tprivate readonly spaEventService: SpaEventService,\n\t\tprivate readonly spaContext: SpaContext,\n\t) {}\n\n\tngOnChanges(_: SimpleChanges): void {\n\t\t// noop\n\t}\n\n\tngAfterViewInit(): void {\n\t\tconst rootUnit = this.spaContext.findUnit(this.spaContext.rootUnitId);\n\t\tif (!this.spaContext.unitConfig.LicenceHolder.HasMultipleLandingPages && !rootUnit.IsClientEntrance) {\n\t\t\tconst onlyOffer = this.spaContext.unitTreeFlat.find((unit) => unit.IsListedToClients && unit.IsClientEntrance);\n\t\t\tif (onlyOffer) {\n\t\t\t\tthis.spaEventService.onChangeUnit.emit({ unitId: onlyOffer.Id });\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tthis.render();\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate signIn(): void {\n\t\tthis.spaEventService.onSignInRequired.emit({\n\t\t\tleave: false,\n\t\t\ttarget: this.router.url,\n\t\t\treason: null,\n\t\t});\n\t}\n\n\tprivate async render(): Promise<void> {\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tconst forwardSignIn = (): void => {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tthis.signIn();\n\t\t\t});\n\t\t};\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper useGlobals>\n\t\t\t\t\t<Home __TEMP__onSignIn={forwardSignIn} />\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n","import { Injectable, useService } from '@visiba-cortex/instantiation';\nimport { DialogAlert } from '@cellula/react';\nimport { type AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { signal } from '@preact/signals-react';\n\n@Injectable()\nexport class ScenarioService {\n\tpublic escalatedScenario = signal<Nullable<JSX.Element>>(null);\n\n\tconstructor(private readonly analyticService: AnalyticService) {}\n\n\tpublic async escalateScenarios<T>(scenarios: Scenario<T>[], data: T): Promise<boolean> {\n\t\tlet escalation: Scenario<T> | null = null;\n\t\tfor (const scenario of scenarios) {\n\t\t\tif (scenario.escalation(data)) {\n\t\t\t\tescalation = scenario;\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (escalation != null) {\n\t\t\tconst def = new DeferredPromise<boolean>();\n\n\t\t\tif (escalation.analyticQuirk_category && escalation.analyticQuirk_name) {\n\t\t\t\tthis.analyticService.trackEvent(\n\t\t\t\t\tescalation.analyticQuirk_category,\n\t\t\t\t\t`escalates scenario ${escalation.analyticQuirk_name}`,\n\t\t\t\t\t'escalate',\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tthis.escalatedScenario.value = (\n\t\t\t\t<DialogAlert\n\t\t\t\t\tonAbort={() => {\n\t\t\t\t\t\tdef.reject(false);\n\t\t\t\t\t\tthis.escalatedScenario.value = null;\n\t\t\t\t\t}}\n\t\t\t\t\tonSuccess={() => {\n\t\t\t\t\t\tdef.resolve(true);\n\t\t\t\t\t\tthis.escalatedScenario.value = null;\n\t\t\t\t\t}}\n\t\t\t\t\theader={escalation.header}\n\t\t\t\t\tdescription={escalation.description}\n\t\t\t\t\tsuccessText={escalation.continue}\n\t\t\t\t\tsuccessButtonVariant='primary'\n\t\t\t\t\tabortText={escalation.abort}\n\t\t\t\t\tisOpen\n\t\t\t\t/>\n\t\t\t);\n\n\t\t\t// Yes.\n\t\t\t// It's cursed.\n\t\t\t// But quite effective.\n\t\t\ttry {\n\t\t\t\t// Waits for the user to preform an action on the modal.\n\t\t\t\tawait def.promise;\n\t\t\t} catch {\n\t\t\t\t// If the user \"aborts\" then we exit the method.\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n}\n\nclass DeferredPromise<T> {\n\tpublic resolve: (value: T) => void = () => {};\n\tpublic reject: (value: T) => void = () => {};\n\tpublic readonly promise: Promise<T>;\n\n\tconstructor() {\n\t\tthis.promise = new Promise<T>((resolve, reject) => {\n\t\t\tthis.reject = reject;\n\t\t\tthis.resolve = resolve;\n\t\t});\n\t}\n}\n\nexport interface Scenario<T> {\n\treadonly analyticQuirk_name?: string;\n\treadonly analyticQuirk_category?: AnalyticCategories;\n\treadonly header: string;\n\treadonly description: string;\n\treadonly continue: string;\n\treadonly abort: string;\n\tescalation(collectedData: T): boolean;\n}\n\nfunction ScenarioRoot(props: React.PropsWithChildren) {\n\tconst scenarioService = useService(ScenarioService);\n\n\treturn (\n\t\t<>\n\t\t\t{scenarioService.escalatedScenario.value}\n\t\t\t{props.children}\n\t\t</>\n\t);\n}\n\nexport const Scenario = {\n\tRoot: ScenarioRoot,\n} as const;\n","import { HttpService } from '@application/http.service';\nimport { Injectable } from '@visiba-cortex/instantiation';\nimport { NotificationComplianceSettingsApiModel, UpdateNotificationComplianceSettingsApiModel } from './generated/clientv2/models';\n\n@Injectable()\nexport class NotificationSettingsApiService {\n\tconstructor(private readonly httpService: HttpService) {\n\t\t// Empty\n\t}\n\n\tpublic get() {\n\t\treturn this.httpService.get<NotificationComplianceSettingsApiModel>(`/Client/v2/notificationsettings/Compliance`);\n\t}\n\n\tpublic update(data: UpdateNotificationComplianceSettingsApiModel) {\n\t\treturn this.httpService.put<null>(`/Client/v2/notificationsettings/Compliance`, data);\n\t}\n}\n","import { Injectable, ControllerProtocol } from '@visiba-cortex/instantiation';\nimport { signal } from '@preact/signals-react';\nimport { IdentityApiModel, NotificationComplianceSettingsApiModel } from '@api_patient/generated/clientv2/models';\nimport { IdentityApiService } from '@api_patient/identity_api.service';\nimport { AnalyticCategories } from '@application/analytic/analytic.service';\nimport { AuthService } from '@application/authentication/auth.service';\nimport { I18nAndL10n } from '@application/i18n/i18n_and_l10n';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { getAbsoluteRoute } from '@application/route';\nimport { RouterService } from '@cortex-shim/router.service';\nimport { toast } from '@cellula/react';\nimport { Scenario, ScenarioService } from './scenario.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { NotificationSettingsApiService } from '@api_patient/notification_settings_api.service';\nimport { HttpError } from '@application/http_error';\n\n@Injectable()\nexport class MyAccountController implements ControllerProtocol {\n\tpublic userData = signal<Nullable<MyAccountUserDataModel>>(null);\n\tpublic state = signal<MyAccountState>(MyAccountState.Ready);\n\n\tconstructor(\n\t\tprivate readonly identityApiService: IdentityApiService,\n\t\tprivate readonly notificationSettingsApiService: NotificationSettingsApiService,\n\t\tprivate readonly authService: AuthService,\n\t\tprivate readonly routerService: RouterService,\n\t\tprivate readonly universalConfig: UniversalConfig,\n\t\tprivate readonly scenarioController: ScenarioService,\n\t) {}\n\n\twhenMount() {\n\t\tthis.fetchData();\n\t}\n\n\tpublic async save(formData: Partial<MyAccountFormData>): Promise<boolean | void> {\n\t\tif (!this.userData.value?.identity) {\n\t\t\tthrow new Error('No user identity found. Call this.load() before you call this method.');\n\t\t}\n\n\t\tif (\n\t\t\t!(await this.scenarioController.escalateScenarios(\n\t\t\t\t[\n\t\t\t\t\tnew ScenarioWithoutNotifications(),\n\t\t\t\t\tnew ScenarioEmailAndSmsNotificationsWithoutEmailAndMobileNumber(),\n\t\t\t\t\tnew ScenarioSmsNotificationsWithoutMobileNumber(),\n\t\t\t\t\tnew ScenarioEmailNotificationsWithoutEmail(),\n\t\t\t\t],\n\t\t\t\tformData,\n\t\t\t))\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Save identity\n\t\tawait this.identityApiService.update({\n\t\t\tNationality: this.userData.value.identity.Nationality,\n\t\t\tFirstName: formData.firstName ? formData.firstName.trim() : null,\n\t\t\tLastName: formData.lastName ? formData.lastName.trim() : null,\n\t\t\tNationalIdentityNumber: formData.nin ?? null,\n\t\t\tPhone: formData.phone ? formData.phone.trim() : null,\n\t\t\tEmail: formData.email ? formData.email.trim() : null,\n\t\t});\n\n\t\t// Save notification settings\n\t\tawait this.notificationSettingsApiService.update({\n\t\t\tAllowEmail: formData.notificationsViaEmail ?? false,\n\t\t\tAllowSms: formData.notificationsViaSms ?? false,\n\t\t});\n\n\t\ttoast({\n\t\t\tlabel: withTranslation('PW.Feature.MyAccount.SaveSuccess'),\n\t\t});\n\n\t\t// Fetch identity to update user information in other parts of the\n\t\t// application\n\t\tthis.authService.loadIdentity();\n\t}\n\n\tpublic async delete(): Promise<void> {\n\t\tconst returnUrl = getAbsoluteRoute(`${this.universalConfig.alias}?deleteAccountSuccess=true`);\n\n\t\tawait this.identityApiService.deleteAccount();\n\n\t\tif (__visiba_feature_flags__['CareExperience.PW.Idp']) {\n\t\t\twindow.location.href = this.identityApiService.getSignOutPath(returnUrl);\n\n\t\t\treturn;\n\t\t}\n\n\t\tawait this.authService.terminateIdentity();\n\n\t\tthis.routerService.navigateByUrl(returnUrl);\n\n\t\ttoast({\n\t\t\tlabel: withTranslation('PW.Feature.MyAccount.DeleteSuccess'),\n\t\t});\n\t}\n\n\tprivate async fetchData() {\n\t\tthis.state.value = MyAccountState.Ready;\n\n\t\tconst [identityResponse, notificationSettingsResponse, canDelete] = await Promise.all([\n\t\t\tthis.identityApiService.get(),\n\t\t\tthis.notificationSettingsApiService.get(),\n\t\t\tthis.getDeletePermission(),\n\t\t]);\n\n\t\tif (identityResponse.err || notificationSettingsResponse.err || canDelete.err) {\n\t\t\tthis.state.value = MyAccountState.Error;\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.userData.value = {\n\t\t\tidentity: identityResponse.ok.data,\n\t\t\tnotificationSettings: notificationSettingsResponse.ok.data,\n\t\t\tcanDelete: canDelete.ok ?? false,\n\t\t};\n\t}\n\n\tprivate async getDeletePermission(): AsyncResult<boolean, HttpError<unknown>> {\n\t\tconst result = await this.identityApiService.canDeleteAccount();\n\t\tif (result.err) {\n\t\t\tif (result.err.statusCode === 400) {\n\t\t\t\treturn Ok(false);\n\t\t\t}\n\n\t\t\treturn Err(result.err);\n\t\t}\n\n\t\treturn Ok(true);\n\t}\n}\n\nexport interface MyAccountFormData {\n\tnin: string | null;\n\tfirstName: string | null;\n\tlastName: string | null;\n\tphone: string | null;\n\temail: string | null;\n\tnotificationsViaSms: boolean | null;\n\tnotificationsViaEmail: boolean | null;\n}\n\ninterface MyAccountUserDataModel {\n\tidentity: IdentityApiModel | null;\n\tnotificationSettings: NotificationComplianceSettingsApiModel | null;\n\tcanDelete: boolean;\n}\n\nexport enum MyAccountState {\n\tReady = 'Ready',\n\tError = 'Error',\n}\n\nclass ScenarioEmailAndSmsNotificationsWithoutEmailAndMobileNumber implements Scenario<MyAccountFormData> {\n\treadonly analyticQuirk_name = 'Sms notification without email and mobile number';\n\treadonly analyticQuirk_category = AnalyticCategories.MyAccount;\n\treadonly header = I18nAndL10n.translate('PW.Feature.MyAccount.NotificationsWithoutEmailAndMobileNumberDialog.Header');\n\treadonly description = I18nAndL10n.translate('PW.Feature.MyAccount.NotificationsWithoutEmailAndMobileNumberDialog.Description');\n\treadonly continue = I18nAndL10n.translate('PW.Feature.MyAccount.NotificationsWithoutEmailAndMobileNumberDialog.Continue');\n\treadonly abort = I18nAndL10n.translate('PW.Feature.MyAccount.NotificationsWithoutEmailAndMobileNumberDialog.Abort');\n\n\tescalation(data: MyAccountFormData) {\n\t\tif (data.notificationsViaEmail && !data.email && data.notificationsViaSms && !data.phone) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}\n}\n\nclass ScenarioSmsNotificationsWithoutMobileNumber implements Scenario<MyAccountFormData> {\n\treadonly analyticQuirk_name = 'Sms notification without mobile number';\n\treadonly analyticQuirk_category = AnalyticCategories.MyAccount;\n\treadonly header = I18nAndL10n.translate('PW.Feature.MyAccount.NotificationsWithoutMobileNumberDialog.Header');\n\treadonly description = I18nAndL10n.translate('PW.Feature.MyAccount.NotificationsWithoutMobileNumberDialog.Description');\n\treadonly continue = I18nAndL10n.translate('PW.Feature.MyAccount.NotificationsWithoutMobileNumberDialog.Continue');\n\treadonly abort = I18nAndL10n.translate('PW.Feature.MyAccount.NotificationsWithoutMobileNumberDialog.Abort');\n\n\tescalation(data: MyAccountFormData) {\n\t\tif (data.notificationsViaSms && !data.phone) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}\n}\n\nclass ScenarioEmailNotificationsWithoutEmail implements Scenario<MyAccountFormData> {\n\treadonly analyticQuirk_name = 'Sms notification without email';\n\treadonly analyticQuirk_category = AnalyticCategories.MyAccount;\n\treadonly header = I18nAndL10n.translate('PW.Feature.MyAccount.NotificationsWithoutEmailDialog.Header');\n\treadonly description = I18nAndL10n.translate('PW.Feature.MyAccount.NotificationsWithoutEmailDialog.Description');\n\treadonly continue = I18nAndL10n.translate('PW.Feature.MyAccount.NotificationsWithoutEmailDialog.Continue');\n\treadonly abort = I18nAndL10n.translate('PW.Feature.MyAccount.NotificationsWithoutEmailDialog.Abort');\n\n\tescalation(data: MyAccountFormData) {\n\t\tif (data.notificationsViaEmail && !data.email) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}\n}\n\nclass ScenarioWithoutNotifications implements Scenario<MyAccountFormData> {\n\treadonly analyticQuirk_name = 'Without notifications';\n\treadonly analyticQuirk_category = AnalyticCategories.MyAccount;\n\treadonly header = I18nAndL10n.translate('PW.Feature.MyAccount.WithoutNotificationsDialog.Header');\n\treadonly description = I18nAndL10n.translate('PW.Feature.MyAccount.WithoutNotificationsDialog.Description');\n\treadonly continue = I18nAndL10n.translate('PW.Feature.MyAccount.WithoutNotificationsDialog.Continue');\n\treadonly abort = I18nAndL10n.translate('PW.Feature.MyAccount.WithoutNotificationsDialog.Abort');\n\n\tescalation(data: MyAccountFormData) {\n\t\tif (!data.notificationsViaEmail && !data.notificationsViaSms) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}\n}\n","import { AnalyticService, AnalyticCategories } from '@application/analytic/analytic.service';\nimport { I18nAndL10n } from '@application/i18n/i18n_and_l10n';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { DialogAlertSuccessError, DialogAlert, Button } from '@cellula/react';\nimport { Article } from '@component/article.component';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { MyAccountController } from './my_account.controller';\nimport { UniversalConfig } from '@application/universal_config.service';\n\ninterface MyAccountDeleteButtonProps {\n\tcanDelete: boolean;\n}\n\nexport function MyAccountDeleteButton({ canDelete }: MyAccountDeleteButtonProps) {\n\tconst universalConfig = useResolve(UniversalConfig);\n\tconst controller = useResolve(MyAccountController);\n\tconst analyticService = useResolve(AnalyticService);\n\n\tasync function handleDeleteAccount() {\n\t\tanalyticService.trackEvent(AnalyticCategories.MyAccount, 'Delete account');\n\n\t\ttry {\n\t\t\tawait controller.delete();\n\t\t} catch {\n\t\t\tanalyticService.trackEvent(AnalyticCategories.MyAccount, 'Delete account error');\n\t\t\tthrow new DialogAlertSuccessError(I18nAndL10n.translate('PW.Feature.MyAccount.DeleteError'));\n\t\t}\n\t}\n\n\tfunction onDialogOpenChange(isOpen: boolean) {\n\t\tif (isOpen) {\n\t\t\tanalyticService.trackEvent(\n\t\t\t\tAnalyticCategories.MyAccount,\n\t\t\t\tcanDelete ? 'Open delete account dialog' : \"Open can't delete account dialog\",\n\t\t\t);\n\t\t}\n\t}\n\n\tfunction onDialogAbort() {\n\t\tanalyticService.trackEvent(\n\t\t\tAnalyticCategories.MyAccount,\n\t\t\tcanDelete ? 'Close delete account dialog' : \"Close can't delete account dialog\",\n\t\t);\n\t}\n\n\tlet successProps = {};\n\n\tif (canDelete) {\n\t\tsuccessProps = {\n\t\t\tsuccessText: withTranslation('PW.Feature.MyAccount.DeleteDialog.SuccessText'),\n\t\t\tonSuccess: handleDeleteAccount,\n\t\t};\n\t}\n\n\treturn (\n\t\t<DialogAlert\n\t\t\theader={withTranslation(canDelete ? 'PW.Feature.MyAccount.DeleteDialog.Header' : 'PW.Feature.MyAccount.CantDeleteDialog.Header')}\n\t\t\tdescription={''}\n\t\t\tabortText={withTranslation(\n\t\t\t\tcanDelete ? 'PW.Feature.MyAccount.DeleteDialog.AbortText' : 'PW.Feature.MyAccount.CantDeleteDialog.AbortText',\n\t\t\t)}\n\t\t\t{...successProps}\n\t\t\ttrigger={\n\t\t\t\t<Button variant='ghost' icon='bin'>\n\t\t\t\t\t{withTranslation('PW.Feature.MyAccount.DeleteButton')}\n\t\t\t\t</Button>\n\t\t\t}\n\t\t\tonOpenChange={onDialogOpenChange}\n\t\t\tonAbort={onDialogAbort}\n\t\t>\n\t\t\t<Article>\n\t\t\t\t{canDelete\n\t\t\t\t\t? withTranslation('PW.Feature.MyAccount.DeleteDialog.Description', {\n\t\t\t\t\t\t\tdaysToDepersonalizeClient: `${universalConfig.daysToDepersonalizeClientAfterRequest ?? '-'}`,\n\t\t\t\t\t\t})\n\t\t\t\t\t: withTranslation('PW.Feature.MyAccount.CantDeleteDialog.Description')}\n\t\t\t</Article>\n\t\t</DialogAlert>\n\t);\n}\n","/* This file is auto-generated. Do not edit directly. */\n/* eslint-disable */\nexport enum FieldOption {\n Optional = 'Optional',\n Required = 'Required',\n ReadOnly = 'ReadOnly'\n}\n\n","import { CountryCode, isValidPhoneNumber } from 'libphonenumber-js';\n\ntype FormValidator = ((value: string | null) => boolean | string) | undefined;\n\nexport function validatorFactory(validators: FormValidator[]): FormValidator {\n\treturn (value: string | null) => {\n\t\tlet valid: boolean | string = true;\n\n\t\tfor (const validator of validators) {\n\t\t\tif (!validator) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tvalid = validator(value);\n\n\t\t\tif (valid !== true) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn valid;\n\t};\n}\n\nexport function validateRequired(value: string | null): boolean {\n\t// Seems to be the way of doing conditional validation in react-hook-form?\n\t// https://github.com/react-hook-form/react-hook-form/issues/1781#issuecomment-639256365\n\tif (value == null) return true;\n\n\tif (value.trim() != '') {\n\t\treturn true;\n\t}\n\n\treturn false;\n}\n\nexport function validateKindaOkEmail(value: string | null): boolean {\n\t// Seems to be the way of doing conditional validation in react-hook-form?\n\t// https://github.com/react-hook-form/react-hook-form/issues/1781#issuecomment-639256365\n\tif (!value) return true;\n\n\t// It's intentionally not a \"full email validation\", it does not exist.\n\t// You cannot validate email addresses without being the provider of the email address, period.\n\tif (value.includes('@') && value.includes('.') && value.length >= 5) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}\n\nexport function validatePhoneNumber(value: string | null, countryCode: CountryCode): boolean {\n\t// Seems to be the way of doing conditional validation in react-hook-form?\n\t// https://github.com/react-hook-form/react-hook-form/issues/1781#issuecomment-639256365\n\tif (!value) return true;\n\n\t// TODO: SE should be read from the comp\n\treturn isValidPhoneNumber(value, countryCode);\n}\n","import { useConstant } from '@visiba/react-std';\nimport { Timer } from '@visiba/std';\nimport { ReactNode, useEffect, useState } from 'react';\n\ninterface Props<T> {\n\tdelay?: number;\n\tderive: T | null;\n\tchildren: ((data: NonNullable<T>) => ReactNode) | ReactNode;\n\tfallback: ReactNode;\n}\n\nexport function Async<T>(props: Props<T>): JSX.Element {\n\tconst timer = useConstant(() => new Timer());\n\tconst [uiTimeout, setUiTimeout] = useState(props.derive == null);\n\n\tuseEffect(() => {\n\t\treturn timer.wait(() => {\n\t\t\tsetUiTimeout(false);\n\t\t}, props.delay ?? 250);\n\t}, [timer, props.delay]);\n\n\tif (uiTimeout || props.derive == null) return <>{props.fallback}</>;\n\n\treturn <>{typeof props.children === 'function' ? props.children(props.derive) : props.children}</>;\n}\n","import styled from 'styled-components';\nimport { CellulaFormSubmitData, Flex, Form, InputCheckbox, InputText, NotificationAlert, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { MyAccountState, type MyAccountFormData, MyAccountController } from './my_account.controller';\nimport { MyAccountDeleteButton } from './_my_account_delete_button.component';\nimport { useResolve, useService } from '@visiba-cortex/instantiation';\nimport { useRef } from 'react';\nimport { Shimmer } from '@component/new_shimmer.component';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { I18nAndL10n } from '@application/i18n/i18n_and_l10n';\nimport { validateKindaOkEmail, validateRequired, validatorFactory } from '@application/form_validators';\nimport { FieldOption } from '@api_patient/generated/clientv2/models/field-option';\nimport { Async } from '@cortex-shim/async.component';\nimport { ConsentTrigger } from '@component/consent/consent_trigger.component';\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tbox-sizing: border-box;\n\t\tcontainer: MyAccountContainer / inline-size;\n\t`,\n\tbuttons: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: ${tokens.spacing.x2};\n\t\tjustify-content: space-between;\n\t\tmargin-top: ${tokens.spacing.x2};\n\n\t\t@container MyAccountContainer (min-width: 568px) {\n\t\t\tflex-direction: row-reverse;\n\t\t\tborder-top: 1px solid ${tokens.color.border.default};\n\t\t\tpadding-top: ${tokens.spacing.x2};\n\t\t\talign-items: space-between;\n\t\t\tjustify-content: space-between;\n\t\t}\n\t`,\n\tbuttonsDivider: styled.div`\n\t\tborder-top: 1px solid ${tokens.color.border.default};\n\n\t\t@container MyAccountContainer (min-width: 568px) {\n\t\t\tborder: none;\n\t\t}\n\t`,\n\tnotificationFieldset: styled.fieldset`\n\t\tall: unset;\n\t`,\n\tnotificationFieldsetLabel: styled.legend`\n\t\tall: unset;\n\t\tfont: ${tokens.text.body.smallRegular};\n\t\tmargin-bottom: ${tokens.spacing.x1_5};\n\t`,\n};\n\nexport function MyAccountForm(_: unknown): JSX.Element {\n\tconst controller = useResolve(MyAccountController);\n\tconst analyticService = useService(AnalyticService);\n\tconst submitButtonRef = useRef<HTMLButtonElement>(null);\n\n\tasync function handleSubmit(data: CellulaFormSubmitData): Promise<void | boolean> {\n\t\tanalyticService.trackEvent(AnalyticCategories.MyAccount, 'Submit form');\n\n\t\ttry {\n\t\t\tif ((await controller.save(data as Partial<MyAccountFormData>)) === false) {\n\t\t\t\tif (submitButtonRef.current) {\n\t\t\t\t\tsubmitButtonRef.current.focus();\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tanalyticService.trackEvent(AnalyticCategories.MyAccount, 'Submit form error');\n\n\t\t\tthrow new Error(I18nAndL10n.translate('PW.Feature.MyAccount.SaveError'));\n\t\t}\n\t}\n\n\tif (controller.state.value === MyAccountState.Error) {\n\t\treturn <NotificationAlert variant='danger'>{withTranslation('PW.Feature.MyAccount.FetchError')}</NotificationAlert>;\n\t}\n\n\treturn (\n\t\t<Async derive={controller.userData.value} fallback={<Skeleton />}>\n\t\t\t{(data) => {\n\t\t\t\tif (!data.identity) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\treturn (\n\t\t\t\t\t<elements.container>\n\t\t\t\t\t\t<Flex gap={tokens.spacing.x5}>\n\t\t\t\t\t\t\t{__visiba_feature_flags__['PatientWeb.UseNewConsent'] ? (\n\t\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t\t\t<Text variant='labelSemiBold'>{withTranslation('PW.Feature.MyAccount.CookieTitle')}</Text>\n\n\t\t\t\t\t\t\t\t\t<ConsentTrigger />\n\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t\t<Form.Root\n\t\t\t\t\t\t\t\toptions={{\n\t\t\t\t\t\t\t\t\tmode: 'onSubmit',\n\t\t\t\t\t\t\t\t\tdefaultValues: {\n\t\t\t\t\t\t\t\t\t\tnin: data.identity.NationalIdentityNumber ?? '',\n\t\t\t\t\t\t\t\t\t\tfirstName: data.identity.FirstName ?? '',\n\t\t\t\t\t\t\t\t\t\tlastName: data.identity.LastName ?? '',\n\t\t\t\t\t\t\t\t\t\tphone: data.identity.Phone ?? '',\n\t\t\t\t\t\t\t\t\t\temail: data.identity.Email ?? '',\n\t\t\t\t\t\t\t\t\t\tnotificationsViaSms: data.notificationSettings?.AllowSms ?? false,\n\t\t\t\t\t\t\t\t\t\tnotificationsViaEmail: data.notificationSettings?.AllowEmail ?? false,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tonSubmit={handleSubmit}\n\t\t\t\t\t\t\t\tdisabledSubmitButtonWhenClean\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x2}>\n\t\t\t\t\t\t\t\t\t<InputText label={withTranslation('PW.Label.Nin')} name='nin' readOnly required />\n\t\t\t\t\t\t\t\t\t<InputText\n\t\t\t\t\t\t\t\t\t\tlabel={withTranslation('PW.Label.FirstName')}\n\t\t\t\t\t\t\t\t\t\tname='firstName'\n\t\t\t\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\t\t\t\toptions={{\n\t\t\t\t\t\t\t\t\t\t\tvalidate: validatorFactory([\n\t\t\t\t\t\t\t\t\t\t\t\t(v) => validateRequired(v) || I18nAndL10n.translate('PW.FormValidation.FirstName.Required'),\n\t\t\t\t\t\t\t\t\t\t\t]),\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<InputText\n\t\t\t\t\t\t\t\t\t\tlabel={withTranslation('PW.Label.LastName')}\n\t\t\t\t\t\t\t\t\t\tname='lastName'\n\t\t\t\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\t\t\t\toptions={{\n\t\t\t\t\t\t\t\t\t\t\tvalidate: validatorFactory([\n\t\t\t\t\t\t\t\t\t\t\t\t(v) => validateRequired(v) || I18nAndL10n.translate('PW.FormValidation.LastName.Required'),\n\t\t\t\t\t\t\t\t\t\t\t]),\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t\t\t<InputText\n\t\t\t\t\t\t\t\t\t\tlabel={withTranslation('PW.Label.MobileNumber')}\n\t\t\t\t\t\t\t\t\t\tname='phone'\n\t\t\t\t\t\t\t\t\t\treadOnly={data.identity.PhoneRequirement === FieldOption.ReadOnly}\n\t\t\t\t\t\t\t\t\t\trequired={[FieldOption.Required, FieldOption.ReadOnly].includes(data.identity.PhoneRequirement)}\n\t\t\t\t\t\t\t\t\t\toptions={{\n\t\t\t\t\t\t\t\t\t\t\tvalidate: validatorFactory([\n\t\t\t\t\t\t\t\t\t\t\t\tdata.identity.PhoneRequirement === FieldOption.Required\n\t\t\t\t\t\t\t\t\t\t\t\t\t? (v) => validateRequired(v) || I18nAndL10n.translate('PW.FormValidation.MobileNumber.Required')\n\t\t\t\t\t\t\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\t\t\t\t\t\t]),\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t\t\t<InputText\n\t\t\t\t\t\t\t\t\t\tlabel={withTranslation('PW.Label.EmailAddress')}\n\t\t\t\t\t\t\t\t\t\tname='email'\n\t\t\t\t\t\t\t\t\t\treadOnly={data.identity.EmailRequirement === FieldOption.ReadOnly}\n\t\t\t\t\t\t\t\t\t\trequired={[FieldOption.Required, FieldOption.ReadOnly].includes(data.identity.EmailRequirement)}\n\t\t\t\t\t\t\t\t\t\toptions={{\n\t\t\t\t\t\t\t\t\t\t\tvalidate: validatorFactory([\n\t\t\t\t\t\t\t\t\t\t\t\tdata.identity.EmailRequirement === FieldOption.Required\n\t\t\t\t\t\t\t\t\t\t\t\t\t? (v) => validateRequired(v) || I18nAndL10n.translate('PW.FormValidation.Email.Required')\n\t\t\t\t\t\t\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\t\t\t\t\t\t\t(v) => validateKindaOkEmail(v) || I18nAndL10n.translate('PW.FormValidation.Email.Invalid'),\n\t\t\t\t\t\t\t\t\t\t\t]),\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x1_5}>\n\t\t\t\t\t\t\t\t\t\t<Text variant='labelSemiBold'>{withTranslation('PW.Label.Notifications')}</Text>\n\t\t\t\t\t\t\t\t\t\t{/* The wrapping div is due to the fieldset getting a 32px height FOR SOME REASON... */}\n\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t<elements.notificationFieldset>\n\t\t\t\t\t\t\t\t\t\t\t\t<elements.notificationFieldsetLabel>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{withTranslation('PW.Feature.MyAccount.NotificationDescription')}\n\t\t\t\t\t\t\t\t\t\t\t\t</elements.notificationFieldsetLabel>\n\t\t\t\t\t\t\t\t\t\t\t\t<Flex gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<InputCheckbox label={withTranslation('PW.Label.Sms')} name='notificationsViaSms' />\n\t\t\t\t\t\t\t\t\t\t\t\t\t<InputCheckbox label={withTranslation('PW.Label.Email')} name='notificationsViaEmail' />\n\t\t\t\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t\t\t\t</elements.notificationFieldset>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</Flex>\n\n\t\t\t\t\t\t\t\t\t<Flex>\n\t\t\t\t\t\t\t\t\t\t<Form.Error />\n\t\t\t\t\t\t\t\t\t\t<elements.buttons>\n\t\t\t\t\t\t\t\t\t\t\t<Form.SubmitButton ref={submitButtonRef}>{withTranslation('PW.Feature.MyAccount.SaveButton')}</Form.SubmitButton>\n\t\t\t\t\t\t\t\t\t\t\t<elements.buttonsDivider />\n\t\t\t\t\t\t\t\t\t\t\t<MyAccountDeleteButton canDelete={data.canDelete} />\n\t\t\t\t\t\t\t\t\t\t</elements.buttons>\n\t\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t</Form.Root>\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</elements.container>\n\t\t\t\t);\n\t\t\t}}\n\t\t</Async>\n\t);\n}\n\nfunction Skeleton(): JSX.Element {\n\treturn (\n\t\t<Flex gap={tokens.spacing.x2}>\n\t\t\t<Flex gap={tokens.spacing.x0_5}>\n\t\t\t\t<Shimmer height={20} width={100} />\n\t\t\t\t<Shimmer height={48} />\n\t\t\t</Flex>\n\t\t\t<Flex gap={tokens.spacing.x0_5}>\n\t\t\t\t<Shimmer height={20} width={160} />\n\t\t\t\t<Shimmer height={48} />\n\t\t\t</Flex>\n\t\t\t<Flex gap={tokens.spacing.x0_5}>\n\t\t\t\t<Shimmer height={20} width={120} />\n\t\t\t\t<Shimmer height={48} />\n\t\t\t</Flex>\n\t\t</Flex>\n\t);\n}\n","import { MyAccountForm } from './_my_account_form.component';\nimport { MyAccountRoot } from './_my_account_root.component';\nimport { MyAccountTitle } from './_my_account_title.component';\n\nexport const MyAccount = {\n\tRoot: MyAccountRoot,\n\tTitle: MyAccountTitle,\n\tForm: MyAccountForm,\n} as const;\n","import { ReactNode } from 'react';\nimport { useResolveController, withNewContainer } from '@visiba-cortex/instantiation';\nimport { MyAccountController } from './my_account.controller';\nimport { Scenario } from './scenario.service';\n\ntype MyAccountRootProps = {\n\tchildren: ReactNode;\n};\n\nexport const MyAccountRoot = withNewContainer(function MyAccountRoot({ children }: MyAccountRootProps) {\n\tuseResolveController(MyAccountController);\n\n\treturn <Scenario.Root>{children}</Scenario.Root>;\n});\n","import { Text } from '@cellula/react';\nimport { withTranslation } from '@application/i18n/with_translation';\n\nexport function MyAccountTitle(_: unknown): JSX.Element {\n\treturn <Text.h1 variant='headingMedium'>{withTranslation('PW.Feature.MyAccount.Title')}</Text.h1>;\n}\n","import { AnalyticService } from '@application/analytic/analytic.service';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { useTitle } from '@application/use_title';\nimport { Flex } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { TopBar } from '@component/top_bar.component';\nimport { MyAccount } from '@feature/my_account/my_account.component';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { useEffect } from 'react';\n\nexport function ScreenAccount() {\n\tconst analyticService = useResolve(AnalyticService);\n\tuseTitle(withTranslation('PW.Feature.MyAccount.Title'));\n\n\tuseEffect(\n\t\tfunction analyticQuirk_whenComponentMounts() {\n\t\t\tanalyticService.trackPageView({ customTitle: 'My account' });\n\t\t},\n\t\t[analyticService],\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<TopBar.Content goBack title={withTranslation('PW.Feature.MyAccount.Title')} />\n\n\t\t\t<MyAccount.Root>\n\t\t\t\t<Flex gap={tokens.spacing.x2}>\n\t\t\t\t\t<MyAccount.Title />\n\t\t\t\t\t<MyAccount.Form />\n\t\t\t\t</Flex>\n\t\t\t</MyAccount.Root>\n\t\t</>\n\t);\n}\n","import { AfterViewInit, Component, ElementRef, NgZone, OnDestroy, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { BrowserRouter, Route, Routes } from 'react-router-dom';\nimport { UnitService } from '@public/src/application/services/unit.service';\nimport { sharedResolution } from '../../src/shared_resolution';\nimport { Root, createRoot } from 'react-dom/client';\nimport { Box, SafeArea } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { ScreenAccount } from '@view/view_settings/screen_account.component';\n\nconst containerElementName = 'reactHomeComponent';\n\n@Component({\n\tstandalone: false,\n\tselector: 'my-account-component',\n\ttemplate: `\n\t\t<semantic-view>\n\t\t\t<header-component header></header-component>\n\t\t\t<div class=\"wrapper-container\" #${containerElementName}></div>\n\t\t\t<footer-component footer></footer-component>\n\t\t</semantic-view>\n\t`,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class MyAccountWrapperComponent implements OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(private readonly ngZone: NgZone) {\n\t\t// Empty\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.render();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate async render() {\n\t\tconst unitService = sharedResolution.resolve(UnitService);\n\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper useGlobals>\n\t\t\t\t\t<BrowserRouter>\n\t\t\t\t\t\t<Routes>\n\t\t\t\t\t\t\t<Route path={unitService.rootUnit.route}>\n\t\t\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\t\t\tpath='my-account/*'\n\t\t\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t\t\t<SafeArea maxWidth='600px'>\n\t\t\t\t\t\t\t\t\t\t\t<Box width='100%' padding={`${tokens.spacing.x4} 0`}>\n\t\t\t\t\t\t\t\t\t\t\t\t<ScreenAccount />\n\t\t\t\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t\t\t\t</SafeArea>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</Route>\n\t\t\t\t\t\t</Routes>\n\t\t\t\t\t</BrowserRouter>\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n","import { useContext, useState, useEffect } from 'react';\nimport { motionValue } from './index.mjs';\nimport { MotionConfigContext } from '../context/MotionConfigContext.mjs';\nimport { useConstant } from '../utils/use-constant.mjs';\n\n/**\n * Creates a `MotionValue` to track the state and velocity of a value.\n *\n * Usually, these are created automatically. For advanced use-cases, like use with `useTransform`, you can create `MotionValue`s externally and pass them into the animated component via the `style` prop.\n *\n * ```jsx\n * export const MyComponent = () => {\n * const scale = useMotionValue(1)\n *\n * return <motion.div style={{ scale }} />\n * }\n * ```\n *\n * @param initial - The initial state.\n *\n * @public\n */\nfunction useMotionValue(initial) {\n const value = useConstant(() => motionValue(initial));\n /**\n * If this motion value is being used in static mode, like on\n * the Framer canvas, force components to rerender when the motion\n * value is updated.\n */\n const { isStatic } = useContext(MotionConfigContext);\n if (isStatic) {\n const [, setLatest] = useState(initial);\n useEffect(() => value.on(\"change\", setLatest), []);\n }\n return value;\n}\n\nexport { useMotionValue };\n","import { interpolate } from './interpolate.mjs';\n\nconst isCustomValueType = (v) => {\n return v && typeof v === \"object\" && v.mix;\n};\nconst getMixer = (v) => (isCustomValueType(v) ? v.mix : undefined);\nfunction transform(...args) {\n const useImmediate = !Array.isArray(args[0]);\n const argOffset = useImmediate ? 0 : -1;\n const inputValue = args[0 + argOffset];\n const inputRange = args[1 + argOffset];\n const outputRange = args[2 + argOffset];\n const options = args[3 + argOffset];\n const interpolator = interpolate(inputRange, outputRange, {\n mixer: getMixer(outputRange[0]),\n ...options,\n });\n return useImmediate ? interpolator(inputValue) : interpolator;\n}\n\nexport { transform };\n","import { useMotionValue } from './use-motion-value.mjs';\nimport { useIsomorphicLayoutEffect } from '../utils/use-isomorphic-effect.mjs';\nimport { cancelFrame, frame } from '../frameloop/frame.mjs';\n\nfunction useCombineMotionValues(values, combineValues) {\n /**\n * Initialise the returned motion value. This remains the same between renders.\n */\n const value = useMotionValue(combineValues());\n /**\n * Create a function that will update the template motion value with the latest values.\n * This is pre-bound so whenever a motion value updates it can schedule its\n * execution in Framesync. If it's already been scheduled it won't be fired twice\n * in a single frame.\n */\n const updateValue = () => value.set(combineValues());\n /**\n * Synchronously update the motion value with the latest values during the render.\n * This ensures that within a React render, the styles applied to the DOM are up-to-date.\n */\n updateValue();\n /**\n * Subscribe to all motion values found within the template. Whenever any of them change,\n * schedule an update.\n */\n useIsomorphicLayoutEffect(() => {\n const scheduleUpdate = () => frame.preRender(updateValue, false, true);\n const subscriptions = values.map((v) => v.on(\"change\", scheduleUpdate));\n return () => {\n subscriptions.forEach((unsubscribe) => unsubscribe());\n cancelFrame(updateValue);\n };\n });\n return value;\n}\n\nexport { useCombineMotionValues };\n","import { transform } from '../utils/transform.mjs';\nimport { useCombineMotionValues } from './use-combine-values.mjs';\nimport { useConstant } from '../utils/use-constant.mjs';\nimport { useComputed } from './use-computed.mjs';\n\nfunction useTransform(input, inputRangeOrTransformer, outputRange, options) {\n if (typeof input === \"function\") {\n return useComputed(input);\n }\n const transformer = typeof inputRangeOrTransformer === \"function\"\n ? inputRangeOrTransformer\n : transform(inputRangeOrTransformer, outputRange, options);\n return Array.isArray(input)\n ? useListTransform(input, transformer)\n : useListTransform([input], ([latest]) => transformer(latest));\n}\nfunction useListTransform(values, transformer) {\n const latest = useConstant(() => []);\n return useCombineMotionValues(values, () => {\n latest.length = 0;\n const numValues = values.length;\n for (let i = 0; i < numValues; i++) {\n latest[i] = values[i].get();\n }\n return transformer(latest);\n });\n}\n\nexport { useTransform };\n","import { collectMotionValues } from './index.mjs';\nimport { useCombineMotionValues } from './use-combine-values.mjs';\n\nfunction useComputed(compute) {\n /**\n * Open session of collectMotionValues. Any MotionValue that calls get()\n * will be saved into this array.\n */\n collectMotionValues.current = [];\n compute();\n const value = useCombineMotionValues(collectMotionValues.current, compute);\n /**\n * Synchronously close session of collectMotionValues.\n */\n collectMotionValues.current = undefined;\n return value;\n}\n\nexport { useComputed };\n","import { tokens } from '@cellula/react-theme-patient';\nimport { motion } from 'framer-motion';\nimport styled from 'styled-components';\n\nexport const StickyTopBannerContent = styled(motion.div)`\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\theight: 40px;\n\tbackground-color: ${tokens.color.bg.surface};\n\tborder-bottom: 1px solid ${tokens.color.border.default};\n\tpadding: ${tokens.spacing.x1_5};\n`;\n","import { useMotionValue, useScroll, useTransform } from 'framer-motion';\nimport { ReactNode, useEffect } from 'react';\nimport { StickyTopBannerContent } from './_sticky_top_banner_content.component';\n\nconst LEAP_TRIGGER = 180;\nconst SCROLL_THRESHOLD = [LEAP_TRIGGER, LEAP_TRIGGER + 40];\n\ninterface Props {\n\tchildren: ReactNode;\n}\n\nexport function StickyTopBannerLeapScrollVariant({ children }: Props): JSX.Element {\n\tconst { scrollY } = useScroll();\n\tconst pixelsScrolled = useMotionValue(0);\n\tconst y = useTransform(pixelsScrolled, SCROLL_THRESHOLD, [-40, 0]);\n\n\tuseEffect(() => {\n\t\treturn scrollY.onChange((latest) => {\n\t\t\tif (latest < 0) return;\n\n\t\t\tpixelsScrolled.set(latest);\n\t\t});\n\t}, [pixelsScrolled, scrollY]);\n\n\treturn <StickyTopBannerContent style={{ y }}>{children}</StickyTopBannerContent>;\n}\n","import { useMotionValue, useScroll, useTransform } from 'framer-motion';\nimport { ReactNode, useEffect, useRef } from 'react';\nimport { StickyTopBannerContent } from './_sticky_top_banner_content.component';\n\nconst SCROLL_THRESHOLD = [0, 40];\n\ninterface Props {\n\tchildren: ReactNode;\n}\n\nexport function StickyTopBannerStickyScrollVariant({ children }: Props): JSX.Element {\n\tconst { scrollY } = useScroll();\n\tconst scrollYOnDirectionChange = useRef(scrollY.get());\n\tconst lastPixelsScrolled = useRef<number>(0);\n\tconst lastScrollDirection = useRef<'up' | 'down'>('down');\n\tconst pixelsScrolled = useMotionValue(-40);\n\tconst y = useTransform(pixelsScrolled, SCROLL_THRESHOLD, [0, -40]);\n\n\tuseEffect(() => {\n\t\treturn scrollY.onChange((latest) => {\n\t\t\tif (latest < 0) return;\n\n\t\t\tconst isScrollingDown = scrollY.getPrevious() - latest < 0;\n\t\t\tconst scrollDirection = isScrollingDown ? 'down' : 'up';\n\t\t\tconst currentPixelsScrolled = pixelsScrolled.get();\n\n\t\t\tif (lastScrollDirection.current !== scrollDirection) {\n\t\t\t\tlastPixelsScrolled.current = currentPixelsScrolled;\n\t\t\t\tscrollYOnDirectionChange.current = latest;\n\t\t\t}\n\n\t\t\tlet newPixelsScrolled: number;\n\t\t\tif (isScrollingDown) {\n\t\t\t\tnewPixelsScrolled = Math.min(lastPixelsScrolled.current + (latest - scrollYOnDirectionChange.current), SCROLL_THRESHOLD[1]);\n\t\t\t} else {\n\t\t\t\tnewPixelsScrolled = Math.max(lastPixelsScrolled.current - (scrollYOnDirectionChange.current - latest), SCROLL_THRESHOLD[0]);\n\t\t\t}\n\n\t\t\tpixelsScrolled.set(newPixelsScrolled);\n\t\t\tlastScrollDirection.current = scrollDirection;\n\t\t});\n\t}, [pixelsScrolled, scrollY]);\n\n\treturn <StickyTopBannerContent style={{ y }}>{children}</StickyTopBannerContent>;\n}\n","import { tokens } from '@cellula/react-theme-patient';\nimport { Text } from '@visiba-cortex/react-ui-std';\nimport { ReactNode } from 'react';\nimport styled from 'styled-components';\nimport { StickyTopBannerLeapScrollVariant } from './_sticky_top_banner_variant_leap_scroll.component';\nimport { StickyTopBannerStickyScrollVariant } from './_sticky_top_banner_variant_sticky_scroll.component';\n\nconst elements = {\n\tcontainer: styled.header`\n\t\tz-index: 1;\n\t\tposition: fixed;\n\t\ttop: var(--header-height);\n\t\tleft: 0;\n\t\tright: 0;\n\t\toverflow: hidden;\n\t`,\n};\n\ninterface Props {\n\tvariant?: 'stickyScroll' | 'leapScroll';\n\tchildren: ReactNode;\n}\n\nexport function StickyTopBanner({ children, variant = 'stickyScroll' }: Props): JSX.Element {\n\tlet VariantComponent: (args: { children: ReactNode }) => JSX.Element;\n\tswitch (variant) {\n\t\tcase 'stickyScroll':\n\t\t\tVariantComponent = StickyTopBannerStickyScrollVariant;\n\t\t\tbreak;\n\t\tcase 'leapScroll':\n\t\t\tVariantComponent = StickyTopBannerLeapScrollVariant;\n\t\t\tbreak;\n\t}\n\n\treturn (\n\t\t<elements.container aria-hidden>\n\t\t\t<VariantComponent>\n\t\t\t\t<Text font={tokens.text.body.regular} color={tokens.color.content.muted}>\n\t\t\t\t\t{children}\n\t\t\t\t</Text>\n\t\t\t</VariantComponent>\n\t\t</elements.container>\n\t);\n}\n","import { Box, SafeArea, Stack } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { BreakPoints, useBreakpoint } from '@cellula/react';\nimport styled, { css } from 'styled-components';\nimport { useSelectedEntrance } from '../../application/use_selected_entrance';\nimport { StickyTopBanner } from '@components/sticky_top_banner/sticky_top_banner.component';\n\ninterface ReceptionHomeLayoutProps {\n\tactionSection: JSX.Element[];\n\theroSection: JSX.Element | null;\n\taboutUsSection: JSX.Element | null;\n\tfooterSection: JSX.Element | null;\n}\n\nconst elements = {\n\tuniqueButtons: styled.div<{ buttonCount: number }>`\n\t\tdisplay: grid;\n\t\tgrid-column-gap: ${tokens.spacing.x1};\n\t\tgrid-row-gap: ${tokens.spacing.x1};\n\t\tgrid-template-columns: repeat(1, 1fr);\n\t\twidth: 100%;\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tgrid-column-gap: ${tokens.spacing.x3};\n\t\t\tgrid-row-gap: ${tokens.spacing.x3};\n\n\t\t\t${({ buttonCount }) => {\n\t\t\t\tif (buttonCount === 1 || buttonCount % 2 === 0)\n\t\t\t\t\treturn css`\n\t\t\t\t\t\tgrid-template-columns: repeat(2, 1fr);\n\t\t\t\t\t`;\n\n\t\t\t\treturn css`\n\t\t\t\t\tgrid-template-columns: repeat(3, 1fr);\n\t\t\t\t`;\n\t\t\t}};\n\t\t}\n\t`,\n};\n\nexport function ReceptionHomeLayout({\n\taboutUsSection,\n\theroSection,\n\tactionSection,\n\tfooterSection,\n\t...rest\n}: ReceptionHomeLayoutProps): JSX.Element {\n\treturn (\n\t\t<Box background={tokens.color.bg.pageBrand} grow='1' {...rest}>\n\t\t\t<Stack asChild gap={tokens.spacing.x4}>\n\t\t\t\t<SafeArea maxWidth='1096px'>\n\t\t\t\t\t<Banner />\n\t\t\t\t\t{heroSection}\n\n\t\t\t\t\t<elements.uniqueButtons buttonCount={actionSection.length}>{actionSection}</elements.uniqueButtons>\n\t\t\t\t\t{aboutUsSection}\n\t\t\t\t\t{footerSection}\n\t\t\t\t</SafeArea>\n\t\t\t</Stack>\n\t\t</Box>\n\t);\n}\n\nfunction Banner(): JSX.Element | null {\n\tconst breakpoint = useBreakpoint();\n\tconst [unitNode] = useSelectedEntrance();\n\n\tif (breakpoint === BreakPoints.Large) return null;\n\n\treturn <StickyTopBanner variant='leapScroll'>{unitNode?.name ?? ''}</StickyTopBanner>;\n}\n","import { Bleed } from '@cellula/react';\nimport { useWindowSize } from '@visiba/react-std';\nimport { Shimmer } from '@components/shimmer.component';\nimport { ReceptionHomeLayout } from './_reception_home_layout.component';\n\nexport function ReceptionHomeSkeleton(): JSX.Element {\n\tconst { width } = useWindowSize();\n\tconst uniqueButtonsComponents: JSX.Element[] = [\n\t\t<Shimmer height={146} width={349} cornerRadius={8} key={1} />,\n\t\t<Shimmer height={146} width={349} cornerRadius={8} key={2} />,\n\t\t<Shimmer height={146} width={349} cornerRadius={8} key={3} />,\n\t];\n\n\treturn (\n\t\t<ReceptionHomeLayout\n\t\t\theroSection={\n\t\t\t\t<Bleed viewportWide>\n\t\t\t\t\t<Shimmer height={294} width={width ?? 1096} cornerRadius={8} />\n\t\t\t\t</Bleed>\n\t\t\t}\n\t\t\tactionSection={uniqueButtonsComponents}\n\t\t\taboutUsSection={null}\n\t\t\tfooterSection={null}\n\t\t></ReceptionHomeLayout>\n\t);\n}\n","import { sanitizedInjectHTML, Text } from '@visiba-cortex/react-ui-std';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { usePresentation } from '@visiba-cortex/presentation';\nimport { Bleed, Box, Flex, SafeArea, Spacer, Stack } from '@cellula/react';\nimport styled from 'styled-components';\nimport { useCurrentLocation } from '../../application/use_current_location';\nimport { ReceptionHomeController } from './_reception_home.controller';\nimport { BreakPoints, useBreakpoint } from '@cellula/react';\n\ninterface ReceptionHeroProps {\n\tcontroller: ReceptionHomeController;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\twidth: 100%;\n\t\tbackground-color: #fff;\n\t\tborder-bottom: 1px solid #e5e8f0;\n\t`,\n\tlogo: styled.div`\n\t\theight: 100%;\n\t`,\n\timg: styled.img`\n\t\tdisplay: block;\n\t\tmax-width: 100%;\n\t\tmax-height: 240px;\n\n\t\t${tokens.breakpointQuery.small} {\n\t\t\tmin-width: 235px;\n\t\t\tmax-width: 272px;\n\t\t}\n\n\t\t${tokens.breakpointQuery.large} {\n\t\t\tmax-width: 424px;\n\t\t}\n\t`,\n};\n\nexport function ReceptionHomeHero({ controller }: ReceptionHeroProps): JSX.Element {\n\tconst { textReceptionTitle: receptionTitleText, textReceptionBody: receptionBodyText } = usePresentation(controller.presentation);\n\tconst [_, config] = useCurrentLocation();\n\tconst breakpoint = useBreakpoint(BreakPoints.Small | BreakPoints.Medium);\n\n\treturn (\n\t\t<Bleed viewportWide>\n\t\t\t<elements.container>\n\t\t\t\t<Spacer vertical={tokens.spacing.x9} />\n\t\t\t\t<SafeArea asChild maxWidth='1096px'>\n\t\t\t\t\t<Box data-testid='browse_reception' asChild verticalPadding={tokens.spacing.x2}>\n\t\t\t\t\t\t<Stack gap={tokens.spacing.x5}>\n\t\t\t\t\t\t\t<Flex\n\t\t\t\t\t\t\t\tfluid={breakpoint ? 'horizontal' : true}\n\t\t\t\t\t\t\t\tgap={tokens.spacing.x4}\n\t\t\t\t\t\t\t\tbreakpointSmallAndUp={{\n\t\t\t\t\t\t\t\t\tgap: tokens.spacing.x9,\n\t\t\t\t\t\t\t\t\tdirection: 'row',\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<elements.logo>\n\t\t\t\t\t\t\t\t\t<elements.img src={(config?.theme.LogoUrl as string) ?? (config?.theme.EmailLogoUrl as string)} alt='' />\n\t\t\t\t\t\t\t\t</elements.logo>\n\t\t\t\t\t\t\t\t<Stack gap={tokens.spacing.x2_5}>\n\t\t\t\t\t\t\t\t\t<Text font={tokens.text.heading.large} color={tokens.color.content.default}>\n\t\t\t\t\t\t\t\t\t\t{receptionTitleText}\n\t\t\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t\t\t\t<Text font={tokens.text.body.regular} color={tokens.color.content.default}>\n\t\t\t\t\t\t\t\t\t\t<span dangerouslySetInnerHTML={sanitizedInjectHTML(receptionBodyText)} />\n\t\t\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t\t\t</Stack>\n\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t</Stack>\n\t\t\t\t\t</Box>\n\t\t\t\t</SafeArea>\n\t\t\t\t<Spacer vertical={tokens.spacing.x6} />\n\t\t\t</elements.container>\n\t\t</Bleed>\n\t);\n}\n","import { Scoped } from '@visiba-cortex/instantiation';\nimport { Presentation } from '@visiba-cortex/presentation';\nimport { UnitsApiService } from '@src/api/units_api.service';\nimport { ComponentUnion, FlexibleComponentService } from '@services/flexible_component/flexible_component.service';\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport type { GuiComponentApiModel } from '@api/generated/models';\n\ninterface Presentation {\n\tcomponents: ComponentUnion[];\n\ttextReceptionTitle: string;\n\ttextReceptionBody: string;\n\ttextAboutUs: string | null;\n}\n\ntype FetchedTexts = 'View_Index_Body' | 'View_Index_Title' | 'Web_About';\n\n@Scoped()\nexport class ReceptionHomeController {\n\tpublic readonly presentation = Presentation.createConcurrent<Presentation>();\n\n\tconstructor(\n\t\tprivate readonly locationSelectorService: LocationSelectorService,\n\t\tprivate readonly unitsApiService: UnitsApiService,\n\t\tprivate readonly flexibleComponentService: FlexibleComponentService,\n\t) {\n\t\t// Empty\n\t}\n\n\t// TODO: DEV-9820 Research if we we should get rid of these types of methods.\n\tpublic onMount(): void {\n\t\tconst textsPromise = this.unitsApiService.getTexts(this.locationSelectorService.locationUnitId, [\n\t\t\t'View_Index_Body',\n\t\t\t'View_Index_Title',\n\t\t\t'Web_About',\n\t\t]);\n\t\tconst unitComponentsPromise = this.unitsApiService.getUnitComponents(this.locationSelectorService.locationUnitId);\n\n\t\tconst promiseGroup = Promise.all([textsPromise, unitComponentsPromise]);\n\t\tthis.presentation.suspend(promiseGroup, ([textsResponse, componentsResponse]) => {\n\t\t\treturn this.parseResultsToPresentationModel([textsResponse.data, componentsResponse.data]);\n\t\t});\n\t}\n\n\tprivate parseResultsToPresentationModel([texts, componentsResponse]: readonly [\n\t\tAwaited<ReturnType<typeof this.unitsApiService.getTexts<FetchedTexts>>>['data'],\n\t\tGuiComponentApiModel[],\n\t]): Presentation {\n\t\treturn {\n\t\t\tcomponents: this.parseUnitComponentsResponse(componentsResponse),\n\t\t\ttextReceptionTitle: texts.View_Index_Title ?? '',\n\t\t\ttextReceptionBody: texts.View_Index_Body ?? '',\n\t\t\ttextAboutUs: texts.Web_About,\n\t\t};\n\t}\n\n\tprivate parseUnitComponentsResponse(data: GuiComponentApiModel[]): ComponentUnion[] {\n\t\tconst parsedComponents = data\n\t\t\t.sort((a, b) => {\n\t\t\t\tif (a.Order > b.Order) return 1;\n\t\t\t\tif (a.Order < b.Order) return -1;\n\n\t\t\t\treturn 0;\n\t\t\t})\n\t\t\t.map((component) => {\n\t\t\t\tconst type = component.Type === 'Button.Icon' ? 'ActionCard' : component.Type;\n\n\t\t\t\treturn this.flexibleComponentService.produce(type, component) as ComponentUnion; // In backend we trust 🙏\n\t\t\t});\n\n\t\treturn parsedComponents;\n\t}\n}\n","import { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { Bleed } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Text } from '@visiba-cortex/react-ui-std';\nimport { BreakPoints, useBreakpoint } from '@cellula/react';\nimport styled from 'styled-components';\nimport { LinkInMessage } from '@components/link_in_message.component';\n\ninterface Props {\n\ttextAboutUs: string;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: ${tokens.spacing.x2};\n\t\tbackground-color: ${tokens.color.bg.surfaceBrand};\n\t\tpadding: ${tokens.spacing.x4} ${tokens.spacing.x3};\n\t\twidth: 100%;\n\n\t\t${tokens.breakpointQuery.small} {\n\t\t\tpadding: ${tokens.spacing.x7} ${tokens.spacing.x9};\n\t\t\tborder-radius: ${tokens.borderRadius.large};\n\t\t}\n\t`,\n};\n\nexport function ReceptionHomeAboutUs({ textAboutUs, ...rest }: Props): JSX.Element {\n\tconst breakpoint = useBreakpoint(BreakPoints.Small);\n\n\treturn (\n\t\t<Bleed viewportWide={breakpoint as true /* TODO: need Cellula support to be able to pass in boolean and not just true lol */}>\n\t\t\t<elements.container {...rest}>\n\t\t\t\t<Text as='h3' font={tokens.text.heading.small}>\n\t\t\t\t\t{withTranslation('PW.Page.RH.AboutUs')}\n\t\t\t\t</Text>\n\t\t\t\t<Text font={tokens.text.body.regular} preserveLineBreaks>\n\t\t\t\t\t<LinkInMessage text={textAboutUs} />\n\t\t\t\t</Text>\n\t\t\t</elements.container>\n\t\t</Bleed>\n\t);\n}\n","import { useEffect } from 'react';\nimport { Spacer } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { FlexibleIdentifier } from '@components/flexible_identifier/flexible_identifier.component';\nimport { SuspendedPresentation } from '@components/suspended_presentation.component';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { ReceptionHomeSkeleton } from './_reception_home_skeleton.component';\nimport { ReceptionHomeHero } from './_reception_home_hero.component';\nimport { ReceptionHomeController } from './_reception_home.controller';\nimport { ReceptionHomeAboutUs } from './_reception_home_about_us.component';\nimport { ReceptionHomeLayout } from './_reception_home_layout.component';\nimport { BreakPoints, useBreakpoint } from '@cellula/react';\nimport { AnalyticService } from '@application/analytic/analytic.service';\nimport { AnalyticProvider } from '@components/analytic_link/analytic_link.provider';\nimport { AnalyticCategories } from '@application/analytic/analytic.service';\nimport { useTitle } from '@src/application/use_title';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\n\ninterface Props {\n\t__TEMP__on_OPW_WebContentButton_proxy_invoke?: (flexibleIdentifierData: {\n\t\turl: string;\n\t\topenUrlWith: string;\n\t\trequiresAuthentication: boolean;\n\t}) => void;\n}\n\nexport function ReceptionHome({ __TEMP__on_OPW_WebContentButton_proxy_invoke }: Props): JSX.Element {\n\tconst breakpoint = useBreakpoint();\n\tconst controller = useService(ReceptionHomeController);\n\tconst analyticService = useService(AnalyticService);\n\n\tuseTitle(withTranslation('PW.Page.ReceptionHome.Title'));\n\n\tuseEffect(\n\t\tfunction analyticQuirk_whenComponentMounts() {\n\t\t\tanalyticService.trackPageView({ customTitle: 'Reception Home' });\n\t\t},\n\t\t[analyticService],\n\t);\n\n\tuseEffect(\n\t\tfunction whenComponentMounts() {\n\t\t\tcontroller.onMount();\n\t\t},\n\t\t[controller],\n\t);\n\n\treturn (\n\t\t<AnalyticProvider category={AnalyticCategories.ReceptionHome}>\n\t\t\t<SuspendedPresentation controller={controller} fallback={<ReceptionHomeSkeleton />}>\n\t\t\t\t{({ components, textAboutUs }) => {\n\t\t\t\t\tconst buttonIdentifierList = components.map((component) => (\n\t\t\t\t\t\t<FlexibleIdentifier\n\t\t\t\t\t\t\tkey={component.id}\n\t\t\t\t\t\t\tcomponent={component}\n\t\t\t\t\t\t\t__TEMP__on_OPW_WebContentButton_proxy_invoke={__TEMP__on_OPW_WebContentButton_proxy_invoke}\n\t\t\t\t\t\t/>\n\t\t\t\t\t));\n\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<ReceptionHomeLayout\n\t\t\t\t\t\t\tdata-testid='reception_home'\n\t\t\t\t\t\t\tactionSection={buttonIdentifierList}\n\t\t\t\t\t\t\theroSection={<ReceptionHomeHero controller={controller} />}\n\t\t\t\t\t\t\taboutUsSection={textAboutUs != null ? <ReceptionHomeAboutUs textAboutUs={textAboutUs} /> : null}\n\t\t\t\t\t\t\tfooterSection={\n\t\t\t\t\t\t\t\tbreakpoint !== BreakPoints.Small ? (\n\t\t\t\t\t\t\t\t\t<Spacer vertical={tokens.spacing.x9} />\n\t\t\t\t\t\t\t\t) : textAboutUs == null ? (\n\t\t\t\t\t\t\t\t\t<Spacer vertical='0px' />\n\t\t\t\t\t\t\t\t) : null\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t></ReceptionHomeLayout>\n\t\t\t\t\t);\n\t\t\t\t}}\n\t\t\t</SuspendedPresentation>\n\t\t</AnalyticProvider>\n\t);\n}\n","import {\n\tAfterViewInit,\n\tComponent,\n\tElementRef,\n\tNgZone,\n\tOnChanges,\n\tOnDestroy,\n\tSimpleChanges,\n\tViewChild,\n\tViewEncapsulation,\n} from '@angular/core';\nimport { ReceptionHome } from 'src/routes/reception_home/mod';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { WebContentButtonsService } from '../app/Services/api/v2/Units/webContentButtons.service';\nimport { Root, createRoot } from 'react-dom/client';\n\nconst containerElementName = 'reactReceptionHomeComponent';\n\n@Component({\n\tstandalone: false,\n\tstyleUrls: ['./css/reception-home.wrapper.scss'],\n\tselector: 'reception-home-component',\n\ttemplate: `\n\t\t<semantic-view>\n\t\t\t<header-component header></header-component>\n\t\t\t<div class=\"wrapper-container\" #${containerElementName}></div>\n\t\t\t<footer-component footer></footer-component>\n\t\t</semantic-view>\n\t`,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class ReceptionHomeWrapperComponent implements OnChanges, OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(\n\t\tprivate readonly ngZone: NgZone,\n\t\tprivate readonly webContentButtonsService: WebContentButtonsService,\n\t) {\n\t\t// Empty\n\t}\n\n\tngOnChanges(_: SimpleChanges): void {\n\t\t// noop\n\t}\n\n\tngAfterViewInit(): void {\n\t\tthis.render();\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate requestSignIn(flexibleIdentifierData: { url: string; openUrlWith: string; requiresAuthentication: boolean }): void {\n\t\tthis.webContentButtonsService.goToCustomButtonUrl(flexibleIdentifierData as any);\n\t}\n\n\tprivate render(): void {\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tconst forwardSignIn = (flexibleIdentifierData: { url: string; openUrlWith: string; requiresAuthentication: boolean }): void => {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tthis.requestSignIn(flexibleIdentifierData);\n\t\t\t});\n\t\t};\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper useGlobals>\n\t\t\t\t\t<ReceptionHome __TEMP__on_OPW_WebContentButton_proxy_invoke={forwardSignIn} />\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n","import { RedRobinApiService } from '@api_patient/red_robin_api.service';\nimport { AnalyticService } from '@application/analytic/analytic.service';\nimport { FeatureFlagService } from '@application/feature_flags/feature_flag.service';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { getAbsoluteRoute } from '@application/route';\nimport { UnitService } from '@application/unit.service';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { useTitle } from '@application/use_title';\nimport { Button, Flex, NotificationAlert, SafeArea, Spacer, Spinner, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { RouterService } from '@cortex-shim/router.service';\nimport { signal } from '@preact/signals-react';\nimport { ControllerProtocol, Injectable, useResolveController } from '@visiba-cortex/instantiation';\n\nexport function ViewRedRobinRedirect(): JSX.Element {\n\tconst controller = useResolveController(RedRobinRedirectController);\n\n\tuseTitle(withTranslation('PW.Feature.RedRobinRedirect.Title'));\n\n\tfunction handleBackClick() {\n\t\tconst to = `${controller.unitService.units.get(controller.universalConfig.currentUnitId ?? 0)?.route}`;\n\t\tcontroller.routerService.navigateByUrl(getAbsoluteRoute(to));\n\t}\n\n\treturn (\n\t\t<SafeArea maxWidth='600px'>\n\t\t\t<Spacer vertical={tokens.spacing.x8} />\n\t\t\t<Flex style={{ width: '100%' }} gap={tokens.spacing.x2} grow={1} justify='center' align='center'>\n\t\t\t\t{controller.hasError.value ? (\n\t\t\t\t\t<Flex gap={tokens.spacing.x2}>\n\t\t\t\t\t\t<NotificationAlert variant='danger'>{withTranslation('PW.Feature.RedRobinRedirect.ErrorText')}</NotificationAlert>\n\t\t\t\t\t\t<Button variant='ghost' size='xSmall' icon='arrowLeft' onClick={handleBackClick}>\n\t\t\t\t\t\t\t{withTranslation('PW.Feature.RedRobinRedirect.ErrorGoBackButton')}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</Flex>\n\t\t\t\t) : (\n\t\t\t\t\t<Flex gap={tokens.spacing.x1} justify='center' align='center'>\n\t\t\t\t\t\t<Spinner size='medium' />\n\t\t\t\t\t\t<Text variant='bodyRegular'>{withTranslation('PW.Feature.RedRobinRedirect.Loading')}</Text>\n\t\t\t\t\t</Flex>\n\t\t\t\t)}\n\t\t\t</Flex>\n\t\t</SafeArea>\n\t);\n}\n\n@Injectable()\nexport class RedRobinRedirectController implements ControllerProtocol {\n\tpublic hasError = signal(false);\n\tconstructor(\n\t\tpublic readonly unitService: UnitService,\n\t\tpublic readonly routerService: RouterService,\n\t\tpublic readonly universalConfig: UniversalConfig,\n\t\tprivate readonly redRobinApiService: RedRobinApiService,\n\t\tprivate readonly featureFlagService: FeatureFlagService,\n\t\tprivate readonly analyticService: AnalyticService,\n\t) {\n\t\t// Empty\n\t}\n\n\tasync whenMount() {\n\t\tthis.analyticService.trackPageView({ customTitle: 'Red Robin Forward' });\n\n\t\tif (!this.featureFlagService.checkFlag('Office.RedRobinButton')) {\n\t\t\tconst to = `${this.unitService.units.get(this.universalConfig.currentUnitId ?? 0)?.route}`;\n\t\t\tthis.routerService.navigateByUrl(getAbsoluteRoute(to));\n\t\t}\n\n\t\tconst result = await this.redRobinApiService.getSessionUrl();\n\t\tif (result.err) {\n\t\t\tthis.hasError.value = true;\n\n\t\t\treturn;\n\t\t}\n\n\t\tlocation.href = result.ok.data;\n\t}\n}\n","import {\n\tAfterViewInit,\n\tComponent,\n\tElementRef,\n\tNgZone,\n\tOnChanges,\n\tOnDestroy,\n\tSimpleChanges,\n\tViewChild,\n\tViewEncapsulation,\n} from '@angular/core';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { Routes, Route, useLocation } from 'react-router';\nimport { sharedResolution } from '@public/src/shared_resolution';\nimport { LocationSelectorService } from '@public/src/application/services/location_selector.service';\nimport { Root, createRoot } from 'react-dom/client';\nimport { ViewRedRobinRedirect } from '@view/view_red_robin_redirect/mod';\nimport { ProgrammaticBrowserRouter } from '@cortex-shim/programmatic_browser_router.component';\nimport { UniversalConfig } from '@application/universal_config.service';\n\nconst containerElementName = 'reactRedRobinRedirectComponent';\n\n@Component({\n\tstandalone: false,\n\tselector: 'red-robin-forward-component',\n\ttemplate: `\n\t\t<semantic-view>\n\t\t\t<header-component header></header-component>\n\t\t\t<div class=\"wrapper-container\" #${containerElementName}></div>\n\t\t\t<footer-component footer></footer-component>\n\t\t</semantic-view>\n\t`,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class RedRobinRedirectWrapperComponent implements OnChanges, OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(private readonly ngZone: NgZone) {\n\t\t// Empty\n\t}\n\n\tngOnChanges(_: SimpleChanges): void {\n\t\t// noop\n\t}\n\n\tngAfterViewInit(): void {\n\t\tthis.render();\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate render(): void {\n\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\t\tconst universalConfigService = sharedResolution.resolve(UniversalConfig);\n\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tconst split = locationSelectorService.location.route.split('/');\n\t\tsplit.splice(0, 1);\n\t\tconst routeBase = split.join('/');\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper useGlobals>\n\t\t\t\t\t<ProgrammaticBrowserRouter basename={universalConfigService.alias} forceNewHistory>\n\t\t\t\t\t\t<Routes>\n\t\t\t\t\t\t\t<Route path={routeBase}>\n\t\t\t\t\t\t\t\t<Route path='go-to-red-robin' element={<ViewRedRobinRedirect />} />\n\t\t\t\t\t\t\t\t<Route path='*' element={<FunkyRedirect />} />\n\t\t\t\t\t\t\t\t<Route path='' element={<FunkyRedirect />} />\n\t\t\t\t\t\t\t</Route>\n\t\t\t\t\t\t</Routes>\n\t\t\t\t\t</ProgrammaticBrowserRouter>\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n\nfunction FunkyRedirect() {\n\tconst { pathname } = useLocation();\n\tif (window.__TEMP__overrideNavigation) {\n\t\twindow.__TEMP__overrideNavigation(pathname);\n\t}\n\n\treturn null;\n}\n","import { AfterViewInit, Component, ElementRef, ViewChild, ViewEncapsulation } from '@angular/core';\n\nconst containerElementName = 'signInFinish';\n\n@Component({ standalone: false, selector: 'sing-in-finish', template: ``, encapsulation: ViewEncapsulation.None })\nexport class SignInFinishWrapperComponent implements AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\tngAfterViewInit(): void {\n\t\tif (isInIframe()) {\n\t\t\tglobalThis.parent.postMessage('sign-in-finished', '*');\n\t\t}\n\t}\n}\n\nfunction isInIframe(): boolean {\n\ttry {\n\t\treturn window.self !== window.top;\n\t} catch {\n\t\treturn true;\n\t}\n}\n","import { Presentation } from '@visiba-cortex/presentation';\nimport { Injectable } from '@visiba-cortex/instantiation';\nimport { CaseService } from '@feature/cases/case.service';\nimport { AppointmentCaseModel } from '@feature/cases/case_appointment_model';\nimport { MessagingCaseModel } from '@feature/cases/case_messaging_model';\n\nexport interface CasesCollection {\n\tappointmentCases: AppointmentCaseModel[];\n\tmessagingCases: MessagingCaseModel[];\n}\n\nexport interface PresentationModel {\n\tongoingCases: CasesCollection | null;\n\tcompletedCases: CasesCollection | null;\n}\n\n@Injectable()\nexport class VisitsController {\n\tpublic readonly presentation = Presentation.create<PresentationModel>({\n\t\tongoingCases: null,\n\t\tcompletedCases: null,\n\t});\n\n\tprivate casePollerDisposer: (() => void) | null = null;\n\n\tconstructor(private readonly caseService: CaseService) {\n\t\tthis.caseService.updateSync();\n\n\t\tthis.casePollerDisposer = this.caseService.pollData(() => {\n\t\t\tthis.parsePolledData();\n\t\t});\n\t}\n\n\tpublic clearEvents(): void {\n\t\tif (this.casePollerDisposer != null) {\n\t\t\tthis.casePollerDisposer();\n\t\t\tthis.casePollerDisposer = null;\n\t\t}\n\t}\n\n\tprivate parsePolledData(): void {\n\t\tconst { completed, ongoing } = this.caseService.getGroupedCases();\n\n\t\tfunction sortByDateAscending(\n\t\t\ta: AppointmentCaseModel | MessagingCaseModel,\n\t\t\tb: AppointmentCaseModel | MessagingCaseModel,\n\t\t): -1 | 0 | 1 {\n\t\t\tconst dataA = a.get();\n\t\t\tconst dataB = b.get();\n\n\t\t\tif (dataA.date.isBefore(dataB.date)) return -1;\n\t\t\tif (dataA.date.isAfter(dataB.date)) return 1;\n\n\t\t\treturn 0;\n\t\t}\n\n\t\tfunction sortByDateDescending(\n\t\t\ta: AppointmentCaseModel | MessagingCaseModel,\n\t\t\tb: AppointmentCaseModel | MessagingCaseModel,\n\t\t): -1 | 0 | 1 {\n\t\t\tconst dataA = a.get();\n\t\t\tconst dataB = b.get();\n\n\t\t\tif (dataA.date.isAfter(dataB.date)) return -1;\n\t\t\tif (dataA.date.isBefore(dataB.date)) return 1;\n\n\t\t\treturn 0;\n\t\t}\n\n\t\tthis.presentation.write({\n\t\t\tcompletedCases: {\n\t\t\t\tappointmentCases: completed.appointmentCases.sort(sortByDateDescending),\n\t\t\t\tmessagingCases: completed.messagingCases.sort(sortByDateDescending),\n\t\t\t},\n\t\t\tongoingCases: {\n\t\t\t\tappointmentCases: ongoing.appointmentCases.sort(sortByDateAscending),\n\t\t\t\tmessagingCases: ongoing.messagingCases.sort(sortByDateDescending),\n\t\t\t},\n\t\t});\n\t}\n}\n","import { PropsWithChildren, useEffect } from 'react';\nimport { TabNavigation } from '@cellula/react';\nimport { useResolve, withNewContainer } from '@visiba-cortex/instantiation';\nimport { VisitsController } from './view_patient_cases.controller';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { AnalyticProvider } from '@application/analytic/analytic_link/mod';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { useTitle } from '@application/use_title';\n\nexport const Root = withNewContainer(function Root(props: PropsWithChildren) {\n\tconst controller = useResolve(VisitsController);\n\tconst analyticService = useResolve(AnalyticService);\n\n\tuseTitle(withTranslation('PW.Component.Visits.Title'));\n\n\tuseEffect(\n\t\tfunction analyticQuirk_whenComponentMounts() {\n\t\t\tanalyticService.trackPageView({ customTitle: 'Visits' });\n\t\t},\n\t\t[analyticService],\n\t);\n\n\tuseEffect(() => {\n\t\treturn () => {\n\t\t\tcontroller.clearEvents();\n\t\t};\n\t}, [controller]);\n\n\treturn (\n\t\t<AnalyticProvider category={AnalyticCategories.Visits}>\n\t\t\t<TabNavigation.Root defaultValue='tab1'>{props.children}</TabNavigation.Root>\n\t\t</AnalyticProvider>\n\t);\n});\n","\"use client\";\n\n// packages/react/scroll-area/src/ScrollArea.tsx\nimport * as React2 from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { clamp } from \"@radix-ui/number\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\n\n// packages/react/scroll-area/src/useStateMachine.ts\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/scroll-area/src/ScrollArea.tsx\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar SCROLL_AREA_NAME = \"ScrollArea\";\nvar [createScrollAreaContext, createScrollAreaScope] = createContextScope(SCROLL_AREA_NAME);\nvar [ScrollAreaProvider, useScrollAreaContext] = createScrollAreaContext(SCROLL_AREA_NAME);\nvar ScrollArea = React2.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeScrollArea,\n type = \"hover\",\n dir,\n scrollHideDelay = 600,\n ...scrollAreaProps\n } = props;\n const [scrollArea, setScrollArea] = React2.useState(null);\n const [viewport, setViewport] = React2.useState(null);\n const [content, setContent] = React2.useState(null);\n const [scrollbarX, setScrollbarX] = React2.useState(null);\n const [scrollbarY, setScrollbarY] = React2.useState(null);\n const [cornerWidth, setCornerWidth] = React2.useState(0);\n const [cornerHeight, setCornerHeight] = React2.useState(0);\n const [scrollbarXEnabled, setScrollbarXEnabled] = React2.useState(false);\n const [scrollbarYEnabled, setScrollbarYEnabled] = React2.useState(false);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setScrollArea(node));\n const direction = useDirection(dir);\n return /* @__PURE__ */ jsx(\n ScrollAreaProvider,\n {\n scope: __scopeScrollArea,\n type,\n dir: direction,\n scrollHideDelay,\n scrollArea,\n viewport,\n onViewportChange: setViewport,\n content,\n onContentChange: setContent,\n scrollbarX,\n onScrollbarXChange: setScrollbarX,\n scrollbarXEnabled,\n onScrollbarXEnabledChange: setScrollbarXEnabled,\n scrollbarY,\n onScrollbarYChange: setScrollbarY,\n scrollbarYEnabled,\n onScrollbarYEnabledChange: setScrollbarYEnabled,\n onCornerWidthChange: setCornerWidth,\n onCornerHeightChange: setCornerHeight,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n dir: direction,\n ...scrollAreaProps,\n ref: composedRefs,\n style: {\n position: \"relative\",\n // Pass corner sizes as CSS vars to reduce re-renders of context consumers\n [\"--radix-scroll-area-corner-width\"]: cornerWidth + \"px\",\n [\"--radix-scroll-area-corner-height\"]: cornerHeight + \"px\",\n ...props.style\n }\n }\n )\n }\n );\n }\n);\nScrollArea.displayName = SCROLL_AREA_NAME;\nvar VIEWPORT_NAME = \"ScrollAreaViewport\";\nvar ScrollAreaViewport = React2.forwardRef(\n (props, forwardedRef) => {\n const { __scopeScrollArea, children, nonce, ...viewportProps } = props;\n const context = useScrollAreaContext(VIEWPORT_NAME, __scopeScrollArea);\n const ref = React2.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref, context.onViewportChange);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n \"style\",\n {\n dangerouslySetInnerHTML: {\n __html: `[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`\n },\n nonce\n }\n ),\n /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-radix-scroll-area-viewport\": \"\",\n ...viewportProps,\n ref: composedRefs,\n style: {\n /**\n * We don't support `visible` because the intention is to have at least one scrollbar\n * if this component is used and `visible` will behave like `auto` in that case\n * https://developer.mozilla.org/en-US/docs/Web/CSS/overflowed#description\n *\n * We don't handle `auto` because the intention is for the native implementation\n * to be hidden if using this component. We just want to ensure the node is scrollable\n * so could have used either `scroll` or `auto` here. We picked `scroll` to prevent\n * the browser from having to work out whether to render native scrollbars or not,\n * we tell it to with the intention of hiding them in CSS.\n */\n overflowX: context.scrollbarXEnabled ? \"scroll\" : \"hidden\",\n overflowY: context.scrollbarYEnabled ? \"scroll\" : \"hidden\",\n ...props.style\n },\n children: /* @__PURE__ */ jsx(\"div\", { ref: context.onContentChange, style: { minWidth: \"100%\", display: \"table\" }, children })\n }\n )\n ] });\n }\n);\nScrollAreaViewport.displayName = VIEWPORT_NAME;\nvar SCROLLBAR_NAME = \"ScrollAreaScrollbar\";\nvar ScrollAreaScrollbar = React2.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const { onScrollbarXEnabledChange, onScrollbarYEnabledChange } = context;\n const isHorizontal = props.orientation === \"horizontal\";\n React2.useEffect(() => {\n isHorizontal ? onScrollbarXEnabledChange(true) : onScrollbarYEnabledChange(true);\n return () => {\n isHorizontal ? onScrollbarXEnabledChange(false) : onScrollbarYEnabledChange(false);\n };\n }, [isHorizontal, onScrollbarXEnabledChange, onScrollbarYEnabledChange]);\n return context.type === \"hover\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarHover, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === \"scroll\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarScroll, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === \"auto\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarAuto, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === \"always\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarVisible, { ...scrollbarProps, ref: forwardedRef }) : null;\n }\n);\nScrollAreaScrollbar.displayName = SCROLLBAR_NAME;\nvar ScrollAreaScrollbarHover = React2.forwardRef((props, forwardedRef) => {\n const { forceMount, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const [visible, setVisible] = React2.useState(false);\n React2.useEffect(() => {\n const scrollArea = context.scrollArea;\n let hideTimer = 0;\n if (scrollArea) {\n const handlePointerEnter = () => {\n window.clearTimeout(hideTimer);\n setVisible(true);\n };\n const handlePointerLeave = () => {\n hideTimer = window.setTimeout(() => setVisible(false), context.scrollHideDelay);\n };\n scrollArea.addEventListener(\"pointerenter\", handlePointerEnter);\n scrollArea.addEventListener(\"pointerleave\", handlePointerLeave);\n return () => {\n window.clearTimeout(hideTimer);\n scrollArea.removeEventListener(\"pointerenter\", handlePointerEnter);\n scrollArea.removeEventListener(\"pointerleave\", handlePointerLeave);\n };\n }\n }, [context.scrollArea, context.scrollHideDelay]);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || visible, children: /* @__PURE__ */ jsx(\n ScrollAreaScrollbarAuto,\n {\n \"data-state\": visible ? \"visible\" : \"hidden\",\n ...scrollbarProps,\n ref: forwardedRef\n }\n ) });\n});\nvar ScrollAreaScrollbarScroll = React2.forwardRef((props, forwardedRef) => {\n const { forceMount, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const isHorizontal = props.orientation === \"horizontal\";\n const debounceScrollEnd = useDebounceCallback(() => send(\"SCROLL_END\"), 100);\n const [state, send] = useStateMachine(\"hidden\", {\n hidden: {\n SCROLL: \"scrolling\"\n },\n scrolling: {\n SCROLL_END: \"idle\",\n POINTER_ENTER: \"interacting\"\n },\n interacting: {\n SCROLL: \"interacting\",\n POINTER_LEAVE: \"idle\"\n },\n idle: {\n HIDE: \"hidden\",\n SCROLL: \"scrolling\",\n POINTER_ENTER: \"interacting\"\n }\n });\n React2.useEffect(() => {\n if (state === \"idle\") {\n const hideTimer = window.setTimeout(() => send(\"HIDE\"), context.scrollHideDelay);\n return () => window.clearTimeout(hideTimer);\n }\n }, [state, context.scrollHideDelay, send]);\n React2.useEffect(() => {\n const viewport = context.viewport;\n const scrollDirection = isHorizontal ? \"scrollLeft\" : \"scrollTop\";\n if (viewport) {\n let prevScrollPos = viewport[scrollDirection];\n const handleScroll = () => {\n const scrollPos = viewport[scrollDirection];\n const hasScrollInDirectionChanged = prevScrollPos !== scrollPos;\n if (hasScrollInDirectionChanged) {\n send(\"SCROLL\");\n debounceScrollEnd();\n }\n prevScrollPos = scrollPos;\n };\n viewport.addEventListener(\"scroll\", handleScroll);\n return () => viewport.removeEventListener(\"scroll\", handleScroll);\n }\n }, [context.viewport, isHorizontal, send, debounceScrollEnd]);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || state !== \"hidden\", children: /* @__PURE__ */ jsx(\n ScrollAreaScrollbarVisible,\n {\n \"data-state\": state === \"hidden\" ? \"hidden\" : \"visible\",\n ...scrollbarProps,\n ref: forwardedRef,\n onPointerEnter: composeEventHandlers(props.onPointerEnter, () => send(\"POINTER_ENTER\")),\n onPointerLeave: composeEventHandlers(props.onPointerLeave, () => send(\"POINTER_LEAVE\"))\n }\n ) });\n});\nvar ScrollAreaScrollbarAuto = React2.forwardRef((props, forwardedRef) => {\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const { forceMount, ...scrollbarProps } = props;\n const [visible, setVisible] = React2.useState(false);\n const isHorizontal = props.orientation === \"horizontal\";\n const handleResize = useDebounceCallback(() => {\n if (context.viewport) {\n const isOverflowX = context.viewport.offsetWidth < context.viewport.scrollWidth;\n const isOverflowY = context.viewport.offsetHeight < context.viewport.scrollHeight;\n setVisible(isHorizontal ? isOverflowX : isOverflowY);\n }\n }, 10);\n useResizeObserver(context.viewport, handleResize);\n useResizeObserver(context.content, handleResize);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || visible, children: /* @__PURE__ */ jsx(\n ScrollAreaScrollbarVisible,\n {\n \"data-state\": visible ? \"visible\" : \"hidden\",\n ...scrollbarProps,\n ref: forwardedRef\n }\n ) });\n});\nvar ScrollAreaScrollbarVisible = React2.forwardRef((props, forwardedRef) => {\n const { orientation = \"vertical\", ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const thumbRef = React2.useRef(null);\n const pointerOffsetRef = React2.useRef(0);\n const [sizes, setSizes] = React2.useState({\n content: 0,\n viewport: 0,\n scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }\n });\n const thumbRatio = getThumbRatio(sizes.viewport, sizes.content);\n const commonProps = {\n ...scrollbarProps,\n sizes,\n onSizesChange: setSizes,\n hasThumb: Boolean(thumbRatio > 0 && thumbRatio < 1),\n onThumbChange: (thumb) => thumbRef.current = thumb,\n onThumbPointerUp: () => pointerOffsetRef.current = 0,\n onThumbPointerDown: (pointerPos) => pointerOffsetRef.current = pointerPos\n };\n function getScrollPosition(pointerPos, dir) {\n return getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes, dir);\n }\n if (orientation === \"horizontal\") {\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarX,\n {\n ...commonProps,\n ref: forwardedRef,\n onThumbPositionChange: () => {\n if (context.viewport && thumbRef.current) {\n const scrollPos = context.viewport.scrollLeft;\n const offset = getThumbOffsetFromScroll(scrollPos, sizes, context.dir);\n thumbRef.current.style.transform = `translate3d(${offset}px, 0, 0)`;\n }\n },\n onWheelScroll: (scrollPos) => {\n if (context.viewport) context.viewport.scrollLeft = scrollPos;\n },\n onDragScroll: (pointerPos) => {\n if (context.viewport) {\n context.viewport.scrollLeft = getScrollPosition(pointerPos, context.dir);\n }\n }\n }\n );\n }\n if (orientation === \"vertical\") {\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarY,\n {\n ...commonProps,\n ref: forwardedRef,\n onThumbPositionChange: () => {\n if (context.viewport && thumbRef.current) {\n const scrollPos = context.viewport.scrollTop;\n const offset = getThumbOffsetFromScroll(scrollPos, sizes);\n thumbRef.current.style.transform = `translate3d(0, ${offset}px, 0)`;\n }\n },\n onWheelScroll: (scrollPos) => {\n if (context.viewport) context.viewport.scrollTop = scrollPos;\n },\n onDragScroll: (pointerPos) => {\n if (context.viewport) context.viewport.scrollTop = getScrollPosition(pointerPos);\n }\n }\n );\n }\n return null;\n});\nvar ScrollAreaScrollbarX = React2.forwardRef((props, forwardedRef) => {\n const { sizes, onSizesChange, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const [computedStyle, setComputedStyle] = React2.useState();\n const ref = React2.useRef(null);\n const composeRefs = useComposedRefs(forwardedRef, ref, context.onScrollbarXChange);\n React2.useEffect(() => {\n if (ref.current) setComputedStyle(getComputedStyle(ref.current));\n }, [ref]);\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarImpl,\n {\n \"data-orientation\": \"horizontal\",\n ...scrollbarProps,\n ref: composeRefs,\n sizes,\n style: {\n bottom: 0,\n left: context.dir === \"rtl\" ? \"var(--radix-scroll-area-corner-width)\" : 0,\n right: context.dir === \"ltr\" ? \"var(--radix-scroll-area-corner-width)\" : 0,\n [\"--radix-scroll-area-thumb-width\"]: getThumbSize(sizes) + \"px\",\n ...props.style\n },\n onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.x),\n onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.x),\n onWheelScroll: (event, maxScrollPos) => {\n if (context.viewport) {\n const scrollPos = context.viewport.scrollLeft + event.deltaX;\n props.onWheelScroll(scrollPos);\n if (isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) {\n event.preventDefault();\n }\n }\n },\n onResize: () => {\n if (ref.current && context.viewport && computedStyle) {\n onSizesChange({\n content: context.viewport.scrollWidth,\n viewport: context.viewport.offsetWidth,\n scrollbar: {\n size: ref.current.clientWidth,\n paddingStart: toInt(computedStyle.paddingLeft),\n paddingEnd: toInt(computedStyle.paddingRight)\n }\n });\n }\n }\n }\n );\n});\nvar ScrollAreaScrollbarY = React2.forwardRef((props, forwardedRef) => {\n const { sizes, onSizesChange, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const [computedStyle, setComputedStyle] = React2.useState();\n const ref = React2.useRef(null);\n const composeRefs = useComposedRefs(forwardedRef, ref, context.onScrollbarYChange);\n React2.useEffect(() => {\n if (ref.current) setComputedStyle(getComputedStyle(ref.current));\n }, [ref]);\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarImpl,\n {\n \"data-orientation\": \"vertical\",\n ...scrollbarProps,\n ref: composeRefs,\n sizes,\n style: {\n top: 0,\n right: context.dir === \"ltr\" ? 0 : void 0,\n left: context.dir === \"rtl\" ? 0 : void 0,\n bottom: \"var(--radix-scroll-area-corner-height)\",\n [\"--radix-scroll-area-thumb-height\"]: getThumbSize(sizes) + \"px\",\n ...props.style\n },\n onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.y),\n onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.y),\n onWheelScroll: (event, maxScrollPos) => {\n if (context.viewport) {\n const scrollPos = context.viewport.scrollTop + event.deltaY;\n props.onWheelScroll(scrollPos);\n if (isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) {\n event.preventDefault();\n }\n }\n },\n onResize: () => {\n if (ref.current && context.viewport && computedStyle) {\n onSizesChange({\n content: context.viewport.scrollHeight,\n viewport: context.viewport.offsetHeight,\n scrollbar: {\n size: ref.current.clientHeight,\n paddingStart: toInt(computedStyle.paddingTop),\n paddingEnd: toInt(computedStyle.paddingBottom)\n }\n });\n }\n }\n }\n );\n});\nvar [ScrollbarProvider, useScrollbarContext] = createScrollAreaContext(SCROLLBAR_NAME);\nvar ScrollAreaScrollbarImpl = React2.forwardRef((props, forwardedRef) => {\n const {\n __scopeScrollArea,\n sizes,\n hasThumb,\n onThumbChange,\n onThumbPointerUp,\n onThumbPointerDown,\n onThumbPositionChange,\n onDragScroll,\n onWheelScroll,\n onResize,\n ...scrollbarProps\n } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, __scopeScrollArea);\n const [scrollbar, setScrollbar] = React2.useState(null);\n const composeRefs = useComposedRefs(forwardedRef, (node) => setScrollbar(node));\n const rectRef = React2.useRef(null);\n const prevWebkitUserSelectRef = React2.useRef(\"\");\n const viewport = context.viewport;\n const maxScrollPos = sizes.content - sizes.viewport;\n const handleWheelScroll = useCallbackRef(onWheelScroll);\n const handleThumbPositionChange = useCallbackRef(onThumbPositionChange);\n const handleResize = useDebounceCallback(onResize, 10);\n function handleDragScroll(event) {\n if (rectRef.current) {\n const x = event.clientX - rectRef.current.left;\n const y = event.clientY - rectRef.current.top;\n onDragScroll({ x, y });\n }\n }\n React2.useEffect(() => {\n const handleWheel = (event) => {\n const element = event.target;\n const isScrollbarWheel = scrollbar?.contains(element);\n if (isScrollbarWheel) handleWheelScroll(event, maxScrollPos);\n };\n document.addEventListener(\"wheel\", handleWheel, { passive: false });\n return () => document.removeEventListener(\"wheel\", handleWheel, { passive: false });\n }, [viewport, scrollbar, maxScrollPos, handleWheelScroll]);\n React2.useEffect(handleThumbPositionChange, [sizes, handleThumbPositionChange]);\n useResizeObserver(scrollbar, handleResize);\n useResizeObserver(context.content, handleResize);\n return /* @__PURE__ */ jsx(\n ScrollbarProvider,\n {\n scope: __scopeScrollArea,\n scrollbar,\n hasThumb,\n onThumbChange: useCallbackRef(onThumbChange),\n onThumbPointerUp: useCallbackRef(onThumbPointerUp),\n onThumbPositionChange: handleThumbPositionChange,\n onThumbPointerDown: useCallbackRef(onThumbPointerDown),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...scrollbarProps,\n ref: composeRefs,\n style: { position: \"absolute\", ...scrollbarProps.style },\n onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n const mainPointer = 0;\n if (event.button === mainPointer) {\n const element = event.target;\n element.setPointerCapture(event.pointerId);\n rectRef.current = scrollbar.getBoundingClientRect();\n prevWebkitUserSelectRef.current = document.body.style.webkitUserSelect;\n document.body.style.webkitUserSelect = \"none\";\n if (context.viewport) context.viewport.style.scrollBehavior = \"auto\";\n handleDragScroll(event);\n }\n }),\n onPointerMove: composeEventHandlers(props.onPointerMove, handleDragScroll),\n onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {\n const element = event.target;\n if (element.hasPointerCapture(event.pointerId)) {\n element.releasePointerCapture(event.pointerId);\n }\n document.body.style.webkitUserSelect = prevWebkitUserSelectRef.current;\n if (context.viewport) context.viewport.style.scrollBehavior = \"\";\n rectRef.current = null;\n })\n }\n )\n }\n );\n});\nvar THUMB_NAME = \"ScrollAreaThumb\";\nvar ScrollAreaThumb = React2.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...thumbProps } = props;\n const scrollbarContext = useScrollbarContext(THUMB_NAME, props.__scopeScrollArea);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || scrollbarContext.hasThumb, children: /* @__PURE__ */ jsx(ScrollAreaThumbImpl, { ref: forwardedRef, ...thumbProps }) });\n }\n);\nvar ScrollAreaThumbImpl = React2.forwardRef(\n (props, forwardedRef) => {\n const { __scopeScrollArea, style, ...thumbProps } = props;\n const scrollAreaContext = useScrollAreaContext(THUMB_NAME, __scopeScrollArea);\n const scrollbarContext = useScrollbarContext(THUMB_NAME, __scopeScrollArea);\n const { onThumbPositionChange } = scrollbarContext;\n const composedRef = useComposedRefs(\n forwardedRef,\n (node) => scrollbarContext.onThumbChange(node)\n );\n const removeUnlinkedScrollListenerRef = React2.useRef();\n const debounceScrollEnd = useDebounceCallback(() => {\n if (removeUnlinkedScrollListenerRef.current) {\n removeUnlinkedScrollListenerRef.current();\n removeUnlinkedScrollListenerRef.current = void 0;\n }\n }, 100);\n React2.useEffect(() => {\n const viewport = scrollAreaContext.viewport;\n if (viewport) {\n const handleScroll = () => {\n debounceScrollEnd();\n if (!removeUnlinkedScrollListenerRef.current) {\n const listener = addUnlinkedScrollListener(viewport, onThumbPositionChange);\n removeUnlinkedScrollListenerRef.current = listener;\n onThumbPositionChange();\n }\n };\n onThumbPositionChange();\n viewport.addEventListener(\"scroll\", handleScroll);\n return () => viewport.removeEventListener(\"scroll\", handleScroll);\n }\n }, [scrollAreaContext.viewport, debounceScrollEnd, onThumbPositionChange]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": scrollbarContext.hasThumb ? \"visible\" : \"hidden\",\n ...thumbProps,\n ref: composedRef,\n style: {\n width: \"var(--radix-scroll-area-thumb-width)\",\n height: \"var(--radix-scroll-area-thumb-height)\",\n ...style\n },\n onPointerDownCapture: composeEventHandlers(props.onPointerDownCapture, (event) => {\n const thumb = event.target;\n const thumbRect = thumb.getBoundingClientRect();\n const x = event.clientX - thumbRect.left;\n const y = event.clientY - thumbRect.top;\n scrollbarContext.onThumbPointerDown({ x, y });\n }),\n onPointerUp: composeEventHandlers(props.onPointerUp, scrollbarContext.onThumbPointerUp)\n }\n );\n }\n);\nScrollAreaThumb.displayName = THUMB_NAME;\nvar CORNER_NAME = \"ScrollAreaCorner\";\nvar ScrollAreaCorner = React2.forwardRef(\n (props, forwardedRef) => {\n const context = useScrollAreaContext(CORNER_NAME, props.__scopeScrollArea);\n const hasBothScrollbarsVisible = Boolean(context.scrollbarX && context.scrollbarY);\n const hasCorner = context.type !== \"scroll\" && hasBothScrollbarsVisible;\n return hasCorner ? /* @__PURE__ */ jsx(ScrollAreaCornerImpl, { ...props, ref: forwardedRef }) : null;\n }\n);\nScrollAreaCorner.displayName = CORNER_NAME;\nvar ScrollAreaCornerImpl = React2.forwardRef((props, forwardedRef) => {\n const { __scopeScrollArea, ...cornerProps } = props;\n const context = useScrollAreaContext(CORNER_NAME, __scopeScrollArea);\n const [width, setWidth] = React2.useState(0);\n const [height, setHeight] = React2.useState(0);\n const hasSize = Boolean(width && height);\n useResizeObserver(context.scrollbarX, () => {\n const height2 = context.scrollbarX?.offsetHeight || 0;\n context.onCornerHeightChange(height2);\n setHeight(height2);\n });\n useResizeObserver(context.scrollbarY, () => {\n const width2 = context.scrollbarY?.offsetWidth || 0;\n context.onCornerWidthChange(width2);\n setWidth(width2);\n });\n return hasSize ? /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...cornerProps,\n ref: forwardedRef,\n style: {\n width,\n height,\n position: \"absolute\",\n right: context.dir === \"ltr\" ? 0 : void 0,\n left: context.dir === \"rtl\" ? 0 : void 0,\n bottom: 0,\n ...props.style\n }\n }\n ) : null;\n});\nfunction toInt(value) {\n return value ? parseInt(value, 10) : 0;\n}\nfunction getThumbRatio(viewportSize, contentSize) {\n const ratio = viewportSize / contentSize;\n return isNaN(ratio) ? 0 : ratio;\n}\nfunction getThumbSize(sizes) {\n const ratio = getThumbRatio(sizes.viewport, sizes.content);\n const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;\n const thumbSize = (sizes.scrollbar.size - scrollbarPadding) * ratio;\n return Math.max(thumbSize, 18);\n}\nfunction getScrollPositionFromPointer(pointerPos, pointerOffset, sizes, dir = \"ltr\") {\n const thumbSizePx = getThumbSize(sizes);\n const thumbCenter = thumbSizePx / 2;\n const offset = pointerOffset || thumbCenter;\n const thumbOffsetFromEnd = thumbSizePx - offset;\n const minPointerPos = sizes.scrollbar.paddingStart + offset;\n const maxPointerPos = sizes.scrollbar.size - sizes.scrollbar.paddingEnd - thumbOffsetFromEnd;\n const maxScrollPos = sizes.content - sizes.viewport;\n const scrollRange = dir === \"ltr\" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];\n const interpolate = linearScale([minPointerPos, maxPointerPos], scrollRange);\n return interpolate(pointerPos);\n}\nfunction getThumbOffsetFromScroll(scrollPos, sizes, dir = \"ltr\") {\n const thumbSizePx = getThumbSize(sizes);\n const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;\n const scrollbar = sizes.scrollbar.size - scrollbarPadding;\n const maxScrollPos = sizes.content - sizes.viewport;\n const maxThumbPos = scrollbar - thumbSizePx;\n const scrollClampRange = dir === \"ltr\" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];\n const scrollWithoutMomentum = clamp(scrollPos, scrollClampRange);\n const interpolate = linearScale([0, maxScrollPos], [0, maxThumbPos]);\n return interpolate(scrollWithoutMomentum);\n}\nfunction linearScale(input, output) {\n return (value) => {\n if (input[0] === input[1] || output[0] === output[1]) return output[0];\n const ratio = (output[1] - output[0]) / (input[1] - input[0]);\n return output[0] + ratio * (value - input[0]);\n };\n}\nfunction isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) {\n return scrollPos > 0 && scrollPos < maxScrollPos;\n}\nvar addUnlinkedScrollListener = (node, handler = () => {\n}) => {\n let prevPosition = { left: node.scrollLeft, top: node.scrollTop };\n let rAF = 0;\n (function loop() {\n const position = { left: node.scrollLeft, top: node.scrollTop };\n const isHorizontalScroll = prevPosition.left !== position.left;\n const isVerticalScroll = prevPosition.top !== position.top;\n if (isHorizontalScroll || isVerticalScroll) handler();\n prevPosition = position;\n rAF = window.requestAnimationFrame(loop);\n })();\n return () => window.cancelAnimationFrame(rAF);\n};\nfunction useDebounceCallback(callback, delay) {\n const handleCallback = useCallbackRef(callback);\n const debounceTimerRef = React2.useRef(0);\n React2.useEffect(() => () => window.clearTimeout(debounceTimerRef.current), []);\n return React2.useCallback(() => {\n window.clearTimeout(debounceTimerRef.current);\n debounceTimerRef.current = window.setTimeout(handleCallback, delay);\n }, [handleCallback, delay]);\n}\nfunction useResizeObserver(element, onResize) {\n const handleResize = useCallbackRef(onResize);\n useLayoutEffect(() => {\n let rAF = 0;\n if (element) {\n const resizeObserver = new ResizeObserver(() => {\n cancelAnimationFrame(rAF);\n rAF = window.requestAnimationFrame(handleResize);\n });\n resizeObserver.observe(element);\n return () => {\n window.cancelAnimationFrame(rAF);\n resizeObserver.unobserve(element);\n };\n }\n }, [element, handleResize]);\n}\nvar Root = ScrollArea;\nvar Viewport = ScrollAreaViewport;\nvar Scrollbar = ScrollAreaScrollbar;\nvar Thumb = ScrollAreaThumb;\nvar Corner = ScrollAreaCorner;\nexport {\n Corner,\n Root,\n ScrollArea,\n ScrollAreaCorner,\n ScrollAreaScrollbar,\n ScrollAreaThumb,\n ScrollAreaViewport,\n Scrollbar,\n Thumb,\n Viewport,\n createScrollAreaScope\n};\n","// packages/core/number/src/number.ts\nfunction clamp(value, [min, max]) {\n return Math.min(max, Math.max(min, value));\n}\nexport {\n clamp\n};\n","import styled from 'styled-components';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { ReactNode } from 'react';\n\ninterface Props {\n\tchildren: ReactNode;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\twidth: 100%;\n\t\tpadding: ${tokens.spacing.x3} ${tokens.spacing.x2};\n\t\tcolor: ${tokens.color.content.muted};\n\t\tborder: 1px dashed ${tokens.color.border.default};\n\t\tborder-radius: 12px;\n\n\t\th2 {\n\t\t\tfont: ${tokens.text.heading.xSmall};\n\t\t}\n\n\t\tp {\n\t\t\tfont: ${tokens.text.body.smallRegular};\n\t\t}\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\ttext-align: center;\n\n\t\t\th2 {\n\t\t\t\tfont: ${tokens.text.heading.small};\n\t\t\t}\n\n\t\t\tp {\n\t\t\t\tfont: ${tokens.text.body.regular};\n\t\t\t}\n\t\t}\n\t`,\n};\n\nexport function EmptyState({ children }: Props): JSX.Element {\n\treturn <elements.container>{children}</elements.container>;\n}\n","import { tokens } from '@cellula/react-theme-patient';\nimport { motion, AnimatePresence } from 'framer-motion';\nimport styled from 'styled-components';\n\ninterface Props {\n\tisSelected: boolean;\n}\n\nconst elements = {\n\tillustrativeSelection: styled(motion.div)`\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tborder: 2px solid ${tokens.color.bg.interactive};\n\t\tborder-radius: 12px;\n\t\tuser-select: none;\n\t\tpointer-events: none;\n\t`,\n};\n\nexport function IllustrativeSelection({ isSelected }: Props): JSX.Element {\n\treturn (\n\t\t<AnimatePresence>\n\t\t\t{isSelected ? (\n\t\t\t\t<elements.illustrativeSelection\n\t\t\t\t\tinitial={{ opacity: 0 }}\n\t\t\t\t\tanimate={{ opacity: 1 }}\n\t\t\t\t\texit={{\n\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\ttransition: {\n\t\t\t\t\t\t\tduration: 0.1,\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t\ttransition={{ type: 'spring' }}\n\t\t\t\t/>\n\t\t\t) : null}\n\t\t</AnimatePresence>\n\t);\n}\n","import styled from 'styled-components';\nimport { Avatar, Flex, Spacer, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Participant } from '@feature/cases/common';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { DateService, DateDisplayFormats } from '@application/time/date.service';\nimport { useService } from '@visiba-cortex/instantiation';\n\ninterface Props {\n\thost: Participant | null;\n\tparticipantAmount: number;\n\treceptionName: string;\n\ttime?: VisibaDate;\n\trfv?: string;\n\trepresentativeNiN?: string;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tdisplay: flex;\n\t`,\n\tavatar: styled.div`\n\t\tdisplay: flex;\n\t\talign-items: flex-start;\n\t\twidth: 48px;\n\t\tflex-shrink: 0;\n\t`,\n\ttextSections: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: ${tokens.spacing.x1_5};\n\t\tmax-width: 100%;\n\t\twidth: 100%;\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tmax-width: 70%;\n\t\t}\n\t`,\n\ttextSection: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: ${tokens.spacing.x0_5};\n\t\tmax-width: 75%;\n\t`,\n};\n\n/**\n * Information about the case in written form.\n */\nexport function ExtensiveInfo({ host, receptionName, representativeNiN, rfv, time, participantAmount }: Props): JSX.Element {\n\tconst dateService = useService(DateService);\n\tconst formattedDate = time?.format(\n\t\tdateService.getLocaleSpecificDateFormatTemplate(DateDisplayFormats.FULL_DISPLAY_IN_CURRENT_YEAR_NO_WEEKDAY),\n\t);\n\n\treturn (\n\t\t<elements.container>\n\t\t\t<elements.avatar>\n\t\t\t\t{participantAmount > 1 ? (\n\t\t\t\t\t<Avatar icon='group' size='large' />\n\t\t\t\t) : (\n\t\t\t\t\t<Avatar src={host?.profileImageUrl} name={host?.name ?? receptionName ?? ''} size='large' />\n\t\t\t\t)}\n\t\t\t</elements.avatar>\n\n\t\t\t<Spacer horizontal={tokens.spacing.x2} />\n\n\t\t\t{host != null ? (\n\t\t\t\t<elements.textSections>\n\t\t\t\t\t<TextSectionOne\n\t\t\t\t\t\thost={host}\n\t\t\t\t\t\tparticipantAmount={participantAmount}\n\t\t\t\t\t\treceptionName={receptionName}\n\t\t\t\t\t\tformattedDate={formattedDate}\n\t\t\t\t\t/>\n\t\t\t\t\t<TextSectionTwo representativeNiN={representativeNiN} rfv={rfv} />\n\t\t\t\t</elements.textSections>\n\t\t\t) : (\n\t\t\t\t<Flex>\n\t\t\t\t\t<Text\n\t\t\t\t\t\tvariant='headingXSmall'\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\tcolor: tokens.color.content.default,\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{receptionName}\n\t\t\t\t\t</Text>\n\t\t\t\t</Flex>\n\t\t\t)}\n\t\t</elements.container>\n\t);\n}\n\ninterface TextSectionOneProps {\n\thost: Participant;\n\treceptionName: string;\n\tparticipantAmount: number;\n\tformattedDate?: string;\n}\n\nfunction TextSectionOne({ host, receptionName, formattedDate, participantAmount }: TextSectionOneProps): JSX.Element {\n\treturn (\n\t\t<elements.textSection>\n\t\t\t<Text variant='headingXSmall' style={{ color: tokens.color.content.default }}>\n\t\t\t\t{host.name} {participantAmount > 1 ? <span>+{participantAmount - 1 /* -1 because host is not counted */}</span> : null}\n\t\t\t</Text>\n\t\t\t<Text variant='labelRegular' style={{ color: tokens.color.content.default }}>\n\t\t\t\t{receptionName}\n\t\t\t</Text>\n\t\t\t{formattedDate != null ? (\n\t\t\t\t<Text variant='labelSemiBold' style={{ color: tokens.color.content.default }}>\n\t\t\t\t\t{formattedDate}\n\t\t\t\t</Text>\n\t\t\t) : null}\n\t\t</elements.textSection>\n\t);\n}\n\ninterface TextSectionTwoProps {\n\trepresentativeNiN?: string;\n\trfv?: string;\n}\n\nfunction TextSectionTwo({ representativeNiN, rfv }: TextSectionTwoProps): JSX.Element | null {\n\tif (representativeNiN == null && rfv == null) return null;\n\n\treturn (\n\t\t<elements.textSection>\n\t\t\t{rfv != null ? (\n\t\t\t\t<Text variant='labelRegular' style={{ color: tokens.color.content.muted }}>\n\t\t\t\t\t{rfv}\n\t\t\t\t</Text>\n\t\t\t) : null}\n\t\t\t{representativeNiN != null ? (\n\t\t\t\t<Text variant='labelRegular' style={{ color: tokens.color.content.muted }}>\n\t\t\t\t\t<Text variant='labelSemiBold'>{withTranslation('PW.Component.CaseCard.AgentFor')}</Text> {representativeNiN}\n\t\t\t\t</Text>\n\t\t\t) : null}\n\t\t</elements.textSection>\n\t);\n}\n","import { Icon, IconProps, Tooltip, BadgeNumber, BadgeText, Stack, Text } from '@cellula/react';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Fragment } from 'react';\nimport styled from 'styled-components';\nimport { CounterState, useCounterState } from '../../application/counter';\n\ninterface Props {\n\tisNew?: boolean;\n\tlabel?: string;\n\treservedUntil?: CounterState;\n\tlabelIcon?: IconProps['type'];\n\tpendingPayment: number;\n\tformsNotSigned: number;\n\tunreadMessages: number;\n\tstateText?: string;\n}\n\nconst elements = {\n\tactions: styled.div`\n\t\tdisplay: flex;\n\t\tflex-shrink: 0;\n\t\tpadding-left: calc(48px + ${tokens.spacing.x2_5});\n\t\tmargin: 0 calc(var(--cellula--space--x0_5) / 2 * -1); // 1/2 Padding to not lose the tooltip with mouse left. Padding is used to give each item equal space.\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tjustify-content: space-between;\n\t\t}\n\t`,\n\taction: styled.div`\n\t\tflex-shrink: 0;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: ${tokens.spacing.x0_25};\n\t\tpadding: 0 calc(${tokens.spacing.x1_5} / 2); // 2/2 Padding to not lose the tooltip with mouse left. Padding is used to give each item equal space.\n\t\tcolor: ${tokens.color.content.muted};\n\t`,\n\tarrow: styled.div`\n\t\twidth: 20px;\n\t\tposition: absolute;\n\t\tright: ${tokens.spacing.x1_5};\n\t\tbottom: ${tokens.spacing.x1_5};\n\t\tdisplay: block;\n\t\tcolor: ${tokens.color.content.default};\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tdisplay: none;\n\t\t}\n\t`,\n\tlabels: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column-reverse;\n\t\talign-items: flex-end;\n\t\tposition: absolute;\n\t\ttop: ${tokens.spacing.x1_5};\n\t\tright: ${tokens.spacing.x1_5};\n\t\tgap: ${tokens.spacing.x0_5};\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tflex-direction: unset;\n\t\t}\n\t`,\n\tactionIconWrapper: styled.div`\n\t\tdisplay: flex;\n\t\tmargin: 0 calc((${tokens.spacing.x1} + 0.15rem) * -1); // The 0.15rem is just to visually align with the text content. Is a bit of a hack tbh\n\t`,\n};\n\n/**\n * Visual information sections about the case.\n */\nexport function ComprehensiveInfo({\n\treservedUntil,\n\tpendingPayment,\n\tformsNotSigned,\n\tunreadMessages,\n\tstateText,\n\tlabel,\n\tlabelIcon,\n\tisNew,\n}: Props): JSX.Element {\n\treturn (\n\t\t<Fragment>\n\t\t\t<Labels isNew={isNew} label={label} labelIcon={labelIcon} />\n\n\t\t\t<ActionContainer\n\t\t\t\treservedUntil={reservedUntil}\n\t\t\t\tformsNotSigned={formsNotSigned}\n\t\t\t\tpendingPayment={pendingPayment}\n\t\t\t\tunreadMessages={unreadMessages}\n\t\t\t\tstateText={stateText}\n\t\t\t/>\n\n\t\t\t<ArrowForMobile />\n\t\t</Fragment>\n\t);\n}\n\ninterface LabelProps {\n\tisNew?: boolean;\n\tlabel?: string;\n\tlabelIcon?: IconProps['type'];\n}\n\nfunction Labels({ isNew, label, labelIcon }: LabelProps): JSX.Element | null {\n\tif (label == null && isNew == null) return null;\n\n\treturn (\n\t\t<elements.labels>\n\t\t\t{isNew ? <BadgeText>{withTranslation('PW.Component.CaseCard.Label.NewIncoming')}</BadgeText> : null}\n\t\t\t{label != null ? (\n\t\t\t\t<BadgeText icon={labelIcon} variant='brandLight'>\n\t\t\t\t\t{label}\n\t\t\t\t</BadgeText>\n\t\t\t) : null}\n\t\t</elements.labels>\n\t);\n}\n\ninterface ActionContainerProps {\n\treservedUntil?: CounterState;\n\tpendingPayment: number;\n\tformsNotSigned: number;\n\tunreadMessages: number;\n\tstateText?: string;\n}\n\nfunction ActionContainer({\n\treservedUntil,\n\tformsNotSigned,\n\tpendingPayment,\n\tunreadMessages,\n\tstateText,\n}: ActionContainerProps): JSX.Element | null {\n\tif (formsNotSigned <= 0 && pendingPayment <= 0 && unreadMessages <= 0 && stateText == null) return null;\n\n\treturn (\n\t\t<elements.actions>\n\t\t\t{stateText ? (\n\t\t\t\t<Text\n\t\t\t\t\tvariant='labelSmallRegular'\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tcolor: tokens.color.content.default,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{stateText}\n\t\t\t\t</Text>\n\t\t\t) : null}\n\n\t\t\t<elements.actionIconWrapper>\n\t\t\t\t<Action\n\t\t\t\t\ticon='notesBoardPencil'\n\t\t\t\t\tamount={formsNotSigned}\n\t\t\t\t\ttooltipText={withTranslation('PW.Component.CaseCard.Tooltip.AwaitingFormResponse')}\n\t\t\t\t/>\n\t\t\t\t<ActionPayment reservedUntil={reservedUntil} amount={pendingPayment} />\n\t\t\t\t<Action\n\t\t\t\t\ticon='speechBubbleLines'\n\t\t\t\t\tamount={unreadMessages}\n\t\t\t\t\ttooltipText={withTranslation('PW.Component.CaseCard.Tooltip.UnreadMessages')}\n\t\t\t\t/>\n\t\t\t</elements.actionIconWrapper>\n\t\t</elements.actions>\n\t);\n}\n\ninterface ActionProps {\n\ttooltipText: string;\n\ticon: IconProps['type'];\n\tamount: number;\n}\n\nfunction Action({ amount, icon, tooltipText }: ActionProps): JSX.Element | null {\n\tif (amount <= 0) return null;\n\n\treturn (\n\t\t<Tooltip content={tooltipText}>\n\t\t\t<elements.action>\n\t\t\t\t<Icon type={icon} />\n\t\t\t\t<BadgeNumber decorative value={amount} size='small' clampMax={99} />\n\t\t\t</elements.action>\n\t\t</Tooltip>\n\t);\n}\n\ninterface ArrowForMobileProps {}\n\nfunction ArrowForMobile(_: ArrowForMobileProps): JSX.Element {\n\treturn (\n\t\t<elements.arrow>\n\t\t\t<Icon type='arrowRight' />\n\t\t</elements.arrow>\n\t);\n}\n\ninterface ActionPayment {\n\treservedUntil?: CounterState;\n\tamount: number;\n}\n\nfunction ActionPayment({ amount, reservedUntil }: ActionPayment): JSX.Element | null {\n\tif (amount <= 0) return null;\n\n\treturn (\n\t\t<Stack gap={tokens.spacing.x1} direction='horizontal'>\n\t\t\t<Action icon='wallet' amount={amount} tooltipText={withTranslation('PW.Component.CaseCard.Tooltip.AwaitingPayment')} />\n\n\t\t\t{reservedUntil ? <CountDownerBadge reservedUntil={reservedUntil} /> : null}\n\t\t</Stack>\n\t);\n}\n\ninterface CountDownerProps {\n\treservedUntil: CounterState;\n}\n\nfunction CountDownerBadge({ reservedUntil }: CountDownerProps): JSX.Element {\n\tconst { time } = useCounterState(reservedUntil);\n\n\treturn (\n\t\t<BadgeText variant='warning'>\n\t\t\t{withTranslation('PW.ReservedUntil.Badge', {\n\t\t\t\tmin: time.toString(),\n\t\t\t})}\n\t\t</BadgeText>\n\t);\n}\n","import { Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport styled from 'styled-components';\n\ninterface Props {\n\tchildren?: string;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tdisplay: flex;\n\t\tmargin: 0 calc(-1 * ${tokens.spacing.x1_5}) calc(-1 * ${tokens.spacing.x2});\n\t\tpadding: ${tokens.spacing.x1} ${tokens.spacing.x1_5};\n\t\tbackground-color: ${tokens.color.bg.highlight};\n\t\tcolor: ${tokens.color.content.interactive};\n\t\tbox-sizing: content-box;\n\t`,\n};\n\nexport function BottomBanner({ children }: Props): JSX.Element | null {\n\tif (children == null) return null;\n\n\treturn (\n\t\t<elements.container>\n\t\t\t<Text variant='labelSemiBold'>{children}</Text>\n\t\t</elements.container>\n\t);\n}\n","import { useService } from '@visiba-cortex/instantiation';\nimport { useEffect, useReducer } from 'react';\nimport { UnhandledIssuesService } from './unhandled_issues.service';\n\n/**\n * Hook that taps into the UnhandledIssuesService, counting the number of issues.\n */\nexport function useTrackedIssue(trackingId: string, filterByTags?: string[]): number {\n\tconst unhandledIssuesService = useService(UnhandledIssuesService);\n\tconst [, forceUpdate] = useReducer((x) => x + 1, 0);\n\n\tuseEffect(\n\t\tfunction whenHookIsMounted() {\n\t\t\treturn unhandledIssuesService.onChange(() => {\n\t\t\t\tforceUpdate();\n\t\t\t});\n\t\t},\n\t\t[unhandledIssuesService],\n\t);\n\n\tuseEffect(\n\t\tfunction whenFilterIsChanged() {\n\t\t\tforceUpdate();\n\t\t},\n\t\t// We might need to use something like: https://github.com/kentcdodds/use-deep-compare-effect\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t\t[trackingId, ...(filterByTags ?? [])],\n\t);\n\n\treturn unhandledIssuesService.getCountByIssuesById(trackingId, filterByTags);\n}\n","import styled from 'styled-components';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { IllustrativeSelection } from './_illustrative_selection.component';\nimport { ExtensiveInfo } from './_extensive_info.component';\nimport { ComprehensiveInfo } from './_comprehensive_info.component';\nimport { BottomBanner } from './_bottom_banner.component';\nimport { CounterState } from '@application/counter';\nimport { IconProps } from '@cellula/react';\nimport { Participant, CaseType } from '@feature/cases/common';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { useTrackedIssue } from '@feature/issues/use_tracked_issue';\nimport { DateService, DateDisplayFormats } from '@application/time/date.service';\nimport { useMemo } from 'react';\nimport { Link } from 'react-router-dom';\nimport classNames from 'classnames';\n\ninterface Props {\n\tissuesTrackedBy: string;\n\tto: string;\n\tparticipants: Participant[];\n\tisSelected?: boolean;\n\treservedUntil?: CounterState;\n\tshowRfv?: string;\n\tshowLabel?: string;\n\tshownLabelIcon?: IconProps['type'];\n\tshowBannerText?: string;\n\tshowRepresentativeNiN?: string;\n\tshowTime: VisibaDate;\n\ttype: CaseType;\n\tshowReceptionName: string;\n}\n\nconst elements = {\n\tcontainer: styled(Link)`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: ${tokens.spacing.x1_5};\n\t\twidth: 100%;\n\t\tbackground: #fff;\n\t\tborder-radius: 12px;\n\t\tpadding: ${tokens.spacing.x1_5} ${tokens.spacing.x1_5} ${tokens.spacing.x2};\n\t\tposition: relative;\n\t\ttransition: box-shadow 250ms;\n\t\tbox-shadow: ${tokens.elevation.skim};\n\t\toverflow: hidden;\n\n\t\t&:hover {\n\t\t\tbox-shadow: ${tokens.elevation.lifted};\n\t\t}\n\n\t\t&.is-selected {\n\t\t\tbox-shadow: none;\n\t\t}\n\t`,\n};\n\nexport function CaseCard({\n\tto,\n\tissuesTrackedBy,\n\tisSelected,\n\tparticipants,\n\treservedUntil,\n\tshowRfv,\n\tshowTime,\n\tshowLabel,\n\tshownLabelIcon,\n\tshowBannerText,\n\tshowReceptionName,\n\tshowRepresentativeNiN,\n\ttype,\n\t...rest\n}: Props): JSX.Element {\n\tconst host = (participants[0] ?? null) as Participant | null;\n\n\tconst issuePendingPayment = useTrackedIssue(issuesTrackedBy, ['awaitPayment']);\n\tconst issueFormsNotSigned = useTrackedIssue(issuesTrackedBy, ['awaitFormResponses']);\n\tconst issueUnreadMessages = useTrackedIssue(issuesTrackedBy, ['unreadMessages']);\n\tconst showIsNew = useTrackedIssue(issuesTrackedBy, ['isNewCase']);\n\n\tconst ariaLabel = useMemo(\n\t\t() =>\n\t\t\tgetAriaLabel(\n\t\t\t\ttype,\n\t\t\t\tshowTime,\n\t\t\t\tshowRfv,\n\t\t\t\tshowReceptionName,\n\t\t\t\tissuePendingPayment > 1,\n\t\t\t\tissueFormsNotSigned,\n\t\t\t\tissueUnreadMessages,\n\t\t\t\tshowBannerText ?? null,\n\t\t\t),\n\t\t[type, showTime, showRfv, showReceptionName, issuePendingPayment, issueFormsNotSigned, issueUnreadMessages, showBannerText],\n\t);\n\n\treturn (\n\t\t<elements.container\n\t\t\taria-label={ariaLabel}\n\t\t\taria-current={isSelected ? 'true' : undefined}\n\t\t\tto={to}\n\t\t\tclassName={classNames({\n\t\t\t\t'is-selected': isSelected,\n\t\t\t})}\n\t\t\t{...rest}\n\t\t>\n\t\t\t<IllustrativeSelection isSelected={!!isSelected} />\n\t\t\t<ExtensiveInfo\n\t\t\t\thost={host}\n\t\t\t\tparticipantAmount={participants.length}\n\t\t\t\treceptionName={showReceptionName}\n\t\t\t\ttime={showTime}\n\t\t\t\trepresentativeNiN={showRepresentativeNiN}\n\t\t\t\trfv={showRfv}\n\t\t\t/>\n\t\t\t<ComprehensiveInfo\n\t\t\t\tisNew={showIsNew >= 1}\n\t\t\t\tlabel={showLabel}\n\t\t\t\tlabelIcon={shownLabelIcon}\n\t\t\t\treservedUntil={reservedUntil}\n\t\t\t\tpendingPayment={issuePendingPayment}\n\t\t\t\tunreadMessages={issueUnreadMessages}\n\t\t\t\tformsNotSigned={issueFormsNotSigned}\n\t\t\t\tstateText={host == null ? withTranslation('PW.Component.CaseCard.Waiting') : undefined}\n\t\t\t/>\n\t\t\t<BottomBanner>{showBannerText}</BottomBanner>\n\t\t</elements.container>\n\t);\n}\n\nfunction getAriaLabel(\n\ttype: CaseType,\n\ttimestamp: VisibaDate,\n\trfv: string | undefined,\n\treception: string,\n\tissuePendingPayment: boolean,\n\tissueFormsNotSigned: number,\n\tissueUnreadMessages: number,\n\tlobbyOpenBannerText: string | null,\n): string | undefined {\n\tlet typeStr: string;\n\tswitch (type) {\n\t\tcase 'video':\n\t\t\ttypeStr = lobbyOpenBannerText != null ? lobbyOpenBannerText : withTranslation('PW.Component.CaseCard.A11y.TypeAppointment');\n\t\t\tbreak;\n\t\tcase 'physical':\n\t\t\ttypeStr = withTranslation('PW.Component.CaseCard.A11y.TypePhysical');\n\t\t\tbreak;\n\t\tcase 'messaging':\n\t\t\ttypeStr = withTranslation('PW.Component.CaseCard.A11y.TypeMessaging');\n\t\t\tbreak;\n\t}\n\n\tconst paymentSection = issuePendingPayment ? withTranslation('PW.Component.CaseCard.A11y.Actions.Payment') : '';\n\n\tlet formSection = '';\n\tif (issueFormsNotSigned > 1) {\n\t\tformSection = withTranslation('PW.Component.CaseCard.A11y.Actions.AnswerForms', { formCount: issueFormsNotSigned.toString() });\n\t} else if (issueFormsNotSigned === 1) {\n\t\tformSection = withTranslation('PW.Component.CaseCard.A11y.Actions.AnswerForm');\n\t}\n\n\tlet messageSection = '';\n\tif (issueUnreadMessages > 1) {\n\t\tmessageSection = withTranslation('PW.Component.CaseCard.A11y.Actions.NewMessages', {\n\t\t\tmessagesCount: issueUnreadMessages.toString(),\n\t\t});\n\t} else if (issueUnreadMessages === 1) {\n\t\tmessageSection = withTranslation('PW.Component.CaseCard.A11y.Actions.NewMessage');\n\t}\n\n\treturn `${typeStr} ${timestamp.format(\n\t\tDateService.getLocaleSpecificDateFormatTemplate(\n\t\t\ttimestamp.year() !== DateService.newDate().year()\n\t\t\t\t? DateDisplayFormats.DEFAULT\n\t\t\t\t: DateDisplayFormats.FULL_DISPLAY_NO_CURRENT_YEAR_AND_WEEKDAY,\n\t\t),\n\t)}. ${\n\t\trfv != null\n\t\t\t? withTranslation('PW.Component.CaseCard.A11y.RFV', {\n\t\t\t\t\trfvList: rfv,\n\t\t\t\t})\n\t\t\t: reception\n\t} ${paymentSection} ${formSection} ${messageSection}`;\n}\n","import styled from 'styled-components';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { EmptyState as EmptyStateLocal } from './_empty_state.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { Flex, Stack, Spacer, DialogAlert, Text } from '@cellula/react';\nimport { Shimmer } from '@component/new_shimmer.component';\nimport { CounterState, useCounterState } from '../../application/counter';\nimport { Fragment, useEffect, useState } from 'react';\nimport { AppointmentCaseModel } from '@feature/cases/case_appointment_model';\nimport { MessagingCaseModel } from '@feature/cases/case_messaging_model';\nimport { CaseModelShared } from '@feature/cases/case_model_shared';\nimport { CaseCard } from '@component/case_card/case_card.component';\nimport type { CasesCollection } from './view_patient_cases.controller';\n\ninterface Props {\n\tcaseCollection: CasesCollection | null;\n\tvalue: string;\n\tselectedCase?: CaseModelShared;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t`,\n\tcardLabelContainer: styled.div`\n\t\tpadding-left: ${tokens.spacing.x2};\n\t\twidth: 100%;\n\t\tmargin-bottom: ${tokens.spacing.x1};\n\t`,\n\tcardLabelText: styled(Text.h2)`\n\t\tfont: ${tokens.text.heading.xSmall};\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tfont: ${tokens.text.label.largeSemiBold};\n\t\t}\n\t`,\n\tsection: styled.ul`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: ${tokens.spacing.x1};\n\t\tpadding: 0;\n\t`,\n};\n\nexport function CaseList({ caseCollection, selectedCase, value }: Props): JSX.Element {\n\tconst selectedCaseIdentifier = selectedCase?.getIdentifier();\n\n\tif (caseCollection == null) return <Skeleton />;\n\n\treturn (\n\t\t<elements.container>\n\t\t\t<elements.cardLabelContainer>\n\t\t\t\t<elements.cardLabelText variant='headingSmall'>\n\t\t\t\t\t{withTranslation('PW.Component.Visits.CaseList.Title.Appointments')}\n\t\t\t\t</elements.cardLabelText>\n\t\t\t</elements.cardLabelContainer>\n\n\t\t\t{caseCollection.appointmentCases.length > 0 ? (\n\t\t\t\t<elements.section>\n\t\t\t\t\t{caseCollection.appointmentCases.map(($case) => {\n\t\t\t\t\t\tconst data = $case.get();\n\n\t\t\t\t\t\tconst isSelected = data.ticket === selectedCaseIdentifier;\n\t\t\t\t\t\tconst isPhysical = data.type === 'physical';\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<Fragment key={data.ticket}>\n\t\t\t\t\t\t\t\t{data.reservedUntil ? <ReservedUntilDialogAlert reservedUntil={data.reservedUntil} model={$case} /> : null}\n\n\t\t\t\t\t\t\t\t<Flex as='li'>\n\t\t\t\t\t\t\t\t\t<CaseCard\n\t\t\t\t\t\t\t\t\t\tissuesTrackedBy={AppointmentCaseModel.APPOINTMENT_UNHANDLED_ISSUES_TRACKING_ID_PREFIX + data.ticket}\n\t\t\t\t\t\t\t\t\t\tto={`./video/${data.ticket}`}\n\t\t\t\t\t\t\t\t\t\tisSelected={isSelected}\n\t\t\t\t\t\t\t\t\t\tparticipants={data.participants}\n\t\t\t\t\t\t\t\t\t\treservedUntil={data.reservedUntil ?? undefined}\n\t\t\t\t\t\t\t\t\t\tshowReceptionName={data.receptionName}\n\t\t\t\t\t\t\t\t\t\tshowTime={data.date}\n\t\t\t\t\t\t\t\t\t\tshowBannerText={\n\t\t\t\t\t\t\t\t\t\t\tdata.lobbyIsOpen && !data.completed && !isPhysical\n\t\t\t\t\t\t\t\t\t\t\t\t? withTranslation('PW.Component.CaseCard.LobbyIsOpen')\n\t\t\t\t\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tshowRfv={data.rfv ?? undefined}\n\t\t\t\t\t\t\t\t\t\tshowRepresentativeNiN={data.representative?.for}\n\t\t\t\t\t\t\t\t\t\ttype={data.type}\n\t\t\t\t\t\t\t\t\t\tshowLabel={\n\t\t\t\t\t\t\t\t\t\t\tisPhysical\n\t\t\t\t\t\t\t\t\t\t\t\t? withTranslation('PW.Component.CaseCard.Label.Physical')\n\t\t\t\t\t\t\t\t\t\t\t\t: withTranslation('PW.Component.CaseCard.Label.Video')\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tshownLabelIcon={data.type === 'video' ? 'video' : 'pinMark'}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</elements.section>\n\t\t\t) : (\n\t\t\t\t<EmptyStateLocal>\n\t\t\t\t\t{value === 'tab1'\n\t\t\t\t\t\t? withTranslation('PW.Component.Visits.CaseList.NoOngoingAppointments')\n\t\t\t\t\t\t: withTranslation('PW.Component.Visits.CaseList.NoCompletedAppointments')}\n\t\t\t\t</EmptyStateLocal>\n\t\t\t)}\n\n\t\t\t<Spacer vertical={tokens.spacing.x4} />\n\n\t\t\t<elements.cardLabelContainer>\n\t\t\t\t<elements.cardLabelText variant='labelLargeSemiBold'>\n\t\t\t\t\t{withTranslation('PW.Component.Visits.CaseList.Title.Messages')}\n\t\t\t\t</elements.cardLabelText>\n\t\t\t</elements.cardLabelContainer>\n\n\t\t\t{caseCollection.messagingCases.length > 0 ? (\n\t\t\t\t<elements.section>\n\t\t\t\t\t{caseCollection.messagingCases.map(($case) => {\n\t\t\t\t\t\tconst data = $case.get();\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<Flex key={data.id} as='li'>\n\t\t\t\t\t\t\t\t<CaseCard\n\t\t\t\t\t\t\t\t\tissuesTrackedBy={MessagingCaseModel.MESSAGE_UNHANDLED_ISSUES_TRACKING_ID_PREFIX + data.id}\n\t\t\t\t\t\t\t\t\tto={`./message/${data.id}`}\n\t\t\t\t\t\t\t\t\tisSelected={data.id === selectedCaseIdentifier}\n\t\t\t\t\t\t\t\t\tparticipants={data.participants}\n\t\t\t\t\t\t\t\t\tshowReceptionName={data.receptionName}\n\t\t\t\t\t\t\t\t\ttype='messaging'\n\t\t\t\t\t\t\t\t\tshowTime={data.date}\n\t\t\t\t\t\t\t\t\tshowRfv={data.rfv ?? undefined}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</elements.section>\n\t\t\t) : (\n\t\t\t\t<EmptyStateLocal>\n\t\t\t\t\t{value === 'tab1'\n\t\t\t\t\t\t? withTranslation('PW.Component.Visits.CaseList.NoOngoingMessageConversations')\n\t\t\t\t\t\t: withTranslation('PW.Component.Visits.CaseList.NoCompletedMessageConversations')}\n\t\t\t\t</EmptyStateLocal>\n\t\t\t)}\n\t\t</elements.container>\n\t);\n}\n\ninterface ReservedUntilDialogAlertProps {\n\treservedUntil: CounterState;\n\tmodel: AppointmentCaseModel;\n}\n\nfunction ReservedUntilDialogAlert({ reservedUntil, model }: ReservedUntilDialogAlertProps): JSX.Element {\n\tconst [isOpen, setIsOpen] = useState(false);\n\tconst { hasElapse, hasBeenTriggeredExternally } = useCounterState(reservedUntil);\n\n\tfunction handleAbort(): void {\n\t\tsetIsOpen(false);\n\t\tconst [state, disposer] = reservedUntil;\n\n\t\tstate.write({ hasBeenTriggeredExternally: true });\n\t\tdisposer();\n\n\t\tmodel.remove();\n\t}\n\n\tuseEffect(\n\t\tfunction whenHasElapseChanges() {\n\t\t\tif (hasBeenTriggeredExternally === true) return;\n\n\t\t\tsetIsOpen(hasElapse);\n\t\t},\n\t\t[hasElapse, hasBeenTriggeredExternally],\n\t);\n\n\treturn (\n\t\t<DialogAlert\n\t\t\tabortText={withTranslation('Common.Button.Close')}\n\t\t\tisOpen={isOpen}\n\t\t\theader={withTranslation('PW.ReservedUntil.Dialog.Title')}\n\t\t\tdescription={withTranslation('PW.ReservedUntil.Dialog.Description')}\n\t\t\tonAbort={handleAbort}\n\t\t/>\n\t);\n}\n\nfunction Skeleton() {\n\treturn (\n\t\t<Stack gap={tokens.spacing.x2}>\n\t\t\t<Stack gap={tokens.spacing.x1}>\n\t\t\t\t<Spacer horizontal={tokens.spacing.x2}>\n\t\t\t\t\t<Shimmer width={50} height={24} />\n\t\t\t\t</Spacer>\n\t\t\t\t<Shimmer width='100%' height={100} cornerRadius={16} opacity={0.5} />\n\t\t\t</Stack>\n\t\t\t<Stack gap={tokens.spacing.x1}>\n\t\t\t\t<Spacer horizontal={tokens.spacing.x2}>\n\t\t\t\t\t<Shimmer width={50} height={24} opacity={0.35} />\n\t\t\t\t</Spacer>\n\t\t\t\t<Shimmer width='100%' height={100} cornerRadius={16} opacity={0.2} />\n\t\t\t</Stack>\n\t\t</Stack>\n\t);\n}\n","import { useResolve } from '@visiba-cortex/instantiation';\nimport { usePresentation } from '@visiba-cortex/presentation';\nimport { CasesCollection, VisitsController } from './view_patient_cases.controller';\nimport { useParams } from 'react-router';\nimport { CaseList } from './_case_list.component';\nimport { AppointmentCaseModel } from '@feature/cases/case_appointment_model';\nimport { MessagingCaseModel } from '@feature/cases/case_messaging_model';\n\nexport function ActivatedTab(props: { tab: 'tab1' | 'tab2' }) {\n\tconst controller = useResolve(VisitsController);\n\tconst state = usePresentation(controller.presentation);\n\tconst caseCollection = props.tab === 'tab1' ? state.ongoingCases : state.completedCases;\n\n\tconst selectedCase = useSelectedCase(caseCollection);\n\n\treturn <CaseList caseCollection={caseCollection} selectedCase={selectedCase} value={props.tab} />;\n}\n\nfunction useSelectedCase(caseCollection: Nullable<CasesCollection>) {\n\tconst { '*': wildcard } = useParams();\n\tconst [type, identifier] = (wildcard ?? '').split('/');\n\tlet caseModel: AppointmentCaseModel | MessagingCaseModel | undefined = undefined;\n\tif (type === 'video') {\n\t\tcaseModel = caseCollection?.appointmentCases.find((appointmentCase) => appointmentCase.get().ticket === identifier);\n\t} else if (type === 'message') {\n\t\tcaseModel = caseCollection?.messagingCases.find((messageCase) => messageCase.get().id === identifier);\n\t}\n\n\treturn caseModel;\n}\n","import { withTranslation } from '@application/i18n/with_translation';\nimport { Flex, Button, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Auth } from '@feature/auth/auth.component';\nimport { EmptyState } from './_empty_state.component';\n\nexport function SignInEmptyState() {\n\treturn (\n\t\t<EmptyState>\n\t\t\t<Flex align='center' gap={tokens.size.x2}>\n\t\t\t\t<Flex gap={tokens.size.x1}>\n\t\t\t\t\t<Text.h2 variant='headingSmall'>{withTranslation('PW.Component.Visits.NoAuth.Title')}</Text.h2>\n\t\t\t\t\t<Text.p variant='bodyRegular'>{withTranslation('PW.Component.Visits.NoAuth.Description')}</Text.p>\n\t\t\t\t</Flex>\n\t\t\t\t<Auth.SignInSheet returnUrl='/' trigger={<Button variant='primary'>{withTranslation('Common.Button.SignIn')}</Button>} />\n\t\t\t</Flex>\n\t\t</EmptyState>\n\t);\n}\n","import { PropsWithChildren } from 'react';\nimport { TabNavigation, BadgeNumber, Flex, Bleed } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { useCountedIssues } from '@feature/issues/use_counted_issues';\nimport * as ScrollArea from '@radix-ui/react-scroll-area';\nimport { ActivatedTab } from './activated_tab.component';\nimport { useUser } from '@application/authentication/use_user';\nimport { SignInEmptyState } from './_sign_in_empty_state.component';\n\nexport function ListRoot(props: PropsWithChildren) {\n\tconst ongoingIssues = useCountedIssues(['ongoing']);\n\tconst completedIssues = useCountedIssues(['completed']);\n\tconst user = useUser();\n\n\treturn (\n\t\t<Flex\n\t\t\tgap={tokens.size.x3}\n\t\t\tstyle={{\n\t\t\t\twidth: '100%',\n\t\t\t\tmargin: `${tokens.size.x4} auto`,\n\t\t\t\tpadding: `0 ${tokens.size.x2}`,\n\t\t\t}}\n\t\t>\n\t\t\t{props.children}\n\n\t\t\t{user == null ? <SignInEmptyState /> : null}\n\n\t\t\t<Bleed bleedAmount='8px'>\n\t\t\t\t<ScrollArea.Root\n\t\t\t\t\tstyle={\n\t\t\t\t\t\t/* A bit of a hack to get the tab bar to function */\n\t\t\t\t\t\tuser == null\n\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\tdisplay: 'none',\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t}\n\t\t\t\t>\n\t\t\t\t\t<ScrollArea.Viewport\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t\t\tpadding: `0 ${tokens.size.x1} ${tokens.size.x4}`,\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<TabNavigation.Content\n\t\t\t\t\t\t\tdisabled={user == null}\n\t\t\t\t\t\t\tlabel={withTranslation('PW.Component.Visits.TabBar.Ongoing')}\n\t\t\t\t\t\t\thiddenLabel={\n\t\t\t\t\t\t\t\tongoingIssues === 0\n\t\t\t\t\t\t\t\t\t? withTranslation('PW.Component.Visits.TabBar.Ongoing.A11y')\n\t\t\t\t\t\t\t\t\t: withTranslation(\n\t\t\t\t\t\t\t\t\t\t\tongoingIssues > 1\n\t\t\t\t\t\t\t\t\t\t\t\t? 'PW.Component.Visits.TabBar.Ongoing.A11y.WithIssues'\n\t\t\t\t\t\t\t\t\t\t\t\t: 'PW.Component.Visits.TabBar.Ongoing.A11y.WithIssue',\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tnotifications: ongoingIssues.toString(),\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvalue='tab1'\n\t\t\t\t\t\t\ttrailingSlot={ongoingIssues !== 0 ? <BadgeNumber value={ongoingIssues} decorative /> : null}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<ActivatedTab tab='tab1' />\n\t\t\t\t\t\t</TabNavigation.Content>\n\t\t\t\t\t\t<TabNavigation.Content\n\t\t\t\t\t\t\tdisabled={user == null}\n\t\t\t\t\t\t\tlabel={withTranslation('PW.Component.Visits.TabBar.Completed')}\n\t\t\t\t\t\t\thiddenLabel={\n\t\t\t\t\t\t\t\tcompletedIssues === 0\n\t\t\t\t\t\t\t\t\t? withTranslation('PW.Component.Visits.TabBar.Completed.A11y')\n\t\t\t\t\t\t\t\t\t: withTranslation(\n\t\t\t\t\t\t\t\t\t\t\tcompletedIssues > 1\n\t\t\t\t\t\t\t\t\t\t\t\t? 'PW.Component.Visits.TabBar.Completed.A11y.WithIssues'\n\t\t\t\t\t\t\t\t\t\t\t\t: 'PW.Component.Visits.TabBar.Completed.A11y.WithIssue',\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tnotifications: completedIssues.toString(),\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvalue='tab2'\n\t\t\t\t\t\t\ttrailingSlot={completedIssues !== 0 ? <BadgeNumber value={completedIssues} decorative /> : null}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<ActivatedTab tab='tab2' />\n\t\t\t\t\t\t</TabNavigation.Content>\n\t\t\t\t\t</ScrollArea.Viewport>\n\t\t\t\t</ScrollArea.Root>\n\t\t\t</Bleed>\n\t\t</Flex>\n\t);\n}\n","import { TabNavigation, Bleed } from '@cellula/react';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { AnalyticCategories } from '@application/analytic/analytic.service';\nimport { Title } from '@component/title.component';\n\nexport function Heading(props: { bleed?: boolean }) {\n\tconst analyticCtx = useAnalyticContext();\n\n\tfunction analyticQuirk_handleTabClick(value: string): void {\n\t\tanalyticCtx.trackEvent(\n\t\t\tAnalyticCategories.Visits,\n\t\t\tvalue === 'tab1' ? 'Clicked: Ongoing cases-tab' : 'Clicked: Completed cases-tab',\n\t\t);\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<Title title={withTranslation('PW.Component.Visits.Title')} />\n\n\t\t\t<Bleed bleedAmount={props.bleed === false ? '0px' : '8px'}>\n\t\t\t\t<TabNavigation.Bar label={withTranslation('PW.Component.Visits.TabBar.Label')} onClick={analyticQuirk_handleTabClick} />\n\t\t\t</Bleed>\n\t\t</>\n\t);\n}\n","import { withTranslation } from '@application/i18n/with_translation';\nimport { Button, Flex, IconButton, Text, DropdownMenu, useBreakpoint, BreakPoints } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport styled from 'styled-components';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { RouterService } from '@cortex-shim/router.service';\nimport { useWindowSize } from '@visiba/react-std';\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: space-between;\n\t\tpadding: ${tokens.spacing.x2};\n\t\theight: 56px;\n\t\tbackground-color: ${tokens.color.bg.surface};\n\t\tborder-bottom: 1px solid ${tokens.color.border.muted};\n\t\tword-wrap: break-word;\n\t\tword-break: break-all;\n\t\tgap: ${tokens.spacing.x2};\n\n\t\t.side-section {\n\t\t\tflex-shrink: 0;\n\t\t\tmin-width: 140px;\n\n\t\t\t* {\n\t\t\t\tword-break: keep-all;\n\t\t\t\twhite-space: nowrap;\n\t\t\t\tflex-shrink: 0;\n\t\t\t}\n\t\t}\n\n\t\t&[data-extra-small-screen] {\n\t\t\tpadding-left: ${tokens.spacing.x1};\n\n\t\t\t.side-section {\n\t\t\t\tmin-width: 24px;\n\t\t\t}\n\t\t}\n\t`,\n};\n\ninterface Props {\n\tto?: string;\n\ttitle?: string;\n\tanalyticAction: string;\n\tactions?: { label: string; onSelect: () => void }[];\n}\n\nexport function ViewNavBar({ to, analyticAction, title, actions }: Props): JSX.Element {\n\tconst routerService = useResolve(RouterService);\n\tconst analytic = useAnalyticContext();\n\tconst { width: windowWidth } = useWindowSize();\n\tconst isExtraSmallScreen = windowWidth && windowWidth < 440;\n\tconst isMobile = useBreakpoint(BreakPoints.Small);\n\n\tfunction handleBackClick() {\n\t\tif (!to) {\n\t\t\treturn;\n\t\t}\n\n\t\tanalytic.trackEvent(analyticAction);\n\t\trouterService.navigateByUrl(to);\n\t}\n\n\treturn (\n\t\t<elements.container data-extra-small-screen={isExtraSmallScreen || undefined}>\n\t\t\t<Flex align='start' className='side-section'>\n\t\t\t\t{to != null ? (\n\t\t\t\t\t<>\n\t\t\t\t\t\t{isMobile ? (\n\t\t\t\t\t\t\tisExtraSmallScreen ? (\n\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\tvariant='interactive'\n\t\t\t\t\t\t\t\t\tsize='small'\n\t\t\t\t\t\t\t\t\ticon='arrowLeft'\n\t\t\t\t\t\t\t\t\tonClick={handleBackClick}\n\t\t\t\t\t\t\t\t\ttext={withTranslation('PW.Component.Visits.Title')}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<Button variant='ghost' size='xSmall' icon='arrowLeft' onClick={handleBackClick}>\n\t\t\t\t\t\t\t\t\t{withTranslation('PW.Component.Visits.Title')}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t</>\n\t\t\t\t) : null}\n\t\t\t</Flex>\n\t\t\t<Flex grow={1}>\n\t\t\t\t<Text\n\t\t\t\t\tvariant='labelSmallRegular'\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tcolor: tokens.color.content.muted,\n\t\t\t\t\t\ttextAlign: 'center',\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{title}\n\t\t\t\t</Text>\n\t\t\t</Flex>\n\t\t\t<Flex align='end' className='side-section'>\n\t\t\t\t{actions ? (\n\t\t\t\t\t<DropdownMenu.Root\n\t\t\t\t\t\ttrigger={\n\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\ticon='ellipsisVertical'\n\t\t\t\t\t\t\t\tsize='small'\n\t\t\t\t\t\t\t\ttext={withTranslation('PW.Component.Visits.MessagingInfo.MenuTooltip')}\n\t\t\t\t\t\t\t\tvariant='interactive'\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t{actions.map((action) => (\n\t\t\t\t\t\t\t<DropdownMenu.Item key={action.label} onSelect={action.onSelect}>\n\t\t\t\t\t\t\t\t{action.label}\n\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</DropdownMenu.Root>\n\t\t\t\t) : (\n\t\t\t\t\t<div />\n\t\t\t\t)}\n\t\t\t</Flex>\n\t\t</elements.container>\n\t);\n}\n","import { Fragment, useRef, useEffect } from 'react';\nimport * as Portal from '@radix-ui/react-portal';\nimport styled from 'styled-components';\nimport { useScreenContext } from './use_screen.context';\nimport { useCellulaProviderContext } from '@cellula/react';\n\ninterface Props {\n\troute: string;\n\tchildren: React.ReactNode | React.ReactNode[];\n\tcanBeActivated?: boolean;\n\tisActivated?: boolean;\n}\n\nconst StyledPortal = styled(Portal.Root)`\n\tdisplay: flex;\n\tflex-direction: column;\n\tmin-height: 100%;\n\tposition: relative;\n\ttop: 0;\n\twidth: 100%;\n\theight: 100%;\n`;\n\nexport function Screen({ children, canBeActivated = true, isActivated, route }: Props): JSX.Element | null {\n\tconst { active, screens, protectedScreens, activate, dismiss } = useScreenContext();\n\n\tuseEffect(\n\t\tfunction whenIsActivatedIsChanged() {\n\t\t\tif (isActivated) {\n\t\t\t\tscreens.add(route);\n\t\t\t\tactivate(route);\n\t\t\t}\n\t\t},\n\t\t[isActivated, screens, activate, route],\n\t);\n\n\tuseEffect(\n\t\tfunction whenComponentUnmounts() {\n\t\t\treturn () => {\n\t\t\t\tif (isActivated) {\n\t\t\t\t\tdismiss();\n\t\t\t\t}\n\t\t\t};\n\t\t},\n\t\t[isActivated, dismiss],\n\t);\n\n\tuseEffect(\n\t\tfunction whenRoutePropIsChanged() {\n\t\t\tscreens.add(route);\n\n\t\t\treturn () => {\n\t\t\t\tscreens.delete(route);\n\t\t\t};\n\t\t},\n\t\t[route, screens],\n\t);\n\n\tuseEffect(\n\t\tfunction whenCanBeActivatedPropIsChanged() {\n\t\t\tif (!canBeActivated) {\n\t\t\t\tprotectedScreens.add(route);\n\t\t\t} else {\n\t\t\t\tprotectedScreens.delete(route);\n\t\t\t}\n\n\t\t\treturn () => {\n\t\t\t\tprotectedScreens.delete(route);\n\t\t\t};\n\t\t},\n\t\t[canBeActivated, protectedScreens, route],\n\t);\n\n\tif (active !== route) {\n\t\treturn null;\n\t}\n\n\tif (canBeActivated) {\n\t\treturn <ActivatedScreen>{children}</ActivatedScreen>;\n\t}\n\n\treturn <Fragment>{children}</Fragment>;\n}\n\ninterface ActivatedScreenProps {\n\tchildren: React.ReactNode | React.ReactNode[];\n}\n\nfunction ActivatedScreen({ children }: ActivatedScreenProps): JSX.Element {\n\tconst ref = useRef<HTMLDivElement>((document.getElementById('root') ?? document.getElementById('app')) as HTMLDivElement);\n\tconst cellulaContext = useCellulaProviderContext();\n\tconst { target } = useScreenContext();\n\n\treturn (\n\t\t<StyledPortal data-cellula-id={target != null ? cellulaContext.cellulaId : undefined} container={ref.current}>\n\t\t\t{children}\n\t\t</StyledPortal>\n\t);\n}\n","import styled from 'styled-components';\nimport { FormCard } from '@feature/dynamic_form/form_card.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { Divider, Icon, IconProps, Flex, Spacer, Stack, Box, FileViewer, Text } from '@cellula/react';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport { Fragment, ReactNode } from 'react';\nimport { Shimmer } from '@component/new_shimmer.component';\nimport { AttachedFile } from '@feature/file_manager/attached_file.component';\nimport { BreakPoints, useBreakpoint } from '@cellula/react';\nimport type { AppointmentData, MetaData } from '@feature/cases/case_appointment_model';\n\n// TODO: Needs other data structures\ntype MergedData = AppointmentData & MetaData;\n\ninterface Props {\n\tdata: MergedData | null;\n}\n\nconst elements = {\n\thideWhenDesktop: styled.div`\n\t\tdisplay: contents;\n\n\t\t${tokens.breakpointQuery.small} {\n\t\t\tdisplay: none;\n\t\t}\n\t`,\n\tphysicalLocationImage: styled.div`\n\t\twidth: 100%;\n\t\tmin-height: 192px;\n\t\toverflow: hidden;\n\t\tbackground: ${primitiveColorTokens.neutral[200]};\n\t\tborder-radius: ${tokens.borderRadius.medium};\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\n\t\timg {\n\t\t\twidth: 100%;\n\t\t}\n\t`,\n\tinformation: styled.div`\n\t\twidth: 100%;\n\t\tborder: 1px solid ${tokens.color.border.default};\n\t\tgap: ${tokens.spacing.x1};\n\t\tdisplay: flex;\n\t\tpadding: ${tokens.spacing.x1_5};\n\t\tborder-radius: ${tokens.borderRadius.medium};\n\t`,\n\treceiptLink: styled.a`\n\t\tcolor: ${tokens.color.bg.interactive};\n\t`,\n};\n\nexport function InfoViewAppointmentDetails({ data }: Props): JSX.Element | null {\n\tconst _mobileBreakpoint = useBreakpoint(BreakPoints.Small);\n\n\treturn (\n\t\t<Flex\n\t\t\tfluid='horizontal'\n\t\t\tgap={tokens.spacing.x2_5}\n\t\t\tbreakpointMediumAndUp={{\n\t\t\t\tdirection: 'row',\n\t\t\t}}\n\t\t>\n\t\t\t<Flex\n\t\t\t\tgrow={1}\n\t\t\t\tshrink={0}\n\t\t\t\tbasis='unset'\n\t\t\t\trole='group'\n\t\t\t\taria-describedby='appointmentInfo'\n\t\t\t\tbreakpointSmallAndUp={{\n\t\t\t\t\tbasis: '50%',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<LeftSection data={data} />\n\t\t\t</Flex>\n\n\t\t\t<elements.hideWhenDesktop>\n\t\t\t\t<Divider decorative />\n\t\t\t</elements.hideWhenDesktop>\n\n\t\t\t<Flex\n\t\t\t\tgrow={1}\n\t\t\t\tbasis='unset'\n\t\t\t\tbreakpointSmallAndUp={{\n\t\t\t\t\tbasis: '50%',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<RightSection data={data} />\n\t\t\t</Flex>\n\t\t</Flex>\n\t);\n}\n\nfunction shouldShowPayment(data: MergedData | null): [shouldShowPaymentSection: boolean, isPayed: boolean] {\n\tif (data == null || data.payment == null || data.payment.State === 'Expired') return [false, false];\n\n\tif (data.reservedUntil != null) {\n\t\treturn [true, false];\n\t}\n\n\treturn [true, data.payment?.State === 'Paid'];\n}\n\nfunction LeftSection({ data }: { data: MergedData | null }): JSX.Element | null {\n\tconst isPhysical = data?.type === 'physical';\n\tconst [showPaymentSection, isPayed] = shouldShowPayment(data);\n\n\t// TODO: Research how we can do skeleton loading better\n\tconst content =\n\t\tdata != null ? (\n\t\t\t<Fragment>\n\t\t\t\t<Text id='appointmentInfo' variant='bodySemiBold'>\n\t\t\t\t\t{withTranslation('PW.Component.Visits.AppointmentInfo.Title.AppointmentInformation')}\n\t\t\t\t</Text>\n\t\t\t\t{data.representative != null ? (\n\t\t\t\t\t<Stack gap={tokens.spacing.x1} direction='horizontal'>\n\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\tvariant='labelSemiBold'\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tcolor: tokens.color.content.default,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{withTranslation('PW.Component.Visits.AppointmentInfo.RepresentativeFor')}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\tvariant='labelRegular'\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tcolor: tokens.color.content.default,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{data.representative?.for}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t</Stack>\n\t\t\t\t) : null}\n\n\t\t\t\t<Row icon='calendar'>{data.day}</Row>\n\t\t\t\t<Row icon='clock'>{data.time}</Row>\n\t\t\t\t{data.type === 'video' ? <Row icon='video'>{withTranslation('PW.Component.Visits.AppointmentInfo.Video')}</Row> : null}\n\t\t\t\t<Row icon='house'>{data.receptionName}</Row>\n\n\t\t\t\t{showPaymentSection ? (\n\t\t\t\t\tisPayed ? (\n\t\t\t\t\t\t<Flex asChild>\n\t\t\t\t\t\t\t<Stack direction='horizontal' gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t\t<Row icon='wallet'>{data.price?.Formatted ?? ''}</Row>\n\t\t\t\t\t\t\t\t{data.payment?.ReceiptUrl != null ? (\n\t\t\t\t\t\t\t\t\t<elements.receiptLink href={data.payment.ReceiptUrl} target='_blank' rel='noreferrer'>\n\t\t\t\t\t\t\t\t\t\t{withTranslation('PW.Component.Visits.AppointmentInfo.Payment.ShowReceipt')}\n\t\t\t\t\t\t\t\t\t</elements.receiptLink>\n\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t</Stack>\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<Row icon='wallet' color={tokens.color.danger.contentMuted}>\n\t\t\t\t\t\t\t{withTranslation('PW.Component.Visits.AppointmentInfo.Payment.NotPaid', {\n\t\t\t\t\t\t\t\tvalue: data.price?.Formatted ?? '',\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</Row>\n\t\t\t\t\t)\n\t\t\t\t) : null}\n\n\t\t\t\t{isPhysical && data.physicalLocation ? (\n\t\t\t\t\t<Row icon='pinMark' topLeading={true}>\n\t\t\t\t\t\t<Box gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t{data.physicalLocation.locationName}\n\t\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t\t{data.physicalLocation.address}\n\t\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t\t{data.physicalLocation.postalCode}\n\t\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t\t{data.physicalLocation.city}\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t{data.physicalLocation.imageUrl ? (\n\t\t\t\t\t\t\t\t<elements.physicalLocationImage aria-hidden>\n\t\t\t\t\t\t\t\t\t<img src={data.physicalLocation.imageUrl} alt='' />\n\t\t\t\t\t\t\t\t</elements.physicalLocationImage>\n\t\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t\t{data.physicalLocation.locationDescription ? (\n\t\t\t\t\t\t\t\t<elements.information>\n\t\t\t\t\t\t\t\t\t<Icon type='infoCircle' />\n\t\t\t\t\t\t\t\t\t<Text variant='bodySmallRegular'>{data.physicalLocation.locationDescription}</Text>\n\t\t\t\t\t\t\t\t</elements.information>\n\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t</Row>\n\t\t\t\t) : null}\n\t\t\t</Fragment>\n\t\t) : (\n\t\t\t<Fragment>\n\t\t\t\t<Shimmer height={16} width={200} />\n\t\t\t\t<Stack gap={tokens.spacing.x1} direction='horizontal'>\n\t\t\t\t\t<Shimmer height={24} width={24} cornerRadius={24} />\n\t\t\t\t\t<Shimmer height={16} width={100} />\n\t\t\t\t</Stack>\n\t\t\t\t<Stack gap={tokens.spacing.x1} direction='horizontal'>\n\t\t\t\t\t<Shimmer height={24} width={24} cornerRadius={24} />\n\t\t\t\t\t<Shimmer height={16} width={100} />\n\t\t\t\t</Stack>\n\t\t\t\t<Stack gap={tokens.spacing.x1} direction='horizontal'>\n\t\t\t\t\t<Shimmer height={24} width={24} cornerRadius={24} />\n\t\t\t\t\t<Shimmer height={16} width={100} />\n\t\t\t\t</Stack>\n\t\t\t\t<Stack gap={tokens.spacing.x1} direction='horizontal'>\n\t\t\t\t\t<Shimmer height={24} width={24} cornerRadius={24} />\n\t\t\t\t\t<Shimmer height={16} width={100} />\n\t\t\t\t</Stack>\n\t\t\t</Fragment>\n\t\t);\n\n\treturn <Stack gap={tokens.spacing.x1_5}>{content}</Stack>;\n}\n\nfunction RightSection({ data }: { data: MergedData | null }): JSX.Element | null {\n\tconst forms =\n\t\tdata?.forms\n\t\t\t.filterForms({\n\t\t\t\tcompleted: true,\n\t\t\t})\n\t\t\t.map((formWorker) => <FormCard analyticAction='Opened answered form' key={formWorker.formId} formWorker={formWorker} />) ?? [];\n\n\tconst files = data?.files.map((fileWorker) => <AttachedFile key={fileWorker.id} worker={fileWorker} />) ?? [];\n\n\t// TODO: Research how we can do skeleton loading better\n\tconst content =\n\t\tdata != null ? (\n\t\t\t<Fragment>\n\t\t\t\t{data.rfv ? (\n\t\t\t\t\t<Flex>\n\t\t\t\t\t\t<Text variant='bodySemiBold'>{withTranslation('PW.Component.Visits.AppointmentInfo.Title.ReasonForVisit')}</Text>\n\t\t\t\t\t\t<Text variant='bodyRegular'>{data.rfv}</Text>\n\t\t\t\t\t</Flex>\n\t\t\t\t) : null}\n\n\t\t\t\t<Flex>\n\t\t\t\t\t<Text variant='bodySemiBold'>{withTranslation('PW.Component.Visits.AppointmentInfo.Title.CaseDescription')}</Text>\n\t\t\t\t\t<Text variant='bodyRegular'>{data.reason}</Text>\n\t\t\t\t</Flex>\n\n\t\t\t\t{files.length > 0 ? (\n\t\t\t\t\t<FileViewer.Root>\n\t\t\t\t\t\t<Stack gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t<Text variant='bodySemiBold'>{withTranslation('PW.Component.Visits.AppointmentInfo.Title.AttachedFiles')}</Text>\n\t\t\t\t\t\t\t{files}\n\t\t\t\t\t\t</Stack>\n\t\t\t\t\t</FileViewer.Root>\n\t\t\t\t) : null}\n\n\t\t\t\t{forms.length > 0 ? (\n\t\t\t\t\t<Stack gap={tokens.spacing.x1}>\n\t\t\t\t\t\t<Text variant='bodySemiBold'>{withTranslation('PW.Component.Visits.AppointmentInfo.Title.SentForms')}</Text>\n\t\t\t\t\t\t{forms}\n\t\t\t\t\t</Stack>\n\t\t\t\t) : null}\n\t\t\t</Fragment>\n\t\t) : (\n\t\t\t<Fragment>\n\t\t\t\t<Stack gap='8px'>\n\t\t\t\t\t<Shimmer height={16} width={200} />\n\t\t\t\t\t<Shimmer height={16} width={90} />\n\t\t\t\t</Stack>\n\t\t\t\t<Stack gap='8px'>\n\t\t\t\t\t<Shimmer height={16} width={200} />\n\t\t\t\t\t<Shimmer height={16} width={150} />\n\t\t\t\t</Stack>\n\t\t\t\t<Stack gap='8px'>\n\t\t\t\t\t<Shimmer height={16} width={100} />\n\t\t\t\t</Stack>\n\t\t\t\t<Stack gap='8px'>\n\t\t\t\t\t<Shimmer height={16} width={80} />\n\t\t\t\t</Stack>\n\t\t\t</Fragment>\n\t\t);\n\n\treturn <Stack gap={tokens.spacing.x2}>{content}</Stack>;\n}\n\ninterface RowProps {\n\ticon: IconProps['type'];\n\tchildren: ReactNode;\n\ttopLeading?: boolean;\n\tcolor?: string;\n}\n\nfunction Row({ icon, children, topLeading, color }: RowProps): JSX.Element {\n\treturn (\n\t\t<Text variant='labelRegular' color={color ?? tokens.color.content.default}>\n\t\t\t<Flex align={topLeading ? 'flex-start' : 'center'} direction='row'>\n\t\t\t\t<Icon type={icon} />\n\t\t\t\t<Spacer horizontal={tokens.spacing.x1} />\n\t\t\t\t{children}\n\t\t\t</Flex>\n\t\t</Text>\n\t);\n}\n","import { Button, Sheet } from '@cellula/react';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { Payment } from './payment.component';\nimport { forwardRef, HTMLAttributes, MouseEvent, Ref } from 'react';\nimport { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { PaymentContextProvider, usePaymentContext } from './_payment.context';\nimport type { AttemptData } from './payment.controller';\n\ninterface Props {\n\tbillId: number;\n\tpaymentAmount: string;\n\tanalyticAction: string;\n\tissueTrackingId?: string;\n\tonSuccess?: (data: AttemptData) => void;\n}\n\nexport function PaymentCard(props: Props): JSX.Element {\n\treturn (\n\t\t<PaymentContextProvider>\n\t\t\t<PaymentCardInner {...props} />\n\t\t</PaymentContextProvider>\n\t);\n}\n\nfunction PaymentCardInner({ paymentAmount, billId, issueTrackingId, analyticAction, onSuccess }: Props): JSX.Element {\n\tconst { controller } = usePaymentContext();\n\n\treturn (\n\t\t<Sheet ref={controller.createRefBridge()} trigger={<Trigger analyticAction={analyticAction} />}>\n\t\t\t<Payment billId={billId} paymentAmount={paymentAmount} onSuccess={onSuccess} issueTrackingId={issueTrackingId} />\n\t\t</Sheet>\n\t);\n}\n\ninterface TriggerProps extends HTMLAttributes<HTMLButtonElement> {\n\tanalyticAction: string;\n}\n\nfunction _Trigger({ analyticAction, onClick, ...rest }: TriggerProps, ref: Ref<HTMLButtonElement>): JSX.Element {\n\tconst analyticCtx = useAnalyticContext();\n\n\tfunction handleClick(event: MouseEvent<HTMLButtonElement>): void {\n\t\tanalyticCtx.trackEvent(analyticAction);\n\n\t\tif (onClick != null) {\n\t\t\tonClick(event);\n\t\t}\n\t}\n\n\treturn (\n\t\t<Button ref={ref} size='medium' variant='primary' onClick={handleClick} icon='wallet' {...rest}>\n\t\t\t{withTranslation('PW.Component.Visits.BeforeAppointment.Button.Pay')}\n\t\t</Button>\n\t);\n}\nconst Trigger = forwardRef(_Trigger);\n","import { FormCard } from '@feature/dynamic_form/form_card.component';\nimport { PaymentCard } from '@feature/payment/payment_card.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { Divider, Bleed, Box, Flex, Stack, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { FormOpportunity } from '@api_patient/generated/clientv2/models/form-opportunity';\nimport { AppointmentCaseModel, AppointmentData, MetaData } from '@feature/cases/case_appointment_model';\nimport type { AttemptData } from '@feature/payment/payment.controller';\n\n// TODO: Needs other data structures\ntype MergedData = AppointmentData & MetaData;\n\ninterface Props {\n\tdata: MergedData | null;\n\tmodel: AppointmentCaseModel;\n}\n\nexport function InfoViewAppointmentUnhandledActions({ data, model }: Props): JSX.Element | null {\n\tconst isUnpaid = data?.payment?.State === 'Unpaid';\n\tconst forms =\n\t\tdata?.forms\n\t\t\t.filterForms({\n\t\t\t\tcompleted: false,\n\t\t\t\topportunity: !data.completed ? FormOpportunity.BeforeBooking : [FormOpportunity.BeforeBooking, FormOpportunity.AfterBooking],\n\t\t\t})\n\t\t\t.map((formWorker) => <FormCard analyticAction='Clicked to answer form' key={formWorker.formId} formWorker={formWorker} />) ?? [];\n\n\tconst paymentIsFinished = !isUnpaid;\n\tconst formsAreFinished = forms.length === 0;\n\n\tfunction handlePaymentSuccess(data: AttemptData): void {\n\t\tmodel.markAsPayed(data);\n\t}\n\n\tif (paymentIsFinished && formsAreFinished) {\n\t\treturn <Divider offset={tokens.size.x1_5} decorative />;\n\t}\n\n\treturn (\n\t\t<Bleed bleedAmount='32px' asChild>\n\t\t\t<Box background={tokens.color.bg.surfaceBrand} horizontalPadding={tokens.spacing.x4} verticalPadding={tokens.spacing.x3}>\n\t\t\t\t<Stack gap={tokens.spacing.x2}>\n\t\t\t\t\t<Text variant='labelLargeSemiBold'>{withTranslation('PW.Component.Visits.BeforeAppointment.Title')}</Text>\n\n\t\t\t\t\t<Stack asChild gap={tokens.spacing.x2}>\n\t\t\t\t\t\t<Flex\n\t\t\t\t\t\t\tfluid\n\t\t\t\t\t\t\tbreakpointMediumAndUp={{\n\t\t\t\t\t\t\t\tdirection: 'row',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{isUnpaid ? (\n\t\t\t\t\t\t\t\t<Flex\n\t\t\t\t\t\t\t\t\tgrow={1}\n\t\t\t\t\t\t\t\t\tbasis='50%'\n\t\t\t\t\t\t\t\t\tshrink={0}\n\t\t\t\t\t\t\t\t\tjustify='flex-start'\n\t\t\t\t\t\t\t\t\tasChild\n\t\t\t\t\t\t\t\t\tbreakpointSmallAndUp={{\n\t\t\t\t\t\t\t\t\t\talign: 'flex-start',\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Stack gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t\t\t\t<Text variant='labelSemiBold'>\n\t\t\t\t\t\t\t\t\t\t\t{withTranslation('PW.Component.Visits.BeforeAppointment.Payment', {\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: data.price?.Formatted ?? '',\n\t\t\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t\t\t</Text>\n\n\t\t\t\t\t\t\t\t\t\t<PaymentCard\n\t\t\t\t\t\t\t\t\t\t\tanalyticAction='Clicked: Pay for appointment'\n\t\t\t\t\t\t\t\t\t\t\tpaymentAmount={data.price?.Formatted ?? ''}\n\t\t\t\t\t\t\t\t\t\t\tbillId={data.payment.BillId}\n\t\t\t\t\t\t\t\t\t\t\tissueTrackingId={AppointmentCaseModel.APPOINTMENT_UNHANDLED_ISSUES_TRACKING_ID_PREFIX + data.ticket}\n\t\t\t\t\t\t\t\t\t\t\tonSuccess={handlePaymentSuccess}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</Stack>\n\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t\t{forms.length > 0 ? (\n\t\t\t\t\t\t\t\t<Flex grow={1} basis='50%' shrink={0} asChild>\n\t\t\t\t\t\t\t\t\t<Stack gap={tokens.spacing.x1}>\n\t\t\t\t\t\t\t\t\t\t<Text variant='labelSemiBold'>{withTranslation('PW.Component.Visits.AppointmentInfo.UnsubmittedForms')}:</Text>\n\t\t\t\t\t\t\t\t\t\t{forms}\n\t\t\t\t\t\t\t\t\t</Stack>\n\t\t\t\t\t\t\t\t</Flex>\n\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</Stack>\n\t\t\t\t</Stack>\n\t\t\t</Box>\n\t\t</Bleed>\n\t);\n}\n","import { withTranslation } from '@application/i18n/with_translation';\nimport { Avatar, Box, Flex, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\n\ninterface Props {\n\tname?: string | null;\n\timageSrc?: string | null;\n\ttitle?: string | null;\n}\n\nexport function ContactItem({ imageSrc, name, title }: Props): JSX.Element {\n\treturn (\n\t\t<Box\n\t\t\tas='li'\n\t\t\tgap={tokens.spacing.x1_5}\n\t\t\tdirection='row'\n\t\t\tstyle={{\n\t\t\t\tminHeight: '40px',\n\t\t\t}}\n\t\t>\n\t\t\t<Avatar name={name ?? ''} src={imageSrc} />\n\t\t\t<Flex>\n\t\t\t\t{name != null ? (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<Text variant='labelSemiBold'>{name ?? 'anonym'}</Text> {/* TODO: what to write when depersonalized? */}\n\t\t\t\t\t\t{title != null ? <Text variant='labelSmallRegular'>{title}</Text> : null}\n\t\t\t\t\t</>\n\t\t\t\t) : (\n\t\t\t\t\t<Text variant='labelSmallRegular'>{withTranslation('PW.Component.Visits.AppointmentInfo.CallWith.Guest')}</Text>\n\t\t\t\t)}\n\t\t\t</Flex>\n\t\t</Box>\n\t);\n}\n","import { Shimmer } from '@component/new_shimmer.component';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { AppointmentData, MetaData } from '@feature/cases/case_appointment_model';\nimport { Flex, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport styled from 'styled-components';\nimport { ContactItem } from '../_contact_item.component';\n\n// TODO: Needs other data structures\ntype MergedData = AppointmentData & MetaData;\n\ninterface Props {\n\tdata: MergedData | null;\n}\n\nconst elements = {\n\tgrid: styled.div`\n\t\tdisplay: grid;\n\t\tgrid-template: repeat(1, 1fr) / repeat(1, 1fr);\n\t\tgap: ${tokens.spacing.x2_5};\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tgrid-template: repeat(1, 1fr) / repeat(3, 1fr);\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t`,\n};\n\nexport function InfoViewAppointmentParticipant({ data }: Props): JSX.Element | null {\n\treturn (\n\t\t<Flex gap={tokens.size.x2_5} fluid='horizontal'>\n\t\t\t<Text variant='labelLargeSemiBold'>\n\t\t\t\t{withTranslation(\n\t\t\t\t\tdata?.type == 'physical'\n\t\t\t\t\t\t? 'PW.Component.Visits.AppointmentInfo.Title.MeetingWith'\n\t\t\t\t\t\t: 'PW.Component.Visits.AppointmentInfo.Title.CallWith',\n\t\t\t\t)}\n\t\t\t</Text>\n\t\t\t{data?.participants != null ? (\n\t\t\t\t<elements.grid>\n\t\t\t\t\t{data.participants.map((participant) => (\n\t\t\t\t\t\t<ContactItem\n\t\t\t\t\t\t\tkey={`${participant.name}-${participant.title}`}\n\t\t\t\t\t\t\tname={participant.name}\n\t\t\t\t\t\t\ttitle={participant.title}\n\t\t\t\t\t\t\timageSrc={participant.profileImageUrl}\n\t\t\t\t\t\t/>\n\t\t\t\t\t))}\n\t\t\t\t</elements.grid>\n\t\t\t) : (\n\t\t\t\t<Shimmer height={40} width={40} cornerRadius={20} />\n\t\t\t)}\n\t\t</Flex>\n\t);\n}\n","import { useAnalyticContext } from '@application/analytic/analytic_link/mod';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { AppointmentCaseModel, AppointmentData, MetaData } from '@feature/cases/mod';\nimport { Button, Tooltip, DialogAlert, Text, useBreakpoint, BreakPoints, Flex } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { forwardRef, HTMLAttributes, MouseEvent, ReactNode, Ref } from 'react';\nimport { useNavigate } from 'react-router';\nimport styled from 'styled-components';\nimport { useVonageEncryptionWarning, VonageEncryptionWarning } from '@component/vonage_encryption_warning/mod';\n\n// TODO: Needs other data structures\ntype MergedData = AppointmentData & MetaData;\n\ninterface Props {\n\tdata: MergedData | null;\n\tmodel: AppointmentCaseModel;\n}\n\nconst elements = {\n\touterContainer: styled.div`\n\t\twidth: 100%;\n\t\tdisplay: flex;\n\t\tflex: 1;\n\t\tflex-direction: column;\n\t\tjustify-content: end;\n\n\t\t--primary-action-padding: 0px;\n\t\t--lobby-not-open-info-padding: 0px;\n\t\t--vonage-encryption-warning-padding: 0px;\n\n\t\tpadding-bottom: calc(\n\t\t\tvar(--primary-action-padding) + var(--lobby-not-open-info-padding) + var(--vonage-encryption-warning-padding)\n\t\t);\n\n\t\t&[data-has-primary-action='true'] {\n\t\t\t--primary-action-padding: 80px;\n\t\t}\n\n\t\t&[data-has-lobby-not-open-info='true'] {\n\t\t\t--has-lobby-not-open-info-padding: 40px;\n\t\t}\n\n\t\t&[data-has-vonage-encryption-warning='true'] {\n\t\t\t--vonage-encryption-warning-padding: 120px;\n\t\t}\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tcontainer: appointment-container / inline-size;\n\t\t\tpadding-bottom: 0;\n\t\t}\n\t`,\n\tgroup: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: ${tokens.spacing.x2};\n\n\t\t@container appointment-container (min-width: 500px) {\n\t\t\tborder-top: 1px solid ${tokens.color.border.default};\n\t\t\tgap: ${tokens.spacing.x2};\n\t\t\tpadding-top: ${tokens.spacing.x2};\n\t\t}\n\t`,\n\tinnerContainer: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: ${tokens.spacing.x2};\n\n\t\t@container appointment-container (min-width: 500px) {\n\t\t\tflex-direction: row;\n\t\t\talign-items: flex-start;\n\t\t\tgap: ${tokens.spacing.x2};\n\t\t\tjustify-content: space-between;\n\t\t}\n\t`,\n\tprimaryAction: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\ttext-align: center;\n\t\tgap: ${tokens.spacing.x1};\n\n\t\t@container appointment-container (min-width: 500px) {\n\t\t\ttext-align: right;\n\t\t\talign-items: flex-end;\n\t\t\torder: 1;\n\t\t\tflex-shrink: 0;\n\t\t}\n\n\t\t@media screen and (max-width: 599px) {\n\t\t}\n\t`,\n\tcancelAction: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tborder-top: 1px solid ${tokens.color.border.default};\n\t\tpadding-top: ${tokens.spacing.x2};\n\n\t\t@container appointment-container (min-width: 500px) {\n\t\t\tpadding: 0;\n\t\t\tborder: none;\n\t\t\torder: 0;\n\t\t\tflex-shrink: 0;\n\t\t}\n\t`,\n\tfixed: styled(Flex)`\n\t\tposition: fixed;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\tbackground: ${tokens.color.bg.surface};\n\t\tpadding: ${tokens.spacing.x2};\n\t\tbox-shadow: ${tokens.elevation.floating};\n\t`,\n};\n\nexport function InfoViewAppointmentActions({ data: _data, model }: Props): JSX.Element | null {\n\tconst { hasEncryptionSupport } = useVonageEncryptionWarning();\n\tconst isMediumDeviceAndAbove = useBreakpoint(BreakPoints.Medium | BreakPoints.Large);\n\n\tif (_data == null || _data.completed) return null;\n\tconst data = _data; // Reassigning this to make it available for \"handleJoinCallButtonClick\"'s scope.\n\n\tconst isPhysical = data.type === 'physical';\n\tconst showLobbyNotOpenInfo = !isPhysical && !data.lobbyIsOpen;\n\tconst showPrimaryAction = data.type === 'video' && data.link != null;\n\n\treturn (\n\t\t<elements.outerContainer\n\t\t\tdata-has-primary-action={showPrimaryAction}\n\t\t\tdata-has-lobby-not-open-info={showLobbyNotOpenInfo}\n\t\t\tdata-has-vonage-encryption-warning={!hasEncryptionSupport}\n\t\t>\n\t\t\t{isMediumDeviceAndAbove ? (\n\t\t\t\t<elements.group>\n\t\t\t\t\t{data.vonageEncryptionRequired ? <VonageEncryptionWarning /> : null}\n\t\t\t\t\t<elements.innerContainer>\n\t\t\t\t\t\t<PrimaryAction data={data} showLobbyNotOpenInfo={showLobbyNotOpenInfo} hasEncryptionSupport={hasEncryptionSupport} />\n\t\t\t\t\t\t<CancelAction model={model} data={data} />\n\t\t\t\t\t</elements.innerContainer>\n\t\t\t\t</elements.group>\n\t\t\t) : (\n\t\t\t\t<>\n\t\t\t\t\t<elements.innerContainer>\n\t\t\t\t\t\t<CancelAction model={model} data={data} />\n\t\t\t\t\t</elements.innerContainer>\n\t\t\t\t\t<elements.fixed gap={tokens.spacing.x2}>\n\t\t\t\t\t\t{data.vonageEncryptionRequired ? <VonageEncryptionWarning /> : null}\n\t\t\t\t\t\t<PrimaryAction data={data} showLobbyNotOpenInfo={showLobbyNotOpenInfo} hasEncryptionSupport={hasEncryptionSupport} />\n\t\t\t\t\t</elements.fixed>\n\t\t\t\t</>\n\t\t\t)}\n\t\t</elements.outerContainer>\n\t);\n}\nfunction PrimaryAction({\n\tdata,\n\tshowLobbyNotOpenInfo,\n\thasEncryptionSupport,\n}: {\n\tdata: MergedData;\n\tshowLobbyNotOpenInfo: boolean;\n\thasEncryptionSupport: boolean;\n}) {\n\tconst navigate = useNavigate();\n\tconst callButtonIsDisabled = !data.lobbyIsOpen || (data.vonageEncryptionRequired && !hasEncryptionSupport);\n\n\tfunction handleJoinCallButtonClick(): void {\n\t\tif (data.link == null) return;\n\n\t\tnavigate(data.link);\n\t}\n\n\treturn (\n\t\t<elements.primaryAction>\n\t\t\t<Button\n\t\t\t\tsize='medium'\n\t\t\t\tvariant='primary'\n\t\t\t\ticon='video'\n\t\t\t\tonClick={handleJoinCallButtonClick}\n\t\t\t\tdisabled={callButtonIsDisabled}\n\t\t\t\tdisabledText={withTranslation('PW.Component.Visits.AppointmentInfo.LobbyNotOpenInfo')}\n\t\t\t>\n\t\t\t\t{withTranslation('PW.Component.Visits.AppointmentInfo.Button.JoinCall')}\n\t\t\t</Button>\n\t\t\t{showLobbyNotOpenInfo ? (\n\t\t\t\t<Text variant='labelSmallRegular' color={tokens.color.content.default}>\n\t\t\t\t\t{withTranslation('PW.Component.Visits.AppointmentInfo.LobbyNotOpenInfo')}\n\t\t\t\t</Text>\n\t\t\t) : null}\n\t\t</elements.primaryAction>\n\t);\n}\n\nfunction CancelAction({ model, data }: { model: AppointmentCaseModel; data: MergedData }): JSX.Element {\n\tconst analyticCtx = useAnalyticContext();\n\tconst isMultiPartCall = data.participants.length > 1;\n\n\tfunction analyticQuirk_handleModalAlertAbort(): void {\n\t\tanalyticCtx.trackEvent('Backed out of cancellation dialog');\n\t}\n\n\tfunction analyticQuirkProxyEvent_handleModalAlertAbort(): Promise<void> {\n\t\tanalyticCtx.trackEvent('Confirmed cancellation of appointment');\n\n\t\treturn model.cancelAppointment();\n\t}\n\n\treturn (\n\t\t<elements.cancelAction>\n\t\t\t<DialogAlert\n\t\t\t\theader={withTranslation('PW.Component.Visits.AppointmentInfo.CancelCall.Title')}\n\t\t\t\tdescription={withTranslation('PW.Component.Visits.AppointmentInfo.CancelCall.Description')}\n\t\t\t\tabortText={withTranslation('PW.Component.Visits.AppointmentInfo.CancelCall.Abort')}\n\t\t\t\tsuccessText={withTranslation('PW.Component.Visits.AppointmentInfo.CancelCall.Success')}\n\t\t\t\tonSuccess={analyticQuirkProxyEvent_handleModalAlertAbort}\n\t\t\t\tonAbort={analyticQuirk_handleModalAlertAbort}\n\t\t\t\ttrigger={\n\t\t\t\t\t<DialogAlertTrigger cancelable={data.cancelable} analyticAction='Opened cancel appointment dialog'>\n\t\t\t\t\t\t{withTranslation(\n\t\t\t\t\t\t\tisMultiPartCall\n\t\t\t\t\t\t\t\t? 'PW.Component.Visits.AppointmentInfo.Button.DeclineAppointment'\n\t\t\t\t\t\t\t\t: 'PW.Component.Visits.AppointmentInfo.Button.CancelAppointment',\n\t\t\t\t\t\t)}\n\t\t\t\t\t</DialogAlertTrigger>\n\t\t\t\t}\n\t\t\t/>\n\t\t</elements.cancelAction>\n\t);\n}\n\ninterface DialogAlertTriggerProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'aria-label'> {\n\tchildren: ReactNode;\n\tanalyticAction: string;\n\tcancelable: boolean;\n}\nfunction _DialogAlertTrigger(\n\t{ analyticAction, children, onClick, cancelable, ...rest }: DialogAlertTriggerProps,\n\tref: Ref<HTMLButtonElement>,\n): JSX.Element {\n\tconst analyticCtx = useAnalyticContext();\n\n\tfunction handleClick(event: MouseEvent<HTMLButtonElement>): void {\n\t\tif (onClick != null) {\n\t\t\tonClick(event);\n\t\t}\n\n\t\t// TODO: Make useAnalyticContext return a function wrapping queueMicrotask,\n\t\t// can't have events bloating up the main thread.\n\t\tqueueMicrotask(() => {\n\t\t\tanalyticCtx.trackEvent(analyticAction);\n\t\t});\n\t}\n\n\tconst disabledText = withTranslation('PW.Component.Visits.AppointmentInfo.CannotCancel');\n\n\treturn (\n\t\t<Tooltip content={cancelable ? null : disabledText}>\n\t\t\t<Button\n\t\t\t\tref={ref}\n\t\t\t\tsize='medium'\n\t\t\t\tvariant='ghost'\n\t\t\t\tdisabled={!cancelable}\n\t\t\t\tdisabledText={disabledText}\n\t\t\t\tonClick={handleClick}\n\t\t\t\ticon='calendarX'\n\t\t\t\t{...rest}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</Button>\n\t\t</Tooltip>\n\t);\n}\nconst DialogAlertTrigger = forwardRef(_DialogAlertTrigger);\n","import styled from 'styled-components';\nimport { Box, SafeArea, Flex, NotificationAlert, AutoFocus, VisuallyHidden } from '@cellula/react';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport { ViewNavBar } from '@component/view_nav_bar.component';\nimport { usePresentation } from '@visiba-cortex/presentation';\nimport { useEffect } from 'react';\nimport { DateDisplayFormats, DateService } from '@application/time/date.service';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { Screen } from '@component/screen/screen.component';\nimport { InfoViewAppointmentDetails } from './_info_view_appointment_details.component';\nimport { InfoViewAppointmentUnhandledActions } from './_info_view_appointment_unhandled_actions.component';\nimport { InfoViewAppointmentParticipant } from './_info_view_appointment_participants.component';\nimport { InfoViewAppointmentActions } from './_info_view_appointment_actions.component';\nimport { AnalyticProvider } from '@application/analytic/analytic_link/mod';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { CounterState, useCounterState } from '@application/counter';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { BreakPoints, useBreakpoint } from '@cellula/react';\nimport type { AppointmentCaseModel } from '@feature/cases/mod';\n\ninterface Props {\n\tmodel: AppointmentCaseModel;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tbackground-color: ${tokens.color.bg.surface};\n\t\twidth: 100%;\n\t\toverflow-x: hidden;\n\t\toverflow-y: auto;\n\t\tmax-width: 100vw;\n\t\tmargin-top: 40px;\n\t\tmin-height: calc(100% - 40px);\n\t\tpadding: ${tokens.spacing.x5} 0;\n\t`,\n\thideWhenDesktop: styled.div`\n\t\tdisplay: contents;\n\n\t\t${tokens.breakpointQuery.small} {\n\t\t\tdisplay: none;\n\t\t}\n\t`,\n\thideWhenMobile: styled.div`\n\t\tdisplay: none;\n\n\t\t${tokens.breakpointQuery.small} {\n\t\t\tdisplay: contents;\n\t\t}\n\t`,\n\tnavBarWrapper: styled.div`\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\theight: 40px;\n\t\twidth: 100%;\n\t\tz-index: 1;\n\t`,\n\tphysicalLocationImage: styled.div`\n\t\twidth: 100%;\n\t\tmin-height: 192px;\n\t\toverflow: hidden;\n\t\tbackground: ${primitiveColorTokens.neutral[200]};\n\t\tborder-radius: ${tokens.borderRadius.medium};\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\n\t\timg {\n\t\t\twidth: 100%;\n\t\t}\n\t`,\n\tinformation: styled.div`\n\t\twidth: 100%;\n\t\tborder: 1px solid ${tokens.color.border.default};\n\t\tgap: ${tokens.spacing.x1};\n\t\tdisplay: flex;\n\t\tpadding: ${tokens.spacing.x1_5};\n\t\tborder-radius: ${tokens.borderRadius.medium};\n\t`,\n};\n\nexport function InfoViewAppointment({ model }: Props): JSX.Element {\n\tconst presentation = usePresentation(model.presentation);\n\tconst dateService = useService(DateService);\n\tconst analyticService = useService(AnalyticService);\n\tconst mobileBreakpoint = useBreakpoint(BreakPoints.Small);\n\n\tconst data = model.get();\n\n\tuseEffect(\n\t\tfunction analyticQuirk_whenComponentMounts() {\n\t\t\tanalyticService.trackPageView({ customTitle: 'My Cases-Appointment' });\n\t\t},\n\t\t[analyticService],\n\t);\n\n\tuseEffect(\n\t\tfunction whenComponentMounts() {\n\t\t\tmodel.updateExtendedData();\n\t\t\tmodel.markAsSeen();\n\t\t\tmodel.analyticQuirk_trackOnMountInVisitsView();\n\t\t},\n\t\t[model],\n\t);\n\n\tconst workableData =\n\t\tdata != null && presentation.metaData != null\n\t\t\t? {\n\t\t\t\t\t...data,\n\t\t\t\t\t...presentation.metaData,\n\t\t\t\t}\n\t\t\t: null;\n\n\treturn (\n\t\t<AnalyticProvider category={AnalyticCategories.VisitsAppointment}>\n\t\t\t<Screen route='infoViewAppointment' canBeActivated={mobileBreakpoint} isActivated>\n\t\t\t\t<AutoFocus key={data.ticket /* Key here to get React to invalidate the v-dom diff. Forcing a rerender of this component */}>\n\t\t\t\t\t<VisuallyHidden>\n\t\t\t\t\t\t<h1>{withTranslation('PW.Component.Visits.AppointmentInfo.A11y.Title')}</h1>\n\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t</AutoFocus>\n\n\t\t\t\t<elements.container>\n\t\t\t\t\t<SafeArea asChild horizontalPadding={mobileBreakpoint ? undefined : tokens.spacing.x4}>\n\t\t\t\t\t\t<Flex\n\t\t\t\t\t\t\tgap={tokens.spacing.x2_5}\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tminHeight: '100%',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{data.reservedUntil ? <CountDownerNotificationAlert reservedUntil={data.reservedUntil} /> : null}\n\t\t\t\t\t\t\t<InfoViewAppointmentDetails data={workableData} />\n\t\t\t\t\t\t\t<InfoViewAppointmentUnhandledActions data={workableData} model={model} />\n\t\t\t\t\t\t\t<InfoViewAppointmentParticipant data={workableData} />\n\t\t\t\t\t\t\t<InfoViewAppointmentActions data={workableData} model={model} />\n\t\t\t\t\t\t</Flex>\n\t\t\t\t\t</SafeArea>\n\t\t\t\t</elements.container>\n\n\t\t\t\t<elements.navBarWrapper>\n\t\t\t\t\t<ViewNavBar\n\t\t\t\t\t\tto='../../'\n\t\t\t\t\t\tanalyticAction='Clicked go to My cases-back arrow'\n\t\t\t\t\t\ttitle={data.date.format(\n\t\t\t\t\t\t\tdateService.getLocaleSpecificDateFormatTemplate(DateDisplayFormats.FULL_DISPLAY_IN_CURRENT_YEAR_NO_WEEKDAY),\n\t\t\t\t\t\t)}\n\t\t\t\t\t/>\n\t\t\t\t</elements.navBarWrapper>\n\t\t\t</Screen>\n\t\t</AnalyticProvider>\n\t);\n}\n\ninterface CountDownerProps {\n\treservedUntil: CounterState;\n}\n\nfunction CountDownerNotificationAlert({ reservedUntil }: CountDownerProps): JSX.Element {\n\tconst { time } = useCounterState(reservedUntil);\n\n\treturn (\n\t\t<Box>\n\t\t\t<NotificationAlert variant='warning'>\n\t\t\t\t{withTranslation('PW.ReservedUntil.NotificationAlert', {\n\t\t\t\t\tmin: time.toString(),\n\t\t\t\t})}\n\t\t\t</NotificationAlert>\n\t\t</Box>\n\t);\n}\n","import { useResolve } from '@visiba-cortex/instantiation';\nimport { usePresentation } from '@visiba-cortex/presentation';\nimport { PresentationModel, VisitsController } from './view_patient_cases.controller';\nimport { useParams } from 'react-router';\nimport { ViewNotFound } from '@view/view_not_found/view_not_found_route.component';\nimport { InfoViewAppointment } from './_info_view_appointment/info_view_appointment.component';\n\nexport function SelectedAppointmentCase() {\n\tconst params = useParams<'callticket'>();\n\tconst controller = useResolve(VisitsController);\n\tconst presentation = usePresentation(controller.presentation);\n\tconst c = params.callticket != null ? getAppointmentCase(presentation, params.callticket) : null;\n\n\tif (c == null) return <ViewNotFound />;\n\n\treturn <InfoViewAppointment model={c} />;\n}\n\nfunction getAppointmentCase(presentation: Readonly<PresentationModel>, id: string) {\n\tif (presentation.completedCases == null || presentation.ongoingCases == null) return null;\n\n\tconst cases = [...presentation.completedCases.appointmentCases, ...presentation.ongoingCases.appointmentCases];\n\tconst c = cases.find((c) => c.getIdentifier() === id);\n\n\treturn c ?? null;\n}\n","import styled from 'styled-components';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Chat } from '@feature/chat/mod';\nimport { ChatCommunicatorProtocol, ParsedMessage } from '@feature/chat/chat_communicator_protocol';\nimport { ViewNavBar } from '@component/view_nav_bar.component';\nimport { Screen } from '@component/screen/screen.component';\nimport { useEffect, useRef } from 'react';\nimport { usePresentation } from '@visiba-cortex/presentation';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { Text, VisuallyHidden } from '@cellula/react';\nimport { DateDisplayFormats, DateService } from '@application/time/date.service';\nimport { MessagingCaseModel, MessagingData, CaseService } from '@feature/cases/mod';\nimport { withTranslation } from '@application/i18n/with_translation';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { BreakPoints, useBreakpoint } from '@cellula/react';\nimport { AnalyticLink, AnalyticProvider } from '@application/analytic/analytic_link/mod';\nimport { SocketMessagesApiModel } from '@api_patient/models/SocketMessagesApiModel';\nimport type { SocketController } from '@visiba-cortex/axon';\nimport type { MessagingMetaData } from '@feature/cases/case_messaging_model';\n\nclass VisitsChatCommunicator implements ChatCommunicatorProtocol {\n\tpublic readonly analyticCategory = AnalyticCategories.Visits;\n\n\tpublic readonly topics = Object.freeze({\n\t\tgetHistory: 'getmessages',\n\t\tretrieveMessages: 'messages',\n\t\tsendMessage: 'sendmessage',\n\t});\n\n\tpublic readonly fileUploadDispositionUri = 'client/v2/userfiles';\n\n\t// Set to null to initialize socket instead.\n\tpublic readonly controllerInstance = null;\n\n\tconstructor(public readonly connectionId: string) {\n\t\t// Empty\n\t}\n\n\tisValidSession(response: SocketMessagesApiModel): boolean {\n\t\treturn this.connectionId === response.caseId.toString();\n\t}\n\n\tgetHistory(controllerInstance: SocketController, callback: (data: unknown) => void): void {\n\t\tcontrollerInstance.invoke(\n\t\t\tthis.topics.getHistory,\n\t\t\t{\n\t\t\t\tcaseId: this.connectionId,\n\t\t\t},\n\t\t\t(response: SocketMessagesApiModel) => {\n\t\t\t\tcallback(response);\n\t\t\t},\n\t\t);\n\t}\n\n\tparseIncomingMessages(response: SocketMessagesApiModel): ParsedMessage[] {\n\t\treturn response.data;\n\t}\n\n\tparseOutgoingMessage(message: string | null, fileTickets: string[]): Record<string, unknown> {\n\t\treturn {\n\t\t\tcaseId: this.connectionId,\n\t\t\ttext: message ?? '',\n\t\t\tfileTickets: fileTickets,\n\t\t\ttextFormat: 'Plaintext',\n\t\t};\n\t}\n}\n\ninterface Props {\n\tmodel: MessagingCaseModel;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tbackground-color: ${tokens.color.bg.surface};\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow-x: hidden;\n\t\tposition: relative;\n\t`,\n\tnavBarWrapper: styled.div`\n\t\tposition: fixed;\n\t\ttop: 0;\n\t\twidth: 100%;\n\t\tz-index: 1;\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tposition: static;\n\t\t}\n\t`,\n\thiddenNavBarGoBackLink: styled(AnalyticLink)`\n\t\tposition: absolute;\n\t\ttop: ${tokens.spacing.x1};\n\t\tleft: ${tokens.spacing.x1};\n\t\topacity: 0;\n\t\tz-index: -999;\n\n\t\t&:focus {\n\t\t\topacity: 1;\n\t\t\tz-index: 0;\n\t\t}\n\t`,\n};\n\nexport function InfoViewMessaging({ model }: Props): JSX.Element {\n\tconst shouldUseScreen = useBreakpoint(BreakPoints.Small);\n\n\treturn (\n\t\t<AnalyticProvider category={AnalyticCategories.VisitsChat}>\n\t\t\t<Screen route='infoViewMessaging' canBeActivated={shouldUseScreen} isActivated>\n\t\t\t\t<Inner model={model} />\n\t\t\t</Screen>\n\t\t</AnalyticProvider>\n\t);\n}\n\nfunction Inner({ model }: Props): JSX.Element {\n\tconst data = model.get();\n\n\tconst chatCommunicatorRef = useRef<VisitsChatCommunicator>();\n\tif (chatCommunicatorRef.current == null || chatCommunicatorRef.current.connectionId !== data.id) {\n\t\tchatCommunicatorRef.current = new VisitsChatCommunicator(data.id);\n\t}\n\n\tconst ref = useRef<HTMLDivElement>(null);\n\n\tconst presentation = usePresentation(model.presentation);\n\tconst caseService = useService(CaseService);\n\tconst dateService = useService(DateService);\n\tconst analyticService = useService(AnalyticService);\n\n\tuseEffect(\n\t\tfunction analyticQuirk_whenComponentMounts() {\n\t\t\tanalyticService.trackPageView({ customTitle: 'My Cases-Messaging' });\n\t\t},\n\t\t[analyticService],\n\t);\n\n\tuseEffect(\n\t\tfunction whenComponentMounts() {\n\t\t\tmodel.analyticQuirk_trackOnMountInVisitsView();\n\t\t\tmodel.updateExtendedData();\n\t\t},\n\t\t[model],\n\t);\n\n\tfunction handleMarkAsCompleted(): void {\n\t\tmodel.markAsCompleted(dateService.newDate());\n\t}\n\n\tfunction handleReceivedHistory(): void {\n\t\tmodel.markAsRead();\n\t\tcaseService.updateSync();\n\t}\n\n\treturn (\n\t\t<elements.container role='region' aria-labelledby='infoViewMessageTitle' ref={ref}>\n\t\t\t<VisuallyHidden key={data.id /* Key here to get React to invalidate the v-dom diff. Forcing a rerender of this component */}>\n\t\t\t\t<h1 id='infoViewMessageTitle'>{withTranslation('PW.Component.Visits.MessagingInfo.A11y.Region')}</h1>\n\t\t\t</VisuallyHidden>\n\t\t\t<Chat\n\t\t\t\tcommunicator={chatCommunicatorRef.current}\n\t\t\t\tissuesTrackedById={MessagingCaseModel.MESSAGE_UNHANDLED_ISSUES_TRACKING_ID_PREFIX + data.id}\n\t\t\t\tonMarkAsCompleted={handleMarkAsCompleted}\n\t\t\t\tonReceivedHistory={handleReceivedHistory}\n\t\t\t\tisReadyToJoin={presentation.metaData != null}\n\t\t\t\tconnectedId={data.id}\n\t\t\t\tforceHideActions={data.completed || !presentation.metaData?.allowClientResponse || !!presentation.metaData.completedTimestamp}\n\t\t\t\thasReadUntilData={presentation.metaData?.hasReadUntilTimestamp}\n\t\t\t\theader={<NavBar data={data} metaData={presentation.metaData} />}\n\t\t\t\tshowTopBanner={\n\t\t\t\t\t<Text variant='labelXSmallRegular' style={{ color: tokens.color.content.muted }}>\n\t\t\t\t\t\t{withTranslation('PW.Component.Visits.MessagingInfo.CaseStarted', {\n\t\t\t\t\t\t\tdateTime: data.date.format(\n\t\t\t\t\t\t\t\tDateService.getLocaleSpecificDateFormatTemplate(DateDisplayFormats.FULL_DISPLAY_IN_CURRENT_YEAR_NO_WEEKDAY),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t})}\n\t\t\t\t\t</Text>\n\t\t\t\t}\n\t\t\t\tshowBottomBanner={\n\t\t\t\t\tpresentation.metaData?.completedTimestamp != null ? (\n\t\t\t\t\t\t<Text variant='labelXSmallRegular' style={{ color: tokens.color.content.muted }}>\n\t\t\t\t\t\t\t{withTranslation('PW.Component.Visits.MessagingInfo.CaseCompleted', {\n\t\t\t\t\t\t\t\tdateTime: presentation.metaData.completedTimestamp.format(\n\t\t\t\t\t\t\t\t\tdateService.getLocaleSpecificDateFormatTemplate(DateDisplayFormats.FULL_DISPLAY_IN_CURRENT_YEAR_NO_WEEKDAY),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t) : !presentation.metaData?.allowClientResponse ? (\n\t\t\t\t\t\t<Text variant='labelXSmallRegular' style={{ color: tokens.color.content.muted }}>\n\t\t\t\t\t\t\t{withTranslation('PW.Component.Visits.MessagingInfo.ResponseNotAllowed')}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t) : null\n\t\t\t\t}\n\t\t\t/>\n\t\t</elements.container>\n\t);\n}\n\ninterface NavBarProps {\n\tdata: MessagingData;\n\tmetaData: MessagingMetaData | null;\n}\nfunction NavBar({ data, metaData }: NavBarProps): JSX.Element {\n\tconst desktop = useBreakpoint(BreakPoints.Medium);\n\tconst analyticAction = 'Clicked go to My cases-back arrow';\n\n\tconst receiptUrl = metaData?.receiptUrl;\n\tconst actions = receiptUrl\n\t\t? [{ label: withTranslation('PW.Component.Visits.MessagingInfo.ShowReceipt'), onSelect: () => window.open(receiptUrl, '_blank') }]\n\t\t: undefined;\n\n\treturn (\n\t\t<elements.navBarWrapper>\n\t\t\t{desktop ? (\n\t\t\t\t<elements.hiddenNavBarGoBackLink action={analyticAction} to='../../' replace>\n\t\t\t\t\t{withTranslation('PW.Component.Visits.MessagingInfo.A11y.GoBack')}\n\t\t\t\t</elements.hiddenNavBarGoBackLink>\n\t\t\t) : null}\n\t\t\t<ViewNavBar analyticAction={analyticAction} to={!desktop ? '../../' : undefined} title={data.receptionName} actions={actions} />\n\t\t</elements.navBarWrapper>\n\t);\n}\n","import { useResolve } from '@visiba-cortex/instantiation';\nimport { usePresentation } from '@visiba-cortex/presentation';\nimport { PresentationModel, VisitsController } from './view_patient_cases.controller';\nimport { useParams } from 'react-router';\nimport { ViewNotFound } from '@view/view_not_found/view_not_found_route.component';\nimport { InfoViewMessaging } from './_info_view_messaging.component';\n\nexport function SelectedMessagingCase() {\n\tconst params = useParams<'messageId'>();\n\tconst controller = useResolve(VisitsController);\n\tconst presentation = usePresentation(controller.presentation);\n\tconst c = params.messageId != null ? getMessageCase(presentation, params.messageId) : null;\n\n\tif (c == null) return <ViewNotFound />;\n\n\treturn <InfoViewMessaging model={c} />;\n}\n\nfunction getMessageCase(presentation: Readonly<PresentationModel>, id: string) {\n\tif (presentation.completedCases == null || presentation.ongoingCases == null) return null;\n\n\tconst cases = [...presentation.completedCases.messagingCases, ...presentation.ongoingCases.messagingCases];\n\tconst c = cases.find((c) => c.getIdentifier() === id);\n\n\treturn c ?? null;\n}\n","import { tokens } from '@cellula/react-theme-patient';\nimport { SelectedAppointmentCase } from './selected_appointment_case.component';\nimport { SelectedMessagingCase } from './selected_messagingCase.component';\nimport { ViewNotFound } from '@view/view_not_found/view_not_found_route.component';\nimport { Outlet, Route, Routes } from 'react-router';\nimport styled from 'styled-components';\nimport { Bleed, Flex, Grid } from '@cellula/react';\nimport { ListRoot } from './list_root.component';\nimport { Heading } from './heading.component';\nimport { useUser } from '@application/authentication/use_user';\nimport { SignInEmptyState } from './_sign_in_empty_state.component';\n\nexport function LegacyShell3Layout() {\n\treturn (\n\t\t<Routes>\n\t\t\t<Route element={<PageOutlet />}>\n\t\t\t\t<Route path='/' element={null} />\n\t\t\t\t<Route\n\t\t\t\t\tpath='/video/:callticket'\n\t\t\t\t\telement={\n\t\t\t\t\t\t<StyledAppointmentWrapper>\n\t\t\t\t\t\t\t<SelectedAppointmentCase />\n\t\t\t\t\t\t</StyledAppointmentWrapper>\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t\t<Route\n\t\t\t\t\tpath='/message/:messageId'\n\t\t\t\t\telement={\n\t\t\t\t\t\t<StyledMessagingWrapper>\n\t\t\t\t\t\t\t<SelectedMessagingCase />\n\t\t\t\t\t\t</StyledMessagingWrapper>\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t\t<Route path='/*' element={<ViewNotFound />} />\n\t\t\t</Route>\n\t\t</Routes>\n\t);\n}\n\nconst StyledAppointmentWrapper = styled.div`\n\tbackground-color: ${tokens.color.bg.surface};\n\twidth: 100%;\n\theight: 100%;\n\toverflow-x: hidden;\n\tmargin-top: 40px;\n\tposition: relative;\n\n\t${tokens.breakpointQuery.medium} {\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tborder-radius: 16px;\n\t\tborder: 1px solid ${tokens.color.border.default};\n\t}\n`;\n\nconst StyledMessagingWrapper = styled.div`\n\tdisplay: flex;\n\tflex-direction: column;\n\tbackground-color: ${tokens.color.bg.surface};\n\twidth: 100%;\n\theight: 100%;\n\toverflow-x: hidden;\n\tmargin-top: 40px;\n\tposition: relative;\n\n\t${tokens.breakpointQuery.medium} {\n\t\twidth: 100%;\n\t\theight: 605px;\n\t\tborder-radius: 16px;\n\t\tborder: 1px solid ${tokens.color.border.default};\n\t}\n`;\n\nfunction PageOutlet() {\n\tconst user = useUser();\n\n\treturn (\n\t\t<Flex\n\t\t\tgap={tokens.spacing.x2}\n\t\t\tstyle={{\n\t\t\t\tmargin: `${tokens.size.x5} auto 0`,\n\t\t\t\tpadding: `0 ${tokens.spacing.x2}`,\n\t\t\t}}\n\t\t>\n\t\t\t<Heading bleed={false} />\n\n\t\t\t{user == null ? (\n\t\t\t\t<>\n\t\t\t\t\t<SignInEmptyState />\n\n\t\t\t\t\t{/* A bit of a hack to get the tab bar to function */}\n\t\t\t\t\t<div style={{ display: 'none' }}>\n\t\t\t\t\t\t<ListRoot />\n\t\t\t\t\t</div>\n\t\t\t\t</>\n\t\t\t) : (\n\t\t\t\t<Grid\n\t\t\t\t\tareas={{\n\t\t\t\t\t\tbase: [\n\t\t\t\t\t\t\t// prettier-ignore\n\t\t\t\t\t\t\t'cases',\n\t\t\t\t\t\t\t'infoView',\n\t\t\t\t\t\t],\n\t\t\t\t\t\tM: [\n\t\t\t\t\t\t\t// prettier-ignore\n\t\t\t\t\t\t\t'cases infoView',\n\t\t\t\t\t\t],\n\t\t\t\t\t}}\n\t\t\t\t\tcolumns={{\n\t\t\t\t\t\tbase: ['4fr'],\n\t\t\t\t\t\tM: ['5fr', '7fr'],\n\t\t\t\t\t}}\n\t\t\t\t\tgap={{\n\t\t\t\t\t\tbase: tokens.spacing.x2,\n\t\t\t\t\t\tM: `${tokens.spacing.x5} ${tokens.spacing.x3}`,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Flex gridArea='cases'>\n\t\t\t\t\t\t<Bleed bleedAmount='16px'>\n\t\t\t\t\t\t\t<ListRoot />\n\t\t\t\t\t\t</Bleed>\n\t\t\t\t\t</Flex>\n\t\t\t\t\t<Flex gridArea='infoView'>\n\t\t\t\t\t\t<Outlet />\n\t\t\t\t\t</Flex>\n\t\t\t\t</Grid>\n\t\t\t)}\n\t\t</Flex>\n\t);\n}\n","import { ViewNotFound } from '@view/view_not_found/view_not_found_route.component';\nimport { Root } from './root.component';\nimport { FixedRoutes } from './fixed_routes.component';\nimport { Heading } from './heading.component';\nimport { ListRoot } from './list_root.component';\nimport { SelectedAppointmentCase } from './selected_appointment_case.component';\nimport { SelectedMessagingCase } from './selected_messagingCase.component';\nimport { Spacer, useBreakpoint, BreakPoints } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { DEFAULT_LAYOUT_VARIANT } from '../../constants';\nimport { applicationLocalStorage } from '@application/application_storage_local';\nimport { LegacyShell3Layout } from './legacy_shell-3_layout.component';\n\ninterface Props {}\n\nconst VARIANT = applicationLocalStorage.get('shell-variant') ?? DEFAULT_LAYOUT_VARIANT;\n\nexport function ViewPatientCases(_: Props) {\n\tconst breakPoint = useBreakpoint(BreakPoints.Medium | BreakPoints.Small);\n\n\treturn (\n\t\t<ViewPatientCases.Root>\n\t\t\t{breakPoint ? <Spacer vertical={tokens.spacing.x6} /> : null}\n\n\t\t\t{/* Ideally remove shell-3. We don't want to use shell-3 checks invariantly everywhere. */}\n\t\t\t{VARIANT === 'shell-3' ? <LegacyShell3Layout /> : <ViewPatientCases.FixedRoutes />}\n\t\t</ViewPatientCases.Root>\n\t);\n}\n// This is mostly done to make it easier to compose in Patient Old.\n// If all was in React we would not need to do this.\nViewPatientCases.Root = Root;\nViewPatientCases.FixedRoutes = FixedRoutes;\nViewPatientCases.Heading = Heading;\nViewPatientCases.ListRoot = ListRoot;\nViewPatientCases.AppointmentCase = SelectedAppointmentCase;\nViewPatientCases.MessagingCase = SelectedMessagingCase;\nViewPatientCases.ViewNotFound = ViewNotFound;\n","import { Route, Routes } from 'react-router';\nimport { ViewNotFound } from '@view/view_not_found/view_not_found_route.component';\nimport { ListRoot } from './list_root.component';\nimport { Heading } from './heading.component';\nimport { SelectedAppointmentCase } from './selected_appointment_case.component';\nimport { SelectedMessagingCase } from './selected_messagingCase.component';\n\nexport function FixedRoutes() {\n\treturn (\n\t\t<Routes>\n\t\t\t<Route\n\t\t\t\tpath='/'\n\t\t\t\telement={\n\t\t\t\t\t<ListRoot>\n\t\t\t\t\t\t<Heading />\n\t\t\t\t\t</ListRoot>\n\t\t\t\t}\n\t\t\t/>\n\t\t\t<Route path='/video/:callticket' element={<SelectedAppointmentCase />} />\n\t\t\t<Route path='/message/:messageId' element={<SelectedMessagingCase />} />\n\t\t\t<Route path='/*' element={<ViewNotFound />} />\n\t\t</Routes>\n\t);\n}\n","// Remove this terrible shit when Angular is gone!\nexport function TerribleAngularRedirectFix_DO_NOT_USE() {\n\twindow.location.reload();\n\n\treturn null;\n}\n","import { AfterViewInit, Component, ElementRef, NgZone, OnDestroy, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { ViewPatientCases } from '@view/view_patient_cases/mod';\nimport { Outlet, Route, Routes } from 'react-router-dom';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { sharedResolution } from '../../src/shared_resolution';\nimport { Root, createRoot } from 'react-dom/client';\nimport { ProgrammaticBrowserRouter } from '@cortex-shim/programmatic_browser_router.component';\nimport { Bleed, Flex, Grid } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport styled from 'styled-components';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { TerribleAngularRedirectFix_DO_NOT_USE } from '@public/src/components/terrible_angular_redirect_fix_do_not_use.component';\n\nconst containerElementName = 'reactVisitsComponent';\n\n@Component({\n\tstandalone: false,\n\tselector: 'visits-component',\n\ttemplate: `\n\t\t<semantic-view>\n\t\t\t<header-component header></header-component>\n\t\t\t<div class=\"wrapper-container withSafeArea\" #${containerElementName}></div>\n\t\t\t<footer-component footer></footer-component>\n\t\t</semantic-view>\n\t`,\n\tencapsulation: ViewEncapsulation.None,\n\tstyles: [\n\t\t`\n\t\t\t& .withSafeArea {\n\t\t\t\twidth: 100%;\n\t\t\t\tmax-width: 1320px;\n\t\t\t\tmargin: 0 auto 40px;\n\t\t\t}\n\t\t`,\n\t],\n})\nexport class VisitsWrapperComponent implements OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(private readonly ngZone: NgZone) {\n\t\t// Empty\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.render();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate async render() {\n\t\tconst universalConfigService = sharedResolution.resolve(UniversalConfig);\n\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper useGlobals>\n\t\t\t\t\t<ProgrammaticBrowserRouter basename={universalConfigService.alias} forceNewHistory>\n\t\t\t\t\t\t<Routes>\n\t\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\t\tpath='visits/*'\n\t\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t\t<ViewPatientCases.Root>\n\t\t\t\t\t\t\t\t\t\t<Routes>\n\t\t\t\t\t\t\t\t\t\t\t<Route element={<PageOutlet />}>\n\t\t\t\t\t\t\t\t\t\t\t\t<Route path='/' element={null} />\n\t\t\t\t\t\t\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\t\t\t\t\t\t\tpath='/video/:callticket'\n\t\t\t\t\t\t\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<StyledAppointmentWrapper>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ViewPatientCases.AppointmentCase />\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</StyledAppointmentWrapper>\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\t\t\t\t\t\t\tpath='/message/:messageId'\n\t\t\t\t\t\t\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<StyledMessagingWrapper>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ViewPatientCases.MessagingCase />\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</StyledMessagingWrapper>\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t<Route path='/*' element={<ViewPatientCases.ViewNotFound />} />\n\t\t\t\t\t\t\t\t\t\t\t</Route>\n\t\t\t\t\t\t\t\t\t\t</Routes>\n\t\t\t\t\t\t\t\t\t</ViewPatientCases.Root>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<Route path='*' element={<TerribleAngularRedirectFix_DO_NOT_USE />} />\n\t\t\t\t\t\t</Routes>\n\t\t\t\t\t</ProgrammaticBrowserRouter>\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\n\t\t\tthis.root = root;\n\t\t});\n\t}\n}\n\nconst StyledAppointmentWrapper = styled.div`\n\tbackground-color: ${tokens.color.bg.surface};\n\twidth: 100%;\n\theight: 100%;\n\toverflow-x: hidden;\n\tmargin-top: 40px;\n\tposition: relative;\n\n\t${tokens.breakpointQuery.medium} {\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tborder-radius: 16px;\n\t\tborder: 1px solid ${tokens.color.border.default};\n\t}\n`;\n\nconst StyledMessagingWrapper = styled.div`\n\tdisplay: flex;\n\tflex-direction: column;\n\tbackground-color: ${tokens.color.bg.surface};\n\twidth: 100%;\n\theight: 100%;\n\toverflow-x: hidden;\n\tmargin-top: 40px;\n\tposition: relative;\n\n\t${tokens.breakpointQuery.medium} {\n\t\twidth: 100%;\n\t\theight: 605px;\n\t\tborder-radius: 16px;\n\t\tborder: 1px solid ${tokens.color.border.default};\n\t}\n`;\n\nfunction PageOutlet() {\n\treturn (\n\t\t<Flex\n\t\t\tgap={tokens.spacing.x2}\n\t\t\tstyle={{\n\t\t\t\tmargin: `${tokens.size.x5} auto 0`,\n\t\t\t\tpadding: `0 ${tokens.spacing.x2}`,\n\t\t\t}}\n\t\t>\n\t\t\t<ViewPatientCases.Heading bleed={false} />\n\n\t\t\t<Grid\n\t\t\t\tareas={{\n\t\t\t\t\tbase: [\n\t\t\t\t\t\t// prettier-ignore\n\t\t\t\t\t\t'cases',\n\t\t\t\t\t\t'infoView',\n\t\t\t\t\t],\n\t\t\t\t\tM: [\n\t\t\t\t\t\t// prettier-ignore\n\t\t\t\t\t\t'cases infoView',\n\t\t\t\t\t],\n\t\t\t\t}}\n\t\t\t\tcolumns={{\n\t\t\t\t\tbase: ['4fr'],\n\t\t\t\t\tM: ['5fr', '7fr'],\n\t\t\t\t}}\n\t\t\t\tgap={{\n\t\t\t\t\tbase: tokens.spacing.x2,\n\t\t\t\t\tM: `${tokens.spacing.x5} ${tokens.spacing.x3}`,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Flex gridArea='cases'>\n\t\t\t\t\t<Bleed bleedAmount='16px'>\n\t\t\t\t\t\t<ViewPatientCases.ListRoot />\n\t\t\t\t\t</Bleed>\n\t\t\t\t</Flex>\n\t\t\t\t<Flex gridArea='infoView'>\n\t\t\t\t\t<Outlet />\n\t\t\t\t</Flex>\n\t\t\t</Grid>\n\t\t</Flex>\n\t);\n}\n","import {\n\tAfterViewInit,\n\tComponent,\n\tElementRef,\n\tNgZone,\n\tOnChanges,\n\tOnDestroy,\n\tSimpleChanges,\n\tViewChild,\n\tViewEncapsulation,\n} from '@angular/core';\nimport { AttentionCard } from '@components/attention_card/mod';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { Root, createRoot } from 'react-dom/client';\n\nconst containerElementName = 'reactHeaderComponent';\n\n@Component({\n\tstandalone: false,\n\tselector: 'attention-card-component',\n\ttemplate: `<div class=\"wrapper-container\" #${containerElementName}></div>`,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class AttentionCardWrapper implements OnChanges, OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) public containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(private readonly ngZone: NgZone) {\n\t\t// Empty\n\t}\n\n\tngOnChanges(_: SimpleChanges): void {\n\t\tthis.render();\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.render();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate render() {\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper>\n\t\t\t\t\t<AttentionCard />\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n","import { createContext, useLayoutEffect, ReactNode, useContext, useMemo, useRef, useState } from 'react';\nimport { BaseButton, VisibaCortexBaseButtonProps } from './components_base/base_button.component';\nimport { v4 } from 'uuid';\nimport styled, { css } from 'styled-components';\nimport { Text } from '@visiba-cortex/react-ui-std';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { VisuallyHidden } from 'react-aria';\nimport { Spacer } from '@cellula/react';\n\ntype Id = `collapsible-text-${string}`;\n\ninterface ReadMoreTextContextProps {\n\tid: Id;\n\tisOpen: boolean;\n\ttoggleIsOpen: () => void;\n}\n\nconst ReadMoreTextContext = createContext<ReadMoreTextContextProps>({} as ReadMoreTextContextProps);\n\nconst elements = {\n\tcontainer: styled.div`\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tposition: relative;\n\t`,\n\tcontentContainer: styled.p<{ maxLineNumber: number }>`\n\t\twidth: 100%;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t\twhite-space: pre-wrap;\n\t\tfont: ${tokens.text.body.regular};\n\n\t\t${({ maxLineNumber }) => {\n\t\t\tif (maxLineNumber !== 0)\n\t\t\t\treturn css`\n\t\t\t\t\tdisplay: -webkit-box;\n\t\t\t\t\t-webkit-line-clamp: ${maxLineNumber};\n\t\t\t\t\tline-clamp: ${maxLineNumber};\n\t\t\t\t\t-webkit-box-orient: vertical;\n\t\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\t`;\n\n\t\t\treturn null;\n\t\t}};\n\t`,\n};\n\ninterface Props {\n\topen?: boolean;\n\tonOpenChange?: (open: boolean) => void;\n\tchildren?: ReactNode;\n\tmaxLineNumber?: number;\n\ttitle?: string;\n}\n\nexport function ReadMoreText({ children, open, onOpenChange, title, maxLineNumber = 3, ...rest }: Props): JSX.Element {\n\tconst id = useMemo(() => {\n\t\treturn `collapsible-text-${v4().substring(0, 8)}` as Id;\n\t}, []);\n\tconst ref = useRef<HTMLDivElement>(null);\n\tconst [isOpen, setIsOpen] = useState(open ?? false);\n\tconst [showButton, setShowButton] = useState(false);\n\n\tfunction toggleIsOpen(): void {\n\t\tconst open = !isOpen;\n\n\t\tsetIsOpen(open);\n\n\t\tif (onOpenChange) {\n\t\t\tonOpenChange(open);\n\t\t}\n\t}\n\n\tuseLayoutEffect(\n\t\tfunction whenComponentMounts() {\n\t\t\tif (ref.current == null) return;\n\t\t\t// Only shows the \"show more\" button if the child's height exceeds where the parent y-overflows\".\n\t\t\tsetShowButton(maxLineNumber === 0 ? true : ref.current.scrollHeight > ref.current.clientHeight);\n\t\t},\n\t\t[maxLineNumber],\n\t);\n\n\treturn (\n\t\t<ReadMoreTextContext.Provider value={{ id, isOpen, toggleIsOpen }} {...rest}>\n\t\t\t<elements.container {...rest}>\n\t\t\t\t<VisuallyHidden>\n\t\t\t\t\t<h4>{title}</h4>\n\t\t\t\t</VisuallyHidden>\n\t\t\t\t<elements.contentContainer ref={ref} id={id} maxLineNumber={isOpen ? 0 : maxLineNumber}>\n\t\t\t\t\t{children}\n\t\t\t\t</elements.contentContainer>\n\t\t\t\t<Spacer vertical={tokens.spacing.x1} />\n\t\t\t\t{showButton ? <CollapsibleTrigger /> : null}\n\t\t\t</elements.container>\n\t\t</ReadMoreTextContext.Provider>\n\t);\n}\n\ninterface TriggerProps extends VisibaCortexBaseButtonProps {}\n\nfunction CollapsibleTrigger(_: TriggerProps): JSX.Element {\n\tconst { isOpen, toggleIsOpen } = useContext(ReadMoreTextContext);\n\n\tfunction handleClick(): void {\n\t\ttoggleIsOpen();\n\t}\n\n\treturn (\n\t\t<BaseButton tabIndex={-1} onClick={handleClick}>\n\t\t\t<Text color={tokens.color.content.interactive} font={tokens.text.label.semiBold}>\n\t\t\t\t{withTranslation(isOpen ? 'PW.Component.Collapsible.ShowLess' : 'PW.Component.Collapsible.ShowMore')}\n\t\t\t</Text>\n\t\t</BaseButton>\n\t);\n}\n","import { AppConfig, Config, ConfigService } from '@services/config.service';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport { Scoped } from '@visiba-cortex/instantiation';\nimport { Presentation } from '@visiba-cortex/presentation';\nimport { UnitsApiService } from '@src/api/units_api.service';\nimport type { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport type { Language } from '@components/language_select/language_select.component';\nimport type { UnitAboutApiModel } from '@api/generated/models';\n\nexport interface AddressField {\n\tkey: string;\n\tvalue: string;\n}\n\nexport interface LegalField {\n\tkey: string;\n\ttranslationKey: I18nAndL10n.LocaleKey;\n\tvalue: string;\n}\n\nexport interface ExternalLink {\n\tname: string | null;\n\turl: string;\n}\n\ninterface Presentation {\n\taboutUsText: string | null;\n\taddressInfo: AddressField[];\n\tlegal: LegalField[];\n\tlanguages: Language[];\n\texternalLink: ExternalLink | null;\n\tappConfig: AppConfig | null;\n}\n\ntype FetchedTexts = 'Web_About';\n\n@Scoped()\nexport class FooterController {\n\tpublic readonly presentation = Presentation.createConcurrent<Presentation>();\n\n\tconstructor(\n\t\tprivate readonly unitsApiService: UnitsApiService,\n\t\tprivate readonly locationSelectorService: LocationSelectorService,\n\t\tprivate readonly licenceHolderService: LicenceHolderService,\n\t\tprivate readonly configService: ConfigService,\n\t) {\n\t\t// Empty\n\t}\n\n\tpublic onMount(): void {\n\t\tconst unitAboutPromise = this.unitsApiService.getLicenseHolderAboutData(this.licenceHolderService.rootUnitId);\n\t\tconst textsPromise = this.unitsApiService.getTexts(this.licenceHolderService.rootUnitId, ['Web_About']);\n\t\tconst unitConfig = this.configService.loadConfig(this.locationSelectorService.locationUnitId);\n\n\t\tconst promiseGroup = Promise.all([unitAboutPromise, unitConfig, textsPromise]);\n\t\tthis.presentation.suspend(promiseGroup, ([unitAboutResponse, unitConfig, textsPromise]) => {\n\t\t\treturn this.parseResultsToPresentationModel([unitAboutResponse.data, unitConfig, textsPromise.data]);\n\t\t});\n\t}\n\n\tprivate parseResultsToPresentationModel([unitAbout, unitConfig, webAbout]: readonly [\n\t\tUnitAboutApiModel,\n\t\tConfig,\n\t\tAwaited<ReturnType<typeof this.unitsApiService.getTexts<FetchedTexts>>>['data'],\n\t]): Presentation {\n\t\tconst addressInfo: AddressField[] = [];\n\t\tif (unitAbout.VisitAddress?.Address != null) {\n\t\t\taddressInfo.push({\n\t\t\t\tkey: 'Address+Address2',\n\t\t\t\tvalue: [unitAbout.VisitAddress.Address, unitAbout.VisitAddress.Address2].filter(Boolean).join(', '),\n\t\t\t});\n\t\t}\n\t\tif (unitAbout.VisitAddress?.City != null) {\n\t\t\taddressInfo.push({\n\t\t\t\tkey: 'PostalCode+City',\n\t\t\t\tvalue: [unitAbout.VisitAddress.PostalCode, unitAbout.VisitAddress.City].filter(Boolean).join(' '),\n\t\t\t});\n\t\t}\n\n\t\tconst legal: LegalField[] = [];\n\t\tif (unitConfig.privacyPolicyUrl != null) {\n\t\t\tlegal.push({\n\t\t\t\tkey: 'pp',\n\t\t\t\tvalue: unitConfig.privacyPolicyUrl,\n\t\t\t\ttranslationKey: 'PW.Component.Footer.PP',\n\t\t\t});\n\t\t}\n\t\tif (unitConfig.termsOfServiceUrl != null) {\n\t\t\tlegal.push({\n\t\t\t\tkey: 'tos',\n\t\t\t\tvalue: unitConfig.termsOfServiceUrl,\n\t\t\t\ttranslationKey: 'PW.Component.Footer.ToS',\n\t\t\t});\n\t\t}\n\t\tlegal.push({\n\t\t\tkey: 'Cookie-Policy',\n\t\t\tvalue: `/${this.licenceHolderService.alias}/cookie-policy`,\n\t\t\ttranslationKey: 'PW.Component.Footer.CookiePolicy',\n\t\t});\n\n\t\treturn {\n\t\t\tlegal,\n\t\t\taddressInfo,\n\t\t\taboutUsText: webAbout.Web_About,\n\t\t\tlanguages: unitConfig.languages.map((language) => ({\n\t\t\t\tcode: language.code,\n\t\t\t\tkey: language.code,\n\t\t\t\tnativeName: language.nativeName,\n\t\t\t})),\n\t\t\texternalLink:\n\t\t\t\tunitAbout.Url != null\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tname: unitAbout.UrlLinkName,\n\t\t\t\t\t\t\turl: unitAbout.Url,\n\t\t\t\t\t }\n\t\t\t\t\t: null,\n\t\t\tappConfig: unitConfig.appConfig,\n\t\t};\n\t}\n}\n","import { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport { rem } from '@visiba/std';\nimport styled from 'styled-components';\n\nexport type AvailableCountryAssets =\n\t| 'ad'\n\t| 'ae'\n\t| 'af'\n\t| 'ag'\n\t| 'al'\n\t| 'am'\n\t| 'ao'\n\t| 'ar'\n\t| 'at'\n\t| 'au'\n\t| 'az'\n\t| 'ba'\n\t| 'bb'\n\t| 'bd'\n\t| 'be'\n\t| 'bf'\n\t| 'bg'\n\t| 'bh'\n\t| 'bi'\n\t| 'bj'\n\t| 'bn'\n\t| 'bo'\n\t| 'br'\n\t| 'bs'\n\t| 'bt'\n\t| 'bw'\n\t| 'by'\n\t| 'bz'\n\t| 'ca'\n\t| 'cd'\n\t| 'cf'\n\t| 'cg'\n\t| 'ch'\n\t| 'ci'\n\t| 'ck'\n\t| 'cl'\n\t| 'cm'\n\t| 'cn'\n\t| 'co'\n\t| 'cr'\n\t| 'cu'\n\t| 'cv'\n\t| 'cy'\n\t| 'cz'\n\t| 'de'\n\t| 'dj'\n\t| 'dk'\n\t| 'dm'\n\t| 'do'\n\t| 'dz'\n\t| 'ec'\n\t| 'ee'\n\t| 'eg'\n\t| 'er'\n\t| 'es'\n\t| 'et'\n\t| 'fi'\n\t| 'fj'\n\t| 'fm'\n\t| 'fr'\n\t| 'ga'\n\t| 'gb'\n\t| 'gd'\n\t| 'ge'\n\t| 'gh'\n\t| 'gm'\n\t| 'gn'\n\t| 'gq'\n\t| 'gr'\n\t| 'gt'\n\t| 'gw'\n\t| 'gy'\n\t| 'hk'\n\t| 'hn'\n\t| 'hr'\n\t| 'ht'\n\t| 'hu'\n\t| 'id'\n\t| 'ie'\n\t| 'il'\n\t| 'in'\n\t| 'iq'\n\t| 'ir'\n\t| 'is'\n\t| 'it'\n\t| 'jm'\n\t| 'jo'\n\t| 'jp'\n\t| 'ke'\n\t| 'kg'\n\t| 'kh'\n\t| 'ki'\n\t| 'km'\n\t| 'kn'\n\t| 'kp'\n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props {\n\tcode: AvailableCountryAssets | '';\n}\n\nconst elements = {\n\twrapper: styled.div`\n\t\twidth: ${rem(32)};\n\t\theight: ${rem(20)};\n\t\tbackground: rgba(57, 57, 57, 0.2);\n\t\tborder-radius: ${rem(4)};\n\t\toverflow: hidden;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t`,\n\timg: styled.div<{ url: string }>`\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground-size: cover;\n\t\tbackground-position: center;\n\t\tbackground-image: url(${({ url }) => url});\n\t`,\n};\n\nexport function CountryFlag(props: Props): JSX.Element {\n\tconst url = `/assets/flags/flag_${getSvgPath(props.code)}.svg`;\n\n\treturn (\n\t\t<elements.wrapper>{props.code !== '' ? <elements.img url={(window.__TEMP__ ? '/PublicV3' : '') + url} /> : null}</elements.wrapper>\n\t);\n}\n\nfunction getSvgPath(code: string): AvailableCountryAssets | '' {\n\tlet knownVisibaLocal: I18nAndL10n.AvailableVisibaLocales;\n\ttry {\n\t\tknownVisibaLocal = I18nAndL10n.convertExternalLocaleToAvailableLocale(code);\n\t} catch {\n\t\treturn '';\n\t}\n\n\t// TODO: DEV-10574 This should not be hardcoded here.\n\tlet country: AvailableCountryAssets;\n\tswitch (knownVisibaLocal) {\n\t\tcase 'sv':\n\t\t\tcountry = 'se';\n\t\t\tbreak;\n\t\tcase 'ar':\n\t\t\tcountry = 'ae';\n\t\t\tbreak;\n\t\tcase 'da':\n\t\t\tcountry = 'dk';\n\t\t\tbreak;\n\t\tcase 'de':\n\t\t\tcountry = 'de';\n\t\t\tbreak;\n\t\tcase 'en-gb':\n\t\t\tcountry = 'gb';\n\t\t\tbreak;\n\t\tcase 'fa':\n\t\t\tcountry = 'ir';\n\t\t\tbreak;\n\t\tcase 'fi':\n\t\t\tcountry = 'fi';\n\t\t\tbreak;\n\t\tcase 'hr':\n\t\t\tcountry = 'hr';\n\t\t\tbreak;\n\t\tcase 'nb':\n\t\t\tcountry = 'no';\n\t\t\tbreak;\n\t\tcase 'pt-br':\n\t\t\tcountry = 'br';\n\t\t\tbreak;\n\t\tcase 'nl':\n\t\t\tcountry = 'nl';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn '';\n\t}\n\n\treturn country;\n}\n","/* eslint-disable jsx-a11y/no-static-element-interactions */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\n\nimport { Key } from 'react';\nimport { Text } from '@visiba-cortex/react-ui-std';\nimport { CountryFlag, AvailableCountryAssets } from '@components/country_flag.component';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Flex, InputSelect } from '@cellula/react';\n\nexport interface Language {\n\tkey: string;\n\tcode: string;\n\tnativeName: string;\n}\n\ninterface Props {\n\tlanguages: Language[];\n\tdefaultValue?: string;\n\tonChange?: (key: Key) => void;\n}\n\nexport function LanguageSelect({ onChange, languages, defaultValue }: Props): JSX.Element {\n\treturn (\n\t\t<InputSelect.Root\n\t\t\tlabel={/* TODO PAT-773 Should not be an empty string here, a11y issues */ ''}\n\t\t\tdefaultValue={defaultValue}\n\t\t\tonValueChange={(value) => {\n\t\t\t\tonChange?.(value);\n\t\t\t}}\n\t\t>\n\t\t\t{languages.map((language) => (\n\t\t\t\t<InputSelect.Item value={language.code} key={language.code}>\n\t\t\t\t\t<Flex direction='row' align='center' gap={tokens.spacing.x1_5}>\n\t\t\t\t\t\t<CountryFlag code={language.code as AvailableCountryAssets} />\n\t\t\t\t\t\t<Text font={tokens.text.label.regular}>{language.nativeName}</Text>\n\t\t\t\t\t</Flex>\n\t\t\t\t</InputSelect.Item>\n\t\t\t))}\n\t\t</InputSelect.Root>\n\t);\n}\n","import { LanguageSelect } from '@components/language_select/language_select.component';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { useCurrentLocation } from '../../application/use_current_location';\nimport styled from 'styled-components';\nimport { Label, Box, Flex, SafeArea, Stack } from '@cellula/react';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { UserSettingsService } from '@services/user_settings.service';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { BreakPoints, useBreakpoint } from '@cellula/react';\nimport { ASSET_IMAGE_PATH } from '../../constants';\nimport { AnalyticService } from '@application/analytic/analytic.service';\nimport { useAnalyticContext } from '@components/analytic_link/analytic_link.provider';\nimport { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport type { Key } from 'react';\n\ninterface Props {\n\taddressInfoSection: JSX.Element[] | JSX.Element;\n\texternalLinkSection: JSX.Element | null;\n\tinfoTextSection: JSX.Element | null;\n\tlegalSection: JSX.Element[] | JSX.Element;\n\tappSection: JSX.Element | null;\n\t__TEMP__changeLanguage?(langCode: string): void;\n}\n\nconst elements = {\n\t/* TODO: Fix Cellula Grid, so it may use min/width/height, asChild and breakpoints */\n\tcontainer: styled.div`\n\t\tdisplay: grid;\n\t\twidth: 100%;\n\t\tmin-height: 332px;\n\t\tflex-basis: 0%;\n\t\tdisplay: grid;\n\t\tgrid-template-areas:\n\t\t\t'left'\n\t\t\t'middle'\n\t\t\t'right';\n\t\tgrid-template-columns: 1fr;\n\t\tgap: ${tokens.spacing.x3};\n\t\t/* TODO: Fix SafeArea padding overriding padding */\n\t\tpadding-top: ${tokens.spacing.x3} !important;\n\t\t/* TODO: Fix SafeArea padding overriding padding */\n\t\tpadding-bottom: ${tokens.spacing.x4} !important;\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tgrid-template-areas: 'left middle right';\n\t\t\tgrid-template-columns: 1fr 1fr 1fr;\n\t\t\tgap: var(--cellula--space--x2);\n\t\t\t/* TODO: Fix SafeArea padding overriding padding */\n\t\t\tpadding-top: ${tokens.spacing.x6} !important;\n\t\t\t/* TODO: Fix SafeArea padding overriding padding */\n\t\t\tpadding-bottom: ${tokens.spacing.x9} !important;\n\t\t}\n\t`,\n\tlanguageSelect: styled.div`\n\t\twidth: 100%;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: ${tokens.spacing.x1};\n\n\t\t${tokens.breakpointQuery.large} {\n\t\t\tmax-width: 320px;\n\t\t}\n\t`,\n\tceLogo: styled.img`\n\t\tmax-width: 45px;\n\t`,\n};\n\ninterface LanguageSelectSectionProps {\n\t__TEMP__changeLanguage?(langCode: string): void;\n}\n\nfunction LanguageSelectSection({ __TEMP__changeLanguage }: LanguageSelectSectionProps): JSX.Element | null {\n\tconst [, config] = useCurrentLocation();\n\tconst userSettingsService = useService(UserSettingsService);\n\tconst analyticService = useService(AnalyticService);\n\tconst analyticContext = useAnalyticContext();\n\n\tif (config == null) return null;\n\tif (config.languages.length <= 0) return null;\n\n\tfunction handleLanguageChange(langCode: Key): void {\n\t\tconst convertedLangCode = I18nAndL10n.convertExternalLocaleToAvailableLocale(langCode as string);\n\t\tanalyticService.trackEvent(analyticContext, `Changed language to: ${convertedLangCode}`);\n\n\t\t__TEMP__changeLanguage?.(langCode as string);\n\t}\n\n\treturn (\n\t\t<elements.languageSelect>\n\t\t\t<Label>{withTranslation('PW.Common.ChooseLanguage')}</Label>\n\t\t\t<LanguageSelect\n\t\t\t\tonChange={handleLanguageChange}\n\t\t\t\tdefaultValue={userSettingsService.getSettings().selectedLanguage}\n\t\t\t\tlanguages={\n\t\t\t\t\tconfig.languages.map((language) => ({\n\t\t\t\t\t\tcode: language.code,\n\t\t\t\t\t\tkey: language.code,\n\t\t\t\t\t\tnativeName: language.nativeName,\n\t\t\t\t\t})) ?? []\n\t\t\t\t}\n\t\t\t/>\n\t\t</elements.languageSelect>\n\t);\n}\n\nexport function FooterLayout({\n\taddressInfoSection,\n\texternalLinkSection,\n\tinfoTextSection,\n\tlegalSection,\n\tappSection,\n\t__TEMP__changeLanguage,\n}: Props): JSX.Element {\n\tconst breakpoint = useBreakpoint();\n\tconst [, config] = useCurrentLocation();\n\n\treturn (\n\t\t<SafeArea asChild>\n\t\t\t<elements.container>\n\t\t\t\t<Flex asChild gridArea='left'>\n\t\t\t\t\t<Stack gap={tokens.spacing.x2}>\n\t\t\t\t\t\t<LanguageSelectSection __TEMP__changeLanguage={__TEMP__changeLanguage} />\n\n\t\t\t\t\t\t<Flex as='address'>{addressInfoSection}</Flex>\n\n\t\t\t\t\t\t{externalLinkSection}\n\t\t\t\t\t</Stack>\n\t\t\t\t</Flex>\n\n\t\t\t\t<Flex asChild gridArea='middle'>\n\t\t\t\t\t<Stack gap={tokens.spacing.x3}>\n\t\t\t\t\t\t{infoTextSection}\n\n\t\t\t\t\t\t<Stack gap={tokens.spacing.x1_5}>{legalSection}</Stack>\n\t\t\t\t\t</Stack>\n\t\t\t\t</Flex>\n\t\t\t\t<Flex\n\t\t\t\t\tasChild\n\t\t\t\t\tgridArea='right'\n\t\t\t\t\tjustify='space-between'\n\t\t\t\t\talign={breakpoint == BreakPoints.Small ? 'flex-start' : 'flex-end'}\n\t\t\t\t\tgap={tokens.spacing.x3}\n\t\t\t\t\twrap='wrap'\n\t\t\t\t>\n\t\t\t\t\t<Box>{appSection}</Box>\n\t\t\t\t</Flex>\n\t\t\t</elements.container>\n\t\t</SafeArea>\n\t);\n}\n","import { Shimmer } from '@components/shimmer.component';\nimport { FooterLayout } from './_footer_layout.component';\n\nexport function FooterSkeleton(): JSX.Element {\n\treturn (\n\t\t<FooterLayout\n\t\t\taddressInfoSection={<Shimmer height={16} width={100} cornerRadius={8} />}\n\t\t\texternalLinkSection={<Shimmer height={16} width={100} cornerRadius={8} />}\n\t\t\tinfoTextSection={<Shimmer height={16} width={100} cornerRadius={8} />}\n\t\t\tlegalSection={<Shimmer height={16} width={100} cornerRadius={8} />}\n\t\t\tappSection={<Shimmer height={16} width={100} cornerRadius={8} />}\n\t\t/>\n\t);\n}\n","import styled from 'styled-components';\nimport { rem } from '@visiba/std';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { Flex, Spacer, Stack, Icon, IconDictionary, Text } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { ReadMoreText } from '../read_more_text.component';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { AddressField, ExternalLink, FooterController, LegalField } from './_footer.controller';\nimport { Fragment, MouseEvent, useEffect } from 'react';\nimport { SuspendedPresentation } from '@components/suspended_presentation.component';\nimport { FooterLayout } from './_footer_layout.component';\nimport { FooterSkeleton } from './_footer.skeleton.component';\nimport { ASSET_IMAGE_PATH } from '../../constants';\nimport { ConsentTrigger } from '../../../../patient/src/components/consent/consent_trigger.component';\nimport { LinkInMessage } from '@components/link_in_message.component';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { AnalyticProvider, useAnalyticContext } from '@components/analytic_link/analytic_link.provider';\nimport type { AppConfig } from '@services/config.service';\n\ninterface Props {\n\t__TEMP__changeLanguage?(langCode: string): void;\n}\n\nconst elements = {\n\tlink: styled.a`\n\t\tline-height: ${rem(24)};\n\t\tfont-size: ${rem(24)};\n\t`,\n\tlinkIconContainer: styled.div`\n\t\tcolor: ${tokens.color.content.interactive};\n\t\tflex-shrink: 0;\n\t`,\n\tappLogoImage: styled.img`\n\t\theight: ${rem(45)};\n\t`,\n\tappLink: styled.a`\n\t\tdisplay: block;\n\t`,\n};\n\nexport function Footer({ __TEMP__changeLanguage }: Props): JSX.Element {\n\tconst footerController = useService(FooterController);\n\n\tuseEffect(() => {\n\t\tfooterController.onMount();\n\t}, [footerController]);\n\n\treturn (\n\t\t<AnalyticProvider category={AnalyticCategories.Footer}>\n\t\t\t<SuspendedPresentation controller={footerController} fallback={<FooterSkeleton />}>\n\t\t\t\t{({ aboutUsText, addressInfo, externalLink, legal, appConfig }) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<FooterLayout\n\t\t\t\t\t\t\taddressInfoSection={<AddressInfoSection addressInfo={addressInfo} />}\n\t\t\t\t\t\t\texternalLinkSection={<ExternalLinkSection externalLink={externalLink} />}\n\t\t\t\t\t\t\tinfoTextSection={<InfoTextSection aboutUsText={aboutUsText} />}\n\t\t\t\t\t\t\tlegalSection={<LegalSection legalFields={legal} />}\n\t\t\t\t\t\t\tappSection={<AppSection appConfig={appConfig} />}\n\t\t\t\t\t\t\t__TEMP__changeLanguage={__TEMP__changeLanguage}\n\t\t\t\t\t\t/>\n\t\t\t\t\t);\n\t\t\t\t}}\n\t\t\t</SuspendedPresentation>\n\t\t</AnalyticProvider>\n\t);\n}\n\nfunction AddressInfoSection({ addressInfo }: { addressInfo: AddressField[] }): JSX.Element {\n\treturn (\n\t\t<Fragment>\n\t\t\t{addressInfo.map((addressField) => (\n\t\t\t\t<Text key={addressField.key} variant='bodyRegular' color={tokens.color.content.brand}>\n\t\t\t\t\t{addressField.value}\n\t\t\t\t</Text>\n\t\t\t))}\n\t\t</Fragment>\n\t);\n}\n\nfunction ExternalLinkSection({ externalLink }: { externalLink: ExternalLink | null }): JSX.Element | null {\n\tconst analyticService = useService(AnalyticService);\n\tconst analyticContext = useAnalyticContext();\n\n\tif (externalLink == null) return null;\n\n\tfunction analyticQuirk_handleClick(): void {\n\t\tanalyticService.trackEvent(analyticContext, 'Clicked: Website-link');\n\t}\n\n\treturn (\n\t\t<LinkWithIcon icon='network' link={externalLink.url} onClick={analyticQuirk_handleClick}>\n\t\t\t{externalLink.name ?? externalLink.url}\n\t\t</LinkWithIcon>\n\t);\n}\n\nfunction InfoTextSection({ aboutUsText }: { aboutUsText: string | null }): JSX.Element | null {\n\tif (aboutUsText == null) return null;\n\n\treturn (\n\t\t<ReadMoreText open={false} data-testid='ReadMoreText' maxLineNumber={3} title={withTranslation('PW.Component.Footer.Text.Title')}>\n\t\t\t<LinkInMessage text={aboutUsText} />\n\t\t</ReadMoreText>\n\t);\n}\n\nfunction LegalSection({ legalFields }: { legalFields: LegalField[] }): JSX.Element {\n\tconst analyticService = useService(AnalyticService);\n\tconst analyticContext = useAnalyticContext();\n\n\tfunction analyticQuirk_handleClick(legalField: LegalField): () => void {\n\t\treturn () => {\n\t\t\tanalyticService.trackEvent(\n\t\t\t\tanalyticContext,\n\t\t\t\t`Clicked: \"${\n\t\t\t\t\tlegalField.key === 'tos' ? 'Terms of service' : legalField.key === 'pp' ? 'Privacy policy' : legalField.key\n\t\t\t\t}\" link`,\n\t\t\t);\n\t\t};\n\t}\n\n\tconst legalSection = legalFields.map((legalField) => (\n\t\t<LinkWithIcon key={legalField.key} icon='document' link={legalField.value} onClick={analyticQuirk_handleClick(legalField)}>\n\t\t\t{withTranslation(legalField.translationKey)}\n\t\t</LinkWithIcon>\n\t));\n\n\treturn (\n\t\t<Fragment>\n\t\t\t{legalSection}\n\n\t\t\t{__visiba_feature_flags__['PatientWeb.UseNewConsent'] ? (\n\t\t\t\t<Flex align='start'>\n\t\t\t\t\t<ConsentTrigger />\n\t\t\t\t</Flex>\n\t\t\t) : null}\n\t\t</Fragment>\n\t);\n}\n\nfunction AppSection({ appConfig }: { appConfig: AppConfig | null }): JSX.Element | null {\n\tconst analyticService = useService(AnalyticService);\n\tconst analyticContext = useAnalyticContext();\n\n\tfunction analyticQuirk_handleAppLinkClick(appType: string): (event: MouseEvent<HTMLAnchorElement>) => void {\n\t\treturn (_) => {\n\t\t\tanalyticService.trackEvent(analyticContext, appType === 'IOS' ? 'Clicked: App Store badge' : 'Clicked: Play Store badge');\n\t\t};\n\t}\n\n\tif (appConfig?.androidPackageId == null || appConfig?.appStoreId == null) return null;\n\n\treturn (\n\t\t<Stack gap={tokens.spacing.x1}>\n\t\t\t<Text variant='bodySemiBold' color={tokens.color.content.brand}>\n\t\t\t\t{withTranslation('PW.Component.Footer.DownloadApp.Title')}\n\t\t\t</Text>\n\t\t\t<Flex gap={tokens.spacing.x0_5} direction='row'>\n\t\t\t\t{appConfig?.androidPackageId && appConfig?.androidDownloadLink ? (\n\t\t\t\t\t<elements.appLink\n\t\t\t\t\t\trole='link'\n\t\t\t\t\t\taria-label={withTranslation('PW.Component.Footer.DownloadApp.label.Android')}\n\t\t\t\t\t\thref={appConfig.androidDownloadLink}\n\t\t\t\t\t\ttarget='_blank'\n\t\t\t\t\t\tonClick={analyticQuirk_handleAppLinkClick('Android')}\n\t\t\t\t\t>\n\t\t\t\t\t\t<elements.appLogoImage\n\t\t\t\t\t\t\tsrc={(window.__TEMP__ ? '/PublicV3' : '') + ASSET_IMAGE_PATH + appConfig.androidImageUrl}\n\t\t\t\t\t\t\talt='Google play store logo'\n\t\t\t\t\t\t/>\n\t\t\t\t\t</elements.appLink>\n\t\t\t\t) : null}\n\t\t\t\t{appConfig?.appStoreId && appConfig?.iosDownloadLink ? (\n\t\t\t\t\t<elements.appLink\n\t\t\t\t\t\trole='link'\n\t\t\t\t\t\thref={appConfig.iosDownloadLink}\n\t\t\t\t\t\taria-label={withTranslation('PW.Component.Footer.DownloadApp.label.IOS')}\n\t\t\t\t\t\ttarget='_blank'\n\t\t\t\t\t\tonClick={analyticQuirk_handleAppLinkClick('IOS')}\n\t\t\t\t\t>\n\t\t\t\t\t\t<elements.appLogoImage\n\t\t\t\t\t\t\tsrc={(window.__TEMP__ ? '/PublicV3' : '') + ASSET_IMAGE_PATH + appConfig.iosImageUrl}\n\t\t\t\t\t\t\talt='App store logo'\n\t\t\t\t\t\t/>\n\t\t\t\t\t</elements.appLink>\n\t\t\t\t) : null}\n\t\t\t</Flex>\n\t\t</Stack>\n\t);\n}\n\n// TODO: Use TextLink once available\ninterface LinkWithIconProps {\n\ticon: keyof IconDictionary;\n\tlink: string;\n\tchildren?: string;\n\tonClick?(event: MouseEvent<HTMLAnchorElement>): void;\n}\n\nfunction LinkWithIcon({ icon, link, children, onClick }: LinkWithIconProps): JSX.Element {\n\treturn (\n\t\t<elements.link href={link.includes('@') ? `mailto:${link}` : link} target='__blank' onClick={onClick}>\n\t\t\t<Flex direction='row' align='center' gap={tokens.spacing.x0_5}>\n\t\t\t\t<elements.linkIconContainer>\n\t\t\t\t\t<Icon type={icon} size='small' />\n\t\t\t\t</elements.linkIconContainer>\n\t\t\t\t<Spacer horizontal={tokens.spacing.x0_5} />\n\t\t\t\t<Text variant='bodyRegular' color={tokens.color.content.interactive}>\n\t\t\t\t\t{children ?? link}\n\t\t\t\t</Text>\n\t\t\t</Flex>\n\t\t</elements.link>\n\t);\n}\n","import {\n\tAfterViewInit,\n\tComponent,\n\tElementRef,\n\tNgZone,\n\tOnChanges,\n\tOnDestroy,\n\tSimpleChanges,\n\tViewChild,\n\tViewEncapsulation,\n} from '@angular/core';\nimport { Footer } from '../../src/components/footer/mod';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { AuthContextService } from '../app/Services/authContext.service';\nimport { GeneralService } from '../app/Services/general.service';\nimport { UserSettingsService } from '@public/src/application/services/user_settings.service';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { I18nAndL10n } from '@public/src/modules/i18n_and_l10n/mod';\nimport { sharedResolution } from '../../src/shared_resolution';\nimport { Root, createRoot } from 'react-dom/client';\n\nconst containerElementName = 'reactFooterComponent';\n\n@Component({\n\tstandalone: false,\n\tselector: 'footer-component',\n\ttemplate: ` <div class=\"wrapper-container\" #${containerElementName}></div> `,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class FooterWrapperComponent implements OnChanges, OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(\n\t\tprivate readonly authContextService: AuthContextService,\n\t\tprivate readonly generalService: GeneralService,\n\t\tprivate readonly ngZone: NgZone,\n\t) {\n\t\t// Empty\n\t}\n\n\tngOnChanges(_: SimpleChanges): void {\n\t\tthis.render();\n\t}\n\n\tngAfterViewInit(): void {\n\t\tthis.render();\n\t}\n\n\tprivate setLanguage(languageCode: string): void {\n\t\tlocalStorage.setItem('languageCode', languageCode);\n\n\t\tif (this.authContextService.isSignedIn()) {\n\t\t\tthis.generalService.setlanguage(languageCode).subscribe(\n\t\t\t\t() => {\n\t\t\t\t\twindow.location.reload();\n\t\t\t\t},\n\t\t\t\t() => {\n\t\t\t\t\t// noop\n\t\t\t\t},\n\t\t\t);\n\t\t} else {\n\t\t\twindow.location.reload();\n\t\t}\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate render(): void {\n\t\tconst userSettingsService = sharedResolution.resolve(UserSettingsService);\n\t\tconst analyticService = sharedResolution.resolve(AnalyticService);\n\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tconst handleLanguageChange = (code: string): void => {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tconst convertedCode = I18nAndL10n.convertExternalLocaleToAvailableLocale(code as string);\n\n\t\t\t\t// TODO: REMOVE THIS ONCE NOT INJECTED ANY MORE\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t\t\t\t//@ts-ignore\n\t\t\t\tanalyticService.trackEvent(AnalyticCategories.DeviceGateway, `Changed language to: ${convertedCode}`);\n\n\t\t\t\tuserSettingsService.updateSettings({ selectedLanguage: convertedCode });\n\t\t\t\tthis.setLanguage(code);\n\t\t\t});\n\t\t};\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\tthis.root.render(\n\t\t\t\t<CellulaProviderWrapper>\n\t\t\t\t\t<Footer __TEMP__changeLanguage={handleLanguageChange} />\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n","import { getAbsoluteRoute } from \"@helpers/route\";\nimport { LicenceHolderService } from \"@services/licence_holder.service\";\nimport { useService } from \"@visiba-cortex/instantiation\";\nimport { useLocation } from \"react-router\";\n\nexport function useRouteDetails(relativeTo: string): [to: string, isCurrentPage: boolean] {\n\tconst licenceHolderService = useService(LicenceHolderService);\n\n\tlet absoluteTo = getAbsoluteRoute(relativeTo);\n\tlet isCurrentPage: boolean;\n\tif (window.__TEMP__) {\n\t\tconst pathname = window.location.pathname.replace(/\\/$/, '');\n\t\tisCurrentPage =\n\t\t\tabsoluteTo === getAbsoluteRoute(licenceHolderService.alias) ? pathname === absoluteTo : pathname.includes(absoluteTo);\n\n\t\t// For Angular in injection\n\t\tabsoluteTo = relativeTo;\n\t} else {\n\t\t// This is a quite illegal thing to do and could potentially break stuff if\n\t\t// not cared for correctly.\n\t\t// We will guarantee that this hook may never be called conditionally\n\t\t// between renders since \"__TEMP__navigate\" will never be conditionally\n\t\t// passed down.\n\t\t// eslint-disable-next-line react-hooks/rules-of-hooks\n\t\tconst { pathname } = useLocation();\n\t\tisCurrentPage = pathname.replace(/\\/$/, '') === absoluteTo.replace(/\\/$/, '');\n\t}\n\n\treturn [absoluteTo, isCurrentPage];\n}\n","import { Icon, IconType } from '@components/icon.component';\nimport { Layout } from '@visiba-cortex/react-ui-std';\nimport { useState } from 'react';\nimport styled from 'styled-components';\nimport { rem } from '@visiba/std';\nimport { VisibaLink } from '@components/visiba-link.component';\nimport classNames from 'classnames';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { useRouteDetails } from './_use_route_details';\nimport { BadgeNumber } from '@cellula/react';\nimport type { ReactNode, MouseEvent } from 'react';\n\ninterface Props {\n\ticon: IconType;\n\ticonActive: IconType;\n\ticonSize?: number;\n\tto: string;\n\tlabel?: ReactNode;\n\tonClick(event: MouseEvent<HTMLAnchorElement>): void;\n\tbadgeNumber?: number;\n\tdisabled?: boolean;\n\t__TEMP__navigate?: (url: string) => void;\n}\n\nconst elements = {\n\tlink: styled(VisibaLink)<{ isCurrentPage: boolean; disabled?: boolean }>`\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\theight: 100%;\n\t\tflex: 1;\n\t\tmargin: 0 ${rem(10)};\n\t\tfont-size: 1rem;\n\t\tline-height: 1.256875rem;\n\t\tletter-spacing: 0.025625rem;\n\t\tfont-weight: 400;\n\t\tfont-variant: small-caps;\n\t\ttext-transform: lowercase;\n\n\t\tcolor: ${tokens.color.content.mutedBrand};\n\n\t\t&.isCurrentPage {\n\t\t\tcolor: ${tokens.color.content.brand};\n\t\t}\n\n\t\ttransition:\n\t\t\tbackground 200ms ease-in-out,\n\t\t\tcolor 200ms ease;\n\n\t\t${({ disabled }) =>\n\t\t\t!disabled &&\n\t\t\t`\n\t\t\t\t&:hover, &:focus {\n\t\t\t\t\tbackground: ${tokens.color.bg.surfaceBrand};\n\t\t\t\t\tcolor: ${tokens.color.content.mutedBrand};\n\t\t\t\t}\n\t\t\t`}\n\n\t\t${({ disabled }) => disabled && `opacity: 0.5;`}\n\n\t\t&.no-label {\n\t\t\tpadding: ${rem(8)} 0;\n\t\t\tborder-radius: ${rem(8)};\n\t\t}\n\n\t\t.label {\n\t\t\tmargin-left: ${rem(6)};\n\t\t\ttext-overflow: ellipsis;\n\t\t\tmax-width: 300px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t}\n\t`,\n\ticon: styled.div<{ size: number }>(\n\t\t({ size }) => `\n\t\t\tposition: relative;\n\t\t\twidth: ${rem(size)};\n\t\t\theight: ${rem(size)};\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tflex-shrink: 0;\n\n\t\t\tsvg {\n\t\t\t\tfont-size: ${rem(size)};\n\t\t\t}\n\n\t\t\t.badge {\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 60%;\n\t\t\t\tbottom: 60%;\n\t\t\t}\n\t`,\n\t),\n};\n\nexport function Item({\n\ticon,\n\ticonActive,\n\ticonSize,\n\tto: _to,\n\tlabel,\n\tbadgeNumber,\n\tdisabled,\n\t__TEMP__navigate,\n\t...rest\n}: Props): JSX.Element {\n\tconst [isHovering, setIsHovering] = useState<boolean>(false);\n\n\tconst [to, isCurrentPage] = useRouteDetails(_to);\n\n\treturn (\n\t\t<elements.link\n\t\t\tto={to}\n\t\t\tisCurrentPage={isCurrentPage}\n\t\t\tdisabled={disabled}\n\t\t\tonMouseEnter={() => setIsHovering(true)}\n\t\t\tonMouseLeave={() => setIsHovering(false)}\n\t\t\t__TEMP__to={to}\n\t\t\t__TEMP__navigate={__TEMP__navigate}\n\t\t\tclassName={classNames({ 'no-label': !label, isCurrentPage })}\n\t\t\t{...rest}\n\t\t>\n\t\t\t<Layout padding={`0 ${rem(8)}`} width={[null]} height={[null]} direction='row' alignment='center'>\n\t\t\t\t<elements.icon size={iconSize ?? 32}>\n\t\t\t\t\t{badgeNumber != null && badgeNumber > 0 ? (\n\t\t\t\t\t\t<div className='badge'>\n\t\t\t\t\t\t\t<BadgeNumber decorative value={badgeNumber} clampMax={99} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t) : null}\n\n\t\t\t\t\t<Icon type={(isCurrentPage || isHovering) && !disabled ? iconActive : icon} />\n\t\t\t\t</elements.icon>\n\t\t\t\t{label && <span className='label'>{label}</span>}\n\t\t\t</Layout>\n\t\t</elements.link>\n\t);\n}\n","import { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { AnalyticAction } from '@application/analytic/analytic.service';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { useSelectedEntrance } from '../../../application/use_selected_entrance';\nimport { Item } from '../_item.component';\n\ninterface Props {\n\t__TEMP__navigate?: (url: string) => void;\n\ttrackEvent(event: AnalyticAction): void;\n}\n\nexport function LinkReceptionPicker({ trackEvent, __TEMP__navigate }: Props): JSX.Element {\n\tconst licenceHolderService = useService(LicenceHolderService);\n\tconst [entrance] = useSelectedEntrance();\n\n\tfunction handleClick(): void {\n\t\ttrackEvent('Clicked: Reception-tab');\n\t}\n\n\treturn (\n\t\t<Item\n\t\t\tto={`/${entrance?.route ?? `${licenceHolderService.alias}/change-unit`}`}\n\t\t\ticon='units'\n\t\t\ticonActive='units_filled'\n\t\t\tlabel={entrance?.name || withTranslation('PW.Component.Header.Picker.Reception.Label')}\n\t\t\tdata-testid='header_link_units'\n\t\t\t__TEMP__navigate={__TEMP__navigate}\n\t\t\tonClick={handleClick}\n\t\t/>\n\t);\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\n\n/**\n * Service that tracks the number of unhandled issues that the user needs to\n * take action on.\n */\n@Singleton()\nexport class UnhandledIssuesService {\n\tpublic issues: Issue[] = [];\n\tprivate hasScheduled = false;\n\tprivate callbacks: Callback[] = [];\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\t/**\n\t * Registers a new issue.\n\t */\n\tpublic addIssue(trackedBy: string, groupedBy?: string[]): void {\n\t\tthis.issues.push(new Issue(trackedBy, groupedBy ?? []));\n\n\t\tthis.scheduleUpdate();\n\t}\n\n\t/**\n\t * Returns a count of issues, either all or grouped by the given grouping tags.\n\t */\n\tpublic count(filterByTags?: string[], issues = this.issues): number {\n\t\tif (filterByTags == null || filterByTags.length === 0) return issues.length;\n\n\t\treturn issues.filter((issue) => {\n\t\t\treturn issue.tags.some((tag) => filterByTags.includes(tag));\n\t\t}).length;\n\t}\n\n\t/**\n\t * Returns a count of issues from a tracking id, either all or grouped by the given grouping tags.\n\t */\n\tpublic getCountByIssuesById(tackingId: string, filterByTags?: string[]): number {\n\t\tconst issues = this.issues.filter((issue) => issue.trackingId === tackingId);\n\n\t\treturn this.count(filterByTags, issues);\n\t}\n\n\t/**\n\t * Invalidates issues matching the given tracking id, removing them to be\n\t * counted.\n\t */\n\tpublic removeIssuesByTrackingId(trackingId: string): void;\n\tpublic removeIssuesByTrackingId(...trackingIds: string[]): void;\n\tpublic removeIssuesByTrackingId(...args: string[]): void {\n\t\tconst lengthBefore = this.callbacks.length;\n\n\t\tconst trackingIds = Array.isArray(args) ? args : [args];\n\t\tfor (const trackingId of trackingIds) {\n\t\t\tthis.issues = this.issues.filter((issue) => issue.trackingId !== trackingId);\n\t\t}\n\n\t\tif (this.issues.length === lengthBefore) return;\n\n\t\tthis.scheduleUpdate();\n\t}\n\n\t/**\n\t * Issues are not deeply tracked. And multiple similar instances could exist\n\t * simultaneously. So removing one \"arbitrary\" by matching tags is equal to\n\t * finding a specific one.\n\t */\n\tpublic removeArbitraryIssue(trackingId: string, mustBeTagAs: string): void;\n\tpublic removeArbitraryIssue(trackingId: string, mustBeTagAs: string[]): void;\n\tpublic removeArbitraryIssue(trackingId: string, _mustBeTagAs: string | string[]): void {\n\t\tconst mustBeTagAs = (Array.isArray(_mustBeTagAs) ? _mustBeTagAs : [_mustBeTagAs]) as string[];\n\n\t\tconst lengthBefore = this.issues.length;\n\n\t\tconst foundMatch = this.issues.findIndex((issue) => {\n\t\t\tif (issue.trackingId !== trackingId) return false;\n\n\t\t\tlet matches = 0;\n\t\t\tfor (const tag of issue.tags) {\n\t\t\t\tif (mustBeTagAs.includes(tag)) {\n\t\t\t\t\tmatches++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn matches >= mustBeTagAs.length;\n\t\t});\n\n\t\tif (foundMatch === -1) return;\n\n\t\tthis.issues.splice(foundMatch, 1);\n\n\t\tif (this.issues.length === lengthBefore) return;\n\n\t\tthis.scheduleUpdate();\n\t}\n\n\tpublic removeIssuesByTag(trackingId: string, mustBeTagAs: string): void;\n\tpublic removeIssuesByTag(trackingId: string, mustBeTagAs: string[]): void;\n\tpublic removeIssuesByTag(trackingId: string, _mustBeTagAs: string | string[]): void {\n\t\tconst mustBeTagAs = (Array.isArray(_mustBeTagAs) ? _mustBeTagAs : [_mustBeTagAs]) as string[];\n\n\t\tconst lengthBefore = this.issues.length;\n\t\tthis.issues = this.issues.filter((issue) => {\n\t\t\tif (issue.trackingId !== trackingId) return true;\n\n\t\t\treturn !issue.tags.some((tag) => mustBeTagAs.includes(tag));\n\t\t});\n\n\t\tif (this.issues.length === lengthBefore) return;\n\n\t\tthis.scheduleUpdate();\n\t}\n\n\t/**\n\t * Registers a callback to be called when issues are being added or invalidated.\n\t */\n\tpublic onChange(callback: Callback): Disposer {\n\t\tthis.callbacks.push(callback);\n\n\t\treturn () => {\n\t\t\tconst index = this.callbacks.findIndex((cb) => cb === callback);\n\t\t\tthis.callbacks.splice(index, 1);\n\t\t};\n\t}\n\n\tprivate scheduleUpdate(): void {\n\t\tif (this.hasScheduled) return;\n\n\t\tthis.hasScheduled = true;\n\n\t\tqueueMicrotask(() => {\n\t\t\tfor (const callback of this.callbacks) {\n\t\t\t\tcallback();\n\t\t\t}\n\n\t\t\tthis.hasScheduled = false;\n\t\t});\n\t}\n}\n\nclass Issue {\n\tpublic readonly trackingId: string;\n\tpublic readonly tags: Readonly<string>[] = [];\n\n\tconstructor(trackedBy: string, groupedBy: string[]) {\n\t\tthis.trackingId = trackedBy;\n\t\tthis.tags = groupedBy;\n\t}\n}\n\nexport type Callback = () => void;\nexport type Disposer = () => void;\n","import { useService } from '@visiba-cortex/instantiation';\nimport { useEffect, useReducer } from 'react';\nimport { UnhandledIssuesService } from './unhandled_issues.service';\n\n/**\n * Hook that taps into the UnhandledIssuesService, counting the number of issues.\n */\nexport function useCountedIssues(filterByTags?: string[]): number {\n\tconst unhandledIssuesService = useService(UnhandledIssuesService);\n\tconst [, forceUpdate] = useReducer((x) => x + 1, 0);\n\n\tuseEffect(\n\t\tfunction whenHookIsMounted() {\n\t\t\treturn unhandledIssuesService.onChange(() => {\n\t\t\t\tforceUpdate();\n\t\t\t});\n\t\t},\n\t\t[unhandledIssuesService],\n\t);\n\n\tuseEffect(\n\t\tfunction whenFilterIsChanged() {\n\t\t\tforceUpdate();\n\t\t},\n\t\t// We might need to use something like: https://github.com/kentcdodds/use-deep-compare-effect\n\t\t[...(filterByTags ?? [])],\n\t);\n\n\treturn unhandledIssuesService.count(filterByTags);\n}\n","import { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { AnalyticAction } from '@application/analytic/analytic.service';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { useCountedIssues } from '@services/unhandled_issues.service/use_counted_issues';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { Item } from '../_item.component';\n\ninterface Props {\n\t__TEMP__navigate?: (url: string) => void;\n\ttrackEvent(event: AnalyticAction): void;\n}\n\nexport function LinkMyCases({ trackEvent, __TEMP__navigate }: Props): JSX.Element {\n\tconst countedIssues = useCountedIssues(['ongoing', 'completed']);\n\tconst licenceHolderService = useService(LicenceHolderService);\n\n\tfunction handleClick(): void {\n\t\ttrackEvent('Clicked: My cases-tab');\n\t}\n\n\treturn (\n\t\t<Item\n\t\t\tto={`/${licenceHolderService.alias}/visits`}\n\t\t\ticon='visits'\n\t\t\ticonActive='visits_filled'\n\t\t\tlabel={withTranslation('PW.Component.Header.Picker.Visit.Label')}\n\t\t\tdata-testid='header_link_visits'\n\t\t\tbadgeNumber={countedIssues}\n\t\t\t__TEMP__navigate={__TEMP__navigate}\n\t\t\tonClick={handleClick}\n\t\t/>\n\t);\n}\n","import { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { AnalyticAction } from '@application/analytic/analytic.service';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { Item } from '../_item.component';\n\ninterface Props {\n\t__TEMP__navigate?: (url: string) => void;\n\ttrackEvent(event: AnalyticAction): void;\n}\n\nexport function LinkHome({ trackEvent, __TEMP__navigate }: Props): JSX.Element {\n\tconst licenceHolderService = useService(LicenceHolderService);\n\n\tfunction handleClick(): void {\n\t\ttrackEvent('Clicked: Home-tab');\n\t}\n\n\treturn (\n\t\t<Item\n\t\t\tto={`/${licenceHolderService.alias}`}\n\t\t\ticon='home'\n\t\t\ticonActive='home_filled'\n\t\t\tlabel={withTranslation('PW.Component.Header.Picker.Home.Label')}\n\t\t\tdata-testid='header_link_home'\n\t\t\t__TEMP__navigate={__TEMP__navigate}\n\t\t\tonClick={handleClick}\n\t\t/>\n\t);\n}\n","import { ConfigService } from '@services/config.service';\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport { UnitService } from '@services/unit.service';\nimport { Scoped } from '@visiba-cortex/instantiation';\nimport { Presentation, SynchronousPresentation } from '@visiba-cortex/presentation';\n\ninterface PresentationModel {\n\tshowLinkHome: boolean;\n\tshowLinkMyCases: boolean;\n\tshowLinkReceptionPicker: boolean;\n}\n\n// Source behind the logic within this controller.\n// https://visibacare.slack.com/archives/CQ49U5C94/p1630938970003700?thread_ts=1623237044.004700&cid=CQ49U5C94\n\n@Scoped()\nexport class HeaderNavController {\n\tpublic readonly presentation: SynchronousPresentation<PresentationModel>;\n\n\tconstructor(\n\t\tprivate readonly unitService: UnitService,\n\t\tprivate readonly configService: ConfigService,\n\t\tprivate readonly locationSelectorService: LocationSelectorService,\n\t) {\n\t\tthis.presentation = Presentation.create({\n\t\t\tshowLinkHome: this.willShowHomeLink(),\n\t\t\tshowLinkReceptionPicker: this.willShowReceptionPickerLink(),\n\t\t\tshowLinkMyCases: true,\n\t\t});\n\t}\n\n\tprivate willShowHomeLink(): boolean {\n\t\t// Customer case:\n\t\t// - One one visible reception\n\t\t// We don't want to show the home link to customers that only have one\n\t\t// visible reception.\n\t\treturn this.configService.getConfig(this.locationSelectorService.locationUnitId).hasMultipleLandingPages;\n\t}\n\n\tprivate willShowReceptionPickerLink(): boolean {\n\t\t// Customer cases:\n\t\t// - Show for a configuration with any listable reception.\n\t\t// If any reception is tagged as listable, we show the reception picker link.\n\t\t// - Hide for a configuration with no listable reception.\n\t\t// If for some reason this scenario is possible, we'd want to hide the\n\t\t// reception picker since a user cannot pick any reception.\n\t\tlet isVisible = false;\n\t\tfor (const unit of this.unitService.units.values()) {\n\t\t\tif (unit.isEntrance && unit.isListed) {\n\t\t\t\tisVisible = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn isVisible;\n\t}\n}\n","import styled from 'styled-components';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { usePresentation } from '@visiba-cortex/presentation';\nimport { AnalyticAction } from '@application/analytic/analytic.service';\nimport { LinkReceptionPicker } from './_header_nav_link_reception_picker.component';\nimport { LinkMyCases } from './_header_nav_link_my_cases.component';\nimport { LinkHome } from './_header_nav_link_home.component';\nimport { HeaderNavController } from '@controllers/header_nav.controller';\nimport { tokens } from '@cellula/react-theme-patient';\n\ninterface Props {\n\ttrackEvent: (action: AnalyticAction) => void;\n\t__TEMP__navigate?: (url: string) => void;\n}\n\nconst elements = {\n\twrapper: styled.div`\n\t\tdisplay: none;\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tdisplay: grid;\n\t\t\tgrid-template-columns: repeat(3, 1fr);\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t`,\n};\n\nexport function Nav({ __TEMP__navigate, trackEvent }: Props): JSX.Element {\n\tconst headerNavController = useService(HeaderNavController);\n\tconst { showLinkHome, showLinkReceptionPicker, showLinkMyCases } = usePresentation(headerNavController.presentation);\n\n\tfunction handleClick(action: AnalyticAction): void {\n\t\ttrackEvent(action);\n\t}\n\n\treturn (\n\t\t<elements.wrapper>\n\t\t\t{showLinkHome ? <LinkHome trackEvent={handleClick} __TEMP__navigate={__TEMP__navigate} /> : null}\n\t\t\t{showLinkReceptionPicker ? <LinkReceptionPicker trackEvent={handleClick} __TEMP__navigate={__TEMP__navigate} /> : null}\n\t\t\t{showLinkMyCases ? <LinkMyCases trackEvent={handleClick} __TEMP__navigate={__TEMP__navigate} /> : null}\n\t\t</elements.wrapper>\n\t);\n}\n","import { SyntheticEvent } from 'react';\nimport { Layout, Spacer, Text } from '@visiba-cortex/react-ui-std';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { AnalyticAction } from '@application/analytic/analytic.service';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport styled from 'styled-components';\nimport { VisibaLink } from '@components/visiba-link.component';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { Icon, Button } from '@cellula/react';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport { useFeatureFlag } from '@services/feature_flag/use_feature_flag';\nimport { useUser } from '@services/auth/use_user';\nimport { AuthService } from '@services/auth/auth.service';\nimport { RouterService } from '@services/router.service';\nimport { IdentityApiService } from '@api/identity_api.service';\n\ninterface Props {\n\t__TEMP__onSignIn?: () => void;\n\t__TEMP__onSignOut?: () => void;\n\t__TEMP__navigate?(url: string): void;\n\t__TEMP__changeLanguage?(langCode: string): void;\n\ttrackEvent: (action: AnalyticAction) => void;\n}\n\nconst elements = {\n\thideOnMobile: styled.div`\n\t\tdisplay: none;\n\t\tuser-select: none;\n\t\tpointer-events: none;\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tdisplay: contents;\n\t\t\tuser-select: unset;\n\t\t\tpointer-events: unset;\n\t\t}\n\t`,\n\tusernameWrapper: styled(VisibaLink)`\n\t\tuser-select: none;\n\t\tpointer-events: none;\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tuser-select: unset;\n\t\t\tpointer-events: unset;\n\t\t}\n\t`,\n\tuserName: styled.div`\n\t\tmax-width: 100px;\n\t\tfont: ${tokens.text.body.regular};\n\t\tcolor: ${primitiveColorTokens.primary[1000]};\n\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tpadding: 0 ${tokens.spacing.x1};\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tmax-width: unset;\n\t\t}\n\n\t\tp {\n\t\t\twhite-space: pre;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\t`,\n};\n\nexport function CallToAction({\n\t__TEMP__onSignIn,\n\t__TEMP__onSignOut,\n\t__TEMP__navigate,\n\t__TEMP__changeLanguage,\n\ttrackEvent,\n}: Props): JSX.Element {\n\tconst licenceHolderService = useService(LicenceHolderService);\n\tconst routerService = useService(RouterService);\n\tconst authService = useService(AuthService);\n\n\tconst user = useUser();\n\n\tconst myAccountUrl = `/${licenceHolderService.alias}/my-account`;\n\n\tfunction handleAuthClick(_: SyntheticEvent<HTMLButtonElement>): void {\n\t\tif (user == null) {\n\t\t\ttrackEvent('Clicked: Login-button');\n\t\t\tif (__TEMP__onSignIn) {\n\t\t\t\t__TEMP__onSignIn();\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// TODO: New patient web sign-in flow\n\n\t\t\treturn;\n\t\t}\n\n\t\thandleSignOutClick();\n\t}\n\n\tfunction handleSignOutClick(): void {\n\t\ttrackEvent('Clicked: Logout-button');\n\n\t\tauthService.terminateActiveIdentity().then(() => {\n\t\t\tconst url = '/' + licenceHolderService.alias;\n\t\t\tif (!window.__TEMP__) {\n\t\t\t\trouterService.navigateByUrl(url);\n\t\t\t} else {\n\t\t\t\t__TEMP__onSignOut?.();\n\t\t\t}\n\t\t});\n\t}\n\n\tfunction handleNameClick(): void {\n\t\ttrackEvent('Clicked: Profile');\n\t}\n\n\treturn (\n\t\t<Layout alignment='leading' direction='row'>\n\t\t\t{user ? (\n\t\t\t\t<elements.usernameWrapper\n\t\t\t\t\taria-label={I18nAndL10n.translate('PW.Component.Header.Cta.ProfileSettings.Aria', {\n\t\t\t\t\t\text: '',\n\t\t\t\t\t})}\n\t\t\t\t\tto={myAccountUrl}\n\t\t\t\t\t__TEMP__to={myAccountUrl}\n\t\t\t\t\t__TEMP__navigate={__TEMP__navigate}\n\t\t\t\t\tonClick={() => handleNameClick()}\n\t\t\t\t>\n\t\t\t\t\t<elements.userName>\n\t\t\t\t\t\t<elements.hideOnMobile>\n\t\t\t\t\t\t\t<Icon type='user' />\n\t\t\t\t\t\t\t<Spacer width={tokens.spacing.x1} />\n\t\t\t\t\t\t</elements.hideOnMobile>\n\n\t\t\t\t\t\t<Text.p>{user.commonName}</Text.p>\n\t\t\t\t\t</elements.userName>\n\t\t\t\t</elements.usernameWrapper>\n\t\t\t) : null}\n\n\t\t\t<Spacer width={tokens.spacing.x2} />\n\n\t\t\t<AuthButton onClick={handleAuthClick} />\n\t\t</Layout>\n\t);\n}\n\nfunction AuthButton(props: { onClick: (event: SyntheticEvent<HTMLButtonElement>) => void }) {\n\tconst user = useUser();\n\tconst licenceHolderService = useService(LicenceHolderService);\n\tconst identityApiService = useService(IdentityApiService);\n\tconst flag = useFeatureFlag('CareExperience.PW.Idp');\n\n\tif (flag) {\n\t\tif (user != null) {\n\t\t\treturn (\n\t\t\t\t<form\n\t\t\t\t\taction={identityApiService.getSignOutPath(`/${licenceHolderService.alias}`)}\n\t\t\t\t\tmethod='post'\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tdisplay: 'contents',\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Button type='submit' size='medium' variant='primary'>\n\t\t\t\t\t\t{withTranslation('Common.Button.SignOut')}\n\t\t\t\t\t</Button>\n\t\t\t\t</form>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Button data-testid='loginButton' size='medium' variant='primary' onClick={props.onClick}>\n\t\t\t\t{withTranslation('Common.Button.SignIn')}\n\t\t\t</Button>\n\t\t);\n\t}\n\n\treturn (\n\t\t<Button data-testid='loginButton' size='medium' variant='primary' onClick={props.onClick}>\n\t\t\t{user != null ? withTranslation('Common.Button.SignOut') : withTranslation('Common.Button.SignIn')}\n\t\t</Button>\n\t);\n}\n","import { useService } from '@visiba-cortex/instantiation';\nimport { AnalyticAction } from '@application/analytic/analytic.service';\nimport { VisibaLink } from '@components/visiba-link.component';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { getAbsoluteRoute } from '@helpers/route';\nimport { AspectRatio } from '@cellula/react';\nimport { useCurrentLocation } from '@src/application/use_current_location';\n\ninterface Props {\n\tlocationName?: string;\n\t__TEMP__navigate?(url: string): void;\n\ttrackEvent?: (action: AnalyticAction) => void;\n\tlogoUrl?: string;\n\tsize?: 'small' | 'medium' | 'large';\n}\n\nexport function Logo({ trackEvent, __TEMP__navigate, logoUrl, locationName, size = 'medium' }: Props): JSX.Element {\n\tconst licenceHolderService = useService(LicenceHolderService);\n\tconst [_, config] = useCurrentLocation();\n\n\tlet width: number;\n\tswitch (size) {\n\t\tcase 'small':\n\t\t\twidth = 48;\n\t\t\tbreak;\n\t\tcase 'medium':\n\t\t\twidth = 96;\n\t\t\tbreak;\n\t\tcase 'large':\n\t\t\twidth = 128;\n\t\t\tbreak;\n\t}\n\n\tconst customerLogo = logoUrl ?? (config?.theme.EmailLogoUrl as string | undefined);\n\n\tfunction handleClick(): void {\n\t\ttrackEvent?.('Clicked: Logo');\n\t}\n\n\treturn (\n\t\t<VisibaLink\n\t\t\ttabIndex={-1}\n\t\t\tonClick={handleClick}\n\t\t\tto={`/${getAbsoluteRoute(licenceHolderService.alias)}`}\n\t\t\t__TEMP__to={`/${licenceHolderService.alias}`}\n\t\t\t__TEMP__navigate={__TEMP__navigate}\n\t\t>\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\twidth: width,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<AspectRatio.Root ratio={2}>\n\t\t\t\t\t{customerLogo ? (\n\t\t\t\t\t\t<img\n\t\t\t\t\t\t\tsrc={customerLogo}\n\t\t\t\t\t\t\talt=''\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tobjectFit: 'contain',\n\t\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t\t\t\tborderRadius: 'var(--radius-2)',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<span>{locationName}</span>\n\t\t\t\t\t)}\n\t\t\t\t</AspectRatio.Root>\n\t\t\t</div>\n\t\t</VisibaLink>\n\t);\n}\n","\"use client\";\n\n// packages/react/dialog/src/Dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContext, createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: forwardedRef,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n useFocusGuards();\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: composedRefs,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ),\n /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })\n ] })\n ] });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar TITLE_WARNING_NAME = \"DialogTitleWarning\";\nvar [WarningProvider, useWarningContext] = createContext(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"dialog\"\n});\nvar TitleWarning = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n return null;\n};\nvar DESCRIPTION_WARNING_NAME = \"DialogDescriptionWarning\";\nvar DescriptionWarning = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute(\"aria-describedby\");\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n return null;\n};\nvar Root = Dialog;\nvar Trigger = DialogTrigger;\nvar Portal = DialogPortal;\nvar Overlay = DialogOverlay;\nvar Content = DialogContent;\nvar Title = DialogTitle;\nvar Description = DialogDescription;\nvar Close = DialogClose;\nexport {\n Close,\n Content,\n Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n Overlay,\n Portal,\n Root,\n Title,\n Trigger,\n WarningProvider,\n createDialogScope\n};\n","import styled from 'styled-components';\nimport * as PrimitiveRadixDialog from '@radix-ui/react-dialog';\nimport { Flex, Icon, VisuallyHidden, IconDictionary, BadgeNumber } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Fragment, MouseEvent, ReactNode } from 'react';\nimport { useUser } from '@services/auth/use_user';\nimport { VisibaLink } from '@components/visiba-link.component';\nimport classNames from 'classnames';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { useRouteDetails } from '../_use_route_details';\nimport { useAnalyticContext } from '@components/analytic_link/analytic_link.provider';\nimport { AnalyticService } from '@application/analytic/analytic.service';\nimport { useService } from '@visiba-cortex/instantiation';\n\ntype ValidIcons = Extract<keyof IconDictionary, 'house' | 'medicalPlus' | 'archive' | 'user'>;\n\ninterface ListItemProps {\n\tto: string;\n\tchildren: ReactNode;\n\tauthenticate?: boolean;\n\ticon: ValidIcons;\n\tbadgeCount?: number;\n\tanalyticQuirk__text?: string;\n}\n\nconst StyledListItem = styled(VisibaLink)`\n\tmin-height: 48px;\n\tpadding: ${tokens.spacing.x1_5} ${tokens.spacing.x2};\n\tcolor: ${tokens.color.content.interactive};\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 100%;\n\tborder-radius: ${tokens.borderRadius.medium};\n\ttransition:\n\t\topacity 150ms ease-in-out,\n\t\tbackground-color 150ms ease-in-out;\n\tfont: ${tokens.text.label.regular};\n\tgap: ${tokens.spacing.x1_5};\n\n\t&.isCurrentPage {\n\t\tfont: ${tokens.text.label.semiBold};\n\t\tbackground-color: ${tokens.color.bg.interactiveMutedActive};\n\t}\n\n\t&.isDisabled {\n\t\topacity: 0.7;\n\t}\n\n\t&:not(&.isDisabled) {\n\t\t@media (hover: hover) {\n\t\t\t&:hover {\n\t\t\t\tbackground-color: ${tokens.color.bg.interactiveMutedActive};\n\t\t\t}\n\t\t}\n\t}\n`;\n\nexport function MenuListItem({\n\tbadgeCount,\n\ticon,\n\tto: _to,\n\tauthenticate,\n\tanalyticQuirk__text = '',\n\tchildren,\n}: ListItemProps): JSX.Element {\n\tconst user = useUser();\n\tconst [to, isCurrentPage] = useRouteDetails(_to);\n\tconst isDisabled = authenticate && user == null;\n\tconst analyticCategory = useAnalyticContext();\n\tconst analyticService = useService(AnalyticService);\n\n\tfunction analyticQuirk_handleClick(): void {\n\t\tanalyticService.trackEvent(analyticCategory, 'Clicked: ' + analyticQuirk__text);\n\t}\n\n\tfunction handleClick(event: MouseEvent<HTMLAnchorElement>): void {\n\t\tanalyticQuirk_handleClick();\n\t}\n\n\treturn (\n\t\t<li>\n\t\t\t<PrimitiveRadixDialog.Close asChild>\n\t\t\t\t<StyledListItem\n\t\t\t\t\tto={to}\n\t\t\t\t\t__TEMP__to={to}\n\t\t\t\t\t__TEMP__navigate={window.__TEMP__overrideNavigation}\n\t\t\t\t\tclassName={classNames({\n\t\t\t\t\t\tisCurrentPage,\n\t\t\t\t\t\tisDisabled,\n\t\t\t\t\t})}\n\t\t\t\t\taria-disabled={isDisabled}\n\t\t\t\t\tonClick={handleClick}\n\t\t\t\t>\n\t\t\t\t\t<Icon size='small' type={isCurrentPage ? retrieveActiveIcon(icon) : icon} />\n\t\t\t\t\t<Flex grow={1}>{children}</Flex>\n\n\t\t\t\t\t{badgeCount != null ? (\n\t\t\t\t\t\t<BadgeNumber\n\t\t\t\t\t\t\tlabel={withTranslation(badgeCount === 1 ? 'C.Component.Bar.NewMessage.Singular' : 'C.Component.Bar.NewMessage.Plural', {\n\t\t\t\t\t\t\t\tnumber: `${badgeCount}`,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\tvalue={badgeCount}\n\t\t\t\t\t\t/>\n\t\t\t\t\t) : null}\n\n\t\t\t\t\t{isDisabled ? (\n\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t<Icon size='small' type='padLockKey' />\n\t\t\t\t\t\t\t<VisuallyHidden>{withTranslation('PW.Component.Header.NavigationMenu.Item.DisabledText')}</VisuallyHidden>\n\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t) : null}\n\t\t\t\t</StyledListItem>\n\t\t\t</PrimitiveRadixDialog.Close>\n\t\t</li>\n\t);\n}\n\nfunction retrieveActiveIcon(icon: ValidIcons): keyof IconDictionary {\n\tswitch (icon) {\n\t\tcase 'house':\n\t\t\treturn 'houseFilled';\n\t\tcase 'medicalPlus':\n\t\t\treturn 'medicalPlusFilled';\n\t\tcase 'user':\n\t\t\treturn 'userFilled';\n\t\tcase 'archive':\n\t\t\treturn 'archiveFilled';\n\t\tdefault:\n\t\t\treturn 'appleLogo';\n\t}\n}\n","import * as PrimitiveRadixDialog from '@radix-ui/react-dialog';\nimport styled from 'styled-components';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Flex, IconButton, SafeArea, Spacer, VisuallyHidden, Button, Stack, Text } from '@cellula/react';\nimport { AnalyticProvider, useAnalyticContext } from '@components/analytic_link/analytic_link.provider';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { MenuListItem } from './_header_navigation_menu_list_item.component';\nimport { useSelectedEntrance } from '@src/application/use_selected_entrance';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { HeaderNavController } from '@controllers/header_nav.controller';\nimport { usePresentation } from '@visiba-cortex/presentation';\nimport { useUser } from '@services/auth/use_user';\nimport { motion, Variants } from 'framer-motion';\nimport { RouterService } from '@services/router.service';\nimport { AuthService } from '@services/auth/auth.service';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { SyntheticEvent, Fragment } from 'react';\nimport { useCountedIssues } from '@services/unhandled_issues.service/use_counted_issues';\nimport { useFeatureFlag } from '@services/feature_flag/use_feature_flag';\nimport { IdentityApiService } from '@api/identity_api.service';\n\ninterface TEMP_PROPS {\n\t__TEMP__onSignIn?: () => void;\n\t__TEMP__onSignOut?: () => void;\n}\n\nconst StyledDialogContent = styled(PrimitiveRadixDialog.Content)`\n\tinset: 0;\n\tposition: fixed;\n\tz-index: calc(var(--Z_INDEX_HACK, 0));\n\tdisplay: flex;\n\tflex: 1;\n\n\t&:before {\n\t\tcontent: '';\n\t\ttop: 0;\n\t\tleft: 0;\n\t\twidth: 200%;\n\t\theight: 200%;\n\t\tposition: absolute;\n\t\tbackground: ${tokens.color.bg.page};\n\t\tz-index: -1;\n\t}\n`;\n\nconst StyledContent = styled(motion.div)`\n\tposition: fixed;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbackground: ${tokens.color.bg.surface};\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tz-index: calc(var(--Z_INDEX_HACK, 0));\n`;\n\nconst StyledHeader = styled.header`\n\tmin-height: ${tokens.size.x6};\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\twidth: 100%;\n\tcolor: ${tokens.color.content.interactive};\n`;\n\nconst sidebarVariants: Variants = {\n\topen: () => ({\n\t\ttransition: {\n\t\t\ttype: 'spring',\n\t\t\tstiffness: 40,\n\t\t\trestDelta: 2,\n\t\t},\n\t\tx: 0,\n\t}),\n\tclosed: {\n\t\ttransition: {\n\t\t\tdelay: 0.1,\n\t\t\ttype: 'spring',\n\t\t\tstiffness: 400,\n\t\t\tdamping: 40,\n\t\t},\n\t\tx: '100%',\n\t},\n};\n\ninterface Props extends TEMP_PROPS {}\n\nexport function NavigationMenu(props: Props): JSX.Element {\n\tconst AS_TEMP_PROPS = props;\n\n\tconst [entrance] = useSelectedEntrance();\n\tconst licenceHolderService = useService(LicenceHolderService);\n\tconst headerNavController = useService(HeaderNavController);\n\tconst { showLinkHome, showLinkReceptionPicker, showLinkMyCases } = usePresentation(headerNavController.presentation);\n\tconst countedIssues = useCountedIssues(['ongoing', 'completed']);\n\tconst analyticService = useService(AnalyticService);\n\tconst user = useUser();\n\n\tfunction analyticQuirk_handleOpenMenuClick(): void {\n\t\tanalyticService.trackEvent(AnalyticCategories.TopNavigation, 'Clicked: menu opened');\n\t}\n\n\tfunction analyticQuirk_handleCloseMenuClick(): void {\n\t\tanalyticService.trackEvent(AnalyticCategories.TopNavigation, 'Clicked: menu closed');\n\t}\n\n\treturn (\n\t\t<AnalyticProvider category={AnalyticCategories.TopNavigation}>\n\t\t\t<PrimitiveRadixDialog.Root>\n\t\t\t\t<PrimitiveRadixDialog.Trigger asChild>\n\t\t\t\t\t<IconButton\n\t\t\t\t\t\tvariant='neutral'\n\t\t\t\t\t\ticon='menu'\n\t\t\t\t\t\ttooltipAlign='end'\n\t\t\t\t\t\tsize='small'\n\t\t\t\t\t\tonClick={analyticQuirk_handleOpenMenuClick}\n\t\t\t\t\t\ttext={withTranslation('PW.Component.Header.NavigationMenu.TriggerLabel')}\n\t\t\t\t\t/>\n\t\t\t\t</PrimitiveRadixDialog.Trigger>\n\n\t\t\t\t<PrimitiveRadixDialog.Portal>\n\t\t\t\t\t<StyledDialogContent asChild>\n\t\t\t\t\t\t<StyledContent\n\t\t\t\t\t\t\tvariants={sidebarVariants}\n\t\t\t\t\t\t\tinitial={{ x: '100%', opacity: 0 }}\n\t\t\t\t\t\t\tanimate={{ x: 0, opacity: 1 }}\n\t\t\t\t\t\t\texit={{\n\t\t\t\t\t\t\t\tx: 'calc(100% + 150px)',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\ttransition={{\n\t\t\t\t\t\t\t\ttype: 'spring',\n\t\t\t\t\t\t\t\tstiffness: 350,\n\t\t\t\t\t\t\t\tdamping: 30,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<SafeArea>\n\t\t\t\t\t\t\t\t<StyledHeader>\n\t\t\t\t\t\t\t\t\t<PrimitiveRadixDialog.Close asChild>\n\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\ttext={withTranslation('PW.Component.Header.NavigationMenu.Close')}\n\t\t\t\t\t\t\t\t\t\t\tsize='medium'\n\t\t\t\t\t\t\t\t\t\t\ticon='x'\n\t\t\t\t\t\t\t\t\t\t\tvariant='neutral'\n\t\t\t\t\t\t\t\t\t\t\ttooltipAlign='end'\n\t\t\t\t\t\t\t\t\t\t\tonClick={analyticQuirk_handleCloseMenuClick}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</PrimitiveRadixDialog.Close>\n\t\t\t\t\t\t\t\t</StyledHeader>\n\n\t\t\t\t\t\t\t\t<VisuallyHidden>\n\t\t\t\t\t\t\t\t\t<PrimitiveRadixDialog.Title>\n\t\t\t\t\t\t\t\t\t\t{withTranslation('PW.Component.Header.NavigationMenu.Title')}\n\t\t\t\t\t\t\t\t\t</PrimitiveRadixDialog.Title>\n\t\t\t\t\t\t\t\t\t<PrimitiveRadixDialog.Description>\n\t\t\t\t\t\t\t\t\t\t{withTranslation('PW.Component.Header.NavigationMenu.Description')}\n\t\t\t\t\t\t\t\t\t</PrimitiveRadixDialog.Description>\n\t\t\t\t\t\t\t\t</VisuallyHidden>\n\n\t\t\t\t\t\t\t\t<Flex as='ul' gap={tokens.spacing.x1} fluid='horizontal'>\n\t\t\t\t\t\t\t\t\t{showLinkHome ? (\n\t\t\t\t\t\t\t\t\t\t<MenuListItem analyticQuirk__text='Home-tab' to={licenceHolderService.alias} icon='house'>\n\t\t\t\t\t\t\t\t\t\t\t{withTranslation('PW.Component.Header.NavigationMenu.Home')}\n\t\t\t\t\t\t\t\t\t\t</MenuListItem>\n\t\t\t\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t\t\t\t{showLinkReceptionPicker ? (\n\t\t\t\t\t\t\t\t\t\t<MenuListItem\n\t\t\t\t\t\t\t\t\t\t\tanalyticQuirk__text={'Reception-tab'}\n\t\t\t\t\t\t\t\t\t\t\tto={entrance?.route ? entrance.route : `${licenceHolderService.alias}/change-unit`}\n\t\t\t\t\t\t\t\t\t\t\ticon='medicalPlus'\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{entrance?.name || withTranslation('PW.Component.Header.NavigationMenu.Reception')}\n\t\t\t\t\t\t\t\t\t\t</MenuListItem>\n\t\t\t\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t\t\t\t{showLinkMyCases ? (\n\t\t\t\t\t\t\t\t\t\t<MenuListItem\n\t\t\t\t\t\t\t\t\t\t\tanalyticQuirk__text={user == null ? 'My cases-tab (not signed-in)' : 'My cases-tab '}\n\t\t\t\t\t\t\t\t\t\t\tto={`${licenceHolderService.alias}/visits`}\n\t\t\t\t\t\t\t\t\t\t\ticon='archive'\n\t\t\t\t\t\t\t\t\t\t\tauthenticate\n\t\t\t\t\t\t\t\t\t\t\tbadgeCount={countedIssues}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{withTranslation('PW.Component.Header.NavigationMenu.Visits')}\n\t\t\t\t\t\t\t\t\t\t</MenuListItem>\n\t\t\t\t\t\t\t\t\t) : null}\n\n\t\t\t\t\t\t\t\t\t<MenuListItem\n\t\t\t\t\t\t\t\t\t\tanalyticQuirk__text={`${'My account'}${user == null} ? ' (not signed-in) : ''`}\n\t\t\t\t\t\t\t\t\t\tto={`${licenceHolderService.alias}/my-account`}\n\t\t\t\t\t\t\t\t\t\ticon='user'\n\t\t\t\t\t\t\t\t\t\tauthenticate\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{withTranslation('PW.Component.Header.NavigationMenu.MyAccount')}\n\t\t\t\t\t\t\t\t\t</MenuListItem>\n\t\t\t\t\t\t\t\t</Flex>\n\n\t\t\t\t\t\t\t\t<AuthButtonSection {...AS_TEMP_PROPS} />\n\n\t\t\t\t\t\t\t\t<Spacer vertical={tokens.spacing.x2} />\n\t\t\t\t\t\t\t</SafeArea>\n\t\t\t\t\t\t</StyledContent>\n\t\t\t\t\t</StyledDialogContent>\n\t\t\t\t</PrimitiveRadixDialog.Portal>\n\t\t\t</PrimitiveRadixDialog.Root>\n\t\t</AnalyticProvider>\n\t);\n}\n\ninterface AuthButtonSectionProps extends TEMP_PROPS {}\n\nfunction AuthButtonSection({ __TEMP__onSignIn, __TEMP__onSignOut }: AuthButtonSectionProps): JSX.Element {\n\tconst licenceHolderService = useService(LicenceHolderService);\n\tconst authService = useService(AuthService);\n\tconst routerService = useService(RouterService);\n\tconst analyticService = useService(AnalyticService);\n\tconst category = useAnalyticContext();\n\n\tconst user = useUser();\n\n\tfunction handleSignInClick(_: SyntheticEvent<HTMLButtonElement>): void {\n\t\tif (user == null) {\n\t\t\tanalyticService.trackEvent(category, 'Clicked: Login-button');\n\n\t\t\tif (__TEMP__onSignIn) {\n\t\t\t\t__TEMP__onSignIn();\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction handleSignOutClick(): void {\n\t\tauthService.terminateActiveIdentity().then(() => {\n\t\t\tconst url = '/' + licenceHolderService.alias;\n\t\t\tif (!window.__TEMP__) {\n\t\t\t\trouterService.navigateByUrl(url);\n\t\t\t} else {\n\t\t\t\t__TEMP__onSignOut?.();\n\t\t\t}\n\n\t\t\tanalyticService.trackEvent(category, 'Clicked: Logout-button');\n\t\t});\n\t}\n\n\treturn (\n\t\t<Flex grow={1} justify='flex-end' fluid='horizontal'>\n\t\t\t<Stack gap={tokens.spacing.x2} fluid='horizontal'>\n\t\t\t\t{user == null ? (\n\t\t\t\t\t<PrimitiveRadixDialog.Close asChild>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tsize='large'\n\t\t\t\t\t\t\ticonPosition='trailing'\n\t\t\t\t\t\t\tvariant='primary'\n\t\t\t\t\t\t\ticon='login'\n\t\t\t\t\t\t\tcolor={tokens.color.bg.interactive}\n\t\t\t\t\t\t\tonClick={handleSignInClick}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{withTranslation('Common.Button.SignIn')}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</PrimitiveRadixDialog.Close>\n\t\t\t\t) : (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<Text.p style={{ textAlign: 'center' }} variant='labelRegular' color={tokens.color.content.muted}>\n\t\t\t\t\t\t\t{withTranslation('PW.Component.Header.NavigationMenu.SignedInInfo', { name: user.commonName })}\n\t\t\t\t\t\t</Text.p>\n\t\t\t\t\t\t<AuthButton onClick={handleSignOutClick} />\n\t\t\t\t\t</Fragment>\n\t\t\t\t)}\n\t\t\t</Stack>\n\t\t</Flex>\n\t);\n}\n\nfunction AuthButton(props: { onClick: (event: SyntheticEvent<HTMLButtonElement>) => void }) {\n\tconst licenceHolderService = useService(LicenceHolderService);\n\tconst identityApiService = useService(IdentityApiService);\n\tconst flag = useFeatureFlag('CareExperience.PW.Idp');\n\n\tif (flag) {\n\t\treturn (\n\t\t\t<form\n\t\t\t\taction={identityApiService.getSignOutPath(`/${licenceHolderService.alias}`)}\n\t\t\t\tmethod='post'\n\t\t\t\tstyle={{\n\t\t\t\t\tdisplay: 'contents',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Button\n\t\t\t\t\ttype='submit'\n\t\t\t\t\tsize='large'\n\t\t\t\t\tvariant='secondary'\n\t\t\t\t\ticon='logout'\n\t\t\t\t\ticonPosition='trailing'\n\t\t\t\t\tcolor={tokens.color.bg.interactive}\n\t\t\t\t>\n\t\t\t\t\t{withTranslation('Common.Button.SignOut')}\n\t\t\t\t</Button>\n\t\t\t</form>\n\t\t);\n\t}\n\n\treturn (\n\t\t<PrimitiveRadixDialog.Close asChild>\n\t\t\t<Button\n\t\t\t\tsize='large'\n\t\t\t\tvariant='secondary'\n\t\t\t\ticon='logout'\n\t\t\t\ticonPosition='trailing'\n\t\t\t\tonClick={props.onClick}\n\t\t\t\tcolor={tokens.color.bg.interactive}\n\t\t\t>\n\t\t\t\t{withTranslation('Common.Button.SignOut')}\n\t\t\t</Button>\n\t\t</PrimitiveRadixDialog.Close>\n\t);\n}\n","import styled from 'styled-components';\nimport { Nav } from './_header_nav/mod';\nimport { AnalyticAction, AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { CallToAction } from './_header_call_to_action.component';\nimport { Logo } from '../logo.component';\nimport { useCurrentLocation } from '../../application/use_current_location';\nimport { Fragment } from 'react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { BreakPoints, useBreakpoint } from '@cellula/react';\nimport { NavigationMenu } from './_header_navigation_menu/mod';\n\ninterface Props {\n\t__TEMP__navigate?(url: string): void;\n\t__TEMP__onSignIn?: () => void;\n\t__TEMP__onSignOut?: () => void;\n\t__TEMP__changeLanguage?(langCode: string): void;\n\t/**\n\t * @deprecated\n\t */\n\t__TEMP__badgeCollector?: any;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\tpadding: 0 ${tokens.spacing.x2};\n\t\theight: 100%;\n\t\twidth: 100%;\n\t`,\n\tleft: styled.div`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\theight: 100%;\n\t`,\n\tright: styled.div`\n\t\tposition: relative;\n\t`,\n};\n\nexport function Header({ __TEMP__navigate, __TEMP__onSignIn, __TEMP__onSignOut, __TEMP__changeLanguage }: Props): JSX.Element {\n\tconst analyticService = useService(AnalyticService);\n\tconst breakpoints = useBreakpoint();\n\tconst [unit, config] = useCurrentLocation();\n\n\tfunction trackEvent(action: AnalyticAction): void {\n\t\tanalyticService.trackEvent(AnalyticCategories.TopNavigation, action);\n\t}\n\n\treturn (\n\t\t<elements.container>\n\t\t\t{config != null ? (\n\t\t\t\t<Fragment>\n\t\t\t\t\t<elements.left>\n\t\t\t\t\t\t<Logo\n\t\t\t\t\t\t\ttrackEvent={trackEvent}\n\t\t\t\t\t\t\t__TEMP__navigate={__TEMP__navigate}\n\t\t\t\t\t\t\tlogoUrl={(config.theme.EmailLogoUrl as string) ?? (config.theme.LogoUrl as string) ?? ''}\n\t\t\t\t\t\t\tlocationName={unit?.name ?? ''}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Nav trackEvent={trackEvent} __TEMP__navigate={__TEMP__navigate} />\n\t\t\t\t\t</elements.left>\n\n\t\t\t\t\t<elements.right>\n\t\t\t\t\t\t{breakpoints === BreakPoints.Small ? (\n\t\t\t\t\t\t\t<NavigationMenu __TEMP__onSignIn={__TEMP__onSignIn} __TEMP__onSignOut={__TEMP__onSignOut} />\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<CallToAction\n\t\t\t\t\t\t\t\t__TEMP__onSignIn={__TEMP__onSignIn}\n\t\t\t\t\t\t\t\t__TEMP__onSignOut={__TEMP__onSignOut}\n\t\t\t\t\t\t\t\t__TEMP__navigate={__TEMP__navigate}\n\t\t\t\t\t\t\t\t__TEMP__changeLanguage={__TEMP__changeLanguage}\n\t\t\t\t\t\t\t\ttrackEvent={trackEvent}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</elements.right>\n\t\t\t\t</Fragment>\n\t\t\t) : null}\n\t\t</elements.container>\n\t);\n}\n","import { AfterViewInit, Component, ElementRef, NgZone, OnChanges, OnDestroy, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { Header } from 'src/components/header/mod';\nimport { IdentityServiceV2 } from 'Public_old/src/app/Services/api/v2/identity.service';\nimport { ScheduledDataService } from 'Public_old/src/app/Services/scheduled-data';\nimport { SpaEventService } from 'Public_old/src/app/Services/spaEvents.service';\nimport { Subscription } from 'rxjs';\nimport { AuthContextService } from 'Public_old/src/app/Services/authContext.service';\nimport { GeneralService } from 'Public_old/src/app/Services/general.service';\nimport { filter } from 'rxjs/operators';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { Root, createRoot } from 'react-dom/client';\n\nconst containerElementName = 'reactHeaderComponent';\n\n@Component({\n\tstandalone: false,\n\tstyleUrls: ['./css/header.wrapper.scss'],\n\tselector: 'header-component',\n\ttemplate: `<div class=\"header-wrapper-container\" #${containerElementName}></div>`,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class HeaderWrapperComponent implements OnChanges, OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate readonly routerSubscription: Subscription;\n\n\tprivate root: Root;\n\n\tconstructor(\n\t\tprivate readonly router: Router,\n\t\tprivate readonly spaEventService: SpaEventService,\n\t\tprivate readonly identityService: IdentityServiceV2,\n\t\tprivate readonly ngZone: NgZone,\n\t\tprivate readonly scheduledDataService: ScheduledDataService,\n\t\tprivate readonly authContextService: AuthContextService,\n\t\tprivate readonly generalService: GeneralService,\n\t) {\n\t\tlet isFirstNavigation = true;\n\n\t\tthis.routerSubscription = this.router.events.pipe(filter((e) => e instanceof NavigationEnd)).subscribe(() => {\n\t\t\tif (isFirstNavigation) {\n\t\t\t\tisFirstNavigation = false;\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.render();\n\t\t});\n\t}\n\n\tngOnChanges(): void {\n\t\tthis.render();\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.render();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.routerSubscription.unsubscribe();\n\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate setLanguage(languageCode: string): void {\n\t\tlocalStorage.setItem('languageCode', languageCode);\n\n\t\tif (this.authContextService.isSignedIn()) {\n\t\t\tthis.generalService.setlanguage(languageCode).subscribe(\n\t\t\t\t() => {\n\t\t\t\t\twindow.location.reload();\n\t\t\t\t},\n\t\t\t\t() => {},\n\t\t\t);\n\t\t} else {\n\t\t\twindow.location.reload();\n\t\t}\n\t}\n\n\tprivate registerOutsideCollectorListener(_: string, callback: (data: number) => void) {\n\t\tconst listeners: Subscription[] = [];\n\n\t\tlisteners.push(\n\t\t\tthis.scheduledDataService.onGetCases.subscribe((caseList) => {\n\t\t\t\t// Copy pasta from menu\n\t\t\t\t// Check notification count\n\t\t\t\tconst issues = caseList.map(($case) => $case.UnhandledIssues.length).reduce((a, b) => a + b, 0);\n\t\t\t\tcallback(issues);\n\t\t\t}),\n\t\t\tthis.spaEventService.onSignedOut.subscribe(() => {\n\t\t\t\tcallback(0);\n\t\t\t}),\n\t\t);\n\n\t\treturn {\n\t\t\tunsubscribe: () => {\n\t\t\t\tlisteners.forEach((listener) => listener.unsubscribe());\n\t\t\t},\n\t\t};\n\t}\n\n\tprivate signIn(): void {\n\t\tthis.spaEventService.onSignInRequired.emit({\n\t\t\tleave: false,\n\t\t\ttarget: this.router.url,\n\t\t\treason: null,\n\t\t});\n\t}\n\n\tprivate signOut(): void {\n\t\tthis.identityService.signOut().subscribe(\n\t\t\t({ data }) => {\n\t\t\t\tthis.spaEventService.onSignedOut.emit({ redirectUrl: data.RedirectUrl });\n\t\t\t},\n\t\t\t() => {\n\t\t\t\twindow.location.reload();\n\t\t\t},\n\t\t);\n\t}\n\n\tprivate navigate(route: string): void {\n\t\tthis.router.navigateByUrl(route);\n\t}\n\n\tprivate async render() {\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tconst forwardSignIn = () => {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tthis.signIn();\n\t\t\t});\n\t\t};\n\t\tconst forwardSignOut = () => {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tthis.signOut();\n\t\t\t});\n\t\t};\n\t\tconst forwardNavigate = (route) => {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tthis.navigate(route);\n\t\t\t});\n\t\t};\n\t\tconst forwardChangeLanguage = (code) => {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tthis.setLanguage(code);\n\t\t\t});\n\t\t};\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\tthis.root.render(\n\t\t\t\t<CellulaProviderWrapper>\n\t\t\t\t\t<Header\n\t\t\t\t\t\t__TEMP__navigate={forwardNavigate}\n\t\t\t\t\t\t__TEMP__onSignIn={forwardSignIn}\n\t\t\t\t\t\t__TEMP__onSignOut={forwardSignOut}\n\t\t\t\t\t\t__TEMP__changeLanguage={forwardChangeLanguage}\n\t\t\t\t\t/>\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n","import {\n\tAfterViewInit,\n\tComponent,\n\tElementRef,\n\tOnChanges,\n\tOnDestroy,\n\tSimpleChanges,\n\tViewChild,\n\tViewEncapsulation,\n} from '@angular/core';\nimport { PopoverManager } from '@components/popover_manager.component';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { Root, createRoot } from 'react-dom/client';\n\nconst containerElementName = 'reactPopoverManagerComponent';\n\n@Component({\n\tstandalone: false,\n\tselector: 'popover-manager-component',\n\ttemplate: `<div class=\"wrapper-container popover\" #${containerElementName}></div>`,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class PopoverManagerComponent implements OnChanges, OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tngOnChanges(_: SimpleChanges): void {\n\t\tthis.render();\n\t}\n\n\tngAfterViewInit() {\n\t\tthis.render();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate async render() {\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\troot.render(\n\t\t\t<CellulaProviderWrapper>\n\t\t\t\t<PopoverManager />\n\t\t\t</CellulaProviderWrapper>,\n\t\t);\n\t}\n}\n","import {\n\tAfterViewInit,\n\tComponent,\n\tElementRef,\n\tNgZone,\n\tOnChanges,\n\tOnDestroy,\n\tOnInit,\n\tSimpleChanges,\n\tViewChild,\n\tViewEncapsulation,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport { Route, Routes } from 'react-router-dom';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { AppointmentFlowService } from 'Public_old/src/app/Views/Appointment/appointment-flow.service';\nimport { sharedResolution } from '../../src/shared_resolution';\nimport React, { Suspense } from 'react';\nimport { ProgrammaticBrowserRouter } from '@cortex-shim/programmatic_browser_router.component';\nimport { UniversalConfig } from '@application/universal_config.service';\nimport { Root, createRoot } from 'react-dom/client';\n\nconst containerElementName = 'reactVideoCallComponent';\n\nconst AppointmentLazy = React.lazy(() => import('@routes/appointment/mod').then((module) => ({ default: module.Appointment })));\n\n@Component({\n\tstandalone: false,\n\tstyleUrls: ['./css/video-call.wrapper.scss'],\n\tselector: 'video-call-component',\n\ttemplate: `<div class=\"video-call-wrapper-container\" #${containerElementName}></div>`,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class VideoCallWrapperComponent implements OnChanges, OnDestroy, AfterViewInit, OnInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(\n\t\tprivate readonly ngZone: NgZone,\n\t\tprivate appointmentFlowService: AppointmentFlowService,\n\t\tprivate readonly router: Router,\n\t) {\n\t\t// Empty\n\t}\n\n\tngOnInit(): void {}\n\n\tngOnChanges(_: SimpleChanges): void {}\n\n\tngAfterViewInit(): void {\n\t\tthis.render();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\tthis.root?.unmount();\n\t\t});\n\t}\n\n\tprivate async render() {\n\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\t\tconst universalConfigService = sharedResolution.resolve(UniversalConfig);\n\n\t\tconst navigateToDuplicateConnection = () => {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tthis.router.navigateByUrl(locationSelectorService.location.route + '/error/multiconnections');\n\t\t\t});\n\t\t};\n\n\t\tconst handleLeave = (messages) => {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tthis.appointmentFlowService.setMessages(messages);\n\t\t\t\tthis.appointmentFlowService.checksAfterCall();\n\t\t\t});\n\t\t};\n\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tconst split = locationSelectorService.location.route.split('/');\n\t\tsplit.splice(0, 1);\n\t\tconst routeBase = split.join('/');\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper useGlobals>\n\t\t\t\t\t<ProgrammaticBrowserRouter basename={universalConfigService.alias} forceNewHistory>\n\t\t\t\t\t\t<Routes>\n\t\t\t\t\t\t\t<Route path={routeBase}>\n\t\t\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\t\t\tpath='appointment/:ticket'\n\t\t\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t\t\t<Suspense fallback={<div>Loading...</div>}>\n\t\t\t\t\t\t\t\t\t\t\t<AppointmentLazy\n\t\t\t\t\t\t\t\t\t\t\t\t__TEMP__onLeave={handleLeave}\n\t\t\t\t\t\t\t\t\t\t\t\t__TEMP__navigateToDuplicateConnection={navigateToDuplicateConnection}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t</Suspense>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</Route>\n\t\t\t\t\t\t</Routes>\n\t\t\t\t\t</ProgrammaticBrowserRouter>\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n","import { storage } from '@visiba/std';\n\nexport const applicationSessionStorage = storage<{\n\tshowAlias: boolean;\n\thideGatewayOnMobileFriendly: boolean;\n}>({ type: 'session' });\n","import UAParser from 'ua-parser-js';\nimport styled from 'styled-components';\nimport { Key, useState, MouseEvent, Fragment } from 'react';\nimport { Spacer, Text } from '@visiba-cortex/react-ui-std';\nimport { AnalyticProvider, AnalyticButton } from '@components/analytic_link/mod';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { useCurrentLocation } from '../application/use_current_location';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { Button } from '@cellula/react';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { getAppDownloadLink } from '@helpers/app_download_link';\nimport { getAbsoluteRoute } from '@helpers/route';\nimport { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport { UserSettingsService } from '@services/user_settings.service';\nimport { LanguageSelect } from './language_select/mod';\nimport { applicationSessionStorage } from '@modules/application_session_storage';\nimport { BreakPoints, useBreakpoint } from '@cellula/react';\n\ninterface Props {\n\t__TEMP__changeLanguage?(langCode: string): void;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tposition: fixed;\n\t\tpadding: ${tokens.spacing.x4};\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tbackground: #fff;\n\t\tz-index: calc(var(--Z_INDEX_HACK, 0));\n\t\ttext-align: center;\n\t`,\n\tlogo: styled.div`\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\theight: 50px;\n\t\tmargin-top: ${tokens.spacing.x4};\n\n\t\timg {\n\t\t\tmax-height: 100%;\n\t\t}\n\t`,\n\tfakeButton: styled.a`\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t`,\n\tOLD_useNewReceptionPage_languageSelectContainer: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tjustify-content: flex-end;\n\t\ttext-align: center;\n\t\twidth: 100%;\n\t`,\n\tlanguageSelectContainer: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\ttext-align: center;\n\t\twidth: 100%;\n\t`,\n};\n\nexport function DeviceGateway({ __TEMP__changeLanguage }: Props): JSX.Element | null {\n\tconst userSettingsService = useService(UserSettingsService);\n\tconst licenceHolderService = useService(LicenceHolderService);\n\tconst analyticService = useService(AnalyticService);\n\tconst [, config] = useCurrentLocation();\n\tconst breakpoint = useBreakpoint();\n\n\tconst parser = new UAParser();\n\tconst deviceType = parser.getDevice().type;\n\tconst queryParams = new URLSearchParams(location.search);\n\tconst userIgnoresPrompt = queryParams.get('skipPrompt') === 'true';\n\tconst userIsOnDesktop = deviceType !== 'tablet' && deviceType !== 'mobile';\n\tconst userIsGuestParticipant = location.pathname.includes('/guest-participant');\n\tconst appDownloadLink = getAppDownloadLink(config?.appConfig ?? null);\n\tconst isMobileBrowserFriendly =\n\t\tlocation.pathname.includes('/visits') ||\n\t\tlocation.pathname.includes('/cookie-policy') ||\n\t\tlocation.pathname.includes('/appointment') ||\n\t\tlocation.pathname.includes('/sign-in');\n\tconst showLanguageSelect = config?.languages.length ?? 0 > 1;\n\tconst shouldBlockRouteOnMobile = !(location.pathname.includes('/dropin') && breakpoint === BreakPoints.Small);\n\n\tconst [hidden, setHidden] = useState(userIgnoresPrompt || userIsOnDesktop || userIsGuestParticipant);\n\n\tif (window.__visiba__.allowMobile) {\n\t\treturn null;\n\t}\n\n\tfunction handleContinueInBrowserClick(): void {\n\t\tapplicationSessionStorage.set('hideGatewayOnMobileFriendly', true);\n\n\t\tif (isMobileBrowserFriendly) {\n\t\t\tsetHidden(true);\n\t\t} else {\n\t\t\twindow.location.href = getAbsoluteRoute(`${licenceHolderService.alias}/visits?skipPrompt=true`);\n\t\t}\n\t}\n\n\tfunction handleAppButtonClick(_: MouseEvent<HTMLAnchorElement>): void {\n\t\tanalyticService.trackEvent(AnalyticCategories.DeviceGateway, 'Clicked to download the app');\n\t}\n\n\tfunction handleLanguageChange(code: Key): void {\n\t\tconst convertedCode = I18nAndL10n.convertExternalLocaleToAvailableLocale(code as string);\n\n\t\t// TODO: REMOVE THIS ONCE NOT INJECTED ANY MORE\n\t\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t\t//@ts-ignore\n\t\tanalyticService.trackEvent(AnalyticCategories.DeviceGateway, `Changed language to: ${convertedCode}`);\n\n\t\tuserSettingsService.updateSettings({ selectedLanguage: convertedCode });\n\n\t\tif (__TEMP__changeLanguage) {\n\t\t\t__TEMP__changeLanguage(code as string);\n\t\t}\n\t}\n\n\tif (\n\t\thidden ||\n\t\t(applicationSessionStorage.get('hideGatewayOnMobileFriendly') && isMobileBrowserFriendly) ||\n\t\tshouldBlockRouteOnMobile\n\t) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<AnalyticProvider category={AnalyticCategories.DeviceGateway}>\n\t\t\t<elements.container>\n\t\t\t\t<elements.logo>\n\t\t\t\t\t<img src={(config?.theme.EmailLogoUrl as string) ?? (config?.theme.LogoUrl as string) ?? ''} alt='' />\n\t\t\t\t</elements.logo>\n\t\t\t\t<Spacer height={tokens.spacing.x7} />\n\t\t\t\t<Text font={tokens.text.body.regular} color={primitiveColorTokens.neutral[1000]}>\n\t\t\t\t\t{withTranslation('PW.Component.DeviceGateway.Description')}\n\t\t\t\t</Text>\n\n\t\t\t\t<Spacer height={tokens.spacing.x7} />\n\n\t\t\t\t{appDownloadLink != null ? (\n\t\t\t\t\t// TODO CEL-31: This should be one component from @cellula/react\n\t\t\t\t\t<elements.fakeButton onClick={handleAppButtonClick} href={appDownloadLink}>\n\t\t\t\t\t\t<Button variant='primary' size='xLarge'>\n\t\t\t\t\t\t\t{withTranslation('PW.Component.DeviceGateway.Button.DownloadApp')}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</elements.fakeButton>\n\t\t\t\t) : null}\n\t\t\t\t<Spacer height={tokens.spacing.x2} />\n\t\t\t\t{isMobileBrowserFriendly ? (\n\t\t\t\t\t<AnalyticButton variant='ghost' size='xLarge' onClick={handleContinueInBrowserClick} action='Clicked to go to patient web'>\n\t\t\t\t\t\t{withTranslation('PW.Component.DeviceGateway.Button.ContinueInBrowser')}\n\t\t\t\t\t</AnalyticButton>\n\t\t\t\t) : null}\n\n\t\t\t\t{showLanguageSelect ? (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<Spacer height={tokens.spacing.x7} />\n\t\t\t\t\t\t<elements.languageSelectContainer>\n\t\t\t\t\t\t\t<LanguageSelect\n\t\t\t\t\t\t\t\tonChange={handleLanguageChange}\n\t\t\t\t\t\t\t\tdefaultValue={userSettingsService.getSettings().selectedLanguage}\n\t\t\t\t\t\t\t\tlanguages={\n\t\t\t\t\t\t\t\t\tconfig?.languages.map((language) => ({\n\t\t\t\t\t\t\t\t\t\tcode: language.code,\n\t\t\t\t\t\t\t\t\t\tnativeName: language.nativeName,\n\t\t\t\t\t\t\t\t\t\tkey: language.code,\n\t\t\t\t\t\t\t\t\t})) ?? []\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</elements.languageSelectContainer>\n\t\t\t\t\t</Fragment>\n\t\t\t\t) : null}\n\t\t\t</elements.container>\n\t\t</AnalyticProvider>\n\t);\n}\n","import { AppConfig } from '@services/config.service';\nimport { UAParser } from 'ua-parser-js';\n\nexport function getAppDownloadLink(appConfig: AppConfig | null): string | null {\n\tif (appConfig == null) return null;\n\n\tconst parser = new UAParser();\n\tconst userOS = parser.getOS().name;\n\n\tif (userOS === 'Android' && appConfig.androidPackageId != null) {\n\t\treturn `https://play.app.goo.gl/?link=https://play.google.com/store/apps/details?id=${appConfig.androidPackageId}`;\n\t}\n\n\tif (userOS === 'iOS' && appConfig.appStoreId != null) {\n\t\treturn `https://itunes.apple.com/se/app/id/${appConfig.appStoreId}?mt=8`;\n\t}\n\n\treturn null;\n}\n","import { AfterViewInit, Component, ElementRef, NgZone, OnDestroy, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { DeviceGateway } from '@components/device_gateway.component';\nimport { AuthContextService } from 'Public_old/src/app/Services/authContext.service';\nimport { GeneralService } from 'Public_old/src/app/Services/general.service';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { Router } from '@angular/router';\nimport { Root, createRoot } from 'react-dom/client';\n\nconst containerElementName = 'reactVisitsComponent';\n\n@Component({\n\tstandalone: false,\n\tselector: 'device-gateway-component',\n\ttemplate: ` <div class=\"wrapper-container\" #${containerElementName}></div> `,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class DeviceGatewayWrapperComponent implements OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(\n\t\tprivate readonly ngZone: NgZone,\n\t\tprivate readonly authContextService: AuthContextService,\n\t\tprivate readonly generalService: GeneralService,\n\t\tprivate readonly router: Router,\n\t) {}\n\n\tngAfterViewInit() {\n\t\tthis.render();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate setLanguage(languageCode: string): void {\n\t\tlocalStorage.setItem('languageCode', languageCode);\n\n\t\tif (this.authContextService.isSignedIn()) {\n\t\t\tthis.generalService.setlanguage(languageCode).subscribe(\n\t\t\t\t() => {\n\t\t\t\t\twindow.location.reload();\n\t\t\t\t},\n\t\t\t\t() => {},\n\t\t\t);\n\t\t} else {\n\t\t\twindow.location.reload();\n\t\t}\n\t}\n\n\tprivate blockRouteOnMobileWeb(): boolean {\n\t\tconst currentUrl = this.router.url;\n\n\t\tif (/dropin/.test(currentUrl)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}\n\n\tprivate async render() {\n\t\tconst shouldBlockRouteOnMobile = this.blockRouteOnMobileWeb();\n\t\tif (shouldBlockRouteOnMobile) return;\n\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tconst forwardChangeLanguage = (code) => {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tthis.setLanguage(code);\n\t\t\t});\n\t\t};\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper>\n\t\t\t\t\t<DeviceGateway __TEMP__changeLanguage={forwardChangeLanguage} />\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n","import {\n\tAfterViewInit,\n\tComponent,\n\tElementRef,\n\tNgZone,\n\tOnChanges,\n\tOnDestroy,\n\tSimpleChanges,\n\tViewChild,\n\tViewEncapsulation,\n} from '@angular/core';\nimport { LanguageSelect } from '@components/language_select/mod';\nimport { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport { ConfigService } from '@services/config.service';\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport { UserSettingsService } from '@services/user_settings.service';\nimport { AuthContextService } from 'Public_old/src/app/Services/authContext.service';\nimport { GeneralService } from 'Public_old/src/app/Services/general.service';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { sharedResolution } from '../../src/shared_resolution';\nimport { Root, createRoot } from 'react-dom/client';\n\nconst containerElementName = 'reactLanguageSelectComponent';\n\n@Component({\n\tstandalone: false,\n\tselector: 'language-select-wrapper',\n\ttemplate: `<div class=\"wrapper-container\" #${containerElementName}></div>`,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class LanguageSelectWrapperComponent implements OnChanges, OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(\n\t\tprivate readonly authContextService: AuthContextService,\n\t\tprivate readonly generalService: GeneralService,\n\t\tprivate readonly ngZone: NgZone,\n\t) {}\n\n\tngOnChanges(_: SimpleChanges): void {\n\t\tthis.render();\n\t}\n\n\tngAfterViewInit(): void {\n\t\tthis.render();\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate setLanguage(languageCode: string): void {\n\t\tlocalStorage.setItem('languageCode', languageCode);\n\n\t\tif (this.authContextService.isSignedIn()) {\n\t\t\tthis.generalService.setlanguage(languageCode).subscribe(() => {\n\t\t\t\twindow.location.reload();\n\t\t\t});\n\t\t} else {\n\t\t\twindow.location.reload();\n\t\t}\n\t}\n\n\tprivate async render(): Promise<void> {\n\t\tconst userSettingsService = sharedResolution.resolve(UserSettingsService);\n\t\tconst configService = sharedResolution.resolve(ConfigService);\n\t\tconst locationSelectorService = sharedResolution.resolve(LocationSelectorService);\n\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tconst handleLanguageChange = (code: string): void => {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tconst convertedCode = I18nAndL10n.convertExternalLocaleToAvailableLocale(code as string);\n\n\t\t\t\tuserSettingsService.updateSettings({ selectedLanguage: convertedCode });\n\t\t\t\tthis.setLanguage(code);\n\t\t\t});\n\t\t};\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper>\n\t\t\t\t\t<LanguageSelect\n\t\t\t\t\t\tonChange={handleLanguageChange}\n\t\t\t\t\t\tdefaultValue={userSettingsService.getSettings().selectedLanguage}\n\t\t\t\t\t\tlanguages={\n\t\t\t\t\t\t\tconfigService.getConfig(locationSelectorService.locationUnitId).languages.map((language) => ({\n\t\t\t\t\t\t\t\tcode: language.code,\n\t\t\t\t\t\t\t\tnativeName: language.nativeName,\n\t\t\t\t\t\t\t\tkey: language.code,\n\t\t\t\t\t\t\t})) ?? []\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n","import { Helper } from '../Common/Helpers/helper';\nimport { Component, ViewEncapsulation } from '@angular/core';\nimport { Router, NavigationEnd } from '@angular/router';\nimport { SpaContext } from '../Classes/spacontext';\nimport { UnitService } from '../Services/api/v2/Units/units.service';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { sharedResolution } from '../../../src/shared_resolution';\n\n@Component({\n\tstandalone: false,\n\tselector: 'licenceholder-footer',\n\ttemplateUrl: '../ViewHtml/Footer.html',\n\tencapsulation: ViewEncapsulation.None,\n\tstyleUrls: ['../Css/Components/licenceHolderFooter.scss'],\n})\nexport class LicenceHolderFooterComponent {\n\tinverted: boolean = false;\n\tinstance: string = µ.Env.ActiveDomain;\n\tisIos: boolean;\n\taboutText: string = null;\n\tshowFulLAboutText = false;\n\tpublic readonly licenceHolderService = sharedResolution.resolve(LicenceHolderService);\n\n\tconstructor(\n\t\tpublic _spaContext: SpaContext,\n\t\tprivate _router: Router,\n\t\tprivate _helper: Helper,\n\t\tprivate unitsService: UnitService,\n\t) {\n\t\tthis.isIos = this._helper.is.ios();\n\t\tthis.inverted = _spaContext.unitConfig.Theme !== null && _spaContext.unitConfig.Theme.VisibaLogoStyle === 1;\n\t}\n\n\tngOnInit() {\n\t\tthis.unitsService.getText(['Web_About']).subscribe((response) => {\n\t\t\tthis.aboutText = response.data.Web_About;\n\t\t});\n\t}\n\n\taddHyphensToEmail(email: string): string {\n\t\tif (email === null || typeof email === 'undefined') return null;\n\n\t\treturn email.replace('@', '\\u200B@');\n\t}\n\n\tremoveUrlStart(url: string) {\n\t\tif (url === null || typeof url === 'undefined') return null;\n\n\t\treturn url.replace('https://', '').replace('http://', '');\n\t}\n}\n","import { Scoped } from '@visiba-cortex/instantiation';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { IdpUrlRedirectStorageService } from '@src/application/idp_url_redirect_storage.service';\nimport { appendSearchParamToAnyString } from '@cortex-shim/append_search_param_to_any_string';\n\n@Scoped()\nexport class SignInController {\n\tconstructor(\n\t\tprivate readonly licenceHolderService: LicenceHolderService,\n\t\tprivate readonly idpUrlRedirectStorageService: IdpUrlRedirectStorageService,\n\t) {\n\t\t// Empty\n\t}\n\n\tpublic selectMethod() {\n\t\tlet normalizeReturnUrl = this.idpUrlRedirectStorageService.idpUrlRedirectStorage ?? this.licenceHolderService.alias;\n\t\tif (normalizeReturnUrl[0] === '/') {\n\t\t\tnormalizeReturnUrl = normalizeReturnUrl.slice(1);\n\t\t}\n\n\t\tconst returnUrl = appendSearchParamToAnyString(normalizeReturnUrl, 'openInApp', 'false');\n\n\t\treturn returnUrl;\n\t}\n}\n","import { BreakPoints, Flex, Spacer, useBreakpoint } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { useResolve } from '@visiba-cortex/instantiation';\nimport { SignInController } from './sign_in.controller';\nimport styled from 'styled-components';\nimport { IllustrativeDefault } from '../../../../patient/src/views/view_guest/_illustrative.component';\nimport { Auth } from '@feature/auth/mod';\nimport { Logo } from '@component/logo.component';\n\ninterface Props {\n\t__TEMP__onCloseSignIn: () => void;\n}\n\nexport function SignIn(props: Props): JSX.Element {\n\tconst smallBreakpoint = useBreakpoint(BreakPoints.Small);\n\tconst controller = useResolve(SignInController);\n\tconst returnUrl = controller.selectMethod();\n\n\treturn (\n\t\t<OutletIdp {...props}>\n\t\t\t{smallBreakpoint ? <Spacer vertical={tokens.size.x7} /> : null}\n\n\t\t\t<Flex\n\t\t\t\tgrow='1'\n\t\t\t\tgap={tokens.spacing.x4}\n\t\t\t\tstyle={{\n\t\t\t\t\tmargin: `0 ${tokens.spacing.x2}`,\n\t\t\t\t\theight: '100%',\n\t\t\t\t}}\n\t\t\t\tdata-testid='sign_in'\n\t\t\t>\n\t\t\t\t<Auth.Methods returnUrl={returnUrl} />\n\t\t\t</Flex>\n\t\t</OutletIdp>\n\t);\n}\n\nconst StyledContainer = styled.div`\n\twidth: 100%;\n\theight: 100%;\n\tmargin: ${tokens.spacing.x2} 0 ${tokens.spacing.x1};\n\n\t${tokens.breakpointQuery.large} {\n\t\tpadding-top: 240px;\n\t\tmax-width: 500px;\n\t\tmax-height: 700px;\n\t}\n`;\n\nconst StyledHeader = styled.div`\n\tdisplay: none;\n\n\t${tokens.breakpointQuery.large} {\n\t\tdisplay: block;\n\t\tposition: fixed;\n\t\ttop: ${tokens.spacing.x3};\n\t\tleft: ${tokens.spacing.x3};\n\t\tz-index: 1;\n\t}\n`;\n\nconst SideAreaContent = styled.div`\n\twidth: 630px;\n`;\n\nconst SideArea = styled.div`\n\tposition: fixed;\n\tright: 0;\n\ttop: 0;\n\tdisplay: flex;\n\twidth: 630px;\n\tmin-height: 100%;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tflex-shrink: 0;\n\tpadding: 0px 65px;\n\tbackground-color: ${tokens.color.bg.surfaceBrand};\n\tpointer-events: none;\n`;\n\nfunction OutletIdp(props: React.PropsWithChildren<Props>): JSX.Element {\n\tconst largeBreakpoint = useBreakpoint(BreakPoints.Large);\n\n\treturn (\n\t\t<Flex\n\t\t\tgrow={1}\n\t\t\tdirection='row'\n\t\t\tstyle={{\n\t\t\t\theight: '100%',\n\t\t\t\tminHeight: '100%',\n\t\t\t}}\n\t\t>\n\t\t\t<Flex\n\t\t\t\tgrow={1}\n\t\t\t\tbreakpointLargeAndUp={{\n\t\t\t\t\talign: 'center',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<StyledContainer>\n\t\t\t\t\t<StyledHeader>\n\t\t\t\t\t\t<Logo\n\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\t// We need to manually close the modal containing the sign-in stuff.\n\t\t\t\t\t\t\t\t// This is a temporary solution to close the modal.\n\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\tprops.__TEMP__onCloseSignIn();\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</StyledHeader>\n\n\t\t\t\t\t{props.children}\n\t\t\t\t</StyledContainer>\n\t\t\t</Flex>\n\n\t\t\t{largeBreakpoint ? (\n\t\t\t\t<SideAreaContent>\n\t\t\t\t\t<SideArea>\n\t\t\t\t\t\t<IllustrativeDefault />\n\t\t\t\t\t</SideArea>\n\t\t\t\t</SideAreaContent>\n\t\t\t) : null}\n\t\t</Flex>\n\t);\n}\n","import * as RadixDialog from '@radix-ui/react-dialog';\nimport { SignIn } from './sign_in.component';\nimport styled, { keyframes } from 'styled-components';\nimport { restrictedZIndexes } from '@cellula/react';\nimport { tokens } from '@cellula/react-theme-patient';\n\ninterface Props {\n\t__TEMP__onCloseSignIn: () => void;\n}\n\nconst contentShow = keyframes`\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: scale(0.96);\n\t}\n to {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t}\n`;\n\nconst StyledDialogContent = styled(RadixDialog.Content)`\n\tbackground-color: ${tokens.color.bg.page};\n\tdisplay: flex;\n\toverflow: hidden;\n\tposition: fixed;\n\tinset: 0;\n\tanimation-duration: 250ms;\n\tanimation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);\n\t/* Needs to use a high z-index to have it appear on top of other elements */\n\tz-index: ${restrictedZIndexes.DANGER};\n\toverflow-y: auto;\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t@media (prefers-reduced-motion: no-preference) {\n\t\tanimation-name: ${contentShow};\n\t}\n`;\n\nexport function SignInModal(props: Props): JSX.Element {\n\treturn (\n\t\t<RadixDialog.Root\n\t\t\tdefaultOpen\n\t\t\tonOpenChange={(value) => {\n\t\t\t\tif (!value) {\n\t\t\t\t\tprops.__TEMP__onCloseSignIn();\n\t\t\t\t}\n\t\t\t}}\n\t\t>\n\t\t\t<StyledDialogContent>\n\t\t\t\t<SignIn {...props} />\n\t\t\t</StyledDialogContent>\n\t\t</RadixDialog.Root>\n\t);\n}\n","import { AfterViewInit, Component, ElementRef, NgZone, OnDestroy, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { CellulaProviderWrapper } from './cellula_provider_wrapper.component';\nimport { SignInModal } from '@public/src/components/sign_in/sign_in_modal.component';\nimport { SpaEventService } from '../app/Services/spaEvents.service';\nimport { Route, Routes } from 'react-router-dom';\nimport { Root, createRoot } from 'react-dom/client';\nimport { ProgrammaticBrowserRouter } from '@cortex-shim/programmatic_browser_router.component';\n\nconst containerElementName = 'SignInWrapper';\nconst NO_SCROLL_CLASS_NAME = 'js-noScroll';\n\n@Component({\n\tstandalone: false,\n\tselector: 'sign-in-wrapper',\n\ttemplate: ` <div class=\"wrapper-container\" #${containerElementName}></div> `,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class SignInWrapperComponent implements OnDestroy, AfterViewInit {\n\t@ViewChild(containerElementName, { static: false }) containerRef: ElementRef;\n\n\tprivate root: Root;\n\n\tconstructor(\n\t\tprivate readonly ngZone: NgZone,\n\t\tprivate readonly spaEventService: SpaEventService,\n\t) {\n\t\t// Empty\n\t}\n\n\tngAfterViewInit() {\n\t\tdocument.body.classList.add(NO_SCROLL_CLASS_NAME);\n\t\tthis.render();\n\t}\n\n\tngOnDestroy() {\n\t\tdocument.body.classList.remove(NO_SCROLL_CLASS_NAME);\n\t\tthis.root?.unmount();\n\t}\n\n\tprivate async render() {\n\t\tconst root = createRoot(this.containerRef.nativeElement);\n\t\tthis.root = root;\n\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\troot.render(\n\t\t\t\t<CellulaProviderWrapper useGlobals>\n\t\t\t\t\t<ProgrammaticBrowserRouter forceNewHistory>\n\t\t\t\t\t\t<Routes>\n\t\t\t\t\t\t\t<Route\n\t\t\t\t\t\t\t\tpath='*'\n\t\t\t\t\t\t\t\telement={\n\t\t\t\t\t\t\t\t\t<SignInModal\n\t\t\t\t\t\t\t\t\t\t__TEMP__onCloseSignIn={() => {\n\t\t\t\t\t\t\t\t\t\t\tthis.ngZone.run(() => {\n\t\t\t\t\t\t\t\t\t\t\t\tthis.spaEventService.onSignInAborted.emit();\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</Routes>\n\t\t\t\t\t</ProgrammaticBrowserRouter>\n\t\t\t\t</CellulaProviderWrapper>,\n\t\t\t);\n\t\t});\n\t}\n}\n","import { NgModule } from '@angular/core';\nimport { SharedModule } from 'Public_old/src/app/appShares.module';\nimport { AttentionCardWrapper } from './attention-card.wrapper';\nimport { ChangeUnitWrapperComponent } from './change-unit.wrapper';\nimport { FooterWrapperComponent } from './footer.wrapper';\nimport { HeaderWrapperComponent } from './header.wrapper';\nimport { HomeWrapperComponent } from './home.wrapper';\nimport { PopoverManagerComponent } from './popover_manager.wrapper';\nimport { VideoCallWrapperComponent } from './video-call.wrapper';\nimport { VisitsWrapperComponent } from './visits.wrapper';\nimport { DeviceGatewayWrapperComponent } from './device-gateway.wrapper';\nimport { LanguageSelectWrapperComponent } from './language_select.wrapper';\nimport { LicenceHolderFooterComponent } from 'Public_old/src/app/Views/licenceholder-footer.component';\nimport { CookiePolicyWrapperComponent } from './cookie_policy.wrapper';\nimport { ReceptionHomeWrapperComponent } from './reception-home.wrapper';\nimport { MyAccountWrapperComponent } from './my_account.wrapper';\nimport { SignInWrapperComponent } from './sign-in.wrapper';\nimport { SignInFinishWrapperComponent } from './sign-in-finish.wrapper';\nimport { CreateNewMessageWrapper } from './create-new-message.wrapper';\nimport { RedRobinRedirectWrapperComponent } from './red_robin_forward.wrapper';\nimport { BookingWrapper } from './booking.wrapper';\n\n@NgModule({\n\timports: [SharedModule],\n\tdeclarations: [\n\t\tLicenceHolderFooterComponent,\n\t\tHomeWrapperComponent,\n\t\tFooterWrapperComponent,\n\t\tHeaderWrapperComponent,\n\t\tVideoCallWrapperComponent,\n\t\tPopoverManagerComponent,\n\t\tAttentionCardWrapper,\n\t\tChangeUnitWrapperComponent,\n\t\tVisitsWrapperComponent,\n\t\tDeviceGatewayWrapperComponent,\n\t\tLanguageSelectWrapperComponent,\n\t\tCookiePolicyWrapperComponent,\n\t\tReceptionHomeWrapperComponent,\n\t\tRedRobinRedirectWrapperComponent,\n\t\tMyAccountWrapperComponent,\n\t\tSignInWrapperComponent,\n\t\tSignInFinishWrapperComponent,\n\t\tCreateNewMessageWrapper,\n\t\tBookingWrapper,\n\t],\n\texports: [\n\t\tLicenceHolderFooterComponent,\n\t\tHomeWrapperComponent,\n\t\tFooterWrapperComponent,\n\t\tHeaderWrapperComponent,\n\t\tVideoCallWrapperComponent,\n\t\tPopoverManagerComponent,\n\t\tAttentionCardWrapper,\n\t\tChangeUnitWrapperComponent,\n\t\tVisitsWrapperComponent,\n\t\tDeviceGatewayWrapperComponent,\n\t\tLanguageSelectWrapperComponent,\n\t\tCookiePolicyWrapperComponent,\n\t\tReceptionHomeWrapperComponent,\n\t\tRedRobinRedirectWrapperComponent,\n\t\tMyAccountWrapperComponent,\n\t\tSignInWrapperComponent,\n\t\tSignInFinishWrapperComponent,\n\t\tCreateNewMessageWrapper,\n\t\tBookingWrapper,\n\t],\n\tproviders: [],\n})\nexport class WrappersModule {}\n","/** Class to extend api services with */\nexport class ApiBaseClient {\n\tprivate static readonly baseUri = 'client/v2';\n\n\tconstructor(\n\t\t/** The target backend index endpoint */\n\t\tprivate readonly controller: string,\n\t) {\n\t\t// Empty\n\t}\n\n\t/** Returns a concatenated string containing the base uri plus the controller */\n\tprotected getBaseUri(): string {\n\t\treturn `${ApiBaseClient.baseUri}/${this.controller}`;\n\t}\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { HttpService, VisibaApiPromise } from '@services/http.service';\nimport { ParameterHandler } from '@visiba/std';\nimport { ApiBaseClient } from './_api_client_base';\nimport type { AuthMethodApiModel, SmsConfirmCodeApiResult, SmsStartAuthModel } from './generated/models';\n\n@Singleton()\nexport class AuthApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('units');\n\t}\n\n\tpublic getMethods(licenceHolderId: number): VisibaApiPromise<\n\t\t{\n\t\t\tScheme: string;\n\t\t\tName: string;\n\t\t\tDescription: string;\n\t\t\tUseIframe: boolean;\n\t\t}[]\n\t> {\n\t\treturn this.httpService.get(`/client/auth/idp/${licenceHolderId}/methods`);\n\t}\n\n\tpublic async getAuthMethods(\n\t\tunitId: number,\n\t\tcountryCode: string,\n\t\tcallTicket: string | null = null,\n\t): VisibaApiPromise<AuthMethodApiModel[]> {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({\n\t\t\tdevice: 'computer',\n\t\t\tcountryCode,\n\t\t});\n\t\tif (callTicket != null) parameterHandler.append({ usage: 'Outsider' });\n\n\t\treturn this.httpService.get(`${this.getBaseUri()}/${unitId}/Auth/Methods${parameterHandler.getString()}`);\n\t}\n\n\tpublic async sendSMSCode(unitId: number, number: string, countryCode?: string): VisibaApiPromise<SmsStartAuthModel> {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({ number: number });\n\t\tif (countryCode) parameterHandler.append({ countrycode: countryCode });\n\n\t\treturn this.httpService.post(`${this.getBaseUri()}/${unitId}/Auth/Methods/Sms/SendCode${parameterHandler.getString()}`, null);\n\t}\n\n\tpublic async sendSMSCodeWithCallticket(\n\t\tunitId: number,\n\t\tcountryCode: string,\n\t\tcallTicket: string,\n\t): VisibaApiPromise<SmsStartAuthModel> {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({\n\t\t\tcallTicket: callTicket,\n\t\t\tcountryCode: countryCode,\n\t\t});\n\n\t\treturn this.httpService.post(\n\t\t\t`${this.getBaseUri()}/${unitId}/Auth/Methods/Sms/SendCodeWithCallTicket${parameterHandler.getString()}`,\n\t\t\tnull,\n\t\t);\n\t}\n\n\tpublic async resendSmsCode(unitId: number, authAttemptId: Guid): VisibaApiPromise<void> {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({ attemptId: authAttemptId });\n\n\t\treturn this.httpService.post(`${this.getBaseUri()}/${unitId}/Auth/Methods/Sms/ReSendCode${parameterHandler.getString()}`, null);\n\t}\n\n\tpublic async getPreRegisteredNumber(receptionId: number, callTicket: string): VisibaApiPromise<number> {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({ callticket: callTicket });\n\n\t\treturn this.httpService.get(\n\t\t\t`${this.getBaseUri()}/${receptionId}/Auth/Methods/Sms/PreRegisteredNumber${parameterHandler.getString()}`,\n\t\t);\n\t}\n\n\tpublic async confirmSmsCode(\n\t\tunitId: number,\n\t\tattemptId: Guid,\n\t\tcode: string,\n\t\tsessionLifetime?: number,\n\t): VisibaApiPromise<SmsConfirmCodeApiResult> {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({ attemptId: attemptId, code: code });\n\t\tif (sessionLifetime) parameterHandler.append({ sessionLifetime: sessionLifetime });\n\n\t\treturn this.httpService.post(`${this.getBaseUri()}/${unitId}/Auth/Methods/Sms/ConfirmCode${parameterHandler.getString()}`, null);\n\t}\n\n\tpublic async beginNoAuth(unitId: number, callTicket: string, countryCode?: string): VisibaApiPromise<SmsStartAuthModel> {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({ callTicket: callTicket });\n\t\tif (countryCode) parameterHandler.append({ countrycode: countryCode });\n\n\t\treturn this.httpService.post(`${this.getBaseUri()}/${unitId}/Auth/Methods/NoAuth/StartAuth${parameterHandler.getString()}`, null);\n\t}\n\n\tpublic async confirmNoAuthIdentity(unitId: number, attemptId: Guid, commonName: string): VisibaApiPromise<SmsConfirmCodeApiResult> {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({ authAttempt: attemptId, commonName: encodeURIComponent(commonName) });\n\n\t\treturn this.httpService.post(\n\t\t\t`${this.getBaseUri()}/${unitId}/Auth/Methods/NoAuth/ConfirmIdentity${parameterHandler.getString()}`,\n\t\t\tnull,\n\t\t);\n\t}\n}\n","import { Http, HttpResponse } from '@visiba-cortex/http';\nimport { ParameterHandler } from '@visiba/std';\nimport { Singleton } from '@visiba-cortex/instantiation';\nimport { HttpService, VisibaApiPromise } from '@services/http.service';\nimport { EnvironmentService } from '@services/environment.service/mod';\nimport type { IceServerModel } from './models/IceServerModel';\nimport type { TurnTestModel } from './models/TurnTestModel';\n\n@Singleton()\nexport class GeneralApiService {\n\tconstructor(\n\t\tprivate readonly httpService: HttpService,\n\t\tprivate readonly environmentService: EnvironmentService,\n\t) {\n\t\t// Empty\n\t}\n\n\tpublic async get(alias: string): VisibaApiPromise<number> {\n\t\treturn this.httpService.get(`/general/licenceHolder/${alias}`);\n\t}\n\n\t// Not mapped correctly to httpService so using Http.get here instead.\n\tpublic async getIceServers(): Promise<HttpResponse<IceServerModel[]>> {\n\t\treturn Http.get(`${this.environmentService.hosting.apiBaseUri}/General/MediaTest/iceServers`);\n\t}\n\n\tpublic async getFeatureToggles(urlAlias: string): VisibaApiPromise<Record<string, boolean>> {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({\n\t\t\turlAlias,\n\t\t});\n\n\t\treturn this.httpService.get(`/general/featureToggles${parameterHandler.getString()}`);\n\t}\n\n\tpublic async turnTest(model: TurnTestModel): VisibaApiPromise<TurnTestModel> {\n\t\treturn this.httpService.post<TurnTestModel>(\n\t\t\t`/General/TurnTest/Report/Participant/${model.ParticipantId}?protocol=${model.TurnProtocol}&port=${model.Port}&success=${model.Success}×tamp=\n\t${model.Timestamp}`,\n\t\t\tnull,\n\t\t);\n\t}\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum AnswerFormQuestionErrorStatus {\n Ok = 'Ok',\n QuestionNotFound = 'QuestionNotFound',\n IncompatibleAnswerType = 'IncompatibleAnswerType',\n IncompatibleAnswerRange = 'IncompatibleAnswerRange'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum AppPlatform {\n IOs = 'iOS',\n Android = 'Android'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum AuthMethodUsage {\n Client = 'Client',\n Office = 'Office',\n Outsider = 'Outsider'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum AuthScheme {\n Native = 'Native',\n Redirect = 'Redirect',\n WebView = 'WebView'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum BookingParticipantRole {\n Host = 'Host',\n User = 'User'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum BookingSource {\n Unknown = 'Unknown',\n Invitation = 'Invitation',\n Timeslot = 'Timeslot',\n WaitingRoom = 'WaitingRoom'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum ClientCaseDefinition {\n Appointment = 'Appointment',\n MessagingConversation = 'MessagingConversation',\n PhysicalAppointment = 'PhysicalAppointment'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum ClientCaseIssueType {\n AwaitingPayment = 'AwaitingPayment',\n AwaitingFormResponse = 'AwaitingFormResponse',\n UnreadMessages = 'UnreadMessages',\n NewIncoming = 'NewIncoming'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum ClientCaseType {\n Appointment = 'Appointment',\n MessagingConversation = 'MessagingConversation',\n PhysicalAppointment = 'PhysicalAppointment'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum CloudMessageTargetType {\n None = 'None',\n Android = 'Android',\n IOs = 'iOS'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum CommitResultStatus {\n ValidationErrors = 'ValidationErrors',\n PendingPayment = 'PendingPayment',\n ReservationCommitted = 'ReservationCommitted',\n CommitInProgress = 'CommitInProgress'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum Controls {\n WebCommonHeaderSignOutButton = 'Web_Common_HeaderSignOutButton',\n WebAppointmentTakeScreenshotButton = 'Web_Appointment_TakeScreenshotButton',\n WebAppointmentSharedFiles = 'Web_Appointment_SharedFiles',\n WebAreaStart = 'Web_Area_Start',\n WebAppointmentShareScreenButton = 'Web_Appointment_ShareScreenButton',\n WebIcdOutcomeInput = 'Web_ICD_Outcome_Input',\n WebAppointmentCloseAfterCallButton = 'Web_Appointment_CloseAfterCallButton'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum DocumentType {\n TermsOfService = 'TermsOfService',\n PrivacyPolicy = 'PrivacyPolicy'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum ExternalDataType {\n Unknown = 'Unknown',\n NameValue = 'NameValue'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum FieldOption {\n Optional = 'Optional',\n Required = 'Required',\n ReadOnly = 'ReadOnly'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum FormOpportunity {\n BeforeBooking = 'BeforeBooking',\n AfterBooking = 'AfterBooking',\n BeforeCase = 'BeforeCase'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum FormQuestionType {\n YesNo = 'YesNo',\n Multiline = 'Multiline',\n MultiChoice = 'MultiChoice',\n SingleChoiceRadio = 'SingleChoiceRadio',\n SingleChoiceSelect = 'SingleChoiceSelect'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum HorizontalAlignment {\n Start = 'Start',\n End = 'End'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum ListDirection {\n Vertical = 'Vertical',\n Horizontal = 'Horizontal'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum LocalityType {\n All = 'All',\n Digital = 'Digital',\n Physical = 'Physical'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum OpenUrlWith {\n IFrame = 'IFrame',\n SameTab = 'SameTab',\n NewTab = 'NewTab'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum OpenUrlWithKind {\n IFrame = 'IFrame',\n SameTab = 'SameTab',\n NewTab = 'NewTab'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum PaymentWorkflowType {\n NoPayment = 'NoPayment',\n ManualByHolder = 'ManualByHolder',\n ByUserBeforeEntering = 'ByUserBeforeEntering'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum PrioritizedClientCaseDefinition {\n None = 'None',\n CurrentAppointment = 'CurrentAppointment',\n Unpaid = 'Unpaid',\n NewMessages = 'NewMessages',\n NewMessagesDifferentCases = 'NewMessagesDifferentCases',\n UnansweredForms = 'UnansweredForms',\n UpcomingAppointment = 'UpcomingAppointment'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum PrioritizedClientCaseType {\n None = 'None',\n CurrentAppointment = 'CurrentAppointment',\n Unpaid = 'Unpaid',\n NewMessages = 'NewMessages',\n NewMessagesDifferentCases = 'NewMessagesDifferentCases',\n UnansweredForms = 'UnansweredForms',\n UpcomingAppointment = 'UpcomingAppointment'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum QueryCommitStatus {\n JobNotFound = 'JobNotFound',\n Error = 'Error',\n CompletedOk = 'CompletedOk',\n Prepared = 'Prepared',\n InProgress = 'InProgress',\n WaitingForPickup = 'WaitingForPickup',\n PaymentRequired = 'PaymentRequired'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum SpacerSize {\n XSmall = 'XSmall',\n Small = 'Small',\n Medium = 'Medium',\n Large = 'Large',\n XLarge = 'XLarge'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum States {\n Unpaid = 'Unpaid',\n Paid = 'Paid',\n Expired = 'Expired'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum SurveyAnswerValueType {\n Int4SatisfactionScore = 'Int4SatisfactionScore',\n Text500 = 'Text500'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum TextFormat {\n Plaintext = 'Plaintext',\n Markdown = 'Markdown'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum TextSize {\n SmallBody = 'SmallBody',\n Body = 'Body',\n LargeBody = 'LargeBody',\n SmallTitle = 'SmallTitle',\n Title = 'Title'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum TextWeight {\n Regular = 'Regular',\n Semibold = 'Semibold',\n Bold = 'Bold'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum TimeslotSearchCapability {\n DateFrom = 'DateFrom',\n DateTo = 'DateTo',\n TimeFrom = 'TimeFrom',\n TimeTo = 'TimeTo',\n ResourceId = 'ResourceId',\n ResourceSpecialityId = 'ResourceSpecialityId',\n ResourceConditionId = 'ResourceConditionId',\n ResourceUnitId = 'ResourceUnitId'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum UserType {\n Client = 'Client',\n Outsider = 'Outsider'\n}\n","/* tslint:disable */\n/* eslint-disable */\nexport enum ValidationResultType {\n SystemError = 'SystemError',\n FormMissingResponse = 'FormMissingResponse',\n RecreateProduct = 'RecreateProduct',\n NoProducts = 'NoProducts',\n Ok = 'Ok',\n JustOneProduct = 'JustOneProduct'\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { HttpService, VisibaApiPromise } from '@services/http.service';\nimport { IdentityApiModel } from './generated/models';\nimport { ApiBaseClient } from './_api_client_base';\nimport { HttpOptions } from '@visiba-cortex/http';\n\n@Singleton()\nexport class IdentityApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('identity');\n\t}\n\n\tpublic get(): VisibaApiPromise<IdentityApiModel | null> {\n\t\treturn this.httpService.get(this.getBaseUri());\n\t}\n\n\tpublic signOut(): VisibaApiPromise<{ RedirectUrl: string | null }> {\n\t\treturn this.httpService.post(this.getBaseUri() + '/signOut', null);\n\t}\n\n\tpublic deleteAccount(): VisibaApiPromise<unknown> {\n\t\treturn this.httpService.delete(this.getBaseUri());\n\t}\n\n\tpublic canDeleteAccount(): VisibaApiPromise<unknown> {\n\t\treturn this.httpService.get(this.getBaseUri() + '/CanDelete');\n\t}\n\n\tpublic isAlive(): VisibaApiPromise<boolean> {\n\t\tconst options = new HttpOptions({\n\t\t\trequestConfig: {\n\t\t\t\theaders: {\n\t\t\t\t\t'X-TouchSessions': 'false',\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\n\t\treturn this.httpService.get(this.getBaseUri() + '/isAlive', options);\n\t}\n\n\tpublic isAliveOutsider(): VisibaApiPromise<boolean> {\n\t\tconst options = new HttpOptions({\n\t\t\trequestConfig: {\n\t\t\t\theaders: {\n\t\t\t\t\t'X-TouchSessions': 'false',\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\n\t\treturn this.httpService.get(this.getBaseUri() + '/isAliveOutsider', options);\n\t}\n\n\tpublic getSignOutPath(returnUrl: string): string {\n\t\tconst params = new URLSearchParams();\n\t\tparams.append('returnUrl', returnUrl);\n\n\t\t// TODO: Should probably not hardcode \"api\" here... It won't hurt but it's a bit ugly.\n\t\treturn `/api/${this.getBaseUri()}/signOutIdp?${params.toString()}`;\n\t}\n}\n","import { Injectable, Scopes } from '@visiba-cortex/instantiation';\nimport { HttpService, VisibaApiPromise, VisibaOptions } from '@services/http.service';\nimport type { HttpCancelTokenSource } from '@visiba-cortex/http';\nimport type { HomeGuiComponentsApiModel, SearchApiModel } from './generated/models';\nimport type { LicenceHolderLanguageApiModel } from './models/LicenceHolderLanguageApiModel';\n\n@Injectable({\n\tscope: Scopes.Singleton,\n})\nexport class LicenceHolderApiService {\n\tprivate static readonly baseUri_OLD = (id: number): string => `Client/LicenceHolder/${id}`;\n\tprivate static readonly baseUri = 'client/v2';\n\n\tconstructor(private readonly httpService: HttpService) {\n\t\t// Empty\n\t}\n\n\tpublic getSupportedLanguages(licenceHolder: number): VisibaApiPromise<LicenceHolderLanguageApiModel[]> {\n\t\treturn this.httpService.get(`${LicenceHolderApiService.baseUri_OLD(licenceHolder)}/Languages`);\n\t}\n\n\tpublic getHomeGuiComponents(licenceHolder: number): VisibaApiPromise<HomeGuiComponentsApiModel> {\n\t\treturn this.httpService.get(`${LicenceHolderApiService.baseUri}/${licenceHolder}/HomeGuiComponents`);\n\t}\n\n\tpublic getTranslationSet(\n\t\tlicenceHolderId: number,\n\t\ttranslationsSet: string,\n\t\tlanguageCode: string,\n\t): VisibaApiPromise<Record<string, string>> {\n\t\treturn this.httpService.get(\n\t\t\t`${LicenceHolderApiService.baseUri}/${licenceHolderId}/translationSets/${translationsSet}/${languageCode}`,\n\t\t);\n\t}\n\n\tpublic search(\n\t\tlicenceHolder: number,\n\t\ttext: string,\n\t\tcancelToken?: HttpCancelTokenSource,\n\t\t// TODO PAT-426: Missing Path, Name and Subtitle?!\n\t): VisibaApiPromise<(SearchApiModel & { Path: string; Name: string; Subtitle: string })[]> {\n\t\tconst httpOptions = new VisibaOptions({\n\t\t\tcancelToken,\n\t\t});\n\n\t\treturn this.httpService.get(`${LicenceHolderApiService.baseUri}/${licenceHolder}/receptions/search?query=${text}`, httpOptions);\n\t}\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { HttpService, VisibaApiPromise } from '@services/http.service';\nimport { ApiBaseClient } from './_api_client_base';\nimport { ParameterHandler } from '@visiba/std';\nimport { ReceptionVisitInput } from './generated/models';\n\n@Singleton()\nexport class RecentReceptionsApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('Receptions');\n\t}\n\n\tpublic async getRecentlyVisited(count: number): VisibaApiPromise<ReceptionVisitInput[]> {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({\n\t\t\tcount,\n\t\t});\n\n\t\treturn this.httpService.get(`${this.getBaseUri()}/RecentlyVisited${parameterHandler.getString()}`);\n\t}\n\n\tpublic async postToRecentlyVisited(receptionId: number): VisibaApiPromise<void> {\n\t\treturn this.httpService.post(`${this.getBaseUri()}/RecentlyVisited`, { receptionId });\n\t}\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { ParameterHandler } from '@visiba/std';\nimport { HttpService, VisibaApiPromise, VisibaOptions } from '@services/http.service';\nimport { ApiBaseClient } from './_api_client_base';\nimport type { PublicBaseApiModel } from './models/PublicBaseApiModel';\nimport type { GuiComponentApiModel, UnitAboutApiModel, UnitConfigApiModel, UnitModel } from './generated/models';\n\n@Singleton()\nexport class UnitsApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('units');\n\t}\n\n\tpublic async getTree(unitId: number): VisibaApiPromise<UnitModel> {\n\t\treturn this.httpService.get(`${this.getBaseUri()}/${unitId}/tree`);\n\t}\n\n\tpublic async getUnitConfig(unitId: number, httpOptions?: VisibaOptions): VisibaApiPromise<UnitConfigApiModel> {\n\t\treturn this.httpService.get(`${this.getBaseUri()}/${unitId}/config/web`, httpOptions);\n\t}\n\n\tpublic async getTexts<T extends string>(receptionId: number, keys: T[]): VisibaApiPromise<{ [K in T]: string | null }> {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({ aliases: keys.join(',') });\n\n\t\treturn this.httpService.get(`${this.getBaseUri()}/${receptionId}/texts${parameterHandler.getString()}`);\n\t}\n\n\tpublic async getLicenseHolderAboutData(unitId: number): VisibaApiPromise<UnitAboutApiModel> {\n\t\treturn this.httpService.get(`${this.getBaseUri()}/${unitId}/About`);\n\t}\n\n\tpublic async getData(unitId: number): VisibaApiPromise<NonNullable<UnitConfigApiModel['Offer']>> {\n\t\tconst {\n\t\t\tdata: { Offer },\n\t\t} = await this.httpService.get<UnitConfigApiModel>(`${this.getBaseUri()}/${unitId}/config/app`);\n\n\t\tif (Offer === null) throw new Error('Todo: should never be null');\n\n\t\treturn {\n\t\t\tdata: Offer,\n\t\t\tsuccessful: true,\n\t\t\theaders: {},\n\t\t};\n\t}\n\n\tpublic async getUnitComponents(unitId: number): VisibaApiPromise<GuiComponentApiModel[]> {\n\t\tconst url = `${this.getBaseUri()}/${unitId}/guicomponents`;\n\n\t\treturn this.httpService.get(url);\n\t}\n\n\tpublic async getLicenseHolderData(alias: string): VisibaApiPromise<PublicBaseApiModel> {\n\t\treturn this.httpService.get(`/general/licenceHolder/${alias}/publicBase`);\n\t}\n}\n","import { storage } from '@visiba/std';\nimport type { DebugConfig } from '@modules/debug_config';\n\nexport const devLocalStorage = storage<{\n\tconfig: DebugConfig.LocalStorageConfig;\n\tidentitySession: string | null;\n\trequestVerificationToken: string | null;\n\toverrideFlags: Record<keyof ExpectedFlags, boolean> | null;\n}>();\n","export function getAbsoluteRoute(route: string): string {\n\treturn route.startsWith('/') ? route : `/${route}`;\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\n\n@Singleton()\nexport class IdpUrlRedirectStorageService {\n\tpublic idpUrlRedirectStorage: Nullable<string> = null;\n\n\tpublic setRedirectPath(url: string) {\n\t\tthis.idpUrlRedirectStorage = url;\n\t}\n}\n","import { storage } from '@visiba/std';\n\nexport const devLocalStorage = storage({ prefix: '' });\n","import { FieldOption, IdentityApiModel, UserType } from '@api/generated/models';\nimport { IdentityApiService } from '@api/identity_api.service';\nimport { devLocalStorage } from '@modules/dev_local_storage';\nimport { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport { LocalPushNotification } from '@services/notification.service/local_push_notification';\nimport { NotificationService } from '@services/notification.service/notification.service';\nimport { HttpError, isHttpError } from '@visiba-cortex/http';\nimport { Singleton } from '@visiba-cortex/instantiation';\nimport { EventEmitter } from '@visiba/std';\nimport { authServiceThatOriginatesFromReactOnly } from './temp_migration_file';\n\n@Singleton()\nexport class AuthService {\n\tpublic readonly events = new EventEmitter<{\n\t\tonSuccessfulAuthentication: ReadonlyUser;\n\t\tonAuthenticationTermination: ReadonlyUser;\n\t}>();\n\tprivate readonly interceptors: Interceptor[] = [];\n\tprivate user: User | null = null;\n\n\tconstructor(\n\t\tprivate readonly identityApiService: IdentityApiService,\n\t\tprivate readonly notificationService: NotificationService,\n\t) {\n\t\t// Empty\n\t}\n\n\tpublic getUser(): ReadonlyUser | null {\n\t\treturn this.user;\n\t}\n\n\tpublic isAuthenticated(): boolean {\n\t\treturn this.getUser() != null;\n\t}\n\n\t/**\n\t * Creates a \"subscription\" to the event emitter's\n\t * \"onSuccessfulAuthentication\" and \"onAuthenticationTermination\" events. It's\n\t * use case is to provide a way to check the authentication status if time is\n\t * an concern. For instance: in a controller that's expected a certain state\n\t * when the user is authenticated, you may want to set the state with second\n\t * value on initialization and use the subscriber to eventually patch the\n\t * state when the authentication status changes.\n\t */\n\tpublic provideSubscription(): [subscriber: Subscriber, user: ReadonlyUser | null] {\n\t\tconst subscriber: Subscriber = (fn) => {\n\t\t\tconst handleSubscriberEvent = (_: ReadonlyUser | null): void => {\n\t\t\t\tfn(this.getUser());\n\t\t\t};\n\n\t\t\tthis.events.on('onSuccessfulAuthentication', handleSubscriberEvent);\n\t\t\tthis.events.on('onAuthenticationTermination', handleSubscriberEvent);\n\n\t\t\treturn () => {\n\t\t\t\tthis.events.off('onSuccessfulAuthentication', handleSubscriberEvent);\n\t\t\t\tthis.events.off('onAuthenticationTermination', handleSubscriberEvent);\n\t\t\t};\n\t\t};\n\n\t\treturn [subscriber, this.getUser()];\n\t}\n\n\t/**\n\t * Fetches the user's credentials, singing them in.\n\t */\n\tpublic async fetchActiveIdentity(): Promise<ReadonlyUser | null> {\n\t\ttry {\n\t\t\tconst result = await authServiceThatOriginatesFromReactOnly.instance.loadIdentity();\n\t\t\tif (result.err) throw new Error('could not fetch user');\n\n\t\t\tconst user = result.ok;\n\n\t\t\tif (user != null) {\n\t\t\t\tconst interceptors = this.interceptors.filter((interceptor) => interceptor.triggerOn === 'authenticated');\n\t\t\t\twhile (interceptors.length > 0) {\n\t\t\t\t\tconst interceptor = interceptors.shift();\n\t\t\t\t\tif (interceptor != null) {\n\t\t\t\t\t\tawait interceptor.fn(user);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.user = user;\n\t\t\t\tthis.events.emit('onSuccessfulAuthentication', user);\n\t\t\t}\n\n\t\t\treturn this.user;\n\t\t} catch (error: unknown) {\n\t\t\tif (isHttpError(error)) {\n\t\t\t\tthis.handleError(error);\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}\n\t}\n\n\t/**\n\t * Removes the authenticated user's stored credentials, signing them out.\n\t */\n\tpublic async terminateActiveIdentity(): Promise<void> {\n\t\ttry {\n\t\t\tif (this.user == null) return;\n\n\t\t\tawait this.identityApiService.signOut();\n\n\t\t\tconst interceptors = this.interceptors.filter((interceptor) => interceptor.triggerOn === 'terminated');\n\t\t\twhile (interceptors.length > 0) {\n\t\t\t\tconst interceptor = interceptors.shift();\n\t\t\t\tif (interceptor != null) {\n\t\t\t\t\tawait interceptor.fn(this.user);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdevLocalStorage.removeItem('identitySession');\n\n\t\t\tconst user = this.user;\n\t\t\tthis.user = null;\n\t\t\tthis.events.emit('onAuthenticationTermination', user);\n\t\t} catch (error: unknown) {\n\t\t\tif (isHttpError(error)) {\n\t\t\t\tthis.handleError(error);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthrow new Error('Issues with identity termination');\n\t\t}\n\t}\n\n\t/**\n\t * Adds an interceptor to the authentication process. The interceptor is\n\t * asynchronously executed when a user's credentials are being fetched.\n\t */\n\tpublic addInterceptor(interceptor: Interceptor): void {\n\t\tthis.interceptors.push(interceptor);\n\t}\n\n\tprivate handleError(_: HttpError<unknown>): void {\n\t\tthis.notificationService.add(\n\t\t\tnew LocalPushNotification({\n\t\t\t\tlabel: I18nAndL10n.translate('PW.Common.Error.Unknown'),\n\t\t\t\ttype: 'toast',\n\t\t\t\tvariant: 'danger',\n\t\t\t}),\n\t\t);\n\t}\n\n\tprivate getUserCommonName(firstName: string | null, lastName: string | null): string {\n\t\tif (firstName && lastName) return firstName + ' ' + lastName;\n\t\tif (!firstName && lastName) return lastName;\n\t\tif (firstName && !lastName) return firstName;\n\n\t\treturn I18nAndL10n.translate('PW.Common.Anonymous');\n\t}\n\n\tprivate parseUserApiModel(response: IdentityApiModel): ReadonlyUser {\n\t\tconst firstName =\n\t\t\tresponse.FirstName == null && response.LastName == null ? I18nAndL10n.translate('PW.Common.Anonymous') : response.FirstName;\n\t\tconst commonName = this.getUserCommonName(response.FirstName, response.LastName);\n\n\t\treturn {\n\t\t\tid: response.Id,\n\t\t\tlicenceHolderId: response.LicenceHolderId,\n\t\t\tuserType: response.UserType,\n\t\t\tfirstName: firstName ?? '',\n\t\t\tlastName: response.LastName ?? '',\n\t\t\tcommonName: commonName,\n\t\t\temail: response.Email,\n\t\t\tnationality: response.Nationality,\n\t\t\tphone: response.Phone,\n\t\t\tnationalIdentityNumber: response.NationalIdentityNumber,\n\t\t\tphoneRequirement: response.PhoneRequirement,\n\t\t\temailRequirement: response.EmailRequirement,\n\t\t\tnationalIdentityNumberRequirement: response.NationalIdentityNumberRequirement,\n\t\t};\n\t}\n}\n\nexport type Disposer = () => void;\nexport type Subscriber = (fn: (userRef: ReadonlyUser | null) => void) => Disposer;\n\ninterface User {\n\tid: number;\n\tlicenceHolderId: number;\n\tuserType: UserType;\n\tfirstName: string;\n\tlastName: string;\n\tcommonName: string;\n\tphone: string | null;\n\temail: string | null;\n\tnationality: string | null;\n\tnationalIdentityNumber: string | null;\n\temailRequirement: FieldOption;\n\tphoneRequirement: FieldOption;\n\tnationalIdentityNumberRequirement: FieldOption;\n}\n\nexport type ReadonlyUser = Readonly<User>;\n\ntype Interceptor =\n\t| {\n\t\t\ttriggerOn: 'authenticated';\n\t\t\tfn(userRef: ReadonlyUser | null): Promise<void>;\n\t }\n\t| {\n\t\t\ttriggerOn: 'terminated';\n\t\t\tfn(userRef: ReadonlyUser): Promise<void>;\n\t };\n","import type { ReadonlyUser } from './auth.service';\n\ninterface TEMPORARY_AuthServiceThatOriginatesFromReactOnly {\n\tloadIdentity(): Promise<{ ok: ReadonlyUser | null; err: unknown }>;\n}\n\nexport const authServiceThatOriginatesFromReactOnly = {\n\tinstance: null,\n} as unknown as {\n\tinstance: TEMPORARY_AuthServiceThatOriginatesFromReactOnly;\n};\n","import { useLayoutEffect } from 'react';\nimport { useMisbehavedForceUpdate } from '@visiba/react-std';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { ReadonlyUser, AuthService } from './auth.service';\n\nexport function useUser(): ReadonlyUser | null {\n\tconst authService = useService(AuthService);\n\tconst update = useMisbehavedForceUpdate();\n\n\tuseLayoutEffect(() => {\n\t\tconst [subscriber] = authService.provideSubscription();\n\n\t\treturn subscriber(() => {\n\t\t\tupdate();\n\t\t});\n\t}, [authService, update]);\n\n\treturn authService.getUser();\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { MappedTheme } from './_mapped_theme';\nimport type { CssVariableSetter, CssVariable } from './_common';\nimport { ThemeModel } from './theme_model';\n\nexport class SheetIsAbsentError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'SheetNotCreatedError';\n\t\tObject.setPrototypeOf(this, SheetIsAbsentError.prototype);\n\t}\n}\n\n@Singleton()\nexport class ThemeService {\n\tprivate styleElement: HTMLStyleElement | null = null;\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\tpublic replaceTheme(themeModel: ThemeModel): void {\n\t\tconst styleElement = this.styleElement || this.createSheet();\n\t\tconst sheet = styleElement.sheet;\n\t\tif (sheet == null) {\n\t\t\tthrow new SheetIsAbsentError('The sheet for the DOM styleElement is null. This SHOULD NOT happen, report to web asap');\n\t\t}\n\n\t\tconst segments: Array<':root {' | '}' | CssVariableSetter<CssVariable<MappedTheme>>> = [':root {'];\n\t\tfor (const [key, value] of Object.entries(MappedTheme) as [keyof typeof MappedTheme, MappedTheme][]) {\n\t\t\tif (themeModel.theme[key] != null) {\n\t\t\t\t// TODO: REMOVE THIS ONCE NOT INJECTED ANY MORE\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t\t\t\t// @ts-ignore\n\t\t\t\tsegments.push(`--visiba-global-${value}: ${themeModel.theme[key]};`);\n\t\t\t}\n\t\t}\n\t\tsegments.push('}');\n\n\t\tif (sheet.cssRules.length > 0) sheet.deleteRule(0);\n\t\tsheet.insertRule(segments.join(''), 0);\n\t}\n\n\tprivate createSheet(): HTMLStyleElement {\n\t\tconst styleElement = document.createElement('style');\n\t\tstyleElement.appendChild(document.createTextNode(''));\n\t\tstyleElement.type = 'text/css';\n\t\tstyleElement.setAttribute('id', 'visiba-theme-provider');\n\t\tdocument.head.appendChild(styleElement);\n\n\t\tthis.styleElement = styleElement;\n\n\t\treturn styleElement;\n\t}\n}\n","import { Color } from '@visiba/std';\nimport type { MappedTheme } from './_mapped_theme';\n\nexport class ThemeModel {\n\tpublic static createWithOldThemeVariables(oldTheme: Record<string, unknown>): ThemeModel {\n\t\t// Old theme ref (from dev1 / best):\n\t\t// c_accentColor: \"#dc1a12\"\n\t\t// c_backgroundBox: \"#ffffff\"\n\t\t// c_backgroundMain: \"#ededed\"\n\t\t// c_buttonDangerBackground: \"#ad5454\"\n\t\t// c_buttonDangerHoverBackground: \"#9c4343\"\n\t\t// c_buttonDangerHoverText: \"#FFF\"\n\t\t// c_buttonDangerText: \"#FFF\"\n\t\t// c_buttonDisabledBackground: \"#a0a0a0\"\n\t\t// c_buttonDisabledText: \"#FFF\"\n\t\t// c_buttonHoverBackground: \"#7da839\"\n\t\t// c_buttonHoverText: \"#FFF\"\n\t\t// c_buttonText: \"#FFF\"\n\t\t// c_errorBorder: \"#ad5454\"\n\t\t// c_errorText: \"#8c0017\"\n\t\t// c_inputBorder: \"#a0a0a0\"\n\t\t// c_inputPlaceholder: \"#a0a0a0\"\n\t\t// c_inputText: \"#1a1a1a\"\n\t\t// c_mainColorDark: \"#649522\"\n\t\t// c_mainColorDarkActive: \"#314811\"\n\t\t// c_mainColorLight: \"#b2ca91\"\n\t\t// c_mainOverlayBackground: \"#000000c1\"\n\t\t// c_textBody: \"#1a1a1a\"\n\t\t// c_textDark: \"#333333\"\n\t\t// c_textH1: \"#1a1a1a\"\n\t\t// c_textH2: \"#1a1a1a\"\n\t\t// c_textH3: \"#1a1a1a\"\n\t\t// c_textLight: \"#ffffff\"\n\t\t// c_textLink: \"#00758e\"\n\t\t// c_textLinkHover: \"#016e85\"\n\t\t// c_textTheme: \"#649522\"\n\n\t\tconst builder: Record<keyof typeof MappedTheme, unknown> = {\n\t\t\tprimary: oldTheme['c_mainColorDark'] ?? null, // This might not exist later // Carl\n\t\t\ttopNavigationBarBackground: null,\n\t\t\ttopNavigationBarText: null,\n\t\t\tbottomNavigationBarBackground: null,\n\t\t\tbottomNavigationBarActiveItem: null,\n\t\t\tbottomNavigationBarInactiveItem: null,\n\t\t\twebMainNavigationBarBackground: 'rgba(244, 246, 250, 0.7)',\n\t\t\twebMainNavigationBarActiveItem: oldTheme['c_textTheme'] ?? null,\n\t\t\twebMainNavigationBarInactiveItem: '#616e76',\n\t\t\twebMainNavigationBarHoverIndicator: (() => {\n\t\t\t\tconst hex = oldTheme['c_textTheme'] as string;\n\t\t\t\tif (!hex) return null;\n\n\t\t\t\tconst rgba = Color.createRgb(hex);\n\t\t\t\trgba[3] = 0.1;\n\n\t\t\t\treturn `rgba(${rgba.join(', ')})`;\n\t\t\t})(),\n\t\t\tbackground1a: oldTheme['c_backgroundMain'] ?? null,\n\t\t\tbackground1b: oldTheme['c_backgroundMain'] ?? null,\n\t\t\ttextOnThemedBackground: null,\n\t\t\tsecondaryTextInThemedBackground: null,\n\t\t\tbaseButtonDefault: null,\n\t\t\tbaseButtonHover: null,\n\t\t\tbaseButtonClicked: null,\n\t\t\ticonButtonIcon: null,\n\t\t\tbaseButtonText: null,\n\t\t\ticonButtonSecondaryText: null,\n\t\t\tbaseButtonDisabled: null,\n\t\t\tbaseButtonDisabledText: null,\n\t\t\tinputFieldBackground: null,\n\t\t\tinputFieldIcon: null,\n\t\t\tinputFieldText: null,\n\t\t\tinputFieldPlaceholderText: null,\n\t\t\tinputFieldBorder: null,\n\t\t\tbackground2: null,\n\t\t\ttextOnBackground2: oldTheme['c_textLight'] ?? null,\n\t\t\tuiCardBackground: oldTheme['c_backgroundMain'] ?? null,\n\t\t\tuiCardText: oldTheme['c_textBody'] ?? null,\n\t\t\tuiCardSecondaryText: oldTheme['c_textBody'] ?? null,\n\t\t\timageText: null,\n\t\t\timageOverlay: null,\n\t\t\ttextOnWhiteBackground: oldTheme['c_textBody'] ?? null,\n\t\t\tsecondaryTextOnWhiteBackground: null,\n\t\t\tthemedTextOnWhiteBackground: oldTheme['c_textTheme'] ?? null,\n\t\t\tprimaryButtonDefault: oldTheme['c_mainColorDark'] ?? null,\n\t\t\tprimaryButtonHover: oldTheme['c_buttonHoverBackground'] ?? null,\n\t\t\tprimaryButtonClicked: oldTheme['c_mainColorDarkActive'] ?? null,\n\t\t\tprimaryButtonText: oldTheme['c_buttonText'] ?? null,\n\t\t\tsecondaryButtonDefault: null,\n\t\t\tsecondaryButtonBorder: null,\n\t\t\tsecondaryButtonHover: null,\n\t\t\tsecondaryButtonClicked: null,\n\t\t\tsecondaryButtonText: null,\n\t\t\ttextButton: null,\n\t\t\tdisabledButton: oldTheme['c_buttonDisabledBackground'] ?? null,\n\t\t\tdisabledButtonText: oldTheme['c_buttonDisabledText'] ?? null,\n\t\t\tuiElements: null,\n\t\t\thyperLinkDefault: oldTheme['c_textLink'] ?? null,\n\t\t\thyperLinkHover: oldTheme['c_textLinkHover'] ?? null,\n\t\t\thyperLinkClicked: oldTheme['c_textLink'] ?? null,\n\t\t\tchatBubble1: null,\n\t\t\tchatText1: null,\n\t\t\tchatBubble2: null,\n\t\t\tchatText2: null,\n\t\t\tselectedElement: null,\n\t\t\thoveredElement: null,\n\t\t\taccentColor: oldTheme['c_accentColor'],\n\t\t\tsystemColorSuccess: null,\n\t\t\tsystemColorAttention: null,\n\t\t\tsystemColorError: oldTheme['c_buttonDangerBackground'] ?? null,\n\t\t\tsystemColorFocus: null,\n\t\t};\n\n\t\treturn new ThemeModel(builder);\n\t}\n\n\tpublic static create(theme: Partial<Record<keyof typeof MappedTheme, string>>): ThemeModel {\n\t\treturn new ThemeModel(theme);\n\t}\n\n\tprivate constructor(public readonly theme: Record<string, unknown>) {\n\t\t// Empty\n\t}\n}\n","// TODO move to cortex std\n\n/**\n * Returns a new string which has had its first character turned into an\n * uppercase variant.\n */\nexport function capitalizeFirstLetter(string: string): string {\n\tif (typeof string !== 'string') return '';\n\n\treturn string.charAt(0).toLocaleUpperCase() + string.slice(1);\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { UnitsApiService } from '@api/units_api.service';\nimport { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport { ThemeService } from './theme.service/mod';\nimport { ThemeModel } from './theme.service/theme_model';\nimport { LicenceHolderApiService } from '@api/licence_holder_api.service';\nimport { LicenceHolderService } from './licence_holder.service';\nimport { capitalizeFirstLetter } from '../../modules/capitalize_first_letter';\nimport { UserSettingsService } from './user_settings.service';\nimport type { AppConfigInfo, Licenceholder, Locale, UnitConfigApiModel } from '@api/generated/models';\nimport type { LicenceHolderLanguageApiModel } from '@api/models/LicenceHolderLanguageApiModel';\n\nexport interface LanguageModel {\n\tcode: I18nAndL10n.AvailableVisibaLocales;\n\tvisibaCode: string;\n\tisSupported: boolean;\n\tnativeName: string;\n\ttranslatedName: string;\n}\n\nexport interface Config {\n\t// TODO DEV-11031: Move to public base\n\thasMultipleLandingPages: boolean;\n\tprivacyPolicyUrl: string | null;\n\ttermsOfServiceUrl: string | null;\n\tunitIdOrigin: number;\n\treceptionId: number | null;\n\tlanguages: LanguageModel[];\n\ttheme: { [alias: string]: string | number | boolean };\n\ttranslations: I18nAndL10n.TranslationDictionary;\n\tappConfig: AppConfig | null;\n\tlocale: Locale;\n\tlicenceHolderMetaData: LicenceHolderMetaData;\n}\n\nexport interface AppConfig {\n\tid: number;\n\tdisplayName: string;\n\tandroidPackageId: string | null;\n\tappStoreId: string | null;\n\tstoreCompanyName: string | null;\n\tiosDownloadLink: string | null;\n\tandroidDownloadLink: string | null;\n\tiosImageUrl: string;\n\tandroidImageUrl: string;\n}\n\nexport interface LicenceHolderMetaData {\n\tid: number;\n\trootUnit: number;\n\tdisplayName: string;\n\tlegalName: string;\n\trequireClientEmail: boolean;\n\trequireClientPhone: boolean;\n\thasMultipleLandingPages: boolean;\n\tglobalCustomerId: string;\n\tdaysToDepersonalizeClientAfterRequest: number;\n}\n\nexport class ConfigNotSet extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'ConfigNotSet';\n\t\tObject.setPrototypeOf(this, ConfigNotSet.prototype);\n\t}\n}\n\n@Singleton()\nexport class ConfigService {\n\tprivate readonly loadedConfigs = new Map<number, Config>();\n\tprivate languagesCache: LanguageModel[] | null = null;\n\n\tpublic readonly __TEMP__loadedConfigsRaw = new Map<number, UnitConfigApiModel>();\n\n\tconstructor(\n\t\tprivate readonly unitsApiService: UnitsApiService,\n\t\tprivate readonly themeService: ThemeService,\n\t\tprivate readonly licenceHolderService: LicenceHolderService,\n\t\tprivate readonly licenceHolderApiService: LicenceHolderApiService,\n\t\tprivate readonly userSettingsService: UserSettingsService,\n\t) {\n\t\t// Empty\n\t}\n\n\t/** Retrieves the Config for given UnitId */\n\tpublic getConfig(unitId: number): Config {\n\t\tconst config = this.loadedConfigs.get(unitId);\n\t\tif (config == null) throw new ConfigNotSet(`No config has been set for ${unitId}`);\n\n\t\treturn config;\n\t}\n\n\t/** Loads a config for a given UnitId */\n\tpublic async loadConfig(unitId: number): Promise<Config> {\n\t\t// TODO: DEV-10573 Check if we can get backend to just add this data to the response\n\t\t// instead...\n\t\tconst languages = await this.getLanguageData();\n\n\t\tlet config = this.loadedConfigs.get(unitId);\n\t\tif (config != null) {\n\t\t\treturn this.getConfig(unitId);\n\t\t}\n\n\t\tconst { data: unitConfig } = await this.unitsApiService.getUnitConfig(unitId);\n\n\t\tconst appConfig = this.parseAppConfig(unitConfig.AppConfig);\n\t\tconst licenceHolderMetaData = this.parseLicenceHolder(unitConfig.LicenceHolder);\n\n\t\tconfig = {\n\t\t\thasMultipleLandingPages: unitConfig.LicenceHolder.HasMultipleLandingPages,\n\t\t\ttermsOfServiceUrl: unitConfig.TermsOfServiceUrl,\n\t\t\tprivacyPolicyUrl: unitConfig.PrivacyPolicyUrl,\n\t\t\tunitIdOrigin: unitConfig.Unit.UnitId,\n\t\t\treceptionId: unitConfig.ReceptionId,\n\t\t\tlanguages: languages,\n\t\t\ttheme: unitConfig.Theme,\n\t\t\ttranslations: unitConfig.Translations,\n\t\t\tappConfig: appConfig,\n\t\t\tlocale: unitConfig.Locale,\n\t\t\tlicenceHolderMetaData: licenceHolderMetaData,\n\t\t};\n\n\t\tthis.loadedConfigs.set(unitId, config);\n\n\t\tthis.__TEMP__loadedConfigsRaw.set(unitId, unitConfig);\n\n\t\tthis.themeService.replaceTheme(ThemeModel.createWithOldThemeVariables(config.theme));\n\n\t\treturn this.getConfig(unitId);\n\t}\n\n\tprivate async getLanguageData(): Promise<LanguageModel[]> {\n\t\tif (this.languagesCache == null) {\n\t\t\tconst { data } = await this.licenceHolderApiService.getSupportedLanguages(this.licenceHolderService.id);\n\n\t\t\tthis.languagesCache = this.mapLanguages(data);\n\t\t}\n\n\t\treturn Promise.resolve(this.languagesCache);\n\t}\n\n\tprivate mapLanguages(languages: LicenceHolderLanguageApiModel[]): LanguageModel[] {\n\t\tconst mappedLanguages: LanguageModel[] = [];\n\t\tlet isSupported: boolean;\n\n\t\tfor (const language of languages) {\n\t\t\tlet code: I18nAndL10n.AvailableVisibaLocales;\n\n\t\t\ttry {\n\t\t\t\tisSupported = true;\n\t\t\t\tcode = I18nAndL10n.convertExternalLocaleToAvailableLocale(language.LanguageCode);\n\t\t\t} catch {\n\t\t\t\tisSupported = false;\n\t\t\t\tcode = language.LanguageCode as I18nAndL10n.AvailableVisibaLocales;\n\t\t\t}\n\n\t\t\tmappedLanguages.push({\n\t\t\t\tcode,\n\t\t\t\tisSupported,\n\t\t\t\tvisibaCode: language.LanguageCode,\n\t\t\t\tnativeName: capitalizeFirstLetter(language.NativeName),\n\t\t\t\ttranslatedName: capitalizeFirstLetter(language.NativeName),\n\t\t\t});\n\t\t}\n\n\t\treturn mappedLanguages;\n\t}\n\n\tprivate parseAppConfig(appConfig: AppConfigInfo | null): AppConfig | null {\n\t\tif (appConfig == null) return null;\n\t\tconst config = this.userSettingsService.getSettings();\n\n\t\tlet imageLanguage: string;\n\t\tswitch (config.selectedLanguage) {\n\t\t\tcase 'sv': {\n\t\t\t\timageLanguage = config.selectedLanguage;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\timageLanguage = 'en';\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\tid: appConfig.Id,\n\t\t\tandroidPackageId: appConfig.AndroidPackageId,\n\t\t\tappStoreId: appConfig.AppStoreId,\n\t\t\tdisplayName: appConfig.DisplayName,\n\t\t\tstoreCompanyName: appConfig.StoreCompanyName,\n\t\t\tandroidDownloadLink:\n\t\t\t\tappConfig.AndroidPackageId != null\n\t\t\t\t\t? `https://play.app.goo.gl/?link=https://play.google.com/store/apps/details?id=${appConfig.AndroidPackageId}`\n\t\t\t\t\t: null,\n\t\t\tiosDownloadLink: appConfig.AppStoreId != null ? `https://itunes.apple.com/se/app/id/${appConfig.AppStoreId}?mt=8` : null,\n\t\t\tandroidImageUrl: `/new-${imageLanguage}-google-play-badge.png`,\n\t\t\tiosImageUrl: `/new-${imageLanguage}-app-store-badge.svg`,\n\t\t};\n\t}\n\n\tprivate parseLicenceHolder(appConfig: Licenceholder): LicenceHolderMetaData {\n\t\treturn {\n\t\t\tid: appConfig.Id,\n\t\t\trootUnit: appConfig.RootUnit,\n\t\t\tlegalName: appConfig.LegalName,\n\t\t\trequireClientEmail: appConfig.RequireClientEmail,\n\t\t\trequireClientPhone: appConfig.RequireClientPhone,\n\t\t\tdaysToDepersonalizeClientAfterRequest: appConfig.DaysToDepersonalizeClientAfterRequest,\n\t\t\tdisplayName: appConfig.DisplayName,\n\t\t\tglobalCustomerId: appConfig.GlobalCustomerId,\n\t\t\thasMultipleLandingPages: appConfig.HasMultipleLandingPages,\n\t\t};\n\t}\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport dayjs from 'dayjs';\nimport isBetween from 'dayjs/plugin/isBetween';\nimport weekDay from 'dayjs/plugin/weekday';\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\nimport localeData from 'dayjs/plugin/localeData';\nimport weekOfYear from 'dayjs/plugin/weekOfYear';\nimport duration from 'dayjs/plugin/duration';\nimport { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\n\ndayjs.extend(isBetween);\ndayjs.extend(weekDay);\ndayjs.extend(localizedFormat);\ndayjs.extend(localeData);\ndayjs.extend(weekOfYear);\ndayjs.extend(duration);\n\nexport enum DateDisplayFormats {\n\tDEFAULT,\n\tFULL_DISPLAY_IN_CURRENT_YEAR,\n\tFULL_DISPLAY_NO_CURRENT_YEAR,\n\tFULL_DISPLAY_NO_TIME,\n\tJUST_TIME,\n}\n\n@Singleton()\nexport class DateService {\n\t/**\n\t * Returns a new instance of DayJs\n\t */\n\tpublic static newDate(date?: Date | string | DateTime): VisibaDate {\n\t\tif (typeof date === 'string') {\n\t\t\tif (date === '') {\n\t\t\t\treturn dayjs();\n\t\t\t}\n\n\t\t\tdate = DateService.parseStringToUtc(date);\n\t\t}\n\n\t\treturn dayjs(date);\n\t}\n\n\tpublic static getLocaleSpecificDateFormatTemplate(format = DateDisplayFormats.DEFAULT): string {\n\t\tlet template = dayjs().localeData().longDateFormat('LLL');\n\n\t\tswitch (format) {\n\t\t\tcase DateDisplayFormats.FULL_DISPLAY_IN_CURRENT_YEAR: {\n\t\t\t\ttemplate = template\n\t\t\t\t\t.split(' ')\n\t\t\t\t\t.filter((part) => !part.match(/[yY]{4}/g))\n\t\t\t\t\t.join(' ');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase DateDisplayFormats.FULL_DISPLAY_NO_TIME: {\n\t\t\t\ttemplate = template\n\t\t\t\t\t.split(' ')\n\t\t\t\t\t.filter((part) => !part.match(/[Hh]{2}|[m]{2}|[s]{2}|\\[kl.\\]|[A]{1}/g))\n\t\t\t\t\t.join(' ');\n\n\t\t\t\t// Cleans up any left over \",\"\n\t\t\t\ttemplate = template.replace('YYYY,', 'YYYY');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase DateDisplayFormats.JUST_TIME: {\n\t\t\t\ttemplate = template\n\t\t\t\t\t.split(' ')\n\t\t\t\t\t.filter((part) => part.match(/[Hh]{2}|[m]{2}|[s]{2}|\\[kl.\\]|[A]{1}/g))\n\t\t\t\t\t.join(' ');\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase DateDisplayFormats.FULL_DISPLAY_NO_CURRENT_YEAR: {\n\t\t\t\ttemplate = template.replace('YYYY,', 'YYYY');\n\t\t\t\ttemplate = template.replace('YYYY', '');\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn template;\n\t}\n\n\t/**\n\t * @param time — If unit is not present, time treated as number of milliseconds\n\t */\n\tpublic static duration = dayjs.duration;\n\n\t/**\n\t *\n\t */\n\tpublic static locale = dayjs.locale;\n\n\t/**\n\t * The reason why we need to parse the date string to UTC (sometimes) is\n\t * because we can receive different types of date strings from the backend.\n\t */\n\tprivate static parseStringToUtc(dateStr: string): string {\n\t\tconst char = dateStr[dateStr.length - 1];\n\n\t\tif (char.toLowerCase() === 'z') {\n\t\t\treturn dateStr;\n\t\t}\n\n\t\treturn dateStr + 'Z';\n\t}\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\t/**\n\t * Returns a new instance of DayJs\n\t *\n\t * @deprecated use the \"newDate\" method instead.\n\t */\n\tpublic create(date?: Date | string): VisibaDate {\n\t\treturn this.newDate(date);\n\t}\n\n\t/**\n\t * Returns a new instance of VisibaDate (DayJS)\n\t */\n\tpublic newDate(date?: Date | string): VisibaDate {\n\t\treturn DateService.newDate(date);\n\t}\n\n\t/**\n\t * Returns an format template based on loaded locale.\n\t */\n\tpublic getLocaleSpecificDateFormatTemplate(format = DateDisplayFormats.DEFAULT): string {\n\t\treturn DateService.getLocaleSpecificDateFormatTemplate(format);\n\t}\n\n\t/**\n\t * Will compare \"day\" values between the argument and current time, resulting\n\t * in if the date was indeed _yesterday_.\n\t */\n\tpublic isYesterday(date: dayjs.Dayjs): boolean {\n\t\treturn date.isSame(this.create().subtract(1, 'day'), 'day');\n\t}\n\n\t/**\n\t * Will compare \"day\" values between the argument and current time, resulting\n\t * in if the date was indeed _today_.\n\t */\n\tpublic isToday(date: dayjs.Dayjs): boolean {\n\t\treturn date.isSame(this.create(), 'day');\n\t}\n\n\t/**\n\t * Will compare \"day\" values between the argument and current time, resulting\n\t * in if the date was indeed _tomorrow_.\n\t */\n\tpublic isTomorrow(date: dayjs.Dayjs): boolean {\n\t\treturn date.isSame(this.create().add(1, 'day'), 'day');\n\t}\n\n\t/**\n\t * Loads a supported locale by fetching the file\n\t */\n\tpublic async loadLocale(locale: I18nAndL10n.AvailableVisibaLocales): Promise<void> {\n\t\ttry {\n\t\t\tif (locale === 'sv') {\n\t\t\t\tawait import('dayjs/locale/sv');\n\t\t\t} else if (locale === 'nb') {\n\t\t\t\tawait import('dayjs/locale/nb');\n\t\t\t} else if (locale === 'fi') {\n\t\t\t\tawait import('dayjs/locale/fi');\n\t\t\t} else if (locale === 'da') {\n\t\t\t\tawait import('dayjs/locale/da');\n\t\t\t} else if (locale === 'en-gb') {\n\t\t\t\tawait import('dayjs/locale/en-gb');\n\t\t\t} else if (locale === 'ar') {\n\t\t\t\tawait import('dayjs/locale/ar');\n\t\t\t} else if (locale === 'fa') {\n\t\t\t\tawait import('dayjs/locale/fa');\n\t\t\t} else if (locale === 'hr') {\n\t\t\t\tawait import('dayjs/locale/hr');\n\t\t\t} else if (locale === 'pt-br') {\n\t\t\t\tawait import('dayjs/locale/pt-br');\n\t\t\t} else if (locale === 'nl') {\n\t\t\t\tawait import('dayjs/locale/nl');\n\t\t\t}\n\n\t\t\tdayjs.locale(locale);\n\n\t\t\treturn Promise.resolve();\n\t\t} catch (error) {\n\t\t\tconsole.error(`Unexpected locale error loading, the provided locale \"${locale}\" is not supported in dayjs`);\n\n\t\t\t// To not cause the application to fail to start, we'll just let the user through even\n\t\t\t// though this one failed\n\t\t\treturn Promise.resolve();\n\t\t}\n\t}\n\n\t/**\n\t * Since our backend uses a different ISO standard, we need to map theirs to Dayjs's locales\n\t */\n\tpublic convertExternalLocaleToLocal(external: string): I18nAndL10n.AvailableVisibaLocales {\n\t\tconst externalLowercase = external.toLocaleLowerCase();\n\n\t\t// Needs to convert some Visiba locales due to not matching directly to Dayjs\n\t\tif (externalLowercase === 'en') return 'en-gb';\n\t\tif (externalLowercase === 'no') return 'nb';\n\n\t\tconst availableLocales: I18nAndL10n.AvailableVisibaLocales[] = ['sv', 'nb', 'fi', 'da', 'en-gb', 'ar', 'fa', 'hr', 'pt-br'];\n\n\t\tif (availableLocales.includes(externalLowercase as I18nAndL10n.AvailableVisibaLocales)) {\n\t\t\treturn externalLowercase as I18nAndL10n.AvailableVisibaLocales;\n\t\t}\n\n\t\t// Returns en-gb if external did not match anything\n\t\treturn 'en-gb';\n\t}\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\n\ninterface AnalyticMeta {\n\turl: string;\n\tsiteId: number;\n}\n\ninterface AnalyticConfigPresent {\n\tenabled: true;\n\tmeta: Readonly<AnalyticMeta>;\n}\n\ninterface AnalyticConfigDisabled {\n\tenabled: false;\n\tmeta: null;\n}\n\ntype AnalyticConfig = AnalyticConfigPresent | AnalyticConfigDisabled;\n\ninterface Environment {\n\tapi: {\n\t\turi: string | null;\n\t};\n\trealtime: {\n\t\thost: string | null;\n\t\tport: number;\n\t};\n\tanalyticConfig: AnalyticConfig;\n\tserverBaseUrl: string;\n\tcdn: {\n\t\tcustomer: string;\n\t\tmedia: string;\n\t};\n}\n\n@Singleton()\nexport class HostingService {\n\tpublic wsBaseUri: string;\n\tpublic apiBaseUri: string;\n\tpublic readonly assetPath: string;\n\tpublic readonly mediaCdn: string;\n\tpublic readonly customerCdn: string;\n\tpublic readonly location: string;\n\tpublic readonly analyticConfig: AnalyticConfig;\n\n\tconstructor() {\n\t\t// This could be extracted from cortex:react-bundler's config.Visiba module.\n\t\t// https://github.com/VisibaCare/visiba-cortex/blob/release/alpha-01/packages/react-bundler/src/config.Visiba.ts\n\t\t// But for now it's hardcoded into this service\n\t\tconst config: Environment =\n\t\t\tprocess.env.NODE_ENV === 'development'\n\t\t\t\t? {\n\t\t\t\t\t\tapi: {\n\t\t\t\t\t\t\turi: process.env.CUSTOM_GLOBAL_ENV['API_URL'] ?? 'https://dev1.vcare.pl',\n\t\t\t\t\t\t},\n\t\t\t\t\t\trealtime: {\n\t\t\t\t\t\t\thost: process.env.CUSTOM_GLOBAL_ENV['REALTIME_HOST'] ?? 'dev1.vcare.pl',\n\t\t\t\t\t\t\tport: process.env.CUSTOM_GLOBAL_ENV['REALTIME_PORT'] ?? 443,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tanalyticConfig: {\n\t\t\t\t\t\t\tenabled: false,\n\t\t\t\t\t\t\tmeta: null,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tserverBaseUrl: '',\n\t\t\t\t\t\tcdn: {\n\t\t\t\t\t\t\tcustomer: '//customer-cdn.visibacare.com',\n\t\t\t\t\t\t\tmedia: '//media-cdn.visibacare.com',\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\t: {\n\t\t\t\t\t\tapi: {\n\t\t\t\t\t\t\turi: null,\n\t\t\t\t\t\t},\n\t\t\t\t\t\trealtime: {\n\t\t\t\t\t\t\thost: null,\n\t\t\t\t\t\t\tport: 443,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tanalyticConfig: this.getAnalyticConfig(),\n\t\t\t\t\t\tserverBaseUrl: '/PublicV3',\n\t\t\t\t\t\tcdn: {\n\t\t\t\t\t\t\tcustomer: '//customer-cdn.visibacare.com',\n\t\t\t\t\t\t\tmedia: '//media-cdn.visibacare.com',\n\t\t\t\t\t\t},\n\t\t\t\t\t};\n\n\t\tthis.location = config.api.uri ?? globalThis.location.origin;\n\t\tthis.assetPath = config.serverBaseUrl;\n\t\tthis.mediaCdn = config.cdn.media;\n\t\tthis.customerCdn = config.cdn.customer;\n\t\tthis.apiBaseUri = `${this.location ?? ''}/api`;\n\t\tthis.wsBaseUri = `wss://${config.realtime.host ?? location.hostname}:${config.realtime.port}`;\n\t\tthis.analyticConfig = config.analyticConfig;\n\t}\n\n\tprivate getAnalyticConfig(): AnalyticConfig {\n\t\tlet siteId: number;\n\n\t\tif (location.hostname.includes('vcare.pl') || location.hostname.includes('stage-service.visibacare')) {\n\t\t\tsiteId = 7; // 7 == New patient web (DEV) siteId in Matomo\n\t\t} else {\n\t\t\tsiteId = 12; // 12 == New patient web (Prod) siteId in Matomo\n\t\t}\n\n\t\treturn {\n\t\t\tenabled: true,\n\t\t\tmeta: {\n\t\t\t\turl: '//analytics.visibacare.com/',\n\t\t\t\tsiteId: siteId,\n\t\t\t},\n\t\t};\n\t}\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\n\n@Singleton()\nexport class PlatformService {\n\tpublic static get runtimeIsInBrowser(): boolean {\n\t\treturn typeof navigator !== 'undefined' && typeof window !== 'undefined';\n\t}\n\n\tpublic static get runtimeSupportsTouch(): boolean {\n\t\treturn 'ontouchstart' in window || window.navigator.maxTouchPoints > 0;\n\t}\n\n\tpublic get runtimeIsInBrowser(): boolean {\n\t\treturn PlatformService.runtimeIsInBrowser;\n\t}\n\n\tpublic get runtimeSupportsTouch(): boolean {\n\t\treturn PlatformService.runtimeSupportsTouch;\n\t}\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\tpublic browserIs(test: number): boolean {\n\t\tconst statements: boolean[] = [];\n\t\tconst {\n\t\t\tbrowsers: { chrome, edge, firefox, ie, opera, safari, samsungBrowser, strictSafari },\n\t\t} = this.parseAgentData();\n\n\t\tif ((test & _BrowserList.Edge) === _BrowserList.Edge) {\n\t\t\tstatements.push(edge);\n\t\t}\n\n\t\tif ((test & _BrowserList.SamsungBrowser) === _BrowserList.SamsungBrowser) {\n\t\t\tstatements.push(samsungBrowser);\n\t\t}\n\n\t\tif ((test & _BrowserList.Opera) === _BrowserList.Opera) {\n\t\t\tstatements.push(opera);\n\t\t}\n\n\t\tif ((test & _BrowserList.Firefox) === _BrowserList.Firefox) {\n\t\t\tstatements.push(firefox);\n\t\t}\n\n\t\tif ((test & _BrowserList.Chrome) === _BrowserList.Chrome) {\n\t\t\tstatements.push(chrome);\n\t\t}\n\n\t\tif ((test & _BrowserList.Safari) === _BrowserList.Safari) {\n\t\t\tstatements.push(safari);\n\t\t}\n\n\t\tif ((test & _BrowserList.StrictSafari) === _BrowserList.StrictSafari) {\n\t\t\tstatements.push(strictSafari);\n\t\t}\n\n\t\tif ((test & _BrowserList.IE) === _BrowserList.IE) {\n\t\t\tstatements.push(ie);\n\t\t}\n\n\t\treturn statements.filter(Boolean).length > 0;\n\t}\n\n\tpublic parseAgentData(): Readonly<UserAgentData> {\n\t\tconst edgeHTML = this.runtimeIsInBrowser && navigator.userAgent.includes('Edge/');\n\t\tconst edgeChromium = this.runtimeIsInBrowser && navigator.userAgent.includes('Edg/');\n\t\tconst edgeAndroid = this.runtimeIsInBrowser && navigator.userAgent.includes('EdgA/');\n\t\tconst edgeIos = this.runtimeIsInBrowser && navigator.userAgent.includes('EdgiOS/');\n\t\tconst edge = edgeHTML || edgeChromium || edgeAndroid || edgeIos;\n\t\tconst samsungBrowser = this.runtimeIsInBrowser && navigator.userAgent.includes('SamsungBrowser/');\n\t\tconst opera = this.runtimeIsInBrowser && (navigator.userAgent.includes('Opera') || navigator.userAgent.includes('OPR/'));\n\t\tconst firefoxIos = this.runtimeIsInBrowser && navigator.userAgent.includes('FxiOS/');\n\t\tconst firefox = this.runtimeIsInBrowser && (navigator.userAgent.includes('Firefox') || firefoxIos);\n\t\tconst chromeIos = this.runtimeIsInBrowser && navigator.userAgent.includes('CriOS/');\n\t\tconst chrome =\n\t\t\tthis.runtimeIsInBrowser && (navigator.userAgent.includes('Chrome') || chromeIos) && !edge && !opera && !samsungBrowser;\n\t\tconst safari =\n\t\t\t(this.runtimeIsInBrowser &&\n\t\t\t\tnavigator.userAgent.includes('Safari') &&\n\t\t\t\t!chrome &&\n\t\t\t\t!edgeChromium &&\n\t\t\t\t!firefox &&\n\t\t\t\t!opera &&\n\t\t\t\t!samsungBrowser) ||\n\t\t\tedgeIos ||\n\t\t\tchromeIos ||\n\t\t\tfirefoxIos;\n\t\tconst strictSafari =\n\t\t\tthis.runtimeIsInBrowser && navigator.userAgent.includes('Safari') && !chrome && !edge && !firefox && !opera && !samsungBrowser;\n\t\tconst ie = this.runtimeIsInBrowser && navigator.userAgent.includes('Trident');\n\n\t\tconst browsers = Object.freeze({\n\t\t\tedgeChromium,\n\t\t\tedgeAndroid,\n\t\t\tedgeIos,\n\t\t\tfirefoxIos,\n\t\t\tchromeIos,\n\t\t\tedge,\n\t\t\tsamsungBrowser,\n\t\t\topera,\n\t\t\tfirefox,\n\t\t\tchrome,\n\t\t\tsafari,\n\t\t\tstrictSafari,\n\t\t\tie,\n\t\t});\n\n\t\treturn Object.freeze({\n\t\t\tbrowsers,\n\t\t});\n\t}\n}\n\ninterface BrowsersData {\n\tedgeChromium: boolean;\n\tedgeAndroid: boolean;\n\tedgeIos: boolean;\n\tedge: boolean;\n\tsamsungBrowser: boolean;\n\topera: boolean;\n\tfirefoxIos: boolean;\n\tfirefox: boolean;\n\tchromeIos: boolean;\n\tchrome: boolean;\n\tsafari: boolean;\n\tstrictSafari: boolean;\n\tie: boolean;\n}\n\ninterface UserAgentData {\n\tbrowsers: Readonly<BrowsersData>;\n}\n\n// prettier-ignore\nexport enum _BrowserList {\n\tNone = 0, // 0 - Runtime is in terminal\n\tEdge = 1 << 0, // 1\n\tSafari = 1 << 1, // 2\n\tStrictSafari = 1 << 2, // 4 - All browsers within iOS is using Safari in the background, but this flag ignores that fact.\n\tFirefox = 1 << 3, // 8\n\tChrome = 1 << 4, // 16\n\tSamsungBrowser = 1 << 5, // 32\n\tOpera = 1 << 6, // 64\n\tIE = 1 << 7, // 128\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { HostingService } from './_hosting.service';\nimport { PlatformService, _BrowserList } from './_platform.service';\n\n@Singleton()\nexport class EnvironmentService {\n\t// prettier-ignore\n\tconstructor(\n\t\tpublic readonly platform: PlatformService,\n\t\tpublic readonly hosting: HostingService,\n\t) {\n\t\t// Empty\n\t}\n}\n\nexport { _BrowserList as BrowserList };\n","import { GeneralApiService } from '@api/general_api.service';\nimport { devLocalStorage } from '@src/application/dev_local_storage';\nimport { Singleton } from '@visiba-cortex/instantiation';\n\n/**\n * Service to load and distribute Feature Flags in the application.\n *\n * To add a new Feature Flag, add a new property to the \"ExpectedFlags\"\n * interface in `feature_flags.d.ts`.\n *\n * ### Related modules\n * * useFeatureFlag hook - used in React views for conditional renders.\n */\n@Singleton()\nexport class FeatureFlagService<T extends ExpectedFlags = ExpectedFlags> {\n\tpublic static checkFlag<T extends ExpectedFlags>(flag: keyof T): boolean {\n\t\tif ((globalThis as typeof window).__visiba_feature_flags__ == null) throw new FeatureFlagStoreNotSet();\n\n\t\tconst retrievedFlag = (globalThis as typeof window).__visiba_feature_flags__[flag as keyof ExpectedFlags];\n\n\t\treturn retrievedFlag ?? false;\n\t}\n\n\tconstructor(private readonly generalApiService: GeneralApiService) {\n\t\t// Empty\n\t}\n\n\tpublic async load(urlAlias: string): Promise<void> {\n\t\t(globalThis as typeof window).__visiba_feature_flags__ = undefined as never;\n\n\t\tconst { data } = await this.generalApiService.getFeatureToggles(urlAlias);\n\n\t\t// A way in for us programers to manually override any flag we want at initialization.\n\t\t// Especially useful for when new flags are being tested locally.\n\t\t// Example:\n\t\t// 1. Add \"overrideFlags\" into a new key slot in your Local Storage.\n\t\t// 2. Paste a serialized record (string, boolean) into the value field: {\"WayIn.AlternativeHome\": true}.\n\t\t// 3. Your override should start to work now.\n\t\tconst overrideFlags = devLocalStorage.get('overrideFlags');\n\n\t\t(globalThis as typeof window).__visiba_feature_flags__ = {\n\t\t\t_NOOP_EXAMPLE_DO_NOT_USE: false,\n\t\t\t'CareExperience.PW.Idp': false,\n\t\t\t'PatientWeb.UseRelativeScrollPositionInChat': false,\n\t\t\t'PatientWeb.UseAlternativeAppointment': false,\n\t\t\t'PatientWeb.UseVonage': false,\n\t\t\t'Office.RedRobinButton': false,\n\t\t\t'PatientWeb.UseNewConsent': false,\n\t\t\t'CareExperience.AllowedIPList': false,\n\t\t\t'CareExperience.VonageForceRouted': false,\n\t\t\t'CareExperience.VonageE2EE': false,\n\t\t\t...data,\n\t\t\t...(overrideFlags == null ? {} : overrideFlags),\n\t\t};\n\t}\n\n\tpublic checkFlag(toggle: keyof T): boolean {\n\t\treturn FeatureFlagService.checkFlag<T>(toggle);\n\t}\n}\n\nexport class FeatureFlagNotSet<T extends ExpectedFlags> extends Error {\n\tconstructor(featureFlag: keyof T) {\n\t\tsuper(`The feature flag \"${String(featureFlag)}\" has not yet been registered, was it removed?`);\n\t\tthis.name = 'FeatureFlagNotSet';\n\t\tObject.setPrototypeOf(this, FeatureFlagNotSet.prototype);\n\t}\n}\n\nexport class FeatureFlagStoreNotSet extends Error {\n\tconstructor() {\n\t\tsuper(`The feature flag store has not yet been declared, has the \"load\" method not been invoked?`);\n\t\tthis.name = 'FeatureFlagStoreNotSet';\n\t\tObject.setPrototypeOf(this, FeatureFlagStoreNotSet.prototype);\n\t}\n}\n","import { useService } from '@visiba-cortex/instantiation';\nimport { FeatureFlagService } from './feature_flag.service';\n\nexport function useFeatureFlag<T extends ExpectedFlags>(flag: keyof T): boolean {\n\tconst featureToggleService = useService(FeatureFlagService<T>);\n\n\tlet expectedFlag: boolean;\n\ttry {\n\t\texpectedFlag = featureToggleService.checkFlag(flag);\n\t} catch {\n\t\texpectedFlag = false;\n\t}\n\n\treturn expectedFlag;\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { EnvironmentService } from '../environment.service/mod';\nimport { FlexibleModelBase, FlexibleBaseSpecification } from './models/flexible_base';\nimport { getAbsoluteRoute } from '@helpers/route';\nimport {\n\tFlexibleActionCardModel,\n\tFlexibleButtonIconModel,\n\tFlexibleButtonHyperlinkModel,\n\tFlexibleButtonModel,\n\tFlexibleImageModel,\n\tFlexibleListDirectionalModel,\n\tFlexibleListModel,\n\tFlexibleRecentVisitsModel,\n\tFlexibleRockBottomModel,\n\tFlexibleSearchModel,\n\tFlexibleSpacerModel,\n\tFlexibleTextModel,\n} from './models/mod';\n\nimport type {\n\tGuiComponentApiModel,\n\tButtonHyperlinkApiModel as GuiComponentButtonHyperlink,\n\tButtonIconApiModel as GuiComponentButtonIcon,\n\tButtonApiModel as GuiComponentButton,\n\tImageApiModel as GuiComponentImage,\n\tListDirectionalApiModel as GuiComponentListDirectional,\n\tListApiModel as GuiComponentList,\n\tRecentVisitsApiModel as GuiComponentRecentVisits,\n\tSearchApiModel as GuiComponentSearch,\n\tSpacerApiModel as GuiComponentSpacer,\n\tTextApiModel as GuiComponentText,\n} from '@api/generated/models';\n\nexport type ComponentUnion =\n\t| FlexibleRockBottomModel\n\t| FlexibleButtonModel\n\t| FlexibleButtonIconModel\n\t| FlexibleButtonHyperlinkModel\n\t| FlexibleImageModel\n\t| FlexibleListModel\n\t| FlexibleListDirectionalModel\n\t| FlexibleTextModel\n\t| FlexibleSearchModel\n\t| FlexibleSpacerModel\n\t| FlexibleRecentVisitsModel;\n\n@Singleton()\nexport class FlexibleComponentService {\n\tconstructor(private readonly environmentService: EnvironmentService) {\n\t\t// Empty\n\t}\n\n\tpublic produce(type: 'Button', apiComponent: GuiComponentApiModel): FlexibleButtonModel;\n\tpublic produce(type: 'Button.Icon', apiComponent: GuiComponentApiModel): FlexibleButtonIconModel;\n\tpublic produce(type: 'Button.Hyperlink', apiComponent: GuiComponentApiModel): FlexibleButtonHyperlinkModel;\n\tpublic produce(type: 'Image', apiComponent: GuiComponentApiModel): FlexibleImageModel;\n\tpublic produce(type: 'List', apiComponent: GuiComponentApiModel): FlexibleListModel;\n\tpublic produce(type: 'List.Directional', apiComponent: GuiComponentApiModel): FlexibleListDirectionalModel;\n\tpublic produce(type: 'Text', apiComponent: GuiComponentApiModel): FlexibleTextModel;\n\tpublic produce(type: 'Search', apiComponent: GuiComponentApiModel): FlexibleSearchModel;\n\tpublic produce(type: 'Spacer', apiComponent: GuiComponentApiModel): FlexibleSpacerModel;\n\tpublic produce(type: 'RecentVisits', apiComponent: GuiComponentApiModel): FlexibleRecentVisitsModel;\n\t/**\n\t * NOTE: ActionCard is not a part of the backend spec. We're intentionally\n\t * defining it on the frontend.\n\t */\n\tpublic produce(type: 'ActionCard', apiComponent: GuiComponentApiModel): FlexibleRecentVisitsModel;\n\tpublic produce(type: string, apiComponent: GuiComponentApiModel): FlexibleModelBase; // Anything else than above should throw error for the developer\n\tpublic produce(\n\t\ttype:\n\t\t\t| 'Button'\n\t\t\t| 'Button.Icon'\n\t\t\t| 'Button.Hyperlink'\n\t\t\t| 'Image'\n\t\t\t| 'List'\n\t\t\t| 'List.Directional'\n\t\t\t| 'Text'\n\t\t\t| 'Search'\n\t\t\t| 'Spacer'\n\t\t\t| 'RecentVisits'\n\t\t\t| 'ActionCard'\n\t\t\t| string,\n\t\tapiComponent: GuiComponentApiModel,\n\t): ComponentUnion {\n\t\tconst baseSpec = {\n\t\t\tid: apiComponent.Id,\n\t\t\torder: apiComponent.Order,\n\t\t\thorizontalAlignment: apiComponent.HorizontalAlignment,\n\t\t} as FlexibleBaseSpecification;\n\n\t\tfunction sortFunction(a: GuiComponentApiModel, b: GuiComponentApiModel): 1 | 0 | -1 {\n\t\t\tif (a.Order > b.Order) return 1;\n\t\t\tif (a.Order < b.Order) return -1;\n\n\t\t\treturn 0;\n\t\t}\n\n\t\tswitch (type) {\n\t\t\tcase 'Button': {\n\t\t\t\tconst message = apiComponent.Data as GuiComponentButton;\n\t\t\t\tlet url = message.Url;\n\t\t\t\tif (message.OpenUrlWith === 'SameTab') {\n\t\t\t\t\turl = this.convertUrlToAbsoluteRoute(message.Url);\n\t\t\t\t}\n\n\t\t\t\treturn new FlexibleButtonModel({\n\t\t\t\t\t...baseSpec,\n\t\t\t\t\turl,\n\t\t\t\t\thasBrandedNavbar: message.HasBrandedNavbar,\n\t\t\t\t\topenAnotherApp: message.OpenAnotherApp,\n\t\t\t\t\trequiresAuthentication: message.RequiresAuthentication,\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\ttitle: message.Title ?? '',\n\t\t\t\t\topenUrlWith: message.OpenUrlWith,\n\t\t\t\t});\n\t\t\t}\n\t\t\tcase 'Button.Icon': {\n\t\t\t\tconst message = apiComponent.Data as GuiComponentButtonIcon;\n\t\t\t\tlet url = message.Url;\n\t\t\t\tif (message.OpenUrlWith === 'SameTab') {\n\t\t\t\t\turl = this.convertUrlToAbsoluteRoute(message.Url);\n\t\t\t\t}\n\n\t\t\t\tconst hasExternalIllustration = message.IconSvgUrl != null || message.IconPngUrl != null;\n\n\t\t\t\treturn new FlexibleButtonIconModel({\n\t\t\t\t\t...baseSpec,\n\t\t\t\t\turl,\n\t\t\t\t\thasBrandedNavbar: message.HasBrandedNavbar,\n\t\t\t\t\topenAnotherApp: message.OpenAnotherApp,\n\t\t\t\t\trequiresAuthentication: message.RequiresAuthentication,\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\ttitle: message.Title ?? '',\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\tsubtitle: message.Subtitle ?? '',\n\t\t\t\t\ticon: hasExternalIllustration\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\ttype: message.IconSvgUrl ? 'svgUrl' : 'pngUrl',\n\t\t\t\t\t\t\t\torigin: message.IconSvgUrl ?? message.IconPngUrl,\n\t\t\t\t\t\t }\n\t\t\t\t\t\t: null,\n\t\t\t\t\topenUrlWith: message.OpenUrlWith,\n\t\t\t\t});\n\t\t\t}\n\t\t\tcase 'Button.Hyperlink': {\n\t\t\t\tconst message = apiComponent.Data as GuiComponentButtonHyperlink;\n\t\t\t\tlet url = message.Url;\n\t\t\t\tif (message.OpenUrlWith === 'SameTab') {\n\t\t\t\t\turl = this.convertUrlToAbsoluteRoute(message.Url);\n\t\t\t\t}\n\n\t\t\t\treturn new FlexibleButtonHyperlinkModel({\n\t\t\t\t\t...baseSpec,\n\t\t\t\t\turl,\n\t\t\t\t\thasBrandedNavbar: message.HasBrandedNavbar,\n\t\t\t\t\topenAnotherApp: message.OpenAnotherApp,\n\t\t\t\t\trequiresAuthentication: message.RequiresAuthentication,\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\ttitle: message.Title ?? '',\n\t\t\t\t\topenUrlWith: message.OpenUrlWith,\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tcase 'Image': {\n\t\t\t\tconst message = apiComponent.Data as GuiComponentImage;\n\n\t\t\t\treturn new FlexibleImageModel({\n\t\t\t\t\t...baseSpec,\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\taltText: message.AltText ?? '',\n\t\t\t\t\timageUrl: message.ImageUrl,\n\t\t\t\t\timageHeight: message.ImageHeight,\n\t\t\t\t\timageWidth: message.ImageWidth,\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tcase 'List': {\n\t\t\t\tconst message = apiComponent.Data as GuiComponentList;\n\n\t\t\t\treturn new FlexibleListModel({\n\t\t\t\t\t...baseSpec,\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\ttitle: message.Title ?? '',\n\t\t\t\t\titems: message.Items.sort(sortFunction).map((component) => this.produce(component.Type, component) as FlexibleModelBase),\n\t\t\t\t});\n\t\t\t}\n\t\t\tcase 'List.Directional': {\n\t\t\t\tconst message = apiComponent.Data as GuiComponentListDirectional;\n\n\t\t\t\treturn new FlexibleListDirectionalModel({\n\t\t\t\t\t...baseSpec,\n\t\t\t\t\tdirection: message.Direction,\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\ttitle: message.Title ?? '',\n\t\t\t\t\titems: message.Items.sort(sortFunction).map((component) => this.produce(component.Type, component) as FlexibleModelBase),\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tcase 'Text': {\n\t\t\t\tconst message = apiComponent.Data as GuiComponentText;\n\n\t\t\t\treturn new FlexibleTextModel({\n\t\t\t\t\t...baseSpec,\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\tvalue: message.Value ?? '',\n\t\t\t\t\tsize: message.Size,\n\t\t\t\t\tweight: message.Weight,\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\tcolor: message.Color ?? '',\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tcase 'Search': {\n\t\t\t\tconst message = apiComponent.Data as GuiComponentSearch;\n\n\t\t\t\treturn new FlexibleSearchModel({\n\t\t\t\t\t...baseSpec,\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\ttitle: message.Title ?? '',\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tcase 'Spacer': {\n\t\t\t\tconst message = apiComponent.Data as GuiComponentSpacer;\n\n\t\t\t\treturn new FlexibleSpacerModel({\n\t\t\t\t\t...baseSpec,\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\tvertical: message.Vertical ?? '',\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\thorizontal: message.Horizontal ?? '',\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tcase 'RecentVisits': {\n\t\t\t\tconst message = apiComponent.Data as GuiComponentRecentVisits;\n\n\t\t\t\treturn new FlexibleRecentVisitsModel({\n\t\t\t\t\t...baseSpec,\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\ttitle: message.Title ?? '',\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tcase 'ActionCard': {\n\t\t\t\tconst message = apiComponent.Data as GuiComponentButtonIcon;\n\t\t\t\tlet url = message.Url;\n\t\t\t\tif (message.OpenUrlWith === 'SameTab') {\n\t\t\t\t\turl = this.convertUrlToAbsoluteRoute(message.Url);\n\t\t\t\t}\n\n\t\t\t\tconst hasExternalIllustration = message.IconSvgUrl != null || message.IconPngUrl != null;\n\n\t\t\t\treturn new FlexibleActionCardModel({\n\t\t\t\t\t...baseSpec,\n\t\t\t\t\turl,\n\t\t\t\t\thasBrandedNavbar: message.HasBrandedNavbar,\n\t\t\t\t\topenAnotherApp: message.OpenAnotherApp,\n\t\t\t\t\trequiresAuthentication: message.RequiresAuthentication,\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\ttitle: message.Title ?? '',\n\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\tsubtitle: message.Subtitle ?? '',\n\t\t\t\t\ticon: hasExternalIllustration\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\ttype: message.IconSvgUrl ? 'svgUrl' : 'pngUrl',\n\t\t\t\t\t\t\t\torigin: message.IconSvgUrl ?? message.IconPngUrl,\n\t\t\t\t\t\t }\n\t\t\t\t\t\t: null,\n\t\t\t\t\topenUrlWith: message.OpenUrlWith,\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tdefault: {\n\t\t\t\tconst subdivideTypes = type.split('.');\n\t\t\t\tif (subdivideTypes.length === 1) {\n\t\t\t\t\treturn new FlexibleRockBottomModel({\n\t\t\t\t\t\t...baseSpec,\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tsubdivideTypes.pop();\n\t\t\t\tconst glueTogether = subdivideTypes.join('.');\n\n\t\t\t\t// In casting we trust 🙏\n\t\t\t\treturn this.produce(glueTogether, apiComponent) as ComponentUnion;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate convertUrlToAbsoluteRoute(urlLike: string): string {\n\t\tconst url = new URL(urlLike);\n\t\tconst normalizeUrlPathName = url.pathname[0] === '/' ? url.pathname.substring(1) : url.pathname;\n\n\t\tif (this.hostnameIsWithinSameDomain(url.hostname)) {\n\t\t\treturn getAbsoluteRoute(normalizeUrlPathName + url.search);\n\t\t}\n\n\t\treturn urlLike;\n\t}\n\n\tprivate hostnameIsWithinSameDomain(hostname: string): boolean {\n\t\tif (this.environmentService.hosting.location.includes(hostname)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}\n}\n","import type { HorizontalAlignment } from '@api/generated/models';\n\nexport interface FlexibleBaseSpecification {\n\tid: number;\n\torder: number;\n\thorizontalAlignment: HorizontalAlignment;\n}\n\nexport abstract class FlexibleModelBase {\n\tpublic readonly id: number;\n\tpublic readonly order: number;\n\tpublic readonly horizontalAlignment: HorizontalAlignment;\n\n\tconstructor(spec: FlexibleBaseSpecification) {\n\t\tthis.id = spec.id;\n\t\tthis.order = spec.order;\n\t\tthis.horizontalAlignment = spec.horizontalAlignment;\n\t}\n}\n","import { FlexibleModelBase, FlexibleBaseSpecification } from './flexible_base';\nimport type { OpenUrlWithKind } from '@api/generated/models';\n\ninterface Icon {\n\torigin: string;\n\ttype: 'svgUrl' | 'pngUrl' | 'local';\n}\n\nexport interface FlexibleActionCardSpecification extends FlexibleBaseSpecification {\n\tid: number;\n\ttitle: string;\n\turl: string;\n\trequiresAuthentication: boolean;\n\topenAnotherApp: boolean;\n\thasBrandedNavbar: boolean;\n\ticon: Icon | null;\n\tsubtitle: string;\n\topenUrlWith: OpenUrlWithKind;\n}\n\n/**\n * NOTE: ActionCard is not a part of the backend spec. We're intentionally\n * defining it on the frontend.\n */\nexport class FlexibleActionCardModel extends FlexibleModelBase {\n\tpublic readonly title: string;\n\tpublic readonly url: string;\n\tpublic readonly requiresAuthentication: boolean;\n\tpublic readonly openAnotherApp: boolean;\n\tpublic readonly hasBrandedNavbar: boolean;\n\tpublic readonly icon: Icon | null;\n\tpublic readonly subtitle: string;\n\tpublic readonly openUrlWith: OpenUrlWithKind;\n\n\tconstructor(spec: FlexibleActionCardSpecification) {\n\t\tsuper(spec);\n\n\t\tthis.title = spec.title;\n\t\tthis.url = spec.url;\n\t\tthis.requiresAuthentication = spec.requiresAuthentication;\n\t\tthis.openAnotherApp = spec.openAnotherApp;\n\t\tthis.hasBrandedNavbar = spec.hasBrandedNavbar;\n\t\tthis.icon = spec.icon;\n\t\tthis.subtitle = spec.subtitle;\n\t\tthis.openUrlWith = spec.openUrlWith;\n\t}\n}\n","import { FlexibleModelBase, FlexibleBaseSpecification } from './flexible_base';\nimport type { OpenUrlWithKind } from '@api/generated/models';\n\nexport interface FlexibleButtonSpecification extends FlexibleBaseSpecification {\n\ttitle: string;\n\turl: string;\n\trequiresAuthentication: boolean;\n\topenAnotherApp: boolean;\n\thasBrandedNavbar: boolean;\n\topenUrlWith: OpenUrlWithKind;\n}\n\nexport class FlexibleButtonModel extends FlexibleModelBase {\n\tpublic readonly title: string;\n\tpublic readonly url: string;\n\tpublic readonly requiresAuthentication: boolean;\n\tpublic readonly openAnotherApp: boolean;\n\tpublic readonly hasBrandedNavbar: boolean;\n\tpublic readonly openUrlWith: OpenUrlWithKind;\n\n\tconstructor(spec: FlexibleButtonSpecification) {\n\t\tsuper(spec);\n\n\t\tthis.title = spec.title;\n\t\tthis.url = spec.url;\n\t\tthis.requiresAuthentication = spec.requiresAuthentication;\n\t\tthis.openAnotherApp = spec.openAnotherApp;\n\t\tthis.hasBrandedNavbar = spec.hasBrandedNavbar;\n\t\tthis.openUrlWith = spec.openUrlWith;\n\t}\n}\n","import { FlexibleModelBase, FlexibleBaseSpecification } from './flexible_base';\nimport type { OpenUrlWithKind } from '@api/generated/models';\n\nexport interface FlexibleButtonHyperlinkSpecification extends FlexibleBaseSpecification {\n\tid: number;\n\ttitle: string;\n\turl: string;\n\trequiresAuthentication: boolean;\n\topenAnotherApp: boolean;\n\thasBrandedNavbar: boolean;\n\topenUrlWith: OpenUrlWithKind;\n}\n\nexport class FlexibleButtonHyperlinkModel extends FlexibleModelBase {\n\tpublic readonly title: string;\n\tpublic readonly url: string;\n\tpublic readonly requiresAuthentication: boolean;\n\tpublic readonly openAnotherApp: boolean;\n\tpublic readonly hasBrandedNavbar: boolean;\n\tpublic readonly openUrlWith: OpenUrlWithKind;\n\n\tconstructor(spec: FlexibleButtonHyperlinkSpecification) {\n\t\tsuper(spec);\n\n\t\tthis.title = spec.title;\n\t\tthis.url = spec.url;\n\t\tthis.requiresAuthentication = spec.requiresAuthentication;\n\t\tthis.openAnotherApp = spec.openAnotherApp;\n\t\tthis.hasBrandedNavbar = spec.hasBrandedNavbar;\n\t\tthis.openUrlWith = spec.openUrlWith;\n\t}\n}\n","import { FlexibleModelBase, FlexibleBaseSpecification } from './flexible_base';\nimport type { OpenUrlWithKind } from '@api/generated/models';\n\ninterface Icon {\n\torigin: string;\n\ttype: 'svgUrl' | 'pngUrl' | 'local';\n}\n\nexport interface FlexibleButtonIconSpecification extends FlexibleBaseSpecification {\n\tid: number;\n\ttitle: string;\n\turl: string;\n\trequiresAuthentication: boolean;\n\topenAnotherApp: boolean;\n\thasBrandedNavbar: boolean;\n\ticon: Icon | null;\n\tsubtitle: string;\n\topenUrlWith: OpenUrlWithKind;\n}\n\nexport class FlexibleButtonIconModel extends FlexibleModelBase {\n\tpublic readonly title: string;\n\tpublic readonly url: string;\n\tpublic readonly requiresAuthentication: boolean;\n\tpublic readonly openAnotherApp: boolean;\n\tpublic readonly hasBrandedNavbar: boolean;\n\tpublic readonly icon: Icon | null;\n\tpublic readonly subtitle: string;\n\tpublic readonly openUrlWith: OpenUrlWithKind;\n\n\tconstructor(spec: FlexibleButtonIconSpecification) {\n\t\tsuper(spec);\n\n\t\tthis.title = spec.title;\n\t\tthis.url = spec.url;\n\t\tthis.requiresAuthentication = spec.requiresAuthentication;\n\t\tthis.openAnotherApp = spec.openAnotherApp;\n\t\tthis.hasBrandedNavbar = spec.hasBrandedNavbar;\n\t\tthis.icon = spec.icon;\n\t\tthis.subtitle = spec.subtitle;\n\t\tthis.openUrlWith = spec.openUrlWith;\n\t}\n}\n","import { FlexibleModelBase, FlexibleBaseSpecification } from './flexible_base';\n\nexport interface FlexibleImageSpecification extends FlexibleBaseSpecification {\n\tid: number;\n\timageUrl: string;\n\taltText: string;\n\timageHeight: number;\n\timageWidth: number;\n}\n\nexport class FlexibleImageModel extends FlexibleModelBase {\n\tpublic readonly imageUrl: string;\n\tpublic readonly altText: string;\n\tpublic readonly imageHeight: number;\n\tpublic readonly imageWidth: number;\n\n\tconstructor(spec: FlexibleImageSpecification) {\n\t\tsuper(spec);\n\n\t\tthis.imageUrl = spec.imageUrl;\n\t\tthis.altText = spec.altText;\n\t\tthis.imageHeight = spec.imageHeight;\n\t\tthis.imageWidth = spec.imageWidth;\n\t}\n}\n","import { FlexibleModelBase, FlexibleBaseSpecification } from './flexible_base';\n\nexport interface FlexibleListSpecification extends FlexibleBaseSpecification {\n\tid: number;\n\titems: FlexibleModelBase[];\n\ttitle: string;\n}\n\nexport class FlexibleListModel extends FlexibleModelBase {\n\tpublic readonly items: FlexibleModelBase[];\n\tpublic readonly title: string;\n\n\tconstructor(spec: FlexibleListSpecification) {\n\t\tsuper(spec);\n\n\t\tthis.items = spec.items;\n\t\tthis.title = spec.title;\n\t}\n}\n","import { FlexibleModelBase, FlexibleBaseSpecification } from './flexible_base';\n\nexport interface FlexibleListDirectionalSpecification extends FlexibleBaseSpecification {\n\tid: number;\n\titems: FlexibleModelBase[];\n\tdirection: string;\n\ttitle: string;\n}\n\nexport class FlexibleListDirectionalModel extends FlexibleModelBase {\n\tpublic readonly items: FlexibleModelBase[];\n\tpublic readonly title: string;\n\tpublic readonly direction: string;\n\n\tconstructor(spec: FlexibleListDirectionalSpecification) {\n\t\tsuper(spec);\n\t\tthis.title = spec.title;\n\t\tthis.items = spec.items;\n\t\tthis.direction = spec.direction;\n\t}\n}\n","import { FlexibleModelBase, FlexibleBaseSpecification } from './flexible_base';\n\nexport interface FlexibleRecentVisitsSpecification extends FlexibleBaseSpecification {\n\ttitle: string;\n}\n\nexport class FlexibleRecentVisitsModel extends FlexibleModelBase {\n\tpublic readonly title: string;\n\n\tconstructor(spec: FlexibleRecentVisitsSpecification) {\n\t\tsuper(spec);\n\n\t\tthis.title = spec.title;\n\t}\n}\n","import { FlexibleModelBase, FlexibleBaseSpecification } from './flexible_base';\n\nexport interface FlexibleRockBottomSpecification extends FlexibleBaseSpecification {}\n\nexport class FlexibleRockBottomModel extends FlexibleModelBase {\n\tconstructor(spec: FlexibleRockBottomSpecification) {\n\t\tsuper(spec);\n\t}\n}\n","import { FlexibleModelBase, FlexibleBaseSpecification } from './flexible_base';\n\nexport interface FlexibleSearchSpecification extends FlexibleBaseSpecification {\n\tid: number;\n\ttitle: string;\n}\n\nexport class FlexibleSearchModel extends FlexibleModelBase {\n\tpublic readonly title: string;\n\n\tconstructor(spec: FlexibleSearchSpecification) {\n\t\tsuper(spec);\n\n\t\tthis.title = spec.title;\n\t}\n}\n","import { FlexibleModelBase, FlexibleBaseSpecification } from './flexible_base';\n\nexport interface FlexibleSpacerSpecification extends FlexibleBaseSpecification {\n\tid: number;\n\tvertical: string;\n\thorizontal: string;\n}\n\nexport class FlexibleSpacerModel extends FlexibleModelBase {\n\tpublic readonly vertical: string;\n\tpublic readonly horizontal: string;\n\n\tconstructor(spec: FlexibleSpacerSpecification) {\n\t\tsuper(spec);\n\n\t\tthis.vertical = spec.vertical;\n\t\tthis.horizontal = spec.horizontal;\n\t}\n}\n","import { FlexibleModelBase, FlexibleBaseSpecification } from './flexible_base';\n\nexport interface FlexibleTextSpecification extends FlexibleBaseSpecification {\n\tid: number;\n\tvalue: string;\n\tsize: string;\n\tweight: string;\n\tcolor: string;\n}\n\nexport class FlexibleTextModel extends FlexibleModelBase {\n\tpublic readonly value: string;\n\tpublic readonly size: string;\n\tpublic readonly weight: string;\n\tpublic readonly color: string;\n\n\tconstructor(spec: FlexibleTextSpecification) {\n\t\tsuper(spec);\n\n\t\tthis.value = spec.value;\n\t\tthis.size = spec.size;\n\t\tthis.weight = spec.weight;\n\t\tthis.color = spec.color;\n\t}\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\n\n@Singleton()\nexport class SpaContextService {\n\tpublic static webVersion: string | null = null;\n\n\tconstructor() {\n\t\t// Empty\n\t}\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { Http, HttpResponse, HttpOptions, HttpOptionConfiguration } from '@visiba-cortex/http';\nimport { SpaContextService } from './spa_context.service';\nimport { EnvironmentService } from './environment.service/mod';\nimport { ApplicationError, ArgumentError } from '@visiba/std';\nimport { devLocalStorage } from '../dev_local_storage';\nimport { Logger } from '@modules/logger/logger';\nimport { UserSettingsService } from './user_settings.service';\nimport type { VisibaBackendApiResponse } from '@api/ResultDataEnvelopeApiModel';\nimport { sharedResolution } from '@public/src/shared_resolution';\n\nexport interface VisibaEnvelope<T> {\n\tdata: T;\n\tsuccessful: boolean;\n\theaders: HttpResponse<T>['headers'];\n}\n\nexport type VisibaApiPromise<T> = Promise<VisibaEnvelope<T>>;\n\nconst mockedResponseData: Record<string, unknown> = Object.create(null);\n\n/**\n * A mocking adapter to intercept response data for a given request. The data\n * will be exhausted after a request has touched it.\n */\nexport function mockResponse(key: string, data: unknown): void {\n\tif (mockedResponseData[key]) {\n\t\tthrow new ArgumentError(`previous \"${key}\" has never been exhausted, your tests are faulty if this were to happen`);\n\t}\n\n\tmockedResponseData[key] = data;\n}\n\n/**\n * The configuration for a request, contains its headers and other useful meta data\n */\nexport class VisibaOptions extends HttpOptions {\n\tconstructor({ cancelToken, requestConfig, ...rest }: HttpOptionConfiguration) {\n\t\tsuper({\n\t\t\tcancelToken,\n\t\t\trequestConfig: {\n\t\t\t\theaders: {\n\t\t\t\t\t'Content-Type': 'application/json',\n\t\t\t\t\tPragma: 'no-cache',\n\t\t\t\t\t'If-Modified-Since': 'Mon, 26 Jul 1997 05:00:00 GMT',\n\t\t\t\t\t'Cache-Control': 'no-cache, no-store, must-revalidate',\n\t\t\t\t},\n\t\t\t\t...requestConfig,\n\t\t\t},\n\t\t\t...rest,\n\t\t});\n\n\t\tconst userSettingsService = sharedResolution.resolve(UserSettingsService);\n\t\tconst config = userSettingsService.getSettings(true);\n\n\t\tconst customHeadersBuilder: Record<string, string | boolean> = {\n\t\t\t'X-App-Lang': config?.selectedLanguage ?? '',\n\t\t};\n\n\t\t// If this is not passed in any shape or form, backend won't return\n\t\t// credentials during development.\n\t\tcustomHeadersBuilder['X-App-WebVersion'] = SpaContextService.webVersion ?? '';\n\n\t\tconst requestVerificationToken = devLocalStorage.get('requestVerificationToken');\n\t\tconst identitySession = devLocalStorage.get('identitySession');\n\t\tif (requestVerificationToken) {\n\t\t\tcustomHeadersBuilder['__RequestVerificationToken'] = requestVerificationToken;\n\t\t} else if (process.env.NODE_ENV === 'development' && identitySession) {\n\t\t\tcustomHeadersBuilder['X-Authorization'] = `ticket ${identitySession}`;\n\t\t\tcustomHeadersBuilder['X-App-SkipXsfrVerification'] = true;\n\t\t}\n\n\t\tthis.requestConfig.headers = {\n\t\t\t...this.requestConfig.headers,\n\t\t\t...customHeadersBuilder,\n\t\t};\n\t}\n}\n\nfunction isVisibaEnvelope<T>(response: any): response is { Data: T; Successful: boolean } {\n\tif (response == null) return false;\n\tif (typeof response !== 'object') return false;\n\tif (!('Data' in response)) return false;\n\n\treturn true;\n}\n\nfunction interceptBeforeGoingToRequester<T>(response: HttpResponse<VisibaBackendApiResponse<T>>): VisibaEnvelope<T> {\n\tconst { headers, config, status } = response;\n\n\tif (headers) {\n\t\tconst webVersion = headers['x-app-webversion'];\n\t\tconst clientIdentitySession = headers['x-app-clientsession'];\n\n\t\tif (webVersion && SpaContextService.webVersion !== webVersion) {\n\t\t\tif (SpaContextService.webVersion === null) {\n\t\t\t\tSpaContextService.webVersion = webVersion;\n\t\t\t} else {\n\t\t\t\t// do something if not matching, currently noop\n\t\t\t}\n\t\t}\n\n\t\tif (clientIdentitySession) devLocalStorage.set('identitySession', clientIdentitySession);\n\t}\n\n\t// This we want to remove!!!!!!!!\n\tif (config.responseType === 'blob') {\n\t\treturn {\n\t\t\tdata: response.data as unknown as T,\n\t\t\tsuccessful: status === 200,\n\t\t\theaders,\n\t\t};\n\t}\n\n\tlet data: T;\n\tlet successful = true;\n\n\tdata = response.data as unknown as T;\n\t// To enforce the removal of the wrapper and migrating to problem details & auto generated clients.\n\tif (isVisibaEnvelope<typeof data>(data)) {\n\t\tsuccessful = data['Successful'];\n\t\tdata = data['Data'];\n\t}\n\n\treturn {\n\t\tdata,\n\t\tsuccessful: successful ?? status === 200,\n\t\theaders,\n\t};\n}\n\nclass MockClient {\n\tconstructor(private readonly httpClientRef: ReturnType<typeof Http.create>) {\n\t\t// Empty\n\t}\n\n\tpublic get<T>(mockUrl: string, data?: T): VisibaApiPromise<T> {\n\t\treturn this.sender(this.httpClientRef.get, mockUrl, data, false);\n\t}\n\n\tpublic post<T>(mockUrl: string, data?: T): VisibaApiPromise<T> {\n\t\treturn this.sender(this.httpClientRef.post, mockUrl, data, true);\n\t}\n\n\tpublic put<T>(mockUrl: string, data?: T): VisibaApiPromise<T> {\n\t\treturn this.sender(this.httpClientRef.put, mockUrl, data, true);\n\t}\n\n\tpublic delete<T>(mockUrl: string, data?: T): VisibaApiPromise<T> {\n\t\treturn this.sender(this.httpClientRef.put, mockUrl, data, false);\n\t}\n\n\tprivate sender<T>(\n\t\tfn:\n\t\t\t| MockClient['httpClientRef']['get']\n\t\t\t| MockClient['httpClientRef']['post']\n\t\t\t| MockClient['httpClientRef']['put']\n\t\t\t| MockClient['httpClientRef']['delete'],\n\t\tmockUrl: string,\n\t\tdata: T | undefined,\n\t\thasBody: boolean,\n\t): VisibaApiPromise<T> {\n\t\tconst storedData = this.exhaustMockResponse<T>(mockUrl);\n\t\tdata = storedData !== null ? storedData : data;\n\t\tif (data === undefined) {\n\t\t\tthrow new ApplicationError('No mock data to be found, its possible that the stored request has already been exhausted');\n\t\t}\n\n\t\tconst badUrl = '_'; // Incase this would actually try send a real request\n\t\tconst visibaOption = new VisibaOptions({\n\t\t\tmock: {\n\t\t\t\tdata: this.wrapMockedResponseToBecomeVisibaBackendResponse(data),\n\t\t\t},\n\t\t});\n\n\t\t// If it's \"post\" or \"put\" a body is required for these function calls\n\t\tif (hasBody) {\n\t\t\treturn (fn as MockClient['httpClientRef']['post'] | MockClient['httpClientRef']['put'])<VisibaBackendApiResponse<T>>(\n\t\t\t\tbadUrl,\n\t\t\t\tnull,\n\t\t\t\tvisibaOption,\n\t\t\t).then((response) => interceptBeforeGoingToRequester(response));\n\t\t}\n\n\t\treturn (fn as MockClient['httpClientRef']['get'] | MockClient['httpClientRef']['delete'])<VisibaBackendApiResponse<T>>(\n\t\t\tbadUrl,\n\t\t\tvisibaOption,\n\t\t).then((response) => interceptBeforeGoingToRequester(response));\n\t}\n\n\tprivate exhaustMockResponse<T>(key: string): T | null {\n\t\tif (mockedResponseData[key]) {\n\t\t\tconst response = mockedResponseData[key] as T;\n\t\t\tdelete mockedResponseData[key];\n\n\t\t\treturn response;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tprivate wrapMockedResponseToBecomeVisibaBackendResponse<T>(data: T): VisibaBackendApiResponse<T> {\n\t\treturn {\n\t\t\tData: data,\n\t\t\tErrorCode: '',\n\t\t\tErrorMessage: '',\n\t\t\tSuccessful: true,\n\t\t};\n\t}\n}\n\n@Singleton()\nexport class HttpService {\n\tprivate readonly http = Http.create('visiba');\n\n\tconstructor(private readonly environmentService: EnvironmentService) {\n\t\tthis.http.setCustomOption(VisibaOptions);\n\t\tthis.http.setConfig({\n\t\t\tbaseURL: this.environmentService.hosting.apiBaseUri,\n\t\t});\n\t}\n\n\tpublic get<T>(...args: ArgumentTypes<HttpService['http']['get']>): VisibaApiPromise<T> {\n\t\tLogger.assert(Logger.Level.verbose, `Requests ${this.environmentService.hosting.apiBaseUri}/${args[0]} method = GET`);\n\n\t\treturn this.http.get<VisibaBackendApiResponse<T>>(...args).then((response) => interceptBeforeGoingToRequester(response));\n\t}\n\n\tpublic post<T>(...args: ArgumentTypes<HttpService['http']['post']>): VisibaApiPromise<T> {\n\t\tLogger.assert(Logger.Level.verbose, `Requests ${this.environmentService.hosting.apiBaseUri}/${args[0]} method = POST`);\n\n\t\treturn this.http.post<VisibaBackendApiResponse<T>>(...args).then((response) => interceptBeforeGoingToRequester(response));\n\t}\n\n\tpublic put<T>(...args: ArgumentTypes<HttpService['http']['put']>): VisibaApiPromise<T> {\n\t\tLogger.assert(Logger.Level.verbose, `Requests ${this.environmentService.hosting.apiBaseUri}/${args[0]} method = PUT`);\n\n\t\treturn this.http.put<VisibaBackendApiResponse<T>>(...args).then((response) => interceptBeforeGoingToRequester(response));\n\t}\n\n\tpublic delete<T>(...args: ArgumentTypes<HttpService['http']['delete']>): VisibaApiPromise<T> {\n\t\tLogger.assert(Logger.Level.verbose, `Requests ${this.environmentService.hosting.apiBaseUri}/${args[0]} method = DELETE`);\n\n\t\treturn this.http.delete<VisibaBackendApiResponse<T>>(...args).then((response) => interceptBeforeGoingToRequester(response));\n\t}\n\n\t/**\n\t * Sets the request into a mocking mode, only use this in development / testing\n\t *\n\t * The `mockResponse` is a useful utility function that works with combination\n\t * with this mode. Use it to create custom response data when testing!\n\t * */\n\tpublic mock(): MockClient {\n\t\treturn new MockClient(this.http);\n\t}\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport type { PublicBaseApiModel } from '@src/api/models/PublicBaseApiModel';\n\ninterface StoredData {\n\tlanguageCode: I18nAndL10n.AvailableVisibaLocales | null;\n\trootUnitId: number | null;\n\talias: string | null;\n\tid: number | null;\n\tglobalCustomerId: string | null;\n\tenforcedWhiteLabel: boolean | null;\n}\n\nexport class CriticalMissingConfigError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'CriticalMissingConfigError';\n\t\tObject.setPrototypeOf(this, CriticalMissingConfigError.prototype);\n\t}\n}\n\n@Singleton()\nexport class LicenceHolderService {\n\tpublic get alias(): string {\n\t\tif (this.storedData.alias == null) {\n\t\t\tthrow new CriticalMissingConfigError(\"Licenceholder's alias was never set\");\n\t\t}\n\n\t\treturn this.storedData.alias;\n\t}\n\tpublic get id(): number {\n\t\tif (this.storedData.id == null) {\n\t\t\tthrow new CriticalMissingConfigError(\"Licenceholder's id was never set\");\n\t\t}\n\n\t\treturn this.storedData.id;\n\t}\n\n\tpublic get rootUnitId(): number {\n\t\tif (this.storedData.rootUnitId == null) {\n\t\t\tthrow new CriticalMissingConfigError(\"Licenceholder's rootUnitId was never set\");\n\t\t}\n\n\t\treturn this.storedData.rootUnitId;\n\t}\n\n\tpublic get globalCustomerId(): string {\n\t\tif (this.storedData.globalCustomerId == null) {\n\t\t\tthrow new CriticalMissingConfigError(\"Licenceholder's globalCustomerId was never set\");\n\t\t}\n\n\t\treturn this.storedData.globalCustomerId;\n\t}\n\n\tpublic get rootLanguageCode(): I18nAndL10n.AvailableVisibaLocales {\n\t\tif (this.storedData.languageCode == null) throw new CriticalMissingConfigError(\"Licenceholder's languageCode was never set\");\n\n\t\treturn this.storedData.languageCode;\n\t}\n\n\tpublic get enforcedWhiteLabel(): boolean {\n\t\tif (this.storedData.enforcedWhiteLabel == null) throw new CriticalMissingConfigError('EnforcedWhiteLabel was never set');\n\n\t\treturn this.storedData.enforcedWhiteLabel;\n\t}\n\tprivate storedData: StoredData = {\n\t\tlanguageCode: null,\n\t\trootUnitId: null,\n\t\talias: null,\n\t\tid: null,\n\t\tglobalCustomerId: null,\n\t\tenforcedWhiteLabel: null,\n\t};\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\tpublic async loadFromAlias(alias: string, data: PublicBaseApiModel): Promise<void> {\n\t\tconst { LicenceHolderId, RootUnitId, LanguageCode, GlobalCustomerId, HideProvidedByVisibaCare } = data;\n\n\t\tthis.storedData = {\n\t\t\talias,\n\t\t\tlanguageCode: I18nAndL10n.convertExternalLocaleToAvailableLocale(LanguageCode),\n\t\t\trootUnitId: RootUnitId,\n\t\t\tid: LicenceHolderId,\n\t\t\tglobalCustomerId: GlobalCustomerId,\n\t\t\tenforcedWhiteLabel: HideProvidedByVisibaCare,\n\t\t};\n\t}\n}\n","import { ConfigService } from '@services/config.service';\nimport { UnitNode, UnitService } from '@services/unit.service';\nimport { Singleton } from '@visiba-cortex/instantiation';\nimport { EventEmitter, safeJsonParse } from '@visiba/std';\nimport { Logger } from '../../modules/logger/logger';\nimport { RegisterRecentVisitService } from './register_recent_visit.service';\n\nexport class CouldNotLoadUnitError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'CouldNotLoadUnitError';\n\t\tObject.setPrototypeOf(this, CouldNotLoadUnitError.prototype);\n\t}\n}\n\nexport class NoLocationCouldHaveBeenSet extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'NoLocationCouldHaveBeenSet';\n\t\tObject.setPrototypeOf(this, NoLocationCouldHaveBeenSet.prototype);\n\t}\n}\n\nexport class UnitIsNotEntrance extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'UnitIsNotEntrance';\n\t\tObject.setPrototypeOf(this, UnitIsNotEntrance.prototype);\n\t}\n}\n\n@Singleton()\nexport class LocationSelectorService {\n\tpublic readonly events = new EventEmitter<{\n\t\tonCommitting: number;\n\t\tonCommitted: number;\n\t}>();\n\n\tprivate selectingLocation: UnitNode | null = null;\n\tprivate selectedLocation: UnitNode | null = null;\n\n\tprivate selectingEntrance: UnitNode | null = null;\n\tprivate selectedEntrance: UnitNode | null = null;\n\n\t/** Gets selected unit location, throws exception ({@link NoLocationCouldHaveBeenSet}) if is not set or is about to be */\n\tpublic get location(): UnitNode {\n\t\treturn this.getHeadingTowardsOrCurrentLocation();\n\t}\n\n\t/** Gets selected location UnitId, throws exception ({@link NoLocationCouldHaveBeenSet}) if is not set or is about to be */\n\tpublic get locationUnitId(): number {\n\t\tconst unit = this.getHeadingTowardsOrCurrentLocation();\n\n\t\treturn unit.id;\n\t}\n\n\t/** Gets selected entrance UnitId */\n\tpublic get entrance(): UnitNode | null {\n\t\treturn this.getHeadingTowardsOrCurrentEntrance();\n\t}\n\n\t/** Gets UnitId of the selected entrance unit */\n\tpublic get entranceUnitId(): number | null {\n\t\tconst unit = this.getHeadingTowardsOrCurrentEntrance();\n\t\tif (unit == null) return null;\n\n\t\treturn unit.id;\n\t}\n\n\tconstructor(\n\t\tprivate readonly unitService: UnitService,\n\t\tprivate readonly configService: ConfigService,\n\t\tprivate readonly recentVisitService: RegisterRecentVisitService,\n\t) {\n\t\t// Empty\n\t}\n\n\tpublic async commitByUnitId(unitId: number): Promise<void> {\n\t\ttry {\n\t\t\tawait this.load(unitId);\n\t\t} catch (error: unknown) {\n\t\t\tlet reason: string;\n\t\t\tif (error instanceof Error) {\n\t\t\t\treason = error.message;\n\t\t\t} else {\n\t\t\t\treason = safeJsonParse(error) ?? 'unknown';\n\t\t\t}\n\n\t\t\tthrow new CouldNotLoadUnitError(`There was an problem loading unit id \"${unitId}\", reason:\\n${reason}`);\n\t\t}\n\t}\n\n\tpublic async commitByRoute(route: string): Promise<void> {\n\t\ttry {\n\t\t\tconst unitId = this.unitService.backTraceUnitIdFromRoute(route);\n\t\t\tawait this.load(unitId);\n\t\t} catch (error: unknown) {\n\t\t\tlet reason: string;\n\t\t\tif (error instanceof Error) {\n\t\t\t\treason = error.message;\n\t\t\t} else {\n\t\t\t\treason = safeJsonParse(error) ?? 'unknown';\n\t\t\t}\n\n\t\t\tthrow new CouldNotLoadUnitError(`There was an problem loading unit route \"${route}\", reason:\\n${reason}`);\n\t\t}\n\t}\n\n\tprivate async load(unitId: number): Promise<void> {\n\t\tif (unitId === this.selectedLocation?.id || unitId === this.selectingLocation?.id) return;\n\n\t\tconst unit = this.unitService.getUnitNodeInTree(unitId);\n\t\tconst shouldSelectEntrance = unit.isEntrance && this.selectedEntrance?.id !== unitId;\n\n\t\tthis.selectingLocation = unit;\n\t\tthis.selectedLocation = null;\n\n\t\tif (shouldSelectEntrance) {\n\t\t\tthis.selectingEntrance = unit;\n\t\t\tthis.selectedEntrance = null;\n\t\t}\n\n\t\tthis.events.emit('onCommitting', unit.id);\n\t\tLogger.assert(Logger.Level.verbose, `Selecting UnitId: ${unitId}`);\n\n\t\tawait this.configService.loadConfig(unit.id);\n\n\t\tthis.selectingLocation = null;\n\t\tthis.selectedLocation = unit;\n\n\t\tif (shouldSelectEntrance) {\n\t\t\tthis.selectingEntrance = null;\n\t\t\tthis.selectedEntrance = unit;\n\n\t\t\tthis.recentVisitService.registerVisit(unit.receptionId);\n\t\t}\n\n\t\tthis.events.emit('onCommitted', unit.id);\n\t\tLogger.assert(Logger.Level.verbose, `Selected UnitId: ${unitId}`);\n\t}\n\n\tprivate getHeadingTowardsOrCurrentLocation(): UnitNode {\n\t\tif (this.selectingLocation == null) {\n\t\t\tif (this.selectedLocation != null) {\n\t\t\t\treturn this.selectedLocation;\n\t\t\t}\n\n\t\t\tthrow new NoLocationCouldHaveBeenSet('No location has been set or tried to been set');\n\t\t}\n\n\t\treturn this.selectingLocation;\n\t}\n\n\tprivate getHeadingTowardsOrCurrentEntrance(): UnitNode | null {\n\t\treturn this.selectingEntrance ?? this.selectedEntrance;\n\t}\n}\n","import { ApplicationNotification, ApplicationNotificationSpecificationBase } from './common';\nimport type { FC } from 'react';\n\nexport type Type = 'information';\n\ninterface Specification extends ApplicationNotificationSpecificationBase<BannerNotification> {\n\ttype: Type;\n\tsid?: string;\n\tui: FC<{ message: BannerNotification }>;\n}\n\nexport class BannerNotification extends ApplicationNotification {\n\tpublic readonly ui: FC;\n\tpublic readonly event = 'banner';\n\tpublic readonly type: Type;\n\n\tconstructor(spec: Specification) {\n\t\tsuper(spec.sid);\n\n\t\tconst BannerMessageUi: FC = () => {\n\t\t\treturn <spec.ui message={this} />;\n\t\t};\n\t\tthis.ui = BannerMessageUi;\n\t\tthis.type = spec.type;\n\t}\n}\n","import { v4 } from 'uuid';\nimport { DateService } from '@services/date.service';\nimport { sharedResolution } from '@public/src/shared_resolution';\n\nexport type KnownApplicationNotificationTypes = 'localPush' | 'banner';\n\nexport abstract class ApplicationNotification<T extends string = KnownApplicationNotificationTypes> {\n\tpublic readonly guid: string;\n\tpublic readonly timestamp: VisibaDate;\n\tpublic abstract readonly event: T;\n\tprotected readonly dateService = sharedResolution.resolve(DateService);\n\n\tconstructor(sid?: string) {\n\t\tthis.timestamp = this.dateService.create();\n\t\tthis.guid = sid ?? v4();\n\t}\n}\n\nexport interface ApplicationNotificationSpecificationBase<_T extends ApplicationNotification> {\n\tguid?: string;\n}\n","import { IconDictionary } from '@cellula/react';\nimport { ApplicationNotification, ApplicationNotificationSpecificationBase } from './common';\n\ntype Type = 'toast';\n\nexport type Variants = 'danger' | 'warning' | 'success' | 'info';\n\ninterface Specification extends ApplicationNotificationSpecificationBase<LocalPushNotification> {\n\ttype: Type;\n\tlabel: string;\n\tmessage?: string;\n\tvariant: Variants;\n\ticon?: keyof IconDictionary;\n}\n\nexport class LocalPushNotification extends ApplicationNotification {\n\tpublic readonly event = 'localPush';\n\tpublic readonly type: Type;\n\tpublic readonly label: string;\n\tpublic readonly message: string | null;\n\tpublic readonly variant: Variants;\n\tpublic readonly icon: keyof IconDictionary;\n\n\tconstructor(spec: Specification) {\n\t\tsuper();\n\n\t\tthis.type = spec.type;\n\t\tthis.label = spec.label;\n\t\tthis.message = spec.message ?? null;\n\t\tthis.variant = spec.variant;\n\t\tthis.icon = spec.icon ?? 'infoCircle';\n\t}\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { EventEmitter } from '@visiba/std';\nimport { BannerNotification } from './bar_notification';\nimport { KnownApplicationNotificationTypes, ApplicationNotification } from './common';\nimport type { LocalPushNotification } from './local_push_notification';\n\nenum EventType {\n\tAdd = 'add',\n\tRemove = 'remove',\n}\n\ntype Events<T extends string> = `on${Capitalize<EventType>}${Capitalize<T>}`;\n\ntype MappedEvents = ImplementRecordWithKnownKeys<\n\tKnownApplicationNotificationTypes,\n\t{\n\t\tlocalPush: LocalPushNotification;\n\t\tbanner: BannerNotification;\n\t}\n>;\n\n@Singleton()\nexport class NotificationService<\n\tT extends ImplementRecordWithKnownKeys<string, Record<string, ApplicationNotification<string>>> = MappedEvents,\n> {\n\tpublic readonly eventEmitter = new EventEmitter<{\n\t\t[key in Events<Extract<keyof T, string>>]: any;\n\t}>();\n\tprivate readonly storedNotifications = new Map<keyof T, T[keyof T][]>();\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\tpublic count<K extends keyof T>(notificationType: K): number {\n\t\tconst list = this.get(notificationType);\n\n\t\treturn list.length;\n\t}\n\n\tpublic add<K extends keyof T>(notification: T[K]): void {\n\t\tconst storedNotifications = this.storedNotifications.get(notification.event);\n\t\tif (storedNotifications?.some((storedNotification) => storedNotification.guid === notification.guid)) return;\n\n\t\tthis.storedNotifications.set(notification.event, [...(this.storedNotifications.get(notification.event) || []), notification]);\n\t\tthis.eventEmitter.emit(this.convertTypeToEvent(notification.event, EventType.Add), notification);\n\t}\n\n\tpublic remove<K extends keyof T>(notification: T[K]): void {\n\t\tconst notifications = this.storedNotifications.get(notification.event);\n\t\tif (notifications) {\n\t\t\tnotifications.splice(notifications.indexOf(notification), 1);\n\t\t\tthis.eventEmitter.emit(this.convertTypeToEvent(notification.event, EventType.Remove), notification);\n\t\t}\n\t}\n\n\tpublic isAdded<K extends keyof T>(notification: T[K]): boolean {\n\t\tconst notifications = this.storedNotifications.get(notification.event);\n\t\tif (notifications == null) return false;\n\n\t\treturn notifications.indexOf(notification) !== -1;\n\t}\n\n\tpublic get<K extends keyof T>(notificationType: K): T[K][] {\n\t\treturn (this.storedNotifications.get(notificationType) as T[K][]) || [];\n\t}\n\n\tprivate convertTypeToEvent(str: string, eventType: EventType): Events<Extract<keyof T, string>> {\n\t\tfunction upperCase<K extends string | EventType>(str: K): `${Capitalize<K>}` {\n\t\t\treturn (str.charAt(0).toUpperCase() + str.slice(1)) as `${Capitalize<K>}`;\n\t\t}\n\n\t\treturn `on${upperCase(eventType)}${upperCase(str)}` as Events<Extract<keyof T, string>>;\n\t}\n}\n","import { RecentReceptionsApiService } from '@src/api/recent_receptions_api.service';\nimport { Singleton } from '@visiba-cortex/instantiation';\nimport { AuthService } from './auth/auth.service';\n\n@Singleton()\nexport class RegisterRecentVisitService {\n\tprivate latestVisited: number | null = null;\n\n\tconstructor(private readonly recentReceptionsApiService: RecentReceptionsApiService, private readonly authService: AuthService) {\n\t\t// Empty\n\t}\n\n\tpublic async dispatchLatestRegistered(): Promise<number | null> {\n\t\tif (this.latestVisited != null) {\n\t\t\tconst latestVisited = this.latestVisited;\n\t\t\tthis.latestVisited = null;\n\n\t\t\tawait this.recentReceptionsApiService.postToRecentlyVisited(latestVisited);\n\n\t\t\treturn latestVisited;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tpublic registerVisit(receptionId: number): void {\n\t\tif (!this.authService.isAuthenticated()) {\n\t\t\tthis.latestVisited = receptionId;\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.recentReceptionsApiService.postToRecentlyVisited(receptionId).catch(() => {\n\t\t\t// noop\n\t\t});\n\t}\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport {\n\tBrowserHistory,\n\tBrowserHistoryOptions,\n\tcreateBrowserHistory,\n\tcreateMemoryHistory,\n\tMemoryHistory,\n\tMemoryHistoryOptions,\n\tState,\n} from 'history';\nimport { resolvePath } from 'react-router';\n\ninterface NavigateOption {\n\treplace?: boolean;\n\tstate?: State;\n}\n\n@Singleton()\nexport class RouterService {\n\tprivate internalHistory: BrowserHistory | MemoryHistory | null = null;\n\tpublic get history(): BrowserHistory | MemoryHistory {\n\t\tif (!this.internalHistory) throw new Error('History is null, initialize one by calling the `createBrowserHistory` method');\n\n\t\treturn this.internalHistory;\n\t}\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\t// Text copied from https://github.com/ReactTraining/history/blob/master/packages/history/index.ts#L390\n\t/**\n\t * Browser history stores the location in regular URLs. This is the standard for\n\t * most web apps, but it requires some configuration on the server to ensure you\n\t * serve the same app at multiple URLs.\n\t */\n\tpublic createBrowserHistory(options?: BrowserHistoryOptions): BrowserHistory {\n\t\tif (this.internalHistory == null) {\n\t\t\tthis.internalHistory = createBrowserHistory(options);\n\t\t}\n\n\t\treturn this.internalHistory;\n\t}\n\n\t// Text copied from https://github.com/ReactTraining/history/blob/master/packages/history/index.ts#L877\n\t/**\n\t * Memory history stores the current location in memory. It is designed for use\n\t * in stateful non-browser environments like tests and React Native.\n\t */\n\tpublic createMemoryHistory(options?: MemoryHistoryOptions): MemoryHistory {\n\t\tif (this.internalHistory == null) {\n\t\t\tthis.internalHistory = createMemoryHistory(options);\n\t\t}\n\n\t\treturn this.internalHistory as MemoryHistory;\n\t}\n\n\t/**\n\t * Navigates to a view using an relative route path.\n\t */\n\tpublic navigateByUrl(to: string | number, options: NavigateOption = {}): void {\n\t\t// Implements https://github.com/ReactTraining/react-router/blob/dev/packages/react-router/index.tsx#L420\n\t\tif (typeof to === 'number') {\n\t\t\tthis.history.go(to);\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst path = resolvePath(to, this.internalHistory?.location.pathname);\n\n\t\tif (options.replace) {\n\t\t\tthis.history.replace(path, options.state);\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.history.push(path, options.state);\n\t}\n}\n","export enum MappedTheme {\n\tprimary,\n\ttopNavigationBarBackground,\n\ttopNavigationBarText,\n\tbottomNavigationBarBackground,\n\tbottomNavigationBarActiveItem,\n\tbottomNavigationBarInactiveItem,\n\twebMainNavigationBarBackground,\n\twebMainNavigationBarActiveItem,\n\twebMainNavigationBarInactiveItem,\n\twebMainNavigationBarHoverIndicator,\n\tbackground1a,\n\tbackground1b,\n\ttextOnThemedBackground,\n\tsecondaryTextInThemedBackground,\n\tbaseButtonDefault,\n\tbaseButtonHover,\n\tbaseButtonClicked,\n\ticonButtonIcon,\n\tbaseButtonText,\n\ticonButtonSecondaryText,\n\tbaseButtonDisabled,\n\tbaseButtonDisabledText,\n\tinputFieldBackground,\n\tinputFieldIcon,\n\tinputFieldText,\n\tinputFieldPlaceholderText,\n\tinputFieldBorder,\n\tbackground2,\n\ttextOnBackground2,\n\tuiCardBackground,\n\tuiCardText,\n\tuiCardSecondaryText,\n\timageText,\n\timageOverlay,\n\ttextOnWhiteBackground,\n\tsecondaryTextOnWhiteBackground,\n\tthemedTextOnWhiteBackground,\n\tprimaryButtonDefault,\n\tprimaryButtonHover,\n\tprimaryButtonClicked,\n\tprimaryButtonText,\n\tsecondaryButtonDefault,\n\tsecondaryButtonBorder,\n\tsecondaryButtonHover,\n\tsecondaryButtonClicked,\n\tsecondaryButtonText,\n\ttextButton,\n\tdisabledButton,\n\tdisabledButtonText,\n\tuiElements,\n\thyperLinkDefault,\n\thyperLinkClicked,\n\thyperLinkHover,\n\tchatBubble1,\n\tchatText1,\n\tchatBubble2,\n\tchatText2,\n\tselectedElement,\n\thoveredElement,\n\taccentColor,\n\tsystemColorSuccess,\n\tsystemColorAttention,\n\tsystemColorError,\n\tsystemColorFocus,\n}\n","import { MappedTheme } from './_mapped_theme';\nimport type { CssVariable, CssVariableGetter } from './_common';\n\ntype CssVariableKeysOf<T extends typeof MappedTheme> = {\n\t[P in keyof T]: string;\n};\n\nfunction asCssVariableGetter<T extends MappedTheme>(value: T): CssVariableGetter<CssVariable<T>> {\n\t// TODO: REMOVE THIS ONCE NOT INJECTED ANY MORE\n\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t// @ts-ignore\n\treturn `var(--visiba-global-${value});`;\n}\n\nexport const theme: ImplementRecordWithKnownKeys<keyof typeof MappedTheme, CssVariableKeysOf<typeof MappedTheme>> = {\n\tget primary() {\n\t\treturn asCssVariableGetter(MappedTheme.primary);\n\t},\n\tget accentColor() {\n\t\treturn asCssVariableGetter(MappedTheme.accentColor);\n\t},\n\tget background1a() {\n\t\treturn asCssVariableGetter(MappedTheme.background1a);\n\t},\n\tget background1b() {\n\t\treturn asCssVariableGetter(MappedTheme.background1b);\n\t},\n\tget background2() {\n\t\treturn asCssVariableGetter(MappedTheme.background2);\n\t},\n\tget baseButtonClicked() {\n\t\treturn asCssVariableGetter(MappedTheme.baseButtonClicked);\n\t},\n\tget baseButtonDefault() {\n\t\treturn asCssVariableGetter(MappedTheme.baseButtonDefault);\n\t},\n\tget baseButtonDisabled() {\n\t\treturn asCssVariableGetter(MappedTheme.baseButtonDisabled);\n\t},\n\tget baseButtonDisabledText() {\n\t\treturn asCssVariableGetter(MappedTheme.baseButtonDisabledText);\n\t},\n\tget baseButtonHover() {\n\t\treturn asCssVariableGetter(MappedTheme.baseButtonHover);\n\t},\n\tget baseButtonText() {\n\t\treturn asCssVariableGetter(MappedTheme.baseButtonText);\n\t},\n\tget bottomNavigationBarActiveItem() {\n\t\treturn asCssVariableGetter(MappedTheme.bottomNavigationBarActiveItem);\n\t},\n\tget bottomNavigationBarBackground() {\n\t\treturn asCssVariableGetter(MappedTheme.bottomNavigationBarBackground);\n\t},\n\tget bottomNavigationBarInactiveItem() {\n\t\treturn asCssVariableGetter(MappedTheme.bottomNavigationBarInactiveItem);\n\t},\n\tget chatBubble1() {\n\t\treturn asCssVariableGetter(MappedTheme.chatBubble1);\n\t},\n\tget chatBubble2() {\n\t\treturn asCssVariableGetter(MappedTheme.chatBubble2);\n\t},\n\tget chatText1() {\n\t\treturn asCssVariableGetter(MappedTheme.chatText1);\n\t},\n\tget chatText2() {\n\t\treturn asCssVariableGetter(MappedTheme.chatText2);\n\t},\n\tget disabledButton() {\n\t\treturn asCssVariableGetter(MappedTheme.disabledButton);\n\t},\n\tget disabledButtonText() {\n\t\treturn asCssVariableGetter(MappedTheme.disabledButtonText);\n\t},\n\tget hoveredElement() {\n\t\treturn asCssVariableGetter(MappedTheme.hoveredElement);\n\t},\n\tget hyperLinkClicked() {\n\t\treturn asCssVariableGetter(MappedTheme.hyperLinkClicked);\n\t},\n\tget hyperLinkDefault() {\n\t\treturn asCssVariableGetter(MappedTheme.hyperLinkDefault);\n\t},\n\tget hyperLinkHover() {\n\t\treturn asCssVariableGetter(MappedTheme.hyperLinkHover);\n\t},\n\tget iconButtonIcon() {\n\t\treturn asCssVariableGetter(MappedTheme.iconButtonIcon);\n\t},\n\tget iconButtonSecondaryText() {\n\t\treturn asCssVariableGetter(MappedTheme.iconButtonSecondaryText);\n\t},\n\tget imageOverlay() {\n\t\treturn asCssVariableGetter(MappedTheme.imageOverlay);\n\t},\n\tget imageText() {\n\t\treturn asCssVariableGetter(MappedTheme.imageText);\n\t},\n\tget inputFieldBackground() {\n\t\treturn asCssVariableGetter(MappedTheme.inputFieldBackground);\n\t},\n\tget inputFieldBorder() {\n\t\treturn asCssVariableGetter(MappedTheme.inputFieldBorder);\n\t},\n\tget inputFieldIcon() {\n\t\treturn asCssVariableGetter(MappedTheme.inputFieldIcon);\n\t},\n\tget inputFieldPlaceholderText() {\n\t\treturn asCssVariableGetter(MappedTheme.inputFieldPlaceholderText);\n\t},\n\tget inputFieldText() {\n\t\treturn asCssVariableGetter(MappedTheme.inputFieldText);\n\t},\n\tget primaryButtonClicked() {\n\t\treturn asCssVariableGetter(MappedTheme.primaryButtonClicked);\n\t},\n\tget primaryButtonDefault() {\n\t\treturn asCssVariableGetter(MappedTheme.primaryButtonDefault);\n\t},\n\tget primaryButtonHover() {\n\t\treturn asCssVariableGetter(MappedTheme.primaryButtonHover);\n\t},\n\tget primaryButtonText() {\n\t\treturn asCssVariableGetter(MappedTheme.primaryButtonText);\n\t},\n\tget secondaryButtonBorder() {\n\t\treturn asCssVariableGetter(MappedTheme.secondaryButtonBorder);\n\t},\n\tget secondaryButtonClicked() {\n\t\treturn asCssVariableGetter(MappedTheme.secondaryButtonClicked);\n\t},\n\tget secondaryButtonDefault() {\n\t\treturn asCssVariableGetter(MappedTheme.secondaryButtonDefault);\n\t},\n\tget secondaryButtonHover() {\n\t\treturn asCssVariableGetter(MappedTheme.secondaryButtonHover);\n\t},\n\tget secondaryButtonText() {\n\t\treturn asCssVariableGetter(MappedTheme.secondaryButtonText);\n\t},\n\tget secondaryTextInThemedBackground() {\n\t\treturn asCssVariableGetter(MappedTheme.secondaryTextInThemedBackground);\n\t},\n\tget secondaryTextOnWhiteBackground() {\n\t\treturn asCssVariableGetter(MappedTheme.secondaryTextOnWhiteBackground);\n\t},\n\tget themedTextOnWhiteBackground() {\n\t\treturn asCssVariableGetter(MappedTheme.themedTextOnWhiteBackground);\n\t},\n\tget selectedElement() {\n\t\treturn asCssVariableGetter(MappedTheme.selectedElement);\n\t},\n\tget systemColorAttention() {\n\t\treturn asCssVariableGetter(MappedTheme.systemColorAttention);\n\t},\n\tget systemColorError() {\n\t\treturn asCssVariableGetter(MappedTheme.systemColorError);\n\t},\n\tget systemColorFocus() {\n\t\treturn asCssVariableGetter(MappedTheme.systemColorFocus);\n\t},\n\tget systemColorSuccess() {\n\t\treturn asCssVariableGetter(MappedTheme.systemColorSuccess);\n\t},\n\tget textButton() {\n\t\treturn asCssVariableGetter(MappedTheme.textButton);\n\t},\n\tget textOnBackground2() {\n\t\treturn asCssVariableGetter(MappedTheme.textOnBackground2);\n\t},\n\tget textOnThemedBackground() {\n\t\treturn asCssVariableGetter(MappedTheme.textOnThemedBackground);\n\t},\n\tget textOnWhiteBackground() {\n\t\treturn asCssVariableGetter(MappedTheme.textOnWhiteBackground);\n\t},\n\tget topNavigationBarBackground() {\n\t\treturn asCssVariableGetter(MappedTheme.topNavigationBarBackground);\n\t},\n\tget topNavigationBarText() {\n\t\treturn asCssVariableGetter(MappedTheme.topNavigationBarText);\n\t},\n\tget uiCardBackground() {\n\t\treturn asCssVariableGetter(MappedTheme.uiCardBackground);\n\t},\n\tget uiCardSecondaryText() {\n\t\treturn asCssVariableGetter(MappedTheme.uiCardSecondaryText);\n\t},\n\tget uiCardText() {\n\t\treturn asCssVariableGetter(MappedTheme.uiCardText);\n\t},\n\tget uiElements() {\n\t\treturn asCssVariableGetter(MappedTheme.uiElements);\n\t},\n\tget webMainNavigationBarActiveItem() {\n\t\treturn asCssVariableGetter(MappedTheme.webMainNavigationBarActiveItem);\n\t},\n\tget webMainNavigationBarBackground() {\n\t\treturn asCssVariableGetter(MappedTheme.webMainNavigationBarBackground);\n\t},\n\tget webMainNavigationBarHoverIndicator() {\n\t\treturn asCssVariableGetter(MappedTheme.webMainNavigationBarHoverIndicator);\n\t},\n\tget webMainNavigationBarInactiveItem() {\n\t\treturn asCssVariableGetter(MappedTheme.webMainNavigationBarInactiveItem);\n\t},\n};\n","import { EventEmitter } from '@visiba/std';\nimport { Singleton } from '@visiba-cortex/instantiation';\nimport { UnitsApiService } from '@src/api/units_api.service';\nimport { PUBLIC_SUB_URL_PATH } from '../../constants';\nimport { UnitModel } from '@api/generated/models';\n\nenum EntranceTypeEnum {\n\tRegular = 0,\n}\n\nexport interface UnitEntrance {\n\tid: string;\n\tto: string;\n\tinternal: boolean;\n\tbody: string;\n\tlabel: string;\n\ttype: EntranceTypeEnum;\n}\n\nexport interface UnitNodeData {\n\ttitle: string;\n\tbody: string;\n\tallowClientAgents: boolean;\n\thasAreaBooking: boolean;\n\thasAreaDropIn: boolean;\n\thasAreaMessaging: boolean;\n\thasConditionWorkflow: boolean;\n\thasPhysicalLocation: boolean;\n\thideProvidedByVisibaCare: boolean;\n\tmessagingIsUnlisted: boolean;\n\tentrances: UnitEntrance[];\n}\n\nexport interface UnitNode {\n\tname: string;\n\tid: number;\n\talias: string;\n\troute: string;\n\tparent: UnitNode | null;\n\tisListed: boolean;\n\tisEntrance: boolean;\n\treceptionId: number;\n\tdata: UnitNodeData | null;\n\tchildren: UnitNode[];\n\thasListableChildren: boolean;\n\thasChildren: boolean;\n}\n\nexport class UnitConfigurationError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'UnitConfigurationError';\n\t\tObject.setPrototypeOf(this, UnitConfigurationError.prototype);\n\t}\n}\n\nexport class UnitNotFoundError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'UnitNotFoundError';\n\t\tObject.setPrototypeOf(this, UnitNotFoundError.prototype);\n\t}\n}\n\nexport class UnitsNotLoadedError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'UnitsNotLoadedError';\n\t\tObject.setPrototypeOf(this, UnitsNotLoadedError.prototype);\n\t}\n}\n\nexport class UnitNotListedError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'UnitNotListedError';\n\t\tObject.setPrototypeOf(this, UnitNotListedError.prototype);\n\t}\n}\n\nexport class RouteNotAccessible extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'RouteNotAccessible';\n\t\tObject.setPrototypeOf(this, RouteNotAccessible.prototype);\n\t}\n}\n\n/**\n * A singleton service that manages units throughout the application.\n *\n * In the Visiba platform we have a concept called _Unit_. A Unit is a model\n * that represent a customer's department within their organization. A Unit\n * can be flagged as an _Entrance_ and if the Entrance flag is present we're\n * referring it has an _Reception_.\n *\n * Units and Receptions are different from each other, Units are part of a\n * hierarchically structure while a Reception is the place a patient can\n * \"enter\" (visually in the UI). They do not share the same id; meaning that a\n * Unit, as a node in the tree, is just a bridge to fetch the Reception data\n * (containing the reception id). The ids are formally known as `unitId` and\n * `receptionId` and through out our code bases we have moved more of our\n * logic to target a `receptionId` over a `unitId`. Newer code is written for\n * `receptionId` while \"legacy\" parts still targets `unitId`.\n */\n@Singleton()\nexport class UnitService {\n\tpublic readonly events = new EventEmitter<{\n\t\tonTreeConstructing: null;\n\t\tonTreeConstructed: null;\n\t}>();\n\tprivate unitTree: Readonly<Map<number, UnitNode>> | null = null;\n\tprivate backTraceReception: Readonly<Map<string, number>> | null = null;\n\tprivate internalRootUnitId: number | null = null;\n\n\t/**\n\t * Retrieves the loaded Unit Node Tree for the LicenceHolder the application is\n\t * running under.\n\t */\n\tpublic get units(): Readonly<Map<number, UnitNode>> {\n\t\tif (this.unitTree == null) throw new UnitsNotLoadedError('Tried to operate on unloaded units');\n\n\t\treturn this.unitTree;\n\t}\n\n\t/**\n\t * Retrieves the root Unit Id of the loaded Unit Node Tree for the\n\t * licenceHolder the application is running under.\n\t */\n\tpublic get rootUnit(): UnitNode {\n\t\tif (this.internalRootUnitId == null) throw new UnitsNotLoadedError('Tried to operate on unloaded units');\n\n\t\tconst unit = this.getUnitNodeInTree(this.internalRootUnitId);\n\n\t\treturn unit;\n\t}\n\n\tconstructor(private readonly unitsApiService: UnitsApiService) {\n\t\t// Empty\n\t}\n\n\t/**\n\t * This method will \"load\" the service with a collection of\n\t * nodes starting from the passed root id\n\t *\n\t * @param rootId The root Unit node id that the remainder of Unit\n\t * tree will be built on.\n\t */\n\tpublic async load(rootId: number, loadedData?: UnitModel): Promise<void> {\n\t\tthis.events.emit('onTreeConstructing', null);\n\n\t\tlet model: UnitModel;\n\t\tif (loadedData != null) {\n\t\t\tmodel = loadedData;\n\t\t} else {\n\t\t\tconst { data } = await this.unitsApiService.getTree(rootId);\n\t\t\tmodel = data;\n\t\t}\n\t\tconst [unitTree, backTracedMap] = this.traverseReceptionModel(model);\n\n\t\tthis.internalRootUnitId = rootId;\n\n\t\tthis.backTraceReception = backTracedMap;\n\t\tthis.unitTree = unitTree;\n\n\t\tthis.events.emit('onTreeConstructed', null);\n\t}\n\n\t/** Given an valid reception route, the id of that unit will be resolved */\n\tpublic backTraceUnitIdFromRoute(url: string): number {\n\t\tif (this.backTraceReception == null) throw new UnitsNotLoadedError('Tried to operate on unloaded units');\n\n\t\tconst backTraced = this.backTraceReception.get(url);\n\t\tif (backTraced == null) throw new UnitNotListedError(`The url \"${url}\" did not result in any matching unit`);\n\n\t\treturn backTraced;\n\t}\n\n\t/** Retrieves the Unit Node for given UnitId */\n\tpublic getUnitNodeInTree(unitId: number): UnitNode {\n\t\tconst unit = this.units.get(unitId);\n\t\tif (unit == null) throw new UnitNotFoundError(`No unit found with unitId ${unitId}`);\n\n\t\treturn unit;\n\t}\n\n\tpublic getUnitNodeInTreeByReceptionId(receptionId: number): UnitNode {\n\t\tconst unit = Array.from(this.units.values()).find((unit) => unit.receptionId == receptionId);\n\t\tif (unit == null) throw new UnitNotFoundError(`No unit found with receptionId ${receptionId}`);\n\n\t\treturn unit;\n\t}\n\n\tpublic normalizePathnameToBackTraceableRoute(pathname: string): string {\n\t\t// Given the pathname: /v/1/2/3/visits?x=y&y=x\n\t\t// The goal is to normalize it to 1/2/3\n\n\t\t//We want to normalize the string to: v/1/2/3/visits?x=y&y=x\n\t\tfunction trimmedLeadingAndTrailingSlashes(str: string): string {\n\t\t\treturn str.replace(/^\\/|\\/$/g, '');\n\t\t}\n\t\tlet trimmedPathname = trimmedLeadingAndTrailingSlashes(pathname);\n\n\t\t// We want to remove the \"v/\" if present, giving us: 1/2/3/visits?x=y&y=x\n\t\tif (trimmedPathname.startsWith(`${PUBLIC_SUB_URL_PATH}/`)) {\n\t\t\ttrimmedPathname = trimmedPathname.substring(2);\n\t\t}\n\n\t\t// We want to remove the \"?x=y&y=x\" if present, giving us: 1/2/3/visits\n\t\ttrimmedPathname = trimmedPathname.split('?')[0];\n\n\t\t// We want to split at the slashes, giving us: ['1', '2', '3', 'visits?x=y&y=x']\n\t\tconst chunks = trimmedPathname.split('/');\n\t\t// We want to know all the possible units that can be found in the pathname,\n\t\t// so it may be checked against in the next step\n\t\tconst allRoutes: string[] = [];\n\t\t// TODO: REMOVE THIS ONCE NOT INJECTED ANY MORE\n\t\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t\t// @ts-ignore\n\t\tfor (const [route] of this.backTraceReception ?? []) {\n\t\t\tallRoutes.push(route);\n\t\t}\n\t\tconst knownUrlAliases = new Set<string>(allRoutes.join('/').split('/'));\n\n\t\t// We want to travel forward and check how far we can go until we find an\n\t\t// off chunk or just reached the end\n\t\tconst strBuilder: string[] = [];\n\t\twhile (chunks.length) {\n\t\t\t// It's guaranteed that chunks.length > 0 here\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t\t\tconst chunk = chunks.shift()!;\n\t\t\tif (knownUrlAliases.has(chunk)) {\n\t\t\t\tstrBuilder.push(chunk);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tbreak;\n\t\t}\n\n\t\t// 1/2/3\n\t\t// Down here we're hopefully done! Just a check if the made string is valid.\n\t\t// If not, big sad :c\n\t\tconst completedRoute = strBuilder.join('/');\n\t\tif (this.backTraceReception?.has(completedRoute)) {\n\t\t\treturn completedRoute;\n\t\t}\n\n\t\tthrow new RouteNotAccessible(\n\t\t\t`The route \"${pathname}\" couldn't be normalized into anything recognizable.\nBest we could do was: \"${completedRoute}\", but no records of that key was found.`,\n\t\t);\n\t}\n\n\tprivate traverseReceptionModel(model: UnitModel): [Readonly<Map<number, UnitNode>>, Readonly<Map<string, number>>] {\n\t\tconst extractedMapRef = new Map<number, UnitNode>();\n\t\tconst backTraceReception = new Map<string, number>();\n\n\t\tfunction findListedChild(start: UnitModel[]): boolean {\n\t\t\tconst childStack: UnitModel[] = [...start];\n\t\t\twhile (childStack.length > 0) {\n\t\t\t\tconst child = childStack.pop();\n\t\t\t\tif (child?.IsListedToClients) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tchildStack.push(...(child?.Children ?? []));\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\n\t\tconst traverseNode = (node: UnitModel): void => {\n\t\t\t// If it already exists the tree structure is in a state that's not\n\t\t\t// meant to be supported. So we exiting with an exception\n\t\t\tconst existingNode = extractedMapRef.get(node.Id);\n\t\t\tif (existingNode) throw new UnitConfigurationError(`The node ${node.Id} has already been resolved in another branch`);\n\n\t\t\t// Else we need to create this node and its child nodes\n\t\t\tconst nodeBuilder: UnitNode = {\n\t\t\t\tid: node.Id,\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\treceptionId: node.ReceptionId ?? -1,\n\t\t\t\tisEntrance: node.IsClientEntrance,\n\t\t\t\tisListed: node.IsListedToClients,\n\t\t\t\t// Customers shouldn't be able to have null names, this could occur\n\t\t\t\t// though when new languages are added to the system. So we'll just\n\t\t\t\t// set this value to an empty string to avoid any type errors.\n\t\t\t\tname: node.Name ?? '',\n\n\t\t\t\tparent: null,\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\talias: node.UrlAlias ?? '',\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\troute: node.UrlAlias ?? '',\n\t\t\t\tdata: null,\n\t\t\t\tchildren: [],\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\thasChildren: (node.Children ?? []).length > 0,\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\thasListableChildren: findListedChild(node.Children ?? []),\n\t\t\t};\n\n\t\t\tconst parentNode = node.ParentId ? extractedMapRef.get(node.ParentId) : undefined;\n\t\t\tif (parentNode) {\n\t\t\t\tnodeBuilder.parent = parentNode;\n\n\t\t\t\t// Recursive traverse until hitting the top, building the route for\n\t\t\t\t// this node\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\tconst routeList: string[] = [node.UrlAlias ?? '-'];\n\t\t\t\tconst buildAliasUntilReachingTheTopNode = (node: UnitNode): void => {\n\t\t\t\t\trouteList.unshift(node.alias);\n\n\t\t\t\t\tif (node.parent) {\n\t\t\t\t\t\tbuildAliasUntilReachingTheTopNode(node.parent);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tbuildAliasUntilReachingTheTopNode(parentNode);\n\t\t\t\tnodeBuilder.route = routeList.join('/');\n\n\t\t\t\tparentNode.children.push(nodeBuilder);\n\t\t\t}\n\n\t\t\t// Once everything is settled, store this node for later use\n\t\t\textractedMapRef.set(nodeBuilder.id, nodeBuilder);\n\t\t\tbackTraceReception.set(nodeBuilder.route, nodeBuilder.id);\n\n\t\t\tnode.Children?.forEach((childNode) => {\n\t\t\t\ttraverseNode(childNode);\n\t\t\t});\n\t\t};\n\n\t\ttraverseNode(model);\n\n\t\treturn [extractedMapRef, backTraceReception];\n\t}\n}\n","import { storage } from '@visiba/std';\nimport type { Settings } from '@services/user_settings.service';\n\nexport const applicationLocalStorage = storage<{\n\tUSER_SETTINGS: Settings;\n}>({ type: 'local' });\n","import { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport { Logger } from '@modules/logger/logger';\nimport { Singleton } from '@visiba-cortex/instantiation';\nimport { applicationLocalStorage } from '../application_local_storage';\nimport { LicenceHolderService } from './licence_holder.service';\n\n// TODO: DEV-10753 Find a new home for these interfaces.\ninterface MigrationVerifier {\n\treadonly migrationVersion: number;\n}\ninterface DataIteration_v0 {\n\treadonly selectedLanguage: I18nAndL10n.AvailableVisibaLocales;\n}\n\nexport type Settings = MigrationVerifier & DataIteration_v0;\n\nexport class UserSettingsNotSetError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'UserSettingsNotSetError';\n\t\tObject.setPrototypeOf(this, UserSettingsNotSetError.prototype);\n\t}\n}\n\n@Singleton()\nexport class UserSettingsService {\n\tprivate static readonly storageKey = 'USER_SETTINGS';\n\tprivate readonly storage = applicationLocalStorage;\n\tprivate readonly activeMigrationVersion = 0;\n\tprivate storedSettings: Settings | null = null;\n\n\tpublic getSettings(): Omit<Settings, 'migrationVersion'>;\n\tpublic getSettings(failGracefully: boolean): Omit<Settings, 'migrationVersion'> | null;\n\tpublic getSettings(failGracefully?: boolean): Omit<Settings, 'migrationVersion'> | null {\n\t\tlet settings: Settings;\n\t\tif (this.storedSettings == null) {\n\t\t\tif (failGracefully) return null;\n\n\t\t\tsettings = this.loadSettings();\n\t\t} else {\n\t\t\tsettings = this.storedSettings;\n\t\t}\n\n\t\treturn settings;\n\t}\n\n\tconstructor(private readonly licenceHolderService: LicenceHolderService) {\n\t\t// Empty\n\t}\n\n\tpublic loadSettings(): Settings {\n\t\tconst data = this.storage.get(UserSettingsService.storageKey);\n\t\tif (data == null) {\n\t\t\tthis.storedSettings = this.createNewSettings();\n\t\t\tthis.save(this.storedSettings);\n\n\t\t\treturn this.storedSettings;\n\t\t}\n\n\t\tthis.storedSettings = data;\n\t\tthis.updateSettings(data);\n\n\t\treturn data;\n\t}\n\n\tpublic updateSettings(settings: Partial<Omit<Settings, 'migrationVersion'>>): void {\n\t\t// Casting this as the actual data structure it's store as\n\t\tconst currentSettings = this.getSettings() as Settings;\n\n\t\t// TODO: DEV-10753 Add migration logic\n\t\t// if (this.activeMigrationVersion !== currentSettings.migrationVersion) {\n\t\t// \tconst migration = new MigrationStrategyPipe(currentSettings);\n\t\t// \tthis.storedSettings = migration.migrate(settings);\n\n\t\t// \treturn;\n\t\t// }\n\n\t\tconst builder: Settings = {\n\t\t\t...currentSettings,\n\t\t\t...settings,\n\t\t};\n\n\t\tthis.save(builder);\n\t\tthis.storedSettings = builder;\n\t}\n\n\tpublic setLanguage(): void {\n\t\tconst { selectedLanguage } = this.getSettings();\n\t\tLogger.assert(Logger.Level.info, `Sets language to ${selectedLanguage}`);\n\n\t\tI18nAndL10n.updateLangCode(selectedLanguage);\n\t}\n\n\tprivate save(data: Settings): void {\n\t\tthis.storage.set(UserSettingsService.storageKey, data);\n\t}\n\n\tprivate createNewSettings(): Settings {\n\t\treturn {\n\t\t\tmigrationVersion: this.activeMigrationVersion,\n\t\t\tselectedLanguage: this.retrieveSelectedLanguage(),\n\t\t};\n\t}\n\n\tprivate retrieveSelectedLanguage(): I18nAndL10n.AvailableVisibaLocales {\n\t\t// TODO: DEV-10753 Remove this in favour of migration logic\n\t\tconst OLD_PATIENT_WEB_LANG = localStorage.getItem('languageCode') as string | null;\n\n\t\tconst languagesToTry = new Set([OLD_PATIENT_WEB_LANG, navigator.language, ...navigator.languages].filter(Boolean) as string[]);\n\n\t\tfunction tryToSelectLanguage(str: string): I18nAndL10n.AvailableVisibaLocales | null {\n\t\t\ttry {\n\t\t\t\treturn I18nAndL10n.convertExternalLocaleToAvailableLocale(str);\n\t\t\t} catch (_: unknown) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\tlet selectedLanguage = this.licenceHolderService.rootLanguageCode;\n\t\tfor (const language of languagesToTry) {\n\t\t\tconst selectedLanguageCandidate = tryToSelectLanguage(language);\n\t\t\tif (selectedLanguageCandidate != null) {\n\t\t\t\tselectedLanguage = selectedLanguageCandidate;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn selectedLanguage;\n\t}\n}\n","import { LocationSelectorService } from '@services/location_selector.service';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { useEffect, useState } from 'react';\nimport { Config, ConfigService } from '@services/config.service';\nimport type { UnitNode } from '@services/unit.service';\n\nexport function useCurrentLocation(): [unit: UnitNode | null, config: Config | null] {\n\tconst locationSelectorService = useService(LocationSelectorService);\n\tconst configService = useService(ConfigService);\n\tconst [locatedUnit, setLocatedUnit] = useState<UnitNode | null>(getInitialLocation());\n\tconst [loadedConfig, setLoadedConfig] = useState<Config | null>(getInitialConfigValue());\n\n\tfunction getInitialConfigValue(): Config | null {\n\t\ttry {\n\t\t\treturn configService.getConfig(locationSelectorService.location.id);\n\t\t} catch {\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tfunction getInitialLocation(): UnitNode | null {\n\t\ttry {\n\t\t\treturn locationSelectorService.location;\n\t\t} catch {\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tuseEffect(() => {\n\t\tfunction handleCommit(unitId: number): void {\n\t\t\tconst unit = locationSelectorService.location;\n\t\t\tconst config = configService.getConfig(unitId);\n\n\t\t\t// Don't know if React got a bug here but using the hook in multiple\n\t\t\t// places didn't work. The handler interrupted each other, don't really\n\t\t\t// know why.\n\t\t\t// thinking of ignoring setState and use a force updater instead...\n\t\t\tqueueMicrotask(() => {\n\t\t\t\tsetLocatedUnit(unit);\n\t\t\t\tsetLoadedConfig(config);\n\t\t\t});\n\t\t}\n\n\t\tlocationSelectorService.events.on('onCommitted', handleCommit);\n\n\t\treturn () => {\n\t\t\tlocationSelectorService.events.off('onCommitted', handleCommit);\n\t\t};\n\t}, [configService, locationSelectorService]);\n\n\treturn [locatedUnit, loadedConfig];\n}\n","import { LocationSelectorService } from '@services/location_selector.service';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { useEffect, useState } from 'react';\nimport { Config, ConfigService } from '@services/config.service';\nimport type { UnitNode } from '@services/unit.service';\n\nexport function useSelectedEntrance(): [entrance: UnitNode | null, entranceConfig: Config | null] {\n\tconst locationSelectorService = useService(LocationSelectorService);\n\tconst configService = useService(ConfigService);\n\tconst [locatedEntrance, setLocatedEntrance] = useState<UnitNode | null>(getInitialEntrance());\n\tconst [loadedEntranceConfig, setLoadedEntranceConfig] = useState<Config | null>(getInitialEntranceConfigValue());\n\n\tfunction getInitialEntrance(): UnitNode | null {\n\t\ttry {\n\t\t\treturn locationSelectorService.entrance;\n\t\t} catch (error: unknown) {\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tfunction getInitialEntranceConfigValue(): Config | null {\n\t\ttry {\n\t\t\tif (locationSelectorService.entrance) {\n\t\t\t\treturn configService.getConfig(locationSelectorService.entrance.id);\n\t\t\t}\n\n\t\t\treturn null;\n\t\t} catch (error: unknown) {\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tuseEffect(() => {\n\t\tfunction handleCommit(_: number): void {\n\t\t\tconst entrance = locationSelectorService.entrance;\n\t\t\tconst config = entrance ? configService.getConfig(entrance?.id) : null;\n\n\t\t\t// Don't know if React got a bug here but using the hook in multiple\n\t\t\t// places didn't work. The handler interrupted each other, don't really\n\t\t\t// know why.\n\t\t\t// thinking of ignoring setState and use a force updater instead...\n\t\t\tqueueMicrotask(() => {\n\t\t\t\tsetLocatedEntrance(entrance);\n\t\t\t\tsetLoadedEntranceConfig(config);\n\t\t\t});\n\t\t}\n\n\t\tlocationSelectorService.events.on('onCommitted', handleCommit);\n\n\t\treturn () => {\n\t\t\tlocationSelectorService.events.off('onCommitted', handleCommit);\n\t\t};\n\t}, [configService, locationSelectorService, locatedEntrance, loadedEntranceConfig]);\n\n\treturn [locatedEntrance, loadedEntranceConfig];\n}\n","import { LiveAnnouncerController } from '@components/live_announcer/live_announcer.controller';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { useLayoutEffect } from 'react';\nimport { useCurrentLocation } from './use_current_location';\nimport type { UnitNode } from '@services/unit.service';\nimport type { Config } from '@services/config.service';\n\nexport function useTitle(title: string): void {\n\tconst liveAnnouncerController = useService(LiveAnnouncerController);\n\tconst [unit, config] = useCurrentLocation();\n\n\tuseLayoutEffect(\n\t\tfunction whenHookMounts() {\n\t\t\treturn __TEMP__setTitle(title, config, unit, liveAnnouncerController);\n\t\t},\n\t\t[liveAnnouncerController, title, config, unit],\n\t);\n}\n\n// This is for the Angular web. 🙃👍\nexport function __TEMP__setTitle(\n\ttitle: string,\n\tconfig: Config | null,\n\tunit: UnitNode | null,\n\tliveAnnouncerController: LiveAnnouncerController,\n): () => void {\n\tconst prevTitle = document.title;\n\tdocument.title = (config?.licenceHolderMetaData.displayName ?? unit?.name ?? '') + ' - ' + title;\n\n\tconst removeMessage = liveAnnouncerController.announce(\n\t\twithTranslation('Common.Word.A11y.NavigateTo', {\n\t\t\tlocation: title,\n\t\t}),\n\t);\n\n\treturn () => {\n\t\tremoveMessage();\n\t\tdocument.title = prevTitle;\n\t};\n}\n","import { useService } from '@visiba-cortex/instantiation';\nimport { AnalyticService } from '@application/analytic/analytic.service';\nimport { VisibaLink } from '@components/visiba-link.component';\nimport { useAnalyticContext } from './analytic_link.provider';\nimport { Link, LinkProps } from 'react-router-dom';\nimport type { ReactNode } from 'react';\n\ninterface Props extends LinkProps {\n\taction: string;\n\tto: string;\n\tchildren: ReactNode;\n\t__TEMP__forceRegularLink?: boolean;\n}\n\nexport function AnalyticLink({ to, action, children, __TEMP__forceRegularLink, ...rest }: Props): JSX.Element {\n\tconst analytic = useService(AnalyticService);\n\tconst category = useAnalyticContext();\n\n\tfunction handleClick(): void {\n\t\tanalytic.trackEvent(category, action);\n\t}\n\n\tif (__TEMP__forceRegularLink) {\n\t\treturn (\n\t\t\t<Link to={to} onClick={handleClick} {...rest}>\n\t\t\t\t{children}\n\t\t\t</Link>\n\t\t);\n\t}\n\n\treturn (\n\t\t<VisibaLink to={to} __TEMP__to={to} onClick={handleClick} {...rest}>\n\t\t\t{children}\n\t\t</VisibaLink>\n\t);\n}\n","import { createContext, ReactNode, useContext } from 'react';\nimport type { AnalyticCategories } from '@application/analytic/analytic.service';\n\nconst Context = createContext<AnalyticCategories>(undefined as unknown as AnalyticCategories);\n\ninterface Props {\n\tcategory: AnalyticCategories;\n\tchildren: ReactNode;\n}\n\nexport function AnalyticProvider({ children, category }: Props): JSX.Element {\n\treturn <Context.Provider value={category}>{children}</Context.Provider>;\n}\n\nexport function useAnalyticContext(): AnalyticCategories {\n\tconst trackingCategory = useContext(Context);\n\tif (trackingCategory === undefined) {\n\t\tthrow new Error('useAnalyticContext must be used within an AnalyticProvider');\n\t}\n\n\treturn trackingCategory;\n}\n","import { useService } from '@visiba-cortex/instantiation';\nimport { AnalyticService } from '@application/analytic/analytic.service';\nimport { useAnalyticContext } from './analytic_link.provider';\nimport { Button, ButtonProps } from '@cellula/react';\nimport type { ReactNode } from 'react';\n\ntype Props = {\n\taction: string;\n\tchildren?: ReactNode | ReactNode[] | null;\n} & ButtonProps<'button'>;\n\nexport function AnalyticButton({ action, children, onClick, ...rest }: Props): JSX.Element {\n\tconst analytic = useService(AnalyticService);\n\tconst category = useAnalyticContext();\n\n\tfunction handleClick(event: React.MouseEvent<HTMLButtonElement, MouseEvent>): void {\n\t\tanalytic.trackEvent(category, action);\n\n\t\tif (onClick != null) onClick(event);\n\t}\n\n\treturn (\n\t\t<Button onClick={handleClick} {...rest}>\n\t\t\t{children}\n\t\t</Button>\n\t);\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { HttpService, VisibaApiPromise } from '@services/http.service';\nimport { ParameterHandler } from '@visiba/std';\nimport { ApiBaseClient } from './_api_client_base';\nimport type { CaseOtherApiModel, PrioritizedClientCaseResultV2 } from './generated/models';\n\n@Singleton()\nexport class CasesApiService extends ApiBaseClient {\n\tconstructor(private readonly httpService: HttpService) {\n\t\tsuper('cases');\n\t}\n\n\tpublic getPrioritized(): VisibaApiPromise<PrioritizedClientCaseResultV2> {\n\t\treturn this.httpService.get(`${this.getBaseUri()}/v2/prioritized`);\n\t}\n\n\tpublic deleteNewIncoming(callticket: string): VisibaApiPromise<unknown> {\n\t\treturn this.httpService.delete(`${this.getBaseUri()}/newIncoming/appointment/${callticket}`);\n\t}\n\n\tpublic get(from?: VisibaDate, to?: VisibaDate): VisibaApiPromise<CaseOtherApiModel[]> {\n\t\tconst parameterHandler = new ParameterHandler();\n\t\tparameterHandler.append({\n\t\t\tfrom: from?.format('YYYY-MM-DD') ?? null,\n\t\t\tto: to?.format('YYYY-MM-DD') ?? null,\n\t\t});\n\n\t\treturn this.httpService.get(`${this.getBaseUri()}${parameterHandler.getString()}`);\n\t}\n}\n","import { CasesApiService } from '@src/api/cases_api.service';\nimport { getAbsoluteRoute } from '@helpers/route';\nimport { DateService, DateDisplayFormats } from '@services/date.service';\nimport { UnitService } from '@services/unit.service';\nimport { Scoped } from '@visiba-cortex/instantiation';\nimport { Presentation } from '@visiba-cortex/presentation';\nimport { Timer } from '@visiba/std';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { AuthService } from '@services/auth/mod';\nimport { PrioritizedClientCaseResultV2, PrioritizedClientCaseDefinition } from '@api/generated/models';\n\nexport interface AttentionCardAppointmentCaseModel {\n\ttype: 'appointment';\n\tticket: string;\n\tdateFormatted: string;\n\tdateInstance: VisibaDate;\n\tparticipantCount: number;\n\tactingHcp: Nullable<{ name: NullableString; profileImageUrl: NullableString }>;\n\treceptionName: string;\n\tlink: string;\n}\n\nexport interface AttentionCardMessageCaseModel {\n\ttype: 'messaging';\n\tdateFormatted: string;\n\tdateInstance: VisibaDate;\n\tlink: string;\n\tunreadCount: number;\n\treceptionName: Nullable<string>;\n}\n\nexport type AttentionCardPresentationModel =\n\t| {\n\t\t\ttype: PrioritizedClientCaseDefinition.None;\n\t\t\tappointmentCase: null;\n\t\t\tmessageCase: null;\n\t }\n\t| {\n\t\t\ttype: PrioritizedClientCaseDefinition.NewMessages | PrioritizedClientCaseDefinition.NewMessagesDifferentCases;\n\t\t\tmessageCase: AttentionCardMessageCaseModel;\n\t }\n\t| {\n\t\t\ttype:\n\t\t\t\t| PrioritizedClientCaseDefinition.CurrentAppointment\n\t\t\t\t| PrioritizedClientCaseDefinition.UpcomingAppointment\n\t\t\t\t| PrioritizedClientCaseDefinition.Unpaid;\n\t\t\tappointmentCase: AttentionCardAppointmentCaseModel;\n\t }\n\t| {\n\t\t\ttype: PrioritizedClientCaseDefinition.UnansweredForms;\n\t\t\tcase: AttentionCardAppointmentCaseModel | AttentionCardMessageCaseModel;\n\t\t\tunansweredFormsNames: string[];\n\t };\n\n@Scoped()\nexport class AttentionCardController {\n\tprivate readonly timer = new Timer();\n\tpublic readonly presentation = Presentation.create<AttentionCardPresentationModel>({\n\t\ttype: PrioritizedClientCaseDefinition.None,\n\t\tappointmentCase: null,\n\t\tmessageCase: null,\n\t});\n\n\tconstructor(\n\t\tprivate readonly casesApiService: CasesApiService,\n\t\tprivate readonly dateService: DateService,\n\t\tprivate readonly unitService: UnitService,\n\t\tprivate readonly authService: AuthService,\n\t\tprivate readonly licenceHolderService: LicenceHolderService,\n\t) {\n\t\tthis.timer.wait(() => {\n\t\t\tthis.setAttention();\n\t\t}, 1000);\n\t}\n\n\tpublic teardown(): void {\n\t\tthis.timer.flush();\n\t}\n\n\tpublic mapEnumToAnalyticEventAction(value: PrioritizedClientCaseDefinition): string | null {\n\t\tconst leading = 'Presented with ';\n\n\t\tswitch (value) {\n\t\t\tcase PrioritizedClientCaseDefinition.CurrentAppointment:\n\t\t\t\treturn leading + 'Go to lobby-card';\n\t\t\tcase PrioritizedClientCaseDefinition.UpcomingAppointment:\n\t\t\t\treturn leading + 'Next appointment-card';\n\t\t\tcase PrioritizedClientCaseDefinition.Unpaid:\n\t\t\t\treturn leading + 'Unpaid appointment-card';\n\t\t\tcase PrioritizedClientCaseDefinition.NewMessages:\n\t\t\tcase PrioritizedClientCaseDefinition.NewMessagesDifferentCases:\n\t\t\t\treturn leading + 'Unread message-card';\n\t\t\tcase PrioritizedClientCaseDefinition.UnansweredForms:\n\t\t\t\treturn leading + 'Unanswered forms-card';\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tprivate async setAttention(): Promise<void> {\n\t\ttry {\n\t\t\tconst { data } = await this.casesApiService.getPrioritized();\n\t\t\tthis.presentation.write(this.parseData(data));\n\t\t} catch (error: unknown) {\n\t\t\tconsole.log(error);\n\t\t\t// We'll just intentionally ignore this error and log.\n\t\t\t// TODO: log? idk\(〇_o)/\n\t\t}\n\t}\n\n\tprivate parseData(data: PrioritizedClientCaseResultV2): AttentionCardPresentationModel {\n\t\tif (data.CurrentAppointment != null) {\n\t\t\tconst $case = this.parseAppointmentCase({\n\t\t\t\tcountedParticipants: data.CurrentAppointment.ParticipantCount,\n\t\t\t\tgoToDetailView: false,\n\t\t\t\tactingHcp:\n\t\t\t\t\tdata.CurrentAppointment.ActingHcp != null\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tname: data.CurrentAppointment.ActingHcp.Name,\n\t\t\t\t\t\t\t\tprofileImageUrl: data.CurrentAppointment.ActingHcp.ProfileImageUrl,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: null,\n\t\t\t\treceptionName: data.CurrentAppointment.ReceptionName,\n\t\t\t\tticket: data.CurrentAppointment.TicketId,\n\t\t\t\ttimestamp: data.CurrentAppointment.Start,\n\t\t\t\tunitId: data.CurrentAppointment.UnitId,\n\t\t\t});\n\n\t\t\treturn {\n\t\t\t\tappointmentCase: $case,\n\t\t\t\ttype: PrioritizedClientCaseDefinition.CurrentAppointment,\n\t\t\t};\n\t\t}\n\n\t\tif (data.UnansweredForms != null) {\n\t\t\tconst $case =\n\t\t\t\tdata.UnansweredForms.Appointment != null\n\t\t\t\t\t? this.parseAppointmentCase({\n\t\t\t\t\t\t\tcountedParticipants: data.UnansweredForms.Appointment.ParticipantCount,\n\t\t\t\t\t\t\tgoToDetailView: true,\n\t\t\t\t\t\t\tactingHcp:\n\t\t\t\t\t\t\t\tdata.UnansweredForms.Appointment.ActingHcp != null\n\t\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\t\tname: data.UnansweredForms.Appointment.ActingHcp.Name,\n\t\t\t\t\t\t\t\t\t\t\tprofileImageUrl: data.UnansweredForms.Appointment.ActingHcp.ProfileImageUrl,\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\treceptionName: data.UnansweredForms.Appointment.ReceptionName,\n\t\t\t\t\t\t\tticket: data.UnansweredForms.Appointment.TicketId,\n\t\t\t\t\t\t\ttimestamp: data.UnansweredForms.Appointment.Start,\n\t\t\t\t\t\t\tunitId: data.UnansweredForms.Appointment.UnitId,\n\t\t\t\t\t\t})\n\t\t\t\t\t: this.parseMessageCase({\n\t\t\t\t\t\t\tcaseId: data.UnansweredForms.Case?.CaseId ?? -1,\n\t\t\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\t\t\treceptionName: data.UnansweredForms.Case?.ReceptionName ?? '',\n\t\t\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\t\t\tunreadCount: data.UnansweredForms.Case?.UnreadCount ?? 0,\n\t\t\t\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\t\t\t\ttimestamp: data.UnansweredForms.Case?.LastMessageFromPeerTimestamp ?? '',\n\t\t\t\t\t\t});\n\n\t\t\treturn {\n\t\t\t\tunansweredFormsNames: data.UnansweredForms.Forms ?? [],\n\t\t\t\tcase: $case,\n\t\t\t\ttype: PrioritizedClientCaseDefinition.UnansweredForms,\n\t\t\t};\n\t\t}\n\n\t\tif (data.Unpaid != null) {\n\t\t\tconst $case = this.parseAppointmentCase({\n\t\t\t\tcountedParticipants: data.Unpaid.ParticipantCount,\n\t\t\t\tgoToDetailView: true,\n\t\t\t\tactingHcp:\n\t\t\t\t\tdata.Unpaid.ActingHcp != null\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tname: data.Unpaid.ActingHcp.Name,\n\t\t\t\t\t\t\t\tprofileImageUrl: data.Unpaid.ActingHcp.ProfileImageUrl,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: null,\n\t\t\t\treceptionName: data.Unpaid.ReceptionName,\n\t\t\t\tticket: data.Unpaid.TicketId,\n\t\t\t\ttimestamp: data.Unpaid.Start,\n\t\t\t\tunitId: data.Unpaid.UnitId,\n\t\t\t});\n\n\t\t\treturn {\n\t\t\t\tappointmentCase: $case,\n\t\t\t\ttype: PrioritizedClientCaseDefinition.Unpaid,\n\t\t\t};\n\t\t}\n\n\t\tif (data.UpcomingAppointment != null) {\n\t\t\tconst $case = this.parseAppointmentCase({\n\t\t\t\tcountedParticipants: data.UpcomingAppointment.ParticipantCount,\n\t\t\t\tgoToDetailView: true,\n\t\t\t\tactingHcp:\n\t\t\t\t\tdata.UpcomingAppointment.ActingHcp != null\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tname: data.UpcomingAppointment.ActingHcp.Name,\n\t\t\t\t\t\t\t\tprofileImageUrl: data.UpcomingAppointment.ActingHcp.ProfileImageUrl,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: null,\n\t\t\t\treceptionName: data.UpcomingAppointment.ReceptionName,\n\t\t\t\tticket: data.UpcomingAppointment.TicketId,\n\t\t\t\ttimestamp: data.UpcomingAppointment.Start,\n\t\t\t\tunitId: data.UpcomingAppointment.UnitId,\n\t\t\t});\n\n\t\t\treturn {\n\t\t\t\tappointmentCase: $case,\n\t\t\t\ttype: PrioritizedClientCaseDefinition.UpcomingAppointment,\n\t\t\t};\n\t\t}\n\n\t\tif (data.NewMessage && data.NewMessage.UnreadCount > 0 && data.NewMessage.LastMessageFromPeerTimestamp != null) {\n\t\t\tconst $case = this.parseMessageCase({\n\t\t\t\tcaseId: data.NewMessage?.CaseId ?? -1,\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\treceptionName: data.NewMessage?.ReceptionName ?? '',\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\tunreadCount: data.NewMessage?.UnreadCount ?? 0,\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\ttimestamp: data.NewMessage?.LastMessageFromPeerTimestamp ?? '',\n\t\t\t});\n\n\t\t\treturn {\n\t\t\t\tmessageCase: $case,\n\t\t\t\ttype: PrioritizedClientCaseDefinition.NewMessages,\n\t\t\t};\n\t\t}\n\n\t\tif (\n\t\t\tdata.NewMessagesDifferentCases &&\n\t\t\tdata.NewMessagesDifferentCases.UnreadMessagesCount > 0 &&\n\t\t\tdata.NewMessagesDifferentCases.LastMessageFromPeerTimestamp != null\n\t\t) {\n\t\t\tconst $case = this.parseMessageCase({\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\tcaseId: null,\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\treceptionName: null,\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\tunreadCount: data.NewMessagesDifferentCases?.UnreadMessagesCount ?? 0,\n\t\t\t\t// TODO PAT-426: Allow null?\n\t\t\t\ttimestamp: data.NewMessagesDifferentCases?.LastMessageFromPeerTimestamp ?? '',\n\t\t\t});\n\n\t\t\treturn {\n\t\t\t\tmessageCase: $case,\n\t\t\t\ttype: PrioritizedClientCaseDefinition.NewMessagesDifferentCases,\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\ttype: PrioritizedClientCaseDefinition.None,\n\t\t\tappointmentCase: null,\n\t\t\tmessageCase: null,\n\t\t};\n\t}\n\n\tprivate parseMessageCase(spec: {\n\t\tcaseId: Nullable<number>;\n\t\tunreadCount: number;\n\t\ttimestamp: string;\n\t\treceptionName: Nullable<string>;\n\t}): AttentionCardMessageCaseModel {\n\t\tconst link =\n\t\t\tspec.caseId != null\n\t\t\t\t? `${this.licenceHolderService.alias}/visits/message/${spec.caseId}`\n\t\t\t\t: `${this.licenceHolderService.alias}/visits`;\n\t\tconst date = this.dateService.create(spec.timestamp);\n\n\t\treturn {\n\t\t\ttype: 'messaging',\n\t\t\treceptionName: spec.receptionName ?? null,\n\t\t\tdateFormatted: date.format(\n\t\t\t\tthis.dateService.getLocaleSpecificDateFormatTemplate(DateDisplayFormats.FULL_DISPLAY_IN_CURRENT_YEAR),\n\t\t\t),\n\t\t\tdateInstance: date,\n\t\t\tlink: getAbsoluteRoute(link),\n\t\t\tunreadCount: spec.unreadCount,\n\t\t};\n\t}\n\n\tprivate parseAppointmentCase(spec: {\n\t\tactingHcp: Nullable<{\n\t\t\tname: Nullable<string>;\n\t\t\tprofileImageUrl: Nullable<string>;\n\t\t}>;\n\t\tcountedParticipants: number;\n\t\tticket: string;\n\t\ttimestamp: string;\n\t\treceptionName: Nullable<string>;\n\t\tgoToDetailView: boolean;\n\t\tunitId: number;\n\t}): AttentionCardAppointmentCaseModel {\n\t\tconst unit = this.unitService.getUnitNodeInTree(spec.unitId);\n\t\tconst link = spec.goToDetailView ? `${unit.route}/visits/video/${spec.ticket}` : `${unit.route}/appointment/${spec.ticket}`;\n\t\tconst date = this.dateService.newDate(spec.timestamp);\n\n\t\treturn {\n\t\t\ttype: 'appointment',\n\t\t\tticket: spec.timestamp,\n\t\t\tdateFormatted: date.format(\n\t\t\t\tthis.dateService.getLocaleSpecificDateFormatTemplate(DateDisplayFormats.FULL_DISPLAY_IN_CURRENT_YEAR),\n\t\t\t),\n\t\t\tdateInstance: date,\n\t\t\tactingHcp:\n\t\t\t\tspec.actingHcp != null\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tname: spec.actingHcp.name,\n\t\t\t\t\t\t\tprofileImageUrl: spec.actingHcp.profileImageUrl,\n\t\t\t\t\t\t}\n\t\t\t\t\t: null,\n\t\t\tparticipantCount: spec.countedParticipants,\n\t\t\treceptionName: spec.receptionName ?? '',\n\t\t\tlink: getAbsoluteRoute(link),\n\t\t};\n\t}\n}\n","import { Color } from '@visiba/std';\n\ntype RgbTuple = [number, number, number];\n\nexport function variableToHex(variableName: string): string {\n\t// TODO: Figure out if there's a better way to compute hex from variable\n\tif (variableName.startsWith('var')) {\n\t\tvariableName = variableName.substring(4, variableName.length - 2);\n\t}\n\n\treturn getComputedStyle(document.documentElement).getPropertyValue(variableName).trim();\n}\n\nexport function variableToRgb(variableName: string): RgbTuple {\n\tconst hex = variableToHex(variableName);\n\tif (!hex) return [0, 0, 0];\n\n\tconst [r, g, b, _] = Color.createRgb(hex);\n\n\treturn [r, g, b];\n}\n","import styled from 'styled-components';\nimport { Children, ReactElement, ReactNode } from 'react';\nimport { rem } from '@visiba/std';\nimport { Text } from '@visiba-cortex/react-ui-std';\nimport { FONT_VARIANT, STANDARD_BOX_SHADOW } from '../constants';\nimport { variableToRgb } from '@modules/color';\nimport { theme } from '../application/services/theme.service/theme';\n\ninterface Props {\n\tchildren: ReactNode;\n}\n\nconst elements = {\n\touterContainer: styled.div`\n\t\twidth: 100%;\n\t\tbackground-color: white; /* TODO: Use color alias UICardBg (DEV-10636) */\n\t\tborder-radius: ${rem(10)};\n\t\toverflow: hidden;\n\t\tbox-shadow: ${STANDARD_BOX_SHADOW};\n\n\t\t--_gap: ${rem(20)};\n\t`,\n\tinnerContainer: styled.div`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tpadding: ${rem(15)} 0;\n\t`,\n\tthumbnail: styled.div<{ size?: number; type?: 'neutral' | 'alertive' | 'themed' }>`\n\t\tpadding: 0 var(--_gap);\n\t\tdisplay: flex;\n\t\t${({ size }) => size && `font-size: ${rem(size)};`}\n\t\t${({ type }) => {\n\t\t\tif (type) {\n\t\t\t\tif (type === 'alertive') {\n\t\t\t\t\treturn `color: ${theme.systemColorError}`;\n\t\t\t\t}\n\n\t\t\t\tif (type === 'themed') {\n\t\t\t\t\treturn `color: ${theme.primary}`;\n\t\t\t\t}\n\n\t\t\t\t// TODO: Use color alias UICardSecondaryText (DEV-10636)\n\t\t\t\treturn 'color: #4C515A';\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}}\n\t`,\n\ttextContainer: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex: 1;\n\t\toverflow: hidden;\n\t`,\n\ticonWrapper: styled.div<{ useAccentColor: boolean }>`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tbox-sizing: content-box;\n\t\tpadding: 0 calc(var(--_gap) / 2) 0 var(--_gap);\n\t\twidth: ${rem(32)};\n\t\tcolor: ${({ useAccentColor }) => (useAccentColor ? theme.accentColor : '#4C515A')};\n\t`,\n\ticon: styled.div`\n\t\tdisplay: flex;\n\t\tfont-size: ${rem(32)};\n\t`,\n\tfooter: styled.div`\n\t\twidth: 100%;\n\t\tpadding: ${rem(3)} var(--_gap) ${rem(5)};\n\t\tbackground: ${() => `rgba(${variableToRgb(theme.accentColor)}, 0.05)`};\n\t\tcolor: ${() => theme.accentColor};\n\t`,\n\tmodifiedText: styled(Text)`\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t`,\n};\n\nexport function CaseCard({ children }: Props): JSX.Element {\n\tconst childrenByType = new Map(Children.toArray(children).map((child) => [(child as ReactElement)?.type, child]));\n\tconst hasFooter = !!childrenByType.get(CaseCardFooter);\n\n\treturn (\n\t\t<elements.outerContainer data-testid='caseCard'>\n\t\t\t<elements.innerContainer>\n\t\t\t\t{childrenByType.get(CaseCardThumbnail)}\n\t\t\t\t<elements.textContainer>\n\t\t\t\t\t{childrenByType.get(CaseCardTitle)}\n\t\t\t\t\t{childrenByType.get(CaseCardSubtitle)}\n\t\t\t\t\t{childrenByType.get(CaseCardDate)}\n\t\t\t\t</elements.textContainer>\n\t\t\t\t<elements.iconWrapper useAccentColor={hasFooter}>{childrenByType.get(CaseCardIcon)}</elements.iconWrapper>\n\t\t\t</elements.innerContainer>\n\n\t\t\t{hasFooter ? <elements.footer>{childrenByType.get(CaseCardFooter)}</elements.footer> : null}\n\t\t</elements.outerContainer>\n\t);\n}\n\ninterface CaseCardImageImageWithIconProps {\n\tsize: number;\n\ttype: 'neutral' | 'alertive' | 'themed';\n\tchildren: ReactNode;\n}\n\ninterface CaseCardImageImageWithAvatarProps {\n\tsize?: never;\n\ttype?: never;\n\tchildren: ReactNode;\n}\n\ntype CaseCardImageImageProps = CaseCardImageImageWithIconProps | CaseCardImageImageWithAvatarProps;\n\nfunction CaseCardThumbnail(props: CaseCardImageImageProps): JSX.Element {\n\tif (props.size) {\n\t\treturn (\n\t\t\t<elements.thumbnail size={props.size} type={props.type}>\n\t\t\t\t{props.children}\n\t\t\t</elements.thumbnail>\n\t\t);\n\t}\n\n\treturn <elements.thumbnail>{props.children}</elements.thumbnail>;\n}\nCaseCard.Thumbnail = CaseCardThumbnail;\n\ninterface CaseCardTitleProps {\n\tchildren: string;\n}\n\nfunction CaseCardTitle({ children }: CaseCardTitleProps): JSX.Element {\n\treturn (\n\t\t/* TODO: Use color alias UICardText (DEV-10636) */\n\t\t<elements.modifiedText font={FONT_VARIANT.LARGE_BODY} color='#323232'>\n\t\t\t{children}\n\t\t</elements.modifiedText>\n\t);\n}\nCaseCard.Title = CaseCardTitle;\n\ninterface CaseCardSubtitleProps {\n\tchildren: ReactNode;\n}\n\nfunction CaseCardSubtitle({ children }: CaseCardSubtitleProps): JSX.Element {\n\treturn (\n\t\t/* TODO: Use color alias UICardSecondaryText (DEV-10636) */\n\t\t<elements.modifiedText font={FONT_VARIANT.BODY} color='#161718'>\n\t\t\t{children}\n\t\t</elements.modifiedText>\n\t);\n}\nCaseCard.Subtitle = CaseCardSubtitle;\n\ninterface CaseCardDateProps {\n\tchildren: ReactNode;\n}\n\nfunction CaseCardDate({ children }: CaseCardDateProps): JSX.Element {\n\treturn (\n\t\t/* TODO: Use color alias UICardText (DEV-10636) */\n\t\t<elements.modifiedText font={FONT_VARIANT.BODY} color='#323232'>\n\t\t\t{children}\n\t\t</elements.modifiedText>\n\t);\n}\nCaseCard.Date = CaseCardDate;\n\ninterface CaseCardIconProps {\n\tchildren: ReactNode;\n}\n\nfunction CaseCardIcon({ children }: CaseCardIconProps): JSX.Element {\n\t/* TODO: Use color alias as fallback UICardSecondaryText (DEV-10636) */\n\treturn <elements.icon>{children}</elements.icon>;\n}\nCaseCard.Icon = CaseCardIcon;\n\ninterface CaseCardFooterProps {\n\tchildren: string;\n}\n\nfunction CaseCardFooter({ children }: CaseCardFooterProps): JSX.Element {\n\treturn (\n\t\t<elements.modifiedText font={FONT_VARIANT.BODY} fontWeight='600'>\n\t\t\t{children}\n\t\t</elements.modifiedText>\n\t);\n}\nCaseCard.Footer = CaseCardFooter;\n","import { rem } from '@visiba/std';\nimport { Text } from '@visiba-cortex/react-ui-std';\nimport { motion } from 'framer-motion';\nimport { FONT_VARIANT } from '../../constants';\nimport styled from 'styled-components';\nimport { Icon } from '@components/icon.component';\nimport { theme } from '@services/theme.service/theme';\nimport { SyntheticEvent } from 'react';\nimport { AnalyticLink } from '@components/analytic_link/analytic_link.component';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\n\ninterface Props {\n\talertiveTitle?: boolean;\n\tdescription: string;\n\tto: string;\n\tanalyticAction: string;\n\tariaLabel?: string;\n\tchildren: JSX.Element;\n}\n\nconst elements = {\n\tcontainer: styled(motion.div)`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tposition: absolute;\n\t\ttop: ${rem(100)};\n\t\tright: 20px;\n\t\tpointer-events: all;\n\t\twidth: 100vw;\n\t\tmax-width: ${rem(355)};\n\t\ttransform-origin: center right;\n\t`,\n\ttitle: styled(Text)`\n\t\tmargin-bottom: ${rem(8)};\n\t\tpadding-left: ${rem(8)};\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t`,\n\talertiveIcon: styled.span`\n\t\tdisplay: flex;\n\t\tmargin-right: ${rem(4)};\n\t\tcolor: ${theme.accentColor};\n\t`,\n};\n\nexport function AttentionCardCaseCardWrapper({\n\tchildren,\n\talertiveTitle,\n\tanalyticAction,\n\tdescription,\n\tto,\n\tariaLabel,\n}: Props): JSX.Element {\n\treturn (\n\t\t<elements.container\n\t\t\ttransition={{\n\t\t\t\ttype: 'spring',\n\t\t\t\tduration: 0.35,\n\t\t\t}}\n\t\t\tinitial={{ opacity: 0, x: 20, scale: 0.9 }}\n\t\t\tanimate={{ opacity: 1, x: 0, scale: 1 }}\n\t\t>\n\t\t\t<elements.title font={FONT_VARIANT.BODY}>\n\t\t\t\t{alertiveTitle ? (\n\t\t\t\t\t<elements.alertiveIcon>\n\t\t\t\t\t\t<Icon type='error' />\n\t\t\t\t\t</elements.alertiveIcon>\n\t\t\t\t) : null}\n\t\t\t\t{description}\n\t\t\t</elements.title>\n\n\t\t\t<UglyMessLink__TEMP__ to={to} analyticAction={analyticAction} ariaLabel={ariaLabel}>\n\t\t\t\t{children}\n\t\t\t</UglyMessLink__TEMP__>\n\t\t</elements.container>\n\t);\n}\n\ninterface UglyMessProps {\n\tto: string;\n\tanalyticAction: string;\n\tariaLabel?: string;\n\tchildren: JSX.Element;\n}\n\nfunction UglyMessLink__TEMP__({ to, ariaLabel, analyticAction, children }: UglyMessProps): JSX.Element {\n\tconst analyticService = useService(AnalyticService);\n\n\tif (window.__TEMP__overrideNavigation) {\n\t\tfunction handleIntercept(event: SyntheticEvent<HTMLAnchorElement>): void {\n\t\t\tevent.preventDefault();\n\n\t\t\tif (window.__TEMP__overrideNavigation && to) {\n\t\t\t\twindow.__TEMP__overrideNavigation(to);\n\n\t\t\t\tanalyticService.trackEvent(AnalyticCategories.AttentionCards, analyticAction);\n\t\t\t}\n\t\t}\n\n\t\treturn (\n\t\t\t<a href={to} aria-label={ariaLabel} onClick={handleIntercept}>\n\t\t\t\t{children}\n\t\t\t</a>\n\t\t);\n\t}\n\n\treturn (\n\t\t<AnalyticLink to={to} action={analyticAction} aria-label={ariaLabel}>\n\t\t\t{children}\n\t\t</AnalyticLink>\n\t);\n}\n","import { CaseCard } from '@components/case_card.component';\nimport { Icon } from '@components/icon.component';\nimport { AttentionCardCaseCardWrapper } from './_attention_card_case_card_wrapper.component';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport type {\n\tAttentionCardAppointmentCaseModel,\n\tAttentionCardMessageCaseModel,\n} from '@components/attention_card/_attention_card.controller';\n\ninterface Props {\n\tcase: AttentionCardAppointmentCaseModel | AttentionCardMessageCaseModel;\n\tunansweredFormsNames: string[];\n}\n\nexport function AttentionCardTypeUnansweredForms({ case: $case, unansweredFormsNames }: Props): JSX.Element {\n\tconst isAppointment = $case.type === 'appointment';\n\tconst [description, ariaLabel] = isAppointment\n\t\t? [\n\t\t\t\twithTranslation('PW.Component.AttentionCard.UnansweredForms.Description', { date: $case.dateFormatted }),\n\t\t\t\twithTranslation('PW.Component.AttentionCard.UnansweredForms.Aria', { date: $case.dateFormatted }),\n\t\t ]\n\t\t: // TODO: PAT-373 this should have correct translations when it's a messaging case\n\t\t ['', withTranslation('PW.Component.AttentionCard.UnansweredForms.Aria', { date: $case.dateFormatted })];\n\n\treturn (\n\t\t<AttentionCardCaseCardWrapper\n\t\t\talertiveTitle={isAppointment}\n\t\t\tto={$case.link}\n\t\t\tdescription={description}\n\t\t\tariaLabel={ariaLabel}\n\t\t\tanalyticAction='Clicked Unanswered forms-card'\n\t\t>\n\t\t\t<CaseCard>\n\t\t\t\t<CaseCard.Thumbnail size={30} type='neutral'>\n\t\t\t\t\t<Icon type='form' />\n\t\t\t\t</CaseCard.Thumbnail>\n\t\t\t\t<CaseCard.Title>{withTranslation('PW.Component.AttentionCard.UnansweredForms.Subject')}</CaseCard.Title>\n\t\t\t\t<CaseCard.Subtitle>{unansweredFormsNames.join(', ')}</CaseCard.Subtitle>\n\t\t\t\t<CaseCard.Icon>\n\t\t\t\t\t<Icon type='attentionCardArrow' />\n\t\t\t\t</CaseCard.Icon>\n\t\t\t</CaseCard>\n\t\t</AttentionCardCaseCardWrapper>\n\t);\n}\n","import { CaseCard } from '@components/case_card.component';\nimport { Icon } from '@components/icon.component';\nimport { AttentionCardCaseCardWrapper } from './_attention_card_case_card_wrapper.component';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport type { AttentionCardAppointmentCaseModel } from '@components/attention_card/_attention_card.controller';\n\ninterface Props {\n\tcase: AttentionCardAppointmentCaseModel;\n}\n\nexport function AttentionCardTypeUnpaid({ case: $case }: Props): JSX.Element {\n\treturn (\n\t\t<AttentionCardCaseCardWrapper\n\t\t\tto={$case.link}\n\t\t\talertiveTitle\n\t\t\tdescription={withTranslation('PW.Component.AttentionCard.Unpaid.Description')}\n\t\t\tariaLabel={withTranslation('PW.Component.AttentionCard.Unpaid.Aria', { date: $case.dateFormatted })}\n\t\t\tanalyticAction='Clicked Unpaid appointment-card'\n\t\t>\n\t\t\t<CaseCard>\n\t\t\t\t<CaseCard.Thumbnail size={30} type='alertive'>\n\t\t\t\t\t<Icon type='alertiveCreditCard' />\n\t\t\t\t</CaseCard.Thumbnail>\n\t\t\t\t<CaseCard.Title>{withTranslation('PW.Component.AttentionCard.Unpaid.Subject')}</CaseCard.Title>\n\t\t\t\t<CaseCard.Date>{withTranslation('PW.Component.AttentionCard.Unpaid.DueDate', { date: $case.dateFormatted })}</CaseCard.Date>\n\t\t\t\t<CaseCard.Icon>\n\t\t\t\t\t<Icon type='attentionCardArrow' />\n\t\t\t\t</CaseCard.Icon>\n\t\t\t</CaseCard>\n\t\t</AttentionCardCaseCardWrapper>\n\t);\n}\n","import { CaseCard } from '@components/case_card.component';\nimport { Icon } from '@components/icon.component';\nimport { AttentionCardCaseCardWrapper } from './_attention_card_case_card_wrapper.component';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { DateService } from '@services/date.service';\nimport type { AttentionCardMessageCaseModel } from '@components/attention_card/_attention_card.controller';\n\ninterface Props {\n\tdescription: string;\n\tmessage: AttentionCardMessageCaseModel;\n\tanalyticAction: string;\n}\n\nexport function AttentionCardCaseCardMessage({ message, description, analyticAction }: Props): JSX.Element {\n\tconst dateService = useService(DateService);\n\n\tlet date: string;\n\tif (dateService.isToday(message.dateInstance)) {\n\t\tdate = withTranslation('Common.Word.Today');\n\t} else if (dateService.isYesterday(message.dateInstance)) {\n\t\tdate = withTranslation('Common.Word.Yesterday');\n\t} else {\n\t\tdate = message.dateFormatted;\n\t}\n\n\treturn (\n\t\t<AttentionCardCaseCardWrapper\n\t\t\tdescription={description}\n\t\t\tto={message.link}\n\t\t\tanalyticAction={analyticAction}\n\t\t\tariaLabel={withTranslation('PW.Component.AttentionCard.Message.Aria')}\n\t\t>\n\t\t\t<CaseCard>\n\t\t\t\t<CaseCard.Thumbnail size={24} type='themed'>\n\t\t\t\t\t<Icon type='messaging' />\n\t\t\t\t</CaseCard.Thumbnail>\n\t\t\t\t<CaseCard.Title>\n\t\t\t\t\t{message.unreadCount > 1\n\t\t\t\t\t\t? withTranslation('PW.Component.AttentionCard.Message.SubjectPlural', { count: message.unreadCount.toString() })\n\t\t\t\t\t\t: withTranslation('PW.Component.AttentionCard.Message.Subject', { count: message.unreadCount.toString() })}\n\t\t\t\t</CaseCard.Title>\n\t\t\t\t<CaseCard.Date>{date}</CaseCard.Date>\n\t\t\t\t<CaseCard.Icon>\n\t\t\t\t\t<Icon type='attentionCardArrow' />\n\t\t\t\t</CaseCard.Icon>\n\t\t\t</CaseCard>\n\t\t</AttentionCardCaseCardWrapper>\n\t);\n}\n","import { AttentionCardCaseCardMessage } from './_attention_card_case_card_message.component';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport type { AttentionCardMessageCaseModel } from '@components/attention_card/_attention_card.controller';\n\ninterface Props {\n\tmessage: AttentionCardMessageCaseModel;\n}\n\nexport function AttentionCardTypeNewMessage({ message }: Props): JSX.Element {\n\treturn (\n\t\t<AttentionCardCaseCardMessage\n\t\t\tdescription={withTranslation('PW.Component.AttentionCard.Message.Description')}\n\t\t\tmessage={message}\n\t\t\tanalyticAction='Clicked Unread message-card'\n\t\t/>\n\t);\n}\n","import { AttentionCardCaseCardMessage } from './_attention_card_case_card_message.component';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport type { AttentionCardMessageCaseModel } from '@components/attention_card/_attention_card.controller';\n\ninterface Props {\n\tmessage: AttentionCardMessageCaseModel;\n}\n\nexport function AttentionCardTypeNewMessagesDifferentCases({ message }: Props): JSX.Element {\n\treturn (\n\t\t<AttentionCardCaseCardMessage\n\t\t\tdescription={withTranslation('PW.Component.AttentionCard.Message.Description')}\n\t\t\tmessage={message}\n\t\t\tanalyticAction='Clicked Unread message-card'\n\t\t/>\n\t);\n}\n","import { rem } from '@visiba/std';\nimport { theme } from '@services/theme.service/theme';\nimport { ReactNode, useContext } from 'react';\nimport { createContext, useMemo } from 'react';\nimport styled from 'styled-components';\nimport { Badge } from './badge.component';\nimport { Icon, IconType } from './icon.component';\n\nconst elements = {\n\tcontainer: styled.div<{ size: number }>`\n\t\tflex-shrink: 0;\n\t\tposition: relative;\n\t\twidth: ${({ size }) => rem(size)};\n\t\theight: ${({ size }) => rem(size)};\n\t`,\n\tinnerContainer: styled.div`\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\toverflow: hidden;\n\t`,\n\timg: styled.img`\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t\tobject-position: center;\n\t`,\n\ticon: styled.div<{ size: number }>`\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\n\t\tsvg {\n\t\t\tcolor: ${theme.primary};\n\t\t\tfont-size: ${({ size }) => rem(size)};\n\t\t}\n\t`,\n\tbadge: styled.div`\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 100%;\n\t\ttransform: translate(-66.66%, -10%);\n\t`,\n};\n\nconst DEFAULT_SIZE = 50;\n\ninterface AvatarContextProps {\n\tsize: number;\n}\n\nconst AvatarContext = createContext<AvatarContextProps>({ size: DEFAULT_SIZE });\n\ninterface AvatarProps {\n\tchildren: ReactNode;\n\tsize?: number;\n}\n\nexport function Avatar({ children, size }: AvatarProps): JSX.Element {\n\tconst value = useMemo(() => ({ size: size ?? DEFAULT_SIZE }), [size]);\n\n\treturn (\n\t\t<AvatarContext.Provider value={value}>\n\t\t\t<elements.container size={value.size}>{children}</elements.container>\n\t\t</AvatarContext.Provider>\n\t);\n}\n\ninterface ImageProps {\n\tsrc: string;\n}\n\nfunction AvatarImage({ src }: ImageProps): JSX.Element {\n\treturn (\n\t\t<elements.innerContainer>\n\t\t\t<elements.img src={src} data-testid='avatar-img' />\n\t\t</elements.innerContainer>\n\t);\n}\n\nAvatar.Image = AvatarImage;\n\ninterface IconProps {\n\ttype: IconType;\n}\n\nfunction AvatarIcon({ type }: IconProps): JSX.Element {\n\tconst context = useContext(AvatarContext);\n\n\treturn (\n\t\t<elements.innerContainer>\n\t\t\t<elements.icon size={context.size}>\n\t\t\t\t<Icon type={type} />\n\t\t\t</elements.icon>\n\t\t</elements.innerContainer>\n\t);\n}\n\nAvatar.Icon = AvatarIcon;\n\ninterface BadgeProps {\n\ttext?: string;\n\tamount?: number;\n}\n\nfunction AvatarBadge({ text, amount }: BadgeProps): JSX.Element {\n\treturn (\n\t\t<elements.badge data-testid='avatar-badge'>\n\t\t\t<Badge>\n\t\t\t\t{text && <Badge.Text value={text} />}\n\t\t\t\t{amount && <Badge.Amount value={amount} />}\n\t\t\t</Badge>\n\t\t</elements.badge>\n\t);\n}\n\nAvatar.Badge = AvatarBadge;\n","import { AttentionCardAppointmentCaseModel } from './_attention_card.controller';\n\nexport function getAppointmentParticipantsText($case: AttentionCardAppointmentCaseModel): string {\n\tif ($case.participantCount > 2) return `${$case.actingHcp?.name ?? '-'} +${$case.participantCount - 1}`;\n\n\treturn $case.actingHcp?.name ?? '-';\n}\n","import { Avatar } from '@components/avatar.component';\nimport { CaseCard } from '@components/case_card.component';\nimport { Icon } from '@components/icon.component';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { AttentionCardCaseCardWrapper } from './_attention_card_case_card_wrapper.component';\nimport type { AttentionCardAppointmentCaseModel } from '@components/attention_card/_attention_card.controller';\nimport { getAppointmentParticipantsText } from './_get_appointment_participant_text';\n\ninterface Props {\n\talertive?: boolean;\n\tcase: AttentionCardAppointmentCaseModel;\n\tdescription: string;\n\tanalyticAction: string;\n\tariaLabel?: string;\n}\n\nexport function AttentionCardCaseCardAppointment({\n\tcase: $case,\n\tdescription,\n\talertive,\n\tanalyticAction,\n\tariaLabel,\n}: Props): JSX.Element {\n\tconst participantsText = getAppointmentParticipantsText($case);\n\n\treturn (\n\t\t<AttentionCardCaseCardWrapper description={description} to={$case.link} ariaLabel={ariaLabel} analyticAction={analyticAction}>\n\t\t\t<CaseCard>\n\t\t\t\t<CaseCard.Thumbnail>\n\t\t\t\t\t<Avatar>\n\t\t\t\t\t\t{$case.participantCount <= 2 ? (\n\t\t\t\t\t\t\t$case.actingHcp?.profileImageUrl != null ? (\n\t\t\t\t\t\t\t\t<Avatar.Image src={$case.actingHcp.profileImageUrl} />\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<Avatar.Icon type='avatar' />\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Avatar.Icon type='avatars' />\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Avatar>\n\t\t\t\t</CaseCard.Thumbnail>\n\t\t\t\t<CaseCard.Title>{participantsText}</CaseCard.Title>\n\t\t\t\t<CaseCard.Subtitle>{$case.receptionName}</CaseCard.Subtitle>\n\t\t\t\t<CaseCard.Date>{$case.dateFormatted}</CaseCard.Date>\n\t\t\t\t<CaseCard.Icon>\n\t\t\t\t\t<Icon type={alertive ? 'attentionCardArrow' : 'clock'} />\n\t\t\t\t</CaseCard.Icon>\n\n\t\t\t\t{alertive ? <CaseCard.Footer>{withTranslation('PW.Component.AttentionCard.Appointment.EnterCall')}</CaseCard.Footer> : null}\n\t\t\t</CaseCard>\n\t\t</AttentionCardCaseCardWrapper>\n\t);\n}\n","import { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { AttentionCardCaseCardAppointment } from './_attention_card_case_card_appointment.component';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { DateService } from '@services/date.service';\nimport type { AttentionCardAppointmentCaseModel } from '@components/attention_card/_attention_card.controller';\nimport { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport { getAppointmentParticipantsText } from './_get_appointment_participant_text';\n\ninterface Props {\n\tcase: AttentionCardAppointmentCaseModel;\n}\n\nexport function AttentionCardTypeUpcomingAppointments({ case: $case }: Props): JSX.Element {\n\tconst dateService = useService(DateService);\n\n\tlet description: string;\n\tif (dateService.isToday($case.dateInstance)) {\n\t\tdescription = withTranslation('Common.Word.Today');\n\t} else if (dateService.isTomorrow($case.dateInstance)) {\n\t\tdescription = withTranslation('Common.Word.Tomorrow');\n\t} else {\n\t\tdescription = $case.dateFormatted;\n\t}\n\n\tconst participantsText = getAppointmentParticipantsText($case);\n\tconst ariaLabel = I18nAndL10n.translate('PW.Component.AttentionCard.UpcomingAppointment.Aria', {\n\t\tparticipants: participantsText,\n\t\tunitName: $case.receptionName,\n\t\tdateTime: $case.dateFormatted,\n\t});\n\n\treturn (\n\t\t<AttentionCardCaseCardAppointment\n\t\t\tcase={$case}\n\t\t\tdescription={description}\n\t\t\tanalyticAction='Clicked Next appointment-card'\n\t\t\tariaLabel={ariaLabel}\n\t\t/>\n\t);\n}\n","import { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { AttentionCardCaseCardAppointment } from './_attention_card_case_card_appointment.component';\nimport type { AttentionCardAppointmentCaseModel } from '@components/attention_card/_attention_card.controller';\nimport { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport { getAppointmentParticipantsText } from './_get_appointment_participant_text';\n\ninterface Props {\n\tcase: AttentionCardAppointmentCaseModel;\n}\n\nexport function AttentionCardTypeCurrentAppointment({ case: $case }: Props): JSX.Element {\n\tconst participantsText = getAppointmentParticipantsText($case);\n\n\tconst ariaLabel = I18nAndL10n.translate('PW.Component.AttentionCard.CurrentAppointment.Aria', {\n\t\tparticipants: participantsText,\n\t\tunitName: $case.receptionName,\n\t});\n\n\treturn (\n\t\t<AttentionCardCaseCardAppointment\n\t\t\talertive\n\t\t\tcase={$case}\n\t\t\tdescription={withTranslation('PW.Component.AttentionCard.CurrentAppointment.Description')}\n\t\t\tanalyticAction='Clicked Go to lobby-card'\n\t\t\tariaLabel={ariaLabel}\n\t\t/>\n\t);\n}\n","import styled from 'styled-components';\nimport { AttentionCardController } from '@components/attention_card/_attention_card.controller';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { usePresentation } from '@visiba-cortex/presentation';\nimport { AttentionCardTypeUnansweredForms } from './_attention_card_type_unanswered_forms.component';\nimport { AttentionCardTypeUnpaid } from './_attention_card_type_unpaid.component';\nimport { AttentionCardTypeNewMessage } from './_attention_card_type_new_message.component';\nimport { AttentionCardTypeNewMessagesDifferentCases } from './_attention_card_type_new_messages_different_cases.component';\nimport { AttentionCardTypeUpcomingAppointments } from './_attention_card_type_upcoming_appointment.component';\nimport { AttentionCardTypeCurrentAppointment } from './_attention_card_type_current_appointment.component';\nimport { useEffect } from 'react';\nimport { AnalyticProvider, useAnalyticContext } from '../analytic_link/mod';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { PrioritizedClientCaseDefinition } from '@api/generated/models';\nimport { useUser } from '@services/auth/use_user';\n\ninterface Props {}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tposition: fixed;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tpointer-events: none;\n\t\tz-index: 1;\n\t`,\n};\n\nexport function AttentionCard(_: Props): JSX.Element | null {\n\tconst user = useUser();\n\n\tif (user == null) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<AnalyticProvider category={AnalyticCategories.AttentionCards}>\n\t\t\t<elements.container>\n\t\t\t\t<Inner />\n\t\t\t</elements.container>\n\t\t</AnalyticProvider>\n\t);\n}\n\nfunction Inner(_: Props): JSX.Element | null {\n\tconst analyticService = useService(AnalyticService);\n\tconst controller = useService(AttentionCardController);\n\tconst presentation = usePresentation(controller.presentation);\n\tconst category = useAnalyticContext();\n\n\tuseEffect(\n\t\tfunction whenComponentUnmounts() {\n\t\t\treturn () => {\n\t\t\t\tcontroller.teardown();\n\t\t\t};\n\t\t},\n\t\t[controller],\n\t);\n\n\tuseEffect(\n\t\tfunction analytic_whenPresentationTypeChanges() {\n\t\t\tconst action = controller.mapEnumToAnalyticEventAction(presentation.type);\n\t\t\tif (action != null) {\n\t\t\t\tanalyticService.trackEvent(category, action);\n\t\t\t}\n\t\t},\n\t\t[controller, analyticService, category, presentation.type],\n\t);\n\n\tswitch (presentation.type) {\n\t\tcase PrioritizedClientCaseDefinition.None:\n\t\t\treturn null;\n\t\tcase PrioritizedClientCaseDefinition.UnansweredForms:\n\t\t\treturn <AttentionCardTypeUnansweredForms case={presentation.case} unansweredFormsNames={presentation.unansweredFormsNames} />;\n\t\tcase PrioritizedClientCaseDefinition.Unpaid:\n\t\t\treturn <AttentionCardTypeUnpaid case={presentation.appointmentCase} />;\n\t\tcase PrioritizedClientCaseDefinition.NewMessages:\n\t\t\treturn <AttentionCardTypeNewMessage message={presentation.messageCase} />;\n\t\tcase PrioritizedClientCaseDefinition.NewMessagesDifferentCases:\n\t\t\treturn <AttentionCardTypeNewMessagesDifferentCases message={presentation.messageCase} />;\n\t\tcase PrioritizedClientCaseDefinition.CurrentAppointment:\n\t\t\treturn <AttentionCardTypeCurrentAppointment case={presentation.appointmentCase} />;\n\t\tcase PrioritizedClientCaseDefinition.UpcomingAppointment:\n\t\t\treturn <AttentionCardTypeUpcomingAppointments case={presentation.appointmentCase} />;\n\t\tdefault:\n\t\t\treturn null;\n\t}\n}\n","import styled from 'styled-components';\nimport { rem, clamp } from '@visiba/std';\nimport { Fragment, ReactNode } from 'react';\nimport { theme } from '@services/theme.service/theme';\n\nconst elements = {\n\tellipse: styled.div`\n\t\tmin-width: ${rem(17)};\n\t\theight: ${rem(17)};\n\t\tpadding: 0 ${rem(5)};\n\t\tfont-weight: 600;\n\t\tfont-size: ${rem(12)};\n\t\tline-height: ${rem(17)};\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tbackground: ${theme.accentColor};\n\t\tcolor: ${theme.textOnBackground2};\n\t\tborder-radius: ${rem(17 / 2)};\n\n\t\t.adjustText {\n\t\t\tposition: relative;\n\t\t\ttop: -${rem(0.5)};\n\t\t}\n\n\t\t.plus {\n\t\t\tposition: relative;\n\t\t\ttop: -${rem(1)};\n\t\t\tleft: -${rem(1)};\n\t\t\twidth: ${rem(5)};\n\t\t}\n\t`,\n};\n\ninterface BadgeProps {\n\tchildren: ReactNode;\n}\n\nexport function Badge({ children }: BadgeProps): JSX.Element {\n\treturn <elements.ellipse>{children}</elements.ellipse>;\n}\n\ninterface BadgeAmountProps {\n\tvalue: number;\n}\n\nfunction BadgeAmount({ value }: BadgeAmountProps): JSX.Element {\n\tconst displayAmount = clamp(value, [0, 99]);\n\n\treturn (\n\t\t<Fragment>\n\t\t\t<span className='adjustText' data-testid='badge-text'>\n\t\t\t\t{displayAmount}\n\t\t\t</span>\n\t\t\t{value >= 100 ? <span className='plus'>+</span> : null}\n\t\t</Fragment>\n\t);\n}\n\nBadge.Amount = BadgeAmount;\n\ninterface BadgeTextProps {\n\tvalue: string;\n}\n\nfunction BadgeText({ value }: BadgeTextProps): JSX.Element {\n\treturn (\n\t\t<span className='adjustText' data-testid='badge-text'>\n\t\t\t{value}\n\t\t</span>\n\t);\n}\n\nBadge.Text = BadgeText;\n","type FocusContext = {\n\tcurrent: HTMLElement | null;\n};\n\n/**\n * # cortex:react-ui-std:helper:focusContext\n *\n * Simple storage to mutate the current focused DOM element.\n */\nexport const focusContext: FocusContext = {\n\tcurrent: null,\n};\n","import React, { forwardRef, ReactNode, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport { focusContext } from '@modules/focus_context';\nimport { useCombinedRefs } from '@modules/use_combined_ref';\n\nexport interface VisibaCortexBaseButtonProps {\n\ttabIndex?: number;\n\tdisabled?: boolean;\n\tallowPassThrough?: boolean;\n\tclassName?: string;\n\trole?: string;\n\ttype?: 'submit' | 'reset' | 'button';\n\tonBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;\n\tonFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;\n\tonClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\n\tonMouseMove?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\n\tonMouseDown?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\n\tonMouseUp?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\n\tonMouseEnter?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\n\tonMouseLeave?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\n\tonMouseOver?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\n\tonKeyUp?: (event: React.KeyboardEvent<HTMLButtonElement>) => void;\n\tonKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>) => void;\n\tonTouchEnd?: (event: React.TouchEvent<HTMLButtonElement>) => void;\n\tonTouchMove?: (event: React.TouchEvent<HTMLButtonElement>) => void;\n\tonTouchStart?: (event: React.TouchEvent<HTMLButtonElement>) => void;\n\tchildren?: ReactNode;\n\tautoFocus?: boolean;\n}\n\n// The base_button component does not include \"cursor: pointer;\" due to\n// official standards specifying that: \"The cursor is a pointer that indicates\n// a link.\" https://www.w3.org/TR/CSS21/ui.html#propdef-cursor\n//\n// Microsoft and Apple also specifies that the \"correct\" interaction is to\n// reserve the pointing hand to URL links\n// https://docs.microsoft.com/en-gb/windows/win32/uxguide/inter-mouse?redirectedfrom=MSDN\n// https://developer.apple.com/design/human-interface-guidelines/macos/user-interaction/mouse-and-trackpad/\n//\n// If you'd want to have buttons with cursors, that's fine, but you'll need to\n// extend the base_button component in order to get that interaction\nconst elements = {\n\tcontent: styled.button`\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: auto;\n\t\toverflow: visible;\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont: inherit;\n\t\tline-height: normal;\n\t\t-webkit-font-smoothing: inherit;\n\t\t-moz-osx-font-smoothing: inherit;\n\t\t-webkit-appearance: none;\n\t`,\n};\n\n/**\n * # cortex:react-ui-std:comp:BaseButton\n */\nexport const BaseButton = forwardRef<HTMLButtonElement, VisibaCortexBaseButtonProps>(function BaseButton({ ...props }, ref) {\n\t// Takes out these values to be used as variables here.\n\tconst {\n\t\tchildren,\n\t\tclassName,\n\t\tdisabled,\n\t\tallowPassThrough,\n\t\t// Takes out focus events for override.\n\t\tonBlur,\n\t\tonFocus,\n\t\t// Takes out mouse events for override.\n\t\tonClick,\n\t\tonMouseDown,\n\t\tonMouseUp,\n\t\tonMouseEnter,\n\t\tonMouseOver,\n\t\tonMouseLeave,\n\t\t// Takes out keyboard events for override.\n\t\tonKeyUp,\n\t\tonKeyDown,\n\t\t// Takes out touch events for override.\n\t\tonTouchEnd,\n\t\tonTouchMove,\n\t\tonTouchStart,\n\t\tonMouseMove,\n\t\t// defaults.\n\t\ttabIndex = 0,\n\t\ttype = 'button',\n\t\t// Spreads anything else.\n\t\t...rest\n\t} = props;\n\n\tconst buttonRef = useRef<HTMLButtonElement>(null);\n\tconst combinedRef = useCombinedRefs(ref, buttonRef);\n\tconst [isFocused, setIsFocus] = useState(false);\n\n\tif (disabled && isFocused) setIsFocus(false);\n\n\t// Focus events\n\tfunction handleBlur(event: React.FocusEvent<HTMLButtonElement>): void {\n\t\tsetIsFocus(false);\n\n\t\tfocusContext.current = null;\n\n\t\tif (onBlur) onBlur(event);\n\t}\n\n\tfunction handleFocus(event: React.FocusEvent<HTMLButtonElement>): void {\n\t\tsetIsFocus(true);\n\n\t\tfocusContext.current = buttonRef.current;\n\n\t\tif (onFocus) onFocus(event);\n\t}\n\n\t// Mouse events\n\tfunction handleClick(event: React.MouseEvent<HTMLButtonElement>): void {\n\t\tif ((!disabled || allowPassThrough) && onClick) onClick(event);\n\t}\n\n\tfunction handleMouseDown(event: React.MouseEvent<HTMLButtonElement>): void {\n\t\tif ((!disabled || allowPassThrough) && onMouseDown) onMouseDown(event);\n\t}\n\tfunction handleMouseUp(event: React.MouseEvent<HTMLButtonElement>): void {\n\t\tif ((!disabled || allowPassThrough) && onMouseUp) onMouseUp(event);\n\t}\n\n\tfunction handleMouseEnter(event: React.MouseEvent<HTMLButtonElement>): void {\n\t\tif ((!disabled || allowPassThrough) && onMouseEnter) onMouseEnter(event);\n\t}\n\n\tfunction handleMouseLeave(event: React.MouseEvent<HTMLButtonElement>): void {\n\t\tif ((!disabled || allowPassThrough) && onMouseLeave) onMouseLeave(event);\n\t}\n\n\tfunction handleMouseMove(event: React.MouseEvent<HTMLButtonElement>): void {\n\t\tif ((!disabled || allowPassThrough) && onMouseMove) onMouseMove(event);\n\t}\n\n\tfunction handleMouseOver(event: React.MouseEvent<HTMLButtonElement>): void {\n\t\tif ((!disabled || allowPassThrough) && onMouseOver) onMouseOver(event);\n\t}\n\n\t// Keyboard events\n\tfunction handleKeyDown(event: React.KeyboardEvent<HTMLButtonElement>): void {\n\t\tif (isFocused && event.key === 'Escape' && focusContext.current) {\n\t\t\tfocusContext.current.blur();\n\n\t\t\treturn;\n\t\t}\n\n\t\tif ((!disabled || allowPassThrough) && onKeyDown) onKeyDown(event);\n\t}\n\n\tfunction handleKeyUp(event: React.KeyboardEvent<HTMLButtonElement>): void {\n\t\tif ((!disabled || allowPassThrough) && onKeyUp) onKeyUp(event);\n\t}\n\n\t// Touch events\n\tfunction handleTouchStart(event: React.TouchEvent<HTMLButtonElement>): void {\n\t\tif ((!disabled || allowPassThrough) && onTouchStart) onTouchStart(event);\n\t}\n\n\tfunction handleTouchEnd(event: React.TouchEvent<HTMLButtonElement>): void {\n\t\tif ((!disabled || allowPassThrough) && onTouchEnd) onTouchEnd(event);\n\t}\n\n\tfunction handleTouchMove(event: React.TouchEvent<HTMLButtonElement>): void {\n\t\tif ((!disabled || allowPassThrough) && onTouchMove) onTouchMove(event);\n\t}\n\n\treturn (\n\t\t<elements.content\n\t\t\tref={combinedRef}\n\t\t\tclassName={className}\n\t\t\taria-disabled={disabled}\n\t\t\ttabIndex={tabIndex}\n\t\t\tonBlur={handleBlur}\n\t\t\tonClick={handleClick}\n\t\t\tonFocus={handleFocus}\n\t\t\tonKeyDown={handleKeyDown}\n\t\t\tonKeyUp={handleKeyUp}\n\t\t\tonMouseDown={handleMouseDown}\n\t\t\tonMouseMove={handleMouseMove}\n\t\t\tonMouseEnter={handleMouseEnter}\n\t\t\tonMouseLeave={handleMouseLeave}\n\t\t\tonMouseUp={handleMouseUp}\n\t\t\tonTouchEnd={handleTouchEnd}\n\t\t\tonTouchMove={handleTouchMove}\n\t\t\tonTouchStart={handleTouchStart}\n\t\t\tonMouseOver={handleMouseOver}\n\t\t\ttype={type}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</elements.content>\n\t);\n});\n","import { useState, InputHTMLAttributes, forwardRef } from 'react';\nimport styled from 'styled-components';\n\nexport interface VisibaCortexBaseInputProps extends InputHTMLAttributes<HTMLInputElement> {\n\ttype:\n\t\t| 'button'\n\t\t| 'checkbox'\n\t\t| 'color'\n\t\t| 'date'\n\t\t| 'datetime-local'\n\t\t| 'email'\n\t\t| 'file'\n\t\t| 'hidden'\n\t\t| 'image'\n\t\t| 'month'\n\t\t| 'number'\n\t\t| 'password'\n\t\t| 'radio'\n\t\t| 'range'\n\t\t| 'reset'\n\t\t| 'search'\n\t\t| 'submit'\n\t\t| 'tel'\n\t\t| 'text'\n\t\t| 'time'\n\t\t| 'url'\n\t\t| 'week';\n}\n\nconst elements = {\n\tbaseInput: styled.input`\n\t\tdisplay: block;\n\t\tfont: inherit;\n\t\tcolor: currentColor;\n\t\tborder: 0;\n\t\tmargin: 0;\n\t\tpadding: 6px 0 7px;\n\t\tdisplay: block;\n\t\tmin-width: 0;\n\t\tbox-sizing: content-box;\n\t\tbackground: none;\n\t\t-webkit-tap-highlight-color: transparent;\n\t\toutline: none;\n\t\tfont-size: 1rem;\n\t`,\n};\n\n/**\n * # cortex:react-ui-std:comp:BaseInput\n */\nexport const BaseInput = forwardRef<HTMLInputElement, VisibaCortexBaseInputProps>(function BaseInput(props, ref) {\n\tconst {\n\t\t// Takes out these values to be used as variables here.\n\t\tclassName,\n\t\tdisabled,\n\t\ttype,\n\t\t// defaults.\n\t\ttabIndex = 0,\n\t\t// Spreads anything else.\n\t\t...rest\n\t} = props;\n\n\tconst [isFocused, setIsFocus] = useState(false);\n\n\tif (disabled && isFocused) setIsFocus(false);\n\n\treturn (\n\t\t<elements.baseInput\n\t\t\tref={ref}\n\t\t\taria-invalid={true}\n\t\t\taria-describedby={''}\n\t\t\tclassName={className}\n\t\t\tdisabled={disabled}\n\t\t\ttabIndex={disabled ? -1 : tabIndex}\n\t\t\ttype={type}\n\t\t\t{\n\t\t\t\t...(rest as any) /* TODO: REMOVE INJECTION ISSUES */\n\t\t\t}\n\t\t/>\n\t);\n});\n","import { Component, ErrorInfo, ReactNode } from 'react';\nimport { Text, Layout, Spacer } from '@visiba-cortex/react-ui-std';\nimport { Logger } from '@modules/logger/logger';\n\ninterface Props {\n\tchildren?: ReactNode;\n\tfallback?: JSX.Element;\n}\n\ninterface State {\n\terror: Error | null;\n\terrorInfo: ErrorInfo | null;\n\tfallback: JSX.Element | null;\n\thasError: boolean;\n}\n\nfunction NonRecoverableError({ error, errorInfo }: { error: Error | null; errorInfo: ErrorInfo | null }): JSX.Element {\n\treturn (\n\t\t<Layout grow>\n\t\t\t<Text.p>\n\t\t\t\tSomething went wrong\n\t\t\t\t<span role='img' aria-label='test'>\n\t\t\t\t\t🤦‍♂️\n\t\t\t\t</span>\n\t\t\t</Text.p>\n\t\t\t{process.env.NODE_ENV === 'development' && (\n\t\t\t\t<details style={{ whiteSpace: 'pre-wrap' }}>\n\t\t\t\t\t{error && error.toString()}\n\t\t\t\t\t<Spacer height={20} />\n\t\t\t\t\t{errorInfo?.componentStack}\n\t\t\t\t</details>\n\t\t\t)}\n\t\t</Layout>\n\t);\n}\n\n// ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️ ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️\n//\n// It's good to know that the error overlay will still show during development\n// and to this day there's not good way to circumvent it.\n// See: https://github.com/facebook/create-react-app/issues/6530\n//\n// ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️ ⚠️ 🚨 ⚠️ 🚨 ⚠️ 🚨 ⚠️\n\nexport class ErrorBoundary extends Component<Props, State> {\n\tconstructor(props: Props) {\n\t\tsuper(props);\n\n\t\tthis.state = {\n\t\t\terror: null,\n\t\t\terrorInfo: null,\n\t\t\tfallback: props.fallback ?? null,\n\t\t\thasError: false,\n\t\t};\n\t}\n\n\tpublic static getDerivedStateFromError(error: unknown): { hasError: boolean; error: unknown } {\n\t\t// Update state so the next render will show the fallback UI.\n\t\treturn { hasError: true, error };\n\t}\n\n\tcomponentDidCatch(_error: unknown, errorInfo: ErrorInfo): void {\n\t\tif (_error instanceof Promise) {\n\t\t\tLogger.assert(Logger.Level.error, `a promise was thrown, was the component not wrapped in suspense?`);\n\n\t\t\treturn;\n\t\t}\n\n\t\tlet error: Error;\n\t\tlet message: string;\n\t\tif (_error instanceof Error) {\n\t\t\terror = _error;\n\t\t\tmessage = _error.message;\n\t\t} else {\n\t\t\tmessage = `${_error}`;\n\t\t\terror = new Error(message);\n\t\t}\n\n\t\tLogger.assert(Logger.Level.error, message, {\n\t\t\tstackTrace: errorInfo.componentStack,\n\t\t\tdata: {},\n\t\t\ttags: [],\n\t\t\timmediately: true,\n\t\t});\n\n\t\tthis.setState({\n\t\t\terrorInfo,\n\t\t\terror,\n\t\t});\n\t}\n\n\trender(): ReactNode {\n\t\tconst { fallback, errorInfo, error, hasError } = this.state;\n\n\t\tif (hasError && fallback === null) {\n\t\t\treturn <NonRecoverableError error={error} errorInfo={errorInfo} />;\n\t\t} else if (hasError && fallback !== null) {\n\t\t\treturn fallback;\n\t\t}\n\n\t\treturn this.props.children;\n\t}\n}\n","import { useService } from '@visiba-cortex/instantiation';\nimport { ReactNode, SyntheticEvent } from 'react';\nimport { Link } from 'react-router-dom';\nimport { LocationSelectorService } from '@services/location_selector.service';\nimport type { OpenUrlWithKind } from '@api/generated/models';\nimport { useUser } from '@services/auth/use_user';\n\ninterface Props {\n\t__TEMP__on_OPW_WebContentButton_proxy_invoke?: (flexibleIdentifierData: {\n\t\turl: string;\n\t\topenUrlWith: string;\n\t\trequiresAuthentication: boolean;\n\t}) => void;\n\turl: string;\n\trequiresAuthentication: boolean;\n\topenWith: OpenUrlWithKind;\n\tchildren?: ReactNode;\n\tclassName?: string;\n}\n\nexport function Routeable({\n\trequiresAuthentication,\n\turl,\n\tchildren,\n\topenWith,\n\t__TEMP__on_OPW_WebContentButton_proxy_invoke,\n\tclassName,\n}: Props): JSX.Element {\n\tconst locationSelectorService = useService(LocationSelectorService);\n\tconst parsedUrl = openWith === 'IFrame' ? convertUrlToEmbeddedWebLink(locationSelectorService.location.route, url) : url;\n\tconst user = useUser();\n\n\tfunction handleIntercept(event: SyntheticEvent<HTMLAnchorElement>): void {\n\t\tif (__TEMP__on_OPW_WebContentButton_proxy_invoke) {\n\t\t\tevent.preventDefault();\n\n\t\t\t__TEMP__on_OPW_WebContentButton_proxy_invoke?.({\n\t\t\t\turl: openWith === 'IFrame' ? encodeURIComponent(url) : url,\n\t\t\t\topenUrlWith: openWith,\n\t\t\t\trequiresAuthentication: requiresAuthentication,\n\t\t\t});\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (window.__TEMP__overrideNavigation) {\n\t\t\tevent.preventDefault();\n\t\t\twindow.__TEMP__overrideNavigation(parsedUrl);\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (requiresAuthentication && user == null) {\n\t\t\tevent.preventDefault();\n\t\t\t// todo: trigger login modal (not impl)\n\n\t\t\treturn;\n\t\t}\n\t}\n\n\tif (openWith === 'NewTab' && url.includes('http')) {\n\t\treturn (\n\t\t\t<a href={url} onClick={handleIntercept} target='_blank' rel='noreferrer' className={className}>\n\t\t\t\t{children}\n\t\t\t</a>\n\t\t);\n\t}\n\n\tif (openWith === 'SameTab' && url.includes('http')) {\n\t\treturn (\n\t\t\t<a href={parsedUrl} onClick={handleIntercept} className={className}>\n\t\t\t\t{children}\n\t\t\t</a>\n\t\t);\n\t}\n\n\tif (openWith === 'IFrame') {\n\t\tif (window.__TEMP__overrideNavigation || __TEMP__on_OPW_WebContentButton_proxy_invoke) {\n\t\t\treturn (\n\t\t\t\t<a href={parsedUrl} onClick={handleIntercept} className={className}>\n\t\t\t\t\t{children}\n\t\t\t\t</a>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Link to={parsedUrl} onClick={handleIntercept} className={className}>\n\t\t\t\t{children}\n\t\t\t</Link>\n\t\t);\n\t}\n\n\tif (window.__TEMP__overrideNavigation || __TEMP__on_OPW_WebContentButton_proxy_invoke) {\n\t\treturn (\n\t\t\t<a href={url} onClick={handleIntercept} className={className}>\n\t\t\t\t{children}\n\t\t\t</a>\n\t\t);\n\t}\n\n\treturn (\n\t\t<Link to={url} onClick={handleIntercept} className={className}>\n\t\t\t{children}\n\t\t</Link>\n\t);\n}\n\nfunction convertUrlToEmbeddedWebLink(prefix: string, url: string): string {\n\treturn `${prefix}/ew?url=${encodeURIComponent(url)}`;\n}\n","import styled from 'styled-components';\nimport { FlexibleButtonModel } from '@services/flexible_component/mod';\nimport { Routeable } from './_flexible_identifier_routeable.component';\nimport { Text } from '@visiba-cortex/react-ui-std';\nimport { FONT_VARIANT } from '../../constants';\nimport { theme } from '@services/theme.service/theme';\nimport { rem } from '@visiba/std';\n\ninterface Props {\n\tcomponent: FlexibleButtonModel;\n\t__TEMP__overrideNavigation?: (url: string) => void;\n\t__TEMP__on_OPW_WebContentButton_proxy_invoke?: (flexibleIdentifierData: {\n\t\turl: string;\n\t\topenUrlWith: string;\n\t\trequiresAuthentication: boolean;\n\t}) => void;\n}\n\nconst elements = {\n\tbutton: styled.div`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\tbackground: ${theme.primary};\n\t\tborder-radius: ${rem(10)};\n\t\theight: ${rem(64)};\n\t\tpadding: 0 ${rem(16)} 0 ${rem(20)};\n\t\tcolor: #fff;\n\t`,\n};\n\nexport function FlexibleButton({ component, __TEMP__on_OPW_WebContentButton_proxy_invoke }: Props): JSX.Element {\n\treturn (\n\t\t<Routeable\n\t\t\turl={component.url}\n\t\t\trequiresAuthentication={component.requiresAuthentication}\n\t\t\topenWith={component.openUrlWith}\n\t\t\t__TEMP__on_OPW_WebContentButton_proxy_invoke={__TEMP__on_OPW_WebContentButton_proxy_invoke}\n\t\t>\n\t\t\t<elements.button data-testid='FlexibleButton'>\n\t\t\t\t<Text font={FONT_VARIANT.LARGE_BODY}>{component.title}</Text>\n\t\t\t</elements.button>\n\t\t</Routeable>\n\t);\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { Http } from '@visiba-cortex/http';\nimport { HttpService } from './http.service';\n\n/** This service's only purpose is to fetch svg images and return the data */\n@Singleton()\nexport class SvgHttpService {\n\tprivate readonly http = Http.create('visiba-image-http-client');\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\tpublic get(...args: ArgumentTypes<HttpService['http']['get']>): Promise<string> {\n\t\treturn this.http.get<string>(...args).then(({ data }) => data);\n\t}\n}\n","import { motion } from 'framer-motion';\nimport { Suspense, useEffect, useMemo } from 'react';\nimport { rem } from '@visiba/std';\nimport styled from 'styled-components';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { SvgHttpService } from '@services/svg_http.service';\nimport { sanitizedInjectHTML } from '@visiba-cortex/react-ui-std';\nimport { ConcurrentPresentation, Presentation, usePresentation } from '@visiba-cortex/presentation';\nimport { Icon } from './icon.component';\nimport { ErrorBoundary } from './error_boundary.component';\n\ninterface Props {\n\timgSrc: string;\n\tsize: number;\n\toverrideColor?: string;\n}\n\ninterface PresentationModel {\n\tunsafeSvgString: string;\n}\n\nconst elements = {\n\tcontainer: styled.div<{ size: number; overrideColor?: string }>`\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: ${({ size }) => rem(size)};\n\t\theight: ${({ size }) => rem(size)};\n\t\tfont-size: ${({ size }) => rem(size)};\n\n\t\t${({ overrideColor }) => {\n\t\t\tif (!overrideColor) return null;\n\n\t\t\treturn `\n\t\t\t\tcolor: ${overrideColor};\n\t\t\t`;\n\t\t}}\n\n\t\t& svg {\n\t\t\twidth: 1em;\n\t\t\theight: 1em;\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: text-top;\n\t\t\tpointer-events: none;\n\t\t\tfill: currentColor;\n\t\t}\n\t`,\n\tsvgContent: styled(motion.div)`\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t`,\n};\n\nconst REGEX_TO_REMOVE_RANDOM_COLOR_MODIFIERS_IN_A_SVG = /(fill|class|style)=\"(.*?)\"/g;\n\nfunction Inner({ presentation }: { presentation: ConcurrentPresentation<PresentationModel> }): JSX.Element {\n\tconst { unsafeSvgString } = usePresentation(presentation);\n\tconst parsedUnsafeSvgString = unsafeSvgString.replace(REGEX_TO_REMOVE_RANDOM_COLOR_MODIFIERS_IN_A_SVG, '');\n\n\tif (parsedUnsafeSvgString === '') {\n\t\treturn (\n\t\t\t<elements.svgContent data-testid='external_svg_inner' animate={{ opacity: 1 }} initial={{ opacity: 0 }}>\n\t\t\t\t{/* TODO: this should be changed to some defaultish icon, we don't have that yet. [X] like this or something */}\n\t\t\t\t<Icon type='rocket' data-testId='external_svg_error' />\n\t\t\t</elements.svgContent>\n\t\t);\n\t}\n\n\treturn (\n\t\t<elements.svgContent\n\t\t\tdata-testid='external_svg_inner'\n\t\t\tanimate={{ opacity: 1 }}\n\t\t\tinitial={{ opacity: 0 }}\n\t\t\tdangerouslySetInnerHTML={sanitizedInjectHTML(parsedUnsafeSvgString)}\n\t\t/>\n\t);\n}\n\nexport function ExternalSvg({ imgSrc, size, overrideColor }: Props): JSX.Element {\n\tconst visibaImageHttpClientService = useService(SvgHttpService);\n\tconst presentation = useMemo(() => Presentation.createConcurrent<PresentationModel>(), []);\n\n\tuseEffect(() => {\n\t\tpresentation\n\t\t\t.suspend(visibaImageHttpClientService.get(imgSrc), (unsafeSvgString) => ({ unsafeSvgString }))\n\t\t\t.gracefulDegradation(async () => {\n\t\t\t\t// TODO: update the Presentation api in some sense.\n\t\t\t\t// This is typed to return T but it's still being ran through the map\n\t\t\t\t// function, breaking things.\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t\t\treturn '' as any;\n\t\t\t});\n\t}, [imgSrc, presentation, visibaImageHttpClientService]);\n\n\treturn (\n\t\t<elements.container size={size} overrideColor={overrideColor}>\n\t\t\t<ErrorBoundary fallback={<elements.svgContent />}>\n\t\t\t\t<Suspense fallback={<elements.svgContent />}>\n\t\t\t\t\t<Inner presentation={presentation} />\n\t\t\t\t</Suspense>\n\t\t\t</ErrorBoundary>\n\t\t</elements.container>\n\t);\n}\n","import styled from 'styled-components';\nimport { FlexibleButtonIconModel } from '@services/flexible_component/mod';\nimport { ExternalSvg } from '@components/external_svg.component';\nimport { Routeable } from './_flexible_identifier_routeable.component';\nimport { Text, VStack } from '@visiba-cortex/react-ui-std';\nimport { FONT_VARIANT } from '../../constants';\nimport { theme } from '@services/theme.service/theme';\nimport { rem } from '@visiba/std';\nimport { Icon, IconType } from '@components/icon.component';\nimport { tokens } from '@cellula/react-theme-patient';\n\ninterface Props {\n\tcomponent: FlexibleButtonIconModel;\n\t__TEMP__on_OPW_WebContentButton_proxy_invoke?: (flexibleIdentifierData: {\n\t\turl: string;\n\t\topenUrlWith: string;\n\t\trequiresAuthentication: boolean;\n\t}) => void;\n}\n\nconst elements = {\n\tbutton: styled.div`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\tbackground: ${theme.primary};\n\t\tborder-radius: ${rem(10)};\n\t\tmin-height: ${rem(64)};\n\t\tpadding-top: ${tokens.spacing.x2};\n\t\tpadding-bottom: ${tokens.spacing.x2};\n\t\tcolor: #fff;\n\t`,\n\ticon: styled.div`\n\t\tmargin: 0 ${rem(20)};\n\t\twidth: ${rem(24)};\n\t\theight: ${rem(24)};\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tfont-size: ${rem(24)};\n\t\tcolor: #fff;\n\t\tflex-shrink: 0;\n\t`,\n};\n\nexport function FlexibleButtonIcon({ component, __TEMP__on_OPW_WebContentButton_proxy_invoke, ...rest }: Props): JSX.Element {\n\treturn (\n\t\t<Routeable\n\t\t\turl={component.url}\n\t\t\trequiresAuthentication={component.requiresAuthentication}\n\t\t\topenWith={component.openUrlWith}\n\t\t\t__TEMP__on_OPW_WebContentButton_proxy_invoke={__TEMP__on_OPW_WebContentButton_proxy_invoke}\n\t\t\t{...rest}\n\t\t>\n\t\t\t<elements.button data-testid='FlexibleButtonIcon'>\n\t\t\t\t<elements.icon>\n\t\t\t\t\t{component.icon?.type == 'local' ? (\n\t\t\t\t\t\t<Icon type={component.icon.origin as IconType} />\n\t\t\t\t\t) : component.icon?.type == 'svgUrl' ? (\n\t\t\t\t\t\t<ExternalSvg imgSrc={component.icon.origin} size={24} />\n\t\t\t\t\t) : component.icon?.type == 'pngUrl' ? (\n\t\t\t\t\t\t<img src={component.icon.origin} height={24} alt='' />\n\t\t\t\t\t) : null}\n\t\t\t\t</elements.icon>\n\n\t\t\t\t<VStack fluid={false}>\n\t\t\t\t\t<Text font={FONT_VARIANT.LARGE_BODY}>{component.title}</Text>\n\t\t\t\t\t{component.subtitle ? <Text font={FONT_VARIANT.BODY}>{component.subtitle}</Text> : null}\n\t\t\t\t</VStack>\n\t\t\t</elements.button>\n\t\t</Routeable>\n\t);\n}\n","import { FlexibleButtonHyperlinkModel } from '@services/flexible_component/mod';\nimport { Routeable } from './_flexible_identifier_routeable.component';\nimport { Text } from '@visiba-cortex/react-ui-std';\nimport { FONT_VARIANT } from '../../constants';\nimport styled from 'styled-components';\nimport { Icon } from '@components/icon.component';\nimport { rem } from '@visiba/std';\nimport { theme } from '@services/theme.service/theme';\n\ninterface Props {\n\tcomponent: FlexibleButtonHyperlinkModel;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tmargin: ${rem(8)} 0;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tcolor: ${theme.hyperLinkDefault};\n\t\ttransition: color 200ms ease;\n\n\t\t&:hover {\n\t\t\tcolor: ${theme.hyperLinkHover};\n\t\t}\n\t`,\n\tlinkWrapper: styled.div`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t`,\n\ticon: styled.span`\n\t\tmargin-left: ${rem(10)};\n\t`,\n};\n\nexport function FlexibleButtonHyperlink({ component }: Props): JSX.Element {\n\treturn (\n\t\t<elements.container data-testid='FlexibleButtonHyperlink'>\n\t\t\t<Routeable\n\t\t\t\tdata-testid='FlexibleButtonHyperlink'\n\t\t\t\turl={component.url}\n\t\t\t\trequiresAuthentication={component.requiresAuthentication}\n\t\t\t\topenWith={component.openUrlWith}\n\t\t\t>\n\t\t\t\t<elements.linkWrapper>\n\t\t\t\t\t<Text font={FONT_VARIANT.BODY}>{component.title}</Text>\n\t\t\t\t\t<elements.icon aria-hidden='true'>\n\t\t\t\t\t\t<Icon type='arrowRight' center />\n\t\t\t\t\t</elements.icon>\n\t\t\t\t</elements.linkWrapper>\n\t\t\t</Routeable>\n\t\t</elements.container>\n\t);\n}\n","import styled from 'styled-components';\nimport { FlexibleImageModel } from '@services/flexible_component/mod';\nimport { rem } from '@visiba/std';\n\ninterface Props {\n\tcomponent: FlexibleImageModel;\n}\n\nconst elements = {\n\t// We don't want layout shifting during load. Swap the entire thing to an\n\t// <Image /> component once it's available.\n\tcontainer: styled.div<{ width: number; height: number }>`\n\t\twidth: ${({ width }) => width}px;\n\t\theight: ${({ height }) => height}px;\n\t\tflex-shrink: 0;\n\t`,\n\timage: styled.img`\n\t\theight: 100%;\n\t\twidth: 100%;\n\t\tborder-radius: ${rem(16)};\n\t\tobject-fit: cover;\n\t`,\n};\n\nexport function FlexibleImage({ component }: Props): JSX.Element {\n\treturn (\n\t\t<elements.container width={component.imageWidth} height={component.imageHeight}>\n\t\t\t<elements.image\n\t\t\t\tdata-testid='FlexibleImage'\n\t\t\t\tsrc={component.imageUrl}\n\t\t\t\talt={component.altText}\n\t\t\t\theight={component.imageHeight ?? 720}\n\t\t\t\twidth={component.imageWidth ?? 720}\n\t\t\t/>\n\t\t</elements.container>\n\t);\n}\n","import { FlexibleListModel } from '@services/flexible_component/mod';\nimport { VStack, Text } from '@visiba-cortex/react-ui-std';\nimport styled from 'styled-components';\nimport { FONT_VARIANT } from '../../constants';\nimport { FlexibleIdentifier } from './flexible_identifier.component';\n\ninterface Props {\n\tcomponent: FlexibleListModel;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t`,\n};\n\nexport function FlexibleList({ component }: Props): JSX.Element {\n\treturn (\n\t\t<elements.container data-testid='FlexibleList'>\n\t\t\t{component.title && <Text font={FONT_VARIANT.SMALL_BODY}>{component.title}</Text>}\n\t\t\t<VStack>\n\t\t\t\t{component.items.map((item) => (\n\t\t\t\t\t<FlexibleIdentifier key={item.id} component={item} />\n\t\t\t\t))}\n\t\t\t</VStack>\n\t\t</elements.container>\n\t);\n}\n","import { FlexibleListDirectionalModel } from '@services/flexible_component/mod';\nimport { HStack, VStack, Text } from '@visiba-cortex/react-ui-std';\nimport { FlexibleIdentifier } from './flexible_identifier.component';\nimport { FONT_VARIANT } from '../../constants';\nimport styled from 'styled-components';\n\ninterface Props {\n\tcomponent: FlexibleListDirectionalModel;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t`,\n};\n\nexport function FlexibleListDirectional({ component }: Props): JSX.Element {\n\tconst children = component.items.map((item) => <FlexibleIdentifier key={item.id} component={item} />);\n\n\treturn (\n\t\t<elements.container data-testid='FlexibleListDirectional'>\n\t\t\t{component.title && <Text font={FONT_VARIANT.SMALL_BODY}>{component.title}</Text>}\n\t\t\t{component.direction === 'Horizontal' && <HStack>{children}</HStack>}\n\t\t\t{component.direction === 'Vertical' && <VStack>{children}</VStack>}\n\t\t</elements.container>\n\t);\n}\n","import { FlexibleRockBottomModel } from '@services/flexible_component/mod';\n\ninterface Props {\n\tcomponent: FlexibleRockBottomModel;\n}\n\n// const elements = {};\n\nexport function FlexibleRockBottom(_: Props): JSX.Element {\n\treturn <div data-testid='FlexibleRockBottom' />;\n}\n","import styled from 'styled-components';\nimport { FlexibleSearchModel } from '@services/flexible_component/mod';\nimport { rem } from '@visiba/std';\nimport { SearchReceptionComboBox } from '@components/search_reception_combo_box/mod';\nimport { BROWSE_KEY, SearchUnitNode } from '@components/search_reception_combo_box/_common';\nimport { AnalyticCategories, AnalyticService } from '@application/analytic/analytic.service';\nimport { useService } from '@visiba-cortex/instantiation';\n\ninterface Props {\n\tcomponent: FlexibleSearchModel;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tmargin: ${rem(8)} 0;\n\t`,\n};\n\nexport function FlexibleSearch({ component }: Props): JSX.Element {\n\tconst analyticService = useService(AnalyticService);\n\n\tfunction handleOpenChange(isOpen: boolean): void {\n\t\tif (isOpen) {\n\t\t\tanalyticService.trackPageView({\n\t\t\t\tcustomTitle: 'SearchReception',\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction handleNodeSelected(node: SearchUnitNode): void {\n\t\tconst eventAction =\n\t\t\tnode.id === BROWSE_KEY ? 'Clicked to enter browse-view from search-view' : 'Selected a reception from search result';\n\n\t\tanalyticService.trackEvent(AnalyticCategories.SearchReception, eventAction);\n\t}\n\n\treturn (\n\t\t<elements.container data-testid='FlexibleSearch'>\n\t\t\t<SearchReceptionComboBox\n\t\t\t\tplaceholder={component.title}\n\t\t\t\tincludeBrowseInResult={true}\n\t\t\t\tonOpenChange={handleOpenChange}\n\t\t\t\tonNodeSelected={handleNodeSelected}\n\t\t\t/>\n\t\t</elements.container>\n\t);\n}\n","import { rem } from '@visiba/std';\nimport { FlexibleTextModel } from '@services/flexible_component/mod';\nimport { Text } from '@visiba-cortex/react-ui-std';\nimport styled from 'styled-components';\nimport { FONT_VARIANT } from '../../constants';\n\ninterface Props {\n\tcomponent: FlexibleTextModel;\n}\n\nconst domCastingMap = new Map<FONT_VARIANT, 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span'>([\n\t[FONT_VARIANT.SMALL_BODY, 'p'],\n\t[FONT_VARIANT.BODY, 'p'],\n\t[FONT_VARIANT.LARGE_BODY, 'p'],\n\t[FONT_VARIANT.SMALL_TITLE, 'h3'],\n\t[FONT_VARIANT.TITLE, 'h2'],\n]);\n\nconst fontVariantMap = new Map<string, FONT_VARIANT>([\n\t['SmallBody', FONT_VARIANT.SMALL_BODY],\n\t['Body', FONT_VARIANT.BODY],\n\t['LargeBody', FONT_VARIANT.LARGE_BODY],\n\t['SmallTitle', FONT_VARIANT.SMALL_TITLE],\n\t['Title', FONT_VARIANT.TITLE],\n]);\n\nconst fontWeightMap = new Map<string, string>([\n\t['Regular', '400'],\n\t['Semibold', '600'],\n\t['Bold', '700'],\n]);\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tmargin: ${rem(8)} 0;\n\t`,\n};\n\nexport function FlexibleText({ component }: Props): JSX.Element {\n\tconst fontVariant = fontVariantMap.get(component.size) ?? FONT_VARIANT.BODY;\n\tconst domAs = domCastingMap.get(fontVariant) ?? 'span';\n\n\treturn (\n\t\t<elements.container>\n\t\t\t<Text as={domAs} data-testid='FlexibleText' font={fontVariant} fontWeight={fontWeightMap.get(component.weight)}>\n\t\t\t\t{component.value}\n\t\t\t</Text>\n\t\t</elements.container>\n\t);\n}\n","import { rem } from '@visiba/std';\nimport { FlexibleSpacerModel } from '@services/flexible_component/mod';\nimport { Spacer } from '@visiba-cortex/react-ui-std';\n\ninterface Props {\n\tcomponent: FlexibleSpacerModel;\n}\n\nconst spacerValueMap = new Map<string, string>([\n\t['XSmall', rem(8)],\n\t['Small', rem(16)],\n\t['Medium', rem(32)],\n\t['Large', rem(64)],\n\t['XLarge', rem(128)],\n]);\n\nexport function FlexibleSpacer({ component }: Props): JSX.Element {\n\treturn (\n\t\t<Spacer\n\t\t\tdata-testid='FlexibleSpacer'\n\t\t\theight={spacerValueMap.get(component.vertical)}\n\t\t\twidth={spacerValueMap.get(component.horizontal)}\n\t\t></Spacer>\n\t);\n}\n","import { Fragment, Suspense, useEffect } from 'react';\nimport styled from 'styled-components';\nimport { rem } from '@visiba/std';\nimport { Spacer, Text, VStack } from '@visiba-cortex/react-ui-std';\nimport { FONT_VARIANT } from '../../constants';\nimport { Scoped, useService } from '@visiba-cortex/instantiation';\nimport { Presentation, usePresentation } from '@visiba-cortex/presentation';\nimport { Shimmer } from '@components/shimmer.component';\nimport { RecentReceptionsApiService } from '@src/api/recent_receptions_api.service';\nimport { UnitService } from '@services/unit.service';\nimport { VisibaEnvelope } from '@services/http.service';\n\nimport { getAbsoluteRoute } from '@helpers/route';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { theme } from '@services/theme.service/theme';\nimport { Routeable } from './_flexible_identifier_routeable.component';\nimport { Icon, IconType } from '@components/icon.component';\nimport { ExternalSvg } from '@components/external_svg.component';\nimport { HorizontalAlignment, OpenUrlWithKind, ReceptionVisitInput } from '@api/generated/models';\nimport { AuthService } from '@services/auth/auth.service';\nimport { FlexibleButtonIconModel } from '@services/flexible_component/mod';\nimport type { FlexibleRecentVisitsModel } from '@services/flexible_component/mod';\nimport type { Disposer } from '@modules/state/state';\n\ninterface Props {\n\tcomponent: FlexibleRecentVisitsModel;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tmargin: ${rem(8)} 0;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t`,\n\tfixedSizeContainer: styled.div`\n\t\tmin-height: ${rem(136)};\n\t`,\n\tillustrative: styled.div`\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\topacity: 0.3;\n\t\tmargin: ${rem(8)} 0;\n\t\tpadding: 0 25px;\n\t`,\n\tbutton: styled.div`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\tbackground: ${theme.primary};\n\t\tborder-radius: ${rem(10)};\n\t\tmin-height: ${rem(64)};\n\t\tpadding-top: ${tokens.spacing.x2};\n\t\tpadding-bottom: ${tokens.spacing.x2};\n\t\tcolor: #fff;\n\t`,\n\ticon: styled.div`\n\t\tmargin: 0 ${rem(20)};\n\t\twidth: ${rem(24)};\n\t\theight: ${rem(24)};\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tfont-size: ${rem(24)};\n\t\tcolor: #fff;\n\t\tflex-shrink: 0;\n\t`,\n};\n\ninterface InnerProps {\n\tcontroller: Controller;\n}\n\nfunction Inner({ controller }: InnerProps): JSX.Element {\n\tconst presentation = usePresentation(controller.presentation);\n\n\tconst items = presentation.items.map((item) => <FlexibleRecentVisitsButtonIcon key={item.id} component={item} />);\n\n\treturn (\n\t\t<VStack spacing={8}>\n\t\t\t{items.length > 0 ? (\n\t\t\t\titems\n\t\t\t) : (\n\t\t\t\t<elements.illustrative>\n\t\t\t\t\t<Text>{withTranslation('PW.Component.Flexible.RecentVisits.Empty')}</Text>\n\t\t\t\t</elements.illustrative>\n\t\t\t)}\n\t\t</VStack>\n\t);\n}\n\nexport function FlexibleRecentVisits({ component }: Props): JSX.Element {\n\tconst controller = useService(Controller);\n\tconst presentation = usePresentation(controller.presentationAuthState);\n\n\tuseEffect(() => {\n\t\treturn () => {\n\t\t\tcontroller.teardown();\n\t\t};\n\t}, [controller]);\n\n\treturn (\n\t\t<Fragment>\n\t\t\t{presentation.shouldRender ? (\n\t\t\t\t<elements.container data-testid='FlexibleRecentVisits'>\n\t\t\t\t\t<Text font={FONT_VARIANT.SMALL_BODY}>{component.title}</Text>\n\t\t\t\t\t<Spacer height={rem(4)} />\n\n\t\t\t\t\t<elements.fixedSizeContainer>\n\t\t\t\t\t\t<Suspense\n\t\t\t\t\t\t\tfallback={\n\t\t\t\t\t\t\t\t<VStack spacing={8}>\n\t\t\t\t\t\t\t\t\t<Shimmer width={300} height={64} cornerRadius={8} />\n\t\t\t\t\t\t\t\t\t<Shimmer width={300} height={64} cornerRadius={8} opacity={0.6} />\n\t\t\t\t\t\t\t\t</VStack>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Inner controller={controller} />\n\t\t\t\t\t\t</Suspense>\n\t\t\t\t\t</elements.fixedSizeContainer>\n\t\t\t\t</elements.container>\n\t\t\t) : null}\n\t\t</Fragment>\n\t);\n}\n\ninterface FlexibleRecentVisitsButtonIconProps {\n\tcomponent: FlexibleButtonIconModel;\n\t__TEMP__overrideNavigation?: (url: string) => void;\n}\n\nfunction FlexibleRecentVisitsButtonIcon({\n\tcomponent,\n\t__TEMP__overrideNavigation,\n\t...rest\n}: FlexibleRecentVisitsButtonIconProps): JSX.Element {\n\treturn (\n\t\t<Routeable\n\t\t\turl={component.url}\n\t\t\trequiresAuthentication={component.requiresAuthentication}\n\t\t\topenWith={component.openUrlWith}\n\t\t\t{...rest}\n\t\t>\n\t\t\t<elements.button data-testid='FlexibleButtonIcon'>\n\t\t\t\t<elements.icon>\n\t\t\t\t\t{component.icon?.type == 'local' ? (\n\t\t\t\t\t\t<Icon type={component.icon.origin as IconType} />\n\t\t\t\t\t) : component.icon?.type == 'svgUrl' ? (\n\t\t\t\t\t\t<ExternalSvg imgSrc={component.icon.origin} size={24} />\n\t\t\t\t\t) : component.icon?.type == 'pngUrl' ? (\n\t\t\t\t\t\t<img src={component.icon.origin} height={24} alt='' />\n\t\t\t\t\t) : null}\n\t\t\t\t</elements.icon>\n\n\t\t\t\t<VStack fluid={false}>\n\t\t\t\t\t<Text font={FONT_VARIANT.LARGE_BODY}>{component.title}</Text>\n\t\t\t\t\t{component.subtitle ? <Text font={FONT_VARIANT.BODY}>{component.subtitle}</Text> : null}\n\t\t\t\t</VStack>\n\t\t\t</elements.button>\n\t\t</Routeable>\n\t);\n}\n\ninterface Presentation {\n\titems: FlexibleButtonIconModel[];\n}\n\n@Scoped()\nclass Controller {\n\tpublic readonly presentationAuthState = Presentation.create({\n\t\tshouldRender: true,\n\t});\n\tpublic readonly presentation = Presentation.createConcurrent<Presentation>();\n\tprivate authStateDisposer: Disposer | null = null;\n\n\tconstructor(\n\t\tprivate readonly recentReceptionsApiService: RecentReceptionsApiService,\n\t\tprivate readonly unitService: UnitService,\n\t\tprivate readonly authService: AuthService,\n\t) {\n\t\tthis.load();\n\n\t\tthis.authStateDisposer = this.authService.events.on('onSuccessfulAuthentication', () => {\n\t\t\tthis.load();\n\t\t});\n\t}\n\n\tpublic teardown(): void {\n\t\tif (this.authStateDisposer) {\n\t\t\tthis.authStateDisposer();\n\t\t\tthis.authStateDisposer = null;\n\t\t}\n\t}\n\n\tprivate load(): void {\n\t\tif (this.authService.isAuthenticated()) {\n\t\t\tthis.presentation\n\t\t\t\t.suspend(this.recentReceptionsApiService.getRecentlyVisited(2), this.parseBackendData.bind(this))\n\t\t\t\t.gracefulDegradation(() => {\n\t\t\t\t\t// TODO: This is not typed as it should be\n\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t\t\t\treturn Promise.resolve<any>({\n\t\t\t\t\t\tdata: [].filter(Boolean),\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\tthis.presentationAuthState.write({ shouldRender: true });\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.presentationAuthState.write({ shouldRender: false });\n\t}\n\n\tprivate parseBackendData({ data }: VisibaEnvelope<ReceptionVisitInput[]>): Presentation {\n\t\treturn {\n\t\t\titems: data\n\t\t\t\t.map(({ ReceptionId }) => {\n\t\t\t\t\tconst units = Array.from(this.unitService.units.values());\n\t\t\t\t\tconst unit = units.find(({ receptionId }) => receptionId === ReceptionId);\n\n\t\t\t\t\tif (unit == null) return null;\n\n\t\t\t\t\treturn new FlexibleButtonIconModel({\n\t\t\t\t\t\tid: ReceptionId,\n\t\t\t\t\t\torder: -1,\n\t\t\t\t\t\ttitle: unit.name,\n\t\t\t\t\t\tsubtitle: '',\n\t\t\t\t\t\turl: getAbsoluteRoute(unit.route),\n\t\t\t\t\t\topenUrlWith: OpenUrlWithKind.SameTab,\n\t\t\t\t\t\thorizontalAlignment: HorizontalAlignment.End,\n\t\t\t\t\t\ticon: {\n\t\t\t\t\t\t\torigin: 'home2',\n\t\t\t\t\t\t\ttype: 'local',\n\t\t\t\t\t\t},\n\t\t\t\t\t\thasBrandedNavbar: false,\n\t\t\t\t\t\topenAnotherApp: false,\n\t\t\t\t\t\trequiresAuthentication: false,\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t\t.filter(Boolean) as FlexibleButtonIconModel[],\n\t\t};\n\t}\n}\n","import { HeadlessButton, Icon, Text } from '@cellula/react';\nimport { primitiveColorTokens, tokens } from '@cellula/react-theme-patient';\nimport styled, { css } from 'styled-components';\n\ntype Variants = 'slim' | 'chunky';\n\ninterface ActionCardProps {\n\ttitle: string;\n\tsubTitle?: string;\n\tonClick?: () => void;\n\ticon?: JSX.Element;\n\tvariant?: Variants;\n\tisStatic?: boolean;\n\thasBorder?: boolean;\n\thideArrow?: boolean;\n\tdisabled?: boolean;\n}\n\nconst elements = {\n\tcontainer: styled(HeadlessButton)`\n\t\tdisplay: flex;\n\t\tjustify-content: flex-start;\n\t\talign-items: center;\n\t\toverflow: hidden;\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\tborder-radius: 12px;\n\t\tpadding: 8px 0;\n\t\tborder: 1px solid ${tokens.color.border.muted};\n\t\tbox-shadow: ${tokens.elevation.skim};\n\t\ttransition: box-shadow 150ms ease-in;\n\t\tcolor: ${tokens.color.content.default};\n\t\theight: 100%;\n\t\tbackground: #fff;\n\n\t\t&:hover {\n\t\t\ttransition: box-shadow 50ms;\n\t\t\tbox-shadow: ${tokens.elevation.lifted};\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:disabled,\n\t\t&[data-disabled='true'] {\n\t\t\tbox-shadow: none;\n\t\t\topacity: 0.6;\n\t\t\tcursor: not-allowed;\n\t\t}\n\n\t\t&::after {\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\tinset: 0;\n\t\t\tbackground-color: ${primitiveColorTokens.primary[100]};\n\t\t\tz-index: -1;\n\t\t\topacity: 0.4;\n\t\t}\n\n\t\t&[data-focus='true'] {\n\t\t\toutline: 2px solid ${tokens.color.focus};\n\t\t\toutline-offset: 2px;\n\t\t}\n\t`,\n\ticonContainer: styled.div<{ variant: Variants }>`\n\t\tdisplay: flex;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tbottom: 0;\n\t\twidth: ${tokens.size.x7};\n\t\tcolor: ${tokens.color.content.mutedBrand};\n\t\tbackground-color: ${tokens.color.bg.surfaceBrand};\n\t\tjustify-content: center;\n\n\t\t${({ variant }) => {\n\t\t\tif (variant === 'chunky') {\n\t\t\t\treturn css`\n\t\t\t\t\tpadding: ${tokens.size.x1_5} ${tokens.size.x1_5} ${tokens.size.x9} ${tokens.size.x1_5};\n\t\t\t\t`;\n\t\t\t}\n\n\t\t\treturn css`\n\t\t\t\talign-items: center;\n\t\t\t\tpadding: ${tokens.size.x2_5} ${tokens.size.x1_5};\n\t\t\t`;\n\t\t}};\n\t`,\n\tarrowContainer: styled.div<{ variant: Variants }>`\n\t\tcolor: ${tokens.color.content.muted};\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\talign-items: flex-end;\n\t\tpadding: ${tokens.spacing.x1_5};\n\t\tflex-shrink: 0;\n\t\talign-self: ${({ variant }) => (variant === 'chunky' ? 'flex-end' : 'center')};\n\t\tpadding: ${({ variant }) =>\n\t\t\tvariant === 'chunky' ? `${tokens.size.x9} ${tokens.size.x1_5} ${tokens.size.x1_5} 0` : `${tokens.size.x1_5} `};\n\t`,\n\tactionTextContainer: styled.div<{ variant: Variants }>`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: ${tokens.spacing.x1};\n\t\tflex-grow: 1;\n\t\talign-items: start;\n\t\ttext-align: left;\n\t\tpadding: ${tokens.spacing.x1_5} 0 ${tokens.spacing.x1_5} ${tokens.spacing.x2};\n\t\talign-self: ${({ variant }) => (variant === 'chunky' ? 'flex-start' : 'unset')};\n\n\t\t&[data-has-icon='true'] {\n\t\t\tpadding-left: calc(${tokens.size.x8} + ${tokens.spacing.x1});\n\t\t}\n\t`,\n};\n\nexport function ActionCard({\n\ttitle,\n\tsubTitle,\n\ticon,\n\tonClick,\n\thideArrow,\n\tisStatic = false,\n\tvariant = 'slim',\n\tdisabled = false,\n\t...rest\n}: ActionCardProps): JSX.Element {\n\tfunction handleOnClick(): void {\n\t\tif (disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tonClick?.();\n\t}\n\n\treturn (\n\t\t<elements.container\n\t\t\tas={isStatic ? 'div' : undefined}\n\t\t\tdata-focus={isStatic ? false : undefined}\n\t\t\tdata-disabled={disabled ?? undefined}\n\t\t\tonClick={handleOnClick}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{icon ? <elements.iconContainer variant={variant}>{icon}</elements.iconContainer> : null}\n\n\t\t\t<elements.actionTextContainer variant={variant} data-has-icon={icon != undefined}>\n\t\t\t\t<Text variant='labelLargeSemiBold'>{title}</Text>\n\t\t\t\t{subTitle ? (\n\t\t\t\t\t<Text\n\t\t\t\t\t\tvariant='bodyRegular'\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\tcolor: tokens.color.content.muted,\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{subTitle}\n\t\t\t\t\t</Text>\n\t\t\t\t) : null}\n\t\t\t</elements.actionTextContainer>\n\n\t\t\t{!hideArrow ? (\n\t\t\t\t<elements.arrowContainer variant={variant}>\n\t\t\t\t\t<Icon type='arrowRight' size='small' />\n\t\t\t\t</elements.arrowContainer>\n\t\t\t) : null}\n\t\t</elements.container>\n\t);\n}\n","import { FlexibleButtonIconModel } from '@services/flexible_component/mod';\nimport { ExternalSvg } from '@components/external_svg.component';\nimport { Routeable } from './_flexible_identifier_routeable.component';\nimport { ActionCard } from '@components/action_card.component';\nimport { Icon, IconDictionary } from '@cellula/react';\nimport { ErrorBoundary } from '@components/error_boundary.component';\nimport { Fragment } from 'react';\nimport { BreakPoints, useBreakpoint } from '@cellula/react';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { AnalyticService } from '@application/analytic/analytic.service';\nimport { useAnalyticContext } from '@components/analytic_link/analytic_link.provider';\n\ninterface Props {\n\tcomponent: FlexibleButtonIconModel;\n\t__TEMP__on_OPW_WebContentButton_proxy_invoke?: (flexibleIdentifierData: {\n\t\turl: string;\n\t\topenUrlWith: string;\n\t\trequiresAuthentication: boolean;\n\t}) => void;\n}\n\nfunction getIcon(icon: NonNullable<FlexibleButtonIconModel['icon']>): JSX.Element {\n\tswitch (icon.type) {\n\t\tcase 'local':\n\t\t\treturn (\n\t\t\t\t<ErrorBoundary fallback={<Fragment />}>\n\t\t\t\t\t<Icon size='small' type={icon.origin as keyof IconDictionary} />\n\t\t\t\t</ErrorBoundary>\n\t\t\t);\n\t\tcase 'svgUrl':\n\t\t\treturn <ExternalSvg imgSrc={icon.origin} size={32} />;\n\t\tcase 'pngUrl':\n\t\t\treturn <img src={icon.origin} height={32} alt='' />;\n\t\tdefault: {\n\t\t\tconst shouldNeverHappen: never = icon.type;\n\n\t\t\treturn shouldNeverHappen;\n\t\t}\n\t}\n}\n\nexport function FlexibleActionCard({ component, __TEMP__on_OPW_WebContentButton_proxy_invoke, ...rest }: Props): JSX.Element {\n\tconst iconElement = component.icon != null ? getIcon(component.icon) : undefined;\n\tconst breakpoint = useBreakpoint();\n\tconst analyticService = useService(AnalyticService);\n\tconst analyticContext = useAnalyticContext();\n\n\tfunction analyticQuirk_handleButtonClick(): void {\n\t\t// If the url was not parsed through \"hostnameIsWithinSameDomain\"\n\t\t// (within flexible_component.service), it'll not be an absolute.\n\t\t// And if it's not absolute it should count as an external button.\n\t\tif (component.openUrlWith !== 'SameTab' || component.url.includes('http')) {\n\t\t\tanalyticService.trackEvent(analyticContext, `Clicked: External button`);\n\n\t\t\treturn;\n\t\t}\n\n\t\tlet type: 'booking' | 'messaging' | 'drop-in' | 'red-robin' | 'unknown';\n\t\tif (/\\/booking/i.test(component.url)) {\n\t\t\ttype = 'booking';\n\t\t} else if (/\\/message/i.test(component.url)) {\n\t\t\ttype = 'messaging';\n\t\t} else if (/\\/dropin/i.test(component.url)) {\n\t\t\ttype = 'drop-in';\n\t\t} else {\n\t\t\ttype = 'unknown';\n\t\t}\n\t\tanalyticService.trackEvent(analyticContext, `Clicked: button ${type}`);\n\t}\n\n\treturn (\n\t\t<Routeable\n\t\t\t__TEMP__on_OPW_WebContentButton_proxy_invoke={__TEMP__on_OPW_WebContentButton_proxy_invoke}\n\t\t\turl={component.url}\n\t\t\trequiresAuthentication={component.requiresAuthentication}\n\t\t\topenWith={component.openUrlWith}\n\t\t\t{...rest}\n\t\t>\n\t\t\t<ActionCard\n\t\t\t\tdata-testid='FlexibleActionCard'\n\t\t\t\tvariant={breakpoint === BreakPoints.Small ? 'slim' : 'chunky'}\n\t\t\t\ttitle={component.title}\n\t\t\t\ticon={iconElement}\n\t\t\t\tsubTitle={component.subtitle}\n\t\t\t\tisStatic\n\t\t\t\tonClick={analyticQuirk_handleButtonClick}\n\t\t\t/>\n\t\t</Routeable>\n\t);\n}\n","import {\n\tComponentUnion,\n\tFlexibleButtonModel,\n\tFlexibleButtonHyperlinkModel,\n\tFlexibleButtonIconModel,\n\tFlexibleImageModel,\n\tFlexibleListModel,\n\tFlexibleListDirectionalModel,\n\tFlexibleSearchModel,\n\tFlexibleTextModel,\n\tFlexibleSpacerModel,\n\tFlexibleRecentVisitsModel,\n\tFlexibleActionCardModel,\n} from '@services/flexible_component/mod';\n\nimport { FlexibleButton } from './flexible_identifier_flexible_button.component';\nimport { FlexibleButtonIcon } from './flexible_identifier_flexible_button_icon.component';\nimport { FlexibleButtonHyperlink } from './flexible_identifier_flexible_button_hyperlink.component';\nimport { FlexibleImage } from './flexible_identifier_flexible_image.component';\nimport { FlexibleList } from './flexible_identifier_flexible_list.component';\nimport { FlexibleListDirectional } from './flexible_identifier_flexible_list_directional.component';\nimport { FlexibleRockBottom } from './flexible_identifier_flexible_rock_bottom.component';\nimport { FlexibleSearch } from './flexible_identifier_flexible_search.component';\nimport { FlexibleText } from './flexible_identifier_flexible_text.component';\nimport { FlexibleSpacer } from './flexible_identifier_flexible_spacer.component';\nimport { FlexibleRecentVisits } from './flexible_identifier_flexible_recent_visits.component';\nimport { FlexibleActionCard } from './flexible_identifier_flexible_action_card.component';\n\ninterface Props {\n\tcomponent: ComponentUnion;\n\t__TEMP__on_OPW_WebContentButton_proxy_invoke?: (flexibleIdentifierData: {\n\t\turl: string;\n\t\topenUrlWith: string;\n\t\trequiresAuthentication: boolean;\n\t}) => void;\n}\n\nexport function FlexibleIdentifier({ component, __TEMP__on_OPW_WebContentButton_proxy_invoke }: Props): JSX.Element {\n\tif (component instanceof FlexibleButtonIconModel) {\n\t\treturn (\n\t\t\t<FlexibleButtonIcon\n\t\t\t\tcomponent={component}\n\t\t\t\t__TEMP__on_OPW_WebContentButton_proxy_invoke={__TEMP__on_OPW_WebContentButton_proxy_invoke}\n\t\t\t/>\n\t\t);\n\t}\n\n\tif (component instanceof FlexibleButtonModel) {\n\t\treturn (\n\t\t\t<FlexibleButton\n\t\t\t\tcomponent={component}\n\t\t\t\t__TEMP__on_OPW_WebContentButton_proxy_invoke={__TEMP__on_OPW_WebContentButton_proxy_invoke}\n\t\t\t/>\n\t\t);\n\t}\n\n\tif (component instanceof FlexibleButtonHyperlinkModel) {\n\t\treturn <FlexibleButtonHyperlink component={component} />;\n\t}\n\n\tif (component instanceof FlexibleImageModel) {\n\t\treturn <FlexibleImage component={component} />;\n\t}\n\n\tif (component instanceof FlexibleListModel) {\n\t\treturn <FlexibleList component={component} />;\n\t}\n\tif (component instanceof FlexibleListDirectionalModel) {\n\t\treturn <FlexibleListDirectional component={component} />;\n\t}\n\n\tif (component instanceof FlexibleTextModel) {\n\t\treturn <FlexibleText component={component} />;\n\t}\n\tif (component instanceof FlexibleSearchModel) {\n\t\treturn <FlexibleSearch component={component} />;\n\t}\n\n\tif (component instanceof FlexibleSpacerModel) {\n\t\treturn <FlexibleSpacer component={component} />;\n\t}\n\n\tif (component instanceof FlexibleRecentVisitsModel) {\n\t\treturn <FlexibleRecentVisits component={component} />;\n\t}\n\n\tif (component instanceof FlexibleActionCardModel) {\n\t\treturn (\n\t\t\t<FlexibleActionCard\n\t\t\t\tcomponent={component}\n\t\t\t\t__TEMP__on_OPW_WebContentButton_proxy_invoke={__TEMP__on_OPW_WebContentButton_proxy_invoke}\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn <FlexibleRockBottom component={component} />;\n}\n","import { BaseIcon, dangerouslyInjectHTML, VisibaCortexBaseIconProps } from '@visiba-cortex/react-ui-std';\nimport styled from 'styled-components';\nimport loadedIconSet from '../_visiba_icon_set.json'; // 👉 ⚠ ⚠ ⚠ run \"$ pnpm loadIconSet\" if this module is not found ⚠ ⚠ ⚠\nimport { ErrorBoundary } from './error_boundary.component';\n\ninterface Dictionary {\n\trocket: string;\n\tarrowRight: string;\n\tglobe: string;\n\tletter: string;\n\tavatar: string;\n\tavatars: string;\n\tcross: string;\n\tsendMessageArrow: string;\n\tconsultation: string;\n\tunits: string;\n\tunits_filled: string;\n\thome: string;\n\thome_filled: string;\n\tmessagingHistory: string;\n\tcalendar: string;\n\tqueue: string;\n\tsettings_filled: string;\n\tsettings_outline: string;\n\tvisits: string;\n\tvisits_filled: string;\n\tmail: string;\n\teva_globe: string;\n\tsearch: string;\n\thome2: string;\n\tbuilding: string;\n\tnoConnection: string;\n\tmicrophoneDisabled: string;\n\tmicrophoneEnabled: string;\n\tvideoDisabled: string;\n\tvideoEnabled: string;\n\tphone: string;\n\tphoneError: string;\n\tsoundDisabled: string;\n\tsoundEnabled: string;\n\twarning: string;\n\tphone_warning: string;\n\tchat: string;\n\tscreenShare: string;\n\tRR_man: string;\n\tRR_myself: string;\n\tvolumeMeter: string;\n\tzoomIn: string;\n\tzoomOut: string;\n\thand: string;\n\tsendAttachment: string;\n\tdownloadFile: string;\n\tarrowLeft: string;\n\tnonPicFile: string;\n\tunknownFileType: string;\n\tarrow_right: string;\n\tattentionCardArrow: string;\n\tmessaging: string;\n\talertive: string;\n\talertiveCreditCard: string;\n\tform: string;\n\tclock: string;\n\terror: string;\n\tfile_blank: string;\n\tfile_excel: string;\n\tfile_pdf: string;\n\tfile_unknown: string;\n\tfile_word: string;\n\tfile_error: string;\n\tfile_download__error: string;\n\tfile_download__success: string;\n\tcheck: string;\n\tgridView: string;\n\tspeakerView: string;\n\tdots: string;\n\tscrollToTopArrow: string;\n\tminimize: string;\n\tmaximize: string;\n\tarrowDown: string;\n\tarrowUp: string;\n\tremove_call_participant: string;\n\tremove_call_participant_grey: string;\n\tcalendar_noPickedDate: string;\n\temail: string;\n\tphone_phoneNumber: string;\n\tauthenticated_way: string;\n\trepresentative: string;\n\thourglass: string;\n\ttimeClock: string;\n\tpinFilled: string;\n\tpinOutlined: string;\n\tunpinOutlined: string;\n\tinformation: string;\n}\n\ntype IconMap = {\n\t[key in keyof Dictionary]: {\n\t\tinnerHTML: string;\n\t\tviewBox: string;\n\t};\n};\n\nexport type IconType = keyof Dictionary;\n\ninterface Props extends Omit<VisibaCortexBaseIconProps, 'viewBox'> {\n\t/**\n\t * Name of the icon do be displayed\n\t */\n\ttype: IconType;\n}\n\nconst iconMap = loadedIconSet as unknown as IconMap;\n\nconst elements = {\n\tfallback: styled.span`\n\t\twidth: 1em;\n\t\theight: 1em;\n\t\tflex-shrink: 0;\n\t`,\n};\n\n/**\n * Icon component for all icons used\n */\nexport function Icon({ type, ...rest }: Props): JSX.Element {\n\treturn (\n\t\t<ErrorBoundary fallback={<elements.fallback>⚠</elements.fallback>}>\n\t\t\t<BaseIcon {...rest} viewBox={iconMap[type].viewBox} dangerouslySetInnerHTML={dangerouslyInjectHTML(iconMap[type].innerHTML)} />\n\t\t</ErrorBoundary>\n\t);\n}\n","import { tokens } from '@cellula/react-theme-patient';\nimport styled from 'styled-components';\nimport { Fragment, ReactNode } from 'react';\nimport { HTTP_FILE_PATTERN, MAILTO_PATTERN, WWW_PATTERN } from '../../src/constants';\ninterface Props {\n\ttext: string;\n\tlinkElement?: (url: string, text: string) => ReactNode;\n}\n\nconst elements = {\n\tmessageAnchorTag: styled.a`\n\t\tcolor: ${tokens.color.content.interactive};\n\t\ttransition: text-decoration 200ms;\n\n\t\t&:hover {\n\t\t\tcolor: ${tokens.color.content.interactive};\n\t\t\ttext-decoration: underline;\n\t\t}\n\t`,\n};\n\nexport function LinkInMessage({ text, linkElement, ...rest }: Props): JSX.Element {\n\tlet finalText;\n\tconst hasHTTPS = HTTP_FILE_PATTERN.test(text);\n\tconst hasWWW = WWW_PATTERN.test(text);\n\tif (!hasHTTPS && !hasWWW) {\n\t\tfinalText = text;\n\t} else {\n\t\tconst splitRegEx = /([^\\s]+)/g;\n\t\tlet linkUrl = '',\n\t\t\tlinkText = '';\n\t\t//divides the text to sections, then goes through every section and looks for link patterns to replace it with the given link/anchor tag component\n\t\tfinalText = text.split(splitRegEx).map((current) => {\n\t\t\tif (HTTP_FILE_PATTERN.test(current) || MAILTO_PATTERN.test(current)) {\n\t\t\t\tlinkUrl = current;\n\t\t\t\tlinkText = current;\n\t\t\t} else if (WWW_PATTERN.test(current)) {\n\t\t\t\tlinkUrl = 'https://' + current;\n\t\t\t\tlinkText = current;\n\t\t\t} else {\n\t\t\t\treturn current;\n\t\t\t}\n\t\t\tconst formattedText =\n\t\t\t\tlinkElement != null ? linkElement(linkUrl, linkText) : <DefaultLinkElement url={linkUrl} text={linkText} {...rest} />;\n\n\t\t\treturn formattedText;\n\t\t});\n\t}\n\n\treturn <Fragment>{finalText}</Fragment>;\n}\n\ninterface defaultLinkProps {\n\turl: string;\n\ttext: string;\n}\n\nfunction DefaultLinkElement({ url, text, ...rest }: defaultLinkProps): JSX.Element {\n\treturn (\n\t\t<elements.messageAnchorTag href={url} target='_blank' rel='noreferrer' {...rest}>\n\t\t\t{text}\n\t\t</elements.messageAnchorTag>\n\t);\n}\n","import { Logger } from '@modules/logger/logger';\nimport { Singleton } from '@visiba-cortex/instantiation';\nimport { sanitizedInjectHTML } from '@visiba-cortex/react-ui-std';\nimport { delay, Timer } from '@visiba/std';\nimport { v4 } from 'uuid';\n\nexport type Assertiveness = 'polite' | 'assertive';\n\ninterface AnnounceMessage {\n\tid: string;\n\tassertiveness: Assertiveness;\n\tmessage: string;\n\tabortController: AbortController;\n}\n\n@Singleton()\nexport class LiveAnnouncerController {\n\tpublic politeContainer: HTMLDivElement;\n\tpublic assertiveContainer: HTMLDivElement;\n\tprivate queueIsRunning = false;\n\tprivate clearMessageTimeout = new Timer();\n\tprivate announceMessageQueue: AnnounceMessage[] = [];\n\tprivate lastElement: HTMLElement | null = null;\n\n\tconstructor() {\n\t\tthis.politeContainer = this.createElement('polite');\n\t\tthis.assertiveContainer = this.createElement('assertive');\n\t}\n\n\tpublic announce(message: string, assertiveness: Assertiveness = 'polite'): RemoveThisMessageFromDom {\n\t\tconst announceMessage: AnnounceMessage = {\n\t\t\tid: v4(),\n\t\t\tassertiveness,\n\t\t\tmessage,\n\t\t\tabortController: new AbortController(),\n\t\t};\n\t\tthis.announceMessageQueue.push(announceMessage);\n\n\t\tthis.render();\n\n\t\treturn () => {\n\t\t\tannounceMessage.abortController.abort();\n\t\t\tthis.removeMessageIfExisting(announceMessage.id);\n\t\t};\n\t}\n\n\tpublic getContainer(assertiveness: Assertiveness): HTMLElement {\n\t\treturn assertiveness === 'assertive' ? this.assertiveContainer : this.politeContainer;\n\t}\n\n\tprivate async render(): Promise<void> {\n\t\tif (this.queueIsRunning) return;\n\n\t\tthis.queueIsRunning = true;\n\t\tthis.clearMessageTimeout.flush();\n\n\t\tdo {\n\t\t\tthis.lastElement?.remove();\n\n\t\t\tconst currentMessage = this.announceMessageQueue.shift();\n\t\t\tif (currentMessage == null) break;\n\n\t\t\tif (currentMessage.abortController.signal.aborted) {\n\t\t\t\tthis.removeMessageIfExisting(currentMessage.id);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst container = this.getContainer(currentMessage.assertiveness);\n\n\t\t\tconst wrapper = document.createElement('div');\n\n\t\t\twrapper.innerHTML = sanitizedInjectHTML(currentMessage.message).__html;\n\t\t\twrapper.setAttribute('data-id', currentMessage.id);\n\t\t\tthis.lastElement = wrapper;\n\n\t\t\tcontainer.appendChild(wrapper);\n\t\t\tLogger.assert(Logger.Level.verbose, `[LiveAnnouncer][${currentMessage.assertiveness}] ${currentMessage.message}`);\n\n\t\t\t// Delay the next message so screen readers have time to perceive the change\n\t\t\tawait delay(100);\n\t\t} while (this.announceMessageQueue.length !== 0);\n\n\t\t// Once settle clear message after a timeout so there are no messages\n\t\t// that could be read later.\n\t\tthis.queueIsRunning = false;\n\t}\n\n\tprivate createElement(assertiveness: Assertiveness): HTMLDivElement {\n\t\tconst element = document.createElement('div');\n\n\t\telement.setAttribute('role', assertiveness === 'polite' ? 'log' : 'log');\n\t\telement.setAttribute('aria-live', assertiveness);\n\t\telement.setAttribute('aria-relevant', 'additions');\n\n\t\telement.style.border = '0';\n\t\telement.style.clip = 'rect(1px, 1px, 1px, 1px)';\n\t\telement.style.clipPath = 'inset(50%)';\n\t\telement.style.height = '1px';\n\t\telement.style.margin = '-1px';\n\t\telement.style.overflow = 'hidden';\n\t\telement.style.padding = '0';\n\t\telement.style.position = 'absolute';\n\t\telement.style.width = '1px';\n\t\telement.style.wordWrap = 'normal !important';\n\n\t\tdocument.body.appendChild(element);\n\n\t\treturn element;\n\t}\n\n\tprivate removeMessageIfExisting(id: string): void {\n\t\tconst query = `[data-id=\"${id}\"]`;\n\t\tconst element = this.politeContainer.querySelector(query) ?? this.politeContainer.querySelector(query);\n\t\telement?.remove();\n\t}\n}\n\ntype RemoveThisMessageFromDom = () => void;\n","import styled, { css } from 'styled-components';\nimport { forwardRef, useCallback, useEffect, useRef, useState } from 'react';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport { NotificationService } from '@services/notification.service/mod';\nimport { Timer } from '@visiba/std';\nimport { tokens } from '@cellula/react-theme-patient';\nimport { Text } from '@visiba-cortex/react-ui-std';\nimport { IconButton, Icon } from '@cellula/react';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport type { LocalPushNotification, Variants } from '@services/notification.service/local_push_notification';\n\ninterface Props {}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tposition: fixed;\n\t\tright: 0;\n\t\tbottom: ${tokens.spacing.x2};\n\t\tz-index: 2;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tpointer-events: none;\n\t\twidth: 100%;\n\n\t\t${tokens.breakpointQuery.medium} {\n\t\t\tright: 20px;\n\t\t\twidth: 448px;\n\t\t}\n\t`,\n\tlist: styled.ol`\n\t\tall: unset;\n\t`,\n\tlistItem: styled(motion.li)<{ variant: Variants }>`\n\t\t${({ variant }) => {\n\t\t\tswitch (variant) {\n\t\t\t\tcase 'danger': {\n\t\t\t\t\treturn css`\n\t\t\t\t\t\t--_background: ${tokens.color.danger.bg};\n\t\t\t\t\t\t--_border: ${tokens.color.danger.border};\n\t\t\t\t\t\t--_color: ${tokens.color.danger.content};\n\t\t\t\t\t\t--_iconColor: ${tokens.color.danger.contentMuted};\n\t\t\t\t\t`;\n\t\t\t\t}\n\t\t\t\tcase 'info':\n\t\t\t\t\treturn css`\n\t\t\t\t\t\t--_background: ${tokens.color.info.bg};\n\t\t\t\t\t\t--_border: ${tokens.color.info.border};\n\t\t\t\t\t\t--_color: ${tokens.color.info.content};\n\t\t\t\t\t\t--_iconColor: ${tokens.color.info.contentMuted};\n\t\t\t\t\t`;\n\t\t\t\tcase 'success': {\n\t\t\t\t\treturn css`\n\t\t\t\t\t\t--_background: ${tokens.color.success.bg};\n\t\t\t\t\t\t--_border: ${tokens.color.success.border};\n\t\t\t\t\t\t--_color: ${tokens.color.success.content};\n\t\t\t\t\t\t--_iconColor: ${tokens.color.success.contentMuted};\n\t\t\t\t\t`;\n\t\t\t\t}\n\t\t\t\tcase 'warning': {\n\t\t\t\t\treturn css`\n\t\t\t\t\t\t--_background: ${tokens.color.warning.bg};\n\t\t\t\t\t\t--_border: ${tokens.color.warning.border};\n\t\t\t\t\t\t--_color: ${tokens.color.warning.content};\n\t\t\t\t\t\t--_iconColor: ${tokens.color.warning.contentMuted};\n\t\t\t\t\t`;\n\t\t\t\t}\n\t\t\t}\n\t\t}}\n\n\t\tmargin: 10px;\n\t\tpointer-events: all;\n\t\tdisplay: flex;\n\t\tbackground-color: var(--_background);\n\t\tborder: 1px solid var(--_border);\n\t\tcolor: var(--_content);\n\t\tpadding: ${tokens.spacing.x2};\n\t\tgap: ${tokens.spacing.x2};\n\t\tborder-radius: ${tokens.borderRadius.medium};\n\t\twidth: inherit;\n\t\tbox-shadow: ${tokens.elevation.floating};\n\t`,\n\ttext: styled.div`\n\t\tdisplay: flex;\n\t\tflex: 1;\n\t\tflex-direction: column;\n\t`,\n\ticonWrapper: styled.div`\n\t\tcolor: var(--_iconColor);\n\t`,\n};\n\nexport function LocalPushNotifications(_: Props): JSX.Element {\n\tconst notificationService = useService(NotificationService);\n\tconst [notifications, setNotifications] = useState<LocalPushNotification[]>([]);\n\tconst wrapperRef = useRef<HTMLDivElement>(null);\n\tconst toastRef = useRef<HTMLLIElement>(null);\n\tconst listRef = useRef<HTMLOListElement>(null);\n\tconst closeTimerRef = useRef<Timer>(new Timer());\n\tconst removeNotification = useCallback(\n\t\t(target: LocalPushNotification) => {\n\t\t\tnotificationService.remove(target);\n\t\t\tsetNotifications([...(notificationService.get('localPush') as any)]);\n\n\t\t\tconst isFocusInToast = toastRef.current?.contains(document.activeElement);\n\t\t\tif (isFocusInToast && notificationService.count('localPush') > 0) listRef.current?.focus();\n\t\t},\n\t\t[notificationService],\n\t);\n\n\tuseEffect(\n\t\tfunction toHandleServiceEvents() {\n\t\t\tfunction handleChange(_: LocalPushNotification): void {\n\t\t\t\tsetNotifications([...(notificationService.get('localPush') as any)]);\n\t\t\t}\n\n\t\t\tnotificationService.eventEmitter.on('onAddLocalPush', handleChange);\n\t\t\tnotificationService.eventEmitter.on('onRemoveLocalPush', handleChange);\n\n\t\t\treturn () => {\n\t\t\t\tnotificationService.eventEmitter.off('onAddLocalPush', handleChange);\n\t\t\t\tnotificationService.eventEmitter.off('onRemoveLocalPush', handleChange);\n\t\t\t};\n\t\t},\n\t\t[notificationService],\n\t);\n\n\tuseEffect(function toHandleKeyboardShortcut() {\n\t\tfunction handleKeyDown(event: KeyboardEvent): void {\n\t\t\tconst isHotkeyPressed = ['f8'].every((key) => event.code?.toLowerCase() === key.toLowerCase());\n\t\t\tif (isHotkeyPressed) listRef.current?.focus();\n\t\t}\n\t\tdocument.addEventListener('keydown', handleKeyDown);\n\n\t\treturn () => document.removeEventListener('keydown', handleKeyDown);\n\t}, []);\n\n\tuseEffect(\n\t\tfunction toHandleCloseTimer() {\n\t\t\tcloseTimerRef.current.flush();\n\n\t\t\treturn closeTimerRef.current.wait(() => {\n\t\t\t\tconst localPushes = notificationService.get('localPush');\n\t\t\t\tconst toBeRemoved = localPushes[0];\n\n\t\t\t\tif (toBeRemoved != null) {\n\t\t\t\t\tremoveNotification(toBeRemoved as any);\n\t\t\t\t}\n\t\t\t}, 30 * 1000);\n\t\t},\n\t\t[notifications, notificationService, removeNotification],\n\t);\n\n\tfunction handleClose(target: LocalPushNotification): void {\n\t\tremoveNotification(target);\n\t}\n\n\treturn (\n\t\t<elements.container\n\t\t\tref={wrapperRef}\n\t\t\trole='region'\n\t\t\taria-label='Notifications'\n\t\t\ttabIndex={-1}\n\t\t\taria-hidden={notifications.length === 0}\n\t\t>\n\t\t\t{/**\n\t\t\t * tabindex on the the list so that it can be focused when items are removed. we focus\n\t\t\t * the list instead of the viewport so it announces number of items remaining.\n\t\t\t */}\n\t\t\t<elements.list tabIndex={-1} ref={listRef}>\n\t\t\t\t<AnimatePresence initial={false}>\n\t\t\t\t\t{notifications.map((notification, index) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<Toast\n\t\t\t\t\t\t\t\tkey={notification.guid}\n\t\t\t\t\t\t\t\tref={index === 0 ? toastRef : undefined}\n\t\t\t\t\t\t\t\tnotification={notification}\n\t\t\t\t\t\t\t\tonClose={handleClose}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</AnimatePresence>\n\t\t\t</elements.list>\n\t\t</elements.container>\n\t);\n}\n\ninterface ToastProps {\n\tnotification: LocalPushNotification;\n\tonClose: (target: LocalPushNotification) => void;\n}\n\nconst Toast = forwardRef<HTMLLIElement, ToastProps>(function Toast({ notification, onClose }, forwardedRef): JSX.Element {\n\tfunction handleOnKeyDown(target: LocalPushNotification): (event: React.KeyboardEvent<HTMLLIElement>) => void {\n\t\treturn (event) => {\n\t\t\tif (event.key !== 'Escape') return;\n\n\t\t\tif (!event.nativeEvent.defaultPrevented) {\n\t\t\t\tonClose(target);\n\t\t\t}\n\t\t};\n\t}\n\n\tfunction handleOnClick(target: LocalPushNotification): (event: React.MouseEvent<HTMLButtonElement>) => void {\n\t\treturn (_) => {\n\t\t\tonClose(target);\n\t\t};\n\t}\n\n\treturn (\n\t\t<elements.listItem\n\t\t\tvariant={notification.variant}\n\t\t\trole='status'\n\t\t\taria-live='off'\n\t\t\ttabIndex={0}\n\t\t\tref={forwardedRef}\n\t\t\tlayout\n\t\t\tinitial={{ opacity: 0, y: 50, scale: 1 }}\n\t\t\tanimate={{ opacity: 1, y: 0, scale: 1 }}\n\t\t\texit={{ opacity: 0, scale: 0.98, transition: { duration: 0.2 } }}\n\t\t\ttransition={{\n\t\t\t\ttype: 'spring',\n\t\t\t\tstiffness: 240,\n\t\t\t\tdamping: 20,\n\t\t\t}}\n\t\t\tonKeyDown={handleOnKeyDown(notification)}\n\t\t>\n\t\t\t<elements.iconWrapper>\n\t\t\t\t<Icon type={notification.icon} />\n\t\t\t</elements.iconWrapper>\n\n\t\t\t<elements.text>\n\t\t\t\t<Text font={tokens.text.label.largeSemiBold}>{notification.label}</Text>\n\t\t\t\t{notification.message != null ? <Text font={tokens.text.label.regular}>{notification.message}</Text> : null}\n\t\t\t</elements.text>\n\n\t\t\t<IconButton\n\t\t\t\tvariant={notification.variant}\n\t\t\t\tsize='small'\n\t\t\t\ttext={withTranslation('C.Component.AppointmentChat.Close')}\n\t\t\t\ticon='x'\n\t\t\t\tonClick={handleOnClick(notification)}\n\t\t\t/>\n\t\t</elements.listItem>\n\t);\n});\n","import { Icon } from '@components/icon.component';\nimport { SquareButton } from '@components/square_button.component';\nimport { rem } from '@visiba/std';\nimport styled from 'styled-components';\n\ninterface Props {\n\tComponent: React.FC;\n\tremoveFn: () => void;\n}\n\nconst elements = {\n\tinformation: styled.div`\n\t\tpadding: ${rem(20)} ${rem(30)};\n\t\tbackground: #5e646e;\n\t\tcolor: white;\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t`,\n\tcontent: styled.div`\n\t\tdisplay: flex;\n\t\tjustify-content: start;\n\t\talign-items: center;\n\t`,\n\tclose: styled(SquareButton)`\n\t\theight: ${rem(32)};\n\t\twidth: ${rem(32)};\n\t\tcolor: #e5e8f0;\n\t\tfont-size: ${rem(13.5)};\n\n\t\t:hover,\n\t\t:active,\n\t\t:focus {\n\t\t\tbackground-color: #4c515a;\n\t\t}\n\t`,\n\ticon: styled.div`\n\t\tmargin-right: ${rem(10)};\n\n\t\tsvg {\n\t\t\tfont-size: ${rem(24)};\n\t\t\tcolor: transparent; // Do not want stroke here\n\t\t}\n\t`,\n};\n\nexport function InformationBanner({ Component, removeFn }: Props): JSX.Element {\n\treturn (\n\t\t<elements.information>\n\t\t\t<elements.content>\n\t\t\t\t<elements.icon>\n\t\t\t\t\t<Icon type='warning' />\n\t\t\t\t</elements.icon>\n\t\t\t\t<Component />\n\t\t\t</elements.content>\n\t\t\t<elements.close\n\t\t\t\tdata-testid='close_banner'\n\t\t\t\ticon='cross'\n\t\t\t\tonClick={() => {\n\t\t\t\t\tremoveFn();\n\t\t\t\t}}\n\t\t\t/>\n\t\t</elements.information>\n\t);\n}\n","import { BannerNotification } from '@services/notification.service/bar_notification';\nimport { NotificationService } from '@services/notification.service/mod';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport { useEffect, useState } from 'react';\nimport styled from 'styled-components';\nimport { InformationBanner } from './_banner_notification_information_banner.component';\n\ninterface Props {}\n\nconst elements = {\n\tcontainer: styled(motion.div)`\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tz-index: 2;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t`,\n\telement: styled(motion.div)`\n\t\twidth: 100%;\n\t`,\n};\n\nexport function BannerNotifications(_: Props): JSX.Element {\n\tconst notificationService = useService(NotificationService);\n\tconst [notifications, setNotifications] = useState<BannerNotification[]>([]);\n\n\tuseEffect(() => {\n\t\tfunction handleChange(_: BannerNotification): void {\n\t\t\tsetNotifications([...(notificationService.get('banner') as any)]);\n\t\t}\n\n\t\tnotificationService.eventEmitter.on('onAddBanner', handleChange);\n\t\tnotificationService.eventEmitter.on('onRemoveBanner', handleChange);\n\n\t\treturn () => {\n\t\t\tnotificationService.eventEmitter.off('onAddBanner', handleChange);\n\t\t\tnotificationService.eventEmitter.off('onRemoveBanner', handleChange);\n\t\t};\n\t}, [notificationService]);\n\n\tfunction handleRemoveClick(target: BannerNotification): void {\n\t\tnotificationService.remove(target);\n\t\tsetNotifications([...(notificationService.get('banner') as any)]);\n\t}\n\n\treturn (\n\t\t<elements.container>\n\t\t\t<AnimatePresence initial={false}>\n\t\t\t\t{notifications.map((notification) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<elements.element\n\t\t\t\t\t\t\tlayout\n\t\t\t\t\t\t\tkey={notification.guid}\n\t\t\t\t\t\t\tinitial={{ opacity: 0 }}\n\t\t\t\t\t\t\tanimate={{ opacity: 1, transition: { duration: 0.25 } }}\n\t\t\t\t\t\t\texit={{ opacity: 0, transition: { duration: 0.25 } }}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{notification.type === 'information' && (\n\t\t\t\t\t\t\t\t<InformationBanner\n\t\t\t\t\t\t\t\t\tComponent={notification.ui}\n\t\t\t\t\t\t\t\t\tremoveFn={() => {\n\t\t\t\t\t\t\t\t\t\thandleRemoveClick(notification);\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</elements.element>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t</AnimatePresence>\n\t\t</elements.container>\n\t);\n}\n","import { tokens } from '@cellula/react-theme-patient';\nimport { ReactNode } from 'react';\nimport styled from 'styled-components';\n\nconst StyledContainer = styled.div`\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\tbackground: ${tokens.color.bg.surface};\n\tflex-grow: 1;\n\tcolor: ${tokens.color.content.default};\n\n\t${tokens.breakpointQuery.small} {\n\t\tposition: relative;\n\t\tmax-width: calc(600px - ${tokens.spacing.x4});\n\t\tmargin: ${tokens.spacing.x6} auto;\n\t\tborder: 1px solid ${tokens.color.border.default};\n\t\tborder-radius: ${tokens.borderRadius.large};\n\t\toverflow: hidden;\n\t\tmin-height: 100%;\n\t\tflex-grow: 0;\n\t}\n\n\t/* TODO: Remove when old patient web i gone 🧹🧼🚿🧽🚽 */\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tcolor: ${tokens.color.content.default};\n\t\tmargin: 0;\n\t}\n`;\n\ninterface PatientFlowContainerProps {\n\tchildren: ReactNode;\n}\n\nexport function PatientFlowContainer({ children }: PatientFlowContainerProps) {\n\treturn <StyledContainer>{children}</StyledContainer>;\n}\n","import { Fragment, cloneElement } from 'react';\nimport styled from 'styled-components';\nimport { motion, AnimatePresence, Variants } from 'framer-motion';\nimport { useApplicationState } from '@modules/state/state_hook';\nimport { useService } from '@visiba-cortex/instantiation';\nimport { PopoverController } from '@routes/appointment/popover.controller';\n\ninterface Props {}\n\nconst elements = {\n\tcontainer: styled(motion.div)`\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tleft: 0;\n\t\tbottom: 0;\n\t\tz-index: 9999;\n\t\toverflow: hidden;\n\t`,\n\touter: styled.div<{ overlay: boolean }>`\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tleft: 0;\n\t\tbottom: 0;\n\t\tz-index: -1;\n\t\tbackground: ${({ overlay }) => (overlay ? 'rgba(0, 0, 0, 0.5)' : null)};\n\t`,\n\tinner: styled(motion.div)`\n\t\theight: 100%;\n\t\twidth: 100%;\n\t\tpointer-events: none;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\n\t\th2 {\n\t\t\ttext-align: center;\n\t\t}\n\t\tp {\n\t\t\tmargin-bottom: 40px;\n\t\t}\n\n\t\t.image {\n\t\t\tmargin: 15px 0 25px;\n\t\t\tjustify-content: center;\n\t\t\tdisplay: flex;\n\t\t\tsvg {\n\t\t\t\tfont-size: 104px;\n\t\t\t}\n\t\t}\n\n\t\t.inner {\n\t\t\tdisplay: flex;\n\t\t\tmax-height: 100%;\n\t\t\toverflow-y: auto;\n\t\t\tflex-direction: column;\n\t\t\tpointer-events: all;\n\t\t}\n\t`,\n};\n\nconst variantsWrapper: Variants = {\n\tenter: {\n\t\topacity: 0,\n\t},\n\tcenter: {\n\t\topacity: 1,\n\t},\n\texit: {\n\t\topacity: 0,\n\t},\n};\n\nconst variantsInner: Variants = {\n\tenter: {\n\t\topacity: 0,\n\t\ttranslateY: 16,\n\t},\n\tcenter: {\n\t\topacity: 1,\n\t\ttranslateY: 0,\n\t},\n\texit: {\n\t\topacity: 0,\n\t\ttranslateY: 10,\n\t},\n};\n\n// Stores a copy of the last element so the exit animation can be used.\nlet preservedChild: JSX.Element | null = null;\n\nfunction createModalChild(jsx: JSX.Element): JSX.Element {\n\tpreservedChild = cloneElement(jsx);\n\n\t// returns new copy or old copy.\n\treturn preservedChild;\n}\n\nfunction Modal(): JSX.Element {\n\tconst popoverController = useService(PopoverController);\n\tconst [state] = useApplicationState(popoverController.popoverService.modalStack.state);\n\n\tconst overlay = popoverController.popoverService.currentActiveModal\n\t\t? state[popoverController.popoverService.currentActiveModal].overlay\n\t\t: false;\n\n\tconst animations = popoverController.popoverService.currentActiveModal\n\t\t? state[popoverController.popoverService.currentActiveModal].animations\n\t\t: false;\n\n\tfunction handleClick(): void {\n\t\tconst modal = popoverController.popoverService.currentActiveModal\n\t\t\t? state[popoverController.popoverService.currentActiveModal]\n\t\t\t: null;\n\n\t\tif (modal && !modal.persistent) {\n\t\t\tpopoverController.shift();\n\t\t}\n\t}\n\n\tconst animationProps = animations\n\t\t? {\n\t\t\t\tinitial: 'enter',\n\t\t\t\tanimate: 'center',\n\t\t\t\texit: 'exit',\n\t\t\t\ttransition: {\n\t\t\t\t\tduration: 0.24,\n\t\t\t\t\tease: 'easeInOut',\n\t\t\t\t},\n\t\t\t}\n\t\t: {};\n\n\treturn (\n\t\t<AnimatePresence initial={false}>\n\t\t\t{popoverController.popoverService.currentActiveModal !== null && (\n\t\t\t\t<elements.container variants={variantsWrapper} {...animationProps}>\n\t\t\t\t\t<elements.outer overlay={overlay} onClick={handleClick} />\n\t\t\t\t\t<elements.inner variants={variantsInner} {...animationProps}>\n\t\t\t\t\t\t<div className='inner'>{createModalChild(state[popoverController.popoverService.currentActiveModal].jsx)}</div>\n\t\t\t\t\t</elements.inner>\n\t\t\t\t</elements.container>\n\t\t\t)}\n\t\t</AnimatePresence>\n\t);\n}\n\nexport function PopoverManager(_: Props): JSX.Element {\n\treturn (\n\t\t<Fragment>\n\t\t\t<Modal />\n\t\t</Fragment>\n\t);\n}\n","export const BROWSE_KEY = '__BROWSE__';\n\nexport interface SearchUnitNode {\n\tid: string;\n\tname: string;\n\tsubtitle: string | null;\n\tpath: string;\n}\n","import {createContext as $69F46$createContext, useMemo as $69F46$useMemo, useContext as $69F46$useContext, useState as $69F46$useState, useRef as $69F46$useRef, useEffect as $69F46$useEffect} from \"react\";\n\n/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nconst $e5be200c675c3b3a$export$aca958c65c314e6c = {\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valueMissing: false,\n valid: true\n};\nconst $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE = {\n ...$e5be200c675c3b3a$export$aca958c65c314e6c,\n customError: true,\n valid: false\n};\nconst $e5be200c675c3b3a$export$dad6ae84456c676a = {\n isInvalid: false,\n validationDetails: $e5be200c675c3b3a$export$aca958c65c314e6c,\n validationErrors: []\n};\nconst $e5be200c675c3b3a$export$571b5131b7e65c11 = (0, $69F46$createContext)({});\nconst $e5be200c675c3b3a$export$a763b9476acd3eb = '__formValidationState' + Date.now();\nfunction $e5be200c675c3b3a$export$fc1a364ae1f3ff10(props) {\n // Private prop for parent components to pass state to children.\n if (props[$e5be200c675c3b3a$export$a763b9476acd3eb]) {\n let { realtimeValidation: realtimeValidation, displayValidation: displayValidation, updateValidation: updateValidation, resetValidation: resetValidation, commitValidation: commitValidation } = props[$e5be200c675c3b3a$export$a763b9476acd3eb];\n return {\n realtimeValidation: realtimeValidation,\n displayValidation: displayValidation,\n updateValidation: updateValidation,\n resetValidation: resetValidation,\n commitValidation: commitValidation\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return $e5be200c675c3b3a$var$useFormValidationStateImpl(props);\n}\nfunction $e5be200c675c3b3a$var$useFormValidationStateImpl(props) {\n let { isInvalid: isInvalid, validationState: validationState, name: name, value: value, builtinValidation: builtinValidation, validate: validate, validationBehavior: validationBehavior = 'aria' } = props;\n // backward compatibility.\n if (validationState) isInvalid || (isInvalid = validationState === 'invalid');\n // If the isInvalid prop is controlled, update validation result in realtime.\n let controlledError = isInvalid !== undefined ? {\n isInvalid: isInvalid,\n validationErrors: [],\n validationDetails: $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE\n } : null;\n // Perform custom client side validation.\n let clientError = (0, $69F46$useMemo)(()=>$e5be200c675c3b3a$var$getValidationResult($e5be200c675c3b3a$var$runValidate(validate, value)), [\n validate,\n value\n ]);\n if (builtinValidation === null || builtinValidation === void 0 ? void 0 : builtinValidation.validationDetails.valid) builtinValidation = null;\n // Get relevant server errors from the form.\n let serverErrors = (0, $69F46$useContext)($e5be200c675c3b3a$export$571b5131b7e65c11);\n let serverErrorMessages = (0, $69F46$useMemo)(()=>{\n if (name) return Array.isArray(name) ? name.flatMap((name)=>$e5be200c675c3b3a$var$asArray(serverErrors[name])) : $e5be200c675c3b3a$var$asArray(serverErrors[name]);\n return [];\n }, [\n serverErrors,\n name\n ]);\n // Show server errors when the form gets a new value, and clear when the user changes the value.\n let [lastServerErrors, setLastServerErrors] = (0, $69F46$useState)(serverErrors);\n let [isServerErrorCleared, setServerErrorCleared] = (0, $69F46$useState)(false);\n if (serverErrors !== lastServerErrors) {\n setLastServerErrors(serverErrors);\n setServerErrorCleared(false);\n }\n let serverError = (0, $69F46$useMemo)(()=>$e5be200c675c3b3a$var$getValidationResult(isServerErrorCleared ? [] : serverErrorMessages), [\n isServerErrorCleared,\n serverErrorMessages\n ]);\n // Track the next validation state in a ref until commitValidation is called.\n let nextValidation = (0, $69F46$useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);\n let [currentValidity, setCurrentValidity] = (0, $69F46$useState)($e5be200c675c3b3a$export$dad6ae84456c676a);\n let lastError = (0, $69F46$useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);\n let commitValidation = ()=>{\n if (!commitQueued) return;\n setCommitQueued(false);\n let error = clientError || builtinValidation || nextValidation.current;\n if (!$e5be200c675c3b3a$var$isEqualValidation(error, lastError.current)) {\n lastError.current = error;\n setCurrentValidity(error);\n }\n };\n let [commitQueued, setCommitQueued] = (0, $69F46$useState)(false);\n (0, $69F46$useEffect)(commitValidation);\n // realtimeValidation is used to update the native input element's state based on custom validation logic.\n // displayValidation is the currently displayed validation state that the user sees (e.g. on input change/form submit).\n // With validationBehavior=\"aria\", all errors are displayed in realtime rather than on submit.\n let realtimeValidation = controlledError || serverError || clientError || builtinValidation || $e5be200c675c3b3a$export$dad6ae84456c676a;\n let displayValidation = validationBehavior === 'native' ? controlledError || serverError || currentValidity : controlledError || serverError || clientError || builtinValidation || currentValidity;\n return {\n realtimeValidation: realtimeValidation,\n displayValidation: displayValidation,\n updateValidation (value) {\n // If validationBehavior is 'aria', update in realtime. Otherwise, store in a ref until commit.\n if (validationBehavior === 'aria' && !$e5be200c675c3b3a$var$isEqualValidation(currentValidity, value)) setCurrentValidity(value);\n else nextValidation.current = value;\n },\n resetValidation () {\n // Update the currently displayed validation state to valid on form reset,\n // even if the native validity says it isn't. It'll show again on the next form submit.\n let error = $e5be200c675c3b3a$export$dad6ae84456c676a;\n if (!$e5be200c675c3b3a$var$isEqualValidation(error, lastError.current)) {\n lastError.current = error;\n setCurrentValidity(error);\n }\n // Do not commit validation after the next render. This avoids a condition where\n // useSelect calls commitValidation inside an onReset handler.\n if (validationBehavior === 'native') setCommitQueued(false);\n setServerErrorCleared(true);\n },\n commitValidation () {\n // Commit validation state so the user sees it on blur/change/submit. Also clear any server errors.\n // Wait until after the next render to commit so that the latest value has been validated.\n if (validationBehavior === 'native') setCommitQueued(true);\n setServerErrorCleared(true);\n }\n };\n}\nfunction $e5be200c675c3b3a$var$asArray(v) {\n if (!v) return [];\n return Array.isArray(v) ? v : [\n v\n ];\n}\nfunction $e5be200c675c3b3a$var$runValidate(validate, value) {\n if (typeof validate === 'function') {\n let e = validate(value);\n if (e && typeof e !== 'boolean') return $e5be200c675c3b3a$var$asArray(e);\n }\n return [];\n}\nfunction $e5be200c675c3b3a$var$getValidationResult(errors) {\n return errors.length ? {\n isInvalid: true,\n validationErrors: errors,\n validationDetails: $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE\n } : null;\n}\nfunction $e5be200c675c3b3a$var$isEqualValidation(a, b) {\n if (a === b) return true;\n return a && b && a.isInvalid === b.isInvalid && a.validationErrors.length === b.validationErrors.length && a.validationErrors.every((a, i)=>a === b.validationErrors[i]) && Object.entries(a.validationDetails).every(([k, v])=>b.validationDetails[k] === v);\n}\nfunction $e5be200c675c3b3a$export$75ee7c75d68f5b0e(...results) {\n let errors = new Set();\n let isInvalid = false;\n let validationDetails = {\n ...$e5be200c675c3b3a$export$aca958c65c314e6c\n };\n for (let v of results){\n var _validationDetails, _key;\n for (let e of v.validationErrors)errors.add(e);\n // Only these properties apply for checkboxes.\n isInvalid || (isInvalid = v.isInvalid);\n for(let key in validationDetails)(_validationDetails = validationDetails)[_key = key] || (_validationDetails[_key] = v.validationDetails[key]);\n }\n validationDetails.valid = !isInvalid;\n return {\n isInvalid: isInvalid,\n validationErrors: [\n ...errors\n ],\n validationDetails: validationDetails\n };\n}\n\n\nexport {$e5be200c675c3b3a$export$aca958c65c314e6c as VALID_VALIDITY_STATE, $e5be200c675c3b3a$export$dad6ae84456c676a as DEFAULT_VALIDATION_RESULT, $e5be200c675c3b3a$export$571b5131b7e65c11 as FormValidationContext, $e5be200c675c3b3a$export$a763b9476acd3eb as privateValidationStateProp, $e5be200c675c3b3a$export$fc1a364ae1f3ff10 as useFormValidationState, $e5be200c675c3b3a$export$75ee7c75d68f5b0e as mergeValidation};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $c5a24bc478652b5f$export$1005530eda016c13(node, collection) {\n // New API: call collection.getChildren with the node key.\n if (typeof collection.getChildren === 'function') return collection.getChildren(node.key);\n // Old API: access childNodes directly.\n return node.childNodes;\n}\nfunction $c5a24bc478652b5f$export$fbdeaa6a76694f71(iterable) {\n return $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, 0);\n}\nfunction $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, index) {\n if (index < 0) return undefined;\n let i = 0;\n for (let item of iterable){\n if (i === index) return item;\n i++;\n }\n}\nfunction $c5a24bc478652b5f$export$7475b2c64539e4cf(iterable) {\n let lastItem = undefined;\n for (let value of iterable)lastItem = value;\n return lastItem;\n}\nfunction $c5a24bc478652b5f$export$8c434b3a7a4dad6(collection, a, b) {\n // If the two nodes have the same parent, compare their indices.\n if (a.parentKey === b.parentKey) return a.index - b.index;\n // Otherwise, collect all of the ancestors from each node, and find the first one that doesn't match starting from the root.\n // Include the base nodes in case we are comparing nodes of different levels so that we can compare the higher node to the lower level node's\n // ancestor of the same level\n let aAncestors = [\n ...$c5a24bc478652b5f$var$getAncestors(collection, a),\n a\n ];\n let bAncestors = [\n ...$c5a24bc478652b5f$var$getAncestors(collection, b),\n b\n ];\n let firstNonMatchingAncestor = aAncestors.slice(0, bAncestors.length).findIndex((a, i)=>a !== bAncestors[i]);\n if (firstNonMatchingAncestor !== -1) {\n // Compare the indices of two children within the common ancestor.\n a = aAncestors[firstNonMatchingAncestor];\n b = bAncestors[firstNonMatchingAncestor];\n return a.index - b.index;\n }\n // If there isn't a non matching ancestor, we might be in a case where one of the nodes is the ancestor of the other.\n if (aAncestors.findIndex((node)=>node === b) >= 0) return 1;\n else if (bAncestors.findIndex((node)=>node === a) >= 0) return -1;\n // 🤷\n return -1;\n}\nfunction $c5a24bc478652b5f$var$getAncestors(collection, node) {\n let parents = [];\n while((node === null || node === void 0 ? void 0 : node.parentKey) != null){\n node = collection.getItem(node.parentKey);\n parents.unshift(node);\n }\n return parents;\n}\n\n\nexport {$c5a24bc478652b5f$export$1005530eda016c13 as getChildNodes, $c5a24bc478652b5f$export$fbdeaa6a76694f71 as getFirstItem, $c5a24bc478652b5f$export$5f3398f8733f90e2 as getNthItem, $c5a24bc478652b5f$export$7475b2c64539e4cf as getLastItem, $c5a24bc478652b5f$export$8c434b3a7a4dad6 as compareNodeOrder};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ class $a02d57049d202695$export$d085fb9e920b5ca7 {\n *[Symbol.iterator]() {\n yield* this.iterable;\n }\n get size() {\n return this.keyMap.size;\n }\n getKeys() {\n return this.keyMap.keys();\n }\n getKeyBefore(key) {\n let node = this.keyMap.get(key);\n return node ? node.prevKey : null;\n }\n getKeyAfter(key) {\n let node = this.keyMap.get(key);\n return node ? node.nextKey : null;\n }\n getFirstKey() {\n return this.firstKey;\n }\n getLastKey() {\n return this.lastKey;\n }\n getItem(key) {\n return this.keyMap.get(key);\n }\n at(idx) {\n const keys = [\n ...this.getKeys()\n ];\n return this.getItem(keys[idx]);\n }\n getChildren(key) {\n let node = this.keyMap.get(key);\n return (node === null || node === void 0 ? void 0 : node.childNodes) || [];\n }\n constructor(nodes){\n this.keyMap = new Map();\n this.iterable = nodes;\n let visit = (node)=>{\n this.keyMap.set(node.key, node);\n if (node.childNodes && node.type === 'section') for (let child of node.childNodes)visit(child);\n };\n for (let node of nodes)visit(node);\n let last;\n let index = 0;\n for (let [key, node] of this.keyMap){\n if (last) {\n last.nextKey = key;\n node.prevKey = last.key;\n } else {\n this.firstKey = key;\n node.prevKey = undefined;\n }\n if (node.type === 'item') node.index = index++;\n last = node;\n // Set nextKey as undefined since this might be the last node\n // If it isn't the last node, last.nextKey will properly set at start of new loop\n last.nextKey = undefined;\n }\n this.lastKey = last === null || last === void 0 ? void 0 : last.key;\n }\n}\n\n\nexport {$a02d57049d202695$export$d085fb9e920b5ca7 as ListCollection};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ class $e40ea825a81a3709$export$52baac22726c72bf extends Set {\n constructor(keys, anchorKey, currentKey){\n super(keys);\n if (keys instanceof $e40ea825a81a3709$export$52baac22726c72bf) {\n this.anchorKey = anchorKey || keys.anchorKey;\n this.currentKey = currentKey || keys.currentKey;\n } else {\n this.anchorKey = anchorKey;\n this.currentKey = currentKey;\n }\n }\n}\n\n\nexport {$e40ea825a81a3709$export$52baac22726c72bf as Selection};\n","import {useState as $3whtM$useState, useRef as $3whtM$useRef, useEffect as $3whtM$useEffect, useCallback as $3whtM$useCallback} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange) {\n let [stateValue, setStateValue] = (0, $3whtM$useState)(value || defaultValue);\n let isControlledRef = (0, $3whtM$useRef)(value !== undefined);\n let isControlled = value !== undefined;\n (0, $3whtM$useEffect)(()=>{\n let wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) console.warn(`WARN: A component changed from ${wasControlled ? 'controlled' : 'uncontrolled'} to ${isControlled ? 'controlled' : 'uncontrolled'}.`);\n isControlledRef.current = isControlled;\n }, [\n isControlled\n ]);\n let currentValue = isControlled ? value : stateValue;\n let setValue = (0, $3whtM$useCallback)((value, ...args)=>{\n let onChangeCaller = (value, ...onChangeArgs)=>{\n if (onChange) {\n if (!Object.is(currentValue, value)) onChange(value, ...onChangeArgs);\n }\n if (!isControlled) // If uncontrolled, mutate the currentValue local variable so that\n // calling setState multiple times with the same value only emits onChange once.\n // We do not use a ref for this because we specifically _do_ want the value to\n // reset every render, and assigning to a ref in render breaks aborted suspended renders.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n currentValue = value;\n };\n if (typeof value === 'function') {\n console.warn('We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320');\n // this supports functional updates https://reactjs.org/docs/hooks-reference.html#functional-updates\n // when someone using useControlledState calls setControlledState(myFunc)\n // this will call our useState setState with a function as well which invokes myFunc and calls onChange with the value from myFunc\n // if we're in an uncontrolled state, then we also return the value of myFunc which to setState looks as though it was just called with myFunc from the beginning\n // otherwise we just return the controlled value, which won't cause a rerender because React knows to bail out when the value is the same\n let updateFunction = (oldValue, ...functionArgs)=>{\n let interceptedValue = value(isControlled ? currentValue : oldValue, ...functionArgs);\n onChangeCaller(interceptedValue, ...args);\n if (!isControlled) return interceptedValue;\n return oldValue;\n };\n setStateValue(updateFunction);\n } else {\n if (!isControlled) setStateValue(value);\n onChangeCaller(value, ...args);\n }\n }, [\n isControlled,\n currentValue,\n onChange\n ]);\n return [\n currentValue,\n setValue\n ];\n}\n\n\nexport {$458b0a5536c1a7cf$export$40bfa8c7b0832715 as useControlledState};\n","import {Selection as $e40ea825a81a3709$export$52baac22726c72bf} from \"./Selection.mjs\";\nimport {useControlledState as $6tM1y$useControlledState} from \"@react-stately/utils\";\nimport {useRef as $6tM1y$useRef, useState as $6tM1y$useState, useMemo as $6tM1y$useMemo, useEffect as $6tM1y$useEffect} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $7af3f5b51489e0b5$var$equalSets(setA, setB) {\n if (setA.size !== setB.size) return false;\n for (let item of setA){\n if (!setB.has(item)) return false;\n }\n return true;\n}\nfunction $7af3f5b51489e0b5$export$253fe78d46329472(props) {\n let { selectionMode: selectionMode = 'none', disallowEmptySelection: disallowEmptySelection, allowDuplicateSelectionEvents: allowDuplicateSelectionEvents, selectionBehavior: selectionBehaviorProp = 'toggle', disabledBehavior: disabledBehavior = 'all' } = props;\n // We want synchronous updates to `isFocused` and `focusedKey` after their setters are called.\n // But we also need to trigger a react re-render. So, we have both a ref (sync) and state (async).\n let isFocusedRef = (0, $6tM1y$useRef)(false);\n let [, setFocused] = (0, $6tM1y$useState)(false);\n let focusedKeyRef = (0, $6tM1y$useRef)(null);\n let childFocusStrategyRef = (0, $6tM1y$useRef)(null);\n let [, setFocusedKey] = (0, $6tM1y$useState)(null);\n let selectedKeysProp = (0, $6tM1y$useMemo)(()=>$7af3f5b51489e0b5$var$convertSelection(props.selectedKeys), [\n props.selectedKeys\n ]);\n let defaultSelectedKeys = (0, $6tM1y$useMemo)(()=>$7af3f5b51489e0b5$var$convertSelection(props.defaultSelectedKeys, new (0, $e40ea825a81a3709$export$52baac22726c72bf)()), [\n props.defaultSelectedKeys\n ]);\n let [selectedKeys, setSelectedKeys] = (0, $6tM1y$useControlledState)(selectedKeysProp, defaultSelectedKeys, props.onSelectionChange);\n let disabledKeysProp = (0, $6tM1y$useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [\n props.disabledKeys\n ]);\n let [selectionBehavior, setSelectionBehavior] = (0, $6tM1y$useState)(selectionBehaviorProp);\n // If the selectionBehavior prop is set to replace, but the current state is toggle (e.g. due to long press\n // to enter selection mode on touch), and the selection becomes empty, reset the selection behavior.\n if (selectionBehaviorProp === 'replace' && selectionBehavior === 'toggle' && typeof selectedKeys === 'object' && selectedKeys.size === 0) setSelectionBehavior('replace');\n // If the selectionBehavior prop changes, update the state as well.\n let lastSelectionBehavior = (0, $6tM1y$useRef)(selectionBehaviorProp);\n (0, $6tM1y$useEffect)(()=>{\n if (selectionBehaviorProp !== lastSelectionBehavior.current) {\n setSelectionBehavior(selectionBehaviorProp);\n lastSelectionBehavior.current = selectionBehaviorProp;\n }\n }, [\n selectionBehaviorProp\n ]);\n return {\n selectionMode: selectionMode,\n disallowEmptySelection: disallowEmptySelection,\n selectionBehavior: selectionBehavior,\n setSelectionBehavior: setSelectionBehavior,\n get isFocused () {\n return isFocusedRef.current;\n },\n setFocused (f) {\n isFocusedRef.current = f;\n setFocused(f);\n },\n get focusedKey () {\n return focusedKeyRef.current;\n },\n get childFocusStrategy () {\n return childFocusStrategyRef.current;\n },\n setFocusedKey (k, childFocusStrategy = 'first') {\n focusedKeyRef.current = k;\n childFocusStrategyRef.current = childFocusStrategy;\n setFocusedKey(k);\n },\n selectedKeys: selectedKeys,\n setSelectedKeys (keys) {\n if (allowDuplicateSelectionEvents || !$7af3f5b51489e0b5$var$equalSets(keys, selectedKeys)) setSelectedKeys(keys);\n },\n disabledKeys: disabledKeysProp,\n disabledBehavior: disabledBehavior\n };\n}\nfunction $7af3f5b51489e0b5$var$convertSelection(selection, defaultValue) {\n if (!selection) return defaultValue;\n return selection === 'all' ? 'all' : new (0, $e40ea825a81a3709$export$52baac22726c72bf)(selection);\n}\n\n\nexport {$7af3f5b51489e0b5$export$253fe78d46329472 as useMultipleSelectionState};\n","import {Selection as $e40ea825a81a3709$export$52baac22726c72bf} from \"./Selection.mjs\";\nimport {compareNodeOrder as $jkhUT$compareNodeOrder, getFirstItem as $jkhUT$getFirstItem, getChildNodes as $jkhUT$getChildNodes} from \"@react-stately/collections\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nclass $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {\n /**\n * The type of selection that is allowed in the collection.\n */ get selectionMode() {\n return this.state.selectionMode;\n }\n /**\n * Whether the collection allows empty selection.\n */ get disallowEmptySelection() {\n return this.state.disallowEmptySelection;\n }\n /**\n * The selection behavior for the collection.\n */ get selectionBehavior() {\n return this.state.selectionBehavior;\n }\n /**\n * Sets the selection behavior for the collection.\n */ setSelectionBehavior(selectionBehavior) {\n this.state.setSelectionBehavior(selectionBehavior);\n }\n /**\n * Whether the collection is currently focused.\n */ get isFocused() {\n return this.state.isFocused;\n }\n /**\n * Sets whether the collection is focused.\n */ setFocused(isFocused) {\n this.state.setFocused(isFocused);\n }\n /**\n * The current focused key in the collection.\n */ get focusedKey() {\n return this.state.focusedKey;\n }\n /** Whether the first or last child of the focused key should receive focus. */ get childFocusStrategy() {\n return this.state.childFocusStrategy;\n }\n /**\n * Sets the focused key.\n */ setFocusedKey(key, childFocusStrategy) {\n if (key == null || this.collection.getItem(key)) this.state.setFocusedKey(key, childFocusStrategy);\n }\n /**\n * The currently selected keys in the collection.\n */ get selectedKeys() {\n return this.state.selectedKeys === 'all' ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;\n }\n /**\n * The raw selection value for the collection.\n * Either 'all' for select all, or a set of keys.\n */ get rawSelection() {\n return this.state.selectedKeys;\n }\n /**\n * Returns whether a key is selected.\n */ isSelected(key) {\n if (this.state.selectionMode === 'none') return false;\n key = this.getKey(key);\n return this.state.selectedKeys === 'all' ? this.canSelectItem(key) : this.state.selectedKeys.has(key);\n }\n /**\n * Whether the selection is empty.\n */ get isEmpty() {\n return this.state.selectedKeys !== 'all' && this.state.selectedKeys.size === 0;\n }\n /**\n * Whether all items in the collection are selected.\n */ get isSelectAll() {\n if (this.isEmpty) return false;\n if (this.state.selectedKeys === 'all') return true;\n if (this._isSelectAll != null) return this._isSelectAll;\n let allKeys = this.getSelectAllKeys();\n let selectedKeys = this.state.selectedKeys;\n this._isSelectAll = allKeys.every((k)=>selectedKeys.has(k));\n return this._isSelectAll;\n }\n get firstSelectedKey() {\n let first = null;\n for (let key of this.state.selectedKeys){\n let item = this.collection.getItem(key);\n if (!first || item && (0, $jkhUT$compareNodeOrder)(this.collection, item, first) < 0) first = item;\n }\n return first === null || first === void 0 ? void 0 : first.key;\n }\n get lastSelectedKey() {\n let last = null;\n for (let key of this.state.selectedKeys){\n let item = this.collection.getItem(key);\n if (!last || item && (0, $jkhUT$compareNodeOrder)(this.collection, item, last) > 0) last = item;\n }\n return last === null || last === void 0 ? void 0 : last.key;\n }\n get disabledKeys() {\n return this.state.disabledKeys;\n }\n get disabledBehavior() {\n return this.state.disabledBehavior;\n }\n /**\n * Extends the selection to the given key.\n */ extendSelection(toKey) {\n if (this.selectionMode === 'none') return;\n if (this.selectionMode === 'single') {\n this.replaceSelection(toKey);\n return;\n }\n toKey = this.getKey(toKey);\n let selection;\n // Only select the one key if coming from a select all.\n if (this.state.selectedKeys === 'all') selection = new (0, $e40ea825a81a3709$export$52baac22726c72bf)([\n toKey\n ], toKey, toKey);\n else {\n let selectedKeys = this.state.selectedKeys;\n let anchorKey = selectedKeys.anchorKey || toKey;\n selection = new (0, $e40ea825a81a3709$export$52baac22726c72bf)(selectedKeys, anchorKey, toKey);\n for (let key of this.getKeyRange(anchorKey, selectedKeys.currentKey || toKey))selection.delete(key);\n for (let key of this.getKeyRange(toKey, anchorKey))if (this.canSelectItem(key)) selection.add(key);\n }\n this.state.setSelectedKeys(selection);\n }\n getKeyRange(from, to) {\n let fromItem = this.collection.getItem(from);\n let toItem = this.collection.getItem(to);\n if (fromItem && toItem) {\n if ((0, $jkhUT$compareNodeOrder)(this.collection, fromItem, toItem) <= 0) return this.getKeyRangeInternal(from, to);\n return this.getKeyRangeInternal(to, from);\n }\n return [];\n }\n getKeyRangeInternal(from, to) {\n let keys = [];\n let key = from;\n while(key){\n let item = this.collection.getItem(key);\n if (item && item.type === 'item' || item.type === 'cell' && this.allowsCellSelection) keys.push(key);\n if (key === to) return keys;\n key = this.collection.getKeyAfter(key);\n }\n return [];\n }\n getKey(key) {\n let item = this.collection.getItem(key);\n if (!item) // ¯\\_(ツ)_/¯\n return key;\n // If cell selection is allowed, just return the key.\n if (item.type === 'cell' && this.allowsCellSelection) return key;\n // Find a parent item to select\n while(item.type !== 'item' && item.parentKey != null)item = this.collection.getItem(item.parentKey);\n if (!item || item.type !== 'item') return null;\n return item.key;\n }\n /**\n * Toggles whether the given key is selected.\n */ toggleSelection(key) {\n if (this.selectionMode === 'none') return;\n if (this.selectionMode === 'single' && !this.isSelected(key)) {\n this.replaceSelection(key);\n return;\n }\n key = this.getKey(key);\n if (key == null) return;\n let keys = new (0, $e40ea825a81a3709$export$52baac22726c72bf)(this.state.selectedKeys === 'all' ? this.getSelectAllKeys() : this.state.selectedKeys);\n if (keys.has(key)) keys.delete(key);\n else if (this.canSelectItem(key)) {\n keys.add(key);\n keys.anchorKey = key;\n keys.currentKey = key;\n }\n if (this.disallowEmptySelection && keys.size === 0) return;\n this.state.setSelectedKeys(keys);\n }\n /**\n * Replaces the selection with only the given key.\n */ replaceSelection(key) {\n if (this.selectionMode === 'none') return;\n key = this.getKey(key);\n if (key == null) return;\n let selection = this.canSelectItem(key) ? new (0, $e40ea825a81a3709$export$52baac22726c72bf)([\n key\n ], key, key) : new (0, $e40ea825a81a3709$export$52baac22726c72bf)();\n this.state.setSelectedKeys(selection);\n }\n /**\n * Replaces the selection with the given keys.\n */ setSelectedKeys(keys) {\n if (this.selectionMode === 'none') return;\n let selection = new (0, $e40ea825a81a3709$export$52baac22726c72bf)();\n for (let key of keys){\n key = this.getKey(key);\n if (key != null) {\n selection.add(key);\n if (this.selectionMode === 'single') break;\n }\n }\n this.state.setSelectedKeys(selection);\n }\n getSelectAllKeys() {\n let keys = [];\n let addKeys = (key)=>{\n while(key != null){\n if (this.canSelectItem(key)) {\n let item = this.collection.getItem(key);\n if (item.type === 'item') keys.push(key);\n // Add child keys. If cell selection is allowed, then include item children too.\n if (item.hasChildNodes && (this.allowsCellSelection || item.type !== 'item')) addKeys((0, $jkhUT$getFirstItem)((0, $jkhUT$getChildNodes)(item, this.collection)).key);\n }\n key = this.collection.getKeyAfter(key);\n }\n };\n addKeys(this.collection.getFirstKey());\n return keys;\n }\n /**\n * Selects all items in the collection.\n */ selectAll() {\n if (!this.isSelectAll && this.selectionMode === 'multiple') this.state.setSelectedKeys('all');\n }\n /**\n * Removes all keys from the selection.\n */ clearSelection() {\n if (!this.disallowEmptySelection && (this.state.selectedKeys === 'all' || this.state.selectedKeys.size > 0)) this.state.setSelectedKeys(new (0, $e40ea825a81a3709$export$52baac22726c72bf)());\n }\n /**\n * Toggles between select all and an empty selection.\n */ toggleSelectAll() {\n if (this.isSelectAll) this.clearSelection();\n else this.selectAll();\n }\n select(key, e) {\n if (this.selectionMode === 'none') return;\n if (this.selectionMode === 'single') {\n if (this.isSelected(key) && !this.disallowEmptySelection) this.toggleSelection(key);\n else this.replaceSelection(key);\n } else if (this.selectionBehavior === 'toggle' || e && (e.pointerType === 'touch' || e.pointerType === 'virtual')) // if touch or virtual (VO) then we just want to toggle, otherwise it's impossible to multi select because they don't have modifier keys\n this.toggleSelection(key);\n else this.replaceSelection(key);\n }\n /**\n * Returns whether the current selection is equal to the given selection.\n */ isSelectionEqual(selection) {\n if (selection === this.state.selectedKeys) return true;\n // Check if the set of keys match.\n let selectedKeys = this.selectedKeys;\n if (selection.size !== selectedKeys.size) return false;\n for (let key of selection){\n if (!selectedKeys.has(key)) return false;\n }\n for (let key of selectedKeys){\n if (!selection.has(key)) return false;\n }\n return true;\n }\n canSelectItem(key) {\n var _item_props;\n if (this.state.selectionMode === 'none' || this.state.disabledKeys.has(key)) return false;\n let item = this.collection.getItem(key);\n if (!item || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || item.type === 'cell' && !this.allowsCellSelection) return false;\n return true;\n }\n isDisabled(key) {\n var _this_collection_getItem_props, _this_collection_getItem;\n return this.state.disabledBehavior === 'all' && (this.state.disabledKeys.has(key) || !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0 ? void 0 : _this_collection_getItem_props.isDisabled));\n }\n isLink(key) {\n var _this_collection_getItem_props, _this_collection_getItem;\n return !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0 ? void 0 : _this_collection_getItem_props.href);\n }\n getItemProps(key) {\n var _this_collection_getItem;\n return (_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : _this_collection_getItem.props;\n }\n constructor(collection, state, options){\n this.collection = collection;\n this.state = state;\n var _options_allowsCellSelection;\n this.allowsCellSelection = (_options_allowsCellSelection = options === null || options === void 0 ? void 0 : options.allowsCellSelection) !== null && _options_allowsCellSelection !== void 0 ? _options_allowsCellSelection : false;\n this._isSelectAll = null;\n }\n}\n\n\nexport {$d496c0a20b6e58ec$export$6c8a5aaad13c9852 as SelectionManager};\n","import $fzaAv$react from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nclass $eb2240fc39a57fa5$export$bf788dd355e3a401 {\n build(props, context) {\n this.context = context;\n return $eb2240fc39a57fa5$var$iterable(()=>this.iterateCollection(props));\n }\n *iterateCollection(props) {\n let { children: children, items: items } = props;\n if (typeof children === 'function') {\n if (!items) throw new Error('props.children was a function but props.items is missing');\n for (let item of props.items)yield* this.getFullNode({\n value: item\n }, {\n renderer: children\n });\n } else {\n let items = [];\n (0, $fzaAv$react).Children.forEach(children, (child)=>{\n items.push(child);\n });\n let index = 0;\n for (let item of items){\n let nodes = this.getFullNode({\n element: item,\n index: index\n }, {});\n for (let node of nodes){\n index++;\n yield node;\n }\n }\n }\n }\n getKey(item, partialNode, state, parentKey) {\n if (item.key != null) return item.key;\n if (partialNode.type === 'cell' && partialNode.key != null) return `${parentKey}${partialNode.key}`;\n let v = partialNode.value;\n if (v != null) {\n var _v_key;\n let key = (_v_key = v.key) !== null && _v_key !== void 0 ? _v_key : v.id;\n if (key == null) throw new Error('No key found for item');\n return key;\n }\n return parentKey ? `${parentKey}.${partialNode.index}` : `$.${partialNode.index}`;\n }\n getChildState(state, partialNode) {\n return {\n renderer: partialNode.renderer || state.renderer\n };\n }\n *getFullNode(partialNode, state, parentKey, parentNode) {\n // If there's a value instead of an element on the node, and a parent renderer function is available,\n // use it to render an element for the value.\n let element = partialNode.element;\n if (!element && partialNode.value && state && state.renderer) {\n let cached = this.cache.get(partialNode.value);\n if (cached && (!cached.shouldInvalidate || !cached.shouldInvalidate(this.context))) {\n cached.index = partialNode.index;\n cached.parentKey = parentNode ? parentNode.key : null;\n yield cached;\n return;\n }\n element = state.renderer(partialNode.value);\n }\n // If there's an element with a getCollectionNode function on its type, then it's a supported component.\n // Call this function to get a partial node, and recursively build a full node from there.\n if ((0, $fzaAv$react).isValidElement(element)) {\n let type = element.type;\n if (typeof type !== 'function' && typeof type.getCollectionNode !== 'function') {\n let name = typeof element.type === 'function' ? element.type.name : element.type;\n throw new Error(`Unknown element <${name}> in collection.`);\n }\n let childNodes = type.getCollectionNode(element.props, this.context);\n let index = partialNode.index;\n let result = childNodes.next();\n while(!result.done && result.value){\n let childNode = result.value;\n partialNode.index = index;\n let nodeKey = childNode.key;\n if (!nodeKey) nodeKey = childNode.element ? null : this.getKey(element, partialNode, state, parentKey);\n let nodes = this.getFullNode({\n ...childNode,\n key: nodeKey,\n index: index,\n wrapper: $eb2240fc39a57fa5$var$compose(partialNode.wrapper, childNode.wrapper)\n }, this.getChildState(state, childNode), parentKey ? `${parentKey}${element.key}` : element.key, parentNode);\n let children = [\n ...nodes\n ];\n for (let node of children){\n // Cache the node based on its value\n node.value = childNode.value || partialNode.value;\n if (node.value) this.cache.set(node.value, node);\n // The partial node may have specified a type for the child in order to specify a constraint.\n // Verify that the full node that was built recursively matches this type.\n if (partialNode.type && node.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node.type)}> in <${$eb2240fc39a57fa5$var$capitalize(parentNode.type)}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);\n index++;\n yield node;\n }\n result = childNodes.next(children);\n }\n return;\n }\n // Ignore invalid elements\n if (partialNode.key == null) return;\n // Create full node\n let builder = this;\n let node = {\n type: partialNode.type,\n props: partialNode.props,\n key: partialNode.key,\n parentKey: parentNode ? parentNode.key : null,\n value: partialNode.value,\n level: parentNode ? parentNode.level + 1 : 0,\n index: partialNode.index,\n rendered: partialNode.rendered,\n textValue: partialNode.textValue,\n 'aria-label': partialNode['aria-label'],\n wrapper: partialNode.wrapper,\n shouldInvalidate: partialNode.shouldInvalidate,\n hasChildNodes: partialNode.hasChildNodes,\n childNodes: $eb2240fc39a57fa5$var$iterable(function*() {\n if (!partialNode.hasChildNodes) return;\n let index = 0;\n for (let child of partialNode.childNodes()){\n // Ensure child keys are globally unique by prepending the parent node's key\n if (child.key != null) // TODO: Remove this line entirely and enforce that users always provide unique keys.\n // Currently this line will have issues when a parent has a key `a` and a child with key `bc`\n // but another parent has key `ab` and its child has a key `c`. The combined keys would result in both\n // children having a key of `abc`.\n child.key = `${node.key}${child.key}`;\n child.index = index;\n let nodes = builder.getFullNode(child, builder.getChildState(state, child), node.key, node);\n for (let node of nodes){\n index++;\n yield node;\n }\n }\n })\n };\n yield node;\n }\n constructor(){\n this.cache = new WeakMap();\n }\n}\n// Wraps an iterator function as an iterable object, and caches the results.\nfunction $eb2240fc39a57fa5$var$iterable(iterator) {\n let cache = [];\n let iterable = null;\n return {\n *[Symbol.iterator] () {\n for (let item of cache)yield item;\n if (!iterable) iterable = iterator();\n for (let item of iterable){\n cache.push(item);\n yield item;\n }\n }\n };\n}\nfunction $eb2240fc39a57fa5$var$compose(outer, inner) {\n if (outer && inner) return (element)=>outer(inner(element));\n if (outer) return outer;\n if (inner) return inner;\n}\nfunction $eb2240fc39a57fa5$var$capitalize(str) {\n return str[0].toUpperCase() + str.slice(1);\n}\n\n\nexport {$eb2240fc39a57fa5$export$bf788dd355e3a401 as CollectionBuilder};\n","import {ListCollection as $a02d57049d202695$export$d085fb9e920b5ca7} from \"./ListCollection.mjs\";\nimport {useMultipleSelectionState as $d5vlZ$useMultipleSelectionState, SelectionManager as $d5vlZ$SelectionManager} from \"@react-stately/selection\";\nimport {useMemo as $d5vlZ$useMemo, useCallback as $d5vlZ$useCallback, useRef as $d5vlZ$useRef, useEffect as $d5vlZ$useEffect} from \"react\";\nimport {useCollection as $d5vlZ$useCollection} from \"@react-stately/collections\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nfunction $e72dd72e1c76a225$export$2f645645f7bca764(props) {\n let { filter: filter } = props;\n let selectionState = (0, $d5vlZ$useMultipleSelectionState)(props);\n let disabledKeys = (0, $d5vlZ$useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [\n props.disabledKeys\n ]);\n let factory = (0, $d5vlZ$useCallback)((nodes)=>filter ? new (0, $a02d57049d202695$export$d085fb9e920b5ca7)(filter(nodes)) : new (0, $a02d57049d202695$export$d085fb9e920b5ca7)(nodes), [\n filter\n ]);\n let context = (0, $d5vlZ$useMemo)(()=>({\n suppressTextValueWarning: props.suppressTextValueWarning\n }), [\n props.suppressTextValueWarning\n ]);\n let collection = (0, $d5vlZ$useCollection)(props, factory, context);\n let selectionManager = (0, $d5vlZ$useMemo)(()=>new (0, $d5vlZ$SelectionManager)(collection, selectionState), [\n collection,\n selectionState\n ]);\n // Reset focused key if that item is deleted from the collection.\n const cachedCollection = (0, $d5vlZ$useRef)(null);\n (0, $d5vlZ$useEffect)(()=>{\n if (selectionState.focusedKey != null && !collection.getItem(selectionState.focusedKey)) {\n const startItem = cachedCollection.current.getItem(selectionState.focusedKey);\n const cachedItemNodes = [\n ...cachedCollection.current.getKeys()\n ].map((key)=>{\n const itemNode = cachedCollection.current.getItem(key);\n return itemNode.type === 'item' ? itemNode : null;\n }).filter((node)=>node !== null);\n const itemNodes = [\n ...collection.getKeys()\n ].map((key)=>{\n const itemNode = collection.getItem(key);\n return itemNode.type === 'item' ? itemNode : null;\n }).filter((node)=>node !== null);\n const diff = cachedItemNodes.length - itemNodes.length;\n let index = Math.min(diff > 1 ? Math.max(startItem.index - diff + 1, 0) : startItem.index, itemNodes.length - 1);\n let newNode;\n let isReverseSearching = false;\n while(index >= 0){\n if (!selectionManager.isDisabled(itemNodes[index].key)) {\n newNode = itemNodes[index];\n break;\n }\n // Find next, not disabled item.\n if (index < itemNodes.length - 1 && !isReverseSearching) index++;\n else {\n isReverseSearching = true;\n if (index > startItem.index) index = startItem.index;\n index--;\n }\n }\n selectionState.setFocusedKey(newNode ? newNode.key : null);\n }\n cachedCollection.current = collection;\n }, [\n collection,\n selectionManager,\n selectionState,\n selectionState.focusedKey\n ]);\n return {\n collection: collection,\n disabledKeys: disabledKeys,\n selectionManager: selectionManager\n };\n}\n\n\nexport {$e72dd72e1c76a225$export$2f645645f7bca764 as useListState};\n","import {CollectionBuilder as $eb2240fc39a57fa5$export$bf788dd355e3a401} from \"./CollectionBuilder.mjs\";\nimport {useMemo as $lbNth$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context) {\n let builder = (0, $lbNth$useMemo)(()=>new (0, $eb2240fc39a57fa5$export$bf788dd355e3a401)(), []);\n let { children: children, items: items, collection: collection } = props;\n let result = (0, $lbNth$useMemo)(()=>{\n if (collection) return collection;\n let nodes = builder.build({\n children: children,\n items: items\n }, context);\n return factory(nodes);\n }, [\n builder,\n children,\n items,\n collection,\n context,\n factory\n ]);\n return result;\n}\n\n\nexport {$7613b1592d41b092$export$6cd28814d92fa9c9 as useCollection};\n","import {useFormValidationState as $49BJP$useFormValidationState} from \"@react-stately/form\";\nimport {getChildNodes as $49BJP$getChildNodes} from \"@react-stately/collections\";\nimport {useSingleSelectListState as $49BJP$useSingleSelectListState, ListCollection as $49BJP$ListCollection} from \"@react-stately/list\";\nimport {useState as $49BJP$useState, useMemo as $49BJP$useMemo, useRef as $49BJP$useRef, useCallback as $49BJP$useCallback, useEffect as $49BJP$useEffect} from \"react\";\nimport {useControlledState as $49BJP$useControlledState} from \"@react-stately/utils\";\nimport {useOverlayTriggerState as $49BJP$useOverlayTriggerState} from \"@react-stately/overlays\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {\n var _collection_getItem, _collection_getItem1;\n let { defaultFilter: defaultFilter, menuTrigger: menuTrigger = 'input', allowsEmptyCollection: allowsEmptyCollection = false, allowsCustomValue: allowsCustomValue, shouldCloseOnBlur: shouldCloseOnBlur = true } = props;\n let [showAllItems, setShowAllItems] = (0, $49BJP$useState)(false);\n let [isFocused, setFocusedState] = (0, $49BJP$useState)(false);\n let [focusStrategy, setFocusStrategy] = (0, $49BJP$useState)(null);\n let onSelectionChange = (key)=>{\n if (props.onSelectionChange) props.onSelectionChange(key);\n // If key is the same, reset the inputValue and close the menu\n // (scenario: user clicks on already selected option)\n if (key === selectedKey) {\n resetInputValue();\n closeMenu();\n }\n };\n var _props_items;\n let { collection: collection, selectionManager: selectionManager, selectedKey: selectedKey, setSelectedKey: setSelectedKey, selectedItem: selectedItem, disabledKeys: disabledKeys } = (0, $49BJP$useSingleSelectListState)({\n ...props,\n onSelectionChange: onSelectionChange,\n items: (_props_items = props.items) !== null && _props_items !== void 0 ? _props_items : props.defaultItems\n });\n var _props_defaultInputValue, _ref;\n let [inputValue, setInputValue] = (0, $49BJP$useControlledState)(props.inputValue, (_ref = (_props_defaultInputValue = props.defaultInputValue) !== null && _props_defaultInputValue !== void 0 ? _props_defaultInputValue : (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _ref !== void 0 ? _ref : '', props.onInputChange);\n // Preserve original collection so we can show all items on demand\n let originalCollection = collection;\n let filteredCollection = (0, $49BJP$useMemo)(()=>// No default filter if items are controlled.\n props.items != null || !defaultFilter ? collection : $a9e7382a7d111cb5$var$filterCollection(collection, inputValue, defaultFilter), [\n collection,\n inputValue,\n defaultFilter,\n props.items\n ]);\n let [lastCollection, setLastCollection] = (0, $49BJP$useState)(filteredCollection);\n // Track what action is attempting to open the menu\n let menuOpenTrigger = (0, $49BJP$useRef)('focus');\n let onOpenChange = (open)=>{\n if (props.onOpenChange) props.onOpenChange(open, open ? menuOpenTrigger.current : undefined);\n selectionManager.setFocused(open);\n if (!open) selectionManager.setFocusedKey(null);\n };\n let triggerState = (0, $49BJP$useOverlayTriggerState)({\n ...props,\n onOpenChange: onOpenChange,\n isOpen: undefined,\n defaultOpen: undefined\n });\n let open = (focusStrategy = null, trigger)=>{\n let displayAllItems = trigger === 'manual' || trigger === 'focus' && menuTrigger === 'focus';\n // Prevent open operations from triggering if there is nothing to display\n // Also prevent open operations from triggering if items are uncontrolled but defaultItems is empty, even if displayAllItems is true.\n // This is to prevent comboboxes with empty defaultItems from opening but allow controlled items comboboxes to open even if the inital list is empty (assumption is user will provide swap the empty list with a base list via onOpenChange returning `menuTrigger` manual)\n if (allowsEmptyCollection || filteredCollection.size > 0 || displayAllItems && originalCollection.size > 0 || props.items) {\n if (displayAllItems && !triggerState.isOpen && props.items === undefined) // Show all items if menu is manually opened. Only care about this if items are undefined\n setShowAllItems(true);\n menuOpenTrigger.current = trigger;\n setFocusStrategy(focusStrategy);\n triggerState.open();\n }\n };\n let toggle = (focusStrategy = null, trigger)=>{\n let displayAllItems = trigger === 'manual' || trigger === 'focus' && menuTrigger === 'focus';\n // If the menu is closed and there is nothing to display, early return so toggle isn't called to prevent extraneous onOpenChange\n if (!(allowsEmptyCollection || filteredCollection.size > 0 || displayAllItems && originalCollection.size > 0 || props.items) && !triggerState.isOpen) return;\n if (displayAllItems && !triggerState.isOpen && props.items === undefined) // Show all items if menu is toggled open. Only care about this if items are undefined\n setShowAllItems(true);\n // Only update the menuOpenTrigger if menu is currently closed\n if (!triggerState.isOpen) menuOpenTrigger.current = trigger;\n toggleMenu(focusStrategy);\n };\n let updateLastCollection = (0, $49BJP$useCallback)(()=>{\n setLastCollection(showAllItems ? originalCollection : filteredCollection);\n }, [\n showAllItems,\n originalCollection,\n filteredCollection\n ]);\n // If menu is going to close, save the current collection so we can freeze the displayed collection when the\n // user clicks outside the popover to close the menu. Prevents the menu contents from updating as the menu closes.\n let toggleMenu = (0, $49BJP$useCallback)((focusStrategy = null)=>{\n if (triggerState.isOpen) updateLastCollection();\n setFocusStrategy(focusStrategy);\n triggerState.toggle();\n }, [\n triggerState,\n updateLastCollection\n ]);\n let closeMenu = (0, $49BJP$useCallback)(()=>{\n if (triggerState.isOpen) {\n updateLastCollection();\n triggerState.close();\n }\n }, [\n triggerState,\n updateLastCollection\n ]);\n let [lastValue, setLastValue] = (0, $49BJP$useState)(inputValue);\n let resetInputValue = ()=>{\n var _collection_getItem;\n var _collection_getItem_textValue;\n let itemText = (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : '';\n setLastValue(itemText);\n setInputValue(itemText);\n };\n var _props_selectedKey, _ref1;\n let lastSelectedKey = (0, $49BJP$useRef)((_ref1 = (_props_selectedKey = props.selectedKey) !== null && _props_selectedKey !== void 0 ? _props_selectedKey : props.defaultSelectedKey) !== null && _ref1 !== void 0 ? _ref1 : null);\n var _collection_getItem_textValue;\n let lastSelectedKeyText = (0, $49BJP$useRef)((_collection_getItem_textValue = (_collection_getItem1 = collection.getItem(selectedKey)) === null || _collection_getItem1 === void 0 ? void 0 : _collection_getItem1.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : '');\n // intentional omit dependency array, want this to happen on every render\n // eslint-disable-next-line react-hooks/exhaustive-deps\n (0, $49BJP$useEffect)(()=>{\n var _collection_getItem;\n // Open and close menu automatically when the input value changes if the input is focused,\n // and there are items in the collection or allowEmptyCollection is true.\n if (isFocused && (filteredCollection.size > 0 || allowsEmptyCollection) && !triggerState.isOpen && inputValue !== lastValue && menuTrigger !== 'manual') open(null, 'input');\n // Close the menu if the collection is empty. Don't close menu if filtered collection size is 0\n // but we are currently showing all items via button press\n if (!showAllItems && !allowsEmptyCollection && triggerState.isOpen && filteredCollection.size === 0) closeMenu();\n // Close when an item is selected.\n if (selectedKey != null && selectedKey !== lastSelectedKey.current) closeMenu();\n // Clear focused key when input value changes and display filtered collection again.\n if (inputValue !== lastValue) {\n selectionManager.setFocusedKey(null);\n setShowAllItems(false);\n // Set selectedKey to null when the user clears the input.\n // If controlled, this is the application developer's responsibility.\n if (inputValue === '' && (props.inputValue === undefined || props.selectedKey === undefined)) setSelectedKey(null);\n }\n // If the selectedKey changed, update the input value.\n // Do nothing if both inputValue and selectedKey are controlled.\n // In this case, it's the user's responsibility to update inputValue in onSelectionChange.\n if (selectedKey !== lastSelectedKey.current && (props.inputValue === undefined || props.selectedKey === undefined)) resetInputValue();\n else if (lastValue !== inputValue) setLastValue(inputValue);\n var _collection_getItem_textValue;\n // Update the inputValue if the selected item's text changes from its last tracked value.\n // This is to handle cases where a selectedKey is specified but the items aren't available (async loading) or the selected item's text value updates.\n // Only reset if the user isn't currently within the field so we don't erroneously modify user input.\n // If inputValue is controlled, it is the user's responsibility to update the inputValue when items change.\n let selectedItemText = (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : '';\n if (!isFocused && selectedKey != null && props.inputValue === undefined && selectedKey === lastSelectedKey.current) {\n if (lastSelectedKeyText.current !== selectedItemText) {\n setLastValue(selectedItemText);\n setInputValue(selectedItemText);\n }\n }\n lastSelectedKey.current = selectedKey;\n lastSelectedKeyText.current = selectedItemText;\n });\n let validation = (0, $49BJP$useFormValidationState)({\n ...props,\n value: (0, $49BJP$useMemo)(()=>({\n inputValue: inputValue,\n selectedKey: selectedKey\n }), [\n inputValue,\n selectedKey\n ])\n });\n // Revert input value and close menu\n let revert = ()=>{\n if (allowsCustomValue && selectedKey == null) commitCustomValue();\n else commitSelection();\n };\n let commitCustomValue = ()=>{\n lastSelectedKey.current = null;\n setSelectedKey(null);\n closeMenu();\n };\n let commitSelection = ()=>{\n // If multiple things are controlled, call onSelectionChange\n if (props.selectedKey !== undefined && props.inputValue !== undefined) {\n var _collection_getItem;\n props.onSelectionChange(selectedKey);\n var _collection_getItem_textValue;\n // Stop menu from reopening from useEffect\n let itemText = (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : '';\n setLastValue(itemText);\n closeMenu();\n } else {\n // If only a single aspect of combobox is controlled, reset input value and close menu for the user\n resetInputValue();\n closeMenu();\n }\n };\n const commitValue = ()=>{\n if (allowsCustomValue) {\n var _collection_getItem;\n var _collection_getItem_textValue;\n const itemText = (_collection_getItem_textValue = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : '';\n inputValue === itemText ? commitSelection() : commitCustomValue();\n } else // Reset inputValue and close menu\n commitSelection();\n };\n let commit = ()=>{\n if (triggerState.isOpen && selectionManager.focusedKey != null) {\n // Reset inputValue and close menu here if the selected key is already the focused key. Otherwise\n // fire onSelectionChange to allow the application to control the closing.\n if (selectedKey === selectionManager.focusedKey) commitSelection();\n else setSelectedKey(selectionManager.focusedKey);\n } else commitValue();\n };\n let valueOnFocus = (0, $49BJP$useRef)(inputValue);\n let setFocused = (isFocused)=>{\n if (isFocused) {\n valueOnFocus.current = inputValue;\n if (menuTrigger === 'focus' && !props.isReadOnly) open(null, 'focus');\n } else {\n if (shouldCloseOnBlur) commitValue();\n if (inputValue !== valueOnFocus.current) validation.commitValidation();\n }\n setFocusedState(isFocused);\n };\n let displayedCollection = (0, $49BJP$useMemo)(()=>{\n if (triggerState.isOpen) {\n if (showAllItems) return originalCollection;\n else return filteredCollection;\n } else return lastCollection;\n }, [\n triggerState.isOpen,\n originalCollection,\n filteredCollection,\n showAllItems,\n lastCollection\n ]);\n return {\n ...validation,\n ...triggerState,\n focusStrategy: focusStrategy,\n toggle: toggle,\n open: open,\n close: commitValue,\n selectionManager: selectionManager,\n selectedKey: selectedKey,\n setSelectedKey: setSelectedKey,\n disabledKeys: disabledKeys,\n isFocused: isFocused,\n setFocused: setFocused,\n selectedItem: selectedItem,\n collection: displayedCollection,\n inputValue: inputValue,\n setInputValue: setInputValue,\n commit: commit,\n revert: revert\n };\n}\nfunction $a9e7382a7d111cb5$var$filterCollection(collection, inputValue, filter) {\n return new (0, $49BJP$ListCollection)($a9e7382a7d111cb5$var$filterNodes(collection, collection, inputValue, filter));\n}\nfunction $a9e7382a7d111cb5$var$filterNodes(collection, nodes, inputValue, filter) {\n let filteredNode = [];\n for (let node of nodes){\n if (node.type === 'section' && node.hasChildNodes) {\n let filtered = $a9e7382a7d111cb5$var$filterNodes(collection, (0, $49BJP$getChildNodes)(node, collection), inputValue, filter);\n if ([\n ...filtered\n ].some((node)=>node.type === 'item')) filteredNode.push({\n ...node,\n childNodes: filtered\n });\n } else if (node.type === 'item' && filter(node.textValue, inputValue)) filteredNode.push({\n ...node\n });\n else if (node.type !== 'item') filteredNode.push({\n ...node\n });\n }\n return filteredNode;\n}\n\n\nexport {$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e as useComboBoxState};\n","import {useListState as $e72dd72e1c76a225$export$2f645645f7bca764} from \"./useListState.mjs\";\nimport {useControlledState as $eBozH$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $eBozH$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {\n var _props_defaultSelectedKey;\n let [selectedKey, setSelectedKey] = (0, $eBozH$useControlledState)(props.selectedKey, (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : null, props.onSelectionChange);\n let selectedKeys = (0, $eBozH$useMemo)(()=>selectedKey != null ? [\n selectedKey\n ] : [], [\n selectedKey\n ]);\n let { collection: collection, disabledKeys: disabledKeys, selectionManager: selectionManager } = (0, $e72dd72e1c76a225$export$2f645645f7bca764)({\n ...props,\n selectionMode: 'single',\n disallowEmptySelection: true,\n allowDuplicateSelectionEvents: true,\n selectedKeys: selectedKeys,\n onSelectionChange: (keys)=>{\n var _keys_values_next_value;\n let key = (_keys_values_next_value = keys.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null;\n // Always fire onSelectionChange, even if the key is the same\n // as the current key (useControlledState does not).\n if (key === selectedKey && props.onSelectionChange) props.onSelectionChange(key);\n setSelectedKey(key);\n }\n });\n let selectedItem = selectedKey != null ? collection.getItem(selectedKey) : null;\n return {\n collection: collection,\n disabledKeys: disabledKeys,\n selectionManager: selectionManager,\n selectedKey: selectedKey,\n setSelectedKey: setSelectedKey,\n selectedItem: selectedItem\n };\n}\n\n\nexport {$a0d645289fe9b86b$export$e7f05e985daf4b5f as useSingleSelectListState};\n","import {useCallback as $hnMvi$useCallback} from \"react\";\nimport {useControlledState as $hnMvi$useControlledState} from \"@react-stately/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $fc909762b330b746$export$61c6a8c84e605fb6(props) {\n let [isOpen, setOpen] = (0, $hnMvi$useControlledState)(props.isOpen, props.defaultOpen || false, props.onOpenChange);\n const open = (0, $hnMvi$useCallback)(()=>{\n setOpen(true);\n }, [\n setOpen\n ]);\n const close = (0, $hnMvi$useCallback)(()=>{\n setOpen(false);\n }, [\n setOpen\n ]);\n const toggle = (0, $hnMvi$useCallback)(()=>{\n setOpen(!isOpen);\n }, [\n setOpen,\n isOpen\n ]);\n return {\n isOpen: isOpen,\n setOpen: setOpen,\n open: open,\n close: close,\n toggle: toggle\n };\n}\n\n\nexport {$fc909762b330b746$export$61c6a8c84e605fb6 as useOverlayTriggerState};\n","var $02cb4c75c506befe$exports = {};\n$02cb4c75c506befe$exports = {\n \"buttonLabel\": `\\u{639}\\u{631}\\u{636} \\u{627}\\u{644}\\u{645}\\u{642}\\u{62A}\\u{631}\\u{62D}\\u{627}\\u{62A}`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} \\u{62E}\\u{64A}\\u{627}\\u{631}`,\n other: ()=>`${formatter.number(args.optionCount)} \\u{62E}\\u{64A}\\u{627}\\u{631}\\u{627}\\u{62A}`\n })} \\u{645}\\u{62A}\\u{627}\\u{62D}\\u{629}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`\\u{627}\\u{644}\\u{645}\\u{62C}\\u{645}\\u{648}\\u{639}\\u{629} \\u{627}\\u{644}\\u{645}\\u{62F}\\u{62E}\\u{644}\\u{629} ${args.groupTitle}, \\u{645}\\u{639} ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} \\u{62E}\\u{64A}\\u{627}\\u{631}`,\n other: ()=>`${formatter.number(args.groupCount)} \\u{62E}\\u{64A}\\u{627}\\u{631}\\u{627}\\u{62A}`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, \\u{645}\\u{62D}\\u{62F}\\u{62F}`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `\\u{645}\\u{642}\\u{62A}\\u{631}\\u{62D}\\u{627}\\u{62A}`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}\\u{60C} \\u{645}\\u{62D}\\u{62F}\\u{62F}`\n};\n\n\nexport {$02cb4c75c506befe$exports as default};\n","import $hlgbr$arAEmodulejs from \"./ar-AE.mjs\";\nimport $hlgbr$bgBGmodulejs from \"./bg-BG.mjs\";\nimport $hlgbr$csCZmodulejs from \"./cs-CZ.mjs\";\nimport $hlgbr$daDKmodulejs from \"./da-DK.mjs\";\nimport $hlgbr$deDEmodulejs from \"./de-DE.mjs\";\nimport $hlgbr$elGRmodulejs from \"./el-GR.mjs\";\nimport $hlgbr$enUSmodulejs from \"./en-US.mjs\";\nimport $hlgbr$esESmodulejs from \"./es-ES.mjs\";\nimport $hlgbr$etEEmodulejs from \"./et-EE.mjs\";\nimport $hlgbr$fiFImodulejs from \"./fi-FI.mjs\";\nimport $hlgbr$frFRmodulejs from \"./fr-FR.mjs\";\nimport $hlgbr$heILmodulejs from \"./he-IL.mjs\";\nimport $hlgbr$hrHRmodulejs from \"./hr-HR.mjs\";\nimport $hlgbr$huHUmodulejs from \"./hu-HU.mjs\";\nimport $hlgbr$itITmodulejs from \"./it-IT.mjs\";\nimport $hlgbr$jaJPmodulejs from \"./ja-JP.mjs\";\nimport $hlgbr$koKRmodulejs from \"./ko-KR.mjs\";\nimport $hlgbr$ltLTmodulejs from \"./lt-LT.mjs\";\nimport $hlgbr$lvLVmodulejs from \"./lv-LV.mjs\";\nimport $hlgbr$nbNOmodulejs from \"./nb-NO.mjs\";\nimport $hlgbr$nlNLmodulejs from \"./nl-NL.mjs\";\nimport $hlgbr$plPLmodulejs from \"./pl-PL.mjs\";\nimport $hlgbr$ptBRmodulejs from \"./pt-BR.mjs\";\nimport $hlgbr$ptPTmodulejs from \"./pt-PT.mjs\";\nimport $hlgbr$roROmodulejs from \"./ro-RO.mjs\";\nimport $hlgbr$ruRUmodulejs from \"./ru-RU.mjs\";\nimport $hlgbr$skSKmodulejs from \"./sk-SK.mjs\";\nimport $hlgbr$slSImodulejs from \"./sl-SI.mjs\";\nimport $hlgbr$srSPmodulejs from \"./sr-SP.mjs\";\nimport $hlgbr$svSEmodulejs from \"./sv-SE.mjs\";\nimport $hlgbr$trTRmodulejs from \"./tr-TR.mjs\";\nimport $hlgbr$ukUAmodulejs from \"./uk-UA.mjs\";\nimport $hlgbr$zhCNmodulejs from \"./zh-CN.mjs\";\nimport $hlgbr$zhTWmodulejs from \"./zh-TW.mjs\";\n\nvar $de5926a92e8ebc5b$exports = {};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n$de5926a92e8ebc5b$exports = {\n \"ar-AE\": $hlgbr$arAEmodulejs,\n \"bg-BG\": $hlgbr$bgBGmodulejs,\n \"cs-CZ\": $hlgbr$csCZmodulejs,\n \"da-DK\": $hlgbr$daDKmodulejs,\n \"de-DE\": $hlgbr$deDEmodulejs,\n \"el-GR\": $hlgbr$elGRmodulejs,\n \"en-US\": $hlgbr$enUSmodulejs,\n \"es-ES\": $hlgbr$esESmodulejs,\n \"et-EE\": $hlgbr$etEEmodulejs,\n \"fi-FI\": $hlgbr$fiFImodulejs,\n \"fr-FR\": $hlgbr$frFRmodulejs,\n \"he-IL\": $hlgbr$heILmodulejs,\n \"hr-HR\": $hlgbr$hrHRmodulejs,\n \"hu-HU\": $hlgbr$huHUmodulejs,\n \"it-IT\": $hlgbr$itITmodulejs,\n \"ja-JP\": $hlgbr$jaJPmodulejs,\n \"ko-KR\": $hlgbr$koKRmodulejs,\n \"lt-LT\": $hlgbr$ltLTmodulejs,\n \"lv-LV\": $hlgbr$lvLVmodulejs,\n \"nb-NO\": $hlgbr$nbNOmodulejs,\n \"nl-NL\": $hlgbr$nlNLmodulejs,\n \"pl-PL\": $hlgbr$plPLmodulejs,\n \"pt-BR\": $hlgbr$ptBRmodulejs,\n \"pt-PT\": $hlgbr$ptPTmodulejs,\n \"ro-RO\": $hlgbr$roROmodulejs,\n \"ru-RU\": $hlgbr$ruRUmodulejs,\n \"sk-SK\": $hlgbr$skSKmodulejs,\n \"sl-SI\": $hlgbr$slSImodulejs,\n \"sr-SP\": $hlgbr$srSPmodulejs,\n \"sv-SE\": $hlgbr$svSEmodulejs,\n \"tr-TR\": $hlgbr$trTRmodulejs,\n \"uk-UA\": $hlgbr$ukUAmodulejs,\n \"zh-CN\": $hlgbr$zhCNmodulejs,\n \"zh-TW\": $hlgbr$zhTWmodulejs\n};\n\n\nexport {$de5926a92e8ebc5b$exports as default};\n","var $568b8163f1e56faf$exports = {};\n$568b8163f1e56faf$exports = {\n \"buttonLabel\": `\\u{41F}\\u{43E}\\u{43A}\\u{430}\\u{436}\\u{438} \\u{43F}\\u{440}\\u{435}\\u{434}\\u{43B}\\u{43E}\\u{436}\\u{435}\\u{43D}\\u{438}\\u{44F}`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} \\u{43E}\\u{43F}\\u{446}\\u{438}\\u{44F}`,\n other: ()=>`${formatter.number(args.optionCount)} \\u{43E}\\u{43F}\\u{446}\\u{438}\\u{438}`\n })} \\u{43D}\\u{430} \\u{440}\\u{430}\\u{437}\\u{43F}\\u{43E}\\u{43B}\\u{43E}\\u{436}\\u{435}\\u{43D}\\u{438}\\u{435}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`\\u{412}\\u{44A}\\u{432}\\u{435}\\u{434}\\u{435}\\u{43D}\\u{430} \\u{433}\\u{440}\\u{443}\\u{43F}\\u{430} ${args.groupTitle}, \\u{441} ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} \\u{43E}\\u{43F}\\u{446}\\u{438}\\u{44F}`,\n other: ()=>`${formatter.number(args.groupCount)} \\u{43E}\\u{43F}\\u{446}\\u{438}\\u{438}`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, \\u{438}\\u{437}\\u{431}\\u{440}\\u{430}\\u{43D}\\u{438}`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `\\u{41F}\\u{440}\\u{435}\\u{434}\\u{43B}\\u{43E}\\u{436}\\u{435}\\u{43D}\\u{438}\\u{44F}`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{438}\\u{437}\\u{431}\\u{440}\\u{430}\\u{43D}\\u{438}`\n};\n\n\nexport {$568b8163f1e56faf$exports as default};\n","var $87581c0202d106b8$exports = {};\n$87581c0202d106b8$exports = {\n \"buttonLabel\": `Zobrazit doporu\\u{10D}en\\xed`,\n \"countAnnouncement\": (args, formatter)=>`K dispozici ${formatter.plural(args.optionCount, {\n one: ()=>`je ${formatter.number(args.optionCount)} mo\\u{17E}nost`,\n other: ()=>`jsou/je ${formatter.number(args.optionCount)} mo\\u{17E}nosti/-\\xed`\n })}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Zadan\\xe1 skupina \\u{201E}${args.groupTitle}\\u{201C} ${formatter.plural(args.groupCount, {\n one: ()=>`s ${formatter.number(args.groupCount)} mo\\u{17E}nost\\xed`,\n other: ()=>`se ${formatter.number(args.groupCount)} mo\\u{17E}nostmi`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: ` (vybr\\xe1no)`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `N\\xe1vrhy`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, vybr\\xe1no`\n};\n\n\nexport {$87581c0202d106b8$exports as default};\n","var $a10a0369f5433ed1$exports = {};\n$a10a0369f5433ed1$exports = {\n \"buttonLabel\": `Vis forslag`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} mulighed tilg\\xe6ngelig`,\n other: ()=>`${formatter.number(args.optionCount)} muligheder tilg\\xe6ngelige`\n })}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Angivet gruppe ${args.groupTitle}, med ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} mulighed`,\n other: ()=>`${formatter.number(args.groupCount)} muligheder`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, valgt`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Forslag`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, valgt`\n};\n\n\nexport {$a10a0369f5433ed1$exports as default};\n","var $bfd288727d5cb166$exports = {};\n$bfd288727d5cb166$exports = {\n \"buttonLabel\": `Empfehlungen anzeigen`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} Option`,\n other: ()=>`${formatter.number(args.optionCount)} Optionen`\n })} verf\\xfcgbar.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Eingetretene Gruppe ${args.groupTitle}, mit ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} Option`,\n other: ()=>`${formatter.number(args.groupCount)} Optionen`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, ausgew\\xe4hlt`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Empfehlungen`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, ausgew\\xe4hlt`\n};\n\n\nexport {$bfd288727d5cb166$exports as default};\n","var $ca177778f9a74e3c$exports = {};\n$ca177778f9a74e3c$exports = {\n \"buttonLabel\": `\\u{3A0}\\u{3C1}\\u{3BF}\\u{3B2}\\u{3BF}\\u{3BB}\\u{3AE} \\u{3C0}\\u{3C1}\\u{3BF}\\u{3C4}\\u{3AC}\\u{3C3}\\u{3B5}\\u{3C9}\\u{3BD}`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} \\u{3B5}\\u{3C0}\\u{3B9}\\u{3BB}\\u{3BF}\\u{3B3}\\u{3AE}`,\n other: ()=>`${formatter.number(args.optionCount)} \\u{3B5}\\u{3C0}\\u{3B9}\\u{3BB}\\u{3BF}\\u{3B3}\\u{3AD}\\u{3C2} `\n })} \\u{3B4}\\u{3B9}\\u{3B1}\\u{3B8}\\u{3AD}\\u{3C3}\\u{3B9}\\u{3BC}\\u{3B5}\\u{3C2}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`\\u{395}\\u{3B9}\\u{3C3}\\u{3B1}\\u{3B3}\\u{3BC}\\u{3AD}\\u{3BD}\\u{3B7} \\u{3BF}\\u{3BC}\\u{3AC}\\u{3B4}\\u{3B1} ${args.groupTitle}, \\u{3BC}\\u{3B5} ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} \\u{3B5}\\u{3C0}\\u{3B9}\\u{3BB}\\u{3BF}\\u{3B3}\\u{3AE}`,\n other: ()=>`${formatter.number(args.groupCount)} \\u{3B5}\\u{3C0}\\u{3B9}\\u{3BB}\\u{3BF}\\u{3B3}\\u{3AD}\\u{3C2}`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, \\u{3B5}\\u{3C0}\\u{3B9}\\u{3BB}\\u{3B5}\\u{3B3}\\u{3BC}\\u{3AD}\\u{3BD}\\u{3BF}`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `\\u{3A0}\\u{3C1}\\u{3BF}\\u{3C4}\\u{3AC}\\u{3C3}\\u{3B5}\\u{3B9}\\u{3C2}`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{3B5}\\u{3C0}\\u{3B9}\\u{3BB}\\u{3AD}\\u{3C7}\\u{3B8}\\u{3B7}\\u{3BA}\\u{3B5}`\n};\n\n\nexport {$ca177778f9a74e3c$exports as default};\n","var $9b5aa79ef84beb6c$exports = {};\n$9b5aa79ef84beb6c$exports = {\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Entered group ${args.groupTitle}, with ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} option`,\n other: ()=>`${formatter.number(args.groupCount)} options`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, selected`,\n other: ``\n }, args.isSelected)}`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} option`,\n other: ()=>`${formatter.number(args.optionCount)} options`\n })} available.`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, selected`,\n \"buttonLabel\": `Show suggestions`,\n \"listboxLabel\": `Suggestions`\n};\n\n\nexport {$9b5aa79ef84beb6c$exports as default};\n","var $57968e8209de2557$exports = {};\n$57968e8209de2557$exports = {\n \"buttonLabel\": `Mostrar sugerencias`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} opci\\xf3n`,\n other: ()=>`${formatter.number(args.optionCount)} opciones`\n })} disponible(s).`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Se ha unido al grupo ${args.groupTitle}, con ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} opci\\xf3n`,\n other: ()=>`${formatter.number(args.groupCount)} opciones`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, seleccionado`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Sugerencias`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, seleccionado`\n};\n\n\nexport {$57968e8209de2557$exports as default};\n","var $60690790bf4c1c6a$exports = {};\n$60690790bf4c1c6a$exports = {\n \"buttonLabel\": `Kuva soovitused`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} valik`,\n other: ()=>`${formatter.number(args.optionCount)} valikud`\n })} saadaval.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Sisestatud r\\xfchm ${args.groupTitle}, valikuga ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} valik`,\n other: ()=>`${formatter.number(args.groupCount)} valikud`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, valitud`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Soovitused`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, valitud`\n};\n\n\nexport {$60690790bf4c1c6a$exports as default};\n","var $1101246e8c7d9357$exports = {};\n$1101246e8c7d9357$exports = {\n \"buttonLabel\": `N\\xe4yt\\xe4 ehdotukset`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} vaihtoehto`,\n other: ()=>`${formatter.number(args.optionCount)} vaihtoehdot`\n })} saatavilla.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Mentiin ryhm\\xe4\\xe4n ${args.groupTitle}, ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} vaihtoehdon`,\n other: ()=>`${formatter.number(args.groupCount)} vaihtoehdon`\n })} kanssa.`,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, valittu`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Ehdotukset`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, valittu`\n};\n\n\nexport {$1101246e8c7d9357$exports as default};\n","var $6404b5cb5b241730$exports = {};\n$6404b5cb5b241730$exports = {\n \"buttonLabel\": `Afficher les suggestions`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} option`,\n other: ()=>`${formatter.number(args.optionCount)} options`\n })} disponible(s).`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Groupe ${args.groupTitle} rejoint, avec ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} option`,\n other: ()=>`${formatter.number(args.groupCount)} options`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, s\\xe9lectionn\\xe9(s)`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Suggestions`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, s\\xe9lectionn\\xe9`\n};\n\n\nexport {$6404b5cb5b241730$exports as default};\n","var $dfeafa702e92e31f$exports = {};\n$dfeafa702e92e31f$exports = {\n \"buttonLabel\": `\\u{5D4}\\u{5E6}\\u{5D2} \\u{5D4}\\u{5E6}\\u{5E2}\\u{5D5}\\u{5EA}`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`\\u{5D0}\\u{5E4}\\u{5E9}\\u{5E8}\\u{5D5}\\u{5EA} ${formatter.number(args.optionCount)}`,\n other: ()=>`${formatter.number(args.optionCount)} \\u{5D0}\\u{5E4}\\u{5E9}\\u{5E8}\\u{5D5}\\u{5D9}\\u{5D5}\\u{5EA}`\n })} \\u{5D1}\\u{5DE}\\u{5E6}\\u{5D1} \\u{5D6}\\u{5DE}\\u{5D9}\\u{5DF}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`\\u{5E0}\\u{5DB}\\u{5E0}\\u{5E1} \\u{5DC}\\u{5E7}\\u{5D1}\\u{5D5}\\u{5E6}\\u{5D4} ${args.groupTitle}, \\u{5E2}\\u{5DD} ${formatter.plural(args.groupCount, {\n one: ()=>`\\u{5D0}\\u{5E4}\\u{5E9}\\u{5E8}\\u{5D5}\\u{5EA} ${formatter.number(args.groupCount)}`,\n other: ()=>`${formatter.number(args.groupCount)} \\u{5D0}\\u{5E4}\\u{5E9}\\u{5E8}\\u{5D5}\\u{5D9}\\u{5D5}\\u{5EA}`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, \\u{5E0}\\u{5D1}\\u{5D7}\\u{5E8}`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `\\u{5D4}\\u{5E6}\\u{5E2}\\u{5D5}\\u{5EA}`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{5E0}\\u{5D1}\\u{5D7}\\u{5E8}`\n};\n\n\nexport {$dfeafa702e92e31f$exports as default};\n","var $2d125e0b34676352$exports = {};\n$2d125e0b34676352$exports = {\n \"buttonLabel\": `Prika\\u{17E}i prijedloge`,\n \"countAnnouncement\": (args, formatter)=>`Dostupno jo\\u{161}: ${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} opcija`,\n other: ()=>`${formatter.number(args.optionCount)} opcije/a`\n })}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Unesena skupina ${args.groupTitle}, s ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} opcijom`,\n other: ()=>`${formatter.number(args.groupCount)} opcije/a`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, odabranih`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Prijedlozi`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, odabrano`\n};\n\n\nexport {$2d125e0b34676352$exports as default};\n","var $ea029611d7634059$exports = {};\n$ea029611d7634059$exports = {\n \"buttonLabel\": `Javaslatok megjelen\\xedt\\xe9se`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} lehet\\u{151}s\\xe9g`,\n other: ()=>`${formatter.number(args.optionCount)} lehet\\u{151}s\\xe9g`\n })} \\xe1ll rendelkez\\xe9sre.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Bel\\xe9pett a(z) ${args.groupTitle} csoportba, amely ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} lehet\\u{151}s\\xe9get`,\n other: ()=>`${formatter.number(args.groupCount)} lehet\\u{151}s\\xe9get`\n })} tartalmaz. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, kijel\\xf6lve`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Javaslatok`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, kijel\\xf6lve`\n};\n\n\nexport {$ea029611d7634059$exports as default};\n","var $77f075bb86ad7091$exports = {};\n$77f075bb86ad7091$exports = {\n \"buttonLabel\": `Mostra suggerimenti`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} opzione disponibile`,\n other: ()=>`${formatter.number(args.optionCount)} opzioni disponibili`\n })}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Ingresso nel gruppo ${args.groupTitle}, con ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} opzione`,\n other: ()=>`${formatter.number(args.groupCount)} opzioni`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, selezionato`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Suggerimenti`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, selezionato`\n};\n\n\nexport {$77f075bb86ad7091$exports as default};\n","var $6e87462e84907983$exports = {};\n$6e87462e84907983$exports = {\n \"buttonLabel\": `\\u{5019}\\u{88DC}\\u{3092}\\u{8868}\\u{793A}`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} \\u{500B}\\u{306E}\\u{30AA}\\u{30D7}\\u{30B7}\\u{30E7}\\u{30F3}`,\n other: ()=>`${formatter.number(args.optionCount)} \\u{500B}\\u{306E}\\u{30AA}\\u{30D7}\\u{30B7}\\u{30E7}\\u{30F3}`\n })}\\u{3092}\\u{5229}\\u{7528}\\u{3067}\\u{304D}\\u{307E}\\u{3059}\\u{3002}`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`\\u{5165}\\u{529B}\\u{3055}\\u{308C}\\u{305F}\\u{30B0}\\u{30EB}\\u{30FC}\\u{30D7} ${args.groupTitle}\\u{3001}${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} \\u{500B}\\u{306E}\\u{30AA}\\u{30D7}\\u{30B7}\\u{30E7}\\u{30F3}`,\n other: ()=>`${formatter.number(args.groupCount)} \\u{500B}\\u{306E}\\u{30AA}\\u{30D7}\\u{30B7}\\u{30E7}\\u{30F3}`\n })}\\u{3092}\\u{542B}\\u{3080}\\u{3002}`,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `\\u{3001}\\u{9078}\\u{629E}\\u{6E08}\\u{307F}`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `\\u{5019}\\u{88DC}`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}\\u{3001}\\u{9078}\\u{629E}\\u{6E08}\\u{307F}`\n};\n\n\nexport {$6e87462e84907983$exports as default};\n","var $9246f2c6edc6b232$exports = {};\n$9246f2c6edc6b232$exports = {\n \"buttonLabel\": `\\u{C81C}\\u{C548} \\u{C0AC}\\u{D56D} \\u{D45C}\\u{C2DC}`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)}\\u{AC1C} \\u{C635}\\u{C158}`,\n other: ()=>`${formatter.number(args.optionCount)}\\u{AC1C} \\u{C635}\\u{C158}`\n })}\\u{C744} \\u{C0AC}\\u{C6A9}\\u{D560} \\u{C218} \\u{C788}\\u{C2B5}\\u{B2C8}\\u{B2E4}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`\\u{C785}\\u{B825}\\u{D55C} \\u{ADF8}\\u{B8F9} ${args.groupTitle}, ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)}\\u{AC1C} \\u{C635}\\u{C158}`,\n other: ()=>`${formatter.number(args.groupCount)}\\u{AC1C} \\u{C635}\\u{C158}`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, \\u{C120}\\u{D0DD}\\u{B428}`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `\\u{C81C}\\u{C548}`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{C120}\\u{D0DD}\\u{B428}`\n};\n\n\nexport {$9246f2c6edc6b232$exports as default};\n","var $e587accc6c0a434c$exports = {};\n$e587accc6c0a434c$exports = {\n \"buttonLabel\": `Rodyti pasi\\u{16B}lymus`,\n \"countAnnouncement\": (args, formatter)=>`Yra ${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} parinktis`,\n other: ()=>`${formatter.number(args.optionCount)} parinktys (-i\\u{173})`\n })}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`\\u{12E}vesta grup\\u{117} ${args.groupTitle}, su ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} parinktimi`,\n other: ()=>`${formatter.number(args.groupCount)} parinktimis (-i\\u{173})`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, pasirinkta`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Pasi\\u{16B}lymai`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, pasirinkta`\n};\n\n\nexport {$e587accc6c0a434c$exports as default};\n","var $03a1900e7400b5ab$exports = {};\n$03a1900e7400b5ab$exports = {\n \"buttonLabel\": `R\\u{101}d\\u{12B}t ieteikumus`,\n \"countAnnouncement\": (args, formatter)=>`Pieejamo opciju skaits: ${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} opcija`,\n other: ()=>`${formatter.number(args.optionCount)} opcijas`\n })}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Ievad\\u{12B}ta grupa ${args.groupTitle}, ar ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} opciju`,\n other: ()=>`${formatter.number(args.groupCount)} opcij\\u{101}m`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, atlas\\u{12B}ta`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Ieteikumi`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, atlas\\u{12B}ta`\n};\n\n\nexport {$03a1900e7400b5ab$exports as default};\n","var $1387676441be6cf6$exports = {};\n$1387676441be6cf6$exports = {\n \"buttonLabel\": `Vis forslag`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} alternativ`,\n other: ()=>`${formatter.number(args.optionCount)} alternativer`\n })} finnes.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Angitt gruppe ${args.groupTitle}, med ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} alternativ`,\n other: ()=>`${formatter.number(args.groupCount)} alternativer`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, valgt`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Forslag`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, valgt`\n};\n\n\nexport {$1387676441be6cf6$exports as default};\n","var $17e82ebf0f8ab91f$exports = {};\n$17e82ebf0f8ab91f$exports = {\n \"buttonLabel\": `Suggesties weergeven`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} optie`,\n other: ()=>`${formatter.number(args.optionCount)} opties`\n })} beschikbaar.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Groep ${args.groupTitle} ingevoerd met ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} optie`,\n other: ()=>`${formatter.number(args.groupCount)} opties`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, geselecteerd`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Suggesties`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, geselecteerd`\n};\n\n\nexport {$17e82ebf0f8ab91f$exports as default};\n","var $2f5377d3471630e5$exports = {};\n$2f5377d3471630e5$exports = {\n \"buttonLabel\": `Wy\\u{15B}wietlaj sugestie`,\n \"countAnnouncement\": (args, formatter)=>`dost\\u{119}pna/dost\\u{119}pne(-nych) ${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} opcja`,\n other: ()=>`${formatter.number(args.optionCount)} opcje(-i)`\n })}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Do\\u{142}\\u{105}czono do grupy ${args.groupTitle}, z ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} opcj\\u{105}`,\n other: ()=>`${formatter.number(args.groupCount)} opcjami`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, wybrano`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Sugestie`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, wybrano`\n};\n\n\nexport {$2f5377d3471630e5$exports as default};\n","var $dee9868b6fa95ffe$exports = {};\n$dee9868b6fa95ffe$exports = {\n \"buttonLabel\": `Mostrar sugest\\xf5es`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} op\\xe7\\xe3o`,\n other: ()=>`${formatter.number(args.optionCount)} op\\xe7\\xf5es`\n })} dispon\\xedvel.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Grupo inserido ${args.groupTitle}, com ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} op\\xe7\\xe3o`,\n other: ()=>`${formatter.number(args.groupCount)} op\\xe7\\xf5es`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, selecionado`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Sugest\\xf5es`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, selecionado`\n};\n\n\nexport {$dee9868b6fa95ffe$exports as default};\n","var $f8b2e63637cbb5a6$exports = {};\n$f8b2e63637cbb5a6$exports = {\n \"buttonLabel\": `Apresentar sugest\\xf5es`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} op\\xe7\\xe3o`,\n other: ()=>`${formatter.number(args.optionCount)} op\\xe7\\xf5es`\n })} dispon\\xedvel.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Grupo introduzido ${args.groupTitle}, com ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} op\\xe7\\xe3o`,\n other: ()=>`${formatter.number(args.groupCount)} op\\xe7\\xf5es`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, selecionado`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Sugest\\xf5es`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, selecionado`\n};\n\n\nexport {$f8b2e63637cbb5a6$exports as default};\n","var $46a885db3b44ea95$exports = {};\n$46a885db3b44ea95$exports = {\n \"buttonLabel\": `Afi\\u{219}are sugestii`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} op\\u{21B}iune`,\n other: ()=>`${formatter.number(args.optionCount)} op\\u{21B}iuni`\n })} disponibile.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Grup ${args.groupTitle} introdus, cu ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} op\\u{21B}iune`,\n other: ()=>`${formatter.number(args.groupCount)} op\\u{21B}iuni`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, selectat`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Sugestii`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, selectat`\n};\n\n\nexport {$46a885db3b44ea95$exports as default};\n","var $50d8a8f0afa9dee5$exports = {};\n$50d8a8f0afa9dee5$exports = {\n \"buttonLabel\": `\\u{41F}\\u{43E}\\u{43A}\\u{430}\\u{437}\\u{430}\\u{442}\\u{44C} \\u{43F}\\u{440}\\u{435}\\u{434}\\u{43B}\\u{43E}\\u{436}\\u{435}\\u{43D}\\u{438}\\u{44F}`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}`,\n other: ()=>`${formatter.number(args.optionCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}\\u{43E}\\u{432}`\n })} \\u{434}\\u{43E}\\u{441}\\u{442}\\u{443}\\u{43F}\\u{43D}\\u{43E}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`\\u{412}\\u{432}\\u{435}\\u{434}\\u{435}\\u{43D}\\u{43D}\\u{430}\\u{44F} \\u{433}\\u{440}\\u{443}\\u{43F}\\u{43F}\\u{430} ${args.groupTitle}, \\u{441} ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}\\u{43E}\\u{43C}`,\n other: ()=>`${formatter.number(args.groupCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}\\u{430}\\u{43C}\\u{438}`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, \\u{432}\\u{44B}\\u{431}\\u{440}\\u{430}\\u{43D}\\u{43D}\\u{44B}\\u{43C}\\u{438}`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `\\u{41F}\\u{440}\\u{435}\\u{434}\\u{43B}\\u{43E}\\u{436}\\u{435}\\u{43D}\\u{438}\\u{44F}`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{432}\\u{44B}\\u{431}\\u{440}\\u{430}\\u{43D}\\u{43E}`\n};\n\n\nexport {$50d8a8f0afa9dee5$exports as default};\n","var $2867ee6173245507$exports = {};\n$2867ee6173245507$exports = {\n \"buttonLabel\": `Zobrazi\\u{165} n\\xe1vrhy`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} mo\\u{17E}nos\\u{165}`,\n other: ()=>`${formatter.number(args.optionCount)} mo\\u{17E}nosti/-\\xed`\n })} k dispoz\\xedcii.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Zadan\\xe1 skupina ${args.groupTitle}, s ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} mo\\u{17E}nos\\u{165}ou`,\n other: ()=>`${formatter.number(args.groupCount)} mo\\u{17E}nos\\u{165}ami`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, vybrat\\xe9`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `N\\xe1vrhy`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, vybrat\\xe9`\n};\n\n\nexport {$2867ee6173245507$exports as default};\n","var $0631b65beeb09b50$exports = {};\n$0631b65beeb09b50$exports = {\n \"buttonLabel\": `Prika\\u{17E}i predloge`,\n \"countAnnouncement\": (args, formatter)=>`Na voljo je ${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} opcija`,\n other: ()=>`${formatter.number(args.optionCount)} opcije`\n })}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Vnesena skupina ${args.groupTitle}, z ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} opcija`,\n other: ()=>`${formatter.number(args.groupCount)} opcije`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, izbrano`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Predlogi`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, izbrano`\n};\n\n\nexport {$0631b65beeb09b50$exports as default};\n","var $65fc749265dcd686$exports = {};\n$65fc749265dcd686$exports = {\n \"buttonLabel\": `Prika\\u{17E}i predloge`,\n \"countAnnouncement\": (args, formatter)=>`Dostupno jo\\u{161}: ${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} opcija`,\n other: ()=>`${formatter.number(args.optionCount)} opcije/a`\n })}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Unesena grupa ${args.groupTitle}, s ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} opcijom`,\n other: ()=>`${formatter.number(args.groupCount)} optione/a`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, izabranih`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `Predlozi`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, izabrano`\n};\n\n\nexport {$65fc749265dcd686$exports as default};\n","var $69ba655c7853c08e$exports = {};\n$69ba655c7853c08e$exports = {\n \"buttonLabel\": `Visa f\\xf6rslag`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} alternativ`,\n other: ()=>`${formatter.number(args.optionCount)} alternativ`\n })} tillg\\xe4ngliga.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Ingick i gruppen ${args.groupTitle} med ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} alternativ`,\n other: ()=>`${formatter.number(args.groupCount)} alternativ`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, valda`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `F\\xf6rslag`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, valda`\n};\n\n\nexport {$69ba655c7853c08e$exports as default};\n","var $a79794784d61577c$exports = {};\n$a79794784d61577c$exports = {\n \"buttonLabel\": `\\xd6nerileri g\\xf6ster`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} se\\xe7enek`,\n other: ()=>`${formatter.number(args.optionCount)} se\\xe7enekler`\n })} kullan\\u{131}labilir.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`Girilen grup ${args.groupTitle}, ile ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} se\\xe7enek`,\n other: ()=>`${formatter.number(args.groupCount)} se\\xe7enekler`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, se\\xe7ildi`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `\\xd6neriler`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, se\\xe7ildi`\n};\n\n\nexport {$a79794784d61577c$exports as default};\n","var $c2845791417ebaf4$exports = {};\n$c2845791417ebaf4$exports = {\n \"buttonLabel\": `\\u{41F}\\u{43E}\\u{43A}\\u{430}\\u{437}\\u{430}\\u{442}\\u{438} \\u{43F}\\u{440}\\u{43E}\\u{43F}\\u{43E}\\u{437}\\u{438}\\u{446}\\u{456}\\u{457}`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}`,\n other: ()=>`${formatter.number(args.optionCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}\\u{438}(-\\u{456}\\u{432})`\n })} \\u{434}\\u{43E}\\u{441}\\u{442}\\u{443}\\u{43F}\\u{43D}\\u{43E}.`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`\\u{412}\\u{432}\\u{435}\\u{434}\\u{435}\\u{43D}\\u{430} \\u{433}\\u{440}\\u{443}\\u{43F}\\u{430} ${args.groupTitle}, \\u{437} ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}`,\n other: ()=>`${formatter.number(args.groupCount)} \\u{43F}\\u{430}\\u{440}\\u{430}\\u{43C}\\u{435}\\u{442}\\u{440}\\u{438}(-\\u{456}\\u{432})`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, \\u{432}\\u{438}\\u{431}\\u{440}\\u{430}\\u{43D}\\u{43E}`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `\\u{41F}\\u{440}\\u{43E}\\u{43F}\\u{43E}\\u{437}\\u{438}\\u{446}\\u{456}\\u{457}`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{432}\\u{438}\\u{431}\\u{440}\\u{430}\\u{43D}\\u{43E}`\n};\n\n\nexport {$c2845791417ebaf4$exports as default};\n","var $29b642d0025cc7a4$exports = {};\n$29b642d0025cc7a4$exports = {\n \"buttonLabel\": `\\u{663E}\\u{793A}\\u{5EFA}\\u{8BAE}`,\n \"countAnnouncement\": (args, formatter)=>`\\u{6709} ${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} \\u{4E2A}\\u{9009}\\u{9879}`,\n other: ()=>`${formatter.number(args.optionCount)} \\u{4E2A}\\u{9009}\\u{9879}`\n })}\\u{53EF}\\u{7528}\\u{3002}`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`\\u{8FDB}\\u{5165}\\u{4E86} ${args.groupTitle} \\u{7EC4}\\u{FF0C}\\u{5176}\\u{4E2D}\\u{6709} ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} \\u{4E2A}\\u{9009}\\u{9879}`,\n other: ()=>`${formatter.number(args.groupCount)} \\u{4E2A}\\u{9009}\\u{9879}`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, \\u{5DF2}\\u{9009}\\u{62E9}`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `\\u{5EFA}\\u{8BAE}`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{5DF2}\\u{9009}\\u{62E9}`\n};\n\n\nexport {$29b642d0025cc7a4$exports as default};\n","var $cd36dd33f9d46936$exports = {};\n$cd36dd33f9d46936$exports = {\n \"buttonLabel\": `\\u{986F}\\u{793A}\\u{5EFA}\\u{8B70}`,\n \"countAnnouncement\": (args, formatter)=>`${formatter.plural(args.optionCount, {\n one: ()=>`${formatter.number(args.optionCount)} \\u{9078}\\u{9805}`,\n other: ()=>`${formatter.number(args.optionCount)} \\u{9078}\\u{9805}`\n })} \\u{53EF}\\u{7528}\\u{3002}`,\n \"focusAnnouncement\": (args, formatter)=>`${formatter.select({\n true: ()=>`\\u{8F38}\\u{5165}\\u{7684}\\u{7FA4}\\u{7D44} ${args.groupTitle}, \\u{6709} ${formatter.plural(args.groupCount, {\n one: ()=>`${formatter.number(args.groupCount)} \\u{9078}\\u{9805}`,\n other: ()=>`${formatter.number(args.groupCount)} \\u{9078}\\u{9805}`\n })}. `,\n other: ``\n }, args.isGroupChange)}${args.optionText}${formatter.select({\n true: `, \\u{5DF2}\\u{9078}\\u{53D6}`,\n other: ``\n }, args.isSelected)}`,\n \"listboxLabel\": `\\u{5EFA}\\u{8B70}`,\n \"selectedAnnouncement\": (args)=>`${args.optionText}, \\u{5DF2}\\u{9078}\\u{53D6}`\n};\n\n\nexport {$cd36dd33f9d46936$exports as default};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /* Inspired by https://github.com/AlmeroSteyn/react-aria-live */ const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7000;\nlet $319e236875307eab$var$liveAnnouncer = null;\nfunction $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = 'assertive', timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!$319e236875307eab$var$liveAnnouncer) $319e236875307eab$var$liveAnnouncer = new $319e236875307eab$var$LiveAnnouncer();\n $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);\n}\nfunction $319e236875307eab$export$d10ae4f68404609a(assertiveness) {\n if ($319e236875307eab$var$liveAnnouncer) $319e236875307eab$var$liveAnnouncer.clear(assertiveness);\n}\nfunction $319e236875307eab$export$d8686216b8b81b2f() {\n if ($319e236875307eab$var$liveAnnouncer) {\n $319e236875307eab$var$liveAnnouncer.destroy();\n $319e236875307eab$var$liveAnnouncer = null;\n }\n}\n// LiveAnnouncer is implemented using vanilla DOM, not React. That's because as of React 18\n// ReactDOM.render is deprecated, and the replacement, ReactDOM.createRoot is moved into a\n// subpath import `react-dom/client`. That makes it hard for us to support multiple React versions.\n// As a global API, we can't use portals without introducing a breaking API change. LiveAnnouncer\n// is simple enough to implement without React, so that's what we do here.\n// See this discussion for more details: https://github.com/reactwg/react-18/discussions/125#discussioncomment-2382638\nclass $319e236875307eab$var$LiveAnnouncer {\n createLog(ariaLive) {\n let node = document.createElement('div');\n node.setAttribute('role', 'log');\n node.setAttribute('aria-live', ariaLive);\n node.setAttribute('aria-relevant', 'additions');\n return node;\n }\n destroy() {\n if (!this.node) return;\n document.body.removeChild(this.node);\n this.node = null;\n }\n announce(message, assertiveness = 'assertive', timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!this.node) return;\n let node = document.createElement('div');\n node.textContent = message;\n if (assertiveness === 'assertive') this.assertiveLog.appendChild(node);\n else this.politeLog.appendChild(node);\n if (message !== '') setTimeout(()=>{\n node.remove();\n }, timeout);\n }\n clear(assertiveness) {\n if (!this.node) return;\n if (!assertiveness || assertiveness === 'assertive') this.assertiveLog.innerHTML = '';\n if (!assertiveness || assertiveness === 'polite') this.politeLog.innerHTML = '';\n }\n constructor(){\n this.node = document.createElement('div');\n this.node.dataset.liveAnnouncer = 'true';\n // copied from VisuallyHidden\n Object.assign(this.node.style, {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n });\n this.assertiveLog = this.createLog('assertive');\n this.node.appendChild(this.assertiveLog);\n this.politeLog = this.createLog('polite');\n this.node.appendChild(this.politeLog);\n document.body.prepend(this.node);\n }\n}\n\n\nexport {$319e236875307eab$export$a9b970dcc4ae71a9 as announce, $319e236875307eab$export$d10ae4f68404609a as clearAnnouncer, $319e236875307eab$export$d8686216b8b81b2f as destroyAnnouncer};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Keeps a ref count of all hidden elements. Added to when hiding an element, and\n// subtracted from when showing it again. When it reaches zero, aria-hidden is removed.\nlet $5e3802645cc19319$var$refCountMap = new WeakMap();\nlet $5e3802645cc19319$var$observerStack = [];\nfunction $5e3802645cc19319$export$1c3ebcada18427bf(targets, root = document.body) {\n let visibleNodes = new Set(targets);\n let hiddenNodes = new Set();\n let walk = (root)=>{\n // Keep live announcer and top layer elements (e.g. toasts) visible.\n for (let element of root.querySelectorAll('[data-live-announcer], [data-react-aria-top-layer]'))visibleNodes.add(element);\n let acceptNode = (node)=>{\n // Skip this node and its children if it is one of the target nodes, or a live announcer.\n // Also skip children of already hidden nodes, as aria-hidden is recursive. An exception is\n // made for elements with role=\"row\" since VoiceOver on iOS has issues hiding elements with role=\"row\".\n // For that case we want to hide the cells inside as well (https://bugs.webkit.org/show_bug.cgi?id=222623).\n if (visibleNodes.has(node) || hiddenNodes.has(node.parentElement) && node.parentElement.getAttribute('role') !== 'row') return NodeFilter.FILTER_REJECT;\n // Skip this node but continue to children if one of the targets is inside the node.\n for (let target of visibleNodes){\n if (node.contains(target)) return NodeFilter.FILTER_SKIP;\n }\n return NodeFilter.FILTER_ACCEPT;\n };\n let walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {\n acceptNode: acceptNode\n });\n // TreeWalker does not include the root.\n let acceptRoot = acceptNode(root);\n if (acceptRoot === NodeFilter.FILTER_ACCEPT) hide(root);\n if (acceptRoot !== NodeFilter.FILTER_REJECT) {\n let node = walker.nextNode();\n while(node != null){\n hide(node);\n node = walker.nextNode();\n }\n }\n };\n let hide = (node)=>{\n var _refCountMap_get;\n let refCount = (_refCountMap_get = $5e3802645cc19319$var$refCountMap.get(node)) !== null && _refCountMap_get !== void 0 ? _refCountMap_get : 0;\n // If already aria-hidden, and the ref count is zero, then this element\n // was already hidden and there's nothing for us to do.\n if (node.getAttribute('aria-hidden') === 'true' && refCount === 0) return;\n if (refCount === 0) node.setAttribute('aria-hidden', 'true');\n hiddenNodes.add(node);\n $5e3802645cc19319$var$refCountMap.set(node, refCount + 1);\n };\n // If there is already a MutationObserver listening from a previous call,\n // disconnect it so the new on takes over.\n if ($5e3802645cc19319$var$observerStack.length) $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1].disconnect();\n walk(root);\n let observer = new MutationObserver((changes)=>{\n for (let change of changes){\n if (change.type !== 'childList' || change.addedNodes.length === 0) continue;\n // If the parent element of the added nodes is not within one of the targets,\n // and not already inside a hidden node, hide all of the new children.\n if (![\n ...visibleNodes,\n ...hiddenNodes\n ].some((node)=>node.contains(change.target))) {\n for (let node of change.removedNodes)if (node instanceof Element) {\n visibleNodes.delete(node);\n hiddenNodes.delete(node);\n }\n for (let node of change.addedNodes){\n if ((node instanceof HTMLElement || node instanceof SVGElement) && (node.dataset.liveAnnouncer === 'true' || node.dataset.reactAriaTopLayer === 'true')) visibleNodes.add(node);\n else if (node instanceof Element) walk(node);\n }\n }\n }\n });\n observer.observe(root, {\n childList: true,\n subtree: true\n });\n let observerWrapper = {\n observe () {\n observer.observe(root, {\n childList: true,\n subtree: true\n });\n },\n disconnect () {\n observer.disconnect();\n }\n };\n $5e3802645cc19319$var$observerStack.push(observerWrapper);\n return ()=>{\n observer.disconnect();\n for (let node of hiddenNodes){\n let count = $5e3802645cc19319$var$refCountMap.get(node);\n if (count === 1) {\n node.removeAttribute('aria-hidden');\n $5e3802645cc19319$var$refCountMap.delete(node);\n } else $5e3802645cc19319$var$refCountMap.set(node, count - 1);\n }\n // Remove this observer from the stack, and start the previous one.\n if (observerWrapper === $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1]) {\n $5e3802645cc19319$var$observerStack.pop();\n if ($5e3802645cc19319$var$observerStack.length) $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1].observe();\n } else $5e3802645cc19319$var$observerStack.splice($5e3802645cc19319$var$observerStack.indexOf(observerWrapper), 1);\n };\n}\n\n\nexport {$5e3802645cc19319$export$1c3ebcada18427bf as ariaHideOutside};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $b1f0cad8af73213b$export$3585ede4d035bf14 = new WeakMap();\nfunction $b1f0cad8af73213b$var$normalizeKey(key) {\n if (typeof key === 'string') return key.replace(/\\s*/g, '');\n return '' + key;\n}\nfunction $b1f0cad8af73213b$export$9145995848b05025(state, itemKey) {\n let data = $b1f0cad8af73213b$export$3585ede4d035bf14.get(state);\n if (!data) throw new Error('Unknown list');\n return `${data.id}-option-${$b1f0cad8af73213b$var$normalizeKey(itemKey)}`;\n}\n\n\nexport {$b1f0cad8af73213b$export$3585ede4d035bf14 as listData, $b1f0cad8af73213b$export$9145995848b05025 as getItemId};\n","import {focusWithoutScrolling as $7215afc6de606d6b$export$de79e2c695e052f3} from \"./focusWithoutScrolling.mjs\";\nimport {isMac as $c87311424ea30a05$export$9ac100e40613ea10, isWebKit as $c87311424ea30a05$export$78551043582a6a98, isFirefox as $c87311424ea30a05$export$b7d78993b74f766d, isIPad as $c87311424ea30a05$export$7bef049ce92e4224} from \"./platform.mjs\";\nimport $g3jFn$react, {createContext as $g3jFn$createContext, useMemo as $g3jFn$useMemo, useContext as $g3jFn$useContext} from \"react\";\n\n/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nconst $ea8dcbcb9ea1b556$var$RouterContext = /*#__PURE__*/ (0, $g3jFn$createContext)({\n isNative: true,\n open: $ea8dcbcb9ea1b556$var$openSyntheticLink,\n useHref: (href)=>href\n});\nfunction $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb(props) {\n let { children: children, navigate: navigate, useHref: useHref } = props;\n let ctx = (0, $g3jFn$useMemo)(()=>({\n isNative: false,\n open: (target, modifiers, href, routerOptions)=>{\n $ea8dcbcb9ea1b556$var$getSyntheticLink(target, (link)=>{\n if ($ea8dcbcb9ea1b556$export$efa8c9099e530235(link, modifiers)) navigate(href, routerOptions);\n else $ea8dcbcb9ea1b556$export$95185d699e05d4d7(link, modifiers);\n });\n },\n useHref: useHref || ((href)=>href)\n }), [\n navigate,\n useHref\n ]);\n return /*#__PURE__*/ (0, $g3jFn$react).createElement($ea8dcbcb9ea1b556$var$RouterContext.Provider, {\n value: ctx\n }, children);\n}\nfunction $ea8dcbcb9ea1b556$export$9a302a45f65d0572() {\n return (0, $g3jFn$useContext)($ea8dcbcb9ea1b556$var$RouterContext);\n}\nfunction $ea8dcbcb9ea1b556$export$efa8c9099e530235(link, modifiers) {\n // Use getAttribute here instead of link.target. Firefox will default link.target to \"_parent\" when inside an iframe.\n let target = link.getAttribute('target');\n return (!target || target === '_self') && link.origin === location.origin && !link.hasAttribute('download') && !modifiers.metaKey && // open in new tab (mac)\n !modifiers.ctrlKey && // open in new tab (windows)\n !modifiers.altKey && // download\n !modifiers.shiftKey;\n}\nfunction $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening = true) {\n var _window_event_type, _window_event;\n let { metaKey: metaKey, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey } = modifiers;\n // Firefox does not recognize keyboard events as a user action by default, and the popup blocker\n // will prevent links with target=\"_blank\" from opening. However, it does allow the event if the\n // Command/Control key is held, which opens the link in a background tab. This seems like the best we can do.\n // See https://bugzilla.mozilla.org/show_bug.cgi?id=257870 and https://bugzilla.mozilla.org/show_bug.cgi?id=746640.\n if ((0, $c87311424ea30a05$export$b7d78993b74f766d)() && ((_window_event = window.event) === null || _window_event === void 0 ? void 0 : (_window_event_type = _window_event.type) === null || _window_event_type === void 0 ? void 0 : _window_event_type.startsWith('key')) && target.target === '_blank') {\n if ((0, $c87311424ea30a05$export$9ac100e40613ea10)()) metaKey = true;\n else ctrlKey = true;\n }\n // WebKit does not support firing click events with modifier keys, but does support keyboard events.\n // https://github.com/WebKit/WebKit/blob/c03d0ac6e6db178f90923a0a63080b5ca210d25f/Source/WebCore/html/HTMLAnchorElement.cpp#L184\n let event = (0, $c87311424ea30a05$export$78551043582a6a98)() && (0, $c87311424ea30a05$export$9ac100e40613ea10)() && !(0, $c87311424ea30a05$export$7bef049ce92e4224)() && true ? new KeyboardEvent('keydown', {\n keyIdentifier: 'Enter',\n metaKey: metaKey,\n ctrlKey: ctrlKey,\n altKey: altKey,\n shiftKey: shiftKey\n }) : new MouseEvent('click', {\n metaKey: metaKey,\n ctrlKey: ctrlKey,\n altKey: altKey,\n shiftKey: shiftKey,\n bubbles: true,\n cancelable: true\n });\n $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = setOpening;\n (0, $7215afc6de606d6b$export$de79e2c695e052f3)(target);\n target.dispatchEvent(event);\n $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = false;\n}\n// https://github.com/parcel-bundler/parcel/issues/8724\n$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = false;\nfunction $ea8dcbcb9ea1b556$var$getSyntheticLink(target, open) {\n if (target instanceof HTMLAnchorElement) open(target);\n else if (target.hasAttribute('data-href')) {\n let link = document.createElement('a');\n link.href = target.getAttribute('data-href');\n if (target.hasAttribute('data-target')) link.target = target.getAttribute('data-target');\n if (target.hasAttribute('data-rel')) link.rel = target.getAttribute('data-rel');\n if (target.hasAttribute('data-download')) link.download = target.getAttribute('data-download');\n if (target.hasAttribute('data-ping')) link.ping = target.getAttribute('data-ping');\n if (target.hasAttribute('data-referrer-policy')) link.referrerPolicy = target.getAttribute('data-referrer-policy');\n target.appendChild(link);\n open(link);\n target.removeChild(link);\n }\n}\nfunction $ea8dcbcb9ea1b556$var$openSyntheticLink(target, modifiers) {\n $ea8dcbcb9ea1b556$var$getSyntheticLink(target, (link)=>$ea8dcbcb9ea1b556$export$95185d699e05d4d7(link, modifiers));\n}\nfunction $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(props) {\n let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();\n return {\n 'data-href': props.href ? router.useHref(props.href) : undefined,\n 'data-target': props.target,\n 'data-rel': props.rel,\n 'data-download': props.download,\n 'data-ping': props.ping,\n 'data-referrer-policy': props.referrerPolicy\n };\n}\nfunction $ea8dcbcb9ea1b556$export$51437d503373d223(props) {\n return {\n 'data-href': props.href,\n 'data-target': props.target,\n 'data-rel': props.rel,\n 'data-download': props.download,\n 'data-ping': props.ping,\n 'data-referrer-policy': props.referrerPolicy\n };\n}\nfunction $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(props) {\n let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();\n return {\n href: (props === null || props === void 0 ? void 0 : props.href) ? router.useHref(props === null || props === void 0 ? void 0 : props.href) : undefined,\n target: props === null || props === void 0 ? void 0 : props.target,\n rel: props === null || props === void 0 ? void 0 : props.rel,\n download: props === null || props === void 0 ? void 0 : props.download,\n ping: props === null || props === void 0 ? void 0 : props.ping,\n referrerPolicy: props === null || props === void 0 ? void 0 : props.referrerPolicy\n };\n}\n\n\nexport {$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb as RouterProvider, $ea8dcbcb9ea1b556$export$efa8c9099e530235 as shouldClientNavigate, $ea8dcbcb9ea1b556$export$95185d699e05d4d7 as openLink, $ea8dcbcb9ea1b556$export$9a302a45f65d0572 as useRouter, $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6 as useSyntheticLinkProps, $ea8dcbcb9ea1b556$export$51437d503373d223 as getSyntheticLinkProps, $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 as useLinkProps};\n","import {useId as $bdb11010cef70236$export$f680877a34711e37} from \"./useId.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {\n let { id: id, 'aria-label': label, 'aria-labelledby': labelledBy } = props;\n // If there is both an aria-label and aria-labelledby,\n // combine them by pointing to the element itself.\n id = (0, $bdb11010cef70236$export$f680877a34711e37)(id);\n if (labelledBy && label) {\n let ids = new Set([\n id,\n ...labelledBy.trim().split(/\\s+/)\n ]);\n labelledBy = [\n ...ids\n ].join(' ');\n } else if (labelledBy) labelledBy = labelledBy.trim().split(/\\s+/).join(' ');\n // If no labels are provided, use the default\n if (!label && !labelledBy && defaultLabel) label = defaultLabel;\n return {\n id: id,\n 'aria-label': label,\n 'aria-labelledby': labelledBy\n };\n}\n\n\nexport {$313b98861ee5dd6c$export$d6875122194c7b44 as useLabels};\n","import {getChildNodes as $c5a24bc478652b5f$export$1005530eda016c13} from \"./getChildNodes.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nconst $453cc9f0df89c0a5$var$cache = new WeakMap();\nfunction $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) {\n let count = $453cc9f0df89c0a5$var$cache.get(collection);\n if (count != null) return count;\n count = 0;\n let countItems = (items)=>{\n for (let item of items)if (item.type === 'section') countItems((0, $c5a24bc478652b5f$export$1005530eda016c13)(item, collection));\n else count++;\n };\n countItems(collection);\n $453cc9f0df89c0a5$var$cache.set(collection, count);\n return count;\n}\n\n\nexport {$453cc9f0df89c0a5$export$77d5aafae4e095b2 as getItemCount};\n","/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ class $657e4dc4a6e88df0$export$8f5ed9ff9f511381 {\n getItemRect(key) {\n let container = this.ref.current;\n let item = key != null ? container.querySelector(`[data-key=\"${CSS.escape(key.toString())}\"]`) : null;\n if (!item) return null;\n let containerRect = container.getBoundingClientRect();\n let itemRect = item.getBoundingClientRect();\n return {\n x: itemRect.left - containerRect.left + container.scrollLeft,\n y: itemRect.top - containerRect.top + container.scrollTop,\n width: itemRect.width,\n height: itemRect.height\n };\n }\n getContentSize() {\n let container = this.ref.current;\n return {\n width: container.scrollWidth,\n height: container.scrollHeight\n };\n }\n getVisibleRect() {\n let container = this.ref.current;\n return {\n x: container.scrollLeft,\n y: container.scrollTop,\n width: container.offsetWidth,\n height: container.offsetHeight\n };\n }\n constructor(ref){\n this.ref = ref;\n }\n}\n\n\nexport {$657e4dc4a6e88df0$export$8f5ed9ff9f511381 as DOMLayoutDelegate};\n","/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $cc38e7bd3fc7b213$export$2bb74740c4e19def(node, checkForOverflow) {\n let style = window.getComputedStyle(node);\n let isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);\n if (isScrollable && checkForOverflow) isScrollable = node.scrollHeight !== node.clientHeight || node.scrollWidth !== node.clientWidth;\n return isScrollable;\n}\n\n\nexport {$cc38e7bd3fc7b213$export$2bb74740c4e19def as isScrollable};\n","import {DOMLayoutDelegate as $657e4dc4a6e88df0$export$8f5ed9ff9f511381} from \"./DOMLayoutDelegate.mjs\";\nimport {isScrollable as $eak97$isScrollable} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nclass $2a25aae57d74318e$export$a05409b8bb224a5a {\n isDisabled(item) {\n var _item_props;\n return this.disabledBehavior === 'all' && (((_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || this.disabledKeys.has(item.key));\n }\n getNextKey(key) {\n key = this.collection.getKeyAfter(key);\n while(key != null){\n let item = this.collection.getItem(key);\n if (item.type === 'item' && !this.isDisabled(item)) return key;\n key = this.collection.getKeyAfter(key);\n }\n return null;\n }\n getPreviousKey(key) {\n key = this.collection.getKeyBefore(key);\n while(key != null){\n let item = this.collection.getItem(key);\n if (item.type === 'item' && !this.isDisabled(item)) return key;\n key = this.collection.getKeyBefore(key);\n }\n return null;\n }\n findKey(key, nextKey, shouldSkip) {\n let itemRect = this.layoutDelegate.getItemRect(key);\n if (!itemRect) return null;\n // Find the item above or below in the same column.\n let prevRect = itemRect;\n do {\n key = nextKey(key);\n itemRect = this.layoutDelegate.getItemRect(key);\n }while (itemRect && shouldSkip(prevRect, itemRect));\n return key;\n }\n isSameRow(prevRect, itemRect) {\n return prevRect.y === itemRect.y || prevRect.x !== itemRect.x;\n }\n isSameColumn(prevRect, itemRect) {\n return prevRect.x === itemRect.x || prevRect.y !== itemRect.y;\n }\n getKeyBelow(key) {\n if (this.layout === 'grid' && this.orientation === 'vertical') return this.findKey(key, (key)=>this.getNextKey(key), this.isSameRow);\n else return this.getNextKey(key);\n }\n getKeyAbove(key) {\n if (this.layout === 'grid' && this.orientation === 'vertical') return this.findKey(key, (key)=>this.getPreviousKey(key), this.isSameRow);\n else return this.getPreviousKey(key);\n }\n getNextColumn(key, right) {\n return right ? this.getPreviousKey(key) : this.getNextKey(key);\n }\n getKeyRightOf(key) {\n if (this.layout === 'grid') {\n if (this.orientation === 'vertical') return this.getNextColumn(key, this.direction === 'rtl');\n else return this.findKey(key, (key)=>this.getNextColumn(key, this.direction === 'rtl'), this.isSameColumn);\n } else if (this.orientation === 'horizontal') return this.getNextColumn(key, this.direction === 'rtl');\n return null;\n }\n getKeyLeftOf(key) {\n if (this.layout === 'grid') {\n if (this.orientation === 'vertical') return this.getNextColumn(key, this.direction === 'ltr');\n else return this.findKey(key, (key)=>this.getNextColumn(key, this.direction === 'ltr'), this.isSameColumn);\n } else if (this.orientation === 'horizontal') return this.getNextColumn(key, this.direction === 'ltr');\n return null;\n }\n getFirstKey() {\n let key = this.collection.getFirstKey();\n while(key != null){\n let item = this.collection.getItem(key);\n if ((item === null || item === void 0 ? void 0 : item.type) === 'item' && !this.isDisabled(item)) return key;\n key = this.collection.getKeyAfter(key);\n }\n return null;\n }\n getLastKey() {\n let key = this.collection.getLastKey();\n while(key != null){\n let item = this.collection.getItem(key);\n if (item.type === 'item' && !this.isDisabled(item)) return key;\n key = this.collection.getKeyBefore(key);\n }\n return null;\n }\n getKeyPageAbove(key) {\n let menu = this.ref.current;\n let itemRect = this.layoutDelegate.getItemRect(key);\n if (!itemRect) return null;\n if (!(0, $eak97$isScrollable)(menu)) return this.getFirstKey();\n if (this.orientation === 'horizontal') {\n let pageX = Math.max(0, itemRect.x + itemRect.width - this.layoutDelegate.getVisibleRect().width);\n while(itemRect && itemRect.x > pageX){\n key = this.getKeyAbove(key);\n itemRect = key == null ? null : this.layoutDelegate.getItemRect(key);\n }\n } else {\n let pageY = Math.max(0, itemRect.y + itemRect.height - this.layoutDelegate.getVisibleRect().height);\n while(itemRect && itemRect.y > pageY){\n key = this.getKeyAbove(key);\n itemRect = key == null ? null : this.layoutDelegate.getItemRect(key);\n }\n }\n return key !== null && key !== void 0 ? key : this.getFirstKey();\n }\n getKeyPageBelow(key) {\n let menu = this.ref.current;\n let itemRect = this.layoutDelegate.getItemRect(key);\n if (!itemRect) return null;\n if (!(0, $eak97$isScrollable)(menu)) return this.getLastKey();\n if (this.orientation === 'horizontal') {\n let pageX = Math.min(this.layoutDelegate.getContentSize().width, itemRect.y - itemRect.width + this.layoutDelegate.getVisibleRect().width);\n while(itemRect && itemRect.x < pageX){\n key = this.getKeyBelow(key);\n itemRect = key == null ? null : this.layoutDelegate.getItemRect(key);\n }\n } else {\n let pageY = Math.min(this.layoutDelegate.getContentSize().height, itemRect.y - itemRect.height + this.layoutDelegate.getVisibleRect().height);\n while(itemRect && itemRect.y < pageY){\n key = this.getKeyBelow(key);\n itemRect = key == null ? null : this.layoutDelegate.getItemRect(key);\n }\n }\n return key !== null && key !== void 0 ? key : this.getLastKey();\n }\n getKeyForSearch(search, fromKey) {\n if (!this.collator) return null;\n let collection = this.collection;\n let key = fromKey || this.getFirstKey();\n while(key != null){\n let item = collection.getItem(key);\n let substring = item.textValue.slice(0, search.length);\n if (item.textValue && this.collator.compare(substring, search) === 0) return key;\n key = this.getKeyBelow(key);\n }\n return null;\n }\n constructor(...args){\n if (args.length === 1) {\n let opts = args[0];\n this.collection = opts.collection;\n this.ref = opts.ref;\n this.collator = opts.collator;\n this.disabledKeys = opts.disabledKeys || new Set();\n this.disabledBehavior = opts.disabledBehavior || 'all';\n this.orientation = opts.orientation || 'vertical';\n this.direction = opts.direction;\n this.layout = opts.layout || 'stack';\n this.layoutDelegate = opts.layoutDelegate || new (0, $657e4dc4a6e88df0$export$8f5ed9ff9f511381)(opts.ref);\n } else {\n this.collection = args[0];\n this.disabledKeys = args[1];\n this.ref = args[2];\n this.collator = args[3];\n this.layout = 'stack';\n this.orientation = 'vertical';\n this.disabledBehavior = 'all';\n this.layoutDelegate = new (0, $657e4dc4a6e88df0$export$8f5ed9ff9f511381)(this.ref);\n }\n // If this is a vertical stack, remove the left/right methods completely\n // so they aren't called by useDroppableCollection.\n if (this.layout === 'stack' && this.orientation === 'vertical') {\n this.getKeyLeftOf = undefined;\n this.getKeyRightOf = undefined;\n }\n }\n}\n\n\nexport {$2a25aae57d74318e$export$a05409b8bb224a5a as ListKeyboardDelegate};\n","import {isAppleDevice as $jUnAJ$isAppleDevice, isMac as $jUnAJ$isMac} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $feb5ffebff200149$export$d3e3bd3e26688c04(e) {\n // Ctrl + Arrow Up/Arrow Down has a system wide meaning on macOS, so use Alt instead.\n // On Windows and Ubuntu, Alt + Space has a system wide meaning.\n return (0, $jUnAJ$isAppleDevice)() ? e.altKey : e.ctrlKey;\n}\nfunction $feb5ffebff200149$export$16792effe837dba3(e) {\n if ((0, $jUnAJ$isMac)()) return e.metaKey;\n return e.ctrlKey;\n}\n\n\nexport {$feb5ffebff200149$export$d3e3bd3e26688c04 as isNonContiguousSelectionModifier, $feb5ffebff200149$export$16792effe837dba3 as isCtrlKeyPressed};\n","import {useRef as $dAE4Y$useRef} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n/**\n * Controls how long to wait before clearing the typeahead buffer.\n */ const $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1000; // 1 second\nfunction $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {\n let { keyboardDelegate: keyboardDelegate, selectionManager: selectionManager, onTypeSelect: onTypeSelect } = options;\n let state = (0, $dAE4Y$useRef)({\n search: '',\n timeout: null\n }).current;\n let onKeyDown = (e)=>{\n let character = $fb3050f43d946246$var$getStringForKey(e.key);\n if (!character || e.ctrlKey || e.metaKey || !e.currentTarget.contains(e.target)) return;\n // Do not propagate the Spacebar event if it's meant to be part of the search.\n // When we time out, the search term becomes empty, hence the check on length.\n // Trimming is to account for the case of pressing the Spacebar more than once,\n // which should cycle through the selection/deselection of the focused item.\n if (character === ' ' && state.search.trim().length > 0) {\n e.preventDefault();\n if (!('continuePropagation' in e)) e.stopPropagation();\n }\n state.search += character;\n // Use the delegate to find a key to focus.\n // Prioritize items after the currently focused item, falling back to searching the whole list.\n let key = keyboardDelegate.getKeyForSearch(state.search, selectionManager.focusedKey);\n // If no key found, search from the top.\n if (key == null) key = keyboardDelegate.getKeyForSearch(state.search);\n if (key != null) {\n selectionManager.setFocusedKey(key);\n if (onTypeSelect) onTypeSelect(key);\n }\n clearTimeout(state.timeout);\n state.timeout = setTimeout(()=>{\n state.search = '';\n }, $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS);\n };\n return {\n typeSelectProps: {\n // Using a capturing listener to catch the keydown event before\n // other hooks in order to handle the Spacebar event.\n onKeyDownCapture: keyboardDelegate.getKeyForSearch ? onKeyDown : null\n }\n };\n}\nfunction $fb3050f43d946246$var$getStringForKey(key) {\n // If the key is of length 1, it is an ASCII value.\n // Otherwise, if there are no ASCII characters in the key name,\n // it is a Unicode character.\n // See https://www.w3.org/TR/uievents-key/\n if (key.length === 1 || !/^[A-Z]/i.test(key)) return key;\n return '';\n}\n\n\nexport {$fb3050f43d946246$export$e32c88dfddc6e1d8 as useTypeSelect};\n","import {useEffectEvent as $8ae05eaa5c114e9c$export$7f54fc3180508a52} from \"./useEffectEvent.mjs\";\nimport {useEffect as $ceQd6$useEffect} from \"react\";\n\n/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {\n let handleEvent = (0, $8ae05eaa5c114e9c$export$7f54fc3180508a52)(handler);\n let isDisabled = handler == null;\n (0, $ceQd6$useEffect)(()=>{\n if (isDisabled || !ref.current) return;\n let element = ref.current;\n element.addEventListener(event, handleEvent, options);\n return ()=>{\n element.removeEventListener(event, handleEvent, options);\n };\n }, [\n ref,\n event,\n options,\n isDisabled,\n handleEvent\n ]);\n}\n\n\nexport {$e9faafb641e167db$export$90fc3a17d93f704c as useEvent};\n","import {getScrollParents as $a40c673dc9f6d9c7$export$94ed1c92c7beeb22} from \"./getScrollParents.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {\n let offsetX = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, 'left');\n let offsetY = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, 'top');\n let width = element.offsetWidth;\n let height = element.offsetHeight;\n let x = scrollView.scrollLeft;\n let y = scrollView.scrollTop;\n // Account for top/left border offsetting the scroll top/Left\n let { borderTopWidth: borderTopWidth, borderLeftWidth: borderLeftWidth } = getComputedStyle(scrollView);\n let borderAdjustedX = scrollView.scrollLeft + parseInt(borderLeftWidth, 10);\n let borderAdjustedY = scrollView.scrollTop + parseInt(borderTopWidth, 10);\n // Ignore end/bottom border via clientHeight/Width instead of offsetHeight/Width\n let maxX = borderAdjustedX + scrollView.clientWidth;\n let maxY = borderAdjustedY + scrollView.clientHeight;\n if (offsetX <= x) x = offsetX - parseInt(borderLeftWidth, 10);\n else if (offsetX + width > maxX) x += offsetX + width - maxX;\n if (offsetY <= borderAdjustedY) y = offsetY - parseInt(borderTopWidth, 10);\n else if (offsetY + height > maxY) y += offsetY + height - maxY;\n scrollView.scrollLeft = x;\n scrollView.scrollTop = y;\n}\n/**\n * Computes the offset left or top from child to ancestor by accumulating\n * offsetLeft or offsetTop through intervening offsetParents.\n */ function $2f04cbc44ee30ce0$var$relativeOffset(ancestor, child, axis) {\n const prop = axis === 'left' ? 'offsetLeft' : 'offsetTop';\n let sum = 0;\n while(child.offsetParent){\n sum += child[prop];\n if (child.offsetParent === ancestor) break;\n else if (child.offsetParent.contains(ancestor)) {\n // If the ancestor is not `position:relative`, then we stop at\n // _its_ offset parent, and we subtract off _its_ offset, so that\n // we end up with the proper offset from child to ancestor.\n sum -= ancestor[prop];\n break;\n }\n child = child.offsetParent;\n }\n return sum;\n}\nfunction $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {\n if (document.contains(targetElement)) {\n let root = document.scrollingElement || document.documentElement;\n let isScrollPrevented = window.getComputedStyle(root).overflow === 'hidden';\n // If scrolling is not currently prevented then we aren’t in a overlay nor is a overlay open, just use element.scrollIntoView to bring the element into view\n if (!isScrollPrevented) {\n var // use scrollIntoView({block: 'nearest'}) instead of .focus to check if the element is fully in view or not since .focus()\n // won't cause a scroll if the element is already focused and doesn't behave consistently when an element is partially out of view horizontally vs vertically\n _targetElement_scrollIntoView;\n let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();\n targetElement === null || targetElement === void 0 ? void 0 : (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 ? void 0 : _targetElement_scrollIntoView.call(targetElement, {\n block: 'nearest'\n });\n let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();\n // Account for sub pixel differences from rounding\n if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {\n var _opts_containingElement_scrollIntoView, _opts_containingElement, _targetElement_scrollIntoView1;\n opts === null || opts === void 0 ? void 0 : (_opts_containingElement = opts.containingElement) === null || _opts_containingElement === void 0 ? void 0 : (_opts_containingElement_scrollIntoView = _opts_containingElement.scrollIntoView) === null || _opts_containingElement_scrollIntoView === void 0 ? void 0 : _opts_containingElement_scrollIntoView.call(_opts_containingElement, {\n block: 'center',\n inline: 'center'\n });\n (_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === void 0 ? void 0 : _targetElement_scrollIntoView1.call(targetElement, {\n block: 'nearest'\n });\n }\n } else {\n let scrollParents = (0, $a40c673dc9f6d9c7$export$94ed1c92c7beeb22)(targetElement);\n // If scrolling is prevented, we don't want to scroll the body since it might move the overlay partially offscreen and the user can't scroll it back into view.\n for (let scrollParent of scrollParents)$2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, targetElement);\n }\n }\n}\n\n\nexport {$2f04cbc44ee30ce0$export$53a0910f038337bd as scrollIntoView, $2f04cbc44ee30ce0$export$c826860796309d1b as scrollIntoViewport};\n","import {isScrollable as $cc38e7bd3fc7b213$export$2bb74740c4e19def} from \"./isScrollable.mjs\";\n\n/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node, checkForOverflow) {\n const scrollParents = [];\n while(node && node !== document.documentElement){\n if ((0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(node, checkForOverflow)) scrollParents.push(node);\n node = node.parentElement;\n }\n return scrollParents;\n}\n\n\nexport {$a40c673dc9f6d9c7$export$94ed1c92c7beeb22 as getScrollParents};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // https://en.wikipedia.org/wiki/Right-to-left\nconst $148a7a147e38ea7f$var$RTL_SCRIPTS = new Set([\n 'Arab',\n 'Syrc',\n 'Samr',\n 'Mand',\n 'Thaa',\n 'Mend',\n 'Nkoo',\n 'Adlm',\n 'Rohg',\n 'Hebr'\n]);\nconst $148a7a147e38ea7f$var$RTL_LANGS = new Set([\n 'ae',\n 'ar',\n 'arc',\n 'bcc',\n 'bqi',\n 'ckb',\n 'dv',\n 'fa',\n 'glk',\n 'he',\n 'ku',\n 'mzn',\n 'nqo',\n 'pnb',\n 'ps',\n 'sd',\n 'ug',\n 'ur',\n 'yi'\n]);\nfunction $148a7a147e38ea7f$export$702d680b21cbd764(localeString) {\n // If the Intl.Locale API is available, use it to get the locale's text direction.\n // @ts-ignore\n if (Intl.Locale) {\n let locale = new Intl.Locale(localeString).maximize();\n // Use the text info object to get the direction if possible.\n // @ts-ignore - this was implemented as a property by some browsers before it was standardized as a function.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo\n let textInfo = typeof locale.getTextInfo === 'function' ? locale.getTextInfo() : locale.textInfo;\n if (textInfo) return textInfo.direction === 'rtl';\n // Fallback: guess using the script.\n // This is more accurate than guessing by language, since languages can be written in multiple scripts.\n if (locale.script) return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(locale.script);\n }\n // If not, just guess by the language (first part of the locale)\n let lang = localeString.split('-')[0];\n return $148a7a147e38ea7f$var$RTL_LANGS.has(lang);\n}\n\n\nexport {$148a7a147e38ea7f$export$702d680b21cbd764 as isRTL};\n","import {isRTL as $148a7a147e38ea7f$export$702d680b21cbd764} from \"./utils.mjs\";\nimport {useState as $ffhGL$useState, useEffect as $ffhGL$useEffect} from \"react\";\nimport {useIsSSR as $ffhGL$useIsSSR} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n// Locale passed from server by PackageLocalizationProvider.\nconst $1e5a04cdaf7d1af8$var$localeSymbol = Symbol.for('react-aria.i18n.locale');\nfunction $1e5a04cdaf7d1af8$export$f09106e7c6677ec5() {\n let locale = typeof window !== 'undefined' && window[$1e5a04cdaf7d1af8$var$localeSymbol] || typeof navigator !== 'undefined' && (navigator.language || navigator.userLanguage) || 'en-US';\n try {\n // @ts-ignore\n Intl.DateTimeFormat.supportedLocalesOf([\n locale\n ]);\n } catch (_err) {\n locale = 'en-US';\n }\n return {\n locale: locale,\n direction: (0, $148a7a147e38ea7f$export$702d680b21cbd764)(locale) ? 'rtl' : 'ltr'\n };\n}\nlet $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();\nlet $1e5a04cdaf7d1af8$var$listeners = new Set();\nfunction $1e5a04cdaf7d1af8$var$updateLocale() {\n $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();\n for (let listener of $1e5a04cdaf7d1af8$var$listeners)listener($1e5a04cdaf7d1af8$var$currentLocale);\n}\nfunction $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {\n let isSSR = (0, $ffhGL$useIsSSR)();\n let [defaultLocale, setDefaultLocale] = (0, $ffhGL$useState)($1e5a04cdaf7d1af8$var$currentLocale);\n (0, $ffhGL$useEffect)(()=>{\n if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.addEventListener('languagechange', $1e5a04cdaf7d1af8$var$updateLocale);\n $1e5a04cdaf7d1af8$var$listeners.add(setDefaultLocale);\n return ()=>{\n $1e5a04cdaf7d1af8$var$listeners.delete(setDefaultLocale);\n if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.removeEventListener('languagechange', $1e5a04cdaf7d1af8$var$updateLocale);\n };\n }, []);\n // We cannot determine the browser's language on the server, so default to\n // en-US. This will be updated after hydration on the client to the correct value.\n if (isSSR) return {\n locale: 'en-US',\n direction: 'ltr'\n };\n return defaultLocale;\n}\n\n\nexport {$1e5a04cdaf7d1af8$export$f09106e7c6677ec5 as getDefaultLocale, $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a as useDefaultLocale};\n","import {isRTL as $148a7a147e38ea7f$export$702d680b21cbd764} from \"./utils.mjs\";\nimport {useDefaultLocale as $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a} from \"./useDefaultLocale.mjs\";\nimport $h9FiU$react, {useContext as $h9FiU$useContext} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nconst $18f2051aff69b9bf$var$I18nContext = /*#__PURE__*/ (0, $h9FiU$react).createContext(null);\nfunction $18f2051aff69b9bf$export$a54013f0d02a8f82(props) {\n let { locale: locale, children: children } = props;\n let defaultLocale = (0, $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a)();\n let value = (0, $h9FiU$react).useMemo(()=>{\n if (!locale) return defaultLocale;\n return {\n locale: locale,\n direction: (0, $148a7a147e38ea7f$export$702d680b21cbd764)(locale) ? 'rtl' : 'ltr'\n };\n }, [\n defaultLocale,\n locale\n ]);\n return /*#__PURE__*/ (0, $h9FiU$react).createElement($18f2051aff69b9bf$var$I18nContext.Provider, {\n value: value\n }, children);\n}\nfunction $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() {\n let defaultLocale = (0, $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a)();\n let context = (0, $h9FiU$useContext)($18f2051aff69b9bf$var$I18nContext);\n return context || defaultLocale;\n}\n\n\nexport {$18f2051aff69b9bf$export$a54013f0d02a8f82 as I18nProvider, $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 as useLocale};\n","import {isCtrlKeyPressed as $feb5ffebff200149$export$16792effe837dba3, isNonContiguousSelectionModifier as $feb5ffebff200149$export$d3e3bd3e26688c04} from \"./utils.mjs\";\nimport {useTypeSelect as $fb3050f43d946246$export$e32c88dfddc6e1d8} from \"./useTypeSelect.mjs\";\nimport {flushSync as $3H3GQ$flushSync} from \"react-dom\";\nimport {useRef as $3H3GQ$useRef, useEffect as $3H3GQ$useEffect} from \"react\";\nimport {getFocusableTreeWalker as $3H3GQ$getFocusableTreeWalker, focusSafely as $3H3GQ$focusSafely} from \"@react-aria/focus\";\nimport {useRouter as $3H3GQ$useRouter, focusWithoutScrolling as $3H3GQ$focusWithoutScrolling, useEvent as $3H3GQ$useEvent, scrollIntoViewport as $3H3GQ$scrollIntoViewport, scrollIntoView as $3H3GQ$scrollIntoView, mergeProps as $3H3GQ$mergeProps} from \"@react-aria/utils\";\nimport {getInteractionModality as $3H3GQ$getInteractionModality} from \"@react-aria/interactions\";\nimport {useLocale as $3H3GQ$useLocale} from \"@react-aria/i18n\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\nfunction $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {\n let { selectionManager: manager, keyboardDelegate: delegate, ref: ref, autoFocus: autoFocus = false, shouldFocusWrap: shouldFocusWrap = false, disallowEmptySelection: disallowEmptySelection = false, disallowSelectAll: disallowSelectAll = false, selectOnFocus: selectOnFocus = manager.selectionBehavior === 'replace', disallowTypeAhead: disallowTypeAhead = false, shouldUseVirtualFocus: shouldUseVirtualFocus, allowsTabNavigation: allowsTabNavigation = false, isVirtualized: isVirtualized, scrollRef: // If no scrollRef is provided, assume the collection ref is the scrollable region\n scrollRef = ref, linkBehavior: linkBehavior = 'action' } = options;\n let { direction: direction } = (0, $3H3GQ$useLocale)();\n let router = (0, $3H3GQ$useRouter)();\n let onKeyDown = (e)=>{\n // Prevent option + tab from doing anything since it doesn't move focus to the cells, only buttons/checkboxes\n if (e.altKey && e.key === 'Tab') e.preventDefault();\n // Keyboard events bubble through portals. Don't handle keyboard events\n // for elements outside the collection (e.g. menus).\n if (!ref.current.contains(e.target)) return;\n const navigateToKey = (key, childFocus)=>{\n if (key != null) {\n if (manager.isLink(key) && linkBehavior === 'selection' && selectOnFocus && !(0, $feb5ffebff200149$export$d3e3bd3e26688c04)(e)) {\n // Set focused key and re-render synchronously to bring item into view if needed.\n (0, $3H3GQ$flushSync)(()=>{\n manager.setFocusedKey(key, childFocus);\n });\n let item = scrollRef.current.querySelector(`[data-key=\"${CSS.escape(key.toString())}\"]`);\n let itemProps = manager.getItemProps(key);\n router.open(item, e, itemProps.href, itemProps.routerOptions);\n return;\n }\n manager.setFocusedKey(key, childFocus);\n if (manager.isLink(key) && linkBehavior === 'override') return;\n if (e.shiftKey && manager.selectionMode === 'multiple') manager.extendSelection(key);\n else if (selectOnFocus && !(0, $feb5ffebff200149$export$d3e3bd3e26688c04)(e)) manager.replaceSelection(key);\n }\n };\n switch(e.key){\n case 'ArrowDown':\n if (delegate.getKeyBelow) {\n var _delegate_getFirstKey, _delegate_getFirstKey1;\n e.preventDefault();\n let nextKey = manager.focusedKey != null ? delegate.getKeyBelow(manager.focusedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);\n if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === void 0 ? void 0 : _delegate_getFirstKey1.call(delegate, manager.focusedKey);\n navigateToKey(nextKey);\n }\n break;\n case 'ArrowUp':\n if (delegate.getKeyAbove) {\n var _delegate_getLastKey, _delegate_getLastKey1;\n e.preventDefault();\n let nextKey = manager.focusedKey != null ? delegate.getKeyAbove(manager.focusedKey) : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate);\n if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getLastKey1 = delegate.getLastKey) === null || _delegate_getLastKey1 === void 0 ? void 0 : _delegate_getLastKey1.call(delegate, manager.focusedKey);\n navigateToKey(nextKey);\n }\n break;\n case 'ArrowLeft':\n if (delegate.getKeyLeftOf) {\n var _delegate_getFirstKey2, _delegate_getLastKey2;\n e.preventDefault();\n let nextKey = delegate.getKeyLeftOf(manager.focusedKey);\n if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === void 0 ? void 0 : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === void 0 ? void 0 : _delegate_getLastKey2.call(delegate, manager.focusedKey);\n navigateToKey(nextKey, direction === 'rtl' ? 'first' : 'last');\n }\n break;\n case 'ArrowRight':\n if (delegate.getKeyRightOf) {\n var _delegate_getLastKey3, _delegate_getFirstKey3;\n e.preventDefault();\n let nextKey = delegate.getKeyRightOf(manager.focusedKey);\n if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === void 0 ? void 0 : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === void 0 ? void 0 : _delegate_getFirstKey3.call(delegate, manager.focusedKey);\n navigateToKey(nextKey, direction === 'rtl' ? 'last' : 'first');\n }\n break;\n case 'Home':\n if (delegate.getFirstKey) {\n e.preventDefault();\n let firstKey = delegate.getFirstKey(manager.focusedKey, (0, $feb5ffebff200149$export$16792effe837dba3)(e));\n manager.setFocusedKey(firstKey);\n if ((0, $feb5ffebff200149$export$16792effe837dba3)(e) && e.shiftKey && manager.selectionMode === 'multiple') manager.extendSelection(firstKey);\n else if (selectOnFocus) manager.replaceSelection(firstKey);\n }\n break;\n case 'End':\n if (delegate.getLastKey) {\n e.preventDefault();\n let lastKey = delegate.getLastKey(manager.focusedKey, (0, $feb5ffebff200149$export$16792effe837dba3)(e));\n manager.setFocusedKey(lastKey);\n if ((0, $feb5ffebff200149$export$16792effe837dba3)(e) && e.shiftKey && manager.selectionMode === 'multiple') manager.extendSelection(lastKey);\n else if (selectOnFocus) manager.replaceSelection(lastKey);\n }\n break;\n case 'PageDown':\n if (delegate.getKeyPageBelow) {\n e.preventDefault();\n let nextKey = delegate.getKeyPageBelow(manager.focusedKey);\n navigateToKey(nextKey);\n }\n break;\n case 'PageUp':\n if (delegate.getKeyPageAbove) {\n e.preventDefault();\n let nextKey = delegate.getKeyPageAbove(manager.focusedKey);\n navigateToKey(nextKey);\n }\n break;\n case 'a':\n if ((0, $feb5ffebff200149$export$16792effe837dba3)(e) && manager.selectionMode === 'multiple' && disallowSelectAll !== true) {\n e.preventDefault();\n manager.selectAll();\n }\n break;\n case 'Escape':\n if (!disallowEmptySelection && manager.selectedKeys.size !== 0) {\n e.stopPropagation();\n e.preventDefault();\n manager.clearSelection();\n }\n break;\n case 'Tab':\n if (!allowsTabNavigation) {\n // There may be elements that are \"tabbable\" inside a collection (e.g. in a grid cell).\n // However, collections should be treated as a single tab stop, with arrow key navigation internally.\n // We don't control the rendering of these, so we can't override the tabIndex to prevent tabbing.\n // Instead, we handle the Tab key, and move focus manually to the first/last tabbable element\n // in the collection, so that the browser default behavior will apply starting from that element\n // rather than the currently focused one.\n if (e.shiftKey) ref.current.focus();\n else {\n let walker = (0, $3H3GQ$getFocusableTreeWalker)(ref.current, {\n tabbable: true\n });\n let next;\n let last;\n do {\n last = walker.lastChild();\n if (last) next = last;\n }while (last);\n if (next && !next.contains(document.activeElement)) (0, $3H3GQ$focusWithoutScrolling)(next);\n }\n break;\n }\n }\n };\n // Store the scroll position so we can restore it later.\n /// TODO: should this happen all the time??\n let scrollPos = (0, $3H3GQ$useRef)({\n top: 0,\n left: 0\n });\n (0, $3H3GQ$useEvent)(scrollRef, 'scroll', isVirtualized ? null : ()=>{\n scrollPos.current = {\n top: scrollRef.current.scrollTop,\n left: scrollRef.current.scrollLeft\n };\n });\n let onFocus = (e)=>{\n if (manager.isFocused) {\n // If a focus event bubbled through a portal, reset focus state.\n if (!e.currentTarget.contains(e.target)) manager.setFocused(false);\n return;\n }\n // Focus events can bubble through portals. Ignore these events.\n if (!e.currentTarget.contains(e.target)) return;\n manager.setFocused(true);\n if (manager.focusedKey == null) {\n let navigateToFirstKey = (key)=>{\n if (key != null) {\n manager.setFocusedKey(key);\n if (selectOnFocus) manager.replaceSelection(key);\n }\n };\n // If the user hasn't yet interacted with the collection, there will be no focusedKey set.\n // Attempt to detect whether the user is tabbing forward or backward into the collection\n // and either focus the first or last item accordingly.\n let relatedTarget = e.relatedTarget;\n var _manager_lastSelectedKey, _manager_firstSelectedKey;\n if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING) navigateToFirstKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== void 0 ? _manager_lastSelectedKey : delegate.getLastKey());\n else navigateToFirstKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== void 0 ? _manager_firstSelectedKey : delegate.getFirstKey());\n } else if (!isVirtualized) {\n // Restore the scroll position to what it was before.\n scrollRef.current.scrollTop = scrollPos.current.top;\n scrollRef.current.scrollLeft = scrollPos.current.left;\n }\n if (manager.focusedKey != null) {\n // Refocus and scroll the focused item into view if it exists within the scrollable region.\n let element = scrollRef.current.querySelector(`[data-key=\"${CSS.escape(manager.focusedKey.toString())}\"]`);\n if (element) {\n // This prevents a flash of focus on the first/last element in the collection, or the collection itself.\n if (!element.contains(document.activeElement)) (0, $3H3GQ$focusWithoutScrolling)(element);\n let modality = (0, $3H3GQ$getInteractionModality)();\n if (modality === 'keyboard') (0, $3H3GQ$scrollIntoViewport)(element, {\n containingElement: ref.current\n });\n }\n }\n };\n let onBlur = (e)=>{\n // Don't set blurred and then focused again if moving focus within the collection.\n if (!e.currentTarget.contains(e.relatedTarget)) manager.setFocused(false);\n };\n const autoFocusRef = (0, $3H3GQ$useRef)(autoFocus);\n (0, $3H3GQ$useEffect)(()=>{\n if (autoFocusRef.current) {\n let focusedKey = null;\n // Check focus strategy to determine which item to focus\n if (autoFocus === 'first') focusedKey = delegate.getFirstKey();\n if (autoFocus === 'last') focusedKey = delegate.getLastKey();\n // If there are any selected keys, make the first one the new focus target\n let selectedKeys = manager.selectedKeys;\n if (selectedKeys.size) {\n for (let key of selectedKeys)if (manager.canSelectItem(key)) {\n focusedKey = key;\n break;\n }\n }\n manager.setFocused(true);\n manager.setFocusedKey(focusedKey);\n // If no default focus key is selected, focus the collection itself.\n if (focusedKey == null && !shouldUseVirtualFocus) (0, $3H3GQ$focusSafely)(ref.current);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n // Scroll the focused element into view when the focusedKey changes.\n let lastFocusedKey = (0, $3H3GQ$useRef)(manager.focusedKey);\n (0, $3H3GQ$useEffect)(()=>{\n if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || autoFocusRef.current) && (scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current)) {\n let modality = (0, $3H3GQ$getInteractionModality)();\n let element = ref.current.querySelector(`[data-key=\"${CSS.escape(manager.focusedKey.toString())}\"]`);\n if (!element) // If item element wasn't found, return early (don't update autoFocusRef and lastFocusedKey).\n // The collection may initially be empty (e.g. virtualizer), so wait until the element exists.\n return;\n if (modality === 'keyboard' || autoFocusRef.current) {\n (0, $3H3GQ$scrollIntoView)(scrollRef.current, element);\n // Avoid scroll in iOS VO, since it may cause overlay to close (i.e. RAC submenu)\n if (modality !== 'virtual') (0, $3H3GQ$scrollIntoViewport)(element, {\n containingElement: ref.current\n });\n }\n }\n // If the focused key becomes null (e.g. the last item is deleted), focus the whole collection.\n if (!shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null) (0, $3H3GQ$focusSafely)(ref.current);\n lastFocusedKey.current = manager.focusedKey;\n autoFocusRef.current = false;\n });\n // Intercept FocusScope restoration since virtualized collections can reuse DOM nodes.\n (0, $3H3GQ$useEvent)(ref, 'react-aria-focus-scope-restore', (e)=>{\n e.preventDefault();\n manager.setFocused(true);\n });\n let handlers = {\n onKeyDown: onKeyDown,\n onFocus: onFocus,\n onBlur: onBlur,\n onMouseDown (e) {\n // Ignore events that bubbled through portals.\n if (scrollRef.current === e.target) // Prevent focus going to the collection when clicking on the scrollbar.\n e.preventDefault();\n }\n };\n let { typeSelectProps: typeSelectProps } = (0, $fb3050f43d946246$export$e32c88dfddc6e1d8)({\n keyboardDelegate: delegate,\n selectionManager: manager\n });\n if (!disallowTypeAhead) handlers = (0, $3H3GQ$mergeProps)(typeSelectProps, handlers);\n // If nothing is focused within the collection, make the collection itself tabbable.\n // This will be marshalled to either the first or last item depending on where focus came from.\n // If using virtual focus, don't set a tabIndex at all so that VoiceOver on iOS 14 doesn't try\n // to move real DOM focus to the element anyway.\n let tabIndex;\n if (!shouldUseVirtualFocus) tabIndex = manager.focusedKey == null ? 0 : -1;\n return {\n collectionProps: {\n ...handlers,\n tabIndex: tabIndex\n }\n };\n}\n\n\nexport {$ae20dd8cbca75726$export$d6daf82dcd84e87c as useSelectableCollection};\n","/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $5b160d28a433310d$var$localeSymbol = Symbol.for('react-aria.i18n.locale');\nconst $5b160d28a433310d$var$stringsSymbol = Symbol.for('react-aria.i18n.strings');\nlet $5b160d28a433310d$var$cachedGlobalStrings = undefined;\nclass $5b160d28a433310d$export$c17fa47878dc55b6 {\n /** Returns a localized string for the given key and locale. */ getStringForLocale(key, locale) {\n let strings = this.getStringsForLocale(locale);\n let string = strings[key];\n if (!string) throw new Error(`Could not find intl message ${key} in ${locale} locale`);\n return string;\n }\n /** Returns all localized strings for the given locale. */ getStringsForLocale(locale) {\n let strings = this.strings[locale];\n if (!strings) {\n strings = $5b160d28a433310d$var$getStringsForLocale(locale, this.strings, this.defaultLocale);\n this.strings[locale] = strings;\n }\n return strings;\n }\n static getGlobalDictionaryForPackage(packageName) {\n if (typeof window === 'undefined') return null;\n let locale = window[$5b160d28a433310d$var$localeSymbol];\n if ($5b160d28a433310d$var$cachedGlobalStrings === undefined) {\n let globalStrings = window[$5b160d28a433310d$var$stringsSymbol];\n if (!globalStrings) return null;\n $5b160d28a433310d$var$cachedGlobalStrings = {};\n for(let pkg in globalStrings)$5b160d28a433310d$var$cachedGlobalStrings[pkg] = new $5b160d28a433310d$export$c17fa47878dc55b6({\n [locale]: globalStrings[pkg]\n }, locale);\n }\n let dictionary = $5b160d28a433310d$var$cachedGlobalStrings === null || $5b160d28a433310d$var$cachedGlobalStrings === void 0 ? void 0 : $5b160d28a433310d$var$cachedGlobalStrings[packageName];\n if (!dictionary) throw new Error(`Strings for package \"${packageName}\" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);\n return dictionary;\n }\n constructor(messages, defaultLocale = 'en-US'){\n // Clone messages so we don't modify the original object.\n // Filter out entries with falsy values which may have been caused by applying optimize-locales-plugin.\n this.strings = Object.fromEntries(Object.entries(messages).filter(([, v])=>v));\n this.defaultLocale = defaultLocale;\n }\n}\nfunction $5b160d28a433310d$var$getStringsForLocale(locale, strings, defaultLocale = 'en-US') {\n // If there is an exact match, use it.\n if (strings[locale]) return strings[locale];\n // Attempt to find the closest match by language.\n // For example, if the locale is fr-CA (French Canadian), but there is only\n // an fr-FR (France) set of strings, use that.\n // This could be replaced with Intl.LocaleMatcher once it is supported.\n // https://github.com/tc39/proposal-intl-localematcher\n let language = $5b160d28a433310d$var$getLanguage(locale);\n if (strings[language]) return strings[language];\n for(let key in strings){\n if (key.startsWith(language + '-')) return strings[key];\n }\n // Nothing close, use english.\n return strings[defaultLocale];\n}\nfunction $5b160d28a433310d$var$getLanguage(locale) {\n // @ts-ignore\n if (Intl.Locale) // @ts-ignore\n return new Intl.Locale(locale).language;\n return locale.split('-')[0];\n}\n\n\nexport {$5b160d28a433310d$export$c17fa47878dc55b6 as LocalizedStringDictionary};\n","/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $6db58dc88e78b024$var$pluralRulesCache = new Map();\nconst $6db58dc88e78b024$var$numberFormatCache = new Map();\nclass $6db58dc88e78b024$export$2f817fcdc4b89ae0 {\n /** Formats a localized string for the given key with the provided variables. */ format(key, variables) {\n let message = this.strings.getStringForLocale(key, this.locale);\n return typeof message === 'function' ? message(variables, this) : message;\n }\n plural(count, options, type = 'cardinal') {\n let opt = options['=' + count];\n if (opt) return typeof opt === 'function' ? opt() : opt;\n let key = this.locale + ':' + type;\n let pluralRules = $6db58dc88e78b024$var$pluralRulesCache.get(key);\n if (!pluralRules) {\n pluralRules = new Intl.PluralRules(this.locale, {\n type: type\n });\n $6db58dc88e78b024$var$pluralRulesCache.set(key, pluralRules);\n }\n let selected = pluralRules.select(count);\n opt = options[selected] || options.other;\n return typeof opt === 'function' ? opt() : opt;\n }\n number(value) {\n let numberFormat = $6db58dc88e78b024$var$numberFormatCache.get(this.locale);\n if (!numberFormat) {\n numberFormat = new Intl.NumberFormat(this.locale);\n $6db58dc88e78b024$var$numberFormatCache.set(this.locale, numberFormat);\n }\n return numberFormat.format(value);\n }\n select(options, value) {\n let opt = options[value] || options.other;\n return typeof opt === 'function' ? opt() : opt;\n }\n constructor(locale, strings){\n this.locale = locale;\n this.strings = strings;\n }\n}\n\n\nexport {$6db58dc88e78b024$export$2f817fcdc4b89ae0 as LocalizedStringFormatter};\n","import {useLocale as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7} from \"./context.mjs\";\nimport {LocalizedStringDictionary as $6ksNp$LocalizedStringDictionary, LocalizedStringFormatter as $6ksNp$LocalizedStringFormatter} from \"@internationalized/string\";\nimport {useMemo as $6ksNp$useMemo} from \"react\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nconst $fca6afa0e843324b$var$cache = new WeakMap();\nfunction $fca6afa0e843324b$var$getCachedDictionary(strings) {\n let dictionary = $fca6afa0e843324b$var$cache.get(strings);\n if (!dictionary) {\n dictionary = new (0, $6ksNp$LocalizedStringDictionary)(strings);\n $fca6afa0e843324b$var$cache.set(strings, dictionary);\n }\n return dictionary;\n}\nfunction $fca6afa0e843324b$export$87b761675e8eaa10(strings, packageName) {\n return packageName && (0, $6ksNp$LocalizedStringDictionary).getGlobalDictionaryForPackage(packageName) || $fca6afa0e843324b$var$getCachedDictionary(strings);\n}\nfunction $fca6afa0e843324b$export$f12b703ca79dfbb1(strings, packageName) {\n let { locale: locale } = (0, $18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();\n let dictionary = $fca6afa0e843324b$export$87b761675e8eaa10(strings, packageName);\n return (0, $6ksNp$useMemo)(()=>new (0, $6ksNp$LocalizedStringFormatter)(locale, dictionary), [\n locale,\n dictionary\n ]);\n}\n\n\nexport {$fca6afa0e843324b$export$87b761675e8eaa10 as useLocalizedStringDictionary, $fca6afa0e843324b$export$f12b703ca79dfbb1 as useLocalizedStringFormatter};\n","var $c0398ad35c3639b7$exports = {};\n$c0398ad35c3639b7$exports = {\n \"longPressMessage\": `\\u{627}\\u{636}\\u{63A}\\u{637} \\u{645}\\u{637}\\u{648}\\u{644}\\u{627}\\u{64B} \\u{623}\\u{648} \\u{627}\\u{636}\\u{63A}\\u{637} \\u{639}\\u{644}\\u{649} Alt + \\u{627}\\u{644}\\u{633}\\u{647}\\u{645} \\u{644}\\u{623}\\u{633}\\u{641}\\u{644} \\u{644}\\u{641}\\u{62A}\\u{62D} \\u{627}\\u{644}\\u{642}\\u{627}\\u{626}\\u{645}\\u{629}`\n};\n\n\nexport {$c0398ad35c3639b7$exports as default};\n","import $5FSX7$arAEmodulejs from \"./ar-AE.mjs\";\nimport $5FSX7$bgBGmodulejs from \"./bg-BG.mjs\";\nimport $5FSX7$csCZmodulejs from \"./cs-CZ.mjs\";\nimport $5FSX7$daDKmodulejs from \"./da-DK.mjs\";\nimport $5FSX7$deDEmodulejs from \"./de-DE.mjs\";\nimport $5FSX7$elGRmodulejs from \"./el-GR.mjs\";\nimport $5FSX7$enUSmodulejs from \"./en-US.mjs\";\nimport $5FSX7$esESmodulejs from \"./es-ES.mjs\";\nimport $5FSX7$etEEmodulejs from \"./et-EE.mjs\";\nimport $5FSX7$fiFImodulejs from \"./fi-FI.mjs\";\nimport $5FSX7$frFRmodulejs from \"./fr-FR.mjs\";\nimport $5FSX7$heILmodulejs from \"./he-IL.mjs\";\nimport $5FSX7$hrHRmodulejs from \"./hr-HR.mjs\";\nimport $5FSX7$huHUmodulejs from \"./hu-HU.mjs\";\nimport $5FSX7$itITmodulejs from \"./it-IT.mjs\";\nimport $5FSX7$jaJPmodulejs from \"./ja-JP.mjs\";\nimport $5FSX7$koKRmodulejs from \"./ko-KR.mjs\";\nimport $5FSX7$ltLTmodulejs from \"./lt-LT.mjs\";\nimport $5FSX7$lvLVmodulejs from \"./lv-LV.mjs\";\nimport $5FSX7$nbNOmodulejs from \"./nb-NO.mjs\";\nimport $5FSX7$nlNLmodulejs from \"./nl-NL.mjs\";\nimport $5FSX7$plPLmodulejs from \"./pl-PL.mjs\";\nimport $5FSX7$ptBRmodulejs from \"./pt-BR.mjs\";\nimport $5FSX7$ptPTmodulejs from \"./pt-PT.mjs\";\nimport $5FSX7$roROmodulejs from \"./ro-RO.mjs\";\nimport $5FSX7$ruRUmodulejs from \"./ru-RU.mjs\";\nimport $5FSX7$skSKmodulejs from \"./sk-SK.mjs\";\nimport $5FSX7$slSImodulejs from \"./sl-SI.mjs\";\nimport $5FSX7$srSPmodulejs from \"./sr-SP.mjs\";\nimport $5FSX7$svSEmodulejs from \"./sv-SE.mjs\";\nimport $5FSX7$trTRmodulejs from \"./tr-TR.mjs\";\nimport $5FSX7$ukUAmodulejs from \"./uk-UA.mjs\";\nimport $5FSX7$zhCNmodulejs from \"./zh-CN.mjs\";\nimport $5FSX7$zhTWmodulejs from \"./zh-TW.mjs\";\n\nvar $2cbb7ca666678a14$exports = {};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n$2cbb7ca666678a14$exports = {\n \"ar-AE\": $5FSX7$arAEmodulejs,\n \"bg-BG\": $5FSX7$bgBGmodulejs,\n \"cs-CZ\": $5FSX7$csCZmodulejs,\n \"da-DK\": $5FSX7$daDKmodulejs,\n \"de-DE\": $5FSX7$deDEmodulejs,\n \"el-GR\": $5FSX7$elGRmodulejs,\n \"en-US\": $5FSX7$enUSmodulejs,\n \"es-ES\": $5FSX7$esESmodulejs,\n \"et-EE\": $5FSX7$etEEmodulejs,\n \"fi-FI\": $5FSX7$fiFImodulejs,\n \"fr-FR\": $5FSX7$frFRmodulejs,\n \"he-IL\": $5FSX7$heILmodulejs,\n \"hr-HR\": $5FSX7$hrHRmodulejs,\n \"hu-HU\": $5FSX7$huHUmodulejs,\n \"it-IT\": $5FSX7$itITmodulejs,\n \"ja-JP\": $5FSX7$jaJPmodulejs,\n \"ko-KR\": $5FSX7$koKRmodulejs,\n \"lt-LT\": $5FSX7$ltLTmodulejs,\n \"lv-LV\": $5FSX7$lvLVmodulejs,\n \"nb-NO\": $5FSX7$nbNOmodulejs,\n \"nl-NL\": $5FSX7$nlNLmodulejs,\n \"pl-PL\": $5FSX7$plPLmodulejs,\n \"pt-BR\": $5FSX7$ptBRmodulejs,\n \"pt-PT\": $5FSX7$ptPTmodulejs,\n \"ro-RO\": $5FSX7$roROmodulejs,\n \"ru-RU\": $5FSX7$ruRUmodulejs,\n \"sk-SK\": $5FSX7$skSKmodulejs,\n \"sl-SI\": $5FSX7$slSImodulejs,\n \"sr-SP\": $5FSX7$srSPmodulejs,\n \"sv-SE\": $5FSX7$svSEmodulejs,\n \"tr-TR\": $5FSX7$trTRmodulejs,\n \"uk-UA\": $5FSX7$ukUAmodulejs,\n \"zh-CN\": $5FSX7$zhCNmodulejs,\n \"zh-TW\": $5FSX7$zhTWmodulejs\n};\n\n\nexport {$2cbb7ca666678a14$exports as default};\n","var $7af657c4165927c3$exports = {};\n$7af657c4165927c3$exports = {\n \"longPressMessage\": `\\u{41D}\\u{430}\\u{442}\\u{438}\\u{441}\\u{43D}\\u{435}\\u{442}\\u{435} \\u{43F}\\u{440}\\u{43E}\\u{434}\\u{44A}\\u{43B}\\u{436}\\u{438}\\u{442}\\u{435}\\u{43B}\\u{43D}\\u{43E} \\u{438}\\u{43B}\\u{438} \\u{43D}\\u{430}\\u{442}\\u{438}\\u{441}\\u{43D}\\u{435}\\u{442}\\u{435} Alt+ \\u{441}\\u{442}\\u{440}\\u{435}\\u{43B}\\u{43A}\\u{430} \\u{43D}\\u{430}\\u{434}\\u{43E}\\u{43B}\\u{443}, \\u{437}\\u{430} \\u{434}\\u{430} \\u{43E}\\u{442}\\u{432}\\u{43E}\\u{440}\\u{438}\\u{442}\\u{435} \\u{43C}\\u{435}\\u{43D}\\u{44E}\\u{442}\\u{43E}`\n};\n\n\nexport {$7af657c4165927c3$exports as default};\n","var $d95d4da6d531ab81$exports = {};\n$d95d4da6d531ab81$exports = {\n \"longPressMessage\": `Dlouh\\xfdm stiskem nebo stisknut\\xedm kl\\xe1ves Alt + \\u{161}ipka dol\\u{16F} otev\\u{159}ete nab\\xeddku`\n};\n\n\nexport {$d95d4da6d531ab81$exports as default};\n","var $24ebda9c775dca17$exports = {};\n$24ebda9c775dca17$exports = {\n \"longPressMessage\": `Langt tryk eller tryk p\\xe5 Alt + pil ned for at \\xe5bne menuen`\n};\n\n\nexport {$24ebda9c775dca17$exports as default};\n","var $743e0dfca6cab1e9$exports = {};\n$743e0dfca6cab1e9$exports = {\n \"longPressMessage\": `Dr\\xfccken Sie lange oder dr\\xfccken Sie Alt + Nach-unten, um das Men\\xfc zu \\xf6ffnen`\n};\n\n\nexport {$743e0dfca6cab1e9$exports as default};\n","var $a2f41026e05f1c84$exports = {};\n$a2f41026e05f1c84$exports = {\n \"longPressMessage\": `\\u{3A0}\\u{3B9}\\u{3AD}\\u{3C3}\\u{3C4}\\u{3B5} \\u{3C0}\\u{3B1}\\u{3C1}\\u{3B1}\\u{3C4}\\u{3B5}\\u{3C4}\\u{3B1}\\u{3BC}\\u{3AD}\\u{3BD}\\u{3B1} \\u{3AE} \\u{3C0}\\u{3B1}\\u{3C4}\\u{3AE}\\u{3C3}\\u{3C4}\\u{3B5} Alt + \\u{3BA}\\u{3AC}\\u{3C4}\\u{3C9} \\u{3B2}\\u{3AD}\\u{3BB}\\u{3BF}\\u{3C2} \\u{3B3}\\u{3B9}\\u{3B1} \\u{3BD}\\u{3B1} \\u{3B1}\\u{3BD}\\u{3BF}\\u{3AF}\\u{3BE}\\u{3B5}\\u{3C4}\\u{3B5} \\u{3C4}\\u{3BF} \\u{3BC}\\u{3B5}\\u{3BD}\\u{3BF}\\u{3CD}`\n};\n\n\nexport {$a2f41026e05f1c84$exports as default};\n","var $43b800e97c901737$exports = {};\n$43b800e97c901737$exports = {\n \"longPressMessage\": `Long press or press Alt + ArrowDown to open menu`\n};\n\n\nexport {$43b800e97c901737$exports as default};\n","var $442f5f6ac211e29f$exports = {};\n$442f5f6ac211e29f$exports = {\n \"longPressMessage\": `Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\\xfa`\n};\n\n\nexport {$442f5f6ac211e29f$exports as default};\n","var $dff280acfeb2d8ac$exports = {};\n$dff280acfeb2d8ac$exports = {\n \"longPressMessage\": `Men\\xfc\\xfc avamiseks vajutage pikalt v\\xf5i vajutage klahve Alt + allanool`\n};\n\n\nexport {$dff280acfeb2d8ac$exports as default};\n","var $51608325613944d7$exports = {};\n$51608325613944d7$exports = {\n \"longPressMessage\": `Avaa valikko painamalla pohjassa tai n\\xe4pp\\xe4inyhdistelm\\xe4ll\\xe4 Alt + Alanuoli`\n};\n\n\nexport {$51608325613944d7$exports as default};\n","var $c4a1b1eabeaa87be$exports = {};\n$c4a1b1eabeaa87be$exports = {\n \"longPressMessage\": `Appuyez de mani\\xe8re prolong\\xe9e ou appuyez sur Alt\\xa0+\\xa0Fl\\xe8che vers le bas pour ouvrir le menu.`\n};\n\n\nexport {$c4a1b1eabeaa87be$exports as default};\n","var $8c74815cdee18d1b$exports = {};\n$8c74815cdee18d1b$exports = {\n \"longPressMessage\": `\\u{5DC}\\u{5D7}\\u{5E5} \\u{5DC}\\u{5D7}\\u{5D9}\\u{5E6}\\u{5D4} \\u{5D0}\\u{5E8}\\u{5D5}\\u{5DB}\\u{5D4} \\u{5D0}\\u{5D5} \\u{5D4}\\u{5E7}\\u{5E9} Alt + ArrowDown \\u{5DB}\\u{5D3}\\u{5D9} \\u{5DC}\\u{5E4}\\u{5EA}\\u{5D5}\\u{5D7} \\u{5D0}\\u{5EA} \\u{5D4}\\u{5EA}\\u{5E4}\\u{5E8}\\u{5D9}\\u{5D8}`\n};\n\n\nexport {$8c74815cdee18d1b$exports as default};\n","var $fd0e9ef6a7fe0ec9$exports = {};\n$fd0e9ef6a7fe0ec9$exports = {\n \"longPressMessage\": `Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika`\n};\n\n\nexport {$fd0e9ef6a7fe0ec9$exports as default};\n","var $a89a74a39eba465a$exports = {};\n$a89a74a39eba465a$exports = {\n \"longPressMessage\": `Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\\xedl gombot a men\\xfc megnyit\\xe1s\\xe1hoz`\n};\n\n\nexport {$a89a74a39eba465a$exports as default};\n","var $edc7c66594a0ae8a$exports = {};\n$edc7c66594a0ae8a$exports = {\n \"longPressMessage\": `Premere a lungo o premere Alt + Freccia gi\\xf9 per aprire il menu`\n};\n\n\nexport {$edc7c66594a0ae8a$exports as default};\n","var $f1ab51510712db52$exports = {};\n$f1ab51510712db52$exports = {\n \"longPressMessage\": `\\u{9577}\\u{62BC}\\u{3057}\\u{307E}\\u{305F}\\u{306F} Alt+\\u{4E0B}\\u{77E2}\\u{5370}\\u{30AD}\\u{30FC}\\u{3067}\\u{30E1}\\u{30CB}\\u{30E5}\\u{30FC}\\u{3092}\\u{958B}\\u{304F}`\n};\n\n\nexport {$f1ab51510712db52$exports as default};\n","var $f9b672d9b82fa3d6$exports = {};\n$f9b672d9b82fa3d6$exports = {\n \"longPressMessage\": `\\u{AE38}\\u{AC8C} \\u{B204}\\u{B974}\\u{AC70}\\u{B098} Alt + \\u{C544}\\u{B798}\\u{CABD} \\u{D654}\\u{C0B4}\\u{D45C}\\u{B97C} \\u{B20C}\\u{B7EC} \\u{BA54}\\u{B274} \\u{C5F4}\\u{AE30}`\n};\n\n\nexport {$f9b672d9b82fa3d6$exports as default};\n","var $a385f3910feda499$exports = {};\n$a385f3910feda499$exports = {\n \"longPressMessage\": `Nor\\u{117}dami atidaryti meniu, nuspaud\\u{119} palaikykite arba paspauskite \\u{201E}Alt + ArrowDown\\u{201C}.`\n};\n\n\nexport {$a385f3910feda499$exports as default};\n","var $4f1bde932c441789$exports = {};\n$4f1bde932c441789$exports = {\n \"longPressMessage\": `Lai atv\\u{113}rtu izv\\u{113}lni, turiet nospiestu vai nospiediet tausti\\u{146}u kombin\\u{101}ciju Alt + lejupv\\u{113}rst\\u{101} bulti\\u{146}a`\n};\n\n\nexport {$4f1bde932c441789$exports as default};\n","var $914a51a8a594d5be$exports = {};\n$914a51a8a594d5be$exports = {\n \"longPressMessage\": `Langt trykk eller trykk Alt + PilNed for \\xe5 \\xe5pne menyen`\n};\n\n\nexport {$914a51a8a594d5be$exports as default};\n","var $89aaf803103bb500$exports = {};\n$89aaf803103bb500$exports = {\n \"longPressMessage\": `Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen`\n};\n\n\nexport {$89aaf803103bb500$exports as default};\n","var $c685891476dbaaca$exports = {};\n$c685891476dbaaca$exports = {\n \"longPressMessage\": `Naci\\u{15B}nij i przytrzymaj lub naci\\u{15B}nij klawisze Alt + Strza\\u{142}ka w d\\xf3\\u{142}, aby otworzy\\u{107} menu`\n};\n\n\nexport {$c685891476dbaaca$exports as default};\n","var $885879b9b10c2959$exports = {};\n$885879b9b10c2959$exports = {\n \"longPressMessage\": `Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`\n};\n\n\nexport {$885879b9b10c2959$exports as default};\n","var $6b39616688a51692$exports = {};\n$6b39616688a51692$exports = {\n \"longPressMessage\": `Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu`\n};\n\n\nexport {$6b39616688a51692$exports as default};\n","var $f26362aed63f47e2$exports = {};\n$f26362aed63f47e2$exports = {\n \"longPressMessage\": `Ap\\u{103}sa\\u{21B}i lung sau ap\\u{103}sa\\u{21B}i pe Alt + s\\u{103}geat\\u{103} \\xeen jos pentru a deschide meniul`\n};\n\n\nexport {$f26362aed63f47e2$exports as default};\n","var $06cbade644558bf0$exports = {};\n$06cbade644558bf0$exports = {\n \"longPressMessage\": `\\u{41D}\\u{430}\\u{436}\\u{43C}\\u{438}\\u{442}\\u{435} \\u{438} \\u{443}\\u{434}\\u{435}\\u{440}\\u{436}\\u{438}\\u{432}\\u{430}\\u{439}\\u{442}\\u{435} \\u{438}\\u{43B}\\u{438} \\u{43D}\\u{430}\\u{436}\\u{43C}\\u{438}\\u{442}\\u{435} Alt + \\u{421}\\u{442}\\u{440}\\u{435}\\u{43B}\\u{43A}\\u{430} \\u{432}\\u{43D}\\u{438}\\u{437}, \\u{447}\\u{442}\\u{43E}\\u{431}\\u{44B} \\u{43E}\\u{442}\\u{43A}\\u{440}\\u{44B}\\u{442}\\u{44C} \\u{43C}\\u{435}\\u{43D}\\u{44E}`\n};\n\n\nexport {$06cbade644558bf0$exports as default};\n","var $0a391ff68f9d59b1$exports = {};\n$0a391ff68f9d59b1$exports = {\n \"longPressMessage\": `Ponuku otvor\\xedte dlh\\xfdm stla\\u{10D}en\\xedm alebo stla\\u{10D}en\\xedm kl\\xe1vesu Alt + kl\\xe1vesu so \\u{161}\\xedpkou nadol`\n};\n\n\nexport {$0a391ff68f9d59b1$exports as default};\n","var $8193cf0e649c7928$exports = {};\n$8193cf0e649c7928$exports = {\n \"longPressMessage\": `Za odprtje menija pritisnite in dr\\u{17E}ite gumb ali pritisnite Alt+pu\\u{161}\\u{10D}ica navzdol`\n};\n\n\nexport {$8193cf0e649c7928$exports as default};\n","var $f398debcce5a5c55$exports = {};\n$f398debcce5a5c55$exports = {\n \"longPressMessage\": `Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni`\n};\n\n\nexport {$f398debcce5a5c55$exports as default};\n","var $9e9fef000aa4c013$exports = {};\n$9e9fef000aa4c013$exports = {\n \"longPressMessage\": `H\\xe5ll nedtryckt eller tryck p\\xe5 Alt + pil ned\\xe5t f\\xf6r att \\xf6ppna menyn`\n};\n\n\nexport {$9e9fef000aa4c013$exports as default};\n","var $c016c8183bbe3d68$exports = {};\n$c016c8183bbe3d68$exports = {\n \"longPressMessage\": `Men\\xfcy\\xfc a\\xe7mak i\\xe7in uzun bas\\u{131}n veya Alt + A\\u{15F}a\\u{11F}\\u{131} Ok tu\\u{15F}una bas\\u{131}n`\n};\n\n\nexport {$c016c8183bbe3d68$exports as default};\n","var $ca4f6c8462244e62$exports = {};\n$ca4f6c8462244e62$exports = {\n \"longPressMessage\": `\\u{414}\\u{43E}\\u{432}\\u{433}\\u{43E} \\u{430}\\u{431}\\u{43E} \\u{437}\\u{432}\\u{438}\\u{447}\\u{430}\\u{439}\\u{43D}\\u{43E} \\u{43D}\\u{430}\\u{442}\\u{438}\\u{441}\\u{43D}\\u{456}\\u{442}\\u{44C} \\u{43A}\\u{43E}\\u{43C}\\u{431}\\u{456}\\u{43D}\\u{430}\\u{446}\\u{456}\\u{44E} \\u{43A}\\u{43B}\\u{430}\\u{432}\\u{456}\\u{448} Alt \\u{456} \\u{441}\\u{442}\\u{440}\\u{456}\\u{43B}\\u{43A}\\u{430} \\u{432}\\u{43D}\\u{438}\\u{437}, \\u{449}\\u{43E}\\u{431} \\u{432}\\u{456}\\u{434}\\u{43A}\\u{440}\\u{438}\\u{442}\\u{438} \\u{43C}\\u{435}\\u{43D}\\u{44E}`\n};\n\n\nexport {$ca4f6c8462244e62$exports as default};\n","var $2d9960c02ccac927$exports = {};\n$2d9960c02ccac927$exports = {\n \"longPressMessage\": `\\u{957F}\\u{6309}\\u{6216}\\u{6309} Alt + \\u{5411}\\u{4E0B}\\u{65B9}\\u{5411}\\u{952E}\\u{4EE5}\\u{6253}\\u{5F00}\\u{83DC}\\u{5355}`\n};\n\n\nexport {$2d9960c02ccac927$exports as default};\n","var $f1b682a4c8c5631c$exports = {};\n$f1b682a4c8c5631c$exports = {\n \"longPressMessage\": `\\u{9577}\\u{6309}\\u{6216}\\u{6309} Alt+\\u{5411}\\u{4E0B}\\u{9375}\\u{4EE5}\\u{958B}\\u{555F}\\u{529F}\\u{80FD}\\u{8868}`\n};\n\n\nexport {$f1b682a4c8c5631c$exports as default};\n","import {isIOS as $7R18e$isIOS, getOwnerDocument as $7R18e$getOwnerDocument, runAfterTransition as $7R18e$runAfterTransition} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n// Note that state only matters here for iOS. Non-iOS gets user-select: none applied to the target element\n// rather than at the document level so we just need to apply/remove user-select: none for each pressed element individually\nlet $14c0b72509d70225$var$state = 'default';\nlet $14c0b72509d70225$var$savedUserSelect = '';\nlet $14c0b72509d70225$var$modifiedElementMap = new WeakMap();\nfunction $14c0b72509d70225$export$16a4697467175487(target) {\n if ((0, $7R18e$isIOS)()) {\n if ($14c0b72509d70225$var$state === 'default') {\n // eslint-disable-next-line no-restricted-globals\n const documentObject = (0, $7R18e$getOwnerDocument)(target);\n $14c0b72509d70225$var$savedUserSelect = documentObject.documentElement.style.webkitUserSelect;\n documentObject.documentElement.style.webkitUserSelect = 'none';\n }\n $14c0b72509d70225$var$state = 'disabled';\n } else if (target instanceof HTMLElement || target instanceof SVGElement) {\n // If not iOS, store the target's original user-select and change to user-select: none\n // Ignore state since it doesn't apply for non iOS\n $14c0b72509d70225$var$modifiedElementMap.set(target, target.style.userSelect);\n target.style.userSelect = 'none';\n }\n}\nfunction $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {\n if ((0, $7R18e$isIOS)()) {\n // If the state is already default, there's nothing to do.\n // If it is restoring, then there's no need to queue a second restore.\n if ($14c0b72509d70225$var$state !== 'disabled') return;\n $14c0b72509d70225$var$state = 'restoring';\n // There appears to be a delay on iOS where selection still might occur\n // after pointer up, so wait a bit before removing user-select.\n setTimeout(()=>{\n // Wait for any CSS transitions to complete so we don't recompute style\n // for the whole page in the middle of the animation and cause jank.\n (0, $7R18e$runAfterTransition)(()=>{\n // Avoid race conditions\n if ($14c0b72509d70225$var$state === 'restoring') {\n // eslint-disable-next-line no-restricted-globals\n const documentObject = (0, $7R18e$getOwnerDocument)(target);\n if (documentObject.documentElement.style.webkitUserSelect === 'none') documentObject.documentElement.style.webkitUserSelect = $14c0b72509d70225$var$savedUserSelect || '';\n $14c0b72509d70225$var$savedUserSelect = '';\n $14c0b72509d70225$var$state = 'default';\n }\n });\n }, 300);\n } else if (target instanceof HTMLElement || target instanceof SVGElement) // If not iOS, restore the target's original user-select if any\n // Ignore state since it doesn't apply for non iOS\n {\n if (target && $14c0b72509d70225$var$modifiedElementMap.has(target)) {\n let targetOldUserSelect = $14c0b72509d70225$var$modifiedElementMap.get(target);\n if (target.style.userSelect === 'none') target.style.userSelect = targetOldUserSelect;\n if (target.getAttribute('style') === '') target.removeAttribute('style');\n $14c0b72509d70225$var$modifiedElementMap.delete(target);\n }\n }\n}\n\n\nexport {$14c0b72509d70225$export$16a4697467175487 as disableTextSelection, $14c0b72509d70225$export$b0d6fa1ab32e3295 as restoreTextSelection};\n","import $3aeG1$react from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nconst $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = (0, $3aeG1$react).createContext({\n register: ()=>{}\n});\n$ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName = 'PressResponderContext';\n\n\nexport {$ae1eeba8b9eafd08$export$5165eccb35aaadb5 as PressResponderContext};\n","function _class_extract_field_descriptor(receiver, privateMap, action) {\n if (!privateMap.has(receiver)) throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n\n return privateMap.get(receiver);\n}\nexport { _class_extract_field_descriptor as _ };\n","import { _ as _check_private_redeclaration } from \"./_check_private_redeclaration.js\";\n\nfunction _class_private_field_init(obj, privateMap, value) {\n _check_private_redeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}\nexport { _class_private_field_init as _ };\n","function _check_private_redeclaration(obj, privateCollection) {\n if (privateCollection.has(obj)) {\n throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n }\n}\nexport { _check_private_redeclaration as _ };\n","import { _ as _class_apply_descriptor_set } from \"./_class_apply_descriptor_set.js\";\nimport { _ as _class_extract_field_descriptor } from \"./_class_extract_field_descriptor.js\";\n\nfunction _class_private_field_set(receiver, privateMap, value) {\n var descriptor = _class_extract_field_descriptor(receiver, privateMap, \"set\");\n _class_apply_descriptor_set(receiver, descriptor, value);\n return value;\n}\nexport { _class_private_field_set as _ };\n","function _class_apply_descriptor_set(receiver, descriptor, value) {\n if (descriptor.set) descriptor.set.call(receiver, value);\n else {\n if (!descriptor.writable) {\n // This should only throw in strict mode, but class bodies are\n // always strict and private fields can only be used inside\n // class bodies.\n throw new TypeError(\"attempted to set read only private field\");\n }\n descriptor.value = value;\n }\n}\nexport { _class_apply_descriptor_set as _ };\n","import {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from \"./useLayoutEffect.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref) {\n (0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{\n if (context && context.ref && ref) {\n context.ref.current = ref.current;\n return ()=>{\n if (context.ref) context.ref.current = null;\n };\n }\n });\n}\n\n\nexport {$e7801be82b4b2a53$export$4debdb1a3f0fa79e as useSyncRef};\n","import {useRef as $lPAwt$useRef, useCallback as $lPAwt$useCallback, useEffect as $lPAwt$useEffect} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $03deb23ff14920c4$export$4eaf04e54aa8eed6() {\n let globalListeners = (0, $lPAwt$useRef)(new Map());\n let addGlobalListener = (0, $lPAwt$useCallback)((eventTarget, type, listener, options)=>{\n // Make sure we remove the listener after it is called with the `once` option.\n let fn = (options === null || options === void 0 ? void 0 : options.once) ? (...args)=>{\n globalListeners.current.delete(listener);\n listener(...args);\n } : listener;\n globalListeners.current.set(listener, {\n type: type,\n eventTarget: eventTarget,\n fn: fn,\n options: options\n });\n eventTarget.addEventListener(type, listener, options);\n }, []);\n let removeGlobalListener = (0, $lPAwt$useCallback)((eventTarget, type, listener, options)=>{\n var _globalListeners_current_get;\n let fn = ((_globalListeners_current_get = globalListeners.current.get(listener)) === null || _globalListeners_current_get === void 0 ? void 0 : _globalListeners_current_get.fn) || listener;\n eventTarget.removeEventListener(type, fn, options);\n globalListeners.current.delete(listener);\n }, []);\n let removeAllGlobalListeners = (0, $lPAwt$useCallback)(()=>{\n globalListeners.current.forEach((value, key)=>{\n removeGlobalListener(value.eventTarget, value.type, key, value.options);\n });\n }, [\n removeGlobalListener\n ]);\n // eslint-disable-next-line arrow-body-style\n (0, $lPAwt$useEffect)(()=>{\n return removeAllGlobalListeners;\n }, [\n removeAllGlobalListeners\n ]);\n return {\n addGlobalListener: addGlobalListener,\n removeGlobalListener: removeGlobalListener,\n removeAllGlobalListeners: removeAllGlobalListeners\n };\n}\n\n\nexport {$03deb23ff14920c4$export$4eaf04e54aa8eed6 as useGlobalListeners};\n","import {disableTextSelection as $14c0b72509d70225$export$16a4697467175487, restoreTextSelection as $14c0b72509d70225$export$b0d6fa1ab32e3295} from \"./textSelection.mjs\";\nimport {PressResponderContext as $ae1eeba8b9eafd08$export$5165eccb35aaadb5} from \"./context.mjs\";\nimport {_ as $7mdmh$_} from \"@swc/helpers/_/_class_private_field_get\";\nimport {_ as $7mdmh$_1} from \"@swc/helpers/_/_class_private_field_init\";\nimport {_ as $7mdmh$_2} from \"@swc/helpers/_/_class_private_field_set\";\nimport {mergeProps as $7mdmh$mergeProps, useSyncRef as $7mdmh$useSyncRef, useGlobalListeners as $7mdmh$useGlobalListeners, useEffectEvent as $7mdmh$useEffectEvent, getOwnerDocument as $7mdmh$getOwnerDocument, chain as $7mdmh$chain, isMac as $7mdmh$isMac, openLink as $7mdmh$openLink, isVirtualClick as $7mdmh$isVirtualClick, focusWithoutScrolling as $7mdmh$focusWithoutScrolling, isVirtualPointerEvent as $7mdmh$isVirtualPointerEvent, getOwnerWindow as $7mdmh$getOwnerWindow} from \"@react-aria/utils\";\nimport {useContext as $7mdmh$useContext, useState as $7mdmh$useState, useRef as $7mdmh$useRef, useMemo as $7mdmh$useMemo, useEffect as $7mdmh$useEffect} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\n\n\n\n\nfunction $f6c31cce2adf654f$var$usePressResponderContext(props) {\n // Consume context from <PressResponder> and merge with props.\n let context = (0, $7mdmh$useContext)((0, $ae1eeba8b9eafd08$export$5165eccb35aaadb5));\n if (context) {\n let { register: register, ...contextProps } = context;\n props = (0, $7mdmh$mergeProps)(contextProps, props);\n register();\n }\n (0, $7mdmh$useSyncRef)(context, props.ref);\n return props;\n}\nvar $f6c31cce2adf654f$var$_shouldStopPropagation = /*#__PURE__*/ new WeakMap();\nclass $f6c31cce2adf654f$var$PressEvent {\n continuePropagation() {\n (0, $7mdmh$_2)(this, $f6c31cce2adf654f$var$_shouldStopPropagation, false);\n }\n get shouldStopPropagation() {\n return (0, $7mdmh$_)(this, $f6c31cce2adf654f$var$_shouldStopPropagation);\n }\n constructor(type, pointerType, originalEvent, state){\n (0, $7mdmh$_1)(this, $f6c31cce2adf654f$var$_shouldStopPropagation, {\n writable: true,\n value: void 0\n });\n (0, $7mdmh$_2)(this, $f6c31cce2adf654f$var$_shouldStopPropagation, true);\n var _state_target;\n let currentTarget = (_state_target = state === null || state === void 0 ? void 0 : state.target) !== null && _state_target !== void 0 ? _state_target : originalEvent.currentTarget;\n const rect = currentTarget === null || currentTarget === void 0 ? void 0 : currentTarget.getBoundingClientRect();\n let x, y = 0;\n let clientX, clientY = null;\n if (originalEvent.clientX != null && originalEvent.clientY != null) {\n clientX = originalEvent.clientX;\n clientY = originalEvent.clientY;\n }\n if (rect) {\n if (clientX != null && clientY != null) {\n x = clientX - rect.left;\n y = clientY - rect.top;\n } else {\n x = rect.width / 2;\n y = rect.height / 2;\n }\n }\n this.type = type;\n this.pointerType = pointerType;\n this.target = originalEvent.currentTarget;\n this.shiftKey = originalEvent.shiftKey;\n this.metaKey = originalEvent.metaKey;\n this.ctrlKey = originalEvent.ctrlKey;\n this.altKey = originalEvent.altKey;\n this.x = x;\n this.y = y;\n }\n}\nconst $f6c31cce2adf654f$var$LINK_CLICKED = Symbol('linkClicked');\nfunction $f6c31cce2adf654f$export$45712eceda6fad21(props) {\n let { onPress: onPress, onPressChange: onPressChange, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, isDisabled: isDisabled, isPressed: isPressedProp, preventFocusOnPress: preventFocusOnPress, shouldCancelOnPointerExit: shouldCancelOnPointerExit, allowTextSelectionOnPress: allowTextSelectionOnPress, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n ref: _, ...domProps } = $f6c31cce2adf654f$var$usePressResponderContext(props);\n let [isPressed, setPressed] = (0, $7mdmh$useState)(false);\n let ref = (0, $7mdmh$useRef)({\n isPressed: false,\n ignoreEmulatedMouseEvents: false,\n ignoreClickAfterPress: false,\n didFirePressStart: false,\n isTriggeringEvent: false,\n activePointerId: null,\n target: null,\n isOverTarget: false,\n pointerType: null\n });\n let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (0, $7mdmh$useGlobalListeners)();\n let triggerPressStart = (0, $7mdmh$useEffectEvent)((originalEvent, pointerType)=>{\n let state = ref.current;\n if (isDisabled || state.didFirePressStart) return false;\n let shouldStopPropagation = true;\n state.isTriggeringEvent = true;\n if (onPressStart) {\n let event = new $f6c31cce2adf654f$var$PressEvent('pressstart', pointerType, originalEvent);\n onPressStart(event);\n shouldStopPropagation = event.shouldStopPropagation;\n }\n if (onPressChange) onPressChange(true);\n state.isTriggeringEvent = false;\n state.didFirePressStart = true;\n setPressed(true);\n return shouldStopPropagation;\n });\n let triggerPressEnd = (0, $7mdmh$useEffectEvent)((originalEvent, pointerType, wasPressed = true)=>{\n let state = ref.current;\n if (!state.didFirePressStart) return false;\n state.ignoreClickAfterPress = true;\n state.didFirePressStart = false;\n state.isTriggeringEvent = true;\n let shouldStopPropagation = true;\n if (onPressEnd) {\n let event = new $f6c31cce2adf654f$var$PressEvent('pressend', pointerType, originalEvent);\n onPressEnd(event);\n shouldStopPropagation = event.shouldStopPropagation;\n }\n if (onPressChange) onPressChange(false);\n setPressed(false);\n if (onPress && wasPressed && !isDisabled) {\n let event = new $f6c31cce2adf654f$var$PressEvent('press', pointerType, originalEvent);\n onPress(event);\n shouldStopPropagation && (shouldStopPropagation = event.shouldStopPropagation);\n }\n state.isTriggeringEvent = false;\n return shouldStopPropagation;\n });\n let triggerPressUp = (0, $7mdmh$useEffectEvent)((originalEvent, pointerType)=>{\n let state = ref.current;\n if (isDisabled) return false;\n if (onPressUp) {\n state.isTriggeringEvent = true;\n let event = new $f6c31cce2adf654f$var$PressEvent('pressup', pointerType, originalEvent);\n onPressUp(event);\n state.isTriggeringEvent = false;\n return event.shouldStopPropagation;\n }\n return true;\n });\n let cancel = (0, $7mdmh$useEffectEvent)((e)=>{\n let state = ref.current;\n if (state.isPressed && state.target) {\n if (state.isOverTarget && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);\n state.isPressed = false;\n state.isOverTarget = false;\n state.activePointerId = null;\n state.pointerType = null;\n removeAllGlobalListeners();\n if (!allowTextSelectionOnPress) (0, $14c0b72509d70225$export$b0d6fa1ab32e3295)(state.target);\n }\n });\n let cancelOnPointerExit = (0, $7mdmh$useEffectEvent)((e)=>{\n if (shouldCancelOnPointerExit) cancel(e);\n });\n let pressProps = (0, $7mdmh$useMemo)(()=>{\n let state = ref.current;\n let pressProps = {\n onKeyDown (e) {\n if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent, e.currentTarget) && e.currentTarget.contains(e.target)) {\n var _state_metaKeyEvents;\n if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(e.target, e.key)) e.preventDefault();\n // If the event is repeating, it may have started on a different element\n // after which focus moved to the current element. Ignore these events and\n // only handle the first key down event.\n let shouldStopPropagation = true;\n if (!state.isPressed && !e.repeat) {\n state.target = e.currentTarget;\n state.isPressed = true;\n shouldStopPropagation = triggerPressStart(e, 'keyboard');\n // Focus may move before the key up event, so register the event on the document\n // instead of the same element where the key down event occurred. Make it capturing so that it will trigger\n // before stopPropagation from useKeyboard on a child element may happen and thus we can still call triggerPress for the parent element.\n let originalTarget = e.currentTarget;\n let pressUp = (e)=>{\n if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e, originalTarget) && !e.repeat && originalTarget.contains(e.target) && state.target) triggerPressUp($f6c31cce2adf654f$var$createEvent(state.target, e), 'keyboard');\n };\n addGlobalListener((0, $7mdmh$getOwnerDocument)(e.currentTarget), 'keyup', (0, $7mdmh$chain)(pressUp, onKeyUp), true);\n }\n if (shouldStopPropagation) e.stopPropagation();\n // Keep track of the keydown events that occur while the Meta (e.g. Command) key is held.\n // macOS has a bug where keyup events are not fired while the Meta key is down.\n // When the Meta key itself is released we will get an event for that, and we'll act as if\n // all of these other keys were released as well.\n // https://bugs.chromium.org/p/chromium/issues/detail?id=1393524\n // https://bugs.webkit.org/show_bug.cgi?id=55291\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1299553\n if (e.metaKey && (0, $7mdmh$isMac)()) (_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === void 0 ? void 0 : _state_metaKeyEvents.set(e.key, e.nativeEvent);\n } else if (e.key === 'Meta') state.metaKeyEvents = new Map();\n },\n onClick (e) {\n if (e && !e.currentTarget.contains(e.target)) return;\n if (e && e.button === 0 && !state.isTriggeringEvent && !(0, $7mdmh$openLink).isOpening) {\n let shouldStopPropagation = true;\n if (isDisabled) e.preventDefault();\n // If triggered from a screen reader or by using element.click(),\n // trigger as if it were a keyboard click.\n if (!state.ignoreClickAfterPress && !state.ignoreEmulatedMouseEvents && !state.isPressed && (state.pointerType === 'virtual' || (0, $7mdmh$isVirtualClick)(e.nativeEvent))) {\n // Ensure the element receives focus (VoiceOver on iOS does not do this)\n if (!isDisabled && !preventFocusOnPress) (0, $7mdmh$focusWithoutScrolling)(e.currentTarget);\n let stopPressStart = triggerPressStart(e, 'virtual');\n let stopPressUp = triggerPressUp(e, 'virtual');\n let stopPressEnd = triggerPressEnd(e, 'virtual');\n shouldStopPropagation = stopPressStart && stopPressUp && stopPressEnd;\n }\n state.ignoreEmulatedMouseEvents = false;\n state.ignoreClickAfterPress = false;\n if (shouldStopPropagation) e.stopPropagation();\n }\n }\n };\n let onKeyUp = (e)=>{\n var _state_metaKeyEvents;\n if (state.isPressed && state.target && $f6c31cce2adf654f$var$isValidKeyboardEvent(e, state.target)) {\n var _state_metaKeyEvents1;\n if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(e.target, e.key)) e.preventDefault();\n let target = e.target;\n triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), 'keyboard', state.target.contains(target));\n removeAllGlobalListeners();\n // If a link was triggered with a key other than Enter, open the URL ourselves.\n // This means the link has a role override, and the default browser behavior\n // only applies when using the Enter key.\n if (e.key !== 'Enter' && $f6c31cce2adf654f$var$isHTMLAnchorLink(state.target) && state.target.contains(target) && !e[$f6c31cce2adf654f$var$LINK_CLICKED]) {\n // Store a hidden property on the event so we only trigger link click once,\n // even if there are multiple usePress instances attached to the element.\n e[$f6c31cce2adf654f$var$LINK_CLICKED] = true;\n (0, $7mdmh$openLink)(state.target, e, false);\n }\n state.isPressed = false;\n (_state_metaKeyEvents1 = state.metaKeyEvents) === null || _state_metaKeyEvents1 === void 0 ? void 0 : _state_metaKeyEvents1.delete(e.key);\n } else if (e.key === 'Meta' && ((_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === void 0 ? void 0 : _state_metaKeyEvents.size)) {\n var _state_target;\n // If we recorded keydown events that occurred while the Meta key was pressed,\n // and those haven't received keyup events already, fire keyup events ourselves.\n // See comment above for more info about the macOS bug causing this.\n let events = state.metaKeyEvents;\n state.metaKeyEvents = undefined;\n for (let event of events.values())(_state_target = state.target) === null || _state_target === void 0 ? void 0 : _state_target.dispatchEvent(new KeyboardEvent('keyup', event));\n }\n };\n if (typeof PointerEvent !== 'undefined') {\n pressProps.onPointerDown = (e)=>{\n // Only handle left clicks, and ignore events that bubbled through portals.\n if (e.button !== 0 || !e.currentTarget.contains(e.target)) return;\n // iOS safari fires pointer events from VoiceOver with incorrect coordinates/target.\n // Ignore and let the onClick handler take care of it instead.\n // https://bugs.webkit.org/show_bug.cgi?id=222627\n // https://bugs.webkit.org/show_bug.cgi?id=223202\n if ((0, $7mdmh$isVirtualPointerEvent)(e.nativeEvent)) {\n state.pointerType = 'virtual';\n return;\n }\n // Due to browser inconsistencies, especially on mobile browsers, we prevent\n // default on pointer down and handle focusing the pressable element ourselves.\n if ($f6c31cce2adf654f$var$shouldPreventDefault(e.currentTarget)) e.preventDefault();\n state.pointerType = e.pointerType;\n let shouldStopPropagation = true;\n if (!state.isPressed) {\n state.isPressed = true;\n state.isOverTarget = true;\n state.activePointerId = e.pointerId;\n state.target = e.currentTarget;\n if (!isDisabled && !preventFocusOnPress) (0, $7mdmh$focusWithoutScrolling)(e.currentTarget);\n if (!allowTextSelectionOnPress) (0, $14c0b72509d70225$export$16a4697467175487)(state.target);\n shouldStopPropagation = triggerPressStart(e, state.pointerType);\n addGlobalListener((0, $7mdmh$getOwnerDocument)(e.currentTarget), 'pointermove', onPointerMove, false);\n addGlobalListener((0, $7mdmh$getOwnerDocument)(e.currentTarget), 'pointerup', onPointerUp, false);\n addGlobalListener((0, $7mdmh$getOwnerDocument)(e.currentTarget), 'pointercancel', onPointerCancel, false);\n }\n if (shouldStopPropagation) e.stopPropagation();\n };\n pressProps.onMouseDown = (e)=>{\n if (!e.currentTarget.contains(e.target)) return;\n if (e.button === 0) {\n // Chrome and Firefox on touch Windows devices require mouse down events\n // to be canceled in addition to pointer events, or an extra asynchronous\n // focus event will be fired.\n if ($f6c31cce2adf654f$var$shouldPreventDefault(e.currentTarget)) e.preventDefault();\n e.stopPropagation();\n }\n };\n pressProps.onPointerUp = (e)=>{\n // iOS fires pointerup with zero width and height, so check the pointerType recorded during pointerdown.\n if (!e.currentTarget.contains(e.target) || state.pointerType === 'virtual') return;\n // Only handle left clicks\n // Safari on iOS sometimes fires pointerup events, even\n // when the touch isn't over the target, so double check.\n if (e.button === 0 && $f6c31cce2adf654f$var$isOverTarget(e, e.currentTarget)) triggerPressUp(e, state.pointerType || e.pointerType);\n };\n // Safari on iOS < 13.2 does not implement pointerenter/pointerleave events correctly.\n // Use pointer move events instead to implement our own hit testing.\n // See https://bugs.webkit.org/show_bug.cgi?id=199803\n let onPointerMove = (e)=>{\n if (e.pointerId !== state.activePointerId) return;\n if (state.target && $f6c31cce2adf654f$var$isOverTarget(e, state.target)) {\n if (!state.isOverTarget && state.pointerType != null) {\n state.isOverTarget = true;\n triggerPressStart($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);\n }\n } else if (state.target && state.isOverTarget && state.pointerType != null) {\n state.isOverTarget = false;\n triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);\n cancelOnPointerExit(e);\n }\n };\n let onPointerUp = (e)=>{\n if (e.pointerId === state.activePointerId && state.isPressed && e.button === 0 && state.target) {\n if ($f6c31cce2adf654f$var$isOverTarget(e, state.target) && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);\n else if (state.isOverTarget && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);\n state.isPressed = false;\n state.isOverTarget = false;\n state.activePointerId = null;\n state.pointerType = null;\n removeAllGlobalListeners();\n if (!allowTextSelectionOnPress) (0, $14c0b72509d70225$export$b0d6fa1ab32e3295)(state.target);\n }\n };\n let onPointerCancel = (e)=>{\n cancel(e);\n };\n pressProps.onDragStart = (e)=>{\n if (!e.currentTarget.contains(e.target)) return;\n // Safari does not call onPointerCancel when a drag starts, whereas Chrome and Firefox do.\n cancel(e);\n };\n } else {\n pressProps.onMouseDown = (e)=>{\n // Only handle left clicks\n if (e.button !== 0 || !e.currentTarget.contains(e.target)) return;\n // Due to browser inconsistencies, especially on mobile browsers, we prevent\n // default on mouse down and handle focusing the pressable element ourselves.\n if ($f6c31cce2adf654f$var$shouldPreventDefault(e.currentTarget)) e.preventDefault();\n if (state.ignoreEmulatedMouseEvents) {\n e.stopPropagation();\n return;\n }\n state.isPressed = true;\n state.isOverTarget = true;\n state.target = e.currentTarget;\n state.pointerType = (0, $7mdmh$isVirtualClick)(e.nativeEvent) ? 'virtual' : 'mouse';\n if (!isDisabled && !preventFocusOnPress) (0, $7mdmh$focusWithoutScrolling)(e.currentTarget);\n let shouldStopPropagation = triggerPressStart(e, state.pointerType);\n if (shouldStopPropagation) e.stopPropagation();\n addGlobalListener((0, $7mdmh$getOwnerDocument)(e.currentTarget), 'mouseup', onMouseUp, false);\n };\n pressProps.onMouseEnter = (e)=>{\n if (!e.currentTarget.contains(e.target)) return;\n let shouldStopPropagation = true;\n if (state.isPressed && !state.ignoreEmulatedMouseEvents && state.pointerType != null) {\n state.isOverTarget = true;\n shouldStopPropagation = triggerPressStart(e, state.pointerType);\n }\n if (shouldStopPropagation) e.stopPropagation();\n };\n pressProps.onMouseLeave = (e)=>{\n if (!e.currentTarget.contains(e.target)) return;\n let shouldStopPropagation = true;\n if (state.isPressed && !state.ignoreEmulatedMouseEvents && state.pointerType != null) {\n state.isOverTarget = false;\n shouldStopPropagation = triggerPressEnd(e, state.pointerType, false);\n cancelOnPointerExit(e);\n }\n if (shouldStopPropagation) e.stopPropagation();\n };\n pressProps.onMouseUp = (e)=>{\n if (!e.currentTarget.contains(e.target)) return;\n if (!state.ignoreEmulatedMouseEvents && e.button === 0) triggerPressUp(e, state.pointerType || 'mouse');\n };\n let onMouseUp = (e)=>{\n // Only handle left clicks\n if (e.button !== 0) return;\n state.isPressed = false;\n removeAllGlobalListeners();\n if (state.ignoreEmulatedMouseEvents) {\n state.ignoreEmulatedMouseEvents = false;\n return;\n }\n if (state.target && $f6c31cce2adf654f$var$isOverTarget(e, state.target) && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);\n else if (state.target && state.isOverTarget && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);\n state.isOverTarget = false;\n };\n pressProps.onTouchStart = (e)=>{\n if (!e.currentTarget.contains(e.target)) return;\n let touch = $f6c31cce2adf654f$var$getTouchFromEvent(e.nativeEvent);\n if (!touch) return;\n state.activePointerId = touch.identifier;\n state.ignoreEmulatedMouseEvents = true;\n state.isOverTarget = true;\n state.isPressed = true;\n state.target = e.currentTarget;\n state.pointerType = 'touch';\n // Due to browser inconsistencies, especially on mobile browsers, we prevent default\n // on the emulated mouse event and handle focusing the pressable element ourselves.\n if (!isDisabled && !preventFocusOnPress) (0, $7mdmh$focusWithoutScrolling)(e.currentTarget);\n if (!allowTextSelectionOnPress) (0, $14c0b72509d70225$export$16a4697467175487)(state.target);\n let shouldStopPropagation = triggerPressStart($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType);\n if (shouldStopPropagation) e.stopPropagation();\n addGlobalListener((0, $7mdmh$getOwnerWindow)(e.currentTarget), 'scroll', onScroll, true);\n };\n pressProps.onTouchMove = (e)=>{\n if (!e.currentTarget.contains(e.target)) return;\n if (!state.isPressed) {\n e.stopPropagation();\n return;\n }\n let touch = $f6c31cce2adf654f$var$getTouchById(e.nativeEvent, state.activePointerId);\n let shouldStopPropagation = true;\n if (touch && $f6c31cce2adf654f$var$isOverTarget(touch, e.currentTarget)) {\n if (!state.isOverTarget && state.pointerType != null) {\n state.isOverTarget = true;\n shouldStopPropagation = triggerPressStart($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType);\n }\n } else if (state.isOverTarget && state.pointerType != null) {\n state.isOverTarget = false;\n shouldStopPropagation = triggerPressEnd($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType, false);\n cancelOnPointerExit($f6c31cce2adf654f$var$createTouchEvent(state.target, e));\n }\n if (shouldStopPropagation) e.stopPropagation();\n };\n pressProps.onTouchEnd = (e)=>{\n if (!e.currentTarget.contains(e.target)) return;\n if (!state.isPressed) {\n e.stopPropagation();\n return;\n }\n let touch = $f6c31cce2adf654f$var$getTouchById(e.nativeEvent, state.activePointerId);\n let shouldStopPropagation = true;\n if (touch && $f6c31cce2adf654f$var$isOverTarget(touch, e.currentTarget) && state.pointerType != null) {\n triggerPressUp($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType);\n shouldStopPropagation = triggerPressEnd($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType);\n } else if (state.isOverTarget && state.pointerType != null) shouldStopPropagation = triggerPressEnd($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType, false);\n if (shouldStopPropagation) e.stopPropagation();\n state.isPressed = false;\n state.activePointerId = null;\n state.isOverTarget = false;\n state.ignoreEmulatedMouseEvents = true;\n if (state.target && !allowTextSelectionOnPress) (0, $14c0b72509d70225$export$b0d6fa1ab32e3295)(state.target);\n removeAllGlobalListeners();\n };\n pressProps.onTouchCancel = (e)=>{\n if (!e.currentTarget.contains(e.target)) return;\n e.stopPropagation();\n if (state.isPressed) cancel($f6c31cce2adf654f$var$createTouchEvent(state.target, e));\n };\n let onScroll = (e)=>{\n if (state.isPressed && e.target.contains(state.target)) cancel({\n currentTarget: state.target,\n shiftKey: false,\n ctrlKey: false,\n metaKey: false,\n altKey: false\n });\n };\n pressProps.onDragStart = (e)=>{\n if (!e.currentTarget.contains(e.target)) return;\n cancel(e);\n };\n }\n return pressProps;\n }, [\n addGlobalListener,\n isDisabled,\n preventFocusOnPress,\n removeAllGlobalListeners,\n allowTextSelectionOnPress,\n cancel,\n cancelOnPointerExit,\n triggerPressEnd,\n triggerPressStart,\n triggerPressUp\n ]);\n // Remove user-select: none in case component unmounts immediately after pressStart\n // eslint-disable-next-line arrow-body-style\n (0, $7mdmh$useEffect)(()=>{\n return ()=>{\n var _ref_current_target;\n if (!allowTextSelectionOnPress) // eslint-disable-next-line react-hooks/exhaustive-deps\n (0, $14c0b72509d70225$export$b0d6fa1ab32e3295)((_ref_current_target = ref.current.target) !== null && _ref_current_target !== void 0 ? _ref_current_target : undefined);\n };\n }, [\n allowTextSelectionOnPress\n ]);\n return {\n isPressed: isPressedProp || isPressed,\n pressProps: (0, $7mdmh$mergeProps)(domProps, pressProps)\n };\n}\nfunction $f6c31cce2adf654f$var$isHTMLAnchorLink(target) {\n return target.tagName === 'A' && target.hasAttribute('href');\n}\nfunction $f6c31cce2adf654f$var$isValidKeyboardEvent(event, currentTarget) {\n const { key: key, code: code } = event;\n const element = currentTarget;\n const role = element.getAttribute('role');\n // Accessibility for keyboards. Space and Enter only.\n // \"Spacebar\" is for IE 11\n return (key === 'Enter' || key === ' ' || key === 'Spacebar' || code === 'Space') && !(element instanceof (0, $7mdmh$getOwnerWindow)(element).HTMLInputElement && !$f6c31cce2adf654f$var$isValidInputKey(element, key) || element instanceof (0, $7mdmh$getOwnerWindow)(element).HTMLTextAreaElement || element.isContentEditable) && // Links should only trigger with Enter key\n !((role === 'link' || !role && $f6c31cce2adf654f$var$isHTMLAnchorLink(element)) && key !== 'Enter');\n}\nfunction $f6c31cce2adf654f$var$getTouchFromEvent(event) {\n const { targetTouches: targetTouches } = event;\n if (targetTouches.length > 0) return targetTouches[0];\n return null;\n}\nfunction $f6c31cce2adf654f$var$getTouchById(event, pointerId) {\n const changedTouches = event.changedTouches;\n for(let i = 0; i < changedTouches.length; i++){\n const touch = changedTouches[i];\n if (touch.identifier === pointerId) return touch;\n }\n return null;\n}\nfunction $f6c31cce2adf654f$var$createTouchEvent(target, e) {\n let clientX = 0;\n let clientY = 0;\n if (e.targetTouches && e.targetTouches.length === 1) {\n clientX = e.targetTouches[0].clientX;\n clientY = e.targetTouches[0].clientY;\n }\n return {\n currentTarget: target,\n shiftKey: e.shiftKey,\n ctrlKey: e.ctrlKey,\n metaKey: e.metaKey,\n altKey: e.altKey,\n clientX: clientX,\n clientY: clientY\n };\n}\nfunction $f6c31cce2adf654f$var$createEvent(target, e) {\n let clientX = e.clientX;\n let clientY = e.clientY;\n return {\n currentTarget: target,\n shiftKey: e.shiftKey,\n ctrlKey: e.ctrlKey,\n metaKey: e.metaKey,\n altKey: e.altKey,\n clientX: clientX,\n clientY: clientY\n };\n}\nfunction $f6c31cce2adf654f$var$getPointClientRect(point) {\n let offsetX = 0;\n let offsetY = 0;\n if (point.width !== undefined) offsetX = point.width / 2;\n else if (point.radiusX !== undefined) offsetX = point.radiusX;\n if (point.height !== undefined) offsetY = point.height / 2;\n else if (point.radiusY !== undefined) offsetY = point.radiusY;\n return {\n top: point.clientY - offsetY,\n right: point.clientX + offsetX,\n bottom: point.clientY + offsetY,\n left: point.clientX - offsetX\n };\n}\nfunction $f6c31cce2adf654f$var$areRectanglesOverlapping(a, b) {\n // check if they cannot overlap on x axis\n if (a.left > b.right || b.left > a.right) return false;\n // check if they cannot overlap on y axis\n if (a.top > b.bottom || b.top > a.bottom) return false;\n return true;\n}\nfunction $f6c31cce2adf654f$var$isOverTarget(point, target) {\n let rect = target.getBoundingClientRect();\n let pointRect = $f6c31cce2adf654f$var$getPointClientRect(point);\n return $f6c31cce2adf654f$var$areRectanglesOverlapping(rect, pointRect);\n}\nfunction $f6c31cce2adf654f$var$shouldPreventDefault(target) {\n // We cannot prevent default if the target is a draggable element.\n return !(target instanceof HTMLElement) || !target.hasAttribute('draggable');\n}\nfunction $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(target, key) {\n if (target instanceof HTMLInputElement) return !$f6c31cce2adf654f$var$isValidInputKey(target, key);\n if (target instanceof HTMLButtonElement) return target.type !== 'submit' && target.type !== 'reset';\n if ($f6c31cce2adf654f$var$isHTMLAnchorLink(target)) return false;\n return true;\n}\nconst $f6c31cce2adf654f$var$nonTextInputTypes = new Set([\n 'checkbox',\n 'radio',\n 'range',\n 'color',\n 'file',\n 'image',\n 'button',\n 'submit',\n 'reset'\n]);\nfunction $f6c31cce2adf654f$var$isValidInputKey(target, key) {\n // Only space should toggle checkboxes and radios, not enter.\n return target.type === 'checkbox' || target.type === 'radio' ? key === ' ' : $f6c31cce2adf654f$var$nonTextInputTypes.has(target.type);\n}\n\n\nexport {$f6c31cce2adf654f$export$45712eceda6fad21 as usePress};\n","import { _ as _class_apply_descriptor_get } from \"./_class_apply_descriptor_get.js\";\nimport { _ as _class_extract_field_descriptor } from \"./_class_extract_field_descriptor.js\";\n\nfunction _class_private_field_get(receiver, privateMap) {\n var descriptor = _class_extract_field_descriptor(receiver, privateMap, \"get\");\n return _class_apply_descriptor_get(receiver, descriptor);\n}\nexport { _class_private_field_get as _ };\n","function _class_apply_descriptor_get(receiver, descriptor) {\n if (descriptor.get) return descriptor.get.call(receiver);\n\n return descriptor.value;\n}\nexport { _class_apply_descriptor_get as _ };\n","import {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from \"./useLayoutEffect.mjs\";\nimport {useState as $hQ5Hp$useState} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nlet $ef06256079686ba0$var$descriptionId = 0;\nconst $ef06256079686ba0$var$descriptionNodes = new Map();\nfunction $ef06256079686ba0$export$f8aeda7b10753fa1(description) {\n let [id, setId] = (0, $hQ5Hp$useState)();\n (0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{\n if (!description) return;\n let desc = $ef06256079686ba0$var$descriptionNodes.get(description);\n if (!desc) {\n let id = `react-aria-description-${$ef06256079686ba0$var$descriptionId++}`;\n setId(id);\n let node = document.createElement('div');\n node.id = id;\n node.style.display = 'none';\n node.textContent = description;\n document.body.appendChild(node);\n desc = {\n refCount: 0,\n element: node\n };\n $ef06256079686ba0$var$descriptionNodes.set(description, desc);\n } else setId(desc.element.id);\n desc.refCount++;\n return ()=>{\n if (desc && --desc.refCount === 0) {\n desc.element.remove();\n $ef06256079686ba0$var$descriptionNodes.delete(description);\n }\n };\n }, [\n description\n ]);\n return {\n 'aria-describedby': description ? id : undefined\n };\n}\n\n\nexport {$ef06256079686ba0$export$f8aeda7b10753fa1 as useDescription};\n","import {usePress as $f6c31cce2adf654f$export$45712eceda6fad21} from \"./usePress.mjs\";\nimport {useGlobalListeners as $4k2kv$useGlobalListeners, useDescription as $4k2kv$useDescription, mergeProps as $4k2kv$mergeProps} from \"@react-aria/utils\";\nimport {useRef as $4k2kv$useRef} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nconst $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500;\nfunction $8a26561d2877236e$export$c24ed0104d07eab9(props) {\n let { isDisabled: isDisabled, onLongPressStart: onLongPressStart, onLongPressEnd: onLongPressEnd, onLongPress: onLongPress, threshold: threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription: accessibilityDescription } = props;\n const timeRef = (0, $4k2kv$useRef)(undefined);\n let { addGlobalListener: addGlobalListener, removeGlobalListener: removeGlobalListener } = (0, $4k2kv$useGlobalListeners)();\n let { pressProps: pressProps } = (0, $f6c31cce2adf654f$export$45712eceda6fad21)({\n isDisabled: isDisabled,\n onPressStart (e) {\n e.continuePropagation();\n if (e.pointerType === 'mouse' || e.pointerType === 'touch') {\n if (onLongPressStart) onLongPressStart({\n ...e,\n type: 'longpressstart'\n });\n timeRef.current = setTimeout(()=>{\n // Prevent other usePress handlers from also handling this event.\n e.target.dispatchEvent(new PointerEvent('pointercancel', {\n bubbles: true\n }));\n if (onLongPress) onLongPress({\n ...e,\n type: 'longpress'\n });\n timeRef.current = undefined;\n }, threshold);\n // Prevent context menu, which may be opened on long press on touch devices\n if (e.pointerType === 'touch') {\n let onContextMenu = (e)=>{\n e.preventDefault();\n };\n addGlobalListener(e.target, 'contextmenu', onContextMenu, {\n once: true\n });\n addGlobalListener(window, 'pointerup', ()=>{\n // If no contextmenu event is fired quickly after pointerup, remove the handler\n // so future context menu events outside a long press are not prevented.\n setTimeout(()=>{\n removeGlobalListener(e.target, 'contextmenu', onContextMenu);\n }, 30);\n }, {\n once: true\n });\n }\n }\n },\n onPressEnd (e) {\n if (timeRef.current) clearTimeout(timeRef.current);\n if (onLongPressEnd && (e.pointerType === 'mouse' || e.pointerType === 'touch')) onLongPressEnd({\n ...e,\n type: 'longpressend'\n });\n }\n });\n let descriptionProps = (0, $4k2kv$useDescription)(onLongPress && !isDisabled ? accessibilityDescription : undefined);\n return {\n longPressProps: (0, $4k2kv$mergeProps)(pressProps, descriptionProps)\n };\n}\n\n\nexport {$8a26561d2877236e$export$c24ed0104d07eab9 as useLongPress};\n","import {useEffect as $dRVb8$useEffect} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nconst $dd149f63282afbbf$export$f6211563215e3b37 = new WeakMap();\nfunction $dd149f63282afbbf$export$18fc8428861184da(opts) {\n let { triggerRef: triggerRef, isOpen: isOpen, onClose: onClose } = opts;\n (0, $dRVb8$useEffect)(()=>{\n if (!isOpen || onClose === null) return;\n let onScroll = (e)=>{\n // Ignore if scrolling an scrollable region outside the trigger's tree.\n let target = e.target;\n // window is not a Node and doesn't have contain, but window contains everything\n if (!triggerRef.current || target instanceof Node && !target.contains(triggerRef.current)) return;\n // Ignore scroll events on any input or textarea as the cursor position can cause it to scroll\n // such as in a combobox. Clicking the dropdown button places focus on the input, and if the\n // text inside the input extends beyond the 'end', then it will scroll so the cursor is visible at the end.\n if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) return;\n let onCloseHandler = onClose || $dd149f63282afbbf$export$f6211563215e3b37.get(triggerRef.current);\n if (onCloseHandler) onCloseHandler();\n };\n window.addEventListener('scroll', onScroll, true);\n return ()=>{\n window.removeEventListener('scroll', onScroll, true);\n };\n }, [\n isOpen,\n onClose,\n triggerRef\n ]);\n}\n\n\nexport {$dd149f63282afbbf$export$f6211563215e3b37 as onCloseMap, $dd149f63282afbbf$export$18fc8428861184da as useCloseOnScroll};\n","import $czs6v$intlStringsmodulejs from \"./intlStrings.mjs\";\nimport {useId as $czs6v$useId} from \"@react-aria/utils\";\nimport {useLocalizedStringFormatter as $czs6v$useLocalizedStringFormatter} from \"@react-aria/i18n\";\nimport {useLongPress as $czs6v$useLongPress} from \"@react-aria/interactions\";\nimport {useOverlayTrigger as $czs6v$useOverlayTrigger} from \"@react-aria/overlays\";\n\n\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $168583247155ddda$export$dc9c12ed27dd1b49(props, state, ref) {\n let { type: type = 'menu', isDisabled: isDisabled, trigger: trigger = 'press' } = props;\n let menuTriggerId = (0, $czs6v$useId)();\n let { triggerProps: triggerProps, overlayProps: overlayProps } = (0, $czs6v$useOverlayTrigger)({\n type: type\n }, state, ref);\n let onKeyDown = (e)=>{\n if (isDisabled) return;\n if (trigger === 'longPress' && !e.altKey) return;\n if (ref && ref.current) switch(e.key){\n case 'Enter':\n case ' ':\n if (trigger === 'longPress') return;\n // fallthrough\n case 'ArrowDown':\n // Stop propagation, unless it would already be handled by useKeyboard.\n if (!('continuePropagation' in e)) e.stopPropagation();\n e.preventDefault();\n state.toggle('first');\n break;\n case 'ArrowUp':\n if (!('continuePropagation' in e)) e.stopPropagation();\n e.preventDefault();\n state.toggle('last');\n break;\n default:\n // Allow other keys.\n if ('continuePropagation' in e) e.continuePropagation();\n }\n };\n let stringFormatter = (0, $czs6v$useLocalizedStringFormatter)((0, ($parcel$interopDefault($czs6v$intlStringsmodulejs))), '@react-aria/menu');\n let { longPressProps: longPressProps } = (0, $czs6v$useLongPress)({\n isDisabled: isDisabled || trigger !== 'longPress',\n accessibilityDescription: stringFormatter.format('longPressMessage'),\n onLongPressStart () {\n state.close();\n },\n onLongPress () {\n state.open('first');\n }\n });\n let pressProps = {\n onPressStart (e) {\n // For consistency with native, open the menu on mouse/key down, but touch up.\n if (e.pointerType !== 'touch' && e.pointerType !== 'keyboard' && !isDisabled) // If opened with a screen reader, auto focus the first item.\n // Otherwise, the menu itself will be focused.\n state.open(e.pointerType === 'virtual' ? 'first' : null);\n },\n onPress (e) {\n if (e.pointerType === 'touch' && !isDisabled) state.toggle();\n }\n };\n // omit onPress from triggerProps since we override it above.\n delete triggerProps.onPress;\n return {\n menuTriggerProps: {\n ...triggerProps,\n ...trigger === 'press' ? pressProps : longPressProps,\n id: menuTriggerId,\n onKeyDown: onKeyDown\n },\n menuProps: {\n ...overlayProps,\n 'aria-labelledby': menuTriggerId,\n autoFocus: state.focusStrategy || true,\n onClose: state.close\n }\n };\n}\n\n\nexport {$168583247155ddda$export$dc9c12ed27dd1b49 as useMenuTrigger};\n","import {onCloseMap as $dd149f63282afbbf$export$f6211563215e3b37} from \"./useCloseOnScroll.mjs\";\nimport {useEffect as $gMvIk$useEffect} from \"react\";\nimport {useId as $gMvIk$useId} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $628037886ba31236$export$f9d5c8beee7d008d(props, state, ref) {\n let { type: type } = props;\n let { isOpen: isOpen } = state;\n // Backward compatibility. Share state close function with useOverlayPosition so it can close on scroll\n // without forcing users to pass onClose.\n (0, $gMvIk$useEffect)(()=>{\n if (ref && ref.current) (0, $dd149f63282afbbf$export$f6211563215e3b37).set(ref.current, state.close);\n });\n // Aria 1.1 supports multiple values for aria-haspopup other than just menus.\n // https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup\n // However, we only add it for menus for now because screen readers often\n // announce it as a menu even for other values.\n let ariaHasPopup = undefined;\n if (type === 'menu') ariaHasPopup = true;\n else if (type === 'listbox') ariaHasPopup = 'listbox';\n let overlayId = (0, $gMvIk$useId)();\n return {\n triggerProps: {\n 'aria-haspopup': ariaHasPopup,\n 'aria-expanded': isOpen,\n 'aria-controls': isOpen ? overlayId : null,\n onPress: state.toggle\n },\n overlayProps: {\n id: overlayId\n }\n };\n}\n\n\nexport {$628037886ba31236$export$f9d5c8beee7d008d as useOverlayTrigger};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $65484d02dcb7eb3e$var$DOMPropNames = new Set([\n 'id'\n]);\nconst $65484d02dcb7eb3e$var$labelablePropNames = new Set([\n 'aria-label',\n 'aria-labelledby',\n 'aria-describedby',\n 'aria-details'\n]);\n// See LinkDOMProps in dom.d.ts.\nconst $65484d02dcb7eb3e$var$linkPropNames = new Set([\n 'href',\n 'hrefLang',\n 'target',\n 'rel',\n 'download',\n 'ping',\n 'referrerPolicy'\n]);\nconst $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;\nfunction $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {\n let { labelable: labelable, isLink: isLink, propNames: propNames } = opts;\n let filteredProps = {};\n for(const prop in props)if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || (propNames === null || propNames === void 0 ? void 0 : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop))) filteredProps[prop] = props[prop];\n return filteredProps;\n}\n\n\nexport {$65484d02dcb7eb3e$export$457c3d6518dd4c6f as filterDOMProps};\n","import {useId as $83Elw$useId, useLabels as $83Elw$useLabels} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $d191a55c9702f145$export$8467354a121f1b9f(props) {\n let { id: id, label: label, 'aria-labelledby': ariaLabelledby, 'aria-label': ariaLabel, labelElementType: labelElementType = 'label' } = props;\n id = (0, $83Elw$useId)(id);\n let labelId = (0, $83Elw$useId)();\n let labelProps = {};\n if (label) {\n ariaLabelledby = ariaLabelledby ? `${labelId} ${ariaLabelledby}` : labelId;\n labelProps = {\n id: labelId,\n htmlFor: labelElementType === 'label' ? id : undefined\n };\n } else if (!ariaLabelledby && !ariaLabel) console.warn('If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility');\n let fieldProps = (0, $83Elw$useLabels)({\n id: id,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby\n });\n return {\n labelProps: labelProps,\n fieldProps: fieldProps\n };\n}\n\n\nexport {$d191a55c9702f145$export$8467354a121f1b9f as useLabel};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $93925083ecbb358c$export$48d1ea6320830260(handler) {\n if (!handler) return undefined;\n let shouldStopPropagation = true;\n return (e)=>{\n let event = {\n ...e,\n preventDefault () {\n e.preventDefault();\n },\n isDefaultPrevented () {\n return e.isDefaultPrevented();\n },\n stopPropagation () {\n console.error('stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.');\n },\n continuePropagation () {\n shouldStopPropagation = false;\n }\n };\n handler(event);\n if (shouldStopPropagation) e.stopPropagation();\n };\n}\n\n\nexport {$93925083ecbb358c$export$48d1ea6320830260 as createEventHandler};\n","import {focusSafely as $6a99195332edec8b$export$80f3e147d781571c} from \"./focusSafely.mjs\";\nimport {useSyncRef as $h8xso$useSyncRef, useObjectRef as $h8xso$useObjectRef, mergeProps as $h8xso$mergeProps} from \"@react-aria/utils\";\nimport $h8xso$react, {useContext as $h8xso$useContext, useRef as $h8xso$useRef, useEffect as $h8xso$useEffect} from \"react\";\nimport {useFocus as $h8xso$useFocus, useKeyboard as $h8xso$useKeyboard} from \"@react-aria/interactions\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nlet $e6afbd83fe6ebbd2$var$FocusableContext = /*#__PURE__*/ (0, $h8xso$react).createContext(null);\nfunction $e6afbd83fe6ebbd2$var$useFocusableContext(ref) {\n let context = (0, $h8xso$useContext)($e6afbd83fe6ebbd2$var$FocusableContext) || {};\n (0, $h8xso$useSyncRef)(context, ref);\n // eslint-disable-next-line\n let { ref: _, ...otherProps } = context;\n return otherProps;\n}\n/**\n * Provides DOM props to the nearest focusable child.\n */ function $e6afbd83fe6ebbd2$var$FocusableProvider(props, ref) {\n let { children: children, ...otherProps } = props;\n let objRef = (0, $h8xso$useObjectRef)(ref);\n let context = {\n ...otherProps,\n ref: objRef\n };\n return /*#__PURE__*/ (0, $h8xso$react).createElement($e6afbd83fe6ebbd2$var$FocusableContext.Provider, {\n value: context\n }, children);\n}\nlet $e6afbd83fe6ebbd2$export$13f3202a3e5ddd5 = /*#__PURE__*/ (0, $h8xso$react).forwardRef($e6afbd83fe6ebbd2$var$FocusableProvider);\nfunction $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, domRef) {\n let { focusProps: focusProps } = (0, $h8xso$useFocus)(props);\n let { keyboardProps: keyboardProps } = (0, $h8xso$useKeyboard)(props);\n let interactions = (0, $h8xso$mergeProps)(focusProps, keyboardProps);\n let domProps = $e6afbd83fe6ebbd2$var$useFocusableContext(domRef);\n let interactionProps = props.isDisabled ? {} : domProps;\n let autoFocusRef = (0, $h8xso$useRef)(props.autoFocus);\n (0, $h8xso$useEffect)(()=>{\n if (autoFocusRef.current && domRef.current) (0, $6a99195332edec8b$export$80f3e147d781571c)(domRef.current);\n autoFocusRef.current = false;\n }, [\n domRef\n ]);\n return {\n focusableProps: (0, $h8xso$mergeProps)({\n ...interactions,\n tabIndex: props.excludeFromTabOrder && !props.isDisabled ? -1 : undefined\n }, interactionProps)\n };\n}\n\n\nexport {$e6afbd83fe6ebbd2$export$13f3202a3e5ddd5 as FocusableProvider, $e6afbd83fe6ebbd2$export$4c014de7c8940b4c as useFocusable};\n","import {createEventHandler as $93925083ecbb358c$export$48d1ea6320830260} from \"./createEventHandler.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $46d819fcbaf35654$export$8f71654801c2f7cd(props) {\n return {\n keyboardProps: props.isDisabled ? {} : {\n onKeyDown: (0, $93925083ecbb358c$export$48d1ea6320830260)(props.onKeyDown),\n onKeyUp: (0, $93925083ecbb358c$export$48d1ea6320830260)(props.onKeyUp)\n }\n };\n}\n\n\nexport {$46d819fcbaf35654$export$8f71654801c2f7cd as useKeyboard};\n","import {setInteractionModality as $9Gacy$setInteractionModality} from \"@react-aria/interactions\";\nimport {useEffect as $9Gacy$useEffect} from \"react\";\nimport {useLayoutEffect as $9Gacy$useLayoutEffect, useEffectEvent as $9Gacy$useEffectEvent} from \"@react-aria/utils\";\n\n/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {\n let { validationBehavior: validationBehavior, focus: focus } = props;\n // This is a useLayoutEffect so that it runs before the useEffect in useFormValidationState, which commits the validation change.\n (0, $9Gacy$useLayoutEffect)(()=>{\n if (validationBehavior === 'native' && (ref === null || ref === void 0 ? void 0 : ref.current)) {\n let errorMessage = state.realtimeValidation.isInvalid ? state.realtimeValidation.validationErrors.join(' ') || 'Invalid value.' : '';\n ref.current.setCustomValidity(errorMessage);\n // Prevent default tooltip for validation message.\n // https://bugzilla.mozilla.org/show_bug.cgi?id=605277\n if (!ref.current.hasAttribute('title')) ref.current.title = '';\n if (!state.realtimeValidation.isInvalid) state.updateValidation($e93e671b31057976$var$getNativeValidity(ref.current));\n }\n });\n let onReset = (0, $9Gacy$useEffectEvent)(()=>{\n state.resetValidation();\n });\n let onInvalid = (0, $9Gacy$useEffectEvent)((e)=>{\n var _ref_current;\n // Only commit validation if we are not already displaying one.\n // This avoids clearing server errors that the user didn't actually fix.\n if (!state.displayValidation.isInvalid) state.commitValidation();\n // Auto focus the first invalid input in a form, unless the error already had its default prevented.\n let form = ref === null || ref === void 0 ? void 0 : (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.form;\n if (!e.defaultPrevented && ref && form && $e93e671b31057976$var$getFirstInvalidInput(form) === ref.current) {\n var _ref_current1;\n if (focus) focus();\n else (_ref_current1 = ref.current) === null || _ref_current1 === void 0 ? void 0 : _ref_current1.focus();\n // Always show focus ring.\n (0, $9Gacy$setInteractionModality)('keyboard');\n }\n // Prevent default browser error UI from appearing.\n e.preventDefault();\n });\n let onChange = (0, $9Gacy$useEffectEvent)(()=>{\n state.commitValidation();\n });\n (0, $9Gacy$useEffect)(()=>{\n let input = ref === null || ref === void 0 ? void 0 : ref.current;\n if (!input) return;\n let form = input.form;\n input.addEventListener('invalid', onInvalid);\n input.addEventListener('change', onChange);\n form === null || form === void 0 ? void 0 : form.addEventListener('reset', onReset);\n return ()=>{\n input.removeEventListener('invalid', onInvalid);\n input.removeEventListener('change', onChange);\n form === null || form === void 0 ? void 0 : form.removeEventListener('reset', onReset);\n };\n }, [\n ref,\n onInvalid,\n onChange,\n onReset,\n validationBehavior\n ]);\n}\nfunction $e93e671b31057976$var$getValidity(input) {\n // The native ValidityState object is live, meaning each property is a getter that returns the current state.\n // We need to create a snapshot of the validity state at the time this function is called to avoid unpredictable React renders.\n let validity = input.validity;\n return {\n badInput: validity.badInput,\n customError: validity.customError,\n patternMismatch: validity.patternMismatch,\n rangeOverflow: validity.rangeOverflow,\n rangeUnderflow: validity.rangeUnderflow,\n stepMismatch: validity.stepMismatch,\n tooLong: validity.tooLong,\n tooShort: validity.tooShort,\n typeMismatch: validity.typeMismatch,\n valueMissing: validity.valueMissing,\n valid: validity.valid\n };\n}\nfunction $e93e671b31057976$var$getNativeValidity(input) {\n return {\n isInvalid: !input.validity.valid,\n validationDetails: $e93e671b31057976$var$getValidity(input),\n validationErrors: input.validationMessage ? [\n input.validationMessage\n ] : []\n };\n}\nfunction $e93e671b31057976$var$getFirstInvalidInput(form) {\n for(let i = 0; i < form.elements.length; i++){\n let element = form.elements[i];\n if (!element.validity.valid) return element;\n }\n return null;\n}\n\n\nexport {$e93e671b31057976$export$b8473d3665f3a75a as useFormValidation};\n","import {useEffect as $ig234$useEffect} from \"react\";\nimport {filterDOMProps as $ig234$filterDOMProps, useFormReset as $ig234$useFormReset, getOwnerWindow as $ig234$getOwnerWindow, mergeProps as $ig234$mergeProps} from \"@react-aria/utils\";\nimport {useControlledState as $ig234$useControlledState} from \"@react-stately/utils\";\nimport {useField as $ig234$useField} from \"@react-aria/label\";\nimport {useFocusable as $ig234$useFocusable} from \"@react-aria/focus\";\nimport {useFormValidation as $ig234$useFormValidation} from \"@react-aria/form\";\nimport {useFormValidationState as $ig234$useFormValidationState} from \"@react-stately/form\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\nfunction $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {\n let { inputElementType: inputElementType = 'input', isDisabled: isDisabled = false, isRequired: isRequired = false, isReadOnly: isReadOnly = false, type: type = 'text', validationBehavior: validationBehavior = 'aria' } = props;\n let [value, setValue] = (0, $ig234$useControlledState)(props.value, props.defaultValue || '', props.onChange);\n let { focusableProps: focusableProps } = (0, $ig234$useFocusable)(props, ref);\n let validationState = (0, $ig234$useFormValidationState)({\n ...props,\n value: value\n });\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = validationState.displayValidation;\n let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $ig234$useField)({\n ...props,\n isInvalid: isInvalid,\n errorMessage: props.errorMessage || validationErrors\n });\n let domProps = (0, $ig234$filterDOMProps)(props, {\n labelable: true\n });\n const inputOnlyProps = {\n type: type,\n pattern: props.pattern\n };\n (0, $ig234$useFormReset)(ref, value, setValue);\n (0, $ig234$useFormValidation)(props, validationState, ref);\n (0, $ig234$useEffect)(()=>{\n // This works around a React/Chrome bug that prevents textarea elements from validating when controlled.\n // We prevent React from updating defaultValue (i.e. children) of textarea when `value` changes,\n // which causes Chrome to skip validation. Only updating `value` is ok in our case since our\n // textareas are always controlled. React is planning on removing this synchronization in a\n // future major version.\n // https://github.com/facebook/react/issues/19474\n // https://github.com/facebook/react/issues/11896\n if (ref.current instanceof (0, $ig234$getOwnerWindow)(ref.current).HTMLTextAreaElement) {\n let input = ref.current;\n Object.defineProperty(input, 'defaultValue', {\n get: ()=>input.value,\n set: ()=>{},\n configurable: true\n });\n }\n }, [\n ref\n ]);\n return {\n labelProps: labelProps,\n inputProps: (0, $ig234$mergeProps)(domProps, inputElementType === 'input' ? inputOnlyProps : undefined, {\n disabled: isDisabled,\n readOnly: isReadOnly,\n required: isRequired && validationBehavior === 'native',\n 'aria-required': isRequired && validationBehavior === 'aria' || undefined,\n 'aria-invalid': isInvalid || undefined,\n 'aria-errormessage': props['aria-errormessage'],\n 'aria-activedescendant': props['aria-activedescendant'],\n 'aria-autocomplete': props['aria-autocomplete'],\n 'aria-haspopup': props['aria-haspopup'],\n value: value,\n onChange: (e)=>setValue(e.target.value),\n autoComplete: props.autoComplete,\n autoCapitalize: props.autoCapitalize,\n maxLength: props.maxLength,\n minLength: props.minLength,\n name: props.name,\n placeholder: props.placeholder,\n inputMode: props.inputMode,\n // Clipboard events\n onCopy: props.onCopy,\n onCut: props.onCut,\n onPaste: props.onPaste,\n // Composition events\n onCompositionEnd: props.onCompositionEnd,\n onCompositionStart: props.onCompositionStart,\n onCompositionUpdate: props.onCompositionUpdate,\n // Selection events\n onSelect: props.onSelect,\n // Input events\n onBeforeInput: props.onBeforeInput,\n onInput: props.onInput,\n ...focusableProps,\n ...fieldProps\n }),\n descriptionProps: descriptionProps,\n errorMessageProps: errorMessageProps,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$2d73ec29415bd339$export$712718f7aec83d5 as useTextField};\n","import {useLabel as $d191a55c9702f145$export$8467354a121f1b9f} from \"./useLabel.mjs\";\nimport {useSlotId as $2kC82$useSlotId, mergeProps as $2kC82$mergeProps} from \"@react-aria/utils\";\n\n/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $2baaea4c71418dea$export$294aa081a6c6f55d(props) {\n let { description: description, errorMessage: errorMessage, isInvalid: isInvalid, validationState: validationState } = props;\n let { labelProps: labelProps, fieldProps: fieldProps } = (0, $d191a55c9702f145$export$8467354a121f1b9f)(props);\n let descriptionId = (0, $2kC82$useSlotId)([\n Boolean(description),\n Boolean(errorMessage),\n isInvalid,\n validationState\n ]);\n let errorMessageId = (0, $2kC82$useSlotId)([\n Boolean(description),\n Boolean(errorMessage),\n isInvalid,\n validationState\n ]);\n fieldProps = (0, $2kC82$mergeProps)(fieldProps, {\n 'aria-describedby': [\n descriptionId,\n // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268\n errorMessageId,\n props['aria-describedby']\n ].filter(Boolean).join(' ') || undefined\n });\n return {\n labelProps: labelProps,\n fieldProps: fieldProps,\n descriptionProps: {\n id: descriptionId\n },\n errorMessageProps: {\n id: errorMessageId\n }\n };\n}\n\n\nexport {$2baaea4c71418dea$export$294aa081a6c6f55d as useField};\n","import {useEffectEvent as $8ae05eaa5c114e9c$export$7f54fc3180508a52} from \"./useEffectEvent.mjs\";\nimport {useRef as $8rM3G$useRef, useEffect as $8rM3G$useEffect} from \"react\";\n\n/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {\n let resetValue = (0, $8rM3G$useRef)(initialValue);\n let handleReset = (0, $8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{\n if (onReset) onReset(resetValue.current);\n });\n (0, $8rM3G$useEffect)(()=>{\n var _ref_current;\n let form = ref === null || ref === void 0 ? void 0 : (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.form;\n form === null || form === void 0 ? void 0 : form.addEventListener('reset', handleReset);\n return ()=>{\n form === null || form === void 0 ? void 0 : form.removeEventListener('reset', handleReset);\n };\n }, [\n ref,\n handleReset\n ]);\n}\n\n\nexport {$99facab73266f662$export$5add1d006293d136 as useFormReset};\n","import $dShfP$intlStringsmodulejs from \"./intlStrings.mjs\";\nimport {announce as $dShfP$announce} from \"@react-aria/live-announcer\";\nimport {ariaHideOutside as $dShfP$ariaHideOutside} from \"@react-aria/overlays\";\nimport {listData as $dShfP$listData, getItemId as $dShfP$getItemId} from \"@react-aria/listbox\";\nimport {useRouter as $dShfP$useRouter, chain as $dShfP$chain, useLabels as $dShfP$useLabels, isAppleDevice as $dShfP$isAppleDevice, mergeProps as $dShfP$mergeProps} from \"@react-aria/utils\";\nimport {useMemo as $dShfP$useMemo, useRef as $dShfP$useRef, useEffect as $dShfP$useEffect} from \"react\";\nimport {getChildNodes as $dShfP$getChildNodes, getItemCount as $dShfP$getItemCount} from \"@react-stately/collections\";\nimport {ListKeyboardDelegate as $dShfP$ListKeyboardDelegate, useSelectableCollection as $dShfP$useSelectableCollection} from \"@react-aria/selection\";\nimport {privateValidationStateProp as $dShfP$privateValidationStateProp} from \"@react-stately/form\";\nimport {useLocalizedStringFormatter as $dShfP$useLocalizedStringFormatter} from \"@react-aria/i18n\";\nimport {useMenuTrigger as $dShfP$useMenuTrigger} from \"@react-aria/menu\";\nimport {useTextField as $dShfP$useTextField} from \"@react-aria/textfield\";\n\n\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\n\n\nfunction $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {\n let { buttonRef: buttonRef, popoverRef: popoverRef, inputRef: inputRef, listBoxRef: listBoxRef, keyboardDelegate: keyboardDelegate, layoutDelegate: layoutDelegate, shouldFocusWrap: // completionMode = 'suggest',\n shouldFocusWrap, isReadOnly: isReadOnly, isDisabled: isDisabled } = props;\n let stringFormatter = (0, $dShfP$useLocalizedStringFormatter)((0, ($parcel$interopDefault($dShfP$intlStringsmodulejs))), '@react-aria/combobox');\n let { menuTriggerProps: menuTriggerProps, menuProps: menuProps } = (0, $dShfP$useMenuTrigger)({\n type: 'listbox',\n isDisabled: isDisabled || isReadOnly\n }, state, buttonRef);\n // Set listbox id so it can be used when calling getItemId later\n (0, $dShfP$listData).set(state, {\n id: menuProps.id\n });\n // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).\n // When virtualized, the layout object will be passed in as a prop and override this.\n let { collection: collection } = state;\n let { disabledKeys: disabledKeys } = state.selectionManager;\n let delegate = (0, $dShfP$useMemo)(()=>keyboardDelegate || new (0, $dShfP$ListKeyboardDelegate)({\n collection: collection,\n disabledKeys: disabledKeys,\n ref: listBoxRef,\n layoutDelegate: layoutDelegate\n }), [\n keyboardDelegate,\n layoutDelegate,\n collection,\n disabledKeys,\n listBoxRef\n ]);\n // Use useSelectableCollection to get the keyboard handlers to apply to the textfield\n let { collectionProps: collectionProps } = (0, $dShfP$useSelectableCollection)({\n selectionManager: state.selectionManager,\n keyboardDelegate: delegate,\n disallowTypeAhead: true,\n disallowEmptySelection: true,\n shouldFocusWrap: shouldFocusWrap,\n ref: inputRef,\n // Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component\n isVirtualized: true\n });\n let router = (0, $dShfP$useRouter)();\n // For textfield specific keydown operations\n let onKeyDown = (e)=>{\n if (e.nativeEvent.isComposing) return;\n switch(e.key){\n case 'Enter':\n case 'Tab':\n // Prevent form submission if menu is open since we may be selecting a option\n if (state.isOpen && e.key === 'Enter') e.preventDefault();\n // If the focused item is a link, trigger opening it. Items that are links are not selectable.\n if (state.isOpen && state.selectionManager.focusedKey != null && state.selectionManager.isLink(state.selectionManager.focusedKey)) {\n if (e.key === 'Enter') {\n let item = listBoxRef.current.querySelector(`[data-key=\"${CSS.escape(state.selectionManager.focusedKey.toString())}\"]`);\n if (item instanceof HTMLAnchorElement) {\n let collectionItem = state.collection.getItem(state.selectionManager.focusedKey);\n router.open(item, e, collectionItem.props.href, collectionItem.props.routerOptions);\n }\n }\n state.close();\n } else state.commit();\n break;\n case 'Escape':\n if (state.selectedKey !== null || state.inputValue === '' || props.allowsCustomValue) e.continuePropagation();\n state.revert();\n break;\n case 'ArrowDown':\n state.open('first', 'manual');\n break;\n case 'ArrowUp':\n state.open('last', 'manual');\n break;\n case 'ArrowLeft':\n case 'ArrowRight':\n state.selectionManager.setFocusedKey(null);\n break;\n }\n };\n let onBlur = (e)=>{\n var _popoverRef_current;\n let blurFromButton = (buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current) && buttonRef.current === e.relatedTarget;\n let blurIntoPopover = (_popoverRef_current = popoverRef.current) === null || _popoverRef_current === void 0 ? void 0 : _popoverRef_current.contains(e.relatedTarget);\n // Ignore blur if focused moved to the button(if exists) or into the popover.\n if (blurFromButton || blurIntoPopover) return;\n if (props.onBlur) props.onBlur(e);\n state.setFocused(false);\n };\n let onFocus = (e)=>{\n if (state.isFocused) return;\n if (props.onFocus) props.onFocus(e);\n state.setFocused(true);\n };\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;\n let { labelProps: labelProps, inputProps: inputProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $dShfP$useTextField)({\n ...props,\n onChange: state.setInputValue,\n onKeyDown: !isReadOnly ? (0, $dShfP$chain)(state.isOpen && collectionProps.onKeyDown, onKeyDown, props.onKeyDown) : props.onKeyDown,\n onBlur: onBlur,\n value: state.inputValue,\n onFocus: onFocus,\n autoComplete: 'off',\n validate: undefined,\n [(0, $dShfP$privateValidationStateProp)]: state\n }, inputRef);\n // Press handlers for the ComboBox button\n let onPress = (e)=>{\n if (e.pointerType === 'touch') {\n // Focus the input field in case it isn't focused yet\n inputRef.current.focus();\n state.toggle(null, 'manual');\n }\n };\n let onPressStart = (e)=>{\n if (e.pointerType !== 'touch') {\n inputRef.current.focus();\n state.toggle(e.pointerType === 'keyboard' || e.pointerType === 'virtual' ? 'first' : null, 'manual');\n }\n };\n let triggerLabelProps = (0, $dShfP$useLabels)({\n id: menuTriggerProps.id,\n 'aria-label': stringFormatter.format('buttonLabel'),\n 'aria-labelledby': props['aria-labelledby'] || labelProps.id\n });\n let listBoxProps = (0, $dShfP$useLabels)({\n id: menuProps.id,\n 'aria-label': stringFormatter.format('listboxLabel'),\n 'aria-labelledby': props['aria-labelledby'] || labelProps.id\n });\n // If a touch happens on direct center of ComboBox input, might be virtual click from iPad so open ComboBox menu\n let lastEventTime = (0, $dShfP$useRef)(0);\n let onTouchEnd = (e)=>{\n if (isDisabled || isReadOnly) return;\n // Sometimes VoiceOver on iOS fires two touchend events in quick succession. Ignore the second one.\n if (e.timeStamp - lastEventTime.current < 500) {\n e.preventDefault();\n inputRef.current.focus();\n return;\n }\n let rect = e.target.getBoundingClientRect();\n let touch = e.changedTouches[0];\n let centerX = Math.ceil(rect.left + .5 * rect.width);\n let centerY = Math.ceil(rect.top + .5 * rect.height);\n if (touch.clientX === centerX && touch.clientY === centerY) {\n e.preventDefault();\n inputRef.current.focus();\n state.toggle(null, 'manual');\n lastEventTime.current = e.timeStamp;\n }\n };\n // VoiceOver has issues with announcing aria-activedescendant properly on change\n // (especially on iOS). We use a live region announcer to announce focus changes\n // manually. In addition, section titles are announced when navigating into a new section.\n let focusedItem = state.selectionManager.focusedKey != null && state.isOpen ? state.collection.getItem(state.selectionManager.focusedKey) : undefined;\n var _focusedItem_parentKey;\n let sectionKey = (_focusedItem_parentKey = focusedItem === null || focusedItem === void 0 ? void 0 : focusedItem.parentKey) !== null && _focusedItem_parentKey !== void 0 ? _focusedItem_parentKey : null;\n var _state_selectionManager_focusedKey;\n let itemKey = (_state_selectionManager_focusedKey = state.selectionManager.focusedKey) !== null && _state_selectionManager_focusedKey !== void 0 ? _state_selectionManager_focusedKey : null;\n let lastSection = (0, $dShfP$useRef)(sectionKey);\n let lastItem = (0, $dShfP$useRef)(itemKey);\n (0, $dShfP$useEffect)(()=>{\n if ((0, $dShfP$isAppleDevice)() && focusedItem != null && itemKey !== lastItem.current) {\n let isSelected = state.selectionManager.isSelected(itemKey);\n let section = sectionKey != null ? state.collection.getItem(sectionKey) : null;\n let sectionTitle = (section === null || section === void 0 ? void 0 : section['aria-label']) || (typeof (section === null || section === void 0 ? void 0 : section.rendered) === 'string' ? section.rendered : '') || '';\n let announcement = stringFormatter.format('focusAnnouncement', {\n isGroupChange: section && sectionKey !== lastSection.current,\n groupTitle: sectionTitle,\n groupCount: section ? [\n ...(0, $dShfP$getChildNodes)(section, state.collection)\n ].length : 0,\n optionText: focusedItem['aria-label'] || focusedItem.textValue || '',\n isSelected: isSelected\n });\n (0, $dShfP$announce)(announcement);\n }\n lastSection.current = sectionKey;\n lastItem.current = itemKey;\n });\n // Announce the number of available suggestions when it changes\n let optionCount = (0, $dShfP$getItemCount)(state.collection);\n let lastSize = (0, $dShfP$useRef)(optionCount);\n let lastOpen = (0, $dShfP$useRef)(state.isOpen);\n (0, $dShfP$useEffect)(()=>{\n // Only announce the number of options available when the menu opens if there is no\n // focused item, otherwise screen readers will typically read e.g. \"1 of 6\".\n // The exception is VoiceOver since this isn't included in the message above.\n let didOpenWithoutFocusedItem = state.isOpen !== lastOpen.current && (state.selectionManager.focusedKey == null || (0, $dShfP$isAppleDevice)());\n if (state.isOpen && (didOpenWithoutFocusedItem || optionCount !== lastSize.current)) {\n let announcement = stringFormatter.format('countAnnouncement', {\n optionCount: optionCount\n });\n (0, $dShfP$announce)(announcement);\n }\n lastSize.current = optionCount;\n lastOpen.current = state.isOpen;\n });\n // Announce when a selection occurs for VoiceOver. Other screen readers typically do this automatically.\n let lastSelectedKey = (0, $dShfP$useRef)(state.selectedKey);\n (0, $dShfP$useEffect)(()=>{\n if ((0, $dShfP$isAppleDevice)() && state.isFocused && state.selectedItem && state.selectedKey !== lastSelectedKey.current) {\n let optionText = state.selectedItem['aria-label'] || state.selectedItem.textValue || '';\n let announcement = stringFormatter.format('selectedAnnouncement', {\n optionText: optionText\n });\n (0, $dShfP$announce)(announcement);\n }\n lastSelectedKey.current = state.selectedKey;\n });\n (0, $dShfP$useEffect)(()=>{\n if (state.isOpen) return (0, $dShfP$ariaHideOutside)([\n inputRef.current,\n popoverRef.current\n ]);\n }, [\n state.isOpen,\n inputRef,\n popoverRef\n ]);\n return {\n labelProps: labelProps,\n buttonProps: {\n ...menuTriggerProps,\n ...triggerLabelProps,\n excludeFromTabOrder: true,\n // @ts-ignore - undocumented\n preventFocusOnPress: true,\n onPress: onPress,\n onPressStart: onPressStart,\n isDisabled: isDisabled || isReadOnly\n },\n inputProps: (0, $dShfP$mergeProps)(inputProps, {\n role: 'combobox',\n 'aria-expanded': menuTriggerProps['aria-expanded'],\n 'aria-controls': state.isOpen ? menuProps.id : undefined,\n // TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)\n 'aria-autocomplete': 'list',\n 'aria-activedescendant': focusedItem ? (0, $dShfP$getItemId)(state, focusedItem.key) : undefined,\n onTouchEnd: onTouchEnd,\n // This disable's iOS's autocorrect suggestions, since the combo box provides its own suggestions.\n autoCorrect: 'off',\n // This disable's the macOS Safari spell check auto corrections.\n spellCheck: 'false'\n }),\n listBoxProps: (0, $dShfP$mergeProps)(menuProps, listBoxProps, {\n autoFocus: state.focusStrategy,\n shouldUseVirtualFocus: true,\n shouldSelectOnPressUp: true,\n shouldFocusOnHover: true,\n linkBehavior: 'selection'\n }),\n descriptionProps: descriptionProps,\n errorMessageProps: errorMessageProps,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$c350ade66beef0af$export$8c18d1b4f7232bbf as useComboBox};\n","import {useLocale as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7} from \"./context.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nlet $325a3faab7a68acd$var$cache = new Map();\nfunction $325a3faab7a68acd$export$a16aca283550c30d(options) {\n let { locale: locale } = (0, $18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();\n let cacheKey = locale + (options ? Object.entries(options).sort((a, b)=>a[0] < b[0] ? -1 : 1).join() : '');\n if ($325a3faab7a68acd$var$cache.has(cacheKey)) return $325a3faab7a68acd$var$cache.get(cacheKey);\n let formatter = new Intl.Collator(locale, options);\n $325a3faab7a68acd$var$cache.set(cacheKey, formatter);\n return formatter;\n}\n\n\nexport {$325a3faab7a68acd$export$a16aca283550c30d as useCollator};\n","import {useEffectEvent as $ispOf$useEffectEvent, getOwnerDocument as $ispOf$getOwnerDocument} from \"@react-aria/utils\";\nimport {useRef as $ispOf$useRef, useEffect as $ispOf$useEffect} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\nfunction $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props) {\n let { ref: ref, onInteractOutside: onInteractOutside, isDisabled: isDisabled, onInteractOutsideStart: onInteractOutsideStart } = props;\n let stateRef = (0, $ispOf$useRef)({\n isPointerDown: false,\n ignoreEmulatedMouseEvents: false\n });\n let onPointerDown = (0, $ispOf$useEffectEvent)((e)=>{\n if (onInteractOutside && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) {\n if (onInteractOutsideStart) onInteractOutsideStart(e);\n stateRef.current.isPointerDown = true;\n }\n });\n let triggerInteractOutside = (0, $ispOf$useEffectEvent)((e)=>{\n if (onInteractOutside) onInteractOutside(e);\n });\n (0, $ispOf$useEffect)(()=>{\n let state = stateRef.current;\n if (isDisabled) return;\n const element = ref.current;\n const documentObject = (0, $ispOf$getOwnerDocument)(element);\n // Use pointer events if available. Otherwise, fall back to mouse and touch events.\n if (typeof PointerEvent !== 'undefined') {\n let onPointerUp = (e)=>{\n if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) triggerInteractOutside(e);\n state.isPointerDown = false;\n };\n // changing these to capture phase fixed combobox\n documentObject.addEventListener('pointerdown', onPointerDown, true);\n documentObject.addEventListener('pointerup', onPointerUp, true);\n return ()=>{\n documentObject.removeEventListener('pointerdown', onPointerDown, true);\n documentObject.removeEventListener('pointerup', onPointerUp, true);\n };\n } else {\n let onMouseUp = (e)=>{\n if (state.ignoreEmulatedMouseEvents) state.ignoreEmulatedMouseEvents = false;\n else if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) triggerInteractOutside(e);\n state.isPointerDown = false;\n };\n let onTouchEnd = (e)=>{\n state.ignoreEmulatedMouseEvents = true;\n if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) triggerInteractOutside(e);\n state.isPointerDown = false;\n };\n documentObject.addEventListener('mousedown', onPointerDown, true);\n documentObject.addEventListener('mouseup', onMouseUp, true);\n documentObject.addEventListener('touchstart', onPointerDown, true);\n documentObject.addEventListener('touchend', onTouchEnd, true);\n return ()=>{\n documentObject.removeEventListener('mousedown', onPointerDown, true);\n documentObject.removeEventListener('mouseup', onMouseUp, true);\n documentObject.removeEventListener('touchstart', onPointerDown, true);\n documentObject.removeEventListener('touchend', onTouchEnd, true);\n };\n }\n }, [\n ref,\n isDisabled,\n onPointerDown,\n triggerInteractOutside\n ]);\n}\nfunction $e0b6e0b68ec7f50f$var$isValidEvent(event, ref) {\n if (event.button > 0) return false;\n if (event.target) {\n // if the event target is no longer in the document, ignore\n const ownerDocument = event.target.ownerDocument;\n if (!ownerDocument || !ownerDocument.documentElement.contains(event.target)) return false;\n // If the target is within a top layer element (e.g. toasts), ignore.\n if (event.target.closest('[data-react-aria-top-layer]')) return false;\n }\n return ref.current && !ref.current.contains(event.target);\n}\n\n\nexport {$e0b6e0b68ec7f50f$export$872b660ac5a1ff98 as useInteractOutside};\n","import {isElementInChildOfActiveScope as $jtpZv$isElementInChildOfActiveScope} from \"@react-aria/focus\";\nimport {useEffect as $jtpZv$useEffect} from \"react\";\nimport {useInteractOutside as $jtpZv$useInteractOutside, useFocusWithin as $jtpZv$useFocusWithin} from \"@react-aria/interactions\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nconst $a11501f3d1d39e6c$var$visibleOverlays = [];\nfunction $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) {\n let { onClose: onClose, shouldCloseOnBlur: shouldCloseOnBlur, isOpen: isOpen, isDismissable: isDismissable = false, isKeyboardDismissDisabled: isKeyboardDismissDisabled = false, shouldCloseOnInteractOutside: shouldCloseOnInteractOutside } = props;\n // Add the overlay ref to the stack of visible overlays on mount, and remove on unmount.\n (0, $jtpZv$useEffect)(()=>{\n if (isOpen) $a11501f3d1d39e6c$var$visibleOverlays.push(ref);\n return ()=>{\n let index = $a11501f3d1d39e6c$var$visibleOverlays.indexOf(ref);\n if (index >= 0) $a11501f3d1d39e6c$var$visibleOverlays.splice(index, 1);\n };\n }, [\n isOpen,\n ref\n ]);\n // Only hide the overlay when it is the topmost visible overlay in the stack\n let onHide = ()=>{\n if ($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref && onClose) onClose();\n };\n let onInteractOutsideStart = (e)=>{\n if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.target)) {\n if ($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref) {\n e.stopPropagation();\n e.preventDefault();\n }\n }\n };\n let onInteractOutside = (e)=>{\n if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.target)) {\n if ($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref) {\n e.stopPropagation();\n e.preventDefault();\n }\n onHide();\n }\n };\n // Handle the escape key\n let onKeyDown = (e)=>{\n if (e.key === 'Escape' && !isKeyboardDismissDisabled && !e.nativeEvent.isComposing) {\n e.stopPropagation();\n e.preventDefault();\n onHide();\n }\n };\n // Handle clicking outside the overlay to close it\n (0, $jtpZv$useInteractOutside)({\n ref: ref,\n onInteractOutside: isDismissable && isOpen ? onInteractOutside : null,\n onInteractOutsideStart: onInteractOutsideStart\n });\n let { focusWithinProps: focusWithinProps } = (0, $jtpZv$useFocusWithin)({\n isDisabled: !shouldCloseOnBlur,\n onBlurWithin: (e)=>{\n // Do not close if relatedTarget is null, which means focus is lost to the body.\n // That can happen when switching tabs, or due to a VoiceOver/Chrome bug with Control+Option+Arrow navigation.\n // Clicking on the body to close the overlay should already be handled by useInteractOutside.\n // https://github.com/adobe/react-spectrum/issues/4130\n // https://github.com/adobe/react-spectrum/issues/4922\n //\n // If focus is moving into a child focus scope (e.g. menu inside a dialog),\n // do not close the outer overlay. At this point, the active scope should\n // still be the outer overlay, since blur events run before focus.\n if (!e.relatedTarget || (0, $jtpZv$isElementInChildOfActiveScope)(e.relatedTarget)) return;\n if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.relatedTarget)) onClose();\n }\n });\n let onPointerDownUnderlay = (e)=>{\n // fixes a firefox issue that starts text selection https://bugzilla.mozilla.org/show_bug.cgi?id=1675846\n if (e.target === e.currentTarget) e.preventDefault();\n };\n return {\n overlayProps: {\n onKeyDown: onKeyDown,\n ...focusWithinProps\n },\n underlayProps: {\n onPointerDown: onPointerDownUnderlay\n }\n };\n}\n\n\nexport {$a11501f3d1d39e6c$export$ea8f71083e90600f as useOverlay};\n","var $773d5888b972f1cf$exports = {};\n$773d5888b972f1cf$exports = {\n \"dismiss\": `\\u{62A}\\u{62C}\\u{627}\\u{647}\\u{644}`\n};\n\n\nexport {$773d5888b972f1cf$exports as default};\n","import $k51So$arAEmodulejs from \"./ar-AE.mjs\";\nimport $k51So$bgBGmodulejs from \"./bg-BG.mjs\";\nimport $k51So$csCZmodulejs from \"./cs-CZ.mjs\";\nimport $k51So$daDKmodulejs from \"./da-DK.mjs\";\nimport $k51So$deDEmodulejs from \"./de-DE.mjs\";\nimport $k51So$elGRmodulejs from \"./el-GR.mjs\";\nimport $k51So$enUSmodulejs from \"./en-US.mjs\";\nimport $k51So$esESmodulejs from \"./es-ES.mjs\";\nimport $k51So$etEEmodulejs from \"./et-EE.mjs\";\nimport $k51So$fiFImodulejs from \"./fi-FI.mjs\";\nimport $k51So$frFRmodulejs from \"./fr-FR.mjs\";\nimport $k51So$heILmodulejs from \"./he-IL.mjs\";\nimport $k51So$hrHRmodulejs from \"./hr-HR.mjs\";\nimport $k51So$huHUmodulejs from \"./hu-HU.mjs\";\nimport $k51So$itITmodulejs from \"./it-IT.mjs\";\nimport $k51So$jaJPmodulejs from \"./ja-JP.mjs\";\nimport $k51So$koKRmodulejs from \"./ko-KR.mjs\";\nimport $k51So$ltLTmodulejs from \"./lt-LT.mjs\";\nimport $k51So$lvLVmodulejs from \"./lv-LV.mjs\";\nimport $k51So$nbNOmodulejs from \"./nb-NO.mjs\";\nimport $k51So$nlNLmodulejs from \"./nl-NL.mjs\";\nimport $k51So$plPLmodulejs from \"./pl-PL.mjs\";\nimport $k51So$ptBRmodulejs from \"./pt-BR.mjs\";\nimport $k51So$ptPTmodulejs from \"./pt-PT.mjs\";\nimport $k51So$roROmodulejs from \"./ro-RO.mjs\";\nimport $k51So$ruRUmodulejs from \"./ru-RU.mjs\";\nimport $k51So$skSKmodulejs from \"./sk-SK.mjs\";\nimport $k51So$slSImodulejs from \"./sl-SI.mjs\";\nimport $k51So$srSPmodulejs from \"./sr-SP.mjs\";\nimport $k51So$svSEmodulejs from \"./sv-SE.mjs\";\nimport $k51So$trTRmodulejs from \"./tr-TR.mjs\";\nimport $k51So$ukUAmodulejs from \"./uk-UA.mjs\";\nimport $k51So$zhCNmodulejs from \"./zh-CN.mjs\";\nimport $k51So$zhTWmodulejs from \"./zh-TW.mjs\";\n\nvar $a2f21f5f14f60553$exports = {};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n$a2f21f5f14f60553$exports = {\n \"ar-AE\": $k51So$arAEmodulejs,\n \"bg-BG\": $k51So$bgBGmodulejs,\n \"cs-CZ\": $k51So$csCZmodulejs,\n \"da-DK\": $k51So$daDKmodulejs,\n \"de-DE\": $k51So$deDEmodulejs,\n \"el-GR\": $k51So$elGRmodulejs,\n \"en-US\": $k51So$enUSmodulejs,\n \"es-ES\": $k51So$esESmodulejs,\n \"et-EE\": $k51So$etEEmodulejs,\n \"fi-FI\": $k51So$fiFImodulejs,\n \"fr-FR\": $k51So$frFRmodulejs,\n \"he-IL\": $k51So$heILmodulejs,\n \"hr-HR\": $k51So$hrHRmodulejs,\n \"hu-HU\": $k51So$huHUmodulejs,\n \"it-IT\": $k51So$itITmodulejs,\n \"ja-JP\": $k51So$jaJPmodulejs,\n \"ko-KR\": $k51So$koKRmodulejs,\n \"lt-LT\": $k51So$ltLTmodulejs,\n \"lv-LV\": $k51So$lvLVmodulejs,\n \"nb-NO\": $k51So$nbNOmodulejs,\n \"nl-NL\": $k51So$nlNLmodulejs,\n \"pl-PL\": $k51So$plPLmodulejs,\n \"pt-BR\": $k51So$ptBRmodulejs,\n \"pt-PT\": $k51So$ptPTmodulejs,\n \"ro-RO\": $k51So$roROmodulejs,\n \"ru-RU\": $k51So$ruRUmodulejs,\n \"sk-SK\": $k51So$skSKmodulejs,\n \"sl-SI\": $k51So$slSImodulejs,\n \"sr-SP\": $k51So$srSPmodulejs,\n \"sv-SE\": $k51So$svSEmodulejs,\n \"tr-TR\": $k51So$trTRmodulejs,\n \"uk-UA\": $k51So$ukUAmodulejs,\n \"zh-CN\": $k51So$zhCNmodulejs,\n \"zh-TW\": $k51So$zhTWmodulejs\n};\n\n\nexport {$a2f21f5f14f60553$exports as default};\n","var $d11f19852b941573$exports = {};\n$d11f19852b941573$exports = {\n \"dismiss\": `\\u{41E}\\u{442}\\u{445}\\u{432}\\u{44A}\\u{440}\\u{43B}\\u{44F}\\u{43D}\\u{435}`\n};\n\n\nexport {$d11f19852b941573$exports as default};\n","var $b983974c2ee1efb3$exports = {};\n$b983974c2ee1efb3$exports = {\n \"dismiss\": `Odstranit`\n};\n\n\nexport {$b983974c2ee1efb3$exports as default};\n","var $5809cc9d4e92de73$exports = {};\n$5809cc9d4e92de73$exports = {\n \"dismiss\": `Luk`\n};\n\n\nexport {$5809cc9d4e92de73$exports as default};\n","var $c68c2e4fc74398d1$exports = {};\n$c68c2e4fc74398d1$exports = {\n \"dismiss\": `Schlie\\xdfen`\n};\n\n\nexport {$c68c2e4fc74398d1$exports as default};\n","var $0898b4c153db2b77$exports = {};\n$0898b4c153db2b77$exports = {\n \"dismiss\": `\\u{391}\\u{3C0}\\u{3CC}\\u{3C1}\\u{3C1}\\u{3B9}\\u{3C8}\\u{3B7}`\n};\n\n\nexport {$0898b4c153db2b77$exports as default};\n","var $6d74810286a15183$exports = {};\n$6d74810286a15183$exports = {\n \"dismiss\": `Dismiss`\n};\n\n\nexport {$6d74810286a15183$exports as default};\n","var $309d73dc65f78055$exports = {};\n$309d73dc65f78055$exports = {\n \"dismiss\": `Descartar`\n};\n\n\nexport {$309d73dc65f78055$exports as default};\n","var $44ad94f7205cf593$exports = {};\n$44ad94f7205cf593$exports = {\n \"dismiss\": `L\\xf5peta`\n};\n\n\nexport {$44ad94f7205cf593$exports as default};\n","var $7c28f5687f0779a9$exports = {};\n$7c28f5687f0779a9$exports = {\n \"dismiss\": `Hylk\\xe4\\xe4`\n};\n\n\nexport {$7c28f5687f0779a9$exports as default};\n","var $e6d75df4b68bd73a$exports = {};\n$e6d75df4b68bd73a$exports = {\n \"dismiss\": `Rejeter`\n};\n\n\nexport {$e6d75df4b68bd73a$exports as default};\n","var $87505c9dab186d0f$exports = {};\n$87505c9dab186d0f$exports = {\n \"dismiss\": `\\u{5D4}\\u{5EA}\\u{5E2}\\u{5DC}\\u{5DD}`\n};\n\n\nexport {$87505c9dab186d0f$exports as default};\n","var $553439c3ffb3e492$exports = {};\n$553439c3ffb3e492$exports = {\n \"dismiss\": `Odbaci`\n};\n\n\nexport {$553439c3ffb3e492$exports as default};\n","var $74cf411061b983a2$exports = {};\n$74cf411061b983a2$exports = {\n \"dismiss\": `Elutas\\xedt\\xe1s`\n};\n\n\nexport {$74cf411061b983a2$exports as default};\n","var $e933f298574dc435$exports = {};\n$e933f298574dc435$exports = {\n \"dismiss\": `Ignora`\n};\n\n\nexport {$e933f298574dc435$exports as default};\n","var $ac91fc9fe02f71f6$exports = {};\n$ac91fc9fe02f71f6$exports = {\n \"dismiss\": `\\u{9589}\\u{3058}\\u{308B}`\n};\n\n\nexport {$ac91fc9fe02f71f6$exports as default};\n","var $52b96f86422025af$exports = {};\n$52b96f86422025af$exports = {\n \"dismiss\": `\\u{BB34}\\u{C2DC}`\n};\n\n\nexport {$52b96f86422025af$exports as default};\n","var $c0d724c3e51dafa6$exports = {};\n$c0d724c3e51dafa6$exports = {\n \"dismiss\": `Atmesti`\n};\n\n\nexport {$c0d724c3e51dafa6$exports as default};\n","var $c92899672a3fe72e$exports = {};\n$c92899672a3fe72e$exports = {\n \"dismiss\": `Ner\\u{101}d\\u{12B}t`\n};\n\n\nexport {$c92899672a3fe72e$exports as default};\n","var $9f576b39d8e7a9d6$exports = {};\n$9f576b39d8e7a9d6$exports = {\n \"dismiss\": `Lukk`\n};\n\n\nexport {$9f576b39d8e7a9d6$exports as default};\n","var $9d025808aeec81a7$exports = {};\n$9d025808aeec81a7$exports = {\n \"dismiss\": `Negeren`\n};\n\n\nexport {$9d025808aeec81a7$exports as default};\n","var $fce709921e2c0fa6$exports = {};\n$fce709921e2c0fa6$exports = {\n \"dismiss\": `Zignoruj`\n};\n\n\nexport {$fce709921e2c0fa6$exports as default};\n","var $2599cf0c4ab37f59$exports = {};\n$2599cf0c4ab37f59$exports = {\n \"dismiss\": `Descartar`\n};\n\n\nexport {$2599cf0c4ab37f59$exports as default};\n","var $3c220ae7ef8a35fd$exports = {};\n$3c220ae7ef8a35fd$exports = {\n \"dismiss\": `Dispensar`\n};\n\n\nexport {$3c220ae7ef8a35fd$exports as default};\n","var $93562b5094072f54$exports = {};\n$93562b5094072f54$exports = {\n \"dismiss\": `Revocare`\n};\n\n\nexport {$93562b5094072f54$exports as default};\n","var $cd9e2abd0d06c7b4$exports = {};\n$cd9e2abd0d06c7b4$exports = {\n \"dismiss\": `\\u{41F}\\u{440}\\u{43E}\\u{43F}\\u{443}\\u{441}\\u{442}\\u{438}\\u{442}\\u{44C}`\n};\n\n\nexport {$cd9e2abd0d06c7b4$exports as default};\n","var $45375701f409adf1$exports = {};\n$45375701f409adf1$exports = {\n \"dismiss\": `Zru\\u{161}i\\u{165}`\n};\n\n\nexport {$45375701f409adf1$exports as default};\n","var $27fab53a576de9dd$exports = {};\n$27fab53a576de9dd$exports = {\n \"dismiss\": `Opusti`\n};\n\n\nexport {$27fab53a576de9dd$exports as default};\n","var $4438748d9952e7c7$exports = {};\n$4438748d9952e7c7$exports = {\n \"dismiss\": `Odbaci`\n};\n\n\nexport {$4438748d9952e7c7$exports as default};\n","var $0936d7347ef4da4c$exports = {};\n$0936d7347ef4da4c$exports = {\n \"dismiss\": `Avvisa`\n};\n\n\nexport {$0936d7347ef4da4c$exports as default};\n","var $29700c92185d38f8$exports = {};\n$29700c92185d38f8$exports = {\n \"dismiss\": `Kapat`\n};\n\n\nexport {$29700c92185d38f8$exports as default};\n","var $662ccaf2be4c25b3$exports = {};\n$662ccaf2be4c25b3$exports = {\n \"dismiss\": `\\u{421}\\u{43A}\\u{430}\\u{441}\\u{443}\\u{432}\\u{430}\\u{442}\\u{438}`\n};\n\n\nexport {$662ccaf2be4c25b3$exports as default};\n","var $d80a27deda7cdb3c$exports = {};\n$d80a27deda7cdb3c$exports = {\n \"dismiss\": `\\u{53D6}\\u{6D88}`\n};\n\n\nexport {$d80a27deda7cdb3c$exports as default};\n","var $2b2734393847c884$exports = {};\n$2b2734393847c884$exports = {\n \"dismiss\": `\\u{95DC}\\u{9589}`\n};\n\n\nexport {$2b2734393847c884$exports as default};\n","import $iYaQO$intlStringsmodulejs from \"./intlStrings.mjs\";\nimport $iYaQO$react from \"react\";\nimport {useLabels as $iYaQO$useLabels} from \"@react-aria/utils\";\nimport {useLocalizedStringFormatter as $iYaQO$useLocalizedStringFormatter} from \"@react-aria/i18n\";\nimport {VisuallyHidden as $iYaQO$VisuallyHidden} from \"@react-aria/visually-hidden\";\n\n\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $86ea4cb521eb2e37$export$2317d149ed6f78c4(props) {\n let { onDismiss: onDismiss, ...otherProps } = props;\n let stringFormatter = (0, $iYaQO$useLocalizedStringFormatter)((0, ($parcel$interopDefault($iYaQO$intlStringsmodulejs))), '@react-aria/overlays');\n let labels = (0, $iYaQO$useLabels)(otherProps, stringFormatter.format('dismiss'));\n let onClick = ()=>{\n if (onDismiss) onDismiss();\n };\n return /*#__PURE__*/ (0, $iYaQO$react).createElement((0, $iYaQO$VisuallyHidden), null, /*#__PURE__*/ (0, $iYaQO$react).createElement(\"button\", {\n ...labels,\n tabIndex: -1,\n onClick: onClick,\n style: {\n width: 1,\n height: 1\n }\n }));\n}\n\n\nexport {$86ea4cb521eb2e37$export$2317d149ed6f78c4 as DismissButton};\n","import { rem } from '@visiba/std';\nimport { motion } from 'framer-motion';\nimport { useRef } from 'react';\nimport { useOverlay, DismissButton, FocusScope } from 'react-aria';\nimport styled from 'styled-components';\n\ninterface Props {\n\tpopoverRef?: React.RefObject<HTMLDivElement>;\n\tchildren: React.ReactNode;\n\tisOpen?: boolean;\n\tonClose?: () => void;\n}\n\nconst elements = {\n\tcontainer: styled(motion.div)`\n\t\tposition: absolute;\n\t\tz-index: 1;\n\t\tleft: -${rem(25)};\n\t\ttop: calc(100% + ${rem(8)});\n\t`,\n};\n\nexport function Popover(props: Props): JSX.Element {\n\tconst ref = useRef<HTMLDivElement>(null);\n\tconst { popoverRef = ref, isOpen, onClose, children } = props;\n\n\t// Handle events that should cause the popup to close,\n\t// e.g. blur, clicking outside, or pressing the escape key.\n\tconst { overlayProps } = useOverlay(\n\t\t{\n\t\t\tisOpen,\n\t\t\tonClose,\n\t\t\tshouldCloseOnBlur: true,\n\t\t\tisDismissable: true,\n\t\t},\n\t\tpopoverRef,\n\t);\n\n\treturn (\n\t\t<FocusScope restoreFocus>\n\t\t\t<elements.container\n\t\t\t\t{\n\t\t\t\t\t/* Reason: Miss-match with React-Aria and Styled Components... */\n\t\t\t\t\t/* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n\t\t\t\t\t...(overlayProps as any)\n\t\t\t\t}\n\t\t\t\tref={popoverRef}\n\t\t\t\ttransition={{\n\t\t\t\t\ttype: 'tween',\n\t\t\t\t}}\n\t\t\t\tinitial={{ opacity: 0, y: 10 }}\n\t\t\t\tanimate={{ opacity: 1, y: 0 }}\n\t\t\t\texit={{ opacity: 0, y: 10 }}\n\t\t\t>\n\t\t\t\t{children}\n\n\t\t\t\t{/**\n\t\t\t\t\tAdd a hidden <DismissButton> component at the end of the popover\n\t\t\t\t\tto allow screen reader users to dismiss the popup easily.\n\t\t\t\t*/}\n\t\t\t\t<DismissButton onDismiss={onClose} />\n\t\t\t</elements.container>\n\t\t</FocusScope>\n\t);\n}\n","import {listData as $b1f0cad8af73213b$export$3585ede4d035bf14} from \"./utils.mjs\";\nimport {filterDOMProps as $by1yQ$filterDOMProps, useId as $by1yQ$useId, mergeProps as $by1yQ$mergeProps} from \"@react-aria/utils\";\nimport {useFocusWithin as $by1yQ$useFocusWithin} from \"@react-aria/interactions\";\nimport {useLabel as $by1yQ$useLabel} from \"@react-aria/label\";\nimport {useSelectableList as $by1yQ$useSelectableList} from \"@react-aria/selection\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $c132121280ec012d$export$50eacbbf140a3141(props, state, ref) {\n let domProps = (0, $by1yQ$filterDOMProps)(props, {\n labelable: true\n });\n // Use props instead of state here. We don't want this to change due to long press.\n let selectionBehavior = props.selectionBehavior || 'toggle';\n let linkBehavior = props.linkBehavior || (selectionBehavior === 'replace' ? 'action' : 'override');\n if (selectionBehavior === 'toggle' && linkBehavior === 'action') // linkBehavior=\"action\" does not work with selectionBehavior=\"toggle\" because there is no way\n // to initiate selection (checkboxes are not allowed inside a listbox). Link items will not be\n // selectable in this configuration.\n linkBehavior = 'override';\n let { listProps: listProps } = (0, $by1yQ$useSelectableList)({\n ...props,\n ref: ref,\n selectionManager: state.selectionManager,\n collection: state.collection,\n disabledKeys: state.disabledKeys,\n linkBehavior: linkBehavior\n });\n let { focusWithinProps: focusWithinProps } = (0, $by1yQ$useFocusWithin)({\n onFocusWithin: props.onFocus,\n onBlurWithin: props.onBlur,\n onFocusWithinChange: props.onFocusChange\n });\n // Share list id and some props with child options.\n let id = (0, $by1yQ$useId)(props.id);\n (0, $b1f0cad8af73213b$export$3585ede4d035bf14).set(state, {\n id: id,\n shouldUseVirtualFocus: props.shouldUseVirtualFocus,\n shouldSelectOnPressUp: props.shouldSelectOnPressUp,\n shouldFocusOnHover: props.shouldFocusOnHover,\n isVirtualized: props.isVirtualized,\n onAction: props.onAction,\n linkBehavior: linkBehavior\n });\n let { labelProps: labelProps, fieldProps: fieldProps } = (0, $by1yQ$useLabel)({\n ...props,\n id: id,\n // listbox is not an HTML input element so it\n // shouldn't be labeled by a <label> element.\n labelElementType: 'span'\n });\n return {\n labelProps: labelProps,\n listBoxProps: (0, $by1yQ$mergeProps)(domProps, focusWithinProps, state.selectionManager.selectionMode === 'multiple' ? {\n 'aria-multiselectable': 'true'\n } : {}, {\n role: 'listbox',\n ...(0, $by1yQ$mergeProps)(fieldProps, listProps)\n })\n };\n}\n\n\nexport {$c132121280ec012d$export$50eacbbf140a3141 as useListBox};\n","import {useSelectableCollection as $ae20dd8cbca75726$export$d6daf82dcd84e87c} from \"./useSelectableCollection.mjs\";\nimport {ListKeyboardDelegate as $2a25aae57d74318e$export$a05409b8bb224a5a} from \"./ListKeyboardDelegate.mjs\";\nimport {useCollator as $1aJk5$useCollator} from \"@react-aria/i18n\";\nimport {useMemo as $1aJk5$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nfunction $982254629710d113$export$b95089534ab7c1fd(props) {\n let { selectionManager: selectionManager, collection: collection, disabledKeys: disabledKeys, ref: ref, keyboardDelegate: keyboardDelegate, layoutDelegate: layoutDelegate } = props;\n // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).\n // When virtualized, the layout object will be passed in as a prop and override this.\n let collator = (0, $1aJk5$useCollator)({\n usage: 'search',\n sensitivity: 'base'\n });\n let disabledBehavior = selectionManager.disabledBehavior;\n let delegate = (0, $1aJk5$useMemo)(()=>keyboardDelegate || new (0, $2a25aae57d74318e$export$a05409b8bb224a5a)({\n collection: collection,\n disabledKeys: disabledKeys,\n disabledBehavior: disabledBehavior,\n ref: ref,\n collator: collator,\n layoutDelegate: layoutDelegate\n }), [\n keyboardDelegate,\n layoutDelegate,\n collection,\n disabledKeys,\n ref,\n collator,\n disabledBehavior\n ]);\n let { collectionProps: collectionProps } = (0, $ae20dd8cbca75726$export$d6daf82dcd84e87c)({\n ...props,\n ref: ref,\n selectionManager: selectionManager,\n keyboardDelegate: delegate\n });\n return {\n listProps: collectionProps\n };\n}\n\n\nexport {$982254629710d113$export$b95089534ab7c1fd as useSelectableList};\n","import {useState as $AWxnT$useState, useRef as $AWxnT$useRef, useEffect as $AWxnT$useEffect, useMemo as $AWxnT$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n// iOS fires onPointerEnter twice: once with pointerType=\"touch\" and again with pointerType=\"mouse\".\n// We want to ignore these emulated events so they do not trigger hover behavior.\n// See https://bugs.webkit.org/show_bug.cgi?id=214609.\nlet $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;\nlet $6179b936705e76d3$var$hoverCount = 0;\nfunction $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents() {\n $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = true;\n // Clear globalIgnoreEmulatedMouseEvents after a short timeout. iOS fires onPointerEnter\n // with pointerType=\"mouse\" immediately after onPointerUp and before onFocus. On other\n // devices that don't have this quirk, we don't want to ignore a mouse hover sometime in\n // the distant future because a user previously touched the element.\n setTimeout(()=>{\n $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;\n }, 50);\n}\nfunction $6179b936705e76d3$var$handleGlobalPointerEvent(e) {\n if (e.pointerType === 'touch') $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents();\n}\nfunction $6179b936705e76d3$var$setupGlobalTouchEvents() {\n if (typeof document === 'undefined') return;\n if (typeof PointerEvent !== 'undefined') document.addEventListener('pointerup', $6179b936705e76d3$var$handleGlobalPointerEvent);\n else document.addEventListener('touchend', $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);\n $6179b936705e76d3$var$hoverCount++;\n return ()=>{\n $6179b936705e76d3$var$hoverCount--;\n if ($6179b936705e76d3$var$hoverCount > 0) return;\n if (typeof PointerEvent !== 'undefined') document.removeEventListener('pointerup', $6179b936705e76d3$var$handleGlobalPointerEvent);\n else document.removeEventListener('touchend', $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);\n };\n}\nfunction $6179b936705e76d3$export$ae780daf29e6d456(props) {\n let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, isDisabled: isDisabled } = props;\n let [isHovered, setHovered] = (0, $AWxnT$useState)(false);\n let state = (0, $AWxnT$useRef)({\n isHovered: false,\n ignoreEmulatedMouseEvents: false,\n pointerType: '',\n target: null\n }).current;\n (0, $AWxnT$useEffect)($6179b936705e76d3$var$setupGlobalTouchEvents, []);\n let { hoverProps: hoverProps, triggerHoverEnd: triggerHoverEnd } = (0, $AWxnT$useMemo)(()=>{\n let triggerHoverStart = (event, pointerType)=>{\n state.pointerType = pointerType;\n if (isDisabled || pointerType === 'touch' || state.isHovered || !event.currentTarget.contains(event.target)) return;\n state.isHovered = true;\n let target = event.currentTarget;\n state.target = target;\n if (onHoverStart) onHoverStart({\n type: 'hoverstart',\n target: target,\n pointerType: pointerType\n });\n if (onHoverChange) onHoverChange(true);\n setHovered(true);\n };\n let triggerHoverEnd = (event, pointerType)=>{\n state.pointerType = '';\n state.target = null;\n if (pointerType === 'touch' || !state.isHovered) return;\n state.isHovered = false;\n let target = event.currentTarget;\n if (onHoverEnd) onHoverEnd({\n type: 'hoverend',\n target: target,\n pointerType: pointerType\n });\n if (onHoverChange) onHoverChange(false);\n setHovered(false);\n };\n let hoverProps = {};\n if (typeof PointerEvent !== 'undefined') {\n hoverProps.onPointerEnter = (e)=>{\n if ($6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents && e.pointerType === 'mouse') return;\n triggerHoverStart(e, e.pointerType);\n };\n hoverProps.onPointerLeave = (e)=>{\n if (!isDisabled && e.currentTarget.contains(e.target)) triggerHoverEnd(e, e.pointerType);\n };\n } else {\n hoverProps.onTouchStart = ()=>{\n state.ignoreEmulatedMouseEvents = true;\n };\n hoverProps.onMouseEnter = (e)=>{\n if (!state.ignoreEmulatedMouseEvents && !$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents) triggerHoverStart(e, 'mouse');\n state.ignoreEmulatedMouseEvents = false;\n };\n hoverProps.onMouseLeave = (e)=>{\n if (!isDisabled && e.currentTarget.contains(e.target)) triggerHoverEnd(e, 'mouse');\n };\n }\n return {\n hoverProps: hoverProps,\n triggerHoverEnd: triggerHoverEnd\n };\n }, [\n onHoverStart,\n onHoverChange,\n onHoverEnd,\n isDisabled,\n state\n ]);\n (0, $AWxnT$useEffect)(()=>{\n // Call the triggerHoverEnd as soon as isDisabled changes to true\n // Safe to call triggerHoverEnd, it will early return if we aren't currently hovering\n if (isDisabled) triggerHoverEnd({\n currentTarget: state.target\n }, state.pointerType);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isDisabled\n ]);\n return {\n hoverProps: hoverProps,\n isHovered: isHovered\n };\n}\n\n\nexport {$6179b936705e76d3$export$ae780daf29e6d456 as useHover};\n","import {isCtrlKeyPressed as $feb5ffebff200149$export$16792effe837dba3, isNonContiguousSelectionModifier as $feb5ffebff200149$export$d3e3bd3e26688c04} from \"./utils.mjs\";\nimport {focusSafely as $581M0$focusSafely} from \"@react-aria/focus\";\nimport {useRouter as $581M0$useRouter, openLink as $581M0$openLink, mergeProps as $581M0$mergeProps} from \"@react-aria/utils\";\nimport {usePress as $581M0$usePress, useLongPress as $581M0$useLongPress} from \"@react-aria/interactions\";\nimport {useEffect as $581M0$useEffect, useRef as $581M0$useRef} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $880e95eb8b93ba9a$export$ecf600387e221c37(options) {\n let { selectionManager: manager, key: key, ref: ref, shouldSelectOnPressUp: shouldSelectOnPressUp, shouldUseVirtualFocus: shouldUseVirtualFocus, focus: focus, isDisabled: isDisabled, onAction: onAction, allowsDifferentPressOrigin: allowsDifferentPressOrigin, linkBehavior: linkBehavior = 'action' } = options;\n let router = (0, $581M0$useRouter)();\n let onSelect = (e)=>{\n if (e.pointerType === 'keyboard' && (0, $feb5ffebff200149$export$d3e3bd3e26688c04)(e)) manager.toggleSelection(key);\n else {\n if (manager.selectionMode === 'none') return;\n if (manager.isLink(key)) {\n if (linkBehavior === 'selection') {\n let itemProps = manager.getItemProps(key);\n router.open(ref.current, e, itemProps.href, itemProps.routerOptions);\n // Always set selected keys back to what they were so that select and combobox close.\n manager.setSelectedKeys(manager.selectedKeys);\n return;\n } else if (linkBehavior === 'override' || linkBehavior === 'none') return;\n }\n if (manager.selectionMode === 'single') {\n if (manager.isSelected(key) && !manager.disallowEmptySelection) manager.toggleSelection(key);\n else manager.replaceSelection(key);\n } else if (e && e.shiftKey) manager.extendSelection(key);\n else if (manager.selectionBehavior === 'toggle' || e && ((0, $feb5ffebff200149$export$16792effe837dba3)(e) || e.pointerType === 'touch' || e.pointerType === 'virtual')) // if touch or virtual (VO) then we just want to toggle, otherwise it's impossible to multi select because they don't have modifier keys\n manager.toggleSelection(key);\n else manager.replaceSelection(key);\n }\n };\n // Focus the associated DOM node when this item becomes the focusedKey\n (0, $581M0$useEffect)(()=>{\n let isFocused = key === manager.focusedKey;\n if (isFocused && manager.isFocused && !shouldUseVirtualFocus) {\n if (focus) focus();\n else if (document.activeElement !== ref.current) (0, $581M0$focusSafely)(ref.current);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n ref,\n key,\n manager.focusedKey,\n manager.childFocusStrategy,\n manager.isFocused,\n shouldUseVirtualFocus\n ]);\n isDisabled = isDisabled || manager.isDisabled(key);\n // Set tabIndex to 0 if the element is focused, or -1 otherwise so that only the last focused\n // item is tabbable. If using virtual focus, don't set a tabIndex at all so that VoiceOver\n // on iOS 14 doesn't try to move real DOM focus to the item anyway.\n let itemProps = {};\n if (!shouldUseVirtualFocus && !isDisabled) itemProps = {\n tabIndex: key === manager.focusedKey ? 0 : -1,\n onFocus (e) {\n if (e.target === ref.current) manager.setFocusedKey(key);\n }\n };\n else if (isDisabled) itemProps.onMouseDown = (e)=>{\n // Prevent focus going to the body when clicking on a disabled item.\n e.preventDefault();\n };\n // With checkbox selection, onAction (i.e. navigation) becomes primary, and occurs on a single click of the row.\n // Clicking the checkbox enters selection mode, after which clicking anywhere on any row toggles selection for that row.\n // With highlight selection, onAction is secondary, and occurs on double click. Single click selects the row.\n // With touch, onAction occurs on single tap, and long press enters selection mode.\n let isLinkOverride = manager.isLink(key) && linkBehavior === 'override';\n let hasLinkAction = manager.isLink(key) && linkBehavior !== 'selection' && linkBehavior !== 'none';\n let allowsSelection = !isDisabled && manager.canSelectItem(key) && !isLinkOverride;\n let allowsActions = (onAction || hasLinkAction) && !isDisabled;\n let hasPrimaryAction = allowsActions && (manager.selectionBehavior === 'replace' ? !allowsSelection : !allowsSelection || manager.isEmpty);\n let hasSecondaryAction = allowsActions && allowsSelection && manager.selectionBehavior === 'replace';\n let hasAction = hasPrimaryAction || hasSecondaryAction;\n let modality = (0, $581M0$useRef)(null);\n let longPressEnabled = hasAction && allowsSelection;\n let longPressEnabledOnPressStart = (0, $581M0$useRef)(false);\n let hadPrimaryActionOnPressStart = (0, $581M0$useRef)(false);\n let performAction = (e)=>{\n if (onAction) onAction();\n if (hasLinkAction) {\n let itemProps = manager.getItemProps(key);\n router.open(ref.current, e, itemProps.href, itemProps.routerOptions);\n }\n };\n // By default, selection occurs on pointer down. This can be strange if selecting an\n // item causes the UI to disappear immediately (e.g. menus).\n // If shouldSelectOnPressUp is true, we use onPressUp instead of onPressStart.\n // onPress requires a pointer down event on the same element as pointer up. For menus,\n // we want to be able to have the pointer down on the trigger that opens the menu and\n // the pointer up on the menu item rather than requiring a separate press.\n // For keyboard events, selection still occurs on key down.\n let itemPressProps = {};\n if (shouldSelectOnPressUp) {\n itemPressProps.onPressStart = (e)=>{\n modality.current = e.pointerType;\n longPressEnabledOnPressStart.current = longPressEnabled;\n if (e.pointerType === 'keyboard' && (!hasAction || $880e95eb8b93ba9a$var$isSelectionKey())) onSelect(e);\n };\n // If allowsDifferentPressOrigin, make selection happen on pressUp (e.g. open menu on press down, selection on menu item happens on press up.)\n // Otherwise, have selection happen onPress (prevents listview row selection when clicking on interactable elements in the row)\n if (!allowsDifferentPressOrigin) itemPressProps.onPress = (e)=>{\n if (hasPrimaryAction || hasSecondaryAction && e.pointerType !== 'mouse') {\n if (e.pointerType === 'keyboard' && !$880e95eb8b93ba9a$var$isActionKey()) return;\n performAction(e);\n } else if (e.pointerType !== 'keyboard' && allowsSelection) onSelect(e);\n };\n else {\n itemPressProps.onPressUp = hasPrimaryAction ? null : (e)=>{\n if (e.pointerType !== 'keyboard' && allowsSelection) onSelect(e);\n };\n itemPressProps.onPress = hasPrimaryAction ? performAction : null;\n }\n } else {\n itemPressProps.onPressStart = (e)=>{\n modality.current = e.pointerType;\n longPressEnabledOnPressStart.current = longPressEnabled;\n hadPrimaryActionOnPressStart.current = hasPrimaryAction;\n // Select on mouse down unless there is a primary action which will occur on mouse up.\n // For keyboard, select on key down. If there is an action, the Space key selects on key down,\n // and the Enter key performs onAction on key up.\n if (allowsSelection && (e.pointerType === 'mouse' && !hasPrimaryAction || e.pointerType === 'keyboard' && (!allowsActions || $880e95eb8b93ba9a$var$isSelectionKey()))) onSelect(e);\n };\n itemPressProps.onPress = (e)=>{\n // Selection occurs on touch up. Primary actions always occur on pointer up.\n // Both primary and secondary actions occur on Enter key up. The only exception\n // is secondary actions, which occur on double click with a mouse.\n if (e.pointerType === 'touch' || e.pointerType === 'pen' || e.pointerType === 'virtual' || e.pointerType === 'keyboard' && hasAction && $880e95eb8b93ba9a$var$isActionKey() || e.pointerType === 'mouse' && hadPrimaryActionOnPressStart.current) {\n if (hasAction) performAction(e);\n else if (allowsSelection) onSelect(e);\n }\n };\n }\n itemProps['data-key'] = key;\n itemPressProps.preventFocusOnPress = shouldUseVirtualFocus;\n let { pressProps: pressProps, isPressed: isPressed } = (0, $581M0$usePress)(itemPressProps);\n // Double clicking with a mouse with selectionBehavior = 'replace' performs an action.\n let onDoubleClick = hasSecondaryAction ? (e)=>{\n if (modality.current === 'mouse') {\n e.stopPropagation();\n e.preventDefault();\n performAction(e);\n }\n } : undefined;\n // Long pressing an item with touch when selectionBehavior = 'replace' switches the selection behavior\n // to 'toggle'. This changes the single tap behavior from performing an action (i.e. navigating) to\n // selecting, and may toggle the appearance of a UI affordance like checkboxes on each item.\n let { longPressProps: longPressProps } = (0, $581M0$useLongPress)({\n isDisabled: !longPressEnabled,\n onLongPress (e) {\n if (e.pointerType === 'touch') {\n onSelect(e);\n manager.setSelectionBehavior('toggle');\n }\n }\n });\n // Prevent native drag and drop on long press if we also select on long press.\n // Once the user is in selection mode, they can long press again to drag.\n // Use a capturing listener to ensure this runs before useDrag, regardless of\n // the order the props get merged.\n let onDragStartCapture = (e)=>{\n if (modality.current === 'touch' && longPressEnabledOnPressStart.current) e.preventDefault();\n };\n // Prevent default on link clicks so that we control exactly\n // when they open (to match selection behavior).\n let onClick = manager.isLink(key) ? (e)=>{\n if (!(0, $581M0$openLink).isOpening) e.preventDefault();\n } : undefined;\n return {\n itemProps: (0, $581M0$mergeProps)(itemProps, allowsSelection || hasPrimaryAction ? pressProps : {}, longPressEnabled ? longPressProps : {}, {\n onDoubleClick: onDoubleClick,\n onDragStartCapture: onDragStartCapture,\n onClick: onClick\n }),\n isPressed: isPressed,\n isSelected: manager.isSelected(key),\n isFocused: manager.isFocused && manager.focusedKey === key,\n isDisabled: isDisabled,\n allowsSelection: allowsSelection,\n hasAction: hasAction\n };\n}\nfunction $880e95eb8b93ba9a$var$isActionKey() {\n let event = window.event;\n return (event === null || event === void 0 ? void 0 : event.key) === 'Enter';\n}\nfunction $880e95eb8b93ba9a$var$isSelectionKey() {\n let event = window.event;\n return (event === null || event === void 0 ? void 0 : event.key) === ' ' || (event === null || event === void 0 ? void 0 : event.code) === 'Space';\n}\n\n\nexport {$880e95eb8b93ba9a$export$ecf600387e221c37 as useSelectableItem};\n","import {getItemId as $b1f0cad8af73213b$export$9145995848b05025, listData as $b1f0cad8af73213b$export$3585ede4d035bf14} from \"./utils.mjs\";\nimport {useSlotId as $fcwmx$useSlotId, isMac as $fcwmx$isMac, isWebKit as $fcwmx$isWebKit, chain as $fcwmx$chain, filterDOMProps as $fcwmx$filterDOMProps, useLinkProps as $fcwmx$useLinkProps, mergeProps as $fcwmx$mergeProps} from \"@react-aria/utils\";\nimport {getItemCount as $fcwmx$getItemCount} from \"@react-stately/collections\";\nimport {useHover as $fcwmx$useHover, isFocusVisible as $fcwmx$isFocusVisible} from \"@react-aria/interactions\";\nimport {useSelectableItem as $fcwmx$useSelectableItem} from \"@react-aria/selection\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $293f70390ea03370$export$497855f14858aa34(props, state, ref) {\n var _item_props, _item_props1;\n let { key: key } = props;\n let data = (0, $b1f0cad8af73213b$export$3585ede4d035bf14).get(state);\n var _props_isDisabled;\n let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : state.selectionManager.isDisabled(key);\n var _props_isSelected;\n let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : state.selectionManager.isSelected(key);\n var _props_shouldSelectOnPressUp;\n let shouldSelectOnPressUp = (_props_shouldSelectOnPressUp = props.shouldSelectOnPressUp) !== null && _props_shouldSelectOnPressUp !== void 0 ? _props_shouldSelectOnPressUp : data === null || data === void 0 ? void 0 : data.shouldSelectOnPressUp;\n var _props_shouldFocusOnHover;\n let shouldFocusOnHover = (_props_shouldFocusOnHover = props.shouldFocusOnHover) !== null && _props_shouldFocusOnHover !== void 0 ? _props_shouldFocusOnHover : data === null || data === void 0 ? void 0 : data.shouldFocusOnHover;\n var _props_shouldUseVirtualFocus;\n let shouldUseVirtualFocus = (_props_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _props_shouldUseVirtualFocus !== void 0 ? _props_shouldUseVirtualFocus : data === null || data === void 0 ? void 0 : data.shouldUseVirtualFocus;\n var _props_isVirtualized;\n let isVirtualized = (_props_isVirtualized = props.isVirtualized) !== null && _props_isVirtualized !== void 0 ? _props_isVirtualized : data === null || data === void 0 ? void 0 : data.isVirtualized;\n let labelId = (0, $fcwmx$useSlotId)();\n let descriptionId = (0, $fcwmx$useSlotId)();\n let optionProps = {\n role: 'option',\n 'aria-disabled': isDisabled || undefined,\n 'aria-selected': state.selectionManager.selectionMode !== 'none' ? isSelected : undefined\n };\n // Safari with VoiceOver on macOS misreads options with aria-labelledby or aria-label as simply \"text\".\n // We should not map slots to the label and description on Safari and instead just have VoiceOver read the textContent.\n // https://bugs.webkit.org/show_bug.cgi?id=209279\n if (!((0, $fcwmx$isMac)() && (0, $fcwmx$isWebKit)())) {\n optionProps['aria-label'] = props['aria-label'];\n optionProps['aria-labelledby'] = labelId;\n optionProps['aria-describedby'] = descriptionId;\n }\n let item = state.collection.getItem(key);\n if (isVirtualized) {\n let index = Number(item === null || item === void 0 ? void 0 : item.index);\n optionProps['aria-posinset'] = Number.isNaN(index) ? undefined : index + 1;\n optionProps['aria-setsize'] = (0, $fcwmx$getItemCount)(state.collection);\n }\n let onAction = (data === null || data === void 0 ? void 0 : data.onAction) ? ()=>{\n var _data_onAction;\n return data === null || data === void 0 ? void 0 : (_data_onAction = data.onAction) === null || _data_onAction === void 0 ? void 0 : _data_onAction.call(data, key);\n } : undefined;\n let { itemProps: itemProps, isPressed: isPressed, isFocused: isFocused, hasAction: hasAction, allowsSelection: allowsSelection } = (0, $fcwmx$useSelectableItem)({\n selectionManager: state.selectionManager,\n key: key,\n ref: ref,\n shouldSelectOnPressUp: shouldSelectOnPressUp,\n allowsDifferentPressOrigin: shouldSelectOnPressUp && shouldFocusOnHover,\n isVirtualized: isVirtualized,\n shouldUseVirtualFocus: shouldUseVirtualFocus,\n isDisabled: isDisabled,\n onAction: onAction || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) ? (0, $fcwmx$chain)(item === null || item === void 0 ? void 0 : (_item_props1 = item.props) === null || _item_props1 === void 0 ? void 0 : _item_props1.onAction, onAction) : undefined,\n linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior\n });\n let { hoverProps: hoverProps } = (0, $fcwmx$useHover)({\n isDisabled: isDisabled || !shouldFocusOnHover,\n onHoverStart () {\n if (!(0, $fcwmx$isFocusVisible)()) {\n state.selectionManager.setFocused(true);\n state.selectionManager.setFocusedKey(key);\n }\n }\n });\n let domProps = (0, $fcwmx$filterDOMProps)(item === null || item === void 0 ? void 0 : item.props);\n delete domProps.id;\n let linkProps = (0, $fcwmx$useLinkProps)(item === null || item === void 0 ? void 0 : item.props);\n return {\n optionProps: {\n ...optionProps,\n ...(0, $fcwmx$mergeProps)(domProps, itemProps, hoverProps, linkProps),\n id: (0, $b1f0cad8af73213b$export$9145995848b05025)(state, key)\n },\n labelProps: {\n id: labelId\n },\n descriptionProps: {\n id: descriptionId\n },\n isFocused: isFocused,\n isFocusVisible: isFocused && (0, $fcwmx$isFocusVisible)(),\n isSelected: isSelected,\n isDisabled: isDisabled,\n isPressed: isPressed,\n allowsSelection: allowsSelection,\n hasAction: hasAction\n };\n}\n\n\nexport {$293f70390ea03370$export$497855f14858aa34 as useOption};\n","import styled from 'styled-components';\nimport { useListBox, useOption } from 'react-aria';\nimport { Spinner } from '@components/spinner.component';\nimport { UIEvent, useRef } from 'react';\nimport { rem } from '@visiba/std';\nimport { Icon } from '@components/icon.component';\nimport { theme } from '@services/theme.service/theme';\nimport { BROWSE_KEY, SearchUnitNode } from './_common';\nimport { Text, VStack } from '@visiba-cortex/react-ui-std';\nimport { FONT_VARIANT } from '../../constants';\nimport { withTranslation } from '@modules/i18n_and_l10n/with_translation';\nimport { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport type { AriaListBoxOptions } from '@react-aria/listbox';\nimport type { Node, LoadingState } from '@react-types/shared';\nimport type { ListState } from 'react-stately';\n\ninterface Props extends AriaListBoxOptions<unknown> {\n\tlistBoxRef?: React.RefObject<HTMLUListElement>;\n\tstate: ListState<SearchUnitNode>;\n\tloadingState?: LoadingState;\n\tonLoadMore?: () => void;\n}\n\nconst elements = {\n\tcontainer: styled.div`\n\t\tbox-shadow:\n\t\t\t0 1px 0 rgb(0 0 0 / 5%),\n\t\t\t0 4px 17px rgb(0 0 0 / 6%);\n\t\tmin-width: ${rem(480)};\n\t\tbackground: #ffffff;\n\t\tborder-radius: ${rem(24)};\n\t`,\n\tlist: styled.ul`\n\t\tpadding: 0 !important; /* Injection stuff... Remove this later */\n\n\t\t.browse {\n\t\t\tmargin-left: ${rem(16)};\n\t\t}\n\t`,\n\tlistItem: styled.li<{ isFocused?: boolean }>`\n\t\tposition: relative;\n\t\theight: ${rem(50)};\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tbackground-color: ${({ isFocused }) => (isFocused ? '#F1F3F8' : null)};\n\t\tpadding: ${rem(5)};\n\t\t/* Adding a mouse pointer since our platform want to treat these as links */\n\t\tcursor: pointer;\n\n\t\t&:first-of-type {\n\t\t\tborder-top-left-radius: ${rem(24)};\n\t\t\tborder-top-right-radius: ${rem(24)};\n\t\t}\n\n\t\t&:last-of-type {\n\t\t\tborder-bottom-left-radius: ${rem(24)};\n\t\t\tborder-bottom-right-radius: ${rem(24)};\n\t\t}\n\n\t\t&:last-of-type {\n\t\t\t&::after {\n\t\t\t\tcontent: none;\n\t\t\t}\n\t\t}\n\n\t\t&.noMouse {\n\t\t\tcursor: default;\n\t\t}\n\t`,\n\ticonContainer: styled.div`\n\t\tmargin: 0 ${rem(20)} 0 ${rem(20)};\n\t\theight: ${rem(20)};\n\t\twidth: ${rem(20)};\n\t\tfont-size: ${rem(20)};\n\t\tdisplay: flex;\n\t\tcolor: rgba(120, 140, 152, 0.5);\n\t`,\n\ticon: styled.span`\n\t\tmargin-left: ${rem(10)};\n\t\tvertical-align: middle;\n\t`,\n};\n\nexport function ListBox(props: Props): JSX.Element {\n\tconst ref = useRef<HTMLUListElement>(null);\n\tconst { listBoxRef = ref, state } = props;\n\tconst { listBoxProps } = useListBox(props, state, listBoxRef);\n\n\tfunction onScroll(event: UIEvent): void {\n\t\tconst scrollOffset = event.currentTarget.scrollHeight - event.currentTarget.clientHeight * 2;\n\t\tif (event.currentTarget.scrollTop > scrollOffset && props.onLoadMore) {\n\t\t\tprops.onLoadMore();\n\t\t}\n\t}\n\n\treturn (\n\t\t<elements.container>\n\t\t\t<elements.list {...listBoxProps} ref={listBoxRef} onScroll={onScroll}>\n\t\t\t\t{[...state.collection].filter((item) => item.value?.id !== BROWSE_KEY).length === 0 ? <NoListableReceptions /> : null}\n\n\t\t\t\t{[...state.collection].map((item) => (\n\t\t\t\t\t<Option key={item.key} item={item} state={state} />\n\t\t\t\t))}\n\n\t\t\t\t{props.loadingState === 'loadingMore' && (\n\t\t\t\t\t// Display a spinner at the bottom of the list if we're loading more.\n\t\t\t\t\t// role=\"option\" is required for valid ARIA semantics since\n\t\t\t\t\t// we're inside a role=\"listbox\".\n\t\t\t\t\t<div role='option' aria-selected='false'>\n\t\t\t\t\t\t<Spinner />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</elements.list>\n\t\t</elements.container>\n\t);\n}\n\ninterface OptionProps {\n\titem: Node<SearchUnitNode>;\n\tstate: ListState<unknown>;\n}\n\nfunction Option({ item, state }: OptionProps): JSX.Element {\n\tconst ref = useRef<HTMLLIElement>(null);\n\tconst { optionProps, isFocused } = useOption(\n\t\t{\n\t\t\tkey: item.key,\n\t\t},\n\t\tstate,\n\t\tref,\n\t);\n\n\tif (item.value?.id === BROWSE_KEY) {\n\t\treturn (\n\t\t\t<elements.listItem {...optionProps} ref={ref} isFocused={isFocused} role='link'>\n\t\t\t\t<elements.iconContainer />\n\t\t\t\t<Text font={FONT_VARIANT.BODY} color={theme.hyperLinkDefault}>\n\t\t\t\t\t{withTranslation('Patient.DefaultHomeGuiComponents.Browse')}\n\t\t\t\t\t<elements.icon aria-hidden='true'>\n\t\t\t\t\t\t<Icon type='arrowRight' />\n\t\t\t\t\t</elements.icon>\n\t\t\t\t</Text>\n\t\t\t</elements.listItem>\n\t\t);\n\t}\n\n\treturn (\n\t\t<elements.listItem {...optionProps} ref={ref} isFocused={isFocused} role='link'>\n\t\t\t<elements.iconContainer>\n\t\t\t\t<Icon type='home2' />\n\t\t\t</elements.iconContainer>\n\t\t\t<VStack fluid={false}>\n\t\t\t\t<Text font={FONT_VARIANT.BODY}>{item.rendered}</Text>\n\t\t\t\t{item.value?.subtitle ? <Text font={FONT_VARIANT.SMALL_BODY}>{item.value?.subtitle}</Text> : null}\n\t\t\t</VStack>\n\t\t</elements.listItem>\n\t);\n}\n\nfunction NoListableReceptions(): JSX.Element {\n\treturn (\n\t\t// role=\"option\" is required for valid ARIA semantics since\n\t\t// we're inside a role=\"listbox\".\n\t\t<elements.listItem\n\t\t\trole='option'\n\t\t\taria-selected='false'\n\t\t\tclassName='noMouse'\n\t\t\taria-label={I18nAndL10n.translate('PW.Component.SearchReceptionCB.NoResult')}\n\t\t>\n\t\t\t<elements.iconContainer />\n\t\t\t<Text aria-hidden='true' font={FONT_VARIANT.BODY}>\n\t\t\t\t{withTranslation('PW.Component.SearchReceptionCB.NoResult')}\n\t\t\t</Text>\n\t\t</elements.listItem>\n\t);\n}\n","import {useState as $bc4N1$useState, useMemo as $bc4N1$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $0d86e9c8f07f9a7b$export$762f73dccccd255d(options) {\n let { initialItems: initialItems = [], initialSelectedKeys: initialSelectedKeys, getKey: getKey = (item)=>{\n var _item_id;\n return (_item_id = item.id) !== null && _item_id !== void 0 ? _item_id : item.key;\n }, filter: filter, initialFilterText: initialFilterText = '' } = options;\n // Store both items and filteredItems in state so we can go back to the unfiltered list\n let [state, setState] = (0, $bc4N1$useState)({\n items: initialItems,\n selectedKeys: initialSelectedKeys === 'all' ? 'all' : new Set(initialSelectedKeys || []),\n filterText: initialFilterText\n });\n let filteredItems = (0, $bc4N1$useMemo)(()=>filter ? state.items.filter((item)=>filter(item, state.filterText)) : state.items, [\n state.items,\n state.filterText,\n filter\n ]);\n return {\n ...state,\n items: filteredItems,\n ...$0d86e9c8f07f9a7b$export$79c0c687a5963b0a({\n getKey: getKey\n }, setState),\n getItem (key) {\n return state.items.find((item)=>getKey(item) === key);\n }\n };\n}\nfunction $0d86e9c8f07f9a7b$export$79c0c687a5963b0a(opts, dispatch) {\n let { cursor: cursor, getKey: getKey } = opts;\n return {\n setSelectedKeys (selectedKeys) {\n dispatch((state)=>({\n ...state,\n selectedKeys: selectedKeys\n }));\n },\n setFilterText (filterText) {\n dispatch((state)=>({\n ...state,\n filterText: filterText\n }));\n },\n insert (index, ...values) {\n dispatch((state)=>$0d86e9c8f07f9a7b$var$insert(state, index, ...values));\n },\n insertBefore (key, ...values) {\n dispatch((state)=>{\n let index = state.items.findIndex((item)=>getKey(item) === key);\n if (index === -1) {\n if (state.items.length === 0) index = 0;\n else return state;\n }\n return $0d86e9c8f07f9a7b$var$insert(state, index, ...values);\n });\n },\n insertAfter (key, ...values) {\n dispatch((state)=>{\n let index = state.items.findIndex((item)=>getKey(item) === key);\n if (index === -1) {\n if (state.items.length === 0) index = 0;\n else return state;\n }\n return $0d86e9c8f07f9a7b$var$insert(state, index + 1, ...values);\n });\n },\n prepend (...values) {\n dispatch((state)=>$0d86e9c8f07f9a7b$var$insert(state, 0, ...values));\n },\n append (...values) {\n dispatch((state)=>$0d86e9c8f07f9a7b$var$insert(state, state.items.length, ...values));\n },\n remove (...keys) {\n dispatch((state)=>{\n let keySet = new Set(keys);\n let items = state.items.filter((item)=>!keySet.has(getKey(item)));\n let selection = 'all';\n if (state.selectedKeys !== 'all') {\n selection = new Set(state.selectedKeys);\n for (let key of keys)selection.delete(key);\n }\n if (cursor == null && items.length === 0) selection = new Set();\n return {\n ...state,\n items: items,\n selectedKeys: selection\n };\n });\n },\n removeSelectedItems () {\n dispatch((state)=>{\n if (state.selectedKeys === 'all') return {\n ...state,\n items: [],\n selectedKeys: new Set()\n };\n let selectedKeys = state.selectedKeys;\n let items = state.items.filter((item)=>!selectedKeys.has(getKey(item)));\n return {\n ...state,\n items: items,\n selectedKeys: new Set()\n };\n });\n },\n move (key, toIndex) {\n dispatch((state)=>{\n let index = state.items.findIndex((item)=>getKey(item) === key);\n if (index === -1) return state;\n let copy = state.items.slice();\n let [item] = copy.splice(index, 1);\n copy.splice(toIndex, 0, item);\n return {\n ...state,\n items: copy\n };\n });\n },\n moveBefore (key, keys) {\n dispatch((state)=>{\n let toIndex = state.items.findIndex((item)=>getKey(item) === key);\n if (toIndex === -1) return state;\n // Find indices of keys to move. Sort them so that the order in the list is retained.\n let keyArray = Array.isArray(keys) ? keys : [\n ...keys\n ];\n let indices = keyArray.map((key)=>state.items.findIndex((item)=>getKey(item) === key)).sort((a, b)=>a - b);\n return $0d86e9c8f07f9a7b$var$move(state, indices, toIndex);\n });\n },\n moveAfter (key, keys) {\n dispatch((state)=>{\n let toIndex = state.items.findIndex((item)=>getKey(item) === key);\n if (toIndex === -1) return state;\n let keyArray = Array.isArray(keys) ? keys : [\n ...keys\n ];\n let indices = keyArray.map((key)=>state.items.findIndex((item)=>getKey(item) === key)).sort((a, b)=>a - b);\n return $0d86e9c8f07f9a7b$var$move(state, indices, toIndex + 1);\n });\n },\n update (key, newValue) {\n dispatch((state)=>{\n let index = state.items.findIndex((item)=>getKey(item) === key);\n if (index === -1) return state;\n return {\n ...state,\n items: [\n ...state.items.slice(0, index),\n newValue,\n ...state.items.slice(index + 1)\n ]\n };\n });\n }\n };\n}\nfunction $0d86e9c8f07f9a7b$var$insert(state, index, ...values) {\n return {\n ...state,\n items: [\n ...state.items.slice(0, index),\n ...values,\n ...state.items.slice(index)\n ]\n };\n}\nfunction $0d86e9c8f07f9a7b$var$move(state, indices, toIndex) {\n // Shift the target down by the number of items being moved from before the target\n toIndex -= indices.filter((index)=>index < toIndex).length;\n let moves = indices.map((from)=>({\n from: from,\n to: toIndex++\n }));\n // Shift later from indices down if they have a larger index\n for(let i = 0; i < moves.length; i++){\n let a = moves[i].from;\n for(let j = i; j < moves.length; j++){\n let b = moves[j].from;\n if (b > a) moves[j].from--;\n }\n }\n // Interleave the moves so they can be applied one by one rather than all at once\n for(let i = 0; i < moves.length; i++){\n let a = moves[i];\n for(let j = moves.length - 1; j > i; j--){\n let b = moves[j];\n if (b.from < a.to) a.to++;\n else b.from++;\n }\n }\n let copy = state.items.slice();\n for (let move of moves){\n let [item] = copy.splice(move.from, 1);\n copy.splice(move.to, 0, item);\n }\n return {\n ...state,\n items: copy\n };\n}\n\n\nexport {$0d86e9c8f07f9a7b$export$762f73dccccd255d as useListData, $0d86e9c8f07f9a7b$export$79c0c687a5963b0a as createListActions};\n","import {createListActions as $0d86e9c8f07f9a7b$export$79c0c687a5963b0a} from \"./useListData.mjs\";\nimport {useReducer as $fh1mr$useReducer, useRef as $fh1mr$useRef, useEffect as $fh1mr$useEffect} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $f86e6c1ec7da6ebb$var$reducer(data, action) {\n let selectedKeys;\n switch(data.state){\n case 'idle':\n case 'error':\n switch(action.type){\n case 'loading':\n case 'loadingMore':\n case 'sorting':\n case 'filtering':\n var _action_filterText, _action_sortDescriptor;\n return {\n ...data,\n filterText: (_action_filterText = action.filterText) !== null && _action_filterText !== void 0 ? _action_filterText : data.filterText,\n state: action.type,\n // Reset items to an empty list if loading, but not when sorting.\n items: action.type === 'loading' ? [] : data.items,\n sortDescriptor: (_action_sortDescriptor = action.sortDescriptor) !== null && _action_sortDescriptor !== void 0 ? _action_sortDescriptor : data.sortDescriptor,\n abortController: action.abortController\n };\n case 'update':\n return {\n ...data,\n ...action.updater(data)\n };\n case 'success':\n case 'error':\n return data;\n default:\n throw new Error(`Invalid action \"${action.type}\" in state \"${data.state}\"`);\n }\n case 'loading':\n case 'sorting':\n case 'filtering':\n switch(action.type){\n case 'success':\n // Ignore if there is a newer abortcontroller in state.\n // This means that multiple requests were going at once.\n // We want to take only the latest result.\n if (action.abortController !== data.abortController) return data;\n var _action_selectedKeys;\n selectedKeys = (_action_selectedKeys = action.selectedKeys) !== null && _action_selectedKeys !== void 0 ? _action_selectedKeys : data.selectedKeys;\n var _action_filterText1, _action_sortDescriptor1;\n return {\n ...data,\n filterText: (_action_filterText1 = action.filterText) !== null && _action_filterText1 !== void 0 ? _action_filterText1 : data.filterText,\n state: 'idle',\n items: [\n ...action.items\n ],\n selectedKeys: selectedKeys === 'all' ? 'all' : new Set(selectedKeys),\n sortDescriptor: (_action_sortDescriptor1 = action.sortDescriptor) !== null && _action_sortDescriptor1 !== void 0 ? _action_sortDescriptor1 : data.sortDescriptor,\n abortController: null,\n cursor: action.cursor\n };\n case 'error':\n if (action.abortController !== data.abortController) return data;\n return {\n ...data,\n state: 'error',\n error: action.error,\n abortController: null\n };\n case 'loading':\n case 'loadingMore':\n case 'sorting':\n case 'filtering':\n // We're already loading, and another load was triggered at the same time.\n // We need to abort the previous load and start a new one.\n data.abortController.abort();\n var _action_filterText2;\n return {\n ...data,\n filterText: (_action_filterText2 = action.filterText) !== null && _action_filterText2 !== void 0 ? _action_filterText2 : data.filterText,\n state: action.type,\n // Reset items to an empty list if loading, but not when sorting.\n items: action.type === 'loading' ? [] : data.items,\n abortController: action.abortController\n };\n case 'update':\n // We're already loading, and an update happened at the same time (e.g. selectedKey changed).\n // Update data but don't abort previous load.\n return {\n ...data,\n ...action.updater(data)\n };\n default:\n throw new Error(`Invalid action \"${action.type}\" in state \"${data.state}\"`);\n }\n case 'loadingMore':\n switch(action.type){\n case 'success':\n var _action_selectedKeys1;\n selectedKeys = data.selectedKeys === 'all' || action.selectedKeys === 'all' ? 'all' : new Set([\n ...data.selectedKeys,\n ...(_action_selectedKeys1 = action.selectedKeys) !== null && _action_selectedKeys1 !== void 0 ? _action_selectedKeys1 : []\n ]);\n var _action_sortDescriptor2;\n // Append the new items\n return {\n ...data,\n state: 'idle',\n items: [\n ...data.items,\n ...action.items\n ],\n selectedKeys: selectedKeys,\n sortDescriptor: (_action_sortDescriptor2 = action.sortDescriptor) !== null && _action_sortDescriptor2 !== void 0 ? _action_sortDescriptor2 : data.sortDescriptor,\n abortController: null,\n cursor: action.cursor\n };\n case 'error':\n if (action.abortController !== data.abortController) return data;\n return {\n ...data,\n state: 'error',\n error: action.error\n };\n case 'loading':\n case 'sorting':\n case 'filtering':\n // We're already loading more, and another load was triggered at the same time.\n // We need to abort the previous load more and start a new one.\n data.abortController.abort();\n var _action_filterText3;\n return {\n ...data,\n filterText: (_action_filterText3 = action.filterText) !== null && _action_filterText3 !== void 0 ? _action_filterText3 : data.filterText,\n state: action.type,\n // Reset items to an empty list if loading, but not when sorting.\n items: action.type === 'loading' ? [] : data.items,\n abortController: action.abortController\n };\n case 'loadingMore':\n // If already loading more and another loading more is triggered, abort the new load more since\n // it is a duplicate request since the cursor hasn't been updated.\n // Do not overwrite the data.abortController\n action.abortController.abort();\n return data;\n case 'update':\n // We're already loading, and an update happened at the same time (e.g. selectedKey changed).\n // Update data but don't abort previous load.\n return {\n ...data,\n ...action.updater(data)\n };\n default:\n throw new Error(`Invalid action \"${action.type}\" in state \"${data.state}\"`);\n }\n default:\n throw new Error(`Invalid state \"${data.state}\"`);\n }\n}\nfunction $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {\n const { load: load, sort: sort, initialSelectedKeys: initialSelectedKeys, initialSortDescriptor: initialSortDescriptor, getKey: getKey = (item)=>item.id || item.key, initialFilterText: initialFilterText = '' } = options;\n let [data, dispatch] = (0, $fh1mr$useReducer)($f86e6c1ec7da6ebb$var$reducer, {\n state: 'idle',\n error: null,\n items: [],\n selectedKeys: initialSelectedKeys === 'all' ? 'all' : new Set(initialSelectedKeys),\n sortDescriptor: initialSortDescriptor,\n filterText: initialFilterText\n });\n const dispatchFetch = async (action, fn)=>{\n let abortController = new AbortController();\n try {\n dispatch({\n ...action,\n abortController: abortController\n });\n var _action_filterText;\n let previousFilterText = (_action_filterText = action.filterText) !== null && _action_filterText !== void 0 ? _action_filterText : data.filterText;\n var _action_sortDescriptor;\n let response = await fn({\n items: data.items.slice(),\n selectedKeys: data.selectedKeys,\n sortDescriptor: (_action_sortDescriptor = action.sortDescriptor) !== null && _action_sortDescriptor !== void 0 ? _action_sortDescriptor : data.sortDescriptor,\n signal: abortController.signal,\n cursor: action.type === 'loadingMore' ? data.cursor : null,\n filterText: previousFilterText\n });\n var _response_filterText;\n let filterText = (_response_filterText = response.filterText) !== null && _response_filterText !== void 0 ? _response_filterText : previousFilterText;\n dispatch({\n type: 'success',\n ...response,\n abortController: abortController\n });\n // Fetch a new filtered list if filterText is updated via `load` response func rather than list.setFilterText\n // Only do this if not aborted (e.g. user triggers another filter action before load completes)\n if (filterText && filterText !== previousFilterText && !abortController.signal.aborted) dispatchFetch({\n type: 'filtering',\n filterText: filterText\n }, load);\n } catch (e) {\n dispatch({\n type: 'error',\n error: e,\n abortController: abortController\n });\n }\n };\n let didDispatchInitialFetch = (0, $fh1mr$useRef)(false);\n (0, $fh1mr$useEffect)(()=>{\n if (!didDispatchInitialFetch.current) {\n dispatchFetch({\n type: 'loading'\n }, load);\n didDispatchInitialFetch.current = true;\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n return {\n items: data.items,\n selectedKeys: data.selectedKeys,\n sortDescriptor: data.sortDescriptor,\n isLoading: data.state === 'loading' || data.state === 'loadingMore' || data.state === 'sorting' || data.state === 'filtering',\n loadingState: data.state,\n error: data.error,\n filterText: data.filterText,\n getItem (key) {\n return data.items.find((item)=>getKey(item) === key);\n },\n reload () {\n dispatchFetch({\n type: 'loading'\n }, load);\n },\n loadMore () {\n // Ignore if already loading more or if performing server side filtering.\n if (data.state === 'loadingMore' || data.state === 'filtering' || data.cursor == null) return;\n dispatchFetch({\n type: 'loadingMore'\n }, load);\n },\n sort (sortDescriptor) {\n dispatchFetch({\n type: 'sorting',\n sortDescriptor: sortDescriptor\n }, sort || load);\n },\n ...(0, $0d86e9c8f07f9a7b$export$79c0c687a5963b0a)({\n ...options,\n getKey: getKey,\n cursor: data.cursor\n }, (fn)=>{\n dispatch({\n type: 'update',\n updater: fn\n });\n }),\n setFilterText (filterText) {\n dispatchFetch({\n type: 'filtering',\n filterText: filterText\n }, load);\n }\n };\n}\n\n\nexport {$f86e6c1ec7da6ebb$export$bc3384a35de93d66 as useAsyncList};\n","import $6Fm0V$react from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $c1d7fb2ec91bae71$var$Item(props) {\n return null;\n}\n$c1d7fb2ec91bae71$var$Item.getCollectionNode = function* getCollectionNode(props, context) {\n let { childItems: childItems, title: title, children: children } = props;\n let rendered = props.title || props.children;\n let textValue = props.textValue || (typeof rendered === 'string' ? rendered : '') || props['aria-label'] || '';\n // suppressTextValueWarning is used in components like Tabs, which don't have type to select support.\n if (!textValue && !(context === null || context === void 0 ? void 0 : context.suppressTextValueWarning)) console.warn('<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.');\n yield {\n type: 'item',\n props: props,\n rendered: rendered,\n textValue: textValue,\n 'aria-label': props['aria-label'],\n hasChildNodes: $c1d7fb2ec91bae71$var$hasChildItems(props),\n *childNodes () {\n if (childItems) for (let child of childItems)yield {\n type: 'item',\n value: child\n };\n else if (title) {\n let items = [];\n (0, $6Fm0V$react).Children.forEach(children, (child)=>{\n items.push({\n type: 'item',\n element: child\n });\n });\n yield* items;\n }\n }\n };\n};\nfunction $c1d7fb2ec91bae71$var$hasChildItems(props) {\n if (props.hasChildItems != null) return props.hasChildItems;\n if (props.childItems) return true;\n if (props.title && (0, $6Fm0V$react).Children.count(props.children) > 0) return true;\n return false;\n}\n// We don't want getCollectionNode to show up in the type definition\nlet $c1d7fb2ec91bae71$export$6d08773d2e66f8f2 = $c1d7fb2ec91bae71$var$Item;\n\n\nexport {$c1d7fb2ec91bae71$export$6d08773d2e66f8f2 as Item};\n","import React, { useRef } from 'react';\nimport { useComboBoxState } from '@react-stately/combobox';\nimport { useComboBox } from '@react-aria/combobox';\nimport { useFilter } from '@react-aria/i18n';\nimport { Popover } from './_popover.component';\nimport { ListBox } from './_list_box.component';\nimport { useAsyncList } from '@react-stately/data';\nimport { Item } from '@react-stately/collections';\nimport styled from 'styled-components';\nimport { rem } from '@visiba/std';\nimport { BaseInput } from '@components/components_base/base_input.component';\nimport { AnimatePresence } from 'framer-motion';\nimport { Icon } from '@components/icon.component';\nimport { theme } from '@services/theme.service/theme';\nimport { Scoped, useService } from '@visiba-cortex/instantiation';\nimport { RouterService } from '@services/router.service';\nimport { BROWSE_KEY, SearchUnitNode } from './_common';\nimport { LicenceHolderService } from '@services/licence_holder.service';\nimport { getAbsoluteRoute } from '@helpers/route';\nimport { I18nAndL10n } from '@modules/i18n_and_l10n/mod';\nimport { LicenceHolderApiService } from '@src/api/licence_holder_api.service';\nimport { Http } from '@visiba-cortex/http';\nimport type { LoadingState } from '@react-types/shared';\nimport type { ComboBoxProps } from '@react-types/combobox';\nimport type { HttpCancelTokenSource } from '@visiba-cortex/http';\n\ninterface Props {\n\tplaceholder?: string;\n\tincludeBrowseInResult: boolean;\n\tonFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\tonOpenChange?: (isOpen: boolean) => void;\n\tonNodeSelected?: (node: SearchUnitNode) => void;\n}\n\ninterface Autocomplete<T> extends ComboBoxProps<T> {\n\tloadingState?: LoadingState;\n\tonLoadMore?: () => void;\n}\n\nconst elements = {\n\tlabel: styled.label`\n\t\tmargin-bottom: 10px;\n\t\tdisplay: block;\n\t`,\n\tcontainer: styled.div`\n\t\tposition: relative;\n\t\twidth: 100%;\n\t`,\n\ticonArea: styled.div`\n\t\tgrid-area: iconArea;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tfont-size: ${rem(20)};\n\t\tcolor: ${theme.primary};\n\t`,\n\tinputContainer: styled.div`\n\t\tdisplay: grid;\n\t\tgrid-column-gap: 0;\n\t\tgrid-row-gap: 0;\n\t\tgrid-template-areas: 'iconArea inputArea';\n\t\tgrid-template-columns: ${rem(40)} auto;\n\t\tborder: ${rem(1)} solid ${theme.primary};\n\t\twidth: 100%;\n\t\tborder-radius: 9999px;\n\t\tbackground: #ffffff;\n\t\tpadding-right: ${rem(15)};\n\t\tmin-height: ${rem(36)}px;\n\t\twidth: 100%;\n\t`,\n\tinputArea: styled(BaseInput)`\n\t\tcolor: #000;\n\t\tfont-style: normal;\n\t\tfont-weight: normal;\n\t\tline-height: ${rem(22)};\n\t\tgrid-area: inputArea;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\ttext-overflow: ellipsis;\n\t`,\n};\n\n// Reason: React-Aria is a bit bad in the type department. Not sure why they're\n// not allowing Record<K, V>. Can be due to enumerable logics but still...\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction Autocomplete(props: Autocomplete<SearchUnitNode>): JSX.Element {\n\tconst { contains } = useFilter({ sensitivity: 'base' });\n\tconst state = useComboBoxState<any>({\n\t\t...(props as any) /* Blame @emilnordling, we should use Cellula anyhow... */,\n\t\tdefaultFilter: contains,\n\t});\n\n\tconst inputRef = useRef(null);\n\tconst listBoxRef = useRef(null);\n\tconst popoverRef = useRef(null);\n\n\tconst { inputProps, listBoxProps } = useComboBox(\n\t\t{\n\t\t\t...props,\n\t\t\tinputRef,\n\t\t\tlistBoxRef,\n\t\t\tpopoverRef,\n\t\t} as any /* Blame @emilnordling, we should use Cellula anyhow... */,\n\t\tstate,\n\t);\n\n\treturn (\n\t\t<elements.container>\n\t\t\t<elements.inputContainer>\n\t\t\t\t<elements.iconArea>\n\t\t\t\t\t<Icon type='search' />\n\t\t\t\t</elements.iconArea>\n\t\t\t\t{/* Reason: Miss-match with React-Aria and Styled Components... */}\n\t\t\t\t{/* eslint-disable-next-line @typescript-eslint/no-explicit-any */}\n\t\t\t\t<elements.inputArea {...(inputProps as any)} ref={inputRef} placeholder={props.placeholder} />\n\t\t\t</elements.inputContainer>\n\n\t\t\t<AnimatePresence>\n\t\t\t\t{props.inputValue && props.inputValue.length >= 2 ? (\n\t\t\t\t\t<Popover popoverRef={popoverRef} isOpen={state.isOpen} onClose={state.close}>\n\t\t\t\t\t\t<ListBox\n\t\t\t\t\t\t\t{...listBoxProps}\n\t\t\t\t\t\t\tlistBoxRef={listBoxRef}\n\t\t\t\t\t\t\tstate={state as any}\n\t\t\t\t\t\t\tloadingState={props.loadingState}\n\t\t\t\t\t\t\tonLoadMore={props.onLoadMore}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Popover>\n\t\t\t\t) : null}\n\t\t\t</AnimatePresence>\n\t\t</elements.container>\n\t);\n}\n\nexport function SearchReceptionComboBox({ placeholder, includeBrowseInResult, onFocus, onNodeSelected }: Props): JSX.Element {\n\tconst routerService = useService(RouterService);\n\tconst licenceHolderService = useService(LicenceHolderService);\n\tconst controller = useService(SearchReceptionController);\n\n\tconst list = useAsyncList<SearchUnitNode>({\n\t\tasync load({ filterText }) {\n\t\t\treturn await controller.search(filterText ?? '', includeBrowseInResult);\n\t\t},\n\t});\n\n\tfunction handleChange(key: React.Key | null): void {\n\t\tfunction __TEMP__navigation(to: string): void {\n\t\t\tif (window.__TEMP__overrideNavigation) {\n\t\t\t\twindow.__TEMP__overrideNavigation(to);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\trouterService.navigateByUrl(to);\n\t\t}\n\n\t\tif (key == null) return;\n\t\tconst node = list.items.find((item) => item.name === key);\n\t\tif (node == null) return;\n\n\t\tif (onNodeSelected != null) {\n\t\t\tonNodeSelected(node);\n\t\t}\n\n\t\tconst route = node.id === BROWSE_KEY ? `${licenceHolderService.alias}/change-unit` : node.path;\n\n\t\t__TEMP__navigation(getAbsoluteRoute(route));\n\t}\n\n\treturn (\n\t\t<Autocomplete\n\t\t\tplaceholder={placeholder ?? I18nAndL10n.translate('Patient.DefaultHomeGuiComponents.Search')}\n\t\t\titems={list.items}\n\t\t\tinputValue={list.filterText}\n\t\t\tonInputChange={list.setFilterText}\n\t\t\tonSelectionChange={handleChange}\n\t\t\tloadingState={list.loadingState}\n\t\t\tonLoadMore={list.loadMore}\n\t\t\tonFocus={onFocus}\n\t\t>\n\t\t\t{(item) => <Item key={item.name}>{item.name}</Item>}\n\t\t</Autocomplete>\n\t);\n}\n\n@Scoped()\nclass SearchReceptionController {\n\tprivate prevRequest: HttpCancelTokenSource | null = null;\n\n\tconstructor(\n\t\tprivate readonly licenceHolderService: LicenceHolderService,\n\t\tprivate readonly licenceHolderApiService: LicenceHolderApiService,\n\t) {\n\t\t// Empty\n\t}\n\n\tpublic async search(text: string, includeBrowseInResult: boolean): Promise<{ items: SearchUnitNode[] }> {\n\t\tif (text.length < 2) {\n\t\t\treturn {\n\t\t\t\titems: [],\n\t\t\t};\n\t\t}\n\n\t\tif (this.prevRequest != null) this.prevRequest.cancel();\n\t\tthis.prevRequest = Http.createCancelTokenSource();\n\n\t\tconst { data } = await this.licenceHolderApiService.search(this.licenceHolderService.id, text, this.prevRequest);\n\n\t\tthis.prevRequest = null;\n\n\t\tlet items: SearchUnitNode[] = data.map((item) => ({\n\t\t\tid: item.Path,\n\t\t\tname: item.Name,\n\t\t\tpath: item.Path,\n\t\t\tsubtitle: item.Subtitle,\n\t\t}));\n\n\t\tif (includeBrowseInResult) {\n\t\t\titems = [\n\t\t\t\t...items,\n\t\t\t\t{\n\t\t\t\t\tid: BROWSE_KEY,\n\t\t\t\t\tname: I18nAndL10n.translate('Patient.DefaultHomeGuiComponents.Browse'),\n\t\t\t\t\tpath: '',\n\t\t\t\t\tsubtitle: null,\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\n\t\treturn {\n\t\t\titems,\n\t\t};\n\t}\n}\n","import {useCollator as $325a3faab7a68acd$export$a16aca283550c30d} from \"./useCollator.mjs\";\nimport {useCallback as $21ck9$useCallback, useMemo as $21ck9$useMemo} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $bb77f239b46e8c72$export$3274cf84b703fff(options) {\n let collator = (0, $325a3faab7a68acd$export$a16aca283550c30d)({\n usage: 'search',\n ...options\n });\n // TODO(later): these methods don't currently support the ignorePunctuation option.\n let startsWith = (0, $21ck9$useCallback)((string, substring)=>{\n if (substring.length === 0) return true;\n // Normalize both strings so we can slice safely\n // TODO: take into account the ignorePunctuation option as well...\n string = string.normalize('NFC');\n substring = substring.normalize('NFC');\n return collator.compare(string.slice(0, substring.length), substring) === 0;\n }, [\n collator\n ]);\n let endsWith = (0, $21ck9$useCallback)((string, substring)=>{\n if (substring.length === 0) return true;\n string = string.normalize('NFC');\n substring = substring.normalize('NFC');\n return collator.compare(string.slice(-substring.length), substring) === 0;\n }, [\n collator\n ]);\n let contains = (0, $21ck9$useCallback)((string, substring)=>{\n if (substring.length === 0) return true;\n string = string.normalize('NFC');\n substring = substring.normalize('NFC');\n let scan = 0;\n let sliceLen = substring.length;\n for(; scan + sliceLen <= string.length; scan++){\n let slice = string.slice(scan, scan + sliceLen);\n if (collator.compare(substring, slice) === 0) return true;\n }\n return false;\n }, [\n collator\n ]);\n return (0, $21ck9$useMemo)(()=>({\n startsWith: startsWith,\n endsWith: endsWith,\n contains: contains\n }), [\n startsWith,\n endsWith,\n contains\n ]);\n}\n\n\nexport {$bb77f239b46e8c72$export$3274cf84b703fff as useFilter};\n","import styled, { keyframes } from 'styled-components';\nimport React from 'react';\n\nexport type Props = {\n\twidth: number;\n\theight: number;\n\tcornerRadius?: number;\n\topacity?: number;\n\tclassName?: string;\n};\n\ninterface InternalProps {\n\twidthInternal: number;\n\theightInternal: number;\n\topacityInternal: number;\n\tcornerRadius: number;\n}\n\nconst animation = keyframes`\n\t0% {\n\t\tbackground-position: top right;\n\t}\n\t100% {\n\t\tbackground-position: top left;\n\t}\n`;\n\nconst elements = {\n\tshimmer: styled.div<InternalProps>`\n\t\tdisplay: inline-block;\n\t\twidth: ${({ widthInternal }) => widthInternal}px;\n\t\theight: ${({ heightInternal }) => heightInternal}px;\n\t\topacity: ${({ opacityInternal }) => opacityInternal};\n\n\t\t.shimmer {\n\t\t\tborder-radius: ${({ cornerRadius }) => cornerRadius}px;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tbackground-image: linear-gradient(-80deg, rgba(57, 57, 57, 0.2) 8%, rgba(0, 0, 0, 0.1) 18%, rgba(57, 57, 57, 0.2) 33%);\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: 0 0;\n\t\t\tbackground-size: ${({ heightInternal, widthInternal }) => `${widthInternal * 10}px ${heightInternal}px`};\n\t\t\tanimation-duration: 2s;\n\t\t\tanimation-fill-mode: forwards;\n\t\t\tanimation-iteration-count: infinite;\n\t\t\tanimation-name: ${animation};\n\t\t\tanimation-timing-function: ease-in-out;\n\t\t\tdisplay: flex;\n\t\t}\n\t`,\n};\n\n// TODO: Move this to cortex\n\n/**\n * # cortex:react-ui-std:comp:HeadlessPopover\n * Renders a \"skeleton loading\" body\n */\nexport function Shimmer({ className, width, height, opacity = 1, cornerRadius = 0 }: Props): JSX.Element {\n\treturn (\n\t\t<elements.shimmer\n\t\t\tclassName={className}\n\t\t\twidthInternal={width}\n\t\t\theightInternal={height}\n\t\t\tcornerRadius={cornerRadius}\n\t\t\topacityInternal={opacity}\n\t\t>\n\t\t\t<div className='shimmer'></div>\n\t\t</elements.shimmer>\n\t);\n}\n","import styled, { keyframes } from 'styled-components';\n\nexport interface Props {}\n\nconst dash = keyframes`\n\t0% {\n\t\tstroke-dasharray: 1, 786;\n\t\tstroke-dashoffset: 0;\n\t}\n\n\t50% {\n\t\tstroke-dasharray: 700, 786;\n\t\tstroke-dashoffset: -0;\n\t}\n\n\t100% {\n\t\tstroke-dasharray: 700, 786;\n\t\tstroke-dashoffset: -736;\n\t}\n`;\n\nconst rotate = keyframes`\n\t100% {\n\t\ttransform: rotate(360deg);\n\t}\n`;\n\nconst elements = {\n\tloader: styled.div`\n\t\tdisplay: flex;\n\t\tfont-size: 2em;\n\n\t\tsvg {\n\t\t\tanimation: ${rotate} 2s linear infinite;\n\t\t}\n\n\t\tsvg circle {\n\t\t\tstroke-linecap: round;\n\t\t\tanimation: ${dash} 3.5s ease-in-out infinite;\n\t\t}\n\t`,\n\tsvg: styled.svg`\n\t\tdisplay: inline-block;\n\t\twidth: 1em;\n\t\theight: 1em;\n\t\tfont-size: inherit;\n\t\tvertical-align: text-top;\n\t\tfill: currentColor;\n\t\tstroke: currentColor;\n\t\tpointer-events: none;\n\t`,\n};\n\nexport function Spinner(): JSX.Element {\n\treturn (\n\t\t<elements.loader data-testid='loading-spinner'>\n\t\t\t<elements.svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'>\n\t\t\t\t<circle cx='128' cy='128' r='118' fill='none' strokeWidth='7%'></circle>\n\t\t\t</elements.svg>\n\t\t</elements.loader>\n\t);\n}\n","import { rem } from '@visiba/std';\nimport { forwardRef, Ref } from 'react';\nimport styled from 'styled-components';\nimport { BaseButton, VisibaCortexBaseButtonProps } from './components_base/base_button.component';\nimport { Icon, IconType } from './icon.component';\n\ninterface Props extends Omit<VisibaCortexBaseButtonProps, 'children'> {\n\tsize?: DesignSystemSourceSizes;\n\ticon: IconType;\n}\n\nfunction sizeMultiplier(size: DesignSystemSourceSizes): number {\n\tswitch (size) {\n\t\tcase 'small':\n\t\t\treturn 1;\n\t\tcase 'medium':\n\t\t\treturn 1.333333333333333;\n\t\tcase 'large':\n\t\t\treturn 1.666666666666667;\n\t\tdefault:\n\t\t\treturn 1;\n\t}\n}\n\nconst elements = {\n\tcontainer: styled(BaseButton)<{ size: DesignSystemSourceSizes }>`\n\t\twidth: ${({ size }) => rem(24 * sizeMultiplier(size))};\n\t\theight: ${({ size }) => rem(24 * sizeMultiplier(size))};\n\t\tborder-radius: ${({ size }) => rem(6 * sizeMultiplier(size))};\n\t\tfont-size: ${({ size }) => rem(16 * sizeMultiplier(size))};\n\t\tcolor: #3a3e47;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\ttransition: background-color 250ms ease;\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbackground-color: color(srgb 0.3011 0.3208 0.365);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground-color: color(srgb 0.3011 0.3208 0.365);\n\t\t}\n\n\t\t&.is-disabled {\n\t\t\tcursor: default;\n\t\t\tcolor: #afb7c8;\n\t\t}\n\t`,\n};\n\nfunction SquareButton({ icon, size = 'small', ...rest }: Props, ref: Ref<HTMLButtonElement>): JSX.Element {\n\treturn (\n\t\t<elements.container {...rest} size={size} ref={ref}>\n\t\t\t<Icon type={icon} />\n\t\t</elements.container>\n\t);\n}\n\nconst _SquareButton = forwardRef(SquareButton);\nexport { _SquareButton as SquareButton };\n","// Reason: While this prohibition remains valid for most cases,\n// ConcurrentPresentation is using it internally so we need the type to\n// match.\n/* eslint-disable @typescript-eslint/ban-types */\nimport { Fragment, ReactNode, Suspense } from 'react';\nimport { ConcurrentPresentation, usePresentation } from '@visiba-cortex/presentation';\n\ninterface ClassWithPresentation<T extends object> {\n\tpresentation: ConcurrentPresentation<T>;\n}\n\ninterface Props<T extends object> {\n\tfallback: JSX.Element;\n\tcontroller: ClassWithPresentation<T>;\n\tchildren: ((props: T) => ReactNode) | ReactNode;\n}\n\nfunction PresentationReader<T extends object>(props: Props<T>): JSX.Element {\n\tconst data = usePresentation(props.controller.presentation);\n\n\treturn <Fragment>{typeof props.children === 'function' ? props.children(data) : props.children}</Fragment>;\n}\n\nexport function SuspendedPresentation<T extends object>(props: Props<T>): JSX.Element {\n\treturn (\n\t\t<Suspense fallback={props.fallback}>\n\t\t\t<PresentationReader {...props} />\n\t\t</Suspense>\n\t);\n}\n","// Reason: Angular Inject issues...\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { MouseEvent } from 'react';\nimport { Link, LinkProps } from 'react-router-dom';\n\ninterface Props extends LinkProps {\n\tto: string;\n\tisCurrentPage?: boolean;\n\tclassName?: string;\n\t__TEMP__navigate?(url: string): void;\n\t__TEMP__to: string;\n}\n\n// const elements = {};\n\nexport function VisibaLink({\n\tto,\n\t__TEMP__to,\n\t__TEMP__navigate,\n\tclassName,\n\tchildren,\n\tonClick,\n\tisCurrentPage,\n\t...rest\n}: Props): JSX.Element {\n\tfunction handleClick(event: MouseEvent<HTMLAnchorElement>): void {\n\t\tif (onClick) {\n\t\t\tonClick(event);\n\t\t}\n\n\t\tif (__TEMP__navigate) {\n\t\t\tevent.preventDefault();\n\n\t\t\t__TEMP__navigate(__TEMP__to);\n\n\t\t\treturn;\n\t\t}\n\t}\n\n\t// For Injection purposes...\n\tif (window.__TEMP__) {\n\t\treturn (\n\t\t\t<a\n\t\t\t\thref={__TEMP__to}\n\t\t\t\tonClick={handleClick}\n\t\t\t\tclassName={className}\n\t\t\t\taria-current={isCurrentPage ? 'page' : undefined}\n\t\t\t\t{\n\t\t\t\t\t...(rest as any) /* TODO: REMOVE INJECTION ISSUES */\n\t\t\t\t}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</a>\n\t\t);\n\t}\n\n\treturn (\n\t\t<Link to={to} onClick={onClick} className={className} aria-current={isCurrentPage ? 'page' : undefined} {...rest}>\n\t\t\t{children}\n\t\t</Link>\n\t);\n}\n","export const IS_MOBILE =\n\t!!/mobile|iphone|ipod|android|blackberry|opera|mini|windows\\sce|palm|smartphone|iemobile|ipad|android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(\n\t\tnavigator.userAgent,\n\t);\n\n// Specific constant for iOS devices\n// http://racase.com.np/javascript-how-to-detect-if-device-is-ios/\n// Reason: We're keeping the MSStream check until further notice.\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const IS_IOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !(window as { MSStream?: any }).MSStream;\n\n// To find url in string\nexport const HTTP_FILE_PATTERN = /(\\b((https?|ftp|file):\\/\\/)[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|]*)/i;\n\nexport const WWW_PATTERN = /(^|[^/])(www.[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|]+(\\b|$))/i;\n\nexport const MAILTO_PATTERN = /\\bmailto:(.*)(\\?.*)?\\b/;\n\nexport const PUBLIC_SUB_URL_PATH = 'v';\n\n// To keep all standard shadows the same\nexport const STANDARD_BOX_SHADOW = '0 1px 4px rgb(0 0 0 / 5%)';\n\nexport enum SPACE_SIZE {\n\tXS = 'var(--vc--space--xs)',\n\tS = 'var(--vc--space--s)',\n\tM = 'var(--vc--space--m)',\n\tL = 'var(--vc--space--l)',\n\tXL = 'var(--vc--space--xl)',\n}\n\nexport enum FONT_VARIANT {\n\tLARGE_TITLE = 'var(--vc--font--large-title)',\n\tTITLE = 'var(--vc--font--title)',\n\tSMALL_TITLE = 'var(--vc--font--small-title)',\n\tSMALL_TITLE_BOLD = 'var(--vc--font--small-title--bold)',\n\tBODY = 'var(--vc--font--body)',\n\tLARGE_BODY = 'var(--vc--font--large-body)',\n\tSMALL_BODY = 'var(--vc--font--small-body)',\n\tBODY_BOLD = 'var(--vc--font--body--bold)',\n}\n\n// Arbitrary value to not overwhelm the user with visual feedback (a lot of animations is happening)\nexport const SHEET_CLOSE_INTO_NOTIFICATION_WAIT = 350;\n\nexport const ASSET_IMAGE_PATH = '/assets/images';\n\n// The PW translation set, the one and only!\nexport const TRANSLATION_SET = 'PatientWeb' as const;\n","import { withTranslation as withTranslation_REMOVE_THIS_IMPORT_IN_SPRINT_77 } from '@application/i18n/with_translation';\n\nexport const withTranslation = withTranslation_REMOVE_THIS_IMPORT_IN_SPRINT_77;\n","import { isVisibaIOSApp, getCookie } from '@visiba/std';\n\n// Source: https://github.com/atomantic/is-ua-webview/blob/9b9e8fa0abaaec892752ffe4229431293df3c388/data/rules.js\nconst navigatorRules = [\n\t// if it says it's a webview, let's go with that\n\t'WebView',\n\t// iOS webview will be the same as safari but missing \"Safari\"\n\t'(iPhone|iPod|iPad)(?!.*Safari)',\n\t// Android Lollipop and Above: webview will be the same as native but it will contain \"wv\"\n\t// Android KitKat to Lollipop webview will put Version/X.X Chrome/{version}.0.0.0\n\t'Android.*(;\\\\s+wv|Version/\\\\d.\\\\d\\\\s+Chrome/\\\\d+(\\\\.0){3})',\n\t// old chrome android webview agent\n\t'Linux; U; Android',\n] as const;\nconst webviewRegExp = new RegExp('(' + navigatorRules.join('|') + ')', 'i');\n\nexport function isWithinVisibaWebView(): boolean {\n\tif (isVisibaIOSApp()) return true;\n\tif (isVisibaAndroidApp()) return true;\n\t// Source: https://github.com/atomantic/is-ua-webview/blob/9b9e8fa0abaaec892752ffe4229431293df3c388/index.js\n\tif (navigator.userAgent.match(webviewRegExp)) return true;\n\n\treturn false;\n}\n\n// todo: Move to Cortex.s\nfunction isVisibaAndroidApp(): boolean {\n\ttry {\n\t\tconst cookie = getCookie('VisibaAndroidApp');\n\n\t\treturn !!cookie;\n\t} catch {\n\t\treturn false;\n\t}\n}\n","// SHOULD USE AUTO GENERATED API MODEL.\n\nexport enum BackendLogLevel {\n\tError = 'Error',\n\tDebug = 'Debug',\n\tInfo = 'Info',\n}\n","import { LogEntry } from '@src/api/models/LogEntry';\nimport { BackendLogLevel } from '@src/api/models/BackEndLogEnum';\n\nexport namespace Outgoing {\n\texport interface SendObjectData {\n\t\tdata: Record<string, any>;\n\t\ttags: string[];\n\t\tstackTrace: string;\n\t\timmediately?: boolean;\n\t}\n\n\tinterface SendObjectMeta {\n\t\ttext: string;\n\t\tlogLevel: BackendLogLevel;\n\t\ttimeStamp: string;\n\t}\n\n\t// todo: enable this later :>\n\t// const myDeviceId = v4();\n\n\tconst outgoingEntries: LogEntry[] = [];\n\n\t// TODO timer repeat\n\n\t/**\n\t * @description\n\t * Adds a data chunk to an entry collection. These are then sent\n\t * to SEQ by a recurring task, or immediately if told / is error.\n\t *\n\t * @param sendData data to be sent.\n\t */\n\texport function addEntry({\n\t\tdata,\n\t\tlogLevel,\n\t\tstackTrace,\n\t\ttags,\n\t\ttext,\n\t\ttimeStamp,\n\t\timmediately = false,\n\t}: SendObjectMeta & SendObjectData): void {\n\t\tconst entry: LogEntry = {\n\t\t\tData: data,\n\t\t\tTimestamp: timeStamp,\n\t\t\tTags: tags,\n\t\t\tText: `[Public v4.0.0] ${text}`,\n\t\t\tStackTrace: stackTrace,\n\t\t\tLogLevel: logLevel,\n\t\t};\n\n\t\tif (immediately || logLevel === BackendLogLevel.Error) {\n\t\t\tsendBatch([entry]);\n\t\t} else {\n\t\t\toutgoingEntries.push(entry);\n\t\t}\n\t}\n\n\tfunction sendBatch(_batch: LogEntry[]): void {\n\t\t// const body = {\n\t\t// \tDeviceId: myDeviceId,\n\t\t// \tApiSessionToken: null,\n\t\t// \tDeviceInfo: {\n\t\t// \t\tAppBuild: null,\n\t\t// \t\tAppVersion: null,\n\t\t// \t\tBrowser: platform.name,\n\t\t// \t\tBrowserVersion: platform.version,\n\t\t// \t\tAppName: null,\n\t\t// \t\tDeviceName: null,\n\t\t// \t\tOs: platform.os ? platform.os.family : null,\n\t\t// \t\tOsVersion: platform.os ? platform.os.version : null,\n\t\t// \t\tPlatform: 'JavaScript',\n\t\t// \t},\n\t\t// \tEntries: batch,\n\t\t// };\n\t\t// Not using the HttpClient to avoid circular imports\n\t\t// Ignores the request for RR pilot\n\t\t// Axios.post(`${Environment.loadProperty('apiRoot')}/api/General/DeviceLog`, JSON.stringify(body), httpOptions.requestConfig);\n\t}\n}\n","import dayjs from 'dayjs';\nimport { Outgoing } from './outgoing';\nimport { devLocalStorage } from '../../application/dev_local_storage';\nimport { BackendLogLevel } from '@src/api/models/BackEndLogEnum';\n\nexport namespace Logger {\n\tinterface State {\n\t\tlevel: number;\n\t\tbitWise: number;\n\t\tstoreValues: boolean;\n\t}\n\n\t// prettier-ignore\n\texport enum Level {\n\t\terror = 1 << 0,\n\t\twarn = 1 << 1,\n\t\tinfo = 1 << 2,\n\t\tdebug = 1 << 3,\n\t\tverbose = 1 << 4,\n\t\tnone = 0 << 0,\n\t}\n\n\t/**\n\t * @description\n\t * Logger's internal state.\n\t */\n\texport const state: State = initializeConfig();\n\n\t/**\n\t * @description\n\t * Array with all printed logs.\n\t */\n\texport const storedLogs: string[] = [];\n\n\t/**\n\t * @description\n\t * Updates current binary representation. The representations are:\n\t * - `1 = error` -> shows only errors\n\t * - `2 = warn` -> shows warnings and all of above.\n\t * - `4 = info` -> shows info and all of above.\n\t * - `8 = debug` -> shows debug and all of above.\n\t * - `16 = verbose` -> shows all.\n\t * - `0 = none` -> no logs are printed.\n\t *\n\t * @param level Binary representation.\n\t */\n\texport function setLogLevel(level: Level): void {\n\t\tconst bitWise = getBitwise(level);\n\n\t\tif (bitWise !== 0 || level === 0) {\n\t\t\tstate.level = level;\n\t\t\tstate.bitWise = bitWise;\n\t\t}\n\t}\n\n\t/**\n\t * @description\n\t * Prints a log to the console, same log could also be sent to SEQ.\n\t *\n\t * @param level Visible at this flag's level.\n\t * @param message Printed text.\n\t * @param send Will send to SEQ if passed.\n\t */\n\texport function assert(level: Level, message: string, send: Outgoing.SendObjectData | null = null): void {\n\t\tconst timeStamp = new Date().toISOString();\n\t\tconst str = `[${enumToString(level)} - ${dayjs(timeStamp).format('HH:mm:ss:SSS')}] ${message}`;\n\n\t\tif (storedLogs.length >= 10000) {\n\t\t\tprint('output exceeds max entries', Level.warn);\n\t\t} else {\n\t\t\tif (state.storeValues) {\n\t\t\t\tstoredLogs.push(str);\n\t\t\t}\n\n\t\t\tif ((level & state.bitWise) === level) {\n\t\t\t\tprint(str, level);\n\t\t\t}\n\t\t}\n\n\t\tif (send !== null) {\n\t\t\tfunction clientEnumToBackendEnum(): BackendLogLevel {\n\t\t\t\tif (level === Level.error) {\n\t\t\t\t\treturn BackendLogLevel.Error;\n\t\t\t\t}\n\n\t\t\t\tif (level === Level.debug) {\n\t\t\t\t\treturn BackendLogLevel.Debug;\n\t\t\t\t}\n\n\t\t\t\treturn BackendLogLevel.Info;\n\t\t\t}\n\n\t\t\tOutgoing.addEntry({\n\t\t\t\t...send,\n\t\t\t\ttimeStamp,\n\t\t\t\ttext: message,\n\t\t\t\tlogLevel: clientEnumToBackendEnum(),\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * @description\n\t * Print a styled message to the console.\n\t *\n\t * @param str Printed string\n\t * @param level Uses different console methods depending on level.\n\t */\n\texport function print(str: string, level?: Level): void {\n\t\tconst stringModified = `%c${str}`;\n\t\tconst css = `\n\t\t\tcolor: #bfbfbf;\n\t\t\tfont-size: 12px;\n\t\t\tmargin: 2px 0;\n\t\t`;\n\n\t\tif (level === Level.error) {\n\t\t\tconsole.error(stringModified, css);\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (level === Level.warn) {\n\t\t\tconsole.warn(stringModified, css);\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (level === Level.info) {\n\t\t\tconsole.info(stringModified, css);\n\n\t\t\treturn;\n\t\t}\n\n\t\tconsole.log(stringModified, css);\n\t}\n\n\tfunction enumToString(level: Level): string {\n\t\t// Trailing spaces to aline text in console\n\t\tif ((level & Level.error) === Level.error) return 'error ';\n\t\tif ((level & Level.warn) === Level.warn) return 'warn ';\n\t\tif ((level & Level.debug) === Level.debug) return 'debug ';\n\t\tif ((level & Level.info) === Level.info) return 'info ';\n\t\tif ((level & Level.verbose) === Level.verbose) return 'verbose';\n\t\tif ((level & Level.none) === Level.none) return 'none ';\n\n\t\treturn '';\n\t}\n\n\tfunction getBitwise(level: Level): number {\n\t\tlet bitWise;\n\n\t\tswitch (level) {\n\t\t\tcase Level.error:\n\t\t\t\tbitWise = Level.error;\n\t\t\t\tbreak;\n\t\t\tcase Level.warn:\n\t\t\t\tbitWise = Level.warn | Level.error;\n\t\t\t\tbreak;\n\t\t\tcase Level.info:\n\t\t\t\tbitWise = Level.info | Level.warn | Level.error;\n\t\t\t\tbreak;\n\t\t\tcase Level.debug:\n\t\t\t\tbitWise = Level.debug | Level.info | Level.warn | Level.error;\n\t\t\t\tbreak;\n\t\t\tcase Level.verbose:\n\t\t\t\tbitWise = Level.verbose | Level.debug | Level.info | Level.warn | Level.error;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbitWise = 0;\n\t\t}\n\n\t\treturn bitWise;\n\t}\n\n\tfunction initializeConfig(): State {\n\t\tconst debugConfig = devLocalStorage.get<any>('config');\n\n\t\tif (!debugConfig) {\n\t\t\tconst level = process.env.NODE_ENV === 'development' ? Level.verbose : Level.none;\n\n\t\t\treturn {\n\t\t\t\tlevel,\n\t\t\t\tbitWise: getBitwise(level),\n\t\t\t\tstoreValues: true,\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\tlevel: debugConfig.log.level,\n\t\t\tbitWise: getBitwise(debugConfig.log.level),\n\t\t\tstoreValues: true,\n\t\t};\n\t}\n}\n","/* eslint-disable @typescript-eslint/ban-ts-comment */\nimport { ArgumentError } from '@visiba/std';\n\ntype Disposer = () => void;\n\nenum FlowState {\n\tACCESSIBLE,\n\tUNSET,\n\tPENDING,\n\tERROR,\n}\n\ntype CurrStateFn<T> = (currState: T) => T;\n\ntype DispatchedTulip<T> = [Readonly<T>, FlowState];\n\ninterface IState<T> {\n\tflowState: FlowState;\n\tinFlow(action: FlowState): void;\n\tsubscribe(event: () => void): Disposer;\n\treduce(state: T, action: FlowState): void;\n\tmutate(fn: CurrStateFn<T>): void;\n\tread(): DispatchedTulip<T>;\n}\n\nlet ids = 0;\n\nexport class State<T> implements IState<T> {\n\tpublic flowState = FlowState.UNSET;\n\tprivate hooks: Map<string, () => void> = new Map();\n\n\tconstructor(\n\t\tprivate data: T,\n\t\tdesignatedFlowState?: FlowState,\n\t) {\n\t\tif (typeof data === 'object') {\n\t\t\t// @ts-ignore\n\t\t\tthis.emptyState = {};\n\t\t} else {\n\t\t\tthrow new ArgumentError('a state can only be represented as an object literal');\n\t\t}\n\n\t\tif (designatedFlowState !== undefined) this.flowState = designatedFlowState;\n\t}\n\n\tpublic read(): DispatchedTulip<T> {\n\t\t// The following is purposely being ignored by TypeScript, when the state is\n\t\t// not accessible we want to prevent any reading from.\n\n\t\tswitch (this.flowState) {\n\t\t\tcase FlowState.PENDING:\n\t\t\t\t// @ts-ignore\n\t\t\t\treturn [undefined, FlowState.PENDING];\n\t\t\tcase FlowState.UNSET:\n\t\t\t\t// @ts-ignore\n\t\t\t\treturn [undefined, FlowState.UNSET];\n\t\t\tcase FlowState.ERROR:\n\t\t\t\treturn [this.data, FlowState.ERROR];\n\t\t\tdefault:\n\t\t\t\treturn [this.data, FlowState.ACCESSIBLE];\n\t\t}\n\t}\n\n\tpublic unsafeRead(): T {\n\t\treturn this.data;\n\t}\n\n\tpublic inFlow(changeFlowTo: FlowState): void {\n\t\tthis.flowState = changeFlowTo;\n\n\t\tthis.dispatch();\n\t}\n\n\tpublic mutate(currState: CurrStateFn<T>, changeFlowTo?: FlowState | null): void {\n\t\ttry {\n\t\t\tconst newState = currState(this.data);\n\n\t\t\tthis.data = newState;\n\t\t\tif (changeFlowTo !== null) this.flowState = changeFlowTo || FlowState.ACCESSIBLE;\n\n\t\t\tthis.dispatch();\n\t\t} catch (error) {\n\t\t\tconsole.error('could not mutate the state');\n\t\t}\n\t}\n\n\tpublic reduce(_: T, action: FlowState): void {\n\t\tswitch (action) {\n\t\t\tcase FlowState.ACCESSIBLE:\n\t\t\t\tbreak;\n\t\t\tcase FlowState.PENDING:\n\t\t\t\tbreak;\n\t\t\tcase FlowState.ERROR:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new ArgumentError('noop action type');\n\t\t}\n\t}\n\n\tpublic subscribe(event: () => void): Disposer {\n\t\tconst id = `hook_id_${++ids}`;\n\t\tthis.hooks.set(id, event);\n\n\t\treturn () => {\n\t\t\tthis.hooks.delete(id);\n\t\t};\n\t}\n\n\tprivate dispatch(): void {\n\t\tthis.hooks.forEach((hook) => hook());\n\t}\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction newApplicationState<T extends object>(state: T, designatedFlowState?: FlowState): State<T> {\n\treturn new State(state, designatedFlowState);\n}\n\nexport { newApplicationState, IState, FlowState, Disposer, DispatchedTulip };\n","import { IState, DispatchedTulip } from './state';\nimport { useEffect, useState } from 'react';\n\nexport function useApplicationState<T>(state: IState<T>): DispatchedTulip<T> {\n\tconst [, forceUpdate] = useState([]);\n\n\tuseEffect(() => {\n\t\treturn state.subscribe(() => {\n\t\t\tforceUpdate([]);\n\t\t});\n\t}, []);\n\n\treturn state.read();\n}\n","import { useLayoutEffect, useRef } from 'react';\n\nexport function useCombinedRefs<T>(...refs: readonly React.Ref<T>[]): React.MutableRefObject<T | null> {\n\tconst targetRef = useRef<T>(null);\n\n\tuseLayoutEffect(() => {\n\t\trefs.forEach((ref) => {\n\t\t\tif (!ref) return;\n\n\t\t\tif (typeof ref === 'function') {\n\t\t\t\tref(targetRef.current ?? null);\n\t\t\t} else {\n\t\t\t\t// @ts-expect-error: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31065\n\t\t\t\tref.current = targetRef.current;\n\t\t\t}\n\t\t});\n\t}, [refs]);\n\n\treturn targetRef;\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { newApplicationState, FlowState, IState } from '@modules/state/state';\nimport shortid from 'shortid';\n\nexport enum PopoverType {\n\tModal,\n}\n\nexport interface PopoverSpec<T extends PopoverType> {\n\tjsx: JSX.Element;\n\ttype: T;\n\tpersistent: boolean;\n\toverlay: boolean;\n\tanimations: boolean;\n\tid: string;\n}\n\nexport interface PopoverStackStateValue<T extends PopoverType> {\n\t[key: string]: PopoverSpec<T>;\n}\n\ninterface Stack<T extends PopoverType> {\n\treadonly state: IState<PopoverStackStateValue<T>>;\n\tcreateSpecification(jsx: JSX.Element, persistent: boolean): PopoverSpec<T>;\n\tinjectSpecification(spec: PopoverSpec<PopoverType.Modal>): void;\n\tremove(): void;\n}\n\n/** Stack implementation for modal */\nclass ModalStack implements Stack<PopoverType.Modal> {\n\tpublic readonly state = newApplicationState<PopoverStackStateValue<PopoverType.Modal>>({}, FlowState.ACCESSIBLE);\n\tpublic currentActiveModal: keyof PopoverStackStateValue<PopoverType.Modal> | null = null;\n\n\t/** Creates a modal specification */\n\tpublic createSpecification(jsx: JSX.Element, persistent = false, overlay = true, animations = true): PopoverSpec<PopoverType.Modal> {\n\t\tconst popover: PopoverSpec<PopoverType.Modal> = {\n\t\t\tjsx,\n\t\t\tpersistent,\n\t\t\toverlay,\n\t\t\tanimations,\n\t\t\ttype: PopoverType.Modal,\n\t\t\tid: shortid(),\n\t\t};\n\n\t\treturn popover;\n\t}\n\n\t/** Updates the application state with the new spec, replacing current active modal */\n\tpublic injectSpecification(spec: PopoverSpec<PopoverType.Modal>): void {\n\t\tthis.currentActiveModal = spec.id;\n\t\tthis.state.mutate(() => {\n\t\t\treturn {\n\t\t\t\t[spec.id]: spec,\n\t\t\t};\n\t\t});\n\t}\n\n\t/** Removes current active modal and updates the state */\n\tpublic remove(): void {\n\t\tthis.state.mutate((prev) => {\n\t\t\tif (this.currentActiveModal !== null) {\n\t\t\t\tdelete prev[this.currentActiveModal];\n\n\t\t\t\tthis.currentActiveModal = null;\n\t\t\t}\n\n\t\t\treturn prev;\n\t\t});\n\t}\n}\n\n@Singleton()\nexport class PopoverService {\n\tpublic readonly modalStack = new ModalStack();\n\n\t// May only be one modal present at once\n\tpublic get currentActiveModal(): keyof PopoverStackStateValue<PopoverType.Modal> | null {\n\t\treturn this.modalStack.currentActiveModal;\n\t}\n\n\tconstructor() {\n\t\t// Empty\n\t}\n}\n","import { Singleton } from '@visiba-cortex/instantiation';\nimport { PopoverService } from '@routes/appointment/popover.service';\n\ninterface AddModalOptions {\n\tpersistent?: boolean;\n\toverlay?: boolean;\n\tanimations?: boolean;\n}\n\n@Singleton()\nexport class PopoverController {\n\tconstructor(public readonly popoverService: PopoverService) {}\n\n\tpublic addModal(jsx: JSX.Element, options: AddModalOptions = {}): void {\n\t\tconst mergedOptions = { persistent: false, overlay: true, animations: true, ...options };\n\n\t\tthis.shift();\n\t\tconst modal = this.popoverService.modalStack.createSpecification(\n\t\t\tjsx,\n\t\t\tmergedOptions.persistent,\n\t\t\tmergedOptions.overlay,\n\t\t\tmergedOptions.animations,\n\t\t);\n\t\tthis.popoverService.modalStack.injectSpecification(modal);\n\t}\n\n\tpublic shift(): void {\n\t\tthis.popoverService.modalStack.remove();\n\t}\n}\n","import { createTestBed } from '@visiba-cortex/instantiation';\n\nexport const sharedTestBed = createTestBed();\nexport const sharedResolution = sharedTestBed.resolution;\n","/**\n * @license Angular v19.1.4\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { Injectable, InjectionToken, inject, Optional, Inject, ɵɵinject, ɵfindLocaleData, ɵLocaleDataIndex, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, LOCALE_ID, ɵregisterLocaleData, ɵstringify, Directive, Input, createNgModule, NgModuleRef, ɵRuntimeError, Host, Attribute, RendererStyleFlags2, untracked, ɵisPromise, ɵisSubscribable, Pipe, DEFAULT_CURRENCY_CODE, NgModule, Version, ɵɵdefineInjectable, ɵformatRuntimeError, PLATFORM_ID, ɵIMAGE_CONFIG, Renderer2, ElementRef, Injector, DestroyRef, ɵperformanceMarkFeature, NgZone, ApplicationRef, ChangeDetectorRef, numberAttribute, booleanAttribute, ɵIMAGE_CONFIG_DEFAULTS, ɵunwrapSafeValue } from '@angular/core';\nexport { ɵIMAGE_CONFIG as IMAGE_CONFIG } from '@angular/core';\nimport { Subject } from 'rxjs';\n\nlet _DOM = null;\nfunction getDOM() {\n return _DOM;\n}\nfunction setRootDomAdapter(adapter) {\n _DOM ??= adapter;\n}\n/**\n * Provides DOM operations in an environment-agnostic way.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\nclass DomAdapter {\n}\n\n/**\n * This class wraps the platform Navigation API which allows server-specific and test\n * implementations.\n */\nclass PlatformNavigation {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PlatformNavigation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PlatformNavigation, providedIn: 'platform', useFactory: () => window.navigation });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PlatformNavigation, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'platform', useFactory: () => window.navigation }]\n }] });\n\n/**\n * A DI Token representing the main rendering context.\n * In a browser and SSR this is the DOM Document.\n * When using SSR, that document is created by [Domino](https://github.com/angular/domino).\n *\n * @publicApi\n */\nconst DOCUMENT = new InjectionToken(ngDevMode ? 'DocumentToken' : '');\n\n/**\n * This class should not be used directly by an application developer. Instead, use\n * {@link Location}.\n *\n * `PlatformLocation` encapsulates all calls to DOM APIs, which allows the Router to be\n * platform-agnostic.\n * This means that we can have different implementation of `PlatformLocation` for the different\n * platforms that Angular supports. For example, `@angular/platform-browser` provides an\n * implementation specific to the browser environment, while `@angular/platform-server` provides\n * one suitable for use with server-side rendering.\n *\n * The `PlatformLocation` class is used directly by all implementations of {@link LocationStrategy}\n * when they need to interact with the DOM APIs like pushState, popState, etc.\n *\n * {@link LocationStrategy} in turn is used by the {@link Location} service which is used directly\n * by the {@link Router} in order to navigate between routes. Since all interactions between {@link\n * Router} /\n * {@link Location} / {@link LocationStrategy} and DOM APIs flow through the `PlatformLocation`\n * class, they are all platform-agnostic.\n *\n * @publicApi\n */\nclass PlatformLocation {\n historyGo(relativePosition) {\n throw new Error(ngDevMode ? 'Not implemented' : '');\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PlatformLocation, providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PlatformLocation, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) }]\n }] });\n/**\n * @description\n * Indicates when a location is initialized.\n *\n * @publicApi\n */\nconst LOCATION_INITIALIZED = new InjectionToken(ngDevMode ? 'Location Initialized' : '');\n/**\n * `PlatformLocation` encapsulates all of the direct calls to platform APIs.\n * This class should not be used directly by an application developer. Instead, use\n * {@link Location}.\n *\n * @publicApi\n */\nclass BrowserPlatformLocation extends PlatformLocation {\n _location;\n _history;\n _doc = inject(DOCUMENT);\n constructor() {\n super();\n this._location = window.location;\n this._history = window.history;\n }\n getBaseHrefFromDOM() {\n return getDOM().getBaseHref(this._doc);\n }\n onPopState(fn) {\n const window = getDOM().getGlobalEventTarget(this._doc, 'window');\n window.addEventListener('popstate', fn, false);\n return () => window.removeEventListener('popstate', fn);\n }\n onHashChange(fn) {\n const window = getDOM().getGlobalEventTarget(this._doc, 'window');\n window.addEventListener('hashchange', fn, false);\n return () => window.removeEventListener('hashchange', fn);\n }\n get href() {\n return this._location.href;\n }\n get protocol() {\n return this._location.protocol;\n }\n get hostname() {\n return this._location.hostname;\n }\n get port() {\n return this._location.port;\n }\n get pathname() {\n return this._location.pathname;\n }\n get search() {\n return this._location.search;\n }\n get hash() {\n return this._location.hash;\n }\n set pathname(newPath) {\n this._location.pathname = newPath;\n }\n pushState(state, title, url) {\n this._history.pushState(state, title, url);\n }\n replaceState(state, title, url) {\n this._history.replaceState(state, title, url);\n }\n forward() {\n this._history.forward();\n }\n back() {\n this._history.back();\n }\n historyGo(relativePosition = 0) {\n this._history.go(relativePosition);\n }\n getState() {\n return this._history.state;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: BrowserPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: BrowserPlatformLocation, providedIn: 'platform', useFactory: () => new BrowserPlatformLocation() });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: BrowserPlatformLocation, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'platform',\n useFactory: () => new BrowserPlatformLocation(),\n }]\n }], ctorParameters: () => [] });\n\n/**\n * Joins two parts of a URL with a slash if needed.\n *\n * @param start URL string\n * @param end URL string\n *\n *\n * @returns The joined URL string.\n */\nfunction joinWithSlash(start, end) {\n // If `start` is an empty string, return `end` as the result.\n if (!start)\n return end;\n // If `end` is an empty string, return `start` as the result.\n if (!end)\n return start;\n // If `start` ends with a slash, remove the leading slash from `end`.\n if (start.endsWith('/')) {\n return end.startsWith('/') ? start + end.slice(1) : start + end;\n }\n // If `start` doesn't end with a slash, add one if `end` doesn't start with a slash.\n return end.startsWith('/') ? start + end : `${start}/${end}`;\n}\n/**\n * Removes a trailing slash from a URL string if needed.\n * Looks for the first occurrence of either `#`, `?`, or the end of the\n * line as `/` characters and removes the trailing slash if one exists.\n *\n * @param url URL string.\n *\n * @returns The URL string, modified if needed.\n */\nfunction stripTrailingSlash(url) {\n const match = url.match(/#|\\?|$/);\n const pathEndIdx = (match && match.index) || url.length;\n const droppedSlashIdx = pathEndIdx - (url[pathEndIdx - 1] === '/' ? 1 : 0);\n return url.slice(0, droppedSlashIdx) + url.slice(pathEndIdx);\n}\n/**\n * Normalizes URL parameters by prepending with `?` if needed.\n *\n * @param params String of URL parameters.\n *\n * @returns The normalized URL parameters string.\n */\nfunction normalizeQueryParams(params) {\n return params && params[0] !== '?' ? '?' + params : params;\n}\n\n/**\n * Enables the `Location` service to read route state from the browser's URL.\n * Angular provides two strategies:\n * `HashLocationStrategy` and `PathLocationStrategy`.\n *\n * Applications should use the `Router` or `Location` services to\n * interact with application route state.\n *\n * For instance, `HashLocationStrategy` produces URLs like\n * <code class=\"no-auto-link\">http://example.com/#/foo</code>,\n * and `PathLocationStrategy` produces\n * <code class=\"no-auto-link\">http://example.com/foo</code> as an equivalent URL.\n *\n * See these two classes for more.\n *\n * @publicApi\n */\nclass LocationStrategy {\n historyGo(relativePosition) {\n throw new Error(ngDevMode ? 'Not implemented' : '');\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: LocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: LocationStrategy, providedIn: 'root', useFactory: () => inject(PathLocationStrategy) });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: LocationStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: () => inject(PathLocationStrategy) }]\n }] });\n/**\n * A predefined DI token for the base href\n * to be used with the `PathLocationStrategy`.\n * The base href is the URL prefix that should be preserved when generating\n * and recognizing URLs.\n *\n * @usageNotes\n *\n * The following example shows how to use this token to configure the root app injector\n * with a base href value, so that the DI framework can supply the dependency anywhere in the app.\n *\n * ```ts\n * import {NgModule} from '@angular/core';\n * import {APP_BASE_HREF} from '@angular/common';\n *\n * @NgModule({\n * providers: [{provide: APP_BASE_HREF, useValue: '/my/app'}]\n * })\n * class AppModule {}\n * ```\n *\n * @publicApi\n */\nconst APP_BASE_HREF = new InjectionToken(ngDevMode ? 'appBaseHref' : '');\n/**\n * @description\n * A {@link LocationStrategy} used to configure the {@link Location} service to\n * represent its state in the\n * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the\n * browser's URL.\n *\n * If you're using `PathLocationStrategy`, you may provide a {@link APP_BASE_HREF}\n * or add a `<base href>` element to the document to override the default.\n *\n * For instance, if you provide an `APP_BASE_HREF` of `'/my/app/'` and call\n * `location.go('/foo')`, the browser's URL will become\n * `example.com/my/app/foo`. To ensure all relative URIs resolve correctly,\n * the `<base href>` and/or `APP_BASE_HREF` should end with a `/`.\n *\n * Similarly, if you add `<base href='/my/app/'/>` to the document and call\n * `location.go('/foo')`, the browser's URL will become\n * `example.com/my/app/foo`.\n *\n * Note that when using `PathLocationStrategy`, neither the query nor\n * the fragment in the `<base href>` will be preserved, as outlined\n * by the [RFC](https://tools.ietf.org/html/rfc3986#section-5.2.2).\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/location/ts/path_location_component.ts region='LocationComponent'}\n *\n * @publicApi\n */\nclass PathLocationStrategy extends LocationStrategy {\n _platformLocation;\n _baseHref;\n _removeListenerFns = [];\n constructor(_platformLocation, href) {\n super();\n this._platformLocation = _platformLocation;\n this._baseHref =\n href ??\n this._platformLocation.getBaseHrefFromDOM() ??\n inject(DOCUMENT).location?.origin ??\n '';\n }\n /** @nodoc */\n ngOnDestroy() {\n while (this._removeListenerFns.length) {\n this._removeListenerFns.pop()();\n }\n }\n onPopState(fn) {\n this._removeListenerFns.push(this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));\n }\n getBaseHref() {\n return this._baseHref;\n }\n prepareExternalUrl(internal) {\n return joinWithSlash(this._baseHref, internal);\n }\n path(includeHash = false) {\n const pathname = this._platformLocation.pathname + normalizeQueryParams(this._platformLocation.search);\n const hash = this._platformLocation.hash;\n return hash && includeHash ? `${pathname}${hash}` : pathname;\n }\n pushState(state, title, url, queryParams) {\n const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));\n this._platformLocation.pushState(state, title, externalUrl);\n }\n replaceState(state, title, url, queryParams) {\n const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));\n this._platformLocation.replaceState(state, title, externalUrl);\n }\n forward() {\n this._platformLocation.forward();\n }\n back() {\n this._platformLocation.back();\n }\n getState() {\n return this._platformLocation.getState();\n }\n historyGo(relativePosition = 0) {\n this._platformLocation.historyGo?.(relativePosition);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PathLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PathLocationStrategy, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PathLocationStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: PlatformLocation }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [APP_BASE_HREF]\n }] }] });\n\n/**\n * @description\n * A {@link LocationStrategy} used to configure the {@link Location} service to\n * represent its state in the\n * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax)\n * of the browser's URL.\n *\n * For instance, if you call `location.go('/foo')`, the browser's URL will become\n * `example.com#/foo`.\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/location/ts/hash_location_component.ts region='LocationComponent'}\n *\n * @publicApi\n */\nclass HashLocationStrategy extends LocationStrategy {\n _platformLocation;\n _baseHref = '';\n _removeListenerFns = [];\n constructor(_platformLocation, _baseHref) {\n super();\n this._platformLocation = _platformLocation;\n if (_baseHref != null) {\n this._baseHref = _baseHref;\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n while (this._removeListenerFns.length) {\n this._removeListenerFns.pop()();\n }\n }\n onPopState(fn) {\n this._removeListenerFns.push(this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));\n }\n getBaseHref() {\n return this._baseHref;\n }\n path(includeHash = false) {\n // the hash value is always prefixed with a `#`\n // and if it is empty then it will stay empty\n const path = this._platformLocation.hash ?? '#';\n return path.length > 0 ? path.substring(1) : path;\n }\n prepareExternalUrl(internal) {\n const url = joinWithSlash(this._baseHref, internal);\n return url.length > 0 ? '#' + url : url;\n }\n pushState(state, title, path, queryParams) {\n let url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));\n if (url.length == 0) {\n url = this._platformLocation.pathname;\n }\n this._platformLocation.pushState(state, title, url);\n }\n replaceState(state, title, path, queryParams) {\n let url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));\n if (url.length == 0) {\n url = this._platformLocation.pathname;\n }\n this._platformLocation.replaceState(state, title, url);\n }\n forward() {\n this._platformLocation.forward();\n }\n back() {\n this._platformLocation.back();\n }\n getState() {\n return this._platformLocation.getState();\n }\n historyGo(relativePosition = 0) {\n this._platformLocation.historyGo?.(relativePosition);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HashLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HashLocationStrategy });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HashLocationStrategy, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: PlatformLocation }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [APP_BASE_HREF]\n }] }] });\n\n/**\n * @description\n *\n * A service that applications can use to interact with a browser's URL.\n *\n * Depending on the `LocationStrategy` used, `Location` persists\n * to the URL's path or the URL's hash segment.\n *\n * @usageNotes\n *\n * It's better to use the `Router.navigate()` service to trigger route changes. Use\n * `Location` only if you need to interact with or create normalized URLs outside of\n * routing.\n *\n * `Location` is responsible for normalizing the URL against the application's base href.\n * A normalized URL is absolute from the URL host, includes the application's base href, and has no\n * trailing slash:\n * - `/my/app/user/123` is normalized\n * - `my/app/user/123` **is not** normalized\n * - `/my/app/user/123/` **is not** normalized\n *\n * ### Example\n *\n * {@example common/location/ts/path_location_component.ts region='LocationComponent'}\n *\n * @publicApi\n */\nclass Location {\n /** @internal */\n _subject = new Subject();\n /** @internal */\n _basePath;\n /** @internal */\n _locationStrategy;\n /** @internal */\n _urlChangeListeners = [];\n /** @internal */\n _urlChangeSubscription = null;\n constructor(locationStrategy) {\n this._locationStrategy = locationStrategy;\n const baseHref = this._locationStrategy.getBaseHref();\n // Note: This class's interaction with base HREF does not fully follow the rules\n // outlined in the spec https://www.freesoft.org/CIE/RFC/1808/18.htm.\n // Instead of trying to fix individual bugs with more and more code, we should\n // investigate using the URL constructor and providing the base as a second\n // argument.\n // https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#parameters\n this._basePath = _stripOrigin(stripTrailingSlash(_stripIndexHtml(baseHref)));\n this._locationStrategy.onPopState((ev) => {\n this._subject.next({\n 'url': this.path(true),\n 'pop': true,\n 'state': ev.state,\n 'type': ev.type,\n });\n });\n }\n /** @nodoc */\n ngOnDestroy() {\n this._urlChangeSubscription?.unsubscribe();\n this._urlChangeListeners = [];\n }\n /**\n * Normalizes the URL path for this location.\n *\n * @param includeHash True to include an anchor fragment in the path.\n *\n * @returns The normalized URL path.\n */\n // TODO: vsavkin. Remove the boolean flag and always include hash once the deprecated router is\n // removed.\n path(includeHash = false) {\n return this.normalize(this._locationStrategy.path(includeHash));\n }\n /**\n * Reports the current state of the location history.\n * @returns The current value of the `history.state` object.\n */\n getState() {\n return this._locationStrategy.getState();\n }\n /**\n * Normalizes the given path and compares to the current normalized path.\n *\n * @param path The given URL path.\n * @param query Query parameters.\n *\n * @returns True if the given URL path is equal to the current normalized path, false\n * otherwise.\n */\n isCurrentPathEqualTo(path, query = '') {\n return this.path() == this.normalize(path + normalizeQueryParams(query));\n }\n /**\n * Normalizes a URL path by stripping any trailing slashes.\n *\n * @param url String representing a URL.\n *\n * @returns The normalized URL string.\n */\n normalize(url) {\n return Location.stripTrailingSlash(_stripBasePath(this._basePath, _stripIndexHtml(url)));\n }\n /**\n * Normalizes an external URL path.\n * If the given URL doesn't begin with a leading slash (`'/'`), adds one\n * before normalizing. Adds a hash if `HashLocationStrategy` is\n * in use, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use.\n *\n * @param url String representing a URL.\n *\n * @returns A normalized platform-specific URL.\n */\n prepareExternalUrl(url) {\n if (url && url[0] !== '/') {\n url = '/' + url;\n }\n return this._locationStrategy.prepareExternalUrl(url);\n }\n // TODO: rename this method to pushState\n /**\n * Changes the browser's URL to a normalized version of a given URL, and pushes a\n * new item onto the platform's history.\n *\n * @param path URL path to normalize.\n * @param query Query parameters.\n * @param state Location history state.\n *\n */\n go(path, query = '', state = null) {\n this._locationStrategy.pushState(state, '', path, query);\n this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);\n }\n /**\n * Changes the browser's URL to a normalized version of the given URL, and replaces\n * the top item on the platform's history stack.\n *\n * @param path URL path to normalize.\n * @param query Query parameters.\n * @param state Location history state.\n */\n replaceState(path, query = '', state = null) {\n this._locationStrategy.replaceState(state, '', path, query);\n this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);\n }\n /**\n * Navigates forward in the platform's history.\n */\n forward() {\n this._locationStrategy.forward();\n }\n /**\n * Navigates back in the platform's history.\n */\n back() {\n this._locationStrategy.back();\n }\n /**\n * Navigate to a specific page from session history, identified by its relative position to the\n * current page.\n *\n * @param relativePosition Position of the target page in the history relative to the current\n * page.\n * A negative value moves backwards, a positive value moves forwards, e.g. `location.historyGo(2)`\n * moves forward two pages and `location.historyGo(-2)` moves back two pages. When we try to go\n * beyond what's stored in the history session, we stay in the current page. Same behaviour occurs\n * when `relativePosition` equals 0.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/History_API#Moving_to_a_specific_point_in_history\n */\n historyGo(relativePosition = 0) {\n this._locationStrategy.historyGo?.(relativePosition);\n }\n /**\n * Registers a URL change listener. Use to catch updates performed by the Angular\n * framework that are not detectible through \"popstate\" or \"hashchange\" events.\n *\n * @param fn The change handler function, which take a URL and a location history state.\n * @returns A function that, when executed, unregisters a URL change listener.\n */\n onUrlChange(fn) {\n this._urlChangeListeners.push(fn);\n this._urlChangeSubscription ??= this.subscribe((v) => {\n this._notifyUrlChangeListeners(v.url, v.state);\n });\n return () => {\n const fnIndex = this._urlChangeListeners.indexOf(fn);\n this._urlChangeListeners.splice(fnIndex, 1);\n if (this._urlChangeListeners.length === 0) {\n this._urlChangeSubscription?.unsubscribe();\n this._urlChangeSubscription = null;\n }\n };\n }\n /** @internal */\n _notifyUrlChangeListeners(url = '', state) {\n this._urlChangeListeners.forEach((fn) => fn(url, state));\n }\n /**\n * Subscribes to the platform's `popState` events.\n *\n * Note: `Location.go()` does not trigger the `popState` event in the browser. Use\n * `Location.onUrlChange()` to subscribe to URL changes instead.\n *\n * @param value Event that is triggered when the state history changes.\n * @param exception The exception to throw.\n *\n * @see [onpopstate](https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate)\n *\n * @returns Subscribed events.\n */\n subscribe(onNext, onThrow, onReturn) {\n return this._subject.subscribe({\n next: onNext,\n error: onThrow ?? undefined,\n complete: onReturn ?? undefined,\n });\n }\n /**\n * Normalizes URL parameters by prepending with `?` if needed.\n *\n * @param params String of URL parameters.\n *\n * @returns The normalized URL parameters string.\n */\n static normalizeQueryParams = normalizeQueryParams;\n /**\n * Joins two parts of a URL with a slash if needed.\n *\n * @param start URL string\n * @param end URL string\n *\n *\n * @returns The joined URL string.\n */\n static joinWithSlash = joinWithSlash;\n /**\n * Removes a trailing slash from a URL string if needed.\n * Looks for the first occurrence of either `#`, `?`, or the end of the\n * line as `/` characters and removes the trailing slash if one exists.\n *\n * @param url URL string.\n *\n * @returns The URL string, modified if needed.\n */\n static stripTrailingSlash = stripTrailingSlash;\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: Location, deps: [{ token: LocationStrategy }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: Location, providedIn: 'root', useFactory: createLocation });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: Location, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root',\n // See #23917\n useFactory: createLocation,\n }]\n }], ctorParameters: () => [{ type: LocationStrategy }] });\nfunction createLocation() {\n return new Location(ɵɵinject(LocationStrategy));\n}\nfunction _stripBasePath(basePath, url) {\n if (!basePath || !url.startsWith(basePath)) {\n return url;\n }\n const strippedUrl = url.substring(basePath.length);\n if (strippedUrl === '' || ['/', ';', '?', '#'].includes(strippedUrl[0])) {\n return strippedUrl;\n }\n return url;\n}\nfunction _stripIndexHtml(url) {\n return url.replace(/\\/index.html$/, '');\n}\nfunction _stripOrigin(baseHref) {\n // DO NOT REFACTOR! Previously, this check looked like this:\n // `/^(https?:)?\\/\\//.test(baseHref)`, but that resulted in\n // syntactically incorrect code after Closure Compiler minification.\n // This was likely caused by a bug in Closure Compiler, but\n // for now, the check is rewritten to use `new RegExp` instead.\n const isAbsoluteUrl = new RegExp('^(https?:)?//').test(baseHref);\n if (isAbsoluteUrl) {\n const [, pathname] = baseHref.split(/\\/\\/[^\\/]+/);\n return pathname;\n }\n return baseHref;\n}\n\n/** @internal */\nconst CURRENCIES_EN = { \"ADP\": [undefined, undefined, 0], \"AFN\": [undefined, \"؋\", 0], \"ALL\": [undefined, undefined, 0], \"AMD\": [undefined, \"֏\", 2], \"AOA\": [undefined, \"Kz\"], \"ARS\": [undefined, \"$\"], \"AUD\": [\"A$\", \"$\"], \"AZN\": [undefined, \"₼\"], \"BAM\": [undefined, \"KM\"], \"BBD\": [undefined, \"$\"], \"BDT\": [undefined, \"৳\"], \"BHD\": [undefined, undefined, 3], \"BIF\": [undefined, undefined, 0], \"BMD\": [undefined, \"$\"], \"BND\": [undefined, \"$\"], \"BOB\": [undefined, \"Bs\"], \"BRL\": [\"R$\"], \"BSD\": [undefined, \"$\"], \"BWP\": [undefined, \"P\"], \"BYN\": [undefined, undefined, 2], \"BYR\": [undefined, undefined, 0], \"BZD\": [undefined, \"$\"], \"CAD\": [\"CA$\", \"$\", 2], \"CHF\": [undefined, undefined, 2], \"CLF\": [undefined, undefined, 4], \"CLP\": [undefined, \"$\", 0], \"CNY\": [\"CN¥\", \"¥\"], \"COP\": [undefined, \"$\", 2], \"CRC\": [undefined, \"₡\", 2], \"CUC\": [undefined, \"$\"], \"CUP\": [undefined, \"$\"], \"CZK\": [undefined, \"Kč\", 2], \"DJF\": [undefined, undefined, 0], \"DKK\": [undefined, \"kr\", 2], \"DOP\": [undefined, \"$\"], \"EGP\": [undefined, \"E£\"], \"ESP\": [undefined, \"₧\", 0], \"EUR\": [\"€\"], \"FJD\": [undefined, \"$\"], \"FKP\": [undefined, \"£\"], \"GBP\": [\"£\"], \"GEL\": [undefined, \"₾\"], \"GHS\": [undefined, \"GH₵\"], \"GIP\": [undefined, \"£\"], \"GNF\": [undefined, \"FG\", 0], \"GTQ\": [undefined, \"Q\"], \"GYD\": [undefined, \"$\", 2], \"HKD\": [\"HK$\", \"$\"], \"HNL\": [undefined, \"L\"], \"HRK\": [undefined, \"kn\"], \"HUF\": [undefined, \"Ft\", 2], \"IDR\": [undefined, \"Rp\", 2], \"ILS\": [\"₪\"], \"INR\": [\"₹\"], \"IQD\": [undefined, undefined, 0], \"IRR\": [undefined, undefined, 0], \"ISK\": [undefined, \"kr\", 0], \"ITL\": [undefined, undefined, 0], \"JMD\": [undefined, \"$\"], \"JOD\": [undefined, undefined, 3], \"JPY\": [\"¥\", undefined, 0], \"KHR\": [undefined, \"៛\"], \"KMF\": [undefined, \"CF\", 0], \"KPW\": [undefined, \"₩\", 0], \"KRW\": [\"₩\", undefined, 0], \"KWD\": [undefined, undefined, 3], \"KYD\": [undefined, \"$\"], \"KZT\": [undefined, \"₸\"], \"LAK\": [undefined, \"₭\", 0], \"LBP\": [undefined, \"L£\", 0], \"LKR\": [undefined, \"Rs\"], \"LRD\": [undefined, \"$\"], \"LTL\": [undefined, \"Lt\"], \"LUF\": [undefined, undefined, 0], \"LVL\": [undefined, \"Ls\"], \"LYD\": [undefined, undefined, 3], \"MGA\": [undefined, \"Ar\", 0], \"MGF\": [undefined, undefined, 0], \"MMK\": [undefined, \"K\", 0], \"MNT\": [undefined, \"₮\", 2], \"MRO\": [undefined, undefined, 0], \"MUR\": [undefined, \"Rs\", 2], \"MXN\": [\"MX$\", \"$\"], \"MYR\": [undefined, \"RM\"], \"NAD\": [undefined, \"$\"], \"NGN\": [undefined, \"₦\"], \"NIO\": [undefined, \"C$\"], \"NOK\": [undefined, \"kr\", 2], \"NPR\": [undefined, \"Rs\"], \"NZD\": [\"NZ$\", \"$\"], \"OMR\": [undefined, undefined, 3], \"PHP\": [\"₱\"], \"PKR\": [undefined, \"Rs\", 2], \"PLN\": [undefined, \"zł\"], \"PYG\": [undefined, \"₲\", 0], \"RON\": [undefined, \"lei\"], \"RSD\": [undefined, undefined, 0], \"RUB\": [undefined, \"₽\"], \"RWF\": [undefined, \"RF\", 0], \"SBD\": [undefined, \"$\"], \"SEK\": [undefined, \"kr\", 2], \"SGD\": [undefined, \"$\"], \"SHP\": [undefined, \"£\"], \"SLE\": [undefined, undefined, 2], \"SLL\": [undefined, undefined, 0], \"SOS\": [undefined, undefined, 0], \"SRD\": [undefined, \"$\"], \"SSP\": [undefined, \"£\"], \"STD\": [undefined, undefined, 0], \"STN\": [undefined, \"Db\"], \"SYP\": [undefined, \"£\", 0], \"THB\": [undefined, \"฿\"], \"TMM\": [undefined, undefined, 0], \"TND\": [undefined, undefined, 3], \"TOP\": [undefined, \"T$\"], \"TRL\": [undefined, undefined, 0], \"TRY\": [undefined, \"₺\"], \"TTD\": [undefined, \"$\"], \"TWD\": [\"NT$\", \"$\", 2], \"TZS\": [undefined, undefined, 2], \"UAH\": [undefined, \"₴\"], \"UGX\": [undefined, undefined, 0], \"USD\": [\"$\"], \"UYI\": [undefined, undefined, 0], \"UYU\": [undefined, \"$\"], \"UYW\": [undefined, undefined, 4], \"UZS\": [undefined, undefined, 2], \"VEF\": [undefined, \"Bs\", 2], \"VND\": [\"₫\", undefined, 0], \"VUV\": [undefined, undefined, 0], \"XAF\": [\"FCFA\", undefined, 0], \"XCD\": [\"EC$\", \"$\"], \"XOF\": [\"F CFA\", undefined, 0], \"XPF\": [\"CFPF\", undefined, 0], \"XXX\": [\"¤\"], \"YER\": [undefined, undefined, 0], \"ZAR\": [undefined, \"R\"], \"ZMK\": [undefined, undefined, 0], \"ZMW\": [undefined, \"ZK\"], \"ZWD\": [undefined, undefined, 0] };\n\n/**\n * Format styles that can be used to represent numbers.\n * @see {@link getLocaleNumberFormat}\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated `getLocaleNumberFormat` is deprecated\n */\nvar NumberFormatStyle;\n(function (NumberFormatStyle) {\n NumberFormatStyle[NumberFormatStyle[\"Decimal\"] = 0] = \"Decimal\";\n NumberFormatStyle[NumberFormatStyle[\"Percent\"] = 1] = \"Percent\";\n NumberFormatStyle[NumberFormatStyle[\"Currency\"] = 2] = \"Currency\";\n NumberFormatStyle[NumberFormatStyle[\"Scientific\"] = 3] = \"Scientific\";\n})(NumberFormatStyle || (NumberFormatStyle = {}));\n/**\n * Plurality cases used for translating plurals to different languages.\n *\n * @see {@link NgPlural}\n * @see {@link NgPluralCase}\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated `getLocalePluralCase` is deprecated\n */\nvar Plural;\n(function (Plural) {\n Plural[Plural[\"Zero\"] = 0] = \"Zero\";\n Plural[Plural[\"One\"] = 1] = \"One\";\n Plural[Plural[\"Two\"] = 2] = \"Two\";\n Plural[Plural[\"Few\"] = 3] = \"Few\";\n Plural[Plural[\"Many\"] = 4] = \"Many\";\n Plural[Plural[\"Other\"] = 5] = \"Other\";\n})(Plural || (Plural = {}));\n/**\n * Context-dependant translation forms for strings.\n * Typically the standalone version is for the nominative form of the word,\n * and the format version is used for the genitive case.\n * @see [CLDR website](http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles)\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated locale data getters are deprecated\n */\nvar FormStyle;\n(function (FormStyle) {\n FormStyle[FormStyle[\"Format\"] = 0] = \"Format\";\n FormStyle[FormStyle[\"Standalone\"] = 1] = \"Standalone\";\n})(FormStyle || (FormStyle = {}));\n/**\n * String widths available for translations.\n * The specific character widths are locale-specific.\n * Examples are given for the word \"Sunday\" in English.\n *\n * @publicApi\n *\n * @deprecated locale data getters are deprecated\n */\nvar TranslationWidth;\n(function (TranslationWidth) {\n /** 1 character for `en-US`. For example: 'S' */\n TranslationWidth[TranslationWidth[\"Narrow\"] = 0] = \"Narrow\";\n /** 3 characters for `en-US`. For example: 'Sun' */\n TranslationWidth[TranslationWidth[\"Abbreviated\"] = 1] = \"Abbreviated\";\n /** Full length for `en-US`. For example: \"Sunday\" */\n TranslationWidth[TranslationWidth[\"Wide\"] = 2] = \"Wide\";\n /** 2 characters for `en-US`, For example: \"Su\" */\n TranslationWidth[TranslationWidth[\"Short\"] = 3] = \"Short\";\n})(TranslationWidth || (TranslationWidth = {}));\n/**\n * String widths available for date-time formats.\n * The specific character widths are locale-specific.\n * Examples are given for `en-US`.\n *\n * @see {@link getLocaleDateFormat}\n * @see {@link getLocaleTimeFormat}\n * @see {@link getLocaleDateTimeFormat}\n * @see [Internationalization (i18n) Guide](guide/i18n)\n * @publicApi\n *\n * @deprecated Date locale data getters are deprecated\n */\nvar FormatWidth;\n(function (FormatWidth) {\n /**\n * For `en-US`, `'M/d/yy, h:mm a'`\n * (Example: `6/15/15, 9:03 AM`)\n */\n FormatWidth[FormatWidth[\"Short\"] = 0] = \"Short\";\n /**\n * For `en-US`, `'MMM d, y, h:mm:ss a'`\n * (Example: `Jun 15, 2015, 9:03:01 AM`)\n */\n FormatWidth[FormatWidth[\"Medium\"] = 1] = \"Medium\";\n /**\n * For `en-US`, `'MMMM d, y, h:mm:ss a z'`\n * (Example: `June 15, 2015 at 9:03:01 AM GMT+1`)\n */\n FormatWidth[FormatWidth[\"Long\"] = 2] = \"Long\";\n /**\n * For `en-US`, `'EEEE, MMMM d, y, h:mm:ss a zzzz'`\n * (Example: `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00`)\n */\n FormatWidth[FormatWidth[\"Full\"] = 3] = \"Full\";\n})(FormatWidth || (FormatWidth = {}));\n// This needs to be an object literal, rather than an enum, because TypeScript 5.4+\n// doesn't allow numeric keys and we have `Infinity` and `NaN`.\n/**\n * Symbols that can be used to replace placeholders in number patterns.\n * Examples are based on `en-US` values.\n *\n * @see {@link getLocaleNumberSymbol}\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated `getLocaleNumberSymbol` is deprecated\n *\n * @object-literal-as-enum\n */\nconst NumberSymbol = {\n /**\n * Decimal separator.\n * For `en-US`, the dot character.\n * Example: 2,345`.`67\n */\n Decimal: 0,\n /**\n * Grouping separator, typically for thousands.\n * For `en-US`, the comma character.\n * Example: 2`,`345.67\n */\n Group: 1,\n /**\n * List-item separator.\n * Example: \"one, two, and three\"\n */\n List: 2,\n /**\n * Sign for percentage (out of 100).\n * Example: 23.4%\n */\n PercentSign: 3,\n /**\n * Sign for positive numbers.\n * Example: +23\n */\n PlusSign: 4,\n /**\n * Sign for negative numbers.\n * Example: -23\n */\n MinusSign: 5,\n /**\n * Computer notation for exponential value (n times a power of 10).\n * Example: 1.2E3\n */\n Exponential: 6,\n /**\n * Human-readable format of exponential.\n * Example: 1.2x103\n */\n SuperscriptingExponent: 7,\n /**\n * Sign for permille (out of 1000).\n * Example: 23.4‰\n */\n PerMille: 8,\n /**\n * Infinity, can be used with plus and minus.\n * Example: ∞, +∞, -∞\n */\n Infinity: 9,\n /**\n * Not a number.\n * Example: NaN\n */\n NaN: 10,\n /**\n * Symbol used between time units.\n * Example: 10:52\n */\n TimeSeparator: 11,\n /**\n * Decimal separator for currency values (fallback to `Decimal`).\n * Example: $2,345.67\n */\n CurrencyDecimal: 12,\n /**\n * Group separator for currency values (fallback to `Group`).\n * Example: $2,345.67\n */\n CurrencyGroup: 13,\n};\n/**\n * The value for each day of the week, based on the `en-US` locale\n *\n * @publicApi\n *\n * @deprecated Week locale getters are deprecated\n */\nvar WeekDay;\n(function (WeekDay) {\n WeekDay[WeekDay[\"Sunday\"] = 0] = \"Sunday\";\n WeekDay[WeekDay[\"Monday\"] = 1] = \"Monday\";\n WeekDay[WeekDay[\"Tuesday\"] = 2] = \"Tuesday\";\n WeekDay[WeekDay[\"Wednesday\"] = 3] = \"Wednesday\";\n WeekDay[WeekDay[\"Thursday\"] = 4] = \"Thursday\";\n WeekDay[WeekDay[\"Friday\"] = 5] = \"Friday\";\n WeekDay[WeekDay[\"Saturday\"] = 6] = \"Saturday\";\n})(WeekDay || (WeekDay = {}));\n/**\n * Retrieves the locale ID from the currently loaded locale.\n * The loaded locale could be, for example, a global one rather than a regional one.\n * @param locale A locale code, such as `fr-FR`.\n * @returns The locale code. For example, `fr`.\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * This function serves no purpose when relying on the `Intl` API.\n */\nfunction getLocaleId(locale) {\n return ɵfindLocaleData(locale)[ɵLocaleDataIndex.LocaleId];\n}\n/**\n * Retrieves day period strings for the given locale.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns An array of localized period strings. For example, `[AM, PM]` for `en-US`.\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * Use `Intl.DateTimeFormat` for date formating instead.\n */\nfunction getLocaleDayPeriods(locale, formStyle, width) {\n const data = ɵfindLocaleData(locale);\n const amPmData = [\n data[ɵLocaleDataIndex.DayPeriodsFormat],\n data[ɵLocaleDataIndex.DayPeriodsStandalone],\n ];\n const amPm = getLastDefinedValue(amPmData, formStyle);\n return getLastDefinedValue(amPm, width);\n}\n/**\n * Retrieves days of the week for the given locale, using the Gregorian calendar.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns An array of localized name strings.\n * For example,`[Sunday, Monday, ... Saturday]` for `en-US`.\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * Use `Intl.DateTimeFormat` for date formating instead.\n */\nfunction getLocaleDayNames(locale, formStyle, width) {\n const data = ɵfindLocaleData(locale);\n const daysData = [\n data[ɵLocaleDataIndex.DaysFormat],\n data[ɵLocaleDataIndex.DaysStandalone],\n ];\n const days = getLastDefinedValue(daysData, formStyle);\n return getLastDefinedValue(days, width);\n}\n/**\n * Retrieves months of the year for the given locale, using the Gregorian calendar.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns An array of localized name strings.\n * For example, `[January, February, ...]` for `en-US`.\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * Use `Intl.DateTimeFormat` for date formating instead.\n */\nfunction getLocaleMonthNames(locale, formStyle, width) {\n const data = ɵfindLocaleData(locale);\n const monthsData = [\n data[ɵLocaleDataIndex.MonthsFormat],\n data[ɵLocaleDataIndex.MonthsStandalone],\n ];\n const months = getLastDefinedValue(monthsData, formStyle);\n return getLastDefinedValue(months, width);\n}\n/**\n * Retrieves Gregorian-calendar eras for the given locale.\n * @param locale A locale code for the locale format rules to use.\n * @param width The required character width.\n\n * @returns An array of localized era strings.\n * For example, `[AD, BC]` for `en-US`.\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * Use `Intl.DateTimeFormat` for date formating instead.\n */\nfunction getLocaleEraNames(locale, width) {\n const data = ɵfindLocaleData(locale);\n const erasData = data[ɵLocaleDataIndex.Eras];\n return getLastDefinedValue(erasData, width);\n}\n/**\n * Retrieves the first day of the week for the given locale.\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns A day index number, using the 0-based week-day index for `en-US`\n * (Sunday = 0, Monday = 1, ...).\n * For example, for `fr-FR`, returns 1 to indicate that the first day is Monday.\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * Intl's [`getWeekInfo`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo) has partial support (Chromium M99 & Safari 17).\n * You may want to rely on the following alternatives:\n * - Libraries like [`Luxon`](https://moment.github.io/luxon/#/) rely on `Intl` but fallback on the ISO 8601 definition (monday) if `getWeekInfo` is not supported.\n * - Other librairies like [`date-fns`](https://date-fns.org/), [`day.js`](https://day.js.org/en/) or [`weekstart`](https://www.npmjs.com/package/weekstart) library provide their own locale based data for the first day of the week.\n */\nfunction getLocaleFirstDayOfWeek(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.FirstDayOfWeek];\n}\n/**\n * Range of week days that are considered the week-end for the given locale.\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns The range of day values, `[startDay, endDay]`.\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * Intl's [`getWeekInfo`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo) has partial support (Chromium M99 & Safari 17).\n * Libraries like [`Luxon`](https://moment.github.io/luxon/#/) rely on `Intl` but fallback on the ISO 8601 definition (Saturday+Sunday) if `getWeekInfo` is not supported .\n */\nfunction getLocaleWeekEndRange(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.WeekendRange];\n}\n/**\n * Retrieves a localized date-value formatting string.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param width The format type.\n * @returns The localized formatting string.\n * @see {@link FormatWidth}\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * Use `Intl.DateTimeFormat` for date formating instead.\n */\nfunction getLocaleDateFormat(locale, width) {\n const data = ɵfindLocaleData(locale);\n return getLastDefinedValue(data[ɵLocaleDataIndex.DateFormat], width);\n}\n/**\n * Retrieves a localized time-value formatting string.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param width The format type.\n * @returns The localized formatting string.\n * @see {@link FormatWidth}\n * @see [Internationalization (i18n) Guide](guide/i18n)\n\n * @publicApi\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * Use `Intl.DateTimeFormat` for date formating instead.\n */\nfunction getLocaleTimeFormat(locale, width) {\n const data = ɵfindLocaleData(locale);\n return getLastDefinedValue(data[ɵLocaleDataIndex.TimeFormat], width);\n}\n/**\n * Retrieves a localized date-time formatting string.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param width The format type.\n * @returns The localized formatting string.\n * @see {@link FormatWidth}\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * Use `Intl.DateTimeFormat` for date formating instead.\n */\nfunction getLocaleDateTimeFormat(locale, width) {\n const data = ɵfindLocaleData(locale);\n const dateTimeFormatData = data[ɵLocaleDataIndex.DateTimeFormat];\n return getLastDefinedValue(dateTimeFormatData, width);\n}\n/**\n * Retrieves a localized number symbol that can be used to replace placeholders in number formats.\n * @param locale The locale code.\n * @param symbol The symbol to localize. Must be one of `NumberSymbol`.\n * @returns The character for the localized symbol.\n * @see {@link NumberSymbol}\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * Use `Intl.NumberFormat` to format numbers instead.\n */\nfunction getLocaleNumberSymbol(locale, symbol) {\n const data = ɵfindLocaleData(locale);\n const res = data[ɵLocaleDataIndex.NumberSymbols][symbol];\n if (typeof res === 'undefined') {\n if (symbol === NumberSymbol.CurrencyDecimal) {\n return data[ɵLocaleDataIndex.NumberSymbols][NumberSymbol.Decimal];\n }\n else if (symbol === NumberSymbol.CurrencyGroup) {\n return data[ɵLocaleDataIndex.NumberSymbols][NumberSymbol.Group];\n }\n }\n return res;\n}\n/**\n * Retrieves a number format for a given locale.\n *\n * Numbers are formatted using patterns, like `#,###.00`. For example, the pattern `#,###.00`\n * when used to format the number 12345.678 could result in \"12'345,678\". That would happen if the\n * grouping separator for your language is an apostrophe, and the decimal separator is a comma.\n *\n * <b>Important:</b> The characters `.` `,` `0` `#` (and others below) are special placeholders\n * that stand for the decimal separator, and so on, and are NOT real characters.\n * You must NOT \"translate\" the placeholders. For example, don't change `.` to `,` even though in\n * your language the decimal point is written with a comma. The symbols should be replaced by the\n * local equivalents, using the appropriate `NumberSymbol` for your language.\n *\n * Here are the special characters used in number patterns:\n *\n * | Symbol | Meaning |\n * |--------|---------|\n * | . | Replaced automatically by the character used for the decimal point. |\n * | , | Replaced by the \"grouping\" (thousands) separator. |\n * | 0 | Replaced by a digit (or zero if there aren't enough digits). |\n * | # | Replaced by a digit (or nothing if there aren't enough). |\n * | ¤ | Replaced by a currency symbol, such as $ or USD. |\n * | % | Marks a percent format. The % symbol may change position, but must be retained. |\n * | E | Marks a scientific format. The E symbol may change position, but must be retained. |\n * | ' | Special characters used as literal characters are quoted with ASCII single quotes. |\n *\n * @param locale A locale code for the locale format rules to use.\n * @param type The type of numeric value to be formatted (such as `Decimal` or `Currency`.)\n * @returns The localized format string.\n * @see {@link NumberFormatStyle}\n * @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * Let `Intl.NumberFormat` determine the number format instead\n */\nfunction getLocaleNumberFormat(locale, type) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.NumberFormats][type];\n}\n/**\n * Retrieves the symbol used to represent the currency for the main country\n * corresponding to a given locale. For example, '$' for `en-US`.\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns The localized symbol character,\n * or `null` if the main country cannot be determined.\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Use the `Intl` API to format a currency with from currency code\n */\nfunction getLocaleCurrencySymbol(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.CurrencySymbol] || null;\n}\n/**\n * Retrieves the name of the currency for the main country corresponding\n * to a given locale. For example, 'US Dollar' for `en-US`.\n * @param locale A locale code for the locale format rules to use.\n * @returns The currency name,\n * or `null` if the main country cannot be determined.\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Use the `Intl` API to format a currency with from currency code\n */\nfunction getLocaleCurrencyName(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.CurrencyName] || null;\n}\n/**\n * Retrieves the default currency code for the given locale.\n *\n * The default is defined as the first currency which is still in use.\n *\n * @param locale The code of the locale whose currency code we want.\n * @returns The code of the default currency for the given locale.\n *\n * @publicApi\n *\n * @deprecated We recommend you create a map of locale to ISO 4217 currency codes.\n * Time relative currency data is provided by the CLDR project. See https://www.unicode.org/cldr/charts/44/supplemental/detailed_territory_currency_information.html\n */\nfunction getLocaleCurrencyCode(locale) {\n return ɵgetLocaleCurrencyCode(locale);\n}\n/**\n * Retrieves the currency values for a given locale.\n * @param locale A locale code for the locale format rules to use.\n * @returns The currency values.\n * @see [Internationalization (i18n) Guide](guide/i18n)\n */\nfunction getLocaleCurrencies(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.Currencies];\n}\n/**\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * Use `Intl.PluralRules` instead\n */\nconst getLocalePluralCase = ɵgetLocalePluralCase;\nfunction checkFullData(data) {\n if (!data[ɵLocaleDataIndex.ExtraData]) {\n throw new Error(`Missing extra locale data for the locale \"${data[ɵLocaleDataIndex.LocaleId]}\". Use \"registerLocaleData\" to load new data. See the \"I18n guide\" on angular.io to know more.`);\n }\n}\n/**\n * Retrieves locale-specific rules used to determine which day period to use\n * when more than one period is defined for a locale.\n *\n * There is a rule for each defined day period. The\n * first rule is applied to the first day period and so on.\n * Fall back to AM/PM when no rules are available.\n *\n * A rule can specify a period as time range, or as a single time value.\n *\n * This functionality is only available when you have loaded the full locale data.\n * See the [\"I18n guide\"](guide/i18n/format-data-locale).\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns The rules for the locale, a single time value or array of *from-time, to-time*,\n * or null if no periods are available.\n *\n * @see {@link getLocaleExtraDayPeriods}\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * Let `Intl.DateTimeFormat` determine the day period instead.\n */\nfunction getLocaleExtraDayPeriodRules(locale) {\n const data = ɵfindLocaleData(locale);\n checkFullData(data);\n const rules = data[ɵLocaleDataIndex.ExtraData][2 /* ɵExtraLocaleDataIndex.ExtraDayPeriodsRules */] || [];\n return rules.map((rule) => {\n if (typeof rule === 'string') {\n return extractTime(rule);\n }\n return [extractTime(rule[0]), extractTime(rule[1])];\n });\n}\n/**\n * Retrieves locale-specific day periods, which indicate roughly how a day is broken up\n * in different languages.\n * For example, for `en-US`, periods are morning, noon, afternoon, evening, and midnight.\n *\n * This functionality is only available when you have loaded the full locale data.\n * See the [\"I18n guide\"](guide/i18n/format-data-locale).\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns The translated day-period strings.\n * @see {@link getLocaleExtraDayPeriodRules}\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * To extract a day period use `Intl.DateTimeFormat` with the `dayPeriod` option instead.\n */\nfunction getLocaleExtraDayPeriods(locale, formStyle, width) {\n const data = ɵfindLocaleData(locale);\n checkFullData(data);\n const dayPeriodsData = [\n data[ɵLocaleDataIndex.ExtraData][0 /* ɵExtraLocaleDataIndex.ExtraDayPeriodFormats */],\n data[ɵLocaleDataIndex.ExtraData][1 /* ɵExtraLocaleDataIndex.ExtraDayPeriodStandalone */],\n ];\n const dayPeriods = getLastDefinedValue(dayPeriodsData, formStyle) || [];\n return getLastDefinedValue(dayPeriods, width) || [];\n}\n/**\n * Retrieves the writing direction of a specified locale\n * @param locale A locale code for the locale format rules to use.\n * @publicApi\n * @returns 'rtl' or 'ltr'\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * For dates and numbers, let `Intl.DateTimeFormat()` and `Intl.NumberFormat()` determine the writing direction.\n * The `Intl` alternative [`getTextInfo`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo).\n * has only partial support (Chromium M99 & Safari 17).\n * 3rd party alternatives like [`rtl-detect`](https://www.npmjs.com/package/rtl-detect) can work around this issue.\n */\nfunction getLocaleDirection(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.Directionality];\n}\n/**\n * Retrieves the first value that is defined in an array, going backwards from an index position.\n *\n * To avoid repeating the same data (as when the \"format\" and \"standalone\" forms are the same)\n * add the first value to the locale data arrays, and add other values only if they are different.\n *\n * @param data The data array to retrieve from.\n * @param index A 0-based index into the array to start from.\n * @returns The value immediately before the given index position.\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n */\nfunction getLastDefinedValue(data, index) {\n for (let i = index; i > -1; i--) {\n if (typeof data[i] !== 'undefined') {\n return data[i];\n }\n }\n throw new Error('Locale data API: locale data undefined');\n}\n/**\n * Extracts the hours and minutes from a string like \"15:45\"\n */\nfunction extractTime(time) {\n const [h, m] = time.split(':');\n return { hours: +h, minutes: +m };\n}\n/**\n * Retrieves the currency symbol for a given currency code.\n *\n * For example, for the default `en-US` locale, the code `USD` can\n * be represented by the narrow symbol `$` or the wide symbol `US$`.\n *\n * @param code The currency code.\n * @param format The format, `wide` or `narrow`.\n * @param locale A locale code for the locale format rules to use.\n *\n * @returns The symbol, or the currency code if no symbol is available.\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * You can use `Intl.NumberFormat().formatToParts()` to extract the currency symbol.\n * For example: `Intl.NumberFormat('en', {style:'currency', currency: 'USD'}).formatToParts().find(part => part.type === 'currency').value`\n * returns `$` for USD currency code in the `en` locale.\n * Note: `US$` is a currency symbol for the `en-ca` locale but not the `en-us` locale.\n */\nfunction getCurrencySymbol(code, format, locale = 'en') {\n const currency = getLocaleCurrencies(locale)[code] || CURRENCIES_EN[code] || [];\n const symbolNarrow = currency[1 /* ɵCurrencyIndex.SymbolNarrow */];\n if (format === 'narrow' && typeof symbolNarrow === 'string') {\n return symbolNarrow;\n }\n return currency[0 /* ɵCurrencyIndex.Symbol */] || code;\n}\n// Most currencies have cents, that's why the default is 2\nconst DEFAULT_NB_OF_CURRENCY_DIGITS = 2;\n/**\n * Reports the number of decimal digits for a given currency.\n * The value depends upon the presence of cents in that particular currency.\n *\n * @param code The currency code.\n * @returns The number of decimal digits, typically 0 or 2.\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n *\n * @deprecated Angular recommends relying on the `Intl` API for i18n.\n * This function should not be used anymore. Let `Intl.NumberFormat` determine the number of digits to display for the currency\n */\nfunction getNumberOfCurrencyDigits(code) {\n let digits;\n const currency = CURRENCIES_EN[code];\n if (currency) {\n digits = currency[2 /* ɵCurrencyIndex.NbOfDigits */];\n }\n return typeof digits === 'number' ? digits : DEFAULT_NB_OF_CURRENCY_DIGITS;\n}\n\nconst ISO8601_DATE_REGEX = /^(\\d{4,})-?(\\d\\d)-?(\\d\\d)(?:T(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:\\.(\\d+))?)?)?(Z|([+-])(\\d\\d):?(\\d\\d))?)?$/;\n// 1 2 3 4 5 6 7 8 9 10 11\nconst NAMED_FORMATS = {};\nconst DATE_FORMATS_SPLIT = /((?:[^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]*)/;\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a date according to locale rules.\n *\n * @param value The date to format, as a Date, or a number (milliseconds since UTC epoch)\n * or an [ISO date-time string](https://www.w3.org/TR/NOTE-datetime).\n * @param format The date-time components to include. See `DatePipe` for details.\n * @param locale A locale code for the locale format rules to use.\n * @param timezone The time zone. A time zone offset from GMT (such as `'+0430'`).\n * If not specified, uses host system settings.\n *\n * @returns The formatted date string.\n *\n * @see {@link DatePipe}\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n */\nfunction formatDate(value, format, locale, timezone) {\n let date = toDate(value);\n const namedFormat = getNamedFormat(locale, format);\n format = namedFormat || format;\n let parts = [];\n let match;\n while (format) {\n match = DATE_FORMATS_SPLIT.exec(format);\n if (match) {\n parts = parts.concat(match.slice(1));\n const part = parts.pop();\n if (!part) {\n break;\n }\n format = part;\n }\n else {\n parts.push(format);\n break;\n }\n }\n let dateTimezoneOffset = date.getTimezoneOffset();\n if (timezone) {\n dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);\n date = convertTimezoneToLocal(date, timezone, true);\n }\n let text = '';\n parts.forEach((value) => {\n const dateFormatter = getDateFormatter(value);\n text += dateFormatter\n ? dateFormatter(date, locale, dateTimezoneOffset)\n : value === \"''\"\n ? \"'\"\n : value.replace(/(^'|'$)/g, '').replace(/''/g, \"'\");\n });\n return text;\n}\n/**\n * Create a new Date object with the given date value, and the time set to midnight.\n *\n * We cannot use `new Date(year, month, date)` because it maps years between 0 and 99 to 1900-1999.\n * See: https://github.com/angular/angular/issues/40377\n *\n * Note that this function returns a Date object whose time is midnight in the current locale's\n * timezone. In the future we might want to change this to be midnight in UTC, but this would be a\n * considerable breaking change.\n */\nfunction createDate(year, month, date) {\n // The `newDate` is set to midnight (UTC) on January 1st 1970.\n // - In PST this will be December 31st 1969 at 4pm.\n // - In GMT this will be January 1st 1970 at 1am.\n // Note that they even have different years, dates and months!\n const newDate = new Date(0);\n // `setFullYear()` allows years like 0001 to be set correctly. This function does not\n // change the internal time of the date.\n // Consider calling `setFullYear(2019, 8, 20)` (September 20, 2019).\n // - In PST this will now be September 20, 2019 at 4pm\n // - In GMT this will now be September 20, 2019 at 1am\n newDate.setFullYear(year, month, date);\n // We want the final date to be at local midnight, so we reset the time.\n // - In PST this will now be September 20, 2019 at 12am\n // - In GMT this will now be September 20, 2019 at 12am\n newDate.setHours(0, 0, 0);\n return newDate;\n}\nfunction getNamedFormat(locale, format) {\n const localeId = getLocaleId(locale);\n NAMED_FORMATS[localeId] ??= {};\n if (NAMED_FORMATS[localeId][format]) {\n return NAMED_FORMATS[localeId][format];\n }\n let formatValue = '';\n switch (format) {\n case 'shortDate':\n formatValue = getLocaleDateFormat(locale, FormatWidth.Short);\n break;\n case 'mediumDate':\n formatValue = getLocaleDateFormat(locale, FormatWidth.Medium);\n break;\n case 'longDate':\n formatValue = getLocaleDateFormat(locale, FormatWidth.Long);\n break;\n case 'fullDate':\n formatValue = getLocaleDateFormat(locale, FormatWidth.Full);\n break;\n case 'shortTime':\n formatValue = getLocaleTimeFormat(locale, FormatWidth.Short);\n break;\n case 'mediumTime':\n formatValue = getLocaleTimeFormat(locale, FormatWidth.Medium);\n break;\n case 'longTime':\n formatValue = getLocaleTimeFormat(locale, FormatWidth.Long);\n break;\n case 'fullTime':\n formatValue = getLocaleTimeFormat(locale, FormatWidth.Full);\n break;\n case 'short':\n const shortTime = getNamedFormat(locale, 'shortTime');\n const shortDate = getNamedFormat(locale, 'shortDate');\n formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Short), [\n shortTime,\n shortDate,\n ]);\n break;\n case 'medium':\n const mediumTime = getNamedFormat(locale, 'mediumTime');\n const mediumDate = getNamedFormat(locale, 'mediumDate');\n formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Medium), [\n mediumTime,\n mediumDate,\n ]);\n break;\n case 'long':\n const longTime = getNamedFormat(locale, 'longTime');\n const longDate = getNamedFormat(locale, 'longDate');\n formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Long), [\n longTime,\n longDate,\n ]);\n break;\n case 'full':\n const fullTime = getNamedFormat(locale, 'fullTime');\n const fullDate = getNamedFormat(locale, 'fullDate');\n formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Full), [\n fullTime,\n fullDate,\n ]);\n break;\n }\n if (formatValue) {\n NAMED_FORMATS[localeId][format] = formatValue;\n }\n return formatValue;\n}\nfunction formatDateTime(str, opt_values) {\n if (opt_values) {\n str = str.replace(/\\{([^}]+)}/g, function (match, key) {\n return opt_values != null && key in opt_values ? opt_values[key] : match;\n });\n }\n return str;\n}\nfunction padNumber(num, digits, minusSign = '-', trim, negWrap) {\n let neg = '';\n if (num < 0 || (negWrap && num <= 0)) {\n if (negWrap) {\n num = -num + 1;\n }\n else {\n num = -num;\n neg = minusSign;\n }\n }\n let strNum = String(num);\n while (strNum.length < digits) {\n strNum = '0' + strNum;\n }\n if (trim) {\n strNum = strNum.slice(strNum.length - digits);\n }\n return neg + strNum;\n}\nfunction formatFractionalSeconds(milliseconds, digits) {\n const strMs = padNumber(milliseconds, 3);\n return strMs.substring(0, digits);\n}\n/**\n * Returns a date formatter that transforms a date into its locale digit representation\n */\nfunction dateGetter(name, size, offset = 0, trim = false, negWrap = false) {\n return function (date, locale) {\n let part = getDatePart(name, date);\n if (offset > 0 || part > -offset) {\n part += offset;\n }\n if (name === 3 /* DateType.Hours */) {\n if (part === 0 && offset === -12) {\n part = 12;\n }\n }\n else if (name === 6 /* DateType.FractionalSeconds */) {\n return formatFractionalSeconds(part, size);\n }\n const localeMinus = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n return padNumber(part, size, localeMinus, trim, negWrap);\n };\n}\nfunction getDatePart(part, date) {\n switch (part) {\n case 0 /* DateType.FullYear */:\n return date.getFullYear();\n case 1 /* DateType.Month */:\n return date.getMonth();\n case 2 /* DateType.Date */:\n return date.getDate();\n case 3 /* DateType.Hours */:\n return date.getHours();\n case 4 /* DateType.Minutes */:\n return date.getMinutes();\n case 5 /* DateType.Seconds */:\n return date.getSeconds();\n case 6 /* DateType.FractionalSeconds */:\n return date.getMilliseconds();\n case 7 /* DateType.Day */:\n return date.getDay();\n default:\n throw new Error(`Unknown DateType value \"${part}\".`);\n }\n}\n/**\n * Returns a date formatter that transforms a date into its locale string representation\n */\nfunction dateStrGetter(name, width, form = FormStyle.Format, extended = false) {\n return function (date, locale) {\n return getDateTranslation(date, locale, name, width, form, extended);\n };\n}\n/**\n * Returns the locale translation of a date for a given form, type and width\n */\nfunction getDateTranslation(date, locale, name, width, form, extended) {\n switch (name) {\n case 2 /* TranslationType.Months */:\n return getLocaleMonthNames(locale, form, width)[date.getMonth()];\n case 1 /* TranslationType.Days */:\n return getLocaleDayNames(locale, form, width)[date.getDay()];\n case 0 /* TranslationType.DayPeriods */:\n const currentHours = date.getHours();\n const currentMinutes = date.getMinutes();\n if (extended) {\n const rules = getLocaleExtraDayPeriodRules(locale);\n const dayPeriods = getLocaleExtraDayPeriods(locale, form, width);\n const index = rules.findIndex((rule) => {\n if (Array.isArray(rule)) {\n // morning, afternoon, evening, night\n const [from, to] = rule;\n const afterFrom = currentHours >= from.hours && currentMinutes >= from.minutes;\n const beforeTo = currentHours < to.hours || (currentHours === to.hours && currentMinutes < to.minutes);\n // We must account for normal rules that span a period during the day (e.g. 6am-9am)\n // where `from` is less (earlier) than `to`. But also rules that span midnight (e.g.\n // 10pm - 5am) where `from` is greater (later!) than `to`.\n //\n // In the first case the current time must be BOTH after `from` AND before `to`\n // (e.g. 8am is after 6am AND before 10am).\n //\n // In the second case the current time must be EITHER after `from` OR before `to`\n // (e.g. 4am is before 5am but not after 10pm; and 11pm is not before 5am but it is\n // after 10pm).\n if (from.hours < to.hours) {\n if (afterFrom && beforeTo) {\n return true;\n }\n }\n else if (afterFrom || beforeTo) {\n return true;\n }\n }\n else {\n // noon or midnight\n if (rule.hours === currentHours && rule.minutes === currentMinutes) {\n return true;\n }\n }\n return false;\n });\n if (index !== -1) {\n return dayPeriods[index];\n }\n }\n // if no rules for the day periods, we use am/pm by default\n return getLocaleDayPeriods(locale, form, width)[currentHours < 12 ? 0 : 1];\n case 3 /* TranslationType.Eras */:\n return getLocaleEraNames(locale, width)[date.getFullYear() <= 0 ? 0 : 1];\n default:\n // This default case is not needed by TypeScript compiler, as the switch is exhaustive.\n // However Closure Compiler does not understand that and reports an error in typed mode.\n // The `throw new Error` below works around the problem, and the unexpected: never variable\n // makes sure tsc still checks this code is unreachable.\n const unexpected = name;\n throw new Error(`unexpected translation type ${unexpected}`);\n }\n}\n/**\n * Returns a date formatter that transforms a date and an offset into a timezone with ISO8601 or\n * GMT format depending on the width (eg: short = +0430, short:GMT = GMT+4, long = GMT+04:30,\n * extended = +04:30)\n */\nfunction timeZoneGetter(width) {\n return function (date, locale, offset) {\n const zone = -1 * offset;\n const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n switch (width) {\n case 0 /* ZoneWidth.Short */:\n return ((zone >= 0 ? '+' : '') +\n padNumber(hours, 2, minusSign) +\n padNumber(Math.abs(zone % 60), 2, minusSign));\n case 1 /* ZoneWidth.ShortGMT */:\n return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 1, minusSign);\n case 2 /* ZoneWidth.Long */:\n return ('GMT' +\n (zone >= 0 ? '+' : '') +\n padNumber(hours, 2, minusSign) +\n ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign));\n case 3 /* ZoneWidth.Extended */:\n if (offset === 0) {\n return 'Z';\n }\n else {\n return ((zone >= 0 ? '+' : '') +\n padNumber(hours, 2, minusSign) +\n ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign));\n }\n default:\n throw new Error(`Unknown zone width \"${width}\"`);\n }\n };\n}\nconst JANUARY = 0;\nconst THURSDAY = 4;\nfunction getFirstThursdayOfYear(year) {\n const firstDayOfYear = createDate(year, JANUARY, 1).getDay();\n return createDate(year, 0, 1 + (firstDayOfYear <= THURSDAY ? THURSDAY : THURSDAY + 7) - firstDayOfYear);\n}\n/**\n * ISO Week starts on day 1 (Monday) and ends with day 0 (Sunday)\n */\nfunction getThursdayThisIsoWeek(datetime) {\n // getDay returns 0-6 range with sunday as 0.\n const currentDay = datetime.getDay();\n // On a Sunday, read the previous Thursday since ISO weeks start on Monday.\n const deltaToThursday = currentDay === 0 ? -3 : THURSDAY - currentDay;\n return createDate(datetime.getFullYear(), datetime.getMonth(), datetime.getDate() + deltaToThursday);\n}\nfunction weekGetter(size, monthBased = false) {\n return function (date, locale) {\n let result;\n if (monthBased) {\n const nbDaysBefore1stDayOfMonth = new Date(date.getFullYear(), date.getMonth(), 1).getDay() - 1;\n const today = date.getDate();\n result = 1 + Math.floor((today + nbDaysBefore1stDayOfMonth) / 7);\n }\n else {\n const thisThurs = getThursdayThisIsoWeek(date);\n // Some days of a year are part of next year according to ISO 8601.\n // Compute the firstThurs from the year of this week's Thursday\n const firstThurs = getFirstThursdayOfYear(thisThurs.getFullYear());\n const diff = thisThurs.getTime() - firstThurs.getTime();\n result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week\n }\n return padNumber(result, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n };\n}\n/**\n * Returns a date formatter that provides the week-numbering year for the input date.\n */\nfunction weekNumberingYearGetter(size, trim = false) {\n return function (date, locale) {\n const thisThurs = getThursdayThisIsoWeek(date);\n const weekNumberingYear = thisThurs.getFullYear();\n return padNumber(weekNumberingYear, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign), trim);\n };\n}\nconst DATE_FORMATS = {};\n// Based on CLDR formats:\n// See complete list: http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n// See also explanations: http://cldr.unicode.org/translation/date-time\n// TODO(ocombe): support all missing cldr formats: U, Q, D, F, e, j, J, C, A, v, V, X, x\nfunction getDateFormatter(format) {\n if (DATE_FORMATS[format]) {\n return DATE_FORMATS[format];\n }\n let formatter;\n switch (format) {\n // Era name (AD/BC)\n case 'G':\n case 'GG':\n case 'GGG':\n formatter = dateStrGetter(3 /* TranslationType.Eras */, TranslationWidth.Abbreviated);\n break;\n case 'GGGG':\n formatter = dateStrGetter(3 /* TranslationType.Eras */, TranslationWidth.Wide);\n break;\n case 'GGGGG':\n formatter = dateStrGetter(3 /* TranslationType.Eras */, TranslationWidth.Narrow);\n break;\n // 1 digit representation of the year, e.g. (AD 1 => 1, AD 199 => 199)\n case 'y':\n formatter = dateGetter(0 /* DateType.FullYear */, 1, 0, false, true);\n break;\n // 2 digit representation of the year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)\n case 'yy':\n formatter = dateGetter(0 /* DateType.FullYear */, 2, 0, true, true);\n break;\n // 3 digit representation of the year, padded (000-999). (e.g. AD 2001 => 01, AD 2010 => 10)\n case 'yyy':\n formatter = dateGetter(0 /* DateType.FullYear */, 3, 0, false, true);\n break;\n // 4 digit representation of the year (e.g. AD 1 => 0001, AD 2010 => 2010)\n case 'yyyy':\n formatter = dateGetter(0 /* DateType.FullYear */, 4, 0, false, true);\n break;\n // 1 digit representation of the week-numbering year, e.g. (AD 1 => 1, AD 199 => 199)\n case 'Y':\n formatter = weekNumberingYearGetter(1);\n break;\n // 2 digit representation of the week-numbering year, padded (00-99). (e.g. AD 2001 => 01, AD\n // 2010 => 10)\n case 'YY':\n formatter = weekNumberingYearGetter(2, true);\n break;\n // 3 digit representation of the week-numbering year, padded (000-999). (e.g. AD 1 => 001, AD\n // 2010 => 2010)\n case 'YYY':\n formatter = weekNumberingYearGetter(3);\n break;\n // 4 digit representation of the week-numbering year (e.g. AD 1 => 0001, AD 2010 => 2010)\n case 'YYYY':\n formatter = weekNumberingYearGetter(4);\n break;\n // Month of the year (1-12), numeric\n case 'M':\n case 'L':\n formatter = dateGetter(1 /* DateType.Month */, 1, 1);\n break;\n case 'MM':\n case 'LL':\n formatter = dateGetter(1 /* DateType.Month */, 2, 1);\n break;\n // Month of the year (January, ...), string, format\n case 'MMM':\n formatter = dateStrGetter(2 /* TranslationType.Months */, TranslationWidth.Abbreviated);\n break;\n case 'MMMM':\n formatter = dateStrGetter(2 /* TranslationType.Months */, TranslationWidth.Wide);\n break;\n case 'MMMMM':\n formatter = dateStrGetter(2 /* TranslationType.Months */, TranslationWidth.Narrow);\n break;\n // Month of the year (January, ...), string, standalone\n case 'LLL':\n formatter = dateStrGetter(2 /* TranslationType.Months */, TranslationWidth.Abbreviated, FormStyle.Standalone);\n break;\n case 'LLLL':\n formatter = dateStrGetter(2 /* TranslationType.Months */, TranslationWidth.Wide, FormStyle.Standalone);\n break;\n case 'LLLLL':\n formatter = dateStrGetter(2 /* TranslationType.Months */, TranslationWidth.Narrow, FormStyle.Standalone);\n break;\n // Week of the year (1, ... 52)\n case 'w':\n formatter = weekGetter(1);\n break;\n case 'ww':\n formatter = weekGetter(2);\n break;\n // Week of the month (1, ...)\n case 'W':\n formatter = weekGetter(1, true);\n break;\n // Day of the month (1-31)\n case 'd':\n formatter = dateGetter(2 /* DateType.Date */, 1);\n break;\n case 'dd':\n formatter = dateGetter(2 /* DateType.Date */, 2);\n break;\n // Day of the Week StandAlone (1, 1, Mon, Monday, M, Mo)\n case 'c':\n case 'cc':\n formatter = dateGetter(7 /* DateType.Day */, 1);\n break;\n case 'ccc':\n formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Abbreviated, FormStyle.Standalone);\n break;\n case 'cccc':\n formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Wide, FormStyle.Standalone);\n break;\n case 'ccccc':\n formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Narrow, FormStyle.Standalone);\n break;\n case 'cccccc':\n formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Short, FormStyle.Standalone);\n break;\n // Day of the Week\n case 'E':\n case 'EE':\n case 'EEE':\n formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Abbreviated);\n break;\n case 'EEEE':\n formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Wide);\n break;\n case 'EEEEE':\n formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Narrow);\n break;\n case 'EEEEEE':\n formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Short);\n break;\n // Generic period of the day (am-pm)\n case 'a':\n case 'aa':\n case 'aaa':\n formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Abbreviated);\n break;\n case 'aaaa':\n formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Wide);\n break;\n case 'aaaaa':\n formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Narrow);\n break;\n // Extended period of the day (midnight, at night, ...), standalone\n case 'b':\n case 'bb':\n case 'bbb':\n formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Abbreviated, FormStyle.Standalone, true);\n break;\n case 'bbbb':\n formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Wide, FormStyle.Standalone, true);\n break;\n case 'bbbbb':\n formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Narrow, FormStyle.Standalone, true);\n break;\n // Extended period of the day (midnight, night, ...), standalone\n case 'B':\n case 'BB':\n case 'BBB':\n formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Abbreviated, FormStyle.Format, true);\n break;\n case 'BBBB':\n formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Wide, FormStyle.Format, true);\n break;\n case 'BBBBB':\n formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Narrow, FormStyle.Format, true);\n break;\n // Hour in AM/PM, (1-12)\n case 'h':\n formatter = dateGetter(3 /* DateType.Hours */, 1, -12);\n break;\n case 'hh':\n formatter = dateGetter(3 /* DateType.Hours */, 2, -12);\n break;\n // Hour of the day (0-23)\n case 'H':\n formatter = dateGetter(3 /* DateType.Hours */, 1);\n break;\n // Hour in day, padded (00-23)\n case 'HH':\n formatter = dateGetter(3 /* DateType.Hours */, 2);\n break;\n // Minute of the hour (0-59)\n case 'm':\n formatter = dateGetter(4 /* DateType.Minutes */, 1);\n break;\n case 'mm':\n formatter = dateGetter(4 /* DateType.Minutes */, 2);\n break;\n // Second of the minute (0-59)\n case 's':\n formatter = dateGetter(5 /* DateType.Seconds */, 1);\n break;\n case 'ss':\n formatter = dateGetter(5 /* DateType.Seconds */, 2);\n break;\n // Fractional second\n case 'S':\n formatter = dateGetter(6 /* DateType.FractionalSeconds */, 1);\n break;\n case 'SS':\n formatter = dateGetter(6 /* DateType.FractionalSeconds */, 2);\n break;\n case 'SSS':\n formatter = dateGetter(6 /* DateType.FractionalSeconds */, 3);\n break;\n // Timezone ISO8601 short format (-0430)\n case 'Z':\n case 'ZZ':\n case 'ZZZ':\n formatter = timeZoneGetter(0 /* ZoneWidth.Short */);\n break;\n // Timezone ISO8601 extended format (-04:30)\n case 'ZZZZZ':\n formatter = timeZoneGetter(3 /* ZoneWidth.Extended */);\n break;\n // Timezone GMT short format (GMT+4)\n case 'O':\n case 'OO':\n case 'OOO':\n // Should be location, but fallback to format O instead because we don't have the data yet\n case 'z':\n case 'zz':\n case 'zzz':\n formatter = timeZoneGetter(1 /* ZoneWidth.ShortGMT */);\n break;\n // Timezone GMT long format (GMT+0430)\n case 'OOOO':\n case 'ZZZZ':\n // Should be location, but fallback to format O instead because we don't have the data yet\n case 'zzzz':\n formatter = timeZoneGetter(2 /* ZoneWidth.Long */);\n break;\n default:\n return null;\n }\n DATE_FORMATS[format] = formatter;\n return formatter;\n}\nfunction timezoneToOffset(timezone, fallback) {\n // Support: IE 11 only, Edge 13-15+\n // IE/Edge do not \"understand\" colon (`:`) in timezone\n timezone = timezone.replace(/:/g, '');\n const requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;\n return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;\n}\nfunction addDateMinutes(date, minutes) {\n date = new Date(date.getTime());\n date.setMinutes(date.getMinutes() + minutes);\n return date;\n}\nfunction convertTimezoneToLocal(date, timezone, reverse) {\n const reverseValue = reverse ? -1 : 1;\n const dateTimezoneOffset = date.getTimezoneOffset();\n const timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);\n return addDateMinutes(date, reverseValue * (timezoneOffset - dateTimezoneOffset));\n}\n/**\n * Converts a value to date.\n *\n * Supported input formats:\n * - `Date`\n * - number: timestamp\n * - string: numeric (e.g. \"1234\"), ISO and date strings in a format supported by\n * [Date.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse).\n * Note: ISO strings without time return a date without timeoffset.\n *\n * Throws if unable to convert to a date.\n */\nfunction toDate(value) {\n if (isDate(value)) {\n return value;\n }\n if (typeof value === 'number' && !isNaN(value)) {\n return new Date(value);\n }\n if (typeof value === 'string') {\n value = value.trim();\n if (/^(\\d{4}(-\\d{1,2}(-\\d{1,2})?)?)$/.test(value)) {\n /* For ISO Strings without time the day, month and year must be extracted from the ISO String\n before Date creation to avoid time offset and errors in the new Date.\n If we only replace '-' with ',' in the ISO String (\"2015,01,01\"), and try to create a new\n date, some browsers (e.g. IE 9) will throw an invalid Date error.\n If we leave the '-' (\"2015-01-01\") and try to create a new Date(\"2015-01-01\") the timeoffset\n is applied.\n Note: ISO months are 0 for January, 1 for February, ... */\n const [y, m = 1, d = 1] = value.split('-').map((val) => +val);\n return createDate(y, m - 1, d);\n }\n const parsedNb = parseFloat(value);\n // any string that only contains numbers, like \"1234\" but not like \"1234hello\"\n if (!isNaN(value - parsedNb)) {\n return new Date(parsedNb);\n }\n let match;\n if ((match = value.match(ISO8601_DATE_REGEX))) {\n return isoStringToDate(match);\n }\n }\n const date = new Date(value);\n if (!isDate(date)) {\n throw new Error(`Unable to convert \"${value}\" into a date`);\n }\n return date;\n}\n/**\n * Converts a date in ISO8601 to a Date.\n * Used instead of `Date.parse` because of browser discrepancies.\n */\nfunction isoStringToDate(match) {\n const date = new Date(0);\n let tzHour = 0;\n let tzMin = 0;\n // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n const timeSetter = match[8] ? date.setUTCHours : date.setHours;\n // if there is a timezone defined like \"+01:00\" or \"+0100\"\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n const h = Number(match[4] || 0) - tzHour;\n const m = Number(match[5] || 0) - tzMin;\n const s = Number(match[6] || 0);\n // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)\n // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`\n // becomes `999ms`.\n const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n}\nfunction isDate(value) {\n return value instanceof Date && !isNaN(value.valueOf());\n}\n\nconst NUMBER_FORMAT_REGEXP = /^(\\d+)?\\.((\\d+)(-(\\d+))?)?$/;\nconst MAX_DIGITS = 22;\nconst DECIMAL_SEP = '.';\nconst ZERO_CHAR = '0';\nconst PATTERN_SEP = ';';\nconst GROUP_SEP = ',';\nconst DIGIT_CHAR = '#';\nconst CURRENCY_CHAR = '¤';\nconst PERCENT_CHAR = '%';\n/**\n * Transforms a number to a locale string based on a style and a format.\n */\nfunction formatNumberToLocaleString(value, pattern, locale, groupSymbol, decimalSymbol, digitsInfo, isPercent = false) {\n let formattedText = '';\n let isZero = false;\n if (!isFinite(value)) {\n formattedText = getLocaleNumberSymbol(locale, NumberSymbol.Infinity);\n }\n else {\n let parsedNumber = parseNumber(value);\n if (isPercent) {\n parsedNumber = toPercent(parsedNumber);\n }\n let minInt = pattern.minInt;\n let minFraction = pattern.minFrac;\n let maxFraction = pattern.maxFrac;\n if (digitsInfo) {\n const parts = digitsInfo.match(NUMBER_FORMAT_REGEXP);\n if (parts === null) {\n throw new Error(`${digitsInfo} is not a valid digit info`);\n }\n const minIntPart = parts[1];\n const minFractionPart = parts[3];\n const maxFractionPart = parts[5];\n if (minIntPart != null) {\n minInt = parseIntAutoRadix(minIntPart);\n }\n if (minFractionPart != null) {\n minFraction = parseIntAutoRadix(minFractionPart);\n }\n if (maxFractionPart != null) {\n maxFraction = parseIntAutoRadix(maxFractionPart);\n }\n else if (minFractionPart != null && minFraction > maxFraction) {\n maxFraction = minFraction;\n }\n }\n roundNumber(parsedNumber, minFraction, maxFraction);\n let digits = parsedNumber.digits;\n let integerLen = parsedNumber.integerLen;\n const exponent = parsedNumber.exponent;\n let decimals = [];\n isZero = digits.every((d) => !d);\n // pad zeros for small numbers\n for (; integerLen < minInt; integerLen++) {\n digits.unshift(0);\n }\n // pad zeros for small numbers\n for (; integerLen < 0; integerLen++) {\n digits.unshift(0);\n }\n // extract decimals digits\n if (integerLen > 0) {\n decimals = digits.splice(integerLen, digits.length);\n }\n else {\n decimals = digits;\n digits = [0];\n }\n // format the integer digits with grouping separators\n const groups = [];\n if (digits.length >= pattern.lgSize) {\n groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));\n }\n while (digits.length > pattern.gSize) {\n groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));\n }\n if (digits.length) {\n groups.unshift(digits.join(''));\n }\n formattedText = groups.join(getLocaleNumberSymbol(locale, groupSymbol));\n // append the decimal digits\n if (decimals.length) {\n formattedText += getLocaleNumberSymbol(locale, decimalSymbol) + decimals.join('');\n }\n if (exponent) {\n formattedText += getLocaleNumberSymbol(locale, NumberSymbol.Exponential) + '+' + exponent;\n }\n }\n if (value < 0 && !isZero) {\n formattedText = pattern.negPre + formattedText + pattern.negSuf;\n }\n else {\n formattedText = pattern.posPre + formattedText + pattern.posSuf;\n }\n return formattedText;\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a number as currency using locale rules.\n *\n * @param value The number to format.\n * @param locale A locale code for the locale format rules to use.\n * @param currency A string containing the currency symbol or its name,\n * such as \"$\" or \"Canadian Dollar\". Used in output string, but does not affect the operation\n * of the function.\n * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)\n * currency code, such as `USD` for the US dollar and `EUR` for the euro.\n * Used to determine the number of digits in the decimal part.\n * @param digitsInfo Decimal representation options, specified by a string in the following format:\n * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.\n *\n * @returns The formatted currency value.\n *\n * @see {@link formatNumber}\n * @see {@link DecimalPipe}\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n */\nfunction formatCurrency(value, locale, currency, currencyCode, digitsInfo) {\n const format = getLocaleNumberFormat(locale, NumberFormatStyle.Currency);\n const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n pattern.minFrac = getNumberOfCurrencyDigits(currencyCode);\n pattern.maxFrac = pattern.minFrac;\n const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.CurrencyGroup, NumberSymbol.CurrencyDecimal, digitsInfo);\n return (res\n .replace(CURRENCY_CHAR, currency)\n // if we have 2 time the currency character, the second one is ignored\n .replace(CURRENCY_CHAR, '')\n // If there is a spacing between currency character and the value and\n // the currency character is suppressed by passing an empty string, the\n // spacing character would remain as part of the string. Then we\n // should remove it.\n .trim());\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a number as a percentage according to locale rules.\n *\n * @param value The number to format.\n * @param locale A locale code for the locale format rules to use.\n * @param digitsInfo Decimal representation options, specified by a string in the following format:\n * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.\n *\n * @returns The formatted percentage value.\n *\n * @see {@link formatNumber}\n * @see {@link DecimalPipe}\n * @see [Internationalization (i18n) Guide](guide/i18n)\n * @publicApi\n *\n */\nfunction formatPercent(value, locale, digitsInfo) {\n const format = getLocaleNumberFormat(locale, NumberFormatStyle.Percent);\n const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo, true);\n return res.replace(new RegExp(PERCENT_CHAR, 'g'), getLocaleNumberSymbol(locale, NumberSymbol.PercentSign));\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a number as text, with group sizing, separator, and other\n * parameters based on the locale.\n *\n * @param value The number to format.\n * @param locale A locale code for the locale format rules to use.\n * @param digitsInfo Decimal representation options, specified by a string in the following format:\n * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.\n *\n * @returns The formatted text string.\n * @see [Internationalization (i18n) Guide](guide/i18n)\n *\n * @publicApi\n */\nfunction formatNumber(value, locale, digitsInfo) {\n const format = getLocaleNumberFormat(locale, NumberFormatStyle.Decimal);\n const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n return formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo);\n}\nfunction parseNumberFormat(format, minusSign = '-') {\n const p = {\n minInt: 1,\n minFrac: 0,\n maxFrac: 0,\n posPre: '',\n posSuf: '',\n negPre: '',\n negSuf: '',\n gSize: 0,\n lgSize: 0,\n };\n const patternParts = format.split(PATTERN_SEP);\n const positive = patternParts[0];\n const negative = patternParts[1];\n const positiveParts = positive.indexOf(DECIMAL_SEP) !== -1\n ? positive.split(DECIMAL_SEP)\n : [\n positive.substring(0, positive.lastIndexOf(ZERO_CHAR) + 1),\n positive.substring(positive.lastIndexOf(ZERO_CHAR) + 1),\n ], integer = positiveParts[0], fraction = positiveParts[1] || '';\n p.posPre = integer.substring(0, integer.indexOf(DIGIT_CHAR));\n for (let i = 0; i < fraction.length; i++) {\n const ch = fraction.charAt(i);\n if (ch === ZERO_CHAR) {\n p.minFrac = p.maxFrac = i + 1;\n }\n else if (ch === DIGIT_CHAR) {\n p.maxFrac = i + 1;\n }\n else {\n p.posSuf += ch;\n }\n }\n const groups = integer.split(GROUP_SEP);\n p.gSize = groups[1] ? groups[1].length : 0;\n p.lgSize = groups[2] || groups[1] ? (groups[2] || groups[1]).length : 0;\n if (negative) {\n const trunkLen = positive.length - p.posPre.length - p.posSuf.length, pos = negative.indexOf(DIGIT_CHAR);\n p.negPre = negative.substring(0, pos).replace(/'/g, '');\n p.negSuf = negative.slice(pos + trunkLen).replace(/'/g, '');\n }\n else {\n p.negPre = minusSign + p.posPre;\n p.negSuf = p.posSuf;\n }\n return p;\n}\n// Transforms a parsed number into a percentage by multiplying it by 100\nfunction toPercent(parsedNumber) {\n // if the number is 0, don't do anything\n if (parsedNumber.digits[0] === 0) {\n return parsedNumber;\n }\n // Getting the current number of decimals\n const fractionLen = parsedNumber.digits.length - parsedNumber.integerLen;\n if (parsedNumber.exponent) {\n parsedNumber.exponent += 2;\n }\n else {\n if (fractionLen === 0) {\n parsedNumber.digits.push(0, 0);\n }\n else if (fractionLen === 1) {\n parsedNumber.digits.push(0);\n }\n parsedNumber.integerLen += 2;\n }\n return parsedNumber;\n}\n/**\n * Parses a number.\n * Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/\n */\nfunction parseNumber(num) {\n let numStr = Math.abs(num) + '';\n let exponent = 0, digits, integerLen;\n let i, j, zeros;\n // Decimal point?\n if ((integerLen = numStr.indexOf(DECIMAL_SEP)) > -1) {\n numStr = numStr.replace(DECIMAL_SEP, '');\n }\n // Exponential form?\n if ((i = numStr.search(/e/i)) > 0) {\n // Work out the exponent.\n if (integerLen < 0)\n integerLen = i;\n integerLen += +numStr.slice(i + 1);\n numStr = numStr.substring(0, i);\n }\n else if (integerLen < 0) {\n // There was no decimal point or exponent so it is an integer.\n integerLen = numStr.length;\n }\n // Count the number of leading zeros.\n for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) {\n /* empty */\n }\n if (i === (zeros = numStr.length)) {\n // The digits are all zero.\n digits = [0];\n integerLen = 1;\n }\n else {\n // Count the number of trailing zeros\n zeros--;\n while (numStr.charAt(zeros) === ZERO_CHAR)\n zeros--;\n // Trailing zeros are insignificant so ignore them\n integerLen -= i;\n digits = [];\n // Convert string to array of digits without leading/trailing zeros.\n for (j = 0; i <= zeros; i++, j++) {\n digits[j] = Number(numStr.charAt(i));\n }\n }\n // If the number overflows the maximum allowed digits then use an exponent.\n if (integerLen > MAX_DIGITS) {\n digits = digits.splice(0, MAX_DIGITS - 1);\n exponent = integerLen - 1;\n integerLen = 1;\n }\n return { digits, exponent, integerLen };\n}\n/**\n * Round the parsed number to the specified number of decimal places\n * This function changes the parsedNumber in-place\n */\nfunction roundNumber(parsedNumber, minFrac, maxFrac) {\n if (minFrac > maxFrac) {\n throw new Error(`The minimum number of digits after fraction (${minFrac}) is higher than the maximum (${maxFrac}).`);\n }\n let digits = parsedNumber.digits;\n let fractionLen = digits.length - parsedNumber.integerLen;\n const fractionSize = Math.min(Math.max(minFrac, fractionLen), maxFrac);\n // The index of the digit to where rounding is to occur\n let roundAt = fractionSize + parsedNumber.integerLen;\n let digit = digits[roundAt];\n if (roundAt > 0) {\n // Drop fractional digits beyond `roundAt`\n digits.splice(Math.max(parsedNumber.integerLen, roundAt));\n // Set non-fractional digits beyond `roundAt` to 0\n for (let j = roundAt; j < digits.length; j++) {\n digits[j] = 0;\n }\n }\n else {\n // We rounded to zero so reset the parsedNumber\n fractionLen = Math.max(0, fractionLen);\n parsedNumber.integerLen = 1;\n digits.length = Math.max(1, (roundAt = fractionSize + 1));\n digits[0] = 0;\n for (let i = 1; i < roundAt; i++)\n digits[i] = 0;\n }\n if (digit >= 5) {\n if (roundAt - 1 < 0) {\n for (let k = 0; k > roundAt; k--) {\n digits.unshift(0);\n parsedNumber.integerLen++;\n }\n digits.unshift(1);\n parsedNumber.integerLen++;\n }\n else {\n digits[roundAt - 1]++;\n }\n }\n // Pad out with zeros to get the required fraction length\n for (; fractionLen < Math.max(0, fractionSize); fractionLen++)\n digits.push(0);\n let dropTrailingZeros = fractionSize !== 0;\n // Minimal length = nb of decimals required + current nb of integers\n // Any number besides that is optional and can be removed if it's a trailing 0\n const minLen = minFrac + parsedNumber.integerLen;\n // Do any carrying, e.g. a digit was rounded up to 10\n const carry = digits.reduceRight(function (carry, d, i, digits) {\n d = d + carry;\n digits[i] = d < 10 ? d : d - 10; // d % 10\n if (dropTrailingZeros) {\n // Do not keep meaningless fractional trailing zeros (e.g. 15.52000 --> 15.52)\n if (digits[i] === 0 && i >= minLen) {\n digits.pop();\n }\n else {\n dropTrailingZeros = false;\n }\n }\n return d >= 10 ? 1 : 0; // Math.floor(d / 10);\n }, 0);\n if (carry) {\n digits.unshift(carry);\n parsedNumber.integerLen++;\n }\n}\nfunction parseIntAutoRadix(text) {\n const result = parseInt(text);\n if (isNaN(result)) {\n throw new Error('Invalid integer literal when parsing ' + text);\n }\n return result;\n}\n\n/**\n * @publicApi\n */\nclass NgLocalization {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgLocalization, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgLocalization, providedIn: 'root', useFactory: (locale) => new NgLocaleLocalization(locale), deps: [{ token: LOCALE_ID }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgLocalization, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root',\n useFactory: (locale) => new NgLocaleLocalization(locale),\n deps: [LOCALE_ID],\n }]\n }] });\n/**\n * Returns the plural category for a given value.\n * - \"=value\" when the case exists,\n * - the plural category otherwise\n */\nfunction getPluralCategory(value, cases, ngLocalization, locale) {\n let key = `=${value}`;\n if (cases.indexOf(key) > -1) {\n return key;\n }\n key = ngLocalization.getPluralCategory(value, locale);\n if (cases.indexOf(key) > -1) {\n return key;\n }\n if (cases.indexOf('other') > -1) {\n return 'other';\n }\n throw new Error(`No plural message found for value \"${value}\"`);\n}\n/**\n * Returns the plural case based on the locale\n *\n * @publicApi\n */\nclass NgLocaleLocalization extends NgLocalization {\n locale;\n constructor(locale) {\n super();\n this.locale = locale;\n }\n getPluralCategory(value, locale) {\n const plural = getLocalePluralCase(locale || this.locale)(value);\n switch (plural) {\n case Plural.Zero:\n return 'zero';\n case Plural.One:\n return 'one';\n case Plural.Two:\n return 'two';\n case Plural.Few:\n return 'few';\n case Plural.Many:\n return 'many';\n default:\n return 'other';\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgLocaleLocalization, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgLocaleLocalization });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgLocaleLocalization, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }] });\n\n/**\n * Register global data to be used internally by Angular. See the\n * [\"I18n guide\"](guide/i18n/format-data-locale) to know how to import additional locale\n * data.\n *\n * The signature registerLocaleData(data: any, extraData?: any) is deprecated since v5.1\n *\n * @publicApi\n */\nfunction registerLocaleData(data, localeId, extraData) {\n return ɵregisterLocaleData(data, localeId, extraData);\n}\n\nfunction parseCookieValue(cookieStr, name) {\n name = encodeURIComponent(name);\n for (const cookie of cookieStr.split(';')) {\n const eqIndex = cookie.indexOf('=');\n const [cookieName, cookieValue] = eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];\n if (cookieName.trim() === name) {\n return decodeURIComponent(cookieValue);\n }\n }\n return null;\n}\n\nconst WS_REGEXP = /\\s+/;\nconst EMPTY_ARRAY = [];\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n * ```html\n * <some-element [ngClass]=\"stringExp|arrayExp|objExp|Set\">...</some-element>\n *\n * <some-element [ngClass]=\"{'class1 class2 class3' : true}\">...</some-element>\n * ```\n *\n * For more simple use cases you can use the [class bindings](/guide/templates/binding#css-class-and-style-property-bindings) directly.\n * It doesn't require importing a directive.\n *\n * ```html\n * <some-element [class]=\"'first second'\">...</some-element>\n *\n * <some-element [class.expanded]=\"isExpanded\">...</some-element>\n *\n * <some-element [class]=\"['first', 'second']\">...</some-element>\n *\n * <some-element [class]=\"{'first': true, 'second': true, 'third': false}\">...</some-element>\n * ```\n * @description\n *\n * Adds and removes CSS classes on an HTML element.\n *\n * The CSS classes are updated as follows, depending on the type of the expression evaluation:\n * - `string` - the CSS classes listed in the string (space delimited) are added,\n * - `Array` - the CSS classes declared as Array elements are added,\n * - `Object` - keys are CSS classes that get added when the expression given in the value\n * evaluates to a truthy value, otherwise they are removed.\n *\n *\n * @see [Class bindings](/guide/templates/binding#css-class-and-style-property-bindings)\n *\n * @publicApi\n */\nclass NgClass {\n _ngEl;\n _renderer;\n initialClasses = EMPTY_ARRAY;\n rawClass;\n stateMap = new Map();\n constructor(_ngEl, _renderer) {\n this._ngEl = _ngEl;\n this._renderer = _renderer;\n }\n set klass(value) {\n this.initialClasses = value != null ? value.trim().split(WS_REGEXP) : EMPTY_ARRAY;\n }\n set ngClass(value) {\n this.rawClass = typeof value === 'string' ? value.trim().split(WS_REGEXP) : value;\n }\n /*\n The NgClass directive uses the custom change detection algorithm for its inputs. The custom\n algorithm is necessary since inputs are represented as complex object or arrays that need to be\n deeply-compared.\n \n This algorithm is perf-sensitive since NgClass is used very frequently and its poor performance\n might negatively impact runtime performance of the entire change detection cycle. The design of\n this algorithm is making sure that:\n - there is no unnecessary DOM manipulation (CSS classes are added / removed from the DOM only when\n needed), even if references to bound objects change;\n - there is no memory allocation if nothing changes (even relatively modest memory allocation\n during the change detection cycle can result in GC pauses for some of the CD cycles).\n \n The algorithm works by iterating over the set of bound classes, staring with [class] binding and\n then going over [ngClass] binding. For each CSS class name:\n - check if it was seen before (this information is tracked in the state map) and if its value\n changed;\n - mark it as \"touched\" - names that are not marked are not present in the latest set of binding\n and we can remove such class name from the internal data structures;\n \n After iteration over all the CSS class names we've got data structure with all the information\n necessary to synchronize changes to the DOM - it is enough to iterate over the state map, flush\n changes to the DOM and reset internal data structures so those are ready for the next change\n detection cycle.\n */\n ngDoCheck() {\n // classes from the [class] binding\n for (const klass of this.initialClasses) {\n this._updateState(klass, true);\n }\n // classes from the [ngClass] binding\n const rawClass = this.rawClass;\n if (Array.isArray(rawClass) || rawClass instanceof Set) {\n for (const klass of rawClass) {\n this._updateState(klass, true);\n }\n }\n else if (rawClass != null) {\n for (const klass of Object.keys(rawClass)) {\n this._updateState(klass, Boolean(rawClass[klass]));\n }\n }\n this._applyStateDiff();\n }\n _updateState(klass, nextEnabled) {\n const state = this.stateMap.get(klass);\n if (state !== undefined) {\n if (state.enabled !== nextEnabled) {\n state.changed = true;\n state.enabled = nextEnabled;\n }\n state.touched = true;\n }\n else {\n this.stateMap.set(klass, { enabled: nextEnabled, changed: true, touched: true });\n }\n }\n _applyStateDiff() {\n for (const stateEntry of this.stateMap) {\n const klass = stateEntry[0];\n const state = stateEntry[1];\n if (state.changed) {\n this._toggleClass(klass, state.enabled);\n state.changed = false;\n }\n else if (!state.touched) {\n // A class that was previously active got removed from the new collection of classes -\n // remove from the DOM as well.\n if (state.enabled) {\n this._toggleClass(klass, false);\n }\n this.stateMap.delete(klass);\n }\n state.touched = false;\n }\n }\n _toggleClass(klass, enabled) {\n if (ngDevMode) {\n if (typeof klass !== 'string') {\n throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ɵstringify(klass)}`);\n }\n }\n klass = klass.trim();\n if (klass.length > 0) {\n klass.split(WS_REGEXP).forEach((klass) => {\n if (enabled) {\n this._renderer.addClass(this._ngEl.nativeElement, klass);\n }\n else {\n this._renderer.removeClass(this._ngEl.nativeElement, klass);\n }\n });\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgClass, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgClass, isStandalone: true, selector: \"[ngClass]\", inputs: { klass: [\"class\", \"klass\"], ngClass: \"ngClass\" }, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgClass, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngClass]',\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { klass: [{\n type: Input,\n args: ['class']\n }], ngClass: [{\n type: Input,\n args: ['ngClass']\n }] } });\n\n/**\n * Instantiates a {@link Component} type and inserts its Host View into the current View.\n * `NgComponentOutlet` provides a declarative approach for dynamic component creation.\n *\n * `NgComponentOutlet` requires a component type, if a falsy value is set the view will clear and\n * any existing component will be destroyed.\n *\n * @usageNotes\n *\n * ### Fine tune control\n *\n * You can control the component creation process by using the following optional attributes:\n *\n * * `ngComponentOutletInputs`: Optional component inputs object, which will be bind to the\n * component.\n *\n * * `ngComponentOutletInjector`: Optional custom {@link Injector} that will be used as parent for\n * the Component. Defaults to the injector of the current view container.\n *\n * * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content\n * section of the component, if it exists.\n *\n * * `ngComponentOutletNgModule`: Optional NgModule class reference to allow loading another\n * module dynamically, then loading a component from that module.\n *\n * * `ngComponentOutletNgModuleFactory`: Deprecated config option that allows providing optional\n * NgModule factory to allow loading another module dynamically, then loading a component from that\n * module. Use `ngComponentOutletNgModule` instead.\n *\n * ### Syntax\n *\n * Simple\n * ```html\n * <ng-container *ngComponentOutlet=\"componentTypeExpression\"></ng-container>\n * ```\n *\n * With inputs\n * ```html\n * <ng-container *ngComponentOutlet=\"componentTypeExpression;\n * inputs: inputsExpression;\">\n * </ng-container>\n * ```\n *\n * Customized injector/content\n * ```html\n * <ng-container *ngComponentOutlet=\"componentTypeExpression;\n * injector: injectorExpression;\n * content: contentNodesExpression;\">\n * </ng-container>\n * ```\n *\n * Customized NgModule reference\n * ```html\n * <ng-container *ngComponentOutlet=\"componentTypeExpression;\n * ngModule: ngModuleClass;\">\n * </ng-container>\n * ```\n *\n * ### A simple example\n *\n * {@example common/ngComponentOutlet/ts/module.ts region='SimpleExample'}\n *\n * A more complete example with additional options:\n *\n * {@example common/ngComponentOutlet/ts/module.ts region='CompleteExample'}\n *\n * @publicApi\n * @ngModule CommonModule\n */\nclass NgComponentOutlet {\n _viewContainerRef;\n // TODO(crisbeto): this should be `Type<T>`, but doing so broke a few\n // targets in a TGP so we need to do it in a major version.\n /** Component that should be rendered in the outlet. */\n ngComponentOutlet = null;\n ngComponentOutletInputs;\n ngComponentOutletInjector;\n ngComponentOutletContent;\n ngComponentOutletNgModule;\n /**\n * @deprecated This input is deprecated, use `ngComponentOutletNgModule` instead.\n */\n ngComponentOutletNgModuleFactory;\n _componentRef;\n _moduleRef;\n /**\n * A helper data structure that allows us to track inputs that were part of the\n * ngComponentOutletInputs expression. Tracking inputs is necessary for proper removal of ones\n * that are no longer referenced.\n */\n _inputsUsed = new Map();\n /**\n * Gets the instance of the currently-rendered component.\n * Will be null if no component has been rendered.\n */\n get componentInstance() {\n return this._componentRef?.instance ?? null;\n }\n constructor(_viewContainerRef) {\n this._viewContainerRef = _viewContainerRef;\n }\n _needToReCreateNgModuleInstance(changes) {\n // Note: square brackets property accessor is safe for Closure compiler optimizations (the\n // `changes` argument of the `ngOnChanges` lifecycle hook retains the names of the fields that\n // were changed).\n return (changes['ngComponentOutletNgModule'] !== undefined ||\n changes['ngComponentOutletNgModuleFactory'] !== undefined);\n }\n _needToReCreateComponentInstance(changes) {\n // Note: square brackets property accessor is safe for Closure compiler optimizations (the\n // `changes` argument of the `ngOnChanges` lifecycle hook retains the names of the fields that\n // were changed).\n return (changes['ngComponentOutlet'] !== undefined ||\n changes['ngComponentOutletContent'] !== undefined ||\n changes['ngComponentOutletInjector'] !== undefined ||\n this._needToReCreateNgModuleInstance(changes));\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if (this._needToReCreateComponentInstance(changes)) {\n this._viewContainerRef.clear();\n this._inputsUsed.clear();\n this._componentRef = undefined;\n if (this.ngComponentOutlet) {\n const injector = this.ngComponentOutletInjector || this._viewContainerRef.parentInjector;\n if (this._needToReCreateNgModuleInstance(changes)) {\n this._moduleRef?.destroy();\n if (this.ngComponentOutletNgModule) {\n this._moduleRef = createNgModule(this.ngComponentOutletNgModule, getParentInjector(injector));\n }\n else if (this.ngComponentOutletNgModuleFactory) {\n this._moduleRef = this.ngComponentOutletNgModuleFactory.create(getParentInjector(injector));\n }\n else {\n this._moduleRef = undefined;\n }\n }\n this._componentRef = this._viewContainerRef.createComponent(this.ngComponentOutlet, {\n injector,\n ngModuleRef: this._moduleRef,\n projectableNodes: this.ngComponentOutletContent,\n });\n }\n }\n }\n /** @nodoc */\n ngDoCheck() {\n if (this._componentRef) {\n if (this.ngComponentOutletInputs) {\n for (const inputName of Object.keys(this.ngComponentOutletInputs)) {\n this._inputsUsed.set(inputName, true);\n }\n }\n this._applyInputStateDiff(this._componentRef);\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n this._moduleRef?.destroy();\n }\n _applyInputStateDiff(componentRef) {\n for (const [inputName, touched] of this._inputsUsed) {\n if (!touched) {\n // The input that was previously active no longer exists and needs to be set to undefined.\n componentRef.setInput(inputName, undefined);\n this._inputsUsed.delete(inputName);\n }\n else {\n // Since touched is true, it can be asserted that the inputs object is not empty.\n componentRef.setInput(inputName, this.ngComponentOutletInputs[inputName]);\n this._inputsUsed.set(inputName, false);\n }\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgComponentOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgComponentOutlet, isStandalone: true, selector: \"[ngComponentOutlet]\", inputs: { ngComponentOutlet: \"ngComponentOutlet\", ngComponentOutletInputs: \"ngComponentOutletInputs\", ngComponentOutletInjector: \"ngComponentOutletInjector\", ngComponentOutletContent: \"ngComponentOutletContent\", ngComponentOutletNgModule: \"ngComponentOutletNgModule\", ngComponentOutletNgModuleFactory: \"ngComponentOutletNgModuleFactory\" }, exportAs: [\"ngComponentOutlet\"], usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgComponentOutlet, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngComponentOutlet]',\n exportAs: 'ngComponentOutlet',\n }]\n }], ctorParameters: () => [{ type: i0.ViewContainerRef }], propDecorators: { ngComponentOutlet: [{\n type: Input\n }], ngComponentOutletInputs: [{\n type: Input\n }], ngComponentOutletInjector: [{\n type: Input\n }], ngComponentOutletContent: [{\n type: Input\n }], ngComponentOutletNgModule: [{\n type: Input\n }], ngComponentOutletNgModuleFactory: [{\n type: Input\n }] } });\n// Helper function that returns an Injector instance of a parent NgModule.\nfunction getParentInjector(injector) {\n const parentNgModule = injector.get(NgModuleRef);\n return parentNgModule.injector;\n}\n\n/**\n * @publicApi\n */\nclass NgForOfContext {\n $implicit;\n ngForOf;\n index;\n count;\n constructor(\n /** Reference to the current item from the collection. */\n $implicit, \n /**\n * The value of the iterable expression. Useful when the expression is\n * more complex then a property access, for example when using the async pipe\n * (`userStreams | async`).\n */\n ngForOf, \n /** Returns an index of the current item in the collection. */\n index, \n /** Returns total amount of items in the collection. */\n count) {\n this.$implicit = $implicit;\n this.ngForOf = ngForOf;\n this.index = index;\n this.count = count;\n }\n // Indicates whether this is the first item in the collection.\n get first() {\n return this.index === 0;\n }\n // Indicates whether this is the last item in the collection.\n get last() {\n return this.index === this.count - 1;\n }\n // Indicates whether an index of this item in the collection is even.\n get even() {\n return this.index % 2 === 0;\n }\n // Indicates whether an index of this item in the collection is odd.\n get odd() {\n return !this.even;\n }\n}\n/**\n * A [structural directive](guide/directives/structural-directives) that renders\n * a template for each item in a collection.\n * The directive is placed on an element, which becomes the parent\n * of the cloned templates.\n *\n * The `ngForOf` directive is generally used in the\n * [shorthand form](guide/directives/structural-directives#asterisk) `*ngFor`.\n * In this form, the template to be rendered for each iteration is the content\n * of an anchor element containing the directive.\n *\n * The following example shows the shorthand syntax with some options,\n * contained in an `<li>` element.\n *\n * ```html\n * <li *ngFor=\"let item of items; index as i; trackBy: trackByFn\">...</li>\n * ```\n *\n * The shorthand form expands into a long form that uses the `ngForOf` selector\n * on an `<ng-template>` element.\n * The content of the `<ng-template>` element is the `<li>` element that held the\n * short-form directive.\n *\n * Here is the expanded version of the short-form example.\n *\n * ```html\n * <ng-template ngFor let-item [ngForOf]=\"items\" let-i=\"index\" [ngForTrackBy]=\"trackByFn\">\n * <li>...</li>\n * </ng-template>\n * ```\n *\n * Angular automatically expands the shorthand syntax as it compiles the template.\n * The context for each embedded view is logically merged to the current component\n * context according to its lexical position.\n *\n * When using the shorthand syntax, Angular allows only [one structural directive\n * on an element](guide/directives/structural-directives#one-per-element).\n * If you want to iterate conditionally, for example,\n * put the `*ngIf` on a container element that wraps the `*ngFor` element.\n * For further discussion, see\n * [Structural Directives](guide/directives/structural-directives#one-per-element).\n *\n * @usageNotes\n *\n * ### Local variables\n *\n * `NgForOf` provides exported values that can be aliased to local variables.\n * For example:\n *\n * ```html\n * <li *ngFor=\"let user of users; index as i; first as isFirst\">\n * {{i}}/{{users.length}}. {{user}} <span *ngIf=\"isFirst\">default</span>\n * </li>\n * ```\n *\n * The following exported values can be aliased to local variables:\n *\n * - `$implicit: T`: The value of the individual items in the iterable (`ngForOf`).\n * - `ngForOf: NgIterable<T>`: The value of the iterable expression. Useful when the expression is\n * more complex then a property access, for example when using the async pipe (`userStreams |\n * async`).\n * - `index: number`: The index of the current item in the iterable.\n * - `count: number`: The length of the iterable.\n * - `first: boolean`: True when the item is the first item in the iterable.\n * - `last: boolean`: True when the item is the last item in the iterable.\n * - `even: boolean`: True when the item has an even index in the iterable.\n * - `odd: boolean`: True when the item has an odd index in the iterable.\n *\n * ### Change propagation\n *\n * When the contents of the iterator changes, `NgForOf` makes the corresponding changes to the DOM:\n *\n * * When an item is added, a new instance of the template is added to the DOM.\n * * When an item is removed, its template instance is removed from the DOM.\n * * When items are reordered, their respective templates are reordered in the DOM.\n *\n * Angular uses object identity to track insertions and deletions within the iterator and reproduce\n * those changes in the DOM. This has important implications for animations and any stateful\n * controls that are present, such as `<input>` elements that accept user input. Inserted rows can\n * be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state\n * such as user input.\n * For more on animations, see [Transitions and Triggers](guide/animations/transition-and-triggers).\n *\n * The identities of elements in the iterator can change while the data does not.\n * This can happen, for example, if the iterator is produced from an RPC to the server, and that\n * RPC is re-run. Even if the data hasn't changed, the second response produces objects with\n * different identities, and Angular must tear down the entire DOM and rebuild it (as if all old\n * elements were deleted and all new elements inserted).\n *\n * To avoid this expensive operation, you can customize the default tracking algorithm.\n * by supplying the `trackBy` option to `NgForOf`.\n * `trackBy` takes a function that has two arguments: `index` and `item`.\n * If `trackBy` is given, Angular tracks changes by the return value of the function.\n *\n * @see [Structural Directives](guide/directives/structural-directives)\n * @ngModule CommonModule\n * @publicApi\n */\nclass NgForOf {\n _viewContainer;\n _template;\n _differs;\n /**\n * The value of the iterable expression, which can be used as a\n * [template input variable](guide/directives/structural-directives#shorthand).\n */\n set ngForOf(ngForOf) {\n this._ngForOf = ngForOf;\n this._ngForOfDirty = true;\n }\n /**\n * Specifies a custom `TrackByFunction` to compute the identity of items in an iterable.\n *\n * If a custom `TrackByFunction` is not provided, `NgForOf` will use the item's [object\n * identity](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is)\n * as the key.\n *\n * `NgForOf` uses the computed key to associate items in an iterable with DOM elements\n * it produces for these items.\n *\n * A custom `TrackByFunction` is useful to provide good user experience in cases when items in an\n * iterable rendered using `NgForOf` have a natural identifier (for example, custom ID or a\n * primary key), and this iterable could be updated with new object instances that still\n * represent the same underlying entity (for example, when data is re-fetched from the server,\n * and the iterable is recreated and re-rendered, but most of the data is still the same).\n *\n * @see {@link TrackByFunction}\n */\n set ngForTrackBy(fn) {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {\n console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}. ` +\n `See https://angular.io/api/common/NgForOf#change-propagation for more information.`);\n }\n this._trackByFn = fn;\n }\n get ngForTrackBy() {\n return this._trackByFn;\n }\n _ngForOf = null;\n _ngForOfDirty = true;\n _differ = null;\n // TODO(issue/24571): remove '!'\n // waiting for microsoft/typescript#43662 to allow the return type `TrackByFunction|undefined` for\n // the getter\n _trackByFn;\n constructor(_viewContainer, _template, _differs) {\n this._viewContainer = _viewContainer;\n this._template = _template;\n this._differs = _differs;\n }\n /**\n * A reference to the template that is stamped out for each item in the iterable.\n * @see [template reference variable](guide/templates/variables#template-reference-variables)\n */\n set ngForTemplate(value) {\n // TODO(TS2.1): make TemplateRef<Partial<NgForRowOf<T>>> once we move to TS v2.1\n // The current type is too restrictive; a template that just uses index, for example,\n // should be acceptable.\n if (value) {\n this._template = value;\n }\n }\n /**\n * Applies the changes when needed.\n * @nodoc\n */\n ngDoCheck() {\n if (this._ngForOfDirty) {\n this._ngForOfDirty = false;\n // React on ngForOf changes only once all inputs have been initialized\n const value = this._ngForOf;\n if (!this._differ && value) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n try {\n // CAUTION: this logic is duplicated for production mode below, as the try-catch\n // is only present in development builds.\n this._differ = this._differs.find(value).create(this.ngForTrackBy);\n }\n catch {\n let errorMessage = `Cannot find a differ supporting object '${value}' of type '` +\n `${getTypeName(value)}'. NgFor only supports binding to Iterables, such as Arrays.`;\n if (typeof value === 'object') {\n errorMessage += ' Did you mean to use the keyvalue pipe?';\n }\n throw new ɵRuntimeError(-2200 /* RuntimeErrorCode.NG_FOR_MISSING_DIFFER */, errorMessage);\n }\n }\n else {\n // CAUTION: this logic is duplicated for development mode above, as the try-catch\n // is only present in development builds.\n this._differ = this._differs.find(value).create(this.ngForTrackBy);\n }\n }\n }\n if (this._differ) {\n const changes = this._differ.diff(this._ngForOf);\n if (changes)\n this._applyChanges(changes);\n }\n }\n _applyChanges(changes) {\n const viewContainer = this._viewContainer;\n changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => {\n if (item.previousIndex == null) {\n // NgForOf is never \"null\" or \"undefined\" here because the differ detected\n // that a new item needs to be inserted from the iterable. This implies that\n // there is an iterable value for \"_ngForOf\".\n viewContainer.createEmbeddedView(this._template, new NgForOfContext(item.item, this._ngForOf, -1, -1), currentIndex === null ? undefined : currentIndex);\n }\n else if (currentIndex == null) {\n viewContainer.remove(adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex);\n }\n else if (adjustedPreviousIndex !== null) {\n const view = viewContainer.get(adjustedPreviousIndex);\n viewContainer.move(view, currentIndex);\n applyViewChange(view, item);\n }\n });\n for (let i = 0, ilen = viewContainer.length; i < ilen; i++) {\n const viewRef = viewContainer.get(i);\n const context = viewRef.context;\n context.index = i;\n context.count = ilen;\n context.ngForOf = this._ngForOf;\n }\n changes.forEachIdentityChange((record) => {\n const viewRef = viewContainer.get(record.currentIndex);\n applyViewChange(viewRef, record);\n });\n }\n /**\n * Asserts the correct type of the context for the template that `NgForOf` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `NgForOf` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard(dir, ctx) {\n return true;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgForOf, isStandalone: true, selector: \"[ngFor][ngForOf]\", inputs: { ngForOf: \"ngForOf\", ngForTrackBy: \"ngForTrackBy\", ngForTemplate: \"ngForTemplate\" }, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgForOf, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngFor][ngForOf]',\n }]\n }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i0.IterableDiffers }], propDecorators: { ngForOf: [{\n type: Input\n }], ngForTrackBy: [{\n type: Input\n }], ngForTemplate: [{\n type: Input\n }] } });\nfunction applyViewChange(view, record) {\n view.context.$implicit = record.item;\n}\nfunction getTypeName(type) {\n return type['name'] || typeof type;\n}\n\n/**\n * A structural directive that conditionally includes a template based on the value of\n * an expression coerced to Boolean.\n * When the expression evaluates to true, Angular renders the template\n * provided in a `then` clause, and when false or null,\n * Angular renders the template provided in an optional `else` clause. The default\n * template for the `else` clause is blank.\n *\n * A [shorthand form](guide/directives/structural-directives#asterisk) of the directive,\n * `*ngIf=\"condition\"`, is generally used, provided\n * as an attribute of the anchor element for the inserted template.\n * Angular expands this into a more explicit version, in which the anchor element\n * is contained in an `<ng-template>` element.\n *\n * Simple form with shorthand syntax:\n *\n * ```html\n * <div *ngIf=\"condition\">Content to render when condition is true.</div>\n * ```\n *\n * Simple form with expanded syntax:\n *\n * ```html\n * <ng-template [ngIf]=\"condition\"><div>Content to render when condition is\n * true.</div></ng-template>\n * ```\n *\n * Form with an \"else\" block:\n *\n * ```html\n * <div *ngIf=\"condition; else elseBlock\">Content to render when condition is true.</div>\n * <ng-template #elseBlock>Content to render when condition is false.</ng-template>\n * ```\n *\n * Shorthand form with \"then\" and \"else\" blocks:\n *\n * ```html\n * <div *ngIf=\"condition; then thenBlock else elseBlock\"></div>\n * <ng-template #thenBlock>Content to render when condition is true.</ng-template>\n * <ng-template #elseBlock>Content to render when condition is false.</ng-template>\n * ```\n *\n * Form with storing the value locally:\n *\n * ```html\n * <div *ngIf=\"condition as value; else elseBlock\">{{value}}</div>\n * <ng-template #elseBlock>Content to render when value is null.</ng-template>\n * ```\n *\n * @usageNotes\n *\n * The `*ngIf` directive is most commonly used to conditionally show an inline template,\n * as seen in the following example.\n * The default `else` template is blank.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfSimple'}\n *\n * ### Showing an alternative template using `else`\n *\n * To display a template when `expression` evaluates to false, use an `else` template\n * binding as shown in the following example.\n * The `else` binding points to an `<ng-template>` element labeled `#elseBlock`.\n * The template can be defined anywhere in the component view, but is typically placed right after\n * `ngIf` for readability.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfElse'}\n *\n * ### Using an external `then` template\n *\n * In the previous example, the then-clause template is specified inline, as the content of the\n * tag that contains the `ngIf` directive. You can also specify a template that is defined\n * externally, by referencing a labeled `<ng-template>` element. When you do this, you can\n * change which template to use at runtime, as shown in the following example.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfThenElse'}\n *\n * ### Storing a conditional result in a variable\n *\n * You might want to show a set of properties from the same object. If you are waiting\n * for asynchronous data, the object can be undefined.\n * In this case, you can use `ngIf` and store the result of the condition in a local\n * variable as shown in the following example.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfAs'}\n *\n * This code uses only one `AsyncPipe`, so only one subscription is created.\n * The conditional statement stores the result of `userStream|async` in the local variable `user`.\n * You can then bind the local `user` repeatedly.\n *\n * The conditional displays the data only if `userStream` returns a value,\n * so you don't need to use the\n * safe-navigation-operator (`?.`)\n * to guard against null values when accessing properties.\n * You can display an alternative template while waiting for the data.\n *\n * ### Shorthand syntax\n *\n * The shorthand syntax `*ngIf` expands into two separate template specifications\n * for the \"then\" and \"else\" clauses. For example, consider the following shorthand statement,\n * that is meant to show a loading page while waiting for data to be loaded.\n *\n * ```html\n * <div class=\"hero-list\" *ngIf=\"heroes else loading\">\n * ...\n * </div>\n *\n * <ng-template #loading>\n * <div>Loading...</div>\n * </ng-template>\n * ```\n *\n * You can see that the \"else\" clause references the `<ng-template>`\n * with the `#loading` label, and the template for the \"then\" clause\n * is provided as the content of the anchor element.\n *\n * However, when Angular expands the shorthand syntax, it creates\n * another `<ng-template>` tag, with `ngIf` and `ngIfElse` directives.\n * The anchor element containing the template for the \"then\" clause becomes\n * the content of this unlabeled `<ng-template>` tag.\n *\n * ```html\n * <ng-template [ngIf]=\"heroes\" [ngIfElse]=\"loading\">\n * <div class=\"hero-list\">\n * ...\n * </div>\n * </ng-template>\n *\n * <ng-template #loading>\n * <div>Loading...</div>\n * </ng-template>\n * ```\n *\n * The presence of the implicit template object has implications for the nesting of\n * structural directives. For more on this subject, see\n * [Structural Directives](guide/directives/structural-directives#one-per-element).\n *\n * @ngModule CommonModule\n * @publicApi\n */\nclass NgIf {\n _viewContainer;\n _context = new NgIfContext();\n _thenTemplateRef = null;\n _elseTemplateRef = null;\n _thenViewRef = null;\n _elseViewRef = null;\n constructor(_viewContainer, templateRef) {\n this._viewContainer = _viewContainer;\n this._thenTemplateRef = templateRef;\n }\n /**\n * The Boolean expression to evaluate as the condition for showing a template.\n */\n set ngIf(condition) {\n this._context.$implicit = this._context.ngIf = condition;\n this._updateView();\n }\n /**\n * A template to show if the condition expression evaluates to true.\n */\n set ngIfThen(templateRef) {\n assertTemplate('ngIfThen', templateRef);\n this._thenTemplateRef = templateRef;\n this._thenViewRef = null; // clear previous view if any.\n this._updateView();\n }\n /**\n * A template to show if the condition expression evaluates to false.\n */\n set ngIfElse(templateRef) {\n assertTemplate('ngIfElse', templateRef);\n this._elseTemplateRef = templateRef;\n this._elseViewRef = null; // clear previous view if any.\n this._updateView();\n }\n _updateView() {\n if (this._context.$implicit) {\n if (!this._thenViewRef) {\n this._viewContainer.clear();\n this._elseViewRef = null;\n if (this._thenTemplateRef) {\n this._thenViewRef = this._viewContainer.createEmbeddedView(this._thenTemplateRef, this._context);\n }\n }\n }\n else {\n if (!this._elseViewRef) {\n this._viewContainer.clear();\n this._thenViewRef = null;\n if (this._elseTemplateRef) {\n this._elseViewRef = this._viewContainer.createEmbeddedView(this._elseTemplateRef, this._context);\n }\n }\n }\n }\n /** @internal */\n static ngIfUseIfTypeGuard;\n /**\n * Assert the correct type of the expression bound to the `ngIf` input within the template.\n *\n * The presence of this static field is a signal to the Ivy template type check compiler that\n * when the `NgIf` structural directive renders its template, the type of the expression bound\n * to `ngIf` should be narrowed in some way. For `NgIf`, the binding expression itself is used to\n * narrow its type, which allows the strictNullChecks feature of TypeScript to work with `NgIf`.\n */\n static ngTemplateGuard_ngIf;\n /**\n * Asserts the correct type of the context for the template that `NgIf` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `NgIf` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard(dir, ctx) {\n return true;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgIf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgIf, isStandalone: true, selector: \"[ngIf]\", inputs: { ngIf: \"ngIf\", ngIfThen: \"ngIfThen\", ngIfElse: \"ngIfElse\" }, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgIf, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngIf]',\n }]\n }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }], propDecorators: { ngIf: [{\n type: Input\n }], ngIfThen: [{\n type: Input\n }], ngIfElse: [{\n type: Input\n }] } });\n/**\n * @publicApi\n */\nclass NgIfContext {\n $implicit = null;\n ngIf = null;\n}\nfunction assertTemplate(property, templateRef) {\n const isTemplateRefOrNull = !!(!templateRef || templateRef.createEmbeddedView);\n if (!isTemplateRefOrNull) {\n throw new Error(`${property} must be a TemplateRef, but received '${ɵstringify(templateRef)}'.`);\n }\n}\n\nclass SwitchView {\n _viewContainerRef;\n _templateRef;\n _created = false;\n constructor(_viewContainerRef, _templateRef) {\n this._viewContainerRef = _viewContainerRef;\n this._templateRef = _templateRef;\n }\n create() {\n this._created = true;\n this._viewContainerRef.createEmbeddedView(this._templateRef);\n }\n destroy() {\n this._created = false;\n this._viewContainerRef.clear();\n }\n enforceState(created) {\n if (created && !this._created) {\n this.create();\n }\n else if (!created && this._created) {\n this.destroy();\n }\n }\n}\n/**\n * @ngModule CommonModule\n *\n * @description\n * The `[ngSwitch]` directive on a container specifies an expression to match against.\n * The expressions to match are provided by `ngSwitchCase` directives on views within the container.\n * - Every view that matches is rendered.\n * - If there are no matches, a view with the `ngSwitchDefault` directive is rendered.\n * - Elements within the `[NgSwitch]` statement but outside of any `NgSwitchCase`\n * or `ngSwitchDefault` directive are preserved at the location.\n *\n * @usageNotes\n * Define a container element for the directive, and specify the switch expression\n * to match against as an attribute:\n *\n * ```html\n * <container-element [ngSwitch]=\"switch_expression\">\n * ```\n *\n * Within the container, `*ngSwitchCase` statements specify the match expressions\n * as attributes. Include `*ngSwitchDefault` as the final case.\n *\n * ```html\n * <container-element [ngSwitch]=\"switch_expression\">\n * <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n * ...\n * <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * ### Usage Examples\n *\n * The following example shows how to use more than one case to display the same view:\n *\n * ```html\n * <container-element [ngSwitch]=\"switch_expression\">\n * <!-- the same view can be shown in more than one case -->\n * <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n * <some-element *ngSwitchCase=\"match_expression_2\">...</some-element>\n * <some-other-element *ngSwitchCase=\"match_expression_3\">...</some-other-element>\n * <!--default case when there are no matches -->\n * <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * The following example shows how cases can be nested:\n * ```html\n * <container-element [ngSwitch]=\"switch_expression\">\n * <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n * <some-element *ngSwitchCase=\"match_expression_2\">...</some-element>\n * <some-other-element *ngSwitchCase=\"match_expression_3\">...</some-other-element>\n * <ng-container *ngSwitchCase=\"match_expression_3\">\n * <!-- use a ng-container to group multiple root nodes -->\n * <inner-element></inner-element>\n * <inner-other-element></inner-other-element>\n * </ng-container>\n * <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * @publicApi\n * @see {@link NgSwitchCase}\n * @see {@link NgSwitchDefault}\n * @see [Structural Directives](guide/directives/structural-directives)\n *\n */\nclass NgSwitch {\n _defaultViews = [];\n _defaultUsed = false;\n _caseCount = 0;\n _lastCaseCheckIndex = 0;\n _lastCasesMatched = false;\n _ngSwitch;\n set ngSwitch(newValue) {\n this._ngSwitch = newValue;\n if (this._caseCount === 0) {\n this._updateDefaultCases(true);\n }\n }\n /** @internal */\n _addCase() {\n return this._caseCount++;\n }\n /** @internal */\n _addDefault(view) {\n this._defaultViews.push(view);\n }\n /** @internal */\n _matchCase(value) {\n const matched = value === this._ngSwitch;\n this._lastCasesMatched ||= matched;\n this._lastCaseCheckIndex++;\n if (this._lastCaseCheckIndex === this._caseCount) {\n this._updateDefaultCases(!this._lastCasesMatched);\n this._lastCaseCheckIndex = 0;\n this._lastCasesMatched = false;\n }\n return matched;\n }\n _updateDefaultCases(useDefault) {\n if (this._defaultViews.length > 0 && useDefault !== this._defaultUsed) {\n this._defaultUsed = useDefault;\n for (const defaultView of this._defaultViews) {\n defaultView.enforceState(useDefault);\n }\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgSwitch, isStandalone: true, selector: \"[ngSwitch]\", inputs: { ngSwitch: \"ngSwitch\" }, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgSwitch, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngSwitch]',\n }]\n }], propDecorators: { ngSwitch: [{\n type: Input\n }] } });\n/**\n * @ngModule CommonModule\n *\n * @description\n * Provides a switch case expression to match against an enclosing `ngSwitch` expression.\n * When the expressions match, the given `NgSwitchCase` template is rendered.\n * If multiple match expressions match the switch expression value, all of them are displayed.\n *\n * @usageNotes\n *\n * Within a switch container, `*ngSwitchCase` statements specify the match expressions\n * as attributes. Include `*ngSwitchDefault` as the final case.\n *\n * ```html\n * <container-element [ngSwitch]=\"switch_expression\">\n * <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n * ...\n * <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * Each switch-case statement contains an in-line HTML template or template reference\n * that defines the subtree to be selected if the value of the match expression\n * matches the value of the switch expression.\n *\n * As of Angular v17 the NgSwitch directive uses strict equality comparison (`===`) instead of\n * loose equality (`==`) to match different cases.\n *\n * @publicApi\n * @see {@link NgSwitch}\n * @see {@link NgSwitchDefault}\n *\n */\nclass NgSwitchCase {\n ngSwitch;\n _view;\n /**\n * Stores the HTML template to be selected on match.\n */\n ngSwitchCase;\n constructor(viewContainer, templateRef, ngSwitch) {\n this.ngSwitch = ngSwitch;\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {\n throwNgSwitchProviderNotFoundError('ngSwitchCase', 'NgSwitchCase');\n }\n ngSwitch._addCase();\n this._view = new SwitchView(viewContainer, templateRef);\n }\n /**\n * Performs case matching. For internal use only.\n * @nodoc\n */\n ngDoCheck() {\n this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgSwitchCase, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgSwitchCase, isStandalone: true, selector: \"[ngSwitchCase]\", inputs: { ngSwitchCase: \"ngSwitchCase\" }, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgSwitchCase, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngSwitchCase]',\n }]\n }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: NgSwitch, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }], propDecorators: { ngSwitchCase: [{\n type: Input\n }] } });\n/**\n * @ngModule CommonModule\n *\n * @description\n *\n * Creates a view that is rendered when no `NgSwitchCase` expressions\n * match the `NgSwitch` expression.\n * This statement should be the final case in an `NgSwitch`.\n *\n * @publicApi\n * @see {@link NgSwitch}\n * @see {@link NgSwitchCase}\n *\n */\nclass NgSwitchDefault {\n constructor(viewContainer, templateRef, ngSwitch) {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {\n throwNgSwitchProviderNotFoundError('ngSwitchDefault', 'NgSwitchDefault');\n }\n ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgSwitchDefault, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgSwitchDefault, isStandalone: true, selector: \"[ngSwitchDefault]\", ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgSwitchDefault, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngSwitchDefault]',\n }]\n }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: NgSwitch, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }] });\nfunction throwNgSwitchProviderNotFoundError(attrName, directiveName) {\n throw new ɵRuntimeError(2000 /* RuntimeErrorCode.PARENT_NG_SWITCH_NOT_FOUND */, `An element with the \"${attrName}\" attribute ` +\n `(matching the \"${directiveName}\" directive) must be located inside an element with the \"ngSwitch\" attribute ` +\n `(matching \"NgSwitch\" directive)`);\n}\n\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n * ```html\n * <some-element [ngPlural]=\"value\">\n * <ng-template ngPluralCase=\"=0\">there is nothing</ng-template>\n * <ng-template ngPluralCase=\"=1\">there is one</ng-template>\n * <ng-template ngPluralCase=\"few\">there are a few</ng-template>\n * </some-element>\n * ```\n *\n * @description\n *\n * Adds / removes DOM sub-trees based on a numeric value. Tailored for pluralization.\n *\n * Displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees\n * that match the switch expression's pluralization category.\n *\n * To use this directive you must provide a container element that sets the `[ngPlural]` attribute\n * to a switch expression. Inner elements with a `[ngPluralCase]` will display based on their\n * expression:\n * - if `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value\n * matches the switch expression exactly,\n * - otherwise, the view will be treated as a \"category match\", and will only display if exact\n * value matches aren't found and the value maps to its category for the defined locale.\n *\n * See http://cldr.unicode.org/index/cldr-spec/plural-rules\n *\n * @publicApi\n */\nclass NgPlural {\n _localization;\n _activeView;\n _caseViews = {};\n constructor(_localization) {\n this._localization = _localization;\n }\n set ngPlural(value) {\n this._updateView(value);\n }\n addCase(value, switchView) {\n this._caseViews[value] = switchView;\n }\n _updateView(switchValue) {\n this._clearViews();\n const cases = Object.keys(this._caseViews);\n const key = getPluralCategory(switchValue, cases, this._localization);\n this._activateView(this._caseViews[key]);\n }\n _clearViews() {\n if (this._activeView)\n this._activeView.destroy();\n }\n _activateView(view) {\n if (view) {\n this._activeView = view;\n this._activeView.create();\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgPlural, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgPlural, isStandalone: true, selector: \"[ngPlural]\", inputs: { ngPlural: \"ngPlural\" }, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgPlural, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngPlural]',\n }]\n }], ctorParameters: () => [{ type: NgLocalization }], propDecorators: { ngPlural: [{\n type: Input\n }] } });\n/**\n * @ngModule CommonModule\n *\n * @description\n *\n * Creates a view that will be added/removed from the parent {@link NgPlural} when the\n * given expression matches the plural expression according to CLDR rules.\n *\n * @usageNotes\n * ```html\n * <some-element [ngPlural]=\"value\">\n * <ng-template ngPluralCase=\"=0\">...</ng-template>\n * <ng-template ngPluralCase=\"other\">...</ng-template>\n * </some-element>\n *```\n *\n * See {@link NgPlural} for more details and example.\n *\n * @publicApi\n */\nclass NgPluralCase {\n value;\n constructor(value, template, viewContainer, ngPlural) {\n this.value = value;\n const isANumber = !isNaN(Number(value));\n ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgPluralCase, deps: [{ token: 'ngPluralCase', attribute: true }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: NgPlural, host: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgPluralCase, isStandalone: true, selector: \"[ngPluralCase]\", ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgPluralCase, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngPluralCase]',\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Attribute,\n args: ['ngPluralCase']\n }] }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: NgPlural, decorators: [{\n type: Host\n }] }] });\n\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n *\n * Set the width of the containing element to a pixel value returned by an expression.\n *\n * ```html\n * <some-element [ngStyle]=\"{'max-width.px': widthExp}\">...</some-element>\n * ```\n *\n * Set a collection of style values using an expression that returns key-value pairs.\n *\n * ```html\n * <some-element [ngStyle]=\"objExp\">...</some-element>\n * ```\n *\n * For more simple use cases you can use the [style bindings](/guide/templates/binding#css-class-and-style-property-bindings) directly.\n * It doesn't require importing a directive.\n *\n * Set the font of the containing element to the result of an expression.\n *\n * ```html\n * <some-element [style]=\"{'font-style': styleExp}\">...</some-element>\n * ```\n *\n * @description\n *\n * An attribute directive that updates styles for the containing HTML element.\n * Sets one or more style properties, specified as colon-separated key-value pairs.\n * The key is a style name, with an optional `.<unit>` suffix\n * (such as 'top.px', 'font-style.em').\n * The value is an expression to be evaluated.\n * The resulting non-null value, expressed in the given unit,\n * is assigned to the given style property.\n * If the result of evaluation is null, the corresponding style is removed.\n *\n * @see [Style bindings](/guide/templates/binding#css-class-and-style-property-bindings)\n *\n * @publicApi\n */\nclass NgStyle {\n _ngEl;\n _differs;\n _renderer;\n _ngStyle = null;\n _differ = null;\n constructor(_ngEl, _differs, _renderer) {\n this._ngEl = _ngEl;\n this._differs = _differs;\n this._renderer = _renderer;\n }\n set ngStyle(values) {\n this._ngStyle = values;\n if (!this._differ && values) {\n this._differ = this._differs.find(values).create();\n }\n }\n ngDoCheck() {\n if (this._differ) {\n const changes = this._differ.diff(this._ngStyle);\n if (changes) {\n this._applyChanges(changes);\n }\n }\n }\n _setStyle(nameAndUnit, value) {\n const [name, unit] = nameAndUnit.split('.');\n const flags = name.indexOf('-') === -1 ? undefined : RendererStyleFlags2.DashCase;\n if (value != null) {\n this._renderer.setStyle(this._ngEl.nativeElement, name, unit ? `${value}${unit}` : value, flags);\n }\n else {\n this._renderer.removeStyle(this._ngEl.nativeElement, name, flags);\n }\n }\n _applyChanges(changes) {\n changes.forEachRemovedItem((record) => this._setStyle(record.key, null));\n changes.forEachAddedItem((record) => this._setStyle(record.key, record.currentValue));\n changes.forEachChangedItem((record) => this._setStyle(record.key, record.currentValue));\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgStyle, deps: [{ token: i0.ElementRef }, { token: i0.KeyValueDiffers }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgStyle, isStandalone: true, selector: \"[ngStyle]\", inputs: { ngStyle: \"ngStyle\" }, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgStyle, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngStyle]',\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.KeyValueDiffers }, { type: i0.Renderer2 }], propDecorators: { ngStyle: [{\n type: Input,\n args: ['ngStyle']\n }] } });\n\n/**\n * @ngModule CommonModule\n *\n * @description\n *\n * Inserts an embedded view from a prepared `TemplateRef`.\n *\n * You can attach a context object to the `EmbeddedViewRef` by setting `[ngTemplateOutletContext]`.\n * `[ngTemplateOutletContext]` should be an object, the object's keys will be available for binding\n * by the local template `let` declarations.\n *\n * @usageNotes\n * ```html\n * <ng-container *ngTemplateOutlet=\"templateRefExp; context: contextExp\"></ng-container>\n * ```\n *\n * Using the key `$implicit` in the context object will set its value as default.\n *\n * ### Example\n *\n * {@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'}\n *\n * @publicApi\n */\nclass NgTemplateOutlet {\n _viewContainerRef;\n _viewRef = null;\n /**\n * A context object to attach to the {@link EmbeddedViewRef}. This should be an\n * object, the object's keys will be available for binding by the local template `let`\n * declarations.\n * Using the key `$implicit` in the context object will set its value as default.\n */\n ngTemplateOutletContext = null;\n /**\n * A string defining the template reference and optionally the context object for the template.\n */\n ngTemplateOutlet = null;\n /** Injector to be used within the embedded view. */\n ngTemplateOutletInjector = null;\n constructor(_viewContainerRef) {\n this._viewContainerRef = _viewContainerRef;\n }\n ngOnChanges(changes) {\n if (this._shouldRecreateView(changes)) {\n const viewContainerRef = this._viewContainerRef;\n if (this._viewRef) {\n viewContainerRef.remove(viewContainerRef.indexOf(this._viewRef));\n }\n // If there is no outlet, clear the destroyed view ref.\n if (!this.ngTemplateOutlet) {\n this._viewRef = null;\n return;\n }\n // Create a context forward `Proxy` that will always bind to the user-specified context,\n // without having to destroy and re-create views whenever the context changes.\n const viewContext = this._createContextForwardProxy();\n this._viewRef = viewContainerRef.createEmbeddedView(this.ngTemplateOutlet, viewContext, {\n injector: this.ngTemplateOutletInjector ?? undefined,\n });\n }\n }\n /**\n * We need to re-create existing embedded view if either is true:\n * - the outlet changed.\n * - the injector changed.\n */\n _shouldRecreateView(changes) {\n return !!changes['ngTemplateOutlet'] || !!changes['ngTemplateOutletInjector'];\n }\n /**\n * For a given outlet instance, we create a proxy object that delegates\n * to the user-specified context. This allows changing, or swapping out\n * the context object completely without having to destroy/re-create the view.\n */\n _createContextForwardProxy() {\n return new Proxy({}, {\n set: (_target, prop, newValue) => {\n if (!this.ngTemplateOutletContext) {\n return false;\n }\n return Reflect.set(this.ngTemplateOutletContext, prop, newValue);\n },\n get: (_target, prop, receiver) => {\n if (!this.ngTemplateOutletContext) {\n return undefined;\n }\n return Reflect.get(this.ngTemplateOutletContext, prop, receiver);\n },\n });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgTemplateOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgTemplateOutlet, isStandalone: true, selector: \"[ngTemplateOutlet]\", inputs: { ngTemplateOutletContext: \"ngTemplateOutletContext\", ngTemplateOutlet: \"ngTemplateOutlet\", ngTemplateOutletInjector: \"ngTemplateOutletInjector\" }, usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgTemplateOutlet, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngTemplateOutlet]',\n }]\n }], ctorParameters: () => [{ type: i0.ViewContainerRef }], propDecorators: { ngTemplateOutletContext: [{\n type: Input\n }], ngTemplateOutlet: [{\n type: Input\n }], ngTemplateOutletInjector: [{\n type: Input\n }] } });\n\n/**\n * A collection of Angular directives that are likely to be used in each and every Angular\n * application.\n */\nconst COMMON_DIRECTIVES = [\n NgClass,\n NgComponentOutlet,\n NgForOf,\n NgIf,\n NgTemplateOutlet,\n NgStyle,\n NgSwitch,\n NgSwitchCase,\n NgSwitchDefault,\n NgPlural,\n NgPluralCase,\n];\n\nfunction invalidPipeArgumentError(type, value) {\n return new ɵRuntimeError(2100 /* RuntimeErrorCode.INVALID_PIPE_ARGUMENT */, ngDevMode && `InvalidPipeArgument: '${value}' for pipe '${ɵstringify(type)}'`);\n}\n\nclass SubscribableStrategy {\n createSubscription(async, updateLatestValue) {\n // Subscription can be side-effectful, and we don't want any signal reads which happen in the\n // side effect of the subscription to be tracked by a component's template when that\n // subscription is triggered via the async pipe. So we wrap the subscription in `untracked` to\n // decouple from the current reactive context.\n //\n // `untracked` also prevents signal _writes_ which happen in the subscription side effect from\n // being treated as signal writes during the template evaluation (which throws errors).\n return untracked(() => async.subscribe({\n next: updateLatestValue,\n error: (e) => {\n throw e;\n },\n }));\n }\n dispose(subscription) {\n // See the comment in `createSubscription` above on the use of `untracked`.\n untracked(() => subscription.unsubscribe());\n }\n}\nclass PromiseStrategy {\n createSubscription(async, updateLatestValue) {\n return async.then(updateLatestValue, (e) => {\n throw e;\n });\n }\n dispose(subscription) { }\n}\nconst _promiseStrategy = new PromiseStrategy();\nconst _subscribableStrategy = new SubscribableStrategy();\n/**\n * @ngModule CommonModule\n * @description\n *\n * Unwraps a value from an asynchronous primitive.\n *\n * The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has\n * emitted. When a new value is emitted, the `async` pipe marks the component to be checked for\n * changes. When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid\n * potential memory leaks. When the reference of the expression changes, the `async` pipe\n * automatically unsubscribes from the old `Observable` or `Promise` and subscribes to the new one.\n *\n * @usageNotes\n *\n * ### Examples\n *\n * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the\n * promise.\n *\n * {@example common/pipes/ts/async_pipe.ts region='AsyncPipePromise'}\n *\n * It's also possible to use `async` with Observables. The example below binds the `time` Observable\n * to the view. The Observable continuously updates the view with the current time.\n *\n * {@example common/pipes/ts/async_pipe.ts region='AsyncPipeObservable'}\n *\n * @publicApi\n */\nclass AsyncPipe {\n _ref;\n _latestValue = null;\n markForCheckOnValueUpdate = true;\n _subscription = null;\n _obj = null;\n _strategy = null;\n constructor(ref) {\n // Assign `ref` into `this._ref` manually instead of declaring `_ref` in the constructor\n // parameter list, as the type of `this._ref` includes `null` unlike the type of `ref`.\n this._ref = ref;\n }\n ngOnDestroy() {\n if (this._subscription) {\n this._dispose();\n }\n // Clear the `ChangeDetectorRef` and its association with the view data, to mitigate\n // potential memory leaks in Observables that could otherwise cause the view data to\n // be retained.\n // https://github.com/angular/angular/issues/17624\n this._ref = null;\n }\n transform(obj) {\n if (!this._obj) {\n if (obj) {\n try {\n // Only call `markForCheck` if the value is updated asynchronously.\n // Synchronous updates _during_ subscription should not wastefully mark for check -\n // this value is already going to be returned from the transform function.\n this.markForCheckOnValueUpdate = false;\n this._subscribe(obj);\n }\n finally {\n this.markForCheckOnValueUpdate = true;\n }\n }\n return this._latestValue;\n }\n if (obj !== this._obj) {\n this._dispose();\n return this.transform(obj);\n }\n return this._latestValue;\n }\n _subscribe(obj) {\n this._obj = obj;\n this._strategy = this._selectStrategy(obj);\n this._subscription = this._strategy.createSubscription(obj, (value) => this._updateLatestValue(obj, value));\n }\n _selectStrategy(obj) {\n if (ɵisPromise(obj)) {\n return _promiseStrategy;\n }\n if (ɵisSubscribable(obj)) {\n return _subscribableStrategy;\n }\n throw invalidPipeArgumentError(AsyncPipe, obj);\n }\n _dispose() {\n // Note: `dispose` is only called if a subscription has been initialized before, indicating\n // that `this._strategy` is also available.\n this._strategy.dispose(this._subscription);\n this._latestValue = null;\n this._subscription = null;\n this._obj = null;\n }\n _updateLatestValue(async, value) {\n if (async === this._obj) {\n this._latestValue = value;\n if (this.markForCheckOnValueUpdate) {\n this._ref?.markForCheck();\n }\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: AsyncPipe, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });\n static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: AsyncPipe, isStandalone: true, name: \"async\", pure: false });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: AsyncPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'async',\n pure: false,\n }]\n }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }] });\n\n/**\n * Transforms text to all lower case.\n *\n * @see {@link UpperCasePipe}\n * @see {@link TitleCasePipe}\n * @usageNotes\n *\n * The following example defines a view that allows the user to enter\n * text, and then uses the pipe to convert the input text to all lower case.\n *\n * {@example common/pipes/ts/lowerupper_pipe.ts region='LowerUpperPipe'}\n *\n * @ngModule CommonModule\n * @publicApi\n */\nclass LowerCasePipe {\n transform(value) {\n if (value == null)\n return null;\n if (typeof value !== 'string') {\n throw invalidPipeArgumentError(LowerCasePipe, value);\n }\n return value.toLowerCase();\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: LowerCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\n static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: LowerCasePipe, isStandalone: true, name: \"lowercase\" });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: LowerCasePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'lowercase',\n }]\n }] });\n//\n// Regex below matches any Unicode word and number compatible with ES5. In ES2018 the same result\n// can be achieved by using /[0-9\\p{L}]\\S*/gu and also known as Unicode Property Escapes\n// (https://2ality.com/2017/07/regexp-unicode-property-escapes.html). Since there is no\n// transpilation of this functionality down to ES5 without external tool, the only solution is\n// to use already transpiled form. Example can be found here -\n// https://mothereff.in/regexpu#input=var+regex+%3D+%2F%5B0-9%5Cp%7BL%7D%5D%5CS*%2Fgu%3B%0A%0A&unicodePropertyEscape=1\n//\nconst unicodeWordMatch = /(?:[0-9A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\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uD839[\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF38\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A])\\S*/g;\n/**\n * Transforms text to title case.\n * Capitalizes the first letter of each word and transforms the\n * rest of the word to lower case.\n * Words are delimited by any whitespace character, such as a space, tab, or line-feed character.\n *\n * @see {@link LowerCasePipe}\n * @see {@link UpperCasePipe}\n *\n * @usageNotes\n * The following example shows the result of transforming various strings into title case.\n *\n * {@example common/pipes/ts/titlecase_pipe.ts region='TitleCasePipe'}\n *\n * @ngModule CommonModule\n * @publicApi\n */\nclass TitleCasePipe {\n transform(value) {\n if (value == null)\n return null;\n if (typeof value !== 'string') {\n throw invalidPipeArgumentError(TitleCasePipe, value);\n }\n return value.replace(unicodeWordMatch, (txt) => txt[0].toUpperCase() + txt.slice(1).toLowerCase());\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: TitleCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\n static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: TitleCasePipe, isStandalone: true, name: \"titlecase\" });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: TitleCasePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'titlecase',\n }]\n }] });\n/**\n * Transforms text to all upper case.\n * @see {@link LowerCasePipe}\n * @see {@link TitleCasePipe}\n *\n * @ngModule CommonModule\n * @publicApi\n */\nclass UpperCasePipe {\n transform(value) {\n if (value == null)\n return null;\n if (typeof value !== 'string') {\n throw invalidPipeArgumentError(UpperCasePipe, value);\n }\n return value.toUpperCase();\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: UpperCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\n static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: UpperCasePipe, isStandalone: true, name: \"uppercase\" });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: UpperCasePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'uppercase',\n }]\n }] });\n\n/**\n * The default date format of Angular date pipe, which corresponds to the following format:\n * `'MMM d,y'` (e.g. `Jun 15, 2015`)\n */\nconst DEFAULT_DATE_FORMAT = 'mediumDate';\n\n/**\n * Optionally-provided default timezone to use for all instances of `DatePipe` (such as `'+0430'`).\n * If the value isn't provided, the `DatePipe` will use the end-user's local system timezone.\n *\n * @deprecated use DATE_PIPE_DEFAULT_OPTIONS token to configure DatePipe\n */\nconst DATE_PIPE_DEFAULT_TIMEZONE = new InjectionToken(ngDevMode ? 'DATE_PIPE_DEFAULT_TIMEZONE' : '');\n/**\n * DI token that allows to provide default configuration for the `DatePipe` instances in an\n * application. The value is an object which can include the following fields:\n * - `dateFormat`: configures the default date format. If not provided, the `DatePipe`\n * will use the 'mediumDate' as a value.\n * - `timezone`: configures the default timezone. If not provided, the `DatePipe` will\n * use the end-user's local system timezone.\n *\n * @see {@link DatePipeConfig}\n *\n * @usageNotes\n *\n * Various date pipe default values can be overwritten by providing this token with\n * the value that has this interface.\n *\n * For example:\n *\n * Override the default date format by providing a value using the token:\n * ```ts\n * providers: [\n * {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {dateFormat: 'shortDate'}}\n * ]\n * ```\n *\n * Override the default timezone by providing a value using the token:\n * ```ts\n * providers: [\n * {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {timezone: '-1200'}}\n * ]\n * ```\n */\nconst DATE_PIPE_DEFAULT_OPTIONS = new InjectionToken(ngDevMode ? 'DATE_PIPE_DEFAULT_OPTIONS' : '');\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a date value according to locale rules.\n *\n * `DatePipe` is executed only when it detects a pure change to the input value.\n * A pure change is either a change to a primitive input value\n * (such as `String`, `Number`, `Boolean`, or `Symbol`),\n * or a changed object reference (such as `Date`, `Array`, `Function`, or `Object`).\n *\n * Note that mutating a `Date` object does not cause the pipe to be rendered again.\n * To ensure that the pipe is executed, you must create a new `Date` object.\n *\n * Only the `en-US` locale data comes with Angular. To localize dates\n * in another language, you must import the corresponding locale data.\n * See the [I18n guide](guide/i18n/format-data-locale) for more information.\n *\n * The time zone of the formatted value can be specified either by passing it in as the second\n * parameter of the pipe, or by setting the default through the `DATE_PIPE_DEFAULT_OPTIONS`\n * injection token. The value that is passed in as the second parameter takes precedence over\n * the one defined using the injection token.\n *\n * @see {@link formatDate}\n *\n *\n * @usageNotes\n *\n * The result of this pipe is not reevaluated when the input is mutated. To avoid the need to\n * reformat the date on every change-detection cycle, treat the date as an immutable object\n * and change the reference when the pipe needs to run again.\n *\n * ### Pre-defined format options\n *\n * | Option | Equivalent to | Examples (given in `en-US` locale) |\n * |---------------|-------------------------------------|-------------------------------------------------|\n * | `'short'` | `'M/d/yy, h:mm a'` | `6/15/15, 9:03 AM` |\n * | `'medium'` | `'MMM d, y, h:mm:ss a'` | `Jun 15, 2015, 9:03:01 AM` |\n * | `'long'` | `'MMMM d, y, h:mm:ss a z'` | `June 15, 2015 at 9:03:01 AM GMT+1` |\n * | `'full'` | `'EEEE, MMMM d, y, h:mm:ss a zzzz'` | `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00` |\n * | `'shortDate'` | `'M/d/yy'` | `6/15/15` |\n * | `'mediumDate'`| `'MMM d, y'` | `Jun 15, 2015` |\n * | `'longDate'` | `'MMMM d, y'` | `June 15, 2015` |\n * | `'fullDate'` | `'EEEE, MMMM d, y'` | `Monday, June 15, 2015` |\n * | `'shortTime'` | `'h:mm a'` | `9:03 AM` |\n * | `'mediumTime'`| `'h:mm:ss a'` | `9:03:01 AM` |\n * | `'longTime'` | `'h:mm:ss a z'` | `9:03:01 AM GMT+1` |\n * | `'fullTime'` | `'h:mm:ss a zzzz'` | `9:03:01 AM GMT+01:00` |\n *\n * ### Custom format options\n *\n * You can construct a format string using symbols to specify the components\n * of a date-time value, as described in the following table.\n * Format details depend on the locale.\n * Fields marked with (*) are only available in the extra data set for the given locale.\n *\n * | Field type | Format | Description | Example Value |\n * |-------------------------|-------------|---------------------------------------------------------------|------------------------------------------------------------|\n * | Era | G, GG & GGG | Abbreviated | AD |\n * | | GGGG | Wide | Anno Domini |\n * | | GGGGG | Narrow | A |\n * | Year | y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 |\n * | | yy | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 |\n * | | yyy | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 |\n * | | yyyy | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 |\n * | ISO Week-numbering year | Y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 |\n * | | YY | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 |\n * | | YYY | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 |\n * | | YYYY | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 |\n * | Month | M | Numeric: 1 digit | 9, 12 |\n * | | MM | Numeric: 2 digits + zero padded | 09, 12 |\n * | | MMM | Abbreviated | Sep |\n * | | MMMM | Wide | September |\n * | | MMMMM | Narrow | S |\n * | Month standalone | L | Numeric: 1 digit | 9, 12 |\n * | | LL | Numeric: 2 digits + zero padded | 09, 12 |\n * | | LLL | Abbreviated | Sep |\n * | | LLLL | Wide | September |\n * | | LLLLL | Narrow | S |\n * | ISO Week of year | w | Numeric: minimum digits | 1... 53 |\n * | | ww | Numeric: 2 digits + zero padded | 01... 53 |\n * | Week of month | W | Numeric: 1 digit | 1... 5 |\n * | Day of month | d | Numeric: minimum digits | 1 |\n * | | dd | Numeric: 2 digits + zero padded | 01 |\n * | Week day | E, EE & EEE | Abbreviated | Tue |\n * | | EEEE | Wide | Tuesday |\n * | | EEEEE | Narrow | T |\n * | | EEEEEE | Short | Tu |\n * | Week day standalone | c, cc | Numeric: 1 digit | 2 |\n * | | ccc | Abbreviated | Tue |\n * | | cccc | Wide | Tuesday |\n * | | ccccc | Narrow | T |\n * | | cccccc | Short | Tu |\n * | Period | a, aa & aaa | Abbreviated | am/pm or AM/PM |\n * | | aaaa | Wide (fallback to `a` when missing) | ante meridiem/post meridiem |\n * | | aaaaa | Narrow | a/p |\n * | Period* | B, BB & BBB | Abbreviated | mid. |\n * | | BBBB | Wide | am, pm, midnight, noon, morning, afternoon, evening, night |\n * | | BBBBB | Narrow | md |\n * | Period standalone* | b, bb & bbb | Abbreviated | mid. |\n * | | bbbb | Wide | am, pm, midnight, noon, morning, afternoon, evening, night |\n * | | bbbbb | Narrow | md |\n * | Hour 1-12 | h | Numeric: minimum digits | 1, 12 |\n * | | hh | Numeric: 2 digits + zero padded | 01, 12 |\n * | Hour 0-23 | H | Numeric: minimum digits | 0, 23 |\n * | | HH | Numeric: 2 digits + zero padded | 00, 23 |\n * | Minute | m | Numeric: minimum digits | 8, 59 |\n * | | mm | Numeric: 2 digits + zero padded | 08, 59 |\n * | Second | s | Numeric: minimum digits | 0... 59 |\n * | | ss | Numeric: 2 digits + zero padded | 00... 59 |\n * | Fractional seconds | S | Numeric: 1 digit | 0... 9 |\n * | | SS | Numeric: 2 digits + zero padded | 00... 99 |\n * | | SSS | Numeric: 3 digits + zero padded (= milliseconds) | 000... 999 |\n * | Zone | z, zz & zzz | Short specific non location format (fallback to O) | GMT-8 |\n * | | zzzz | Long specific non location format (fallback to OOOO) | GMT-08:00 |\n * | | Z, ZZ & ZZZ | ISO8601 basic format | -0800 |\n * | | ZZZZ | Long localized GMT format | GMT-8:00 |\n * | | ZZZZZ | ISO8601 extended format + Z indicator for offset 0 (= XXXXX) | -08:00 |\n * | | O, OO & OOO | Short localized GMT format | GMT-8 |\n * | | OOOO | Long localized GMT format | GMT-08:00 |\n *\n *\n * ### Format examples\n *\n * These examples transform a date into various formats,\n * assuming that `dateObj` is a JavaScript `Date` object for\n * year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11,\n * given in the local time for the `en-US` locale.\n *\n * ```\n * {{ dateObj | date }} // output is 'Jun 15, 2015'\n * {{ dateObj | date:'medium' }} // output is 'Jun 15, 2015, 9:43:11 PM'\n * {{ dateObj | date:'shortTime' }} // output is '9:43 PM'\n * {{ dateObj | date:'mm:ss' }} // output is '43:11'\n * {{ dateObj | date:\"MMM dd, yyyy 'at' hh:mm a\" }} // output is 'Jun 15, 2015 at 09:43 PM'\n * ```\n *\n * ### Usage example\n *\n * The following component uses a date pipe to display the current date in different formats.\n *\n * ```angular-ts\n * @Component({\n * selector: 'date-pipe',\n * template: `<div>\n * <p>Today is {{today | date}}</p>\n * <p>Or if you prefer, {{today | date:'fullDate'}}</p>\n * <p>The time is {{today | date:'h:mm a z'}}</p>\n * </div>`\n * })\n * // Get the current date and time as a date-time value.\n * export class DatePipeComponent {\n * today: number = Date.now();\n * }\n * ```\n *\n * @publicApi\n */\nclass DatePipe {\n locale;\n defaultTimezone;\n defaultOptions;\n constructor(locale, defaultTimezone, defaultOptions) {\n this.locale = locale;\n this.defaultTimezone = defaultTimezone;\n this.defaultOptions = defaultOptions;\n }\n transform(value, format, timezone, locale) {\n if (value == null || value === '' || value !== value)\n return null;\n try {\n const _format = format ?? this.defaultOptions?.dateFormat ?? DEFAULT_DATE_FORMAT;\n const _timezone = timezone ?? this.defaultOptions?.timezone ?? this.defaultTimezone ?? undefined;\n return formatDate(value, _format, locale || this.locale, _timezone);\n }\n catch (error) {\n throw invalidPipeArgumentError(DatePipe, error.message);\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DatePipe, deps: [{ token: LOCALE_ID }, { token: DATE_PIPE_DEFAULT_TIMEZONE, optional: true }, { token: DATE_PIPE_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });\n static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: DatePipe, isStandalone: true, name: \"date\" });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DatePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'date',\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [DATE_PIPE_DEFAULT_TIMEZONE]\n }, {\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [DATE_PIPE_DEFAULT_OPTIONS]\n }, {\n type: Optional\n }] }] });\n\nconst _INTERPOLATION_REGEXP = /#/g;\n/**\n * @ngModule CommonModule\n * @description\n *\n * Maps a value to a string that pluralizes the value according to locale rules.\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/pipes/ts/i18n_pipe.ts region='I18nPluralPipeComponent'}\n *\n * @publicApi\n */\nclass I18nPluralPipe {\n _localization;\n constructor(_localization) {\n this._localization = _localization;\n }\n /**\n * @param value the number to be formatted\n * @param pluralMap an object that mimics the ICU format, see\n * https://unicode-org.github.io/icu/userguide/format_parse/messages/.\n * @param locale a `string` defining the locale to use (uses the current {@link LOCALE_ID} by\n * default).\n */\n transform(value, pluralMap, locale) {\n if (value == null)\n return '';\n if (typeof pluralMap !== 'object' || pluralMap === null) {\n throw invalidPipeArgumentError(I18nPluralPipe, pluralMap);\n }\n const key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);\n return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: I18nPluralPipe, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Pipe });\n static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: I18nPluralPipe, isStandalone: true, name: \"i18nPlural\" });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: I18nPluralPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'i18nPlural',\n }]\n }], ctorParameters: () => [{ type: NgLocalization }] });\n\n/**\n * @ngModule CommonModule\n * @description\n *\n * Generic selector that displays the string that matches the current value.\n *\n * If none of the keys of the `mapping` match the `value`, then the content\n * of the `other` key is returned when present, otherwise an empty string is returned.\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/pipes/ts/i18n_pipe.ts region='I18nSelectPipeComponent'}\n *\n * @publicApi\n */\nclass I18nSelectPipe {\n /**\n * @param value a string to be internationalized.\n * @param mapping an object that indicates the text that should be displayed\n * for different values of the provided `value`.\n */\n transform(value, mapping) {\n if (value == null)\n return '';\n if (typeof mapping !== 'object' || typeof value !== 'string') {\n throw invalidPipeArgumentError(I18nSelectPipe, mapping);\n }\n if (mapping.hasOwnProperty(value)) {\n return mapping[value];\n }\n if (mapping.hasOwnProperty('other')) {\n return mapping['other'];\n }\n return '';\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: I18nSelectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\n static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: I18nSelectPipe, isStandalone: true, name: \"i18nSelect\" });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: I18nSelectPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'i18nSelect',\n }]\n }] });\n\n/**\n * @ngModule CommonModule\n * @description\n *\n * Converts a value into its JSON-format representation. Useful for debugging.\n *\n * @usageNotes\n *\n * The following component uses a JSON pipe to convert an object\n * to JSON format, and displays the string in both formats for comparison.\n *\n * {@example common/pipes/ts/json_pipe.ts region='JsonPipe'}\n *\n * @publicApi\n */\nclass JsonPipe {\n /**\n * @param value A value of any type to convert into a JSON-format string.\n */\n transform(value) {\n return JSON.stringify(value, null, 2);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: JsonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\n static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: JsonPipe, isStandalone: true, name: \"json\", pure: false });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: JsonPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'json',\n pure: false,\n }]\n }] });\n\nfunction makeKeyValuePair(key, value) {\n return { key: key, value: value };\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Transforms Object or Map into an array of key value pairs.\n *\n * The output array will be ordered by keys.\n * By default the comparator will be by Unicode point value.\n * You can optionally pass a compareFn if your keys are complex types.\n * Passing `null` as the compareFn will use natural ordering of the input.\n *\n * @usageNotes\n * ### Examples\n *\n * This examples show how an Object or a Map can be iterated by ngFor with the use of this\n * keyvalue pipe.\n *\n * {@example common/pipes/ts/keyvalue_pipe.ts region='KeyValuePipe'}\n *\n * @publicApi\n */\nclass KeyValuePipe {\n differs;\n constructor(differs) {\n this.differs = differs;\n }\n differ;\n keyValues = [];\n compareFn = defaultComparator;\n transform(input, compareFn = defaultComparator) {\n if (!input || (!(input instanceof Map) && typeof input !== 'object')) {\n return null;\n }\n // make a differ for whatever type we've been passed in\n this.differ ??= this.differs.find(input).create();\n const differChanges = this.differ.diff(input);\n const compareFnChanged = compareFn !== this.compareFn;\n if (differChanges) {\n this.keyValues = [];\n differChanges.forEachItem((r) => {\n this.keyValues.push(makeKeyValuePair(r.key, r.currentValue));\n });\n }\n if (differChanges || compareFnChanged) {\n if (compareFn) {\n this.keyValues.sort(compareFn);\n }\n this.compareFn = compareFn;\n }\n return this.keyValues;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: KeyValuePipe, deps: [{ token: i0.KeyValueDiffers }], target: i0.ɵɵFactoryTarget.Pipe });\n static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: KeyValuePipe, isStandalone: true, name: \"keyvalue\", pure: false });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: KeyValuePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'keyvalue',\n pure: false,\n }]\n }], ctorParameters: () => [{ type: i0.KeyValueDiffers }] });\nfunction defaultComparator(keyValueA, keyValueB) {\n const a = keyValueA.key;\n const b = keyValueB.key;\n // If both keys are the same, return 0 (no sorting needed).\n if (a === b)\n return 0;\n // If one of the keys is `null` or `undefined`, place it at the end of the sort.\n if (a == null)\n return 1; // `a` comes after `b`.\n if (b == null)\n return -1; // `b` comes after `a`.\n // If both keys are strings, compare them lexicographically.\n if (typeof a == 'string' && typeof b == 'string') {\n return a < b ? -1 : 1;\n }\n // If both keys are numbers, sort them numerically.\n if (typeof a == 'number' && typeof b == 'number') {\n return a - b;\n }\n // If both keys are booleans, sort `false` before `true`.\n if (typeof a == 'boolean' && typeof b == 'boolean') {\n return a < b ? -1 : 1;\n }\n // Fallback case: if keys are of different types, compare their string representations.\n const aString = String(a);\n const bString = String(b);\n // Compare the string representations lexicographically.\n return aString == bString ? 0 : aString < bString ? -1 : 1;\n}\n\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a value according to digit options and locale rules.\n * Locale determines group sizing and separator,\n * decimal point character, and other locale-specific configurations.\n *\n * @see {@link formatNumber}\n *\n * @usageNotes\n *\n * ### digitsInfo\n *\n * The value's decimal representation is specified by the `digitsInfo`\n * parameter, written in the following format:<br>\n *\n * ```\n * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}\n * ```\n *\n * - `minIntegerDigits`:\n * The minimum number of integer digits before the decimal point.\n * Default is 1.\n *\n * - `minFractionDigits`:\n * The minimum number of digits after the decimal point.\n * Default is 0.\n *\n * - `maxFractionDigits`:\n * The maximum number of digits after the decimal point.\n * Default is 3.\n *\n * If the formatted value is truncated it will be rounded using the \"to-nearest\" method:\n *\n * ```\n * {{3.6 | number: '1.0-0'}}\n * <!--will output '4'-->\n *\n * {{-3.6 | number:'1.0-0'}}\n * <!--will output '-4'-->\n * ```\n *\n * ### locale\n *\n * `locale` will format a value according to locale rules.\n * Locale determines group sizing and separator,\n * decimal point character, and other locale-specific configurations.\n *\n * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n *\n * See [Setting your app locale](guide/i18n/locale-id).\n *\n * ### Example\n *\n * The following code shows how the pipe transforms values\n * according to various format specifications,\n * where the caller's default locale is `en-US`.\n *\n * {@example common/pipes/ts/number_pipe.ts region='NumberPipe'}\n *\n * @publicApi\n */\nclass DecimalPipe {\n _locale;\n constructor(_locale) {\n this._locale = _locale;\n }\n transform(value, digitsInfo, locale) {\n if (!isValue(value))\n return null;\n locale ||= this._locale;\n try {\n const num = strToNumber(value);\n return formatNumber(num, locale, digitsInfo);\n }\n catch (error) {\n throw invalidPipeArgumentError(DecimalPipe, error.message);\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DecimalPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });\n static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: DecimalPipe, isStandalone: true, name: \"number\" });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DecimalPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'number',\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }] });\n/**\n * @ngModule CommonModule\n * @description\n *\n * Transforms a number to a percentage\n * string, formatted according to locale rules that determine group sizing and\n * separator, decimal-point character, and other locale-specific\n * configurations.\n *\n * @see {@link formatPercent}\n *\n * @usageNotes\n * The following code shows how the pipe transforms numbers\n * into text strings, according to various format specifications,\n * where the caller's default locale is `en-US`.\n *\n * {@example common/pipes/ts/percent_pipe.ts region='PercentPipe'}\n *\n * @publicApi\n */\nclass PercentPipe {\n _locale;\n constructor(_locale) {\n this._locale = _locale;\n }\n /**\n *\n * @param value The number to be formatted as a percentage.\n * @param digitsInfo Decimal representation options, specified by a string\n * in the following format:<br>\n * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.\n * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.\n * Default is `1`.\n * - `minFractionDigits`: The minimum number of digits after the decimal point.\n * Default is `0`.\n * - `maxFractionDigits`: The maximum number of digits after the decimal point.\n * Default is `0`.\n * @param locale A locale code for the locale format rules to use.\n * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n * See [Setting your app locale](guide/i18n/locale-id).\n */\n transform(value, digitsInfo, locale) {\n if (!isValue(value))\n return null;\n locale ||= this._locale;\n try {\n const num = strToNumber(value);\n return formatPercent(num, locale, digitsInfo);\n }\n catch (error) {\n throw invalidPipeArgumentError(PercentPipe, error.message);\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PercentPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });\n static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: PercentPipe, isStandalone: true, name: \"percent\" });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PercentPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'percent',\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }] });\n/**\n * @ngModule CommonModule\n * @description\n *\n * Transforms a number to a currency string, formatted according to locale rules\n * that determine group sizing and separator, decimal-point character,\n * and other locale-specific configurations.\n *\n *\n * @see {@link getCurrencySymbol}\n * @see {@link formatCurrency}\n *\n * @usageNotes\n * The following code shows how the pipe transforms numbers\n * into text strings, according to various format specifications,\n * where the caller's default locale is `en-US`.\n *\n * {@example common/pipes/ts/currency_pipe.ts region='CurrencyPipe'}\n *\n * @publicApi\n */\nclass CurrencyPipe {\n _locale;\n _defaultCurrencyCode;\n constructor(_locale, _defaultCurrencyCode = 'USD') {\n this._locale = _locale;\n this._defaultCurrencyCode = _defaultCurrencyCode;\n }\n transform(value, currencyCode = this._defaultCurrencyCode, display = 'symbol', digitsInfo, locale) {\n if (!isValue(value))\n return null;\n locale ||= this._locale;\n if (typeof display === 'boolean') {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && console && console.warn) {\n console.warn(`Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are \"code\", \"symbol\" or \"symbol-narrow\".`);\n }\n display = display ? 'symbol' : 'code';\n }\n let currency = currencyCode || this._defaultCurrencyCode;\n if (display !== 'code') {\n if (display === 'symbol' || display === 'symbol-narrow') {\n currency = getCurrencySymbol(currency, display === 'symbol' ? 'wide' : 'narrow', locale);\n }\n else {\n currency = display;\n }\n }\n try {\n const num = strToNumber(value);\n return formatCurrency(num, locale, currency, currencyCode, digitsInfo);\n }\n catch (error) {\n throw invalidPipeArgumentError(CurrencyPipe, error.message);\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: CurrencyPipe, deps: [{ token: LOCALE_ID }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe });\n static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: CurrencyPipe, isStandalone: true, name: \"currency\" });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: CurrencyPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'currency',\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [DEFAULT_CURRENCY_CODE]\n }] }] });\nfunction isValue(value) {\n return !(value == null || value === '' || value !== value);\n}\n/**\n * Transforms a string into a number (if needed).\n */\nfunction strToNumber(value) {\n // Convert strings to numbers\n if (typeof value === 'string' && !isNaN(Number(value) - parseFloat(value))) {\n return Number(value);\n }\n if (typeof value !== 'number') {\n throw new Error(`${value} is not a number`);\n }\n return value;\n}\n\n/**\n * @ngModule CommonModule\n * @description\n *\n * Creates a new `Array` or `String` containing a subset (slice) of the elements.\n *\n * @usageNotes\n *\n * All behavior is based on the expected behavior of the JavaScript API `Array.prototype.slice()`\n * and `String.prototype.slice()`.\n *\n * When operating on an `Array`, the returned `Array` is always a copy even when all\n * the elements are being returned.\n *\n * When operating on a blank value, the pipe returns the blank value.\n *\n * ### List Example\n *\n * This `ngFor` example:\n *\n * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_list'}\n *\n * produces the following:\n *\n * ```html\n * <li>b</li>\n * <li>c</li>\n * ```\n *\n * ### String Examples\n *\n * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_string'}\n *\n * @publicApi\n */\nclass SlicePipe {\n transform(value, start, end) {\n if (value == null)\n return null;\n if (!this.supports(value)) {\n throw invalidPipeArgumentError(SlicePipe, value);\n }\n return value.slice(start, end);\n }\n supports(obj) {\n return typeof obj === 'string' || Array.isArray(obj);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\n static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: SlicePipe, isStandalone: true, name: \"slice\", pure: false });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: SlicePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'slice',\n pure: false,\n }]\n }] });\n\n/**\n * @module\n * @description\n * This module provides a set of common Pipes.\n */\n/**\n * A collection of Angular pipes that are likely to be used in each and every application.\n */\nconst COMMON_PIPES = [\n AsyncPipe,\n UpperCasePipe,\n LowerCasePipe,\n JsonPipe,\n SlicePipe,\n DecimalPipe,\n PercentPipe,\n TitleCasePipe,\n CurrencyPipe,\n DatePipe,\n I18nPluralPipe,\n I18nSelectPipe,\n KeyValuePipe,\n];\n\n// Note: This does not contain the location providers,\n// as they need some platform specific implementations to work.\n/**\n * Exports all the basic Angular directives and pipes,\n * such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.\n * Re-exported by `BrowserModule`, which is included automatically in the root\n * `AppModule` when you create a new app with the CLI `new` command.\n *\n * @publicApi\n */\nclass CommonModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: CommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: CommonModule, imports: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe], exports: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: CommonModule });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: CommonModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [COMMON_DIRECTIVES, COMMON_PIPES],\n exports: [COMMON_DIRECTIVES, COMMON_PIPES],\n }]\n }] });\n\nconst PLATFORM_BROWSER_ID = 'browser';\nconst PLATFORM_SERVER_ID = 'server';\n/**\n * Returns whether a platform id represents a browser platform.\n * @publicApi\n */\nfunction isPlatformBrowser(platformId) {\n return platformId === PLATFORM_BROWSER_ID;\n}\n/**\n * Returns whether a platform id represents a server platform.\n * @publicApi\n */\nfunction isPlatformServer(platformId) {\n return platformId === PLATFORM_SERVER_ID;\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the common package.\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('19.1.4');\n\n/**\n * Defines a scroll position manager. Implemented by `BrowserViewportScroller`.\n *\n * @publicApi\n */\nclass ViewportScroller {\n // De-sugared tree-shakable injection\n // See #23917\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: ViewportScroller,\n providedIn: 'root',\n factory: () => typeof ngServerMode !== 'undefined' && ngServerMode\n ? new NullViewportScroller()\n : new BrowserViewportScroller(inject(DOCUMENT), window),\n });\n}\n/**\n * Manages the scroll position for a browser window.\n */\nclass BrowserViewportScroller {\n document;\n window;\n offset = () => [0, 0];\n constructor(document, window) {\n this.document = document;\n this.window = window;\n }\n /**\n * Configures the top offset used when scrolling to an anchor.\n * @param offset A position in screen coordinates (a tuple with x and y values)\n * or a function that returns the top offset position.\n *\n */\n setOffset(offset) {\n if (Array.isArray(offset)) {\n this.offset = () => offset;\n }\n else {\n this.offset = offset;\n }\n }\n /**\n * Retrieves the current scroll position.\n * @returns The position in screen coordinates.\n */\n getScrollPosition() {\n return [this.window.scrollX, this.window.scrollY];\n }\n /**\n * Sets the scroll position.\n * @param position The new position in screen coordinates.\n */\n scrollToPosition(position) {\n this.window.scrollTo(position[0], position[1]);\n }\n /**\n * Scrolls to an element and attempts to focus the element.\n *\n * Note that the function name here is misleading in that the target string may be an ID for a\n * non-anchor element.\n *\n * @param target The ID of an element or name of the anchor.\n *\n * @see https://html.spec.whatwg.org/#the-indicated-part-of-the-document\n * @see https://html.spec.whatwg.org/#scroll-to-fragid\n */\n scrollToAnchor(target) {\n const elSelected = findAnchorFromDocument(this.document, target);\n if (elSelected) {\n this.scrollToElement(elSelected);\n // After scrolling to the element, the spec dictates that we follow the focus steps for the\n // target. Rather than following the robust steps, simply attempt focus.\n //\n // @see https://html.spec.whatwg.org/#get-the-focusable-area\n // @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus\n // @see https://html.spec.whatwg.org/#focusable-area\n elSelected.focus();\n }\n }\n /**\n * Disables automatic scroll restoration provided by the browser.\n */\n setHistoryScrollRestoration(scrollRestoration) {\n this.window.history.scrollRestoration = scrollRestoration;\n }\n /**\n * Scrolls to an element using the native offset and the specified offset set on this scroller.\n *\n * The offset can be used when we know that there is a floating header and scrolling naively to an\n * element (ex: `scrollIntoView`) leaves the element hidden behind the floating header.\n */\n scrollToElement(el) {\n const rect = el.getBoundingClientRect();\n const left = rect.left + this.window.pageXOffset;\n const top = rect.top + this.window.pageYOffset;\n const offset = this.offset();\n this.window.scrollTo(left - offset[0], top - offset[1]);\n }\n}\nfunction findAnchorFromDocument(document, target) {\n const documentResult = document.getElementById(target) || document.getElementsByName(target)[0];\n if (documentResult) {\n return documentResult;\n }\n // `getElementById` and `getElementsByName` won't pierce through the shadow DOM so we\n // have to traverse the DOM manually and do the lookup through the shadow roots.\n if (typeof document.createTreeWalker === 'function' &&\n document.body &&\n typeof document.body.attachShadow === 'function') {\n const treeWalker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT);\n let currentNode = treeWalker.currentNode;\n while (currentNode) {\n const shadowRoot = currentNode.shadowRoot;\n if (shadowRoot) {\n // Note that `ShadowRoot` doesn't support `getElementsByName`\n // so we have to fall back to `querySelector`.\n const result = shadowRoot.getElementById(target) || shadowRoot.querySelector(`[name=\"${target}\"]`);\n if (result) {\n return result;\n }\n }\n currentNode = treeWalker.nextNode();\n }\n }\n return null;\n}\n/**\n * Provides an empty implementation of the viewport scroller.\n */\nclass NullViewportScroller {\n /**\n * Empty implementation\n */\n setOffset(offset) { }\n /**\n * Empty implementation\n */\n getScrollPosition() {\n return [0, 0];\n }\n /**\n * Empty implementation\n */\n scrollToPosition(position) { }\n /**\n * Empty implementation\n */\n scrollToAnchor(anchor) { }\n /**\n * Empty implementation\n */\n setHistoryScrollRestoration(scrollRestoration) { }\n}\n\n/**\n * A wrapper around the `XMLHttpRequest` constructor.\n *\n * @publicApi\n */\nclass XhrFactory {\n}\n\n/**\n * Value (out of 100) of the requested quality for placeholder images.\n */\nconst PLACEHOLDER_QUALITY = '20';\n\n// Converts a string that represents a URL into a URL class instance.\nfunction getUrl(src, win) {\n // Don't use a base URL is the URL is absolute.\n return isAbsoluteUrl(src) ? new URL(src) : new URL(src, win.location.href);\n}\n// Checks whether a URL is absolute (i.e. starts with `http://` or `https://`).\nfunction isAbsoluteUrl(src) {\n return /^https?:\\/\\//.test(src);\n}\n// Given a URL, extract the hostname part.\n// If a URL is a relative one - the URL is returned as is.\nfunction extractHostname(url) {\n return isAbsoluteUrl(url) ? new URL(url).hostname : url;\n}\nfunction isValidPath(path) {\n const isString = typeof path === 'string';\n if (!isString || path.trim() === '') {\n return false;\n }\n // Calling new URL() will throw if the path string is malformed\n try {\n const url = new URL(path);\n return true;\n }\n catch {\n return false;\n }\n}\nfunction normalizePath(path) {\n return path.endsWith('/') ? path.slice(0, -1) : path;\n}\nfunction normalizeSrc(src) {\n return src.startsWith('/') ? src.slice(1) : src;\n}\n\n/**\n * Noop image loader that does no transformation to the original src and just returns it as is.\n * This loader is used as a default one if more specific logic is not provided in an app config.\n *\n * @see {@link ImageLoader}\n * @see {@link NgOptimizedImage}\n */\nconst noopImageLoader = (config) => config.src;\n/**\n * Injection token that configures the image loader function.\n *\n * @see {@link ImageLoader}\n * @see {@link NgOptimizedImage}\n * @publicApi\n */\nconst IMAGE_LOADER = new InjectionToken(ngDevMode ? 'ImageLoader' : '', {\n providedIn: 'root',\n factory: () => noopImageLoader,\n});\n/**\n * Internal helper function that makes it easier to introduce custom image loaders for the\n * `NgOptimizedImage` directive. It is enough to specify a URL builder function to obtain full DI\n * configuration for a given loader: a DI token corresponding to the actual loader function, plus DI\n * tokens managing preconnect check functionality.\n * @param buildUrlFn a function returning a full URL based on loader's configuration\n * @param exampleUrls example of full URLs for a given loader (used in error messages)\n * @returns a set of DI providers corresponding to the configured image loader\n */\nfunction createImageLoader(buildUrlFn, exampleUrls) {\n return function provideImageLoader(path) {\n if (!isValidPath(path)) {\n throwInvalidPathError(path, exampleUrls || []);\n }\n // The trailing / is stripped (if provided) to make URL construction (concatenation) easier in\n // the individual loader functions.\n path = normalizePath(path);\n const loaderFn = (config) => {\n if (isAbsoluteUrl(config.src)) {\n // Image loader functions expect an image file name (e.g. `my-image.png`)\n // or a relative path + a file name (e.g. `/a/b/c/my-image.png`) as an input,\n // so the final absolute URL can be constructed.\n // When an absolute URL is provided instead - the loader can not\n // build a final URL, thus the error is thrown to indicate that.\n throwUnexpectedAbsoluteUrlError(path, config.src);\n }\n return buildUrlFn(path, { ...config, src: normalizeSrc(config.src) });\n };\n const providers = [{ provide: IMAGE_LOADER, useValue: loaderFn }];\n return providers;\n };\n}\nfunction throwInvalidPathError(path, exampleUrls) {\n throw new ɵRuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, ngDevMode &&\n `Image loader has detected an invalid path (\\`${path}\\`). ` +\n `To fix this, supply a path using one of the following formats: ${exampleUrls.join(' or ')}`);\n}\nfunction throwUnexpectedAbsoluteUrlError(path, url) {\n throw new ɵRuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, ngDevMode &&\n `Image loader has detected a \\`<img>\\` tag with an invalid \\`ngSrc\\` attribute: ${url}. ` +\n `This image loader expects \\`ngSrc\\` to be a relative URL - ` +\n `however the provided value is an absolute URL. ` +\n `To fix this, provide \\`ngSrc\\` as a path relative to the base URL ` +\n `configured for this loader (\\`${path}\\`).`);\n}\n\n/**\n * Function that generates an ImageLoader for [Cloudflare Image\n * Resizing](https://developers.cloudflare.com/images/image-resizing/) and turns it into an Angular\n * provider. Note: Cloudflare has multiple image products - this provider is specifically for\n * Cloudflare Image Resizing; it will not work with Cloudflare Images or Cloudflare Polish.\n *\n * @param path Your domain name, e.g. https://mysite.com\n * @returns Provider that provides an ImageLoader function\n *\n * @publicApi\n */\nconst provideCloudflareLoader = createImageLoader(createCloudflareUrl, ngDevMode ? ['https://<ZONE>/cdn-cgi/image/<OPTIONS>/<SOURCE-IMAGE>'] : undefined);\nfunction createCloudflareUrl(path, config) {\n let params = `format=auto`;\n if (config.width) {\n params += `,width=${config.width}`;\n }\n // When requesting a placeholder image we ask for a low quality image to reduce the load time.\n if (config.isPlaceholder) {\n params += `,quality=${PLACEHOLDER_QUALITY}`;\n }\n // Cloudflare image URLs format:\n // https://developers.cloudflare.com/images/image-resizing/url-format/\n return `${path}/cdn-cgi/image/${params}/${config.src}`;\n}\n\n/**\n * Name and URL tester for Cloudinary.\n */\nconst cloudinaryLoaderInfo = {\n name: 'Cloudinary',\n testUrl: isCloudinaryUrl,\n};\nconst CLOUDINARY_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.cloudinary\\.com\\/.+/;\n/**\n * Tests whether a URL is from Cloudinary CDN.\n */\nfunction isCloudinaryUrl(url) {\n return CLOUDINARY_LOADER_REGEX.test(url);\n}\n/**\n * Function that generates an ImageLoader for Cloudinary and turns it into an Angular provider.\n *\n * @param path Base URL of your Cloudinary images\n * This URL should match one of the following formats:\n * https://res.cloudinary.com/mysite\n * https://mysite.cloudinary.com\n * https://subdomain.mysite.com\n * @returns Set of providers to configure the Cloudinary loader.\n *\n * @publicApi\n */\nconst provideCloudinaryLoader = createImageLoader(createCloudinaryUrl, ngDevMode\n ? [\n 'https://res.cloudinary.com/mysite',\n 'https://mysite.cloudinary.com',\n 'https://subdomain.mysite.com',\n ]\n : undefined);\nfunction createCloudinaryUrl(path, config) {\n // Cloudinary image URLformat:\n // https://cloudinary.com/documentation/image_transformations#transformation_url_structure\n // Example of a Cloudinary image URL:\n // https://res.cloudinary.com/mysite/image/upload/c_scale,f_auto,q_auto,w_600/marketing/tile-topics-m.png\n // For a placeholder image, we use the lowest image setting available to reduce the load time\n // else we use the auto size\n const quality = config.isPlaceholder ? 'q_auto:low' : 'q_auto';\n let params = `f_auto,${quality}`;\n if (config.width) {\n params += `,w_${config.width}`;\n }\n if (config.loaderParams?.['rounded']) {\n params += `,r_max`;\n }\n return `${path}/image/upload/${params}/${config.src}`;\n}\n\n/**\n * Name and URL tester for ImageKit.\n */\nconst imageKitLoaderInfo = {\n name: 'ImageKit',\n testUrl: isImageKitUrl,\n};\nconst IMAGE_KIT_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.imagekit\\.io\\/.+/;\n/**\n * Tests whether a URL is from ImageKit CDN.\n */\nfunction isImageKitUrl(url) {\n return IMAGE_KIT_LOADER_REGEX.test(url);\n}\n/**\n * Function that generates an ImageLoader for ImageKit and turns it into an Angular provider.\n *\n * @param path Base URL of your ImageKit images\n * This URL should match one of the following formats:\n * https://ik.imagekit.io/myaccount\n * https://subdomain.mysite.com\n * @returns Set of providers to configure the ImageKit loader.\n *\n * @publicApi\n */\nconst provideImageKitLoader = createImageLoader(createImagekitUrl, ngDevMode ? ['https://ik.imagekit.io/mysite', 'https://subdomain.mysite.com'] : undefined);\nfunction createImagekitUrl(path, config) {\n // Example of an ImageKit image URL:\n // https://ik.imagekit.io/demo/tr:w-300,h-300/medium_cafe_B1iTdD0C.jpg\n const { src, width } = config;\n const params = [];\n if (width) {\n params.push(`w-${width}`);\n }\n // When requesting a placeholder image we ask for a low quality image to reduce the load time.\n if (config.isPlaceholder) {\n params.push(`q-${PLACEHOLDER_QUALITY}`);\n }\n const urlSegments = params.length ? [path, `tr:${params.join(',')}`, src] : [path, src];\n const url = new URL(urlSegments.join('/'));\n return url.href;\n}\n\n/**\n * Name and URL tester for Imgix.\n */\nconst imgixLoaderInfo = {\n name: 'Imgix',\n testUrl: isImgixUrl,\n};\nconst IMGIX_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.imgix\\.net\\/.+/;\n/**\n * Tests whether a URL is from Imgix CDN.\n */\nfunction isImgixUrl(url) {\n return IMGIX_LOADER_REGEX.test(url);\n}\n/**\n * Function that generates an ImageLoader for Imgix and turns it into an Angular provider.\n *\n * @param path path to the desired Imgix origin,\n * e.g. https://somepath.imgix.net or https://images.mysite.com\n * @returns Set of providers to configure the Imgix loader.\n *\n * @publicApi\n */\nconst provideImgixLoader = createImageLoader(createImgixUrl, ngDevMode ? ['https://somepath.imgix.net/'] : undefined);\nfunction createImgixUrl(path, config) {\n const url = new URL(`${path}/${config.src}`);\n // This setting ensures the smallest allowable format is set.\n url.searchParams.set('auto', 'format');\n if (config.width) {\n url.searchParams.set('w', config.width.toString());\n }\n // When requesting a placeholder image we ask a low quality image to reduce the load time.\n if (config.isPlaceholder) {\n url.searchParams.set('q', PLACEHOLDER_QUALITY);\n }\n return url.href;\n}\n\n/**\n * Name and URL tester for Netlify.\n */\nconst netlifyLoaderInfo = {\n name: 'Netlify',\n testUrl: isNetlifyUrl,\n};\nconst NETLIFY_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.netlify\\.app\\/.+/;\n/**\n * Tests whether a URL is from a Netlify site. This won't catch sites with a custom domain,\n * but it's a good start for sites in development. This is only used to warn users who haven't\n * configured an image loader.\n */\nfunction isNetlifyUrl(url) {\n return NETLIFY_LOADER_REGEX.test(url);\n}\n/**\n * Function that generates an ImageLoader for Netlify and turns it into an Angular provider.\n *\n * @param path optional URL of the desired Netlify site. Defaults to the current site.\n * @returns Set of providers to configure the Netlify loader.\n *\n * @publicApi\n */\nfunction provideNetlifyLoader(path) {\n if (path && !isValidPath(path)) {\n throw new ɵRuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, ngDevMode &&\n `Image loader has detected an invalid path (\\`${path}\\`). ` +\n `To fix this, supply either the full URL to the Netlify site, or leave it empty to use the current site.`);\n }\n if (path) {\n const url = new URL(path);\n path = url.origin;\n }\n const loaderFn = (config) => {\n return createNetlifyUrl(config, path);\n };\n const providers = [{ provide: IMAGE_LOADER, useValue: loaderFn }];\n return providers;\n}\nconst validParams = new Map([\n ['height', 'h'],\n ['fit', 'fit'],\n ['quality', 'q'],\n ['q', 'q'],\n ['position', 'position'],\n]);\nfunction createNetlifyUrl(config, path) {\n // Note: `path` can be undefined, in which case we use a fake one to construct a `URL` instance.\n const url = new URL(path ?? 'https://a/');\n url.pathname = '/.netlify/images';\n if (!isAbsoluteUrl(config.src) && !config.src.startsWith('/')) {\n config.src = '/' + config.src;\n }\n url.searchParams.set('url', config.src);\n if (config.width) {\n url.searchParams.set('w', config.width.toString());\n }\n // When requesting a placeholder image we ask for a low quality image to reduce the load time.\n // If the quality is specified in the loader config - always use provided value.\n const configQuality = config.loaderParams?.['quality'] ?? config.loaderParams?.['q'];\n if (config.isPlaceholder && !configQuality) {\n url.searchParams.set('q', PLACEHOLDER_QUALITY);\n }\n for (const [param, value] of Object.entries(config.loaderParams ?? {})) {\n if (validParams.has(param)) {\n url.searchParams.set(validParams.get(param), value.toString());\n }\n else {\n if (ngDevMode) {\n console.warn(ɵformatRuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, `The Netlify image loader has detected an \\`<img>\\` tag with the unsupported attribute \"\\`${param}\\`\".`));\n }\n }\n }\n // The \"a\" hostname is used for relative URLs, so we can remove it from the final URL.\n return url.hostname === 'a' ? url.href.replace(url.origin, '') : url.href;\n}\n\n// Assembles directive details string, useful for error messages.\nfunction imgDirectiveDetails(ngSrc, includeNgSrc = true) {\n const ngSrcInfo = includeNgSrc\n ? `(activated on an <img> element with the \\`ngSrc=\"${ngSrc}\"\\`) `\n : '';\n return `The NgOptimizedImage directive ${ngSrcInfo}has detected that`;\n}\n\n/**\n * Asserts that the application is in development mode. Throws an error if the application is in\n * production mode. This assert can be used to make sure that there is no dev-mode code invoked in\n * the prod mode accidentally.\n */\nfunction assertDevMode(checkName) {\n if (!ngDevMode) {\n throw new ɵRuntimeError(2958 /* RuntimeErrorCode.UNEXPECTED_DEV_MODE_CHECK_IN_PROD_MODE */, `Unexpected invocation of the ${checkName} in the prod mode. ` +\n `Please make sure that the prod mode is enabled for production builds.`);\n }\n}\n\n/**\n * Observer that detects whether an image with `NgOptimizedImage`\n * is treated as a Largest Contentful Paint (LCP) element. If so,\n * asserts that the image has the `priority` attribute.\n *\n * Note: this is a dev-mode only class and it does not appear in prod bundles,\n * thus there is no `ngDevMode` use in the code.\n *\n * Based on https://web.dev/lcp/#measure-lcp-in-javascript.\n */\nclass LCPImageObserver {\n // Map of full image URLs -> original `ngSrc` values.\n images = new Map();\n window = null;\n observer = null;\n constructor() {\n const isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n assertDevMode('LCP checker');\n const win = inject(DOCUMENT).defaultView;\n if (isBrowser && typeof PerformanceObserver !== 'undefined') {\n this.window = win;\n this.observer = this.initPerformanceObserver();\n }\n }\n /**\n * Inits PerformanceObserver and subscribes to LCP events.\n * Based on https://web.dev/lcp/#measure-lcp-in-javascript\n */\n initPerformanceObserver() {\n const observer = new PerformanceObserver((entryList) => {\n const entries = entryList.getEntries();\n if (entries.length === 0)\n return;\n // We use the latest entry produced by the `PerformanceObserver` as the best\n // signal on which element is actually an LCP one. As an example, the first image to load on\n // a page, by virtue of being the only thing on the page so far, is often a LCP candidate\n // and gets reported by PerformanceObserver, but isn't necessarily the LCP element.\n const lcpElement = entries[entries.length - 1];\n // Cast to `any` due to missing `element` on the `LargestContentfulPaint` type of entry.\n // See https://developer.mozilla.org/en-US/docs/Web/API/LargestContentfulPaint\n const imgSrc = lcpElement.element?.src ?? '';\n // Exclude `data:` and `blob:` URLs, since they are not supported by the directive.\n if (imgSrc.startsWith('data:') || imgSrc.startsWith('blob:'))\n return;\n const img = this.images.get(imgSrc);\n if (!img)\n return;\n if (!img.priority && !img.alreadyWarnedPriority) {\n img.alreadyWarnedPriority = true;\n logMissingPriorityError(imgSrc);\n }\n if (img.modified && !img.alreadyWarnedModified) {\n img.alreadyWarnedModified = true;\n logModifiedWarning(imgSrc);\n }\n });\n observer.observe({ type: 'largest-contentful-paint', buffered: true });\n return observer;\n }\n registerImage(rewrittenSrc, originalNgSrc, isPriority) {\n if (!this.observer)\n return;\n const newObservedImageState = {\n priority: isPriority,\n modified: false,\n alreadyWarnedModified: false,\n alreadyWarnedPriority: false,\n };\n this.images.set(getUrl(rewrittenSrc, this.window).href, newObservedImageState);\n }\n unregisterImage(rewrittenSrc) {\n if (!this.observer)\n return;\n this.images.delete(getUrl(rewrittenSrc, this.window).href);\n }\n updateImage(originalSrc, newSrc) {\n if (!this.observer)\n return;\n const originalUrl = getUrl(originalSrc, this.window).href;\n const img = this.images.get(originalUrl);\n if (img) {\n img.modified = true;\n this.images.set(getUrl(newSrc, this.window).href, img);\n this.images.delete(originalUrl);\n }\n }\n ngOnDestroy() {\n if (!this.observer)\n return;\n this.observer.disconnect();\n this.images.clear();\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: LCPImageObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: LCPImageObserver, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: LCPImageObserver, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [] });\nfunction logMissingPriorityError(ngSrc) {\n const directiveDetails = imgDirectiveDetails(ngSrc);\n console.error(ɵformatRuntimeError(2955 /* RuntimeErrorCode.LCP_IMG_MISSING_PRIORITY */, `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` +\n `element but was not marked \"priority\". This image should be marked ` +\n `\"priority\" in order to prioritize its loading. ` +\n `To fix this, add the \"priority\" attribute.`));\n}\nfunction logModifiedWarning(ngSrc) {\n const directiveDetails = imgDirectiveDetails(ngSrc);\n console.warn(ɵformatRuntimeError(2964 /* RuntimeErrorCode.LCP_IMG_NGSRC_MODIFIED */, `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` +\n `element and has had its \"ngSrc\" attribute modified. This can cause ` +\n `slower loading performance. It is recommended not to modify the \"ngSrc\" ` +\n `property on any image which could be the LCP element.`));\n}\n\n// Set of origins that are always excluded from the preconnect checks.\nconst INTERNAL_PRECONNECT_CHECK_BLOCKLIST = new Set(['localhost', '127.0.0.1', '0.0.0.0']);\n/**\n * Injection token to configure which origins should be excluded\n * from the preconnect checks. It can either be a single string or an array of strings\n * to represent a group of origins, for example:\n *\n * ```ts\n * {provide: PRECONNECT_CHECK_BLOCKLIST, useValue: 'https://your-domain.com'}\n * ```\n *\n * or:\n *\n * ```ts\n * {provide: PRECONNECT_CHECK_BLOCKLIST,\n * useValue: ['https://your-domain-1.com', 'https://your-domain-2.com']}\n * ```\n *\n * @publicApi\n */\nconst PRECONNECT_CHECK_BLOCKLIST = new InjectionToken(ngDevMode ? 'PRECONNECT_CHECK_BLOCKLIST' : '');\n/**\n * Contains the logic to detect whether an image, marked with the \"priority\" attribute\n * has a corresponding `<link rel=\"preconnect\">` tag in the `document.head`.\n *\n * Note: this is a dev-mode only class, which should not appear in prod bundles,\n * thus there is no `ngDevMode` use in the code.\n */\nclass PreconnectLinkChecker {\n document = inject(DOCUMENT);\n /**\n * Set of <link rel=\"preconnect\"> tags found on this page.\n * The `null` value indicates that there was no DOM query operation performed.\n */\n preconnectLinks = null;\n /*\n * Keep track of all already seen origin URLs to avoid repeating the same check.\n */\n alreadySeen = new Set();\n window = this.document.defaultView;\n blocklist = new Set(INTERNAL_PRECONNECT_CHECK_BLOCKLIST);\n constructor() {\n assertDevMode('preconnect link checker');\n const blocklist = inject(PRECONNECT_CHECK_BLOCKLIST, { optional: true });\n if (blocklist) {\n this.populateBlocklist(blocklist);\n }\n }\n populateBlocklist(origins) {\n if (Array.isArray(origins)) {\n deepForEach(origins, (origin) => {\n this.blocklist.add(extractHostname(origin));\n });\n }\n else {\n this.blocklist.add(extractHostname(origins));\n }\n }\n /**\n * Checks that a preconnect resource hint exists in the head for the\n * given src.\n *\n * @param rewrittenSrc src formatted with loader\n * @param originalNgSrc ngSrc value\n */\n assertPreconnect(rewrittenSrc, originalNgSrc) {\n if (typeof ngServerMode !== 'undefined' && ngServerMode)\n return;\n const imgUrl = getUrl(rewrittenSrc, this.window);\n if (this.blocklist.has(imgUrl.hostname) || this.alreadySeen.has(imgUrl.origin))\n return;\n // Register this origin as seen, so we don't check it again later.\n this.alreadySeen.add(imgUrl.origin);\n // Note: we query for preconnect links only *once* and cache the results\n // for the entire lifespan of an application, since it's unlikely that the\n // list would change frequently. This allows to make sure there are no\n // performance implications of making extra DOM lookups for each image.\n this.preconnectLinks ??= this.queryPreconnectLinks();\n if (!this.preconnectLinks.has(imgUrl.origin)) {\n console.warn(ɵformatRuntimeError(2956 /* RuntimeErrorCode.PRIORITY_IMG_MISSING_PRECONNECT_TAG */, `${imgDirectiveDetails(originalNgSrc)} there is no preconnect tag present for this ` +\n `image. Preconnecting to the origin(s) that serve priority images ensures that these ` +\n `images are delivered as soon as possible. To fix this, please add the following ` +\n `element into the <head> of the document:\\n` +\n ` <link rel=\"preconnect\" href=\"${imgUrl.origin}\">`));\n }\n }\n queryPreconnectLinks() {\n const preconnectUrls = new Set();\n const selector = 'link[rel=preconnect]';\n const links = Array.from(this.document.querySelectorAll(selector));\n for (let link of links) {\n const url = getUrl(link.href, this.window);\n preconnectUrls.add(url.origin);\n }\n return preconnectUrls;\n }\n ngOnDestroy() {\n this.preconnectLinks?.clear();\n this.alreadySeen.clear();\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PreconnectLinkChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PreconnectLinkChecker, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PreconnectLinkChecker, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [] });\n/**\n * Invokes a callback for each element in the array. Also invokes a callback\n * recursively for each nested array.\n */\nfunction deepForEach(input, fn) {\n for (let value of input) {\n Array.isArray(value) ? deepForEach(value, fn) : fn(value);\n }\n}\n\n/**\n * In SSR scenarios, a preload `<link>` element is generated for priority images.\n * Having a large number of preload tags may negatively affect the performance,\n * so we warn developers (by throwing an error) if the number of preloaded images\n * is above a certain threshold. This const specifies this threshold.\n */\nconst DEFAULT_PRELOADED_IMAGES_LIMIT = 5;\n/**\n * Helps to keep track of priority images that already have a corresponding\n * preload tag (to avoid generating multiple preload tags with the same URL).\n *\n * This Set tracks the original src passed into the `ngSrc` input not the src after it has been\n * run through the specified `IMAGE_LOADER`.\n */\nconst PRELOADED_IMAGES = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'NG_OPTIMIZED_PRELOADED_IMAGES' : '', {\n providedIn: 'root',\n factory: () => new Set(),\n});\n\n/**\n * @description Contains the logic needed to track and add preload link tags to the `<head>` tag. It\n * will also track what images have already had preload link tags added so as to not duplicate link\n * tags.\n *\n * In dev mode this service will validate that the number of preloaded images does not exceed the\n * configured default preloaded images limit: {@link DEFAULT_PRELOADED_IMAGES_LIMIT}.\n */\nclass PreloadLinkCreator {\n preloadedImages = inject(PRELOADED_IMAGES);\n document = inject(DOCUMENT);\n /**\n * @description Add a preload `<link>` to the `<head>` of the `index.html` that is served from the\n * server while using Angular Universal and SSR to kick off image loads for high priority images.\n *\n * The `sizes` (passed in from the user) and `srcset` (parsed and formatted from `ngSrcset`)\n * properties used to set the corresponding attributes, `imagesizes` and `imagesrcset`\n * respectively, on the preload `<link>` tag so that the correctly sized image is preloaded from\n * the CDN.\n *\n * {@link https://web.dev/preload-responsive-images/#imagesrcset-and-imagesizes}\n *\n * @param renderer The `Renderer2` passed in from the directive\n * @param src The original src of the image that is set on the `ngSrc` input.\n * @param srcset The parsed and formatted srcset created from the `ngSrcset` input\n * @param sizes The value of the `sizes` attribute passed in to the `<img>` tag\n */\n createPreloadLinkTag(renderer, src, srcset, sizes) {\n if (ngDevMode) {\n if (this.preloadedImages.size >= DEFAULT_PRELOADED_IMAGES_LIMIT) {\n throw new ɵRuntimeError(2961 /* RuntimeErrorCode.TOO_MANY_PRELOADED_IMAGES */, ngDevMode &&\n `The \\`NgOptimizedImage\\` directive has detected that more than ` +\n `${DEFAULT_PRELOADED_IMAGES_LIMIT} images were marked as priority. ` +\n `This might negatively affect an overall performance of the page. ` +\n `To fix this, remove the \"priority\" attribute from images with less priority.`);\n }\n }\n if (this.preloadedImages.has(src)) {\n return;\n }\n this.preloadedImages.add(src);\n const preload = renderer.createElement('link');\n renderer.setAttribute(preload, 'as', 'image');\n renderer.setAttribute(preload, 'href', src);\n renderer.setAttribute(preload, 'rel', 'preload');\n renderer.setAttribute(preload, 'fetchpriority', 'high');\n if (sizes) {\n renderer.setAttribute(preload, 'imageSizes', sizes);\n }\n if (srcset) {\n renderer.setAttribute(preload, 'imageSrcset', srcset);\n }\n renderer.appendChild(this.document.head, preload);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PreloadLinkCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PreloadLinkCreator, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PreloadLinkCreator, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\n/**\n * When a Base64-encoded image is passed as an input to the `NgOptimizedImage` directive,\n * an error is thrown. The image content (as a string) might be very long, thus making\n * it hard to read an error message if the entire string is included. This const defines\n * the number of characters that should be included into the error message. The rest\n * of the content is truncated.\n */\nconst BASE64_IMG_MAX_LENGTH_IN_ERROR = 50;\n/**\n * RegExpr to determine whether a src in a srcset is using width descriptors.\n * Should match something like: \"100w, 200w\".\n */\nconst VALID_WIDTH_DESCRIPTOR_SRCSET = /^((\\s*\\d+w\\s*(,|$)){1,})$/;\n/**\n * RegExpr to determine whether a src in a srcset is using density descriptors.\n * Should match something like: \"1x, 2x, 50x\". Also supports decimals like \"1.5x, 1.50x\".\n */\nconst VALID_DENSITY_DESCRIPTOR_SRCSET = /^((\\s*\\d+(\\.\\d+)?x\\s*(,|$)){1,})$/;\n/**\n * Srcset values with a density descriptor higher than this value will actively\n * throw an error. Such densities are not permitted as they cause image sizes\n * to be unreasonably large and slow down LCP.\n */\nconst ABSOLUTE_SRCSET_DENSITY_CAP = 3;\n/**\n * Used only in error message text to communicate best practices, as we will\n * only throw based on the slightly more conservative ABSOLUTE_SRCSET_DENSITY_CAP.\n */\nconst RECOMMENDED_SRCSET_DENSITY_CAP = 2;\n/**\n * Used in generating automatic density-based srcsets\n */\nconst DENSITY_SRCSET_MULTIPLIERS = [1, 2];\n/**\n * Used to determine which breakpoints to use on full-width images\n */\nconst VIEWPORT_BREAKPOINT_CUTOFF = 640;\n/**\n * Used to determine whether two aspect ratios are similar in value.\n */\nconst ASPECT_RATIO_TOLERANCE = 0.1;\n/**\n * Used to determine whether the image has been requested at an overly\n * large size compared to the actual rendered image size (after taking\n * into account a typical device pixel ratio). In pixels.\n */\nconst OVERSIZED_IMAGE_TOLERANCE = 1000;\n/**\n * Used to limit automatic srcset generation of very large sources for\n * fixed-size images. In pixels.\n */\nconst FIXED_SRCSET_WIDTH_LIMIT = 1920;\nconst FIXED_SRCSET_HEIGHT_LIMIT = 1080;\n/**\n * Default blur radius of the CSS filter used on placeholder images, in pixels\n */\nconst PLACEHOLDER_BLUR_AMOUNT = 15;\n/**\n * Placeholder dimension (height or width) limit in pixels. Angular produces a warning\n * when this limit is crossed.\n */\nconst PLACEHOLDER_DIMENSION_LIMIT = 1000;\n/**\n * Used to warn or error when the user provides an overly large dataURL for the placeholder\n * attribute.\n * Character count of Base64 images is 1 character per byte, and base64 encoding is approximately\n * 33% larger than base images, so 4000 characters is around 3KB on disk and 10000 characters is\n * around 7.7KB. Experimentally, 4000 characters is about 20x20px in PNG or medium-quality JPEG\n * format, and 10,000 is around 50x50px, but there's quite a bit of variation depending on how the\n * image is saved.\n */\nconst DATA_URL_WARN_LIMIT = 4000;\nconst DATA_URL_ERROR_LIMIT = 10000;\n/** Info about built-in loaders we can test for. */\nconst BUILT_IN_LOADERS = [\n imgixLoaderInfo,\n imageKitLoaderInfo,\n cloudinaryLoaderInfo,\n netlifyLoaderInfo,\n];\n/**\n * Threshold for the PRIORITY_TRUE_COUNT\n */\nconst PRIORITY_COUNT_THRESHOLD = 10;\n/**\n * This count is used to log a devMode warning\n * when the count of directive instances with priority=true\n * exceeds the threshold PRIORITY_COUNT_THRESHOLD\n */\nlet IMGS_WITH_PRIORITY_ATTR_COUNT = 0;\n/**\n * This function is for testing purpose.\n */\nfunction resetImagePriorityCount() {\n IMGS_WITH_PRIORITY_ATTR_COUNT = 0;\n}\n/**\n * Directive that improves image loading performance by enforcing best practices.\n *\n * `NgOptimizedImage` ensures that the loading of the Largest Contentful Paint (LCP) image is\n * prioritized by:\n * - Automatically setting the `fetchpriority` attribute on the `<img>` tag\n * - Lazy loading non-priority images by default\n * - Automatically generating a preconnect link tag in the document head\n *\n * In addition, the directive:\n * - Generates appropriate asset URLs if a corresponding `ImageLoader` function is provided\n * - Automatically generates a srcset\n * - Requires that `width` and `height` are set\n * - Warns if `width` or `height` have been set incorrectly\n * - Warns if the image will be visually distorted when rendered\n *\n * @usageNotes\n * The `NgOptimizedImage` directive is marked as [standalone](guide/components/importing) and can\n * be imported directly.\n *\n * Follow the steps below to enable and use the directive:\n * 1. Import it into the necessary NgModule or a standalone Component.\n * 2. Optionally provide an `ImageLoader` if you use an image hosting service.\n * 3. Update the necessary `<img>` tags in templates and replace `src` attributes with `ngSrc`.\n * Using a `ngSrc` allows the directive to control when the `src` gets set, which triggers an image\n * download.\n *\n * Step 1: import the `NgOptimizedImage` directive.\n *\n * ```ts\n * import { NgOptimizedImage } from '@angular/common';\n *\n * // Include it into the necessary NgModule\n * @NgModule({\n * imports: [NgOptimizedImage],\n * })\n * class AppModule {}\n *\n * // ... or a standalone Component\n * @Component({\n * imports: [NgOptimizedImage],\n * })\n * class MyStandaloneComponent {}\n * ```\n *\n * Step 2: configure a loader.\n *\n * To use the **default loader**: no additional code changes are necessary. The URL returned by the\n * generic loader will always match the value of \"src\". In other words, this loader applies no\n * transformations to the resource URL and the value of the `ngSrc` attribute will be used as is.\n *\n * To use an existing loader for a **third-party image service**: add the provider factory for your\n * chosen service to the `providers` array. In the example below, the Imgix loader is used:\n *\n * ```ts\n * import {provideImgixLoader} from '@angular/common';\n *\n * // Call the function and add the result to the `providers` array:\n * providers: [\n * provideImgixLoader(\"https://my.base.url/\"),\n * ],\n * ```\n *\n * The `NgOptimizedImage` directive provides the following functions:\n * - `provideCloudflareLoader`\n * - `provideCloudinaryLoader`\n * - `provideImageKitLoader`\n * - `provideImgixLoader`\n *\n * If you use a different image provider, you can create a custom loader function as described\n * below.\n *\n * To use a **custom loader**: provide your loader function as a value for the `IMAGE_LOADER` DI\n * token.\n *\n * ```ts\n * import {IMAGE_LOADER, ImageLoaderConfig} from '@angular/common';\n *\n * // Configure the loader using the `IMAGE_LOADER` token.\n * providers: [\n * {\n * provide: IMAGE_LOADER,\n * useValue: (config: ImageLoaderConfig) => {\n * return `https://example.com/${config.src}-${config.width}.jpg`;\n * }\n * },\n * ],\n * ```\n *\n * Step 3: update `<img>` tags in templates to use `ngSrc` instead of `src`.\n *\n * ```html\n * <img ngSrc=\"logo.png\" width=\"200\" height=\"100\">\n * ```\n *\n * @publicApi\n */\nclass NgOptimizedImage {\n imageLoader = inject(IMAGE_LOADER);\n config = processConfig(inject(ɵIMAGE_CONFIG));\n renderer = inject(Renderer2);\n imgElement = inject(ElementRef).nativeElement;\n injector = inject(Injector);\n // An LCP image observer should be injected only in development mode.\n // Do not assign it to `null` to avoid having a redundant property in the production bundle.\n lcpObserver;\n /**\n * Calculate the rewritten `src` once and store it.\n * This is needed to avoid repetitive calculations and make sure the directive cleanup in the\n * `ngOnDestroy` does not rely on the `IMAGE_LOADER` logic (which in turn can rely on some other\n * instance that might be already destroyed).\n */\n _renderedSrc = null;\n /**\n * Name of the source image.\n * Image name will be processed by the image loader and the final URL will be applied as the `src`\n * property of the image.\n */\n ngSrc;\n /**\n * A comma separated list of width or density descriptors.\n * The image name will be taken from `ngSrc` and combined with the list of width or density\n * descriptors to generate the final `srcset` property of the image.\n *\n * Example:\n * ```html\n * <img ngSrc=\"hello.jpg\" ngSrcset=\"100w, 200w\" /> =>\n * <img src=\"path/hello.jpg\" srcset=\"path/hello.jpg?w=100 100w, path/hello.jpg?w=200 200w\" />\n * ```\n */\n ngSrcset;\n /**\n * The base `sizes` attribute passed through to the `<img>` element.\n * Providing sizes causes the image to create an automatic responsive srcset.\n */\n sizes;\n /**\n * For responsive images: the intrinsic width of the image in pixels.\n * For fixed size images: the desired rendered width of the image in pixels.\n */\n width;\n /**\n * For responsive images: the intrinsic height of the image in pixels.\n * For fixed size images: the desired rendered height of the image in pixels.\n */\n height;\n /**\n * The desired loading behavior (lazy, eager, or auto). Defaults to `lazy`,\n * which is recommended for most images.\n *\n * Warning: Setting images as loading=\"eager\" or loading=\"auto\" marks them\n * as non-priority images and can hurt loading performance. For images which\n * may be the LCP element, use the `priority` attribute instead of `loading`.\n */\n loading;\n /**\n * Indicates whether this image should have a high priority.\n */\n priority = false;\n /**\n * Data to pass through to custom loaders.\n */\n loaderParams;\n /**\n * Disables automatic srcset generation for this image.\n */\n disableOptimizedSrcset = false;\n /**\n * Sets the image to \"fill mode\", which eliminates the height/width requirement and adds\n * styles such that the image fills its containing element.\n */\n fill = false;\n /**\n * A URL or data URL for an image to be used as a placeholder while this image loads.\n */\n placeholder;\n /**\n * Configuration object for placeholder settings. Options:\n * * blur: Setting this to false disables the automatic CSS blur.\n */\n placeholderConfig;\n /**\n * Value of the `src` attribute if set on the host `<img>` element.\n * This input is exclusively read to assert that `src` is not set in conflict\n * with `ngSrc` and that images don't start to load until a lazy loading strategy is set.\n * @internal\n */\n src;\n /**\n * Value of the `srcset` attribute if set on the host `<img>` element.\n * This input is exclusively read to assert that `srcset` is not set in conflict\n * with `ngSrcset` and that images don't start to load until a lazy loading strategy is set.\n * @internal\n */\n srcset;\n constructor() {\n if (ngDevMode) {\n this.lcpObserver = this.injector.get(LCPImageObserver);\n // Using `DestroyRef` to avoid having an empty `ngOnDestroy` method since this\n // is only run in development mode.\n const destroyRef = inject(DestroyRef);\n destroyRef.onDestroy(() => {\n if (!this.priority && this._renderedSrc !== null) {\n this.lcpObserver.unregisterImage(this._renderedSrc);\n }\n });\n }\n }\n /** @nodoc */\n ngOnInit() {\n ɵperformanceMarkFeature('NgOptimizedImage');\n if (ngDevMode) {\n const ngZone = this.injector.get(NgZone);\n assertNonEmptyInput(this, 'ngSrc', this.ngSrc);\n assertValidNgSrcset(this, this.ngSrcset);\n assertNoConflictingSrc(this);\n if (this.ngSrcset) {\n assertNoConflictingSrcset(this);\n }\n assertNotBase64Image(this);\n assertNotBlobUrl(this);\n if (this.fill) {\n assertEmptyWidthAndHeight(this);\n // This leaves the Angular zone to avoid triggering unnecessary change detection cycles when\n // `load` tasks are invoked on images.\n ngZone.runOutsideAngular(() => assertNonZeroRenderedHeight(this, this.imgElement, this.renderer));\n }\n else {\n assertNonEmptyWidthAndHeight(this);\n if (this.height !== undefined) {\n assertGreaterThanZero(this, this.height, 'height');\n }\n if (this.width !== undefined) {\n assertGreaterThanZero(this, this.width, 'width');\n }\n // Only check for distorted images when not in fill mode, where\n // images may be intentionally stretched, cropped or letterboxed.\n ngZone.runOutsideAngular(() => assertNoImageDistortion(this, this.imgElement, this.renderer));\n }\n assertValidLoadingInput(this);\n if (!this.ngSrcset) {\n assertNoComplexSizes(this);\n }\n assertValidPlaceholder(this, this.imageLoader);\n assertNotMissingBuiltInLoader(this.ngSrc, this.imageLoader);\n assertNoNgSrcsetWithoutLoader(this, this.imageLoader);\n assertNoLoaderParamsWithoutLoader(this, this.imageLoader);\n ngZone.runOutsideAngular(() => {\n this.lcpObserver.registerImage(this.getRewrittenSrc(), this.ngSrc, this.priority);\n });\n if (this.priority) {\n const checker = this.injector.get(PreconnectLinkChecker);\n checker.assertPreconnect(this.getRewrittenSrc(), this.ngSrc);\n if (typeof ngServerMode !== 'undefined' && !ngServerMode) {\n const applicationRef = this.injector.get(ApplicationRef);\n assetPriorityCountBelowThreshold(applicationRef);\n }\n }\n }\n if (this.placeholder) {\n this.removePlaceholderOnLoad(this.imgElement);\n }\n this.setHostAttributes();\n }\n setHostAttributes() {\n // Must set width/height explicitly in case they are bound (in which case they will\n // only be reflected and not found by the browser)\n if (this.fill) {\n this.sizes ||= '100vw';\n }\n else {\n this.setHostAttribute('width', this.width.toString());\n this.setHostAttribute('height', this.height.toString());\n }\n this.setHostAttribute('loading', this.getLoadingBehavior());\n this.setHostAttribute('fetchpriority', this.getFetchPriority());\n // The `data-ng-img` attribute flags an image as using the directive, to allow\n // for analysis of the directive's performance.\n this.setHostAttribute('ng-img', 'true');\n // The `src` and `srcset` attributes should be set last since other attributes\n // could affect the image's loading behavior.\n const rewrittenSrcset = this.updateSrcAndSrcset();\n if (this.sizes) {\n if (this.getLoadingBehavior() === 'lazy') {\n this.setHostAttribute('sizes', 'auto, ' + this.sizes);\n }\n else {\n this.setHostAttribute('sizes', this.sizes);\n }\n }\n else {\n if (this.ngSrcset &&\n VALID_WIDTH_DESCRIPTOR_SRCSET.test(this.ngSrcset) &&\n this.getLoadingBehavior() === 'lazy') {\n this.setHostAttribute('sizes', 'auto, 100vw');\n }\n }\n if (typeof ngServerMode !== 'undefined' && ngServerMode && this.priority) {\n const preloadLinkCreator = this.injector.get(PreloadLinkCreator);\n preloadLinkCreator.createPreloadLinkTag(this.renderer, this.getRewrittenSrc(), rewrittenSrcset, this.sizes);\n }\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if (ngDevMode) {\n assertNoPostInitInputChange(this, changes, [\n 'ngSrcset',\n 'width',\n 'height',\n 'priority',\n 'fill',\n 'loading',\n 'sizes',\n 'loaderParams',\n 'disableOptimizedSrcset',\n ]);\n }\n if (changes['ngSrc'] && !changes['ngSrc'].isFirstChange()) {\n const oldSrc = this._renderedSrc;\n this.updateSrcAndSrcset(true);\n if (ngDevMode) {\n const newSrc = this._renderedSrc;\n if (oldSrc && newSrc && oldSrc !== newSrc) {\n const ngZone = this.injector.get(NgZone);\n ngZone.runOutsideAngular(() => {\n this.lcpObserver.updateImage(oldSrc, newSrc);\n });\n }\n }\n }\n if (ngDevMode &&\n changes['placeholder']?.currentValue &&\n typeof ngServerMode !== 'undefined' &&\n !ngServerMode) {\n assertPlaceholderDimensions(this, this.imgElement);\n }\n }\n callImageLoader(configWithoutCustomParams) {\n let augmentedConfig = configWithoutCustomParams;\n if (this.loaderParams) {\n augmentedConfig.loaderParams = this.loaderParams;\n }\n return this.imageLoader(augmentedConfig);\n }\n getLoadingBehavior() {\n if (!this.priority && this.loading !== undefined) {\n return this.loading;\n }\n return this.priority ? 'eager' : 'lazy';\n }\n getFetchPriority() {\n return this.priority ? 'high' : 'auto';\n }\n getRewrittenSrc() {\n // ImageLoaderConfig supports setting a width property. However, we're not setting width here\n // because if the developer uses rendered width instead of intrinsic width in the HTML width\n // attribute, the image requested may be too small for 2x+ screens.\n if (!this._renderedSrc) {\n const imgConfig = { src: this.ngSrc };\n // Cache calculated image src to reuse it later in the code.\n this._renderedSrc = this.callImageLoader(imgConfig);\n }\n return this._renderedSrc;\n }\n getRewrittenSrcset() {\n const widthSrcSet = VALID_WIDTH_DESCRIPTOR_SRCSET.test(this.ngSrcset);\n const finalSrcs = this.ngSrcset\n .split(',')\n .filter((src) => src !== '')\n .map((srcStr) => {\n srcStr = srcStr.trim();\n const width = widthSrcSet ? parseFloat(srcStr) : parseFloat(srcStr) * this.width;\n return `${this.callImageLoader({ src: this.ngSrc, width })} ${srcStr}`;\n });\n return finalSrcs.join(', ');\n }\n getAutomaticSrcset() {\n if (this.sizes) {\n return this.getResponsiveSrcset();\n }\n else {\n return this.getFixedSrcset();\n }\n }\n getResponsiveSrcset() {\n const { breakpoints } = this.config;\n let filteredBreakpoints = breakpoints;\n if (this.sizes?.trim() === '100vw') {\n // Since this is a full-screen-width image, our srcset only needs to include\n // breakpoints with full viewport widths.\n filteredBreakpoints = breakpoints.filter((bp) => bp >= VIEWPORT_BREAKPOINT_CUTOFF);\n }\n const finalSrcs = filteredBreakpoints.map((bp) => `${this.callImageLoader({ src: this.ngSrc, width: bp })} ${bp}w`);\n return finalSrcs.join(', ');\n }\n updateSrcAndSrcset(forceSrcRecalc = false) {\n if (forceSrcRecalc) {\n // Reset cached value, so that the followup `getRewrittenSrc()` call\n // will recalculate it and update the cache.\n this._renderedSrc = null;\n }\n const rewrittenSrc = this.getRewrittenSrc();\n this.setHostAttribute('src', rewrittenSrc);\n let rewrittenSrcset = undefined;\n if (this.ngSrcset) {\n rewrittenSrcset = this.getRewrittenSrcset();\n }\n else if (this.shouldGenerateAutomaticSrcset()) {\n rewrittenSrcset = this.getAutomaticSrcset();\n }\n if (rewrittenSrcset) {\n this.setHostAttribute('srcset', rewrittenSrcset);\n }\n return rewrittenSrcset;\n }\n getFixedSrcset() {\n const finalSrcs = DENSITY_SRCSET_MULTIPLIERS.map((multiplier) => `${this.callImageLoader({\n src: this.ngSrc,\n width: this.width * multiplier,\n })} ${multiplier}x`);\n return finalSrcs.join(', ');\n }\n shouldGenerateAutomaticSrcset() {\n let oversizedImage = false;\n if (!this.sizes) {\n oversizedImage =\n this.width > FIXED_SRCSET_WIDTH_LIMIT || this.height > FIXED_SRCSET_HEIGHT_LIMIT;\n }\n return (!this.disableOptimizedSrcset &&\n !this.srcset &&\n this.imageLoader !== noopImageLoader &&\n !oversizedImage);\n }\n /**\n * Returns an image url formatted for use with the CSS background-image property. Expects one of:\n * * A base64 encoded image, which is wrapped and passed through.\n * * A boolean. If true, calls the image loader to generate a small placeholder url.\n */\n generatePlaceholder(placeholderInput) {\n const { placeholderResolution } = this.config;\n if (placeholderInput === true) {\n return `url(${this.callImageLoader({\n src: this.ngSrc,\n width: placeholderResolution,\n isPlaceholder: true,\n })})`;\n }\n else if (typeof placeholderInput === 'string') {\n return `url(${placeholderInput})`;\n }\n return null;\n }\n /**\n * Determines if blur should be applied, based on an optional boolean\n * property `blur` within the optional configuration object `placeholderConfig`.\n */\n shouldBlurPlaceholder(placeholderConfig) {\n if (!placeholderConfig || !placeholderConfig.hasOwnProperty('blur')) {\n return true;\n }\n return Boolean(placeholderConfig.blur);\n }\n removePlaceholderOnLoad(img) {\n const callback = () => {\n const changeDetectorRef = this.injector.get(ChangeDetectorRef);\n removeLoadListenerFn();\n removeErrorListenerFn();\n this.placeholder = false;\n changeDetectorRef.markForCheck();\n };\n const removeLoadListenerFn = this.renderer.listen(img, 'load', callback);\n const removeErrorListenerFn = this.renderer.listen(img, 'error', callback);\n callOnLoadIfImageIsLoaded(img, callback);\n }\n setHostAttribute(name, value) {\n this.renderer.setAttribute(this.imgElement, name, value);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgOptimizedImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"16.1.0\", version: \"19.1.4\", type: NgOptimizedImage, isStandalone: true, selector: \"img[ngSrc]\", inputs: { ngSrc: [\"ngSrc\", \"ngSrc\", unwrapSafeUrl], ngSrcset: \"ngSrcset\", sizes: \"sizes\", width: [\"width\", \"width\", numberAttribute], height: [\"height\", \"height\", numberAttribute], loading: \"loading\", priority: [\"priority\", \"priority\", booleanAttribute], loaderParams: \"loaderParams\", disableOptimizedSrcset: [\"disableOptimizedSrcset\", \"disableOptimizedSrcset\", booleanAttribute], fill: [\"fill\", \"fill\", booleanAttribute], placeholder: [\"placeholder\", \"placeholder\", booleanOrUrlAttribute], placeholderConfig: \"placeholderConfig\", src: \"src\", srcset: \"srcset\" }, host: { properties: { \"style.position\": \"fill ? \\\"absolute\\\" : null\", \"style.width\": \"fill ? \\\"100%\\\" : null\", \"style.height\": \"fill ? \\\"100%\\\" : null\", \"style.inset\": \"fill ? \\\"0\\\" : null\", \"style.background-size\": \"placeholder ? \\\"cover\\\" : null\", \"style.background-position\": \"placeholder ? \\\"50% 50%\\\" : null\", \"style.background-repeat\": \"placeholder ? \\\"no-repeat\\\" : null\", \"style.background-image\": \"placeholder ? generatePlaceholder(placeholder) : null\", \"style.filter\": \"placeholder && shouldBlurPlaceholder(placeholderConfig) ? \\\"blur(15px)\\\" : null\" } }, usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgOptimizedImage, decorators: [{\n type: Directive,\n args: [{\n selector: 'img[ngSrc]',\n host: {\n '[style.position]': 'fill ? \"absolute\" : null',\n '[style.width]': 'fill ? \"100%\" : null',\n '[style.height]': 'fill ? \"100%\" : null',\n '[style.inset]': 'fill ? \"0\" : null',\n '[style.background-size]': 'placeholder ? \"cover\" : null',\n '[style.background-position]': 'placeholder ? \"50% 50%\" : null',\n '[style.background-repeat]': 'placeholder ? \"no-repeat\" : null',\n '[style.background-image]': 'placeholder ? generatePlaceholder(placeholder) : null',\n '[style.filter]': `placeholder && shouldBlurPlaceholder(placeholderConfig) ? \"blur(${PLACEHOLDER_BLUR_AMOUNT}px)\" : null`,\n },\n }]\n }], ctorParameters: () => [], propDecorators: { ngSrc: [{\n type: Input,\n args: [{ required: true, transform: unwrapSafeUrl }]\n }], ngSrcset: [{\n type: Input\n }], sizes: [{\n type: Input\n }], width: [{\n type: Input,\n args: [{ transform: numberAttribute }]\n }], height: [{\n type: Input,\n args: [{ transform: numberAttribute }]\n }], loading: [{\n type: Input\n }], priority: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], loaderParams: [{\n type: Input\n }], disableOptimizedSrcset: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], fill: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], placeholder: [{\n type: Input,\n args: [{ transform: booleanOrUrlAttribute }]\n }], placeholderConfig: [{\n type: Input\n }], src: [{\n type: Input\n }], srcset: [{\n type: Input\n }] } });\n/***** Helpers *****/\n/**\n * Sorts provided config breakpoints and uses defaults.\n */\nfunction processConfig(config) {\n let sortedBreakpoints = {};\n if (config.breakpoints) {\n sortedBreakpoints.breakpoints = config.breakpoints.sort((a, b) => a - b);\n }\n return Object.assign({}, ɵIMAGE_CONFIG_DEFAULTS, config, sortedBreakpoints);\n}\n/***** Assert functions *****/\n/**\n * Verifies that there is no `src` set on a host element.\n */\nfunction assertNoConflictingSrc(dir) {\n if (dir.src) {\n throw new ɵRuntimeError(2950 /* RuntimeErrorCode.UNEXPECTED_SRC_ATTR */, `${imgDirectiveDetails(dir.ngSrc)} both \\`src\\` and \\`ngSrc\\` have been set. ` +\n `Supplying both of these attributes breaks lazy loading. ` +\n `The NgOptimizedImage directive sets \\`src\\` itself based on the value of \\`ngSrc\\`. ` +\n `To fix this, please remove the \\`src\\` attribute.`);\n }\n}\n/**\n * Verifies that there is no `srcset` set on a host element.\n */\nfunction assertNoConflictingSrcset(dir) {\n if (dir.srcset) {\n throw new ɵRuntimeError(2951 /* RuntimeErrorCode.UNEXPECTED_SRCSET_ATTR */, `${imgDirectiveDetails(dir.ngSrc)} both \\`srcset\\` and \\`ngSrcset\\` have been set. ` +\n `Supplying both of these attributes breaks lazy loading. ` +\n `The NgOptimizedImage directive sets \\`srcset\\` itself based on the value of ` +\n `\\`ngSrcset\\`. To fix this, please remove the \\`srcset\\` attribute.`);\n }\n}\n/**\n * Verifies that the `ngSrc` is not a Base64-encoded image.\n */\nfunction assertNotBase64Image(dir) {\n let ngSrc = dir.ngSrc.trim();\n if (ngSrc.startsWith('data:')) {\n if (ngSrc.length > BASE64_IMG_MAX_LENGTH_IN_ERROR) {\n ngSrc = ngSrc.substring(0, BASE64_IMG_MAX_LENGTH_IN_ERROR) + '...';\n }\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc, false)} \\`ngSrc\\` is a Base64-encoded string ` +\n `(${ngSrc}). NgOptimizedImage does not support Base64-encoded strings. ` +\n `To fix this, disable the NgOptimizedImage directive for this element ` +\n `by removing \\`ngSrc\\` and using a standard \\`src\\` attribute instead.`);\n }\n}\n/**\n * Verifies that the 'sizes' only includes responsive values.\n */\nfunction assertNoComplexSizes(dir) {\n let sizes = dir.sizes;\n if (sizes?.match(/((\\)|,)\\s|^)\\d+px/)) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc, false)} \\`sizes\\` was set to a string including ` +\n `pixel values. For automatic \\`srcset\\` generation, \\`sizes\\` must only include responsive ` +\n `values, such as \\`sizes=\"50vw\"\\` or \\`sizes=\"(min-width: 768px) 50vw, 100vw\"\\`. ` +\n `To fix this, modify the \\`sizes\\` attribute, or provide your own \\`ngSrcset\\` value directly.`);\n }\n}\nfunction assertValidPlaceholder(dir, imageLoader) {\n assertNoPlaceholderConfigWithoutPlaceholder(dir);\n assertNoRelativePlaceholderWithoutLoader(dir, imageLoader);\n assertNoOversizedDataUrl(dir);\n}\n/**\n * Verifies that placeholderConfig isn't being used without placeholder\n */\nfunction assertNoPlaceholderConfigWithoutPlaceholder(dir) {\n if (dir.placeholderConfig && !dir.placeholder) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc, false)} \\`placeholderConfig\\` options were provided for an ` +\n `image that does not use the \\`placeholder\\` attribute, and will have no effect.`);\n }\n}\n/**\n * Warns if a relative URL placeholder is specified, but no loader is present to provide the small\n * image.\n */\nfunction assertNoRelativePlaceholderWithoutLoader(dir, imageLoader) {\n if (dir.placeholder === true && imageLoader === noopImageLoader) {\n throw new ɵRuntimeError(2963 /* RuntimeErrorCode.MISSING_NECESSARY_LOADER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`placeholder\\` attribute is set to true but ` +\n `no image loader is configured (i.e. the default one is being used), ` +\n `which would result in the same image being used for the primary image and its placeholder. ` +\n `To fix this, provide a loader or remove the \\`placeholder\\` attribute from the image.`);\n }\n}\n/**\n * Warns or throws an error if an oversized dataURL placeholder is provided.\n */\nfunction assertNoOversizedDataUrl(dir) {\n if (dir.placeholder &&\n typeof dir.placeholder === 'string' &&\n dir.placeholder.startsWith('data:')) {\n if (dir.placeholder.length > DATA_URL_ERROR_LIMIT) {\n throw new ɵRuntimeError(2965 /* RuntimeErrorCode.OVERSIZED_PLACEHOLDER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`placeholder\\` attribute is set to a data URL which is longer ` +\n `than ${DATA_URL_ERROR_LIMIT} characters. This is strongly discouraged, as large inline placeholders ` +\n `directly increase the bundle size of Angular and hurt page load performance. To fix this, generate ` +\n `a smaller data URL placeholder.`);\n }\n if (dir.placeholder.length > DATA_URL_WARN_LIMIT) {\n console.warn(ɵformatRuntimeError(2965 /* RuntimeErrorCode.OVERSIZED_PLACEHOLDER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`placeholder\\` attribute is set to a data URL which is longer ` +\n `than ${DATA_URL_WARN_LIMIT} characters. This is discouraged, as large inline placeholders ` +\n `directly increase the bundle size of Angular and hurt page load performance. For better loading performance, ` +\n `generate a smaller data URL placeholder.`));\n }\n }\n}\n/**\n * Verifies that the `ngSrc` is not a Blob URL.\n */\nfunction assertNotBlobUrl(dir) {\n const ngSrc = dir.ngSrc.trim();\n if (ngSrc.startsWith('blob:')) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \\`ngSrc\\` was set to a blob URL (${ngSrc}). ` +\n `Blob URLs are not supported by the NgOptimizedImage directive. ` +\n `To fix this, disable the NgOptimizedImage directive for this element ` +\n `by removing \\`ngSrc\\` and using a regular \\`src\\` attribute instead.`);\n }\n}\n/**\n * Verifies that the input is set to a non-empty string.\n */\nfunction assertNonEmptyInput(dir, name, value) {\n const isString = typeof value === 'string';\n const isEmptyString = isString && value.trim() === '';\n if (!isString || isEmptyString) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \\`${name}\\` has an invalid value ` +\n `(\\`${value}\\`). To fix this, change the value to a non-empty string.`);\n }\n}\n/**\n * Verifies that the `ngSrcset` is in a valid format, e.g. \"100w, 200w\" or \"1x, 2x\".\n */\nfunction assertValidNgSrcset(dir, value) {\n if (value == null)\n return;\n assertNonEmptyInput(dir, 'ngSrcset', value);\n const stringVal = value;\n const isValidWidthDescriptor = VALID_WIDTH_DESCRIPTOR_SRCSET.test(stringVal);\n const isValidDensityDescriptor = VALID_DENSITY_DESCRIPTOR_SRCSET.test(stringVal);\n if (isValidDensityDescriptor) {\n assertUnderDensityCap(dir, stringVal);\n }\n const isValidSrcset = isValidWidthDescriptor || isValidDensityDescriptor;\n if (!isValidSrcset) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \\`ngSrcset\\` has an invalid value (\\`${value}\\`). ` +\n `To fix this, supply \\`ngSrcset\\` using a comma-separated list of one or more width ` +\n `descriptors (e.g. \"100w, 200w\") or density descriptors (e.g. \"1x, 2x\").`);\n }\n}\nfunction assertUnderDensityCap(dir, value) {\n const underDensityCap = value\n .split(',')\n .every((num) => num === '' || parseFloat(num) <= ABSOLUTE_SRCSET_DENSITY_CAP);\n if (!underDensityCap) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \\`ngSrcset\\` contains an unsupported image density:` +\n `\\`${value}\\`. NgOptimizedImage generally recommends a max image density of ` +\n `${RECOMMENDED_SRCSET_DENSITY_CAP}x but supports image densities up to ` +\n `${ABSOLUTE_SRCSET_DENSITY_CAP}x. The human eye cannot distinguish between image densities ` +\n `greater than ${RECOMMENDED_SRCSET_DENSITY_CAP}x - which makes them unnecessary for ` +\n `most use cases. Images that will be pinch-zoomed are typically the primary use case for ` +\n `${ABSOLUTE_SRCSET_DENSITY_CAP}x images. Please remove the high density descriptor and try again.`);\n }\n}\n/**\n * Creates a `RuntimeError` instance to represent a situation when an input is set after\n * the directive has initialized.\n */\nfunction postInitInputChangeError(dir, inputName) {\n let reason;\n if (inputName === 'width' || inputName === 'height') {\n reason =\n `Changing \\`${inputName}\\` may result in different attribute value ` +\n `applied to the underlying image element and cause layout shifts on a page.`;\n }\n else {\n reason =\n `Changing the \\`${inputName}\\` would have no effect on the underlying ` +\n `image element, because the resource loading has already occurred.`;\n }\n return new ɵRuntimeError(2953 /* RuntimeErrorCode.UNEXPECTED_INPUT_CHANGE */, `${imgDirectiveDetails(dir.ngSrc)} \\`${inputName}\\` was updated after initialization. ` +\n `The NgOptimizedImage directive will not react to this input change. ${reason} ` +\n `To fix this, either switch \\`${inputName}\\` to a static value ` +\n `or wrap the image element in an @if that is gated on the necessary value.`);\n}\n/**\n * Verify that none of the listed inputs has changed.\n */\nfunction assertNoPostInitInputChange(dir, changes, inputs) {\n inputs.forEach((input) => {\n const isUpdated = changes.hasOwnProperty(input);\n if (isUpdated && !changes[input].isFirstChange()) {\n if (input === 'ngSrc') {\n // When the `ngSrc` input changes, we detect that only in the\n // `ngOnChanges` hook, thus the `ngSrc` is already set. We use\n // `ngSrc` in the error message, so we use a previous value, but\n // not the updated one in it.\n dir = { ngSrc: changes[input].previousValue };\n }\n throw postInitInputChangeError(dir, input);\n }\n });\n}\n/**\n * Verifies that a specified input is a number greater than 0.\n */\nfunction assertGreaterThanZero(dir, inputValue, inputName) {\n const validNumber = typeof inputValue === 'number' && inputValue > 0;\n const validString = typeof inputValue === 'string' && /^\\d+$/.test(inputValue.trim()) && parseInt(inputValue) > 0;\n if (!validNumber && !validString) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \\`${inputName}\\` has an invalid value. ` +\n `To fix this, provide \\`${inputName}\\` as a number greater than 0.`);\n }\n}\n/**\n * Verifies that the rendered image is not visually distorted. Effectively this is checking:\n * - Whether the \"width\" and \"height\" attributes reflect the actual dimensions of the image.\n * - Whether image styling is \"correct\" (see below for a longer explanation).\n */\nfunction assertNoImageDistortion(dir, img, renderer) {\n const callback = () => {\n removeLoadListenerFn();\n removeErrorListenerFn();\n const computedStyle = window.getComputedStyle(img);\n let renderedWidth = parseFloat(computedStyle.getPropertyValue('width'));\n let renderedHeight = parseFloat(computedStyle.getPropertyValue('height'));\n const boxSizing = computedStyle.getPropertyValue('box-sizing');\n if (boxSizing === 'border-box') {\n const paddingTop = computedStyle.getPropertyValue('padding-top');\n const paddingRight = computedStyle.getPropertyValue('padding-right');\n const paddingBottom = computedStyle.getPropertyValue('padding-bottom');\n const paddingLeft = computedStyle.getPropertyValue('padding-left');\n renderedWidth -= parseFloat(paddingRight) + parseFloat(paddingLeft);\n renderedHeight -= parseFloat(paddingTop) + parseFloat(paddingBottom);\n }\n const renderedAspectRatio = renderedWidth / renderedHeight;\n const nonZeroRenderedDimensions = renderedWidth !== 0 && renderedHeight !== 0;\n const intrinsicWidth = img.naturalWidth;\n const intrinsicHeight = img.naturalHeight;\n const intrinsicAspectRatio = intrinsicWidth / intrinsicHeight;\n const suppliedWidth = dir.width;\n const suppliedHeight = dir.height;\n const suppliedAspectRatio = suppliedWidth / suppliedHeight;\n // Tolerance is used to account for the impact of subpixel rendering.\n // Due to subpixel rendering, the rendered, intrinsic, and supplied\n // aspect ratios of a correctly configured image may not exactly match.\n // For example, a `width=4030 height=3020` image might have a rendered\n // size of \"1062w, 796.48h\". (An aspect ratio of 1.334... vs. 1.333...)\n const inaccurateDimensions = Math.abs(suppliedAspectRatio - intrinsicAspectRatio) > ASPECT_RATIO_TOLERANCE;\n const stylingDistortion = nonZeroRenderedDimensions &&\n Math.abs(intrinsicAspectRatio - renderedAspectRatio) > ASPECT_RATIO_TOLERANCE;\n if (inaccurateDimensions) {\n console.warn(ɵformatRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the aspect ratio of the image does not match ` +\n `the aspect ratio indicated by the width and height attributes. ` +\n `\\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` +\n `(aspect-ratio: ${round(intrinsicAspectRatio)}). \\nSupplied width and height attributes: ` +\n `${suppliedWidth}w x ${suppliedHeight}h (aspect-ratio: ${round(suppliedAspectRatio)}). ` +\n `\\nTo fix this, update the width and height attributes.`));\n }\n else if (stylingDistortion) {\n console.warn(ɵformatRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the aspect ratio of the rendered image ` +\n `does not match the image's intrinsic aspect ratio. ` +\n `\\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` +\n `(aspect-ratio: ${round(intrinsicAspectRatio)}). \\nRendered image size: ` +\n `${renderedWidth}w x ${renderedHeight}h (aspect-ratio: ` +\n `${round(renderedAspectRatio)}). \\nThis issue can occur if \"width\" and \"height\" ` +\n `attributes are added to an image without updating the corresponding ` +\n `image styling. To fix this, adjust image styling. In most cases, ` +\n `adding \"height: auto\" or \"width: auto\" to the image styling will fix ` +\n `this issue.`));\n }\n else if (!dir.ngSrcset && nonZeroRenderedDimensions) {\n // If `ngSrcset` hasn't been set, sanity check the intrinsic size.\n const recommendedWidth = RECOMMENDED_SRCSET_DENSITY_CAP * renderedWidth;\n const recommendedHeight = RECOMMENDED_SRCSET_DENSITY_CAP * renderedHeight;\n const oversizedWidth = intrinsicWidth - recommendedWidth >= OVERSIZED_IMAGE_TOLERANCE;\n const oversizedHeight = intrinsicHeight - recommendedHeight >= OVERSIZED_IMAGE_TOLERANCE;\n if (oversizedWidth || oversizedHeight) {\n console.warn(ɵformatRuntimeError(2960 /* RuntimeErrorCode.OVERSIZED_IMAGE */, `${imgDirectiveDetails(dir.ngSrc)} the intrinsic image is significantly ` +\n `larger than necessary. ` +\n `\\nRendered image size: ${renderedWidth}w x ${renderedHeight}h. ` +\n `\\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h. ` +\n `\\nRecommended intrinsic image size: ${recommendedWidth}w x ${recommendedHeight}h. ` +\n `\\nNote: Recommended intrinsic image size is calculated assuming a maximum DPR of ` +\n `${RECOMMENDED_SRCSET_DENSITY_CAP}. To improve loading time, resize the image ` +\n `or consider using the \"ngSrcset\" and \"sizes\" attributes.`));\n }\n }\n };\n const removeLoadListenerFn = renderer.listen(img, 'load', callback);\n // We only listen to the `error` event to remove the `load` event listener because it will not be\n // fired if the image fails to load. This is done to prevent memory leaks in development mode\n // because image elements aren't garbage-collected properly. It happens because zone.js stores the\n // event listener directly on the element and closures capture `dir`.\n const removeErrorListenerFn = renderer.listen(img, 'error', () => {\n removeLoadListenerFn();\n removeErrorListenerFn();\n });\n callOnLoadIfImageIsLoaded(img, callback);\n}\n/**\n * Verifies that a specified input is set.\n */\nfunction assertNonEmptyWidthAndHeight(dir) {\n let missingAttributes = [];\n if (dir.width === undefined)\n missingAttributes.push('width');\n if (dir.height === undefined)\n missingAttributes.push('height');\n if (missingAttributes.length > 0) {\n throw new ɵRuntimeError(2954 /* RuntimeErrorCode.REQUIRED_INPUT_MISSING */, `${imgDirectiveDetails(dir.ngSrc)} these required attributes ` +\n `are missing: ${missingAttributes.map((attr) => `\"${attr}\"`).join(', ')}. ` +\n `Including \"width\" and \"height\" attributes will prevent image-related layout shifts. ` +\n `To fix this, include \"width\" and \"height\" attributes on the image tag or turn on ` +\n `\"fill\" mode with the \\`fill\\` attribute.`);\n }\n}\n/**\n * Verifies that width and height are not set. Used in fill mode, where those attributes don't make\n * sense.\n */\nfunction assertEmptyWidthAndHeight(dir) {\n if (dir.width || dir.height) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the attributes \\`height\\` and/or \\`width\\` are present ` +\n `along with the \\`fill\\` attribute. Because \\`fill\\` mode causes an image to fill its containing ` +\n `element, the size attributes have no effect and should be removed.`);\n }\n}\n/**\n * Verifies that the rendered image has a nonzero height. If the image is in fill mode, provides\n * guidance that this can be caused by the containing element's CSS position property.\n */\nfunction assertNonZeroRenderedHeight(dir, img, renderer) {\n const callback = () => {\n removeLoadListenerFn();\n removeErrorListenerFn();\n const renderedHeight = img.clientHeight;\n if (dir.fill && renderedHeight === 0) {\n console.warn(ɵformatRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the height of the fill-mode image is zero. ` +\n `This is likely because the containing element does not have the CSS 'position' ` +\n `property set to one of the following: \"relative\", \"fixed\", or \"absolute\". ` +\n `To fix this problem, make sure the container element has the CSS 'position' ` +\n `property defined and the height of the element is not zero.`));\n }\n };\n const removeLoadListenerFn = renderer.listen(img, 'load', callback);\n // See comments in the `assertNoImageDistortion`.\n const removeErrorListenerFn = renderer.listen(img, 'error', () => {\n removeLoadListenerFn();\n removeErrorListenerFn();\n });\n callOnLoadIfImageIsLoaded(img, callback);\n}\n/**\n * Verifies that the `loading` attribute is set to a valid input &\n * is not used on priority images.\n */\nfunction assertValidLoadingInput(dir) {\n if (dir.loading && dir.priority) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \\`loading\\` attribute ` +\n `was used on an image that was marked \"priority\". ` +\n `Setting \\`loading\\` on priority images is not allowed ` +\n `because these images will always be eagerly loaded. ` +\n `To fix this, remove the “loading” attribute from the priority image.`);\n }\n const validInputs = ['auto', 'eager', 'lazy'];\n if (typeof dir.loading === 'string' && !validInputs.includes(dir.loading)) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \\`loading\\` attribute ` +\n `has an invalid value (\\`${dir.loading}\\`). ` +\n `To fix this, provide a valid value (\"lazy\", \"eager\", or \"auto\").`);\n }\n}\n/**\n * Warns if NOT using a loader (falling back to the generic loader) and\n * the image appears to be hosted on one of the image CDNs for which\n * we do have a built-in image loader. Suggests switching to the\n * built-in loader.\n *\n * @param ngSrc Value of the ngSrc attribute\n * @param imageLoader ImageLoader provided\n */\nfunction assertNotMissingBuiltInLoader(ngSrc, imageLoader) {\n if (imageLoader === noopImageLoader) {\n let builtInLoaderName = '';\n for (const loader of BUILT_IN_LOADERS) {\n if (loader.testUrl(ngSrc)) {\n builtInLoaderName = loader.name;\n break;\n }\n }\n if (builtInLoaderName) {\n console.warn(ɵformatRuntimeError(2962 /* RuntimeErrorCode.MISSING_BUILTIN_LOADER */, `NgOptimizedImage: It looks like your images may be hosted on the ` +\n `${builtInLoaderName} CDN, but your app is not using Angular's ` +\n `built-in loader for that CDN. We recommend switching to use ` +\n `the built-in by calling \\`provide${builtInLoaderName}Loader()\\` ` +\n `in your \\`providers\\` and passing it your instance's base URL. ` +\n `If you don't want to use the built-in loader, define a custom ` +\n `loader function using IMAGE_LOADER to silence this warning.`));\n }\n }\n}\n/**\n * Warns if ngSrcset is present and no loader is configured (i.e. the default one is being used).\n */\nfunction assertNoNgSrcsetWithoutLoader(dir, imageLoader) {\n if (dir.ngSrcset && imageLoader === noopImageLoader) {\n console.warn(ɵformatRuntimeError(2963 /* RuntimeErrorCode.MISSING_NECESSARY_LOADER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`ngSrcset\\` attribute is present but ` +\n `no image loader is configured (i.e. the default one is being used), ` +\n `which would result in the same image being used for all configured sizes. ` +\n `To fix this, provide a loader or remove the \\`ngSrcset\\` attribute from the image.`));\n }\n}\n/**\n * Warns if loaderParams is present and no loader is configured (i.e. the default one is being\n * used).\n */\nfunction assertNoLoaderParamsWithoutLoader(dir, imageLoader) {\n if (dir.loaderParams && imageLoader === noopImageLoader) {\n console.warn(ɵformatRuntimeError(2963 /* RuntimeErrorCode.MISSING_NECESSARY_LOADER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`loaderParams\\` attribute is present but ` +\n `no image loader is configured (i.e. the default one is being used), ` +\n `which means that the loaderParams data will not be consumed and will not affect the URL. ` +\n `To fix this, provide a custom loader or remove the \\`loaderParams\\` attribute from the image.`));\n }\n}\n/**\n * Warns if the priority attribute is used too often on page load\n */\nasync function assetPriorityCountBelowThreshold(appRef) {\n if (IMGS_WITH_PRIORITY_ATTR_COUNT === 0) {\n IMGS_WITH_PRIORITY_ATTR_COUNT++;\n await appRef.whenStable();\n if (IMGS_WITH_PRIORITY_ATTR_COUNT > PRIORITY_COUNT_THRESHOLD) {\n console.warn(ɵformatRuntimeError(2966 /* RuntimeErrorCode.TOO_MANY_PRIORITY_ATTRIBUTES */, `NgOptimizedImage: The \"priority\" attribute is set to true more than ${PRIORITY_COUNT_THRESHOLD} times (${IMGS_WITH_PRIORITY_ATTR_COUNT} times). ` +\n `Marking too many images as \"high\" priority can hurt your application's LCP (https://web.dev/lcp). ` +\n `\"Priority\" should only be set on the image expected to be the page's LCP element.`));\n }\n }\n else {\n IMGS_WITH_PRIORITY_ATTR_COUNT++;\n }\n}\n/**\n * Warns if placeholder's dimension are over a threshold.\n *\n * This assert function is meant to only run on the browser.\n */\nfunction assertPlaceholderDimensions(dir, imgElement) {\n const computedStyle = window.getComputedStyle(imgElement);\n let renderedWidth = parseFloat(computedStyle.getPropertyValue('width'));\n let renderedHeight = parseFloat(computedStyle.getPropertyValue('height'));\n if (renderedWidth > PLACEHOLDER_DIMENSION_LIMIT || renderedHeight > PLACEHOLDER_DIMENSION_LIMIT) {\n console.warn(ɵformatRuntimeError(2967 /* RuntimeErrorCode.PLACEHOLDER_DIMENSION_LIMIT_EXCEEDED */, `${imgDirectiveDetails(dir.ngSrc)} it uses a placeholder image, but at least one ` +\n `of the dimensions attribute (height or width) exceeds the limit of ${PLACEHOLDER_DIMENSION_LIMIT}px. ` +\n `To fix this, use a smaller image as a placeholder.`));\n }\n}\nfunction callOnLoadIfImageIsLoaded(img, callback) {\n // https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-complete\n // The spec defines that `complete` is truthy once its request state is fully available.\n // The image may already be available if it’s loaded from the browser cache.\n // In that case, the `load` event will not fire at all, meaning that all setup\n // callbacks listening for the `load` event will not be invoked.\n // In Safari, there is a known behavior where the `complete` property of an\n // `HTMLImageElement` may sometimes return `true` even when the image is not fully loaded.\n // Checking both `img.complete` and `img.naturalWidth` is the most reliable way to\n // determine if an image has been fully loaded, especially in browsers where the\n // `complete` property may return `true` prematurely.\n if (img.complete && img.naturalWidth) {\n callback();\n }\n}\nfunction round(input) {\n return Number.isInteger(input) ? input : input.toFixed(2);\n}\n// Transform function to handle SafeValue input for ngSrc. This doesn't do any sanitization,\n// as that is not needed for img.src and img.srcset. This transform is purely for compatibility.\nfunction unwrapSafeUrl(value) {\n if (typeof value === 'string') {\n return value;\n }\n return ɵunwrapSafeValue(value);\n}\n// Transform function to handle inputs which may be booleans, strings, or string representations\n// of boolean values. Used for the placeholder attribute.\nfunction booleanOrUrlAttribute(value) {\n if (typeof value === 'string' && value !== 'true' && value !== 'false' && value !== '') {\n return value;\n }\n return booleanAttribute(value);\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the common package.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { APP_BASE_HREF, AsyncPipe, BrowserPlatformLocation, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DOCUMENT, DatePipe, DecimalPipe, FormStyle, FormatWidth, HashLocationStrategy, I18nPluralPipe, I18nSelectPipe, IMAGE_LOADER, JsonPipe, KeyValuePipe, LOCATION_INITIALIZED, Location, LocationStrategy, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf as NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgOptimizedImage, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NumberFormatStyle, NumberSymbol, PRECONNECT_CHECK_BLOCKLIST, PathLocationStrategy, PercentPipe, PlatformLocation, Plural, SlicePipe, TitleCasePipe, TranslationWidth, UpperCasePipe, VERSION, ViewportScroller, WeekDay, XhrFactory, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleDirection, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleFirstDayOfWeek, getLocaleId, getLocaleMonthNames, getLocaleNumberFormat, getLocaleNumberSymbol, getLocalePluralCase, getLocaleTimeFormat, getLocaleWeekEndRange, getNumberOfCurrencyDigits, isPlatformBrowser, isPlatformServer, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader, provideNetlifyLoader, registerLocaleData, DomAdapter as ɵDomAdapter, NullViewportScroller as ɵNullViewportScroller, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID, PlatformNavigation as ɵPlatformNavigation, getDOM as ɵgetDOM, normalizeQueryParams as ɵnormalizeQueryParams, parseCookieValue as ɵparseCookieValue, setRootDomAdapter as ɵsetRootDomAdapter };\n","/**\n * @license Angular v19.1.4\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { ɵRuntimeError, Injectable, InjectionToken, inject, NgZone, runInInjectionContext, ɵPendingTasksInternal, PLATFORM_ID, ɵConsole, ɵformatRuntimeError, Inject, makeEnvironmentProviders, NgModule, TransferState, makeStateKey, ɵperformanceMarkFeature, APP_BOOTSTRAP_LISTENER, ApplicationRef, ɵtruncateMiddle } from '@angular/core';\nimport { of, Observable, from } from 'rxjs';\nimport { concatMap, filter, map, finalize, switchMap, tap } from 'rxjs/operators';\nimport * as i1 from '@angular/common';\nimport { isPlatformServer, DOCUMENT, ɵparseCookieValue } from '@angular/common';\n\n/**\n * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a\n * `HttpResponse`.\n *\n * `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the\n * first interceptor in the chain, which dispatches to the second, etc, eventually reaching the\n * `HttpBackend`.\n *\n * In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.\n *\n * @publicApi\n */\nclass HttpHandler {\n}\n/**\n * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.\n *\n * Interceptors sit between the `HttpClient` interface and the `HttpBackend`.\n *\n * When injected, `HttpBackend` dispatches requests directly to the backend, without going\n * through the interceptor chain.\n *\n * @publicApi\n */\nclass HttpBackend {\n}\n\n/**\n * Represents the header configuration options for an HTTP request.\n * Instances are immutable. Modifying methods return a cloned\n * instance with the change. The original object is never changed.\n *\n * @publicApi\n */\nclass HttpHeaders {\n /**\n * Internal map of lowercase header names to values.\n */\n // TODO(issue/24571): remove '!'.\n headers;\n /**\n * Internal map of lowercased header names to the normalized\n * form of the name (the form seen first).\n */\n normalizedNames = new Map();\n /**\n * Complete the lazy initialization of this object (needed before reading).\n */\n lazyInit;\n /**\n * Queued updates to be materialized the next initialization.\n */\n lazyUpdate = null;\n /** Constructs a new HTTP header object with the given values.*/\n constructor(headers) {\n if (!headers) {\n this.headers = new Map();\n }\n else if (typeof headers === 'string') {\n this.lazyInit = () => {\n this.headers = new Map();\n headers.split('\\n').forEach((line) => {\n const index = line.indexOf(':');\n if (index > 0) {\n const name = line.slice(0, index);\n const value = line.slice(index + 1).trim();\n this.addHeaderEntry(name, value);\n }\n });\n };\n }\n else if (typeof Headers !== 'undefined' && headers instanceof Headers) {\n this.headers = new Map();\n headers.forEach((value, name) => {\n this.addHeaderEntry(name, value);\n });\n }\n else {\n this.lazyInit = () => {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n assertValidHeaders(headers);\n }\n this.headers = new Map();\n Object.entries(headers).forEach(([name, values]) => {\n this.setHeaderEntries(name, values);\n });\n };\n }\n }\n /**\n * Checks for existence of a given header.\n *\n * @param name The header name to check for existence.\n *\n * @returns True if the header exists, false otherwise.\n */\n has(name) {\n this.init();\n return this.headers.has(name.toLowerCase());\n }\n /**\n * Retrieves the first value of a given header.\n *\n * @param name The header name.\n *\n * @returns The value string if the header exists, null otherwise\n */\n get(name) {\n this.init();\n const values = this.headers.get(name.toLowerCase());\n return values && values.length > 0 ? values[0] : null;\n }\n /**\n * Retrieves the names of the headers.\n *\n * @returns A list of header names.\n */\n keys() {\n this.init();\n return Array.from(this.normalizedNames.values());\n }\n /**\n * Retrieves a list of values for a given header.\n *\n * @param name The header name from which to retrieve values.\n *\n * @returns A string of values if the header exists, null otherwise.\n */\n getAll(name) {\n this.init();\n return this.headers.get(name.toLowerCase()) || null;\n }\n /**\n * Appends a new value to the existing set of values for a header\n * and returns them in a clone of the original instance.\n *\n * @param name The header name for which to append the values.\n * @param value The value to append.\n *\n * @returns A clone of the HTTP headers object with the value appended to the given header.\n */\n append(name, value) {\n return this.clone({ name, value, op: 'a' });\n }\n /**\n * Sets or modifies a value for a given header in a clone of the original instance.\n * If the header already exists, its value is replaced with the given value\n * in the returned object.\n *\n * @param name The header name.\n * @param value The value or values to set or override for the given header.\n *\n * @returns A clone of the HTTP headers object with the newly set header value.\n */\n set(name, value) {\n return this.clone({ name, value, op: 's' });\n }\n /**\n * Deletes values for a given header in a clone of the original instance.\n *\n * @param name The header name.\n * @param value The value or values to delete for the given header.\n *\n * @returns A clone of the HTTP headers object with the given value deleted.\n */\n delete(name, value) {\n return this.clone({ name, value, op: 'd' });\n }\n maybeSetNormalizedName(name, lcName) {\n if (!this.normalizedNames.has(lcName)) {\n this.normalizedNames.set(lcName, name);\n }\n }\n init() {\n if (!!this.lazyInit) {\n if (this.lazyInit instanceof HttpHeaders) {\n this.copyFrom(this.lazyInit);\n }\n else {\n this.lazyInit();\n }\n this.lazyInit = null;\n if (!!this.lazyUpdate) {\n this.lazyUpdate.forEach((update) => this.applyUpdate(update));\n this.lazyUpdate = null;\n }\n }\n }\n copyFrom(other) {\n other.init();\n Array.from(other.headers.keys()).forEach((key) => {\n this.headers.set(key, other.headers.get(key));\n this.normalizedNames.set(key, other.normalizedNames.get(key));\n });\n }\n clone(update) {\n const clone = new HttpHeaders();\n clone.lazyInit = !!this.lazyInit && this.lazyInit instanceof HttpHeaders ? this.lazyInit : this;\n clone.lazyUpdate = (this.lazyUpdate || []).concat([update]);\n return clone;\n }\n applyUpdate(update) {\n const key = update.name.toLowerCase();\n switch (update.op) {\n case 'a':\n case 's':\n let value = update.value;\n if (typeof value === 'string') {\n value = [value];\n }\n if (value.length === 0) {\n return;\n }\n this.maybeSetNormalizedName(update.name, key);\n const base = (update.op === 'a' ? this.headers.get(key) : undefined) || [];\n base.push(...value);\n this.headers.set(key, base);\n break;\n case 'd':\n const toDelete = update.value;\n if (!toDelete) {\n this.headers.delete(key);\n this.normalizedNames.delete(key);\n }\n else {\n let existing = this.headers.get(key);\n if (!existing) {\n return;\n }\n existing = existing.filter((value) => toDelete.indexOf(value) === -1);\n if (existing.length === 0) {\n this.headers.delete(key);\n this.normalizedNames.delete(key);\n }\n else {\n this.headers.set(key, existing);\n }\n }\n break;\n }\n }\n addHeaderEntry(name, value) {\n const key = name.toLowerCase();\n this.maybeSetNormalizedName(name, key);\n if (this.headers.has(key)) {\n this.headers.get(key).push(value);\n }\n else {\n this.headers.set(key, [value]);\n }\n }\n setHeaderEntries(name, values) {\n const headerValues = (Array.isArray(values) ? values : [values]).map((value) => value.toString());\n const key = name.toLowerCase();\n this.headers.set(key, headerValues);\n this.maybeSetNormalizedName(name, key);\n }\n /**\n * @internal\n */\n forEach(fn) {\n this.init();\n Array.from(this.normalizedNames.keys()).forEach((key) => fn(this.normalizedNames.get(key), this.headers.get(key)));\n }\n}\n/**\n * Verifies that the headers object has the right shape: the values\n * must be either strings, numbers or arrays. Throws an error if an invalid\n * header value is present.\n */\nfunction assertValidHeaders(headers) {\n for (const [key, value] of Object.entries(headers)) {\n if (!(typeof value === 'string' || typeof value === 'number') && !Array.isArray(value)) {\n throw new Error(`Unexpected value of the \\`${key}\\` header provided. ` +\n `Expecting either a string, a number or an array, but got: \\`${value}\\`.`);\n }\n }\n}\n\n/**\n * Provides encoding and decoding of URL parameter and query-string values.\n *\n * Serializes and parses URL parameter keys and values to encode and decode them.\n * If you pass URL query parameters without encoding,\n * the query parameters can be misinterpreted at the receiving end.\n *\n *\n * @publicApi\n */\nclass HttpUrlEncodingCodec {\n /**\n * Encodes a key name for a URL parameter or query-string.\n * @param key The key name.\n * @returns The encoded key name.\n */\n encodeKey(key) {\n return standardEncoding(key);\n }\n /**\n * Encodes the value of a URL parameter or query-string.\n * @param value The value.\n * @returns The encoded value.\n */\n encodeValue(value) {\n return standardEncoding(value);\n }\n /**\n * Decodes an encoded URL parameter or query-string key.\n * @param key The encoded key name.\n * @returns The decoded key name.\n */\n decodeKey(key) {\n return decodeURIComponent(key);\n }\n /**\n * Decodes an encoded URL parameter or query-string value.\n * @param value The encoded value.\n * @returns The decoded value.\n */\n decodeValue(value) {\n return decodeURIComponent(value);\n }\n}\nfunction paramParser(rawParams, codec) {\n const map = new Map();\n if (rawParams.length > 0) {\n // The `window.location.search` can be used while creating an instance of the `HttpParams` class\n // (e.g. `new HttpParams({ fromString: window.location.search })`). The `window.location.search`\n // may start with the `?` char, so we strip it if it's present.\n const params = rawParams.replace(/^\\?/, '').split('&');\n params.forEach((param) => {\n const eqIdx = param.indexOf('=');\n const [key, val] = eqIdx == -1\n ? [codec.decodeKey(param), '']\n : [codec.decodeKey(param.slice(0, eqIdx)), codec.decodeValue(param.slice(eqIdx + 1))];\n const list = map.get(key) || [];\n list.push(val);\n map.set(key, list);\n });\n }\n return map;\n}\n/**\n * Encode input string with standard encodeURIComponent and then un-encode specific characters.\n */\nconst STANDARD_ENCODING_REGEX = /%(\\d[a-f0-9])/gi;\nconst STANDARD_ENCODING_REPLACEMENTS = {\n '40': '@',\n '3A': ':',\n '24': '$',\n '2C': ',',\n '3B': ';',\n '3D': '=',\n '3F': '?',\n '2F': '/',\n};\nfunction standardEncoding(v) {\n return encodeURIComponent(v).replace(STANDARD_ENCODING_REGEX, (s, t) => STANDARD_ENCODING_REPLACEMENTS[t] ?? s);\n}\nfunction valueToString(value) {\n return `${value}`;\n}\n/**\n * An HTTP request/response body that represents serialized parameters,\n * per the MIME type `application/x-www-form-urlencoded`.\n *\n * This class is immutable; all mutation operations return a new instance.\n *\n * @publicApi\n */\nclass HttpParams {\n map;\n encoder;\n updates = null;\n cloneFrom = null;\n constructor(options = {}) {\n this.encoder = options.encoder || new HttpUrlEncodingCodec();\n if (options.fromString) {\n if (options.fromObject) {\n throw new ɵRuntimeError(2805 /* RuntimeErrorCode.CANNOT_SPECIFY_BOTH_FROM_STRING_AND_FROM_OBJECT */, ngDevMode && 'Cannot specify both fromString and fromObject.');\n }\n this.map = paramParser(options.fromString, this.encoder);\n }\n else if (!!options.fromObject) {\n this.map = new Map();\n Object.keys(options.fromObject).forEach((key) => {\n const value = options.fromObject[key];\n // convert the values to strings\n const values = Array.isArray(value) ? value.map(valueToString) : [valueToString(value)];\n this.map.set(key, values);\n });\n }\n else {\n this.map = null;\n }\n }\n /**\n * Reports whether the body includes one or more values for a given parameter.\n * @param param The parameter name.\n * @returns True if the parameter has one or more values,\n * false if it has no value or is not present.\n */\n has(param) {\n this.init();\n return this.map.has(param);\n }\n /**\n * Retrieves the first value for a parameter.\n * @param param The parameter name.\n * @returns The first value of the given parameter,\n * or `null` if the parameter is not present.\n */\n get(param) {\n this.init();\n const res = this.map.get(param);\n return !!res ? res[0] : null;\n }\n /**\n * Retrieves all values for a parameter.\n * @param param The parameter name.\n * @returns All values in a string array,\n * or `null` if the parameter not present.\n */\n getAll(param) {\n this.init();\n return this.map.get(param) || null;\n }\n /**\n * Retrieves all the parameters for this body.\n * @returns The parameter names in a string array.\n */\n keys() {\n this.init();\n return Array.from(this.map.keys());\n }\n /**\n * Appends a new value to existing values for a parameter.\n * @param param The parameter name.\n * @param value The new value to add.\n * @return A new body with the appended value.\n */\n append(param, value) {\n return this.clone({ param, value, op: 'a' });\n }\n /**\n * Constructs a new body with appended values for the given parameter name.\n * @param params parameters and values\n * @return A new body with the new value.\n */\n appendAll(params) {\n const updates = [];\n Object.keys(params).forEach((param) => {\n const value = params[param];\n if (Array.isArray(value)) {\n value.forEach((_value) => {\n updates.push({ param, value: _value, op: 'a' });\n });\n }\n else {\n updates.push({ param, value: value, op: 'a' });\n }\n });\n return this.clone(updates);\n }\n /**\n * Replaces the value for a parameter.\n * @param param The parameter name.\n * @param value The new value.\n * @return A new body with the new value.\n */\n set(param, value) {\n return this.clone({ param, value, op: 's' });\n }\n /**\n * Removes a given value or all values from a parameter.\n * @param param The parameter name.\n * @param value The value to remove, if provided.\n * @return A new body with the given value removed, or with all values\n * removed if no value is specified.\n */\n delete(param, value) {\n return this.clone({ param, value, op: 'd' });\n }\n /**\n * Serializes the body to an encoded string, where key-value pairs (separated by `=`) are\n * separated by `&`s.\n */\n toString() {\n this.init();\n return (this.keys()\n .map((key) => {\n const eKey = this.encoder.encodeKey(key);\n // `a: ['1']` produces `'a=1'`\n // `b: []` produces `''`\n // `c: ['1', '2']` produces `'c=1&c=2'`\n return this.map.get(key)\n .map((value) => eKey + '=' + this.encoder.encodeValue(value))\n .join('&');\n })\n // filter out empty values because `b: []` produces `''`\n // which results in `a=1&&c=1&c=2` instead of `a=1&c=1&c=2` if we don't\n .filter((param) => param !== '')\n .join('&'));\n }\n clone(update) {\n const clone = new HttpParams({ encoder: this.encoder });\n clone.cloneFrom = this.cloneFrom || this;\n clone.updates = (this.updates || []).concat(update);\n return clone;\n }\n init() {\n if (this.map === null) {\n this.map = new Map();\n }\n if (this.cloneFrom !== null) {\n this.cloneFrom.init();\n this.cloneFrom.keys().forEach((key) => this.map.set(key, this.cloneFrom.map.get(key)));\n this.updates.forEach((update) => {\n switch (update.op) {\n case 'a':\n case 's':\n const base = (update.op === 'a' ? this.map.get(update.param) : undefined) || [];\n base.push(valueToString(update.value));\n this.map.set(update.param, base);\n break;\n case 'd':\n if (update.value !== undefined) {\n let base = this.map.get(update.param) || [];\n const idx = base.indexOf(valueToString(update.value));\n if (idx !== -1) {\n base.splice(idx, 1);\n }\n if (base.length > 0) {\n this.map.set(update.param, base);\n }\n else {\n this.map.delete(update.param);\n }\n }\n else {\n this.map.delete(update.param);\n break;\n }\n }\n });\n this.cloneFrom = this.updates = null;\n }\n }\n}\n\n/**\n * A token used to manipulate and access values stored in `HttpContext`.\n *\n * @publicApi\n */\nclass HttpContextToken {\n defaultValue;\n constructor(defaultValue) {\n this.defaultValue = defaultValue;\n }\n}\n/**\n * Http context stores arbitrary user defined values and ensures type safety without\n * actually knowing the types. It is backed by a `Map` and guarantees that keys do not clash.\n *\n * This context is mutable and is shared between cloned requests unless explicitly specified.\n *\n * @usageNotes\n *\n * ### Usage Example\n *\n * ```ts\n * // inside cache.interceptors.ts\n * export const IS_CACHE_ENABLED = new HttpContextToken<boolean>(() => false);\n *\n * export class CacheInterceptor implements HttpInterceptor {\n *\n * intercept(req: HttpRequest<any>, delegate: HttpHandler): Observable<HttpEvent<any>> {\n * if (req.context.get(IS_CACHE_ENABLED) === true) {\n * return ...;\n * }\n * return delegate.handle(req);\n * }\n * }\n *\n * // inside a service\n *\n * this.httpClient.get('/api/weather', {\n * context: new HttpContext().set(IS_CACHE_ENABLED, true)\n * }).subscribe(...);\n * ```\n *\n * @publicApi\n */\nclass HttpContext {\n map = new Map();\n /**\n * Store a value in the context. If a value is already present it will be overwritten.\n *\n * @param token The reference to an instance of `HttpContextToken`.\n * @param value The value to store.\n *\n * @returns A reference to itself for easy chaining.\n */\n set(token, value) {\n this.map.set(token, value);\n return this;\n }\n /**\n * Retrieve the value associated with the given token.\n *\n * @param token The reference to an instance of `HttpContextToken`.\n *\n * @returns The stored value or default if one is defined.\n */\n get(token) {\n if (!this.map.has(token)) {\n this.map.set(token, token.defaultValue());\n }\n return this.map.get(token);\n }\n /**\n * Delete the value associated with the given token.\n *\n * @param token The reference to an instance of `HttpContextToken`.\n *\n * @returns A reference to itself for easy chaining.\n */\n delete(token) {\n this.map.delete(token);\n return this;\n }\n /**\n * Checks for existence of a given token.\n *\n * @param token The reference to an instance of `HttpContextToken`.\n *\n * @returns True if the token exists, false otherwise.\n */\n has(token) {\n return this.map.has(token);\n }\n /**\n * @returns a list of tokens currently stored in the context.\n */\n keys() {\n return this.map.keys();\n }\n}\n\n/**\n * Determine whether the given HTTP method may include a body.\n */\nfunction mightHaveBody(method) {\n switch (method) {\n case 'DELETE':\n case 'GET':\n case 'HEAD':\n case 'OPTIONS':\n case 'JSONP':\n return false;\n default:\n return true;\n }\n}\n/**\n * Safely assert whether the given value is an ArrayBuffer.\n *\n * In some execution environments ArrayBuffer is not defined.\n */\nfunction isArrayBuffer(value) {\n return typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer;\n}\n/**\n * Safely assert whether the given value is a Blob.\n *\n * In some execution environments Blob is not defined.\n */\nfunction isBlob(value) {\n return typeof Blob !== 'undefined' && value instanceof Blob;\n}\n/**\n * Safely assert whether the given value is a FormData instance.\n *\n * In some execution environments FormData is not defined.\n */\nfunction isFormData(value) {\n return typeof FormData !== 'undefined' && value instanceof FormData;\n}\n/**\n * Safely assert whether the given value is a URLSearchParams instance.\n *\n * In some execution environments URLSearchParams is not defined.\n */\nfunction isUrlSearchParams(value) {\n return typeof URLSearchParams !== 'undefined' && value instanceof URLSearchParams;\n}\n/**\n * `Content-Type` is an HTTP header used to indicate the media type\n * (also known as MIME type) of the resource being sent to the client\n * or received from the server.\n */\nconst CONTENT_TYPE_HEADER = 'Content-Type';\n/**\n * The `Accept` header is an HTTP request header that indicates the media types\n * (or content types) the client is willing to receive from the server.\n */\nconst ACCEPT_HEADER = 'Accept';\n/**\n * `X-Request-URL` is a custom HTTP header used in older browser versions,\n * including Firefox (< 32), Chrome (< 37), Safari (< 8), and Internet Explorer,\n * to include the full URL of the request in cross-origin requests.\n */\nconst X_REQUEST_URL_HEADER = 'X-Request-URL';\n/**\n * `text/plain` is a content type used to indicate that the content being\n * sent is plain text with no special formatting or structured data\n * like HTML, XML, or JSON.\n */\nconst TEXT_CONTENT_TYPE = 'text/plain';\n/**\n * `application/json` is a content type used to indicate that the content\n * being sent is in the JSON format.\n */\nconst JSON_CONTENT_TYPE = 'application/json';\n/**\n * `application/json, text/plain, *\\/*` is a content negotiation string often seen in the\n * Accept header of HTTP requests. It indicates the types of content the client is willing\n * to accept from the server, with a preference for `application/json` and `text/plain`,\n * but also accepting any other type (*\\/*).\n */\nconst ACCEPT_HEADER_VALUE = `${JSON_CONTENT_TYPE}, ${TEXT_CONTENT_TYPE}, */*`;\n/**\n * An outgoing HTTP request with an optional typed body.\n *\n * `HttpRequest` represents an outgoing request, including URL, method,\n * headers, body, and other request configuration options. Instances should be\n * assumed to be immutable. To modify a `HttpRequest`, the `clone`\n * method should be used.\n *\n * @publicApi\n */\nclass HttpRequest {\n url;\n /**\n * The request body, or `null` if one isn't set.\n *\n * Bodies are not enforced to be immutable, as they can include a reference to any\n * user-defined data type. However, interceptors should take care to preserve\n * idempotence by treating them as such.\n */\n body = null;\n /**\n * Outgoing headers for this request.\n */\n // TODO(issue/24571): remove '!'.\n headers;\n /**\n * Shared and mutable context that can be used by interceptors\n */\n context;\n /**\n * Whether this request should be made in a way that exposes progress events.\n *\n * Progress events are expensive (change detection runs on each event) and so\n * they should only be requested if the consumer intends to monitor them.\n *\n * Note: The `FetchBackend` doesn't support progress report on uploads.\n */\n reportProgress = false;\n /**\n * Whether this request should be sent with outgoing credentials (cookies).\n */\n withCredentials = false;\n /**\n * The expected response type of the server.\n *\n * This is used to parse the response appropriately before returning it to\n * the requestee.\n */\n responseType = 'json';\n /**\n * The outgoing HTTP request method.\n */\n method;\n /**\n * Outgoing URL parameters.\n *\n * To pass a string representation of HTTP parameters in the URL-query-string format,\n * the `HttpParamsOptions`' `fromString` may be used. For example:\n *\n * ```ts\n * new HttpParams({fromString: 'angular=awesome'})\n * ```\n */\n // TODO(issue/24571): remove '!'.\n params;\n /**\n * The outgoing URL with all URL parameters set.\n */\n urlWithParams;\n /**\n * The HttpTransferCache option for the request\n */\n transferCache;\n constructor(method, url, third, fourth) {\n this.url = url;\n this.method = method.toUpperCase();\n // Next, need to figure out which argument holds the HttpRequestInit\n // options, if any.\n let options;\n // Check whether a body argument is expected. The only valid way to omit\n // the body argument is to use a known no-body method like GET.\n if (mightHaveBody(this.method) || !!fourth) {\n // Body is the third argument, options are the fourth.\n this.body = third !== undefined ? third : null;\n options = fourth;\n }\n else {\n // No body required, options are the third argument. The body stays null.\n options = third;\n }\n // If options have been passed, interpret them.\n if (options) {\n // Normalize reportProgress and withCredentials.\n this.reportProgress = !!options.reportProgress;\n this.withCredentials = !!options.withCredentials;\n // Override default response type of 'json' if one is provided.\n if (!!options.responseType) {\n this.responseType = options.responseType;\n }\n // Override headers if they're provided.\n if (!!options.headers) {\n this.headers = options.headers;\n }\n if (!!options.context) {\n this.context = options.context;\n }\n if (!!options.params) {\n this.params = options.params;\n }\n // We do want to assign transferCache even if it's falsy (false is valid value)\n this.transferCache = options.transferCache;\n }\n // If no headers have been passed in, construct a new HttpHeaders instance.\n this.headers ??= new HttpHeaders();\n // If no context have been passed in, construct a new HttpContext instance.\n this.context ??= new HttpContext();\n // If no parameters have been passed in, construct a new HttpUrlEncodedParams instance.\n if (!this.params) {\n this.params = new HttpParams();\n this.urlWithParams = url;\n }\n else {\n // Encode the parameters to a string in preparation for inclusion in the URL.\n const params = this.params.toString();\n if (params.length === 0) {\n // No parameters, the visible URL is just the URL given at creation time.\n this.urlWithParams = url;\n }\n else {\n // Does the URL already have query parameters? Look for '?'.\n const qIdx = url.indexOf('?');\n // There are 3 cases to handle:\n // 1) No existing parameters -> append '?' followed by params.\n // 2) '?' exists and is followed by existing query string ->\n // append '&' followed by params.\n // 3) '?' exists at the end of the url -> append params directly.\n // This basically amounts to determining the character, if any, with\n // which to join the URL and parameters.\n const sep = qIdx === -1 ? '?' : qIdx < url.length - 1 ? '&' : '';\n this.urlWithParams = url + sep + params;\n }\n }\n }\n /**\n * Transform the free-form body into a serialized format suitable for\n * transmission to the server.\n */\n serializeBody() {\n // If no body is present, no need to serialize it.\n if (this.body === null) {\n return null;\n }\n // Check whether the body is already in a serialized form. If so,\n // it can just be returned directly.\n if (typeof this.body === 'string' ||\n isArrayBuffer(this.body) ||\n isBlob(this.body) ||\n isFormData(this.body) ||\n isUrlSearchParams(this.body)) {\n return this.body;\n }\n // Check whether the body is an instance of HttpUrlEncodedParams.\n if (this.body instanceof HttpParams) {\n return this.body.toString();\n }\n // Check whether the body is an object or array, and serialize with JSON if so.\n if (typeof this.body === 'object' ||\n typeof this.body === 'boolean' ||\n Array.isArray(this.body)) {\n return JSON.stringify(this.body);\n }\n // Fall back on toString() for everything else.\n return this.body.toString();\n }\n /**\n * Examine the body and attempt to infer an appropriate MIME type\n * for it.\n *\n * If no such type can be inferred, this method will return `null`.\n */\n detectContentTypeHeader() {\n // An empty body has no content type.\n if (this.body === null) {\n return null;\n }\n // FormData bodies rely on the browser's content type assignment.\n if (isFormData(this.body)) {\n return null;\n }\n // Blobs usually have their own content type. If it doesn't, then\n // no type can be inferred.\n if (isBlob(this.body)) {\n return this.body.type || null;\n }\n // Array buffers have unknown contents and thus no type can be inferred.\n if (isArrayBuffer(this.body)) {\n return null;\n }\n // Technically, strings could be a form of JSON data, but it's safe enough\n // to assume they're plain strings.\n if (typeof this.body === 'string') {\n return TEXT_CONTENT_TYPE;\n }\n // `HttpUrlEncodedParams` has its own content-type.\n if (this.body instanceof HttpParams) {\n return 'application/x-www-form-urlencoded;charset=UTF-8';\n }\n // Arrays, objects, boolean and numbers will be encoded as JSON.\n if (typeof this.body === 'object' ||\n typeof this.body === 'number' ||\n typeof this.body === 'boolean') {\n return JSON_CONTENT_TYPE;\n }\n // No type could be inferred.\n return null;\n }\n clone(update = {}) {\n // For method, url, and responseType, take the current value unless\n // it is overridden in the update hash.\n const method = update.method || this.method;\n const url = update.url || this.url;\n const responseType = update.responseType || this.responseType;\n // Carefully handle the transferCache to differentiate between\n // `false` and `undefined` in the update args.\n const transferCache = update.transferCache ?? this.transferCache;\n // The body is somewhat special - a `null` value in update.body means\n // whatever current body is present is being overridden with an empty\n // body, whereas an `undefined` value in update.body implies no\n // override.\n const body = update.body !== undefined ? update.body : this.body;\n // Carefully handle the boolean options to differentiate between\n // `false` and `undefined` in the update args.\n const withCredentials = update.withCredentials ?? this.withCredentials;\n const reportProgress = update.reportProgress ?? this.reportProgress;\n // Headers and params may be appended to if `setHeaders` or\n // `setParams` are used.\n let headers = update.headers || this.headers;\n let params = update.params || this.params;\n // Pass on context if needed\n const context = update.context ?? this.context;\n // Check whether the caller has asked to add headers.\n if (update.setHeaders !== undefined) {\n // Set every requested header.\n headers = Object.keys(update.setHeaders).reduce((headers, name) => headers.set(name, update.setHeaders[name]), headers);\n }\n // Check whether the caller has asked to set params.\n if (update.setParams) {\n // Set every requested param.\n params = Object.keys(update.setParams).reduce((params, param) => params.set(param, update.setParams[param]), params);\n }\n // Finally, construct the new HttpRequest using the pieces from above.\n return new HttpRequest(method, url, body, {\n params,\n headers,\n context,\n reportProgress,\n responseType,\n withCredentials,\n transferCache,\n });\n }\n}\n\n/**\n * Type enumeration for the different kinds of `HttpEvent`.\n *\n * @publicApi\n */\nvar HttpEventType;\n(function (HttpEventType) {\n /**\n * The request was sent out over the wire.\n */\n HttpEventType[HttpEventType[\"Sent\"] = 0] = \"Sent\";\n /**\n * An upload progress event was received.\n *\n * Note: The `FetchBackend` doesn't support progress report on uploads.\n */\n HttpEventType[HttpEventType[\"UploadProgress\"] = 1] = \"UploadProgress\";\n /**\n * The response status code and headers were received.\n */\n HttpEventType[HttpEventType[\"ResponseHeader\"] = 2] = \"ResponseHeader\";\n /**\n * A download progress event was received.\n */\n HttpEventType[HttpEventType[\"DownloadProgress\"] = 3] = \"DownloadProgress\";\n /**\n * The full response including the body was received.\n */\n HttpEventType[HttpEventType[\"Response\"] = 4] = \"Response\";\n /**\n * A custom event from an interceptor or a backend.\n */\n HttpEventType[HttpEventType[\"User\"] = 5] = \"User\";\n})(HttpEventType || (HttpEventType = {}));\n/**\n * Base class for both `HttpResponse` and `HttpHeaderResponse`.\n *\n * @publicApi\n */\nclass HttpResponseBase {\n /**\n * All response headers.\n */\n headers;\n /**\n * Response status code.\n */\n status;\n /**\n * Textual description of response status code, defaults to OK.\n *\n * Do not depend on this.\n */\n statusText;\n /**\n * URL of the resource retrieved, or null if not available.\n */\n url;\n /**\n * Whether the status code falls in the 2xx range.\n */\n ok;\n /**\n * Type of the response, narrowed to either the full response or the header.\n */\n // TODO(issue/24571): remove '!'.\n type;\n /**\n * Super-constructor for all responses.\n *\n * The single parameter accepted is an initialization hash. Any properties\n * of the response passed there will override the default values.\n */\n constructor(init, defaultStatus = 200, defaultStatusText = 'OK') {\n // If the hash has values passed, use them to initialize the response.\n // Otherwise use the default values.\n this.headers = init.headers || new HttpHeaders();\n this.status = init.status !== undefined ? init.status : defaultStatus;\n this.statusText = init.statusText || defaultStatusText;\n this.url = init.url || null;\n // Cache the ok value to avoid defining a getter.\n this.ok = this.status >= 200 && this.status < 300;\n }\n}\n/**\n * A partial HTTP response which only includes the status and header data,\n * but no response body.\n *\n * `HttpHeaderResponse` is a `HttpEvent` available on the response\n * event stream, only when progress events are requested.\n *\n * @publicApi\n */\nclass HttpHeaderResponse extends HttpResponseBase {\n /**\n * Create a new `HttpHeaderResponse` with the given parameters.\n */\n constructor(init = {}) {\n super(init);\n }\n type = HttpEventType.ResponseHeader;\n /**\n * Copy this `HttpHeaderResponse`, overriding its contents with the\n * given parameter hash.\n */\n clone(update = {}) {\n // Perform a straightforward initialization of the new HttpHeaderResponse,\n // overriding the current parameters with new ones if given.\n return new HttpHeaderResponse({\n headers: update.headers || this.headers,\n status: update.status !== undefined ? update.status : this.status,\n statusText: update.statusText || this.statusText,\n url: update.url || this.url || undefined,\n });\n }\n}\n/**\n * A full HTTP response, including a typed response body (which may be `null`\n * if one was not returned).\n *\n * `HttpResponse` is a `HttpEvent` available on the response event\n * stream.\n *\n * @publicApi\n */\nclass HttpResponse extends HttpResponseBase {\n /**\n * The response body, or `null` if one was not returned.\n */\n body;\n /**\n * Construct a new `HttpResponse`.\n */\n constructor(init = {}) {\n super(init);\n this.body = init.body !== undefined ? init.body : null;\n }\n type = HttpEventType.Response;\n clone(update = {}) {\n return new HttpResponse({\n body: update.body !== undefined ? update.body : this.body,\n headers: update.headers || this.headers,\n status: update.status !== undefined ? update.status : this.status,\n statusText: update.statusText || this.statusText,\n url: update.url || this.url || undefined,\n });\n }\n}\n/**\n * A response that represents an error or failure, either from a\n * non-successful HTTP status, an error while executing the request,\n * or some other failure which occurred during the parsing of the response.\n *\n * Any error returned on the `Observable` response stream will be\n * wrapped in an `HttpErrorResponse` to provide additional context about\n * the state of the HTTP layer when the error occurred. The error property\n * will contain either a wrapped Error object or the error response returned\n * from the server.\n *\n * @publicApi\n */\nclass HttpErrorResponse extends HttpResponseBase {\n name = 'HttpErrorResponse';\n message;\n error;\n /**\n * Errors are never okay, even when the status code is in the 2xx success range.\n */\n ok = false;\n constructor(init) {\n // Initialize with a default status of 0 / Unknown Error.\n super(init, 0, 'Unknown Error');\n // If the response was successful, then this was a parse error. Otherwise, it was\n // a protocol-level failure of some sort. Either the request failed in transit\n // or the server returned an unsuccessful status code.\n if (this.status >= 200 && this.status < 300) {\n this.message = `Http failure during parsing for ${init.url || '(unknown url)'}`;\n }\n else {\n this.message = `Http failure response for ${init.url || '(unknown url)'}: ${init.status} ${init.statusText}`;\n }\n this.error = init.error || null;\n }\n}\n/**\n * We use these constant to prevent pulling the whole HttpStatusCode enum\n * Those are the only ones referenced directly by the framework\n */\nconst HTTP_STATUS_CODE_OK = 200;\nconst HTTP_STATUS_CODE_NO_CONTENT = 204;\n/**\n * Http status codes.\n * As per https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml\n * @publicApi\n */\nvar HttpStatusCode;\n(function (HttpStatusCode) {\n HttpStatusCode[HttpStatusCode[\"Continue\"] = 100] = \"Continue\";\n HttpStatusCode[HttpStatusCode[\"SwitchingProtocols\"] = 101] = \"SwitchingProtocols\";\n HttpStatusCode[HttpStatusCode[\"Processing\"] = 102] = \"Processing\";\n HttpStatusCode[HttpStatusCode[\"EarlyHints\"] = 103] = \"EarlyHints\";\n HttpStatusCode[HttpStatusCode[\"Ok\"] = 200] = \"Ok\";\n HttpStatusCode[HttpStatusCode[\"Created\"] = 201] = \"Created\";\n HttpStatusCode[HttpStatusCode[\"Accepted\"] = 202] = \"Accepted\";\n HttpStatusCode[HttpStatusCode[\"NonAuthoritativeInformation\"] = 203] = \"NonAuthoritativeInformation\";\n HttpStatusCode[HttpStatusCode[\"NoContent\"] = 204] = \"NoContent\";\n HttpStatusCode[HttpStatusCode[\"ResetContent\"] = 205] = \"ResetContent\";\n HttpStatusCode[HttpStatusCode[\"PartialContent\"] = 206] = \"PartialContent\";\n HttpStatusCode[HttpStatusCode[\"MultiStatus\"] = 207] = \"MultiStatus\";\n HttpStatusCode[HttpStatusCode[\"AlreadyReported\"] = 208] = \"AlreadyReported\";\n HttpStatusCode[HttpStatusCode[\"ImUsed\"] = 226] = \"ImUsed\";\n HttpStatusCode[HttpStatusCode[\"MultipleChoices\"] = 300] = \"MultipleChoices\";\n HttpStatusCode[HttpStatusCode[\"MovedPermanently\"] = 301] = \"MovedPermanently\";\n HttpStatusCode[HttpStatusCode[\"Found\"] = 302] = \"Found\";\n HttpStatusCode[HttpStatusCode[\"SeeOther\"] = 303] = \"SeeOther\";\n HttpStatusCode[HttpStatusCode[\"NotModified\"] = 304] = \"NotModified\";\n HttpStatusCode[HttpStatusCode[\"UseProxy\"] = 305] = \"UseProxy\";\n HttpStatusCode[HttpStatusCode[\"Unused\"] = 306] = \"Unused\";\n HttpStatusCode[HttpStatusCode[\"TemporaryRedirect\"] = 307] = \"TemporaryRedirect\";\n HttpStatusCode[HttpStatusCode[\"PermanentRedirect\"] = 308] = \"PermanentRedirect\";\n HttpStatusCode[HttpStatusCode[\"BadRequest\"] = 400] = \"BadRequest\";\n HttpStatusCode[HttpStatusCode[\"Unauthorized\"] = 401] = \"Unauthorized\";\n HttpStatusCode[HttpStatusCode[\"PaymentRequired\"] = 402] = \"PaymentRequired\";\n HttpStatusCode[HttpStatusCode[\"Forbidden\"] = 403] = \"Forbidden\";\n HttpStatusCode[HttpStatusCode[\"NotFound\"] = 404] = \"NotFound\";\n HttpStatusCode[HttpStatusCode[\"MethodNotAllowed\"] = 405] = \"MethodNotAllowed\";\n HttpStatusCode[HttpStatusCode[\"NotAcceptable\"] = 406] = \"NotAcceptable\";\n HttpStatusCode[HttpStatusCode[\"ProxyAuthenticationRequired\"] = 407] = \"ProxyAuthenticationRequired\";\n HttpStatusCode[HttpStatusCode[\"RequestTimeout\"] = 408] = \"RequestTimeout\";\n HttpStatusCode[HttpStatusCode[\"Conflict\"] = 409] = \"Conflict\";\n HttpStatusCode[HttpStatusCode[\"Gone\"] = 410] = \"Gone\";\n HttpStatusCode[HttpStatusCode[\"LengthRequired\"] = 411] = \"LengthRequired\";\n HttpStatusCode[HttpStatusCode[\"PreconditionFailed\"] = 412] = \"PreconditionFailed\";\n HttpStatusCode[HttpStatusCode[\"PayloadTooLarge\"] = 413] = \"PayloadTooLarge\";\n HttpStatusCode[HttpStatusCode[\"UriTooLong\"] = 414] = \"UriTooLong\";\n HttpStatusCode[HttpStatusCode[\"UnsupportedMediaType\"] = 415] = \"UnsupportedMediaType\";\n HttpStatusCode[HttpStatusCode[\"RangeNotSatisfiable\"] = 416] = \"RangeNotSatisfiable\";\n HttpStatusCode[HttpStatusCode[\"ExpectationFailed\"] = 417] = \"ExpectationFailed\";\n HttpStatusCode[HttpStatusCode[\"ImATeapot\"] = 418] = \"ImATeapot\";\n HttpStatusCode[HttpStatusCode[\"MisdirectedRequest\"] = 421] = \"MisdirectedRequest\";\n HttpStatusCode[HttpStatusCode[\"UnprocessableEntity\"] = 422] = \"UnprocessableEntity\";\n HttpStatusCode[HttpStatusCode[\"Locked\"] = 423] = \"Locked\";\n HttpStatusCode[HttpStatusCode[\"FailedDependency\"] = 424] = \"FailedDependency\";\n HttpStatusCode[HttpStatusCode[\"TooEarly\"] = 425] = \"TooEarly\";\n HttpStatusCode[HttpStatusCode[\"UpgradeRequired\"] = 426] = \"UpgradeRequired\";\n HttpStatusCode[HttpStatusCode[\"PreconditionRequired\"] = 428] = \"PreconditionRequired\";\n HttpStatusCode[HttpStatusCode[\"TooManyRequests\"] = 429] = \"TooManyRequests\";\n HttpStatusCode[HttpStatusCode[\"RequestHeaderFieldsTooLarge\"] = 431] = \"RequestHeaderFieldsTooLarge\";\n HttpStatusCode[HttpStatusCode[\"UnavailableForLegalReasons\"] = 451] = \"UnavailableForLegalReasons\";\n HttpStatusCode[HttpStatusCode[\"InternalServerError\"] = 500] = \"InternalServerError\";\n HttpStatusCode[HttpStatusCode[\"NotImplemented\"] = 501] = \"NotImplemented\";\n HttpStatusCode[HttpStatusCode[\"BadGateway\"] = 502] = \"BadGateway\";\n HttpStatusCode[HttpStatusCode[\"ServiceUnavailable\"] = 503] = \"ServiceUnavailable\";\n HttpStatusCode[HttpStatusCode[\"GatewayTimeout\"] = 504] = \"GatewayTimeout\";\n HttpStatusCode[HttpStatusCode[\"HttpVersionNotSupported\"] = 505] = \"HttpVersionNotSupported\";\n HttpStatusCode[HttpStatusCode[\"VariantAlsoNegotiates\"] = 506] = \"VariantAlsoNegotiates\";\n HttpStatusCode[HttpStatusCode[\"InsufficientStorage\"] = 507] = \"InsufficientStorage\";\n HttpStatusCode[HttpStatusCode[\"LoopDetected\"] = 508] = \"LoopDetected\";\n HttpStatusCode[HttpStatusCode[\"NotExtended\"] = 510] = \"NotExtended\";\n HttpStatusCode[HttpStatusCode[\"NetworkAuthenticationRequired\"] = 511] = \"NetworkAuthenticationRequired\";\n})(HttpStatusCode || (HttpStatusCode = {}));\n\n/**\n * Constructs an instance of `HttpRequestOptions<T>` from a source `HttpMethodOptions` and\n * the given `body`. This function clones the object and adds the body.\n *\n * Note that the `responseType` *options* value is a String that identifies the\n * single data type of the response.\n * A single overload version of the method handles each response type.\n * The value of `responseType` cannot be a union, as the combined signature could imply.\n *\n */\nfunction addBody(options, body) {\n return {\n body,\n headers: options.headers,\n context: options.context,\n observe: options.observe,\n params: options.params,\n reportProgress: options.reportProgress,\n responseType: options.responseType,\n withCredentials: options.withCredentials,\n transferCache: options.transferCache,\n };\n}\n/**\n * Performs HTTP requests.\n * This service is available as an injectable class, with methods to perform HTTP requests.\n * Each request method has multiple signatures, and the return type varies based on\n * the signature that is called (mainly the values of `observe` and `responseType`).\n *\n * Note that the `responseType` *options* value is a String that identifies the\n * single data type of the response.\n * A single overload version of the method handles each response type.\n * The value of `responseType` cannot be a union, as the combined signature could imply.\n\n * TODO(adev): review\n * @usageNotes\n *\n * ### HTTP Request Example\n *\n * ```ts\n * // GET heroes whose name contains search term\n * searchHeroes(term: string): observable<Hero[]>{\n *\n * const params = new HttpParams({fromString: 'name=term'});\n * return this.httpClient.request('GET', this.heroesUrl, {responseType:'json', params});\n * }\n * ```\n *\n * Alternatively, the parameter string can be used without invoking HttpParams\n * by directly joining to the URL.\n * ```ts\n * this.httpClient.request('GET', this.heroesUrl + '?' + 'name=term', {responseType:'json'});\n * ```\n *\n *\n * ### JSONP Example\n * ```ts\n * requestJsonp(url, callback = 'callback') {\n * return this.httpClient.jsonp(this.heroesURL, callback);\n * }\n * ```\n *\n * ### PATCH Example\n * ```ts\n * // PATCH one of the heroes' name\n * patchHero (id: number, heroName: string): Observable<{}> {\n * const url = `${this.heroesUrl}/${id}`; // PATCH api/heroes/42\n * return this.httpClient.patch(url, {name: heroName}, httpOptions)\n * .pipe(catchError(this.handleError('patchHero')));\n * }\n * ```\n *\n * @see [HTTP Guide](guide/http)\n * @see [HTTP Request](api/common/http/HttpRequest)\n *\n * @publicApi\n */\nclass HttpClient {\n handler;\n constructor(handler) {\n this.handler = handler;\n }\n /**\n * Constructs an observable for a generic HTTP request that, when subscribed,\n * fires the request through the chain of registered interceptors and on to the\n * server.\n *\n * You can pass an `HttpRequest` directly as the only parameter. In this case,\n * the call returns an observable of the raw `HttpEvent` stream.\n *\n * Alternatively you can pass an HTTP method as the first parameter,\n * a URL string as the second, and an options hash containing the request body as the third.\n * See `addBody()`. In this case, the specified `responseType` and `observe` options determine the\n * type of returned observable.\n * * The `responseType` value determines how a successful response body is parsed.\n * * If `responseType` is the default `json`, you can pass a type interface for the resulting\n * object as a type parameter to the call.\n *\n * The `observe` value determines the return type, according to what you are interested in\n * observing.\n * * An `observe` value of events returns an observable of the raw `HttpEvent` stream, including\n * progress events by default.\n * * An `observe` value of response returns an observable of `HttpResponse<T>`,\n * where the `T` parameter depends on the `responseType` and any optionally provided type\n * parameter.\n * * An `observe` value of body returns an observable of `<T>` with the same `T` body type.\n *\n */\n request(first, url, options = {}) {\n let req;\n // First, check whether the primary argument is an instance of `HttpRequest`.\n if (first instanceof HttpRequest) {\n // It is. The other arguments must be undefined (per the signatures) and can be\n // ignored.\n req = first;\n }\n else {\n // It's a string, so it represents a URL. Construct a request based on it,\n // and incorporate the remaining arguments (assuming `GET` unless a method is\n // provided.\n // Figure out the headers.\n let headers = undefined;\n if (options.headers instanceof HttpHeaders) {\n headers = options.headers;\n }\n else {\n headers = new HttpHeaders(options.headers);\n }\n // Sort out parameters.\n let params = undefined;\n if (!!options.params) {\n if (options.params instanceof HttpParams) {\n params = options.params;\n }\n else {\n params = new HttpParams({ fromObject: options.params });\n }\n }\n // Construct the request.\n req = new HttpRequest(first, url, options.body !== undefined ? options.body : null, {\n headers,\n context: options.context,\n params,\n reportProgress: options.reportProgress,\n // By default, JSON is assumed to be returned for all calls.\n responseType: options.responseType || 'json',\n withCredentials: options.withCredentials,\n transferCache: options.transferCache,\n });\n }\n // Start with an Observable.of() the initial request, and run the handler (which\n // includes all interceptors) inside a concatMap(). This way, the handler runs\n // inside an Observable chain, which causes interceptors to be re-run on every\n // subscription (this also makes retries re-run the handler, including interceptors).\n const events$ = of(req).pipe(concatMap((req) => this.handler.handle(req)));\n // If coming via the API signature which accepts a previously constructed HttpRequest,\n // the only option is to get the event stream. Otherwise, return the event stream if\n // that is what was requested.\n if (first instanceof HttpRequest || options.observe === 'events') {\n return events$;\n }\n // The requested stream contains either the full response or the body. In either\n // case, the first step is to filter the event stream to extract a stream of\n // responses(s).\n const res$ = (events$.pipe(filter((event) => event instanceof HttpResponse)));\n // Decide which stream to return.\n switch (options.observe || 'body') {\n case 'body':\n // The requested stream is the body. Map the response stream to the response\n // body. This could be done more simply, but a misbehaving interceptor might\n // transform the response body into a different format and ignore the requested\n // responseType. Guard against this by validating that the response is of the\n // requested type.\n switch (req.responseType) {\n case 'arraybuffer':\n return res$.pipe(map((res) => {\n // Validate that the body is an ArrayBuffer.\n if (res.body !== null && !(res.body instanceof ArrayBuffer)) {\n throw new ɵRuntimeError(2806 /* RuntimeErrorCode.RESPONSE_IS_NOT_AN_ARRAY_BUFFER */, ngDevMode && 'Response is not an ArrayBuffer.');\n }\n return res.body;\n }));\n case 'blob':\n return res$.pipe(map((res) => {\n // Validate that the body is a Blob.\n if (res.body !== null && !(res.body instanceof Blob)) {\n throw new ɵRuntimeError(2807 /* RuntimeErrorCode.RESPONSE_IS_NOT_A_BLOB */, ngDevMode && 'Response is not a Blob.');\n }\n return res.body;\n }));\n case 'text':\n return res$.pipe(map((res) => {\n // Validate that the body is a string.\n if (res.body !== null && typeof res.body !== 'string') {\n throw new ɵRuntimeError(2808 /* RuntimeErrorCode.RESPONSE_IS_NOT_A_STRING */, ngDevMode && 'Response is not a string.');\n }\n return res.body;\n }));\n case 'json':\n default:\n // No validation needed for JSON responses, as they can be of any type.\n return res$.pipe(map((res) => res.body));\n }\n case 'response':\n // The response stream was requested directly, so return it.\n return res$;\n default:\n // Guard against new future observe types being added.\n throw new ɵRuntimeError(2809 /* RuntimeErrorCode.UNHANDLED_OBSERVE_TYPE */, ngDevMode && `Unreachable: unhandled observe type ${options.observe}}`);\n }\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `DELETE` request to execute on the server. See the individual overloads for\n * details on the return type.\n *\n * @param url The endpoint URL.\n * @param options The HTTP options to send with the request.\n *\n */\n delete(url, options = {}) {\n return this.request('DELETE', url, options);\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `GET` request to execute on the server. See the individual overloads for\n * details on the return type.\n */\n get(url, options = {}) {\n return this.request('GET', url, options);\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `HEAD` request to execute on the server. The `HEAD` method returns\n * meta information about the resource without transferring the\n * resource itself. See the individual overloads for\n * details on the return type.\n */\n head(url, options = {}) {\n return this.request('HEAD', url, options);\n }\n /**\n * Constructs an `Observable` that, when subscribed, causes a request with the special method\n * `JSONP` to be dispatched via the interceptor pipeline.\n * The [JSONP pattern](https://en.wikipedia.org/wiki/JSONP) works around limitations of certain\n * API endpoints that don't support newer,\n * and preferable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) protocol.\n * JSONP treats the endpoint API as a JavaScript file and tricks the browser to process the\n * requests even if the API endpoint is not located on the same domain (origin) as the client-side\n * application making the request.\n * The endpoint API must support JSONP callback for JSONP requests to work.\n * The resource API returns the JSON response wrapped in a callback function.\n * You can pass the callback function name as one of the query parameters.\n * Note that JSONP requests can only be used with `GET` requests.\n *\n * @param url The resource URL.\n * @param callbackParam The callback function name.\n *\n */\n jsonp(url, callbackParam) {\n return this.request('JSONP', url, {\n params: new HttpParams().append(callbackParam, 'JSONP_CALLBACK'),\n observe: 'body',\n responseType: 'json',\n });\n }\n /**\n * Constructs an `Observable` that, when subscribed, causes the configured\n * `OPTIONS` request to execute on the server. This method allows the client\n * to determine the supported HTTP methods and other capabilities of an endpoint,\n * without implying a resource action. See the individual overloads for\n * details on the return type.\n */\n options(url, options = {}) {\n return this.request('OPTIONS', url, options);\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `PATCH` request to execute on the server. See the individual overloads for\n * details on the return type.\n */\n patch(url, body, options = {}) {\n return this.request('PATCH', url, addBody(options, body));\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `POST` request to execute on the server. The server responds with the location of\n * the replaced resource. See the individual overloads for\n * details on the return type.\n */\n post(url, body, options = {}) {\n return this.request('POST', url, addBody(options, body));\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `PUT` request to execute on the server. The `PUT` method replaces an existing resource\n * with a new set of values.\n * See the individual overloads for details on the return type.\n */\n put(url, body, options = {}) {\n return this.request('PUT', url, addBody(options, body));\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClient });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClient, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: HttpHandler }] });\n\nconst XSSI_PREFIX$1 = /^\\)\\]\\}',?\\n/;\n/**\n * Determine an appropriate URL for the response, by checking either\n * response url or the X-Request-URL header.\n */\nfunction getResponseUrl$1(response) {\n if (response.url) {\n return response.url;\n }\n // stored as lowercase in the map\n const xRequestUrl = X_REQUEST_URL_HEADER.toLocaleLowerCase();\n return response.headers.get(xRequestUrl);\n}\n/**\n * An internal injection token to reference `FetchBackend` implementation\n * in a tree-shakable way.\n */\nconst FETCH_BACKEND = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'FETCH_BACKEND' : '');\n/**\n * Uses `fetch` to send requests to a backend server.\n *\n * This `FetchBackend` requires the support of the\n * [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) which is available on all\n * supported browsers and on Node.js v18 or later.\n *\n * @see {@link HttpHandler}\n *\n * @publicApi\n */\nclass FetchBackend {\n // We use an arrow function to always reference the current global implementation of `fetch`.\n // This is helpful for cases when the global `fetch` implementation is modified by external code,\n // see https://github.com/angular/angular/issues/57527.\n fetchImpl = inject(FetchFactory, { optional: true })?.fetch ?? ((...args) => globalThis.fetch(...args));\n ngZone = inject(NgZone);\n handle(request) {\n return new Observable((observer) => {\n const aborter = new AbortController();\n this.doRequest(request, aborter.signal, observer).then(noop, (error) => observer.error(new HttpErrorResponse({ error })));\n return () => aborter.abort();\n });\n }\n async doRequest(request, signal, observer) {\n const init = this.createRequestInit(request);\n let response;\n try {\n // Run fetch outside of Angular zone.\n // This is due to Node.js fetch implementation (Undici) which uses a number of setTimeouts to check if\n // the response should eventually timeout which causes extra CD cycles every 500ms\n const fetchPromise = this.ngZone.runOutsideAngular(() => this.fetchImpl(request.urlWithParams, { signal, ...init }));\n // Make sure Zone.js doesn't trigger false-positive unhandled promise\n // error in case the Promise is rejected synchronously. See function\n // description for additional information.\n silenceSuperfluousUnhandledPromiseRejection(fetchPromise);\n // Send the `Sent` event before awaiting the response.\n observer.next({ type: HttpEventType.Sent });\n response = await fetchPromise;\n }\n catch (error) {\n observer.error(new HttpErrorResponse({\n error,\n status: error.status ?? 0,\n statusText: error.statusText,\n url: request.urlWithParams,\n headers: error.headers,\n }));\n return;\n }\n const headers = new HttpHeaders(response.headers);\n const statusText = response.statusText;\n const url = getResponseUrl$1(response) ?? request.urlWithParams;\n let status = response.status;\n let body = null;\n if (request.reportProgress) {\n observer.next(new HttpHeaderResponse({ headers, status, statusText, url }));\n }\n if (response.body) {\n // Read Progress\n const contentLength = response.headers.get('content-length');\n const chunks = [];\n const reader = response.body.getReader();\n let receivedLength = 0;\n let decoder;\n let partialText;\n // We have to check whether the Zone is defined in the global scope because this may be called\n // when the zone is nooped.\n const reqZone = typeof Zone !== 'undefined' && Zone.current;\n // Perform response processing outside of Angular zone to\n // ensure no excessive change detection runs are executed\n // Here calling the async ReadableStreamDefaultReader.read() is responsible for triggering CD\n await this.ngZone.runOutsideAngular(async () => {\n while (true) {\n const { done, value } = await reader.read();\n if (done) {\n break;\n }\n chunks.push(value);\n receivedLength += value.length;\n if (request.reportProgress) {\n partialText =\n request.responseType === 'text'\n ? (partialText ?? '') +\n (decoder ??= new TextDecoder()).decode(value, { stream: true })\n : undefined;\n const reportProgress = () => observer.next({\n type: HttpEventType.DownloadProgress,\n total: contentLength ? +contentLength : undefined,\n loaded: receivedLength,\n partialText,\n });\n reqZone ? reqZone.run(reportProgress) : reportProgress();\n }\n }\n });\n // Combine all chunks.\n const chunksAll = this.concatChunks(chunks, receivedLength);\n try {\n const contentType = response.headers.get(CONTENT_TYPE_HEADER) ?? '';\n body = this.parseBody(request, chunksAll, contentType);\n }\n catch (error) {\n // Body loading or parsing failed\n observer.error(new HttpErrorResponse({\n error,\n headers: new HttpHeaders(response.headers),\n status: response.status,\n statusText: response.statusText,\n url: getResponseUrl$1(response) ?? request.urlWithParams,\n }));\n return;\n }\n }\n // Same behavior as the XhrBackend\n if (status === 0) {\n status = body ? HTTP_STATUS_CODE_OK : 0;\n }\n // ok determines whether the response will be transmitted on the event or\n // error channel. Unsuccessful status codes (not 2xx) will always be errors,\n // but a successful status code can still result in an error if the user\n // asked for JSON data and the body cannot be parsed as such.\n const ok = status >= 200 && status < 300;\n if (ok) {\n observer.next(new HttpResponse({\n body,\n headers,\n status,\n statusText,\n url,\n }));\n // The full body has been received and delivered, no further events\n // are possible. This request is complete.\n observer.complete();\n }\n else {\n observer.error(new HttpErrorResponse({\n error: body,\n headers,\n status,\n statusText,\n url,\n }));\n }\n }\n parseBody(request, binContent, contentType) {\n switch (request.responseType) {\n case 'json':\n // stripping the XSSI when present\n const text = new TextDecoder().decode(binContent).replace(XSSI_PREFIX$1, '');\n return text === '' ? null : JSON.parse(text);\n case 'text':\n return new TextDecoder().decode(binContent);\n case 'blob':\n return new Blob([binContent], { type: contentType });\n case 'arraybuffer':\n return binContent.buffer;\n }\n }\n createRequestInit(req) {\n // We could share some of this logic with the XhrBackend\n const headers = {};\n const credentials = req.withCredentials ? 'include' : undefined;\n // Setting all the requested headers.\n req.headers.forEach((name, values) => (headers[name] = values.join(',')));\n // Add an Accept header if one isn't present already.\n if (!req.headers.has(ACCEPT_HEADER)) {\n headers[ACCEPT_HEADER] = ACCEPT_HEADER_VALUE;\n }\n // Auto-detect the Content-Type header if one isn't present already.\n if (!req.headers.has(CONTENT_TYPE_HEADER)) {\n const detectedType = req.detectContentTypeHeader();\n // Sometimes Content-Type detection fails.\n if (detectedType !== null) {\n headers[CONTENT_TYPE_HEADER] = detectedType;\n }\n }\n return {\n body: req.serializeBody(),\n method: req.method,\n headers,\n credentials,\n };\n }\n concatChunks(chunks, totalLength) {\n const chunksAll = new Uint8Array(totalLength);\n let position = 0;\n for (const chunk of chunks) {\n chunksAll.set(chunk, position);\n position += chunk.length;\n }\n return chunksAll;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FetchBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FetchBackend });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FetchBackend, decorators: [{\n type: Injectable\n }] });\n/**\n * Abstract class to provide a mocked implementation of `fetch()`\n */\nclass FetchFactory {\n}\nfunction noop() { }\n/**\n * Zone.js treats a rejected promise that has not yet been awaited\n * as an unhandled error. This function adds a noop `.then` to make\n * sure that Zone.js doesn't throw an error if the Promise is rejected\n * synchronously.\n */\nfunction silenceSuperfluousUnhandledPromiseRejection(promise) {\n promise.then(noop, noop);\n}\n\nfunction interceptorChainEndFn(req, finalHandlerFn) {\n return finalHandlerFn(req);\n}\n/**\n * Constructs a `ChainedInterceptorFn` which adapts a legacy `HttpInterceptor` to the\n * `ChainedInterceptorFn` interface.\n */\nfunction adaptLegacyInterceptorToChain(chainTailFn, interceptor) {\n return (initialRequest, finalHandlerFn) => interceptor.intercept(initialRequest, {\n handle: (downstreamRequest) => chainTailFn(downstreamRequest, finalHandlerFn),\n });\n}\n/**\n * Constructs a `ChainedInterceptorFn` which wraps and invokes a functional interceptor in the given\n * injector.\n */\nfunction chainedInterceptorFn(chainTailFn, interceptorFn, injector) {\n return (initialRequest, finalHandlerFn) => runInInjectionContext(injector, () => interceptorFn(initialRequest, (downstreamRequest) => chainTailFn(downstreamRequest, finalHandlerFn)));\n}\n/**\n * A multi-provider token that represents the array of registered\n * `HttpInterceptor` objects.\n *\n * @publicApi\n */\nconst HTTP_INTERCEPTORS = new InjectionToken(ngDevMode ? 'HTTP_INTERCEPTORS' : '');\n/**\n * A multi-provided token of `HttpInterceptorFn`s.\n */\nconst HTTP_INTERCEPTOR_FNS = new InjectionToken(ngDevMode ? 'HTTP_INTERCEPTOR_FNS' : '');\n/**\n * A multi-provided token of `HttpInterceptorFn`s that are only set in root.\n */\nconst HTTP_ROOT_INTERCEPTOR_FNS = new InjectionToken(ngDevMode ? 'HTTP_ROOT_INTERCEPTOR_FNS' : '');\n// TODO(atscott): We need a larger discussion about stability and what should contribute to stability.\n// Should the whole interceptor chain contribute to stability or just the backend request #55075?\n// Should HttpClient contribute to stability automatically at all?\nconst REQUESTS_CONTRIBUTE_TO_STABILITY = new InjectionToken(ngDevMode ? 'REQUESTS_CONTRIBUTE_TO_STABILITY' : '', { providedIn: 'root', factory: () => true });\n/**\n * Creates an `HttpInterceptorFn` which lazily initializes an interceptor chain from the legacy\n * class-based interceptors and runs the request through it.\n */\nfunction legacyInterceptorFnFactory() {\n let chain = null;\n return (req, handler) => {\n if (chain === null) {\n const interceptors = inject(HTTP_INTERCEPTORS, { optional: true }) ?? [];\n // Note: interceptors are wrapped right-to-left so that final execution order is\n // left-to-right. That is, if `interceptors` is the array `[a, b, c]`, we want to\n // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside\n // out.\n chain = interceptors.reduceRight(adaptLegacyInterceptorToChain, interceptorChainEndFn);\n }\n const pendingTasks = inject(ɵPendingTasksInternal);\n const contributeToStability = inject(REQUESTS_CONTRIBUTE_TO_STABILITY);\n if (contributeToStability) {\n const taskId = pendingTasks.add();\n return chain(req, handler).pipe(finalize(() => pendingTasks.remove(taskId)));\n }\n else {\n return chain(req, handler);\n }\n };\n}\nlet fetchBackendWarningDisplayed = false;\n/** Internal function to reset the flag in tests */\nfunction resetFetchBackendWarningFlag() {\n fetchBackendWarningDisplayed = false;\n}\nclass HttpInterceptorHandler extends HttpHandler {\n backend;\n injector;\n chain = null;\n pendingTasks = inject(ɵPendingTasksInternal);\n contributeToStability = inject(REQUESTS_CONTRIBUTE_TO_STABILITY);\n constructor(backend, injector) {\n super();\n this.backend = backend;\n this.injector = injector;\n // We strongly recommend using fetch backend for HTTP calls when SSR is used\n // for an application. The logic below checks if that's the case and produces\n // a warning otherwise.\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !fetchBackendWarningDisplayed) {\n const isServer = isPlatformServer(injector.get(PLATFORM_ID));\n // This flag is necessary because provideHttpClientTesting() overrides the backend\n // even if `withFetch()` is used within the test. When the testing HTTP backend is provided,\n // no HTTP calls are actually performed during the test, so producing a warning would be\n // misleading.\n const isTestingBackend = this.backend.isTestingBackend;\n if (isServer && !(this.backend instanceof FetchBackend) && !isTestingBackend) {\n fetchBackendWarningDisplayed = true;\n injector\n .get(ɵConsole)\n .warn(ɵformatRuntimeError(2801 /* RuntimeErrorCode.NOT_USING_FETCH_BACKEND_IN_SSR */, 'Angular detected that `HttpClient` is not configured ' +\n \"to use `fetch` APIs. It's strongly recommended to \" +\n 'enable `fetch` for applications that use Server-Side Rendering ' +\n 'for better performance and compatibility. ' +\n 'To enable `fetch`, add the `withFetch()` to the `provideHttpClient()` ' +\n 'call at the root of the application.'));\n }\n }\n }\n handle(initialRequest) {\n if (this.chain === null) {\n const dedupedInterceptorFns = Array.from(new Set([\n ...this.injector.get(HTTP_INTERCEPTOR_FNS),\n ...this.injector.get(HTTP_ROOT_INTERCEPTOR_FNS, []),\n ]));\n // Note: interceptors are wrapped right-to-left so that final execution order is\n // left-to-right. That is, if `dedupedInterceptorFns` is the array `[a, b, c]`, we want to\n // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside\n // out.\n this.chain = dedupedInterceptorFns.reduceRight((nextSequencedFn, interceptorFn) => chainedInterceptorFn(nextSequencedFn, interceptorFn, this.injector), interceptorChainEndFn);\n }\n if (this.contributeToStability) {\n const taskId = this.pendingTasks.add();\n return this.chain(initialRequest, (downstreamRequest) => this.backend.handle(downstreamRequest)).pipe(finalize(() => this.pendingTasks.remove(taskId)));\n }\n else {\n return this.chain(initialRequest, (downstreamRequest) => this.backend.handle(downstreamRequest));\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpInterceptorHandler, deps: [{ token: HttpBackend }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpInterceptorHandler });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpInterceptorHandler, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: HttpBackend }, { type: i0.EnvironmentInjector }] });\n\n// Every request made through JSONP needs a callback name that's unique across the\n// whole page. Each request is assigned an id and the callback name is constructed\n// from that. The next id to be assigned is tracked in a global variable here that\n// is shared among all applications on the page.\nlet nextRequestId = 0;\n/**\n * When a pending <script> is unsubscribed we'll move it to this document, so it won't be\n * executed.\n */\nlet foreignDocument;\n// Error text given when a JSONP script is injected, but doesn't invoke the callback\n// passed in its URL.\nconst JSONP_ERR_NO_CALLBACK = 'JSONP injected script did not invoke callback.';\n// Error text given when a request is passed to the JsonpClientBackend that doesn't\n// have a request method JSONP.\nconst JSONP_ERR_WRONG_METHOD = 'JSONP requests must use JSONP request method.';\nconst JSONP_ERR_WRONG_RESPONSE_TYPE = 'JSONP requests must use Json response type.';\n// Error text given when a request is passed to the JsonpClientBackend that has\n// headers set\nconst JSONP_ERR_HEADERS_NOT_SUPPORTED = 'JSONP requests do not support headers.';\n/**\n * DI token/abstract type representing a map of JSONP callbacks.\n *\n * In the browser, this should always be the `window` object.\n *\n *\n */\nclass JsonpCallbackContext {\n}\n/**\n * Factory function that determines where to store JSONP callbacks.\n *\n * Ordinarily JSONP callbacks are stored on the `window` object, but this may not exist\n * in test environments. In that case, callbacks are stored on an anonymous object instead.\n *\n *\n */\nfunction jsonpCallbackContext() {\n if (typeof window === 'object') {\n return window;\n }\n return {};\n}\n/**\n * Processes an `HttpRequest` with the JSONP method,\n * by performing JSONP style requests.\n * @see {@link HttpHandler}\n * @see {@link HttpXhrBackend}\n *\n * @publicApi\n */\nclass JsonpClientBackend {\n callbackMap;\n document;\n /**\n * A resolved promise that can be used to schedule microtasks in the event handlers.\n */\n resolvedPromise = Promise.resolve();\n constructor(callbackMap, document) {\n this.callbackMap = callbackMap;\n this.document = document;\n }\n /**\n * Get the name of the next callback method, by incrementing the global `nextRequestId`.\n */\n nextCallback() {\n return `ng_jsonp_callback_${nextRequestId++}`;\n }\n /**\n * Processes a JSONP request and returns an event stream of the results.\n * @param req The request object.\n * @returns An observable of the response events.\n *\n */\n handle(req) {\n // Firstly, check both the method and response type. If either doesn't match\n // then the request was improperly routed here and cannot be handled.\n if (req.method !== 'JSONP') {\n throw new Error(JSONP_ERR_WRONG_METHOD);\n }\n else if (req.responseType !== 'json') {\n throw new Error(JSONP_ERR_WRONG_RESPONSE_TYPE);\n }\n // Check the request headers. JSONP doesn't support headers and\n // cannot set any that were supplied.\n if (req.headers.keys().length > 0) {\n throw new Error(JSONP_ERR_HEADERS_NOT_SUPPORTED);\n }\n // Everything else happens inside the Observable boundary.\n return new Observable((observer) => {\n // The first step to make a request is to generate the callback name, and replace the\n // callback placeholder in the URL with the name. Care has to be taken here to ensure\n // a trailing &, if matched, gets inserted back into the URL in the correct place.\n const callback = this.nextCallback();\n const url = req.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/, `=${callback}$1`);\n // Construct the <script> tag and point it at the URL.\n const node = this.document.createElement('script');\n node.src = url;\n // A JSONP request requires waiting for multiple callbacks. These variables\n // are closed over and track state across those callbacks.\n // The response object, if one has been received, or null otherwise.\n let body = null;\n // Whether the response callback has been called.\n let finished = false;\n // Set the response callback in this.callbackMap (which will be the window\n // object in the browser. The script being loaded via the <script> tag will\n // eventually call this callback.\n this.callbackMap[callback] = (data) => {\n // Data has been received from the JSONP script. Firstly, delete this callback.\n delete this.callbackMap[callback];\n // Set state to indicate data was received.\n body = data;\n finished = true;\n };\n // cleanup() is a utility closure that removes the <script> from the page and\n // the response callback from the window. This logic is used in both the\n // success, error, and cancellation paths, so it's extracted out for convenience.\n const cleanup = () => {\n node.removeEventListener('load', onLoad);\n node.removeEventListener('error', onError);\n // Remove the <script> tag if it's still on the page.\n node.remove();\n // Remove the response callback from the callbackMap (window object in the\n // browser).\n delete this.callbackMap[callback];\n };\n // onLoad() is the success callback which runs after the response callback\n // if the JSONP script loads successfully. The event itself is unimportant.\n // If something went wrong, onLoad() may run without the response callback\n // having been invoked.\n const onLoad = (event) => {\n // We wrap it in an extra Promise, to ensure the microtask\n // is scheduled after the loaded endpoint has executed any potential microtask itself,\n // which is not guaranteed in Internet Explorer and EdgeHTML. See issue #39496\n this.resolvedPromise.then(() => {\n // Cleanup the page.\n cleanup();\n // Check whether the response callback has run.\n if (!finished) {\n // It hasn't, something went wrong with the request. Return an error via\n // the Observable error path. All JSONP errors have status 0.\n observer.error(new HttpErrorResponse({\n url,\n status: 0,\n statusText: 'JSONP Error',\n error: new Error(JSONP_ERR_NO_CALLBACK),\n }));\n return;\n }\n // Success. body either contains the response body or null if none was\n // returned.\n observer.next(new HttpResponse({\n body,\n status: HTTP_STATUS_CODE_OK,\n statusText: 'OK',\n url,\n }));\n // Complete the stream, the response is over.\n observer.complete();\n });\n };\n // onError() is the error callback, which runs if the script returned generates\n // a Javascript error. It emits the error via the Observable error channel as\n // a HttpErrorResponse.\n const onError = (error) => {\n cleanup();\n // Wrap the error in a HttpErrorResponse.\n observer.error(new HttpErrorResponse({\n error,\n status: 0,\n statusText: 'JSONP Error',\n url,\n }));\n };\n // Subscribe to both the success (load) and error events on the <script> tag,\n // and add it to the page.\n node.addEventListener('load', onLoad);\n node.addEventListener('error', onError);\n this.document.body.appendChild(node);\n // The request has now been successfully sent.\n observer.next({ type: HttpEventType.Sent });\n // Cancellation handler.\n return () => {\n if (!finished) {\n this.removeListeners(node);\n }\n // And finally, clean up the page.\n cleanup();\n };\n });\n }\n removeListeners(script) {\n // Issue #34818\n // Changing <script>'s ownerDocument will prevent it from execution.\n // https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block\n foreignDocument ??= this.document.implementation.createHTMLDocument();\n foreignDocument.adoptNode(script);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: JsonpClientBackend });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: JsonpClientBackend, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }] });\n/**\n * Identifies requests with the method JSONP and shifts them to the `JsonpClientBackend`.\n */\nfunction jsonpInterceptorFn(req, next) {\n if (req.method === 'JSONP') {\n return inject(JsonpClientBackend).handle(req);\n }\n // Fall through for normal HTTP requests.\n return next(req);\n}\n/**\n * Identifies requests with the method JSONP and\n * shifts them to the `JsonpClientBackend`.\n *\n * @see {@link HttpInterceptor}\n *\n * @publicApi\n */\nclass JsonpInterceptor {\n injector;\n constructor(injector) {\n this.injector = injector;\n }\n /**\n * Identifies and handles a given JSONP request.\n * @param initialRequest The outgoing request object to handle.\n * @param next The next interceptor in the chain, or the backend\n * if no interceptors remain in the chain.\n * @returns An observable of the event stream.\n */\n intercept(initialRequest, next) {\n return runInInjectionContext(this.injector, () => jsonpInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: JsonpInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: JsonpInterceptor });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: JsonpInterceptor, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });\n\nconst XSSI_PREFIX = /^\\)\\]\\}',?\\n/;\nconst X_REQUEST_URL_REGEXP = RegExp(`^${X_REQUEST_URL_HEADER}:`, 'm');\n/**\n * Determine an appropriate URL for the response, by checking either\n * XMLHttpRequest.responseURL or the X-Request-URL header.\n */\nfunction getResponseUrl(xhr) {\n if ('responseURL' in xhr && xhr.responseURL) {\n return xhr.responseURL;\n }\n if (X_REQUEST_URL_REGEXP.test(xhr.getAllResponseHeaders())) {\n return xhr.getResponseHeader(X_REQUEST_URL_HEADER);\n }\n return null;\n}\n/**\n * Uses `XMLHttpRequest` to send requests to a backend server.\n * @see {@link HttpHandler}\n * @see {@link JsonpClientBackend}\n *\n * @publicApi\n */\nclass HttpXhrBackend {\n xhrFactory;\n constructor(xhrFactory) {\n this.xhrFactory = xhrFactory;\n }\n /**\n * Processes a request and returns a stream of response events.\n * @param req The request object.\n * @returns An observable of the response events.\n */\n handle(req) {\n // Quick check to give a better error message when a user attempts to use\n // HttpClient.jsonp() without installing the HttpClientJsonpModule\n if (req.method === 'JSONP') {\n throw new ɵRuntimeError(-2800 /* RuntimeErrorCode.MISSING_JSONP_MODULE */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `Cannot make a JSONP request without JSONP support. To fix the problem, either add the \\`withJsonpSupport()\\` call (if \\`provideHttpClient()\\` is used) or import the \\`HttpClientJsonpModule\\` in the root NgModule.`);\n }\n // Check whether this factory has a special function to load an XHR implementation\n // for various non-browser environments. We currently limit it to only `ServerXhr`\n // class, which needs to load an XHR implementation.\n const xhrFactory = this.xhrFactory;\n const source = xhrFactory.ɵloadImpl\n ? from(xhrFactory.ɵloadImpl())\n : of(null);\n return source.pipe(switchMap(() => {\n // Everything happens on Observable subscription.\n return new Observable((observer) => {\n // Start by setting up the XHR object with request method, URL, and withCredentials\n // flag.\n const xhr = xhrFactory.build();\n xhr.open(req.method, req.urlWithParams);\n if (req.withCredentials) {\n xhr.withCredentials = true;\n }\n // Add all the requested headers.\n req.headers.forEach((name, values) => xhr.setRequestHeader(name, values.join(',')));\n // Add an Accept header if one isn't present already.\n if (!req.headers.has(ACCEPT_HEADER)) {\n xhr.setRequestHeader(ACCEPT_HEADER, ACCEPT_HEADER_VALUE);\n }\n // Auto-detect the Content-Type header if one isn't present already.\n if (!req.headers.has(CONTENT_TYPE_HEADER)) {\n const detectedType = req.detectContentTypeHeader();\n // Sometimes Content-Type detection fails.\n if (detectedType !== null) {\n xhr.setRequestHeader(CONTENT_TYPE_HEADER, detectedType);\n }\n }\n // Set the responseType if one was requested.\n if (req.responseType) {\n const responseType = req.responseType.toLowerCase();\n // JSON responses need to be processed as text. This is because if the server\n // returns an XSSI-prefixed JSON response, the browser will fail to parse it,\n // xhr.response will be null, and xhr.responseText cannot be accessed to\n // retrieve the prefixed JSON data in order to strip the prefix. Thus, all JSON\n // is parsed by first requesting text and then applying JSON.parse.\n xhr.responseType = (responseType !== 'json' ? responseType : 'text');\n }\n // Serialize the request body if one is present. If not, this will be set to null.\n const reqBody = req.serializeBody();\n // If progress events are enabled, response headers will be delivered\n // in two events - the HttpHeaderResponse event and the full HttpResponse\n // event. However, since response headers don't change in between these\n // two events, it doesn't make sense to parse them twice. So headerResponse\n // caches the data extracted from the response whenever it's first parsed,\n // to ensure parsing isn't duplicated.\n let headerResponse = null;\n // partialFromXhr extracts the HttpHeaderResponse from the current XMLHttpRequest\n // state, and memoizes it into headerResponse.\n const partialFromXhr = () => {\n if (headerResponse !== null) {\n return headerResponse;\n }\n const statusText = xhr.statusText || 'OK';\n // Parse headers from XMLHttpRequest - this step is lazy.\n const headers = new HttpHeaders(xhr.getAllResponseHeaders());\n // Read the response URL from the XMLHttpResponse instance and fall back on the\n // request URL.\n const url = getResponseUrl(xhr) || req.url;\n // Construct the HttpHeaderResponse and memoize it.\n headerResponse = new HttpHeaderResponse({ headers, status: xhr.status, statusText, url });\n return headerResponse;\n };\n // Next, a few closures are defined for the various events which XMLHttpRequest can\n // emit. This allows them to be unregistered as event listeners later.\n // First up is the load event, which represents a response being fully available.\n const onLoad = () => {\n // Read response state from the memoized partial data.\n let { headers, status, statusText, url } = partialFromXhr();\n // The body will be read out if present.\n let body = null;\n if (status !== HTTP_STATUS_CODE_NO_CONTENT) {\n // Use XMLHttpRequest.response if set, responseText otherwise.\n body = typeof xhr.response === 'undefined' ? xhr.responseText : xhr.response;\n }\n // Normalize another potential bug (this one comes from CORS).\n if (status === 0) {\n status = !!body ? HTTP_STATUS_CODE_OK : 0;\n }\n // ok determines whether the response will be transmitted on the event or\n // error channel. Unsuccessful status codes (not 2xx) will always be errors,\n // but a successful status code can still result in an error if the user\n // asked for JSON data and the body cannot be parsed as such.\n let ok = status >= 200 && status < 300;\n // Check whether the body needs to be parsed as JSON (in many cases the browser\n // will have done that already).\n if (req.responseType === 'json' && typeof body === 'string') {\n // Save the original body, before attempting XSSI prefix stripping.\n const originalBody = body;\n body = body.replace(XSSI_PREFIX, '');\n try {\n // Attempt the parse. If it fails, a parse error should be delivered to the\n // user.\n body = body !== '' ? JSON.parse(body) : null;\n }\n catch (error) {\n // Since the JSON.parse failed, it's reasonable to assume this might not have\n // been a JSON response. Restore the original body (including any XSSI prefix)\n // to deliver a better error response.\n body = originalBody;\n // If this was an error request to begin with, leave it as a string, it\n // probably just isn't JSON. Otherwise, deliver the parsing error to the user.\n if (ok) {\n // Even though the response status was 2xx, this is still an error.\n ok = false;\n // The parse error contains the text of the body that failed to parse.\n body = { error, text: body };\n }\n }\n }\n if (ok) {\n // A successful response is delivered on the event stream.\n observer.next(new HttpResponse({\n body,\n headers,\n status,\n statusText,\n url: url || undefined,\n }));\n // The full body has been received and delivered, no further events\n // are possible. This request is complete.\n observer.complete();\n }\n else {\n // An unsuccessful request is delivered on the error channel.\n observer.error(new HttpErrorResponse({\n // The error in this case is the response body (error from the server).\n error: body,\n headers,\n status,\n statusText,\n url: url || undefined,\n }));\n }\n };\n // The onError callback is called when something goes wrong at the network level.\n // Connection timeout, DNS error, offline, etc. These are actual errors, and are\n // transmitted on the error channel.\n const onError = (error) => {\n const { url } = partialFromXhr();\n const res = new HttpErrorResponse({\n error,\n status: xhr.status || 0,\n statusText: xhr.statusText || 'Unknown Error',\n url: url || undefined,\n });\n observer.error(res);\n };\n // The sentHeaders flag tracks whether the HttpResponseHeaders event\n // has been sent on the stream. This is necessary to track if progress\n // is enabled since the event will be sent on only the first download\n // progress event.\n let sentHeaders = false;\n // The download progress event handler, which is only registered if\n // progress events are enabled.\n const onDownProgress = (event) => {\n // Send the HttpResponseHeaders event if it hasn't been sent already.\n if (!sentHeaders) {\n observer.next(partialFromXhr());\n sentHeaders = true;\n }\n // Start building the download progress event to deliver on the response\n // event stream.\n let progressEvent = {\n type: HttpEventType.DownloadProgress,\n loaded: event.loaded,\n };\n // Set the total number of bytes in the event if it's available.\n if (event.lengthComputable) {\n progressEvent.total = event.total;\n }\n // If the request was for text content and a partial response is\n // available on XMLHttpRequest, include it in the progress event\n // to allow for streaming reads.\n if (req.responseType === 'text' && !!xhr.responseText) {\n progressEvent.partialText = xhr.responseText;\n }\n // Finally, fire the event.\n observer.next(progressEvent);\n };\n // The upload progress event handler, which is only registered if\n // progress events are enabled.\n const onUpProgress = (event) => {\n // Upload progress events are simpler. Begin building the progress\n // event.\n let progress = {\n type: HttpEventType.UploadProgress,\n loaded: event.loaded,\n };\n // If the total number of bytes being uploaded is available, include\n // it.\n if (event.lengthComputable) {\n progress.total = event.total;\n }\n // Send the event.\n observer.next(progress);\n };\n // By default, register for load and error events.\n xhr.addEventListener('load', onLoad);\n xhr.addEventListener('error', onError);\n xhr.addEventListener('timeout', onError);\n xhr.addEventListener('abort', onError);\n // Progress events are only enabled if requested.\n if (req.reportProgress) {\n // Download progress is always enabled if requested.\n xhr.addEventListener('progress', onDownProgress);\n // Upload progress depends on whether there is a body to upload.\n if (reqBody !== null && xhr.upload) {\n xhr.upload.addEventListener('progress', onUpProgress);\n }\n }\n // Fire the request, and notify the event stream that it was fired.\n xhr.send(reqBody);\n observer.next({ type: HttpEventType.Sent });\n // This is the return from the Observable function, which is the\n // request cancellation handler.\n return () => {\n // On a cancellation, remove all registered event listeners.\n xhr.removeEventListener('error', onError);\n xhr.removeEventListener('abort', onError);\n xhr.removeEventListener('load', onLoad);\n xhr.removeEventListener('timeout', onError);\n if (req.reportProgress) {\n xhr.removeEventListener('progress', onDownProgress);\n if (reqBody !== null && xhr.upload) {\n xhr.upload.removeEventListener('progress', onUpProgress);\n }\n }\n // Finally, abort the in-flight request.\n if (xhr.readyState !== xhr.DONE) {\n xhr.abort();\n }\n };\n });\n }));\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpXhrBackend, deps: [{ token: i1.XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpXhrBackend });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpXhrBackend, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: i1.XhrFactory }] });\n\nconst XSRF_ENABLED = new InjectionToken(ngDevMode ? 'XSRF_ENABLED' : '');\nconst XSRF_DEFAULT_COOKIE_NAME = 'XSRF-TOKEN';\nconst XSRF_COOKIE_NAME = new InjectionToken(ngDevMode ? 'XSRF_COOKIE_NAME' : '', {\n providedIn: 'root',\n factory: () => XSRF_DEFAULT_COOKIE_NAME,\n});\nconst XSRF_DEFAULT_HEADER_NAME = 'X-XSRF-TOKEN';\nconst XSRF_HEADER_NAME = new InjectionToken(ngDevMode ? 'XSRF_HEADER_NAME' : '', {\n providedIn: 'root',\n factory: () => XSRF_DEFAULT_HEADER_NAME,\n});\n/**\n * Retrieves the current XSRF token to use with the next outgoing request.\n *\n * @publicApi\n */\nclass HttpXsrfTokenExtractor {\n}\n/**\n * `HttpXsrfTokenExtractor` which retrieves the token from a cookie.\n */\nclass HttpXsrfCookieExtractor {\n doc;\n platform;\n cookieName;\n lastCookieString = '';\n lastToken = null;\n /**\n * @internal for testing\n */\n parseCount = 0;\n constructor(doc, platform, cookieName) {\n this.doc = doc;\n this.platform = platform;\n this.cookieName = cookieName;\n }\n getToken() {\n if (this.platform === 'server') {\n return null;\n }\n const cookieString = this.doc.cookie || '';\n if (cookieString !== this.lastCookieString) {\n this.parseCount++;\n this.lastToken = ɵparseCookieValue(cookieString, this.cookieName);\n this.lastCookieString = cookieString;\n }\n return this.lastToken;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpXsrfCookieExtractor });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [XSRF_COOKIE_NAME]\n }] }] });\nfunction xsrfInterceptorFn(req, next) {\n const lcUrl = req.url.toLowerCase();\n // Skip both non-mutating requests and absolute URLs.\n // Non-mutating requests don't require a token, and absolute URLs require special handling\n // anyway as the cookie set\n // on our origin is not the same as the token expected by another origin.\n if (!inject(XSRF_ENABLED) ||\n req.method === 'GET' ||\n req.method === 'HEAD' ||\n lcUrl.startsWith('http://') ||\n lcUrl.startsWith('https://')) {\n return next(req);\n }\n const token = inject(HttpXsrfTokenExtractor).getToken();\n const headerName = inject(XSRF_HEADER_NAME);\n // Be careful not to overwrite an existing header of the same name.\n if (token != null && !req.headers.has(headerName)) {\n req = req.clone({ headers: req.headers.set(headerName, token) });\n }\n return next(req);\n}\n/**\n * `HttpInterceptor` which adds an XSRF token to eligible outgoing requests.\n */\nclass HttpXsrfInterceptor {\n injector;\n constructor(injector) {\n this.injector = injector;\n }\n intercept(initialRequest, next) {\n return runInInjectionContext(this.injector, () => xsrfInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpXsrfInterceptor });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });\n\n/**\n * Identifies a particular kind of `HttpFeature`.\n *\n * @publicApi\n */\nvar HttpFeatureKind;\n(function (HttpFeatureKind) {\n HttpFeatureKind[HttpFeatureKind[\"Interceptors\"] = 0] = \"Interceptors\";\n HttpFeatureKind[HttpFeatureKind[\"LegacyInterceptors\"] = 1] = \"LegacyInterceptors\";\n HttpFeatureKind[HttpFeatureKind[\"CustomXsrfConfiguration\"] = 2] = \"CustomXsrfConfiguration\";\n HttpFeatureKind[HttpFeatureKind[\"NoXsrfProtection\"] = 3] = \"NoXsrfProtection\";\n HttpFeatureKind[HttpFeatureKind[\"JsonpSupport\"] = 4] = \"JsonpSupport\";\n HttpFeatureKind[HttpFeatureKind[\"RequestsMadeViaParent\"] = 5] = \"RequestsMadeViaParent\";\n HttpFeatureKind[HttpFeatureKind[\"Fetch\"] = 6] = \"Fetch\";\n})(HttpFeatureKind || (HttpFeatureKind = {}));\nfunction makeHttpFeature(kind, providers) {\n return {\n ɵkind: kind,\n ɵproviders: providers,\n };\n}\n/**\n * Configures Angular's `HttpClient` service to be available for injection.\n *\n * By default, `HttpClient` will be configured for injection with its default options for XSRF\n * protection of outgoing requests. Additional configuration options can be provided by passing\n * feature functions to `provideHttpClient`. For example, HTTP interceptors can be added using the\n * `withInterceptors(...)` feature.\n *\n * <div class=\"docs-alert docs-alert-helpful\">\n *\n * It's strongly recommended to enable\n * [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) for applications that use\n * Server-Side Rendering for better performance and compatibility. To enable `fetch`, add\n * `withFetch()` feature to the `provideHttpClient()` call at the root of the application:\n *\n * ```ts\n * provideHttpClient(withFetch());\n * ```\n *\n * </div>\n *\n * @see {@link withInterceptors}\n * @see {@link withInterceptorsFromDi}\n * @see {@link withXsrfConfiguration}\n * @see {@link withNoXsrfProtection}\n * @see {@link withJsonpSupport}\n * @see {@link withRequestsMadeViaParent}\n * @see {@link withFetch}\n */\nfunction provideHttpClient(...features) {\n if (ngDevMode) {\n const featureKinds = new Set(features.map((f) => f.ɵkind));\n if (featureKinds.has(HttpFeatureKind.NoXsrfProtection) &&\n featureKinds.has(HttpFeatureKind.CustomXsrfConfiguration)) {\n throw new Error(ngDevMode\n ? `Configuration error: found both withXsrfConfiguration() and withNoXsrfProtection() in the same call to provideHttpClient(), which is a contradiction.`\n : '');\n }\n }\n const providers = [\n HttpClient,\n HttpXhrBackend,\n HttpInterceptorHandler,\n { provide: HttpHandler, useExisting: HttpInterceptorHandler },\n {\n provide: HttpBackend,\n useFactory: () => {\n return inject(FETCH_BACKEND, { optional: true }) ?? inject(HttpXhrBackend);\n },\n },\n {\n provide: HTTP_INTERCEPTOR_FNS,\n useValue: xsrfInterceptorFn,\n multi: true,\n },\n { provide: XSRF_ENABLED, useValue: true },\n { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },\n ];\n for (const feature of features) {\n providers.push(...feature.ɵproviders);\n }\n return makeEnvironmentProviders(providers);\n}\n/**\n * Adds one or more functional-style HTTP interceptors to the configuration of the `HttpClient`\n * instance.\n *\n * @see {@link HttpInterceptorFn}\n * @see {@link provideHttpClient}\n * @publicApi\n */\nfunction withInterceptors(interceptorFns) {\n return makeHttpFeature(HttpFeatureKind.Interceptors, interceptorFns.map((interceptorFn) => {\n return {\n provide: HTTP_INTERCEPTOR_FNS,\n useValue: interceptorFn,\n multi: true,\n };\n }));\n}\nconst LEGACY_INTERCEPTOR_FN = new InjectionToken(ngDevMode ? 'LEGACY_INTERCEPTOR_FN' : '');\n/**\n * Includes class-based interceptors configured using a multi-provider in the current injector into\n * the configured `HttpClient` instance.\n *\n * Prefer `withInterceptors` and functional interceptors instead, as support for DI-provided\n * interceptors may be phased out in a later release.\n *\n * @see {@link HttpInterceptor}\n * @see {@link HTTP_INTERCEPTORS}\n * @see {@link provideHttpClient}\n */\nfunction withInterceptorsFromDi() {\n // Note: the legacy interceptor function is provided here via an intermediate token\n // (`LEGACY_INTERCEPTOR_FN`), using a pattern which guarantees that if these providers are\n // included multiple times, all of the multi-provider entries will have the same instance of the\n // interceptor function. That way, the `HttpINterceptorHandler` will dedup them and legacy\n // interceptors will not run multiple times.\n return makeHttpFeature(HttpFeatureKind.LegacyInterceptors, [\n {\n provide: LEGACY_INTERCEPTOR_FN,\n useFactory: legacyInterceptorFnFactory,\n },\n {\n provide: HTTP_INTERCEPTOR_FNS,\n useExisting: LEGACY_INTERCEPTOR_FN,\n multi: true,\n },\n ]);\n}\n/**\n * Customizes the XSRF protection for the configuration of the current `HttpClient` instance.\n *\n * This feature is incompatible with the `withNoXsrfProtection` feature.\n *\n * @see {@link provideHttpClient}\n */\nfunction withXsrfConfiguration({ cookieName, headerName, }) {\n const providers = [];\n if (cookieName !== undefined) {\n providers.push({ provide: XSRF_COOKIE_NAME, useValue: cookieName });\n }\n if (headerName !== undefined) {\n providers.push({ provide: XSRF_HEADER_NAME, useValue: headerName });\n }\n return makeHttpFeature(HttpFeatureKind.CustomXsrfConfiguration, providers);\n}\n/**\n * Disables XSRF protection in the configuration of the current `HttpClient` instance.\n *\n * This feature is incompatible with the `withXsrfConfiguration` feature.\n *\n * @see {@link provideHttpClient}\n */\nfunction withNoXsrfProtection() {\n return makeHttpFeature(HttpFeatureKind.NoXsrfProtection, [\n {\n provide: XSRF_ENABLED,\n useValue: false,\n },\n ]);\n}\n/**\n * Add JSONP support to the configuration of the current `HttpClient` instance.\n *\n * @see {@link provideHttpClient}\n */\nfunction withJsonpSupport() {\n return makeHttpFeature(HttpFeatureKind.JsonpSupport, [\n JsonpClientBackend,\n { provide: JsonpCallbackContext, useFactory: jsonpCallbackContext },\n { provide: HTTP_INTERCEPTOR_FNS, useValue: jsonpInterceptorFn, multi: true },\n ]);\n}\n/**\n * Configures the current `HttpClient` instance to make requests via the parent injector's\n * `HttpClient` instead of directly.\n *\n * By default, `provideHttpClient` configures `HttpClient` in its injector to be an independent\n * instance. For example, even if `HttpClient` is configured in the parent injector with\n * one or more interceptors, they will not intercept requests made via this instance.\n *\n * With this option enabled, once the request has passed through the current injector's\n * interceptors, it will be delegated to the parent injector's `HttpClient` chain instead of\n * dispatched directly, and interceptors in the parent configuration will be applied to the request.\n *\n * If there are several `HttpClient` instances in the injector hierarchy, it's possible for\n * `withRequestsMadeViaParent` to be used at multiple levels, which will cause the request to\n * \"bubble up\" until either reaching the root level or an `HttpClient` which was not configured with\n * this option.\n *\n * @see {@link provideHttpClient}\n * @publicApi\n */\nfunction withRequestsMadeViaParent() {\n return makeHttpFeature(HttpFeatureKind.RequestsMadeViaParent, [\n {\n provide: HttpBackend,\n useFactory: () => {\n const handlerFromParent = inject(HttpHandler, { skipSelf: true, optional: true });\n if (ngDevMode && handlerFromParent === null) {\n throw new Error('withRequestsMadeViaParent() can only be used when the parent injector also configures HttpClient');\n }\n return handlerFromParent;\n },\n },\n ]);\n}\n/**\n * Configures the current `HttpClient` instance to make requests using the fetch API.\n *\n * Note: The Fetch API doesn't support progress report on uploads.\n *\n * @publicApi\n */\nfunction withFetch() {\n return makeHttpFeature(HttpFeatureKind.Fetch, [\n FetchBackend,\n { provide: FETCH_BACKEND, useExisting: FetchBackend },\n { provide: HttpBackend, useExisting: FetchBackend },\n ]);\n}\n\n/**\n * Configures XSRF protection support for outgoing requests.\n *\n * For a server that supports a cookie-based XSRF protection system,\n * use directly to configure XSRF protection with the correct\n * cookie and header names.\n *\n * If no names are supplied, the default cookie name is `XSRF-TOKEN`\n * and the default header name is `X-XSRF-TOKEN`.\n *\n * @publicApi\n * @deprecated Use withXsrfConfiguration({cookieName: 'XSRF-TOKEN', headerName: 'X-XSRF-TOKEN'}) as\n * providers instead or `withNoXsrfProtection` if you want to disabled XSRF protection.\n */\nclass HttpClientXsrfModule {\n /**\n * Disable the default XSRF protection.\n */\n static disable() {\n return {\n ngModule: HttpClientXsrfModule,\n providers: [withNoXsrfProtection().ɵproviders],\n };\n }\n /**\n * Configure XSRF protection.\n * @param options An object that can specify either or both\n * cookie name or header name.\n * - Cookie name default is `XSRF-TOKEN`.\n * - Header name default is `X-XSRF-TOKEN`.\n *\n */\n static withOptions(options = {}) {\n return {\n ngModule: HttpClientXsrfModule,\n providers: withXsrfConfiguration(options).ɵproviders,\n };\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClientXsrfModule });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClientXsrfModule, providers: [\n HttpXsrfInterceptor,\n { provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },\n { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },\n withXsrfConfiguration({\n cookieName: XSRF_DEFAULT_COOKIE_NAME,\n headerName: XSRF_DEFAULT_HEADER_NAME,\n }).ɵproviders,\n { provide: XSRF_ENABLED, useValue: true },\n ] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClientXsrfModule, decorators: [{\n type: NgModule,\n args: [{\n providers: [\n HttpXsrfInterceptor,\n { provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },\n { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },\n withXsrfConfiguration({\n cookieName: XSRF_DEFAULT_COOKIE_NAME,\n headerName: XSRF_DEFAULT_HEADER_NAME,\n }).ɵproviders,\n { provide: XSRF_ENABLED, useValue: true },\n ],\n }]\n }] });\n/**\n * Configures the dependency injector for `HttpClient`\n * with supporting services for XSRF. Automatically imported by `HttpClientModule`.\n *\n * You can add interceptors to the chain behind `HttpClient` by binding them to the\n * multiprovider for built-in DI token `HTTP_INTERCEPTORS`.\n *\n * @publicApi\n * @deprecated use `provideHttpClient(withInterceptorsFromDi())` as providers instead\n */\nclass HttpClientModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClientModule });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClientModule, providers: [provideHttpClient(withInterceptorsFromDi())] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClientModule, decorators: [{\n type: NgModule,\n args: [{\n /**\n * Configures the dependency injector where it is imported\n * with supporting services for HTTP communications.\n */\n providers: [provideHttpClient(withInterceptorsFromDi())],\n }]\n }] });\n/**\n * Configures the dependency injector for `HttpClient`\n * with supporting services for JSONP.\n * Without this module, Jsonp requests reach the backend\n * with method JSONP, where they are rejected.\n *\n * @publicApi\n * @deprecated `withJsonpSupport()` as providers instead\n */\nclass HttpClientJsonpModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClientJsonpModule });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClientJsonpModule, providers: [withJsonpSupport().ɵproviders] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HttpClientJsonpModule, decorators: [{\n type: NgModule,\n args: [{\n providers: [withJsonpSupport().ɵproviders],\n }]\n }] });\n\n/**\n * If your application uses different HTTP origins to make API calls (via `HttpClient`) on the server and\n * on the client, the `HTTP_TRANSFER_CACHE_ORIGIN_MAP` token allows you to establish a mapping\n * between those origins, so that `HttpTransferCache` feature can recognize those requests as the same\n * ones and reuse the data cached on the server during hydration on the client.\n *\n * **Important note**: the `HTTP_TRANSFER_CACHE_ORIGIN_MAP` token should *only* be provided in\n * the *server* code of your application (typically in the `app.server.config.ts` script). Angular throws an\n * error if it detects that the token is defined while running on the client.\n *\n * @usageNotes\n *\n * When the same API endpoint is accessed via `http://internal-domain.com:8080` on the server and\n * via `https://external-domain.com` on the client, you can use the following configuration:\n * ```ts\n * // in app.server.config.ts\n * {\n * provide: HTTP_TRANSFER_CACHE_ORIGIN_MAP,\n * useValue: {\n * 'http://internal-domain.com:8080': 'https://external-domain.com'\n * }\n * }\n * ```\n *\n * @publicApi\n */\nconst HTTP_TRANSFER_CACHE_ORIGIN_MAP = new InjectionToken(ngDevMode ? 'HTTP_TRANSFER_CACHE_ORIGIN_MAP' : '');\n/**\n * Keys within cached response data structure.\n */\nconst BODY = 'b';\nconst HEADERS = 'h';\nconst STATUS = 's';\nconst STATUS_TEXT = 'st';\nconst REQ_URL = 'u';\nconst RESPONSE_TYPE = 'rt';\nconst CACHE_OPTIONS = new InjectionToken(ngDevMode ? 'HTTP_TRANSFER_STATE_CACHE_OPTIONS' : '');\n/**\n * A list of allowed HTTP methods to cache.\n */\nconst ALLOWED_METHODS = ['GET', 'HEAD'];\nfunction transferCacheInterceptorFn(req, next) {\n const { isCacheActive, ...globalOptions } = inject(CACHE_OPTIONS);\n const { transferCache: requestOptions, method: requestMethod } = req;\n // In the following situations we do not want to cache the request\n if (!isCacheActive ||\n requestOptions === false ||\n // POST requests are allowed either globally or at request level\n (requestMethod === 'POST' && !globalOptions.includePostRequests && !requestOptions) ||\n (requestMethod !== 'POST' && !ALLOWED_METHODS.includes(requestMethod)) ||\n // Do not cache request that require authorization when includeRequestsWithAuthHeaders is falsey\n (!globalOptions.includeRequestsWithAuthHeaders && hasAuthHeaders(req)) ||\n globalOptions.filter?.(req) === false) {\n return next(req);\n }\n const transferState = inject(TransferState);\n const originMap = inject(HTTP_TRANSFER_CACHE_ORIGIN_MAP, {\n optional: true,\n });\n if (typeof ngServerMode !== 'undefined' && !ngServerMode && originMap) {\n throw new ɵRuntimeError(2803 /* RuntimeErrorCode.HTTP_ORIGIN_MAP_USED_IN_CLIENT */, ngDevMode &&\n 'Angular detected that the `HTTP_TRANSFER_CACHE_ORIGIN_MAP` token is configured and ' +\n 'present in the client side code. Please ensure that this token is only provided in the ' +\n 'server code of the application.');\n }\n const requestUrl = typeof ngServerMode !== 'undefined' && ngServerMode && originMap\n ? mapRequestOriginUrl(req.url, originMap)\n : req.url;\n const storeKey = makeCacheKey(req, requestUrl);\n const response = transferState.get(storeKey, null);\n let headersToInclude = globalOptions.includeHeaders;\n if (typeof requestOptions === 'object' && requestOptions.includeHeaders) {\n // Request-specific config takes precedence over the global config.\n headersToInclude = requestOptions.includeHeaders;\n }\n if (response) {\n const { [BODY]: undecodedBody, [RESPONSE_TYPE]: responseType, [HEADERS]: httpHeaders, [STATUS]: status, [STATUS_TEXT]: statusText, [REQ_URL]: url, } = response;\n // Request found in cache. Respond using it.\n let body = undecodedBody;\n switch (responseType) {\n case 'arraybuffer':\n body = new TextEncoder().encode(undecodedBody).buffer;\n break;\n case 'blob':\n body = new Blob([undecodedBody]);\n break;\n }\n // We want to warn users accessing a header provided from the cache\n // That HttpTransferCache alters the headers\n // The warning will be logged a single time by HttpHeaders instance\n let headers = new HttpHeaders(httpHeaders);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Append extra logic in dev mode to produce a warning when a header\n // that was not transferred to the client is accessed in the code via `get`\n // and `has` calls.\n headers = appendMissingHeadersDetection(req.url, headers, headersToInclude ?? []);\n }\n return of(new HttpResponse({\n body,\n headers,\n status,\n statusText,\n url,\n }));\n }\n // Request not found in cache. Make the request and cache it if on the server.\n return next(req).pipe(tap((event) => {\n if (event instanceof HttpResponse && typeof ngServerMode !== 'undefined' && ngServerMode) {\n transferState.set(storeKey, {\n [BODY]: event.body,\n [HEADERS]: getFilteredHeaders(event.headers, headersToInclude),\n [STATUS]: event.status,\n [STATUS_TEXT]: event.statusText,\n [REQ_URL]: requestUrl,\n [RESPONSE_TYPE]: req.responseType,\n });\n }\n }));\n}\n/** @returns true when the requests contains autorization related headers. */\nfunction hasAuthHeaders(req) {\n return req.headers.has('authorization') || req.headers.has('proxy-authorization');\n}\nfunction getFilteredHeaders(headers, includeHeaders) {\n if (!includeHeaders) {\n return {};\n }\n const headersMap = {};\n for (const key of includeHeaders) {\n const values = headers.getAll(key);\n if (values !== null) {\n headersMap[key] = values;\n }\n }\n return headersMap;\n}\nfunction sortAndConcatParams(params) {\n return [...params.keys()]\n .sort()\n .map((k) => `${k}=${params.getAll(k)}`)\n .join('&');\n}\nfunction makeCacheKey(request, mappedRequestUrl) {\n // make the params encoded same as a url so it's easy to identify\n const { params, method, responseType } = request;\n const encodedParams = sortAndConcatParams(params);\n let serializedBody = request.serializeBody();\n if (serializedBody instanceof URLSearchParams) {\n serializedBody = sortAndConcatParams(serializedBody);\n }\n else if (typeof serializedBody !== 'string') {\n serializedBody = '';\n }\n const key = [method, responseType, mappedRequestUrl, serializedBody, encodedParams].join('|');\n const hash = generateHash(key);\n return makeStateKey(hash);\n}\n/**\n * A method that returns a hash representation of a string using a variant of DJB2 hash\n * algorithm.\n *\n * This is the same hashing logic that is used to generate component ids.\n */\nfunction generateHash(value) {\n let hash = 0;\n for (const char of value) {\n hash = (Math.imul(31, hash) + char.charCodeAt(0)) << 0;\n }\n // Force positive number hash.\n // 2147483647 = equivalent of Integer.MAX_VALUE.\n hash += 2147483647 + 1;\n return hash.toString();\n}\n/**\n * Returns the DI providers needed to enable HTTP transfer cache.\n *\n * By default, when using server rendering, requests are performed twice: once on the server and\n * other one on the browser.\n *\n * When these providers are added, requests performed on the server are cached and reused during the\n * bootstrapping of the application in the browser thus avoiding duplicate requests and reducing\n * load time.\n *\n */\nfunction withHttpTransferCache(cacheOptions) {\n return [\n {\n provide: CACHE_OPTIONS,\n useFactory: () => {\n ɵperformanceMarkFeature('NgHttpTransferCache');\n return { isCacheActive: true, ...cacheOptions };\n },\n },\n {\n provide: HTTP_ROOT_INTERCEPTOR_FNS,\n useValue: transferCacheInterceptorFn,\n multi: true,\n deps: [TransferState, CACHE_OPTIONS],\n },\n {\n provide: APP_BOOTSTRAP_LISTENER,\n multi: true,\n useFactory: () => {\n const appRef = inject(ApplicationRef);\n const cacheState = inject(CACHE_OPTIONS);\n return () => {\n appRef.whenStable().then(() => {\n cacheState.isCacheActive = false;\n });\n };\n },\n },\n ];\n}\n/**\n * This function will add a proxy to an HttpHeader to intercept calls to get/has\n * and log a warning if the header entry requested has been removed\n */\nfunction appendMissingHeadersDetection(url, headers, headersToInclude) {\n const warningProduced = new Set();\n return new Proxy(headers, {\n get(target, prop) {\n const value = Reflect.get(target, prop);\n const methods = new Set(['get', 'has', 'getAll']);\n if (typeof value !== 'function' || !methods.has(prop)) {\n return value;\n }\n return (headerName) => {\n // We log when the key has been removed and a warning hasn't been produced for the header\n const key = (prop + ':' + headerName).toLowerCase(); // e.g. `get:cache-control`\n if (!headersToInclude.includes(headerName) && !warningProduced.has(key)) {\n warningProduced.add(key);\n const truncatedUrl = ɵtruncateMiddle(url);\n // TODO: create Error guide for this warning\n console.warn(ɵformatRuntimeError(2802 /* RuntimeErrorCode.HEADERS_ALTERED_BY_TRANSFER_CACHE */, `Angular detected that the \\`${headerName}\\` header is accessed, but the value of the header ` +\n `was not transferred from the server to the client by the HttpTransferCache. ` +\n `To include the value of the \\`${headerName}\\` header for the \\`${truncatedUrl}\\` request, ` +\n `use the \\`includeHeaders\\` list. The \\`includeHeaders\\` can be defined either ` +\n `on a request level by adding the \\`transferCache\\` parameter, or on an application ` +\n `level by adding the \\`httpCacheTransfer.includeHeaders\\` argument to the ` +\n `\\`provideClientHydration()\\` call. `));\n }\n // invoking the original method\n return value.apply(target, [headerName]);\n };\n },\n });\n}\nfunction mapRequestOriginUrl(url, originMap) {\n const origin = new URL(url, 'resolve://').origin;\n const mappedOrigin = originMap[origin];\n if (!mappedOrigin) {\n return url;\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n verifyMappedOrigin(mappedOrigin);\n }\n return url.replace(origin, mappedOrigin);\n}\nfunction verifyMappedOrigin(url) {\n if (new URL(url, 'resolve://').pathname !== '/') {\n throw new ɵRuntimeError(2804 /* RuntimeErrorCode.HTTP_ORIGIN_MAP_CONTAINS_PATH */, 'Angular detected a URL with a path segment in the value provided for the ' +\n `\\`HTTP_TRANSFER_CACHE_ORIGIN_MAP\\` token: ${url}. The map should only contain origins ` +\n 'without any other segments.');\n }\n}\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { FetchBackend, HTTP_INTERCEPTORS, HTTP_TRANSFER_CACHE_ORIGIN_MAP, HttpBackend, HttpClient, HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpContext, HttpContextToken, HttpErrorResponse, HttpEventType, HttpFeatureKind, HttpHandler, HttpHeaderResponse, HttpHeaders, HttpParams, HttpRequest, HttpResponse, HttpResponseBase, HttpStatusCode, HttpUrlEncodingCodec, HttpXhrBackend, HttpXsrfTokenExtractor, JsonpClientBackend, JsonpInterceptor, provideHttpClient, withFetch, withInterceptors, withInterceptorsFromDi, withJsonpSupport, withNoXsrfProtection, withRequestsMadeViaParent, withXsrfConfiguration, HTTP_ROOT_INTERCEPTOR_FNS as ɵHTTP_ROOT_INTERCEPTOR_FNS, HttpInterceptorHandler as ɵHttpInterceptingHandler, HttpInterceptorHandler as ɵHttpInterceptorHandler, REQUESTS_CONTRIBUTE_TO_STABILITY as ɵREQUESTS_CONTRIBUTE_TO_STABILITY, withHttpTransferCache as ɵwithHttpTransferCache };\n","/**\n * @license Angular v19.1.4\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nconst _SELECTOR_REGEXP = new RegExp('(\\\\:not\\\\()|' + // 1: \":not(\"\n '(([\\\\.\\\\#]?)[-\\\\w]+)|' + // 2: \"tag\"; 3: \".\"/\"#\";\n // \"-\" should appear first in the regexp below as FF31 parses \"[.-\\w]\" as a range\n // 4: attribute; 5: attribute_string; 6: attribute_value\n '(?:\\\\[([-.\\\\w*\\\\\\\\$]+)(?:=([\"\\']?)([^\\\\]\"\\']*)\\\\5)?\\\\])|' + // \"[name]\", \"[name=value]\",\n // \"[name=\"value\"]\",\n // \"[name='value']\"\n '(\\\\))|' + // 7: \")\"\n '(\\\\s*,\\\\s*)', // 8: \",\"\n'g');\n/**\n * A css selector contains an element name,\n * css classes and attribute/value pairs with the purpose\n * of selecting subsets out of them.\n */\nclass CssSelector {\n element = null;\n classNames = [];\n /**\n * The selectors are encoded in pairs where:\n * - even locations are attribute names\n * - odd locations are attribute values.\n *\n * Example:\n * Selector: `[key1=value1][key2]` would parse to:\n * ```\n * ['key1', 'value1', 'key2', '']\n * ```\n */\n attrs = [];\n notSelectors = [];\n static parse(selector) {\n const results = [];\n const _addResult = (res, cssSel) => {\n if (cssSel.notSelectors.length > 0 &&\n !cssSel.element &&\n cssSel.classNames.length == 0 &&\n cssSel.attrs.length == 0) {\n cssSel.element = '*';\n }\n res.push(cssSel);\n };\n let cssSelector = new CssSelector();\n let match;\n let current = cssSelector;\n let inNot = false;\n _SELECTOR_REGEXP.lastIndex = 0;\n while ((match = _SELECTOR_REGEXP.exec(selector))) {\n if (match[1 /* SelectorRegexp.NOT */]) {\n if (inNot) {\n throw new Error('Nesting :not in a selector is not allowed');\n }\n inNot = true;\n current = new CssSelector();\n cssSelector.notSelectors.push(current);\n }\n const tag = match[2 /* SelectorRegexp.TAG */];\n if (tag) {\n const prefix = match[3 /* SelectorRegexp.PREFIX */];\n if (prefix === '#') {\n // #hash\n current.addAttribute('id', tag.slice(1));\n }\n else if (prefix === '.') {\n // Class\n current.addClassName(tag.slice(1));\n }\n else {\n // Element\n current.setElement(tag);\n }\n }\n const attribute = match[4 /* SelectorRegexp.ATTRIBUTE */];\n if (attribute) {\n current.addAttribute(current.unescapeAttribute(attribute), match[6 /* SelectorRegexp.ATTRIBUTE_VALUE */]);\n }\n if (match[7 /* SelectorRegexp.NOT_END */]) {\n inNot = false;\n current = cssSelector;\n }\n if (match[8 /* SelectorRegexp.SEPARATOR */]) {\n if (inNot) {\n throw new Error('Multiple selectors in :not are not supported');\n }\n _addResult(results, cssSelector);\n cssSelector = current = new CssSelector();\n }\n }\n _addResult(results, cssSelector);\n return results;\n }\n /**\n * Unescape `\\$` sequences from the CSS attribute selector.\n *\n * This is needed because `$` can have a special meaning in CSS selectors,\n * but we might want to match an attribute that contains `$`.\n * [MDN web link for more\n * info](https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors).\n * @param attr the attribute to unescape.\n * @returns the unescaped string.\n */\n unescapeAttribute(attr) {\n let result = '';\n let escaping = false;\n for (let i = 0; i < attr.length; i++) {\n const char = attr.charAt(i);\n if (char === '\\\\') {\n escaping = true;\n continue;\n }\n if (char === '$' && !escaping) {\n throw new Error(`Error in attribute selector \"${attr}\". ` +\n `Unescaped \"$\" is not supported. Please escape with \"\\\\$\".`);\n }\n escaping = false;\n result += char;\n }\n return result;\n }\n /**\n * Escape `$` sequences from the CSS attribute selector.\n *\n * This is needed because `$` can have a special meaning in CSS selectors,\n * with this method we are escaping `$` with `\\$'.\n * [MDN web link for more\n * info](https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors).\n * @param attr the attribute to escape.\n * @returns the escaped string.\n */\n escapeAttribute(attr) {\n return attr.replace(/\\\\/g, '\\\\\\\\').replace(/\\$/g, '\\\\$');\n }\n isElementSelector() {\n return (this.hasElementSelector() &&\n this.classNames.length == 0 &&\n this.attrs.length == 0 &&\n this.notSelectors.length === 0);\n }\n hasElementSelector() {\n return !!this.element;\n }\n setElement(element = null) {\n this.element = element;\n }\n getAttrs() {\n const result = [];\n if (this.classNames.length > 0) {\n result.push('class', this.classNames.join(' '));\n }\n return result.concat(this.attrs);\n }\n addAttribute(name, value = '') {\n this.attrs.push(name, (value && value.toLowerCase()) || '');\n }\n addClassName(name) {\n this.classNames.push(name.toLowerCase());\n }\n toString() {\n let res = this.element || '';\n if (this.classNames) {\n this.classNames.forEach((klass) => (res += `.${klass}`));\n }\n if (this.attrs) {\n for (let i = 0; i < this.attrs.length; i += 2) {\n const name = this.escapeAttribute(this.attrs[i]);\n const value = this.attrs[i + 1];\n res += `[${name}${value ? '=' + value : ''}]`;\n }\n }\n this.notSelectors.forEach((notSelector) => (res += `:not(${notSelector})`));\n return res;\n }\n}\n/**\n * Reads a list of CssSelectors and allows to calculate which ones\n * are contained in a given CssSelector.\n */\nclass SelectorMatcher {\n static createNotMatcher(notSelectors) {\n const notMatcher = new SelectorMatcher();\n notMatcher.addSelectables(notSelectors, null);\n return notMatcher;\n }\n _elementMap = new Map();\n _elementPartialMap = new Map();\n _classMap = new Map();\n _classPartialMap = new Map();\n _attrValueMap = new Map();\n _attrValuePartialMap = new Map();\n _listContexts = [];\n addSelectables(cssSelectors, callbackCtxt) {\n let listContext = null;\n if (cssSelectors.length > 1) {\n listContext = new SelectorListContext(cssSelectors);\n this._listContexts.push(listContext);\n }\n for (let i = 0; i < cssSelectors.length; i++) {\n this._addSelectable(cssSelectors[i], callbackCtxt, listContext);\n }\n }\n /**\n * Add an object that can be found later on by calling `match`.\n * @param cssSelector A css selector\n * @param callbackCtxt An opaque object that will be given to the callback of the `match` function\n */\n _addSelectable(cssSelector, callbackCtxt, listContext) {\n let matcher = this;\n const element = cssSelector.element;\n const classNames = cssSelector.classNames;\n const attrs = cssSelector.attrs;\n const selectable = new SelectorContext(cssSelector, callbackCtxt, listContext);\n if (element) {\n const isTerminal = attrs.length === 0 && classNames.length === 0;\n if (isTerminal) {\n this._addTerminal(matcher._elementMap, element, selectable);\n }\n else {\n matcher = this._addPartial(matcher._elementPartialMap, element);\n }\n }\n if (classNames) {\n for (let i = 0; i < classNames.length; i++) {\n const isTerminal = attrs.length === 0 && i === classNames.length - 1;\n const className = classNames[i];\n if (isTerminal) {\n this._addTerminal(matcher._classMap, className, selectable);\n }\n else {\n matcher = this._addPartial(matcher._classPartialMap, className);\n }\n }\n }\n if (attrs) {\n for (let i = 0; i < attrs.length; i += 2) {\n const isTerminal = i === attrs.length - 2;\n const name = attrs[i];\n const value = attrs[i + 1];\n if (isTerminal) {\n const terminalMap = matcher._attrValueMap;\n let terminalValuesMap = terminalMap.get(name);\n if (!terminalValuesMap) {\n terminalValuesMap = new Map();\n terminalMap.set(name, terminalValuesMap);\n }\n this._addTerminal(terminalValuesMap, value, selectable);\n }\n else {\n const partialMap = matcher._attrValuePartialMap;\n let partialValuesMap = partialMap.get(name);\n if (!partialValuesMap) {\n partialValuesMap = new Map();\n partialMap.set(name, partialValuesMap);\n }\n matcher = this._addPartial(partialValuesMap, value);\n }\n }\n }\n }\n _addTerminal(map, name, selectable) {\n let terminalList = map.get(name);\n if (!terminalList) {\n terminalList = [];\n map.set(name, terminalList);\n }\n terminalList.push(selectable);\n }\n _addPartial(map, name) {\n let matcher = map.get(name);\n if (!matcher) {\n matcher = new SelectorMatcher();\n map.set(name, matcher);\n }\n return matcher;\n }\n /**\n * Find the objects that have been added via `addSelectable`\n * whose css selector is contained in the given css selector.\n * @param cssSelector A css selector\n * @param matchedCallback This callback will be called with the object handed into `addSelectable`\n * @return boolean true if a match was found\n */\n match(cssSelector, matchedCallback) {\n let result = false;\n const element = cssSelector.element;\n const classNames = cssSelector.classNames;\n const attrs = cssSelector.attrs;\n for (let i = 0; i < this._listContexts.length; i++) {\n this._listContexts[i].alreadyMatched = false;\n }\n result = this._matchTerminal(this._elementMap, element, cssSelector, matchedCallback) || result;\n result =\n this._matchPartial(this._elementPartialMap, element, cssSelector, matchedCallback) || result;\n if (classNames) {\n for (let i = 0; i < classNames.length; i++) {\n const className = classNames[i];\n result =\n this._matchTerminal(this._classMap, className, cssSelector, matchedCallback) || result;\n result =\n this._matchPartial(this._classPartialMap, className, cssSelector, matchedCallback) ||\n result;\n }\n }\n if (attrs) {\n for (let i = 0; i < attrs.length; i += 2) {\n const name = attrs[i];\n const value = attrs[i + 1];\n const terminalValuesMap = this._attrValueMap.get(name);\n if (value) {\n result =\n this._matchTerminal(terminalValuesMap, '', cssSelector, matchedCallback) || result;\n }\n result =\n this._matchTerminal(terminalValuesMap, value, cssSelector, matchedCallback) || result;\n const partialValuesMap = this._attrValuePartialMap.get(name);\n if (value) {\n result = this._matchPartial(partialValuesMap, '', cssSelector, matchedCallback) || result;\n }\n result =\n this._matchPartial(partialValuesMap, value, cssSelector, matchedCallback) || result;\n }\n }\n return result;\n }\n /** @internal */\n _matchTerminal(map, name, cssSelector, matchedCallback) {\n if (!map || typeof name !== 'string') {\n return false;\n }\n let selectables = map.get(name) || [];\n const starSelectables = map.get('*');\n if (starSelectables) {\n selectables = selectables.concat(starSelectables);\n }\n if (selectables.length === 0) {\n return false;\n }\n let selectable;\n let result = false;\n for (let i = 0; i < selectables.length; i++) {\n selectable = selectables[i];\n result = selectable.finalize(cssSelector, matchedCallback) || result;\n }\n return result;\n }\n /** @internal */\n _matchPartial(map, name, cssSelector, matchedCallback) {\n if (!map || typeof name !== 'string') {\n return false;\n }\n const nestedSelector = map.get(name);\n if (!nestedSelector) {\n return false;\n }\n // TODO(perf): get rid of recursion and measure again\n // TODO(perf): don't pass the whole selector into the recursion,\n // but only the not processed parts\n return nestedSelector.match(cssSelector, matchedCallback);\n }\n}\nclass SelectorListContext {\n selectors;\n alreadyMatched = false;\n constructor(selectors) {\n this.selectors = selectors;\n }\n}\n// Store context to pass back selector and context when a selector is matched\nclass SelectorContext {\n selector;\n cbContext;\n listContext;\n notSelectors;\n constructor(selector, cbContext, listContext) {\n this.selector = selector;\n this.cbContext = cbContext;\n this.listContext = listContext;\n this.notSelectors = selector.notSelectors;\n }\n finalize(cssSelector, callback) {\n let result = true;\n if (this.notSelectors.length > 0 && (!this.listContext || !this.listContext.alreadyMatched)) {\n const notMatcher = SelectorMatcher.createNotMatcher(this.notSelectors);\n result = !notMatcher.match(cssSelector, null);\n }\n if (result && callback && (!this.listContext || !this.listContext.alreadyMatched)) {\n if (this.listContext) {\n this.listContext.alreadyMatched = true;\n }\n callback(this.selector, this.cbContext);\n }\n return result;\n }\n}\n\n// Attention:\n// Stores the default value of `emitDistinctChangesOnly` when the `emitDistinctChangesOnly` is not\n// explicitly set.\nconst emitDistinctChangesOnlyDefaultValue = true;\nvar ViewEncapsulation;\n(function (ViewEncapsulation) {\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n ViewEncapsulation[ViewEncapsulation[\"ShadowDom\"] = 3] = \"ShadowDom\";\n})(ViewEncapsulation || (ViewEncapsulation = {}));\nvar ChangeDetectionStrategy;\n(function (ChangeDetectionStrategy) {\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"OnPush\"] = 0] = \"OnPush\";\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"Default\"] = 1] = \"Default\";\n})(ChangeDetectionStrategy || (ChangeDetectionStrategy = {}));\n/** Flags describing an input for a directive. */\nvar InputFlags;\n(function (InputFlags) {\n InputFlags[InputFlags[\"None\"] = 0] = \"None\";\n InputFlags[InputFlags[\"SignalBased\"] = 1] = \"SignalBased\";\n InputFlags[InputFlags[\"HasDecoratorInputTransform\"] = 2] = \"HasDecoratorInputTransform\";\n})(InputFlags || (InputFlags = {}));\nconst CUSTOM_ELEMENTS_SCHEMA = {\n name: 'custom-elements',\n};\nconst NO_ERRORS_SCHEMA = {\n name: 'no-errors-schema',\n};\nconst Type$1 = Function;\nvar SecurityContext;\n(function (SecurityContext) {\n SecurityContext[SecurityContext[\"NONE\"] = 0] = \"NONE\";\n SecurityContext[SecurityContext[\"HTML\"] = 1] = \"HTML\";\n SecurityContext[SecurityContext[\"STYLE\"] = 2] = \"STYLE\";\n SecurityContext[SecurityContext[\"SCRIPT\"] = 3] = \"SCRIPT\";\n SecurityContext[SecurityContext[\"URL\"] = 4] = \"URL\";\n SecurityContext[SecurityContext[\"RESOURCE_URL\"] = 5] = \"RESOURCE_URL\";\n})(SecurityContext || (SecurityContext = {}));\nvar MissingTranslationStrategy;\n(function (MissingTranslationStrategy) {\n MissingTranslationStrategy[MissingTranslationStrategy[\"Error\"] = 0] = \"Error\";\n MissingTranslationStrategy[MissingTranslationStrategy[\"Warning\"] = 1] = \"Warning\";\n MissingTranslationStrategy[MissingTranslationStrategy[\"Ignore\"] = 2] = \"Ignore\";\n})(MissingTranslationStrategy || (MissingTranslationStrategy = {}));\nfunction parserSelectorToSimpleSelector(selector) {\n const classes = selector.classNames && selector.classNames.length\n ? [8 /* SelectorFlags.CLASS */, ...selector.classNames]\n : [];\n const elementName = selector.element && selector.element !== '*' ? selector.element : '';\n return [elementName, ...selector.attrs, ...classes];\n}\nfunction parserSelectorToNegativeSelector(selector) {\n const classes = selector.classNames && selector.classNames.length\n ? [8 /* SelectorFlags.CLASS */, ...selector.classNames]\n : [];\n if (selector.element) {\n return [\n 1 /* SelectorFlags.NOT */ | 4 /* SelectorFlags.ELEMENT */,\n selector.element,\n ...selector.attrs,\n ...classes,\n ];\n }\n else if (selector.attrs.length) {\n return [1 /* SelectorFlags.NOT */ | 2 /* SelectorFlags.ATTRIBUTE */, ...selector.attrs, ...classes];\n }\n else {\n return selector.classNames && selector.classNames.length\n ? [1 /* SelectorFlags.NOT */ | 8 /* SelectorFlags.CLASS */, ...selector.classNames]\n : [];\n }\n}\nfunction parserSelectorToR3Selector(selector) {\n const positive = parserSelectorToSimpleSelector(selector);\n const negative = selector.notSelectors && selector.notSelectors.length\n ? selector.notSelectors.map((notSelector) => parserSelectorToNegativeSelector(notSelector))\n : [];\n return positive.concat(...negative);\n}\nfunction parseSelectorToR3Selector(selector) {\n return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];\n}\n\nvar core = /*#__PURE__*/Object.freeze({\n __proto__: null,\n emitDistinctChangesOnlyDefaultValue: emitDistinctChangesOnlyDefaultValue,\n get ViewEncapsulation () { return ViewEncapsulation; },\n get ChangeDetectionStrategy () { return ChangeDetectionStrategy; },\n get InputFlags () { return InputFlags; },\n CUSTOM_ELEMENTS_SCHEMA: CUSTOM_ELEMENTS_SCHEMA,\n NO_ERRORS_SCHEMA: NO_ERRORS_SCHEMA,\n Type: Type$1,\n get SecurityContext () { return SecurityContext; },\n get MissingTranslationStrategy () { return MissingTranslationStrategy; },\n parseSelectorToR3Selector: parseSelectorToR3Selector\n});\n\n/**\n * A lazily created TextEncoder instance for converting strings into UTF-8 bytes\n */\nlet textEncoder;\n/**\n * Return the message id or compute it using the XLIFF1 digest.\n */\nfunction digest$1(message) {\n return message.id || computeDigest(message);\n}\n/**\n * Compute the message id using the XLIFF1 digest.\n */\nfunction computeDigest(message) {\n return sha1(serializeNodes(message.nodes).join('') + `[${message.meaning}]`);\n}\n/**\n * Return the message id or compute it using the XLIFF2/XMB/$localize digest.\n */\nfunction decimalDigest(message) {\n return message.id || computeDecimalDigest(message);\n}\n/**\n * Compute the message id using the XLIFF2/XMB/$localize digest.\n */\nfunction computeDecimalDigest(message) {\n const visitor = new _SerializerIgnoreIcuExpVisitor();\n const parts = message.nodes.map((a) => a.visit(visitor, null));\n return computeMsgId(parts.join(''), message.meaning);\n}\n/**\n * Serialize the i18n ast to something xml-like in order to generate an UID.\n *\n * The visitor is also used in the i18n parser tests\n *\n * @internal\n */\nclass _SerializerVisitor {\n visitText(text, context) {\n return text.value;\n }\n visitContainer(container, context) {\n return `[${container.children.map((child) => child.visit(this)).join(', ')}]`;\n }\n visitIcu(icu, context) {\n const strCases = Object.keys(icu.cases).map((k) => `${k} {${icu.cases[k].visit(this)}}`);\n return `{${icu.expression}, ${icu.type}, ${strCases.join(', ')}}`;\n }\n visitTagPlaceholder(ph, context) {\n return ph.isVoid\n ? `<ph tag name=\"${ph.startName}\"/>`\n : `<ph tag name=\"${ph.startName}\">${ph.children\n .map((child) => child.visit(this))\n .join(', ')}</ph name=\"${ph.closeName}\">`;\n }\n visitPlaceholder(ph, context) {\n return ph.value ? `<ph name=\"${ph.name}\">${ph.value}</ph>` : `<ph name=\"${ph.name}\"/>`;\n }\n visitIcuPlaceholder(ph, context) {\n return `<ph icu name=\"${ph.name}\">${ph.value.visit(this)}</ph>`;\n }\n visitBlockPlaceholder(ph, context) {\n return `<ph block name=\"${ph.startName}\">${ph.children\n .map((child) => child.visit(this))\n .join(', ')}</ph name=\"${ph.closeName}\">`;\n }\n}\nconst serializerVisitor$1 = new _SerializerVisitor();\nfunction serializeNodes(nodes) {\n return nodes.map((a) => a.visit(serializerVisitor$1, null));\n}\n/**\n * Serialize the i18n ast to something xml-like in order to generate an UID.\n *\n * Ignore the ICU expressions so that message IDs stays identical if only the expression changes.\n *\n * @internal\n */\nclass _SerializerIgnoreIcuExpVisitor extends _SerializerVisitor {\n visitIcu(icu) {\n let strCases = Object.keys(icu.cases).map((k) => `${k} {${icu.cases[k].visit(this)}}`);\n // Do not take the expression into account\n return `{${icu.type}, ${strCases.join(', ')}}`;\n }\n}\n/**\n * Compute the SHA1 of the given string\n *\n * see https://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf\n *\n * WARNING: this function has not been designed not tested with security in mind.\n * DO NOT USE IT IN A SECURITY SENSITIVE CONTEXT.\n */\nfunction sha1(str) {\n textEncoder ??= new TextEncoder();\n const utf8 = [...textEncoder.encode(str)];\n const words32 = bytesToWords32(utf8, Endian.Big);\n const len = utf8.length * 8;\n const w = new Uint32Array(80);\n let a = 0x67452301, b = 0xefcdab89, c = 0x98badcfe, d = 0x10325476, e = 0xc3d2e1f0;\n words32[len >> 5] |= 0x80 << (24 - (len % 32));\n words32[(((len + 64) >> 9) << 4) + 15] = len;\n for (let i = 0; i < words32.length; i += 16) {\n const h0 = a, h1 = b, h2 = c, h3 = d, h4 = e;\n for (let j = 0; j < 80; j++) {\n if (j < 16) {\n w[j] = words32[i + j];\n }\n else {\n w[j] = rol32(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1);\n }\n const fkVal = fk(j, b, c, d);\n const f = fkVal[0];\n const k = fkVal[1];\n const temp = [rol32(a, 5), f, e, k, w[j]].reduce(add32);\n e = d;\n d = c;\n c = rol32(b, 30);\n b = a;\n a = temp;\n }\n a = add32(a, h0);\n b = add32(b, h1);\n c = add32(c, h2);\n d = add32(d, h3);\n e = add32(e, h4);\n }\n // Convert the output parts to a 160-bit hexadecimal string\n return toHexU32(a) + toHexU32(b) + toHexU32(c) + toHexU32(d) + toHexU32(e);\n}\n/**\n * Convert and format a number as a string representing a 32-bit unsigned hexadecimal number.\n * @param value The value to format as a string.\n * @returns A hexadecimal string representing the value.\n */\nfunction toHexU32(value) {\n // unsigned right shift of zero ensures an unsigned 32-bit number\n return (value >>> 0).toString(16).padStart(8, '0');\n}\nfunction fk(index, b, c, d) {\n if (index < 20) {\n return [(b & c) | (~b & d), 0x5a827999];\n }\n if (index < 40) {\n return [b ^ c ^ d, 0x6ed9eba1];\n }\n if (index < 60) {\n return [(b & c) | (b & d) | (c & d), 0x8f1bbcdc];\n }\n return [b ^ c ^ d, 0xca62c1d6];\n}\n/**\n * Compute the fingerprint of the given string\n *\n * The output is 64 bit number encoded as a decimal string\n *\n * based on:\n * https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/GoogleJsMessageIdGenerator.java\n */\nfunction fingerprint(str) {\n textEncoder ??= new TextEncoder();\n const utf8 = textEncoder.encode(str);\n const view = new DataView(utf8.buffer, utf8.byteOffset, utf8.byteLength);\n let hi = hash32(view, utf8.length, 0);\n let lo = hash32(view, utf8.length, 102072);\n if (hi == 0 && (lo == 0 || lo == 1)) {\n hi = hi ^ 0x130f9bef;\n lo = lo ^ -0x6b5f56d8;\n }\n return (BigInt.asUintN(32, BigInt(hi)) << BigInt(32)) | BigInt.asUintN(32, BigInt(lo));\n}\nfunction computeMsgId(msg, meaning = '') {\n let msgFingerprint = fingerprint(msg);\n if (meaning) {\n // Rotate the 64-bit message fingerprint one bit to the left and then add the meaning\n // fingerprint.\n msgFingerprint =\n BigInt.asUintN(64, msgFingerprint << BigInt(1)) |\n ((msgFingerprint >> BigInt(63)) & BigInt(1));\n msgFingerprint += fingerprint(meaning);\n }\n return BigInt.asUintN(63, msgFingerprint).toString();\n}\nfunction hash32(view, length, c) {\n let a = 0x9e3779b9, b = 0x9e3779b9;\n let index = 0;\n const end = length - 12;\n for (; index <= end; index += 12) {\n a += view.getUint32(index, true);\n b += view.getUint32(index + 4, true);\n c += view.getUint32(index + 8, true);\n const res = mix(a, b, c);\n (a = res[0]), (b = res[1]), (c = res[2]);\n }\n const remainder = length - index;\n // the first byte of c is reserved for the length\n c += length;\n if (remainder >= 4) {\n a += view.getUint32(index, true);\n index += 4;\n if (remainder >= 8) {\n b += view.getUint32(index, true);\n index += 4;\n // Partial 32-bit word for c\n if (remainder >= 9) {\n c += view.getUint8(index++) << 8;\n }\n if (remainder >= 10) {\n c += view.getUint8(index++) << 16;\n }\n if (remainder === 11) {\n c += view.getUint8(index++) << 24;\n }\n }\n else {\n // Partial 32-bit word for b\n if (remainder >= 5) {\n b += view.getUint8(index++);\n }\n if (remainder >= 6) {\n b += view.getUint8(index++) << 8;\n }\n if (remainder === 7) {\n b += view.getUint8(index++) << 16;\n }\n }\n }\n else {\n // Partial 32-bit word for a\n if (remainder >= 1) {\n a += view.getUint8(index++);\n }\n if (remainder >= 2) {\n a += view.getUint8(index++) << 8;\n }\n if (remainder === 3) {\n a += view.getUint8(index++) << 16;\n }\n }\n return mix(a, b, c)[2];\n}\nfunction mix(a, b, c) {\n a -= b;\n a -= c;\n a ^= c >>> 13;\n b -= c;\n b -= a;\n b ^= a << 8;\n c -= a;\n c -= b;\n c ^= b >>> 13;\n a -= b;\n a -= c;\n a ^= c >>> 12;\n b -= c;\n b -= a;\n b ^= a << 16;\n c -= a;\n c -= b;\n c ^= b >>> 5;\n a -= b;\n a -= c;\n a ^= c >>> 3;\n b -= c;\n b -= a;\n b ^= a << 10;\n c -= a;\n c -= b;\n c ^= b >>> 15;\n return [a, b, c];\n}\n// Utils\nvar Endian;\n(function (Endian) {\n Endian[Endian[\"Little\"] = 0] = \"Little\";\n Endian[Endian[\"Big\"] = 1] = \"Big\";\n})(Endian || (Endian = {}));\nfunction add32(a, b) {\n return add32to64(a, b)[1];\n}\nfunction add32to64(a, b) {\n const low = (a & 0xffff) + (b & 0xffff);\n const high = (a >>> 16) + (b >>> 16) + (low >>> 16);\n return [high >>> 16, (high << 16) | (low & 0xffff)];\n}\n// Rotate a 32b number left `count` position\nfunction rol32(a, count) {\n return (a << count) | (a >>> (32 - count));\n}\nfunction bytesToWords32(bytes, endian) {\n const size = (bytes.length + 3) >>> 2;\n const words32 = [];\n for (let i = 0; i < size; i++) {\n words32[i] = wordAt(bytes, i * 4, endian);\n }\n return words32;\n}\nfunction byteAt(bytes, index) {\n return index >= bytes.length ? 0 : bytes[index];\n}\nfunction wordAt(bytes, index, endian) {\n let word = 0;\n if (endian === Endian.Big) {\n for (let i = 0; i < 4; i++) {\n word += byteAt(bytes, index + i) << (24 - 8 * i);\n }\n }\n else {\n for (let i = 0; i < 4; i++) {\n word += byteAt(bytes, index + i) << (8 * i);\n }\n }\n return word;\n}\n\n//// Types\nvar TypeModifier;\n(function (TypeModifier) {\n TypeModifier[TypeModifier[\"None\"] = 0] = \"None\";\n TypeModifier[TypeModifier[\"Const\"] = 1] = \"Const\";\n})(TypeModifier || (TypeModifier = {}));\nclass Type {\n modifiers;\n constructor(modifiers = TypeModifier.None) {\n this.modifiers = modifiers;\n }\n hasModifier(modifier) {\n return (this.modifiers & modifier) !== 0;\n }\n}\nvar BuiltinTypeName;\n(function (BuiltinTypeName) {\n BuiltinTypeName[BuiltinTypeName[\"Dynamic\"] = 0] = \"Dynamic\";\n BuiltinTypeName[BuiltinTypeName[\"Bool\"] = 1] = \"Bool\";\n BuiltinTypeName[BuiltinTypeName[\"String\"] = 2] = \"String\";\n BuiltinTypeName[BuiltinTypeName[\"Int\"] = 3] = \"Int\";\n BuiltinTypeName[BuiltinTypeName[\"Number\"] = 4] = \"Number\";\n BuiltinTypeName[BuiltinTypeName[\"Function\"] = 5] = \"Function\";\n BuiltinTypeName[BuiltinTypeName[\"Inferred\"] = 6] = \"Inferred\";\n BuiltinTypeName[BuiltinTypeName[\"None\"] = 7] = \"None\";\n})(BuiltinTypeName || (BuiltinTypeName = {}));\nclass BuiltinType extends Type {\n name;\n constructor(name, modifiers) {\n super(modifiers);\n this.name = name;\n }\n visitType(visitor, context) {\n return visitor.visitBuiltinType(this, context);\n }\n}\nclass ExpressionType extends Type {\n value;\n typeParams;\n constructor(value, modifiers, typeParams = null) {\n super(modifiers);\n this.value = value;\n this.typeParams = typeParams;\n }\n visitType(visitor, context) {\n return visitor.visitExpressionType(this, context);\n }\n}\nclass ArrayType extends Type {\n of;\n constructor(of, modifiers) {\n super(modifiers);\n this.of = of;\n }\n visitType(visitor, context) {\n return visitor.visitArrayType(this, context);\n }\n}\nclass MapType extends Type {\n valueType;\n constructor(valueType, modifiers) {\n super(modifiers);\n this.valueType = valueType || null;\n }\n visitType(visitor, context) {\n return visitor.visitMapType(this, context);\n }\n}\nclass TransplantedType extends Type {\n type;\n constructor(type, modifiers) {\n super(modifiers);\n this.type = type;\n }\n visitType(visitor, context) {\n return visitor.visitTransplantedType(this, context);\n }\n}\nconst DYNAMIC_TYPE = new BuiltinType(BuiltinTypeName.Dynamic);\nconst INFERRED_TYPE = new BuiltinType(BuiltinTypeName.Inferred);\nconst BOOL_TYPE = new BuiltinType(BuiltinTypeName.Bool);\nconst INT_TYPE = new BuiltinType(BuiltinTypeName.Int);\nconst NUMBER_TYPE = new BuiltinType(BuiltinTypeName.Number);\nconst STRING_TYPE = new BuiltinType(BuiltinTypeName.String);\nconst FUNCTION_TYPE = new BuiltinType(BuiltinTypeName.Function);\nconst NONE_TYPE = new BuiltinType(BuiltinTypeName.None);\n///// Expressions\nvar UnaryOperator;\n(function (UnaryOperator) {\n UnaryOperator[UnaryOperator[\"Minus\"] = 0] = \"Minus\";\n UnaryOperator[UnaryOperator[\"Plus\"] = 1] = \"Plus\";\n})(UnaryOperator || (UnaryOperator = {}));\nvar BinaryOperator;\n(function (BinaryOperator) {\n BinaryOperator[BinaryOperator[\"Equals\"] = 0] = \"Equals\";\n BinaryOperator[BinaryOperator[\"NotEquals\"] = 1] = \"NotEquals\";\n BinaryOperator[BinaryOperator[\"Identical\"] = 2] = \"Identical\";\n BinaryOperator[BinaryOperator[\"NotIdentical\"] = 3] = \"NotIdentical\";\n BinaryOperator[BinaryOperator[\"Minus\"] = 4] = \"Minus\";\n BinaryOperator[BinaryOperator[\"Plus\"] = 5] = \"Plus\";\n BinaryOperator[BinaryOperator[\"Divide\"] = 6] = \"Divide\";\n BinaryOperator[BinaryOperator[\"Multiply\"] = 7] = \"Multiply\";\n BinaryOperator[BinaryOperator[\"Modulo\"] = 8] = \"Modulo\";\n BinaryOperator[BinaryOperator[\"And\"] = 9] = \"And\";\n BinaryOperator[BinaryOperator[\"Or\"] = 10] = \"Or\";\n BinaryOperator[BinaryOperator[\"BitwiseOr\"] = 11] = \"BitwiseOr\";\n BinaryOperator[BinaryOperator[\"BitwiseAnd\"] = 12] = \"BitwiseAnd\";\n BinaryOperator[BinaryOperator[\"Lower\"] = 13] = \"Lower\";\n BinaryOperator[BinaryOperator[\"LowerEquals\"] = 14] = \"LowerEquals\";\n BinaryOperator[BinaryOperator[\"Bigger\"] = 15] = \"Bigger\";\n BinaryOperator[BinaryOperator[\"BiggerEquals\"] = 16] = \"BiggerEquals\";\n BinaryOperator[BinaryOperator[\"NullishCoalesce\"] = 17] = \"NullishCoalesce\";\n})(BinaryOperator || (BinaryOperator = {}));\nfunction nullSafeIsEquivalent(base, other) {\n if (base == null || other == null) {\n return base == other;\n }\n return base.isEquivalent(other);\n}\nfunction areAllEquivalentPredicate(base, other, equivalentPredicate) {\n const len = base.length;\n if (len !== other.length) {\n return false;\n }\n for (let i = 0; i < len; i++) {\n if (!equivalentPredicate(base[i], other[i])) {\n return false;\n }\n }\n return true;\n}\nfunction areAllEquivalent(base, other) {\n return areAllEquivalentPredicate(base, other, (baseElement, otherElement) => baseElement.isEquivalent(otherElement));\n}\nclass Expression {\n type;\n sourceSpan;\n constructor(type, sourceSpan) {\n this.type = type || null;\n this.sourceSpan = sourceSpan || null;\n }\n prop(name, sourceSpan) {\n return new ReadPropExpr(this, name, null, sourceSpan);\n }\n key(index, type, sourceSpan) {\n return new ReadKeyExpr(this, index, type, sourceSpan);\n }\n callFn(params, sourceSpan, pure) {\n return new InvokeFunctionExpr(this, params, null, sourceSpan, pure);\n }\n instantiate(params, type, sourceSpan) {\n return new InstantiateExpr(this, params, type, sourceSpan);\n }\n conditional(trueCase, falseCase = null, sourceSpan) {\n return new ConditionalExpr(this, trueCase, falseCase, null, sourceSpan);\n }\n equals(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.Equals, this, rhs, null, sourceSpan);\n }\n notEquals(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.NotEquals, this, rhs, null, sourceSpan);\n }\n identical(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.Identical, this, rhs, null, sourceSpan);\n }\n notIdentical(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.NotIdentical, this, rhs, null, sourceSpan);\n }\n minus(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.Minus, this, rhs, null, sourceSpan);\n }\n plus(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.Plus, this, rhs, null, sourceSpan);\n }\n divide(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.Divide, this, rhs, null, sourceSpan);\n }\n multiply(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.Multiply, this, rhs, null, sourceSpan);\n }\n modulo(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.Modulo, this, rhs, null, sourceSpan);\n }\n and(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.And, this, rhs, null, sourceSpan);\n }\n bitwiseOr(rhs, sourceSpan, parens = true) {\n return new BinaryOperatorExpr(BinaryOperator.BitwiseOr, this, rhs, null, sourceSpan, parens);\n }\n bitwiseAnd(rhs, sourceSpan, parens = true) {\n return new BinaryOperatorExpr(BinaryOperator.BitwiseAnd, this, rhs, null, sourceSpan, parens);\n }\n or(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.Or, this, rhs, null, sourceSpan);\n }\n lower(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.Lower, this, rhs, null, sourceSpan);\n }\n lowerEquals(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.LowerEquals, this, rhs, null, sourceSpan);\n }\n bigger(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.Bigger, this, rhs, null, sourceSpan);\n }\n biggerEquals(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.BiggerEquals, this, rhs, null, sourceSpan);\n }\n isBlank(sourceSpan) {\n // Note: We use equals by purpose here to compare to null and undefined in JS.\n // We use the typed null to allow strictNullChecks to narrow types.\n return this.equals(TYPED_NULL_EXPR, sourceSpan);\n }\n nullishCoalesce(rhs, sourceSpan) {\n return new BinaryOperatorExpr(BinaryOperator.NullishCoalesce, this, rhs, null, sourceSpan);\n }\n toStmt() {\n return new ExpressionStatement(this, null);\n }\n}\nclass ReadVarExpr extends Expression {\n name;\n constructor(name, type, sourceSpan) {\n super(type, sourceSpan);\n this.name = name;\n }\n isEquivalent(e) {\n return e instanceof ReadVarExpr && this.name === e.name;\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitReadVarExpr(this, context);\n }\n clone() {\n return new ReadVarExpr(this.name, this.type, this.sourceSpan);\n }\n set(value) {\n return new WriteVarExpr(this.name, value, null, this.sourceSpan);\n }\n}\nclass TypeofExpr extends Expression {\n expr;\n constructor(expr, type, sourceSpan) {\n super(type, sourceSpan);\n this.expr = expr;\n }\n visitExpression(visitor, context) {\n return visitor.visitTypeofExpr(this, context);\n }\n isEquivalent(e) {\n return e instanceof TypeofExpr && e.expr.isEquivalent(this.expr);\n }\n isConstant() {\n return this.expr.isConstant();\n }\n clone() {\n return new TypeofExpr(this.expr.clone());\n }\n}\nclass WrappedNodeExpr extends Expression {\n node;\n constructor(node, type, sourceSpan) {\n super(type, sourceSpan);\n this.node = node;\n }\n isEquivalent(e) {\n return e instanceof WrappedNodeExpr && this.node === e.node;\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitWrappedNodeExpr(this, context);\n }\n clone() {\n return new WrappedNodeExpr(this.node, this.type, this.sourceSpan);\n }\n}\nclass WriteVarExpr extends Expression {\n name;\n value;\n constructor(name, value, type, sourceSpan) {\n super(type || value.type, sourceSpan);\n this.name = name;\n this.value = value;\n }\n isEquivalent(e) {\n return e instanceof WriteVarExpr && this.name === e.name && this.value.isEquivalent(e.value);\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitWriteVarExpr(this, context);\n }\n clone() {\n return new WriteVarExpr(this.name, this.value.clone(), this.type, this.sourceSpan);\n }\n toDeclStmt(type, modifiers) {\n return new DeclareVarStmt(this.name, this.value, type, modifiers, this.sourceSpan);\n }\n toConstDecl() {\n return this.toDeclStmt(INFERRED_TYPE, StmtModifier.Final);\n }\n}\nclass WriteKeyExpr extends Expression {\n receiver;\n index;\n value;\n constructor(receiver, index, value, type, sourceSpan) {\n super(type || value.type, sourceSpan);\n this.receiver = receiver;\n this.index = index;\n this.value = value;\n }\n isEquivalent(e) {\n return (e instanceof WriteKeyExpr &&\n this.receiver.isEquivalent(e.receiver) &&\n this.index.isEquivalent(e.index) &&\n this.value.isEquivalent(e.value));\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitWriteKeyExpr(this, context);\n }\n clone() {\n return new WriteKeyExpr(this.receiver.clone(), this.index.clone(), this.value.clone(), this.type, this.sourceSpan);\n }\n}\nclass WritePropExpr extends Expression {\n receiver;\n name;\n value;\n constructor(receiver, name, value, type, sourceSpan) {\n super(type || value.type, sourceSpan);\n this.receiver = receiver;\n this.name = name;\n this.value = value;\n }\n isEquivalent(e) {\n return (e instanceof WritePropExpr &&\n this.receiver.isEquivalent(e.receiver) &&\n this.name === e.name &&\n this.value.isEquivalent(e.value));\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitWritePropExpr(this, context);\n }\n clone() {\n return new WritePropExpr(this.receiver.clone(), this.name, this.value.clone(), this.type, this.sourceSpan);\n }\n}\nclass InvokeFunctionExpr extends Expression {\n fn;\n args;\n pure;\n constructor(fn, args, type, sourceSpan, pure = false) {\n super(type, sourceSpan);\n this.fn = fn;\n this.args = args;\n this.pure = pure;\n }\n // An alias for fn, which allows other logic to handle calls and property reads together.\n get receiver() {\n return this.fn;\n }\n isEquivalent(e) {\n return (e instanceof InvokeFunctionExpr &&\n this.fn.isEquivalent(e.fn) &&\n areAllEquivalent(this.args, e.args) &&\n this.pure === e.pure);\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitInvokeFunctionExpr(this, context);\n }\n clone() {\n return new InvokeFunctionExpr(this.fn.clone(), this.args.map((arg) => arg.clone()), this.type, this.sourceSpan, this.pure);\n }\n}\nclass TaggedTemplateExpr extends Expression {\n tag;\n template;\n constructor(tag, template, type, sourceSpan) {\n super(type, sourceSpan);\n this.tag = tag;\n this.template = template;\n }\n isEquivalent(e) {\n return (e instanceof TaggedTemplateExpr &&\n this.tag.isEquivalent(e.tag) &&\n areAllEquivalentPredicate(this.template.elements, e.template.elements, (a, b) => a.text === b.text) &&\n areAllEquivalent(this.template.expressions, e.template.expressions));\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitTaggedTemplateExpr(this, context);\n }\n clone() {\n return new TaggedTemplateExpr(this.tag.clone(), this.template.clone(), this.type, this.sourceSpan);\n }\n}\nclass InstantiateExpr extends Expression {\n classExpr;\n args;\n constructor(classExpr, args, type, sourceSpan) {\n super(type, sourceSpan);\n this.classExpr = classExpr;\n this.args = args;\n }\n isEquivalent(e) {\n return (e instanceof InstantiateExpr &&\n this.classExpr.isEquivalent(e.classExpr) &&\n areAllEquivalent(this.args, e.args));\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitInstantiateExpr(this, context);\n }\n clone() {\n return new InstantiateExpr(this.classExpr.clone(), this.args.map((arg) => arg.clone()), this.type, this.sourceSpan);\n }\n}\nclass LiteralExpr extends Expression {\n value;\n constructor(value, type, sourceSpan) {\n super(type, sourceSpan);\n this.value = value;\n }\n isEquivalent(e) {\n return e instanceof LiteralExpr && this.value === e.value;\n }\n isConstant() {\n return true;\n }\n visitExpression(visitor, context) {\n return visitor.visitLiteralExpr(this, context);\n }\n clone() {\n return new LiteralExpr(this.value, this.type, this.sourceSpan);\n }\n}\nclass TemplateLiteral {\n elements;\n expressions;\n constructor(elements, expressions) {\n this.elements = elements;\n this.expressions = expressions;\n }\n clone() {\n return new TemplateLiteral(this.elements.map((el) => el.clone()), this.expressions.map((expr) => expr.clone()));\n }\n}\nclass TemplateLiteralElement {\n text;\n sourceSpan;\n rawText;\n constructor(text, sourceSpan, rawText) {\n this.text = text;\n this.sourceSpan = sourceSpan;\n // If `rawText` is not provided, try to extract the raw string from its\n // associated `sourceSpan`. If that is also not available, \"fake\" the raw\n // string instead by escaping the following control sequences:\n // - \"\\\" would otherwise indicate that the next character is a control character.\n // - \"`\" and \"${\" are template string control sequences that would otherwise prematurely\n // indicate the end of the template literal element.\n this.rawText =\n rawText ?? sourceSpan?.toString() ?? escapeForTemplateLiteral(escapeSlashes(text));\n }\n clone() {\n return new TemplateLiteralElement(this.text, this.sourceSpan, this.rawText);\n }\n}\nclass LiteralPiece {\n text;\n sourceSpan;\n constructor(text, sourceSpan) {\n this.text = text;\n this.sourceSpan = sourceSpan;\n }\n}\nclass PlaceholderPiece {\n text;\n sourceSpan;\n associatedMessage;\n /**\n * Create a new instance of a `PlaceholderPiece`.\n *\n * @param text the name of this placeholder (e.g. `PH_1`).\n * @param sourceSpan the location of this placeholder in its localized message the source code.\n * @param associatedMessage reference to another message that this placeholder is associated with.\n * The `associatedMessage` is mainly used to provide a relationship to an ICU message that has\n * been extracted out from the message containing the placeholder.\n */\n constructor(text, sourceSpan, associatedMessage) {\n this.text = text;\n this.sourceSpan = sourceSpan;\n this.associatedMessage = associatedMessage;\n }\n}\nconst MEANING_SEPARATOR$1 = '|';\nconst ID_SEPARATOR$1 = '@@';\nconst LEGACY_ID_INDICATOR = '␟';\nclass LocalizedString extends Expression {\n metaBlock;\n messageParts;\n placeHolderNames;\n expressions;\n constructor(metaBlock, messageParts, placeHolderNames, expressions, sourceSpan) {\n super(STRING_TYPE, sourceSpan);\n this.metaBlock = metaBlock;\n this.messageParts = messageParts;\n this.placeHolderNames = placeHolderNames;\n this.expressions = expressions;\n }\n isEquivalent(e) {\n // return e instanceof LocalizedString && this.message === e.message;\n return false;\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitLocalizedString(this, context);\n }\n clone() {\n return new LocalizedString(this.metaBlock, this.messageParts, this.placeHolderNames, this.expressions.map((expr) => expr.clone()), this.sourceSpan);\n }\n /**\n * Serialize the given `meta` and `messagePart` into \"cooked\" and \"raw\" strings that can be used\n * in a `$localize` tagged string. The format of the metadata is the same as that parsed by\n * `parseI18nMeta()`.\n *\n * @param meta The metadata to serialize\n * @param messagePart The first part of the tagged string\n */\n serializeI18nHead() {\n let metaBlock = this.metaBlock.description || '';\n if (this.metaBlock.meaning) {\n metaBlock = `${this.metaBlock.meaning}${MEANING_SEPARATOR$1}${metaBlock}`;\n }\n if (this.metaBlock.customId) {\n metaBlock = `${metaBlock}${ID_SEPARATOR$1}${this.metaBlock.customId}`;\n }\n if (this.metaBlock.legacyIds) {\n this.metaBlock.legacyIds.forEach((legacyId) => {\n metaBlock = `${metaBlock}${LEGACY_ID_INDICATOR}${legacyId}`;\n });\n }\n return createCookedRawString(metaBlock, this.messageParts[0].text, this.getMessagePartSourceSpan(0));\n }\n getMessagePartSourceSpan(i) {\n return this.messageParts[i]?.sourceSpan ?? this.sourceSpan;\n }\n getPlaceholderSourceSpan(i) {\n return (this.placeHolderNames[i]?.sourceSpan ?? this.expressions[i]?.sourceSpan ?? this.sourceSpan);\n }\n /**\n * Serialize the given `placeholderName` and `messagePart` into \"cooked\" and \"raw\" strings that\n * can be used in a `$localize` tagged string.\n *\n * The format is `:<placeholder-name>[@@<associated-id>]:`.\n *\n * The `associated-id` is the message id of the (usually an ICU) message to which this placeholder\n * refers.\n *\n * @param partIndex The index of the message part to serialize.\n */\n serializeI18nTemplatePart(partIndex) {\n const placeholder = this.placeHolderNames[partIndex - 1];\n const messagePart = this.messageParts[partIndex];\n let metaBlock = placeholder.text;\n if (placeholder.associatedMessage?.legacyIds.length === 0) {\n metaBlock += `${ID_SEPARATOR$1}${computeMsgId(placeholder.associatedMessage.messageString, placeholder.associatedMessage.meaning)}`;\n }\n return createCookedRawString(metaBlock, messagePart.text, this.getMessagePartSourceSpan(partIndex));\n }\n}\nconst escapeSlashes = (str) => str.replace(/\\\\/g, '\\\\\\\\');\nconst escapeStartingColon = (str) => str.replace(/^:/, '\\\\:');\nconst escapeColons = (str) => str.replace(/:/g, '\\\\:');\nconst escapeForTemplateLiteral = (str) => str.replace(/`/g, '\\\\`').replace(/\\${/g, '$\\\\{');\n/**\n * Creates a `{cooked, raw}` object from the `metaBlock` and `messagePart`.\n *\n * The `raw` text must have various character sequences escaped:\n * * \"\\\" would otherwise indicate that the next character is a control character.\n * * \"`\" and \"${\" are template string control sequences that would otherwise prematurely indicate\n * the end of a message part.\n * * \":\" inside a metablock would prematurely indicate the end of the metablock.\n * * \":\" at the start of a messagePart with no metablock would erroneously indicate the start of a\n * metablock.\n *\n * @param metaBlock Any metadata that should be prepended to the string\n * @param messagePart The message part of the string\n */\nfunction createCookedRawString(metaBlock, messagePart, range) {\n if (metaBlock === '') {\n return {\n cooked: messagePart,\n raw: escapeForTemplateLiteral(escapeStartingColon(escapeSlashes(messagePart))),\n range,\n };\n }\n else {\n return {\n cooked: `:${metaBlock}:${messagePart}`,\n raw: escapeForTemplateLiteral(`:${escapeColons(escapeSlashes(metaBlock))}:${escapeSlashes(messagePart)}`),\n range,\n };\n }\n}\nclass ExternalExpr extends Expression {\n value;\n typeParams;\n constructor(value, type, typeParams = null, sourceSpan) {\n super(type, sourceSpan);\n this.value = value;\n this.typeParams = typeParams;\n }\n isEquivalent(e) {\n return (e instanceof ExternalExpr &&\n this.value.name === e.value.name &&\n this.value.moduleName === e.value.moduleName);\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitExternalExpr(this, context);\n }\n clone() {\n return new ExternalExpr(this.value, this.type, this.typeParams, this.sourceSpan);\n }\n}\nclass ExternalReference {\n moduleName;\n name;\n constructor(moduleName, name) {\n this.moduleName = moduleName;\n this.name = name;\n }\n}\nclass ConditionalExpr extends Expression {\n condition;\n falseCase;\n trueCase;\n constructor(condition, trueCase, falseCase = null, type, sourceSpan) {\n super(type || trueCase.type, sourceSpan);\n this.condition = condition;\n this.falseCase = falseCase;\n this.trueCase = trueCase;\n }\n isEquivalent(e) {\n return (e instanceof ConditionalExpr &&\n this.condition.isEquivalent(e.condition) &&\n this.trueCase.isEquivalent(e.trueCase) &&\n nullSafeIsEquivalent(this.falseCase, e.falseCase));\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitConditionalExpr(this, context);\n }\n clone() {\n return new ConditionalExpr(this.condition.clone(), this.trueCase.clone(), this.falseCase?.clone(), this.type, this.sourceSpan);\n }\n}\nclass DynamicImportExpr extends Expression {\n url;\n urlComment;\n constructor(url, sourceSpan, urlComment) {\n super(null, sourceSpan);\n this.url = url;\n this.urlComment = urlComment;\n }\n isEquivalent(e) {\n return e instanceof DynamicImportExpr && this.url === e.url && this.urlComment === e.urlComment;\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitDynamicImportExpr(this, context);\n }\n clone() {\n return new DynamicImportExpr(typeof this.url === 'string' ? this.url : this.url.clone(), this.sourceSpan, this.urlComment);\n }\n}\nclass NotExpr extends Expression {\n condition;\n constructor(condition, sourceSpan) {\n super(BOOL_TYPE, sourceSpan);\n this.condition = condition;\n }\n isEquivalent(e) {\n return e instanceof NotExpr && this.condition.isEquivalent(e.condition);\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitNotExpr(this, context);\n }\n clone() {\n return new NotExpr(this.condition.clone(), this.sourceSpan);\n }\n}\nclass FnParam {\n name;\n type;\n constructor(name, type = null) {\n this.name = name;\n this.type = type;\n }\n isEquivalent(param) {\n return this.name === param.name;\n }\n clone() {\n return new FnParam(this.name, this.type);\n }\n}\nclass FunctionExpr extends Expression {\n params;\n statements;\n name;\n constructor(params, statements, type, sourceSpan, name) {\n super(type, sourceSpan);\n this.params = params;\n this.statements = statements;\n this.name = name;\n }\n isEquivalent(e) {\n return ((e instanceof FunctionExpr || e instanceof DeclareFunctionStmt) &&\n areAllEquivalent(this.params, e.params) &&\n areAllEquivalent(this.statements, e.statements));\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitFunctionExpr(this, context);\n }\n toDeclStmt(name, modifiers) {\n return new DeclareFunctionStmt(name, this.params, this.statements, this.type, modifiers, this.sourceSpan);\n }\n clone() {\n // TODO: Should we deep clone statements?\n return new FunctionExpr(this.params.map((p) => p.clone()), this.statements, this.type, this.sourceSpan, this.name);\n }\n}\nclass ArrowFunctionExpr extends Expression {\n params;\n body;\n // Note that `body: Expression` represents `() => expr` whereas\n // `body: Statement[]` represents `() => { expr }`.\n constructor(params, body, type, sourceSpan) {\n super(type, sourceSpan);\n this.params = params;\n this.body = body;\n }\n isEquivalent(e) {\n if (!(e instanceof ArrowFunctionExpr) || !areAllEquivalent(this.params, e.params)) {\n return false;\n }\n if (this.body instanceof Expression && e.body instanceof Expression) {\n return this.body.isEquivalent(e.body);\n }\n if (Array.isArray(this.body) && Array.isArray(e.body)) {\n return areAllEquivalent(this.body, e.body);\n }\n return false;\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitArrowFunctionExpr(this, context);\n }\n clone() {\n // TODO: Should we deep clone statements?\n return new ArrowFunctionExpr(this.params.map((p) => p.clone()), Array.isArray(this.body) ? this.body : this.body.clone(), this.type, this.sourceSpan);\n }\n toDeclStmt(name, modifiers) {\n return new DeclareVarStmt(name, this, INFERRED_TYPE, modifiers, this.sourceSpan);\n }\n}\nclass UnaryOperatorExpr extends Expression {\n operator;\n expr;\n parens;\n constructor(operator, expr, type, sourceSpan, parens = true) {\n super(type || NUMBER_TYPE, sourceSpan);\n this.operator = operator;\n this.expr = expr;\n this.parens = parens;\n }\n isEquivalent(e) {\n return (e instanceof UnaryOperatorExpr &&\n this.operator === e.operator &&\n this.expr.isEquivalent(e.expr));\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitUnaryOperatorExpr(this, context);\n }\n clone() {\n return new UnaryOperatorExpr(this.operator, this.expr.clone(), this.type, this.sourceSpan, this.parens);\n }\n}\nclass BinaryOperatorExpr extends Expression {\n operator;\n rhs;\n parens;\n lhs;\n constructor(operator, lhs, rhs, type, sourceSpan, parens = true) {\n super(type || lhs.type, sourceSpan);\n this.operator = operator;\n this.rhs = rhs;\n this.parens = parens;\n this.lhs = lhs;\n }\n isEquivalent(e) {\n return (e instanceof BinaryOperatorExpr &&\n this.operator === e.operator &&\n this.lhs.isEquivalent(e.lhs) &&\n this.rhs.isEquivalent(e.rhs));\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitBinaryOperatorExpr(this, context);\n }\n clone() {\n return new BinaryOperatorExpr(this.operator, this.lhs.clone(), this.rhs.clone(), this.type, this.sourceSpan, this.parens);\n }\n}\nclass ReadPropExpr extends Expression {\n receiver;\n name;\n constructor(receiver, name, type, sourceSpan) {\n super(type, sourceSpan);\n this.receiver = receiver;\n this.name = name;\n }\n // An alias for name, which allows other logic to handle property reads and keyed reads together.\n get index() {\n return this.name;\n }\n isEquivalent(e) {\n return (e instanceof ReadPropExpr && this.receiver.isEquivalent(e.receiver) && this.name === e.name);\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitReadPropExpr(this, context);\n }\n set(value) {\n return new WritePropExpr(this.receiver, this.name, value, null, this.sourceSpan);\n }\n clone() {\n return new ReadPropExpr(this.receiver.clone(), this.name, this.type, this.sourceSpan);\n }\n}\nclass ReadKeyExpr extends Expression {\n receiver;\n index;\n constructor(receiver, index, type, sourceSpan) {\n super(type, sourceSpan);\n this.receiver = receiver;\n this.index = index;\n }\n isEquivalent(e) {\n return (e instanceof ReadKeyExpr &&\n this.receiver.isEquivalent(e.receiver) &&\n this.index.isEquivalent(e.index));\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitReadKeyExpr(this, context);\n }\n set(value) {\n return new WriteKeyExpr(this.receiver, this.index, value, null, this.sourceSpan);\n }\n clone() {\n return new ReadKeyExpr(this.receiver.clone(), this.index.clone(), this.type, this.sourceSpan);\n }\n}\nclass LiteralArrayExpr extends Expression {\n entries;\n constructor(entries, type, sourceSpan) {\n super(type, sourceSpan);\n this.entries = entries;\n }\n isConstant() {\n return this.entries.every((e) => e.isConstant());\n }\n isEquivalent(e) {\n return e instanceof LiteralArrayExpr && areAllEquivalent(this.entries, e.entries);\n }\n visitExpression(visitor, context) {\n return visitor.visitLiteralArrayExpr(this, context);\n }\n clone() {\n return new LiteralArrayExpr(this.entries.map((e) => e.clone()), this.type, this.sourceSpan);\n }\n}\nclass LiteralMapEntry {\n key;\n value;\n quoted;\n constructor(key, value, quoted) {\n this.key = key;\n this.value = value;\n this.quoted = quoted;\n }\n isEquivalent(e) {\n return this.key === e.key && this.value.isEquivalent(e.value);\n }\n clone() {\n return new LiteralMapEntry(this.key, this.value.clone(), this.quoted);\n }\n}\nclass LiteralMapExpr extends Expression {\n entries;\n valueType = null;\n constructor(entries, type, sourceSpan) {\n super(type, sourceSpan);\n this.entries = entries;\n if (type) {\n this.valueType = type.valueType;\n }\n }\n isEquivalent(e) {\n return e instanceof LiteralMapExpr && areAllEquivalent(this.entries, e.entries);\n }\n isConstant() {\n return this.entries.every((e) => e.value.isConstant());\n }\n visitExpression(visitor, context) {\n return visitor.visitLiteralMapExpr(this, context);\n }\n clone() {\n const entriesClone = this.entries.map((entry) => entry.clone());\n return new LiteralMapExpr(entriesClone, this.type, this.sourceSpan);\n }\n}\nclass CommaExpr extends Expression {\n parts;\n constructor(parts, sourceSpan) {\n super(parts[parts.length - 1].type, sourceSpan);\n this.parts = parts;\n }\n isEquivalent(e) {\n return e instanceof CommaExpr && areAllEquivalent(this.parts, e.parts);\n }\n isConstant() {\n return false;\n }\n visitExpression(visitor, context) {\n return visitor.visitCommaExpr(this, context);\n }\n clone() {\n return new CommaExpr(this.parts.map((p) => p.clone()));\n }\n}\nconst NULL_EXPR = new LiteralExpr(null, null, null);\nconst TYPED_NULL_EXPR = new LiteralExpr(null, INFERRED_TYPE, null);\n//// Statements\nvar StmtModifier;\n(function (StmtModifier) {\n StmtModifier[StmtModifier[\"None\"] = 0] = \"None\";\n StmtModifier[StmtModifier[\"Final\"] = 1] = \"Final\";\n StmtModifier[StmtModifier[\"Private\"] = 2] = \"Private\";\n StmtModifier[StmtModifier[\"Exported\"] = 4] = \"Exported\";\n StmtModifier[StmtModifier[\"Static\"] = 8] = \"Static\";\n})(StmtModifier || (StmtModifier = {}));\nclass LeadingComment {\n text;\n multiline;\n trailingNewline;\n constructor(text, multiline, trailingNewline) {\n this.text = text;\n this.multiline = multiline;\n this.trailingNewline = trailingNewline;\n }\n toString() {\n return this.multiline ? ` ${this.text} ` : this.text;\n }\n}\nclass JSDocComment extends LeadingComment {\n tags;\n constructor(tags) {\n super('', /* multiline */ true, /* trailingNewline */ true);\n this.tags = tags;\n }\n toString() {\n return serializeTags(this.tags);\n }\n}\nclass Statement {\n modifiers;\n sourceSpan;\n leadingComments;\n constructor(modifiers = StmtModifier.None, sourceSpan = null, leadingComments) {\n this.modifiers = modifiers;\n this.sourceSpan = sourceSpan;\n this.leadingComments = leadingComments;\n }\n hasModifier(modifier) {\n return (this.modifiers & modifier) !== 0;\n }\n addLeadingComment(leadingComment) {\n this.leadingComments = this.leadingComments ?? [];\n this.leadingComments.push(leadingComment);\n }\n}\nclass DeclareVarStmt extends Statement {\n name;\n value;\n type;\n constructor(name, value, type, modifiers, sourceSpan, leadingComments) {\n super(modifiers, sourceSpan, leadingComments);\n this.name = name;\n this.value = value;\n this.type = type || (value && value.type) || null;\n }\n isEquivalent(stmt) {\n return (stmt instanceof DeclareVarStmt &&\n this.name === stmt.name &&\n (this.value ? !!stmt.value && this.value.isEquivalent(stmt.value) : !stmt.value));\n }\n visitStatement(visitor, context) {\n return visitor.visitDeclareVarStmt(this, context);\n }\n}\nclass DeclareFunctionStmt extends Statement {\n name;\n params;\n statements;\n type;\n constructor(name, params, statements, type, modifiers, sourceSpan, leadingComments) {\n super(modifiers, sourceSpan, leadingComments);\n this.name = name;\n this.params = params;\n this.statements = statements;\n this.type = type || null;\n }\n isEquivalent(stmt) {\n return (stmt instanceof DeclareFunctionStmt &&\n areAllEquivalent(this.params, stmt.params) &&\n areAllEquivalent(this.statements, stmt.statements));\n }\n visitStatement(visitor, context) {\n return visitor.visitDeclareFunctionStmt(this, context);\n }\n}\nclass ExpressionStatement extends Statement {\n expr;\n constructor(expr, sourceSpan, leadingComments) {\n super(StmtModifier.None, sourceSpan, leadingComments);\n this.expr = expr;\n }\n isEquivalent(stmt) {\n return stmt instanceof ExpressionStatement && this.expr.isEquivalent(stmt.expr);\n }\n visitStatement(visitor, context) {\n return visitor.visitExpressionStmt(this, context);\n }\n}\nclass ReturnStatement extends Statement {\n value;\n constructor(value, sourceSpan = null, leadingComments) {\n super(StmtModifier.None, sourceSpan, leadingComments);\n this.value = value;\n }\n isEquivalent(stmt) {\n return stmt instanceof ReturnStatement && this.value.isEquivalent(stmt.value);\n }\n visitStatement(visitor, context) {\n return visitor.visitReturnStmt(this, context);\n }\n}\nclass IfStmt extends Statement {\n condition;\n trueCase;\n falseCase;\n constructor(condition, trueCase, falseCase = [], sourceSpan, leadingComments) {\n super(StmtModifier.None, sourceSpan, leadingComments);\n this.condition = condition;\n this.trueCase = trueCase;\n this.falseCase = falseCase;\n }\n isEquivalent(stmt) {\n return (stmt instanceof IfStmt &&\n this.condition.isEquivalent(stmt.condition) &&\n areAllEquivalent(this.trueCase, stmt.trueCase) &&\n areAllEquivalent(this.falseCase, stmt.falseCase));\n }\n visitStatement(visitor, context) {\n return visitor.visitIfStmt(this, context);\n }\n}\nclass RecursiveAstVisitor$1 {\n visitType(ast, context) {\n return ast;\n }\n visitExpression(ast, context) {\n if (ast.type) {\n ast.type.visitType(this, context);\n }\n return ast;\n }\n visitBuiltinType(type, context) {\n return this.visitType(type, context);\n }\n visitExpressionType(type, context) {\n type.value.visitExpression(this, context);\n if (type.typeParams !== null) {\n type.typeParams.forEach((param) => this.visitType(param, context));\n }\n return this.visitType(type, context);\n }\n visitArrayType(type, context) {\n return this.visitType(type, context);\n }\n visitMapType(type, context) {\n return this.visitType(type, context);\n }\n visitTransplantedType(type, context) {\n return type;\n }\n visitWrappedNodeExpr(ast, context) {\n return ast;\n }\n visitTypeofExpr(ast, context) {\n return this.visitExpression(ast, context);\n }\n visitReadVarExpr(ast, context) {\n return this.visitExpression(ast, context);\n }\n visitWriteVarExpr(ast, context) {\n ast.value.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitWriteKeyExpr(ast, context) {\n ast.receiver.visitExpression(this, context);\n ast.index.visitExpression(this, context);\n ast.value.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitWritePropExpr(ast, context) {\n ast.receiver.visitExpression(this, context);\n ast.value.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitDynamicImportExpr(ast, context) {\n return this.visitExpression(ast, context);\n }\n visitInvokeFunctionExpr(ast, context) {\n ast.fn.visitExpression(this, context);\n this.visitAllExpressions(ast.args, context);\n return this.visitExpression(ast, context);\n }\n visitTaggedTemplateExpr(ast, context) {\n ast.tag.visitExpression(this, context);\n this.visitAllExpressions(ast.template.expressions, context);\n return this.visitExpression(ast, context);\n }\n visitInstantiateExpr(ast, context) {\n ast.classExpr.visitExpression(this, context);\n this.visitAllExpressions(ast.args, context);\n return this.visitExpression(ast, context);\n }\n visitLiteralExpr(ast, context) {\n return this.visitExpression(ast, context);\n }\n visitLocalizedString(ast, context) {\n return this.visitExpression(ast, context);\n }\n visitExternalExpr(ast, context) {\n if (ast.typeParams) {\n ast.typeParams.forEach((type) => type.visitType(this, context));\n }\n return this.visitExpression(ast, context);\n }\n visitConditionalExpr(ast, context) {\n ast.condition.visitExpression(this, context);\n ast.trueCase.visitExpression(this, context);\n ast.falseCase.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitNotExpr(ast, context) {\n ast.condition.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitFunctionExpr(ast, context) {\n this.visitAllStatements(ast.statements, context);\n return this.visitExpression(ast, context);\n }\n visitArrowFunctionExpr(ast, context) {\n if (Array.isArray(ast.body)) {\n this.visitAllStatements(ast.body, context);\n }\n else {\n // Note: `body.visitExpression`, rather than `this.visitExpressiont(body)`,\n // because the latter won't recurse into the sub-expressions.\n ast.body.visitExpression(this, context);\n }\n return this.visitExpression(ast, context);\n }\n visitUnaryOperatorExpr(ast, context) {\n ast.expr.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitBinaryOperatorExpr(ast, context) {\n ast.lhs.visitExpression(this, context);\n ast.rhs.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitReadPropExpr(ast, context) {\n ast.receiver.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitReadKeyExpr(ast, context) {\n ast.receiver.visitExpression(this, context);\n ast.index.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitLiteralArrayExpr(ast, context) {\n this.visitAllExpressions(ast.entries, context);\n return this.visitExpression(ast, context);\n }\n visitLiteralMapExpr(ast, context) {\n ast.entries.forEach((entry) => entry.value.visitExpression(this, context));\n return this.visitExpression(ast, context);\n }\n visitCommaExpr(ast, context) {\n this.visitAllExpressions(ast.parts, context);\n return this.visitExpression(ast, context);\n }\n visitAllExpressions(exprs, context) {\n exprs.forEach((expr) => expr.visitExpression(this, context));\n }\n visitDeclareVarStmt(stmt, context) {\n if (stmt.value) {\n stmt.value.visitExpression(this, context);\n }\n if (stmt.type) {\n stmt.type.visitType(this, context);\n }\n return stmt;\n }\n visitDeclareFunctionStmt(stmt, context) {\n this.visitAllStatements(stmt.statements, context);\n if (stmt.type) {\n stmt.type.visitType(this, context);\n }\n return stmt;\n }\n visitExpressionStmt(stmt, context) {\n stmt.expr.visitExpression(this, context);\n return stmt;\n }\n visitReturnStmt(stmt, context) {\n stmt.value.visitExpression(this, context);\n return stmt;\n }\n visitIfStmt(stmt, context) {\n stmt.condition.visitExpression(this, context);\n this.visitAllStatements(stmt.trueCase, context);\n this.visitAllStatements(stmt.falseCase, context);\n return stmt;\n }\n visitAllStatements(stmts, context) {\n stmts.forEach((stmt) => stmt.visitStatement(this, context));\n }\n}\nfunction leadingComment(text, multiline = false, trailingNewline = true) {\n return new LeadingComment(text, multiline, trailingNewline);\n}\nfunction jsDocComment(tags = []) {\n return new JSDocComment(tags);\n}\nfunction variable(name, type, sourceSpan) {\n return new ReadVarExpr(name, type, sourceSpan);\n}\nfunction importExpr(id, typeParams = null, sourceSpan) {\n return new ExternalExpr(id, null, typeParams, sourceSpan);\n}\nfunction importType(id, typeParams, typeModifiers) {\n return id != null ? expressionType(importExpr(id, typeParams, null), typeModifiers) : null;\n}\nfunction expressionType(expr, typeModifiers, typeParams) {\n return new ExpressionType(expr, typeModifiers, typeParams);\n}\nfunction transplantedType(type, typeModifiers) {\n return new TransplantedType(type, typeModifiers);\n}\nfunction typeofExpr(expr) {\n return new TypeofExpr(expr);\n}\nfunction literalArr(values, type, sourceSpan) {\n return new LiteralArrayExpr(values, type, sourceSpan);\n}\nfunction literalMap(values, type = null) {\n return new LiteralMapExpr(values.map((e) => new LiteralMapEntry(e.key, e.value, e.quoted)), type, null);\n}\nfunction unary(operator, expr, type, sourceSpan) {\n return new UnaryOperatorExpr(operator, expr, type, sourceSpan);\n}\nfunction not(expr, sourceSpan) {\n return new NotExpr(expr, sourceSpan);\n}\nfunction fn(params, body, type, sourceSpan, name) {\n return new FunctionExpr(params, body, type, sourceSpan, name);\n}\nfunction arrowFn(params, body, type, sourceSpan) {\n return new ArrowFunctionExpr(params, body, type, sourceSpan);\n}\nfunction ifStmt(condition, thenClause, elseClause, sourceSpan, leadingComments) {\n return new IfStmt(condition, thenClause, elseClause, sourceSpan, leadingComments);\n}\nfunction taggedTemplate(tag, template, type, sourceSpan) {\n return new TaggedTemplateExpr(tag, template, type, sourceSpan);\n}\nfunction literal(value, type, sourceSpan) {\n return new LiteralExpr(value, type, sourceSpan);\n}\nfunction localizedString(metaBlock, messageParts, placeholderNames, expressions, sourceSpan) {\n return new LocalizedString(metaBlock, messageParts, placeholderNames, expressions, sourceSpan);\n}\nfunction isNull(exp) {\n return exp instanceof LiteralExpr && exp.value === null;\n}\n/*\n * Serializes a `Tag` into a string.\n * Returns a string like \" @foo {bar} baz\" (note the leading whitespace before `@foo`).\n */\nfunction tagToString(tag) {\n let out = '';\n if (tag.tagName) {\n out += ` @${tag.tagName}`;\n }\n if (tag.text) {\n if (tag.text.match(/\\/\\*|\\*\\//)) {\n throw new Error('JSDoc text cannot contain \"/*\" and \"*/\"');\n }\n out += ' ' + tag.text.replace(/@/g, '\\\\@');\n }\n return out;\n}\nfunction serializeTags(tags) {\n if (tags.length === 0)\n return '';\n if (tags.length === 1 && tags[0].tagName && !tags[0].text) {\n // The JSDOC comment is a single simple tag: e.g `/** @tagname */`.\n return `*${tagToString(tags[0])} `;\n }\n let out = '*\\n';\n for (const tag of tags) {\n out += ' *';\n // If the tagToString is multi-line, insert \" * \" prefixes on lines.\n out += tagToString(tag).replace(/\\n/g, '\\n * ');\n out += '\\n';\n }\n out += ' ';\n return out;\n}\n\nvar output_ast = /*#__PURE__*/Object.freeze({\n __proto__: null,\n get TypeModifier () { return TypeModifier; },\n Type: Type,\n get BuiltinTypeName () { return BuiltinTypeName; },\n BuiltinType: BuiltinType,\n ExpressionType: ExpressionType,\n ArrayType: ArrayType,\n MapType: MapType,\n TransplantedType: TransplantedType,\n DYNAMIC_TYPE: DYNAMIC_TYPE,\n INFERRED_TYPE: INFERRED_TYPE,\n BOOL_TYPE: BOOL_TYPE,\n INT_TYPE: INT_TYPE,\n NUMBER_TYPE: NUMBER_TYPE,\n STRING_TYPE: STRING_TYPE,\n FUNCTION_TYPE: FUNCTION_TYPE,\n NONE_TYPE: NONE_TYPE,\n get UnaryOperator () { return UnaryOperator; },\n get BinaryOperator () { return BinaryOperator; },\n nullSafeIsEquivalent: nullSafeIsEquivalent,\n areAllEquivalent: areAllEquivalent,\n Expression: Expression,\n ReadVarExpr: ReadVarExpr,\n TypeofExpr: TypeofExpr,\n WrappedNodeExpr: WrappedNodeExpr,\n WriteVarExpr: WriteVarExpr,\n WriteKeyExpr: WriteKeyExpr,\n WritePropExpr: WritePropExpr,\n InvokeFunctionExpr: InvokeFunctionExpr,\n TaggedTemplateExpr: TaggedTemplateExpr,\n InstantiateExpr: InstantiateExpr,\n LiteralExpr: LiteralExpr,\n TemplateLiteral: TemplateLiteral,\n TemplateLiteralElement: TemplateLiteralElement,\n LiteralPiece: LiteralPiece,\n PlaceholderPiece: PlaceholderPiece,\n LocalizedString: LocalizedString,\n ExternalExpr: ExternalExpr,\n ExternalReference: ExternalReference,\n ConditionalExpr: ConditionalExpr,\n DynamicImportExpr: DynamicImportExpr,\n NotExpr: NotExpr,\n FnParam: FnParam,\n FunctionExpr: FunctionExpr,\n ArrowFunctionExpr: ArrowFunctionExpr,\n UnaryOperatorExpr: UnaryOperatorExpr,\n BinaryOperatorExpr: BinaryOperatorExpr,\n ReadPropExpr: ReadPropExpr,\n ReadKeyExpr: ReadKeyExpr,\n LiteralArrayExpr: LiteralArrayExpr,\n LiteralMapEntry: LiteralMapEntry,\n LiteralMapExpr: LiteralMapExpr,\n CommaExpr: CommaExpr,\n NULL_EXPR: NULL_EXPR,\n TYPED_NULL_EXPR: TYPED_NULL_EXPR,\n get StmtModifier () { return StmtModifier; },\n LeadingComment: LeadingComment,\n JSDocComment: JSDocComment,\n Statement: Statement,\n DeclareVarStmt: DeclareVarStmt,\n DeclareFunctionStmt: DeclareFunctionStmt,\n ExpressionStatement: ExpressionStatement,\n ReturnStatement: ReturnStatement,\n IfStmt: IfStmt,\n RecursiveAstVisitor: RecursiveAstVisitor$1,\n leadingComment: leadingComment,\n jsDocComment: jsDocComment,\n variable: variable,\n importExpr: importExpr,\n importType: importType,\n expressionType: expressionType,\n transplantedType: transplantedType,\n typeofExpr: typeofExpr,\n literalArr: literalArr,\n literalMap: literalMap,\n unary: unary,\n not: not,\n fn: fn,\n arrowFn: arrowFn,\n ifStmt: ifStmt,\n taggedTemplate: taggedTemplate,\n literal: literal,\n localizedString: localizedString,\n isNull: isNull\n});\n\nconst CONSTANT_PREFIX = '_c';\n/**\n * `ConstantPool` tries to reuse literal factories when two or more literals are identical.\n * We determine whether literals are identical by creating a key out of their AST using the\n * `KeyVisitor`. This constant is used to replace dynamic expressions which can't be safely\n * converted into a key. E.g. given an expression `{foo: bar()}`, since we don't know what\n * the result of `bar` will be, we create a key that looks like `{foo: <unknown>}`. Note\n * that we use a variable, rather than something like `null` in order to avoid collisions.\n */\nconst UNKNOWN_VALUE_KEY = variable('<unknown>');\n/**\n * Context to use when producing a key.\n *\n * This ensures we see the constant not the reference variable when producing\n * a key.\n */\nconst KEY_CONTEXT = {};\n/**\n * Generally all primitive values are excluded from the `ConstantPool`, but there is an exclusion\n * for strings that reach a certain length threshold. This constant defines the length threshold for\n * strings.\n */\nconst POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS = 50;\n/**\n * A node that is a place-holder that allows the node to be replaced when the actual\n * node is known.\n *\n * This allows the constant pool to change an expression from a direct reference to\n * a constant to a shared constant. It returns a fix-up node that is later allowed to\n * change the referenced expression.\n */\nclass FixupExpression extends Expression {\n resolved;\n original;\n shared = false;\n constructor(resolved) {\n super(resolved.type);\n this.resolved = resolved;\n this.original = resolved;\n }\n visitExpression(visitor, context) {\n if (context === KEY_CONTEXT) {\n // When producing a key we want to traverse the constant not the\n // variable used to refer to it.\n return this.original.visitExpression(visitor, context);\n }\n else {\n return this.resolved.visitExpression(visitor, context);\n }\n }\n isEquivalent(e) {\n return e instanceof FixupExpression && this.resolved.isEquivalent(e.resolved);\n }\n isConstant() {\n return true;\n }\n clone() {\n throw new Error(`Not supported.`);\n }\n fixup(expression) {\n this.resolved = expression;\n this.shared = true;\n }\n}\n/**\n * A constant pool allows a code emitter to share constant in an output context.\n *\n * The constant pool also supports sharing access to ivy definitions references.\n */\nclass ConstantPool {\n isClosureCompilerEnabled;\n statements = [];\n literals = new Map();\n literalFactories = new Map();\n sharedConstants = new Map();\n /**\n * Constant pool also tracks claimed names from {@link uniqueName}.\n * This is useful to avoid collisions if variables are intended to be\n * named a certain way- but may conflict. We wouldn't want to always suffix\n * them with unique numbers.\n */\n _claimedNames = new Map();\n nextNameIndex = 0;\n constructor(isClosureCompilerEnabled = false) {\n this.isClosureCompilerEnabled = isClosureCompilerEnabled;\n }\n getConstLiteral(literal, forceShared) {\n if ((literal instanceof LiteralExpr && !isLongStringLiteral(literal)) ||\n literal instanceof FixupExpression) {\n // Do no put simple literals into the constant pool or try to produce a constant for a\n // reference to a constant.\n return literal;\n }\n const key = GenericKeyFn.INSTANCE.keyOf(literal);\n let fixup = this.literals.get(key);\n let newValue = false;\n if (!fixup) {\n fixup = new FixupExpression(literal);\n this.literals.set(key, fixup);\n newValue = true;\n }\n if ((!newValue && !fixup.shared) || (newValue && forceShared)) {\n // Replace the expression with a variable\n const name = this.freshName();\n let definition;\n let usage;\n if (this.isClosureCompilerEnabled && isLongStringLiteral(literal)) {\n // For string literals, Closure will **always** inline the string at\n // **all** usages, duplicating it each time. For large strings, this\n // unnecessarily bloats bundle size. To work around this restriction, we\n // wrap the string in a function, and call that function for each usage.\n // This tricks Closure into using inline logic for functions instead of\n // string literals. Function calls are only inlined if the body is small\n // enough to be worth it. By doing this, very large strings will be\n // shared across multiple usages, rather than duplicating the string at\n // each usage site.\n //\n // const myStr = function() { return \"very very very long string\"; };\n // const usage1 = myStr();\n // const usage2 = myStr();\n definition = variable(name).set(new FunctionExpr([], // Params.\n [\n // Statements.\n new ReturnStatement(literal),\n ]));\n usage = variable(name).callFn([]);\n }\n else {\n // Just declare and use the variable directly, without a function call\n // indirection. This saves a few bytes and avoids an unnecessary call.\n definition = variable(name).set(literal);\n usage = variable(name);\n }\n this.statements.push(definition.toDeclStmt(INFERRED_TYPE, StmtModifier.Final));\n fixup.fixup(usage);\n }\n return fixup;\n }\n getSharedConstant(def, expr) {\n const key = def.keyOf(expr);\n if (!this.sharedConstants.has(key)) {\n const id = this.freshName();\n this.sharedConstants.set(key, variable(id));\n this.statements.push(def.toSharedConstantDeclaration(id, expr));\n }\n return this.sharedConstants.get(key);\n }\n getLiteralFactory(literal) {\n // Create a pure function that builds an array of a mix of constant and variable expressions\n if (literal instanceof LiteralArrayExpr) {\n const argumentsForKey = literal.entries.map((e) => (e.isConstant() ? e : UNKNOWN_VALUE_KEY));\n const key = GenericKeyFn.INSTANCE.keyOf(literalArr(argumentsForKey));\n return this._getLiteralFactory(key, literal.entries, (entries) => literalArr(entries));\n }\n else {\n const expressionForKey = literalMap(literal.entries.map((e) => ({\n key: e.key,\n value: e.value.isConstant() ? e.value : UNKNOWN_VALUE_KEY,\n quoted: e.quoted,\n })));\n const key = GenericKeyFn.INSTANCE.keyOf(expressionForKey);\n return this._getLiteralFactory(key, literal.entries.map((e) => e.value), (entries) => literalMap(entries.map((value, index) => ({\n key: literal.entries[index].key,\n value,\n quoted: literal.entries[index].quoted,\n }))));\n }\n }\n // TODO: useUniqueName(false) is necessary for naming compatibility with\n // TemplateDefinitionBuilder, but should be removed once Template Pipeline is the default.\n getSharedFunctionReference(fn, prefix, useUniqueName = true) {\n const isArrow = fn instanceof ArrowFunctionExpr;\n for (const current of this.statements) {\n // Arrow functions are saved as variables so we check if the\n // value of the variable is the same as the arrow function.\n if (isArrow && current instanceof DeclareVarStmt && current.value?.isEquivalent(fn)) {\n return variable(current.name);\n }\n // Function declarations are saved as function statements\n // so we compare them directly to the passed-in function.\n if (!isArrow &&\n current instanceof DeclareFunctionStmt &&\n fn instanceof FunctionExpr &&\n fn.isEquivalent(current)) {\n return variable(current.name);\n }\n }\n // Otherwise declare the function.\n const name = useUniqueName ? this.uniqueName(prefix) : prefix;\n this.statements.push(fn instanceof FunctionExpr\n ? fn.toDeclStmt(name, StmtModifier.Final)\n : new DeclareVarStmt(name, fn, INFERRED_TYPE, StmtModifier.Final, fn.sourceSpan));\n return variable(name);\n }\n _getLiteralFactory(key, values, resultMap) {\n let literalFactory = this.literalFactories.get(key);\n const literalFactoryArguments = values.filter((e) => !e.isConstant());\n if (!literalFactory) {\n const resultExpressions = values.map((e, index) => e.isConstant() ? this.getConstLiteral(e, true) : variable(`a${index}`));\n const parameters = resultExpressions\n .filter(isVariable)\n .map((e) => new FnParam(e.name, DYNAMIC_TYPE));\n const pureFunctionDeclaration = arrowFn(parameters, resultMap(resultExpressions), INFERRED_TYPE);\n const name = this.freshName();\n this.statements.push(variable(name)\n .set(pureFunctionDeclaration)\n .toDeclStmt(INFERRED_TYPE, StmtModifier.Final));\n literalFactory = variable(name);\n this.literalFactories.set(key, literalFactory);\n }\n return { literalFactory, literalFactoryArguments };\n }\n /**\n * Produce a unique name in the context of this pool.\n *\n * The name might be unique among different prefixes if any of the prefixes end in\n * a digit so the prefix should be a constant string (not based on user input) and\n * must not end in a digit.\n */\n uniqueName(name, alwaysIncludeSuffix = true) {\n const count = this._claimedNames.get(name) ?? 0;\n const result = count === 0 && !alwaysIncludeSuffix ? `${name}` : `${name}${count}`;\n this._claimedNames.set(name, count + 1);\n return result;\n }\n freshName() {\n return this.uniqueName(CONSTANT_PREFIX);\n }\n}\nclass GenericKeyFn {\n static INSTANCE = new GenericKeyFn();\n keyOf(expr) {\n if (expr instanceof LiteralExpr && typeof expr.value === 'string') {\n return `\"${expr.value}\"`;\n }\n else if (expr instanceof LiteralExpr) {\n return String(expr.value);\n }\n else if (expr instanceof LiteralArrayExpr) {\n const entries = [];\n for (const entry of expr.entries) {\n entries.push(this.keyOf(entry));\n }\n return `[${entries.join(',')}]`;\n }\n else if (expr instanceof LiteralMapExpr) {\n const entries = [];\n for (const entry of expr.entries) {\n let key = entry.key;\n if (entry.quoted) {\n key = `\"${key}\"`;\n }\n entries.push(key + ':' + this.keyOf(entry.value));\n }\n return `{${entries.join(',')}}`;\n }\n else if (expr instanceof ExternalExpr) {\n return `import(\"${expr.value.moduleName}\", ${expr.value.name})`;\n }\n else if (expr instanceof ReadVarExpr) {\n return `read(${expr.name})`;\n }\n else if (expr instanceof TypeofExpr) {\n return `typeof(${this.keyOf(expr.expr)})`;\n }\n else {\n throw new Error(`${this.constructor.name} does not handle expressions of type ${expr.constructor.name}`);\n }\n }\n}\nfunction isVariable(e) {\n return e instanceof ReadVarExpr;\n}\nfunction isLongStringLiteral(expr) {\n return (expr instanceof LiteralExpr &&\n typeof expr.value === 'string' &&\n expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS);\n}\n\nconst CORE = '@angular/core';\nclass Identifiers {\n /* Methods */\n static NEW_METHOD = 'factory';\n static TRANSFORM_METHOD = 'transform';\n static PATCH_DEPS = 'patchedDeps';\n static core = { name: null, moduleName: CORE };\n /* Instructions */\n static namespaceHTML = { name: 'ɵɵnamespaceHTML', moduleName: CORE };\n static namespaceMathML = { name: 'ɵɵnamespaceMathML', moduleName: CORE };\n static namespaceSVG = { name: 'ɵɵnamespaceSVG', moduleName: CORE };\n static element = { name: 'ɵɵelement', moduleName: CORE };\n static elementStart = { name: 'ɵɵelementStart', moduleName: CORE };\n static elementEnd = { name: 'ɵɵelementEnd', moduleName: CORE };\n static advance = { name: 'ɵɵadvance', moduleName: CORE };\n static syntheticHostProperty = {\n name: 'ɵɵsyntheticHostProperty',\n moduleName: CORE,\n };\n static syntheticHostListener = {\n name: 'ɵɵsyntheticHostListener',\n moduleName: CORE,\n };\n static attribute = { name: 'ɵɵattribute', moduleName: CORE };\n static attributeInterpolate1 = {\n name: 'ɵɵattributeInterpolate1',\n moduleName: CORE,\n };\n static attributeInterpolate2 = {\n name: 'ɵɵattributeInterpolate2',\n moduleName: CORE,\n };\n static attributeInterpolate3 = {\n name: 'ɵɵattributeInterpolate3',\n moduleName: CORE,\n };\n static attributeInterpolate4 = {\n name: 'ɵɵattributeInterpolate4',\n moduleName: CORE,\n };\n static attributeInterpolate5 = {\n name: 'ɵɵattributeInterpolate5',\n moduleName: CORE,\n };\n static attributeInterpolate6 = {\n name: 'ɵɵattributeInterpolate6',\n moduleName: CORE,\n };\n static attributeInterpolate7 = {\n name: 'ɵɵattributeInterpolate7',\n moduleName: CORE,\n };\n static attributeInterpolate8 = {\n name: 'ɵɵattributeInterpolate8',\n moduleName: CORE,\n };\n static attributeInterpolateV = {\n name: 'ɵɵattributeInterpolateV',\n moduleName: CORE,\n };\n static classProp = { name: 'ɵɵclassProp', moduleName: CORE };\n static elementContainerStart = {\n name: 'ɵɵelementContainerStart',\n moduleName: CORE,\n };\n static elementContainerEnd = {\n name: 'ɵɵelementContainerEnd',\n moduleName: CORE,\n };\n static elementContainer = { name: 'ɵɵelementContainer', moduleName: CORE };\n static styleMap = { name: 'ɵɵstyleMap', moduleName: CORE };\n static styleMapInterpolate1 = {\n name: 'ɵɵstyleMapInterpolate1',\n moduleName: CORE,\n };\n static styleMapInterpolate2 = {\n name: 'ɵɵstyleMapInterpolate2',\n moduleName: CORE,\n };\n static styleMapInterpolate3 = {\n name: 'ɵɵstyleMapInterpolate3',\n moduleName: CORE,\n };\n static styleMapInterpolate4 = {\n name: 'ɵɵstyleMapInterpolate4',\n moduleName: CORE,\n };\n static styleMapInterpolate5 = {\n name: 'ɵɵstyleMapInterpolate5',\n moduleName: CORE,\n };\n static styleMapInterpolate6 = {\n name: 'ɵɵstyleMapInterpolate6',\n moduleName: CORE,\n };\n static styleMapInterpolate7 = {\n name: 'ɵɵstyleMapInterpolate7',\n moduleName: CORE,\n };\n static styleMapInterpolate8 = {\n name: 'ɵɵstyleMapInterpolate8',\n moduleName: CORE,\n };\n static styleMapInterpolateV = {\n name: 'ɵɵstyleMapInterpolateV',\n moduleName: CORE,\n };\n static classMap = { name: 'ɵɵclassMap', moduleName: CORE };\n static classMapInterpolate1 = {\n name: 'ɵɵclassMapInterpolate1',\n moduleName: CORE,\n };\n static classMapInterpolate2 = {\n name: 'ɵɵclassMapInterpolate2',\n moduleName: CORE,\n };\n static classMapInterpolate3 = {\n name: 'ɵɵclassMapInterpolate3',\n moduleName: CORE,\n };\n static classMapInterpolate4 = {\n name: 'ɵɵclassMapInterpolate4',\n moduleName: CORE,\n };\n static classMapInterpolate5 = {\n name: 'ɵɵclassMapInterpolate5',\n moduleName: CORE,\n };\n static classMapInterpolate6 = {\n name: 'ɵɵclassMapInterpolate6',\n moduleName: CORE,\n };\n static classMapInterpolate7 = {\n name: 'ɵɵclassMapInterpolate7',\n moduleName: CORE,\n };\n static classMapInterpolate8 = {\n name: 'ɵɵclassMapInterpolate8',\n moduleName: CORE,\n };\n static classMapInterpolateV = {\n name: 'ɵɵclassMapInterpolateV',\n moduleName: CORE,\n };\n static styleProp = { name: 'ɵɵstyleProp', moduleName: CORE };\n static stylePropInterpolate1 = {\n name: 'ɵɵstylePropInterpolate1',\n moduleName: CORE,\n };\n static stylePropInterpolate2 = {\n name: 'ɵɵstylePropInterpolate2',\n moduleName: CORE,\n };\n static stylePropInterpolate3 = {\n name: 'ɵɵstylePropInterpolate3',\n moduleName: CORE,\n };\n static stylePropInterpolate4 = {\n name: 'ɵɵstylePropInterpolate4',\n moduleName: CORE,\n };\n static stylePropInterpolate5 = {\n name: 'ɵɵstylePropInterpolate5',\n moduleName: CORE,\n };\n static stylePropInterpolate6 = {\n name: 'ɵɵstylePropInterpolate6',\n moduleName: CORE,\n };\n static stylePropInterpolate7 = {\n name: 'ɵɵstylePropInterpolate7',\n moduleName: CORE,\n };\n static stylePropInterpolate8 = {\n name: 'ɵɵstylePropInterpolate8',\n moduleName: CORE,\n };\n static stylePropInterpolateV = {\n name: 'ɵɵstylePropInterpolateV',\n moduleName: CORE,\n };\n static nextContext = { name: 'ɵɵnextContext', moduleName: CORE };\n static resetView = { name: 'ɵɵresetView', moduleName: CORE };\n static templateCreate = { name: 'ɵɵtemplate', moduleName: CORE };\n static defer = { name: 'ɵɵdefer', moduleName: CORE };\n static deferWhen = { name: 'ɵɵdeferWhen', moduleName: CORE };\n static deferOnIdle = { name: 'ɵɵdeferOnIdle', moduleName: CORE };\n static deferOnImmediate = { name: 'ɵɵdeferOnImmediate', moduleName: CORE };\n static deferOnTimer = { name: 'ɵɵdeferOnTimer', moduleName: CORE };\n static deferOnHover = { name: 'ɵɵdeferOnHover', moduleName: CORE };\n static deferOnInteraction = { name: 'ɵɵdeferOnInteraction', moduleName: CORE };\n static deferOnViewport = { name: 'ɵɵdeferOnViewport', moduleName: CORE };\n static deferPrefetchWhen = { name: 'ɵɵdeferPrefetchWhen', moduleName: CORE };\n static deferPrefetchOnIdle = {\n name: 'ɵɵdeferPrefetchOnIdle',\n moduleName: CORE,\n };\n static deferPrefetchOnImmediate = {\n name: 'ɵɵdeferPrefetchOnImmediate',\n moduleName: CORE,\n };\n static deferPrefetchOnTimer = {\n name: 'ɵɵdeferPrefetchOnTimer',\n moduleName: CORE,\n };\n static deferPrefetchOnHover = {\n name: 'ɵɵdeferPrefetchOnHover',\n moduleName: CORE,\n };\n static deferPrefetchOnInteraction = {\n name: 'ɵɵdeferPrefetchOnInteraction',\n moduleName: CORE,\n };\n static deferPrefetchOnViewport = {\n name: 'ɵɵdeferPrefetchOnViewport',\n moduleName: CORE,\n };\n static deferHydrateWhen = { name: 'ɵɵdeferHydrateWhen', moduleName: CORE };\n static deferHydrateNever = { name: 'ɵɵdeferHydrateNever', moduleName: CORE };\n static deferHydrateOnIdle = {\n name: 'ɵɵdeferHydrateOnIdle',\n moduleName: CORE,\n };\n static deferHydrateOnImmediate = {\n name: 'ɵɵdeferHydrateOnImmediate',\n moduleName: CORE,\n };\n static deferHydrateOnTimer = {\n name: 'ɵɵdeferHydrateOnTimer',\n moduleName: CORE,\n };\n static deferHydrateOnHover = {\n name: 'ɵɵdeferHydrateOnHover',\n moduleName: CORE,\n };\n static deferHydrateOnInteraction = {\n name: 'ɵɵdeferHydrateOnInteraction',\n moduleName: CORE,\n };\n static deferHydrateOnViewport = {\n name: 'ɵɵdeferHydrateOnViewport',\n moduleName: CORE,\n };\n static deferEnableTimerScheduling = {\n name: 'ɵɵdeferEnableTimerScheduling',\n moduleName: CORE,\n };\n static conditional = { name: 'ɵɵconditional', moduleName: CORE };\n static repeater = { name: 'ɵɵrepeater', moduleName: CORE };\n static repeaterCreate = { name: 'ɵɵrepeaterCreate', moduleName: CORE };\n static repeaterTrackByIndex = {\n name: 'ɵɵrepeaterTrackByIndex',\n moduleName: CORE,\n };\n static repeaterTrackByIdentity = {\n name: 'ɵɵrepeaterTrackByIdentity',\n moduleName: CORE,\n };\n static componentInstance = { name: 'ɵɵcomponentInstance', moduleName: CORE };\n static text = { name: 'ɵɵtext', moduleName: CORE };\n static enableBindings = { name: 'ɵɵenableBindings', moduleName: CORE };\n static disableBindings = { name: 'ɵɵdisableBindings', moduleName: CORE };\n static getCurrentView = { name: 'ɵɵgetCurrentView', moduleName: CORE };\n static textInterpolate = { name: 'ɵɵtextInterpolate', moduleName: CORE };\n static textInterpolate1 = { name: 'ɵɵtextInterpolate1', moduleName: CORE };\n static textInterpolate2 = { name: 'ɵɵtextInterpolate2', moduleName: CORE };\n static textInterpolate3 = { name: 'ɵɵtextInterpolate3', moduleName: CORE };\n static textInterpolate4 = { name: 'ɵɵtextInterpolate4', moduleName: CORE };\n static textInterpolate5 = { name: 'ɵɵtextInterpolate5', moduleName: CORE };\n static textInterpolate6 = { name: 'ɵɵtextInterpolate6', moduleName: CORE };\n static textInterpolate7 = { name: 'ɵɵtextInterpolate7', moduleName: CORE };\n static textInterpolate8 = { name: 'ɵɵtextInterpolate8', moduleName: CORE };\n static textInterpolateV = { name: 'ɵɵtextInterpolateV', moduleName: CORE };\n static restoreView = { name: 'ɵɵrestoreView', moduleName: CORE };\n static pureFunction0 = { name: 'ɵɵpureFunction0', moduleName: CORE };\n static pureFunction1 = { name: 'ɵɵpureFunction1', moduleName: CORE };\n static pureFunction2 = { name: 'ɵɵpureFunction2', moduleName: CORE };\n static pureFunction3 = { name: 'ɵɵpureFunction3', moduleName: CORE };\n static pureFunction4 = { name: 'ɵɵpureFunction4', moduleName: CORE };\n static pureFunction5 = { name: 'ɵɵpureFunction5', moduleName: CORE };\n static pureFunction6 = { name: 'ɵɵpureFunction6', moduleName: CORE };\n static pureFunction7 = { name: 'ɵɵpureFunction7', moduleName: CORE };\n static pureFunction8 = { name: 'ɵɵpureFunction8', moduleName: CORE };\n static pureFunctionV = { name: 'ɵɵpureFunctionV', moduleName: CORE };\n static pipeBind1 = { name: 'ɵɵpipeBind1', moduleName: CORE };\n static pipeBind2 = { name: 'ɵɵpipeBind2', moduleName: CORE };\n static pipeBind3 = { name: 'ɵɵpipeBind3', moduleName: CORE };\n static pipeBind4 = { name: 'ɵɵpipeBind4', moduleName: CORE };\n static pipeBindV = { name: 'ɵɵpipeBindV', moduleName: CORE };\n static hostProperty = { name: 'ɵɵhostProperty', moduleName: CORE };\n static property = { name: 'ɵɵproperty', moduleName: CORE };\n static propertyInterpolate = {\n name: 'ɵɵpropertyInterpolate',\n moduleName: CORE,\n };\n static propertyInterpolate1 = {\n name: 'ɵɵpropertyInterpolate1',\n moduleName: CORE,\n };\n static propertyInterpolate2 = {\n name: 'ɵɵpropertyInterpolate2',\n moduleName: CORE,\n };\n static propertyInterpolate3 = {\n name: 'ɵɵpropertyInterpolate3',\n moduleName: CORE,\n };\n static propertyInterpolate4 = {\n name: 'ɵɵpropertyInterpolate4',\n moduleName: CORE,\n };\n static propertyInterpolate5 = {\n name: 'ɵɵpropertyInterpolate5',\n moduleName: CORE,\n };\n static propertyInterpolate6 = {\n name: 'ɵɵpropertyInterpolate6',\n moduleName: CORE,\n };\n static propertyInterpolate7 = {\n name: 'ɵɵpropertyInterpolate7',\n moduleName: CORE,\n };\n static propertyInterpolate8 = {\n name: 'ɵɵpropertyInterpolate8',\n moduleName: CORE,\n };\n static propertyInterpolateV = {\n name: 'ɵɵpropertyInterpolateV',\n moduleName: CORE,\n };\n static i18n = { name: 'ɵɵi18n', moduleName: CORE };\n static i18nAttributes = { name: 'ɵɵi18nAttributes', moduleName: CORE };\n static i18nExp = { name: 'ɵɵi18nExp', moduleName: CORE };\n static i18nStart = { name: 'ɵɵi18nStart', moduleName: CORE };\n static i18nEnd = { name: 'ɵɵi18nEnd', moduleName: CORE };\n static i18nApply = { name: 'ɵɵi18nApply', moduleName: CORE };\n static i18nPostprocess = { name: 'ɵɵi18nPostprocess', moduleName: CORE };\n static pipe = { name: 'ɵɵpipe', moduleName: CORE };\n static projection = { name: 'ɵɵprojection', moduleName: CORE };\n static projectionDef = { name: 'ɵɵprojectionDef', moduleName: CORE };\n static reference = { name: 'ɵɵreference', moduleName: CORE };\n static inject = { name: 'ɵɵinject', moduleName: CORE };\n static injectAttribute = { name: 'ɵɵinjectAttribute', moduleName: CORE };\n static directiveInject = { name: 'ɵɵdirectiveInject', moduleName: CORE };\n static invalidFactory = { name: 'ɵɵinvalidFactory', moduleName: CORE };\n static invalidFactoryDep = { name: 'ɵɵinvalidFactoryDep', moduleName: CORE };\n static templateRefExtractor = {\n name: 'ɵɵtemplateRefExtractor',\n moduleName: CORE,\n };\n static forwardRef = { name: 'forwardRef', moduleName: CORE };\n static resolveForwardRef = { name: 'resolveForwardRef', moduleName: CORE };\n static replaceMetadata = { name: 'ɵɵreplaceMetadata', moduleName: CORE };\n static ɵɵdefineInjectable = { name: 'ɵɵdefineInjectable', moduleName: CORE };\n static declareInjectable = { name: 'ɵɵngDeclareInjectable', moduleName: CORE };\n static InjectableDeclaration = {\n name: 'ɵɵInjectableDeclaration',\n moduleName: CORE,\n };\n static resolveWindow = { name: 'ɵɵresolveWindow', moduleName: CORE };\n static resolveDocument = { name: 'ɵɵresolveDocument', moduleName: CORE };\n static resolveBody = { name: 'ɵɵresolveBody', moduleName: CORE };\n static getComponentDepsFactory = {\n name: 'ɵɵgetComponentDepsFactory',\n moduleName: CORE,\n };\n static defineComponent = { name: 'ɵɵdefineComponent', moduleName: CORE };\n static declareComponent = { name: 'ɵɵngDeclareComponent', moduleName: CORE };\n static setComponentScope = { name: 'ɵɵsetComponentScope', moduleName: CORE };\n static ChangeDetectionStrategy = {\n name: 'ChangeDetectionStrategy',\n moduleName: CORE,\n };\n static ViewEncapsulation = {\n name: 'ViewEncapsulation',\n moduleName: CORE,\n };\n static ComponentDeclaration = {\n name: 'ɵɵComponentDeclaration',\n moduleName: CORE,\n };\n static FactoryDeclaration = {\n name: 'ɵɵFactoryDeclaration',\n moduleName: CORE,\n };\n static declareFactory = { name: 'ɵɵngDeclareFactory', moduleName: CORE };\n static FactoryTarget = { name: 'ɵɵFactoryTarget', moduleName: CORE };\n static defineDirective = { name: 'ɵɵdefineDirective', moduleName: CORE };\n static declareDirective = { name: 'ɵɵngDeclareDirective', moduleName: CORE };\n static DirectiveDeclaration = {\n name: 'ɵɵDirectiveDeclaration',\n moduleName: CORE,\n };\n static InjectorDef = { name: 'ɵɵInjectorDef', moduleName: CORE };\n static InjectorDeclaration = {\n name: 'ɵɵInjectorDeclaration',\n moduleName: CORE,\n };\n static defineInjector = { name: 'ɵɵdefineInjector', moduleName: CORE };\n static declareInjector = { name: 'ɵɵngDeclareInjector', moduleName: CORE };\n static NgModuleDeclaration = {\n name: 'ɵɵNgModuleDeclaration',\n moduleName: CORE,\n };\n static ModuleWithProviders = {\n name: 'ModuleWithProviders',\n moduleName: CORE,\n };\n static defineNgModule = { name: 'ɵɵdefineNgModule', moduleName: CORE };\n static declareNgModule = { name: 'ɵɵngDeclareNgModule', moduleName: CORE };\n static setNgModuleScope = { name: 'ɵɵsetNgModuleScope', moduleName: CORE };\n static registerNgModuleType = {\n name: 'ɵɵregisterNgModuleType',\n moduleName: CORE,\n };\n static PipeDeclaration = { name: 'ɵɵPipeDeclaration', moduleName: CORE };\n static definePipe = { name: 'ɵɵdefinePipe', moduleName: CORE };\n static declarePipe = { name: 'ɵɵngDeclarePipe', moduleName: CORE };\n static declareClassMetadata = {\n name: 'ɵɵngDeclareClassMetadata',\n moduleName: CORE,\n };\n static declareClassMetadataAsync = {\n name: 'ɵɵngDeclareClassMetadataAsync',\n moduleName: CORE,\n };\n static setClassMetadata = { name: 'ɵsetClassMetadata', moduleName: CORE };\n static setClassMetadataAsync = {\n name: 'ɵsetClassMetadataAsync',\n moduleName: CORE,\n };\n static setClassDebugInfo = { name: 'ɵsetClassDebugInfo', moduleName: CORE };\n static queryRefresh = { name: 'ɵɵqueryRefresh', moduleName: CORE };\n static viewQuery = { name: 'ɵɵviewQuery', moduleName: CORE };\n static loadQuery = { name: 'ɵɵloadQuery', moduleName: CORE };\n static contentQuery = { name: 'ɵɵcontentQuery', moduleName: CORE };\n // Signal queries\n static viewQuerySignal = { name: 'ɵɵviewQuerySignal', moduleName: CORE };\n static contentQuerySignal = { name: 'ɵɵcontentQuerySignal', moduleName: CORE };\n static queryAdvance = { name: 'ɵɵqueryAdvance', moduleName: CORE };\n // Two-way bindings\n static twoWayProperty = { name: 'ɵɵtwoWayProperty', moduleName: CORE };\n static twoWayBindingSet = { name: 'ɵɵtwoWayBindingSet', moduleName: CORE };\n static twoWayListener = { name: 'ɵɵtwoWayListener', moduleName: CORE };\n static declareLet = { name: 'ɵɵdeclareLet', moduleName: CORE };\n static storeLet = { name: 'ɵɵstoreLet', moduleName: CORE };\n static readContextLet = { name: 'ɵɵreadContextLet', moduleName: CORE };\n static attachSourceLocations = {\n name: 'ɵɵattachSourceLocations',\n moduleName: CORE,\n };\n static NgOnChangesFeature = { name: 'ɵɵNgOnChangesFeature', moduleName: CORE };\n static InheritDefinitionFeature = {\n name: 'ɵɵInheritDefinitionFeature',\n moduleName: CORE,\n };\n static CopyDefinitionFeature = {\n name: 'ɵɵCopyDefinitionFeature',\n moduleName: CORE,\n };\n static ProvidersFeature = { name: 'ɵɵProvidersFeature', moduleName: CORE };\n static HostDirectivesFeature = {\n name: 'ɵɵHostDirectivesFeature',\n moduleName: CORE,\n };\n static InputTransformsFeatureFeature = {\n name: 'ɵɵInputTransformsFeature',\n moduleName: CORE,\n };\n static ExternalStylesFeature = {\n name: 'ɵɵExternalStylesFeature',\n moduleName: CORE,\n };\n static listener = { name: 'ɵɵlistener', moduleName: CORE };\n static getInheritedFactory = {\n name: 'ɵɵgetInheritedFactory',\n moduleName: CORE,\n };\n // sanitization-related functions\n static sanitizeHtml = { name: 'ɵɵsanitizeHtml', moduleName: CORE };\n static sanitizeStyle = { name: 'ɵɵsanitizeStyle', moduleName: CORE };\n static sanitizeResourceUrl = {\n name: 'ɵɵsanitizeResourceUrl',\n moduleName: CORE,\n };\n static sanitizeScript = { name: 'ɵɵsanitizeScript', moduleName: CORE };\n static sanitizeUrl = { name: 'ɵɵsanitizeUrl', moduleName: CORE };\n static sanitizeUrlOrResourceUrl = {\n name: 'ɵɵsanitizeUrlOrResourceUrl',\n moduleName: CORE,\n };\n static trustConstantHtml = { name: 'ɵɵtrustConstantHtml', moduleName: CORE };\n static trustConstantResourceUrl = {\n name: 'ɵɵtrustConstantResourceUrl',\n moduleName: CORE,\n };\n static validateIframeAttribute = {\n name: 'ɵɵvalidateIframeAttribute',\n moduleName: CORE,\n };\n // type-checking\n static InputSignalBrandWriteType = { name: 'ɵINPUT_SIGNAL_BRAND_WRITE_TYPE', moduleName: CORE };\n static UnwrapDirectiveSignalInputs = { name: 'ɵUnwrapDirectiveSignalInputs', moduleName: CORE };\n static unwrapWritableSignal = { name: 'ɵunwrapWritableSignal', moduleName: CORE };\n}\n\nconst DASH_CASE_REGEXP = /-+([a-z0-9])/g;\nfunction dashCaseToCamelCase(input) {\n return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());\n}\nfunction splitAtColon(input, defaultValues) {\n return _splitAt(input, ':', defaultValues);\n}\nfunction splitAtPeriod(input, defaultValues) {\n return _splitAt(input, '.', defaultValues);\n}\nfunction _splitAt(input, character, defaultValues) {\n const characterIndex = input.indexOf(character);\n if (characterIndex == -1)\n return defaultValues;\n return [input.slice(0, characterIndex).trim(), input.slice(characterIndex + 1).trim()];\n}\nfunction noUndefined(val) {\n return val === undefined ? null : val;\n}\nfunction error(msg) {\n throw new Error(`Internal Error: ${msg}`);\n}\n// Escape characters that have a special meaning in Regular Expressions\nfunction escapeRegExp(s) {\n return s.replace(/([.*+?^=!:${}()|[\\]\\/\\\\])/g, '\\\\$1');\n}\nfunction utf8Encode(str) {\n let encoded = [];\n for (let index = 0; index < str.length; index++) {\n let codePoint = str.charCodeAt(index);\n // decode surrogate\n // see https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n if (codePoint >= 0xd800 && codePoint <= 0xdbff && str.length > index + 1) {\n const low = str.charCodeAt(index + 1);\n if (low >= 0xdc00 && low <= 0xdfff) {\n index++;\n codePoint = ((codePoint - 0xd800) << 10) + low - 0xdc00 + 0x10000;\n }\n }\n if (codePoint <= 0x7f) {\n encoded.push(codePoint);\n }\n else if (codePoint <= 0x7ff) {\n encoded.push(((codePoint >> 6) & 0x1f) | 0xc0, (codePoint & 0x3f) | 0x80);\n }\n else if (codePoint <= 0xffff) {\n encoded.push((codePoint >> 12) | 0xe0, ((codePoint >> 6) & 0x3f) | 0x80, (codePoint & 0x3f) | 0x80);\n }\n else if (codePoint <= 0x1fffff) {\n encoded.push(((codePoint >> 18) & 0x07) | 0xf0, ((codePoint >> 12) & 0x3f) | 0x80, ((codePoint >> 6) & 0x3f) | 0x80, (codePoint & 0x3f) | 0x80);\n }\n }\n return encoded;\n}\nfunction stringify(token) {\n if (typeof token === 'string') {\n return token;\n }\n if (Array.isArray(token)) {\n return '[' + token.map(stringify).join(', ') + ']';\n }\n if (token == null) {\n return '' + token;\n }\n if (token.overriddenName) {\n return `${token.overriddenName}`;\n }\n if (token.name) {\n return `${token.name}`;\n }\n if (!token.toString) {\n return 'object';\n }\n // WARNING: do not try to `JSON.stringify(token)` here\n // see https://github.com/angular/angular/issues/23440\n const res = token.toString();\n if (res == null) {\n return '' + res;\n }\n const newLineIndex = res.indexOf('\\n');\n return newLineIndex === -1 ? res : res.substring(0, newLineIndex);\n}\nclass Version {\n full;\n major;\n minor;\n patch;\n constructor(full) {\n this.full = full;\n const splits = full.split('.');\n this.major = splits[0];\n this.minor = splits[1];\n this.patch = splits.slice(2).join('.');\n }\n}\nconst _global = globalThis;\nfunction newArray(size, value) {\n const list = [];\n for (let i = 0; i < size; i++) {\n list.push(value);\n }\n return list;\n}\n/**\n * Partitions a given array into 2 arrays, based on a boolean value returned by the condition\n * function.\n *\n * @param arr Input array that should be partitioned\n * @param conditionFn Condition function that is called for each item in a given array and returns a\n * boolean value.\n */\nfunction partitionArray(arr, conditionFn) {\n const truthy = [];\n const falsy = [];\n for (const item of arr) {\n (conditionFn(item) ? truthy : falsy).push(item);\n }\n return [truthy, falsy];\n}\nconst V1_TO_18 = /^([1-9]|1[0-8])\\./;\nfunction getJitStandaloneDefaultForVersion(version) {\n if (version.startsWith('0.')) {\n // 0.0.0 is always \"latest\", default is true.\n return true;\n }\n if (V1_TO_18.test(version)) {\n // Angular v2 - v18 default is false.\n return false;\n }\n // All other Angular versions (v19+) default to true.\n return true;\n}\n\n// https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit\nconst VERSION$1 = 3;\nconst JS_B64_PREFIX = '# sourceMappingURL=data:application/json;base64,';\nclass SourceMapGenerator {\n file;\n sourcesContent = new Map();\n lines = [];\n lastCol0 = 0;\n hasMappings = false;\n constructor(file = null) {\n this.file = file;\n }\n // The content is `null` when the content is expected to be loaded using the URL\n addSource(url, content = null) {\n if (!this.sourcesContent.has(url)) {\n this.sourcesContent.set(url, content);\n }\n return this;\n }\n addLine() {\n this.lines.push([]);\n this.lastCol0 = 0;\n return this;\n }\n addMapping(col0, sourceUrl, sourceLine0, sourceCol0) {\n if (!this.currentLine) {\n throw new Error(`A line must be added before mappings can be added`);\n }\n if (sourceUrl != null && !this.sourcesContent.has(sourceUrl)) {\n throw new Error(`Unknown source file \"${sourceUrl}\"`);\n }\n if (col0 == null) {\n throw new Error(`The column in the generated code must be provided`);\n }\n if (col0 < this.lastCol0) {\n throw new Error(`Mapping should be added in output order`);\n }\n if (sourceUrl && (sourceLine0 == null || sourceCol0 == null)) {\n throw new Error(`The source location must be provided when a source url is provided`);\n }\n this.hasMappings = true;\n this.lastCol0 = col0;\n this.currentLine.push({ col0, sourceUrl, sourceLine0, sourceCol0 });\n return this;\n }\n /**\n * @internal strip this from published d.ts files due to\n * https://github.com/microsoft/TypeScript/issues/36216\n */\n get currentLine() {\n return this.lines.slice(-1)[0];\n }\n toJSON() {\n if (!this.hasMappings) {\n return null;\n }\n const sourcesIndex = new Map();\n const sources = [];\n const sourcesContent = [];\n Array.from(this.sourcesContent.keys()).forEach((url, i) => {\n sourcesIndex.set(url, i);\n sources.push(url);\n sourcesContent.push(this.sourcesContent.get(url) || null);\n });\n let mappings = '';\n let lastCol0 = 0;\n let lastSourceIndex = 0;\n let lastSourceLine0 = 0;\n let lastSourceCol0 = 0;\n this.lines.forEach((segments) => {\n lastCol0 = 0;\n mappings += segments\n .map((segment) => {\n // zero-based starting column of the line in the generated code\n let segAsStr = toBase64VLQ(segment.col0 - lastCol0);\n lastCol0 = segment.col0;\n if (segment.sourceUrl != null) {\n // zero-based index into the “sources” list\n segAsStr += toBase64VLQ(sourcesIndex.get(segment.sourceUrl) - lastSourceIndex);\n lastSourceIndex = sourcesIndex.get(segment.sourceUrl);\n // the zero-based starting line in the original source\n segAsStr += toBase64VLQ(segment.sourceLine0 - lastSourceLine0);\n lastSourceLine0 = segment.sourceLine0;\n // the zero-based starting column in the original source\n segAsStr += toBase64VLQ(segment.sourceCol0 - lastSourceCol0);\n lastSourceCol0 = segment.sourceCol0;\n }\n return segAsStr;\n })\n .join(',');\n mappings += ';';\n });\n mappings = mappings.slice(0, -1);\n return {\n 'file': this.file || '',\n 'version': VERSION$1,\n 'sourceRoot': '',\n 'sources': sources,\n 'sourcesContent': sourcesContent,\n 'mappings': mappings,\n };\n }\n toJsComment() {\n return this.hasMappings\n ? '//' + JS_B64_PREFIX + toBase64String(JSON.stringify(this, null, 0))\n : '';\n }\n}\nfunction toBase64String(value) {\n let b64 = '';\n const encoded = utf8Encode(value);\n for (let i = 0; i < encoded.length;) {\n const i1 = encoded[i++];\n const i2 = i < encoded.length ? encoded[i++] : null;\n const i3 = i < encoded.length ? encoded[i++] : null;\n b64 += toBase64Digit(i1 >> 2);\n b64 += toBase64Digit(((i1 & 3) << 4) | (i2 === null ? 0 : i2 >> 4));\n b64 += i2 === null ? '=' : toBase64Digit(((i2 & 15) << 2) | (i3 === null ? 0 : i3 >> 6));\n b64 += i2 === null || i3 === null ? '=' : toBase64Digit(i3 & 63);\n }\n return b64;\n}\nfunction toBase64VLQ(value) {\n value = value < 0 ? (-value << 1) + 1 : value << 1;\n let out = '';\n do {\n let digit = value & 31;\n value = value >> 5;\n if (value > 0) {\n digit = digit | 32;\n }\n out += toBase64Digit(digit);\n } while (value > 0);\n return out;\n}\nconst B64_DIGITS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nfunction toBase64Digit(value) {\n if (value < 0 || value >= 64) {\n throw new Error(`Can only encode value in the range [0, 63]`);\n }\n return B64_DIGITS[value];\n}\n\nconst _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\\\|\\n|\\r|\\$/g;\nconst _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;\nconst _INDENT_WITH = ' ';\nclass _EmittedLine {\n indent;\n partsLength = 0;\n parts = [];\n srcSpans = [];\n constructor(indent) {\n this.indent = indent;\n }\n}\nclass EmitterVisitorContext {\n _indent;\n static createRoot() {\n return new EmitterVisitorContext(0);\n }\n _lines;\n constructor(_indent) {\n this._indent = _indent;\n this._lines = [new _EmittedLine(_indent)];\n }\n /**\n * @internal strip this from published d.ts files due to\n * https://github.com/microsoft/TypeScript/issues/36216\n */\n get _currentLine() {\n return this._lines[this._lines.length - 1];\n }\n println(from, lastPart = '') {\n this.print(from || null, lastPart, true);\n }\n lineIsEmpty() {\n return this._currentLine.parts.length === 0;\n }\n lineLength() {\n return this._currentLine.indent * _INDENT_WITH.length + this._currentLine.partsLength;\n }\n print(from, part, newLine = false) {\n if (part.length > 0) {\n this._currentLine.parts.push(part);\n this._currentLine.partsLength += part.length;\n this._currentLine.srcSpans.push((from && from.sourceSpan) || null);\n }\n if (newLine) {\n this._lines.push(new _EmittedLine(this._indent));\n }\n }\n removeEmptyLastLine() {\n if (this.lineIsEmpty()) {\n this._lines.pop();\n }\n }\n incIndent() {\n this._indent++;\n if (this.lineIsEmpty()) {\n this._currentLine.indent = this._indent;\n }\n }\n decIndent() {\n this._indent--;\n if (this.lineIsEmpty()) {\n this._currentLine.indent = this._indent;\n }\n }\n toSource() {\n return this.sourceLines\n .map((l) => (l.parts.length > 0 ? _createIndent(l.indent) + l.parts.join('') : ''))\n .join('\\n');\n }\n toSourceMapGenerator(genFilePath, startsAtLine = 0) {\n const map = new SourceMapGenerator(genFilePath);\n let firstOffsetMapped = false;\n const mapFirstOffsetIfNeeded = () => {\n if (!firstOffsetMapped) {\n // Add a single space so that tools won't try to load the file from disk.\n // Note: We are using virtual urls like `ng:///`, so we have to\n // provide a content here.\n map.addSource(genFilePath, ' ').addMapping(0, genFilePath, 0, 0);\n firstOffsetMapped = true;\n }\n };\n for (let i = 0; i < startsAtLine; i++) {\n map.addLine();\n mapFirstOffsetIfNeeded();\n }\n this.sourceLines.forEach((line, lineIdx) => {\n map.addLine();\n const spans = line.srcSpans;\n const parts = line.parts;\n let col0 = line.indent * _INDENT_WITH.length;\n let spanIdx = 0;\n // skip leading parts without source spans\n while (spanIdx < spans.length && !spans[spanIdx]) {\n col0 += parts[spanIdx].length;\n spanIdx++;\n }\n if (spanIdx < spans.length && lineIdx === 0 && col0 === 0) {\n firstOffsetMapped = true;\n }\n else {\n mapFirstOffsetIfNeeded();\n }\n while (spanIdx < spans.length) {\n const span = spans[spanIdx];\n const source = span.start.file;\n const sourceLine = span.start.line;\n const sourceCol = span.start.col;\n map\n .addSource(source.url, source.content)\n .addMapping(col0, source.url, sourceLine, sourceCol);\n col0 += parts[spanIdx].length;\n spanIdx++;\n // assign parts without span or the same span to the previous segment\n while (spanIdx < spans.length && (span === spans[spanIdx] || !spans[spanIdx])) {\n col0 += parts[spanIdx].length;\n spanIdx++;\n }\n }\n });\n return map;\n }\n spanOf(line, column) {\n const emittedLine = this._lines[line];\n if (emittedLine) {\n let columnsLeft = column - _createIndent(emittedLine.indent).length;\n for (let partIndex = 0; partIndex < emittedLine.parts.length; partIndex++) {\n const part = emittedLine.parts[partIndex];\n if (part.length > columnsLeft) {\n return emittedLine.srcSpans[partIndex];\n }\n columnsLeft -= part.length;\n }\n }\n return null;\n }\n /**\n * @internal strip this from published d.ts files due to\n * https://github.com/microsoft/TypeScript/issues/36216\n */\n get sourceLines() {\n if (this._lines.length && this._lines[this._lines.length - 1].parts.length === 0) {\n return this._lines.slice(0, -1);\n }\n return this._lines;\n }\n}\nclass AbstractEmitterVisitor {\n _escapeDollarInStrings;\n constructor(_escapeDollarInStrings) {\n this._escapeDollarInStrings = _escapeDollarInStrings;\n }\n printLeadingComments(stmt, ctx) {\n if (stmt.leadingComments === undefined) {\n return;\n }\n for (const comment of stmt.leadingComments) {\n if (comment instanceof JSDocComment) {\n ctx.print(stmt, `/*${comment.toString()}*/`, comment.trailingNewline);\n }\n else {\n if (comment.multiline) {\n ctx.print(stmt, `/* ${comment.text} */`, comment.trailingNewline);\n }\n else {\n comment.text.split('\\n').forEach((line) => {\n ctx.println(stmt, `// ${line}`);\n });\n }\n }\n }\n }\n visitExpressionStmt(stmt, ctx) {\n this.printLeadingComments(stmt, ctx);\n stmt.expr.visitExpression(this, ctx);\n ctx.println(stmt, ';');\n return null;\n }\n visitReturnStmt(stmt, ctx) {\n this.printLeadingComments(stmt, ctx);\n ctx.print(stmt, `return `);\n stmt.value.visitExpression(this, ctx);\n ctx.println(stmt, ';');\n return null;\n }\n visitIfStmt(stmt, ctx) {\n this.printLeadingComments(stmt, ctx);\n ctx.print(stmt, `if (`);\n stmt.condition.visitExpression(this, ctx);\n ctx.print(stmt, `) {`);\n const hasElseCase = stmt.falseCase != null && stmt.falseCase.length > 0;\n if (stmt.trueCase.length <= 1 && !hasElseCase) {\n ctx.print(stmt, ` `);\n this.visitAllStatements(stmt.trueCase, ctx);\n ctx.removeEmptyLastLine();\n ctx.print(stmt, ` `);\n }\n else {\n ctx.println();\n ctx.incIndent();\n this.visitAllStatements(stmt.trueCase, ctx);\n ctx.decIndent();\n if (hasElseCase) {\n ctx.println(stmt, `} else {`);\n ctx.incIndent();\n this.visitAllStatements(stmt.falseCase, ctx);\n ctx.decIndent();\n }\n }\n ctx.println(stmt, `}`);\n return null;\n }\n visitWriteVarExpr(expr, ctx) {\n const lineWasEmpty = ctx.lineIsEmpty();\n if (!lineWasEmpty) {\n ctx.print(expr, '(');\n }\n ctx.print(expr, `${expr.name} = `);\n expr.value.visitExpression(this, ctx);\n if (!lineWasEmpty) {\n ctx.print(expr, ')');\n }\n return null;\n }\n visitWriteKeyExpr(expr, ctx) {\n const lineWasEmpty = ctx.lineIsEmpty();\n if (!lineWasEmpty) {\n ctx.print(expr, '(');\n }\n expr.receiver.visitExpression(this, ctx);\n ctx.print(expr, `[`);\n expr.index.visitExpression(this, ctx);\n ctx.print(expr, `] = `);\n expr.value.visitExpression(this, ctx);\n if (!lineWasEmpty) {\n ctx.print(expr, ')');\n }\n return null;\n }\n visitWritePropExpr(expr, ctx) {\n const lineWasEmpty = ctx.lineIsEmpty();\n if (!lineWasEmpty) {\n ctx.print(expr, '(');\n }\n expr.receiver.visitExpression(this, ctx);\n ctx.print(expr, `.${expr.name} = `);\n expr.value.visitExpression(this, ctx);\n if (!lineWasEmpty) {\n ctx.print(expr, ')');\n }\n return null;\n }\n visitInvokeFunctionExpr(expr, ctx) {\n const shouldParenthesize = expr.fn instanceof ArrowFunctionExpr;\n if (shouldParenthesize) {\n ctx.print(expr.fn, '(');\n }\n expr.fn.visitExpression(this, ctx);\n if (shouldParenthesize) {\n ctx.print(expr.fn, ')');\n }\n ctx.print(expr, `(`);\n this.visitAllExpressions(expr.args, ctx, ',');\n ctx.print(expr, `)`);\n return null;\n }\n visitTaggedTemplateExpr(expr, ctx) {\n expr.tag.visitExpression(this, ctx);\n ctx.print(expr, '`' + expr.template.elements[0].rawText);\n for (let i = 1; i < expr.template.elements.length; i++) {\n ctx.print(expr, '${');\n expr.template.expressions[i - 1].visitExpression(this, ctx);\n ctx.print(expr, `}${expr.template.elements[i].rawText}`);\n }\n ctx.print(expr, '`');\n return null;\n }\n visitWrappedNodeExpr(ast, ctx) {\n throw new Error('Abstract emitter cannot visit WrappedNodeExpr.');\n }\n visitTypeofExpr(expr, ctx) {\n ctx.print(expr, 'typeof ');\n expr.expr.visitExpression(this, ctx);\n }\n visitReadVarExpr(ast, ctx) {\n ctx.print(ast, ast.name);\n return null;\n }\n visitInstantiateExpr(ast, ctx) {\n ctx.print(ast, `new `);\n ast.classExpr.visitExpression(this, ctx);\n ctx.print(ast, `(`);\n this.visitAllExpressions(ast.args, ctx, ',');\n ctx.print(ast, `)`);\n return null;\n }\n visitLiteralExpr(ast, ctx) {\n const value = ast.value;\n if (typeof value === 'string') {\n ctx.print(ast, escapeIdentifier(value, this._escapeDollarInStrings));\n }\n else {\n ctx.print(ast, `${value}`);\n }\n return null;\n }\n visitLocalizedString(ast, ctx) {\n const head = ast.serializeI18nHead();\n ctx.print(ast, '$localize `' + head.raw);\n for (let i = 1; i < ast.messageParts.length; i++) {\n ctx.print(ast, '${');\n ast.expressions[i - 1].visitExpression(this, ctx);\n ctx.print(ast, `}${ast.serializeI18nTemplatePart(i).raw}`);\n }\n ctx.print(ast, '`');\n return null;\n }\n visitConditionalExpr(ast, ctx) {\n ctx.print(ast, `(`);\n ast.condition.visitExpression(this, ctx);\n ctx.print(ast, '? ');\n ast.trueCase.visitExpression(this, ctx);\n ctx.print(ast, ': ');\n ast.falseCase.visitExpression(this, ctx);\n ctx.print(ast, `)`);\n return null;\n }\n visitDynamicImportExpr(ast, ctx) {\n ctx.print(ast, `import(${ast.url})`);\n }\n visitNotExpr(ast, ctx) {\n ctx.print(ast, '!');\n ast.condition.visitExpression(this, ctx);\n return null;\n }\n visitUnaryOperatorExpr(ast, ctx) {\n let opStr;\n switch (ast.operator) {\n case UnaryOperator.Plus:\n opStr = '+';\n break;\n case UnaryOperator.Minus:\n opStr = '-';\n break;\n default:\n throw new Error(`Unknown operator ${ast.operator}`);\n }\n if (ast.parens)\n ctx.print(ast, `(`);\n ctx.print(ast, opStr);\n ast.expr.visitExpression(this, ctx);\n if (ast.parens)\n ctx.print(ast, `)`);\n return null;\n }\n visitBinaryOperatorExpr(ast, ctx) {\n let opStr;\n switch (ast.operator) {\n case BinaryOperator.Equals:\n opStr = '==';\n break;\n case BinaryOperator.Identical:\n opStr = '===';\n break;\n case BinaryOperator.NotEquals:\n opStr = '!=';\n break;\n case BinaryOperator.NotIdentical:\n opStr = '!==';\n break;\n case BinaryOperator.And:\n opStr = '&&';\n break;\n case BinaryOperator.BitwiseOr:\n opStr = '|';\n break;\n case BinaryOperator.BitwiseAnd:\n opStr = '&';\n break;\n case BinaryOperator.Or:\n opStr = '||';\n break;\n case BinaryOperator.Plus:\n opStr = '+';\n break;\n case BinaryOperator.Minus:\n opStr = '-';\n break;\n case BinaryOperator.Divide:\n opStr = '/';\n break;\n case BinaryOperator.Multiply:\n opStr = '*';\n break;\n case BinaryOperator.Modulo:\n opStr = '%';\n break;\n case BinaryOperator.Lower:\n opStr = '<';\n break;\n case BinaryOperator.LowerEquals:\n opStr = '<=';\n break;\n case BinaryOperator.Bigger:\n opStr = '>';\n break;\n case BinaryOperator.BiggerEquals:\n opStr = '>=';\n break;\n case BinaryOperator.NullishCoalesce:\n opStr = '??';\n break;\n default:\n throw new Error(`Unknown operator ${ast.operator}`);\n }\n if (ast.parens)\n ctx.print(ast, `(`);\n ast.lhs.visitExpression(this, ctx);\n ctx.print(ast, ` ${opStr} `);\n ast.rhs.visitExpression(this, ctx);\n if (ast.parens)\n ctx.print(ast, `)`);\n return null;\n }\n visitReadPropExpr(ast, ctx) {\n ast.receiver.visitExpression(this, ctx);\n ctx.print(ast, `.`);\n ctx.print(ast, ast.name);\n return null;\n }\n visitReadKeyExpr(ast, ctx) {\n ast.receiver.visitExpression(this, ctx);\n ctx.print(ast, `[`);\n ast.index.visitExpression(this, ctx);\n ctx.print(ast, `]`);\n return null;\n }\n visitLiteralArrayExpr(ast, ctx) {\n ctx.print(ast, `[`);\n this.visitAllExpressions(ast.entries, ctx, ',');\n ctx.print(ast, `]`);\n return null;\n }\n visitLiteralMapExpr(ast, ctx) {\n ctx.print(ast, `{`);\n this.visitAllObjects((entry) => {\n ctx.print(ast, `${escapeIdentifier(entry.key, this._escapeDollarInStrings, entry.quoted)}:`);\n entry.value.visitExpression(this, ctx);\n }, ast.entries, ctx, ',');\n ctx.print(ast, `}`);\n return null;\n }\n visitCommaExpr(ast, ctx) {\n ctx.print(ast, '(');\n this.visitAllExpressions(ast.parts, ctx, ',');\n ctx.print(ast, ')');\n return null;\n }\n visitAllExpressions(expressions, ctx, separator) {\n this.visitAllObjects((expr) => expr.visitExpression(this, ctx), expressions, ctx, separator);\n }\n visitAllObjects(handler, expressions, ctx, separator) {\n let incrementedIndent = false;\n for (let i = 0; i < expressions.length; i++) {\n if (i > 0) {\n if (ctx.lineLength() > 80) {\n ctx.print(null, separator, true);\n if (!incrementedIndent) {\n // continuation are marked with double indent.\n ctx.incIndent();\n ctx.incIndent();\n incrementedIndent = true;\n }\n }\n else {\n ctx.print(null, separator, false);\n }\n }\n handler(expressions[i]);\n }\n if (incrementedIndent) {\n // continuation are marked with double indent.\n ctx.decIndent();\n ctx.decIndent();\n }\n }\n visitAllStatements(statements, ctx) {\n statements.forEach((stmt) => stmt.visitStatement(this, ctx));\n }\n}\nfunction escapeIdentifier(input, escapeDollar, alwaysQuote = true) {\n if (input == null) {\n return null;\n }\n const body = input.replace(_SINGLE_QUOTE_ESCAPE_STRING_RE, (...match) => {\n if (match[0] == '$') {\n return escapeDollar ? '\\\\$' : '$';\n }\n else if (match[0] == '\\n') {\n return '\\\\n';\n }\n else if (match[0] == '\\r') {\n return '\\\\r';\n }\n else {\n return `\\\\${match[0]}`;\n }\n });\n const requiresQuotes = alwaysQuote || !_LEGAL_IDENTIFIER_RE.test(body);\n return requiresQuotes ? `'${body}'` : body;\n}\nfunction _createIndent(count) {\n let res = '';\n for (let i = 0; i < count; i++) {\n res += _INDENT_WITH;\n }\n return res;\n}\n\nfunction typeWithParameters(type, numParams) {\n if (numParams === 0) {\n return expressionType(type);\n }\n const params = [];\n for (let i = 0; i < numParams; i++) {\n params.push(DYNAMIC_TYPE);\n }\n return expressionType(type, undefined, params);\n}\nconst ANIMATE_SYMBOL_PREFIX = '@';\nfunction prepareSyntheticPropertyName(name) {\n return `${ANIMATE_SYMBOL_PREFIX}${name}`;\n}\nfunction prepareSyntheticListenerName(name, phase) {\n return `${ANIMATE_SYMBOL_PREFIX}${name}.${phase}`;\n}\nfunction getSafePropertyAccessString(accessor, name) {\n const escapedName = escapeIdentifier(name, false, false);\n return escapedName !== name ? `${accessor}[${escapedName}]` : `${accessor}.${name}`;\n}\nfunction prepareSyntheticListenerFunctionName(name, phase) {\n return `animation_${name}_${phase}`;\n}\nfunction jitOnlyGuardedExpression(expr) {\n return guardedExpression('ngJitMode', expr);\n}\nfunction devOnlyGuardedExpression(expr) {\n return guardedExpression('ngDevMode', expr);\n}\nfunction guardedExpression(guard, expr) {\n const guardExpr = new ExternalExpr({ name: guard, moduleName: null });\n const guardNotDefined = new BinaryOperatorExpr(BinaryOperator.Identical, new TypeofExpr(guardExpr), literal('undefined'));\n const guardUndefinedOrTrue = new BinaryOperatorExpr(BinaryOperator.Or, guardNotDefined, guardExpr, \n /* type */ undefined, \n /* sourceSpan */ undefined, true);\n return new BinaryOperatorExpr(BinaryOperator.And, guardUndefinedOrTrue, expr);\n}\nfunction wrapReference(value) {\n const wrapped = new WrappedNodeExpr(value);\n return { value: wrapped, type: wrapped };\n}\nfunction refsToArray(refs, shouldForwardDeclare) {\n const values = literalArr(refs.map((ref) => ref.value));\n return shouldForwardDeclare ? arrowFn([], values) : values;\n}\nfunction createMayBeForwardRefExpression(expression, forwardRef) {\n return { expression, forwardRef };\n}\n/**\n * Convert a `MaybeForwardRefExpression` to an `Expression`, possibly wrapping its expression in a\n * `forwardRef()` call.\n *\n * If `MaybeForwardRefExpression.forwardRef` is `ForwardRefHandling.Unwrapped` then the expression\n * was originally wrapped in a `forwardRef()` call to prevent the value from being eagerly evaluated\n * in the code.\n *\n * See `packages/compiler-cli/src/ngtsc/annotations/src/injectable.ts` and\n * `packages/compiler/src/jit_compiler_facade.ts` for more information.\n */\nfunction convertFromMaybeForwardRefExpression({ expression, forwardRef, }) {\n switch (forwardRef) {\n case 0 /* ForwardRefHandling.None */:\n case 1 /* ForwardRefHandling.Wrapped */:\n return expression;\n case 2 /* ForwardRefHandling.Unwrapped */:\n return generateForwardRef(expression);\n }\n}\n/**\n * Generate an expression that has the given `expr` wrapped in the following form:\n *\n * ```ts\n * forwardRef(() => expr)\n * ```\n */\nfunction generateForwardRef(expr) {\n return importExpr(Identifiers.forwardRef).callFn([arrowFn([], expr)]);\n}\n\nvar R3FactoryDelegateType;\n(function (R3FactoryDelegateType) {\n R3FactoryDelegateType[R3FactoryDelegateType[\"Class\"] = 0] = \"Class\";\n R3FactoryDelegateType[R3FactoryDelegateType[\"Function\"] = 1] = \"Function\";\n})(R3FactoryDelegateType || (R3FactoryDelegateType = {}));\nvar FactoryTarget$1;\n(function (FactoryTarget) {\n FactoryTarget[FactoryTarget[\"Directive\"] = 0] = \"Directive\";\n FactoryTarget[FactoryTarget[\"Component\"] = 1] = \"Component\";\n FactoryTarget[FactoryTarget[\"Injectable\"] = 2] = \"Injectable\";\n FactoryTarget[FactoryTarget[\"Pipe\"] = 3] = \"Pipe\";\n FactoryTarget[FactoryTarget[\"NgModule\"] = 4] = \"NgModule\";\n})(FactoryTarget$1 || (FactoryTarget$1 = {}));\n/**\n * Construct a factory function expression for the given `R3FactoryMetadata`.\n */\nfunction compileFactoryFunction(meta) {\n const t = variable('__ngFactoryType__');\n let baseFactoryVar = null;\n // The type to instantiate via constructor invocation. If there is no delegated factory, meaning\n // this type is always created by constructor invocation, then this is the type-to-create\n // parameter provided by the user (t) if specified, or the current type if not. If there is a\n // delegated factory (which is used to create the current type) then this is only the type-to-\n // create parameter (t).\n const typeForCtor = !isDelegatedFactoryMetadata(meta)\n ? new BinaryOperatorExpr(BinaryOperator.Or, t, meta.type.value)\n : t;\n let ctorExpr = null;\n if (meta.deps !== null) {\n // There is a constructor (either explicitly or implicitly defined).\n if (meta.deps !== 'invalid') {\n ctorExpr = new InstantiateExpr(typeForCtor, injectDependencies(meta.deps, meta.target));\n }\n }\n else {\n // There is no constructor, use the base class' factory to construct typeForCtor.\n baseFactoryVar = variable(`ɵ${meta.name}_BaseFactory`);\n ctorExpr = baseFactoryVar.callFn([typeForCtor]);\n }\n const body = [];\n let retExpr = null;\n function makeConditionalFactory(nonCtorExpr) {\n const r = variable('__ngConditionalFactory__');\n body.push(r.set(NULL_EXPR).toDeclStmt());\n const ctorStmt = ctorExpr !== null\n ? r.set(ctorExpr).toStmt()\n : importExpr(Identifiers.invalidFactory).callFn([]).toStmt();\n body.push(ifStmt(t, [ctorStmt], [r.set(nonCtorExpr).toStmt()]));\n return r;\n }\n if (isDelegatedFactoryMetadata(meta)) {\n // This type is created with a delegated factory. If a type parameter is not specified, call\n // the factory instead.\n const delegateArgs = injectDependencies(meta.delegateDeps, meta.target);\n // Either call `new delegate(...)` or `delegate(...)` depending on meta.delegateType.\n const factoryExpr = new (meta.delegateType === R3FactoryDelegateType.Class ? InstantiateExpr : InvokeFunctionExpr)(meta.delegate, delegateArgs);\n retExpr = makeConditionalFactory(factoryExpr);\n }\n else if (isExpressionFactoryMetadata(meta)) {\n // TODO(alxhub): decide whether to lower the value here or in the caller\n retExpr = makeConditionalFactory(meta.expression);\n }\n else {\n retExpr = ctorExpr;\n }\n if (retExpr === null) {\n // The expression cannot be formed so render an `ɵɵinvalidFactory()` call.\n body.push(importExpr(Identifiers.invalidFactory).callFn([]).toStmt());\n }\n else if (baseFactoryVar !== null) {\n // This factory uses a base factory, so call `ɵɵgetInheritedFactory()` to compute it.\n const getInheritedFactoryCall = importExpr(Identifiers.getInheritedFactory).callFn([meta.type.value]);\n // Memoize the base factoryFn: `baseFactory || (baseFactory = ɵɵgetInheritedFactory(...))`\n const baseFactory = new BinaryOperatorExpr(BinaryOperator.Or, baseFactoryVar, baseFactoryVar.set(getInheritedFactoryCall));\n body.push(new ReturnStatement(baseFactory.callFn([typeForCtor])));\n }\n else {\n // This is straightforward factory, just return it.\n body.push(new ReturnStatement(retExpr));\n }\n let factoryFn = fn([new FnParam(t.name, DYNAMIC_TYPE)], body, INFERRED_TYPE, undefined, `${meta.name}_Factory`);\n if (baseFactoryVar !== null) {\n // There is a base factory variable so wrap its declaration along with the factory function into\n // an IIFE.\n factoryFn = arrowFn([], [new DeclareVarStmt(baseFactoryVar.name), new ReturnStatement(factoryFn)])\n .callFn([], /* sourceSpan */ undefined, /* pure */ true);\n }\n return {\n expression: factoryFn,\n statements: [],\n type: createFactoryType(meta),\n };\n}\nfunction createFactoryType(meta) {\n const ctorDepsType = meta.deps !== null && meta.deps !== 'invalid' ? createCtorDepsType(meta.deps) : NONE_TYPE;\n return expressionType(importExpr(Identifiers.FactoryDeclaration, [\n typeWithParameters(meta.type.type, meta.typeArgumentCount),\n ctorDepsType,\n ]));\n}\nfunction injectDependencies(deps, target) {\n return deps.map((dep, index) => compileInjectDependency(dep, target, index));\n}\nfunction compileInjectDependency(dep, target, index) {\n // Interpret the dependency according to its resolved type.\n if (dep.token === null) {\n return importExpr(Identifiers.invalidFactoryDep).callFn([literal(index)]);\n }\n else if (dep.attributeNameType === null) {\n // Build up the injection flags according to the metadata.\n const flags = 0 /* InjectFlags.Default */ |\n (dep.self ? 2 /* InjectFlags.Self */ : 0) |\n (dep.skipSelf ? 4 /* InjectFlags.SkipSelf */ : 0) |\n (dep.host ? 1 /* InjectFlags.Host */ : 0) |\n (dep.optional ? 8 /* InjectFlags.Optional */ : 0) |\n (target === FactoryTarget$1.Pipe ? 16 /* InjectFlags.ForPipe */ : 0);\n // If this dependency is optional or otherwise has non-default flags, then additional\n // parameters describing how to inject the dependency must be passed to the inject function\n // that's being used.\n let flagsParam = flags !== 0 /* InjectFlags.Default */ || dep.optional ? literal(flags) : null;\n // Build up the arguments to the injectFn call.\n const injectArgs = [dep.token];\n if (flagsParam) {\n injectArgs.push(flagsParam);\n }\n const injectFn = getInjectFn(target);\n return importExpr(injectFn).callFn(injectArgs);\n }\n else {\n // The `dep.attributeTypeName` value is defined, which indicates that this is an `@Attribute()`\n // type dependency. For the generated JS we still want to use the `dep.token` value in case the\n // name given for the attribute is not a string literal. For example given `@Attribute(foo())`,\n // we want to generate `ɵɵinjectAttribute(foo())`.\n //\n // The `dep.attributeTypeName` is only actually used (in `createCtorDepType()`) to generate\n // typings.\n return importExpr(Identifiers.injectAttribute).callFn([dep.token]);\n }\n}\nfunction createCtorDepsType(deps) {\n let hasTypes = false;\n const attributeTypes = deps.map((dep) => {\n const type = createCtorDepType(dep);\n if (type !== null) {\n hasTypes = true;\n return type;\n }\n else {\n return literal(null);\n }\n });\n if (hasTypes) {\n return expressionType(literalArr(attributeTypes));\n }\n else {\n return NONE_TYPE;\n }\n}\nfunction createCtorDepType(dep) {\n const entries = [];\n if (dep.attributeNameType !== null) {\n entries.push({ key: 'attribute', value: dep.attributeNameType, quoted: false });\n }\n if (dep.optional) {\n entries.push({ key: 'optional', value: literal(true), quoted: false });\n }\n if (dep.host) {\n entries.push({ key: 'host', value: literal(true), quoted: false });\n }\n if (dep.self) {\n entries.push({ key: 'self', value: literal(true), quoted: false });\n }\n if (dep.skipSelf) {\n entries.push({ key: 'skipSelf', value: literal(true), quoted: false });\n }\n return entries.length > 0 ? literalMap(entries) : null;\n}\nfunction isDelegatedFactoryMetadata(meta) {\n return meta.delegateType !== undefined;\n}\nfunction isExpressionFactoryMetadata(meta) {\n return meta.expression !== undefined;\n}\nfunction getInjectFn(target) {\n switch (target) {\n case FactoryTarget$1.Component:\n case FactoryTarget$1.Directive:\n case FactoryTarget$1.Pipe:\n return Identifiers.directiveInject;\n case FactoryTarget$1.NgModule:\n case FactoryTarget$1.Injectable:\n default:\n return Identifiers.inject;\n }\n}\n\nclass ParserError {\n input;\n errLocation;\n ctxLocation;\n message;\n constructor(message, input, errLocation, ctxLocation) {\n this.input = input;\n this.errLocation = errLocation;\n this.ctxLocation = ctxLocation;\n this.message = `Parser Error: ${message} ${errLocation} [${input}] in ${ctxLocation}`;\n }\n}\nclass ParseSpan {\n start;\n end;\n constructor(start, end) {\n this.start = start;\n this.end = end;\n }\n toAbsolute(absoluteOffset) {\n return new AbsoluteSourceSpan(absoluteOffset + this.start, absoluteOffset + this.end);\n }\n}\nclass AST {\n span;\n sourceSpan;\n constructor(span, \n /**\n * Absolute location of the expression AST in a source code file.\n */\n sourceSpan) {\n this.span = span;\n this.sourceSpan = sourceSpan;\n }\n toString() {\n return 'AST';\n }\n}\nclass ASTWithName extends AST {\n nameSpan;\n constructor(span, sourceSpan, nameSpan) {\n super(span, sourceSpan);\n this.nameSpan = nameSpan;\n }\n}\nclass EmptyExpr$1 extends AST {\n visit(visitor, context = null) {\n // do nothing\n }\n}\nclass ImplicitReceiver extends AST {\n visit(visitor, context = null) {\n return visitor.visitImplicitReceiver(this, context);\n }\n}\n/**\n * Receiver when something is accessed through `this` (e.g. `this.foo`). Note that this class\n * inherits from `ImplicitReceiver`, because accessing something through `this` is treated the\n * same as accessing it implicitly inside of an Angular template (e.g. `[attr.title]=\"this.title\"`\n * is the same as `[attr.title]=\"title\"`.). Inheriting allows for the `this` accesses to be treated\n * the same as implicit ones, except for a couple of exceptions like `$event` and `$any`.\n * TODO: we should find a way for this class not to extend from `ImplicitReceiver` in the future.\n */\nclass ThisReceiver extends ImplicitReceiver {\n visit(visitor, context = null) {\n return visitor.visitThisReceiver?.(this, context);\n }\n}\n/**\n * Multiple expressions separated by a semicolon.\n */\nclass Chain extends AST {\n expressions;\n constructor(span, sourceSpan, expressions) {\n super(span, sourceSpan);\n this.expressions = expressions;\n }\n visit(visitor, context = null) {\n return visitor.visitChain(this, context);\n }\n}\nclass Conditional extends AST {\n condition;\n trueExp;\n falseExp;\n constructor(span, sourceSpan, condition, trueExp, falseExp) {\n super(span, sourceSpan);\n this.condition = condition;\n this.trueExp = trueExp;\n this.falseExp = falseExp;\n }\n visit(visitor, context = null) {\n return visitor.visitConditional(this, context);\n }\n}\nclass PropertyRead extends ASTWithName {\n receiver;\n name;\n constructor(span, sourceSpan, nameSpan, receiver, name) {\n super(span, sourceSpan, nameSpan);\n this.receiver = receiver;\n this.name = name;\n }\n visit(visitor, context = null) {\n return visitor.visitPropertyRead(this, context);\n }\n}\nclass PropertyWrite extends ASTWithName {\n receiver;\n name;\n value;\n constructor(span, sourceSpan, nameSpan, receiver, name, value) {\n super(span, sourceSpan, nameSpan);\n this.receiver = receiver;\n this.name = name;\n this.value = value;\n }\n visit(visitor, context = null) {\n return visitor.visitPropertyWrite(this, context);\n }\n}\nclass SafePropertyRead extends ASTWithName {\n receiver;\n name;\n constructor(span, sourceSpan, nameSpan, receiver, name) {\n super(span, sourceSpan, nameSpan);\n this.receiver = receiver;\n this.name = name;\n }\n visit(visitor, context = null) {\n return visitor.visitSafePropertyRead(this, context);\n }\n}\nclass KeyedRead extends AST {\n receiver;\n key;\n constructor(span, sourceSpan, receiver, key) {\n super(span, sourceSpan);\n this.receiver = receiver;\n this.key = key;\n }\n visit(visitor, context = null) {\n return visitor.visitKeyedRead(this, context);\n }\n}\nclass SafeKeyedRead extends AST {\n receiver;\n key;\n constructor(span, sourceSpan, receiver, key) {\n super(span, sourceSpan);\n this.receiver = receiver;\n this.key = key;\n }\n visit(visitor, context = null) {\n return visitor.visitSafeKeyedRead(this, context);\n }\n}\nclass KeyedWrite extends AST {\n receiver;\n key;\n value;\n constructor(span, sourceSpan, receiver, key, value) {\n super(span, sourceSpan);\n this.receiver = receiver;\n this.key = key;\n this.value = value;\n }\n visit(visitor, context = null) {\n return visitor.visitKeyedWrite(this, context);\n }\n}\nclass BindingPipe extends ASTWithName {\n exp;\n name;\n args;\n constructor(span, sourceSpan, exp, name, args, nameSpan) {\n super(span, sourceSpan, nameSpan);\n this.exp = exp;\n this.name = name;\n this.args = args;\n }\n visit(visitor, context = null) {\n return visitor.visitPipe(this, context);\n }\n}\nclass LiteralPrimitive extends AST {\n value;\n constructor(span, sourceSpan, value) {\n super(span, sourceSpan);\n this.value = value;\n }\n visit(visitor, context = null) {\n return visitor.visitLiteralPrimitive(this, context);\n }\n}\nclass LiteralArray extends AST {\n expressions;\n constructor(span, sourceSpan, expressions) {\n super(span, sourceSpan);\n this.expressions = expressions;\n }\n visit(visitor, context = null) {\n return visitor.visitLiteralArray(this, context);\n }\n}\nclass LiteralMap extends AST {\n keys;\n values;\n constructor(span, sourceSpan, keys, values) {\n super(span, sourceSpan);\n this.keys = keys;\n this.values = values;\n }\n visit(visitor, context = null) {\n return visitor.visitLiteralMap(this, context);\n }\n}\nclass Interpolation$1 extends AST {\n strings;\n expressions;\n constructor(span, sourceSpan, strings, expressions) {\n super(span, sourceSpan);\n this.strings = strings;\n this.expressions = expressions;\n }\n visit(visitor, context = null) {\n return visitor.visitInterpolation(this, context);\n }\n}\nclass Binary extends AST {\n operation;\n left;\n right;\n constructor(span, sourceSpan, operation, left, right) {\n super(span, sourceSpan);\n this.operation = operation;\n this.left = left;\n this.right = right;\n }\n visit(visitor, context = null) {\n return visitor.visitBinary(this, context);\n }\n}\n/**\n * For backwards compatibility reasons, `Unary` inherits from `Binary` and mimics the binary AST\n * node that was originally used. This inheritance relation can be deleted in some future major,\n * after consumers have been given a chance to fully support Unary.\n */\nclass Unary extends Binary {\n operator;\n expr;\n // Redeclare the properties that are inherited from `Binary` as `never`, as consumers should not\n // depend on these fields when operating on `Unary`.\n left = null;\n right = null;\n operation = null;\n /**\n * Creates a unary minus expression \"-x\", represented as `Binary` using \"0 - x\".\n */\n static createMinus(span, sourceSpan, expr) {\n return new Unary(span, sourceSpan, '-', expr, '-', new LiteralPrimitive(span, sourceSpan, 0), expr);\n }\n /**\n * Creates a unary plus expression \"+x\", represented as `Binary` using \"x - 0\".\n */\n static createPlus(span, sourceSpan, expr) {\n return new Unary(span, sourceSpan, '+', expr, '-', expr, new LiteralPrimitive(span, sourceSpan, 0));\n }\n /**\n * During the deprecation period this constructor is private, to avoid consumers from creating\n * a `Unary` with the fallback properties for `Binary`.\n */\n constructor(span, sourceSpan, operator, expr, binaryOp, binaryLeft, binaryRight) {\n super(span, sourceSpan, binaryOp, binaryLeft, binaryRight);\n this.operator = operator;\n this.expr = expr;\n }\n visit(visitor, context = null) {\n if (visitor.visitUnary !== undefined) {\n return visitor.visitUnary(this, context);\n }\n return visitor.visitBinary(this, context);\n }\n}\nclass PrefixNot extends AST {\n expression;\n constructor(span, sourceSpan, expression) {\n super(span, sourceSpan);\n this.expression = expression;\n }\n visit(visitor, context = null) {\n return visitor.visitPrefixNot(this, context);\n }\n}\nclass TypeofExpression extends AST {\n expression;\n constructor(span, sourceSpan, expression) {\n super(span, sourceSpan);\n this.expression = expression;\n }\n visit(visitor, context = null) {\n return visitor.visitTypeofExpression(this, context);\n }\n}\nclass NonNullAssert extends AST {\n expression;\n constructor(span, sourceSpan, expression) {\n super(span, sourceSpan);\n this.expression = expression;\n }\n visit(visitor, context = null) {\n return visitor.visitNonNullAssert(this, context);\n }\n}\nclass Call extends AST {\n receiver;\n args;\n argumentSpan;\n constructor(span, sourceSpan, receiver, args, argumentSpan) {\n super(span, sourceSpan);\n this.receiver = receiver;\n this.args = args;\n this.argumentSpan = argumentSpan;\n }\n visit(visitor, context = null) {\n return visitor.visitCall(this, context);\n }\n}\nclass SafeCall extends AST {\n receiver;\n args;\n argumentSpan;\n constructor(span, sourceSpan, receiver, args, argumentSpan) {\n super(span, sourceSpan);\n this.receiver = receiver;\n this.args = args;\n this.argumentSpan = argumentSpan;\n }\n visit(visitor, context = null) {\n return visitor.visitSafeCall(this, context);\n }\n}\n/**\n * Records the absolute position of a text span in a source file, where `start` and `end` are the\n * starting and ending byte offsets, respectively, of the text span in a source file.\n */\nclass AbsoluteSourceSpan {\n start;\n end;\n constructor(start, end) {\n this.start = start;\n this.end = end;\n }\n}\nclass ASTWithSource extends AST {\n ast;\n source;\n location;\n errors;\n constructor(ast, source, location, absoluteOffset, errors) {\n super(new ParseSpan(0, source === null ? 0 : source.length), new AbsoluteSourceSpan(absoluteOffset, source === null ? absoluteOffset : absoluteOffset + source.length));\n this.ast = ast;\n this.source = source;\n this.location = location;\n this.errors = errors;\n }\n visit(visitor, context = null) {\n if (visitor.visitASTWithSource) {\n return visitor.visitASTWithSource(this, context);\n }\n return this.ast.visit(visitor, context);\n }\n toString() {\n return `${this.source} in ${this.location}`;\n }\n}\nclass VariableBinding {\n sourceSpan;\n key;\n value;\n /**\n * @param sourceSpan entire span of the binding.\n * @param key name of the LHS along with its span.\n * @param value optional value for the RHS along with its span.\n */\n constructor(sourceSpan, key, value) {\n this.sourceSpan = sourceSpan;\n this.key = key;\n this.value = value;\n }\n}\nclass ExpressionBinding {\n sourceSpan;\n key;\n value;\n /**\n * @param sourceSpan entire span of the binding.\n * @param key binding name, like ngForOf, ngForTrackBy, ngIf, along with its\n * span. Note that the length of the span may not be the same as\n * `key.source.length`. For example,\n * 1. key.source = ngFor, key.span is for \"ngFor\"\n * 2. key.source = ngForOf, key.span is for \"of\"\n * 3. key.source = ngForTrackBy, key.span is for \"trackBy\"\n * @param value optional expression for the RHS.\n */\n constructor(sourceSpan, key, value) {\n this.sourceSpan = sourceSpan;\n this.key = key;\n this.value = value;\n }\n}\nclass RecursiveAstVisitor {\n visit(ast, context) {\n // The default implementation just visits every node.\n // Classes that extend RecursiveAstVisitor should override this function\n // to selectively visit the specified node.\n ast.visit(this, context);\n }\n visitUnary(ast, context) {\n this.visit(ast.expr, context);\n }\n visitBinary(ast, context) {\n this.visit(ast.left, context);\n this.visit(ast.right, context);\n }\n visitChain(ast, context) {\n this.visitAll(ast.expressions, context);\n }\n visitConditional(ast, context) {\n this.visit(ast.condition, context);\n this.visit(ast.trueExp, context);\n this.visit(ast.falseExp, context);\n }\n visitPipe(ast, context) {\n this.visit(ast.exp, context);\n this.visitAll(ast.args, context);\n }\n visitImplicitReceiver(ast, context) { }\n visitThisReceiver(ast, context) { }\n visitInterpolation(ast, context) {\n this.visitAll(ast.expressions, context);\n }\n visitKeyedRead(ast, context) {\n this.visit(ast.receiver, context);\n this.visit(ast.key, context);\n }\n visitKeyedWrite(ast, context) {\n this.visit(ast.receiver, context);\n this.visit(ast.key, context);\n this.visit(ast.value, context);\n }\n visitLiteralArray(ast, context) {\n this.visitAll(ast.expressions, context);\n }\n visitLiteralMap(ast, context) {\n this.visitAll(ast.values, context);\n }\n visitLiteralPrimitive(ast, context) { }\n visitPrefixNot(ast, context) {\n this.visit(ast.expression, context);\n }\n visitTypeofExpression(ast, context) {\n this.visit(ast.expression, context);\n }\n visitNonNullAssert(ast, context) {\n this.visit(ast.expression, context);\n }\n visitPropertyRead(ast, context) {\n this.visit(ast.receiver, context);\n }\n visitPropertyWrite(ast, context) {\n this.visit(ast.receiver, context);\n this.visit(ast.value, context);\n }\n visitSafePropertyRead(ast, context) {\n this.visit(ast.receiver, context);\n }\n visitSafeKeyedRead(ast, context) {\n this.visit(ast.receiver, context);\n this.visit(ast.key, context);\n }\n visitCall(ast, context) {\n this.visit(ast.receiver, context);\n this.visitAll(ast.args, context);\n }\n visitSafeCall(ast, context) {\n this.visit(ast.receiver, context);\n this.visitAll(ast.args, context);\n }\n // This is not part of the AstVisitor interface, just a helper method\n visitAll(asts, context) {\n for (const ast of asts) {\n this.visit(ast, context);\n }\n }\n}\n// Bindings\nclass ParsedProperty {\n name;\n expression;\n type;\n sourceSpan;\n keySpan;\n valueSpan;\n isLiteral;\n isAnimation;\n constructor(name, expression, type, sourceSpan, keySpan, valueSpan) {\n this.name = name;\n this.expression = expression;\n this.type = type;\n this.sourceSpan = sourceSpan;\n this.keySpan = keySpan;\n this.valueSpan = valueSpan;\n this.isLiteral = this.type === ParsedPropertyType.LITERAL_ATTR;\n this.isAnimation = this.type === ParsedPropertyType.ANIMATION;\n }\n}\nvar ParsedPropertyType;\n(function (ParsedPropertyType) {\n ParsedPropertyType[ParsedPropertyType[\"DEFAULT\"] = 0] = \"DEFAULT\";\n ParsedPropertyType[ParsedPropertyType[\"LITERAL_ATTR\"] = 1] = \"LITERAL_ATTR\";\n ParsedPropertyType[ParsedPropertyType[\"ANIMATION\"] = 2] = \"ANIMATION\";\n ParsedPropertyType[ParsedPropertyType[\"TWO_WAY\"] = 3] = \"TWO_WAY\";\n})(ParsedPropertyType || (ParsedPropertyType = {}));\nvar ParsedEventType;\n(function (ParsedEventType) {\n // DOM or Directive event\n ParsedEventType[ParsedEventType[\"Regular\"] = 0] = \"Regular\";\n // Animation specific event\n ParsedEventType[ParsedEventType[\"Animation\"] = 1] = \"Animation\";\n // Event side of a two-way binding (e.g. `[(property)]=\"expression\"`).\n ParsedEventType[ParsedEventType[\"TwoWay\"] = 2] = \"TwoWay\";\n})(ParsedEventType || (ParsedEventType = {}));\nclass ParsedEvent {\n name;\n targetOrPhase;\n type;\n handler;\n sourceSpan;\n handlerSpan;\n keySpan;\n constructor(name, targetOrPhase, type, handler, sourceSpan, handlerSpan, keySpan) {\n this.name = name;\n this.targetOrPhase = targetOrPhase;\n this.type = type;\n this.handler = handler;\n this.sourceSpan = sourceSpan;\n this.handlerSpan = handlerSpan;\n this.keySpan = keySpan;\n }\n}\n/**\n * ParsedVariable represents a variable declaration in a microsyntax expression.\n */\nclass ParsedVariable {\n name;\n value;\n sourceSpan;\n keySpan;\n valueSpan;\n constructor(name, value, sourceSpan, keySpan, valueSpan) {\n this.name = name;\n this.value = value;\n this.sourceSpan = sourceSpan;\n this.keySpan = keySpan;\n this.valueSpan = valueSpan;\n }\n}\nvar BindingType;\n(function (BindingType) {\n // A regular binding to a property (e.g. `[property]=\"expression\"`).\n BindingType[BindingType[\"Property\"] = 0] = \"Property\";\n // A binding to an element attribute (e.g. `[attr.name]=\"expression\"`).\n BindingType[BindingType[\"Attribute\"] = 1] = \"Attribute\";\n // A binding to a CSS class (e.g. `[class.name]=\"condition\"`).\n BindingType[BindingType[\"Class\"] = 2] = \"Class\";\n // A binding to a style rule (e.g. `[style.rule]=\"expression\"`).\n BindingType[BindingType[\"Style\"] = 3] = \"Style\";\n // A binding to an animation reference (e.g. `[animate.key]=\"expression\"`).\n BindingType[BindingType[\"Animation\"] = 4] = \"Animation\";\n // Property side of a two-way binding (e.g. `[(property)]=\"expression\"`).\n BindingType[BindingType[\"TwoWay\"] = 5] = \"TwoWay\";\n})(BindingType || (BindingType = {}));\nclass BoundElementProperty {\n name;\n type;\n securityContext;\n value;\n unit;\n sourceSpan;\n keySpan;\n valueSpan;\n constructor(name, type, securityContext, value, unit, sourceSpan, keySpan, valueSpan) {\n this.name = name;\n this.type = type;\n this.securityContext = securityContext;\n this.value = value;\n this.unit = unit;\n this.sourceSpan = sourceSpan;\n this.keySpan = keySpan;\n this.valueSpan = valueSpan;\n }\n}\n\nvar TagContentType;\n(function (TagContentType) {\n TagContentType[TagContentType[\"RAW_TEXT\"] = 0] = \"RAW_TEXT\";\n TagContentType[TagContentType[\"ESCAPABLE_RAW_TEXT\"] = 1] = \"ESCAPABLE_RAW_TEXT\";\n TagContentType[TagContentType[\"PARSABLE_DATA\"] = 2] = \"PARSABLE_DATA\";\n})(TagContentType || (TagContentType = {}));\nfunction splitNsName(elementName, fatal = true) {\n if (elementName[0] != ':') {\n return [null, elementName];\n }\n const colonIndex = elementName.indexOf(':', 1);\n if (colonIndex === -1) {\n if (fatal) {\n throw new Error(`Unsupported format \"${elementName}\" expecting \":namespace:name\"`);\n }\n else {\n return [null, elementName];\n }\n }\n return [elementName.slice(1, colonIndex), elementName.slice(colonIndex + 1)];\n}\n// `<ng-container>` tags work the same regardless the namespace\nfunction isNgContainer(tagName) {\n return splitNsName(tagName)[1] === 'ng-container';\n}\n// `<ng-content>` tags work the same regardless the namespace\nfunction isNgContent(tagName) {\n return splitNsName(tagName)[1] === 'ng-content';\n}\n// `<ng-template>` tags work the same regardless the namespace\nfunction isNgTemplate(tagName) {\n return splitNsName(tagName)[1] === 'ng-template';\n}\nfunction getNsPrefix(fullName) {\n return fullName === null ? null : splitNsName(fullName)[0];\n}\nfunction mergeNsAndName(prefix, localName) {\n return prefix ? `:${prefix}:${localName}` : localName;\n}\n\n/**\n * This is an R3 `Node`-like wrapper for a raw `html.Comment` node. We do not currently\n * require the implementation of a visitor for Comments as they are only collected at\n * the top-level of the R3 AST, and only if `Render3ParseOptions['collectCommentNodes']`\n * is true.\n */\nclass Comment$1 {\n value;\n sourceSpan;\n constructor(value, sourceSpan) {\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n visit(_visitor) {\n throw new Error('visit() not implemented for Comment');\n }\n}\nclass Text$3 {\n value;\n sourceSpan;\n constructor(value, sourceSpan) {\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n visit(visitor) {\n return visitor.visitText(this);\n }\n}\nclass BoundText {\n value;\n sourceSpan;\n i18n;\n constructor(value, sourceSpan, i18n) {\n this.value = value;\n this.sourceSpan = sourceSpan;\n this.i18n = i18n;\n }\n visit(visitor) {\n return visitor.visitBoundText(this);\n }\n}\n/**\n * Represents a text attribute in the template.\n *\n * `valueSpan` may not be present in cases where there is no value `<div a></div>`.\n * `keySpan` may also not be present for synthetic attributes from ICU expansions.\n */\nclass TextAttribute {\n name;\n value;\n sourceSpan;\n keySpan;\n valueSpan;\n i18n;\n constructor(name, value, sourceSpan, keySpan, valueSpan, i18n) {\n this.name = name;\n this.value = value;\n this.sourceSpan = sourceSpan;\n this.keySpan = keySpan;\n this.valueSpan = valueSpan;\n this.i18n = i18n;\n }\n visit(visitor) {\n return visitor.visitTextAttribute(this);\n }\n}\nclass BoundAttribute {\n name;\n type;\n securityContext;\n value;\n unit;\n sourceSpan;\n keySpan;\n valueSpan;\n i18n;\n constructor(name, type, securityContext, value, unit, sourceSpan, keySpan, valueSpan, i18n) {\n this.name = name;\n this.type = type;\n this.securityContext = securityContext;\n this.value = value;\n this.unit = unit;\n this.sourceSpan = sourceSpan;\n this.keySpan = keySpan;\n this.valueSpan = valueSpan;\n this.i18n = i18n;\n }\n static fromBoundElementProperty(prop, i18n) {\n if (prop.keySpan === undefined) {\n throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${prop.name}: ${prop.sourceSpan}`);\n }\n return new BoundAttribute(prop.name, prop.type, prop.securityContext, prop.value, prop.unit, prop.sourceSpan, prop.keySpan, prop.valueSpan, i18n);\n }\n visit(visitor) {\n return visitor.visitBoundAttribute(this);\n }\n}\nclass BoundEvent {\n name;\n type;\n handler;\n target;\n phase;\n sourceSpan;\n handlerSpan;\n keySpan;\n constructor(name, type, handler, target, phase, sourceSpan, handlerSpan, keySpan) {\n this.name = name;\n this.type = type;\n this.handler = handler;\n this.target = target;\n this.phase = phase;\n this.sourceSpan = sourceSpan;\n this.handlerSpan = handlerSpan;\n this.keySpan = keySpan;\n }\n static fromParsedEvent(event) {\n const target = event.type === ParsedEventType.Regular ? event.targetOrPhase : null;\n const phase = event.type === ParsedEventType.Animation ? event.targetOrPhase : null;\n if (event.keySpan === undefined) {\n throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${event.name}: ${event.sourceSpan}`);\n }\n return new BoundEvent(event.name, event.type, event.handler, target, phase, event.sourceSpan, event.handlerSpan, event.keySpan);\n }\n visit(visitor) {\n return visitor.visitBoundEvent(this);\n }\n}\nclass Element$1 {\n name;\n attributes;\n inputs;\n outputs;\n children;\n references;\n sourceSpan;\n startSourceSpan;\n endSourceSpan;\n i18n;\n constructor(name, attributes, inputs, outputs, children, references, sourceSpan, startSourceSpan, endSourceSpan, i18n) {\n this.name = name;\n this.attributes = attributes;\n this.inputs = inputs;\n this.outputs = outputs;\n this.children = children;\n this.references = references;\n this.sourceSpan = sourceSpan;\n this.startSourceSpan = startSourceSpan;\n this.endSourceSpan = endSourceSpan;\n this.i18n = i18n;\n }\n visit(visitor) {\n return visitor.visitElement(this);\n }\n}\nclass DeferredTrigger {\n nameSpan;\n sourceSpan;\n prefetchSpan;\n whenOrOnSourceSpan;\n hydrateSpan;\n constructor(nameSpan, sourceSpan, prefetchSpan, whenOrOnSourceSpan, hydrateSpan) {\n this.nameSpan = nameSpan;\n this.sourceSpan = sourceSpan;\n this.prefetchSpan = prefetchSpan;\n this.whenOrOnSourceSpan = whenOrOnSourceSpan;\n this.hydrateSpan = hydrateSpan;\n }\n visit(visitor) {\n return visitor.visitDeferredTrigger(this);\n }\n}\nclass BoundDeferredTrigger extends DeferredTrigger {\n value;\n constructor(value, sourceSpan, prefetchSpan, whenSourceSpan, hydrateSpan) {\n // BoundDeferredTrigger is for 'when' triggers. These aren't really \"triggers\" and don't have a\n // nameSpan. Trigger names are the built in event triggers like hover, interaction, etc.\n super(/** nameSpan */ null, sourceSpan, prefetchSpan, whenSourceSpan, hydrateSpan);\n this.value = value;\n }\n}\nclass NeverDeferredTrigger extends DeferredTrigger {\n}\nclass IdleDeferredTrigger extends DeferredTrigger {\n}\nclass ImmediateDeferredTrigger extends DeferredTrigger {\n}\nclass HoverDeferredTrigger extends DeferredTrigger {\n reference;\n constructor(reference, nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan) {\n super(nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan);\n this.reference = reference;\n }\n}\nclass TimerDeferredTrigger extends DeferredTrigger {\n delay;\n constructor(delay, nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan) {\n super(nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan);\n this.delay = delay;\n }\n}\nclass InteractionDeferredTrigger extends DeferredTrigger {\n reference;\n constructor(reference, nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan) {\n super(nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan);\n this.reference = reference;\n }\n}\nclass ViewportDeferredTrigger extends DeferredTrigger {\n reference;\n constructor(reference, nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan) {\n super(nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan);\n this.reference = reference;\n }\n}\nclass BlockNode {\n nameSpan;\n sourceSpan;\n startSourceSpan;\n endSourceSpan;\n constructor(nameSpan, sourceSpan, startSourceSpan, endSourceSpan) {\n this.nameSpan = nameSpan;\n this.sourceSpan = sourceSpan;\n this.startSourceSpan = startSourceSpan;\n this.endSourceSpan = endSourceSpan;\n }\n}\nclass DeferredBlockPlaceholder extends BlockNode {\n children;\n minimumTime;\n i18n;\n constructor(children, minimumTime, nameSpan, sourceSpan, startSourceSpan, endSourceSpan, i18n) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n this.children = children;\n this.minimumTime = minimumTime;\n this.i18n = i18n;\n }\n visit(visitor) {\n return visitor.visitDeferredBlockPlaceholder(this);\n }\n}\nclass DeferredBlockLoading extends BlockNode {\n children;\n afterTime;\n minimumTime;\n i18n;\n constructor(children, afterTime, minimumTime, nameSpan, sourceSpan, startSourceSpan, endSourceSpan, i18n) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n this.children = children;\n this.afterTime = afterTime;\n this.minimumTime = minimumTime;\n this.i18n = i18n;\n }\n visit(visitor) {\n return visitor.visitDeferredBlockLoading(this);\n }\n}\nclass DeferredBlockError extends BlockNode {\n children;\n i18n;\n constructor(children, nameSpan, sourceSpan, startSourceSpan, endSourceSpan, i18n) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n this.children = children;\n this.i18n = i18n;\n }\n visit(visitor) {\n return visitor.visitDeferredBlockError(this);\n }\n}\nclass DeferredBlock extends BlockNode {\n children;\n placeholder;\n loading;\n error;\n mainBlockSpan;\n i18n;\n triggers;\n prefetchTriggers;\n hydrateTriggers;\n definedTriggers;\n definedPrefetchTriggers;\n definedHydrateTriggers;\n constructor(children, triggers, prefetchTriggers, hydrateTriggers, placeholder, loading, error, nameSpan, sourceSpan, mainBlockSpan, startSourceSpan, endSourceSpan, i18n) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n this.children = children;\n this.placeholder = placeholder;\n this.loading = loading;\n this.error = error;\n this.mainBlockSpan = mainBlockSpan;\n this.i18n = i18n;\n this.triggers = triggers;\n this.prefetchTriggers = prefetchTriggers;\n this.hydrateTriggers = hydrateTriggers;\n // We cache the keys since we know that they won't change and we\n // don't want to enumarate them every time we're traversing the AST.\n this.definedTriggers = Object.keys(triggers);\n this.definedPrefetchTriggers = Object.keys(prefetchTriggers);\n this.definedHydrateTriggers = Object.keys(hydrateTriggers);\n }\n visit(visitor) {\n return visitor.visitDeferredBlock(this);\n }\n visitAll(visitor) {\n // Visit the hydrate triggers first to match their insertion order.\n this.visitTriggers(this.definedHydrateTriggers, this.hydrateTriggers, visitor);\n this.visitTriggers(this.definedTriggers, this.triggers, visitor);\n this.visitTriggers(this.definedPrefetchTriggers, this.prefetchTriggers, visitor);\n visitAll$1(visitor, this.children);\n const remainingBlocks = [this.placeholder, this.loading, this.error].filter((x) => x !== null);\n visitAll$1(visitor, remainingBlocks);\n }\n visitTriggers(keys, triggers, visitor) {\n visitAll$1(visitor, keys.map((k) => triggers[k]));\n }\n}\nclass SwitchBlock extends BlockNode {\n expression;\n cases;\n unknownBlocks;\n constructor(expression, cases, \n /**\n * These blocks are only captured to allow for autocompletion in the language service. They\n * aren't meant to be processed in any other way.\n */\n unknownBlocks, sourceSpan, startSourceSpan, endSourceSpan, nameSpan) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n this.expression = expression;\n this.cases = cases;\n this.unknownBlocks = unknownBlocks;\n }\n visit(visitor) {\n return visitor.visitSwitchBlock(this);\n }\n}\nclass SwitchBlockCase extends BlockNode {\n expression;\n children;\n i18n;\n constructor(expression, children, sourceSpan, startSourceSpan, endSourceSpan, nameSpan, i18n) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n this.expression = expression;\n this.children = children;\n this.i18n = i18n;\n }\n visit(visitor) {\n return visitor.visitSwitchBlockCase(this);\n }\n}\nclass ForLoopBlock extends BlockNode {\n item;\n expression;\n trackBy;\n trackKeywordSpan;\n contextVariables;\n children;\n empty;\n mainBlockSpan;\n i18n;\n constructor(item, expression, trackBy, trackKeywordSpan, contextVariables, children, empty, sourceSpan, mainBlockSpan, startSourceSpan, endSourceSpan, nameSpan, i18n) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n this.item = item;\n this.expression = expression;\n this.trackBy = trackBy;\n this.trackKeywordSpan = trackKeywordSpan;\n this.contextVariables = contextVariables;\n this.children = children;\n this.empty = empty;\n this.mainBlockSpan = mainBlockSpan;\n this.i18n = i18n;\n }\n visit(visitor) {\n return visitor.visitForLoopBlock(this);\n }\n}\nclass ForLoopBlockEmpty extends BlockNode {\n children;\n i18n;\n constructor(children, sourceSpan, startSourceSpan, endSourceSpan, nameSpan, i18n) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n this.children = children;\n this.i18n = i18n;\n }\n visit(visitor) {\n return visitor.visitForLoopBlockEmpty(this);\n }\n}\nclass IfBlock extends BlockNode {\n branches;\n constructor(branches, sourceSpan, startSourceSpan, endSourceSpan, nameSpan) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n this.branches = branches;\n }\n visit(visitor) {\n return visitor.visitIfBlock(this);\n }\n}\nclass IfBlockBranch extends BlockNode {\n expression;\n children;\n expressionAlias;\n i18n;\n constructor(expression, children, expressionAlias, sourceSpan, startSourceSpan, endSourceSpan, nameSpan, i18n) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n this.expression = expression;\n this.children = children;\n this.expressionAlias = expressionAlias;\n this.i18n = i18n;\n }\n visit(visitor) {\n return visitor.visitIfBlockBranch(this);\n }\n}\nclass UnknownBlock {\n name;\n sourceSpan;\n nameSpan;\n constructor(name, sourceSpan, nameSpan) {\n this.name = name;\n this.sourceSpan = sourceSpan;\n this.nameSpan = nameSpan;\n }\n visit(visitor) {\n return visitor.visitUnknownBlock(this);\n }\n}\nclass LetDeclaration$1 {\n name;\n value;\n sourceSpan;\n nameSpan;\n valueSpan;\n constructor(name, value, sourceSpan, nameSpan, valueSpan) {\n this.name = name;\n this.value = value;\n this.sourceSpan = sourceSpan;\n this.nameSpan = nameSpan;\n this.valueSpan = valueSpan;\n }\n visit(visitor) {\n return visitor.visitLetDeclaration(this);\n }\n}\nclass Template {\n tagName;\n attributes;\n inputs;\n outputs;\n templateAttrs;\n children;\n references;\n variables;\n sourceSpan;\n startSourceSpan;\n endSourceSpan;\n i18n;\n constructor(\n // tagName is the name of the container element, if applicable.\n // `null` is a special case for when there is a structural directive on an `ng-template` so\n // the renderer can differentiate between the synthetic template and the one written in the\n // file.\n tagName, attributes, inputs, outputs, templateAttrs, children, references, variables, sourceSpan, startSourceSpan, endSourceSpan, i18n) {\n this.tagName = tagName;\n this.attributes = attributes;\n this.inputs = inputs;\n this.outputs = outputs;\n this.templateAttrs = templateAttrs;\n this.children = children;\n this.references = references;\n this.variables = variables;\n this.sourceSpan = sourceSpan;\n this.startSourceSpan = startSourceSpan;\n this.endSourceSpan = endSourceSpan;\n this.i18n = i18n;\n }\n visit(visitor) {\n return visitor.visitTemplate(this);\n }\n}\nclass Content {\n selector;\n attributes;\n children;\n sourceSpan;\n i18n;\n name = 'ng-content';\n constructor(selector, attributes, children, sourceSpan, i18n) {\n this.selector = selector;\n this.attributes = attributes;\n this.children = children;\n this.sourceSpan = sourceSpan;\n this.i18n = i18n;\n }\n visit(visitor) {\n return visitor.visitContent(this);\n }\n}\nclass Variable {\n name;\n value;\n sourceSpan;\n keySpan;\n valueSpan;\n constructor(name, value, sourceSpan, keySpan, valueSpan) {\n this.name = name;\n this.value = value;\n this.sourceSpan = sourceSpan;\n this.keySpan = keySpan;\n this.valueSpan = valueSpan;\n }\n visit(visitor) {\n return visitor.visitVariable(this);\n }\n}\nclass Reference {\n name;\n value;\n sourceSpan;\n keySpan;\n valueSpan;\n constructor(name, value, sourceSpan, keySpan, valueSpan) {\n this.name = name;\n this.value = value;\n this.sourceSpan = sourceSpan;\n this.keySpan = keySpan;\n this.valueSpan = valueSpan;\n }\n visit(visitor) {\n return visitor.visitReference(this);\n }\n}\nclass Icu$1 {\n vars;\n placeholders;\n sourceSpan;\n i18n;\n constructor(vars, placeholders, sourceSpan, i18n) {\n this.vars = vars;\n this.placeholders = placeholders;\n this.sourceSpan = sourceSpan;\n this.i18n = i18n;\n }\n visit(visitor) {\n return visitor.visitIcu(this);\n }\n}\nclass RecursiveVisitor$1 {\n visitElement(element) {\n visitAll$1(this, element.attributes);\n visitAll$1(this, element.inputs);\n visitAll$1(this, element.outputs);\n visitAll$1(this, element.children);\n visitAll$1(this, element.references);\n }\n visitTemplate(template) {\n visitAll$1(this, template.attributes);\n visitAll$1(this, template.inputs);\n visitAll$1(this, template.outputs);\n visitAll$1(this, template.children);\n visitAll$1(this, template.references);\n visitAll$1(this, template.variables);\n }\n visitDeferredBlock(deferred) {\n deferred.visitAll(this);\n }\n visitDeferredBlockPlaceholder(block) {\n visitAll$1(this, block.children);\n }\n visitDeferredBlockError(block) {\n visitAll$1(this, block.children);\n }\n visitDeferredBlockLoading(block) {\n visitAll$1(this, block.children);\n }\n visitSwitchBlock(block) {\n visitAll$1(this, block.cases);\n }\n visitSwitchBlockCase(block) {\n visitAll$1(this, block.children);\n }\n visitForLoopBlock(block) {\n const blockItems = [block.item, ...block.contextVariables, ...block.children];\n block.empty && blockItems.push(block.empty);\n visitAll$1(this, blockItems);\n }\n visitForLoopBlockEmpty(block) {\n visitAll$1(this, block.children);\n }\n visitIfBlock(block) {\n visitAll$1(this, block.branches);\n }\n visitIfBlockBranch(block) {\n const blockItems = block.children;\n block.expressionAlias && blockItems.push(block.expressionAlias);\n visitAll$1(this, blockItems);\n }\n visitContent(content) {\n visitAll$1(this, content.children);\n }\n visitVariable(variable) { }\n visitReference(reference) { }\n visitTextAttribute(attribute) { }\n visitBoundAttribute(attribute) { }\n visitBoundEvent(attribute) { }\n visitText(text) { }\n visitBoundText(text) { }\n visitIcu(icu) { }\n visitDeferredTrigger(trigger) { }\n visitUnknownBlock(block) { }\n visitLetDeclaration(decl) { }\n}\nfunction visitAll$1(visitor, nodes) {\n const result = [];\n if (visitor.visit) {\n for (const node of nodes) {\n visitor.visit(node) || node.visit(visitor);\n }\n }\n else {\n for (const node of nodes) {\n const newNode = node.visit(visitor);\n if (newNode) {\n result.push(newNode);\n }\n }\n }\n return result;\n}\n\nclass Message {\n nodes;\n placeholders;\n placeholderToMessage;\n meaning;\n description;\n customId;\n sources;\n id;\n /** The ids to use if there are no custom id and if `i18nLegacyMessageIdFormat` is not empty */\n legacyIds = [];\n messageString;\n /**\n * @param nodes message AST\n * @param placeholders maps placeholder names to static content and their source spans\n * @param placeholderToMessage maps placeholder names to messages (used for nested ICU messages)\n * @param meaning\n * @param description\n * @param customId\n */\n constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {\n this.nodes = nodes;\n this.placeholders = placeholders;\n this.placeholderToMessage = placeholderToMessage;\n this.meaning = meaning;\n this.description = description;\n this.customId = customId;\n this.id = this.customId;\n this.messageString = serializeMessage(this.nodes);\n if (nodes.length) {\n this.sources = [\n {\n filePath: nodes[0].sourceSpan.start.file.url,\n startLine: nodes[0].sourceSpan.start.line + 1,\n startCol: nodes[0].sourceSpan.start.col + 1,\n endLine: nodes[nodes.length - 1].sourceSpan.end.line + 1,\n endCol: nodes[0].sourceSpan.start.col + 1,\n },\n ];\n }\n else {\n this.sources = [];\n }\n }\n}\nclass Text$2 {\n value;\n sourceSpan;\n constructor(value, sourceSpan) {\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n visit(visitor, context) {\n return visitor.visitText(this, context);\n }\n}\n// TODO(vicb): do we really need this node (vs an array) ?\nclass Container {\n children;\n sourceSpan;\n constructor(children, sourceSpan) {\n this.children = children;\n this.sourceSpan = sourceSpan;\n }\n visit(visitor, context) {\n return visitor.visitContainer(this, context);\n }\n}\nclass Icu {\n expression;\n type;\n cases;\n sourceSpan;\n expressionPlaceholder;\n constructor(expression, type, cases, sourceSpan, expressionPlaceholder) {\n this.expression = expression;\n this.type = type;\n this.cases = cases;\n this.sourceSpan = sourceSpan;\n this.expressionPlaceholder = expressionPlaceholder;\n }\n visit(visitor, context) {\n return visitor.visitIcu(this, context);\n }\n}\nclass TagPlaceholder {\n tag;\n attrs;\n startName;\n closeName;\n children;\n isVoid;\n sourceSpan;\n startSourceSpan;\n endSourceSpan;\n constructor(tag, attrs, startName, closeName, children, isVoid, \n // TODO sourceSpan should cover all (we need a startSourceSpan and endSourceSpan)\n sourceSpan, startSourceSpan, endSourceSpan) {\n this.tag = tag;\n this.attrs = attrs;\n this.startName = startName;\n this.closeName = closeName;\n this.children = children;\n this.isVoid = isVoid;\n this.sourceSpan = sourceSpan;\n this.startSourceSpan = startSourceSpan;\n this.endSourceSpan = endSourceSpan;\n }\n visit(visitor, context) {\n return visitor.visitTagPlaceholder(this, context);\n }\n}\nclass Placeholder {\n value;\n name;\n sourceSpan;\n constructor(value, name, sourceSpan) {\n this.value = value;\n this.name = name;\n this.sourceSpan = sourceSpan;\n }\n visit(visitor, context) {\n return visitor.visitPlaceholder(this, context);\n }\n}\nclass IcuPlaceholder {\n value;\n name;\n sourceSpan;\n /** Used to capture a message computed from a previous processing pass (see `setI18nRefs()`). */\n previousMessage;\n constructor(value, name, sourceSpan) {\n this.value = value;\n this.name = name;\n this.sourceSpan = sourceSpan;\n }\n visit(visitor, context) {\n return visitor.visitIcuPlaceholder(this, context);\n }\n}\nclass BlockPlaceholder {\n name;\n parameters;\n startName;\n closeName;\n children;\n sourceSpan;\n startSourceSpan;\n endSourceSpan;\n constructor(name, parameters, startName, closeName, children, sourceSpan, startSourceSpan, endSourceSpan) {\n this.name = name;\n this.parameters = parameters;\n this.startName = startName;\n this.closeName = closeName;\n this.children = children;\n this.sourceSpan = sourceSpan;\n this.startSourceSpan = startSourceSpan;\n this.endSourceSpan = endSourceSpan;\n }\n visit(visitor, context) {\n return visitor.visitBlockPlaceholder(this, context);\n }\n}\n// Clone the AST\nclass CloneVisitor {\n visitText(text, context) {\n return new Text$2(text.value, text.sourceSpan);\n }\n visitContainer(container, context) {\n const children = container.children.map((n) => n.visit(this, context));\n return new Container(children, container.sourceSpan);\n }\n visitIcu(icu, context) {\n const cases = {};\n Object.keys(icu.cases).forEach((key) => (cases[key] = icu.cases[key].visit(this, context)));\n const msg = new Icu(icu.expression, icu.type, cases, icu.sourceSpan, icu.expressionPlaceholder);\n return msg;\n }\n visitTagPlaceholder(ph, context) {\n const children = ph.children.map((n) => n.visit(this, context));\n return new TagPlaceholder(ph.tag, ph.attrs, ph.startName, ph.closeName, children, ph.isVoid, ph.sourceSpan, ph.startSourceSpan, ph.endSourceSpan);\n }\n visitPlaceholder(ph, context) {\n return new Placeholder(ph.value, ph.name, ph.sourceSpan);\n }\n visitIcuPlaceholder(ph, context) {\n return new IcuPlaceholder(ph.value, ph.name, ph.sourceSpan);\n }\n visitBlockPlaceholder(ph, context) {\n const children = ph.children.map((n) => n.visit(this, context));\n return new BlockPlaceholder(ph.name, ph.parameters, ph.startName, ph.closeName, children, ph.sourceSpan, ph.startSourceSpan, ph.endSourceSpan);\n }\n}\n// Visit all the nodes recursively\nclass RecurseVisitor {\n visitText(text, context) { }\n visitContainer(container, context) {\n container.children.forEach((child) => child.visit(this));\n }\n visitIcu(icu, context) {\n Object.keys(icu.cases).forEach((k) => {\n icu.cases[k].visit(this);\n });\n }\n visitTagPlaceholder(ph, context) {\n ph.children.forEach((child) => child.visit(this));\n }\n visitPlaceholder(ph, context) { }\n visitIcuPlaceholder(ph, context) { }\n visitBlockPlaceholder(ph, context) {\n ph.children.forEach((child) => child.visit(this));\n }\n}\n/**\n * Serialize the message to the Localize backtick string format that would appear in compiled code.\n */\nfunction serializeMessage(messageNodes) {\n const visitor = new LocalizeMessageStringVisitor();\n const str = messageNodes.map((n) => n.visit(visitor)).join('');\n return str;\n}\nclass LocalizeMessageStringVisitor {\n visitText(text) {\n return text.value;\n }\n visitContainer(container) {\n return container.children.map((child) => child.visit(this)).join('');\n }\n visitIcu(icu) {\n const strCases = Object.keys(icu.cases).map((k) => `${k} {${icu.cases[k].visit(this)}}`);\n return `{${icu.expressionPlaceholder}, ${icu.type}, ${strCases.join(' ')}}`;\n }\n visitTagPlaceholder(ph) {\n const children = ph.children.map((child) => child.visit(this)).join('');\n return `{$${ph.startName}}${children}{$${ph.closeName}}`;\n }\n visitPlaceholder(ph) {\n return `{$${ph.name}}`;\n }\n visitIcuPlaceholder(ph) {\n return `{$${ph.name}}`;\n }\n visitBlockPlaceholder(ph) {\n const children = ph.children.map((child) => child.visit(this)).join('');\n return `{$${ph.startName}}${children}{$${ph.closeName}}`;\n }\n}\n\nclass Serializer {\n // Creates a name mapper, see `PlaceholderMapper`\n // Returning `null` means that no name mapping is used.\n createNameMapper(message) {\n return null;\n }\n}\n/**\n * A simple mapper that take a function to transform an internal name to a public name\n */\nclass SimplePlaceholderMapper extends RecurseVisitor {\n mapName;\n internalToPublic = {};\n publicToNextId = {};\n publicToInternal = {};\n // create a mapping from the message\n constructor(message, mapName) {\n super();\n this.mapName = mapName;\n message.nodes.forEach((node) => node.visit(this));\n }\n toPublicName(internalName) {\n return this.internalToPublic.hasOwnProperty(internalName)\n ? this.internalToPublic[internalName]\n : null;\n }\n toInternalName(publicName) {\n return this.publicToInternal.hasOwnProperty(publicName)\n ? this.publicToInternal[publicName]\n : null;\n }\n visitText(text, context) {\n return null;\n }\n visitTagPlaceholder(ph, context) {\n this.visitPlaceholderName(ph.startName);\n super.visitTagPlaceholder(ph, context);\n this.visitPlaceholderName(ph.closeName);\n }\n visitPlaceholder(ph, context) {\n this.visitPlaceholderName(ph.name);\n }\n visitBlockPlaceholder(ph, context) {\n this.visitPlaceholderName(ph.startName);\n super.visitBlockPlaceholder(ph, context);\n this.visitPlaceholderName(ph.closeName);\n }\n visitIcuPlaceholder(ph, context) {\n this.visitPlaceholderName(ph.name);\n }\n // XMB placeholders could only contains A-Z, 0-9 and _\n visitPlaceholderName(internalName) {\n if (!internalName || this.internalToPublic.hasOwnProperty(internalName)) {\n return;\n }\n let publicName = this.mapName(internalName);\n if (this.publicToInternal.hasOwnProperty(publicName)) {\n // Create a new XMB when it has already been used\n const nextId = this.publicToNextId[publicName];\n this.publicToNextId[publicName] = nextId + 1;\n publicName = `${publicName}_${nextId}`;\n }\n else {\n this.publicToNextId[publicName] = 1;\n }\n this.internalToPublic[internalName] = publicName;\n this.publicToInternal[publicName] = internalName;\n }\n}\n\nclass _Visitor$2 {\n visitTag(tag) {\n const strAttrs = this._serializeAttributes(tag.attrs);\n if (tag.children.length == 0) {\n return `<${tag.name}${strAttrs}/>`;\n }\n const strChildren = tag.children.map((node) => node.visit(this));\n return `<${tag.name}${strAttrs}>${strChildren.join('')}</${tag.name}>`;\n }\n visitText(text) {\n return text.value;\n }\n visitDeclaration(decl) {\n return `<?xml${this._serializeAttributes(decl.attrs)} ?>`;\n }\n _serializeAttributes(attrs) {\n const strAttrs = Object.keys(attrs)\n .map((name) => `${name}=\"${attrs[name]}\"`)\n .join(' ');\n return strAttrs.length > 0 ? ' ' + strAttrs : '';\n }\n visitDoctype(doctype) {\n return `<!DOCTYPE ${doctype.rootTag} [\\n${doctype.dtd}\\n]>`;\n }\n}\nconst _visitor = new _Visitor$2();\nfunction serialize$1(nodes) {\n return nodes.map((node) => node.visit(_visitor)).join('');\n}\nclass Declaration {\n attrs = {};\n constructor(unescapedAttrs) {\n Object.keys(unescapedAttrs).forEach((k) => {\n this.attrs[k] = escapeXml(unescapedAttrs[k]);\n });\n }\n visit(visitor) {\n return visitor.visitDeclaration(this);\n }\n}\nclass Doctype {\n rootTag;\n dtd;\n constructor(rootTag, dtd) {\n this.rootTag = rootTag;\n this.dtd = dtd;\n }\n visit(visitor) {\n return visitor.visitDoctype(this);\n }\n}\nclass Tag {\n name;\n children;\n attrs = {};\n constructor(name, unescapedAttrs = {}, children = []) {\n this.name = name;\n this.children = children;\n Object.keys(unescapedAttrs).forEach((k) => {\n this.attrs[k] = escapeXml(unescapedAttrs[k]);\n });\n }\n visit(visitor) {\n return visitor.visitTag(this);\n }\n}\nclass Text$1 {\n value;\n constructor(unescapedValue) {\n this.value = escapeXml(unescapedValue);\n }\n visit(visitor) {\n return visitor.visitText(this);\n }\n}\nclass CR extends Text$1 {\n constructor(ws = 0) {\n super(`\\n${new Array(ws + 1).join(' ')}`);\n }\n}\nconst _ESCAPED_CHARS = [\n [/&/g, '&'],\n [/\"/g, '"'],\n [/'/g, '''],\n [/</g, '<'],\n [/>/g, '>'],\n];\n// Escape `_ESCAPED_CHARS` characters in the given text with encoded entities\nfunction escapeXml(text) {\n return _ESCAPED_CHARS.reduce((text, entry) => text.replace(entry[0], entry[1]), text);\n}\n\n/**\n * Defines the `handler` value on the serialized XMB, indicating that Angular\n * generated the bundle. This is useful for analytics in Translation Console.\n *\n * NOTE: Keep in sync with\n * packages/localize/tools/src/extract/translation_files/xmb_translation_serializer.ts.\n */\nconst _XMB_HANDLER = 'angular';\nconst _MESSAGES_TAG = 'messagebundle';\nconst _MESSAGE_TAG = 'msg';\nconst _PLACEHOLDER_TAG$3 = 'ph';\nconst _EXAMPLE_TAG = 'ex';\nconst _SOURCE_TAG$2 = 'source';\nconst _DOCTYPE = `<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) \"default\">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>`;\nclass Xmb extends Serializer {\n write(messages, locale) {\n const exampleVisitor = new ExampleVisitor();\n const visitor = new _Visitor$1();\n const rootNode = new Tag(_MESSAGES_TAG);\n rootNode.attrs['handler'] = _XMB_HANDLER;\n messages.forEach((message) => {\n const attrs = { id: message.id };\n if (message.description) {\n attrs['desc'] = message.description;\n }\n if (message.meaning) {\n attrs['meaning'] = message.meaning;\n }\n let sourceTags = [];\n message.sources.forEach((source) => {\n sourceTags.push(new Tag(_SOURCE_TAG$2, {}, [\n new Text$1(`${source.filePath}:${source.startLine}${source.endLine !== source.startLine ? ',' + source.endLine : ''}`),\n ]));\n });\n rootNode.children.push(new CR(2), new Tag(_MESSAGE_TAG, attrs, [...sourceTags, ...visitor.serialize(message.nodes)]));\n });\n rootNode.children.push(new CR());\n return serialize$1([\n new Declaration({ version: '1.0', encoding: 'UTF-8' }),\n new CR(),\n new Doctype(_MESSAGES_TAG, _DOCTYPE),\n new CR(),\n exampleVisitor.addDefaultExamples(rootNode),\n new CR(),\n ]);\n }\n load(content, url) {\n throw new Error('Unsupported');\n }\n digest(message) {\n return digest(message);\n }\n createNameMapper(message) {\n return new SimplePlaceholderMapper(message, toPublicName);\n }\n}\nclass _Visitor$1 {\n visitText(text, context) {\n return [new Text$1(text.value)];\n }\n visitContainer(container, context) {\n const nodes = [];\n container.children.forEach((node) => nodes.push(...node.visit(this)));\n return nodes;\n }\n visitIcu(icu, context) {\n const nodes = [new Text$1(`{${icu.expressionPlaceholder}, ${icu.type}, `)];\n Object.keys(icu.cases).forEach((c) => {\n nodes.push(new Text$1(`${c} {`), ...icu.cases[c].visit(this), new Text$1(`} `));\n });\n nodes.push(new Text$1(`}`));\n return nodes;\n }\n visitTagPlaceholder(ph, context) {\n const startTagAsText = new Text$1(`<${ph.tag}>`);\n const startEx = new Tag(_EXAMPLE_TAG, {}, [startTagAsText]);\n // TC requires PH to have a non empty EX, and uses the text node to show the \"original\" value.\n const startTagPh = new Tag(_PLACEHOLDER_TAG$3, { name: ph.startName }, [\n startEx,\n startTagAsText,\n ]);\n if (ph.isVoid) {\n // void tags have no children nor closing tags\n return [startTagPh];\n }\n const closeTagAsText = new Text$1(`</${ph.tag}>`);\n const closeEx = new Tag(_EXAMPLE_TAG, {}, [closeTagAsText]);\n // TC requires PH to have a non empty EX, and uses the text node to show the \"original\" value.\n const closeTagPh = new Tag(_PLACEHOLDER_TAG$3, { name: ph.closeName }, [\n closeEx,\n closeTagAsText,\n ]);\n return [startTagPh, ...this.serialize(ph.children), closeTagPh];\n }\n visitPlaceholder(ph, context) {\n const interpolationAsText = new Text$1(`{{${ph.value}}}`);\n // Example tag needs to be not-empty for TC.\n const exTag = new Tag(_EXAMPLE_TAG, {}, [interpolationAsText]);\n return [\n // TC requires PH to have a non empty EX, and uses the text node to show the \"original\" value.\n new Tag(_PLACEHOLDER_TAG$3, { name: ph.name }, [exTag, interpolationAsText]),\n ];\n }\n visitBlockPlaceholder(ph, context) {\n const startAsText = new Text$1(`@${ph.name}`);\n const startEx = new Tag(_EXAMPLE_TAG, {}, [startAsText]);\n // TC requires PH to have a non empty EX, and uses the text node to show the \"original\" value.\n const startTagPh = new Tag(_PLACEHOLDER_TAG$3, { name: ph.startName }, [startEx, startAsText]);\n const closeAsText = new Text$1(`}`);\n const closeEx = new Tag(_EXAMPLE_TAG, {}, [closeAsText]);\n // TC requires PH to have a non empty EX, and uses the text node to show the \"original\" value.\n const closeTagPh = new Tag(_PLACEHOLDER_TAG$3, { name: ph.closeName }, [closeEx, closeAsText]);\n return [startTagPh, ...this.serialize(ph.children), closeTagPh];\n }\n visitIcuPlaceholder(ph, context) {\n const icuExpression = ph.value.expression;\n const icuType = ph.value.type;\n const icuCases = Object.keys(ph.value.cases)\n .map((value) => value + ' {...}')\n .join(' ');\n const icuAsText = new Text$1(`{${icuExpression}, ${icuType}, ${icuCases}}`);\n const exTag = new Tag(_EXAMPLE_TAG, {}, [icuAsText]);\n return [\n // TC requires PH to have a non empty EX, and uses the text node to show the \"original\" value.\n new Tag(_PLACEHOLDER_TAG$3, { name: ph.name }, [exTag, icuAsText]),\n ];\n }\n serialize(nodes) {\n return [].concat(...nodes.map((node) => node.visit(this)));\n }\n}\nfunction digest(message) {\n return decimalDigest(message);\n}\n// TC requires at least one non-empty example on placeholders\nclass ExampleVisitor {\n addDefaultExamples(node) {\n node.visit(this);\n return node;\n }\n visitTag(tag) {\n if (tag.name === _PLACEHOLDER_TAG$3) {\n if (!tag.children || tag.children.length == 0) {\n const exText = new Text$1(tag.attrs['name'] || '...');\n tag.children = [new Tag(_EXAMPLE_TAG, {}, [exText])];\n }\n }\n else if (tag.children) {\n tag.children.forEach((node) => node.visit(this));\n }\n }\n visitText(text) { }\n visitDeclaration(decl) { }\n visitDoctype(doctype) { }\n}\n// XMB/XTB placeholders can only contain A-Z, 0-9 and _\nfunction toPublicName(internalName) {\n return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, '_');\n}\n\n/** Name of the i18n attributes **/\nconst I18N_ATTR = 'i18n';\nconst I18N_ATTR_PREFIX = 'i18n-';\n/** Prefix of var expressions used in ICUs */\nconst I18N_ICU_VAR_PREFIX = 'VAR_';\nfunction isI18nAttribute(name) {\n return name === I18N_ATTR || name.startsWith(I18N_ATTR_PREFIX);\n}\nfunction hasI18nAttrs(element) {\n return element.attrs.some((attr) => isI18nAttribute(attr.name));\n}\nfunction icuFromI18nMessage(message) {\n return message.nodes[0];\n}\nfunction placeholdersToParams(placeholders) {\n const params = {};\n placeholders.forEach((values, key) => {\n params[key] = literal(values.length > 1 ? `[${values.join('|')}]` : values[0]);\n });\n return params;\n}\n/**\n * Format the placeholder names in a map of placeholders to expressions.\n *\n * The placeholder names are converted from \"internal\" format (e.g. `START_TAG_DIV_1`) to \"external\"\n * format (e.g. `startTagDiv_1`).\n *\n * @param params A map of placeholder names to expressions.\n * @param useCamelCase whether to camelCase the placeholder name when formatting.\n * @returns A new map of formatted placeholder names to expressions.\n */\nfunction formatI18nPlaceholderNamesInMap(params = {}, useCamelCase) {\n const _params = {};\n if (params && Object.keys(params).length) {\n Object.keys(params).forEach((key) => (_params[formatI18nPlaceholderName(key, useCamelCase)] = params[key]));\n }\n return _params;\n}\n/**\n * Converts internal placeholder names to public-facing format\n * (for example to use in goog.getMsg call).\n * Example: `START_TAG_DIV_1` is converted to `startTagDiv_1`.\n *\n * @param name The placeholder name that should be formatted\n * @returns Formatted placeholder name\n */\nfunction formatI18nPlaceholderName(name, useCamelCase = true) {\n const publicName = toPublicName(name);\n if (!useCamelCase) {\n return publicName;\n }\n const chunks = publicName.split('_');\n if (chunks.length === 1) {\n // if no \"_\" found - just lowercase the value\n return name.toLowerCase();\n }\n let postfix;\n // eject last element if it's a number\n if (/^\\d+$/.test(chunks[chunks.length - 1])) {\n postfix = chunks.pop();\n }\n let raw = chunks.shift().toLowerCase();\n if (chunks.length) {\n raw += chunks.map((c) => c.charAt(0).toUpperCase() + c.slice(1).toLowerCase()).join('');\n }\n return postfix ? `${raw}_${postfix}` : raw;\n}\n\n/**\n * Checks whether an object key contains potentially unsafe chars, thus the key should be wrapped in\n * quotes. Note: we do not wrap all keys into quotes, as it may have impact on minification and may\n * not work in some cases when object keys are mangled by a minifier.\n *\n * TODO(FW-1136): this is a temporary solution, we need to come up with a better way of working with\n * inputs that contain potentially unsafe chars.\n */\nconst UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;\n/** Name of the temporary to use during data binding */\nconst TEMPORARY_NAME = '_t';\n/** Name of the context parameter passed into a template function */\nconst CONTEXT_NAME = 'ctx';\n/** Name of the RenderFlag passed into a template function */\nconst RENDER_FLAGS = 'rf';\n/**\n * Creates an allocator for a temporary variable.\n *\n * A variable declaration is added to the statements the first time the allocator is invoked.\n */\nfunction temporaryAllocator(pushStatement, name) {\n let temp = null;\n return () => {\n if (!temp) {\n pushStatement(new DeclareVarStmt(TEMPORARY_NAME, undefined, DYNAMIC_TYPE));\n temp = variable(name);\n }\n return temp;\n };\n}\nfunction invalid(arg) {\n throw new Error(`Invalid state: Visitor ${this.constructor.name} doesn't handle ${arg.constructor.name}`);\n}\nfunction asLiteral(value) {\n if (Array.isArray(value)) {\n return literalArr(value.map(asLiteral));\n }\n return literal(value, INFERRED_TYPE);\n}\n/**\n * Serializes inputs and outputs for `defineDirective` and `defineComponent`.\n *\n * This will attempt to generate optimized data structures to minimize memory or\n * file size of fully compiled applications.\n */\nfunction conditionallyCreateDirectiveBindingLiteral(map, forInputs) {\n const keys = Object.getOwnPropertyNames(map);\n if (keys.length === 0) {\n return null;\n }\n return literalMap(keys.map((key) => {\n const value = map[key];\n let declaredName;\n let publicName;\n let minifiedName;\n let expressionValue;\n if (typeof value === 'string') {\n // canonical syntax: `dirProp: publicProp`\n declaredName = key;\n minifiedName = key;\n publicName = value;\n expressionValue = asLiteral(publicName);\n }\n else {\n minifiedName = key;\n declaredName = value.classPropertyName;\n publicName = value.bindingPropertyName;\n const differentDeclaringName = publicName !== declaredName;\n const hasDecoratorInputTransform = value.transformFunction !== null;\n let flags = InputFlags.None;\n // Build up input flags\n if (value.isSignal) {\n flags |= InputFlags.SignalBased;\n }\n if (hasDecoratorInputTransform) {\n flags |= InputFlags.HasDecoratorInputTransform;\n }\n // Inputs, compared to outputs, will track their declared name (for `ngOnChanges`), support\n // decorator input transform functions, or store flag information if there is any.\n if (forInputs &&\n (differentDeclaringName || hasDecoratorInputTransform || flags !== InputFlags.None)) {\n const result = [literal(flags), asLiteral(publicName)];\n if (differentDeclaringName || hasDecoratorInputTransform) {\n result.push(asLiteral(declaredName));\n if (hasDecoratorInputTransform) {\n result.push(value.transformFunction);\n }\n }\n expressionValue = literalArr(result);\n }\n else {\n expressionValue = asLiteral(publicName);\n }\n }\n return {\n key: minifiedName,\n // put quotes around keys that contain potentially unsafe characters\n quoted: UNSAFE_OBJECT_KEY_NAME_REGEXP.test(minifiedName),\n value: expressionValue,\n };\n }));\n}\n/**\n * A representation for an object literal used during codegen of definition objects. The generic\n * type `T` allows to reference a documented type of the generated structure, such that the\n * property names that are set can be resolved to their documented declaration.\n */\nclass DefinitionMap {\n values = [];\n set(key, value) {\n if (value) {\n const existing = this.values.find((value) => value.key === key);\n if (existing) {\n existing.value = value;\n }\n else {\n this.values.push({ key: key, value, quoted: false });\n }\n }\n }\n toLiteralMap() {\n return literalMap(this.values);\n }\n}\n/**\n * Creates a `CssSelector` from an AST node.\n */\nfunction createCssSelectorFromNode(node) {\n const elementName = node instanceof Element$1 ? node.name : 'ng-template';\n const attributes = getAttrsForDirectiveMatching(node);\n const cssSelector = new CssSelector();\n const elementNameNoNs = splitNsName(elementName)[1];\n cssSelector.setElement(elementNameNoNs);\n Object.getOwnPropertyNames(attributes).forEach((name) => {\n const nameNoNs = splitNsName(name)[1];\n const value = attributes[name];\n cssSelector.addAttribute(nameNoNs, value);\n if (name.toLowerCase() === 'class') {\n const classes = value.trim().split(/\\s+/);\n classes.forEach((className) => cssSelector.addClassName(className));\n }\n });\n return cssSelector;\n}\n/**\n * Extract a map of properties to values for a given element or template node, which can be used\n * by the directive matching machinery.\n *\n * @param elOrTpl the element or template in question\n * @return an object set up for directive matching. For attributes on the element/template, this\n * object maps a property name to its (static) value. For any bindings, this map simply maps the\n * property name to an empty string.\n */\nfunction getAttrsForDirectiveMatching(elOrTpl) {\n const attributesMap = {};\n if (elOrTpl instanceof Template && elOrTpl.tagName !== 'ng-template') {\n elOrTpl.templateAttrs.forEach((a) => (attributesMap[a.name] = ''));\n }\n else {\n elOrTpl.attributes.forEach((a) => {\n if (!isI18nAttribute(a.name)) {\n attributesMap[a.name] = a.value;\n }\n });\n elOrTpl.inputs.forEach((i) => {\n if (i.type === BindingType.Property || i.type === BindingType.TwoWay) {\n attributesMap[i.name] = '';\n }\n });\n elOrTpl.outputs.forEach((o) => {\n attributesMap[o.name] = '';\n });\n }\n return attributesMap;\n}\n\nfunction compileInjectable(meta, resolveForwardRefs) {\n let result = null;\n const factoryMeta = {\n name: meta.name,\n type: meta.type,\n typeArgumentCount: meta.typeArgumentCount,\n deps: [],\n target: FactoryTarget$1.Injectable,\n };\n if (meta.useClass !== undefined) {\n // meta.useClass has two modes of operation. Either deps are specified, in which case `new` is\n // used to instantiate the class with dependencies injected, or deps are not specified and\n // the factory of the class is used to instantiate it.\n //\n // A special case exists for useClass: Type where Type is the injectable type itself and no\n // deps are specified, in which case 'useClass' is effectively ignored.\n const useClassOnSelf = meta.useClass.expression.isEquivalent(meta.type.value);\n let deps = undefined;\n if (meta.deps !== undefined) {\n deps = meta.deps;\n }\n if (deps !== undefined) {\n // factory: () => new meta.useClass(...deps)\n result = compileFactoryFunction({\n ...factoryMeta,\n delegate: meta.useClass.expression,\n delegateDeps: deps,\n delegateType: R3FactoryDelegateType.Class,\n });\n }\n else if (useClassOnSelf) {\n result = compileFactoryFunction(factoryMeta);\n }\n else {\n result = {\n statements: [],\n expression: delegateToFactory(meta.type.value, meta.useClass.expression, resolveForwardRefs),\n };\n }\n }\n else if (meta.useFactory !== undefined) {\n if (meta.deps !== undefined) {\n result = compileFactoryFunction({\n ...factoryMeta,\n delegate: meta.useFactory,\n delegateDeps: meta.deps || [],\n delegateType: R3FactoryDelegateType.Function,\n });\n }\n else {\n result = { statements: [], expression: arrowFn([], meta.useFactory.callFn([])) };\n }\n }\n else if (meta.useValue !== undefined) {\n // Note: it's safe to use `meta.useValue` instead of the `USE_VALUE in meta` check used for\n // client code because meta.useValue is an Expression which will be defined even if the actual\n // value is undefined.\n result = compileFactoryFunction({\n ...factoryMeta,\n expression: meta.useValue.expression,\n });\n }\n else if (meta.useExisting !== undefined) {\n // useExisting is an `inject` call on the existing token.\n result = compileFactoryFunction({\n ...factoryMeta,\n expression: importExpr(Identifiers.inject).callFn([meta.useExisting.expression]),\n });\n }\n else {\n result = {\n statements: [],\n expression: delegateToFactory(meta.type.value, meta.type.value, resolveForwardRefs),\n };\n }\n const token = meta.type.value;\n const injectableProps = new DefinitionMap();\n injectableProps.set('token', token);\n injectableProps.set('factory', result.expression);\n // Only generate providedIn property if it has a non-null value\n if (meta.providedIn.expression.value !== null) {\n injectableProps.set('providedIn', convertFromMaybeForwardRefExpression(meta.providedIn));\n }\n const expression = importExpr(Identifiers.ɵɵdefineInjectable)\n .callFn([injectableProps.toLiteralMap()], undefined, true);\n return {\n expression,\n type: createInjectableType(meta),\n statements: result.statements,\n };\n}\nfunction createInjectableType(meta) {\n return new ExpressionType(importExpr(Identifiers.InjectableDeclaration, [\n typeWithParameters(meta.type.type, meta.typeArgumentCount),\n ]));\n}\nfunction delegateToFactory(type, useType, unwrapForwardRefs) {\n if (type.node === useType.node) {\n // The types are the same, so we can simply delegate directly to the type's factory.\n // ```\n // factory: type.ɵfac\n // ```\n return useType.prop('ɵfac');\n }\n if (!unwrapForwardRefs) {\n // The type is not wrapped in a `forwardRef()`, so we create a simple factory function that\n // accepts a sub-type as an argument.\n // ```\n // factory: function(t) { return useType.ɵfac(t); }\n // ```\n return createFactoryFunction(useType);\n }\n // The useType is actually wrapped in a `forwardRef()` so we need to resolve that before\n // calling its factory.\n // ```\n // factory: function(t) { return core.resolveForwardRef(type).ɵfac(t); }\n // ```\n const unwrappedType = importExpr(Identifiers.resolveForwardRef).callFn([useType]);\n return createFactoryFunction(unwrappedType);\n}\nfunction createFactoryFunction(type) {\n const t = new FnParam('__ngFactoryType__', DYNAMIC_TYPE);\n return arrowFn([t], type.prop('ɵfac').callFn([variable(t.name)]));\n}\n\nconst UNUSABLE_INTERPOLATION_REGEXPS = [\n /@/, // control flow reserved symbol\n /^\\s*$/, // empty\n /[<>]/, // html tag\n /^[{}]$/, // i18n expansion\n /&(#|[a-z])/i, // character reference,\n /^\\/\\//, // comment\n];\nfunction assertInterpolationSymbols(identifier, value) {\n if (value != null && !(Array.isArray(value) && value.length == 2)) {\n throw new Error(`Expected '${identifier}' to be an array, [start, end].`);\n }\n else if (value != null) {\n const start = value[0];\n const end = value[1];\n // Check for unusable interpolation symbols\n UNUSABLE_INTERPOLATION_REGEXPS.forEach((regexp) => {\n if (regexp.test(start) || regexp.test(end)) {\n throw new Error(`['${start}', '${end}'] contains unusable interpolation symbol.`);\n }\n });\n }\n}\n\nclass InterpolationConfig {\n start;\n end;\n static fromArray(markers) {\n if (!markers) {\n return DEFAULT_INTERPOLATION_CONFIG;\n }\n assertInterpolationSymbols('interpolation', markers);\n return new InterpolationConfig(markers[0], markers[1]);\n }\n constructor(start, end) {\n this.start = start;\n this.end = end;\n }\n}\nconst DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig('{{', '}}');\nconst DEFAULT_CONTAINER_BLOCKS = new Set(['switch']);\n\nconst $EOF = 0;\nconst $BSPACE = 8;\nconst $TAB = 9;\nconst $LF = 10;\nconst $VTAB = 11;\nconst $FF = 12;\nconst $CR = 13;\nconst $SPACE = 32;\nconst $BANG = 33;\nconst $DQ = 34;\nconst $HASH = 35;\nconst $$ = 36;\nconst $PERCENT = 37;\nconst $AMPERSAND = 38;\nconst $SQ = 39;\nconst $LPAREN = 40;\nconst $RPAREN = 41;\nconst $STAR = 42;\nconst $PLUS = 43;\nconst $COMMA = 44;\nconst $MINUS = 45;\nconst $PERIOD = 46;\nconst $SLASH = 47;\nconst $COLON = 58;\nconst $SEMICOLON = 59;\nconst $LT = 60;\nconst $EQ = 61;\nconst $GT = 62;\nconst $QUESTION = 63;\nconst $0 = 48;\nconst $7 = 55;\nconst $9 = 57;\nconst $A = 65;\nconst $E = 69;\nconst $F = 70;\nconst $X = 88;\nconst $Z = 90;\nconst $LBRACKET = 91;\nconst $BACKSLASH = 92;\nconst $RBRACKET = 93;\nconst $CARET = 94;\nconst $_ = 95;\nconst $a = 97;\nconst $b = 98;\nconst $e = 101;\nconst $f = 102;\nconst $n = 110;\nconst $r = 114;\nconst $t = 116;\nconst $u = 117;\nconst $v = 118;\nconst $x = 120;\nconst $z = 122;\nconst $LBRACE = 123;\nconst $BAR = 124;\nconst $RBRACE = 125;\nconst $NBSP = 160;\nconst $PIPE = 124;\nconst $TILDA = 126;\nconst $AT = 64;\nconst $BT = 96;\nfunction isWhitespace(code) {\n return (code >= $TAB && code <= $SPACE) || code == $NBSP;\n}\nfunction isDigit(code) {\n return $0 <= code && code <= $9;\n}\nfunction isAsciiLetter(code) {\n return (code >= $a && code <= $z) || (code >= $A && code <= $Z);\n}\nfunction isAsciiHexDigit(code) {\n return (code >= $a && code <= $f) || (code >= $A && code <= $F) || isDigit(code);\n}\nfunction isNewLine(code) {\n return code === $LF || code === $CR;\n}\nfunction isOctalDigit(code) {\n return $0 <= code && code <= $7;\n}\nfunction isQuote(code) {\n return code === $SQ || code === $DQ || code === $BT;\n}\n\nclass ParseLocation {\n file;\n offset;\n line;\n col;\n constructor(file, offset, line, col) {\n this.file = file;\n this.offset = offset;\n this.line = line;\n this.col = col;\n }\n toString() {\n return this.offset != null ? `${this.file.url}@${this.line}:${this.col}` : this.file.url;\n }\n moveBy(delta) {\n const source = this.file.content;\n const len = source.length;\n let offset = this.offset;\n let line = this.line;\n let col = this.col;\n while (offset > 0 && delta < 0) {\n offset--;\n delta++;\n const ch = source.charCodeAt(offset);\n if (ch == $LF) {\n line--;\n const priorLine = source\n .substring(0, offset - 1)\n .lastIndexOf(String.fromCharCode($LF));\n col = priorLine > 0 ? offset - priorLine : offset;\n }\n else {\n col--;\n }\n }\n while (offset < len && delta > 0) {\n const ch = source.charCodeAt(offset);\n offset++;\n delta--;\n if (ch == $LF) {\n line++;\n col = 0;\n }\n else {\n col++;\n }\n }\n return new ParseLocation(this.file, offset, line, col);\n }\n // Return the source around the location\n // Up to `maxChars` or `maxLines` on each side of the location\n getContext(maxChars, maxLines) {\n const content = this.file.content;\n let startOffset = this.offset;\n if (startOffset != null) {\n if (startOffset > content.length - 1) {\n startOffset = content.length - 1;\n }\n let endOffset = startOffset;\n let ctxChars = 0;\n let ctxLines = 0;\n while (ctxChars < maxChars && startOffset > 0) {\n startOffset--;\n ctxChars++;\n if (content[startOffset] == '\\n') {\n if (++ctxLines == maxLines) {\n break;\n }\n }\n }\n ctxChars = 0;\n ctxLines = 0;\n while (ctxChars < maxChars && endOffset < content.length - 1) {\n endOffset++;\n ctxChars++;\n if (content[endOffset] == '\\n') {\n if (++ctxLines == maxLines) {\n break;\n }\n }\n }\n return {\n before: content.substring(startOffset, this.offset),\n after: content.substring(this.offset, endOffset + 1),\n };\n }\n return null;\n }\n}\nclass ParseSourceFile {\n content;\n url;\n constructor(content, url) {\n this.content = content;\n this.url = url;\n }\n}\nclass ParseSourceSpan {\n start;\n end;\n fullStart;\n details;\n /**\n * Create an object that holds information about spans of tokens/nodes captured during\n * lexing/parsing of text.\n *\n * @param start\n * The location of the start of the span (having skipped leading trivia).\n * Skipping leading trivia makes source-spans more \"user friendly\", since things like HTML\n * elements will appear to begin at the start of the opening tag, rather than at the start of any\n * leading trivia, which could include newlines.\n *\n * @param end\n * The location of the end of the span.\n *\n * @param fullStart\n * The start of the token without skipping the leading trivia.\n * This is used by tooling that splits tokens further, such as extracting Angular interpolations\n * from text tokens. Such tooling creates new source-spans relative to the original token's\n * source-span. If leading trivia characters have been skipped then the new source-spans may be\n * incorrectly offset.\n *\n * @param details\n * Additional information (such as identifier names) that should be associated with the span.\n */\n constructor(start, end, fullStart = start, details = null) {\n this.start = start;\n this.end = end;\n this.fullStart = fullStart;\n this.details = details;\n }\n toString() {\n return this.start.file.content.substring(this.start.offset, this.end.offset);\n }\n}\nvar ParseErrorLevel;\n(function (ParseErrorLevel) {\n ParseErrorLevel[ParseErrorLevel[\"WARNING\"] = 0] = \"WARNING\";\n ParseErrorLevel[ParseErrorLevel[\"ERROR\"] = 1] = \"ERROR\";\n})(ParseErrorLevel || (ParseErrorLevel = {}));\nclass ParseError {\n span;\n msg;\n level;\n relatedError;\n constructor(\n /** Location of the error. */\n span, \n /** Error message. */\n msg, \n /** Severity level of the error. */\n level = ParseErrorLevel.ERROR, \n /**\n * Error that caused the error to be surfaced. For example, an error in a sub-expression that\n * couldn't be parsed. Not guaranteed to be defined, but can be used to provide more context.\n */\n relatedError) {\n this.span = span;\n this.msg = msg;\n this.level = level;\n this.relatedError = relatedError;\n }\n contextualMessage() {\n const ctx = this.span.start.getContext(100, 3);\n return ctx\n ? `${this.msg} (\"${ctx.before}[${ParseErrorLevel[this.level]} ->]${ctx.after}\")`\n : this.msg;\n }\n toString() {\n const details = this.span.details ? `, ${this.span.details}` : '';\n return `${this.contextualMessage()}: ${this.span.start}${details}`;\n }\n}\n/**\n * Generates Source Span object for a given R3 Type for JIT mode.\n *\n * @param kind Component or Directive.\n * @param typeName name of the Component or Directive.\n * @param sourceUrl reference to Component or Directive source.\n * @returns instance of ParseSourceSpan that represent a given Component or Directive.\n */\nfunction r3JitTypeSourceSpan(kind, typeName, sourceUrl) {\n const sourceFileName = `in ${kind} ${typeName} in ${sourceUrl}`;\n const sourceFile = new ParseSourceFile('', sourceFileName);\n return new ParseSourceSpan(new ParseLocation(sourceFile, -1, -1, -1), new ParseLocation(sourceFile, -1, -1, -1));\n}\nlet _anonymousTypeIndex = 0;\nfunction identifierName(compileIdentifier) {\n if (!compileIdentifier || !compileIdentifier.reference) {\n return null;\n }\n const ref = compileIdentifier.reference;\n if (ref['__anonymousType']) {\n return ref['__anonymousType'];\n }\n if (ref['__forward_ref__']) {\n // We do not want to try to stringify a `forwardRef()` function because that would cause the\n // inner function to be evaluated too early, defeating the whole point of the `forwardRef`.\n return '__forward_ref__';\n }\n let identifier = stringify(ref);\n if (identifier.indexOf('(') >= 0) {\n // case: anonymous functions!\n identifier = `anonymous_${_anonymousTypeIndex++}`;\n ref['__anonymousType'] = identifier;\n }\n else {\n identifier = sanitizeIdentifier(identifier);\n }\n return identifier;\n}\nfunction sanitizeIdentifier(name) {\n return name.replace(/\\W/g, '_');\n}\n\n/**\n * In TypeScript, tagged template functions expect a \"template object\", which is an array of\n * \"cooked\" strings plus a `raw` property that contains an array of \"raw\" strings. This is\n * typically constructed with a function called `__makeTemplateObject(cooked, raw)`, but it may not\n * be available in all environments.\n *\n * This is a JavaScript polyfill that uses __makeTemplateObject when it's available, but otherwise\n * creates an inline helper with the same functionality.\n *\n * In the inline function, if `Object.defineProperty` is available we use that to attach the `raw`\n * array.\n */\nconst makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,\"raw\",{value:t}):e.raw=t,e})';\nclass AbstractJsEmitterVisitor extends AbstractEmitterVisitor {\n constructor() {\n super(false);\n }\n visitWrappedNodeExpr(ast, ctx) {\n throw new Error('Cannot emit a WrappedNodeExpr in Javascript.');\n }\n visitDeclareVarStmt(stmt, ctx) {\n ctx.print(stmt, `var ${stmt.name}`);\n if (stmt.value) {\n ctx.print(stmt, ' = ');\n stmt.value.visitExpression(this, ctx);\n }\n ctx.println(stmt, `;`);\n return null;\n }\n visitTaggedTemplateExpr(ast, ctx) {\n // The following convoluted piece of code is effectively the downlevelled equivalent of\n // ```\n // tag`...`\n // ```\n // which is effectively like:\n // ```\n // tag(__makeTemplateObject(cooked, raw), expression1, expression2, ...);\n // ```\n const elements = ast.template.elements;\n ast.tag.visitExpression(this, ctx);\n ctx.print(ast, `(${makeTemplateObjectPolyfill}(`);\n ctx.print(ast, `[${elements.map((part) => escapeIdentifier(part.text, false)).join(', ')}], `);\n ctx.print(ast, `[${elements.map((part) => escapeIdentifier(part.rawText, false)).join(', ')}])`);\n ast.template.expressions.forEach((expression) => {\n ctx.print(ast, ', ');\n expression.visitExpression(this, ctx);\n });\n ctx.print(ast, ')');\n return null;\n }\n visitFunctionExpr(ast, ctx) {\n ctx.print(ast, `function${ast.name ? ' ' + ast.name : ''}(`);\n this._visitParams(ast.params, ctx);\n ctx.println(ast, `) {`);\n ctx.incIndent();\n this.visitAllStatements(ast.statements, ctx);\n ctx.decIndent();\n ctx.print(ast, `}`);\n return null;\n }\n visitArrowFunctionExpr(ast, ctx) {\n ctx.print(ast, '(');\n this._visitParams(ast.params, ctx);\n ctx.print(ast, ') =>');\n if (Array.isArray(ast.body)) {\n ctx.println(ast, `{`);\n ctx.incIndent();\n this.visitAllStatements(ast.body, ctx);\n ctx.decIndent();\n ctx.print(ast, `}`);\n }\n else {\n const isObjectLiteral = ast.body instanceof LiteralMapExpr;\n if (isObjectLiteral) {\n ctx.print(ast, '(');\n }\n ast.body.visitExpression(this, ctx);\n if (isObjectLiteral) {\n ctx.print(ast, ')');\n }\n }\n return null;\n }\n visitDeclareFunctionStmt(stmt, ctx) {\n ctx.print(stmt, `function ${stmt.name}(`);\n this._visitParams(stmt.params, ctx);\n ctx.println(stmt, `) {`);\n ctx.incIndent();\n this.visitAllStatements(stmt.statements, ctx);\n ctx.decIndent();\n ctx.println(stmt, `}`);\n return null;\n }\n visitLocalizedString(ast, ctx) {\n // The following convoluted piece of code is effectively the downlevelled equivalent of\n // ```\n // $localize `...`\n // ```\n // which is effectively like:\n // ```\n // $localize(__makeTemplateObject(cooked, raw), expression1, expression2, ...);\n // ```\n ctx.print(ast, `$localize(${makeTemplateObjectPolyfill}(`);\n const parts = [ast.serializeI18nHead()];\n for (let i = 1; i < ast.messageParts.length; i++) {\n parts.push(ast.serializeI18nTemplatePart(i));\n }\n ctx.print(ast, `[${parts.map((part) => escapeIdentifier(part.cooked, false)).join(', ')}], `);\n ctx.print(ast, `[${parts.map((part) => escapeIdentifier(part.raw, false)).join(', ')}])`);\n ast.expressions.forEach((expression) => {\n ctx.print(ast, ', ');\n expression.visitExpression(this, ctx);\n });\n ctx.print(ast, ')');\n return null;\n }\n _visitParams(params, ctx) {\n this.visitAllObjects((param) => ctx.print(null, param.name), params, ctx, ',');\n }\n}\n\n/**\n * @fileoverview\n * A module to facilitate use of a Trusted Types policy within the JIT\n * compiler. It lazily constructs the Trusted Types policy, providing helper\n * utilities for promoting strings to Trusted Types. When Trusted Types are not\n * available, strings are used as a fallback.\n * @security All use of this module is security-sensitive and should go through\n * security review.\n */\n/**\n * The Trusted Types policy, or null if Trusted Types are not\n * enabled/supported, or undefined if the policy has not been created yet.\n */\nlet policy;\n/**\n * Returns the Trusted Types policy, or null if Trusted Types are not\n * enabled/supported. The first call to this function will create the policy.\n */\nfunction getPolicy() {\n if (policy === undefined) {\n const trustedTypes = _global['trustedTypes'];\n policy = null;\n if (trustedTypes) {\n try {\n policy = trustedTypes.createPolicy('angular#unsafe-jit', {\n createScript: (s) => s,\n });\n }\n catch {\n // trustedTypes.createPolicy throws if called with a name that is\n // already registered, even in report-only mode. Until the API changes,\n // catch the error not to break the applications functionally. In such\n // cases, the code will fall back to using strings.\n }\n }\n }\n return policy;\n}\n/**\n * Unsafely promote a string to a TrustedScript, falling back to strings when\n * Trusted Types are not available.\n * @security In particular, it must be assured that the provided string will\n * never cause an XSS vulnerability if used in a context that will be\n * interpreted and executed as a script by a browser, e.g. when calling eval.\n */\nfunction trustedScriptFromString(script) {\n return getPolicy()?.createScript(script) || script;\n}\n/**\n * Unsafely call the Function constructor with the given string arguments.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only called from the JIT compiler, as use in other code can lead to XSS\n * vulnerabilities.\n */\nfunction newTrustedFunctionForJIT(...args) {\n if (!_global['trustedTypes']) {\n // In environments that don't support Trusted Types, fall back to the most\n // straightforward implementation:\n return new Function(...args);\n }\n // Chrome currently does not support passing TrustedScript to the Function\n // constructor. The following implements the workaround proposed on the page\n // below, where the Chromium bug is also referenced:\n // https://github.com/w3c/webappsec-trusted-types/wiki/Trusted-Types-for-function-constructor\n const fnArgs = args.slice(0, -1).join(',');\n const fnBody = args[args.length - 1];\n const body = `(function anonymous(${fnArgs}\n) { ${fnBody}\n})`;\n // Using eval directly confuses the compiler and prevents this module from\n // being stripped out of JS binaries even if not used. The global['eval']\n // indirection fixes that.\n const fn = _global['eval'](trustedScriptFromString(body));\n if (fn.bind === undefined) {\n // Workaround for a browser bug that only exists in Chrome 83, where passing\n // a TrustedScript to eval just returns the TrustedScript back without\n // evaluating it. In that case, fall back to the most straightforward\n // implementation:\n return new Function(...args);\n }\n // To completely mimic the behavior of calling \"new Function\", two more\n // things need to happen:\n // 1. Stringifying the resulting function should return its source code\n fn.toString = () => body;\n // 2. When calling the resulting function, `this` should refer to `global`\n return fn.bind(_global);\n // When Trusted Types support in Function constructors is widely available,\n // the implementation of this function can be simplified to:\n // return new Function(...args.map(a => trustedScriptFromString(a)));\n}\n\n/**\n * A helper class to manage the evaluation of JIT generated code.\n */\nclass JitEvaluator {\n /**\n *\n * @param sourceUrl The URL of the generated code.\n * @param statements An array of Angular statement AST nodes to be evaluated.\n * @param refResolver Resolves `o.ExternalReference`s into values.\n * @param createSourceMaps If true then create a source-map for the generated code and include it\n * inline as a source-map comment.\n * @returns A map of all the variables in the generated code.\n */\n evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {\n const converter = new JitEmitterVisitor(refResolver);\n const ctx = EmitterVisitorContext.createRoot();\n // Ensure generated code is in strict mode\n if (statements.length > 0 && !isUseStrictStatement(statements[0])) {\n statements = [literal('use strict').toStmt(), ...statements];\n }\n converter.visitAllStatements(statements, ctx);\n converter.createReturnStmt(ctx);\n return this.evaluateCode(sourceUrl, ctx, converter.getArgs(), createSourceMaps);\n }\n /**\n * Evaluate a piece of JIT generated code.\n * @param sourceUrl The URL of this generated code.\n * @param ctx A context object that contains an AST of the code to be evaluated.\n * @param vars A map containing the names and values of variables that the evaluated code might\n * reference.\n * @param createSourceMap If true then create a source-map for the generated code and include it\n * inline as a source-map comment.\n * @returns The result of evaluating the code.\n */\n evaluateCode(sourceUrl, ctx, vars, createSourceMap) {\n let fnBody = `\"use strict\";${ctx.toSource()}\\n//# sourceURL=${sourceUrl}`;\n const fnArgNames = [];\n const fnArgValues = [];\n for (const argName in vars) {\n fnArgValues.push(vars[argName]);\n fnArgNames.push(argName);\n }\n if (createSourceMap) {\n // using `new Function(...)` generates a header, 1 line of no arguments, 2 lines otherwise\n // E.g. ```\n // function anonymous(a,b,c\n // /**/) { ... }```\n // We don't want to hard code this fact, so we auto detect it via an empty function first.\n const emptyFn = newTrustedFunctionForJIT(...fnArgNames.concat('return null;')).toString();\n const headerLines = emptyFn.slice(0, emptyFn.indexOf('return null;')).split('\\n').length - 1;\n fnBody += `\\n${ctx.toSourceMapGenerator(sourceUrl, headerLines).toJsComment()}`;\n }\n const fn = newTrustedFunctionForJIT(...fnArgNames.concat(fnBody));\n return this.executeFunction(fn, fnArgValues);\n }\n /**\n * Execute a JIT generated function by calling it.\n *\n * This method can be overridden in tests to capture the functions that are generated\n * by this `JitEvaluator` class.\n *\n * @param fn A function to execute.\n * @param args The arguments to pass to the function being executed.\n * @returns The return value of the executed function.\n */\n executeFunction(fn, args) {\n return fn(...args);\n }\n}\n/**\n * An Angular AST visitor that converts AST nodes into executable JavaScript code.\n */\nclass JitEmitterVisitor extends AbstractJsEmitterVisitor {\n refResolver;\n _evalArgNames = [];\n _evalArgValues = [];\n _evalExportedVars = [];\n constructor(refResolver) {\n super();\n this.refResolver = refResolver;\n }\n createReturnStmt(ctx) {\n const stmt = new ReturnStatement(new LiteralMapExpr(this._evalExportedVars.map((resultVar) => new LiteralMapEntry(resultVar, variable(resultVar), false))));\n stmt.visitStatement(this, ctx);\n }\n getArgs() {\n const result = {};\n for (let i = 0; i < this._evalArgNames.length; i++) {\n result[this._evalArgNames[i]] = this._evalArgValues[i];\n }\n return result;\n }\n visitExternalExpr(ast, ctx) {\n this._emitReferenceToExternal(ast, this.refResolver.resolveExternalReference(ast.value), ctx);\n return null;\n }\n visitWrappedNodeExpr(ast, ctx) {\n this._emitReferenceToExternal(ast, ast.node, ctx);\n return null;\n }\n visitDeclareVarStmt(stmt, ctx) {\n if (stmt.hasModifier(StmtModifier.Exported)) {\n this._evalExportedVars.push(stmt.name);\n }\n return super.visitDeclareVarStmt(stmt, ctx);\n }\n visitDeclareFunctionStmt(stmt, ctx) {\n if (stmt.hasModifier(StmtModifier.Exported)) {\n this._evalExportedVars.push(stmt.name);\n }\n return super.visitDeclareFunctionStmt(stmt, ctx);\n }\n _emitReferenceToExternal(ast, value, ctx) {\n let id = this._evalArgValues.indexOf(value);\n if (id === -1) {\n id = this._evalArgValues.length;\n this._evalArgValues.push(value);\n const name = identifierName({ reference: value }) || 'val';\n this._evalArgNames.push(`jit_${name}_${id}`);\n }\n ctx.print(ast, this._evalArgNames[id]);\n }\n}\nfunction isUseStrictStatement(statement) {\n return statement.isEquivalent(literal('use strict').toStmt());\n}\n\nfunction compileInjector(meta) {\n const definitionMap = new DefinitionMap();\n if (meta.providers !== null) {\n definitionMap.set('providers', meta.providers);\n }\n if (meta.imports.length > 0) {\n definitionMap.set('imports', literalArr(meta.imports));\n }\n const expression = importExpr(Identifiers.defineInjector)\n .callFn([definitionMap.toLiteralMap()], undefined, true);\n const type = createInjectorType(meta);\n return { expression, type, statements: [] };\n}\nfunction createInjectorType(meta) {\n return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));\n}\n\n/**\n * Implementation of `CompileReflector` which resolves references to @angular/core\n * symbols at runtime, according to a consumer-provided mapping.\n *\n * Only supports `resolveExternalReference`, all other methods throw.\n */\nclass R3JitReflector {\n context;\n constructor(context) {\n this.context = context;\n }\n resolveExternalReference(ref) {\n // This reflector only handles @angular/core imports.\n if (ref.moduleName !== '@angular/core') {\n throw new Error(`Cannot resolve external reference to ${ref.moduleName}, only references to @angular/core are supported.`);\n }\n if (!this.context.hasOwnProperty(ref.name)) {\n throw new Error(`No value provided for @angular/core symbol '${ref.name}'.`);\n }\n return this.context[ref.name];\n }\n}\n\n/**\n * How the selector scope of an NgModule (its declarations, imports, and exports) should be emitted\n * as a part of the NgModule definition.\n */\nvar R3SelectorScopeMode;\n(function (R3SelectorScopeMode) {\n /**\n * Emit the declarations inline into the module definition.\n *\n * This option is useful in certain contexts where it's known that JIT support is required. The\n * tradeoff here is that this emit style prevents directives and pipes from being tree-shaken if\n * they are unused, but the NgModule is used.\n */\n R3SelectorScopeMode[R3SelectorScopeMode[\"Inline\"] = 0] = \"Inline\";\n /**\n * Emit the declarations using a side effectful function call, `ɵɵsetNgModuleScope`, that is\n * guarded with the `ngJitMode` flag.\n *\n * This form of emit supports JIT and can be optimized away if the `ngJitMode` flag is set to\n * false, which allows unused directives and pipes to be tree-shaken.\n */\n R3SelectorScopeMode[R3SelectorScopeMode[\"SideEffect\"] = 1] = \"SideEffect\";\n /**\n * Don't generate selector scopes at all.\n *\n * This is useful for contexts where JIT support is known to be unnecessary.\n */\n R3SelectorScopeMode[R3SelectorScopeMode[\"Omit\"] = 2] = \"Omit\";\n})(R3SelectorScopeMode || (R3SelectorScopeMode = {}));\n/**\n * The type of the NgModule meta data.\n * - Global: Used for full and partial compilation modes which mainly includes R3References.\n * - Local: Used for the local compilation mode which mainly includes the raw expressions as appears\n * in the NgModule decorator.\n */\nvar R3NgModuleMetadataKind;\n(function (R3NgModuleMetadataKind) {\n R3NgModuleMetadataKind[R3NgModuleMetadataKind[\"Global\"] = 0] = \"Global\";\n R3NgModuleMetadataKind[R3NgModuleMetadataKind[\"Local\"] = 1] = \"Local\";\n})(R3NgModuleMetadataKind || (R3NgModuleMetadataKind = {}));\n/**\n * Construct an `R3NgModuleDef` for the given `R3NgModuleMetadata`.\n */\nfunction compileNgModule(meta) {\n const statements = [];\n const definitionMap = new DefinitionMap();\n definitionMap.set('type', meta.type.value);\n // Assign bootstrap definition. In local compilation mode (i.e., for\n // `R3NgModuleMetadataKind.LOCAL`) we assign the bootstrap field using the runtime\n // `ɵɵsetNgModuleScope`.\n if (meta.kind === R3NgModuleMetadataKind.Global && meta.bootstrap.length > 0) {\n definitionMap.set('bootstrap', refsToArray(meta.bootstrap, meta.containsForwardDecls));\n }\n if (meta.selectorScopeMode === R3SelectorScopeMode.Inline) {\n // If requested to emit scope information inline, pass the `declarations`, `imports` and\n // `exports` to the `ɵɵdefineNgModule()` call directly.\n if (meta.declarations.length > 0) {\n definitionMap.set('declarations', refsToArray(meta.declarations, meta.containsForwardDecls));\n }\n if (meta.imports.length > 0) {\n definitionMap.set('imports', refsToArray(meta.imports, meta.containsForwardDecls));\n }\n if (meta.exports.length > 0) {\n definitionMap.set('exports', refsToArray(meta.exports, meta.containsForwardDecls));\n }\n }\n else if (meta.selectorScopeMode === R3SelectorScopeMode.SideEffect) {\n // In this mode, scope information is not passed into `ɵɵdefineNgModule` as it\n // would prevent tree-shaking of the declarations, imports and exports references. Instead, it's\n // patched onto the NgModule definition with a `ɵɵsetNgModuleScope` call that's guarded by the\n // `ngJitMode` flag.\n const setNgModuleScopeCall = generateSetNgModuleScopeCall(meta);\n if (setNgModuleScopeCall !== null) {\n statements.push(setNgModuleScopeCall);\n }\n }\n else {\n // Selector scope emit was not requested, so skip it.\n }\n if (meta.schemas !== null && meta.schemas.length > 0) {\n definitionMap.set('schemas', literalArr(meta.schemas.map((ref) => ref.value)));\n }\n if (meta.id !== null) {\n definitionMap.set('id', meta.id);\n // Generate a side-effectful call to register this NgModule by its id, as per the semantics of\n // NgModule ids.\n statements.push(importExpr(Identifiers.registerNgModuleType).callFn([meta.type.value, meta.id]).toStmt());\n }\n const expression = importExpr(Identifiers.defineNgModule)\n .callFn([definitionMap.toLiteralMap()], undefined, true);\n const type = createNgModuleType(meta);\n return { expression, type, statements };\n}\n/**\n * This function is used in JIT mode to generate the call to `ɵɵdefineNgModule()` from a call to\n * `ɵɵngDeclareNgModule()`.\n */\nfunction compileNgModuleDeclarationExpression(meta) {\n const definitionMap = new DefinitionMap();\n definitionMap.set('type', new WrappedNodeExpr(meta.type));\n if (meta.bootstrap !== undefined) {\n definitionMap.set('bootstrap', new WrappedNodeExpr(meta.bootstrap));\n }\n if (meta.declarations !== undefined) {\n definitionMap.set('declarations', new WrappedNodeExpr(meta.declarations));\n }\n if (meta.imports !== undefined) {\n definitionMap.set('imports', new WrappedNodeExpr(meta.imports));\n }\n if (meta.exports !== undefined) {\n definitionMap.set('exports', new WrappedNodeExpr(meta.exports));\n }\n if (meta.schemas !== undefined) {\n definitionMap.set('schemas', new WrappedNodeExpr(meta.schemas));\n }\n if (meta.id !== undefined) {\n definitionMap.set('id', new WrappedNodeExpr(meta.id));\n }\n return importExpr(Identifiers.defineNgModule).callFn([definitionMap.toLiteralMap()]);\n}\nfunction createNgModuleType(meta) {\n if (meta.kind === R3NgModuleMetadataKind.Local) {\n return new ExpressionType(meta.type.value);\n }\n const { type: moduleType, declarations, exports, imports, includeImportTypes, publicDeclarationTypes, } = meta;\n return new ExpressionType(importExpr(Identifiers.NgModuleDeclaration, [\n new ExpressionType(moduleType.type),\n publicDeclarationTypes === null\n ? tupleTypeOf(declarations)\n : tupleOfTypes(publicDeclarationTypes),\n includeImportTypes ? tupleTypeOf(imports) : NONE_TYPE,\n tupleTypeOf(exports),\n ]));\n}\n/**\n * Generates a function call to `ɵɵsetNgModuleScope` with all necessary information so that the\n * transitive module scope can be computed during runtime in JIT mode. This call is marked pure\n * such that the references to declarations, imports and exports may be elided causing these\n * symbols to become tree-shakeable.\n */\nfunction generateSetNgModuleScopeCall(meta) {\n const scopeMap = new DefinitionMap();\n if (meta.kind === R3NgModuleMetadataKind.Global) {\n if (meta.declarations.length > 0) {\n scopeMap.set('declarations', refsToArray(meta.declarations, meta.containsForwardDecls));\n }\n }\n else {\n if (meta.declarationsExpression) {\n scopeMap.set('declarations', meta.declarationsExpression);\n }\n }\n if (meta.kind === R3NgModuleMetadataKind.Global) {\n if (meta.imports.length > 0) {\n scopeMap.set('imports', refsToArray(meta.imports, meta.containsForwardDecls));\n }\n }\n else {\n if (meta.importsExpression) {\n scopeMap.set('imports', meta.importsExpression);\n }\n }\n if (meta.kind === R3NgModuleMetadataKind.Global) {\n if (meta.exports.length > 0) {\n scopeMap.set('exports', refsToArray(meta.exports, meta.containsForwardDecls));\n }\n }\n else {\n if (meta.exportsExpression) {\n scopeMap.set('exports', meta.exportsExpression);\n }\n }\n if (meta.kind === R3NgModuleMetadataKind.Local && meta.bootstrapExpression) {\n scopeMap.set('bootstrap', meta.bootstrapExpression);\n }\n if (Object.keys(scopeMap.values).length === 0) {\n return null;\n }\n // setNgModuleScope(...)\n const fnCall = new InvokeFunctionExpr(\n /* fn */ importExpr(Identifiers.setNgModuleScope), \n /* args */ [meta.type.value, scopeMap.toLiteralMap()]);\n // (ngJitMode guard) && setNgModuleScope(...)\n const guardedCall = jitOnlyGuardedExpression(fnCall);\n // function() { (ngJitMode guard) && setNgModuleScope(...); }\n const iife = new FunctionExpr(/* params */ [], /* statements */ [guardedCall.toStmt()]);\n // (function() { (ngJitMode guard) && setNgModuleScope(...); })()\n const iifeCall = new InvokeFunctionExpr(/* fn */ iife, /* args */ []);\n return iifeCall.toStmt();\n}\nfunction tupleTypeOf(exp) {\n const types = exp.map((ref) => typeofExpr(ref.type));\n return exp.length > 0 ? expressionType(literalArr(types)) : NONE_TYPE;\n}\nfunction tupleOfTypes(types) {\n const typeofTypes = types.map((type) => typeofExpr(type));\n return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;\n}\n\nfunction compilePipeFromMetadata(metadata) {\n const definitionMapValues = [];\n // e.g. `name: 'myPipe'`\n definitionMapValues.push({ key: 'name', value: literal(metadata.pipeName), quoted: false });\n // e.g. `type: MyPipe`\n definitionMapValues.push({ key: 'type', value: metadata.type.value, quoted: false });\n // e.g. `pure: true`\n definitionMapValues.push({ key: 'pure', value: literal(metadata.pure), quoted: false });\n if (metadata.isStandalone === false) {\n definitionMapValues.push({ key: 'standalone', value: literal(false), quoted: false });\n }\n const expression = importExpr(Identifiers.definePipe)\n .callFn([literalMap(definitionMapValues)], undefined, true);\n const type = createPipeType(metadata);\n return { expression, type, statements: [] };\n}\nfunction createPipeType(metadata) {\n return new ExpressionType(importExpr(Identifiers.PipeDeclaration, [\n typeWithParameters(metadata.type.type, metadata.typeArgumentCount),\n new ExpressionType(new LiteralExpr(metadata.pipeName)),\n new ExpressionType(new LiteralExpr(metadata.isStandalone)),\n ]));\n}\n\nvar R3TemplateDependencyKind;\n(function (R3TemplateDependencyKind) {\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"Directive\"] = 0] = \"Directive\";\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"Pipe\"] = 1] = \"Pipe\";\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"NgModule\"] = 2] = \"NgModule\";\n})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));\n\n/**\n * The following set contains all keywords that can be used in the animation css shorthand\n * property and is used during the scoping of keyframes to make sure such keywords\n * are not modified.\n */\nconst animationKeywords = new Set([\n // global values\n 'inherit',\n 'initial',\n 'revert',\n 'unset',\n // animation-direction\n 'alternate',\n 'alternate-reverse',\n 'normal',\n 'reverse',\n // animation-fill-mode\n 'backwards',\n 'both',\n 'forwards',\n 'none',\n // animation-play-state\n 'paused',\n 'running',\n // animation-timing-function\n 'ease',\n 'ease-in',\n 'ease-in-out',\n 'ease-out',\n 'linear',\n 'step-start',\n 'step-end',\n // `steps()` function\n 'end',\n 'jump-both',\n 'jump-end',\n 'jump-none',\n 'jump-start',\n 'start',\n]);\n/**\n * The following array contains all of the CSS at-rule identifiers which are scoped.\n */\nconst scopedAtRuleIdentifiers = [\n '@media',\n '@supports',\n '@document',\n '@layer',\n '@container',\n '@scope',\n '@starting-style',\n];\n/**\n * The following class has its origin from a port of shadowCSS from webcomponents.js to TypeScript.\n * It has since diverge in many ways to tailor Angular's needs.\n *\n * Source:\n * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js\n *\n * The original file level comment is reproduced below\n */\n/*\n This is a limited shim for ShadowDOM css styling.\n https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#styles\n\n The intention here is to support only the styling features which can be\n relatively simply implemented. The goal is to allow users to avoid the\n most obvious pitfalls and do so without compromising performance significantly.\n For ShadowDOM styling that's not covered here, a set of best practices\n can be provided that should allow users to accomplish more complex styling.\n\n The following is a list of specific ShadowDOM styling features and a brief\n discussion of the approach used to shim.\n\n Shimmed features:\n\n * :host, :host-context: ShadowDOM allows styling of the shadowRoot's host\n element using the :host rule. To shim this feature, the :host styles are\n reformatted and prefixed with a given scope name and promoted to a\n document level stylesheet.\n For example, given a scope name of .foo, a rule like this:\n\n :host {\n background: red;\n }\n }\n\n becomes:\n\n .foo {\n background: red;\n }\n\n * encapsulation: Styles defined within ShadowDOM, apply only to\n dom inside the ShadowDOM.\n The selectors are scoped by adding an attribute selector suffix to each\n simple selector that contains the host element tag name. Each element\n in the element's ShadowDOM template is also given the scope attribute.\n Thus, these rules match only elements that have the scope attribute.\n For example, given a scope name of x-foo, a rule like this:\n\n div {\n font-weight: bold;\n }\n\n becomes:\n\n div[x-foo] {\n font-weight: bold;\n }\n\n Note that elements that are dynamically added to a scope must have the scope\n selector added to them manually.\n\n * upper/lower bound encapsulation: Styles which are defined outside a\n shadowRoot should not cross the ShadowDOM boundary and should not apply\n inside a shadowRoot.\n\n This styling behavior is not emulated. Some possible ways to do this that\n were rejected due to complexity and/or performance concerns include: (1) reset\n every possible property for every possible selector for a given scope name;\n (2) re-implement css in javascript.\n\n As an alternative, users should make sure to use selectors\n specific to the scope in which they are working.\n\n * ::distributed: This behavior is not emulated. It's often not necessary\n to style the contents of a specific insertion point and instead, descendants\n of the host element can be styled selectively. Users can also create an\n extra node around an insertion point and style that node's contents\n via descendent selectors. For example, with a shadowRoot like this:\n\n <style>\n ::content(div) {\n background: red;\n }\n </style>\n <content></content>\n\n could become:\n\n <style>\n / *@polyfill .content-container div * /\n ::content(div) {\n background: red;\n }\n </style>\n <div class=\"content-container\">\n <content></content>\n </div>\n\n Note the use of @polyfill in the comment above a ShadowDOM specific style\n declaration. This is a directive to the styling shim to use the selector\n in comments in lieu of the next selector when running under polyfill.\n*/\nclass ShadowCss {\n /*\n * Shim some cssText with the given selector. Returns cssText that can be included in the document\n *\n * The selector is the attribute added to all elements inside the host,\n * The hostSelector is the attribute added to the host itself.\n */\n shimCssText(cssText, selector, hostSelector = '') {\n // **NOTE**: Do not strip comments as this will cause component sourcemaps to break\n // due to shift in lines.\n // Collect comments and replace them with a placeholder, this is done to avoid complicating\n // the rule parsing RegExp and keep it safer.\n const comments = [];\n cssText = cssText.replace(_commentRe, (m) => {\n if (m.match(_commentWithHashRe)) {\n comments.push(m);\n }\n else {\n // Replace non hash comments with empty lines.\n // This is done so that we do not leak any sensitive data in comments.\n const newLinesMatches = m.match(_newLinesRe);\n comments.push((newLinesMatches?.join('') ?? '') + '\\n');\n }\n return COMMENT_PLACEHOLDER;\n });\n cssText = this._insertDirectives(cssText);\n const scopedCssText = this._scopeCssText(cssText, selector, hostSelector);\n // Add back comments at the original position.\n let commentIdx = 0;\n return scopedCssText.replace(_commentWithHashPlaceHolderRe, () => comments[commentIdx++]);\n }\n _insertDirectives(cssText) {\n cssText = this._insertPolyfillDirectivesInCssText(cssText);\n return this._insertPolyfillRulesInCssText(cssText);\n }\n /**\n * Process styles to add scope to keyframes.\n *\n * Modify both the names of the keyframes defined in the component styles and also the css\n * animation rules using them.\n *\n * Animation rules using keyframes defined elsewhere are not modified to allow for globally\n * defined keyframes.\n *\n * For example, we convert this css:\n *\n * ```scss\n * .box {\n * animation: box-animation 1s forwards;\n * }\n *\n * @keyframes box-animation {\n * to {\n * background-color: green;\n * }\n * }\n * ```\n *\n * to this:\n *\n * ```scss\n * .box {\n * animation: scopeName_box-animation 1s forwards;\n * }\n *\n * @keyframes scopeName_box-animation {\n * to {\n * background-color: green;\n * }\n * }\n * ```\n *\n * @param cssText the component's css text that needs to be scoped.\n * @param scopeSelector the component's scope selector.\n *\n * @returns the scoped css text.\n */\n _scopeKeyframesRelatedCss(cssText, scopeSelector) {\n const unscopedKeyframesSet = new Set();\n const scopedKeyframesCssText = processRules(cssText, (rule) => this._scopeLocalKeyframeDeclarations(rule, scopeSelector, unscopedKeyframesSet));\n return processRules(scopedKeyframesCssText, (rule) => this._scopeAnimationRule(rule, scopeSelector, unscopedKeyframesSet));\n }\n /**\n * Scopes local keyframes names, returning the updated css rule and it also\n * adds the original keyframe name to a provided set to collect all keyframes names\n * so that it can later be used to scope the animation rules.\n *\n * For example, it takes a rule such as:\n *\n * ```scss\n * @keyframes box-animation {\n * to {\n * background-color: green;\n * }\n * }\n * ```\n *\n * and returns:\n *\n * ```scss\n * @keyframes scopeName_box-animation {\n * to {\n * background-color: green;\n * }\n * }\n * ```\n * and as a side effect it adds \"box-animation\" to the `unscopedKeyframesSet` set\n *\n * @param cssRule the css rule to process.\n * @param scopeSelector the component's scope selector.\n * @param unscopedKeyframesSet the set of unscoped keyframes names (which can be\n * modified as a side effect)\n *\n * @returns the css rule modified with the scoped keyframes name.\n */\n _scopeLocalKeyframeDeclarations(rule, scopeSelector, unscopedKeyframesSet) {\n return {\n ...rule,\n selector: rule.selector.replace(/(^@(?:-webkit-)?keyframes(?:\\s+))(['\"]?)(.+)\\2(\\s*)$/, (_, start, quote, keyframeName, endSpaces) => {\n unscopedKeyframesSet.add(unescapeQuotes(keyframeName, quote));\n return `${start}${quote}${scopeSelector}_${keyframeName}${quote}${endSpaces}`;\n }),\n };\n }\n /**\n * Function used to scope a keyframes name (obtained from an animation declaration)\n * using an existing set of unscopedKeyframes names to discern if the scoping needs to be\n * performed (keyframes names of keyframes not defined in the component's css need not to be\n * scoped).\n *\n * @param keyframe the keyframes name to check.\n * @param scopeSelector the component's scope selector.\n * @param unscopedKeyframesSet the set of unscoped keyframes names.\n *\n * @returns the scoped name of the keyframe, or the original name is the name need not to be\n * scoped.\n */\n _scopeAnimationKeyframe(keyframe, scopeSelector, unscopedKeyframesSet) {\n return keyframe.replace(/^(\\s*)(['\"]?)(.+?)\\2(\\s*)$/, (_, spaces1, quote, name, spaces2) => {\n name = `${unscopedKeyframesSet.has(unescapeQuotes(name, quote)) ? scopeSelector + '_' : ''}${name}`;\n return `${spaces1}${quote}${name}${quote}${spaces2}`;\n });\n }\n /**\n * Regular expression used to extrapolate the possible keyframes from an\n * animation declaration (with possibly multiple animation definitions)\n *\n * The regular expression can be divided in three parts\n * - (^|\\s+|,)\n * captures how many (if any) leading whitespaces are present or a comma\n * - (?:(?:(['\"])((?:\\\\\\\\|\\\\\\2|(?!\\2).)+)\\2)|(-?[A-Za-z][\\w\\-]*))\n * captures two different possible keyframes, ones which are quoted or ones which are valid css\n * indents (custom properties excluded)\n * - (?=[,\\s;]|$)\n * simply matches the end of the possible keyframe, valid endings are: a comma, a space, a\n * semicolon or the end of the string\n */\n _animationDeclarationKeyframesRe = /(^|\\s+|,)(?:(?:(['\"])((?:\\\\\\\\|\\\\\\2|(?!\\2).)+)\\2)|(-?[A-Za-z][\\w\\-]*))(?=[,\\s]|$)/g;\n /**\n * Scope an animation rule so that the keyframes mentioned in such rule\n * are scoped if defined in the component's css and left untouched otherwise.\n *\n * It can scope values of both the 'animation' and 'animation-name' properties.\n *\n * @param rule css rule to scope.\n * @param scopeSelector the component's scope selector.\n * @param unscopedKeyframesSet the set of unscoped keyframes names.\n *\n * @returns the updated css rule.\n **/\n _scopeAnimationRule(rule, scopeSelector, unscopedKeyframesSet) {\n let content = rule.content.replace(/((?:^|\\s+|;)(?:-webkit-)?animation\\s*:\\s*),*([^;]+)/g, (_, start, animationDeclarations) => start +\n animationDeclarations.replace(this._animationDeclarationKeyframesRe, (original, leadingSpaces, quote = '', quotedName, nonQuotedName) => {\n if (quotedName) {\n return `${leadingSpaces}${this._scopeAnimationKeyframe(`${quote}${quotedName}${quote}`, scopeSelector, unscopedKeyframesSet)}`;\n }\n else {\n return animationKeywords.has(nonQuotedName)\n ? original\n : `${leadingSpaces}${this._scopeAnimationKeyframe(nonQuotedName, scopeSelector, unscopedKeyframesSet)}`;\n }\n }));\n content = content.replace(/((?:^|\\s+|;)(?:-webkit-)?animation-name(?:\\s*):(?:\\s*))([^;]+)/g, (_match, start, commaSeparatedKeyframes) => `${start}${commaSeparatedKeyframes\n .split(',')\n .map((keyframe) => this._scopeAnimationKeyframe(keyframe, scopeSelector, unscopedKeyframesSet))\n .join(',')}`);\n return { ...rule, content };\n }\n /*\n * Process styles to convert native ShadowDOM rules that will trip\n * up the css parser; we rely on decorating the stylesheet with inert rules.\n *\n * For example, we convert this rule:\n *\n * polyfill-next-selector { content: ':host menu-item'; }\n * ::content menu-item {\n *\n * to this:\n *\n * scopeName menu-item {\n *\n **/\n _insertPolyfillDirectivesInCssText(cssText) {\n return cssText.replace(_cssContentNextSelectorRe, function (...m) {\n return m[2] + '{';\n });\n }\n /*\n * Process styles to add rules which will only apply under the polyfill\n *\n * For example, we convert this rule:\n *\n * polyfill-rule {\n * content: ':host menu-item';\n * ...\n * }\n *\n * to this:\n *\n * scopeName menu-item {...}\n *\n **/\n _insertPolyfillRulesInCssText(cssText) {\n return cssText.replace(_cssContentRuleRe, (...m) => {\n const rule = m[0].replace(m[1], '').replace(m[2], '');\n return m[4] + rule;\n });\n }\n /* Ensure styles are scoped. Pseudo-scoping takes a rule like:\n *\n * .foo {... }\n *\n * and converts this to\n *\n * scopeName .foo { ... }\n */\n _scopeCssText(cssText, scopeSelector, hostSelector) {\n const unscopedRules = this._extractUnscopedRulesFromCssText(cssText);\n // replace :host and :host-context with -shadowcsshost and -shadowcsshostcontext respectively\n cssText = this._insertPolyfillHostInCssText(cssText);\n cssText = this._convertColonHost(cssText);\n cssText = this._convertColonHostContext(cssText);\n cssText = this._convertShadowDOMSelectors(cssText);\n if (scopeSelector) {\n cssText = this._scopeKeyframesRelatedCss(cssText, scopeSelector);\n cssText = this._scopeSelectors(cssText, scopeSelector, hostSelector);\n }\n cssText = cssText + '\\n' + unscopedRules;\n return cssText.trim();\n }\n /*\n * Process styles to add rules which will only apply under the polyfill\n * and do not process via CSSOM. (CSSOM is destructive to rules on rare\n * occasions, e.g. -webkit-calc on Safari.)\n * For example, we convert this rule:\n *\n * @polyfill-unscoped-rule {\n * content: 'menu-item';\n * ... }\n *\n * to this:\n *\n * menu-item {...}\n *\n **/\n _extractUnscopedRulesFromCssText(cssText) {\n let r = '';\n let m;\n _cssContentUnscopedRuleRe.lastIndex = 0;\n while ((m = _cssContentUnscopedRuleRe.exec(cssText)) !== null) {\n const rule = m[0].replace(m[2], '').replace(m[1], m[4]);\n r += rule + '\\n\\n';\n }\n return r;\n }\n /*\n * convert a rule like :host(.foo) > .bar { }\n *\n * to\n *\n * .foo<scopeName> > .bar\n */\n _convertColonHost(cssText) {\n return cssText.replace(_cssColonHostRe, (_, hostSelectors, otherSelectors) => {\n if (hostSelectors) {\n const convertedSelectors = [];\n const hostSelectorArray = hostSelectors.split(',').map((p) => p.trim());\n for (const hostSelector of hostSelectorArray) {\n if (!hostSelector)\n break;\n const convertedSelector = _polyfillHostNoCombinator + hostSelector.replace(_polyfillHost, '') + otherSelectors;\n convertedSelectors.push(convertedSelector);\n }\n return convertedSelectors.join(',');\n }\n else {\n return _polyfillHostNoCombinator + otherSelectors;\n }\n });\n }\n /*\n * convert a rule like :host-context(.foo) > .bar { }\n *\n * to\n *\n * .foo<scopeName> > .bar, .foo <scopeName> > .bar { }\n *\n * and\n *\n * :host-context(.foo:host) .bar { ... }\n *\n * to\n *\n * .foo<scopeName> .bar { ... }\n */\n _convertColonHostContext(cssText) {\n const length = cssText.length;\n let parens = 0;\n let prev = 0;\n let result = '';\n // Splits up the selectors on their top-level commas, processes the :host-context in them\n // individually and stitches them back together. This ensures that individual selectors don't\n // affect each other.\n for (let i = 0; i < length; i++) {\n const char = cssText[i];\n // If we hit a comma and there are no open parentheses, take the current chunk and process it.\n if (char === ',' && parens === 0) {\n result += this._convertColonHostContextInSelectorPart(cssText.slice(prev, i)) + ',';\n prev = i + 1;\n continue;\n }\n // We've hit the end. Take everything since the last comma.\n if (i === length - 1) {\n result += this._convertColonHostContextInSelectorPart(cssText.slice(prev));\n break;\n }\n if (char === '(') {\n parens++;\n }\n else if (char === ')') {\n parens--;\n }\n }\n return result;\n }\n _convertColonHostContextInSelectorPart(cssText) {\n return cssText.replace(_cssColonHostContextReGlobal, (selectorText, pseudoPrefix) => {\n // We have captured a selector that contains a `:host-context` rule.\n // For backward compatibility `:host-context` may contain a comma separated list of selectors.\n // Each context selector group will contain a list of host-context selectors that must match\n // an ancestor of the host.\n // (Normally `contextSelectorGroups` will only contain a single array of context selectors.)\n const contextSelectorGroups = [[]];\n // There may be more than `:host-context` in this selector so `selectorText` could look like:\n // `:host-context(.one):host-context(.two)`.\n // Execute `_cssColonHostContextRe` over and over until we have extracted all the\n // `:host-context` selectors from this selector.\n let match;\n while ((match = _cssColonHostContextRe.exec(selectorText))) {\n // `match` = [':host-context(<selectors>)<rest>', <selectors>, <rest>]\n // The `<selectors>` could actually be a comma separated list: `:host-context(.one, .two)`.\n const newContextSelectors = (match[1] ?? '')\n .trim()\n .split(',')\n .map((m) => m.trim())\n .filter((m) => m !== '');\n // We must duplicate the current selector group for each of these new selectors.\n // For example if the current groups are:\n // ```\n // [\n // ['a', 'b', 'c'],\n // ['x', 'y', 'z'],\n // ]\n // ```\n // And we have a new set of comma separated selectors: `:host-context(m,n)` then the new\n // groups are:\n // ```\n // [\n // ['a', 'b', 'c', 'm'],\n // ['x', 'y', 'z', 'm'],\n // ['a', 'b', 'c', 'n'],\n // ['x', 'y', 'z', 'n'],\n // ]\n // ```\n const contextSelectorGroupsLength = contextSelectorGroups.length;\n repeatGroups(contextSelectorGroups, newContextSelectors.length);\n for (let i = 0; i < newContextSelectors.length; i++) {\n for (let j = 0; j < contextSelectorGroupsLength; j++) {\n contextSelectorGroups[j + i * contextSelectorGroupsLength].push(newContextSelectors[i]);\n }\n }\n // Update the `selectorText` and see repeat to see if there are more `:host-context`s.\n selectorText = match[2];\n }\n // The context selectors now must be combined with each other to capture all the possible\n // selectors that `:host-context` can match. See `_combineHostContextSelectors()` for more\n // info about how this is done.\n return contextSelectorGroups\n .map((contextSelectors) => _combineHostContextSelectors(contextSelectors, selectorText, pseudoPrefix))\n .join(', ');\n });\n }\n /*\n * Convert combinators like ::shadow and pseudo-elements like ::content\n * by replacing with space.\n */\n _convertShadowDOMSelectors(cssText) {\n return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);\n }\n // change a selector like 'div' to 'name div'\n _scopeSelectors(cssText, scopeSelector, hostSelector) {\n return processRules(cssText, (rule) => {\n let selector = rule.selector;\n let content = rule.content;\n if (rule.selector[0] !== '@') {\n selector = this._scopeSelector({\n selector,\n scopeSelector,\n hostSelector,\n isParentSelector: true,\n });\n }\n else if (scopedAtRuleIdentifiers.some((atRule) => rule.selector.startsWith(atRule))) {\n content = this._scopeSelectors(rule.content, scopeSelector, hostSelector);\n }\n else if (rule.selector.startsWith('@font-face') || rule.selector.startsWith('@page')) {\n content = this._stripScopingSelectors(rule.content);\n }\n return new CssRule(selector, content);\n });\n }\n /**\n * Handle a css text that is within a rule that should not contain scope selectors by simply\n * removing them! An example of such a rule is `@font-face`.\n *\n * `@font-face` rules cannot contain nested selectors. Nor can they be nested under a selector.\n * Normally this would be a syntax error by the author of the styles. But in some rare cases, such\n * as importing styles from a library, and applying `:host ::ng-deep` to the imported styles, we\n * can end up with broken css if the imported styles happen to contain @font-face rules.\n *\n * For example:\n *\n * ```\n * :host ::ng-deep {\n * import 'some/lib/containing/font-face';\n * }\n *\n * Similar logic applies to `@page` rules which can contain a particular set of properties,\n * as well as some specific at-rules. Since they can't be encapsulated, we have to strip\n * any scoping selectors from them. For more information: https://www.w3.org/TR/css-page-3\n * ```\n */\n _stripScopingSelectors(cssText) {\n return processRules(cssText, (rule) => {\n const selector = rule.selector\n .replace(_shadowDeepSelectors, ' ')\n .replace(_polyfillHostNoCombinatorRe, ' ');\n return new CssRule(selector, rule.content);\n });\n }\n _safeSelector;\n _shouldScopeIndicator;\n // `isParentSelector` is used to distinguish the selectors which are coming from\n // the initial selector string and any nested selectors, parsed recursively,\n // for example `selector = 'a:where(.one)'` could be the parent, while recursive call\n // would have `selector = '.one'`.\n _scopeSelector({ selector, scopeSelector, hostSelector, isParentSelector = false, }) {\n // Split the selector into independent parts by `,` (comma) unless\n // comma is within parenthesis, for example `:is(.one, two)`.\n // Negative lookup after comma allows not splitting inside nested parenthesis,\n // up to three levels (((,))).\n const selectorSplitRe = / ?,(?!(?:[^)(]*(?:\\([^)(]*(?:\\([^)(]*(?:\\([^)(]*\\)[^)(]*)*\\)[^)(]*)*\\)[^)(]*)*\\))) ?/;\n return selector\n .split(selectorSplitRe)\n .map((part) => part.split(_shadowDeepSelectors))\n .map((deepParts) => {\n const [shallowPart, ...otherParts] = deepParts;\n const applyScope = (shallowPart) => {\n if (this._selectorNeedsScoping(shallowPart, scopeSelector)) {\n return this._applySelectorScope({\n selector: shallowPart,\n scopeSelector,\n hostSelector,\n isParentSelector,\n });\n }\n else {\n return shallowPart;\n }\n };\n return [applyScope(shallowPart), ...otherParts].join(' ');\n })\n .join(', ');\n }\n _selectorNeedsScoping(selector, scopeSelector) {\n const re = this._makeScopeMatcher(scopeSelector);\n return !re.test(selector);\n }\n _makeScopeMatcher(scopeSelector) {\n const lre = /\\[/g;\n const rre = /\\]/g;\n scopeSelector = scopeSelector.replace(lre, '\\\\[').replace(rre, '\\\\]');\n return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');\n }\n // scope via name and [is=name]\n _applySimpleSelectorScope(selector, scopeSelector, hostSelector) {\n // In Android browser, the lastIndex is not reset when the regex is used in String.replace()\n _polyfillHostRe.lastIndex = 0;\n if (_polyfillHostRe.test(selector)) {\n const replaceBy = `[${hostSelector}]`;\n let result = selector;\n while (result.match(_polyfillHostNoCombinatorRe)) {\n result = result.replace(_polyfillHostNoCombinatorRe, (_hnc, selector) => {\n return selector.replace(/([^:\\)]*)(:*)(.*)/, (_, before, colon, after) => {\n return before + replaceBy + colon + after;\n });\n });\n }\n return result.replace(_polyfillHostRe, replaceBy);\n }\n return scopeSelector + ' ' + selector;\n }\n // return a selector with [name] suffix on each simple selector\n // e.g. .foo.bar > .zot becomes .foo[name].bar[name] > .zot[name] /** @internal */\n _applySelectorScope({ selector, scopeSelector, hostSelector, isParentSelector, }) {\n const isRe = /\\[is=([^\\]]*)\\]/g;\n scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);\n const attrName = `[${scopeSelector}]`;\n const _scopeSelectorPart = (p) => {\n let scopedP = p.trim();\n if (!scopedP) {\n return p;\n }\n if (p.includes(_polyfillHostNoCombinator)) {\n scopedP = this._applySimpleSelectorScope(p, scopeSelector, hostSelector);\n if (!p.match(_polyfillHostNoCombinatorOutsidePseudoFunction)) {\n const [_, before, colon, after] = scopedP.match(/([^:]*)(:*)([\\s\\S]*)/);\n scopedP = before + attrName + colon + after;\n }\n }\n else {\n // remove :host since it should be unnecessary\n const t = p.replace(_polyfillHostRe, '');\n if (t.length > 0) {\n const matches = t.match(/([^:]*)(:*)([\\s\\S]*)/);\n if (matches) {\n scopedP = matches[1] + attrName + matches[2] + matches[3];\n }\n }\n }\n return scopedP;\n };\n // Wraps `_scopeSelectorPart()` to not use it directly on selectors with\n // pseudo selector functions like `:where()`. Selectors within pseudo selector\n // functions are recursively sent to `_scopeSelector()`.\n const _pseudoFunctionAwareScopeSelectorPart = (selectorPart) => {\n let scopedPart = '';\n // Collect all outer `:where()` and `:is()` selectors,\n // counting parenthesis to keep nested selectors intact.\n const pseudoSelectorParts = [];\n let pseudoSelectorMatch;\n while ((pseudoSelectorMatch = _cssPrefixWithPseudoSelectorFunction.exec(selectorPart)) !== null) {\n let openedBrackets = 1;\n let index = _cssPrefixWithPseudoSelectorFunction.lastIndex;\n while (index < selectorPart.length) {\n const currentSymbol = selectorPart[index];\n index++;\n if (currentSymbol === '(') {\n openedBrackets++;\n continue;\n }\n if (currentSymbol === ')') {\n openedBrackets--;\n if (openedBrackets === 0) {\n break;\n }\n continue;\n }\n }\n pseudoSelectorParts.push(`${pseudoSelectorMatch[0]}${selectorPart.slice(_cssPrefixWithPseudoSelectorFunction.lastIndex, index)}`);\n _cssPrefixWithPseudoSelectorFunction.lastIndex = index;\n }\n // If selector consists of only `:where()` and `:is()` on the outer level\n // scope those pseudo-selectors individually, otherwise scope the whole\n // selector.\n if (pseudoSelectorParts.join('') === selectorPart) {\n scopedPart = pseudoSelectorParts\n .map((selectorPart) => {\n const [cssPseudoSelectorFunction] = selectorPart.match(_cssPrefixWithPseudoSelectorFunction) ?? [];\n // Unwrap the pseudo selector to scope its contents.\n // For example,\n // - `:where(selectorToScope)` -> `selectorToScope`;\n // - `:is(.foo, .bar)` -> `.foo, .bar`.\n const selectorToScope = selectorPart.slice(cssPseudoSelectorFunction?.length, -1);\n if (selectorToScope.includes(_polyfillHostNoCombinator)) {\n this._shouldScopeIndicator = true;\n }\n const scopedInnerPart = this._scopeSelector({\n selector: selectorToScope,\n scopeSelector,\n hostSelector,\n });\n // Put the result back into the pseudo selector function.\n return `${cssPseudoSelectorFunction}${scopedInnerPart})`;\n })\n .join('');\n }\n else {\n this._shouldScopeIndicator =\n this._shouldScopeIndicator || selectorPart.includes(_polyfillHostNoCombinator);\n scopedPart = this._shouldScopeIndicator ? _scopeSelectorPart(selectorPart) : selectorPart;\n }\n return scopedPart;\n };\n if (isParentSelector) {\n this._safeSelector = new SafeSelector(selector);\n selector = this._safeSelector.content();\n }\n let scopedSelector = '';\n let startIndex = 0;\n let res;\n // Combinators aren't used as a delimiter if they are within parenthesis,\n // for example `:where(.one .two)` stays intact.\n // Similarly to selector separation by comma initially, negative lookahead\n // is used here to not break selectors within nested parenthesis up to three\n // nested layers.\n const sep = /( |>|\\+|~(?!=))(?!([^)(]*(?:\\([^)(]*(?:\\([^)(]*(?:\\([^)(]*\\)[^)(]*)*\\)[^)(]*)*\\)[^)(]*)*\\)))\\s*/g;\n // If a selector appears before :host it should not be shimmed as it\n // matches on ancestor elements and not on elements in the host's shadow\n // `:host-context(div)` is transformed to\n // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`\n // the `div` is not part of the component in the 2nd selectors and should not be scoped.\n // Historically `component-tag:host` was matching the component so we also want to preserve\n // this behavior to avoid breaking legacy apps (it should not match).\n // The behavior should be:\n // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)\n // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a\n // `:host-context(tag)`)\n const hasHost = selector.includes(_polyfillHostNoCombinator);\n // Only scope parts after or on the same level as the first `-shadowcsshost-no-combinator`\n // when it is present. The selector has the same level when it is a part of a pseudo\n // selector, like `:where()`, for example `:where(:host, .foo)` would result in `.foo`\n // being scoped.\n if (isParentSelector || this._shouldScopeIndicator) {\n this._shouldScopeIndicator = !hasHost;\n }\n while ((res = sep.exec(selector)) !== null) {\n const separator = res[1];\n // Do not trim the selector, as otherwise this will break sourcemaps\n // when they are defined on multiple lines\n // Example:\n // div,\n // p { color: red}\n const part = selector.slice(startIndex, res.index);\n // A space following an escaped hex value and followed by another hex character\n // (ie: \".\\fc ber\" for \".über\") is not a separator between 2 selectors\n // also keep in mind that backslashes are replaced by a placeholder by SafeSelector\n // These escaped selectors happen for example when esbuild runs with optimization.minify.\n if (part.match(/__esc-ph-(\\d+)__/) && selector[res.index + 1]?.match(/[a-fA-F\\d]/)) {\n continue;\n }\n const scopedPart = _pseudoFunctionAwareScopeSelectorPart(part);\n scopedSelector += `${scopedPart} ${separator} `;\n startIndex = sep.lastIndex;\n }\n const part = selector.substring(startIndex);\n scopedSelector += _pseudoFunctionAwareScopeSelectorPart(part);\n // replace the placeholders with their original values\n // using values stored inside the `safeSelector` instance.\n return this._safeSelector.restore(scopedSelector);\n }\n _insertPolyfillHostInCssText(selector) {\n return selector\n .replace(_colonHostContextRe, _polyfillHostContext)\n .replace(_colonHostRe, _polyfillHost);\n }\n}\nclass SafeSelector {\n placeholders = [];\n index = 0;\n _content;\n constructor(selector) {\n // Replaces attribute selectors with placeholders.\n // The WS in [attr=\"va lue\"] would otherwise be interpreted as a selector separator.\n selector = this._escapeRegexMatches(selector, /(\\[[^\\]]*\\])/g);\n // CSS allows for certain special characters to be used in selectors if they're escaped.\n // E.g. `.foo:blue` won't match a class called `foo:blue`, because the colon denotes a\n // pseudo-class, but writing `.foo\\:blue` will match, because the colon was escaped.\n // Replace all escape sequences (`\\` followed by a character) with a placeholder so\n // that our handling of pseudo-selectors doesn't mess with them.\n // Escaped characters have a specific placeholder so they can be detected separately.\n selector = selector.replace(/(\\\\.)/g, (_, keep) => {\n const replaceBy = `__esc-ph-${this.index}__`;\n this.placeholders.push(keep);\n this.index++;\n return replaceBy;\n });\n // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.\n // WS and \"+\" would otherwise be interpreted as selector separators.\n this._content = selector.replace(/(:nth-[-\\w]+)(\\([^)]+\\))/g, (_, pseudo, exp) => {\n const replaceBy = `__ph-${this.index}__`;\n this.placeholders.push(exp);\n this.index++;\n return pseudo + replaceBy;\n });\n }\n restore(content) {\n return content.replace(/__(?:ph|esc-ph)-(\\d+)__/g, (_ph, index) => this.placeholders[+index]);\n }\n content() {\n return this._content;\n }\n /**\n * Replaces all of the substrings that match a regex within a\n * special string (e.g. `__ph-0__`, `__ph-1__`, etc).\n */\n _escapeRegexMatches(content, pattern) {\n return content.replace(pattern, (_, keep) => {\n const replaceBy = `__ph-${this.index}__`;\n this.placeholders.push(keep);\n this.index++;\n return replaceBy;\n });\n }\n}\nconst _cssScopedPseudoFunctionPrefix = '(:(where|is)\\\\()?';\nconst _cssPrefixWithPseudoSelectorFunction = /:(where|is)\\(/gi;\nconst _cssContentNextSelectorRe = /polyfill-next-selector[^}]*content:[\\s]*?(['\"])(.*?)\\1[;\\s]*}([^{]*?){/gim;\nconst _cssContentRuleRe = /(polyfill-rule)[^}]*(content:[\\s]*(['\"])(.*?)\\3)[;\\s]*[^}]*}/gim;\nconst _cssContentUnscopedRuleRe = /(polyfill-unscoped-rule)[^}]*(content:[\\s]*(['\"])(.*?)\\3)[;\\s]*[^}]*}/gim;\nconst _polyfillHost = '-shadowcsshost';\n// note: :host-context pre-processed to -shadowcsshostcontext.\nconst _polyfillHostContext = '-shadowcsscontext';\nconst _parenSuffix = '(?:\\\\((' + '(?:\\\\([^)(]*\\\\)|[^)(]*)+?' + ')\\\\))';\nconst _cssColonHostRe = new RegExp(_polyfillHost + _parenSuffix + '?([^,{]*)', 'gim');\n// note: :host-context patterns are terminated with `{`, as opposed to :host which\n// is both `{` and `,` because :host-context handles top-level commas differently.\nconst _hostContextPattern = _polyfillHostContext + _parenSuffix + '?([^{]*)';\nconst _cssColonHostContextReGlobal = new RegExp(`${_cssScopedPseudoFunctionPrefix}(${_hostContextPattern})`, 'gim');\nconst _cssColonHostContextRe = new RegExp(_hostContextPattern, 'im');\nconst _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';\nconst _polyfillHostNoCombinatorOutsidePseudoFunction = new RegExp(`${_polyfillHostNoCombinator}(?![^(]*\\\\))`, 'g');\nconst _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\\s,]*)/;\nconst _shadowDOMSelectorsRe = [\n /::shadow/g,\n /::content/g,\n // Deprecated selectors\n /\\/shadow-deep\\//g,\n /\\/shadow\\//g,\n];\n// The deep combinator is deprecated in the CSS spec\n// Support for `>>>`, `deep`, `::ng-deep` is then also deprecated and will be removed in the future.\n// see https://github.com/angular/angular/pull/17677\nconst _shadowDeepSelectors = /(?:>>>)|(?:\\/deep\\/)|(?:::ng-deep)/g;\nconst _selectorReSuffix = '([>\\\\s~+[.,{:][\\\\s\\\\S]*)?$';\nconst _polyfillHostRe = /-shadowcsshost/gim;\nconst _colonHostRe = /:host/gim;\nconst _colonHostContextRe = /:host-context/gim;\nconst _newLinesRe = /\\r?\\n/g;\nconst _commentRe = /\\/\\*[\\s\\S]*?\\*\\//g;\nconst _commentWithHashRe = /\\/\\*\\s*#\\s*source(Mapping)?URL=/g;\nconst COMMENT_PLACEHOLDER = '%COMMENT%';\nconst _commentWithHashPlaceHolderRe = new RegExp(COMMENT_PLACEHOLDER, 'g');\nconst BLOCK_PLACEHOLDER = '%BLOCK%';\nconst _ruleRe = new RegExp(`(\\\\s*(?:${COMMENT_PLACEHOLDER}\\\\s*)*)([^;\\\\{\\\\}]+?)(\\\\s*)((?:{%BLOCK%}?\\\\s*;?)|(?:\\\\s*;))`, 'g');\nconst CONTENT_PAIRS = new Map([['{', '}']]);\nconst COMMA_IN_PLACEHOLDER = '%COMMA_IN_PLACEHOLDER%';\nconst SEMI_IN_PLACEHOLDER = '%SEMI_IN_PLACEHOLDER%';\nconst COLON_IN_PLACEHOLDER = '%COLON_IN_PLACEHOLDER%';\nconst _cssCommaInPlaceholderReGlobal = new RegExp(COMMA_IN_PLACEHOLDER, 'g');\nconst _cssSemiInPlaceholderReGlobal = new RegExp(SEMI_IN_PLACEHOLDER, 'g');\nconst _cssColonInPlaceholderReGlobal = new RegExp(COLON_IN_PLACEHOLDER, 'g');\nclass CssRule {\n selector;\n content;\n constructor(selector, content) {\n this.selector = selector;\n this.content = content;\n }\n}\nfunction processRules(input, ruleCallback) {\n const escaped = escapeInStrings(input);\n const inputWithEscapedBlocks = escapeBlocks(escaped, CONTENT_PAIRS, BLOCK_PLACEHOLDER);\n let nextBlockIndex = 0;\n const escapedResult = inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {\n const selector = m[2];\n let content = '';\n let suffix = m[4];\n let contentPrefix = '';\n if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {\n content = inputWithEscapedBlocks.blocks[nextBlockIndex++];\n suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);\n contentPrefix = '{';\n }\n const rule = ruleCallback(new CssRule(selector, content));\n return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;\n });\n return unescapeInStrings(escapedResult);\n}\nclass StringWithEscapedBlocks {\n escapedString;\n blocks;\n constructor(escapedString, blocks) {\n this.escapedString = escapedString;\n this.blocks = blocks;\n }\n}\nfunction escapeBlocks(input, charPairs, placeholder) {\n const resultParts = [];\n const escapedBlocks = [];\n let openCharCount = 0;\n let nonBlockStartIndex = 0;\n let blockStartIndex = -1;\n let openChar;\n let closeChar;\n for (let i = 0; i < input.length; i++) {\n const char = input[i];\n if (char === '\\\\') {\n i++;\n }\n else if (char === closeChar) {\n openCharCount--;\n if (openCharCount === 0) {\n escapedBlocks.push(input.substring(blockStartIndex, i));\n resultParts.push(placeholder);\n nonBlockStartIndex = i;\n blockStartIndex = -1;\n openChar = closeChar = undefined;\n }\n }\n else if (char === openChar) {\n openCharCount++;\n }\n else if (openCharCount === 0 && charPairs.has(char)) {\n openChar = char;\n closeChar = charPairs.get(char);\n openCharCount = 1;\n blockStartIndex = i + 1;\n resultParts.push(input.substring(nonBlockStartIndex, blockStartIndex));\n }\n }\n if (blockStartIndex !== -1) {\n escapedBlocks.push(input.substring(blockStartIndex));\n resultParts.push(placeholder);\n }\n else {\n resultParts.push(input.substring(nonBlockStartIndex));\n }\n return new StringWithEscapedBlocks(resultParts.join(''), escapedBlocks);\n}\n/**\n * Object containing as keys characters that should be substituted by placeholders\n * when found in strings during the css text parsing, and as values the respective\n * placeholders\n */\nconst ESCAPE_IN_STRING_MAP = {\n ';': SEMI_IN_PLACEHOLDER,\n ',': COMMA_IN_PLACEHOLDER,\n ':': COLON_IN_PLACEHOLDER,\n};\n/**\n * Parse the provided css text and inside strings (meaning, inside pairs of unescaped single or\n * double quotes) replace specific characters with their respective placeholders as indicated\n * by the `ESCAPE_IN_STRING_MAP` map.\n *\n * For example convert the text\n * `animation: \"my-anim:at\\\"ion\" 1s;`\n * to\n * `animation: \"my-anim%COLON_IN_PLACEHOLDER%at\\\"ion\" 1s;`\n *\n * This is necessary in order to remove the meaning of some characters when found inside strings\n * (for example `;` indicates the end of a css declaration, `,` the sequence of values and `:` the\n * division between property and value during a declaration, none of these meanings apply when such\n * characters are within strings and so in order to prevent parsing issues they need to be replaced\n * with placeholder text for the duration of the css manipulation process).\n *\n * @param input the original css text.\n *\n * @returns the css text with specific characters in strings replaced by placeholders.\n **/\nfunction escapeInStrings(input) {\n let result = input;\n let currentQuoteChar = null;\n for (let i = 0; i < result.length; i++) {\n const char = result[i];\n if (char === '\\\\') {\n i++;\n }\n else {\n if (currentQuoteChar !== null) {\n // index i is inside a quoted sub-string\n if (char === currentQuoteChar) {\n currentQuoteChar = null;\n }\n else {\n const placeholder = ESCAPE_IN_STRING_MAP[char];\n if (placeholder) {\n result = `${result.substr(0, i)}${placeholder}${result.substr(i + 1)}`;\n i += placeholder.length - 1;\n }\n }\n }\n else if (char === \"'\" || char === '\"') {\n currentQuoteChar = char;\n }\n }\n }\n return result;\n}\n/**\n * Replace in a string all occurrences of keys in the `ESCAPE_IN_STRING_MAP` map with their\n * original representation, this is simply used to revert the changes applied by the\n * escapeInStrings function.\n *\n * For example it reverts the text:\n * `animation: \"my-anim%COLON_IN_PLACEHOLDER%at\\\"ion\" 1s;`\n * to it's original form of:\n * `animation: \"my-anim:at\\\"ion\" 1s;`\n *\n * Note: For the sake of simplicity this function does not check that the placeholders are\n * actually inside strings as it would anyway be extremely unlikely to find them outside of strings.\n *\n * @param input the css text containing the placeholders.\n *\n * @returns the css text without the placeholders.\n */\nfunction unescapeInStrings(input) {\n let result = input.replace(_cssCommaInPlaceholderReGlobal, ',');\n result = result.replace(_cssSemiInPlaceholderReGlobal, ';');\n result = result.replace(_cssColonInPlaceholderReGlobal, ':');\n return result;\n}\n/**\n * Unescape all quotes present in a string, but only if the string was actually already\n * quoted.\n *\n * This generates a \"canonical\" representation of strings which can be used to match strings\n * which would otherwise only differ because of differently escaped quotes.\n *\n * For example it converts the string (assumed to be quoted):\n * `this \\\\\"is\\\\\" a \\\\'\\\\\\\\'test`\n * to:\n * `this \"is\" a '\\\\\\\\'test`\n * (note that the latter backslashes are not removed as they are not actually escaping the single\n * quote)\n *\n *\n * @param input the string possibly containing escaped quotes.\n * @param isQuoted boolean indicating whether the string was quoted inside a bigger string (if not\n * then it means that it doesn't represent an inner string and thus no unescaping is required)\n *\n * @returns the string in the \"canonical\" representation without escaped quotes.\n */\nfunction unescapeQuotes(str, isQuoted) {\n return !isQuoted ? str : str.replace(/((?:^|[^\\\\])(?:\\\\\\\\)*)\\\\(?=['\"])/g, '$1');\n}\n/**\n * Combine the `contextSelectors` with the `hostMarker` and the `otherSelectors`\n * to create a selector that matches the same as `:host-context()`.\n *\n * Given a single context selector `A` we need to output selectors that match on the host and as an\n * ancestor of the host:\n *\n * ```\n * A <hostMarker>, A<hostMarker> {}\n * ```\n *\n * When there is more than one context selector we also have to create combinations of those\n * selectors with each other. For example if there are `A` and `B` selectors the output is:\n *\n * ```\n * AB<hostMarker>, AB <hostMarker>, A B<hostMarker>,\n * B A<hostMarker>, A B <hostMarker>, B A <hostMarker> {}\n * ```\n *\n * And so on...\n *\n * @param contextSelectors an array of context selectors that will be combined.\n * @param otherSelectors the rest of the selectors that are not context selectors.\n */\nfunction _combineHostContextSelectors(contextSelectors, otherSelectors, pseudoPrefix = '') {\n const hostMarker = _polyfillHostNoCombinator;\n _polyfillHostRe.lastIndex = 0; // reset the regex to ensure we get an accurate test\n const otherSelectorsHasHost = _polyfillHostRe.test(otherSelectors);\n // If there are no context selectors then just output a host marker\n if (contextSelectors.length === 0) {\n return hostMarker + otherSelectors;\n }\n const combined = [contextSelectors.pop() || ''];\n while (contextSelectors.length > 0) {\n const length = combined.length;\n const contextSelector = contextSelectors.pop();\n for (let i = 0; i < length; i++) {\n const previousSelectors = combined[i];\n // Add the new selector as a descendant of the previous selectors\n combined[length * 2 + i] = previousSelectors + ' ' + contextSelector;\n // Add the new selector as an ancestor of the previous selectors\n combined[length + i] = contextSelector + ' ' + previousSelectors;\n // Add the new selector to act on the same element as the previous selectors\n combined[i] = contextSelector + previousSelectors;\n }\n }\n // Finally connect the selector to the `hostMarker`s: either acting directly on the host\n // (A<hostMarker>) or as an ancestor (A <hostMarker>).\n return combined\n .map((s) => otherSelectorsHasHost\n ? `${pseudoPrefix}${s}${otherSelectors}`\n : `${pseudoPrefix}${s}${hostMarker}${otherSelectors}, ${pseudoPrefix}${s} ${hostMarker}${otherSelectors}`)\n .join(',');\n}\n/**\n * Mutate the given `groups` array so that there are `multiples` clones of the original array\n * stored.\n *\n * For example `repeatGroups([a, b], 3)` will result in `[a, b, a, b, a, b]` - but importantly the\n * newly added groups will be clones of the original.\n *\n * @param groups An array of groups of strings that will be repeated. This array is mutated\n * in-place.\n * @param multiples The number of times the current groups should appear.\n */\nfunction repeatGroups(groups, multiples) {\n const length = groups.length;\n for (let i = 1; i < multiples; i++) {\n for (let j = 0; j < length; j++) {\n groups[j + i * length] = groups[j].slice(0);\n }\n }\n}\n\n/**\n * Distinguishes different kinds of IR operations.\n *\n * Includes both creation and update operations.\n */\nvar OpKind;\n(function (OpKind) {\n /**\n * A special operation type which is used to represent the beginning and end nodes of a linked\n * list of operations.\n */\n OpKind[OpKind[\"ListEnd\"] = 0] = \"ListEnd\";\n /**\n * An operation which wraps an output AST statement.\n */\n OpKind[OpKind[\"Statement\"] = 1] = \"Statement\";\n /**\n * An operation which declares and initializes a `SemanticVariable`.\n */\n OpKind[OpKind[\"Variable\"] = 2] = \"Variable\";\n /**\n * An operation to begin rendering of an element.\n */\n OpKind[OpKind[\"ElementStart\"] = 3] = \"ElementStart\";\n /**\n * An operation to render an element with no children.\n */\n OpKind[OpKind[\"Element\"] = 4] = \"Element\";\n /**\n * An operation which declares an embedded view.\n */\n OpKind[OpKind[\"Template\"] = 5] = \"Template\";\n /**\n * An operation to end rendering of an element previously started with `ElementStart`.\n */\n OpKind[OpKind[\"ElementEnd\"] = 6] = \"ElementEnd\";\n /**\n * An operation to begin an `ng-container`.\n */\n OpKind[OpKind[\"ContainerStart\"] = 7] = \"ContainerStart\";\n /**\n * An operation for an `ng-container` with no children.\n */\n OpKind[OpKind[\"Container\"] = 8] = \"Container\";\n /**\n * An operation to end an `ng-container`.\n */\n OpKind[OpKind[\"ContainerEnd\"] = 9] = \"ContainerEnd\";\n /**\n * An operation disable binding for subsequent elements, which are descendants of a non-bindable\n * node.\n */\n OpKind[OpKind[\"DisableBindings\"] = 10] = \"DisableBindings\";\n /**\n * An op to conditionally render a template.\n */\n OpKind[OpKind[\"Conditional\"] = 11] = \"Conditional\";\n /**\n * An operation to re-enable binding, after it was previously disabled.\n */\n OpKind[OpKind[\"EnableBindings\"] = 12] = \"EnableBindings\";\n /**\n * An operation to render a text node.\n */\n OpKind[OpKind[\"Text\"] = 13] = \"Text\";\n /**\n * An operation declaring an event listener for an element.\n */\n OpKind[OpKind[\"Listener\"] = 14] = \"Listener\";\n /**\n * An operation to interpolate text into a text node.\n */\n OpKind[OpKind[\"InterpolateText\"] = 15] = \"InterpolateText\";\n /**\n * An intermediate binding op, that has not yet been processed into an individual property,\n * attribute, style, etc.\n */\n OpKind[OpKind[\"Binding\"] = 16] = \"Binding\";\n /**\n * An operation to bind an expression to a property of an element.\n */\n OpKind[OpKind[\"Property\"] = 17] = \"Property\";\n /**\n * An operation to bind an expression to a style property of an element.\n */\n OpKind[OpKind[\"StyleProp\"] = 18] = \"StyleProp\";\n /**\n * An operation to bind an expression to a class property of an element.\n */\n OpKind[OpKind[\"ClassProp\"] = 19] = \"ClassProp\";\n /**\n * An operation to bind an expression to the styles of an element.\n */\n OpKind[OpKind[\"StyleMap\"] = 20] = \"StyleMap\";\n /**\n * An operation to bind an expression to the classes of an element.\n */\n OpKind[OpKind[\"ClassMap\"] = 21] = \"ClassMap\";\n /**\n * An operation to advance the runtime's implicit slot context during the update phase of a view.\n */\n OpKind[OpKind[\"Advance\"] = 22] = \"Advance\";\n /**\n * An operation to instantiate a pipe.\n */\n OpKind[OpKind[\"Pipe\"] = 23] = \"Pipe\";\n /**\n * An operation to associate an attribute with an element.\n */\n OpKind[OpKind[\"Attribute\"] = 24] = \"Attribute\";\n /**\n * An attribute that has been extracted for inclusion in the consts array.\n */\n OpKind[OpKind[\"ExtractedAttribute\"] = 25] = \"ExtractedAttribute\";\n /**\n * An operation that configures a `@defer` block.\n */\n OpKind[OpKind[\"Defer\"] = 26] = \"Defer\";\n /**\n * An operation that controls when a `@defer` loads.\n */\n OpKind[OpKind[\"DeferOn\"] = 27] = \"DeferOn\";\n /**\n * An operation that controls when a `@defer` loads, using a custom expression as the condition.\n */\n OpKind[OpKind[\"DeferWhen\"] = 28] = \"DeferWhen\";\n /**\n * An i18n message that has been extracted for inclusion in the consts array.\n */\n OpKind[OpKind[\"I18nMessage\"] = 29] = \"I18nMessage\";\n /**\n * A host binding property.\n */\n OpKind[OpKind[\"HostProperty\"] = 30] = \"HostProperty\";\n /**\n * A namespace change, which causes the subsequent elements to be processed as either HTML or SVG.\n */\n OpKind[OpKind[\"Namespace\"] = 31] = \"Namespace\";\n /**\n * Configure a content projeciton definition for the view.\n */\n OpKind[OpKind[\"ProjectionDef\"] = 32] = \"ProjectionDef\";\n /**\n * Create a content projection slot.\n */\n OpKind[OpKind[\"Projection\"] = 33] = \"Projection\";\n /**\n * Create a repeater creation instruction op.\n */\n OpKind[OpKind[\"RepeaterCreate\"] = 34] = \"RepeaterCreate\";\n /**\n * An update up for a repeater.\n */\n OpKind[OpKind[\"Repeater\"] = 35] = \"Repeater\";\n /**\n * An operation to bind an expression to the property side of a two-way binding.\n */\n OpKind[OpKind[\"TwoWayProperty\"] = 36] = \"TwoWayProperty\";\n /**\n * An operation declaring the event side of a two-way binding.\n */\n OpKind[OpKind[\"TwoWayListener\"] = 37] = \"TwoWayListener\";\n /**\n * A creation-time operation that initializes the slot for a `@let` declaration.\n */\n OpKind[OpKind[\"DeclareLet\"] = 38] = \"DeclareLet\";\n /**\n * An update-time operation that stores the current value of a `@let` declaration.\n */\n OpKind[OpKind[\"StoreLet\"] = 39] = \"StoreLet\";\n /**\n * The start of an i18n block.\n */\n OpKind[OpKind[\"I18nStart\"] = 40] = \"I18nStart\";\n /**\n * A self-closing i18n on a single element.\n */\n OpKind[OpKind[\"I18n\"] = 41] = \"I18n\";\n /**\n * The end of an i18n block.\n */\n OpKind[OpKind[\"I18nEnd\"] = 42] = \"I18nEnd\";\n /**\n * An expression in an i18n message.\n */\n OpKind[OpKind[\"I18nExpression\"] = 43] = \"I18nExpression\";\n /**\n * An instruction that applies a set of i18n expressions.\n */\n OpKind[OpKind[\"I18nApply\"] = 44] = \"I18nApply\";\n /**\n * An instruction to create an ICU expression.\n */\n OpKind[OpKind[\"IcuStart\"] = 45] = \"IcuStart\";\n /**\n * An instruction to update an ICU expression.\n */\n OpKind[OpKind[\"IcuEnd\"] = 46] = \"IcuEnd\";\n /**\n * An instruction representing a placeholder in an ICU expression.\n */\n OpKind[OpKind[\"IcuPlaceholder\"] = 47] = \"IcuPlaceholder\";\n /**\n * An i18n context containing information needed to generate an i18n message.\n */\n OpKind[OpKind[\"I18nContext\"] = 48] = \"I18nContext\";\n /**\n * A creation op that corresponds to i18n attributes on an element.\n */\n OpKind[OpKind[\"I18nAttributes\"] = 49] = \"I18nAttributes\";\n /**\n * Creation op that attaches the location at which an element was defined in a template to it.\n */\n OpKind[OpKind[\"SourceLocation\"] = 50] = \"SourceLocation\";\n})(OpKind || (OpKind = {}));\n/**\n * Distinguishes different kinds of IR expressions.\n */\nvar ExpressionKind;\n(function (ExpressionKind) {\n /**\n * Read of a variable in a lexical scope.\n */\n ExpressionKind[ExpressionKind[\"LexicalRead\"] = 0] = \"LexicalRead\";\n /**\n * A reference to the current view context.\n */\n ExpressionKind[ExpressionKind[\"Context\"] = 1] = \"Context\";\n /**\n * A reference to the view context, for use inside a track function.\n */\n ExpressionKind[ExpressionKind[\"TrackContext\"] = 2] = \"TrackContext\";\n /**\n * Read of a variable declared in a `VariableOp`.\n */\n ExpressionKind[ExpressionKind[\"ReadVariable\"] = 3] = \"ReadVariable\";\n /**\n * Runtime operation to navigate to the next view context in the view hierarchy.\n */\n ExpressionKind[ExpressionKind[\"NextContext\"] = 4] = \"NextContext\";\n /**\n * Runtime operation to retrieve the value of a local reference.\n */\n ExpressionKind[ExpressionKind[\"Reference\"] = 5] = \"Reference\";\n /**\n * A call storing the value of a `@let` declaration.\n */\n ExpressionKind[ExpressionKind[\"StoreLet\"] = 6] = \"StoreLet\";\n /**\n * A reference to a `@let` declaration read from the context view.\n */\n ExpressionKind[ExpressionKind[\"ContextLetReference\"] = 7] = \"ContextLetReference\";\n /**\n * Runtime operation to snapshot the current view context.\n */\n ExpressionKind[ExpressionKind[\"GetCurrentView\"] = 8] = \"GetCurrentView\";\n /**\n * Runtime operation to restore a snapshotted view.\n */\n ExpressionKind[ExpressionKind[\"RestoreView\"] = 9] = \"RestoreView\";\n /**\n * Runtime operation to reset the current view context after `RestoreView`.\n */\n ExpressionKind[ExpressionKind[\"ResetView\"] = 10] = \"ResetView\";\n /**\n * Defines and calls a function with change-detected arguments.\n */\n ExpressionKind[ExpressionKind[\"PureFunctionExpr\"] = 11] = \"PureFunctionExpr\";\n /**\n * Indicates a positional parameter to a pure function definition.\n */\n ExpressionKind[ExpressionKind[\"PureFunctionParameterExpr\"] = 12] = \"PureFunctionParameterExpr\";\n /**\n * Binding to a pipe transformation.\n */\n ExpressionKind[ExpressionKind[\"PipeBinding\"] = 13] = \"PipeBinding\";\n /**\n * Binding to a pipe transformation with a variable number of arguments.\n */\n ExpressionKind[ExpressionKind[\"PipeBindingVariadic\"] = 14] = \"PipeBindingVariadic\";\n /*\n * A safe property read requiring expansion into a null check.\n */\n ExpressionKind[ExpressionKind[\"SafePropertyRead\"] = 15] = \"SafePropertyRead\";\n /**\n * A safe keyed read requiring expansion into a null check.\n */\n ExpressionKind[ExpressionKind[\"SafeKeyedRead\"] = 16] = \"SafeKeyedRead\";\n /**\n * A safe function call requiring expansion into a null check.\n */\n ExpressionKind[ExpressionKind[\"SafeInvokeFunction\"] = 17] = \"SafeInvokeFunction\";\n /**\n * An intermediate expression that will be expanded from a safe read into an explicit ternary.\n */\n ExpressionKind[ExpressionKind[\"SafeTernaryExpr\"] = 18] = \"SafeTernaryExpr\";\n /**\n * An empty expression that will be stipped before generating the final output.\n */\n ExpressionKind[ExpressionKind[\"EmptyExpr\"] = 19] = \"EmptyExpr\";\n /*\n * An assignment to a temporary variable.\n */\n ExpressionKind[ExpressionKind[\"AssignTemporaryExpr\"] = 20] = \"AssignTemporaryExpr\";\n /**\n * A reference to a temporary variable.\n */\n ExpressionKind[ExpressionKind[\"ReadTemporaryExpr\"] = 21] = \"ReadTemporaryExpr\";\n /**\n * An expression that will cause a literal slot index to be emitted.\n */\n ExpressionKind[ExpressionKind[\"SlotLiteralExpr\"] = 22] = \"SlotLiteralExpr\";\n /**\n * A test expression for a conditional op.\n */\n ExpressionKind[ExpressionKind[\"ConditionalCase\"] = 23] = \"ConditionalCase\";\n /**\n * An expression that will be automatically extracted to the component const array.\n */\n ExpressionKind[ExpressionKind[\"ConstCollected\"] = 24] = \"ConstCollected\";\n /**\n * Operation that sets the value of a two-way binding.\n */\n ExpressionKind[ExpressionKind[\"TwoWayBindingSet\"] = 25] = \"TwoWayBindingSet\";\n})(ExpressionKind || (ExpressionKind = {}));\nvar VariableFlags;\n(function (VariableFlags) {\n VariableFlags[VariableFlags[\"None\"] = 0] = \"None\";\n /**\n * Always inline this variable, regardless of the number of times it's used.\n * An `AlwaysInline` variable may not depend on context, because doing so may cause side effects\n * that are illegal when multi-inlined. (The optimizer will enforce this constraint.)\n */\n VariableFlags[VariableFlags[\"AlwaysInline\"] = 1] = \"AlwaysInline\";\n})(VariableFlags || (VariableFlags = {}));\n/**\n * Distinguishes between different kinds of `SemanticVariable`s.\n */\nvar SemanticVariableKind;\n(function (SemanticVariableKind) {\n /**\n * Represents the context of a particular view.\n */\n SemanticVariableKind[SemanticVariableKind[\"Context\"] = 0] = \"Context\";\n /**\n * Represents an identifier declared in the lexical scope of a view.\n */\n SemanticVariableKind[SemanticVariableKind[\"Identifier\"] = 1] = \"Identifier\";\n /**\n * Represents a saved state that can be used to restore a view in a listener handler function.\n */\n SemanticVariableKind[SemanticVariableKind[\"SavedView\"] = 2] = \"SavedView\";\n /**\n * An alias generated by a special embedded view type (e.g. a `@for` block).\n */\n SemanticVariableKind[SemanticVariableKind[\"Alias\"] = 3] = \"Alias\";\n})(SemanticVariableKind || (SemanticVariableKind = {}));\n/**\n * Whether to compile in compatibilty mode. In compatibility mode, the template pipeline will\n * attempt to match the output of `TemplateDefinitionBuilder` as exactly as possible, at the cost\n * of producing quirky or larger code in some cases.\n */\nvar CompatibilityMode;\n(function (CompatibilityMode) {\n CompatibilityMode[CompatibilityMode[\"Normal\"] = 0] = \"Normal\";\n CompatibilityMode[CompatibilityMode[\"TemplateDefinitionBuilder\"] = 1] = \"TemplateDefinitionBuilder\";\n})(CompatibilityMode || (CompatibilityMode = {}));\n/**\n * Enumeration of the types of attributes which can be applied to an element.\n */\nvar BindingKind;\n(function (BindingKind) {\n /**\n * Static attributes.\n */\n BindingKind[BindingKind[\"Attribute\"] = 0] = \"Attribute\";\n /**\n * Class bindings.\n */\n BindingKind[BindingKind[\"ClassName\"] = 1] = \"ClassName\";\n /**\n * Style bindings.\n */\n BindingKind[BindingKind[\"StyleProperty\"] = 2] = \"StyleProperty\";\n /**\n * Dynamic property bindings.\n */\n BindingKind[BindingKind[\"Property\"] = 3] = \"Property\";\n /**\n * Property or attribute bindings on a template.\n */\n BindingKind[BindingKind[\"Template\"] = 4] = \"Template\";\n /**\n * Internationalized attributes.\n */\n BindingKind[BindingKind[\"I18n\"] = 5] = \"I18n\";\n /**\n * Animation property bindings.\n */\n BindingKind[BindingKind[\"Animation\"] = 6] = \"Animation\";\n /**\n * Property side of a two-way binding.\n */\n BindingKind[BindingKind[\"TwoWayProperty\"] = 7] = \"TwoWayProperty\";\n})(BindingKind || (BindingKind = {}));\n/**\n * Enumeration of possible times i18n params can be resolved.\n */\nvar I18nParamResolutionTime;\n(function (I18nParamResolutionTime) {\n /**\n * Param is resolved at message creation time. Most params should be resolved at message creation\n * time. However, ICU params need to be handled in post-processing.\n */\n I18nParamResolutionTime[I18nParamResolutionTime[\"Creation\"] = 0] = \"Creation\";\n /**\n * Param is resolved during post-processing. This should be used for params whose value comes from\n * an ICU.\n */\n I18nParamResolutionTime[I18nParamResolutionTime[\"Postproccessing\"] = 1] = \"Postproccessing\";\n})(I18nParamResolutionTime || (I18nParamResolutionTime = {}));\n/**\n * The contexts in which an i18n expression can be used.\n */\nvar I18nExpressionFor;\n(function (I18nExpressionFor) {\n /**\n * This expression is used as a value (i.e. inside an i18n block).\n */\n I18nExpressionFor[I18nExpressionFor[\"I18nText\"] = 0] = \"I18nText\";\n /**\n * This expression is used in a binding.\n */\n I18nExpressionFor[I18nExpressionFor[\"I18nAttribute\"] = 1] = \"I18nAttribute\";\n})(I18nExpressionFor || (I18nExpressionFor = {}));\n/**\n * Flags that describe what an i18n param value. These determine how the value is serialized into\n * the final map.\n */\nvar I18nParamValueFlags;\n(function (I18nParamValueFlags) {\n I18nParamValueFlags[I18nParamValueFlags[\"None\"] = 0] = \"None\";\n /**\n * This value represents an element tag.\n */\n I18nParamValueFlags[I18nParamValueFlags[\"ElementTag\"] = 1] = \"ElementTag\";\n /**\n * This value represents a template tag.\n */\n I18nParamValueFlags[I18nParamValueFlags[\"TemplateTag\"] = 2] = \"TemplateTag\";\n /**\n * This value represents the opening of a tag.\n */\n I18nParamValueFlags[I18nParamValueFlags[\"OpenTag\"] = 4] = \"OpenTag\";\n /**\n * This value represents the closing of a tag.\n */\n I18nParamValueFlags[I18nParamValueFlags[\"CloseTag\"] = 8] = \"CloseTag\";\n /**\n * This value represents an i18n expression index.\n */\n I18nParamValueFlags[I18nParamValueFlags[\"ExpressionIndex\"] = 16] = \"ExpressionIndex\";\n})(I18nParamValueFlags || (I18nParamValueFlags = {}));\n/**\n * Whether the active namespace is HTML, MathML, or SVG mode.\n */\nvar Namespace;\n(function (Namespace) {\n Namespace[Namespace[\"HTML\"] = 0] = \"HTML\";\n Namespace[Namespace[\"SVG\"] = 1] = \"SVG\";\n Namespace[Namespace[\"Math\"] = 2] = \"Math\";\n})(Namespace || (Namespace = {}));\n/**\n * The type of a `@defer` trigger, for use in the ir.\n */\nvar DeferTriggerKind;\n(function (DeferTriggerKind) {\n DeferTriggerKind[DeferTriggerKind[\"Idle\"] = 0] = \"Idle\";\n DeferTriggerKind[DeferTriggerKind[\"Immediate\"] = 1] = \"Immediate\";\n DeferTriggerKind[DeferTriggerKind[\"Timer\"] = 2] = \"Timer\";\n DeferTriggerKind[DeferTriggerKind[\"Hover\"] = 3] = \"Hover\";\n DeferTriggerKind[DeferTriggerKind[\"Interaction\"] = 4] = \"Interaction\";\n DeferTriggerKind[DeferTriggerKind[\"Viewport\"] = 5] = \"Viewport\";\n DeferTriggerKind[DeferTriggerKind[\"Never\"] = 6] = \"Never\";\n})(DeferTriggerKind || (DeferTriggerKind = {}));\n/**\n * Kinds of i18n contexts. They can be created because of root i18n blocks, or ICUs.\n */\nvar I18nContextKind;\n(function (I18nContextKind) {\n I18nContextKind[I18nContextKind[\"RootI18n\"] = 0] = \"RootI18n\";\n I18nContextKind[I18nContextKind[\"Icu\"] = 1] = \"Icu\";\n I18nContextKind[I18nContextKind[\"Attr\"] = 2] = \"Attr\";\n})(I18nContextKind || (I18nContextKind = {}));\nvar TemplateKind;\n(function (TemplateKind) {\n TemplateKind[TemplateKind[\"NgTemplate\"] = 0] = \"NgTemplate\";\n TemplateKind[TemplateKind[\"Structural\"] = 1] = \"Structural\";\n TemplateKind[TemplateKind[\"Block\"] = 2] = \"Block\";\n})(TemplateKind || (TemplateKind = {}));\n\n/**\n * Marker symbol for `ConsumesSlotOpTrait`.\n */\nconst ConsumesSlot = Symbol('ConsumesSlot');\n/**\n * Marker symbol for `DependsOnSlotContextOpTrait`.\n */\nconst DependsOnSlotContext = Symbol('DependsOnSlotContext');\n/**\n * Marker symbol for `ConsumesVars` trait.\n */\nconst ConsumesVarsTrait = Symbol('ConsumesVars');\n/**\n * Marker symbol for `UsesVarOffset` trait.\n */\nconst UsesVarOffset = Symbol('UsesVarOffset');\n/**\n * Default values for most `ConsumesSlotOpTrait` fields (used with the spread operator to initialize\n * implementors of the trait).\n */\nconst TRAIT_CONSUMES_SLOT = {\n [ConsumesSlot]: true,\n numSlotsUsed: 1,\n};\n/**\n * Default values for most `DependsOnSlotContextOpTrait` fields (used with the spread operator to\n * initialize implementors of the trait).\n */\nconst TRAIT_DEPENDS_ON_SLOT_CONTEXT = {\n [DependsOnSlotContext]: true,\n};\n/**\n * Default values for `UsesVars` fields (used with the spread operator to initialize\n * implementors of the trait).\n */\nconst TRAIT_CONSUMES_VARS = {\n [ConsumesVarsTrait]: true,\n};\n/**\n * Test whether an operation implements `ConsumesSlotOpTrait`.\n */\nfunction hasConsumesSlotTrait(op) {\n return op[ConsumesSlot] === true;\n}\nfunction hasDependsOnSlotContextTrait(value) {\n return value[DependsOnSlotContext] === true;\n}\nfunction hasConsumesVarsTrait(value) {\n return value[ConsumesVarsTrait] === true;\n}\n/**\n * Test whether an expression implements `UsesVarOffsetTrait`.\n */\nfunction hasUsesVarOffsetTrait(expr) {\n return expr[UsesVarOffset] === true;\n}\n\n/**\n * Create a `StatementOp`.\n */\nfunction createStatementOp(statement) {\n return {\n kind: OpKind.Statement,\n statement,\n ...NEW_OP,\n };\n}\n/**\n * Create a `VariableOp`.\n */\nfunction createVariableOp(xref, variable, initializer, flags) {\n return {\n kind: OpKind.Variable,\n xref,\n variable,\n initializer,\n flags,\n ...NEW_OP,\n };\n}\n/**\n * Static structure shared by all operations.\n *\n * Used as a convenience via the spread operator (`...NEW_OP`) when creating new operations, and\n * ensures the fields are always in the same order.\n */\nconst NEW_OP = {\n debugListId: null,\n prev: null,\n next: null,\n};\n\n/**\n * Create an `InterpolationTextOp`.\n */\nfunction createInterpolateTextOp(xref, interpolation, sourceSpan) {\n return {\n kind: OpKind.InterpolateText,\n target: xref,\n interpolation,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\nclass Interpolation {\n strings;\n expressions;\n i18nPlaceholders;\n constructor(strings, expressions, i18nPlaceholders) {\n this.strings = strings;\n this.expressions = expressions;\n this.i18nPlaceholders = i18nPlaceholders;\n if (i18nPlaceholders.length !== 0 && i18nPlaceholders.length !== expressions.length) {\n throw new Error(`Expected ${expressions.length} placeholders to match interpolation expression count, but got ${i18nPlaceholders.length}`);\n }\n }\n}\n/**\n * Create a `BindingOp`, not yet transformed into a particular type of binding.\n */\nfunction createBindingOp(target, kind, name, expression, unit, securityContext, isTextAttribute, isStructuralTemplateAttribute, templateKind, i18nMessage, sourceSpan) {\n return {\n kind: OpKind.Binding,\n bindingKind: kind,\n target,\n name,\n expression,\n unit,\n securityContext,\n isTextAttribute,\n isStructuralTemplateAttribute,\n templateKind,\n i18nContext: null,\n i18nMessage,\n sourceSpan,\n ...NEW_OP,\n };\n}\n/**\n * Create a `PropertyOp`.\n */\nfunction createPropertyOp(target, name, expression, isAnimationTrigger, securityContext, isStructuralTemplateAttribute, templateKind, i18nContext, i18nMessage, sourceSpan) {\n return {\n kind: OpKind.Property,\n target,\n name,\n expression,\n isAnimationTrigger,\n securityContext,\n sanitizer: null,\n isStructuralTemplateAttribute,\n templateKind,\n i18nContext,\n i18nMessage,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n/**\n * Create a `TwoWayPropertyOp`.\n */\nfunction createTwoWayPropertyOp(target, name, expression, securityContext, isStructuralTemplateAttribute, templateKind, i18nContext, i18nMessage, sourceSpan) {\n return {\n kind: OpKind.TwoWayProperty,\n target,\n name,\n expression,\n securityContext,\n sanitizer: null,\n isStructuralTemplateAttribute,\n templateKind,\n i18nContext,\n i18nMessage,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n/** Create a `StylePropOp`. */\nfunction createStylePropOp(xref, name, expression, unit, sourceSpan) {\n return {\n kind: OpKind.StyleProp,\n target: xref,\n name,\n expression,\n unit,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n/**\n * Create a `ClassPropOp`.\n */\nfunction createClassPropOp(xref, name, expression, sourceSpan) {\n return {\n kind: OpKind.ClassProp,\n target: xref,\n name,\n expression,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n/** Create a `StyleMapOp`. */\nfunction createStyleMapOp(xref, expression, sourceSpan) {\n return {\n kind: OpKind.StyleMap,\n target: xref,\n expression,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n/**\n * Create a `ClassMapOp`.\n */\nfunction createClassMapOp(xref, expression, sourceSpan) {\n return {\n kind: OpKind.ClassMap,\n target: xref,\n expression,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n/**\n * Create an `AttributeOp`.\n */\nfunction createAttributeOp(target, namespace, name, expression, securityContext, isTextAttribute, isStructuralTemplateAttribute, templateKind, i18nMessage, sourceSpan) {\n return {\n kind: OpKind.Attribute,\n target,\n namespace,\n name,\n expression,\n securityContext,\n sanitizer: null,\n isTextAttribute,\n isStructuralTemplateAttribute,\n templateKind,\n i18nContext: null,\n i18nMessage,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n/**\n * Create an `AdvanceOp`.\n */\nfunction createAdvanceOp(delta, sourceSpan) {\n return {\n kind: OpKind.Advance,\n delta,\n sourceSpan,\n ...NEW_OP,\n };\n}\n/**\n * Create a conditional op, which will display an embedded view according to a condtion.\n */\nfunction createConditionalOp(target, test, conditions, sourceSpan) {\n return {\n kind: OpKind.Conditional,\n target,\n test,\n conditions,\n processed: null,\n sourceSpan,\n contextValue: null,\n ...NEW_OP,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n };\n}\nfunction createRepeaterOp(repeaterCreate, targetSlot, collection, sourceSpan) {\n return {\n kind: OpKind.Repeater,\n target: repeaterCreate,\n targetSlot,\n collection,\n sourceSpan,\n ...NEW_OP,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n };\n}\nfunction createDeferWhenOp(target, expr, modifier, sourceSpan) {\n return {\n kind: OpKind.DeferWhen,\n target,\n expr,\n modifier,\n sourceSpan,\n ...NEW_OP,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n };\n}\n/**\n * Create an i18n expression op.\n */\nfunction createI18nExpressionOp(context, target, i18nOwner, handle, expression, icuPlaceholder, i18nPlaceholder, resolutionTime, usage, name, sourceSpan) {\n return {\n kind: OpKind.I18nExpression,\n context,\n target,\n i18nOwner,\n handle,\n expression,\n icuPlaceholder,\n i18nPlaceholder,\n resolutionTime,\n usage,\n name,\n sourceSpan,\n ...NEW_OP,\n ...TRAIT_CONSUMES_VARS,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n };\n}\n/**\n * Creates an op to apply i18n expression ops.\n */\nfunction createI18nApplyOp(owner, handle, sourceSpan) {\n return {\n kind: OpKind.I18nApply,\n owner,\n handle,\n sourceSpan,\n ...NEW_OP,\n };\n}\n/**\n * Creates a `StoreLetOp`.\n */\nfunction createStoreLetOp(target, declaredName, value, sourceSpan) {\n return {\n kind: OpKind.StoreLet,\n target,\n declaredName,\n value,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n\n/**\n * Check whether a given `o.Expression` is a logical IR expression type.\n */\nfunction isIrExpression(expr) {\n return expr instanceof ExpressionBase;\n}\n/**\n * Base type used for all logical IR expressions.\n */\nclass ExpressionBase extends Expression {\n constructor(sourceSpan = null) {\n super(null, sourceSpan);\n }\n}\n/**\n * Logical expression representing a lexical read of a variable name.\n */\nclass LexicalReadExpr extends ExpressionBase {\n name;\n kind = ExpressionKind.LexicalRead;\n constructor(name) {\n super();\n this.name = name;\n }\n visitExpression(visitor, context) { }\n isEquivalent(other) {\n // We assume that the lexical reads are in the same context, which must be true for parent\n // expressions to be equivalent.\n // TODO: is this generally safe?\n return this.name === other.name;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions() { }\n clone() {\n return new LexicalReadExpr(this.name);\n }\n}\n/**\n * Runtime operation to retrieve the value of a local reference.\n */\nclass ReferenceExpr extends ExpressionBase {\n target;\n targetSlot;\n offset;\n kind = ExpressionKind.Reference;\n constructor(target, targetSlot, offset) {\n super();\n this.target = target;\n this.targetSlot = targetSlot;\n this.offset = offset;\n }\n visitExpression() { }\n isEquivalent(e) {\n return e instanceof ReferenceExpr && e.target === this.target;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions() { }\n clone() {\n return new ReferenceExpr(this.target, this.targetSlot, this.offset);\n }\n}\nclass StoreLetExpr extends ExpressionBase {\n target;\n value;\n sourceSpan;\n kind = ExpressionKind.StoreLet;\n [ConsumesVarsTrait] = true;\n [DependsOnSlotContext] = true;\n constructor(target, value, sourceSpan) {\n super();\n this.target = target;\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n visitExpression() { }\n isEquivalent(e) {\n return (e instanceof StoreLetExpr && e.target === this.target && e.value.isEquivalent(this.value));\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions(transform, flags) {\n this.value = transformExpressionsInExpression(this.value, transform, flags);\n }\n clone() {\n return new StoreLetExpr(this.target, this.value, this.sourceSpan);\n }\n}\nclass ContextLetReferenceExpr extends ExpressionBase {\n target;\n targetSlot;\n kind = ExpressionKind.ContextLetReference;\n constructor(target, targetSlot) {\n super();\n this.target = target;\n this.targetSlot = targetSlot;\n }\n visitExpression() { }\n isEquivalent(e) {\n return e instanceof ContextLetReferenceExpr && e.target === this.target;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions() { }\n clone() {\n return new ContextLetReferenceExpr(this.target, this.targetSlot);\n }\n}\n/**\n * A reference to the current view context (usually the `ctx` variable in a template function).\n */\nclass ContextExpr extends ExpressionBase {\n view;\n kind = ExpressionKind.Context;\n constructor(view) {\n super();\n this.view = view;\n }\n visitExpression() { }\n isEquivalent(e) {\n return e instanceof ContextExpr && e.view === this.view;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions() { }\n clone() {\n return new ContextExpr(this.view);\n }\n}\n/**\n * A reference to the current view context inside a track function.\n */\nclass TrackContextExpr extends ExpressionBase {\n view;\n kind = ExpressionKind.TrackContext;\n constructor(view) {\n super();\n this.view = view;\n }\n visitExpression() { }\n isEquivalent(e) {\n return e instanceof TrackContextExpr && e.view === this.view;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions() { }\n clone() {\n return new TrackContextExpr(this.view);\n }\n}\n/**\n * Runtime operation to navigate to the next view context in the view hierarchy.\n */\nclass NextContextExpr extends ExpressionBase {\n kind = ExpressionKind.NextContext;\n steps = 1;\n constructor() {\n super();\n }\n visitExpression() { }\n isEquivalent(e) {\n return e instanceof NextContextExpr && e.steps === this.steps;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions() { }\n clone() {\n const expr = new NextContextExpr();\n expr.steps = this.steps;\n return expr;\n }\n}\n/**\n * Runtime operation to snapshot the current view context.\n *\n * The result of this operation can be stored in a variable and later used with the `RestoreView`\n * operation.\n */\nclass GetCurrentViewExpr extends ExpressionBase {\n kind = ExpressionKind.GetCurrentView;\n constructor() {\n super();\n }\n visitExpression() { }\n isEquivalent(e) {\n return e instanceof GetCurrentViewExpr;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions() { }\n clone() {\n return new GetCurrentViewExpr();\n }\n}\n/**\n * Runtime operation to restore a snapshotted view.\n */\nclass RestoreViewExpr extends ExpressionBase {\n view;\n kind = ExpressionKind.RestoreView;\n constructor(view) {\n super();\n this.view = view;\n }\n visitExpression(visitor, context) {\n if (typeof this.view !== 'number') {\n this.view.visitExpression(visitor, context);\n }\n }\n isEquivalent(e) {\n if (!(e instanceof RestoreViewExpr) || typeof e.view !== typeof this.view) {\n return false;\n }\n if (typeof this.view === 'number') {\n return this.view === e.view;\n }\n else {\n return this.view.isEquivalent(e.view);\n }\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions(transform, flags) {\n if (typeof this.view !== 'number') {\n this.view = transformExpressionsInExpression(this.view, transform, flags);\n }\n }\n clone() {\n return new RestoreViewExpr(this.view instanceof Expression ? this.view.clone() : this.view);\n }\n}\n/**\n * Runtime operation to reset the current view context after `RestoreView`.\n */\nclass ResetViewExpr extends ExpressionBase {\n expr;\n kind = ExpressionKind.ResetView;\n constructor(expr) {\n super();\n this.expr = expr;\n }\n visitExpression(visitor, context) {\n this.expr.visitExpression(visitor, context);\n }\n isEquivalent(e) {\n return e instanceof ResetViewExpr && this.expr.isEquivalent(e.expr);\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions(transform, flags) {\n this.expr = transformExpressionsInExpression(this.expr, transform, flags);\n }\n clone() {\n return new ResetViewExpr(this.expr.clone());\n }\n}\nclass TwoWayBindingSetExpr extends ExpressionBase {\n target;\n value;\n kind = ExpressionKind.TwoWayBindingSet;\n constructor(target, value) {\n super();\n this.target = target;\n this.value = value;\n }\n visitExpression(visitor, context) {\n this.target.visitExpression(visitor, context);\n this.value.visitExpression(visitor, context);\n }\n isEquivalent(other) {\n return this.target.isEquivalent(other.target) && this.value.isEquivalent(other.value);\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions(transform, flags) {\n this.target = transformExpressionsInExpression(this.target, transform, flags);\n this.value = transformExpressionsInExpression(this.value, transform, flags);\n }\n clone() {\n return new TwoWayBindingSetExpr(this.target, this.value);\n }\n}\n/**\n * Read of a variable declared as an `ir.VariableOp` and referenced through its `ir.XrefId`.\n */\nclass ReadVariableExpr extends ExpressionBase {\n xref;\n kind = ExpressionKind.ReadVariable;\n name = null;\n constructor(xref) {\n super();\n this.xref = xref;\n }\n visitExpression() { }\n isEquivalent(other) {\n return other instanceof ReadVariableExpr && other.xref === this.xref;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions() { }\n clone() {\n const expr = new ReadVariableExpr(this.xref);\n expr.name = this.name;\n return expr;\n }\n}\nclass PureFunctionExpr extends ExpressionBase {\n kind = ExpressionKind.PureFunctionExpr;\n [ConsumesVarsTrait] = true;\n [UsesVarOffset] = true;\n varOffset = null;\n /**\n * The expression which should be memoized as a pure computation.\n *\n * This expression contains internal `PureFunctionParameterExpr`s, which are placeholders for the\n * positional argument expressions in `args.\n */\n body;\n /**\n * Positional arguments to the pure function which will memoize the `body` expression, which act\n * as memoization keys.\n */\n args;\n /**\n * Once extracted to the `ConstantPool`, a reference to the function which defines the computation\n * of `body`.\n */\n fn = null;\n constructor(expression, args) {\n super();\n this.body = expression;\n this.args = args;\n }\n visitExpression(visitor, context) {\n this.body?.visitExpression(visitor, context);\n for (const arg of this.args) {\n arg.visitExpression(visitor, context);\n }\n }\n isEquivalent(other) {\n if (!(other instanceof PureFunctionExpr) || other.args.length !== this.args.length) {\n return false;\n }\n return (other.body !== null &&\n this.body !== null &&\n other.body.isEquivalent(this.body) &&\n other.args.every((arg, idx) => arg.isEquivalent(this.args[idx])));\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions(transform, flags) {\n if (this.body !== null) {\n // TODO: figure out if this is the right flag to pass here.\n this.body = transformExpressionsInExpression(this.body, transform, flags | VisitorContextFlag.InChildOperation);\n }\n else if (this.fn !== null) {\n this.fn = transformExpressionsInExpression(this.fn, transform, flags);\n }\n for (let i = 0; i < this.args.length; i++) {\n this.args[i] = transformExpressionsInExpression(this.args[i], transform, flags);\n }\n }\n clone() {\n const expr = new PureFunctionExpr(this.body?.clone() ?? null, this.args.map((arg) => arg.clone()));\n expr.fn = this.fn?.clone() ?? null;\n expr.varOffset = this.varOffset;\n return expr;\n }\n}\nclass PureFunctionParameterExpr extends ExpressionBase {\n index;\n kind = ExpressionKind.PureFunctionParameterExpr;\n constructor(index) {\n super();\n this.index = index;\n }\n visitExpression() { }\n isEquivalent(other) {\n return other instanceof PureFunctionParameterExpr && other.index === this.index;\n }\n isConstant() {\n return true;\n }\n transformInternalExpressions() { }\n clone() {\n return new PureFunctionParameterExpr(this.index);\n }\n}\nclass PipeBindingExpr extends ExpressionBase {\n target;\n targetSlot;\n name;\n args;\n kind = ExpressionKind.PipeBinding;\n [ConsumesVarsTrait] = true;\n [UsesVarOffset] = true;\n varOffset = null;\n constructor(target, targetSlot, name, args) {\n super();\n this.target = target;\n this.targetSlot = targetSlot;\n this.name = name;\n this.args = args;\n }\n visitExpression(visitor, context) {\n for (const arg of this.args) {\n arg.visitExpression(visitor, context);\n }\n }\n isEquivalent() {\n return false;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions(transform, flags) {\n for (let idx = 0; idx < this.args.length; idx++) {\n this.args[idx] = transformExpressionsInExpression(this.args[idx], transform, flags);\n }\n }\n clone() {\n const r = new PipeBindingExpr(this.target, this.targetSlot, this.name, this.args.map((a) => a.clone()));\n r.varOffset = this.varOffset;\n return r;\n }\n}\nclass PipeBindingVariadicExpr extends ExpressionBase {\n target;\n targetSlot;\n name;\n args;\n numArgs;\n kind = ExpressionKind.PipeBindingVariadic;\n [ConsumesVarsTrait] = true;\n [UsesVarOffset] = true;\n varOffset = null;\n constructor(target, targetSlot, name, args, numArgs) {\n super();\n this.target = target;\n this.targetSlot = targetSlot;\n this.name = name;\n this.args = args;\n this.numArgs = numArgs;\n }\n visitExpression(visitor, context) {\n this.args.visitExpression(visitor, context);\n }\n isEquivalent() {\n return false;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions(transform, flags) {\n this.args = transformExpressionsInExpression(this.args, transform, flags);\n }\n clone() {\n const r = new PipeBindingVariadicExpr(this.target, this.targetSlot, this.name, this.args.clone(), this.numArgs);\n r.varOffset = this.varOffset;\n return r;\n }\n}\nclass SafePropertyReadExpr extends ExpressionBase {\n receiver;\n name;\n kind = ExpressionKind.SafePropertyRead;\n constructor(receiver, name) {\n super();\n this.receiver = receiver;\n this.name = name;\n }\n // An alias for name, which allows other logic to handle property reads and keyed reads together.\n get index() {\n return this.name;\n }\n visitExpression(visitor, context) {\n this.receiver.visitExpression(visitor, context);\n }\n isEquivalent() {\n return false;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions(transform, flags) {\n this.receiver = transformExpressionsInExpression(this.receiver, transform, flags);\n }\n clone() {\n return new SafePropertyReadExpr(this.receiver.clone(), this.name);\n }\n}\nclass SafeKeyedReadExpr extends ExpressionBase {\n receiver;\n index;\n kind = ExpressionKind.SafeKeyedRead;\n constructor(receiver, index, sourceSpan) {\n super(sourceSpan);\n this.receiver = receiver;\n this.index = index;\n }\n visitExpression(visitor, context) {\n this.receiver.visitExpression(visitor, context);\n this.index.visitExpression(visitor, context);\n }\n isEquivalent() {\n return false;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions(transform, flags) {\n this.receiver = transformExpressionsInExpression(this.receiver, transform, flags);\n this.index = transformExpressionsInExpression(this.index, transform, flags);\n }\n clone() {\n return new SafeKeyedReadExpr(this.receiver.clone(), this.index.clone(), this.sourceSpan);\n }\n}\nclass SafeInvokeFunctionExpr extends ExpressionBase {\n receiver;\n args;\n kind = ExpressionKind.SafeInvokeFunction;\n constructor(receiver, args) {\n super();\n this.receiver = receiver;\n this.args = args;\n }\n visitExpression(visitor, context) {\n this.receiver.visitExpression(visitor, context);\n for (const a of this.args) {\n a.visitExpression(visitor, context);\n }\n }\n isEquivalent() {\n return false;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions(transform, flags) {\n this.receiver = transformExpressionsInExpression(this.receiver, transform, flags);\n for (let i = 0; i < this.args.length; i++) {\n this.args[i] = transformExpressionsInExpression(this.args[i], transform, flags);\n }\n }\n clone() {\n return new SafeInvokeFunctionExpr(this.receiver.clone(), this.args.map((a) => a.clone()));\n }\n}\nclass SafeTernaryExpr extends ExpressionBase {\n guard;\n expr;\n kind = ExpressionKind.SafeTernaryExpr;\n constructor(guard, expr) {\n super();\n this.guard = guard;\n this.expr = expr;\n }\n visitExpression(visitor, context) {\n this.guard.visitExpression(visitor, context);\n this.expr.visitExpression(visitor, context);\n }\n isEquivalent() {\n return false;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions(transform, flags) {\n this.guard = transformExpressionsInExpression(this.guard, transform, flags);\n this.expr = transformExpressionsInExpression(this.expr, transform, flags);\n }\n clone() {\n return new SafeTernaryExpr(this.guard.clone(), this.expr.clone());\n }\n}\nclass EmptyExpr extends ExpressionBase {\n kind = ExpressionKind.EmptyExpr;\n visitExpression(visitor, context) { }\n isEquivalent(e) {\n return e instanceof EmptyExpr;\n }\n isConstant() {\n return true;\n }\n clone() {\n return new EmptyExpr();\n }\n transformInternalExpressions() { }\n}\nclass AssignTemporaryExpr extends ExpressionBase {\n expr;\n xref;\n kind = ExpressionKind.AssignTemporaryExpr;\n name = null;\n constructor(expr, xref) {\n super();\n this.expr = expr;\n this.xref = xref;\n }\n visitExpression(visitor, context) {\n this.expr.visitExpression(visitor, context);\n }\n isEquivalent() {\n return false;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions(transform, flags) {\n this.expr = transformExpressionsInExpression(this.expr, transform, flags);\n }\n clone() {\n const a = new AssignTemporaryExpr(this.expr.clone(), this.xref);\n a.name = this.name;\n return a;\n }\n}\nclass ReadTemporaryExpr extends ExpressionBase {\n xref;\n kind = ExpressionKind.ReadTemporaryExpr;\n name = null;\n constructor(xref) {\n super();\n this.xref = xref;\n }\n visitExpression(visitor, context) { }\n isEquivalent() {\n return this.xref === this.xref;\n }\n isConstant() {\n return false;\n }\n transformInternalExpressions(transform, flags) { }\n clone() {\n const r = new ReadTemporaryExpr(this.xref);\n r.name = this.name;\n return r;\n }\n}\nclass SlotLiteralExpr extends ExpressionBase {\n slot;\n kind = ExpressionKind.SlotLiteralExpr;\n constructor(slot) {\n super();\n this.slot = slot;\n }\n visitExpression(visitor, context) { }\n isEquivalent(e) {\n return e instanceof SlotLiteralExpr && e.slot === this.slot;\n }\n isConstant() {\n return true;\n }\n clone() {\n return new SlotLiteralExpr(this.slot);\n }\n transformInternalExpressions() { }\n}\nclass ConditionalCaseExpr extends ExpressionBase {\n expr;\n target;\n targetSlot;\n alias;\n kind = ExpressionKind.ConditionalCase;\n /**\n * Create an expression for one branch of a conditional.\n * @param expr The expression to be tested for this case. Might be null, as in an `else` case.\n * @param target The Xref of the view to be displayed if this condition is true.\n */\n constructor(expr, target, targetSlot, alias = null) {\n super();\n this.expr = expr;\n this.target = target;\n this.targetSlot = targetSlot;\n this.alias = alias;\n }\n visitExpression(visitor, context) {\n if (this.expr !== null) {\n this.expr.visitExpression(visitor, context);\n }\n }\n isEquivalent(e) {\n return e instanceof ConditionalCaseExpr && e.expr === this.expr;\n }\n isConstant() {\n return true;\n }\n clone() {\n return new ConditionalCaseExpr(this.expr, this.target, this.targetSlot);\n }\n transformInternalExpressions(transform, flags) {\n if (this.expr !== null) {\n this.expr = transformExpressionsInExpression(this.expr, transform, flags);\n }\n }\n}\nclass ConstCollectedExpr extends ExpressionBase {\n expr;\n kind = ExpressionKind.ConstCollected;\n constructor(expr) {\n super();\n this.expr = expr;\n }\n transformInternalExpressions(transform, flags) {\n this.expr = transform(this.expr, flags);\n }\n visitExpression(visitor, context) {\n this.expr.visitExpression(visitor, context);\n }\n isEquivalent(e) {\n if (!(e instanceof ConstCollectedExpr)) {\n return false;\n }\n return this.expr.isEquivalent(e.expr);\n }\n isConstant() {\n return this.expr.isConstant();\n }\n clone() {\n return new ConstCollectedExpr(this.expr);\n }\n}\n/**\n * Visits all `Expression`s in the AST of `op` with the `visitor` function.\n */\nfunction visitExpressionsInOp(op, visitor) {\n transformExpressionsInOp(op, (expr, flags) => {\n visitor(expr, flags);\n return expr;\n }, VisitorContextFlag.None);\n}\nvar VisitorContextFlag;\n(function (VisitorContextFlag) {\n VisitorContextFlag[VisitorContextFlag[\"None\"] = 0] = \"None\";\n VisitorContextFlag[VisitorContextFlag[\"InChildOperation\"] = 1] = \"InChildOperation\";\n})(VisitorContextFlag || (VisitorContextFlag = {}));\nfunction transformExpressionsInInterpolation(interpolation, transform, flags) {\n for (let i = 0; i < interpolation.expressions.length; i++) {\n interpolation.expressions[i] = transformExpressionsInExpression(interpolation.expressions[i], transform, flags);\n }\n}\n/**\n * Transform all `Expression`s in the AST of `op` with the `transform` function.\n *\n * All such operations will be replaced with the result of applying `transform`, which may be an\n * identity transformation.\n */\nfunction transformExpressionsInOp(op, transform, flags) {\n switch (op.kind) {\n case OpKind.StyleProp:\n case OpKind.StyleMap:\n case OpKind.ClassProp:\n case OpKind.ClassMap:\n case OpKind.Binding:\n if (op.expression instanceof Interpolation) {\n transformExpressionsInInterpolation(op.expression, transform, flags);\n }\n else {\n op.expression = transformExpressionsInExpression(op.expression, transform, flags);\n }\n break;\n case OpKind.Property:\n case OpKind.HostProperty:\n case OpKind.Attribute:\n if (op.expression instanceof Interpolation) {\n transformExpressionsInInterpolation(op.expression, transform, flags);\n }\n else {\n op.expression = transformExpressionsInExpression(op.expression, transform, flags);\n }\n op.sanitizer =\n op.sanitizer && transformExpressionsInExpression(op.sanitizer, transform, flags);\n break;\n case OpKind.TwoWayProperty:\n op.expression = transformExpressionsInExpression(op.expression, transform, flags);\n op.sanitizer =\n op.sanitizer && transformExpressionsInExpression(op.sanitizer, transform, flags);\n break;\n case OpKind.I18nExpression:\n op.expression = transformExpressionsInExpression(op.expression, transform, flags);\n break;\n case OpKind.InterpolateText:\n transformExpressionsInInterpolation(op.interpolation, transform, flags);\n break;\n case OpKind.Statement:\n transformExpressionsInStatement(op.statement, transform, flags);\n break;\n case OpKind.Variable:\n op.initializer = transformExpressionsInExpression(op.initializer, transform, flags);\n break;\n case OpKind.Conditional:\n for (const condition of op.conditions) {\n if (condition.expr === null) {\n // This is a default case.\n continue;\n }\n condition.expr = transformExpressionsInExpression(condition.expr, transform, flags);\n }\n if (op.processed !== null) {\n op.processed = transformExpressionsInExpression(op.processed, transform, flags);\n }\n if (op.contextValue !== null) {\n op.contextValue = transformExpressionsInExpression(op.contextValue, transform, flags);\n }\n break;\n case OpKind.Listener:\n case OpKind.TwoWayListener:\n for (const innerOp of op.handlerOps) {\n transformExpressionsInOp(innerOp, transform, flags | VisitorContextFlag.InChildOperation);\n }\n break;\n case OpKind.ExtractedAttribute:\n op.expression =\n op.expression && transformExpressionsInExpression(op.expression, transform, flags);\n op.trustedValueFn =\n op.trustedValueFn && transformExpressionsInExpression(op.trustedValueFn, transform, flags);\n break;\n case OpKind.RepeaterCreate:\n op.track = transformExpressionsInExpression(op.track, transform, flags);\n if (op.trackByFn !== null) {\n op.trackByFn = transformExpressionsInExpression(op.trackByFn, transform, flags);\n }\n break;\n case OpKind.Repeater:\n op.collection = transformExpressionsInExpression(op.collection, transform, flags);\n break;\n case OpKind.Defer:\n if (op.loadingConfig !== null) {\n op.loadingConfig = transformExpressionsInExpression(op.loadingConfig, transform, flags);\n }\n if (op.placeholderConfig !== null) {\n op.placeholderConfig = transformExpressionsInExpression(op.placeholderConfig, transform, flags);\n }\n if (op.resolverFn !== null) {\n op.resolverFn = transformExpressionsInExpression(op.resolverFn, transform, flags);\n }\n break;\n case OpKind.I18nMessage:\n for (const [placeholder, expr] of op.params) {\n op.params.set(placeholder, transformExpressionsInExpression(expr, transform, flags));\n }\n for (const [placeholder, expr] of op.postprocessingParams) {\n op.postprocessingParams.set(placeholder, transformExpressionsInExpression(expr, transform, flags));\n }\n break;\n case OpKind.DeferWhen:\n op.expr = transformExpressionsInExpression(op.expr, transform, flags);\n break;\n case OpKind.StoreLet:\n op.value = transformExpressionsInExpression(op.value, transform, flags);\n break;\n case OpKind.Advance:\n case OpKind.Container:\n case OpKind.ContainerEnd:\n case OpKind.ContainerStart:\n case OpKind.DeferOn:\n case OpKind.DisableBindings:\n case OpKind.Element:\n case OpKind.ElementEnd:\n case OpKind.ElementStart:\n case OpKind.EnableBindings:\n case OpKind.I18n:\n case OpKind.I18nApply:\n case OpKind.I18nContext:\n case OpKind.I18nEnd:\n case OpKind.I18nStart:\n case OpKind.IcuEnd:\n case OpKind.IcuStart:\n case OpKind.Namespace:\n case OpKind.Pipe:\n case OpKind.Projection:\n case OpKind.ProjectionDef:\n case OpKind.Template:\n case OpKind.Text:\n case OpKind.I18nAttributes:\n case OpKind.IcuPlaceholder:\n case OpKind.DeclareLet:\n case OpKind.SourceLocation:\n // These operations contain no expressions.\n break;\n default:\n throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${OpKind[op.kind]}`);\n }\n}\n/**\n * Transform all `Expression`s in the AST of `expr` with the `transform` function.\n *\n * All such operations will be replaced with the result of applying `transform`, which may be an\n * identity transformation.\n */\nfunction transformExpressionsInExpression(expr, transform, flags) {\n if (expr instanceof ExpressionBase) {\n expr.transformInternalExpressions(transform, flags);\n }\n else if (expr instanceof BinaryOperatorExpr) {\n expr.lhs = transformExpressionsInExpression(expr.lhs, transform, flags);\n expr.rhs = transformExpressionsInExpression(expr.rhs, transform, flags);\n }\n else if (expr instanceof UnaryOperatorExpr) {\n expr.expr = transformExpressionsInExpression(expr.expr, transform, flags);\n }\n else if (expr instanceof ReadPropExpr) {\n expr.receiver = transformExpressionsInExpression(expr.receiver, transform, flags);\n }\n else if (expr instanceof ReadKeyExpr) {\n expr.receiver = transformExpressionsInExpression(expr.receiver, transform, flags);\n expr.index = transformExpressionsInExpression(expr.index, transform, flags);\n }\n else if (expr instanceof WritePropExpr) {\n expr.receiver = transformExpressionsInExpression(expr.receiver, transform, flags);\n expr.value = transformExpressionsInExpression(expr.value, transform, flags);\n }\n else if (expr instanceof WriteKeyExpr) {\n expr.receiver = transformExpressionsInExpression(expr.receiver, transform, flags);\n expr.index = transformExpressionsInExpression(expr.index, transform, flags);\n expr.value = transformExpressionsInExpression(expr.value, transform, flags);\n }\n else if (expr instanceof InvokeFunctionExpr) {\n expr.fn = transformExpressionsInExpression(expr.fn, transform, flags);\n for (let i = 0; i < expr.args.length; i++) {\n expr.args[i] = transformExpressionsInExpression(expr.args[i], transform, flags);\n }\n }\n else if (expr instanceof LiteralArrayExpr) {\n for (let i = 0; i < expr.entries.length; i++) {\n expr.entries[i] = transformExpressionsInExpression(expr.entries[i], transform, flags);\n }\n }\n else if (expr instanceof LiteralMapExpr) {\n for (let i = 0; i < expr.entries.length; i++) {\n expr.entries[i].value = transformExpressionsInExpression(expr.entries[i].value, transform, flags);\n }\n }\n else if (expr instanceof ConditionalExpr) {\n expr.condition = transformExpressionsInExpression(expr.condition, transform, flags);\n expr.trueCase = transformExpressionsInExpression(expr.trueCase, transform, flags);\n if (expr.falseCase !== null) {\n expr.falseCase = transformExpressionsInExpression(expr.falseCase, transform, flags);\n }\n }\n else if (expr instanceof TypeofExpr) {\n expr.expr = transformExpressionsInExpression(expr.expr, transform, flags);\n }\n else if (expr instanceof WriteVarExpr) {\n expr.value = transformExpressionsInExpression(expr.value, transform, flags);\n }\n else if (expr instanceof LocalizedString) {\n for (let i = 0; i < expr.expressions.length; i++) {\n expr.expressions[i] = transformExpressionsInExpression(expr.expressions[i], transform, flags);\n }\n }\n else if (expr instanceof NotExpr) {\n expr.condition = transformExpressionsInExpression(expr.condition, transform, flags);\n }\n else if (expr instanceof TaggedTemplateExpr) {\n expr.tag = transformExpressionsInExpression(expr.tag, transform, flags);\n expr.template.expressions = expr.template.expressions.map((e) => transformExpressionsInExpression(e, transform, flags));\n }\n else if (expr instanceof ArrowFunctionExpr) {\n if (Array.isArray(expr.body)) {\n for (let i = 0; i < expr.body.length; i++) {\n transformExpressionsInStatement(expr.body[i], transform, flags);\n }\n }\n else {\n expr.body = transformExpressionsInExpression(expr.body, transform, flags);\n }\n }\n else if (expr instanceof WrappedNodeExpr) {\n // TODO: Do we need to transform any TS nodes nested inside of this expression?\n }\n else if (expr instanceof ReadVarExpr ||\n expr instanceof ExternalExpr ||\n expr instanceof LiteralExpr) {\n // No action for these types.\n }\n else {\n throw new Error(`Unhandled expression kind: ${expr.constructor.name}`);\n }\n return transform(expr, flags);\n}\n/**\n * Transform all `Expression`s in the AST of `stmt` with the `transform` function.\n *\n * All such operations will be replaced with the result of applying `transform`, which may be an\n * identity transformation.\n */\nfunction transformExpressionsInStatement(stmt, transform, flags) {\n if (stmt instanceof ExpressionStatement) {\n stmt.expr = transformExpressionsInExpression(stmt.expr, transform, flags);\n }\n else if (stmt instanceof ReturnStatement) {\n stmt.value = transformExpressionsInExpression(stmt.value, transform, flags);\n }\n else if (stmt instanceof DeclareVarStmt) {\n if (stmt.value !== undefined) {\n stmt.value = transformExpressionsInExpression(stmt.value, transform, flags);\n }\n }\n else if (stmt instanceof IfStmt) {\n stmt.condition = transformExpressionsInExpression(stmt.condition, transform, flags);\n for (const caseStatement of stmt.trueCase) {\n transformExpressionsInStatement(caseStatement, transform, flags);\n }\n for (const caseStatement of stmt.falseCase) {\n transformExpressionsInStatement(caseStatement, transform, flags);\n }\n }\n else {\n throw new Error(`Unhandled statement kind: ${stmt.constructor.name}`);\n }\n}\n/**\n * Checks whether the given expression is a string literal.\n */\nfunction isStringLiteral(expr) {\n return expr instanceof LiteralExpr && typeof expr.value === 'string';\n}\n\n/**\n * A linked list of `Op` nodes of a given subtype.\n *\n * @param OpT specific subtype of `Op` nodes which this list contains.\n */\nclass OpList {\n static nextListId = 0;\n /**\n * Debug ID of this `OpList` instance.\n */\n debugListId = OpList.nextListId++;\n // OpList uses static head/tail nodes of a special `ListEnd` type.\n // This avoids the need for special casing of the first and last list\n // elements in all list operations.\n head = {\n kind: OpKind.ListEnd,\n next: null,\n prev: null,\n debugListId: this.debugListId,\n };\n tail = {\n kind: OpKind.ListEnd,\n next: null,\n prev: null,\n debugListId: this.debugListId,\n };\n constructor() {\n // Link `head` and `tail` together at the start (list is empty).\n this.head.next = this.tail;\n this.tail.prev = this.head;\n }\n /**\n * Push a new operation to the tail of the list.\n */\n push(op) {\n if (Array.isArray(op)) {\n for (const o of op) {\n this.push(o);\n }\n return;\n }\n OpList.assertIsNotEnd(op);\n OpList.assertIsUnowned(op);\n op.debugListId = this.debugListId;\n // The old \"previous\" node (which might be the head, if the list is empty).\n const oldLast = this.tail.prev;\n // Insert `op` following the old last node.\n op.prev = oldLast;\n oldLast.next = op;\n // Connect `op` with the list tail.\n op.next = this.tail;\n this.tail.prev = op;\n }\n /**\n * Prepend one or more nodes to the start of the list.\n */\n prepend(ops) {\n if (ops.length === 0) {\n return;\n }\n for (const op of ops) {\n OpList.assertIsNotEnd(op);\n OpList.assertIsUnowned(op);\n op.debugListId = this.debugListId;\n }\n const first = this.head.next;\n let prev = this.head;\n for (const op of ops) {\n prev.next = op;\n op.prev = prev;\n prev = op;\n }\n prev.next = first;\n first.prev = prev;\n }\n /**\n * `OpList` is iterable via the iteration protocol.\n *\n * It's safe to mutate the part of the list that has already been returned by the iterator, up to\n * and including the last operation returned. Mutations beyond that point _may_ be safe, but may\n * also corrupt the iteration position and should be avoided.\n */\n *[Symbol.iterator]() {\n let current = this.head.next;\n while (current !== this.tail) {\n // Guards against corruption of the iterator state by mutations to the tail of the list during\n // iteration.\n OpList.assertIsOwned(current, this.debugListId);\n const next = current.next;\n yield current;\n current = next;\n }\n }\n *reversed() {\n let current = this.tail.prev;\n while (current !== this.head) {\n OpList.assertIsOwned(current, this.debugListId);\n const prev = current.prev;\n yield current;\n current = prev;\n }\n }\n /**\n * Replace `oldOp` with `newOp` in the list.\n */\n static replace(oldOp, newOp) {\n OpList.assertIsNotEnd(oldOp);\n OpList.assertIsNotEnd(newOp);\n OpList.assertIsOwned(oldOp);\n OpList.assertIsUnowned(newOp);\n newOp.debugListId = oldOp.debugListId;\n if (oldOp.prev !== null) {\n oldOp.prev.next = newOp;\n newOp.prev = oldOp.prev;\n }\n if (oldOp.next !== null) {\n oldOp.next.prev = newOp;\n newOp.next = oldOp.next;\n }\n oldOp.debugListId = null;\n oldOp.prev = null;\n oldOp.next = null;\n }\n /**\n * Replace `oldOp` with some number of new operations in the list (which may include `oldOp`).\n */\n static replaceWithMany(oldOp, newOps) {\n if (newOps.length === 0) {\n // Replacing with an empty list -> pure removal.\n OpList.remove(oldOp);\n return;\n }\n OpList.assertIsNotEnd(oldOp);\n OpList.assertIsOwned(oldOp);\n const listId = oldOp.debugListId;\n oldOp.debugListId = null;\n for (const newOp of newOps) {\n OpList.assertIsNotEnd(newOp);\n // `newOp` might be `oldOp`, but at this point it's been marked as unowned.\n OpList.assertIsUnowned(newOp);\n }\n // It should be safe to reuse `oldOp` in the `newOps` list - maybe you want to sandwich an\n // operation between two new ops.\n const { prev: oldPrev, next: oldNext } = oldOp;\n oldOp.prev = null;\n oldOp.next = null;\n let prev = oldPrev;\n for (const newOp of newOps) {\n this.assertIsUnowned(newOp);\n newOp.debugListId = listId;\n prev.next = newOp;\n newOp.prev = prev;\n // This _should_ be the case, but set it just in case.\n newOp.next = null;\n prev = newOp;\n }\n // At the end of iteration, `prev` holds the last node in the list.\n const first = newOps[0];\n const last = prev;\n // Replace `oldOp` with the chain `first` -> `last`.\n if (oldPrev !== null) {\n oldPrev.next = first;\n first.prev = oldPrev;\n }\n if (oldNext !== null) {\n oldNext.prev = last;\n last.next = oldNext;\n }\n }\n /**\n * Remove the given node from the list which contains it.\n */\n static remove(op) {\n OpList.assertIsNotEnd(op);\n OpList.assertIsOwned(op);\n op.prev.next = op.next;\n op.next.prev = op.prev;\n // Break any link between the node and this list to safeguard against its usage in future\n // operations.\n op.debugListId = null;\n op.prev = null;\n op.next = null;\n }\n /**\n * Insert `op` before `target`.\n */\n static insertBefore(op, target) {\n if (Array.isArray(op)) {\n for (const o of op) {\n this.insertBefore(o, target);\n }\n return;\n }\n OpList.assertIsOwned(target);\n if (target.prev === null) {\n throw new Error(`AssertionError: illegal operation on list start`);\n }\n OpList.assertIsNotEnd(op);\n OpList.assertIsUnowned(op);\n op.debugListId = target.debugListId;\n // Just in case.\n op.prev = null;\n target.prev.next = op;\n op.prev = target.prev;\n op.next = target;\n target.prev = op;\n }\n /**\n * Insert `op` after `target`.\n */\n static insertAfter(op, target) {\n OpList.assertIsOwned(target);\n if (target.next === null) {\n throw new Error(`AssertionError: illegal operation on list end`);\n }\n OpList.assertIsNotEnd(op);\n OpList.assertIsUnowned(op);\n op.debugListId = target.debugListId;\n target.next.prev = op;\n op.next = target.next;\n op.prev = target;\n target.next = op;\n }\n /**\n * Asserts that `op` does not currently belong to a list.\n */\n static assertIsUnowned(op) {\n if (op.debugListId !== null) {\n throw new Error(`AssertionError: illegal operation on owned node: ${OpKind[op.kind]}`);\n }\n }\n /**\n * Asserts that `op` currently belongs to a list. If `byList` is passed, `op` is asserted to\n * specifically belong to that list.\n */\n static assertIsOwned(op, byList) {\n if (op.debugListId === null) {\n throw new Error(`AssertionError: illegal operation on unowned node: ${OpKind[op.kind]}`);\n }\n else if (byList !== undefined && op.debugListId !== byList) {\n throw new Error(`AssertionError: node belongs to the wrong list (expected ${byList}, actual ${op.debugListId})`);\n }\n }\n /**\n * Asserts that `op` is not a special `ListEnd` node.\n */\n static assertIsNotEnd(op) {\n if (op.kind === OpKind.ListEnd) {\n throw new Error(`AssertionError: illegal operation on list head or tail`);\n }\n }\n}\n\nclass SlotHandle {\n slot = null;\n}\n\n/**\n * The set of OpKinds that represent the creation of an element or container\n */\nconst elementContainerOpKinds = new Set([\n OpKind.Element,\n OpKind.ElementStart,\n OpKind.Container,\n OpKind.ContainerStart,\n OpKind.Template,\n OpKind.RepeaterCreate,\n]);\n/**\n * Checks whether the given operation represents the creation of an element or container.\n */\nfunction isElementOrContainerOp(op) {\n return elementContainerOpKinds.has(op.kind);\n}\n/**\n * Create an `ElementStartOp`.\n */\nfunction createElementStartOp(tag, xref, namespace, i18nPlaceholder, startSourceSpan, wholeSourceSpan) {\n return {\n kind: OpKind.ElementStart,\n xref,\n tag,\n handle: new SlotHandle(),\n attributes: null,\n localRefs: [],\n nonBindable: false,\n namespace,\n i18nPlaceholder,\n startSourceSpan,\n wholeSourceSpan,\n ...TRAIT_CONSUMES_SLOT,\n ...NEW_OP,\n };\n}\n/**\n * Create a `TemplateOp`.\n */\nfunction createTemplateOp(xref, templateKind, tag, functionNameSuffix, namespace, i18nPlaceholder, startSourceSpan, wholeSourceSpan) {\n return {\n kind: OpKind.Template,\n xref,\n templateKind,\n attributes: null,\n tag,\n handle: new SlotHandle(),\n functionNameSuffix,\n decls: null,\n vars: null,\n localRefs: [],\n nonBindable: false,\n namespace,\n i18nPlaceholder,\n startSourceSpan,\n wholeSourceSpan,\n ...TRAIT_CONSUMES_SLOT,\n ...NEW_OP,\n };\n}\nfunction createRepeaterCreateOp(primaryView, emptyView, tag, track, varNames, emptyTag, i18nPlaceholder, emptyI18nPlaceholder, startSourceSpan, wholeSourceSpan) {\n return {\n kind: OpKind.RepeaterCreate,\n attributes: null,\n xref: primaryView,\n handle: new SlotHandle(),\n emptyView,\n track,\n trackByFn: null,\n tag,\n emptyTag,\n emptyAttributes: null,\n functionNameSuffix: 'For',\n namespace: Namespace.HTML,\n nonBindable: false,\n localRefs: [],\n decls: null,\n vars: null,\n varNames,\n usesComponentInstance: false,\n i18nPlaceholder,\n emptyI18nPlaceholder,\n startSourceSpan,\n wholeSourceSpan,\n ...TRAIT_CONSUMES_SLOT,\n ...NEW_OP,\n ...TRAIT_CONSUMES_VARS,\n numSlotsUsed: emptyView === null ? 2 : 3,\n };\n}\n/**\n * Create an `ElementEndOp`.\n */\nfunction createElementEndOp(xref, sourceSpan) {\n return {\n kind: OpKind.ElementEnd,\n xref,\n sourceSpan,\n ...NEW_OP,\n };\n}\nfunction createDisableBindingsOp(xref) {\n return {\n kind: OpKind.DisableBindings,\n xref,\n ...NEW_OP,\n };\n}\nfunction createEnableBindingsOp(xref) {\n return {\n kind: OpKind.EnableBindings,\n xref,\n ...NEW_OP,\n };\n}\n/**\n * Create a `TextOp`.\n */\nfunction createTextOp(xref, initialValue, icuPlaceholder, sourceSpan) {\n return {\n kind: OpKind.Text,\n xref,\n handle: new SlotHandle(),\n initialValue,\n icuPlaceholder,\n sourceSpan,\n ...TRAIT_CONSUMES_SLOT,\n ...NEW_OP,\n };\n}\n/**\n * Create a `ListenerOp`. Host bindings reuse all the listener logic.\n */\nfunction createListenerOp(target, targetSlot, name, tag, handlerOps, animationPhase, eventTarget, hostListener, sourceSpan) {\n const handlerList = new OpList();\n handlerList.push(handlerOps);\n return {\n kind: OpKind.Listener,\n target,\n targetSlot,\n tag,\n hostListener,\n name,\n handlerOps: handlerList,\n handlerFnName: null,\n consumesDollarEvent: false,\n isAnimationListener: animationPhase !== null,\n animationPhase,\n eventTarget,\n sourceSpan,\n ...NEW_OP,\n };\n}\n/**\n * Create a `TwoWayListenerOp`.\n */\nfunction createTwoWayListenerOp(target, targetSlot, name, tag, handlerOps, sourceSpan) {\n const handlerList = new OpList();\n handlerList.push(handlerOps);\n return {\n kind: OpKind.TwoWayListener,\n target,\n targetSlot,\n tag,\n name,\n handlerOps: handlerList,\n handlerFnName: null,\n sourceSpan,\n ...NEW_OP,\n };\n}\nfunction createPipeOp(xref, slot, name) {\n return {\n kind: OpKind.Pipe,\n xref,\n handle: slot,\n name,\n ...NEW_OP,\n ...TRAIT_CONSUMES_SLOT,\n };\n}\nfunction createNamespaceOp(namespace) {\n return {\n kind: OpKind.Namespace,\n active: namespace,\n ...NEW_OP,\n };\n}\nfunction createProjectionDefOp(def) {\n return {\n kind: OpKind.ProjectionDef,\n def,\n ...NEW_OP,\n };\n}\nfunction createProjectionOp(xref, selector, i18nPlaceholder, fallbackView, sourceSpan) {\n return {\n kind: OpKind.Projection,\n xref,\n handle: new SlotHandle(),\n selector,\n i18nPlaceholder,\n fallbackView,\n projectionSlotIndex: 0,\n attributes: null,\n localRefs: [],\n sourceSpan,\n ...NEW_OP,\n ...TRAIT_CONSUMES_SLOT,\n numSlotsUsed: fallbackView === null ? 1 : 2,\n };\n}\n/**\n * Create an `ExtractedAttributeOp`.\n */\nfunction createExtractedAttributeOp(target, bindingKind, namespace, name, expression, i18nContext, i18nMessage, securityContext) {\n return {\n kind: OpKind.ExtractedAttribute,\n target,\n bindingKind,\n namespace,\n name,\n expression,\n i18nContext,\n i18nMessage,\n securityContext,\n trustedValueFn: null,\n ...NEW_OP,\n };\n}\nfunction createDeferOp(xref, main, mainSlot, ownResolverFn, resolverFn, sourceSpan) {\n return {\n kind: OpKind.Defer,\n xref,\n handle: new SlotHandle(),\n mainView: main,\n mainSlot,\n loadingView: null,\n loadingSlot: null,\n loadingConfig: null,\n loadingMinimumTime: null,\n loadingAfterTime: null,\n placeholderView: null,\n placeholderSlot: null,\n placeholderConfig: null,\n placeholderMinimumTime: null,\n errorView: null,\n errorSlot: null,\n ownResolverFn,\n resolverFn,\n flags: null,\n sourceSpan,\n ...NEW_OP,\n ...TRAIT_CONSUMES_SLOT,\n numSlotsUsed: 2,\n };\n}\nfunction createDeferOnOp(defer, trigger, modifier, sourceSpan) {\n return {\n kind: OpKind.DeferOn,\n defer,\n trigger,\n modifier,\n sourceSpan,\n ...NEW_OP,\n };\n}\n/**\n * Creates a `DeclareLetOp`.\n */\nfunction createDeclareLetOp(xref, declaredName, sourceSpan) {\n return {\n kind: OpKind.DeclareLet,\n xref,\n declaredName,\n sourceSpan,\n handle: new SlotHandle(),\n ...TRAIT_CONSUMES_SLOT,\n ...NEW_OP,\n };\n}\n/**\n * Create an `ExtractedMessageOp`.\n */\nfunction createI18nMessageOp(xref, i18nContext, i18nBlock, message, messagePlaceholder, params, postprocessingParams, needsPostprocessing) {\n return {\n kind: OpKind.I18nMessage,\n xref,\n i18nContext,\n i18nBlock,\n message,\n messagePlaceholder,\n params,\n postprocessingParams,\n needsPostprocessing,\n subMessages: [],\n ...NEW_OP,\n };\n}\n/**\n * Create an `I18nStartOp`.\n */\nfunction createI18nStartOp(xref, message, root, sourceSpan) {\n return {\n kind: OpKind.I18nStart,\n xref,\n handle: new SlotHandle(),\n root: root ?? xref,\n message,\n messageIndex: null,\n subTemplateIndex: null,\n context: null,\n sourceSpan,\n ...NEW_OP,\n ...TRAIT_CONSUMES_SLOT,\n };\n}\n/**\n * Create an `I18nEndOp`.\n */\nfunction createI18nEndOp(xref, sourceSpan) {\n return {\n kind: OpKind.I18nEnd,\n xref,\n sourceSpan,\n ...NEW_OP,\n };\n}\n/**\n * Creates an ICU start op.\n */\nfunction createIcuStartOp(xref, message, messagePlaceholder, sourceSpan) {\n return {\n kind: OpKind.IcuStart,\n xref,\n message,\n messagePlaceholder,\n context: null,\n sourceSpan,\n ...NEW_OP,\n };\n}\n/**\n * Creates an ICU end op.\n */\nfunction createIcuEndOp(xref) {\n return {\n kind: OpKind.IcuEnd,\n xref,\n ...NEW_OP,\n };\n}\n/**\n * Creates an ICU placeholder op.\n */\nfunction createIcuPlaceholderOp(xref, name, strings) {\n return {\n kind: OpKind.IcuPlaceholder,\n xref,\n name,\n strings,\n expressionPlaceholders: [],\n ...NEW_OP,\n };\n}\nfunction createI18nContextOp(contextKind, xref, i18nBlock, message, sourceSpan) {\n if (i18nBlock === null && contextKind !== I18nContextKind.Attr) {\n throw new Error('AssertionError: i18nBlock must be provided for non-attribute contexts.');\n }\n return {\n kind: OpKind.I18nContext,\n contextKind,\n xref,\n i18nBlock,\n message,\n sourceSpan,\n params: new Map(),\n postprocessingParams: new Map(),\n ...NEW_OP,\n };\n}\nfunction createI18nAttributesOp(xref, handle, target) {\n return {\n kind: OpKind.I18nAttributes,\n xref,\n handle,\n target,\n i18nAttributesConfig: null,\n ...NEW_OP,\n ...TRAIT_CONSUMES_SLOT,\n };\n}\n/** Create a `SourceLocationOp`. */\nfunction createSourceLocationOp(templatePath, locations) {\n return {\n kind: OpKind.SourceLocation,\n templatePath,\n locations,\n ...NEW_OP,\n };\n}\n\nfunction createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext, securityContext, sourceSpan) {\n return {\n kind: OpKind.HostProperty,\n name,\n expression,\n isAnimationTrigger,\n i18nContext,\n securityContext,\n sanitizer: null,\n sourceSpan,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n\n/**\n * When referenced in the template's context parameters, this indicates a reference to the entire\n * context object, rather than a specific parameter.\n */\nconst CTX_REF = 'CTX_REF_MARKER';\n\nvar CompilationJobKind;\n(function (CompilationJobKind) {\n CompilationJobKind[CompilationJobKind[\"Tmpl\"] = 0] = \"Tmpl\";\n CompilationJobKind[CompilationJobKind[\"Host\"] = 1] = \"Host\";\n CompilationJobKind[CompilationJobKind[\"Both\"] = 2] = \"Both\";\n})(CompilationJobKind || (CompilationJobKind = {}));\n/**\n * An entire ongoing compilation, which will result in one or more template functions when complete.\n * Contains one or more corresponding compilation units.\n */\nclass CompilationJob {\n componentName;\n pool;\n compatibility;\n constructor(componentName, pool, compatibility) {\n this.componentName = componentName;\n this.pool = pool;\n this.compatibility = compatibility;\n }\n kind = CompilationJobKind.Both;\n /**\n * Generate a new unique `ir.XrefId` in this job.\n */\n allocateXrefId() {\n return this.nextXrefId++;\n }\n /**\n * Tracks the next `ir.XrefId` which can be assigned as template structures are ingested.\n */\n nextXrefId = 0;\n}\n/**\n * Compilation-in-progress of a whole component's template, including the main template and any\n * embedded views or host bindings.\n */\nclass ComponentCompilationJob extends CompilationJob {\n relativeContextFilePath;\n i18nUseExternalIds;\n deferMeta;\n allDeferrableDepsFn;\n relativeTemplatePath;\n enableDebugLocations;\n constructor(componentName, pool, compatibility, relativeContextFilePath, i18nUseExternalIds, deferMeta, allDeferrableDepsFn, relativeTemplatePath, enableDebugLocations) {\n super(componentName, pool, compatibility);\n this.relativeContextFilePath = relativeContextFilePath;\n this.i18nUseExternalIds = i18nUseExternalIds;\n this.deferMeta = deferMeta;\n this.allDeferrableDepsFn = allDeferrableDepsFn;\n this.relativeTemplatePath = relativeTemplatePath;\n this.enableDebugLocations = enableDebugLocations;\n this.root = new ViewCompilationUnit(this, this.allocateXrefId(), null);\n this.views.set(this.root.xref, this.root);\n }\n kind = CompilationJobKind.Tmpl;\n fnSuffix = 'Template';\n /**\n * The root view, representing the component's template.\n */\n root;\n views = new Map();\n /**\n * Causes ngContentSelectors to be emitted, for content projection slots in the view. Possibly a\n * reference into the constant pool.\n */\n contentSelectors = null;\n /**\n * Add a `ViewCompilation` for a new embedded view to this compilation.\n */\n allocateView(parent) {\n const view = new ViewCompilationUnit(this, this.allocateXrefId(), parent);\n this.views.set(view.xref, view);\n return view;\n }\n get units() {\n return this.views.values();\n }\n /**\n * Add a constant `o.Expression` to the compilation and return its index in the `consts` array.\n */\n addConst(newConst, initializers) {\n for (let idx = 0; idx < this.consts.length; idx++) {\n if (this.consts[idx].isEquivalent(newConst)) {\n return idx;\n }\n }\n const idx = this.consts.length;\n this.consts.push(newConst);\n if (initializers) {\n this.constsInitializers.push(...initializers);\n }\n return idx;\n }\n /**\n * Constant expressions used by operations within this component's compilation.\n *\n * This will eventually become the `consts` array in the component definition.\n */\n consts = [];\n /**\n * Initialization statements needed to set up the consts.\n */\n constsInitializers = [];\n}\n/**\n * A compilation unit is compiled into a template function. Some example units are views and host\n * bindings.\n */\nclass CompilationUnit {\n xref;\n constructor(xref) {\n this.xref = xref;\n }\n /**\n * List of creation operations for this view.\n *\n * Creation operations may internally contain other operations, including update operations.\n */\n create = new OpList();\n /**\n * List of update operations for this view.\n */\n update = new OpList();\n /**\n * Name of the function which will be generated for this unit.\n *\n * May be `null` if not yet determined.\n */\n fnName = null;\n /**\n * Number of variable slots used within this view, or `null` if variables have not yet been\n * counted.\n */\n vars = null;\n /**\n * Iterate over all `ir.Op`s within this view.\n *\n * Some operations may have child operations, which this iterator will visit.\n */\n *ops() {\n for (const op of this.create) {\n yield op;\n if (op.kind === OpKind.Listener || op.kind === OpKind.TwoWayListener) {\n for (const listenerOp of op.handlerOps) {\n yield listenerOp;\n }\n }\n }\n for (const op of this.update) {\n yield op;\n }\n }\n}\n/**\n * Compilation-in-progress of an individual view within a template.\n */\nclass ViewCompilationUnit extends CompilationUnit {\n job;\n parent;\n constructor(job, xref, parent) {\n super(xref);\n this.job = job;\n this.parent = parent;\n }\n /**\n * Map of declared variables available within this view to the property on the context object\n * which they alias.\n */\n contextVariables = new Map();\n /**\n * Set of aliases available within this view. An alias is a variable whose provided expression is\n * inlined at every location it is used. It may also depend on context variables, by name.\n */\n aliases = new Set();\n /**\n * Number of declaration slots used within this view, or `null` if slots have not yet been\n * allocated.\n */\n decls = null;\n}\n/**\n * Compilation-in-progress of a host binding, which contains a single unit for that host binding.\n */\nclass HostBindingCompilationJob extends CompilationJob {\n constructor(componentName, pool, compatibility) {\n super(componentName, pool, compatibility);\n this.root = new HostBindingCompilationUnit(this);\n }\n kind = CompilationJobKind.Host;\n fnSuffix = 'HostBindings';\n root;\n get units() {\n return [this.root];\n }\n}\nclass HostBindingCompilationUnit extends CompilationUnit {\n job;\n constructor(job) {\n super(0);\n this.job = job;\n }\n /**\n * Much like an element can have attributes, so can a host binding function.\n */\n attributes = null;\n}\n\n/**\n * Find any function calls to `$any`, excluding `this.$any`, and delete them, since they have no\n * runtime effects.\n */\nfunction deleteAnyCasts(job) {\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n transformExpressionsInOp(op, removeAnys, VisitorContextFlag.None);\n }\n }\n}\nfunction removeAnys(e) {\n if (e instanceof InvokeFunctionExpr &&\n e.fn instanceof LexicalReadExpr &&\n e.fn.name === '$any') {\n if (e.args.length !== 1) {\n throw new Error('The $any builtin function expects exactly one argument.');\n }\n return e.args[0];\n }\n return e;\n}\n\n/**\n * Adds apply operations after i18n expressions.\n */\nfunction applyI18nExpressions(job) {\n const i18nContexts = new Map();\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === OpKind.I18nContext) {\n i18nContexts.set(op.xref, op);\n }\n }\n }\n for (const unit of job.units) {\n for (const op of unit.update) {\n // Only add apply after expressions that are not followed by more expressions.\n if (op.kind === OpKind.I18nExpression && needsApplication(i18nContexts, op)) {\n // TODO: what should be the source span for the apply op?\n OpList.insertAfter(createI18nApplyOp(op.i18nOwner, op.handle, null), op);\n }\n }\n }\n}\n/**\n * Checks whether the given expression op needs to be followed with an apply op.\n */\nfunction needsApplication(i18nContexts, op) {\n // If the next op is not another expression, we need to apply.\n if (op.next?.kind !== OpKind.I18nExpression) {\n return true;\n }\n const context = i18nContexts.get(op.context);\n const nextContext = i18nContexts.get(op.next.context);\n if (context === undefined) {\n throw new Error(\"AssertionError: expected an I18nContextOp to exist for the I18nExpressionOp's context\");\n }\n if (nextContext === undefined) {\n throw new Error(\"AssertionError: expected an I18nContextOp to exist for the next I18nExpressionOp's context\");\n }\n // If the next op is an expression targeting a different i18n block (or different element, in the\n // case of i18n attributes), we need to apply.\n // First, handle the case of i18n blocks.\n if (context.i18nBlock !== null) {\n // This is a block context. Compare the blocks.\n if (context.i18nBlock !== nextContext.i18nBlock) {\n return true;\n }\n return false;\n }\n // Second, handle the case of i18n attributes.\n if (op.i18nOwner !== op.next.i18nOwner) {\n return true;\n }\n return false;\n}\n\n/**\n * Updates i18n expression ops to target the last slot in their owning i18n block, and moves them\n * after the last update instruction that depends on that slot.\n */\nfunction assignI18nSlotDependencies(job) {\n for (const unit of job.units) {\n // The first update op.\n let updateOp = unit.update.head;\n // I18n expressions currently being moved during the iteration.\n let i18nExpressionsInProgress = [];\n // Non-null while we are iterating through an i18nStart/i18nEnd pair\n let state = null;\n for (const createOp of unit.create) {\n if (createOp.kind === OpKind.I18nStart) {\n state = {\n blockXref: createOp.xref,\n lastSlotConsumer: createOp.xref,\n };\n }\n else if (createOp.kind === OpKind.I18nEnd) {\n for (const op of i18nExpressionsInProgress) {\n op.target = state.lastSlotConsumer;\n OpList.insertBefore(op, updateOp);\n }\n i18nExpressionsInProgress.length = 0;\n state = null;\n }\n if (hasConsumesSlotTrait(createOp)) {\n if (state !== null) {\n state.lastSlotConsumer = createOp.xref;\n }\n while (true) {\n if (updateOp.next === null) {\n break;\n }\n if (state !== null &&\n updateOp.kind === OpKind.I18nExpression &&\n updateOp.usage === I18nExpressionFor.I18nText &&\n updateOp.i18nOwner === state.blockXref) {\n const opToRemove = updateOp;\n updateOp = updateOp.next;\n OpList.remove(opToRemove);\n i18nExpressionsInProgress.push(opToRemove);\n continue;\n }\n if (hasDependsOnSlotContextTrait(updateOp) && updateOp.target !== createOp.xref) {\n break;\n }\n updateOp = updateOp.next;\n }\n }\n }\n }\n}\n\n/**\n * Gets a map of all elements in the given view by their xref id.\n */\nfunction createOpXrefMap(unit) {\n const map = new Map();\n for (const op of unit.create) {\n if (!hasConsumesSlotTrait(op)) {\n continue;\n }\n map.set(op.xref, op);\n // TODO(dylhunn): `@for` loops with `@empty` blocks need to be special-cased here,\n // because the slot consumer trait currently only supports one slot per consumer and we\n // need two. This should be revisited when making the refactors mentioned in:\n // https://github.com/angular/angular/pull/53620#discussion_r1430918822\n if (op.kind === OpKind.RepeaterCreate && op.emptyView !== null) {\n map.set(op.emptyView, op);\n }\n }\n return map;\n}\n\n/**\n * Find all extractable attribute and binding ops, and create ExtractedAttributeOps for them.\n * In cases where no instruction needs to be generated for the attribute or binding, it is removed.\n */\nfunction extractAttributes(job) {\n for (const unit of job.units) {\n const elements = createOpXrefMap(unit);\n for (const op of unit.ops()) {\n switch (op.kind) {\n case OpKind.Attribute:\n extractAttributeOp(unit, op, elements);\n break;\n case OpKind.Property:\n if (!op.isAnimationTrigger) {\n let bindingKind;\n if (op.i18nMessage !== null && op.templateKind === null) {\n // If the binding has an i18n context, it is an i18n attribute, and should have that\n // kind in the consts array.\n bindingKind = BindingKind.I18n;\n }\n else if (op.isStructuralTemplateAttribute) {\n bindingKind = BindingKind.Template;\n }\n else {\n bindingKind = BindingKind.Property;\n }\n OpList.insertBefore(\n // Deliberately null i18nMessage value\n createExtractedAttributeOp(op.target, bindingKind, null, op.name, \n /* expression */ null, \n /* i18nContext */ null, \n /* i18nMessage */ null, op.securityContext), lookupElement$2(elements, op.target));\n }\n break;\n case OpKind.TwoWayProperty:\n OpList.insertBefore(createExtractedAttributeOp(op.target, BindingKind.TwoWayProperty, null, op.name, \n /* expression */ null, \n /* i18nContext */ null, \n /* i18nMessage */ null, op.securityContext), lookupElement$2(elements, op.target));\n break;\n case OpKind.StyleProp:\n case OpKind.ClassProp:\n // TODO: Can style or class bindings be i18n attributes?\n // The old compiler treated empty style bindings as regular bindings for the purpose of\n // directive matching. That behavior is incorrect, but we emulate it in compatibility\n // mode.\n if (unit.job.compatibility === CompatibilityMode.TemplateDefinitionBuilder &&\n op.expression instanceof EmptyExpr) {\n OpList.insertBefore(createExtractedAttributeOp(op.target, BindingKind.Property, null, op.name, \n /* expression */ null, \n /* i18nContext */ null, \n /* i18nMessage */ null, SecurityContext.STYLE), lookupElement$2(elements, op.target));\n }\n break;\n case OpKind.Listener:\n if (!op.isAnimationListener) {\n const extractedAttributeOp = createExtractedAttributeOp(op.target, BindingKind.Property, null, op.name, \n /* expression */ null, \n /* i18nContext */ null, \n /* i18nMessage */ null, SecurityContext.NONE);\n if (job.kind === CompilationJobKind.Host) {\n if (job.compatibility) {\n // TemplateDefinitionBuilder does not extract listener bindings to the const array\n // (which is honestly pretty inconsistent).\n break;\n }\n // This attribute will apply to the enclosing host binding compilation unit, so order\n // doesn't matter.\n unit.create.push(extractedAttributeOp);\n }\n else {\n OpList.insertBefore(extractedAttributeOp, lookupElement$2(elements, op.target));\n }\n }\n break;\n case OpKind.TwoWayListener:\n // Two-way listeners aren't supported in host bindings.\n if (job.kind !== CompilationJobKind.Host) {\n const extractedAttributeOp = createExtractedAttributeOp(op.target, BindingKind.Property, null, op.name, \n /* expression */ null, \n /* i18nContext */ null, \n /* i18nMessage */ null, SecurityContext.NONE);\n OpList.insertBefore(extractedAttributeOp, lookupElement$2(elements, op.target));\n }\n break;\n }\n }\n }\n}\n/**\n * Looks up an element in the given map by xref ID.\n */\nfunction lookupElement$2(elements, xref) {\n const el = elements.get(xref);\n if (el === undefined) {\n throw new Error('All attributes should have an element-like target.');\n }\n return el;\n}\n/**\n * Extracts an attribute binding.\n */\nfunction extractAttributeOp(unit, op, elements) {\n if (op.expression instanceof Interpolation) {\n return;\n }\n let extractable = op.isTextAttribute || op.expression.isConstant();\n if (unit.job.compatibility === CompatibilityMode.TemplateDefinitionBuilder) {\n // TemplateDefinitionBuilder only extracts text attributes. It does not extract attriibute\n // bindings, even if they are constants.\n extractable &&= op.isTextAttribute;\n }\n if (extractable) {\n const extractedAttributeOp = createExtractedAttributeOp(op.target, op.isStructuralTemplateAttribute ? BindingKind.Template : BindingKind.Attribute, op.namespace, op.name, op.expression, op.i18nContext, op.i18nMessage, op.securityContext);\n if (unit.job.kind === CompilationJobKind.Host) {\n // This attribute will apply to the enclosing host binding compilation unit, so order doesn't\n // matter.\n unit.create.push(extractedAttributeOp);\n }\n else {\n const ownerOp = lookupElement$2(elements, op.target);\n OpList.insertBefore(extractedAttributeOp, ownerOp);\n }\n OpList.remove(op);\n }\n}\n\n/**\n * Looks up an element in the given map by xref ID.\n */\nfunction lookupElement$1(elements, xref) {\n const el = elements.get(xref);\n if (el === undefined) {\n throw new Error('All attributes should have an element-like target.');\n }\n return el;\n}\nfunction specializeBindings(job) {\n const elements = new Map();\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (!isElementOrContainerOp(op)) {\n continue;\n }\n elements.set(op.xref, op);\n }\n }\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n if (op.kind !== OpKind.Binding) {\n continue;\n }\n switch (op.bindingKind) {\n case BindingKind.Attribute:\n if (op.name === 'ngNonBindable') {\n OpList.remove(op);\n const target = lookupElement$1(elements, op.target);\n target.nonBindable = true;\n }\n else {\n const [namespace, name] = splitNsName(op.name);\n OpList.replace(op, createAttributeOp(op.target, namespace, name, op.expression, op.securityContext, op.isTextAttribute, op.isStructuralTemplateAttribute, op.templateKind, op.i18nMessage, op.sourceSpan));\n }\n break;\n case BindingKind.Property:\n case BindingKind.Animation:\n if (job.kind === CompilationJobKind.Host) {\n OpList.replace(op, createHostPropertyOp(op.name, op.expression, op.bindingKind === BindingKind.Animation, op.i18nContext, op.securityContext, op.sourceSpan));\n }\n else {\n OpList.replace(op, createPropertyOp(op.target, op.name, op.expression, op.bindingKind === BindingKind.Animation, op.securityContext, op.isStructuralTemplateAttribute, op.templateKind, op.i18nContext, op.i18nMessage, op.sourceSpan));\n }\n break;\n case BindingKind.TwoWayProperty:\n if (!(op.expression instanceof Expression)) {\n // We shouldn't be able to hit this code path since interpolations in two-way bindings\n // result in a parser error. We assert here so that downstream we can assume that\n // the value is always an expression.\n throw new Error(`Expected value of two-way property binding \"${op.name}\" to be an expression`);\n }\n OpList.replace(op, createTwoWayPropertyOp(op.target, op.name, op.expression, op.securityContext, op.isStructuralTemplateAttribute, op.templateKind, op.i18nContext, op.i18nMessage, op.sourceSpan));\n break;\n case BindingKind.I18n:\n case BindingKind.ClassName:\n case BindingKind.StyleProperty:\n throw new Error(`Unhandled binding of kind ${BindingKind[op.bindingKind]}`);\n }\n }\n }\n}\n\nconst CHAINABLE = new Set([\n Identifiers.attribute,\n Identifiers.classProp,\n Identifiers.element,\n Identifiers.elementContainer,\n Identifiers.elementContainerEnd,\n Identifiers.elementContainerStart,\n Identifiers.elementEnd,\n Identifiers.elementStart,\n Identifiers.hostProperty,\n Identifiers.i18nExp,\n Identifiers.listener,\n Identifiers.listener,\n Identifiers.property,\n Identifiers.styleProp,\n Identifiers.stylePropInterpolate1,\n Identifiers.stylePropInterpolate2,\n Identifiers.stylePropInterpolate3,\n Identifiers.stylePropInterpolate4,\n Identifiers.stylePropInterpolate5,\n Identifiers.stylePropInterpolate6,\n Identifiers.stylePropInterpolate7,\n Identifiers.stylePropInterpolate8,\n Identifiers.stylePropInterpolateV,\n Identifiers.syntheticHostListener,\n Identifiers.syntheticHostProperty,\n Identifiers.templateCreate,\n Identifiers.twoWayProperty,\n Identifiers.twoWayListener,\n Identifiers.declareLet,\n]);\n/**\n * Chaining results in repeated call expressions, causing a deep AST of receiver expressions. To prevent running out of\n * stack depth the maximum number of chained instructions is limited to this threshold, which has been selected\n * arbitrarily.\n */\nconst MAX_CHAIN_LENGTH = 256;\n/**\n * Post-process a reified view compilation and convert sequential calls to chainable instructions\n * into chain calls.\n *\n * For example, two `elementStart` operations in sequence:\n *\n * ```ts\n * elementStart(0, 'div');\n * elementStart(1, 'span');\n * ```\n *\n * Can be called as a chain instead:\n *\n * ```ts\n * elementStart(0, 'div')(1, 'span');\n * ```\n */\nfunction chain(job) {\n for (const unit of job.units) {\n chainOperationsInList(unit.create);\n chainOperationsInList(unit.update);\n }\n}\nfunction chainOperationsInList(opList) {\n let chain = null;\n for (const op of opList) {\n if (op.kind !== OpKind.Statement || !(op.statement instanceof ExpressionStatement)) {\n // This type of statement isn't chainable.\n chain = null;\n continue;\n }\n if (!(op.statement.expr instanceof InvokeFunctionExpr) ||\n !(op.statement.expr.fn instanceof ExternalExpr)) {\n // This is a statement, but not an instruction-type call, so not chainable.\n chain = null;\n continue;\n }\n const instruction = op.statement.expr.fn.value;\n if (!CHAINABLE.has(instruction)) {\n // This instruction isn't chainable.\n chain = null;\n continue;\n }\n // This instruction can be chained. It can either be added on to the previous chain (if\n // compatible) or it can be the start of a new chain.\n if (chain !== null && chain.instruction === instruction && chain.length < MAX_CHAIN_LENGTH) {\n // This instruction can be added onto the previous chain.\n const expression = chain.expression.callFn(op.statement.expr.args, op.statement.expr.sourceSpan, op.statement.expr.pure);\n chain.expression = expression;\n chain.op.statement = expression.toStmt();\n chain.length++;\n OpList.remove(op);\n }\n else {\n // Leave this instruction alone for now, but consider it the start of a new chain.\n chain = {\n op,\n instruction,\n expression: op.statement.expr,\n length: 1,\n };\n }\n }\n}\n\n/**\n * Attribute interpolations of the form `[attr.foo]=\"{{foo}}\"\"` should be \"collapsed\" into a plain\n * attribute instruction, instead of an `attributeInterpolate` instruction.\n *\n * (We cannot do this for singleton property interpolations, because `propertyInterpolate`\n * stringifies its expression.)\n *\n * The reification step is also capable of performing this transformation, but doing it early in the\n * pipeline allows other phases to accurately know what instruction will be emitted.\n */\nfunction collapseSingletonInterpolations(job) {\n for (const unit of job.units) {\n for (const op of unit.update) {\n const eligibleOpKind = op.kind === OpKind.Attribute;\n if (eligibleOpKind &&\n op.expression instanceof Interpolation &&\n op.expression.strings.length === 2 &&\n op.expression.strings.every((s) => s === '')) {\n op.expression = op.expression.expressions[0];\n }\n }\n }\n}\n\n/**\n * Collapse the various conditions of conditional ops (if, switch) into a single test expression.\n */\nfunction generateConditionalExpressions(job) {\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n if (op.kind !== OpKind.Conditional) {\n continue;\n }\n let test;\n // Any case with a `null` condition is `default`. If one exists, default to it instead.\n const defaultCase = op.conditions.findIndex((cond) => cond.expr === null);\n if (defaultCase >= 0) {\n const slot = op.conditions.splice(defaultCase, 1)[0].targetSlot;\n test = new SlotLiteralExpr(slot);\n }\n else {\n // By default, a switch evaluates to `-1`, causing no template to be displayed.\n test = literal(-1);\n }\n // Switch expressions assign their main test to a temporary, to avoid re-executing it.\n let tmp = op.test == null ? null : new AssignTemporaryExpr(op.test, job.allocateXrefId());\n // For each remaining condition, test whether the temporary satifies the check. (If no temp is\n // present, just check each expression directly.)\n for (let i = op.conditions.length - 1; i >= 0; i--) {\n let conditionalCase = op.conditions[i];\n if (conditionalCase.expr === null) {\n continue;\n }\n if (tmp !== null) {\n const useTmp = i === 0 ? tmp : new ReadTemporaryExpr(tmp.xref);\n conditionalCase.expr = new BinaryOperatorExpr(BinaryOperator.Identical, useTmp, conditionalCase.expr);\n }\n else if (conditionalCase.alias !== null) {\n const caseExpressionTemporaryXref = job.allocateXrefId();\n conditionalCase.expr = new AssignTemporaryExpr(conditionalCase.expr, caseExpressionTemporaryXref);\n op.contextValue = new ReadTemporaryExpr(caseExpressionTemporaryXref);\n }\n test = new ConditionalExpr(conditionalCase.expr, new SlotLiteralExpr(conditionalCase.targetSlot), test);\n }\n // Save the resulting aggregate Joost-expression.\n op.processed = test;\n // Clear the original conditions array, since we no longer need it, and don't want it to\n // affect subsequent phases (e.g. pipe creation).\n op.conditions = [];\n }\n }\n}\n\nconst BINARY_OPERATORS = new Map([\n ['&&', BinaryOperator.And],\n ['>', BinaryOperator.Bigger],\n ['>=', BinaryOperator.BiggerEquals],\n ['|', BinaryOperator.BitwiseOr],\n ['&', BinaryOperator.BitwiseAnd],\n ['/', BinaryOperator.Divide],\n ['==', BinaryOperator.Equals],\n ['===', BinaryOperator.Identical],\n ['<', BinaryOperator.Lower],\n ['<=', BinaryOperator.LowerEquals],\n ['-', BinaryOperator.Minus],\n ['%', BinaryOperator.Modulo],\n ['*', BinaryOperator.Multiply],\n ['!=', BinaryOperator.NotEquals],\n ['!==', BinaryOperator.NotIdentical],\n ['??', BinaryOperator.NullishCoalesce],\n ['||', BinaryOperator.Or],\n ['+', BinaryOperator.Plus],\n]);\nfunction namespaceForKey(namespacePrefixKey) {\n const NAMESPACES = new Map([\n ['svg', Namespace.SVG],\n ['math', Namespace.Math],\n ]);\n if (namespacePrefixKey === null) {\n return Namespace.HTML;\n }\n return NAMESPACES.get(namespacePrefixKey) ?? Namespace.HTML;\n}\nfunction keyForNamespace(namespace) {\n const NAMESPACES = new Map([\n ['svg', Namespace.SVG],\n ['math', Namespace.Math],\n ]);\n for (const [k, n] of NAMESPACES.entries()) {\n if (n === namespace) {\n return k;\n }\n }\n return null; // No namespace prefix for HTML\n}\nfunction prefixWithNamespace(strippedTag, namespace) {\n if (namespace === Namespace.HTML) {\n return strippedTag;\n }\n return `:${keyForNamespace(namespace)}:${strippedTag}`;\n}\nfunction literalOrArrayLiteral(value) {\n if (Array.isArray(value)) {\n return literalArr(value.map(literalOrArrayLiteral));\n }\n return literal(value);\n}\n\n/**\n * Converts the semantic attributes of element-like operations (elements, templates) into constant\n * array expressions, and lifts them into the overall component `consts`.\n */\nfunction collectElementConsts(job) {\n // Collect all extracted attributes.\n const allElementAttributes = new Map();\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === OpKind.ExtractedAttribute) {\n const attributes = allElementAttributes.get(op.target) || new ElementAttributes(job.compatibility);\n allElementAttributes.set(op.target, attributes);\n attributes.add(op.bindingKind, op.name, op.expression, op.namespace, op.trustedValueFn);\n OpList.remove(op);\n }\n }\n }\n // Serialize the extracted attributes into the const array.\n if (job instanceof ComponentCompilationJob) {\n for (const unit of job.units) {\n for (const op of unit.create) {\n // TODO: Simplify and combine these cases.\n if (op.kind == OpKind.Projection) {\n const attributes = allElementAttributes.get(op.xref);\n if (attributes !== undefined) {\n const attrArray = serializeAttributes(attributes);\n if (attrArray.entries.length > 0) {\n op.attributes = attrArray;\n }\n }\n }\n else if (isElementOrContainerOp(op)) {\n op.attributes = getConstIndex(job, allElementAttributes, op.xref);\n // TODO(dylhunn): `@for` loops with `@empty` blocks need to be special-cased here,\n // because the slot consumer trait currently only supports one slot per consumer and we\n // need two. This should be revisited when making the refactors mentioned in:\n // https://github.com/angular/angular/pull/53620#discussion_r1430918822\n if (op.kind === OpKind.RepeaterCreate && op.emptyView !== null) {\n op.emptyAttributes = getConstIndex(job, allElementAttributes, op.emptyView);\n }\n }\n }\n }\n }\n else if (job instanceof HostBindingCompilationJob) {\n // TODO: If the host binding case further diverges, we may want to split it into its own\n // phase.\n for (const [xref, attributes] of allElementAttributes.entries()) {\n if (xref !== job.root.xref) {\n throw new Error(`An attribute would be const collected into the host binding's template function, but is not associated with the root xref.`);\n }\n const attrArray = serializeAttributes(attributes);\n if (attrArray.entries.length > 0) {\n job.root.attributes = attrArray;\n }\n }\n }\n}\nfunction getConstIndex(job, allElementAttributes, xref) {\n const attributes = allElementAttributes.get(xref);\n if (attributes !== undefined) {\n const attrArray = serializeAttributes(attributes);\n if (attrArray.entries.length > 0) {\n return job.addConst(attrArray);\n }\n }\n return null;\n}\n/**\n * Shared instance of an empty array to avoid unnecessary array allocations.\n */\nconst FLYWEIGHT_ARRAY = Object.freeze([]);\n/**\n * Container for all of the various kinds of attributes which are applied on an element.\n */\nclass ElementAttributes {\n compatibility;\n known = new Map();\n byKind = new Map();\n propertyBindings = null;\n projectAs = null;\n get attributes() {\n return this.byKind.get(BindingKind.Attribute) ?? FLYWEIGHT_ARRAY;\n }\n get classes() {\n return this.byKind.get(BindingKind.ClassName) ?? FLYWEIGHT_ARRAY;\n }\n get styles() {\n return this.byKind.get(BindingKind.StyleProperty) ?? FLYWEIGHT_ARRAY;\n }\n get bindings() {\n return this.propertyBindings ?? FLYWEIGHT_ARRAY;\n }\n get template() {\n return this.byKind.get(BindingKind.Template) ?? FLYWEIGHT_ARRAY;\n }\n get i18n() {\n return this.byKind.get(BindingKind.I18n) ?? FLYWEIGHT_ARRAY;\n }\n constructor(compatibility) {\n this.compatibility = compatibility;\n }\n isKnown(kind, name) {\n const nameToValue = this.known.get(kind) ?? new Set();\n this.known.set(kind, nameToValue);\n if (nameToValue.has(name)) {\n return true;\n }\n nameToValue.add(name);\n return false;\n }\n add(kind, name, value, namespace, trustedValueFn) {\n // TemplateDefinitionBuilder puts duplicate attribute, class, and style values into the consts\n // array. This seems inefficient, we can probably keep just the first one or the last value\n // (whichever actually gets applied when multiple values are listed for the same attribute).\n const allowDuplicates = this.compatibility === CompatibilityMode.TemplateDefinitionBuilder &&\n (kind === BindingKind.Attribute ||\n kind === BindingKind.ClassName ||\n kind === BindingKind.StyleProperty);\n if (!allowDuplicates && this.isKnown(kind, name)) {\n return;\n }\n // TODO: Can this be its own phase\n if (name === 'ngProjectAs') {\n if (value === null ||\n !(value instanceof LiteralExpr) ||\n value.value == null ||\n typeof value.value?.toString() !== 'string') {\n throw Error('ngProjectAs must have a string literal value');\n }\n this.projectAs = value.value.toString();\n // TODO: TemplateDefinitionBuilder allows `ngProjectAs` to also be assigned as a literal\n // attribute. Is this sane?\n }\n const array = this.arrayFor(kind);\n array.push(...getAttributeNameLiterals(namespace, name));\n if (kind === BindingKind.Attribute || kind === BindingKind.StyleProperty) {\n if (value === null) {\n throw Error('Attribute, i18n attribute, & style element attributes must have a value');\n }\n if (trustedValueFn !== null) {\n if (!isStringLiteral(value)) {\n throw Error('AssertionError: extracted attribute value should be string literal');\n }\n array.push(taggedTemplate(trustedValueFn, new TemplateLiteral([new TemplateLiteralElement(value.value)], []), undefined, value.sourceSpan));\n }\n else {\n array.push(value);\n }\n }\n }\n arrayFor(kind) {\n if (kind === BindingKind.Property || kind === BindingKind.TwoWayProperty) {\n this.propertyBindings ??= [];\n return this.propertyBindings;\n }\n else {\n if (!this.byKind.has(kind)) {\n this.byKind.set(kind, []);\n }\n return this.byKind.get(kind);\n }\n }\n}\n/**\n * Gets an array of literal expressions representing the attribute's namespaced name.\n */\nfunction getAttributeNameLiterals(namespace, name) {\n const nameLiteral = literal(name);\n if (namespace) {\n return [literal(0 /* core.AttributeMarker.NamespaceURI */), literal(namespace), nameLiteral];\n }\n return [nameLiteral];\n}\n/**\n * Serializes an ElementAttributes object into an array expression.\n */\nfunction serializeAttributes({ attributes, bindings, classes, i18n, projectAs, styles, template, }) {\n const attrArray = [...attributes];\n if (projectAs !== null) {\n // Parse the attribute value into a CssSelectorList. Note that we only take the\n // first selector, because we don't support multiple selectors in ngProjectAs.\n const parsedR3Selector = parseSelectorToR3Selector(projectAs)[0];\n attrArray.push(literal(5 /* core.AttributeMarker.ProjectAs */), literalOrArrayLiteral(parsedR3Selector));\n }\n if (classes.length > 0) {\n attrArray.push(literal(1 /* core.AttributeMarker.Classes */), ...classes);\n }\n if (styles.length > 0) {\n attrArray.push(literal(2 /* core.AttributeMarker.Styles */), ...styles);\n }\n if (bindings.length > 0) {\n attrArray.push(literal(3 /* core.AttributeMarker.Bindings */), ...bindings);\n }\n if (template.length > 0) {\n attrArray.push(literal(4 /* core.AttributeMarker.Template */), ...template);\n }\n if (i18n.length > 0) {\n attrArray.push(literal(6 /* core.AttributeMarker.I18n */), ...i18n);\n }\n return literalArr(attrArray);\n}\n\n/**\n * Some binding instructions in the update block may actually correspond to i18n bindings. In that\n * case, they should be replaced with i18nExp instructions for the dynamic portions.\n */\nfunction convertI18nBindings(job) {\n const i18nAttributesByElem = new Map();\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === OpKind.I18nAttributes) {\n i18nAttributesByElem.set(op.target, op);\n }\n }\n for (const op of unit.update) {\n switch (op.kind) {\n case OpKind.Property:\n case OpKind.Attribute:\n if (op.i18nContext === null) {\n continue;\n }\n if (!(op.expression instanceof Interpolation)) {\n continue;\n }\n const i18nAttributesForElem = i18nAttributesByElem.get(op.target);\n if (i18nAttributesForElem === undefined) {\n throw new Error('AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction');\n }\n if (i18nAttributesForElem.target !== op.target) {\n throw new Error('AssertionError: Expected i18nAttributes target element to match binding target element');\n }\n const ops = [];\n for (let i = 0; i < op.expression.expressions.length; i++) {\n const expr = op.expression.expressions[i];\n if (op.expression.i18nPlaceholders.length !== op.expression.expressions.length) {\n throw new Error(`AssertionError: An i18n attribute binding instruction requires the same number of expressions and placeholders, but found ${op.expression.i18nPlaceholders.length} placeholders and ${op.expression.expressions.length} expressions`);\n }\n ops.push(createI18nExpressionOp(op.i18nContext, i18nAttributesForElem.target, i18nAttributesForElem.xref, i18nAttributesForElem.handle, expr, null, op.expression.i18nPlaceholders[i], I18nParamResolutionTime.Creation, I18nExpressionFor.I18nAttribute, op.name, op.sourceSpan));\n }\n OpList.replaceWithMany(op, ops);\n break;\n }\n }\n }\n}\n\n/**\n * Resolve the dependency function of a deferred block.\n */\nfunction resolveDeferDepsFns(job) {\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === OpKind.Defer) {\n if (op.resolverFn !== null) {\n continue;\n }\n if (op.ownResolverFn !== null) {\n if (op.handle.slot === null) {\n throw new Error('AssertionError: slot must be assigned before extracting defer deps functions');\n }\n const fullPathName = unit.fnName?.replace('_Template', '');\n op.resolverFn = job.pool.getSharedFunctionReference(op.ownResolverFn, `${fullPathName}_Defer_${op.handle.slot}_DepsFn`, \n /* Don't use unique names for TDB compatibility */ false);\n }\n }\n }\n }\n}\n\n/**\n * Create one helper context op per i18n block (including generate descending blocks).\n *\n * Also, if an ICU exists inside an i18n block that also contains other localizable content (such as\n * string), create an additional helper context op for the ICU.\n *\n * These context ops are later used for generating i18n messages. (Although we generate at least one\n * context op per nested view, we will collect them up the tree later, to generate a top-level\n * message.)\n */\nfunction createI18nContexts(job) {\n // Create i18n context ops for i18n attrs.\n const attrContextByMessage = new Map();\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n switch (op.kind) {\n case OpKind.Binding:\n case OpKind.Property:\n case OpKind.Attribute:\n case OpKind.ExtractedAttribute:\n if (op.i18nMessage === null) {\n continue;\n }\n if (!attrContextByMessage.has(op.i18nMessage)) {\n const i18nContext = createI18nContextOp(I18nContextKind.Attr, job.allocateXrefId(), null, op.i18nMessage, null);\n unit.create.push(i18nContext);\n attrContextByMessage.set(op.i18nMessage, i18nContext.xref);\n }\n op.i18nContext = attrContextByMessage.get(op.i18nMessage);\n break;\n }\n }\n }\n // Create i18n context ops for root i18n blocks.\n const blockContextByI18nBlock = new Map();\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case OpKind.I18nStart:\n if (op.xref === op.root) {\n const contextOp = createI18nContextOp(I18nContextKind.RootI18n, job.allocateXrefId(), op.xref, op.message, null);\n unit.create.push(contextOp);\n op.context = contextOp.xref;\n blockContextByI18nBlock.set(op.xref, contextOp);\n }\n break;\n }\n }\n }\n // Assign i18n contexts for child i18n blocks. These don't need their own conext, instead they\n // should inherit from their root i18n block.\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === OpKind.I18nStart && op.xref !== op.root) {\n const rootContext = blockContextByI18nBlock.get(op.root);\n if (rootContext === undefined) {\n throw Error('AssertionError: Root i18n block i18n context should have been created.');\n }\n op.context = rootContext.xref;\n blockContextByI18nBlock.set(op.xref, rootContext);\n }\n }\n }\n // Create or assign i18n contexts for ICUs.\n let currentI18nOp = null;\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case OpKind.I18nStart:\n currentI18nOp = op;\n break;\n case OpKind.I18nEnd:\n currentI18nOp = null;\n break;\n case OpKind.IcuStart:\n if (currentI18nOp === null) {\n throw Error('AssertionError: Unexpected ICU outside of an i18n block.');\n }\n if (op.message.id !== currentI18nOp.message.id) {\n // This ICU is a sub-message inside its parent i18n block message. We need to give it\n // its own context.\n const contextOp = createI18nContextOp(I18nContextKind.Icu, job.allocateXrefId(), currentI18nOp.root, op.message, null);\n unit.create.push(contextOp);\n op.context = contextOp.xref;\n }\n else {\n // This ICU is the only translatable content in its parent i18n block. We need to\n // convert the parent's context into an ICU context.\n op.context = currentI18nOp.context;\n blockContextByI18nBlock.get(currentI18nOp.xref).contextKind = I18nContextKind.Icu;\n }\n break;\n }\n }\n }\n}\n\n/**\n * Deduplicate text bindings, e.g. <div class=\"cls1\" class=\"cls2\">\n */\nfunction deduplicateTextBindings(job) {\n const seen = new Map();\n for (const unit of job.units) {\n for (const op of unit.update.reversed()) {\n if (op.kind === OpKind.Binding && op.isTextAttribute) {\n const seenForElement = seen.get(op.target) || new Set();\n if (seenForElement.has(op.name)) {\n if (job.compatibility === CompatibilityMode.TemplateDefinitionBuilder) {\n // For most duplicated attributes, TemplateDefinitionBuilder lists all of the values in\n // the consts array. However, for style and class attributes it only keeps the last one.\n // We replicate that behavior here since it has actual consequences for apps with\n // duplicate class or style attrs.\n if (op.name === 'style' || op.name === 'class') {\n OpList.remove(op);\n }\n }\n else {\n // TODO: Determine the correct behavior. It would probably make sense to merge multiple\n // style and class attributes. Alternatively we could just throw an error, as HTML\n // doesn't permit duplicate attributes.\n }\n }\n seenForElement.add(op.name);\n seen.set(op.target, seenForElement);\n }\n }\n }\n}\n\n/**\n * Defer instructions take a configuration array, which should be collected into the component\n * consts. This phase finds the config options, and creates the corresponding const array.\n */\nfunction configureDeferInstructions(job) {\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind !== OpKind.Defer) {\n continue;\n }\n if (op.placeholderMinimumTime !== null) {\n op.placeholderConfig = new ConstCollectedExpr(literalOrArrayLiteral([op.placeholderMinimumTime]));\n }\n if (op.loadingMinimumTime !== null || op.loadingAfterTime !== null) {\n op.loadingConfig = new ConstCollectedExpr(literalOrArrayLiteral([op.loadingMinimumTime, op.loadingAfterTime]));\n }\n }\n }\n}\n\n/**\n * Some `defer` conditions can reference other elements in the template, using their local reference\n * names. However, the semantics are quite different from the normal local reference system: in\n * particular, we need to look at local reference names in enclosing views. This phase resolves\n * all such references to actual xrefs.\n */\nfunction resolveDeferTargetNames(job) {\n const scopes = new Map();\n function getScopeForView(view) {\n if (scopes.has(view.xref)) {\n return scopes.get(view.xref);\n }\n const scope = new Scope$1();\n for (const op of view.create) {\n // add everything that can be referenced.\n if (!isElementOrContainerOp(op) || op.localRefs === null) {\n continue;\n }\n if (!Array.isArray(op.localRefs)) {\n throw new Error('LocalRefs were already processed, but were needed to resolve defer targets.');\n }\n for (const ref of op.localRefs) {\n if (ref.target !== '') {\n continue;\n }\n scope.targets.set(ref.name, { xref: op.xref, slot: op.handle });\n }\n }\n scopes.set(view.xref, scope);\n return scope;\n }\n function resolveTrigger(deferOwnerView, op, placeholderView) {\n switch (op.trigger.kind) {\n case DeferTriggerKind.Idle:\n case DeferTriggerKind.Never:\n case DeferTriggerKind.Immediate:\n case DeferTriggerKind.Timer:\n return;\n case DeferTriggerKind.Hover:\n case DeferTriggerKind.Interaction:\n case DeferTriggerKind.Viewport:\n if (op.trigger.targetName === null) {\n // A `null` target name indicates we should default to the first element in the\n // placeholder block.\n if (placeholderView === null) {\n throw new Error('defer on trigger with no target name must have a placeholder block');\n }\n const placeholder = job.views.get(placeholderView);\n if (placeholder == undefined) {\n throw new Error('AssertionError: could not find placeholder view for defer on trigger');\n }\n for (const placeholderOp of placeholder.create) {\n if (hasConsumesSlotTrait(placeholderOp) &&\n (isElementOrContainerOp(placeholderOp) ||\n placeholderOp.kind === OpKind.Projection)) {\n op.trigger.targetXref = placeholderOp.xref;\n op.trigger.targetView = placeholderView;\n op.trigger.targetSlotViewSteps = -1;\n op.trigger.targetSlot = placeholderOp.handle;\n return;\n }\n }\n return;\n }\n let view = placeholderView !== null ? job.views.get(placeholderView) : deferOwnerView;\n let step = placeholderView !== null ? -1 : 0;\n while (view !== null) {\n const scope = getScopeForView(view);\n if (scope.targets.has(op.trigger.targetName)) {\n const { xref, slot } = scope.targets.get(op.trigger.targetName);\n op.trigger.targetXref = xref;\n op.trigger.targetView = view.xref;\n op.trigger.targetSlotViewSteps = step;\n op.trigger.targetSlot = slot;\n return;\n }\n view = view.parent !== null ? job.views.get(view.parent) : null;\n step++;\n }\n break;\n default:\n throw new Error(`Trigger kind ${op.trigger.kind} not handled`);\n }\n }\n // Find the defer ops, and assign the data about their targets.\n for (const unit of job.units) {\n const defers = new Map();\n for (const op of unit.create) {\n switch (op.kind) {\n case OpKind.Defer:\n defers.set(op.xref, op);\n break;\n case OpKind.DeferOn:\n const deferOp = defers.get(op.defer);\n resolveTrigger(unit, op, op.modifier === \"hydrate\" /* ir.DeferOpModifierKind.HYDRATE */\n ? deferOp.mainView\n : deferOp.placeholderView);\n break;\n }\n }\n }\n}\nclass Scope$1 {\n targets = new Map();\n}\n\nconst REPLACEMENTS = new Map([\n [OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],\n [OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],\n [OpKind.I18nEnd, [OpKind.I18nStart, OpKind.I18n]],\n]);\n/**\n * Op kinds that should not prevent merging of start/end ops.\n */\nconst IGNORED_OP_KINDS = new Set([OpKind.Pipe]);\n/**\n * Replace sequences of mergable instructions (e.g. `ElementStart` and `ElementEnd`) with a\n * consolidated instruction (e.g. `Element`).\n */\nfunction collapseEmptyInstructions(job) {\n for (const unit of job.units) {\n for (const op of unit.create) {\n // Find end ops that may be able to be merged.\n const opReplacements = REPLACEMENTS.get(op.kind);\n if (opReplacements === undefined) {\n continue;\n }\n const [startKind, mergedKind] = opReplacements;\n // Locate the previous (non-ignored) op.\n let prevOp = op.prev;\n while (prevOp !== null && IGNORED_OP_KINDS.has(prevOp.kind)) {\n prevOp = prevOp.prev;\n }\n // If the previous op is the corresponding start op, we can megre.\n if (prevOp !== null && prevOp.kind === startKind) {\n // Transmute the start instruction to the merged version. This is safe as they're designed\n // to be identical apart from the `kind`.\n prevOp.kind = mergedKind;\n // Remove the end instruction.\n OpList.remove(op);\n }\n }\n }\n}\n\n/**\n * Safe read expressions such as `a?.b` have different semantics in Angular templates as\n * compared to JavaScript. In particular, they default to `null` instead of `undefined`. This phase\n * finds all unresolved safe read expressions, and converts them into the appropriate output AST\n * reads, guarded by null checks. We generate temporaries as needed, to avoid re-evaluating the same\n * sub-expression multiple times.\n */\nfunction expandSafeReads(job) {\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n transformExpressionsInOp(op, (e) => safeTransform(e, { job }), VisitorContextFlag.None);\n transformExpressionsInOp(op, ternaryTransform, VisitorContextFlag.None);\n }\n }\n}\n// A lookup set of all the expression kinds that require a temporary variable to be generated.\nconst requiresTemporary = [\n InvokeFunctionExpr,\n LiteralArrayExpr,\n LiteralMapExpr,\n SafeInvokeFunctionExpr,\n PipeBindingExpr,\n].map((e) => e.constructor.name);\nfunction needsTemporaryInSafeAccess(e) {\n // TODO: We probably want to use an expression visitor to recursively visit all descendents.\n // However, that would potentially do a lot of extra work (because it cannot short circuit), so we\n // implement the logic ourselves for now.\n if (e instanceof UnaryOperatorExpr) {\n return needsTemporaryInSafeAccess(e.expr);\n }\n else if (e instanceof BinaryOperatorExpr) {\n return needsTemporaryInSafeAccess(e.lhs) || needsTemporaryInSafeAccess(e.rhs);\n }\n else if (e instanceof ConditionalExpr) {\n if (e.falseCase && needsTemporaryInSafeAccess(e.falseCase))\n return true;\n return needsTemporaryInSafeAccess(e.condition) || needsTemporaryInSafeAccess(e.trueCase);\n }\n else if (e instanceof NotExpr) {\n return needsTemporaryInSafeAccess(e.condition);\n }\n else if (e instanceof AssignTemporaryExpr) {\n return needsTemporaryInSafeAccess(e.expr);\n }\n else if (e instanceof ReadPropExpr) {\n return needsTemporaryInSafeAccess(e.receiver);\n }\n else if (e instanceof ReadKeyExpr) {\n return needsTemporaryInSafeAccess(e.receiver) || needsTemporaryInSafeAccess(e.index);\n }\n // TODO: Switch to a method which is exhaustive of newly added expression subtypes.\n return (e instanceof InvokeFunctionExpr ||\n e instanceof LiteralArrayExpr ||\n e instanceof LiteralMapExpr ||\n e instanceof SafeInvokeFunctionExpr ||\n e instanceof PipeBindingExpr);\n}\nfunction temporariesIn(e) {\n const temporaries = new Set();\n // TODO: Although it's not currently supported by the transform helper, we should be able to\n // short-circuit exploring the tree to do less work. In particular, we don't have to penetrate\n // into the subexpressions of temporary assignments.\n transformExpressionsInExpression(e, (e) => {\n if (e instanceof AssignTemporaryExpr) {\n temporaries.add(e.xref);\n }\n return e;\n }, VisitorContextFlag.None);\n return temporaries;\n}\nfunction eliminateTemporaryAssignments(e, tmps, ctx) {\n // TODO: We can be more efficient than the transform helper here. We don't need to visit any\n // descendents of temporary assignments.\n transformExpressionsInExpression(e, (e) => {\n if (e instanceof AssignTemporaryExpr && tmps.has(e.xref)) {\n const read = new ReadTemporaryExpr(e.xref);\n // `TemplateDefinitionBuilder` has the (accidental?) behavior of generating assignments of\n // temporary variables to themselves. This happens because some subexpression that the\n // temporary refers to, possibly through nested temporaries, has a function call. We copy that\n // behavior here.\n return ctx.job.compatibility === CompatibilityMode.TemplateDefinitionBuilder\n ? new AssignTemporaryExpr(read, read.xref)\n : read;\n }\n return e;\n }, VisitorContextFlag.None);\n return e;\n}\n/**\n * Creates a safe ternary guarded by the input expression, and with a body generated by the provided\n * callback on the input expression. Generates a temporary variable assignment if needed, and\n * deduplicates nested temporary assignments if needed.\n */\nfunction safeTernaryWithTemporary(guard, body, ctx) {\n let result;\n if (needsTemporaryInSafeAccess(guard)) {\n const xref = ctx.job.allocateXrefId();\n result = [new AssignTemporaryExpr(guard, xref), new ReadTemporaryExpr(xref)];\n }\n else {\n result = [guard, guard.clone()];\n // Consider an expression like `a?.[b?.c()]?.d`. The `b?.c()` will be transformed first,\n // introducing a temporary assignment into the key. Then, as part of expanding the `?.d`. That\n // assignment will be duplicated into both the guard and expression sides. We de-duplicate it,\n // by transforming it from an assignment into a read on the expression side.\n eliminateTemporaryAssignments(result[1], temporariesIn(result[0]), ctx);\n }\n return new SafeTernaryExpr(result[0], body(result[1]));\n}\nfunction isSafeAccessExpression(e) {\n return (e instanceof SafePropertyReadExpr ||\n e instanceof SafeKeyedReadExpr ||\n e instanceof SafeInvokeFunctionExpr);\n}\nfunction isUnsafeAccessExpression(e) {\n return (e instanceof ReadPropExpr || e instanceof ReadKeyExpr || e instanceof InvokeFunctionExpr);\n}\nfunction isAccessExpression(e) {\n return isSafeAccessExpression(e) || isUnsafeAccessExpression(e);\n}\nfunction deepestSafeTernary(e) {\n if (isAccessExpression(e) && e.receiver instanceof SafeTernaryExpr) {\n let st = e.receiver;\n while (st.expr instanceof SafeTernaryExpr) {\n st = st.expr;\n }\n return st;\n }\n return null;\n}\n// TODO: When strict compatibility with TemplateDefinitionBuilder is not required, we can use `&&`\n// instead to save some code size.\nfunction safeTransform(e, ctx) {\n if (!isAccessExpression(e)) {\n return e;\n }\n const dst = deepestSafeTernary(e);\n if (dst) {\n if (e instanceof InvokeFunctionExpr) {\n dst.expr = dst.expr.callFn(e.args);\n return e.receiver;\n }\n if (e instanceof ReadPropExpr) {\n dst.expr = dst.expr.prop(e.name);\n return e.receiver;\n }\n if (e instanceof ReadKeyExpr) {\n dst.expr = dst.expr.key(e.index);\n return e.receiver;\n }\n if (e instanceof SafeInvokeFunctionExpr) {\n dst.expr = safeTernaryWithTemporary(dst.expr, (r) => r.callFn(e.args), ctx);\n return e.receiver;\n }\n if (e instanceof SafePropertyReadExpr) {\n dst.expr = safeTernaryWithTemporary(dst.expr, (r) => r.prop(e.name), ctx);\n return e.receiver;\n }\n if (e instanceof SafeKeyedReadExpr) {\n dst.expr = safeTernaryWithTemporary(dst.expr, (r) => r.key(e.index), ctx);\n return e.receiver;\n }\n }\n else {\n if (e instanceof SafeInvokeFunctionExpr) {\n return safeTernaryWithTemporary(e.receiver, (r) => r.callFn(e.args), ctx);\n }\n if (e instanceof SafePropertyReadExpr) {\n return safeTernaryWithTemporary(e.receiver, (r) => r.prop(e.name), ctx);\n }\n if (e instanceof SafeKeyedReadExpr) {\n return safeTernaryWithTemporary(e.receiver, (r) => r.key(e.index), ctx);\n }\n }\n return e;\n}\nfunction ternaryTransform(e) {\n if (!(e instanceof SafeTernaryExpr)) {\n return e;\n }\n return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);\n}\n\n/**\n * The escape sequence used indicate message param values.\n */\nconst ESCAPE$1 = '\\uFFFD';\n/**\n * Marker used to indicate an element tag.\n */\nconst ELEMENT_MARKER = '#';\n/**\n * Marker used to indicate a template tag.\n */\nconst TEMPLATE_MARKER = '*';\n/**\n * Marker used to indicate closing of an element or template tag.\n */\nconst TAG_CLOSE_MARKER = '/';\n/**\n * Marker used to indicate the sub-template context.\n */\nconst CONTEXT_MARKER = ':';\n/**\n * Marker used to indicate the start of a list of values.\n */\nconst LIST_START_MARKER = '[';\n/**\n * Marker used to indicate the end of a list of values.\n */\nconst LIST_END_MARKER = ']';\n/**\n * Delimiter used to separate multiple values in a list.\n */\nconst LIST_DELIMITER = '|';\n/**\n * Formats the param maps on extracted message ops into a maps of `Expression` objects that can be\n * used in the final output.\n */\nfunction extractI18nMessages(job) {\n // Create an i18n message for each context.\n // TODO: Merge the context op with the message op since they're 1:1 anyways.\n const i18nMessagesByContext = new Map();\n const i18nBlocks = new Map();\n const i18nContexts = new Map();\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case OpKind.I18nContext:\n const i18nMessageOp = createI18nMessage(job, op);\n unit.create.push(i18nMessageOp);\n i18nMessagesByContext.set(op.xref, i18nMessageOp);\n i18nContexts.set(op.xref, op);\n break;\n case OpKind.I18nStart:\n i18nBlocks.set(op.xref, op);\n break;\n }\n }\n }\n // Associate sub-messages for ICUs with their root message. At this point we can also remove the\n // ICU start/end ops, as they are no longer needed.\n let currentIcu = null;\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case OpKind.IcuStart:\n currentIcu = op;\n OpList.remove(op);\n // Skip any contexts not associated with an ICU.\n const icuContext = i18nContexts.get(op.context);\n if (icuContext.contextKind !== I18nContextKind.Icu) {\n continue;\n }\n // Skip ICUs that share a context with their i18n message. These represent root-level\n // ICUs, not sub-messages.\n const i18nBlock = i18nBlocks.get(icuContext.i18nBlock);\n if (i18nBlock.context === icuContext.xref) {\n continue;\n }\n // Find the root message and push this ICUs message as a sub-message.\n const rootI18nBlock = i18nBlocks.get(i18nBlock.root);\n const rootMessage = i18nMessagesByContext.get(rootI18nBlock.context);\n if (rootMessage === undefined) {\n throw Error('AssertionError: ICU sub-message should belong to a root message.');\n }\n const subMessage = i18nMessagesByContext.get(icuContext.xref);\n subMessage.messagePlaceholder = op.messagePlaceholder;\n rootMessage.subMessages.push(subMessage.xref);\n break;\n case OpKind.IcuEnd:\n currentIcu = null;\n OpList.remove(op);\n break;\n case OpKind.IcuPlaceholder:\n // Add ICU placeholders to the message, then remove the ICU placeholder ops.\n if (currentIcu === null || currentIcu.context == null) {\n throw Error('AssertionError: Unexpected ICU placeholder outside of i18n context');\n }\n const msg = i18nMessagesByContext.get(currentIcu.context);\n msg.postprocessingParams.set(op.name, literal(formatIcuPlaceholder(op)));\n OpList.remove(op);\n break;\n }\n }\n }\n}\n/**\n * Create an i18n message op from an i18n context op.\n */\nfunction createI18nMessage(job, context, messagePlaceholder) {\n let formattedParams = formatParams(context.params);\n const formattedPostprocessingParams = formatParams(context.postprocessingParams);\n let needsPostprocessing = [...context.params.values()].some((v) => v.length > 1);\n return createI18nMessageOp(job.allocateXrefId(), context.xref, context.i18nBlock, context.message, messagePlaceholder ?? null, formattedParams, formattedPostprocessingParams, needsPostprocessing);\n}\n/**\n * Formats an ICU placeholder into a single string with expression placeholders.\n */\nfunction formatIcuPlaceholder(op) {\n if (op.strings.length !== op.expressionPlaceholders.length + 1) {\n throw Error(`AssertionError: Invalid ICU placeholder with ${op.strings.length} strings and ${op.expressionPlaceholders.length} expressions`);\n }\n const values = op.expressionPlaceholders.map(formatValue);\n return op.strings.flatMap((str, i) => [str, values[i] || '']).join('');\n}\n/**\n * Formats a map of `I18nParamValue[]` values into a map of `Expression` values.\n */\nfunction formatParams(params) {\n const formattedParams = new Map();\n for (const [placeholder, placeholderValues] of params) {\n const serializedValues = formatParamValues(placeholderValues);\n if (serializedValues !== null) {\n formattedParams.set(placeholder, literal(serializedValues));\n }\n }\n return formattedParams;\n}\n/**\n * Formats an `I18nParamValue[]` into a string (or null for empty array).\n */\nfunction formatParamValues(values) {\n if (values.length === 0) {\n return null;\n }\n const serializedValues = values.map((value) => formatValue(value));\n return serializedValues.length === 1\n ? serializedValues[0]\n : `${LIST_START_MARKER}${serializedValues.join(LIST_DELIMITER)}${LIST_END_MARKER}`;\n}\n/**\n * Formats a single `I18nParamValue` into a string\n */\nfunction formatValue(value) {\n // Element tags with a structural directive use a special form that concatenates the element and\n // template values.\n if (value.flags & I18nParamValueFlags.ElementTag &&\n value.flags & I18nParamValueFlags.TemplateTag) {\n if (typeof value.value !== 'object') {\n throw Error('AssertionError: Expected i18n param value to have an element and template slot');\n }\n const elementValue = formatValue({\n ...value,\n value: value.value.element,\n flags: value.flags & ~I18nParamValueFlags.TemplateTag,\n });\n const templateValue = formatValue({\n ...value,\n value: value.value.template,\n flags: value.flags & ~I18nParamValueFlags.ElementTag,\n });\n // TODO(mmalerba): This is likely a bug in TemplateDefinitionBuilder, we should not need to\n // record the template value twice. For now I'm re-implementing the behavior here to keep the\n // output consistent with TemplateDefinitionBuilder.\n if (value.flags & I18nParamValueFlags.OpenTag &&\n value.flags & I18nParamValueFlags.CloseTag) {\n return `${templateValue}${elementValue}${templateValue}`;\n }\n // To match the TemplateDefinitionBuilder output, flip the order depending on whether the\n // values represent a closing or opening tag (or both).\n // TODO(mmalerba): Figure out if this makes a difference in terms of either functionality,\n // or the resulting message ID. If not, we can remove the special-casing in the future.\n return value.flags & I18nParamValueFlags.CloseTag\n ? `${elementValue}${templateValue}`\n : `${templateValue}${elementValue}`;\n }\n // Self-closing tags use a special form that concatenates the start and close tag values.\n if (value.flags & I18nParamValueFlags.OpenTag &&\n value.flags & I18nParamValueFlags.CloseTag) {\n return `${formatValue({\n ...value,\n flags: value.flags & ~I18nParamValueFlags.CloseTag,\n })}${formatValue({ ...value, flags: value.flags & ~I18nParamValueFlags.OpenTag })}`;\n }\n // If there are no special flags, just return the raw value.\n if (value.flags === I18nParamValueFlags.None) {\n return `${value.value}`;\n }\n // Encode the remaining flags as part of the value.\n let tagMarker = '';\n let closeMarker = '';\n if (value.flags & I18nParamValueFlags.ElementTag) {\n tagMarker = ELEMENT_MARKER;\n }\n else if (value.flags & I18nParamValueFlags.TemplateTag) {\n tagMarker = TEMPLATE_MARKER;\n }\n if (tagMarker !== '') {\n closeMarker = value.flags & I18nParamValueFlags.CloseTag ? TAG_CLOSE_MARKER : '';\n }\n const context = value.subTemplateIndex === null ? '' : `${CONTEXT_MARKER}${value.subTemplateIndex}`;\n return `${ESCAPE$1}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE$1}`;\n}\n\n/**\n * Generate `ir.AdvanceOp`s in between `ir.UpdateOp`s that ensure the runtime's implicit slot\n * context will be advanced correctly.\n */\nfunction generateAdvance(job) {\n for (const unit of job.units) {\n // First build a map of all of the declarations in the view that have assigned slots.\n const slotMap = new Map();\n for (const op of unit.create) {\n if (!hasConsumesSlotTrait(op)) {\n continue;\n }\n else if (op.handle.slot === null) {\n throw new Error(`AssertionError: expected slots to have been allocated before generating advance() calls`);\n }\n slotMap.set(op.xref, op.handle.slot);\n }\n // Next, step through the update operations and generate `ir.AdvanceOp`s as required to ensure\n // the runtime's implicit slot counter will be set to the correct slot before executing each\n // update operation which depends on it.\n //\n // To do that, we track what the runtime's slot counter will be through the update operations.\n let slotContext = 0;\n for (const op of unit.update) {\n let consumer = null;\n if (hasDependsOnSlotContextTrait(op)) {\n consumer = op;\n }\n else {\n visitExpressionsInOp(op, (expr) => {\n if (consumer === null && hasDependsOnSlotContextTrait(expr)) {\n consumer = expr;\n }\n });\n }\n if (consumer === null) {\n continue;\n }\n if (!slotMap.has(consumer.target)) {\n // We expect ops that _do_ depend on the slot counter to point at declarations that exist in\n // the `slotMap`.\n throw new Error(`AssertionError: reference to unknown slot for target ${consumer.target}`);\n }\n const slot = slotMap.get(consumer.target);\n // Does the slot counter need to be adjusted?\n if (slotContext !== slot) {\n // If so, generate an `ir.AdvanceOp` to advance the counter.\n const delta = slot - slotContext;\n if (delta < 0) {\n throw new Error(`AssertionError: slot counter should never need to move backwards`);\n }\n OpList.insertBefore(createAdvanceOp(delta, consumer.sourceSpan), op);\n slotContext = slot;\n }\n }\n }\n}\n\n/**\n * Locate projection slots, populate the each component's `ngContentSelectors` literal field,\n * populate `project` arguments, and generate the required `projectionDef` instruction for the job's\n * root view.\n */\nfunction generateProjectionDefs(job) {\n // TODO: Why does TemplateDefinitionBuilder force a shared constant?\n const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;\n // Collect all selectors from this component, and its nested views. Also, assign each projection a\n // unique ascending projection slot index.\n const selectors = [];\n let projectionSlotIndex = 0;\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === OpKind.Projection) {\n selectors.push(op.selector);\n op.projectionSlotIndex = projectionSlotIndex++;\n }\n }\n }\n if (selectors.length > 0) {\n // Create the projectionDef array. If we only found a single wildcard selector, then we use the\n // default behavior with no arguments instead.\n let defExpr = null;\n if (selectors.length > 1 || selectors[0] !== '*') {\n const def = selectors.map((s) => (s === '*' ? s : parseSelectorToR3Selector(s)));\n defExpr = job.pool.getConstLiteral(literalOrArrayLiteral(def), share);\n }\n // Create the ngContentSelectors constant.\n job.contentSelectors = job.pool.getConstLiteral(literalOrArrayLiteral(selectors), share);\n // The projection def instruction goes at the beginning of the root view, before any\n // `projection` instructions.\n job.root.create.prepend([createProjectionDefOp(defExpr)]);\n }\n}\n\n/**\n * Generate a preamble sequence for each view creation block and listener function which declares\n * any variables that be referenced in other operations in the block.\n *\n * Variables generated include:\n * * a saved view context to be used to restore the current view in event listeners.\n * * the context of the restored view within event listener handlers.\n * * context variables from the current view as well as all parent views (including the root\n * context if needed).\n * * local references from elements within the current view and any lexical parents.\n *\n * Variables are generated here unconditionally, and may optimized away in future operations if it\n * turns out their values (and any side effects) are unused.\n */\nfunction generateVariables(job) {\n recursivelyProcessView(job.root, /* there is no parent scope for the root view */ null);\n}\n/**\n * Process the given `ViewCompilation` and generate preambles for it and any listeners that it\n * declares.\n *\n * @param `parentScope` a scope extracted from the parent view which captures any variables which\n * should be inherited by this view. `null` if the current view is the root view.\n */\nfunction recursivelyProcessView(view, parentScope) {\n // Extract a `Scope` from this view.\n const scope = getScopeForView(view, parentScope);\n for (const op of view.create) {\n switch (op.kind) {\n case OpKind.Template:\n // Descend into child embedded views.\n recursivelyProcessView(view.job.views.get(op.xref), scope);\n break;\n case OpKind.Projection:\n if (op.fallbackView !== null) {\n recursivelyProcessView(view.job.views.get(op.fallbackView), scope);\n }\n break;\n case OpKind.RepeaterCreate:\n // Descend into child embedded views.\n recursivelyProcessView(view.job.views.get(op.xref), scope);\n if (op.emptyView) {\n recursivelyProcessView(view.job.views.get(op.emptyView), scope);\n }\n break;\n case OpKind.Listener:\n case OpKind.TwoWayListener:\n // Prepend variables to listener handler functions.\n op.handlerOps.prepend(generateVariablesInScopeForView(view, scope, true));\n break;\n }\n }\n view.update.prepend(generateVariablesInScopeForView(view, scope, false));\n}\n/**\n * Process a view and generate a `Scope` representing the variables available for reference within\n * that view.\n */\nfunction getScopeForView(view, parent) {\n const scope = {\n view: view.xref,\n viewContextVariable: {\n kind: SemanticVariableKind.Context,\n name: null,\n view: view.xref,\n },\n contextVariables: new Map(),\n aliases: view.aliases,\n references: [],\n letDeclarations: [],\n parent,\n };\n for (const identifier of view.contextVariables.keys()) {\n scope.contextVariables.set(identifier, {\n kind: SemanticVariableKind.Identifier,\n name: null,\n identifier,\n local: false,\n });\n }\n for (const op of view.create) {\n switch (op.kind) {\n case OpKind.ElementStart:\n case OpKind.Template:\n if (!Array.isArray(op.localRefs)) {\n throw new Error(`AssertionError: expected localRefs to be an array`);\n }\n // Record available local references from this element.\n for (let offset = 0; offset < op.localRefs.length; offset++) {\n scope.references.push({\n name: op.localRefs[offset].name,\n targetId: op.xref,\n targetSlot: op.handle,\n offset,\n variable: {\n kind: SemanticVariableKind.Identifier,\n name: null,\n identifier: op.localRefs[offset].name,\n local: false,\n },\n });\n }\n break;\n case OpKind.DeclareLet:\n scope.letDeclarations.push({\n targetId: op.xref,\n targetSlot: op.handle,\n variable: {\n kind: SemanticVariableKind.Identifier,\n name: null,\n identifier: op.declaredName,\n local: false,\n },\n });\n break;\n }\n }\n return scope;\n}\n/**\n * Generate declarations for all variables that are in scope for a given view.\n *\n * This is a recursive process, as views inherit variables available from their parent view, which\n * itself may have inherited variables, etc.\n */\nfunction generateVariablesInScopeForView(view, scope, isListener) {\n const newOps = [];\n if (scope.view !== view.xref) {\n // Before generating variables for a parent view, we need to switch to the context of the parent\n // view with a `nextContext` expression. This context switching operation itself declares a\n // variable, because the context of the view may be referenced directly.\n newOps.push(createVariableOp(view.job.allocateXrefId(), scope.viewContextVariable, new NextContextExpr(), VariableFlags.None));\n }\n // Add variables for all context variables available in this scope's view.\n const scopeView = view.job.views.get(scope.view);\n for (const [name, value] of scopeView.contextVariables) {\n const context = new ContextExpr(scope.view);\n // We either read the context, or, if the variable is CTX_REF, use the context directly.\n const variable = value === CTX_REF ? context : new ReadPropExpr(context, value);\n // Add the variable declaration.\n newOps.push(createVariableOp(view.job.allocateXrefId(), scope.contextVariables.get(name), variable, VariableFlags.None));\n }\n for (const alias of scopeView.aliases) {\n newOps.push(createVariableOp(view.job.allocateXrefId(), alias, alias.expression.clone(), VariableFlags.AlwaysInline));\n }\n // Add variables for all local references declared for elements in this scope.\n for (const ref of scope.references) {\n newOps.push(createVariableOp(view.job.allocateXrefId(), ref.variable, new ReferenceExpr(ref.targetId, ref.targetSlot, ref.offset), VariableFlags.None));\n }\n if (scope.view !== view.xref || isListener) {\n for (const decl of scope.letDeclarations) {\n newOps.push(createVariableOp(view.job.allocateXrefId(), decl.variable, new ContextLetReferenceExpr(decl.targetId, decl.targetSlot), VariableFlags.None));\n }\n }\n if (scope.parent !== null) {\n // Recursively add variables from the parent scope.\n newOps.push(...generateVariablesInScopeForView(view, scope.parent, false));\n }\n return newOps;\n}\n\n/**\n * `ir.ConstCollectedExpr` may be present in any IR expression. This means that expression needs to\n * be lifted into the component const array, and replaced with a reference to the const array at its\n *\n * usage site. This phase walks the IR and performs this transformation.\n */\nfunction collectConstExpressions(job) {\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n transformExpressionsInOp(op, (expr) => {\n if (!(expr instanceof ConstCollectedExpr)) {\n return expr;\n }\n return literal(job.addConst(expr.expr));\n }, VisitorContextFlag.None);\n }\n }\n}\n\nconst STYLE_DOT = 'style.';\nconst CLASS_DOT = 'class.';\nconst STYLE_BANG = 'style!';\nconst CLASS_BANG = 'class!';\nconst BANG_IMPORTANT = '!important';\n/**\n * Host bindings are compiled using a different parser entrypoint, and are parsed quite differently\n * as a result. Therefore, we need to do some extra parsing for host style properties, as compared\n * to non-host style properties.\n * TODO: Unify host bindings and non-host bindings in the parser.\n */\nfunction parseHostStyleProperties(job) {\n for (const op of job.root.update) {\n if (!(op.kind === OpKind.Binding && op.bindingKind === BindingKind.Property)) {\n continue;\n }\n if (op.name.endsWith(BANG_IMPORTANT)) {\n // Delete any `!important` suffixes from the binding name.\n op.name = op.name.substring(0, op.name.length - BANG_IMPORTANT.length);\n }\n if (op.name.startsWith(STYLE_DOT)) {\n op.bindingKind = BindingKind.StyleProperty;\n op.name = op.name.substring(STYLE_DOT.length);\n if (!isCssCustomProperty(op.name)) {\n op.name = hyphenate$1(op.name);\n }\n const { property, suffix } = parseProperty(op.name);\n op.name = property;\n op.unit = suffix;\n }\n else if (op.name.startsWith(STYLE_BANG)) {\n op.bindingKind = BindingKind.StyleProperty;\n op.name = 'style';\n }\n else if (op.name.startsWith(CLASS_DOT)) {\n op.bindingKind = BindingKind.ClassName;\n op.name = parseProperty(op.name.substring(CLASS_DOT.length)).property;\n }\n else if (op.name.startsWith(CLASS_BANG)) {\n op.bindingKind = BindingKind.ClassName;\n op.name = parseProperty(op.name.substring(CLASS_BANG.length)).property;\n }\n }\n}\n/**\n * Checks whether property name is a custom CSS property.\n * See: https://www.w3.org/TR/css-variables-1\n */\nfunction isCssCustomProperty(name) {\n return name.startsWith('--');\n}\nfunction hyphenate$1(value) {\n return value\n .replace(/[a-z][A-Z]/g, (v) => {\n return v.charAt(0) + '-' + v.charAt(1);\n })\n .toLowerCase();\n}\nfunction parseProperty(name) {\n const overrideIndex = name.indexOf('!important');\n if (overrideIndex !== -1) {\n name = overrideIndex > 0 ? name.substring(0, overrideIndex) : '';\n }\n let suffix = null;\n let property = name;\n const unitIndex = name.lastIndexOf('.');\n if (unitIndex > 0) {\n suffix = name.slice(unitIndex + 1);\n property = name.substring(0, unitIndex);\n }\n return { property, suffix };\n}\n\nfunction mapEntry(key, value) {\n return { key, value, quoted: false };\n}\nfunction mapLiteral(obj, quoted = false) {\n return literalMap(Object.keys(obj).map((key) => ({\n key,\n quoted,\n value: obj[key],\n })));\n}\n\nclass IcuSerializerVisitor {\n visitText(text) {\n return text.value;\n }\n visitContainer(container) {\n return container.children.map((child) => child.visit(this)).join('');\n }\n visitIcu(icu) {\n const strCases = Object.keys(icu.cases).map((k) => `${k} {${icu.cases[k].visit(this)}}`);\n const result = `{${icu.expressionPlaceholder}, ${icu.type}, ${strCases.join(' ')}}`;\n return result;\n }\n visitTagPlaceholder(ph) {\n return ph.isVoid\n ? this.formatPh(ph.startName)\n : `${this.formatPh(ph.startName)}${ph.children\n .map((child) => child.visit(this))\n .join('')}${this.formatPh(ph.closeName)}`;\n }\n visitPlaceholder(ph) {\n return this.formatPh(ph.name);\n }\n visitBlockPlaceholder(ph) {\n return `${this.formatPh(ph.startName)}${ph.children\n .map((child) => child.visit(this))\n .join('')}${this.formatPh(ph.closeName)}`;\n }\n visitIcuPlaceholder(ph, context) {\n return this.formatPh(ph.name);\n }\n formatPh(value) {\n return `{${formatI18nPlaceholderName(value, /* useCamelCase */ false)}}`;\n }\n}\nconst serializer = new IcuSerializerVisitor();\nfunction serializeIcuNode(icu) {\n return icu.visit(serializer);\n}\n\nclass NodeWithI18n {\n sourceSpan;\n i18n;\n constructor(sourceSpan, i18n) {\n this.sourceSpan = sourceSpan;\n this.i18n = i18n;\n }\n}\nclass Text extends NodeWithI18n {\n value;\n tokens;\n constructor(value, sourceSpan, tokens, i18n) {\n super(sourceSpan, i18n);\n this.value = value;\n this.tokens = tokens;\n }\n visit(visitor, context) {\n return visitor.visitText(this, context);\n }\n}\nclass Expansion extends NodeWithI18n {\n switchValue;\n type;\n cases;\n switchValueSourceSpan;\n constructor(switchValue, type, cases, sourceSpan, switchValueSourceSpan, i18n) {\n super(sourceSpan, i18n);\n this.switchValue = switchValue;\n this.type = type;\n this.cases = cases;\n this.switchValueSourceSpan = switchValueSourceSpan;\n }\n visit(visitor, context) {\n return visitor.visitExpansion(this, context);\n }\n}\nclass ExpansionCase {\n value;\n expression;\n sourceSpan;\n valueSourceSpan;\n expSourceSpan;\n constructor(value, expression, sourceSpan, valueSourceSpan, expSourceSpan) {\n this.value = value;\n this.expression = expression;\n this.sourceSpan = sourceSpan;\n this.valueSourceSpan = valueSourceSpan;\n this.expSourceSpan = expSourceSpan;\n }\n visit(visitor, context) {\n return visitor.visitExpansionCase(this, context);\n }\n}\nclass Attribute extends NodeWithI18n {\n name;\n value;\n keySpan;\n valueSpan;\n valueTokens;\n constructor(name, value, sourceSpan, keySpan, valueSpan, valueTokens, i18n) {\n super(sourceSpan, i18n);\n this.name = name;\n this.value = value;\n this.keySpan = keySpan;\n this.valueSpan = valueSpan;\n this.valueTokens = valueTokens;\n }\n visit(visitor, context) {\n return visitor.visitAttribute(this, context);\n }\n}\nclass Element extends NodeWithI18n {\n name;\n attrs;\n children;\n startSourceSpan;\n endSourceSpan;\n constructor(name, attrs, children, sourceSpan, startSourceSpan, endSourceSpan = null, i18n) {\n super(sourceSpan, i18n);\n this.name = name;\n this.attrs = attrs;\n this.children = children;\n this.startSourceSpan = startSourceSpan;\n this.endSourceSpan = endSourceSpan;\n }\n visit(visitor, context) {\n return visitor.visitElement(this, context);\n }\n}\nclass Comment {\n value;\n sourceSpan;\n constructor(value, sourceSpan) {\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n visit(visitor, context) {\n return visitor.visitComment(this, context);\n }\n}\nclass Block extends NodeWithI18n {\n name;\n parameters;\n children;\n nameSpan;\n startSourceSpan;\n endSourceSpan;\n constructor(name, parameters, children, sourceSpan, nameSpan, startSourceSpan, endSourceSpan = null, i18n) {\n super(sourceSpan, i18n);\n this.name = name;\n this.parameters = parameters;\n this.children = children;\n this.nameSpan = nameSpan;\n this.startSourceSpan = startSourceSpan;\n this.endSourceSpan = endSourceSpan;\n }\n visit(visitor, context) {\n return visitor.visitBlock(this, context);\n }\n}\nclass BlockParameter {\n expression;\n sourceSpan;\n constructor(expression, sourceSpan) {\n this.expression = expression;\n this.sourceSpan = sourceSpan;\n }\n visit(visitor, context) {\n return visitor.visitBlockParameter(this, context);\n }\n}\nclass LetDeclaration {\n name;\n value;\n sourceSpan;\n nameSpan;\n valueSpan;\n constructor(name, value, sourceSpan, nameSpan, valueSpan) {\n this.name = name;\n this.value = value;\n this.sourceSpan = sourceSpan;\n this.nameSpan = nameSpan;\n this.valueSpan = valueSpan;\n }\n visit(visitor, context) {\n return visitor.visitLetDeclaration(this, context);\n }\n}\nfunction visitAll(visitor, nodes, context = null) {\n const result = [];\n const visit = visitor.visit\n ? (ast) => visitor.visit(ast, context) || ast.visit(visitor, context)\n : (ast) => ast.visit(visitor, context);\n nodes.forEach((ast) => {\n const astResult = visit(ast);\n if (astResult) {\n result.push(astResult);\n }\n });\n return result;\n}\nclass RecursiveVisitor {\n constructor() { }\n visitElement(ast, context) {\n this.visitChildren(context, (visit) => {\n visit(ast.attrs);\n visit(ast.children);\n });\n }\n visitAttribute(ast, context) { }\n visitText(ast, context) { }\n visitComment(ast, context) { }\n visitExpansion(ast, context) {\n return this.visitChildren(context, (visit) => {\n visit(ast.cases);\n });\n }\n visitExpansionCase(ast, context) { }\n visitBlock(block, context) {\n this.visitChildren(context, (visit) => {\n visit(block.parameters);\n visit(block.children);\n });\n }\n visitBlockParameter(ast, context) { }\n visitLetDeclaration(decl, context) { }\n visitChildren(context, cb) {\n let results = [];\n let t = this;\n function visit(children) {\n if (children)\n results.push(visitAll(t, children, context));\n }\n cb(visit);\n return Array.prototype.concat.apply([], results);\n }\n}\n\n// Mapping between all HTML entity names and their unicode representation.\n// Generated from https://html.spec.whatwg.org/multipage/entities.json by stripping\n// the `&` and `;` from the keys and removing the duplicates.\n// see https://www.w3.org/TR/html51/syntax.html#named-character-references\nconst NAMED_ENTITIES = {\n 'AElig': '\\u00C6',\n 'AMP': '\\u0026',\n 'amp': '\\u0026',\n 'Aacute': '\\u00C1',\n 'Abreve': '\\u0102',\n 'Acirc': '\\u00C2',\n 'Acy': '\\u0410',\n 'Afr': '\\uD835\\uDD04',\n 'Agrave': '\\u00C0',\n 'Alpha': '\\u0391',\n 'Amacr': '\\u0100',\n 'And': '\\u2A53',\n 'Aogon': '\\u0104',\n 'Aopf': '\\uD835\\uDD38',\n 'ApplyFunction': '\\u2061',\n 'af': '\\u2061',\n 'Aring': '\\u00C5',\n 'angst': '\\u00C5',\n 'Ascr': '\\uD835\\uDC9C',\n 'Assign': '\\u2254',\n 'colone': '\\u2254',\n 'coloneq': '\\u2254',\n 'Atilde': '\\u00C3',\n 'Auml': '\\u00C4',\n 'Backslash': '\\u2216',\n 'setminus': '\\u2216',\n 'setmn': '\\u2216',\n 'smallsetminus': '\\u2216',\n 'ssetmn': '\\u2216',\n 'Barv': '\\u2AE7',\n 'Barwed': '\\u2306',\n 'doublebarwedge': '\\u2306',\n 'Bcy': '\\u0411',\n 'Because': '\\u2235',\n 'becaus': '\\u2235',\n 'because': '\\u2235',\n 'Bernoullis': '\\u212C',\n 'Bscr': '\\u212C',\n 'bernou': '\\u212C',\n 'Beta': '\\u0392',\n 'Bfr': '\\uD835\\uDD05',\n 'Bopf': '\\uD835\\uDD39',\n 'Breve': '\\u02D8',\n 'breve': '\\u02D8',\n 'Bumpeq': '\\u224E',\n 'HumpDownHump': '\\u224E',\n 'bump': '\\u224E',\n 'CHcy': '\\u0427',\n 'COPY': '\\u00A9',\n 'copy': '\\u00A9',\n 'Cacute': '\\u0106',\n 'Cap': '\\u22D2',\n 'CapitalDifferentialD': '\\u2145',\n 'DD': '\\u2145',\n 'Cayleys': '\\u212D',\n 'Cfr': '\\u212D',\n 'Ccaron': '\\u010C',\n 'Ccedil': '\\u00C7',\n 'Ccirc': '\\u0108',\n 'Cconint': '\\u2230',\n 'Cdot': '\\u010A',\n 'Cedilla': '\\u00B8',\n 'cedil': '\\u00B8',\n 'CenterDot': '\\u00B7',\n 'centerdot': '\\u00B7',\n 'middot': '\\u00B7',\n 'Chi': '\\u03A7',\n 'CircleDot': '\\u2299',\n 'odot': '\\u2299',\n 'CircleMinus': '\\u2296',\n 'ominus': '\\u2296',\n 'CirclePlus': '\\u2295',\n 'oplus': '\\u2295',\n 'CircleTimes': '\\u2297',\n 'otimes': '\\u2297',\n 'ClockwiseContourIntegral': '\\u2232',\n 'cwconint': '\\u2232',\n 'CloseCurlyDoubleQuote': '\\u201D',\n 'rdquo': '\\u201D',\n 'rdquor': '\\u201D',\n 'CloseCurlyQuote': '\\u2019',\n 'rsquo': '\\u2019',\n 'rsquor': '\\u2019',\n 'Colon': '\\u2237',\n 'Proportion': '\\u2237',\n 'Colone': '\\u2A74',\n 'Congruent': '\\u2261',\n 'equiv': '\\u2261',\n 'Conint': '\\u222F',\n 'DoubleContourIntegral': '\\u222F',\n 'ContourIntegral': '\\u222E',\n 'conint': '\\u222E',\n 'oint': '\\u222E',\n 'Copf': '\\u2102',\n 'complexes': '\\u2102',\n 'Coproduct': '\\u2210',\n 'coprod': '\\u2210',\n 'CounterClockwiseContourIntegral': '\\u2233',\n 'awconint': '\\u2233',\n 'Cross': '\\u2A2F',\n 'Cscr': '\\uD835\\uDC9E',\n 'Cup': '\\u22D3',\n 'CupCap': '\\u224D',\n 'asympeq': '\\u224D',\n 'DDotrahd': '\\u2911',\n 'DJcy': '\\u0402',\n 'DScy': '\\u0405',\n 'DZcy': '\\u040F',\n 'Dagger': '\\u2021',\n 'ddagger': '\\u2021',\n 'Darr': '\\u21A1',\n 'Dashv': '\\u2AE4',\n 'DoubleLeftTee': '\\u2AE4',\n 'Dcaron': '\\u010E',\n 'Dcy': '\\u0414',\n 'Del': '\\u2207',\n 'nabla': '\\u2207',\n 'Delta': '\\u0394',\n 'Dfr': '\\uD835\\uDD07',\n 'DiacriticalAcute': '\\u00B4',\n 'acute': '\\u00B4',\n 'DiacriticalDot': '\\u02D9',\n 'dot': '\\u02D9',\n 'DiacriticalDoubleAcute': '\\u02DD',\n 'dblac': '\\u02DD',\n 'DiacriticalGrave': '\\u0060',\n 'grave': '\\u0060',\n 'DiacriticalTilde': '\\u02DC',\n 'tilde': '\\u02DC',\n 'Diamond': '\\u22C4',\n 'diam': '\\u22C4',\n 'diamond': '\\u22C4',\n 'DifferentialD': '\\u2146',\n 'dd': '\\u2146',\n 'Dopf': '\\uD835\\uDD3B',\n 'Dot': '\\u00A8',\n 'DoubleDot': '\\u00A8',\n 'die': '\\u00A8',\n 'uml': '\\u00A8',\n 'DotDot': '\\u20DC',\n 'DotEqual': '\\u2250',\n 'doteq': '\\u2250',\n 'esdot': '\\u2250',\n 'DoubleDownArrow': '\\u21D3',\n 'Downarrow': '\\u21D3',\n 'dArr': '\\u21D3',\n 'DoubleLeftArrow': '\\u21D0',\n 'Leftarrow': '\\u21D0',\n 'lArr': '\\u21D0',\n 'DoubleLeftRightArrow': '\\u21D4',\n 'Leftrightarrow': '\\u21D4',\n 'hArr': '\\u21D4',\n 'iff': '\\u21D4',\n 'DoubleLongLeftArrow': '\\u27F8',\n 'Longleftarrow': '\\u27F8',\n 'xlArr': '\\u27F8',\n 'DoubleLongLeftRightArrow': '\\u27FA',\n 'Longleftrightarrow': '\\u27FA',\n 'xhArr': '\\u27FA',\n 'DoubleLongRightArrow': '\\u27F9',\n 'Longrightarrow': '\\u27F9',\n 'xrArr': '\\u27F9',\n 'DoubleRightArrow': '\\u21D2',\n 'Implies': '\\u21D2',\n 'Rightarrow': '\\u21D2',\n 'rArr': '\\u21D2',\n 'DoubleRightTee': '\\u22A8',\n 'vDash': '\\u22A8',\n 'DoubleUpArrow': '\\u21D1',\n 'Uparrow': '\\u21D1',\n 'uArr': '\\u21D1',\n 'DoubleUpDownArrow': '\\u21D5',\n 'Updownarrow': '\\u21D5',\n 'vArr': '\\u21D5',\n 'DoubleVerticalBar': '\\u2225',\n 'par': '\\u2225',\n 'parallel': '\\u2225',\n 'shortparallel': '\\u2225',\n 'spar': '\\u2225',\n 'DownArrow': '\\u2193',\n 'ShortDownArrow': '\\u2193',\n 'darr': '\\u2193',\n 'downarrow': '\\u2193',\n 'DownArrowBar': '\\u2913',\n 'DownArrowUpArrow': '\\u21F5',\n 'duarr': '\\u21F5',\n 'DownBreve': '\\u0311',\n 'DownLeftRightVector': '\\u2950',\n 'DownLeftTeeVector': '\\u295E',\n 'DownLeftVector': '\\u21BD',\n 'leftharpoondown': '\\u21BD',\n 'lhard': '\\u21BD',\n 'DownLeftVectorBar': '\\u2956',\n 'DownRightTeeVector': '\\u295F',\n 'DownRightVector': '\\u21C1',\n 'rhard': '\\u21C1',\n 'rightharpoondown': '\\u21C1',\n 'DownRightVectorBar': '\\u2957',\n 'DownTee': '\\u22A4',\n 'top': '\\u22A4',\n 'DownTeeArrow': '\\u21A7',\n 'mapstodown': '\\u21A7',\n 'Dscr': '\\uD835\\uDC9F',\n 'Dstrok': '\\u0110',\n 'ENG': '\\u014A',\n 'ETH': '\\u00D0',\n 'Eacute': '\\u00C9',\n 'Ecaron': '\\u011A',\n 'Ecirc': '\\u00CA',\n 'Ecy': '\\u042D',\n 'Edot': '\\u0116',\n 'Efr': '\\uD835\\uDD08',\n 'Egrave': '\\u00C8',\n 'Element': '\\u2208',\n 'in': '\\u2208',\n 'isin': '\\u2208',\n 'isinv': '\\u2208',\n 'Emacr': '\\u0112',\n 'EmptySmallSquare': '\\u25FB',\n 'EmptyVerySmallSquare': '\\u25AB',\n 'Eogon': '\\u0118',\n 'Eopf': '\\uD835\\uDD3C',\n 'Epsilon': '\\u0395',\n 'Equal': '\\u2A75',\n 'EqualTilde': '\\u2242',\n 'eqsim': '\\u2242',\n 'esim': '\\u2242',\n 'Equilibrium': '\\u21CC',\n 'rightleftharpoons': '\\u21CC',\n 'rlhar': '\\u21CC',\n 'Escr': '\\u2130',\n 'expectation': '\\u2130',\n 'Esim': '\\u2A73',\n 'Eta': '\\u0397',\n 'Euml': '\\u00CB',\n 'Exists': '\\u2203',\n 'exist': '\\u2203',\n 'ExponentialE': '\\u2147',\n 'ee': '\\u2147',\n 'exponentiale': '\\u2147',\n 'Fcy': '\\u0424',\n 'Ffr': '\\uD835\\uDD09',\n 'FilledSmallSquare': '\\u25FC',\n 'FilledVerySmallSquare': '\\u25AA',\n 'blacksquare': '\\u25AA',\n 'squarf': '\\u25AA',\n 'squf': '\\u25AA',\n 'Fopf': '\\uD835\\uDD3D',\n 'ForAll': '\\u2200',\n 'forall': '\\u2200',\n 'Fouriertrf': '\\u2131',\n 'Fscr': '\\u2131',\n 'GJcy': '\\u0403',\n 'GT': '\\u003E',\n 'gt': '\\u003E',\n 'Gamma': '\\u0393',\n 'Gammad': '\\u03DC',\n 'Gbreve': '\\u011E',\n 'Gcedil': '\\u0122',\n 'Gcirc': '\\u011C',\n 'Gcy': '\\u0413',\n 'Gdot': '\\u0120',\n 'Gfr': '\\uD835\\uDD0A',\n 'Gg': '\\u22D9',\n 'ggg': '\\u22D9',\n 'Gopf': '\\uD835\\uDD3E',\n 'GreaterEqual': '\\u2265',\n 'ge': '\\u2265',\n 'geq': '\\u2265',\n 'GreaterEqualLess': '\\u22DB',\n 'gel': '\\u22DB',\n 'gtreqless': '\\u22DB',\n 'GreaterFullEqual': '\\u2267',\n 'gE': '\\u2267',\n 'geqq': '\\u2267',\n 'GreaterGreater': '\\u2AA2',\n 'GreaterLess': '\\u2277',\n 'gl': '\\u2277',\n 'gtrless': '\\u2277',\n 'GreaterSlantEqual': '\\u2A7E',\n 'geqslant': '\\u2A7E',\n 'ges': '\\u2A7E',\n 'GreaterTilde': '\\u2273',\n 'gsim': '\\u2273',\n 'gtrsim': '\\u2273',\n 'Gscr': '\\uD835\\uDCA2',\n 'Gt': '\\u226B',\n 'NestedGreaterGreater': '\\u226B',\n 'gg': '\\u226B',\n 'HARDcy': '\\u042A',\n 'Hacek': '\\u02C7',\n 'caron': '\\u02C7',\n 'Hat': '\\u005E',\n 'Hcirc': '\\u0124',\n 'Hfr': '\\u210C',\n 'Poincareplane': '\\u210C',\n 'HilbertSpace': '\\u210B',\n 'Hscr': '\\u210B',\n 'hamilt': '\\u210B',\n 'Hopf': '\\u210D',\n 'quaternions': '\\u210D',\n 'HorizontalLine': '\\u2500',\n 'boxh': '\\u2500',\n 'Hstrok': '\\u0126',\n 'HumpEqual': '\\u224F',\n 'bumpe': '\\u224F',\n 'bumpeq': '\\u224F',\n 'IEcy': '\\u0415',\n 'IJlig': '\\u0132',\n 'IOcy': '\\u0401',\n 'Iacute': '\\u00CD',\n 'Icirc': '\\u00CE',\n 'Icy': '\\u0418',\n 'Idot': '\\u0130',\n 'Ifr': '\\u2111',\n 'Im': '\\u2111',\n 'image': '\\u2111',\n 'imagpart': '\\u2111',\n 'Igrave': '\\u00CC',\n 'Imacr': '\\u012A',\n 'ImaginaryI': '\\u2148',\n 'ii': '\\u2148',\n 'Int': '\\u222C',\n 'Integral': '\\u222B',\n 'int': '\\u222B',\n 'Intersection': '\\u22C2',\n 'bigcap': '\\u22C2',\n 'xcap': '\\u22C2',\n 'InvisibleComma': '\\u2063',\n 'ic': '\\u2063',\n 'InvisibleTimes': '\\u2062',\n 'it': '\\u2062',\n 'Iogon': '\\u012E',\n 'Iopf': '\\uD835\\uDD40',\n 'Iota': '\\u0399',\n 'Iscr': '\\u2110',\n 'imagline': '\\u2110',\n 'Itilde': '\\u0128',\n 'Iukcy': '\\u0406',\n 'Iuml': '\\u00CF',\n 'Jcirc': '\\u0134',\n 'Jcy': '\\u0419',\n 'Jfr': '\\uD835\\uDD0D',\n 'Jopf': '\\uD835\\uDD41',\n 'Jscr': '\\uD835\\uDCA5',\n 'Jsercy': '\\u0408',\n 'Jukcy': '\\u0404',\n 'KHcy': '\\u0425',\n 'KJcy': '\\u040C',\n 'Kappa': '\\u039A',\n 'Kcedil': '\\u0136',\n 'Kcy': '\\u041A',\n 'Kfr': '\\uD835\\uDD0E',\n 'Kopf': '\\uD835\\uDD42',\n 'Kscr': '\\uD835\\uDCA6',\n 'LJcy': '\\u0409',\n 'LT': '\\u003C',\n 'lt': '\\u003C',\n 'Lacute': '\\u0139',\n 'Lambda': '\\u039B',\n 'Lang': '\\u27EA',\n 'Laplacetrf': '\\u2112',\n 'Lscr': '\\u2112',\n 'lagran': '\\u2112',\n 'Larr': '\\u219E',\n 'twoheadleftarrow': '\\u219E',\n 'Lcaron': '\\u013D',\n 'Lcedil': '\\u013B',\n 'Lcy': '\\u041B',\n 'LeftAngleBracket': '\\u27E8',\n 'lang': '\\u27E8',\n 'langle': '\\u27E8',\n 'LeftArrow': '\\u2190',\n 'ShortLeftArrow': '\\u2190',\n 'larr': '\\u2190',\n 'leftarrow': '\\u2190',\n 'slarr': '\\u2190',\n 'LeftArrowBar': '\\u21E4',\n 'larrb': '\\u21E4',\n 'LeftArrowRightArrow': '\\u21C6',\n 'leftrightarrows': '\\u21C6',\n 'lrarr': '\\u21C6',\n 'LeftCeiling': '\\u2308',\n 'lceil': '\\u2308',\n 'LeftDoubleBracket': '\\u27E6',\n 'lobrk': '\\u27E6',\n 'LeftDownTeeVector': '\\u2961',\n 'LeftDownVector': '\\u21C3',\n 'dharl': '\\u21C3',\n 'downharpoonleft': '\\u21C3',\n 'LeftDownVectorBar': '\\u2959',\n 'LeftFloor': '\\u230A',\n 'lfloor': '\\u230A',\n 'LeftRightArrow': '\\u2194',\n 'harr': '\\u2194',\n 'leftrightarrow': '\\u2194',\n 'LeftRightVector': '\\u294E',\n 'LeftTee': '\\u22A3',\n 'dashv': '\\u22A3',\n 'LeftTeeArrow': '\\u21A4',\n 'mapstoleft': '\\u21A4',\n 'LeftTeeVector': '\\u295A',\n 'LeftTriangle': '\\u22B2',\n 'vartriangleleft': '\\u22B2',\n 'vltri': '\\u22B2',\n 'LeftTriangleBar': '\\u29CF',\n 'LeftTriangleEqual': '\\u22B4',\n 'ltrie': '\\u22B4',\n 'trianglelefteq': '\\u22B4',\n 'LeftUpDownVector': '\\u2951',\n 'LeftUpTeeVector': '\\u2960',\n 'LeftUpVector': '\\u21BF',\n 'uharl': '\\u21BF',\n 'upharpoonleft': '\\u21BF',\n 'LeftUpVectorBar': '\\u2958',\n 'LeftVector': '\\u21BC',\n 'leftharpoonup': '\\u21BC',\n 'lharu': '\\u21BC',\n 'LeftVectorBar': '\\u2952',\n 'LessEqualGreater': '\\u22DA',\n 'leg': '\\u22DA',\n 'lesseqgtr': '\\u22DA',\n 'LessFullEqual': '\\u2266',\n 'lE': '\\u2266',\n 'leqq': '\\u2266',\n 'LessGreater': '\\u2276',\n 'lessgtr': '\\u2276',\n 'lg': '\\u2276',\n 'LessLess': '\\u2AA1',\n 'LessSlantEqual': '\\u2A7D',\n 'leqslant': '\\u2A7D',\n 'les': '\\u2A7D',\n 'LessTilde': '\\u2272',\n 'lesssim': '\\u2272',\n 'lsim': '\\u2272',\n 'Lfr': '\\uD835\\uDD0F',\n 'Ll': '\\u22D8',\n 'Lleftarrow': '\\u21DA',\n 'lAarr': '\\u21DA',\n 'Lmidot': '\\u013F',\n 'LongLeftArrow': '\\u27F5',\n 'longleftarrow': '\\u27F5',\n 'xlarr': '\\u27F5',\n 'LongLeftRightArrow': '\\u27F7',\n 'longleftrightarrow': '\\u27F7',\n 'xharr': '\\u27F7',\n 'LongRightArrow': '\\u27F6',\n 'longrightarrow': '\\u27F6',\n 'xrarr': '\\u27F6',\n 'Lopf': '\\uD835\\uDD43',\n 'LowerLeftArrow': '\\u2199',\n 'swarr': '\\u2199',\n 'swarrow': '\\u2199',\n 'LowerRightArrow': '\\u2198',\n 'searr': '\\u2198',\n 'searrow': '\\u2198',\n 'Lsh': '\\u21B0',\n 'lsh': '\\u21B0',\n 'Lstrok': '\\u0141',\n 'Lt': '\\u226A',\n 'NestedLessLess': '\\u226A',\n 'll': '\\u226A',\n 'Map': '\\u2905',\n 'Mcy': '\\u041C',\n 'MediumSpace': '\\u205F',\n 'Mellintrf': '\\u2133',\n 'Mscr': '\\u2133',\n 'phmmat': '\\u2133',\n 'Mfr': '\\uD835\\uDD10',\n 'MinusPlus': '\\u2213',\n 'mnplus': '\\u2213',\n 'mp': '\\u2213',\n 'Mopf': '\\uD835\\uDD44',\n 'Mu': '\\u039C',\n 'NJcy': '\\u040A',\n 'Nacute': '\\u0143',\n 'Ncaron': '\\u0147',\n 'Ncedil': '\\u0145',\n 'Ncy': '\\u041D',\n 'NegativeMediumSpace': '\\u200B',\n 'NegativeThickSpace': '\\u200B',\n 'NegativeThinSpace': '\\u200B',\n 'NegativeVeryThinSpace': '\\u200B',\n 'ZeroWidthSpace': '\\u200B',\n 'NewLine': '\\u000A',\n 'Nfr': '\\uD835\\uDD11',\n 'NoBreak': '\\u2060',\n 'NonBreakingSpace': '\\u00A0',\n 'nbsp': '\\u00A0',\n 'Nopf': '\\u2115',\n 'naturals': '\\u2115',\n 'Not': '\\u2AEC',\n 'NotCongruent': '\\u2262',\n 'nequiv': '\\u2262',\n 'NotCupCap': '\\u226D',\n 'NotDoubleVerticalBar': '\\u2226',\n 'npar': '\\u2226',\n 'nparallel': '\\u2226',\n 'nshortparallel': '\\u2226',\n 'nspar': '\\u2226',\n 'NotElement': '\\u2209',\n 'notin': '\\u2209',\n 'notinva': '\\u2209',\n 'NotEqual': '\\u2260',\n 'ne': '\\u2260',\n 'NotEqualTilde': '\\u2242\\u0338',\n 'nesim': '\\u2242\\u0338',\n 'NotExists': '\\u2204',\n 'nexist': '\\u2204',\n 'nexists': '\\u2204',\n 'NotGreater': '\\u226F',\n 'ngt': '\\u226F',\n 'ngtr': '\\u226F',\n 'NotGreaterEqual': '\\u2271',\n 'nge': '\\u2271',\n 'ngeq': '\\u2271',\n 'NotGreaterFullEqual': '\\u2267\\u0338',\n 'ngE': '\\u2267\\u0338',\n 'ngeqq': '\\u2267\\u0338',\n 'NotGreaterGreater': '\\u226B\\u0338',\n 'nGtv': '\\u226B\\u0338',\n 'NotGreaterLess': '\\u2279',\n 'ntgl': '\\u2279',\n 'NotGreaterSlantEqual': '\\u2A7E\\u0338',\n 'ngeqslant': '\\u2A7E\\u0338',\n 'nges': '\\u2A7E\\u0338',\n 'NotGreaterTilde': '\\u2275',\n 'ngsim': '\\u2275',\n 'NotHumpDownHump': '\\u224E\\u0338',\n 'nbump': '\\u224E\\u0338',\n 'NotHumpEqual': '\\u224F\\u0338',\n 'nbumpe': '\\u224F\\u0338',\n 'NotLeftTriangle': '\\u22EA',\n 'nltri': '\\u22EA',\n 'ntriangleleft': '\\u22EA',\n 'NotLeftTriangleBar': '\\u29CF\\u0338',\n 'NotLeftTriangleEqual': '\\u22EC',\n 'nltrie': '\\u22EC',\n 'ntrianglelefteq': '\\u22EC',\n 'NotLess': '\\u226E',\n 'nless': '\\u226E',\n 'nlt': '\\u226E',\n 'NotLessEqual': '\\u2270',\n 'nle': '\\u2270',\n 'nleq': '\\u2270',\n 'NotLessGreater': '\\u2278',\n 'ntlg': '\\u2278',\n 'NotLessLess': '\\u226A\\u0338',\n 'nLtv': '\\u226A\\u0338',\n 'NotLessSlantEqual': '\\u2A7D\\u0338',\n 'nleqslant': '\\u2A7D\\u0338',\n 'nles': '\\u2A7D\\u0338',\n 'NotLessTilde': '\\u2274',\n 'nlsim': '\\u2274',\n 'NotNestedGreaterGreater': '\\u2AA2\\u0338',\n 'NotNestedLessLess': '\\u2AA1\\u0338',\n 'NotPrecedes': '\\u2280',\n 'npr': '\\u2280',\n 'nprec': '\\u2280',\n 'NotPrecedesEqual': '\\u2AAF\\u0338',\n 'npre': '\\u2AAF\\u0338',\n 'npreceq': '\\u2AAF\\u0338',\n 'NotPrecedesSlantEqual': '\\u22E0',\n 'nprcue': '\\u22E0',\n 'NotReverseElement': '\\u220C',\n 'notni': '\\u220C',\n 'notniva': '\\u220C',\n 'NotRightTriangle': '\\u22EB',\n 'nrtri': '\\u22EB',\n 'ntriangleright': '\\u22EB',\n 'NotRightTriangleBar': '\\u29D0\\u0338',\n 'NotRightTriangleEqual': '\\u22ED',\n 'nrtrie': '\\u22ED',\n 'ntrianglerighteq': '\\u22ED',\n 'NotSquareSubset': '\\u228F\\u0338',\n 'NotSquareSubsetEqual': '\\u22E2',\n 'nsqsube': '\\u22E2',\n 'NotSquareSuperset': '\\u2290\\u0338',\n 'NotSquareSupersetEqual': '\\u22E3',\n 'nsqsupe': '\\u22E3',\n 'NotSubset': '\\u2282\\u20D2',\n 'nsubset': '\\u2282\\u20D2',\n 'vnsub': '\\u2282\\u20D2',\n 'NotSubsetEqual': '\\u2288',\n 'nsube': '\\u2288',\n 'nsubseteq': '\\u2288',\n 'NotSucceeds': '\\u2281',\n 'nsc': '\\u2281',\n 'nsucc': '\\u2281',\n 'NotSucceedsEqual': '\\u2AB0\\u0338',\n 'nsce': '\\u2AB0\\u0338',\n 'nsucceq': '\\u2AB0\\u0338',\n 'NotSucceedsSlantEqual': '\\u22E1',\n 'nsccue': '\\u22E1',\n 'NotSucceedsTilde': '\\u227F\\u0338',\n 'NotSuperset': '\\u2283\\u20D2',\n 'nsupset': '\\u2283\\u20D2',\n 'vnsup': '\\u2283\\u20D2',\n 'NotSupersetEqual': '\\u2289',\n 'nsupe': '\\u2289',\n 'nsupseteq': '\\u2289',\n 'NotTilde': '\\u2241',\n 'nsim': '\\u2241',\n 'NotTildeEqual': '\\u2244',\n 'nsime': '\\u2244',\n 'nsimeq': '\\u2244',\n 'NotTildeFullEqual': '\\u2247',\n 'ncong': '\\u2247',\n 'NotTildeTilde': '\\u2249',\n 'nap': '\\u2249',\n 'napprox': '\\u2249',\n 'NotVerticalBar': '\\u2224',\n 'nmid': '\\u2224',\n 'nshortmid': '\\u2224',\n 'nsmid': '\\u2224',\n 'Nscr': '\\uD835\\uDCA9',\n 'Ntilde': '\\u00D1',\n 'Nu': '\\u039D',\n 'OElig': '\\u0152',\n 'Oacute': '\\u00D3',\n 'Ocirc': '\\u00D4',\n 'Ocy': '\\u041E',\n 'Odblac': '\\u0150',\n 'Ofr': '\\uD835\\uDD12',\n 'Ograve': '\\u00D2',\n 'Omacr': '\\u014C',\n 'Omega': '\\u03A9',\n 'ohm': '\\u03A9',\n 'Omicron': '\\u039F',\n 'Oopf': '\\uD835\\uDD46',\n 'OpenCurlyDoubleQuote': '\\u201C',\n 'ldquo': '\\u201C',\n 'OpenCurlyQuote': '\\u2018',\n 'lsquo': '\\u2018',\n 'Or': '\\u2A54',\n 'Oscr': '\\uD835\\uDCAA',\n 'Oslash': '\\u00D8',\n 'Otilde': '\\u00D5',\n 'Otimes': '\\u2A37',\n 'Ouml': '\\u00D6',\n 'OverBar': '\\u203E',\n 'oline': '\\u203E',\n 'OverBrace': '\\u23DE',\n 'OverBracket': '\\u23B4',\n 'tbrk': '\\u23B4',\n 'OverParenthesis': '\\u23DC',\n 'PartialD': '\\u2202',\n 'part': '\\u2202',\n 'Pcy': '\\u041F',\n 'Pfr': '\\uD835\\uDD13',\n 'Phi': '\\u03A6',\n 'Pi': '\\u03A0',\n 'PlusMinus': '\\u00B1',\n 'plusmn': '\\u00B1',\n 'pm': '\\u00B1',\n 'Popf': '\\u2119',\n 'primes': '\\u2119',\n 'Pr': '\\u2ABB',\n 'Precedes': '\\u227A',\n 'pr': '\\u227A',\n 'prec': '\\u227A',\n 'PrecedesEqual': '\\u2AAF',\n 'pre': '\\u2AAF',\n 'preceq': '\\u2AAF',\n 'PrecedesSlantEqual': '\\u227C',\n 'prcue': '\\u227C',\n 'preccurlyeq': '\\u227C',\n 'PrecedesTilde': '\\u227E',\n 'precsim': '\\u227E',\n 'prsim': '\\u227E',\n 'Prime': '\\u2033',\n 'Product': '\\u220F',\n 'prod': '\\u220F',\n 'Proportional': '\\u221D',\n 'prop': '\\u221D',\n 'propto': '\\u221D',\n 'varpropto': '\\u221D',\n 'vprop': '\\u221D',\n 'Pscr': '\\uD835\\uDCAB',\n 'Psi': '\\u03A8',\n 'QUOT': '\\u0022',\n 'quot': '\\u0022',\n 'Qfr': '\\uD835\\uDD14',\n 'Qopf': '\\u211A',\n 'rationals': '\\u211A',\n 'Qscr': '\\uD835\\uDCAC',\n 'RBarr': '\\u2910',\n 'drbkarow': '\\u2910',\n 'REG': '\\u00AE',\n 'circledR': '\\u00AE',\n 'reg': '\\u00AE',\n 'Racute': '\\u0154',\n 'Rang': '\\u27EB',\n 'Rarr': '\\u21A0',\n 'twoheadrightarrow': '\\u21A0',\n 'Rarrtl': '\\u2916',\n 'Rcaron': '\\u0158',\n 'Rcedil': '\\u0156',\n 'Rcy': '\\u0420',\n 'Re': '\\u211C',\n 'Rfr': '\\u211C',\n 'real': '\\u211C',\n 'realpart': '\\u211C',\n 'ReverseElement': '\\u220B',\n 'SuchThat': '\\u220B',\n 'ni': '\\u220B',\n 'niv': '\\u220B',\n 'ReverseEquilibrium': '\\u21CB',\n 'leftrightharpoons': '\\u21CB',\n 'lrhar': '\\u21CB',\n 'ReverseUpEquilibrium': '\\u296F',\n 'duhar': '\\u296F',\n 'Rho': '\\u03A1',\n 'RightAngleBracket': '\\u27E9',\n 'rang': '\\u27E9',\n 'rangle': '\\u27E9',\n 'RightArrow': '\\u2192',\n 'ShortRightArrow': '\\u2192',\n 'rarr': '\\u2192',\n 'rightarrow': '\\u2192',\n 'srarr': '\\u2192',\n 'RightArrowBar': '\\u21E5',\n 'rarrb': '\\u21E5',\n 'RightArrowLeftArrow': '\\u21C4',\n 'rightleftarrows': '\\u21C4',\n 'rlarr': '\\u21C4',\n 'RightCeiling': '\\u2309',\n 'rceil': '\\u2309',\n 'RightDoubleBracket': '\\u27E7',\n 'robrk': '\\u27E7',\n 'RightDownTeeVector': '\\u295D',\n 'RightDownVector': '\\u21C2',\n 'dharr': '\\u21C2',\n 'downharpoonright': '\\u21C2',\n 'RightDownVectorBar': '\\u2955',\n 'RightFloor': '\\u230B',\n 'rfloor': '\\u230B',\n 'RightTee': '\\u22A2',\n 'vdash': '\\u22A2',\n 'RightTeeArrow': '\\u21A6',\n 'map': '\\u21A6',\n 'mapsto': '\\u21A6',\n 'RightTeeVector': '\\u295B',\n 'RightTriangle': '\\u22B3',\n 'vartriangleright': '\\u22B3',\n 'vrtri': '\\u22B3',\n 'RightTriangleBar': '\\u29D0',\n 'RightTriangleEqual': '\\u22B5',\n 'rtrie': '\\u22B5',\n 'trianglerighteq': '\\u22B5',\n 'RightUpDownVector': '\\u294F',\n 'RightUpTeeVector': '\\u295C',\n 'RightUpVector': '\\u21BE',\n 'uharr': '\\u21BE',\n 'upharpoonright': '\\u21BE',\n 'RightUpVectorBar': '\\u2954',\n 'RightVector': '\\u21C0',\n 'rharu': '\\u21C0',\n 'rightharpoonup': '\\u21C0',\n 'RightVectorBar': '\\u2953',\n 'Ropf': '\\u211D',\n 'reals': '\\u211D',\n 'RoundImplies': '\\u2970',\n 'Rrightarrow': '\\u21DB',\n 'rAarr': '\\u21DB',\n 'Rscr': '\\u211B',\n 'realine': '\\u211B',\n 'Rsh': '\\u21B1',\n 'rsh': '\\u21B1',\n 'RuleDelayed': '\\u29F4',\n 'SHCHcy': '\\u0429',\n 'SHcy': '\\u0428',\n 'SOFTcy': '\\u042C',\n 'Sacute': '\\u015A',\n 'Sc': '\\u2ABC',\n 'Scaron': '\\u0160',\n 'Scedil': '\\u015E',\n 'Scirc': '\\u015C',\n 'Scy': '\\u0421',\n 'Sfr': '\\uD835\\uDD16',\n 'ShortUpArrow': '\\u2191',\n 'UpArrow': '\\u2191',\n 'uarr': '\\u2191',\n 'uparrow': '\\u2191',\n 'Sigma': '\\u03A3',\n 'SmallCircle': '\\u2218',\n 'compfn': '\\u2218',\n 'Sopf': '\\uD835\\uDD4A',\n 'Sqrt': '\\u221A',\n 'radic': '\\u221A',\n 'Square': '\\u25A1',\n 'squ': '\\u25A1',\n 'square': '\\u25A1',\n 'SquareIntersection': '\\u2293',\n 'sqcap': '\\u2293',\n 'SquareSubset': '\\u228F',\n 'sqsub': '\\u228F',\n 'sqsubset': '\\u228F',\n 'SquareSubsetEqual': '\\u2291',\n 'sqsube': '\\u2291',\n 'sqsubseteq': '\\u2291',\n 'SquareSuperset': '\\u2290',\n 'sqsup': '\\u2290',\n 'sqsupset': '\\u2290',\n 'SquareSupersetEqual': '\\u2292',\n 'sqsupe': '\\u2292',\n 'sqsupseteq': '\\u2292',\n 'SquareUnion': '\\u2294',\n 'sqcup': '\\u2294',\n 'Sscr': '\\uD835\\uDCAE',\n 'Star': '\\u22C6',\n 'sstarf': '\\u22C6',\n 'Sub': '\\u22D0',\n 'Subset': '\\u22D0',\n 'SubsetEqual': '\\u2286',\n 'sube': '\\u2286',\n 'subseteq': '\\u2286',\n 'Succeeds': '\\u227B',\n 'sc': '\\u227B',\n 'succ': '\\u227B',\n 'SucceedsEqual': '\\u2AB0',\n 'sce': '\\u2AB0',\n 'succeq': '\\u2AB0',\n 'SucceedsSlantEqual': '\\u227D',\n 'sccue': '\\u227D',\n 'succcurlyeq': '\\u227D',\n 'SucceedsTilde': '\\u227F',\n 'scsim': '\\u227F',\n 'succsim': '\\u227F',\n 'Sum': '\\u2211',\n 'sum': '\\u2211',\n 'Sup': '\\u22D1',\n 'Supset': '\\u22D1',\n 'Superset': '\\u2283',\n 'sup': '\\u2283',\n 'supset': '\\u2283',\n 'SupersetEqual': '\\u2287',\n 'supe': '\\u2287',\n 'supseteq': '\\u2287',\n 'THORN': '\\u00DE',\n 'TRADE': '\\u2122',\n 'trade': '\\u2122',\n 'TSHcy': '\\u040B',\n 'TScy': '\\u0426',\n 'Tab': '\\u0009',\n 'Tau': '\\u03A4',\n 'Tcaron': '\\u0164',\n 'Tcedil': '\\u0162',\n 'Tcy': '\\u0422',\n 'Tfr': '\\uD835\\uDD17',\n 'Therefore': '\\u2234',\n 'there4': '\\u2234',\n 'therefore': '\\u2234',\n 'Theta': '\\u0398',\n 'ThickSpace': '\\u205F\\u200A',\n 'ThinSpace': '\\u2009',\n 'thinsp': '\\u2009',\n 'Tilde': '\\u223C',\n 'sim': '\\u223C',\n 'thicksim': '\\u223C',\n 'thksim': '\\u223C',\n 'TildeEqual': '\\u2243',\n 'sime': '\\u2243',\n 'simeq': '\\u2243',\n 'TildeFullEqual': '\\u2245',\n 'cong': '\\u2245',\n 'TildeTilde': '\\u2248',\n 'ap': '\\u2248',\n 'approx': '\\u2248',\n 'asymp': '\\u2248',\n 'thickapprox': '\\u2248',\n 'thkap': '\\u2248',\n 'Topf': '\\uD835\\uDD4B',\n 'TripleDot': '\\u20DB',\n 'tdot': '\\u20DB',\n 'Tscr': '\\uD835\\uDCAF',\n 'Tstrok': '\\u0166',\n 'Uacute': '\\u00DA',\n 'Uarr': '\\u219F',\n 'Uarrocir': '\\u2949',\n 'Ubrcy': '\\u040E',\n 'Ubreve': '\\u016C',\n 'Ucirc': '\\u00DB',\n 'Ucy': '\\u0423',\n 'Udblac': '\\u0170',\n 'Ufr': '\\uD835\\uDD18',\n 'Ugrave': '\\u00D9',\n 'Umacr': '\\u016A',\n 'UnderBar': '\\u005F',\n 'lowbar': '\\u005F',\n 'UnderBrace': '\\u23DF',\n 'UnderBracket': '\\u23B5',\n 'bbrk': '\\u23B5',\n 'UnderParenthesis': '\\u23DD',\n 'Union': '\\u22C3',\n 'bigcup': '\\u22C3',\n 'xcup': '\\u22C3',\n 'UnionPlus': '\\u228E',\n 'uplus': '\\u228E',\n 'Uogon': '\\u0172',\n 'Uopf': '\\uD835\\uDD4C',\n 'UpArrowBar': '\\u2912',\n 'UpArrowDownArrow': '\\u21C5',\n 'udarr': '\\u21C5',\n 'UpDownArrow': '\\u2195',\n 'updownarrow': '\\u2195',\n 'varr': '\\u2195',\n 'UpEquilibrium': '\\u296E',\n 'udhar': '\\u296E',\n 'UpTee': '\\u22A5',\n 'bot': '\\u22A5',\n 'bottom': '\\u22A5',\n 'perp': '\\u22A5',\n 'UpTeeArrow': '\\u21A5',\n 'mapstoup': '\\u21A5',\n 'UpperLeftArrow': '\\u2196',\n 'nwarr': '\\u2196',\n 'nwarrow': '\\u2196',\n 'UpperRightArrow': '\\u2197',\n 'nearr': '\\u2197',\n 'nearrow': '\\u2197',\n 'Upsi': '\\u03D2',\n 'upsih': '\\u03D2',\n 'Upsilon': '\\u03A5',\n 'Uring': '\\u016E',\n 'Uscr': '\\uD835\\uDCB0',\n 'Utilde': '\\u0168',\n 'Uuml': '\\u00DC',\n 'VDash': '\\u22AB',\n 'Vbar': '\\u2AEB',\n 'Vcy': '\\u0412',\n 'Vdash': '\\u22A9',\n 'Vdashl': '\\u2AE6',\n 'Vee': '\\u22C1',\n 'bigvee': '\\u22C1',\n 'xvee': '\\u22C1',\n 'Verbar': '\\u2016',\n 'Vert': '\\u2016',\n 'VerticalBar': '\\u2223',\n 'mid': '\\u2223',\n 'shortmid': '\\u2223',\n 'smid': '\\u2223',\n 'VerticalLine': '\\u007C',\n 'verbar': '\\u007C',\n 'vert': '\\u007C',\n 'VerticalSeparator': '\\u2758',\n 'VerticalTilde': '\\u2240',\n 'wr': '\\u2240',\n 'wreath': '\\u2240',\n 'VeryThinSpace': '\\u200A',\n 'hairsp': '\\u200A',\n 'Vfr': '\\uD835\\uDD19',\n 'Vopf': '\\uD835\\uDD4D',\n 'Vscr': '\\uD835\\uDCB1',\n 'Vvdash': '\\u22AA',\n 'Wcirc': '\\u0174',\n 'Wedge': '\\u22C0',\n 'bigwedge': '\\u22C0',\n 'xwedge': '\\u22C0',\n 'Wfr': '\\uD835\\uDD1A',\n 'Wopf': '\\uD835\\uDD4E',\n 'Wscr': '\\uD835\\uDCB2',\n 'Xfr': '\\uD835\\uDD1B',\n 'Xi': '\\u039E',\n 'Xopf': '\\uD835\\uDD4F',\n 'Xscr': '\\uD835\\uDCB3',\n 'YAcy': '\\u042F',\n 'YIcy': '\\u0407',\n 'YUcy': '\\u042E',\n 'Yacute': '\\u00DD',\n 'Ycirc': '\\u0176',\n 'Ycy': '\\u042B',\n 'Yfr': '\\uD835\\uDD1C',\n 'Yopf': '\\uD835\\uDD50',\n 'Yscr': '\\uD835\\uDCB4',\n 'Yuml': '\\u0178',\n 'ZHcy': '\\u0416',\n 'Zacute': '\\u0179',\n 'Zcaron': '\\u017D',\n 'Zcy': '\\u0417',\n 'Zdot': '\\u017B',\n 'Zeta': '\\u0396',\n 'Zfr': '\\u2128',\n 'zeetrf': '\\u2128',\n 'Zopf': '\\u2124',\n 'integers': '\\u2124',\n 'Zscr': '\\uD835\\uDCB5',\n 'aacute': '\\u00E1',\n 'abreve': '\\u0103',\n 'ac': '\\u223E',\n 'mstpos': '\\u223E',\n 'acE': '\\u223E\\u0333',\n 'acd': '\\u223F',\n 'acirc': '\\u00E2',\n 'acy': '\\u0430',\n 'aelig': '\\u00E6',\n 'afr': '\\uD835\\uDD1E',\n 'agrave': '\\u00E0',\n 'alefsym': '\\u2135',\n 'aleph': '\\u2135',\n 'alpha': '\\u03B1',\n 'amacr': '\\u0101',\n 'amalg': '\\u2A3F',\n 'and': '\\u2227',\n 'wedge': '\\u2227',\n 'andand': '\\u2A55',\n 'andd': '\\u2A5C',\n 'andslope': '\\u2A58',\n 'andv': '\\u2A5A',\n 'ang': '\\u2220',\n 'angle': '\\u2220',\n 'ange': '\\u29A4',\n 'angmsd': '\\u2221',\n 'measuredangle': '\\u2221',\n 'angmsdaa': '\\u29A8',\n 'angmsdab': '\\u29A9',\n 'angmsdac': '\\u29AA',\n 'angmsdad': '\\u29AB',\n 'angmsdae': '\\u29AC',\n 'angmsdaf': '\\u29AD',\n 'angmsdag': '\\u29AE',\n 'angmsdah': '\\u29AF',\n 'angrt': '\\u221F',\n 'angrtvb': '\\u22BE',\n 'angrtvbd': '\\u299D',\n 'angsph': '\\u2222',\n 'angzarr': '\\u237C',\n 'aogon': '\\u0105',\n 'aopf': '\\uD835\\uDD52',\n 'apE': '\\u2A70',\n 'apacir': '\\u2A6F',\n 'ape': '\\u224A',\n 'approxeq': '\\u224A',\n 'apid': '\\u224B',\n 'apos': '\\u0027',\n 'aring': '\\u00E5',\n 'ascr': '\\uD835\\uDCB6',\n 'ast': '\\u002A',\n 'midast': '\\u002A',\n 'atilde': '\\u00E3',\n 'auml': '\\u00E4',\n 'awint': '\\u2A11',\n 'bNot': '\\u2AED',\n 'backcong': '\\u224C',\n 'bcong': '\\u224C',\n 'backepsilon': '\\u03F6',\n 'bepsi': '\\u03F6',\n 'backprime': '\\u2035',\n 'bprime': '\\u2035',\n 'backsim': '\\u223D',\n 'bsim': '\\u223D',\n 'backsimeq': '\\u22CD',\n 'bsime': '\\u22CD',\n 'barvee': '\\u22BD',\n 'barwed': '\\u2305',\n 'barwedge': '\\u2305',\n 'bbrktbrk': '\\u23B6',\n 'bcy': '\\u0431',\n 'bdquo': '\\u201E',\n 'ldquor': '\\u201E',\n 'bemptyv': '\\u29B0',\n 'beta': '\\u03B2',\n 'beth': '\\u2136',\n 'between': '\\u226C',\n 'twixt': '\\u226C',\n 'bfr': '\\uD835\\uDD1F',\n 'bigcirc': '\\u25EF',\n 'xcirc': '\\u25EF',\n 'bigodot': '\\u2A00',\n 'xodot': '\\u2A00',\n 'bigoplus': '\\u2A01',\n 'xoplus': '\\u2A01',\n 'bigotimes': '\\u2A02',\n 'xotime': '\\u2A02',\n 'bigsqcup': '\\u2A06',\n 'xsqcup': '\\u2A06',\n 'bigstar': '\\u2605',\n 'starf': '\\u2605',\n 'bigtriangledown': '\\u25BD',\n 'xdtri': '\\u25BD',\n 'bigtriangleup': '\\u25B3',\n 'xutri': '\\u25B3',\n 'biguplus': '\\u2A04',\n 'xuplus': '\\u2A04',\n 'bkarow': '\\u290D',\n 'rbarr': '\\u290D',\n 'blacklozenge': '\\u29EB',\n 'lozf': '\\u29EB',\n 'blacktriangle': '\\u25B4',\n 'utrif': '\\u25B4',\n 'blacktriangledown': '\\u25BE',\n 'dtrif': '\\u25BE',\n 'blacktriangleleft': '\\u25C2',\n 'ltrif': '\\u25C2',\n 'blacktriangleright': '\\u25B8',\n 'rtrif': '\\u25B8',\n 'blank': '\\u2423',\n 'blk12': '\\u2592',\n 'blk14': '\\u2591',\n 'blk34': '\\u2593',\n 'block': '\\u2588',\n 'bne': '\\u003D\\u20E5',\n 'bnequiv': '\\u2261\\u20E5',\n 'bnot': '\\u2310',\n 'bopf': '\\uD835\\uDD53',\n 'bowtie': '\\u22C8',\n 'boxDL': '\\u2557',\n 'boxDR': '\\u2554',\n 'boxDl': '\\u2556',\n 'boxDr': '\\u2553',\n 'boxH': '\\u2550',\n 'boxHD': '\\u2566',\n 'boxHU': '\\u2569',\n 'boxHd': '\\u2564',\n 'boxHu': '\\u2567',\n 'boxUL': '\\u255D',\n 'boxUR': '\\u255A',\n 'boxUl': '\\u255C',\n 'boxUr': '\\u2559',\n 'boxV': '\\u2551',\n 'boxVH': '\\u256C',\n 'boxVL': '\\u2563',\n 'boxVR': '\\u2560',\n 'boxVh': '\\u256B',\n 'boxVl': '\\u2562',\n 'boxVr': '\\u255F',\n 'boxbox': '\\u29C9',\n 'boxdL': '\\u2555',\n 'boxdR': '\\u2552',\n 'boxdl': '\\u2510',\n 'boxdr': '\\u250C',\n 'boxhD': '\\u2565',\n 'boxhU': '\\u2568',\n 'boxhd': '\\u252C',\n 'boxhu': '\\u2534',\n 'boxminus': '\\u229F',\n 'minusb': '\\u229F',\n 'boxplus': '\\u229E',\n 'plusb': '\\u229E',\n 'boxtimes': '\\u22A0',\n 'timesb': '\\u22A0',\n 'boxuL': '\\u255B',\n 'boxuR': '\\u2558',\n 'boxul': '\\u2518',\n 'boxur': '\\u2514',\n 'boxv': '\\u2502',\n 'boxvH': '\\u256A',\n 'boxvL': '\\u2561',\n 'boxvR': '\\u255E',\n 'boxvh': '\\u253C',\n 'boxvl': '\\u2524',\n 'boxvr': '\\u251C',\n 'brvbar': '\\u00A6',\n 'bscr': '\\uD835\\uDCB7',\n 'bsemi': '\\u204F',\n 'bsol': '\\u005C',\n 'bsolb': '\\u29C5',\n 'bsolhsub': '\\u27C8',\n 'bull': '\\u2022',\n 'bullet': '\\u2022',\n 'bumpE': '\\u2AAE',\n 'cacute': '\\u0107',\n 'cap': '\\u2229',\n 'capand': '\\u2A44',\n 'capbrcup': '\\u2A49',\n 'capcap': '\\u2A4B',\n 'capcup': '\\u2A47',\n 'capdot': '\\u2A40',\n 'caps': '\\u2229\\uFE00',\n 'caret': '\\u2041',\n 'ccaps': '\\u2A4D',\n 'ccaron': '\\u010D',\n 'ccedil': '\\u00E7',\n 'ccirc': '\\u0109',\n 'ccups': '\\u2A4C',\n 'ccupssm': '\\u2A50',\n 'cdot': '\\u010B',\n 'cemptyv': '\\u29B2',\n 'cent': '\\u00A2',\n 'cfr': '\\uD835\\uDD20',\n 'chcy': '\\u0447',\n 'check': '\\u2713',\n 'checkmark': '\\u2713',\n 'chi': '\\u03C7',\n 'cir': '\\u25CB',\n 'cirE': '\\u29C3',\n 'circ': '\\u02C6',\n 'circeq': '\\u2257',\n 'cire': '\\u2257',\n 'circlearrowleft': '\\u21BA',\n 'olarr': '\\u21BA',\n 'circlearrowright': '\\u21BB',\n 'orarr': '\\u21BB',\n 'circledS': '\\u24C8',\n 'oS': '\\u24C8',\n 'circledast': '\\u229B',\n 'oast': '\\u229B',\n 'circledcirc': '\\u229A',\n 'ocir': '\\u229A',\n 'circleddash': '\\u229D',\n 'odash': '\\u229D',\n 'cirfnint': '\\u2A10',\n 'cirmid': '\\u2AEF',\n 'cirscir': '\\u29C2',\n 'clubs': '\\u2663',\n 'clubsuit': '\\u2663',\n 'colon': '\\u003A',\n 'comma': '\\u002C',\n 'commat': '\\u0040',\n 'comp': '\\u2201',\n 'complement': '\\u2201',\n 'congdot': '\\u2A6D',\n 'copf': '\\uD835\\uDD54',\n 'copysr': '\\u2117',\n 'crarr': '\\u21B5',\n 'cross': '\\u2717',\n 'cscr': '\\uD835\\uDCB8',\n 'csub': '\\u2ACF',\n 'csube': '\\u2AD1',\n 'csup': '\\u2AD0',\n 'csupe': '\\u2AD2',\n 'ctdot': '\\u22EF',\n 'cudarrl': '\\u2938',\n 'cudarrr': '\\u2935',\n 'cuepr': '\\u22DE',\n 'curlyeqprec': '\\u22DE',\n 'cuesc': '\\u22DF',\n 'curlyeqsucc': '\\u22DF',\n 'cularr': '\\u21B6',\n 'curvearrowleft': '\\u21B6',\n 'cularrp': '\\u293D',\n 'cup': '\\u222A',\n 'cupbrcap': '\\u2A48',\n 'cupcap': '\\u2A46',\n 'cupcup': '\\u2A4A',\n 'cupdot': '\\u228D',\n 'cupor': '\\u2A45',\n 'cups': '\\u222A\\uFE00',\n 'curarr': '\\u21B7',\n 'curvearrowright': '\\u21B7',\n 'curarrm': '\\u293C',\n 'curlyvee': '\\u22CE',\n 'cuvee': '\\u22CE',\n 'curlywedge': '\\u22CF',\n 'cuwed': '\\u22CF',\n 'curren': '\\u00A4',\n 'cwint': '\\u2231',\n 'cylcty': '\\u232D',\n 'dHar': '\\u2965',\n 'dagger': '\\u2020',\n 'daleth': '\\u2138',\n 'dash': '\\u2010',\n 'hyphen': '\\u2010',\n 'dbkarow': '\\u290F',\n 'rBarr': '\\u290F',\n 'dcaron': '\\u010F',\n 'dcy': '\\u0434',\n 'ddarr': '\\u21CA',\n 'downdownarrows': '\\u21CA',\n 'ddotseq': '\\u2A77',\n 'eDDot': '\\u2A77',\n 'deg': '\\u00B0',\n 'delta': '\\u03B4',\n 'demptyv': '\\u29B1',\n 'dfisht': '\\u297F',\n 'dfr': '\\uD835\\uDD21',\n 'diamondsuit': '\\u2666',\n 'diams': '\\u2666',\n 'digamma': '\\u03DD',\n 'gammad': '\\u03DD',\n 'disin': '\\u22F2',\n 'div': '\\u00F7',\n 'divide': '\\u00F7',\n 'divideontimes': '\\u22C7',\n 'divonx': '\\u22C7',\n 'djcy': '\\u0452',\n 'dlcorn': '\\u231E',\n 'llcorner': '\\u231E',\n 'dlcrop': '\\u230D',\n 'dollar': '\\u0024',\n 'dopf': '\\uD835\\uDD55',\n 'doteqdot': '\\u2251',\n 'eDot': '\\u2251',\n 'dotminus': '\\u2238',\n 'minusd': '\\u2238',\n 'dotplus': '\\u2214',\n 'plusdo': '\\u2214',\n 'dotsquare': '\\u22A1',\n 'sdotb': '\\u22A1',\n 'drcorn': '\\u231F',\n 'lrcorner': '\\u231F',\n 'drcrop': '\\u230C',\n 'dscr': '\\uD835\\uDCB9',\n 'dscy': '\\u0455',\n 'dsol': '\\u29F6',\n 'dstrok': '\\u0111',\n 'dtdot': '\\u22F1',\n 'dtri': '\\u25BF',\n 'triangledown': '\\u25BF',\n 'dwangle': '\\u29A6',\n 'dzcy': '\\u045F',\n 'dzigrarr': '\\u27FF',\n 'eacute': '\\u00E9',\n 'easter': '\\u2A6E',\n 'ecaron': '\\u011B',\n 'ecir': '\\u2256',\n 'eqcirc': '\\u2256',\n 'ecirc': '\\u00EA',\n 'ecolon': '\\u2255',\n 'eqcolon': '\\u2255',\n 'ecy': '\\u044D',\n 'edot': '\\u0117',\n 'efDot': '\\u2252',\n 'fallingdotseq': '\\u2252',\n 'efr': '\\uD835\\uDD22',\n 'eg': '\\u2A9A',\n 'egrave': '\\u00E8',\n 'egs': '\\u2A96',\n 'eqslantgtr': '\\u2A96',\n 'egsdot': '\\u2A98',\n 'el': '\\u2A99',\n 'elinters': '\\u23E7',\n 'ell': '\\u2113',\n 'els': '\\u2A95',\n 'eqslantless': '\\u2A95',\n 'elsdot': '\\u2A97',\n 'emacr': '\\u0113',\n 'empty': '\\u2205',\n 'emptyset': '\\u2205',\n 'emptyv': '\\u2205',\n 'varnothing': '\\u2205',\n 'emsp13': '\\u2004',\n 'emsp14': '\\u2005',\n 'emsp': '\\u2003',\n 'eng': '\\u014B',\n 'ensp': '\\u2002',\n 'eogon': '\\u0119',\n 'eopf': '\\uD835\\uDD56',\n 'epar': '\\u22D5',\n 'eparsl': '\\u29E3',\n 'eplus': '\\u2A71',\n 'epsi': '\\u03B5',\n 'epsilon': '\\u03B5',\n 'epsiv': '\\u03F5',\n 'straightepsilon': '\\u03F5',\n 'varepsilon': '\\u03F5',\n 'equals': '\\u003D',\n 'equest': '\\u225F',\n 'questeq': '\\u225F',\n 'equivDD': '\\u2A78',\n 'eqvparsl': '\\u29E5',\n 'erDot': '\\u2253',\n 'risingdotseq': '\\u2253',\n 'erarr': '\\u2971',\n 'escr': '\\u212F',\n 'eta': '\\u03B7',\n 'eth': '\\u00F0',\n 'euml': '\\u00EB',\n 'euro': '\\u20AC',\n 'excl': '\\u0021',\n 'fcy': '\\u0444',\n 'female': '\\u2640',\n 'ffilig': '\\uFB03',\n 'fflig': '\\uFB00',\n 'ffllig': '\\uFB04',\n 'ffr': '\\uD835\\uDD23',\n 'filig': '\\uFB01',\n 'fjlig': '\\u0066\\u006A',\n 'flat': '\\u266D',\n 'fllig': '\\uFB02',\n 'fltns': '\\u25B1',\n 'fnof': '\\u0192',\n 'fopf': '\\uD835\\uDD57',\n 'fork': '\\u22D4',\n 'pitchfork': '\\u22D4',\n 'forkv': '\\u2AD9',\n 'fpartint': '\\u2A0D',\n 'frac12': '\\u00BD',\n 'half': '\\u00BD',\n 'frac13': '\\u2153',\n 'frac14': '\\u00BC',\n 'frac15': '\\u2155',\n 'frac16': '\\u2159',\n 'frac18': '\\u215B',\n 'frac23': '\\u2154',\n 'frac25': '\\u2156',\n 'frac34': '\\u00BE',\n 'frac35': '\\u2157',\n 'frac38': '\\u215C',\n 'frac45': '\\u2158',\n 'frac56': '\\u215A',\n 'frac58': '\\u215D',\n 'frac78': '\\u215E',\n 'frasl': '\\u2044',\n 'frown': '\\u2322',\n 'sfrown': '\\u2322',\n 'fscr': '\\uD835\\uDCBB',\n 'gEl': '\\u2A8C',\n 'gtreqqless': '\\u2A8C',\n 'gacute': '\\u01F5',\n 'gamma': '\\u03B3',\n 'gap': '\\u2A86',\n 'gtrapprox': '\\u2A86',\n 'gbreve': '\\u011F',\n 'gcirc': '\\u011D',\n 'gcy': '\\u0433',\n 'gdot': '\\u0121',\n 'gescc': '\\u2AA9',\n 'gesdot': '\\u2A80',\n 'gesdoto': '\\u2A82',\n 'gesdotol': '\\u2A84',\n 'gesl': '\\u22DB\\uFE00',\n 'gesles': '\\u2A94',\n 'gfr': '\\uD835\\uDD24',\n 'gimel': '\\u2137',\n 'gjcy': '\\u0453',\n 'glE': '\\u2A92',\n 'gla': '\\u2AA5',\n 'glj': '\\u2AA4',\n 'gnE': '\\u2269',\n 'gneqq': '\\u2269',\n 'gnap': '\\u2A8A',\n 'gnapprox': '\\u2A8A',\n 'gne': '\\u2A88',\n 'gneq': '\\u2A88',\n 'gnsim': '\\u22E7',\n 'gopf': '\\uD835\\uDD58',\n 'gscr': '\\u210A',\n 'gsime': '\\u2A8E',\n 'gsiml': '\\u2A90',\n 'gtcc': '\\u2AA7',\n 'gtcir': '\\u2A7A',\n 'gtdot': '\\u22D7',\n 'gtrdot': '\\u22D7',\n 'gtlPar': '\\u2995',\n 'gtquest': '\\u2A7C',\n 'gtrarr': '\\u2978',\n 'gvertneqq': '\\u2269\\uFE00',\n 'gvnE': '\\u2269\\uFE00',\n 'hardcy': '\\u044A',\n 'harrcir': '\\u2948',\n 'harrw': '\\u21AD',\n 'leftrightsquigarrow': '\\u21AD',\n 'hbar': '\\u210F',\n 'hslash': '\\u210F',\n 'planck': '\\u210F',\n 'plankv': '\\u210F',\n 'hcirc': '\\u0125',\n 'hearts': '\\u2665',\n 'heartsuit': '\\u2665',\n 'hellip': '\\u2026',\n 'mldr': '\\u2026',\n 'hercon': '\\u22B9',\n 'hfr': '\\uD835\\uDD25',\n 'hksearow': '\\u2925',\n 'searhk': '\\u2925',\n 'hkswarow': '\\u2926',\n 'swarhk': '\\u2926',\n 'hoarr': '\\u21FF',\n 'homtht': '\\u223B',\n 'hookleftarrow': '\\u21A9',\n 'larrhk': '\\u21A9',\n 'hookrightarrow': '\\u21AA',\n 'rarrhk': '\\u21AA',\n 'hopf': '\\uD835\\uDD59',\n 'horbar': '\\u2015',\n 'hscr': '\\uD835\\uDCBD',\n 'hstrok': '\\u0127',\n 'hybull': '\\u2043',\n 'iacute': '\\u00ED',\n 'icirc': '\\u00EE',\n 'icy': '\\u0438',\n 'iecy': '\\u0435',\n 'iexcl': '\\u00A1',\n 'ifr': '\\uD835\\uDD26',\n 'igrave': '\\u00EC',\n 'iiiint': '\\u2A0C',\n 'qint': '\\u2A0C',\n 'iiint': '\\u222D',\n 'tint': '\\u222D',\n 'iinfin': '\\u29DC',\n 'iiota': '\\u2129',\n 'ijlig': '\\u0133',\n 'imacr': '\\u012B',\n 'imath': '\\u0131',\n 'inodot': '\\u0131',\n 'imof': '\\u22B7',\n 'imped': '\\u01B5',\n 'incare': '\\u2105',\n 'infin': '\\u221E',\n 'infintie': '\\u29DD',\n 'intcal': '\\u22BA',\n 'intercal': '\\u22BA',\n 'intlarhk': '\\u2A17',\n 'intprod': '\\u2A3C',\n 'iprod': '\\u2A3C',\n 'iocy': '\\u0451',\n 'iogon': '\\u012F',\n 'iopf': '\\uD835\\uDD5A',\n 'iota': '\\u03B9',\n 'iquest': '\\u00BF',\n 'iscr': '\\uD835\\uDCBE',\n 'isinE': '\\u22F9',\n 'isindot': '\\u22F5',\n 'isins': '\\u22F4',\n 'isinsv': '\\u22F3',\n 'itilde': '\\u0129',\n 'iukcy': '\\u0456',\n 'iuml': '\\u00EF',\n 'jcirc': '\\u0135',\n 'jcy': '\\u0439',\n 'jfr': '\\uD835\\uDD27',\n 'jmath': '\\u0237',\n 'jopf': '\\uD835\\uDD5B',\n 'jscr': '\\uD835\\uDCBF',\n 'jsercy': '\\u0458',\n 'jukcy': '\\u0454',\n 'kappa': '\\u03BA',\n 'kappav': '\\u03F0',\n 'varkappa': '\\u03F0',\n 'kcedil': '\\u0137',\n 'kcy': '\\u043A',\n 'kfr': '\\uD835\\uDD28',\n 'kgreen': '\\u0138',\n 'khcy': '\\u0445',\n 'kjcy': '\\u045C',\n 'kopf': '\\uD835\\uDD5C',\n 'kscr': '\\uD835\\uDCC0',\n 'lAtail': '\\u291B',\n 'lBarr': '\\u290E',\n 'lEg': '\\u2A8B',\n 'lesseqqgtr': '\\u2A8B',\n 'lHar': '\\u2962',\n 'lacute': '\\u013A',\n 'laemptyv': '\\u29B4',\n 'lambda': '\\u03BB',\n 'langd': '\\u2991',\n 'lap': '\\u2A85',\n 'lessapprox': '\\u2A85',\n 'laquo': '\\u00AB',\n 'larrbfs': '\\u291F',\n 'larrfs': '\\u291D',\n 'larrlp': '\\u21AB',\n 'looparrowleft': '\\u21AB',\n 'larrpl': '\\u2939',\n 'larrsim': '\\u2973',\n 'larrtl': '\\u21A2',\n 'leftarrowtail': '\\u21A2',\n 'lat': '\\u2AAB',\n 'latail': '\\u2919',\n 'late': '\\u2AAD',\n 'lates': '\\u2AAD\\uFE00',\n 'lbarr': '\\u290C',\n 'lbbrk': '\\u2772',\n 'lbrace': '\\u007B',\n 'lcub': '\\u007B',\n 'lbrack': '\\u005B',\n 'lsqb': '\\u005B',\n 'lbrke': '\\u298B',\n 'lbrksld': '\\u298F',\n 'lbrkslu': '\\u298D',\n 'lcaron': '\\u013E',\n 'lcedil': '\\u013C',\n 'lcy': '\\u043B',\n 'ldca': '\\u2936',\n 'ldrdhar': '\\u2967',\n 'ldrushar': '\\u294B',\n 'ldsh': '\\u21B2',\n 'le': '\\u2264',\n 'leq': '\\u2264',\n 'leftleftarrows': '\\u21C7',\n 'llarr': '\\u21C7',\n 'leftthreetimes': '\\u22CB',\n 'lthree': '\\u22CB',\n 'lescc': '\\u2AA8',\n 'lesdot': '\\u2A7F',\n 'lesdoto': '\\u2A81',\n 'lesdotor': '\\u2A83',\n 'lesg': '\\u22DA\\uFE00',\n 'lesges': '\\u2A93',\n 'lessdot': '\\u22D6',\n 'ltdot': '\\u22D6',\n 'lfisht': '\\u297C',\n 'lfr': '\\uD835\\uDD29',\n 'lgE': '\\u2A91',\n 'lharul': '\\u296A',\n 'lhblk': '\\u2584',\n 'ljcy': '\\u0459',\n 'llhard': '\\u296B',\n 'lltri': '\\u25FA',\n 'lmidot': '\\u0140',\n 'lmoust': '\\u23B0',\n 'lmoustache': '\\u23B0',\n 'lnE': '\\u2268',\n 'lneqq': '\\u2268',\n 'lnap': '\\u2A89',\n 'lnapprox': '\\u2A89',\n 'lne': '\\u2A87',\n 'lneq': '\\u2A87',\n 'lnsim': '\\u22E6',\n 'loang': '\\u27EC',\n 'loarr': '\\u21FD',\n 'longmapsto': '\\u27FC',\n 'xmap': '\\u27FC',\n 'looparrowright': '\\u21AC',\n 'rarrlp': '\\u21AC',\n 'lopar': '\\u2985',\n 'lopf': '\\uD835\\uDD5D',\n 'loplus': '\\u2A2D',\n 'lotimes': '\\u2A34',\n 'lowast': '\\u2217',\n 'loz': '\\u25CA',\n 'lozenge': '\\u25CA',\n 'lpar': '\\u0028',\n 'lparlt': '\\u2993',\n 'lrhard': '\\u296D',\n 'lrm': '\\u200E',\n 'lrtri': '\\u22BF',\n 'lsaquo': '\\u2039',\n 'lscr': '\\uD835\\uDCC1',\n 'lsime': '\\u2A8D',\n 'lsimg': '\\u2A8F',\n 'lsquor': '\\u201A',\n 'sbquo': '\\u201A',\n 'lstrok': '\\u0142',\n 'ltcc': '\\u2AA6',\n 'ltcir': '\\u2A79',\n 'ltimes': '\\u22C9',\n 'ltlarr': '\\u2976',\n 'ltquest': '\\u2A7B',\n 'ltrPar': '\\u2996',\n 'ltri': '\\u25C3',\n 'triangleleft': '\\u25C3',\n 'lurdshar': '\\u294A',\n 'luruhar': '\\u2966',\n 'lvertneqq': '\\u2268\\uFE00',\n 'lvnE': '\\u2268\\uFE00',\n 'mDDot': '\\u223A',\n 'macr': '\\u00AF',\n 'strns': '\\u00AF',\n 'male': '\\u2642',\n 'malt': '\\u2720',\n 'maltese': '\\u2720',\n 'marker': '\\u25AE',\n 'mcomma': '\\u2A29',\n 'mcy': '\\u043C',\n 'mdash': '\\u2014',\n 'mfr': '\\uD835\\uDD2A',\n 'mho': '\\u2127',\n 'micro': '\\u00B5',\n 'midcir': '\\u2AF0',\n 'minus': '\\u2212',\n 'minusdu': '\\u2A2A',\n 'mlcp': '\\u2ADB',\n 'models': '\\u22A7',\n 'mopf': '\\uD835\\uDD5E',\n 'mscr': '\\uD835\\uDCC2',\n 'mu': '\\u03BC',\n 'multimap': '\\u22B8',\n 'mumap': '\\u22B8',\n 'nGg': '\\u22D9\\u0338',\n 'nGt': '\\u226B\\u20D2',\n 'nLeftarrow': '\\u21CD',\n 'nlArr': '\\u21CD',\n 'nLeftrightarrow': '\\u21CE',\n 'nhArr': '\\u21CE',\n 'nLl': '\\u22D8\\u0338',\n 'nLt': '\\u226A\\u20D2',\n 'nRightarrow': '\\u21CF',\n 'nrArr': '\\u21CF',\n 'nVDash': '\\u22AF',\n 'nVdash': '\\u22AE',\n 'nacute': '\\u0144',\n 'nang': '\\u2220\\u20D2',\n 'napE': '\\u2A70\\u0338',\n 'napid': '\\u224B\\u0338',\n 'napos': '\\u0149',\n 'natur': '\\u266E',\n 'natural': '\\u266E',\n 'ncap': '\\u2A43',\n 'ncaron': '\\u0148',\n 'ncedil': '\\u0146',\n 'ncongdot': '\\u2A6D\\u0338',\n 'ncup': '\\u2A42',\n 'ncy': '\\u043D',\n 'ndash': '\\u2013',\n 'neArr': '\\u21D7',\n 'nearhk': '\\u2924',\n 'nedot': '\\u2250\\u0338',\n 'nesear': '\\u2928',\n 'toea': '\\u2928',\n 'nfr': '\\uD835\\uDD2B',\n 'nharr': '\\u21AE',\n 'nleftrightarrow': '\\u21AE',\n 'nhpar': '\\u2AF2',\n 'nis': '\\u22FC',\n 'nisd': '\\u22FA',\n 'njcy': '\\u045A',\n 'nlE': '\\u2266\\u0338',\n 'nleqq': '\\u2266\\u0338',\n 'nlarr': '\\u219A',\n 'nleftarrow': '\\u219A',\n 'nldr': '\\u2025',\n 'nopf': '\\uD835\\uDD5F',\n 'not': '\\u00AC',\n 'notinE': '\\u22F9\\u0338',\n 'notindot': '\\u22F5\\u0338',\n 'notinvb': '\\u22F7',\n 'notinvc': '\\u22F6',\n 'notnivb': '\\u22FE',\n 'notnivc': '\\u22FD',\n 'nparsl': '\\u2AFD\\u20E5',\n 'npart': '\\u2202\\u0338',\n 'npolint': '\\u2A14',\n 'nrarr': '\\u219B',\n 'nrightarrow': '\\u219B',\n 'nrarrc': '\\u2933\\u0338',\n 'nrarrw': '\\u219D\\u0338',\n 'nscr': '\\uD835\\uDCC3',\n 'nsub': '\\u2284',\n 'nsubE': '\\u2AC5\\u0338',\n 'nsubseteqq': '\\u2AC5\\u0338',\n 'nsup': '\\u2285',\n 'nsupE': '\\u2AC6\\u0338',\n 'nsupseteqq': '\\u2AC6\\u0338',\n 'ntilde': '\\u00F1',\n 'nu': '\\u03BD',\n 'num': '\\u0023',\n 'numero': '\\u2116',\n 'numsp': '\\u2007',\n 'nvDash': '\\u22AD',\n 'nvHarr': '\\u2904',\n 'nvap': '\\u224D\\u20D2',\n 'nvdash': '\\u22AC',\n 'nvge': '\\u2265\\u20D2',\n 'nvgt': '\\u003E\\u20D2',\n 'nvinfin': '\\u29DE',\n 'nvlArr': '\\u2902',\n 'nvle': '\\u2264\\u20D2',\n 'nvlt': '\\u003C\\u20D2',\n 'nvltrie': '\\u22B4\\u20D2',\n 'nvrArr': '\\u2903',\n 'nvrtrie': '\\u22B5\\u20D2',\n 'nvsim': '\\u223C\\u20D2',\n 'nwArr': '\\u21D6',\n 'nwarhk': '\\u2923',\n 'nwnear': '\\u2927',\n 'oacute': '\\u00F3',\n 'ocirc': '\\u00F4',\n 'ocy': '\\u043E',\n 'odblac': '\\u0151',\n 'odiv': '\\u2A38',\n 'odsold': '\\u29BC',\n 'oelig': '\\u0153',\n 'ofcir': '\\u29BF',\n 'ofr': '\\uD835\\uDD2C',\n 'ogon': '\\u02DB',\n 'ograve': '\\u00F2',\n 'ogt': '\\u29C1',\n 'ohbar': '\\u29B5',\n 'olcir': '\\u29BE',\n 'olcross': '\\u29BB',\n 'olt': '\\u29C0',\n 'omacr': '\\u014D',\n 'omega': '\\u03C9',\n 'omicron': '\\u03BF',\n 'omid': '\\u29B6',\n 'oopf': '\\uD835\\uDD60',\n 'opar': '\\u29B7',\n 'operp': '\\u29B9',\n 'or': '\\u2228',\n 'vee': '\\u2228',\n 'ord': '\\u2A5D',\n 'order': '\\u2134',\n 'orderof': '\\u2134',\n 'oscr': '\\u2134',\n 'ordf': '\\u00AA',\n 'ordm': '\\u00BA',\n 'origof': '\\u22B6',\n 'oror': '\\u2A56',\n 'orslope': '\\u2A57',\n 'orv': '\\u2A5B',\n 'oslash': '\\u00F8',\n 'osol': '\\u2298',\n 'otilde': '\\u00F5',\n 'otimesas': '\\u2A36',\n 'ouml': '\\u00F6',\n 'ovbar': '\\u233D',\n 'para': '\\u00B6',\n 'parsim': '\\u2AF3',\n 'parsl': '\\u2AFD',\n 'pcy': '\\u043F',\n 'percnt': '\\u0025',\n 'period': '\\u002E',\n 'permil': '\\u2030',\n 'pertenk': '\\u2031',\n 'pfr': '\\uD835\\uDD2D',\n 'phi': '\\u03C6',\n 'phiv': '\\u03D5',\n 'straightphi': '\\u03D5',\n 'varphi': '\\u03D5',\n 'phone': '\\u260E',\n 'pi': '\\u03C0',\n 'piv': '\\u03D6',\n 'varpi': '\\u03D6',\n 'planckh': '\\u210E',\n 'plus': '\\u002B',\n 'plusacir': '\\u2A23',\n 'pluscir': '\\u2A22',\n 'plusdu': '\\u2A25',\n 'pluse': '\\u2A72',\n 'plussim': '\\u2A26',\n 'plustwo': '\\u2A27',\n 'pointint': '\\u2A15',\n 'popf': '\\uD835\\uDD61',\n 'pound': '\\u00A3',\n 'prE': '\\u2AB3',\n 'prap': '\\u2AB7',\n 'precapprox': '\\u2AB7',\n 'precnapprox': '\\u2AB9',\n 'prnap': '\\u2AB9',\n 'precneqq': '\\u2AB5',\n 'prnE': '\\u2AB5',\n 'precnsim': '\\u22E8',\n 'prnsim': '\\u22E8',\n 'prime': '\\u2032',\n 'profalar': '\\u232E',\n 'profline': '\\u2312',\n 'profsurf': '\\u2313',\n 'prurel': '\\u22B0',\n 'pscr': '\\uD835\\uDCC5',\n 'psi': '\\u03C8',\n 'puncsp': '\\u2008',\n 'qfr': '\\uD835\\uDD2E',\n 'qopf': '\\uD835\\uDD62',\n 'qprime': '\\u2057',\n 'qscr': '\\uD835\\uDCC6',\n 'quatint': '\\u2A16',\n 'quest': '\\u003F',\n 'rAtail': '\\u291C',\n 'rHar': '\\u2964',\n 'race': '\\u223D\\u0331',\n 'racute': '\\u0155',\n 'raemptyv': '\\u29B3',\n 'rangd': '\\u2992',\n 'range': '\\u29A5',\n 'raquo': '\\u00BB',\n 'rarrap': '\\u2975',\n 'rarrbfs': '\\u2920',\n 'rarrc': '\\u2933',\n 'rarrfs': '\\u291E',\n 'rarrpl': '\\u2945',\n 'rarrsim': '\\u2974',\n 'rarrtl': '\\u21A3',\n 'rightarrowtail': '\\u21A3',\n 'rarrw': '\\u219D',\n 'rightsquigarrow': '\\u219D',\n 'ratail': '\\u291A',\n 'ratio': '\\u2236',\n 'rbbrk': '\\u2773',\n 'rbrace': '\\u007D',\n 'rcub': '\\u007D',\n 'rbrack': '\\u005D',\n 'rsqb': '\\u005D',\n 'rbrke': '\\u298C',\n 'rbrksld': '\\u298E',\n 'rbrkslu': '\\u2990',\n 'rcaron': '\\u0159',\n 'rcedil': '\\u0157',\n 'rcy': '\\u0440',\n 'rdca': '\\u2937',\n 'rdldhar': '\\u2969',\n 'rdsh': '\\u21B3',\n 'rect': '\\u25AD',\n 'rfisht': '\\u297D',\n 'rfr': '\\uD835\\uDD2F',\n 'rharul': '\\u296C',\n 'rho': '\\u03C1',\n 'rhov': '\\u03F1',\n 'varrho': '\\u03F1',\n 'rightrightarrows': '\\u21C9',\n 'rrarr': '\\u21C9',\n 'rightthreetimes': '\\u22CC',\n 'rthree': '\\u22CC',\n 'ring': '\\u02DA',\n 'rlm': '\\u200F',\n 'rmoust': '\\u23B1',\n 'rmoustache': '\\u23B1',\n 'rnmid': '\\u2AEE',\n 'roang': '\\u27ED',\n 'roarr': '\\u21FE',\n 'ropar': '\\u2986',\n 'ropf': '\\uD835\\uDD63',\n 'roplus': '\\u2A2E',\n 'rotimes': '\\u2A35',\n 'rpar': '\\u0029',\n 'rpargt': '\\u2994',\n 'rppolint': '\\u2A12',\n 'rsaquo': '\\u203A',\n 'rscr': '\\uD835\\uDCC7',\n 'rtimes': '\\u22CA',\n 'rtri': '\\u25B9',\n 'triangleright': '\\u25B9',\n 'rtriltri': '\\u29CE',\n 'ruluhar': '\\u2968',\n 'rx': '\\u211E',\n 'sacute': '\\u015B',\n 'scE': '\\u2AB4',\n 'scap': '\\u2AB8',\n 'succapprox': '\\u2AB8',\n 'scaron': '\\u0161',\n 'scedil': '\\u015F',\n 'scirc': '\\u015D',\n 'scnE': '\\u2AB6',\n 'succneqq': '\\u2AB6',\n 'scnap': '\\u2ABA',\n 'succnapprox': '\\u2ABA',\n 'scnsim': '\\u22E9',\n 'succnsim': '\\u22E9',\n 'scpolint': '\\u2A13',\n 'scy': '\\u0441',\n 'sdot': '\\u22C5',\n 'sdote': '\\u2A66',\n 'seArr': '\\u21D8',\n 'sect': '\\u00A7',\n 'semi': '\\u003B',\n 'seswar': '\\u2929',\n 'tosa': '\\u2929',\n 'sext': '\\u2736',\n 'sfr': '\\uD835\\uDD30',\n 'sharp': '\\u266F',\n 'shchcy': '\\u0449',\n 'shcy': '\\u0448',\n 'shy': '\\u00AD',\n 'sigma': '\\u03C3',\n 'sigmaf': '\\u03C2',\n 'sigmav': '\\u03C2',\n 'varsigma': '\\u03C2',\n 'simdot': '\\u2A6A',\n 'simg': '\\u2A9E',\n 'simgE': '\\u2AA0',\n 'siml': '\\u2A9D',\n 'simlE': '\\u2A9F',\n 'simne': '\\u2246',\n 'simplus': '\\u2A24',\n 'simrarr': '\\u2972',\n 'smashp': '\\u2A33',\n 'smeparsl': '\\u29E4',\n 'smile': '\\u2323',\n 'ssmile': '\\u2323',\n 'smt': '\\u2AAA',\n 'smte': '\\u2AAC',\n 'smtes': '\\u2AAC\\uFE00',\n 'softcy': '\\u044C',\n 'sol': '\\u002F',\n 'solb': '\\u29C4',\n 'solbar': '\\u233F',\n 'sopf': '\\uD835\\uDD64',\n 'spades': '\\u2660',\n 'spadesuit': '\\u2660',\n 'sqcaps': '\\u2293\\uFE00',\n 'sqcups': '\\u2294\\uFE00',\n 'sscr': '\\uD835\\uDCC8',\n 'star': '\\u2606',\n 'sub': '\\u2282',\n 'subset': '\\u2282',\n 'subE': '\\u2AC5',\n 'subseteqq': '\\u2AC5',\n 'subdot': '\\u2ABD',\n 'subedot': '\\u2AC3',\n 'submult': '\\u2AC1',\n 'subnE': '\\u2ACB',\n 'subsetneqq': '\\u2ACB',\n 'subne': '\\u228A',\n 'subsetneq': '\\u228A',\n 'subplus': '\\u2ABF',\n 'subrarr': '\\u2979',\n 'subsim': '\\u2AC7',\n 'subsub': '\\u2AD5',\n 'subsup': '\\u2AD3',\n 'sung': '\\u266A',\n 'sup1': '\\u00B9',\n 'sup2': '\\u00B2',\n 'sup3': '\\u00B3',\n 'supE': '\\u2AC6',\n 'supseteqq': '\\u2AC6',\n 'supdot': '\\u2ABE',\n 'supdsub': '\\u2AD8',\n 'supedot': '\\u2AC4',\n 'suphsol': '\\u27C9',\n 'suphsub': '\\u2AD7',\n 'suplarr': '\\u297B',\n 'supmult': '\\u2AC2',\n 'supnE': '\\u2ACC',\n 'supsetneqq': '\\u2ACC',\n 'supne': '\\u228B',\n 'supsetneq': '\\u228B',\n 'supplus': '\\u2AC0',\n 'supsim': '\\u2AC8',\n 'supsub': '\\u2AD4',\n 'supsup': '\\u2AD6',\n 'swArr': '\\u21D9',\n 'swnwar': '\\u292A',\n 'szlig': '\\u00DF',\n 'target': '\\u2316',\n 'tau': '\\u03C4',\n 'tcaron': '\\u0165',\n 'tcedil': '\\u0163',\n 'tcy': '\\u0442',\n 'telrec': '\\u2315',\n 'tfr': '\\uD835\\uDD31',\n 'theta': '\\u03B8',\n 'thetasym': '\\u03D1',\n 'thetav': '\\u03D1',\n 'vartheta': '\\u03D1',\n 'thorn': '\\u00FE',\n 'times': '\\u00D7',\n 'timesbar': '\\u2A31',\n 'timesd': '\\u2A30',\n 'topbot': '\\u2336',\n 'topcir': '\\u2AF1',\n 'topf': '\\uD835\\uDD65',\n 'topfork': '\\u2ADA',\n 'tprime': '\\u2034',\n 'triangle': '\\u25B5',\n 'utri': '\\u25B5',\n 'triangleq': '\\u225C',\n 'trie': '\\u225C',\n 'tridot': '\\u25EC',\n 'triminus': '\\u2A3A',\n 'triplus': '\\u2A39',\n 'trisb': '\\u29CD',\n 'tritime': '\\u2A3B',\n 'trpezium': '\\u23E2',\n 'tscr': '\\uD835\\uDCC9',\n 'tscy': '\\u0446',\n 'tshcy': '\\u045B',\n 'tstrok': '\\u0167',\n 'uHar': '\\u2963',\n 'uacute': '\\u00FA',\n 'ubrcy': '\\u045E',\n 'ubreve': '\\u016D',\n 'ucirc': '\\u00FB',\n 'ucy': '\\u0443',\n 'udblac': '\\u0171',\n 'ufisht': '\\u297E',\n 'ufr': '\\uD835\\uDD32',\n 'ugrave': '\\u00F9',\n 'uhblk': '\\u2580',\n 'ulcorn': '\\u231C',\n 'ulcorner': '\\u231C',\n 'ulcrop': '\\u230F',\n 'ultri': '\\u25F8',\n 'umacr': '\\u016B',\n 'uogon': '\\u0173',\n 'uopf': '\\uD835\\uDD66',\n 'upsi': '\\u03C5',\n 'upsilon': '\\u03C5',\n 'upuparrows': '\\u21C8',\n 'uuarr': '\\u21C8',\n 'urcorn': '\\u231D',\n 'urcorner': '\\u231D',\n 'urcrop': '\\u230E',\n 'uring': '\\u016F',\n 'urtri': '\\u25F9',\n 'uscr': '\\uD835\\uDCCA',\n 'utdot': '\\u22F0',\n 'utilde': '\\u0169',\n 'uuml': '\\u00FC',\n 'uwangle': '\\u29A7',\n 'vBar': '\\u2AE8',\n 'vBarv': '\\u2AE9',\n 'vangrt': '\\u299C',\n 'varsubsetneq': '\\u228A\\uFE00',\n 'vsubne': '\\u228A\\uFE00',\n 'varsubsetneqq': '\\u2ACB\\uFE00',\n 'vsubnE': '\\u2ACB\\uFE00',\n 'varsupsetneq': '\\u228B\\uFE00',\n 'vsupne': '\\u228B\\uFE00',\n 'varsupsetneqq': '\\u2ACC\\uFE00',\n 'vsupnE': '\\u2ACC\\uFE00',\n 'vcy': '\\u0432',\n 'veebar': '\\u22BB',\n 'veeeq': '\\u225A',\n 'vellip': '\\u22EE',\n 'vfr': '\\uD835\\uDD33',\n 'vopf': '\\uD835\\uDD67',\n 'vscr': '\\uD835\\uDCCB',\n 'vzigzag': '\\u299A',\n 'wcirc': '\\u0175',\n 'wedbar': '\\u2A5F',\n 'wedgeq': '\\u2259',\n 'weierp': '\\u2118',\n 'wp': '\\u2118',\n 'wfr': '\\uD835\\uDD34',\n 'wopf': '\\uD835\\uDD68',\n 'wscr': '\\uD835\\uDCCC',\n 'xfr': '\\uD835\\uDD35',\n 'xi': '\\u03BE',\n 'xnis': '\\u22FB',\n 'xopf': '\\uD835\\uDD69',\n 'xscr': '\\uD835\\uDCCD',\n 'yacute': '\\u00FD',\n 'yacy': '\\u044F',\n 'ycirc': '\\u0177',\n 'ycy': '\\u044B',\n 'yen': '\\u00A5',\n 'yfr': '\\uD835\\uDD36',\n 'yicy': '\\u0457',\n 'yopf': '\\uD835\\uDD6A',\n 'yscr': '\\uD835\\uDCCE',\n 'yucy': '\\u044E',\n 'yuml': '\\u00FF',\n 'zacute': '\\u017A',\n 'zcaron': '\\u017E',\n 'zcy': '\\u0437',\n 'zdot': '\\u017C',\n 'zeta': '\\u03B6',\n 'zfr': '\\uD835\\uDD37',\n 'zhcy': '\\u0436',\n 'zigrarr': '\\u21DD',\n 'zopf': '\\uD835\\uDD6B',\n 'zscr': '\\uD835\\uDCCF',\n 'zwj': '\\u200D',\n 'zwnj': '\\u200C',\n};\n// The &ngsp; pseudo-entity is denoting a space.\n// 0xE500 is a PUA (Private Use Areas) unicode character\n// This is inspired by the Angular Dart implementation.\nconst NGSP_UNICODE = '\\uE500';\nNAMED_ENTITIES['ngsp'] = NGSP_UNICODE;\n\nclass TokenError extends ParseError {\n tokenType;\n constructor(errorMsg, tokenType, span) {\n super(span, errorMsg);\n this.tokenType = tokenType;\n }\n}\nclass TokenizeResult {\n tokens;\n errors;\n nonNormalizedIcuExpressions;\n constructor(tokens, errors, nonNormalizedIcuExpressions) {\n this.tokens = tokens;\n this.errors = errors;\n this.nonNormalizedIcuExpressions = nonNormalizedIcuExpressions;\n }\n}\nfunction tokenize(source, url, getTagDefinition, options = {}) {\n const tokenizer = new _Tokenizer(new ParseSourceFile(source, url), getTagDefinition, options);\n tokenizer.tokenize();\n return new TokenizeResult(mergeTextTokens(tokenizer.tokens), tokenizer.errors, tokenizer.nonNormalizedIcuExpressions);\n}\nconst _CR_OR_CRLF_REGEXP = /\\r\\n?/g;\nfunction _unexpectedCharacterErrorMsg(charCode) {\n const char = charCode === $EOF ? 'EOF' : String.fromCharCode(charCode);\n return `Unexpected character \"${char}\"`;\n}\nfunction _unknownEntityErrorMsg(entitySrc) {\n return `Unknown entity \"${entitySrc}\" - use the \"&#<decimal>;\" or \"&#x<hex>;\" syntax`;\n}\nfunction _unparsableEntityErrorMsg(type, entityStr) {\n return `Unable to parse entity \"${entityStr}\" - ${type} character reference entities must end with \";\"`;\n}\nvar CharacterReferenceType;\n(function (CharacterReferenceType) {\n CharacterReferenceType[\"HEX\"] = \"hexadecimal\";\n CharacterReferenceType[\"DEC\"] = \"decimal\";\n})(CharacterReferenceType || (CharacterReferenceType = {}));\nclass _ControlFlowError {\n error;\n constructor(error) {\n this.error = error;\n }\n}\n// See https://www.w3.org/TR/html51/syntax.html#writing-html-documents\nclass _Tokenizer {\n _getTagDefinition;\n _cursor;\n _tokenizeIcu;\n _interpolationConfig;\n _leadingTriviaCodePoints;\n _currentTokenStart = null;\n _currentTokenType = null;\n _expansionCaseStack = [];\n _inInterpolation = false;\n _preserveLineEndings;\n _i18nNormalizeLineEndingsInICUs;\n _tokenizeBlocks;\n _tokenizeLet;\n tokens = [];\n errors = [];\n nonNormalizedIcuExpressions = [];\n /**\n * @param _file The html source file being tokenized.\n * @param _getTagDefinition A function that will retrieve a tag definition for a given tag name.\n * @param options Configuration of the tokenization.\n */\n constructor(_file, _getTagDefinition, options) {\n this._getTagDefinition = _getTagDefinition;\n this._tokenizeIcu = options.tokenizeExpansionForms || false;\n this._interpolationConfig = options.interpolationConfig || DEFAULT_INTERPOLATION_CONFIG;\n this._leadingTriviaCodePoints =\n options.leadingTriviaChars && options.leadingTriviaChars.map((c) => c.codePointAt(0) || 0);\n const range = options.range || {\n endPos: _file.content.length,\n startPos: 0,\n startLine: 0,\n startCol: 0,\n };\n this._cursor = options.escapedString\n ? new EscapedCharacterCursor(_file, range)\n : new PlainCharacterCursor(_file, range);\n this._preserveLineEndings = options.preserveLineEndings || false;\n this._i18nNormalizeLineEndingsInICUs = options.i18nNormalizeLineEndingsInICUs || false;\n this._tokenizeBlocks = options.tokenizeBlocks ?? true;\n this._tokenizeLet = options.tokenizeLet ?? true;\n try {\n this._cursor.init();\n }\n catch (e) {\n this.handleError(e);\n }\n }\n _processCarriageReturns(content) {\n if (this._preserveLineEndings) {\n return content;\n }\n // https://www.w3.org/TR/html51/syntax.html#preprocessing-the-input-stream\n // In order to keep the original position in the source, we can not\n // pre-process it.\n // Instead CRs are processed right before instantiating the tokens.\n return content.replace(_CR_OR_CRLF_REGEXP, '\\n');\n }\n tokenize() {\n while (this._cursor.peek() !== $EOF) {\n const start = this._cursor.clone();\n try {\n if (this._attemptCharCode($LT)) {\n if (this._attemptCharCode($BANG)) {\n if (this._attemptCharCode($LBRACKET)) {\n this._consumeCdata(start);\n }\n else if (this._attemptCharCode($MINUS)) {\n this._consumeComment(start);\n }\n else {\n this._consumeDocType(start);\n }\n }\n else if (this._attemptCharCode($SLASH)) {\n this._consumeTagClose(start);\n }\n else {\n this._consumeTagOpen(start);\n }\n }\n else if (this._tokenizeLet &&\n // Use `peek` instead of `attempCharCode` since we\n // don't want to advance in case it's not `@let`.\n this._cursor.peek() === $AT &&\n !this._inInterpolation &&\n this._attemptStr('@let')) {\n this._consumeLetDeclaration(start);\n }\n else if (this._tokenizeBlocks && this._attemptCharCode($AT)) {\n this._consumeBlockStart(start);\n }\n else if (this._tokenizeBlocks &&\n !this._inInterpolation &&\n !this._isInExpansionCase() &&\n !this._isInExpansionForm() &&\n this._attemptCharCode($RBRACE)) {\n this._consumeBlockEnd(start);\n }\n else if (!(this._tokenizeIcu && this._tokenizeExpansionForm())) {\n // In (possibly interpolated) text the end of the text is given by `isTextEnd()`, while\n // the premature end of an interpolation is given by the start of a new HTML element.\n this._consumeWithInterpolation(5 /* TokenType.TEXT */, 8 /* TokenType.INTERPOLATION */, () => this._isTextEnd(), () => this._isTagStart());\n }\n }\n catch (e) {\n this.handleError(e);\n }\n }\n this._beginToken(33 /* TokenType.EOF */);\n this._endToken([]);\n }\n _getBlockName() {\n // This allows us to capture up something like `@else if`, but not `@ if`.\n let spacesInNameAllowed = false;\n const nameCursor = this._cursor.clone();\n this._attemptCharCodeUntilFn((code) => {\n if (isWhitespace(code)) {\n return !spacesInNameAllowed;\n }\n if (isBlockNameChar(code)) {\n spacesInNameAllowed = true;\n return false;\n }\n return true;\n });\n return this._cursor.getChars(nameCursor).trim();\n }\n _consumeBlockStart(start) {\n this._beginToken(24 /* TokenType.BLOCK_OPEN_START */, start);\n const startToken = this._endToken([this._getBlockName()]);\n if (this._cursor.peek() === $LPAREN) {\n // Advance past the opening paren.\n this._cursor.advance();\n // Capture the parameters.\n this._consumeBlockParameters();\n // Allow spaces before the closing paren.\n this._attemptCharCodeUntilFn(isNotWhitespace);\n if (this._attemptCharCode($RPAREN)) {\n // Allow spaces after the paren.\n this._attemptCharCodeUntilFn(isNotWhitespace);\n }\n else {\n startToken.type = 28 /* TokenType.INCOMPLETE_BLOCK_OPEN */;\n return;\n }\n }\n if (this._attemptCharCode($LBRACE)) {\n this._beginToken(25 /* TokenType.BLOCK_OPEN_END */);\n this._endToken([]);\n }\n else {\n startToken.type = 28 /* TokenType.INCOMPLETE_BLOCK_OPEN */;\n }\n }\n _consumeBlockEnd(start) {\n this._beginToken(26 /* TokenType.BLOCK_CLOSE */, start);\n this._endToken([]);\n }\n _consumeBlockParameters() {\n // Trim the whitespace until the first parameter.\n this._attemptCharCodeUntilFn(isBlockParameterChar);\n while (this._cursor.peek() !== $RPAREN && this._cursor.peek() !== $EOF) {\n this._beginToken(27 /* TokenType.BLOCK_PARAMETER */);\n const start = this._cursor.clone();\n let inQuote = null;\n let openParens = 0;\n // Consume the parameter until the next semicolon or brace.\n // Note that we skip over semicolons/braces inside of strings.\n while ((this._cursor.peek() !== $SEMICOLON && this._cursor.peek() !== $EOF) ||\n inQuote !== null) {\n const char = this._cursor.peek();\n // Skip to the next character if it was escaped.\n if (char === $BACKSLASH) {\n this._cursor.advance();\n }\n else if (char === inQuote) {\n inQuote = null;\n }\n else if (inQuote === null && isQuote(char)) {\n inQuote = char;\n }\n else if (char === $LPAREN && inQuote === null) {\n openParens++;\n }\n else if (char === $RPAREN && inQuote === null) {\n if (openParens === 0) {\n break;\n }\n else if (openParens > 0) {\n openParens--;\n }\n }\n this._cursor.advance();\n }\n this._endToken([this._cursor.getChars(start)]);\n // Skip to the next parameter.\n this._attemptCharCodeUntilFn(isBlockParameterChar);\n }\n }\n _consumeLetDeclaration(start) {\n this._beginToken(29 /* TokenType.LET_START */, start);\n // Require at least one white space after the `@let`.\n if (isWhitespace(this._cursor.peek())) {\n this._attemptCharCodeUntilFn(isNotWhitespace);\n }\n else {\n const token = this._endToken([this._cursor.getChars(start)]);\n token.type = 32 /* TokenType.INCOMPLETE_LET */;\n return;\n }\n const startToken = this._endToken([this._getLetDeclarationName()]);\n // Skip over white space before the equals character.\n this._attemptCharCodeUntilFn(isNotWhitespace);\n // Expect an equals sign.\n if (!this._attemptCharCode($EQ)) {\n startToken.type = 32 /* TokenType.INCOMPLETE_LET */;\n return;\n }\n // Skip spaces after the equals.\n this._attemptCharCodeUntilFn((code) => isNotWhitespace(code) && !isNewLine(code));\n this._consumeLetDeclarationValue();\n // Terminate the `@let` with a semicolon.\n const endChar = this._cursor.peek();\n if (endChar === $SEMICOLON) {\n this._beginToken(31 /* TokenType.LET_END */);\n this._endToken([]);\n this._cursor.advance();\n }\n else {\n startToken.type = 32 /* TokenType.INCOMPLETE_LET */;\n startToken.sourceSpan = this._cursor.getSpan(start);\n }\n }\n _getLetDeclarationName() {\n const nameCursor = this._cursor.clone();\n let allowDigit = false;\n this._attemptCharCodeUntilFn((code) => {\n if (isAsciiLetter(code) ||\n code === $$ ||\n code === $_ ||\n // `@let` names can't start with a digit, but digits are valid anywhere else in the name.\n (allowDigit && isDigit(code))) {\n allowDigit = true;\n return false;\n }\n return true;\n });\n return this._cursor.getChars(nameCursor).trim();\n }\n _consumeLetDeclarationValue() {\n const start = this._cursor.clone();\n this._beginToken(30 /* TokenType.LET_VALUE */, start);\n while (this._cursor.peek() !== $EOF) {\n const char = this._cursor.peek();\n // `@let` declarations terminate with a semicolon.\n if (char === $SEMICOLON) {\n break;\n }\n // If we hit a quote, skip over its content since we don't care what's inside.\n if (isQuote(char)) {\n this._cursor.advance();\n this._attemptCharCodeUntilFn((inner) => {\n if (inner === $BACKSLASH) {\n this._cursor.advance();\n return false;\n }\n return inner === char;\n });\n }\n this._cursor.advance();\n }\n this._endToken([this._cursor.getChars(start)]);\n }\n /**\n * @returns whether an ICU token has been created\n * @internal\n */\n _tokenizeExpansionForm() {\n if (this.isExpansionFormStart()) {\n this._consumeExpansionFormStart();\n return true;\n }\n if (isExpansionCaseStart(this._cursor.peek()) && this._isInExpansionForm()) {\n this._consumeExpansionCaseStart();\n return true;\n }\n if (this._cursor.peek() === $RBRACE) {\n if (this._isInExpansionCase()) {\n this._consumeExpansionCaseEnd();\n return true;\n }\n if (this._isInExpansionForm()) {\n this._consumeExpansionFormEnd();\n return true;\n }\n }\n return false;\n }\n _beginToken(type, start = this._cursor.clone()) {\n this._currentTokenStart = start;\n this._currentTokenType = type;\n }\n _endToken(parts, end) {\n if (this._currentTokenStart === null) {\n throw new TokenError('Programming error - attempted to end a token when there was no start to the token', this._currentTokenType, this._cursor.getSpan(end));\n }\n if (this._currentTokenType === null) {\n throw new TokenError('Programming error - attempted to end a token which has no token type', null, this._cursor.getSpan(this._currentTokenStart));\n }\n const token = {\n type: this._currentTokenType,\n parts,\n sourceSpan: (end ?? this._cursor).getSpan(this._currentTokenStart, this._leadingTriviaCodePoints),\n };\n this.tokens.push(token);\n this._currentTokenStart = null;\n this._currentTokenType = null;\n return token;\n }\n _createError(msg, span) {\n if (this._isInExpansionForm()) {\n msg += ` (Do you have an unescaped \"{\" in your template? Use \"{{ '{' }}\") to escape it.)`;\n }\n const error = new TokenError(msg, this._currentTokenType, span);\n this._currentTokenStart = null;\n this._currentTokenType = null;\n return new _ControlFlowError(error);\n }\n handleError(e) {\n if (e instanceof CursorError) {\n e = this._createError(e.msg, this._cursor.getSpan(e.cursor));\n }\n if (e instanceof _ControlFlowError) {\n this.errors.push(e.error);\n }\n else {\n throw e;\n }\n }\n _attemptCharCode(charCode) {\n if (this._cursor.peek() === charCode) {\n this._cursor.advance();\n return true;\n }\n return false;\n }\n _attemptCharCodeCaseInsensitive(charCode) {\n if (compareCharCodeCaseInsensitive(this._cursor.peek(), charCode)) {\n this._cursor.advance();\n return true;\n }\n return false;\n }\n _requireCharCode(charCode) {\n const location = this._cursor.clone();\n if (!this._attemptCharCode(charCode)) {\n throw this._createError(_unexpectedCharacterErrorMsg(this._cursor.peek()), this._cursor.getSpan(location));\n }\n }\n _attemptStr(chars) {\n const len = chars.length;\n if (this._cursor.charsLeft() < len) {\n return false;\n }\n const initialPosition = this._cursor.clone();\n for (let i = 0; i < len; i++) {\n if (!this._attemptCharCode(chars.charCodeAt(i))) {\n // If attempting to parse the string fails, we want to reset the parser\n // to where it was before the attempt\n this._cursor = initialPosition;\n return false;\n }\n }\n return true;\n }\n _attemptStrCaseInsensitive(chars) {\n for (let i = 0; i < chars.length; i++) {\n if (!this._attemptCharCodeCaseInsensitive(chars.charCodeAt(i))) {\n return false;\n }\n }\n return true;\n }\n _requireStr(chars) {\n const location = this._cursor.clone();\n if (!this._attemptStr(chars)) {\n throw this._createError(_unexpectedCharacterErrorMsg(this._cursor.peek()), this._cursor.getSpan(location));\n }\n }\n _attemptCharCodeUntilFn(predicate) {\n while (!predicate(this._cursor.peek())) {\n this._cursor.advance();\n }\n }\n _requireCharCodeUntilFn(predicate, len) {\n const start = this._cursor.clone();\n this._attemptCharCodeUntilFn(predicate);\n if (this._cursor.diff(start) < len) {\n throw this._createError(_unexpectedCharacterErrorMsg(this._cursor.peek()), this._cursor.getSpan(start));\n }\n }\n _attemptUntilChar(char) {\n while (this._cursor.peek() !== char) {\n this._cursor.advance();\n }\n }\n _readChar() {\n // Don't rely upon reading directly from `_input` as the actual char value\n // may have been generated from an escape sequence.\n const char = String.fromCodePoint(this._cursor.peek());\n this._cursor.advance();\n return char;\n }\n _consumeEntity(textTokenType) {\n this._beginToken(9 /* TokenType.ENCODED_ENTITY */);\n const start = this._cursor.clone();\n this._cursor.advance();\n if (this._attemptCharCode($HASH)) {\n const isHex = this._attemptCharCode($x) || this._attemptCharCode($X);\n const codeStart = this._cursor.clone();\n this._attemptCharCodeUntilFn(isDigitEntityEnd);\n if (this._cursor.peek() != $SEMICOLON) {\n // Advance cursor to include the peeked character in the string provided to the error\n // message.\n this._cursor.advance();\n const entityType = isHex ? CharacterReferenceType.HEX : CharacterReferenceType.DEC;\n throw this._createError(_unparsableEntityErrorMsg(entityType, this._cursor.getChars(start)), this._cursor.getSpan());\n }\n const strNum = this._cursor.getChars(codeStart);\n this._cursor.advance();\n try {\n const charCode = parseInt(strNum, isHex ? 16 : 10);\n this._endToken([String.fromCharCode(charCode), this._cursor.getChars(start)]);\n }\n catch {\n throw this._createError(_unknownEntityErrorMsg(this._cursor.getChars(start)), this._cursor.getSpan());\n }\n }\n else {\n const nameStart = this._cursor.clone();\n this._attemptCharCodeUntilFn(isNamedEntityEnd);\n if (this._cursor.peek() != $SEMICOLON) {\n // No semicolon was found so abort the encoded entity token that was in progress, and treat\n // this as a text token\n this._beginToken(textTokenType, start);\n this._cursor = nameStart;\n this._endToken(['&']);\n }\n else {\n const name = this._cursor.getChars(nameStart);\n this._cursor.advance();\n const char = NAMED_ENTITIES[name];\n if (!char) {\n throw this._createError(_unknownEntityErrorMsg(name), this._cursor.getSpan(start));\n }\n this._endToken([char, `&${name};`]);\n }\n }\n }\n _consumeRawText(consumeEntities, endMarkerPredicate) {\n this._beginToken(consumeEntities ? 6 /* TokenType.ESCAPABLE_RAW_TEXT */ : 7 /* TokenType.RAW_TEXT */);\n const parts = [];\n while (true) {\n const tagCloseStart = this._cursor.clone();\n const foundEndMarker = endMarkerPredicate();\n this._cursor = tagCloseStart;\n if (foundEndMarker) {\n break;\n }\n if (consumeEntities && this._cursor.peek() === $AMPERSAND) {\n this._endToken([this._processCarriageReturns(parts.join(''))]);\n parts.length = 0;\n this._consumeEntity(6 /* TokenType.ESCAPABLE_RAW_TEXT */);\n this._beginToken(6 /* TokenType.ESCAPABLE_RAW_TEXT */);\n }\n else {\n parts.push(this._readChar());\n }\n }\n this._endToken([this._processCarriageReturns(parts.join(''))]);\n }\n _consumeComment(start) {\n this._beginToken(10 /* TokenType.COMMENT_START */, start);\n this._requireCharCode($MINUS);\n this._endToken([]);\n this._consumeRawText(false, () => this._attemptStr('-->'));\n this._beginToken(11 /* TokenType.COMMENT_END */);\n this._requireStr('-->');\n this._endToken([]);\n }\n _consumeCdata(start) {\n this._beginToken(12 /* TokenType.CDATA_START */, start);\n this._requireStr('CDATA[');\n this._endToken([]);\n this._consumeRawText(false, () => this._attemptStr(']]>'));\n this._beginToken(13 /* TokenType.CDATA_END */);\n this._requireStr(']]>');\n this._endToken([]);\n }\n _consumeDocType(start) {\n this._beginToken(18 /* TokenType.DOC_TYPE */, start);\n const contentStart = this._cursor.clone();\n this._attemptUntilChar($GT);\n const content = this._cursor.getChars(contentStart);\n this._cursor.advance();\n this._endToken([content]);\n }\n _consumePrefixAndName() {\n const nameOrPrefixStart = this._cursor.clone();\n let prefix = '';\n while (this._cursor.peek() !== $COLON && !isPrefixEnd(this._cursor.peek())) {\n this._cursor.advance();\n }\n let nameStart;\n if (this._cursor.peek() === $COLON) {\n prefix = this._cursor.getChars(nameOrPrefixStart);\n this._cursor.advance();\n nameStart = this._cursor.clone();\n }\n else {\n nameStart = nameOrPrefixStart;\n }\n this._requireCharCodeUntilFn(isNameEnd, prefix === '' ? 0 : 1);\n const name = this._cursor.getChars(nameStart);\n return [prefix, name];\n }\n _consumeTagOpen(start) {\n let tagName;\n let prefix;\n let openTagToken;\n try {\n if (!isAsciiLetter(this._cursor.peek())) {\n throw this._createError(_unexpectedCharacterErrorMsg(this._cursor.peek()), this._cursor.getSpan(start));\n }\n openTagToken = this._consumeTagOpenStart(start);\n prefix = openTagToken.parts[0];\n tagName = openTagToken.parts[1];\n this._attemptCharCodeUntilFn(isNotWhitespace);\n while (this._cursor.peek() !== $SLASH &&\n this._cursor.peek() !== $GT &&\n this._cursor.peek() !== $LT &&\n this._cursor.peek() !== $EOF) {\n this._consumeAttributeName();\n this._attemptCharCodeUntilFn(isNotWhitespace);\n if (this._attemptCharCode($EQ)) {\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._consumeAttributeValue();\n }\n this._attemptCharCodeUntilFn(isNotWhitespace);\n }\n this._consumeTagOpenEnd();\n }\n catch (e) {\n if (e instanceof _ControlFlowError) {\n if (openTagToken) {\n // We errored before we could close the opening tag, so it is incomplete.\n openTagToken.type = 4 /* TokenType.INCOMPLETE_TAG_OPEN */;\n }\n else {\n // When the start tag is invalid, assume we want a \"<\" as text.\n // Back to back text tokens are merged at the end.\n this._beginToken(5 /* TokenType.TEXT */, start);\n this._endToken(['<']);\n }\n return;\n }\n throw e;\n }\n const contentTokenType = this._getTagDefinition(tagName).getContentType(prefix);\n if (contentTokenType === TagContentType.RAW_TEXT) {\n this._consumeRawTextWithTagClose(prefix, tagName, false);\n }\n else if (contentTokenType === TagContentType.ESCAPABLE_RAW_TEXT) {\n this._consumeRawTextWithTagClose(prefix, tagName, true);\n }\n }\n _consumeRawTextWithTagClose(prefix, tagName, consumeEntities) {\n this._consumeRawText(consumeEntities, () => {\n if (!this._attemptCharCode($LT))\n return false;\n if (!this._attemptCharCode($SLASH))\n return false;\n this._attemptCharCodeUntilFn(isNotWhitespace);\n if (!this._attemptStrCaseInsensitive(tagName))\n return false;\n this._attemptCharCodeUntilFn(isNotWhitespace);\n return this._attemptCharCode($GT);\n });\n this._beginToken(3 /* TokenType.TAG_CLOSE */);\n this._requireCharCodeUntilFn((code) => code === $GT, 3);\n this._cursor.advance(); // Consume the `>`\n this._endToken([prefix, tagName]);\n }\n _consumeTagOpenStart(start) {\n this._beginToken(0 /* TokenType.TAG_OPEN_START */, start);\n const parts = this._consumePrefixAndName();\n return this._endToken(parts);\n }\n _consumeAttributeName() {\n const attrNameStart = this._cursor.peek();\n if (attrNameStart === $SQ || attrNameStart === $DQ) {\n throw this._createError(_unexpectedCharacterErrorMsg(attrNameStart), this._cursor.getSpan());\n }\n this._beginToken(14 /* TokenType.ATTR_NAME */);\n const prefixAndName = this._consumePrefixAndName();\n this._endToken(prefixAndName);\n }\n _consumeAttributeValue() {\n if (this._cursor.peek() === $SQ || this._cursor.peek() === $DQ) {\n const quoteChar = this._cursor.peek();\n this._consumeQuote(quoteChar);\n // In an attribute then end of the attribute value and the premature end to an interpolation\n // are both triggered by the `quoteChar`.\n const endPredicate = () => this._cursor.peek() === quoteChar;\n this._consumeWithInterpolation(16 /* TokenType.ATTR_VALUE_TEXT */, 17 /* TokenType.ATTR_VALUE_INTERPOLATION */, endPredicate, endPredicate);\n this._consumeQuote(quoteChar);\n }\n else {\n const endPredicate = () => isNameEnd(this._cursor.peek());\n this._consumeWithInterpolation(16 /* TokenType.ATTR_VALUE_TEXT */, 17 /* TokenType.ATTR_VALUE_INTERPOLATION */, endPredicate, endPredicate);\n }\n }\n _consumeQuote(quoteChar) {\n this._beginToken(15 /* TokenType.ATTR_QUOTE */);\n this._requireCharCode(quoteChar);\n this._endToken([String.fromCodePoint(quoteChar)]);\n }\n _consumeTagOpenEnd() {\n const tokenType = this._attemptCharCode($SLASH)\n ? 2 /* TokenType.TAG_OPEN_END_VOID */\n : 1 /* TokenType.TAG_OPEN_END */;\n this._beginToken(tokenType);\n this._requireCharCode($GT);\n this._endToken([]);\n }\n _consumeTagClose(start) {\n this._beginToken(3 /* TokenType.TAG_CLOSE */, start);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n const prefixAndName = this._consumePrefixAndName();\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._requireCharCode($GT);\n this._endToken(prefixAndName);\n }\n _consumeExpansionFormStart() {\n this._beginToken(19 /* TokenType.EXPANSION_FORM_START */);\n this._requireCharCode($LBRACE);\n this._endToken([]);\n this._expansionCaseStack.push(19 /* TokenType.EXPANSION_FORM_START */);\n this._beginToken(7 /* TokenType.RAW_TEXT */);\n const condition = this._readUntil($COMMA);\n const normalizedCondition = this._processCarriageReturns(condition);\n if (this._i18nNormalizeLineEndingsInICUs) {\n // We explicitly want to normalize line endings for this text.\n this._endToken([normalizedCondition]);\n }\n else {\n // We are not normalizing line endings.\n const conditionToken = this._endToken([condition]);\n if (normalizedCondition !== condition) {\n this.nonNormalizedIcuExpressions.push(conditionToken);\n }\n }\n this._requireCharCode($COMMA);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._beginToken(7 /* TokenType.RAW_TEXT */);\n const type = this._readUntil($COMMA);\n this._endToken([type]);\n this._requireCharCode($COMMA);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n }\n _consumeExpansionCaseStart() {\n this._beginToken(20 /* TokenType.EXPANSION_CASE_VALUE */);\n const value = this._readUntil($LBRACE).trim();\n this._endToken([value]);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._beginToken(21 /* TokenType.EXPANSION_CASE_EXP_START */);\n this._requireCharCode($LBRACE);\n this._endToken([]);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._expansionCaseStack.push(21 /* TokenType.EXPANSION_CASE_EXP_START */);\n }\n _consumeExpansionCaseEnd() {\n this._beginToken(22 /* TokenType.EXPANSION_CASE_EXP_END */);\n this._requireCharCode($RBRACE);\n this._endToken([]);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._expansionCaseStack.pop();\n }\n _consumeExpansionFormEnd() {\n this._beginToken(23 /* TokenType.EXPANSION_FORM_END */);\n this._requireCharCode($RBRACE);\n this._endToken([]);\n this._expansionCaseStack.pop();\n }\n /**\n * Consume a string that may contain interpolation expressions.\n *\n * The first token consumed will be of `tokenType` and then there will be alternating\n * `interpolationTokenType` and `tokenType` tokens until the `endPredicate()` returns true.\n *\n * If an interpolation token ends prematurely it will have no end marker in its `parts` array.\n *\n * @param textTokenType the kind of tokens to interleave around interpolation tokens.\n * @param interpolationTokenType the kind of tokens that contain interpolation.\n * @param endPredicate a function that should return true when we should stop consuming.\n * @param endInterpolation a function that should return true if there is a premature end to an\n * interpolation expression - i.e. before we get to the normal interpolation closing marker.\n */\n _consumeWithInterpolation(textTokenType, interpolationTokenType, endPredicate, endInterpolation) {\n this._beginToken(textTokenType);\n const parts = [];\n while (!endPredicate()) {\n const current = this._cursor.clone();\n if (this._interpolationConfig && this._attemptStr(this._interpolationConfig.start)) {\n this._endToken([this._processCarriageReturns(parts.join(''))], current);\n parts.length = 0;\n this._consumeInterpolation(interpolationTokenType, current, endInterpolation);\n this._beginToken(textTokenType);\n }\n else if (this._cursor.peek() === $AMPERSAND) {\n this._endToken([this._processCarriageReturns(parts.join(''))]);\n parts.length = 0;\n this._consumeEntity(textTokenType);\n this._beginToken(textTokenType);\n }\n else {\n parts.push(this._readChar());\n }\n }\n // It is possible that an interpolation was started but not ended inside this text token.\n // Make sure that we reset the state of the lexer correctly.\n this._inInterpolation = false;\n this._endToken([this._processCarriageReturns(parts.join(''))]);\n }\n /**\n * Consume a block of text that has been interpreted as an Angular interpolation.\n *\n * @param interpolationTokenType the type of the interpolation token to generate.\n * @param interpolationStart a cursor that points to the start of this interpolation.\n * @param prematureEndPredicate a function that should return true if the next characters indicate\n * an end to the interpolation before its normal closing marker.\n */\n _consumeInterpolation(interpolationTokenType, interpolationStart, prematureEndPredicate) {\n const parts = [];\n this._beginToken(interpolationTokenType, interpolationStart);\n parts.push(this._interpolationConfig.start);\n // Find the end of the interpolation, ignoring content inside quotes.\n const expressionStart = this._cursor.clone();\n let inQuote = null;\n let inComment = false;\n while (this._cursor.peek() !== $EOF &&\n (prematureEndPredicate === null || !prematureEndPredicate())) {\n const current = this._cursor.clone();\n if (this._isTagStart()) {\n // We are starting what looks like an HTML element in the middle of this interpolation.\n // Reset the cursor to before the `<` character and end the interpolation token.\n // (This is actually wrong but here for backward compatibility).\n this._cursor = current;\n parts.push(this._getProcessedChars(expressionStart, current));\n this._endToken(parts);\n return;\n }\n if (inQuote === null) {\n if (this._attemptStr(this._interpolationConfig.end)) {\n // We are not in a string, and we hit the end interpolation marker\n parts.push(this._getProcessedChars(expressionStart, current));\n parts.push(this._interpolationConfig.end);\n this._endToken(parts);\n return;\n }\n else if (this._attemptStr('//')) {\n // Once we are in a comment we ignore any quotes\n inComment = true;\n }\n }\n const char = this._cursor.peek();\n this._cursor.advance();\n if (char === $BACKSLASH) {\n // Skip the next character because it was escaped.\n this._cursor.advance();\n }\n else if (char === inQuote) {\n // Exiting the current quoted string\n inQuote = null;\n }\n else if (!inComment && inQuote === null && isQuote(char)) {\n // Entering a new quoted string\n inQuote = char;\n }\n }\n // We hit EOF without finding a closing interpolation marker\n parts.push(this._getProcessedChars(expressionStart, this._cursor));\n this._endToken(parts);\n }\n _getProcessedChars(start, end) {\n return this._processCarriageReturns(end.getChars(start));\n }\n _isTextEnd() {\n if (this._isTagStart() || this._cursor.peek() === $EOF) {\n return true;\n }\n if (this._tokenizeIcu && !this._inInterpolation) {\n if (this.isExpansionFormStart()) {\n // start of an expansion form\n return true;\n }\n if (this._cursor.peek() === $RBRACE && this._isInExpansionCase()) {\n // end of and expansion case\n return true;\n }\n }\n if (this._tokenizeBlocks &&\n !this._inInterpolation &&\n !this._isInExpansion() &&\n (this._cursor.peek() === $AT || this._cursor.peek() === $RBRACE)) {\n return true;\n }\n return false;\n }\n /**\n * Returns true if the current cursor is pointing to the start of a tag\n * (opening/closing/comments/cdata/etc).\n */\n _isTagStart() {\n if (this._cursor.peek() === $LT) {\n // We assume that `<` followed by whitespace is not the start of an HTML element.\n const tmp = this._cursor.clone();\n tmp.advance();\n // If the next character is alphabetic, ! nor / then it is a tag start\n const code = tmp.peek();\n if (($a <= code && code <= $z) ||\n ($A <= code && code <= $Z) ||\n code === $SLASH ||\n code === $BANG) {\n return true;\n }\n }\n return false;\n }\n _readUntil(char) {\n const start = this._cursor.clone();\n this._attemptUntilChar(char);\n return this._cursor.getChars(start);\n }\n _isInExpansion() {\n return this._isInExpansionCase() || this._isInExpansionForm();\n }\n _isInExpansionCase() {\n return (this._expansionCaseStack.length > 0 &&\n this._expansionCaseStack[this._expansionCaseStack.length - 1] ===\n 21 /* TokenType.EXPANSION_CASE_EXP_START */);\n }\n _isInExpansionForm() {\n return (this._expansionCaseStack.length > 0 &&\n this._expansionCaseStack[this._expansionCaseStack.length - 1] ===\n 19 /* TokenType.EXPANSION_FORM_START */);\n }\n isExpansionFormStart() {\n if (this._cursor.peek() !== $LBRACE) {\n return false;\n }\n if (this._interpolationConfig) {\n const start = this._cursor.clone();\n const isInterpolation = this._attemptStr(this._interpolationConfig.start);\n this._cursor = start;\n return !isInterpolation;\n }\n return true;\n }\n}\nfunction isNotWhitespace(code) {\n return !isWhitespace(code) || code === $EOF;\n}\nfunction isNameEnd(code) {\n return (isWhitespace(code) ||\n code === $GT ||\n code === $LT ||\n code === $SLASH ||\n code === $SQ ||\n code === $DQ ||\n code === $EQ ||\n code === $EOF);\n}\nfunction isPrefixEnd(code) {\n return ((code < $a || $z < code) &&\n (code < $A || $Z < code) &&\n (code < $0 || code > $9));\n}\nfunction isDigitEntityEnd(code) {\n return code === $SEMICOLON || code === $EOF || !isAsciiHexDigit(code);\n}\nfunction isNamedEntityEnd(code) {\n return code === $SEMICOLON || code === $EOF || !isAsciiLetter(code);\n}\nfunction isExpansionCaseStart(peek) {\n return peek !== $RBRACE;\n}\nfunction compareCharCodeCaseInsensitive(code1, code2) {\n return toUpperCaseCharCode(code1) === toUpperCaseCharCode(code2);\n}\nfunction toUpperCaseCharCode(code) {\n return code >= $a && code <= $z ? code - $a + $A : code;\n}\nfunction isBlockNameChar(code) {\n return isAsciiLetter(code) || isDigit(code) || code === $_;\n}\nfunction isBlockParameterChar(code) {\n return code !== $SEMICOLON && isNotWhitespace(code);\n}\nfunction mergeTextTokens(srcTokens) {\n const dstTokens = [];\n let lastDstToken = undefined;\n for (let i = 0; i < srcTokens.length; i++) {\n const token = srcTokens[i];\n if ((lastDstToken && lastDstToken.type === 5 /* TokenType.TEXT */ && token.type === 5 /* TokenType.TEXT */) ||\n (lastDstToken &&\n lastDstToken.type === 16 /* TokenType.ATTR_VALUE_TEXT */ &&\n token.type === 16 /* TokenType.ATTR_VALUE_TEXT */)) {\n lastDstToken.parts[0] += token.parts[0];\n lastDstToken.sourceSpan.end = token.sourceSpan.end;\n }\n else {\n lastDstToken = token;\n dstTokens.push(lastDstToken);\n }\n }\n return dstTokens;\n}\nclass PlainCharacterCursor {\n state;\n file;\n input;\n end;\n constructor(fileOrCursor, range) {\n if (fileOrCursor instanceof PlainCharacterCursor) {\n this.file = fileOrCursor.file;\n this.input = fileOrCursor.input;\n this.end = fileOrCursor.end;\n const state = fileOrCursor.state;\n // Note: avoid using `{...fileOrCursor.state}` here as that has a severe performance penalty.\n // In ES5 bundles the object spread operator is translated into the `__assign` helper, which\n // is not optimized by VMs as efficiently as a raw object literal. Since this constructor is\n // called in tight loops, this difference matters.\n this.state = {\n peek: state.peek,\n offset: state.offset,\n line: state.line,\n column: state.column,\n };\n }\n else {\n if (!range) {\n throw new Error('Programming error: the range argument must be provided with a file argument.');\n }\n this.file = fileOrCursor;\n this.input = fileOrCursor.content;\n this.end = range.endPos;\n this.state = {\n peek: -1,\n offset: range.startPos,\n line: range.startLine,\n column: range.startCol,\n };\n }\n }\n clone() {\n return new PlainCharacterCursor(this);\n }\n peek() {\n return this.state.peek;\n }\n charsLeft() {\n return this.end - this.state.offset;\n }\n diff(other) {\n return this.state.offset - other.state.offset;\n }\n advance() {\n this.advanceState(this.state);\n }\n init() {\n this.updatePeek(this.state);\n }\n getSpan(start, leadingTriviaCodePoints) {\n start = start || this;\n let fullStart = start;\n if (leadingTriviaCodePoints) {\n while (this.diff(start) > 0 && leadingTriviaCodePoints.indexOf(start.peek()) !== -1) {\n if (fullStart === start) {\n start = start.clone();\n }\n start.advance();\n }\n }\n const startLocation = this.locationFromCursor(start);\n const endLocation = this.locationFromCursor(this);\n const fullStartLocation = fullStart !== start ? this.locationFromCursor(fullStart) : startLocation;\n return new ParseSourceSpan(startLocation, endLocation, fullStartLocation);\n }\n getChars(start) {\n return this.input.substring(start.state.offset, this.state.offset);\n }\n charAt(pos) {\n return this.input.charCodeAt(pos);\n }\n advanceState(state) {\n if (state.offset >= this.end) {\n this.state = state;\n throw new CursorError('Unexpected character \"EOF\"', this);\n }\n const currentChar = this.charAt(state.offset);\n if (currentChar === $LF) {\n state.line++;\n state.column = 0;\n }\n else if (!isNewLine(currentChar)) {\n state.column++;\n }\n state.offset++;\n this.updatePeek(state);\n }\n updatePeek(state) {\n state.peek = state.offset >= this.end ? $EOF : this.charAt(state.offset);\n }\n locationFromCursor(cursor) {\n return new ParseLocation(cursor.file, cursor.state.offset, cursor.state.line, cursor.state.column);\n }\n}\nclass EscapedCharacterCursor extends PlainCharacterCursor {\n internalState;\n constructor(fileOrCursor, range) {\n if (fileOrCursor instanceof EscapedCharacterCursor) {\n super(fileOrCursor);\n this.internalState = { ...fileOrCursor.internalState };\n }\n else {\n super(fileOrCursor, range);\n this.internalState = this.state;\n }\n }\n advance() {\n this.state = this.internalState;\n super.advance();\n this.processEscapeSequence();\n }\n init() {\n super.init();\n this.processEscapeSequence();\n }\n clone() {\n return new EscapedCharacterCursor(this);\n }\n getChars(start) {\n const cursor = start.clone();\n let chars = '';\n while (cursor.internalState.offset < this.internalState.offset) {\n chars += String.fromCodePoint(cursor.peek());\n cursor.advance();\n }\n return chars;\n }\n /**\n * Process the escape sequence that starts at the current position in the text.\n *\n * This method is called to ensure that `peek` has the unescaped value of escape sequences.\n */\n processEscapeSequence() {\n const peek = () => this.internalState.peek;\n if (peek() === $BACKSLASH) {\n // We have hit an escape sequence so we need the internal state to become independent\n // of the external state.\n this.internalState = { ...this.state };\n // Move past the backslash\n this.advanceState(this.internalState);\n // First check for standard control char sequences\n if (peek() === $n) {\n this.state.peek = $LF;\n }\n else if (peek() === $r) {\n this.state.peek = $CR;\n }\n else if (peek() === $v) {\n this.state.peek = $VTAB;\n }\n else if (peek() === $t) {\n this.state.peek = $TAB;\n }\n else if (peek() === $b) {\n this.state.peek = $BSPACE;\n }\n else if (peek() === $f) {\n this.state.peek = $FF;\n }\n // Now consider more complex sequences\n else if (peek() === $u) {\n // Unicode code-point sequence\n this.advanceState(this.internalState); // advance past the `u` char\n if (peek() === $LBRACE) {\n // Variable length Unicode, e.g. `\\x{123}`\n this.advanceState(this.internalState); // advance past the `{` char\n // Advance past the variable number of hex digits until we hit a `}` char\n const digitStart = this.clone();\n let length = 0;\n while (peek() !== $RBRACE) {\n this.advanceState(this.internalState);\n length++;\n }\n this.state.peek = this.decodeHexDigits(digitStart, length);\n }\n else {\n // Fixed length Unicode, e.g. `\\u1234`\n const digitStart = this.clone();\n this.advanceState(this.internalState);\n this.advanceState(this.internalState);\n this.advanceState(this.internalState);\n this.state.peek = this.decodeHexDigits(digitStart, 4);\n }\n }\n else if (peek() === $x) {\n // Hex char code, e.g. `\\x2F`\n this.advanceState(this.internalState); // advance past the `x` char\n const digitStart = this.clone();\n this.advanceState(this.internalState);\n this.state.peek = this.decodeHexDigits(digitStart, 2);\n }\n else if (isOctalDigit(peek())) {\n // Octal char code, e.g. `\\012`,\n let octal = '';\n let length = 0;\n let previous = this.clone();\n while (isOctalDigit(peek()) && length < 3) {\n previous = this.clone();\n octal += String.fromCodePoint(peek());\n this.advanceState(this.internalState);\n length++;\n }\n this.state.peek = parseInt(octal, 8);\n // Backup one char\n this.internalState = previous.internalState;\n }\n else if (isNewLine(this.internalState.peek)) {\n // Line continuation `\\` followed by a new line\n this.advanceState(this.internalState); // advance over the newline\n this.state = this.internalState;\n }\n else {\n // If none of the `if` blocks were executed then we just have an escaped normal character.\n // In that case we just, effectively, skip the backslash from the character.\n this.state.peek = this.internalState.peek;\n }\n }\n }\n decodeHexDigits(start, length) {\n const hex = this.input.slice(start.internalState.offset, start.internalState.offset + length);\n const charCode = parseInt(hex, 16);\n if (!isNaN(charCode)) {\n return charCode;\n }\n else {\n start.state = start.internalState;\n throw new CursorError('Invalid hexadecimal escape sequence', start);\n }\n }\n}\nclass CursorError {\n msg;\n cursor;\n constructor(msg, cursor) {\n this.msg = msg;\n this.cursor = cursor;\n }\n}\n\nclass TreeError extends ParseError {\n elementName;\n static create(elementName, span, msg) {\n return new TreeError(elementName, span, msg);\n }\n constructor(elementName, span, msg) {\n super(span, msg);\n this.elementName = elementName;\n }\n}\nclass ParseTreeResult {\n rootNodes;\n errors;\n constructor(rootNodes, errors) {\n this.rootNodes = rootNodes;\n this.errors = errors;\n }\n}\nclass Parser$1 {\n getTagDefinition;\n constructor(getTagDefinition) {\n this.getTagDefinition = getTagDefinition;\n }\n parse(source, url, options) {\n const tokenizeResult = tokenize(source, url, this.getTagDefinition, options);\n const parser = new _TreeBuilder(tokenizeResult.tokens, this.getTagDefinition);\n parser.build();\n return new ParseTreeResult(parser.rootNodes, tokenizeResult.errors.concat(parser.errors));\n }\n}\nclass _TreeBuilder {\n tokens;\n getTagDefinition;\n _index = -1;\n // `_peek` will be initialized by the call to `_advance()` in the constructor.\n _peek;\n _containerStack = [];\n rootNodes = [];\n errors = [];\n constructor(tokens, getTagDefinition) {\n this.tokens = tokens;\n this.getTagDefinition = getTagDefinition;\n this._advance();\n }\n build() {\n while (this._peek.type !== 33 /* TokenType.EOF */) {\n if (this._peek.type === 0 /* TokenType.TAG_OPEN_START */ ||\n this._peek.type === 4 /* TokenType.INCOMPLETE_TAG_OPEN */) {\n this._consumeStartTag(this._advance());\n }\n else if (this._peek.type === 3 /* TokenType.TAG_CLOSE */) {\n this._consumeEndTag(this._advance());\n }\n else if (this._peek.type === 12 /* TokenType.CDATA_START */) {\n this._closeVoidElement();\n this._consumeCdata(this._advance());\n }\n else if (this._peek.type === 10 /* TokenType.COMMENT_START */) {\n this._closeVoidElement();\n this._consumeComment(this._advance());\n }\n else if (this._peek.type === 5 /* TokenType.TEXT */ ||\n this._peek.type === 7 /* TokenType.RAW_TEXT */ ||\n this._peek.type === 6 /* TokenType.ESCAPABLE_RAW_TEXT */) {\n this._closeVoidElement();\n this._consumeText(this._advance());\n }\n else if (this._peek.type === 19 /* TokenType.EXPANSION_FORM_START */) {\n this._consumeExpansion(this._advance());\n }\n else if (this._peek.type === 24 /* TokenType.BLOCK_OPEN_START */) {\n this._closeVoidElement();\n this._consumeBlockOpen(this._advance());\n }\n else if (this._peek.type === 26 /* TokenType.BLOCK_CLOSE */) {\n this._closeVoidElement();\n this._consumeBlockClose(this._advance());\n }\n else if (this._peek.type === 28 /* TokenType.INCOMPLETE_BLOCK_OPEN */) {\n this._closeVoidElement();\n this._consumeIncompleteBlock(this._advance());\n }\n else if (this._peek.type === 29 /* TokenType.LET_START */) {\n this._closeVoidElement();\n this._consumeLet(this._advance());\n }\n else if (this._peek.type === 32 /* TokenType.INCOMPLETE_LET */) {\n this._closeVoidElement();\n this._consumeIncompleteLet(this._advance());\n }\n else {\n // Skip all other tokens...\n this._advance();\n }\n }\n for (const leftoverContainer of this._containerStack) {\n // Unlike HTML elements, blocks aren't closed implicitly by the end of the file.\n if (leftoverContainer instanceof Block) {\n this.errors.push(TreeError.create(leftoverContainer.name, leftoverContainer.sourceSpan, `Unclosed block \"${leftoverContainer.name}\"`));\n }\n }\n }\n _advance() {\n const prev = this._peek;\n if (this._index < this.tokens.length - 1) {\n // Note: there is always an EOF token at the end\n this._index++;\n }\n this._peek = this.tokens[this._index];\n return prev;\n }\n _advanceIf(type) {\n if (this._peek.type === type) {\n return this._advance();\n }\n return null;\n }\n _consumeCdata(_startToken) {\n this._consumeText(this._advance());\n this._advanceIf(13 /* TokenType.CDATA_END */);\n }\n _consumeComment(token) {\n const text = this._advanceIf(7 /* TokenType.RAW_TEXT */);\n const endToken = this._advanceIf(11 /* TokenType.COMMENT_END */);\n const value = text != null ? text.parts[0].trim() : null;\n const sourceSpan = endToken == null\n ? token.sourceSpan\n : new ParseSourceSpan(token.sourceSpan.start, endToken.sourceSpan.end, token.sourceSpan.fullStart);\n this._addToParent(new Comment(value, sourceSpan));\n }\n _consumeExpansion(token) {\n const switchValue = this._advance();\n const type = this._advance();\n const cases = [];\n // read =\n while (this._peek.type === 20 /* TokenType.EXPANSION_CASE_VALUE */) {\n const expCase = this._parseExpansionCase();\n if (!expCase)\n return; // error\n cases.push(expCase);\n }\n // read the final }\n if (this._peek.type !== 23 /* TokenType.EXPANSION_FORM_END */) {\n this.errors.push(TreeError.create(null, this._peek.sourceSpan, `Invalid ICU message. Missing '}'.`));\n return;\n }\n const sourceSpan = new ParseSourceSpan(token.sourceSpan.start, this._peek.sourceSpan.end, token.sourceSpan.fullStart);\n this._addToParent(new Expansion(switchValue.parts[0], type.parts[0], cases, sourceSpan, switchValue.sourceSpan));\n this._advance();\n }\n _parseExpansionCase() {\n const value = this._advance();\n // read {\n if (this._peek.type !== 21 /* TokenType.EXPANSION_CASE_EXP_START */) {\n this.errors.push(TreeError.create(null, this._peek.sourceSpan, `Invalid ICU message. Missing '{'.`));\n return null;\n }\n // read until }\n const start = this._advance();\n const exp = this._collectExpansionExpTokens(start);\n if (!exp)\n return null;\n const end = this._advance();\n exp.push({ type: 33 /* TokenType.EOF */, parts: [], sourceSpan: end.sourceSpan });\n // parse everything in between { and }\n const expansionCaseParser = new _TreeBuilder(exp, this.getTagDefinition);\n expansionCaseParser.build();\n if (expansionCaseParser.errors.length > 0) {\n this.errors = this.errors.concat(expansionCaseParser.errors);\n return null;\n }\n const sourceSpan = new ParseSourceSpan(value.sourceSpan.start, end.sourceSpan.end, value.sourceSpan.fullStart);\n const expSourceSpan = new ParseSourceSpan(start.sourceSpan.start, end.sourceSpan.end, start.sourceSpan.fullStart);\n return new ExpansionCase(value.parts[0], expansionCaseParser.rootNodes, sourceSpan, value.sourceSpan, expSourceSpan);\n }\n _collectExpansionExpTokens(start) {\n const exp = [];\n const expansionFormStack = [21 /* TokenType.EXPANSION_CASE_EXP_START */];\n while (true) {\n if (this._peek.type === 19 /* TokenType.EXPANSION_FORM_START */ ||\n this._peek.type === 21 /* TokenType.EXPANSION_CASE_EXP_START */) {\n expansionFormStack.push(this._peek.type);\n }\n if (this._peek.type === 22 /* TokenType.EXPANSION_CASE_EXP_END */) {\n if (lastOnStack(expansionFormStack, 21 /* TokenType.EXPANSION_CASE_EXP_START */)) {\n expansionFormStack.pop();\n if (expansionFormStack.length === 0)\n return exp;\n }\n else {\n this.errors.push(TreeError.create(null, start.sourceSpan, `Invalid ICU message. Missing '}'.`));\n return null;\n }\n }\n if (this._peek.type === 23 /* TokenType.EXPANSION_FORM_END */) {\n if (lastOnStack(expansionFormStack, 19 /* TokenType.EXPANSION_FORM_START */)) {\n expansionFormStack.pop();\n }\n else {\n this.errors.push(TreeError.create(null, start.sourceSpan, `Invalid ICU message. Missing '}'.`));\n return null;\n }\n }\n if (this._peek.type === 33 /* TokenType.EOF */) {\n this.errors.push(TreeError.create(null, start.sourceSpan, `Invalid ICU message. Missing '}'.`));\n return null;\n }\n exp.push(this._advance());\n }\n }\n _consumeText(token) {\n const tokens = [token];\n const startSpan = token.sourceSpan;\n let text = token.parts[0];\n if (text.length > 0 && text[0] === '\\n') {\n const parent = this._getContainer();\n if (parent != null &&\n parent.children.length === 0 &&\n this.getTagDefinition(parent.name).ignoreFirstLf) {\n text = text.substring(1);\n tokens[0] = { type: token.type, sourceSpan: token.sourceSpan, parts: [text] };\n }\n }\n while (this._peek.type === 8 /* TokenType.INTERPOLATION */ ||\n this._peek.type === 5 /* TokenType.TEXT */ ||\n this._peek.type === 9 /* TokenType.ENCODED_ENTITY */) {\n token = this._advance();\n tokens.push(token);\n if (token.type === 8 /* TokenType.INTERPOLATION */) {\n // For backward compatibility we decode HTML entities that appear in interpolation\n // expressions. This is arguably a bug, but it could be a considerable breaking change to\n // fix it. It should be addressed in a larger project to refactor the entire parser/lexer\n // chain after View Engine has been removed.\n text += token.parts.join('').replace(/&([^;]+);/g, decodeEntity);\n }\n else if (token.type === 9 /* TokenType.ENCODED_ENTITY */) {\n text += token.parts[0];\n }\n else {\n text += token.parts.join('');\n }\n }\n if (text.length > 0) {\n const endSpan = token.sourceSpan;\n this._addToParent(new Text(text, new ParseSourceSpan(startSpan.start, endSpan.end, startSpan.fullStart, startSpan.details), tokens));\n }\n }\n _closeVoidElement() {\n const el = this._getContainer();\n if (el instanceof Element && this.getTagDefinition(el.name).isVoid) {\n this._containerStack.pop();\n }\n }\n _consumeStartTag(startTagToken) {\n const [prefix, name] = startTagToken.parts;\n const attrs = [];\n while (this._peek.type === 14 /* TokenType.ATTR_NAME */) {\n attrs.push(this._consumeAttr(this._advance()));\n }\n const fullName = this._getElementFullName(prefix, name, this._getClosestParentElement());\n let selfClosing = false;\n // Note: There could have been a tokenizer error\n // so that we don't get a token for the end tag...\n if (this._peek.type === 2 /* TokenType.TAG_OPEN_END_VOID */) {\n this._advance();\n selfClosing = true;\n const tagDef = this.getTagDefinition(fullName);\n if (!(tagDef.canSelfClose || getNsPrefix(fullName) !== null || tagDef.isVoid)) {\n this.errors.push(TreeError.create(fullName, startTagToken.sourceSpan, `Only void, custom and foreign elements can be self closed \"${startTagToken.parts[1]}\"`));\n }\n }\n else if (this._peek.type === 1 /* TokenType.TAG_OPEN_END */) {\n this._advance();\n selfClosing = false;\n }\n const end = this._peek.sourceSpan.fullStart;\n const span = new ParseSourceSpan(startTagToken.sourceSpan.start, end, startTagToken.sourceSpan.fullStart);\n // Create a separate `startSpan` because `span` will be modified when there is an `end` span.\n const startSpan = new ParseSourceSpan(startTagToken.sourceSpan.start, end, startTagToken.sourceSpan.fullStart);\n const el = new Element(fullName, attrs, [], span, startSpan, undefined);\n const parentEl = this._getContainer();\n this._pushContainer(el, parentEl instanceof Element &&\n this.getTagDefinition(parentEl.name).isClosedByChild(el.name));\n if (selfClosing) {\n // Elements that are self-closed have their `endSourceSpan` set to the full span, as the\n // element start tag also represents the end tag.\n this._popContainer(fullName, Element, span);\n }\n else if (startTagToken.type === 4 /* TokenType.INCOMPLETE_TAG_OPEN */) {\n // We already know the opening tag is not complete, so it is unlikely it has a corresponding\n // close tag. Let's optimistically parse it as a full element and emit an error.\n this._popContainer(fullName, Element, null);\n this.errors.push(TreeError.create(fullName, span, `Opening tag \"${fullName}\" not terminated.`));\n }\n }\n _pushContainer(node, isClosedByChild) {\n if (isClosedByChild) {\n this._containerStack.pop();\n }\n this._addToParent(node);\n this._containerStack.push(node);\n }\n _consumeEndTag(endTagToken) {\n const fullName = this._getElementFullName(endTagToken.parts[0], endTagToken.parts[1], this._getClosestParentElement());\n if (this.getTagDefinition(fullName).isVoid) {\n this.errors.push(TreeError.create(fullName, endTagToken.sourceSpan, `Void elements do not have end tags \"${endTagToken.parts[1]}\"`));\n }\n else if (!this._popContainer(fullName, Element, endTagToken.sourceSpan)) {\n const errMsg = `Unexpected closing tag \"${fullName}\". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;\n this.errors.push(TreeError.create(fullName, endTagToken.sourceSpan, errMsg));\n }\n }\n /**\n * Closes the nearest element with the tag name `fullName` in the parse tree.\n * `endSourceSpan` is the span of the closing tag, or null if the element does\n * not have a closing tag (for example, this happens when an incomplete\n * opening tag is recovered).\n */\n _popContainer(expectedName, expectedType, endSourceSpan) {\n let unexpectedCloseTagDetected = false;\n for (let stackIndex = this._containerStack.length - 1; stackIndex >= 0; stackIndex--) {\n const node = this._containerStack[stackIndex];\n if ((node.name === expectedName || expectedName === null) && node instanceof expectedType) {\n // Record the parse span with the element that is being closed. Any elements that are\n // removed from the element stack at this point are closed implicitly, so they won't get\n // an end source span (as there is no explicit closing element).\n node.endSourceSpan = endSourceSpan;\n node.sourceSpan.end = endSourceSpan !== null ? endSourceSpan.end : node.sourceSpan.end;\n this._containerStack.splice(stackIndex, this._containerStack.length - stackIndex);\n return !unexpectedCloseTagDetected;\n }\n // Blocks and most elements are not self closing.\n if (node instanceof Block ||\n (node instanceof Element && !this.getTagDefinition(node.name).closedByParent)) {\n // Note that we encountered an unexpected close tag but continue processing the element\n // stack so we can assign an `endSourceSpan` if there is a corresponding start tag for this\n // end tag in the stack.\n unexpectedCloseTagDetected = true;\n }\n }\n return false;\n }\n _consumeAttr(attrName) {\n const fullName = mergeNsAndName(attrName.parts[0], attrName.parts[1]);\n let attrEnd = attrName.sourceSpan.end;\n // Consume any quote\n if (this._peek.type === 15 /* TokenType.ATTR_QUOTE */) {\n this._advance();\n }\n // Consume the attribute value\n let value = '';\n const valueTokens = [];\n let valueStartSpan = undefined;\n let valueEnd = undefined;\n // NOTE: We need to use a new variable `nextTokenType` here to hide the actual type of\n // `_peek.type` from TS. Otherwise TS will narrow the type of `_peek.type` preventing it from\n // being able to consider `ATTR_VALUE_INTERPOLATION` as an option. This is because TS is not\n // able to see that `_advance()` will actually mutate `_peek`.\n const nextTokenType = this._peek.type;\n if (nextTokenType === 16 /* TokenType.ATTR_VALUE_TEXT */) {\n valueStartSpan = this._peek.sourceSpan;\n valueEnd = this._peek.sourceSpan.end;\n while (this._peek.type === 16 /* TokenType.ATTR_VALUE_TEXT */ ||\n this._peek.type === 17 /* TokenType.ATTR_VALUE_INTERPOLATION */ ||\n this._peek.type === 9 /* TokenType.ENCODED_ENTITY */) {\n const valueToken = this._advance();\n valueTokens.push(valueToken);\n if (valueToken.type === 17 /* TokenType.ATTR_VALUE_INTERPOLATION */) {\n // For backward compatibility we decode HTML entities that appear in interpolation\n // expressions. This is arguably a bug, but it could be a considerable breaking change to\n // fix it. It should be addressed in a larger project to refactor the entire parser/lexer\n // chain after View Engine has been removed.\n value += valueToken.parts.join('').replace(/&([^;]+);/g, decodeEntity);\n }\n else if (valueToken.type === 9 /* TokenType.ENCODED_ENTITY */) {\n value += valueToken.parts[0];\n }\n else {\n value += valueToken.parts.join('');\n }\n valueEnd = attrEnd = valueToken.sourceSpan.end;\n }\n }\n // Consume any quote\n if (this._peek.type === 15 /* TokenType.ATTR_QUOTE */) {\n const quoteToken = this._advance();\n attrEnd = quoteToken.sourceSpan.end;\n }\n const valueSpan = valueStartSpan &&\n valueEnd &&\n new ParseSourceSpan(valueStartSpan.start, valueEnd, valueStartSpan.fullStart);\n return new Attribute(fullName, value, new ParseSourceSpan(attrName.sourceSpan.start, attrEnd, attrName.sourceSpan.fullStart), attrName.sourceSpan, valueSpan, valueTokens.length > 0 ? valueTokens : undefined, undefined);\n }\n _consumeBlockOpen(token) {\n const parameters = [];\n while (this._peek.type === 27 /* TokenType.BLOCK_PARAMETER */) {\n const paramToken = this._advance();\n parameters.push(new BlockParameter(paramToken.parts[0], paramToken.sourceSpan));\n }\n if (this._peek.type === 25 /* TokenType.BLOCK_OPEN_END */) {\n this._advance();\n }\n const end = this._peek.sourceSpan.fullStart;\n const span = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);\n // Create a separate `startSpan` because `span` will be modified when there is an `end` span.\n const startSpan = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);\n const block = new Block(token.parts[0], parameters, [], span, token.sourceSpan, startSpan);\n this._pushContainer(block, false);\n }\n _consumeBlockClose(token) {\n if (!this._popContainer(null, Block, token.sourceSpan)) {\n this.errors.push(TreeError.create(null, token.sourceSpan, `Unexpected closing block. The block may have been closed earlier. ` +\n `If you meant to write the } character, you should use the \"}\" ` +\n `HTML entity instead.`));\n }\n }\n _consumeIncompleteBlock(token) {\n const parameters = [];\n while (this._peek.type === 27 /* TokenType.BLOCK_PARAMETER */) {\n const paramToken = this._advance();\n parameters.push(new BlockParameter(paramToken.parts[0], paramToken.sourceSpan));\n }\n const end = this._peek.sourceSpan.fullStart;\n const span = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);\n // Create a separate `startSpan` because `span` will be modified when there is an `end` span.\n const startSpan = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);\n const block = new Block(token.parts[0], parameters, [], span, token.sourceSpan, startSpan);\n this._pushContainer(block, false);\n // Incomplete blocks don't have children so we close them immediately and report an error.\n this._popContainer(null, Block, null);\n this.errors.push(TreeError.create(token.parts[0], span, `Incomplete block \"${token.parts[0]}\". If you meant to write the @ character, ` +\n `you should use the \"@\" HTML entity instead.`));\n }\n _consumeLet(startToken) {\n const name = startToken.parts[0];\n let valueToken;\n let endToken;\n if (this._peek.type !== 30 /* TokenType.LET_VALUE */) {\n this.errors.push(TreeError.create(startToken.parts[0], startToken.sourceSpan, `Invalid @let declaration \"${name}\". Declaration must have a value.`));\n return;\n }\n else {\n valueToken = this._advance();\n }\n // Type cast is necessary here since TS narrowed the type of `peek` above.\n if (this._peek.type !== 31 /* TokenType.LET_END */) {\n this.errors.push(TreeError.create(startToken.parts[0], startToken.sourceSpan, `Unterminated @let declaration \"${name}\". Declaration must be terminated with a semicolon.`));\n return;\n }\n else {\n endToken = this._advance();\n }\n const end = endToken.sourceSpan.fullStart;\n const span = new ParseSourceSpan(startToken.sourceSpan.start, end, startToken.sourceSpan.fullStart);\n // The start token usually captures the `@let`. Construct a name span by\n // offsetting the start by the length of any text before the name.\n const startOffset = startToken.sourceSpan.toString().lastIndexOf(name);\n const nameStart = startToken.sourceSpan.start.moveBy(startOffset);\n const nameSpan = new ParseSourceSpan(nameStart, startToken.sourceSpan.end);\n const node = new LetDeclaration(name, valueToken.parts[0], span, nameSpan, valueToken.sourceSpan);\n this._addToParent(node);\n }\n _consumeIncompleteLet(token) {\n // Incomplete `@let` declaration may end up with an empty name.\n const name = token.parts[0] ?? '';\n const nameString = name ? ` \"${name}\"` : '';\n // If there's at least a name, we can salvage an AST node that can be used for completions.\n if (name.length > 0) {\n const startOffset = token.sourceSpan.toString().lastIndexOf(name);\n const nameStart = token.sourceSpan.start.moveBy(startOffset);\n const nameSpan = new ParseSourceSpan(nameStart, token.sourceSpan.end);\n const valueSpan = new ParseSourceSpan(token.sourceSpan.start, token.sourceSpan.start.moveBy(0));\n const node = new LetDeclaration(name, '', token.sourceSpan, nameSpan, valueSpan);\n this._addToParent(node);\n }\n this.errors.push(TreeError.create(token.parts[0], token.sourceSpan, `Incomplete @let declaration${nameString}. ` +\n `@let declarations must be written as \\`@let <name> = <value>;\\``));\n }\n _getContainer() {\n return this._containerStack.length > 0\n ? this._containerStack[this._containerStack.length - 1]\n : null;\n }\n _getClosestParentElement() {\n for (let i = this._containerStack.length - 1; i > -1; i--) {\n if (this._containerStack[i] instanceof Element) {\n return this._containerStack[i];\n }\n }\n return null;\n }\n _addToParent(node) {\n const parent = this._getContainer();\n if (parent === null) {\n this.rootNodes.push(node);\n }\n else {\n parent.children.push(node);\n }\n }\n _getElementFullName(prefix, localName, parentElement) {\n if (prefix === '') {\n prefix = this.getTagDefinition(localName).implicitNamespacePrefix || '';\n if (prefix === '' && parentElement != null) {\n const parentTagName = splitNsName(parentElement.name)[1];\n const parentTagDefinition = this.getTagDefinition(parentTagName);\n if (!parentTagDefinition.preventNamespaceInheritance) {\n prefix = getNsPrefix(parentElement.name);\n }\n }\n }\n return mergeNsAndName(prefix, localName);\n }\n}\nfunction lastOnStack(stack, element) {\n return stack.length > 0 && stack[stack.length - 1] === element;\n}\n/**\n * Decode the `entity` string, which we believe is the contents of an HTML entity.\n *\n * If the string is not actually a valid/known entity then just return the original `match` string.\n */\nfunction decodeEntity(match, entity) {\n if (NAMED_ENTITIES[entity] !== undefined) {\n return NAMED_ENTITIES[entity] || match;\n }\n if (/^#x[a-f0-9]+$/i.test(entity)) {\n return String.fromCodePoint(parseInt(entity.slice(2), 16));\n }\n if (/^#\\d+$/.test(entity)) {\n return String.fromCodePoint(parseInt(entity.slice(1), 10));\n }\n return match;\n}\n\nconst PRESERVE_WS_ATTR_NAME = 'ngPreserveWhitespaces';\nconst SKIP_WS_TRIM_TAGS = new Set(['pre', 'template', 'textarea', 'script', 'style']);\n// Equivalent to \\s with \\u00a0 (non-breaking space) excluded.\n// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\nconst WS_CHARS = ' \\f\\n\\r\\t\\v\\u1680\\u180e\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff';\nconst NO_WS_REGEXP = new RegExp(`[^${WS_CHARS}]`);\nconst WS_REPLACE_REGEXP = new RegExp(`[${WS_CHARS}]{2,}`, 'g');\nfunction hasPreserveWhitespacesAttr(attrs) {\n return attrs.some((attr) => attr.name === PRESERVE_WS_ATTR_NAME);\n}\n/**\n * &ngsp; is a placeholder for non-removable space\n * &ngsp; is converted to the 0xE500 PUA (Private Use Areas) unicode character\n * and later on replaced by a space.\n */\nfunction replaceNgsp(value) {\n // lexer is replacing the &ngsp; pseudo-entity with NGSP_UNICODE\n return value.replace(new RegExp(NGSP_UNICODE, 'g'), ' ');\n}\n/**\n * This visitor can walk HTML parse tree and remove / trim text nodes using the following rules:\n * - consider spaces, tabs and new lines as whitespace characters;\n * - drop text nodes consisting of whitespace characters only;\n * - for all other text nodes replace consecutive whitespace characters with one space;\n * - convert &ngsp; pseudo-entity to a single space;\n *\n * Removal and trimming of whitespaces have positive performance impact (less code to generate\n * while compiling templates, faster view creation). At the same time it can be \"destructive\"\n * in some cases (whitespaces can influence layout). Because of the potential of breaking layout\n * this visitor is not activated by default in Angular 5 and people need to explicitly opt-in for\n * whitespace removal. The default option for whitespace removal will be revisited in Angular 6\n * and might be changed to \"on\" by default.\n *\n * If `originalNodeMap` is provided, the transformed nodes will be mapped back to their original\n * inputs. Any output nodes not in the map were not transformed. This supports correlating and\n * porting information between the trimmed nodes and original nodes (such as `i18n` properties)\n * such that trimming whitespace does not does not drop required information from the node.\n */\nclass WhitespaceVisitor {\n preserveSignificantWhitespace;\n originalNodeMap;\n requireContext;\n // How many ICU expansions which are currently being visited. ICUs can be nested, so this\n // tracks the current depth of nesting. If this depth is greater than 0, then this visitor is\n // currently processing content inside an ICU expansion.\n icuExpansionDepth = 0;\n constructor(preserveSignificantWhitespace, originalNodeMap, requireContext = true) {\n this.preserveSignificantWhitespace = preserveSignificantWhitespace;\n this.originalNodeMap = originalNodeMap;\n this.requireContext = requireContext;\n }\n visitElement(element, context) {\n if (SKIP_WS_TRIM_TAGS.has(element.name) || hasPreserveWhitespacesAttr(element.attrs)) {\n // don't descent into elements where we need to preserve whitespaces\n // but still visit all attributes to eliminate one used as a market to preserve WS\n const newElement = new Element(element.name, visitAllWithSiblings(this, element.attrs), element.children, element.sourceSpan, element.startSourceSpan, element.endSourceSpan, element.i18n);\n this.originalNodeMap?.set(newElement, element);\n return newElement;\n }\n const newElement = new Element(element.name, element.attrs, visitAllWithSiblings(this, element.children), element.sourceSpan, element.startSourceSpan, element.endSourceSpan, element.i18n);\n this.originalNodeMap?.set(newElement, element);\n return newElement;\n }\n visitAttribute(attribute, context) {\n return attribute.name !== PRESERVE_WS_ATTR_NAME ? attribute : null;\n }\n visitText(text, context) {\n const isNotBlank = text.value.match(NO_WS_REGEXP);\n const hasExpansionSibling = context && (context.prev instanceof Expansion || context.next instanceof Expansion);\n // Do not trim whitespace within ICU expansions when preserving significant whitespace.\n // Historically, ICU whitespace was never trimmed and this is really a bug. However fixing it\n // would change message IDs which we can't easily do. Instead we only trim ICU whitespace within\n // ICU expansions when not preserving significant whitespace, which is the new behavior where it\n // most matters.\n const inIcuExpansion = this.icuExpansionDepth > 0;\n if (inIcuExpansion && this.preserveSignificantWhitespace)\n return text;\n if (isNotBlank || hasExpansionSibling) {\n // Process the whitespace in the tokens of this Text node\n const tokens = text.tokens.map((token) => token.type === 5 /* TokenType.TEXT */ ? createWhitespaceProcessedTextToken(token) : token);\n // Fully trim message when significant whitespace is not preserved.\n if (!this.preserveSignificantWhitespace && tokens.length > 0) {\n // The first token should only call `.trimStart()` and the last token\n // should only call `.trimEnd()`, but there might be only one token which\n // needs to call both.\n const firstToken = tokens[0];\n tokens.splice(0, 1, trimLeadingWhitespace(firstToken, context));\n const lastToken = tokens[tokens.length - 1]; // Could be the same as the first token.\n tokens.splice(tokens.length - 1, 1, trimTrailingWhitespace(lastToken, context));\n }\n // Process the whitespace of the value of this Text node. Also trim the leading/trailing\n // whitespace when we don't need to preserve significant whitespace.\n const processed = processWhitespace(text.value);\n const value = this.preserveSignificantWhitespace\n ? processed\n : trimLeadingAndTrailingWhitespace(processed, context);\n const result = new Text(value, text.sourceSpan, tokens, text.i18n);\n this.originalNodeMap?.set(result, text);\n return result;\n }\n return null;\n }\n visitComment(comment, context) {\n return comment;\n }\n visitExpansion(expansion, context) {\n this.icuExpansionDepth++;\n let newExpansion;\n try {\n newExpansion = new Expansion(expansion.switchValue, expansion.type, visitAllWithSiblings(this, expansion.cases), expansion.sourceSpan, expansion.switchValueSourceSpan, expansion.i18n);\n }\n finally {\n this.icuExpansionDepth--;\n }\n this.originalNodeMap?.set(newExpansion, expansion);\n return newExpansion;\n }\n visitExpansionCase(expansionCase, context) {\n const newExpansionCase = new ExpansionCase(expansionCase.value, visitAllWithSiblings(this, expansionCase.expression), expansionCase.sourceSpan, expansionCase.valueSourceSpan, expansionCase.expSourceSpan);\n this.originalNodeMap?.set(newExpansionCase, expansionCase);\n return newExpansionCase;\n }\n visitBlock(block, context) {\n const newBlock = new Block(block.name, block.parameters, visitAllWithSiblings(this, block.children), block.sourceSpan, block.nameSpan, block.startSourceSpan, block.endSourceSpan);\n this.originalNodeMap?.set(newBlock, block);\n return newBlock;\n }\n visitBlockParameter(parameter, context) {\n return parameter;\n }\n visitLetDeclaration(decl, context) {\n return decl;\n }\n visit(_node, context) {\n // `visitAllWithSiblings` provides context necessary for ICU messages to be handled correctly.\n // Prefer that over calling `html.visitAll` directly on this visitor.\n if (this.requireContext && !context) {\n throw new Error(`WhitespaceVisitor requires context. Visit via \\`visitAllWithSiblings\\` to get this context.`);\n }\n return false;\n }\n}\nfunction trimLeadingWhitespace(token, context) {\n if (token.type !== 5 /* TokenType.TEXT */)\n return token;\n const isFirstTokenInTag = !context?.prev;\n if (!isFirstTokenInTag)\n return token;\n return transformTextToken(token, (text) => text.trimStart());\n}\nfunction trimTrailingWhitespace(token, context) {\n if (token.type !== 5 /* TokenType.TEXT */)\n return token;\n const isLastTokenInTag = !context?.next;\n if (!isLastTokenInTag)\n return token;\n return transformTextToken(token, (text) => text.trimEnd());\n}\nfunction trimLeadingAndTrailingWhitespace(text, context) {\n const isFirstTokenInTag = !context?.prev;\n const isLastTokenInTag = !context?.next;\n const maybeTrimmedStart = isFirstTokenInTag ? text.trimStart() : text;\n const maybeTrimmed = isLastTokenInTag ? maybeTrimmedStart.trimEnd() : maybeTrimmedStart;\n return maybeTrimmed;\n}\nfunction createWhitespaceProcessedTextToken({ type, parts, sourceSpan }) {\n return { type, parts: [processWhitespace(parts[0])], sourceSpan };\n}\nfunction transformTextToken({ type, parts, sourceSpan }, transform) {\n // `TextToken` only ever has one part as defined in its type, so we just transform the first element.\n return { type, parts: [transform(parts[0])], sourceSpan };\n}\nfunction processWhitespace(text) {\n return replaceNgsp(text).replace(WS_REPLACE_REGEXP, ' ');\n}\nfunction removeWhitespaces(htmlAstWithErrors, preserveSignificantWhitespace) {\n return new ParseTreeResult(visitAllWithSiblings(new WhitespaceVisitor(preserveSignificantWhitespace), htmlAstWithErrors.rootNodes), htmlAstWithErrors.errors);\n}\nfunction visitAllWithSiblings(visitor, nodes) {\n const result = [];\n nodes.forEach((ast, i) => {\n const context = { prev: nodes[i - 1], next: nodes[i + 1] };\n const astResult = ast.visit(visitor, context);\n if (astResult) {\n result.push(astResult);\n }\n });\n return result;\n}\n\nvar TokenType;\n(function (TokenType) {\n TokenType[TokenType[\"Character\"] = 0] = \"Character\";\n TokenType[TokenType[\"Identifier\"] = 1] = \"Identifier\";\n TokenType[TokenType[\"PrivateIdentifier\"] = 2] = \"PrivateIdentifier\";\n TokenType[TokenType[\"Keyword\"] = 3] = \"Keyword\";\n TokenType[TokenType[\"String\"] = 4] = \"String\";\n TokenType[TokenType[\"Operator\"] = 5] = \"Operator\";\n TokenType[TokenType[\"Number\"] = 6] = \"Number\";\n TokenType[TokenType[\"Error\"] = 7] = \"Error\";\n})(TokenType || (TokenType = {}));\nconst KEYWORDS = [\n 'var',\n 'let',\n 'as',\n 'null',\n 'undefined',\n 'true',\n 'false',\n 'if',\n 'else',\n 'this',\n 'typeof',\n];\nclass Lexer {\n tokenize(text) {\n const scanner = new _Scanner(text);\n const tokens = [];\n let token = scanner.scanToken();\n while (token != null) {\n tokens.push(token);\n token = scanner.scanToken();\n }\n return tokens;\n }\n}\nclass Token {\n index;\n end;\n type;\n numValue;\n strValue;\n constructor(index, end, type, numValue, strValue) {\n this.index = index;\n this.end = end;\n this.type = type;\n this.numValue = numValue;\n this.strValue = strValue;\n }\n isCharacter(code) {\n return this.type == TokenType.Character && this.numValue == code;\n }\n isNumber() {\n return this.type == TokenType.Number;\n }\n isString() {\n return this.type == TokenType.String;\n }\n isOperator(operator) {\n return this.type == TokenType.Operator && this.strValue == operator;\n }\n isIdentifier() {\n return this.type == TokenType.Identifier;\n }\n isPrivateIdentifier() {\n return this.type == TokenType.PrivateIdentifier;\n }\n isKeyword() {\n return this.type == TokenType.Keyword;\n }\n isKeywordLet() {\n return this.type == TokenType.Keyword && this.strValue == 'let';\n }\n isKeywordAs() {\n return this.type == TokenType.Keyword && this.strValue == 'as';\n }\n isKeywordNull() {\n return this.type == TokenType.Keyword && this.strValue == 'null';\n }\n isKeywordUndefined() {\n return this.type == TokenType.Keyword && this.strValue == 'undefined';\n }\n isKeywordTrue() {\n return this.type == TokenType.Keyword && this.strValue == 'true';\n }\n isKeywordFalse() {\n return this.type == TokenType.Keyword && this.strValue == 'false';\n }\n isKeywordThis() {\n return this.type == TokenType.Keyword && this.strValue == 'this';\n }\n isKeywordTypeof() {\n return this.type === TokenType.Keyword && this.strValue === 'typeof';\n }\n isError() {\n return this.type == TokenType.Error;\n }\n toNumber() {\n return this.type == TokenType.Number ? this.numValue : -1;\n }\n toString() {\n switch (this.type) {\n case TokenType.Character:\n case TokenType.Identifier:\n case TokenType.Keyword:\n case TokenType.Operator:\n case TokenType.PrivateIdentifier:\n case TokenType.String:\n case TokenType.Error:\n return this.strValue;\n case TokenType.Number:\n return this.numValue.toString();\n default:\n return null;\n }\n }\n}\nfunction newCharacterToken(index, end, code) {\n return new Token(index, end, TokenType.Character, code, String.fromCharCode(code));\n}\nfunction newIdentifierToken(index, end, text) {\n return new Token(index, end, TokenType.Identifier, 0, text);\n}\nfunction newPrivateIdentifierToken(index, end, text) {\n return new Token(index, end, TokenType.PrivateIdentifier, 0, text);\n}\nfunction newKeywordToken(index, end, text) {\n return new Token(index, end, TokenType.Keyword, 0, text);\n}\nfunction newOperatorToken(index, end, text) {\n return new Token(index, end, TokenType.Operator, 0, text);\n}\nfunction newStringToken(index, end, text) {\n return new Token(index, end, TokenType.String, 0, text);\n}\nfunction newNumberToken(index, end, n) {\n return new Token(index, end, TokenType.Number, n, '');\n}\nfunction newErrorToken(index, end, message) {\n return new Token(index, end, TokenType.Error, 0, message);\n}\nconst EOF = new Token(-1, -1, TokenType.Character, 0, '');\nclass _Scanner {\n input;\n length;\n peek = 0;\n index = -1;\n constructor(input) {\n this.input = input;\n this.length = input.length;\n this.advance();\n }\n advance() {\n this.peek = ++this.index >= this.length ? $EOF : this.input.charCodeAt(this.index);\n }\n scanToken() {\n const input = this.input, length = this.length;\n let peek = this.peek, index = this.index;\n // Skip whitespace.\n while (peek <= $SPACE) {\n if (++index >= length) {\n peek = $EOF;\n break;\n }\n else {\n peek = input.charCodeAt(index);\n }\n }\n this.peek = peek;\n this.index = index;\n if (index >= length) {\n return null;\n }\n // Handle identifiers and numbers.\n if (isIdentifierStart(peek))\n return this.scanIdentifier();\n if (isDigit(peek))\n return this.scanNumber(index);\n const start = index;\n switch (peek) {\n case $PERIOD:\n this.advance();\n return isDigit(this.peek)\n ? this.scanNumber(start)\n : newCharacterToken(start, this.index, $PERIOD);\n case $LPAREN:\n case $RPAREN:\n case $LBRACE:\n case $RBRACE:\n case $LBRACKET:\n case $RBRACKET:\n case $COMMA:\n case $COLON:\n case $SEMICOLON:\n return this.scanCharacter(start, peek);\n case $SQ:\n case $DQ:\n return this.scanString();\n case $HASH:\n return this.scanPrivateIdentifier();\n case $PLUS:\n case $MINUS:\n case $STAR:\n case $SLASH:\n case $PERCENT:\n case $CARET:\n return this.scanOperator(start, String.fromCharCode(peek));\n case $QUESTION:\n return this.scanQuestion(start);\n case $LT:\n case $GT:\n return this.scanComplexOperator(start, String.fromCharCode(peek), $EQ, '=');\n case $BANG:\n case $EQ:\n return this.scanComplexOperator(start, String.fromCharCode(peek), $EQ, '=', $EQ, '=');\n case $AMPERSAND:\n return this.scanComplexOperator(start, '&', $AMPERSAND, '&');\n case $BAR:\n return this.scanComplexOperator(start, '|', $BAR, '|');\n case $NBSP:\n while (isWhitespace(this.peek))\n this.advance();\n return this.scanToken();\n }\n this.advance();\n return this.error(`Unexpected character [${String.fromCharCode(peek)}]`, 0);\n }\n scanCharacter(start, code) {\n this.advance();\n return newCharacterToken(start, this.index, code);\n }\n scanOperator(start, str) {\n this.advance();\n return newOperatorToken(start, this.index, str);\n }\n /**\n * Tokenize a 2/3 char long operator\n *\n * @param start start index in the expression\n * @param one first symbol (always part of the operator)\n * @param twoCode code point for the second symbol\n * @param two second symbol (part of the operator when the second code point matches)\n * @param threeCode code point for the third symbol\n * @param three third symbol (part of the operator when provided and matches source expression)\n */\n scanComplexOperator(start, one, twoCode, two, threeCode, three) {\n this.advance();\n let str = one;\n if (this.peek == twoCode) {\n this.advance();\n str += two;\n }\n if (threeCode != null && this.peek == threeCode) {\n this.advance();\n str += three;\n }\n return newOperatorToken(start, this.index, str);\n }\n scanIdentifier() {\n const start = this.index;\n this.advance();\n while (isIdentifierPart(this.peek))\n this.advance();\n const str = this.input.substring(start, this.index);\n return KEYWORDS.indexOf(str) > -1\n ? newKeywordToken(start, this.index, str)\n : newIdentifierToken(start, this.index, str);\n }\n /** Scans an ECMAScript private identifier. */\n scanPrivateIdentifier() {\n const start = this.index;\n this.advance();\n if (!isIdentifierStart(this.peek)) {\n return this.error('Invalid character [#]', -1);\n }\n while (isIdentifierPart(this.peek))\n this.advance();\n const identifierName = this.input.substring(start, this.index);\n return newPrivateIdentifierToken(start, this.index, identifierName);\n }\n scanNumber(start) {\n let simple = this.index === start;\n let hasSeparators = false;\n this.advance(); // Skip initial digit.\n while (true) {\n if (isDigit(this.peek)) {\n // Do nothing.\n }\n else if (this.peek === $_) {\n // Separators are only valid when they're surrounded by digits. E.g. `1_0_1` is\n // valid while `_101` and `101_` are not. The separator can't be next to the decimal\n // point or another separator either. Note that it's unlikely that we'll hit a case where\n // the underscore is at the start, because that's a valid identifier and it will be picked\n // up earlier in the parsing. We validate for it anyway just in case.\n if (!isDigit(this.input.charCodeAt(this.index - 1)) ||\n !isDigit(this.input.charCodeAt(this.index + 1))) {\n return this.error('Invalid numeric separator', 0);\n }\n hasSeparators = true;\n }\n else if (this.peek === $PERIOD) {\n simple = false;\n }\n else if (isExponentStart(this.peek)) {\n this.advance();\n if (isExponentSign(this.peek))\n this.advance();\n if (!isDigit(this.peek))\n return this.error('Invalid exponent', -1);\n simple = false;\n }\n else {\n break;\n }\n this.advance();\n }\n let str = this.input.substring(start, this.index);\n if (hasSeparators) {\n str = str.replace(/_/g, '');\n }\n const value = simple ? parseIntAutoRadix(str) : parseFloat(str);\n return newNumberToken(start, this.index, value);\n }\n scanString() {\n const start = this.index;\n const quote = this.peek;\n this.advance(); // Skip initial quote.\n let buffer = '';\n let marker = this.index;\n const input = this.input;\n while (this.peek != quote) {\n if (this.peek == $BACKSLASH) {\n buffer += input.substring(marker, this.index);\n let unescapedCode;\n this.advance(); // mutates this.peek\n // @ts-expect-error see microsoft/TypeScript#9998\n if (this.peek == $u) {\n // 4 character hex code for unicode character.\n const hex = input.substring(this.index + 1, this.index + 5);\n if (/^[0-9a-f]+$/i.test(hex)) {\n unescapedCode = parseInt(hex, 16);\n }\n else {\n return this.error(`Invalid unicode escape [\\\\u${hex}]`, 0);\n }\n for (let i = 0; i < 5; i++) {\n this.advance();\n }\n }\n else {\n unescapedCode = unescape(this.peek);\n this.advance();\n }\n buffer += String.fromCharCode(unescapedCode);\n marker = this.index;\n }\n else if (this.peek == $EOF) {\n return this.error('Unterminated quote', 0);\n }\n else {\n this.advance();\n }\n }\n const last = input.substring(marker, this.index);\n this.advance(); // Skip terminating quote.\n return newStringToken(start, this.index, buffer + last);\n }\n scanQuestion(start) {\n this.advance();\n let str = '?';\n // Either `a ?? b` or 'a?.b'.\n if (this.peek === $QUESTION || this.peek === $PERIOD) {\n str += this.peek === $PERIOD ? '.' : '?';\n this.advance();\n }\n return newOperatorToken(start, this.index, str);\n }\n error(message, offset) {\n const position = this.index + offset;\n return newErrorToken(position, this.index, `Lexer Error: ${message} at column ${position} in expression [${this.input}]`);\n }\n}\nfunction isIdentifierStart(code) {\n return (($a <= code && code <= $z) ||\n ($A <= code && code <= $Z) ||\n code == $_ ||\n code == $$);\n}\nfunction isIdentifierPart(code) {\n return isAsciiLetter(code) || isDigit(code) || code == $_ || code == $$;\n}\nfunction isExponentStart(code) {\n return code == $e || code == $E;\n}\nfunction isExponentSign(code) {\n return code == $MINUS || code == $PLUS;\n}\nfunction unescape(code) {\n switch (code) {\n case $n:\n return $LF;\n case $f:\n return $FF;\n case $r:\n return $CR;\n case $t:\n return $TAB;\n case $v:\n return $VTAB;\n default:\n return code;\n }\n}\nfunction parseIntAutoRadix(text) {\n const result = parseInt(text);\n if (isNaN(result)) {\n throw new Error('Invalid integer literal when parsing ' + text);\n }\n return result;\n}\n\nclass SplitInterpolation {\n strings;\n expressions;\n offsets;\n constructor(strings, expressions, offsets) {\n this.strings = strings;\n this.expressions = expressions;\n this.offsets = offsets;\n }\n}\nclass TemplateBindingParseResult {\n templateBindings;\n warnings;\n errors;\n constructor(templateBindings, warnings, errors) {\n this.templateBindings = templateBindings;\n this.warnings = warnings;\n this.errors = errors;\n }\n}\nclass Parser {\n _lexer;\n errors = [];\n constructor(_lexer) {\n this._lexer = _lexer;\n }\n parseAction(input, location, absoluteOffset, interpolationConfig = DEFAULT_INTERPOLATION_CONFIG) {\n this._checkNoInterpolation(input, location, interpolationConfig);\n const sourceToLex = this._stripComments(input);\n const tokens = this._lexer.tokenize(sourceToLex);\n const ast = new _ParseAST(input, location, absoluteOffset, tokens, 1 /* ParseFlags.Action */, this.errors, 0).parseChain();\n return new ASTWithSource(ast, input, location, absoluteOffset, this.errors);\n }\n parseBinding(input, location, absoluteOffset, interpolationConfig = DEFAULT_INTERPOLATION_CONFIG) {\n const ast = this._parseBindingAst(input, location, absoluteOffset, interpolationConfig);\n return new ASTWithSource(ast, input, location, absoluteOffset, this.errors);\n }\n checkSimpleExpression(ast) {\n const checker = new SimpleExpressionChecker();\n ast.visit(checker);\n return checker.errors;\n }\n // Host bindings parsed here\n parseSimpleBinding(input, location, absoluteOffset, interpolationConfig = DEFAULT_INTERPOLATION_CONFIG) {\n const ast = this._parseBindingAst(input, location, absoluteOffset, interpolationConfig);\n const errors = this.checkSimpleExpression(ast);\n if (errors.length > 0) {\n this._reportError(`Host binding expression cannot contain ${errors.join(' ')}`, input, location);\n }\n return new ASTWithSource(ast, input, location, absoluteOffset, this.errors);\n }\n _reportError(message, input, errLocation, ctxLocation) {\n this.errors.push(new ParserError(message, input, errLocation, ctxLocation));\n }\n _parseBindingAst(input, location, absoluteOffset, interpolationConfig) {\n this._checkNoInterpolation(input, location, interpolationConfig);\n const sourceToLex = this._stripComments(input);\n const tokens = this._lexer.tokenize(sourceToLex);\n return new _ParseAST(input, location, absoluteOffset, tokens, 0 /* ParseFlags.None */, this.errors, 0).parseChain();\n }\n /**\n * Parse microsyntax template expression and return a list of bindings or\n * parsing errors in case the given expression is invalid.\n *\n * For example,\n * ```html\n * <div *ngFor=\"let item of items\">\n * ^ ^ absoluteValueOffset for `templateValue`\n * absoluteKeyOffset for `templateKey`\n * ```\n * contains three bindings:\n * 1. ngFor -> null\n * 2. item -> NgForOfContext.$implicit\n * 3. ngForOf -> items\n *\n * This is apparent from the de-sugared template:\n * ```html\n * <ng-template ngFor let-item [ngForOf]=\"items\">\n * ```\n *\n * @param templateKey name of directive, without the * prefix. For example: ngIf, ngFor\n * @param templateValue RHS of the microsyntax attribute\n * @param templateUrl template filename if it's external, component filename if it's inline\n * @param absoluteKeyOffset start of the `templateKey`\n * @param absoluteValueOffset start of the `templateValue`\n */\n parseTemplateBindings(templateKey, templateValue, templateUrl, absoluteKeyOffset, absoluteValueOffset) {\n const tokens = this._lexer.tokenize(templateValue);\n const parser = new _ParseAST(templateValue, templateUrl, absoluteValueOffset, tokens, 0 /* ParseFlags.None */, this.errors, 0 /* relative offset */);\n return parser.parseTemplateBindings({\n source: templateKey,\n span: new AbsoluteSourceSpan(absoluteKeyOffset, absoluteKeyOffset + templateKey.length),\n });\n }\n parseInterpolation(input, location, absoluteOffset, interpolatedTokens, interpolationConfig = DEFAULT_INTERPOLATION_CONFIG) {\n const { strings, expressions, offsets } = this.splitInterpolation(input, location, interpolatedTokens, interpolationConfig);\n if (expressions.length === 0)\n return null;\n const expressionNodes = [];\n for (let i = 0; i < expressions.length; ++i) {\n const expressionText = expressions[i].text;\n const sourceToLex = this._stripComments(expressionText);\n const tokens = this._lexer.tokenize(sourceToLex);\n const ast = new _ParseAST(input, location, absoluteOffset, tokens, 0 /* ParseFlags.None */, this.errors, offsets[i]).parseChain();\n expressionNodes.push(ast);\n }\n return this.createInterpolationAst(strings.map((s) => s.text), expressionNodes, input, location, absoluteOffset);\n }\n /**\n * Similar to `parseInterpolation`, but treats the provided string as a single expression\n * element that would normally appear within the interpolation prefix and suffix (`{{` and `}}`).\n * This is used for parsing the switch expression in ICUs.\n */\n parseInterpolationExpression(expression, location, absoluteOffset) {\n const sourceToLex = this._stripComments(expression);\n const tokens = this._lexer.tokenize(sourceToLex);\n const ast = new _ParseAST(expression, location, absoluteOffset, tokens, 0 /* ParseFlags.None */, this.errors, 0).parseChain();\n const strings = ['', '']; // The prefix and suffix strings are both empty\n return this.createInterpolationAst(strings, [ast], expression, location, absoluteOffset);\n }\n createInterpolationAst(strings, expressions, input, location, absoluteOffset) {\n const span = new ParseSpan(0, input.length);\n const interpolation = new Interpolation$1(span, span.toAbsolute(absoluteOffset), strings, expressions);\n return new ASTWithSource(interpolation, input, location, absoluteOffset, this.errors);\n }\n /**\n * Splits a string of text into \"raw\" text segments and expressions present in interpolations in\n * the string.\n * Returns `null` if there are no interpolations, otherwise a\n * `SplitInterpolation` with splits that look like\n * <raw text> <expression> <raw text> ... <raw text> <expression> <raw text>\n */\n splitInterpolation(input, location, interpolatedTokens, interpolationConfig = DEFAULT_INTERPOLATION_CONFIG) {\n const strings = [];\n const expressions = [];\n const offsets = [];\n const inputToTemplateIndexMap = interpolatedTokens\n ? getIndexMapForOriginalTemplate(interpolatedTokens)\n : null;\n let i = 0;\n let atInterpolation = false;\n let extendLastString = false;\n let { start: interpStart, end: interpEnd } = interpolationConfig;\n while (i < input.length) {\n if (!atInterpolation) {\n // parse until starting {{\n const start = i;\n i = input.indexOf(interpStart, i);\n if (i === -1) {\n i = input.length;\n }\n const text = input.substring(start, i);\n strings.push({ text, start, end: i });\n atInterpolation = true;\n }\n else {\n // parse from starting {{ to ending }} while ignoring content inside quotes.\n const fullStart = i;\n const exprStart = fullStart + interpStart.length;\n const exprEnd = this._getInterpolationEndIndex(input, interpEnd, exprStart);\n if (exprEnd === -1) {\n // Could not find the end of the interpolation; do not parse an expression.\n // Instead we should extend the content on the last raw string.\n atInterpolation = false;\n extendLastString = true;\n break;\n }\n const fullEnd = exprEnd + interpEnd.length;\n const text = input.substring(exprStart, exprEnd);\n if (text.trim().length === 0) {\n this._reportError('Blank expressions are not allowed in interpolated strings', input, `at column ${i} in`, location);\n }\n expressions.push({ text, start: fullStart, end: fullEnd });\n const startInOriginalTemplate = inputToTemplateIndexMap?.get(fullStart) ?? fullStart;\n const offset = startInOriginalTemplate + interpStart.length;\n offsets.push(offset);\n i = fullEnd;\n atInterpolation = false;\n }\n }\n if (!atInterpolation) {\n // If we are now at a text section, add the remaining content as a raw string.\n if (extendLastString) {\n const piece = strings[strings.length - 1];\n piece.text += input.substring(i);\n piece.end = input.length;\n }\n else {\n strings.push({ text: input.substring(i), start: i, end: input.length });\n }\n }\n return new SplitInterpolation(strings, expressions, offsets);\n }\n wrapLiteralPrimitive(input, location, absoluteOffset) {\n const span = new ParseSpan(0, input == null ? 0 : input.length);\n return new ASTWithSource(new LiteralPrimitive(span, span.toAbsolute(absoluteOffset), input), input, location, absoluteOffset, this.errors);\n }\n _stripComments(input) {\n const i = this._commentStart(input);\n return i != null ? input.substring(0, i) : input;\n }\n _commentStart(input) {\n let outerQuote = null;\n for (let i = 0; i < input.length - 1; i++) {\n const char = input.charCodeAt(i);\n const nextChar = input.charCodeAt(i + 1);\n if (char === $SLASH && nextChar == $SLASH && outerQuote == null)\n return i;\n if (outerQuote === char) {\n outerQuote = null;\n }\n else if (outerQuote == null && isQuote(char)) {\n outerQuote = char;\n }\n }\n return null;\n }\n _checkNoInterpolation(input, location, { start, end }) {\n let startIndex = -1;\n let endIndex = -1;\n for (const charIndex of this._forEachUnquotedChar(input, 0)) {\n if (startIndex === -1) {\n if (input.startsWith(start)) {\n startIndex = charIndex;\n }\n }\n else {\n endIndex = this._getInterpolationEndIndex(input, end, charIndex);\n if (endIndex > -1) {\n break;\n }\n }\n }\n if (startIndex > -1 && endIndex > -1) {\n this._reportError(`Got interpolation (${start}${end}) where expression was expected`, input, `at column ${startIndex} in`, location);\n }\n }\n /**\n * Finds the index of the end of an interpolation expression\n * while ignoring comments and quoted content.\n */\n _getInterpolationEndIndex(input, expressionEnd, start) {\n for (const charIndex of this._forEachUnquotedChar(input, start)) {\n if (input.startsWith(expressionEnd, charIndex)) {\n return charIndex;\n }\n // Nothing else in the expression matters after we've\n // hit a comment so look directly for the end token.\n if (input.startsWith('//', charIndex)) {\n return input.indexOf(expressionEnd, charIndex);\n }\n }\n return -1;\n }\n /**\n * Generator used to iterate over the character indexes of a string that are outside of quotes.\n * @param input String to loop through.\n * @param start Index within the string at which to start.\n */\n *_forEachUnquotedChar(input, start) {\n let currentQuote = null;\n let escapeCount = 0;\n for (let i = start; i < input.length; i++) {\n const char = input[i];\n // Skip the characters inside quotes. Note that we only care about the outer-most\n // quotes matching up and we need to account for escape characters.\n if (isQuote(input.charCodeAt(i)) &&\n (currentQuote === null || currentQuote === char) &&\n escapeCount % 2 === 0) {\n currentQuote = currentQuote === null ? char : null;\n }\n else if (currentQuote === null) {\n yield i;\n }\n escapeCount = char === '\\\\' ? escapeCount + 1 : 0;\n }\n }\n}\n/** Describes a stateful context an expression parser is in. */\nvar ParseContextFlags;\n(function (ParseContextFlags) {\n ParseContextFlags[ParseContextFlags[\"None\"] = 0] = \"None\";\n /**\n * A Writable context is one in which a value may be written to an lvalue.\n * For example, after we see a property access, we may expect a write to the\n * property via the \"=\" operator.\n * prop\n * ^ possible \"=\" after\n */\n ParseContextFlags[ParseContextFlags[\"Writable\"] = 1] = \"Writable\";\n})(ParseContextFlags || (ParseContextFlags = {}));\nclass _ParseAST {\n input;\n location;\n absoluteOffset;\n tokens;\n parseFlags;\n errors;\n offset;\n rparensExpected = 0;\n rbracketsExpected = 0;\n rbracesExpected = 0;\n context = ParseContextFlags.None;\n // Cache of expression start and input indeces to the absolute source span they map to, used to\n // prevent creating superfluous source spans in `sourceSpan`.\n // A serial of the expression start and input index is used for mapping because both are stateful\n // and may change for subsequent expressions visited by the parser.\n sourceSpanCache = new Map();\n index = 0;\n constructor(input, location, absoluteOffset, tokens, parseFlags, errors, offset) {\n this.input = input;\n this.location = location;\n this.absoluteOffset = absoluteOffset;\n this.tokens = tokens;\n this.parseFlags = parseFlags;\n this.errors = errors;\n this.offset = offset;\n }\n peek(offset) {\n const i = this.index + offset;\n return i < this.tokens.length ? this.tokens[i] : EOF;\n }\n get next() {\n return this.peek(0);\n }\n /** Whether all the parser input has been processed. */\n get atEOF() {\n return this.index >= this.tokens.length;\n }\n /**\n * Index of the next token to be processed, or the end of the last token if all have been\n * processed.\n */\n get inputIndex() {\n return this.atEOF ? this.currentEndIndex : this.next.index + this.offset;\n }\n /**\n * End index of the last processed token, or the start of the first token if none have been\n * processed.\n */\n get currentEndIndex() {\n if (this.index > 0) {\n const curToken = this.peek(-1);\n return curToken.end + this.offset;\n }\n // No tokens have been processed yet; return the next token's start or the length of the input\n // if there is no token.\n if (this.tokens.length === 0) {\n return this.input.length + this.offset;\n }\n return this.next.index + this.offset;\n }\n /**\n * Returns the absolute offset of the start of the current token.\n */\n get currentAbsoluteOffset() {\n return this.absoluteOffset + this.inputIndex;\n }\n /**\n * Retrieve a `ParseSpan` from `start` to the current position (or to `artificialEndIndex` if\n * provided).\n *\n * @param start Position from which the `ParseSpan` will start.\n * @param artificialEndIndex Optional ending index to be used if provided (and if greater than the\n * natural ending index)\n */\n span(start, artificialEndIndex) {\n let endIndex = this.currentEndIndex;\n if (artificialEndIndex !== undefined && artificialEndIndex > this.currentEndIndex) {\n endIndex = artificialEndIndex;\n }\n // In some unusual parsing scenarios (like when certain tokens are missing and an `EmptyExpr` is\n // being created), the current token may already be advanced beyond the `currentEndIndex`. This\n // appears to be a deep-seated parser bug.\n //\n // As a workaround for now, swap the start and end indices to ensure a valid `ParseSpan`.\n // TODO(alxhub): fix the bug upstream in the parser state, and remove this workaround.\n if (start > endIndex) {\n const tmp = endIndex;\n endIndex = start;\n start = tmp;\n }\n return new ParseSpan(start, endIndex);\n }\n sourceSpan(start, artificialEndIndex) {\n const serial = `${start}@${this.inputIndex}:${artificialEndIndex}`;\n if (!this.sourceSpanCache.has(serial)) {\n this.sourceSpanCache.set(serial, this.span(start, artificialEndIndex).toAbsolute(this.absoluteOffset));\n }\n return this.sourceSpanCache.get(serial);\n }\n advance() {\n this.index++;\n }\n /**\n * Executes a callback in the provided context.\n */\n withContext(context, cb) {\n this.context |= context;\n const ret = cb();\n this.context ^= context;\n return ret;\n }\n consumeOptionalCharacter(code) {\n if (this.next.isCharacter(code)) {\n this.advance();\n return true;\n }\n else {\n return false;\n }\n }\n peekKeywordLet() {\n return this.next.isKeywordLet();\n }\n peekKeywordAs() {\n return this.next.isKeywordAs();\n }\n /**\n * Consumes an expected character, otherwise emits an error about the missing expected character\n * and skips over the token stream until reaching a recoverable point.\n *\n * See `this.error` and `this.skip` for more details.\n */\n expectCharacter(code) {\n if (this.consumeOptionalCharacter(code))\n return;\n this.error(`Missing expected ${String.fromCharCode(code)}`);\n }\n consumeOptionalOperator(op) {\n if (this.next.isOperator(op)) {\n this.advance();\n return true;\n }\n else {\n return false;\n }\n }\n expectOperator(operator) {\n if (this.consumeOptionalOperator(operator))\n return;\n this.error(`Missing expected operator ${operator}`);\n }\n prettyPrintToken(tok) {\n return tok === EOF ? 'end of input' : `token ${tok}`;\n }\n expectIdentifierOrKeyword() {\n const n = this.next;\n if (!n.isIdentifier() && !n.isKeyword()) {\n if (n.isPrivateIdentifier()) {\n this._reportErrorForPrivateIdentifier(n, 'expected identifier or keyword');\n }\n else {\n this.error(`Unexpected ${this.prettyPrintToken(n)}, expected identifier or keyword`);\n }\n return null;\n }\n this.advance();\n return n.toString();\n }\n expectIdentifierOrKeywordOrString() {\n const n = this.next;\n if (!n.isIdentifier() && !n.isKeyword() && !n.isString()) {\n if (n.isPrivateIdentifier()) {\n this._reportErrorForPrivateIdentifier(n, 'expected identifier, keyword or string');\n }\n else {\n this.error(`Unexpected ${this.prettyPrintToken(n)}, expected identifier, keyword, or string`);\n }\n return '';\n }\n this.advance();\n return n.toString();\n }\n parseChain() {\n const exprs = [];\n const start = this.inputIndex;\n while (this.index < this.tokens.length) {\n const expr = this.parsePipe();\n exprs.push(expr);\n if (this.consumeOptionalCharacter($SEMICOLON)) {\n if (!(this.parseFlags & 1 /* ParseFlags.Action */)) {\n this.error('Binding expression cannot contain chained expression');\n }\n while (this.consumeOptionalCharacter($SEMICOLON)) { } // read all semicolons\n }\n else if (this.index < this.tokens.length) {\n const errorIndex = this.index;\n this.error(`Unexpected token '${this.next}'`);\n // The `error` call above will skip ahead to the next recovery point in an attempt to\n // recover part of the expression, but that might be the token we started from which will\n // lead to an infinite loop. If that's the case, break the loop assuming that we can't\n // parse further.\n if (this.index === errorIndex) {\n break;\n }\n }\n }\n if (exprs.length === 0) {\n // We have no expressions so create an empty expression that spans the entire input length\n const artificialStart = this.offset;\n const artificialEnd = this.offset + this.input.length;\n return new EmptyExpr$1(this.span(artificialStart, artificialEnd), this.sourceSpan(artificialStart, artificialEnd));\n }\n if (exprs.length == 1)\n return exprs[0];\n return new Chain(this.span(start), this.sourceSpan(start), exprs);\n }\n parsePipe() {\n const start = this.inputIndex;\n let result = this.parseExpression();\n if (this.consumeOptionalOperator('|')) {\n if (this.parseFlags & 1 /* ParseFlags.Action */) {\n this.error(`Cannot have a pipe in an action expression`);\n }\n do {\n const nameStart = this.inputIndex;\n let nameId = this.expectIdentifierOrKeyword();\n let nameSpan;\n let fullSpanEnd = undefined;\n if (nameId !== null) {\n nameSpan = this.sourceSpan(nameStart);\n }\n else {\n // No valid identifier was found, so we'll assume an empty pipe name ('').\n nameId = '';\n // However, there may have been whitespace present between the pipe character and the next\n // token in the sequence (or the end of input). We want to track this whitespace so that\n // the `BindingPipe` we produce covers not just the pipe character, but any trailing\n // whitespace beyond it. Another way of thinking about this is that the zero-length name\n // is assumed to be at the end of any whitespace beyond the pipe character.\n //\n // Therefore, we push the end of the `ParseSpan` for this pipe all the way up to the\n // beginning of the next token, or until the end of input if the next token is EOF.\n fullSpanEnd = this.next.index !== -1 ? this.next.index : this.input.length + this.offset;\n // The `nameSpan` for an empty pipe name is zero-length at the end of any whitespace\n // beyond the pipe character.\n nameSpan = new ParseSpan(fullSpanEnd, fullSpanEnd).toAbsolute(this.absoluteOffset);\n }\n const args = [];\n while (this.consumeOptionalCharacter($COLON)) {\n args.push(this.parseExpression());\n // If there are additional expressions beyond the name, then the artificial end for the\n // name is no longer relevant.\n }\n result = new BindingPipe(this.span(start), this.sourceSpan(start, fullSpanEnd), result, nameId, args, nameSpan);\n } while (this.consumeOptionalOperator('|'));\n }\n return result;\n }\n parseExpression() {\n return this.parseConditional();\n }\n parseConditional() {\n const start = this.inputIndex;\n const result = this.parseLogicalOr();\n if (this.consumeOptionalOperator('?')) {\n const yes = this.parsePipe();\n let no;\n if (!this.consumeOptionalCharacter($COLON)) {\n const end = this.inputIndex;\n const expression = this.input.substring(start, end);\n this.error(`Conditional expression ${expression} requires all 3 expressions`);\n no = new EmptyExpr$1(this.span(start), this.sourceSpan(start));\n }\n else {\n no = this.parsePipe();\n }\n return new Conditional(this.span(start), this.sourceSpan(start), result, yes, no);\n }\n else {\n return result;\n }\n }\n parseLogicalOr() {\n // '||'\n const start = this.inputIndex;\n let result = this.parseLogicalAnd();\n while (this.consumeOptionalOperator('||')) {\n const right = this.parseLogicalAnd();\n result = new Binary(this.span(start), this.sourceSpan(start), '||', result, right);\n }\n return result;\n }\n parseLogicalAnd() {\n // '&&'\n const start = this.inputIndex;\n let result = this.parseNullishCoalescing();\n while (this.consumeOptionalOperator('&&')) {\n const right = this.parseNullishCoalescing();\n result = new Binary(this.span(start), this.sourceSpan(start), '&&', result, right);\n }\n return result;\n }\n parseNullishCoalescing() {\n // '??'\n const start = this.inputIndex;\n let result = this.parseEquality();\n while (this.consumeOptionalOperator('??')) {\n const right = this.parseEquality();\n result = new Binary(this.span(start), this.sourceSpan(start), '??', result, right);\n }\n return result;\n }\n parseEquality() {\n // '==','!=','===','!=='\n const start = this.inputIndex;\n let result = this.parseRelational();\n while (this.next.type == TokenType.Operator) {\n const operator = this.next.strValue;\n switch (operator) {\n case '==':\n case '===':\n case '!=':\n case '!==':\n this.advance();\n const right = this.parseRelational();\n result = new Binary(this.span(start), this.sourceSpan(start), operator, result, right);\n continue;\n }\n break;\n }\n return result;\n }\n parseRelational() {\n // '<', '>', '<=', '>='\n const start = this.inputIndex;\n let result = this.parseAdditive();\n while (this.next.type == TokenType.Operator) {\n const operator = this.next.strValue;\n switch (operator) {\n case '<':\n case '>':\n case '<=':\n case '>=':\n this.advance();\n const right = this.parseAdditive();\n result = new Binary(this.span(start), this.sourceSpan(start), operator, result, right);\n continue;\n }\n break;\n }\n return result;\n }\n parseAdditive() {\n // '+', '-'\n const start = this.inputIndex;\n let result = this.parseMultiplicative();\n while (this.next.type == TokenType.Operator) {\n const operator = this.next.strValue;\n switch (operator) {\n case '+':\n case '-':\n this.advance();\n let right = this.parseMultiplicative();\n result = new Binary(this.span(start), this.sourceSpan(start), operator, result, right);\n continue;\n }\n break;\n }\n return result;\n }\n parseMultiplicative() {\n // '*', '%', '/'\n const start = this.inputIndex;\n let result = this.parsePrefix();\n while (this.next.type == TokenType.Operator) {\n const operator = this.next.strValue;\n switch (operator) {\n case '*':\n case '%':\n case '/':\n this.advance();\n let right = this.parsePrefix();\n result = new Binary(this.span(start), this.sourceSpan(start), operator, result, right);\n continue;\n }\n break;\n }\n return result;\n }\n parsePrefix() {\n if (this.next.type == TokenType.Operator) {\n const start = this.inputIndex;\n const operator = this.next.strValue;\n let result;\n switch (operator) {\n case '+':\n this.advance();\n result = this.parsePrefix();\n return Unary.createPlus(this.span(start), this.sourceSpan(start), result);\n case '-':\n this.advance();\n result = this.parsePrefix();\n return Unary.createMinus(this.span(start), this.sourceSpan(start), result);\n case '!':\n this.advance();\n result = this.parsePrefix();\n return new PrefixNot(this.span(start), this.sourceSpan(start), result);\n }\n }\n else if (this.next.isKeywordTypeof()) {\n this.advance();\n const start = this.inputIndex;\n let result = this.parsePrefix();\n return new TypeofExpression(this.span(start), this.sourceSpan(start), result);\n }\n return this.parseCallChain();\n }\n parseCallChain() {\n const start = this.inputIndex;\n let result = this.parsePrimary();\n while (true) {\n if (this.consumeOptionalCharacter($PERIOD)) {\n result = this.parseAccessMember(result, start, false);\n }\n else if (this.consumeOptionalOperator('?.')) {\n if (this.consumeOptionalCharacter($LPAREN)) {\n result = this.parseCall(result, start, true);\n }\n else {\n result = this.consumeOptionalCharacter($LBRACKET)\n ? this.parseKeyedReadOrWrite(result, start, true)\n : this.parseAccessMember(result, start, true);\n }\n }\n else if (this.consumeOptionalCharacter($LBRACKET)) {\n result = this.parseKeyedReadOrWrite(result, start, false);\n }\n else if (this.consumeOptionalCharacter($LPAREN)) {\n result = this.parseCall(result, start, false);\n }\n else if (this.consumeOptionalOperator('!')) {\n result = new NonNullAssert(this.span(start), this.sourceSpan(start), result);\n }\n else {\n return result;\n }\n }\n }\n parsePrimary() {\n const start = this.inputIndex;\n if (this.consumeOptionalCharacter($LPAREN)) {\n this.rparensExpected++;\n const result = this.parsePipe();\n this.rparensExpected--;\n this.expectCharacter($RPAREN);\n return result;\n }\n else if (this.next.isKeywordNull()) {\n this.advance();\n return new LiteralPrimitive(this.span(start), this.sourceSpan(start), null);\n }\n else if (this.next.isKeywordUndefined()) {\n this.advance();\n return new LiteralPrimitive(this.span(start), this.sourceSpan(start), void 0);\n }\n else if (this.next.isKeywordTrue()) {\n this.advance();\n return new LiteralPrimitive(this.span(start), this.sourceSpan(start), true);\n }\n else if (this.next.isKeywordFalse()) {\n this.advance();\n return new LiteralPrimitive(this.span(start), this.sourceSpan(start), false);\n }\n else if (this.next.isKeywordThis()) {\n this.advance();\n return new ThisReceiver(this.span(start), this.sourceSpan(start));\n }\n else if (this.consumeOptionalCharacter($LBRACKET)) {\n this.rbracketsExpected++;\n const elements = this.parseExpressionList($RBRACKET);\n this.rbracketsExpected--;\n this.expectCharacter($RBRACKET);\n return new LiteralArray(this.span(start), this.sourceSpan(start), elements);\n }\n else if (this.next.isCharacter($LBRACE)) {\n return this.parseLiteralMap();\n }\n else if (this.next.isIdentifier()) {\n return this.parseAccessMember(new ImplicitReceiver(this.span(start), this.sourceSpan(start)), start, false);\n }\n else if (this.next.isNumber()) {\n const value = this.next.toNumber();\n this.advance();\n return new LiteralPrimitive(this.span(start), this.sourceSpan(start), value);\n }\n else if (this.next.isString()) {\n const literalValue = this.next.toString();\n this.advance();\n return new LiteralPrimitive(this.span(start), this.sourceSpan(start), literalValue);\n }\n else if (this.next.isPrivateIdentifier()) {\n this._reportErrorForPrivateIdentifier(this.next, null);\n return new EmptyExpr$1(this.span(start), this.sourceSpan(start));\n }\n else if (this.index >= this.tokens.length) {\n this.error(`Unexpected end of expression: ${this.input}`);\n return new EmptyExpr$1(this.span(start), this.sourceSpan(start));\n }\n else {\n this.error(`Unexpected token ${this.next}`);\n return new EmptyExpr$1(this.span(start), this.sourceSpan(start));\n }\n }\n parseExpressionList(terminator) {\n const result = [];\n do {\n if (!this.next.isCharacter(terminator)) {\n result.push(this.parsePipe());\n }\n else {\n break;\n }\n } while (this.consumeOptionalCharacter($COMMA));\n return result;\n }\n parseLiteralMap() {\n const keys = [];\n const values = [];\n const start = this.inputIndex;\n this.expectCharacter($LBRACE);\n if (!this.consumeOptionalCharacter($RBRACE)) {\n this.rbracesExpected++;\n do {\n const keyStart = this.inputIndex;\n const quoted = this.next.isString();\n const key = this.expectIdentifierOrKeywordOrString();\n const literalMapKey = { key, quoted };\n keys.push(literalMapKey);\n // Properties with quoted keys can't use the shorthand syntax.\n if (quoted) {\n this.expectCharacter($COLON);\n values.push(this.parsePipe());\n }\n else if (this.consumeOptionalCharacter($COLON)) {\n values.push(this.parsePipe());\n }\n else {\n literalMapKey.isShorthandInitialized = true;\n const span = this.span(keyStart);\n const sourceSpan = this.sourceSpan(keyStart);\n values.push(new PropertyRead(span, sourceSpan, sourceSpan, new ImplicitReceiver(span, sourceSpan), key));\n }\n } while (this.consumeOptionalCharacter($COMMA) &&\n !this.next.isCharacter($RBRACE));\n this.rbracesExpected--;\n this.expectCharacter($RBRACE);\n }\n return new LiteralMap(this.span(start), this.sourceSpan(start), keys, values);\n }\n parseAccessMember(readReceiver, start, isSafe) {\n const nameStart = this.inputIndex;\n const id = this.withContext(ParseContextFlags.Writable, () => {\n const id = this.expectIdentifierOrKeyword() ?? '';\n if (id.length === 0) {\n this.error(`Expected identifier for property access`, readReceiver.span.end);\n }\n return id;\n });\n const nameSpan = this.sourceSpan(nameStart);\n let receiver;\n if (isSafe) {\n if (this.consumeOptionalOperator('=')) {\n this.error(\"The '?.' operator cannot be used in the assignment\");\n receiver = new EmptyExpr$1(this.span(start), this.sourceSpan(start));\n }\n else {\n receiver = new SafePropertyRead(this.span(start), this.sourceSpan(start), nameSpan, readReceiver, id);\n }\n }\n else {\n if (this.consumeOptionalOperator('=')) {\n if (!(this.parseFlags & 1 /* ParseFlags.Action */)) {\n this.error('Bindings cannot contain assignments');\n return new EmptyExpr$1(this.span(start), this.sourceSpan(start));\n }\n const value = this.parseConditional();\n receiver = new PropertyWrite(this.span(start), this.sourceSpan(start), nameSpan, readReceiver, id, value);\n }\n else {\n receiver = new PropertyRead(this.span(start), this.sourceSpan(start), nameSpan, readReceiver, id);\n }\n }\n return receiver;\n }\n parseCall(receiver, start, isSafe) {\n const argumentStart = this.inputIndex;\n this.rparensExpected++;\n const args = this.parseCallArguments();\n const argumentSpan = this.span(argumentStart, this.inputIndex).toAbsolute(this.absoluteOffset);\n this.expectCharacter($RPAREN);\n this.rparensExpected--;\n const span = this.span(start);\n const sourceSpan = this.sourceSpan(start);\n return isSafe\n ? new SafeCall(span, sourceSpan, receiver, args, argumentSpan)\n : new Call(span, sourceSpan, receiver, args, argumentSpan);\n }\n parseCallArguments() {\n if (this.next.isCharacter($RPAREN))\n return [];\n const positionals = [];\n do {\n positionals.push(this.parsePipe());\n } while (this.consumeOptionalCharacter($COMMA));\n return positionals;\n }\n /**\n * Parses an identifier, a keyword, a string with an optional `-` in between,\n * and returns the string along with its absolute source span.\n */\n expectTemplateBindingKey() {\n let result = '';\n let operatorFound = false;\n const start = this.currentAbsoluteOffset;\n do {\n result += this.expectIdentifierOrKeywordOrString();\n operatorFound = this.consumeOptionalOperator('-');\n if (operatorFound) {\n result += '-';\n }\n } while (operatorFound);\n return {\n source: result,\n span: new AbsoluteSourceSpan(start, start + result.length),\n };\n }\n /**\n * Parse microsyntax template expression and return a list of bindings or\n * parsing errors in case the given expression is invalid.\n *\n * For example,\n * ```html\n * <div *ngFor=\"let item of items; index as i; trackBy: func\">\n * ```\n * contains five bindings:\n * 1. ngFor -> null\n * 2. item -> NgForOfContext.$implicit\n * 3. ngForOf -> items\n * 4. i -> NgForOfContext.index\n * 5. ngForTrackBy -> func\n *\n * For a full description of the microsyntax grammar, see\n * https://gist.github.com/mhevery/d3530294cff2e4a1b3fe15ff75d08855\n *\n * @param templateKey name of the microsyntax directive, like ngIf, ngFor,\n * without the *, along with its absolute span.\n */\n parseTemplateBindings(templateKey) {\n const bindings = [];\n // The first binding is for the template key itself\n // In *ngFor=\"let item of items\", key = \"ngFor\", value = null\n // In *ngIf=\"cond | pipe\", key = \"ngIf\", value = \"cond | pipe\"\n bindings.push(...this.parseDirectiveKeywordBindings(templateKey));\n while (this.index < this.tokens.length) {\n // If it starts with 'let', then this must be variable declaration\n const letBinding = this.parseLetBinding();\n if (letBinding) {\n bindings.push(letBinding);\n }\n else {\n // Two possible cases here, either `value \"as\" key` or\n // \"directive-keyword expression\". We don't know which case, but both\n // \"value\" and \"directive-keyword\" are template binding key, so consume\n // the key first.\n const key = this.expectTemplateBindingKey();\n // Peek at the next token, if it is \"as\" then this must be variable\n // declaration.\n const binding = this.parseAsBinding(key);\n if (binding) {\n bindings.push(binding);\n }\n else {\n // Otherwise the key must be a directive keyword, like \"of\". Transform\n // the key to actual key. Eg. of -> ngForOf, trackBy -> ngForTrackBy\n key.source =\n templateKey.source + key.source.charAt(0).toUpperCase() + key.source.substring(1);\n bindings.push(...this.parseDirectiveKeywordBindings(key));\n }\n }\n this.consumeStatementTerminator();\n }\n return new TemplateBindingParseResult(bindings, [] /* warnings */, this.errors);\n }\n parseKeyedReadOrWrite(receiver, start, isSafe) {\n return this.withContext(ParseContextFlags.Writable, () => {\n this.rbracketsExpected++;\n const key = this.parsePipe();\n if (key instanceof EmptyExpr$1) {\n this.error(`Key access cannot be empty`);\n }\n this.rbracketsExpected--;\n this.expectCharacter($RBRACKET);\n if (this.consumeOptionalOperator('=')) {\n if (isSafe) {\n this.error(\"The '?.' operator cannot be used in the assignment\");\n }\n else {\n const value = this.parseConditional();\n return new KeyedWrite(this.span(start), this.sourceSpan(start), receiver, key, value);\n }\n }\n else {\n return isSafe\n ? new SafeKeyedRead(this.span(start), this.sourceSpan(start), receiver, key)\n : new KeyedRead(this.span(start), this.sourceSpan(start), receiver, key);\n }\n return new EmptyExpr$1(this.span(start), this.sourceSpan(start));\n });\n }\n /**\n * Parse a directive keyword, followed by a mandatory expression.\n * For example, \"of items\", \"trackBy: func\".\n * The bindings are: ngForOf -> items, ngForTrackBy -> func\n * There could be an optional \"as\" binding that follows the expression.\n * For example,\n * ```\n * *ngFor=\"let item of items | slice:0:1 as collection\".\n * ^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^\n * keyword bound target optional 'as' binding\n * ```\n *\n * @param key binding key, for example, ngFor, ngIf, ngForOf, along with its\n * absolute span.\n */\n parseDirectiveKeywordBindings(key) {\n const bindings = [];\n this.consumeOptionalCharacter($COLON); // trackBy: trackByFunction\n const value = this.getDirectiveBoundTarget();\n let spanEnd = this.currentAbsoluteOffset;\n // The binding could optionally be followed by \"as\". For example,\n // *ngIf=\"cond | pipe as x\". In this case, the key in the \"as\" binding\n // is \"x\" and the value is the template key itself (\"ngIf\"). Note that the\n // 'key' in the current context now becomes the \"value\" in the next binding.\n const asBinding = this.parseAsBinding(key);\n if (!asBinding) {\n this.consumeStatementTerminator();\n spanEnd = this.currentAbsoluteOffset;\n }\n const sourceSpan = new AbsoluteSourceSpan(key.span.start, spanEnd);\n bindings.push(new ExpressionBinding(sourceSpan, key, value));\n if (asBinding) {\n bindings.push(asBinding);\n }\n return bindings;\n }\n /**\n * Return the expression AST for the bound target of a directive keyword\n * binding. For example,\n * ```\n * *ngIf=\"condition | pipe\"\n * ^^^^^^^^^^^^^^^^ bound target for \"ngIf\"\n * *ngFor=\"let item of items\"\n * ^^^^^ bound target for \"ngForOf\"\n * ```\n */\n getDirectiveBoundTarget() {\n if (this.next === EOF || this.peekKeywordAs() || this.peekKeywordLet()) {\n return null;\n }\n const ast = this.parsePipe(); // example: \"condition | async\"\n const { start, end } = ast.span;\n const value = this.input.substring(start, end);\n return new ASTWithSource(ast, value, this.location, this.absoluteOffset + start, this.errors);\n }\n /**\n * Return the binding for a variable declared using `as`. Note that the order\n * of the key-value pair in this declaration is reversed. For example,\n * ```\n * *ngFor=\"let item of items; index as i\"\n * ^^^^^ ^\n * value key\n * ```\n *\n * @param value name of the value in the declaration, \"ngIf\" in the example\n * above, along with its absolute span.\n */\n parseAsBinding(value) {\n if (!this.peekKeywordAs()) {\n return null;\n }\n this.advance(); // consume the 'as' keyword\n const key = this.expectTemplateBindingKey();\n this.consumeStatementTerminator();\n const sourceSpan = new AbsoluteSourceSpan(value.span.start, this.currentAbsoluteOffset);\n return new VariableBinding(sourceSpan, key, value);\n }\n /**\n * Return the binding for a variable declared using `let`. For example,\n * ```\n * *ngFor=\"let item of items; let i=index;\"\n * ^^^^^^^^ ^^^^^^^^^^^\n * ```\n * In the first binding, `item` is bound to `NgForOfContext.$implicit`.\n * In the second binding, `i` is bound to `NgForOfContext.index`.\n */\n parseLetBinding() {\n if (!this.peekKeywordLet()) {\n return null;\n }\n const spanStart = this.currentAbsoluteOffset;\n this.advance(); // consume the 'let' keyword\n const key = this.expectTemplateBindingKey();\n let value = null;\n if (this.consumeOptionalOperator('=')) {\n value = this.expectTemplateBindingKey();\n }\n this.consumeStatementTerminator();\n const sourceSpan = new AbsoluteSourceSpan(spanStart, this.currentAbsoluteOffset);\n return new VariableBinding(sourceSpan, key, value);\n }\n /**\n * Consume the optional statement terminator: semicolon or comma.\n */\n consumeStatementTerminator() {\n this.consumeOptionalCharacter($SEMICOLON) || this.consumeOptionalCharacter($COMMA);\n }\n /**\n * Records an error and skips over the token stream until reaching a recoverable point. See\n * `this.skip` for more details on token skipping.\n */\n error(message, index = null) {\n this.errors.push(new ParserError(message, this.input, this.locationText(index), this.location));\n this.skip();\n }\n locationText(index = null) {\n if (index == null)\n index = this.index;\n return index < this.tokens.length\n ? `at column ${this.tokens[index].index + 1} in`\n : `at the end of the expression`;\n }\n /**\n * Records an error for an unexpected private identifier being discovered.\n * @param token Token representing a private identifier.\n * @param extraMessage Optional additional message being appended to the error.\n */\n _reportErrorForPrivateIdentifier(token, extraMessage) {\n let errorMessage = `Private identifiers are not supported. Unexpected private identifier: ${token}`;\n if (extraMessage !== null) {\n errorMessage += `, ${extraMessage}`;\n }\n this.error(errorMessage);\n }\n /**\n * Error recovery should skip tokens until it encounters a recovery point.\n *\n * The following are treated as unconditional recovery points:\n * - end of input\n * - ';' (parseChain() is always the root production, and it expects a ';')\n * - '|' (since pipes may be chained and each pipe expression may be treated independently)\n *\n * The following are conditional recovery points:\n * - ')', '}', ']' if one of calling productions is expecting one of these symbols\n * - This allows skip() to recover from errors such as '(a.) + 1' allowing more of the AST to\n * be retained (it doesn't skip any tokens as the ')' is retained because of the '(' begins\n * an '(' <expr> ')' production).\n * The recovery points of grouping symbols must be conditional as they must be skipped if\n * none of the calling productions are not expecting the closing token else we will never\n * make progress in the case of an extraneous group closing symbol (such as a stray ')').\n * That is, we skip a closing symbol if we are not in a grouping production.\n * - '=' in a `Writable` context\n * - In this context, we are able to recover after seeing the `=` operator, which\n * signals the presence of an independent rvalue expression following the `=` operator.\n *\n * If a production expects one of these token it increments the corresponding nesting count,\n * and then decrements it just prior to checking if the token is in the input.\n */\n skip() {\n let n = this.next;\n while (this.index < this.tokens.length &&\n !n.isCharacter($SEMICOLON) &&\n !n.isOperator('|') &&\n (this.rparensExpected <= 0 || !n.isCharacter($RPAREN)) &&\n (this.rbracesExpected <= 0 || !n.isCharacter($RBRACE)) &&\n (this.rbracketsExpected <= 0 || !n.isCharacter($RBRACKET)) &&\n (!(this.context & ParseContextFlags.Writable) || !n.isOperator('='))) {\n if (this.next.isError()) {\n this.errors.push(new ParserError(this.next.toString(), this.input, this.locationText(), this.location));\n }\n this.advance();\n n = this.next;\n }\n }\n}\nclass SimpleExpressionChecker extends RecursiveAstVisitor {\n errors = [];\n visitPipe() {\n this.errors.push('pipes');\n }\n}\n/**\n * Computes the real offset in the original template for indexes in an interpolation.\n *\n * Because templates can have encoded HTML entities and the input passed to the parser at this stage\n * of the compiler is the _decoded_ value, we need to compute the real offset using the original\n * encoded values in the interpolated tokens. Note that this is only a special case handling for\n * `MlParserTokenType.ENCODED_ENTITY` token types. All other interpolated tokens are expected to\n * have parts which exactly match the input string for parsing the interpolation.\n *\n * @param interpolatedTokens The tokens for the interpolated value.\n *\n * @returns A map of index locations in the decoded template to indexes in the original template\n */\nfunction getIndexMapForOriginalTemplate(interpolatedTokens) {\n let offsetMap = new Map();\n let consumedInOriginalTemplate = 0;\n let consumedInInput = 0;\n let tokenIndex = 0;\n while (tokenIndex < interpolatedTokens.length) {\n const currentToken = interpolatedTokens[tokenIndex];\n if (currentToken.type === 9 /* MlParserTokenType.ENCODED_ENTITY */) {\n const [decoded, encoded] = currentToken.parts;\n consumedInOriginalTemplate += encoded.length;\n consumedInInput += decoded.length;\n }\n else {\n const lengthOfParts = currentToken.parts.reduce((sum, current) => sum + current.length, 0);\n consumedInInput += lengthOfParts;\n consumedInOriginalTemplate += lengthOfParts;\n }\n offsetMap.set(consumedInInput, consumedInOriginalTemplate);\n tokenIndex++;\n }\n return offsetMap;\n}\n\n/** Serializes the given AST into a normalized string format. */\nfunction serialize(expression) {\n return expression.visit(new SerializeExpressionVisitor());\n}\nclass SerializeExpressionVisitor {\n visitUnary(ast, context) {\n return `${ast.operator}${ast.expr.visit(this, context)}`;\n }\n visitBinary(ast, context) {\n return `${ast.left.visit(this, context)} ${ast.operation} ${ast.right.visit(this, context)}`;\n }\n visitChain(ast, context) {\n return ast.expressions.map((e) => e.visit(this, context)).join('; ');\n }\n visitConditional(ast, context) {\n return `${ast.condition.visit(this, context)} ? ${ast.trueExp.visit(this, context)} : ${ast.falseExp.visit(this, context)}`;\n }\n visitThisReceiver() {\n return 'this';\n }\n visitImplicitReceiver() {\n return '';\n }\n visitInterpolation(ast, context) {\n return interleave(ast.strings, ast.expressions.map((e) => e.visit(this, context))).join('');\n }\n visitKeyedRead(ast, context) {\n return `${ast.receiver.visit(this, context)}[${ast.key.visit(this, context)}]`;\n }\n visitKeyedWrite(ast, context) {\n return `${ast.receiver.visit(this, context)}[${ast.key.visit(this, context)}] = ${ast.value.visit(this, context)}`;\n }\n visitLiteralArray(ast, context) {\n return `[${ast.expressions.map((e) => e.visit(this, context)).join(', ')}]`;\n }\n visitLiteralMap(ast, context) {\n return `{${zip(ast.keys.map((literal) => (literal.quoted ? `'${literal.key}'` : literal.key)), ast.values.map((value) => value.visit(this, context)))\n .map(([key, value]) => `${key}: ${value}`)\n .join(', ')}}`;\n }\n visitLiteralPrimitive(ast) {\n if (ast.value === null)\n return 'null';\n switch (typeof ast.value) {\n case 'number':\n case 'boolean':\n return ast.value.toString();\n case 'undefined':\n return 'undefined';\n case 'string':\n return `'${ast.value.replace(/'/g, `\\\\'`)}'`;\n default:\n throw new Error(`Unsupported primitive type: ${ast.value}`);\n }\n }\n visitPipe(ast, context) {\n return `${ast.exp.visit(this, context)} | ${ast.name}`;\n }\n visitPrefixNot(ast, context) {\n return `!${ast.expression.visit(this, context)}`;\n }\n visitNonNullAssert(ast, context) {\n return `${ast.expression.visit(this, context)}!`;\n }\n visitPropertyRead(ast, context) {\n if (ast.receiver instanceof ImplicitReceiver) {\n return ast.name;\n }\n else {\n return `${ast.receiver.visit(this, context)}.${ast.name}`;\n }\n }\n visitPropertyWrite(ast, context) {\n if (ast.receiver instanceof ImplicitReceiver) {\n return `${ast.name} = ${ast.value.visit(this, context)}`;\n }\n else {\n return `${ast.receiver.visit(this, context)}.${ast.name} = ${ast.value.visit(this, context)}`;\n }\n }\n visitSafePropertyRead(ast, context) {\n return `${ast.receiver.visit(this, context)}?.${ast.name}`;\n }\n visitSafeKeyedRead(ast, context) {\n return `${ast.receiver.visit(this, context)}?.[${ast.key.visit(this, context)}]`;\n }\n visitCall(ast, context) {\n return `${ast.receiver.visit(this, context)}(${ast.args\n .map((e) => e.visit(this, context))\n .join(', ')})`;\n }\n visitSafeCall(ast, context) {\n return `${ast.receiver.visit(this, context)}?.(${ast.args\n .map((e) => e.visit(this, context))\n .join(', ')})`;\n }\n visitTypeofExpression(ast, context) {\n return `typeof ${ast.expression.visit(this, context)}`;\n }\n visitASTWithSource(ast, context) {\n return ast.ast.visit(this, context);\n }\n}\n/** Zips the two input arrays into a single array of pairs of elements at the same index. */\nfunction zip(left, right) {\n if (left.length !== right.length)\n throw new Error('Array lengths must match');\n return left.map((l, i) => [l, right[i]]);\n}\n/**\n * Interleaves the two arrays, starting with the first item on the left, then the first item\n * on the right, second item from the left, and so on. When the first array's items are exhausted,\n * the remaining items from the other array are included with no interleaving.\n */\nfunction interleave(left, right) {\n const result = [];\n for (let index = 0; index < Math.max(left.length, right.length); index++) {\n if (index < left.length)\n result.push(left[index]);\n if (index < right.length)\n result.push(right[index]);\n }\n return result;\n}\n\n// =================================================================================================\n// =================================================================================================\n// =========== S T O P - S T O P - S T O P - S T O P - S T O P - S T O P ===========\n// =================================================================================================\n// =================================================================================================\n//\n// DO NOT EDIT THIS LIST OF SECURITY SENSITIVE PROPERTIES WITHOUT A SECURITY REVIEW!\n// Reach out to mprobst for details.\n//\n// =================================================================================================\n/** Map from tagName|propertyName to SecurityContext. Properties applying to all tags use '*'. */\nlet _SECURITY_SCHEMA;\nfunction SECURITY_SCHEMA() {\n if (!_SECURITY_SCHEMA) {\n _SECURITY_SCHEMA = {};\n // Case is insignificant below, all element and attribute names are lower-cased for lookup.\n registerContext(SecurityContext.HTML, ['iframe|srcdoc', '*|innerHTML', '*|outerHTML']);\n registerContext(SecurityContext.STYLE, ['*|style']);\n // NB: no SCRIPT contexts here, they are never allowed due to the parser stripping them.\n registerContext(SecurityContext.URL, [\n '*|formAction',\n 'area|href',\n 'area|ping',\n 'audio|src',\n 'a|href',\n 'a|ping',\n 'blockquote|cite',\n 'body|background',\n 'del|cite',\n 'form|action',\n 'img|src',\n 'input|src',\n 'ins|cite',\n 'q|cite',\n 'source|src',\n 'track|src',\n 'video|poster',\n 'video|src',\n ]);\n registerContext(SecurityContext.RESOURCE_URL, [\n 'applet|code',\n 'applet|codebase',\n 'base|href',\n 'embed|src',\n 'frame|src',\n 'head|profile',\n 'html|manifest',\n 'iframe|src',\n 'link|href',\n 'media|src',\n 'object|codebase',\n 'object|data',\n 'script|src',\n ]);\n }\n return _SECURITY_SCHEMA;\n}\nfunction registerContext(ctx, specs) {\n for (const spec of specs)\n _SECURITY_SCHEMA[spec.toLowerCase()] = ctx;\n}\n/**\n * The set of security-sensitive attributes of an `<iframe>` that *must* be\n * applied as a static attribute only. This ensures that all security-sensitive\n * attributes are taken into account while creating an instance of an `<iframe>`\n * at runtime.\n *\n * Note: avoid using this set directly, use the `isIframeSecuritySensitiveAttr` function\n * in the code instead.\n */\nconst IFRAME_SECURITY_SENSITIVE_ATTRS = new Set([\n 'sandbox',\n 'allow',\n 'allowfullscreen',\n 'referrerpolicy',\n 'csp',\n 'fetchpriority',\n]);\n/**\n * Checks whether a given attribute name might represent a security-sensitive\n * attribute of an <iframe>.\n */\nfunction isIframeSecuritySensitiveAttr(attrName) {\n // The `setAttribute` DOM API is case-insensitive, so we lowercase the value\n // before checking it against a known security-sensitive attributes.\n return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());\n}\n\nclass ElementSchemaRegistry {\n}\n\nconst BOOLEAN = 'boolean';\nconst NUMBER = 'number';\nconst STRING = 'string';\nconst OBJECT = 'object';\n/**\n * This array represents the DOM schema. It encodes inheritance, properties, and events.\n *\n * ## Overview\n *\n * Each line represents one kind of element. The `element_inheritance` and properties are joined\n * using `element_inheritance|properties` syntax.\n *\n * ## Element Inheritance\n *\n * The `element_inheritance` can be further subdivided as `element1,element2,...^parentElement`.\n * Here the individual elements are separated by `,` (commas). Every element in the list\n * has identical properties.\n *\n * An `element` may inherit additional properties from `parentElement` If no `^parentElement` is\n * specified then `\"\"` (blank) element is assumed.\n *\n * NOTE: The blank element inherits from root `[Element]` element, the super element of all\n * elements.\n *\n * NOTE an element prefix such as `:svg:` has no special meaning to the schema.\n *\n * ## Properties\n *\n * Each element has a set of properties separated by `,` (commas). Each property can be prefixed\n * by a special character designating its type:\n *\n * - (no prefix): property is a string.\n * - `*`: property represents an event.\n * - `!`: property is a boolean.\n * - `#`: property is a number.\n * - `%`: property is an object.\n *\n * ## Query\n *\n * The class creates an internal squas representation which allows to easily answer the query of\n * if a given property exist on a given element.\n *\n * NOTE: We don't yet support querying for types or events.\n * NOTE: This schema is auto extracted from `schema_extractor.ts` located in the test folder,\n * see dom_element_schema_registry_spec.ts\n */\n// =================================================================================================\n// =================================================================================================\n// =========== S T O P - S T O P - S T O P - S T O P - S T O P - S T O P ===========\n// =================================================================================================\n// =================================================================================================\n//\n// DO NOT EDIT THIS DOM SCHEMA WITHOUT A SECURITY REVIEW!\n//\n// Newly added properties must be security reviewed and assigned an appropriate SecurityContext in\n// dom_security_schema.ts. Reach out to mprobst & rjamet for details.\n//\n// =================================================================================================\nconst SCHEMA = [\n '[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot' +\n /* added manually to avoid breaking changes */\n ',*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored',\n '[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy',\n 'abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy',\n 'media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume',\n ':svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex',\n ':svg:graphics^:svg:|',\n ':svg:animation^:svg:|*begin,*end,*repeat',\n ':svg:geometry^:svg:|',\n ':svg:componentTransferFunction^:svg:|',\n ':svg:gradient^:svg:|',\n ':svg:textContent^:svg:graphics|',\n ':svg:textPositioning^:svg:textContent|',\n 'a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username',\n 'area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username',\n 'audio^media|',\n 'br^[HTMLElement]|clear',\n 'base^[HTMLElement]|href,target',\n 'body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink',\n 'button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value',\n 'canvas^[HTMLElement]|#height,#width',\n 'content^[HTMLElement]|select',\n 'dl^[HTMLElement]|!compact',\n 'data^[HTMLElement]|value',\n 'datalist^[HTMLElement]|',\n 'details^[HTMLElement]|!open',\n 'dialog^[HTMLElement]|!open,returnValue',\n 'dir^[HTMLElement]|!compact',\n 'div^[HTMLElement]|align',\n 'embed^[HTMLElement]|align,height,name,src,type,width',\n 'fieldset^[HTMLElement]|!disabled,name',\n 'font^[HTMLElement]|color,face,size',\n 'form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target',\n 'frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src',\n 'frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows',\n 'hr^[HTMLElement]|align,color,!noShade,size,width',\n 'head^[HTMLElement]|',\n 'h1,h2,h3,h4,h5,h6^[HTMLElement]|align',\n 'html^[HTMLElement]|version',\n 'iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width',\n 'img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width',\n 'input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width',\n 'li^[HTMLElement]|type,#value',\n 'label^[HTMLElement]|htmlFor',\n 'legend^[HTMLElement]|align',\n 'link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type',\n 'map^[HTMLElement]|name',\n 'marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width',\n 'menu^[HTMLElement]|!compact',\n 'meta^[HTMLElement]|content,httpEquiv,media,name,scheme',\n 'meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value',\n 'ins,del^[HTMLElement]|cite,dateTime',\n 'ol^[HTMLElement]|!compact,!reversed,#start,type',\n 'object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width',\n 'optgroup^[HTMLElement]|!disabled,label',\n 'option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value',\n 'output^[HTMLElement]|defaultValue,%htmlFor,name,value',\n 'p^[HTMLElement]|align',\n 'param^[HTMLElement]|name,type,value,valueType',\n 'picture^[HTMLElement]|',\n 'pre^[HTMLElement]|#width',\n 'progress^[HTMLElement]|#max,#value',\n 'q,blockquote,cite^[HTMLElement]|',\n 'script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type',\n 'select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value',\n 'slot^[HTMLElement]|name',\n 'source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width',\n 'span^[HTMLElement]|',\n 'style^[HTMLElement]|!disabled,media,type',\n 'caption^[HTMLElement]|align',\n 'th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width',\n 'col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width',\n 'table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width',\n 'tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign',\n 'tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign',\n 'template^[HTMLElement]|',\n 'textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap',\n 'time^[HTMLElement]|dateTime',\n 'title^[HTMLElement]|text',\n 'track^[HTMLElement]|!default,kind,label,src,srclang',\n 'ul^[HTMLElement]|!compact,type',\n 'unknown^[HTMLElement]|',\n 'video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width',\n ':svg:a^:svg:graphics|',\n ':svg:animate^:svg:animation|',\n ':svg:animateMotion^:svg:animation|',\n ':svg:animateTransform^:svg:animation|',\n ':svg:circle^:svg:geometry|',\n ':svg:clipPath^:svg:graphics|',\n ':svg:defs^:svg:graphics|',\n ':svg:desc^:svg:|',\n ':svg:discard^:svg:|',\n ':svg:ellipse^:svg:geometry|',\n ':svg:feBlend^:svg:|',\n ':svg:feColorMatrix^:svg:|',\n ':svg:feComponentTransfer^:svg:|',\n ':svg:feComposite^:svg:|',\n ':svg:feConvolveMatrix^:svg:|',\n ':svg:feDiffuseLighting^:svg:|',\n ':svg:feDisplacementMap^:svg:|',\n ':svg:feDistantLight^:svg:|',\n ':svg:feDropShadow^:svg:|',\n ':svg:feFlood^:svg:|',\n ':svg:feFuncA^:svg:componentTransferFunction|',\n ':svg:feFuncB^:svg:componentTransferFunction|',\n ':svg:feFuncG^:svg:componentTransferFunction|',\n ':svg:feFuncR^:svg:componentTransferFunction|',\n ':svg:feGaussianBlur^:svg:|',\n ':svg:feImage^:svg:|',\n ':svg:feMerge^:svg:|',\n ':svg:feMergeNode^:svg:|',\n ':svg:feMorphology^:svg:|',\n ':svg:feOffset^:svg:|',\n ':svg:fePointLight^:svg:|',\n ':svg:feSpecularLighting^:svg:|',\n ':svg:feSpotLight^:svg:|',\n ':svg:feTile^:svg:|',\n ':svg:feTurbulence^:svg:|',\n ':svg:filter^:svg:|',\n ':svg:foreignObject^:svg:graphics|',\n ':svg:g^:svg:graphics|',\n ':svg:image^:svg:graphics|decoding',\n ':svg:line^:svg:geometry|',\n ':svg:linearGradient^:svg:gradient|',\n ':svg:mpath^:svg:|',\n ':svg:marker^:svg:|',\n ':svg:mask^:svg:|',\n ':svg:metadata^:svg:|',\n ':svg:path^:svg:geometry|',\n ':svg:pattern^:svg:|',\n ':svg:polygon^:svg:geometry|',\n ':svg:polyline^:svg:geometry|',\n ':svg:radialGradient^:svg:gradient|',\n ':svg:rect^:svg:geometry|',\n ':svg:svg^:svg:graphics|#currentScale,#zoomAndPan',\n ':svg:script^:svg:|type',\n ':svg:set^:svg:animation|',\n ':svg:stop^:svg:|',\n ':svg:style^:svg:|!disabled,media,title,type',\n ':svg:switch^:svg:graphics|',\n ':svg:symbol^:svg:|',\n ':svg:tspan^:svg:textPositioning|',\n ':svg:text^:svg:textPositioning|',\n ':svg:textPath^:svg:textContent|',\n ':svg:title^:svg:|',\n ':svg:use^:svg:graphics|',\n ':svg:view^:svg:|#zoomAndPan',\n 'data^[HTMLElement]|value',\n 'keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name',\n 'menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default',\n 'summary^[HTMLElement]|',\n 'time^[HTMLElement]|dateTime',\n ':svg:cursor^:svg:|',\n ':math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex',\n ':math:math^:math:|',\n ':math:maction^:math:|',\n ':math:menclose^:math:|',\n ':math:merror^:math:|',\n ':math:mfenced^:math:|',\n ':math:mfrac^:math:|',\n ':math:mi^:math:|',\n ':math:mmultiscripts^:math:|',\n ':math:mn^:math:|',\n ':math:mo^:math:|',\n ':math:mover^:math:|',\n ':math:mpadded^:math:|',\n ':math:mphantom^:math:|',\n ':math:mroot^:math:|',\n ':math:mrow^:math:|',\n ':math:ms^:math:|',\n ':math:mspace^:math:|',\n ':math:msqrt^:math:|',\n ':math:mstyle^:math:|',\n ':math:msub^:math:|',\n ':math:msubsup^:math:|',\n ':math:msup^:math:|',\n ':math:mtable^:math:|',\n ':math:mtd^:math:|',\n ':math:mtext^:math:|',\n ':math:mtr^:math:|',\n ':math:munder^:math:|',\n ':math:munderover^:math:|',\n ':math:semantics^:math:|',\n];\nconst _ATTR_TO_PROP = new Map(Object.entries({\n 'class': 'className',\n 'for': 'htmlFor',\n 'formaction': 'formAction',\n 'innerHtml': 'innerHTML',\n 'readonly': 'readOnly',\n 'tabindex': 'tabIndex',\n}));\n// Invert _ATTR_TO_PROP.\nconst _PROP_TO_ATTR = Array.from(_ATTR_TO_PROP).reduce((inverted, [propertyName, attributeName]) => {\n inverted.set(propertyName, attributeName);\n return inverted;\n}, new Map());\nclass DomElementSchemaRegistry extends ElementSchemaRegistry {\n _schema = new Map();\n // We don't allow binding to events for security reasons. Allowing event bindings would almost\n // certainly introduce bad XSS vulnerabilities. Instead, we store events in a separate schema.\n _eventSchema = new Map();\n constructor() {\n super();\n SCHEMA.forEach((encodedType) => {\n const type = new Map();\n const events = new Set();\n const [strType, strProperties] = encodedType.split('|');\n const properties = strProperties.split(',');\n const [typeNames, superName] = strType.split('^');\n typeNames.split(',').forEach((tag) => {\n this._schema.set(tag.toLowerCase(), type);\n this._eventSchema.set(tag.toLowerCase(), events);\n });\n const superType = superName && this._schema.get(superName.toLowerCase());\n if (superType) {\n for (const [prop, value] of superType) {\n type.set(prop, value);\n }\n for (const superEvent of this._eventSchema.get(superName.toLowerCase())) {\n events.add(superEvent);\n }\n }\n properties.forEach((property) => {\n if (property.length > 0) {\n switch (property[0]) {\n case '*':\n events.add(property.substring(1));\n break;\n case '!':\n type.set(property.substring(1), BOOLEAN);\n break;\n case '#':\n type.set(property.substring(1), NUMBER);\n break;\n case '%':\n type.set(property.substring(1), OBJECT);\n break;\n default:\n type.set(property, STRING);\n }\n }\n });\n });\n }\n hasProperty(tagName, propName, schemaMetas) {\n if (schemaMetas.some((schema) => schema.name === NO_ERRORS_SCHEMA.name)) {\n return true;\n }\n if (tagName.indexOf('-') > -1) {\n if (isNgContainer(tagName) || isNgContent(tagName)) {\n return false;\n }\n if (schemaMetas.some((schema) => schema.name === CUSTOM_ELEMENTS_SCHEMA.name)) {\n // Can't tell now as we don't know which properties a custom element will get\n // once it is instantiated\n return true;\n }\n }\n const elementProperties = this._schema.get(tagName.toLowerCase()) || this._schema.get('unknown');\n return elementProperties.has(propName);\n }\n hasElement(tagName, schemaMetas) {\n if (schemaMetas.some((schema) => schema.name === NO_ERRORS_SCHEMA.name)) {\n return true;\n }\n if (tagName.indexOf('-') > -1) {\n if (isNgContainer(tagName) || isNgContent(tagName)) {\n return true;\n }\n if (schemaMetas.some((schema) => schema.name === CUSTOM_ELEMENTS_SCHEMA.name)) {\n // Allow any custom elements\n return true;\n }\n }\n return this._schema.has(tagName.toLowerCase());\n }\n /**\n * securityContext returns the security context for the given property on the given DOM tag.\n *\n * Tag and property name are statically known and cannot change at runtime, i.e. it is not\n * possible to bind a value into a changing attribute or tag name.\n *\n * The filtering is based on a list of allowed tags|attributes. All attributes in the schema\n * above are assumed to have the 'NONE' security context, i.e. that they are safe inert\n * string values. Only specific well known attack vectors are assigned their appropriate context.\n */\n securityContext(tagName, propName, isAttribute) {\n if (isAttribute) {\n // NB: For security purposes, use the mapped property name, not the attribute name.\n propName = this.getMappedPropName(propName);\n }\n // Make sure comparisons are case insensitive, so that case differences between attribute and\n // property names do not have a security impact.\n tagName = tagName.toLowerCase();\n propName = propName.toLowerCase();\n let ctx = SECURITY_SCHEMA()[tagName + '|' + propName];\n if (ctx) {\n return ctx;\n }\n ctx = SECURITY_SCHEMA()['*|' + propName];\n return ctx ? ctx : SecurityContext.NONE;\n }\n getMappedPropName(propName) {\n return _ATTR_TO_PROP.get(propName) ?? propName;\n }\n getDefaultComponentElementName() {\n return 'ng-component';\n }\n validateProperty(name) {\n if (name.toLowerCase().startsWith('on')) {\n const msg = `Binding to event property '${name}' is disallowed for security reasons, ` +\n `please use (${name.slice(2)})=...` +\n `\\nIf '${name}' is a directive input, make sure the directive is imported by the` +\n ` current module.`;\n return { error: true, msg: msg };\n }\n else {\n return { error: false };\n }\n }\n validateAttribute(name) {\n if (name.toLowerCase().startsWith('on')) {\n const msg = `Binding to event attribute '${name}' is disallowed for security reasons, ` +\n `please use (${name.slice(2)})=...`;\n return { error: true, msg: msg };\n }\n else {\n return { error: false };\n }\n }\n allKnownElementNames() {\n return Array.from(this._schema.keys());\n }\n allKnownAttributesOfElement(tagName) {\n const elementProperties = this._schema.get(tagName.toLowerCase()) || this._schema.get('unknown');\n // Convert properties to attributes.\n return Array.from(elementProperties.keys()).map((prop) => _PROP_TO_ATTR.get(prop) ?? prop);\n }\n allKnownEventsOfElement(tagName) {\n return Array.from(this._eventSchema.get(tagName.toLowerCase()) ?? []);\n }\n normalizeAnimationStyleProperty(propName) {\n return dashCaseToCamelCase(propName);\n }\n normalizeAnimationStyleValue(camelCaseProp, userProvidedProp, val) {\n let unit = '';\n const strVal = val.toString().trim();\n let errorMsg = null;\n if (_isPixelDimensionStyle(camelCaseProp) && val !== 0 && val !== '0') {\n if (typeof val === 'number') {\n unit = 'px';\n }\n else {\n const valAndSuffixMatch = val.match(/^[+-]?[\\d\\.]+([a-z]*)$/);\n if (valAndSuffixMatch && valAndSuffixMatch[1].length == 0) {\n errorMsg = `Please provide a CSS unit value for ${userProvidedProp}:${val}`;\n }\n }\n }\n return { error: errorMsg, value: strVal + unit };\n }\n}\nfunction _isPixelDimensionStyle(prop) {\n switch (prop) {\n case 'width':\n case 'height':\n case 'minWidth':\n case 'minHeight':\n case 'maxWidth':\n case 'maxHeight':\n case 'left':\n case 'top':\n case 'bottom':\n case 'right':\n case 'fontSize':\n case 'outlineWidth':\n case 'outlineOffset':\n case 'paddingTop':\n case 'paddingLeft':\n case 'paddingBottom':\n case 'paddingRight':\n case 'marginTop':\n case 'marginLeft':\n case 'marginBottom':\n case 'marginRight':\n case 'borderRadius':\n case 'borderWidth':\n case 'borderTopWidth':\n case 'borderLeftWidth':\n case 'borderRightWidth':\n case 'borderBottomWidth':\n case 'textIndent':\n return true;\n default:\n return false;\n }\n}\n\nclass HtmlTagDefinition {\n closedByChildren = {};\n contentType;\n closedByParent = false;\n implicitNamespacePrefix;\n isVoid;\n ignoreFirstLf;\n canSelfClose;\n preventNamespaceInheritance;\n constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false, } = {}) {\n if (closedByChildren && closedByChildren.length > 0) {\n closedByChildren.forEach((tagName) => (this.closedByChildren[tagName] = true));\n }\n this.isVoid = isVoid;\n this.closedByParent = closedByParent || isVoid;\n this.implicitNamespacePrefix = implicitNamespacePrefix || null;\n this.contentType = contentType;\n this.ignoreFirstLf = ignoreFirstLf;\n this.preventNamespaceInheritance = preventNamespaceInheritance;\n this.canSelfClose = canSelfClose ?? isVoid;\n }\n isClosedByChild(name) {\n return this.isVoid || name.toLowerCase() in this.closedByChildren;\n }\n getContentType(prefix) {\n if (typeof this.contentType === 'object') {\n const overrideType = prefix === undefined ? undefined : this.contentType[prefix];\n return overrideType ?? this.contentType.default;\n }\n return this.contentType;\n }\n}\nlet DEFAULT_TAG_DEFINITION;\n// see https://www.w3.org/TR/html51/syntax.html#optional-tags\n// This implementation does not fully conform to the HTML5 spec.\nlet TAG_DEFINITIONS;\nfunction getHtmlTagDefinition(tagName) {\n if (!TAG_DEFINITIONS) {\n DEFAULT_TAG_DEFINITION = new HtmlTagDefinition({ canSelfClose: true });\n TAG_DEFINITIONS = Object.assign(Object.create(null), {\n 'base': new HtmlTagDefinition({ isVoid: true }),\n 'meta': new HtmlTagDefinition({ isVoid: true }),\n 'area': new HtmlTagDefinition({ isVoid: true }),\n 'embed': new HtmlTagDefinition({ isVoid: true }),\n 'link': new HtmlTagDefinition({ isVoid: true }),\n 'img': new HtmlTagDefinition({ isVoid: true }),\n 'input': new HtmlTagDefinition({ isVoid: true }),\n 'param': new HtmlTagDefinition({ isVoid: true }),\n 'hr': new HtmlTagDefinition({ isVoid: true }),\n 'br': new HtmlTagDefinition({ isVoid: true }),\n 'source': new HtmlTagDefinition({ isVoid: true }),\n 'track': new HtmlTagDefinition({ isVoid: true }),\n 'wbr': new HtmlTagDefinition({ isVoid: true }),\n 'p': new HtmlTagDefinition({\n closedByChildren: [\n 'address',\n 'article',\n 'aside',\n 'blockquote',\n 'div',\n 'dl',\n 'fieldset',\n 'footer',\n 'form',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'header',\n 'hgroup',\n 'hr',\n 'main',\n 'nav',\n 'ol',\n 'p',\n 'pre',\n 'section',\n 'table',\n 'ul',\n ],\n closedByParent: true,\n }),\n 'thead': new HtmlTagDefinition({ closedByChildren: ['tbody', 'tfoot'] }),\n 'tbody': new HtmlTagDefinition({ closedByChildren: ['tbody', 'tfoot'], closedByParent: true }),\n 'tfoot': new HtmlTagDefinition({ closedByChildren: ['tbody'], closedByParent: true }),\n 'tr': new HtmlTagDefinition({ closedByChildren: ['tr'], closedByParent: true }),\n 'td': new HtmlTagDefinition({ closedByChildren: ['td', 'th'], closedByParent: true }),\n 'th': new HtmlTagDefinition({ closedByChildren: ['td', 'th'], closedByParent: true }),\n 'col': new HtmlTagDefinition({ isVoid: true }),\n 'svg': new HtmlTagDefinition({ implicitNamespacePrefix: 'svg' }),\n 'foreignObject': new HtmlTagDefinition({\n // Usually the implicit namespace here would be redundant since it will be inherited from\n // the parent `svg`, but we have to do it for `foreignObject`, because the way the parser\n // works is that the parent node of an end tag is its own start tag which means that\n // the `preventNamespaceInheritance` on `foreignObject` would have it default to the\n // implicit namespace which is `html`, unless specified otherwise.\n implicitNamespacePrefix: 'svg',\n // We want to prevent children of foreignObject from inheriting its namespace, because\n // the point of the element is to allow nodes from other namespaces to be inserted.\n preventNamespaceInheritance: true,\n }),\n 'math': new HtmlTagDefinition({ implicitNamespacePrefix: 'math' }),\n 'li': new HtmlTagDefinition({ closedByChildren: ['li'], closedByParent: true }),\n 'dt': new HtmlTagDefinition({ closedByChildren: ['dt', 'dd'] }),\n 'dd': new HtmlTagDefinition({ closedByChildren: ['dt', 'dd'], closedByParent: true }),\n 'rb': new HtmlTagDefinition({\n closedByChildren: ['rb', 'rt', 'rtc', 'rp'],\n closedByParent: true,\n }),\n 'rt': new HtmlTagDefinition({\n closedByChildren: ['rb', 'rt', 'rtc', 'rp'],\n closedByParent: true,\n }),\n 'rtc': new HtmlTagDefinition({ closedByChildren: ['rb', 'rtc', 'rp'], closedByParent: true }),\n 'rp': new HtmlTagDefinition({\n closedByChildren: ['rb', 'rt', 'rtc', 'rp'],\n closedByParent: true,\n }),\n 'optgroup': new HtmlTagDefinition({ closedByChildren: ['optgroup'], closedByParent: true }),\n 'option': new HtmlTagDefinition({\n closedByChildren: ['option', 'optgroup'],\n closedByParent: true,\n }),\n 'pre': new HtmlTagDefinition({ ignoreFirstLf: true }),\n 'listing': new HtmlTagDefinition({ ignoreFirstLf: true }),\n 'style': new HtmlTagDefinition({ contentType: TagContentType.RAW_TEXT }),\n 'script': new HtmlTagDefinition({ contentType: TagContentType.RAW_TEXT }),\n 'title': new HtmlTagDefinition({\n // The browser supports two separate `title` tags which have to use\n // a different content type: `HTMLTitleElement` and `SVGTitleElement`\n contentType: {\n default: TagContentType.ESCAPABLE_RAW_TEXT,\n svg: TagContentType.PARSABLE_DATA,\n },\n }),\n 'textarea': new HtmlTagDefinition({\n contentType: TagContentType.ESCAPABLE_RAW_TEXT,\n ignoreFirstLf: true,\n }),\n });\n new DomElementSchemaRegistry().allKnownElementNames().forEach((knownTagName) => {\n if (!TAG_DEFINITIONS[knownTagName] && getNsPrefix(knownTagName) === null) {\n TAG_DEFINITIONS[knownTagName] = new HtmlTagDefinition({ canSelfClose: false });\n }\n });\n }\n // We have to make both a case-sensitive and a case-insensitive lookup, because\n // HTML tag names are case insensitive, whereas some SVG tags are case sensitive.\n return (TAG_DEFINITIONS[tagName] ?? TAG_DEFINITIONS[tagName.toLowerCase()] ?? DEFAULT_TAG_DEFINITION);\n}\n\nconst TAG_TO_PLACEHOLDER_NAMES = {\n 'A': 'LINK',\n 'B': 'BOLD_TEXT',\n 'BR': 'LINE_BREAK',\n 'EM': 'EMPHASISED_TEXT',\n 'H1': 'HEADING_LEVEL1',\n 'H2': 'HEADING_LEVEL2',\n 'H3': 'HEADING_LEVEL3',\n 'H4': 'HEADING_LEVEL4',\n 'H5': 'HEADING_LEVEL5',\n 'H6': 'HEADING_LEVEL6',\n 'HR': 'HORIZONTAL_RULE',\n 'I': 'ITALIC_TEXT',\n 'LI': 'LIST_ITEM',\n 'LINK': 'MEDIA_LINK',\n 'OL': 'ORDERED_LIST',\n 'P': 'PARAGRAPH',\n 'Q': 'QUOTATION',\n 'S': 'STRIKETHROUGH_TEXT',\n 'SMALL': 'SMALL_TEXT',\n 'SUB': 'SUBSTRIPT',\n 'SUP': 'SUPERSCRIPT',\n 'TBODY': 'TABLE_BODY',\n 'TD': 'TABLE_CELL',\n 'TFOOT': 'TABLE_FOOTER',\n 'TH': 'TABLE_HEADER_CELL',\n 'THEAD': 'TABLE_HEADER',\n 'TR': 'TABLE_ROW',\n 'TT': 'MONOSPACED_TEXT',\n 'U': 'UNDERLINED_TEXT',\n 'UL': 'UNORDERED_LIST',\n};\n/**\n * Creates unique names for placeholder with different content.\n *\n * Returns the same placeholder name when the content is identical.\n */\nclass PlaceholderRegistry {\n // Count the occurrence of the base name top generate a unique name\n _placeHolderNameCounts = {};\n // Maps signature to placeholder names\n _signatureToName = {};\n getStartTagPlaceholderName(tag, attrs, isVoid) {\n const signature = this._hashTag(tag, attrs, isVoid);\n if (this._signatureToName[signature]) {\n return this._signatureToName[signature];\n }\n const upperTag = tag.toUpperCase();\n const baseName = TAG_TO_PLACEHOLDER_NAMES[upperTag] || `TAG_${upperTag}`;\n const name = this._generateUniqueName(isVoid ? baseName : `START_${baseName}`);\n this._signatureToName[signature] = name;\n return name;\n }\n getCloseTagPlaceholderName(tag) {\n const signature = this._hashClosingTag(tag);\n if (this._signatureToName[signature]) {\n return this._signatureToName[signature];\n }\n const upperTag = tag.toUpperCase();\n const baseName = TAG_TO_PLACEHOLDER_NAMES[upperTag] || `TAG_${upperTag}`;\n const name = this._generateUniqueName(`CLOSE_${baseName}`);\n this._signatureToName[signature] = name;\n return name;\n }\n getPlaceholderName(name, content) {\n const upperName = name.toUpperCase();\n const signature = `PH: ${upperName}=${content}`;\n if (this._signatureToName[signature]) {\n return this._signatureToName[signature];\n }\n const uniqueName = this._generateUniqueName(upperName);\n this._signatureToName[signature] = uniqueName;\n return uniqueName;\n }\n getUniquePlaceholder(name) {\n return this._generateUniqueName(name.toUpperCase());\n }\n getStartBlockPlaceholderName(name, parameters) {\n const signature = this._hashBlock(name, parameters);\n if (this._signatureToName[signature]) {\n return this._signatureToName[signature];\n }\n const placeholder = this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(name)}`);\n this._signatureToName[signature] = placeholder;\n return placeholder;\n }\n getCloseBlockPlaceholderName(name) {\n const signature = this._hashClosingBlock(name);\n if (this._signatureToName[signature]) {\n return this._signatureToName[signature];\n }\n const placeholder = this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(name)}`);\n this._signatureToName[signature] = placeholder;\n return placeholder;\n }\n // Generate a hash for a tag - does not take attribute order into account\n _hashTag(tag, attrs, isVoid) {\n const start = `<${tag}`;\n const strAttrs = Object.keys(attrs)\n .sort()\n .map((name) => ` ${name}=${attrs[name]}`)\n .join('');\n const end = isVoid ? '/>' : `></${tag}>`;\n return start + strAttrs + end;\n }\n _hashClosingTag(tag) {\n return this._hashTag(`/${tag}`, {}, false);\n }\n _hashBlock(name, parameters) {\n const params = parameters.length === 0 ? '' : ` (${parameters.sort().join('; ')})`;\n return `@${name}${params} {}`;\n }\n _hashClosingBlock(name) {\n return this._hashBlock(`close_${name}`, []);\n }\n _toSnakeCase(name) {\n return name.toUpperCase().replace(/[^A-Z0-9]/g, '_');\n }\n _generateUniqueName(base) {\n const seen = this._placeHolderNameCounts.hasOwnProperty(base);\n if (!seen) {\n this._placeHolderNameCounts[base] = 1;\n return base;\n }\n const id = this._placeHolderNameCounts[base];\n this._placeHolderNameCounts[base] = id + 1;\n return `${base}_${id}`;\n }\n}\n\nconst _expParser = new Parser(new Lexer());\n/**\n * Returns a function converting html nodes to an i18n Message given an interpolationConfig\n */\nfunction createI18nMessageFactory(interpolationConfig, containerBlocks, retainEmptyTokens, preserveExpressionWhitespace) {\n const visitor = new _I18nVisitor(_expParser, interpolationConfig, containerBlocks, retainEmptyTokens, preserveExpressionWhitespace);\n return (nodes, meaning, description, customId, visitNodeFn) => visitor.toI18nMessage(nodes, meaning, description, customId, visitNodeFn);\n}\nfunction noopVisitNodeFn(_html, i18n) {\n return i18n;\n}\nclass _I18nVisitor {\n _expressionParser;\n _interpolationConfig;\n _containerBlocks;\n _retainEmptyTokens;\n _preserveExpressionWhitespace;\n constructor(_expressionParser, _interpolationConfig, _containerBlocks, _retainEmptyTokens, _preserveExpressionWhitespace) {\n this._expressionParser = _expressionParser;\n this._interpolationConfig = _interpolationConfig;\n this._containerBlocks = _containerBlocks;\n this._retainEmptyTokens = _retainEmptyTokens;\n this._preserveExpressionWhitespace = _preserveExpressionWhitespace;\n }\n toI18nMessage(nodes, meaning = '', description = '', customId = '', visitNodeFn) {\n const context = {\n isIcu: nodes.length == 1 && nodes[0] instanceof Expansion,\n icuDepth: 0,\n placeholderRegistry: new PlaceholderRegistry(),\n placeholderToContent: {},\n placeholderToMessage: {},\n visitNodeFn: visitNodeFn || noopVisitNodeFn,\n };\n const i18nodes = visitAll(this, nodes, context);\n return new Message(i18nodes, context.placeholderToContent, context.placeholderToMessage, meaning, description, customId);\n }\n visitElement(el, context) {\n const children = visitAll(this, el.children, context);\n const attrs = {};\n el.attrs.forEach((attr) => {\n // Do not visit the attributes, translatable ones are top-level ASTs\n attrs[attr.name] = attr.value;\n });\n const isVoid = getHtmlTagDefinition(el.name).isVoid;\n const startPhName = context.placeholderRegistry.getStartTagPlaceholderName(el.name, attrs, isVoid);\n context.placeholderToContent[startPhName] = {\n text: el.startSourceSpan.toString(),\n sourceSpan: el.startSourceSpan,\n };\n let closePhName = '';\n if (!isVoid) {\n closePhName = context.placeholderRegistry.getCloseTagPlaceholderName(el.name);\n context.placeholderToContent[closePhName] = {\n text: `</${el.name}>`,\n sourceSpan: el.endSourceSpan ?? el.sourceSpan,\n };\n }\n const node = new TagPlaceholder(el.name, attrs, startPhName, closePhName, children, isVoid, el.sourceSpan, el.startSourceSpan, el.endSourceSpan);\n return context.visitNodeFn(el, node);\n }\n visitAttribute(attribute, context) {\n const node = attribute.valueTokens === undefined || attribute.valueTokens.length === 1\n ? new Text$2(attribute.value, attribute.valueSpan || attribute.sourceSpan)\n : this._visitTextWithInterpolation(attribute.valueTokens, attribute.valueSpan || attribute.sourceSpan, context, attribute.i18n);\n return context.visitNodeFn(attribute, node);\n }\n visitText(text, context) {\n const node = text.tokens.length === 1\n ? new Text$2(text.value, text.sourceSpan)\n : this._visitTextWithInterpolation(text.tokens, text.sourceSpan, context, text.i18n);\n return context.visitNodeFn(text, node);\n }\n visitComment(comment, context) {\n return null;\n }\n visitExpansion(icu, context) {\n context.icuDepth++;\n const i18nIcuCases = {};\n const i18nIcu = new Icu(icu.switchValue, icu.type, i18nIcuCases, icu.sourceSpan);\n icu.cases.forEach((caze) => {\n i18nIcuCases[caze.value] = new Container(caze.expression.map((node) => node.visit(this, context)), caze.expSourceSpan);\n });\n context.icuDepth--;\n if (context.isIcu || context.icuDepth > 0) {\n // Returns an ICU node when:\n // - the message (vs a part of the message) is an ICU message, or\n // - the ICU message is nested.\n const expPh = context.placeholderRegistry.getUniquePlaceholder(`VAR_${icu.type}`);\n i18nIcu.expressionPlaceholder = expPh;\n context.placeholderToContent[expPh] = {\n text: icu.switchValue,\n sourceSpan: icu.switchValueSourceSpan,\n };\n return context.visitNodeFn(icu, i18nIcu);\n }\n // Else returns a placeholder\n // ICU placeholders should not be replaced with their original content but with the their\n // translations.\n // TODO(vicb): add a html.Node -> i18n.Message cache to avoid having to re-create the msg\n const phName = context.placeholderRegistry.getPlaceholderName('ICU', icu.sourceSpan.toString());\n context.placeholderToMessage[phName] = this.toI18nMessage([icu], '', '', '', undefined);\n const node = new IcuPlaceholder(i18nIcu, phName, icu.sourceSpan);\n return context.visitNodeFn(icu, node);\n }\n visitExpansionCase(_icuCase, _context) {\n throw new Error('Unreachable code');\n }\n visitBlock(block, context) {\n const children = visitAll(this, block.children, context);\n if (this._containerBlocks.has(block.name)) {\n return new Container(children, block.sourceSpan);\n }\n const parameters = block.parameters.map((param) => param.expression);\n const startPhName = context.placeholderRegistry.getStartBlockPlaceholderName(block.name, parameters);\n const closePhName = context.placeholderRegistry.getCloseBlockPlaceholderName(block.name);\n context.placeholderToContent[startPhName] = {\n text: block.startSourceSpan.toString(),\n sourceSpan: block.startSourceSpan,\n };\n context.placeholderToContent[closePhName] = {\n text: block.endSourceSpan ? block.endSourceSpan.toString() : '}',\n sourceSpan: block.endSourceSpan ?? block.sourceSpan,\n };\n const node = new BlockPlaceholder(block.name, parameters, startPhName, closePhName, children, block.sourceSpan, block.startSourceSpan, block.endSourceSpan);\n return context.visitNodeFn(block, node);\n }\n visitBlockParameter(_parameter, _context) {\n throw new Error('Unreachable code');\n }\n visitLetDeclaration(decl, context) {\n return null;\n }\n /**\n * Convert, text and interpolated tokens up into text and placeholder pieces.\n *\n * @param tokens The text and interpolated tokens.\n * @param sourceSpan The span of the whole of the `text` string.\n * @param context The current context of the visitor, used to compute and store placeholders.\n * @param previousI18n Any i18n metadata associated with this `text` from a previous pass.\n */\n _visitTextWithInterpolation(tokens, sourceSpan, context, previousI18n) {\n // Return a sequence of `Text` and `Placeholder` nodes grouped in a `Container`.\n const nodes = [];\n // We will only create a container if there are actually interpolations,\n // so this flag tracks that.\n let hasInterpolation = false;\n for (const token of tokens) {\n switch (token.type) {\n case 8 /* TokenType.INTERPOLATION */:\n case 17 /* TokenType.ATTR_VALUE_INTERPOLATION */:\n hasInterpolation = true;\n const [startMarker, expression, endMarker] = token.parts;\n const baseName = extractPlaceholderName(expression) || 'INTERPOLATION';\n const phName = context.placeholderRegistry.getPlaceholderName(baseName, expression);\n if (this._preserveExpressionWhitespace) {\n context.placeholderToContent[phName] = {\n text: token.parts.join(''),\n sourceSpan: token.sourceSpan,\n };\n nodes.push(new Placeholder(expression, phName, token.sourceSpan));\n }\n else {\n const normalized = this.normalizeExpression(token);\n context.placeholderToContent[phName] = {\n text: `${startMarker}${normalized}${endMarker}`,\n sourceSpan: token.sourceSpan,\n };\n nodes.push(new Placeholder(normalized, phName, token.sourceSpan));\n }\n break;\n default:\n // Try to merge text tokens with previous tokens. We do this even for all tokens\n // when `retainEmptyTokens == true` because whitespace tokens may have non-zero\n // length, but will be trimmed by `WhitespaceVisitor` in one extraction pass and\n // be considered \"empty\" there. Therefore a whitespace token with\n // `retainEmptyTokens === true` should be treated like an empty token and either\n // retained or merged into the previous node. Since extraction does two passes with\n // different trimming behavior, the second pass needs to have identical node count\n // to reuse source spans, so we need this check to get the same answer when both\n // trimming and not trimming.\n if (token.parts[0].length > 0 || this._retainEmptyTokens) {\n // This token is text or an encoded entity.\n // If it is following on from a previous text node then merge it into that node\n // Otherwise, if it is following an interpolation, then add a new node.\n const previous = nodes[nodes.length - 1];\n if (previous instanceof Text$2) {\n previous.value += token.parts[0];\n previous.sourceSpan = new ParseSourceSpan(previous.sourceSpan.start, token.sourceSpan.end, previous.sourceSpan.fullStart, previous.sourceSpan.details);\n }\n else {\n nodes.push(new Text$2(token.parts[0], token.sourceSpan));\n }\n }\n else {\n // Retain empty tokens to avoid breaking dropping entire nodes such that source\n // spans should not be reusable across multiple parses of a template. We *should*\n // do this all the time, however we need to maintain backwards compatibility\n // with existing message IDs so we can't do it by default and should only enable\n // this when removing significant whitespace.\n if (this._retainEmptyTokens) {\n nodes.push(new Text$2(token.parts[0], token.sourceSpan));\n }\n }\n break;\n }\n }\n if (hasInterpolation) {\n // Whitespace removal may have invalidated the interpolation source-spans.\n reusePreviousSourceSpans(nodes, previousI18n);\n return new Container(nodes, sourceSpan);\n }\n else {\n return nodes[0];\n }\n }\n // Normalize expression whitespace by parsing and re-serializing it. This makes\n // message IDs more durable to insignificant whitespace changes.\n normalizeExpression(token) {\n const expression = token.parts[1];\n const expr = this._expressionParser.parseBinding(expression, \n /* location */ token.sourceSpan.start.toString(), \n /* absoluteOffset */ token.sourceSpan.start.offset, this._interpolationConfig);\n return serialize(expr);\n }\n}\n/**\n * Re-use the source-spans from `previousI18n` metadata for the `nodes`.\n *\n * Whitespace removal can invalidate the source-spans of interpolation nodes, so we\n * reuse the source-span stored from a previous pass before the whitespace was removed.\n *\n * @param nodes The `Text` and `Placeholder` nodes to be processed.\n * @param previousI18n Any i18n metadata for these `nodes` stored from a previous pass.\n */\nfunction reusePreviousSourceSpans(nodes, previousI18n) {\n if (previousI18n instanceof Message) {\n // The `previousI18n` is an i18n `Message`, so we are processing an `Attribute` with i18n\n // metadata. The `Message` should consist only of a single `Container` that contains the\n // parts (`Text` and `Placeholder`) to process.\n assertSingleContainerMessage(previousI18n);\n previousI18n = previousI18n.nodes[0];\n }\n if (previousI18n instanceof Container) {\n // The `previousI18n` is a `Container`, which means that this is a second i18n extraction pass\n // after whitespace has been removed from the AST nodes.\n assertEquivalentNodes(previousI18n.children, nodes);\n // Reuse the source-spans from the first pass.\n for (let i = 0; i < nodes.length; i++) {\n nodes[i].sourceSpan = previousI18n.children[i].sourceSpan;\n }\n }\n}\n/**\n * Asserts that the `message` contains exactly one `Container` node.\n */\nfunction assertSingleContainerMessage(message) {\n const nodes = message.nodes;\n if (nodes.length !== 1 || !(nodes[0] instanceof Container)) {\n throw new Error('Unexpected previous i18n message - expected it to consist of only a single `Container` node.');\n }\n}\n/**\n * Asserts that the `previousNodes` and `node` collections have the same number of elements and\n * corresponding elements have the same node type.\n */\nfunction assertEquivalentNodes(previousNodes, nodes) {\n if (previousNodes.length !== nodes.length) {\n throw new Error(`\nThe number of i18n message children changed between first and second pass.\n\nFirst pass (${previousNodes.length} tokens):\n${previousNodes.map((node) => `\"${node.sourceSpan.toString()}\"`).join('\\n')}\n\nSecond pass (${nodes.length} tokens):\n${nodes.map((node) => `\"${node.sourceSpan.toString()}\"`).join('\\n')}\n `.trim());\n }\n if (previousNodes.some((node, i) => nodes[i].constructor !== node.constructor)) {\n throw new Error('The types of the i18n message children changed between first and second pass.');\n }\n}\nconst _CUSTOM_PH_EXP = /\\/\\/[\\s\\S]*i18n[\\s\\S]*\\([\\s\\S]*ph[\\s\\S]*=[\\s\\S]*(\"|')([\\s\\S]*?)\\1[\\s\\S]*\\)/g;\nfunction extractPlaceholderName(input) {\n return input.split(_CUSTOM_PH_EXP)[2];\n}\n\n/**\n * An i18n error.\n */\nclass I18nError extends ParseError {\n constructor(span, msg) {\n super(span, msg);\n }\n}\n\n/**\n * Set of tagName|propertyName corresponding to Trusted Types sinks. Properties applying to all\n * tags use '*'.\n *\n * Extracted from, and should be kept in sync with\n * https://w3c.github.io/webappsec-trusted-types/dist/spec/#integrations\n */\nconst TRUSTED_TYPES_SINKS = new Set([\n // NOTE: All strings in this set *must* be lowercase!\n // TrustedHTML\n 'iframe|srcdoc',\n '*|innerhtml',\n '*|outerhtml',\n // NB: no TrustedScript here, as the corresponding tags are stripped by the compiler.\n // TrustedScriptURL\n 'embed|src',\n 'object|codebase',\n 'object|data',\n]);\n/**\n * isTrustedTypesSink returns true if the given property on the given DOM tag is a Trusted Types\n * sink. In that case, use `ElementSchemaRegistry.securityContext` to determine which particular\n * Trusted Type is required for values passed to the sink:\n * - SecurityContext.HTML corresponds to TrustedHTML\n * - SecurityContext.RESOURCE_URL corresponds to TrustedScriptURL\n */\nfunction isTrustedTypesSink(tagName, propName) {\n // Make sure comparisons are case insensitive, so that case differences between attribute and\n // property names do not have a security impact.\n tagName = tagName.toLowerCase();\n propName = propName.toLowerCase();\n return (TRUSTED_TYPES_SINKS.has(tagName + '|' + propName) || TRUSTED_TYPES_SINKS.has('*|' + propName));\n}\n\nconst setI18nRefs = (originalNodeMap) => {\n return (trimmedNode, i18nNode) => {\n // We need to set i18n properties on the original, untrimmed AST nodes. The i18n nodes needs to\n // use the trimmed content for message IDs to make messages more stable to whitespace changes.\n // But we don't want to actually trim the content, so we can't use the trimmed HTML AST for\n // general code gen. Instead we map the trimmed HTML AST back to the original AST and then\n // attach the i18n nodes so we get trimmed i18n nodes on the original (untrimmed) HTML AST.\n const originalNode = originalNodeMap.get(trimmedNode) ?? trimmedNode;\n if (originalNode instanceof NodeWithI18n) {\n if (i18nNode instanceof IcuPlaceholder && originalNode.i18n instanceof Message) {\n // This html node represents an ICU but this is a second processing pass, and the legacy id\n // was computed in the previous pass and stored in the `i18n` property as a message.\n // We are about to wipe out that property so capture the previous message to be reused when\n // generating the message for this ICU later. See `_generateI18nMessage()`.\n i18nNode.previousMessage = originalNode.i18n;\n }\n originalNode.i18n = i18nNode;\n }\n return i18nNode;\n };\n};\n/**\n * This visitor walks over HTML parse tree and converts information stored in\n * i18n-related attributes (\"i18n\" and \"i18n-*\") into i18n meta object that is\n * stored with other element's and attribute's information.\n */\nclass I18nMetaVisitor {\n interpolationConfig;\n keepI18nAttrs;\n enableI18nLegacyMessageIdFormat;\n containerBlocks;\n preserveSignificantWhitespace;\n retainEmptyTokens;\n // whether visited nodes contain i18n information\n hasI18nMeta = false;\n _errors = [];\n constructor(interpolationConfig = DEFAULT_INTERPOLATION_CONFIG, keepI18nAttrs = false, enableI18nLegacyMessageIdFormat = false, containerBlocks = DEFAULT_CONTAINER_BLOCKS, preserveSignificantWhitespace = true, \n // When dropping significant whitespace we need to retain empty tokens or\n // else we won't be able to reuse source spans because empty tokens would be\n // removed and cause a mismatch. Unfortunately this still needs to be\n // configurable and sometimes needs to be set independently in order to make\n // sure the number of nodes don't change between parses, even when\n // `preserveSignificantWhitespace` changes.\n retainEmptyTokens = !preserveSignificantWhitespace) {\n this.interpolationConfig = interpolationConfig;\n this.keepI18nAttrs = keepI18nAttrs;\n this.enableI18nLegacyMessageIdFormat = enableI18nLegacyMessageIdFormat;\n this.containerBlocks = containerBlocks;\n this.preserveSignificantWhitespace = preserveSignificantWhitespace;\n this.retainEmptyTokens = retainEmptyTokens;\n }\n _generateI18nMessage(nodes, meta = '', visitNodeFn) {\n const { meaning, description, customId } = this._parseMetadata(meta);\n const createI18nMessage = createI18nMessageFactory(this.interpolationConfig, this.containerBlocks, this.retainEmptyTokens, \n /* preserveExpressionWhitespace */ this.preserveSignificantWhitespace);\n const message = createI18nMessage(nodes, meaning, description, customId, visitNodeFn);\n this._setMessageId(message, meta);\n this._setLegacyIds(message, meta);\n return message;\n }\n visitAllWithErrors(nodes) {\n const result = nodes.map((node) => node.visit(this, null));\n return new ParseTreeResult(result, this._errors);\n }\n visitElement(element) {\n let message = undefined;\n if (hasI18nAttrs(element)) {\n this.hasI18nMeta = true;\n const attrs = [];\n const attrsMeta = {};\n for (const attr of element.attrs) {\n if (attr.name === I18N_ATTR) {\n // root 'i18n' node attribute\n const i18n = element.i18n || attr.value;\n // Generate a new AST with whitespace trimmed, but also generate a map\n // to correlate each new node to its original so we can apply i18n\n // information to the original node based on the trimmed content.\n //\n // `WhitespaceVisitor` removes *insignificant* whitespace as well as\n // significant whitespace. Enabling this visitor should be conditional\n // on `preserveWhitespace` rather than `preserveSignificantWhitespace`,\n // however this would be a breaking change for existing behavior where\n // `preserveWhitespace` was not respected correctly when generating\n // message IDs. This is really a bug but one we need to keep to maintain\n // backwards compatibility.\n const originalNodeMap = new Map();\n const trimmedNodes = this.preserveSignificantWhitespace\n ? element.children\n : visitAllWithSiblings(new WhitespaceVisitor(false /* preserveSignificantWhitespace */, originalNodeMap), element.children);\n message = this._generateI18nMessage(trimmedNodes, i18n, setI18nRefs(originalNodeMap));\n if (message.nodes.length === 0) {\n // Ignore the message if it is empty.\n message = undefined;\n }\n // Store the message on the element\n element.i18n = message;\n }\n else if (attr.name.startsWith(I18N_ATTR_PREFIX)) {\n // 'i18n-*' attributes\n const name = attr.name.slice(I18N_ATTR_PREFIX.length);\n if (isTrustedTypesSink(element.name, name)) {\n this._reportError(attr, `Translating attribute '${name}' is disallowed for security reasons.`);\n }\n else {\n attrsMeta[name] = attr.value;\n }\n }\n else {\n // non-i18n attributes\n attrs.push(attr);\n }\n }\n // set i18n meta for attributes\n if (Object.keys(attrsMeta).length) {\n for (const attr of attrs) {\n const meta = attrsMeta[attr.name];\n // do not create translation for empty attributes\n if (meta !== undefined && attr.value) {\n attr.i18n = this._generateI18nMessage([attr], attr.i18n || meta);\n }\n }\n }\n if (!this.keepI18nAttrs) {\n // update element's attributes,\n // keeping only non-i18n related ones\n element.attrs = attrs;\n }\n }\n visitAll(this, element.children, message);\n return element;\n }\n visitExpansion(expansion, currentMessage) {\n let message;\n const meta = expansion.i18n;\n this.hasI18nMeta = true;\n if (meta instanceof IcuPlaceholder) {\n // set ICU placeholder name (e.g. \"ICU_1\"),\n // generated while processing root element contents,\n // so we can reference it when we output translation\n const name = meta.name;\n message = this._generateI18nMessage([expansion], meta);\n const icu = icuFromI18nMessage(message);\n icu.name = name;\n if (currentMessage !== null) {\n // Also update the placeholderToMessage map with this new message\n currentMessage.placeholderToMessage[name] = message;\n }\n }\n else {\n // ICU is a top level message, try to use metadata from container element if provided via\n // `context` argument. Note: context may not be available for standalone ICUs (without\n // wrapping element), so fallback to ICU metadata in this case.\n message = this._generateI18nMessage([expansion], currentMessage || meta);\n }\n expansion.i18n = message;\n return expansion;\n }\n visitText(text) {\n return text;\n }\n visitAttribute(attribute) {\n return attribute;\n }\n visitComment(comment) {\n return comment;\n }\n visitExpansionCase(expansionCase) {\n return expansionCase;\n }\n visitBlock(block, context) {\n visitAll(this, block.children, context);\n return block;\n }\n visitBlockParameter(parameter, context) {\n return parameter;\n }\n visitLetDeclaration(decl, context) {\n return decl;\n }\n /**\n * Parse the general form `meta` passed into extract the explicit metadata needed to create a\n * `Message`.\n *\n * There are three possibilities for the `meta` variable\n * 1) a string from an `i18n` template attribute: parse it to extract the metadata values.\n * 2) a `Message` from a previous processing pass: reuse the metadata values in the message.\n * 4) other: ignore this and just process the message metadata as normal\n *\n * @param meta the bucket that holds information about the message\n * @returns the parsed metadata.\n */\n _parseMetadata(meta) {\n return typeof meta === 'string'\n ? parseI18nMeta(meta)\n : meta instanceof Message\n ? meta\n : {};\n }\n /**\n * Generate (or restore) message id if not specified already.\n */\n _setMessageId(message, meta) {\n if (!message.id) {\n message.id = (meta instanceof Message && meta.id) || decimalDigest(message);\n }\n }\n /**\n * Update the `message` with a `legacyId` if necessary.\n *\n * @param message the message whose legacy id should be set\n * @param meta information about the message being processed\n */\n _setLegacyIds(message, meta) {\n if (this.enableI18nLegacyMessageIdFormat) {\n message.legacyIds = [computeDigest(message), computeDecimalDigest(message)];\n }\n else if (typeof meta !== 'string') {\n // This occurs if we are doing the 2nd pass after whitespace removal (see `parseTemplate()` in\n // `packages/compiler/src/render3/view/template.ts`).\n // In that case we want to reuse the legacy message generated in the 1st pass (see\n // `setI18nRefs()`).\n const previousMessage = meta instanceof Message\n ? meta\n : meta instanceof IcuPlaceholder\n ? meta.previousMessage\n : undefined;\n message.legacyIds = previousMessage ? previousMessage.legacyIds : [];\n }\n }\n _reportError(node, msg) {\n this._errors.push(new I18nError(node.sourceSpan, msg));\n }\n}\n/** I18n separators for metadata **/\nconst I18N_MEANING_SEPARATOR = '|';\nconst I18N_ID_SEPARATOR = '@@';\n/**\n * Parses i18n metas like:\n * - \"@@id\",\n * - \"description[@@id]\",\n * - \"meaning|description[@@id]\"\n * and returns an object with parsed output.\n *\n * @param meta String that represents i18n meta\n * @returns Object with id, meaning and description fields\n */\nfunction parseI18nMeta(meta = '') {\n let customId;\n let meaning;\n let description;\n meta = meta.trim();\n if (meta) {\n const idIndex = meta.indexOf(I18N_ID_SEPARATOR);\n const descIndex = meta.indexOf(I18N_MEANING_SEPARATOR);\n let meaningAndDesc;\n [meaningAndDesc, customId] =\n idIndex > -1 ? [meta.slice(0, idIndex), meta.slice(idIndex + 2)] : [meta, ''];\n [meaning, description] =\n descIndex > -1\n ? [meaningAndDesc.slice(0, descIndex), meaningAndDesc.slice(descIndex + 1)]\n : ['', meaningAndDesc];\n }\n return { customId, meaning, description };\n}\n// Converts i18n meta information for a message (id, description, meaning)\n// to a JsDoc statement formatted as expected by the Closure compiler.\nfunction i18nMetaToJSDoc(meta) {\n const tags = [];\n if (meta.description) {\n tags.push({ tagName: \"desc\" /* o.JSDocTagName.Desc */, text: meta.description });\n }\n else {\n // Suppress the JSCompiler warning that a `@desc` was not given for this message.\n tags.push({ tagName: \"suppress\" /* o.JSDocTagName.Suppress */, text: '{msgDescriptions}' });\n }\n if (meta.meaning) {\n tags.push({ tagName: \"meaning\" /* o.JSDocTagName.Meaning */, text: meta.meaning });\n }\n return jsDocComment(tags);\n}\n\n/** Closure uses `goog.getMsg(message)` to lookup translations */\nconst GOOG_GET_MSG = 'goog.getMsg';\n/**\n * Generates a `goog.getMsg()` statement and reassignment. The template:\n *\n * ```html\n * <div i18n>Sent from {{ sender }} to <span class=\"receiver\">{{ receiver }}</span></div>\n * ```\n *\n * Generates:\n *\n * ```ts\n * const MSG_FOO = goog.getMsg(\n * // Message template.\n * 'Sent from {$interpolation} to {$startTagSpan}{$interpolation_1}{$closeTagSpan}.',\n * // Placeholder values, set to magic strings which get replaced by the Angular runtime.\n * {\n * 'interpolation': '\\uFFFD0\\uFFFD',\n * 'startTagSpan': '\\uFFFD1\\uFFFD',\n * 'interpolation_1': '\\uFFFD2\\uFFFD',\n * 'closeTagSpan': '\\uFFFD3\\uFFFD',\n * },\n * // Options bag.\n * {\n * // Maps each placeholder to the original Angular source code which generates it's value.\n * original_code: {\n * 'interpolation': '{{ sender }}',\n * 'startTagSpan': '<span class=\"receiver\">',\n * 'interpolation_1': '{{ receiver }}',\n * 'closeTagSpan': '</span>',\n * },\n * },\n * );\n * const I18N_0 = MSG_FOO;\n * ```\n */\nfunction createGoogleGetMsgStatements(variable$1, message, closureVar, placeholderValues) {\n const messageString = serializeI18nMessageForGetMsg(message);\n const args = [literal(messageString)];\n if (Object.keys(placeholderValues).length) {\n // Message template parameters containing the magic strings replaced by the Angular runtime with\n // real data, e.g. `{'interpolation': '\\uFFFD0\\uFFFD'}`.\n args.push(mapLiteral(formatI18nPlaceholderNamesInMap(placeholderValues, true /* useCamelCase */), true /* quoted */));\n // Message options object, which contains original source code for placeholders (as they are\n // present in a template, e.g.\n // `{original_code: {'interpolation': '{{ name }}', 'startTagSpan': '<span>'}}`.\n args.push(mapLiteral({\n original_code: literalMap(Object.keys(placeholderValues).map((param) => ({\n key: formatI18nPlaceholderName(param),\n quoted: true,\n value: message.placeholders[param]\n ? // Get source span for typical placeholder if it exists.\n literal(message.placeholders[param].sourceSpan.toString())\n : // Otherwise must be an ICU expression, get it's source span.\n literal(message.placeholderToMessage[param].nodes\n .map((node) => node.sourceSpan.toString())\n .join('')),\n }))),\n }));\n }\n // /**\n // * @desc description of message\n // * @meaning meaning of message\n // */\n // const MSG_... = goog.getMsg(..);\n // I18N_X = MSG_...;\n const googGetMsgStmt = closureVar.set(variable(GOOG_GET_MSG).callFn(args)).toConstDecl();\n googGetMsgStmt.addLeadingComment(i18nMetaToJSDoc(message));\n const i18nAssignmentStmt = new ExpressionStatement(variable$1.set(closureVar));\n return [googGetMsgStmt, i18nAssignmentStmt];\n}\n/**\n * This visitor walks over i18n tree and generates its string representation, including ICUs and\n * placeholders in `{$placeholder}` (for plain messages) or `{PLACEHOLDER}` (inside ICUs) format.\n */\nclass GetMsgSerializerVisitor {\n formatPh(value) {\n return `{$${formatI18nPlaceholderName(value)}}`;\n }\n visitText(text) {\n return text.value;\n }\n visitContainer(container) {\n return container.children.map((child) => child.visit(this)).join('');\n }\n visitIcu(icu) {\n return serializeIcuNode(icu);\n }\n visitTagPlaceholder(ph) {\n return ph.isVoid\n ? this.formatPh(ph.startName)\n : `${this.formatPh(ph.startName)}${ph.children\n .map((child) => child.visit(this))\n .join('')}${this.formatPh(ph.closeName)}`;\n }\n visitPlaceholder(ph) {\n return this.formatPh(ph.name);\n }\n visitBlockPlaceholder(ph) {\n return `${this.formatPh(ph.startName)}${ph.children\n .map((child) => child.visit(this))\n .join('')}${this.formatPh(ph.closeName)}`;\n }\n visitIcuPlaceholder(ph, context) {\n return this.formatPh(ph.name);\n }\n}\nconst serializerVisitor = new GetMsgSerializerVisitor();\nfunction serializeI18nMessageForGetMsg(message) {\n return message.nodes.map((node) => node.visit(serializerVisitor, null)).join('');\n}\n\nfunction createLocalizeStatements(variable, message, params) {\n const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);\n const sourceSpan = getSourceSpan(message);\n const expressions = placeHolders.map((ph) => params[ph.text]);\n const localizedString$1 = localizedString(message, messageParts, placeHolders, expressions, sourceSpan);\n const variableInitialization = variable.set(localizedString$1);\n return [new ExpressionStatement(variableInitialization)];\n}\n/**\n * This visitor walks over an i18n tree, capturing literal strings and placeholders.\n *\n * The result can be used for generating the `$localize` tagged template literals.\n */\nclass LocalizeSerializerVisitor {\n placeholderToMessage;\n pieces;\n constructor(placeholderToMessage, pieces) {\n this.placeholderToMessage = placeholderToMessage;\n this.pieces = pieces;\n }\n visitText(text) {\n if (this.pieces[this.pieces.length - 1] instanceof LiteralPiece) {\n // Two literal pieces in a row means that there was some comment node in-between.\n this.pieces[this.pieces.length - 1].text += text.value;\n }\n else {\n const sourceSpan = new ParseSourceSpan(text.sourceSpan.fullStart, text.sourceSpan.end, text.sourceSpan.fullStart, text.sourceSpan.details);\n this.pieces.push(new LiteralPiece(text.value, sourceSpan));\n }\n }\n visitContainer(container) {\n container.children.forEach((child) => child.visit(this));\n }\n visitIcu(icu) {\n this.pieces.push(new LiteralPiece(serializeIcuNode(icu), icu.sourceSpan));\n }\n visitTagPlaceholder(ph) {\n this.pieces.push(this.createPlaceholderPiece(ph.startName, ph.startSourceSpan ?? ph.sourceSpan));\n if (!ph.isVoid) {\n ph.children.forEach((child) => child.visit(this));\n this.pieces.push(this.createPlaceholderPiece(ph.closeName, ph.endSourceSpan ?? ph.sourceSpan));\n }\n }\n visitPlaceholder(ph) {\n this.pieces.push(this.createPlaceholderPiece(ph.name, ph.sourceSpan));\n }\n visitBlockPlaceholder(ph) {\n this.pieces.push(this.createPlaceholderPiece(ph.startName, ph.startSourceSpan ?? ph.sourceSpan));\n ph.children.forEach((child) => child.visit(this));\n this.pieces.push(this.createPlaceholderPiece(ph.closeName, ph.endSourceSpan ?? ph.sourceSpan));\n }\n visitIcuPlaceholder(ph) {\n this.pieces.push(this.createPlaceholderPiece(ph.name, ph.sourceSpan, this.placeholderToMessage[ph.name]));\n }\n createPlaceholderPiece(name, sourceSpan, associatedMessage) {\n return new PlaceholderPiece(formatI18nPlaceholderName(name, /* useCamelCase */ false), sourceSpan, associatedMessage);\n }\n}\n/**\n * Serialize an i18n message into two arrays: messageParts and placeholders.\n *\n * These arrays will be used to generate `$localize` tagged template literals.\n *\n * @param message The message to be serialized.\n * @returns an object containing the messageParts and placeholders.\n */\nfunction serializeI18nMessageForLocalize(message) {\n const pieces = [];\n const serializerVisitor = new LocalizeSerializerVisitor(message.placeholderToMessage, pieces);\n message.nodes.forEach((node) => node.visit(serializerVisitor));\n return processMessagePieces(pieces);\n}\nfunction getSourceSpan(message) {\n const startNode = message.nodes[0];\n const endNode = message.nodes[message.nodes.length - 1];\n return new ParseSourceSpan(startNode.sourceSpan.fullStart, endNode.sourceSpan.end, startNode.sourceSpan.fullStart, startNode.sourceSpan.details);\n}\n/**\n * Convert the list of serialized MessagePieces into two arrays.\n *\n * One contains the literal string pieces and the other the placeholders that will be replaced by\n * expressions when rendering `$localize` tagged template literals.\n *\n * @param pieces The pieces to process.\n * @returns an object containing the messageParts and placeholders.\n */\nfunction processMessagePieces(pieces) {\n const messageParts = [];\n const placeHolders = [];\n if (pieces[0] instanceof PlaceholderPiece) {\n // The first piece was a placeholder so we need to add an initial empty message part.\n messageParts.push(createEmptyMessagePart(pieces[0].sourceSpan.start));\n }\n for (let i = 0; i < pieces.length; i++) {\n const part = pieces[i];\n if (part instanceof LiteralPiece) {\n messageParts.push(part);\n }\n else {\n placeHolders.push(part);\n if (pieces[i - 1] instanceof PlaceholderPiece) {\n // There were two placeholders in a row, so we need to add an empty message part.\n messageParts.push(createEmptyMessagePart(pieces[i - 1].sourceSpan.end));\n }\n }\n }\n if (pieces[pieces.length - 1] instanceof PlaceholderPiece) {\n // The last piece was a placeholder so we need to add a final empty message part.\n messageParts.push(createEmptyMessagePart(pieces[pieces.length - 1].sourceSpan.end));\n }\n return { messageParts, placeHolders };\n}\nfunction createEmptyMessagePart(location) {\n return new LiteralPiece('', new ParseSourceSpan(location, location));\n}\n\n/** Name of the global variable that is used to determine if we use Closure translations or not */\nconst NG_I18N_CLOSURE_MODE = 'ngI18nClosureMode';\n/**\n * Prefix for non-`goog.getMsg` i18n-related vars.\n * Note: the prefix uses lowercase characters intentionally due to a Closure behavior that\n * considers variables like `I18N_0` as constants and throws an error when their value changes.\n */\nconst TRANSLATION_VAR_PREFIX = 'i18n_';\n/** Prefix of ICU expressions for post processing */\nconst I18N_ICU_MAPPING_PREFIX = 'I18N_EXP_';\n/**\n * The escape sequence used for message param values.\n */\nconst ESCAPE = '\\uFFFD';\n/* Closure variables holding messages must be named `MSG_[A-Z0-9]+` */\nconst CLOSURE_TRANSLATION_VAR_PREFIX = 'MSG_';\n/**\n * Generates a prefix for translation const name.\n *\n * @param extra Additional local prefix that should be injected into translation var name\n * @returns Complete translation const prefix\n */\nfunction getTranslationConstPrefix(extra) {\n return `${CLOSURE_TRANSLATION_VAR_PREFIX}${extra}`.toUpperCase();\n}\n/**\n * Generate AST to declare a variable. E.g. `var I18N_1;`.\n * @param variable the name of the variable to declare.\n */\nfunction declareI18nVariable(variable) {\n return new DeclareVarStmt(variable.name, undefined, INFERRED_TYPE, undefined, variable.sourceSpan);\n}\n/**\n * Lifts i18n properties into the consts array.\n * TODO: Can we use `ConstCollectedExpr`?\n * TODO: The way the various attributes are linked together is very complex. Perhaps we could\n * simplify the process, maybe by combining the context and message ops?\n */\nfunction collectI18nConsts(job) {\n const fileBasedI18nSuffix = job.relativeContextFilePath.replace(/[^A-Za-z0-9]/g, '_').toUpperCase() + '_';\n // Step One: Build up various lookup maps we need to collect all the consts.\n // Context Xref -> Extracted Attribute Ops\n const extractedAttributesByI18nContext = new Map();\n // Element/ElementStart Xref -> I18n Attributes config op\n const i18nAttributesByElement = new Map();\n // Element/ElementStart Xref -> All I18n Expression ops for attrs on that target\n const i18nExpressionsByElement = new Map();\n // I18n Message Xref -> I18n Message Op (TODO: use a central op map)\n const messages = new Map();\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n if (op.kind === OpKind.ExtractedAttribute && op.i18nContext !== null) {\n const attributes = extractedAttributesByI18nContext.get(op.i18nContext) ?? [];\n attributes.push(op);\n extractedAttributesByI18nContext.set(op.i18nContext, attributes);\n }\n else if (op.kind === OpKind.I18nAttributes) {\n i18nAttributesByElement.set(op.target, op);\n }\n else if (op.kind === OpKind.I18nExpression &&\n op.usage === I18nExpressionFor.I18nAttribute) {\n const expressions = i18nExpressionsByElement.get(op.target) ?? [];\n expressions.push(op);\n i18nExpressionsByElement.set(op.target, expressions);\n }\n else if (op.kind === OpKind.I18nMessage) {\n messages.set(op.xref, op);\n }\n }\n }\n // Step Two: Serialize the extracted i18n messages for root i18n blocks and i18n attributes into\n // the const array.\n //\n // Also, each i18n message will have a variable expression that can refer to its\n // value. Store these expressions in the appropriate place:\n // 1. For normal i18n content, it also goes in the const array. We save the const index to use\n // later.\n // 2. For extracted attributes, it becomes the value of the extracted attribute instruction.\n // 3. For i18n bindings, it will go in a separate const array instruction below; for now, we just\n // save it.\n const i18nValuesByContext = new Map();\n const messageConstIndices = new Map();\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === OpKind.I18nMessage) {\n if (op.messagePlaceholder === null) {\n const { mainVar, statements } = collectMessage(job, fileBasedI18nSuffix, messages, op);\n if (op.i18nBlock !== null) {\n // This is a regular i18n message with a corresponding i18n block. Collect it into the\n // const array.\n const i18nConst = job.addConst(mainVar, statements);\n messageConstIndices.set(op.i18nBlock, i18nConst);\n }\n else {\n // This is an i18n attribute. Extract the initializers into the const pool.\n job.constsInitializers.push(...statements);\n // Save the i18n variable value for later.\n i18nValuesByContext.set(op.i18nContext, mainVar);\n // This i18n message may correspond to an individual extracted attribute. If so, The\n // value of that attribute is updated to read the extracted i18n variable.\n const attributesForMessage = extractedAttributesByI18nContext.get(op.i18nContext);\n if (attributesForMessage !== undefined) {\n for (const attr of attributesForMessage) {\n attr.expression = mainVar.clone();\n }\n }\n }\n }\n OpList.remove(op);\n }\n }\n }\n // Step Three: Serialize I18nAttributes configurations into the const array. Each I18nAttributes\n // instruction has a config array, which contains k-v pairs describing each binding name, and the\n // i18n variable that provides the value.\n for (const unit of job.units) {\n for (const elem of unit.create) {\n if (isElementOrContainerOp(elem)) {\n const i18nAttributes = i18nAttributesByElement.get(elem.xref);\n if (i18nAttributes === undefined) {\n // This element is not associated with an i18n attributes configuration instruction.\n continue;\n }\n let i18nExpressions = i18nExpressionsByElement.get(elem.xref);\n if (i18nExpressions === undefined) {\n // Unused i18nAttributes should have already been removed.\n // TODO: Should the removal of those dead instructions be merged with this phase?\n throw new Error('AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction');\n }\n // Find expressions for all the unique property names, removing duplicates.\n const seenPropertyNames = new Set();\n i18nExpressions = i18nExpressions.filter((i18nExpr) => {\n const seen = seenPropertyNames.has(i18nExpr.name);\n seenPropertyNames.add(i18nExpr.name);\n return !seen;\n });\n const i18nAttributeConfig = i18nExpressions.flatMap((i18nExpr) => {\n const i18nExprValue = i18nValuesByContext.get(i18nExpr.context);\n if (i18nExprValue === undefined) {\n throw new Error(\"AssertionError: Could not find i18n expression's value\");\n }\n return [literal(i18nExpr.name), i18nExprValue];\n });\n i18nAttributes.i18nAttributesConfig = job.addConst(new LiteralArrayExpr(i18nAttributeConfig));\n }\n }\n }\n // Step Four: Propagate the extracted const index into i18n ops that messages were extracted from.\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === OpKind.I18nStart) {\n const msgIndex = messageConstIndices.get(op.root);\n if (msgIndex === undefined) {\n throw new Error('AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?');\n }\n op.messageIndex = msgIndex;\n }\n }\n }\n}\n/**\n * Collects the given message into a set of statements that can be added to the const array.\n * This will recursively collect any sub-messages referenced from the parent message as well.\n */\nfunction collectMessage(job, fileBasedI18nSuffix, messages, messageOp) {\n // Recursively collect any sub-messages, record each sub-message's main variable under its\n // placeholder so that we can add them to the params for the parent message. It is possible\n // that multiple sub-messages will share the same placeholder, so we need to track an array of\n // variables for each placeholder.\n const statements = [];\n const subMessagePlaceholders = new Map();\n for (const subMessageId of messageOp.subMessages) {\n const subMessage = messages.get(subMessageId);\n const { mainVar: subMessageVar, statements: subMessageStatements } = collectMessage(job, fileBasedI18nSuffix, messages, subMessage);\n statements.push(...subMessageStatements);\n const subMessages = subMessagePlaceholders.get(subMessage.messagePlaceholder) ?? [];\n subMessages.push(subMessageVar);\n subMessagePlaceholders.set(subMessage.messagePlaceholder, subMessages);\n }\n addSubMessageParams(messageOp, subMessagePlaceholders);\n // Sort the params for consistency with TemaplateDefinitionBuilder output.\n messageOp.params = new Map([...messageOp.params.entries()].sort());\n const mainVar = variable(job.pool.uniqueName(TRANSLATION_VAR_PREFIX));\n // Closure Compiler requires const names to start with `MSG_` but disallows any other\n // const to start with `MSG_`. We define a variable starting with `MSG_` just for the\n // `goog.getMsg` call\n const closureVar = i18nGenerateClosureVar(job.pool, messageOp.message.id, fileBasedI18nSuffix, job.i18nUseExternalIds);\n let transformFn = undefined;\n // If nescessary, add a post-processing step and resolve any placeholder params that are\n // set in post-processing.\n if (messageOp.needsPostprocessing || messageOp.postprocessingParams.size > 0) {\n // Sort the post-processing params for consistency with TemaplateDefinitionBuilder output.\n const postprocessingParams = Object.fromEntries([...messageOp.postprocessingParams.entries()].sort());\n const formattedPostprocessingParams = formatI18nPlaceholderNamesInMap(postprocessingParams, \n /* useCamelCase */ false);\n const extraTransformFnParams = [];\n if (messageOp.postprocessingParams.size > 0) {\n extraTransformFnParams.push(mapLiteral(formattedPostprocessingParams, /* quoted */ true));\n }\n transformFn = (expr) => importExpr(Identifiers.i18nPostprocess).callFn([expr, ...extraTransformFnParams]);\n }\n // Add the message's statements\n statements.push(...getTranslationDeclStmts(messageOp.message, mainVar, closureVar, messageOp.params, transformFn));\n return { mainVar, statements };\n}\n/**\n * Adds the given subMessage placeholders to the given message op.\n *\n * If a placeholder only corresponds to a single sub-message variable, we just set that variable\n * as the param value. However, if the placeholder corresponds to multiple sub-message\n * variables, we need to add a special placeholder value that is handled by the post-processing\n * step. We then add the array of variables as a post-processing param.\n */\nfunction addSubMessageParams(messageOp, subMessagePlaceholders) {\n for (const [placeholder, subMessages] of subMessagePlaceholders) {\n if (subMessages.length === 1) {\n messageOp.params.set(placeholder, subMessages[0]);\n }\n else {\n messageOp.params.set(placeholder, literal(`${ESCAPE}${I18N_ICU_MAPPING_PREFIX}${placeholder}${ESCAPE}`));\n messageOp.postprocessingParams.set(placeholder, literalArr(subMessages));\n }\n }\n}\n/**\n * Generate statements that define a given translation message.\n *\n * ```ts\n * var I18N_1;\n * if (typeof ngI18nClosureMode !== undefined && ngI18nClosureMode) {\n * var MSG_EXTERNAL_XXX = goog.getMsg(\n * \"Some message with {$interpolation}!\",\n * { \"interpolation\": \"\\uFFFD0\\uFFFD\" }\n * );\n * I18N_1 = MSG_EXTERNAL_XXX;\n * }\n * else {\n * I18N_1 = $localize`Some message with ${'\\uFFFD0\\uFFFD'}!`;\n * }\n * ```\n *\n * @param message The original i18n AST message node\n * @param variable The variable that will be assigned the translation, e.g. `I18N_1`.\n * @param closureVar The variable for Closure `goog.getMsg` calls, e.g. `MSG_EXTERNAL_XXX`.\n * @param params Object mapping placeholder names to their values (e.g.\n * `{ \"interpolation\": \"\\uFFFD0\\uFFFD\" }`).\n * @param transformFn Optional transformation function that will be applied to the translation\n * (e.g.\n * post-processing).\n * @returns An array of statements that defined a given translation.\n */\nfunction getTranslationDeclStmts(message, variable, closureVar, params, transformFn) {\n const paramsObject = Object.fromEntries(params);\n const statements = [\n declareI18nVariable(variable),\n ifStmt(createClosureModeGuard(), createGoogleGetMsgStatements(variable, message, closureVar, paramsObject), createLocalizeStatements(variable, message, formatI18nPlaceholderNamesInMap(paramsObject, /* useCamelCase */ false))),\n ];\n if (transformFn) {\n statements.push(new ExpressionStatement(variable.set(transformFn(variable))));\n }\n return statements;\n}\n/**\n * Create the expression that will be used to guard the closure mode block\n * It is equivalent to:\n *\n * ```ts\n * typeof ngI18nClosureMode !== undefined && ngI18nClosureMode\n * ```\n */\nfunction createClosureModeGuard() {\n return typeofExpr(variable(NG_I18N_CLOSURE_MODE))\n .notIdentical(literal('undefined', STRING_TYPE))\n .and(variable(NG_I18N_CLOSURE_MODE));\n}\n/**\n * Generates vars with Closure-specific names for i18n blocks (i.e. `MSG_XXX`).\n */\nfunction i18nGenerateClosureVar(pool, messageId, fileBasedI18nSuffix, useExternalIds) {\n let name;\n const suffix = fileBasedI18nSuffix;\n if (useExternalIds) {\n const prefix = getTranslationConstPrefix(`EXTERNAL_`);\n const uniqueSuffix = pool.uniqueName(suffix);\n name = `${prefix}${sanitizeIdentifier(messageId)}$$${uniqueSuffix}`;\n }\n else {\n const prefix = getTranslationConstPrefix(suffix);\n name = pool.uniqueName(prefix);\n }\n return variable(name);\n}\n\n/**\n * Removes text nodes within i18n blocks since they are already hardcoded into the i18n message.\n * Also, replaces interpolations on these text nodes with i18n expressions of the non-text portions,\n * which will be applied later.\n */\nfunction convertI18nText(job) {\n for (const unit of job.units) {\n // Remove all text nodes within i18n blocks, their content is already captured in the i18n\n // message.\n let currentI18n = null;\n let currentIcu = null;\n const textNodeI18nBlocks = new Map();\n const textNodeIcus = new Map();\n const icuPlaceholderByText = new Map();\n for (const op of unit.create) {\n switch (op.kind) {\n case OpKind.I18nStart:\n if (op.context === null) {\n throw Error('I18n op should have its context set.');\n }\n currentI18n = op;\n break;\n case OpKind.I18nEnd:\n currentI18n = null;\n break;\n case OpKind.IcuStart:\n if (op.context === null) {\n throw Error('Icu op should have its context set.');\n }\n currentIcu = op;\n break;\n case OpKind.IcuEnd:\n currentIcu = null;\n break;\n case OpKind.Text:\n if (currentI18n !== null) {\n textNodeI18nBlocks.set(op.xref, currentI18n);\n textNodeIcus.set(op.xref, currentIcu);\n if (op.icuPlaceholder !== null) {\n // Create an op to represent the ICU placeholder. Initially set its static text to the\n // value of the text op, though this may be overwritten later if this text op is a\n // placeholder for an interpolation.\n const icuPlaceholderOp = createIcuPlaceholderOp(job.allocateXrefId(), op.icuPlaceholder, [op.initialValue]);\n OpList.replace(op, icuPlaceholderOp);\n icuPlaceholderByText.set(op.xref, icuPlaceholderOp);\n }\n else {\n // Otherwise just remove the text op, since its value is already accounted for in the\n // translated message.\n OpList.remove(op);\n }\n }\n break;\n }\n }\n // Update any interpolations to the removed text, and instead represent them as a series of i18n\n // expressions that we then apply.\n for (const op of unit.update) {\n switch (op.kind) {\n case OpKind.InterpolateText:\n if (!textNodeI18nBlocks.has(op.target)) {\n continue;\n }\n const i18nOp = textNodeI18nBlocks.get(op.target);\n const icuOp = textNodeIcus.get(op.target);\n const icuPlaceholder = icuPlaceholderByText.get(op.target);\n const contextId = icuOp ? icuOp.context : i18nOp.context;\n const resolutionTime = icuOp\n ? I18nParamResolutionTime.Postproccessing\n : I18nParamResolutionTime.Creation;\n const ops = [];\n for (let i = 0; i < op.interpolation.expressions.length; i++) {\n const expr = op.interpolation.expressions[i];\n // For now, this i18nExpression depends on the slot context of the enclosing i18n block.\n // Later, we will modify this, and advance to a different point.\n ops.push(createI18nExpressionOp(contextId, i18nOp.xref, i18nOp.xref, i18nOp.handle, expr, icuPlaceholder?.xref ?? null, op.interpolation.i18nPlaceholders[i] ?? null, resolutionTime, I18nExpressionFor.I18nText, '', expr.sourceSpan ?? op.sourceSpan));\n }\n OpList.replaceWithMany(op, ops);\n // If this interpolation is part of an ICU placeholder, add the strings and expressions to\n // the placeholder.\n if (icuPlaceholder !== undefined) {\n icuPlaceholder.strings = op.interpolation.strings;\n }\n break;\n }\n }\n }\n}\n\n/**\n * Lifts local reference declarations on element-like structures within each view into an entry in\n * the `consts` array for the whole component.\n */\nfunction liftLocalRefs(job) {\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case OpKind.ElementStart:\n case OpKind.Template:\n if (!Array.isArray(op.localRefs)) {\n throw new Error(`AssertionError: expected localRefs to be an array still`);\n }\n op.numSlotsUsed += op.localRefs.length;\n if (op.localRefs.length > 0) {\n const localRefs = serializeLocalRefs(op.localRefs);\n op.localRefs = job.addConst(localRefs);\n }\n else {\n op.localRefs = null;\n }\n break;\n }\n }\n }\n}\nfunction serializeLocalRefs(refs) {\n const constRefs = [];\n for (const ref of refs) {\n constRefs.push(literal(ref.name), literal(ref.target));\n }\n return literalArr(constRefs);\n}\n\n/**\n * Change namespaces between HTML, SVG and MathML, depending on the next element.\n */\nfunction emitNamespaceChanges(job) {\n for (const unit of job.units) {\n let activeNamespace = Namespace.HTML;\n for (const op of unit.create) {\n if (op.kind !== OpKind.ElementStart) {\n continue;\n }\n if (op.namespace !== activeNamespace) {\n OpList.insertBefore(createNamespaceOp(op.namespace), op);\n activeNamespace = op.namespace;\n }\n }\n }\n}\n\n/**\n * Parses string representation of a style and converts it into object literal.\n *\n * @param value string representation of style as used in the `style` attribute in HTML.\n * Example: `color: red; height: auto`.\n * @returns An array of style property name and value pairs, e.g. `['color', 'red', 'height',\n * 'auto']`\n */\nfunction parse(value) {\n // we use a string array here instead of a string map\n // because a string-map is not guaranteed to retain the\n // order of the entries whereas a string array can be\n // constructed in a [key, value, key, value] format.\n const styles = [];\n let i = 0;\n let parenDepth = 0;\n let quote = 0 /* Char.QuoteNone */;\n let valueStart = 0;\n let propStart = 0;\n let currentProp = null;\n while (i < value.length) {\n const token = value.charCodeAt(i++);\n switch (token) {\n case 40 /* Char.OpenParen */:\n parenDepth++;\n break;\n case 41 /* Char.CloseParen */:\n parenDepth--;\n break;\n case 39 /* Char.QuoteSingle */:\n // valueStart needs to be there since prop values don't\n // have quotes in CSS\n if (quote === 0 /* Char.QuoteNone */) {\n quote = 39 /* Char.QuoteSingle */;\n }\n else if (quote === 39 /* Char.QuoteSingle */ && value.charCodeAt(i - 1) !== 92 /* Char.BackSlash */) {\n quote = 0 /* Char.QuoteNone */;\n }\n break;\n case 34 /* Char.QuoteDouble */:\n // same logic as above\n if (quote === 0 /* Char.QuoteNone */) {\n quote = 34 /* Char.QuoteDouble */;\n }\n else if (quote === 34 /* Char.QuoteDouble */ && value.charCodeAt(i - 1) !== 92 /* Char.BackSlash */) {\n quote = 0 /* Char.QuoteNone */;\n }\n break;\n case 58 /* Char.Colon */:\n if (!currentProp && parenDepth === 0 && quote === 0 /* Char.QuoteNone */) {\n // TODO: Do not hyphenate CSS custom property names like: `--intentionallyCamelCase`\n currentProp = hyphenate(value.substring(propStart, i - 1).trim());\n valueStart = i;\n }\n break;\n case 59 /* Char.Semicolon */:\n if (currentProp && valueStart > 0 && parenDepth === 0 && quote === 0 /* Char.QuoteNone */) {\n const styleVal = value.substring(valueStart, i - 1).trim();\n styles.push(currentProp, styleVal);\n propStart = i;\n valueStart = 0;\n currentProp = null;\n }\n break;\n }\n }\n if (currentProp && valueStart) {\n const styleVal = value.slice(valueStart).trim();\n styles.push(currentProp, styleVal);\n }\n return styles;\n}\nfunction hyphenate(value) {\n return value\n .replace(/[a-z][A-Z]/g, (v) => {\n return v.charAt(0) + '-' + v.charAt(1);\n })\n .toLowerCase();\n}\n/**\n * Parses extracted style and class attributes into separate ExtractedAttributeOps per style or\n * class property.\n */\nfunction parseExtractedStyles(job) {\n const elements = new Map();\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (isElementOrContainerOp(op)) {\n elements.set(op.xref, op);\n }\n }\n }\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === OpKind.ExtractedAttribute &&\n op.bindingKind === BindingKind.Attribute &&\n isStringLiteral(op.expression)) {\n const target = elements.get(op.target);\n if (target !== undefined &&\n target.kind === OpKind.Template &&\n target.templateKind === TemplateKind.Structural) {\n // TemplateDefinitionBuilder will not apply class and style bindings to structural\n // directives; instead, it will leave them as attributes.\n // (It's not clear what that would mean, anyway -- classes and styles on a structural\n // element should probably be a parse error.)\n // TODO: We may be able to remove this once Template Pipeline is the default.\n continue;\n }\n if (op.name === 'style') {\n const parsedStyles = parse(op.expression.value);\n for (let i = 0; i < parsedStyles.length - 1; i += 2) {\n OpList.insertBefore(createExtractedAttributeOp(op.target, BindingKind.StyleProperty, null, parsedStyles[i], literal(parsedStyles[i + 1]), null, null, SecurityContext.STYLE), op);\n }\n OpList.remove(op);\n }\n else if (op.name === 'class') {\n const parsedClasses = op.expression.value.trim().split(/\\s+/g);\n for (const parsedClass of parsedClasses) {\n OpList.insertBefore(createExtractedAttributeOp(op.target, BindingKind.ClassName, null, parsedClass, null, null, null, SecurityContext.NONE), op);\n }\n OpList.remove(op);\n }\n }\n }\n }\n}\n\n/**\n * Generate names for functions and variables across all views.\n *\n * This includes propagating those names into any `ir.ReadVariableExpr`s of those variables, so that\n * the reads can be emitted correctly.\n */\nfunction nameFunctionsAndVariables(job) {\n addNamesToView(job.root, job.componentName, { index: 0 }, job.compatibility === CompatibilityMode.TemplateDefinitionBuilder);\n}\nfunction addNamesToView(unit, baseName, state, compatibility) {\n if (unit.fnName === null) {\n // Ensure unique names for view units. This is necessary because there might be multiple\n // components with same names in the context of the same pool. Only add the suffix\n // if really needed.\n unit.fnName = unit.job.pool.uniqueName(sanitizeIdentifier(`${baseName}_${unit.job.fnSuffix}`), \n /* alwaysIncludeSuffix */ false);\n }\n // Keep track of the names we assign to variables in the view. We'll need to propagate these\n // into reads of those variables afterwards.\n const varNames = new Map();\n for (const op of unit.ops()) {\n switch (op.kind) {\n case OpKind.Property:\n case OpKind.HostProperty:\n if (op.isAnimationTrigger) {\n op.name = '@' + op.name;\n }\n break;\n case OpKind.Listener:\n if (op.handlerFnName !== null) {\n break;\n }\n if (!op.hostListener && op.targetSlot.slot === null) {\n throw new Error(`Expected a slot to be assigned`);\n }\n let animation = '';\n if (op.isAnimationListener) {\n op.name = `@${op.name}.${op.animationPhase}`;\n animation = 'animation';\n }\n if (op.hostListener) {\n op.handlerFnName = `${baseName}_${animation}${op.name}_HostBindingHandler`;\n }\n else {\n op.handlerFnName = `${unit.fnName}_${op.tag.replace('-', '_')}_${animation}${op.name}_${op.targetSlot.slot}_listener`;\n }\n op.handlerFnName = sanitizeIdentifier(op.handlerFnName);\n break;\n case OpKind.TwoWayListener:\n if (op.handlerFnName !== null) {\n break;\n }\n if (op.targetSlot.slot === null) {\n throw new Error(`Expected a slot to be assigned`);\n }\n op.handlerFnName = sanitizeIdentifier(`${unit.fnName}_${op.tag.replace('-', '_')}_${op.name}_${op.targetSlot.slot}_listener`);\n break;\n case OpKind.Variable:\n varNames.set(op.xref, getVariableName(unit, op.variable, state));\n break;\n case OpKind.RepeaterCreate:\n if (!(unit instanceof ViewCompilationUnit)) {\n throw new Error(`AssertionError: must be compiling a component`);\n }\n if (op.handle.slot === null) {\n throw new Error(`Expected slot to be assigned`);\n }\n if (op.emptyView !== null) {\n const emptyView = unit.job.views.get(op.emptyView);\n // Repeater empty view function is at slot +2 (metadata is in the first slot).\n addNamesToView(emptyView, `${baseName}_${op.functionNameSuffix}Empty_${op.handle.slot + 2}`, state, compatibility);\n }\n // Repeater primary view function is at slot +1 (metadata is in the first slot).\n addNamesToView(unit.job.views.get(op.xref), `${baseName}_${op.functionNameSuffix}_${op.handle.slot + 1}`, state, compatibility);\n break;\n case OpKind.Projection:\n if (!(unit instanceof ViewCompilationUnit)) {\n throw new Error(`AssertionError: must be compiling a component`);\n }\n if (op.handle.slot === null) {\n throw new Error(`Expected slot to be assigned`);\n }\n if (op.fallbackView !== null) {\n const fallbackView = unit.job.views.get(op.fallbackView);\n addNamesToView(fallbackView, `${baseName}_ProjectionFallback_${op.handle.slot}`, state, compatibility);\n }\n break;\n case OpKind.Template:\n if (!(unit instanceof ViewCompilationUnit)) {\n throw new Error(`AssertionError: must be compiling a component`);\n }\n const childView = unit.job.views.get(op.xref);\n if (op.handle.slot === null) {\n throw new Error(`Expected slot to be assigned`);\n }\n const suffix = op.functionNameSuffix.length === 0 ? '' : `_${op.functionNameSuffix}`;\n addNamesToView(childView, `${baseName}${suffix}_${op.handle.slot}`, state, compatibility);\n break;\n case OpKind.StyleProp:\n op.name = normalizeStylePropName(op.name);\n if (compatibility) {\n op.name = stripImportant(op.name);\n }\n break;\n case OpKind.ClassProp:\n if (compatibility) {\n op.name = stripImportant(op.name);\n }\n break;\n }\n }\n // Having named all variables declared in the view, now we can push those names into the\n // `ir.ReadVariableExpr` expressions which represent reads of those variables.\n for (const op of unit.ops()) {\n visitExpressionsInOp(op, (expr) => {\n if (!(expr instanceof ReadVariableExpr) || expr.name !== null) {\n return;\n }\n if (!varNames.has(expr.xref)) {\n throw new Error(`Variable ${expr.xref} not yet named`);\n }\n expr.name = varNames.get(expr.xref);\n });\n }\n}\nfunction getVariableName(unit, variable, state) {\n if (variable.name === null) {\n switch (variable.kind) {\n case SemanticVariableKind.Context:\n variable.name = `ctx_r${state.index++}`;\n break;\n case SemanticVariableKind.Identifier:\n if (unit.job.compatibility === CompatibilityMode.TemplateDefinitionBuilder) {\n // TODO: Prefix increment and `_r` are for compatibility with the old naming scheme.\n // This has the potential to cause collisions when `ctx` is the identifier, so we need a\n // special check for that as well.\n const compatPrefix = variable.identifier === 'ctx' ? 'i' : '';\n variable.name = `${variable.identifier}_${compatPrefix}r${++state.index}`;\n }\n else {\n variable.name = `${variable.identifier}_i${state.index++}`;\n }\n break;\n default:\n // TODO: Prefix increment for compatibility only.\n variable.name = `_r${++state.index}`;\n break;\n }\n }\n return variable.name;\n}\n/**\n * Normalizes a style prop name by hyphenating it (unless its a CSS variable).\n */\nfunction normalizeStylePropName(name) {\n return name.startsWith('--') ? name : hyphenate(name);\n}\n/**\n * Strips `!important` out of the given style or class name.\n */\nfunction stripImportant(name) {\n const importantIndex = name.indexOf('!important');\n if (importantIndex > -1) {\n return name.substring(0, importantIndex);\n }\n return name;\n}\n\n/**\n * Merges logically sequential `NextContextExpr` operations.\n *\n * `NextContextExpr` can be referenced repeatedly, \"popping\" the runtime's context stack each time.\n * When two such expressions appear back-to-back, it's possible to merge them together into a single\n * `NextContextExpr` that steps multiple contexts. This merging is possible if all conditions are\n * met:\n *\n * * The result of the `NextContextExpr` that's folded into the subsequent one is not stored (that\n * is, the call is purely side-effectful).\n * * No operations in between them uses the implicit context.\n */\nfunction mergeNextContextExpressions(job) {\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === OpKind.Listener || op.kind === OpKind.TwoWayListener) {\n mergeNextContextsInOps(op.handlerOps);\n }\n }\n mergeNextContextsInOps(unit.update);\n }\n}\nfunction mergeNextContextsInOps(ops) {\n for (const op of ops) {\n // Look for a candidate operation to maybe merge.\n if (op.kind !== OpKind.Statement ||\n !(op.statement instanceof ExpressionStatement) ||\n !(op.statement.expr instanceof NextContextExpr)) {\n continue;\n }\n const mergeSteps = op.statement.expr.steps;\n // Try to merge this `ir.NextContextExpr`.\n let tryToMerge = true;\n for (let candidate = op.next; candidate.kind !== OpKind.ListEnd && tryToMerge; candidate = candidate.next) {\n visitExpressionsInOp(candidate, (expr, flags) => {\n if (!isIrExpression(expr)) {\n return expr;\n }\n if (!tryToMerge) {\n // Either we've already merged, or failed to merge.\n return;\n }\n if (flags & VisitorContextFlag.InChildOperation) {\n // We cannot merge into child operations.\n return;\n }\n switch (expr.kind) {\n case ExpressionKind.NextContext:\n // Merge the previous `ir.NextContextExpr` into this one.\n expr.steps += mergeSteps;\n OpList.remove(op);\n tryToMerge = false;\n break;\n case ExpressionKind.GetCurrentView:\n case ExpressionKind.Reference:\n case ExpressionKind.ContextLetReference:\n // Can't merge past a dependency on the context.\n tryToMerge = false;\n break;\n }\n return;\n });\n }\n }\n}\n\nconst CONTAINER_TAG = 'ng-container';\n/**\n * Replace an `Element` or `ElementStart` whose tag is `ng-container` with a specific op.\n */\nfunction generateNgContainerOps(job) {\n for (const unit of job.units) {\n const updatedElementXrefs = new Set();\n for (const op of unit.create) {\n if (op.kind === OpKind.ElementStart && op.tag === CONTAINER_TAG) {\n // Transmute the `ElementStart` instruction to `ContainerStart`.\n op.kind = OpKind.ContainerStart;\n updatedElementXrefs.add(op.xref);\n }\n if (op.kind === OpKind.ElementEnd && updatedElementXrefs.has(op.xref)) {\n // This `ElementEnd` is associated with an `ElementStart` we already transmuted.\n op.kind = OpKind.ContainerEnd;\n }\n }\n }\n}\n\n/**\n * Looks up an element in the given map by xref ID.\n */\nfunction lookupElement(elements, xref) {\n const el = elements.get(xref);\n if (el === undefined) {\n throw new Error('All attributes should have an element-like target.');\n }\n return el;\n}\n/**\n * When a container is marked with `ngNonBindable`, the non-bindable characteristic also applies to\n * all descendants of that container. Therefore, we must emit `disableBindings` and `enableBindings`\n * instructions for every such container.\n */\nfunction disableBindings$1(job) {\n const elements = new Map();\n for (const view of job.units) {\n for (const op of view.create) {\n if (!isElementOrContainerOp(op)) {\n continue;\n }\n elements.set(op.xref, op);\n }\n }\n for (const unit of job.units) {\n for (const op of unit.create) {\n if ((op.kind === OpKind.ElementStart || op.kind === OpKind.ContainerStart) &&\n op.nonBindable) {\n OpList.insertAfter(createDisableBindingsOp(op.xref), op);\n }\n if ((op.kind === OpKind.ElementEnd || op.kind === OpKind.ContainerEnd) &&\n lookupElement(elements, op.xref).nonBindable) {\n OpList.insertBefore(createEnableBindingsOp(op.xref), op);\n }\n }\n }\n}\n\n/**\n * Nullish coalescing expressions such as `a ?? b` have different semantics in Angular templates as\n * compared to JavaScript. In particular, they default to `null` instead of `undefined`. Therefore,\n * we replace them with ternary expressions, assigning temporaries as needed to avoid re-evaluating\n * the same sub-expression multiple times.\n */\nfunction generateNullishCoalesceExpressions(job) {\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n transformExpressionsInOp(op, (expr) => {\n if (!(expr instanceof BinaryOperatorExpr) ||\n expr.operator !== BinaryOperator.NullishCoalesce) {\n return expr;\n }\n const assignment = new AssignTemporaryExpr(expr.lhs.clone(), job.allocateXrefId());\n const read = new ReadTemporaryExpr(assignment.xref);\n // TODO: When not in compatibility mode for TemplateDefinitionBuilder, we can just emit\n // `t != null` instead of including an undefined check as well.\n return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.And, new BinaryOperatorExpr(BinaryOperator.NotIdentical, assignment, NULL_EXPR), new BinaryOperatorExpr(BinaryOperator.NotIdentical, read, new LiteralExpr(undefined))), read.clone(), expr.rhs);\n }, VisitorContextFlag.None);\n }\n }\n}\n\nfunction kindTest(kind) {\n return (op) => op.kind === kind;\n}\nfunction kindWithInterpolationTest(kind, interpolation) {\n return (op) => {\n return op.kind === kind && interpolation === op.expression instanceof Interpolation;\n };\n}\nfunction basicListenerKindTest(op) {\n return ((op.kind === OpKind.Listener && !(op.hostListener && op.isAnimationListener)) ||\n op.kind === OpKind.TwoWayListener);\n}\nfunction nonInterpolationPropertyKindTest(op) {\n return ((op.kind === OpKind.Property || op.kind === OpKind.TwoWayProperty) &&\n !(op.expression instanceof Interpolation));\n}\n/**\n * Defines the groups based on `OpKind` that ops will be divided into, for the various create\n * op kinds. Ops will be collected into groups, then optionally transformed, before recombining\n * the groups in the order defined here.\n */\nconst CREATE_ORDERING = [\n { test: (op) => op.kind === OpKind.Listener && op.hostListener && op.isAnimationListener },\n { test: basicListenerKindTest },\n];\n/**\n * Defines the groups based on `OpKind` that ops will be divided into, for the various update\n * op kinds.\n */\nconst UPDATE_ORDERING = [\n { test: kindTest(OpKind.StyleMap), transform: keepLast },\n { test: kindTest(OpKind.ClassMap), transform: keepLast },\n { test: kindTest(OpKind.StyleProp) },\n { test: kindTest(OpKind.ClassProp) },\n { test: kindWithInterpolationTest(OpKind.Attribute, true) },\n { test: kindWithInterpolationTest(OpKind.Property, true) },\n { test: nonInterpolationPropertyKindTest },\n { test: kindWithInterpolationTest(OpKind.Attribute, false) },\n];\n/**\n * Host bindings have their own update ordering.\n */\nconst UPDATE_HOST_ORDERING = [\n { test: kindWithInterpolationTest(OpKind.HostProperty, true) },\n { test: kindWithInterpolationTest(OpKind.HostProperty, false) },\n { test: kindTest(OpKind.Attribute) },\n { test: kindTest(OpKind.StyleMap), transform: keepLast },\n { test: kindTest(OpKind.ClassMap), transform: keepLast },\n { test: kindTest(OpKind.StyleProp) },\n { test: kindTest(OpKind.ClassProp) },\n];\n/**\n * The set of all op kinds we handle in the reordering phase.\n */\nconst handledOpKinds = new Set([\n OpKind.Listener,\n OpKind.TwoWayListener,\n OpKind.StyleMap,\n OpKind.ClassMap,\n OpKind.StyleProp,\n OpKind.ClassProp,\n OpKind.Property,\n OpKind.TwoWayProperty,\n OpKind.HostProperty,\n OpKind.Attribute,\n]);\n/**\n * Many type of operations have ordering constraints that must be respected. For example, a\n * `ClassMap` instruction must be ordered after a `StyleMap` instruction, in order to have\n * predictable semantics that match TemplateDefinitionBuilder and don't break applications.\n */\nfunction orderOps(job) {\n for (const unit of job.units) {\n // First, we pull out ops that need to be ordered. Then, when we encounter an op that shouldn't\n // be reordered, put the ones we've pulled so far back in the correct order. Finally, if we\n // still have ops pulled at the end, put them back in the correct order.\n // Create mode:\n orderWithin(unit.create, CREATE_ORDERING);\n // Update mode:\n const ordering = unit.job.kind === CompilationJobKind.Host ? UPDATE_HOST_ORDERING : UPDATE_ORDERING;\n orderWithin(unit.update, ordering);\n }\n}\n/**\n * Order all the ops within the specified group.\n */\nfunction orderWithin(opList, ordering) {\n let opsToOrder = [];\n // Only reorder ops that target the same xref; do not mix ops that target different xrefs.\n let firstTargetInGroup = null;\n for (const op of opList) {\n const currentTarget = hasDependsOnSlotContextTrait(op) ? op.target : null;\n if (!handledOpKinds.has(op.kind) ||\n (currentTarget !== firstTargetInGroup &&\n firstTargetInGroup !== null &&\n currentTarget !== null)) {\n OpList.insertBefore(reorder(opsToOrder, ordering), op);\n opsToOrder = [];\n firstTargetInGroup = null;\n }\n if (handledOpKinds.has(op.kind)) {\n opsToOrder.push(op);\n OpList.remove(op);\n firstTargetInGroup = currentTarget ?? firstTargetInGroup;\n }\n }\n opList.push(reorder(opsToOrder, ordering));\n}\n/**\n * Reorders the given list of ops according to the ordering defined by `ORDERING`.\n */\nfunction reorder(ops, ordering) {\n // Break the ops list into groups based on OpKind.\n const groups = Array.from(ordering, () => new Array());\n for (const op of ops) {\n const groupIndex = ordering.findIndex((o) => o.test(op));\n groups[groupIndex].push(op);\n }\n // Reassemble the groups into a single list, in the correct order.\n return groups.flatMap((group, i) => {\n const transform = ordering[i].transform;\n return transform ? transform(group) : group;\n });\n}\n/**\n * Keeps only the last op in a list of ops.\n */\nfunction keepLast(ops) {\n return ops.slice(ops.length - 1);\n}\n\n/**\n * Attributes of `ng-content` named 'select' are specifically removed, because they control which\n * content matches as a property of the `projection`, and are not a plain attribute.\n */\nfunction removeContentSelectors(job) {\n for (const unit of job.units) {\n const elements = createOpXrefMap(unit);\n for (const op of unit.ops()) {\n switch (op.kind) {\n case OpKind.Binding:\n const target = lookupInXrefMap(elements, op.target);\n if (isSelectAttribute(op.name) && target.kind === OpKind.Projection) {\n OpList.remove(op);\n }\n break;\n }\n }\n }\n}\nfunction isSelectAttribute(name) {\n return name.toLowerCase() === 'select';\n}\n/**\n * Looks up an element in the given map by xref ID.\n */\nfunction lookupInXrefMap(map, xref) {\n const el = map.get(xref);\n if (el === undefined) {\n throw new Error('All attributes should have an slottable target.');\n }\n return el;\n}\n\n/**\n * This phase generates pipe creation instructions. We do this based on the pipe bindings found in\n * the update block, in the order we see them.\n *\n * When not in compatibility mode, we can simply group all these creation instructions together, to\n * maximize chaining opportunities.\n */\nfunction createPipes(job) {\n for (const unit of job.units) {\n processPipeBindingsInView(unit);\n }\n}\nfunction processPipeBindingsInView(unit) {\n for (const updateOp of unit.update) {\n visitExpressionsInOp(updateOp, (expr, flags) => {\n if (!isIrExpression(expr)) {\n return;\n }\n if (expr.kind !== ExpressionKind.PipeBinding) {\n return;\n }\n if (flags & VisitorContextFlag.InChildOperation) {\n throw new Error(`AssertionError: pipe bindings should not appear in child expressions`);\n }\n if (unit.job.compatibility) {\n // TODO: We can delete this cast and check once compatibility mode is removed.\n const slotHandle = updateOp.target;\n if (slotHandle == undefined) {\n throw new Error(`AssertionError: expected slot handle to be assigned for pipe creation`);\n }\n addPipeToCreationBlock(unit, updateOp.target, expr);\n }\n else {\n // When not in compatibility mode, we just add the pipe to the end of the create block. This\n // is not only simpler and faster, but allows more chaining opportunities for other\n // instructions.\n unit.create.push(createPipeOp(expr.target, expr.targetSlot, expr.name));\n }\n });\n }\n}\nfunction addPipeToCreationBlock(unit, afterTargetXref, binding) {\n // Find the appropriate point to insert the Pipe creation operation.\n // We're looking for `afterTargetXref` (and also want to insert after any other pipe operations\n // which might be beyond it).\n for (let op = unit.create.head.next; op.kind !== OpKind.ListEnd; op = op.next) {\n if (!hasConsumesSlotTrait(op)) {\n continue;\n }\n if (op.xref !== afterTargetXref) {\n continue;\n }\n // We've found a tentative insertion point; however, we also want to skip past any _other_ pipe\n // operations present.\n while (op.next.kind === OpKind.Pipe) {\n op = op.next;\n }\n const pipe = createPipeOp(binding.target, binding.targetSlot, binding.name);\n OpList.insertBefore(pipe, op.next);\n // This completes adding the pipe to the creation block.\n return;\n }\n // At this point, we've failed to add the pipe to the creation block.\n throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);\n}\n\n/**\n * Pipes that accept more than 4 arguments are variadic, and are handled with a different runtime\n * instruction.\n */\nfunction createVariadicPipes(job) {\n for (const unit of job.units) {\n for (const op of unit.update) {\n transformExpressionsInOp(op, (expr) => {\n if (!(expr instanceof PipeBindingExpr)) {\n return expr;\n }\n // Pipes are variadic if they have more than 4 arguments.\n if (expr.args.length <= 4) {\n return expr;\n }\n return new PipeBindingVariadicExpr(expr.target, expr.targetSlot, expr.name, literalArr(expr.args), expr.args.length);\n }, VisitorContextFlag.None);\n }\n }\n}\n\n/**\n * Propagate i18n blocks down through child templates that act as placeholders in the root i18n\n * message. Specifically, perform an in-order traversal of all the views, and add i18nStart/i18nEnd\n * op pairs into descending views. Also, assign an increasing sub-template index to each\n * descending view.\n */\nfunction propagateI18nBlocks(job) {\n propagateI18nBlocksToTemplates(job.root, 0);\n}\n/**\n * Propagates i18n ops in the given view through to any child views recursively.\n */\nfunction propagateI18nBlocksToTemplates(unit, subTemplateIndex) {\n let i18nBlock = null;\n for (const op of unit.create) {\n switch (op.kind) {\n case OpKind.I18nStart:\n op.subTemplateIndex = subTemplateIndex === 0 ? null : subTemplateIndex;\n i18nBlock = op;\n break;\n case OpKind.I18nEnd:\n // When we exit a root-level i18n block, reset the sub-template index counter.\n if (i18nBlock.subTemplateIndex === null) {\n subTemplateIndex = 0;\n }\n i18nBlock = null;\n break;\n case OpKind.Template:\n subTemplateIndex = propagateI18nBlocksForView(unit.job.views.get(op.xref), i18nBlock, op.i18nPlaceholder, subTemplateIndex);\n break;\n case OpKind.RepeaterCreate:\n // Propagate i18n blocks to the @for template.\n const forView = unit.job.views.get(op.xref);\n subTemplateIndex = propagateI18nBlocksForView(forView, i18nBlock, op.i18nPlaceholder, subTemplateIndex);\n // Then if there's an @empty template, propagate the i18n blocks for it as well.\n if (op.emptyView !== null) {\n subTemplateIndex = propagateI18nBlocksForView(unit.job.views.get(op.emptyView), i18nBlock, op.emptyI18nPlaceholder, subTemplateIndex);\n }\n break;\n }\n }\n return subTemplateIndex;\n}\n/**\n * Propagate i18n blocks for a view.\n */\nfunction propagateI18nBlocksForView(view, i18nBlock, i18nPlaceholder, subTemplateIndex) {\n // We found an <ng-template> inside an i18n block; increment the sub-template counter and\n // wrap the template's view in a child i18n block.\n if (i18nPlaceholder !== undefined) {\n if (i18nBlock === null) {\n throw Error('Expected template with i18n placeholder to be in an i18n block.');\n }\n subTemplateIndex++;\n wrapTemplateWithI18n(view, i18nBlock);\n }\n // Continue traversing inside the template's view.\n return propagateI18nBlocksToTemplates(view, subTemplateIndex);\n}\n/**\n * Wraps a template view with i18n start and end ops.\n */\nfunction wrapTemplateWithI18n(unit, parentI18n) {\n // Only add i18n ops if they have not already been propagated to this template.\n if (unit.create.head.next?.kind !== OpKind.I18nStart) {\n const id = unit.job.allocateXrefId();\n OpList.insertAfter(\n // Nested ng-template i18n start/end ops should not receive source spans.\n createI18nStartOp(id, parentI18n.message, parentI18n.root, null), unit.create.head);\n OpList.insertBefore(createI18nEndOp(id, null), unit.create.tail);\n }\n}\n\nfunction extractPureFunctions(job) {\n for (const view of job.units) {\n for (const op of view.ops()) {\n visitExpressionsInOp(op, (expr) => {\n if (!(expr instanceof PureFunctionExpr) || expr.body === null) {\n return;\n }\n const constantDef = new PureFunctionConstant(expr.args.length);\n expr.fn = job.pool.getSharedConstant(constantDef, expr.body);\n expr.body = null;\n });\n }\n }\n}\nclass PureFunctionConstant extends GenericKeyFn {\n numArgs;\n constructor(numArgs) {\n super();\n this.numArgs = numArgs;\n }\n keyOf(expr) {\n if (expr instanceof PureFunctionParameterExpr) {\n return `param(${expr.index})`;\n }\n else {\n return super.keyOf(expr);\n }\n }\n // TODO: Use the new pool method `getSharedFunctionReference`\n toSharedConstantDeclaration(declName, keyExpr) {\n const fnParams = [];\n for (let idx = 0; idx < this.numArgs; idx++) {\n fnParams.push(new FnParam('a' + idx));\n }\n // We will never visit `ir.PureFunctionParameterExpr`s that don't belong to us, because this\n // transform runs inside another visitor which will visit nested pure functions before this one.\n const returnExpr = transformExpressionsInExpression(keyExpr, (expr) => {\n if (!(expr instanceof PureFunctionParameterExpr)) {\n return expr;\n }\n return variable('a' + expr.index);\n }, VisitorContextFlag.None);\n return new DeclareVarStmt(declName, new ArrowFunctionExpr(fnParams, returnExpr), undefined, StmtModifier.Final);\n }\n}\n\nfunction generatePureLiteralStructures(job) {\n for (const unit of job.units) {\n for (const op of unit.update) {\n transformExpressionsInOp(op, (expr, flags) => {\n if (flags & VisitorContextFlag.InChildOperation) {\n return expr;\n }\n if (expr instanceof LiteralArrayExpr) {\n return transformLiteralArray(expr);\n }\n else if (expr instanceof LiteralMapExpr) {\n return transformLiteralMap(expr);\n }\n return expr;\n }, VisitorContextFlag.None);\n }\n }\n}\nfunction transformLiteralArray(expr) {\n const derivedEntries = [];\n const nonConstantArgs = [];\n for (const entry of expr.entries) {\n if (entry.isConstant()) {\n derivedEntries.push(entry);\n }\n else {\n const idx = nonConstantArgs.length;\n nonConstantArgs.push(entry);\n derivedEntries.push(new PureFunctionParameterExpr(idx));\n }\n }\n return new PureFunctionExpr(literalArr(derivedEntries), nonConstantArgs);\n}\nfunction transformLiteralMap(expr) {\n let derivedEntries = [];\n const nonConstantArgs = [];\n for (const entry of expr.entries) {\n if (entry.value.isConstant()) {\n derivedEntries.push(entry);\n }\n else {\n const idx = nonConstantArgs.length;\n nonConstantArgs.push(entry.value);\n derivedEntries.push(new LiteralMapEntry(entry.key, new PureFunctionParameterExpr(idx), entry.quoted));\n }\n }\n return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);\n}\n\n// This file contains helpers for generating calls to Ivy instructions. In particular, each\n// instruction type is represented as a function, which may select a specific instruction variant\n// depending on the exact arguments.\nfunction element(slot, tag, constIndex, localRefIndex, sourceSpan) {\n return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);\n}\nfunction elementStart(slot, tag, constIndex, localRefIndex, sourceSpan) {\n return elementOrContainerBase(Identifiers.elementStart, slot, tag, constIndex, localRefIndex, sourceSpan);\n}\nfunction elementOrContainerBase(instruction, slot, tag, constIndex, localRefIndex, sourceSpan) {\n const args = [literal(slot)];\n if (tag !== null) {\n args.push(literal(tag));\n }\n if (localRefIndex !== null) {\n args.push(literal(constIndex), // might be null, but that's okay.\n literal(localRefIndex));\n }\n else if (constIndex !== null) {\n args.push(literal(constIndex));\n }\n return call(instruction, args, sourceSpan);\n}\nfunction elementEnd(sourceSpan) {\n return call(Identifiers.elementEnd, [], sourceSpan);\n}\nfunction elementContainerStart(slot, constIndex, localRefIndex, sourceSpan) {\n return elementOrContainerBase(Identifiers.elementContainerStart, slot, \n /* tag */ null, constIndex, localRefIndex, sourceSpan);\n}\nfunction elementContainer(slot, constIndex, localRefIndex, sourceSpan) {\n return elementOrContainerBase(Identifiers.elementContainer, slot, \n /* tag */ null, constIndex, localRefIndex, sourceSpan);\n}\nfunction elementContainerEnd() {\n return call(Identifiers.elementContainerEnd, [], null);\n}\nfunction template(slot, templateFnRef, decls, vars, tag, constIndex, localRefs, sourceSpan) {\n const args = [\n literal(slot),\n templateFnRef,\n literal(decls),\n literal(vars),\n literal(tag),\n literal(constIndex),\n ];\n if (localRefs !== null) {\n args.push(literal(localRefs));\n args.push(importExpr(Identifiers.templateRefExtractor));\n }\n while (args[args.length - 1].isEquivalent(NULL_EXPR)) {\n args.pop();\n }\n return call(Identifiers.templateCreate, args, sourceSpan);\n}\nfunction disableBindings() {\n return call(Identifiers.disableBindings, [], null);\n}\nfunction enableBindings() {\n return call(Identifiers.enableBindings, [], null);\n}\nfunction listener(name, handlerFn, eventTargetResolver, syntheticHost, sourceSpan) {\n const args = [literal(name), handlerFn];\n if (eventTargetResolver !== null) {\n args.push(literal(false)); // `useCapture` flag, defaults to `false`\n args.push(importExpr(eventTargetResolver));\n }\n return call(syntheticHost ? Identifiers.syntheticHostListener : Identifiers.listener, args, sourceSpan);\n}\nfunction twoWayBindingSet(target, value) {\n return importExpr(Identifiers.twoWayBindingSet).callFn([target, value]);\n}\nfunction twoWayListener(name, handlerFn, sourceSpan) {\n return call(Identifiers.twoWayListener, [literal(name), handlerFn], sourceSpan);\n}\nfunction pipe(slot, name) {\n return call(Identifiers.pipe, [literal(slot), literal(name)], null);\n}\nfunction namespaceHTML() {\n return call(Identifiers.namespaceHTML, [], null);\n}\nfunction namespaceSVG() {\n return call(Identifiers.namespaceSVG, [], null);\n}\nfunction namespaceMath() {\n return call(Identifiers.namespaceMathML, [], null);\n}\nfunction advance(delta, sourceSpan) {\n return call(Identifiers.advance, delta > 1 ? [literal(delta)] : [], sourceSpan);\n}\nfunction reference(slot) {\n return importExpr(Identifiers.reference).callFn([literal(slot)]);\n}\nfunction nextContext(steps) {\n return importExpr(Identifiers.nextContext).callFn(steps === 1 ? [] : [literal(steps)]);\n}\nfunction getCurrentView() {\n return importExpr(Identifiers.getCurrentView).callFn([]);\n}\nfunction restoreView(savedView) {\n return importExpr(Identifiers.restoreView).callFn([savedView]);\n}\nfunction resetView(returnValue) {\n return importExpr(Identifiers.resetView).callFn([returnValue]);\n}\nfunction text(slot, initialValue, sourceSpan) {\n const args = [literal(slot, null)];\n if (initialValue !== '') {\n args.push(literal(initialValue));\n }\n return call(Identifiers.text, args, sourceSpan);\n}\nfunction defer(selfSlot, primarySlot, dependencyResolverFn, loadingSlot, placeholderSlot, errorSlot, loadingConfig, placeholderConfig, enableTimerScheduling, sourceSpan, flags) {\n const args = [\n literal(selfSlot),\n literal(primarySlot),\n dependencyResolverFn ?? literal(null),\n literal(loadingSlot),\n literal(placeholderSlot),\n literal(errorSlot),\n loadingConfig ?? literal(null),\n placeholderConfig ?? literal(null),\n enableTimerScheduling ? importExpr(Identifiers.deferEnableTimerScheduling) : literal(null),\n literal(flags),\n ];\n let expr;\n while ((expr = args[args.length - 1]) !== null &&\n expr instanceof LiteralExpr &&\n expr.value === null) {\n args.pop();\n }\n return call(Identifiers.defer, args, sourceSpan);\n}\nconst deferTriggerToR3TriggerInstructionsMap = new Map([\n [\n DeferTriggerKind.Idle,\n {\n [\"none\" /* ir.DeferOpModifierKind.NONE */]: Identifiers.deferOnIdle,\n [\"prefetch\" /* ir.DeferOpModifierKind.PREFETCH */]: Identifiers.deferPrefetchOnIdle,\n [\"hydrate\" /* ir.DeferOpModifierKind.HYDRATE */]: Identifiers.deferHydrateOnIdle,\n },\n ],\n [\n DeferTriggerKind.Immediate,\n {\n [\"none\" /* ir.DeferOpModifierKind.NONE */]: Identifiers.deferOnImmediate,\n [\"prefetch\" /* ir.DeferOpModifierKind.PREFETCH */]: Identifiers.deferPrefetchOnImmediate,\n [\"hydrate\" /* ir.DeferOpModifierKind.HYDRATE */]: Identifiers.deferHydrateOnImmediate,\n },\n ],\n [\n DeferTriggerKind.Timer,\n {\n [\"none\" /* ir.DeferOpModifierKind.NONE */]: Identifiers.deferOnTimer,\n [\"prefetch\" /* ir.DeferOpModifierKind.PREFETCH */]: Identifiers.deferPrefetchOnTimer,\n [\"hydrate\" /* ir.DeferOpModifierKind.HYDRATE */]: Identifiers.deferHydrateOnTimer,\n },\n ],\n [\n DeferTriggerKind.Hover,\n {\n [\"none\" /* ir.DeferOpModifierKind.NONE */]: Identifiers.deferOnHover,\n [\"prefetch\" /* ir.DeferOpModifierKind.PREFETCH */]: Identifiers.deferPrefetchOnHover,\n [\"hydrate\" /* ir.DeferOpModifierKind.HYDRATE */]: Identifiers.deferHydrateOnHover,\n },\n ],\n [\n DeferTriggerKind.Interaction,\n {\n [\"none\" /* ir.DeferOpModifierKind.NONE */]: Identifiers.deferOnInteraction,\n [\"prefetch\" /* ir.DeferOpModifierKind.PREFETCH */]: Identifiers.deferPrefetchOnInteraction,\n [\"hydrate\" /* ir.DeferOpModifierKind.HYDRATE */]: Identifiers.deferHydrateOnInteraction,\n },\n ],\n [\n DeferTriggerKind.Viewport,\n {\n [\"none\" /* ir.DeferOpModifierKind.NONE */]: Identifiers.deferOnViewport,\n [\"prefetch\" /* ir.DeferOpModifierKind.PREFETCH */]: Identifiers.deferPrefetchOnViewport,\n [\"hydrate\" /* ir.DeferOpModifierKind.HYDRATE */]: Identifiers.deferHydrateOnViewport,\n },\n ],\n [\n DeferTriggerKind.Never,\n {\n [\"none\" /* ir.DeferOpModifierKind.NONE */]: Identifiers.deferHydrateNever,\n [\"prefetch\" /* ir.DeferOpModifierKind.PREFETCH */]: Identifiers.deferHydrateNever,\n [\"hydrate\" /* ir.DeferOpModifierKind.HYDRATE */]: Identifiers.deferHydrateNever,\n },\n ],\n]);\nfunction deferOn(trigger, args, modifier, sourceSpan) {\n const instructionToCall = deferTriggerToR3TriggerInstructionsMap.get(trigger)?.[modifier];\n if (instructionToCall === undefined) {\n throw new Error(`Unable to determine instruction for trigger ${trigger}`);\n }\n return call(instructionToCall, args.map((a) => literal(a)), sourceSpan);\n}\nfunction projectionDef(def) {\n return call(Identifiers.projectionDef, def ? [def] : [], null);\n}\nfunction projection(slot, projectionSlotIndex, attributes, fallbackFnName, fallbackDecls, fallbackVars, sourceSpan) {\n const args = [literal(slot)];\n if (projectionSlotIndex !== 0 || attributes !== null || fallbackFnName !== null) {\n args.push(literal(projectionSlotIndex));\n if (attributes !== null) {\n args.push(attributes);\n }\n if (fallbackFnName !== null) {\n if (attributes === null) {\n args.push(literal(null));\n }\n args.push(variable(fallbackFnName), literal(fallbackDecls), literal(fallbackVars));\n }\n }\n return call(Identifiers.projection, args, sourceSpan);\n}\nfunction i18nStart(slot, constIndex, subTemplateIndex, sourceSpan) {\n const args = [literal(slot), literal(constIndex)];\n if (subTemplateIndex !== null) {\n args.push(literal(subTemplateIndex));\n }\n return call(Identifiers.i18nStart, args, sourceSpan);\n}\nfunction repeaterCreate(slot, viewFnName, decls, vars, tag, constIndex, trackByFn, trackByUsesComponentInstance, emptyViewFnName, emptyDecls, emptyVars, emptyTag, emptyConstIndex, sourceSpan) {\n const args = [\n literal(slot),\n variable(viewFnName),\n literal(decls),\n literal(vars),\n literal(tag),\n literal(constIndex),\n trackByFn,\n ];\n if (trackByUsesComponentInstance || emptyViewFnName !== null) {\n args.push(literal(trackByUsesComponentInstance));\n if (emptyViewFnName !== null) {\n args.push(variable(emptyViewFnName), literal(emptyDecls), literal(emptyVars));\n if (emptyTag !== null || emptyConstIndex !== null) {\n args.push(literal(emptyTag));\n }\n if (emptyConstIndex !== null) {\n args.push(literal(emptyConstIndex));\n }\n }\n }\n return call(Identifiers.repeaterCreate, args, sourceSpan);\n}\nfunction repeater(collection, sourceSpan) {\n return call(Identifiers.repeater, [collection], sourceSpan);\n}\nfunction deferWhen(modifier, expr, sourceSpan) {\n if (modifier === \"prefetch\" /* ir.DeferOpModifierKind.PREFETCH */) {\n return call(Identifiers.deferPrefetchWhen, [expr], sourceSpan);\n }\n else if (modifier === \"hydrate\" /* ir.DeferOpModifierKind.HYDRATE */) {\n return call(Identifiers.deferHydrateWhen, [expr], sourceSpan);\n }\n return call(Identifiers.deferWhen, [expr], sourceSpan);\n}\nfunction declareLet(slot, sourceSpan) {\n return call(Identifiers.declareLet, [literal(slot)], sourceSpan);\n}\nfunction storeLet(value, sourceSpan) {\n return importExpr(Identifiers.storeLet).callFn([value], sourceSpan);\n}\nfunction readContextLet(slot) {\n return importExpr(Identifiers.readContextLet).callFn([literal(slot)]);\n}\nfunction i18n(slot, constIndex, subTemplateIndex, sourceSpan) {\n const args = [literal(slot), literal(constIndex)];\n if (subTemplateIndex) {\n args.push(literal(subTemplateIndex));\n }\n return call(Identifiers.i18n, args, sourceSpan);\n}\nfunction i18nEnd(endSourceSpan) {\n return call(Identifiers.i18nEnd, [], endSourceSpan);\n}\nfunction i18nAttributes(slot, i18nAttributesConfig) {\n const args = [literal(slot), literal(i18nAttributesConfig)];\n return call(Identifiers.i18nAttributes, args, null);\n}\nfunction property(name, expression, sanitizer, sourceSpan) {\n const args = [literal(name), expression];\n if (sanitizer !== null) {\n args.push(sanitizer);\n }\n return call(Identifiers.property, args, sourceSpan);\n}\nfunction twoWayProperty(name, expression, sanitizer, sourceSpan) {\n const args = [literal(name), expression];\n if (sanitizer !== null) {\n args.push(sanitizer);\n }\n return call(Identifiers.twoWayProperty, args, sourceSpan);\n}\nfunction attribute(name, expression, sanitizer, namespace) {\n const args = [literal(name), expression];\n if (sanitizer !== null || namespace !== null) {\n args.push(sanitizer ?? literal(null));\n }\n if (namespace !== null) {\n args.push(literal(namespace));\n }\n return call(Identifiers.attribute, args, null);\n}\nfunction styleProp(name, expression, unit, sourceSpan) {\n const args = [literal(name), expression];\n if (unit !== null) {\n args.push(literal(unit));\n }\n return call(Identifiers.styleProp, args, sourceSpan);\n}\nfunction classProp(name, expression, sourceSpan) {\n return call(Identifiers.classProp, [literal(name), expression], sourceSpan);\n}\nfunction styleMap(expression, sourceSpan) {\n return call(Identifiers.styleMap, [expression], sourceSpan);\n}\nfunction classMap(expression, sourceSpan) {\n return call(Identifiers.classMap, [expression], sourceSpan);\n}\nconst PIPE_BINDINGS = [\n Identifiers.pipeBind1,\n Identifiers.pipeBind2,\n Identifiers.pipeBind3,\n Identifiers.pipeBind4,\n];\nfunction pipeBind(slot, varOffset, args) {\n if (args.length < 1 || args.length > PIPE_BINDINGS.length) {\n throw new Error(`pipeBind() argument count out of bounds`);\n }\n const instruction = PIPE_BINDINGS[args.length - 1];\n return importExpr(instruction).callFn([literal(slot), literal(varOffset), ...args]);\n}\nfunction pipeBindV(slot, varOffset, args) {\n return importExpr(Identifiers.pipeBindV).callFn([literal(slot), literal(varOffset), args]);\n}\nfunction textInterpolate(strings, expressions, sourceSpan) {\n const interpolationArgs = collateInterpolationArgs(strings, expressions);\n return callVariadicInstruction(TEXT_INTERPOLATE_CONFIG, [], interpolationArgs, [], sourceSpan);\n}\nfunction i18nExp(expr, sourceSpan) {\n return call(Identifiers.i18nExp, [expr], sourceSpan);\n}\nfunction i18nApply(slot, sourceSpan) {\n return call(Identifiers.i18nApply, [literal(slot)], sourceSpan);\n}\nfunction propertyInterpolate(name, strings, expressions, sanitizer, sourceSpan) {\n const interpolationArgs = collateInterpolationArgs(strings, expressions);\n const extraArgs = [];\n if (sanitizer !== null) {\n extraArgs.push(sanitizer);\n }\n return callVariadicInstruction(PROPERTY_INTERPOLATE_CONFIG, [literal(name)], interpolationArgs, extraArgs, sourceSpan);\n}\nfunction attributeInterpolate(name, strings, expressions, sanitizer, sourceSpan) {\n const interpolationArgs = collateInterpolationArgs(strings, expressions);\n const extraArgs = [];\n if (sanitizer !== null) {\n extraArgs.push(sanitizer);\n }\n return callVariadicInstruction(ATTRIBUTE_INTERPOLATE_CONFIG, [literal(name)], interpolationArgs, extraArgs, sourceSpan);\n}\nfunction stylePropInterpolate(name, strings, expressions, unit, sourceSpan) {\n const interpolationArgs = collateInterpolationArgs(strings, expressions);\n const extraArgs = [];\n if (unit !== null) {\n extraArgs.push(literal(unit));\n }\n return callVariadicInstruction(STYLE_PROP_INTERPOLATE_CONFIG, [literal(name)], interpolationArgs, extraArgs, sourceSpan);\n}\nfunction styleMapInterpolate(strings, expressions, sourceSpan) {\n const interpolationArgs = collateInterpolationArgs(strings, expressions);\n return callVariadicInstruction(STYLE_MAP_INTERPOLATE_CONFIG, [], interpolationArgs, [], sourceSpan);\n}\nfunction classMapInterpolate(strings, expressions, sourceSpan) {\n const interpolationArgs = collateInterpolationArgs(strings, expressions);\n return callVariadicInstruction(CLASS_MAP_INTERPOLATE_CONFIG, [], interpolationArgs, [], sourceSpan);\n}\nfunction hostProperty(name, expression, sanitizer, sourceSpan) {\n const args = [literal(name), expression];\n if (sanitizer !== null) {\n args.push(sanitizer);\n }\n return call(Identifiers.hostProperty, args, sourceSpan);\n}\nfunction syntheticHostProperty(name, expression, sourceSpan) {\n return call(Identifiers.syntheticHostProperty, [literal(name), expression], sourceSpan);\n}\nfunction pureFunction(varOffset, fn, args) {\n return callVariadicInstructionExpr(PURE_FUNCTION_CONFIG, [literal(varOffset), fn], args, [], null);\n}\nfunction attachSourceLocation(templatePath, locations) {\n return call(Identifiers.attachSourceLocations, [literal(templatePath), locations], null);\n}\n/**\n * Collates the string an expression arguments for an interpolation instruction.\n */\nfunction collateInterpolationArgs(strings, expressions) {\n if (strings.length < 1 || expressions.length !== strings.length - 1) {\n throw new Error(`AssertionError: expected specific shape of args for strings/expressions in interpolation`);\n }\n const interpolationArgs = [];\n if (expressions.length === 1 && strings[0] === '' && strings[1] === '') {\n interpolationArgs.push(expressions[0]);\n }\n else {\n let idx;\n for (idx = 0; idx < expressions.length; idx++) {\n interpolationArgs.push(literal(strings[idx]), expressions[idx]);\n }\n // idx points at the last string.\n interpolationArgs.push(literal(strings[idx]));\n }\n return interpolationArgs;\n}\nfunction call(instruction, args, sourceSpan) {\n const expr = importExpr(instruction).callFn(args, sourceSpan);\n return createStatementOp(new ExpressionStatement(expr, sourceSpan));\n}\nfunction conditional(condition, contextValue, sourceSpan) {\n const args = [condition];\n if (contextValue !== null) {\n args.push(contextValue);\n }\n return call(Identifiers.conditional, args, sourceSpan);\n}\n/**\n * `InterpolationConfig` for the `textInterpolate` instruction.\n */\nconst TEXT_INTERPOLATE_CONFIG = {\n constant: [\n Identifiers.textInterpolate,\n Identifiers.textInterpolate1,\n Identifiers.textInterpolate2,\n Identifiers.textInterpolate3,\n Identifiers.textInterpolate4,\n Identifiers.textInterpolate5,\n Identifiers.textInterpolate6,\n Identifiers.textInterpolate7,\n Identifiers.textInterpolate8,\n ],\n variable: Identifiers.textInterpolateV,\n mapping: (n) => {\n if (n % 2 === 0) {\n throw new Error(`Expected odd number of arguments`);\n }\n return (n - 1) / 2;\n },\n};\n/**\n * `InterpolationConfig` for the `propertyInterpolate` instruction.\n */\nconst PROPERTY_INTERPOLATE_CONFIG = {\n constant: [\n Identifiers.propertyInterpolate,\n Identifiers.propertyInterpolate1,\n Identifiers.propertyInterpolate2,\n Identifiers.propertyInterpolate3,\n Identifiers.propertyInterpolate4,\n Identifiers.propertyInterpolate5,\n Identifiers.propertyInterpolate6,\n Identifiers.propertyInterpolate7,\n Identifiers.propertyInterpolate8,\n ],\n variable: Identifiers.propertyInterpolateV,\n mapping: (n) => {\n if (n % 2 === 0) {\n throw new Error(`Expected odd number of arguments`);\n }\n return (n - 1) / 2;\n },\n};\n/**\n * `InterpolationConfig` for the `stylePropInterpolate` instruction.\n */\nconst STYLE_PROP_INTERPOLATE_CONFIG = {\n constant: [\n Identifiers.styleProp,\n Identifiers.stylePropInterpolate1,\n Identifiers.stylePropInterpolate2,\n Identifiers.stylePropInterpolate3,\n Identifiers.stylePropInterpolate4,\n Identifiers.stylePropInterpolate5,\n Identifiers.stylePropInterpolate6,\n Identifiers.stylePropInterpolate7,\n Identifiers.stylePropInterpolate8,\n ],\n variable: Identifiers.stylePropInterpolateV,\n mapping: (n) => {\n if (n % 2 === 0) {\n throw new Error(`Expected odd number of arguments`);\n }\n return (n - 1) / 2;\n },\n};\n/**\n * `InterpolationConfig` for the `attributeInterpolate` instruction.\n */\nconst ATTRIBUTE_INTERPOLATE_CONFIG = {\n constant: [\n Identifiers.attribute,\n Identifiers.attributeInterpolate1,\n Identifiers.attributeInterpolate2,\n Identifiers.attributeInterpolate3,\n Identifiers.attributeInterpolate4,\n Identifiers.attributeInterpolate5,\n Identifiers.attributeInterpolate6,\n Identifiers.attributeInterpolate7,\n Identifiers.attributeInterpolate8,\n ],\n variable: Identifiers.attributeInterpolateV,\n mapping: (n) => {\n if (n % 2 === 0) {\n throw new Error(`Expected odd number of arguments`);\n }\n return (n - 1) / 2;\n },\n};\n/**\n * `InterpolationConfig` for the `styleMapInterpolate` instruction.\n */\nconst STYLE_MAP_INTERPOLATE_CONFIG = {\n constant: [\n Identifiers.styleMap,\n Identifiers.styleMapInterpolate1,\n Identifiers.styleMapInterpolate2,\n Identifiers.styleMapInterpolate3,\n Identifiers.styleMapInterpolate4,\n Identifiers.styleMapInterpolate5,\n Identifiers.styleMapInterpolate6,\n Identifiers.styleMapInterpolate7,\n Identifiers.styleMapInterpolate8,\n ],\n variable: Identifiers.styleMapInterpolateV,\n mapping: (n) => {\n if (n % 2 === 0) {\n throw new Error(`Expected odd number of arguments`);\n }\n return (n - 1) / 2;\n },\n};\n/**\n * `InterpolationConfig` for the `classMapInterpolate` instruction.\n */\nconst CLASS_MAP_INTERPOLATE_CONFIG = {\n constant: [\n Identifiers.classMap,\n Identifiers.classMapInterpolate1,\n Identifiers.classMapInterpolate2,\n Identifiers.classMapInterpolate3,\n Identifiers.classMapInterpolate4,\n Identifiers.classMapInterpolate5,\n Identifiers.classMapInterpolate6,\n Identifiers.classMapInterpolate7,\n Identifiers.classMapInterpolate8,\n ],\n variable: Identifiers.classMapInterpolateV,\n mapping: (n) => {\n if (n % 2 === 0) {\n throw new Error(`Expected odd number of arguments`);\n }\n return (n - 1) / 2;\n },\n};\nconst PURE_FUNCTION_CONFIG = {\n constant: [\n Identifiers.pureFunction0,\n Identifiers.pureFunction1,\n Identifiers.pureFunction2,\n Identifiers.pureFunction3,\n Identifiers.pureFunction4,\n Identifiers.pureFunction5,\n Identifiers.pureFunction6,\n Identifiers.pureFunction7,\n Identifiers.pureFunction8,\n ],\n variable: Identifiers.pureFunctionV,\n mapping: (n) => n,\n};\nfunction callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan) {\n const n = config.mapping(interpolationArgs.length);\n if (n < config.constant.length) {\n // Constant calling pattern.\n return importExpr(config.constant[n])\n .callFn([...baseArgs, ...interpolationArgs, ...extraArgs], sourceSpan);\n }\n else if (config.variable !== null) {\n // Variable calling pattern.\n return importExpr(config.variable)\n .callFn([...baseArgs, literalArr(interpolationArgs), ...extraArgs], sourceSpan);\n }\n else {\n throw new Error(`AssertionError: unable to call variadic function`);\n }\n}\nfunction callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs, sourceSpan) {\n return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());\n}\n\n/**\n * Map of target resolvers for event listeners.\n */\nconst GLOBAL_TARGET_RESOLVERS = new Map([\n ['window', Identifiers.resolveWindow],\n ['document', Identifiers.resolveDocument],\n ['body', Identifiers.resolveBody],\n]);\n/**\n * Compiles semantic operations across all views and generates output `o.Statement`s with actual\n * runtime calls in their place.\n *\n * Reification replaces semantic operations with selected Ivy instructions and other generated code\n * structures. After reification, the create/update operation lists of all views should only contain\n * `ir.StatementOp`s (which wrap generated `o.Statement`s).\n */\nfunction reify(job) {\n for (const unit of job.units) {\n reifyCreateOperations(unit, unit.create);\n reifyUpdateOperations(unit, unit.update);\n }\n}\n/**\n * This function can be used a sanity check -- it walks every expression in the const pool, and\n * every expression reachable from an op, and makes sure that there are no IR expressions\n * left. This is nice to use for debugging mysterious failures where an IR expression cannot be\n * output from the output AST code.\n */\nfunction ensureNoIrForDebug(job) {\n for (const stmt of job.pool.statements) {\n transformExpressionsInStatement(stmt, (expr) => {\n if (isIrExpression(expr)) {\n throw new Error(`AssertionError: IR expression found during reify: ${ExpressionKind[expr.kind]}`);\n }\n return expr;\n }, VisitorContextFlag.None);\n }\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n visitExpressionsInOp(op, (expr) => {\n if (isIrExpression(expr)) {\n throw new Error(`AssertionError: IR expression found during reify: ${ExpressionKind[expr.kind]}`);\n }\n });\n }\n }\n}\nfunction reifyCreateOperations(unit, ops) {\n for (const op of ops) {\n transformExpressionsInOp(op, reifyIrExpression, VisitorContextFlag.None);\n switch (op.kind) {\n case OpKind.Text:\n OpList.replace(op, text(op.handle.slot, op.initialValue, op.sourceSpan));\n break;\n case OpKind.ElementStart:\n OpList.replace(op, elementStart(op.handle.slot, op.tag, op.attributes, op.localRefs, op.startSourceSpan));\n break;\n case OpKind.Element:\n OpList.replace(op, element(op.handle.slot, op.tag, op.attributes, op.localRefs, op.wholeSourceSpan));\n break;\n case OpKind.ElementEnd:\n OpList.replace(op, elementEnd(op.sourceSpan));\n break;\n case OpKind.ContainerStart:\n OpList.replace(op, elementContainerStart(op.handle.slot, op.attributes, op.localRefs, op.startSourceSpan));\n break;\n case OpKind.Container:\n OpList.replace(op, elementContainer(op.handle.slot, op.attributes, op.localRefs, op.wholeSourceSpan));\n break;\n case OpKind.ContainerEnd:\n OpList.replace(op, elementContainerEnd());\n break;\n case OpKind.I18nStart:\n OpList.replace(op, i18nStart(op.handle.slot, op.messageIndex, op.subTemplateIndex, op.sourceSpan));\n break;\n case OpKind.I18nEnd:\n OpList.replace(op, i18nEnd(op.sourceSpan));\n break;\n case OpKind.I18n:\n OpList.replace(op, i18n(op.handle.slot, op.messageIndex, op.subTemplateIndex, op.sourceSpan));\n break;\n case OpKind.I18nAttributes:\n if (op.i18nAttributesConfig === null) {\n throw new Error(`AssertionError: i18nAttributesConfig was not set`);\n }\n OpList.replace(op, i18nAttributes(op.handle.slot, op.i18nAttributesConfig));\n break;\n case OpKind.Template:\n if (!(unit instanceof ViewCompilationUnit)) {\n throw new Error(`AssertionError: must be compiling a component`);\n }\n if (Array.isArray(op.localRefs)) {\n throw new Error(`AssertionError: local refs array should have been extracted into a constant`);\n }\n const childView = unit.job.views.get(op.xref);\n OpList.replace(op, template(op.handle.slot, variable(childView.fnName), childView.decls, childView.vars, op.tag, op.attributes, op.localRefs, op.startSourceSpan));\n break;\n case OpKind.DisableBindings:\n OpList.replace(op, disableBindings());\n break;\n case OpKind.EnableBindings:\n OpList.replace(op, enableBindings());\n break;\n case OpKind.Pipe:\n OpList.replace(op, pipe(op.handle.slot, op.name));\n break;\n case OpKind.DeclareLet:\n OpList.replace(op, declareLet(op.handle.slot, op.sourceSpan));\n break;\n case OpKind.Listener:\n const listenerFn = reifyListenerHandler(unit, op.handlerFnName, op.handlerOps, op.consumesDollarEvent);\n const eventTargetResolver = op.eventTarget\n ? GLOBAL_TARGET_RESOLVERS.get(op.eventTarget)\n : null;\n if (eventTargetResolver === undefined) {\n throw new Error(`Unexpected global target '${op.eventTarget}' defined for '${op.name}' event. Supported list of global targets: window,document,body.`);\n }\n OpList.replace(op, listener(op.name, listenerFn, eventTargetResolver, op.hostListener && op.isAnimationListener, op.sourceSpan));\n break;\n case OpKind.TwoWayListener:\n OpList.replace(op, twoWayListener(op.name, reifyListenerHandler(unit, op.handlerFnName, op.handlerOps, true), op.sourceSpan));\n break;\n case OpKind.Variable:\n if (op.variable.name === null) {\n throw new Error(`AssertionError: unnamed variable ${op.xref}`);\n }\n OpList.replace(op, createStatementOp(new DeclareVarStmt(op.variable.name, op.initializer, undefined, StmtModifier.Final)));\n break;\n case OpKind.Namespace:\n switch (op.active) {\n case Namespace.HTML:\n OpList.replace(op, namespaceHTML());\n break;\n case Namespace.SVG:\n OpList.replace(op, namespaceSVG());\n break;\n case Namespace.Math:\n OpList.replace(op, namespaceMath());\n break;\n }\n break;\n case OpKind.Defer:\n const timerScheduling = !!op.loadingMinimumTime || !!op.loadingAfterTime || !!op.placeholderMinimumTime;\n OpList.replace(op, defer(op.handle.slot, op.mainSlot.slot, op.resolverFn, op.loadingSlot?.slot ?? null, op.placeholderSlot?.slot ?? null, op.errorSlot?.slot ?? null, op.loadingConfig, op.placeholderConfig, timerScheduling, op.sourceSpan, op.flags));\n break;\n case OpKind.DeferOn:\n let args = [];\n switch (op.trigger.kind) {\n case DeferTriggerKind.Never:\n case DeferTriggerKind.Idle:\n case DeferTriggerKind.Immediate:\n break;\n case DeferTriggerKind.Timer:\n args = [op.trigger.delay];\n break;\n case DeferTriggerKind.Interaction:\n case DeferTriggerKind.Hover:\n case DeferTriggerKind.Viewport:\n // `hydrate` triggers don't support targets.\n if (op.modifier === \"hydrate\" /* ir.DeferOpModifierKind.HYDRATE */) {\n args = [];\n }\n else {\n if (op.trigger.targetSlot?.slot == null || op.trigger.targetSlotViewSteps === null) {\n throw new Error(`Slot or view steps not set in trigger reification for trigger kind ${op.trigger.kind}`);\n }\n args = [op.trigger.targetSlot.slot];\n if (op.trigger.targetSlotViewSteps !== 0) {\n args.push(op.trigger.targetSlotViewSteps);\n }\n }\n break;\n default:\n throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${op.trigger.kind}`);\n }\n OpList.replace(op, deferOn(op.trigger.kind, args, op.modifier, op.sourceSpan));\n break;\n case OpKind.ProjectionDef:\n OpList.replace(op, projectionDef(op.def));\n break;\n case OpKind.Projection:\n if (op.handle.slot === null) {\n throw new Error('No slot was assigned for project instruction');\n }\n let fallbackViewFnName = null;\n let fallbackDecls = null;\n let fallbackVars = null;\n if (op.fallbackView !== null) {\n if (!(unit instanceof ViewCompilationUnit)) {\n throw new Error(`AssertionError: must be compiling a component`);\n }\n const fallbackView = unit.job.views.get(op.fallbackView);\n if (fallbackView === undefined) {\n throw new Error('AssertionError: projection had fallback view xref, but fallback view was not found');\n }\n if (fallbackView.fnName === null ||\n fallbackView.decls === null ||\n fallbackView.vars === null) {\n throw new Error(`AssertionError: expected projection fallback view to have been named and counted`);\n }\n fallbackViewFnName = fallbackView.fnName;\n fallbackDecls = fallbackView.decls;\n fallbackVars = fallbackView.vars;\n }\n OpList.replace(op, projection(op.handle.slot, op.projectionSlotIndex, op.attributes, fallbackViewFnName, fallbackDecls, fallbackVars, op.sourceSpan));\n break;\n case OpKind.RepeaterCreate:\n if (op.handle.slot === null) {\n throw new Error('No slot was assigned for repeater instruction');\n }\n if (!(unit instanceof ViewCompilationUnit)) {\n throw new Error(`AssertionError: must be compiling a component`);\n }\n const repeaterView = unit.job.views.get(op.xref);\n if (repeaterView.fnName === null) {\n throw new Error(`AssertionError: expected repeater primary view to have been named`);\n }\n let emptyViewFnName = null;\n let emptyDecls = null;\n let emptyVars = null;\n if (op.emptyView !== null) {\n const emptyView = unit.job.views.get(op.emptyView);\n if (emptyView === undefined) {\n throw new Error('AssertionError: repeater had empty view xref, but empty view was not found');\n }\n if (emptyView.fnName === null || emptyView.decls === null || emptyView.vars === null) {\n throw new Error(`AssertionError: expected repeater empty view to have been named and counted`);\n }\n emptyViewFnName = emptyView.fnName;\n emptyDecls = emptyView.decls;\n emptyVars = emptyView.vars;\n }\n OpList.replace(op, repeaterCreate(op.handle.slot, repeaterView.fnName, op.decls, op.vars, op.tag, op.attributes, op.trackByFn, op.usesComponentInstance, emptyViewFnName, emptyDecls, emptyVars, op.emptyTag, op.emptyAttributes, op.wholeSourceSpan));\n break;\n case OpKind.SourceLocation:\n const locationsLiteral = literalArr(op.locations.map(({ targetSlot, offset, line, column }) => {\n if (targetSlot.slot === null) {\n throw new Error('No slot was assigned for source location');\n }\n return literalArr([\n literal(targetSlot.slot),\n literal(offset),\n literal(line),\n literal(column),\n ]);\n }));\n OpList.replace(op, attachSourceLocation(op.templatePath, locationsLiteral));\n break;\n case OpKind.Statement:\n // Pass statement operations directly through.\n break;\n default:\n throw new Error(`AssertionError: Unsupported reification of create op ${OpKind[op.kind]}`);\n }\n }\n}\nfunction reifyUpdateOperations(_unit, ops) {\n for (const op of ops) {\n transformExpressionsInOp(op, reifyIrExpression, VisitorContextFlag.None);\n switch (op.kind) {\n case OpKind.Advance:\n OpList.replace(op, advance(op.delta, op.sourceSpan));\n break;\n case OpKind.Property:\n if (op.expression instanceof Interpolation) {\n OpList.replace(op, propertyInterpolate(op.name, op.expression.strings, op.expression.expressions, op.sanitizer, op.sourceSpan));\n }\n else {\n OpList.replace(op, property(op.name, op.expression, op.sanitizer, op.sourceSpan));\n }\n break;\n case OpKind.TwoWayProperty:\n OpList.replace(op, twoWayProperty(op.name, op.expression, op.sanitizer, op.sourceSpan));\n break;\n case OpKind.StyleProp:\n if (op.expression instanceof Interpolation) {\n OpList.replace(op, stylePropInterpolate(op.name, op.expression.strings, op.expression.expressions, op.unit, op.sourceSpan));\n }\n else {\n OpList.replace(op, styleProp(op.name, op.expression, op.unit, op.sourceSpan));\n }\n break;\n case OpKind.ClassProp:\n OpList.replace(op, classProp(op.name, op.expression, op.sourceSpan));\n break;\n case OpKind.StyleMap:\n if (op.expression instanceof Interpolation) {\n OpList.replace(op, styleMapInterpolate(op.expression.strings, op.expression.expressions, op.sourceSpan));\n }\n else {\n OpList.replace(op, styleMap(op.expression, op.sourceSpan));\n }\n break;\n case OpKind.ClassMap:\n if (op.expression instanceof Interpolation) {\n OpList.replace(op, classMapInterpolate(op.expression.strings, op.expression.expressions, op.sourceSpan));\n }\n else {\n OpList.replace(op, classMap(op.expression, op.sourceSpan));\n }\n break;\n case OpKind.I18nExpression:\n OpList.replace(op, i18nExp(op.expression, op.sourceSpan));\n break;\n case OpKind.I18nApply:\n OpList.replace(op, i18nApply(op.handle.slot, op.sourceSpan));\n break;\n case OpKind.InterpolateText:\n OpList.replace(op, textInterpolate(op.interpolation.strings, op.interpolation.expressions, op.sourceSpan));\n break;\n case OpKind.Attribute:\n if (op.expression instanceof Interpolation) {\n OpList.replace(op, attributeInterpolate(op.name, op.expression.strings, op.expression.expressions, op.sanitizer, op.sourceSpan));\n }\n else {\n OpList.replace(op, attribute(op.name, op.expression, op.sanitizer, op.namespace));\n }\n break;\n case OpKind.HostProperty:\n if (op.expression instanceof Interpolation) {\n throw new Error('not yet handled');\n }\n else {\n if (op.isAnimationTrigger) {\n OpList.replace(op, syntheticHostProperty(op.name, op.expression, op.sourceSpan));\n }\n else {\n OpList.replace(op, hostProperty(op.name, op.expression, op.sanitizer, op.sourceSpan));\n }\n }\n break;\n case OpKind.Variable:\n if (op.variable.name === null) {\n throw new Error(`AssertionError: unnamed variable ${op.xref}`);\n }\n OpList.replace(op, createStatementOp(new DeclareVarStmt(op.variable.name, op.initializer, undefined, StmtModifier.Final)));\n break;\n case OpKind.Conditional:\n if (op.processed === null) {\n throw new Error(`Conditional test was not set.`);\n }\n OpList.replace(op, conditional(op.processed, op.contextValue, op.sourceSpan));\n break;\n case OpKind.Repeater:\n OpList.replace(op, repeater(op.collection, op.sourceSpan));\n break;\n case OpKind.DeferWhen:\n OpList.replace(op, deferWhen(op.modifier, op.expr, op.sourceSpan));\n break;\n case OpKind.StoreLet:\n throw new Error(`AssertionError: unexpected storeLet ${op.declaredName}`);\n case OpKind.Statement:\n // Pass statement operations directly through.\n break;\n default:\n throw new Error(`AssertionError: Unsupported reification of update op ${OpKind[op.kind]}`);\n }\n }\n}\nfunction reifyIrExpression(expr) {\n if (!isIrExpression(expr)) {\n return expr;\n }\n switch (expr.kind) {\n case ExpressionKind.NextContext:\n return nextContext(expr.steps);\n case ExpressionKind.Reference:\n return reference(expr.targetSlot.slot + 1 + expr.offset);\n case ExpressionKind.LexicalRead:\n throw new Error(`AssertionError: unresolved LexicalRead of ${expr.name}`);\n case ExpressionKind.TwoWayBindingSet:\n throw new Error(`AssertionError: unresolved TwoWayBindingSet`);\n case ExpressionKind.RestoreView:\n if (typeof expr.view === 'number') {\n throw new Error(`AssertionError: unresolved RestoreView`);\n }\n return restoreView(expr.view);\n case ExpressionKind.ResetView:\n return resetView(expr.expr);\n case ExpressionKind.GetCurrentView:\n return getCurrentView();\n case ExpressionKind.ReadVariable:\n if (expr.name === null) {\n throw new Error(`Read of unnamed variable ${expr.xref}`);\n }\n return variable(expr.name);\n case ExpressionKind.ReadTemporaryExpr:\n if (expr.name === null) {\n throw new Error(`Read of unnamed temporary ${expr.xref}`);\n }\n return variable(expr.name);\n case ExpressionKind.AssignTemporaryExpr:\n if (expr.name === null) {\n throw new Error(`Assign of unnamed temporary ${expr.xref}`);\n }\n return variable(expr.name).set(expr.expr);\n case ExpressionKind.PureFunctionExpr:\n if (expr.fn === null) {\n throw new Error(`AssertionError: expected PureFunctions to have been extracted`);\n }\n return pureFunction(expr.varOffset, expr.fn, expr.args);\n case ExpressionKind.PureFunctionParameterExpr:\n throw new Error(`AssertionError: expected PureFunctionParameterExpr to have been extracted`);\n case ExpressionKind.PipeBinding:\n return pipeBind(expr.targetSlot.slot, expr.varOffset, expr.args);\n case ExpressionKind.PipeBindingVariadic:\n return pipeBindV(expr.targetSlot.slot, expr.varOffset, expr.args);\n case ExpressionKind.SlotLiteralExpr:\n return literal(expr.slot.slot);\n case ExpressionKind.ContextLetReference:\n return readContextLet(expr.targetSlot.slot);\n case ExpressionKind.StoreLet:\n return storeLet(expr.value, expr.sourceSpan);\n default:\n throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${ExpressionKind[expr.kind]}`);\n }\n}\n/**\n * Listeners get turned into a function expression, which may or may not have the `$event`\n * parameter defined.\n */\nfunction reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {\n // First, reify all instruction calls within `handlerOps`.\n reifyUpdateOperations(unit, handlerOps);\n // Next, extract all the `o.Statement`s from the reified operations. We can expect that at this\n // point, all operations have been converted to statements.\n const handlerStmts = [];\n for (const op of handlerOps) {\n if (op.kind !== OpKind.Statement) {\n throw new Error(`AssertionError: expected reified statements, but found op ${OpKind[op.kind]}`);\n }\n handlerStmts.push(op.statement);\n }\n // If `$event` is referenced, we need to generate it as a parameter.\n const params = [];\n if (consumesDollarEvent) {\n // We need the `$event` parameter.\n params.push(new FnParam('$event'));\n }\n return fn(params, handlerStmts, undefined, undefined, name);\n}\n\n/**\n * Binding with no content can be safely deleted.\n */\nfunction removeEmptyBindings(job) {\n for (const unit of job.units) {\n for (const op of unit.update) {\n switch (op.kind) {\n case OpKind.Attribute:\n case OpKind.Binding:\n case OpKind.ClassProp:\n case OpKind.ClassMap:\n case OpKind.Property:\n case OpKind.StyleProp:\n case OpKind.StyleMap:\n if (op.expression instanceof EmptyExpr) {\n OpList.remove(op);\n }\n break;\n }\n }\n }\n}\n\n/**\n * Remove the i18n context ops after they are no longer needed, and null out references to them to\n * be safe.\n */\nfunction removeI18nContexts(job) {\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case OpKind.I18nContext:\n OpList.remove(op);\n break;\n case OpKind.I18nStart:\n op.context = null;\n break;\n }\n }\n }\n}\n\n/**\n * i18nAttributes ops will be generated for each i18n attribute. However, not all i18n attribues\n * will contain dynamic content, and so some of these i18nAttributes ops may be unnecessary.\n */\nfunction removeUnusedI18nAttributesOps(job) {\n for (const unit of job.units) {\n const ownersWithI18nExpressions = new Set();\n for (const op of unit.update) {\n switch (op.kind) {\n case OpKind.I18nExpression:\n ownersWithI18nExpressions.add(op.i18nOwner);\n }\n }\n for (const op of unit.create) {\n switch (op.kind) {\n case OpKind.I18nAttributes:\n if (ownersWithI18nExpressions.has(op.xref)) {\n continue;\n }\n OpList.remove(op);\n }\n }\n }\n}\n\n/**\n * Resolves `ir.ContextExpr` expressions (which represent embedded view or component contexts) to\n * either the `ctx` parameter to component functions (for the current view context) or to variables\n * that store those contexts (for contexts accessed via the `nextContext()` instruction).\n */\nfunction resolveContexts(job) {\n for (const unit of job.units) {\n processLexicalScope$1(unit, unit.create);\n processLexicalScope$1(unit, unit.update);\n }\n}\nfunction processLexicalScope$1(view, ops) {\n // Track the expressions used to access all available contexts within the current view, by the\n // view `ir.XrefId`.\n const scope = new Map();\n // The current view's context is accessible via the `ctx` parameter.\n scope.set(view.xref, variable('ctx'));\n for (const op of ops) {\n switch (op.kind) {\n case OpKind.Variable:\n switch (op.variable.kind) {\n case SemanticVariableKind.Context:\n scope.set(op.variable.view, new ReadVariableExpr(op.xref));\n break;\n }\n break;\n case OpKind.Listener:\n case OpKind.TwoWayListener:\n processLexicalScope$1(view, op.handlerOps);\n break;\n }\n }\n if (view === view.job.root) {\n // Prefer `ctx` of the root view to any variables which happen to contain the root context.\n scope.set(view.xref, variable('ctx'));\n }\n for (const op of ops) {\n transformExpressionsInOp(op, (expr) => {\n if (expr instanceof ContextExpr) {\n if (!scope.has(expr.view)) {\n throw new Error(`No context found for reference to view ${expr.view} from view ${view.xref}`);\n }\n return scope.get(expr.view);\n }\n else {\n return expr;\n }\n }, VisitorContextFlag.None);\n }\n}\n\n/**\n * Any variable inside a listener with the name `$event` will be transformed into a output lexical\n * read immediately, and does not participate in any of the normal logic for handling variables.\n */\nfunction resolveDollarEvent(job) {\n for (const unit of job.units) {\n transformDollarEvent(unit.create);\n transformDollarEvent(unit.update);\n }\n}\nfunction transformDollarEvent(ops) {\n for (const op of ops) {\n if (op.kind === OpKind.Listener || op.kind === OpKind.TwoWayListener) {\n transformExpressionsInOp(op, (expr) => {\n if (expr instanceof LexicalReadExpr && expr.name === '$event') {\n // Two-way listeners always consume `$event` so they omit this field.\n if (op.kind === OpKind.Listener) {\n op.consumesDollarEvent = true;\n }\n return new ReadVarExpr(expr.name);\n }\n return expr;\n }, VisitorContextFlag.InChildOperation);\n }\n }\n}\n\n/**\n * Resolve the element placeholders in i18n messages.\n */\nfunction resolveI18nElementPlaceholders(job) {\n // Record all of the element and i18n context ops for use later.\n const i18nContexts = new Map();\n const elements = new Map();\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case OpKind.I18nContext:\n i18nContexts.set(op.xref, op);\n break;\n case OpKind.ElementStart:\n elements.set(op.xref, op);\n break;\n }\n }\n }\n resolvePlaceholdersForView(job, job.root, i18nContexts, elements);\n}\n/**\n * Recursively resolves element and template tag placeholders in the given view.\n */\nfunction resolvePlaceholdersForView(job, unit, i18nContexts, elements, pendingStructuralDirective) {\n // Track the current i18n op and corresponding i18n context op as we step through the creation\n // IR.\n let currentOps = null;\n let pendingStructuralDirectiveCloses = new Map();\n for (const op of unit.create) {\n switch (op.kind) {\n case OpKind.I18nStart:\n if (!op.context) {\n throw Error('Could not find i18n context for i18n op');\n }\n currentOps = { i18nBlock: op, i18nContext: i18nContexts.get(op.context) };\n break;\n case OpKind.I18nEnd:\n currentOps = null;\n break;\n case OpKind.ElementStart:\n // For elements with i18n placeholders, record its slot value in the params map under the\n // corresponding tag start placeholder.\n if (op.i18nPlaceholder !== undefined) {\n if (currentOps === null) {\n throw Error('i18n tag placeholder should only occur inside an i18n block');\n }\n recordElementStart(op, currentOps.i18nContext, currentOps.i18nBlock, pendingStructuralDirective);\n // If there is a separate close tag placeholder for this element, save the pending\n // structural directive so we can pass it to the closing tag as well.\n if (pendingStructuralDirective && op.i18nPlaceholder.closeName) {\n pendingStructuralDirectiveCloses.set(op.xref, pendingStructuralDirective);\n }\n // Clear out the pending structural directive now that its been accounted for.\n pendingStructuralDirective = undefined;\n }\n break;\n case OpKind.ElementEnd:\n // For elements with i18n placeholders, record its slot value in the params map under the\n // corresponding tag close placeholder.\n const startOp = elements.get(op.xref);\n if (startOp && startOp.i18nPlaceholder !== undefined) {\n if (currentOps === null) {\n throw Error('AssertionError: i18n tag placeholder should only occur inside an i18n block');\n }\n recordElementClose(startOp, currentOps.i18nContext, currentOps.i18nBlock, pendingStructuralDirectiveCloses.get(op.xref));\n // Clear out the pending structural directive close that was accounted for.\n pendingStructuralDirectiveCloses.delete(op.xref);\n }\n break;\n case OpKind.Projection:\n // For content projections with i18n placeholders, record its slot value in the params map\n // under the corresponding tag start and close placeholders.\n if (op.i18nPlaceholder !== undefined) {\n if (currentOps === null) {\n throw Error('i18n tag placeholder should only occur inside an i18n block');\n }\n recordElementStart(op, currentOps.i18nContext, currentOps.i18nBlock, pendingStructuralDirective);\n recordElementClose(op, currentOps.i18nContext, currentOps.i18nBlock, pendingStructuralDirective);\n // Clear out the pending structural directive now that its been accounted for.\n pendingStructuralDirective = undefined;\n }\n break;\n case OpKind.Template:\n const view = job.views.get(op.xref);\n if (op.i18nPlaceholder === undefined) {\n // If there is no i18n placeholder, just recurse into the view in case it contains i18n\n // blocks.\n resolvePlaceholdersForView(job, view, i18nContexts, elements);\n }\n else {\n if (currentOps === null) {\n throw Error('i18n tag placeholder should only occur inside an i18n block');\n }\n if (op.templateKind === TemplateKind.Structural) {\n // If this is a structural directive template, don't record anything yet. Instead pass\n // the current template as a pending structural directive to be recorded when we find\n // the element, content, or template it belongs to. This allows us to create combined\n // values that represent, e.g. the start of a template and element at the same time.\n resolvePlaceholdersForView(job, view, i18nContexts, elements, op);\n }\n else {\n // If this is some other kind of template, we can record its start, recurse into its\n // view, and then record its end.\n recordTemplateStart(job, view, op.handle.slot, op.i18nPlaceholder, currentOps.i18nContext, currentOps.i18nBlock, pendingStructuralDirective);\n resolvePlaceholdersForView(job, view, i18nContexts, elements);\n recordTemplateClose(job, view, op.handle.slot, op.i18nPlaceholder, currentOps.i18nContext, currentOps.i18nBlock, pendingStructuralDirective);\n pendingStructuralDirective = undefined;\n }\n }\n break;\n case OpKind.RepeaterCreate:\n if (pendingStructuralDirective !== undefined) {\n throw Error('AssertionError: Unexpected structural directive associated with @for block');\n }\n // RepeaterCreate has 3 slots: the first is for the op itself, the second is for the @for\n // template and the (optional) third is for the @empty template.\n const forSlot = op.handle.slot + 1;\n const forView = job.views.get(op.xref);\n // First record all of the placeholders for the @for template.\n if (op.i18nPlaceholder === undefined) {\n // If there is no i18n placeholder, just recurse into the view in case it contains i18n\n // blocks.\n resolvePlaceholdersForView(job, forView, i18nContexts, elements);\n }\n else {\n if (currentOps === null) {\n throw Error('i18n tag placeholder should only occur inside an i18n block');\n }\n recordTemplateStart(job, forView, forSlot, op.i18nPlaceholder, currentOps.i18nContext, currentOps.i18nBlock, pendingStructuralDirective);\n resolvePlaceholdersForView(job, forView, i18nContexts, elements);\n recordTemplateClose(job, forView, forSlot, op.i18nPlaceholder, currentOps.i18nContext, currentOps.i18nBlock, pendingStructuralDirective);\n pendingStructuralDirective = undefined;\n }\n // Then if there's an @empty template, add its placeholders as well.\n if (op.emptyView !== null) {\n // RepeaterCreate has 3 slots: the first is for the op itself, the second is for the @for\n // template and the (optional) third is for the @empty template.\n const emptySlot = op.handle.slot + 2;\n const emptyView = job.views.get(op.emptyView);\n if (op.emptyI18nPlaceholder === undefined) {\n // If there is no i18n placeholder, just recurse into the view in case it contains i18n\n // blocks.\n resolvePlaceholdersForView(job, emptyView, i18nContexts, elements);\n }\n else {\n if (currentOps === null) {\n throw Error('i18n tag placeholder should only occur inside an i18n block');\n }\n recordTemplateStart(job, emptyView, emptySlot, op.emptyI18nPlaceholder, currentOps.i18nContext, currentOps.i18nBlock, pendingStructuralDirective);\n resolvePlaceholdersForView(job, emptyView, i18nContexts, elements);\n recordTemplateClose(job, emptyView, emptySlot, op.emptyI18nPlaceholder, currentOps.i18nContext, currentOps.i18nBlock, pendingStructuralDirective);\n pendingStructuralDirective = undefined;\n }\n }\n break;\n }\n }\n}\n/**\n * Records an i18n param value for the start of an element.\n */\nfunction recordElementStart(op, i18nContext, i18nBlock, structuralDirective) {\n const { startName, closeName } = op.i18nPlaceholder;\n let flags = I18nParamValueFlags.ElementTag | I18nParamValueFlags.OpenTag;\n let value = op.handle.slot;\n // If the element is associated with a structural directive, start it as well.\n if (structuralDirective !== undefined) {\n flags |= I18nParamValueFlags.TemplateTag;\n value = { element: value, template: structuralDirective.handle.slot };\n }\n // For self-closing tags, there is no close tag placeholder. Instead, the start tag\n // placeholder accounts for the start and close of the element.\n if (!closeName) {\n flags |= I18nParamValueFlags.CloseTag;\n }\n addParam(i18nContext.params, startName, value, i18nBlock.subTemplateIndex, flags);\n}\n/**\n * Records an i18n param value for the closing of an element.\n */\nfunction recordElementClose(op, i18nContext, i18nBlock, structuralDirective) {\n const { closeName } = op.i18nPlaceholder;\n // Self-closing tags don't have a closing tag placeholder, instead the element closing is\n // recorded via an additional flag on the element start value.\n if (closeName) {\n let flags = I18nParamValueFlags.ElementTag | I18nParamValueFlags.CloseTag;\n let value = op.handle.slot;\n // If the element is associated with a structural directive, close it as well.\n if (structuralDirective !== undefined) {\n flags |= I18nParamValueFlags.TemplateTag;\n value = { element: value, template: structuralDirective.handle.slot };\n }\n addParam(i18nContext.params, closeName, value, i18nBlock.subTemplateIndex, flags);\n }\n}\n/**\n * Records an i18n param value for the start of a template.\n */\nfunction recordTemplateStart(job, view, slot, i18nPlaceholder, i18nContext, i18nBlock, structuralDirective) {\n let { startName, closeName } = i18nPlaceholder;\n let flags = I18nParamValueFlags.TemplateTag | I18nParamValueFlags.OpenTag;\n // For self-closing tags, there is no close tag placeholder. Instead, the start tag\n // placeholder accounts for the start and close of the element.\n if (!closeName) {\n flags |= I18nParamValueFlags.CloseTag;\n }\n // If the template is associated with a structural directive, record the structural directive's\n // start first. Since this template must be in the structural directive's view, we can just\n // directly use the current i18n block's sub-template index.\n if (structuralDirective !== undefined) {\n addParam(i18nContext.params, startName, structuralDirective.handle.slot, i18nBlock.subTemplateIndex, flags);\n }\n // Record the start of the template. For the sub-template index, pass the index for the template's\n // view, rather than the current i18n block's index.\n addParam(i18nContext.params, startName, slot, getSubTemplateIndexForTemplateTag(job, i18nBlock, view), flags);\n}\n/**\n * Records an i18n param value for the closing of a template.\n */\nfunction recordTemplateClose(job, view, slot, i18nPlaceholder, i18nContext, i18nBlock, structuralDirective) {\n const { closeName } = i18nPlaceholder;\n const flags = I18nParamValueFlags.TemplateTag | I18nParamValueFlags.CloseTag;\n // Self-closing tags don't have a closing tag placeholder, instead the template's closing is\n // recorded via an additional flag on the template start value.\n if (closeName) {\n // Record the closing of the template. For the sub-template index, pass the index for the\n // template's view, rather than the current i18n block's index.\n addParam(i18nContext.params, closeName, slot, getSubTemplateIndexForTemplateTag(job, i18nBlock, view), flags);\n // If the template is associated with a structural directive, record the structural directive's\n // closing after. Since this template must be in the structural directive's view, we can just\n // directly use the current i18n block's sub-template index.\n if (structuralDirective !== undefined) {\n addParam(i18nContext.params, closeName, structuralDirective.handle.slot, i18nBlock.subTemplateIndex, flags);\n }\n }\n}\n/**\n * Get the subTemplateIndex for the given template op. For template ops, use the subTemplateIndex of\n * the child i18n block inside the template.\n */\nfunction getSubTemplateIndexForTemplateTag(job, i18nOp, view) {\n for (const childOp of view.create) {\n if (childOp.kind === OpKind.I18nStart) {\n return childOp.subTemplateIndex;\n }\n }\n return i18nOp.subTemplateIndex;\n}\n/**\n * Add a param value to the given params map.\n */\nfunction addParam(params, placeholder, value, subTemplateIndex, flags) {\n const values = params.get(placeholder) ?? [];\n values.push({ value, subTemplateIndex, flags });\n params.set(placeholder, values);\n}\n\n/**\n * Resolve the i18n expression placeholders in i18n messages.\n */\nfunction resolveI18nExpressionPlaceholders(job) {\n // Record all of the i18n context ops, and the sub-template index for each i18n op.\n const subTemplateIndices = new Map();\n const i18nContexts = new Map();\n const icuPlaceholders = new Map();\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case OpKind.I18nStart:\n subTemplateIndices.set(op.xref, op.subTemplateIndex);\n break;\n case OpKind.I18nContext:\n i18nContexts.set(op.xref, op);\n break;\n case OpKind.IcuPlaceholder:\n icuPlaceholders.set(op.xref, op);\n break;\n }\n }\n }\n // Keep track of the next available expression index for each i18n message.\n const expressionIndices = new Map();\n // Keep track of a reference index for each expression.\n // We use different references for normal i18n expressio and attribute i18n expressions. This is\n // because child i18n blocks in templates don't get their own context, since they're rolled into\n // the translated message of the parent, but they may target a different slot.\n const referenceIndex = (op) => op.usage === I18nExpressionFor.I18nText ? op.i18nOwner : op.context;\n for (const unit of job.units) {\n for (const op of unit.update) {\n if (op.kind === OpKind.I18nExpression) {\n const index = expressionIndices.get(referenceIndex(op)) || 0;\n const subTemplateIndex = subTemplateIndices.get(op.i18nOwner) ?? null;\n const value = {\n value: index,\n subTemplateIndex: subTemplateIndex,\n flags: I18nParamValueFlags.ExpressionIndex,\n };\n updatePlaceholder(op, value, i18nContexts, icuPlaceholders);\n expressionIndices.set(referenceIndex(op), index + 1);\n }\n }\n }\n}\nfunction updatePlaceholder(op, value, i18nContexts, icuPlaceholders) {\n if (op.i18nPlaceholder !== null) {\n const i18nContext = i18nContexts.get(op.context);\n const params = op.resolutionTime === I18nParamResolutionTime.Creation\n ? i18nContext.params\n : i18nContext.postprocessingParams;\n const values = params.get(op.i18nPlaceholder) || [];\n values.push(value);\n params.set(op.i18nPlaceholder, values);\n }\n if (op.icuPlaceholder !== null) {\n const icuPlaceholderOp = icuPlaceholders.get(op.icuPlaceholder);\n icuPlaceholderOp?.expressionPlaceholders.push(value);\n }\n}\n\n/**\n * Resolves lexical references in views (`ir.LexicalReadExpr`) to either a target variable or to\n * property reads on the top-level component context.\n *\n * Also matches `ir.RestoreViewExpr` expressions with the variables of their corresponding saved\n * views.\n */\nfunction resolveNames(job) {\n for (const unit of job.units) {\n processLexicalScope(unit, unit.create, null);\n processLexicalScope(unit, unit.update, null);\n }\n}\nfunction processLexicalScope(unit, ops, savedView) {\n // Maps names defined in the lexical scope of this template to the `ir.XrefId`s of the variable\n // declarations which represent those values.\n //\n // Since variables are generated in each view for the entire lexical scope (including any\n // identifiers from parent templates) only local variables need be considered here.\n const scope = new Map();\n // Symbols defined within the current scope. They take precedence over ones defined outside.\n const localDefinitions = new Map();\n // First, step through the operations list and:\n // 1) build up the `scope` mapping\n // 2) recurse into any listener functions\n for (const op of ops) {\n switch (op.kind) {\n case OpKind.Variable:\n switch (op.variable.kind) {\n case SemanticVariableKind.Identifier:\n if (op.variable.local) {\n if (localDefinitions.has(op.variable.identifier)) {\n continue;\n }\n localDefinitions.set(op.variable.identifier, op.xref);\n }\n else if (scope.has(op.variable.identifier)) {\n continue;\n }\n scope.set(op.variable.identifier, op.xref);\n break;\n case SemanticVariableKind.Alias:\n // This variable represents some kind of identifier which can be used in the template.\n if (scope.has(op.variable.identifier)) {\n continue;\n }\n scope.set(op.variable.identifier, op.xref);\n break;\n case SemanticVariableKind.SavedView:\n // This variable represents a snapshot of the current view context, and can be used to\n // restore that context within listener functions.\n savedView = {\n view: op.variable.view,\n variable: op.xref,\n };\n break;\n }\n break;\n case OpKind.Listener:\n case OpKind.TwoWayListener:\n // Listener functions have separate variable declarations, so process them as a separate\n // lexical scope.\n processLexicalScope(unit, op.handlerOps, savedView);\n break;\n }\n }\n // Next, use the `scope` mapping to match `ir.LexicalReadExpr` with defined names in the lexical\n // scope. Also, look for `ir.RestoreViewExpr`s and match them with the snapshotted view context\n // variable.\n for (const op of ops) {\n if (op.kind == OpKind.Listener || op.kind === OpKind.TwoWayListener) {\n // Listeners were already processed above with their own scopes.\n continue;\n }\n transformExpressionsInOp(op, (expr) => {\n if (expr instanceof LexicalReadExpr) {\n // `expr` is a read of a name within the lexical scope of this view.\n // Either that name is defined within the current view, or it represents a property from the\n // main component context.\n if (localDefinitions.has(expr.name)) {\n return new ReadVariableExpr(localDefinitions.get(expr.name));\n }\n else if (scope.has(expr.name)) {\n // This was a defined variable in the current scope.\n return new ReadVariableExpr(scope.get(expr.name));\n }\n else {\n // Reading from the component context.\n return new ReadPropExpr(new ContextExpr(unit.job.root.xref), expr.name);\n }\n }\n else if (expr instanceof RestoreViewExpr && typeof expr.view === 'number') {\n // `ir.RestoreViewExpr` happens in listener functions and restores a saved view from the\n // parent creation list. We expect to find that we captured the `savedView` previously, and\n // that it matches the expected view to be restored.\n if (savedView === null || savedView.view !== expr.view) {\n throw new Error(`AssertionError: no saved view ${expr.view} from view ${unit.xref}`);\n }\n expr.view = new ReadVariableExpr(savedView.variable);\n return expr;\n }\n else {\n return expr;\n }\n }, VisitorContextFlag.None);\n }\n for (const op of ops) {\n visitExpressionsInOp(op, (expr) => {\n if (expr instanceof LexicalReadExpr) {\n throw new Error(`AssertionError: no lexical reads should remain, but found read of ${expr.name}`);\n }\n });\n }\n}\n\n/**\n * Map of security contexts to their sanitizer function.\n */\nconst sanitizerFns = new Map([\n [SecurityContext.HTML, Identifiers.sanitizeHtml],\n [SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl],\n [SecurityContext.SCRIPT, Identifiers.sanitizeScript],\n [SecurityContext.STYLE, Identifiers.sanitizeStyle],\n [SecurityContext.URL, Identifiers.sanitizeUrl],\n]);\n/**\n * Map of security contexts to their trusted value function.\n */\nconst trustedValueFns = new Map([\n [SecurityContext.HTML, Identifiers.trustConstantHtml],\n [SecurityContext.RESOURCE_URL, Identifiers.trustConstantResourceUrl],\n]);\n/**\n * Resolves sanitization functions for ops that need them.\n */\nfunction resolveSanitizers(job) {\n for (const unit of job.units) {\n const elements = createOpXrefMap(unit);\n // For normal element bindings we create trusted values for security sensitive constant\n // attributes. However, for host bindings we skip this step (this matches what\n // TemplateDefinitionBuilder does).\n // TODO: Is the TDB behavior correct here?\n if (job.kind !== CompilationJobKind.Host) {\n for (const op of unit.create) {\n if (op.kind === OpKind.ExtractedAttribute) {\n const trustedValueFn = trustedValueFns.get(getOnlySecurityContext(op.securityContext)) ?? null;\n op.trustedValueFn = trustedValueFn !== null ? importExpr(trustedValueFn) : null;\n }\n }\n }\n for (const op of unit.update) {\n switch (op.kind) {\n case OpKind.Property:\n case OpKind.Attribute:\n case OpKind.HostProperty:\n let sanitizerFn = null;\n if (Array.isArray(op.securityContext) &&\n op.securityContext.length === 2 &&\n op.securityContext.indexOf(SecurityContext.URL) > -1 &&\n op.securityContext.indexOf(SecurityContext.RESOURCE_URL) > -1) {\n // When the host element isn't known, some URL attributes (such as \"src\" and \"href\") may\n // be part of multiple different security contexts. In this case we use special\n // sanitization function and select the actual sanitizer at runtime based on a tag name\n // that is provided while invoking sanitization function.\n sanitizerFn = Identifiers.sanitizeUrlOrResourceUrl;\n }\n else {\n sanitizerFn = sanitizerFns.get(getOnlySecurityContext(op.securityContext)) ?? null;\n }\n op.sanitizer = sanitizerFn !== null ? importExpr(sanitizerFn) : null;\n // If there was no sanitization function found based on the security context of an\n // attribute/property, check whether this attribute/property is one of the\n // security-sensitive <iframe> attributes (and that the current element is actually an\n // <iframe>).\n if (op.sanitizer === null) {\n let isIframe = false;\n if (job.kind === CompilationJobKind.Host || op.kind === OpKind.HostProperty) {\n // Note: for host bindings defined on a directive, we do not try to find all\n // possible places where it can be matched, so we can not determine whether\n // the host element is an <iframe>. In this case, we just assume it is and append a\n // validation function, which is invoked at runtime and would have access to the\n // underlying DOM element to check if it's an <iframe> and if so - run extra checks.\n isIframe = true;\n }\n else {\n // For a normal binding we can just check if the element its on is an iframe.\n const ownerOp = elements.get(op.target);\n if (ownerOp === undefined || !isElementOrContainerOp(ownerOp)) {\n throw Error('Property should have an element-like owner');\n }\n isIframe = isIframeElement(ownerOp);\n }\n if (isIframe && isIframeSecuritySensitiveAttr(op.name)) {\n op.sanitizer = importExpr(Identifiers.validateIframeAttribute);\n }\n }\n break;\n }\n }\n }\n}\n/**\n * Checks whether the given op represents an iframe element.\n */\nfunction isIframeElement(op) {\n return op.kind === OpKind.ElementStart && op.tag?.toLowerCase() === 'iframe';\n}\n/**\n * Asserts that there is only a single security context and returns it.\n */\nfunction getOnlySecurityContext(securityContext) {\n if (Array.isArray(securityContext)) {\n if (securityContext.length > 1) {\n // TODO: What should we do here? TDB just took the first one, but this feels like something we\n // would want to know about and create a special case for like we did for Url/ResourceUrl. My\n // guess is that, outside of the Url/ResourceUrl case, this never actually happens. If there\n // do turn out to be other cases, throwing an error until we can address it feels safer.\n throw Error(`AssertionError: Ambiguous security context`);\n }\n return securityContext[0] || SecurityContext.NONE;\n }\n return securityContext;\n}\n\n/**\n * Transforms a `TwoWayBindingSet` expression into an expression that either\n * sets a value through the `twoWayBindingSet` instruction or falls back to setting\n * the value directly. E.g. the expression `TwoWayBindingSet(target, value)` becomes:\n * `ng.twoWayBindingSet(target, value) || (target = value)`.\n */\nfunction transformTwoWayBindingSet(job) {\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === OpKind.TwoWayListener) {\n transformExpressionsInOp(op, (expr) => {\n if (!(expr instanceof TwoWayBindingSetExpr)) {\n return expr;\n }\n const { target, value } = expr;\n if (target instanceof ReadPropExpr || target instanceof ReadKeyExpr) {\n return twoWayBindingSet(target, value).or(target.set(value));\n }\n // ASSUMPTION: here we're assuming that `ReadVariableExpr` will be a reference\n // to a local template variable. This appears to be the case at the time of writing.\n // If the expression is targeting a variable read, we only emit the `twoWayBindingSet`\n // since the fallback would be attempting to write into a constant. Invalid usages will be\n // flagged during template type checking.\n if (target instanceof ReadVariableExpr) {\n return twoWayBindingSet(target, value);\n }\n throw new Error(`Unsupported expression in two-way action binding.`);\n }, VisitorContextFlag.InChildOperation);\n }\n }\n }\n}\n\n/**\n * When inside of a listener, we may need access to one or more enclosing views. Therefore, each\n * view should save the current view, and each listener must have the ability to restore the\n * appropriate view. We eagerly generate all save view variables; they will be optimized away later.\n */\nfunction saveAndRestoreView(job) {\n for (const unit of job.units) {\n unit.create.prepend([\n createVariableOp(unit.job.allocateXrefId(), {\n kind: SemanticVariableKind.SavedView,\n name: null,\n view: unit.xref,\n }, new GetCurrentViewExpr(), VariableFlags.None),\n ]);\n for (const op of unit.create) {\n if (op.kind !== OpKind.Listener && op.kind !== OpKind.TwoWayListener) {\n continue;\n }\n // Embedded views always need the save/restore view operation.\n let needsRestoreView = unit !== job.root;\n if (!needsRestoreView) {\n for (const handlerOp of op.handlerOps) {\n visitExpressionsInOp(handlerOp, (expr) => {\n if (expr instanceof ReferenceExpr || expr instanceof ContextLetReferenceExpr) {\n // Listeners that reference() a local ref need the save/restore view operation.\n needsRestoreView = true;\n }\n });\n }\n }\n if (needsRestoreView) {\n addSaveRestoreViewOperationToListener(unit, op);\n }\n }\n }\n}\nfunction addSaveRestoreViewOperationToListener(unit, op) {\n op.handlerOps.prepend([\n createVariableOp(unit.job.allocateXrefId(), {\n kind: SemanticVariableKind.Context,\n name: null,\n view: unit.xref,\n }, new RestoreViewExpr(unit.xref), VariableFlags.None),\n ]);\n // The \"restore view\" operation in listeners requires a call to `resetView` to reset the\n // context prior to returning from the listener operation. Find any `return` statements in\n // the listener body and wrap them in a call to reset the view.\n for (const handlerOp of op.handlerOps) {\n if (handlerOp.kind === OpKind.Statement &&\n handlerOp.statement instanceof ReturnStatement) {\n handlerOp.statement.value = new ResetViewExpr(handlerOp.statement.value);\n }\n }\n}\n\n/**\n * Assign data slots for all operations which implement `ConsumesSlotOpTrait`, and propagate the\n * assigned data slots of those operations to any expressions which reference them via\n * `UsesSlotIndexTrait`.\n *\n * This phase is also responsible for counting the number of slots used for each view (its `decls`)\n * and propagating that number into the `Template` operations which declare embedded views.\n */\nfunction allocateSlots(job) {\n // Map of all declarations in all views within the component which require an assigned slot index.\n // This map needs to be global (across all views within the component) since it's possible to\n // reference a slot from one view from an expression within another (e.g. local references work\n // this way).\n const slotMap = new Map();\n // Process all views in the component and assign slot indexes.\n for (const unit of job.units) {\n // Slot indices start at 0 for each view (and are not unique between views).\n let slotCount = 0;\n for (const op of unit.create) {\n // Only consider declarations which consume data slots.\n if (!hasConsumesSlotTrait(op)) {\n continue;\n }\n // Assign slots to this declaration starting at the current `slotCount`.\n op.handle.slot = slotCount;\n // And track its assigned slot in the `slotMap`.\n slotMap.set(op.xref, op.handle.slot);\n // Each declaration may use more than 1 slot, so increment `slotCount` to reserve the number\n // of slots required.\n slotCount += op.numSlotsUsed;\n }\n // Record the total number of slots used on the view itself. This will later be propagated into\n // `ir.TemplateOp`s which declare those views (except for the root view).\n unit.decls = slotCount;\n }\n // After slot assignment, `slotMap` now contains slot assignments for every declaration in the\n // whole template, across all views. Next, look for expressions which implement\n // `UsesSlotIndexExprTrait` and propagate the assigned slot indexes into them.\n // Additionally, this second scan allows us to find `ir.TemplateOp`s which declare views and\n // propagate the number of slots used for each view into the operation which declares it.\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n if (op.kind === OpKind.Template || op.kind === OpKind.RepeaterCreate) {\n // Record the number of slots used by the view this `ir.TemplateOp` declares in the\n // operation itself, so it can be emitted later.\n const childView = job.views.get(op.xref);\n op.decls = childView.decls;\n // TODO: currently we handle the decls for the RepeaterCreate empty template in the reify\n // phase. We should handle that here instead.\n }\n }\n }\n}\n\n/**\n * Transforms special-case bindings with 'style' or 'class' in their names. Must run before the\n * main binding specialization pass.\n */\nfunction specializeStyleBindings(job) {\n for (const unit of job.units) {\n for (const op of unit.update) {\n if (op.kind !== OpKind.Binding) {\n continue;\n }\n switch (op.bindingKind) {\n case BindingKind.ClassName:\n if (op.expression instanceof Interpolation) {\n throw new Error(`Unexpected interpolation in ClassName binding`);\n }\n OpList.replace(op, createClassPropOp(op.target, op.name, op.expression, op.sourceSpan));\n break;\n case BindingKind.StyleProperty:\n OpList.replace(op, createStylePropOp(op.target, op.name, op.expression, op.unit, op.sourceSpan));\n break;\n case BindingKind.Property:\n case BindingKind.Template:\n if (op.name === 'style') {\n OpList.replace(op, createStyleMapOp(op.target, op.expression, op.sourceSpan));\n }\n else if (op.name === 'class') {\n OpList.replace(op, createClassMapOp(op.target, op.expression, op.sourceSpan));\n }\n break;\n }\n }\n }\n}\n\n/**\n * Find all assignments and usages of temporary variables, which are linked to each other with cross\n * references. Generate names for each cross-reference, and add a `DeclareVarStmt` to initialize\n * them at the beginning of the update block.\n *\n * TODO: Sometimes, it will be possible to reuse names across different subexpressions. For example,\n * in the double keyed read `a?.[f()]?.[f()]`, the two function calls have non-overlapping scopes.\n * Implement an algorithm for reuse.\n */\nfunction generateTemporaryVariables(job) {\n for (const unit of job.units) {\n unit.create.prepend(generateTemporaries(unit.create));\n unit.update.prepend(generateTemporaries(unit.update));\n }\n}\nfunction generateTemporaries(ops) {\n let opCount = 0;\n let generatedStatements = [];\n // For each op, search for any variables that are assigned or read. For each variable, generate a\n // name and produce a `DeclareVarStmt` to the beginning of the block.\n for (const op of ops) {\n // Identify the final time each temp var is read.\n const finalReads = new Map();\n visitExpressionsInOp(op, (expr, flag) => {\n if (flag & VisitorContextFlag.InChildOperation) {\n return;\n }\n if (expr instanceof ReadTemporaryExpr) {\n finalReads.set(expr.xref, expr);\n }\n });\n // Name the temp vars, accounting for the fact that a name can be reused after it has been\n // read for the final time.\n let count = 0;\n const assigned = new Set();\n const released = new Set();\n const defs = new Map();\n visitExpressionsInOp(op, (expr, flag) => {\n if (flag & VisitorContextFlag.InChildOperation) {\n return;\n }\n if (expr instanceof AssignTemporaryExpr) {\n if (!assigned.has(expr.xref)) {\n assigned.add(expr.xref);\n // TODO: Exactly replicate the naming scheme used by `TemplateDefinitionBuilder`.\n // It seems to rely on an expression index instead of an op index.\n defs.set(expr.xref, `tmp_${opCount}_${count++}`);\n }\n assignName(defs, expr);\n }\n else if (expr instanceof ReadTemporaryExpr) {\n if (finalReads.get(expr.xref) === expr) {\n released.add(expr.xref);\n count--;\n }\n assignName(defs, expr);\n }\n });\n // Add declarations for the temp vars.\n generatedStatements.push(...Array.from(new Set(defs.values())).map((name) => createStatementOp(new DeclareVarStmt(name))));\n opCount++;\n if (op.kind === OpKind.Listener || op.kind === OpKind.TwoWayListener) {\n op.handlerOps.prepend(generateTemporaries(op.handlerOps));\n }\n }\n return generatedStatements;\n}\n/**\n * Assigns a name to the temporary variable in the given temporary variable expression.\n */\nfunction assignName(names, expr) {\n const name = names.get(expr.xref);\n if (name === undefined) {\n throw new Error(`Found xref with unassigned name: ${expr.xref}`);\n }\n expr.name = name;\n}\n\n/**\n * Generate track functions that need to be extracted to the constant pool. This entails wrapping\n * them in an arrow (or traditional) function, replacing context reads with `this.`, and storing\n * them in the constant pool.\n *\n * Note that, if a track function was previously optimized, it will not need to be extracted, and\n * this phase is a no-op.\n */\nfunction generateTrackFns(job) {\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind !== OpKind.RepeaterCreate) {\n continue;\n }\n if (op.trackByFn !== null) {\n // The final track function was already set, probably because it was optimized.\n continue;\n }\n // Find all component context reads.\n let usesComponentContext = false;\n op.track = transformExpressionsInExpression(op.track, (expr) => {\n if (expr instanceof PipeBindingExpr || expr instanceof PipeBindingVariadicExpr) {\n throw new Error(`Illegal State: Pipes are not allowed in this context`);\n }\n if (expr instanceof TrackContextExpr) {\n usesComponentContext = true;\n return variable('this');\n }\n return expr;\n }, VisitorContextFlag.None);\n let fn;\n const fnParams = [new FnParam('$index'), new FnParam('$item')];\n if (usesComponentContext) {\n fn = new FunctionExpr(fnParams, [new ReturnStatement(op.track)]);\n }\n else {\n fn = arrowFn(fnParams, op.track);\n }\n op.trackByFn = job.pool.getSharedFunctionReference(fn, '_forTrack');\n }\n }\n}\n\n/**\n * `track` functions in `for` repeaters can sometimes be \"optimized,\" i.e. transformed into inline\n * expressions, in lieu of an external function call. For example, tracking by `$index` can be be\n * optimized into an inline `trackByIndex` reference. This phase checks track expressions for\n * optimizable cases.\n */\nfunction optimizeTrackFns(job) {\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind !== OpKind.RepeaterCreate) {\n continue;\n }\n if (op.track instanceof ReadVarExpr && op.track.name === '$index') {\n // Top-level access of `$index` uses the built in `repeaterTrackByIndex`.\n op.trackByFn = importExpr(Identifiers.repeaterTrackByIndex);\n }\n else if (op.track instanceof ReadVarExpr && op.track.name === '$item') {\n // Top-level access of the item uses the built in `repeaterTrackByIdentity`.\n op.trackByFn = importExpr(Identifiers.repeaterTrackByIdentity);\n }\n else if (isTrackByFunctionCall(job.root.xref, op.track)) {\n // Mark the function as using the component instance to play it safe\n // since the method might be using `this` internally (see #53628).\n op.usesComponentInstance = true;\n // Top-level method calls in the form of `fn($index, item)` can be passed in directly.\n if (op.track.receiver.receiver.view === unit.xref) {\n // TODO: this may be wrong\n op.trackByFn = op.track.receiver;\n }\n else {\n // This is a plain method call, but not in the component's root view.\n // We need to get the component instance, and then call the method on it.\n op.trackByFn = importExpr(Identifiers.componentInstance)\n .callFn([])\n .prop(op.track.receiver.name);\n // Because the context is not avaiable (without a special function), we don't want to\n // try to resolve it later. Let's get rid of it by overwriting the original track\n // expression (which won't be used anyway).\n op.track = op.trackByFn;\n }\n }\n else {\n // The track function could not be optimized.\n // Replace context reads with a special IR expression, since context reads in a track\n // function are emitted specially.\n op.track = transformExpressionsInExpression(op.track, (expr) => {\n if (expr instanceof ContextExpr) {\n op.usesComponentInstance = true;\n return new TrackContextExpr(expr.view);\n }\n return expr;\n }, VisitorContextFlag.None);\n }\n }\n }\n}\nfunction isTrackByFunctionCall(rootView, expr) {\n if (!(expr instanceof InvokeFunctionExpr) || expr.args.length === 0 || expr.args.length > 2) {\n return false;\n }\n if (!(expr.receiver instanceof ReadPropExpr && expr.receiver.receiver instanceof ContextExpr) ||\n expr.receiver.receiver.view !== rootView) {\n return false;\n }\n const [arg0, arg1] = expr.args;\n if (!(arg0 instanceof ReadVarExpr) || arg0.name !== '$index') {\n return false;\n }\n else if (expr.args.length === 1) {\n return true;\n }\n if (!(arg1 instanceof ReadVarExpr) || arg1.name !== '$item') {\n return false;\n }\n return true;\n}\n\n/**\n * Inside the `track` expression on a `for` repeater, the `$index` and `$item` variables are\n * ambiently available. In this phase, we find those variable usages, and replace them with the\n * appropriate output read.\n */\nfunction generateTrackVariables(job) {\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind !== OpKind.RepeaterCreate) {\n continue;\n }\n op.track = transformExpressionsInExpression(op.track, (expr) => {\n if (expr instanceof LexicalReadExpr) {\n if (op.varNames.$index.has(expr.name)) {\n return variable('$index');\n }\n else if (expr.name === op.varNames.$implicit) {\n return variable('$item');\n }\n // TODO: handle prohibited context variables (emit as globals?)\n }\n return expr;\n }, VisitorContextFlag.None);\n }\n }\n}\n\n/**\n * Counts the number of variable slots used within each view, and stores that on the view itself, as\n * well as propagates it to the `ir.TemplateOp` for embedded views.\n */\nfunction countVariables(job) {\n // First, count the vars used in each view, and update the view-level counter.\n for (const unit of job.units) {\n let varCount = 0;\n // Count variables on top-level ops first. Don't explore nested expressions just yet.\n for (const op of unit.ops()) {\n if (hasConsumesVarsTrait(op)) {\n varCount += varsUsedByOp(op);\n }\n }\n // Count variables on expressions inside ops. We do this later because some of these expressions\n // might be conditional (e.g. `pipeBinding` inside of a ternary), and we don't want to interfere\n // with indices for top-level binding slots (e.g. `property`).\n for (const op of unit.ops()) {\n visitExpressionsInOp(op, (expr) => {\n if (!isIrExpression(expr)) {\n return;\n }\n // TemplateDefinitionBuilder assigns variable offsets for everything but pure functions\n // first, and then assigns offsets to pure functions lazily. We emulate that behavior by\n // assigning offsets in two passes instead of one, only in compatibility mode.\n if (job.compatibility === CompatibilityMode.TemplateDefinitionBuilder &&\n expr instanceof PureFunctionExpr) {\n return;\n }\n // Some expressions require knowledge of the number of variable slots consumed.\n if (hasUsesVarOffsetTrait(expr)) {\n expr.varOffset = varCount;\n }\n if (hasConsumesVarsTrait(expr)) {\n varCount += varsUsedByIrExpression(expr);\n }\n });\n }\n // Compatibility mode pass for pure function offsets (as explained above).\n if (job.compatibility === CompatibilityMode.TemplateDefinitionBuilder) {\n for (const op of unit.ops()) {\n visitExpressionsInOp(op, (expr) => {\n if (!isIrExpression(expr) || !(expr instanceof PureFunctionExpr)) {\n return;\n }\n // Some expressions require knowledge of the number of variable slots consumed.\n if (hasUsesVarOffsetTrait(expr)) {\n expr.varOffset = varCount;\n }\n if (hasConsumesVarsTrait(expr)) {\n varCount += varsUsedByIrExpression(expr);\n }\n });\n }\n }\n unit.vars = varCount;\n }\n if (job instanceof ComponentCompilationJob) {\n // Add var counts for each view to the `ir.TemplateOp` which declares that view (if the view is\n // an embedded view).\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind !== OpKind.Template && op.kind !== OpKind.RepeaterCreate) {\n continue;\n }\n const childView = job.views.get(op.xref);\n op.vars = childView.vars;\n // TODO: currently we handle the vars for the RepeaterCreate empty template in the reify\n // phase. We should handle that here instead.\n }\n }\n }\n}\n/**\n * Different operations that implement `ir.UsesVarsTrait` use different numbers of variables, so\n * count the variables used by any particular `op`.\n */\nfunction varsUsedByOp(op) {\n let slots;\n switch (op.kind) {\n case OpKind.Property:\n case OpKind.HostProperty:\n case OpKind.Attribute:\n // All of these bindings use 1 variable slot, plus 1 slot for every interpolated expression,\n // if any.\n slots = 1;\n if (op.expression instanceof Interpolation && !isSingletonInterpolation(op.expression)) {\n slots += op.expression.expressions.length;\n }\n return slots;\n case OpKind.TwoWayProperty:\n // Two-way properties can only have expressions so they only need one variable slot.\n return 1;\n case OpKind.StyleProp:\n case OpKind.ClassProp:\n case OpKind.StyleMap:\n case OpKind.ClassMap:\n // Style & class bindings use 2 variable slots, plus 1 slot for every interpolated expression,\n // if any.\n slots = 2;\n if (op.expression instanceof Interpolation) {\n slots += op.expression.expressions.length;\n }\n return slots;\n case OpKind.InterpolateText:\n // `ir.InterpolateTextOp`s use a variable slot for each dynamic expression.\n return op.interpolation.expressions.length;\n case OpKind.I18nExpression:\n case OpKind.Conditional:\n case OpKind.DeferWhen:\n case OpKind.StoreLet:\n return 1;\n case OpKind.RepeaterCreate:\n // Repeaters may require an extra variable binding slot, if they have an empty view, for the\n // empty block tracking.\n // TODO: It's a bit odd to have a create mode instruction consume variable slots. Maybe we can\n // find a way to use the Repeater update op instead.\n return op.emptyView ? 1 : 0;\n default:\n throw new Error(`Unhandled op: ${OpKind[op.kind]}`);\n }\n}\nfunction varsUsedByIrExpression(expr) {\n switch (expr.kind) {\n case ExpressionKind.PureFunctionExpr:\n return 1 + expr.args.length;\n case ExpressionKind.PipeBinding:\n return 1 + expr.args.length;\n case ExpressionKind.PipeBindingVariadic:\n return 1 + expr.numArgs;\n case ExpressionKind.StoreLet:\n return 1;\n default:\n throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${expr.constructor.name}`);\n }\n}\nfunction isSingletonInterpolation(expr) {\n if (expr.expressions.length !== 1 || expr.strings.length !== 2) {\n return false;\n }\n if (expr.strings[0] !== '' || expr.strings[1] !== '') {\n return false;\n }\n return true;\n}\n\n/**\n * Optimize variables declared and used in the IR.\n *\n * Variables are eagerly generated by pipeline stages for all possible values that could be\n * referenced. This stage processes the list of declared variables and all variable usages,\n * and optimizes where possible. It performs 3 main optimizations:\n *\n * * It transforms variable declarations to side effectful expressions when the\n * variable is not used, but its initializer has global effects which other\n * operations rely upon.\n * * It removes variable declarations if those variables are not referenced and\n * either they do not have global effects, or nothing relies on them.\n * * It inlines variable declarations when those variables are only used once\n * and the inlining is semantically safe.\n *\n * To guarantee correctness, analysis of \"fences\" in the instruction lists is used to determine\n * which optimizations are safe to perform.\n */\nfunction optimizeVariables(job) {\n for (const unit of job.units) {\n inlineAlwaysInlineVariables(unit.create);\n inlineAlwaysInlineVariables(unit.update);\n for (const op of unit.create) {\n if (op.kind === OpKind.Listener || op.kind === OpKind.TwoWayListener) {\n inlineAlwaysInlineVariables(op.handlerOps);\n }\n }\n optimizeVariablesInOpList(unit.create, job.compatibility);\n optimizeVariablesInOpList(unit.update, job.compatibility);\n for (const op of unit.create) {\n if (op.kind === OpKind.Listener || op.kind === OpKind.TwoWayListener) {\n optimizeVariablesInOpList(op.handlerOps, job.compatibility);\n }\n }\n }\n}\n/**\n * A [fence](https://en.wikipedia.org/wiki/Memory_barrier) flag for an expression which indicates\n * how that expression can be optimized in relation to other expressions or instructions.\n *\n * `Fence`s are a bitfield, so multiple flags may be set on a single expression.\n */\nvar Fence;\n(function (Fence) {\n /**\n * Empty flag (no fence exists).\n */\n Fence[Fence[\"None\"] = 0] = \"None\";\n /**\n * A context read fence, meaning that the expression in question reads from the \"current view\"\n * context of the runtime.\n */\n Fence[Fence[\"ViewContextRead\"] = 1] = \"ViewContextRead\";\n /**\n * A context write fence, meaning that the expression in question writes to the \"current view\"\n * context of the runtime.\n *\n * Note that all `ContextWrite` fences are implicitly `ContextRead` fences as operations which\n * change the view context do so based on the current one.\n */\n Fence[Fence[\"ViewContextWrite\"] = 2] = \"ViewContextWrite\";\n /**\n * Indicates that a call is required for its side-effects, even if nothing reads its result.\n *\n * This is also true of `ViewContextWrite` operations **if** they are followed by a\n * `ViewContextRead`.\n */\n Fence[Fence[\"SideEffectful\"] = 4] = \"SideEffectful\";\n})(Fence || (Fence = {}));\nfunction inlineAlwaysInlineVariables(ops) {\n const vars = new Map();\n for (const op of ops) {\n if (op.kind === OpKind.Variable && op.flags & VariableFlags.AlwaysInline) {\n visitExpressionsInOp(op, (expr) => {\n if (isIrExpression(expr) && fencesForIrExpression(expr) !== Fence.None) {\n throw new Error(`AssertionError: A context-sensitive variable was marked AlwaysInline`);\n }\n });\n vars.set(op.xref, op);\n }\n transformExpressionsInOp(op, (expr) => {\n if (expr instanceof ReadVariableExpr && vars.has(expr.xref)) {\n const varOp = vars.get(expr.xref);\n // Inline by cloning, because we might inline into multiple places.\n return varOp.initializer.clone();\n }\n return expr;\n }, VisitorContextFlag.None);\n }\n for (const op of vars.values()) {\n OpList.remove(op);\n }\n}\n/**\n * Process a list of operations and optimize variables within that list.\n */\nfunction optimizeVariablesInOpList(ops, compatibility) {\n const varDecls = new Map();\n const varUsages = new Map();\n // Track variables that are used outside of the immediate operation list. For example, within\n // `ListenerOp` handler operations of listeners in the current operation list.\n const varRemoteUsages = new Set();\n const opMap = new Map();\n // First, extract information about variables declared or used within the whole list.\n for (const op of ops) {\n if (op.kind === OpKind.Variable) {\n if (varDecls.has(op.xref) || varUsages.has(op.xref)) {\n throw new Error(`Should not see two declarations of the same variable: ${op.xref}`);\n }\n varDecls.set(op.xref, op);\n varUsages.set(op.xref, 0);\n }\n opMap.set(op, collectOpInfo(op));\n countVariableUsages(op, varUsages, varRemoteUsages);\n }\n // The next step is to remove any variable declarations for variables that aren't used. The\n // variable initializer expressions may be side-effectful, so they may need to be retained as\n // expression statements.\n // Track whether we've seen an operation which reads from the view context yet. This is used to\n // determine whether a write to the view context in a variable initializer can be observed.\n let contextIsUsed = false;\n // Note that iteration through the list happens in reverse, which guarantees that we'll process\n // all reads of a variable prior to processing its declaration.\n for (const op of ops.reversed()) {\n const opInfo = opMap.get(op);\n if (op.kind === OpKind.Variable && varUsages.get(op.xref) === 0) {\n // This variable is unused and can be removed. We might need to keep the initializer around,\n // though, if something depends on it running.\n if ((contextIsUsed && opInfo.fences & Fence.ViewContextWrite) ||\n opInfo.fences & Fence.SideEffectful) {\n // This variable initializer has a side effect which must be retained. Either:\n // * it writes to the view context, and we know there is a future operation which depends\n // on that write, or\n // * it's an operation which is inherently side-effectful.\n // We can't remove the initializer, but we can remove the variable declaration itself and\n // replace it with a side-effectful statement.\n const stmtOp = createStatementOp(op.initializer.toStmt());\n opMap.set(stmtOp, opInfo);\n OpList.replace(op, stmtOp);\n }\n else {\n // It's safe to delete this entire variable declaration as nothing depends on it, even\n // side-effectfully. Note that doing this might make other variables unused. Since we're\n // iterating in reverse order, we should always be processing usages before declarations\n // and therefore by the time we get to a declaration, all removable usages will have been\n // removed.\n uncountVariableUsages(op, varUsages);\n OpList.remove(op);\n }\n opMap.delete(op);\n varDecls.delete(op.xref);\n varUsages.delete(op.xref);\n continue;\n }\n // Does this operation depend on the view context?\n if (opInfo.fences & Fence.ViewContextRead) {\n contextIsUsed = true;\n }\n }\n // Next, inline any remaining variables with exactly one usage.\n const toInline = [];\n for (const [id, count] of varUsages) {\n const decl = varDecls.get(id);\n // We can inline variables that:\n // - are used exactly once, and\n // - are not used remotely\n // OR\n // - are marked for always inlining\n const isAlwaysInline = !!(decl.flags & VariableFlags.AlwaysInline);\n if (count !== 1 || isAlwaysInline) {\n // We can't inline this variable as it's used more than once.\n continue;\n }\n if (varRemoteUsages.has(id)) {\n // This variable is used once, but across an operation boundary, so it can't be inlined.\n continue;\n }\n toInline.push(id);\n }\n let candidate;\n while ((candidate = toInline.pop())) {\n // We will attempt to inline this variable. If inlining fails (due to fences for example),\n // no future operation will make inlining legal.\n const decl = varDecls.get(candidate);\n const varInfo = opMap.get(decl);\n const isAlwaysInline = !!(decl.flags & VariableFlags.AlwaysInline);\n if (isAlwaysInline) {\n throw new Error(`AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.`);\n }\n // Scan operations following the variable declaration and look for the point where that variable\n // is used. There should only be one usage given the precondition above.\n for (let targetOp = decl.next; targetOp.kind !== OpKind.ListEnd; targetOp = targetOp.next) {\n const opInfo = opMap.get(targetOp);\n // Is the variable used in this operation?\n if (opInfo.variablesUsed.has(candidate)) {\n if (compatibility === CompatibilityMode.TemplateDefinitionBuilder &&\n !allowConservativeInlining(decl, targetOp)) {\n // We're in conservative mode, and this variable is not eligible for inlining into the\n // target operation in this mode.\n break;\n }\n // Yes, try to inline it. Inlining may not be successful if fences in this operation before\n // the variable's usage cannot be safely crossed.\n if (tryInlineVariableInitializer(candidate, decl.initializer, targetOp, varInfo.fences)) {\n // Inlining was successful! Update the tracking structures to reflect the inlined\n // variable.\n opInfo.variablesUsed.delete(candidate);\n // Add all variables used in the variable's initializer to its new usage site.\n for (const id of varInfo.variablesUsed) {\n opInfo.variablesUsed.add(id);\n }\n // Merge fences in the variable's initializer into its new usage site.\n opInfo.fences |= varInfo.fences;\n // Delete tracking info related to the declaration.\n varDecls.delete(candidate);\n varUsages.delete(candidate);\n opMap.delete(decl);\n // And finally, delete the original declaration from the operation list.\n OpList.remove(decl);\n }\n // Whether inlining succeeded or failed, we're done processing this variable.\n break;\n }\n // If the variable is not used in this operation, then we'd need to inline across it. Check if\n // that's safe to do.\n if (!safeToInlinePastFences(opInfo.fences, varInfo.fences)) {\n // We can't safely inline this variable beyond this operation, so don't proceed with\n // inlining this variable.\n break;\n }\n }\n }\n}\n/**\n * Given an `ir.Expression`, returns the `Fence` flags for that expression type.\n */\nfunction fencesForIrExpression(expr) {\n switch (expr.kind) {\n case ExpressionKind.NextContext:\n return Fence.ViewContextRead | Fence.ViewContextWrite;\n case ExpressionKind.RestoreView:\n return Fence.ViewContextRead | Fence.ViewContextWrite | Fence.SideEffectful;\n case ExpressionKind.StoreLet:\n return Fence.SideEffectful;\n case ExpressionKind.Reference:\n case ExpressionKind.ContextLetReference:\n return Fence.ViewContextRead;\n default:\n return Fence.None;\n }\n}\n/**\n * Build the `OpInfo` structure for the given `op`. This performs two operations:\n *\n * * It tracks which variables are used in the operation's expressions.\n * * It rolls up fence flags for expressions within the operation.\n */\nfunction collectOpInfo(op) {\n let fences = Fence.None;\n const variablesUsed = new Set();\n visitExpressionsInOp(op, (expr) => {\n if (!isIrExpression(expr)) {\n return;\n }\n switch (expr.kind) {\n case ExpressionKind.ReadVariable:\n variablesUsed.add(expr.xref);\n break;\n default:\n fences |= fencesForIrExpression(expr);\n }\n });\n return { fences, variablesUsed };\n}\n/**\n * Count the number of usages of each variable, being careful to track whether those usages are\n * local or remote.\n */\nfunction countVariableUsages(op, varUsages, varRemoteUsage) {\n visitExpressionsInOp(op, (expr, flags) => {\n if (!isIrExpression(expr)) {\n return;\n }\n if (expr.kind !== ExpressionKind.ReadVariable) {\n return;\n }\n const count = varUsages.get(expr.xref);\n if (count === undefined) {\n // This variable is declared outside the current scope of optimization.\n return;\n }\n varUsages.set(expr.xref, count + 1);\n if (flags & VisitorContextFlag.InChildOperation) {\n varRemoteUsage.add(expr.xref);\n }\n });\n}\n/**\n * Remove usages of a variable in `op` from the `varUsages` tracking.\n */\nfunction uncountVariableUsages(op, varUsages) {\n visitExpressionsInOp(op, (expr) => {\n if (!isIrExpression(expr)) {\n return;\n }\n if (expr.kind !== ExpressionKind.ReadVariable) {\n return;\n }\n const count = varUsages.get(expr.xref);\n if (count === undefined) {\n // This variable is declared outside the current scope of optimization.\n return;\n }\n else if (count === 0) {\n throw new Error(`Inaccurate variable count: ${expr.xref} - found another read but count is already 0`);\n }\n varUsages.set(expr.xref, count - 1);\n });\n}\n/**\n * Checks whether it's safe to inline a variable across a particular operation.\n *\n * @param fences the fences of the operation which the inlining will cross\n * @param declFences the fences of the variable being inlined.\n */\nfunction safeToInlinePastFences(fences, declFences) {\n if (fences & Fence.ViewContextWrite) {\n // It's not safe to inline context reads across context writes.\n if (declFences & Fence.ViewContextRead) {\n return false;\n }\n }\n else if (fences & Fence.ViewContextRead) {\n // It's not safe to inline context writes across context reads.\n if (declFences & Fence.ViewContextWrite) {\n return false;\n }\n }\n return true;\n}\n/**\n * Attempt to inline the initializer of a variable into a target operation's expressions.\n *\n * This may or may not be safe to do. For example, the variable could be read following the\n * execution of an expression with fences that don't permit the variable to be inlined across them.\n */\nfunction tryInlineVariableInitializer(id, initializer, target, declFences) {\n // We use `ir.transformExpressionsInOp` to walk the expressions and inline the variable if\n // possible. Since this operation is callback-based, once inlining succeeds or fails we can't\n // \"stop\" the expression processing, and have to keep track of whether inlining has succeeded or\n // is no longer allowed.\n let inlined = false;\n let inliningAllowed = true;\n transformExpressionsInOp(target, (expr, flags) => {\n if (!isIrExpression(expr)) {\n return expr;\n }\n if (inlined || !inliningAllowed) {\n // Either the inlining has already succeeded, or we've passed a fence that disallows inlining\n // at this point, so don't try.\n return expr;\n }\n else if (flags & VisitorContextFlag.InChildOperation &&\n declFences & Fence.ViewContextRead) {\n // We cannot inline variables that are sensitive to the current context across operation\n // boundaries.\n return expr;\n }\n switch (expr.kind) {\n case ExpressionKind.ReadVariable:\n if (expr.xref === id) {\n // This is the usage site of the variable. Since nothing has disallowed inlining, it's\n // safe to inline the initializer here.\n inlined = true;\n return initializer;\n }\n break;\n default:\n // For other types of `ir.Expression`s, whether inlining is allowed depends on their fences.\n const exprFences = fencesForIrExpression(expr);\n inliningAllowed = inliningAllowed && safeToInlinePastFences(exprFences, declFences);\n break;\n }\n return expr;\n }, VisitorContextFlag.None);\n return inlined;\n}\n/**\n * Determines whether inlining of `decl` should be allowed in \"conservative\" mode.\n *\n * In conservative mode, inlining behavior is limited to those operations which the\n * `TemplateDefinitionBuilder` supported, with the goal of producing equivalent output.\n */\nfunction allowConservativeInlining(decl, target) {\n // TODO(alxhub): understand exactly how TemplateDefinitionBuilder approaches inlining, and record\n // that behavior here.\n switch (decl.variable.kind) {\n case SemanticVariableKind.Identifier:\n if (decl.initializer instanceof ReadVarExpr && decl.initializer.name === 'ctx') {\n // Although TemplateDefinitionBuilder is cautious about inlining, we still want to do so\n // when the variable is the context, to imitate its behavior with aliases in control flow\n // blocks. This quirky behavior will become dead code once compatibility mode is no longer\n // supported.\n return true;\n }\n return false;\n case SemanticVariableKind.Context:\n // Context can only be inlined into other variables.\n return target.kind === OpKind.Variable;\n default:\n return true;\n }\n}\n\n/**\n * Wraps ICUs that do not already belong to an i18n block in a new i18n block.\n */\nfunction wrapI18nIcus(job) {\n for (const unit of job.units) {\n let currentI18nOp = null;\n let addedI18nId = null;\n for (const op of unit.create) {\n switch (op.kind) {\n case OpKind.I18nStart:\n currentI18nOp = op;\n break;\n case OpKind.I18nEnd:\n currentI18nOp = null;\n break;\n case OpKind.IcuStart:\n if (currentI18nOp === null) {\n addedI18nId = job.allocateXrefId();\n // ICU i18n start/end ops should not receive source spans.\n OpList.insertBefore(createI18nStartOp(addedI18nId, op.message, undefined, null), op);\n }\n break;\n case OpKind.IcuEnd:\n if (addedI18nId !== null) {\n OpList.insertAfter(createI18nEndOp(addedI18nId, null), op);\n addedI18nId = null;\n }\n break;\n }\n }\n }\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Removes any `storeLet` calls that aren't referenced outside of the current view.\n */\nfunction optimizeStoreLet(job) {\n const letUsedExternally = new Set();\n // Since `@let` declarations can be referenced in child views, both in\n // the creation block (via listeners) and in the update block, we have\n // to look through all the ops to find the references.\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n visitExpressionsInOp(op, (expr) => {\n if (expr instanceof ContextLetReferenceExpr) {\n letUsedExternally.add(expr.target);\n }\n });\n }\n }\n // TODO(crisbeto): potentially remove the unused calls completely, pending discussion.\n for (const unit of job.units) {\n for (const op of unit.update) {\n transformExpressionsInOp(op, (expression) => expression instanceof StoreLetExpr && !letUsedExternally.has(expression.target)\n ? expression.value\n : expression, VisitorContextFlag.None);\n }\n }\n}\n\n/**\n * It's not allowed to access a `@let` declaration before it has been defined. This is enforced\n * already via template type checking, however it can trip some of the assertions in the pipeline.\n * E.g. the naming phase can fail because we resolved the variable here, but the variable doesn't\n * exist anymore because the optimization phase removed it since it's invalid. To avoid surfacing\n * confusing errors to users in the case where template type checking isn't running (e.g. in JIT\n * mode) this phase detects illegal forward references and replaces them with `undefined`.\n * Eventually users will see the proper error from the template type checker.\n */\nfunction removeIllegalLetReferences(job) {\n for (const unit of job.units) {\n for (const op of unit.update) {\n if (op.kind !== OpKind.Variable ||\n op.variable.kind !== SemanticVariableKind.Identifier ||\n !(op.initializer instanceof StoreLetExpr)) {\n continue;\n }\n const name = op.variable.identifier;\n let current = op;\n while (current && current.kind !== OpKind.ListEnd) {\n transformExpressionsInOp(current, (expr) => expr instanceof LexicalReadExpr && expr.name === name ? literal(undefined) : expr, VisitorContextFlag.None);\n current = current.prev;\n }\n }\n }\n}\n\n/**\n * Replaces the `storeLet` ops with variables that can be\n * used to reference the value within the same view.\n */\nfunction generateLocalLetReferences(job) {\n for (const unit of job.units) {\n for (const op of unit.update) {\n if (op.kind !== OpKind.StoreLet) {\n continue;\n }\n const variable = {\n kind: SemanticVariableKind.Identifier,\n name: null,\n identifier: op.declaredName,\n local: true,\n };\n OpList.replace(op, createVariableOp(job.allocateXrefId(), variable, new StoreLetExpr(op.target, op.value, op.sourceSpan), VariableFlags.None));\n }\n }\n}\n\n/**\n * Locates all of the elements defined in a creation block and outputs an op\n * that will expose their definition location in the DOM.\n */\nfunction attachSourceLocations(job) {\n if (!job.enableDebugLocations || job.relativeTemplatePath === null) {\n return;\n }\n for (const unit of job.units) {\n const locations = [];\n for (const op of unit.create) {\n if (op.kind === OpKind.ElementStart || op.kind === OpKind.Element) {\n const start = op.startSourceSpan.start;\n locations.push({\n targetSlot: op.handle,\n offset: start.offset,\n line: start.line,\n column: start.col,\n });\n }\n }\n if (locations.length > 0) {\n unit.create.push(createSourceLocationOp(job.relativeTemplatePath, locations));\n }\n }\n}\n\n/**\n *\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nconst phases = [\n { kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },\n { kind: CompilationJobKind.Host, fn: parseHostStyleProperties },\n { kind: CompilationJobKind.Tmpl, fn: emitNamespaceChanges },\n { kind: CompilationJobKind.Tmpl, fn: propagateI18nBlocks },\n { kind: CompilationJobKind.Tmpl, fn: wrapI18nIcus },\n { kind: CompilationJobKind.Both, fn: deduplicateTextBindings },\n { kind: CompilationJobKind.Both, fn: specializeStyleBindings },\n { kind: CompilationJobKind.Both, fn: specializeBindings },\n { kind: CompilationJobKind.Both, fn: extractAttributes },\n { kind: CompilationJobKind.Tmpl, fn: createI18nContexts },\n { kind: CompilationJobKind.Both, fn: parseExtractedStyles },\n { kind: CompilationJobKind.Tmpl, fn: removeEmptyBindings },\n { kind: CompilationJobKind.Both, fn: collapseSingletonInterpolations },\n { kind: CompilationJobKind.Both, fn: orderOps },\n { kind: CompilationJobKind.Tmpl, fn: generateConditionalExpressions },\n { kind: CompilationJobKind.Tmpl, fn: createPipes },\n { kind: CompilationJobKind.Tmpl, fn: configureDeferInstructions },\n { kind: CompilationJobKind.Tmpl, fn: convertI18nText },\n { kind: CompilationJobKind.Tmpl, fn: convertI18nBindings },\n { kind: CompilationJobKind.Tmpl, fn: removeUnusedI18nAttributesOps },\n { kind: CompilationJobKind.Tmpl, fn: assignI18nSlotDependencies },\n { kind: CompilationJobKind.Tmpl, fn: applyI18nExpressions },\n { kind: CompilationJobKind.Tmpl, fn: createVariadicPipes },\n { kind: CompilationJobKind.Both, fn: generatePureLiteralStructures },\n { kind: CompilationJobKind.Tmpl, fn: generateProjectionDefs },\n { kind: CompilationJobKind.Tmpl, fn: generateLocalLetReferences },\n { kind: CompilationJobKind.Tmpl, fn: generateVariables },\n { kind: CompilationJobKind.Tmpl, fn: saveAndRestoreView },\n { kind: CompilationJobKind.Both, fn: deleteAnyCasts },\n { kind: CompilationJobKind.Both, fn: resolveDollarEvent },\n { kind: CompilationJobKind.Tmpl, fn: generateTrackVariables },\n { kind: CompilationJobKind.Tmpl, fn: removeIllegalLetReferences },\n { kind: CompilationJobKind.Both, fn: resolveNames },\n { kind: CompilationJobKind.Tmpl, fn: resolveDeferTargetNames },\n { kind: CompilationJobKind.Tmpl, fn: transformTwoWayBindingSet },\n { kind: CompilationJobKind.Tmpl, fn: optimizeTrackFns },\n { kind: CompilationJobKind.Both, fn: resolveContexts },\n { kind: CompilationJobKind.Both, fn: resolveSanitizers },\n { kind: CompilationJobKind.Tmpl, fn: liftLocalRefs },\n { kind: CompilationJobKind.Both, fn: generateNullishCoalesceExpressions },\n { kind: CompilationJobKind.Both, fn: expandSafeReads },\n { kind: CompilationJobKind.Both, fn: generateTemporaryVariables },\n { kind: CompilationJobKind.Both, fn: optimizeVariables },\n { kind: CompilationJobKind.Both, fn: optimizeStoreLet },\n { kind: CompilationJobKind.Tmpl, fn: allocateSlots },\n { kind: CompilationJobKind.Tmpl, fn: resolveI18nElementPlaceholders },\n { kind: CompilationJobKind.Tmpl, fn: resolveI18nExpressionPlaceholders },\n { kind: CompilationJobKind.Tmpl, fn: extractI18nMessages },\n { kind: CompilationJobKind.Tmpl, fn: generateTrackFns },\n { kind: CompilationJobKind.Tmpl, fn: collectI18nConsts },\n { kind: CompilationJobKind.Tmpl, fn: collectConstExpressions },\n { kind: CompilationJobKind.Both, fn: collectElementConsts },\n { kind: CompilationJobKind.Tmpl, fn: removeI18nContexts },\n { kind: CompilationJobKind.Both, fn: countVariables },\n { kind: CompilationJobKind.Tmpl, fn: generateAdvance },\n { kind: CompilationJobKind.Both, fn: nameFunctionsAndVariables },\n { kind: CompilationJobKind.Tmpl, fn: resolveDeferDepsFns },\n { kind: CompilationJobKind.Tmpl, fn: mergeNextContextExpressions },\n { kind: CompilationJobKind.Tmpl, fn: generateNgContainerOps },\n { kind: CompilationJobKind.Tmpl, fn: collapseEmptyInstructions },\n { kind: CompilationJobKind.Tmpl, fn: attachSourceLocations },\n { kind: CompilationJobKind.Tmpl, fn: disableBindings$1 },\n { kind: CompilationJobKind.Both, fn: extractPureFunctions },\n { kind: CompilationJobKind.Both, fn: reify },\n { kind: CompilationJobKind.Both, fn: chain },\n];\n/**\n * Run all transformation phases in the correct order against a compilation job. After this\n * processing, the compilation should be in a state where it can be emitted.\n */\nfunction transform(job, kind) {\n for (const phase of phases) {\n if (phase.kind === kind || phase.kind === CompilationJobKind.Both) {\n // The type of `Phase` above ensures it is impossible to call a phase that doesn't support the\n // job kind.\n phase.fn(job);\n }\n }\n}\n/**\n * Compile all views in the given `ComponentCompilation` into the final template function, which may\n * reference constants defined in a `ConstantPool`.\n */\nfunction emitTemplateFn(tpl, pool) {\n const rootFn = emitView(tpl.root);\n emitChildViews(tpl.root, pool);\n return rootFn;\n}\nfunction emitChildViews(parent, pool) {\n for (const unit of parent.job.units) {\n if (unit.parent !== parent.xref) {\n continue;\n }\n // Child views are emitted depth-first.\n emitChildViews(unit, pool);\n const viewFn = emitView(unit);\n pool.statements.push(viewFn.toDeclStmt(viewFn.name));\n }\n}\n/**\n * Emit a template function for an individual `ViewCompilation` (which may be either the root view\n * or an embedded view).\n */\nfunction emitView(view) {\n if (view.fnName === null) {\n throw new Error(`AssertionError: view ${view.xref} is unnamed`);\n }\n const createStatements = [];\n for (const op of view.create) {\n if (op.kind !== OpKind.Statement) {\n throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${OpKind[op.kind]}`);\n }\n createStatements.push(op.statement);\n }\n const updateStatements = [];\n for (const op of view.update) {\n if (op.kind !== OpKind.Statement) {\n throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${OpKind[op.kind]}`);\n }\n updateStatements.push(op.statement);\n }\n const createCond = maybeGenerateRfBlock(1, createStatements);\n const updateCond = maybeGenerateRfBlock(2, updateStatements);\n return fn([new FnParam('rf'), new FnParam('ctx')], [...createCond, ...updateCond], \n /* type */ undefined, \n /* sourceSpan */ undefined, view.fnName);\n}\nfunction maybeGenerateRfBlock(flag, statements) {\n if (statements.length === 0) {\n return [];\n }\n return [\n ifStmt(new BinaryOperatorExpr(BinaryOperator.BitwiseAnd, variable('rf'), literal(flag)), statements),\n ];\n}\nfunction emitHostBindingFunction(job) {\n if (job.root.fnName === null) {\n throw new Error(`AssertionError: host binding function is unnamed`);\n }\n const createStatements = [];\n for (const op of job.root.create) {\n if (op.kind !== OpKind.Statement) {\n throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${OpKind[op.kind]}`);\n }\n createStatements.push(op.statement);\n }\n const updateStatements = [];\n for (const op of job.root.update) {\n if (op.kind !== OpKind.Statement) {\n throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${OpKind[op.kind]}`);\n }\n updateStatements.push(op.statement);\n }\n if (createStatements.length === 0 && updateStatements.length === 0) {\n return null;\n }\n const createCond = maybeGenerateRfBlock(1, createStatements);\n const updateCond = maybeGenerateRfBlock(2, updateStatements);\n return fn([new FnParam('rf'), new FnParam('ctx')], [...createCond, ...updateCond], \n /* type */ undefined, \n /* sourceSpan */ undefined, job.root.fnName);\n}\n\nconst compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;\n// Schema containing DOM elements and their properties.\nconst domSchema = new DomElementSchemaRegistry();\n// Tag name of the `ng-template` element.\nconst NG_TEMPLATE_TAG_NAME = 'ng-template';\nfunction isI18nRootNode(meta) {\n return meta instanceof Message;\n}\nfunction isSingleI18nIcu(meta) {\n return isI18nRootNode(meta) && meta.nodes.length === 1 && meta.nodes[0] instanceof Icu;\n}\n/**\n * Process a template AST and convert it into a `ComponentCompilation` in the intermediate\n * representation.\n * TODO: Refactor more of the ingestion code into phases.\n */\nfunction ingestComponent(componentName, template, constantPool, relativeContextFilePath, i18nUseExternalIds, deferMeta, allDeferrableDepsFn, relativeTemplatePath, enableDebugLocations) {\n const job = new ComponentCompilationJob(componentName, constantPool, compatibilityMode, relativeContextFilePath, i18nUseExternalIds, deferMeta, allDeferrableDepsFn, relativeTemplatePath, enableDebugLocations);\n ingestNodes(job.root, template);\n return job;\n}\n/**\n * Process a host binding AST and convert it into a `HostBindingCompilationJob` in the intermediate\n * representation.\n */\nfunction ingestHostBinding(input, bindingParser, constantPool) {\n const job = new HostBindingCompilationJob(input.componentName, constantPool, compatibilityMode);\n for (const property of input.properties ?? []) {\n let bindingKind = BindingKind.Property;\n // TODO: this should really be handled in the parser.\n if (property.name.startsWith('attr.')) {\n property.name = property.name.substring('attr.'.length);\n bindingKind = BindingKind.Attribute;\n }\n if (property.isAnimation) {\n bindingKind = BindingKind.Animation;\n }\n const securityContexts = bindingParser\n .calcPossibleSecurityContexts(input.componentSelector, property.name, bindingKind === BindingKind.Attribute)\n .filter((context) => context !== SecurityContext.NONE);\n ingestHostProperty(job, property, bindingKind, securityContexts);\n }\n for (const [name, expr] of Object.entries(input.attributes) ?? []) {\n const securityContexts = bindingParser\n .calcPossibleSecurityContexts(input.componentSelector, name, true)\n .filter((context) => context !== SecurityContext.NONE);\n ingestHostAttribute(job, name, expr, securityContexts);\n }\n for (const event of input.events ?? []) {\n ingestHostEvent(job, event);\n }\n return job;\n}\n// TODO: We should refactor the parser to use the same types and structures for host bindings as\n// with ordinary components. This would allow us to share a lot more ingestion code.\nfunction ingestHostProperty(job, property, bindingKind, securityContexts) {\n let expression;\n const ast = property.expression.ast;\n if (ast instanceof Interpolation$1) {\n expression = new Interpolation(ast.strings, ast.expressions.map((expr) => convertAst(expr, job, property.sourceSpan)), []);\n }\n else {\n expression = convertAst(ast, job, property.sourceSpan);\n }\n job.root.update.push(createBindingOp(job.root.xref, bindingKind, property.name, expression, null, securityContexts, false, false, null, \n /* TODO: How do Host bindings handle i18n attrs? */ null, property.sourceSpan));\n}\nfunction ingestHostAttribute(job, name, value, securityContexts) {\n const attrBinding = createBindingOp(job.root.xref, BindingKind.Attribute, name, value, null, securityContexts, \n /* Host attributes should always be extracted to const hostAttrs, even if they are not\n *strictly* text literals */\n true, false, null, \n /* TODO */ null, \n /** TODO: May be null? */ value.sourceSpan);\n job.root.update.push(attrBinding);\n}\nfunction ingestHostEvent(job, event) {\n const [phase, target] = event.type !== ParsedEventType.Animation\n ? [null, event.targetOrPhase]\n : [event.targetOrPhase, null];\n const eventBinding = createListenerOp(job.root.xref, new SlotHandle(), event.name, null, makeListenerHandlerOps(job.root, event.handler, event.handlerSpan), phase, target, true, event.sourceSpan);\n job.root.create.push(eventBinding);\n}\n/**\n * Ingest the nodes of a template AST into the given `ViewCompilation`.\n */\nfunction ingestNodes(unit, template) {\n for (const node of template) {\n if (node instanceof Element$1) {\n ingestElement(unit, node);\n }\n else if (node instanceof Template) {\n ingestTemplate(unit, node);\n }\n else if (node instanceof Content) {\n ingestContent(unit, node);\n }\n else if (node instanceof Text$3) {\n ingestText(unit, node, null);\n }\n else if (node instanceof BoundText) {\n ingestBoundText(unit, node, null);\n }\n else if (node instanceof IfBlock) {\n ingestIfBlock(unit, node);\n }\n else if (node instanceof SwitchBlock) {\n ingestSwitchBlock(unit, node);\n }\n else if (node instanceof DeferredBlock) {\n ingestDeferBlock(unit, node);\n }\n else if (node instanceof Icu$1) {\n ingestIcu(unit, node);\n }\n else if (node instanceof ForLoopBlock) {\n ingestForBlock(unit, node);\n }\n else if (node instanceof LetDeclaration$1) {\n ingestLetDeclaration(unit, node);\n }\n else {\n throw new Error(`Unsupported template node: ${node.constructor.name}`);\n }\n }\n}\n/**\n * Ingest an element AST from the template into the given `ViewCompilation`.\n */\nfunction ingestElement(unit, element) {\n if (element.i18n !== undefined &&\n !(element.i18n instanceof Message || element.i18n instanceof TagPlaceholder)) {\n throw Error(`Unhandled i18n metadata type for element: ${element.i18n.constructor.name}`);\n }\n const id = unit.job.allocateXrefId();\n const [namespaceKey, elementName] = splitNsName(element.name);\n const startOp = createElementStartOp(elementName, id, namespaceForKey(namespaceKey), element.i18n instanceof TagPlaceholder ? element.i18n : undefined, element.startSourceSpan, element.sourceSpan);\n unit.create.push(startOp);\n ingestElementBindings(unit, startOp, element);\n ingestReferences(startOp, element);\n // Start i18n, if needed, goes after the element create and bindings, but before the nodes\n let i18nBlockId = null;\n if (element.i18n instanceof Message) {\n i18nBlockId = unit.job.allocateXrefId();\n unit.create.push(createI18nStartOp(i18nBlockId, element.i18n, undefined, element.startSourceSpan));\n }\n ingestNodes(unit, element.children);\n // The source span for the end op is typically the element closing tag. However, if no closing tag\n // exists, such as in `<input>`, we use the start source span instead. Usually the start and end\n // instructions will be collapsed into one `element` instruction, negating the purpose of this\n // fallback, but in cases when it is not collapsed (such as an input with a binding), we still\n // want to map the end instruction to the main element.\n const endOp = createElementEndOp(id, element.endSourceSpan ?? element.startSourceSpan);\n unit.create.push(endOp);\n // If there is an i18n message associated with this element, insert i18n start and end ops.\n if (i18nBlockId !== null) {\n OpList.insertBefore(createI18nEndOp(i18nBlockId, element.endSourceSpan ?? element.startSourceSpan), endOp);\n }\n}\n/**\n * Ingest an `ng-template` node from the AST into the given `ViewCompilation`.\n */\nfunction ingestTemplate(unit, tmpl) {\n if (tmpl.i18n !== undefined &&\n !(tmpl.i18n instanceof Message || tmpl.i18n instanceof TagPlaceholder)) {\n throw Error(`Unhandled i18n metadata type for template: ${tmpl.i18n.constructor.name}`);\n }\n const childView = unit.job.allocateView(unit.xref);\n let tagNameWithoutNamespace = tmpl.tagName;\n let namespacePrefix = '';\n if (tmpl.tagName) {\n [namespacePrefix, tagNameWithoutNamespace] = splitNsName(tmpl.tagName);\n }\n const i18nPlaceholder = tmpl.i18n instanceof TagPlaceholder ? tmpl.i18n : undefined;\n const namespace = namespaceForKey(namespacePrefix);\n const functionNameSuffix = tagNameWithoutNamespace === null ? '' : prefixWithNamespace(tagNameWithoutNamespace, namespace);\n const templateKind = isPlainTemplate(tmpl)\n ? TemplateKind.NgTemplate\n : TemplateKind.Structural;\n const templateOp = createTemplateOp(childView.xref, templateKind, tagNameWithoutNamespace, functionNameSuffix, namespace, i18nPlaceholder, tmpl.startSourceSpan, tmpl.sourceSpan);\n unit.create.push(templateOp);\n ingestTemplateBindings(unit, templateOp, tmpl, templateKind);\n ingestReferences(templateOp, tmpl);\n ingestNodes(childView, tmpl.children);\n for (const { name, value } of tmpl.variables) {\n childView.contextVariables.set(name, value !== '' ? value : '$implicit');\n }\n // If this is a plain template and there is an i18n message associated with it, insert i18n start\n // and end ops. For structural directive templates, the i18n ops will be added when ingesting the\n // element/template the directive is placed on.\n if (templateKind === TemplateKind.NgTemplate && tmpl.i18n instanceof Message) {\n const id = unit.job.allocateXrefId();\n OpList.insertAfter(createI18nStartOp(id, tmpl.i18n, undefined, tmpl.startSourceSpan), childView.create.head);\n OpList.insertBefore(createI18nEndOp(id, tmpl.endSourceSpan ?? tmpl.startSourceSpan), childView.create.tail);\n }\n}\n/**\n * Ingest a content node from the AST into the given `ViewCompilation`.\n */\nfunction ingestContent(unit, content) {\n if (content.i18n !== undefined && !(content.i18n instanceof TagPlaceholder)) {\n throw Error(`Unhandled i18n metadata type for element: ${content.i18n.constructor.name}`);\n }\n let fallbackView = null;\n // Don't capture default content that's only made up of empty text nodes and comments.\n // Note that we process the default content before the projection in order to match the\n // insertion order at runtime.\n if (content.children.some((child) => !(child instanceof Comment$1) &&\n (!(child instanceof Text$3) || child.value.trim().length > 0))) {\n fallbackView = unit.job.allocateView(unit.xref);\n ingestNodes(fallbackView, content.children);\n }\n const id = unit.job.allocateXrefId();\n const op = createProjectionOp(id, content.selector, content.i18n, fallbackView?.xref ?? null, content.sourceSpan);\n for (const attr of content.attributes) {\n const securityContext = domSchema.securityContext(content.name, attr.name, true);\n unit.update.push(createBindingOp(op.xref, BindingKind.Attribute, attr.name, literal(attr.value), null, securityContext, true, false, null, asMessage(attr.i18n), attr.sourceSpan));\n }\n unit.create.push(op);\n}\n/**\n * Ingest a literal text node from the AST into the given `ViewCompilation`.\n */\nfunction ingestText(unit, text, icuPlaceholder) {\n unit.create.push(createTextOp(unit.job.allocateXrefId(), text.value, icuPlaceholder, text.sourceSpan));\n}\n/**\n * Ingest an interpolated text node from the AST into the given `ViewCompilation`.\n */\nfunction ingestBoundText(unit, text, icuPlaceholder) {\n let value = text.value;\n if (value instanceof ASTWithSource) {\n value = value.ast;\n }\n if (!(value instanceof Interpolation$1)) {\n throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${value.constructor.name}`);\n }\n if (text.i18n !== undefined && !(text.i18n instanceof Container)) {\n throw Error(`Unhandled i18n metadata type for text interpolation: ${text.i18n?.constructor.name}`);\n }\n const i18nPlaceholders = text.i18n instanceof Container\n ? text.i18n.children\n .filter((node) => node instanceof Placeholder)\n .map((placeholder) => placeholder.name)\n : [];\n if (i18nPlaceholders.length > 0 && i18nPlaceholders.length !== value.expressions.length) {\n throw Error(`Unexpected number of i18n placeholders (${value.expressions.length}) for BoundText with ${value.expressions.length} expressions`);\n }\n const textXref = unit.job.allocateXrefId();\n unit.create.push(createTextOp(textXref, '', icuPlaceholder, text.sourceSpan));\n // TemplateDefinitionBuilder does not generate source maps for sub-expressions inside an\n // interpolation. We copy that behavior in compatibility mode.\n // TODO: is it actually correct to generate these extra maps in modern mode?\n const baseSourceSpan = unit.job.compatibility ? null : text.sourceSpan;\n unit.update.push(createInterpolateTextOp(textXref, new Interpolation(value.strings, value.expressions.map((expr) => convertAst(expr, unit.job, baseSourceSpan)), i18nPlaceholders), text.sourceSpan));\n}\n/**\n * Ingest an `@if` block into the given `ViewCompilation`.\n */\nfunction ingestIfBlock(unit, ifBlock) {\n let firstXref = null;\n let conditions = [];\n for (let i = 0; i < ifBlock.branches.length; i++) {\n const ifCase = ifBlock.branches[i];\n const cView = unit.job.allocateView(unit.xref);\n const tagName = ingestControlFlowInsertionPoint(unit, cView.xref, ifCase);\n if (ifCase.expressionAlias !== null) {\n cView.contextVariables.set(ifCase.expressionAlias.name, CTX_REF);\n }\n let ifCaseI18nMeta = undefined;\n if (ifCase.i18n !== undefined) {\n if (!(ifCase.i18n instanceof BlockPlaceholder)) {\n throw Error(`Unhandled i18n metadata type for if block: ${ifCase.i18n?.constructor.name}`);\n }\n ifCaseI18nMeta = ifCase.i18n;\n }\n const templateOp = createTemplateOp(cView.xref, TemplateKind.Block, tagName, 'Conditional', Namespace.HTML, ifCaseI18nMeta, ifCase.startSourceSpan, ifCase.sourceSpan);\n unit.create.push(templateOp);\n if (firstXref === null) {\n firstXref = cView.xref;\n }\n const caseExpr = ifCase.expression ? convertAst(ifCase.expression, unit.job, null) : null;\n const conditionalCaseExpr = new ConditionalCaseExpr(caseExpr, templateOp.xref, templateOp.handle, ifCase.expressionAlias);\n conditions.push(conditionalCaseExpr);\n ingestNodes(cView, ifCase.children);\n }\n unit.update.push(createConditionalOp(firstXref, null, conditions, ifBlock.sourceSpan));\n}\n/**\n * Ingest an `@switch` block into the given `ViewCompilation`.\n */\nfunction ingestSwitchBlock(unit, switchBlock) {\n // Don't ingest empty switches since they won't render anything.\n if (switchBlock.cases.length === 0) {\n return;\n }\n let firstXref = null;\n let conditions = [];\n for (const switchCase of switchBlock.cases) {\n const cView = unit.job.allocateView(unit.xref);\n const tagName = ingestControlFlowInsertionPoint(unit, cView.xref, switchCase);\n let switchCaseI18nMeta = undefined;\n if (switchCase.i18n !== undefined) {\n if (!(switchCase.i18n instanceof BlockPlaceholder)) {\n throw Error(`Unhandled i18n metadata type for switch block: ${switchCase.i18n?.constructor.name}`);\n }\n switchCaseI18nMeta = switchCase.i18n;\n }\n const templateOp = createTemplateOp(cView.xref, TemplateKind.Block, tagName, 'Case', Namespace.HTML, switchCaseI18nMeta, switchCase.startSourceSpan, switchCase.sourceSpan);\n unit.create.push(templateOp);\n if (firstXref === null) {\n firstXref = cView.xref;\n }\n const caseExpr = switchCase.expression\n ? convertAst(switchCase.expression, unit.job, switchBlock.startSourceSpan)\n : null;\n const conditionalCaseExpr = new ConditionalCaseExpr(caseExpr, templateOp.xref, templateOp.handle);\n conditions.push(conditionalCaseExpr);\n ingestNodes(cView, switchCase.children);\n }\n unit.update.push(createConditionalOp(firstXref, convertAst(switchBlock.expression, unit.job, null), conditions, switchBlock.sourceSpan));\n}\nfunction ingestDeferView(unit, suffix, i18nMeta, children, sourceSpan) {\n if (i18nMeta !== undefined && !(i18nMeta instanceof BlockPlaceholder)) {\n throw Error('Unhandled i18n metadata type for defer block');\n }\n if (children === undefined) {\n return null;\n }\n const secondaryView = unit.job.allocateView(unit.xref);\n ingestNodes(secondaryView, children);\n const templateOp = createTemplateOp(secondaryView.xref, TemplateKind.Block, null, `Defer${suffix}`, Namespace.HTML, i18nMeta, sourceSpan, sourceSpan);\n unit.create.push(templateOp);\n return templateOp;\n}\nfunction ingestDeferBlock(unit, deferBlock) {\n let ownResolverFn = null;\n if (unit.job.deferMeta.mode === 0 /* DeferBlockDepsEmitMode.PerBlock */) {\n if (!unit.job.deferMeta.blocks.has(deferBlock)) {\n throw new Error(`AssertionError: unable to find a dependency function for this deferred block`);\n }\n ownResolverFn = unit.job.deferMeta.blocks.get(deferBlock) ?? null;\n }\n // Generate the defer main view and all secondary views.\n const main = ingestDeferView(unit, '', deferBlock.i18n, deferBlock.children, deferBlock.sourceSpan);\n const loading = ingestDeferView(unit, 'Loading', deferBlock.loading?.i18n, deferBlock.loading?.children, deferBlock.loading?.sourceSpan);\n const placeholder = ingestDeferView(unit, 'Placeholder', deferBlock.placeholder?.i18n, deferBlock.placeholder?.children, deferBlock.placeholder?.sourceSpan);\n const error = ingestDeferView(unit, 'Error', deferBlock.error?.i18n, deferBlock.error?.children, deferBlock.error?.sourceSpan);\n // Create the main defer op, and ops for all secondary views.\n const deferXref = unit.job.allocateXrefId();\n const deferOp = createDeferOp(deferXref, main.xref, main.handle, ownResolverFn, unit.job.allDeferrableDepsFn, deferBlock.sourceSpan);\n deferOp.placeholderView = placeholder?.xref ?? null;\n deferOp.placeholderSlot = placeholder?.handle ?? null;\n deferOp.loadingSlot = loading?.handle ?? null;\n deferOp.errorSlot = error?.handle ?? null;\n deferOp.placeholderMinimumTime = deferBlock.placeholder?.minimumTime ?? null;\n deferOp.loadingMinimumTime = deferBlock.loading?.minimumTime ?? null;\n deferOp.loadingAfterTime = deferBlock.loading?.afterTime ?? null;\n deferOp.flags = calcDeferBlockFlags(deferBlock);\n unit.create.push(deferOp);\n // Configure all defer `on` conditions.\n // TODO: refactor prefetch triggers to use a separate op type, with a shared superclass. This will\n // make it easier to refactor prefetch behavior in the future.\n const deferOnOps = [];\n const deferWhenOps = [];\n // Ingest the hydrate triggers first since they set up all the other triggers during SSR.\n ingestDeferTriggers(\"hydrate\" /* ir.DeferOpModifierKind.HYDRATE */, deferBlock.hydrateTriggers, deferOnOps, deferWhenOps, unit, deferXref);\n ingestDeferTriggers(\"none\" /* ir.DeferOpModifierKind.NONE */, deferBlock.triggers, deferOnOps, deferWhenOps, unit, deferXref);\n ingestDeferTriggers(\"prefetch\" /* ir.DeferOpModifierKind.PREFETCH */, deferBlock.prefetchTriggers, deferOnOps, deferWhenOps, unit, deferXref);\n // If no (non-prefetching or hydrating) defer triggers were provided, default to `idle`.\n const hasConcreteTrigger = deferOnOps.some((op) => op.modifier === \"none\" /* ir.DeferOpModifierKind.NONE */) ||\n deferWhenOps.some((op) => op.modifier === \"none\" /* ir.DeferOpModifierKind.NONE */);\n if (!hasConcreteTrigger) {\n deferOnOps.push(createDeferOnOp(deferXref, { kind: DeferTriggerKind.Idle }, \"none\" /* ir.DeferOpModifierKind.NONE */, null));\n }\n unit.create.push(deferOnOps);\n unit.update.push(deferWhenOps);\n}\nfunction calcDeferBlockFlags(deferBlockDetails) {\n if (Object.keys(deferBlockDetails.hydrateTriggers).length > 0) {\n return 1 /* ir.TDeferDetailsFlags.HasHydrateTriggers */;\n }\n return null;\n}\nfunction ingestDeferTriggers(modifier, triggers, onOps, whenOps, unit, deferXref) {\n if (triggers.idle !== undefined) {\n const deferOnOp = createDeferOnOp(deferXref, { kind: DeferTriggerKind.Idle }, modifier, triggers.idle.sourceSpan);\n onOps.push(deferOnOp);\n }\n if (triggers.immediate !== undefined) {\n const deferOnOp = createDeferOnOp(deferXref, { kind: DeferTriggerKind.Immediate }, modifier, triggers.immediate.sourceSpan);\n onOps.push(deferOnOp);\n }\n if (triggers.timer !== undefined) {\n const deferOnOp = createDeferOnOp(deferXref, { kind: DeferTriggerKind.Timer, delay: triggers.timer.delay }, modifier, triggers.timer.sourceSpan);\n onOps.push(deferOnOp);\n }\n if (triggers.hover !== undefined) {\n const deferOnOp = createDeferOnOp(deferXref, {\n kind: DeferTriggerKind.Hover,\n targetName: triggers.hover.reference,\n targetXref: null,\n targetSlot: null,\n targetView: null,\n targetSlotViewSteps: null,\n }, modifier, triggers.hover.sourceSpan);\n onOps.push(deferOnOp);\n }\n if (triggers.interaction !== undefined) {\n const deferOnOp = createDeferOnOp(deferXref, {\n kind: DeferTriggerKind.Interaction,\n targetName: triggers.interaction.reference,\n targetXref: null,\n targetSlot: null,\n targetView: null,\n targetSlotViewSteps: null,\n }, modifier, triggers.interaction.sourceSpan);\n onOps.push(deferOnOp);\n }\n if (triggers.viewport !== undefined) {\n const deferOnOp = createDeferOnOp(deferXref, {\n kind: DeferTriggerKind.Viewport,\n targetName: triggers.viewport.reference,\n targetXref: null,\n targetSlot: null,\n targetView: null,\n targetSlotViewSteps: null,\n }, modifier, triggers.viewport.sourceSpan);\n onOps.push(deferOnOp);\n }\n if (triggers.never !== undefined) {\n const deferOnOp = createDeferOnOp(deferXref, { kind: DeferTriggerKind.Never }, modifier, triggers.never.sourceSpan);\n onOps.push(deferOnOp);\n }\n if (triggers.when !== undefined) {\n if (triggers.when.value instanceof Interpolation$1) {\n // TemplateDefinitionBuilder supports this case, but it's very strange to me. What would it\n // even mean?\n throw new Error(`Unexpected interpolation in defer block when trigger`);\n }\n const deferOnOp = createDeferWhenOp(deferXref, convertAst(triggers.when.value, unit.job, triggers.when.sourceSpan), modifier, triggers.when.sourceSpan);\n whenOps.push(deferOnOp);\n }\n}\nfunction ingestIcu(unit, icu) {\n if (icu.i18n instanceof Message && isSingleI18nIcu(icu.i18n)) {\n const xref = unit.job.allocateXrefId();\n unit.create.push(createIcuStartOp(xref, icu.i18n, icuFromI18nMessage(icu.i18n).name, null));\n for (const [placeholder, text] of Object.entries({ ...icu.vars, ...icu.placeholders })) {\n if (text instanceof BoundText) {\n ingestBoundText(unit, text, placeholder);\n }\n else {\n ingestText(unit, text, placeholder);\n }\n }\n unit.create.push(createIcuEndOp(xref));\n }\n else {\n throw Error(`Unhandled i18n metadata type for ICU: ${icu.i18n?.constructor.name}`);\n }\n}\n/**\n * Ingest an `@for` block into the given `ViewCompilation`.\n */\nfunction ingestForBlock(unit, forBlock) {\n const repeaterView = unit.job.allocateView(unit.xref);\n // We copy TemplateDefinitionBuilder's scheme of creating names for `$count` and `$index`\n // that are suffixed with special information, to disambiguate which level of nested loop\n // the below aliases refer to.\n // TODO: We should refactor Template Pipeline's variable phases to gracefully handle\n // shadowing, and arbitrarily many levels of variables depending on each other.\n const indexName = `ɵ$index_${repeaterView.xref}`;\n const countName = `ɵ$count_${repeaterView.xref}`;\n const indexVarNames = new Set();\n // Set all the context variables and aliases available in the repeater.\n repeaterView.contextVariables.set(forBlock.item.name, forBlock.item.value);\n for (const variable of forBlock.contextVariables) {\n if (variable.value === '$index') {\n indexVarNames.add(variable.name);\n }\n if (variable.name === '$index') {\n repeaterView.contextVariables.set('$index', variable.value).set(indexName, variable.value);\n }\n else if (variable.name === '$count') {\n repeaterView.contextVariables.set('$count', variable.value).set(countName, variable.value);\n }\n else {\n repeaterView.aliases.add({\n kind: SemanticVariableKind.Alias,\n name: null,\n identifier: variable.name,\n expression: getComputedForLoopVariableExpression(variable, indexName, countName),\n });\n }\n }\n const sourceSpan = convertSourceSpan(forBlock.trackBy.span, forBlock.sourceSpan);\n const track = convertAst(forBlock.trackBy, unit.job, sourceSpan);\n ingestNodes(repeaterView, forBlock.children);\n let emptyView = null;\n let emptyTagName = null;\n if (forBlock.empty !== null) {\n emptyView = unit.job.allocateView(unit.xref);\n ingestNodes(emptyView, forBlock.empty.children);\n emptyTagName = ingestControlFlowInsertionPoint(unit, emptyView.xref, forBlock.empty);\n }\n const varNames = {\n $index: indexVarNames,\n $implicit: forBlock.item.name,\n };\n if (forBlock.i18n !== undefined && !(forBlock.i18n instanceof BlockPlaceholder)) {\n throw Error('AssertionError: Unhandled i18n metadata type or @for');\n }\n if (forBlock.empty?.i18n !== undefined &&\n !(forBlock.empty.i18n instanceof BlockPlaceholder)) {\n throw Error('AssertionError: Unhandled i18n metadata type or @empty');\n }\n const i18nPlaceholder = forBlock.i18n;\n const emptyI18nPlaceholder = forBlock.empty?.i18n;\n const tagName = ingestControlFlowInsertionPoint(unit, repeaterView.xref, forBlock);\n const repeaterCreate = createRepeaterCreateOp(repeaterView.xref, emptyView?.xref ?? null, tagName, track, varNames, emptyTagName, i18nPlaceholder, emptyI18nPlaceholder, forBlock.startSourceSpan, forBlock.sourceSpan);\n unit.create.push(repeaterCreate);\n const expression = convertAst(forBlock.expression, unit.job, convertSourceSpan(forBlock.expression.span, forBlock.sourceSpan));\n const repeater = createRepeaterOp(repeaterCreate.xref, repeaterCreate.handle, expression, forBlock.sourceSpan);\n unit.update.push(repeater);\n}\n/**\n * Gets an expression that represents a variable in an `@for` loop.\n * @param variable AST representing the variable.\n * @param indexName Loop-specific name for `$index`.\n * @param countName Loop-specific name for `$count`.\n */\nfunction getComputedForLoopVariableExpression(variable, indexName, countName) {\n switch (variable.value) {\n case '$index':\n return new LexicalReadExpr(indexName);\n case '$count':\n return new LexicalReadExpr(countName);\n case '$first':\n return new LexicalReadExpr(indexName).identical(literal(0));\n case '$last':\n return new LexicalReadExpr(indexName).identical(new LexicalReadExpr(countName).minus(literal(1)));\n case '$even':\n return new LexicalReadExpr(indexName).modulo(literal(2)).identical(literal(0));\n case '$odd':\n return new LexicalReadExpr(indexName).modulo(literal(2)).notIdentical(literal(0));\n default:\n throw new Error(`AssertionError: unknown @for loop variable ${variable.value}`);\n }\n}\nfunction ingestLetDeclaration(unit, node) {\n const target = unit.job.allocateXrefId();\n unit.create.push(createDeclareLetOp(target, node.name, node.sourceSpan));\n unit.update.push(createStoreLetOp(target, node.name, convertAst(node.value, unit.job, node.valueSpan), node.sourceSpan));\n}\n/**\n * Convert a template AST expression into an output AST expression.\n */\nfunction convertAst(ast, job, baseSourceSpan) {\n if (ast instanceof ASTWithSource) {\n return convertAst(ast.ast, job, baseSourceSpan);\n }\n else if (ast instanceof PropertyRead) {\n // Whether this is an implicit receiver, *excluding* explicit reads of `this`.\n const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver && !(ast.receiver instanceof ThisReceiver);\n if (isImplicitReceiver) {\n return new LexicalReadExpr(ast.name);\n }\n else {\n return new ReadPropExpr(convertAst(ast.receiver, job, baseSourceSpan), ast.name, null, convertSourceSpan(ast.span, baseSourceSpan));\n }\n }\n else if (ast instanceof PropertyWrite) {\n if (ast.receiver instanceof ImplicitReceiver) {\n return new WritePropExpr(\n // TODO: Is it correct to always use the root context in place of the implicit receiver?\n new ContextExpr(job.root.xref), ast.name, convertAst(ast.value, job, baseSourceSpan), null, convertSourceSpan(ast.span, baseSourceSpan));\n }\n return new WritePropExpr(convertAst(ast.receiver, job, baseSourceSpan), ast.name, convertAst(ast.value, job, baseSourceSpan), undefined, convertSourceSpan(ast.span, baseSourceSpan));\n }\n else if (ast instanceof KeyedWrite) {\n return new WriteKeyExpr(convertAst(ast.receiver, job, baseSourceSpan), convertAst(ast.key, job, baseSourceSpan), convertAst(ast.value, job, baseSourceSpan), undefined, convertSourceSpan(ast.span, baseSourceSpan));\n }\n else if (ast instanceof Call) {\n if (ast.receiver instanceof ImplicitReceiver) {\n throw new Error(`Unexpected ImplicitReceiver`);\n }\n else {\n return new InvokeFunctionExpr(convertAst(ast.receiver, job, baseSourceSpan), ast.args.map((arg) => convertAst(arg, job, baseSourceSpan)), undefined, convertSourceSpan(ast.span, baseSourceSpan));\n }\n }\n else if (ast instanceof LiteralPrimitive) {\n return literal(ast.value, undefined, convertSourceSpan(ast.span, baseSourceSpan));\n }\n else if (ast instanceof Unary) {\n switch (ast.operator) {\n case '+':\n return new UnaryOperatorExpr(UnaryOperator.Plus, convertAst(ast.expr, job, baseSourceSpan), undefined, convertSourceSpan(ast.span, baseSourceSpan));\n case '-':\n return new UnaryOperatorExpr(UnaryOperator.Minus, convertAst(ast.expr, job, baseSourceSpan), undefined, convertSourceSpan(ast.span, baseSourceSpan));\n default:\n throw new Error(`AssertionError: unknown unary operator ${ast.operator}`);\n }\n }\n else if (ast instanceof Binary) {\n const operator = BINARY_OPERATORS.get(ast.operation);\n if (operator === undefined) {\n throw new Error(`AssertionError: unknown binary operator ${ast.operation}`);\n }\n return new BinaryOperatorExpr(operator, convertAst(ast.left, job, baseSourceSpan), convertAst(ast.right, job, baseSourceSpan), undefined, convertSourceSpan(ast.span, baseSourceSpan));\n }\n else if (ast instanceof ThisReceiver) {\n // TODO: should context expressions have source maps?\n return new ContextExpr(job.root.xref);\n }\n else if (ast instanceof KeyedRead) {\n return new ReadKeyExpr(convertAst(ast.receiver, job, baseSourceSpan), convertAst(ast.key, job, baseSourceSpan), undefined, convertSourceSpan(ast.span, baseSourceSpan));\n }\n else if (ast instanceof Chain) {\n throw new Error(`AssertionError: Chain in unknown context`);\n }\n else if (ast instanceof LiteralMap) {\n const entries = ast.keys.map((key, idx) => {\n const value = ast.values[idx];\n // TODO: should literals have source maps, or do we just map the whole surrounding\n // expression?\n return new LiteralMapEntry(key.key, convertAst(value, job, baseSourceSpan), key.quoted);\n });\n return new LiteralMapExpr(entries, undefined, convertSourceSpan(ast.span, baseSourceSpan));\n }\n else if (ast instanceof LiteralArray) {\n // TODO: should literals have source maps, or do we just map the whole surrounding expression?\n return new LiteralArrayExpr(ast.expressions.map((expr) => convertAst(expr, job, baseSourceSpan)));\n }\n else if (ast instanceof Conditional) {\n return new ConditionalExpr(convertAst(ast.condition, job, baseSourceSpan), convertAst(ast.trueExp, job, baseSourceSpan), convertAst(ast.falseExp, job, baseSourceSpan), undefined, convertSourceSpan(ast.span, baseSourceSpan));\n }\n else if (ast instanceof NonNullAssert) {\n // A non-null assertion shouldn't impact generated instructions, so we can just drop it.\n return convertAst(ast.expression, job, baseSourceSpan);\n }\n else if (ast instanceof BindingPipe) {\n // TODO: pipes should probably have source maps; figure out details.\n return new PipeBindingExpr(job.allocateXrefId(), new SlotHandle(), ast.name, [\n convertAst(ast.exp, job, baseSourceSpan),\n ...ast.args.map((arg) => convertAst(arg, job, baseSourceSpan)),\n ]);\n }\n else if (ast instanceof SafeKeyedRead) {\n return new SafeKeyedReadExpr(convertAst(ast.receiver, job, baseSourceSpan), convertAst(ast.key, job, baseSourceSpan), convertSourceSpan(ast.span, baseSourceSpan));\n }\n else if (ast instanceof SafePropertyRead) {\n // TODO: source span\n return new SafePropertyReadExpr(convertAst(ast.receiver, job, baseSourceSpan), ast.name);\n }\n else if (ast instanceof SafeCall) {\n // TODO: source span\n return new SafeInvokeFunctionExpr(convertAst(ast.receiver, job, baseSourceSpan), ast.args.map((a) => convertAst(a, job, baseSourceSpan)));\n }\n else if (ast instanceof EmptyExpr$1) {\n return new EmptyExpr(convertSourceSpan(ast.span, baseSourceSpan));\n }\n else if (ast instanceof PrefixNot) {\n return not(convertAst(ast.expression, job, baseSourceSpan), convertSourceSpan(ast.span, baseSourceSpan));\n }\n else if (ast instanceof TypeofExpression) {\n return typeofExpr(convertAst(ast.expression, job, baseSourceSpan));\n }\n else {\n throw new Error(`Unhandled expression type \"${ast.constructor.name}\" in file \"${baseSourceSpan?.start.file.url}\"`);\n }\n}\nfunction convertAstWithInterpolation(job, value, i18nMeta, sourceSpan) {\n let expression;\n if (value instanceof Interpolation$1) {\n expression = new Interpolation(value.strings, value.expressions.map((e) => convertAst(e, job, sourceSpan ?? null)), Object.keys(asMessage(i18nMeta)?.placeholders ?? {}));\n }\n else if (value instanceof AST) {\n expression = convertAst(value, job, sourceSpan ?? null);\n }\n else {\n expression = literal(value);\n }\n return expression;\n}\n// TODO: Can we populate Template binding kinds in ingest?\nconst BINDING_KINDS = new Map([\n [BindingType.Property, BindingKind.Property],\n [BindingType.TwoWay, BindingKind.TwoWayProperty],\n [BindingType.Attribute, BindingKind.Attribute],\n [BindingType.Class, BindingKind.ClassName],\n [BindingType.Style, BindingKind.StyleProperty],\n [BindingType.Animation, BindingKind.Animation],\n]);\n/**\n * Checks whether the given template is a plain ng-template (as opposed to another kind of template\n * such as a structural directive template or control flow template). This is checked based on the\n * tagName. We can expect that only plain ng-templates will come through with a tagName of\n * 'ng-template'.\n *\n * Here are some of the cases we expect:\n *\n * | Angular HTML | Template tagName |\n * | ---------------------------------- | ------------------ |\n * | `<ng-template>` | 'ng-template' |\n * | `<div *ngIf=\"true\">` | 'div' |\n * | `<svg><ng-template>` | 'svg:ng-template' |\n * | `@if (true) {` | 'Conditional' |\n * | `<ng-template *ngIf>` (plain) | 'ng-template' |\n * | `<ng-template *ngIf>` (structural) | null |\n */\nfunction isPlainTemplate(tmpl) {\n return splitNsName(tmpl.tagName ?? '')[1] === NG_TEMPLATE_TAG_NAME;\n}\n/**\n * Ensures that the i18nMeta, if provided, is an i18n.Message.\n */\nfunction asMessage(i18nMeta) {\n if (i18nMeta == null) {\n return null;\n }\n if (!(i18nMeta instanceof Message)) {\n throw Error(`Expected i18n meta to be a Message, but got: ${i18nMeta.constructor.name}`);\n }\n return i18nMeta;\n}\n/**\n * Process all of the bindings on an element in the template AST and convert them to their IR\n * representation.\n */\nfunction ingestElementBindings(unit, op, element) {\n let bindings = new Array();\n let i18nAttributeBindingNames = new Set();\n for (const attr of element.attributes) {\n // Attribute literal bindings, such as `attr.foo=\"bar\"`.\n const securityContext = domSchema.securityContext(element.name, attr.name, true);\n bindings.push(createBindingOp(op.xref, BindingKind.Attribute, attr.name, convertAstWithInterpolation(unit.job, attr.value, attr.i18n), null, securityContext, true, false, null, asMessage(attr.i18n), attr.sourceSpan));\n if (attr.i18n) {\n i18nAttributeBindingNames.add(attr.name);\n }\n }\n for (const input of element.inputs) {\n if (i18nAttributeBindingNames.has(input.name)) {\n console.error(`On component ${unit.job.componentName}, the binding ${input.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`);\n }\n // All dynamic bindings (both attribute and property bindings).\n bindings.push(createBindingOp(op.xref, BINDING_KINDS.get(input.type), input.name, convertAstWithInterpolation(unit.job, astOf(input.value), input.i18n), input.unit, input.securityContext, false, false, null, asMessage(input.i18n) ?? null, input.sourceSpan));\n }\n unit.create.push(bindings.filter((b) => b?.kind === OpKind.ExtractedAttribute));\n unit.update.push(bindings.filter((b) => b?.kind === OpKind.Binding));\n for (const output of element.outputs) {\n if (output.type === ParsedEventType.Animation && output.phase === null) {\n throw Error('Animation listener should have a phase');\n }\n if (output.type === ParsedEventType.TwoWay) {\n unit.create.push(createTwoWayListenerOp(op.xref, op.handle, output.name, op.tag, makeTwoWayListenerHandlerOps(unit, output.handler, output.handlerSpan), output.sourceSpan));\n }\n else {\n unit.create.push(createListenerOp(op.xref, op.handle, output.name, op.tag, makeListenerHandlerOps(unit, output.handler, output.handlerSpan), output.phase, output.target, false, output.sourceSpan));\n }\n }\n // If any of the bindings on this element have an i18n message, then an i18n attrs configuration\n // op is also required.\n if (bindings.some((b) => b?.i18nMessage) !== null) {\n unit.create.push(createI18nAttributesOp(unit.job.allocateXrefId(), new SlotHandle(), op.xref));\n }\n}\n/**\n * Process all of the bindings on a template in the template AST and convert them to their IR\n * representation.\n */\nfunction ingestTemplateBindings(unit, op, template, templateKind) {\n let bindings = new Array();\n for (const attr of template.templateAttrs) {\n if (attr instanceof TextAttribute) {\n const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, attr.name, true);\n bindings.push(createTemplateBinding(unit, op.xref, BindingType.Attribute, attr.name, attr.value, null, securityContext, true, templateKind, asMessage(attr.i18n), attr.sourceSpan));\n }\n else {\n bindings.push(createTemplateBinding(unit, op.xref, attr.type, attr.name, astOf(attr.value), attr.unit, attr.securityContext, true, templateKind, asMessage(attr.i18n), attr.sourceSpan));\n }\n }\n for (const attr of template.attributes) {\n // Attribute literal bindings, such as `attr.foo=\"bar\"`.\n const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, attr.name, true);\n bindings.push(createTemplateBinding(unit, op.xref, BindingType.Attribute, attr.name, attr.value, null, securityContext, false, templateKind, asMessage(attr.i18n), attr.sourceSpan));\n }\n for (const input of template.inputs) {\n // Dynamic bindings (both attribute and property bindings).\n bindings.push(createTemplateBinding(unit, op.xref, input.type, input.name, astOf(input.value), input.unit, input.securityContext, false, templateKind, asMessage(input.i18n), input.sourceSpan));\n }\n unit.create.push(bindings.filter((b) => b?.kind === OpKind.ExtractedAttribute));\n unit.update.push(bindings.filter((b) => b?.kind === OpKind.Binding));\n for (const output of template.outputs) {\n if (output.type === ParsedEventType.Animation && output.phase === null) {\n throw Error('Animation listener should have a phase');\n }\n if (templateKind === TemplateKind.NgTemplate) {\n if (output.type === ParsedEventType.TwoWay) {\n unit.create.push(createTwoWayListenerOp(op.xref, op.handle, output.name, op.tag, makeTwoWayListenerHandlerOps(unit, output.handler, output.handlerSpan), output.sourceSpan));\n }\n else {\n unit.create.push(createListenerOp(op.xref, op.handle, output.name, op.tag, makeListenerHandlerOps(unit, output.handler, output.handlerSpan), output.phase, output.target, false, output.sourceSpan));\n }\n }\n if (templateKind === TemplateKind.Structural &&\n output.type !== ParsedEventType.Animation) {\n // Animation bindings are excluded from the structural template's const array.\n const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, output.name, false);\n unit.create.push(createExtractedAttributeOp(op.xref, BindingKind.Property, null, output.name, null, null, null, securityContext));\n }\n }\n // TODO: Perhaps we could do this in a phase? (It likely wouldn't change the slot indices.)\n if (bindings.some((b) => b?.i18nMessage) !== null) {\n unit.create.push(createI18nAttributesOp(unit.job.allocateXrefId(), new SlotHandle(), op.xref));\n }\n}\n/**\n * Helper to ingest an individual binding on a template, either an explicit `ng-template`, or an\n * implicit template created via structural directive.\n *\n * Bindings on templates are *extremely* tricky. I have tried to isolate all of the confusing edge\n * cases into this function, and to comment it well to document the behavior.\n *\n * Some of this behavior is intuitively incorrect, and we should consider changing it in the future.\n *\n * @param view The compilation unit for the view containing the template.\n * @param xref The xref of the template op.\n * @param type The binding type, according to the parser. This is fairly reasonable, e.g. both\n * dynamic and static attributes have e.BindingType.Attribute.\n * @param name The binding's name.\n * @param value The bindings's value, which will either be an input AST expression, or a string\n * literal. Note that the input AST expression may or may not be const -- it will only be a\n * string literal if the parser considered it a text binding.\n * @param unit If the binding has a unit (e.g. `px` for style bindings), then this is the unit.\n * @param securityContext The security context of the binding.\n * @param isStructuralTemplateAttribute Whether this binding actually applies to the structural\n * ng-template. For example, an `ngFor` would actually apply to the structural template. (Most\n * bindings on structural elements target the inner element, not the template.)\n * @param templateKind Whether this is an explicit `ng-template` or an implicit template created by\n * a structural directive. This should never be a block template.\n * @param i18nMessage The i18n metadata for the binding, if any.\n * @param sourceSpan The source span of the binding.\n * @returns An IR binding op, or null if the binding should be skipped.\n */\nfunction createTemplateBinding(view, xref, type, name, value, unit, securityContext, isStructuralTemplateAttribute, templateKind, i18nMessage, sourceSpan) {\n const isTextBinding = typeof value === 'string';\n // If this is a structural template, then several kinds of bindings should not result in an\n // update instruction.\n if (templateKind === TemplateKind.Structural) {\n if (!isStructuralTemplateAttribute) {\n switch (type) {\n case BindingType.Property:\n case BindingType.Class:\n case BindingType.Style:\n // Because this binding doesn't really target the ng-template, it must be a binding on an\n // inner node of a structural template. We can't skip it entirely, because we still need\n // it on the ng-template's consts (e.g. for the purposes of directive matching). However,\n // we should not generate an update instruction for it.\n return createExtractedAttributeOp(xref, BindingKind.Property, null, name, null, null, i18nMessage, securityContext);\n case BindingType.TwoWay:\n return createExtractedAttributeOp(xref, BindingKind.TwoWayProperty, null, name, null, null, i18nMessage, securityContext);\n }\n }\n if (!isTextBinding && (type === BindingType.Attribute || type === BindingType.Animation)) {\n // Again, this binding doesn't really target the ng-template; it actually targets the element\n // inside the structural template. In the case of non-text attribute or animation bindings,\n // the binding doesn't even show up on the ng-template const array, so we just skip it\n // entirely.\n return null;\n }\n }\n let bindingType = BINDING_KINDS.get(type);\n if (templateKind === TemplateKind.NgTemplate) {\n // We know we are dealing with bindings directly on an explicit ng-template.\n // Static attribute bindings should be collected into the const array as k/v pairs. Property\n // bindings should result in a `property` instruction, and `AttributeMarker.Bindings` const\n // entries.\n //\n // The difficulty is with dynamic attribute, style, and class bindings. These don't really make\n // sense on an `ng-template` and should probably be parser errors. However,\n // TemplateDefinitionBuilder generates `property` instructions for them, and so we do that as\n // well.\n //\n // Note that we do have a slight behavior difference with TemplateDefinitionBuilder: although\n // TDB emits `property` instructions for dynamic attributes, styles, and classes, only styles\n // and classes also get const collected into the `AttributeMarker.Bindings` field. Dynamic\n // attribute bindings are missing from the consts entirely. We choose to emit them into the\n // consts field anyway, to avoid creating special cases for something so arcane and nonsensical.\n if (type === BindingType.Class ||\n type === BindingType.Style ||\n (type === BindingType.Attribute && !isTextBinding)) {\n // TODO: These cases should be parse errors.\n bindingType = BindingKind.Property;\n }\n }\n return createBindingOp(xref, bindingType, name, convertAstWithInterpolation(view.job, value, i18nMessage), unit, securityContext, isTextBinding, isStructuralTemplateAttribute, templateKind, i18nMessage, sourceSpan);\n}\nfunction makeListenerHandlerOps(unit, handler, handlerSpan) {\n handler = astOf(handler);\n const handlerOps = new Array();\n let handlerExprs = handler instanceof Chain ? handler.expressions : [handler];\n if (handlerExprs.length === 0) {\n throw new Error('Expected listener to have non-empty expression list.');\n }\n const expressions = handlerExprs.map((expr) => convertAst(expr, unit.job, handlerSpan));\n const returnExpr = expressions.pop();\n handlerOps.push(...expressions.map((e) => createStatementOp(new ExpressionStatement(e, e.sourceSpan))));\n handlerOps.push(createStatementOp(new ReturnStatement(returnExpr, returnExpr.sourceSpan)));\n return handlerOps;\n}\nfunction makeTwoWayListenerHandlerOps(unit, handler, handlerSpan) {\n handler = astOf(handler);\n const handlerOps = new Array();\n if (handler instanceof Chain) {\n if (handler.expressions.length === 1) {\n handler = handler.expressions[0];\n }\n else {\n // This is validated during parsing already, but we do it here just in case.\n throw new Error('Expected two-way listener to have a single expression.');\n }\n }\n const handlerExpr = convertAst(handler, unit.job, handlerSpan);\n const eventReference = new LexicalReadExpr('$event');\n const twoWaySetExpr = new TwoWayBindingSetExpr(handlerExpr, eventReference);\n handlerOps.push(createStatementOp(new ExpressionStatement(twoWaySetExpr)));\n handlerOps.push(createStatementOp(new ReturnStatement(eventReference)));\n return handlerOps;\n}\nfunction astOf(ast) {\n return ast instanceof ASTWithSource ? ast.ast : ast;\n}\n/**\n * Process all of the local references on an element-like structure in the template AST and\n * convert them to their IR representation.\n */\nfunction ingestReferences(op, element) {\n assertIsArray(op.localRefs);\n for (const { name, value } of element.references) {\n op.localRefs.push({\n name,\n target: value,\n });\n }\n}\n/**\n * Assert that the given value is an array.\n */\nfunction assertIsArray(value) {\n if (!Array.isArray(value)) {\n throw new Error(`AssertionError: expected an array`);\n }\n}\n/**\n * Creates an absolute `ParseSourceSpan` from the relative `ParseSpan`.\n *\n * `ParseSpan` objects are relative to the start of the expression.\n * This method converts these to full `ParseSourceSpan` objects that\n * show where the span is within the overall source file.\n *\n * @param span the relative span to convert.\n * @param baseSourceSpan a span corresponding to the base of the expression tree.\n * @returns a `ParseSourceSpan` for the given span or null if no `baseSourceSpan` was provided.\n */\nfunction convertSourceSpan(span, baseSourceSpan) {\n if (baseSourceSpan === null) {\n return null;\n }\n const start = baseSourceSpan.start.moveBy(span.start);\n const end = baseSourceSpan.start.moveBy(span.end);\n const fullStart = baseSourceSpan.fullStart.moveBy(span.start);\n return new ParseSourceSpan(start, end, fullStart);\n}\n/**\n * With the directive-based control flow users were able to conditionally project content using\n * the `*` syntax. E.g. `<div *ngIf=\"expr\" projectMe></div>` will be projected into\n * `<ng-content select=\"[projectMe]\"/>`, because the attributes and tag name from the `div` are\n * copied to the template via the template creation instruction. With `@if` and `@for` that is\n * not the case, because the conditional is placed *around* elements, rather than *on* them.\n * The result is that content projection won't work in the same way if a user converts from\n * `*ngIf` to `@if`.\n *\n * This function aims to cover the most common case by doing the same copying when a control flow\n * node has *one and only one* root element or template node.\n *\n * This approach comes with some caveats:\n * 1. As soon as any other node is added to the root, the copying behavior won't work anymore.\n * A diagnostic will be added to flag cases like this and to explain how to work around it.\n * 2. If `preserveWhitespaces` is enabled, it's very likely that indentation will break this\n * workaround, because it'll include an additional text node as the first child. We can work\n * around it here, but in a discussion it was decided not to, because the user explicitly opted\n * into preserving the whitespace and we would have to drop it from the generated code.\n * The diagnostic mentioned point in #1 will flag such cases to users.\n *\n * @returns Tag name to be used for the control flow template.\n */\nfunction ingestControlFlowInsertionPoint(unit, xref, node) {\n let root = null;\n for (const child of node.children) {\n // Skip over comment nodes and @let declarations since\n // it doesn't matter where they end up in the DOM.\n if (child instanceof Comment$1 || child instanceof LetDeclaration$1) {\n continue;\n }\n // We can only infer the tag name/attributes if there's a single root node.\n if (root !== null) {\n return null;\n }\n // Root nodes can only elements or templates with a tag name (e.g. `<div *foo></div>`).\n if (child instanceof Element$1 || (child instanceof Template && child.tagName !== null)) {\n root = child;\n }\n else {\n return null;\n }\n }\n // If we've found a single root node, its tag name and attributes can be\n // copied to the surrounding template to be used for content projection.\n if (root !== null) {\n // Collect the static attributes for content projection purposes.\n for (const attr of root.attributes) {\n const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, attr.name, true);\n unit.update.push(createBindingOp(xref, BindingKind.Attribute, attr.name, literal(attr.value), null, securityContext, true, false, null, asMessage(attr.i18n), attr.sourceSpan));\n }\n // Also collect the inputs since they participate in content projection as well.\n // Note that TDB used to collect the outputs as well, but it wasn't passing them into\n // the template instruction. Here we just don't collect them.\n for (const attr of root.inputs) {\n if (attr.type !== BindingType.Animation && attr.type !== BindingType.Attribute) {\n const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, attr.name, true);\n unit.create.push(createExtractedAttributeOp(xref, BindingKind.Property, null, attr.name, null, null, null, securityContext));\n }\n }\n const tagName = root instanceof Element$1 ? root.name : root.tagName;\n // Don't pass along `ng-template` tag name since it enables directive matching.\n return tagName === NG_TEMPLATE_TAG_NAME ? null : tagName;\n }\n return null;\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Whether to produce instructions that will attach the source location to each DOM node.\n *\n * !!!Important!!! at the time of writing this flag isn't exposed externally, but internal debug\n * tools enable it via a local change. Any modifications to this flag need to update the\n * internal tooling as well.\n */\nlet ENABLE_TEMPLATE_SOURCE_LOCATIONS = false;\n/**\n * Utility function to enable source locations. Intended to be used **only** inside unit tests.\n */\nfunction setEnableTemplateSourceLocations(value) {\n ENABLE_TEMPLATE_SOURCE_LOCATIONS = value;\n}\n/** Gets whether template source locations are enabled. */\nfunction getTemplateSourceLocationsEnabled() {\n return ENABLE_TEMPLATE_SOURCE_LOCATIONS;\n}\n\n// if (rf & flags) { .. }\nfunction renderFlagCheckIfStmt(flags, statements) {\n return ifStmt(variable(RENDER_FLAGS).bitwiseAnd(literal(flags), null, false), statements);\n}\n/**\n * Translates query flags into `TQueryFlags` type in\n * packages/core/src/render3/interfaces/query.ts\n * @param query\n */\nfunction toQueryFlags(query) {\n return ((query.descendants ? 1 /* QueryFlags.descendants */ : 0 /* QueryFlags.none */) |\n (query.static ? 2 /* QueryFlags.isStatic */ : 0 /* QueryFlags.none */) |\n (query.emitDistinctChangesOnly ? 4 /* QueryFlags.emitDistinctChangesOnly */ : 0 /* QueryFlags.none */));\n}\nfunction getQueryPredicate(query, constantPool) {\n if (Array.isArray(query.predicate)) {\n let predicate = [];\n query.predicate.forEach((selector) => {\n // Each item in predicates array may contain strings with comma-separated refs\n // (for ex. 'ref, ref1, ..., refN'), thus we extract individual refs and store them\n // as separate array entities\n const selectors = selector.split(',').map((token) => literal(token.trim()));\n predicate.push(...selectors);\n });\n return constantPool.getConstLiteral(literalArr(predicate), true);\n }\n else {\n // The original predicate may have been wrapped in a `forwardRef()` call.\n switch (query.predicate.forwardRef) {\n case 0 /* ForwardRefHandling.None */:\n case 2 /* ForwardRefHandling.Unwrapped */:\n return query.predicate.expression;\n case 1 /* ForwardRefHandling.Wrapped */:\n return importExpr(Identifiers.resolveForwardRef).callFn([query.predicate.expression]);\n }\n }\n}\nfunction createQueryCreateCall(query, constantPool, queryTypeFns, prependParams) {\n const parameters = [];\n if (prependParams !== undefined) {\n parameters.push(...prependParams);\n }\n if (query.isSignal) {\n parameters.push(new ReadPropExpr(variable(CONTEXT_NAME), query.propertyName));\n }\n parameters.push(getQueryPredicate(query, constantPool), literal(toQueryFlags(query)));\n if (query.read) {\n parameters.push(query.read);\n }\n const queryCreateFn = query.isSignal ? queryTypeFns.signalBased : queryTypeFns.nonSignal;\n return importExpr(queryCreateFn).callFn(parameters);\n}\nconst queryAdvancePlaceholder = Symbol('queryAdvancePlaceholder');\n/**\n * Collapses query advance placeholders in a list of statements.\n *\n * This allows for less generated code because multiple sibling query advance\n * statements can be collapsed into a single call with the count as argument.\n *\n * e.g.\n *\n * ```ts\n * bla();\n * queryAdvance();\n * queryAdvance();\n * bla();\n * ```\n *\n * --> will turn into\n *\n * ```ts\n * bla();\n * queryAdvance(2);\n * bla();\n * ```\n */\nfunction collapseAdvanceStatements(statements) {\n const result = [];\n let advanceCollapseCount = 0;\n const flushAdvanceCount = () => {\n if (advanceCollapseCount > 0) {\n result.unshift(importExpr(Identifiers.queryAdvance)\n .callFn(advanceCollapseCount === 1 ? [] : [literal(advanceCollapseCount)])\n .toStmt());\n advanceCollapseCount = 0;\n }\n };\n // Iterate through statements in reverse and collapse advance placeholders.\n for (let i = statements.length - 1; i >= 0; i--) {\n const st = statements[i];\n if (st === queryAdvancePlaceholder) {\n advanceCollapseCount++;\n }\n else {\n flushAdvanceCount();\n result.unshift(st);\n }\n }\n flushAdvanceCount();\n return result;\n}\n// Define and update any view queries\nfunction createViewQueriesFunction(viewQueries, constantPool, name) {\n const createStatements = [];\n const updateStatements = [];\n const tempAllocator = temporaryAllocator((st) => updateStatements.push(st), TEMPORARY_NAME);\n viewQueries.forEach((query) => {\n // creation call, e.g. r3.viewQuery(somePredicate, true) or\n // r3.viewQuerySignal(ctx.prop, somePredicate, true);\n const queryDefinitionCall = createQueryCreateCall(query, constantPool, {\n signalBased: Identifiers.viewQuerySignal,\n nonSignal: Identifiers.viewQuery,\n });\n createStatements.push(queryDefinitionCall.toStmt());\n // Signal queries update lazily and we just advance the index.\n if (query.isSignal) {\n updateStatements.push(queryAdvancePlaceholder);\n return;\n }\n // update, e.g. (r3.queryRefresh(tmp = r3.loadQuery()) && (ctx.someDir = tmp));\n const temporary = tempAllocator();\n const getQueryList = importExpr(Identifiers.loadQuery).callFn([]);\n const refresh = importExpr(Identifiers.queryRefresh).callFn([temporary.set(getQueryList)]);\n const updateDirective = variable(CONTEXT_NAME)\n .prop(query.propertyName)\n .set(query.first ? temporary.prop('first') : temporary);\n updateStatements.push(refresh.and(updateDirective).toStmt());\n });\n const viewQueryFnName = name ? `${name}_Query` : null;\n return fn([new FnParam(RENDER_FLAGS, NUMBER_TYPE), new FnParam(CONTEXT_NAME, null)], [\n renderFlagCheckIfStmt(1 /* core.RenderFlags.Create */, createStatements),\n renderFlagCheckIfStmt(2 /* core.RenderFlags.Update */, collapseAdvanceStatements(updateStatements)),\n ], INFERRED_TYPE, null, viewQueryFnName);\n}\n// Define and update any content queries\nfunction createContentQueriesFunction(queries, constantPool, name) {\n const createStatements = [];\n const updateStatements = [];\n const tempAllocator = temporaryAllocator((st) => updateStatements.push(st), TEMPORARY_NAME);\n for (const query of queries) {\n // creation, e.g. r3.contentQuery(dirIndex, somePredicate, true, null) or\n // r3.contentQuerySignal(dirIndex, propName, somePredicate, <flags>, <read>).\n createStatements.push(createQueryCreateCall(query, constantPool, { nonSignal: Identifiers.contentQuery, signalBased: Identifiers.contentQuerySignal }, \n /* prependParams */ [variable('dirIndex')]).toStmt());\n // Signal queries update lazily and we just advance the index.\n if (query.isSignal) {\n updateStatements.push(queryAdvancePlaceholder);\n continue;\n }\n // update, e.g. (r3.queryRefresh(tmp = r3.loadQuery()) && (ctx.someDir = tmp));\n const temporary = tempAllocator();\n const getQueryList = importExpr(Identifiers.loadQuery).callFn([]);\n const refresh = importExpr(Identifiers.queryRefresh).callFn([temporary.set(getQueryList)]);\n const updateDirective = variable(CONTEXT_NAME)\n .prop(query.propertyName)\n .set(query.first ? temporary.prop('first') : temporary);\n updateStatements.push(refresh.and(updateDirective).toStmt());\n }\n const contentQueriesFnName = name ? `${name}_ContentQueries` : null;\n return fn([\n new FnParam(RENDER_FLAGS, NUMBER_TYPE),\n new FnParam(CONTEXT_NAME, null),\n new FnParam('dirIndex', null),\n ], [\n renderFlagCheckIfStmt(1 /* core.RenderFlags.Create */, createStatements),\n renderFlagCheckIfStmt(2 /* core.RenderFlags.Update */, collapseAdvanceStatements(updateStatements)),\n ], INFERRED_TYPE, null, contentQueriesFnName);\n}\n\nclass HtmlParser extends Parser$1 {\n constructor() {\n super(getHtmlTagDefinition);\n }\n parse(source, url, options) {\n return super.parse(source, url, options);\n }\n}\n\nconst PROPERTY_PARTS_SEPARATOR = '.';\nconst ATTRIBUTE_PREFIX = 'attr';\nconst CLASS_PREFIX = 'class';\nconst STYLE_PREFIX = 'style';\nconst TEMPLATE_ATTR_PREFIX$1 = '*';\nconst ANIMATE_PROP_PREFIX = 'animate-';\n/**\n * Parses bindings in templates and in the directive host area.\n */\nclass BindingParser {\n _exprParser;\n _interpolationConfig;\n _schemaRegistry;\n errors;\n constructor(_exprParser, _interpolationConfig, _schemaRegistry, errors) {\n this._exprParser = _exprParser;\n this._interpolationConfig = _interpolationConfig;\n this._schemaRegistry = _schemaRegistry;\n this.errors = errors;\n }\n get interpolationConfig() {\n return this._interpolationConfig;\n }\n createBoundHostProperties(properties, sourceSpan) {\n const boundProps = [];\n for (const propName of Object.keys(properties)) {\n const expression = properties[propName];\n if (typeof expression === 'string') {\n this.parsePropertyBinding(propName, expression, true, false, sourceSpan, sourceSpan.start.offset, undefined, [], \n // Use the `sourceSpan` for `keySpan`. This isn't really accurate, but neither is the\n // sourceSpan, as it represents the sourceSpan of the host itself rather than the\n // source of the host binding (which doesn't exist in the template). Regardless,\n // neither of these values are used in Ivy but are only here to satisfy the function\n // signature. This should likely be refactored in the future so that `sourceSpan`\n // isn't being used inaccurately.\n boundProps, sourceSpan);\n }\n else {\n this._reportError(`Value of the host property binding \"${propName}\" needs to be a string representing an expression but got \"${expression}\" (${typeof expression})`, sourceSpan);\n }\n }\n return boundProps;\n }\n createDirectiveHostEventAsts(hostListeners, sourceSpan) {\n const targetEvents = [];\n for (const propName of Object.keys(hostListeners)) {\n const expression = hostListeners[propName];\n if (typeof expression === 'string') {\n // Use the `sourceSpan` for `keySpan` and `handlerSpan`. This isn't really accurate, but\n // neither is the `sourceSpan`, as it represents the `sourceSpan` of the host itself\n // rather than the source of the host binding (which doesn't exist in the template).\n // Regardless, neither of these values are used in Ivy but are only here to satisfy the\n // function signature. This should likely be refactored in the future so that `sourceSpan`\n // isn't being used inaccurately.\n this.parseEvent(propName, expression, \n /* isAssignmentEvent */ false, sourceSpan, sourceSpan, [], targetEvents, sourceSpan);\n }\n else {\n this._reportError(`Value of the host listener \"${propName}\" needs to be a string representing an expression but got \"${expression}\" (${typeof expression})`, sourceSpan);\n }\n }\n return targetEvents;\n }\n parseInterpolation(value, sourceSpan, interpolatedTokens) {\n const sourceInfo = sourceSpan.start.toString();\n const absoluteOffset = sourceSpan.fullStart.offset;\n try {\n const ast = this._exprParser.parseInterpolation(value, sourceInfo, absoluteOffset, interpolatedTokens, this._interpolationConfig);\n if (ast)\n this._reportExpressionParserErrors(ast.errors, sourceSpan);\n return ast;\n }\n catch (e) {\n this._reportError(`${e}`, sourceSpan);\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, absoluteOffset);\n }\n }\n /**\n * Similar to `parseInterpolation`, but treats the provided string as a single expression\n * element that would normally appear within the interpolation prefix and suffix (`{{` and `}}`).\n * This is used for parsing the switch expression in ICUs.\n */\n parseInterpolationExpression(expression, sourceSpan) {\n const sourceInfo = sourceSpan.start.toString();\n const absoluteOffset = sourceSpan.start.offset;\n try {\n const ast = this._exprParser.parseInterpolationExpression(expression, sourceInfo, absoluteOffset);\n if (ast)\n this._reportExpressionParserErrors(ast.errors, sourceSpan);\n return ast;\n }\n catch (e) {\n this._reportError(`${e}`, sourceSpan);\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, absoluteOffset);\n }\n }\n /**\n * Parses the bindings in a microsyntax expression, and converts them to\n * `ParsedProperty` or `ParsedVariable`.\n *\n * @param tplKey template binding name\n * @param tplValue template binding value\n * @param sourceSpan span of template binding relative to entire the template\n * @param absoluteValueOffset start of the tplValue relative to the entire template\n * @param targetMatchableAttrs potential attributes to match in the template\n * @param targetProps target property bindings in the template\n * @param targetVars target variables in the template\n */\n parseInlineTemplateBinding(tplKey, tplValue, sourceSpan, absoluteValueOffset, targetMatchableAttrs, targetProps, targetVars, isIvyAst) {\n const absoluteKeyOffset = sourceSpan.start.offset + TEMPLATE_ATTR_PREFIX$1.length;\n const bindings = this._parseTemplateBindings(tplKey, tplValue, sourceSpan, absoluteKeyOffset, absoluteValueOffset);\n for (const binding of bindings) {\n // sourceSpan is for the entire HTML attribute. bindingSpan is for a particular\n // binding within the microsyntax expression so it's more narrow than sourceSpan.\n const bindingSpan = moveParseSourceSpan(sourceSpan, binding.sourceSpan);\n const key = binding.key.source;\n const keySpan = moveParseSourceSpan(sourceSpan, binding.key.span);\n if (binding instanceof VariableBinding) {\n const value = binding.value ? binding.value.source : '$implicit';\n const valueSpan = binding.value\n ? moveParseSourceSpan(sourceSpan, binding.value.span)\n : undefined;\n targetVars.push(new ParsedVariable(key, value, bindingSpan, keySpan, valueSpan));\n }\n else if (binding.value) {\n const srcSpan = isIvyAst ? bindingSpan : sourceSpan;\n const valueSpan = moveParseSourceSpan(sourceSpan, binding.value.ast.sourceSpan);\n this._parsePropertyAst(key, binding.value, false, srcSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);\n }\n else {\n targetMatchableAttrs.push([key, '' /* value */]);\n // Since this is a literal attribute with no RHS, source span should be\n // just the key span.\n this.parseLiteralAttr(key, null /* value */, keySpan, absoluteValueOffset, undefined /* valueSpan */, targetMatchableAttrs, targetProps, keySpan);\n }\n }\n }\n /**\n * Parses the bindings in a microsyntax expression, e.g.\n * ```html\n * <tag *tplKey=\"let value1 = prop; let value2 = localVar\">\n * ```\n *\n * @param tplKey template binding name\n * @param tplValue template binding value\n * @param sourceSpan span of template binding relative to entire the template\n * @param absoluteKeyOffset start of the `tplKey`\n * @param absoluteValueOffset start of the `tplValue`\n */\n _parseTemplateBindings(tplKey, tplValue, sourceSpan, absoluteKeyOffset, absoluteValueOffset) {\n const sourceInfo = sourceSpan.start.toString();\n try {\n const bindingsResult = this._exprParser.parseTemplateBindings(tplKey, tplValue, sourceInfo, absoluteKeyOffset, absoluteValueOffset);\n this._reportExpressionParserErrors(bindingsResult.errors, sourceSpan);\n bindingsResult.warnings.forEach((warning) => {\n this._reportError(warning, sourceSpan, ParseErrorLevel.WARNING);\n });\n return bindingsResult.templateBindings;\n }\n catch (e) {\n this._reportError(`${e}`, sourceSpan);\n return [];\n }\n }\n parseLiteralAttr(name, value, sourceSpan, absoluteOffset, valueSpan, targetMatchableAttrs, targetProps, keySpan) {\n if (isAnimationLabel(name)) {\n name = name.substring(1);\n if (keySpan !== undefined) {\n keySpan = moveParseSourceSpan(keySpan, new AbsoluteSourceSpan(keySpan.start.offset + 1, keySpan.end.offset));\n }\n if (value) {\n this._reportError(`Assigning animation triggers via @prop=\"exp\" attributes with an expression is invalid.` +\n ` Use property bindings (e.g. [@prop]=\"exp\") or use an attribute without a value (e.g. @prop) instead.`, sourceSpan, ParseErrorLevel.ERROR);\n }\n this._parseAnimation(name, value, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps);\n }\n else {\n targetProps.push(new ParsedProperty(name, this._exprParser.wrapLiteralPrimitive(value, '', absoluteOffset), ParsedPropertyType.LITERAL_ATTR, sourceSpan, keySpan, valueSpan));\n }\n }\n parsePropertyBinding(name, expression, isHost, isPartOfAssignmentBinding, sourceSpan, absoluteOffset, valueSpan, targetMatchableAttrs, targetProps, keySpan) {\n if (name.length === 0) {\n this._reportError(`Property name is missing in binding`, sourceSpan);\n }\n let isAnimationProp = false;\n if (name.startsWith(ANIMATE_PROP_PREFIX)) {\n isAnimationProp = true;\n name = name.substring(ANIMATE_PROP_PREFIX.length);\n if (keySpan !== undefined) {\n keySpan = moveParseSourceSpan(keySpan, new AbsoluteSourceSpan(keySpan.start.offset + ANIMATE_PROP_PREFIX.length, keySpan.end.offset));\n }\n }\n else if (isAnimationLabel(name)) {\n isAnimationProp = true;\n name = name.substring(1);\n if (keySpan !== undefined) {\n keySpan = moveParseSourceSpan(keySpan, new AbsoluteSourceSpan(keySpan.start.offset + 1, keySpan.end.offset));\n }\n }\n if (isAnimationProp) {\n this._parseAnimation(name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps);\n }\n else {\n this._parsePropertyAst(name, this.parseBinding(expression, isHost, valueSpan || sourceSpan, absoluteOffset), isPartOfAssignmentBinding, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);\n }\n }\n parsePropertyInterpolation(name, value, sourceSpan, valueSpan, targetMatchableAttrs, targetProps, keySpan, interpolatedTokens) {\n const expr = this.parseInterpolation(value, valueSpan || sourceSpan, interpolatedTokens);\n if (expr) {\n this._parsePropertyAst(name, expr, false, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);\n return true;\n }\n return false;\n }\n _parsePropertyAst(name, ast, isPartOfAssignmentBinding, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps) {\n targetMatchableAttrs.push([name, ast.source]);\n targetProps.push(new ParsedProperty(name, ast, isPartOfAssignmentBinding ? ParsedPropertyType.TWO_WAY : ParsedPropertyType.DEFAULT, sourceSpan, keySpan, valueSpan));\n }\n _parseAnimation(name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps) {\n if (name.length === 0) {\n this._reportError('Animation trigger is missing', sourceSpan);\n }\n // This will occur when a @trigger is not paired with an expression.\n // For animations it is valid to not have an expression since */void\n // states will be applied by angular when the element is attached/detached\n const ast = this.parseBinding(expression || 'undefined', false, valueSpan || sourceSpan, absoluteOffset);\n targetMatchableAttrs.push([name, ast.source]);\n targetProps.push(new ParsedProperty(name, ast, ParsedPropertyType.ANIMATION, sourceSpan, keySpan, valueSpan));\n }\n parseBinding(value, isHostBinding, sourceSpan, absoluteOffset) {\n const sourceInfo = ((sourceSpan && sourceSpan.start) || '(unknown)').toString();\n try {\n const ast = isHostBinding\n ? this._exprParser.parseSimpleBinding(value, sourceInfo, absoluteOffset, this._interpolationConfig)\n : this._exprParser.parseBinding(value, sourceInfo, absoluteOffset, this._interpolationConfig);\n if (ast)\n this._reportExpressionParserErrors(ast.errors, sourceSpan);\n return ast;\n }\n catch (e) {\n this._reportError(`${e}`, sourceSpan);\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, absoluteOffset);\n }\n }\n createBoundElementProperty(elementSelector, boundProp, skipValidation = false, mapPropertyName = true) {\n if (boundProp.isAnimation) {\n return new BoundElementProperty(boundProp.name, BindingType.Animation, SecurityContext.NONE, boundProp.expression, null, boundProp.sourceSpan, boundProp.keySpan, boundProp.valueSpan);\n }\n let unit = null;\n let bindingType = undefined;\n let boundPropertyName = null;\n const parts = boundProp.name.split(PROPERTY_PARTS_SEPARATOR);\n let securityContexts = undefined;\n // Check for special cases (prefix style, attr, class)\n if (parts.length > 1) {\n if (parts[0] == ATTRIBUTE_PREFIX) {\n boundPropertyName = parts.slice(1).join(PROPERTY_PARTS_SEPARATOR);\n if (!skipValidation) {\n this._validatePropertyOrAttributeName(boundPropertyName, boundProp.sourceSpan, true);\n }\n securityContexts = calcPossibleSecurityContexts(this._schemaRegistry, elementSelector, boundPropertyName, true);\n const nsSeparatorIdx = boundPropertyName.indexOf(':');\n if (nsSeparatorIdx > -1) {\n const ns = boundPropertyName.substring(0, nsSeparatorIdx);\n const name = boundPropertyName.substring(nsSeparatorIdx + 1);\n boundPropertyName = mergeNsAndName(ns, name);\n }\n bindingType = BindingType.Attribute;\n }\n else if (parts[0] == CLASS_PREFIX) {\n boundPropertyName = parts[1];\n bindingType = BindingType.Class;\n securityContexts = [SecurityContext.NONE];\n }\n else if (parts[0] == STYLE_PREFIX) {\n unit = parts.length > 2 ? parts[2] : null;\n boundPropertyName = parts[1];\n bindingType = BindingType.Style;\n securityContexts = [SecurityContext.STYLE];\n }\n }\n // If not a special case, use the full property name\n if (boundPropertyName === null) {\n const mappedPropName = this._schemaRegistry.getMappedPropName(boundProp.name);\n boundPropertyName = mapPropertyName ? mappedPropName : boundProp.name;\n securityContexts = calcPossibleSecurityContexts(this._schemaRegistry, elementSelector, mappedPropName, false);\n bindingType =\n boundProp.type === ParsedPropertyType.TWO_WAY ? BindingType.TwoWay : BindingType.Property;\n if (!skipValidation) {\n this._validatePropertyOrAttributeName(mappedPropName, boundProp.sourceSpan, false);\n }\n }\n return new BoundElementProperty(boundPropertyName, bindingType, securityContexts[0], boundProp.expression, unit, boundProp.sourceSpan, boundProp.keySpan, boundProp.valueSpan);\n }\n // TODO: keySpan should be required but was made optional to avoid changing VE parser.\n parseEvent(name, expression, isAssignmentEvent, sourceSpan, handlerSpan, targetMatchableAttrs, targetEvents, keySpan) {\n if (name.length === 0) {\n this._reportError(`Event name is missing in binding`, sourceSpan);\n }\n if (isAnimationLabel(name)) {\n name = name.slice(1);\n if (keySpan !== undefined) {\n keySpan = moveParseSourceSpan(keySpan, new AbsoluteSourceSpan(keySpan.start.offset + 1, keySpan.end.offset));\n }\n this._parseAnimationEvent(name, expression, sourceSpan, handlerSpan, targetEvents, keySpan);\n }\n else {\n this._parseRegularEvent(name, expression, isAssignmentEvent, sourceSpan, handlerSpan, targetMatchableAttrs, targetEvents, keySpan);\n }\n }\n calcPossibleSecurityContexts(selector, propName, isAttribute) {\n const prop = this._schemaRegistry.getMappedPropName(propName);\n return calcPossibleSecurityContexts(this._schemaRegistry, selector, prop, isAttribute);\n }\n _parseAnimationEvent(name, expression, sourceSpan, handlerSpan, targetEvents, keySpan) {\n const matches = splitAtPeriod(name, [name, '']);\n const eventName = matches[0];\n const phase = matches[1].toLowerCase();\n const ast = this._parseAction(expression, handlerSpan);\n targetEvents.push(new ParsedEvent(eventName, phase, ParsedEventType.Animation, ast, sourceSpan, handlerSpan, keySpan));\n if (eventName.length === 0) {\n this._reportError(`Animation event name is missing in binding`, sourceSpan);\n }\n if (phase) {\n if (phase !== 'start' && phase !== 'done') {\n this._reportError(`The provided animation output phase value \"${phase}\" for \"@${eventName}\" is not supported (use start or done)`, sourceSpan);\n }\n }\n else {\n this._reportError(`The animation trigger output event (@${eventName}) is missing its phase value name (start or done are currently supported)`, sourceSpan);\n }\n }\n _parseRegularEvent(name, expression, isAssignmentEvent, sourceSpan, handlerSpan, targetMatchableAttrs, targetEvents, keySpan) {\n // long format: 'target: eventName'\n const [target, eventName] = splitAtColon(name, [null, name]);\n const prevErrorCount = this.errors.length;\n const ast = this._parseAction(expression, handlerSpan);\n const isValid = this.errors.length === prevErrorCount;\n targetMatchableAttrs.push([name, ast.source]);\n // Don't try to validate assignment events if there were other\n // parsing errors to avoid adding more noise to the error logs.\n if (isAssignmentEvent && isValid && !this._isAllowedAssignmentEvent(ast)) {\n this._reportError('Unsupported expression in a two-way binding', sourceSpan);\n }\n targetEvents.push(new ParsedEvent(eventName, target, isAssignmentEvent ? ParsedEventType.TwoWay : ParsedEventType.Regular, ast, sourceSpan, handlerSpan, keySpan));\n // Don't detect directives for event names for now,\n // so don't add the event name to the matchableAttrs\n }\n _parseAction(value, sourceSpan) {\n const sourceInfo = ((sourceSpan && sourceSpan.start) || '(unknown').toString();\n const absoluteOffset = sourceSpan && sourceSpan.start ? sourceSpan.start.offset : 0;\n try {\n const ast = this._exprParser.parseAction(value, sourceInfo, absoluteOffset, this._interpolationConfig);\n if (ast) {\n this._reportExpressionParserErrors(ast.errors, sourceSpan);\n }\n if (!ast || ast.ast instanceof EmptyExpr$1) {\n this._reportError(`Empty expressions are not allowed`, sourceSpan);\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, absoluteOffset);\n }\n return ast;\n }\n catch (e) {\n this._reportError(`${e}`, sourceSpan);\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, absoluteOffset);\n }\n }\n _reportError(message, sourceSpan, level = ParseErrorLevel.ERROR, relatedError) {\n this.errors.push(new ParseError(sourceSpan, message, level, relatedError));\n }\n _reportExpressionParserErrors(errors, sourceSpan) {\n for (const error of errors) {\n this._reportError(error.message, sourceSpan, undefined, error);\n }\n }\n /**\n * @param propName the name of the property / attribute\n * @param sourceSpan\n * @param isAttr true when binding to an attribute\n */\n _validatePropertyOrAttributeName(propName, sourceSpan, isAttr) {\n const report = isAttr\n ? this._schemaRegistry.validateAttribute(propName)\n : this._schemaRegistry.validateProperty(propName);\n if (report.error) {\n this._reportError(report.msg, sourceSpan, ParseErrorLevel.ERROR);\n }\n }\n /**\n * Returns whether a parsed AST is allowed to be used within the event side of a two-way binding.\n * @param ast Parsed AST to be checked.\n */\n _isAllowedAssignmentEvent(ast) {\n if (ast instanceof ASTWithSource) {\n return this._isAllowedAssignmentEvent(ast.ast);\n }\n if (ast instanceof NonNullAssert) {\n return this._isAllowedAssignmentEvent(ast.expression);\n }\n if (ast instanceof Call &&\n ast.args.length === 1 &&\n ast.receiver instanceof PropertyRead &&\n ast.receiver.name === '$any' &&\n ast.receiver.receiver instanceof ImplicitReceiver &&\n !(ast.receiver.receiver instanceof ThisReceiver)) {\n return this._isAllowedAssignmentEvent(ast.args[0]);\n }\n if (ast instanceof PropertyRead || ast instanceof KeyedRead) {\n return true;\n }\n return false;\n }\n}\nclass PipeCollector extends RecursiveAstVisitor {\n pipes = new Map();\n visitPipe(ast, context) {\n this.pipes.set(ast.name, ast);\n ast.exp.visit(this);\n this.visitAll(ast.args, context);\n return null;\n }\n}\nfunction isAnimationLabel(name) {\n return name[0] == '@';\n}\nfunction calcPossibleSecurityContexts(registry, selector, propName, isAttribute) {\n const ctxs = [];\n CssSelector.parse(selector).forEach((selector) => {\n const elementNames = selector.element ? [selector.element] : registry.allKnownElementNames();\n const notElementNames = new Set(selector.notSelectors\n .filter((selector) => selector.isElementSelector())\n .map((selector) => selector.element));\n const possibleElementNames = elementNames.filter((elementName) => !notElementNames.has(elementName));\n ctxs.push(...possibleElementNames.map((elementName) => registry.securityContext(elementName, propName, isAttribute)));\n });\n return ctxs.length === 0 ? [SecurityContext.NONE] : Array.from(new Set(ctxs)).sort();\n}\n/**\n * Compute a new ParseSourceSpan based off an original `sourceSpan` by using\n * absolute offsets from the specified `absoluteSpan`.\n *\n * @param sourceSpan original source span\n * @param absoluteSpan absolute source span to move to\n */\nfunction moveParseSourceSpan(sourceSpan, absoluteSpan) {\n // The difference of two absolute offsets provide the relative offset\n const startDiff = absoluteSpan.start - sourceSpan.start.offset;\n const endDiff = absoluteSpan.end - sourceSpan.end.offset;\n return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);\n}\n\n// Some of the code comes from WebComponents.JS\n// https://github.com/webcomponents/webcomponentsjs/blob/master/src/HTMLImports/path.js\nfunction isStyleUrlResolvable(url) {\n if (url == null || url.length === 0 || url[0] == '/')\n return false;\n const schemeMatch = url.match(URL_WITH_SCHEMA_REGEXP);\n return schemeMatch === null || schemeMatch[1] == 'package' || schemeMatch[1] == 'asset';\n}\nconst URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;\n\nconst NG_CONTENT_SELECT_ATTR = 'select';\nconst LINK_ELEMENT = 'link';\nconst LINK_STYLE_REL_ATTR = 'rel';\nconst LINK_STYLE_HREF_ATTR = 'href';\nconst LINK_STYLE_REL_VALUE = 'stylesheet';\nconst STYLE_ELEMENT = 'style';\nconst SCRIPT_ELEMENT = 'script';\nconst NG_NON_BINDABLE_ATTR = 'ngNonBindable';\nconst NG_PROJECT_AS = 'ngProjectAs';\nfunction preparseElement(ast) {\n let selectAttr = null;\n let hrefAttr = null;\n let relAttr = null;\n let nonBindable = false;\n let projectAs = '';\n ast.attrs.forEach((attr) => {\n const lcAttrName = attr.name.toLowerCase();\n if (lcAttrName == NG_CONTENT_SELECT_ATTR) {\n selectAttr = attr.value;\n }\n else if (lcAttrName == LINK_STYLE_HREF_ATTR) {\n hrefAttr = attr.value;\n }\n else if (lcAttrName == LINK_STYLE_REL_ATTR) {\n relAttr = attr.value;\n }\n else if (attr.name == NG_NON_BINDABLE_ATTR) {\n nonBindable = true;\n }\n else if (attr.name == NG_PROJECT_AS) {\n if (attr.value.length > 0) {\n projectAs = attr.value;\n }\n }\n });\n selectAttr = normalizeNgContentSelect(selectAttr);\n const nodeName = ast.name.toLowerCase();\n let type = PreparsedElementType.OTHER;\n if (isNgContent(nodeName)) {\n type = PreparsedElementType.NG_CONTENT;\n }\n else if (nodeName == STYLE_ELEMENT) {\n type = PreparsedElementType.STYLE;\n }\n else if (nodeName == SCRIPT_ELEMENT) {\n type = PreparsedElementType.SCRIPT;\n }\n else if (nodeName == LINK_ELEMENT && relAttr == LINK_STYLE_REL_VALUE) {\n type = PreparsedElementType.STYLESHEET;\n }\n return new PreparsedElement(type, selectAttr, hrefAttr, nonBindable, projectAs);\n}\nvar PreparsedElementType;\n(function (PreparsedElementType) {\n PreparsedElementType[PreparsedElementType[\"NG_CONTENT\"] = 0] = \"NG_CONTENT\";\n PreparsedElementType[PreparsedElementType[\"STYLE\"] = 1] = \"STYLE\";\n PreparsedElementType[PreparsedElementType[\"STYLESHEET\"] = 2] = \"STYLESHEET\";\n PreparsedElementType[PreparsedElementType[\"SCRIPT\"] = 3] = \"SCRIPT\";\n PreparsedElementType[PreparsedElementType[\"OTHER\"] = 4] = \"OTHER\";\n})(PreparsedElementType || (PreparsedElementType = {}));\nclass PreparsedElement {\n type;\n selectAttr;\n hrefAttr;\n nonBindable;\n projectAs;\n constructor(type, selectAttr, hrefAttr, nonBindable, projectAs) {\n this.type = type;\n this.selectAttr = selectAttr;\n this.hrefAttr = hrefAttr;\n this.nonBindable = nonBindable;\n this.projectAs = projectAs;\n }\n}\nfunction normalizeNgContentSelect(selectAttr) {\n if (selectAttr === null || selectAttr.length === 0) {\n return '*';\n }\n return selectAttr;\n}\n\n/** Pattern for the expression in a for loop block. */\nconst FOR_LOOP_EXPRESSION_PATTERN = /^\\s*([0-9A-Za-z_$]*)\\s+of\\s+([\\S\\s]*)/;\n/** Pattern for the tracking expression in a for loop block. */\nconst FOR_LOOP_TRACK_PATTERN = /^track\\s+([\\S\\s]*)/;\n/** Pattern for the `as` expression in a conditional block. */\nconst CONDITIONAL_ALIAS_PATTERN = /^(as\\s)+(.*)/;\n/** Pattern used to identify an `else if` block. */\nconst ELSE_IF_PATTERN = /^else[^\\S\\r\\n]+if/;\n/** Pattern used to identify a `let` parameter. */\nconst FOR_LOOP_LET_PATTERN = /^let\\s+([\\S\\s]*)/;\n/**\n * Pattern to group a string into leading whitespace, non whitespace, and trailing whitespace.\n * Useful for getting the variable name span when a span can contain leading and trailing space.\n */\nconst CHARACTERS_IN_SURROUNDING_WHITESPACE_PATTERN = /(\\s*)(\\S+)(\\s*)/;\n/** Names of variables that are allowed to be used in the `let` expression of a `for` loop. */\nconst ALLOWED_FOR_LOOP_LET_VARIABLES = new Set([\n '$index',\n '$first',\n '$last',\n '$even',\n '$odd',\n '$count',\n]);\n/**\n * Predicate function that determines if a block with\n * a specific name cam be connected to a `for` block.\n */\nfunction isConnectedForLoopBlock(name) {\n return name === 'empty';\n}\n/**\n * Predicate function that determines if a block with\n * a specific name cam be connected to an `if` block.\n */\nfunction isConnectedIfLoopBlock(name) {\n return name === 'else' || ELSE_IF_PATTERN.test(name);\n}\n/** Creates an `if` loop block from an HTML AST node. */\nfunction createIfBlock(ast, connectedBlocks, visitor, bindingParser) {\n const errors = validateIfConnectedBlocks(connectedBlocks);\n const branches = [];\n const mainBlockParams = parseConditionalBlockParameters(ast, errors, bindingParser);\n if (mainBlockParams !== null) {\n branches.push(new IfBlockBranch(mainBlockParams.expression, visitAll(visitor, ast.children, ast.children), mainBlockParams.expressionAlias, ast.sourceSpan, ast.startSourceSpan, ast.endSourceSpan, ast.nameSpan, ast.i18n));\n }\n for (const block of connectedBlocks) {\n if (ELSE_IF_PATTERN.test(block.name)) {\n const params = parseConditionalBlockParameters(block, errors, bindingParser);\n if (params !== null) {\n const children = visitAll(visitor, block.children, block.children);\n branches.push(new IfBlockBranch(params.expression, children, params.expressionAlias, block.sourceSpan, block.startSourceSpan, block.endSourceSpan, block.nameSpan, block.i18n));\n }\n }\n else if (block.name === 'else') {\n const children = visitAll(visitor, block.children, block.children);\n branches.push(new IfBlockBranch(null, children, null, block.sourceSpan, block.startSourceSpan, block.endSourceSpan, block.nameSpan, block.i18n));\n }\n }\n // The outer IfBlock should have a span that encapsulates all branches.\n const ifBlockStartSourceSpan = branches.length > 0 ? branches[0].startSourceSpan : ast.startSourceSpan;\n const ifBlockEndSourceSpan = branches.length > 0 ? branches[branches.length - 1].endSourceSpan : ast.endSourceSpan;\n let wholeSourceSpan = ast.sourceSpan;\n const lastBranch = branches[branches.length - 1];\n if (lastBranch !== undefined) {\n wholeSourceSpan = new ParseSourceSpan(ifBlockStartSourceSpan.start, lastBranch.sourceSpan.end);\n }\n return {\n node: new IfBlock(branches, wholeSourceSpan, ast.startSourceSpan, ifBlockEndSourceSpan, ast.nameSpan),\n errors,\n };\n}\n/** Creates a `for` loop block from an HTML AST node. */\nfunction createForLoop(ast, connectedBlocks, visitor, bindingParser) {\n const errors = [];\n const params = parseForLoopParameters(ast, errors, bindingParser);\n let node = null;\n let empty = null;\n for (const block of connectedBlocks) {\n if (block.name === 'empty') {\n if (empty !== null) {\n errors.push(new ParseError(block.sourceSpan, '@for loop can only have one @empty block'));\n }\n else if (block.parameters.length > 0) {\n errors.push(new ParseError(block.sourceSpan, '@empty block cannot have parameters'));\n }\n else {\n empty = new ForLoopBlockEmpty(visitAll(visitor, block.children, block.children), block.sourceSpan, block.startSourceSpan, block.endSourceSpan, block.nameSpan, block.i18n);\n }\n }\n else {\n errors.push(new ParseError(block.sourceSpan, `Unrecognized @for loop block \"${block.name}\"`));\n }\n }\n if (params !== null) {\n if (params.trackBy === null) {\n // TODO: We should not fail here, and instead try to produce some AST for the language\n // service.\n errors.push(new ParseError(ast.startSourceSpan, '@for loop must have a \"track\" expression'));\n }\n else {\n // The `for` block has a main span that includes the `empty` branch. For only the span of the\n // main `for` body, use `mainSourceSpan`.\n const endSpan = empty?.endSourceSpan ?? ast.endSourceSpan;\n const sourceSpan = new ParseSourceSpan(ast.sourceSpan.start, endSpan?.end ?? ast.sourceSpan.end);\n node = new ForLoopBlock(params.itemName, params.expression, params.trackBy.expression, params.trackBy.keywordSpan, params.context, visitAll(visitor, ast.children, ast.children), empty, sourceSpan, ast.sourceSpan, ast.startSourceSpan, endSpan, ast.nameSpan, ast.i18n);\n }\n }\n return { node, errors };\n}\n/** Creates a switch block from an HTML AST node. */\nfunction createSwitchBlock(ast, visitor, bindingParser) {\n const errors = validateSwitchBlock(ast);\n const primaryExpression = ast.parameters.length > 0\n ? parseBlockParameterToBinding(ast.parameters[0], bindingParser)\n : bindingParser.parseBinding('', false, ast.sourceSpan, 0);\n const cases = [];\n const unknownBlocks = [];\n let defaultCase = null;\n // Here we assume that all the blocks are valid given that we validated them above.\n for (const node of ast.children) {\n if (!(node instanceof Block)) {\n continue;\n }\n if ((node.name !== 'case' || node.parameters.length === 0) && node.name !== 'default') {\n unknownBlocks.push(new UnknownBlock(node.name, node.sourceSpan, node.nameSpan));\n continue;\n }\n const expression = node.name === 'case' ? parseBlockParameterToBinding(node.parameters[0], bindingParser) : null;\n const ast = new SwitchBlockCase(expression, visitAll(visitor, node.children, node.children), node.sourceSpan, node.startSourceSpan, node.endSourceSpan, node.nameSpan, node.i18n);\n if (expression === null) {\n defaultCase = ast;\n }\n else {\n cases.push(ast);\n }\n }\n // Ensure that the default case is last in the array.\n if (defaultCase !== null) {\n cases.push(defaultCase);\n }\n return {\n node: new SwitchBlock(primaryExpression, cases, unknownBlocks, ast.sourceSpan, ast.startSourceSpan, ast.endSourceSpan, ast.nameSpan),\n errors,\n };\n}\n/** Parses the parameters of a `for` loop block. */\nfunction parseForLoopParameters(block, errors, bindingParser) {\n if (block.parameters.length === 0) {\n errors.push(new ParseError(block.startSourceSpan, '@for loop does not have an expression'));\n return null;\n }\n const [expressionParam, ...secondaryParams] = block.parameters;\n const match = stripOptionalParentheses(expressionParam, errors)?.match(FOR_LOOP_EXPRESSION_PATTERN);\n if (!match || match[2].trim().length === 0) {\n errors.push(new ParseError(expressionParam.sourceSpan, 'Cannot parse expression. @for loop expression must match the pattern \"<identifier> of <expression>\"'));\n return null;\n }\n const [, itemName, rawExpression] = match;\n if (ALLOWED_FOR_LOOP_LET_VARIABLES.has(itemName)) {\n errors.push(new ParseError(expressionParam.sourceSpan, `@for loop item name cannot be one of ${Array.from(ALLOWED_FOR_LOOP_LET_VARIABLES).join(', ')}.`));\n }\n // `expressionParam.expression` contains the variable declaration and the expression of the\n // for...of statement, i.e. 'user of users' The variable of a ForOfStatement is _only_ the \"const\n // user\" part and does not include \"of x\".\n const variableName = expressionParam.expression.split(' ')[0];\n const variableSpan = new ParseSourceSpan(expressionParam.sourceSpan.start, expressionParam.sourceSpan.start.moveBy(variableName.length));\n const result = {\n itemName: new Variable(itemName, '$implicit', variableSpan, variableSpan),\n trackBy: null,\n expression: parseBlockParameterToBinding(expressionParam, bindingParser, rawExpression),\n context: Array.from(ALLOWED_FOR_LOOP_LET_VARIABLES, (variableName) => {\n // Give ambiently-available context variables empty spans at the end of\n // the start of the `for` block, since they are not explicitly defined.\n const emptySpanAfterForBlockStart = new ParseSourceSpan(block.startSourceSpan.end, block.startSourceSpan.end);\n return new Variable(variableName, variableName, emptySpanAfterForBlockStart, emptySpanAfterForBlockStart);\n }),\n };\n for (const param of secondaryParams) {\n const letMatch = param.expression.match(FOR_LOOP_LET_PATTERN);\n if (letMatch !== null) {\n const variablesSpan = new ParseSourceSpan(param.sourceSpan.start.moveBy(letMatch[0].length - letMatch[1].length), param.sourceSpan.end);\n parseLetParameter(param.sourceSpan, letMatch[1], variablesSpan, itemName, result.context, errors);\n continue;\n }\n const trackMatch = param.expression.match(FOR_LOOP_TRACK_PATTERN);\n if (trackMatch !== null) {\n if (result.trackBy !== null) {\n errors.push(new ParseError(param.sourceSpan, '@for loop can only have one \"track\" expression'));\n }\n else {\n const expression = parseBlockParameterToBinding(param, bindingParser, trackMatch[1]);\n if (expression.ast instanceof EmptyExpr$1) {\n errors.push(new ParseError(block.startSourceSpan, '@for loop must have a \"track\" expression'));\n }\n const keywordSpan = new ParseSourceSpan(param.sourceSpan.start, param.sourceSpan.start.moveBy('track'.length));\n result.trackBy = { expression, keywordSpan };\n }\n continue;\n }\n errors.push(new ParseError(param.sourceSpan, `Unrecognized @for loop parameter \"${param.expression}\"`));\n }\n return result;\n}\n/** Parses the `let` parameter of a `for` loop block. */\nfunction parseLetParameter(sourceSpan, expression, span, loopItemName, context, errors) {\n const parts = expression.split(',');\n let startSpan = span.start;\n for (const part of parts) {\n const expressionParts = part.split('=');\n const name = expressionParts.length === 2 ? expressionParts[0].trim() : '';\n const variableName = expressionParts.length === 2 ? expressionParts[1].trim() : '';\n if (name.length === 0 || variableName.length === 0) {\n errors.push(new ParseError(sourceSpan, `Invalid @for loop \"let\" parameter. Parameter should match the pattern \"<name> = <variable name>\"`));\n }\n else if (!ALLOWED_FOR_LOOP_LET_VARIABLES.has(variableName)) {\n errors.push(new ParseError(sourceSpan, `Unknown \"let\" parameter variable \"${variableName}\". The allowed variables are: ${Array.from(ALLOWED_FOR_LOOP_LET_VARIABLES).join(', ')}`));\n }\n else if (name === loopItemName) {\n errors.push(new ParseError(sourceSpan, `Invalid @for loop \"let\" parameter. Variable cannot be called \"${loopItemName}\"`));\n }\n else if (context.some((v) => v.name === name)) {\n errors.push(new ParseError(sourceSpan, `Duplicate \"let\" parameter variable \"${variableName}\"`));\n }\n else {\n const [, keyLeadingWhitespace, keyName] = expressionParts[0].match(CHARACTERS_IN_SURROUNDING_WHITESPACE_PATTERN) ?? [];\n const keySpan = keyLeadingWhitespace !== undefined && expressionParts.length === 2\n ? new ParseSourceSpan(\n /* strip leading spaces */\n startSpan.moveBy(keyLeadingWhitespace.length), \n /* advance to end of the variable name */\n startSpan.moveBy(keyLeadingWhitespace.length + keyName.length))\n : span;\n let valueSpan = undefined;\n if (expressionParts.length === 2) {\n const [, valueLeadingWhitespace, implicit] = expressionParts[1].match(CHARACTERS_IN_SURROUNDING_WHITESPACE_PATTERN) ?? [];\n valueSpan =\n valueLeadingWhitespace !== undefined\n ? new ParseSourceSpan(startSpan.moveBy(expressionParts[0].length + 1 + valueLeadingWhitespace.length), startSpan.moveBy(expressionParts[0].length + 1 + valueLeadingWhitespace.length + implicit.length))\n : undefined;\n }\n const sourceSpan = new ParseSourceSpan(keySpan.start, valueSpan?.end ?? keySpan.end);\n context.push(new Variable(name, variableName, sourceSpan, keySpan, valueSpan));\n }\n startSpan = startSpan.moveBy(part.length + 1 /* add 1 to move past the comma */);\n }\n}\n/**\n * Checks that the shape of the blocks connected to an\n * `@if` block is correct. Returns an array of errors.\n */\nfunction validateIfConnectedBlocks(connectedBlocks) {\n const errors = [];\n let hasElse = false;\n for (let i = 0; i < connectedBlocks.length; i++) {\n const block = connectedBlocks[i];\n if (block.name === 'else') {\n if (hasElse) {\n errors.push(new ParseError(block.startSourceSpan, 'Conditional can only have one @else block'));\n }\n else if (connectedBlocks.length > 1 && i < connectedBlocks.length - 1) {\n errors.push(new ParseError(block.startSourceSpan, '@else block must be last inside the conditional'));\n }\n else if (block.parameters.length > 0) {\n errors.push(new ParseError(block.startSourceSpan, '@else block cannot have parameters'));\n }\n hasElse = true;\n }\n else if (!ELSE_IF_PATTERN.test(block.name)) {\n errors.push(new ParseError(block.startSourceSpan, `Unrecognized conditional block @${block.name}`));\n }\n }\n return errors;\n}\n/** Checks that the shape of a `switch` block is valid. Returns an array of errors. */\nfunction validateSwitchBlock(ast) {\n const errors = [];\n let hasDefault = false;\n if (ast.parameters.length !== 1) {\n errors.push(new ParseError(ast.startSourceSpan, '@switch block must have exactly one parameter'));\n return errors;\n }\n for (const node of ast.children) {\n // Skip over comments and empty text nodes inside the switch block.\n // Empty text nodes can be used for formatting while comments don't affect the runtime.\n if (node instanceof Comment ||\n (node instanceof Text && node.value.trim().length === 0)) {\n continue;\n }\n if (!(node instanceof Block) || (node.name !== 'case' && node.name !== 'default')) {\n errors.push(new ParseError(node.sourceSpan, '@switch block can only contain @case and @default blocks'));\n continue;\n }\n if (node.name === 'default') {\n if (hasDefault) {\n errors.push(new ParseError(node.startSourceSpan, '@switch block can only have one @default block'));\n }\n else if (node.parameters.length > 0) {\n errors.push(new ParseError(node.startSourceSpan, '@default block cannot have parameters'));\n }\n hasDefault = true;\n }\n else if (node.name === 'case' && node.parameters.length !== 1) {\n errors.push(new ParseError(node.startSourceSpan, '@case block must have exactly one parameter'));\n }\n }\n return errors;\n}\n/**\n * Parses a block parameter into a binding AST.\n * @param ast Block parameter that should be parsed.\n * @param bindingParser Parser that the expression should be parsed with.\n * @param part Specific part of the expression that should be parsed.\n */\nfunction parseBlockParameterToBinding(ast, bindingParser, part) {\n let start;\n let end;\n if (typeof part === 'string') {\n // Note: `lastIndexOf` here should be enough to know the start index of the expression,\n // because we know that it'll be at the end of the param. Ideally we could use the `d`\n // flag when matching via regex and get the index from `match.indices`, but it's unclear\n // if we can use it yet since it's a relatively new feature. See:\n // https://github.com/tc39/proposal-regexp-match-indices\n start = Math.max(0, ast.expression.lastIndexOf(part));\n end = start + part.length;\n }\n else {\n start = 0;\n end = ast.expression.length;\n }\n return bindingParser.parseBinding(ast.expression.slice(start, end), false, ast.sourceSpan, ast.sourceSpan.start.offset + start);\n}\n/** Parses the parameter of a conditional block (`if` or `else if`). */\nfunction parseConditionalBlockParameters(block, errors, bindingParser) {\n if (block.parameters.length === 0) {\n errors.push(new ParseError(block.startSourceSpan, 'Conditional block does not have an expression'));\n return null;\n }\n const expression = parseBlockParameterToBinding(block.parameters[0], bindingParser);\n let expressionAlias = null;\n // Start from 1 since we processed the first parameter already.\n for (let i = 1; i < block.parameters.length; i++) {\n const param = block.parameters[i];\n const aliasMatch = param.expression.match(CONDITIONAL_ALIAS_PATTERN);\n // For now conditionals can only have an `as` parameter.\n // We may want to rework this later if we add more.\n if (aliasMatch === null) {\n errors.push(new ParseError(param.sourceSpan, `Unrecognized conditional parameter \"${param.expression}\"`));\n }\n else if (block.name !== 'if') {\n errors.push(new ParseError(param.sourceSpan, '\"as\" expression is only allowed on the primary @if block'));\n }\n else if (expressionAlias !== null) {\n errors.push(new ParseError(param.sourceSpan, 'Conditional can only have one \"as\" expression'));\n }\n else {\n const name = aliasMatch[2].trim();\n const variableStart = param.sourceSpan.start.moveBy(aliasMatch[1].length);\n const variableSpan = new ParseSourceSpan(variableStart, variableStart.moveBy(name.length));\n expressionAlias = new Variable(name, name, variableSpan, variableSpan);\n }\n }\n return { expression, expressionAlias };\n}\n/** Strips optional parentheses around from a control from expression parameter. */\nfunction stripOptionalParentheses(param, errors) {\n const expression = param.expression;\n const spaceRegex = /^\\s$/;\n let openParens = 0;\n let start = 0;\n let end = expression.length - 1;\n for (let i = 0; i < expression.length; i++) {\n const char = expression[i];\n if (char === '(') {\n start = i + 1;\n openParens++;\n }\n else if (spaceRegex.test(char)) {\n continue;\n }\n else {\n break;\n }\n }\n if (openParens === 0) {\n return expression;\n }\n for (let i = expression.length - 1; i > -1; i--) {\n const char = expression[i];\n if (char === ')') {\n end = i;\n openParens--;\n if (openParens === 0) {\n break;\n }\n }\n else if (spaceRegex.test(char)) {\n continue;\n }\n else {\n break;\n }\n }\n if (openParens !== 0) {\n errors.push(new ParseError(param.sourceSpan, 'Unclosed parentheses in expression'));\n return null;\n }\n return expression.slice(start, end);\n}\n\n/** Pattern for a timing value in a trigger. */\nconst TIME_PATTERN = /^\\d+\\.?\\d*(ms|s)?$/;\n/** Pattern for a separator between keywords in a trigger expression. */\nconst SEPARATOR_PATTERN = /^\\s$/;\n/** Pairs of characters that form syntax that is comma-delimited. */\nconst COMMA_DELIMITED_SYNTAX = new Map([\n [$LBRACE, $RBRACE], // Object literals\n [$LBRACKET, $RBRACKET], // Array literals\n [$LPAREN, $RPAREN], // Function calls\n]);\n/** Possible types of `on` triggers. */\nvar OnTriggerType;\n(function (OnTriggerType) {\n OnTriggerType[\"IDLE\"] = \"idle\";\n OnTriggerType[\"TIMER\"] = \"timer\";\n OnTriggerType[\"INTERACTION\"] = \"interaction\";\n OnTriggerType[\"IMMEDIATE\"] = \"immediate\";\n OnTriggerType[\"HOVER\"] = \"hover\";\n OnTriggerType[\"VIEWPORT\"] = \"viewport\";\n OnTriggerType[\"NEVER\"] = \"never\";\n})(OnTriggerType || (OnTriggerType = {}));\n/** Parses a `when` deferred trigger. */\nfunction parseNeverTrigger({ expression, sourceSpan }, triggers, errors) {\n const neverIndex = expression.indexOf('never');\n const neverSourceSpan = new ParseSourceSpan(sourceSpan.start.moveBy(neverIndex), sourceSpan.start.moveBy(neverIndex + 'never'.length));\n const prefetchSpan = getPrefetchSpan(expression, sourceSpan);\n const hydrateSpan = getHydrateSpan(expression, sourceSpan);\n // This is here just to be safe, we shouldn't enter this function\n // in the first place if a block doesn't have the \"on\" keyword.\n if (neverIndex === -1) {\n errors.push(new ParseError(sourceSpan, `Could not find \"never\" keyword in expression`));\n }\n else {\n trackTrigger('never', triggers, errors, new NeverDeferredTrigger(neverSourceSpan, sourceSpan, prefetchSpan, null, hydrateSpan));\n }\n}\n/** Parses a `when` deferred trigger. */\nfunction parseWhenTrigger({ expression, sourceSpan }, bindingParser, triggers, errors) {\n const whenIndex = expression.indexOf('when');\n const whenSourceSpan = new ParseSourceSpan(sourceSpan.start.moveBy(whenIndex), sourceSpan.start.moveBy(whenIndex + 'when'.length));\n const prefetchSpan = getPrefetchSpan(expression, sourceSpan);\n const hydrateSpan = getHydrateSpan(expression, sourceSpan);\n // This is here just to be safe, we shouldn't enter this function\n // in the first place if a block doesn't have the \"when\" keyword.\n if (whenIndex === -1) {\n errors.push(new ParseError(sourceSpan, `Could not find \"when\" keyword in expression`));\n }\n else {\n const start = getTriggerParametersStart(expression, whenIndex + 1);\n const parsed = bindingParser.parseBinding(expression.slice(start), false, sourceSpan, sourceSpan.start.offset + start);\n trackTrigger('when', triggers, errors, new BoundDeferredTrigger(parsed, sourceSpan, prefetchSpan, whenSourceSpan, hydrateSpan));\n }\n}\n/** Parses an `on` trigger */\nfunction parseOnTrigger({ expression, sourceSpan }, triggers, errors, placeholder) {\n const onIndex = expression.indexOf('on');\n const onSourceSpan = new ParseSourceSpan(sourceSpan.start.moveBy(onIndex), sourceSpan.start.moveBy(onIndex + 'on'.length));\n const prefetchSpan = getPrefetchSpan(expression, sourceSpan);\n const hydrateSpan = getHydrateSpan(expression, sourceSpan);\n // This is here just to be safe, we shouldn't enter this function\n // in the first place if a block doesn't have the \"on\" keyword.\n if (onIndex === -1) {\n errors.push(new ParseError(sourceSpan, `Could not find \"on\" keyword in expression`));\n }\n else {\n const start = getTriggerParametersStart(expression, onIndex + 1);\n const parser = new OnTriggerParser(expression, start, sourceSpan, triggers, errors, expression.startsWith('hydrate')\n ? validateHydrateReferenceBasedTrigger\n : validatePlainReferenceBasedTrigger, placeholder, prefetchSpan, onSourceSpan, hydrateSpan);\n parser.parse();\n }\n}\nfunction getPrefetchSpan(expression, sourceSpan) {\n if (!expression.startsWith('prefetch')) {\n return null;\n }\n return new ParseSourceSpan(sourceSpan.start, sourceSpan.start.moveBy('prefetch'.length));\n}\nfunction getHydrateSpan(expression, sourceSpan) {\n if (!expression.startsWith('hydrate')) {\n return null;\n }\n return new ParseSourceSpan(sourceSpan.start, sourceSpan.start.moveBy('hydrate'.length));\n}\nclass OnTriggerParser {\n expression;\n start;\n span;\n triggers;\n errors;\n validator;\n placeholder;\n prefetchSpan;\n onSourceSpan;\n hydrateSpan;\n index = 0;\n tokens;\n constructor(expression, start, span, triggers, errors, validator, placeholder, prefetchSpan, onSourceSpan, hydrateSpan) {\n this.expression = expression;\n this.start = start;\n this.span = span;\n this.triggers = triggers;\n this.errors = errors;\n this.validator = validator;\n this.placeholder = placeholder;\n this.prefetchSpan = prefetchSpan;\n this.onSourceSpan = onSourceSpan;\n this.hydrateSpan = hydrateSpan;\n this.tokens = new Lexer().tokenize(expression.slice(start));\n }\n parse() {\n while (this.tokens.length > 0 && this.index < this.tokens.length) {\n const token = this.token();\n if (!token.isIdentifier()) {\n this.unexpectedToken(token);\n break;\n }\n // An identifier immediately followed by a comma or the end of\n // the expression cannot have parameters so we can exit early.\n if (this.isFollowedByOrLast($COMMA)) {\n this.consumeTrigger(token, []);\n this.advance();\n }\n else if (this.isFollowedByOrLast($LPAREN)) {\n this.advance(); // Advance to the opening paren.\n const prevErrors = this.errors.length;\n const parameters = this.consumeParameters();\n if (this.errors.length !== prevErrors) {\n break;\n }\n this.consumeTrigger(token, parameters);\n this.advance(); // Advance past the closing paren.\n }\n else if (this.index < this.tokens.length - 1) {\n this.unexpectedToken(this.tokens[this.index + 1]);\n }\n this.advance();\n }\n }\n advance() {\n this.index++;\n }\n isFollowedByOrLast(char) {\n if (this.index === this.tokens.length - 1) {\n return true;\n }\n return this.tokens[this.index + 1].isCharacter(char);\n }\n token() {\n return this.tokens[Math.min(this.index, this.tokens.length - 1)];\n }\n consumeTrigger(identifier, parameters) {\n const triggerNameStartSpan = this.span.start.moveBy(this.start + identifier.index - this.tokens[0].index);\n const nameSpan = new ParseSourceSpan(triggerNameStartSpan, triggerNameStartSpan.moveBy(identifier.strValue.length));\n const endSpan = triggerNameStartSpan.moveBy(this.token().end - identifier.index);\n // Put the prefetch and on spans with the first trigger\n // This should maybe be refactored to have something like an outer OnGroup AST\n // Since triggers can be grouped with commas \"on hover(x), interaction(y)\"\n const isFirstTrigger = identifier.index === 0;\n const onSourceSpan = isFirstTrigger ? this.onSourceSpan : null;\n const prefetchSourceSpan = isFirstTrigger ? this.prefetchSpan : null;\n const hydrateSourceSpan = isFirstTrigger ? this.hydrateSpan : null;\n const sourceSpan = new ParseSourceSpan(isFirstTrigger ? this.span.start : triggerNameStartSpan, endSpan);\n try {\n switch (identifier.toString()) {\n case OnTriggerType.IDLE:\n this.trackTrigger('idle', createIdleTrigger(parameters, nameSpan, sourceSpan, prefetchSourceSpan, onSourceSpan, hydrateSourceSpan));\n break;\n case OnTriggerType.TIMER:\n this.trackTrigger('timer', createTimerTrigger(parameters, nameSpan, sourceSpan, this.prefetchSpan, this.onSourceSpan, this.hydrateSpan));\n break;\n case OnTriggerType.INTERACTION:\n this.trackTrigger('interaction', createInteractionTrigger(parameters, nameSpan, sourceSpan, this.prefetchSpan, this.onSourceSpan, this.hydrateSpan, this.placeholder, this.validator));\n break;\n case OnTriggerType.IMMEDIATE:\n this.trackTrigger('immediate', createImmediateTrigger(parameters, nameSpan, sourceSpan, this.prefetchSpan, this.onSourceSpan, this.hydrateSpan));\n break;\n case OnTriggerType.HOVER:\n this.trackTrigger('hover', createHoverTrigger(parameters, nameSpan, sourceSpan, this.prefetchSpan, this.onSourceSpan, this.hydrateSpan, this.placeholder, this.validator));\n break;\n case OnTriggerType.VIEWPORT:\n this.trackTrigger('viewport', createViewportTrigger(parameters, nameSpan, sourceSpan, this.prefetchSpan, this.onSourceSpan, this.hydrateSpan, this.placeholder, this.validator));\n break;\n default:\n throw new Error(`Unrecognized trigger type \"${identifier}\"`);\n }\n }\n catch (e) {\n this.error(identifier, e.message);\n }\n }\n consumeParameters() {\n const parameters = [];\n if (!this.token().isCharacter($LPAREN)) {\n this.unexpectedToken(this.token());\n return parameters;\n }\n this.advance();\n const commaDelimStack = [];\n let current = '';\n while (this.index < this.tokens.length) {\n const token = this.token();\n // Stop parsing if we've hit the end character and we're outside of a comma-delimited syntax.\n // Note that we don't need to account for strings here since the lexer already parsed them\n // into string tokens.\n if (token.isCharacter($RPAREN) && commaDelimStack.length === 0) {\n if (current.length) {\n parameters.push(current);\n }\n break;\n }\n // In the `on` microsyntax \"top-level\" commas (e.g. ones outside of an parameters) separate\n // the different triggers (e.g. `on idle,timer(500)`). This is problematic, because the\n // function-like syntax also implies that multiple parameters can be passed into the\n // individual trigger (e.g. `on foo(a, b)`). To avoid tripping up the parser with commas that\n // are part of other sorts of syntax (object literals, arrays), we treat anything inside\n // a comma-delimited syntax block as plain text.\n if (token.type === TokenType.Character && COMMA_DELIMITED_SYNTAX.has(token.numValue)) {\n commaDelimStack.push(COMMA_DELIMITED_SYNTAX.get(token.numValue));\n }\n if (commaDelimStack.length > 0 &&\n token.isCharacter(commaDelimStack[commaDelimStack.length - 1])) {\n commaDelimStack.pop();\n }\n // If we hit a comma outside of a comma-delimited syntax, it means\n // that we're at the top level and we're starting a new parameter.\n if (commaDelimStack.length === 0 && token.isCharacter($COMMA) && current.length > 0) {\n parameters.push(current);\n current = '';\n this.advance();\n continue;\n }\n // Otherwise treat the token as a plain text character in the current parameter.\n current += this.tokenText();\n this.advance();\n }\n if (!this.token().isCharacter($RPAREN) || commaDelimStack.length > 0) {\n this.error(this.token(), 'Unexpected end of expression');\n }\n if (this.index < this.tokens.length - 1 &&\n !this.tokens[this.index + 1].isCharacter($COMMA)) {\n this.unexpectedToken(this.tokens[this.index + 1]);\n }\n return parameters;\n }\n tokenText() {\n // Tokens have a toString already which we could use, but for string tokens it omits the quotes.\n // Eventually we could expose this information on the token directly.\n return this.expression.slice(this.start + this.token().index, this.start + this.token().end);\n }\n trackTrigger(name, trigger) {\n trackTrigger(name, this.triggers, this.errors, trigger);\n }\n error(token, message) {\n const newStart = this.span.start.moveBy(this.start + token.index);\n const newEnd = newStart.moveBy(token.end - token.index);\n this.errors.push(new ParseError(new ParseSourceSpan(newStart, newEnd), message));\n }\n unexpectedToken(token) {\n this.error(token, `Unexpected token \"${token}\"`);\n }\n}\n/** Adds a trigger to a map of triggers. */\nfunction trackTrigger(name, allTriggers, errors, trigger) {\n if (allTriggers[name]) {\n errors.push(new ParseError(trigger.sourceSpan, `Duplicate \"${name}\" trigger is not allowed`));\n }\n else {\n allTriggers[name] = trigger;\n }\n}\nfunction createIdleTrigger(parameters, nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan) {\n if (parameters.length > 0) {\n throw new Error(`\"${OnTriggerType.IDLE}\" trigger cannot have parameters`);\n }\n return new IdleDeferredTrigger(nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan);\n}\nfunction createTimerTrigger(parameters, nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan) {\n if (parameters.length !== 1) {\n throw new Error(`\"${OnTriggerType.TIMER}\" trigger must have exactly one parameter`);\n }\n const delay = parseDeferredTime(parameters[0]);\n if (delay === null) {\n throw new Error(`Could not parse time value of trigger \"${OnTriggerType.TIMER}\"`);\n }\n return new TimerDeferredTrigger(delay, nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan);\n}\nfunction createImmediateTrigger(parameters, nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan) {\n if (parameters.length > 0) {\n throw new Error(`\"${OnTriggerType.IMMEDIATE}\" trigger cannot have parameters`);\n }\n return new ImmediateDeferredTrigger(nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan);\n}\nfunction createHoverTrigger(parameters, nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan, placeholder, validator) {\n validator(OnTriggerType.HOVER, parameters, placeholder);\n return new HoverDeferredTrigger(parameters[0] ?? null, nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan);\n}\nfunction createInteractionTrigger(parameters, nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan, placeholder, validator) {\n validator(OnTriggerType.INTERACTION, parameters, placeholder);\n return new InteractionDeferredTrigger(parameters[0] ?? null, nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan);\n}\nfunction createViewportTrigger(parameters, nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan, placeholder, validator) {\n validator(OnTriggerType.VIEWPORT, parameters, placeholder);\n return new ViewportDeferredTrigger(parameters[0] ?? null, nameSpan, sourceSpan, prefetchSpan, onSourceSpan, hydrateSpan);\n}\n/**\n * Checks whether the structure of a non-hydrate reference-based trigger is valid.\n * @param type Type of the trigger being validated.\n * @param parameters Parameters of the trigger.\n * @param placeholder Placeholder of the defer block.\n */\nfunction validatePlainReferenceBasedTrigger(type, parameters, placeholder) {\n if (parameters.length > 1) {\n throw new Error(`\"${type}\" trigger can only have zero or one parameters`);\n }\n if (parameters.length === 0) {\n if (placeholder === null) {\n throw new Error(`\"${type}\" trigger with no parameters can only be placed on an @defer that has a @placeholder block`);\n }\n if (placeholder.children.length !== 1 || !(placeholder.children[0] instanceof Element$1)) {\n throw new Error(`\"${type}\" trigger with no parameters can only be placed on an @defer that has a ` +\n `@placeholder block with exactly one root element node`);\n }\n }\n}\n/**\n * Checks whether the structure of a hydrate trigger is valid.\n * @param type Type of the trigger being validated.\n * @param parameters Parameters of the trigger.\n */\nfunction validateHydrateReferenceBasedTrigger(type, parameters) {\n if (parameters.length > 0) {\n throw new Error(`Hydration trigger \"${type}\" cannot have parameters`);\n }\n}\n/** Gets the index within an expression at which the trigger parameters start. */\nfunction getTriggerParametersStart(value, startPosition = 0) {\n let hasFoundSeparator = false;\n for (let i = startPosition; i < value.length; i++) {\n if (SEPARATOR_PATTERN.test(value[i])) {\n hasFoundSeparator = true;\n }\n else if (hasFoundSeparator) {\n return i;\n }\n }\n return -1;\n}\n/**\n * Parses a time expression from a deferred trigger to\n * milliseconds. Returns null if it cannot be parsed.\n */\nfunction parseDeferredTime(value) {\n const match = value.match(TIME_PATTERN);\n if (!match) {\n return null;\n }\n const [time, units] = match;\n return parseFloat(time) * (units === 's' ? 1000 : 1);\n}\n\n/** Pattern to identify a `prefetch when` trigger. */\nconst PREFETCH_WHEN_PATTERN = /^prefetch\\s+when\\s/;\n/** Pattern to identify a `prefetch on` trigger. */\nconst PREFETCH_ON_PATTERN = /^prefetch\\s+on\\s/;\n/** Pattern to identify a `hydrate when` trigger. */\nconst HYDRATE_WHEN_PATTERN = /^hydrate\\s+when\\s/;\n/** Pattern to identify a `hydrate on` trigger. */\nconst HYDRATE_ON_PATTERN = /^hydrate\\s+on\\s/;\n/** Pattern to identify a `hydrate never` trigger. */\nconst HYDRATE_NEVER_PATTERN = /^hydrate\\s+never(\\s*)$/;\n/** Pattern to identify a `minimum` parameter in a block. */\nconst MINIMUM_PARAMETER_PATTERN = /^minimum\\s/;\n/** Pattern to identify a `after` parameter in a block. */\nconst AFTER_PARAMETER_PATTERN = /^after\\s/;\n/** Pattern to identify a `when` parameter in a block. */\nconst WHEN_PARAMETER_PATTERN = /^when\\s/;\n/** Pattern to identify a `on` parameter in a block. */\nconst ON_PARAMETER_PATTERN = /^on\\s/;\n/**\n * Predicate function that determines if a block with\n * a specific name cam be connected to a `defer` block.\n */\nfunction isConnectedDeferLoopBlock(name) {\n return name === 'placeholder' || name === 'loading' || name === 'error';\n}\n/** Creates a deferred block from an HTML AST node. */\nfunction createDeferredBlock(ast, connectedBlocks, visitor, bindingParser) {\n const errors = [];\n const { placeholder, loading, error } = parseConnectedBlocks(connectedBlocks, errors, visitor);\n const { triggers, prefetchTriggers, hydrateTriggers } = parsePrimaryTriggers(ast, bindingParser, errors, placeholder);\n // The `defer` block has a main span encompassing all of the connected branches as well.\n let lastEndSourceSpan = ast.endSourceSpan;\n let endOfLastSourceSpan = ast.sourceSpan.end;\n if (connectedBlocks.length > 0) {\n const lastConnectedBlock = connectedBlocks[connectedBlocks.length - 1];\n lastEndSourceSpan = lastConnectedBlock.endSourceSpan;\n endOfLastSourceSpan = lastConnectedBlock.sourceSpan.end;\n }\n const sourceSpanWithConnectedBlocks = new ParseSourceSpan(ast.sourceSpan.start, endOfLastSourceSpan);\n const node = new DeferredBlock(visitAll(visitor, ast.children, ast.children), triggers, prefetchTriggers, hydrateTriggers, placeholder, loading, error, ast.nameSpan, sourceSpanWithConnectedBlocks, ast.sourceSpan, ast.startSourceSpan, lastEndSourceSpan, ast.i18n);\n return { node, errors };\n}\nfunction parseConnectedBlocks(connectedBlocks, errors, visitor) {\n let placeholder = null;\n let loading = null;\n let error = null;\n for (const block of connectedBlocks) {\n try {\n if (!isConnectedDeferLoopBlock(block.name)) {\n errors.push(new ParseError(block.startSourceSpan, `Unrecognized block \"@${block.name}\"`));\n break;\n }\n switch (block.name) {\n case 'placeholder':\n if (placeholder !== null) {\n errors.push(new ParseError(block.startSourceSpan, `@defer block can only have one @placeholder block`));\n }\n else {\n placeholder = parsePlaceholderBlock(block, visitor);\n }\n break;\n case 'loading':\n if (loading !== null) {\n errors.push(new ParseError(block.startSourceSpan, `@defer block can only have one @loading block`));\n }\n else {\n loading = parseLoadingBlock(block, visitor);\n }\n break;\n case 'error':\n if (error !== null) {\n errors.push(new ParseError(block.startSourceSpan, `@defer block can only have one @error block`));\n }\n else {\n error = parseErrorBlock(block, visitor);\n }\n break;\n }\n }\n catch (e) {\n errors.push(new ParseError(block.startSourceSpan, e.message));\n }\n }\n return { placeholder, loading, error };\n}\nfunction parsePlaceholderBlock(ast, visitor) {\n let minimumTime = null;\n for (const param of ast.parameters) {\n if (MINIMUM_PARAMETER_PATTERN.test(param.expression)) {\n if (minimumTime != null) {\n throw new Error(`@placeholder block can only have one \"minimum\" parameter`);\n }\n const parsedTime = parseDeferredTime(param.expression.slice(getTriggerParametersStart(param.expression)));\n if (parsedTime === null) {\n throw new Error(`Could not parse time value of parameter \"minimum\"`);\n }\n minimumTime = parsedTime;\n }\n else {\n throw new Error(`Unrecognized parameter in @placeholder block: \"${param.expression}\"`);\n }\n }\n return new DeferredBlockPlaceholder(visitAll(visitor, ast.children, ast.children), minimumTime, ast.nameSpan, ast.sourceSpan, ast.startSourceSpan, ast.endSourceSpan, ast.i18n);\n}\nfunction parseLoadingBlock(ast, visitor) {\n let afterTime = null;\n let minimumTime = null;\n for (const param of ast.parameters) {\n if (AFTER_PARAMETER_PATTERN.test(param.expression)) {\n if (afterTime != null) {\n throw new Error(`@loading block can only have one \"after\" parameter`);\n }\n const parsedTime = parseDeferredTime(param.expression.slice(getTriggerParametersStart(param.expression)));\n if (parsedTime === null) {\n throw new Error(`Could not parse time value of parameter \"after\"`);\n }\n afterTime = parsedTime;\n }\n else if (MINIMUM_PARAMETER_PATTERN.test(param.expression)) {\n if (minimumTime != null) {\n throw new Error(`@loading block can only have one \"minimum\" parameter`);\n }\n const parsedTime = parseDeferredTime(param.expression.slice(getTriggerParametersStart(param.expression)));\n if (parsedTime === null) {\n throw new Error(`Could not parse time value of parameter \"minimum\"`);\n }\n minimumTime = parsedTime;\n }\n else {\n throw new Error(`Unrecognized parameter in @loading block: \"${param.expression}\"`);\n }\n }\n return new DeferredBlockLoading(visitAll(visitor, ast.children, ast.children), afterTime, minimumTime, ast.nameSpan, ast.sourceSpan, ast.startSourceSpan, ast.endSourceSpan, ast.i18n);\n}\nfunction parseErrorBlock(ast, visitor) {\n if (ast.parameters.length > 0) {\n throw new Error(`@error block cannot have parameters`);\n }\n return new DeferredBlockError(visitAll(visitor, ast.children, ast.children), ast.nameSpan, ast.sourceSpan, ast.startSourceSpan, ast.endSourceSpan, ast.i18n);\n}\nfunction parsePrimaryTriggers(ast, bindingParser, errors, placeholder) {\n const triggers = {};\n const prefetchTriggers = {};\n const hydrateTriggers = {};\n for (const param of ast.parameters) {\n // The lexer ignores the leading spaces so we can assume\n // that the expression starts with a keyword.\n if (WHEN_PARAMETER_PATTERN.test(param.expression)) {\n parseWhenTrigger(param, bindingParser, triggers, errors);\n }\n else if (ON_PARAMETER_PATTERN.test(param.expression)) {\n parseOnTrigger(param, triggers, errors, placeholder);\n }\n else if (PREFETCH_WHEN_PATTERN.test(param.expression)) {\n parseWhenTrigger(param, bindingParser, prefetchTriggers, errors);\n }\n else if (PREFETCH_ON_PATTERN.test(param.expression)) {\n parseOnTrigger(param, prefetchTriggers, errors, placeholder);\n }\n else if (HYDRATE_WHEN_PATTERN.test(param.expression)) {\n parseWhenTrigger(param, bindingParser, hydrateTriggers, errors);\n }\n else if (HYDRATE_ON_PATTERN.test(param.expression)) {\n parseOnTrigger(param, hydrateTriggers, errors, placeholder);\n }\n else if (HYDRATE_NEVER_PATTERN.test(param.expression)) {\n parseNeverTrigger(param, hydrateTriggers, errors);\n }\n else {\n errors.push(new ParseError(param.sourceSpan, 'Unrecognized trigger'));\n }\n }\n if (hydrateTriggers.never && Object.keys(hydrateTriggers).length > 1) {\n errors.push(new ParseError(ast.startSourceSpan, 'Cannot specify additional `hydrate` triggers if `hydrate never` is present'));\n }\n return { triggers, prefetchTriggers, hydrateTriggers };\n}\n\nconst BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;\n// Group 1 = \"bind-\"\nconst KW_BIND_IDX = 1;\n// Group 2 = \"let-\"\nconst KW_LET_IDX = 2;\n// Group 3 = \"ref-/#\"\nconst KW_REF_IDX = 3;\n// Group 4 = \"on-\"\nconst KW_ON_IDX = 4;\n// Group 5 = \"bindon-\"\nconst KW_BINDON_IDX = 5;\n// Group 6 = \"@\"\nconst KW_AT_IDX = 6;\n// Group 7 = the identifier after \"bind-\", \"let-\", \"ref-/#\", \"on-\", \"bindon-\" or \"@\"\nconst IDENT_KW_IDX = 7;\nconst BINDING_DELIMS = {\n BANANA_BOX: { start: '[(', end: ')]' },\n PROPERTY: { start: '[', end: ']' },\n EVENT: { start: '(', end: ')' },\n};\nconst TEMPLATE_ATTR_PREFIX = '*';\nfunction htmlAstToRender3Ast(htmlNodes, bindingParser, options) {\n const transformer = new HtmlAstToIvyAst(bindingParser, options);\n const ivyNodes = visitAll(transformer, htmlNodes, htmlNodes);\n // Errors might originate in either the binding parser or the html to ivy transformer\n const allErrors = bindingParser.errors.concat(transformer.errors);\n const result = {\n nodes: ivyNodes,\n errors: allErrors,\n styleUrls: transformer.styleUrls,\n styles: transformer.styles,\n ngContentSelectors: transformer.ngContentSelectors,\n };\n if (options.collectCommentNodes) {\n result.commentNodes = transformer.commentNodes;\n }\n return result;\n}\nclass HtmlAstToIvyAst {\n bindingParser;\n options;\n errors = [];\n styles = [];\n styleUrls = [];\n ngContentSelectors = [];\n // This array will be populated if `Render3ParseOptions['collectCommentNodes']` is true\n commentNodes = [];\n inI18nBlock = false;\n /**\n * Keeps track of the nodes that have been processed already when previous nodes were visited.\n * These are typically blocks connected to other blocks or text nodes between connected blocks.\n */\n processedNodes = new Set();\n constructor(bindingParser, options) {\n this.bindingParser = bindingParser;\n this.options = options;\n }\n // HTML visitor\n visitElement(element) {\n const isI18nRootElement = isI18nRootNode(element.i18n);\n if (isI18nRootElement) {\n if (this.inI18nBlock) {\n this.reportError('Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.', element.sourceSpan);\n }\n this.inI18nBlock = true;\n }\n const preparsedElement = preparseElement(element);\n if (preparsedElement.type === PreparsedElementType.SCRIPT) {\n return null;\n }\n else if (preparsedElement.type === PreparsedElementType.STYLE) {\n const contents = textContents(element);\n if (contents !== null) {\n this.styles.push(contents);\n }\n return null;\n }\n else if (preparsedElement.type === PreparsedElementType.STYLESHEET &&\n isStyleUrlResolvable(preparsedElement.hrefAttr)) {\n this.styleUrls.push(preparsedElement.hrefAttr);\n return null;\n }\n // Whether the element is a `<ng-template>`\n const isTemplateElement = isNgTemplate(element.name);\n const parsedProperties = [];\n const boundEvents = [];\n const variables = [];\n const references = [];\n const attributes = [];\n const i18nAttrsMeta = {};\n const templateParsedProperties = [];\n const templateVariables = [];\n // Whether the element has any *-attribute\n let elementHasInlineTemplate = false;\n for (const attribute of element.attrs) {\n let hasBinding = false;\n const normalizedName = normalizeAttributeName(attribute.name);\n // `*attr` defines template bindings\n let isTemplateBinding = false;\n if (attribute.i18n) {\n i18nAttrsMeta[attribute.name] = attribute.i18n;\n }\n if (normalizedName.startsWith(TEMPLATE_ATTR_PREFIX)) {\n // *-attributes\n if (elementHasInlineTemplate) {\n this.reportError(`Can't have multiple template bindings on one element. Use only one attribute prefixed with *`, attribute.sourceSpan);\n }\n isTemplateBinding = true;\n elementHasInlineTemplate = true;\n const templateValue = attribute.value;\n const templateKey = normalizedName.substring(TEMPLATE_ATTR_PREFIX.length);\n const parsedVariables = [];\n const absoluteValueOffset = attribute.valueSpan\n ? attribute.valueSpan.start.offset\n : // If there is no value span the attribute does not have a value, like `attr` in\n //`<div attr></div>`. In this case, point to one character beyond the last character of\n // the attribute name.\n attribute.sourceSpan.start.offset + attribute.name.length;\n this.bindingParser.parseInlineTemplateBinding(templateKey, templateValue, attribute.sourceSpan, absoluteValueOffset, [], templateParsedProperties, parsedVariables, true /* isIvyAst */);\n templateVariables.push(...parsedVariables.map((v) => new Variable(v.name, v.value, v.sourceSpan, v.keySpan, v.valueSpan)));\n }\n else {\n // Check for variables, events, property bindings, interpolation\n hasBinding = this.parseAttribute(isTemplateElement, attribute, [], parsedProperties, boundEvents, variables, references);\n }\n if (!hasBinding && !isTemplateBinding) {\n // don't include the bindings as attributes as well in the AST\n attributes.push(this.visitAttribute(attribute));\n }\n }\n let children;\n if (preparsedElement.nonBindable) {\n // The `NonBindableVisitor` may need to return an array of nodes for blocks so we need\n // to flatten the array here. Avoid doing this for the `HtmlAstToIvyAst` since `flat` creates\n // a new array.\n children = visitAll(NON_BINDABLE_VISITOR, element.children).flat(Infinity);\n }\n else {\n children = visitAll(this, element.children, element.children);\n }\n let parsedElement;\n if (preparsedElement.type === PreparsedElementType.NG_CONTENT) {\n const selector = preparsedElement.selectAttr;\n const attrs = element.attrs.map((attr) => this.visitAttribute(attr));\n parsedElement = new Content(selector, attrs, children, element.sourceSpan, element.i18n);\n this.ngContentSelectors.push(selector);\n }\n else if (isTemplateElement) {\n // `<ng-template>`\n const attrs = this.extractAttributes(element.name, parsedProperties, i18nAttrsMeta);\n parsedElement = new Template(element.name, attributes, attrs.bound, boundEvents, [\n /* no template attributes */\n ], children, references, variables, element.sourceSpan, element.startSourceSpan, element.endSourceSpan, element.i18n);\n }\n else {\n const attrs = this.extractAttributes(element.name, parsedProperties, i18nAttrsMeta);\n parsedElement = new Element$1(element.name, attributes, attrs.bound, boundEvents, children, references, element.sourceSpan, element.startSourceSpan, element.endSourceSpan, element.i18n);\n }\n if (elementHasInlineTemplate) {\n // If this node is an inline-template (e.g. has *ngFor) then we need to create a template\n // node that contains this node.\n // Moreover, if the node is an element, then we need to hoist its attributes to the template\n // node for matching against content projection selectors.\n const attrs = this.extractAttributes('ng-template', templateParsedProperties, i18nAttrsMeta);\n const templateAttrs = [];\n attrs.literal.forEach((attr) => templateAttrs.push(attr));\n attrs.bound.forEach((attr) => templateAttrs.push(attr));\n const hoistedAttrs = parsedElement instanceof Element$1\n ? {\n attributes: parsedElement.attributes,\n inputs: parsedElement.inputs,\n outputs: parsedElement.outputs,\n }\n : { attributes: [], inputs: [], outputs: [] };\n // For <ng-template>s with structural directives on them, avoid passing i18n information to\n // the wrapping template to prevent unnecessary i18n instructions from being generated. The\n // necessary i18n meta information will be extracted from child elements.\n const i18n = isTemplateElement && isI18nRootElement ? undefined : element.i18n;\n const name = parsedElement instanceof Template ? null : parsedElement.name;\n parsedElement = new Template(name, hoistedAttrs.attributes, hoistedAttrs.inputs, hoistedAttrs.outputs, templateAttrs, [parsedElement], [\n /* no references */\n ], templateVariables, element.sourceSpan, element.startSourceSpan, element.endSourceSpan, i18n);\n }\n if (isI18nRootElement) {\n this.inI18nBlock = false;\n }\n return parsedElement;\n }\n visitAttribute(attribute) {\n return new TextAttribute(attribute.name, attribute.value, attribute.sourceSpan, attribute.keySpan, attribute.valueSpan, attribute.i18n);\n }\n visitText(text) {\n return this.processedNodes.has(text)\n ? null\n : this._visitTextWithInterpolation(text.value, text.sourceSpan, text.tokens, text.i18n);\n }\n visitExpansion(expansion) {\n if (!expansion.i18n) {\n // do not generate Icu in case it was created\n // outside of i18n block in a template\n return null;\n }\n if (!isI18nRootNode(expansion.i18n)) {\n throw new Error(`Invalid type \"${expansion.i18n.constructor}\" for \"i18n\" property of ${expansion.sourceSpan.toString()}. Expected a \"Message\"`);\n }\n const message = expansion.i18n;\n const vars = {};\n const placeholders = {};\n // extract VARs from ICUs - we process them separately while\n // assembling resulting message via goog.getMsg function, since\n // we need to pass them to top-level goog.getMsg call\n Object.keys(message.placeholders).forEach((key) => {\n const value = message.placeholders[key];\n if (key.startsWith(I18N_ICU_VAR_PREFIX)) {\n // Currently when the `plural` or `select` keywords in an ICU contain trailing spaces (e.g.\n // `{count, select , ...}`), these spaces are also included into the key names in ICU vars\n // (e.g. \"VAR_SELECT \"). These trailing spaces are not desirable, since they will later be\n // converted into `_` symbols while normalizing placeholder names, which might lead to\n // mismatches at runtime (i.e. placeholder will not be replaced with the correct value).\n const formattedKey = key.trim();\n const ast = this.bindingParser.parseInterpolationExpression(value.text, value.sourceSpan);\n vars[formattedKey] = new BoundText(ast, value.sourceSpan);\n }\n else {\n placeholders[key] = this._visitTextWithInterpolation(value.text, value.sourceSpan, null);\n }\n });\n return new Icu$1(vars, placeholders, expansion.sourceSpan, message);\n }\n visitExpansionCase(expansionCase) {\n return null;\n }\n visitComment(comment) {\n if (this.options.collectCommentNodes) {\n this.commentNodes.push(new Comment$1(comment.value || '', comment.sourceSpan));\n }\n return null;\n }\n visitLetDeclaration(decl, context) {\n const value = this.bindingParser.parseBinding(decl.value, false, decl.valueSpan, decl.valueSpan.start.offset);\n if (value.errors.length === 0 && value.ast instanceof EmptyExpr$1) {\n this.reportError('@let declaration value cannot be empty', decl.valueSpan);\n }\n return new LetDeclaration$1(decl.name, value, decl.sourceSpan, decl.nameSpan, decl.valueSpan);\n }\n visitBlockParameter() {\n return null;\n }\n visitBlock(block, context) {\n const index = Array.isArray(context) ? context.indexOf(block) : -1;\n if (index === -1) {\n throw new Error('Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context');\n }\n // Connected blocks may have been processed as a part of the previous block.\n if (this.processedNodes.has(block)) {\n return null;\n }\n let result = null;\n switch (block.name) {\n case 'defer':\n result = createDeferredBlock(block, this.findConnectedBlocks(index, context, isConnectedDeferLoopBlock), this, this.bindingParser);\n break;\n case 'switch':\n result = createSwitchBlock(block, this, this.bindingParser);\n break;\n case 'for':\n result = createForLoop(block, this.findConnectedBlocks(index, context, isConnectedForLoopBlock), this, this.bindingParser);\n break;\n case 'if':\n result = createIfBlock(block, this.findConnectedBlocks(index, context, isConnectedIfLoopBlock), this, this.bindingParser);\n break;\n default:\n let errorMessage;\n if (isConnectedDeferLoopBlock(block.name)) {\n errorMessage = `@${block.name} block can only be used after an @defer block.`;\n this.processedNodes.add(block);\n }\n else if (isConnectedForLoopBlock(block.name)) {\n errorMessage = `@${block.name} block can only be used after an @for block.`;\n this.processedNodes.add(block);\n }\n else if (isConnectedIfLoopBlock(block.name)) {\n errorMessage = `@${block.name} block can only be used after an @if or @else if block.`;\n this.processedNodes.add(block);\n }\n else {\n errorMessage = `Unrecognized block @${block.name}.`;\n }\n result = {\n node: new UnknownBlock(block.name, block.sourceSpan, block.nameSpan),\n errors: [new ParseError(block.sourceSpan, errorMessage)],\n };\n break;\n }\n this.errors.push(...result.errors);\n return result.node;\n }\n findConnectedBlocks(primaryBlockIndex, siblings, predicate) {\n const relatedBlocks = [];\n for (let i = primaryBlockIndex + 1; i < siblings.length; i++) {\n const node = siblings[i];\n // Skip over comments.\n if (node instanceof Comment) {\n continue;\n }\n // Ignore empty text nodes between blocks.\n if (node instanceof Text && node.value.trim().length === 0) {\n // Add the text node to the processed nodes since we don't want\n // it to be generated between the connected nodes.\n this.processedNodes.add(node);\n continue;\n }\n // Stop searching as soon as we hit a non-block node or a block that is unrelated.\n if (!(node instanceof Block) || !predicate(node.name)) {\n break;\n }\n relatedBlocks.push(node);\n this.processedNodes.add(node);\n }\n return relatedBlocks;\n }\n // convert view engine `ParsedProperty` to a format suitable for IVY\n extractAttributes(elementName, properties, i18nPropsMeta) {\n const bound = [];\n const literal = [];\n properties.forEach((prop) => {\n const i18n = i18nPropsMeta[prop.name];\n if (prop.isLiteral) {\n literal.push(new TextAttribute(prop.name, prop.expression.source || '', prop.sourceSpan, prop.keySpan, prop.valueSpan, i18n));\n }\n else {\n // Note that validation is skipped and property mapping is disabled\n // due to the fact that we need to make sure a given prop is not an\n // input of a directive and directive matching happens at runtime.\n const bep = this.bindingParser.createBoundElementProperty(elementName, prop, \n /* skipValidation */ true, \n /* mapPropertyName */ false);\n bound.push(BoundAttribute.fromBoundElementProperty(bep, i18n));\n }\n });\n return { bound, literal };\n }\n parseAttribute(isTemplateElement, attribute, matchableAttributes, parsedProperties, boundEvents, variables, references) {\n const name = normalizeAttributeName(attribute.name);\n const value = attribute.value;\n const srcSpan = attribute.sourceSpan;\n const absoluteOffset = attribute.valueSpan\n ? attribute.valueSpan.start.offset\n : srcSpan.start.offset;\n function createKeySpan(srcSpan, prefix, identifier) {\n // We need to adjust the start location for the keySpan to account for the removed 'data-'\n // prefix from `normalizeAttributeName`.\n const normalizationAdjustment = attribute.name.length - name.length;\n const keySpanStart = srcSpan.start.moveBy(prefix.length + normalizationAdjustment);\n const keySpanEnd = keySpanStart.moveBy(identifier.length);\n return new ParseSourceSpan(keySpanStart, keySpanEnd, keySpanStart, identifier);\n }\n const bindParts = name.match(BIND_NAME_REGEXP);\n if (bindParts) {\n if (bindParts[KW_BIND_IDX] != null) {\n const identifier = bindParts[IDENT_KW_IDX];\n const keySpan = createKeySpan(srcSpan, bindParts[KW_BIND_IDX], identifier);\n this.bindingParser.parsePropertyBinding(identifier, value, false, false, srcSpan, absoluteOffset, attribute.valueSpan, matchableAttributes, parsedProperties, keySpan);\n }\n else if (bindParts[KW_LET_IDX]) {\n if (isTemplateElement) {\n const identifier = bindParts[IDENT_KW_IDX];\n const keySpan = createKeySpan(srcSpan, bindParts[KW_LET_IDX], identifier);\n this.parseVariable(identifier, value, srcSpan, keySpan, attribute.valueSpan, variables);\n }\n else {\n this.reportError(`\"let-\" is only supported on ng-template elements.`, srcSpan);\n }\n }\n else if (bindParts[KW_REF_IDX]) {\n const identifier = bindParts[IDENT_KW_IDX];\n const keySpan = createKeySpan(srcSpan, bindParts[KW_REF_IDX], identifier);\n this.parseReference(identifier, value, srcSpan, keySpan, attribute.valueSpan, references);\n }\n else if (bindParts[KW_ON_IDX]) {\n const events = [];\n const identifier = bindParts[IDENT_KW_IDX];\n const keySpan = createKeySpan(srcSpan, bindParts[KW_ON_IDX], identifier);\n this.bindingParser.parseEvent(identifier, value, \n /* isAssignmentEvent */ false, srcSpan, attribute.valueSpan || srcSpan, matchableAttributes, events, keySpan);\n addEvents(events, boundEvents);\n }\n else if (bindParts[KW_BINDON_IDX]) {\n const identifier = bindParts[IDENT_KW_IDX];\n const keySpan = createKeySpan(srcSpan, bindParts[KW_BINDON_IDX], identifier);\n this.bindingParser.parsePropertyBinding(identifier, value, false, true, srcSpan, absoluteOffset, attribute.valueSpan, matchableAttributes, parsedProperties, keySpan);\n this.parseAssignmentEvent(identifier, value, srcSpan, attribute.valueSpan, matchableAttributes, boundEvents, keySpan);\n }\n else if (bindParts[KW_AT_IDX]) {\n const keySpan = createKeySpan(srcSpan, '', name);\n this.bindingParser.parseLiteralAttr(name, value, srcSpan, absoluteOffset, attribute.valueSpan, matchableAttributes, parsedProperties, keySpan);\n }\n return true;\n }\n // We didn't see a kw-prefixed property binding, but we have not yet checked\n // for the []/()/[()] syntax.\n let delims = null;\n if (name.startsWith(BINDING_DELIMS.BANANA_BOX.start)) {\n delims = BINDING_DELIMS.BANANA_BOX;\n }\n else if (name.startsWith(BINDING_DELIMS.PROPERTY.start)) {\n delims = BINDING_DELIMS.PROPERTY;\n }\n else if (name.startsWith(BINDING_DELIMS.EVENT.start)) {\n delims = BINDING_DELIMS.EVENT;\n }\n if (delims !== null &&\n // NOTE: older versions of the parser would match a start/end delimited\n // binding iff the property name was terminated by the ending delimiter\n // and the identifier in the binding was non-empty.\n // TODO(ayazhafiz): update this to handle malformed bindings.\n name.endsWith(delims.end) &&\n name.length > delims.start.length + delims.end.length) {\n const identifier = name.substring(delims.start.length, name.length - delims.end.length);\n const keySpan = createKeySpan(srcSpan, delims.start, identifier);\n if (delims.start === BINDING_DELIMS.BANANA_BOX.start) {\n this.bindingParser.parsePropertyBinding(identifier, value, false, true, srcSpan, absoluteOffset, attribute.valueSpan, matchableAttributes, parsedProperties, keySpan);\n this.parseAssignmentEvent(identifier, value, srcSpan, attribute.valueSpan, matchableAttributes, boundEvents, keySpan);\n }\n else if (delims.start === BINDING_DELIMS.PROPERTY.start) {\n this.bindingParser.parsePropertyBinding(identifier, value, false, false, srcSpan, absoluteOffset, attribute.valueSpan, matchableAttributes, parsedProperties, keySpan);\n }\n else {\n const events = [];\n this.bindingParser.parseEvent(identifier, value, \n /* isAssignmentEvent */ false, srcSpan, attribute.valueSpan || srcSpan, matchableAttributes, events, keySpan);\n addEvents(events, boundEvents);\n }\n return true;\n }\n // No explicit binding found.\n const keySpan = createKeySpan(srcSpan, '' /* prefix */, name);\n const hasBinding = this.bindingParser.parsePropertyInterpolation(name, value, srcSpan, attribute.valueSpan, matchableAttributes, parsedProperties, keySpan, attribute.valueTokens ?? null);\n return hasBinding;\n }\n _visitTextWithInterpolation(value, sourceSpan, interpolatedTokens, i18n) {\n const valueNoNgsp = replaceNgsp(value);\n const expr = this.bindingParser.parseInterpolation(valueNoNgsp, sourceSpan, interpolatedTokens);\n return expr ? new BoundText(expr, sourceSpan, i18n) : new Text$3(valueNoNgsp, sourceSpan);\n }\n parseVariable(identifier, value, sourceSpan, keySpan, valueSpan, variables) {\n if (identifier.indexOf('-') > -1) {\n this.reportError(`\"-\" is not allowed in variable names`, sourceSpan);\n }\n else if (identifier.length === 0) {\n this.reportError(`Variable does not have a name`, sourceSpan);\n }\n variables.push(new Variable(identifier, value, sourceSpan, keySpan, valueSpan));\n }\n parseReference(identifier, value, sourceSpan, keySpan, valueSpan, references) {\n if (identifier.indexOf('-') > -1) {\n this.reportError(`\"-\" is not allowed in reference names`, sourceSpan);\n }\n else if (identifier.length === 0) {\n this.reportError(`Reference does not have a name`, sourceSpan);\n }\n else if (references.some((reference) => reference.name === identifier)) {\n this.reportError(`Reference \"#${identifier}\" is defined more than once`, sourceSpan);\n }\n references.push(new Reference(identifier, value, sourceSpan, keySpan, valueSpan));\n }\n parseAssignmentEvent(name, expression, sourceSpan, valueSpan, targetMatchableAttrs, boundEvents, keySpan) {\n const events = [];\n this.bindingParser.parseEvent(`${name}Change`, expression, \n /* isAssignmentEvent */ true, sourceSpan, valueSpan || sourceSpan, targetMatchableAttrs, events, keySpan);\n addEvents(events, boundEvents);\n }\n reportError(message, sourceSpan, level = ParseErrorLevel.ERROR) {\n this.errors.push(new ParseError(sourceSpan, message, level));\n }\n}\nclass NonBindableVisitor {\n visitElement(ast) {\n const preparsedElement = preparseElement(ast);\n if (preparsedElement.type === PreparsedElementType.SCRIPT ||\n preparsedElement.type === PreparsedElementType.STYLE ||\n preparsedElement.type === PreparsedElementType.STYLESHEET) {\n // Skipping <script> for security reasons\n // Skipping <style> and stylesheets as we already processed them\n // in the StyleCompiler\n return null;\n }\n const children = visitAll(this, ast.children, null);\n return new Element$1(ast.name, visitAll(this, ast.attrs), \n /* inputs */ [], \n /* outputs */ [], children, \n /* references */ [], ast.sourceSpan, ast.startSourceSpan, ast.endSourceSpan);\n }\n visitComment(comment) {\n return null;\n }\n visitAttribute(attribute) {\n return new TextAttribute(attribute.name, attribute.value, attribute.sourceSpan, attribute.keySpan, attribute.valueSpan, attribute.i18n);\n }\n visitText(text) {\n return new Text$3(text.value, text.sourceSpan);\n }\n visitExpansion(expansion) {\n return null;\n }\n visitExpansionCase(expansionCase) {\n return null;\n }\n visitBlock(block, context) {\n const nodes = [\n // In an ngNonBindable context we treat the opening/closing tags of block as plain text.\n // This is the as if the `tokenizeBlocks` option was disabled.\n new Text$3(block.startSourceSpan.toString(), block.startSourceSpan),\n ...visitAll(this, block.children),\n ];\n if (block.endSourceSpan !== null) {\n nodes.push(new Text$3(block.endSourceSpan.toString(), block.endSourceSpan));\n }\n return nodes;\n }\n visitBlockParameter(parameter, context) {\n return null;\n }\n visitLetDeclaration(decl, context) {\n return new Text$3(`@let ${decl.name} = ${decl.value};`, decl.sourceSpan);\n }\n}\nconst NON_BINDABLE_VISITOR = new NonBindableVisitor();\nfunction normalizeAttributeName(attrName) {\n return /^data-/i.test(attrName) ? attrName.substring(5) : attrName;\n}\nfunction addEvents(events, boundEvents) {\n boundEvents.push(...events.map((e) => BoundEvent.fromParsedEvent(e)));\n}\nfunction textContents(node) {\n if (node.children.length !== 1 || !(node.children[0] instanceof Text)) {\n return null;\n }\n else {\n return node.children[0].value;\n }\n}\n\nconst LEADING_TRIVIA_CHARS = [' ', '\\n', '\\r', '\\t'];\n/**\n * Parse a template into render3 `Node`s and additional metadata, with no other dependencies.\n *\n * @param template text of the template to parse\n * @param templateUrl URL to use for source mapping of the parsed template\n * @param options options to modify how the template is parsed\n */\nfunction parseTemplate(template, templateUrl, options = {}) {\n const { interpolationConfig, preserveWhitespaces, enableI18nLegacyMessageIdFormat } = options;\n const bindingParser = makeBindingParser(interpolationConfig);\n const htmlParser = new HtmlParser();\n const parseResult = htmlParser.parse(template, templateUrl, {\n leadingTriviaChars: LEADING_TRIVIA_CHARS,\n ...options,\n tokenizeExpansionForms: true,\n tokenizeBlocks: options.enableBlockSyntax ?? true,\n tokenizeLet: options.enableLetSyntax ?? true,\n });\n if (!options.alwaysAttemptHtmlToR3AstConversion &&\n parseResult.errors &&\n parseResult.errors.length > 0) {\n const parsedTemplate = {\n interpolationConfig,\n preserveWhitespaces,\n errors: parseResult.errors,\n nodes: [],\n styleUrls: [],\n styles: [],\n ngContentSelectors: [],\n };\n if (options.collectCommentNodes) {\n parsedTemplate.commentNodes = [];\n }\n return parsedTemplate;\n }\n let rootNodes = parseResult.rootNodes;\n // We need to use the same `retainEmptyTokens` value for both parses to avoid\n // causing a mismatch when reusing source spans, even if the\n // `preserveSignificantWhitespace` behavior is different between the two\n // parses.\n const retainEmptyTokens = !(options.preserveSignificantWhitespace ?? true);\n // process i18n meta information (scan attributes, generate ids)\n // before we run whitespace removal process, because existing i18n\n // extraction process (ng extract-i18n) relies on a raw content to generate\n // message ids\n const i18nMetaVisitor = new I18nMetaVisitor(interpolationConfig, \n /* keepI18nAttrs */ !preserveWhitespaces, enableI18nLegacyMessageIdFormat, \n /* containerBlocks */ undefined, options.preserveSignificantWhitespace, retainEmptyTokens);\n const i18nMetaResult = i18nMetaVisitor.visitAllWithErrors(rootNodes);\n if (!options.alwaysAttemptHtmlToR3AstConversion &&\n i18nMetaResult.errors &&\n i18nMetaResult.errors.length > 0) {\n const parsedTemplate = {\n interpolationConfig,\n preserveWhitespaces,\n errors: i18nMetaResult.errors,\n nodes: [],\n styleUrls: [],\n styles: [],\n ngContentSelectors: [],\n };\n if (options.collectCommentNodes) {\n parsedTemplate.commentNodes = [];\n }\n return parsedTemplate;\n }\n rootNodes = i18nMetaResult.rootNodes;\n if (!preserveWhitespaces) {\n // Always preserve significant whitespace here because this is used to generate the `goog.getMsg`\n // and `$localize` calls which should retain significant whitespace in order to render the\n // correct output. We let this diverge from the message IDs generated earlier which might not\n // have preserved significant whitespace.\n //\n // This should use `visitAllWithSiblings` to set `WhitespaceVisitor` context correctly, however\n // there is an existing bug where significant whitespace is not properly retained in the JS\n // output of leading/trailing whitespace for ICU messages due to the existing lack of context\\\n // in `WhitespaceVisitor`. Using `visitAllWithSiblings` here would fix that bug and retain the\n // whitespace, however it would also change the runtime representation which we don't want to do\n // right now.\n rootNodes = visitAll(new WhitespaceVisitor(\n /* preserveSignificantWhitespace */ true, \n /* originalNodeMap */ undefined, \n /* requireContext */ false), rootNodes);\n // run i18n meta visitor again in case whitespaces are removed (because that might affect\n // generated i18n message content) and first pass indicated that i18n content is present in a\n // template. During this pass i18n IDs generated at the first pass will be preserved, so we can\n // mimic existing extraction process (ng extract-i18n)\n if (i18nMetaVisitor.hasI18nMeta) {\n rootNodes = visitAll(new I18nMetaVisitor(interpolationConfig, \n /* keepI18nAttrs */ false, \n /* enableI18nLegacyMessageIdFormat */ undefined, \n /* containerBlocks */ undefined, \n /* preserveSignificantWhitespace */ true, retainEmptyTokens), rootNodes);\n }\n }\n const { nodes, errors, styleUrls, styles, ngContentSelectors, commentNodes } = htmlAstToRender3Ast(rootNodes, bindingParser, { collectCommentNodes: !!options.collectCommentNodes });\n errors.push(...parseResult.errors, ...i18nMetaResult.errors);\n const parsedTemplate = {\n interpolationConfig,\n preserveWhitespaces,\n errors: errors.length > 0 ? errors : null,\n nodes,\n styleUrls,\n styles,\n ngContentSelectors,\n };\n if (options.collectCommentNodes) {\n parsedTemplate.commentNodes = commentNodes;\n }\n return parsedTemplate;\n}\nconst elementRegistry = new DomElementSchemaRegistry();\n/**\n * Construct a `BindingParser` with a default configuration.\n */\nfunction makeBindingParser(interpolationConfig = DEFAULT_INTERPOLATION_CONFIG) {\n return new BindingParser(new Parser(new Lexer()), interpolationConfig, elementRegistry, []);\n}\n\nconst COMPONENT_VARIABLE = '%COMP%';\nconst HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;\nconst CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;\nfunction baseDirectiveFields(meta, constantPool, bindingParser) {\n const definitionMap = new DefinitionMap();\n const selectors = parseSelectorToR3Selector(meta.selector);\n // e.g. `type: MyDirective`\n definitionMap.set('type', meta.type.value);\n // e.g. `selectors: [['', 'someDir', '']]`\n if (selectors.length > 0) {\n definitionMap.set('selectors', asLiteral(selectors));\n }\n if (meta.queries.length > 0) {\n // e.g. `contentQueries: (rf, ctx, dirIndex) => { ... }\n definitionMap.set('contentQueries', createContentQueriesFunction(meta.queries, constantPool, meta.name));\n }\n if (meta.viewQueries.length) {\n definitionMap.set('viewQuery', createViewQueriesFunction(meta.viewQueries, constantPool, meta.name));\n }\n // e.g. `hostBindings: (rf, ctx) => { ... }\n definitionMap.set('hostBindings', createHostBindingsFunction(meta.host, meta.typeSourceSpan, bindingParser, constantPool, meta.selector || '', meta.name, definitionMap));\n // e.g 'inputs: {a: 'a'}`\n definitionMap.set('inputs', conditionallyCreateDirectiveBindingLiteral(meta.inputs, true));\n // e.g 'outputs: {a: 'a'}`\n definitionMap.set('outputs', conditionallyCreateDirectiveBindingLiteral(meta.outputs));\n if (meta.exportAs !== null) {\n definitionMap.set('exportAs', literalArr(meta.exportAs.map((e) => literal(e))));\n }\n if (meta.isStandalone === false) {\n definitionMap.set('standalone', literal(false));\n }\n if (meta.isSignal) {\n definitionMap.set('signals', literal(true));\n }\n return definitionMap;\n}\n/**\n * Add features to the definition map.\n */\nfunction addFeatures(definitionMap, meta) {\n // e.g. `features: [NgOnChangesFeature]`\n const features = [];\n const providers = meta.providers;\n const viewProviders = meta.viewProviders;\n const inputKeys = Object.keys(meta.inputs);\n if (providers || viewProviders) {\n const args = [providers || new LiteralArrayExpr([])];\n if (viewProviders) {\n args.push(viewProviders);\n }\n features.push(importExpr(Identifiers.ProvidersFeature).callFn(args));\n }\n for (const key of inputKeys) {\n if (meta.inputs[key].transformFunction !== null) {\n features.push(importExpr(Identifiers.InputTransformsFeatureFeature));\n break;\n }\n }\n // Note: host directives feature needs to be inserted before the\n // inheritance feature to ensure the correct execution order.\n if (meta.hostDirectives?.length) {\n features.push(importExpr(Identifiers.HostDirectivesFeature)\n .callFn([createHostDirectivesFeatureArg(meta.hostDirectives)]));\n }\n if (meta.usesInheritance) {\n features.push(importExpr(Identifiers.InheritDefinitionFeature));\n }\n if (meta.fullInheritance) {\n features.push(importExpr(Identifiers.CopyDefinitionFeature));\n }\n if (meta.lifecycle.usesOnChanges) {\n features.push(importExpr(Identifiers.NgOnChangesFeature));\n }\n if ('externalStyles' in meta && meta.externalStyles?.length) {\n const externalStyleNodes = meta.externalStyles.map((externalStyle) => literal(externalStyle));\n features.push(importExpr(Identifiers.ExternalStylesFeature).callFn([literalArr(externalStyleNodes)]));\n }\n if (features.length) {\n definitionMap.set('features', literalArr(features));\n }\n}\n/**\n * Compile a directive for the render3 runtime as defined by the `R3DirectiveMetadata`.\n */\nfunction compileDirectiveFromMetadata(meta, constantPool, bindingParser) {\n const definitionMap = baseDirectiveFields(meta, constantPool, bindingParser);\n addFeatures(definitionMap, meta);\n const expression = importExpr(Identifiers.defineDirective)\n .callFn([definitionMap.toLiteralMap()], undefined, true);\n const type = createDirectiveType(meta);\n return { expression, type, statements: [] };\n}\n/**\n * Compile a component for the render3 runtime as defined by the `R3ComponentMetadata`.\n */\nfunction compileComponentFromMetadata(meta, constantPool, bindingParser) {\n const definitionMap = baseDirectiveFields(meta, constantPool, bindingParser);\n addFeatures(definitionMap, meta);\n const selector = meta.selector && CssSelector.parse(meta.selector);\n const firstSelector = selector && selector[0];\n // e.g. `attr: [\"class\", \".my.app\"]`\n // This is optional an only included if the first selector of a component specifies attributes.\n if (firstSelector) {\n const selectorAttributes = firstSelector.getAttrs();\n if (selectorAttributes.length) {\n definitionMap.set('attrs', constantPool.getConstLiteral(literalArr(selectorAttributes.map((value) => value != null ? literal(value) : literal(undefined))), \n /* forceShared */ true));\n }\n }\n // e.g. `template: function MyComponent_Template(_ctx, _cm) {...}`\n const templateTypeName = meta.name;\n let allDeferrableDepsFn = null;\n if (meta.defer.mode === 1 /* DeferBlockDepsEmitMode.PerComponent */ &&\n meta.defer.dependenciesFn !== null) {\n const fnName = `${templateTypeName}_DeferFn`;\n constantPool.statements.push(new DeclareVarStmt(fnName, meta.defer.dependenciesFn, undefined, StmtModifier.Final));\n allDeferrableDepsFn = variable(fnName);\n }\n // First the template is ingested into IR:\n const tpl = ingestComponent(meta.name, meta.template.nodes, constantPool, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.defer, allDeferrableDepsFn, meta.relativeTemplatePath, getTemplateSourceLocationsEnabled());\n // Then the IR is transformed to prepare it for cod egeneration.\n transform(tpl, CompilationJobKind.Tmpl);\n // Finally we emit the template function:\n const templateFn = emitTemplateFn(tpl, constantPool);\n if (tpl.contentSelectors !== null) {\n definitionMap.set('ngContentSelectors', tpl.contentSelectors);\n }\n definitionMap.set('decls', literal(tpl.root.decls));\n definitionMap.set('vars', literal(tpl.root.vars));\n if (tpl.consts.length > 0) {\n if (tpl.constsInitializers.length > 0) {\n definitionMap.set('consts', arrowFn([], [...tpl.constsInitializers, new ReturnStatement(literalArr(tpl.consts))]));\n }\n else {\n definitionMap.set('consts', literalArr(tpl.consts));\n }\n }\n definitionMap.set('template', templateFn);\n if (meta.declarationListEmitMode !== 3 /* DeclarationListEmitMode.RuntimeResolved */ &&\n meta.declarations.length > 0) {\n definitionMap.set('dependencies', compileDeclarationList(literalArr(meta.declarations.map((decl) => decl.type)), meta.declarationListEmitMode));\n }\n else if (meta.declarationListEmitMode === 3 /* DeclarationListEmitMode.RuntimeResolved */) {\n const args = [meta.type.value];\n if (meta.rawImports) {\n args.push(meta.rawImports);\n }\n definitionMap.set('dependencies', importExpr(Identifiers.getComponentDepsFactory).callFn(args));\n }\n if (meta.encapsulation === null) {\n meta.encapsulation = ViewEncapsulation.Emulated;\n }\n let hasStyles = !!meta.externalStyles?.length;\n // e.g. `styles: [str1, str2]`\n if (meta.styles && meta.styles.length) {\n const styleValues = meta.encapsulation == ViewEncapsulation.Emulated\n ? compileStyles(meta.styles, CONTENT_ATTR, HOST_ATTR)\n : meta.styles;\n const styleNodes = styleValues.reduce((result, style) => {\n if (style.trim().length > 0) {\n result.push(constantPool.getConstLiteral(literal(style)));\n }\n return result;\n }, []);\n if (styleNodes.length > 0) {\n hasStyles = true;\n definitionMap.set('styles', literalArr(styleNodes));\n }\n }\n if (!hasStyles && meta.encapsulation === ViewEncapsulation.Emulated) {\n // If there is no style, don't generate css selectors on elements\n meta.encapsulation = ViewEncapsulation.None;\n }\n // Only set view encapsulation if it's not the default value\n if (meta.encapsulation !== ViewEncapsulation.Emulated) {\n definitionMap.set('encapsulation', literal(meta.encapsulation));\n }\n // e.g. `animation: [trigger('123', [])]`\n if (meta.animations !== null) {\n definitionMap.set('data', literalMap([{ key: 'animation', value: meta.animations, quoted: false }]));\n }\n // Setting change detection flag\n if (meta.changeDetection !== null) {\n if (typeof meta.changeDetection === 'number' &&\n meta.changeDetection !== ChangeDetectionStrategy.Default) {\n // changeDetection is resolved during analysis. Only set it if not the default.\n definitionMap.set('changeDetection', literal(meta.changeDetection));\n }\n else if (typeof meta.changeDetection === 'object') {\n // changeDetection is not resolved during analysis (e.g., we are in local compilation mode).\n // So place it as is.\n definitionMap.set('changeDetection', meta.changeDetection);\n }\n }\n const expression = importExpr(Identifiers.defineComponent)\n .callFn([definitionMap.toLiteralMap()], undefined, true);\n const type = createComponentType(meta);\n return { expression, type, statements: [] };\n}\n/**\n * Creates the type specification from the component meta. This type is inserted into .d.ts files\n * to be consumed by upstream compilations.\n */\nfunction createComponentType(meta) {\n const typeParams = createBaseDirectiveTypeParams(meta);\n typeParams.push(stringArrayAsType(meta.template.ngContentSelectors));\n typeParams.push(expressionType(literal(meta.isStandalone)));\n typeParams.push(createHostDirectivesType(meta));\n // TODO(signals): Always include this metadata starting with v17. Right\n // now Angular v16.0.x does not support this field and library distributions\n // would then be incompatible with v16.0.x framework users.\n if (meta.isSignal) {\n typeParams.push(expressionType(literal(meta.isSignal)));\n }\n return expressionType(importExpr(Identifiers.ComponentDeclaration, typeParams));\n}\n/**\n * Compiles the array literal of declarations into an expression according to the provided emit\n * mode.\n */\nfunction compileDeclarationList(list, mode) {\n switch (mode) {\n case 0 /* DeclarationListEmitMode.Direct */:\n // directives: [MyDir],\n return list;\n case 1 /* DeclarationListEmitMode.Closure */:\n // directives: function () { return [MyDir]; }\n return arrowFn([], list);\n case 2 /* DeclarationListEmitMode.ClosureResolved */:\n // directives: function () { return [MyDir].map(ng.resolveForwardRef); }\n const resolvedList = list.prop('map').callFn([importExpr(Identifiers.resolveForwardRef)]);\n return arrowFn([], resolvedList);\n case 3 /* DeclarationListEmitMode.RuntimeResolved */:\n throw new Error(`Unsupported with an array of pre-resolved dependencies`);\n }\n}\nfunction stringAsType(str) {\n return expressionType(literal(str));\n}\nfunction stringMapAsLiteralExpression(map) {\n const mapValues = Object.keys(map).map((key) => {\n const value = Array.isArray(map[key]) ? map[key][0] : map[key];\n return {\n key,\n value: literal(value),\n quoted: true,\n };\n });\n return literalMap(mapValues);\n}\nfunction stringArrayAsType(arr) {\n return arr.length > 0\n ? expressionType(literalArr(arr.map((value) => literal(value))))\n : NONE_TYPE;\n}\nfunction createBaseDirectiveTypeParams(meta) {\n // On the type side, remove newlines from the selector as it will need to fit into a TypeScript\n // string literal, which must be on one line.\n const selectorForType = meta.selector !== null ? meta.selector.replace(/\\n/g, '') : null;\n return [\n typeWithParameters(meta.type.type, meta.typeArgumentCount),\n selectorForType !== null ? stringAsType(selectorForType) : NONE_TYPE,\n meta.exportAs !== null ? stringArrayAsType(meta.exportAs) : NONE_TYPE,\n expressionType(getInputsTypeExpression(meta)),\n expressionType(stringMapAsLiteralExpression(meta.outputs)),\n stringArrayAsType(meta.queries.map((q) => q.propertyName)),\n ];\n}\nfunction getInputsTypeExpression(meta) {\n return literalMap(Object.keys(meta.inputs).map((key) => {\n const value = meta.inputs[key];\n const values = [\n { key: 'alias', value: literal(value.bindingPropertyName), quoted: true },\n { key: 'required', value: literal(value.required), quoted: true },\n ];\n // TODO(legacy-partial-output-inputs): Consider always emitting this information,\n // or leaving it as is.\n if (value.isSignal) {\n values.push({ key: 'isSignal', value: literal(value.isSignal), quoted: true });\n }\n return { key, value: literalMap(values), quoted: true };\n }));\n}\n/**\n * Creates the type specification from the directive meta. This type is inserted into .d.ts files\n * to be consumed by upstream compilations.\n */\nfunction createDirectiveType(meta) {\n const typeParams = createBaseDirectiveTypeParams(meta);\n // Directives have no NgContentSelectors slot, but instead express a `never` type\n // so that future fields align.\n typeParams.push(NONE_TYPE);\n typeParams.push(expressionType(literal(meta.isStandalone)));\n typeParams.push(createHostDirectivesType(meta));\n // TODO(signals): Always include this metadata starting with v17. Right\n // now Angular v16.0.x does not support this field and library distributions\n // would then be incompatible with v16.0.x framework users.\n if (meta.isSignal) {\n typeParams.push(expressionType(literal(meta.isSignal)));\n }\n return expressionType(importExpr(Identifiers.DirectiveDeclaration, typeParams));\n}\n// Return a host binding function or null if one is not necessary.\nfunction createHostBindingsFunction(hostBindingsMetadata, typeSourceSpan, bindingParser, constantPool, selector, name, definitionMap) {\n const bindings = bindingParser.createBoundHostProperties(hostBindingsMetadata.properties, typeSourceSpan);\n // Calculate host event bindings\n const eventBindings = bindingParser.createDirectiveHostEventAsts(hostBindingsMetadata.listeners, typeSourceSpan);\n // The parser for host bindings treats class and style attributes specially -- they are\n // extracted into these separate fields. This is not the case for templates, so the compiler can\n // actually already handle these special attributes internally. Therefore, we just drop them\n // into the attributes map.\n if (hostBindingsMetadata.specialAttributes.styleAttr) {\n hostBindingsMetadata.attributes['style'] = literal(hostBindingsMetadata.specialAttributes.styleAttr);\n }\n if (hostBindingsMetadata.specialAttributes.classAttr) {\n hostBindingsMetadata.attributes['class'] = literal(hostBindingsMetadata.specialAttributes.classAttr);\n }\n const hostJob = ingestHostBinding({\n componentName: name,\n componentSelector: selector,\n properties: bindings,\n events: eventBindings,\n attributes: hostBindingsMetadata.attributes,\n }, bindingParser, constantPool);\n transform(hostJob, CompilationJobKind.Host);\n definitionMap.set('hostAttrs', hostJob.root.attributes);\n const varCount = hostJob.root.vars;\n if (varCount !== null && varCount > 0) {\n definitionMap.set('hostVars', literal(varCount));\n }\n return emitHostBindingFunction(hostJob);\n}\nconst HOST_REG_EXP = /^(?:\\[([^\\]]+)\\])|(?:\\(([^\\)]+)\\))$/;\nfunction parseHostBindings(host) {\n const attributes = {};\n const listeners = {};\n const properties = {};\n const specialAttributes = {};\n for (const key of Object.keys(host)) {\n const value = host[key];\n const matches = key.match(HOST_REG_EXP);\n if (matches === null) {\n switch (key) {\n case 'class':\n if (typeof value !== 'string') {\n // TODO(alxhub): make this a diagnostic.\n throw new Error(`Class binding must be string`);\n }\n specialAttributes.classAttr = value;\n break;\n case 'style':\n if (typeof value !== 'string') {\n // TODO(alxhub): make this a diagnostic.\n throw new Error(`Style binding must be string`);\n }\n specialAttributes.styleAttr = value;\n break;\n default:\n if (typeof value === 'string') {\n attributes[key] = literal(value);\n }\n else {\n attributes[key] = value;\n }\n }\n }\n else if (matches[1 /* HostBindingGroup.Binding */] != null) {\n if (typeof value !== 'string') {\n // TODO(alxhub): make this a diagnostic.\n throw new Error(`Property binding must be string`);\n }\n // synthetic properties (the ones that have a `@` as a prefix)\n // are still treated the same as regular properties. Therefore\n // there is no point in storing them in a separate map.\n properties[matches[1 /* HostBindingGroup.Binding */]] = value;\n }\n else if (matches[2 /* HostBindingGroup.Event */] != null) {\n if (typeof value !== 'string') {\n // TODO(alxhub): make this a diagnostic.\n throw new Error(`Event binding must be string`);\n }\n listeners[matches[2 /* HostBindingGroup.Event */]] = value;\n }\n }\n return { attributes, listeners, properties, specialAttributes };\n}\n/**\n * Verifies host bindings and returns the list of errors (if any). Empty array indicates that a\n * given set of host bindings has no errors.\n *\n * @param bindings set of host bindings to verify.\n * @param sourceSpan source span where host bindings were defined.\n * @returns array of errors associated with a given set of host bindings.\n */\nfunction verifyHostBindings(bindings, sourceSpan) {\n // TODO: abstract out host bindings verification logic and use it instead of\n // creating events and properties ASTs to detect errors (FW-996)\n const bindingParser = makeBindingParser();\n bindingParser.createDirectiveHostEventAsts(bindings.listeners, sourceSpan);\n bindingParser.createBoundHostProperties(bindings.properties, sourceSpan);\n return bindingParser.errors;\n}\nfunction compileStyles(styles, selector, hostSelector) {\n const shadowCss = new ShadowCss();\n return styles.map((style) => {\n return shadowCss.shimCssText(style, selector, hostSelector);\n });\n}\n/**\n * Encapsulates a CSS stylesheet with emulated view encapsulation.\n * This allows a stylesheet to be used with an Angular component that\n * is using the `ViewEncapsulation.Emulated` mode.\n *\n * @param style The content of a CSS stylesheet.\n * @param componentIdentifier The identifier to use within the CSS rules.\n * @returns The encapsulated content for the style.\n */\nfunction encapsulateStyle(style, componentIdentifier) {\n const shadowCss = new ShadowCss();\n const selector = componentIdentifier\n ? CONTENT_ATTR.replace(COMPONENT_VARIABLE, componentIdentifier)\n : CONTENT_ATTR;\n const hostSelector = componentIdentifier\n ? HOST_ATTR.replace(COMPONENT_VARIABLE, componentIdentifier)\n : HOST_ATTR;\n return shadowCss.shimCssText(style, selector, hostSelector);\n}\nfunction createHostDirectivesType(meta) {\n if (!meta.hostDirectives?.length) {\n return NONE_TYPE;\n }\n return expressionType(literalArr(meta.hostDirectives.map((hostMeta) => literalMap([\n { key: 'directive', value: typeofExpr(hostMeta.directive.type), quoted: false },\n {\n key: 'inputs',\n value: stringMapAsLiteralExpression(hostMeta.inputs || {}),\n quoted: false,\n },\n {\n key: 'outputs',\n value: stringMapAsLiteralExpression(hostMeta.outputs || {}),\n quoted: false,\n },\n ]))));\n}\nfunction createHostDirectivesFeatureArg(hostDirectives) {\n const expressions = [];\n let hasForwardRef = false;\n for (const current of hostDirectives) {\n // Use a shorthand if there are no inputs or outputs.\n if (!current.inputs && !current.outputs) {\n expressions.push(current.directive.type);\n }\n else {\n const keys = [{ key: 'directive', value: current.directive.type, quoted: false }];\n if (current.inputs) {\n const inputsLiteral = createHostDirectivesMappingArray(current.inputs);\n if (inputsLiteral) {\n keys.push({ key: 'inputs', value: inputsLiteral, quoted: false });\n }\n }\n if (current.outputs) {\n const outputsLiteral = createHostDirectivesMappingArray(current.outputs);\n if (outputsLiteral) {\n keys.push({ key: 'outputs', value: outputsLiteral, quoted: false });\n }\n }\n expressions.push(literalMap(keys));\n }\n if (current.isForwardReference) {\n hasForwardRef = true;\n }\n }\n // If there's a forward reference, we generate a `function() { return [HostDir] }`,\n // otherwise we can save some bytes by using a plain array, e.g. `[HostDir]`.\n return hasForwardRef\n ? new FunctionExpr([], [new ReturnStatement(literalArr(expressions))])\n : literalArr(expressions);\n}\n/**\n * Converts an input/output mapping object literal into an array where the even keys are the\n * public name of the binding and the odd ones are the name it was aliased to. E.g.\n * `{inputOne: 'aliasOne', inputTwo: 'aliasTwo'}` will become\n * `['inputOne', 'aliasOne', 'inputTwo', 'aliasTwo']`.\n *\n * This conversion is necessary, because hosts bind to the public name of the host directive and\n * keeping the mapping in an object literal will break for apps using property renaming.\n */\nfunction createHostDirectivesMappingArray(mapping) {\n const elements = [];\n for (const publicName in mapping) {\n if (mapping.hasOwnProperty(publicName)) {\n elements.push(literal(publicName), literal(mapping[publicName]));\n }\n }\n return elements.length > 0 ? literalArr(elements) : null;\n}\n/**\n * Compiles the dependency resolver function for a defer block.\n */\nfunction compileDeferResolverFunction(meta) {\n const depExpressions = [];\n if (meta.mode === 0 /* DeferBlockDepsEmitMode.PerBlock */) {\n for (const dep of meta.dependencies) {\n if (dep.isDeferrable) {\n // Callback function, e.g. `m () => m.MyCmp;`.\n const innerFn = arrowFn(\n // Default imports are always accessed through the `default` property.\n [new FnParam('m', DYNAMIC_TYPE)], variable('m').prop(dep.isDefaultImport ? 'default' : dep.symbolName));\n // Dynamic import, e.g. `import('./a').then(...)`.\n const importExpr = new DynamicImportExpr(dep.importPath).prop('then').callFn([innerFn]);\n depExpressions.push(importExpr);\n }\n else {\n // Non-deferrable symbol, just use a reference to the type. Note that it's important to\n // go through `typeReference`, rather than `symbolName` in order to preserve the\n // original reference within the source file.\n depExpressions.push(dep.typeReference);\n }\n }\n }\n else {\n for (const { symbolName, importPath, isDefaultImport } of meta.dependencies) {\n // Callback function, e.g. `m () => m.MyCmp;`.\n const innerFn = arrowFn([new FnParam('m', DYNAMIC_TYPE)], variable('m').prop(isDefaultImport ? 'default' : symbolName));\n // Dynamic import, e.g. `import('./a').then(...)`.\n const importExpr = new DynamicImportExpr(importPath).prop('then').callFn([innerFn]);\n depExpressions.push(importExpr);\n }\n }\n return arrowFn([], literalArr(depExpressions));\n}\n\n/**\n * Computes a difference between full list (first argument) and\n * list of items that should be excluded from the full list (second\n * argument).\n */\nfunction diff(fullList, itemsToExclude) {\n const exclude = new Set(itemsToExclude);\n return fullList.filter((item) => !exclude.has(item));\n}\n/**\n * Given a template string and a set of available directive selectors,\n * computes a list of matching selectors and splits them into 2 buckets:\n * (1) eagerly used in a template and (2) directives used only in defer\n * blocks. Similarly, returns 2 lists of pipes (eager and deferrable).\n *\n * Note: deferrable directives selectors and pipes names used in `@defer`\n * blocks are **candidates** and API caller should make sure that:\n *\n * * A Component where a given template is defined is standalone\n * * Underlying dependency classes are also standalone\n * * Dependency class symbols are not eagerly used in a TS file\n * where a host component (that owns the template) is located\n */\nfunction findMatchingDirectivesAndPipes(template, directiveSelectors) {\n const matcher = new SelectorMatcher();\n for (const selector of directiveSelectors) {\n // Create a fake directive instance to account for the logic inside\n // of the `R3TargetBinder` class (which invokes the `hasBindingPropertyName`\n // function internally).\n const fakeDirective = {\n selector,\n exportAs: null,\n inputs: {\n hasBindingPropertyName() {\n return false;\n },\n },\n outputs: {\n hasBindingPropertyName() {\n return false;\n },\n },\n };\n matcher.addSelectables(CssSelector.parse(selector), [fakeDirective]);\n }\n const parsedTemplate = parseTemplate(template, '' /* templateUrl */);\n const binder = new R3TargetBinder(matcher);\n const bound = binder.bind({ template: parsedTemplate.nodes });\n const eagerDirectiveSelectors = bound.getEagerlyUsedDirectives().map((dir) => dir.selector);\n const allMatchedDirectiveSelectors = bound.getUsedDirectives().map((dir) => dir.selector);\n const eagerPipes = bound.getEagerlyUsedPipes();\n return {\n directives: {\n regular: eagerDirectiveSelectors,\n deferCandidates: diff(allMatchedDirectiveSelectors, eagerDirectiveSelectors),\n },\n pipes: {\n regular: eagerPipes,\n deferCandidates: diff(bound.getUsedPipes(), eagerPipes),\n },\n };\n}\n/**\n * Processes `Target`s with a given set of directives and performs a binding operation, which\n * returns an object similar to TypeScript's `ts.TypeChecker` that contains knowledge about the\n * target.\n */\nclass R3TargetBinder {\n directiveMatcher;\n constructor(directiveMatcher) {\n this.directiveMatcher = directiveMatcher;\n }\n /**\n * Perform a binding operation on the given `Target` and return a `BoundTarget` which contains\n * metadata about the types referenced in the template.\n */\n bind(target) {\n if (!target.template) {\n // TODO(alxhub): handle targets which contain things like HostBindings, etc.\n throw new Error('Binding without a template not yet supported');\n }\n // First, parse the template into a `Scope` structure. This operation captures the syntactic\n // scopes in the template and makes them available for later use.\n const scope = Scope.apply(target.template);\n // Use the `Scope` to extract the entities present at every level of the template.\n const scopedNodeEntities = extractScopedNodeEntities(scope);\n // Next, perform directive matching on the template using the `DirectiveBinder`. This returns:\n // - directives: Map of nodes (elements & ng-templates) to the directives on them.\n // - bindings: Map of inputs, outputs, and attributes to the directive/element that claims\n // them. TODO(alxhub): handle multiple directives claiming an input/output/etc.\n // - references: Map of #references to their targets.\n const { directives, eagerDirectives, bindings, references } = DirectiveBinder.apply(target.template, this.directiveMatcher);\n // Finally, run the TemplateBinder to bind references, variables, and other entities within the\n // template. This extracts all the metadata that doesn't depend on directive matching.\n const { expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks } = TemplateBinder.applyWithScope(target.template, scope);\n return new R3BoundTarget(target, directives, eagerDirectives, bindings, references, expressions, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferBlocks);\n }\n}\n/**\n * Represents a binding scope within a template.\n *\n * Any variables, references, or other named entities declared within the template will\n * be captured and available by name in `namedEntities`. Additionally, child templates will\n * be analyzed and have their child `Scope`s available in `childScopes`.\n */\nclass Scope {\n parentScope;\n rootNode;\n /**\n * Named members of the `Scope`, such as `Reference`s or `Variable`s.\n */\n namedEntities = new Map();\n /**\n * Set of elements that belong to this scope.\n */\n elementsInScope = new Set();\n /**\n * Child `Scope`s for immediately nested `ScopedNode`s.\n */\n childScopes = new Map();\n /** Whether this scope is deferred or if any of its ancestors are deferred. */\n isDeferred;\n constructor(parentScope, rootNode) {\n this.parentScope = parentScope;\n this.rootNode = rootNode;\n this.isDeferred =\n parentScope !== null && parentScope.isDeferred ? true : rootNode instanceof DeferredBlock;\n }\n static newRootScope() {\n return new Scope(null, null);\n }\n /**\n * Process a template (either as a `Template` sub-template with variables, or a plain array of\n * template `Node`s) and construct its `Scope`.\n */\n static apply(template) {\n const scope = Scope.newRootScope();\n scope.ingest(template);\n return scope;\n }\n /**\n * Internal method to process the scoped node and populate the `Scope`.\n */\n ingest(nodeOrNodes) {\n if (nodeOrNodes instanceof Template) {\n // Variables on an <ng-template> are defined in the inner scope.\n nodeOrNodes.variables.forEach((node) => this.visitVariable(node));\n // Process the nodes of the template.\n nodeOrNodes.children.forEach((node) => node.visit(this));\n }\n else if (nodeOrNodes instanceof IfBlockBranch) {\n if (nodeOrNodes.expressionAlias !== null) {\n this.visitVariable(nodeOrNodes.expressionAlias);\n }\n nodeOrNodes.children.forEach((node) => node.visit(this));\n }\n else if (nodeOrNodes instanceof ForLoopBlock) {\n this.visitVariable(nodeOrNodes.item);\n nodeOrNodes.contextVariables.forEach((v) => this.visitVariable(v));\n nodeOrNodes.children.forEach((node) => node.visit(this));\n }\n else if (nodeOrNodes instanceof SwitchBlockCase ||\n nodeOrNodes instanceof ForLoopBlockEmpty ||\n nodeOrNodes instanceof DeferredBlock ||\n nodeOrNodes instanceof DeferredBlockError ||\n nodeOrNodes instanceof DeferredBlockPlaceholder ||\n nodeOrNodes instanceof DeferredBlockLoading ||\n nodeOrNodes instanceof Content) {\n nodeOrNodes.children.forEach((node) => node.visit(this));\n }\n else {\n // No overarching `Template` instance, so process the nodes directly.\n nodeOrNodes.forEach((node) => node.visit(this));\n }\n }\n visitElement(element) {\n // `Element`s in the template may have `Reference`s which are captured in the scope.\n element.references.forEach((node) => this.visitReference(node));\n // Recurse into the `Element`'s children.\n element.children.forEach((node) => node.visit(this));\n this.elementsInScope.add(element);\n }\n visitTemplate(template) {\n // References on a <ng-template> are defined in the outer scope, so capture them before\n // processing the template's child scope.\n template.references.forEach((node) => this.visitReference(node));\n // Next, create an inner scope and process the template within it.\n this.ingestScopedNode(template);\n }\n visitVariable(variable) {\n // Declare the variable if it's not already.\n this.maybeDeclare(variable);\n }\n visitReference(reference) {\n // Declare the variable if it's not already.\n this.maybeDeclare(reference);\n }\n visitDeferredBlock(deferred) {\n this.ingestScopedNode(deferred);\n deferred.placeholder?.visit(this);\n deferred.loading?.visit(this);\n deferred.error?.visit(this);\n }\n visitDeferredBlockPlaceholder(block) {\n this.ingestScopedNode(block);\n }\n visitDeferredBlockError(block) {\n this.ingestScopedNode(block);\n }\n visitDeferredBlockLoading(block) {\n this.ingestScopedNode(block);\n }\n visitSwitchBlock(block) {\n block.cases.forEach((node) => node.visit(this));\n }\n visitSwitchBlockCase(block) {\n this.ingestScopedNode(block);\n }\n visitForLoopBlock(block) {\n this.ingestScopedNode(block);\n block.empty?.visit(this);\n }\n visitForLoopBlockEmpty(block) {\n this.ingestScopedNode(block);\n }\n visitIfBlock(block) {\n block.branches.forEach((node) => node.visit(this));\n }\n visitIfBlockBranch(block) {\n this.ingestScopedNode(block);\n }\n visitContent(content) {\n this.ingestScopedNode(content);\n }\n visitLetDeclaration(decl) {\n this.maybeDeclare(decl);\n }\n // Unused visitors.\n visitBoundAttribute(attr) { }\n visitBoundEvent(event) { }\n visitBoundText(text) { }\n visitText(text) { }\n visitTextAttribute(attr) { }\n visitIcu(icu) { }\n visitDeferredTrigger(trigger) { }\n visitUnknownBlock(block) { }\n maybeDeclare(thing) {\n // Declare something with a name, as long as that name isn't taken.\n if (!this.namedEntities.has(thing.name)) {\n this.namedEntities.set(thing.name, thing);\n }\n }\n /**\n * Look up a variable within this `Scope`.\n *\n * This can recurse into a parent `Scope` if it's available.\n */\n lookup(name) {\n if (this.namedEntities.has(name)) {\n // Found in the local scope.\n return this.namedEntities.get(name);\n }\n else if (this.parentScope !== null) {\n // Not in the local scope, but there's a parent scope so check there.\n return this.parentScope.lookup(name);\n }\n else {\n // At the top level and it wasn't found.\n return null;\n }\n }\n /**\n * Get the child scope for a `ScopedNode`.\n *\n * This should always be defined.\n */\n getChildScope(node) {\n const res = this.childScopes.get(node);\n if (res === undefined) {\n throw new Error(`Assertion error: child scope for ${node} not found`);\n }\n return res;\n }\n ingestScopedNode(node) {\n const scope = new Scope(this, node);\n scope.ingest(node);\n this.childScopes.set(node, scope);\n }\n}\n/**\n * Processes a template and matches directives on nodes (elements and templates).\n *\n * Usually used via the static `apply()` method.\n */\nclass DirectiveBinder {\n matcher;\n directives;\n eagerDirectives;\n bindings;\n references;\n // Indicates whether we are visiting elements within a `defer` block\n isInDeferBlock = false;\n constructor(matcher, directives, eagerDirectives, bindings, references) {\n this.matcher = matcher;\n this.directives = directives;\n this.eagerDirectives = eagerDirectives;\n this.bindings = bindings;\n this.references = references;\n }\n /**\n * Process a template (list of `Node`s) and perform directive matching against each node.\n *\n * @param template the list of template `Node`s to match (recursively).\n * @param selectorMatcher a `SelectorMatcher` containing the directives that are in scope for\n * this template.\n * @returns three maps which contain information about directives in the template: the\n * `directives` map which lists directives matched on each node, the `bindings` map which\n * indicates which directives claimed which bindings (inputs, outputs, etc), and the `references`\n * map which resolves #references (`Reference`s) within the template to the named directive or\n * template node.\n */\n static apply(template, selectorMatcher) {\n const directives = new Map();\n const bindings = new Map();\n const references = new Map();\n const eagerDirectives = [];\n const matcher = new DirectiveBinder(selectorMatcher, directives, eagerDirectives, bindings, references);\n matcher.ingest(template);\n return { directives, eagerDirectives, bindings, references };\n }\n ingest(template) {\n template.forEach((node) => node.visit(this));\n }\n visitElement(element) {\n this.visitElementOrTemplate(element);\n }\n visitTemplate(template) {\n this.visitElementOrTemplate(template);\n }\n visitElementOrTemplate(node) {\n // First, determine the HTML shape of the node for the purpose of directive matching.\n // Do this by building up a `CssSelector` for the node.\n const cssSelector = createCssSelectorFromNode(node);\n // Next, use the `SelectorMatcher` to get the list of directives on the node.\n const directives = [];\n this.matcher.match(cssSelector, (_selector, results) => directives.push(...results));\n if (directives.length > 0) {\n this.directives.set(node, directives);\n if (!this.isInDeferBlock) {\n this.eagerDirectives.push(...directives);\n }\n }\n // Resolve any references that are created on this node.\n node.references.forEach((ref) => {\n let dirTarget = null;\n // If the reference expression is empty, then it matches the \"primary\" directive on the node\n // (if there is one). Otherwise it matches the host node itself (either an element or\n // <ng-template> node).\n if (ref.value.trim() === '') {\n // This could be a reference to a component if there is one.\n dirTarget = directives.find((dir) => dir.isComponent) || null;\n }\n else {\n // This should be a reference to a directive exported via exportAs.\n dirTarget =\n directives.find((dir) => dir.exportAs !== null && dir.exportAs.some((value) => value === ref.value)) || null;\n // Check if a matching directive was found.\n if (dirTarget === null) {\n // No matching directive was found - this reference points to an unknown target. Leave it\n // unmapped.\n return;\n }\n }\n if (dirTarget !== null) {\n // This reference points to a directive.\n this.references.set(ref, { directive: dirTarget, node });\n }\n else {\n // This reference points to the node itself.\n this.references.set(ref, node);\n }\n });\n const setAttributeBinding = (attribute, ioType) => {\n const dir = directives.find((dir) => dir[ioType].hasBindingPropertyName(attribute.name));\n const binding = dir !== undefined ? dir : node;\n this.bindings.set(attribute, binding);\n };\n // Node inputs (bound attributes) and text attributes can be bound to an\n // input on a directive.\n node.inputs.forEach((input) => setAttributeBinding(input, 'inputs'));\n node.attributes.forEach((attr) => setAttributeBinding(attr, 'inputs'));\n if (node instanceof Template) {\n node.templateAttrs.forEach((attr) => setAttributeBinding(attr, 'inputs'));\n }\n // Node outputs (bound events) can be bound to an output on a directive.\n node.outputs.forEach((output) => setAttributeBinding(output, 'outputs'));\n // Recurse into the node's children.\n node.children.forEach((child) => child.visit(this));\n }\n visitDeferredBlock(deferred) {\n const wasInDeferBlock = this.isInDeferBlock;\n this.isInDeferBlock = true;\n deferred.children.forEach((child) => child.visit(this));\n this.isInDeferBlock = wasInDeferBlock;\n deferred.placeholder?.visit(this);\n deferred.loading?.visit(this);\n deferred.error?.visit(this);\n }\n visitDeferredBlockPlaceholder(block) {\n block.children.forEach((child) => child.visit(this));\n }\n visitDeferredBlockError(block) {\n block.children.forEach((child) => child.visit(this));\n }\n visitDeferredBlockLoading(block) {\n block.children.forEach((child) => child.visit(this));\n }\n visitSwitchBlock(block) {\n block.cases.forEach((node) => node.visit(this));\n }\n visitSwitchBlockCase(block) {\n block.children.forEach((node) => node.visit(this));\n }\n visitForLoopBlock(block) {\n block.item.visit(this);\n block.contextVariables.forEach((v) => v.visit(this));\n block.children.forEach((node) => node.visit(this));\n block.empty?.visit(this);\n }\n visitForLoopBlockEmpty(block) {\n block.children.forEach((node) => node.visit(this));\n }\n visitIfBlock(block) {\n block.branches.forEach((node) => node.visit(this));\n }\n visitIfBlockBranch(block) {\n block.expressionAlias?.visit(this);\n block.children.forEach((node) => node.visit(this));\n }\n visitContent(content) {\n content.children.forEach((child) => child.visit(this));\n }\n // Unused visitors.\n visitVariable(variable) { }\n visitReference(reference) { }\n visitTextAttribute(attribute) { }\n visitBoundAttribute(attribute) { }\n visitBoundEvent(attribute) { }\n visitBoundAttributeOrEvent(node) { }\n visitText(text) { }\n visitBoundText(text) { }\n visitIcu(icu) { }\n visitDeferredTrigger(trigger) { }\n visitUnknownBlock(block) { }\n visitLetDeclaration(decl) { }\n}\n/**\n * Processes a template and extract metadata about expressions and symbols within.\n *\n * This is a companion to the `DirectiveBinder` that doesn't require knowledge of directives matched\n * within the template in order to operate.\n *\n * Expressions are visited by the superclass `RecursiveAstVisitor`, with custom logic provided\n * by overridden methods from that visitor.\n */\nclass TemplateBinder extends RecursiveAstVisitor {\n bindings;\n symbols;\n usedPipes;\n eagerPipes;\n deferBlocks;\n nestingLevel;\n scope;\n rootNode;\n level;\n visitNode;\n constructor(bindings, symbols, usedPipes, eagerPipes, deferBlocks, nestingLevel, scope, rootNode, level) {\n super();\n this.bindings = bindings;\n this.symbols = symbols;\n this.usedPipes = usedPipes;\n this.eagerPipes = eagerPipes;\n this.deferBlocks = deferBlocks;\n this.nestingLevel = nestingLevel;\n this.scope = scope;\n this.rootNode = rootNode;\n this.level = level;\n // Save a bit of processing time by constructing this closure in advance.\n this.visitNode = (node) => node.visit(this);\n }\n // This method is defined to reconcile the type of TemplateBinder since both\n // RecursiveAstVisitor and Visitor define the visit() method in their\n // interfaces.\n visit(node, context) {\n if (node instanceof AST) {\n node.visit(this, context);\n }\n else {\n node.visit(this);\n }\n }\n /**\n * Process a template and extract metadata about expressions and symbols within.\n *\n * @param nodes the nodes of the template to process\n * @param scope the `Scope` of the template being processed.\n * @returns three maps which contain metadata about the template: `expressions` which interprets\n * special `AST` nodes in expressions as pointing to references or variables declared within the\n * template, `symbols` which maps those variables and references to the nested `Template` which\n * declares them, if any, and `nestingLevel` which associates each `Template` with a integer\n * nesting level (how many levels deep within the template structure the `Template` is), starting\n * at 1.\n */\n static applyWithScope(nodes, scope) {\n const expressions = new Map();\n const symbols = new Map();\n const nestingLevel = new Map();\n const usedPipes = new Set();\n const eagerPipes = new Set();\n const template = nodes instanceof Template ? nodes : null;\n const deferBlocks = [];\n // The top-level template has nesting level 0.\n const binder = new TemplateBinder(expressions, symbols, usedPipes, eagerPipes, deferBlocks, nestingLevel, scope, template, 0);\n binder.ingest(nodes);\n return { expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks };\n }\n ingest(nodeOrNodes) {\n if (nodeOrNodes instanceof Template) {\n // For <ng-template>s, process only variables and child nodes. Inputs, outputs, templateAttrs,\n // and references were all processed in the scope of the containing template.\n nodeOrNodes.variables.forEach(this.visitNode);\n nodeOrNodes.children.forEach(this.visitNode);\n // Set the nesting level.\n this.nestingLevel.set(nodeOrNodes, this.level);\n }\n else if (nodeOrNodes instanceof IfBlockBranch) {\n if (nodeOrNodes.expressionAlias !== null) {\n this.visitNode(nodeOrNodes.expressionAlias);\n }\n nodeOrNodes.children.forEach(this.visitNode);\n this.nestingLevel.set(nodeOrNodes, this.level);\n }\n else if (nodeOrNodes instanceof ForLoopBlock) {\n this.visitNode(nodeOrNodes.item);\n nodeOrNodes.contextVariables.forEach((v) => this.visitNode(v));\n nodeOrNodes.trackBy.visit(this);\n nodeOrNodes.children.forEach(this.visitNode);\n this.nestingLevel.set(nodeOrNodes, this.level);\n }\n else if (nodeOrNodes instanceof DeferredBlock) {\n if (this.scope.rootNode !== nodeOrNodes) {\n throw new Error(`Assertion error: resolved incorrect scope for deferred block ${nodeOrNodes}`);\n }\n this.deferBlocks.push([nodeOrNodes, this.scope]);\n nodeOrNodes.children.forEach((node) => node.visit(this));\n this.nestingLevel.set(nodeOrNodes, this.level);\n }\n else if (nodeOrNodes instanceof SwitchBlockCase ||\n nodeOrNodes instanceof ForLoopBlockEmpty ||\n nodeOrNodes instanceof DeferredBlockError ||\n nodeOrNodes instanceof DeferredBlockPlaceholder ||\n nodeOrNodes instanceof DeferredBlockLoading ||\n nodeOrNodes instanceof Content) {\n nodeOrNodes.children.forEach((node) => node.visit(this));\n this.nestingLevel.set(nodeOrNodes, this.level);\n }\n else {\n // Visit each node from the top-level template.\n nodeOrNodes.forEach(this.visitNode);\n }\n }\n visitElement(element) {\n // Visit the inputs, outputs, and children of the element.\n element.inputs.forEach(this.visitNode);\n element.outputs.forEach(this.visitNode);\n element.children.forEach(this.visitNode);\n element.references.forEach(this.visitNode);\n }\n visitTemplate(template) {\n // First, visit inputs, outputs and template attributes of the template node.\n template.inputs.forEach(this.visitNode);\n template.outputs.forEach(this.visitNode);\n template.templateAttrs.forEach(this.visitNode);\n template.references.forEach(this.visitNode);\n // Next, recurse into the template.\n this.ingestScopedNode(template);\n }\n visitVariable(variable) {\n // Register the `Variable` as a symbol in the current `Template`.\n if (this.rootNode !== null) {\n this.symbols.set(variable, this.rootNode);\n }\n }\n visitReference(reference) {\n // Register the `Reference` as a symbol in the current `Template`.\n if (this.rootNode !== null) {\n this.symbols.set(reference, this.rootNode);\n }\n }\n // Unused template visitors\n visitText(text) { }\n visitTextAttribute(attribute) { }\n visitUnknownBlock(block) { }\n visitDeferredTrigger() { }\n visitIcu(icu) {\n Object.keys(icu.vars).forEach((key) => icu.vars[key].visit(this));\n Object.keys(icu.placeholders).forEach((key) => icu.placeholders[key].visit(this));\n }\n // The remaining visitors are concerned with processing AST expressions within template bindings\n visitBoundAttribute(attribute) {\n attribute.value.visit(this);\n }\n visitBoundEvent(event) {\n event.handler.visit(this);\n }\n visitDeferredBlock(deferred) {\n this.ingestScopedNode(deferred);\n deferred.triggers.when?.value.visit(this);\n deferred.prefetchTriggers.when?.value.visit(this);\n deferred.hydrateTriggers.when?.value.visit(this);\n deferred.hydrateTriggers.never?.visit(this);\n deferred.placeholder && this.visitNode(deferred.placeholder);\n deferred.loading && this.visitNode(deferred.loading);\n deferred.error && this.visitNode(deferred.error);\n }\n visitDeferredBlockPlaceholder(block) {\n this.ingestScopedNode(block);\n }\n visitDeferredBlockError(block) {\n this.ingestScopedNode(block);\n }\n visitDeferredBlockLoading(block) {\n this.ingestScopedNode(block);\n }\n visitSwitchBlock(block) {\n block.expression.visit(this);\n block.cases.forEach(this.visitNode);\n }\n visitSwitchBlockCase(block) {\n block.expression?.visit(this);\n this.ingestScopedNode(block);\n }\n visitForLoopBlock(block) {\n block.expression.visit(this);\n this.ingestScopedNode(block);\n block.empty?.visit(this);\n }\n visitForLoopBlockEmpty(block) {\n this.ingestScopedNode(block);\n }\n visitIfBlock(block) {\n block.branches.forEach((node) => node.visit(this));\n }\n visitIfBlockBranch(block) {\n block.expression?.visit(this);\n this.ingestScopedNode(block);\n }\n visitContent(content) {\n this.ingestScopedNode(content);\n }\n visitBoundText(text) {\n text.value.visit(this);\n }\n visitLetDeclaration(decl) {\n decl.value.visit(this);\n if (this.rootNode !== null) {\n this.symbols.set(decl, this.rootNode);\n }\n }\n visitPipe(ast, context) {\n this.usedPipes.add(ast.name);\n if (!this.scope.isDeferred) {\n this.eagerPipes.add(ast.name);\n }\n return super.visitPipe(ast, context);\n }\n // These five types of AST expressions can refer to expression roots, which could be variables\n // or references in the current scope.\n visitPropertyRead(ast, context) {\n this.maybeMap(ast, ast.name);\n return super.visitPropertyRead(ast, context);\n }\n visitSafePropertyRead(ast, context) {\n this.maybeMap(ast, ast.name);\n return super.visitSafePropertyRead(ast, context);\n }\n visitPropertyWrite(ast, context) {\n this.maybeMap(ast, ast.name);\n return super.visitPropertyWrite(ast, context);\n }\n ingestScopedNode(node) {\n const childScope = this.scope.getChildScope(node);\n const binder = new TemplateBinder(this.bindings, this.symbols, this.usedPipes, this.eagerPipes, this.deferBlocks, this.nestingLevel, childScope, node, this.level + 1);\n binder.ingest(node);\n }\n maybeMap(ast, name) {\n // If the receiver of the expression isn't the `ImplicitReceiver`, this isn't the root of an\n // `AST` expression that maps to a `Variable` or `Reference`.\n if (!(ast.receiver instanceof ImplicitReceiver) || ast.receiver instanceof ThisReceiver) {\n return;\n }\n // Check whether the name exists in the current scope. If so, map it. Otherwise, the name is\n // probably a property on the top-level component context.\n const target = this.scope.lookup(name);\n if (target !== null) {\n this.bindings.set(ast, target);\n }\n }\n}\n/**\n * Metadata container for a `Target` that allows queries for specific bits of metadata.\n *\n * See `BoundTarget` for documentation on the individual methods.\n */\nclass R3BoundTarget {\n target;\n directives;\n eagerDirectives;\n bindings;\n references;\n exprTargets;\n symbols;\n nestingLevel;\n scopedNodeEntities;\n usedPipes;\n eagerPipes;\n /** Deferred blocks, ordered as they appear in the template. */\n deferredBlocks;\n /** Map of deferred blocks to their scope. */\n deferredScopes;\n constructor(target, directives, eagerDirectives, bindings, references, exprTargets, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, rawDeferred) {\n this.target = target;\n this.directives = directives;\n this.eagerDirectives = eagerDirectives;\n this.bindings = bindings;\n this.references = references;\n this.exprTargets = exprTargets;\n this.symbols = symbols;\n this.nestingLevel = nestingLevel;\n this.scopedNodeEntities = scopedNodeEntities;\n this.usedPipes = usedPipes;\n this.eagerPipes = eagerPipes;\n this.deferredBlocks = rawDeferred.map((current) => current[0]);\n this.deferredScopes = new Map(rawDeferred);\n }\n getEntitiesInScope(node) {\n return this.scopedNodeEntities.get(node) ?? new Set();\n }\n getDirectivesOfNode(node) {\n return this.directives.get(node) || null;\n }\n getReferenceTarget(ref) {\n return this.references.get(ref) || null;\n }\n getConsumerOfBinding(binding) {\n return this.bindings.get(binding) || null;\n }\n getExpressionTarget(expr) {\n return this.exprTargets.get(expr) || null;\n }\n getDefinitionNodeOfSymbol(symbol) {\n return this.symbols.get(symbol) || null;\n }\n getNestingLevel(node) {\n return this.nestingLevel.get(node) || 0;\n }\n getUsedDirectives() {\n const set = new Set();\n this.directives.forEach((dirs) => dirs.forEach((dir) => set.add(dir)));\n return Array.from(set.values());\n }\n getEagerlyUsedDirectives() {\n const set = new Set(this.eagerDirectives);\n return Array.from(set.values());\n }\n getUsedPipes() {\n return Array.from(this.usedPipes);\n }\n getEagerlyUsedPipes() {\n return Array.from(this.eagerPipes);\n }\n getDeferBlocks() {\n return this.deferredBlocks;\n }\n getDeferredTriggerTarget(block, trigger) {\n // Only triggers that refer to DOM nodes can be resolved.\n if (!(trigger instanceof InteractionDeferredTrigger) &&\n !(trigger instanceof ViewportDeferredTrigger) &&\n !(trigger instanceof HoverDeferredTrigger)) {\n return null;\n }\n const name = trigger.reference;\n if (name === null) {\n let trigger = null;\n if (block.placeholder !== null) {\n for (const child of block.placeholder.children) {\n // Skip over comment nodes. Currently by default the template parser doesn't capture\n // comments, but we have a safeguard here just in case since it can be enabled.\n if (child instanceof Comment$1) {\n continue;\n }\n // We can only infer the trigger if there's one root element node. Any other\n // nodes at the root make it so that we can't infer the trigger anymore.\n if (trigger !== null) {\n return null;\n }\n if (child instanceof Element$1) {\n trigger = child;\n }\n }\n }\n return trigger;\n }\n const outsideRef = this.findEntityInScope(block, name);\n // First try to resolve the target in the scope of the main deferred block. Note that we\n // skip triggers defined inside the main block itself, because they might not exist yet.\n if (outsideRef instanceof Reference && this.getDefinitionNodeOfSymbol(outsideRef) !== block) {\n const target = this.getReferenceTarget(outsideRef);\n if (target !== null) {\n return this.referenceTargetToElement(target);\n }\n }\n // If the trigger couldn't be found in the main block, check the\n // placeholder block which is shown before the main block has loaded.\n if (block.placeholder !== null) {\n const refInPlaceholder = this.findEntityInScope(block.placeholder, name);\n const targetInPlaceholder = refInPlaceholder instanceof Reference ? this.getReferenceTarget(refInPlaceholder) : null;\n if (targetInPlaceholder !== null) {\n return this.referenceTargetToElement(targetInPlaceholder);\n }\n }\n return null;\n }\n isDeferred(element) {\n for (const block of this.deferredBlocks) {\n if (!this.deferredScopes.has(block)) {\n continue;\n }\n const stack = [this.deferredScopes.get(block)];\n while (stack.length > 0) {\n const current = stack.pop();\n if (current.elementsInScope.has(element)) {\n return true;\n }\n stack.push(...current.childScopes.values());\n }\n }\n return false;\n }\n /**\n * Finds an entity with a specific name in a scope.\n * @param rootNode Root node of the scope.\n * @param name Name of the entity.\n */\n findEntityInScope(rootNode, name) {\n const entities = this.getEntitiesInScope(rootNode);\n for (const entity of entities) {\n if (entity.name === name) {\n return entity;\n }\n }\n return null;\n }\n /** Coerces a `ReferenceTarget` to an `Element`, if possible. */\n referenceTargetToElement(target) {\n if (target instanceof Element$1) {\n return target;\n }\n if (target instanceof Template) {\n return null;\n }\n return this.referenceTargetToElement(target.node);\n }\n}\nfunction extractScopedNodeEntities(rootScope) {\n const entityMap = new Map();\n function extractScopeEntities(scope) {\n if (entityMap.has(scope.rootNode)) {\n return entityMap.get(scope.rootNode);\n }\n const currentEntities = scope.namedEntities;\n let entities;\n if (scope.parentScope !== null) {\n entities = new Map([...extractScopeEntities(scope.parentScope), ...currentEntities]);\n }\n else {\n entities = new Map(currentEntities);\n }\n entityMap.set(scope.rootNode, entities);\n return entities;\n }\n const scopesToProcess = [rootScope];\n while (scopesToProcess.length > 0) {\n const scope = scopesToProcess.pop();\n for (const childScope of scope.childScopes.values()) {\n scopesToProcess.push(childScope);\n }\n extractScopeEntities(scope);\n }\n const templateEntities = new Map();\n for (const [template, entities] of entityMap) {\n templateEntities.set(template, new Set(entities.values()));\n }\n return templateEntities;\n}\n\n/**\n * An interface for retrieving documents by URL that the compiler uses to\n * load templates.\n *\n * This is an abstract class, rather than an interface, so that it can be used\n * as injection token.\n */\nclass ResourceLoader {\n}\n\nclass CompilerFacadeImpl {\n jitEvaluator;\n FactoryTarget = FactoryTarget$1;\n ResourceLoader = ResourceLoader;\n elementSchemaRegistry = new DomElementSchemaRegistry();\n constructor(jitEvaluator = new JitEvaluator()) {\n this.jitEvaluator = jitEvaluator;\n }\n compilePipe(angularCoreEnv, sourceMapUrl, facade) {\n const metadata = {\n name: facade.name,\n type: wrapReference(facade.type),\n typeArgumentCount: 0,\n deps: null,\n pipeName: facade.pipeName,\n pure: facade.pure,\n isStandalone: facade.isStandalone,\n };\n const res = compilePipeFromMetadata(metadata);\n return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, []);\n }\n compilePipeDeclaration(angularCoreEnv, sourceMapUrl, declaration) {\n const meta = convertDeclarePipeFacadeToMetadata(declaration);\n const res = compilePipeFromMetadata(meta);\n return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, []);\n }\n compileInjectable(angularCoreEnv, sourceMapUrl, facade) {\n const { expression, statements } = compileInjectable({\n name: facade.name,\n type: wrapReference(facade.type),\n typeArgumentCount: facade.typeArgumentCount,\n providedIn: computeProvidedIn(facade.providedIn),\n useClass: convertToProviderExpression(facade, 'useClass'),\n useFactory: wrapExpression(facade, 'useFactory'),\n useValue: convertToProviderExpression(facade, 'useValue'),\n useExisting: convertToProviderExpression(facade, 'useExisting'),\n deps: facade.deps?.map(convertR3DependencyMetadata),\n }, \n /* resolveForwardRefs */ true);\n return this.jitExpression(expression, angularCoreEnv, sourceMapUrl, statements);\n }\n compileInjectableDeclaration(angularCoreEnv, sourceMapUrl, facade) {\n const { expression, statements } = compileInjectable({\n name: facade.type.name,\n type: wrapReference(facade.type),\n typeArgumentCount: 0,\n providedIn: computeProvidedIn(facade.providedIn),\n useClass: convertToProviderExpression(facade, 'useClass'),\n useFactory: wrapExpression(facade, 'useFactory'),\n useValue: convertToProviderExpression(facade, 'useValue'),\n useExisting: convertToProviderExpression(facade, 'useExisting'),\n deps: facade.deps?.map(convertR3DeclareDependencyMetadata),\n }, \n /* resolveForwardRefs */ true);\n return this.jitExpression(expression, angularCoreEnv, sourceMapUrl, statements);\n }\n compileInjector(angularCoreEnv, sourceMapUrl, facade) {\n const meta = {\n name: facade.name,\n type: wrapReference(facade.type),\n providers: facade.providers && facade.providers.length > 0\n ? new WrappedNodeExpr(facade.providers)\n : null,\n imports: facade.imports.map((i) => new WrappedNodeExpr(i)),\n };\n const res = compileInjector(meta);\n return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, []);\n }\n compileInjectorDeclaration(angularCoreEnv, sourceMapUrl, declaration) {\n const meta = convertDeclareInjectorFacadeToMetadata(declaration);\n const res = compileInjector(meta);\n return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, []);\n }\n compileNgModule(angularCoreEnv, sourceMapUrl, facade) {\n const meta = {\n kind: R3NgModuleMetadataKind.Global,\n type: wrapReference(facade.type),\n bootstrap: facade.bootstrap.map(wrapReference),\n declarations: facade.declarations.map(wrapReference),\n publicDeclarationTypes: null, // only needed for types in AOT\n imports: facade.imports.map(wrapReference),\n includeImportTypes: true,\n exports: facade.exports.map(wrapReference),\n selectorScopeMode: R3SelectorScopeMode.Inline,\n containsForwardDecls: false,\n schemas: facade.schemas ? facade.schemas.map(wrapReference) : null,\n id: facade.id ? new WrappedNodeExpr(facade.id) : null,\n };\n const res = compileNgModule(meta);\n return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, []);\n }\n compileNgModuleDeclaration(angularCoreEnv, sourceMapUrl, declaration) {\n const expression = compileNgModuleDeclarationExpression(declaration);\n return this.jitExpression(expression, angularCoreEnv, sourceMapUrl, []);\n }\n compileDirective(angularCoreEnv, sourceMapUrl, facade) {\n const meta = convertDirectiveFacadeToMetadata(facade);\n return this.compileDirectiveFromMeta(angularCoreEnv, sourceMapUrl, meta);\n }\n compileDirectiveDeclaration(angularCoreEnv, sourceMapUrl, declaration) {\n const typeSourceSpan = this.createParseSourceSpan('Directive', declaration.type.name, sourceMapUrl);\n const meta = convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan);\n return this.compileDirectiveFromMeta(angularCoreEnv, sourceMapUrl, meta);\n }\n compileDirectiveFromMeta(angularCoreEnv, sourceMapUrl, meta) {\n const constantPool = new ConstantPool();\n const bindingParser = makeBindingParser();\n const res = compileDirectiveFromMetadata(meta, constantPool, bindingParser);\n return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, constantPool.statements);\n }\n compileComponent(angularCoreEnv, sourceMapUrl, facade) {\n // Parse the template and check for errors.\n const { template, interpolation, defer } = parseJitTemplate(facade.template, facade.name, sourceMapUrl, facade.preserveWhitespaces, facade.interpolation, undefined);\n // Compile the component metadata, including template, into an expression.\n const meta = {\n ...facade,\n ...convertDirectiveFacadeToMetadata(facade),\n selector: facade.selector || this.elementSchemaRegistry.getDefaultComponentElementName(),\n template,\n declarations: facade.declarations.map(convertDeclarationFacadeToMetadata),\n declarationListEmitMode: 0 /* DeclarationListEmitMode.Direct */,\n defer,\n styles: [...facade.styles, ...template.styles],\n encapsulation: facade.encapsulation,\n interpolation,\n changeDetection: facade.changeDetection ?? null,\n animations: facade.animations != null ? new WrappedNodeExpr(facade.animations) : null,\n viewProviders: facade.viewProviders != null ? new WrappedNodeExpr(facade.viewProviders) : null,\n relativeContextFilePath: '',\n i18nUseExternalIds: true,\n relativeTemplatePath: null,\n };\n const jitExpressionSourceMap = `ng:///${facade.name}.js`;\n return this.compileComponentFromMeta(angularCoreEnv, jitExpressionSourceMap, meta);\n }\n compileComponentDeclaration(angularCoreEnv, sourceMapUrl, declaration) {\n const typeSourceSpan = this.createParseSourceSpan('Component', declaration.type.name, sourceMapUrl);\n const meta = convertDeclareComponentFacadeToMetadata(declaration, typeSourceSpan, sourceMapUrl);\n return this.compileComponentFromMeta(angularCoreEnv, sourceMapUrl, meta);\n }\n compileComponentFromMeta(angularCoreEnv, sourceMapUrl, meta) {\n const constantPool = new ConstantPool();\n const bindingParser = makeBindingParser(meta.interpolation);\n const res = compileComponentFromMetadata(meta, constantPool, bindingParser);\n return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, constantPool.statements);\n }\n compileFactory(angularCoreEnv, sourceMapUrl, meta) {\n const factoryRes = compileFactoryFunction({\n name: meta.name,\n type: wrapReference(meta.type),\n typeArgumentCount: meta.typeArgumentCount,\n deps: convertR3DependencyMetadataArray(meta.deps),\n target: meta.target,\n });\n return this.jitExpression(factoryRes.expression, angularCoreEnv, sourceMapUrl, factoryRes.statements);\n }\n compileFactoryDeclaration(angularCoreEnv, sourceMapUrl, meta) {\n const factoryRes = compileFactoryFunction({\n name: meta.type.name,\n type: wrapReference(meta.type),\n typeArgumentCount: 0,\n deps: Array.isArray(meta.deps)\n ? meta.deps.map(convertR3DeclareDependencyMetadata)\n : meta.deps,\n target: meta.target,\n });\n return this.jitExpression(factoryRes.expression, angularCoreEnv, sourceMapUrl, factoryRes.statements);\n }\n createParseSourceSpan(kind, typeName, sourceUrl) {\n return r3JitTypeSourceSpan(kind, typeName, sourceUrl);\n }\n /**\n * JIT compiles an expression and returns the result of executing that expression.\n *\n * @param def the definition which will be compiled and executed to get the value to patch\n * @param context an object map of @angular/core symbol names to symbols which will be available\n * in the context of the compiled expression\n * @param sourceUrl a URL to use for the source map of the compiled expression\n * @param preStatements a collection of statements that should be evaluated before the expression.\n */\n jitExpression(def, context, sourceUrl, preStatements) {\n // The ConstantPool may contain Statements which declare variables used in the final expression.\n // Therefore, its statements need to precede the actual JIT operation. The final statement is a\n // declaration of $def which is set to the expression being compiled.\n const statements = [\n ...preStatements,\n new DeclareVarStmt('$def', def, undefined, StmtModifier.Exported),\n ];\n const res = this.jitEvaluator.evaluateStatements(sourceUrl, statements, new R3JitReflector(context), \n /* enableSourceMaps */ true);\n return res['$def'];\n }\n}\nfunction convertToR3QueryMetadata(facade) {\n return {\n ...facade,\n isSignal: facade.isSignal,\n predicate: convertQueryPredicate(facade.predicate),\n read: facade.read ? new WrappedNodeExpr(facade.read) : null,\n static: facade.static,\n emitDistinctChangesOnly: facade.emitDistinctChangesOnly,\n };\n}\nfunction convertQueryDeclarationToMetadata(declaration) {\n return {\n propertyName: declaration.propertyName,\n first: declaration.first ?? false,\n predicate: convertQueryPredicate(declaration.predicate),\n descendants: declaration.descendants ?? false,\n read: declaration.read ? new WrappedNodeExpr(declaration.read) : null,\n static: declaration.static ?? false,\n emitDistinctChangesOnly: declaration.emitDistinctChangesOnly ?? true,\n isSignal: !!declaration.isSignal,\n };\n}\nfunction convertQueryPredicate(predicate) {\n return Array.isArray(predicate)\n ? // The predicate is an array of strings so pass it through.\n predicate\n : // The predicate is a type - assume that we will need to unwrap any `forwardRef()` calls.\n createMayBeForwardRefExpression(new WrappedNodeExpr(predicate), 1 /* ForwardRefHandling.Wrapped */);\n}\nfunction convertDirectiveFacadeToMetadata(facade) {\n const inputsFromMetadata = parseInputsArray(facade.inputs || []);\n const outputsFromMetadata = parseMappingStringArray(facade.outputs || []);\n const propMetadata = facade.propMetadata;\n const inputsFromType = {};\n const outputsFromType = {};\n for (const field in propMetadata) {\n if (propMetadata.hasOwnProperty(field)) {\n propMetadata[field].forEach((ann) => {\n if (isInput(ann)) {\n inputsFromType[field] = {\n bindingPropertyName: ann.alias || field,\n classPropertyName: field,\n required: ann.required || false,\n // For JIT, decorators are used to declare signal inputs. That is because of\n // a technical limitation where it's not possible to statically reflect class\n // members of a directive/component at runtime before instantiating the class.\n isSignal: !!ann.isSignal,\n transformFunction: ann.transform != null ? new WrappedNodeExpr(ann.transform) : null,\n };\n }\n else if (isOutput(ann)) {\n outputsFromType[field] = ann.alias || field;\n }\n });\n }\n }\n const hostDirectives = facade.hostDirectives?.length\n ? facade.hostDirectives.map((hostDirective) => {\n return typeof hostDirective === 'function'\n ? {\n directive: wrapReference(hostDirective),\n inputs: null,\n outputs: null,\n isForwardReference: false,\n }\n : {\n directive: wrapReference(hostDirective.directive),\n isForwardReference: false,\n inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,\n outputs: hostDirective.outputs\n ? parseMappingStringArray(hostDirective.outputs)\n : null,\n };\n })\n : null;\n return {\n ...facade,\n typeArgumentCount: 0,\n typeSourceSpan: facade.typeSourceSpan,\n type: wrapReference(facade.type),\n deps: null,\n host: {\n ...extractHostBindings(facade.propMetadata, facade.typeSourceSpan, facade.host),\n },\n inputs: { ...inputsFromMetadata, ...inputsFromType },\n outputs: { ...outputsFromMetadata, ...outputsFromType },\n queries: facade.queries.map(convertToR3QueryMetadata),\n providers: facade.providers != null ? new WrappedNodeExpr(facade.providers) : null,\n viewQueries: facade.viewQueries.map(convertToR3QueryMetadata),\n fullInheritance: false,\n hostDirectives,\n };\n}\nfunction convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {\n const hostDirectives = declaration.hostDirectives?.length\n ? declaration.hostDirectives.map((dir) => ({\n directive: wrapReference(dir.directive),\n isForwardReference: false,\n inputs: dir.inputs ? getHostDirectiveBindingMapping(dir.inputs) : null,\n outputs: dir.outputs ? getHostDirectiveBindingMapping(dir.outputs) : null,\n }))\n : null;\n return {\n name: declaration.type.name,\n type: wrapReference(declaration.type),\n typeSourceSpan,\n selector: declaration.selector ?? null,\n inputs: declaration.inputs ? inputsPartialMetadataToInputMetadata(declaration.inputs) : {},\n outputs: declaration.outputs ?? {},\n host: convertHostDeclarationToMetadata(declaration.host),\n queries: (declaration.queries ?? []).map(convertQueryDeclarationToMetadata),\n viewQueries: (declaration.viewQueries ?? []).map(convertQueryDeclarationToMetadata),\n providers: declaration.providers !== undefined ? new WrappedNodeExpr(declaration.providers) : null,\n exportAs: declaration.exportAs ?? null,\n usesInheritance: declaration.usesInheritance ?? false,\n lifecycle: { usesOnChanges: declaration.usesOnChanges ?? false },\n deps: null,\n typeArgumentCount: 0,\n fullInheritance: false,\n isStandalone: declaration.isStandalone ?? getJitStandaloneDefaultForVersion(declaration.version),\n isSignal: declaration.isSignal ?? false,\n hostDirectives,\n };\n}\nfunction convertHostDeclarationToMetadata(host = {}) {\n return {\n attributes: convertOpaqueValuesToExpressions(host.attributes ?? {}),\n listeners: host.listeners ?? {},\n properties: host.properties ?? {},\n specialAttributes: {\n classAttr: host.classAttribute,\n styleAttr: host.styleAttribute,\n },\n };\n}\n/**\n * Parses a host directive mapping where each odd array key is the name of an input/output\n * and each even key is its public name, e.g. `['one', 'oneAlias', 'two', 'two']`.\n */\nfunction getHostDirectiveBindingMapping(array) {\n let result = null;\n for (let i = 1; i < array.length; i += 2) {\n result = result || {};\n result[array[i - 1]] = array[i];\n }\n return result;\n}\nfunction convertOpaqueValuesToExpressions(obj) {\n const result = {};\n for (const key of Object.keys(obj)) {\n result[key] = new WrappedNodeExpr(obj[key]);\n }\n return result;\n}\nfunction convertDeclareComponentFacadeToMetadata(decl, typeSourceSpan, sourceMapUrl) {\n const { template, interpolation, defer } = parseJitTemplate(decl.template, decl.type.name, sourceMapUrl, decl.preserveWhitespaces ?? false, decl.interpolation, decl.deferBlockDependencies);\n const declarations = [];\n if (decl.dependencies) {\n for (const innerDep of decl.dependencies) {\n switch (innerDep.kind) {\n case 'directive':\n case 'component':\n declarations.push(convertDirectiveDeclarationToMetadata(innerDep));\n break;\n case 'pipe':\n declarations.push(convertPipeDeclarationToMetadata(innerDep));\n break;\n }\n }\n }\n else if (decl.components || decl.directives || decl.pipes) {\n // Existing declarations on NPM may not be using the new `dependencies` merged field, and may\n // have separate fields for dependencies instead. Unify them for JIT compilation.\n decl.components &&\n declarations.push(...decl.components.map((dir) => convertDirectiveDeclarationToMetadata(dir, /* isComponent */ true)));\n decl.directives &&\n declarations.push(...decl.directives.map((dir) => convertDirectiveDeclarationToMetadata(dir)));\n decl.pipes && declarations.push(...convertPipeMapToMetadata(decl.pipes));\n }\n return {\n ...convertDeclareDirectiveFacadeToMetadata(decl, typeSourceSpan),\n template,\n styles: decl.styles ?? [],\n declarations,\n viewProviders: decl.viewProviders !== undefined ? new WrappedNodeExpr(decl.viewProviders) : null,\n animations: decl.animations !== undefined ? new WrappedNodeExpr(decl.animations) : null,\n defer,\n changeDetection: decl.changeDetection ?? ChangeDetectionStrategy.Default,\n encapsulation: decl.encapsulation ?? ViewEncapsulation.Emulated,\n interpolation,\n declarationListEmitMode: 2 /* DeclarationListEmitMode.ClosureResolved */,\n relativeContextFilePath: '',\n i18nUseExternalIds: true,\n relativeTemplatePath: null,\n };\n}\nfunction convertDeclarationFacadeToMetadata(declaration) {\n return {\n ...declaration,\n type: new WrappedNodeExpr(declaration.type),\n };\n}\nfunction convertDirectiveDeclarationToMetadata(declaration, isComponent = null) {\n return {\n kind: R3TemplateDependencyKind.Directive,\n isComponent: isComponent || declaration.kind === 'component',\n selector: declaration.selector,\n type: new WrappedNodeExpr(declaration.type),\n inputs: declaration.inputs ?? [],\n outputs: declaration.outputs ?? [],\n exportAs: declaration.exportAs ?? null,\n };\n}\nfunction convertPipeMapToMetadata(pipes) {\n if (!pipes) {\n return [];\n }\n return Object.keys(pipes).map((name) => {\n return {\n kind: R3TemplateDependencyKind.Pipe,\n name,\n type: new WrappedNodeExpr(pipes[name]),\n };\n });\n}\nfunction convertPipeDeclarationToMetadata(pipe) {\n return {\n kind: R3TemplateDependencyKind.Pipe,\n name: pipe.name,\n type: new WrappedNodeExpr(pipe.type),\n };\n}\nfunction parseJitTemplate(template, typeName, sourceMapUrl, preserveWhitespaces, interpolation, deferBlockDependencies) {\n const interpolationConfig = interpolation\n ? InterpolationConfig.fromArray(interpolation)\n : DEFAULT_INTERPOLATION_CONFIG;\n // Parse the template and check for errors.\n const parsed = parseTemplate(template, sourceMapUrl, {\n preserveWhitespaces,\n interpolationConfig,\n });\n if (parsed.errors !== null) {\n const errors = parsed.errors.map((err) => err.toString()).join(', ');\n throw new Error(`Errors during JIT compilation of template for ${typeName}: ${errors}`);\n }\n const binder = new R3TargetBinder(new SelectorMatcher());\n const boundTarget = binder.bind({ template: parsed.nodes });\n return {\n template: parsed,\n interpolation: interpolationConfig,\n defer: createR3ComponentDeferMetadata(boundTarget, deferBlockDependencies),\n };\n}\n/**\n * Convert the expression, if present to an `R3ProviderExpression`.\n *\n * In JIT mode we do not want the compiler to wrap the expression in a `forwardRef()` call because,\n * if it is referencing a type that has not yet been defined, it will have already been wrapped in\n * a `forwardRef()` - either by the application developer or during partial-compilation. Thus we can\n * use `ForwardRefHandling.None`.\n */\nfunction convertToProviderExpression(obj, property) {\n if (obj.hasOwnProperty(property)) {\n return createMayBeForwardRefExpression(new WrappedNodeExpr(obj[property]), 0 /* ForwardRefHandling.None */);\n }\n else {\n return undefined;\n }\n}\nfunction wrapExpression(obj, property) {\n if (obj.hasOwnProperty(property)) {\n return new WrappedNodeExpr(obj[property]);\n }\n else {\n return undefined;\n }\n}\nfunction computeProvidedIn(providedIn) {\n const expression = typeof providedIn === 'function'\n ? new WrappedNodeExpr(providedIn)\n : new LiteralExpr(providedIn ?? null);\n // See `convertToProviderExpression()` for why this uses `ForwardRefHandling.None`.\n return createMayBeForwardRefExpression(expression, 0 /* ForwardRefHandling.None */);\n}\nfunction convertR3DependencyMetadataArray(facades) {\n return facades == null ? null : facades.map(convertR3DependencyMetadata);\n}\nfunction convertR3DependencyMetadata(facade) {\n const isAttributeDep = facade.attribute != null; // both `null` and `undefined`\n const rawToken = facade.token === null ? null : new WrappedNodeExpr(facade.token);\n // In JIT mode, if the dep is an `@Attribute()` then we use the attribute name given in\n // `attribute` rather than the `token`.\n const token = isAttributeDep ? new WrappedNodeExpr(facade.attribute) : rawToken;\n return createR3DependencyMetadata(token, isAttributeDep, facade.host, facade.optional, facade.self, facade.skipSelf);\n}\nfunction convertR3DeclareDependencyMetadata(facade) {\n const isAttributeDep = facade.attribute ?? false;\n const token = facade.token === null ? null : new WrappedNodeExpr(facade.token);\n return createR3DependencyMetadata(token, isAttributeDep, facade.host ?? false, facade.optional ?? false, facade.self ?? false, facade.skipSelf ?? false);\n}\nfunction createR3DependencyMetadata(token, isAttributeDep, host, optional, self, skipSelf) {\n // If the dep is an `@Attribute()` the `attributeNameType` ought to be the `unknown` type.\n // But types are not available at runtime so we just use a literal `\"<unknown>\"` string as a dummy\n // marker.\n const attributeNameType = isAttributeDep ? literal('unknown') : null;\n return { token, attributeNameType, host, optional, self, skipSelf };\n}\nfunction createR3ComponentDeferMetadata(boundTarget, deferBlockDependencies) {\n const deferredBlocks = boundTarget.getDeferBlocks();\n const blocks = new Map();\n for (let i = 0; i < deferredBlocks.length; i++) {\n const dependencyFn = deferBlockDependencies?.[i];\n blocks.set(deferredBlocks[i], dependencyFn ? new WrappedNodeExpr(dependencyFn) : null);\n }\n return { mode: 0 /* DeferBlockDepsEmitMode.PerBlock */, blocks };\n}\nfunction extractHostBindings(propMetadata, sourceSpan, host) {\n // First parse the declarations from the metadata.\n const bindings = parseHostBindings(host || {});\n // After that check host bindings for errors\n const errors = verifyHostBindings(bindings, sourceSpan);\n if (errors.length) {\n throw new Error(errors.map((error) => error.msg).join('\\n'));\n }\n // Next, loop over the properties of the object, looking for @HostBinding and @HostListener.\n for (const field in propMetadata) {\n if (propMetadata.hasOwnProperty(field)) {\n propMetadata[field].forEach((ann) => {\n if (isHostBinding(ann)) {\n // Since this is a decorator, we know that the value is a class member. Always access it\n // through `this` so that further down the line it can't be confused for a literal value\n // (e.g. if there's a property called `true`).\n bindings.properties[ann.hostPropertyName || field] = getSafePropertyAccessString('this', field);\n }\n else if (isHostListener(ann)) {\n bindings.listeners[ann.eventName || field] = `${field}(${(ann.args || []).join(',')})`;\n }\n });\n }\n }\n return bindings;\n}\nfunction isHostBinding(value) {\n return value.ngMetadataName === 'HostBinding';\n}\nfunction isHostListener(value) {\n return value.ngMetadataName === 'HostListener';\n}\nfunction isInput(value) {\n return value.ngMetadataName === 'Input';\n}\nfunction isOutput(value) {\n return value.ngMetadataName === 'Output';\n}\nfunction inputsPartialMetadataToInputMetadata(inputs) {\n return Object.keys(inputs).reduce((result, minifiedClassName) => {\n const value = inputs[minifiedClassName];\n // Handle legacy partial input output.\n if (typeof value === 'string' || Array.isArray(value)) {\n result[minifiedClassName] = parseLegacyInputPartialOutput(value);\n }\n else {\n result[minifiedClassName] = {\n bindingPropertyName: value.publicName,\n classPropertyName: minifiedClassName,\n transformFunction: value.transformFunction !== null ? new WrappedNodeExpr(value.transformFunction) : null,\n required: value.isRequired,\n isSignal: value.isSignal,\n };\n }\n return result;\n }, {});\n}\n/**\n * Parses the legacy input partial output. For more details see `partial/directive.ts`.\n * TODO(legacy-partial-output-inputs): Remove in v18.\n */\nfunction parseLegacyInputPartialOutput(value) {\n if (typeof value === 'string') {\n return {\n bindingPropertyName: value,\n classPropertyName: value,\n transformFunction: null,\n required: false,\n // legacy partial output does not capture signal inputs.\n isSignal: false,\n };\n }\n return {\n bindingPropertyName: value[0],\n classPropertyName: value[1],\n transformFunction: value[2] ? new WrappedNodeExpr(value[2]) : null,\n required: false,\n // legacy partial output does not capture signal inputs.\n isSignal: false,\n };\n}\nfunction parseInputsArray(values) {\n return values.reduce((results, value) => {\n if (typeof value === 'string') {\n const [bindingPropertyName, classPropertyName] = parseMappingString(value);\n results[classPropertyName] = {\n bindingPropertyName,\n classPropertyName,\n required: false,\n // Signal inputs not supported for the inputs array.\n isSignal: false,\n transformFunction: null,\n };\n }\n else {\n results[value.name] = {\n bindingPropertyName: value.alias || value.name,\n classPropertyName: value.name,\n required: value.required || false,\n // Signal inputs not supported for the inputs array.\n isSignal: false,\n transformFunction: value.transform != null ? new WrappedNodeExpr(value.transform) : null,\n };\n }\n return results;\n }, {});\n}\nfunction parseMappingStringArray(values) {\n return values.reduce((results, value) => {\n const [alias, fieldName] = parseMappingString(value);\n results[fieldName] = alias;\n return results;\n }, {});\n}\nfunction parseMappingString(value) {\n // Either the value is 'field' or 'field: property'. In the first case, `property` will\n // be undefined, in which case the field name should also be used as the property name.\n const [fieldName, bindingPropertyName] = value.split(':', 2).map((str) => str.trim());\n return [bindingPropertyName ?? fieldName, fieldName];\n}\nfunction convertDeclarePipeFacadeToMetadata(declaration) {\n return {\n name: declaration.type.name,\n type: wrapReference(declaration.type),\n typeArgumentCount: 0,\n pipeName: declaration.name,\n deps: null,\n pure: declaration.pure ?? true,\n isStandalone: declaration.isStandalone ?? getJitStandaloneDefaultForVersion(declaration.version),\n };\n}\nfunction convertDeclareInjectorFacadeToMetadata(declaration) {\n return {\n name: declaration.type.name,\n type: wrapReference(declaration.type),\n providers: declaration.providers !== undefined && declaration.providers.length > 0\n ? new WrappedNodeExpr(declaration.providers)\n : null,\n imports: declaration.imports !== undefined\n ? declaration.imports.map((i) => new WrappedNodeExpr(i))\n : [],\n };\n}\nfunction publishFacade(global) {\n const ng = global.ng || (global.ng = {});\n ng.ɵcompilerFacade = new CompilerFacadeImpl();\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the compiler package.\n */\nconst VERSION = new Version('19.1.4');\n\nclass CompilerConfig {\n defaultEncapsulation;\n preserveWhitespaces;\n strictInjectionParameters;\n constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, preserveWhitespaces, strictInjectionParameters, } = {}) {\n this.defaultEncapsulation = defaultEncapsulation;\n this.preserveWhitespaces = preserveWhitespacesDefault(noUndefined(preserveWhitespaces));\n this.strictInjectionParameters = strictInjectionParameters === true;\n }\n}\nfunction preserveWhitespacesDefault(preserveWhitespacesOption, defaultSetting = false) {\n return preserveWhitespacesOption === null ? defaultSetting : preserveWhitespacesOption;\n}\n\nconst _I18N_ATTR = 'i18n';\nconst _I18N_ATTR_PREFIX = 'i18n-';\nconst _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;\nconst MEANING_SEPARATOR = '|';\nconst ID_SEPARATOR = '@@';\nlet i18nCommentsWarned = false;\n/**\n * Extract translatable messages from an html AST\n */\nfunction extractMessages(nodes, interpolationConfig, implicitTags, implicitAttrs, preserveSignificantWhitespace) {\n const visitor = new _Visitor(implicitTags, implicitAttrs, preserveSignificantWhitespace);\n return visitor.extract(nodes, interpolationConfig);\n}\nfunction mergeTranslations(nodes, translations, interpolationConfig, implicitTags, implicitAttrs) {\n const visitor = new _Visitor(implicitTags, implicitAttrs);\n return visitor.merge(nodes, translations, interpolationConfig);\n}\nclass ExtractionResult {\n messages;\n errors;\n constructor(messages, errors) {\n this.messages = messages;\n this.errors = errors;\n }\n}\nvar _VisitorMode;\n(function (_VisitorMode) {\n _VisitorMode[_VisitorMode[\"Extract\"] = 0] = \"Extract\";\n _VisitorMode[_VisitorMode[\"Merge\"] = 1] = \"Merge\";\n})(_VisitorMode || (_VisitorMode = {}));\n/**\n * This Visitor is used:\n * 1. to extract all the translatable strings from an html AST (see `extract()`),\n * 2. to replace the translatable strings with the actual translations (see `merge()`)\n *\n * @internal\n */\nclass _Visitor {\n _implicitTags;\n _implicitAttrs;\n _preserveSignificantWhitespace;\n // Using non-null assertions because all variables are (re)set in init()\n _depth;\n // <el i18n>...</el>\n _inI18nNode;\n _inImplicitNode;\n // <!--i18n-->...<!--/i18n-->\n _inI18nBlock;\n _blockMeaningAndDesc;\n _blockChildren;\n _blockStartDepth;\n // {<icu message>}\n _inIcu;\n // set to void 0 when not in a section\n _msgCountAtSectionStart;\n _errors;\n _mode;\n // _VisitorMode.Extract only\n _messages;\n // _VisitorMode.Merge only\n _translations;\n _createI18nMessage;\n constructor(_implicitTags, _implicitAttrs, _preserveSignificantWhitespace = true) {\n this._implicitTags = _implicitTags;\n this._implicitAttrs = _implicitAttrs;\n this._preserveSignificantWhitespace = _preserveSignificantWhitespace;\n }\n /**\n * Extracts the messages from the tree\n */\n extract(nodes, interpolationConfig) {\n this._init(_VisitorMode.Extract, interpolationConfig);\n nodes.forEach((node) => node.visit(this, null));\n if (this._inI18nBlock) {\n this._reportError(nodes[nodes.length - 1], 'Unclosed block');\n }\n return new ExtractionResult(this._messages, this._errors);\n }\n /**\n * Returns a tree where all translatable nodes are translated\n */\n merge(nodes, translations, interpolationConfig) {\n this._init(_VisitorMode.Merge, interpolationConfig);\n this._translations = translations;\n // Construct a single fake root element\n const wrapper = new Element('wrapper', [], nodes, undefined, undefined, undefined);\n const translatedNode = wrapper.visit(this, null);\n if (this._inI18nBlock) {\n this._reportError(nodes[nodes.length - 1], 'Unclosed block');\n }\n return new ParseTreeResult(translatedNode.children, this._errors);\n }\n visitExpansionCase(icuCase, context) {\n // Parse cases for translatable html attributes\n const expression = visitAll(this, icuCase.expression, context);\n if (this._mode === _VisitorMode.Merge) {\n return new ExpansionCase(icuCase.value, expression, icuCase.sourceSpan, icuCase.valueSourceSpan, icuCase.expSourceSpan);\n }\n }\n visitExpansion(icu, context) {\n this._mayBeAddBlockChildren(icu);\n const wasInIcu = this._inIcu;\n if (!this._inIcu) {\n // nested ICU messages should not be extracted but top-level translated as a whole\n if (this._isInTranslatableSection) {\n this._addMessage([icu]);\n }\n this._inIcu = true;\n }\n const cases = visitAll(this, icu.cases, context);\n if (this._mode === _VisitorMode.Merge) {\n icu = new Expansion(icu.switchValue, icu.type, cases, icu.sourceSpan, icu.switchValueSourceSpan);\n }\n this._inIcu = wasInIcu;\n return icu;\n }\n visitComment(comment, context) {\n const isOpening = _isOpeningComment(comment);\n if (isOpening && this._isInTranslatableSection) {\n this._reportError(comment, 'Could not start a block inside a translatable section');\n return;\n }\n const isClosing = _isClosingComment(comment);\n if (isClosing && !this._inI18nBlock) {\n this._reportError(comment, 'Trying to close an unopened block');\n return;\n }\n if (!this._inI18nNode && !this._inIcu) {\n if (!this._inI18nBlock) {\n if (isOpening) {\n // deprecated from v5 you should use <ng-container i18n> instead of i18n comments\n if (!i18nCommentsWarned && console && console.warn) {\n i18nCommentsWarned = true;\n const details = comment.sourceSpan.details ? `, ${comment.sourceSpan.details}` : '';\n // TODO(ocombe): use a log service once there is a public one available\n console.warn(`I18n comments are deprecated, use an <ng-container> element instead (${comment.sourceSpan.start}${details})`);\n }\n this._inI18nBlock = true;\n this._blockStartDepth = this._depth;\n this._blockChildren = [];\n this._blockMeaningAndDesc = comment\n .value.replace(_I18N_COMMENT_PREFIX_REGEXP, '')\n .trim();\n this._openTranslatableSection(comment);\n }\n }\n else {\n if (isClosing) {\n if (this._depth == this._blockStartDepth) {\n this._closeTranslatableSection(comment, this._blockChildren);\n this._inI18nBlock = false;\n const message = this._addMessage(this._blockChildren, this._blockMeaningAndDesc);\n // merge attributes in sections\n const nodes = this._translateMessage(comment, message);\n return visitAll(this, nodes);\n }\n else {\n this._reportError(comment, 'I18N blocks should not cross element boundaries');\n return;\n }\n }\n }\n }\n }\n visitText(text, context) {\n if (this._isInTranslatableSection) {\n this._mayBeAddBlockChildren(text);\n }\n return text;\n }\n visitElement(el, context) {\n this._mayBeAddBlockChildren(el);\n this._depth++;\n const wasInI18nNode = this._inI18nNode;\n const wasInImplicitNode = this._inImplicitNode;\n let childNodes = [];\n let translatedChildNodes = undefined;\n // Extract:\n // - top level nodes with the (implicit) \"i18n\" attribute if not already in a section\n // - ICU messages\n const i18nAttr = _getI18nAttr(el);\n const i18nMeta = i18nAttr ? i18nAttr.value : '';\n const isImplicit = this._implicitTags.some((tag) => el.name === tag) &&\n !this._inIcu &&\n !this._isInTranslatableSection;\n const isTopLevelImplicit = !wasInImplicitNode && isImplicit;\n this._inImplicitNode = wasInImplicitNode || isImplicit;\n if (!this._isInTranslatableSection && !this._inIcu) {\n if (i18nAttr || isTopLevelImplicit) {\n this._inI18nNode = true;\n const message = this._addMessage(el.children, i18nMeta);\n translatedChildNodes = this._translateMessage(el, message);\n }\n if (this._mode == _VisitorMode.Extract) {\n const isTranslatable = i18nAttr || isTopLevelImplicit;\n if (isTranslatable)\n this._openTranslatableSection(el);\n visitAll(this, el.children);\n if (isTranslatable)\n this._closeTranslatableSection(el, el.children);\n }\n }\n else {\n if (i18nAttr || isTopLevelImplicit) {\n this._reportError(el, 'Could not mark an element as translatable inside a translatable section');\n }\n if (this._mode == _VisitorMode.Extract) {\n // Descend into child nodes for extraction\n visitAll(this, el.children);\n }\n }\n if (this._mode === _VisitorMode.Merge) {\n const visitNodes = translatedChildNodes || el.children;\n visitNodes.forEach((child) => {\n const visited = child.visit(this, context);\n if (visited && !this._isInTranslatableSection) {\n // Do not add the children from translatable sections (= i18n blocks here)\n // They will be added later in this loop when the block closes (i.e. on `<!-- /i18n -->`)\n childNodes = childNodes.concat(visited);\n }\n });\n }\n this._visitAttributesOf(el);\n this._depth--;\n this._inI18nNode = wasInI18nNode;\n this._inImplicitNode = wasInImplicitNode;\n if (this._mode === _VisitorMode.Merge) {\n const translatedAttrs = this._translateAttributes(el);\n return new Element(el.name, translatedAttrs, childNodes, el.sourceSpan, el.startSourceSpan, el.endSourceSpan);\n }\n return null;\n }\n visitAttribute(attribute, context) {\n throw new Error('unreachable code');\n }\n visitBlock(block, context) {\n visitAll(this, block.children, context);\n }\n visitBlockParameter(parameter, context) { }\n visitLetDeclaration(decl, context) { }\n _init(mode, interpolationConfig) {\n this._mode = mode;\n this._inI18nBlock = false;\n this._inI18nNode = false;\n this._depth = 0;\n this._inIcu = false;\n this._msgCountAtSectionStart = undefined;\n this._errors = [];\n this._messages = [];\n this._inImplicitNode = false;\n this._createI18nMessage = createI18nMessageFactory(interpolationConfig, DEFAULT_CONTAINER_BLOCKS, \n // When dropping significant whitespace we need to retain whitespace tokens or\n // else we won't be able to reuse source spans because empty tokens would be\n // removed and cause a mismatch.\n /* retainEmptyTokens */ !this._preserveSignificantWhitespace, \n /* preserveExpressionWhitespace */ this._preserveSignificantWhitespace);\n }\n // looks for translatable attributes\n _visitAttributesOf(el) {\n const explicitAttrNameToValue = {};\n const implicitAttrNames = this._implicitAttrs[el.name] || [];\n el.attrs\n .filter((attr) => attr.name.startsWith(_I18N_ATTR_PREFIX))\n .forEach((attr) => (explicitAttrNameToValue[attr.name.slice(_I18N_ATTR_PREFIX.length)] = attr.value));\n el.attrs.forEach((attr) => {\n if (attr.name in explicitAttrNameToValue) {\n this._addMessage([attr], explicitAttrNameToValue[attr.name]);\n }\n else if (implicitAttrNames.some((name) => attr.name === name)) {\n this._addMessage([attr]);\n }\n });\n }\n // add a translatable message\n _addMessage(ast, msgMeta) {\n if (ast.length == 0 ||\n this._isEmptyAttributeValue(ast) ||\n this._isPlaceholderOnlyAttributeValue(ast) ||\n this._isPlaceholderOnlyMessage(ast)) {\n // Do not create empty messages\n return null;\n }\n const { meaning, description, id } = _parseMessageMeta(msgMeta);\n const message = this._createI18nMessage(ast, meaning, description, id);\n this._messages.push(message);\n return message;\n }\n // Check for cases like `<div i18n-title title=\"\">`.\n _isEmptyAttributeValue(ast) {\n if (!isAttrNode(ast))\n return false;\n const node = ast[0];\n return node.value.trim() === '';\n }\n // Check for cases like `<div i18n-title title=\"{{ name }}\">`.\n _isPlaceholderOnlyAttributeValue(ast) {\n if (!isAttrNode(ast))\n return false;\n const tokens = ast[0].valueTokens ?? [];\n const interpolations = tokens.filter((token) => token.type === 17 /* TokenType.ATTR_VALUE_INTERPOLATION */);\n const plainText = tokens\n .filter((token) => token.type === 16 /* TokenType.ATTR_VALUE_TEXT */)\n // `AttributeValueTextToken` always has exactly one part per its type.\n .map((token) => token.parts[0].trim())\n .join('');\n // Check if there is a single interpolation and all text around it is empty.\n return interpolations.length === 1 && plainText === '';\n }\n // Check for cases like `<div i18n>{{ name }}</div>`.\n _isPlaceholderOnlyMessage(ast) {\n if (!isTextNode(ast))\n return false;\n const tokens = ast[0].tokens;\n const interpolations = tokens.filter((token) => token.type === 8 /* TokenType.INTERPOLATION */);\n const plainText = tokens\n .filter((token) => token.type === 5 /* TokenType.TEXT */)\n // `TextToken` always has exactly one part per its type.\n .map((token) => token.parts[0].trim())\n .join('');\n // Check if there is a single interpolation and all text around it is empty.\n return interpolations.length === 1 && plainText === '';\n }\n // Translates the given message given the `TranslationBundle`\n // This is used for translating elements / blocks - see `_translateAttributes` for attributes\n // no-op when called in extraction mode (returns [])\n _translateMessage(el, message) {\n if (message && this._mode === _VisitorMode.Merge) {\n const nodes = this._translations.get(message);\n if (nodes) {\n return nodes;\n }\n this._reportError(el, `Translation unavailable for message id=\"${this._translations.digest(message)}\"`);\n }\n return [];\n }\n // translate the attributes of an element and remove i18n specific attributes\n _translateAttributes(el) {\n const attributes = el.attrs;\n const i18nParsedMessageMeta = {};\n attributes.forEach((attr) => {\n if (attr.name.startsWith(_I18N_ATTR_PREFIX)) {\n i18nParsedMessageMeta[attr.name.slice(_I18N_ATTR_PREFIX.length)] = _parseMessageMeta(attr.value);\n }\n });\n const translatedAttributes = [];\n attributes.forEach((attr) => {\n if (attr.name === _I18N_ATTR || attr.name.startsWith(_I18N_ATTR_PREFIX)) {\n // strip i18n specific attributes\n return;\n }\n if (attr.value && attr.value != '' && i18nParsedMessageMeta.hasOwnProperty(attr.name)) {\n const { meaning, description, id } = i18nParsedMessageMeta[attr.name];\n const message = this._createI18nMessage([attr], meaning, description, id);\n const nodes = this._translations.get(message);\n if (nodes) {\n if (nodes.length == 0) {\n translatedAttributes.push(new Attribute(attr.name, '', attr.sourceSpan, undefined /* keySpan */, undefined /* valueSpan */, undefined /* valueTokens */, undefined /* i18n */));\n }\n else if (nodes[0] instanceof Text) {\n const value = nodes[0].value;\n translatedAttributes.push(new Attribute(attr.name, value, attr.sourceSpan, undefined /* keySpan */, undefined /* valueSpan */, undefined /* valueTokens */, undefined /* i18n */));\n }\n else {\n this._reportError(el, `Unexpected translation for attribute \"${attr.name}\" (id=\"${id || this._translations.digest(message)}\")`);\n }\n }\n else {\n this._reportError(el, `Translation unavailable for attribute \"${attr.name}\" (id=\"${id || this._translations.digest(message)}\")`);\n }\n }\n else {\n translatedAttributes.push(attr);\n }\n });\n return translatedAttributes;\n }\n /**\n * Add the node as a child of the block when:\n * - we are in a block,\n * - we are not inside a ICU message (those are handled separately),\n * - the node is a \"direct child\" of the block\n */\n _mayBeAddBlockChildren(node) {\n if (this._inI18nBlock && !this._inIcu && this._depth == this._blockStartDepth) {\n this._blockChildren.push(node);\n }\n }\n /**\n * Marks the start of a section, see `_closeTranslatableSection`\n */\n _openTranslatableSection(node) {\n if (this._isInTranslatableSection) {\n this._reportError(node, 'Unexpected section start');\n }\n else {\n this._msgCountAtSectionStart = this._messages.length;\n }\n }\n /**\n * A translatable section could be:\n * - the content of translatable element,\n * - nodes between `<!-- i18n -->` and `<!-- /i18n -->` comments\n */\n get _isInTranslatableSection() {\n return this._msgCountAtSectionStart !== void 0;\n }\n /**\n * Terminates a section.\n *\n * If a section has only one significant children (comments not significant) then we should not\n * keep the message from this children:\n *\n * `<p i18n=\"meaning|description\">{ICU message}</p>` would produce two messages:\n * - one for the <p> content with meaning and description,\n * - another one for the ICU message.\n *\n * In this case the last message is discarded as it contains less information (the AST is\n * otherwise identical).\n *\n * Note that we should still keep messages extracted from attributes inside the section (ie in the\n * ICU message here)\n */\n _closeTranslatableSection(node, directChildren) {\n if (!this._isInTranslatableSection) {\n this._reportError(node, 'Unexpected section end');\n return;\n }\n const startIndex = this._msgCountAtSectionStart;\n const significantChildren = directChildren.reduce((count, node) => count + (node instanceof Comment ? 0 : 1), 0);\n if (significantChildren == 1) {\n for (let i = this._messages.length - 1; i >= startIndex; i--) {\n const ast = this._messages[i].nodes;\n if (!(ast.length == 1 && ast[0] instanceof Text$2)) {\n this._messages.splice(i, 1);\n break;\n }\n }\n }\n this._msgCountAtSectionStart = undefined;\n }\n _reportError(node, msg) {\n this._errors.push(new I18nError(node.sourceSpan, msg));\n }\n}\nfunction _isOpeningComment(n) {\n return !!(n instanceof Comment && n.value && n.value.startsWith('i18n'));\n}\nfunction _isClosingComment(n) {\n return !!(n instanceof Comment && n.value && n.value === '/i18n');\n}\nfunction _getI18nAttr(p) {\n return p.attrs.find((attr) => attr.name === _I18N_ATTR) || null;\n}\nfunction _parseMessageMeta(i18n) {\n if (!i18n)\n return { meaning: '', description: '', id: '' };\n const idIndex = i18n.indexOf(ID_SEPARATOR);\n const descIndex = i18n.indexOf(MEANING_SEPARATOR);\n const [meaningAndDesc, id] = idIndex > -1 ? [i18n.slice(0, idIndex), i18n.slice(idIndex + 2)] : [i18n, ''];\n const [meaning, description] = descIndex > -1\n ? [meaningAndDesc.slice(0, descIndex), meaningAndDesc.slice(descIndex + 1)]\n : ['', meaningAndDesc];\n return { meaning, description, id: id.trim() };\n}\nfunction isTextNode(ast) {\n return ast.length === 1 && ast[0] instanceof Text;\n}\nfunction isAttrNode(ast) {\n return ast.length === 1 && ast[0] instanceof Attribute;\n}\n\nclass XmlTagDefinition {\n closedByParent = false;\n implicitNamespacePrefix = null;\n isVoid = false;\n ignoreFirstLf = false;\n canSelfClose = true;\n preventNamespaceInheritance = false;\n requireExtraParent(currentParent) {\n return false;\n }\n isClosedByChild(name) {\n return false;\n }\n getContentType() {\n return TagContentType.PARSABLE_DATA;\n }\n}\nconst _TAG_DEFINITION = new XmlTagDefinition();\nfunction getXmlTagDefinition(tagName) {\n return _TAG_DEFINITION;\n}\n\nclass XmlParser extends Parser$1 {\n constructor() {\n super(getXmlTagDefinition);\n }\n parse(source, url, options = {}) {\n // Blocks and let declarations aren't supported in an XML context.\n return super.parse(source, url, { ...options, tokenizeBlocks: false, tokenizeLet: false });\n }\n}\n\nconst _VERSION$1 = '1.2';\nconst _XMLNS$1 = 'urn:oasis:names:tc:xliff:document:1.2';\n// TODO(vicb): make this a param (s/_/-/)\nconst _DEFAULT_SOURCE_LANG$1 = 'en';\nconst _PLACEHOLDER_TAG$2 = 'x';\nconst _MARKER_TAG$1 = 'mrk';\nconst _FILE_TAG = 'file';\nconst _SOURCE_TAG$1 = 'source';\nconst _SEGMENT_SOURCE_TAG = 'seg-source';\nconst _ALT_TRANS_TAG = 'alt-trans';\nconst _TARGET_TAG$1 = 'target';\nconst _UNIT_TAG$1 = 'trans-unit';\nconst _CONTEXT_GROUP_TAG = 'context-group';\nconst _CONTEXT_TAG = 'context';\n// https://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html\n// https://docs.oasis-open.org/xliff/v1.2/xliff-profile-html/xliff-profile-html-1.2.html\nclass Xliff extends Serializer {\n write(messages, locale) {\n const visitor = new _WriteVisitor$1();\n const transUnits = [];\n messages.forEach((message) => {\n let contextTags = [];\n message.sources.forEach((source) => {\n let contextGroupTag = new Tag(_CONTEXT_GROUP_TAG, { purpose: 'location' });\n contextGroupTag.children.push(new CR(10), new Tag(_CONTEXT_TAG, { 'context-type': 'sourcefile' }, [\n new Text$1(source.filePath),\n ]), new CR(10), new Tag(_CONTEXT_TAG, { 'context-type': 'linenumber' }, [\n new Text$1(`${source.startLine}`),\n ]), new CR(8));\n contextTags.push(new CR(8), contextGroupTag);\n });\n const transUnit = new Tag(_UNIT_TAG$1, { id: message.id, datatype: 'html' });\n transUnit.children.push(new CR(8), new Tag(_SOURCE_TAG$1, {}, visitor.serialize(message.nodes)), ...contextTags);\n if (message.description) {\n transUnit.children.push(new CR(8), new Tag('note', { priority: '1', from: 'description' }, [\n new Text$1(message.description),\n ]));\n }\n if (message.meaning) {\n transUnit.children.push(new CR(8), new Tag('note', { priority: '1', from: 'meaning' }, [new Text$1(message.meaning)]));\n }\n transUnit.children.push(new CR(6));\n transUnits.push(new CR(6), transUnit);\n });\n const body = new Tag('body', {}, [...transUnits, new CR(4)]);\n const file = new Tag('file', {\n 'source-language': locale || _DEFAULT_SOURCE_LANG$1,\n datatype: 'plaintext',\n original: 'ng2.template',\n }, [new CR(4), body, new CR(2)]);\n const xliff = new Tag('xliff', { version: _VERSION$1, xmlns: _XMLNS$1 }, [\n new CR(2),\n file,\n new CR(),\n ]);\n return serialize$1([\n new Declaration({ version: '1.0', encoding: 'UTF-8' }),\n new CR(),\n xliff,\n new CR(),\n ]);\n }\n load(content, url) {\n // xliff to xml nodes\n const xliffParser = new XliffParser();\n const { locale, msgIdToHtml, errors } = xliffParser.parse(content, url);\n // xml nodes to i18n nodes\n const i18nNodesByMsgId = {};\n const converter = new XmlToI18n$2();\n Object.keys(msgIdToHtml).forEach((msgId) => {\n const { i18nNodes, errors: e } = converter.convert(msgIdToHtml[msgId], url);\n errors.push(...e);\n i18nNodesByMsgId[msgId] = i18nNodes;\n });\n if (errors.length) {\n throw new Error(`xliff parse errors:\\n${errors.join('\\n')}`);\n }\n return { locale: locale, i18nNodesByMsgId };\n }\n digest(message) {\n return digest$1(message);\n }\n}\nclass _WriteVisitor$1 {\n visitText(text, context) {\n return [new Text$1(text.value)];\n }\n visitContainer(container, context) {\n const nodes = [];\n container.children.forEach((node) => nodes.push(...node.visit(this)));\n return nodes;\n }\n visitIcu(icu, context) {\n const nodes = [new Text$1(`{${icu.expressionPlaceholder}, ${icu.type}, `)];\n Object.keys(icu.cases).forEach((c) => {\n nodes.push(new Text$1(`${c} {`), ...icu.cases[c].visit(this), new Text$1(`} `));\n });\n nodes.push(new Text$1(`}`));\n return nodes;\n }\n visitTagPlaceholder(ph, context) {\n const ctype = getCtypeForTag(ph.tag);\n if (ph.isVoid) {\n // void tags have no children nor closing tags\n return [\n new Tag(_PLACEHOLDER_TAG$2, { id: ph.startName, ctype, 'equiv-text': `<${ph.tag}/>` }),\n ];\n }\n const startTagPh = new Tag(_PLACEHOLDER_TAG$2, {\n id: ph.startName,\n ctype,\n 'equiv-text': `<${ph.tag}>`,\n });\n const closeTagPh = new Tag(_PLACEHOLDER_TAG$2, {\n id: ph.closeName,\n ctype,\n 'equiv-text': `</${ph.tag}>`,\n });\n return [startTagPh, ...this.serialize(ph.children), closeTagPh];\n }\n visitPlaceholder(ph, context) {\n return [new Tag(_PLACEHOLDER_TAG$2, { id: ph.name, 'equiv-text': `{{${ph.value}}}` })];\n }\n visitBlockPlaceholder(ph, context) {\n const ctype = `x-${ph.name.toLowerCase().replace(/[^a-z0-9]/g, '-')}`;\n const startTagPh = new Tag(_PLACEHOLDER_TAG$2, {\n id: ph.startName,\n ctype,\n 'equiv-text': `@${ph.name}`,\n });\n const closeTagPh = new Tag(_PLACEHOLDER_TAG$2, { id: ph.closeName, ctype, 'equiv-text': `}` });\n return [startTagPh, ...this.serialize(ph.children), closeTagPh];\n }\n visitIcuPlaceholder(ph, context) {\n const equivText = `{${ph.value.expression}, ${ph.value.type}, ${Object.keys(ph.value.cases)\n .map((value) => value + ' {...}')\n .join(' ')}}`;\n return [new Tag(_PLACEHOLDER_TAG$2, { id: ph.name, 'equiv-text': equivText })];\n }\n serialize(nodes) {\n return [].concat(...nodes.map((node) => node.visit(this)));\n }\n}\n// TODO(vicb): add error management (structure)\n// Extract messages as xml nodes from the xliff file\nclass XliffParser {\n // using non-null assertions because they're re(set) by parse()\n _unitMlString;\n _errors;\n _msgIdToHtml;\n _locale = null;\n parse(xliff, url) {\n this._unitMlString = null;\n this._msgIdToHtml = {};\n const xml = new XmlParser().parse(xliff, url);\n this._errors = xml.errors;\n visitAll(this, xml.rootNodes, null);\n return {\n msgIdToHtml: this._msgIdToHtml,\n errors: this._errors,\n locale: this._locale,\n };\n }\n visitElement(element, context) {\n switch (element.name) {\n case _UNIT_TAG$1:\n this._unitMlString = null;\n const idAttr = element.attrs.find((attr) => attr.name === 'id');\n if (!idAttr) {\n this._addError(element, `<${_UNIT_TAG$1}> misses the \"id\" attribute`);\n }\n else {\n const id = idAttr.value;\n if (this._msgIdToHtml.hasOwnProperty(id)) {\n this._addError(element, `Duplicated translations for msg ${id}`);\n }\n else {\n visitAll(this, element.children, null);\n if (typeof this._unitMlString === 'string') {\n this._msgIdToHtml[id] = this._unitMlString;\n }\n else {\n this._addError(element, `Message ${id} misses a translation`);\n }\n }\n }\n break;\n // ignore those tags\n case _SOURCE_TAG$1:\n case _SEGMENT_SOURCE_TAG:\n case _ALT_TRANS_TAG:\n break;\n case _TARGET_TAG$1:\n const innerTextStart = element.startSourceSpan.end.offset;\n const innerTextEnd = element.endSourceSpan.start.offset;\n const content = element.startSourceSpan.start.file.content;\n const innerText = content.slice(innerTextStart, innerTextEnd);\n this._unitMlString = innerText;\n break;\n case _FILE_TAG:\n const localeAttr = element.attrs.find((attr) => attr.name === 'target-language');\n if (localeAttr) {\n this._locale = localeAttr.value;\n }\n visitAll(this, element.children, null);\n break;\n default:\n // TODO(vicb): assert file structure, xliff version\n // For now only recurse on unhandled nodes\n visitAll(this, element.children, null);\n }\n }\n visitAttribute(attribute, context) { }\n visitText(text, context) { }\n visitComment(comment, context) { }\n visitExpansion(expansion, context) { }\n visitExpansionCase(expansionCase, context) { }\n visitBlock(block, context) { }\n visitBlockParameter(parameter, context) { }\n visitLetDeclaration(decl, context) { }\n _addError(node, message) {\n this._errors.push(new I18nError(node.sourceSpan, message));\n }\n}\n// Convert ml nodes (xliff syntax) to i18n nodes\nclass XmlToI18n$2 {\n // using non-null assertion because it's re(set) by convert()\n _errors;\n convert(message, url) {\n const xmlIcu = new XmlParser().parse(message, url, { tokenizeExpansionForms: true });\n this._errors = xmlIcu.errors;\n const i18nNodes = this._errors.length > 0 || xmlIcu.rootNodes.length == 0\n ? []\n : [].concat(...visitAll(this, xmlIcu.rootNodes));\n return {\n i18nNodes: i18nNodes,\n errors: this._errors,\n };\n }\n visitText(text, context) {\n return new Text$2(text.value, text.sourceSpan);\n }\n visitElement(el, context) {\n if (el.name === _PLACEHOLDER_TAG$2) {\n const nameAttr = el.attrs.find((attr) => attr.name === 'id');\n if (nameAttr) {\n return new Placeholder('', nameAttr.value, el.sourceSpan);\n }\n this._addError(el, `<${_PLACEHOLDER_TAG$2}> misses the \"id\" attribute`);\n return null;\n }\n if (el.name === _MARKER_TAG$1) {\n return [].concat(...visitAll(this, el.children));\n }\n this._addError(el, `Unexpected tag`);\n return null;\n }\n visitExpansion(icu, context) {\n const caseMap = {};\n visitAll(this, icu.cases).forEach((c) => {\n caseMap[c.value] = new Container(c.nodes, icu.sourceSpan);\n });\n return new Icu(icu.switchValue, icu.type, caseMap, icu.sourceSpan);\n }\n visitExpansionCase(icuCase, context) {\n return {\n value: icuCase.value,\n nodes: visitAll(this, icuCase.expression),\n };\n }\n visitComment(comment, context) { }\n visitAttribute(attribute, context) { }\n visitBlock(block, context) { }\n visitBlockParameter(parameter, context) { }\n visitLetDeclaration(decl, context) { }\n _addError(node, message) {\n this._errors.push(new I18nError(node.sourceSpan, message));\n }\n}\nfunction getCtypeForTag(tag) {\n switch (tag.toLowerCase()) {\n case 'br':\n return 'lb';\n case 'img':\n return 'image';\n default:\n return `x-${tag}`;\n }\n}\n\nconst _VERSION = '2.0';\nconst _XMLNS = 'urn:oasis:names:tc:xliff:document:2.0';\n// TODO(vicb): make this a param (s/_/-/)\nconst _DEFAULT_SOURCE_LANG = 'en';\nconst _PLACEHOLDER_TAG$1 = 'ph';\nconst _PLACEHOLDER_SPANNING_TAG = 'pc';\nconst _MARKER_TAG = 'mrk';\nconst _XLIFF_TAG = 'xliff';\nconst _SOURCE_TAG = 'source';\nconst _TARGET_TAG = 'target';\nconst _UNIT_TAG = 'unit';\n// https://docs.oasis-open.org/xliff/xliff-core/v2.0/os/xliff-core-v2.0-os.html\nclass Xliff2 extends Serializer {\n write(messages, locale) {\n const visitor = new _WriteVisitor();\n const units = [];\n messages.forEach((message) => {\n const unit = new Tag(_UNIT_TAG, { id: message.id });\n const notes = new Tag('notes');\n if (message.description || message.meaning) {\n if (message.description) {\n notes.children.push(new CR(8), new Tag('note', { category: 'description' }, [new Text$1(message.description)]));\n }\n if (message.meaning) {\n notes.children.push(new CR(8), new Tag('note', { category: 'meaning' }, [new Text$1(message.meaning)]));\n }\n }\n message.sources.forEach((source) => {\n notes.children.push(new CR(8), new Tag('note', { category: 'location' }, [\n new Text$1(`${source.filePath}:${source.startLine}${source.endLine !== source.startLine ? ',' + source.endLine : ''}`),\n ]));\n });\n notes.children.push(new CR(6));\n unit.children.push(new CR(6), notes);\n const segment = new Tag('segment');\n segment.children.push(new CR(8), new Tag(_SOURCE_TAG, {}, visitor.serialize(message.nodes)), new CR(6));\n unit.children.push(new CR(6), segment, new CR(4));\n units.push(new CR(4), unit);\n });\n const file = new Tag('file', { 'original': 'ng.template', id: 'ngi18n' }, [\n ...units,\n new CR(2),\n ]);\n const xliff = new Tag(_XLIFF_TAG, { version: _VERSION, xmlns: _XMLNS, srcLang: locale || _DEFAULT_SOURCE_LANG }, [new CR(2), file, new CR()]);\n return serialize$1([\n new Declaration({ version: '1.0', encoding: 'UTF-8' }),\n new CR(),\n xliff,\n new CR(),\n ]);\n }\n load(content, url) {\n // xliff to xml nodes\n const xliff2Parser = new Xliff2Parser();\n const { locale, msgIdToHtml, errors } = xliff2Parser.parse(content, url);\n // xml nodes to i18n nodes\n const i18nNodesByMsgId = {};\n const converter = new XmlToI18n$1();\n Object.keys(msgIdToHtml).forEach((msgId) => {\n const { i18nNodes, errors: e } = converter.convert(msgIdToHtml[msgId], url);\n errors.push(...e);\n i18nNodesByMsgId[msgId] = i18nNodes;\n });\n if (errors.length) {\n throw new Error(`xliff2 parse errors:\\n${errors.join('\\n')}`);\n }\n return { locale: locale, i18nNodesByMsgId };\n }\n digest(message) {\n return decimalDigest(message);\n }\n}\nclass _WriteVisitor {\n _nextPlaceholderId = 0;\n visitText(text, context) {\n return [new Text$1(text.value)];\n }\n visitContainer(container, context) {\n const nodes = [];\n container.children.forEach((node) => nodes.push(...node.visit(this)));\n return nodes;\n }\n visitIcu(icu, context) {\n const nodes = [new Text$1(`{${icu.expressionPlaceholder}, ${icu.type}, `)];\n Object.keys(icu.cases).forEach((c) => {\n nodes.push(new Text$1(`${c} {`), ...icu.cases[c].visit(this), new Text$1(`} `));\n });\n nodes.push(new Text$1(`}`));\n return nodes;\n }\n visitTagPlaceholder(ph, context) {\n const type = getTypeForTag(ph.tag);\n if (ph.isVoid) {\n const tagPh = new Tag(_PLACEHOLDER_TAG$1, {\n id: (this._nextPlaceholderId++).toString(),\n equiv: ph.startName,\n type: type,\n disp: `<${ph.tag}/>`,\n });\n return [tagPh];\n }\n const tagPc = new Tag(_PLACEHOLDER_SPANNING_TAG, {\n id: (this._nextPlaceholderId++).toString(),\n equivStart: ph.startName,\n equivEnd: ph.closeName,\n type: type,\n dispStart: `<${ph.tag}>`,\n dispEnd: `</${ph.tag}>`,\n });\n const nodes = [].concat(...ph.children.map((node) => node.visit(this)));\n if (nodes.length) {\n nodes.forEach((node) => tagPc.children.push(node));\n }\n else {\n tagPc.children.push(new Text$1(''));\n }\n return [tagPc];\n }\n visitPlaceholder(ph, context) {\n const idStr = (this._nextPlaceholderId++).toString();\n return [\n new Tag(_PLACEHOLDER_TAG$1, {\n id: idStr,\n equiv: ph.name,\n disp: `{{${ph.value}}}`,\n }),\n ];\n }\n visitBlockPlaceholder(ph, context) {\n const tagPc = new Tag(_PLACEHOLDER_SPANNING_TAG, {\n id: (this._nextPlaceholderId++).toString(),\n equivStart: ph.startName,\n equivEnd: ph.closeName,\n type: 'other',\n dispStart: `@${ph.name}`,\n dispEnd: `}`,\n });\n const nodes = [].concat(...ph.children.map((node) => node.visit(this)));\n if (nodes.length) {\n nodes.forEach((node) => tagPc.children.push(node));\n }\n else {\n tagPc.children.push(new Text$1(''));\n }\n return [tagPc];\n }\n visitIcuPlaceholder(ph, context) {\n const cases = Object.keys(ph.value.cases)\n .map((value) => value + ' {...}')\n .join(' ');\n const idStr = (this._nextPlaceholderId++).toString();\n return [\n new Tag(_PLACEHOLDER_TAG$1, {\n id: idStr,\n equiv: ph.name,\n disp: `{${ph.value.expression}, ${ph.value.type}, ${cases}}`,\n }),\n ];\n }\n serialize(nodes) {\n this._nextPlaceholderId = 0;\n return [].concat(...nodes.map((node) => node.visit(this)));\n }\n}\n// Extract messages as xml nodes from the xliff file\nclass Xliff2Parser {\n // using non-null assertions because they're all (re)set by parse()\n _unitMlString;\n _errors;\n _msgIdToHtml;\n _locale = null;\n parse(xliff, url) {\n this._unitMlString = null;\n this._msgIdToHtml = {};\n const xml = new XmlParser().parse(xliff, url);\n this._errors = xml.errors;\n visitAll(this, xml.rootNodes, null);\n return {\n msgIdToHtml: this._msgIdToHtml,\n errors: this._errors,\n locale: this._locale,\n };\n }\n visitElement(element, context) {\n switch (element.name) {\n case _UNIT_TAG:\n this._unitMlString = null;\n const idAttr = element.attrs.find((attr) => attr.name === 'id');\n if (!idAttr) {\n this._addError(element, `<${_UNIT_TAG}> misses the \"id\" attribute`);\n }\n else {\n const id = idAttr.value;\n if (this._msgIdToHtml.hasOwnProperty(id)) {\n this._addError(element, `Duplicated translations for msg ${id}`);\n }\n else {\n visitAll(this, element.children, null);\n if (typeof this._unitMlString === 'string') {\n this._msgIdToHtml[id] = this._unitMlString;\n }\n else {\n this._addError(element, `Message ${id} misses a translation`);\n }\n }\n }\n break;\n case _SOURCE_TAG:\n // ignore source message\n break;\n case _TARGET_TAG:\n const innerTextStart = element.startSourceSpan.end.offset;\n const innerTextEnd = element.endSourceSpan.start.offset;\n const content = element.startSourceSpan.start.file.content;\n const innerText = content.slice(innerTextStart, innerTextEnd);\n this._unitMlString = innerText;\n break;\n case _XLIFF_TAG:\n const localeAttr = element.attrs.find((attr) => attr.name === 'trgLang');\n if (localeAttr) {\n this._locale = localeAttr.value;\n }\n const versionAttr = element.attrs.find((attr) => attr.name === 'version');\n if (versionAttr) {\n const version = versionAttr.value;\n if (version !== '2.0') {\n this._addError(element, `The XLIFF file version ${version} is not compatible with XLIFF 2.0 serializer`);\n }\n else {\n visitAll(this, element.children, null);\n }\n }\n break;\n default:\n visitAll(this, element.children, null);\n }\n }\n visitAttribute(attribute, context) { }\n visitText(text, context) { }\n visitComment(comment, context) { }\n visitExpansion(expansion, context) { }\n visitExpansionCase(expansionCase, context) { }\n visitBlock(block, context) { }\n visitBlockParameter(parameter, context) { }\n visitLetDeclaration(decl, context) { }\n _addError(node, message) {\n this._errors.push(new I18nError(node.sourceSpan, message));\n }\n}\n// Convert ml nodes (xliff syntax) to i18n nodes\nclass XmlToI18n$1 {\n // using non-null assertion because re(set) by convert()\n _errors;\n convert(message, url) {\n const xmlIcu = new XmlParser().parse(message, url, { tokenizeExpansionForms: true });\n this._errors = xmlIcu.errors;\n const i18nNodes = this._errors.length > 0 || xmlIcu.rootNodes.length == 0\n ? []\n : [].concat(...visitAll(this, xmlIcu.rootNodes));\n return {\n i18nNodes,\n errors: this._errors,\n };\n }\n visitText(text, context) {\n return new Text$2(text.value, text.sourceSpan);\n }\n visitElement(el, context) {\n switch (el.name) {\n case _PLACEHOLDER_TAG$1:\n const nameAttr = el.attrs.find((attr) => attr.name === 'equiv');\n if (nameAttr) {\n return [new Placeholder('', nameAttr.value, el.sourceSpan)];\n }\n this._addError(el, `<${_PLACEHOLDER_TAG$1}> misses the \"equiv\" attribute`);\n break;\n case _PLACEHOLDER_SPANNING_TAG:\n const startAttr = el.attrs.find((attr) => attr.name === 'equivStart');\n const endAttr = el.attrs.find((attr) => attr.name === 'equivEnd');\n if (!startAttr) {\n this._addError(el, `<${_PLACEHOLDER_TAG$1}> misses the \"equivStart\" attribute`);\n }\n else if (!endAttr) {\n this._addError(el, `<${_PLACEHOLDER_TAG$1}> misses the \"equivEnd\" attribute`);\n }\n else {\n const startId = startAttr.value;\n const endId = endAttr.value;\n const nodes = [];\n return nodes.concat(new Placeholder('', startId, el.sourceSpan), ...el.children.map((node) => node.visit(this, null)), new Placeholder('', endId, el.sourceSpan));\n }\n break;\n case _MARKER_TAG:\n return [].concat(...visitAll(this, el.children));\n default:\n this._addError(el, `Unexpected tag`);\n }\n return null;\n }\n visitExpansion(icu, context) {\n const caseMap = {};\n visitAll(this, icu.cases).forEach((c) => {\n caseMap[c.value] = new Container(c.nodes, icu.sourceSpan);\n });\n return new Icu(icu.switchValue, icu.type, caseMap, icu.sourceSpan);\n }\n visitExpansionCase(icuCase, context) {\n return {\n value: icuCase.value,\n nodes: [].concat(...visitAll(this, icuCase.expression)),\n };\n }\n visitComment(comment, context) { }\n visitAttribute(attribute, context) { }\n visitBlock(block, context) { }\n visitBlockParameter(parameter, context) { }\n visitLetDeclaration(decl, context) { }\n _addError(node, message) {\n this._errors.push(new I18nError(node.sourceSpan, message));\n }\n}\nfunction getTypeForTag(tag) {\n switch (tag.toLowerCase()) {\n case 'br':\n case 'b':\n case 'i':\n case 'u':\n return 'fmt';\n case 'img':\n return 'image';\n case 'a':\n return 'link';\n default:\n return 'other';\n }\n}\n\nconst _TRANSLATIONS_TAG = 'translationbundle';\nconst _TRANSLATION_TAG = 'translation';\nconst _PLACEHOLDER_TAG = 'ph';\nclass Xtb extends Serializer {\n write(messages, locale) {\n throw new Error('Unsupported');\n }\n load(content, url) {\n // xtb to xml nodes\n const xtbParser = new XtbParser();\n const { locale, msgIdToHtml, errors } = xtbParser.parse(content, url);\n // xml nodes to i18n nodes\n const i18nNodesByMsgId = {};\n const converter = new XmlToI18n();\n // Because we should be able to load xtb files that rely on features not supported by angular,\n // we need to delay the conversion of html to i18n nodes so that non angular messages are not\n // converted\n Object.keys(msgIdToHtml).forEach((msgId) => {\n const valueFn = function () {\n const { i18nNodes, errors } = converter.convert(msgIdToHtml[msgId], url);\n if (errors.length) {\n throw new Error(`xtb parse errors:\\n${errors.join('\\n')}`);\n }\n return i18nNodes;\n };\n createLazyProperty(i18nNodesByMsgId, msgId, valueFn);\n });\n if (errors.length) {\n throw new Error(`xtb parse errors:\\n${errors.join('\\n')}`);\n }\n return { locale: locale, i18nNodesByMsgId };\n }\n digest(message) {\n return digest(message);\n }\n createNameMapper(message) {\n return new SimplePlaceholderMapper(message, toPublicName);\n }\n}\nfunction createLazyProperty(messages, id, valueFn) {\n Object.defineProperty(messages, id, {\n configurable: true,\n enumerable: true,\n get: function () {\n const value = valueFn();\n Object.defineProperty(messages, id, { enumerable: true, value });\n return value;\n },\n set: (_) => {\n throw new Error('Could not overwrite an XTB translation');\n },\n });\n}\n// Extract messages as xml nodes from the xtb file\nclass XtbParser {\n // using non-null assertions because they're (re)set by parse()\n _bundleDepth;\n _errors;\n _msgIdToHtml;\n _locale = null;\n parse(xtb, url) {\n this._bundleDepth = 0;\n this._msgIdToHtml = {};\n // We can not parse the ICU messages at this point as some messages might not originate\n // from Angular that could not be lex'd.\n const xml = new XmlParser().parse(xtb, url);\n this._errors = xml.errors;\n visitAll(this, xml.rootNodes);\n return {\n msgIdToHtml: this._msgIdToHtml,\n errors: this._errors,\n locale: this._locale,\n };\n }\n visitElement(element, context) {\n switch (element.name) {\n case _TRANSLATIONS_TAG:\n this._bundleDepth++;\n if (this._bundleDepth > 1) {\n this._addError(element, `<${_TRANSLATIONS_TAG}> elements can not be nested`);\n }\n const langAttr = element.attrs.find((attr) => attr.name === 'lang');\n if (langAttr) {\n this._locale = langAttr.value;\n }\n visitAll(this, element.children, null);\n this._bundleDepth--;\n break;\n case _TRANSLATION_TAG:\n const idAttr = element.attrs.find((attr) => attr.name === 'id');\n if (!idAttr) {\n this._addError(element, `<${_TRANSLATION_TAG}> misses the \"id\" attribute`);\n }\n else {\n const id = idAttr.value;\n if (this._msgIdToHtml.hasOwnProperty(id)) {\n this._addError(element, `Duplicated translations for msg ${id}`);\n }\n else {\n const innerTextStart = element.startSourceSpan.end.offset;\n const innerTextEnd = element.endSourceSpan.start.offset;\n const content = element.startSourceSpan.start.file.content;\n const innerText = content.slice(innerTextStart, innerTextEnd);\n this._msgIdToHtml[id] = innerText;\n }\n }\n break;\n default:\n this._addError(element, 'Unexpected tag');\n }\n }\n visitAttribute(attribute, context) { }\n visitText(text, context) { }\n visitComment(comment, context) { }\n visitExpansion(expansion, context) { }\n visitExpansionCase(expansionCase, context) { }\n visitBlock(block, context) { }\n visitBlockParameter(block, context) { }\n visitLetDeclaration(decl, context) { }\n _addError(node, message) {\n this._errors.push(new I18nError(node.sourceSpan, message));\n }\n}\n// Convert ml nodes (xtb syntax) to i18n nodes\nclass XmlToI18n {\n // using non-null assertion because it's (re)set by convert()\n _errors;\n convert(message, url) {\n const xmlIcu = new XmlParser().parse(message, url, { tokenizeExpansionForms: true });\n this._errors = xmlIcu.errors;\n const i18nNodes = this._errors.length > 0 || xmlIcu.rootNodes.length == 0\n ? []\n : visitAll(this, xmlIcu.rootNodes);\n return {\n i18nNodes,\n errors: this._errors,\n };\n }\n visitText(text, context) {\n return new Text$2(text.value, text.sourceSpan);\n }\n visitExpansion(icu, context) {\n const caseMap = {};\n visitAll(this, icu.cases).forEach((c) => {\n caseMap[c.value] = new Container(c.nodes, icu.sourceSpan);\n });\n return new Icu(icu.switchValue, icu.type, caseMap, icu.sourceSpan);\n }\n visitExpansionCase(icuCase, context) {\n return {\n value: icuCase.value,\n nodes: visitAll(this, icuCase.expression),\n };\n }\n visitElement(el, context) {\n if (el.name === _PLACEHOLDER_TAG) {\n const nameAttr = el.attrs.find((attr) => attr.name === 'name');\n if (nameAttr) {\n return new Placeholder('', nameAttr.value, el.sourceSpan);\n }\n this._addError(el, `<${_PLACEHOLDER_TAG}> misses the \"name\" attribute`);\n }\n else {\n this._addError(el, `Unexpected tag`);\n }\n return null;\n }\n visitComment(comment, context) { }\n visitAttribute(attribute, context) { }\n visitBlock(block, context) { }\n visitBlockParameter(block, context) { }\n visitLetDeclaration(decl, context) { }\n _addError(node, message) {\n this._errors.push(new I18nError(node.sourceSpan, message));\n }\n}\n\n/**\n * A container for translated messages\n */\nclass TranslationBundle {\n _i18nNodesByMsgId;\n digest;\n mapperFactory;\n _i18nToHtml;\n constructor(_i18nNodesByMsgId = {}, locale, digest, mapperFactory, missingTranslationStrategy = MissingTranslationStrategy.Warning, console) {\n this._i18nNodesByMsgId = _i18nNodesByMsgId;\n this.digest = digest;\n this.mapperFactory = mapperFactory;\n this._i18nToHtml = new I18nToHtmlVisitor(_i18nNodesByMsgId, locale, digest, mapperFactory, missingTranslationStrategy, console);\n }\n // Creates a `TranslationBundle` by parsing the given `content` with the `serializer`.\n static load(content, url, serializer, missingTranslationStrategy, console) {\n const { locale, i18nNodesByMsgId } = serializer.load(content, url);\n const digestFn = (m) => serializer.digest(m);\n const mapperFactory = (m) => serializer.createNameMapper(m);\n return new TranslationBundle(i18nNodesByMsgId, locale, digestFn, mapperFactory, missingTranslationStrategy, console);\n }\n // Returns the translation as HTML nodes from the given source message.\n get(srcMsg) {\n const html = this._i18nToHtml.convert(srcMsg);\n if (html.errors.length) {\n throw new Error(html.errors.join('\\n'));\n }\n return html.nodes;\n }\n has(srcMsg) {\n return this.digest(srcMsg) in this._i18nNodesByMsgId;\n }\n}\nclass I18nToHtmlVisitor {\n _i18nNodesByMsgId;\n _locale;\n _digest;\n _mapperFactory;\n _missingTranslationStrategy;\n _console;\n // using non-null assertions because they're (re)set by convert()\n _srcMsg;\n _errors = [];\n _contextStack = [];\n _mapper;\n constructor(_i18nNodesByMsgId = {}, _locale, _digest, _mapperFactory, _missingTranslationStrategy, _console) {\n this._i18nNodesByMsgId = _i18nNodesByMsgId;\n this._locale = _locale;\n this._digest = _digest;\n this._mapperFactory = _mapperFactory;\n this._missingTranslationStrategy = _missingTranslationStrategy;\n this._console = _console;\n }\n convert(srcMsg) {\n this._contextStack.length = 0;\n this._errors.length = 0;\n // i18n to text\n const text = this._convertToText(srcMsg);\n // text to html\n const url = srcMsg.nodes[0].sourceSpan.start.file.url;\n const html = new HtmlParser().parse(text, url, { tokenizeExpansionForms: true });\n return {\n nodes: html.rootNodes,\n errors: [...this._errors, ...html.errors],\n };\n }\n visitText(text, context) {\n // `convert()` uses an `HtmlParser` to return `html.Node`s\n // we should then make sure that any special characters are escaped\n return escapeXml(text.value);\n }\n visitContainer(container, context) {\n return container.children.map((n) => n.visit(this)).join('');\n }\n visitIcu(icu, context) {\n const cases = Object.keys(icu.cases).map((k) => `${k} {${icu.cases[k].visit(this)}}`);\n // TODO(vicb): Once all format switch to using expression placeholders\n // we should throw when the placeholder is not in the source message\n const exp = this._srcMsg.placeholders.hasOwnProperty(icu.expression)\n ? this._srcMsg.placeholders[icu.expression].text\n : icu.expression;\n return `{${exp}, ${icu.type}, ${cases.join(' ')}}`;\n }\n visitPlaceholder(ph, context) {\n const phName = this._mapper(ph.name);\n if (this._srcMsg.placeholders.hasOwnProperty(phName)) {\n return this._srcMsg.placeholders[phName].text;\n }\n if (this._srcMsg.placeholderToMessage.hasOwnProperty(phName)) {\n return this._convertToText(this._srcMsg.placeholderToMessage[phName]);\n }\n this._addError(ph, `Unknown placeholder \"${ph.name}\"`);\n return '';\n }\n // Loaded message contains only placeholders (vs tag and icu placeholders).\n // However when a translation can not be found, we need to serialize the source message\n // which can contain tag placeholders\n visitTagPlaceholder(ph, context) {\n const tag = `${ph.tag}`;\n const attrs = Object.keys(ph.attrs)\n .map((name) => `${name}=\"${ph.attrs[name]}\"`)\n .join(' ');\n if (ph.isVoid) {\n return `<${tag} ${attrs}/>`;\n }\n const children = ph.children.map((c) => c.visit(this)).join('');\n return `<${tag} ${attrs}>${children}</${tag}>`;\n }\n // Loaded message contains only placeholders (vs tag and icu placeholders).\n // However when a translation can not be found, we need to serialize the source message\n // which can contain tag placeholders\n visitIcuPlaceholder(ph, context) {\n // An ICU placeholder references the source message to be serialized\n return this._convertToText(this._srcMsg.placeholderToMessage[ph.name]);\n }\n visitBlockPlaceholder(ph, context) {\n const params = ph.parameters.length === 0 ? '' : ` (${ph.parameters.join('; ')})`;\n const children = ph.children.map((c) => c.visit(this)).join('');\n return `@${ph.name}${params} {${children}}`;\n }\n /**\n * Convert a source message to a translated text string:\n * - text nodes are replaced with their translation,\n * - placeholders are replaced with their content,\n * - ICU nodes are converted to ICU expressions.\n */\n _convertToText(srcMsg) {\n const id = this._digest(srcMsg);\n const mapper = this._mapperFactory ? this._mapperFactory(srcMsg) : null;\n let nodes;\n this._contextStack.push({ msg: this._srcMsg, mapper: this._mapper });\n this._srcMsg = srcMsg;\n if (this._i18nNodesByMsgId.hasOwnProperty(id)) {\n // When there is a translation use its nodes as the source\n // And create a mapper to convert serialized placeholder names to internal names\n nodes = this._i18nNodesByMsgId[id];\n this._mapper = (name) => (mapper ? mapper.toInternalName(name) : name);\n }\n else {\n // When no translation has been found\n // - report an error / a warning / nothing,\n // - use the nodes from the original message\n // - placeholders are already internal and need no mapper\n if (this._missingTranslationStrategy === MissingTranslationStrategy.Error) {\n const ctx = this._locale ? ` for locale \"${this._locale}\"` : '';\n this._addError(srcMsg.nodes[0], `Missing translation for message \"${id}\"${ctx}`);\n }\n else if (this._console &&\n this._missingTranslationStrategy === MissingTranslationStrategy.Warning) {\n const ctx = this._locale ? ` for locale \"${this._locale}\"` : '';\n this._console.warn(`Missing translation for message \"${id}\"${ctx}`);\n }\n nodes = srcMsg.nodes;\n this._mapper = (name) => name;\n }\n const text = nodes.map((node) => node.visit(this)).join('');\n const context = this._contextStack.pop();\n this._srcMsg = context.msg;\n this._mapper = context.mapper;\n return text;\n }\n _addError(el, msg) {\n this._errors.push(new I18nError(el.sourceSpan, msg));\n }\n}\n\nclass I18NHtmlParser {\n _htmlParser;\n // @override\n getTagDefinition;\n _translationBundle;\n constructor(_htmlParser, translations, translationsFormat, missingTranslation = MissingTranslationStrategy.Warning, console) {\n this._htmlParser = _htmlParser;\n if (translations) {\n const serializer = createSerializer(translationsFormat);\n this._translationBundle = TranslationBundle.load(translations, 'i18n', serializer, missingTranslation, console);\n }\n else {\n this._translationBundle = new TranslationBundle({}, null, digest$1, undefined, missingTranslation, console);\n }\n }\n parse(source, url, options = {}) {\n const interpolationConfig = options.interpolationConfig || DEFAULT_INTERPOLATION_CONFIG;\n const parseResult = this._htmlParser.parse(source, url, { interpolationConfig, ...options });\n if (parseResult.errors.length) {\n return new ParseTreeResult(parseResult.rootNodes, parseResult.errors);\n }\n return mergeTranslations(parseResult.rootNodes, this._translationBundle, interpolationConfig, [], {});\n }\n}\nfunction createSerializer(format) {\n format = (format || 'xlf').toLowerCase();\n switch (format) {\n case 'xmb':\n return new Xmb();\n case 'xtb':\n return new Xtb();\n case 'xliff2':\n case 'xlf2':\n return new Xliff2();\n case 'xliff':\n case 'xlf':\n default:\n return new Xliff();\n }\n}\n\n/**\n * A container for message extracted from the templates.\n */\nclass MessageBundle {\n _htmlParser;\n _implicitTags;\n _implicitAttrs;\n _locale;\n _preserveWhitespace;\n _messages = [];\n constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null, _preserveWhitespace = true) {\n this._htmlParser = _htmlParser;\n this._implicitTags = _implicitTags;\n this._implicitAttrs = _implicitAttrs;\n this._locale = _locale;\n this._preserveWhitespace = _preserveWhitespace;\n }\n updateFromTemplate(source, url, interpolationConfig) {\n const htmlParserResult = this._htmlParser.parse(source, url, {\n tokenizeExpansionForms: true,\n interpolationConfig,\n });\n if (htmlParserResult.errors.length) {\n return htmlParserResult.errors;\n }\n // Trim unnecessary whitespace from extracted messages if requested. This\n // makes the messages more durable to trivial whitespace changes without\n // affected message IDs.\n const rootNodes = this._preserveWhitespace\n ? htmlParserResult.rootNodes\n : visitAllWithSiblings(new WhitespaceVisitor(/* preserveSignificantWhitespace */ false), htmlParserResult.rootNodes);\n const i18nParserResult = extractMessages(rootNodes, interpolationConfig, this._implicitTags, this._implicitAttrs, \n /* preserveSignificantWhitespace */ this._preserveWhitespace);\n if (i18nParserResult.errors.length) {\n return i18nParserResult.errors;\n }\n this._messages.push(...i18nParserResult.messages);\n return [];\n }\n // Return the message in the internal format\n // The public (serialized) format might be different, see the `write` method.\n getMessages() {\n return this._messages;\n }\n write(serializer, filterSources) {\n const messages = {};\n const mapperVisitor = new MapPlaceholderNames();\n // Deduplicate messages based on their ID\n this._messages.forEach((message) => {\n const id = serializer.digest(message);\n if (!messages.hasOwnProperty(id)) {\n messages[id] = message;\n }\n else {\n messages[id].sources.push(...message.sources);\n }\n });\n // Transform placeholder names using the serializer mapping\n const msgList = Object.keys(messages).map((id) => {\n const mapper = serializer.createNameMapper(messages[id]);\n const src = messages[id];\n const nodes = mapper ? mapperVisitor.convert(src.nodes, mapper) : src.nodes;\n let transformedMessage = new Message(nodes, {}, {}, src.meaning, src.description, id);\n transformedMessage.sources = src.sources;\n if (filterSources) {\n transformedMessage.sources.forEach((source) => (source.filePath = filterSources(source.filePath)));\n }\n return transformedMessage;\n });\n return serializer.write(msgList, this._locale);\n }\n}\n// Transform an i18n AST by renaming the placeholder nodes with the given mapper\nclass MapPlaceholderNames extends CloneVisitor {\n convert(nodes, mapper) {\n return mapper ? nodes.map((n) => n.visit(this, mapper)) : nodes;\n }\n visitTagPlaceholder(ph, mapper) {\n const startName = mapper.toPublicName(ph.startName);\n const closeName = ph.closeName ? mapper.toPublicName(ph.closeName) : ph.closeName;\n const children = ph.children.map((n) => n.visit(this, mapper));\n return new TagPlaceholder(ph.tag, ph.attrs, startName, closeName, children, ph.isVoid, ph.sourceSpan, ph.startSourceSpan, ph.endSourceSpan);\n }\n visitBlockPlaceholder(ph, mapper) {\n const startName = mapper.toPublicName(ph.startName);\n const closeName = ph.closeName ? mapper.toPublicName(ph.closeName) : ph.closeName;\n const children = ph.children.map((n) => n.visit(this, mapper));\n return new BlockPlaceholder(ph.name, ph.parameters, startName, closeName, children, ph.sourceSpan, ph.startSourceSpan, ph.endSourceSpan);\n }\n visitPlaceholder(ph, mapper) {\n return new Placeholder(ph.value, mapper.toPublicName(ph.name), ph.sourceSpan);\n }\n visitIcuPlaceholder(ph, mapper) {\n return new IcuPlaceholder(ph.value, mapper.toPublicName(ph.name), ph.sourceSpan);\n }\n}\n\nvar FactoryTarget;\n(function (FactoryTarget) {\n FactoryTarget[FactoryTarget[\"Directive\"] = 0] = \"Directive\";\n FactoryTarget[FactoryTarget[\"Component\"] = 1] = \"Component\";\n FactoryTarget[FactoryTarget[\"Injectable\"] = 2] = \"Injectable\";\n FactoryTarget[FactoryTarget[\"Pipe\"] = 3] = \"Pipe\";\n FactoryTarget[FactoryTarget[\"NgModule\"] = 4] = \"NgModule\";\n})(FactoryTarget || (FactoryTarget = {}));\n\nfunction compileClassMetadata(metadata) {\n const fnCall = internalCompileClassMetadata(metadata);\n return arrowFn([], [devOnlyGuardedExpression(fnCall).toStmt()]).callFn([]);\n}\n/** Compiles only the `setClassMetadata` call without any additional wrappers. */\nfunction internalCompileClassMetadata(metadata) {\n return importExpr(Identifiers.setClassMetadata)\n .callFn([\n metadata.type,\n metadata.decorators,\n metadata.ctorParameters ?? literal(null),\n metadata.propDecorators ?? literal(null),\n ]);\n}\n/**\n * Wraps the `setClassMetadata` function with extra logic that dynamically\n * loads dependencies from `@defer` blocks.\n *\n * Generates a call like this:\n * ```ts\n * setClassMetadataAsync(type, () => [\n * import('./cmp-a').then(m => m.CmpA);\n * import('./cmp-b').then(m => m.CmpB);\n * ], (CmpA, CmpB) => {\n * setClassMetadata(type, decorators, ctorParameters, propParameters);\n * });\n * ```\n *\n * Similar to the `setClassMetadata` call, it's wrapped into the `ngDevMode`\n * check to tree-shake away this code in production mode.\n */\nfunction compileComponentClassMetadata(metadata, dependencies) {\n if (dependencies === null || dependencies.length === 0) {\n // If there are no deferrable symbols - just generate a regular `setClassMetadata` call.\n return compileClassMetadata(metadata);\n }\n return internalCompileSetClassMetadataAsync(metadata, dependencies.map((dep) => new FnParam(dep.symbolName, DYNAMIC_TYPE)), compileComponentMetadataAsyncResolver(dependencies));\n}\n/**\n * Identical to `compileComponentClassMetadata`. Used for the cases where we're unable to\n * analyze the deferred block dependencies, but we have a reference to the compiled\n * dependency resolver function that we can use as is.\n * @param metadata Class metadata for the internal `setClassMetadata` call.\n * @param deferResolver Expression representing the deferred dependency loading function.\n * @param deferredDependencyNames Names of the dependencies that are being loaded asynchronously.\n */\nfunction compileOpaqueAsyncClassMetadata(metadata, deferResolver, deferredDependencyNames) {\n return internalCompileSetClassMetadataAsync(metadata, deferredDependencyNames.map((name) => new FnParam(name, DYNAMIC_TYPE)), deferResolver);\n}\n/**\n * Internal logic used to compile a `setClassMetadataAsync` call.\n * @param metadata Class metadata for the internal `setClassMetadata` call.\n * @param wrapperParams Parameters to be set on the callback that wraps `setClassMetata`.\n * @param dependencyResolverFn Function to resolve the deferred dependencies.\n */\nfunction internalCompileSetClassMetadataAsync(metadata, wrapperParams, dependencyResolverFn) {\n // Omit the wrapper since it'll be added around `setClassMetadataAsync` instead.\n const setClassMetadataCall = internalCompileClassMetadata(metadata);\n const setClassMetaWrapper = arrowFn(wrapperParams, [setClassMetadataCall.toStmt()]);\n const setClassMetaAsync = importExpr(Identifiers.setClassMetadataAsync)\n .callFn([metadata.type, dependencyResolverFn, setClassMetaWrapper]);\n return arrowFn([], [devOnlyGuardedExpression(setClassMetaAsync).toStmt()]).callFn([]);\n}\n/**\n * Compiles the function that loads the dependencies for the\n * entire component in `setClassMetadataAsync`.\n */\nfunction compileComponentMetadataAsyncResolver(dependencies) {\n const dynamicImports = dependencies.map(({ symbolName, importPath, isDefaultImport }) => {\n // e.g. `(m) => m.CmpA`\n const innerFn = \n // Default imports are always accessed through the `default` property.\n arrowFn([new FnParam('m', DYNAMIC_TYPE)], variable('m').prop(isDefaultImport ? 'default' : symbolName));\n // e.g. `import('./cmp-a').then(...)`\n return new DynamicImportExpr(importPath).prop('then').callFn([innerFn]);\n });\n // e.g. `() => [ ... ];`\n return arrowFn([], literalArr(dynamicImports));\n}\n\n/**\n * Generate an ngDevMode guarded call to setClassDebugInfo with the debug info about the class\n * (e.g., the file name in which the class is defined)\n */\nfunction compileClassDebugInfo(debugInfo) {\n const debugInfoObject = {\n className: debugInfo.className,\n };\n // Include file path and line number only if the file relative path is calculated successfully.\n if (debugInfo.filePath) {\n debugInfoObject.filePath = debugInfo.filePath;\n debugInfoObject.lineNumber = debugInfo.lineNumber;\n }\n // Include forbidOrphanRendering only if it's set to true (to reduce generated code)\n if (debugInfo.forbidOrphanRendering) {\n debugInfoObject.forbidOrphanRendering = literal(true);\n }\n const fnCall = importExpr(Identifiers.setClassDebugInfo)\n .callFn([debugInfo.type, mapLiteral(debugInfoObject)]);\n const iife = arrowFn([], [devOnlyGuardedExpression(fnCall).toStmt()]);\n return iife.callFn([]);\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Compiles the expression that initializes HMR for a class.\n * @param meta HMR metadata extracted from the class.\n */\nfunction compileHmrInitializer(meta) {\n const id = encodeURIComponent(`${meta.filePath}@${meta.className}`);\n const urlPartial = `./@ng/component?c=${id}&t=`;\n const moduleName = 'm';\n const dataName = 'd';\n const timestampName = 't';\n const importCallbackName = `${meta.className}_HmrLoad`;\n const locals = meta.localDependencies.map((localName) => variable(localName));\n const namespaces = meta.namespaceDependencies.map((dep) => {\n return new ExternalExpr({ moduleName: dep.moduleName, name: null });\n });\n // m.default\n const defaultRead = variable(moduleName).prop('default');\n // ɵɵreplaceMetadata(Comp, m.default, [...namespaces], [...locals]);\n const replaceCall = importExpr(Identifiers.replaceMetadata)\n .callFn([meta.type, defaultRead, literalArr(namespaces), literalArr(locals)]);\n // (m) => m.default && ɵɵreplaceMetadata(...)\n const replaceCallback = arrowFn([new FnParam(moduleName)], defaultRead.and(replaceCall));\n // '<urlPartial>' + encodeURIComponent(t)\n const urlValue = literal(urlPartial)\n .plus(variable('encodeURIComponent').callFn([variable(timestampName)]));\n // import.meta.url\n const urlBase = variable('import').prop('meta').prop('url');\n // new URL(urlValue, urlBase).href\n const urlHref = new InstantiateExpr(variable('URL'), [urlValue, urlBase]).prop('href');\n // function Cmp_HmrLoad(t) {\n // import(/* @vite-ignore */ urlHref).then((m) => m.default && replaceMetadata(...));\n // }\n const importCallback = new DeclareFunctionStmt(importCallbackName, [new FnParam(timestampName)], [\n // The vite-ignore special comment is required to prevent Vite from generating a superfluous\n // warning for each usage within the development code. If Vite provides a method to\n // programmatically avoid this warning in the future, this added comment can be removed here.\n new DynamicImportExpr(urlHref, null, '@vite-ignore')\n .prop('then')\n .callFn([replaceCallback])\n .toStmt(),\n ], null, StmtModifier.Final);\n // (d) => d.id === <id> && Cmp_HmrLoad(d.timestamp)\n const updateCallback = arrowFn([new FnParam(dataName)], variable(dataName)\n .prop('id')\n .identical(literal(id))\n .and(variable(importCallbackName).callFn([variable(dataName).prop('timestamp')])));\n // Cmp_HmrLoad(Date.now());\n // Initial call to kick off the loading in order to avoid edge cases with components\n // coming from lazy chunks that change before the chunk has loaded.\n const initialCall = variable(importCallbackName)\n .callFn([variable('Date').prop('now').callFn([])]);\n // import.meta.hot\n const hotRead = variable('import').prop('meta').prop('hot');\n // import.meta.hot.on('angular:component-update', () => ...);\n const hotListener = hotRead\n .clone()\n .prop('on')\n .callFn([literal('angular:component-update'), updateCallback]);\n return arrowFn([], [\n // function Cmp_HmrLoad() {...}.\n importCallback,\n // ngDevMode && Cmp_HmrLoad(Date.now());\n devOnlyGuardedExpression(initialCall).toStmt(),\n // ngDevMode && import.meta.hot && import.meta.hot.on(...)\n devOnlyGuardedExpression(hotRead.and(hotListener)).toStmt(),\n ])\n .callFn([]);\n}\n/**\n * Compiles the HMR update callback for a class.\n * @param definitions Compiled definitions for the class (e.g. `defineComponent` calls).\n * @param constantStatements Supporting constants statements that were generated alongside\n * the definition.\n * @param meta HMR metadata extracted from the class.\n */\nfunction compileHmrUpdateCallback(definitions, constantStatements, meta) {\n const namespaces = 'ɵɵnamespaces';\n const params = [meta.className, namespaces, ...meta.localDependencies].map((name) => new FnParam(name, DYNAMIC_TYPE));\n const body = [];\n // Declare variables that read out the individual namespaces.\n for (let i = 0; i < meta.namespaceDependencies.length; i++) {\n body.push(new DeclareVarStmt(meta.namespaceDependencies[i].assignedName, variable(namespaces).key(literal(i)), DYNAMIC_TYPE, StmtModifier.Final));\n }\n body.push(...constantStatements);\n for (const field of definitions) {\n if (field.initializer !== null) {\n body.push(variable(meta.className).prop(field.name).set(field.initializer).toStmt());\n for (const stmt of field.statements) {\n body.push(stmt);\n }\n }\n }\n return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);\n}\n\n/**\n * Every time we make a breaking change to the declaration interface or partial-linker behavior, we\n * must update this constant to prevent old partial-linkers from incorrectly processing the\n * declaration.\n *\n * Do not include any prerelease in these versions as they are ignored.\n */\nconst MINIMUM_PARTIAL_LINKER_VERSION$5 = '12.0.0';\n/**\n * Minimum version at which deferred blocks are supported in the linker.\n */\nconst MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';\nfunction compileDeclareClassMetadata(metadata) {\n const definitionMap = new DefinitionMap();\n definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));\n definitionMap.set('version', literal('19.1.4'));\n definitionMap.set('ngImport', importExpr(Identifiers.core));\n definitionMap.set('type', metadata.type);\n definitionMap.set('decorators', metadata.decorators);\n definitionMap.set('ctorParameters', metadata.ctorParameters);\n definitionMap.set('propDecorators', metadata.propDecorators);\n return importExpr(Identifiers.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);\n}\nfunction compileComponentDeclareClassMetadata(metadata, dependencies) {\n if (dependencies === null || dependencies.length === 0) {\n return compileDeclareClassMetadata(metadata);\n }\n const definitionMap = new DefinitionMap();\n const callbackReturnDefinitionMap = new DefinitionMap();\n callbackReturnDefinitionMap.set('decorators', metadata.decorators);\n callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));\n callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));\n definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));\n definitionMap.set('version', literal('19.1.4'));\n definitionMap.set('ngImport', importExpr(Identifiers.core));\n definitionMap.set('type', metadata.type);\n definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));\n definitionMap.set('resolveMetadata', arrowFn(dependencies.map((dep) => new FnParam(dep.symbolName, DYNAMIC_TYPE)), callbackReturnDefinitionMap.toLiteralMap()));\n return importExpr(Identifiers.declareClassMetadataAsync).callFn([definitionMap.toLiteralMap()]);\n}\n\n/**\n * Creates an array literal expression from the given array, mapping all values to an expression\n * using the provided mapping function. If the array is empty or null, then null is returned.\n *\n * @param values The array to transfer into literal array expression.\n * @param mapper The logic to use for creating an expression for the array's values.\n * @returns An array literal expression representing `values`, or null if `values` is empty or\n * is itself null.\n */\nfunction toOptionalLiteralArray(values, mapper) {\n if (values === null || values.length === 0) {\n return null;\n }\n return literalArr(values.map((value) => mapper(value)));\n}\n/**\n * Creates an object literal expression from the given object, mapping all values to an expression\n * using the provided mapping function. If the object has no keys, then null is returned.\n *\n * @param object The object to transfer into an object literal expression.\n * @param mapper The logic to use for creating an expression for the object's values.\n * @returns An object literal expression representing `object`, or null if `object` does not have\n * any keys.\n */\nfunction toOptionalLiteralMap(object, mapper) {\n const entries = Object.keys(object).map((key) => {\n const value = object[key];\n return { key, value: mapper(value), quoted: true };\n });\n if (entries.length > 0) {\n return literalMap(entries);\n }\n else {\n return null;\n }\n}\nfunction compileDependencies(deps) {\n if (deps === 'invalid') {\n // The `deps` can be set to the string \"invalid\" by the `unwrapConstructorDependencies()`\n // function, which tries to convert `ConstructorDeps` into `R3DependencyMetadata[]`.\n return literal('invalid');\n }\n else if (deps === null) {\n return literal(null);\n }\n else {\n return literalArr(deps.map(compileDependency));\n }\n}\nfunction compileDependency(dep) {\n const depMeta = new DefinitionMap();\n depMeta.set('token', dep.token);\n if (dep.attributeNameType !== null) {\n depMeta.set('attribute', literal(true));\n }\n if (dep.host) {\n depMeta.set('host', literal(true));\n }\n if (dep.optional) {\n depMeta.set('optional', literal(true));\n }\n if (dep.self) {\n depMeta.set('self', literal(true));\n }\n if (dep.skipSelf) {\n depMeta.set('skipSelf', literal(true));\n }\n return depMeta.toLiteralMap();\n}\n\n/**\n * Compile a directive declaration defined by the `R3DirectiveMetadata`.\n */\nfunction compileDeclareDirectiveFromMetadata(meta) {\n const definitionMap = createDirectiveDefinitionMap(meta);\n const expression = importExpr(Identifiers.declareDirective).callFn([definitionMap.toLiteralMap()]);\n const type = createDirectiveType(meta);\n return { expression, type, statements: [] };\n}\n/**\n * Gathers the declaration fields for a directive into a `DefinitionMap`. This allows for reusing\n * this logic for components, as they extend the directive metadata.\n */\nfunction createDirectiveDefinitionMap(meta) {\n const definitionMap = new DefinitionMap();\n const minVersion = getMinimumVersionForPartialOutput(meta);\n definitionMap.set('minVersion', literal(minVersion));\n definitionMap.set('version', literal('19.1.4'));\n // e.g. `type: MyDirective`\n definitionMap.set('type', meta.type.value);\n if (meta.isStandalone !== undefined) {\n definitionMap.set('isStandalone', literal(meta.isStandalone));\n }\n if (meta.isSignal) {\n definitionMap.set('isSignal', literal(meta.isSignal));\n }\n // e.g. `selector: 'some-dir'`\n if (meta.selector !== null) {\n definitionMap.set('selector', literal(meta.selector));\n }\n definitionMap.set('inputs', needsNewInputPartialOutput(meta)\n ? createInputsPartialMetadata(meta.inputs)\n : legacyInputsPartialMetadata(meta.inputs));\n definitionMap.set('outputs', conditionallyCreateDirectiveBindingLiteral(meta.outputs));\n definitionMap.set('host', compileHostMetadata(meta.host));\n definitionMap.set('providers', meta.providers);\n if (meta.queries.length > 0) {\n definitionMap.set('queries', literalArr(meta.queries.map(compileQuery)));\n }\n if (meta.viewQueries.length > 0) {\n definitionMap.set('viewQueries', literalArr(meta.viewQueries.map(compileQuery)));\n }\n if (meta.exportAs !== null) {\n definitionMap.set('exportAs', asLiteral(meta.exportAs));\n }\n if (meta.usesInheritance) {\n definitionMap.set('usesInheritance', literal(true));\n }\n if (meta.lifecycle.usesOnChanges) {\n definitionMap.set('usesOnChanges', literal(true));\n }\n if (meta.hostDirectives?.length) {\n definitionMap.set('hostDirectives', createHostDirectives(meta.hostDirectives));\n }\n definitionMap.set('ngImport', importExpr(Identifiers.core));\n return definitionMap;\n}\n/**\n * Determines the minimum linker version for the partial output\n * generated for this directive.\n *\n * Every time we make a breaking change to the declaration interface or partial-linker\n * behavior, we must update the minimum versions to prevent old partial-linkers from\n * incorrectly processing the declaration.\n *\n * NOTE: Do not include any prerelease in these versions as they are ignored.\n */\nfunction getMinimumVersionForPartialOutput(meta) {\n // We are starting with the oldest minimum version that can work for common\n // directive partial compilation output. As we discover usages of new features\n // that require a newer partial output emit, we bump the `minVersion`. Our goal\n // is to keep libraries as much compatible with older linker versions as possible.\n let minVersion = '14.0.0';\n // Note: in order to allow consuming Angular libraries that have been compiled with 16.1+ in\n // Angular 16.0, we only force a minimum version of 16.1 if input transform feature as introduced\n // in 16.1 is actually used.\n const hasDecoratorTransformFunctions = Object.values(meta.inputs).some((input) => input.transformFunction !== null);\n if (hasDecoratorTransformFunctions) {\n minVersion = '16.1.0';\n }\n // If there are input flags and we need the new emit, use the actual minimum version,\n // where this was introduced. i.e. in 17.1.0\n // TODO(legacy-partial-output-inputs): Remove in v18.\n if (needsNewInputPartialOutput(meta)) {\n minVersion = '17.1.0';\n }\n // If there are signal-based queries, partial output generates an extra field\n // that should be parsed by linkers. Ensure a proper minimum linker version.\n if (meta.queries.some((q) => q.isSignal) || meta.viewQueries.some((q) => q.isSignal)) {\n minVersion = '17.2.0';\n }\n return minVersion;\n}\n/**\n * Gets whether the given directive needs the new input partial output structure\n * that can hold additional metadata like `isRequired`, `isSignal` etc.\n */\nfunction needsNewInputPartialOutput(meta) {\n return Object.values(meta.inputs).some((input) => input.isSignal);\n}\n/**\n * Compiles the metadata of a single query into its partial declaration form as declared\n * by `R3DeclareQueryMetadata`.\n */\nfunction compileQuery(query) {\n const meta = new DefinitionMap();\n meta.set('propertyName', literal(query.propertyName));\n if (query.first) {\n meta.set('first', literal(true));\n }\n meta.set('predicate', Array.isArray(query.predicate)\n ? asLiteral(query.predicate)\n : convertFromMaybeForwardRefExpression(query.predicate));\n if (!query.emitDistinctChangesOnly) {\n // `emitDistinctChangesOnly` is special because we expect it to be `true`.\n // Therefore we explicitly emit the field, and explicitly place it only when it's `false`.\n meta.set('emitDistinctChangesOnly', literal(false));\n }\n else {\n // The linker will assume that an absent `emitDistinctChangesOnly` flag is by default `true`.\n }\n if (query.descendants) {\n meta.set('descendants', literal(true));\n }\n meta.set('read', query.read);\n if (query.static) {\n meta.set('static', literal(true));\n }\n if (query.isSignal) {\n meta.set('isSignal', literal(true));\n }\n return meta.toLiteralMap();\n}\n/**\n * Compiles the host metadata into its partial declaration form as declared\n * in `R3DeclareDirectiveMetadata['host']`\n */\nfunction compileHostMetadata(meta) {\n const hostMetadata = new DefinitionMap();\n hostMetadata.set('attributes', toOptionalLiteralMap(meta.attributes, (expression) => expression));\n hostMetadata.set('listeners', toOptionalLiteralMap(meta.listeners, literal));\n hostMetadata.set('properties', toOptionalLiteralMap(meta.properties, literal));\n if (meta.specialAttributes.styleAttr) {\n hostMetadata.set('styleAttribute', literal(meta.specialAttributes.styleAttr));\n }\n if (meta.specialAttributes.classAttr) {\n hostMetadata.set('classAttribute', literal(meta.specialAttributes.classAttr));\n }\n if (hostMetadata.values.length > 0) {\n return hostMetadata.toLiteralMap();\n }\n else {\n return null;\n }\n}\nfunction createHostDirectives(hostDirectives) {\n const expressions = hostDirectives.map((current) => {\n const keys = [\n {\n key: 'directive',\n value: current.isForwardReference\n ? generateForwardRef(current.directive.type)\n : current.directive.type,\n quoted: false,\n },\n ];\n const inputsLiteral = current.inputs ? createHostDirectivesMappingArray(current.inputs) : null;\n const outputsLiteral = current.outputs\n ? createHostDirectivesMappingArray(current.outputs)\n : null;\n if (inputsLiteral) {\n keys.push({ key: 'inputs', value: inputsLiteral, quoted: false });\n }\n if (outputsLiteral) {\n keys.push({ key: 'outputs', value: outputsLiteral, quoted: false });\n }\n return literalMap(keys);\n });\n // If there's a forward reference, we generate a `function() { return [{directive: HostDir}] }`,\n // otherwise we can save some bytes by using a plain array, e.g. `[{directive: HostDir}]`.\n return literalArr(expressions);\n}\n/**\n * Generates partial output metadata for inputs of a directive.\n *\n * The generated structure is expected to match `R3DeclareDirectiveFacade['inputs']`.\n */\nfunction createInputsPartialMetadata(inputs) {\n const keys = Object.getOwnPropertyNames(inputs);\n if (keys.length === 0) {\n return null;\n }\n return literalMap(keys.map((declaredName) => {\n const value = inputs[declaredName];\n return {\n key: declaredName,\n // put quotes around keys that contain potentially unsafe characters\n quoted: UNSAFE_OBJECT_KEY_NAME_REGEXP.test(declaredName),\n value: literalMap([\n { key: 'classPropertyName', quoted: false, value: asLiteral(value.classPropertyName) },\n { key: 'publicName', quoted: false, value: asLiteral(value.bindingPropertyName) },\n { key: 'isSignal', quoted: false, value: asLiteral(value.isSignal) },\n { key: 'isRequired', quoted: false, value: asLiteral(value.required) },\n { key: 'transformFunction', quoted: false, value: value.transformFunction ?? NULL_EXPR },\n ]),\n };\n }));\n}\n/**\n * Pre v18 legacy partial output for inputs.\n *\n * Previously, inputs did not capture metadata like `isSignal` in the partial compilation output.\n * To enable capturing such metadata, we restructured how input metadata is communicated in the\n * partial output. This would make libraries incompatible with older Angular FW versions where the\n * linker would not know how to handle this new \"format\". For this reason, if we know this metadata\n * does not need to be captured- we fall back to the old format. This is what this function\n * generates.\n *\n * See:\n * https://github.com/angular/angular/blob/d4b423690210872b5c32a322a6090beda30b05a3/packages/core/src/compiler/compiler_facade_interface.ts#L197-L199\n */\nfunction legacyInputsPartialMetadata(inputs) {\n // TODO(legacy-partial-output-inputs): Remove function in v18.\n const keys = Object.getOwnPropertyNames(inputs);\n if (keys.length === 0) {\n return null;\n }\n return literalMap(keys.map((declaredName) => {\n const value = inputs[declaredName];\n const publicName = value.bindingPropertyName;\n const differentDeclaringName = publicName !== declaredName;\n let result;\n if (differentDeclaringName || value.transformFunction !== null) {\n const values = [asLiteral(publicName), asLiteral(declaredName)];\n if (value.transformFunction !== null) {\n values.push(value.transformFunction);\n }\n result = literalArr(values);\n }\n else {\n result = asLiteral(publicName);\n }\n return {\n key: declaredName,\n // put quotes around keys that contain potentially unsafe characters\n quoted: UNSAFE_OBJECT_KEY_NAME_REGEXP.test(declaredName),\n value: result,\n };\n }));\n}\n\n/**\n * Compile a component declaration defined by the `R3ComponentMetadata`.\n */\nfunction compileDeclareComponentFromMetadata(meta, template, additionalTemplateInfo) {\n const definitionMap = createComponentDefinitionMap(meta, template, additionalTemplateInfo);\n const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);\n const type = createComponentType(meta);\n return { expression, type, statements: [] };\n}\n/**\n * Gathers the declaration fields for a component into a `DefinitionMap`.\n */\nfunction createComponentDefinitionMap(meta, template, templateInfo) {\n const definitionMap = createDirectiveDefinitionMap(meta);\n const blockVisitor = new BlockPresenceVisitor();\n visitAll$1(blockVisitor, template.nodes);\n definitionMap.set('template', getTemplateExpression(template, templateInfo));\n if (templateInfo.isInline) {\n definitionMap.set('isInline', literal(true));\n }\n // Set the minVersion to 17.0.0 if the component is using at least one block in its template.\n // We don't do this for templates without blocks, in order to preserve backwards compatibility.\n if (blockVisitor.hasBlocks) {\n definitionMap.set('minVersion', literal('17.0.0'));\n }\n definitionMap.set('styles', toOptionalLiteralArray(meta.styles, literal));\n definitionMap.set('dependencies', compileUsedDependenciesMetadata(meta));\n definitionMap.set('viewProviders', meta.viewProviders);\n definitionMap.set('animations', meta.animations);\n if (meta.changeDetection !== null) {\n if (typeof meta.changeDetection === 'object') {\n throw new Error('Impossible state! Change detection flag is not resolved!');\n }\n definitionMap.set('changeDetection', importExpr(Identifiers.ChangeDetectionStrategy)\n .prop(ChangeDetectionStrategy[meta.changeDetection]));\n }\n if (meta.encapsulation !== ViewEncapsulation.Emulated) {\n definitionMap.set('encapsulation', importExpr(Identifiers.ViewEncapsulation).prop(ViewEncapsulation[meta.encapsulation]));\n }\n if (meta.interpolation !== DEFAULT_INTERPOLATION_CONFIG) {\n definitionMap.set('interpolation', literalArr([literal(meta.interpolation.start), literal(meta.interpolation.end)]));\n }\n if (template.preserveWhitespaces === true) {\n definitionMap.set('preserveWhitespaces', literal(true));\n }\n if (meta.defer.mode === 0 /* DeferBlockDepsEmitMode.PerBlock */) {\n const resolvers = [];\n let hasResolvers = false;\n for (const deps of meta.defer.blocks.values()) {\n // Note: we need to push a `null` even if there are no dependencies, because matching of\n // defer resolver functions to defer blocks happens by index and not adding an array\n // entry for a block can throw off the blocks coming after it.\n if (deps === null) {\n resolvers.push(literal(null));\n }\n else {\n resolvers.push(deps);\n hasResolvers = true;\n }\n }\n // If *all* the resolvers are null, we can skip the field.\n if (hasResolvers) {\n definitionMap.set('deferBlockDependencies', literalArr(resolvers));\n }\n }\n else {\n throw new Error('Unsupported defer function emit mode in partial compilation');\n }\n return definitionMap;\n}\nfunction getTemplateExpression(template, templateInfo) {\n // If the template has been defined using a direct literal, we use that expression directly\n // without any modifications. This is ensures proper source mapping from the partially\n // compiled code to the source file declaring the template. Note that this does not capture\n // template literals referenced indirectly through an identifier.\n if (templateInfo.inlineTemplateLiteralExpression !== null) {\n return templateInfo.inlineTemplateLiteralExpression;\n }\n // If the template is defined inline but not through a literal, the template has been resolved\n // through static interpretation. We create a literal but cannot provide any source span. Note\n // that we cannot use the expression defining the template because the linker expects the template\n // to be defined as a literal in the declaration.\n if (templateInfo.isInline) {\n return literal(templateInfo.content, null, null);\n }\n // The template is external so we must synthesize an expression node with\n // the appropriate source-span.\n const contents = templateInfo.content;\n const file = new ParseSourceFile(contents, templateInfo.sourceUrl);\n const start = new ParseLocation(file, 0, 0, 0);\n const end = computeEndLocation(file, contents);\n const span = new ParseSourceSpan(start, end);\n return literal(contents, null, span);\n}\nfunction computeEndLocation(file, contents) {\n const length = contents.length;\n let lineStart = 0;\n let lastLineStart = 0;\n let line = 0;\n do {\n lineStart = contents.indexOf('\\n', lastLineStart);\n if (lineStart !== -1) {\n lastLineStart = lineStart + 1;\n line++;\n }\n } while (lineStart !== -1);\n return new ParseLocation(file, length, line, length - lastLineStart);\n}\nfunction compileUsedDependenciesMetadata(meta) {\n const wrapType = meta.declarationListEmitMode !== 0 /* DeclarationListEmitMode.Direct */\n ? generateForwardRef\n : (expr) => expr;\n if (meta.declarationListEmitMode === 3 /* DeclarationListEmitMode.RuntimeResolved */) {\n throw new Error(`Unsupported emit mode`);\n }\n return toOptionalLiteralArray(meta.declarations, (decl) => {\n switch (decl.kind) {\n case R3TemplateDependencyKind.Directive:\n const dirMeta = new DefinitionMap();\n dirMeta.set('kind', literal(decl.isComponent ? 'component' : 'directive'));\n dirMeta.set('type', wrapType(decl.type));\n dirMeta.set('selector', literal(decl.selector));\n dirMeta.set('inputs', toOptionalLiteralArray(decl.inputs, literal));\n dirMeta.set('outputs', toOptionalLiteralArray(decl.outputs, literal));\n dirMeta.set('exportAs', toOptionalLiteralArray(decl.exportAs, literal));\n return dirMeta.toLiteralMap();\n case R3TemplateDependencyKind.Pipe:\n const pipeMeta = new DefinitionMap();\n pipeMeta.set('kind', literal('pipe'));\n pipeMeta.set('type', wrapType(decl.type));\n pipeMeta.set('name', literal(decl.name));\n return pipeMeta.toLiteralMap();\n case R3TemplateDependencyKind.NgModule:\n const ngModuleMeta = new DefinitionMap();\n ngModuleMeta.set('kind', literal('ngmodule'));\n ngModuleMeta.set('type', wrapType(decl.type));\n return ngModuleMeta.toLiteralMap();\n }\n });\n}\nclass BlockPresenceVisitor extends RecursiveVisitor$1 {\n hasBlocks = false;\n visitDeferredBlock() {\n this.hasBlocks = true;\n }\n visitDeferredBlockPlaceholder() {\n this.hasBlocks = true;\n }\n visitDeferredBlockLoading() {\n this.hasBlocks = true;\n }\n visitDeferredBlockError() {\n this.hasBlocks = true;\n }\n visitIfBlock() {\n this.hasBlocks = true;\n }\n visitIfBlockBranch() {\n this.hasBlocks = true;\n }\n visitForLoopBlock() {\n this.hasBlocks = true;\n }\n visitForLoopBlockEmpty() {\n this.hasBlocks = true;\n }\n visitSwitchBlock() {\n this.hasBlocks = true;\n }\n visitSwitchBlockCase() {\n this.hasBlocks = true;\n }\n}\n\n/**\n * Every time we make a breaking change to the declaration interface or partial-linker behavior, we\n * must update this constant to prevent old partial-linkers from incorrectly processing the\n * declaration.\n *\n * Do not include any prerelease in these versions as they are ignored.\n */\nconst MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';\nfunction compileDeclareFactoryFunction(meta) {\n const definitionMap = new DefinitionMap();\n definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));\n definitionMap.set('version', literal('19.1.4'));\n definitionMap.set('ngImport', importExpr(Identifiers.core));\n definitionMap.set('type', meta.type.value);\n definitionMap.set('deps', compileDependencies(meta.deps));\n definitionMap.set('target', importExpr(Identifiers.FactoryTarget).prop(FactoryTarget$1[meta.target]));\n return {\n expression: importExpr(Identifiers.declareFactory).callFn([definitionMap.toLiteralMap()]),\n statements: [],\n type: createFactoryType(meta),\n };\n}\n\n/**\n * Every time we make a breaking change to the declaration interface or partial-linker behavior, we\n * must update this constant to prevent old partial-linkers from incorrectly processing the\n * declaration.\n *\n * Do not include any prerelease in these versions as they are ignored.\n */\nconst MINIMUM_PARTIAL_LINKER_VERSION$3 = '12.0.0';\n/**\n * Compile a Injectable declaration defined by the `R3InjectableMetadata`.\n */\nfunction compileDeclareInjectableFromMetadata(meta) {\n const definitionMap = createInjectableDefinitionMap(meta);\n const expression = importExpr(Identifiers.declareInjectable).callFn([definitionMap.toLiteralMap()]);\n const type = createInjectableType(meta);\n return { expression, type, statements: [] };\n}\n/**\n * Gathers the declaration fields for a Injectable into a `DefinitionMap`.\n */\nfunction createInjectableDefinitionMap(meta) {\n const definitionMap = new DefinitionMap();\n definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));\n definitionMap.set('version', literal('19.1.4'));\n definitionMap.set('ngImport', importExpr(Identifiers.core));\n definitionMap.set('type', meta.type.value);\n // Only generate providedIn property if it has a non-null value\n if (meta.providedIn !== undefined) {\n const providedIn = convertFromMaybeForwardRefExpression(meta.providedIn);\n if (providedIn.value !== null) {\n definitionMap.set('providedIn', providedIn);\n }\n }\n if (meta.useClass !== undefined) {\n definitionMap.set('useClass', convertFromMaybeForwardRefExpression(meta.useClass));\n }\n if (meta.useExisting !== undefined) {\n definitionMap.set('useExisting', convertFromMaybeForwardRefExpression(meta.useExisting));\n }\n if (meta.useValue !== undefined) {\n definitionMap.set('useValue', convertFromMaybeForwardRefExpression(meta.useValue));\n }\n // Factories do not contain `ForwardRef`s since any types are already wrapped in a function call\n // so the types will not be eagerly evaluated. Therefore we do not need to process this expression\n // with `convertFromProviderExpression()`.\n if (meta.useFactory !== undefined) {\n definitionMap.set('useFactory', meta.useFactory);\n }\n if (meta.deps !== undefined) {\n definitionMap.set('deps', literalArr(meta.deps.map(compileDependency)));\n }\n return definitionMap;\n}\n\n/**\n * Every time we make a breaking change to the declaration interface or partial-linker behavior, we\n * must update this constant to prevent old partial-linkers from incorrectly processing the\n * declaration.\n *\n * Do not include any prerelease in these versions as they are ignored.\n */\nconst MINIMUM_PARTIAL_LINKER_VERSION$2 = '12.0.0';\nfunction compileDeclareInjectorFromMetadata(meta) {\n const definitionMap = createInjectorDefinitionMap(meta);\n const expression = importExpr(Identifiers.declareInjector).callFn([definitionMap.toLiteralMap()]);\n const type = createInjectorType(meta);\n return { expression, type, statements: [] };\n}\n/**\n * Gathers the declaration fields for an Injector into a `DefinitionMap`.\n */\nfunction createInjectorDefinitionMap(meta) {\n const definitionMap = new DefinitionMap();\n definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));\n definitionMap.set('version', literal('19.1.4'));\n definitionMap.set('ngImport', importExpr(Identifiers.core));\n definitionMap.set('type', meta.type.value);\n definitionMap.set('providers', meta.providers);\n if (meta.imports.length > 0) {\n definitionMap.set('imports', literalArr(meta.imports));\n }\n return definitionMap;\n}\n\n/**\n * Every time we make a breaking change to the declaration interface or partial-linker behavior, we\n * must update this constant to prevent old partial-linkers from incorrectly processing the\n * declaration.\n *\n * Do not include any prerelease in these versions as they are ignored.\n */\nconst MINIMUM_PARTIAL_LINKER_VERSION$1 = '14.0.0';\nfunction compileDeclareNgModuleFromMetadata(meta) {\n const definitionMap = createNgModuleDefinitionMap(meta);\n const expression = importExpr(Identifiers.declareNgModule).callFn([definitionMap.toLiteralMap()]);\n const type = createNgModuleType(meta);\n return { expression, type, statements: [] };\n}\n/**\n * Gathers the declaration fields for an NgModule into a `DefinitionMap`.\n */\nfunction createNgModuleDefinitionMap(meta) {\n const definitionMap = new DefinitionMap();\n if (meta.kind === R3NgModuleMetadataKind.Local) {\n throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');\n }\n definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));\n definitionMap.set('version', literal('19.1.4'));\n definitionMap.set('ngImport', importExpr(Identifiers.core));\n definitionMap.set('type', meta.type.value);\n // We only generate the keys in the metadata if the arrays contain values.\n // We must wrap the arrays inside a function if any of the values are a forward reference to a\n // not-yet-declared class. This is to support JIT execution of the `ɵɵngDeclareNgModule()` call.\n // In the linker these wrappers are stripped and then reapplied for the `ɵɵdefineNgModule()` call.\n if (meta.bootstrap.length > 0) {\n definitionMap.set('bootstrap', refsToArray(meta.bootstrap, meta.containsForwardDecls));\n }\n if (meta.declarations.length > 0) {\n definitionMap.set('declarations', refsToArray(meta.declarations, meta.containsForwardDecls));\n }\n if (meta.imports.length > 0) {\n definitionMap.set('imports', refsToArray(meta.imports, meta.containsForwardDecls));\n }\n if (meta.exports.length > 0) {\n definitionMap.set('exports', refsToArray(meta.exports, meta.containsForwardDecls));\n }\n if (meta.schemas !== null && meta.schemas.length > 0) {\n definitionMap.set('schemas', literalArr(meta.schemas.map((ref) => ref.value)));\n }\n if (meta.id !== null) {\n definitionMap.set('id', meta.id);\n }\n return definitionMap;\n}\n\n/**\n * Every time we make a breaking change to the declaration interface or partial-linker behavior, we\n * must update this constant to prevent old partial-linkers from incorrectly processing the\n * declaration.\n *\n * Do not include any prerelease in these versions as they are ignored.\n */\nconst MINIMUM_PARTIAL_LINKER_VERSION = '14.0.0';\n/**\n * Compile a Pipe declaration defined by the `R3PipeMetadata`.\n */\nfunction compileDeclarePipeFromMetadata(meta) {\n const definitionMap = createPipeDefinitionMap(meta);\n const expression = importExpr(Identifiers.declarePipe).callFn([definitionMap.toLiteralMap()]);\n const type = createPipeType(meta);\n return { expression, type, statements: [] };\n}\n/**\n * Gathers the declaration fields for a Pipe into a `DefinitionMap`.\n */\nfunction createPipeDefinitionMap(meta) {\n const definitionMap = new DefinitionMap();\n definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));\n definitionMap.set('version', literal('19.1.4'));\n definitionMap.set('ngImport', importExpr(Identifiers.core));\n // e.g. `type: MyPipe`\n definitionMap.set('type', meta.type.value);\n if (meta.isStandalone !== undefined) {\n definitionMap.set('isStandalone', literal(meta.isStandalone));\n }\n // e.g. `name: \"myPipe\"`\n definitionMap.set('name', literal(meta.pipeName));\n if (meta.pure === false) {\n // e.g. `pure: false`\n definitionMap.set('pure', literal(meta.pure));\n }\n return definitionMap;\n}\n\n//////////////////////////////////////\n// This file only reexports content of the `src` folder. Keep it that way.\n// This function call has a global side effects and publishes the compiler into global namespace for\n// the late binding of the Compiler to the @angular/core for jit compilation.\npublishFacade(_global);\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n// This file is not used to build this module. It is only used during editing\n\nexport { AST, ASTWithName, ASTWithSource, AbsoluteSourceSpan, ArrayType, ArrowFunctionExpr, Attribute, Binary, BinaryOperator, BinaryOperatorExpr, BindingPipe, BindingType, Block, BlockParameter, BoundElementProperty, BuiltinType, BuiltinTypeName, CUSTOM_ELEMENTS_SCHEMA, Call, Chain, ChangeDetectionStrategy, CommaExpr, Comment, CompilerConfig, Conditional, ConditionalExpr, ConstantPool, CssSelector, DEFAULT_INTERPOLATION_CONFIG, DYNAMIC_TYPE, DeclareFunctionStmt, DeclareVarStmt, DomElementSchemaRegistry, DynamicImportExpr, EOF, Element, ElementSchemaRegistry, EmitterVisitorContext, EmptyExpr$1 as EmptyExpr, Expansion, ExpansionCase, Expression, ExpressionBinding, ExpressionStatement, ExpressionType, ExternalExpr, ExternalReference, FactoryTarget$1 as FactoryTarget, FunctionExpr, HtmlParser, HtmlTagDefinition, I18NHtmlParser, IfStmt, ImplicitReceiver, InstantiateExpr, Interpolation$1 as Interpolation, InterpolationConfig, InvokeFunctionExpr, JSDocComment, JitEvaluator, KeyedRead, KeyedWrite, LeadingComment, LetDeclaration, Lexer, LiteralArray, LiteralArrayExpr, LiteralExpr, LiteralMap, LiteralMapExpr, LiteralPrimitive, LocalizedString, MapType, MessageBundle, NONE_TYPE, NO_ERRORS_SCHEMA, NodeWithI18n, NonNullAssert, NotExpr, ParseError, ParseErrorLevel, ParseLocation, ParseSourceFile, ParseSourceSpan, ParseSpan, ParseTreeResult, ParsedEvent, ParsedEventType, ParsedProperty, ParsedPropertyType, ParsedVariable, Parser, ParserError, PrefixNot, PropertyRead, PropertyWrite, R3BoundTarget, Identifiers as R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, R3TargetBinder, R3TemplateDependencyKind, ReadKeyExpr, ReadPropExpr, ReadVarExpr, RecursiveAstVisitor, RecursiveVisitor, ResourceLoader, ReturnStatement, STRING_TYPE, SafeCall, SafeKeyedRead, SafePropertyRead, SelectorContext, SelectorListContext, SelectorMatcher, Serializer, SplitInterpolation, Statement, StmtModifier, TagContentType, TaggedTemplateExpr, TemplateBindingParseResult, TemplateLiteral, TemplateLiteralElement, Text, ThisReceiver, BlockNode as TmplAstBlockNode, BoundAttribute as TmplAstBoundAttribute, BoundDeferredTrigger as TmplAstBoundDeferredTrigger, BoundEvent as TmplAstBoundEvent, BoundText as TmplAstBoundText, Content as TmplAstContent, DeferredBlock as TmplAstDeferredBlock, DeferredBlockError as TmplAstDeferredBlockError, DeferredBlockLoading as TmplAstDeferredBlockLoading, DeferredBlockPlaceholder as TmplAstDeferredBlockPlaceholder, DeferredTrigger as TmplAstDeferredTrigger, Element$1 as TmplAstElement, ForLoopBlock as TmplAstForLoopBlock, ForLoopBlockEmpty as TmplAstForLoopBlockEmpty, HoverDeferredTrigger as TmplAstHoverDeferredTrigger, Icu$1 as TmplAstIcu, IdleDeferredTrigger as TmplAstIdleDeferredTrigger, IfBlock as TmplAstIfBlock, IfBlockBranch as TmplAstIfBlockBranch, ImmediateDeferredTrigger as TmplAstImmediateDeferredTrigger, InteractionDeferredTrigger as TmplAstInteractionDeferredTrigger, LetDeclaration$1 as TmplAstLetDeclaration, NeverDeferredTrigger as TmplAstNeverDeferredTrigger, RecursiveVisitor$1 as TmplAstRecursiveVisitor, Reference as TmplAstReference, SwitchBlock as TmplAstSwitchBlock, SwitchBlockCase as TmplAstSwitchBlockCase, Template as TmplAstTemplate, Text$3 as TmplAstText, TextAttribute as TmplAstTextAttribute, TimerDeferredTrigger as TmplAstTimerDeferredTrigger, UnknownBlock as TmplAstUnknownBlock, Variable as TmplAstVariable, ViewportDeferredTrigger as TmplAstViewportDeferredTrigger, Token, TokenType, TransplantedType, TreeError, Type, TypeModifier, TypeofExpr, TypeofExpression, Unary, UnaryOperator, UnaryOperatorExpr, VERSION, VariableBinding, Version, ViewEncapsulation, WrappedNodeExpr, WriteKeyExpr, WritePropExpr, WriteVarExpr, Xliff, Xliff2, Xmb, XmlParser, Xtb, compileClassDebugInfo, compileClassMetadata, compileComponentClassMetadata, compileComponentDeclareClassMetadata, compileComponentFromMetadata, compileDeclareClassMetadata, compileDeclareComponentFromMetadata, compileDeclareDirectiveFromMetadata, compileDeclareFactoryFunction, compileDeclareInjectableFromMetadata, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileDeclarePipeFromMetadata, compileDeferResolverFunction, compileDirectiveFromMetadata, compileFactoryFunction, compileHmrInitializer, compileHmrUpdateCallback, compileInjectable, compileInjector, compileNgModule, compileOpaqueAsyncClassMetadata, compilePipeFromMetadata, computeMsgId, core, createCssSelectorFromNode, createInjectableType, createMayBeForwardRefExpression, devOnlyGuardedExpression, emitDistinctChangesOnlyDefaultValue, encapsulateStyle, findMatchingDirectivesAndPipes, getHtmlTagDefinition, getNsPrefix, getSafePropertyAccessString, identifierName, isNgContainer, isNgContent, isNgTemplate, jsDocComment, leadingComment, literal, literalMap, makeBindingParser, mergeNsAndName, output_ast as outputAst, parseHostBindings, parseTemplate, preserveWhitespacesDefault, publishFacade, r3JitTypeSourceSpan, sanitizeIdentifier, splitNsName, visitAll$1 as tmplAstVisitAll, verifyHostBindings, visitAll };\n","/**\n * @license Angular v19.1.4\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\n/**\n * The default equality function used for `signal` and `computed`, which uses referential equality.\n */\nfunction defaultEquals(a, b) {\n return Object.is(a, b);\n}\n\n/**\n * The currently active consumer `ReactiveNode`, if running code in a reactive context.\n *\n * Change this via `setActiveConsumer`.\n */\nlet activeConsumer = null;\nlet inNotificationPhase = false;\n/**\n * Global epoch counter. Incremented whenever a source signal is set.\n */\nlet epoch = 1;\n/**\n * Symbol used to tell `Signal`s apart from other functions.\n *\n * This can be used to auto-unwrap signals in various cases, or to auto-wrap non-signal values.\n */\nconst SIGNAL = /* @__PURE__ */ Symbol('SIGNAL');\nfunction setActiveConsumer(consumer) {\n const prev = activeConsumer;\n activeConsumer = consumer;\n return prev;\n}\nfunction getActiveConsumer() {\n return activeConsumer;\n}\nfunction isInNotificationPhase() {\n return inNotificationPhase;\n}\nfunction isReactive(value) {\n return value[SIGNAL] !== undefined;\n}\nconst REACTIVE_NODE = {\n version: 0,\n lastCleanEpoch: 0,\n dirty: false,\n producerNode: undefined,\n producerLastReadVersion: undefined,\n producerIndexOfThis: undefined,\n nextProducerIndex: 0,\n liveConsumerNode: undefined,\n liveConsumerIndexOfThis: undefined,\n consumerAllowSignalWrites: false,\n consumerIsAlwaysLive: false,\n kind: 'unknown',\n producerMustRecompute: () => false,\n producerRecomputeValue: () => { },\n consumerMarkedDirty: () => { },\n consumerOnSignalRead: () => { },\n};\n/**\n * Called by implementations when a producer's signal is read.\n */\nfunction producerAccessed(node) {\n if (inNotificationPhase) {\n throw new Error(typeof ngDevMode !== 'undefined' && ngDevMode\n ? `Assertion error: signal read during notification phase`\n : '');\n }\n if (activeConsumer === null) {\n // Accessed outside of a reactive context, so nothing to record.\n return;\n }\n activeConsumer.consumerOnSignalRead(node);\n // This producer is the `idx`th dependency of `activeConsumer`.\n const idx = activeConsumer.nextProducerIndex++;\n assertConsumerNode(activeConsumer);\n if (idx < activeConsumer.producerNode.length && activeConsumer.producerNode[idx] !== node) {\n // There's been a change in producers since the last execution of `activeConsumer`.\n // `activeConsumer.producerNode[idx]` holds a stale dependency which will be be removed and\n // replaced with `this`.\n //\n // If `activeConsumer` isn't live, then this is a no-op, since we can replace the producer in\n // `activeConsumer.producerNode` directly. However, if `activeConsumer` is live, then we need\n // to remove it from the stale producer's `liveConsumer`s.\n if (consumerIsLive(activeConsumer)) {\n const staleProducer = activeConsumer.producerNode[idx];\n producerRemoveLiveConsumerAtIndex(staleProducer, activeConsumer.producerIndexOfThis[idx]);\n // At this point, the only record of `staleProducer` is the reference at\n // `activeConsumer.producerNode[idx]` which will be overwritten below.\n }\n }\n if (activeConsumer.producerNode[idx] !== node) {\n // We're a new dependency of the consumer (at `idx`).\n activeConsumer.producerNode[idx] = node;\n // If the active consumer is live, then add it as a live consumer. If not, then use 0 as a\n // placeholder value.\n activeConsumer.producerIndexOfThis[idx] = consumerIsLive(activeConsumer)\n ? producerAddLiveConsumer(node, activeConsumer, idx)\n : 0;\n }\n activeConsumer.producerLastReadVersion[idx] = node.version;\n}\n/**\n * Increment the global epoch counter.\n *\n * Called by source producers (that is, not computeds) whenever their values change.\n */\nfunction producerIncrementEpoch() {\n epoch++;\n}\n/**\n * Ensure this producer's `version` is up-to-date.\n */\nfunction producerUpdateValueVersion(node) {\n if (consumerIsLive(node) && !node.dirty) {\n // A live consumer will be marked dirty by producers, so a clean state means that its version\n // is guaranteed to be up-to-date.\n return;\n }\n if (!node.dirty && node.lastCleanEpoch === epoch) {\n // Even non-live consumers can skip polling if they previously found themselves to be clean at\n // the current epoch, since their dependencies could not possibly have changed (such a change\n // would've increased the epoch).\n return;\n }\n if (!node.producerMustRecompute(node) && !consumerPollProducersForChange(node)) {\n // None of our producers report a change since the last time they were read, so no\n // recomputation of our value is necessary, and we can consider ourselves clean.\n producerMarkClean(node);\n return;\n }\n node.producerRecomputeValue(node);\n // After recomputing the value, we're no longer dirty.\n producerMarkClean(node);\n}\n/**\n * Propagate a dirty notification to live consumers of this producer.\n */\nfunction producerNotifyConsumers(node) {\n if (node.liveConsumerNode === undefined) {\n return;\n }\n // Prevent signal reads when we're updating the graph\n const prev = inNotificationPhase;\n inNotificationPhase = true;\n try {\n for (const consumer of node.liveConsumerNode) {\n if (!consumer.dirty) {\n consumerMarkDirty(consumer);\n }\n }\n }\n finally {\n inNotificationPhase = prev;\n }\n}\n/**\n * Whether this `ReactiveNode` in its producer capacity is currently allowed to initiate updates,\n * based on the current consumer context.\n */\nfunction producerUpdatesAllowed() {\n return activeConsumer?.consumerAllowSignalWrites !== false;\n}\nfunction consumerMarkDirty(node) {\n node.dirty = true;\n producerNotifyConsumers(node);\n node.consumerMarkedDirty?.(node);\n}\nfunction producerMarkClean(node) {\n node.dirty = false;\n node.lastCleanEpoch = epoch;\n}\n/**\n * Prepare this consumer to run a computation in its reactive context.\n *\n * Must be called by subclasses which represent reactive computations, before those computations\n * begin.\n */\nfunction consumerBeforeComputation(node) {\n node && (node.nextProducerIndex = 0);\n return setActiveConsumer(node);\n}\n/**\n * Finalize this consumer's state after a reactive computation has run.\n *\n * Must be called by subclasses which represent reactive computations, after those computations\n * have finished.\n */\nfunction consumerAfterComputation(node, prevConsumer) {\n setActiveConsumer(prevConsumer);\n if (!node ||\n node.producerNode === undefined ||\n node.producerIndexOfThis === undefined ||\n node.producerLastReadVersion === undefined) {\n return;\n }\n if (consumerIsLive(node)) {\n // For live consumers, we need to remove the producer -> consumer edge for any stale producers\n // which weren't dependencies after the recomputation.\n for (let i = node.nextProducerIndex; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Truncate the producer tracking arrays.\n // Perf note: this is essentially truncating the length to `node.nextProducerIndex`, but\n // benchmarking has shown that individual pop operations are faster.\n while (node.producerNode.length > node.nextProducerIndex) {\n node.producerNode.pop();\n node.producerLastReadVersion.pop();\n node.producerIndexOfThis.pop();\n }\n}\n/**\n * Determine whether this consumer has any dependencies which have changed since the last time\n * they were read.\n */\nfunction consumerPollProducersForChange(node) {\n assertConsumerNode(node);\n // Poll producers for change.\n for (let i = 0; i < node.producerNode.length; i++) {\n const producer = node.producerNode[i];\n const seenVersion = node.producerLastReadVersion[i];\n // First check the versions. A mismatch means that the producer's value is known to have\n // changed since the last time we read it.\n if (seenVersion !== producer.version) {\n return true;\n }\n // The producer's version is the same as the last time we read it, but it might itself be\n // stale. Force the producer to recompute its version (calculating a new value if necessary).\n producerUpdateValueVersion(producer);\n // Now when we do this check, `producer.version` is guaranteed to be up to date, so if the\n // versions still match then it has not changed since the last time we read it.\n if (seenVersion !== producer.version) {\n return true;\n }\n }\n return false;\n}\n/**\n * Disconnect this consumer from the graph.\n */\nfunction consumerDestroy(node) {\n assertConsumerNode(node);\n if (consumerIsLive(node)) {\n // Drop all connections from the graph to this node.\n for (let i = 0; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Truncate all the arrays to drop all connection from this node to the graph.\n node.producerNode.length =\n node.producerLastReadVersion.length =\n node.producerIndexOfThis.length =\n 0;\n if (node.liveConsumerNode) {\n node.liveConsumerNode.length = node.liveConsumerIndexOfThis.length = 0;\n }\n}\n/**\n * Add `consumer` as a live consumer of this node.\n *\n * Note that this operation is potentially transitive. If this node becomes live, then it becomes\n * a live consumer of all of its current producers.\n */\nfunction producerAddLiveConsumer(node, consumer, indexOfThis) {\n assertProducerNode(node);\n if (node.liveConsumerNode.length === 0 && isConsumerNode(node)) {\n // When going from 0 to 1 live consumers, we become a live consumer to our producers.\n for (let i = 0; i < node.producerNode.length; i++) {\n node.producerIndexOfThis[i] = producerAddLiveConsumer(node.producerNode[i], node, i);\n }\n }\n node.liveConsumerIndexOfThis.push(indexOfThis);\n return node.liveConsumerNode.push(consumer) - 1;\n}\n/**\n * Remove the live consumer at `idx`.\n */\nfunction producerRemoveLiveConsumerAtIndex(node, idx) {\n assertProducerNode(node);\n if (typeof ngDevMode !== 'undefined' && ngDevMode && idx >= node.liveConsumerNode.length) {\n throw new Error(`Assertion error: active consumer index ${idx} is out of bounds of ${node.liveConsumerNode.length} consumers)`);\n }\n if (node.liveConsumerNode.length === 1 && isConsumerNode(node)) {\n // When removing the last live consumer, we will no longer be live. We need to remove\n // ourselves from our producers' tracking (which may cause consumer-producers to lose\n // liveness as well).\n for (let i = 0; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Move the last value of `liveConsumers` into `idx`. Note that if there's only a single\n // live consumer, this is a no-op.\n const lastIdx = node.liveConsumerNode.length - 1;\n node.liveConsumerNode[idx] = node.liveConsumerNode[lastIdx];\n node.liveConsumerIndexOfThis[idx] = node.liveConsumerIndexOfThis[lastIdx];\n // Truncate the array.\n node.liveConsumerNode.length--;\n node.liveConsumerIndexOfThis.length--;\n // If the index is still valid, then we need to fix the index pointer from the producer to this\n // consumer, and update it from `lastIdx` to `idx` (accounting for the move above).\n if (idx < node.liveConsumerNode.length) {\n const idxProducer = node.liveConsumerIndexOfThis[idx];\n const consumer = node.liveConsumerNode[idx];\n assertConsumerNode(consumer);\n consumer.producerIndexOfThis[idxProducer] = idx;\n }\n}\nfunction consumerIsLive(node) {\n return node.consumerIsAlwaysLive || (node?.liveConsumerNode?.length ?? 0) > 0;\n}\nfunction assertConsumerNode(node) {\n node.producerNode ??= [];\n node.producerIndexOfThis ??= [];\n node.producerLastReadVersion ??= [];\n}\nfunction assertProducerNode(node) {\n node.liveConsumerNode ??= [];\n node.liveConsumerIndexOfThis ??= [];\n}\nfunction isConsumerNode(node) {\n return node.producerNode !== undefined;\n}\n\n/**\n * Create a computed signal which derives a reactive value from an expression.\n */\nfunction createComputed(computation) {\n const node = Object.create(COMPUTED_NODE);\n node.computation = computation;\n const computed = () => {\n // Check if the value needs updating before returning it.\n producerUpdateValueVersion(node);\n // Record that someone looked at this signal.\n producerAccessed(node);\n if (node.value === ERRORED) {\n throw node.error;\n }\n return node.value;\n };\n computed[SIGNAL] = node;\n return computed;\n}\n/**\n * A dedicated symbol used before a computed value has been calculated for the first time.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst UNSET = /* @__PURE__ */ Symbol('UNSET');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * is in progress. Used to detect cycles in computation chains.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst COMPUTING = /* @__PURE__ */ Symbol('COMPUTING');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * failed. The thrown error is cached until the computation gets dirty again.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst ERRORED = /* @__PURE__ */ Symbol('ERRORED');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst COMPUTED_NODE = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n value: UNSET,\n dirty: true,\n error: null,\n equal: defaultEquals,\n kind: 'computed',\n producerMustRecompute(node) {\n // Force a recomputation if there's no current value, or if the current value is in the\n // process of being calculated (which should throw an error).\n return node.value === UNSET || node.value === COMPUTING;\n },\n producerRecomputeValue(node) {\n if (node.value === COMPUTING) {\n // Our computation somehow led to a cyclic read of itself.\n throw new Error('Detected cycle in computations.');\n }\n const oldValue = node.value;\n node.value = COMPUTING;\n const prevConsumer = consumerBeforeComputation(node);\n let newValue;\n let wasEqual = false;\n try {\n newValue = node.computation();\n // We want to mark this node as errored if calling `equal` throws; however, we don't want\n // to track any reactive reads inside `equal`.\n setActiveConsumer(null);\n wasEqual =\n oldValue !== UNSET &&\n oldValue !== ERRORED &&\n newValue !== ERRORED &&\n node.equal(oldValue, newValue);\n }\n catch (err) {\n newValue = ERRORED;\n node.error = err;\n }\n finally {\n consumerAfterComputation(node, prevConsumer);\n }\n if (wasEqual) {\n // No change to `valueVersion` - old and new values are\n // semantically equivalent.\n node.value = oldValue;\n return;\n }\n node.value = newValue;\n node.version++;\n },\n };\n})();\n\nfunction defaultThrowError() {\n throw new Error();\n}\nlet throwInvalidWriteToSignalErrorFn = defaultThrowError;\nfunction throwInvalidWriteToSignalError() {\n throwInvalidWriteToSignalErrorFn();\n}\nfunction setThrowInvalidWriteToSignalError(fn) {\n throwInvalidWriteToSignalErrorFn = fn;\n}\n\n/**\n * If set, called after `WritableSignal`s are updated.\n *\n * This hook can be used to achieve various effects, such as running effects synchronously as part\n * of setting a signal.\n */\nlet postSignalSetFn = null;\n/**\n * Create a `Signal` that can be set or updated directly.\n */\nfunction createSignal(initialValue) {\n const node = Object.create(SIGNAL_NODE);\n node.value = initialValue;\n const getter = (() => {\n producerAccessed(node);\n return node.value;\n });\n getter[SIGNAL] = node;\n return getter;\n}\nfunction setPostSignalSetFn(fn) {\n const prev = postSignalSetFn;\n postSignalSetFn = fn;\n return prev;\n}\nfunction signalGetFn() {\n producerAccessed(this);\n return this.value;\n}\nfunction signalSetFn(node, newValue) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError();\n }\n if (!node.equal(node.value, newValue)) {\n node.value = newValue;\n signalValueChanged(node);\n }\n}\nfunction signalUpdateFn(node, updater) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError();\n }\n signalSetFn(node, updater(node.value));\n}\nfunction runPostSignalSetFn() {\n postSignalSetFn?.();\n}\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst SIGNAL_NODE = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n equal: defaultEquals,\n value: undefined,\n kind: 'signal',\n };\n})();\nfunction signalValueChanged(node) {\n node.version++;\n producerIncrementEpoch();\n producerNotifyConsumers(node);\n postSignalSetFn?.();\n}\n\nfunction createLinkedSignal(sourceFn, computationFn, equalityFn) {\n const node = Object.create(LINKED_SIGNAL_NODE);\n node.source = sourceFn;\n node.computation = computationFn;\n if (equalityFn != undefined) {\n node.equal = equalityFn;\n }\n const linkedSignalGetter = () => {\n // Check if the value needs updating before returning it.\n producerUpdateValueVersion(node);\n // Record that someone looked at this signal.\n producerAccessed(node);\n if (node.value === ERRORED) {\n throw node.error;\n }\n return node.value;\n };\n const getter = linkedSignalGetter;\n getter[SIGNAL] = node;\n return getter;\n}\nfunction linkedSignalSetFn(node, newValue) {\n producerUpdateValueVersion(node);\n signalSetFn(node, newValue);\n producerMarkClean(node);\n}\nfunction linkedSignalUpdateFn(node, updater) {\n producerUpdateValueVersion(node);\n signalUpdateFn(node, updater);\n producerMarkClean(node);\n}\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `LINKED_SIGNAL_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst LINKED_SIGNAL_NODE = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n value: UNSET,\n dirty: true,\n error: null,\n equal: defaultEquals,\n producerMustRecompute(node) {\n // Force a recomputation if there's no current value, or if the current value is in the\n // process of being calculated (which should throw an error).\n return node.value === UNSET || node.value === COMPUTING;\n },\n producerRecomputeValue(node) {\n if (node.value === COMPUTING) {\n // Our computation somehow led to a cyclic read of itself.\n throw new Error('Detected cycle in computations.');\n }\n const oldValue = node.value;\n node.value = COMPUTING;\n const prevConsumer = consumerBeforeComputation(node);\n let newValue;\n try {\n const newSourceValue = node.source();\n const prev = oldValue === UNSET || oldValue === ERRORED\n ? undefined\n : {\n source: node.sourceValue,\n value: oldValue,\n };\n newValue = node.computation(newSourceValue, prev);\n node.sourceValue = newSourceValue;\n }\n catch (err) {\n newValue = ERRORED;\n node.error = err;\n }\n finally {\n consumerAfterComputation(node, prevConsumer);\n }\n if (oldValue !== UNSET && newValue !== ERRORED && node.equal(oldValue, newValue)) {\n // No change to `valueVersion` - old and new values are\n // semantically equivalent.\n node.value = oldValue;\n return;\n }\n node.value = newValue;\n node.version++;\n },\n };\n})();\n\nfunction createWatch(fn, schedule, allowSignalWrites) {\n const node = Object.create(WATCH_NODE);\n if (allowSignalWrites) {\n node.consumerAllowSignalWrites = true;\n }\n node.fn = fn;\n node.schedule = schedule;\n const registerOnCleanup = (cleanupFn) => {\n node.cleanupFn = cleanupFn;\n };\n function isWatchNodeDestroyed(node) {\n return node.fn === null && node.schedule === null;\n }\n function destroyWatchNode(node) {\n if (!isWatchNodeDestroyed(node)) {\n consumerDestroy(node); // disconnect watcher from the reactive graph\n node.cleanupFn();\n // nullify references to the integration functions to mark node as destroyed\n node.fn = null;\n node.schedule = null;\n node.cleanupFn = NOOP_CLEANUP_FN;\n }\n }\n const run = () => {\n if (node.fn === null) {\n // trying to run a destroyed watch is noop\n return;\n }\n if (isInNotificationPhase()) {\n throw new Error(`Schedulers cannot synchronously execute watches while scheduling.`);\n }\n node.dirty = false;\n if (node.hasRun && !consumerPollProducersForChange(node)) {\n return;\n }\n node.hasRun = true;\n const prevConsumer = consumerBeforeComputation(node);\n try {\n node.cleanupFn();\n node.cleanupFn = NOOP_CLEANUP_FN;\n node.fn(registerOnCleanup);\n }\n finally {\n consumerAfterComputation(node, prevConsumer);\n }\n };\n node.ref = {\n notify: () => consumerMarkDirty(node),\n run,\n cleanup: () => node.cleanupFn(),\n destroy: () => destroyWatchNode(node),\n [SIGNAL]: node,\n };\n return node.ref;\n}\nconst NOOP_CLEANUP_FN = () => { };\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst WATCH_NODE = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n consumerIsAlwaysLive: true,\n consumerAllowSignalWrites: false,\n consumerMarkedDirty: (node) => {\n if (node.schedule !== null) {\n node.schedule(node.ref);\n }\n },\n hasRun: false,\n cleanupFn: NOOP_CLEANUP_FN,\n };\n})();\n\nfunction setAlternateWeakRefImpl(impl) {\n // TODO: remove this function\n}\n\nexport { REACTIVE_NODE, SIGNAL, SIGNAL_NODE, consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumerPollProducersForChange, createComputed, createLinkedSignal, createSignal, createWatch, defaultEquals, getActiveConsumer, isInNotificationPhase, isReactive, linkedSignalSetFn, linkedSignalUpdateFn, producerAccessed, producerIncrementEpoch, producerMarkClean, producerNotifyConsumers, producerUpdateValueVersion, producerUpdatesAllowed, runPostSignalSetFn, setActiveConsumer, setAlternateWeakRefImpl, setPostSignalSetFn, setThrowInvalidWriteToSignalError, signalSetFn, signalUpdateFn };\n","/**\n * @license Angular v19.1.4\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nconst Attribute = {\n /**\n * The jsaction attribute defines a mapping of a DOM event to a\n * generic event (aka jsaction), to which the actual event handlers\n * that implement the behavior of the application are bound. The\n * value is a semicolon separated list of colon separated pairs of\n * an optional DOM event name and a jsaction name. If the optional\n * DOM event name is omitted, 'click' is assumed. The jsaction names\n * are dot separated pairs of a namespace and a simple jsaction\n * name.\n *\n * See grammar in README.md for expected syntax in the attribute value.\n */\n JSACTION: 'jsaction',\n};\n\n/** All properties that are used by jsaction. */\nconst Property = {\n /**\n * The parsed value of the jsaction attribute is stored in this\n * property on the DOM node. The parsed value is an Object. The\n * property names of the object are the events; the values are the\n * names of the actions. This property is attached even on nodes\n * that don't have a jsaction attribute as an optimization, because\n * property lookup is faster than attribute access.\n */\n JSACTION: '__jsaction',\n /**\n * The owner property references an a logical owner for a DOM node. JSAction\n * will follow this reference instead of parentNode when traversing the DOM\n * to find jsaction attributes. This allows overlaying a logical structure\n * over a document where the DOM structure can't reflect that structure.\n */\n OWNER: '__owner',\n};\n\n/**\n * Map from jsaction annotation to a parsed map from event name to action name.\n */\nconst parseCache = {};\n/**\n * Reads the jsaction parser cache from the given DOM Element.\n */\nfunction get(element) {\n return element[Property.JSACTION];\n}\n/**\n * Reads the jsaction parser cache for the given DOM element. If no cache is yet present,\n * creates an empty one.\n */\nfunction getDefaulted(element) {\n const cache = get(element) ?? {};\n set(element, cache);\n return cache;\n}\n/**\n * Writes the jsaction parser cache to the given DOM Element.\n */\nfunction set(element, actionMap) {\n element[Property.JSACTION] = actionMap;\n}\n/**\n * Looks up the parsed action map from the source jsaction attribute value.\n *\n * @param text Unparsed jsaction attribute value.\n * @return Parsed jsaction attribute value, if already present in the cache.\n */\nfunction getParsed(text) {\n return parseCache[text];\n}\n/**\n * Inserts the parse result for the given source jsaction value into the cache.\n *\n * @param text Unparsed jsaction attribute value.\n * @param parsed Attribute value parsed into the action map.\n */\nfunction setParsed(text, parsed) {\n parseCache[text] = parsed;\n}\n/**\n * Clears the jsaction parser cache from the given DOM Element.\n *\n * @param element .\n */\nfunction clear(element) {\n if (Property.JSACTION in element) {\n delete element[Property.JSACTION];\n }\n}\n\n/*\n * Names of events that are special to jsaction. These are not all\n * event types that are legal to use in either HTML or the addEvent()\n * API, but these are the ones that are treated specially. All other\n * DOM events can be used in either addEvent() or in the value of the\n * jsaction attribute. Beware of browser specific events or events\n * that don't bubble though: If they are not mentioned here, then\n * event contract doesn't work around their peculiarities.\n */\nconst EventType = {\n /**\n * Mouse middle click, introduced in Chrome 55 and not yet supported on\n * other browsers.\n */\n AUXCLICK: 'auxclick',\n /**\n * The change event fired by browsers when the `value` attribute of input,\n * select, and textarea elements are changed.\n */\n CHANGE: 'change',\n /**\n * The click event. In addEvent() refers to all click events, in the\n * jsaction attribute it refers to the unmodified click and Enter/Space\n * keypress events. In the latter case, a jsaction click will be triggered,\n * for accessibility reasons. See clickmod and clickonly, below.\n */\n CLICK: 'click',\n /**\n * Specifies the jsaction for a modified click event (i.e. a mouse\n * click with the modifier key Cmd/Ctrl pressed). This event isn't\n * separately enabled in addEvent(), because in the DOM, it's just a\n * click event.\n */\n CLICKMOD: 'clickmod',\n /**\n * Specifies the jsaction for a click-only event. Click-only doesn't take\n * into account the case where an element with focus receives an Enter/Space\n * keypress. This event isn't separately enabled in addEvent().\n */\n CLICKONLY: 'clickonly',\n /**\n * The dblclick event.\n */\n DBLCLICK: 'dblclick',\n /**\n * Focus doesn't bubble, but you can use it in addEvent() and\n * jsaction anyway. EventContract does the right thing under the\n * hood.\n */\n FOCUS: 'focus',\n /**\n * This event only exists in IE. For addEvent() and jsaction, use\n * focus instead; EventContract does the right thing even though\n * focus doesn't bubble.\n */\n FOCUSIN: 'focusin',\n /**\n * Analog to focus.\n */\n BLUR: 'blur',\n /**\n * Analog to focusin.\n */\n FOCUSOUT: 'focusout',\n /**\n * Submit doesn't bubble, so it cannot be used with event\n * contract. However, the browser helpfully fires a click event on\n * the submit button of a form (even if the form is not submitted by\n * a click on the submit button). So you should handle click on the\n * submit button instead.\n */\n SUBMIT: 'submit',\n /**\n * The keydown event. In addEvent() and non-click jsaction it represents the\n * regular DOM keydown event. It represents click actions in non-Gecko\n * browsers.\n */\n KEYDOWN: 'keydown',\n /**\n * The keypress event. In addEvent() and non-click jsaction it represents the\n * regular DOM keypress event. It represents click actions in Gecko browsers.\n */\n KEYPRESS: 'keypress',\n /**\n * The keyup event. In addEvent() and non-click jsaction it represents the\n * regular DOM keyup event. It represents click actions in non-Gecko\n * browsers.\n */\n KEYUP: 'keyup',\n /**\n * The mouseup event. Can either be used directly or used implicitly to\n * capture mouseup events. In addEvent(), it represents a regular DOM\n * mouseup event.\n */\n MOUSEUP: 'mouseup',\n /**\n * The mousedown event. Can either be used directly or used implicitly to\n * capture mouseenter events. In addEvent(), it represents a regular DOM\n * mouseover event.\n */\n MOUSEDOWN: 'mousedown',\n /**\n * The mouseover event. Can either be used directly or used implicitly to\n * capture mouseenter events. In addEvent(), it represents a regular DOM\n * mouseover event.\n */\n MOUSEOVER: 'mouseover',\n /**\n * The mouseout event. Can either be used directly or used implicitly to\n * capture mouseover events. In addEvent(), it represents a regular DOM\n * mouseout event.\n */\n MOUSEOUT: 'mouseout',\n /**\n * The mouseenter event. Does not bubble and fires individually on each\n * element being entered within a DOM tree.\n */\n MOUSEENTER: 'mouseenter',\n /**\n * The mouseleave event. Does not bubble and fires individually on each\n * element being entered within a DOM tree.\n */\n MOUSELEAVE: 'mouseleave',\n /**\n * The mousemove event.\n */\n MOUSEMOVE: 'mousemove',\n /**\n * The pointerup event. Can either be used directly or used implicitly to\n * capture pointerup events. In addEvent(), it represents a regular DOM\n * pointerup event.\n */\n POINTERUP: 'pointerup',\n /**\n * The pointerdown event. Can either be used directly or used implicitly to\n * capture pointerenter events. In addEvent(), it represents a regular DOM\n * mouseover event.\n */\n POINTERDOWN: 'pointerdown',\n /**\n * The pointerover event. Can either be used directly or used implicitly to\n * capture pointerenter events. In addEvent(), it represents a regular DOM\n * pointerover event.\n */\n POINTEROVER: 'pointerover',\n /**\n * The pointerout event. Can either be used directly or used implicitly to\n * capture pointerover events. In addEvent(), it represents a regular DOM\n * pointerout event.\n */\n POINTEROUT: 'pointerout',\n /**\n * The pointerenter event. Does not bubble and fires individually on each\n * element being entered within a DOM tree.\n */\n POINTERENTER: 'pointerenter',\n /**\n * The pointerleave event. Does not bubble and fires individually on each\n * element being entered within a DOM tree.\n */\n POINTERLEAVE: 'pointerleave',\n /**\n * The pointermove event.\n */\n POINTERMOVE: 'pointermove',\n /**\n * The pointercancel event.\n */\n POINTERCANCEL: 'pointercancel',\n /**\n * The gotpointercapture event is fired when\n * Element.setPointerCapture(pointerId) is called on a mouse input, or\n * implicitly when a touch input begins.\n */\n GOTPOINTERCAPTURE: 'gotpointercapture',\n /**\n * The lostpointercapture event is fired when\n * Element.releasePointerCapture(pointerId) is called, or implicitly after a\n * touch input ends.\n */\n LOSTPOINTERCAPTURE: 'lostpointercapture',\n /**\n * The error event. The error event doesn't bubble, but you can use it in\n * addEvent() and jsaction anyway. EventContract does the right thing under\n * the hood (except in IE8 which does not use error events).\n */\n ERROR: 'error',\n /**\n * The load event. The load event doesn't bubble, but you can use it in\n * addEvent() and jsaction anyway. EventContract does the right thing\n * under the hood.\n */\n LOAD: 'load',\n /**\n * The unload event.\n */\n UNLOAD: 'unload',\n /**\n * The touchstart event. Bubbles, will only ever fire in browsers with\n * touch support.\n */\n TOUCHSTART: 'touchstart',\n /**\n * The touchend event. Bubbles, will only ever fire in browsers with\n * touch support.\n */\n TOUCHEND: 'touchend',\n /**\n * The touchmove event. Bubbles, will only ever fire in browsers with\n * touch support.\n */\n TOUCHMOVE: 'touchmove',\n /**\n * The input event.\n */\n INPUT: 'input',\n /**\n * The scroll event.\n */\n SCROLL: 'scroll',\n /**\n * The toggle event. The toggle event doesn't bubble, but you can use it in\n * addEvent() and jsaction anyway. EventContract does the right thing\n * under the hood.\n */\n TOGGLE: 'toggle',\n /**\n * A custom event. The actual custom event type is declared as the 'type'\n * field in the event details. Supported in Firefox 6+, IE 9+, and all Chrome\n * versions.\n *\n * This is an internal name. Users should use jsaction's fireCustomEvent to\n * fire custom events instead of relying on this type to create them.\n */\n CUSTOM: '_custom',\n};\n/** All event types that do not bubble or capture and need a polyfill. */\nconst MOUSE_SPECIAL_EVENT_TYPES = [\n EventType.MOUSEENTER,\n EventType.MOUSELEAVE,\n 'pointerenter',\n 'pointerleave',\n];\n/** All event types that are registered in the bubble phase. */\nconst BUBBLE_EVENT_TYPES = [\n EventType.CLICK,\n EventType.DBLCLICK,\n EventType.FOCUSIN,\n EventType.FOCUSOUT,\n EventType.KEYDOWN,\n EventType.KEYUP,\n EventType.KEYPRESS,\n EventType.MOUSEOVER,\n EventType.MOUSEOUT,\n EventType.SUBMIT,\n EventType.TOUCHSTART,\n EventType.TOUCHEND,\n EventType.TOUCHMOVE,\n 'touchcancel',\n 'auxclick',\n 'change',\n 'compositionstart',\n 'compositionupdate',\n 'compositionend',\n 'beforeinput',\n 'input',\n 'select',\n 'copy',\n 'cut',\n 'paste',\n 'mousedown',\n 'mouseup',\n 'wheel',\n 'contextmenu',\n 'dragover',\n 'dragenter',\n 'dragleave',\n 'drop',\n 'dragstart',\n 'dragend',\n 'pointerdown',\n 'pointermove',\n 'pointerup',\n 'pointercancel',\n 'pointerover',\n 'pointerout',\n 'gotpointercapture',\n 'lostpointercapture',\n // Video events.\n 'ended',\n 'loadedmetadata',\n // Page visibility events.\n 'pagehide',\n 'pageshow',\n 'visibilitychange',\n // Content visibility events.\n 'beforematch',\n];\n/** All event types that are registered in the capture phase. */\nconst CAPTURE_EVENT_TYPES = [\n EventType.FOCUS,\n EventType.BLUR,\n EventType.ERROR,\n EventType.LOAD,\n EventType.TOGGLE,\n];\n/**\n * Whether or not an event type should be registered in the capture phase.\n * @param eventType\n * @returns bool\n */\nconst isCaptureEventType = (eventType) => CAPTURE_EVENT_TYPES.indexOf(eventType) >= 0;\n/** All event types that are registered early. */\nconst EARLY_EVENT_TYPES = BUBBLE_EVENT_TYPES.concat(CAPTURE_EVENT_TYPES);\n/**\n * Whether or not an event type is registered in the early contract.\n */\nconst isEarlyEventType = (eventType) => EARLY_EVENT_TYPES.indexOf(eventType) >= 0;\n\n/**\n * If on a Macintosh with an extended keyboard, the Enter key located in the\n * numeric pad has a different ASCII code.\n */\nconst MAC_ENTER = 3;\n/** The Enter key. */\nconst ENTER = 13;\n/** The Space key. */\nconst SPACE = 32;\n/** Special keycodes used by jsaction for the generic click action. */\nconst KeyCode = { MAC_ENTER, ENTER, SPACE };\n\n/**\n * Gets a browser event type, if it would differ from the JSAction event type.\n */\nfunction getBrowserEventType(eventType) {\n // Mouseenter and mouseleave events are not handled directly because they\n // are not available everywhere. In browsers where they are available, they\n // don't bubble and aren't visible at the container boundary. Instead, we\n // synthesize the mouseenter and mouseleave events from mouseover and\n // mouseout events, respectively. Cf. eventcontract.js.\n if (eventType === EventType.MOUSEENTER) {\n return EventType.MOUSEOVER;\n }\n else if (eventType === EventType.MOUSELEAVE) {\n return EventType.MOUSEOUT;\n }\n else if (eventType === EventType.POINTERENTER) {\n return EventType.POINTEROVER;\n }\n else if (eventType === EventType.POINTERLEAVE) {\n return EventType.POINTEROUT;\n }\n return eventType;\n}\n/**\n * Registers the event handler function with the given DOM element for\n * the given event type.\n *\n * @param element The element.\n * @param eventType The event type.\n * @param handler The handler function to install.\n * @param passive A boolean value that, if `true`, indicates that the function\n * specified by `handler` will never call `preventDefault()`.\n * @return Information needed to uninstall the event handler eventually.\n */\nfunction addEventListener(element, eventType, handler, passive) {\n // All event handlers are registered in the bubbling\n // phase.\n //\n // All browsers support focus and blur, but these events only are propagated\n // in the capture phase. Very legacy browsers do not support focusin or\n // focusout.\n //\n // It would be a bad idea to register all event handlers in the\n // capture phase because then regular onclick handlers would not be\n // executed at all on events that trigger a jsaction. That's not\n // entirely what we want, at least for now.\n //\n // Error and load events (i.e. on images) do not bubble so they are also\n // handled in the capture phase.\n let capture = false;\n if (isCaptureEventType(eventType)) {\n capture = true;\n }\n const options = typeof passive === 'boolean' ? { capture, passive } : capture;\n element.addEventListener(eventType, handler, options);\n return { eventType, handler, capture, passive };\n}\n/**\n * Removes the event handler for the given event from the element.\n * the given event type.\n *\n * @param element The element.\n * @param info The information needed to deregister the handler, as returned by\n * addEventListener(), above.\n */\nfunction removeEventListener(element, info) {\n if (element.removeEventListener) {\n // It's worth noting that some browser releases have been inconsistent on this, and unless\n // you have specific reasons otherwise, it's probably wise to use the same values used for\n // the call to addEventListener() when calling removeEventListener().\n const options = typeof info.passive === 'boolean' ? { capture: info.capture } : info.capture;\n element.removeEventListener(info.eventType, info.handler, options);\n // `detachEvent` is an old DOM API.\n }\n else if (element.detachEvent) {\n // `detachEvent` is an old DOM API.\n element.detachEvent(`on${info.eventType}`, info.handler);\n }\n}\n/**\n * Cancels propagation of an event.\n * @param e The event to cancel propagation for.\n */\nfunction stopPropagation(e) {\n e.stopPropagation ? e.stopPropagation() : (e.cancelBubble = true);\n}\n/**\n * Prevents the default action of an event.\n * @param e The event to prevent the default action for.\n */\nfunction preventDefault(e) {\n e.preventDefault ? e.preventDefault() : (e.returnValue = false);\n}\n/**\n * Gets the target Element of the event. In Firefox, a text node may appear as\n * the target of the event, in which case we return the parent element of the\n * text node.\n * @param e The event to get the target of.\n * @return The target element.\n */\nfunction getTarget(e) {\n let el = e.target;\n // In Firefox, the event may have a text node as its target. We always\n // want the parent Element the text node belongs to, however.\n if (!el.getAttribute && el.parentNode) {\n el = el.parentNode;\n }\n return el;\n}\n/**\n * Whether we are on a Mac. Not pulling in useragent just for this.\n */\nlet isMac = typeof navigator !== 'undefined' && /Macintosh/.test(navigator.userAgent);\n/**\n * Determines and returns whether the given event (which is assumed to be a\n * click event) is a middle click.\n * NOTE: There is not a consistent way to identify middle click\n * http://www.unixpapa.com/js/mouse.html\n */\nfunction isMiddleClick(e) {\n return (\n // `which` is an old DOM API.\n e.which === 2 ||\n // `which` is an old DOM API.\n (e.which == null &&\n // `button` is an old DOM API.\n e.button === 4) // middle click for IE\n );\n}\n/**\n * Determines and returns whether the given event (which is assumed\n * to be a click event) is modified. A middle click is considered a modified\n * click to retain the default browser action, which opens a link in a new tab.\n * @param e The event.\n * @return Whether the given event is modified.\n */\nfunction isModifiedClickEvent(e) {\n return (\n // `metaKey` is an old DOM API.\n (isMac && e.metaKey) ||\n // `ctrlKey` is an old DOM API.\n (!isMac && e.ctrlKey) ||\n isMiddleClick(e) ||\n // `shiftKey` is an old DOM API.\n e.shiftKey);\n}\n/** Whether we are on WebKit (e.g., Chrome). */\nconst isWebKit = typeof navigator !== 'undefined' &&\n !/Opera/.test(navigator.userAgent) &&\n /WebKit/.test(navigator.userAgent);\n/** Whether we are on IE. */\nconst isIe = typeof navigator !== 'undefined' &&\n (/MSIE/.test(navigator.userAgent) || /Trident/.test(navigator.userAgent));\n/** Whether we are on Gecko (e.g., Firefox). */\nconst isGecko = typeof navigator !== 'undefined' &&\n !/Opera|WebKit/.test(navigator.userAgent) &&\n /Gecko/.test(navigator.product);\n/**\n * Determines and returns whether the given element is a valid target for\n * keypress/keydown DOM events that act like regular DOM clicks.\n * @param el The element.\n * @return Whether the given element is a valid action key target.\n */\nfunction isValidActionKeyTarget(el) {\n if (!('getAttribute' in el)) {\n return false;\n }\n if (isTextControl(el)) {\n return false;\n }\n if (isNativelyActivatable(el)) {\n return false;\n }\n // `isContentEditable` is an old DOM API.\n if (el.isContentEditable) {\n return false;\n }\n return true;\n}\n/**\n * Whether an event has a modifier key activated.\n * @param e The event.\n * @return True, if a modifier key is activated.\n */\nfunction hasModifierKey(e) {\n return (\n // `ctrlKey` is an old DOM API.\n e.ctrlKey ||\n // `shiftKey` is an old DOM API.\n e.shiftKey ||\n // `altKey` is an old DOM API.\n e.altKey ||\n // `metaKey` is an old DOM API.\n e.metaKey);\n}\n/**\n * Determines and returns whether the given event has a target that already\n * has event handlers attached because it is a native HTML control. Used to\n * determine if preventDefault should be called when isActionKeyEvent is true.\n * @param e The event.\n * @return If preventDefault should be called.\n */\nfunction shouldCallPreventDefaultOnNativeHtmlControl(e) {\n const el = getTarget(e);\n const tagName = el.tagName.toUpperCase();\n const role = (el.getAttribute('role') || '').toUpperCase();\n if (tagName === 'BUTTON' || role === 'BUTTON') {\n return true;\n }\n if (!isNativeHTMLControl(el)) {\n return false;\n }\n if (tagName === 'A') {\n return false;\n }\n /**\n * Fix for physical d-pads on feature phone platforms; the native event\n * (ie. isTrusted: true) needs to fire to show the OPTION list. See\n * b/135288469 for more info.\n */\n if (tagName === 'SELECT') {\n return false;\n }\n if (processSpace(el)) {\n return false;\n }\n if (isTextControl(el)) {\n return false;\n }\n return true;\n}\n/**\n * Determines and returns whether the given event acts like a regular DOM click,\n * and should be handled instead of the click. If this returns true, the caller\n * will call preventDefault() to prevent a possible duplicate event.\n * This is represented by a keypress (keydown on Gecko browsers) on Enter or\n * Space key.\n * @param e The event.\n * @return True, if the event emulates a DOM click.\n */\nfunction isActionKeyEvent(e) {\n let key = \n // `which` is an old DOM API.\n e.which ||\n // `keyCode` is an old DOM API.\n e.keyCode;\n if (!key && e.key) {\n key = ACTION_KEY_TO_KEYCODE[e.key];\n }\n if (isWebKit && key === KeyCode.MAC_ENTER) {\n key = KeyCode.ENTER;\n }\n if (key !== KeyCode.ENTER && key !== KeyCode.SPACE) {\n return false;\n }\n const el = getTarget(e);\n if (e.type !== EventType.KEYDOWN || !isValidActionKeyTarget(el) || hasModifierKey(e)) {\n return false;\n }\n // For <input type=\"checkbox\">, we must only handle the browser's native click\n // event, so that the browser can toggle the checkbox.\n if (processSpace(el) && key === KeyCode.SPACE) {\n return false;\n }\n // If this element is non-focusable, ignore stray keystrokes (b/18337209)\n // Sscreen readers can move without tab focus, so any tabIndex is focusable.\n // See B/21809604\n if (!isFocusable(el)) {\n return false;\n }\n const type = (el.getAttribute('role') ||\n el.type ||\n el.tagName).toUpperCase();\n const isSpecificTriggerKey = IDENTIFIER_TO_KEY_TRIGGER_MAPPING[type] % key === 0;\n const isDefaultTriggerKey = !(type in IDENTIFIER_TO_KEY_TRIGGER_MAPPING) && key === KeyCode.ENTER;\n const hasType = el.tagName.toUpperCase() !== 'INPUT' || !!el.type;\n return (isSpecificTriggerKey || isDefaultTriggerKey) && hasType;\n}\n/**\n * Checks whether a DOM element can receive keyboard focus.\n * This code is based on goog.dom.isFocusable, but simplified since we shouldn't\n * care about visibility if we're already handling a keyboard event.\n */\nfunction isFocusable(el) {\n return ((el.tagName in NATIVELY_FOCUSABLE_ELEMENTS || hasSpecifiedTabIndex(el)) &&\n !el.disabled);\n}\n/**\n * @param element Element to check.\n * @return Whether the element has a specified tab index.\n */\nfunction hasSpecifiedTabIndex(element) {\n // IE returns 0 for an unset tabIndex, so we must use getAttributeNode(),\n // which returns an object with a 'specified' property if tabIndex is\n // specified. This works on other browsers, too.\n const attrNode = element.getAttributeNode('tabindex'); // Must be lowercase!\n return attrNode != null && attrNode.specified;\n}\n/** Element tagnames that are focusable by default. */\nconst NATIVELY_FOCUSABLE_ELEMENTS = {\n 'A': 1,\n 'INPUT': 1,\n 'TEXTAREA': 1,\n 'SELECT': 1,\n 'BUTTON': 1,\n};\n/** @return True, if the Space key was pressed. */\nfunction isSpaceKeyEvent(e) {\n const key = \n // `which` is an old DOM API.\n e.which ||\n // `keyCode` is an old DOM API.\n e.keyCode;\n const el = getTarget(e);\n const elementName = (el.type || el.tagName).toUpperCase();\n return key === KeyCode.SPACE && elementName !== 'CHECKBOX';\n}\n/**\n * Determines whether the event corresponds to a non-bubbling mouse\n * event type (mouseenter, mouseleave, pointerenter, and pointerleave).\n *\n * During mouseover (mouseenter) and pointerover (pointerenter), the\n * relatedTarget is the element being entered from. During mouseout (mouseleave)\n * and pointerout (pointerleave), the relatedTarget is the element being exited\n * to.\n *\n * In both cases, if relatedTarget is outside target, then the corresponding\n * special event has occurred, otherwise it hasn't.\n *\n * @param e The mouseover/mouseout event.\n * @param type The type of the mouse special event.\n * @param element The element on which the jsaction for the\n * mouseenter/mouseleave event is defined.\n * @return True if the event is a mouseenter/mouseleave event.\n */\nfunction isMouseSpecialEvent(e, type, element) {\n // `relatedTarget` is an old DOM API.\n const related = e.relatedTarget;\n return (((e.type === EventType.MOUSEOVER && type === EventType.MOUSEENTER) ||\n (e.type === EventType.MOUSEOUT && type === EventType.MOUSELEAVE) ||\n (e.type === EventType.POINTEROVER && type === EventType.POINTERENTER) ||\n (e.type === EventType.POINTEROUT && type === EventType.POINTERLEAVE)) &&\n (!related || (related !== element && !element.contains(related))));\n}\n/**\n * Creates a new EventLike object for a mouseenter/mouseleave event that's\n * derived from the original corresponding mouseover/mouseout event.\n * @param e The event.\n * @param target The element on which the jsaction for the mouseenter/mouseleave\n * event is defined.\n * @return A modified event-like object copied from the event object passed into\n * this function.\n */\nfunction createMouseSpecialEvent(e, target) {\n // We have to create a copy of the event object because we need to mutate\n // its fields. We do this for the special mouse events because the event\n // target needs to be retargeted to the action element rather than the real\n // element (since we are simulating the special mouse events with mouseover/\n // mouseout).\n //\n // Since we're making a copy anyways, we might as well attempt to convert\n // this event into a pseudo-real mouseenter/mouseleave event by adjusting\n // its type.\n //\n const copy = {};\n for (const property in e) {\n if (property === 'srcElement' || property === 'target') {\n continue;\n }\n const key = property;\n // Making a copy requires iterating through all properties of `Event`.\n const value = e[key];\n if (typeof value === 'function') {\n continue;\n }\n // Value should be the expected type, but the value of `key` is not known\n // statically.\n copy[key] = value;\n }\n if (e.type === EventType.MOUSEOVER) {\n copy['type'] = EventType.MOUSEENTER;\n }\n else if (e.type === EventType.MOUSEOUT) {\n copy['type'] = EventType.MOUSELEAVE;\n }\n else if (e.type === EventType.POINTEROVER) {\n copy['type'] = EventType.POINTERENTER;\n }\n else {\n copy['type'] = EventType.POINTERLEAVE;\n }\n copy['target'] = copy['srcElement'] = target;\n copy['bubbles'] = false;\n copy['_originalEvent'] = e;\n return copy;\n}\n/**\n * Returns touch data extracted from the touch event: clientX, clientY, screenX\n * and screenY. If the event has no touch information at all, the returned\n * value is null.\n *\n * The fields of this Object are unquoted.\n *\n * @param event A touch event.\n */\nfunction getTouchData(event) {\n const touch = (event.changedTouches && event.changedTouches[0]) || (event.touches && event.touches[0]);\n if (!touch) {\n return null;\n }\n return {\n clientX: touch.clientX,\n clientY: touch.clientY,\n screenX: touch.screenX,\n screenY: touch.screenY,\n };\n}\n/**\n * Creates a new EventLike object for a \"click\" event that's derived from the\n * original corresponding \"touchend\" event for a fast-click implementation.\n *\n * It takes a touch event, adds common fields found in a click event and\n * changes the type to 'click', so that the resulting event looks more like\n * a real click event.\n *\n * @param event A touch event.\n * @return A modified event-like object copied from the event object passed into\n * this function.\n */\nfunction recreateTouchEventAsClick(event) {\n const click = {};\n click['originalEventType'] = event.type;\n click['type'] = EventType.CLICK;\n for (const property in event) {\n if (property === 'type' || property === 'srcElement') {\n continue;\n }\n const key = property;\n // Making a copy requires iterating through all properties of `TouchEvent`.\n const value = event[key];\n if (typeof value === 'function') {\n continue;\n }\n // Value should be the expected type, but the value of `key` is not known\n // statically.\n click[key] = value;\n }\n // Ensure that the event has the most recent timestamp. This timestamp\n // may be used in the future to validate or cancel subsequent click events.\n click['timeStamp'] = Date.now();\n // Emulate preventDefault and stopPropagation behavior\n click['defaultPrevented'] = false;\n click['preventDefault'] = syntheticPreventDefault;\n click['_propagationStopped'] = false;\n click['stopPropagation'] = syntheticStopPropagation;\n // Emulate click coordinates using touch info\n const touch = getTouchData(event);\n if (touch) {\n click['clientX'] = touch.clientX;\n click['clientY'] = touch.clientY;\n click['screenX'] = touch.screenX;\n click['screenY'] = touch.screenY;\n }\n return click;\n}\n/**\n * An implementation of \"preventDefault\" for a synthesized event. Simply\n * sets \"defaultPrevented\" property to true.\n */\nfunction syntheticPreventDefault() {\n this.defaultPrevented = true;\n}\n/**\n * An implementation of \"stopPropagation\" for a synthesized event. It simply\n * sets a synthetic non-standard \"_propagationStopped\" property to true.\n */\nfunction syntheticStopPropagation() {\n this._propagationStopped = true;\n}\n/**\n * Mapping of KeyboardEvent.key values to\n * KeyCode values.\n */\nconst ACTION_KEY_TO_KEYCODE = {\n 'Enter': KeyCode.ENTER,\n ' ': KeyCode.SPACE,\n};\n/**\n * Mapping of HTML element identifiers (ARIA role, type, or tagName) to the\n * keys (enter and/or space) that should activate them. A value of zero means\n * that both should activate them.\n */\nconst IDENTIFIER_TO_KEY_TRIGGER_MAPPING = {\n 'A': KeyCode.ENTER,\n 'BUTTON': 0,\n 'CHECKBOX': KeyCode.SPACE,\n 'COMBOBOX': KeyCode.ENTER,\n 'FILE': 0,\n 'GRIDCELL': KeyCode.ENTER,\n 'LINK': KeyCode.ENTER,\n 'LISTBOX': KeyCode.ENTER,\n 'MENU': 0,\n 'MENUBAR': 0,\n 'MENUITEM': 0,\n 'MENUITEMCHECKBOX': 0,\n 'MENUITEMRADIO': 0,\n 'OPTION': 0,\n 'RADIO': KeyCode.SPACE,\n 'RADIOGROUP': KeyCode.SPACE,\n 'RESET': 0,\n 'SUBMIT': 0,\n 'SWITCH': KeyCode.SPACE,\n 'TAB': 0,\n 'TREE': KeyCode.ENTER,\n 'TREEITEM': KeyCode.ENTER,\n};\n/**\n * Returns whether or not to process space based on the type of the element;\n * checks to make sure that type is not null.\n * @param element The element.\n * @return Whether or not to process space based on type.\n */\nfunction processSpace(element) {\n const type = (element.getAttribute('type') || element.tagName).toUpperCase();\n return type in PROCESS_SPACE;\n}\n/**\n * Returns whether or not the given element is a text control.\n * @param el The element.\n * @return Whether or not the given element is a text control.\n */\nfunction isTextControl(el) {\n const type = (el.getAttribute('type') || el.tagName).toUpperCase();\n return type in TEXT_CONTROLS;\n}\n/**\n * Returns if the given element is a native HTML control.\n * @param el The element.\n * @return If the given element is a native HTML control.\n */\nfunction isNativeHTMLControl(el) {\n return el.tagName.toUpperCase() in NATIVE_HTML_CONTROLS;\n}\n/**\n * Returns if the given element is natively activatable. Browsers emit click\n * events for natively activatable elements, even when activated via keyboard.\n * For these elements, we don't need to raise a11y click events.\n * @param el The element.\n * @return If the given element is a native HTML control.\n */\nfunction isNativelyActivatable(el) {\n return (el.tagName.toUpperCase() === 'BUTTON' ||\n (!!el.type && el.type.toUpperCase() === 'FILE'));\n}\n/**\n * HTML <input> types (not ARIA roles) which will auto-trigger a click event for\n * the Space key, with side-effects. We will not call preventDefault if space is\n * pressed, nor will we raise a11y click events. For all other elements, we can\n * suppress the default event (which has no desired side-effects) and handle the\n * keydown ourselves.\n */\nconst PROCESS_SPACE = {\n 'CHECKBOX': true,\n 'FILE': true,\n 'OPTION': true,\n 'RADIO': true,\n};\n/** TagNames and Input types for which to not process enter/space as click. */\nconst TEXT_CONTROLS = {\n 'COLOR': true,\n 'DATE': true,\n 'DATETIME': true,\n 'DATETIME-LOCAL': true,\n 'EMAIL': true,\n 'MONTH': true,\n 'NUMBER': true,\n 'PASSWORD': true,\n 'RANGE': true,\n 'SEARCH': true,\n 'TEL': true,\n 'TEXT': true,\n 'TEXTAREA': true,\n 'TIME': true,\n 'URL': true,\n 'WEEK': true,\n};\n/** TagNames that are native HTML controls. */\nconst NATIVE_HTML_CONTROLS = {\n 'A': true,\n 'AREA': true,\n 'BUTTON': true,\n 'DIALOG': true,\n 'IMG': true,\n 'INPUT': true,\n 'LINK': true,\n 'MENU': true,\n 'OPTGROUP': true,\n 'OPTION': true,\n 'PROGRESS': true,\n 'SELECT': true,\n 'TEXTAREA': true,\n};\n/** Exported for testing. */\nconst testing = {\n setIsMac(value) {\n isMac = value;\n },\n};\n\n/**\n * Whether the user agent is running on iOS.\n */\nconst isIos = typeof navigator !== 'undefined' && /iPhone|iPad|iPod/.test(navigator.userAgent);\n/**\n * A class representing a container node and all the event handlers\n * installed on it. Used so that handlers can be cleaned up if the\n * container is removed from the contract.\n */\nclass EventContractContainer {\n element;\n /**\n * Array of event handlers and their corresponding event types that are\n * installed on this container.\n *\n */\n handlerInfos = [];\n /**\n * @param element The container Element.\n */\n constructor(element) {\n this.element = element;\n }\n /**\n * Installs the provided installer on the element owned by this container,\n * and maintains a reference to resulting handler in order to remove it\n * later if desired.\n */\n addEventListener(eventType, getHandler, passive) {\n // In iOS, event bubbling doesn't happen automatically in any DOM element,\n // unless it has an onclick attribute or DOM event handler attached to it.\n // This breaks JsAction in some cases. See \"Making Elements Clickable\"\n // section at http://goo.gl/2VoGnB.\n //\n // A workaround for this issue is to change the CSS cursor style to 'pointer'\n // for the container element, which magically turns on event bubbling. This\n // solution is described in the comments section at http://goo.gl/6pEO1z.\n //\n // We use a navigator.userAgent check here as this problem is present both\n // on Mobile Safari and thin WebKit wrappers, such as Chrome for iOS.\n if (isIos) {\n this.element.style.cursor = 'pointer';\n }\n this.handlerInfos.push(addEventListener(this.element, eventType, getHandler(this.element), passive));\n }\n /**\n * Removes all the handlers installed on this container.\n */\n cleanUp() {\n for (let i = 0; i < this.handlerInfos.length; i++) {\n removeEventListener(this.element, this.handlerInfos[i]);\n }\n this.handlerInfos = [];\n }\n}\n\nconst Char = {\n /**\n * The separator between the namespace and the action name in the\n * jsaction attribute value.\n */\n NAMESPACE_ACTION_SEPARATOR: '.',\n /**\n * The separator between the event name and action in the jsaction\n * attribute value.\n */\n EVENT_ACTION_SEPARATOR: ':',\n};\n\n/** Added for readability when accessing stable property names. */\nfunction getEventType(eventInfo) {\n return eventInfo.eventType;\n}\n/** Added for readability when accessing stable property names. */\nfunction setEventType(eventInfo, eventType) {\n eventInfo.eventType = eventType;\n}\n/** Added for readability when accessing stable property names. */\nfunction getEvent(eventInfo) {\n return eventInfo.event;\n}\n/** Added for readability when accessing stable property names. */\nfunction setEvent(eventInfo, event) {\n eventInfo.event = event;\n}\n/** Added for readability when accessing stable property names. */\nfunction getTargetElement(eventInfo) {\n return eventInfo.targetElement;\n}\n/** Added for readability when accessing stable property names. */\nfunction setTargetElement(eventInfo, targetElement) {\n eventInfo.targetElement = targetElement;\n}\n/** Added for readability when accessing stable property names. */\nfunction getContainer(eventInfo) {\n return eventInfo.eic;\n}\n/** Added for readability when accessing stable property names. */\nfunction setContainer(eventInfo, container) {\n eventInfo.eic = container;\n}\n/** Added for readability when accessing stable property names. */\nfunction getTimestamp(eventInfo) {\n return eventInfo.timeStamp;\n}\n/** Added for readability when accessing stable property names. */\nfunction setTimestamp(eventInfo, timestamp) {\n eventInfo.timeStamp = timestamp;\n}\n/** Added for readability when accessing stable property names. */\nfunction getAction(eventInfo) {\n return eventInfo.eia;\n}\n/** Added for readability when accessing stable property names. */\nfunction setAction(eventInfo, actionName, actionElement) {\n eventInfo.eia = [actionName, actionElement];\n}\n/** Added for readability when accessing stable property names. */\nfunction unsetAction(eventInfo) {\n eventInfo.eia = undefined;\n}\n/** Added for readability when accessing stable property names. */\nfunction getActionName(actionInfo) {\n return actionInfo[0];\n}\n/** Added for readability when accessing stable property names. */\nfunction getActionElement(actionInfo) {\n return actionInfo[1];\n}\n/** Added for readability when accessing stable property names. */\nfunction getIsReplay(eventInfo) {\n return eventInfo.eirp;\n}\n/** Added for readability when accessing stable property names. */\nfunction setIsReplay(eventInfo, replay) {\n eventInfo.eirp = replay;\n}\n/** Added for readability when accessing stable property names. */\nfunction getA11yClickKey(eventInfo) {\n return eventInfo.eiack;\n}\n/** Added for readability when accessing stable property names. */\nfunction setA11yClickKey(eventInfo, a11yClickKey) {\n eventInfo.eiack = a11yClickKey;\n}\n/** Added for readability when accessing stable property names. */\nfunction getResolved(eventInfo) {\n return eventInfo.eir;\n}\n/** Added for readability when accessing stable property names. */\nfunction setResolved(eventInfo, resolved) {\n eventInfo.eir = resolved;\n}\n/** Clones an `EventInfo` */\nfunction cloneEventInfo(eventInfo) {\n return {\n eventType: eventInfo.eventType,\n event: eventInfo.event,\n targetElement: eventInfo.targetElement,\n eic: eventInfo.eic,\n eia: eventInfo.eia,\n timeStamp: eventInfo.timeStamp,\n eirp: eventInfo.eirp,\n eiack: eventInfo.eiack,\n eir: eventInfo.eir,\n };\n}\n/**\n * Utility function for creating an `EventInfo`.\n *\n * This can be used from code-size sensitive compilation units, as taking\n * parameters vs. an `Object` literal reduces code size.\n */\nfunction createEventInfoFromParameters(eventType, event, targetElement, container, timestamp, action, isReplay, a11yClickKey) {\n return {\n eventType,\n event,\n targetElement,\n eic: container,\n timeStamp: timestamp,\n eia: action,\n eirp: isReplay,\n eiack: a11yClickKey,\n };\n}\n/**\n * Utility function for creating an `EventInfo`.\n *\n * This should be used in compilation units that are less sensitive to code\n * size.\n */\nfunction createEventInfo({ eventType, event, targetElement, container, timestamp, action, isReplay, a11yClickKey, }) {\n return {\n eventType,\n event,\n targetElement,\n eic: container,\n timeStamp: timestamp,\n eia: action ? [action.name, action.element] : undefined,\n eirp: isReplay,\n eiack: a11yClickKey,\n };\n}\n/**\n * Utility class around an `EventInfo`.\n *\n * This should be used in compilation units that are less sensitive to code\n * size.\n */\nclass EventInfoWrapper {\n eventInfo;\n constructor(eventInfo) {\n this.eventInfo = eventInfo;\n }\n getEventType() {\n return getEventType(this.eventInfo);\n }\n setEventType(eventType) {\n setEventType(this.eventInfo, eventType);\n }\n getEvent() {\n return getEvent(this.eventInfo);\n }\n setEvent(event) {\n setEvent(this.eventInfo, event);\n }\n getTargetElement() {\n return getTargetElement(this.eventInfo);\n }\n setTargetElement(targetElement) {\n setTargetElement(this.eventInfo, targetElement);\n }\n getContainer() {\n return getContainer(this.eventInfo);\n }\n setContainer(container) {\n setContainer(this.eventInfo, container);\n }\n getTimestamp() {\n return getTimestamp(this.eventInfo);\n }\n setTimestamp(timestamp) {\n setTimestamp(this.eventInfo, timestamp);\n }\n getAction() {\n const action = getAction(this.eventInfo);\n if (!action)\n return undefined;\n return {\n name: action[0],\n element: action[1],\n };\n }\n setAction(action) {\n if (!action) {\n unsetAction(this.eventInfo);\n return;\n }\n setAction(this.eventInfo, action.name, action.element);\n }\n getIsReplay() {\n return getIsReplay(this.eventInfo);\n }\n setIsReplay(replay) {\n setIsReplay(this.eventInfo, replay);\n }\n getResolved() {\n return getResolved(this.eventInfo);\n }\n setResolved(resolved) {\n setResolved(this.eventInfo, resolved);\n }\n clone() {\n return new EventInfoWrapper(cloneEventInfo(this.eventInfo));\n }\n}\n\n/**\n * Since maps from event to action are immutable we can use a single map\n * to represent the empty map.\n */\nconst EMPTY_ACTION_MAP = {};\n/**\n * This regular expression matches a semicolon.\n */\nconst REGEXP_SEMICOLON = /\\s*;\\s*/;\n/** If no event type is defined, defaults to `click`. */\nconst DEFAULT_EVENT_TYPE = EventType.CLICK;\n/** Resolves actions for Events. */\nclass ActionResolver {\n a11yClickSupport = false;\n clickModSupport = true;\n syntheticMouseEventSupport;\n updateEventInfoForA11yClick = undefined;\n preventDefaultForA11yClick = undefined;\n populateClickOnlyAction = undefined;\n constructor({ syntheticMouseEventSupport = false, clickModSupport = true, } = {}) {\n this.syntheticMouseEventSupport = syntheticMouseEventSupport;\n this.clickModSupport = clickModSupport;\n }\n resolveEventType(eventInfo) {\n // We distinguish modified and plain clicks in order to support the\n // default browser behavior of modified clicks on links; usually to\n // open the URL of the link in new tab or new window on ctrl/cmd\n // click. A DOM 'click' event is mapped to the jsaction 'click'\n // event iff there is no modifier present on the event. If there is\n // a modifier, it's mapped to 'clickmod' instead.\n //\n // It's allowed to omit the event in the jsaction attribute. In that\n // case, 'click' is assumed. Thus the following two are equivalent:\n //\n // <a href=\"someurl\" jsaction=\"gna.fu\">\n // <a href=\"someurl\" jsaction=\"click:gna.fu\">\n //\n // For unmodified clicks, EventContract invokes the jsaction\n // 'gna.fu'. For modified clicks, EventContract won't find a\n // suitable action and leave the event to be handled by the\n // browser.\n //\n // In order to also invoke a jsaction handler for a modifier click,\n // 'clickmod' needs to be used:\n //\n // <a href=\"someurl\" jsaction=\"clickmod:gna.fu\">\n //\n // EventContract invokes the jsaction 'gna.fu' for modified\n // clicks. Unmodified clicks are left to the browser.\n //\n // In order to set up the event contract to handle both clickonly and\n // clickmod, only addEvent(EventType.CLICK) is necessary.\n //\n // In order to set up the event contract to handle click,\n // addEvent() is necessary for CLICK, KEYDOWN, and KEYPRESS event types. If\n // a11y click support is enabled, addEvent() will set up the appropriate key\n // event handler automatically.\n if (this.clickModSupport &&\n getEventType(eventInfo) === EventType.CLICK &&\n isModifiedClickEvent(getEvent(eventInfo))) {\n setEventType(eventInfo, EventType.CLICKMOD);\n }\n else if (this.a11yClickSupport) {\n this.updateEventInfoForA11yClick(eventInfo);\n }\n }\n resolveAction(eventInfo) {\n if (getResolved(eventInfo)) {\n return;\n }\n this.populateAction(eventInfo, getTargetElement(eventInfo));\n setResolved(eventInfo, true);\n }\n resolveParentAction(eventInfo) {\n const action = getAction(eventInfo);\n const actionElement = action && getActionElement(action);\n unsetAction(eventInfo);\n const parentNode = actionElement && this.getParentNode(actionElement);\n if (!parentNode) {\n return;\n }\n this.populateAction(eventInfo, parentNode);\n }\n /**\n * Searches for a jsaction that the DOM event maps to and creates an\n * object containing event information used for dispatching by\n * jsaction.Dispatcher. This method populates the `action` and `actionElement`\n * fields of the EventInfo object passed in by finding the first\n * jsaction attribute above the target Node of the event, and below\n * the container Node, that specifies a jsaction for the event\n * type. If no such jsaction is found, then action is undefined.\n *\n * @param eventInfo `EventInfo` to set `action` and `actionElement` if an\n * action is found on any `Element` in the path of the `Event`.\n */\n populateAction(eventInfo, currentTarget) {\n let actionElement = currentTarget;\n while (actionElement && actionElement !== getContainer(eventInfo)) {\n if (actionElement.nodeType === Node.ELEMENT_NODE) {\n this.populateActionOnElement(actionElement, eventInfo);\n }\n if (getAction(eventInfo)) {\n // An event is handled by at most one jsaction. Thus we stop at the\n // first matching jsaction specified in a jsaction attribute up the\n // ancestor chain of the event target node.\n break;\n }\n actionElement = this.getParentNode(actionElement);\n }\n const action = getAction(eventInfo);\n if (!action) {\n // No action found.\n return;\n }\n if (this.a11yClickSupport) {\n this.preventDefaultForA11yClick(eventInfo);\n }\n // We attempt to handle the mouseenter/mouseleave events here by\n // detecting whether the mouseover/mouseout events correspond to\n // entering/leaving an element.\n if (this.syntheticMouseEventSupport) {\n if (getEventType(eventInfo) === EventType.MOUSEENTER ||\n getEventType(eventInfo) === EventType.MOUSELEAVE ||\n getEventType(eventInfo) === EventType.POINTERENTER ||\n getEventType(eventInfo) === EventType.POINTERLEAVE) {\n // We attempt to handle the mouseenter/mouseleave events here by\n // detecting whether the mouseover/mouseout events correspond to\n // entering/leaving an element.\n if (isMouseSpecialEvent(getEvent(eventInfo), getEventType(eventInfo), getActionElement(action))) {\n // If both mouseover/mouseout and mouseenter/mouseleave events are\n // enabled, two separate handlers for mouseover/mouseout are\n // registered. Both handlers will see the same event instance\n // so we create a copy to avoid interfering with the dispatching of\n // the mouseover/mouseout event.\n const copiedEvent = createMouseSpecialEvent(getEvent(eventInfo), getActionElement(action));\n setEvent(eventInfo, copiedEvent);\n // Since the mouseenter/mouseleave events do not bubble, the target\n // of the event is technically the `actionElement` (the node with the\n // `jsaction` attribute)\n setTargetElement(eventInfo, getActionElement(action));\n }\n else {\n unsetAction(eventInfo);\n }\n }\n }\n }\n /**\n * Walk to the parent node, unless the node has a different owner in\n * which case we walk to the owner. Attempt to walk to host of a\n * shadow root if needed.\n */\n getParentNode(element) {\n const owner = element[Property.OWNER];\n if (owner) {\n return owner;\n }\n const parentNode = element.parentNode;\n if (parentNode?.nodeName === '#document-fragment') {\n return parentNode?.host ?? null;\n }\n return parentNode;\n }\n /**\n * Accesses the jsaction map on a node and retrieves the name of the\n * action the given event is mapped to, if any. It parses the\n * attribute value and stores it in a property on the node for\n * subsequent retrieval without re-parsing and re-accessing the\n * attribute.\n *\n * @param actionElement The DOM node to retrieve the jsaction map from.\n * @param eventInfo `EventInfo` to set `action` and `actionElement` if an\n * action is found on the `actionElement`.\n */\n populateActionOnElement(actionElement, eventInfo) {\n const actionMap = this.parseActions(actionElement);\n const actionName = actionMap[getEventType(eventInfo)];\n if (actionName !== undefined) {\n setAction(eventInfo, actionName, actionElement);\n }\n if (this.a11yClickSupport) {\n this.populateClickOnlyAction(actionElement, eventInfo, actionMap);\n }\n }\n /**\n * Parses and caches an element's jsaction element into a map.\n *\n * This is primarily for internal use.\n *\n * @param actionElement The DOM node to retrieve the jsaction map from.\n * @return Map from event to qualified name of the jsaction bound to it.\n */\n parseActions(actionElement) {\n let actionMap = get(actionElement);\n if (!actionMap) {\n const jsactionAttribute = actionElement.getAttribute(Attribute.JSACTION);\n if (!jsactionAttribute) {\n actionMap = EMPTY_ACTION_MAP;\n set(actionElement, actionMap);\n }\n else {\n actionMap = getParsed(jsactionAttribute);\n if (!actionMap) {\n actionMap = {};\n const values = jsactionAttribute.split(REGEXP_SEMICOLON);\n for (let idx = 0; idx < values.length; idx++) {\n const value = values[idx];\n if (!value) {\n continue;\n }\n const colon = value.indexOf(Char.EVENT_ACTION_SEPARATOR);\n const hasColon = colon !== -1;\n const type = hasColon ? value.substr(0, colon).trim() : DEFAULT_EVENT_TYPE;\n const action = hasColon ? value.substr(colon + 1).trim() : value;\n actionMap[type] = action;\n }\n setParsed(jsactionAttribute, actionMap);\n }\n set(actionElement, actionMap);\n }\n }\n return actionMap;\n }\n addA11yClickSupport(updateEventInfoForA11yClick, preventDefaultForA11yClick, populateClickOnlyAction) {\n this.a11yClickSupport = true;\n this.updateEventInfoForA11yClick = updateEventInfoForA11yClick;\n this.preventDefaultForA11yClick = preventDefaultForA11yClick;\n this.populateClickOnlyAction = populateClickOnlyAction;\n }\n}\n\n/**\n * @fileoverview An enum to control who can call certain jsaction APIs.\n */\nvar Restriction;\n(function (Restriction) {\n Restriction[Restriction[\"I_AM_THE_JSACTION_FRAMEWORK\"] = 0] = \"I_AM_THE_JSACTION_FRAMEWORK\";\n})(Restriction || (Restriction = {}));\n\n/**\n * Receives a DOM event, determines the jsaction associated with the source\n * element of the DOM event, and invokes the handler associated with the\n * jsaction.\n */\nclass Dispatcher {\n dispatchDelegate;\n // The ActionResolver to use to resolve actions.\n actionResolver;\n /** The replayer function to be called when there are queued events. */\n eventReplayer;\n /** Whether the event replay is scheduled. */\n eventReplayScheduled = false;\n /** The queue of events. */\n replayEventInfoWrappers = [];\n /**\n * Options are:\n * - `eventReplayer`: When the event contract dispatches replay events\n * to the Dispatcher, the Dispatcher collects them and in the next tick\n * dispatches them to the `eventReplayer`. Defaults to dispatching to `dispatchDelegate`.\n * @param dispatchDelegate A function that should handle dispatching an `EventInfoWrapper` to handlers.\n */\n constructor(dispatchDelegate, { actionResolver, eventReplayer, } = {}) {\n this.dispatchDelegate = dispatchDelegate;\n this.actionResolver = actionResolver;\n this.eventReplayer = eventReplayer;\n }\n /**\n * Receives an event or the event queue from the EventContract. The event\n * queue is copied and it attempts to replay.\n * If event info is passed in it looks for an action handler that can handle\n * the given event. If there is no handler registered queues the event and\n * checks if a loader is registered for the given namespace. If so, calls it.\n *\n * Alternatively, if in global dispatch mode, calls all registered global\n * handlers for the appropriate event type.\n *\n * The three functionalities of this call are deliberately not split into\n * three methods (and then declared as an abstract interface), because the\n * interface is used by EventContract, which lives in a different jsbinary.\n * Therefore the interface between the three is defined entirely in terms that\n * are invariant under jscompiler processing (Function and Array, as opposed\n * to a custom type with method names).\n *\n * @param eventInfo The info for the event that triggered this call or the\n * queue of events from EventContract.\n */\n dispatch(eventInfo) {\n const eventInfoWrapper = new EventInfoWrapper(eventInfo);\n this.actionResolver?.resolveEventType(eventInfo);\n this.actionResolver?.resolveAction(eventInfo);\n const action = eventInfoWrapper.getAction();\n if (action && shouldPreventDefaultBeforeDispatching(action.element, eventInfoWrapper)) {\n preventDefault(eventInfoWrapper.getEvent());\n }\n if (this.eventReplayer && eventInfoWrapper.getIsReplay()) {\n this.scheduleEventInfoWrapperReplay(eventInfoWrapper);\n return;\n }\n this.dispatchDelegate(eventInfoWrapper);\n }\n /**\n * Schedules an `EventInfoWrapper` for replay. The replaying will happen in its own\n * stack once the current flow cedes control. This is done to mimic\n * browser event handling.\n */\n scheduleEventInfoWrapperReplay(eventInfoWrapper) {\n this.replayEventInfoWrappers.push(eventInfoWrapper);\n if (this.eventReplayScheduled) {\n return;\n }\n this.eventReplayScheduled = true;\n Promise.resolve().then(() => {\n this.eventReplayScheduled = false;\n this.eventReplayer(this.replayEventInfoWrappers);\n });\n }\n}\n/**\n * Creates an `EventReplayer` that calls the `replay` function for every `eventInfoWrapper` in\n * the queue.\n */\nfunction createEventReplayer(replay) {\n return (eventInfoWrappers) => {\n for (const eventInfoWrapper of eventInfoWrappers) {\n replay(eventInfoWrapper);\n }\n };\n}\n/**\n * Returns true if the default action of this event should be prevented before\n * this event is dispatched.\n */\nfunction shouldPreventDefaultBeforeDispatching(actionElement, eventInfoWrapper) {\n // Prevent browser from following <a> node links if a jsaction is present\n // and we are dispatching the action now. Note that the targetElement may be\n // a child of an anchor that has a jsaction attached. For that reason, we\n // need to check the actionElement rather than the targetElement.\n return (actionElement.tagName === 'A' &&\n (eventInfoWrapper.getEventType() === EventType.CLICK ||\n eventInfoWrapper.getEventType() === EventType.CLICKMOD));\n}\n/**\n * Registers deferred functionality for an EventContract and a Jsaction\n * Dispatcher.\n */\nfunction registerDispatcher$2(eventContract, dispatcher) {\n eventContract.ecrd((eventInfo) => {\n dispatcher.dispatch(eventInfo);\n }, Restriction.I_AM_THE_JSACTION_FRAMEWORK);\n}\n\n/** An internal symbol used to indicate whether propagation should be stopped or not. */\nconst PROPAGATION_STOPPED_SYMBOL = Symbol.for('propagationStopped');\n/** Extra event phases beyond what the browser provides. */\nconst EventPhase = {\n REPLAY: 101,\n};\nconst PREVENT_DEFAULT_ERROR_MESSAGE_DETAILS = ' Because event replay occurs after browser dispatch, `preventDefault` would have no ' +\n 'effect. You can check whether an event is being replayed by accessing the event phase: ' +\n '`event.eventPhase === EventPhase.REPLAY`.';\nconst PREVENT_DEFAULT_ERROR_MESSAGE = `\\`preventDefault\\` called during event replay.`;\nconst COMPOSED_PATH_ERROR_MESSAGE_DETAILS = ' Because event replay occurs after browser ' +\n 'dispatch, `composedPath()` will be empty. Iterate parent nodes from `event.target` or ' +\n '`event.currentTarget` if you need to check elements in the event path.';\nconst COMPOSED_PATH_ERROR_MESSAGE = `\\`composedPath\\` called during event replay.`;\n/**\n * A dispatcher that uses browser-based `Event` semantics, for example bubbling, `stopPropagation`,\n * `currentTarget`, etc.\n */\nclass EventDispatcher {\n dispatchDelegate;\n clickModSupport;\n actionResolver;\n dispatcher;\n constructor(dispatchDelegate, clickModSupport = true) {\n this.dispatchDelegate = dispatchDelegate;\n this.clickModSupport = clickModSupport;\n this.actionResolver = new ActionResolver({ clickModSupport });\n this.dispatcher = new Dispatcher((eventInfoWrapper) => {\n this.dispatchToDelegate(eventInfoWrapper);\n }, {\n actionResolver: this.actionResolver,\n });\n }\n /**\n * The entrypoint for the `EventContract` dispatch.\n */\n dispatch(eventInfo) {\n this.dispatcher.dispatch(eventInfo);\n }\n /** Internal method that does basic disaptching. */\n dispatchToDelegate(eventInfoWrapper) {\n if (eventInfoWrapper.getIsReplay()) {\n prepareEventForReplay(eventInfoWrapper);\n }\n prepareEventForBubbling(eventInfoWrapper);\n while (eventInfoWrapper.getAction()) {\n prepareEventForDispatch(eventInfoWrapper);\n // If this is a capture event, ONLY dispatch if the action element is the target.\n if (isCaptureEventType(eventInfoWrapper.getEventType()) &&\n eventInfoWrapper.getAction().element !== eventInfoWrapper.getTargetElement()) {\n return;\n }\n this.dispatchDelegate(eventInfoWrapper.getEvent(), eventInfoWrapper.getAction().name);\n if (propagationStopped(eventInfoWrapper)) {\n return;\n }\n this.actionResolver.resolveParentAction(eventInfoWrapper.eventInfo);\n }\n }\n}\nfunction prepareEventForBubbling(eventInfoWrapper) {\n const event = eventInfoWrapper.getEvent();\n const originalStopPropagation = eventInfoWrapper.getEvent().stopPropagation.bind(event);\n const stopPropagation = () => {\n event[PROPAGATION_STOPPED_SYMBOL] = true;\n originalStopPropagation();\n };\n patchEventInstance(event, 'stopPropagation', stopPropagation);\n patchEventInstance(event, 'stopImmediatePropagation', stopPropagation);\n}\nfunction propagationStopped(eventInfoWrapper) {\n const event = eventInfoWrapper.getEvent();\n return !!event[PROPAGATION_STOPPED_SYMBOL];\n}\nfunction prepareEventForReplay(eventInfoWrapper) {\n const event = eventInfoWrapper.getEvent();\n const target = eventInfoWrapper.getTargetElement();\n const originalPreventDefault = event.preventDefault.bind(event);\n patchEventInstance(event, 'target', target);\n patchEventInstance(event, 'eventPhase', EventPhase.REPLAY);\n patchEventInstance(event, 'preventDefault', () => {\n originalPreventDefault();\n throw new Error(PREVENT_DEFAULT_ERROR_MESSAGE + (ngDevMode ? PREVENT_DEFAULT_ERROR_MESSAGE_DETAILS : ''));\n });\n patchEventInstance(event, 'composedPath', () => {\n throw new Error(COMPOSED_PATH_ERROR_MESSAGE + (ngDevMode ? COMPOSED_PATH_ERROR_MESSAGE_DETAILS : ''));\n });\n}\nfunction prepareEventForDispatch(eventInfoWrapper) {\n const event = eventInfoWrapper.getEvent();\n const currentTarget = eventInfoWrapper.getAction()?.element;\n if (currentTarget) {\n patchEventInstance(event, 'currentTarget', currentTarget, {\n // `currentTarget` is going to get reassigned every dispatch.\n configurable: true,\n });\n }\n}\n/**\n * Patch `Event` instance during non-standard `Event` dispatch. This patches just the `Event`\n * instance that the browser created, it does not patch global properties or methods.\n *\n * This is necessary because dispatching an `Event` outside of browser dispatch results in\n * incorrect properties and methods that need to be polyfilled or do not work.\n *\n * JSAction dispatch adds two extra \"phases\" to event dispatch:\n * 1. Event delegation - the event is being dispatched by a delegating event handler on a container\n * (typically `window.document.documentElement`), to a delegated event handler on some child\n * element. Certain `Event` properties will be unintuitive, such as `currentTarget`, which would\n * be the container rather than the child element. Bubbling would also not work. In order to\n * emulate the browser, these properties and methods on the `Event` are patched.\n * 2. Event replay - the event is being dispatched by the framework once the handlers have been\n * loaded (during hydration, or late-loaded). Certain `Event` properties can be unset by the\n * browser because the `Event` is no longer actively being dispatched, such as `target`. Other\n * methods have no effect because the `Event` has already been dispatched, such as\n * `preventDefault`. Bubbling would also not work. These properties and methods are patched,\n * either to fill in information that the browser may have removed, or to throw errors in methods\n * that no longer behave as expected.\n */\nfunction patchEventInstance(event, property, value, { configurable = false } = {}) {\n Object.defineProperty(event, property, { value, configurable });\n}\n/**\n * Registers deferred functionality for an EventContract and a Jsaction\n * Dispatcher.\n */\nfunction registerDispatcher$1(eventContract, dispatcher) {\n eventContract.ecrd((eventInfo) => {\n dispatcher.dispatch(eventInfo);\n }, Restriction.I_AM_THE_JSACTION_FRAMEWORK);\n}\n\n/**\n * EarlyEventContract intercepts events in the bubbling phase at the\n * boundary of the document body. This mapping will be passed to the\n * late-loaded EventContract.\n */\nclass EarlyEventContract {\n dataContainer;\n constructor(dataContainer = window, container = window.document.documentElement) {\n this.dataContainer = dataContainer;\n dataContainer._ejsa = createEarlyJsactionData(container);\n }\n /**\n * Installs a list of event types for container .\n */\n addEvents(types, capture) {\n addEvents(this.dataContainer._ejsa, types, capture);\n }\n}\n/** Creates an `EarlyJsactionData` object. */\nfunction createEarlyJsactionData(container) {\n const q = [];\n const d = (eventInfo) => {\n q.push(eventInfo);\n };\n const h = (event) => {\n d(createEventInfoFromParameters(event.type, event, event.target, container, Date.now()));\n };\n return {\n c: container,\n q,\n et: [],\n etc: [],\n d,\n h,\n };\n}\n/** Add all the events to the container stored in the `EarlyJsactionData`. */\nfunction addEvents(earlyJsactionData, types, capture) {\n for (let i = 0; i < types.length; i++) {\n const eventType = types[i];\n const eventTypes = capture ? earlyJsactionData.etc : earlyJsactionData.et;\n eventTypes.push(eventType);\n earlyJsactionData.c.addEventListener(eventType, earlyJsactionData.h, capture);\n }\n}\n/** Get the queued `EventInfo` objects that were dispatched before a dispatcher was registered. */\nfunction getQueuedEventInfos(earlyJsactionData) {\n return earlyJsactionData?.q ?? [];\n}\n/** Register a different dispatcher function on the `EarlyJsactionData`. */\nfunction registerDispatcher(earlyJsactionData, dispatcher) {\n if (!earlyJsactionData) {\n return;\n }\n earlyJsactionData.d = dispatcher;\n}\n/** Removes all event listener handlers. */\nfunction removeAllEventListeners(earlyJsactionData) {\n if (!earlyJsactionData) {\n return;\n }\n removeEventListeners(earlyJsactionData.c, earlyJsactionData.et, earlyJsactionData.h);\n removeEventListeners(earlyJsactionData.c, earlyJsactionData.etc, earlyJsactionData.h, true);\n}\nfunction removeEventListeners(container, eventTypes, earlyEventHandler, capture) {\n for (let i = 0; i < eventTypes.length; i++) {\n container.removeEventListener(eventTypes[i], earlyEventHandler, /* useCapture */ capture);\n }\n}\n\n/**\n * @define Support for the non-bubbling mouseenter and mouseleave events. This\n * flag can be overridden in a build rule.\n */\nconst MOUSE_SPECIAL_SUPPORT = false;\n\n/**\n * @fileoverview Implements the local event handling contract. This\n * allows DOM objects in a container that enters into this contract to\n * define event handlers which are executed in a local context.\n *\n * One EventContract instance can manage the contract for multiple\n * containers, which are added using the addContainer() method.\n *\n * Events can be registered using the addEvent() method.\n *\n * A Dispatcher is added using the registerDispatcher() method. Until there is\n * a dispatcher, events are queued. The idea is that the EventContract\n * class is inlined in the HTML of the top level page and instantiated\n * right after the start of <body>. The Dispatcher class is contained\n * in the external deferred js, and instantiated and registered with\n * EventContract when the external javascript in the page loads. The\n * external javascript will also register the jsaction handlers, which\n * then pick up the queued events at the time of registration.\n *\n * Since this class is meant to be inlined in the main page HTML, the\n * size of the binary compiled from this file MUST be kept as small as\n * possible and thus its dependencies to a minimum.\n */\n/**\n * EventContract intercepts events in the bubbling phase at the\n * boundary of a container element, and maps them to generic actions\n * which are specified using the custom jsaction attribute in\n * HTML. Behavior of the application is then specified in terms of\n * handler for such actions, cf. jsaction.Dispatcher in dispatcher.js.\n *\n * This has several benefits: (1) No DOM event handlers need to be\n * registered on the specific elements in the UI. (2) The set of\n * events that the application has to handle can be specified in terms\n * of the semantics of the application, rather than in terms of DOM\n * events. (3) Invocation of handlers can be delayed and handlers can\n * be delay loaded in a generic way.\n */\nclass EventContract {\n static MOUSE_SPECIAL_SUPPORT = MOUSE_SPECIAL_SUPPORT;\n containerManager;\n /**\n * The DOM events which this contract covers. Used to prevent double\n * registration of event types. The value of the map is the\n * internally created DOM event handler function that handles the\n * DOM events. See addEvent().\n *\n */\n eventHandlers = {};\n browserEventTypeToExtraEventTypes = {};\n /**\n * The dispatcher function. Events are passed to this function for\n * handling once it was set using the registerDispatcher() method. This is\n * done because the function is passed from another jsbinary, so passing the\n * instance and invoking the method here would require to leave the method\n * unobfuscated.\n */\n dispatcher = null;\n /**\n * The list of suspended `EventInfo` that will be dispatched\n * as soon as the `Dispatcher` is registered.\n */\n queuedEventInfos = [];\n constructor(containerManager) {\n this.containerManager = containerManager;\n }\n handleEvent(eventType, event, container) {\n const eventInfo = createEventInfoFromParameters(\n /* eventType= */ eventType, \n /* event= */ event, \n /* targetElement= */ event.target, \n /* container= */ container, \n /* timestamp= */ Date.now());\n this.handleEventInfo(eventInfo);\n }\n /**\n * Handle an `EventInfo`.\n */\n handleEventInfo(eventInfo) {\n if (!this.dispatcher) {\n // All events are queued when the dispatcher isn't yet loaded.\n setIsReplay(eventInfo, true);\n this.queuedEventInfos?.push(eventInfo);\n return;\n }\n this.dispatcher(eventInfo);\n }\n /**\n * Enables jsaction handlers to be called for the event type given by\n * name.\n *\n * If the event is already registered, this does nothing.\n *\n * @param prefixedEventType If supplied, this event is used in\n * the actual browser event registration instead of the name that is\n * exposed to jsaction. Use this if you e.g. want users to be able\n * to subscribe to jsaction=\"transitionEnd:foo\" while the underlying\n * event is webkitTransitionEnd in one browser and mozTransitionEnd\n * in another.\n *\n * @param passive A boolean value that, if `true`, indicates that the event\n * handler will never call `preventDefault()`.\n */\n addEvent(eventType, prefixedEventType, passive) {\n if (eventType in this.eventHandlers || !this.containerManager) {\n return;\n }\n if (!EventContract.MOUSE_SPECIAL_SUPPORT && MOUSE_SPECIAL_EVENT_TYPES.indexOf(eventType) >= 0) {\n return;\n }\n const eventHandler = (eventType, event, container) => {\n this.handleEvent(eventType, event, container);\n };\n // Store the callback to allow us to replay events.\n this.eventHandlers[eventType] = eventHandler;\n const browserEventType = getBrowserEventType(prefixedEventType || eventType);\n if (browserEventType !== eventType) {\n const eventTypes = this.browserEventTypeToExtraEventTypes[browserEventType] || [];\n eventTypes.push(eventType);\n this.browserEventTypeToExtraEventTypes[browserEventType] = eventTypes;\n }\n this.containerManager.addEventListener(browserEventType, (element) => {\n return (event) => {\n eventHandler(eventType, event, element);\n };\n }, passive);\n }\n /**\n * Gets the queued early events and replay them using the appropriate handler\n * in the provided event contract. Once all the events are replayed, it cleans\n * up the early contract.\n */\n replayEarlyEvents(earlyJsactionData = window._ejsa) {\n // Check if the early contract is present and prevent calling this function\n // more than once.\n if (!earlyJsactionData) {\n return;\n }\n // Replay the early contract events.\n this.replayEarlyEventInfos(earlyJsactionData.q);\n // Clean up the early contract.\n removeAllEventListeners(earlyJsactionData);\n delete window._ejsa;\n }\n /**\n * Replays all the early `EventInfo` objects, dispatching them through the normal\n * `EventContract` flow.\n */\n replayEarlyEventInfos(earlyEventInfos) {\n for (let i = 0; i < earlyEventInfos.length; i++) {\n const earlyEventInfo = earlyEventInfos[i];\n const eventTypes = this.getEventTypesForBrowserEventType(earlyEventInfo.eventType);\n for (let j = 0; j < eventTypes.length; j++) {\n const eventInfo = cloneEventInfo(earlyEventInfo);\n // EventInfo eventType maps to JSAction's internal event type,\n // rather than the browser event type.\n setEventType(eventInfo, eventTypes[j]);\n this.handleEventInfo(eventInfo);\n }\n }\n }\n /**\n * Returns all JSAction event types that have been registered for a given\n * browser event type.\n */\n getEventTypesForBrowserEventType(browserEventType) {\n const eventTypes = [];\n if (this.eventHandlers[browserEventType]) {\n eventTypes.push(browserEventType);\n }\n if (this.browserEventTypeToExtraEventTypes[browserEventType]) {\n eventTypes.push(...this.browserEventTypeToExtraEventTypes[browserEventType]);\n }\n return eventTypes;\n }\n /**\n * Returns the event handler function for a given event type.\n */\n handler(eventType) {\n return this.eventHandlers[eventType];\n }\n /**\n * Cleans up the event contract. This resets all of the `EventContract`'s\n * internal state. Users are responsible for not using this `EventContract`\n * after it has been cleaned up.\n */\n cleanUp() {\n this.containerManager?.cleanUp();\n this.containerManager = null;\n this.eventHandlers = {};\n this.browserEventTypeToExtraEventTypes = {};\n this.dispatcher = null;\n this.queuedEventInfos = [];\n }\n /**\n * Register a dispatcher function. Event info of each event mapped to\n * a jsaction is passed for handling to this callback. The queued\n * events are passed as well to the dispatcher for later replaying\n * once the dispatcher is registered. Clears the event queue to null.\n *\n * @param dispatcher The dispatcher function.\n * @param restriction\n */\n registerDispatcher(dispatcher, restriction) {\n this.ecrd(dispatcher, restriction);\n }\n /**\n * Unrenamed alias for registerDispatcher. Necessary for any codebases that\n * split the `EventContract` and `Dispatcher` code into different compilation\n * units.\n */\n ecrd(dispatcher, restriction) {\n this.dispatcher = dispatcher;\n if (this.queuedEventInfos?.length) {\n for (let i = 0; i < this.queuedEventInfos.length; i++) {\n this.handleEventInfo(this.queuedEventInfos[i]);\n }\n this.queuedEventInfos = null;\n }\n }\n}\n\n/**\n * Creates an `EarlyJsactionData`, adds events to it, and populates it on a nested object on\n * the window.\n */\nfunction bootstrapAppScopedEarlyEventContract(container, appId, bubbleEventTypes, captureEventTypes, dataContainer = window) {\n const earlyJsactionData = createEarlyJsactionData(container);\n if (!dataContainer._ejsas) {\n dataContainer._ejsas = {};\n }\n dataContainer._ejsas[appId] = earlyJsactionData;\n addEvents(earlyJsactionData, bubbleEventTypes);\n addEvents(earlyJsactionData, captureEventTypes, /* capture= */ true);\n}\n/** Get the queued `EventInfo` objects that were dispatched before a dispatcher was registered. */\nfunction getAppScopedQueuedEventInfos(appId, dataContainer = window) {\n return getQueuedEventInfos(dataContainer._ejsas?.[appId]);\n}\n/**\n * Registers a dispatcher function on the `EarlyJsactionData` present on the nested object on the\n * window.\n */\nfunction registerAppScopedDispatcher(restriction, appId, dispatcher, dataContainer = window) {\n registerDispatcher(dataContainer._ejsas?.[appId], dispatcher);\n}\n/** Removes all event listener handlers. */\nfunction removeAllAppScopedEventListeners(appId, dataContainer = window) {\n removeAllEventListeners(dataContainer._ejsas?.[appId]);\n}\n/** Clear the early event contract. */\nfunction clearAppScopedEarlyEventContract(appId, dataContainer = window) {\n if (!dataContainer._ejsas) {\n return;\n }\n dataContainer._ejsas[appId] = undefined;\n}\n\nexport { Attribute, EventContract, EventContractContainer, EventDispatcher, EventInfoWrapper, EventPhase, bootstrapAppScopedEarlyEventContract, clearAppScopedEarlyEventContract, getDefaulted as getActionCache, getAppScopedQueuedEventInfos, isCaptureEventType, isEarlyEventType, registerAppScopedDispatcher, registerDispatcher$1 as registerDispatcher, removeAllAppScopedEventListeners };\n","/**\n * @license Angular v19.1.4\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { SIGNAL_NODE as SIGNAL_NODE$1, signalSetFn as signalSetFn$1, producerAccessed as producerAccessed$1, SIGNAL as SIGNAL$1, getActiveConsumer as getActiveConsumer$1, setActiveConsumer as setActiveConsumer$1, createSignal as createSignal$1, signalUpdateFn as signalUpdateFn$1, consumerDestroy as consumerDestroy$1, REACTIVE_NODE as REACTIVE_NODE$1, consumerBeforeComputation as consumerBeforeComputation$1, consumerAfterComputation as consumerAfterComputation$1, consumerPollProducersForChange as consumerPollProducersForChange$1, createComputed as createComputed$1, setThrowInvalidWriteToSignalError as setThrowInvalidWriteToSignalError$1, createLinkedSignal as createLinkedSignal$1, linkedSignalSetFn as linkedSignalSetFn$1, linkedSignalUpdateFn as linkedSignalUpdateFn$1, createWatch as createWatch$1, isInNotificationPhase as isInNotificationPhase$1 } from '@angular/core/primitives/signals';\nexport { SIGNAL as ɵSIGNAL } from '@angular/core/primitives/signals';\nimport { BehaviorSubject, Subject, Subscription } from 'rxjs';\nimport { Attribute as Attribute$1, clearAppScopedEarlyEventContract, EventContract, EventContractContainer, getAppScopedQueuedEventInfos, EventDispatcher, registerDispatcher, isEarlyEventType, isCaptureEventType, EventPhase } from '@angular/core/primitives/event-dispatch';\nimport { map } from 'rxjs/operators';\n\n/**\n * Base URL for the error details page.\n *\n * Keep this constant in sync across:\n * - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts\n * - packages/core/src/error_details_base_url.ts\n */\nconst ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.dev/errors';\n/**\n * URL for the XSS security documentation.\n */\nconst XSS_SECURITY_URL = 'https://g.co/ng/security#xss';\n\n/**\n * Class that represents a runtime error.\n * Formats and outputs the error message in a consistent way.\n *\n * Example:\n * ```ts\n * throw new RuntimeError(\n * RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED,\n * ngDevMode && 'Injector has already been destroyed.');\n * ```\n *\n * Note: the `message` argument contains a descriptive error message as a string in development\n * mode (when the `ngDevMode` is defined). In production mode (after tree-shaking pass), the\n * `message` argument becomes `false`, thus we account for it in the typings and the runtime\n * logic.\n */\nclass RuntimeError extends Error {\n code;\n constructor(code, message) {\n super(formatRuntimeError(code, message));\n this.code = code;\n }\n}\n/**\n * Called to format a runtime error.\n * See additional info on the `message` argument type in the `RuntimeError` class description.\n */\nfunction formatRuntimeError(code, message) {\n // Error code might be a negative number, which is a special marker that instructs the logic to\n // generate a link to the error details page on angular.io.\n // We also prepend `0` to non-compile-time errors.\n const fullCode = `NG0${Math.abs(code)}`;\n let errorMessage = `${fullCode}${message ? ': ' + message : ''}`;\n if (ngDevMode && code < 0) {\n const addPeriodSeparator = !errorMessage.match(/[.,;!?\\n]$/);\n const separator = addPeriodSeparator ? '.' : '';\n errorMessage = `${errorMessage}${separator} Find more at ${ERROR_DETAILS_PAGE_BASE_URL}/${fullCode}`;\n }\n return errorMessage;\n}\n\nconst REQUIRED_UNSET_VALUE = /* @__PURE__ */ Symbol('InputSignalNode#UNSET');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst INPUT_SIGNAL_NODE = /* @__PURE__ */ (() => {\n return {\n ...SIGNAL_NODE$1,\n transformFn: undefined,\n applyValueToInputSignal(node, value) {\n signalSetFn$1(node, value);\n },\n };\n})();\n\nconst ɵINPUT_SIGNAL_BRAND_READ_TYPE = /* @__PURE__ */ Symbol();\nconst ɵINPUT_SIGNAL_BRAND_WRITE_TYPE = /* @__PURE__ */ Symbol();\n/**\n * Creates an input signal.\n *\n * @param initialValue The initial value.\n * Can be set to {@link REQUIRED_UNSET_VALUE} for required inputs.\n * @param options Additional options for the input. e.g. a transform, or an alias.\n */\nfunction createInputSignal(initialValue, options) {\n const node = Object.create(INPUT_SIGNAL_NODE);\n node.value = initialValue;\n // Perf note: Always set `transformFn` here to ensure that `node` always\n // has the same v8 class shape, allowing monomorphic reads on input signals.\n node.transformFn = options?.transform;\n function inputValueFn() {\n // Record that someone looked at this signal.\n producerAccessed$1(node);\n if (node.value === REQUIRED_UNSET_VALUE) {\n throw new RuntimeError(-950 /* RuntimeErrorCode.REQUIRED_INPUT_NO_VALUE */, ngDevMode && 'Input is required but no value is available yet.');\n }\n return node.value;\n }\n inputValueFn[SIGNAL$1] = node;\n if (ngDevMode) {\n inputValueFn.toString = () => `[Input Signal: ${inputValueFn()}]`;\n node.debugName = options?.debugName;\n }\n return inputValueFn;\n}\n\n/**\n * Convince closure compiler that the wrapped function has no side-effects.\n *\n * Closure compiler always assumes that `toString` has no side-effects. We use this quirk to\n * allow us to execute a function but have closure compiler mark the call as no-side-effects.\n * It is important that the return value for the `noSideEffects` function be assigned\n * to something which is retained otherwise the call to `noSideEffects` will be removed by closure\n * compiler.\n */\nfunction noSideEffects(fn) {\n return { toString: fn }.toString();\n}\n\nconst ANNOTATIONS = '__annotations__';\nconst PARAMETERS = '__parameters__';\nconst PROP_METADATA = '__prop__metadata__';\n/**\n * @suppress {globalThis}\n */\nfunction makeDecorator(name, props, parentClass, additionalProcessing, typeFn) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function DecoratorFactory(...args) {\n if (this instanceof DecoratorFactory) {\n metaCtor.call(this, ...args);\n return this;\n }\n const annotationInstance = new DecoratorFactory(...args);\n return function TypeDecorator(cls) {\n if (typeFn)\n typeFn(cls, ...args);\n // Use of Object.defineProperty is important since it creates non-enumerable property which\n // prevents the property is copied during subclassing.\n const annotations = cls.hasOwnProperty(ANNOTATIONS)\n ? cls[ANNOTATIONS]\n : Object.defineProperty(cls, ANNOTATIONS, { value: [] })[ANNOTATIONS];\n annotations.push(annotationInstance);\n if (additionalProcessing)\n additionalProcessing(cls);\n return cls;\n };\n }\n if (parentClass) {\n DecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n DecoratorFactory.prototype.ngMetadataName = name;\n DecoratorFactory.annotationCls = DecoratorFactory;\n return DecoratorFactory;\n });\n}\nfunction makeMetadataCtor(props) {\n return function ctor(...args) {\n if (props) {\n const values = props(...args);\n for (const propName in values) {\n this[propName] = values[propName];\n }\n }\n };\n}\nfunction makeParamDecorator(name, props, parentClass) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function ParamDecoratorFactory(...args) {\n if (this instanceof ParamDecoratorFactory) {\n metaCtor.apply(this, args);\n return this;\n }\n const annotationInstance = new ParamDecoratorFactory(...args);\n ParamDecorator.annotation = annotationInstance;\n return ParamDecorator;\n function ParamDecorator(cls, unusedKey, index) {\n // Use of Object.defineProperty is important since it creates non-enumerable property which\n // prevents the property is copied during subclassing.\n const parameters = cls.hasOwnProperty(PARAMETERS)\n ? cls[PARAMETERS]\n : Object.defineProperty(cls, PARAMETERS, { value: [] })[PARAMETERS];\n // there might be gaps if some in between parameters do not have annotations.\n // we pad with nulls.\n while (parameters.length <= index) {\n parameters.push(null);\n }\n (parameters[index] = parameters[index] || []).push(annotationInstance);\n return cls;\n }\n }\n if (parentClass) {\n ParamDecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n ParamDecoratorFactory.prototype.ngMetadataName = name;\n ParamDecoratorFactory.annotationCls = ParamDecoratorFactory;\n return ParamDecoratorFactory;\n });\n}\nfunction makePropDecorator(name, props, parentClass, additionalProcessing) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function PropDecoratorFactory(...args) {\n if (this instanceof PropDecoratorFactory) {\n metaCtor.apply(this, args);\n return this;\n }\n const decoratorInstance = new PropDecoratorFactory(...args);\n function PropDecorator(target, name) {\n // target is undefined with standard decorators. This case is not supported and will throw\n // if this decorator is used in JIT mode with standard decorators.\n if (target === undefined) {\n throw new Error('Standard Angular field decorators are not supported in JIT mode.');\n }\n const constructor = target.constructor;\n // Use of Object.defineProperty is important because it creates a non-enumerable property\n // which prevents the property from being copied during subclassing.\n const meta = constructor.hasOwnProperty(PROP_METADATA)\n ? constructor[PROP_METADATA]\n : Object.defineProperty(constructor, PROP_METADATA, { value: {} })[PROP_METADATA];\n meta[name] = (meta.hasOwnProperty(name) && meta[name]) || [];\n meta[name].unshift(decoratorInstance);\n if (additionalProcessing)\n additionalProcessing(target, name, ...args);\n }\n return PropDecorator;\n }\n if (parentClass) {\n PropDecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n PropDecoratorFactory.prototype.ngMetadataName = name;\n PropDecoratorFactory.annotationCls = PropDecoratorFactory;\n return PropDecoratorFactory;\n });\n}\n\nconst _global = globalThis;\n\nfunction ngDevModeResetPerfCounters() {\n const locationString = typeof location !== 'undefined' ? location.toString() : '';\n const newCounters = {\n namedConstructors: locationString.indexOf('ngDevMode=namedConstructors') != -1,\n firstCreatePass: 0,\n tNode: 0,\n tView: 0,\n rendererCreateTextNode: 0,\n rendererSetText: 0,\n rendererCreateElement: 0,\n rendererAddEventListener: 0,\n rendererSetAttribute: 0,\n rendererRemoveAttribute: 0,\n rendererSetProperty: 0,\n rendererSetClassName: 0,\n rendererAddClass: 0,\n rendererRemoveClass: 0,\n rendererSetStyle: 0,\n rendererRemoveStyle: 0,\n rendererDestroy: 0,\n rendererDestroyNode: 0,\n rendererMoveNode: 0,\n rendererRemoveNode: 0,\n rendererAppendChild: 0,\n rendererInsertBefore: 0,\n rendererCreateComment: 0,\n hydratedNodes: 0,\n hydratedComponents: 0,\n dehydratedViewsRemoved: 0,\n dehydratedViewsCleanupRuns: 0,\n componentsSkippedHydration: 0,\n deferBlocksWithIncrementalHydration: 0,\n };\n // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.\n const allowNgDevModeTrue = locationString.indexOf('ngDevMode=false') === -1;\n if (!allowNgDevModeTrue) {\n _global['ngDevMode'] = false;\n }\n else {\n if (typeof _global['ngDevMode'] !== 'object') {\n _global['ngDevMode'] = {};\n }\n Object.assign(_global['ngDevMode'], newCounters);\n }\n return newCounters;\n}\n/**\n * This function checks to see if the `ngDevMode` has been set. If yes,\n * then we honor it, otherwise we default to dev mode with additional checks.\n *\n * The idea is that unless we are doing production build where we explicitly\n * set `ngDevMode == false` we should be helping the developer by providing\n * as much early warning and errors as possible.\n *\n * `ɵɵdefineComponent` is guaranteed to have been called before any component template functions\n * (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode\n * is defined for the entire instruction set.\n *\n * When checking `ngDevMode` on toplevel, always init it before referencing it\n * (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can\n * get a `ReferenceError` like in https://github.com/angular/angular/issues/31595.\n *\n * Details on possible values for `ngDevMode` can be found on its docstring.\n *\n * NOTE:\n * - changes to the `ngDevMode` name must be synced with `compiler-cli/src/tooling.ts`.\n */\nfunction initNgDevMode() {\n // The below checks are to ensure that calling `initNgDevMode` multiple times does not\n // reset the counters.\n // If the `ngDevMode` is not an object, then it means we have not created the perf counters\n // yet.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (typeof ngDevMode !== 'object' || Object.keys(ngDevMode).length === 0) {\n ngDevModeResetPerfCounters();\n }\n return typeof ngDevMode !== 'undefined' && !!ngDevMode;\n }\n return false;\n}\n\nfunction getClosureSafeProperty(objWithPropertyToExtract) {\n for (let key in objWithPropertyToExtract) {\n if (objWithPropertyToExtract[key] === getClosureSafeProperty) {\n return key;\n }\n }\n throw Error('Could not find renamed property on target object.');\n}\n/**\n * Sets properties on a target object from a source object, but only if\n * the property doesn't already exist on the target object.\n * @param target The target to set properties on\n * @param source The source of the property keys and values to set\n */\nfunction fillProperties(target, source) {\n for (const key in source) {\n if (source.hasOwnProperty(key) && !target.hasOwnProperty(key)) {\n target[key] = source[key];\n }\n }\n}\n\nfunction stringify(token) {\n if (typeof token === 'string') {\n return token;\n }\n if (Array.isArray(token)) {\n return '[' + token.map(stringify).join(', ') + ']';\n }\n if (token == null) {\n return '' + token;\n }\n if (token.overriddenName) {\n return `${token.overriddenName}`;\n }\n if (token.name) {\n return `${token.name}`;\n }\n const res = token.toString();\n if (res == null) {\n return '' + res;\n }\n const newLineIndex = res.indexOf('\\n');\n return newLineIndex === -1 ? res : res.substring(0, newLineIndex);\n}\n/**\n * Concatenates two strings with separator, allocating new strings only when necessary.\n *\n * @param before before string.\n * @param separator separator string.\n * @param after after string.\n * @returns concatenated string.\n */\nfunction concatStringsWithSpace(before, after) {\n return before == null || before === ''\n ? after === null\n ? ''\n : after\n : after == null || after === ''\n ? before\n : before + ' ' + after;\n}\n/**\n * Ellipses the string in the middle when longer than the max length\n *\n * @param string\n * @param maxLength of the output string\n * @returns ellipsed string with ... in the middle\n */\nfunction truncateMiddle(str, maxLength = 100) {\n if (!str || maxLength < 1 || str.length <= maxLength)\n return str;\n if (maxLength == 1)\n return str.substring(0, 1) + '...';\n const halfLimit = Math.round(maxLength / 2);\n return str.substring(0, halfLimit) + '...' + str.substring(str.length - halfLimit);\n}\n\nconst __forward_ref__ = getClosureSafeProperty({ __forward_ref__: getClosureSafeProperty });\n/**\n * Allows to refer to references which are not yet defined.\n *\n * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of\n * DI is declared, but not yet defined. It is also used when the `token` which we use when creating\n * a query is not yet defined.\n *\n * `forwardRef` is also used to break circularities in standalone components imports.\n *\n * @usageNotes\n * ### Circular dependency example\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}\n *\n * ### Circular standalone reference import example\n * ```angular-ts\n * @Component({\n * standalone: true,\n * imports: [ChildComponent],\n * selector: 'app-parent',\n * template: `<app-child [hideParent]=\"hideParent\"></app-child>`,\n * })\n * export class ParentComponent {\n * @Input() hideParent: boolean;\n * }\n *\n *\n * @Component({\n * standalone: true,\n * imports: [CommonModule, forwardRef(() => ParentComponent)],\n * selector: 'app-child',\n * template: `<app-parent *ngIf=\"!hideParent\"></app-parent>`,\n * })\n * export class ChildComponent {\n * @Input() hideParent: boolean;\n * }\n * ```\n *\n * @publicApi\n */\nfunction forwardRef(forwardRefFn) {\n forwardRefFn.__forward_ref__ = forwardRef;\n forwardRefFn.toString = function () {\n return stringify(this());\n };\n return forwardRefFn;\n}\n/**\n * Lazily retrieves the reference value from a forwardRef.\n *\n * Acts as the identity function when given a non-forward-ref value.\n *\n * @usageNotes\n * ### Example\n *\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}\n *\n * @see {@link forwardRef}\n * @publicApi\n */\nfunction resolveForwardRef(type) {\n return isForwardRef(type) ? type() : type;\n}\n/** Checks whether a function is wrapped by a `forwardRef`. */\nfunction isForwardRef(fn) {\n return (typeof fn === 'function' &&\n fn.hasOwnProperty(__forward_ref__) &&\n fn.__forward_ref__ === forwardRef);\n}\n\n// The functions in this file verify that the assumptions we are making\nfunction assertNumber(actual, msg) {\n if (!(typeof actual === 'number')) {\n throwError(msg, typeof actual, 'number', '===');\n }\n}\nfunction assertNumberInRange(actual, minInclusive, maxInclusive) {\n assertNumber(actual, 'Expected a number');\n assertLessThanOrEqual(actual, maxInclusive, 'Expected number to be less than or equal to');\n assertGreaterThanOrEqual(actual, minInclusive, 'Expected number to be greater than or equal to');\n}\nfunction assertString(actual, msg) {\n if (!(typeof actual === 'string')) {\n throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');\n }\n}\nfunction assertFunction(actual, msg) {\n if (!(typeof actual === 'function')) {\n throwError(msg, actual === null ? 'null' : typeof actual, 'function', '===');\n }\n}\nfunction assertEqual(actual, expected, msg) {\n if (!(actual == expected)) {\n throwError(msg, actual, expected, '==');\n }\n}\nfunction assertNotEqual(actual, expected, msg) {\n if (!(actual != expected)) {\n throwError(msg, actual, expected, '!=');\n }\n}\nfunction assertSame(actual, expected, msg) {\n if (!(actual === expected)) {\n throwError(msg, actual, expected, '===');\n }\n}\nfunction assertNotSame(actual, expected, msg) {\n if (!(actual !== expected)) {\n throwError(msg, actual, expected, '!==');\n }\n}\nfunction assertLessThan(actual, expected, msg) {\n if (!(actual < expected)) {\n throwError(msg, actual, expected, '<');\n }\n}\nfunction assertLessThanOrEqual(actual, expected, msg) {\n if (!(actual <= expected)) {\n throwError(msg, actual, expected, '<=');\n }\n}\nfunction assertGreaterThan(actual, expected, msg) {\n if (!(actual > expected)) {\n throwError(msg, actual, expected, '>');\n }\n}\nfunction assertGreaterThanOrEqual(actual, expected, msg) {\n if (!(actual >= expected)) {\n throwError(msg, actual, expected, '>=');\n }\n}\nfunction assertNotDefined(actual, msg) {\n if (actual != null) {\n throwError(msg, actual, null, '==');\n }\n}\nfunction assertDefined(actual, msg) {\n if (actual == null) {\n throwError(msg, actual, null, '!=');\n }\n}\nfunction throwError(msg, actual, expected, comparison) {\n throw new Error(`ASSERTION ERROR: ${msg}` +\n (comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`));\n}\nfunction assertDomNode(node) {\n if (!(node instanceof Node)) {\n throwError(`The provided value must be an instance of a DOM Node but got ${stringify(node)}`);\n }\n}\nfunction assertElement(node) {\n if (!(node instanceof Element)) {\n throwError(`The provided value must be an element but got ${stringify(node)}`);\n }\n}\nfunction assertIndexInRange(arr, index) {\n assertDefined(arr, 'Array must be defined.');\n const maxLen = arr.length;\n if (index < 0 || index >= maxLen) {\n throwError(`Index expected to be less than ${maxLen} but got ${index}`);\n }\n}\nfunction assertOneOf(value, ...validValues) {\n if (validValues.indexOf(value) !== -1)\n return true;\n throwError(`Expected value to be one of ${JSON.stringify(validValues)} but was ${JSON.stringify(value)}.`);\n}\nfunction assertNotReactive(fn) {\n if (getActiveConsumer$1() !== null) {\n throwError(`${fn}() should never be called in a reactive context.`);\n }\n}\n\n/**\n * Construct an injectable definition which defines how a token will be constructed by the DI\n * system, and in which injectors (if any) it will be available.\n *\n * This should be assigned to a static `ɵprov` field on a type, which will then be an\n * `InjectableType`.\n *\n * Options:\n * * `providedIn` determines which injectors will include the injectable, by either associating it\n * with an `@NgModule` or other `InjectorType`, or by specifying that this injectable should be\n * provided in the `'root'` injector, which will be the application-level injector in most apps.\n * * `factory` gives the zero argument function which will create an instance of the injectable.\n * The factory can call [`inject`](api/core/inject) to access the `Injector` and request injection\n * of dependencies.\n *\n * @codeGenApi\n * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm.\n */\nfunction ɵɵdefineInjectable(opts) {\n return {\n token: opts.token,\n providedIn: opts.providedIn || null,\n factory: opts.factory,\n value: undefined,\n };\n}\n/**\n * @deprecated in v8, delete after v10. This API should be used only by generated code, and that\n * code should now use ɵɵdefineInjectable instead.\n * @publicApi\n */\nconst defineInjectable = ɵɵdefineInjectable;\n/**\n * Construct an `InjectorDef` which configures an injector.\n *\n * This should be assigned to a static injector def (`ɵinj`) field on a type, which will then be an\n * `InjectorType`.\n *\n * Options:\n *\n * * `providers`: an optional array of providers to add to the injector. Each provider must\n * either have a factory or point to a type which has a `ɵprov` static property (the\n * type must be an `InjectableType`).\n * * `imports`: an optional array of imports of other `InjectorType`s or `InjectorTypeWithModule`s\n * whose providers will also be added to the injector. Locally provided types will override\n * providers from imports.\n *\n * @codeGenApi\n */\nfunction ɵɵdefineInjector(options) {\n return { providers: options.providers || [], imports: options.imports || [] };\n}\n/**\n * Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading\n * inherited value.\n *\n * @param type A type which may have its own (non-inherited) `ɵprov`.\n */\nfunction getInjectableDef(type) {\n return getOwnDefinition(type, NG_PROV_DEF) || getOwnDefinition(type, NG_INJECTABLE_DEF);\n}\nfunction isInjectable(type) {\n return getInjectableDef(type) !== null;\n}\n/**\n * Return definition only if it is defined directly on `type` and is not inherited from a base\n * class of `type`.\n */\nfunction getOwnDefinition(type, field) {\n return type.hasOwnProperty(field) ? type[field] : null;\n}\n/**\n * Read the injectable def (`ɵprov`) for `type` or read the `ɵprov` from one of its ancestors.\n *\n * @param type A type which may have `ɵprov`, via inheritance.\n *\n * @deprecated Will be removed in a future version of Angular, where an error will occur in the\n * scenario if we find the `ɵprov` on an ancestor only.\n */\nfunction getInheritedInjectableDef(type) {\n const def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF]);\n if (def) {\n ngDevMode &&\n console.warn(`DEPRECATED: DI is instantiating a token \"${type.name}\" that inherits its @Injectable decorator but does not provide one itself.\\n` +\n `This will become an error in a future version of Angular. Please add @Injectable() to the \"${type.name}\" class.`);\n return def;\n }\n else {\n return null;\n }\n}\n/**\n * Read the injector def type in a way which is immune to accidentally reading inherited value.\n *\n * @param type type which may have an injector def (`ɵinj`)\n */\nfunction getInjectorDef(type) {\n return type && (type.hasOwnProperty(NG_INJ_DEF) || type.hasOwnProperty(NG_INJECTOR_DEF))\n ? type[NG_INJ_DEF]\n : null;\n}\nconst NG_PROV_DEF = getClosureSafeProperty({ ɵprov: getClosureSafeProperty });\nconst NG_INJ_DEF = getClosureSafeProperty({ ɵinj: getClosureSafeProperty });\n// We need to keep these around so we can read off old defs if new defs are unavailable\nconst NG_INJECTABLE_DEF = getClosureSafeProperty({ ngInjectableDef: getClosureSafeProperty });\nconst NG_INJECTOR_DEF = getClosureSafeProperty({ ngInjectorDef: getClosureSafeProperty });\n\n/**\n * Creates a token that can be used in a DI Provider.\n *\n * Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a\n * runtime representation) such as when injecting an interface, callable type, array or\n * parameterized type.\n *\n * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by\n * the `Injector`. This provides an additional level of type safety.\n *\n * <div class=\"docs-alert docs-alert-helpful\">\n *\n * **Important Note**: Ensure that you use the same instance of the `InjectionToken` in both the\n * provider and the injection call. Creating a new instance of `InjectionToken` in different places,\n * even with the same description, will be treated as different tokens by Angular's DI system,\n * leading to a `NullInjectorError`.\n *\n * </div>\n *\n * {@example injection-token/src/main.ts region='InjectionToken'}\n *\n * When creating an `InjectionToken`, you can optionally specify a factory function which returns\n * (possibly by creating) a default value of the parameterized type `T`. This sets up the\n * `InjectionToken` using this factory as a provider as if it was defined explicitly in the\n * application's root injector. If the factory function, which takes zero arguments, needs to inject\n * dependencies, it can do so using the [`inject`](api/core/inject) function.\n * As you can see in the Tree-shakable InjectionToken example below.\n *\n * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which\n * overrides the above behavior and marks the token as belonging to a particular `@NgModule` (note:\n * this option is now deprecated). As mentioned above, `'root'` is the default value for\n * `providedIn`.\n *\n * The `providedIn: NgModule` and `providedIn: 'any'` options are deprecated.\n *\n * @usageNotes\n * ### Basic Examples\n *\n * ### Plain InjectionToken\n *\n * {@example core/di/ts/injector_spec.ts region='InjectionToken'}\n *\n * ### Tree-shakable InjectionToken\n *\n * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}\n *\n * @publicApi\n */\nclass InjectionToken {\n _desc;\n /** @internal */\n ngMetadataName = 'InjectionToken';\n ɵprov;\n /**\n * @param _desc Description for the token,\n * used only for debugging purposes,\n * it should but does not need to be unique\n * @param options Options for the token's usage, as described above\n */\n constructor(_desc, options) {\n this._desc = _desc;\n this.ɵprov = undefined;\n if (typeof options == 'number') {\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n assertLessThan(options, 0, 'Only negative numbers are supported here');\n // This is a special hack to assign __NG_ELEMENT_ID__ to this instance.\n // See `InjectorMarkers`\n this.__NG_ELEMENT_ID__ = options;\n }\n else if (options !== undefined) {\n this.ɵprov = ɵɵdefineInjectable({\n token: this,\n providedIn: options.providedIn || 'root',\n factory: options.factory,\n });\n }\n }\n /**\n * @internal\n */\n get multi() {\n return this;\n }\n toString() {\n return `InjectionToken ${this._desc}`;\n }\n}\n\nlet _injectorProfilerContext;\nfunction getInjectorProfilerContext() {\n !ngDevMode && throwError('getInjectorProfilerContext should never be called in production mode');\n return _injectorProfilerContext;\n}\nfunction setInjectorProfilerContext(context) {\n !ngDevMode && throwError('setInjectorProfilerContext should never be called in production mode');\n const previous = _injectorProfilerContext;\n _injectorProfilerContext = context;\n return previous;\n}\nlet injectorProfilerCallback = null;\n/**\n * Sets the callback function which will be invoked during certain DI events within the\n * runtime (for example: injecting services, creating injectable instances, configuring providers)\n *\n * Warning: this function is *INTERNAL* and should not be relied upon in application's code.\n * The contract of the function might be changed in any release and/or the function can be removed\n * completely.\n *\n * @param profiler function provided by the caller or null value to disable profiling.\n */\nconst setInjectorProfiler = (injectorProfiler) => {\n !ngDevMode && throwError('setInjectorProfiler should never be called in production mode');\n injectorProfilerCallback = injectorProfiler;\n};\n/**\n * Injector profiler function which emits on DI events executed by the runtime.\n *\n * @param event InjectorProfilerEvent corresponding to the DI event being emitted\n */\nfunction injectorProfiler(event) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n if (injectorProfilerCallback != null /* both `null` and `undefined` */) {\n injectorProfilerCallback(event);\n }\n}\n/**\n * Emits an InjectorProfilerEventType.ProviderConfigured to the injector profiler. The data in the\n * emitted event includes the raw provider, as well as the token that provider is providing.\n *\n * @param eventProvider A provider object\n */\nfunction emitProviderConfiguredEvent(eventProvider, isViewProvider = false) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n let token;\n // if the provider is a TypeProvider (typeof provider is function) then the token is the\n // provider itself\n if (typeof eventProvider === 'function') {\n token = eventProvider;\n }\n // if the provider is an injection token, then the token is the injection token.\n else if (eventProvider instanceof InjectionToken) {\n token = eventProvider;\n }\n // in all other cases we can access the token via the `provide` property of the provider\n else {\n token = resolveForwardRef(eventProvider.provide);\n }\n let provider = eventProvider;\n // Injection tokens may define their own default provider which gets attached to the token itself\n // as `ɵprov`. In this case, we want to emit the provider that is attached to the token, not the\n // token itself.\n if (eventProvider instanceof InjectionToken) {\n provider = eventProvider.ɵprov || eventProvider;\n }\n injectorProfiler({\n type: 2 /* InjectorProfilerEventType.ProviderConfigured */,\n context: getInjectorProfilerContext(),\n providerRecord: { token, provider, isViewProvider },\n });\n}\n/**\n * Emits an event to the injector profiler with the instance that was created. Note that\n * the injector associated with this emission can be accessed by using getDebugInjectContext()\n *\n * @param instance an object created by an injector\n */\nfunction emitInstanceCreatedByInjectorEvent(instance) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n injectorProfiler({\n type: 1 /* InjectorProfilerEventType.InstanceCreatedByInjector */,\n context: getInjectorProfilerContext(),\n instance: { value: instance },\n });\n}\n/**\n * @param token DI token associated with injected service\n * @param value the instance of the injected service (i.e the result of `inject(token)`)\n * @param flags the flags that the token was injected with\n */\nfunction emitInjectEvent(token, value, flags) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n injectorProfiler({\n type: 0 /* InjectorProfilerEventType.Inject */,\n context: getInjectorProfilerContext(),\n service: { token, value, flags },\n });\n}\nfunction emitEffectCreatedEvent(effect) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n injectorProfiler({\n type: 3 /* InjectorProfilerEventType.EffectCreated */,\n context: getInjectorProfilerContext(),\n effect,\n });\n}\nfunction runInInjectorProfilerContext(injector, token, callback) {\n !ngDevMode &&\n throwError('runInInjectorProfilerContext should never be called in production mode');\n const prevInjectContext = setInjectorProfilerContext({ injector, token });\n try {\n callback();\n }\n finally {\n setInjectorProfilerContext(prevInjectContext);\n }\n}\n\nfunction isEnvironmentProviders(value) {\n return value && !!value.ɵproviders;\n}\n\nconst NG_COMP_DEF = getClosureSafeProperty({ ɵcmp: getClosureSafeProperty });\nconst NG_DIR_DEF = getClosureSafeProperty({ ɵdir: getClosureSafeProperty });\nconst NG_PIPE_DEF = getClosureSafeProperty({ ɵpipe: getClosureSafeProperty });\nconst NG_MOD_DEF = getClosureSafeProperty({ ɵmod: getClosureSafeProperty });\nconst NG_FACTORY_DEF = getClosureSafeProperty({ ɵfac: getClosureSafeProperty });\n/**\n * If a directive is diPublic, bloomAdd sets a property on the type with this constant as\n * the key and the directive's unique ID as the value. This allows us to map directives to their\n * bloom filter bit for DI.\n */\n// TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified.\nconst NG_ELEMENT_ID = getClosureSafeProperty({ __NG_ELEMENT_ID__: getClosureSafeProperty });\n/**\n * The `NG_ENV_ID` field on a DI token indicates special processing in the `EnvironmentInjector`:\n * getting such tokens from the `EnvironmentInjector` will bypass the standard DI resolution\n * strategy and instead will return implementation produced by the `NG_ENV_ID` factory function.\n *\n * This particular retrieval of DI tokens is mostly done to eliminate circular dependencies and\n * improve tree-shaking.\n */\nconst NG_ENV_ID = getClosureSafeProperty({ __NG_ENV_ID__: getClosureSafeProperty });\n\n/**\n * Used for stringify render output in Ivy.\n * Important! This function is very performance-sensitive and we should\n * be extra careful not to introduce megamorphic reads in it.\n * Check `core/test/render3/perf/render_stringify` for benchmarks and alternate implementations.\n */\nfunction renderStringify(value) {\n if (typeof value === 'string')\n return value;\n if (value == null)\n return '';\n // Use `String` so that it invokes the `toString` method of the value. Note that this\n // appears to be faster than calling `value.toString` (see `render_stringify` benchmark).\n return String(value);\n}\n/**\n * Used to stringify a value so that it can be displayed in an error message.\n *\n * Important! This function contains a megamorphic read and should only be\n * used for error messages.\n */\nfunction stringifyForError(value) {\n if (typeof value === 'function')\n return value.name || value.toString();\n if (typeof value === 'object' && value != null && typeof value.type === 'function') {\n return value.type.name || value.type.toString();\n }\n return renderStringify(value);\n}\n/**\n * Used to stringify a `Type` and including the file path and line number in which it is defined, if\n * possible, for better debugging experience.\n *\n * Important! This function contains a megamorphic read and should only be used for error messages.\n */\nfunction debugStringifyTypeForError(type) {\n // TODO(pmvald): Do some refactoring so that we can use getComponentDef here without creating\n // circular deps.\n let componentDef = type[NG_COMP_DEF] || null;\n if (componentDef !== null && componentDef.debugInfo) {\n return stringifyTypeFromDebugInfo(componentDef.debugInfo);\n }\n return stringifyForError(type);\n}\n// TODO(pmvald): Do some refactoring so that we can use the type ClassDebugInfo for the param\n// debugInfo here without creating circular deps.\nfunction stringifyTypeFromDebugInfo(debugInfo) {\n if (!debugInfo.filePath || !debugInfo.lineNumber) {\n return debugInfo.className;\n }\n else {\n return `${debugInfo.className} (at ${debugInfo.filePath}:${debugInfo.lineNumber})`;\n }\n}\n\n/** Called when directives inject each other (creating a circular dependency) */\nfunction throwCyclicDependencyError(token, path) {\n const depPath = path ? `. Dependency path: ${path.join(' > ')} > ${token}` : '';\n throw new RuntimeError(-200 /* RuntimeErrorCode.CYCLIC_DI_DEPENDENCY */, ngDevMode ? `Circular dependency in DI detected for ${token}${depPath}` : token);\n}\nfunction throwMixedMultiProviderError() {\n throw new Error(`Cannot mix multi providers and regular providers`);\n}\nfunction throwInvalidProviderError(ngModuleType, providers, provider) {\n if (ngModuleType && providers) {\n const providerDetail = providers.map((v) => (v == provider ? '?' + provider + '?' : '...'));\n throw new Error(`Invalid provider for the NgModule '${stringify(ngModuleType)}' - only instances of Provider and Type are allowed, got: [${providerDetail.join(', ')}]`);\n }\n else if (isEnvironmentProviders(provider)) {\n if (provider.ɵfromNgModule) {\n throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, `Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers.`);\n }\n else {\n throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, `Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers.`);\n }\n }\n else {\n throw new Error('Invalid provider');\n }\n}\n/** Throws an error when a token is not found in DI. */\nfunction throwProviderNotFoundError(token, injectorName) {\n const errorMessage = ngDevMode &&\n `No provider for ${stringifyForError(token)} found${injectorName ? ` in ${injectorName}` : ''}`;\n throw new RuntimeError(-201 /* RuntimeErrorCode.PROVIDER_NOT_FOUND */, errorMessage);\n}\n\n/**\n * Injection flags for DI.\n *\n * @publicApi\n * @deprecated use an options object for [`inject`](api/core/inject) instead.\n */\nvar InjectFlags;\n(function (InjectFlags) {\n // TODO(alxhub): make this 'const' (and remove `InternalInjectFlags` enum) when ngc no longer\n // writes exports of it into ngfactory files.\n /** Check self and check parent injector if needed */\n InjectFlags[InjectFlags[\"Default\"] = 0] = \"Default\";\n /**\n * Specifies that an injector should retrieve a dependency from any injector until reaching the\n * host element of the current component. (Only used with Element Injector)\n */\n InjectFlags[InjectFlags[\"Host\"] = 1] = \"Host\";\n /** Don't ascend to ancestors of the node requesting injection. */\n InjectFlags[InjectFlags[\"Self\"] = 2] = \"Self\";\n /** Skip the node that is requesting injection. */\n InjectFlags[InjectFlags[\"SkipSelf\"] = 4] = \"SkipSelf\";\n /** Inject `defaultValue` instead if token not found. */\n InjectFlags[InjectFlags[\"Optional\"] = 8] = \"Optional\";\n})(InjectFlags || (InjectFlags = {}));\n\n/**\n * Current implementation of inject.\n *\n * By default, it is `injectInjectorOnly`, which makes it `Injector`-only aware. It can be changed\n * to `directiveInject`, which brings in the `NodeInjector` system of ivy. It is designed this\n * way for two reasons:\n * 1. `Injector` should not depend on ivy logic.\n * 2. To maintain tree shake-ability we don't want to bring in unnecessary code.\n */\nlet _injectImplementation;\nfunction getInjectImplementation() {\n return _injectImplementation;\n}\n/**\n * Sets the current inject implementation.\n */\nfunction setInjectImplementation(impl) {\n const previous = _injectImplementation;\n _injectImplementation = impl;\n return previous;\n}\n/**\n * Injects `root` tokens in limp mode.\n *\n * If no injector exists, we can still inject tree-shakable providers which have `providedIn` set to\n * `\"root\"`. This is known as the limp mode injection. In such case the value is stored in the\n * injectable definition.\n */\nfunction injectRootLimpMode(token, notFoundValue, flags) {\n const injectableDef = getInjectableDef(token);\n if (injectableDef && injectableDef.providedIn == 'root') {\n return injectableDef.value === undefined\n ? (injectableDef.value = injectableDef.factory())\n : injectableDef.value;\n }\n if (flags & InjectFlags.Optional)\n return null;\n if (notFoundValue !== undefined)\n return notFoundValue;\n throwProviderNotFoundError(token, 'Injector');\n}\n/**\n * Assert that `_injectImplementation` is not `fn`.\n *\n * This is useful, to prevent infinite recursion.\n *\n * @param fn Function which it should not equal to\n */\nfunction assertInjectImplementationNotEqual(fn) {\n ngDevMode &&\n assertNotEqual(_injectImplementation, fn, 'Calling ɵɵinject would cause infinite recursion');\n}\n\nconst _THROW_IF_NOT_FOUND = {};\nconst THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;\n/*\n * Name of a property (that we patch onto DI decorator), which is used as an annotation of which\n * InjectFlag this decorator represents. This allows to avoid direct references to the DI decorators\n * in the code, thus making them tree-shakable.\n */\nconst DI_DECORATOR_FLAG = '__NG_DI_FLAG__';\nconst NG_TEMP_TOKEN_PATH = 'ngTempTokenPath';\nconst NG_TOKEN_PATH = 'ngTokenPath';\nconst NEW_LINE = /\\n/gm;\nconst NO_NEW_LINE = 'ɵ';\nconst SOURCE = '__source';\n/**\n * Current injector value used by `inject`.\n * - `undefined`: it is an error to call `inject`\n * - `null`: `inject` can be called but there is no injector (limp-mode).\n * - Injector instance: Use the injector for resolution.\n */\nlet _currentInjector = undefined;\nfunction getCurrentInjector() {\n return _currentInjector;\n}\nfunction setCurrentInjector(injector) {\n const former = _currentInjector;\n _currentInjector = injector;\n return former;\n}\nfunction injectInjectorOnly(token, flags = InjectFlags.Default) {\n if (_currentInjector === undefined) {\n throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode &&\n `inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with \\`runInInjectionContext\\`.`);\n }\n else if (_currentInjector === null) {\n return injectRootLimpMode(token, undefined, flags);\n }\n else {\n const value = _currentInjector.get(token, flags & InjectFlags.Optional ? null : undefined, flags);\n ngDevMode && emitInjectEvent(token, value, flags);\n return value;\n }\n}\nfunction ɵɵinject(token, flags = InjectFlags.Default) {\n return (getInjectImplementation() || injectInjectorOnly)(resolveForwardRef(token), flags);\n}\n/**\n * Throws an error indicating that a factory function could not be generated by the compiler for a\n * particular class.\n *\n * The name of the class is not mentioned here, but will be in the generated factory function name\n * and thus in the stack trace.\n *\n * @codeGenApi\n */\nfunction ɵɵinvalidFactoryDep(index) {\n throw new RuntimeError(202 /* RuntimeErrorCode.INVALID_FACTORY_DEPENDENCY */, ngDevMode &&\n `This constructor is not compatible with Angular Dependency Injection because its dependency at index ${index} of the parameter list is invalid.\nThis can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.\n\nPlease check that 1) the type for the parameter at index ${index} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.`);\n}\n/**\n * Injects a token from the currently active injector.\n * `inject` is only supported in an [injection context](guide/di/dependency-injection-context). It\n * can be used during:\n * - Construction (via the `constructor`) of a class being instantiated by the DI system, such\n * as an `@Injectable` or `@Component`.\n * - In the initializer for fields of such classes.\n * - In the factory function specified for `useFactory` of a `Provider` or an `@Injectable`.\n * - In the `factory` function specified for an `InjectionToken`.\n * - In a stackframe of a function call in a DI context\n *\n * @param token A token that represents a dependency that should be injected.\n * @param flags Optional flags that control how injection is executed.\n * The flags correspond to injection strategies that can be specified with\n * parameter decorators `@Host`, `@Self`, `@SkipSelf`, and `@Optional`.\n * @returns the injected value if operation is successful, `null` otherwise.\n * @throws if called outside of a supported context.\n *\n * @usageNotes\n * In practice the `inject()` calls are allowed in a constructor, a constructor parameter and a\n * field initializer:\n *\n * ```ts\n * @Injectable({providedIn: 'root'})\n * export class Car {\n * radio: Radio|undefined;\n * // OK: field initializer\n * spareTyre = inject(Tyre);\n *\n * constructor() {\n * // OK: constructor body\n * this.radio = inject(Radio);\n * }\n * }\n * ```\n *\n * It is also legal to call `inject` from a provider's factory:\n *\n * ```ts\n * providers: [\n * {provide: Car, useFactory: () => {\n * // OK: a class factory\n * const engine = inject(Engine);\n * return new Car(engine);\n * }}\n * ]\n * ```\n *\n * Calls to the `inject()` function outside of the class creation context will result in error. Most\n * notably, calls to `inject()` are disallowed after a class instance was created, in methods\n * (including lifecycle hooks):\n *\n * ```ts\n * @Component({ ... })\n * export class CarComponent {\n * ngOnInit() {\n * // ERROR: too late, the component instance was already created\n * const engine = inject(Engine);\n * engine.start();\n * }\n * }\n * ```\n *\n * @publicApi\n */\nfunction inject(token, flags = InjectFlags.Default) {\n // The `as any` here _shouldn't_ be necessary, but without it JSCompiler\n // throws a disambiguation error due to the multiple signatures.\n return ɵɵinject(token, convertToBitFlags(flags));\n}\n// Converts object-based DI flags (`InjectOptions`) to bit flags (`InjectFlags`).\nfunction convertToBitFlags(flags) {\n if (typeof flags === 'undefined' || typeof flags === 'number') {\n return flags;\n }\n // While TypeScript doesn't accept it without a cast, bitwise OR with false-y values in\n // JavaScript is a no-op. We can use that for a very codesize-efficient conversion from\n // `InjectOptions` to `InjectFlags`.\n return (0 /* InternalInjectFlags.Default */ | // comment to force a line break in the formatter\n (flags.optional && 8 /* InternalInjectFlags.Optional */) |\n (flags.host && 1 /* InternalInjectFlags.Host */) |\n (flags.self && 2 /* InternalInjectFlags.Self */) |\n (flags.skipSelf && 4 /* InternalInjectFlags.SkipSelf */));\n}\nfunction injectArgs(types) {\n const args = [];\n for (let i = 0; i < types.length; i++) {\n const arg = resolveForwardRef(types[i]);\n if (Array.isArray(arg)) {\n if (arg.length === 0) {\n throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && 'Arguments array must have arguments.');\n }\n let type = undefined;\n let flags = InjectFlags.Default;\n for (let j = 0; j < arg.length; j++) {\n const meta = arg[j];\n const flag = getInjectFlag(meta);\n if (typeof flag === 'number') {\n // Special case when we handle @Inject decorator.\n if (flag === -1 /* DecoratorFlags.Inject */) {\n type = meta.token;\n }\n else {\n flags |= flag;\n }\n }\n else {\n type = meta;\n }\n }\n args.push(ɵɵinject(type, flags));\n }\n else {\n args.push(ɵɵinject(arg));\n }\n }\n return args;\n}\n/**\n * Attaches a given InjectFlag to a given decorator using monkey-patching.\n * Since DI decorators can be used in providers `deps` array (when provider is configured using\n * `useFactory`) without initialization (e.g. `Host`) and as an instance (e.g. `new Host()`), we\n * attach the flag to make it available both as a static property and as a field on decorator\n * instance.\n *\n * @param decorator Provided DI decorator.\n * @param flag InjectFlag that should be applied.\n */\nfunction attachInjectFlag(decorator, flag) {\n decorator[DI_DECORATOR_FLAG] = flag;\n decorator.prototype[DI_DECORATOR_FLAG] = flag;\n return decorator;\n}\n/**\n * Reads monkey-patched property that contains InjectFlag attached to a decorator.\n *\n * @param token Token that may contain monkey-patched DI flags property.\n */\nfunction getInjectFlag(token) {\n return token[DI_DECORATOR_FLAG];\n}\nfunction catchInjectorError(e, token, injectorErrorName, source) {\n const tokenPath = e[NG_TEMP_TOKEN_PATH];\n if (token[SOURCE]) {\n tokenPath.unshift(token[SOURCE]);\n }\n e.message = formatError('\\n' + e.message, tokenPath, injectorErrorName, source);\n e[NG_TOKEN_PATH] = tokenPath;\n e[NG_TEMP_TOKEN_PATH] = null;\n throw e;\n}\nfunction formatError(text, obj, injectorErrorName, source = null) {\n text = text && text.charAt(0) === '\\n' && text.charAt(1) == NO_NEW_LINE ? text.slice(2) : text;\n let context = stringify(obj);\n if (Array.isArray(obj)) {\n context = obj.map(stringify).join(' -> ');\n }\n else if (typeof obj === 'object') {\n let parts = [];\n for (let key in obj) {\n if (obj.hasOwnProperty(key)) {\n let value = obj[key];\n parts.push(key + ':' + (typeof value === 'string' ? JSON.stringify(value) : stringify(value)));\n }\n }\n context = `{${parts.join(', ')}}`;\n }\n return `${injectorErrorName}${source ? '(' + source + ')' : ''}[${context}]: ${text.replace(NEW_LINE, '\\n ')}`;\n}\n\n/**\n * Inject decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Inject = attachInjectFlag(\n// Disable tslint because `DecoratorFlags` is a const enum which gets inlined.\nmakeParamDecorator('Inject', (token) => ({ token })), -1 /* DecoratorFlags.Inject */);\n/**\n * Optional decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Optional = \n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag(makeParamDecorator('Optional'), 8 /* InternalInjectFlags.Optional */);\n/**\n * Self decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Self = \n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag(makeParamDecorator('Self'), 2 /* InternalInjectFlags.Self */);\n/**\n * `SkipSelf` decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst SkipSelf = \n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag(makeParamDecorator('SkipSelf'), 4 /* InternalInjectFlags.SkipSelf */);\n/**\n * Host decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Host = \n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag(makeParamDecorator('Host'), 1 /* InternalInjectFlags.Host */);\n\nfunction getFactoryDef(type, throwNotFound) {\n const hasFactoryDef = type.hasOwnProperty(NG_FACTORY_DEF);\n if (!hasFactoryDef && throwNotFound === true && ngDevMode) {\n throw new Error(`Type ${stringify(type)} does not have 'ɵfac' property.`);\n }\n return hasFactoryDef ? type[NG_FACTORY_DEF] : null;\n}\n\n/**\n * Determines if the contents of two arrays is identical\n *\n * @param a first array\n * @param b second array\n * @param identityAccessor Optional function for extracting stable object identity from a value in\n * the array.\n */\nfunction arrayEquals(a, b, identityAccessor) {\n if (a.length !== b.length)\n return false;\n for (let i = 0; i < a.length; i++) {\n let valueA = a[i];\n let valueB = b[i];\n if (identityAccessor) {\n valueA = identityAccessor(valueA);\n valueB = identityAccessor(valueB);\n }\n if (valueB !== valueA) {\n return false;\n }\n }\n return true;\n}\n/**\n * Flattens an array.\n */\nfunction flatten(list) {\n return list.flat(Number.POSITIVE_INFINITY);\n}\nfunction deepForEach(input, fn) {\n input.forEach((value) => (Array.isArray(value) ? deepForEach(value, fn) : fn(value)));\n}\nfunction addToArray(arr, index, value) {\n // perf: array.push is faster than array.splice!\n if (index >= arr.length) {\n arr.push(value);\n }\n else {\n arr.splice(index, 0, value);\n }\n}\nfunction removeFromArray(arr, index) {\n // perf: array.pop is faster than array.splice!\n if (index >= arr.length - 1) {\n return arr.pop();\n }\n else {\n return arr.splice(index, 1)[0];\n }\n}\nfunction newArray(size, value) {\n const list = [];\n for (let i = 0; i < size; i++) {\n list.push(value);\n }\n return list;\n}\n/**\n * Remove item from array (Same as `Array.splice()` but faster.)\n *\n * `Array.splice()` is not as fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * https://jsperf.com/fast-array-splice (About 20x faster)\n *\n * @param array Array to splice\n * @param index Index of element in array to remove.\n * @param count Number of items to remove.\n */\nfunction arraySplice(array, index, count) {\n const length = array.length - count;\n while (index < length) {\n array[index] = array[index + count];\n index++;\n }\n while (count--) {\n array.pop(); // shrink the array\n }\n}\n/**\n * Same as `Array.splice(index, 0, value)` but faster.\n *\n * `Array.splice()` is not fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * @param array Array to splice.\n * @param index Index in array where the `value` should be added.\n * @param value Value to add to array.\n */\nfunction arrayInsert(array, index, value) {\n ngDevMode && assertLessThanOrEqual(index, array.length, \"Can't insert past array end.\");\n let end = array.length;\n while (end > index) {\n const previousEnd = end - 1;\n array[end] = array[previousEnd];\n end = previousEnd;\n }\n array[index] = value;\n}\n/**\n * Same as `Array.splice2(index, 0, value1, value2)` but faster.\n *\n * `Array.splice()` is not fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * @param array Array to splice.\n * @param index Index in array where the `value` should be added.\n * @param value1 Value to add to array.\n * @param value2 Value to add to array.\n */\nfunction arrayInsert2(array, index, value1, value2) {\n ngDevMode && assertLessThanOrEqual(index, array.length, \"Can't insert past array end.\");\n let end = array.length;\n if (end == index) {\n // inserting at the end.\n array.push(value1, value2);\n }\n else if (end === 1) {\n // corner case when we have less items in array than we have items to insert.\n array.push(value2, array[0]);\n array[0] = value1;\n }\n else {\n end--;\n array.push(array[end - 1], array[end]);\n while (end > index) {\n const previousEnd = end - 2;\n array[end] = array[previousEnd];\n end--;\n }\n array[index] = value1;\n array[index + 1] = value2;\n }\n}\n/**\n * Get an index of an `value` in a sorted `array`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to binary search.\n * @param value The value to look for.\n * @returns index of the value.\n * - positive index if value found.\n * - negative index if value not found. (`~index` to get the value where it should have been\n * located)\n */\nfunction arrayIndexOfSorted(array, value) {\n return _arrayIndexOfSorted(array, value, 0);\n}\n/**\n * Set a `value` for a `key`.\n *\n * @param keyValueArray to modify.\n * @param key The key to locate or create.\n * @param value The value to set for a `key`.\n * @returns index (always even) of where the value vas set.\n */\nfunction keyValueArraySet(keyValueArray, key, value) {\n let index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it set it.\n keyValueArray[index | 1] = value;\n }\n else {\n index = ~index;\n arrayInsert2(keyValueArray, index, key, value);\n }\n return index;\n}\n/**\n * Retrieve a `value` for a `key` (on `undefined` if not found.)\n *\n * @param keyValueArray to search.\n * @param key The key to locate.\n * @return The `value` stored at the `key` location or `undefined if not found.\n */\nfunction keyValueArrayGet(keyValueArray, key) {\n const index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it retrieve it.\n return keyValueArray[index | 1];\n }\n return undefined;\n}\n/**\n * Retrieve a `key` index value in the array or `-1` if not found.\n *\n * @param keyValueArray to search.\n * @param key The key to locate.\n * @returns index of where the key is (or should have been.)\n * - positive (even) index if key found.\n * - negative index if key not found. (`~index` (even) to get the index where it should have\n * been inserted.)\n */\nfunction keyValueArrayIndexOf(keyValueArray, key) {\n return _arrayIndexOfSorted(keyValueArray, key, 1);\n}\n/**\n * Delete a `key` (and `value`) from the `KeyValueArray`.\n *\n * @param keyValueArray to modify.\n * @param key The key to locate or delete (if exist).\n * @returns index of where the key was (or should have been.)\n * - positive (even) index if key found and deleted.\n * - negative index if key not found. (`~index` (even) to get the index where it should have\n * been.)\n */\nfunction keyValueArrayDelete(keyValueArray, key) {\n const index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it remove it.\n arraySplice(keyValueArray, index, 2);\n }\n return index;\n}\n/**\n * INTERNAL: Get an index of an `value` in a sorted `array` by grouping search by `shift`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to binary search.\n * @param value The value to look for.\n * @param shift grouping shift.\n * - `0` means look at every location\n * - `1` means only look at every other (even) location (the odd locations are to be ignored as\n * they are values.)\n * @returns index of the value.\n * - positive index if value found.\n * - negative index if value not found. (`~index` to get the value where it should have been\n * inserted)\n */\nfunction _arrayIndexOfSorted(array, value, shift) {\n ngDevMode && assertEqual(Array.isArray(array), true, 'Expecting an array');\n let start = 0;\n let end = array.length >> shift;\n while (end !== start) {\n const middle = start + ((end - start) >> 1); // find the middle.\n const current = array[middle << shift];\n if (value === current) {\n return middle << shift;\n }\n else if (current > value) {\n end = middle;\n }\n else {\n start = middle + 1; // We already searched middle so make it non-inclusive by adding 1\n }\n }\n return ~(end << shift);\n}\n\n/**\n * This file contains reuseable \"empty\" symbols that can be used as default return values\n * in different parts of the rendering code. Because the same symbols are returned, this\n * allows for identity checks against these values to be consistently used by the framework\n * code.\n */\nconst EMPTY_OBJ = {};\nconst EMPTY_ARRAY = [];\n// freezing the values prevents any code from accidentally inserting new values in\nif ((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode()) {\n // These property accesses can be ignored because ngDevMode will be set to false\n // when optimizing code and the whole if statement will be dropped.\n // tslint:disable-next-line:no-toplevel-property-access\n Object.freeze(EMPTY_OBJ);\n // tslint:disable-next-line:no-toplevel-property-access\n Object.freeze(EMPTY_ARRAY);\n}\n\n/**\n * A multi-provider token for initialization functions that will run upon construction of an\n * environment injector.\n *\n * @deprecated from v19.0.0, use provideEnvironmentInitializer instead\n *\n * @see {@link provideEnvironmentInitializer}\n *\n * Note: As opposed to the `APP_INITIALIZER` token, the `ENVIRONMENT_INITIALIZER` functions are not awaited,\n * hence they should not be `async`.\n *\n * @publicApi\n */\nconst ENVIRONMENT_INITIALIZER = new InjectionToken(ngDevMode ? 'ENVIRONMENT_INITIALIZER' : '');\n\n/**\n * An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors.\n *\n * Requesting this token instead of `Injector` allows `StaticInjector` to be tree-shaken from a\n * project.\n *\n * @publicApi\n */\nconst INJECTOR$1 = new InjectionToken(ngDevMode ? 'INJECTOR' : '', \n// Disable tslint because this is const enum which gets inlined not top level prop access.\n// tslint:disable-next-line: no-toplevel-property-access\n-1 /* InjectorMarkers.Injector */);\n\nconst INJECTOR_DEF_TYPES = new InjectionToken(ngDevMode ? 'INJECTOR_DEF_TYPES' : '');\n\nclass NullInjector {\n get(token, notFoundValue = THROW_IF_NOT_FOUND) {\n if (notFoundValue === THROW_IF_NOT_FOUND) {\n const error = new Error(`NullInjectorError: No provider for ${stringify(token)}!`);\n error.name = 'NullInjectorError';\n throw error;\n }\n return notFoundValue;\n }\n}\n\nfunction getNgModuleDef(type, throwNotFound) {\n const ngModuleDef = type[NG_MOD_DEF] || null;\n if (!ngModuleDef && throwNotFound === true) {\n throw new Error(`Type ${stringify(type)} does not have 'ɵmod' property.`);\n }\n return ngModuleDef;\n}\n/**\n * The following getter methods retrieve the definition from the type. Currently the retrieval\n * honors inheritance, but in the future we may change the rule to require that definitions are\n * explicit. This would require some sort of migration strategy.\n */\nfunction getComponentDef(type) {\n return type[NG_COMP_DEF] || null;\n}\nfunction getDirectiveDef(type) {\n return type[NG_DIR_DEF] || null;\n}\nfunction getPipeDef$1(type) {\n return type[NG_PIPE_DEF] || null;\n}\n/**\n * Checks whether a given Component, Directive or Pipe is marked as standalone.\n * This will return false if passed anything other than a Component, Directive, or Pipe class\n * See [this guide](guide/components/importing) for additional information:\n *\n * @param type A reference to a Component, Directive or Pipe.\n * @publicApi\n */\nfunction isStandalone(type) {\n const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);\n return def !== null && def.standalone;\n}\n\n/**\n * Wrap an array of `Provider`s into `EnvironmentProviders`, preventing them from being accidentally\n * referenced in `@Component` in a component injector.\n */\nfunction makeEnvironmentProviders(providers) {\n return {\n ɵproviders: providers,\n };\n}\n/**\n * @description\n * This function is used to provide initialization functions that will be executed upon construction\n * of an environment injector.\n *\n * Note that the provided initializer is run in the injection context.\n *\n * Previously, this was achieved using the `ENVIRONMENT_INITIALIZER` token which is now deprecated.\n *\n * @see {@link ENVIRONMENT_INITIALIZER}\n *\n * @usageNotes\n * The following example illustrates how to configure an initialization function using\n * `provideEnvironmentInitializer()`\n * ```ts\n * createEnvironmentInjector(\n * [\n * provideEnvironmentInitializer(() => {\n * console.log('environment initialized');\n * }),\n * ],\n * parentInjector\n * );\n * ```\n *\n * @publicApi\n */\nfunction provideEnvironmentInitializer(initializerFn) {\n return makeEnvironmentProviders([\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useValue: initializerFn,\n },\n ]);\n}\n/**\n * Collects providers from all NgModules and standalone components, including transitively imported\n * ones.\n *\n * Providers extracted via `importProvidersFrom` are only usable in an application injector or\n * another environment injector (such as a route injector). They should not be used in component\n * providers.\n *\n * More information about standalone components can be found in [this\n * guide](guide/components/importing).\n *\n * @usageNotes\n * The results of the `importProvidersFrom` call can be used in the `bootstrapApplication` call:\n *\n * ```ts\n * await bootstrapApplication(RootComponent, {\n * providers: [\n * importProvidersFrom(NgModuleOne, NgModuleTwo)\n * ]\n * });\n * ```\n *\n * You can also use the `importProvidersFrom` results in the `providers` field of a route, when a\n * standalone component is used:\n *\n * ```ts\n * export const ROUTES: Route[] = [\n * {\n * path: 'foo',\n * providers: [\n * importProvidersFrom(NgModuleOne, NgModuleTwo)\n * ],\n * component: YourStandaloneComponent\n * }\n * ];\n * ```\n *\n * @returns Collected providers from the specified list of types.\n * @publicApi\n */\nfunction importProvidersFrom(...sources) {\n return {\n ɵproviders: internalImportProvidersFrom(true, sources),\n ɵfromNgModule: true,\n };\n}\nfunction internalImportProvidersFrom(checkForStandaloneCmp, ...sources) {\n const providersOut = [];\n const dedup = new Set(); // already seen types\n let injectorTypesWithProviders;\n const collectProviders = (provider) => {\n providersOut.push(provider);\n };\n deepForEach(sources, (source) => {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && checkForStandaloneCmp) {\n const cmpDef = getComponentDef(source);\n if (cmpDef?.standalone) {\n throw new RuntimeError(800 /* RuntimeErrorCode.IMPORT_PROVIDERS_FROM_STANDALONE */, `Importing providers supports NgModule or ModuleWithProviders but got a standalone component \"${stringifyForError(source)}\"`);\n }\n }\n // Narrow `source` to access the internal type analogue for `ModuleWithProviders`.\n const internalSource = source;\n if (walkProviderTree(internalSource, collectProviders, [], dedup)) {\n injectorTypesWithProviders ||= [];\n injectorTypesWithProviders.push(internalSource);\n }\n });\n // Collect all providers from `ModuleWithProviders` types.\n if (injectorTypesWithProviders !== undefined) {\n processInjectorTypesWithProviders(injectorTypesWithProviders, collectProviders);\n }\n return providersOut;\n}\n/**\n * Collects all providers from the list of `ModuleWithProviders` and appends them to the provided\n * array.\n */\nfunction processInjectorTypesWithProviders(typesWithProviders, visitor) {\n for (let i = 0; i < typesWithProviders.length; i++) {\n const { ngModule, providers } = typesWithProviders[i];\n deepForEachProvider(providers, (provider) => {\n ngDevMode && validateProvider(provider, providers || EMPTY_ARRAY, ngModule);\n visitor(provider, ngModule);\n });\n }\n}\n/**\n * The logic visits an `InjectorType`, an `InjectorTypeWithProviders`, or a standalone\n * `ComponentType`, and all of its transitive providers and collects providers.\n *\n * If an `InjectorTypeWithProviders` that declares providers besides the type is specified,\n * the function will return \"true\" to indicate that the providers of the type definition need\n * to be processed. This allows us to process providers of injector types after all imports of\n * an injector definition are processed. (following View Engine semantics: see FW-1349)\n */\nfunction walkProviderTree(container, visitor, parents, dedup) {\n container = resolveForwardRef(container);\n if (!container)\n return false;\n // The actual type which had the definition. Usually `container`, but may be an unwrapped type\n // from `InjectorTypeWithProviders`.\n let defType = null;\n let injDef = getInjectorDef(container);\n const cmpDef = !injDef && getComponentDef(container);\n if (!injDef && !cmpDef) {\n // `container` is not an injector type or a component type. It might be:\n // * An `InjectorTypeWithProviders` that wraps an injector type.\n // * A standalone directive or pipe that got pulled in from a standalone component's\n // dependencies.\n // Try to unwrap it as an `InjectorTypeWithProviders` first.\n const ngModule = container\n .ngModule;\n injDef = getInjectorDef(ngModule);\n if (injDef) {\n defType = ngModule;\n }\n else {\n // Not a component or injector type, so ignore it.\n return false;\n }\n }\n else if (cmpDef && !cmpDef.standalone) {\n return false;\n }\n else {\n defType = container;\n }\n // Check for circular dependencies.\n if (ngDevMode && parents.indexOf(defType) !== -1) {\n const defName = stringify(defType);\n const path = parents.map(stringify);\n throwCyclicDependencyError(defName, path);\n }\n // Check for multiple imports of the same module\n const isDuplicate = dedup.has(defType);\n if (cmpDef) {\n if (isDuplicate) {\n // This component definition has already been processed.\n return false;\n }\n dedup.add(defType);\n if (cmpDef.dependencies) {\n const deps = typeof cmpDef.dependencies === 'function' ? cmpDef.dependencies() : cmpDef.dependencies;\n for (const dep of deps) {\n walkProviderTree(dep, visitor, parents, dedup);\n }\n }\n }\n else if (injDef) {\n // First, include providers from any imports.\n if (injDef.imports != null && !isDuplicate) {\n // Before processing defType's imports, add it to the set of parents. This way, if it ends\n // up deeply importing itself, this can be detected.\n ngDevMode && parents.push(defType);\n // Add it to the set of dedups. This way we can detect multiple imports of the same module\n dedup.add(defType);\n let importTypesWithProviders;\n try {\n deepForEach(injDef.imports, (imported) => {\n if (walkProviderTree(imported, visitor, parents, dedup)) {\n importTypesWithProviders ||= [];\n // If the processed import is an injector type with providers, we store it in the\n // list of import types with providers, so that we can process those afterwards.\n importTypesWithProviders.push(imported);\n }\n });\n }\n finally {\n // Remove it from the parents set when finished.\n ngDevMode && parents.pop();\n }\n // Imports which are declared with providers (TypeWithProviders) need to be processed\n // after all imported modules are processed. This is similar to how View Engine\n // processes/merges module imports in the metadata resolver. See: FW-1349.\n if (importTypesWithProviders !== undefined) {\n processInjectorTypesWithProviders(importTypesWithProviders, visitor);\n }\n }\n if (!isDuplicate) {\n // Track the InjectorType and add a provider for it.\n // It's important that this is done after the def's imports.\n const factory = getFactoryDef(defType) || (() => new defType());\n // Append extra providers to make more info available for consumers (to retrieve an injector\n // type), as well as internally (to calculate an injection scope correctly and eagerly\n // instantiate a `defType` when an injector is created).\n // Provider to create `defType` using its factory.\n visitor({ provide: defType, useFactory: factory, deps: EMPTY_ARRAY }, defType);\n // Make this `defType` available to an internal logic that calculates injector scope.\n visitor({ provide: INJECTOR_DEF_TYPES, useValue: defType, multi: true }, defType);\n // Provider to eagerly instantiate `defType` via `INJECTOR_INITIALIZER`.\n visitor({ provide: ENVIRONMENT_INITIALIZER, useValue: () => ɵɵinject(defType), multi: true }, defType);\n }\n // Next, include providers listed on the definition itself.\n const defProviders = injDef.providers;\n if (defProviders != null && !isDuplicate) {\n const injectorType = container;\n deepForEachProvider(defProviders, (provider) => {\n ngDevMode && validateProvider(provider, defProviders, injectorType);\n visitor(provider, injectorType);\n });\n }\n }\n else {\n // Should not happen, but just in case.\n return false;\n }\n return (defType !== container && container.providers !== undefined);\n}\nfunction validateProvider(provider, providers, containerType) {\n if (isTypeProvider(provider) ||\n isValueProvider(provider) ||\n isFactoryProvider(provider) ||\n isExistingProvider(provider)) {\n return;\n }\n // Here we expect the provider to be a `useClass` provider (by elimination).\n const classRef = resolveForwardRef(provider && (provider.useClass || provider.provide));\n if (!classRef) {\n throwInvalidProviderError(containerType, providers, provider);\n }\n}\nfunction deepForEachProvider(providers, fn) {\n for (let provider of providers) {\n if (isEnvironmentProviders(provider)) {\n provider = provider.ɵproviders;\n }\n if (Array.isArray(provider)) {\n deepForEachProvider(provider, fn);\n }\n else {\n fn(provider);\n }\n }\n}\nconst USE_VALUE$1 = getClosureSafeProperty({\n provide: String,\n useValue: getClosureSafeProperty,\n});\nfunction isValueProvider(value) {\n return value !== null && typeof value == 'object' && USE_VALUE$1 in value;\n}\nfunction isExistingProvider(value) {\n return !!(value && value.useExisting);\n}\nfunction isFactoryProvider(value) {\n return !!(value && value.useFactory);\n}\nfunction isTypeProvider(value) {\n return typeof value === 'function';\n}\nfunction isClassProvider(value) {\n return !!value.useClass;\n}\n\n/**\n * An internal token whose presence in an injector indicates that the injector should treat itself\n * as a root scoped injector when processing requests for unknown tokens which may indicate\n * they are provided in the root scope.\n */\nconst INJECTOR_SCOPE = new InjectionToken(ngDevMode ? 'Set Injector scope.' : '');\n\n/**\n * Marker which indicates that a value has not yet been created from the factory function.\n */\nconst NOT_YET = {};\n/**\n * Marker which indicates that the factory function for a token is in the process of being called.\n *\n * If the injector is asked to inject a token with its value set to CIRCULAR, that indicates\n * injection of a dependency has recursively attempted to inject the original token, and there is\n * a circular dependency among the providers.\n */\nconst CIRCULAR = {};\n/**\n * A lazily initialized NullInjector.\n */\nlet NULL_INJECTOR = undefined;\nfunction getNullInjector() {\n if (NULL_INJECTOR === undefined) {\n NULL_INJECTOR = new NullInjector();\n }\n return NULL_INJECTOR;\n}\n/**\n * An `Injector` that's part of the environment injector hierarchy, which exists outside of the\n * component tree.\n */\nclass EnvironmentInjector {\n}\nclass R3Injector extends EnvironmentInjector {\n parent;\n source;\n scopes;\n /**\n * Map of tokens to records which contain the instances of those tokens.\n * - `null` value implies that we don't have the record. Used by tree-shakable injectors\n * to prevent further searches.\n */\n records = new Map();\n /**\n * Set of values instantiated by this injector which contain `ngOnDestroy` lifecycle hooks.\n */\n _ngOnDestroyHooks = new Set();\n _onDestroyHooks = [];\n /**\n * Flag indicating that this injector was previously destroyed.\n */\n get destroyed() {\n return this._destroyed;\n }\n _destroyed = false;\n injectorDefTypes;\n constructor(providers, parent, source, scopes) {\n super();\n this.parent = parent;\n this.source = source;\n this.scopes = scopes;\n // Start off by creating Records for every provider.\n forEachSingleProvider(providers, (provider) => this.processProvider(provider));\n // Make sure the INJECTOR token provides this injector.\n this.records.set(INJECTOR$1, makeRecord(undefined, this));\n // And `EnvironmentInjector` if the current injector is supposed to be env-scoped.\n if (scopes.has('environment')) {\n this.records.set(EnvironmentInjector, makeRecord(undefined, this));\n }\n // Detect whether this injector has the APP_ROOT_SCOPE token and thus should provide\n // any injectable scoped to APP_ROOT_SCOPE.\n const record = this.records.get(INJECTOR_SCOPE);\n if (record != null && typeof record.value === 'string') {\n this.scopes.add(record.value);\n }\n this.injectorDefTypes = new Set(this.get(INJECTOR_DEF_TYPES, EMPTY_ARRAY, InjectFlags.Self));\n }\n /**\n * Destroy the injector and release references to every instance or provider associated with it.\n *\n * Also calls the `OnDestroy` lifecycle hooks of every instance that was created for which a\n * hook was found.\n */\n destroy() {\n assertNotDestroyed(this);\n // Set destroyed = true first, in case lifecycle hooks re-enter destroy().\n this._destroyed = true;\n const prevConsumer = setActiveConsumer$1(null);\n try {\n // Call all the lifecycle hooks.\n for (const service of this._ngOnDestroyHooks) {\n service.ngOnDestroy();\n }\n const onDestroyHooks = this._onDestroyHooks;\n // Reset the _onDestroyHooks array before iterating over it to prevent hooks that unregister\n // themselves from mutating the array during iteration.\n this._onDestroyHooks = [];\n for (const hook of onDestroyHooks) {\n hook();\n }\n }\n finally {\n // Release all references.\n this.records.clear();\n this._ngOnDestroyHooks.clear();\n this.injectorDefTypes.clear();\n setActiveConsumer$1(prevConsumer);\n }\n }\n onDestroy(callback) {\n assertNotDestroyed(this);\n this._onDestroyHooks.push(callback);\n return () => this.removeOnDestroy(callback);\n }\n runInContext(fn) {\n assertNotDestroyed(this);\n const previousInjector = setCurrentInjector(this);\n const previousInjectImplementation = setInjectImplementation(undefined);\n let prevInjectContext;\n if (ngDevMode) {\n prevInjectContext = setInjectorProfilerContext({ injector: this, token: null });\n }\n try {\n return fn();\n }\n finally {\n setCurrentInjector(previousInjector);\n setInjectImplementation(previousInjectImplementation);\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n }\n }\n get(token, notFoundValue = THROW_IF_NOT_FOUND, flags = InjectFlags.Default) {\n assertNotDestroyed(this);\n if (token.hasOwnProperty(NG_ENV_ID)) {\n return token[NG_ENV_ID](this);\n }\n flags = convertToBitFlags(flags);\n // Set the injection context.\n let prevInjectContext;\n if (ngDevMode) {\n prevInjectContext = setInjectorProfilerContext({ injector: this, token: token });\n }\n const previousInjector = setCurrentInjector(this);\n const previousInjectImplementation = setInjectImplementation(undefined);\n try {\n // Check for the SkipSelf flag.\n if (!(flags & InjectFlags.SkipSelf)) {\n // SkipSelf isn't set, check if the record belongs to this injector.\n let record = this.records.get(token);\n if (record === undefined) {\n // No record, but maybe the token is scoped to this injector. Look for an injectable\n // def with a scope matching this injector.\n const def = couldBeInjectableType(token) && getInjectableDef(token);\n if (def && this.injectableDefInScope(def)) {\n // Found an injectable def and it's scoped to this injector. Pretend as if it was here\n // all along.\n if (ngDevMode) {\n runInInjectorProfilerContext(this, token, () => {\n emitProviderConfiguredEvent(token);\n });\n }\n record = makeRecord(injectableDefOrInjectorDefFactory(token), NOT_YET);\n }\n else {\n record = null;\n }\n this.records.set(token, record);\n }\n // If a record was found, get the instance for it and return it.\n if (record != null /* NOT null || undefined */) {\n return this.hydrate(token, record);\n }\n }\n // Select the next injector based on the Self flag - if self is set, the next injector is\n // the NullInjector, otherwise it's the parent.\n const nextInjector = !(flags & InjectFlags.Self) ? this.parent : getNullInjector();\n // Set the notFoundValue based on the Optional flag - if optional is set and notFoundValue\n // is undefined, the value is null, otherwise it's the notFoundValue.\n notFoundValue =\n flags & InjectFlags.Optional && notFoundValue === THROW_IF_NOT_FOUND ? null : notFoundValue;\n return nextInjector.get(token, notFoundValue);\n }\n catch (e) {\n if (e.name === 'NullInjectorError') {\n const path = (e[NG_TEMP_TOKEN_PATH] = e[NG_TEMP_TOKEN_PATH] || []);\n path.unshift(stringify(token));\n if (previousInjector) {\n // We still have a parent injector, keep throwing\n throw e;\n }\n else {\n // Format & throw the final error message when we don't have any previous injector\n return catchInjectorError(e, token, 'R3InjectorError', this.source);\n }\n }\n else {\n throw e;\n }\n }\n finally {\n // Lastly, restore the previous injection context.\n setInjectImplementation(previousInjectImplementation);\n setCurrentInjector(previousInjector);\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n }\n }\n /** @internal */\n resolveInjectorInitializers() {\n const prevConsumer = setActiveConsumer$1(null);\n const previousInjector = setCurrentInjector(this);\n const previousInjectImplementation = setInjectImplementation(undefined);\n let prevInjectContext;\n if (ngDevMode) {\n prevInjectContext = setInjectorProfilerContext({ injector: this, token: null });\n }\n try {\n const initializers = this.get(ENVIRONMENT_INITIALIZER, EMPTY_ARRAY, InjectFlags.Self);\n if (ngDevMode && !Array.isArray(initializers)) {\n throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' +\n `(expected an array, but got ${typeof initializers}). ` +\n 'Please check that the `ENVIRONMENT_INITIALIZER` token is configured as a ' +\n '`multi: true` provider.');\n }\n for (const initializer of initializers) {\n initializer();\n }\n }\n finally {\n setCurrentInjector(previousInjector);\n setInjectImplementation(previousInjectImplementation);\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n setActiveConsumer$1(prevConsumer);\n }\n }\n toString() {\n const tokens = [];\n const records = this.records;\n for (const token of records.keys()) {\n tokens.push(stringify(token));\n }\n return `R3Injector[${tokens.join(', ')}]`;\n }\n /**\n * Process a `SingleProvider` and add it.\n */\n processProvider(provider) {\n // Determine the token from the provider. Either it's its own token, or has a {provide: ...}\n // property.\n provider = resolveForwardRef(provider);\n let token = isTypeProvider(provider)\n ? provider\n : resolveForwardRef(provider && provider.provide);\n // Construct a `Record` for the provider.\n const record = providerToRecord(provider);\n if (ngDevMode) {\n runInInjectorProfilerContext(this, token, () => {\n // Emit InjectorProfilerEventType.Create if provider is a value provider because\n // these are the only providers that do not go through the value hydration logic\n // where this event would normally be emitted from.\n if (isValueProvider(provider)) {\n emitInstanceCreatedByInjectorEvent(provider.useValue);\n }\n emitProviderConfiguredEvent(provider);\n });\n }\n if (!isTypeProvider(provider) && provider.multi === true) {\n // If the provider indicates that it's a multi-provider, process it specially.\n // First check whether it's been defined already.\n let multiRecord = this.records.get(token);\n if (multiRecord) {\n // It has. Throw a nice error if\n if (ngDevMode && multiRecord.multi === undefined) {\n throwMixedMultiProviderError();\n }\n }\n else {\n multiRecord = makeRecord(undefined, NOT_YET, true);\n multiRecord.factory = () => injectArgs(multiRecord.multi);\n this.records.set(token, multiRecord);\n }\n token = provider;\n multiRecord.multi.push(provider);\n }\n else {\n if (ngDevMode) {\n const existing = this.records.get(token);\n if (existing && existing.multi !== undefined) {\n throwMixedMultiProviderError();\n }\n }\n }\n this.records.set(token, record);\n }\n hydrate(token, record) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n if (ngDevMode && record.value === CIRCULAR) {\n throwCyclicDependencyError(stringify(token));\n }\n else if (record.value === NOT_YET) {\n record.value = CIRCULAR;\n if (ngDevMode) {\n runInInjectorProfilerContext(this, token, () => {\n record.value = record.factory();\n emitInstanceCreatedByInjectorEvent(record.value);\n });\n }\n else {\n record.value = record.factory();\n }\n }\n if (typeof record.value === 'object' && record.value && hasOnDestroy(record.value)) {\n this._ngOnDestroyHooks.add(record.value);\n }\n return record.value;\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n injectableDefInScope(def) {\n if (!def.providedIn) {\n return false;\n }\n const providedIn = resolveForwardRef(def.providedIn);\n if (typeof providedIn === 'string') {\n return providedIn === 'any' || this.scopes.has(providedIn);\n }\n else {\n return this.injectorDefTypes.has(providedIn);\n }\n }\n removeOnDestroy(callback) {\n const destroyCBIdx = this._onDestroyHooks.indexOf(callback);\n if (destroyCBIdx !== -1) {\n this._onDestroyHooks.splice(destroyCBIdx, 1);\n }\n }\n}\nfunction injectableDefOrInjectorDefFactory(token) {\n // Most tokens will have an injectable def directly on them, which specifies a factory directly.\n const injectableDef = getInjectableDef(token);\n const factory = injectableDef !== null ? injectableDef.factory : getFactoryDef(token);\n if (factory !== null) {\n return factory;\n }\n // InjectionTokens should have an injectable def (ɵprov) and thus should be handled above.\n // If it's missing that, it's an error.\n if (token instanceof InjectionToken) {\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Token ${stringify(token)} is missing a ɵprov definition.`);\n }\n // Undecorated types can sometimes be created if they have no constructor arguments.\n if (token instanceof Function) {\n return getUndecoratedInjectableFactory(token);\n }\n // There was no way to resolve a factory for this token.\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && 'unreachable');\n}\nfunction getUndecoratedInjectableFactory(token) {\n // If the token has parameters then it has dependencies that we cannot resolve implicitly.\n const paramLength = token.length;\n if (paramLength > 0) {\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode &&\n `Can't resolve all parameters for ${stringify(token)}: (${newArray(paramLength, '?').join(', ')}).`);\n }\n // The constructor function appears to have no parameters.\n // This might be because it inherits from a super-class. In which case, use an injectable\n // def from an ancestor if there is one.\n // Otherwise this really is a simple class with no dependencies, so return a factory that\n // just instantiates the zero-arg constructor.\n const inheritedInjectableDef = getInheritedInjectableDef(token);\n if (inheritedInjectableDef !== null) {\n return () => inheritedInjectableDef.factory(token);\n }\n else {\n return () => new token();\n }\n}\nfunction providerToRecord(provider) {\n if (isValueProvider(provider)) {\n return makeRecord(undefined, provider.useValue);\n }\n else {\n const factory = providerToFactory(provider);\n return makeRecord(factory, NOT_YET);\n }\n}\n/**\n * Converts a `SingleProvider` into a factory function.\n *\n * @param provider provider to convert to factory\n */\nfunction providerToFactory(provider, ngModuleType, providers) {\n let factory = undefined;\n if (ngDevMode && isEnvironmentProviders(provider)) {\n throwInvalidProviderError(undefined, providers, provider);\n }\n if (isTypeProvider(provider)) {\n const unwrappedProvider = resolveForwardRef(provider);\n return getFactoryDef(unwrappedProvider) || injectableDefOrInjectorDefFactory(unwrappedProvider);\n }\n else {\n if (isValueProvider(provider)) {\n factory = () => resolveForwardRef(provider.useValue);\n }\n else if (isFactoryProvider(provider)) {\n factory = () => provider.useFactory(...injectArgs(provider.deps || []));\n }\n else if (isExistingProvider(provider)) {\n factory = () => ɵɵinject(resolveForwardRef(provider.useExisting));\n }\n else {\n const classRef = resolveForwardRef(provider &&\n (provider.useClass || provider.provide));\n if (ngDevMode && !classRef) {\n throwInvalidProviderError(ngModuleType, providers, provider);\n }\n if (hasDeps(provider)) {\n factory = () => new classRef(...injectArgs(provider.deps));\n }\n else {\n return getFactoryDef(classRef) || injectableDefOrInjectorDefFactory(classRef);\n }\n }\n }\n return factory;\n}\nfunction assertNotDestroyed(injector) {\n if (injector.destroyed) {\n throw new RuntimeError(205 /* RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED */, ngDevMode && 'Injector has already been destroyed.');\n }\n}\nfunction makeRecord(factory, value, multi = false) {\n return {\n factory: factory,\n value: value,\n multi: multi ? [] : undefined,\n };\n}\nfunction hasDeps(value) {\n return !!value.deps;\n}\nfunction hasOnDestroy(value) {\n return (value !== null &&\n typeof value === 'object' &&\n typeof value.ngOnDestroy === 'function');\n}\nfunction couldBeInjectableType(value) {\n return (typeof value === 'function' || (typeof value === 'object' && value instanceof InjectionToken));\n}\nfunction forEachSingleProvider(providers, fn) {\n for (const provider of providers) {\n if (Array.isArray(provider)) {\n forEachSingleProvider(provider, fn);\n }\n else if (provider && isEnvironmentProviders(provider)) {\n forEachSingleProvider(provider.ɵproviders, fn);\n }\n else {\n fn(provider);\n }\n }\n}\n\n/**\n * Runs the given function in the [context](guide/di/dependency-injection-context) of the given\n * `Injector`.\n *\n * Within the function's stack frame, [`inject`](api/core/inject) can be used to inject dependencies\n * from the given `Injector`. Note that `inject` is only usable synchronously, and cannot be used in\n * any asynchronous callbacks or after any `await` points.\n *\n * @param injector the injector which will satisfy calls to [`inject`](api/core/inject) while `fn`\n * is executing\n * @param fn the closure to be run in the context of `injector`\n * @returns the return value of the function, if any\n * @publicApi\n */\nfunction runInInjectionContext(injector, fn) {\n if (injector instanceof R3Injector) {\n assertNotDestroyed(injector);\n }\n let prevInjectorProfilerContext;\n if (ngDevMode) {\n prevInjectorProfilerContext = setInjectorProfilerContext({ injector, token: null });\n }\n const prevInjector = setCurrentInjector(injector);\n const previousInjectImplementation = setInjectImplementation(undefined);\n try {\n return fn();\n }\n finally {\n setCurrentInjector(prevInjector);\n ngDevMode && setInjectorProfilerContext(prevInjectorProfilerContext);\n setInjectImplementation(previousInjectImplementation);\n }\n}\n/**\n * Whether the current stack frame is inside an injection context.\n */\nfunction isInInjectionContext() {\n return getInjectImplementation() !== undefined || getCurrentInjector() != null;\n}\n/**\n * Asserts that the current stack frame is within an [injection\n * context](guide/di/dependency-injection-context) and has access to `inject`.\n *\n * @param debugFn a reference to the function making the assertion (used for the error message).\n *\n * @publicApi\n */\nfunction assertInInjectionContext(debugFn) {\n // Taking a `Function` instead of a string name here prevents the unminified name of the function\n // from being retained in the bundle regardless of minification.\n if (!isInInjectionContext()) {\n throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode &&\n debugFn.name +\n '() can only be used within an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`');\n }\n}\n\nvar FactoryTarget;\n(function (FactoryTarget) {\n FactoryTarget[FactoryTarget[\"Directive\"] = 0] = \"Directive\";\n FactoryTarget[FactoryTarget[\"Component\"] = 1] = \"Component\";\n FactoryTarget[FactoryTarget[\"Injectable\"] = 2] = \"Injectable\";\n FactoryTarget[FactoryTarget[\"Pipe\"] = 3] = \"Pipe\";\n FactoryTarget[FactoryTarget[\"NgModule\"] = 4] = \"NgModule\";\n})(FactoryTarget || (FactoryTarget = {}));\nvar R3TemplateDependencyKind;\n(function (R3TemplateDependencyKind) {\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"Directive\"] = 0] = \"Directive\";\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"Pipe\"] = 1] = \"Pipe\";\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"NgModule\"] = 2] = \"NgModule\";\n})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));\nvar ViewEncapsulation$1;\n(function (ViewEncapsulation) {\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n ViewEncapsulation[ViewEncapsulation[\"ShadowDom\"] = 3] = \"ShadowDom\";\n})(ViewEncapsulation$1 || (ViewEncapsulation$1 = {}));\n\nfunction getCompilerFacade(request) {\n const globalNg = _global['ng'];\n if (globalNg && globalNg.ɵcompilerFacade) {\n return globalNg.ɵcompilerFacade;\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Log the type as an error so that a developer can easily navigate to the type from the\n // console.\n console.error(`JIT compilation failed for ${request.kind}`, request.type);\n let message = `The ${request.kind} '${request.type.name}' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.\\n\\n`;\n if (request.usage === 1 /* JitCompilerUsage.PartialDeclaration */) {\n message += `The ${request.kind} is part of a library that has been partially compiled.\\n`;\n message += `However, the Angular Linker has not processed the library such that JIT compilation is used as fallback.\\n`;\n message += '\\n';\n message += `Ideally, the library is processed using the Angular Linker to become fully AOT compiled.\\n`;\n }\n else {\n message += `JIT compilation is discouraged for production use-cases! Consider using AOT mode instead.\\n`;\n }\n message += `Alternatively, the JIT compiler should be loaded by bootstrapping using '@angular/platform-browser-dynamic' or '@angular/platform-server',\\n`;\n message += `or manually provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.`;\n throw new Error(message);\n }\n else {\n throw new Error('JIT compiler unavailable');\n }\n}\n\n/**\n * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.\n *\n * This should be kept up to date with the public exports of @angular/core.\n */\nconst angularCoreDiEnv = {\n 'ɵɵdefineInjectable': ɵɵdefineInjectable,\n 'ɵɵdefineInjector': ɵɵdefineInjector,\n 'ɵɵinject': ɵɵinject,\n 'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,\n 'resolveForwardRef': resolveForwardRef,\n};\n\n/**\n * @description\n *\n * Represents a type that a Component or other object is instances of.\n *\n * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is represented by\n * the `MyCustomComponent` constructor function.\n *\n * @publicApi\n */\nconst Type = Function;\nfunction isType(v) {\n return typeof v === 'function';\n}\n\n/*\n * #########################\n * Attention: These Regular expressions have to hold even if the code is minified!\n * ##########################\n */\n/**\n * Regular expression that detects pass-through constructors for ES5 output. This Regex\n * intends to capture the common delegation pattern emitted by TypeScript and Babel. Also\n * it intends to capture the pattern where existing constructors have been downleveled from\n * ES2015 to ES5 using TypeScript w/ downlevel iteration. e.g.\n *\n * ```ts\n * function MyClass() {\n * var _this = _super.apply(this, arguments) || this;\n * ```\n *\n * downleveled to ES5 with `downlevelIteration` for TypeScript < 4.2:\n * ```ts\n * function MyClass() {\n * var _this = _super.apply(this, __spread(arguments)) || this;\n * ```\n *\n * or downleveled to ES5 with `downlevelIteration` for TypeScript >= 4.2:\n * ```ts\n * function MyClass() {\n * var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;\n * ```\n *\n * More details can be found in: https://github.com/angular/angular/issues/38453.\n */\nconst ES5_DELEGATE_CTOR = /^function\\s+\\S+\\(\\)\\s*{[\\s\\S]+\\.apply\\(this,\\s*(arguments|(?:[^()]+\\(\\[\\],)?[^()]+\\(arguments\\).*)\\)/;\n/** Regular expression that detects ES2015 classes which extend from other classes. */\nconst ES2015_INHERITED_CLASS = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{/;\n/**\n * Regular expression that detects ES2015 classes which extend from other classes and\n * have an explicit constructor defined.\n */\nconst ES2015_INHERITED_CLASS_WITH_CTOR = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{[\\s\\S]*constructor\\s*\\(/;\n/**\n * Regular expression that detects ES2015 classes which extend from other classes\n * and inherit a constructor.\n */\nconst ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{[\\s\\S]*constructor\\s*\\(\\)\\s*{[^}]*super\\(\\.\\.\\.arguments\\)/;\n/**\n * Determine whether a stringified type is a class which delegates its constructor\n * to its parent.\n *\n * This is not trivial since compiled code can actually contain a constructor function\n * even if the original source code did not. For instance, when the child class contains\n * an initialized instance property.\n */\nfunction isDelegateCtor(typeStr) {\n return (ES5_DELEGATE_CTOR.test(typeStr) ||\n ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR.test(typeStr) ||\n (ES2015_INHERITED_CLASS.test(typeStr) && !ES2015_INHERITED_CLASS_WITH_CTOR.test(typeStr)));\n}\nclass ReflectionCapabilities {\n _reflect;\n constructor(reflect) {\n this._reflect = reflect || _global['Reflect'];\n }\n factory(t) {\n return (...args) => new t(...args);\n }\n /** @internal */\n _zipTypesAndAnnotations(paramTypes, paramAnnotations) {\n let result;\n if (typeof paramTypes === 'undefined') {\n result = newArray(paramAnnotations.length);\n }\n else {\n result = newArray(paramTypes.length);\n }\n for (let i = 0; i < result.length; i++) {\n // TS outputs Object for parameters without types, while Traceur omits\n // the annotations. For now we preserve the Traceur behavior to aid\n // migration, but this can be revisited.\n if (typeof paramTypes === 'undefined') {\n result[i] = [];\n }\n else if (paramTypes[i] && paramTypes[i] != Object) {\n result[i] = [paramTypes[i]];\n }\n else {\n result[i] = [];\n }\n if (paramAnnotations && paramAnnotations[i] != null) {\n result[i] = result[i].concat(paramAnnotations[i]);\n }\n }\n return result;\n }\n _ownParameters(type, parentCtor) {\n const typeStr = type.toString();\n // If we have no decorators, we only have function.length as metadata.\n // In that case, to detect whether a child class declared an own constructor or not,\n // we need to look inside of that constructor to check whether it is\n // just calling the parent.\n // This also helps to work around for https://github.com/Microsoft/TypeScript/issues/12439\n // that sets 'design:paramtypes' to []\n // if a class inherits from another class but has no ctor declared itself.\n if (isDelegateCtor(typeStr)) {\n return null;\n }\n // Prefer the direct API.\n if (type.parameters && type.parameters !== parentCtor.parameters) {\n return type.parameters;\n }\n // API of tsickle for lowering decorators to properties on the class.\n const tsickleCtorParams = type.ctorParameters;\n if (tsickleCtorParams && tsickleCtorParams !== parentCtor.ctorParameters) {\n // Newer tsickle uses a function closure\n // Retain the non-function case for compatibility with older tsickle\n const ctorParameters = typeof tsickleCtorParams === 'function' ? tsickleCtorParams() : tsickleCtorParams;\n const paramTypes = ctorParameters.map((ctorParam) => ctorParam && ctorParam.type);\n const paramAnnotations = ctorParameters.map((ctorParam) => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));\n return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\n }\n // API for metadata created by invoking the decorators.\n const paramAnnotations = type.hasOwnProperty(PARAMETERS) && type[PARAMETERS];\n const paramTypes = this._reflect &&\n this._reflect.getOwnMetadata &&\n this._reflect.getOwnMetadata('design:paramtypes', type);\n if (paramTypes || paramAnnotations) {\n return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\n }\n // If a class has no decorators, at least create metadata\n // based on function.length.\n // Note: We know that this is a real constructor as we checked\n // the content of the constructor above.\n return newArray(type.length);\n }\n parameters(type) {\n // Note: only report metadata if we have at least one class decorator\n // to stay in sync with the static reflector.\n if (!isType(type)) {\n return [];\n }\n const parentCtor = getParentCtor(type);\n let parameters = this._ownParameters(type, parentCtor);\n if (!parameters && parentCtor !== Object) {\n parameters = this.parameters(parentCtor);\n }\n return parameters || [];\n }\n _ownAnnotations(typeOrFunc, parentCtor) {\n // Prefer the direct API.\n if (typeOrFunc.annotations && typeOrFunc.annotations !== parentCtor.annotations) {\n let annotations = typeOrFunc.annotations;\n if (typeof annotations === 'function' && annotations.annotations) {\n annotations = annotations.annotations;\n }\n return annotations;\n }\n // API of tsickle for lowering decorators to properties on the class.\n if (typeOrFunc.decorators && typeOrFunc.decorators !== parentCtor.decorators) {\n return convertTsickleDecoratorIntoMetadata(typeOrFunc.decorators);\n }\n // API for metadata created by invoking the decorators.\n if (typeOrFunc.hasOwnProperty(ANNOTATIONS)) {\n return typeOrFunc[ANNOTATIONS];\n }\n return null;\n }\n annotations(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return [];\n }\n const parentCtor = getParentCtor(typeOrFunc);\n const ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];\n const parentAnnotations = parentCtor !== Object ? this.annotations(parentCtor) : [];\n return parentAnnotations.concat(ownAnnotations);\n }\n _ownPropMetadata(typeOrFunc, parentCtor) {\n // Prefer the direct API.\n if (typeOrFunc.propMetadata &&\n typeOrFunc.propMetadata !== parentCtor.propMetadata) {\n let propMetadata = typeOrFunc.propMetadata;\n if (typeof propMetadata === 'function' && propMetadata.propMetadata) {\n propMetadata = propMetadata.propMetadata;\n }\n return propMetadata;\n }\n // API of tsickle for lowering decorators to properties on the class.\n if (typeOrFunc.propDecorators &&\n typeOrFunc.propDecorators !== parentCtor.propDecorators) {\n const propDecorators = typeOrFunc.propDecorators;\n const propMetadata = {};\n Object.keys(propDecorators).forEach((prop) => {\n propMetadata[prop] = convertTsickleDecoratorIntoMetadata(propDecorators[prop]);\n });\n return propMetadata;\n }\n // API for metadata created by invoking the decorators.\n if (typeOrFunc.hasOwnProperty(PROP_METADATA)) {\n return typeOrFunc[PROP_METADATA];\n }\n return null;\n }\n propMetadata(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return {};\n }\n const parentCtor = getParentCtor(typeOrFunc);\n const propMetadata = {};\n if (parentCtor !== Object) {\n const parentPropMetadata = this.propMetadata(parentCtor);\n Object.keys(parentPropMetadata).forEach((propName) => {\n propMetadata[propName] = parentPropMetadata[propName];\n });\n }\n const ownPropMetadata = this._ownPropMetadata(typeOrFunc, parentCtor);\n if (ownPropMetadata) {\n Object.keys(ownPropMetadata).forEach((propName) => {\n const decorators = [];\n if (propMetadata.hasOwnProperty(propName)) {\n decorators.push(...propMetadata[propName]);\n }\n decorators.push(...ownPropMetadata[propName]);\n propMetadata[propName] = decorators;\n });\n }\n return propMetadata;\n }\n ownPropMetadata(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return {};\n }\n return this._ownPropMetadata(typeOrFunc, getParentCtor(typeOrFunc)) || {};\n }\n hasLifecycleHook(type, lcProperty) {\n return type instanceof Type && lcProperty in type.prototype;\n }\n}\nfunction convertTsickleDecoratorIntoMetadata(decoratorInvocations) {\n if (!decoratorInvocations) {\n return [];\n }\n return decoratorInvocations.map((decoratorInvocation) => {\n const decoratorType = decoratorInvocation.type;\n const annotationCls = decoratorType.annotationCls;\n const annotationArgs = decoratorInvocation.args ? decoratorInvocation.args : [];\n return new annotationCls(...annotationArgs);\n });\n}\nfunction getParentCtor(ctor) {\n const parentProto = ctor.prototype ? Object.getPrototypeOf(ctor.prototype) : null;\n const parentCtor = parentProto ? parentProto.constructor : null;\n // Note: We always use `Object` as the null value\n // to simplify checking later on.\n return parentCtor || Object;\n}\n\n// Below are constants for LView indices to help us look up LView members\n// without having to remember the specific indices.\n// Uglify will inline these when minifying so there shouldn't be a cost.\nconst HOST = 0;\nconst TVIEW = 1;\n// Shared with LContainer\nconst FLAGS = 2;\nconst PARENT = 3;\nconst NEXT = 4;\nconst T_HOST = 5;\n// End shared with LContainer\nconst HYDRATION = 6;\nconst CLEANUP = 7;\nconst CONTEXT = 8;\nconst INJECTOR = 9;\nconst ENVIRONMENT = 10;\nconst RENDERER = 11;\nconst CHILD_HEAD = 12;\nconst CHILD_TAIL = 13;\n// FIXME(misko): Investigate if the three declarations aren't all same thing.\nconst DECLARATION_VIEW = 14;\nconst DECLARATION_COMPONENT_VIEW = 15;\nconst DECLARATION_LCONTAINER = 16;\nconst PREORDER_HOOK_FLAGS = 17;\nconst QUERIES = 18;\nconst ID = 19;\nconst EMBEDDED_VIEW_INJECTOR = 20;\nconst ON_DESTROY_HOOKS = 21;\nconst EFFECTS_TO_SCHEDULE = 22;\nconst EFFECTS = 23;\nconst REACTIVE_TEMPLATE_CONSUMER = 24;\n/**\n * Size of LView's header. Necessary to adjust for it when setting slots.\n *\n * IMPORTANT: `HEADER_OFFSET` should only be referred to the in the `ɵɵ*` instructions to translate\n * instruction index into `LView` index. All other indexes should be in the `LView` index space and\n * there should be no need to refer to `HEADER_OFFSET` anywhere else.\n */\nconst HEADER_OFFSET = 25;\n\n/**\n * Special location which allows easy identification of type. If we have an array which was\n * retrieved from the `LView` and that array has `true` at `TYPE` location, we know it is\n * `LContainer`.\n */\nconst TYPE = 1;\n/**\n * Below are constants for LContainer indices to help us look up LContainer members\n * without having to remember the specific indices.\n * Uglify will inline these when minifying so there shouldn't be a cost.\n */\n// FLAGS, PARENT, NEXT, and T_HOST are indices 2, 3, 4, and 5\n// As we already have these constants in LView, we don't need to re-create them.\nconst DEHYDRATED_VIEWS = 6;\nconst NATIVE = 7;\nconst VIEW_REFS = 8;\nconst MOVED_VIEWS = 9;\n/**\n * Size of LContainer's header. Represents the index after which all views in the\n * container will be inserted. We need to keep a record of current views so we know\n * which views are already in the DOM (and don't need to be re-added) and so we can\n * remove views from the DOM when they are no longer required.\n */\nconst CONTAINER_HEADER_OFFSET = 10;\n\n/**\n * True if `value` is `LView`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction isLView(value) {\n return Array.isArray(value) && typeof value[TYPE] === 'object';\n}\n/**\n * True if `value` is `LContainer`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction isLContainer(value) {\n return Array.isArray(value) && value[TYPE] === true;\n}\nfunction isContentQueryHost(tNode) {\n return (tNode.flags & 4 /* TNodeFlags.hasContentQuery */) !== 0;\n}\nfunction isComponentHost(tNode) {\n return tNode.componentOffset > -1;\n}\nfunction isDirectiveHost(tNode) {\n return (tNode.flags & 1 /* TNodeFlags.isDirectiveHost */) === 1 /* TNodeFlags.isDirectiveHost */;\n}\nfunction isComponentDef(def) {\n return !!def.template;\n}\nfunction isRootView(target) {\n // Determines whether a given LView is marked as a root view.\n return (target[FLAGS] & 512 /* LViewFlags.IsRoot */) !== 0;\n}\nfunction isProjectionTNode(tNode) {\n return (tNode.type & 16 /* TNodeType.Projection */) === 16 /* TNodeType.Projection */;\n}\nfunction hasI18n(lView) {\n return (lView[FLAGS] & 32 /* LViewFlags.HasI18n */) === 32 /* LViewFlags.HasI18n */;\n}\nfunction isDestroyed(lView) {\n // Determines whether a given LView is marked as destroyed.\n return (lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */;\n}\n\n// [Assert functions do not constraint type when they are guarded by a truthy\n// expression.](https://github.com/microsoft/TypeScript/issues/37295)\nfunction assertTNodeForLView(tNode, lView) {\n assertTNodeForTView(tNode, lView[TVIEW]);\n}\nfunction assertTNodeForTView(tNode, tView) {\n assertTNode(tNode);\n const tData = tView.data;\n for (let i = HEADER_OFFSET; i < tData.length; i++) {\n if (tData[i] === tNode) {\n return;\n }\n }\n throwError('This TNode does not belong to this TView.');\n}\nfunction assertTNode(tNode) {\n assertDefined(tNode, 'TNode must be defined');\n if (!(tNode && typeof tNode === 'object' && tNode.hasOwnProperty('directiveStylingLast'))) {\n throwError('Not of type TNode, got: ' + tNode);\n }\n}\nfunction assertTIcu(tIcu) {\n assertDefined(tIcu, 'Expected TIcu to be defined');\n if (!(typeof tIcu.currentCaseLViewIndex === 'number')) {\n throwError('Object is not of TIcu type.');\n }\n}\nfunction assertComponentType(actual, msg = \"Type passed in is not ComponentType, it does not have 'ɵcmp' property.\") {\n if (!getComponentDef(actual)) {\n throwError(msg);\n }\n}\nfunction assertNgModuleType(actual, msg = \"Type passed in is not NgModuleType, it does not have 'ɵmod' property.\") {\n if (!getNgModuleDef(actual)) {\n throwError(msg);\n }\n}\nfunction assertCurrentTNodeIsParent(isParent) {\n assertEqual(isParent, true, 'currentTNode should be a parent');\n}\nfunction assertHasParent(tNode) {\n assertDefined(tNode, 'currentTNode should exist!');\n assertDefined(tNode.parent, 'currentTNode should have a parent');\n}\nfunction assertLContainer(value) {\n assertDefined(value, 'LContainer must be defined');\n assertEqual(isLContainer(value), true, 'Expecting LContainer');\n}\nfunction assertLViewOrUndefined(value) {\n value && assertEqual(isLView(value), true, 'Expecting LView or undefined or null');\n}\nfunction assertLView(value) {\n assertDefined(value, 'LView must be defined');\n assertEqual(isLView(value), true, 'Expecting LView');\n}\nfunction assertFirstCreatePass(tView, errMessage) {\n assertEqual(tView.firstCreatePass, true, errMessage || 'Should only be called in first create pass.');\n}\nfunction assertFirstUpdatePass(tView, errMessage) {\n assertEqual(tView.firstUpdatePass, true, errMessage || 'Should only be called in first update pass.');\n}\n/**\n * This is a basic sanity check that an object is probably a directive def. DirectiveDef is\n * an interface, so we can't do a direct instanceof check.\n */\nfunction assertDirectiveDef(obj) {\n if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) {\n throwError(`Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.`);\n }\n}\nfunction assertIndexInDeclRange(tView, index) {\n assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index);\n}\nfunction assertIndexInExpandoRange(lView, index) {\n const tView = lView[1];\n assertBetween(tView.expandoStartIndex, lView.length, index);\n}\nfunction assertBetween(lower, upper, index) {\n if (!(lower <= index && index < upper)) {\n throwError(`Index out of range (expecting ${lower} <= ${index} < ${upper})`);\n }\n}\nfunction assertProjectionSlots(lView, errMessage) {\n assertDefined(lView[DECLARATION_COMPONENT_VIEW], 'Component views should exist.');\n assertDefined(lView[DECLARATION_COMPONENT_VIEW][T_HOST].projection, errMessage ||\n 'Components with projection nodes (<ng-content>) must have projection slots defined.');\n}\nfunction assertParentView(lView, errMessage) {\n assertDefined(lView, errMessage || \"Component views should always have a parent view (component's host view)\");\n}\nfunction assertNoDuplicateDirectives(directives) {\n // The array needs at least two elements in order to have duplicates.\n if (directives.length < 2) {\n return;\n }\n const seenDirectives = new Set();\n for (const current of directives) {\n if (seenDirectives.has(current)) {\n throw new RuntimeError(309 /* RuntimeErrorCode.DUPLICATE_DIRECTIVE */, `Directive ${current.type.name} matches multiple times on the same element. ` +\n `Directives can only match an element once.`);\n }\n seenDirectives.add(current);\n }\n}\n/**\n * This is a basic sanity check that the `injectorIndex` seems to point to what looks like a\n * NodeInjector data structure.\n *\n * @param lView `LView` which should be checked.\n * @param injectorIndex index into the `LView` where the `NodeInjector` is expected.\n */\nfunction assertNodeInjector(lView, injectorIndex) {\n assertIndexInExpandoRange(lView, injectorIndex);\n assertIndexInExpandoRange(lView, injectorIndex + 8 /* NodeInjectorOffset.PARENT */);\n assertNumber(lView[injectorIndex + 0], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 1], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 2], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 3], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 4], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 5], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 6], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 7], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */], 'injectorIndex should point to parent injector');\n}\n\n/**\n * Represents a basic change from a previous to a new value for a single\n * property on a directive instance. Passed as a value in a\n * {@link SimpleChanges} object to the `ngOnChanges` hook.\n *\n * @see {@link OnChanges}\n *\n * @publicApi\n */\nclass SimpleChange {\n previousValue;\n currentValue;\n firstChange;\n constructor(previousValue, currentValue, firstChange) {\n this.previousValue = previousValue;\n this.currentValue = currentValue;\n this.firstChange = firstChange;\n }\n /**\n * Check whether the new value is the first value assigned.\n */\n isFirstChange() {\n return this.firstChange;\n }\n}\n\nfunction applyValueToInputField(instance, inputSignalNode, privateName, value) {\n if (inputSignalNode !== null) {\n inputSignalNode.applyValueToInputSignal(inputSignalNode, value);\n }\n else {\n instance[privateName] = value;\n }\n}\n\n/**\n * The NgOnChangesFeature decorates a component with support for the ngOnChanges\n * lifecycle hook, so it should be included in any component that implements\n * that hook.\n *\n * If the component or directive uses inheritance, the NgOnChangesFeature MUST\n * be included as a feature AFTER {@link InheritDefinitionFeature}, otherwise\n * inherited properties will not be propagated to the ngOnChanges lifecycle\n * hook.\n *\n * Example usage:\n *\n * ```ts\n * static ɵcmp = defineComponent({\n * ...\n * inputs: {name: 'publicName'},\n * features: [NgOnChangesFeature]\n * });\n * ```\n *\n * @codeGenApi\n */\nconst ɵɵNgOnChangesFeature = /* @__PURE__ */ (() => {\n const ɵɵNgOnChangesFeatureImpl = () => NgOnChangesFeatureImpl;\n // This option ensures that the ngOnChanges lifecycle hook will be inherited\n // from superclasses (in InheritDefinitionFeature).\n /** @nocollapse */\n ɵɵNgOnChangesFeatureImpl.ngInherit = true;\n return ɵɵNgOnChangesFeatureImpl;\n})();\nfunction NgOnChangesFeatureImpl(definition) {\n if (definition.type.prototype.ngOnChanges) {\n definition.setInput = ngOnChangesSetInput;\n }\n return rememberChangeHistoryAndInvokeOnChangesHook;\n}\n/**\n * This is a synthetic lifecycle hook which gets inserted into `TView.preOrderHooks` to simulate\n * `ngOnChanges`.\n *\n * The hook reads the `NgSimpleChangesStore` data from the component instance and if changes are\n * found it invokes `ngOnChanges` on the component instance.\n *\n * @param this Component instance. Because this function gets inserted into `TView.preOrderHooks`,\n * it is guaranteed to be called with component instance.\n */\nfunction rememberChangeHistoryAndInvokeOnChangesHook() {\n const simpleChangesStore = getSimpleChangesStore(this);\n const current = simpleChangesStore?.current;\n if (current) {\n const previous = simpleChangesStore.previous;\n if (previous === EMPTY_OBJ) {\n simpleChangesStore.previous = current;\n }\n else {\n // New changes are copied to the previous store, so that we don't lose history for inputs\n // which were not changed this time\n for (let key in current) {\n previous[key] = current[key];\n }\n }\n simpleChangesStore.current = null;\n this.ngOnChanges(current);\n }\n}\nfunction ngOnChangesSetInput(instance, inputSignalNode, value, publicName, privateName) {\n const declaredName = this.declaredInputs[publicName];\n ngDevMode && assertString(declaredName, 'Name of input in ngOnChanges has to be a string');\n const simpleChangesStore = getSimpleChangesStore(instance) ||\n setSimpleChangesStore(instance, { previous: EMPTY_OBJ, current: null });\n const current = simpleChangesStore.current || (simpleChangesStore.current = {});\n const previous = simpleChangesStore.previous;\n const previousChange = previous[declaredName];\n current[declaredName] = new SimpleChange(previousChange && previousChange.currentValue, value, previous === EMPTY_OBJ);\n applyValueToInputField(instance, inputSignalNode, privateName, value);\n}\nconst SIMPLE_CHANGES_STORE = '__ngSimpleChanges__';\nfunction getSimpleChangesStore(instance) {\n return instance[SIMPLE_CHANGES_STORE] || null;\n}\nfunction setSimpleChangesStore(instance, store) {\n return (instance[SIMPLE_CHANGES_STORE] = store);\n}\n\nlet profilerCallback = null;\n/**\n * Sets the callback function which will be invoked before and after performing certain actions at\n * runtime (for example, before and after running change detection).\n *\n * Warning: this function is *INTERNAL* and should not be relied upon in application's code.\n * The contract of the function might be changed in any release and/or the function can be removed\n * completely.\n *\n * @param profiler function provided by the caller or null value to disable profiling.\n */\nconst setProfiler = (profiler) => {\n profilerCallback = profiler;\n};\n/**\n * Profiler function which wraps user code executed by the runtime.\n *\n * @param event ProfilerEvent corresponding to the execution context\n * @param instance component instance\n * @param hookOrListener lifecycle hook function or output listener. The value depends on the\n * execution context\n * @returns\n */\nconst profiler = function (event, instance, hookOrListener) {\n if (profilerCallback != null /* both `null` and `undefined` */) {\n profilerCallback(event, instance, hookOrListener);\n }\n};\n\nconst SVG_NAMESPACE = 'svg';\nconst MATH_ML_NAMESPACE = 'math';\n\n/**\n * For efficiency reasons we often put several different data types (`RNode`, `LView`, `LContainer`)\n * in same location in `LView`. This is because we don't want to pre-allocate space for it\n * because the storage is sparse. This file contains utilities for dealing with such data types.\n *\n * How do we know what is stored at a given location in `LView`.\n * - `Array.isArray(value) === false` => `RNode` (The normal storage value)\n * - `Array.isArray(value) === true` => then the `value[0]` represents the wrapped value.\n * - `typeof value[TYPE] === 'object'` => `LView`\n * - This happens when we have a component at a given location\n * - `typeof value[TYPE] === true` => `LContainer`\n * - This happens when we have `LContainer` binding at a given location.\n *\n *\n * NOTE: it is assumed that `Array.isArray` and `typeof` operations are very efficient.\n */\n/**\n * Returns `RNode`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapRNode(value) {\n while (Array.isArray(value)) {\n value = value[HOST];\n }\n return value;\n}\n/**\n * Returns `LView` or `null` if not found.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapLView(value) {\n while (Array.isArray(value)) {\n // This check is same as `isLView()` but we don't call at as we don't want to call\n // `Array.isArray()` twice and give JITer more work for inlining.\n if (typeof value[TYPE] === 'object')\n return value;\n value = value[HOST];\n }\n return null;\n}\n/**\n * Retrieves an element value from the provided `viewData`, by unwrapping\n * from any containers, component views, or style contexts.\n */\nfunction getNativeByIndex(index, lView) {\n ngDevMode && assertIndexInRange(lView, index);\n ngDevMode && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Expected to be past HEADER_OFFSET');\n return unwrapRNode(lView[index]);\n}\n/**\n * Retrieve an `RNode` for a given `TNode` and `LView`.\n *\n * This function guarantees in dev mode to retrieve a non-null `RNode`.\n *\n * @param tNode\n * @param lView\n */\nfunction getNativeByTNode(tNode, lView) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n ngDevMode && assertIndexInRange(lView, tNode.index);\n const node = unwrapRNode(lView[tNode.index]);\n return node;\n}\n/**\n * Retrieve an `RNode` or `null` for a given `TNode` and `LView`.\n *\n * Some `TNode`s don't have associated `RNode`s. For example `Projection`\n *\n * @param tNode\n * @param lView\n */\nfunction getNativeByTNodeOrNull(tNode, lView) {\n const index = tNode === null ? -1 : tNode.index;\n if (index !== -1) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n const node = unwrapRNode(lView[index]);\n return node;\n }\n return null;\n}\n// fixme(misko): The return Type should be `TNode|null`\nfunction getTNode(tView, index) {\n ngDevMode && assertGreaterThan(index, -1, 'wrong index for TNode');\n ngDevMode && assertLessThan(index, tView.data.length, 'wrong index for TNode');\n const tNode = tView.data[index];\n ngDevMode && tNode !== null && assertTNode(tNode);\n return tNode;\n}\n/** Retrieves a value from any `LView` or `TData`. */\nfunction load(view, index) {\n ngDevMode && assertIndexInRange(view, index);\n return view[index];\n}\nfunction getComponentLViewByIndex(nodeIndex, hostView) {\n // Could be an LView or an LContainer. If LContainer, unwrap to find LView.\n ngDevMode && assertIndexInRange(hostView, nodeIndex);\n const slotValue = hostView[nodeIndex];\n const lView = isLView(slotValue) ? slotValue : slotValue[HOST];\n return lView;\n}\n/** Checks whether a given view is in creation mode */\nfunction isCreationMode(view) {\n return (view[FLAGS] & 4 /* LViewFlags.CreationMode */) === 4 /* LViewFlags.CreationMode */;\n}\n/**\n * Returns a boolean for whether the view is attached to the change detection tree.\n *\n * Note: This determines whether a view should be checked, not whether it's inserted\n * into a container. For that, you'll want `viewAttachedToContainer` below.\n */\nfunction viewAttachedToChangeDetector(view) {\n return (view[FLAGS] & 128 /* LViewFlags.Attached */) === 128 /* LViewFlags.Attached */;\n}\n/** Returns a boolean for whether the view is attached to a container. */\nfunction viewAttachedToContainer(view) {\n return isLContainer(view[PARENT]);\n}\nfunction getConstant(consts, index) {\n if (index === null || index === undefined)\n return null;\n ngDevMode && assertIndexInRange(consts, index);\n return consts[index];\n}\n/**\n * Resets the pre-order hook flags of the view.\n * @param lView the LView on which the flags are reset\n */\nfunction resetPreOrderHookFlags(lView) {\n lView[PREORDER_HOOK_FLAGS] = 0;\n}\n/**\n * Adds the `RefreshView` flag from the lView and updates HAS_CHILD_VIEWS_TO_REFRESH flag of\n * parents.\n */\nfunction markViewForRefresh(lView) {\n if (lView[FLAGS] & 1024 /* LViewFlags.RefreshView */) {\n return;\n }\n lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n if (viewAttachedToChangeDetector(lView)) {\n markAncestorsForTraversal(lView);\n }\n}\n/**\n * Walks up the LView hierarchy.\n * @param nestingLevel Number of times to walk up in hierarchy.\n * @param currentView View from which to start the lookup.\n */\nfunction walkUpViews(nestingLevel, currentView) {\n while (nestingLevel > 0) {\n ngDevMode &&\n assertDefined(currentView[DECLARATION_VIEW], 'Declaration view should be defined if nesting level is greater than 0.');\n currentView = currentView[DECLARATION_VIEW];\n nestingLevel--;\n }\n return currentView;\n}\nfunction requiresRefreshOrTraversal(lView) {\n return !!(lView[FLAGS] & (1024 /* LViewFlags.RefreshView */ | 8192 /* LViewFlags.HasChildViewsToRefresh */) ||\n lView[REACTIVE_TEMPLATE_CONSUMER]?.dirty);\n}\n/**\n * Updates the `HasChildViewsToRefresh` flag on the parents of the `LView` as well as the\n * parents above.\n */\nfunction updateAncestorTraversalFlagsOnAttach(lView) {\n lView[ENVIRONMENT].changeDetectionScheduler?.notify(9 /* NotificationSource.ViewAttached */);\n if (lView[FLAGS] & 64 /* LViewFlags.Dirty */) {\n lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n }\n if (requiresRefreshOrTraversal(lView)) {\n markAncestorsForTraversal(lView);\n }\n}\n/**\n * Ensures views above the given `lView` are traversed during change detection even when they are\n * not dirty.\n *\n * This is done by setting the `HAS_CHILD_VIEWS_TO_REFRESH` flag up to the root, stopping when the\n * flag is already `true` or the `lView` is detached.\n */\nfunction markAncestorsForTraversal(lView) {\n lView[ENVIRONMENT].changeDetectionScheduler?.notify(0 /* NotificationSource.MarkAncestorsForTraversal */);\n let parent = getLViewParent(lView);\n while (parent !== null) {\n // We stop adding markers to the ancestors once we reach one that already has the marker. This\n // is to avoid needlessly traversing all the way to the root when the marker already exists.\n if (parent[FLAGS] & 8192 /* LViewFlags.HasChildViewsToRefresh */) {\n break;\n }\n parent[FLAGS] |= 8192 /* LViewFlags.HasChildViewsToRefresh */;\n if (!viewAttachedToChangeDetector(parent)) {\n break;\n }\n parent = getLViewParent(parent);\n }\n}\n/**\n * Stores a LView-specific destroy callback.\n */\nfunction storeLViewOnDestroy(lView, onDestroyCallback) {\n if (isDestroyed(lView)) {\n throw new RuntimeError(911 /* RuntimeErrorCode.VIEW_ALREADY_DESTROYED */, ngDevMode && 'View has already been destroyed.');\n }\n if (lView[ON_DESTROY_HOOKS] === null) {\n lView[ON_DESTROY_HOOKS] = [];\n }\n lView[ON_DESTROY_HOOKS].push(onDestroyCallback);\n}\n/**\n * Removes previously registered LView-specific destroy callback.\n */\nfunction removeLViewOnDestroy(lView, onDestroyCallback) {\n if (lView[ON_DESTROY_HOOKS] === null)\n return;\n const destroyCBIdx = lView[ON_DESTROY_HOOKS].indexOf(onDestroyCallback);\n if (destroyCBIdx !== -1) {\n lView[ON_DESTROY_HOOKS].splice(destroyCBIdx, 1);\n }\n}\n/**\n * Gets the parent LView of the passed LView, if the PARENT is an LContainer, will get the parent of\n * that LContainer, which is an LView\n * @param lView the lView whose parent to get\n */\nfunction getLViewParent(lView) {\n ngDevMode && assertLView(lView);\n const parent = lView[PARENT];\n return isLContainer(parent) ? parent[PARENT] : parent;\n}\nfunction getOrCreateLViewCleanup(view) {\n // top level variables should not be exported for performance reasons (PERF_NOTES.md)\n return (view[CLEANUP] ??= []);\n}\nfunction getOrCreateTViewCleanup(tView) {\n return (tView.cleanup ??= []);\n}\n/**\n * Saves context for this cleanup function in LView.cleanupInstances.\n *\n * On the first template pass, saves in TView:\n * - Cleanup function\n * - Index of context we just saved in LView.cleanupInstances\n */\nfunction storeCleanupWithContext(tView, lView, context, cleanupFn) {\n const lCleanup = getOrCreateLViewCleanup(lView);\n // Historically the `storeCleanupWithContext` was used to register both framework-level and\n // user-defined cleanup callbacks, but over time those two types of cleanups were separated.\n // This dev mode checks assures that user-level cleanup callbacks are _not_ stored in data\n // structures reserved for framework-specific hooks.\n ngDevMode &&\n assertDefined(context, 'Cleanup context is mandatory when registering framework-level destroy hooks');\n lCleanup.push(context);\n if (tView.firstCreatePass) {\n getOrCreateTViewCleanup(tView).push(cleanupFn, lCleanup.length - 1);\n }\n else {\n // Make sure that no new framework-level cleanup functions are registered after the first\n // template pass is done (and TView data structures are meant to fully constructed).\n if (ngDevMode) {\n Object.freeze(getOrCreateTViewCleanup(tView));\n }\n }\n}\n\nconst instructionState = {\n lFrame: createLFrame(null),\n bindingsEnabled: true,\n skipHydrationRootTNode: null,\n};\nvar CheckNoChangesMode;\n(function (CheckNoChangesMode) {\n CheckNoChangesMode[CheckNoChangesMode[\"Off\"] = 0] = \"Off\";\n CheckNoChangesMode[CheckNoChangesMode[\"Exhaustive\"] = 1] = \"Exhaustive\";\n CheckNoChangesMode[CheckNoChangesMode[\"OnlyDirtyViews\"] = 2] = \"OnlyDirtyViews\";\n})(CheckNoChangesMode || (CheckNoChangesMode = {}));\n/**\n * In this mode, any changes in bindings will throw an ExpressionChangedAfterChecked error.\n *\n * Necessary to support ChangeDetectorRef.checkNoChanges().\n *\n * The `checkNoChanges` function is invoked only in ngDevMode=true and verifies that no unintended\n * changes exist in the change detector or its children.\n */\nlet _checkNoChangesMode = 0; /* CheckNoChangesMode.Off */\n/**\n * Flag used to indicate that we are in the middle running change detection on a view\n *\n * @see detectChangesInViewWhileDirty\n */\nlet _isRefreshingViews = false;\n/**\n * Returns true if the instruction state stack is empty.\n *\n * Intended to be called from tests only (tree shaken otherwise).\n */\nfunction specOnlyIsInstructionStateEmpty() {\n return instructionState.lFrame.parent === null;\n}\nfunction getElementDepthCount() {\n return instructionState.lFrame.elementDepthCount;\n}\nfunction increaseElementDepthCount() {\n instructionState.lFrame.elementDepthCount++;\n}\nfunction decreaseElementDepthCount() {\n instructionState.lFrame.elementDepthCount--;\n}\nfunction getBindingsEnabled() {\n return instructionState.bindingsEnabled;\n}\n/**\n * Returns true if currently inside a skip hydration block.\n * @returns boolean\n */\nfunction isInSkipHydrationBlock$1() {\n return instructionState.skipHydrationRootTNode !== null;\n}\n/**\n * Returns true if this is the root TNode of the skip hydration block.\n * @param tNode the current TNode\n * @returns boolean\n */\nfunction isSkipHydrationRootTNode(tNode) {\n return instructionState.skipHydrationRootTNode === tNode;\n}\n/**\n * Enables directive matching on elements.\n *\n * * Example:\n * ```html\n * <my-comp my-directive>\n * Should match component / directive.\n * </my-comp>\n * <div ngNonBindable>\n * <!-- ɵɵdisableBindings() -->\n * <my-comp my-directive>\n * Should not match component / directive because we are in ngNonBindable.\n * </my-comp>\n * <!-- ɵɵenableBindings() -->\n * </div>\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵenableBindings() {\n instructionState.bindingsEnabled = true;\n}\n/**\n * Sets a flag to specify that the TNode is in a skip hydration block.\n * @param tNode the current TNode\n */\nfunction enterSkipHydrationBlock(tNode) {\n instructionState.skipHydrationRootTNode = tNode;\n}\n/**\n * Disables directive matching on element.\n *\n * * Example:\n * ```html\n * <my-comp my-directive>\n * Should match component / directive.\n * </my-comp>\n * <div ngNonBindable>\n * <!-- ɵɵdisableBindings() -->\n * <my-comp my-directive>\n * Should not match component / directive because we are in ngNonBindable.\n * </my-comp>\n * <!-- ɵɵenableBindings() -->\n * </div>\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵdisableBindings() {\n instructionState.bindingsEnabled = false;\n}\n/**\n * Clears the root skip hydration node when leaving a skip hydration block.\n */\nfunction leaveSkipHydrationBlock() {\n instructionState.skipHydrationRootTNode = null;\n}\n/**\n * Return the current `LView`.\n */\nfunction getLView() {\n return instructionState.lFrame.lView;\n}\n/**\n * Return the current `TView`.\n */\nfunction getTView() {\n return instructionState.lFrame.tView;\n}\n/**\n * Restores `contextViewData` to the given OpaqueViewState instance.\n *\n * Used in conjunction with the getCurrentView() instruction to save a snapshot\n * of the current view and restore it when listeners are invoked. This allows\n * walking the declaration view tree in listeners to get vars from parent views.\n *\n * @param viewToRestore The OpaqueViewState instance to restore.\n * @returns Context of the restored OpaqueViewState instance.\n *\n * @codeGenApi\n */\nfunction ɵɵrestoreView(viewToRestore) {\n instructionState.lFrame.contextLView = viewToRestore;\n return viewToRestore[CONTEXT];\n}\n/**\n * Clears the view set in `ɵɵrestoreView` from memory. Returns the passed in\n * value so that it can be used as a return value of an instruction.\n *\n * @codeGenApi\n */\nfunction ɵɵresetView(value) {\n instructionState.lFrame.contextLView = null;\n return value;\n}\nfunction getCurrentTNode() {\n let currentTNode = getCurrentTNodePlaceholderOk();\n while (currentTNode !== null && currentTNode.type === 64 /* TNodeType.Placeholder */) {\n currentTNode = currentTNode.parent;\n }\n return currentTNode;\n}\nfunction getCurrentTNodePlaceholderOk() {\n return instructionState.lFrame.currentTNode;\n}\nfunction getCurrentParentTNode() {\n const lFrame = instructionState.lFrame;\n const currentTNode = lFrame.currentTNode;\n return lFrame.isParent ? currentTNode : currentTNode.parent;\n}\nfunction setCurrentTNode(tNode, isParent) {\n ngDevMode && tNode && assertTNodeForTView(tNode, instructionState.lFrame.tView);\n const lFrame = instructionState.lFrame;\n lFrame.currentTNode = tNode;\n lFrame.isParent = isParent;\n}\nfunction isCurrentTNodeParent() {\n return instructionState.lFrame.isParent;\n}\nfunction setCurrentTNodeAsNotParent() {\n instructionState.lFrame.isParent = false;\n}\nfunction getContextLView() {\n const contextLView = instructionState.lFrame.contextLView;\n ngDevMode && assertDefined(contextLView, 'contextLView must be defined.');\n return contextLView;\n}\nfunction isInCheckNoChangesMode() {\n !ngDevMode && throwError('Must never be called in production mode');\n return _checkNoChangesMode !== CheckNoChangesMode.Off;\n}\nfunction isExhaustiveCheckNoChanges() {\n !ngDevMode && throwError('Must never be called in production mode');\n return _checkNoChangesMode === CheckNoChangesMode.Exhaustive;\n}\nfunction setIsInCheckNoChangesMode(mode) {\n !ngDevMode && throwError('Must never be called in production mode');\n _checkNoChangesMode = mode;\n}\nfunction isRefreshingViews() {\n return _isRefreshingViews;\n}\nfunction setIsRefreshingViews(mode) {\n const prev = _isRefreshingViews;\n _isRefreshingViews = mode;\n return prev;\n}\n// top level variables should not be exported for performance reasons (PERF_NOTES.md)\nfunction getBindingRoot() {\n const lFrame = instructionState.lFrame;\n let index = lFrame.bindingRootIndex;\n if (index === -1) {\n index = lFrame.bindingRootIndex = lFrame.tView.bindingStartIndex;\n }\n return index;\n}\nfunction getBindingIndex() {\n return instructionState.lFrame.bindingIndex;\n}\nfunction setBindingIndex(value) {\n return (instructionState.lFrame.bindingIndex = value);\n}\nfunction nextBindingIndex() {\n return instructionState.lFrame.bindingIndex++;\n}\nfunction incrementBindingIndex(count) {\n const lFrame = instructionState.lFrame;\n const index = lFrame.bindingIndex;\n lFrame.bindingIndex = lFrame.bindingIndex + count;\n return index;\n}\nfunction isInI18nBlock() {\n return instructionState.lFrame.inI18n;\n}\nfunction setInI18nBlock(isInI18nBlock) {\n instructionState.lFrame.inI18n = isInI18nBlock;\n}\n/**\n * Set a new binding root index so that host template functions can execute.\n *\n * Bindings inside the host template are 0 index. But because we don't know ahead of time\n * how many host bindings we have we can't pre-compute them. For this reason they are all\n * 0 index and we just shift the root so that they match next available location in the LView.\n *\n * @param bindingRootIndex Root index for `hostBindings`\n * @param currentDirectiveIndex `TData[currentDirectiveIndex]` will point to the current directive\n * whose `hostBindings` are being processed.\n */\nfunction setBindingRootForHostBindings(bindingRootIndex, currentDirectiveIndex) {\n const lFrame = instructionState.lFrame;\n lFrame.bindingIndex = lFrame.bindingRootIndex = bindingRootIndex;\n setCurrentDirectiveIndex(currentDirectiveIndex);\n}\n/**\n * When host binding is executing this points to the directive index.\n * `TView.data[getCurrentDirectiveIndex()]` is `DirectiveDef`\n * `LView[getCurrentDirectiveIndex()]` is directive instance.\n */\nfunction getCurrentDirectiveIndex() {\n return instructionState.lFrame.currentDirectiveIndex;\n}\n/**\n * Sets an index of a directive whose `hostBindings` are being processed.\n *\n * @param currentDirectiveIndex `TData` index where current directive instance can be found.\n */\nfunction setCurrentDirectiveIndex(currentDirectiveIndex) {\n instructionState.lFrame.currentDirectiveIndex = currentDirectiveIndex;\n}\n/**\n * Retrieve the current `DirectiveDef` which is active when `hostBindings` instruction is being\n * executed.\n *\n * @param tData Current `TData` where the `DirectiveDef` will be looked up at.\n */\nfunction getCurrentDirectiveDef(tData) {\n const currentDirectiveIndex = instructionState.lFrame.currentDirectiveIndex;\n return currentDirectiveIndex === -1 ? null : tData[currentDirectiveIndex];\n}\nfunction getCurrentQueryIndex() {\n return instructionState.lFrame.currentQueryIndex;\n}\nfunction setCurrentQueryIndex(value) {\n instructionState.lFrame.currentQueryIndex = value;\n}\n/**\n * Returns a `TNode` of the location where the current `LView` is declared at.\n *\n * @param lView an `LView` that we want to find parent `TNode` for.\n */\nfunction getDeclarationTNode(lView) {\n const tView = lView[TVIEW];\n // Return the declaration parent for embedded views\n if (tView.type === 2 /* TViewType.Embedded */) {\n ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');\n return tView.declTNode;\n }\n // Components don't have `TView.declTNode` because each instance of component could be\n // inserted in different location, hence `TView.declTNode` is meaningless.\n // Falling back to `T_HOST` in case we cross component boundary.\n if (tView.type === 1 /* TViewType.Component */) {\n return lView[T_HOST];\n }\n // Remaining TNode type is `TViewType.Root` which doesn't have a parent TNode.\n return null;\n}\n/**\n * This is a light weight version of the `enterView` which is needed by the DI system.\n *\n * @param lView `LView` location of the DI context.\n * @param tNode `TNode` for DI context\n * @param flags DI context flags. if `SkipSelf` flag is set than we walk up the declaration\n * tree from `tNode` until we find parent declared `TElementNode`.\n * @returns `true` if we have successfully entered DI associated with `tNode` (or with declared\n * `TNode` if `flags` has `SkipSelf`). Failing to enter DI implies that no associated\n * `NodeInjector` can be found and we should instead use `ModuleInjector`.\n * - If `true` than this call must be fallowed by `leaveDI`\n * - If `false` than this call failed and we should NOT call `leaveDI`\n */\nfunction enterDI(lView, tNode, flags) {\n ngDevMode && assertLViewOrUndefined(lView);\n if (flags & InjectFlags.SkipSelf) {\n ngDevMode && assertTNodeForTView(tNode, lView[TVIEW]);\n let parentTNode = tNode;\n let parentLView = lView;\n while (true) {\n ngDevMode && assertDefined(parentTNode, 'Parent TNode should be defined');\n parentTNode = parentTNode.parent;\n if (parentTNode === null && !(flags & InjectFlags.Host)) {\n parentTNode = getDeclarationTNode(parentLView);\n if (parentTNode === null)\n break;\n // In this case, a parent exists and is definitely an element. So it will definitely\n // have an existing lView as the declaration view, which is why we can assume it's defined.\n ngDevMode && assertDefined(parentLView, 'Parent LView should be defined');\n parentLView = parentLView[DECLARATION_VIEW];\n // In Ivy there are Comment nodes that correspond to ngIf and NgFor embedded directives\n // We want to skip those and look only at Elements and ElementContainers to ensure\n // we're looking at true parent nodes, and not content or other types.\n if (parentTNode.type & (2 /* TNodeType.Element */ | 8 /* TNodeType.ElementContainer */)) {\n break;\n }\n }\n else {\n break;\n }\n }\n if (parentTNode === null) {\n // If we failed to find a parent TNode this means that we should use module injector.\n return false;\n }\n else {\n tNode = parentTNode;\n lView = parentLView;\n }\n }\n ngDevMode && assertTNodeForLView(tNode, lView);\n const lFrame = (instructionState.lFrame = allocLFrame());\n lFrame.currentTNode = tNode;\n lFrame.lView = lView;\n return true;\n}\n/**\n * Swap the current lView with a new lView.\n *\n * For performance reasons we store the lView in the top level of the module.\n * This way we minimize the number of properties to read. Whenever a new view\n * is entered we have to store the lView for later, and when the view is\n * exited the state has to be restored\n *\n * @param newView New lView to become active\n * @returns the previously active lView;\n */\nfunction enterView(newView) {\n ngDevMode && assertNotEqual(newView[0], newView[1], '????');\n ngDevMode && assertLViewOrUndefined(newView);\n const newLFrame = allocLFrame();\n if (ngDevMode) {\n assertEqual(newLFrame.isParent, true, 'Expected clean LFrame');\n assertEqual(newLFrame.lView, null, 'Expected clean LFrame');\n assertEqual(newLFrame.tView, null, 'Expected clean LFrame');\n assertEqual(newLFrame.selectedIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.elementDepthCount, 0, 'Expected clean LFrame');\n assertEqual(newLFrame.currentDirectiveIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.currentNamespace, null, 'Expected clean LFrame');\n assertEqual(newLFrame.bindingRootIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.currentQueryIndex, 0, 'Expected clean LFrame');\n }\n const tView = newView[TVIEW];\n instructionState.lFrame = newLFrame;\n ngDevMode && tView.firstChild && assertTNodeForTView(tView.firstChild, tView);\n newLFrame.currentTNode = tView.firstChild;\n newLFrame.lView = newView;\n newLFrame.tView = tView;\n newLFrame.contextLView = newView;\n newLFrame.bindingIndex = tView.bindingStartIndex;\n newLFrame.inI18n = false;\n}\n/**\n * Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.\n */\nfunction allocLFrame() {\n const currentLFrame = instructionState.lFrame;\n const childLFrame = currentLFrame === null ? null : currentLFrame.child;\n const newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame;\n return newLFrame;\n}\nfunction createLFrame(parent) {\n const lFrame = {\n currentTNode: null,\n isParent: true,\n lView: null,\n tView: null,\n selectedIndex: -1,\n contextLView: null,\n elementDepthCount: 0,\n currentNamespace: null,\n currentDirectiveIndex: -1,\n bindingRootIndex: -1,\n bindingIndex: -1,\n currentQueryIndex: 0,\n parent: parent,\n child: null,\n inI18n: false,\n };\n parent !== null && (parent.child = lFrame); // link the new LFrame for reuse.\n return lFrame;\n}\n/**\n * A lightweight version of leave which is used with DI.\n *\n * This function only resets `currentTNode` and `LView` as those are the only properties\n * used with DI (`enterDI()`).\n *\n * NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where\n * as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`.\n */\nfunction leaveViewLight() {\n const oldLFrame = instructionState.lFrame;\n instructionState.lFrame = oldLFrame.parent;\n oldLFrame.currentTNode = null;\n oldLFrame.lView = null;\n return oldLFrame;\n}\n/**\n * This is a lightweight version of the `leaveView` which is needed by the DI system.\n *\n * NOTE: this function is an alias so that we can change the type of the function to have `void`\n * return type.\n */\nconst leaveDI = leaveViewLight;\n/**\n * Leave the current `LView`\n *\n * This pops the `LFrame` with the associated `LView` from the stack.\n *\n * IMPORTANT: We must zero out the `LFrame` values here otherwise they will be retained. This is\n * because for performance reasons we don't release `LFrame` but rather keep it for next use.\n */\nfunction leaveView() {\n const oldLFrame = leaveViewLight();\n oldLFrame.isParent = true;\n oldLFrame.tView = null;\n oldLFrame.selectedIndex = -1;\n oldLFrame.contextLView = null;\n oldLFrame.elementDepthCount = 0;\n oldLFrame.currentDirectiveIndex = -1;\n oldLFrame.currentNamespace = null;\n oldLFrame.bindingRootIndex = -1;\n oldLFrame.bindingIndex = -1;\n oldLFrame.currentQueryIndex = 0;\n}\nfunction nextContextImpl(level) {\n const contextLView = (instructionState.lFrame.contextLView = walkUpViews(level, instructionState.lFrame.contextLView));\n return contextLView[CONTEXT];\n}\n/**\n * Gets the currently selected element index.\n *\n * Used with {@link property} instruction (and more in the future) to identify the index in the\n * current `LView` to act on.\n */\nfunction getSelectedIndex() {\n return instructionState.lFrame.selectedIndex;\n}\n/**\n * Sets the most recent index passed to {@link select}\n *\n * Used with {@link property} instruction (and more in the future) to identify the index in the\n * current `LView` to act on.\n *\n * (Note that if an \"exit function\" was set earlier (via `setElementExitFn()`) then that will be\n * run if and when the provided `index` value is different from the current selected index value.)\n */\nfunction setSelectedIndex(index) {\n ngDevMode &&\n index !== -1 &&\n assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Index must be past HEADER_OFFSET (or -1).');\n ngDevMode &&\n assertLessThan(index, instructionState.lFrame.lView.length, \"Can't set index passed end of LView\");\n instructionState.lFrame.selectedIndex = index;\n}\n/**\n * Gets the `tNode` that represents currently selected element.\n */\nfunction getSelectedTNode() {\n const lFrame = instructionState.lFrame;\n return getTNode(lFrame.tView, lFrame.selectedIndex);\n}\n/**\n * Sets the namespace used to create elements to `'http://www.w3.org/2000/svg'` in global state.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceSVG() {\n instructionState.lFrame.currentNamespace = SVG_NAMESPACE;\n}\n/**\n * Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceMathML() {\n instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE;\n}\n/**\n * Sets the namespace used to create elements to `null`, which forces element creation to use\n * `createElement` rather than `createElementNS`.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceHTML() {\n namespaceHTMLInternal();\n}\n/**\n * Sets the namespace used to create elements to `null`, which forces element creation to use\n * `createElement` rather than `createElementNS`.\n */\nfunction namespaceHTMLInternal() {\n instructionState.lFrame.currentNamespace = null;\n}\nfunction getNamespace$1() {\n return instructionState.lFrame.currentNamespace;\n}\nlet _wasLastNodeCreated = true;\n/**\n * Retrieves a global flag that indicates whether the most recent DOM node\n * was created or hydrated.\n */\nfunction wasLastNodeCreated() {\n return _wasLastNodeCreated;\n}\n/**\n * Sets a global flag to indicate whether the most recent DOM node\n * was created or hydrated.\n */\nfunction lastNodeWasCreated(flag) {\n _wasLastNodeCreated = flag;\n}\n\n/**\n * Adds all directive lifecycle hooks from the given `DirectiveDef` to the given `TView`.\n *\n * Must be run *only* on the first template pass.\n *\n * Sets up the pre-order hooks on the provided `tView`,\n * see {@link HookData} for details about the data structure.\n *\n * @param directiveIndex The index of the directive in LView\n * @param directiveDef The definition containing the hooks to setup in tView\n * @param tView The current TView\n */\nfunction registerPreOrderHooks(directiveIndex, directiveDef, tView) {\n ngDevMode && assertFirstCreatePass(tView);\n const { ngOnChanges, ngOnInit, ngDoCheck } = directiveDef.type.prototype;\n if (ngOnChanges) {\n const wrappedOnChanges = NgOnChangesFeatureImpl(directiveDef);\n (tView.preOrderHooks ??= []).push(directiveIndex, wrappedOnChanges);\n (tView.preOrderCheckHooks ??= []).push(directiveIndex, wrappedOnChanges);\n }\n if (ngOnInit) {\n (tView.preOrderHooks ??= []).push(0 - directiveIndex, ngOnInit);\n }\n if (ngDoCheck) {\n (tView.preOrderHooks ??= []).push(directiveIndex, ngDoCheck);\n (tView.preOrderCheckHooks ??= []).push(directiveIndex, ngDoCheck);\n }\n}\n/**\n *\n * Loops through the directives on the provided `tNode` and queues hooks to be\n * run that are not initialization hooks.\n *\n * Should be executed during `elementEnd()` and similar to\n * preserve hook execution order. Content, view, and destroy hooks for projected\n * components and directives must be called *before* their hosts.\n *\n * Sets up the content, view, and destroy hooks on the provided `tView`,\n * see {@link HookData} for details about the data structure.\n *\n * NOTE: This does not set up `onChanges`, `onInit` or `doCheck`, those are set up\n * separately at `elementStart`.\n *\n * @param tView The current TView\n * @param tNode The TNode whose directives are to be searched for hooks to queue\n */\nfunction registerPostOrderHooks(tView, tNode) {\n ngDevMode && assertFirstCreatePass(tView);\n // It's necessary to loop through the directives at elementEnd() (rather than processing in\n // directiveCreate) so we can preserve the current hook order. Content, view, and destroy\n // hooks for projected components and directives must be called *before* their hosts.\n for (let i = tNode.directiveStart, end = tNode.directiveEnd; i < end; i++) {\n const directiveDef = tView.data[i];\n ngDevMode && assertDefined(directiveDef, 'Expecting DirectiveDef');\n const lifecycleHooks = directiveDef.type.prototype;\n const { ngAfterContentInit, ngAfterContentChecked, ngAfterViewInit, ngAfterViewChecked, ngOnDestroy, } = lifecycleHooks;\n if (ngAfterContentInit) {\n (tView.contentHooks ??= []).push(-i, ngAfterContentInit);\n }\n if (ngAfterContentChecked) {\n (tView.contentHooks ??= []).push(i, ngAfterContentChecked);\n (tView.contentCheckHooks ??= []).push(i, ngAfterContentChecked);\n }\n if (ngAfterViewInit) {\n (tView.viewHooks ??= []).push(-i, ngAfterViewInit);\n }\n if (ngAfterViewChecked) {\n (tView.viewHooks ??= []).push(i, ngAfterViewChecked);\n (tView.viewCheckHooks ??= []).push(i, ngAfterViewChecked);\n }\n if (ngOnDestroy != null) {\n (tView.destroyHooks ??= []).push(i, ngOnDestroy);\n }\n }\n}\n/**\n * Executing hooks requires complex logic as we need to deal with 2 constraints.\n *\n * 1. Init hooks (ngOnInit, ngAfterContentInit, ngAfterViewInit) must all be executed once and only\n * once, across many change detection cycles. This must be true even if some hooks throw, or if\n * some recursively trigger a change detection cycle.\n * To solve that, it is required to track the state of the execution of these init hooks.\n * This is done by storing and maintaining flags in the view: the {@link InitPhaseState},\n * and the index within that phase. They can be seen as a cursor in the following structure:\n * [[onInit1, onInit2], [afterContentInit1], [afterViewInit1, afterViewInit2, afterViewInit3]]\n * They are stored as flags in LView[FLAGS].\n *\n * 2. Pre-order hooks can be executed in batches, because of the select instruction.\n * To be able to pause and resume their execution, we also need some state about the hook's array\n * that is being processed:\n * - the index of the next hook to be executed\n * - the number of init hooks already found in the processed part of the array\n * They are stored as flags in LView[PREORDER_HOOK_FLAGS].\n */\n/**\n * Executes pre-order check hooks ( OnChanges, DoChanges) given a view where all the init hooks were\n * executed once. This is a light version of executeInitAndCheckPreOrderHooks where we can skip read\n * / write of the init-hooks related flags.\n * @param lView The LView where hooks are defined\n * @param hooks Hooks to be run\n * @param nodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction executeCheckHooks(lView, hooks, nodeIndex) {\n callHooks(lView, hooks, 3 /* InitPhaseState.InitPhaseCompleted */, nodeIndex);\n}\n/**\n * Executes post-order init and check hooks (one of AfterContentInit, AfterContentChecked,\n * AfterViewInit, AfterViewChecked) given a view where there are pending init hooks to be executed.\n * @param lView The LView where hooks are defined\n * @param hooks Hooks to be run\n * @param initPhase A phase for which hooks should be run\n * @param nodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction executeInitAndCheckHooks(lView, hooks, initPhase, nodeIndex) {\n ngDevMode &&\n assertNotEqual(initPhase, 3 /* InitPhaseState.InitPhaseCompleted */, 'Init pre-order hooks should not be called more than once');\n if ((lView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n callHooks(lView, hooks, initPhase, nodeIndex);\n }\n}\nfunction incrementInitPhaseFlags(lView, initPhase) {\n ngDevMode &&\n assertNotEqual(initPhase, 3 /* InitPhaseState.InitPhaseCompleted */, 'Init hooks phase should not be incremented after all init hooks have been run.');\n let flags = lView[FLAGS];\n if ((flags & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n flags &= 16383 /* LViewFlags.IndexWithinInitPhaseReset */;\n flags += 1 /* LViewFlags.InitPhaseStateIncrementer */;\n lView[FLAGS] = flags;\n }\n}\n/**\n * Calls lifecycle hooks with their contexts, skipping init hooks if it's not\n * the first LView pass\n *\n * @param currentView The current view\n * @param arr The array in which the hooks are found\n * @param initPhaseState the current state of the init phase\n * @param currentNodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction callHooks(currentView, arr, initPhase, currentNodeIndex) {\n ngDevMode &&\n assertEqual(isInCheckNoChangesMode(), false, 'Hooks should never be run when in check no changes mode.');\n const startIndex = currentNodeIndex !== undefined\n ? currentView[PREORDER_HOOK_FLAGS] & 65535 /* PreOrderHookFlags.IndexOfTheNextPreOrderHookMaskMask */\n : 0;\n const nodeIndexLimit = currentNodeIndex != null ? currentNodeIndex : -1;\n const max = arr.length - 1; // Stop the loop at length - 1, because we look for the hook at i + 1\n let lastNodeIndexFound = 0;\n for (let i = startIndex; i < max; i++) {\n const hook = arr[i + 1];\n if (typeof hook === 'number') {\n lastNodeIndexFound = arr[i];\n if (currentNodeIndex != null && lastNodeIndexFound >= currentNodeIndex) {\n break;\n }\n }\n else {\n const isInitHook = arr[i] < 0;\n if (isInitHook) {\n currentView[PREORDER_HOOK_FLAGS] += 65536 /* PreOrderHookFlags.NumberOfInitHooksCalledIncrementer */;\n }\n if (lastNodeIndexFound < nodeIndexLimit || nodeIndexLimit == -1) {\n callHook(currentView, initPhase, arr, i);\n currentView[PREORDER_HOOK_FLAGS] =\n (currentView[PREORDER_HOOK_FLAGS] & 4294901760 /* PreOrderHookFlags.NumberOfInitHooksCalledMask */) +\n i +\n 2;\n }\n i++;\n }\n }\n}\n/**\n * Executes a single lifecycle hook, making sure that:\n * - it is called in the non-reactive context;\n * - profiling data are registered.\n */\nfunction callHookInternal(directive, hook) {\n profiler(4 /* ProfilerEvent.LifecycleHookStart */, directive, hook);\n const prevConsumer = setActiveConsumer$1(null);\n try {\n hook.call(directive);\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n profiler(5 /* ProfilerEvent.LifecycleHookEnd */, directive, hook);\n }\n}\n/**\n * Execute one hook against the current `LView`.\n *\n * @param currentView The current view\n * @param initPhaseState the current state of the init phase\n * @param arr The array in which the hooks are found\n * @param i The current index within the hook data array\n */\nfunction callHook(currentView, initPhase, arr, i) {\n const isInitHook = arr[i] < 0;\n const hook = arr[i + 1];\n const directiveIndex = isInitHook ? -arr[i] : arr[i];\n const directive = currentView[directiveIndex];\n if (isInitHook) {\n const indexWithintInitPhase = currentView[FLAGS] >> 14 /* LViewFlags.IndexWithinInitPhaseShift */;\n // The init phase state must be always checked here as it may have been recursively updated.\n if (indexWithintInitPhase <\n currentView[PREORDER_HOOK_FLAGS] >> 16 /* PreOrderHookFlags.NumberOfInitHooksCalledShift */ &&\n (currentView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n currentView[FLAGS] += 16384 /* LViewFlags.IndexWithinInitPhaseIncrementer */;\n callHookInternal(directive, hook);\n }\n }\n else {\n callHookInternal(directive, hook);\n }\n}\n\nconst NO_PARENT_INJECTOR = -1;\n/**\n * Each injector is saved in 9 contiguous slots in `LView` and 9 contiguous slots in\n * `TView.data`. This allows us to store information about the current node's tokens (which\n * can be shared in `TView`) as well as the tokens of its ancestor nodes (which cannot be\n * shared, so they live in `LView`).\n *\n * Each of these slots (aside from the last slot) contains a bloom filter. This bloom filter\n * determines whether a directive is available on the associated node or not. This prevents us\n * from searching the directives array at this level unless it's probable the directive is in it.\n *\n * See: https://en.wikipedia.org/wiki/Bloom_filter for more about bloom filters.\n *\n * Because all injectors have been flattened into `LView` and `TViewData`, they cannot typed\n * using interfaces as they were previously. The start index of each `LInjector` and `TInjector`\n * will differ based on where it is flattened into the main array, so it's not possible to know\n * the indices ahead of time and save their types here. The interfaces are still included here\n * for documentation purposes.\n *\n * export interface LInjector extends Array<any> {\n *\n * // Cumulative bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)\n * [0]: number;\n *\n * // Cumulative bloom for directive IDs 32-63\n * [1]: number;\n *\n * // Cumulative bloom for directive IDs 64-95\n * [2]: number;\n *\n * // Cumulative bloom for directive IDs 96-127\n * [3]: number;\n *\n * // Cumulative bloom for directive IDs 128-159\n * [4]: number;\n *\n * // Cumulative bloom for directive IDs 160 - 191\n * [5]: number;\n *\n * // Cumulative bloom for directive IDs 192 - 223\n * [6]: number;\n *\n * // Cumulative bloom for directive IDs 224 - 255\n * [7]: number;\n *\n * // We need to store a reference to the injector's parent so DI can keep looking up\n * // the injector tree until it finds the dependency it's looking for.\n * [PARENT_INJECTOR]: number;\n * }\n *\n * export interface TInjector extends Array<any> {\n *\n * // Shared node bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)\n * [0]: number;\n *\n * // Shared node bloom for directive IDs 32-63\n * [1]: number;\n *\n * // Shared node bloom for directive IDs 64-95\n * [2]: number;\n *\n * // Shared node bloom for directive IDs 96-127\n * [3]: number;\n *\n * // Shared node bloom for directive IDs 128-159\n * [4]: number;\n *\n * // Shared node bloom for directive IDs 160 - 191\n * [5]: number;\n *\n * // Shared node bloom for directive IDs 192 - 223\n * [6]: number;\n *\n * // Shared node bloom for directive IDs 224 - 255\n * [7]: number;\n *\n * // Necessary to find directive indices for a particular node.\n * [TNODE]: TElementNode|TElementContainerNode|TContainerNode;\n * }\n */\n/**\n * Factory for creating instances of injectors in the NodeInjector.\n *\n * This factory is complicated by the fact that it can resolve `multi` factories as well.\n *\n * NOTE: Some of the fields are optional which means that this class has two hidden classes.\n * - One without `multi` support (most common)\n * - One with `multi` values, (rare).\n *\n * Since VMs can cache up to 4 inline hidden classes this is OK.\n *\n * - Single factory: Only `resolving` and `factory` is defined.\n * - `providers` factory: `componentProviders` is a number and `index = -1`.\n * - `viewProviders` factory: `componentProviders` is a number and `index` points to `providers`.\n */\nclass NodeInjectorFactory {\n factory;\n /**\n * The inject implementation to be activated when using the factory.\n */\n injectImpl;\n /**\n * Marker set to true during factory invocation to see if we get into recursive loop.\n * Recursive loop causes an error to be displayed.\n */\n resolving = false;\n /**\n * Marks that the token can see other Tokens declared in `viewProviders` on the same node.\n */\n canSeeViewProviders;\n /**\n * An array of factories to use in case of `multi` provider.\n */\n multi;\n /**\n * Number of `multi`-providers which belong to the component.\n *\n * This is needed because when multiple components and directives declare the `multi` provider\n * they have to be concatenated in the correct order.\n *\n * Example:\n *\n * If we have a component and directive active an a single element as declared here\n * ```ts\n * component:\n * providers: [ {provide: String, useValue: 'component', multi: true} ],\n * viewProviders: [ {provide: String, useValue: 'componentView', multi: true} ],\n *\n * directive:\n * providers: [ {provide: String, useValue: 'directive', multi: true} ],\n * ```\n *\n * Then the expected results are:\n *\n * ```ts\n * providers: ['component', 'directive']\n * viewProviders: ['component', 'componentView', 'directive']\n * ```\n *\n * The way to think about it is that the `viewProviders` have been inserted after the component\n * but before the directives, which is why we need to know how many `multi`s have been declared by\n * the component.\n */\n componentProviders;\n /**\n * Current index of the Factory in the `data`. Needed for `viewProviders` and `providers` merging.\n * See `providerFactory`.\n */\n index;\n /**\n * Because the same `multi` provider can be declared in `providers` and `viewProviders` it is\n * possible for `viewProviders` to shadow the `providers`. For this reason we store the\n * `provideFactory` of the `providers` so that `providers` can be extended with `viewProviders`.\n *\n * Example:\n *\n * Given:\n * ```ts\n * providers: [ {provide: String, useValue: 'all', multi: true} ],\n * viewProviders: [ {provide: String, useValue: 'viewOnly', multi: true} ],\n * ```\n *\n * We have to return `['all']` in case of content injection, but `['all', 'viewOnly']` in case\n * of view injection. We further have to make sure that the shared instances (in our case\n * `all`) are the exact same instance in both the content as well as the view injection. (We\n * have to make sure that we don't double instantiate.) For this reason the `viewProviders`\n * `Factory` has a pointer to the shadowed `providers` factory so that it can instantiate the\n * `providers` (`['all']`) and then extend it with `viewProviders` (`['all'] + ['viewOnly'] =\n * ['all', 'viewOnly']`).\n */\n providerFactory;\n constructor(\n /**\n * Factory to invoke in order to create a new instance.\n */\n factory, \n /**\n * Set to `true` if the token is declared in `viewProviders` (or if it is component).\n */\n isViewProvider, injectImplementation) {\n this.factory = factory;\n ngDevMode && assertDefined(factory, 'Factory not specified');\n ngDevMode && assertEqual(typeof factory, 'function', 'Expected factory function.');\n this.canSeeViewProviders = isViewProvider;\n this.injectImpl = injectImplementation;\n }\n}\nfunction isFactory(obj) {\n return obj instanceof NodeInjectorFactory;\n}\n\n/**\n * Converts `TNodeType` into human readable text.\n * Make sure this matches with `TNodeType`\n */\nfunction toTNodeTypeAsString(tNodeType) {\n let text = '';\n tNodeType & 1 /* TNodeType.Text */ && (text += '|Text');\n tNodeType & 2 /* TNodeType.Element */ && (text += '|Element');\n tNodeType & 4 /* TNodeType.Container */ && (text += '|Container');\n tNodeType & 8 /* TNodeType.ElementContainer */ && (text += '|ElementContainer');\n tNodeType & 16 /* TNodeType.Projection */ && (text += '|Projection');\n tNodeType & 32 /* TNodeType.Icu */ && (text += '|IcuContainer');\n tNodeType & 64 /* TNodeType.Placeholder */ && (text += '|Placeholder');\n tNodeType & 128 /* TNodeType.LetDeclaration */ && (text += '|LetDeclaration');\n return text.length > 0 ? text.substring(1) : text;\n}\n/**\n * Helper function to detect if a given value matches a `TNode` shape.\n *\n * The logic uses the `insertBeforeIndex` and its possible values as\n * a way to differentiate a TNode shape from other types of objects\n * within the `TView.data`. This is not a perfect check, but it can\n * be a reasonable differentiator, since we control the shapes of objects\n * within `TView.data`.\n */\nfunction isTNodeShape(value) {\n return (value != null &&\n typeof value === 'object' &&\n (value.insertBeforeIndex === null ||\n typeof value.insertBeforeIndex === 'number' ||\n Array.isArray(value.insertBeforeIndex)));\n}\nfunction isLetDeclaration(tNode) {\n return !!(tNode.type & 128 /* TNodeType.LetDeclaration */);\n}\n/**\n * Returns `true` if the `TNode` has a directive which has `@Input()` for `class` binding.\n *\n * ```html\n * <div my-dir [class]=\"exp\"></div>\n * ```\n * and\n * ```ts\n * @Directive({\n * })\n * class MyDirective {\n * @Input()\n * class: string;\n * }\n * ```\n *\n * In the above case it is necessary to write the reconciled styling information into the\n * directive's input.\n *\n * @param tNode\n */\nfunction hasClassInput(tNode) {\n return (tNode.flags & 8 /* TNodeFlags.hasClassInput */) !== 0;\n}\n/**\n * Returns `true` if the `TNode` has a directive which has `@Input()` for `style` binding.\n *\n * ```html\n * <div my-dir [style]=\"exp\"></div>\n * ```\n * and\n * ```ts\n * @Directive({\n * })\n * class MyDirective {\n * @Input()\n * class: string;\n * }\n * ```\n *\n * In the above case it is necessary to write the reconciled styling information into the\n * directive's input.\n *\n * @param tNode\n */\nfunction hasStyleInput(tNode) {\n return (tNode.flags & 16 /* TNodeFlags.hasStyleInput */) !== 0;\n}\n\nfunction assertTNodeType(tNode, expectedTypes, message) {\n assertDefined(tNode, 'should be called with a TNode');\n if ((tNode.type & expectedTypes) === 0) {\n throwError(message ||\n `Expected [${toTNodeTypeAsString(expectedTypes)}] but got ${toTNodeTypeAsString(tNode.type)}.`);\n }\n}\nfunction assertPureTNodeType(type) {\n if (!(type === 2 /* TNodeType.Element */ ||\n type === 1 /* TNodeType.Text */ ||\n type === 4 /* TNodeType.Container */ ||\n type === 8 /* TNodeType.ElementContainer */ ||\n type === 32 /* TNodeType.Icu */ ||\n type === 16 /* TNodeType.Projection */ ||\n type === 64 /* TNodeType.Placeholder */ ||\n type === 128 /* TNodeType.LetDeclaration */)) {\n throwError(`Expected TNodeType to have only a single type selected, but got ${toTNodeTypeAsString(type)}.`);\n }\n}\n\n/**\n * Assigns all attribute values to the provided element via the inferred renderer.\n *\n * This function accepts two forms of attribute entries:\n *\n * default: (key, value):\n * attrs = [key1, value1, key2, value2]\n *\n * namespaced: (NAMESPACE_MARKER, uri, name, value)\n * attrs = [NAMESPACE_MARKER, uri, name, value, NAMESPACE_MARKER, uri, name, value]\n *\n * The `attrs` array can contain a mix of both the default and namespaced entries.\n * The \"default\" values are set without a marker, but if the function comes across\n * a marker value then it will attempt to set a namespaced value. If the marker is\n * not of a namespaced value then the function will quit and return the index value\n * where it stopped during the iteration of the attrs array.\n *\n * See [AttributeMarker] to understand what the namespace marker value is.\n *\n * Note that this instruction does not support assigning style and class values to\n * an element. See `elementStart` and `elementHostAttrs` to learn how styling values\n * are applied to an element.\n * @param renderer The renderer to be used\n * @param native The element that the attributes will be assigned to\n * @param attrs The attribute array of values that will be assigned to the element\n * @returns the index value that was last accessed in the attributes array\n */\nfunction setUpAttributes(renderer, native, attrs) {\n let i = 0;\n while (i < attrs.length) {\n const value = attrs[i];\n if (typeof value === 'number') {\n // only namespaces are supported. Other value types (such as style/class\n // entries) are not supported in this function.\n if (value !== 0 /* AttributeMarker.NamespaceURI */) {\n break;\n }\n // we just landed on the marker value ... therefore\n // we should skip to the next entry\n i++;\n const namespaceURI = attrs[i++];\n const attrName = attrs[i++];\n const attrVal = attrs[i++];\n ngDevMode && ngDevMode.rendererSetAttribute++;\n renderer.setAttribute(native, attrName, attrVal, namespaceURI);\n }\n else {\n // attrName is string;\n const attrName = value;\n const attrVal = attrs[++i];\n // Standard attributes\n ngDevMode && ngDevMode.rendererSetAttribute++;\n if (isAnimationProp(attrName)) {\n renderer.setProperty(native, attrName, attrVal);\n }\n else {\n renderer.setAttribute(native, attrName, attrVal);\n }\n i++;\n }\n }\n // another piece of code may iterate over the same attributes array. Therefore\n // it may be helpful to return the exact spot where the attributes array exited\n // whether by running into an unsupported marker or if all the static values were\n // iterated over.\n return i;\n}\n/**\n * Test whether the given value is a marker that indicates that the following\n * attribute values in a `TAttributes` array are only the names of attributes,\n * and not name-value pairs.\n * @param marker The attribute marker to test.\n * @returns true if the marker is a \"name-only\" marker (e.g. `Bindings`, `Template` or `I18n`).\n */\nfunction isNameOnlyAttributeMarker(marker) {\n return (marker === 3 /* AttributeMarker.Bindings */ ||\n marker === 4 /* AttributeMarker.Template */ ||\n marker === 6 /* AttributeMarker.I18n */);\n}\nfunction isAnimationProp(name) {\n // Perf note: accessing charCodeAt to check for the first character of a string is faster as\n // compared to accessing a character at index 0 (ex. name[0]). The main reason for this is that\n // charCodeAt doesn't allocate memory to return a substring.\n return name.charCodeAt(0) === 64 /* CharCode.AT_SIGN */;\n}\n/**\n * Merges `src` `TAttributes` into `dst` `TAttributes` removing any duplicates in the process.\n *\n * This merge function keeps the order of attrs same.\n *\n * @param dst Location of where the merged `TAttributes` should end up.\n * @param src `TAttributes` which should be appended to `dst`\n */\nfunction mergeHostAttrs(dst, src) {\n if (src === null || src.length === 0) {\n // do nothing\n }\n else if (dst === null || dst.length === 0) {\n // We have source, but dst is empty, just make a copy.\n dst = src.slice();\n }\n else {\n let srcMarker = -1 /* AttributeMarker.ImplicitAttributes */;\n for (let i = 0; i < src.length; i++) {\n const item = src[i];\n if (typeof item === 'number') {\n srcMarker = item;\n }\n else {\n if (srcMarker === 0 /* AttributeMarker.NamespaceURI */) {\n // Case where we need to consume `key1`, `key2`, `value` items.\n }\n else if (srcMarker === -1 /* AttributeMarker.ImplicitAttributes */ ||\n srcMarker === 2 /* AttributeMarker.Styles */) {\n // Case where we have to consume `key1` and `value` only.\n mergeHostAttribute(dst, srcMarker, item, null, src[++i]);\n }\n else {\n // Case where we have to consume `key1` only.\n mergeHostAttribute(dst, srcMarker, item, null, null);\n }\n }\n }\n }\n return dst;\n}\n/**\n * Append `key`/`value` to existing `TAttributes` taking region marker and duplicates into account.\n *\n * @param dst `TAttributes` to append to.\n * @param marker Region where the `key`/`value` should be added.\n * @param key1 Key to add to `TAttributes`\n * @param key2 Key to add to `TAttributes` (in case of `AttributeMarker.NamespaceURI`)\n * @param value Value to add or to overwrite to `TAttributes` Only used if `marker` is not Class.\n */\nfunction mergeHostAttribute(dst, marker, key1, key2, value) {\n let i = 0;\n // Assume that new markers will be inserted at the end.\n let markerInsertPosition = dst.length;\n // scan until correct type.\n if (marker === -1 /* AttributeMarker.ImplicitAttributes */) {\n markerInsertPosition = -1;\n }\n else {\n while (i < dst.length) {\n const dstValue = dst[i++];\n if (typeof dstValue === 'number') {\n if (dstValue === marker) {\n markerInsertPosition = -1;\n break;\n }\n else if (dstValue > marker) {\n // We need to save this as we want the markers to be inserted in specific order.\n markerInsertPosition = i - 1;\n break;\n }\n }\n }\n }\n // search until you find place of insertion\n while (i < dst.length) {\n const item = dst[i];\n if (typeof item === 'number') {\n // since `i` started as the index after the marker, we did not find it if we are at the next\n // marker\n break;\n }\n else if (item === key1) {\n // We already have same token\n if (key2 === null) {\n if (value !== null) {\n dst[i + 1] = value;\n }\n return;\n }\n else if (key2 === dst[i + 1]) {\n dst[i + 2] = value;\n return;\n }\n }\n // Increment counter.\n i++;\n if (key2 !== null)\n i++;\n if (value !== null)\n i++;\n }\n // insert at location.\n if (markerInsertPosition !== -1) {\n dst.splice(markerInsertPosition, 0, marker);\n i = markerInsertPosition + 1;\n }\n dst.splice(i++, 0, key1);\n if (key2 !== null) {\n dst.splice(i++, 0, key2);\n }\n if (value !== null) {\n dst.splice(i++, 0, value);\n }\n}\n\n// This default value is when checking the hierarchy for a token.\n//\n// It means both:\n// - the token is not provided by the current injector,\n// - only the element injectors should be checked (ie do not check module injectors\n//\n// mod1\n// /\n// el1 mod2\n// \\ /\n// el2\n//\n// When requesting el2.injector.get(token), we should check in the following order and return the\n// first found value:\n// - el2.injector.get(token, default)\n// - el1.injector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) -> do not check the module\n// - mod2.injector.get(token, default)\nconst NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR = {};\n\n/**\n * Injector that looks up a value using a specific injector, before falling back to the module\n * injector. Used primarily when creating components or embedded views dynamically.\n */\nclass ChainedInjector {\n injector;\n parentInjector;\n constructor(injector, parentInjector) {\n this.injector = injector;\n this.parentInjector = parentInjector;\n }\n get(token, notFoundValue, flags) {\n flags = convertToBitFlags(flags);\n const value = this.injector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, flags);\n if (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR ||\n notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) {\n // Return the value from the root element injector when\n // - it provides it\n // (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)\n // - the module injector should not be checked\n // (notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)\n return value;\n }\n return this.parentInjector.get(token, notFoundValue, flags);\n }\n}\n\n/// Parent Injector Utils ///////////////////////////////////////////////////////////////\nfunction hasParentInjector(parentLocation) {\n return parentLocation !== NO_PARENT_INJECTOR;\n}\nfunction getParentInjectorIndex(parentLocation) {\n if (ngDevMode) {\n assertNumber(parentLocation, 'Number expected');\n assertNotEqual(parentLocation, -1, 'Not a valid state.');\n const parentInjectorIndex = parentLocation & 32767 /* RelativeInjectorLocationFlags.InjectorIndexMask */;\n assertGreaterThan(parentInjectorIndex, HEADER_OFFSET, 'Parent injector must be pointing past HEADER_OFFSET.');\n }\n return parentLocation & 32767 /* RelativeInjectorLocationFlags.InjectorIndexMask */;\n}\nfunction getParentInjectorViewOffset(parentLocation) {\n return parentLocation >> 16 /* RelativeInjectorLocationFlags.ViewOffsetShift */;\n}\n/**\n * Unwraps a parent injector location number to find the view offset from the current injector,\n * then walks up the declaration view tree until the view is found that contains the parent\n * injector.\n *\n * @param location The location of the parent injector, which contains the view offset\n * @param startView The LView instance from which to start walking up the view tree\n * @returns The LView instance that contains the parent injector\n */\nfunction getParentInjectorView(location, startView) {\n let viewOffset = getParentInjectorViewOffset(location);\n let parentView = startView;\n // For most cases, the parent injector can be found on the host node (e.g. for component\n // or container), but we must keep the loop here to support the rarer case of deeply nested\n // <ng-template> tags or inline views, where the parent injector might live many views\n // above the child injector.\n while (viewOffset > 0) {\n parentView = parentView[DECLARATION_VIEW];\n viewOffset--;\n }\n return parentView;\n}\n/**\n * Detects whether an injector is an instance of a `ChainedInjector`,\n * created based on the `OutletInjector`.\n */\nfunction isRouterOutletInjector(currentInjector) {\n return (currentInjector instanceof ChainedInjector &&\n typeof currentInjector.injector.__ngOutletInjector === 'function');\n}\n\n/**\n * Defines if the call to `inject` should include `viewProviders` in its resolution.\n *\n * This is set to true when we try to instantiate a component. This value is reset in\n * `getNodeInjectable` to a value which matches the declaration location of the token about to be\n * instantiated. This is done so that if we are injecting a token which was declared outside of\n * `viewProviders` we don't accidentally pull `viewProviders` in.\n *\n * Example:\n *\n * ```ts\n * @Injectable()\n * class MyService {\n * constructor(public value: String) {}\n * }\n *\n * @Component({\n * providers: [\n * MyService,\n * {provide: String, value: 'providers' }\n * ]\n * viewProviders: [\n * {provide: String, value: 'viewProviders'}\n * ]\n * })\n * class MyComponent {\n * constructor(myService: MyService, value: String) {\n * // We expect that Component can see into `viewProviders`.\n * expect(value).toEqual('viewProviders');\n * // `MyService` was not declared in `viewProviders` hence it can't see it.\n * expect(myService.value).toEqual('providers');\n * }\n * }\n *\n * ```\n */\nlet includeViewProviders = true;\nfunction setIncludeViewProviders(v) {\n const oldValue = includeViewProviders;\n includeViewProviders = v;\n return oldValue;\n}\n/**\n * The number of slots in each bloom filter (used by DI). The larger this number, the fewer\n * directives that will share slots, and thus, the fewer false positives when checking for\n * the existence of a directive.\n */\nconst BLOOM_SIZE = 256;\nconst BLOOM_MASK = BLOOM_SIZE - 1;\n/**\n * The number of bits that is represented by a single bloom bucket. JS bit operations are 32 bits,\n * so each bucket represents 32 distinct tokens which accounts for log2(32) = 5 bits of a bloom hash\n * number.\n */\nconst BLOOM_BUCKET_BITS = 5;\n/** Counter used to generate unique IDs for directives. */\nlet nextNgElementId = 0;\n/** Value used when something wasn't found by an injector. */\nconst NOT_FOUND = {};\n/**\n * Registers this directive as present in its node's injector by flipping the directive's\n * corresponding bit in the injector's bloom filter.\n *\n * @param injectorIndex The index of the node injector where this token should be registered\n * @param tView The TView for the injector's bloom filters\n * @param type The directive token to register\n */\nfunction bloomAdd(injectorIndex, tView, type) {\n ngDevMode && assertEqual(tView.firstCreatePass, true, 'expected firstCreatePass to be true');\n let id;\n if (typeof type === 'string') {\n id = type.charCodeAt(0) || 0;\n }\n else if (type.hasOwnProperty(NG_ELEMENT_ID)) {\n id = type[NG_ELEMENT_ID];\n }\n // Set a unique ID on the directive type, so if something tries to inject the directive,\n // we can easily retrieve the ID and hash it into the bloom bit that should be checked.\n if (id == null) {\n id = type[NG_ELEMENT_ID] = nextNgElementId++;\n }\n // We only have BLOOM_SIZE (256) slots in our bloom filter (8 buckets * 32 bits each),\n // so all unique IDs must be modulo-ed into a number from 0 - 255 to fit into the filter.\n const bloomHash = id & BLOOM_MASK;\n // Create a mask that targets the specific bit associated with the directive.\n // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding\n // to bit positions 0 - 31 in a 32 bit integer.\n const mask = 1 << bloomHash;\n // Each bloom bucket in `tData` represents `BLOOM_BUCKET_BITS` number of bits of `bloomHash`.\n // Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset that the mask\n // should be written to.\n tView.data[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)] |= mask;\n}\n/**\n * Creates (or gets an existing) injector for a given element or container.\n *\n * @param tNode for which an injector should be retrieved / created.\n * @param lView View where the node is stored\n * @returns Node injector\n */\nfunction getOrCreateNodeInjectorForNode(tNode, lView) {\n const existingInjectorIndex = getInjectorIndex(tNode, lView);\n if (existingInjectorIndex !== -1) {\n return existingInjectorIndex;\n }\n const tView = lView[TVIEW];\n if (tView.firstCreatePass) {\n tNode.injectorIndex = lView.length;\n insertBloom(tView.data, tNode); // foundation for node bloom\n insertBloom(lView, null); // foundation for cumulative bloom\n insertBloom(tView.blueprint, null);\n }\n const parentLoc = getParentInjectorLocation(tNode, lView);\n const injectorIndex = tNode.injectorIndex;\n // If a parent injector can't be found, its location is set to -1.\n // In that case, we don't need to set up a cumulative bloom\n if (hasParentInjector(parentLoc)) {\n const parentIndex = getParentInjectorIndex(parentLoc);\n const parentLView = getParentInjectorView(parentLoc, lView);\n const parentData = parentLView[TVIEW].data;\n // Creates a cumulative bloom filter that merges the parent's bloom filter\n // and its own cumulative bloom (which contains tokens for all ancestors)\n for (let i = 0; i < 8 /* NodeInjectorOffset.BLOOM_SIZE */; i++) {\n lView[injectorIndex + i] = parentLView[parentIndex + i] | parentData[parentIndex + i];\n }\n }\n lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */] = parentLoc;\n return injectorIndex;\n}\nfunction insertBloom(arr, footer) {\n arr.push(0, 0, 0, 0, 0, 0, 0, 0, footer);\n}\nfunction getInjectorIndex(tNode, lView) {\n if (tNode.injectorIndex === -1 ||\n // If the injector index is the same as its parent's injector index, then the index has been\n // copied down from the parent node. No injector has been created yet on this node.\n (tNode.parent && tNode.parent.injectorIndex === tNode.injectorIndex) ||\n // After the first template pass, the injector index might exist but the parent values\n // might not have been calculated yet for this instance\n lView[tNode.injectorIndex + 8 /* NodeInjectorOffset.PARENT */] === null) {\n return -1;\n }\n else {\n ngDevMode && assertIndexInRange(lView, tNode.injectorIndex);\n return tNode.injectorIndex;\n }\n}\n/**\n * Finds the index of the parent injector, with a view offset if applicable. Used to set the\n * parent injector initially.\n *\n * @returns Returns a number that is the combination of the number of LViews that we have to go up\n * to find the LView containing the parent inject AND the index of the injector within that LView.\n */\nfunction getParentInjectorLocation(tNode, lView) {\n if (tNode.parent && tNode.parent.injectorIndex !== -1) {\n // If we have a parent `TNode` and there is an injector associated with it we are done, because\n // the parent injector is within the current `LView`.\n return tNode.parent.injectorIndex; // ViewOffset is 0\n }\n // When parent injector location is computed it may be outside of the current view. (ie it could\n // be pointing to a declared parent location). This variable stores number of declaration parents\n // we need to walk up in order to find the parent injector location.\n let declarationViewOffset = 0;\n let parentTNode = null;\n let lViewCursor = lView;\n // The parent injector is not in the current `LView`. We will have to walk the declared parent\n // `LView` hierarchy and look for it. If we walk of the top, that means that there is no parent\n // `NodeInjector`.\n while (lViewCursor !== null) {\n parentTNode = getTNodeFromLView(lViewCursor);\n if (parentTNode === null) {\n // If we have no parent, than we are done.\n return NO_PARENT_INJECTOR;\n }\n ngDevMode && parentTNode && assertTNodeForLView(parentTNode, lViewCursor[DECLARATION_VIEW]);\n // Every iteration of the loop requires that we go to the declared parent.\n declarationViewOffset++;\n lViewCursor = lViewCursor[DECLARATION_VIEW];\n if (parentTNode.injectorIndex !== -1) {\n // We found a NodeInjector which points to something.\n return (parentTNode.injectorIndex |\n (declarationViewOffset <<\n 16 /* RelativeInjectorLocationFlags.ViewOffsetShift */));\n }\n }\n return NO_PARENT_INJECTOR;\n}\n/**\n * Makes a type or an injection token public to the DI system by adding it to an\n * injector's bloom filter.\n *\n * @param di The node injector in which a directive will be added\n * @param token The type or the injection token to be made public\n */\nfunction diPublicInInjector(injectorIndex, tView, token) {\n bloomAdd(injectorIndex, tView, token);\n}\n/**\n * Inject static attribute value into directive constructor.\n *\n * This method is used with `factory` functions which are generated as part of\n * `defineDirective` or `defineComponent`. The method retrieves the static value\n * of an attribute. (Dynamic attributes are not supported since they are not resolved\n * at the time of injection and can change over time.)\n *\n * # Example\n * Given:\n * ```ts\n * @Component(...)\n * class MyComponent {\n * constructor(@Attribute('title') title: string) { ... }\n * }\n * ```\n * When instantiated with\n * ```html\n * <my-component title=\"Hello\"></my-component>\n * ```\n *\n * Then factory method generated is:\n * ```ts\n * MyComponent.ɵcmp = defineComponent({\n * factory: () => new MyComponent(injectAttribute('title'))\n * ...\n * })\n * ```\n *\n * @publicApi\n */\nfunction injectAttributeImpl(tNode, attrNameToInject) {\n ngDevMode && assertTNodeType(tNode, 12 /* TNodeType.AnyContainer */ | 3 /* TNodeType.AnyRNode */);\n ngDevMode && assertDefined(tNode, 'expecting tNode');\n if (attrNameToInject === 'class') {\n return tNode.classes;\n }\n if (attrNameToInject === 'style') {\n return tNode.styles;\n }\n const attrs = tNode.attrs;\n if (attrs) {\n const attrsLength = attrs.length;\n let i = 0;\n while (i < attrsLength) {\n const value = attrs[i];\n // If we hit a `Bindings` or `Template` marker then we are done.\n if (isNameOnlyAttributeMarker(value))\n break;\n // Skip namespaced attributes\n if (value === 0 /* AttributeMarker.NamespaceURI */) {\n // we skip the next two values\n // as namespaced attributes looks like\n // [..., AttributeMarker.NamespaceURI, 'http://someuri.com/test', 'test:exist',\n // 'existValue', ...]\n i = i + 2;\n }\n else if (typeof value === 'number') {\n // Skip to the first value of the marked attribute.\n i++;\n while (i < attrsLength && typeof attrs[i] === 'string') {\n i++;\n }\n }\n else if (value === attrNameToInject) {\n return attrs[i + 1];\n }\n else {\n i = i + 2;\n }\n }\n }\n return null;\n}\nfunction notFoundValueOrThrow(notFoundValue, token, flags) {\n if (flags & InjectFlags.Optional || notFoundValue !== undefined) {\n return notFoundValue;\n }\n else {\n throwProviderNotFoundError(token, 'NodeInjector');\n }\n}\n/**\n * Returns the value associated to the given token from the ModuleInjector or throws exception\n *\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector or throws an exception\n */\nfunction lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue) {\n if (flags & InjectFlags.Optional && notFoundValue === undefined) {\n // This must be set or the NullInjector will throw for optional deps\n notFoundValue = null;\n }\n if ((flags & (InjectFlags.Self | InjectFlags.Host)) === 0) {\n const moduleInjector = lView[INJECTOR];\n // switch to `injectInjectorOnly` implementation for module injector, since module injector\n // should not have access to Component/Directive DI scope (that may happen through\n // `directiveInject` implementation)\n const previousInjectImplementation = setInjectImplementation(undefined);\n try {\n if (moduleInjector) {\n return moduleInjector.get(token, notFoundValue, flags & InjectFlags.Optional);\n }\n else {\n return injectRootLimpMode(token, notFoundValue, flags & InjectFlags.Optional);\n }\n }\n finally {\n setInjectImplementation(previousInjectImplementation);\n }\n }\n return notFoundValueOrThrow(notFoundValue, token, flags);\n}\n/**\n * Returns the value associated to the given token from the NodeInjectors => ModuleInjector.\n *\n * Look for the injector providing the token by walking up the node injector tree and then\n * the module injector tree.\n *\n * This function patches `token` with `__NG_ELEMENT_ID__` which contains the id for the bloom\n * filter. `-1` is reserved for injecting `Injector` (implemented by `NodeInjector`)\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction getOrCreateInjectable(tNode, lView, token, flags = InjectFlags.Default, notFoundValue) {\n if (tNode !== null) {\n // If the view or any of its ancestors have an embedded\n // view injector, we have to look it up there first.\n if (lView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */ &&\n // The token must be present on the current node injector when the `Self`\n // flag is set, so the lookup on embedded view injector(s) can be skipped.\n !(flags & InjectFlags.Self)) {\n const embeddedInjectorValue = lookupTokenUsingEmbeddedInjector(tNode, lView, token, flags, NOT_FOUND);\n if (embeddedInjectorValue !== NOT_FOUND) {\n return embeddedInjectorValue;\n }\n }\n // Otherwise try the node injector.\n const value = lookupTokenUsingNodeInjector(tNode, lView, token, flags, NOT_FOUND);\n if (value !== NOT_FOUND) {\n return value;\n }\n }\n // Finally, fall back to the module injector.\n return lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);\n}\n/**\n * Returns the value associated to the given token from the node injector.\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction lookupTokenUsingNodeInjector(tNode, lView, token, flags, notFoundValue) {\n const bloomHash = bloomHashBitOrFactory(token);\n // If the ID stored here is a function, this is a special object like ElementRef or TemplateRef\n // so just call the factory function to create it.\n if (typeof bloomHash === 'function') {\n if (!enterDI(lView, tNode, flags)) {\n // Failed to enter DI, try module injector instead. If a token is injected with the @Host\n // flag, the module injector is not searched for that token in Ivy.\n return flags & InjectFlags.Host\n ? notFoundValueOrThrow(notFoundValue, token, flags)\n : lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);\n }\n try {\n let value;\n if (ngDevMode) {\n runInInjectorProfilerContext(new NodeInjector(getCurrentTNode(), getLView()), token, () => {\n value = bloomHash(flags);\n if (value != null) {\n emitInstanceCreatedByInjectorEvent(value);\n }\n });\n }\n else {\n value = bloomHash(flags);\n }\n if (value == null && !(flags & InjectFlags.Optional)) {\n throwProviderNotFoundError(token);\n }\n else {\n return value;\n }\n }\n finally {\n leaveDI();\n }\n }\n else if (typeof bloomHash === 'number') {\n // A reference to the previous injector TView that was found while climbing the element\n // injector tree. This is used to know if viewProviders can be accessed on the current\n // injector.\n let previousTView = null;\n let injectorIndex = getInjectorIndex(tNode, lView);\n let parentLocation = NO_PARENT_INJECTOR;\n let hostTElementNode = flags & InjectFlags.Host ? lView[DECLARATION_COMPONENT_VIEW][T_HOST] : null;\n // If we should skip this injector, or if there is no injector on this node, start by\n // searching the parent injector.\n if (injectorIndex === -1 || flags & InjectFlags.SkipSelf) {\n parentLocation =\n injectorIndex === -1\n ? getParentInjectorLocation(tNode, lView)\n : lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */];\n if (parentLocation === NO_PARENT_INJECTOR || !shouldSearchParent(flags, false)) {\n injectorIndex = -1;\n }\n else {\n previousTView = lView[TVIEW];\n injectorIndex = getParentInjectorIndex(parentLocation);\n lView = getParentInjectorView(parentLocation, lView);\n }\n }\n // Traverse up the injector tree until we find a potential match or until we know there\n // *isn't* a match.\n while (injectorIndex !== -1) {\n ngDevMode && assertNodeInjector(lView, injectorIndex);\n // Check the current injector. If it matches, see if it contains token.\n const tView = lView[TVIEW];\n ngDevMode &&\n assertTNodeForLView(tView.data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */], lView);\n if (bloomHasToken(bloomHash, injectorIndex, tView.data)) {\n // At this point, we have an injector which *may* contain the token, so we step through\n // the providers and directives associated with the injector's corresponding node to get\n // the instance.\n const instance = searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode);\n if (instance !== NOT_FOUND) {\n return instance;\n }\n }\n parentLocation = lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */];\n if (parentLocation !== NO_PARENT_INJECTOR &&\n shouldSearchParent(flags, lView[TVIEW].data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */] === hostTElementNode) &&\n bloomHasToken(bloomHash, injectorIndex, lView)) {\n // The def wasn't found anywhere on this node, so it was a false positive.\n // Traverse up the tree and continue searching.\n previousTView = tView;\n injectorIndex = getParentInjectorIndex(parentLocation);\n lView = getParentInjectorView(parentLocation, lView);\n }\n else {\n // If we should not search parent OR If the ancestor bloom filter value does not have the\n // bit corresponding to the directive we can give up on traversing up to find the specific\n // injector.\n injectorIndex = -1;\n }\n }\n }\n return notFoundValue;\n}\nfunction searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode) {\n const currentTView = lView[TVIEW];\n const tNode = currentTView.data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */];\n // First, we need to determine if view providers can be accessed by the starting element.\n // There are two possibilities\n const canAccessViewProviders = previousTView == null\n ? // 1) This is the first invocation `previousTView == null` which means that we are at the\n // `TNode` of where injector is starting to look. In such a case the only time we are allowed\n // to look into the ViewProviders is if:\n // - we are on a component\n // - AND the injector set `includeViewProviders` to true (implying that the token can see\n // ViewProviders because it is the Component or a Service which itself was declared in\n // ViewProviders)\n isComponentHost(tNode) && includeViewProviders\n : // 2) `previousTView != null` which means that we are now walking across the parent nodes.\n // In such a case we are only allowed to look into the ViewProviders if:\n // - We just crossed from child View to Parent View `previousTView != currentTView`\n // - AND the parent TNode is an Element.\n // This means that we just came from the Component's View and therefore are allowed to see\n // into the ViewProviders.\n previousTView != currentTView && (tNode.type & 3 /* TNodeType.AnyRNode */) !== 0;\n // This special case happens when there is a @host on the inject and when we are searching\n // on the host element node.\n const isHostSpecialCase = flags & InjectFlags.Host && hostTElementNode === tNode;\n const injectableIdx = locateDirectiveOrProvider(tNode, currentTView, token, canAccessViewProviders, isHostSpecialCase);\n if (injectableIdx !== null) {\n return getNodeInjectable(lView, currentTView, injectableIdx, tNode);\n }\n else {\n return NOT_FOUND;\n }\n}\n/**\n * Searches for the given token among the node's directives and providers.\n *\n * @param tNode TNode on which directives are present.\n * @param tView The tView we are currently processing\n * @param token Provider token or type of a directive to look for.\n * @param canAccessViewProviders Whether view providers should be considered.\n * @param isHostSpecialCase Whether the host special case applies.\n * @returns Index of a found directive or provider, or null when none found.\n */\nfunction locateDirectiveOrProvider(tNode, tView, token, canAccessViewProviders, isHostSpecialCase) {\n const nodeProviderIndexes = tNode.providerIndexes;\n const tInjectables = tView.data;\n const injectablesStart = nodeProviderIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;\n const directivesStart = tNode.directiveStart;\n const directiveEnd = tNode.directiveEnd;\n const cptViewProvidersCount = nodeProviderIndexes >> 20 /* TNodeProviderIndexes.CptViewProvidersCountShift */;\n const startingIndex = canAccessViewProviders\n ? injectablesStart\n : injectablesStart + cptViewProvidersCount;\n // When the host special case applies, only the viewProviders and the component are visible\n const endIndex = isHostSpecialCase ? injectablesStart + cptViewProvidersCount : directiveEnd;\n for (let i = startingIndex; i < endIndex; i++) {\n const providerTokenOrDef = tInjectables[i];\n if ((i < directivesStart && token === providerTokenOrDef) ||\n (i >= directivesStart && providerTokenOrDef.type === token)) {\n return i;\n }\n }\n if (isHostSpecialCase) {\n const dirDef = tInjectables[directivesStart];\n if (dirDef && isComponentDef(dirDef) && dirDef.type === token) {\n return directivesStart;\n }\n }\n return null;\n}\n/**\n * Retrieve or instantiate the injectable from the `LView` at particular `index`.\n *\n * This function checks to see if the value has already been instantiated and if so returns the\n * cached `injectable`. Otherwise if it detects that the value is still a factory it\n * instantiates the `injectable` and caches the value.\n */\nfunction getNodeInjectable(lView, tView, index, tNode) {\n let value = lView[index];\n const tData = tView.data;\n if (isFactory(value)) {\n const factory = value;\n if (factory.resolving) {\n throwCyclicDependencyError(stringifyForError(tData[index]));\n }\n const previousIncludeViewProviders = setIncludeViewProviders(factory.canSeeViewProviders);\n factory.resolving = true;\n let prevInjectContext;\n if (ngDevMode) {\n // tData indexes mirror the concrete instances in its corresponding LView.\n // lView[index] here is either the injectable instace itself or a factory,\n // therefore tData[index] is the constructor of that injectable or a\n // definition object that contains the constructor in a `.type` field.\n const token = tData[index].type || tData[index];\n const injector = new NodeInjector(tNode, lView);\n prevInjectContext = setInjectorProfilerContext({ injector, token });\n }\n const previousInjectImplementation = factory.injectImpl\n ? setInjectImplementation(factory.injectImpl)\n : null;\n const success = enterDI(lView, tNode, InjectFlags.Default);\n ngDevMode &&\n assertEqual(success, true, \"Because flags do not contain `SkipSelf' we expect this to always succeed.\");\n try {\n value = lView[index] = factory.factory(undefined, tData, lView, tNode);\n ngDevMode && emitInstanceCreatedByInjectorEvent(value);\n // This code path is hit for both directives and providers.\n // For perf reasons, we want to avoid searching for hooks on providers.\n // It does no harm to try (the hooks just won't exist), but the extra\n // checks are unnecessary and this is a hot path. So we check to see\n // if the index of the dependency is in the directive range for this\n // tNode. If it's not, we know it's a provider and skip hook registration.\n if (tView.firstCreatePass && index >= tNode.directiveStart) {\n ngDevMode && assertDirectiveDef(tData[index]);\n registerPreOrderHooks(index, tData[index], tView);\n }\n }\n finally {\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n previousInjectImplementation !== null &&\n setInjectImplementation(previousInjectImplementation);\n setIncludeViewProviders(previousIncludeViewProviders);\n factory.resolving = false;\n leaveDI();\n }\n }\n return value;\n}\n/**\n * Returns the bit in an injector's bloom filter that should be used to determine whether or not\n * the directive might be provided by the injector.\n *\n * When a directive is public, it is added to the bloom filter and given a unique ID that can be\n * retrieved on the Type. When the directive isn't public or the token is not a directive `null`\n * is returned as the node injector can not possibly provide that token.\n *\n * @param token the injection token\n * @returns the matching bit to check in the bloom filter or `null` if the token is not known.\n * When the returned value is negative then it represents special values such as `Injector`.\n */\nfunction bloomHashBitOrFactory(token) {\n ngDevMode && assertDefined(token, 'token must be defined');\n if (typeof token === 'string') {\n return token.charCodeAt(0) || 0;\n }\n const tokenId = \n // First check with `hasOwnProperty` so we don't get an inherited ID.\n token.hasOwnProperty(NG_ELEMENT_ID) ? token[NG_ELEMENT_ID] : undefined;\n // Negative token IDs are used for special objects such as `Injector`\n if (typeof tokenId === 'number') {\n if (tokenId >= 0) {\n return tokenId & BLOOM_MASK;\n }\n else {\n ngDevMode &&\n assertEqual(tokenId, -1 /* InjectorMarkers.Injector */, 'Expecting to get Special Injector Id');\n return createNodeInjector;\n }\n }\n else {\n return tokenId;\n }\n}\nfunction bloomHasToken(bloomHash, injectorIndex, injectorView) {\n // Create a mask that targets the specific bit associated with the directive we're looking for.\n // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding\n // to bit positions 0 - 31 in a 32 bit integer.\n const mask = 1 << bloomHash;\n // Each bloom bucket in `injectorView` represents `BLOOM_BUCKET_BITS` number of bits of\n // `bloomHash`. Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset\n // that should be used.\n const value = injectorView[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)];\n // If the bloom filter value has the bit corresponding to the directive's bloomBit flipped on,\n // this injector is a potential match.\n return !!(value & mask);\n}\n/** Returns true if flags prevent parent injector from being searched for tokens */\nfunction shouldSearchParent(flags, isFirstHostTNode) {\n return !(flags & InjectFlags.Self) && !(flags & InjectFlags.Host && isFirstHostTNode);\n}\nfunction getNodeInjectorLView(nodeInjector) {\n return nodeInjector._lView;\n}\nfunction getNodeInjectorTNode(nodeInjector) {\n return nodeInjector._tNode;\n}\nclass NodeInjector {\n _tNode;\n _lView;\n constructor(_tNode, _lView) {\n this._tNode = _tNode;\n this._lView = _lView;\n }\n get(token, notFoundValue, flags) {\n return getOrCreateInjectable(this._tNode, this._lView, token, convertToBitFlags(flags), notFoundValue);\n }\n}\n/** Creates a `NodeInjector` for the current node. */\nfunction createNodeInjector() {\n return new NodeInjector(getCurrentTNode(), getLView());\n}\n/**\n * @codeGenApi\n */\nfunction ɵɵgetInheritedFactory(type) {\n return noSideEffects(() => {\n const ownConstructor = type.prototype.constructor;\n const ownFactory = ownConstructor[NG_FACTORY_DEF] || getFactoryOf(ownConstructor);\n const objectPrototype = Object.prototype;\n let parent = Object.getPrototypeOf(type.prototype).constructor;\n // Go up the prototype until we hit `Object`.\n while (parent && parent !== objectPrototype) {\n const factory = parent[NG_FACTORY_DEF] || getFactoryOf(parent);\n // If we hit something that has a factory and the factory isn't the same as the type,\n // we've found the inherited factory. Note the check that the factory isn't the type's\n // own factory is redundant in most cases, but if the user has custom decorators on the\n // class, this lookup will start one level down in the prototype chain, causing us to\n // find the own factory first and potentially triggering an infinite loop downstream.\n if (factory && factory !== ownFactory) {\n return factory;\n }\n parent = Object.getPrototypeOf(parent);\n }\n // There is no factory defined. Either this was improper usage of inheritance\n // (no Angular decorator on the superclass) or there is no constructor at all\n // in the inheritance chain. Since the two cases cannot be distinguished, the\n // latter has to be assumed.\n return (t) => new t();\n });\n}\nfunction getFactoryOf(type) {\n if (isForwardRef(type)) {\n return () => {\n const factory = getFactoryOf(resolveForwardRef(type));\n return factory && factory();\n };\n }\n return getFactoryDef(type);\n}\n/**\n * Returns a value from the closest embedded or node injector.\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction lookupTokenUsingEmbeddedInjector(tNode, lView, token, flags, notFoundValue) {\n let currentTNode = tNode;\n let currentLView = lView;\n // When an LView with an embedded view injector is inserted, it'll likely be interlaced with\n // nodes who may have injectors (e.g. node injector -> embedded view injector -> node injector).\n // Since the bloom filters for the node injectors have already been constructed and we don't\n // have a way of extracting the records from an injector, the only way to maintain the correct\n // hierarchy when resolving the value is to walk it node-by-node while attempting to resolve\n // the token at each level.\n while (currentTNode !== null &&\n currentLView !== null &&\n currentLView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */ &&\n !isRootView(currentLView)) {\n ngDevMode && assertTNodeForLView(currentTNode, currentLView);\n // Note that this lookup on the node injector is using the `Self` flag, because\n // we don't want the node injector to look at any parent injectors since we\n // may hit the embedded view injector first.\n const nodeInjectorValue = lookupTokenUsingNodeInjector(currentTNode, currentLView, token, flags | InjectFlags.Self, NOT_FOUND);\n if (nodeInjectorValue !== NOT_FOUND) {\n return nodeInjectorValue;\n }\n // Has an explicit type due to a TS bug: https://github.com/microsoft/TypeScript/issues/33191\n let parentTNode = currentTNode.parent;\n // `TNode.parent` includes the parent within the current view only. If it doesn't exist,\n // it means that we've hit the view boundary and we need to go up to the next view.\n if (!parentTNode) {\n // Before we go to the next LView, check if the token exists on the current embedded injector.\n const embeddedViewInjector = currentLView[EMBEDDED_VIEW_INJECTOR];\n if (embeddedViewInjector) {\n const embeddedViewInjectorValue = embeddedViewInjector.get(token, NOT_FOUND, flags);\n if (embeddedViewInjectorValue !== NOT_FOUND) {\n return embeddedViewInjectorValue;\n }\n }\n // Otherwise keep going up the tree.\n parentTNode = getTNodeFromLView(currentLView);\n currentLView = currentLView[DECLARATION_VIEW];\n }\n currentTNode = parentTNode;\n }\n return notFoundValue;\n}\n/** Gets the TNode associated with an LView inside of the declaration view. */\nfunction getTNodeFromLView(lView) {\n const tView = lView[TVIEW];\n const tViewType = tView.type;\n // The parent pointer differs based on `TView.type`.\n if (tViewType === 2 /* TViewType.Embedded */) {\n ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');\n return tView.declTNode;\n }\n else if (tViewType === 1 /* TViewType.Component */) {\n // Components don't have `TView.declTNode` because each instance of component could be\n // inserted in different location, hence `TView.declTNode` is meaningless.\n return lView[T_HOST];\n }\n return null;\n}\n\n/**\n * Facade for the attribute injection from DI.\n *\n * @codeGenApi\n */\nfunction ɵɵinjectAttribute(attrNameToInject) {\n return injectAttributeImpl(getCurrentTNode(), attrNameToInject);\n}\n\n/**\n * Attribute decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Attribute = makeParamDecorator('Attribute', (attributeName) => ({\n attributeName,\n __NG_ELEMENT_ID__: () => ɵɵinjectAttribute(attributeName),\n}));\n\nlet _reflect = null;\nfunction getReflect() {\n return (_reflect = _reflect || new ReflectionCapabilities());\n}\nfunction reflectDependencies(type) {\n return convertDependencies(getReflect().parameters(type));\n}\nfunction convertDependencies(deps) {\n return deps.map((dep) => reflectDependency(dep));\n}\nfunction reflectDependency(dep) {\n const meta = {\n token: null,\n attribute: null,\n host: false,\n optional: false,\n self: false,\n skipSelf: false,\n };\n if (Array.isArray(dep) && dep.length > 0) {\n for (let j = 0; j < dep.length; j++) {\n const param = dep[j];\n if (param === undefined) {\n // param may be undefined if type of dep is not set by ngtsc\n continue;\n }\n const proto = Object.getPrototypeOf(param);\n if (param instanceof Optional || proto.ngMetadataName === 'Optional') {\n meta.optional = true;\n }\n else if (param instanceof SkipSelf || proto.ngMetadataName === 'SkipSelf') {\n meta.skipSelf = true;\n }\n else if (param instanceof Self || proto.ngMetadataName === 'Self') {\n meta.self = true;\n }\n else if (param instanceof Host || proto.ngMetadataName === 'Host') {\n meta.host = true;\n }\n else if (param instanceof Inject) {\n meta.token = param.token;\n }\n else if (param instanceof Attribute) {\n if (param.attributeName === undefined) {\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Attribute name must be defined.`);\n }\n meta.attribute = param.attributeName;\n }\n else {\n meta.token = param;\n }\n }\n }\n else if (dep === undefined || (Array.isArray(dep) && dep.length === 0)) {\n meta.token = null;\n }\n else {\n meta.token = dep;\n }\n return meta;\n}\n\n/**\n * Compile an Angular injectable according to its `Injectable` metadata, and patch the resulting\n * injectable def (`ɵprov`) onto the injectable type.\n */\nfunction compileInjectable(type, meta) {\n let ngInjectableDef = null;\n let ngFactoryDef = null;\n // if NG_PROV_DEF is already defined on this class then don't overwrite it\n if (!type.hasOwnProperty(NG_PROV_DEF)) {\n Object.defineProperty(type, NG_PROV_DEF, {\n get: () => {\n if (ngInjectableDef === null) {\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'injectable',\n type,\n });\n ngInjectableDef = compiler.compileInjectable(angularCoreDiEnv, `ng:///${type.name}/ɵprov.js`, getInjectableMetadata(type, meta));\n }\n return ngInjectableDef;\n },\n });\n }\n // if NG_FACTORY_DEF is already defined on this class then don't overwrite it\n if (!type.hasOwnProperty(NG_FACTORY_DEF)) {\n Object.defineProperty(type, NG_FACTORY_DEF, {\n get: () => {\n if (ngFactoryDef === null) {\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'injectable',\n type,\n });\n ngFactoryDef = compiler.compileFactory(angularCoreDiEnv, `ng:///${type.name}/ɵfac.js`, {\n name: type.name,\n type,\n typeArgumentCount: 0, // In JIT mode types are not available nor used.\n deps: reflectDependencies(type),\n target: compiler.FactoryTarget.Injectable,\n });\n }\n return ngFactoryDef;\n },\n // Leave this configurable so that the factories from directives or pipes can take precedence.\n configurable: true,\n });\n }\n}\nconst USE_VALUE = getClosureSafeProperty({\n provide: String,\n useValue: getClosureSafeProperty,\n});\nfunction isUseClassProvider(meta) {\n return meta.useClass !== undefined;\n}\nfunction isUseValueProvider(meta) {\n return USE_VALUE in meta;\n}\nfunction isUseFactoryProvider(meta) {\n return meta.useFactory !== undefined;\n}\nfunction isUseExistingProvider(meta) {\n return meta.useExisting !== undefined;\n}\nfunction getInjectableMetadata(type, srcMeta) {\n // Allow the compilation of a class with a `@Injectable()` decorator without parameters\n const meta = srcMeta || { providedIn: null };\n const compilerMeta = {\n name: type.name,\n type: type,\n typeArgumentCount: 0,\n providedIn: meta.providedIn,\n };\n if ((isUseClassProvider(meta) || isUseFactoryProvider(meta)) && meta.deps !== undefined) {\n compilerMeta.deps = convertDependencies(meta.deps);\n }\n // Check to see if the user explicitly provided a `useXxxx` property.\n if (isUseClassProvider(meta)) {\n compilerMeta.useClass = meta.useClass;\n }\n else if (isUseValueProvider(meta)) {\n compilerMeta.useValue = meta.useValue;\n }\n else if (isUseFactoryProvider(meta)) {\n compilerMeta.useFactory = meta.useFactory;\n }\n else if (isUseExistingProvider(meta)) {\n compilerMeta.useExisting = meta.useExisting;\n }\n return compilerMeta;\n}\n\n/**\n * Injectable decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Injectable = makeDecorator('Injectable', undefined, undefined, undefined, (type, meta) => compileInjectable(type, meta));\n\n/**\n * Create a new `Injector` which is configured using a `defType` of `InjectorType<any>`s.\n */\nfunction createInjector(defType, parent = null, additionalProviders = null, name) {\n const injector = createInjectorWithoutInjectorInstances(defType, parent, additionalProviders, name);\n injector.resolveInjectorInitializers();\n return injector;\n}\n/**\n * Creates a new injector without eagerly resolving its injector types. Can be used in places\n * where resolving the injector types immediately can lead to an infinite loop. The injector types\n * should be resolved at a later point by calling `_resolveInjectorDefTypes`.\n */\nfunction createInjectorWithoutInjectorInstances(defType, parent = null, additionalProviders = null, name, scopes = new Set()) {\n const providers = [additionalProviders || EMPTY_ARRAY, importProvidersFrom(defType)];\n name = name || (typeof defType === 'object' ? undefined : stringify(defType));\n return new R3Injector(providers, parent || getNullInjector(), name || null, scopes);\n}\n\n/**\n * Concrete injectors implement this interface. Injectors are configured\n * with [providers](guide/di/dependency-injection-providers) that associate\n * dependencies of various types with [injection tokens](guide/di/dependency-injection-providers).\n *\n * @see [DI Providers](guide/di/dependency-injection-providers).\n * @see {@link StaticProvider}\n *\n * @usageNotes\n *\n * The following example creates a service injector instance.\n *\n * {@example core/di/ts/provider_spec.ts region='ConstructorProvider'}\n *\n * ### Usage example\n *\n * {@example core/di/ts/injector_spec.ts region='Injector'}\n *\n * `Injector` returns itself when given `Injector` as a token:\n *\n * {@example core/di/ts/injector_spec.ts region='injectInjector'}\n *\n * @publicApi\n */\nclass Injector {\n static THROW_IF_NOT_FOUND = THROW_IF_NOT_FOUND;\n static NULL = new NullInjector();\n static create(options, parent) {\n if (Array.isArray(options)) {\n return createInjector({ name: '' }, parent, options, '');\n }\n else {\n const name = options.name ?? '';\n return createInjector({ name }, options.parent, options.providers, name);\n }\n }\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: Injector,\n providedIn: 'any',\n factory: () => ɵɵinject(INJECTOR$1),\n });\n /**\n * @internal\n * @nocollapse\n */\n static __NG_ELEMENT_ID__ = -1 /* InjectorMarkers.Injector */;\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Creates a token that can be used to inject static attributes of the host node.\n *\n * @usageNotes\n * ### Injecting an attribute that is known to exist\n * ```ts\n * @Directive()\n * class MyDir {\n * attr: string = inject(new HostAttributeToken('some-attr'));\n * }\n * ```\n *\n * ### Optionally injecting an attribute\n * ```ts\n * @Directive()\n * class MyDir {\n * attr: string | null = inject(new HostAttributeToken('some-attr'), {optional: true});\n * }\n * ```\n * @publicApi\n */\nclass HostAttributeToken {\n attributeName;\n constructor(attributeName) {\n this.attributeName = attributeName;\n }\n /** @internal */\n __NG_ELEMENT_ID__ = () => ɵɵinjectAttribute(this.attributeName);\n toString() {\n return `HostAttributeToken ${this.attributeName}`;\n }\n}\n\n/**\n * A token that can be used to inject the tag name of the host node.\n *\n * @usageNotes\n * ### Injecting a tag name that is known to exist\n * ```ts\n * @Directive()\n * class MyDir {\n * tagName: string = inject(HOST_TAG_NAME);\n * }\n * ```\n *\n * ### Optionally injecting a tag name\n * ```ts\n * @Directive()\n * class MyDir {\n * tagName: string | null = inject(HOST_TAG_NAME, {optional: true});\n * }\n * ```\n * @publicApi\n */\nconst HOST_TAG_NAME = new InjectionToken(ngDevMode ? 'HOST_TAG_NAME' : '');\n// HOST_TAG_NAME should be resolved at the current node, similar to e.g. ElementRef,\n// so we manually specify __NG_ELEMENT_ID__ here, instead of using a factory.\n// tslint:disable-next-line:no-toplevel-property-access\nHOST_TAG_NAME.__NG_ELEMENT_ID__ = (flags) => {\n const tNode = getCurrentTNode();\n if (tNode === null) {\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode &&\n 'HOST_TAG_NAME can only be injected in directives and components ' +\n 'during construction time (in a class constructor or as a class field initializer)');\n }\n if (tNode.type & 2 /* TNodeType.Element */) {\n return tNode.value;\n }\n if (flags & InjectFlags.Optional) {\n return null;\n }\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode &&\n `HOST_TAG_NAME was used on ${getDevModeNodeName(tNode)} which doesn't have an underlying element in the DOM. ` +\n `This is invalid, and so the dependency should be marked as optional.`);\n};\nfunction getDevModeNodeName(tNode) {\n if (tNode.type & 8 /* TNodeType.ElementContainer */) {\n return 'an <ng-container>';\n }\n else if (tNode.type & 4 /* TNodeType.Container */) {\n return 'an <ng-template>';\n }\n else if (tNode.type & 128 /* TNodeType.LetDeclaration */) {\n return 'an @let declaration';\n }\n else {\n return 'a node';\n }\n}\n\n/**\n * @module\n * @description\n * The `di` module provides dependency injection container services.\n */\n\n/**\n * This file should not be necessary because node resolution should just default to `./di/index`!\n *\n * However it does not seem to work and it breaks:\n * - //packages/animations/browser/test:test_web_chromium-local\n * - //packages/compiler-cli/test:extract_i18n\n * - //packages/compiler-cli/test:ngc\n * - //packages/compiler-cli/test:perform_watch\n * - //packages/compiler-cli/test/diagnostics:check_types\n * - //packages/compiler-cli/test/transformers:test\n * - //packages/compiler/test:test\n * - //tools/public_api_guard:core_api\n *\n * Remove this file once the above is solved or wait until `ngc` is deleted and then it should be\n * safe to delete this file.\n */\n\nconst SCHEDULE_IN_ROOT_ZONE_DEFAULT = false;\n\n/**\n * `DestroyRef` lets you set callbacks to run for any cleanup or destruction behavior.\n * The scope of this destruction depends on where `DestroyRef` is injected. If `DestroyRef`\n * is injected in a component or directive, the callbacks run when that component or\n * directive is destroyed. Otherwise the callbacks run when a corresponding injector is destroyed.\n *\n * @publicApi\n */\nclass DestroyRef {\n /**\n * @internal\n * @nocollapse\n */\n static __NG_ELEMENT_ID__ = injectDestroyRef;\n /**\n * @internal\n * @nocollapse\n */\n static __NG_ENV_ID__ = (injector) => injector;\n}\nclass NodeInjectorDestroyRef extends DestroyRef {\n _lView;\n constructor(_lView) {\n super();\n this._lView = _lView;\n }\n onDestroy(callback) {\n storeLViewOnDestroy(this._lView, callback);\n return () => removeLViewOnDestroy(this._lView, callback);\n }\n}\nfunction injectDestroyRef() {\n return new NodeInjectorDestroyRef(getLView());\n}\n\n/**\n * Injectable that is notified when an `LView` is made aware of changes to application state.\n */\nclass ChangeDetectionScheduler {\n}\n/** Token used to indicate if zoneless was enabled via provideZonelessChangeDetection(). */\nconst ZONELESS_ENABLED = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'Zoneless enabled' : '', { providedIn: 'root', factory: () => false });\n/** Token used to indicate `provideExperimentalZonelessChangeDetection` was used. */\nconst PROVIDED_ZONELESS = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'Zoneless provided' : '', { providedIn: 'root', factory: () => false });\nconst ZONELESS_SCHEDULER_DISABLED = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'scheduler disabled' : '');\n// TODO(atscott): Remove in v19. Scheduler should be done with runOutsideAngular.\nconst SCHEDULE_IN_ROOT_ZONE = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'run changes outside zone in root' : '');\n\n/**\n * Internal implementation of the pending tasks service.\n */\nclass PendingTasksInternal {\n taskId = 0;\n pendingTasks = new Set();\n get _hasPendingTasks() {\n return this.hasPendingTasks.value;\n }\n hasPendingTasks = new BehaviorSubject(false);\n add() {\n if (!this._hasPendingTasks) {\n this.hasPendingTasks.next(true);\n }\n const taskId = this.taskId++;\n this.pendingTasks.add(taskId);\n return taskId;\n }\n has(taskId) {\n return this.pendingTasks.has(taskId);\n }\n remove(taskId) {\n this.pendingTasks.delete(taskId);\n if (this.pendingTasks.size === 0 && this._hasPendingTasks) {\n this.hasPendingTasks.next(false);\n }\n }\n ngOnDestroy() {\n this.pendingTasks.clear();\n if (this._hasPendingTasks) {\n this.hasPendingTasks.next(false);\n }\n }\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: PendingTasksInternal,\n providedIn: 'root',\n factory: () => new PendingTasksInternal(),\n });\n}\n/**\n * Service that keeps track of pending tasks contributing to the stableness of Angular\n * application. While several existing Angular services (ex.: `HttpClient`) will internally manage\n * tasks influencing stability, this API gives control over stability to library and application\n * developers for specific cases not covered by Angular internals.\n *\n * The concept of stability comes into play in several important scenarios:\n * - SSR process needs to wait for the application stability before serializing and sending rendered\n * HTML;\n * - tests might want to delay assertions until the application becomes stable;\n *\n * @usageNotes\n * ```ts\n * const pendingTasks = inject(PendingTasks);\n * const taskCleanup = pendingTasks.add();\n * // do work that should block application's stability and then:\n * taskCleanup();\n * ```\n *\n * @publicApi\n * @developerPreview\n */\nclass PendingTasks {\n internalPendingTasks = inject(PendingTasksInternal);\n scheduler = inject(ChangeDetectionScheduler);\n /**\n * Adds a new task that should block application's stability.\n * @returns A cleanup function that removes a task when called.\n */\n add() {\n const taskId = this.internalPendingTasks.add();\n return () => {\n if (!this.internalPendingTasks.has(taskId)) {\n // This pending task has already been cleared.\n return;\n }\n // Notifying the scheduler will hold application stability open until the next tick.\n this.scheduler.notify(12 /* NotificationSource.PendingTaskRemoved */);\n this.internalPendingTasks.remove(taskId);\n };\n }\n /**\n * Runs an asynchronous function and blocks the application's stability until the function completes.\n *\n * ```ts\n * pendingTasks.run(async () => {\n * const userData = await fetch('/api/user');\n * this.userData.set(userData);\n * });\n * ```\n *\n * Application stability is at least delayed until the next tick after the `run` method resolves\n * so it is safe to make additional updates to application state that would require UI synchronization:\n *\n * ```ts\n * const userData = await pendingTasks.run(() => fetch('/api/user'));\n * this.userData.set(userData);\n * ```\n *\n * @param fn The asynchronous function to execute\n */\n async run(fn) {\n const removeTask = this.add();\n try {\n return await fn();\n }\n finally {\n removeTask();\n }\n }\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: PendingTasks,\n providedIn: 'root',\n factory: () => new PendingTasks(),\n });\n}\n\nclass EventEmitter_ extends Subject {\n // tslint:disable-next-line:require-internal-with-underscore\n __isAsync;\n destroyRef = undefined;\n pendingTasks = undefined;\n constructor(isAsync = false) {\n super();\n this.__isAsync = isAsync;\n // Attempt to retrieve a `DestroyRef` and `PendingTasks` optionally.\n // For backwards compatibility reasons, this cannot be required.\n if (isInInjectionContext()) {\n // `DestroyRef` is optional because it is not available in all contexts.\n // But it is useful to properly complete the `EventEmitter` if used with `outputToObservable`\n // when the component/directive is destroyed. (See `outputToObservable` for more details.)\n this.destroyRef = inject(DestroyRef, { optional: true }) ?? undefined;\n this.pendingTasks = inject(PendingTasksInternal, { optional: true }) ?? undefined;\n }\n }\n emit(value) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n super.next(value);\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n subscribe(observerOrNext, error, complete) {\n let nextFn = observerOrNext;\n let errorFn = error || (() => null);\n let completeFn = complete;\n if (observerOrNext && typeof observerOrNext === 'object') {\n const observer = observerOrNext;\n nextFn = observer.next?.bind(observer);\n errorFn = observer.error?.bind(observer);\n completeFn = observer.complete?.bind(observer);\n }\n if (this.__isAsync) {\n errorFn = this.wrapInTimeout(errorFn);\n if (nextFn) {\n nextFn = this.wrapInTimeout(nextFn);\n }\n if (completeFn) {\n completeFn = this.wrapInTimeout(completeFn);\n }\n }\n const sink = super.subscribe({ next: nextFn, error: errorFn, complete: completeFn });\n if (observerOrNext instanceof Subscription) {\n observerOrNext.add(sink);\n }\n return sink;\n }\n wrapInTimeout(fn) {\n return (value) => {\n const taskId = this.pendingTasks?.add();\n setTimeout(() => {\n fn(value);\n if (taskId !== undefined) {\n this.pendingTasks?.remove(taskId);\n }\n });\n };\n }\n}\n/**\n * @publicApi\n */\nconst EventEmitter = EventEmitter_;\n\nfunction noop(...args) {\n // Do nothing.\n}\n\n/**\n * Gets a scheduling function that runs the callback after the first of setTimeout and\n * requestAnimationFrame resolves.\n *\n * - `requestAnimationFrame` ensures that change detection runs ahead of a browser repaint.\n * This ensures that the create and update passes of a change detection always happen\n * in the same frame.\n * - When the browser is resource-starved, `rAF` can execute _before_ a `setTimeout` because\n * rendering is a very high priority process. This means that `setTimeout` cannot guarantee\n * same-frame create and update pass, when `setTimeout` is used to schedule the update phase.\n * - While `rAF` gives us the desirable same-frame updates, it has two limitations that\n * prevent it from being used alone. First, it does not run in background tabs, which would\n * prevent Angular from initializing an application when opened in a new tab (for example).\n * Second, repeated calls to requestAnimationFrame will execute at the refresh rate of the\n * hardware (~16ms for a 60Hz display). This would cause significant slowdown of tests that\n * are written with several updates and asserts in the form of \"update; await stable; assert;\".\n * - Both `setTimeout` and `rAF` are able to \"coalesce\" several events from a single user\n * interaction into a single change detection. Importantly, this reduces view tree traversals when\n * compared to an alternative timing mechanism like `queueMicrotask`, where change detection would\n * then be interleaves between each event.\n *\n * By running change detection after the first of `setTimeout` and `rAF` to execute, we get the\n * best of both worlds.\n *\n * @returns a function to cancel the scheduled callback\n */\nfunction scheduleCallbackWithRafRace(callback) {\n let timeoutId;\n let animationFrameId;\n function cleanup() {\n callback = noop;\n try {\n if (animationFrameId !== undefined && typeof cancelAnimationFrame === 'function') {\n cancelAnimationFrame(animationFrameId);\n }\n if (timeoutId !== undefined) {\n clearTimeout(timeoutId);\n }\n }\n catch {\n // Clearing/canceling can fail in tests due to the timing of functions being patched and unpatched\n // Just ignore the errors - we protect ourselves from this issue by also making the callback a no-op.\n }\n }\n timeoutId = setTimeout(() => {\n callback();\n cleanup();\n });\n if (typeof requestAnimationFrame === 'function') {\n animationFrameId = requestAnimationFrame(() => {\n callback();\n cleanup();\n });\n }\n return () => cleanup();\n}\nfunction scheduleCallbackWithMicrotask(callback) {\n queueMicrotask(() => callback());\n return () => {\n callback = noop;\n };\n}\n\nclass AsyncStackTaggingZoneSpec {\n createTask;\n constructor(namePrefix, consoleAsyncStackTaggingImpl = console) {\n this.name = 'asyncStackTagging for ' + namePrefix;\n this.createTask = consoleAsyncStackTaggingImpl?.createTask ?? (() => null);\n }\n // ZoneSpec implementation below.\n name;\n onScheduleTask(delegate, _current, target, task) {\n task.consoleTask = this.createTask(`Zone - ${task.source || task.type}`);\n return delegate.scheduleTask(target, task);\n }\n onInvokeTask(delegate, _currentZone, targetZone, task, applyThis, applyArgs) {\n let ret;\n if (task.consoleTask) {\n ret = task.consoleTask.run(() => delegate.invokeTask(targetZone, task, applyThis, applyArgs));\n }\n else {\n ret = delegate.invokeTask(targetZone, task, applyThis, applyArgs);\n }\n return ret;\n }\n}\n\nconst isAngularZoneProperty = 'isAngularZone';\nconst angularZoneInstanceIdProperty = isAngularZoneProperty + '_ID';\nlet ngZoneInstanceId = 0;\n/**\n * An injectable service for executing work inside or outside of the Angular zone.\n *\n * The most common use of this service is to optimize performance when starting a work consisting of\n * one or more asynchronous tasks that don't require UI updates or error handling to be handled by\n * Angular. Such tasks can be kicked off via {@link #runOutsideAngular} and if needed, these tasks\n * can reenter the Angular zone via {@link #run}.\n *\n * <!-- TODO: add/fix links to:\n * - docs explaining zones and the use of zones in Angular and change-detection\n * - link to runOutsideAngular/run (throughout this file!)\n * -->\n *\n * @usageNotes\n * ### Example\n *\n * ```ts\n * import {Component, NgZone} from '@angular/core';\n * import {NgIf} from '@angular/common';\n *\n * @Component({\n * selector: 'ng-zone-demo',\n * template: `\n * <h2>Demo: NgZone</h2>\n *\n * <p>Progress: {{progress}}%</p>\n * <p *ngIf=\"progress >= 100\">Done processing {{label}} of Angular zone!</p>\n *\n * <button (click)=\"processWithinAngularZone()\">Process within Angular zone</button>\n * <button (click)=\"processOutsideOfAngularZone()\">Process outside of Angular zone</button>\n * `,\n * })\n * export class NgZoneDemo {\n * progress: number = 0;\n * label: string;\n *\n * constructor(private _ngZone: NgZone) {}\n *\n * // Loop inside the Angular zone\n * // so the UI DOES refresh after each setTimeout cycle\n * processWithinAngularZone() {\n * this.label = 'inside';\n * this.progress = 0;\n * this._increaseProgress(() => console.log('Inside Done!'));\n * }\n *\n * // Loop outside of the Angular zone\n * // so the UI DOES NOT refresh after each setTimeout cycle\n * processOutsideOfAngularZone() {\n * this.label = 'outside';\n * this.progress = 0;\n * this._ngZone.runOutsideAngular(() => {\n * this._increaseProgress(() => {\n * // reenter the Angular zone and display done\n * this._ngZone.run(() => { console.log('Outside Done!'); });\n * });\n * });\n * }\n *\n * _increaseProgress(doneCallback: () => void) {\n * this.progress += 1;\n * console.log(`Current progress: ${this.progress}%`);\n *\n * if (this.progress < 100) {\n * window.setTimeout(() => this._increaseProgress(doneCallback), 10);\n * } else {\n * doneCallback();\n * }\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass NgZone {\n hasPendingMacrotasks = false;\n hasPendingMicrotasks = false;\n /**\n * Whether there are no outstanding microtasks or macrotasks.\n */\n isStable = true;\n /**\n * Notifies when code enters Angular Zone. This gets fired first on VM Turn.\n */\n onUnstable = new EventEmitter(false);\n /**\n * Notifies when there is no more microtasks enqueued in the current VM Turn.\n * This is a hint for Angular to do change detection, which may enqueue more microtasks.\n * For this reason this event can fire multiple times per VM Turn.\n */\n onMicrotaskEmpty = new EventEmitter(false);\n /**\n * Notifies when the last `onMicrotaskEmpty` has run and there are no more microtasks, which\n * implies we are about to relinquish VM turn.\n * This event gets called just once.\n */\n onStable = new EventEmitter(false);\n /**\n * Notifies that an error has been delivered.\n */\n onError = new EventEmitter(false);\n constructor(options) {\n const { enableLongStackTrace = false, shouldCoalesceEventChangeDetection = false, shouldCoalesceRunChangeDetection = false, scheduleInRootZone = SCHEDULE_IN_ROOT_ZONE_DEFAULT, } = options;\n if (typeof Zone == 'undefined') {\n throw new RuntimeError(908 /* RuntimeErrorCode.MISSING_ZONEJS */, ngDevMode && `In this configuration Angular requires Zone.js`);\n }\n Zone.assertZonePatched();\n const self = this;\n self._nesting = 0;\n self._outer = self._inner = Zone.current;\n // AsyncStackTaggingZoneSpec provides `linked stack traces` to show\n // where the async operation is scheduled. For more details, refer\n // to this article, https://developer.chrome.com/blog/devtools-better-angular-debugging/\n // And we only import this AsyncStackTaggingZoneSpec in development mode,\n // in the production mode, the AsyncStackTaggingZoneSpec will be tree shaken away.\n if (ngDevMode) {\n self._inner = self._inner.fork(new AsyncStackTaggingZoneSpec('Angular'));\n }\n if (Zone['TaskTrackingZoneSpec']) {\n self._inner = self._inner.fork(new Zone['TaskTrackingZoneSpec']());\n }\n if (enableLongStackTrace && Zone['longStackTraceZoneSpec']) {\n self._inner = self._inner.fork(Zone['longStackTraceZoneSpec']);\n }\n // if shouldCoalesceRunChangeDetection is true, all tasks including event tasks will be\n // coalesced, so shouldCoalesceEventChangeDetection option is not necessary and can be skipped.\n self.shouldCoalesceEventChangeDetection =\n !shouldCoalesceRunChangeDetection && shouldCoalesceEventChangeDetection;\n self.shouldCoalesceRunChangeDetection = shouldCoalesceRunChangeDetection;\n self.callbackScheduled = false;\n self.scheduleInRootZone = scheduleInRootZone;\n forkInnerZoneWithAngularBehavior(self);\n }\n /**\n This method checks whether the method call happens within an Angular Zone instance.\n */\n static isInAngularZone() {\n // Zone needs to be checked, because this method might be called even when NoopNgZone is used.\n return typeof Zone !== 'undefined' && Zone.current.get(isAngularZoneProperty) === true;\n }\n /**\n Assures that the method is called within the Angular Zone, otherwise throws an error.\n */\n static assertInAngularZone() {\n if (!NgZone.isInAngularZone()) {\n throw new RuntimeError(909 /* RuntimeErrorCode.UNEXPECTED_ZONE_STATE */, ngDevMode && 'Expected to be in Angular Zone, but it is not!');\n }\n }\n /**\n Assures that the method is called outside of the Angular Zone, otherwise throws an error.\n */\n static assertNotInAngularZone() {\n if (NgZone.isInAngularZone()) {\n throw new RuntimeError(909 /* RuntimeErrorCode.UNEXPECTED_ZONE_STATE */, ngDevMode && 'Expected to not be in Angular Zone, but it is!');\n }\n }\n /**\n * Executes the `fn` function synchronously within the Angular zone and returns value returned by\n * the function.\n *\n * Running functions via `run` allows you to reenter Angular zone from a task that was executed\n * outside of the Angular zone (typically started via {@link #runOutsideAngular}).\n *\n * Any future tasks or microtasks scheduled from within this function will continue executing from\n * within the Angular zone.\n *\n * If a synchronous error happens it will be rethrown and not reported via `onError`.\n */\n run(fn, applyThis, applyArgs) {\n return this._inner.run(fn, applyThis, applyArgs);\n }\n /**\n * Executes the `fn` function synchronously within the Angular zone as a task and returns value\n * returned by the function.\n *\n * Running functions via `runTask` allows you to reenter Angular zone from a task that was executed\n * outside of the Angular zone (typically started via {@link #runOutsideAngular}).\n *\n * Any future tasks or microtasks scheduled from within this function will continue executing from\n * within the Angular zone.\n *\n * If a synchronous error happens it will be rethrown and not reported via `onError`.\n */\n runTask(fn, applyThis, applyArgs, name) {\n const zone = this._inner;\n const task = zone.scheduleEventTask('NgZoneEvent: ' + name, fn, EMPTY_PAYLOAD, noop, noop);\n try {\n return zone.runTask(task, applyThis, applyArgs);\n }\n finally {\n zone.cancelTask(task);\n }\n }\n /**\n * Same as `run`, except that synchronous errors are caught and forwarded via `onError` and not\n * rethrown.\n */\n runGuarded(fn, applyThis, applyArgs) {\n return this._inner.runGuarded(fn, applyThis, applyArgs);\n }\n /**\n * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by\n * the function.\n *\n * Running functions via {@link #runOutsideAngular} allows you to escape Angular's zone and do\n * work that\n * doesn't trigger Angular change-detection or is subject to Angular's error handling.\n *\n * Any future tasks or microtasks scheduled from within this function will continue executing from\n * outside of the Angular zone.\n *\n * Use {@link #run} to reenter the Angular zone and do work that updates the application model.\n */\n runOutsideAngular(fn) {\n return this._outer.run(fn);\n }\n}\nconst EMPTY_PAYLOAD = {};\nfunction checkStable(zone) {\n // TODO: @JiaLiPassion, should check zone.isCheckStableRunning to prevent\n // re-entry. The case is:\n //\n // @Component({...})\n // export class AppComponent {\n // constructor(private ngZone: NgZone) {\n // this.ngZone.onStable.subscribe(() => {\n // this.ngZone.run(() => console.log('stable'););\n // });\n // }\n //\n // The onStable subscriber run another function inside ngZone\n // which causes `checkStable()` re-entry.\n // But this fix causes some issues in g3, so this fix will be\n // launched in another PR.\n if (zone._nesting == 0 && !zone.hasPendingMicrotasks && !zone.isStable) {\n try {\n zone._nesting++;\n zone.onMicrotaskEmpty.emit(null);\n }\n finally {\n zone._nesting--;\n if (!zone.hasPendingMicrotasks) {\n try {\n zone.runOutsideAngular(() => zone.onStable.emit(null));\n }\n finally {\n zone.isStable = true;\n }\n }\n }\n }\n}\nfunction delayChangeDetectionForEvents(zone) {\n /**\n * We also need to check _nesting here\n * Consider the following case with shouldCoalesceRunChangeDetection = true\n *\n * ngZone.run(() => {});\n * ngZone.run(() => {});\n *\n * We want the two `ngZone.run()` only trigger one change detection\n * when shouldCoalesceRunChangeDetection is true.\n * And because in this case, change detection run in async way(requestAnimationFrame),\n * so we also need to check the _nesting here to prevent multiple\n * change detections.\n */\n if (zone.isCheckStableRunning || zone.callbackScheduled) {\n return;\n }\n zone.callbackScheduled = true;\n function scheduleCheckStable() {\n scheduleCallbackWithRafRace(() => {\n zone.callbackScheduled = false;\n updateMicroTaskStatus(zone);\n zone.isCheckStableRunning = true;\n checkStable(zone);\n zone.isCheckStableRunning = false;\n });\n }\n if (zone.scheduleInRootZone) {\n Zone.root.run(() => {\n scheduleCheckStable();\n });\n }\n else {\n zone._outer.run(() => {\n scheduleCheckStable();\n });\n }\n updateMicroTaskStatus(zone);\n}\nfunction forkInnerZoneWithAngularBehavior(zone) {\n const delayChangeDetectionForEventsDelegate = () => {\n delayChangeDetectionForEvents(zone);\n };\n const instanceId = ngZoneInstanceId++;\n zone._inner = zone._inner.fork({\n name: 'angular',\n properties: {\n [isAngularZoneProperty]: true,\n [angularZoneInstanceIdProperty]: instanceId,\n [angularZoneInstanceIdProperty + instanceId]: true,\n },\n onInvokeTask: (delegate, current, target, task, applyThis, applyArgs) => {\n // Prevent triggering change detection when the flag is detected.\n if (shouldBeIgnoredByZone(applyArgs)) {\n return delegate.invokeTask(target, task, applyThis, applyArgs);\n }\n try {\n onEnter(zone);\n return delegate.invokeTask(target, task, applyThis, applyArgs);\n }\n finally {\n if ((zone.shouldCoalesceEventChangeDetection && task.type === 'eventTask') ||\n zone.shouldCoalesceRunChangeDetection) {\n delayChangeDetectionForEventsDelegate();\n }\n onLeave(zone);\n }\n },\n onInvoke: (delegate, current, target, callback, applyThis, applyArgs, source) => {\n try {\n onEnter(zone);\n return delegate.invoke(target, callback, applyThis, applyArgs, source);\n }\n finally {\n if (zone.shouldCoalesceRunChangeDetection &&\n // Do not delay change detection when the task is the scheduler's tick.\n // We need to synchronously trigger the stability logic so that the\n // zone-based scheduler can prevent a duplicate ApplicationRef.tick\n // by first checking if the scheduler tick is running. This does seem a bit roundabout,\n // but we _do_ still want to trigger all the correct events when we exit the zone.run\n // (`onMicrotaskEmpty` and `onStable` _should_ emit; developers can have code which\n // relies on these events happening after change detection runs).\n // Note: `zone.callbackScheduled` is already in delayChangeDetectionForEventsDelegate\n // but is added here as well to prevent reads of applyArgs when not necessary\n !zone.callbackScheduled &&\n !isSchedulerTick(applyArgs)) {\n delayChangeDetectionForEventsDelegate();\n }\n onLeave(zone);\n }\n },\n onHasTask: (delegate, current, target, hasTaskState) => {\n delegate.hasTask(target, hasTaskState);\n if (current === target) {\n // We are only interested in hasTask events which originate from our zone\n // (A child hasTask event is not interesting to us)\n if (hasTaskState.change == 'microTask') {\n zone._hasPendingMicrotasks = hasTaskState.microTask;\n updateMicroTaskStatus(zone);\n checkStable(zone);\n }\n else if (hasTaskState.change == 'macroTask') {\n zone.hasPendingMacrotasks = hasTaskState.macroTask;\n }\n }\n },\n onHandleError: (delegate, current, target, error) => {\n delegate.handleError(target, error);\n zone.runOutsideAngular(() => zone.onError.emit(error));\n return false;\n },\n });\n}\nfunction updateMicroTaskStatus(zone) {\n if (zone._hasPendingMicrotasks ||\n ((zone.shouldCoalesceEventChangeDetection || zone.shouldCoalesceRunChangeDetection) &&\n zone.callbackScheduled === true)) {\n zone.hasPendingMicrotasks = true;\n }\n else {\n zone.hasPendingMicrotasks = false;\n }\n}\nfunction onEnter(zone) {\n zone._nesting++;\n if (zone.isStable) {\n zone.isStable = false;\n zone.onUnstable.emit(null);\n }\n}\nfunction onLeave(zone) {\n zone._nesting--;\n checkStable(zone);\n}\n/**\n * Provides a noop implementation of `NgZone` which does nothing. This zone requires explicit calls\n * to framework to perform rendering.\n */\nclass NoopNgZone {\n hasPendingMicrotasks = false;\n hasPendingMacrotasks = false;\n isStable = true;\n onUnstable = new EventEmitter();\n onMicrotaskEmpty = new EventEmitter();\n onStable = new EventEmitter();\n onError = new EventEmitter();\n run(fn, applyThis, applyArgs) {\n return fn.apply(applyThis, applyArgs);\n }\n runGuarded(fn, applyThis, applyArgs) {\n return fn.apply(applyThis, applyArgs);\n }\n runOutsideAngular(fn) {\n return fn();\n }\n runTask(fn, applyThis, applyArgs, name) {\n return fn.apply(applyThis, applyArgs);\n }\n}\nfunction shouldBeIgnoredByZone(applyArgs) {\n return hasApplyArgsData(applyArgs, '__ignore_ng_zone__');\n}\nfunction isSchedulerTick(applyArgs) {\n return hasApplyArgsData(applyArgs, '__scheduler_tick__');\n}\nfunction hasApplyArgsData(applyArgs, key) {\n if (!Array.isArray(applyArgs)) {\n return false;\n }\n // We should only ever get 1 arg passed through to invokeTask.\n // Short circuit here incase that behavior changes.\n if (applyArgs.length !== 1) {\n return false;\n }\n return applyArgs[0]?.data?.[key] === true;\n}\nfunction getNgZone(ngZoneToUse = 'zone.js', options) {\n if (ngZoneToUse === 'noop') {\n return new NoopNgZone();\n }\n if (ngZoneToUse === 'zone.js') {\n return new NgZone(options);\n }\n return ngZoneToUse;\n}\n\n// Public API for Zone\n\n/**\n * Provides a hook for centralized exception handling.\n *\n * The default implementation of `ErrorHandler` prints error messages to the `console`. To\n * intercept error handling, write a custom exception handler that replaces this default as\n * appropriate for your app.\n *\n * @usageNotes\n * ### Example\n *\n * ```ts\n * class MyErrorHandler implements ErrorHandler {\n * handleError(error) {\n * // do something with the exception\n * }\n * }\n *\n * // Provide in standalone apps\n * bootstrapApplication(AppComponent, {\n * providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]\n * })\n *\n * // Provide in module-based apps\n * @NgModule({\n * providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]\n * })\n * class MyModule {}\n * ```\n *\n * @publicApi\n */\nclass ErrorHandler {\n /**\n * @internal\n */\n _console = console;\n handleError(error) {\n this._console.error('ERROR', error);\n }\n}\n/**\n * `InjectionToken` used to configure how to call the `ErrorHandler`.\n *\n * `NgZone` is provided by default today so the default (and only) implementation for this\n * is calling `ErrorHandler.handleError` outside of the Angular zone.\n */\nconst INTERNAL_APPLICATION_ERROR_HANDLER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'internal error handler' : '', {\n providedIn: 'root',\n factory: () => {\n const zone = inject(NgZone);\n const userErrorHandler = inject(ErrorHandler);\n return (e) => zone.runOutsideAngular(() => userErrorHandler.handleError(e));\n },\n});\n\n/**\n * An `OutputEmitterRef` is created by the `output()` function and can be\n * used to emit values to consumers of your directive or component.\n *\n * Consumers of your directive/component can bind to the output and\n * subscribe to changes via the bound event syntax. For example:\n *\n * ```html\n * <my-comp (valueChange)=\"processNewValue($event)\" />\n * ```\n *\n * @publicAPI\n */\nclass OutputEmitterRef {\n destroyed = false;\n listeners = null;\n errorHandler = inject(ErrorHandler, { optional: true });\n /** @internal */\n destroyRef = inject(DestroyRef);\n constructor() {\n // Clean-up all listeners and mark as destroyed upon destroy.\n this.destroyRef.onDestroy(() => {\n this.destroyed = true;\n this.listeners = null;\n });\n }\n subscribe(callback) {\n if (this.destroyed) {\n throw new RuntimeError(953 /* RuntimeErrorCode.OUTPUT_REF_DESTROYED */, ngDevMode &&\n 'Unexpected subscription to destroyed `OutputRef`. ' +\n 'The owning directive/component is destroyed.');\n }\n (this.listeners ??= []).push(callback);\n return {\n unsubscribe: () => {\n const idx = this.listeners?.indexOf(callback);\n if (idx !== undefined && idx !== -1) {\n this.listeners?.splice(idx, 1);\n }\n },\n };\n }\n /** Emits a new value to the output. */\n emit(value) {\n if (this.destroyed) {\n throw new RuntimeError(953 /* RuntimeErrorCode.OUTPUT_REF_DESTROYED */, ngDevMode &&\n 'Unexpected emit for destroyed `OutputRef`. ' +\n 'The owning directive/component is destroyed.');\n }\n if (this.listeners === null) {\n return;\n }\n const previousConsumer = setActiveConsumer$1(null);\n try {\n for (const listenerFn of this.listeners) {\n try {\n listenerFn(value);\n }\n catch (err) {\n this.errorHandler?.handleError(err);\n }\n }\n }\n finally {\n setActiveConsumer$1(previousConsumer);\n }\n }\n}\n/** Gets the owning `DestroyRef` for the given output. */\nfunction getOutputDestroyRef(ref) {\n return ref.destroyRef;\n}\n\n/**\n * The `output` function allows declaration of Angular outputs in\n * directives and components.\n *\n * You can use outputs to emit values to parent directives and component.\n * Parents can subscribe to changes via:\n *\n * - template event bindings. For example, `(myOutput)=\"doSomething($event)\"`\n * - programmatic subscription by using `OutputRef#subscribe`.\n *\n * @usageNotes\n *\n * To use `output()`, import the function from `@angular/core`.\n *\n * ```ts\n * import {output} from '@angular/core';\n * ```\n *\n * Inside your component, introduce a new class member and initialize\n * it with a call to `output`.\n *\n * ```ts\n * @Directive({\n * ...\n * })\n * export class MyDir {\n * nameChange = output<string>(); // OutputEmitterRef<string>\n * onClick = output(); // OutputEmitterRef<void>\n * }\n * ```\n *\n * You can emit values to consumers of your directive, by using\n * the `emit` method from `OutputEmitterRef`.\n *\n * ```ts\n * updateName(newName: string): void {\n * this.nameChange.emit(newName);\n * }\n * ```\n * @initializerApiFunction {\"showTypesInSignaturePreview\": true}\n * @publicAPI\n */\nfunction output(opts) {\n ngDevMode && assertInInjectionContext(output);\n return new OutputEmitterRef();\n}\n\nfunction inputFunction(initialValue, opts) {\n ngDevMode && assertInInjectionContext(input);\n return createInputSignal(initialValue, opts);\n}\nfunction inputRequiredFunction(opts) {\n ngDevMode && assertInInjectionContext(input);\n return createInputSignal(REQUIRED_UNSET_VALUE, opts);\n}\n/**\n * The `input` function allows declaration of Angular inputs in directives\n * and components.\n *\n * There are two variants of inputs that can be declared:\n *\n * 1. **Optional inputs** with an initial value.\n * 2. **Required inputs** that consumers need to set.\n *\n * By default, the `input` function will declare optional inputs that\n * always have an initial value. Required inputs can be declared\n * using the `input.required()` function.\n *\n * Inputs are signals. The values of an input are exposed as a `Signal`.\n * The signal always holds the latest value of the input that is bound\n * from the parent.\n *\n * @usageNotes\n * To use signal-based inputs, import `input` from `@angular/core`.\n *\n * ```ts\n * import {input} from '@angular/core`;\n * ```\n *\n * Inside your component, introduce a new class member and initialize\n * it with a call to `input` or `input.required`.\n *\n * ```ts\n * @Component({\n * ...\n * })\n * export class UserProfileComponent {\n * firstName = input<string>(); // Signal<string|undefined>\n * lastName = input.required<string>(); // Signal<string>\n * age = input(0) // Signal<number>\n * }\n * ```\n *\n * Inside your component template, you can display values of the inputs\n * by calling the signal.\n *\n * ```html\n * <span>{{firstName()}}</span>\n * ```\n *\n * @publicAPI\n * @initializerApiFunction\n */\nconst input = (() => {\n // Note: This may be considered a side-effect, but nothing will depend on\n // this assignment, unless this `input` constant export is accessed. It's a\n // self-contained side effect that is local to the user facing`input` export.\n inputFunction.required = inputRequiredFunction;\n return inputFunction;\n})();\n\n/**\n * Creates an ElementRef from the most recent node.\n *\n * @returns The ElementRef instance to use\n */\nfunction injectElementRef() {\n return createElementRef(getCurrentTNode(), getLView());\n}\n/**\n * Creates an ElementRef given a node.\n *\n * @param tNode The node for which you'd like an ElementRef\n * @param lView The view to which the node belongs\n * @returns The ElementRef instance to use\n */\nfunction createElementRef(tNode, lView) {\n return new ElementRef(getNativeByTNode(tNode, lView));\n}\n/**\n * A wrapper around a native element inside of a View.\n *\n * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM\n * element.\n *\n * @security Permitting direct access to the DOM can make your application more vulnerable to\n * XSS attacks. Carefully review any use of `ElementRef` in your code. For more detail, see the\n * [Security Guide](https://g.co/ng/security).\n *\n * @publicApi\n */\n// Note: We don't expose things like `Injector`, `ViewContainer`, ... here,\n// i.e. users have to ask for what they need. With that, we can build better analysis tools\n// and could do better codegen in the future.\nclass ElementRef {\n /**\n * <div class=\"callout is-critical\">\n * <header>Use with caution</header>\n * <p>\n * Use this API as the last resort when direct access to DOM is needed. Use templating and\n * data-binding provided by Angular instead. Alternatively you can take a look at\n * {@link Renderer2} which provides an API that can be safely used.\n * </p>\n * </div>\n */\n nativeElement;\n constructor(nativeElement) {\n this.nativeElement = nativeElement;\n }\n /**\n * @internal\n * @nocollapse\n */\n static __NG_ELEMENT_ID__ = injectElementRef;\n}\n/**\n * Unwraps `ElementRef` and return the `nativeElement`.\n *\n * @param value value to unwrap\n * @returns `nativeElement` if `ElementRef` otherwise returns value as is.\n */\nfunction unwrapElementRef(value) {\n return value instanceof ElementRef ? value.nativeElement : value;\n}\n\nconst markedFeatures = new Set();\n// tslint:disable:ban\n/**\n * A guarded `performance.mark` for feature marking.\n *\n * This method exists because while all supported browser and node.js version supported by Angular\n * support performance.mark API. This is not the case for other environments such as JSDOM and\n * Cloudflare workers.\n */\nfunction performanceMarkFeature(feature) {\n if (markedFeatures.has(feature)) {\n return;\n }\n markedFeatures.add(feature);\n performance?.mark?.('mark_feature_usage', { detail: { feature } });\n}\n\n/**\n * Checks if the given `value` is a reactive `Signal`.\n */\nfunction isSignal(value) {\n return typeof value === 'function' && value[SIGNAL$1] !== undefined;\n}\n\n/** Symbol used distinguish `WritableSignal` from other non-writable signals and functions. */\nconst ɵWRITABLE_SIGNAL = /* @__PURE__ */ Symbol('WRITABLE_SIGNAL');\n/**\n * Utility function used during template type checking to extract the value from a `WritableSignal`.\n * @codeGenApi\n */\nfunction ɵunwrapWritableSignal(value) {\n // Note: the function uses `WRITABLE_SIGNAL` as a brand instead of `WritableSignal<T>`,\n // because the latter incorrectly unwraps non-signal getter functions.\n return null;\n}\n/**\n * Create a `Signal` that can be set or updated directly.\n */\nfunction signal(initialValue, options) {\n performanceMarkFeature('NgSignals');\n const signalFn = createSignal$1(initialValue);\n const node = signalFn[SIGNAL$1];\n if (options?.equal) {\n node.equal = options.equal;\n }\n signalFn.set = (newValue) => signalSetFn$1(node, newValue);\n signalFn.update = (updateFn) => signalUpdateFn$1(node, updateFn);\n signalFn.asReadonly = signalAsReadonlyFn.bind(signalFn);\n if (ngDevMode) {\n signalFn.toString = () => `[Signal: ${signalFn()}]`;\n node.debugName = options?.debugName;\n }\n return signalFn;\n}\nfunction signalAsReadonlyFn() {\n const node = this[SIGNAL$1];\n if (node.readonlyFn === undefined) {\n const readonlyFn = () => this();\n readonlyFn[SIGNAL$1] = node;\n node.readonlyFn = readonlyFn;\n }\n return node.readonlyFn;\n}\n/**\n * Checks if the given `value` is a writeable signal.\n */\nfunction isWritableSignal(value) {\n return isSignal(value) && typeof value.set === 'function';\n}\n\nfunction symbolIterator() {\n // @ts-expect-error accessing a private member\n return this._results[Symbol.iterator]();\n}\n/**\n * An unmodifiable list of items that Angular keeps up to date when the state\n * of the application changes.\n *\n * The type of object that {@link ViewChildren}, {@link ContentChildren}, and {@link QueryList}\n * provide.\n *\n * Implements an iterable interface, therefore it can be used in both ES6\n * javascript `for (var i of items)` loops as well as in Angular templates with\n * `*ngFor=\"let i of myList\"`.\n *\n * Changes can be observed by subscribing to the changes `Observable`.\n *\n * NOTE: In the future this class will implement an `Observable` interface.\n *\n * @usageNotes\n * ### Example\n * ```ts\n * @Component({...})\n * class Container {\n * @ViewChildren(Item) items:QueryList<Item>;\n * }\n * ```\n *\n * @publicApi\n */\nclass QueryList {\n _emitDistinctChangesOnly;\n dirty = true;\n _onDirty = undefined;\n _results = [];\n _changesDetected = false;\n _changes = undefined;\n length = 0;\n first = undefined;\n last = undefined;\n /**\n * Returns `Observable` of `QueryList` notifying the subscriber of changes.\n */\n get changes() {\n return (this._changes ??= new Subject());\n }\n /**\n * @param emitDistinctChangesOnly Whether `QueryList.changes` should fire only when actual change\n * has occurred. Or if it should fire when query is recomputed. (recomputing could resolve in\n * the same result)\n */\n constructor(_emitDistinctChangesOnly = false) {\n this._emitDistinctChangesOnly = _emitDistinctChangesOnly;\n }\n /**\n * Returns the QueryList entry at `index`.\n */\n get(index) {\n return this._results[index];\n }\n /**\n * See\n * [Array.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\n */\n map(fn) {\n return this._results.map(fn);\n }\n filter(fn) {\n return this._results.filter(fn);\n }\n /**\n * See\n * [Array.find](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)\n */\n find(fn) {\n return this._results.find(fn);\n }\n /**\n * See\n * [Array.reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)\n */\n reduce(fn, init) {\n return this._results.reduce(fn, init);\n }\n /**\n * See\n * [Array.forEach](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)\n */\n forEach(fn) {\n this._results.forEach(fn);\n }\n /**\n * See\n * [Array.some](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some)\n */\n some(fn) {\n return this._results.some(fn);\n }\n /**\n * Returns a copy of the internal results list as an Array.\n */\n toArray() {\n return this._results.slice();\n }\n toString() {\n return this._results.toString();\n }\n /**\n * Updates the stored data of the query list, and resets the `dirty` flag to `false`, so that\n * on change detection, it will not notify of changes to the queries, unless a new change\n * occurs.\n *\n * @param resultsTree The query results to store\n * @param identityAccessor Optional function for extracting stable object identity from a value\n * in the array. This function is executed for each element of the query result list while\n * comparing current query list with the new one (provided as a first argument of the `reset`\n * function) to detect if the lists are different. If the function is not provided, elements\n * are compared as is (without any pre-processing).\n */\n reset(resultsTree, identityAccessor) {\n this.dirty = false;\n const newResultFlat = flatten(resultsTree);\n if ((this._changesDetected = !arrayEquals(this._results, newResultFlat, identityAccessor))) {\n this._results = newResultFlat;\n this.length = newResultFlat.length;\n this.last = newResultFlat[this.length - 1];\n this.first = newResultFlat[0];\n }\n }\n /**\n * Triggers a change event by emitting on the `changes` {@link EventEmitter}.\n */\n notifyOnChanges() {\n if (this._changes !== undefined && (this._changesDetected || !this._emitDistinctChangesOnly))\n this._changes.next(this);\n }\n /** @internal */\n onDirty(cb) {\n this._onDirty = cb;\n }\n /** internal */\n setDirty() {\n this.dirty = true;\n this._onDirty?.();\n }\n /** internal */\n destroy() {\n if (this._changes !== undefined) {\n this._changes.complete();\n this._changes.unsubscribe();\n }\n }\n [Symbol.iterator] = (() => symbolIterator)();\n}\n\n/**\n * The name of an attribute that can be added to the hydration boundary node\n * (component host node) to disable hydration for the content within that boundary.\n */\nconst SKIP_HYDRATION_ATTR_NAME = 'ngSkipHydration';\n/** Lowercase name of the `ngSkipHydration` attribute used for case-insensitive comparisons. */\nconst SKIP_HYDRATION_ATTR_NAME_LOWER_CASE = 'ngskiphydration';\n/**\n * Helper function to check if a given TNode has the 'ngSkipHydration' attribute.\n */\nfunction hasSkipHydrationAttrOnTNode(tNode) {\n const attrs = tNode.mergedAttrs;\n if (attrs === null)\n return false;\n // only ever look at the attribute name and skip the values\n for (let i = 0; i < attrs.length; i += 2) {\n const value = attrs[i];\n // This is a marker, which means that the static attributes section is over,\n // so we can exit early.\n if (typeof value === 'number')\n return false;\n if (typeof value === 'string' && value.toLowerCase() === SKIP_HYDRATION_ATTR_NAME_LOWER_CASE) {\n return true;\n }\n }\n return false;\n}\n/**\n * Helper function to check if a given RElement has the 'ngSkipHydration' attribute.\n */\nfunction hasSkipHydrationAttrOnRElement(rNode) {\n return rNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME);\n}\n/**\n * Checks whether a TNode has a flag to indicate that it's a part of\n * a skip hydration block.\n */\nfunction hasInSkipHydrationBlockFlag(tNode) {\n return (tNode.flags & 128 /* TNodeFlags.inSkipHydrationBlock */) === 128 /* TNodeFlags.inSkipHydrationBlock */;\n}\n/**\n * Helper function that determines if a given node is within a skip hydration block\n * by navigating up the TNode tree to see if any parent nodes have skip hydration\n * attribute.\n */\nfunction isInSkipHydrationBlock(tNode) {\n if (hasInSkipHydrationBlockFlag(tNode)) {\n return true;\n }\n let currentTNode = tNode.parent;\n while (currentTNode) {\n if (hasInSkipHydrationBlockFlag(tNode) || hasSkipHydrationAttrOnTNode(currentTNode)) {\n return true;\n }\n currentTNode = currentTNode.parent;\n }\n return false;\n}\n/**\n * Check if an i18n block is in a skip hydration section by looking at a parent TNode\n * to determine if this TNode is in a skip hydration section or the TNode has\n * the `ngSkipHydration` attribute.\n */\nfunction isI18nInSkipHydrationBlock(parentTNode) {\n return (hasInSkipHydrationBlockFlag(parentTNode) ||\n hasSkipHydrationAttrOnTNode(parentTNode) ||\n isInSkipHydrationBlock(parentTNode));\n}\n\n/**\n * The strategy that the default change detector uses to detect changes.\n * When set, takes effect the next time change detection is triggered.\n *\n * @see [Change detection usage](/api/core/ChangeDetectorRef?tab=usage-notes)\n * @see [Skipping component subtrees](/best-practices/skipping-subtrees)\n *\n * @publicApi\n */\nvar ChangeDetectionStrategy;\n(function (ChangeDetectionStrategy) {\n /**\n * Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated\n * until reactivated by setting the strategy to `Default` (`CheckAlways`).\n * Change detection can still be explicitly invoked.\n * This strategy applies to all child directives and cannot be overridden.\n */\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"OnPush\"] = 0] = \"OnPush\";\n /**\n * Use the default `CheckAlways` strategy, in which change detection is automatic until\n * explicitly deactivated.\n */\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"Default\"] = 1] = \"Default\";\n})(ChangeDetectionStrategy || (ChangeDetectionStrategy = {}));\n\n// Keeps track of the currently-active LViews.\nconst TRACKED_LVIEWS = new Map();\n// Used for generating unique IDs for LViews.\nlet uniqueIdCounter = 0;\n/** Gets a unique ID that can be assigned to an LView. */\nfunction getUniqueLViewId() {\n return uniqueIdCounter++;\n}\n/** Starts tracking an LView. */\nfunction registerLView(lView) {\n ngDevMode && assertNumber(lView[ID], 'LView must have an ID in order to be registered');\n TRACKED_LVIEWS.set(lView[ID], lView);\n}\n/** Gets an LView by its unique ID. */\nfunction getLViewById(id) {\n ngDevMode && assertNumber(id, 'ID used for LView lookup must be a number');\n return TRACKED_LVIEWS.get(id) || null;\n}\n/** Stops tracking an LView. */\nfunction unregisterLView(lView) {\n ngDevMode && assertNumber(lView[ID], 'Cannot stop tracking an LView that does not have an ID');\n TRACKED_LVIEWS.delete(lView[ID]);\n}\n/** Gets the currently-tracked views. */\nfunction getTrackedLViews() {\n return TRACKED_LVIEWS;\n}\n\n/**\n * The internal view context which is specific to a given DOM element, directive or\n * component instance. Each value in here (besides the LView and element node details)\n * can be present, null or undefined. If undefined then it implies the value has not been\n * looked up yet, otherwise, if null, then a lookup was executed and nothing was found.\n *\n * Each value will get filled when the respective value is examined within the getContext\n * function. The component, element and each directive instance will share the same instance\n * of the context.\n */\nclass LContext {\n lViewId;\n nodeIndex;\n native;\n /**\n * The instance of the Component node.\n */\n component;\n /**\n * The list of active directives that exist on this element.\n */\n directives;\n /**\n * The map of local references (local reference name => element or directive instance) that\n * exist on this element.\n */\n localRefs;\n /** Component's parent view data. */\n get lView() {\n return getLViewById(this.lViewId);\n }\n constructor(\n /**\n * ID of the component's parent view data.\n */\n lViewId, \n /**\n * The index instance of the node.\n */\n nodeIndex, \n /**\n * The instance of the DOM node that is attached to the lNode.\n */\n native) {\n this.lViewId = lViewId;\n this.nodeIndex = nodeIndex;\n this.native = native;\n }\n}\n\n/**\n * Returns the matching `LContext` data for a given DOM node, directive or component instance.\n *\n * This function will examine the provided DOM element, component, or directive instance\\'s\n * monkey-patched property to derive the `LContext` data. Once called then the monkey-patched\n * value will be that of the newly created `LContext`.\n *\n * If the monkey-patched value is the `LView` instance then the context value for that\n * target will be created and the monkey-patch reference will be updated. Therefore when this\n * function is called it may mutate the provided element\\'s, component\\'s or any of the associated\n * directive\\'s monkey-patch values.\n *\n * If the monkey-patch value is not detected then the code will walk up the DOM until an element\n * is found which contains a monkey-patch reference. When that occurs then the provided element\n * will be updated with a new context (which is then returned). If the monkey-patch value is not\n * detected for a component/directive instance then it will throw an error (all components and\n * directives should be automatically monkey-patched by ivy).\n *\n * @param target Component, Directive or DOM Node.\n */\nfunction getLContext(target) {\n let mpValue = readPatchedData(target);\n if (mpValue) {\n // only when it's an array is it considered an LView instance\n // ... otherwise it's an already constructed LContext instance\n if (isLView(mpValue)) {\n const lView = mpValue;\n let nodeIndex;\n let component = undefined;\n let directives = undefined;\n if (isComponentInstance(target)) {\n nodeIndex = findViaComponent(lView, target);\n if (nodeIndex == -1) {\n throw new Error('The provided component was not found in the application');\n }\n component = target;\n }\n else if (isDirectiveInstance(target)) {\n nodeIndex = findViaDirective(lView, target);\n if (nodeIndex == -1) {\n throw new Error('The provided directive was not found in the application');\n }\n directives = getDirectivesAtNodeIndex(nodeIndex, lView);\n }\n else {\n nodeIndex = findViaNativeElement(lView, target);\n if (nodeIndex == -1) {\n return null;\n }\n }\n // the goal is not to fill the entire context full of data because the lookups\n // are expensive. Instead, only the target data (the element, component, container, ICU\n // expression or directive details) are filled into the context. If called multiple times\n // with different target values then the missing target data will be filled in.\n const native = unwrapRNode(lView[nodeIndex]);\n const existingCtx = readPatchedData(native);\n const context = existingCtx && !Array.isArray(existingCtx)\n ? existingCtx\n : createLContext(lView, nodeIndex, native);\n // only when the component has been discovered then update the monkey-patch\n if (component && context.component === undefined) {\n context.component = component;\n attachPatchData(context.component, context);\n }\n // only when the directives have been discovered then update the monkey-patch\n if (directives && context.directives === undefined) {\n context.directives = directives;\n for (let i = 0; i < directives.length; i++) {\n attachPatchData(directives[i], context);\n }\n }\n attachPatchData(context.native, context);\n mpValue = context;\n }\n }\n else {\n const rElement = target;\n ngDevMode && assertDomNode(rElement);\n // if the context is not found then we need to traverse upwards up the DOM\n // to find the nearest element that has already been monkey patched with data\n let parent = rElement;\n while ((parent = parent.parentNode)) {\n const parentContext = readPatchedData(parent);\n if (parentContext) {\n const lView = Array.isArray(parentContext) ? parentContext : parentContext.lView;\n // the edge of the app was also reached here through another means\n // (maybe because the DOM was changed manually).\n if (!lView) {\n return null;\n }\n const index = findViaNativeElement(lView, rElement);\n if (index >= 0) {\n const native = unwrapRNode(lView[index]);\n const context = createLContext(lView, index, native);\n attachPatchData(native, context);\n mpValue = context;\n break;\n }\n }\n }\n }\n return mpValue || null;\n}\n/**\n * Creates an empty instance of a `LContext` context\n */\nfunction createLContext(lView, nodeIndex, native) {\n return new LContext(lView[ID], nodeIndex, native);\n}\n/**\n * Takes a component instance and returns the view for that component.\n *\n * @param componentInstance\n * @returns The component's view\n */\nfunction getComponentViewByInstance(componentInstance) {\n let patchedData = readPatchedData(componentInstance);\n let lView;\n if (isLView(patchedData)) {\n const contextLView = patchedData;\n const nodeIndex = findViaComponent(contextLView, componentInstance);\n lView = getComponentLViewByIndex(nodeIndex, contextLView);\n const context = createLContext(contextLView, nodeIndex, lView[HOST]);\n context.component = componentInstance;\n attachPatchData(componentInstance, context);\n attachPatchData(context.native, context);\n }\n else {\n const context = patchedData;\n const contextLView = context.lView;\n ngDevMode && assertLView(contextLView);\n lView = getComponentLViewByIndex(context.nodeIndex, contextLView);\n }\n return lView;\n}\n/**\n * This property will be monkey-patched on elements, components and directives.\n */\nconst MONKEY_PATCH_KEY_NAME = '__ngContext__';\nfunction attachLViewId(target, data) {\n target[MONKEY_PATCH_KEY_NAME] = data[ID];\n}\n/**\n * Returns the monkey-patch value data present on the target (which could be\n * a component, directive or a DOM node).\n */\nfunction readLView(target) {\n const data = readPatchedData(target);\n if (isLView(data)) {\n return data;\n }\n return data ? data.lView : null;\n}\n/**\n * Assigns the given data to the given target (which could be a component,\n * directive or DOM node instance) using monkey-patching.\n */\nfunction attachPatchData(target, data) {\n ngDevMode && assertDefined(target, 'Target expected');\n // Only attach the ID of the view in order to avoid memory leaks (see #41047). We only do this\n // for `LView`, because we have control over when an `LView` is created and destroyed, whereas\n // we can't know when to remove an `LContext`.\n if (isLView(data)) {\n target[MONKEY_PATCH_KEY_NAME] = data[ID];\n registerLView(data);\n }\n else {\n target[MONKEY_PATCH_KEY_NAME] = data;\n }\n}\n/**\n * Returns the monkey-patch value data present on the target (which could be\n * a component, directive or a DOM node).\n */\nfunction readPatchedData(target) {\n ngDevMode && assertDefined(target, 'Target expected');\n const data = target[MONKEY_PATCH_KEY_NAME];\n return typeof data === 'number' ? getLViewById(data) : data || null;\n}\nfunction readPatchedLView(target) {\n const value = readPatchedData(target);\n if (value) {\n return (isLView(value) ? value : value.lView);\n }\n return null;\n}\nfunction isComponentInstance(instance) {\n return instance && instance.constructor && instance.constructor.ɵcmp;\n}\nfunction isDirectiveInstance(instance) {\n return instance && instance.constructor && instance.constructor.ɵdir;\n}\n/**\n * Locates the element within the given LView and returns the matching index\n */\nfunction findViaNativeElement(lView, target) {\n const tView = lView[TVIEW];\n for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n if (unwrapRNode(lView[i]) === target) {\n return i;\n }\n }\n return -1;\n}\n/**\n * Locates the next tNode (child, sibling or parent).\n */\nfunction traverseNextElement(tNode) {\n if (tNode.child) {\n return tNode.child;\n }\n else if (tNode.next) {\n return tNode.next;\n }\n else {\n // Let's take the following template: <div><span>text</span></div><component/>\n // After checking the text node, we need to find the next parent that has a \"next\" TNode,\n // in this case the parent `div`, so that we can find the component.\n while (tNode.parent && !tNode.parent.next) {\n tNode = tNode.parent;\n }\n return tNode.parent && tNode.parent.next;\n }\n}\n/**\n * Locates the component within the given LView and returns the matching index\n */\nfunction findViaComponent(lView, componentInstance) {\n const componentIndices = lView[TVIEW].components;\n if (componentIndices) {\n for (let i = 0; i < componentIndices.length; i++) {\n const elementComponentIndex = componentIndices[i];\n const componentView = getComponentLViewByIndex(elementComponentIndex, lView);\n if (componentView[CONTEXT] === componentInstance) {\n return elementComponentIndex;\n }\n }\n }\n else {\n const rootComponentView = getComponentLViewByIndex(HEADER_OFFSET, lView);\n const rootComponent = rootComponentView[CONTEXT];\n if (rootComponent === componentInstance) {\n // we are dealing with the root element here therefore we know that the\n // element is the very first element after the HEADER data in the lView\n return HEADER_OFFSET;\n }\n }\n return -1;\n}\n/**\n * Locates the directive within the given LView and returns the matching index\n */\nfunction findViaDirective(lView, directiveInstance) {\n // if a directive is monkey patched then it will (by default)\n // have a reference to the LView of the current view. The\n // element bound to the directive being search lives somewhere\n // in the view data. We loop through the nodes and check their\n // list of directives for the instance.\n let tNode = lView[TVIEW].firstChild;\n while (tNode) {\n const directiveIndexStart = tNode.directiveStart;\n const directiveIndexEnd = tNode.directiveEnd;\n for (let i = directiveIndexStart; i < directiveIndexEnd; i++) {\n if (lView[i] === directiveInstance) {\n return tNode.index;\n }\n }\n tNode = traverseNextElement(tNode);\n }\n return -1;\n}\n/**\n * Returns a list of directives applied to a node at a specific index. The list includes\n * directives matched by selector and any host directives, but it excludes components.\n * Use `getComponentAtNodeIndex` to find the component applied to a node.\n *\n * @param nodeIndex The node index\n * @param lView The target view data\n */\nfunction getDirectivesAtNodeIndex(nodeIndex, lView) {\n const tNode = lView[TVIEW].data[nodeIndex];\n if (tNode.directiveStart === 0)\n return EMPTY_ARRAY;\n const results = [];\n for (let i = tNode.directiveStart; i < tNode.directiveEnd; i++) {\n const directiveInstance = lView[i];\n if (!isComponentInstance(directiveInstance)) {\n results.push(directiveInstance);\n }\n }\n return results;\n}\nfunction getComponentAtNodeIndex(nodeIndex, lView) {\n const tNode = lView[TVIEW].data[nodeIndex];\n return isComponentHost(tNode) ? lView[tNode.directiveStart + tNode.componentOffset] : null;\n}\n/**\n * Returns a map of local references (local reference name => element or directive instance) that\n * exist on a given element.\n */\nfunction discoverLocalRefs(lView, nodeIndex) {\n const tNode = lView[TVIEW].data[nodeIndex];\n if (tNode && tNode.localNames) {\n const result = {};\n let localIndex = tNode.index + 1;\n for (let i = 0; i < tNode.localNames.length; i += 2) {\n result[tNode.localNames[i]] = lView[localIndex];\n localIndex++;\n }\n return result;\n }\n return null;\n}\n\n/**\n * Retrieve the root view from any component or `LView` by walking the parent `LView` until\n * reaching the root `LView`.\n *\n * @param componentOrLView any component or `LView`\n */\nfunction getRootView(componentOrLView) {\n ngDevMode && assertDefined(componentOrLView, 'component');\n let lView = isLView(componentOrLView) ? componentOrLView : readPatchedLView(componentOrLView);\n while (lView && !isRootView(lView)) {\n lView = getLViewParent(lView);\n }\n ngDevMode && assertLView(lView);\n return lView;\n}\n/**\n * Returns the context information associated with the application where the target is situated. It\n * does this by walking the parent views until it gets to the root view, then getting the context\n * off of that.\n *\n * @param viewOrComponent the `LView` or component to get the root context for.\n */\nfunction getRootContext(viewOrComponent) {\n const rootView = getRootView(viewOrComponent);\n ngDevMode &&\n assertDefined(rootView[CONTEXT], 'Root view has no context. Perhaps it is disconnected?');\n return rootView[CONTEXT];\n}\n/**\n * Gets the first `LContainer` in the LView or `null` if none exists.\n */\nfunction getFirstLContainer(lView) {\n return getNearestLContainer(lView[CHILD_HEAD]);\n}\n/**\n * Gets the next `LContainer` that is a sibling of the given container.\n */\nfunction getNextLContainer(container) {\n return getNearestLContainer(container[NEXT]);\n}\nfunction getNearestLContainer(viewOrContainer) {\n while (viewOrContainer !== null && !isLContainer(viewOrContainer)) {\n viewOrContainer = viewOrContainer[NEXT];\n }\n return viewOrContainer;\n}\n\n/**\n * Retrieves the component instance associated with a given DOM element.\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * <app-root>\n * <div>\n * <child-comp></child-comp>\n * </div>\n * </app-root>\n * ```\n *\n * Calling `getComponent` on `<child-comp>` will return the instance of `ChildComponent`\n * associated with this DOM element.\n *\n * Calling the function on `<app-root>` will return the `MyApp` instance.\n *\n *\n * @param element DOM element from which the component should be retrieved.\n * @returns Component instance associated with the element or `null` if there\n * is no component associated with it.\n *\n * @publicApi\n */\nfunction getComponent(element) {\n ngDevMode && assertDomElement(element);\n const context = getLContext(element);\n if (context === null)\n return null;\n if (context.component === undefined) {\n const lView = context.lView;\n if (lView === null) {\n return null;\n }\n context.component = getComponentAtNodeIndex(context.nodeIndex, lView);\n }\n return context.component;\n}\n/**\n * If inside an embedded view (e.g. `*ngIf` or `*ngFor`), retrieves the context of the embedded\n * view that the element is part of. Otherwise retrieves the instance of the component whose view\n * owns the element (in this case, the result is the same as calling `getOwningComponent`).\n *\n * @param element Element for which to get the surrounding component instance.\n * @returns Instance of the component that is around the element or null if the element isn't\n * inside any component.\n *\n * @publicApi\n */\nfunction getContext(element) {\n assertDomElement(element);\n const context = getLContext(element);\n const lView = context ? context.lView : null;\n return lView === null ? null : lView[CONTEXT];\n}\n/**\n * Retrieves the component instance whose view contains the DOM element.\n *\n * For example, if `<child-comp>` is used in the template of `<app-comp>`\n * (i.e. a `ViewChild` of `<app-comp>`), calling `getOwningComponent` on `<child-comp>`\n * would return `<app-comp>`.\n *\n * @param elementOrDir DOM element, component or directive instance\n * for which to retrieve the root components.\n * @returns Component instance whose view owns the DOM element or null if the element is not\n * part of a component view.\n *\n * @publicApi\n */\nfunction getOwningComponent(elementOrDir) {\n const context = getLContext(elementOrDir);\n let lView = context ? context.lView : null;\n if (lView === null)\n return null;\n let parent;\n while (lView[TVIEW].type === 2 /* TViewType.Embedded */ && (parent = getLViewParent(lView))) {\n lView = parent;\n }\n return isRootView(lView) ? null : lView[CONTEXT];\n}\n/**\n * Retrieves all root components associated with a DOM element, directive or component instance.\n * Root components are those which have been bootstrapped by Angular.\n *\n * @param elementOrDir DOM element, component or directive instance\n * for which to retrieve the root components.\n * @returns Root components associated with the target object.\n *\n * @publicApi\n */\nfunction getRootComponents(elementOrDir) {\n const lView = readPatchedLView(elementOrDir);\n return lView !== null ? [getRootContext(lView)] : [];\n}\n/**\n * Retrieves an `Injector` associated with an element, component or directive instance.\n *\n * @param elementOrDir DOM element, component or directive instance for which to\n * retrieve the injector.\n * @returns Injector associated with the element, component or directive instance.\n *\n * @publicApi\n */\nfunction getInjector(elementOrDir) {\n const context = getLContext(elementOrDir);\n const lView = context ? context.lView : null;\n if (lView === null)\n return Injector.NULL;\n const tNode = lView[TVIEW].data[context.nodeIndex];\n return new NodeInjector(tNode, lView);\n}\n/**\n * Retrieve a set of injection tokens at a given DOM node.\n *\n * @param element Element for which the injection tokens should be retrieved.\n */\nfunction getInjectionTokens(element) {\n const context = getLContext(element);\n const lView = context ? context.lView : null;\n if (lView === null)\n return [];\n const tView = lView[TVIEW];\n const tNode = tView.data[context.nodeIndex];\n const providerTokens = [];\n const startIndex = tNode.providerIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;\n const endIndex = tNode.directiveEnd;\n for (let i = startIndex; i < endIndex; i++) {\n let value = tView.data[i];\n if (isDirectiveDefHack(value)) {\n // The fact that we sometimes store Type and sometimes DirectiveDef in this location is a\n // design flaw. We should always store same type so that we can be monomorphic. The issue\n // is that for Components/Directives we store the def instead the type. The correct behavior\n // is that we should always be storing injectable type in this location.\n value = value.type;\n }\n providerTokens.push(value);\n }\n return providerTokens;\n}\n/**\n * Retrieves directive instances associated with a given DOM node. Does not include\n * component instances.\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * <app-root>\n * <button my-button></button>\n * <my-comp></my-comp>\n * </app-root>\n * ```\n *\n * Calling `getDirectives` on `<button>` will return an array with an instance of the `MyButton`\n * directive that is associated with the DOM node.\n *\n * Calling `getDirectives` on `<my-comp>` will return an empty array.\n *\n * @param node DOM node for which to get the directives.\n * @returns Array of directives associated with the node.\n *\n * @publicApi\n */\nfunction getDirectives(node) {\n // Skip text nodes because we can't have directives associated with them.\n if (node instanceof Text) {\n return [];\n }\n const context = getLContext(node);\n const lView = context ? context.lView : null;\n if (lView === null) {\n return [];\n }\n const tView = lView[TVIEW];\n const nodeIndex = context.nodeIndex;\n if (!tView?.data[nodeIndex]) {\n return [];\n }\n if (context.directives === undefined) {\n context.directives = getDirectivesAtNodeIndex(nodeIndex, lView);\n }\n // The `directives` in this case are a named array called `LComponentView`. Clone the\n // result so we don't expose an internal data structure in the user's console.\n return context.directives === null ? [] : [...context.directives];\n}\n/**\n * Returns the debug (partial) metadata for a particular directive or component instance.\n * The function accepts an instance of a directive or component and returns the corresponding\n * metadata.\n *\n * @param directiveOrComponentInstance Instance of a directive or component\n * @returns metadata of the passed directive or component\n *\n * @publicApi\n */\nfunction getDirectiveMetadata$1(directiveOrComponentInstance) {\n const { constructor } = directiveOrComponentInstance;\n if (!constructor) {\n throw new Error('Unable to find the instance constructor');\n }\n // In case a component inherits from a directive, we may have component and directive metadata\n // To ensure we don't get the metadata of the directive, we want to call `getComponentDef` first.\n const componentDef = getComponentDef(constructor);\n if (componentDef) {\n const inputs = extractInputDebugMetadata(componentDef.inputs);\n return {\n inputs,\n outputs: componentDef.outputs,\n encapsulation: componentDef.encapsulation,\n changeDetection: componentDef.onPush\n ? ChangeDetectionStrategy.OnPush\n : ChangeDetectionStrategy.Default,\n };\n }\n const directiveDef = getDirectiveDef(constructor);\n if (directiveDef) {\n const inputs = extractInputDebugMetadata(directiveDef.inputs);\n return { inputs, outputs: directiveDef.outputs };\n }\n return null;\n}\n/**\n * Retrieve map of local references.\n *\n * The references are retrieved as a map of local reference name to element or directive instance.\n *\n * @param target DOM element, component or directive instance for which to retrieve\n * the local references.\n */\nfunction getLocalRefs(target) {\n const context = getLContext(target);\n if (context === null)\n return {};\n if (context.localRefs === undefined) {\n const lView = context.lView;\n if (lView === null) {\n return {};\n }\n context.localRefs = discoverLocalRefs(lView, context.nodeIndex);\n }\n return context.localRefs || {};\n}\n/**\n * Retrieves the host element of a component or directive instance.\n * The host element is the DOM element that matched the selector of the directive.\n *\n * @param componentOrDirective Component or directive instance for which the host\n * element should be retrieved.\n * @returns Host element of the target.\n *\n * @publicApi\n */\nfunction getHostElement(componentOrDirective) {\n return getLContext(componentOrDirective).native;\n}\n/**\n * Retrieves the rendered text for a given component.\n *\n * This function retrieves the host element of a component and\n * and then returns the `textContent` for that element. This implies\n * that the text returned will include re-projected content of\n * the component as well.\n *\n * @param component The component to return the content text for.\n */\nfunction getRenderedText(component) {\n const hostElement = getHostElement(component);\n return hostElement.textContent || '';\n}\n/**\n * Retrieves a list of event listeners associated with a DOM element. The list does include host\n * listeners, but it does not include event listeners defined outside of the Angular context\n * (e.g. through `addEventListener`).\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * <app-root>\n * <div (click)=\"doSomething()\"></div>\n * </app-root>\n * ```\n *\n * Calling `getListeners` on `<div>` will return an object that looks as follows:\n *\n * ```ts\n * {\n * name: 'click',\n * element: <div>,\n * callback: () => doSomething(),\n * useCapture: false\n * }\n * ```\n *\n * @param element Element for which the DOM listeners should be retrieved.\n * @returns Array of event listeners on the DOM element.\n *\n * @publicApi\n */\nfunction getListeners(element) {\n ngDevMode && assertDomElement(element);\n const lContext = getLContext(element);\n const lView = lContext === null ? null : lContext.lView;\n if (lView === null)\n return [];\n const tView = lView[TVIEW];\n const lCleanup = lView[CLEANUP];\n const tCleanup = tView.cleanup;\n const listeners = [];\n if (tCleanup && lCleanup) {\n for (let i = 0; i < tCleanup.length;) {\n const firstParam = tCleanup[i++];\n const secondParam = tCleanup[i++];\n if (typeof firstParam === 'string') {\n const name = firstParam;\n const listenerElement = unwrapRNode(lView[secondParam]);\n const callback = lCleanup[tCleanup[i++]];\n const useCaptureOrIndx = tCleanup[i++];\n // if useCaptureOrIndx is boolean then report it as is.\n // if useCaptureOrIndx is positive number then it in unsubscribe method\n // if useCaptureOrIndx is negative number then it is a Subscription\n const type = typeof useCaptureOrIndx === 'boolean' || useCaptureOrIndx >= 0 ? 'dom' : 'output';\n const useCapture = typeof useCaptureOrIndx === 'boolean' ? useCaptureOrIndx : false;\n if (element == listenerElement) {\n listeners.push({ element, name, callback, useCapture, type });\n }\n }\n }\n }\n listeners.sort(sortListeners);\n return listeners;\n}\nfunction sortListeners(a, b) {\n if (a.name == b.name)\n return 0;\n return a.name < b.name ? -1 : 1;\n}\n/**\n * This function should not exist because it is megamorphic and only mostly correct.\n *\n * See call site for more info.\n */\nfunction isDirectiveDefHack(obj) {\n return (obj.type !== undefined &&\n obj.declaredInputs !== undefined &&\n obj.findHostDirectiveDefs !== undefined);\n}\n/**\n * Retrieve the component `LView` from component/element.\n *\n * NOTE: `LView` is a private and should not be leaked outside.\n * Don't export this method to `ng.*` on window.\n *\n * @param target DOM element or component instance for which to retrieve the LView.\n */\nfunction getComponentLView(target) {\n const lContext = getLContext(target);\n const nodeIndx = lContext.nodeIndex;\n const lView = lContext.lView;\n ngDevMode && assertLView(lView);\n const componentLView = lView[nodeIndx];\n ngDevMode && assertLView(componentLView);\n return componentLView;\n}\n/** Asserts that a value is a DOM Element. */\nfunction assertDomElement(value) {\n if (typeof Element !== 'undefined' && !(value instanceof Element)) {\n throw new Error('Expecting instance of DOM Element');\n }\n}\n/**\n * A directive definition holds additional metadata using bitwise flags to indicate\n * for example whether it is signal based.\n *\n * This information needs to be separate from the `publicName -> minifiedName`\n * mappings for backwards compatibility.\n */\nfunction extractInputDebugMetadata(inputs) {\n const res = {};\n for (const key in inputs) {\n if (!inputs.hasOwnProperty(key)) {\n continue;\n }\n const value = inputs[key];\n if (value === undefined) {\n continue;\n }\n let minifiedName;\n if (Array.isArray(value)) {\n minifiedName = value[0];\n // flags are not used for now.\n // TODO: Consider exposing flag information in discovery.\n }\n else {\n minifiedName = value;\n }\n res[key] = minifiedName;\n }\n return res;\n}\n\n/**\n * Most of the use of `document` in Angular is from within the DI system so it is possible to simply\n * inject the `DOCUMENT` token and are done.\n *\n * Ivy is special because it does not rely upon the DI and must get hold of the document some other\n * way.\n *\n * The solution is to define `getDocument()` and `setDocument()` top-level functions for ivy.\n * Wherever ivy needs the global document, it calls `getDocument()` instead.\n *\n * When running ivy outside of a browser environment, it is necessary to call `setDocument()` to\n * tell ivy what the global `document` is.\n *\n * Angular does this for us in each of the standard platforms (`Browser` and `Server`)\n * by calling `setDocument()` when providing the `DOCUMENT` token.\n */\nlet DOCUMENT = undefined;\n/**\n * Tell ivy what the `document` is for this platform.\n *\n * It is only necessary to call this if the current platform is not a browser.\n *\n * @param document The object representing the global `document` in this environment.\n */\nfunction setDocument(document) {\n DOCUMENT = document;\n}\n/**\n * Access the object that represents the `document` for this platform.\n *\n * Ivy calls this whenever it needs to access the `document` object.\n * For example to create the renderer or to do sanitization.\n */\nfunction getDocument() {\n if (DOCUMENT !== undefined) {\n return DOCUMENT;\n }\n else if (typeof document !== 'undefined') {\n return document;\n }\n throw new RuntimeError(210 /* RuntimeErrorCode.MISSING_DOCUMENT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `The document object is not available in this context. Make sure the DOCUMENT injection token is provided.`);\n // No \"document\" can be found. This should only happen if we are running ivy outside Angular and\n // the current platform is not a browser. Since this is not a supported scenario at the moment\n // this should not happen in Angular apps.\n // Once we support running ivy outside of Angular we will need to publish `setDocument()` as a\n // public API.\n}\n\n/**\n * A DI token representing a string ID, used\n * primarily for prefixing application attributes and CSS styles when\n * {@link ViewEncapsulation#Emulated} is being used.\n *\n * The token is needed in cases when multiple applications are bootstrapped on a page\n * (for example, using `bootstrapApplication` calls). In this case, ensure that those applications\n * have different `APP_ID` value setup. For example:\n *\n * ```ts\n * bootstrapApplication(ComponentA, {\n * providers: [\n * { provide: APP_ID, useValue: 'app-a' },\n * // ... other providers ...\n * ]\n * });\n *\n * bootstrapApplication(ComponentB, {\n * providers: [\n * { provide: APP_ID, useValue: 'app-b' },\n * // ... other providers ...\n * ]\n * });\n * ```\n *\n * By default, when there is only one application bootstrapped, you don't need to provide the\n * `APP_ID` token (the `ng` will be used as an app ID).\n *\n * @publicApi\n */\nconst APP_ID = new InjectionToken(ngDevMode ? 'AppId' : '', {\n providedIn: 'root',\n factory: () => DEFAULT_APP_ID,\n});\n/** Default value of the `APP_ID` token. */\nconst DEFAULT_APP_ID = 'ng';\n/**\n * A function that is executed when a platform is initialized.\n *\n * @deprecated from v19.0.0, use providePlatformInitializer instead\n *\n * @see {@link providePlatformInitializer}\n *\n * @publicApi\n */\nconst PLATFORM_INITIALIZER = new InjectionToken(ngDevMode ? 'Platform Initializer' : '');\n/**\n * A token that indicates an opaque platform ID.\n * @publicApi\n */\nconst PLATFORM_ID = new InjectionToken(ngDevMode ? 'Platform ID' : '', {\n providedIn: 'platform',\n factory: () => 'unknown', // set a default platform name, when none set explicitly\n});\n/**\n * A DI token that indicates the root directory of\n * the application\n * @publicApi\n * @deprecated\n */\nconst PACKAGE_ROOT_URL = new InjectionToken(ngDevMode ? 'Application Packages Root URL' : '');\n// We keep this token here, rather than the animations package, so that modules that only care\n// about which animations module is loaded (e.g. the CDK) can retrieve it without having to\n// include extra dependencies. See #44970 for more context.\n/**\n * A [DI token](api/core/InjectionToken) that indicates which animations\n * module has been loaded.\n * @publicApi\n */\nconst ANIMATION_MODULE_TYPE = new InjectionToken(ngDevMode ? 'AnimationModuleType' : '');\n// TODO(crisbeto): link to CSP guide here.\n/**\n * Token used to configure the [Content Security Policy](https://web.dev/strict-csp/) nonce that\n * Angular will apply when inserting inline styles. If not provided, Angular will look up its value\n * from the `ngCspNonce` attribute of the application root node.\n *\n * @publicApi\n */\nconst CSP_NONCE = new InjectionToken(ngDevMode ? 'CSP nonce' : '', {\n providedIn: 'root',\n factory: () => {\n // Ideally we wouldn't have to use `querySelector` here since we know that the nonce will be on\n // the root node, but because the token value is used in renderers, it has to be available\n // *very* early in the bootstrapping process. This should be a fairly shallow search, because\n // the app won't have been added to the DOM yet. Some approaches that were considered:\n // 1. Find the root node through `ApplicationRef.components[i].location` - normally this would\n // be enough for our purposes, but the token is injected very early so the `components` array\n // isn't populated yet.\n // 2. Find the root `LView` through the current `LView` - renderers are a prerequisite to\n // creating the `LView`. This means that no `LView` will have been entered when this factory is\n // invoked for the root component.\n // 3. Have the token factory return `() => string` which is invoked when a nonce is requested -\n // the slightly later execution does allow us to get an `LView` reference, but the fact that\n // it is a function means that it could be executed at *any* time (including immediately) which\n // may lead to weird bugs.\n // 4. Have the `ComponentFactory` read the attribute and provide it to the injector under the\n // hood - has the same problem as #1 and #2 in that the renderer is used to query for the root\n // node and the nonce value needs to be available when the renderer is created.\n return getDocument().body?.querySelector('[ngCspNonce]')?.getAttribute('ngCspNonce') || null;\n },\n});\nconst IMAGE_CONFIG_DEFAULTS = {\n breakpoints: [16, 32, 48, 64, 96, 128, 256, 384, 640, 750, 828, 1080, 1200, 1920, 2048, 3840],\n placeholderResolution: 30,\n disableImageSizeWarning: false,\n disableImageLazyLoadWarning: false,\n};\n/**\n * Injection token that configures the image optimized image functionality.\n * See {@link ImageConfig} for additional information about parameters that\n * can be used.\n *\n * @see {@link NgOptimizedImage}\n * @see {@link ImageConfig}\n * @publicApi\n */\nconst IMAGE_CONFIG = new InjectionToken(ngDevMode ? 'ImageConfig' : '', {\n providedIn: 'root',\n factory: () => IMAGE_CONFIG_DEFAULTS,\n});\n\n/**\n * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.\n *\n * Example:\n *\n * ```ts\n * const COUNTER_KEY = makeStateKey<number>('counter');\n * let value = 10;\n *\n * transferState.set(COUNTER_KEY, value);\n * ```\n *\n * @publicApi\n */\nfunction makeStateKey(key) {\n return key;\n}\nfunction initTransferState() {\n const transferState = new TransferState();\n if (inject(PLATFORM_ID) === 'browser') {\n transferState.store = retrieveTransferredState(getDocument(), inject(APP_ID));\n }\n return transferState;\n}\n/**\n * A key value store that is transferred from the application on the server side to the application\n * on the client side.\n *\n * The `TransferState` is available as an injectable token.\n * On the client, just inject this token using DI and use it, it will be lazily initialized.\n * On the server it's already included if `renderApplication` function is used. Otherwise, import\n * the `ServerTransferStateModule` module to make the `TransferState` available.\n *\n * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only\n * boolean, number, string, null and non-class objects will be serialized and deserialized in a\n * non-lossy manner.\n *\n * @publicApi\n */\nclass TransferState {\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: TransferState,\n providedIn: 'root',\n factory: initTransferState,\n });\n /** @internal */\n store = {};\n onSerializeCallbacks = {};\n /**\n * Get the value corresponding to a key. Return `defaultValue` if key is not found.\n */\n get(key, defaultValue) {\n return this.store[key] !== undefined ? this.store[key] : defaultValue;\n }\n /**\n * Set the value corresponding to a key.\n */\n set(key, value) {\n this.store[key] = value;\n }\n /**\n * Remove a key from the store.\n */\n remove(key) {\n delete this.store[key];\n }\n /**\n * Test whether a key exists in the store.\n */\n hasKey(key) {\n return this.store.hasOwnProperty(key);\n }\n /**\n * Indicates whether the state is empty.\n */\n get isEmpty() {\n return Object.keys(this.store).length === 0;\n }\n /**\n * Register a callback to provide the value for a key when `toJson` is called.\n */\n onSerialize(key, callback) {\n this.onSerializeCallbacks[key] = callback;\n }\n /**\n * Serialize the current state of the store to JSON.\n */\n toJson() {\n // Call the onSerialize callbacks and put those values into the store.\n for (const key in this.onSerializeCallbacks) {\n if (this.onSerializeCallbacks.hasOwnProperty(key)) {\n try {\n this.store[key] = this.onSerializeCallbacks[key]();\n }\n catch (e) {\n console.warn('Exception in onSerialize callback: ', e);\n }\n }\n }\n // Escape script tag to avoid break out of <script> tag in serialized output.\n // Encoding of `<` is the same behaviour as G3 script_builders.\n return JSON.stringify(this.store).replace(/</g, '\\\\u003C');\n }\n}\nfunction retrieveTransferredState(doc, appId) {\n // Locate the script tag with the JSON data transferred from the server.\n // The id of the script tag is set to the Angular appId + 'state'.\n const script = doc.getElementById(appId + '-state');\n if (script?.textContent) {\n try {\n // Avoid using any here as it triggers lint errors in google3 (any is not allowed).\n // Decoding of `<` is done of the box by browsers and node.js, same behaviour as G3\n // script_builders.\n return JSON.parse(script.textContent);\n }\n catch (e) {\n console.warn('Exception while restoring TransferState for app ' + appId, e);\n }\n }\n return {};\n}\n\n/** Encodes that the node lookup should start from the host node of this component. */\nconst REFERENCE_NODE_HOST = 'h';\n/** Encodes that the node lookup should start from the document body node. */\nconst REFERENCE_NODE_BODY = 'b';\nconst NODE_NAVIGATION_STEP_FIRST_CHILD = 'f';\nconst NODE_NAVIGATION_STEP_NEXT_SIBLING = 'n';\n/**\n * Keys within serialized view data structure to represent various\n * parts. See the `SerializedView` interface below for additional information.\n */\nconst ELEMENT_CONTAINERS = 'e';\nconst TEMPLATES = 't';\nconst CONTAINERS = 'c';\nconst MULTIPLIER = 'x';\nconst NUM_ROOT_NODES = 'r';\nconst TEMPLATE_ID = 'i'; // as it's also an \"id\"\nconst NODES = 'n';\nconst DISCONNECTED_NODES = 'd';\nconst I18N_DATA = 'l';\nconst DEFER_BLOCK_ID = 'di';\nconst DEFER_BLOCK_STATE$1 = 's';\nconst DEFER_PARENT_BLOCK_ID = 'p';\nconst DEFER_HYDRATE_TRIGGERS = 't';\nconst DEFER_PREFETCH_TRIGGERS = 'pt';\n\n/**\n * Internal token that specifies whether DOM reuse logic\n * during hydration is enabled.\n */\nconst IS_HYDRATION_DOM_REUSE_ENABLED = new InjectionToken(typeof ngDevMode === 'undefined' || !!ngDevMode ? 'IS_HYDRATION_DOM_REUSE_ENABLED' : '');\n// By default (in client rendering mode), we remove all the contents\n// of the host element and render an application after that.\nconst PRESERVE_HOST_CONTENT_DEFAULT = false;\n/**\n * Internal token that indicates whether host element content should be\n * retained during the bootstrap.\n */\nconst PRESERVE_HOST_CONTENT = new InjectionToken(typeof ngDevMode === 'undefined' || !!ngDevMode ? 'PRESERVE_HOST_CONTENT' : '', {\n providedIn: 'root',\n factory: () => PRESERVE_HOST_CONTENT_DEFAULT,\n});\n/**\n * Internal token that indicates whether hydration support for i18n\n * is enabled.\n */\nconst IS_I18N_HYDRATION_ENABLED = new InjectionToken(typeof ngDevMode === 'undefined' || !!ngDevMode ? 'IS_I18N_HYDRATION_ENABLED' : '');\n/**\n * Internal token that indicates whether event replay support for SSR\n * is enabled.\n */\nconst IS_EVENT_REPLAY_ENABLED = new InjectionToken(typeof ngDevMode === 'undefined' || !!ngDevMode ? 'IS_EVENT_REPLAY_ENABLED' : '');\nconst EVENT_REPLAY_ENABLED_DEFAULT = false;\n/**\n * Internal token that indicates whether incremental hydration support\n * is enabled.\n */\nconst IS_INCREMENTAL_HYDRATION_ENABLED = new InjectionToken(typeof ngDevMode === 'undefined' || !!ngDevMode ? 'IS_INCREMENTAL_HYDRATION_ENABLED' : '');\n/**\n * A map of DOM elements with `jsaction` attributes grouped by action names.\n */\nconst JSACTION_BLOCK_ELEMENT_MAP = new InjectionToken(ngDevMode ? 'JSACTION_BLOCK_ELEMENT_MAP' : '', {\n providedIn: 'root',\n factory: () => new Map(),\n});\n\n/** Actions that are supported by the tracing framework. */\nvar TracingAction;\n(function (TracingAction) {\n TracingAction[TracingAction[\"CHANGE_DETECTION\"] = 0] = \"CHANGE_DETECTION\";\n TracingAction[TracingAction[\"AFTER_NEXT_RENDER\"] = 1] = \"AFTER_NEXT_RENDER\";\n})(TracingAction || (TracingAction = {}));\n/**\n * Injection token for a `TracingService`, optionally provided.\n */\nconst TracingService = new InjectionToken(ngDevMode ? 'TracingService' : '');\n\n/**\n * Asserts that the current stack frame is not within a reactive context. Useful\n * to disallow certain code from running inside a reactive context (see {@link toSignal}).\n *\n * @param debugFn a reference to the function making the assertion (used for the error message).\n *\n * @publicApi\n */\nfunction assertNotInReactiveContext(debugFn, extraContext) {\n // Taking a `Function` instead of a string name here prevents the un-minified name of the function\n // from being retained in the bundle regardless of minification.\n if (getActiveConsumer$1() !== null) {\n throw new RuntimeError(-602 /* RuntimeErrorCode.ASSERTION_NOT_INSIDE_REACTIVE_CONTEXT */, ngDevMode &&\n `${debugFn.name}() cannot be called from within a reactive context.${extraContext ? ` ${extraContext}` : ''}`);\n }\n}\n\n/**\n * The phase to run an `afterRender` or `afterNextRender` callback in.\n *\n * Callbacks in the same phase run in the order they are registered. Phases run in the\n * following order after each render:\n *\n * 1. `AfterRenderPhase.EarlyRead`\n * 2. `AfterRenderPhase.Write`\n * 3. `AfterRenderPhase.MixedReadWrite`\n * 4. `AfterRenderPhase.Read`\n *\n * Angular is unable to verify or enforce that phases are used correctly, and instead\n * relies on each developer to follow the guidelines documented for each value and\n * carefully choose the appropriate one, refactoring their code if necessary. By doing\n * so, Angular is better able to minimize the performance degradation associated with\n * manual DOM access, ensuring the best experience for the end users of your application\n * or library.\n *\n * @deprecated Specify the phase for your callback to run in by passing a spec-object as the first\n * parameter to `afterRender` or `afterNextRender` instead of a function.\n */\nvar AfterRenderPhase;\n(function (AfterRenderPhase) {\n /**\n * Use `AfterRenderPhase.EarlyRead` for callbacks that only need to **read** from the\n * DOM before a subsequent `AfterRenderPhase.Write` callback, for example to perform\n * custom layout that the browser doesn't natively support. Prefer the\n * `AfterRenderPhase.EarlyRead` phase if reading can wait until after the write phase.\n * **Never** write to the DOM in this phase.\n *\n * <div class=\"docs-alert docs-alert-important\">\n *\n * Using this value can degrade performance.\n * Instead, prefer using built-in browser functionality when possible.\n *\n * </div>\n */\n AfterRenderPhase[AfterRenderPhase[\"EarlyRead\"] = 0] = \"EarlyRead\";\n /**\n * Use `AfterRenderPhase.Write` for callbacks that only **write** to the DOM. **Never**\n * read from the DOM in this phase.\n */\n AfterRenderPhase[AfterRenderPhase[\"Write\"] = 1] = \"Write\";\n /**\n * Use `AfterRenderPhase.MixedReadWrite` for callbacks that read from or write to the\n * DOM, that haven't been refactored to use a different phase. **Never** use this phase if\n * it is possible to divide the work among the other phases instead.\n *\n * <div class=\"docs-alert docs-alert-critical\">\n *\n * Using this value can **significantly** degrade performance.\n * Instead, prefer dividing work into the appropriate phase callbacks.\n *\n * </div>\n */\n AfterRenderPhase[AfterRenderPhase[\"MixedReadWrite\"] = 2] = \"MixedReadWrite\";\n /**\n * Use `AfterRenderPhase.Read` for callbacks that only **read** from the DOM. **Never**\n * write to the DOM in this phase.\n */\n AfterRenderPhase[AfterRenderPhase[\"Read\"] = 3] = \"Read\";\n})(AfterRenderPhase || (AfterRenderPhase = {}));\n\nclass AfterRenderManager {\n impl = null;\n execute() {\n this.impl?.execute();\n }\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: AfterRenderManager,\n providedIn: 'root',\n factory: () => new AfterRenderManager(),\n });\n}\nconst AFTER_RENDER_PHASES = /* @__PURE__ **/ (() => [\n AfterRenderPhase.EarlyRead,\n AfterRenderPhase.Write,\n AfterRenderPhase.MixedReadWrite,\n AfterRenderPhase.Read,\n])();\nclass AfterRenderImpl {\n ngZone = inject(NgZone);\n scheduler = inject(ChangeDetectionScheduler);\n errorHandler = inject(ErrorHandler, { optional: true });\n /** Current set of active sequences. */\n sequences = new Set();\n /** Tracks registrations made during the current set of executions. */\n deferredRegistrations = new Set();\n /** Whether the `AfterRenderManager` is currently executing hooks. */\n executing = false;\n constructor() {\n // Inject the tracing service to make sure it's initialized.\n inject(TracingService, { optional: true });\n }\n /**\n * Run the sequence of phases of hooks, once through. As a result of executing some hooks, more\n * might be scheduled.\n */\n execute() {\n this.executing = true;\n for (const phase of AFTER_RENDER_PHASES) {\n for (const sequence of this.sequences) {\n if (sequence.erroredOrDestroyed || !sequence.hooks[phase]) {\n continue;\n }\n try {\n sequence.pipelinedValue = this.ngZone.runOutsideAngular(() => this.maybeTrace(() => sequence.hooks[phase](sequence.pipelinedValue), sequence.snapshot));\n }\n catch (err) {\n sequence.erroredOrDestroyed = true;\n this.errorHandler?.handleError(err);\n }\n }\n }\n this.executing = false;\n // Cleanup step to reset sequence state and also collect one-shot sequences for removal.\n for (const sequence of this.sequences) {\n sequence.afterRun();\n if (sequence.once) {\n this.sequences.delete(sequence);\n // Destroy the sequence so its on destroy callbacks can be cleaned up\n // immediately, instead of waiting until the injector is destroyed.\n sequence.destroy();\n }\n }\n for (const sequence of this.deferredRegistrations) {\n this.sequences.add(sequence);\n }\n if (this.deferredRegistrations.size > 0) {\n this.scheduler.notify(8 /* NotificationSource.DeferredRenderHook */);\n }\n this.deferredRegistrations.clear();\n }\n register(sequence) {\n if (!this.executing) {\n this.sequences.add(sequence);\n // Trigger an `ApplicationRef.tick()` if one is not already pending/running, because we have a\n // new render hook that needs to run.\n this.scheduler.notify(7 /* NotificationSource.RenderHook */);\n }\n else {\n this.deferredRegistrations.add(sequence);\n }\n }\n unregister(sequence) {\n if (this.executing && this.sequences.has(sequence)) {\n // We can't remove an `AfterRenderSequence` in the middle of iteration.\n // Instead, mark it as destroyed so it doesn't run any more, and mark it as one-shot so it'll\n // be removed at the end of the current execution.\n sequence.erroredOrDestroyed = true;\n sequence.pipelinedValue = undefined;\n sequence.once = true;\n }\n else {\n // It's safe to directly remove this sequence.\n this.sequences.delete(sequence);\n this.deferredRegistrations.delete(sequence);\n }\n }\n maybeTrace(fn, snapshot) {\n // Only trace the execution if the snapshot is defined.\n return snapshot ? snapshot.run(TracingAction.AFTER_NEXT_RENDER, fn) : fn();\n }\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: AfterRenderImpl,\n providedIn: 'root',\n factory: () => new AfterRenderImpl(),\n });\n}\nclass AfterRenderSequence {\n impl;\n hooks;\n once;\n snapshot;\n /**\n * Whether this sequence errored or was destroyed during this execution, and hooks should no\n * longer run for it.\n */\n erroredOrDestroyed = false;\n /**\n * The value returned by the last hook execution (if any), ready to be pipelined into the next\n * one.\n */\n pipelinedValue = undefined;\n unregisterOnDestroy;\n constructor(impl, hooks, once, destroyRef, snapshot = null) {\n this.impl = impl;\n this.hooks = hooks;\n this.once = once;\n this.snapshot = snapshot;\n this.unregisterOnDestroy = destroyRef?.onDestroy(() => this.destroy());\n }\n afterRun() {\n this.erroredOrDestroyed = false;\n this.pipelinedValue = undefined;\n // Clear the tracing snapshot after the initial run. This snapshot only\n // associates the initial run of the hook with the context that created it.\n // Follow-up runs are independent of that initial context and have different\n // triggers.\n this.snapshot?.dispose();\n this.snapshot = null;\n }\n destroy() {\n this.impl.unregister(this);\n this.unregisterOnDestroy?.();\n }\n}\n\nfunction afterRender(callbackOrSpec, options) {\n ngDevMode &&\n assertNotInReactiveContext(afterRender, 'Call `afterRender` outside of a reactive context. For example, schedule the render ' +\n 'callback inside the component constructor`.');\n !options?.injector && assertInInjectionContext(afterRender);\n const injector = options?.injector ?? inject(Injector);\n if (typeof ngServerMode !== 'undefined' && ngServerMode) {\n return NOOP_AFTER_RENDER_REF;\n }\n performanceMarkFeature('NgAfterRender');\n return afterRenderImpl(callbackOrSpec, injector, options, /* once */ false);\n}\nfunction afterNextRender(callbackOrSpec, options) {\n !options?.injector && assertInInjectionContext(afterNextRender);\n const injector = options?.injector ?? inject(Injector);\n if (typeof ngServerMode !== 'undefined' && ngServerMode) {\n return NOOP_AFTER_RENDER_REF;\n }\n performanceMarkFeature('NgAfterNextRender');\n return afterRenderImpl(callbackOrSpec, injector, options, /* once */ true);\n}\nfunction getHooks(callbackOrSpec, phase) {\n if (callbackOrSpec instanceof Function) {\n const hooks = [undefined, undefined, undefined, undefined];\n hooks[phase] = callbackOrSpec;\n return hooks;\n }\n else {\n return [\n callbackOrSpec.earlyRead,\n callbackOrSpec.write,\n callbackOrSpec.mixedReadWrite,\n callbackOrSpec.read,\n ];\n }\n}\n/**\n * Shared implementation for `afterRender` and `afterNextRender`.\n */\nfunction afterRenderImpl(callbackOrSpec, injector, options, once) {\n const manager = injector.get(AfterRenderManager);\n // Lazily initialize the handler implementation, if necessary. This is so that it can be\n // tree-shaken if `afterRender` and `afterNextRender` aren't used.\n manager.impl ??= injector.get(AfterRenderImpl);\n const tracing = injector.get(TracingService, null, { optional: true });\n const hooks = options?.phase ?? AfterRenderPhase.MixedReadWrite;\n const destroyRef = options?.manualCleanup !== true ? injector.get(DestroyRef) : null;\n const sequence = new AfterRenderSequence(manager.impl, getHooks(callbackOrSpec, hooks), once, destroyRef, tracing?.snapshot(null));\n manager.impl.register(sequence);\n return sequence;\n}\n/** `AfterRenderRef` that does nothing. */\nconst NOOP_AFTER_RENDER_REF = {\n destroy() { },\n};\n\n/**\n * Describes the state of defer block dependency loading.\n */\nvar DeferDependenciesLoadingState;\n(function (DeferDependenciesLoadingState) {\n /** Initial state, dependency loading is not yet triggered */\n DeferDependenciesLoadingState[DeferDependenciesLoadingState[\"NOT_STARTED\"] = 0] = \"NOT_STARTED\";\n /** Dependency loading is in progress */\n DeferDependenciesLoadingState[DeferDependenciesLoadingState[\"IN_PROGRESS\"] = 1] = \"IN_PROGRESS\";\n /** Dependency loading has completed successfully */\n DeferDependenciesLoadingState[DeferDependenciesLoadingState[\"COMPLETE\"] = 2] = \"COMPLETE\";\n /** Dependency loading has failed */\n DeferDependenciesLoadingState[DeferDependenciesLoadingState[\"FAILED\"] = 3] = \"FAILED\";\n})(DeferDependenciesLoadingState || (DeferDependenciesLoadingState = {}));\n/** Slot index where `minimum` parameter value is stored. */\nconst MINIMUM_SLOT = 0;\n/** Slot index where `after` parameter value is stored. */\nconst LOADING_AFTER_SLOT = 1;\n/**\n * Describes the current state of this defer block instance.\n *\n * @publicApi\n */\nvar DeferBlockState;\n(function (DeferBlockState) {\n /** The placeholder block content is rendered */\n DeferBlockState[DeferBlockState[\"Placeholder\"] = 0] = \"Placeholder\";\n /** The loading block content is rendered */\n DeferBlockState[DeferBlockState[\"Loading\"] = 1] = \"Loading\";\n /** The main content block content is rendered */\n DeferBlockState[DeferBlockState[\"Complete\"] = 2] = \"Complete\";\n /** The error block content is rendered */\n DeferBlockState[DeferBlockState[\"Error\"] = 3] = \"Error\";\n})(DeferBlockState || (DeferBlockState = {}));\n/**\n * Describes the initial state of this defer block instance.\n *\n * Note: this state is internal only and *must* be represented\n * with a number lower than any value in the `DeferBlockState` enum.\n */\nvar DeferBlockInternalState;\n(function (DeferBlockInternalState) {\n /** Initial state. Nothing is rendered yet. */\n DeferBlockInternalState[DeferBlockInternalState[\"Initial\"] = -1] = \"Initial\";\n})(DeferBlockInternalState || (DeferBlockInternalState = {}));\nconst NEXT_DEFER_BLOCK_STATE = 0;\n// Note: it's *important* to keep the state in this slot, because this slot\n// is used by runtime logic to differentiate between LViews, LContainers and\n// other types (see `isLView` and `isLContainer` functions). In case of defer\n// blocks, this slot would always be a number.\nconst DEFER_BLOCK_STATE = 1;\nconst STATE_IS_FROZEN_UNTIL = 2;\nconst LOADING_AFTER_CLEANUP_FN = 3;\nconst TRIGGER_CLEANUP_FNS = 4;\nconst PREFETCH_TRIGGER_CLEANUP_FNS = 5;\nconst SSR_UNIQUE_ID = 6;\nconst SSR_BLOCK_STATE = 7;\nconst ON_COMPLETE_FNS = 8;\nconst HYDRATE_TRIGGER_CLEANUP_FNS = 9;\n/**\n * Options for configuring defer blocks behavior.\n * @publicApi\n */\nvar DeferBlockBehavior;\n(function (DeferBlockBehavior) {\n /**\n * Manual triggering mode for defer blocks. Provides control over when defer blocks render\n * and which state they render.\n */\n DeferBlockBehavior[DeferBlockBehavior[\"Manual\"] = 0] = \"Manual\";\n /**\n * Playthrough mode for defer blocks. This mode behaves like defer blocks would in a browser.\n * This is the default behavior in test environments.\n */\n DeferBlockBehavior[DeferBlockBehavior[\"Playthrough\"] = 1] = \"Playthrough\";\n})(DeferBlockBehavior || (DeferBlockBehavior = {}));\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Registers a cleanup function associated with a prefetching trigger\n * or a regular trigger of a defer block.\n */\nfunction storeTriggerCleanupFn(type, lDetails, cleanupFn) {\n const key = getCleanupFnKeyByType(type);\n if (lDetails[key] === null) {\n lDetails[key] = [];\n }\n lDetails[key].push(cleanupFn);\n}\n/**\n * Invokes registered cleanup functions either for prefetch or for regular triggers.\n */\nfunction invokeTriggerCleanupFns(type, lDetails) {\n const key = getCleanupFnKeyByType(type);\n const cleanupFns = lDetails[key];\n if (cleanupFns !== null) {\n for (const cleanupFn of cleanupFns) {\n cleanupFn();\n }\n lDetails[key] = null;\n }\n}\n/**\n * Invokes registered cleanup functions for prefetch, hydrate, and regular triggers.\n */\nfunction invokeAllTriggerCleanupFns(lDetails) {\n invokeTriggerCleanupFns(1 /* TriggerType.Prefetch */, lDetails);\n invokeTriggerCleanupFns(0 /* TriggerType.Regular */, lDetails);\n invokeTriggerCleanupFns(2 /* TriggerType.Hydrate */, lDetails);\n}\nfunction getCleanupFnKeyByType(type) {\n let key = TRIGGER_CLEANUP_FNS;\n if (type === 1 /* TriggerType.Prefetch */) {\n key = PREFETCH_TRIGGER_CLEANUP_FNS;\n }\n else if (type === 2 /* TriggerType.Hydrate */) {\n key = HYDRATE_TRIGGER_CLEANUP_FNS;\n }\n return key;\n}\n\n/**\n * Calculates a data slot index for defer block info (either static or\n * instance-specific), given an index of a defer instruction.\n */\nfunction getDeferBlockDataIndex(deferBlockIndex) {\n // Instance state is located at the *next* position\n // after the defer block slot in an LView or TView.data.\n return deferBlockIndex + 1;\n}\n/** Retrieves a defer block state from an LView, given a TNode that represents a block. */\nfunction getLDeferBlockDetails(lView, tNode) {\n const tView = lView[TVIEW];\n const slotIndex = getDeferBlockDataIndex(tNode.index);\n ngDevMode && assertIndexInDeclRange(tView, slotIndex);\n return lView[slotIndex];\n}\n/** Stores a defer block instance state in LView. */\nfunction setLDeferBlockDetails(lView, deferBlockIndex, lDetails) {\n const tView = lView[TVIEW];\n const slotIndex = getDeferBlockDataIndex(deferBlockIndex);\n ngDevMode && assertIndexInDeclRange(tView, slotIndex);\n lView[slotIndex] = lDetails;\n}\n/** Retrieves static info about a defer block, given a TView and a TNode that represents a block. */\nfunction getTDeferBlockDetails(tView, tNode) {\n const slotIndex = getDeferBlockDataIndex(tNode.index);\n ngDevMode && assertIndexInDeclRange(tView, slotIndex);\n return tView.data[slotIndex];\n}\n/** Stores a defer block static info in `TView.data`. */\nfunction setTDeferBlockDetails(tView, deferBlockIndex, deferBlockConfig) {\n const slotIndex = getDeferBlockDataIndex(deferBlockIndex);\n ngDevMode && assertIndexInDeclRange(tView, slotIndex);\n tView.data[slotIndex] = deferBlockConfig;\n}\nfunction getTemplateIndexForState(newState, hostLView, tNode) {\n const tView = hostLView[TVIEW];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n switch (newState) {\n case DeferBlockState.Complete:\n return tDetails.primaryTmplIndex;\n case DeferBlockState.Loading:\n return tDetails.loadingTmplIndex;\n case DeferBlockState.Error:\n return tDetails.errorTmplIndex;\n case DeferBlockState.Placeholder:\n return tDetails.placeholderTmplIndex;\n default:\n ngDevMode && throwError(`Unexpected defer block state: ${newState}`);\n return null;\n }\n}\n/**\n * Returns a minimum amount of time that a given state should be rendered for,\n * taking into account `minimum` parameter value. If the `minimum` value is\n * not specified - returns `null`.\n */\nfunction getMinimumDurationForState(tDetails, currentState) {\n if (currentState === DeferBlockState.Placeholder) {\n return tDetails.placeholderBlockConfig?.[MINIMUM_SLOT] ?? null;\n }\n else if (currentState === DeferBlockState.Loading) {\n return tDetails.loadingBlockConfig?.[MINIMUM_SLOT] ?? null;\n }\n return null;\n}\n/** Retrieves the value of the `after` parameter on the @loading block. */\nfunction getLoadingBlockAfter(tDetails) {\n return tDetails.loadingBlockConfig?.[LOADING_AFTER_SLOT] ?? null;\n}\n/**\n * Adds downloaded dependencies into a directive or a pipe registry,\n * making sure that a dependency doesn't yet exist in the registry.\n */\nfunction addDepsToRegistry(currentDeps, newDeps) {\n if (!currentDeps || currentDeps.length === 0) {\n return newDeps;\n }\n const currentDepSet = new Set(currentDeps);\n for (const dep of newDeps) {\n currentDepSet.add(dep);\n }\n // If `currentDeps` is the same length, there were no new deps and can\n // return the original array.\n return currentDeps.length === currentDepSet.size ? currentDeps : Array.from(currentDepSet);\n}\n/** Retrieves a TNode that represents main content of a defer block. */\nfunction getPrimaryBlockTNode(tView, tDetails) {\n const adjustedIndex = tDetails.primaryTmplIndex + HEADER_OFFSET;\n return getTNode(tView, adjustedIndex);\n}\n/**\n * Asserts whether all dependencies for a defer block are loaded.\n * Always run this function (in dev mode) before rendering a defer\n * block in completed state.\n */\nfunction assertDeferredDependenciesLoaded(tDetails) {\n assertEqual(tDetails.loadingState, DeferDependenciesLoadingState.COMPLETE, 'Expecting all deferred dependencies to be loaded.');\n}\n/**\n * Determines if a given value matches the expected structure of a defer block\n *\n * We can safely rely on the primaryTmplIndex because every defer block requires\n * that a primary template exists. All the other template options are optional.\n */\nfunction isTDeferBlockDetails(value) {\n return (value !== null &&\n typeof value === 'object' &&\n typeof value.primaryTmplIndex === 'number');\n}\n/**\n * Whether a given TNode represents a defer block.\n */\nfunction isDeferBlock(tView, tNode) {\n let tDetails = null;\n const slotIndex = getDeferBlockDataIndex(tNode.index);\n // Check if a slot index is in the reasonable range.\n // Note: we do `-1` on the right border, since defer block details are stored\n // in the `n+1` slot, see `getDeferBlockDataIndex` for more info.\n if (HEADER_OFFSET < slotIndex && slotIndex < tView.bindingStartIndex) {\n tDetails = getTDeferBlockDetails(tView, tNode);\n }\n return !!tDetails && isTDeferBlockDetails(tDetails);\n}\n/**\n * Tracks debugging information about a trigger.\n * @param tView TView in which the trigger is declared.\n * @param tNode TNode on which the trigger is declared.\n * @param textRepresentation Text representation of the trigger to be used for debugging purposes.\n */\nfunction trackTriggerForDebugging(tView, tNode, textRepresentation) {\n const tDetails = getTDeferBlockDetails(tView, tNode);\n tDetails.debug ??= {};\n tDetails.debug.triggers ??= new Set();\n tDetails.debug.triggers.add(textRepresentation);\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/** Configuration object used to register passive and capturing events. */\nconst eventListenerOptions = {\n passive: true,\n capture: true,\n};\n/** Keeps track of the currently-registered `on hover` triggers. */\nconst hoverTriggers = new WeakMap();\n/** Keeps track of the currently-registered `on interaction` triggers. */\nconst interactionTriggers = new WeakMap();\n/** Currently-registered `viewport` triggers. */\nconst viewportTriggers = new WeakMap();\n/** Names of the events considered as interaction events. */\nconst interactionEventNames = ['click', 'keydown'];\n/** Names of the events considered as hover events. */\nconst hoverEventNames = ['mouseenter', 'mouseover', 'focusin'];\n/** `IntersectionObserver` used to observe `viewport` triggers. */\nlet intersectionObserver = null;\n/** Number of elements currently observed with `viewport` triggers. */\nlet observedViewportElements = 0;\n/** Object keeping track of registered callbacks for a deferred block trigger. */\nclass DeferEventEntry {\n callbacks = new Set();\n listener = () => {\n for (const callback of this.callbacks) {\n callback();\n }\n };\n}\n/**\n * Registers an interaction trigger.\n * @param trigger Element that is the trigger.\n * @param callback Callback to be invoked when the trigger is interacted with.\n */\nfunction onInteraction(trigger, callback) {\n let entry = interactionTriggers.get(trigger);\n // If this is the first entry for this element, add the listeners.\n if (!entry) {\n // Note that managing events centrally like this lends itself well to using global\n // event delegation. It currently does delegation at the element level, rather than the\n // document level, because:\n // 1. Global delegation is the most effective when there are a lot of events being registered\n // at the same time. Deferred blocks are unlikely to be used in such a way.\n // 2. Matching events to their target isn't free. For each `click` and `keydown` event we\n // would have look through all the triggers and check if the target either is the element\n // itself or it's contained within the element. Given that `click` and `keydown` are some\n // of the most common events, this may end up introducing a lot of runtime overhead.\n // 3. We're still registering only two events per element, no matter how many deferred blocks\n // are referencing it.\n entry = new DeferEventEntry();\n interactionTriggers.set(trigger, entry);\n for (const name of interactionEventNames) {\n trigger.addEventListener(name, entry.listener, eventListenerOptions);\n }\n }\n entry.callbacks.add(callback);\n return () => {\n const { callbacks, listener } = entry;\n callbacks.delete(callback);\n if (callbacks.size === 0) {\n interactionTriggers.delete(trigger);\n for (const name of interactionEventNames) {\n trigger.removeEventListener(name, listener, eventListenerOptions);\n }\n }\n };\n}\n/**\n * Registers a hover trigger.\n * @param trigger Element that is the trigger.\n * @param callback Callback to be invoked when the trigger is hovered over.\n */\nfunction onHover(trigger, callback) {\n let entry = hoverTriggers.get(trigger);\n // If this is the first entry for this element, add the listener.\n if (!entry) {\n entry = new DeferEventEntry();\n hoverTriggers.set(trigger, entry);\n for (const name of hoverEventNames) {\n trigger.addEventListener(name, entry.listener, eventListenerOptions);\n }\n }\n entry.callbacks.add(callback);\n return () => {\n const { callbacks, listener } = entry;\n callbacks.delete(callback);\n if (callbacks.size === 0) {\n for (const name of hoverEventNames) {\n trigger.removeEventListener(name, listener, eventListenerOptions);\n }\n hoverTriggers.delete(trigger);\n }\n };\n}\n/**\n * Registers a viewport trigger.\n * @param trigger Element that is the trigger.\n * @param callback Callback to be invoked when the trigger comes into the viewport.\n * @param injector Injector that can be used by the trigger to resolve DI tokens.\n */\nfunction onViewport(trigger, callback, injector) {\n const ngZone = injector.get(NgZone);\n let entry = viewportTriggers.get(trigger);\n intersectionObserver =\n intersectionObserver ||\n ngZone.runOutsideAngular(() => {\n return new IntersectionObserver((entries) => {\n for (const current of entries) {\n // Only invoke the callbacks if the specific element is intersecting.\n if (current.isIntersecting && viewportTriggers.has(current.target)) {\n ngZone.run(viewportTriggers.get(current.target).listener);\n }\n }\n });\n });\n if (!entry) {\n entry = new DeferEventEntry();\n ngZone.runOutsideAngular(() => intersectionObserver.observe(trigger));\n viewportTriggers.set(trigger, entry);\n observedViewportElements++;\n }\n entry.callbacks.add(callback);\n return () => {\n // It's possible that a different cleanup callback fully removed this element already.\n if (!viewportTriggers.has(trigger)) {\n return;\n }\n entry.callbacks.delete(callback);\n if (entry.callbacks.size === 0) {\n intersectionObserver?.unobserve(trigger);\n viewportTriggers.delete(trigger);\n observedViewportElements--;\n }\n if (observedViewportElements === 0) {\n intersectionObserver?.disconnect();\n intersectionObserver = null;\n }\n };\n}\n/**\n * Helper function to get the LView in which a deferred block's trigger is rendered.\n * @param deferredHostLView LView in which the deferred block is defined.\n * @param deferredTNode TNode defining the deferred block.\n * @param walkUpTimes Number of times to go up in the view hierarchy to find the trigger's view.\n * A negative value means that the trigger is inside the block's placeholder, while an undefined\n * value means that the trigger is in the same LView as the deferred block.\n */\nfunction getTriggerLView(deferredHostLView, deferredTNode, walkUpTimes) {\n // The trigger is in the same view, we don't need to traverse.\n if (walkUpTimes == null) {\n return deferredHostLView;\n }\n // A positive value or zero means that the trigger is in a parent view.\n if (walkUpTimes >= 0) {\n return walkUpViews(walkUpTimes, deferredHostLView);\n }\n // If the value is negative, it means that the trigger is inside the placeholder.\n const deferredContainer = deferredHostLView[deferredTNode.index];\n ngDevMode && assertLContainer(deferredContainer);\n const triggerLView = deferredContainer[CONTAINER_HEADER_OFFSET] ?? null;\n // We need to null check, because the placeholder might not have been rendered yet.\n if (ngDevMode && triggerLView !== null) {\n const lDetails = getLDeferBlockDetails(deferredHostLView, deferredTNode);\n const renderedState = lDetails[DEFER_BLOCK_STATE];\n assertEqual(renderedState, DeferBlockState.Placeholder, 'Expected a placeholder to be rendered in this defer block.');\n assertLView(triggerLView);\n }\n return triggerLView;\n}\n/**\n * Gets the element that a deferred block's trigger is pointing to.\n * @param triggerLView LView in which the trigger is defined.\n * @param triggerIndex Index at which the trigger element should've been rendered.\n */\nfunction getTriggerElement(triggerLView, triggerIndex) {\n const element = getNativeByIndex(HEADER_OFFSET + triggerIndex, triggerLView);\n ngDevMode && assertElement(element);\n return element;\n}\n/**\n * Registers a DOM-node based trigger.\n * @param initialLView LView in which the defer block is rendered.\n * @param tNode TNode representing the defer block.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to go up/down in the view hierarchy to find the trigger.\n * @param registerFn Function that will register the DOM events.\n * @param callback Callback to be invoked when the trigger receives the event that should render\n * the deferred block.\n * @param type Trigger type to distinguish between regular and prefetch triggers.\n */\nfunction registerDomTrigger(initialLView, tNode, triggerIndex, walkUpTimes, registerFn, callback, type) {\n const injector = initialLView[INJECTOR];\n const zone = injector.get(NgZone);\n function pollDomTrigger() {\n // If the initial view was destroyed, we don't need to do anything.\n if (isDestroyed(initialLView)) {\n return;\n }\n const lDetails = getLDeferBlockDetails(initialLView, tNode);\n const renderedState = lDetails[DEFER_BLOCK_STATE];\n // If the block was loaded before the trigger was resolved, we don't need to do anything.\n if (renderedState !== DeferBlockInternalState.Initial &&\n renderedState !== DeferBlockState.Placeholder) {\n return;\n }\n const triggerLView = getTriggerLView(initialLView, tNode, walkUpTimes);\n // Keep polling until we resolve the trigger's LView.\n if (!triggerLView) {\n afterNextRender({ read: pollDomTrigger }, { injector });\n return;\n }\n // It's possible that the trigger's view was destroyed before we resolved the trigger element.\n if (isDestroyed(triggerLView)) {\n return;\n }\n const element = getTriggerElement(triggerLView, triggerIndex);\n const cleanup = registerFn(element, () => {\n // `pollDomTrigger` runs outside the zone (because of `afterNextRender`) and registers its\n // listeners outside the zone, so we jump back into the zone prior to running the callback.\n zone.run(() => {\n if (initialLView !== triggerLView) {\n removeLViewOnDestroy(triggerLView, cleanup);\n }\n callback();\n });\n }, injector);\n // The trigger and deferred block might be in different LViews.\n // For the main LView the cleanup would happen as a part of\n // `storeTriggerCleanupFn` logic. For trigger LView we register\n // a cleanup function there to remove event handlers in case an\n // LView gets destroyed before a trigger is invoked.\n if (initialLView !== triggerLView) {\n storeLViewOnDestroy(triggerLView, cleanup);\n }\n storeTriggerCleanupFn(type, lDetails, cleanup);\n }\n // Begin polling for the trigger.\n afterNextRender({ read: pollDomTrigger }, { injector });\n}\n\nconst DEFER_BLOCK_SSR_ID_ATTRIBUTE = 'ngb';\nfunction invokeRegisteredDelegationListeners(event) {\n const handlerFns = event.currentTarget?.__jsaction_fns?.get(event.type);\n if (!handlerFns) {\n return;\n }\n for (const handler of handlerFns) {\n handler(event);\n }\n}\nfunction setJSActionAttributes(nativeElement, eventTypes, parentDeferBlockId = null) {\n // jsaction attributes specifically should be applied to elements and not comment nodes.\n // Comment nodes also have no setAttribute function. So this avoids errors.\n if (eventTypes.length === 0 || nativeElement.nodeType !== Node.ELEMENT_NODE) {\n return;\n }\n const existingAttr = nativeElement.getAttribute(Attribute$1.JSACTION);\n // we dedupe cases where hydrate triggers are used as it's possible that\n // someone may have added an event binding to the root node that matches what the\n // hydrate trigger adds.\n const parts = eventTypes.reduce((prev, curr) => {\n // if there is no existing attribute OR it's not in the existing one, we need to add it\n return (existingAttr?.indexOf(curr) ?? -1) === -1 ? prev + curr + ':;' : prev;\n }, '');\n // This is required to be a module accessor to appease security tests on setAttribute.\n nativeElement.setAttribute(Attribute$1.JSACTION, `${existingAttr ?? ''}${parts}`);\n const blockName = parentDeferBlockId ?? '';\n if (blockName !== '' && parts.length > 0) {\n nativeElement.setAttribute(DEFER_BLOCK_SSR_ID_ATTRIBUTE, blockName);\n }\n}\nconst sharedStashFunction = (rEl, eventType, listenerFn) => {\n const el = rEl;\n const eventListenerMap = el.__jsaction_fns ?? new Map();\n const eventListeners = eventListenerMap.get(eventType) ?? [];\n eventListeners.push(listenerFn);\n eventListenerMap.set(eventType, eventListeners);\n el.__jsaction_fns = eventListenerMap;\n};\nconst sharedMapFunction = (rEl, jsActionMap) => {\n let blockName = rEl.getAttribute(DEFER_BLOCK_SSR_ID_ATTRIBUTE) ?? '';\n const el = rEl;\n const blockSet = jsActionMap.get(blockName) ?? new Set();\n if (!blockSet.has(el)) {\n blockSet.add(el);\n }\n jsActionMap.set(blockName, blockSet);\n};\nfunction removeListenersFromBlocks(blockNames, jsActionMap) {\n if (blockNames.length > 0) {\n let blockList = [];\n for (let blockName of blockNames) {\n if (jsActionMap.has(blockName)) {\n blockList = [...blockList, ...jsActionMap.get(blockName)];\n }\n }\n const replayList = new Set(blockList);\n replayList.forEach(removeListeners);\n }\n}\nconst removeListeners = (el) => {\n el.removeAttribute(Attribute$1.JSACTION);\n el.removeAttribute(DEFER_BLOCK_SSR_ID_ATTRIBUTE);\n el.__jsaction_fns = undefined;\n};\nconst JSACTION_EVENT_CONTRACT = new InjectionToken(ngDevMode ? 'EVENT_CONTRACT_DETAILS' : '', {\n providedIn: 'root',\n factory: () => ({}),\n});\nfunction invokeListeners(event, currentTarget) {\n const handlerFns = currentTarget?.__jsaction_fns?.get(event.type);\n if (!handlerFns) {\n return;\n }\n for (const handler of handlerFns) {\n handler(event);\n }\n}\n\n/**\n * An internal injection token to reference `DehydratedBlockRegistry` implementation\n * in a tree-shakable way.\n */\nconst DEHYDRATED_BLOCK_REGISTRY = new InjectionToken(ngDevMode ? 'DEHYDRATED_BLOCK_REGISTRY' : '');\n/**\n * The DehydratedBlockRegistry is used for incremental hydration purposes. It keeps\n * track of the Defer Blocks that need hydration so we can effectively\n * navigate up to the top dehydrated defer block and fire appropriate cleanup\n * functions post hydration.\n */\nclass DehydratedBlockRegistry {\n registry = new Map();\n cleanupFns = new Map();\n jsActionMap = inject(JSACTION_BLOCK_ELEMENT_MAP);\n contract = inject(JSACTION_EVENT_CONTRACT);\n add(blockId, info) {\n this.registry.set(blockId, info);\n }\n get(blockId) {\n return this.registry.get(blockId) ?? null;\n }\n has(blockId) {\n return this.registry.has(blockId);\n }\n cleanup(hydratedBlocks) {\n removeListenersFromBlocks(hydratedBlocks, this.jsActionMap);\n for (let blockId of hydratedBlocks) {\n this.registry.delete(blockId);\n this.jsActionMap.delete(blockId);\n this.invokeTriggerCleanupFns(blockId);\n this.hydrating.delete(blockId);\n }\n if (this.size === 0) {\n this.contract.instance?.cleanUp();\n }\n }\n get size() {\n return this.registry.size;\n }\n // we have to leave the lowest block Id in the registry\n // unless that block has no children\n addCleanupFn(blockId, fn) {\n let cleanupFunctions = [];\n if (this.cleanupFns.has(blockId)) {\n cleanupFunctions = this.cleanupFns.get(blockId);\n }\n cleanupFunctions.push(fn);\n this.cleanupFns.set(blockId, cleanupFunctions);\n }\n invokeTriggerCleanupFns(blockId) {\n const fns = this.cleanupFns.get(blockId) ?? [];\n for (let fn of fns) {\n fn();\n }\n this.cleanupFns.delete(blockId);\n }\n // Blocks that are being hydrated.\n hydrating = new Map();\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: DehydratedBlockRegistry,\n providedIn: null,\n factory: () => new DehydratedBlockRegistry(),\n });\n}\n\n/**\n * The name of the key used in the TransferState collection,\n * where hydration information is located.\n */\nconst TRANSFER_STATE_TOKEN_ID = '__nghData__';\n/**\n * Lookup key used to reference DOM hydration data (ngh) in `TransferState`.\n */\nconst NGH_DATA_KEY = makeStateKey(TRANSFER_STATE_TOKEN_ID);\n/**\n * The name of the key used in the TransferState collection,\n * where serialized defer block information is located.\n */\nconst TRANSFER_STATE_DEFER_BLOCKS_INFO = '__nghDeferData__';\n/**\n * Lookup key used to retrieve defer block datain `TransferState`.\n */\nconst NGH_DEFER_BLOCKS_KEY = makeStateKey(TRANSFER_STATE_DEFER_BLOCKS_INFO);\n/**\n * The name of the attribute that would be added to host component\n * nodes and contain a reference to a particular slot in transferred\n * state that contains the necessary hydration info for this component.\n */\nconst NGH_ATTR_NAME = 'ngh';\n/**\n * Marker used in a comment node to ensure hydration content integrity\n */\nconst SSR_CONTENT_INTEGRITY_MARKER = 'nghm';\n/**\n * Reference to a function that reads `ngh` attribute value from a given RNode\n * and retrieves hydration information from the TransferState using that value\n * as an index. Returns `null` by default, when hydration is not enabled.\n *\n * @param rNode Component's host element.\n * @param injector Injector that this component has access to.\n * @param isRootView Specifies whether we trying to read hydration info for the root view.\n */\nlet _retrieveHydrationInfoImpl = () => null;\nfunction retrieveHydrationInfoImpl(rNode, injector, isRootView = false) {\n let nghAttrValue = rNode.getAttribute(NGH_ATTR_NAME);\n if (nghAttrValue == null)\n return null;\n // For cases when a root component also acts as an anchor node for a ViewContainerRef\n // (for example, when ViewContainerRef is injected in a root component), there is a need\n // to serialize information about the component itself, as well as an LContainer that\n // represents this ViewContainerRef. Effectively, we need to serialize 2 pieces of info:\n // (1) hydration info for the root component itself and (2) hydration info for the\n // ViewContainerRef instance (an LContainer). Each piece of information is included into\n // the hydration data (in the TransferState object) separately, thus we end up with 2 ids.\n // Since we only have 1 root element, we encode both bits of info into a single string:\n // ids are separated by the `|` char (e.g. `10|25`, where `10` is the ngh for a component view\n // and 25 is the `ngh` for a root view which holds LContainer).\n const [componentViewNgh, rootViewNgh] = nghAttrValue.split('|');\n nghAttrValue = isRootView ? rootViewNgh : componentViewNgh;\n if (!nghAttrValue)\n return null;\n // We've read one of the ngh ids, keep the remaining one, so that\n // we can set it back on the DOM element.\n const rootNgh = rootViewNgh ? `|${rootViewNgh}` : '';\n const remainingNgh = isRootView ? componentViewNgh : rootNgh;\n let data = {};\n // An element might have an empty `ngh` attribute value (e.g. `<comp ngh=\"\" />`),\n // which means that no special annotations are required. Do not attempt to read\n // from the TransferState in this case.\n if (nghAttrValue !== '') {\n const transferState = injector.get(TransferState, null, { optional: true });\n if (transferState !== null) {\n const nghData = transferState.get(NGH_DATA_KEY, []);\n // The nghAttrValue is always a number referencing an index\n // in the hydration TransferState data.\n data = nghData[Number(nghAttrValue)];\n // If the `ngh` attribute exists and has a non-empty value,\n // the hydration info *must* be present in the TransferState.\n // If there is no data for some reasons, this is an error.\n ngDevMode && assertDefined(data, 'Unable to retrieve hydration info from the TransferState.');\n }\n }\n const dehydratedView = {\n data,\n firstChild: rNode.firstChild ?? null,\n };\n if (isRootView) {\n // If there is hydration info present for the root view, it means that there was\n // a ViewContainerRef injected in the root component. The root component host element\n // acted as an anchor node in this scenario. As a result, the DOM nodes that represent\n // embedded views in this ViewContainerRef are located as siblings to the host node,\n // i.e. `<app-root /><#VIEW1><#VIEW2>...<!--container-->`. In this case, the current\n // node becomes the first child of this root view and the next sibling is the first\n // element in the DOM segment.\n dehydratedView.firstChild = rNode;\n // We use `0` here, since this is the slot (right after the HEADER_OFFSET)\n // where a component LView or an LContainer is located in a root LView.\n setSegmentHead(dehydratedView, 0, rNode.nextSibling);\n }\n if (remainingNgh) {\n // If we have only used one of the ngh ids, store the remaining one\n // back on this RNode.\n rNode.setAttribute(NGH_ATTR_NAME, remainingNgh);\n }\n else {\n // The `ngh` attribute is cleared from the DOM node now\n // that the data has been retrieved for all indices.\n rNode.removeAttribute(NGH_ATTR_NAME);\n }\n // Note: don't check whether this node was claimed for hydration,\n // because this node might've been previously claimed while processing\n // template instructions.\n ngDevMode && markRNodeAsClaimedByHydration(rNode, /* checkIfAlreadyClaimed */ false);\n ngDevMode && ngDevMode.hydratedComponents++;\n return dehydratedView;\n}\n/**\n * Sets the implementation for the `retrieveHydrationInfo` function.\n */\nfunction enableRetrieveHydrationInfoImpl() {\n _retrieveHydrationInfoImpl = retrieveHydrationInfoImpl;\n}\n/**\n * Retrieves hydration info by reading the value from the `ngh` attribute\n * and accessing a corresponding slot in TransferState storage.\n */\nfunction retrieveHydrationInfo(rNode, injector, isRootView = false) {\n return _retrieveHydrationInfoImpl(rNode, injector, isRootView);\n}\n/**\n * Retrieves the necessary object from a given ViewRef to serialize:\n * - an LView for component views\n * - an LContainer for cases when component acts as a ViewContainerRef anchor\n * - `null` in case of an embedded view\n */\nfunction getLNodeForHydration(viewRef) {\n // Reading an internal field from `ViewRef` instance.\n let lView = viewRef._lView;\n const tView = lView[TVIEW];\n // A registered ViewRef might represent an instance of an\n // embedded view, in which case we do not need to annotate it.\n if (tView.type === 2 /* TViewType.Embedded */) {\n return null;\n }\n // Check if it's a root view and if so, retrieve component's\n // LView from the first slot after the header.\n if (isRootView(lView)) {\n lView = lView[HEADER_OFFSET];\n }\n return lView;\n}\nfunction getTextNodeContent(node) {\n return node.textContent?.replace(/\\s/gm, '');\n}\n/**\n * Restores text nodes and separators into the DOM that were lost during SSR\n * serialization. The hydration process replaces empty text nodes and text\n * nodes that are immediately adjacent to other text nodes with comment nodes\n * that this method filters on to restore those missing nodes that the\n * hydration process is expecting to be present.\n *\n * @param node The app's root HTML Element\n */\nfunction processTextNodeMarkersBeforeHydration(node) {\n const doc = getDocument();\n const commentNodesIterator = doc.createNodeIterator(node, NodeFilter.SHOW_COMMENT, {\n acceptNode(node) {\n const content = getTextNodeContent(node);\n const isTextNodeMarker = content === \"ngetn\" /* TextNodeMarker.EmptyNode */ || content === \"ngtns\" /* TextNodeMarker.Separator */;\n return isTextNodeMarker ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;\n },\n });\n let currentNode;\n // We cannot modify the DOM while using the commentIterator,\n // because it throws off the iterator state.\n // So we collect all marker nodes first and then follow up with\n // applying the changes to the DOM: either inserting an empty node\n // or just removing the marker if it was used as a separator.\n const nodes = [];\n while ((currentNode = commentNodesIterator.nextNode())) {\n nodes.push(currentNode);\n }\n for (const node of nodes) {\n if (node.textContent === \"ngetn\" /* TextNodeMarker.EmptyNode */) {\n node.replaceWith(doc.createTextNode(''));\n }\n else {\n node.remove();\n }\n }\n}\n/**\n * Internal type that represents a claimed node.\n * Only used in dev mode.\n */\nvar HydrationStatus;\n(function (HydrationStatus) {\n HydrationStatus[\"Hydrated\"] = \"hydrated\";\n HydrationStatus[\"Skipped\"] = \"skipped\";\n HydrationStatus[\"Mismatched\"] = \"mismatched\";\n})(HydrationStatus || (HydrationStatus = {}));\nconst HYDRATION_INFO_KEY = '__ngDebugHydrationInfo__';\nfunction patchHydrationInfo(node, info) {\n node[HYDRATION_INFO_KEY] = info;\n}\nfunction readHydrationInfo(node) {\n return node[HYDRATION_INFO_KEY] ?? null;\n}\n/**\n * Marks a node as \"claimed\" by hydration process.\n * This is needed to make assessments in tests whether\n * the hydration process handled all nodes.\n */\nfunction markRNodeAsClaimedByHydration(node, checkIfAlreadyClaimed = true) {\n if (!ngDevMode) {\n throw new Error('Calling `markRNodeAsClaimedByHydration` in prod mode ' +\n 'is not supported and likely a mistake.');\n }\n if (checkIfAlreadyClaimed && isRNodeClaimedForHydration(node)) {\n throw new Error('Trying to claim a node, which was claimed already.');\n }\n patchHydrationInfo(node, { status: HydrationStatus.Hydrated });\n ngDevMode.hydratedNodes++;\n}\nfunction markRNodeAsSkippedByHydration(node) {\n if (!ngDevMode) {\n throw new Error('Calling `markRNodeAsSkippedByHydration` in prod mode ' +\n 'is not supported and likely a mistake.');\n }\n patchHydrationInfo(node, { status: HydrationStatus.Skipped });\n ngDevMode.componentsSkippedHydration++;\n}\nfunction countBlocksSkippedByHydration(injector) {\n const transferState = injector.get(TransferState);\n const nghDeferData = transferState.get(NGH_DEFER_BLOCKS_KEY, {});\n if (ngDevMode) {\n ngDevMode.deferBlocksWithIncrementalHydration = Object.keys(nghDeferData).length;\n }\n}\nfunction markRNodeAsHavingHydrationMismatch(node, expectedNodeDetails = null, actualNodeDetails = null) {\n if (!ngDevMode) {\n throw new Error('Calling `markRNodeAsMismatchedByHydration` in prod mode ' +\n 'is not supported and likely a mistake.');\n }\n // The RNode can be a standard HTMLElement (not an Angular component or directive)\n // The devtools component tree only displays Angular components & directives\n // Therefore we attach the debug info to the closest component/directive\n while (node && !getComponent(node)) {\n node = node?.parentNode;\n }\n if (node) {\n patchHydrationInfo(node, {\n status: HydrationStatus.Mismatched,\n expectedNodeDetails,\n actualNodeDetails,\n });\n }\n}\nfunction isRNodeClaimedForHydration(node) {\n return readHydrationInfo(node)?.status === HydrationStatus.Hydrated;\n}\nfunction setSegmentHead(hydrationInfo, index, node) {\n hydrationInfo.segmentHeads ??= {};\n hydrationInfo.segmentHeads[index] = node;\n}\nfunction getSegmentHead(hydrationInfo, index) {\n return hydrationInfo.segmentHeads?.[index] ?? null;\n}\nfunction isIncrementalHydrationEnabled(injector) {\n return injector.get(IS_INCREMENTAL_HYDRATION_ENABLED, false, {\n optional: true,\n });\n}\n/** Throws an error if the incremental hydration is not enabled */\nfunction assertIncrementalHydrationIsConfigured(injector) {\n if (!isIncrementalHydrationEnabled(injector)) {\n throw new RuntimeError(508 /* RuntimeErrorCode.MISCONFIGURED_INCREMENTAL_HYDRATION */, 'Angular has detected that some `@defer` blocks use `hydrate` triggers, ' +\n 'but incremental hydration was not enabled. Please ensure that the `withIncrementalHydration()` ' +\n 'call is added as an argument for the `provideClientHydration()` function call ' +\n 'in your application config.');\n }\n}\n/** Throws an error if the ssrUniqueId on the LDeferBlockDetails is not present */\nfunction assertSsrIdDefined(ssrUniqueId) {\n assertDefined(ssrUniqueId, 'Internal error: expecting an SSR id for a defer block that should be hydrated, but the id is not present');\n}\n/**\n * Returns the size of an <ng-container>, using either the information\n * serialized in `ELEMENT_CONTAINERS` (element container size) or by\n * computing the sum of root nodes in all dehydrated views in a given\n * container (in case this `<ng-container>` was also used as a view\n * container host node, e.g. <ng-container *ngIf>).\n */\nfunction getNgContainerSize(hydrationInfo, index) {\n const data = hydrationInfo.data;\n let size = data[ELEMENT_CONTAINERS]?.[index] ?? null;\n // If there is no serialized information available in the `ELEMENT_CONTAINERS` slot,\n // check if we have info about view containers at this location (e.g.\n // `<ng-container *ngIf>`) and use container size as a number of root nodes in this\n // element container.\n if (size === null && data[CONTAINERS]?.[index]) {\n size = calcSerializedContainerSize(hydrationInfo, index);\n }\n return size;\n}\nfunction isSerializedElementContainer(hydrationInfo, index) {\n return hydrationInfo.data[ELEMENT_CONTAINERS]?.[index] !== undefined;\n}\nfunction getSerializedContainerViews(hydrationInfo, index) {\n return hydrationInfo.data[CONTAINERS]?.[index] ?? null;\n}\n/**\n * Computes the size of a serialized container (the number of root nodes)\n * by calculating the sum of root nodes in all dehydrated views in this container.\n */\nfunction calcSerializedContainerSize(hydrationInfo, index) {\n const views = getSerializedContainerViews(hydrationInfo, index) ?? [];\n let numNodes = 0;\n for (let view of views) {\n numNodes += view[NUM_ROOT_NODES] * (view[MULTIPLIER] ?? 1);\n }\n return numNodes;\n}\n/**\n * Attempt to initialize the `disconnectedNodes` field of the given\n * `DehydratedView`. Returns the initialized value.\n */\nfunction initDisconnectedNodes(hydrationInfo) {\n // Check if we are processing disconnected info for the first time.\n if (typeof hydrationInfo.disconnectedNodes === 'undefined') {\n const nodeIds = hydrationInfo.data[DISCONNECTED_NODES];\n hydrationInfo.disconnectedNodes = nodeIds ? new Set(nodeIds) : null;\n }\n return hydrationInfo.disconnectedNodes;\n}\n/**\n * Checks whether a node is annotated as \"disconnected\", i.e. not present\n * in the DOM at serialization time. We should not attempt hydration for\n * such nodes and instead, use a regular \"creation mode\".\n */\nfunction isDisconnectedNode$1(hydrationInfo, index) {\n // Check if we are processing disconnected info for the first time.\n if (typeof hydrationInfo.disconnectedNodes === 'undefined') {\n const nodeIds = hydrationInfo.data[DISCONNECTED_NODES];\n hydrationInfo.disconnectedNodes = nodeIds ? new Set(nodeIds) : null;\n }\n return !!initDisconnectedNodes(hydrationInfo)?.has(index);\n}\n/**\n * Helper function to prepare text nodes for serialization by ensuring\n * that seperate logical text blocks in the DOM remain separate after\n * serialization.\n */\nfunction processTextNodeBeforeSerialization(context, node) {\n // Handle cases where text nodes can be lost after DOM serialization:\n // 1. When there is an *empty text node* in DOM: in this case, this\n // node would not make it into the serialized string and as a result,\n // this node wouldn't be created in a browser. This would result in\n // a mismatch during the hydration, where the runtime logic would expect\n // a text node to be present in live DOM, but no text node would exist.\n // Example: `<span>{{ name }}</span>` when the `name` is an empty string.\n // This would result in `<span></span>` string after serialization and\n // in a browser only the `span` element would be created. To resolve that,\n // an extra comment node is appended in place of an empty text node and\n // that special comment node is replaced with an empty text node *before*\n // hydration.\n // 2. When there are 2 consecutive text nodes present in the DOM.\n // Example: `<div>Hello <ng-container *ngIf=\"true\">world</ng-container></div>`.\n // In this scenario, the live DOM would look like this:\n // <div>#text('Hello ') #text('world') #comment('container')</div>\n // Serialized string would look like this: `<div>Hello world<!--container--></div>`.\n // The live DOM in a browser after that would be:\n // <div>#text('Hello world') #comment('container')</div>\n // Notice how 2 text nodes are now \"merged\" into one. This would cause hydration\n // logic to fail, since it'd expect 2 text nodes being present, not one.\n // To fix this, we insert a special comment node in between those text nodes, so\n // serialized representation is: `<div>Hello <!--ngtns-->world<!--container--></div>`.\n // This forces browser to create 2 text nodes separated by a comment node.\n // Before running a hydration process, this special comment node is removed, so the\n // live DOM has exactly the same state as it was before serialization.\n // Collect this node as required special annotation only when its\n // contents is empty. Otherwise, such text node would be present on\n // the client after server-side rendering and no special handling needed.\n const el = node;\n const corruptedTextNodes = context.corruptedTextNodes;\n if (el.textContent === '') {\n corruptedTextNodes.set(el, \"ngetn\" /* TextNodeMarker.EmptyNode */);\n }\n else if (el.nextSibling?.nodeType === Node.TEXT_NODE) {\n corruptedTextNodes.set(el, \"ngtns\" /* TextNodeMarker.Separator */);\n }\n}\nfunction convertHydrateTriggersToJsAction(triggers) {\n let actionList = [];\n if (triggers !== null) {\n if (triggers.has(4 /* DeferBlockTrigger.Hover */)) {\n actionList.push(...hoverEventNames);\n }\n if (triggers.has(3 /* DeferBlockTrigger.Interaction */)) {\n actionList.push(...interactionEventNames);\n }\n }\n return actionList;\n}\n/**\n * Builds a queue of blocks that need to be hydrated, looking up the\n * tree to the topmost defer block that exists in the tree that hasn't\n * been hydrated, but exists in the registry. This queue is in top down\n * hierarchical order as a list of defer block ids.\n * Note: This is utilizing serialized information to navigate up the tree\n */\nfunction getParentBlockHydrationQueue(deferBlockId, injector) {\n const dehydratedBlockRegistry = injector.get(DEHYDRATED_BLOCK_REGISTRY);\n const transferState = injector.get(TransferState);\n const deferBlockParents = transferState.get(NGH_DEFER_BLOCKS_KEY, {});\n let isTopMostDeferBlock = false;\n let currentBlockId = deferBlockId;\n let parentBlockPromise = null;\n const hydrationQueue = [];\n while (!isTopMostDeferBlock && currentBlockId) {\n ngDevMode &&\n assertEqual(hydrationQueue.indexOf(currentBlockId), -1, 'Internal error: defer block hierarchy has a cycle.');\n isTopMostDeferBlock = dehydratedBlockRegistry.has(currentBlockId);\n const hydratingParentBlock = dehydratedBlockRegistry.hydrating.get(currentBlockId);\n if (parentBlockPromise === null && hydratingParentBlock != null) {\n // TODO: add an ngDevMode asset that `hydratingParentBlock.promise` exists and is of type Promise.\n parentBlockPromise = hydratingParentBlock.promise;\n break;\n }\n hydrationQueue.unshift(currentBlockId);\n currentBlockId = deferBlockParents[currentBlockId][DEFER_PARENT_BLOCK_ID];\n }\n return { parentBlockPromise, hydrationQueue };\n}\nfunction gatherDeferBlocksByJSActionAttribute(doc) {\n const jsactionNodes = doc.body.querySelectorAll('[jsaction]');\n const blockMap = new Set();\n for (let node of jsactionNodes) {\n const attr = node.getAttribute('jsaction');\n const blockId = node.getAttribute('ngb');\n const eventTypes = [...hoverEventNames.join(':;'), ...interactionEventNames.join(':;')].join('|');\n if (attr?.match(eventTypes) && blockId !== null) {\n blockMap.add(node);\n }\n }\n return blockMap;\n}\nfunction appendDeferBlocksToJSActionMap(doc, injector) {\n const blockMap = gatherDeferBlocksByJSActionAttribute(doc);\n for (let rNode of blockMap) {\n const jsActionMap = injector.get(JSACTION_BLOCK_ELEMENT_MAP);\n sharedMapFunction(rNode, jsActionMap);\n }\n}\n/**\n * Retrieves defer block hydration information from the TransferState.\n *\n * @param injector Injector that this component has access to.\n */\nlet _retrieveDeferBlockDataImpl = () => {\n return {};\n};\nfunction retrieveDeferBlockDataImpl(injector) {\n const transferState = injector.get(TransferState, null, { optional: true });\n if (transferState !== null) {\n const nghDeferData = transferState.get(NGH_DEFER_BLOCKS_KEY, {});\n ngDevMode &&\n assertDefined(nghDeferData, 'Unable to retrieve defer block info from the TransferState.');\n return nghDeferData;\n }\n return {};\n}\n/**\n * Sets the implementation for the `retrieveDeferBlockData` function.\n */\nfunction enableRetrieveDeferBlockDataImpl() {\n _retrieveDeferBlockDataImpl = retrieveDeferBlockDataImpl;\n}\n/**\n * Retrieves defer block data from TransferState storage\n */\nfunction retrieveDeferBlockData(injector) {\n return _retrieveDeferBlockDataImpl(injector);\n}\nfunction isTimerTrigger(triggerInfo) {\n return typeof triggerInfo === 'object' && triggerInfo.trigger === 5 /* DeferBlockTrigger.Timer */;\n}\nfunction getHydrateTimerTrigger(blockData) {\n const trigger = blockData[DEFER_HYDRATE_TRIGGERS]?.find((t) => isTimerTrigger(t));\n return trigger?.delay ?? null;\n}\nfunction hasHydrateTrigger(blockData, trigger) {\n return blockData[DEFER_HYDRATE_TRIGGERS]?.includes(trigger) ?? false;\n}\n/**\n * Creates a summary of the given serialized defer block, which is used later to properly initialize\n * specific triggers.\n */\nfunction createBlockSummary(blockInfo) {\n return {\n data: blockInfo,\n hydrate: {\n idle: hasHydrateTrigger(blockInfo, 0 /* DeferBlockTrigger.Idle */),\n immediate: hasHydrateTrigger(blockInfo, 1 /* DeferBlockTrigger.Immediate */),\n timer: getHydrateTimerTrigger(blockInfo),\n viewport: hasHydrateTrigger(blockInfo, 2 /* DeferBlockTrigger.Viewport */),\n },\n };\n}\n/**\n * Processes all of the defer block data in the transfer state and creates a map of the summaries\n */\nfunction processBlockData(injector) {\n const blockData = retrieveDeferBlockData(injector);\n let blockDetails = new Map();\n for (let blockId in blockData) {\n blockDetails.set(blockId, createBlockSummary(blockData[blockId]));\n }\n return blockDetails;\n}\n\n/** Refreshes all content queries declared by directives in a given view */\nfunction refreshContentQueries(tView, lView) {\n const contentQueries = tView.contentQueries;\n if (contentQueries !== null) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n for (let i = 0; i < contentQueries.length; i += 2) {\n const queryStartIdx = contentQueries[i];\n const directiveDefIdx = contentQueries[i + 1];\n if (directiveDefIdx !== -1) {\n const directiveDef = tView.data[directiveDefIdx];\n ngDevMode && assertDefined(directiveDef, 'DirectiveDef not found.');\n ngDevMode &&\n assertDefined(directiveDef.contentQueries, 'contentQueries function should be defined');\n setCurrentQueryIndex(queryStartIdx);\n directiveDef.contentQueries(2 /* RenderFlags.Update */, lView[directiveDefIdx], directiveDefIdx);\n }\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n}\nfunction executeViewQueryFn(flags, viewQueryFn, component) {\n ngDevMode && assertDefined(viewQueryFn, 'View queries function to execute must be defined.');\n setCurrentQueryIndex(0);\n const prevConsumer = setActiveConsumer$1(null);\n try {\n viewQueryFn(flags, component);\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n}\nfunction executeContentQueries(tView, tNode, lView) {\n if (isContentQueryHost(tNode)) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n const start = tNode.directiveStart;\n const end = tNode.directiveEnd;\n for (let directiveIndex = start; directiveIndex < end; directiveIndex++) {\n const def = tView.data[directiveIndex];\n if (def.contentQueries) {\n const directiveInstance = lView[directiveIndex];\n ngDevMode &&\n assertDefined(directiveIndex, 'Incorrect reference to a directive defining a content query');\n def.contentQueries(1 /* RenderFlags.Create */, directiveInstance, directiveIndex);\n }\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n}\n\n/**\n * Defines the CSS styles encapsulation policies for the {@link Component} decorator's\n * `encapsulation` option.\n *\n * See {@link Component#encapsulation encapsulation}.\n *\n * @usageNotes\n * ### Example\n *\n * {@example core/ts/metadata/encapsulation.ts region='longform'}\n *\n * @publicApi\n */\nvar ViewEncapsulation;\n(function (ViewEncapsulation) {\n // TODO: consider making `ViewEncapsulation` a `const enum` instead. See\n // https://github.com/angular/angular/issues/44119 for additional information.\n /**\n * Emulates a native Shadow DOM encapsulation behavior by adding a specific attribute to the\n * component's host element and applying the same attribute to all the CSS selectors provided\n * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls}.\n *\n * This is the default option.\n */\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n /**\n * Doesn't provide any sort of CSS style encapsulation, meaning that all the styles provided\n * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls} are applicable\n * to any HTML element of the application regardless of their host Component.\n */\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n /**\n * Uses the browser's native Shadow DOM API to encapsulate CSS styles, meaning that it creates\n * a ShadowRoot for the component's host element which is then used to encapsulate\n * all the Component's styling.\n */\n ViewEncapsulation[ViewEncapsulation[\"ShadowDom\"] = 3] = \"ShadowDom\";\n})(ViewEncapsulation || (ViewEncapsulation = {}));\n\n/**\n * @fileoverview\n * A module to facilitate use of a Trusted Types policy internally within\n * Angular. It lazily constructs the Trusted Types policy, providing helper\n * utilities for promoting strings to Trusted Types. When Trusted Types are not\n * available, strings are used as a fallback.\n * @security All use of this module is security-sensitive and should go through\n * security review.\n */\n/**\n * The Trusted Types policy, or null if Trusted Types are not\n * enabled/supported, or undefined if the policy has not been created yet.\n */\nlet policy$1;\n/**\n * Returns the Trusted Types policy, or null if Trusted Types are not\n * enabled/supported. The first call to this function will create the policy.\n */\nfunction getPolicy$1() {\n if (policy$1 === undefined) {\n policy$1 = null;\n if (_global.trustedTypes) {\n try {\n policy$1 = _global.trustedTypes.createPolicy('angular', {\n createHTML: (s) => s,\n createScript: (s) => s,\n createScriptURL: (s) => s,\n });\n }\n catch {\n // trustedTypes.createPolicy throws if called with a name that is\n // already registered, even in report-only mode. Until the API changes,\n // catch the error not to break the applications functionally. In such\n // cases, the code will fall back to using strings.\n }\n }\n }\n return policy$1;\n}\n/**\n * Unsafely promote a string to a TrustedHTML, falling back to strings when\n * Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that the\n * provided string will never cause an XSS vulnerability if used in a context\n * that will be interpreted as HTML by a browser, e.g. when assigning to\n * element.innerHTML.\n */\nfunction trustedHTMLFromString(html) {\n return getPolicy$1()?.createHTML(html) || html;\n}\n/**\n * Unsafely promote a string to a TrustedScript, falling back to strings when\n * Trusted Types are not available.\n * @security In particular, it must be assured that the provided string will\n * never cause an XSS vulnerability if used in a context that will be\n * interpreted and executed as a script by a browser, e.g. when calling eval.\n */\nfunction trustedScriptFromString(script) {\n return getPolicy$1()?.createScript(script) || script;\n}\n/**\n * Unsafely promote a string to a TrustedScriptURL, falling back to strings\n * when Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that the\n * provided string will never cause an XSS vulnerability if used in a context\n * that will cause a browser to load and execute a resource, e.g. when\n * assigning to script.src.\n */\nfunction trustedScriptURLFromString(url) {\n return getPolicy$1()?.createScriptURL(url) || url;\n}\n/**\n * Unsafely call the Function constructor with the given string arguments. It\n * is only available in development mode, and should be stripped out of\n * production code.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only called from development code, as use in production code can lead to\n * XSS vulnerabilities.\n */\nfunction newTrustedFunctionForDev(...args) {\n if (typeof ngDevMode === 'undefined') {\n throw new Error('newTrustedFunctionForDev should never be called in production');\n }\n if (!_global.trustedTypes) {\n // In environments that don't support Trusted Types, fall back to the most\n // straightforward implementation:\n return new Function(...args);\n }\n // Chrome currently does not support passing TrustedScript to the Function\n // constructor. The following implements the workaround proposed on the page\n // below, where the Chromium bug is also referenced:\n // https://github.com/w3c/webappsec-trusted-types/wiki/Trusted-Types-for-function-constructor\n const fnArgs = args.slice(0, -1).join(',');\n const fnBody = args[args.length - 1];\n const body = `(function anonymous(${fnArgs}\n) { ${fnBody}\n})`;\n // Using eval directly confuses the compiler and prevents this module from\n // being stripped out of JS binaries even if not used. The global['eval']\n // indirection fixes that.\n const fn = _global['eval'](trustedScriptFromString(body));\n if (fn.bind === undefined) {\n // Workaround for a browser bug that only exists in Chrome 83, where passing\n // a TrustedScript to eval just returns the TrustedScript back without\n // evaluating it. In that case, fall back to the most straightforward\n // implementation:\n return new Function(...args);\n }\n // To completely mimic the behavior of calling \"new Function\", two more\n // things need to happen:\n // 1. Stringifying the resulting function should return its source code\n fn.toString = () => body;\n // 2. When calling the resulting function, `this` should refer to `global`\n return fn.bind(_global);\n // When Trusted Types support in Function constructors is widely available,\n // the implementation of this function can be simplified to:\n // return new Function(...args.map(a => trustedScriptFromString(a)));\n}\n\n/**\n * @fileoverview\n * A module to facilitate use of a Trusted Types policy internally within\n * Angular specifically for bypassSecurityTrust* and custom sanitizers. It\n * lazily constructs the Trusted Types policy, providing helper utilities for\n * promoting strings to Trusted Types. When Trusted Types are not available,\n * strings are used as a fallback.\n * @security All use of this module is security-sensitive and should go through\n * security review.\n */\n/**\n * The Trusted Types policy, or null if Trusted Types are not\n * enabled/supported, or undefined if the policy has not been created yet.\n */\nlet policy;\n/**\n * Returns the Trusted Types policy, or null if Trusted Types are not\n * enabled/supported. The first call to this function will create the policy.\n */\nfunction getPolicy() {\n if (policy === undefined) {\n policy = null;\n if (_global.trustedTypes) {\n try {\n policy = _global.trustedTypes.createPolicy('angular#unsafe-bypass', {\n createHTML: (s) => s,\n createScript: (s) => s,\n createScriptURL: (s) => s,\n });\n }\n catch {\n // trustedTypes.createPolicy throws if called with a name that is\n // already registered, even in report-only mode. Until the API changes,\n // catch the error not to break the applications functionally. In such\n // cases, the code will fall back to using strings.\n }\n }\n }\n return policy;\n}\n/**\n * Unsafely promote a string to a TrustedHTML, falling back to strings when\n * Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only passed strings that come directly from custom sanitizers or the\n * bypassSecurityTrust* functions.\n */\nfunction trustedHTMLFromStringBypass(html) {\n return getPolicy()?.createHTML(html) || html;\n}\n/**\n * Unsafely promote a string to a TrustedScript, falling back to strings when\n * Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only passed strings that come directly from custom sanitizers or the\n * bypassSecurityTrust* functions.\n */\nfunction trustedScriptFromStringBypass(script) {\n return getPolicy()?.createScript(script) || script;\n}\n/**\n * Unsafely promote a string to a TrustedScriptURL, falling back to strings\n * when Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only passed strings that come directly from custom sanitizers or the\n * bypassSecurityTrust* functions.\n */\nfunction trustedScriptURLFromStringBypass(url) {\n return getPolicy()?.createScriptURL(url) || url;\n}\n\nclass SafeValueImpl {\n changingThisBreaksApplicationSecurity;\n constructor(changingThisBreaksApplicationSecurity) {\n this.changingThisBreaksApplicationSecurity = changingThisBreaksApplicationSecurity;\n }\n toString() {\n return (`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}` +\n ` (see ${XSS_SECURITY_URL})`);\n }\n}\nclass SafeHtmlImpl extends SafeValueImpl {\n getTypeName() {\n return \"HTML\" /* BypassType.Html */;\n }\n}\nclass SafeStyleImpl extends SafeValueImpl {\n getTypeName() {\n return \"Style\" /* BypassType.Style */;\n }\n}\nclass SafeScriptImpl extends SafeValueImpl {\n getTypeName() {\n return \"Script\" /* BypassType.Script */;\n }\n}\nclass SafeUrlImpl extends SafeValueImpl {\n getTypeName() {\n return \"URL\" /* BypassType.Url */;\n }\n}\nclass SafeResourceUrlImpl extends SafeValueImpl {\n getTypeName() {\n return \"ResourceURL\" /* BypassType.ResourceUrl */;\n }\n}\nfunction unwrapSafeValue(value) {\n return value instanceof SafeValueImpl\n ? value.changingThisBreaksApplicationSecurity\n : value;\n}\nfunction allowSanitizationBypassAndThrow(value, type) {\n const actualType = getSanitizationBypassType(value);\n if (actualType != null && actualType !== type) {\n // Allow ResourceURLs in URL contexts, they are strictly more trusted.\n if (actualType === \"ResourceURL\" /* BypassType.ResourceUrl */ && type === \"URL\" /* BypassType.Url */)\n return true;\n throw new Error(`Required a safe ${type}, got a ${actualType} (see ${XSS_SECURITY_URL})`);\n }\n return actualType === type;\n}\nfunction getSanitizationBypassType(value) {\n return (value instanceof SafeValueImpl && value.getTypeName()) || null;\n}\n/**\n * Mark `html` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link htmlSanitizer} to be trusted implicitly.\n *\n * @param trustedHtml `html` string which needs to be implicitly trusted.\n * @returns a `html` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustHtml(trustedHtml) {\n return new SafeHtmlImpl(trustedHtml);\n}\n/**\n * Mark `style` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link styleSanitizer} to be trusted implicitly.\n *\n * @param trustedStyle `style` string which needs to be implicitly trusted.\n * @returns a `style` hich has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustStyle(trustedStyle) {\n return new SafeStyleImpl(trustedStyle);\n}\n/**\n * Mark `script` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link scriptSanitizer} to be trusted implicitly.\n *\n * @param trustedScript `script` string which needs to be implicitly trusted.\n * @returns a `script` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustScript(trustedScript) {\n return new SafeScriptImpl(trustedScript);\n}\n/**\n * Mark `url` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link urlSanitizer} to be trusted implicitly.\n *\n * @param trustedUrl `url` string which needs to be implicitly trusted.\n * @returns a `url` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustUrl(trustedUrl) {\n return new SafeUrlImpl(trustedUrl);\n}\n/**\n * Mark `url` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link resourceUrlSanitizer} to be trusted implicitly.\n *\n * @param trustedResourceUrl `url` string which needs to be implicitly trusted.\n * @returns a `url` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustResourceUrl(trustedResourceUrl) {\n return new SafeResourceUrlImpl(trustedResourceUrl);\n}\n\n/**\n * This helper is used to get hold of an inert tree of DOM elements containing dirty HTML\n * that needs sanitizing.\n * Depending upon browser support we use one of two strategies for doing this.\n * Default: DOMParser strategy\n * Fallback: InertDocument strategy\n */\nfunction getInertBodyHelper(defaultDoc) {\n const inertDocumentHelper = new InertDocumentHelper(defaultDoc);\n return isDOMParserAvailable() ? new DOMParserHelper(inertDocumentHelper) : inertDocumentHelper;\n}\n/**\n * Uses DOMParser to create and fill an inert body element.\n * This is the default strategy used in browsers that support it.\n */\nclass DOMParserHelper {\n inertDocumentHelper;\n constructor(inertDocumentHelper) {\n this.inertDocumentHelper = inertDocumentHelper;\n }\n getInertBodyElement(html) {\n // We add these extra elements to ensure that the rest of the content is parsed as expected\n // e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the\n // `<head>` tag. Note that the `<body>` tag is closed implicitly to prevent unclosed tags\n // in `html` from consuming the otherwise explicit `</body>` tag.\n html = '<body><remove></remove>' + html;\n try {\n const body = new window.DOMParser().parseFromString(trustedHTMLFromString(html), 'text/html').body;\n if (body === null) {\n // In some browsers (e.g. Mozilla/5.0 iPad AppleWebKit Mobile) the `body` property only\n // becomes available in the following tick of the JS engine. In that case we fall back to\n // the `inertDocumentHelper` instead.\n return this.inertDocumentHelper.getInertBodyElement(html);\n }\n body.firstChild?.remove();\n return body;\n }\n catch {\n return null;\n }\n }\n}\n/**\n * Use an HTML5 `template` element to create and fill an inert DOM element.\n * This is the fallback strategy if the browser does not support DOMParser.\n */\nclass InertDocumentHelper {\n defaultDoc;\n inertDocument;\n constructor(defaultDoc) {\n this.defaultDoc = defaultDoc;\n this.inertDocument = this.defaultDoc.implementation.createHTMLDocument('sanitization-inert');\n }\n getInertBodyElement(html) {\n const templateEl = this.inertDocument.createElement('template');\n templateEl.innerHTML = trustedHTMLFromString(html);\n return templateEl;\n }\n}\n/**\n * We need to determine whether the DOMParser exists in the global context and\n * supports parsing HTML; HTML parsing support is not as wide as other formats, see\n * https://developer.mozilla.org/en-US/docs/Web/API/DOMParser#Browser_compatibility.\n *\n * @suppress {uselessCode}\n */\nfunction isDOMParserAvailable() {\n try {\n return !!new window.DOMParser().parseFromString(trustedHTMLFromString(''), 'text/html');\n }\n catch {\n return false;\n }\n}\n\n/**\n * A pattern that recognizes URLs that are safe wrt. XSS in URL navigation\n * contexts.\n *\n * This regular expression matches a subset of URLs that will not cause script\n * execution if used in URL context within a HTML document. Specifically, this\n * regular expression matches if:\n * (1) Either a protocol that is not javascript:, and that has valid characters\n * (alphanumeric or [+-.]).\n * (2) or no protocol. A protocol must be followed by a colon. The below\n * allows that by allowing colons only after one of the characters [/?#].\n * A colon after a hash (#) must be in the fragment.\n * Otherwise, a colon after a (?) must be in a query.\n * Otherwise, a colon after a single solidus (/) must be in a path.\n * Otherwise, a colon after a double solidus (//) must be in the authority\n * (before port).\n *\n * The pattern disallows &, used in HTML entity declarations before\n * one of the characters in [/?#]. This disallows HTML entities used in the\n * protocol name, which should never happen, e.g. \"http\" for \"http\".\n * It also disallows HTML entities in the first path part of a relative path,\n * e.g. \"foo<bar/baz\". Our existing escaping functions should not produce\n * that. More importantly, it disallows masking of a colon,\n * e.g. \"javascript:...\".\n *\n * This regular expression was taken from the Closure sanitization library.\n */\nconst SAFE_URL_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\\/?#]*(?:[\\/?#]|$))/i;\nfunction _sanitizeUrl(url) {\n url = String(url);\n if (url.match(SAFE_URL_PATTERN))\n return url;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n console.warn(`WARNING: sanitizing unsafe URL value ${url} (see ${XSS_SECURITY_URL})`);\n }\n return 'unsafe:' + url;\n}\n\nfunction tagSet(tags) {\n const res = {};\n for (const t of tags.split(','))\n res[t] = true;\n return res;\n}\nfunction merge(...sets) {\n const res = {};\n for (const s of sets) {\n for (const v in s) {\n if (s.hasOwnProperty(v))\n res[v] = true;\n }\n }\n return res;\n}\n// Good source of info about elements and attributes\n// https://html.spec.whatwg.org/#semantics\n// https://simon.html5.org/html-elements\n// Safe Void Elements - HTML5\n// https://html.spec.whatwg.org/#void-elements\nconst VOID_ELEMENTS = tagSet('area,br,col,hr,img,wbr');\n// Elements that you can, intentionally, leave open (and which close themselves)\n// https://html.spec.whatwg.org/#optional-tags\nconst OPTIONAL_END_TAG_BLOCK_ELEMENTS = tagSet('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr');\nconst OPTIONAL_END_TAG_INLINE_ELEMENTS = tagSet('rp,rt');\nconst OPTIONAL_END_TAG_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, OPTIONAL_END_TAG_BLOCK_ELEMENTS);\n// Safe Block Elements - HTML5\nconst BLOCK_ELEMENTS = merge(OPTIONAL_END_TAG_BLOCK_ELEMENTS, tagSet('address,article,' +\n 'aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,' +\n 'h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul'));\n// Inline Elements - HTML5\nconst INLINE_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, tagSet('a,abbr,acronym,audio,b,' +\n 'bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,' +\n 'samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video'));\nconst VALID_ELEMENTS = merge(VOID_ELEMENTS, BLOCK_ELEMENTS, INLINE_ELEMENTS, OPTIONAL_END_TAG_ELEMENTS);\n// Attributes that have href and hence need to be sanitized\nconst URI_ATTRS = tagSet('background,cite,href,itemtype,longdesc,poster,src,xlink:href');\nconst HTML_ATTRS = tagSet('abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,' +\n 'compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,' +\n 'ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,' +\n 'scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,' +\n 'valign,value,vspace,width');\n// Accessibility attributes as per WAI-ARIA 1.1 (W3C Working Draft 14 December 2018)\nconst ARIA_ATTRS = tagSet('aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,' +\n 'aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,' +\n 'aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,' +\n 'aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,' +\n 'aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,' +\n 'aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,' +\n 'aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext');\n// NB: This currently consciously doesn't support SVG. SVG sanitization has had several security\n// issues in the past, so it seems safer to leave it out if possible. If support for binding SVG via\n// innerHTML is required, SVG attributes should be added here.\n// NB: Sanitization does not allow <form> elements or other active elements (<button> etc). Those\n// can be sanitized, but they increase security surface area without a legitimate use case, so they\n// are left out here.\nconst VALID_ATTRS = merge(URI_ATTRS, HTML_ATTRS, ARIA_ATTRS);\n// Elements whose content should not be traversed/preserved, if the elements themselves are invalid.\n//\n// Typically, `<invalid>Some content</invalid>` would traverse (and in this case preserve)\n// `Some content`, but strip `invalid-element` opening/closing tags. For some elements, though, we\n// don't want to preserve the content, if the elements themselves are going to be removed.\nconst SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS = tagSet('script,style,template');\n/**\n * SanitizingHtmlSerializer serializes a DOM fragment, stripping out any unsafe elements and unsafe\n * attributes.\n */\nclass SanitizingHtmlSerializer {\n // Explicitly track if something was stripped, to avoid accidentally warning of sanitization just\n // because characters were re-encoded.\n sanitizedSomething = false;\n buf = [];\n sanitizeChildren(el) {\n // This cannot use a TreeWalker, as it has to run on Angular's various DOM adapters.\n // However this code never accesses properties off of `document` before deleting its contents\n // again, so it shouldn't be vulnerable to DOM clobbering.\n let current = el.firstChild;\n let traverseContent = true;\n let parentNodes = [];\n while (current) {\n if (current.nodeType === Node.ELEMENT_NODE) {\n traverseContent = this.startElement(current);\n }\n else if (current.nodeType === Node.TEXT_NODE) {\n this.chars(current.nodeValue);\n }\n else {\n // Strip non-element, non-text nodes.\n this.sanitizedSomething = true;\n }\n if (traverseContent && current.firstChild) {\n // Push current node to the parent stack before entering its content.\n parentNodes.push(current);\n current = getFirstChild(current);\n continue;\n }\n while (current) {\n // Leaving the element.\n // Walk up and to the right, closing tags as we go.\n if (current.nodeType === Node.ELEMENT_NODE) {\n this.endElement(current);\n }\n let next = getNextSibling(current);\n if (next) {\n current = next;\n break;\n }\n // There was no next sibling, walk up to the parent node (extract it from the stack).\n current = parentNodes.pop();\n }\n }\n return this.buf.join('');\n }\n /**\n * Sanitizes an opening element tag (if valid) and returns whether the element's contents should\n * be traversed. Element content must always be traversed (even if the element itself is not\n * valid/safe), unless the element is one of `SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS`.\n *\n * @param element The element to sanitize.\n * @return True if the element's contents should be traversed.\n */\n startElement(element) {\n const tagName = getNodeName(element).toLowerCase();\n if (!VALID_ELEMENTS.hasOwnProperty(tagName)) {\n this.sanitizedSomething = true;\n return !SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS.hasOwnProperty(tagName);\n }\n this.buf.push('<');\n this.buf.push(tagName);\n const elAttrs = element.attributes;\n for (let i = 0; i < elAttrs.length; i++) {\n const elAttr = elAttrs.item(i);\n const attrName = elAttr.name;\n const lower = attrName.toLowerCase();\n if (!VALID_ATTRS.hasOwnProperty(lower)) {\n this.sanitizedSomething = true;\n continue;\n }\n let value = elAttr.value;\n // TODO(martinprobst): Special case image URIs for data:image/...\n if (URI_ATTRS[lower])\n value = _sanitizeUrl(value);\n this.buf.push(' ', attrName, '=\"', encodeEntities(value), '\"');\n }\n this.buf.push('>');\n return true;\n }\n endElement(current) {\n const tagName = getNodeName(current).toLowerCase();\n if (VALID_ELEMENTS.hasOwnProperty(tagName) && !VOID_ELEMENTS.hasOwnProperty(tagName)) {\n this.buf.push('</');\n this.buf.push(tagName);\n this.buf.push('>');\n }\n }\n chars(chars) {\n this.buf.push(encodeEntities(chars));\n }\n}\n/**\n * Verifies whether a given child node is a descendant of a given parent node.\n * It may not be the case when properties like `.firstChild` are clobbered and\n * accessing `.firstChild` results in an unexpected node returned.\n */\nfunction isClobberedElement(parentNode, childNode) {\n return ((parentNode.compareDocumentPosition(childNode) & Node.DOCUMENT_POSITION_CONTAINED_BY) !==\n Node.DOCUMENT_POSITION_CONTAINED_BY);\n}\n/**\n * Retrieves next sibling node and makes sure that there is no\n * clobbering of the `nextSibling` property happening.\n */\nfunction getNextSibling(node) {\n const nextSibling = node.nextSibling;\n // Make sure there is no `nextSibling` clobbering: navigating to\n // the next sibling and going back to the previous one should result\n // in the original node.\n if (nextSibling && node !== nextSibling.previousSibling) {\n throw clobberedElementError(nextSibling);\n }\n return nextSibling;\n}\n/**\n * Retrieves first child node and makes sure that there is no\n * clobbering of the `firstChild` property happening.\n */\nfunction getFirstChild(node) {\n const firstChild = node.firstChild;\n if (firstChild && isClobberedElement(node, firstChild)) {\n throw clobberedElementError(firstChild);\n }\n return firstChild;\n}\n/** Gets a reasonable nodeName, even for clobbered nodes. */\nfunction getNodeName(node) {\n const nodeName = node.nodeName;\n // If the property is clobbered, assume it is an `HTMLFormElement`.\n return typeof nodeName === 'string' ? nodeName : 'FORM';\n}\nfunction clobberedElementError(node) {\n return new Error(`Failed to sanitize html because the element is clobbered: ${node.outerHTML}`);\n}\n// Regular Expressions for parsing tags and attributes\nconst SURROGATE_PAIR_REGEXP = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g;\n// ! to ~ is the ASCII range.\nconst NON_ALPHANUMERIC_REGEXP = /([^\\#-~ |!])/g;\n/**\n * Escapes all potentially dangerous characters, so that the\n * resulting string can be safely inserted into attribute or\n * element text.\n * @param value\n */\nfunction encodeEntities(value) {\n return value\n .replace(/&/g, '&')\n .replace(SURROGATE_PAIR_REGEXP, function (match) {\n const hi = match.charCodeAt(0);\n const low = match.charCodeAt(1);\n return '&#' + ((hi - 0xd800) * 0x400 + (low - 0xdc00) + 0x10000) + ';';\n })\n .replace(NON_ALPHANUMERIC_REGEXP, function (match) {\n return '&#' + match.charCodeAt(0) + ';';\n })\n .replace(/</g, '<')\n .replace(/>/g, '>');\n}\nlet inertBodyHelper;\n/**\n * Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to\n * the DOM in a browser environment.\n */\nfunction _sanitizeHtml(defaultDoc, unsafeHtmlInput) {\n let inertBodyElement = null;\n try {\n inertBodyHelper = inertBodyHelper || getInertBodyHelper(defaultDoc);\n // Make sure unsafeHtml is actually a string (TypeScript types are not enforced at runtime).\n let unsafeHtml = unsafeHtmlInput ? String(unsafeHtmlInput) : '';\n inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);\n // mXSS protection. Repeatedly parse the document to make sure it stabilizes, so that a browser\n // trying to auto-correct incorrect HTML cannot cause formerly inert HTML to become dangerous.\n let mXSSAttempts = 5;\n let parsedHtml = unsafeHtml;\n do {\n if (mXSSAttempts === 0) {\n throw new Error('Failed to sanitize html because the input is unstable');\n }\n mXSSAttempts--;\n unsafeHtml = parsedHtml;\n parsedHtml = inertBodyElement.innerHTML;\n inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);\n } while (unsafeHtml !== parsedHtml);\n const sanitizer = new SanitizingHtmlSerializer();\n const safeHtml = sanitizer.sanitizeChildren(getTemplateContent(inertBodyElement) || inertBodyElement);\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && sanitizer.sanitizedSomething) {\n console.warn(`WARNING: sanitizing HTML stripped some content, see ${XSS_SECURITY_URL}`);\n }\n return trustedHTMLFromString(safeHtml);\n }\n finally {\n // In case anything goes wrong, clear out inertElement to reset the entire DOM structure.\n if (inertBodyElement) {\n const parent = getTemplateContent(inertBodyElement) || inertBodyElement;\n while (parent.firstChild) {\n parent.firstChild.remove();\n }\n }\n }\n}\nfunction getTemplateContent(el) {\n return 'content' in el /** Microsoft/TypeScript#21517 */ && isTemplateElement(el)\n ? el.content\n : null;\n}\nfunction isTemplateElement(el) {\n return el.nodeType === Node.ELEMENT_NODE && el.nodeName === 'TEMPLATE';\n}\n\n/**\n * A SecurityContext marks a location that has dangerous security implications, e.g. a DOM property\n * like `innerHTML` that could cause Cross Site Scripting (XSS) security bugs when improperly\n * handled.\n *\n * See DomSanitizer for more details on security in Angular applications.\n *\n * @publicApi\n */\nvar SecurityContext;\n(function (SecurityContext) {\n SecurityContext[SecurityContext[\"NONE\"] = 0] = \"NONE\";\n SecurityContext[SecurityContext[\"HTML\"] = 1] = \"HTML\";\n SecurityContext[SecurityContext[\"STYLE\"] = 2] = \"STYLE\";\n SecurityContext[SecurityContext[\"SCRIPT\"] = 3] = \"SCRIPT\";\n SecurityContext[SecurityContext[\"URL\"] = 4] = \"URL\";\n SecurityContext[SecurityContext[\"RESOURCE_URL\"] = 5] = \"RESOURCE_URL\";\n})(SecurityContext || (SecurityContext = {}));\n\n/**\n * An `html` sanitizer which converts untrusted `html` **string** into trusted string by removing\n * dangerous content.\n *\n * This method parses the `html` and locates potentially dangerous content (such as urls and\n * javascript) and removes it.\n *\n * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustHtml}.\n *\n * @param unsafeHtml untrusted `html`, typically from the user.\n * @returns `html` string which is safe to display to user, because all of the dangerous javascript\n * and urls have been removed.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeHtml(unsafeHtml) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return trustedHTMLFromStringBypass(sanitizer.sanitize(SecurityContext.HTML, unsafeHtml) || '');\n }\n if (allowSanitizationBypassAndThrow(unsafeHtml, \"HTML\" /* BypassType.Html */)) {\n return trustedHTMLFromStringBypass(unwrapSafeValue(unsafeHtml));\n }\n return _sanitizeHtml(getDocument(), renderStringify(unsafeHtml));\n}\n/**\n * A `style` sanitizer which converts untrusted `style` **string** into trusted string by removing\n * dangerous content.\n *\n * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustStyle}.\n *\n * @param unsafeStyle untrusted `style`, typically from the user.\n * @returns `style` string which is safe to bind to the `style` properties.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeStyle(unsafeStyle) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return sanitizer.sanitize(SecurityContext.STYLE, unsafeStyle) || '';\n }\n if (allowSanitizationBypassAndThrow(unsafeStyle, \"Style\" /* BypassType.Style */)) {\n return unwrapSafeValue(unsafeStyle);\n }\n return renderStringify(unsafeStyle);\n}\n/**\n * A `url` sanitizer which converts untrusted `url` **string** into trusted string by removing\n * dangerous\n * content.\n *\n * This method parses the `url` and locates potentially dangerous content (such as javascript) and\n * removes it.\n *\n * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustUrl}.\n *\n * @param unsafeUrl untrusted `url`, typically from the user.\n * @returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because\n * all of the dangerous javascript has been removed.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeUrl(unsafeUrl) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return sanitizer.sanitize(SecurityContext.URL, unsafeUrl) || '';\n }\n if (allowSanitizationBypassAndThrow(unsafeUrl, \"URL\" /* BypassType.Url */)) {\n return unwrapSafeValue(unsafeUrl);\n }\n return _sanitizeUrl(renderStringify(unsafeUrl));\n}\n/**\n * A `url` sanitizer which only lets trusted `url`s through.\n *\n * This passes only `url`s marked trusted by calling {@link bypassSanitizationTrustResourceUrl}.\n *\n * @param unsafeResourceUrl untrusted `url`, typically from the user.\n * @returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because\n * only trusted `url`s have been allowed to pass.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeResourceUrl(unsafeResourceUrl) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return trustedScriptURLFromStringBypass(sanitizer.sanitize(SecurityContext.RESOURCE_URL, unsafeResourceUrl) || '');\n }\n if (allowSanitizationBypassAndThrow(unsafeResourceUrl, \"ResourceURL\" /* BypassType.ResourceUrl */)) {\n return trustedScriptURLFromStringBypass(unwrapSafeValue(unsafeResourceUrl));\n }\n throw new RuntimeError(904 /* RuntimeErrorCode.UNSAFE_VALUE_IN_RESOURCE_URL */, ngDevMode && `unsafe value used in a resource URL context (see ${XSS_SECURITY_URL})`);\n}\n/**\n * A `script` sanitizer which only lets trusted javascript through.\n *\n * This passes only `script`s marked trusted by calling {@link\n * bypassSanitizationTrustScript}.\n *\n * @param unsafeScript untrusted `script`, typically from the user.\n * @returns `url` string which is safe to bind to the `<script>` element such as `<img src>`,\n * because only trusted `scripts` have been allowed to pass.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeScript(unsafeScript) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return trustedScriptFromStringBypass(sanitizer.sanitize(SecurityContext.SCRIPT, unsafeScript) || '');\n }\n if (allowSanitizationBypassAndThrow(unsafeScript, \"Script\" /* BypassType.Script */)) {\n return trustedScriptFromStringBypass(unwrapSafeValue(unsafeScript));\n }\n throw new RuntimeError(905 /* RuntimeErrorCode.UNSAFE_VALUE_IN_SCRIPT */, ngDevMode && 'unsafe value used in a script context');\n}\n/**\n * A template tag function for promoting the associated constant literal to a\n * TrustedHTML. Interpolation is explicitly not allowed.\n *\n * @param html constant template literal containing trusted HTML.\n * @returns TrustedHTML wrapping `html`.\n *\n * @security This is a security-sensitive function and should only be used to\n * convert constant values of attributes and properties found in\n * application-provided Angular templates to TrustedHTML.\n *\n * @codeGenApi\n */\nfunction ɵɵtrustConstantHtml(html) {\n // The following runtime check ensures that the function was called as a\n // template tag (e.g. ɵɵtrustConstantHtml`content`), without any interpolation\n // (e.g. not ɵɵtrustConstantHtml`content ${variable}`). A TemplateStringsArray\n // is an array with a `raw` property that is also an array. The associated\n // template literal has no interpolation if and only if the length of the\n // TemplateStringsArray is 1.\n if (ngDevMode && (!Array.isArray(html) || !Array.isArray(html.raw) || html.length !== 1)) {\n throw new Error(`Unexpected interpolation in trusted HTML constant: ${html.join('?')}`);\n }\n return trustedHTMLFromString(html[0]);\n}\n/**\n * A template tag function for promoting the associated constant literal to a\n * TrustedScriptURL. Interpolation is explicitly not allowed.\n *\n * @param url constant template literal containing a trusted script URL.\n * @returns TrustedScriptURL wrapping `url`.\n *\n * @security This is a security-sensitive function and should only be used to\n * convert constant values of attributes and properties found in\n * application-provided Angular templates to TrustedScriptURL.\n *\n * @codeGenApi\n */\nfunction ɵɵtrustConstantResourceUrl(url) {\n // The following runtime check ensures that the function was called as a\n // template tag (e.g. ɵɵtrustConstantResourceUrl`content`), without any\n // interpolation (e.g. not ɵɵtrustConstantResourceUrl`content ${variable}`). A\n // TemplateStringsArray is an array with a `raw` property that is also an\n // array. The associated template literal has no interpolation if and only if\n // the length of the TemplateStringsArray is 1.\n if (ngDevMode && (!Array.isArray(url) || !Array.isArray(url.raw) || url.length !== 1)) {\n throw new Error(`Unexpected interpolation in trusted URL constant: ${url.join('?')}`);\n }\n return trustedScriptURLFromString(url[0]);\n}\n/**\n * Detects which sanitizer to use for URL property, based on tag name and prop name.\n *\n * The rules are based on the RESOURCE_URL context config from\n * `packages/compiler/src/schema/dom_security_schema.ts`.\n * If tag and prop names don't match Resource URL schema, use URL sanitizer.\n */\nfunction getUrlSanitizer(tag, prop) {\n if ((prop === 'src' &&\n (tag === 'embed' ||\n tag === 'frame' ||\n tag === 'iframe' ||\n tag === 'media' ||\n tag === 'script')) ||\n (prop === 'href' && (tag === 'base' || tag === 'link'))) {\n return ɵɵsanitizeResourceUrl;\n }\n return ɵɵsanitizeUrl;\n}\n/**\n * Sanitizes URL, selecting sanitizer function based on tag and property names.\n *\n * This function is used in case we can't define security context at compile time, when only prop\n * name is available. This happens when we generate host bindings for Directives/Components. The\n * host element is unknown at compile time, so we defer calculation of specific sanitizer to\n * runtime.\n *\n * @param unsafeUrl untrusted `url`, typically from the user.\n * @param tag target element tag name.\n * @param prop name of the property that contains the value.\n * @returns `url` string which is safe to bind.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeUrlOrResourceUrl(unsafeUrl, tag, prop) {\n return getUrlSanitizer(tag, prop)(unsafeUrl);\n}\nfunction validateAgainstEventProperties(name) {\n if (name.toLowerCase().startsWith('on')) {\n const errorMessage = `Binding to event property '${name}' is disallowed for security reasons, ` +\n `please use (${name.slice(2)})=...` +\n `\\nIf '${name}' is a directive input, make sure the directive is imported by the` +\n ` current module.`;\n throw new RuntimeError(306 /* RuntimeErrorCode.INVALID_EVENT_BINDING */, errorMessage);\n }\n}\nfunction validateAgainstEventAttributes(name) {\n if (name.toLowerCase().startsWith('on')) {\n const errorMessage = `Binding to event attribute '${name}' is disallowed for security reasons, ` +\n `please use (${name.slice(2)})=...`;\n throw new RuntimeError(306 /* RuntimeErrorCode.INVALID_EVENT_BINDING */, errorMessage);\n }\n}\nfunction getSanitizer() {\n const lView = getLView();\n return lView && lView[ENVIRONMENT].sanitizer;\n}\n\n/**\n * Disallowed strings in the comment.\n *\n * see: https://html.spec.whatwg.org/multipage/syntax.html#comments\n */\nconst COMMENT_DISALLOWED = /^>|^->|<!--|-->|--!>|<!-$/g;\n/**\n * Delimiter in the disallowed strings which needs to be wrapped with zero with character.\n */\nconst COMMENT_DELIMITER = /(<|>)/g;\nconst COMMENT_DELIMITER_ESCAPED = '\\u200B$1\\u200B';\n/**\n * Escape the content of comment strings so that it can be safely inserted into a comment node.\n *\n * The issue is that HTML does not specify any way to escape comment end text inside the comment.\n * Consider: `<!-- The way you close a comment is with \">\", and \"->\" at the beginning or by \"-->\" or\n * \"--!>\" at the end. -->`. Above the `\"-->\"` is meant to be text not an end to the comment. This\n * can be created programmatically through DOM APIs. (`<!--` are also disallowed.)\n *\n * see: https://html.spec.whatwg.org/multipage/syntax.html#comments\n *\n * ```ts\n * div.innerHTML = div.innerHTML\n * ```\n *\n * One would expect that the above code would be safe to do, but it turns out that because comment\n * text is not escaped, the comment may contain text which will prematurely close the comment\n * opening up the application for XSS attack. (In SSR we programmatically create comment nodes which\n * may contain such text and expect them to be safe.)\n *\n * This function escapes the comment text by looking for comment delimiters (`<` and `>`) and\n * surrounding them with `_>_` where the `_` is a zero width space `\\u200B`. The result is that if a\n * comment contains any of the comment start/end delimiters (such as `<!--`, `-->` or `--!>`) the\n * text it will render normally but it will not cause the HTML parser to close/open the comment.\n *\n * @param value text to make safe for comment node by escaping the comment open/close character\n * sequence.\n */\nfunction escapeCommentText(value) {\n return value.replace(COMMENT_DISALLOWED, (text) => text.replace(COMMENT_DELIMITER, COMMENT_DELIMITER_ESCAPED));\n}\n\nfunction normalizeDebugBindingName(name) {\n // Attribute names with `$` (eg `x-y$`) are valid per spec, but unsupported by some browsers\n name = camelCaseToDashCase(name.replace(/[$@]/g, '_'));\n return `ng-reflect-${name}`;\n}\nconst CAMEL_CASE_REGEXP = /([A-Z])/g;\nfunction camelCaseToDashCase(input) {\n return input.replace(CAMEL_CASE_REGEXP, (...m) => '-' + m[1].toLowerCase());\n}\nfunction normalizeDebugBindingValue(value) {\n try {\n // Limit the size of the value as otherwise the DOM just gets polluted.\n return value != null ? value.toString().slice(0, 30) : value;\n }\n catch (e) {\n return '[ERROR] Exception while trying to serialize the value';\n }\n}\n\n/**\n * Defines a schema that allows an NgModule to contain the following:\n * - Non-Angular elements named with dash case (`-`).\n * - Element properties named with dash case (`-`).\n * Dash case is the naming convention for custom elements.\n *\n * @publicApi\n */\nconst CUSTOM_ELEMENTS_SCHEMA = {\n name: 'custom-elements',\n};\n/**\n * Defines a schema that allows any property on any element.\n *\n * This schema allows you to ignore the errors related to any unknown elements or properties in a\n * template. The usage of this schema is generally discouraged because it prevents useful validation\n * and may hide real errors in your template. Consider using the `CUSTOM_ELEMENTS_SCHEMA` instead.\n *\n * @publicApi\n */\nconst NO_ERRORS_SCHEMA = {\n name: 'no-errors-schema',\n};\n\nlet shouldThrowErrorOnUnknownElement = false;\n/**\n * Sets a strict mode for JIT-compiled components to throw an error on unknown elements,\n * instead of just logging the error.\n * (for AOT-compiled ones this check happens at build time).\n */\nfunction ɵsetUnknownElementStrictMode(shouldThrow) {\n shouldThrowErrorOnUnknownElement = shouldThrow;\n}\n/**\n * Gets the current value of the strict mode.\n */\nfunction ɵgetUnknownElementStrictMode() {\n return shouldThrowErrorOnUnknownElement;\n}\nlet shouldThrowErrorOnUnknownProperty = false;\n/**\n * Sets a strict mode for JIT-compiled components to throw an error on unknown properties,\n * instead of just logging the error.\n * (for AOT-compiled ones this check happens at build time).\n */\nfunction ɵsetUnknownPropertyStrictMode(shouldThrow) {\n shouldThrowErrorOnUnknownProperty = shouldThrow;\n}\n/**\n * Gets the current value of the strict mode.\n */\nfunction ɵgetUnknownPropertyStrictMode() {\n return shouldThrowErrorOnUnknownProperty;\n}\n/**\n * Validates that the element is known at runtime and produces\n * an error if it's not the case.\n * This check is relevant for JIT-compiled components (for AOT-compiled\n * ones this check happens at build time).\n *\n * The element is considered known if either:\n * - it's a known HTML element\n * - it's a known custom element\n * - the element matches any directive\n * - the element is allowed by one of the schemas\n *\n * @param element Element to validate\n * @param lView An `LView` that represents a current component that is being rendered\n * @param tagName Name of the tag to check\n * @param schemas Array of schemas\n * @param hasDirectives Boolean indicating that the element matches any directive\n */\nfunction validateElementIsKnown(element, lView, tagName, schemas, hasDirectives) {\n // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT\n // mode where this check happens at compile time. In JIT mode, `schemas` is always present and\n // defined as an array (as an empty array in case `schemas` field is not defined) and we should\n // execute the check below.\n if (schemas === null)\n return;\n // If the element matches any directive, it's considered as valid.\n if (!hasDirectives && tagName !== null) {\n // The element is unknown if it's an instance of HTMLUnknownElement, or it isn't registered\n // as a custom element. Note that unknown elements with a dash in their name won't be instances\n // of HTMLUnknownElement in browsers that support web components.\n const isUnknown = \n // Note that we can't check for `typeof HTMLUnknownElement === 'function'` because\n // Domino doesn't expose HTMLUnknownElement globally.\n (typeof HTMLUnknownElement !== 'undefined' &&\n HTMLUnknownElement &&\n element instanceof HTMLUnknownElement) ||\n (typeof customElements !== 'undefined' &&\n tagName.indexOf('-') > -1 &&\n !customElements.get(tagName));\n if (isUnknown && !matchingSchemas(schemas, tagName)) {\n const isHostStandalone = isHostComponentStandalone(lView);\n const templateLocation = getTemplateLocationDetails(lView);\n const schemas = `'${isHostStandalone ? '@Component' : '@NgModule'}.schemas'`;\n let message = `'${tagName}' is not a known element${templateLocation}:\\n`;\n message += `1. If '${tagName}' is an Angular component, then verify that it is ${isHostStandalone\n ? \"included in the '@Component.imports' of this component\"\n : 'a part of an @NgModule where this component is declared'}.\\n`;\n if (tagName && tagName.indexOf('-') > -1) {\n message += `2. If '${tagName}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${schemas} of this component to suppress this message.`;\n }\n else {\n message += `2. To allow any element add 'NO_ERRORS_SCHEMA' to the ${schemas} of this component.`;\n }\n if (shouldThrowErrorOnUnknownElement) {\n throw new RuntimeError(304 /* RuntimeErrorCode.UNKNOWN_ELEMENT */, message);\n }\n else {\n console.error(formatRuntimeError(304 /* RuntimeErrorCode.UNKNOWN_ELEMENT */, message));\n }\n }\n }\n}\n/**\n * Validates that the property of the element is known at runtime and returns\n * false if it's not the case.\n * This check is relevant for JIT-compiled components (for AOT-compiled\n * ones this check happens at build time).\n *\n * The property is considered known if either:\n * - it's a known property of the element\n * - the element is allowed by one of the schemas\n * - the property is used for animations\n *\n * @param element Element to validate\n * @param propName Name of the property to check\n * @param tagName Name of the tag hosting the property\n * @param schemas Array of schemas\n */\nfunction isPropertyValid(element, propName, tagName, schemas) {\n // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT\n // mode where this check happens at compile time. In JIT mode, `schemas` is always present and\n // defined as an array (as an empty array in case `schemas` field is not defined) and we should\n // execute the check below.\n if (schemas === null)\n return true;\n // The property is considered valid if the element matches the schema, it exists on the element,\n // or it is synthetic.\n if (matchingSchemas(schemas, tagName) || propName in element || isAnimationProp(propName)) {\n return true;\n }\n // Note: `typeof Node` returns 'function' in most browsers, but is undefined with domino.\n return typeof Node === 'undefined' || Node === null || !(element instanceof Node);\n}\n/**\n * Logs or throws an error that a property is not supported on an element.\n *\n * @param propName Name of the invalid property\n * @param tagName Name of the tag hosting the property\n * @param nodeType Type of the node hosting the property\n * @param lView An `LView` that represents a current component\n */\nfunction handleUnknownPropertyError(propName, tagName, nodeType, lView) {\n // Special-case a situation when a structural directive is applied to\n // an `<ng-template>` element, for example: `<ng-template *ngIf=\"true\">`.\n // In this case the compiler generates the `ɵɵtemplate` instruction with\n // the `null` as the tagName. The directive matching logic at runtime relies\n // on this effect (see `isInlineTemplate`), thus using the 'ng-template' as\n // a default value of the `tNode.value` is not feasible at this moment.\n if (!tagName && nodeType === 4 /* TNodeType.Container */) {\n tagName = 'ng-template';\n }\n const isHostStandalone = isHostComponentStandalone(lView);\n const templateLocation = getTemplateLocationDetails(lView);\n let message = `Can't bind to '${propName}' since it isn't a known property of '${tagName}'${templateLocation}.`;\n const schemas = `'${isHostStandalone ? '@Component' : '@NgModule'}.schemas'`;\n const importLocation = isHostStandalone\n ? \"included in the '@Component.imports' of this component\"\n : 'a part of an @NgModule where this component is declared';\n if (KNOWN_CONTROL_FLOW_DIRECTIVES.has(propName)) {\n // Most likely this is a control flow directive (such as `*ngIf`) used in\n // a template, but the directive or the `CommonModule` is not imported.\n const correspondingImport = KNOWN_CONTROL_FLOW_DIRECTIVES.get(propName);\n message +=\n `\\nIf the '${propName}' is an Angular control flow directive, ` +\n `please make sure that either the '${correspondingImport}' directive or the 'CommonModule' is ${importLocation}.`;\n }\n else {\n // May be an Angular component, which is not imported/declared?\n message +=\n `\\n1. If '${tagName}' is an Angular component and it has the ` +\n `'${propName}' input, then verify that it is ${importLocation}.`;\n // May be a Web Component?\n if (tagName && tagName.indexOf('-') > -1) {\n message +=\n `\\n2. If '${tagName}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' ` +\n `to the ${schemas} of this component to suppress this message.`;\n message +=\n `\\n3. To allow any property add 'NO_ERRORS_SCHEMA' to ` +\n `the ${schemas} of this component.`;\n }\n else {\n // If it's expected, the error can be suppressed by the `NO_ERRORS_SCHEMA` schema.\n message +=\n `\\n2. To allow any property add 'NO_ERRORS_SCHEMA' to ` +\n `the ${schemas} of this component.`;\n }\n }\n reportUnknownPropertyError(message);\n}\nfunction reportUnknownPropertyError(message) {\n if (shouldThrowErrorOnUnknownProperty) {\n throw new RuntimeError(303 /* RuntimeErrorCode.UNKNOWN_BINDING */, message);\n }\n else {\n console.error(formatRuntimeError(303 /* RuntimeErrorCode.UNKNOWN_BINDING */, message));\n }\n}\n/**\n * WARNING: this is a **dev-mode only** function (thus should always be guarded by the `ngDevMode`)\n * and must **not** be used in production bundles. The function makes megamorphic reads, which might\n * be too slow for production mode and also it relies on the constructor function being available.\n *\n * Gets a reference to the host component def (where a current component is declared).\n *\n * @param lView An `LView` that represents a current component that is being rendered.\n */\nfunction getDeclarationComponentDef(lView) {\n !ngDevMode && throwError('Must never be called in production mode');\n const declarationLView = lView[DECLARATION_COMPONENT_VIEW];\n const context = declarationLView[CONTEXT];\n // Unable to obtain a context.\n if (!context)\n return null;\n return context.constructor ? getComponentDef(context.constructor) : null;\n}\n/**\n * WARNING: this is a **dev-mode only** function (thus should always be guarded by the `ngDevMode`)\n * and must **not** be used in production bundles. The function makes megamorphic reads, which might\n * be too slow for production mode.\n *\n * Checks if the current component is declared inside of a standalone component template.\n *\n * @param lView An `LView` that represents a current component that is being rendered.\n */\nfunction isHostComponentStandalone(lView) {\n !ngDevMode && throwError('Must never be called in production mode');\n const componentDef = getDeclarationComponentDef(lView);\n // Treat host component as non-standalone if we can't obtain the def.\n return !!componentDef?.standalone;\n}\n/**\n * WARNING: this is a **dev-mode only** function (thus should always be guarded by the `ngDevMode`)\n * and must **not** be used in production bundles. The function makes megamorphic reads, which might\n * be too slow for production mode.\n *\n * Constructs a string describing the location of the host component template. The function is used\n * in dev mode to produce error messages.\n *\n * @param lView An `LView` that represents a current component that is being rendered.\n */\nfunction getTemplateLocationDetails(lView) {\n !ngDevMode && throwError('Must never be called in production mode');\n const hostComponentDef = getDeclarationComponentDef(lView);\n const componentClassName = hostComponentDef?.type?.name;\n return componentClassName ? ` (used in the '${componentClassName}' component template)` : '';\n}\n/**\n * The set of known control flow directives and their corresponding imports.\n * We use this set to produce a more precises error message with a note\n * that the `CommonModule` should also be included.\n */\nconst KNOWN_CONTROL_FLOW_DIRECTIVES = new Map([\n ['ngIf', 'NgIf'],\n ['ngFor', 'NgFor'],\n ['ngSwitchCase', 'NgSwitchCase'],\n ['ngSwitchDefault', 'NgSwitchDefault'],\n]);\n/**\n * Returns true if the tag name is allowed by specified schemas.\n * @param schemas Array of schemas\n * @param tagName Name of the tag\n */\nfunction matchingSchemas(schemas, tagName) {\n if (schemas !== null) {\n for (let i = 0; i < schemas.length; i++) {\n const schema = schemas[i];\n if (schema === NO_ERRORS_SCHEMA ||\n (schema === CUSTOM_ELEMENTS_SCHEMA && tagName && tagName.indexOf('-') > -1)) {\n return true;\n }\n }\n }\n return false;\n}\n\n/**\n *\n * @codeGenApi\n */\nfunction ɵɵresolveWindow(element) {\n return element.ownerDocument.defaultView;\n}\n/**\n *\n * @codeGenApi\n */\nfunction ɵɵresolveDocument(element) {\n return element.ownerDocument;\n}\n/**\n *\n * @codeGenApi\n */\nfunction ɵɵresolveBody(element) {\n return element.ownerDocument.body;\n}\n/**\n * The special delimiter we use to separate property names, prefixes, and suffixes\n * in property binding metadata. See storeBindingMetadata().\n *\n * We intentionally use the Unicode \"REPLACEMENT CHARACTER\" (U+FFFD) as a delimiter\n * because it is a very uncommon character that is unlikely to be part of a user's\n * property names or interpolation strings. If it is in fact used in a property\n * binding, DebugElement.properties will not return the correct value for that\n * binding. However, there should be no runtime effect for real applications.\n *\n * This character is typically rendered as a question mark inside of a diamond.\n * See https://en.wikipedia.org/wiki/Specials_(Unicode_block)\n *\n */\nconst INTERPOLATION_DELIMITER = `�`;\n/**\n * Unwrap a value which might be behind a closure (for forward declaration reasons).\n */\nfunction maybeUnwrapFn(value) {\n if (value instanceof Function) {\n return value();\n }\n else {\n return value;\n }\n}\n\n/**\n * The max length of the string representation of a value in an error message\n */\nconst VALUE_STRING_LENGTH_LIMIT = 200;\n/** Verifies that a given type is a Standalone Component. */\nfunction assertStandaloneComponentType(type) {\n assertComponentDef(type);\n const componentDef = getComponentDef(type);\n if (!componentDef.standalone) {\n throw new RuntimeError(907 /* RuntimeErrorCode.TYPE_IS_NOT_STANDALONE */, `The ${stringifyForError(type)} component is not marked as standalone, ` +\n `but Angular expects to have a standalone component here. ` +\n `Please make sure the ${stringifyForError(type)} component has ` +\n `the \\`standalone: true\\` flag in the decorator.`);\n }\n}\n/** Verifies whether a given type is a component */\nfunction assertComponentDef(type) {\n if (!getComponentDef(type)) {\n throw new RuntimeError(906 /* RuntimeErrorCode.MISSING_GENERATED_DEF */, `The ${stringifyForError(type)} is not an Angular component, ` +\n `make sure it has the \\`@Component\\` decorator.`);\n }\n}\n/** Called when there are multiple component selectors that match a given node */\nfunction throwMultipleComponentError(tNode, first, second) {\n throw new RuntimeError(-300 /* RuntimeErrorCode.MULTIPLE_COMPONENTS_MATCH */, `Multiple components match node with tagname ${tNode.value}: ` +\n `${stringifyForError(first)} and ` +\n `${stringifyForError(second)}`);\n}\n/** Throws an ExpressionChangedAfterChecked error if checkNoChanges mode is on. */\nfunction throwErrorIfNoChangesMode(creationMode, oldValue, currValue, propName, lView) {\n const hostComponentDef = getDeclarationComponentDef(lView);\n const componentClassName = hostComponentDef?.type?.name;\n const field = propName ? ` for '${propName}'` : '';\n let msg = `ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value${field}: '${formatValue(oldValue)}'. Current value: '${formatValue(currValue)}'.${componentClassName ? ` Expression location: ${componentClassName} component` : ''}`;\n if (creationMode) {\n msg +=\n ` It seems like the view has been created after its parent and its children have been dirty checked.` +\n ` Has it been created in a change detection hook?`;\n }\n throw new RuntimeError(-100 /* RuntimeErrorCode.EXPRESSION_CHANGED_AFTER_CHECKED */, msg);\n}\nfunction formatValue(value) {\n let strValue = String(value);\n // JSON.stringify will throw on circular references\n try {\n if (Array.isArray(value) || strValue === '[object Object]') {\n strValue = JSON.stringify(value);\n }\n }\n catch (error) { }\n return strValue.length > VALUE_STRING_LENGTH_LIMIT\n ? strValue.substring(0, VALUE_STRING_LENGTH_LIMIT) + '…'\n : strValue;\n}\nfunction constructDetailsForInterpolation(lView, rootIndex, expressionIndex, meta, changedValue) {\n const [propName, prefix, ...chunks] = meta.split(INTERPOLATION_DELIMITER);\n let oldValue = prefix, newValue = prefix;\n for (let i = 0; i < chunks.length; i++) {\n const slotIdx = rootIndex + i;\n oldValue += `${lView[slotIdx]}${chunks[i]}`;\n newValue += `${slotIdx === expressionIndex ? changedValue : lView[slotIdx]}${chunks[i]}`;\n }\n return { propName, oldValue, newValue };\n}\n/**\n * Constructs an object that contains details for the ExpressionChangedAfterItHasBeenCheckedError:\n * - property name (for property bindings or interpolations)\n * - old and new values, enriched using information from metadata\n *\n * More information on the metadata storage format can be found in `storePropertyBindingMetadata`\n * function description.\n */\nfunction getExpressionChangedErrorDetails(lView, bindingIndex, oldValue, newValue) {\n const tData = lView[TVIEW].data;\n const metadata = tData[bindingIndex];\n if (typeof metadata === 'string') {\n // metadata for property interpolation\n if (metadata.indexOf(INTERPOLATION_DELIMITER) > -1) {\n return constructDetailsForInterpolation(lView, bindingIndex, bindingIndex, metadata, newValue);\n }\n // metadata for property binding\n return { propName: metadata, oldValue, newValue };\n }\n // metadata is not available for this expression, check if this expression is a part of the\n // property interpolation by going from the current binding index left and look for a string that\n // contains INTERPOLATION_DELIMITER, the layout in tView.data for this case will look like this:\n // [..., 'id�Prefix � and � suffix', null, null, null, ...]\n if (metadata === null) {\n let idx = bindingIndex - 1;\n while (typeof tData[idx] !== 'string' && tData[idx + 1] === null) {\n idx--;\n }\n const meta = tData[idx];\n if (typeof meta === 'string') {\n const matches = meta.match(new RegExp(INTERPOLATION_DELIMITER, 'g'));\n // first interpolation delimiter separates property name from interpolation parts (in case of\n // property interpolations), so we subtract one from total number of found delimiters\n if (matches && matches.length - 1 > bindingIndex - idx) {\n return constructDetailsForInterpolation(lView, idx, bindingIndex, meta, newValue);\n }\n }\n }\n return { propName: undefined, oldValue, newValue };\n}\n\n/** Flags describing an input for a directive. */\nvar InputFlags;\n(function (InputFlags) {\n InputFlags[InputFlags[\"None\"] = 0] = \"None\";\n InputFlags[InputFlags[\"SignalBased\"] = 1] = \"SignalBased\";\n InputFlags[InputFlags[\"HasDecoratorInputTransform\"] = 2] = \"HasDecoratorInputTransform\";\n})(InputFlags || (InputFlags = {}));\n\n/**\n * Returns an index of `classToSearch` in `className` taking token boundaries into account.\n *\n * `classIndexOf('AB A', 'A', 0)` will be 3 (not 0 since `AB!==A`)\n *\n * @param className A string containing classes (whitespace separated)\n * @param classToSearch A class name to locate\n * @param startingIndex Starting location of search\n * @returns an index of the located class (or -1 if not found)\n */\nfunction classIndexOf(className, classToSearch, startingIndex) {\n ngDevMode && assertNotEqual(classToSearch, '', 'can not look for \"\" string.');\n let end = className.length;\n while (true) {\n const foundIndex = className.indexOf(classToSearch, startingIndex);\n if (foundIndex === -1)\n return foundIndex;\n if (foundIndex === 0 || className.charCodeAt(foundIndex - 1) <= 32 /* CharCode.SPACE */) {\n // Ensure that it has leading whitespace\n const length = classToSearch.length;\n if (foundIndex + length === end ||\n className.charCodeAt(foundIndex + length) <= 32 /* CharCode.SPACE */) {\n // Ensure that it has trailing whitespace\n return foundIndex;\n }\n }\n // False positive, keep searching from where we left off.\n startingIndex = foundIndex + 1;\n }\n}\n\nconst NG_TEMPLATE_SELECTOR = 'ng-template';\n/**\n * Search the `TAttributes` to see if it contains `cssClassToMatch` (case insensitive)\n *\n * @param tNode static data of the node to match\n * @param attrs `TAttributes` to search through.\n * @param cssClassToMatch class to match (lowercase)\n * @param isProjectionMode Whether or not class matching should look into the attribute `class` in\n * addition to the `AttributeMarker.Classes`.\n */\nfunction isCssClassMatching(tNode, attrs, cssClassToMatch, isProjectionMode) {\n ngDevMode &&\n assertEqual(cssClassToMatch, cssClassToMatch.toLowerCase(), 'Class name expected to be lowercase.');\n let i = 0;\n if (isProjectionMode) {\n for (; i < attrs.length && typeof attrs[i] === 'string'; i += 2) {\n // Search for an implicit `class` attribute and check if its value matches `cssClassToMatch`.\n if (attrs[i] === 'class' &&\n classIndexOf(attrs[i + 1].toLowerCase(), cssClassToMatch, 0) !== -1) {\n return true;\n }\n }\n }\n else if (isInlineTemplate(tNode)) {\n // Matching directives (i.e. when not matching for projection mode) should not consider the\n // class bindings that are present on inline templates, as those class bindings only target\n // the root node of the template, not the template itself.\n return false;\n }\n // Resume the search for classes after the `Classes` marker.\n i = attrs.indexOf(1 /* AttributeMarker.Classes */, i);\n if (i > -1) {\n // We found the classes section. Start searching for the class.\n let item;\n while (++i < attrs.length && typeof (item = attrs[i]) === 'string') {\n if (item.toLowerCase() === cssClassToMatch) {\n return true;\n }\n }\n }\n return false;\n}\n/**\n * Checks whether the `tNode` represents an inline template (e.g. `*ngFor`).\n *\n * @param tNode current TNode\n */\nfunction isInlineTemplate(tNode) {\n return tNode.type === 4 /* TNodeType.Container */ && tNode.value !== NG_TEMPLATE_SELECTOR;\n}\n/**\n * Function that checks whether a given tNode matches tag-based selector and has a valid type.\n *\n * Matching can be performed in 2 modes: projection mode (when we project nodes) and regular\n * directive matching mode:\n * - in the \"directive matching\" mode we do _not_ take TContainer's tagName into account if it is\n * different from NG_TEMPLATE_SELECTOR (value different from NG_TEMPLATE_SELECTOR indicates that a\n * tag name was extracted from * syntax so we would match the same directive twice);\n * - in the \"projection\" mode, we use a tag name potentially extracted from the * syntax processing\n * (applicable to TNodeType.Container only).\n */\nfunction hasTagAndTypeMatch(tNode, currentSelector, isProjectionMode) {\n const tagNameToCompare = tNode.type === 4 /* TNodeType.Container */ && !isProjectionMode ? NG_TEMPLATE_SELECTOR : tNode.value;\n return currentSelector === tagNameToCompare;\n}\n/**\n * A utility function to match an Ivy node static data against a simple CSS selector\n *\n * @param tNode static data of the node to match\n * @param selector The selector to try matching against the node.\n * @param isProjectionMode if `true` we are matching for content projection, otherwise we are doing\n * directive matching.\n * @returns true if node matches the selector.\n */\nfunction isNodeMatchingSelector(tNode, selector, isProjectionMode) {\n ngDevMode && assertDefined(selector[0], 'Selector should have a tag name');\n let mode = 4 /* SelectorFlags.ELEMENT */;\n const nodeAttrs = tNode.attrs;\n // Find the index of first attribute that has no value, only a name.\n const nameOnlyMarkerIdx = nodeAttrs !== null ? getNameOnlyMarkerIndex(nodeAttrs) : 0;\n // When processing \":not\" selectors, we skip to the next \":not\" if the\n // current one doesn't match\n let skipToNextSelector = false;\n for (let i = 0; i < selector.length; i++) {\n const current = selector[i];\n if (typeof current === 'number') {\n // If we finish processing a :not selector and it hasn't failed, return false\n if (!skipToNextSelector && !isPositive(mode) && !isPositive(current)) {\n return false;\n }\n // If we are skipping to the next :not() and this mode flag is positive,\n // it's a part of the current :not() selector, and we should keep skipping\n if (skipToNextSelector && isPositive(current))\n continue;\n skipToNextSelector = false;\n mode = current | (mode & 1 /* SelectorFlags.NOT */);\n continue;\n }\n if (skipToNextSelector)\n continue;\n if (mode & 4 /* SelectorFlags.ELEMENT */) {\n mode = 2 /* SelectorFlags.ATTRIBUTE */ | (mode & 1 /* SelectorFlags.NOT */);\n if ((current !== '' && !hasTagAndTypeMatch(tNode, current, isProjectionMode)) ||\n (current === '' && selector.length === 1)) {\n if (isPositive(mode))\n return false;\n skipToNextSelector = true;\n }\n }\n else if (mode & 8 /* SelectorFlags.CLASS */) {\n if (nodeAttrs === null || !isCssClassMatching(tNode, nodeAttrs, current, isProjectionMode)) {\n if (isPositive(mode))\n return false;\n skipToNextSelector = true;\n }\n }\n else {\n const selectorAttrValue = selector[++i];\n const attrIndexInNode = findAttrIndexInNode(current, nodeAttrs, isInlineTemplate(tNode), isProjectionMode);\n if (attrIndexInNode === -1) {\n if (isPositive(mode))\n return false;\n skipToNextSelector = true;\n continue;\n }\n if (selectorAttrValue !== '') {\n let nodeAttrValue;\n if (attrIndexInNode > nameOnlyMarkerIdx) {\n nodeAttrValue = '';\n }\n else {\n ngDevMode &&\n assertNotEqual(nodeAttrs[attrIndexInNode], 0 /* AttributeMarker.NamespaceURI */, 'We do not match directives on namespaced attributes');\n // we lowercase the attribute value to be able to match\n // selectors without case-sensitivity\n // (selectors are already in lowercase when generated)\n nodeAttrValue = nodeAttrs[attrIndexInNode + 1].toLowerCase();\n }\n if (mode & 2 /* SelectorFlags.ATTRIBUTE */ && selectorAttrValue !== nodeAttrValue) {\n if (isPositive(mode))\n return false;\n skipToNextSelector = true;\n }\n }\n }\n }\n return isPositive(mode) || skipToNextSelector;\n}\nfunction isPositive(mode) {\n return (mode & 1 /* SelectorFlags.NOT */) === 0;\n}\n/**\n * Examines the attribute's definition array for a node to find the index of the\n * attribute that matches the given `name`.\n *\n * NOTE: This will not match namespaced attributes.\n *\n * Attribute matching depends upon `isInlineTemplate` and `isProjectionMode`.\n * The following table summarizes which types of attributes we attempt to match:\n *\n * ===========================================================================================================\n * Modes | Normal Attributes | Bindings Attributes | Template Attributes | I18n\n * Attributes\n * ===========================================================================================================\n * Inline + Projection | YES | YES | NO | YES\n * -----------------------------------------------------------------------------------------------------------\n * Inline + Directive | NO | NO | YES | NO\n * -----------------------------------------------------------------------------------------------------------\n * Non-inline + Projection | YES | YES | NO | YES\n * -----------------------------------------------------------------------------------------------------------\n * Non-inline + Directive | YES | YES | NO | YES\n * ===========================================================================================================\n *\n * @param name the name of the attribute to find\n * @param attrs the attribute array to examine\n * @param isInlineTemplate true if the node being matched is an inline template (e.g. `*ngFor`)\n * rather than a manually expanded template node (e.g `<ng-template>`).\n * @param isProjectionMode true if we are matching against content projection otherwise we are\n * matching against directives.\n */\nfunction findAttrIndexInNode(name, attrs, isInlineTemplate, isProjectionMode) {\n if (attrs === null)\n return -1;\n let i = 0;\n if (isProjectionMode || !isInlineTemplate) {\n let bindingsMode = false;\n while (i < attrs.length) {\n const maybeAttrName = attrs[i];\n if (maybeAttrName === name) {\n return i;\n }\n else if (maybeAttrName === 3 /* AttributeMarker.Bindings */ ||\n maybeAttrName === 6 /* AttributeMarker.I18n */) {\n bindingsMode = true;\n }\n else if (maybeAttrName === 1 /* AttributeMarker.Classes */ ||\n maybeAttrName === 2 /* AttributeMarker.Styles */) {\n let value = attrs[++i];\n // We should skip classes here because we have a separate mechanism for\n // matching classes in projection mode.\n while (typeof value === 'string') {\n value = attrs[++i];\n }\n continue;\n }\n else if (maybeAttrName === 4 /* AttributeMarker.Template */) {\n // We do not care about Template attributes in this scenario.\n break;\n }\n else if (maybeAttrName === 0 /* AttributeMarker.NamespaceURI */) {\n // Skip the whole namespaced attribute and value. This is by design.\n i += 4;\n continue;\n }\n // In binding mode there are only names, rather than name-value pairs.\n i += bindingsMode ? 1 : 2;\n }\n // We did not match the attribute\n return -1;\n }\n else {\n return matchTemplateAttribute(attrs, name);\n }\n}\nfunction isNodeMatchingSelectorList(tNode, selector, isProjectionMode = false) {\n for (let i = 0; i < selector.length; i++) {\n if (isNodeMatchingSelector(tNode, selector[i], isProjectionMode)) {\n return true;\n }\n }\n return false;\n}\nfunction getProjectAsAttrValue(tNode) {\n const nodeAttrs = tNode.attrs;\n if (nodeAttrs != null) {\n const ngProjectAsAttrIdx = nodeAttrs.indexOf(5 /* AttributeMarker.ProjectAs */);\n // only check for ngProjectAs in attribute names, don't accidentally match attribute's value\n // (attribute names are stored at even indexes)\n if ((ngProjectAsAttrIdx & 1) === 0) {\n return nodeAttrs[ngProjectAsAttrIdx + 1];\n }\n }\n return null;\n}\nfunction getNameOnlyMarkerIndex(nodeAttrs) {\n for (let i = 0; i < nodeAttrs.length; i++) {\n const nodeAttr = nodeAttrs[i];\n if (isNameOnlyAttributeMarker(nodeAttr)) {\n return i;\n }\n }\n return nodeAttrs.length;\n}\nfunction matchTemplateAttribute(attrs, name) {\n let i = attrs.indexOf(4 /* AttributeMarker.Template */);\n if (i > -1) {\n i++;\n while (i < attrs.length) {\n const attr = attrs[i];\n // Return in case we checked all template attrs and are switching to the next section in the\n // attrs array (that starts with a number that represents an attribute marker).\n if (typeof attr === 'number')\n return -1;\n if (attr === name)\n return i;\n i++;\n }\n }\n return -1;\n}\n/**\n * Checks whether a selector is inside a CssSelectorList\n * @param selector Selector to be checked.\n * @param list List in which to look for the selector.\n */\nfunction isSelectorInSelectorList(selector, list) {\n selectorListLoop: for (let i = 0; i < list.length; i++) {\n const currentSelectorInList = list[i];\n if (selector.length !== currentSelectorInList.length) {\n continue;\n }\n for (let j = 0; j < selector.length; j++) {\n if (selector[j] !== currentSelectorInList[j]) {\n continue selectorListLoop;\n }\n }\n return true;\n }\n return false;\n}\nfunction maybeWrapInNotSelector(isNegativeMode, chunk) {\n return isNegativeMode ? ':not(' + chunk.trim() + ')' : chunk;\n}\nfunction stringifyCSSSelector(selector) {\n let result = selector[0];\n let i = 1;\n let mode = 2 /* SelectorFlags.ATTRIBUTE */;\n let currentChunk = '';\n let isNegativeMode = false;\n while (i < selector.length) {\n let valueOrMarker = selector[i];\n if (typeof valueOrMarker === 'string') {\n if (mode & 2 /* SelectorFlags.ATTRIBUTE */) {\n const attrValue = selector[++i];\n currentChunk +=\n '[' + valueOrMarker + (attrValue.length > 0 ? '=\"' + attrValue + '\"' : '') + ']';\n }\n else if (mode & 8 /* SelectorFlags.CLASS */) {\n currentChunk += '.' + valueOrMarker;\n }\n else if (mode & 4 /* SelectorFlags.ELEMENT */) {\n currentChunk += ' ' + valueOrMarker;\n }\n }\n else {\n //\n // Append current chunk to the final result in case we come across SelectorFlag, which\n // indicates that the previous section of a selector is over. We need to accumulate content\n // between flags to make sure we wrap the chunk later in :not() selector if needed, e.g.\n // ```\n // ['', Flags.CLASS, '.classA', Flags.CLASS | Flags.NOT, '.classB', '.classC']\n // ```\n // should be transformed to `.classA :not(.classB .classC)`.\n //\n // Note: for negative selector part, we accumulate content between flags until we find the\n // next negative flag. This is needed to support a case where `:not()` rule contains more than\n // one chunk, e.g. the following selector:\n // ```\n // ['', Flags.ELEMENT | Flags.NOT, 'p', Flags.CLASS, 'foo', Flags.CLASS | Flags.NOT, 'bar']\n // ```\n // should be stringified to `:not(p.foo) :not(.bar)`\n //\n if (currentChunk !== '' && !isPositive(valueOrMarker)) {\n result += maybeWrapInNotSelector(isNegativeMode, currentChunk);\n currentChunk = '';\n }\n mode = valueOrMarker;\n // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative\n // mode is maintained for remaining chunks of a selector.\n isNegativeMode = isNegativeMode || !isPositive(mode);\n }\n i++;\n }\n if (currentChunk !== '') {\n result += maybeWrapInNotSelector(isNegativeMode, currentChunk);\n }\n return result;\n}\n/**\n * Generates string representation of CSS selector in parsed form.\n *\n * ComponentDef and DirectiveDef are generated with the selector in parsed form to avoid doing\n * additional parsing at runtime (for example, for directive matching). However in some cases (for\n * example, while bootstrapping a component), a string version of the selector is required to query\n * for the host element on the page. This function takes the parsed form of a selector and returns\n * its string representation.\n *\n * @param selectorList selector in parsed form\n * @returns string representation of a given selector\n */\nfunction stringifyCSSSelectorList(selectorList) {\n return selectorList.map(stringifyCSSSelector).join(',');\n}\n/**\n * Extracts attributes and classes information from a given CSS selector.\n *\n * This function is used while creating a component dynamically. In this case, the host element\n * (that is created dynamically) should contain attributes and classes specified in component's CSS\n * selector.\n *\n * @param selector CSS selector in parsed form (in a form of array)\n * @returns object with `attrs` and `classes` fields that contain extracted information\n */\nfunction extractAttrsAndClassesFromSelector(selector) {\n const attrs = [];\n const classes = [];\n let i = 1;\n let mode = 2 /* SelectorFlags.ATTRIBUTE */;\n while (i < selector.length) {\n let valueOrMarker = selector[i];\n if (typeof valueOrMarker === 'string') {\n if (mode === 2 /* SelectorFlags.ATTRIBUTE */) {\n if (valueOrMarker !== '') {\n attrs.push(valueOrMarker, selector[++i]);\n }\n }\n else if (mode === 8 /* SelectorFlags.CLASS */) {\n classes.push(valueOrMarker);\n }\n }\n else {\n // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative\n // mode is maintained for remaining chunks of a selector. Since attributes and classes are\n // extracted only for \"positive\" part of the selector, we can stop here.\n if (!isPositive(mode))\n break;\n mode = valueOrMarker;\n }\n i++;\n }\n if (classes.length) {\n attrs.push(1 /* AttributeMarker.Classes */, ...classes);\n }\n return attrs;\n}\n\n/** A special value which designates that a value has not changed. */\nconst NO_CHANGE = typeof ngDevMode === 'undefined' || ngDevMode ? { __brand__: 'NO_CHANGE' } : {};\n\nfunction createTextNode(renderer, value) {\n ngDevMode && ngDevMode.rendererCreateTextNode++;\n ngDevMode && ngDevMode.rendererSetText++;\n return renderer.createText(value);\n}\nfunction updateTextNode(renderer, rNode, value) {\n ngDevMode && ngDevMode.rendererSetText++;\n renderer.setValue(rNode, value);\n}\nfunction createCommentNode(renderer, value) {\n ngDevMode && ngDevMode.rendererCreateComment++;\n return renderer.createComment(escapeCommentText(value));\n}\n/**\n * Creates a native element from a tag name, using a renderer.\n * @param renderer A renderer to use\n * @param name the tag name\n * @param namespace Optional namespace for element.\n * @returns the element created\n */\nfunction createElementNode(renderer, name, namespace) {\n ngDevMode && ngDevMode.rendererCreateElement++;\n return renderer.createElement(name, namespace);\n}\n/**\n * Inserts a native node before another native node for a given parent.\n * This is a utility function that can be used when native nodes were determined.\n */\nfunction nativeInsertBefore(renderer, parent, child, beforeNode, isMove) {\n ngDevMode && ngDevMode.rendererInsertBefore++;\n renderer.insertBefore(parent, child, beforeNode, isMove);\n}\nfunction nativeAppendChild(renderer, parent, child) {\n ngDevMode && ngDevMode.rendererAppendChild++;\n ngDevMode && assertDefined(parent, 'parent node must be defined');\n renderer.appendChild(parent, child);\n}\nfunction nativeAppendOrInsertBefore(renderer, parent, child, beforeNode, isMove) {\n if (beforeNode !== null) {\n nativeInsertBefore(renderer, parent, child, beforeNode, isMove);\n }\n else {\n nativeAppendChild(renderer, parent, child);\n }\n}\n/**\n * Removes a native node itself using a given renderer. To remove the node we are looking up its\n * parent from the native tree as not all platforms / browsers support the equivalent of\n * node.remove().\n *\n * @param renderer A renderer to be used\n * @param rNode The native node that should be removed\n * @param isHostElement A flag indicating if a node to be removed is a host of a component.\n */\nfunction nativeRemoveNode(renderer, rNode, isHostElement) {\n ngDevMode && ngDevMode.rendererRemoveNode++;\n renderer.removeChild(null, rNode, isHostElement);\n}\n/**\n * Clears the contents of a given RElement.\n *\n * @param rElement the native RElement to be cleared\n */\nfunction clearElementContents(rElement) {\n rElement.textContent = '';\n}\n/**\n * Write `cssText` to `RElement`.\n *\n * This function does direct write without any reconciliation. Used for writing initial values, so\n * that static styling values do not pull in the style parser.\n *\n * @param renderer Renderer to use\n * @param element The element which needs to be updated.\n * @param newValue The new class list to write.\n */\nfunction writeDirectStyle(renderer, element, newValue) {\n ngDevMode && assertString(newValue, \"'newValue' should be a string\");\n renderer.setAttribute(element, 'style', newValue);\n ngDevMode && ngDevMode.rendererSetStyle++;\n}\n/**\n * Write `className` to `RElement`.\n *\n * This function does direct write without any reconciliation. Used for writing initial values, so\n * that static styling values do not pull in the style parser.\n *\n * @param renderer Renderer to use\n * @param element The element which needs to be updated.\n * @param newValue The new class list to write.\n */\nfunction writeDirectClass(renderer, element, newValue) {\n ngDevMode && assertString(newValue, \"'newValue' should be a string\");\n if (newValue === '') {\n // There are tests in `google3` which expect `element.getAttribute('class')` to be `null`.\n renderer.removeAttribute(element, 'class');\n }\n else {\n renderer.setAttribute(element, 'class', newValue);\n }\n ngDevMode && ngDevMode.rendererSetClassName++;\n}\n/** Sets up the static DOM attributes on an `RNode`. */\nfunction setupStaticAttributes(renderer, element, tNode) {\n const { mergedAttrs, classes, styles } = tNode;\n if (mergedAttrs !== null) {\n setUpAttributes(renderer, element, mergedAttrs);\n }\n if (classes !== null) {\n writeDirectClass(renderer, element, classes);\n }\n if (styles !== null) {\n writeDirectStyle(renderer, element, styles);\n }\n}\n\n/**\n * Advances to an element for later binding instructions.\n *\n * Used in conjunction with instructions like {@link property} to act on elements with specified\n * indices, for example those created with {@link element} or {@link elementStart}.\n *\n * ```ts\n * (rf: RenderFlags, ctx: any) => {\n * if (rf & 1) {\n * text(0, 'Hello');\n * text(1, 'Goodbye')\n * element(2, 'div');\n * }\n * if (rf & 2) {\n * advance(2); // Advance twice to the <div>.\n * property('title', 'test');\n * }\n * }\n * ```\n * @param delta Number of elements to advance forwards by.\n *\n * @codeGenApi\n */\nfunction ɵɵadvance(delta = 1) {\n ngDevMode && assertGreaterThan(delta, 0, 'Can only advance forward');\n selectIndexInternal(getTView(), getLView(), getSelectedIndex() + delta, !!ngDevMode && isInCheckNoChangesMode());\n}\nfunction selectIndexInternal(tView, lView, index, checkNoChangesMode) {\n ngDevMode && assertIndexInDeclRange(lView[TVIEW], index);\n // Flush the initial hooks for elements in the view that have been added up to this point.\n // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n if (!checkNoChangesMode) {\n const hooksInitPhaseCompleted = (lView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === 3 /* InitPhaseState.InitPhaseCompleted */;\n if (hooksInitPhaseCompleted) {\n const preOrderCheckHooks = tView.preOrderCheckHooks;\n if (preOrderCheckHooks !== null) {\n executeCheckHooks(lView, preOrderCheckHooks, index);\n }\n }\n else {\n const preOrderHooks = tView.preOrderHooks;\n if (preOrderHooks !== null) {\n executeInitAndCheckHooks(lView, preOrderHooks, 0 /* InitPhaseState.OnInitHooksToBeRun */, index);\n }\n }\n }\n // We must set the selected index *after* running the hooks, because hooks may have side-effects\n // that cause other template functions to run, thus updating the selected index, which is global\n // state. If we run `setSelectedIndex` *before* we run the hooks, in some cases the selected index\n // will be altered by the time we leave the `ɵɵadvance` instruction.\n setSelectedIndex(index);\n}\n\nfunction ɵɵdirectiveInject(token, flags = InjectFlags.Default) {\n const lView = getLView();\n // Fall back to inject() if view hasn't been created. This situation can happen in tests\n // if inject utilities are used before bootstrapping.\n if (lView === null) {\n // Verify that we will not get into infinite loop.\n ngDevMode && assertInjectImplementationNotEqual(ɵɵdirectiveInject);\n return ɵɵinject(token, flags);\n }\n const tNode = getCurrentTNode();\n const value = getOrCreateInjectable(tNode, lView, resolveForwardRef(token), flags);\n ngDevMode && emitInjectEvent(token, value, flags);\n return value;\n}\n/**\n * Throws an error indicating that a factory function could not be generated by the compiler for a\n * particular class.\n *\n * This instruction allows the actual error message to be optimized away when ngDevMode is turned\n * off, saving bytes of generated code while still providing a good experience in dev mode.\n *\n * The name of the class is not mentioned here, but will be in the generated factory function name\n * and thus in the stack trace.\n *\n * @codeGenApi\n */\nfunction ɵɵinvalidFactory() {\n const msg = ngDevMode\n ? `This constructor was not compatible with Dependency Injection.`\n : 'invalid';\n throw new Error(msg);\n}\n\nfunction writeToDirectiveInput(def, instance, publicName, privateName, flags, value) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n // If we know we are dealing with a signal input, we cache its reference\n // in a tree-shakable way. The input signal node can then be used for\n // value transform execution or actual value updates without introducing\n // additional megamorphic accesses for accessing the instance field.\n let inputSignalNode = null;\n if ((flags & InputFlags.SignalBased) !== 0) {\n const field = instance[privateName];\n inputSignalNode = field[SIGNAL$1];\n }\n // If there is a signal node and a transform, run it before potentially\n // delegating to features like `NgOnChanges`.\n if (inputSignalNode !== null && inputSignalNode.transformFn !== undefined) {\n value = inputSignalNode.transformFn(value);\n }\n // If there is a decorator input transform, run it.\n if ((flags & InputFlags.HasDecoratorInputTransform) !== 0) {\n value = def.inputTransforms[privateName].call(instance, value);\n }\n if (def.setInput !== null) {\n def.setInput(instance, inputSignalNode, value, publicName, privateName);\n }\n else {\n applyValueToInputField(instance, inputSignalNode, privateName, value);\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n}\n\nfunction createLView(parentLView, tView, context, flags, host, tHostNode, environment, renderer, injector, embeddedViewInjector, hydrationInfo) {\n const lView = tView.blueprint.slice();\n lView[HOST] = host;\n lView[FLAGS] =\n flags |\n 4 /* LViewFlags.CreationMode */ |\n 128 /* LViewFlags.Attached */ |\n 8 /* LViewFlags.FirstLViewPass */ |\n 64 /* LViewFlags.Dirty */ |\n 1024 /* LViewFlags.RefreshView */;\n if (embeddedViewInjector !== null ||\n (parentLView && parentLView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */)) {\n lView[FLAGS] |= 2048 /* LViewFlags.HasEmbeddedViewInjector */;\n }\n resetPreOrderHookFlags(lView);\n ngDevMode && tView.declTNode && parentLView && assertTNodeForLView(tView.declTNode, parentLView);\n lView[PARENT] = lView[DECLARATION_VIEW] = parentLView;\n lView[CONTEXT] = context;\n lView[ENVIRONMENT] = (environment || (parentLView && parentLView[ENVIRONMENT]));\n ngDevMode && assertDefined(lView[ENVIRONMENT], 'LViewEnvironment is required');\n lView[RENDERER] = (renderer || (parentLView && parentLView[RENDERER]));\n ngDevMode && assertDefined(lView[RENDERER], 'Renderer is required');\n lView[INJECTOR] = injector || (parentLView && parentLView[INJECTOR]) || null;\n lView[T_HOST] = tHostNode;\n lView[ID] = getUniqueLViewId();\n lView[HYDRATION] = hydrationInfo;\n lView[EMBEDDED_VIEW_INJECTOR] = embeddedViewInjector;\n ngDevMode &&\n assertEqual(tView.type == 2 /* TViewType.Embedded */ ? parentLView !== null : true, true, 'Embedded views must have parentLView');\n lView[DECLARATION_COMPONENT_VIEW] =\n tView.type == 2 /* TViewType.Embedded */ ? parentLView[DECLARATION_COMPONENT_VIEW] : lView;\n return lView;\n}\n/**\n * When elements are created dynamically after a view blueprint is created (e.g. through\n * i18nApply()), we need to adjust the blueprint for future\n * template passes.\n *\n * @param tView `TView` associated with `LView`\n * @param lView The `LView` containing the blueprint to adjust\n * @param numSlotsToAlloc The number of slots to alloc in the LView, should be >0\n * @param initialValue Initial value to store in blueprint\n */\nfunction allocExpando(tView, lView, numSlotsToAlloc, initialValue) {\n if (numSlotsToAlloc === 0)\n return -1;\n if (ngDevMode) {\n assertFirstCreatePass(tView);\n assertSame(tView, lView[TVIEW], '`LView` must be associated with `TView`!');\n assertEqual(tView.data.length, lView.length, 'Expecting LView to be same size as TView');\n assertEqual(tView.data.length, tView.blueprint.length, 'Expecting Blueprint to be same size as TView');\n assertFirstUpdatePass(tView);\n }\n const allocIdx = lView.length;\n for (let i = 0; i < numSlotsToAlloc; i++) {\n lView.push(initialValue);\n tView.blueprint.push(initialValue);\n tView.data.push(null);\n }\n return allocIdx;\n}\nfunction executeTemplate(tView, lView, templateFn, rf, context) {\n const prevSelectedIndex = getSelectedIndex();\n const isUpdatePhase = rf & 2 /* RenderFlags.Update */;\n try {\n setSelectedIndex(-1);\n if (isUpdatePhase && lView.length > HEADER_OFFSET) {\n // When we're updating, inherently select 0 so we don't\n // have to generate that instruction for most update blocks.\n selectIndexInternal(tView, lView, HEADER_OFFSET, !!ngDevMode && isInCheckNoChangesMode());\n }\n const preHookType = isUpdatePhase\n ? 2 /* ProfilerEvent.TemplateUpdateStart */\n : 0 /* ProfilerEvent.TemplateCreateStart */;\n profiler(preHookType, context);\n templateFn(rf, context);\n }\n finally {\n setSelectedIndex(prevSelectedIndex);\n const postHookType = isUpdatePhase\n ? 3 /* ProfilerEvent.TemplateUpdateEnd */\n : 1 /* ProfilerEvent.TemplateCreateEnd */;\n profiler(postHookType, context);\n }\n}\n/**\n * Creates directive instances.\n */\nfunction createDirectivesInstancesInInstruction(tView, lView, tNode) {\n if (!getBindingsEnabled())\n return;\n attachPatchData(getNativeByTNode(tNode, lView), lView);\n createDirectivesInstances(tView, lView, tNode);\n}\n/**\n * Creates directive instances.\n */\nfunction createDirectivesInstances(tView, lView, tNode) {\n instantiateAllDirectives(tView, lView, tNode);\n if ((tNode.flags & 64 /* TNodeFlags.hasHostBindings */) === 64 /* TNodeFlags.hasHostBindings */) {\n invokeDirectivesHostBindings(tView, lView, tNode);\n }\n}\n/**\n * Takes a list of local names and indices and pushes the resolved local variable values\n * to LView in the same order as they are loaded in the template with load().\n */\nfunction saveResolvedLocalsInData(viewData, tNode, localRefExtractor = getNativeByTNode) {\n const localNames = tNode.localNames;\n if (localNames !== null) {\n let localIndex = tNode.index + 1;\n for (let i = 0; i < localNames.length; i += 2) {\n const index = localNames[i + 1];\n const value = index === -1\n ? localRefExtractor(tNode, viewData)\n : viewData[index];\n viewData[localIndex++] = value;\n }\n }\n}\n/**\n * Gets TView from a template function or creates a new TView\n * if it doesn't already exist.\n *\n * @param def ComponentDef\n * @returns TView\n */\nfunction getOrCreateComponentTView(def) {\n const tView = def.tView;\n // Create a TView if there isn't one, or recreate it if the first create pass didn't\n // complete successfully since we can't know for sure whether it's in a usable shape.\n if (tView === null || tView.incompleteFirstPass) {\n // Declaration node here is null since this function is called when we dynamically create a\n // component and hence there is no declaration.\n const declTNode = null;\n return (def.tView = createTView(1 /* TViewType.Component */, declTNode, def.template, def.decls, def.vars, def.directiveDefs, def.pipeDefs, def.viewQuery, def.schemas, def.consts, def.id));\n }\n return tView;\n}\n/**\n * Creates a TView instance\n *\n * @param type Type of `TView`.\n * @param declTNode Declaration location of this `TView`.\n * @param templateFn Template function\n * @param decls The number of nodes, local refs, and pipes in this template\n * @param directives Registry of directives for this view\n * @param pipes Registry of pipes for this view\n * @param viewQuery View queries for this view\n * @param schemas Schemas for this view\n * @param consts Constants for this view\n */\nfunction createTView(type, declTNode, templateFn, decls, vars, directives, pipes, viewQuery, schemas, constsOrFactory, ssrId) {\n ngDevMode && ngDevMode.tView++;\n const bindingStartIndex = HEADER_OFFSET + decls;\n // This length does not yet contain host bindings from child directives because at this point,\n // we don't know which directives are active on this template. As soon as a directive is matched\n // that has a host binding, we will update the blueprint with that def's hostVars count.\n const initialViewLength = bindingStartIndex + vars;\n const blueprint = createViewBlueprint(bindingStartIndex, initialViewLength);\n const consts = typeof constsOrFactory === 'function' ? constsOrFactory() : constsOrFactory;\n const tView = (blueprint[TVIEW] = {\n type: type,\n blueprint: blueprint,\n template: templateFn,\n queries: null,\n viewQuery: viewQuery,\n declTNode: declTNode,\n data: blueprint.slice().fill(null, bindingStartIndex),\n bindingStartIndex: bindingStartIndex,\n expandoStartIndex: initialViewLength,\n hostBindingOpCodes: null,\n firstCreatePass: true,\n firstUpdatePass: true,\n staticViewQueries: false,\n staticContentQueries: false,\n preOrderHooks: null,\n preOrderCheckHooks: null,\n contentHooks: null,\n contentCheckHooks: null,\n viewHooks: null,\n viewCheckHooks: null,\n destroyHooks: null,\n cleanup: null,\n contentQueries: null,\n components: null,\n directiveRegistry: typeof directives === 'function' ? directives() : directives,\n pipeRegistry: typeof pipes === 'function' ? pipes() : pipes,\n firstChild: null,\n schemas: schemas,\n consts: consts,\n incompleteFirstPass: false,\n ssrId,\n });\n if (ngDevMode) {\n // For performance reasons it is important that the tView retains the same shape during runtime.\n // (To make sure that all of the code is monomorphic.) For this reason we seal the object to\n // prevent class transitions.\n Object.seal(tView);\n }\n return tView;\n}\nfunction createViewBlueprint(bindingStartIndex, initialViewLength) {\n const blueprint = [];\n for (let i = 0; i < initialViewLength; i++) {\n blueprint.push(i < bindingStartIndex ? null : NO_CHANGE);\n }\n return blueprint;\n}\n/**\n * Locates the host native element, used for bootstrapping existing nodes into rendering pipeline.\n *\n * @param renderer the renderer used to locate the element.\n * @param elementOrSelector Render element or CSS selector to locate the element.\n * @param encapsulation View Encapsulation defined for component that requests host element.\n * @param injector Root view injector instance.\n */\nfunction locateHostElement(renderer, elementOrSelector, encapsulation, injector) {\n // Note: we use default value for the `PRESERVE_HOST_CONTENT` here even though it's a\n // tree-shakable one (providedIn:'root'). This code path can be triggered during dynamic\n // component creation (after calling ViewContainerRef.createComponent) when an injector\n // instance can be provided. The injector instance might be disconnected from the main DI\n // tree, thus the `PRESERVE_HOST_CONTENT` would not be able to instantiate. In this case, the\n // default value will be used.\n const preserveHostContent = injector.get(PRESERVE_HOST_CONTENT, PRESERVE_HOST_CONTENT_DEFAULT);\n // When using native Shadow DOM, do not clear host element to allow native slot\n // projection.\n const preserveContent = preserveHostContent || encapsulation === ViewEncapsulation.ShadowDom;\n const rootElement = renderer.selectRootElement(elementOrSelector, preserveContent);\n applyRootElementTransform(rootElement);\n return rootElement;\n}\n/**\n * Applies any root element transformations that are needed. If hydration is enabled,\n * this will process corrupted text nodes.\n *\n * @param rootElement the app root HTML Element\n */\nfunction applyRootElementTransform(rootElement) {\n _applyRootElementTransformImpl(rootElement);\n}\n/**\n * Reference to a function that applies transformations to the root HTML element\n * of an app. When hydration is enabled, this processes any corrupt text nodes\n * so they are properly hydratable on the client.\n *\n * @param rootElement the app root HTML Element\n */\nlet _applyRootElementTransformImpl = () => null;\n/**\n * Processes text node markers before hydration begins. This replaces any special comment\n * nodes that were added prior to serialization are swapped out to restore proper text\n * nodes before hydration.\n *\n * @param rootElement the app root HTML Element\n */\nfunction applyRootElementTransformImpl(rootElement) {\n if (hasSkipHydrationAttrOnRElement(rootElement)) {\n // Handle a situation when the `ngSkipHydration` attribute is applied\n // to the root node of an application. In this case, we should clear\n // the contents and render everything from scratch.\n clearElementContents(rootElement);\n }\n else {\n processTextNodeMarkersBeforeHydration(rootElement);\n }\n}\n/**\n * Sets the implementation for the `applyRootElementTransform` function.\n */\nfunction enableApplyRootElementTransformImpl() {\n _applyRootElementTransformImpl = applyRootElementTransformImpl;\n}\nfunction captureNodeBindings(mode, aliasMap, directiveIndex, bindingsResult, hostDirectiveAliasMap) {\n for (let publicName in aliasMap) {\n if (!aliasMap.hasOwnProperty(publicName)) {\n continue;\n }\n const value = aliasMap[publicName];\n if (value === undefined) {\n continue;\n }\n bindingsResult ??= {};\n let internalName;\n let inputFlags = InputFlags.None;\n // For inputs, the value might be an array capturing additional\n // input flags.\n if (Array.isArray(value)) {\n internalName = value[0];\n inputFlags = value[1];\n }\n else {\n internalName = value;\n }\n // If there are no host directive mappings, we want to remap using the alias map from the\n // definition itself. If there is an alias map, it has two functions:\n // 1. It serves as an allowlist of bindings that are exposed by the host directives. Only the\n // ones inside the host directive map will be exposed on the host.\n // 2. The public name of the property is aliased using the host directive alias map, rather\n // than the alias map from the definition.\n let finalPublicName = publicName;\n if (hostDirectiveAliasMap !== null) {\n // If there is no mapping, it's not part of the allowlist and this input/output\n // is not captured and should be ignored.\n if (!hostDirectiveAliasMap.hasOwnProperty(publicName)) {\n continue;\n }\n finalPublicName = hostDirectiveAliasMap[publicName];\n }\n if (mode === 0 /* CaptureNodeBindingMode.Inputs */) {\n addPropertyBinding(bindingsResult, directiveIndex, finalPublicName, internalName, inputFlags);\n }\n else {\n addPropertyBinding(bindingsResult, directiveIndex, finalPublicName, internalName);\n }\n }\n return bindingsResult;\n}\nfunction addPropertyBinding(bindings, directiveIndex, publicName, internalName, inputFlags) {\n let values;\n if (bindings.hasOwnProperty(publicName)) {\n (values = bindings[publicName]).push(directiveIndex, internalName);\n }\n else {\n values = bindings[publicName] = [directiveIndex, internalName];\n }\n if (inputFlags !== undefined) {\n values.push(inputFlags);\n }\n}\n/**\n * Initializes data structures required to work with directive inputs and outputs.\n * Initialization is done for all directives matched on a given TNode.\n */\nfunction initializeInputAndOutputAliases(tView, tNode, hostDirectiveDefinitionMap) {\n ngDevMode && assertFirstCreatePass(tView);\n const start = tNode.directiveStart;\n const end = tNode.directiveEnd;\n const tViewData = tView.data;\n const tNodeAttrs = tNode.attrs;\n const inputsFromAttrs = [];\n let inputsStore = null;\n let outputsStore = null;\n for (let directiveIndex = start; directiveIndex < end; directiveIndex++) {\n const directiveDef = tViewData[directiveIndex];\n const aliasData = hostDirectiveDefinitionMap\n ? hostDirectiveDefinitionMap.get(directiveDef)\n : null;\n const aliasedInputs = aliasData ? aliasData.inputs : null;\n const aliasedOutputs = aliasData ? aliasData.outputs : null;\n inputsStore = captureNodeBindings(0 /* CaptureNodeBindingMode.Inputs */, directiveDef.inputs, directiveIndex, inputsStore, aliasedInputs);\n outputsStore = captureNodeBindings(1 /* CaptureNodeBindingMode.Outputs */, directiveDef.outputs, directiveIndex, outputsStore, aliasedOutputs);\n // Do not use unbound attributes as inputs to structural directives, since structural\n // directive inputs can only be set using microsyntax (e.g. `<div *dir=\"exp\">`).\n // TODO(FW-1930): microsyntax expressions may also contain unbound/static attributes, which\n // should be set for inline templates.\n const initialInputs = inputsStore !== null && tNodeAttrs !== null && !isInlineTemplate(tNode)\n ? generateInitialInputs(inputsStore, directiveIndex, tNodeAttrs)\n : null;\n inputsFromAttrs.push(initialInputs);\n }\n if (inputsStore !== null) {\n if (inputsStore.hasOwnProperty('class')) {\n tNode.flags |= 8 /* TNodeFlags.hasClassInput */;\n }\n if (inputsStore.hasOwnProperty('style')) {\n tNode.flags |= 16 /* TNodeFlags.hasStyleInput */;\n }\n }\n tNode.initialInputs = inputsFromAttrs;\n tNode.inputs = inputsStore;\n tNode.outputs = outputsStore;\n}\n/**\n * Mapping between attributes names that don't correspond to their element property names.\n *\n * Performance note: this function is written as a series of if checks (instead of, say, a property\n * object lookup) for performance reasons - the series of `if` checks seems to be the fastest way of\n * mapping property names. Do NOT change without benchmarking.\n *\n * Note: this mapping has to be kept in sync with the equally named mapping in the template\n * type-checking machinery of ngtsc.\n */\nfunction mapPropName(name) {\n if (name === 'class')\n return 'className';\n if (name === 'for')\n return 'htmlFor';\n if (name === 'formaction')\n return 'formAction';\n if (name === 'innerHtml')\n return 'innerHTML';\n if (name === 'readonly')\n return 'readOnly';\n if (name === 'tabindex')\n return 'tabIndex';\n return name;\n}\nfunction elementPropertyInternal(tView, tNode, lView, propName, value, renderer, sanitizer, nativeOnly) {\n ngDevMode && assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');\n const element = getNativeByTNode(tNode, lView);\n let inputData = tNode.inputs;\n let dataValue;\n if (!nativeOnly && inputData != null && (dataValue = inputData[propName])) {\n setInputsForProperty(tView, lView, dataValue, propName, value);\n if (isComponentHost(tNode))\n markDirtyIfOnPush(lView, tNode.index);\n if (ngDevMode) {\n setNgReflectProperties(lView, element, tNode.type, dataValue, value);\n }\n }\n else if (tNode.type & 3 /* TNodeType.AnyRNode */) {\n propName = mapPropName(propName);\n if (ngDevMode) {\n validateAgainstEventProperties(propName);\n if (!isPropertyValid(element, propName, tNode.value, tView.schemas)) {\n handleUnknownPropertyError(propName, tNode.value, tNode.type, lView);\n }\n ngDevMode.rendererSetProperty++;\n }\n // It is assumed that the sanitizer is only added when the compiler determines that the\n // property is risky, so sanitization can be done without further checks.\n value = sanitizer != null ? sanitizer(value, tNode.value || '', propName) : value;\n renderer.setProperty(element, propName, value);\n }\n else if (tNode.type & 12 /* TNodeType.AnyContainer */) {\n // If the node is a container and the property didn't\n // match any of the inputs or schemas we should throw.\n if (ngDevMode && !matchingSchemas(tView.schemas, tNode.value)) {\n handleUnknownPropertyError(propName, tNode.value, tNode.type, lView);\n }\n }\n}\n/** If node is an OnPush component, marks its LView dirty. */\nfunction markDirtyIfOnPush(lView, viewIndex) {\n ngDevMode && assertLView(lView);\n const childComponentLView = getComponentLViewByIndex(viewIndex, lView);\n if (!(childComponentLView[FLAGS] & 16 /* LViewFlags.CheckAlways */)) {\n childComponentLView[FLAGS] |= 64 /* LViewFlags.Dirty */;\n }\n}\nfunction setNgReflectProperty(lView, element, type, attrName, value) {\n const renderer = lView[RENDERER];\n attrName = normalizeDebugBindingName(attrName);\n const debugValue = normalizeDebugBindingValue(value);\n if (type & 3 /* TNodeType.AnyRNode */) {\n if (value == null) {\n renderer.removeAttribute(element, attrName);\n }\n else {\n renderer.setAttribute(element, attrName, debugValue);\n }\n }\n else {\n const textContent = escapeCommentText(`bindings=${JSON.stringify({ [attrName]: debugValue }, null, 2)}`);\n renderer.setValue(element, textContent);\n }\n}\nfunction setNgReflectProperties(lView, element, type, dataValue, value) {\n if (type & (3 /* TNodeType.AnyRNode */ | 4 /* TNodeType.Container */)) {\n /**\n * dataValue is an array containing runtime input or output names for the directives:\n * i+0: directive instance index\n * i+1: privateName\n *\n * e.g. [0, 'change', 'change-minified']\n * we want to set the reflected property with the privateName: dataValue[i+1]\n */\n for (let i = 0; i < dataValue.length; i += 3) {\n setNgReflectProperty(lView, element, type, dataValue[i + 1], value);\n }\n }\n}\n/**\n * Resolve the matched directives on a node.\n */\nfunction resolveDirectives(tView, lView, tNode, localRefs) {\n // Please make sure to have explicit type for `exportsMap`. Inferred type triggers bug in\n // tsickle.\n ngDevMode && assertFirstCreatePass(tView);\n if (getBindingsEnabled()) {\n const exportsMap = localRefs === null ? null : { '': -1 };\n const matchedDirectiveDefs = findDirectiveDefMatches(tView, tNode);\n if (matchedDirectiveDefs !== null) {\n const [directiveDefs, hostDirectiveDefs] = resolveHostDirectives(tView, tNode, matchedDirectiveDefs);\n initializeDirectives(tView, lView, tNode, directiveDefs, exportsMap, hostDirectiveDefs);\n }\n if (exportsMap)\n cacheMatchingLocalNames(tNode, localRefs, exportsMap);\n }\n // Merge the template attrs last so that they have the highest priority.\n tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, tNode.attrs);\n}\n/** Initializes the data structures necessary for a list of directives to be instantiated. */\nfunction initializeDirectives(tView, lView, tNode, directives, exportsMap, hostDirectiveDefs) {\n ngDevMode && assertFirstCreatePass(tView);\n // Publishes the directive types to DI so they can be injected. Needs to\n // happen in a separate pass before the TNode flags have been initialized.\n for (let i = 0; i < directives.length; i++) {\n diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, directives[i].type);\n }\n initTNodeFlags(tNode, tView.data.length, directives.length);\n // When the same token is provided by several directives on the same node, some rules apply in\n // the viewEngine:\n // - viewProviders have priority over providers\n // - the last directive in NgModule.declarations has priority over the previous one\n // So to match these rules, the order in which providers are added in the arrays is very\n // important.\n for (let i = 0; i < directives.length; i++) {\n const def = directives[i];\n if (def.providersResolver)\n def.providersResolver(def);\n }\n let preOrderHooksFound = false;\n let preOrderCheckHooksFound = false;\n let directiveIdx = allocExpando(tView, lView, directives.length, null);\n ngDevMode &&\n assertSame(directiveIdx, tNode.directiveStart, 'TNode.directiveStart should point to just allocated space');\n for (let i = 0; i < directives.length; i++) {\n const def = directives[i];\n // Merge the attrs in the order of matches. This assumes that the first directive is the\n // component itself, so that the component has the least priority.\n tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, def.hostAttrs);\n configureViewWithDirective(tView, tNode, lView, directiveIdx, def);\n saveNameToExportMap(directiveIdx, def, exportsMap);\n if (def.contentQueries !== null)\n tNode.flags |= 4 /* TNodeFlags.hasContentQuery */;\n if (def.hostBindings !== null || def.hostAttrs !== null || def.hostVars !== 0)\n tNode.flags |= 64 /* TNodeFlags.hasHostBindings */;\n const lifeCycleHooks = def.type.prototype;\n // Only push a node index into the preOrderHooks array if this is the first\n // pre-order hook found on this node.\n if (!preOrderHooksFound &&\n (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngOnInit || lifeCycleHooks.ngDoCheck)) {\n // We will push the actual hook function into this array later during dir instantiation.\n // We cannot do it now because we must ensure hooks are registered in the same\n // order that directives are created (i.e. injection order).\n (tView.preOrderHooks ??= []).push(tNode.index);\n preOrderHooksFound = true;\n }\n if (!preOrderCheckHooksFound && (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngDoCheck)) {\n (tView.preOrderCheckHooks ??= []).push(tNode.index);\n preOrderCheckHooksFound = true;\n }\n directiveIdx++;\n }\n initializeInputAndOutputAliases(tView, tNode, hostDirectiveDefs);\n}\n/**\n * Add `hostBindings` to the `TView.hostBindingOpCodes`.\n *\n * @param tView `TView` to which the `hostBindings` should be added.\n * @param tNode `TNode` the element which contains the directive\n * @param directiveIdx Directive index in view.\n * @param directiveVarsIdx Where will the directive's vars be stored\n * @param def `ComponentDef`/`DirectiveDef`, which contains the `hostVars`/`hostBindings` to add.\n */\nfunction registerHostBindingOpCodes(tView, tNode, directiveIdx, directiveVarsIdx, def) {\n ngDevMode && assertFirstCreatePass(tView);\n const hostBindings = def.hostBindings;\n if (hostBindings) {\n let hostBindingOpCodes = tView.hostBindingOpCodes;\n if (hostBindingOpCodes === null) {\n hostBindingOpCodes = tView.hostBindingOpCodes = [];\n }\n const elementIndx = ~tNode.index;\n if (lastSelectedElementIdx(hostBindingOpCodes) != elementIndx) {\n // Conditionally add select element so that we are more efficient in execution.\n // NOTE: this is strictly not necessary and it trades code size for runtime perf.\n // (We could just always add it.)\n hostBindingOpCodes.push(elementIndx);\n }\n hostBindingOpCodes.push(directiveIdx, directiveVarsIdx, hostBindings);\n }\n}\n/**\n * Returns the last selected element index in the `HostBindingOpCodes`\n *\n * For perf reasons we don't need to update the selected element index in `HostBindingOpCodes` only\n * if it changes. This method returns the last index (or '0' if not found.)\n *\n * Selected element index are only the ones which are negative.\n */\nfunction lastSelectedElementIdx(hostBindingOpCodes) {\n let i = hostBindingOpCodes.length;\n while (i > 0) {\n const value = hostBindingOpCodes[--i];\n if (typeof value === 'number' && value < 0) {\n return value;\n }\n }\n return 0;\n}\n/**\n * Instantiate all the directives that were previously resolved on the current node.\n */\nfunction instantiateAllDirectives(tView, lView, tNode) {\n const start = tNode.directiveStart;\n const end = tNode.directiveEnd;\n // The component view needs to be created before creating the node injector\n // since it is used to inject some special symbols like `ChangeDetectorRef`.\n if (isComponentHost(tNode)) {\n ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */);\n createComponentLView(lView, tNode, tView.data[start + tNode.componentOffset]);\n }\n if (!tView.firstCreatePass) {\n getOrCreateNodeInjectorForNode(tNode, lView);\n }\n const initialInputs = tNode.initialInputs;\n for (let i = start; i < end; i++) {\n const def = tView.data[i];\n const directive = getNodeInjectable(lView, tView, i, tNode);\n attachPatchData(directive, lView);\n if (initialInputs !== null) {\n setInputsFromAttrs(lView, i - start, directive, def, tNode, initialInputs);\n }\n if (isComponentDef(def)) {\n const componentView = getComponentLViewByIndex(tNode.index, lView);\n componentView[CONTEXT] = getNodeInjectable(lView, tView, i, tNode);\n }\n }\n}\nfunction invokeDirectivesHostBindings(tView, lView, tNode) {\n const start = tNode.directiveStart;\n const end = tNode.directiveEnd;\n const elementIndex = tNode.index;\n const currentDirectiveIndex = getCurrentDirectiveIndex();\n try {\n setSelectedIndex(elementIndex);\n for (let dirIndex = start; dirIndex < end; dirIndex++) {\n const def = tView.data[dirIndex];\n const directive = lView[dirIndex];\n setCurrentDirectiveIndex(dirIndex);\n if (def.hostBindings !== null || def.hostVars !== 0 || def.hostAttrs !== null) {\n invokeHostBindingsInCreationMode(def, directive);\n }\n }\n }\n finally {\n setSelectedIndex(-1);\n setCurrentDirectiveIndex(currentDirectiveIndex);\n }\n}\n/**\n * Invoke the host bindings in creation mode.\n *\n * @param def `DirectiveDef` which may contain the `hostBindings` function.\n * @param directive Instance of directive.\n */\nfunction invokeHostBindingsInCreationMode(def, directive) {\n if (def.hostBindings !== null) {\n def.hostBindings(1 /* RenderFlags.Create */, directive);\n }\n}\n/**\n * Matches the current node against all available selectors.\n * If a component is matched (at most one), it is returned in first position in the array.\n */\nfunction findDirectiveDefMatches(tView, tNode) {\n ngDevMode && assertFirstCreatePass(tView);\n ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */);\n const registry = tView.directiveRegistry;\n let matches = null;\n if (registry) {\n for (let i = 0; i < registry.length; i++) {\n const def = registry[i];\n if (isNodeMatchingSelectorList(tNode, def.selectors, /* isProjectionMode */ false)) {\n matches ??= [];\n if (isComponentDef(def)) {\n if (ngDevMode) {\n assertTNodeType(tNode, 2 /* TNodeType.Element */, `\"${tNode.value}\" tags cannot be used as component hosts. ` +\n `Please use a different tag to activate the ${stringify(def.type)} component.`);\n if (matches.length && isComponentDef(matches[0])) {\n throwMultipleComponentError(tNode, matches.find(isComponentDef).type, def.type);\n }\n }\n matches.unshift(def);\n }\n else {\n matches.push(def);\n }\n }\n }\n }\n return matches;\n}\nfunction resolveHostDirectives(tView, tNode, matches) {\n const allDirectiveDefs = [];\n let hostDirectiveDefs = null;\n for (const def of matches) {\n if (def.findHostDirectiveDefs !== null) {\n // TODO(pk): probably could return matches instead of taking in an array to fill in?\n hostDirectiveDefs ??= new Map();\n // Components are inserted at the front of the matches array so that their lifecycle\n // hooks run before any directive lifecycle hooks. This appears to be for ViewEngine\n // compatibility. This logic doesn't make sense with host directives, because it\n // would allow the host directives to undo any overrides the host may have made.\n // To handle this case, the host directives of components are inserted at the beginning\n // of the array, followed by the component. As such, the insertion order is as follows:\n // 1. Host directives belonging to the selector-matched component.\n // 2. Selector-matched component.\n // 3. Host directives belonging to selector-matched directives.\n // 4. Selector-matched directives.\n def.findHostDirectiveDefs(def, allDirectiveDefs, hostDirectiveDefs);\n }\n if (isComponentDef(def)) {\n allDirectiveDefs.push(def);\n markAsComponentHost(tView, tNode, allDirectiveDefs.length - 1);\n }\n }\n if (isComponentHost(tNode)) {\n allDirectiveDefs.push(...matches.slice(1));\n }\n else {\n allDirectiveDefs.push(...matches);\n }\n if (ngDevMode) {\n assertNoDuplicateDirectives(allDirectiveDefs);\n }\n return [allDirectiveDefs, hostDirectiveDefs];\n}\n/**\n * Marks a given TNode as a component's host. This consists of:\n * - setting the component offset on the TNode.\n * - storing index of component's host element so it will be queued for view refresh during CD.\n */\nfunction markAsComponentHost(tView, hostTNode, componentOffset) {\n ngDevMode && assertFirstCreatePass(tView);\n ngDevMode && assertGreaterThan(componentOffset, -1, 'componentOffset must be great than -1');\n hostTNode.componentOffset = componentOffset;\n (tView.components ??= []).push(hostTNode.index);\n}\n/** Caches local names and their matching directive indices for query and template lookups. */\nfunction cacheMatchingLocalNames(tNode, localRefs, exportsMap) {\n if (localRefs) {\n const localNames = (tNode.localNames = []);\n // Local names must be stored in tNode in the same order that localRefs are defined\n // in the template to ensure the data is loaded in the same slots as their refs\n // in the template (for template queries).\n for (let i = 0; i < localRefs.length; i += 2) {\n const index = exportsMap[localRefs[i + 1]];\n if (index == null)\n throw new RuntimeError(-301 /* RuntimeErrorCode.EXPORT_NOT_FOUND */, ngDevMode && `Export of name '${localRefs[i + 1]}' not found!`);\n localNames.push(localRefs[i], index);\n }\n }\n}\n/**\n * Builds up an export map as directives are created, so local refs can be quickly mapped\n * to their directive instances.\n */\nfunction saveNameToExportMap(directiveIdx, def, exportsMap) {\n if (exportsMap) {\n if (def.exportAs) {\n for (let i = 0; i < def.exportAs.length; i++) {\n exportsMap[def.exportAs[i]] = directiveIdx;\n }\n }\n if (isComponentDef(def))\n exportsMap[''] = directiveIdx;\n }\n}\n/**\n * Initializes the flags on the current node, setting all indices to the initial index,\n * the directive count to 0, and adding the isComponent flag.\n * @param index the initial index\n */\nfunction initTNodeFlags(tNode, index, numberOfDirectives) {\n ngDevMode &&\n assertNotEqual(numberOfDirectives, tNode.directiveEnd - tNode.directiveStart, 'Reached the max number of directives');\n tNode.flags |= 1 /* TNodeFlags.isDirectiveHost */;\n // When the first directive is created on a node, save the index\n tNode.directiveStart = index;\n tNode.directiveEnd = index + numberOfDirectives;\n tNode.providerIndexes = index;\n}\n/**\n * Setup directive for instantiation.\n *\n * We need to create a `NodeInjectorFactory` which is then inserted in both the `Blueprint` as well\n * as `LView`. `TView` gets the `DirectiveDef`.\n *\n * @param tView `TView`\n * @param tNode `TNode`\n * @param lView `LView`\n * @param directiveIndex Index where the directive will be stored in the Expando.\n * @param def `DirectiveDef`\n */\nfunction configureViewWithDirective(tView, tNode, lView, directiveIndex, def) {\n ngDevMode &&\n assertGreaterThanOrEqual(directiveIndex, HEADER_OFFSET, 'Must be in Expando section');\n tView.data[directiveIndex] = def;\n const directiveFactory = def.factory || (def.factory = getFactoryDef(def.type, true));\n // Even though `directiveFactory` will already be using `ɵɵdirectiveInject` in its generated code,\n // we also want to support `inject()` directly from the directive constructor context so we set\n // `ɵɵdirectiveInject` as the inject implementation here too.\n const nodeInjectorFactory = new NodeInjectorFactory(directiveFactory, isComponentDef(def), ɵɵdirectiveInject);\n tView.blueprint[directiveIndex] = nodeInjectorFactory;\n lView[directiveIndex] = nodeInjectorFactory;\n registerHostBindingOpCodes(tView, tNode, directiveIndex, allocExpando(tView, lView, def.hostVars, NO_CHANGE), def);\n}\n/**\n * Gets the initial set of LView flags based on the component definition that the LView represents.\n * @param def Component definition from which to determine the flags.\n */\nfunction getInitialLViewFlagsFromDef(def) {\n let flags = 16 /* LViewFlags.CheckAlways */;\n if (def.signals) {\n flags = 4096 /* LViewFlags.SignalView */;\n }\n else if (def.onPush) {\n flags = 64 /* LViewFlags.Dirty */;\n }\n return flags;\n}\nfunction createComponentLView(lView, hostTNode, def) {\n const native = getNativeByTNode(hostTNode, lView);\n const tView = getOrCreateComponentTView(def);\n // Only component views should be added to the view tree directly. Embedded views are\n // accessed through their containers because they may be removed / re-added later.\n const rendererFactory = lView[ENVIRONMENT].rendererFactory;\n const componentView = addToEndOfViewTree(lView, createLView(lView, tView, null, getInitialLViewFlagsFromDef(def), native, hostTNode, null, rendererFactory.createRenderer(native, def), null, null, null));\n // Component view will always be created before any injected LContainers,\n // so this is a regular element, wrap it with the component view\n return (lView[hostTNode.index] = componentView);\n}\nfunction elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace) {\n if (ngDevMode) {\n assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');\n validateAgainstEventAttributes(name);\n assertTNodeType(tNode, 2 /* TNodeType.Element */, `Attempted to set attribute \\`${name}\\` on a container node. ` +\n `Host bindings are not valid on ng-container or ng-template.`);\n }\n const element = getNativeByTNode(tNode, lView);\n setElementAttribute(lView[RENDERER], element, namespace, tNode.value, name, value, sanitizer);\n}\nfunction setElementAttribute(renderer, element, namespace, tagName, name, value, sanitizer) {\n if (value == null) {\n ngDevMode && ngDevMode.rendererRemoveAttribute++;\n renderer.removeAttribute(element, name, namespace);\n }\n else {\n ngDevMode && ngDevMode.rendererSetAttribute++;\n const strValue = sanitizer == null ? renderStringify(value) : sanitizer(value, tagName || '', name);\n renderer.setAttribute(element, name, strValue, namespace);\n }\n}\n/**\n * Sets initial input properties on directive instances from attribute data\n *\n * @param lView Current LView that is being processed.\n * @param directiveIndex Index of the directive in directives array\n * @param instance Instance of the directive on which to set the initial inputs\n * @param def The directive def that contains the list of inputs\n * @param tNode The static data for this node\n */\nfunction setInputsFromAttrs(lView, directiveIndex, instance, def, tNode, initialInputData) {\n const initialInputs = initialInputData[directiveIndex];\n if (initialInputs !== null) {\n for (let i = 0; i < initialInputs.length;) {\n const publicName = initialInputs[i++];\n const privateName = initialInputs[i++];\n const flags = initialInputs[i++];\n const value = initialInputs[i++];\n writeToDirectiveInput(def, instance, publicName, privateName, flags, value);\n if (ngDevMode) {\n const nativeElement = getNativeByTNode(tNode, lView);\n setNgReflectProperty(lView, nativeElement, tNode.type, privateName, value);\n }\n }\n }\n}\n/**\n * Generates initialInputData for a node and stores it in the template's static storage\n * so subsequent template invocations don't have to recalculate it.\n *\n * initialInputData is an array containing values that need to be set as input properties\n * for directives on this node, but only once on creation. We need this array to support\n * the case where you set an @Input property of a directive using attribute-like syntax.\n * e.g. if you have a `name` @Input, you can set it once like this:\n *\n * <my-component name=\"Bess\"></my-component>\n *\n * @param inputs Input alias map that was generated from the directive def inputs.\n * @param directiveIndex Index of the directive that is currently being processed.\n * @param attrs Static attrs on this node.\n */\nfunction generateInitialInputs(inputs, directiveIndex, attrs) {\n let inputsToStore = null;\n let i = 0;\n while (i < attrs.length) {\n const attrName = attrs[i];\n if (attrName === 0 /* AttributeMarker.NamespaceURI */) {\n // We do not allow inputs on namespaced attributes.\n i += 4;\n continue;\n }\n else if (attrName === 5 /* AttributeMarker.ProjectAs */) {\n // Skip over the `ngProjectAs` value.\n i += 2;\n continue;\n }\n // If we hit any other attribute markers, we're done anyway. None of those are valid inputs.\n if (typeof attrName === 'number')\n break;\n if (inputs.hasOwnProperty(attrName)) {\n if (inputsToStore === null)\n inputsToStore = [];\n // Find the input's public name from the input store. Note that we can be found easier\n // through the directive def, but we want to do it using the inputs store so that it can\n // account for host directive aliases.\n const inputConfig = inputs[attrName];\n for (let j = 0; j < inputConfig.length; j += 3) {\n if (inputConfig[j] === directiveIndex) {\n inputsToStore.push(attrName, inputConfig[j + 1], inputConfig[j + 2], attrs[i + 1]);\n // A directive can't have multiple inputs with the same name so we can break here.\n break;\n }\n }\n }\n i += 2;\n }\n return inputsToStore;\n}\n//////////////////////////\n//// ViewContainer & View\n//////////////////////////\n/**\n * Creates a LContainer, either from a container instruction, or for a ViewContainerRef.\n *\n * @param hostNative The host element for the LContainer\n * @param hostTNode The host TNode for the LContainer\n * @param currentView The parent view of the LContainer\n * @param native The native comment element\n * @param isForViewContainerRef Optional a flag indicating the ViewContainerRef case\n * @returns LContainer\n */\nfunction createLContainer(hostNative, currentView, native, tNode) {\n ngDevMode && assertLView(currentView);\n const lContainer = [\n hostNative, // host native\n true, // Boolean `true` in this position signifies that this is an `LContainer`\n 0, // flags\n currentView, // parent\n null, // next\n tNode, // t_host\n null, // dehydrated views\n native, // native,\n null, // view refs\n null, // moved views\n ];\n ngDevMode &&\n assertEqual(lContainer.length, CONTAINER_HEADER_OFFSET, 'Should allocate correct number of slots for LContainer header.');\n return lContainer;\n}\n/**\n * Adds LView or LContainer to the end of the current view tree.\n *\n * This structure will be used to traverse through nested views to remove listeners\n * and call onDestroy callbacks.\n *\n * @param lView The view where LView or LContainer should be added\n * @param adjustedHostIndex Index of the view's host node in LView[], adjusted for header\n * @param lViewOrLContainer The LView or LContainer to add to the view tree\n * @returns The state passed in\n */\nfunction addToEndOfViewTree(lView, lViewOrLContainer) {\n // TODO(benlesh/misko): This implementation is incorrect, because it always adds the LContainer\n // to the end of the queue, which means if the developer retrieves the LContainers from RNodes out\n // of order, the change detection will run out of order, as the act of retrieving the the\n // LContainer from the RNode is what adds it to the queue.\n if (lView[CHILD_HEAD]) {\n lView[CHILD_TAIL][NEXT] = lViewOrLContainer;\n }\n else {\n lView[CHILD_HEAD] = lViewOrLContainer;\n }\n lView[CHILD_TAIL] = lViewOrLContainer;\n return lViewOrLContainer;\n}\n///////////////////////////////\n//// Bindings & interpolations\n///////////////////////////////\n/**\n * Stores meta-data for a property binding to be used by TestBed's `DebugElement.properties`.\n *\n * In order to support TestBed's `DebugElement.properties` we need to save, for each binding:\n * - a bound property name;\n * - a static parts of interpolated strings;\n *\n * A given property metadata is saved at the binding's index in the `TView.data` (in other words, a\n * property binding metadata will be stored in `TView.data` at the same index as a bound value in\n * `LView`). Metadata are represented as `INTERPOLATION_DELIMITER`-delimited string with the\n * following format:\n * - `propertyName` for bound properties;\n * - `propertyName�prefix�interpolation_static_part1�..interpolation_static_partN�suffix` for\n * interpolated properties.\n *\n * @param tData `TData` where meta-data will be saved;\n * @param tNode `TNode` that is a target of the binding;\n * @param propertyName bound property name;\n * @param bindingIndex binding index in `LView`\n * @param interpolationParts static interpolation parts (for property interpolations)\n */\nfunction storePropertyBindingMetadata(tData, tNode, propertyName, bindingIndex, ...interpolationParts) {\n // Binding meta-data are stored only the first time a given property instruction is processed.\n // Since we don't have a concept of the \"first update pass\" we need to check for presence of the\n // binding meta-data to decide if one should be stored (or if was stored already).\n if (tData[bindingIndex] === null) {\n if (tNode.inputs == null || !tNode.inputs[propertyName]) {\n const propBindingIdxs = tNode.propertyBindings || (tNode.propertyBindings = []);\n propBindingIdxs.push(bindingIndex);\n let bindingMetadata = propertyName;\n if (interpolationParts.length > 0) {\n bindingMetadata +=\n INTERPOLATION_DELIMITER + interpolationParts.join(INTERPOLATION_DELIMITER);\n }\n tData[bindingIndex] = bindingMetadata;\n }\n }\n}\n/**\n * There are cases where the sub component's renderer needs to be included\n * instead of the current renderer (see the componentSyntheticHost* instructions).\n */\nfunction loadComponentRenderer(currentDef, tNode, lView) {\n // TODO(FW-2043): the `currentDef` is null when host bindings are invoked while creating root\n // component (see packages/core/src/render3/component.ts). This is not consistent with the process\n // of creating inner components, when current directive index is available in the state. In order\n // to avoid relying on current def being `null` (thus special-casing root component creation), the\n // process of creating root component should be unified with the process of creating inner\n // components.\n if (currentDef === null || isComponentDef(currentDef)) {\n lView = unwrapLView(lView[tNode.index]);\n }\n return lView[RENDERER];\n}\n/** Handles an error thrown in an LView. */\nfunction handleError(lView, error) {\n const injector = lView[INJECTOR];\n const errorHandler = injector ? injector.get(ErrorHandler, null) : null;\n errorHandler && errorHandler.handleError(error);\n}\n/**\n * Set the inputs of directives at the current node to corresponding value.\n *\n * @param tView The current TView\n * @param lView the `LView` which contains the directives.\n * @param inputs mapping between the public \"input\" name and privately-known,\n * possibly minified, property names to write to.\n * @param value Value to set.\n */\nfunction setInputsForProperty(tView, lView, inputs, publicName, value) {\n for (let i = 0; i < inputs.length;) {\n const index = inputs[i++];\n const privateName = inputs[i++];\n const flags = inputs[i++];\n const instance = lView[index];\n ngDevMode && assertIndexInRange(lView, index);\n const def = tView.data[index];\n writeToDirectiveInput(def, instance, publicName, privateName, flags, value);\n }\n}\n\nfunction renderComponent(hostLView, componentHostIdx) {\n ngDevMode && assertEqual(isCreationMode(hostLView), true, 'Should be run in creation mode');\n const componentView = getComponentLViewByIndex(componentHostIdx, hostLView);\n const componentTView = componentView[TVIEW];\n syncViewWithBlueprint(componentTView, componentView);\n const hostRNode = componentView[HOST];\n // Populate an LView with hydration info retrieved from the DOM via TransferState.\n if (hostRNode !== null && componentView[HYDRATION] === null) {\n componentView[HYDRATION] = retrieveHydrationInfo(hostRNode, componentView[INJECTOR]);\n }\n renderView(componentTView, componentView, componentView[CONTEXT]);\n}\n/**\n * Syncs an LView instance with its blueprint if they have gotten out of sync.\n *\n * Typically, blueprints and their view instances should always be in sync, so the loop here\n * will be skipped. However, consider this case of two components side-by-side:\n *\n * App template:\n * ```html\n * <comp></comp>\n * <comp></comp>\n * ```\n *\n * The following will happen:\n * 1. App template begins processing.\n * 2. First <comp> is matched as a component and its LView is created.\n * 3. Second <comp> is matched as a component and its LView is created.\n * 4. App template completes processing, so it's time to check child templates.\n * 5. First <comp> template is checked. It has a directive, so its def is pushed to blueprint.\n * 6. Second <comp> template is checked. Its blueprint has been updated by the first\n * <comp> template, but its LView was created before this update, so it is out of sync.\n *\n * Note that embedded views inside ngFor loops will never be out of sync because these views\n * are processed as soon as they are created.\n *\n * @param tView The `TView` that contains the blueprint for syncing\n * @param lView The view to sync\n */\nfunction syncViewWithBlueprint(tView, lView) {\n for (let i = lView.length; i < tView.blueprint.length; i++) {\n lView.push(tView.blueprint[i]);\n }\n}\n/**\n * Processes a view in the creation mode. This includes a number of steps in a specific order:\n * - creating view query functions (if any);\n * - executing a template function in the creation mode;\n * - updating static queries (if any);\n * - creating child components defined in a given view.\n */\nfunction renderView(tView, lView, context) {\n ngDevMode && assertEqual(isCreationMode(lView), true, 'Should be run in creation mode');\n ngDevMode && assertNotReactive(renderView.name);\n enterView(lView);\n try {\n const viewQuery = tView.viewQuery;\n if (viewQuery !== null) {\n executeViewQueryFn(1 /* RenderFlags.Create */, viewQuery, context);\n }\n // Execute a template associated with this view, if it exists. A template function might not be\n // defined for the root component views.\n const templateFn = tView.template;\n if (templateFn !== null) {\n executeTemplate(tView, lView, templateFn, 1 /* RenderFlags.Create */, context);\n }\n // This needs to be set before children are processed to support recursive components.\n // This must be set to false immediately after the first creation run because in an\n // ngFor loop, all the views will be created together before update mode runs and turns\n // off firstCreatePass. If we don't set it here, instances will perform directive\n // matching, etc again and again.\n if (tView.firstCreatePass) {\n tView.firstCreatePass = false;\n }\n // Mark all queries active in this view as dirty. This is necessary for signal-based queries to\n // have a clear marking point where we can read query results atomically (for a given view).\n lView[QUERIES]?.finishViewCreation(tView);\n // We resolve content queries specifically marked as `static` in creation mode. Dynamic\n // content queries are resolved during change detection (i.e. update mode), after embedded\n // views are refreshed (see block above).\n if (tView.staticContentQueries) {\n refreshContentQueries(tView, lView);\n }\n // We must materialize query results before child components are processed\n // in case a child component has projected a container. The LContainer needs\n // to exist so the embedded views are properly attached by the container.\n if (tView.staticViewQueries) {\n executeViewQueryFn(2 /* RenderFlags.Update */, tView.viewQuery, context);\n }\n // Render child component views.\n const components = tView.components;\n if (components !== null) {\n renderChildComponents(lView, components);\n }\n }\n catch (error) {\n // If we didn't manage to get past the first template pass due to\n // an error, mark the view as corrupted so we can try to recover.\n if (tView.firstCreatePass) {\n tView.incompleteFirstPass = true;\n tView.firstCreatePass = false;\n }\n throw error;\n }\n finally {\n lView[FLAGS] &= ~4 /* LViewFlags.CreationMode */;\n leaveView();\n }\n}\n/** Renders child components in the current view (creation mode). */\nfunction renderChildComponents(hostLView, components) {\n for (let i = 0; i < components.length; i++) {\n renderComponent(hostLView, components[i]);\n }\n}\n\n/**\n * Flags for renderer-specific style modifiers.\n * @publicApi\n */\nvar RendererStyleFlags2;\n(function (RendererStyleFlags2) {\n // TODO(misko): This needs to be refactored into a separate file so that it can be imported from\n // `node_manipulation.ts` Currently doing the import cause resolution order to change and fails\n // the tests. The work around is to have hard coded value in `node_manipulation.ts` for now.\n /**\n * Marks a style as important.\n */\n RendererStyleFlags2[RendererStyleFlags2[\"Important\"] = 1] = \"Important\";\n /**\n * Marks a style as using dash case naming (this-is-dash-case).\n */\n RendererStyleFlags2[RendererStyleFlags2[\"DashCase\"] = 2] = \"DashCase\";\n})(RendererStyleFlags2 || (RendererStyleFlags2 = {}));\n\nlet _icuContainerIterate;\n/**\n * Iterator which provides ability to visit all of the `TIcuContainerNode` root `RNode`s.\n */\nfunction icuContainerIterate(tIcuContainerNode, lView) {\n return _icuContainerIterate(tIcuContainerNode, lView);\n}\n/**\n * Ensures that `IcuContainerVisitor`'s implementation is present.\n *\n * This function is invoked when i18n instruction comes across an ICU. The purpose is to allow the\n * bundler to tree shake ICU logic and only load it if ICU instruction is executed.\n */\nfunction ensureIcuContainerVisitorLoaded(loader) {\n if (_icuContainerIterate === undefined) {\n // Do not inline this function. We want to keep `ensureIcuContainerVisitorLoaded` light, so it\n // can be inlined into call-site.\n _icuContainerIterate = loader();\n }\n}\n\n/**\n * Checks whether a TNode is considered detached, i.e. not present in the\n * translated i18n template. We should not attempt hydration for such nodes\n * and instead, use a regular \"creation mode\".\n */\nfunction isDetachedByI18n(tNode) {\n return (tNode.flags & 32 /* TNodeFlags.isDetached */) === 32 /* TNodeFlags.isDetached */;\n}\n\n/**\n * NOTE: for performance reasons, the possible actions are inlined within the function instead of\n * being passed as an argument.\n */\nfunction applyToElementOrContainer(action, renderer, parent, lNodeToHandle, beforeNode) {\n // If this slot was allocated for a text node dynamically created by i18n, the text node itself\n // won't be created until i18nApply() in the update block, so this node should be skipped.\n // For more info, see \"ICU expressions should work inside an ngTemplateOutlet inside an ngFor\"\n // in `i18n_spec.ts`.\n if (lNodeToHandle != null) {\n let lContainer;\n let isComponent = false;\n // We are expecting an RNode, but in the case of a component or LContainer the `RNode` is\n // wrapped in an array which needs to be unwrapped. We need to know if it is a component and if\n // it has LContainer so that we can process all of those cases appropriately.\n if (isLContainer(lNodeToHandle)) {\n lContainer = lNodeToHandle;\n }\n else if (isLView(lNodeToHandle)) {\n isComponent = true;\n ngDevMode && assertDefined(lNodeToHandle[HOST], 'HOST must be defined for a component LView');\n lNodeToHandle = lNodeToHandle[HOST];\n }\n const rNode = unwrapRNode(lNodeToHandle);\n if (action === 0 /* WalkTNodeTreeAction.Create */ && parent !== null) {\n if (beforeNode == null) {\n nativeAppendChild(renderer, parent, rNode);\n }\n else {\n nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true);\n }\n }\n else if (action === 1 /* WalkTNodeTreeAction.Insert */ && parent !== null) {\n nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true);\n }\n else if (action === 2 /* WalkTNodeTreeAction.Detach */) {\n nativeRemoveNode(renderer, rNode, isComponent);\n }\n else if (action === 3 /* WalkTNodeTreeAction.Destroy */) {\n ngDevMode && ngDevMode.rendererDestroyNode++;\n renderer.destroyNode(rNode);\n }\n if (lContainer != null) {\n applyContainer(renderer, action, lContainer, parent, beforeNode);\n }\n }\n}\n/**\n * Removes all DOM elements associated with a view.\n *\n * Because some root nodes of the view may be containers, we sometimes need\n * to propagate deeply into the nested containers to remove all elements in the\n * views beneath it.\n *\n * @param tView The `TView' of the `LView` from which elements should be added or removed\n * @param lView The view from which elements should be added or removed\n */\nfunction removeViewFromDOM(tView, lView) {\n detachViewFromDOM(tView, lView);\n lView[HOST] = null;\n lView[T_HOST] = null;\n}\n/**\n * Adds all DOM elements associated with a view.\n *\n * Because some root nodes of the view may be containers, we sometimes need\n * to propagate deeply into the nested containers to add all elements in the\n * views beneath it.\n *\n * @param tView The `TView' of the `LView` from which elements should be added or removed\n * @param parentTNode The `TNode` where the `LView` should be attached to.\n * @param renderer Current renderer to use for DOM manipulations.\n * @param lView The view from which elements should be added or removed\n * @param parentNativeNode The parent `RElement` where it should be inserted into.\n * @param beforeNode The node before which elements should be added, if insert mode\n */\nfunction addViewToDOM(tView, parentTNode, renderer, lView, parentNativeNode, beforeNode) {\n lView[HOST] = parentNativeNode;\n lView[T_HOST] = parentTNode;\n applyView(tView, lView, renderer, 1 /* WalkTNodeTreeAction.Insert */, parentNativeNode, beforeNode);\n}\n/**\n * Detach a `LView` from the DOM by detaching its nodes.\n *\n * @param tView The `TView' of the `LView` to be detached\n * @param lView the `LView` to be detached.\n */\nfunction detachViewFromDOM(tView, lView) {\n // When we remove a view from the DOM, we need to rerun afterRender hooks\n // We don't necessarily needs to run change detection. DOM removal only requires\n // change detection if animations are enabled (this notification is handled by animations).\n lView[ENVIRONMENT].changeDetectionScheduler?.notify(10 /* NotificationSource.ViewDetachedFromDOM */);\n applyView(tView, lView, lView[RENDERER], 2 /* WalkTNodeTreeAction.Detach */, null, null);\n}\n/**\n * Traverses down and up the tree of views and containers to remove listeners and\n * call onDestroy callbacks.\n *\n * Notes:\n * - Because it's used for onDestroy calls, it needs to be bottom-up.\n * - Must process containers instead of their views to avoid splicing\n * when views are destroyed and re-added.\n * - Using a while loop because it's faster than recursion\n * - Destroy only called on movement to sibling or movement to parent (laterally or up)\n *\n * @param rootView The view to destroy\n */\nfunction destroyViewTree(rootView) {\n // If the view has no children, we can clean it up and return early.\n let lViewOrLContainer = rootView[CHILD_HEAD];\n if (!lViewOrLContainer) {\n return cleanUpView(rootView[TVIEW], rootView);\n }\n while (lViewOrLContainer) {\n let next = null;\n if (isLView(lViewOrLContainer)) {\n // If LView, traverse down to child.\n next = lViewOrLContainer[CHILD_HEAD];\n }\n else {\n ngDevMode && assertLContainer(lViewOrLContainer);\n // If container, traverse down to its first LView.\n const firstView = lViewOrLContainer[CONTAINER_HEADER_OFFSET];\n if (firstView)\n next = firstView;\n }\n if (!next) {\n // Only clean up view when moving to the side or up, as destroy hooks\n // should be called in order from the bottom up.\n while (lViewOrLContainer && !lViewOrLContainer[NEXT] && lViewOrLContainer !== rootView) {\n if (isLView(lViewOrLContainer)) {\n cleanUpView(lViewOrLContainer[TVIEW], lViewOrLContainer);\n }\n lViewOrLContainer = lViewOrLContainer[PARENT];\n }\n if (lViewOrLContainer === null)\n lViewOrLContainer = rootView;\n if (isLView(lViewOrLContainer)) {\n cleanUpView(lViewOrLContainer[TVIEW], lViewOrLContainer);\n }\n next = lViewOrLContainer && lViewOrLContainer[NEXT];\n }\n lViewOrLContainer = next;\n }\n}\n/**\n * Inserts a view into a container.\n *\n * This adds the view to the container's array of active views in the correct\n * position. It also adds the view's elements to the DOM if the container isn't a\n * root node of another view (in that case, the view's elements will be added when\n * the container's parent view is added later).\n *\n * @param tView The `TView' of the `LView` to insert\n * @param lView The view to insert\n * @param lContainer The container into which the view should be inserted\n * @param index Which index in the container to insert the child view into\n */\nfunction insertView(tView, lView, lContainer, index) {\n ngDevMode && assertLView(lView);\n ngDevMode && assertLContainer(lContainer);\n const indexInContainer = CONTAINER_HEADER_OFFSET + index;\n const containerLength = lContainer.length;\n if (index > 0) {\n // This is a new view, we need to add it to the children.\n lContainer[indexInContainer - 1][NEXT] = lView;\n }\n if (index < containerLength - CONTAINER_HEADER_OFFSET) {\n lView[NEXT] = lContainer[indexInContainer];\n addToArray(lContainer, CONTAINER_HEADER_OFFSET + index, lView);\n }\n else {\n lContainer.push(lView);\n lView[NEXT] = null;\n }\n lView[PARENT] = lContainer;\n // track views where declaration and insertion points are different\n const declarationLContainer = lView[DECLARATION_LCONTAINER];\n if (declarationLContainer !== null && lContainer !== declarationLContainer) {\n trackMovedView(declarationLContainer, lView);\n }\n // notify query that a new view has been added\n const lQueries = lView[QUERIES];\n if (lQueries !== null) {\n lQueries.insertView(tView);\n }\n updateAncestorTraversalFlagsOnAttach(lView);\n // Sets the attached flag\n lView[FLAGS] |= 128 /* LViewFlags.Attached */;\n}\n/**\n * Track views created from the declaration container (TemplateRef) and inserted into a\n * different LContainer or attached directly to ApplicationRef.\n */\nfunction trackMovedView(declarationContainer, lView) {\n ngDevMode && assertDefined(lView, 'LView required');\n ngDevMode && assertLContainer(declarationContainer);\n const movedViews = declarationContainer[MOVED_VIEWS];\n const parent = lView[PARENT];\n ngDevMode && assertDefined(parent, 'missing parent');\n if (isLView(parent)) {\n declarationContainer[FLAGS] |= 2 /* LContainerFlags.HasTransplantedViews */;\n }\n else {\n const insertedComponentLView = parent[PARENT][DECLARATION_COMPONENT_VIEW];\n ngDevMode && assertDefined(insertedComponentLView, 'Missing insertedComponentLView');\n const declaredComponentLView = lView[DECLARATION_COMPONENT_VIEW];\n ngDevMode && assertDefined(declaredComponentLView, 'Missing declaredComponentLView');\n if (declaredComponentLView !== insertedComponentLView) {\n // At this point the declaration-component is not same as insertion-component; this means that\n // this is a transplanted view. Mark the declared lView as having transplanted views so that\n // those views can participate in CD.\n declarationContainer[FLAGS] |= 2 /* LContainerFlags.HasTransplantedViews */;\n }\n }\n if (movedViews === null) {\n declarationContainer[MOVED_VIEWS] = [lView];\n }\n else {\n movedViews.push(lView);\n }\n}\nfunction detachMovedView(declarationContainer, lView) {\n ngDevMode && assertLContainer(declarationContainer);\n ngDevMode &&\n assertDefined(declarationContainer[MOVED_VIEWS], 'A projected view should belong to a non-empty projected views collection');\n const movedViews = declarationContainer[MOVED_VIEWS];\n const declarationViewIndex = movedViews.indexOf(lView);\n movedViews.splice(declarationViewIndex, 1);\n}\n/**\n * Detaches a view from a container.\n *\n * This method removes the view from the container's array of active views. It also\n * removes the view's elements from the DOM.\n *\n * @param lContainer The container from which to detach a view\n * @param removeIndex The index of the view to detach\n * @returns Detached LView instance.\n */\nfunction detachView(lContainer, removeIndex) {\n if (lContainer.length <= CONTAINER_HEADER_OFFSET)\n return;\n const indexInContainer = CONTAINER_HEADER_OFFSET + removeIndex;\n const viewToDetach = lContainer[indexInContainer];\n if (viewToDetach) {\n const declarationLContainer = viewToDetach[DECLARATION_LCONTAINER];\n if (declarationLContainer !== null && declarationLContainer !== lContainer) {\n detachMovedView(declarationLContainer, viewToDetach);\n }\n if (removeIndex > 0) {\n lContainer[indexInContainer - 1][NEXT] = viewToDetach[NEXT];\n }\n const removedLView = removeFromArray(lContainer, CONTAINER_HEADER_OFFSET + removeIndex);\n removeViewFromDOM(viewToDetach[TVIEW], viewToDetach);\n // notify query that a view has been removed\n const lQueries = removedLView[QUERIES];\n if (lQueries !== null) {\n lQueries.detachView(removedLView[TVIEW]);\n }\n viewToDetach[PARENT] = null;\n viewToDetach[NEXT] = null;\n // Unsets the attached flag\n viewToDetach[FLAGS] &= ~128 /* LViewFlags.Attached */;\n }\n return viewToDetach;\n}\n/**\n * A standalone function which destroys an LView,\n * conducting clean up (e.g. removing listeners, calling onDestroys).\n *\n * @param tView The `TView' of the `LView` to be destroyed\n * @param lView The view to be destroyed.\n */\nfunction destroyLView(tView, lView) {\n if (isDestroyed(lView)) {\n return;\n }\n const renderer = lView[RENDERER];\n if (renderer.destroyNode) {\n applyView(tView, lView, renderer, 3 /* WalkTNodeTreeAction.Destroy */, null, null);\n }\n destroyViewTree(lView);\n}\n/**\n * Calls onDestroys hooks for all directives and pipes in a given view and then removes all\n * listeners. Listeners are removed as the last step so events delivered in the onDestroys hooks\n * can be propagated to @Output listeners.\n *\n * @param tView `TView` for the `LView` to clean up.\n * @param lView The LView to clean up\n */\nfunction cleanUpView(tView, lView) {\n if (isDestroyed(lView)) {\n return;\n }\n const prevConsumer = setActiveConsumer$1(null);\n try {\n // Usually the Attached flag is removed when the view is detached from its parent, however\n // if it's a root view, the flag won't be unset hence why we're also removing on destroy.\n lView[FLAGS] &= ~128 /* LViewFlags.Attached */;\n // Mark the LView as destroyed *before* executing the onDestroy hooks. An onDestroy hook\n // runs arbitrary user code, which could include its own `viewRef.destroy()` (or similar). If\n // We don't flag the view as destroyed before the hooks, this could lead to an infinite loop.\n // This also aligns with the ViewEngine behavior. It also means that the onDestroy hook is\n // really more of an \"afterDestroy\" hook if you think about it.\n lView[FLAGS] |= 256 /* LViewFlags.Destroyed */;\n lView[REACTIVE_TEMPLATE_CONSUMER] && consumerDestroy$1(lView[REACTIVE_TEMPLATE_CONSUMER]);\n executeOnDestroys(tView, lView);\n processCleanups(tView, lView);\n // For component views only, the local renderer is destroyed at clean up time.\n if (lView[TVIEW].type === 1 /* TViewType.Component */) {\n ngDevMode && ngDevMode.rendererDestroy++;\n lView[RENDERER].destroy();\n }\n const declarationContainer = lView[DECLARATION_LCONTAINER];\n // we are dealing with an embedded view that is still inserted into a container\n if (declarationContainer !== null && isLContainer(lView[PARENT])) {\n // and this is a projected view\n if (declarationContainer !== lView[PARENT]) {\n detachMovedView(declarationContainer, lView);\n }\n // For embedded views still attached to a container: remove query result from this view.\n const lQueries = lView[QUERIES];\n if (lQueries !== null) {\n lQueries.detachView(tView);\n }\n }\n // Unregister the view once everything else has been cleaned up.\n unregisterLView(lView);\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n}\n/** Removes listeners and unsubscribes from output subscriptions */\nfunction processCleanups(tView, lView) {\n ngDevMode && assertNotReactive(processCleanups.name);\n const tCleanup = tView.cleanup;\n const lCleanup = lView[CLEANUP];\n if (tCleanup !== null) {\n for (let i = 0; i < tCleanup.length - 1; i += 2) {\n if (typeof tCleanup[i] === 'string') {\n // This is a native DOM listener. It will occupy 4 entries in the TCleanup array (hence i +=\n // 2 at the end of this block).\n const targetIdx = tCleanup[i + 3];\n ngDevMode && assertNumber(targetIdx, 'cleanup target must be a number');\n if (targetIdx >= 0) {\n // Destroy anything whose teardown is a function call (e.g. QueryList, ModelSignal).\n lCleanup[targetIdx]();\n }\n else {\n // Subscription\n lCleanup[-targetIdx].unsubscribe();\n }\n i += 2;\n }\n else {\n // This is a cleanup function that is grouped with the index of its context\n const context = lCleanup[tCleanup[i + 1]];\n tCleanup[i].call(context);\n }\n }\n }\n if (lCleanup !== null) {\n lView[CLEANUP] = null;\n }\n const destroyHooks = lView[ON_DESTROY_HOOKS];\n if (destroyHooks !== null) {\n // Reset the ON_DESTROY_HOOKS array before iterating over it to prevent hooks that unregister\n // themselves from mutating the array during iteration.\n lView[ON_DESTROY_HOOKS] = null;\n for (let i = 0; i < destroyHooks.length; i++) {\n const destroyHooksFn = destroyHooks[i];\n ngDevMode && assertFunction(destroyHooksFn, 'Expecting destroy hook to be a function.');\n destroyHooksFn();\n }\n }\n // Destroy effects registered to the view. Many of these will have been processed above.\n const effects = lView[EFFECTS];\n if (effects !== null) {\n lView[EFFECTS] = null;\n for (const effect of effects) {\n effect.destroy();\n }\n }\n}\n/** Calls onDestroy hooks for this view */\nfunction executeOnDestroys(tView, lView) {\n ngDevMode && assertNotReactive(executeOnDestroys.name);\n let destroyHooks;\n if (tView != null && (destroyHooks = tView.destroyHooks) != null) {\n for (let i = 0; i < destroyHooks.length; i += 2) {\n const context = lView[destroyHooks[i]];\n // Only call the destroy hook if the context has been requested.\n if (!(context instanceof NodeInjectorFactory)) {\n const toCall = destroyHooks[i + 1];\n if (Array.isArray(toCall)) {\n for (let j = 0; j < toCall.length; j += 2) {\n const callContext = context[toCall[j]];\n const hook = toCall[j + 1];\n profiler(4 /* ProfilerEvent.LifecycleHookStart */, callContext, hook);\n try {\n hook.call(callContext);\n }\n finally {\n profiler(5 /* ProfilerEvent.LifecycleHookEnd */, callContext, hook);\n }\n }\n }\n else {\n profiler(4 /* ProfilerEvent.LifecycleHookStart */, context, toCall);\n try {\n toCall.call(context);\n }\n finally {\n profiler(5 /* ProfilerEvent.LifecycleHookEnd */, context, toCall);\n }\n }\n }\n }\n }\n}\n/**\n * Returns a native element if a node can be inserted into the given parent.\n *\n * There are two reasons why we may not be able to insert a element immediately.\n * - Projection: When creating a child content element of a component, we have to skip the\n * insertion because the content of a component will be projected.\n * `<component><content>delayed due to projection</content></component>`\n * - Parent container is disconnected: This can happen when we are inserting a view into\n * parent container, which itself is disconnected. For example the parent container is part\n * of a View which has not be inserted or is made for projection but has not been inserted\n * into destination.\n *\n * @param tView: Current `TView`.\n * @param tNode: `TNode` for which we wish to retrieve render parent.\n * @param lView: Current `LView`.\n */\nfunction getParentRElement(tView, tNode, lView) {\n return getClosestRElement(tView, tNode.parent, lView);\n}\n/**\n * Get closest `RElement` or `null` if it can't be found.\n *\n * If `TNode` is `TNodeType.Element` => return `RElement` at `LView[tNode.index]` location.\n * If `TNode` is `TNodeType.ElementContainer|IcuContain` => return the parent (recursively).\n * If `TNode` is `null` then return host `RElement`:\n * - return `null` if projection\n * - return `null` if parent container is disconnected (we have no parent.)\n *\n * @param tView: Current `TView`.\n * @param tNode: `TNode` for which we wish to retrieve `RElement` (or `null` if host element is\n * needed).\n * @param lView: Current `LView`.\n * @returns `null` if the `RElement` can't be determined at this time (no parent / projection)\n */\nfunction getClosestRElement(tView, tNode, lView) {\n let parentTNode = tNode;\n // Skip over element and ICU containers as those are represented by a comment node and\n // can't be used as a render parent. Also skip let declarations since they don't have a\n // corresponding DOM node at all.\n while (parentTNode !== null &&\n parentTNode.type & (8 /* TNodeType.ElementContainer */ | 32 /* TNodeType.Icu */ | 128 /* TNodeType.LetDeclaration */)) {\n tNode = parentTNode;\n parentTNode = tNode.parent;\n }\n // If the parent tNode is null, then we are inserting across views: either into an embedded view\n // or a component view.\n if (parentTNode === null) {\n // We are inserting a root element of the component view into the component host element and\n // it should always be eager.\n return lView[HOST];\n }\n else {\n ngDevMode && assertTNodeType(parentTNode, 3 /* TNodeType.AnyRNode */ | 4 /* TNodeType.Container */);\n if (isComponentHost(parentTNode)) {\n ngDevMode && assertTNodeForLView(parentTNode, lView);\n const { encapsulation } = tView.data[parentTNode.directiveStart + parentTNode.componentOffset];\n // We've got a parent which is an element in the current view. We just need to verify if the\n // parent element is not a component. Component's content nodes are not inserted immediately\n // because they will be projected, and so doing insert at this point would be wasteful.\n // Since the projection would then move it to its final destination. Note that we can't\n // make this assumption when using the Shadow DOM, because the native projection placeholders\n // (<content> or <slot>) have to be in place as elements are being inserted.\n if (encapsulation === ViewEncapsulation.None ||\n encapsulation === ViewEncapsulation.Emulated) {\n return null;\n }\n }\n return getNativeByTNode(parentTNode, lView);\n }\n}\n/**\n * Find a node in front of which `currentTNode` should be inserted.\n *\n * This method determines the `RNode` in front of which we should insert the `currentRNode`. This\n * takes `TNode.insertBeforeIndex` into account if i18n code has been invoked.\n *\n * @param parentTNode parent `TNode`\n * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)\n * @param lView current `LView`\n */\nfunction getInsertInFrontOfRNode(parentTNode, currentTNode, lView) {\n return _getInsertInFrontOfRNodeWithI18n(parentTNode, currentTNode, lView);\n}\n/**\n * Find a node in front of which `currentTNode` should be inserted. (Does not take i18n into\n * account)\n *\n * This method determines the `RNode` in front of which we should insert the `currentRNode`. This\n * does not take `TNode.insertBeforeIndex` into account.\n *\n * @param parentTNode parent `TNode`\n * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)\n * @param lView current `LView`\n */\nfunction getInsertInFrontOfRNodeWithNoI18n(parentTNode, currentTNode, lView) {\n if (parentTNode.type & (8 /* TNodeType.ElementContainer */ | 32 /* TNodeType.Icu */)) {\n return getNativeByTNode(parentTNode, lView);\n }\n return null;\n}\n/**\n * Tree shakable boundary for `getInsertInFrontOfRNodeWithI18n` function.\n *\n * This function will only be set if i18n code runs.\n */\nlet _getInsertInFrontOfRNodeWithI18n = getInsertInFrontOfRNodeWithNoI18n;\n/**\n * Tree shakable boundary for `processI18nInsertBefore` function.\n *\n * This function will only be set if i18n code runs.\n */\nlet _processI18nInsertBefore;\nfunction setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore) {\n _getInsertInFrontOfRNodeWithI18n = getInsertInFrontOfRNodeWithI18n;\n _processI18nInsertBefore = processI18nInsertBefore;\n}\n/**\n * Appends the `child` native node (or a collection of nodes) to the `parent`.\n *\n * @param tView The `TView' to be appended\n * @param lView The current LView\n * @param childRNode The native child (or children) that should be appended\n * @param childTNode The TNode of the child element\n */\nfunction appendChild(tView, lView, childRNode, childTNode) {\n const parentRNode = getParentRElement(tView, childTNode, lView);\n const renderer = lView[RENDERER];\n const parentTNode = childTNode.parent || lView[T_HOST];\n const anchorNode = getInsertInFrontOfRNode(parentTNode, childTNode, lView);\n if (parentRNode != null) {\n if (Array.isArray(childRNode)) {\n for (let i = 0; i < childRNode.length; i++) {\n nativeAppendOrInsertBefore(renderer, parentRNode, childRNode[i], anchorNode, false);\n }\n }\n else {\n nativeAppendOrInsertBefore(renderer, parentRNode, childRNode, anchorNode, false);\n }\n }\n _processI18nInsertBefore !== undefined &&\n _processI18nInsertBefore(renderer, childTNode, lView, childRNode, parentRNode);\n}\n/**\n * Returns the first native node for a given LView, starting from the provided TNode.\n *\n * Native nodes are returned in the order in which those appear in the native tree (DOM).\n */\nfunction getFirstNativeNode(lView, tNode) {\n if (tNode !== null) {\n ngDevMode &&\n assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ |\n 12 /* TNodeType.AnyContainer */ |\n 32 /* TNodeType.Icu */ |\n 16 /* TNodeType.Projection */ |\n 128 /* TNodeType.LetDeclaration */);\n const tNodeType = tNode.type;\n if (tNodeType & 3 /* TNodeType.AnyRNode */) {\n return getNativeByTNode(tNode, lView);\n }\n else if (tNodeType & 4 /* TNodeType.Container */) {\n return getBeforeNodeForView(-1, lView[tNode.index]);\n }\n else if (tNodeType & 8 /* TNodeType.ElementContainer */) {\n const elIcuContainerChild = tNode.child;\n if (elIcuContainerChild !== null) {\n return getFirstNativeNode(lView, elIcuContainerChild);\n }\n else {\n const rNodeOrLContainer = lView[tNode.index];\n if (isLContainer(rNodeOrLContainer)) {\n return getBeforeNodeForView(-1, rNodeOrLContainer);\n }\n else {\n return unwrapRNode(rNodeOrLContainer);\n }\n }\n }\n else if (tNodeType & 128 /* TNodeType.LetDeclaration */) {\n return getFirstNativeNode(lView, tNode.next);\n }\n else if (tNodeType & 32 /* TNodeType.Icu */) {\n let nextRNode = icuContainerIterate(tNode, lView);\n let rNode = nextRNode();\n // If the ICU container has no nodes, than we use the ICU anchor as the node.\n return rNode || unwrapRNode(lView[tNode.index]);\n }\n else {\n const projectionNodes = getProjectionNodes(lView, tNode);\n if (projectionNodes !== null) {\n if (Array.isArray(projectionNodes)) {\n return projectionNodes[0];\n }\n const parentView = getLViewParent(lView[DECLARATION_COMPONENT_VIEW]);\n ngDevMode && assertParentView(parentView);\n return getFirstNativeNode(parentView, projectionNodes);\n }\n else {\n return getFirstNativeNode(lView, tNode.next);\n }\n }\n }\n return null;\n}\nfunction getProjectionNodes(lView, tNode) {\n if (tNode !== null) {\n const componentView = lView[DECLARATION_COMPONENT_VIEW];\n const componentHost = componentView[T_HOST];\n const slotIdx = tNode.projection;\n ngDevMode && assertProjectionSlots(lView);\n return componentHost.projection[slotIdx];\n }\n return null;\n}\nfunction getBeforeNodeForView(viewIndexInContainer, lContainer) {\n const nextViewIndex = CONTAINER_HEADER_OFFSET + viewIndexInContainer + 1;\n if (nextViewIndex < lContainer.length) {\n const lView = lContainer[nextViewIndex];\n const firstTNodeOfView = lView[TVIEW].firstChild;\n if (firstTNodeOfView !== null) {\n return getFirstNativeNode(lView, firstTNodeOfView);\n }\n }\n return lContainer[NATIVE];\n}\n/**\n * Performs the operation of `action` on the node. Typically this involves inserting or removing\n * nodes on the LView or projection boundary.\n */\nfunction applyNodes(renderer, action, tNode, lView, parentRElement, beforeNode, isProjection) {\n while (tNode != null) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n // Let declarations don't have corresponding DOM nodes so we skip over them.\n if (tNode.type === 128 /* TNodeType.LetDeclaration */) {\n tNode = tNode.next;\n continue;\n }\n ngDevMode &&\n assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 16 /* TNodeType.Projection */ | 32 /* TNodeType.Icu */);\n const rawSlotValue = lView[tNode.index];\n const tNodeType = tNode.type;\n if (isProjection) {\n if (action === 0 /* WalkTNodeTreeAction.Create */) {\n rawSlotValue && attachPatchData(unwrapRNode(rawSlotValue), lView);\n tNode.flags |= 2 /* TNodeFlags.isProjected */;\n }\n }\n if (!isDetachedByI18n(tNode)) {\n if (tNodeType & 8 /* TNodeType.ElementContainer */) {\n applyNodes(renderer, action, tNode.child, lView, parentRElement, beforeNode, false);\n applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);\n }\n else if (tNodeType & 32 /* TNodeType.Icu */) {\n const nextRNode = icuContainerIterate(tNode, lView);\n let rNode;\n while ((rNode = nextRNode())) {\n applyToElementOrContainer(action, renderer, parentRElement, rNode, beforeNode);\n }\n applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);\n }\n else if (tNodeType & 16 /* TNodeType.Projection */) {\n applyProjectionRecursive(renderer, action, lView, tNode, parentRElement, beforeNode);\n }\n else {\n ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 4 /* TNodeType.Container */);\n applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);\n }\n }\n tNode = isProjection ? tNode.projectionNext : tNode.next;\n }\n}\nfunction applyView(tView, lView, renderer, action, parentRElement, beforeNode) {\n applyNodes(renderer, action, tView.firstChild, lView, parentRElement, beforeNode, false);\n}\n/**\n * `applyProjection` performs operation on the projection.\n *\n * Inserting a projection requires us to locate the projected nodes from the parent component. The\n * complication is that those nodes themselves could be re-projected from their parent component.\n *\n * @param tView The `TView` of `LView` which needs to be inserted, detached, destroyed\n * @param lView The `LView` which needs to be inserted, detached, destroyed.\n * @param tProjectionNode node to project\n */\nfunction applyProjection(tView, lView, tProjectionNode) {\n const renderer = lView[RENDERER];\n const parentRNode = getParentRElement(tView, tProjectionNode, lView);\n const parentTNode = tProjectionNode.parent || lView[T_HOST];\n let beforeNode = getInsertInFrontOfRNode(parentTNode, tProjectionNode, lView);\n applyProjectionRecursive(renderer, 0 /* WalkTNodeTreeAction.Create */, lView, tProjectionNode, parentRNode, beforeNode);\n}\n/**\n * `applyProjectionRecursive` performs operation on the projection specified by `action` (insert,\n * detach, destroy)\n *\n * Inserting a projection requires us to locate the projected nodes from the parent component. The\n * complication is that those nodes themselves could be re-projected from their parent component.\n *\n * @param renderer Render to use\n * @param action action to perform (insert, detach, destroy)\n * @param lView The LView which needs to be inserted, detached, destroyed.\n * @param tProjectionNode node to project\n * @param parentRElement parent DOM element for insertion/removal.\n * @param beforeNode Before which node the insertions should happen.\n */\nfunction applyProjectionRecursive(renderer, action, lView, tProjectionNode, parentRElement, beforeNode) {\n const componentLView = lView[DECLARATION_COMPONENT_VIEW];\n const componentNode = componentLView[T_HOST];\n ngDevMode &&\n assertEqual(typeof tProjectionNode.projection, 'number', 'expecting projection index');\n const nodeToProjectOrRNodes = componentNode.projection[tProjectionNode.projection];\n if (Array.isArray(nodeToProjectOrRNodes)) {\n // This should not exist, it is a bit of a hack. When we bootstrap a top level node and we\n // need to support passing projectable nodes, so we cheat and put them in the TNode\n // of the Host TView. (Yes we put instance info at the T Level). We can get away with it\n // because we know that TView is not shared and therefore it will not be a problem.\n // This should be refactored and cleaned up.\n for (let i = 0; i < nodeToProjectOrRNodes.length; i++) {\n const rNode = nodeToProjectOrRNodes[i];\n applyToElementOrContainer(action, renderer, parentRElement, rNode, beforeNode);\n }\n }\n else {\n let nodeToProject = nodeToProjectOrRNodes;\n const projectedComponentLView = componentLView[PARENT];\n // If a parent <ng-content> is located within a skip hydration block,\n // annotate an actual node that is being projected with the same flag too.\n if (hasInSkipHydrationBlockFlag(tProjectionNode)) {\n nodeToProject.flags |= 128 /* TNodeFlags.inSkipHydrationBlock */;\n }\n applyNodes(renderer, action, nodeToProject, projectedComponentLView, parentRElement, beforeNode, true);\n }\n}\n/**\n * `applyContainer` performs an operation on the container and its views as specified by\n * `action` (insert, detach, destroy)\n *\n * Inserting a Container is complicated by the fact that the container may have Views which\n * themselves have containers or projections.\n *\n * @param renderer Renderer to use\n * @param action action to perform (insert, detach, destroy)\n * @param lContainer The LContainer which needs to be inserted, detached, destroyed.\n * @param parentRElement parent DOM element for insertion/removal.\n * @param beforeNode Before which node the insertions should happen.\n */\nfunction applyContainer(renderer, action, lContainer, parentRElement, beforeNode) {\n ngDevMode && assertLContainer(lContainer);\n const anchor = lContainer[NATIVE]; // LContainer has its own before node.\n const native = unwrapRNode(lContainer);\n // An LContainer can be created dynamically on any node by injecting ViewContainerRef.\n // Asking for a ViewContainerRef on an element will result in a creation of a separate anchor\n // node (comment in the DOM) that will be different from the LContainer's host node. In this\n // particular case we need to execute action on 2 nodes:\n // - container's host node (this is done in the executeActionOnElementOrContainer)\n // - container's host node (this is done here)\n if (anchor !== native) {\n // This is very strange to me (Misko). I would expect that the native is same as anchor. I\n // don't see a reason why they should be different, but they are.\n //\n // If they are we need to process the second anchor as well.\n applyToElementOrContainer(action, renderer, parentRElement, anchor, beforeNode);\n }\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n const lView = lContainer[i];\n applyView(lView[TVIEW], lView, renderer, action, parentRElement, anchor);\n }\n}\n/**\n * Writes class/style to element.\n *\n * @param renderer Renderer to use.\n * @param isClassBased `true` if it should be written to `class` (`false` to write to `style`)\n * @param rNode The Node to write to.\n * @param prop Property to write to. This would be the class/style name.\n * @param value Value to write. If `null`/`undefined`/`false` this is considered a remove (set/add\n * otherwise).\n */\nfunction applyStyling(renderer, isClassBased, rNode, prop, value) {\n if (isClassBased) {\n // We actually want JS true/false here because any truthy value should add the class\n if (!value) {\n ngDevMode && ngDevMode.rendererRemoveClass++;\n renderer.removeClass(rNode, prop);\n }\n else {\n ngDevMode && ngDevMode.rendererAddClass++;\n renderer.addClass(rNode, prop);\n }\n }\n else {\n let flags = prop.indexOf('-') === -1 ? undefined : RendererStyleFlags2.DashCase;\n if (value == null /** || value === undefined */) {\n ngDevMode && ngDevMode.rendererRemoveStyle++;\n renderer.removeStyle(rNode, prop, flags);\n }\n else {\n // A value is important if it ends with `!important`. The style\n // parser strips any semicolons at the end of the value.\n const isImportant = typeof value === 'string' ? value.endsWith('!important') : false;\n if (isImportant) {\n // !important has to be stripped from the value for it to be valid.\n value = value.slice(0, -10);\n flags |= RendererStyleFlags2.Important;\n }\n ngDevMode && ngDevMode.rendererSetStyle++;\n renderer.setStyle(rNode, prop, value, flags);\n }\n }\n}\n\nfunction createAndRenderEmbeddedLView(declarationLView, templateTNode, context, options) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n const embeddedTView = templateTNode.tView;\n ngDevMode && assertDefined(embeddedTView, 'TView must be defined for a template node.');\n ngDevMode && assertTNodeForLView(templateTNode, declarationLView);\n // Embedded views follow the change detection strategy of the view they're declared in.\n const isSignalView = declarationLView[FLAGS] & 4096 /* LViewFlags.SignalView */;\n const viewFlags = isSignalView ? 4096 /* LViewFlags.SignalView */ : 16 /* LViewFlags.CheckAlways */;\n const embeddedLView = createLView(declarationLView, embeddedTView, context, viewFlags, null, templateTNode, null, null, options?.injector ?? null, options?.embeddedViewInjector ?? null, options?.dehydratedView ?? null);\n const declarationLContainer = declarationLView[templateTNode.index];\n ngDevMode && assertLContainer(declarationLContainer);\n embeddedLView[DECLARATION_LCONTAINER] = declarationLContainer;\n const declarationViewLQueries = declarationLView[QUERIES];\n if (declarationViewLQueries !== null) {\n embeddedLView[QUERIES] = declarationViewLQueries.createEmbeddedView(embeddedTView);\n }\n // execute creation mode of a view\n renderView(embeddedTView, embeddedLView, context);\n return embeddedLView;\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n}\nfunction getLViewFromLContainer(lContainer, index) {\n const adjustedIndex = CONTAINER_HEADER_OFFSET + index;\n // avoid reading past the array boundaries\n if (adjustedIndex < lContainer.length) {\n const lView = lContainer[adjustedIndex];\n ngDevMode && assertLView(lView);\n return lView;\n }\n return undefined;\n}\n/**\n * Returns whether an elements that belong to a view should be\n * inserted into the DOM. For client-only cases, DOM elements are\n * always inserted. For hydration cases, we check whether serialized\n * info is available for a view and the view is not in a \"skip hydration\"\n * block (in which case view contents was re-created, thus needing insertion).\n */\nfunction shouldAddViewToDom(tNode, dehydratedView) {\n return (!dehydratedView || dehydratedView.firstChild === null || hasInSkipHydrationBlockFlag(tNode));\n}\nfunction addLViewToLContainer(lContainer, lView, index, addToDOM = true) {\n const tView = lView[TVIEW];\n // Insert into the view tree so the new view can be change-detected\n insertView(tView, lView, lContainer, index);\n // Insert elements that belong to this view into the DOM tree\n if (addToDOM) {\n const beforeNode = getBeforeNodeForView(index, lContainer);\n const renderer = lView[RENDERER];\n const parentRNode = renderer.parentNode(lContainer[NATIVE]);\n if (parentRNode !== null) {\n addViewToDOM(tView, lContainer[T_HOST], renderer, lView, parentRNode, beforeNode);\n }\n }\n // When in hydration mode, reset the pointer to the first child in\n // the dehydrated view. This indicates that the view was hydrated and\n // further attaching/detaching should work with this view as normal.\n const hydrationInfo = lView[HYDRATION];\n if (hydrationInfo !== null && hydrationInfo.firstChild !== null) {\n hydrationInfo.firstChild = null;\n }\n}\nfunction removeLViewFromLContainer(lContainer, index) {\n const lView = detachView(lContainer, index);\n if (lView !== undefined) {\n destroyLView(lView[TVIEW], lView);\n }\n return lView;\n}\n\nfunction collectNativeNodes(tView, lView, tNode, result, isProjection = false) {\n while (tNode !== null) {\n // Let declarations don't have corresponding DOM nodes so we skip over them.\n if (tNode.type === 128 /* TNodeType.LetDeclaration */) {\n tNode = isProjection ? tNode.projectionNext : tNode.next;\n continue;\n }\n ngDevMode &&\n assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 16 /* TNodeType.Projection */ | 32 /* TNodeType.Icu */);\n const lNode = lView[tNode.index];\n if (lNode !== null) {\n result.push(unwrapRNode(lNode));\n }\n // A given lNode can represent either a native node or a LContainer (when it is a host of a\n // ViewContainerRef). When we find a LContainer we need to descend into it to collect root nodes\n // from the views in this container.\n if (isLContainer(lNode)) {\n collectNativeNodesInLContainer(lNode, result);\n }\n const tNodeType = tNode.type;\n if (tNodeType & 8 /* TNodeType.ElementContainer */) {\n collectNativeNodes(tView, lView, tNode.child, result);\n }\n else if (tNodeType & 32 /* TNodeType.Icu */) {\n const nextRNode = icuContainerIterate(tNode, lView);\n let rNode;\n while ((rNode = nextRNode())) {\n result.push(rNode);\n }\n }\n else if (tNodeType & 16 /* TNodeType.Projection */) {\n const nodesInSlot = getProjectionNodes(lView, tNode);\n if (Array.isArray(nodesInSlot)) {\n result.push(...nodesInSlot);\n }\n else {\n const parentView = getLViewParent(lView[DECLARATION_COMPONENT_VIEW]);\n ngDevMode && assertParentView(parentView);\n collectNativeNodes(parentView[TVIEW], parentView, nodesInSlot, result, true);\n }\n }\n tNode = isProjection ? tNode.projectionNext : tNode.next;\n }\n return result;\n}\n/**\n * Collects all root nodes in all views in a given LContainer.\n */\nfunction collectNativeNodesInLContainer(lContainer, result) {\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n const lViewInAContainer = lContainer[i];\n const lViewFirstChildTNode = lViewInAContainer[TVIEW].firstChild;\n if (lViewFirstChildTNode !== null) {\n collectNativeNodes(lViewInAContainer[TVIEW], lViewInAContainer, lViewFirstChildTNode, result);\n }\n }\n // When an LContainer is created, the anchor (comment) node is:\n // - (1) either reused in case of an ElementContainer (<ng-container>)\n // - (2) or a new comment node is created\n // In the first case, the anchor comment node would be added to the final\n // list by the code in the `collectNativeNodes` function\n // (see the `result.push(unwrapRNode(lNode))` line), but the second\n // case requires extra handling: the anchor node needs to be added to the\n // final list manually. See additional information in the `createAnchorNode`\n // function in the `view_container_ref.ts`.\n //\n // In the first case, the same reference would be stored in the `NATIVE`\n // and `HOST` slots in an LContainer. Otherwise, this is the second case and\n // we should add an element to the final list.\n if (lContainer[NATIVE] !== lContainer[HOST]) {\n result.push(lContainer[NATIVE]);\n }\n}\n\nlet freeConsumers = [];\n/**\n * Create a new template consumer pointing at the specified LView.\n * Sometimes, a previously created consumer may be reused, in order to save on allocations. In that\n * case, the LView will be updated.\n */\nfunction getOrBorrowReactiveLViewConsumer(lView) {\n return lView[REACTIVE_TEMPLATE_CONSUMER] ?? borrowReactiveLViewConsumer(lView);\n}\nfunction borrowReactiveLViewConsumer(lView) {\n const consumer = freeConsumers.pop() ?? Object.create(REACTIVE_LVIEW_CONSUMER_NODE);\n consumer.lView = lView;\n return consumer;\n}\nfunction maybeReturnReactiveLViewConsumer(consumer) {\n if (consumer.lView[REACTIVE_TEMPLATE_CONSUMER] === consumer) {\n // The consumer got committed.\n return;\n }\n consumer.lView = null;\n freeConsumers.push(consumer);\n}\nconst REACTIVE_LVIEW_CONSUMER_NODE = {\n ...REACTIVE_NODE$1,\n consumerIsAlwaysLive: true,\n kind: 'template',\n consumerMarkedDirty: (node) => {\n markAncestorsForTraversal(node.lView);\n },\n consumerOnSignalRead() {\n this.lView[REACTIVE_TEMPLATE_CONSUMER] = this;\n },\n};\n/**\n * Creates a temporary consumer for use with `LView`s that should not have consumers.\n * If the LView already has a consumer, returns the existing one instead.\n *\n * This is necessary because some APIs may cause change detection directly on an LView\n * that we do not want to have a consumer (Embedded views today). As a result, there\n * would be no active consumer from running change detection on its host component\n * and any signals in the LView template would be untracked. Instead, we create\n * this temporary consumer that marks the first parent that _should_ have a consumer\n * for refresh. Once change detection runs as part of that refresh, we throw away\n * this consumer because its signals will then be tracked by the parent's consumer.\n */\nfunction getOrCreateTemporaryConsumer(lView) {\n const consumer = lView[REACTIVE_TEMPLATE_CONSUMER] ?? Object.create(TEMPORARY_CONSUMER_NODE);\n consumer.lView = lView;\n return consumer;\n}\nconst TEMPORARY_CONSUMER_NODE = {\n ...REACTIVE_NODE$1,\n consumerIsAlwaysLive: true,\n kind: 'template',\n consumerMarkedDirty: (node) => {\n let parent = getLViewParent(node.lView);\n while (parent && !viewShouldHaveReactiveConsumer(parent[TVIEW])) {\n parent = getLViewParent(parent);\n }\n if (!parent) {\n // If we can't find an appropriate parent that should have a consumer, we\n // don't have a way of appropriately refreshing this LView as part of application synchronization.\n return;\n }\n markViewForRefresh(parent);\n },\n consumerOnSignalRead() {\n this.lView[REACTIVE_TEMPLATE_CONSUMER] = this;\n },\n};\n/**\n * Indicates if the view should get its own reactive consumer node.\n *\n * In the current design, all embedded views share a consumer with the component view. This allows\n * us to refresh at the component level rather than at a per-view level. In addition, root views get\n * their own reactive node because root component will have a host view that executes the\n * component's host bindings. This needs to be tracked in a consumer as well.\n *\n * To get a more granular change detection than per-component, all we would just need to update the\n * condition here so that a given view gets a reactive consumer which can become dirty independently\n * from its parent component. For example embedded views for signal components could be created with\n * a new type \"SignalEmbeddedView\" and the condition here wouldn't even need updating in order to\n * get granular per-view change detection for signal components.\n */\nfunction viewShouldHaveReactiveConsumer(tView) {\n return tView.type !== 2 /* TViewType.Embedded */;\n}\n\nfunction runEffectsInView(view) {\n if (view[EFFECTS] === null) {\n return;\n }\n // Since effects can make other effects dirty, we flush them in a loop until there are no more to\n // flush.\n let tryFlushEffects = true;\n while (tryFlushEffects) {\n let foundDirtyEffect = false;\n for (const effect of view[EFFECTS]) {\n if (!effect.dirty) {\n continue;\n }\n foundDirtyEffect = true;\n // `runEffectsInView` is called during change detection, and therefore runs\n // in the Angular zone if it's available.\n if (effect.zone === null || Zone.current === effect.zone) {\n effect.run();\n }\n else {\n effect.zone.run(() => effect.run());\n }\n }\n // Check if we need to continue flushing. If we didn't find any dirty effects, then there's\n // no need to loop back. Otherwise, check the view to see if it was marked for traversal\n // again. If so, there's a chance that one of the effects we ran caused another effect to\n // become dirty.\n tryFlushEffects = foundDirtyEffect && !!(view[FLAGS] & 8192 /* LViewFlags.HasChildViewsToRefresh */);\n }\n}\n\n/**\n * The maximum number of times the change detection traversal will rerun before throwing an error.\n */\nconst MAXIMUM_REFRESH_RERUNS$1 = 100;\nfunction detectChangesInternal(lView, notifyErrorHandler = true, mode = 0 /* ChangeDetectionMode.Global */) {\n const environment = lView[ENVIRONMENT];\n const rendererFactory = environment.rendererFactory;\n // Check no changes mode is a dev only mode used to verify that bindings have not changed\n // since they were assigned. We do not want to invoke renderer factory functions in that mode\n // to avoid any possible side-effects.\n const checkNoChangesMode = !!ngDevMode && isInCheckNoChangesMode();\n if (!checkNoChangesMode) {\n rendererFactory.begin?.();\n }\n try {\n detectChangesInViewWhileDirty(lView, mode);\n }\n catch (error) {\n if (notifyErrorHandler) {\n handleError(lView, error);\n }\n throw error;\n }\n finally {\n if (!checkNoChangesMode) {\n rendererFactory.end?.();\n }\n }\n}\nfunction detectChangesInViewWhileDirty(lView, mode) {\n const lastIsRefreshingViewsValue = isRefreshingViews();\n try {\n setIsRefreshingViews(true);\n detectChangesInView(lView, mode);\n // We don't need or want to do any looping when in exhaustive checkNoChanges because we\n // already traverse all the views and nothing should change so we shouldn't have to do\n // another pass to pick up new changes.\n if (ngDevMode && isExhaustiveCheckNoChanges()) {\n return;\n }\n let retries = 0;\n // If after running change detection, this view still needs to be refreshed or there are\n // descendants views that need to be refreshed due to re-dirtying during the change detection\n // run, detect changes on the view again. We run change detection in `Targeted` mode to only\n // refresh views with the `RefreshView` flag.\n while (requiresRefreshOrTraversal(lView)) {\n if (retries === MAXIMUM_REFRESH_RERUNS$1) {\n throw new RuntimeError(103 /* RuntimeErrorCode.INFINITE_CHANGE_DETECTION */, ngDevMode &&\n 'Infinite change detection while trying to refresh views. ' +\n 'There may be components which each cause the other to require a refresh, ' +\n 'causing an infinite loop.');\n }\n retries++;\n // Even if this view is detached, we still detect changes in targeted mode because this was\n // the root of the change detection run.\n detectChangesInView(lView, 1 /* ChangeDetectionMode.Targeted */);\n }\n }\n finally {\n // restore state to what it was before entering this change detection loop\n setIsRefreshingViews(lastIsRefreshingViewsValue);\n }\n}\nfunction checkNoChangesInternal(lView, mode, notifyErrorHandler = true) {\n setIsInCheckNoChangesMode(mode);\n try {\n detectChangesInternal(lView, notifyErrorHandler);\n }\n finally {\n setIsInCheckNoChangesMode(CheckNoChangesMode.Off);\n }\n}\n/**\n * Processes a view in update mode. This includes a number of steps in a specific order:\n * - executing a template function in update mode;\n * - executing hooks;\n * - refreshing queries;\n * - setting host bindings;\n * - refreshing child (embedded and component) views.\n */\nfunction refreshView(tView, lView, templateFn, context) {\n ngDevMode && assertEqual(isCreationMode(lView), false, 'Should be run in update mode');\n if (isDestroyed(lView))\n return;\n const flags = lView[FLAGS];\n // Check no changes mode is a dev only mode used to verify that bindings have not changed\n // since they were assigned. We do not want to execute lifecycle hooks in that mode.\n const isInCheckNoChangesPass = ngDevMode && isInCheckNoChangesMode();\n const isInExhaustiveCheckNoChangesPass = ngDevMode && isExhaustiveCheckNoChanges();\n // Start component reactive context\n // - We might already be in a reactive context if this is an embedded view of the host.\n // - We might be descending into a view that needs a consumer.\n enterView(lView);\n let returnConsumerToPool = true;\n let prevConsumer = null;\n let currentConsumer = null;\n if (!isInCheckNoChangesPass) {\n if (viewShouldHaveReactiveConsumer(tView)) {\n currentConsumer = getOrBorrowReactiveLViewConsumer(lView);\n prevConsumer = consumerBeforeComputation$1(currentConsumer);\n }\n else if (getActiveConsumer$1() === null) {\n // If the current view should not have a reactive consumer but we don't have an active consumer,\n // we still need to create a temporary consumer to track any signal reads in this template.\n // This is a rare case that can happen with `viewContainerRef.createEmbeddedView(...).detectChanges()`.\n // This temporary consumer marks the first parent that _should_ have a consumer for refresh.\n // Once that refresh happens, the signals will be tracked in the parent consumer and we can destroy\n // the temporary one.\n returnConsumerToPool = false;\n currentConsumer = getOrCreateTemporaryConsumer(lView);\n prevConsumer = consumerBeforeComputation$1(currentConsumer);\n }\n else if (lView[REACTIVE_TEMPLATE_CONSUMER]) {\n consumerDestroy$1(lView[REACTIVE_TEMPLATE_CONSUMER]);\n lView[REACTIVE_TEMPLATE_CONSUMER] = null;\n }\n }\n try {\n resetPreOrderHookFlags(lView);\n setBindingIndex(tView.bindingStartIndex);\n if (templateFn !== null) {\n executeTemplate(tView, lView, templateFn, 2 /* RenderFlags.Update */, context);\n }\n const hooksInitPhaseCompleted = (flags & 3 /* LViewFlags.InitPhaseStateMask */) === 3 /* InitPhaseState.InitPhaseCompleted */;\n // execute pre-order hooks (OnInit, OnChanges, DoCheck)\n // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n if (!isInCheckNoChangesPass) {\n if (hooksInitPhaseCompleted) {\n const preOrderCheckHooks = tView.preOrderCheckHooks;\n if (preOrderCheckHooks !== null) {\n executeCheckHooks(lView, preOrderCheckHooks, null);\n }\n }\n else {\n const preOrderHooks = tView.preOrderHooks;\n if (preOrderHooks !== null) {\n executeInitAndCheckHooks(lView, preOrderHooks, 0 /* InitPhaseState.OnInitHooksToBeRun */, null);\n }\n incrementInitPhaseFlags(lView, 0 /* InitPhaseState.OnInitHooksToBeRun */);\n }\n }\n // We do not need to mark transplanted views for refresh when doing exhaustive checks\n // because all views will be reached anyways during the traversal.\n if (!isInExhaustiveCheckNoChangesPass) {\n // First mark transplanted views that are declared in this lView as needing a refresh at their\n // insertion points. This is needed to avoid the situation where the template is defined in this\n // `LView` but its declaration appears after the insertion component.\n markTransplantedViewsForRefresh(lView);\n }\n runEffectsInView(lView);\n detectChangesInEmbeddedViews(lView, 0 /* ChangeDetectionMode.Global */);\n // Content query results must be refreshed before content hooks are called.\n if (tView.contentQueries !== null) {\n refreshContentQueries(tView, lView);\n }\n // execute content hooks (AfterContentInit, AfterContentChecked)\n // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n if (!isInCheckNoChangesPass) {\n if (hooksInitPhaseCompleted) {\n const contentCheckHooks = tView.contentCheckHooks;\n if (contentCheckHooks !== null) {\n executeCheckHooks(lView, contentCheckHooks);\n }\n }\n else {\n const contentHooks = tView.contentHooks;\n if (contentHooks !== null) {\n executeInitAndCheckHooks(lView, contentHooks, 1 /* InitPhaseState.AfterContentInitHooksToBeRun */);\n }\n incrementInitPhaseFlags(lView, 1 /* InitPhaseState.AfterContentInitHooksToBeRun */);\n }\n }\n processHostBindingOpCodes(tView, lView);\n // Refresh child component views.\n const components = tView.components;\n if (components !== null) {\n detectChangesInChildComponents(lView, components, 0 /* ChangeDetectionMode.Global */);\n }\n // View queries must execute after refreshing child components because a template in this view\n // could be inserted in a child component. If the view query executes before child component\n // refresh, the template might not yet be inserted.\n const viewQuery = tView.viewQuery;\n if (viewQuery !== null) {\n executeViewQueryFn(2 /* RenderFlags.Update */, viewQuery, context);\n }\n // execute view hooks (AfterViewInit, AfterViewChecked)\n // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n if (!isInCheckNoChangesPass) {\n if (hooksInitPhaseCompleted) {\n const viewCheckHooks = tView.viewCheckHooks;\n if (viewCheckHooks !== null) {\n executeCheckHooks(lView, viewCheckHooks);\n }\n }\n else {\n const viewHooks = tView.viewHooks;\n if (viewHooks !== null) {\n executeInitAndCheckHooks(lView, viewHooks, 2 /* InitPhaseState.AfterViewInitHooksToBeRun */);\n }\n incrementInitPhaseFlags(lView, 2 /* InitPhaseState.AfterViewInitHooksToBeRun */);\n }\n }\n if (tView.firstUpdatePass === true) {\n // We need to make sure that we only flip the flag on successful `refreshView` only\n // Don't do this in `finally` block.\n // If we did this in `finally` block then an exception could block the execution of styling\n // instructions which in turn would be unable to insert themselves into the styling linked\n // list. The result of this would be that if the exception would not be throw on subsequent CD\n // the styling would be unable to process it data and reflect to the DOM.\n tView.firstUpdatePass = false;\n }\n // Schedule any effects that are waiting on the update pass of this view.\n if (lView[EFFECTS_TO_SCHEDULE]) {\n for (const notifyEffect of lView[EFFECTS_TO_SCHEDULE]) {\n notifyEffect();\n }\n // Once they've been run, we can drop the array.\n lView[EFFECTS_TO_SCHEDULE] = null;\n }\n // Do not reset the dirty state when running in check no changes mode. We don't want components\n // to behave differently depending on whether check no changes is enabled or not. For example:\n // Marking an OnPush component as dirty from within the `ngAfterViewInit` hook in order to\n // refresh a `NgClass` binding should work. If we would reset the dirty state in the check\n // no changes cycle, the component would be not be dirty for the next update pass. This would\n // be different in production mode where the component dirty state is not reset.\n if (!isInCheckNoChangesPass) {\n lView[FLAGS] &= ~(64 /* LViewFlags.Dirty */ | 8 /* LViewFlags.FirstLViewPass */);\n }\n }\n catch (e) {\n if (!isInCheckNoChangesPass) {\n // If refreshing a view causes an error, we need to remark the ancestors as needing traversal\n // because the error might have caused a situation where views below the current location are\n // dirty but will be unreachable because the \"has dirty children\" flag in the ancestors has been\n // cleared during change detection and we failed to run to completion.\n markAncestorsForTraversal(lView);\n }\n throw e;\n }\n finally {\n if (currentConsumer !== null) {\n consumerAfterComputation$1(currentConsumer, prevConsumer);\n if (returnConsumerToPool) {\n maybeReturnReactiveLViewConsumer(currentConsumer);\n }\n }\n leaveView();\n }\n}\n/**\n * Goes over embedded views (ones created through ViewContainerRef APIs) and refreshes\n * them by executing an associated template function.\n */\nfunction detectChangesInEmbeddedViews(lView, mode) {\n for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n const embeddedLView = lContainer[i];\n detectChangesInViewIfAttached(embeddedLView, mode);\n }\n }\n}\n/**\n * Mark transplanted views as needing to be refreshed at their attachment points.\n *\n * @param lView The `LView` that may have transplanted views.\n */\nfunction markTransplantedViewsForRefresh(lView) {\n for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {\n if (!(lContainer[FLAGS] & 2 /* LContainerFlags.HasTransplantedViews */))\n continue;\n const movedViews = lContainer[MOVED_VIEWS];\n ngDevMode && assertDefined(movedViews, 'Transplanted View flags set but missing MOVED_VIEWS');\n for (let i = 0; i < movedViews.length; i++) {\n const movedLView = movedViews[i];\n markViewForRefresh(movedLView);\n }\n }\n}\n/**\n * Detects changes in a component by entering the component view and processing its bindings,\n * queries, etc. if it is CheckAlways, OnPush and Dirty, etc.\n *\n * @param componentHostIdx Element index in LView[] (adjusted for HEADER_OFFSET)\n */\nfunction detectChangesInComponent(hostLView, componentHostIdx, mode) {\n ngDevMode && assertEqual(isCreationMode(hostLView), false, 'Should be run in update mode');\n const componentView = getComponentLViewByIndex(componentHostIdx, hostLView);\n detectChangesInViewIfAttached(componentView, mode);\n}\n/**\n * Visits a view as part of change detection traversal.\n *\n * If the view is detached, no additional traversal happens.\n */\nfunction detectChangesInViewIfAttached(lView, mode) {\n if (!viewAttachedToChangeDetector(lView)) {\n return;\n }\n detectChangesInView(lView, mode);\n}\n/**\n * Visits a view as part of change detection traversal.\n *\n * The view is refreshed if:\n * - If the view is CheckAlways or Dirty and ChangeDetectionMode is `Global`\n * - If the view has the `RefreshView` flag\n *\n * The view is not refreshed, but descendants are traversed in `ChangeDetectionMode.Targeted` if the\n * view HasChildViewsToRefresh flag is set.\n */\nfunction detectChangesInView(lView, mode) {\n const isInCheckNoChangesPass = ngDevMode && isInCheckNoChangesMode();\n const tView = lView[TVIEW];\n const flags = lView[FLAGS];\n const consumer = lView[REACTIVE_TEMPLATE_CONSUMER];\n // Refresh CheckAlways views in Global mode.\n let shouldRefreshView = !!(mode === 0 /* ChangeDetectionMode.Global */ && flags & 16 /* LViewFlags.CheckAlways */);\n // Refresh Dirty views in Global mode, as long as we're not in checkNoChanges.\n // CheckNoChanges never worked with `OnPush` components because the `Dirty` flag was\n // cleared before checkNoChanges ran. Because there is now a loop for to check for\n // backwards views, it gives an opportunity for `OnPush` components to be marked `Dirty`\n // before the CheckNoChanges pass. We don't want existing errors that are hidden by the\n // current CheckNoChanges bug to surface when making unrelated changes.\n shouldRefreshView ||= !!(flags & 64 /* LViewFlags.Dirty */ &&\n mode === 0 /* ChangeDetectionMode.Global */ &&\n !isInCheckNoChangesPass);\n // Always refresh views marked for refresh, regardless of mode.\n shouldRefreshView ||= !!(flags & 1024 /* LViewFlags.RefreshView */);\n // Refresh views when they have a dirty reactive consumer, regardless of mode.\n shouldRefreshView ||= !!(consumer?.dirty && consumerPollProducersForChange$1(consumer));\n shouldRefreshView ||= !!(ngDevMode && isExhaustiveCheckNoChanges());\n // Mark the Flags and `ReactiveNode` as not dirty before refreshing the component, so that they\n // can be re-dirtied during the refresh process.\n if (consumer) {\n consumer.dirty = false;\n }\n lView[FLAGS] &= ~(8192 /* LViewFlags.HasChildViewsToRefresh */ | 1024 /* LViewFlags.RefreshView */);\n if (shouldRefreshView) {\n refreshView(tView, lView, tView.template, lView[CONTEXT]);\n }\n else if (flags & 8192 /* LViewFlags.HasChildViewsToRefresh */) {\n runEffectsInView(lView);\n detectChangesInEmbeddedViews(lView, 1 /* ChangeDetectionMode.Targeted */);\n const components = tView.components;\n if (components !== null) {\n detectChangesInChildComponents(lView, components, 1 /* ChangeDetectionMode.Targeted */);\n }\n }\n}\n/** Refreshes child components in the current view (update mode). */\nfunction detectChangesInChildComponents(hostLView, components, mode) {\n for (let i = 0; i < components.length; i++) {\n detectChangesInComponent(hostLView, components[i], mode);\n }\n}\n/**\n * Invoke `HostBindingsFunction`s for view.\n *\n * This methods executes `TView.hostBindingOpCodes`. It is used to execute the\n * `HostBindingsFunction`s associated with the current `LView`.\n *\n * @param tView Current `TView`.\n * @param lView Current `LView`.\n */\nfunction processHostBindingOpCodes(tView, lView) {\n const hostBindingOpCodes = tView.hostBindingOpCodes;\n if (hostBindingOpCodes === null)\n return;\n try {\n for (let i = 0; i < hostBindingOpCodes.length; i++) {\n const opCode = hostBindingOpCodes[i];\n if (opCode < 0) {\n // Negative numbers are element indexes.\n setSelectedIndex(~opCode);\n }\n else {\n // Positive numbers are NumberTuple which store bindingRootIndex and directiveIndex.\n const directiveIdx = opCode;\n const bindingRootIndx = hostBindingOpCodes[++i];\n const hostBindingFn = hostBindingOpCodes[++i];\n setBindingRootForHostBindings(bindingRootIndx, directiveIdx);\n const context = lView[directiveIdx];\n profiler(24 /* ProfilerEvent.HostBindingsUpdateStart */, context);\n hostBindingFn(2 /* RenderFlags.Update */, context);\n profiler(25 /* ProfilerEvent.HostBindingsUpdateEnd */, context);\n }\n }\n }\n finally {\n setSelectedIndex(-1);\n }\n}\n\n/**\n * Marks current view and all ancestors dirty.\n *\n * Returns the root view because it is found as a byproduct of marking the view tree\n * dirty, and can be used by methods that consume markViewDirty() to easily schedule\n * change detection. Otherwise, such methods would need to traverse up the view tree\n * an additional time to get the root view and schedule a tick on it.\n *\n * @param lView The starting LView to mark dirty\n * @returns the root LView\n */\nfunction markViewDirty(lView, source) {\n const dirtyBitsToUse = isRefreshingViews()\n ? // When we are actively refreshing views, we only use the `Dirty` bit to mark a view\n 64 /* LViewFlags.Dirty */\n : // When we are not actively refreshing a view tree, it is absolutely\n // valid to update state and mark views dirty. We use the `RefreshView` flag in this\n // case to allow synchronously rerunning change detection. This applies today to\n // afterRender hooks as well as animation listeners which execute after detecting\n // changes in a view when the render factory flushes.\n 1024 /* LViewFlags.RefreshView */ | 64 /* LViewFlags.Dirty */;\n lView[ENVIRONMENT].changeDetectionScheduler?.notify(source);\n while (lView) {\n lView[FLAGS] |= dirtyBitsToUse;\n const parent = getLViewParent(lView);\n // Stop traversing up as soon as you find a root view that wasn't attached to any container\n if (isRootView(lView) && !parent) {\n return lView;\n }\n // continue otherwise\n lView = parent;\n }\n return null;\n}\n\nclass ViewRef$1 {\n _lView;\n _cdRefInjectingView;\n notifyErrorHandler;\n _appRef = null;\n _attachedToViewContainer = false;\n get rootNodes() {\n const lView = this._lView;\n const tView = lView[TVIEW];\n return collectNativeNodes(tView, lView, tView.firstChild, []);\n }\n constructor(\n /**\n * This represents `LView` associated with the component when ViewRef is a ChangeDetectorRef.\n *\n * When ViewRef is created for a dynamic component, this also represents the `LView` for the\n * component.\n *\n * For a \"regular\" ViewRef created for an embedded view, this is the `LView` for the embedded\n * view.\n *\n * @internal\n */\n _lView, \n /**\n * This represents the `LView` associated with the point where `ChangeDetectorRef` was\n * requested.\n *\n * This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.\n */\n _cdRefInjectingView, notifyErrorHandler = true) {\n this._lView = _lView;\n this._cdRefInjectingView = _cdRefInjectingView;\n this.notifyErrorHandler = notifyErrorHandler;\n }\n get context() {\n return this._lView[CONTEXT];\n }\n /**\n * Reports whether the given view is considered dirty according to the different marking mechanisms.\n */\n get dirty() {\n return (!!(this._lView[FLAGS] &\n (64 /* LViewFlags.Dirty */ | 1024 /* LViewFlags.RefreshView */ | 8192 /* LViewFlags.HasChildViewsToRefresh */)) || !!this._lView[REACTIVE_TEMPLATE_CONSUMER]?.dirty);\n }\n /**\n * @deprecated Replacing the full context object is not supported. Modify the context\n * directly, or consider using a `Proxy` if you need to replace the full object.\n * // TODO(devversion): Remove this.\n */\n set context(value) {\n if (ngDevMode) {\n // Note: We have a warning message here because the `@deprecated` JSDoc will not be picked\n // up for assignments on the setter. We want to let users know about the deprecated usage.\n console.warn('Angular: Replacing the `context` object of an `EmbeddedViewRef` is deprecated.');\n }\n this._lView[CONTEXT] = value;\n }\n get destroyed() {\n return isDestroyed(this._lView);\n }\n destroy() {\n if (this._appRef) {\n this._appRef.detachView(this);\n }\n else if (this._attachedToViewContainer) {\n const parent = this._lView[PARENT];\n if (isLContainer(parent)) {\n const viewRefs = parent[VIEW_REFS];\n const index = viewRefs ? viewRefs.indexOf(this) : -1;\n if (index > -1) {\n ngDevMode &&\n assertEqual(index, parent.indexOf(this._lView) - CONTAINER_HEADER_OFFSET, 'An attached view should be in the same position within its container as its ViewRef in the VIEW_REFS array.');\n detachView(parent, index);\n removeFromArray(viewRefs, index);\n }\n }\n this._attachedToViewContainer = false;\n }\n destroyLView(this._lView[TVIEW], this._lView);\n }\n onDestroy(callback) {\n storeLViewOnDestroy(this._lView, callback);\n }\n /**\n * Marks a view and all of its ancestors dirty.\n *\n * This can be used to ensure an {@link ChangeDetectionStrategy#OnPush} component is\n * checked when it needs to be re-rendered but the two normal triggers haven't marked it\n * dirty (i.e. inputs haven't changed and events haven't fired in the view).\n *\n * <!-- TODO: Add a link to a chapter on OnPush components -->\n *\n * @usageNotes\n * ### Example\n *\n * ```ts\n * @Component({\n * selector: 'app-root',\n * template: `Number of ticks: {{numberOfTicks}}`\n * changeDetection: ChangeDetectionStrategy.OnPush,\n * })\n * class AppComponent {\n * numberOfTicks = 0;\n *\n * constructor(private ref: ChangeDetectorRef) {\n * setInterval(() => {\n * this.numberOfTicks++;\n * // the following is required, otherwise the view will not be updated\n * this.ref.markForCheck();\n * }, 1000);\n * }\n * }\n * ```\n */\n markForCheck() {\n markViewDirty(this._cdRefInjectingView || this._lView, 4 /* NotificationSource.MarkForCheck */);\n }\n markForRefresh() {\n markViewForRefresh(this._cdRefInjectingView || this._lView);\n }\n /**\n * Detaches the view from the change detection tree.\n *\n * Detached views will not be checked during change detection runs until they are\n * re-attached, even if they are dirty. `detach` can be used in combination with\n * {@link ChangeDetectorRef#detectChanges} to implement local change\n * detection checks.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->\n *\n * @usageNotes\n * ### Example\n *\n * The following example defines a component with a large list of readonly data.\n * Imagine the data changes constantly, many times per second. For performance reasons,\n * we want to check and update the list every five seconds. We can do that by detaching\n * the component's change detector and doing a local check every five seconds.\n *\n * ```ts\n * class DataProvider {\n * // in a real application the returned data will be different every time\n * get data() {\n * return [1,2,3,4,5];\n * }\n * }\n *\n * @Component({\n * selector: 'giant-list',\n * template: `\n * <li *ngFor=\"let d of dataProvider.data\">Data {{d}}</li>\n * `,\n * })\n * class GiantList {\n * constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {\n * ref.detach();\n * setInterval(() => {\n * this.ref.detectChanges();\n * }, 5000);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * providers: [DataProvider],\n * template: `\n * <giant-list><giant-list>\n * `,\n * })\n * class App {\n * }\n * ```\n */\n detach() {\n this._lView[FLAGS] &= ~128 /* LViewFlags.Attached */;\n }\n /**\n * Re-attaches a view to the change detection tree.\n *\n * This can be used to re-attach views that were previously detached from the tree\n * using {@link ChangeDetectorRef#detach}. Views are attached to the tree by default.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n *\n * @usageNotes\n * ### Example\n *\n * The following example creates a component displaying `live` data. The component will detach\n * its change detector from the main change detector tree when the component's live property\n * is set to false.\n *\n * ```ts\n * class DataProvider {\n * data = 1;\n *\n * constructor() {\n * setInterval(() => {\n * this.data = this.data * 2;\n * }, 500);\n * }\n * }\n *\n * @Component({\n * selector: 'live-data',\n * inputs: ['live'],\n * template: 'Data: {{dataProvider.data}}'\n * })\n * class LiveData {\n * constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {}\n *\n * set live(value) {\n * if (value) {\n * this.ref.reattach();\n * } else {\n * this.ref.detach();\n * }\n * }\n * }\n *\n * @Component({\n * selector: 'app-root',\n * providers: [DataProvider],\n * template: `\n * Live Update: <input type=\"checkbox\" [(ngModel)]=\"live\">\n * <live-data [live]=\"live\"><live-data>\n * `,\n * })\n * class AppComponent {\n * live = true;\n * }\n * ```\n */\n reattach() {\n updateAncestorTraversalFlagsOnAttach(this._lView);\n this._lView[FLAGS] |= 128 /* LViewFlags.Attached */;\n }\n /**\n * Checks the view and its children.\n *\n * This can also be used in combination with {@link ChangeDetectorRef#detach} to implement\n * local change detection checks.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->\n *\n * @usageNotes\n * ### Example\n *\n * The following example defines a component with a large list of readonly data.\n * Imagine, the data changes constantly, many times per second. For performance reasons,\n * we want to check and update the list every five seconds.\n *\n * We can do that by detaching the component's change detector and doing a local change detection\n * check every five seconds.\n *\n * See {@link ChangeDetectorRef#detach} for more information.\n */\n detectChanges() {\n // Add `RefreshView` flag to ensure this view is refreshed if not already dirty.\n // `RefreshView` flag is used intentionally over `Dirty` because it gets cleared before\n // executing any of the actual refresh code while the `Dirty` flag doesn't get cleared\n // until the end of the refresh. Using `RefreshView` prevents creating a potential difference\n // in the state of the LViewFlags during template execution.\n this._lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n detectChangesInternal(this._lView, this.notifyErrorHandler);\n }\n /**\n * Checks the change detector and its children, and throws if any changes are detected.\n *\n * This is used in development mode to verify that running change detection doesn't\n * introduce other changes.\n */\n checkNoChanges() {\n if (ngDevMode) {\n checkNoChangesInternal(this._lView, CheckNoChangesMode.OnlyDirtyViews, this.notifyErrorHandler);\n }\n }\n attachToViewContainerRef() {\n if (this._appRef) {\n throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, ngDevMode && 'This view is already attached directly to the ApplicationRef!');\n }\n this._attachedToViewContainer = true;\n }\n detachFromAppRef() {\n this._appRef = null;\n const isRoot = isRootView(this._lView);\n const declarationContainer = this._lView[DECLARATION_LCONTAINER];\n if (declarationContainer !== null && !isRoot) {\n detachMovedView(declarationContainer, this._lView);\n }\n detachViewFromDOM(this._lView[TVIEW], this._lView);\n }\n attachToAppRef(appRef) {\n if (this._attachedToViewContainer) {\n throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, ngDevMode && 'This view is already attached to a ViewContainer!');\n }\n this._appRef = appRef;\n const isRoot = isRootView(this._lView);\n const declarationContainer = this._lView[DECLARATION_LCONTAINER];\n if (declarationContainer !== null && !isRoot) {\n trackMovedView(declarationContainer, this._lView);\n }\n updateAncestorTraversalFlagsOnAttach(this._lView);\n }\n}\n\n/**\n * Represents an embedded template that can be used to instantiate embedded views.\n * To instantiate embedded views based on a template, use the `ViewContainerRef`\n * method `createEmbeddedView()`.\n *\n * Access a `TemplateRef` instance by placing a directive on an `<ng-template>`\n * element (or directive prefixed with `*`). The `TemplateRef` for the embedded view\n * is injected into the constructor of the directive,\n * using the `TemplateRef` token.\n *\n * You can also use a `Query` to find a `TemplateRef` associated with\n * a component or a directive.\n *\n * @see {@link ViewContainerRef}\n *\n * @publicApi\n */\nclass TemplateRef {\n /**\n * @internal\n * @nocollapse\n */\n static __NG_ELEMENT_ID__ = injectTemplateRef;\n}\nconst ViewEngineTemplateRef = TemplateRef;\n// TODO(alxhub): combine interface and implementation. Currently this is challenging since something\n// in g3 depends on them being separate.\nconst R3TemplateRef = class TemplateRef extends ViewEngineTemplateRef {\n _declarationLView;\n _declarationTContainer;\n elementRef;\n constructor(_declarationLView, _declarationTContainer, elementRef) {\n super();\n this._declarationLView = _declarationLView;\n this._declarationTContainer = _declarationTContainer;\n this.elementRef = elementRef;\n }\n /**\n * Returns an `ssrId` associated with a TView, which was used to\n * create this instance of the `TemplateRef`.\n *\n * @internal\n */\n get ssrId() {\n return this._declarationTContainer.tView?.ssrId || null;\n }\n createEmbeddedView(context, injector) {\n return this.createEmbeddedViewImpl(context, injector);\n }\n /**\n * @internal\n */\n createEmbeddedViewImpl(context, injector, dehydratedView) {\n const embeddedLView = createAndRenderEmbeddedLView(this._declarationLView, this._declarationTContainer, context, { embeddedViewInjector: injector, dehydratedView });\n return new ViewRef$1(embeddedLView);\n }\n};\n/**\n * Creates a TemplateRef given a node.\n *\n * @returns The TemplateRef instance to use\n */\nfunction injectTemplateRef() {\n return createTemplateRef(getCurrentTNode(), getLView());\n}\n/**\n * Creates a TemplateRef and stores it on the injector.\n *\n * @param hostTNode The node on which a TemplateRef is requested\n * @param hostLView The `LView` to which the node belongs\n * @returns The TemplateRef instance or null if we can't create a TemplateRef on a given node type\n */\nfunction createTemplateRef(hostTNode, hostLView) {\n if (hostTNode.type & 4 /* TNodeType.Container */) {\n ngDevMode && assertDefined(hostTNode.tView, 'TView must be allocated');\n return new R3TemplateRef(hostLView, hostTNode, createElementRef(hostTNode, hostLView));\n }\n return null;\n}\n\nconst AT_THIS_LOCATION = '<-- AT THIS LOCATION';\n/**\n * Retrieves a user friendly string for a given TNodeType for use in\n * friendly error messages\n *\n * @param tNodeType\n * @returns\n */\nfunction getFriendlyStringFromTNodeType(tNodeType) {\n switch (tNodeType) {\n case 4 /* TNodeType.Container */:\n return 'view container';\n case 2 /* TNodeType.Element */:\n return 'element';\n case 8 /* TNodeType.ElementContainer */:\n return 'ng-container';\n case 32 /* TNodeType.Icu */:\n return 'icu';\n case 64 /* TNodeType.Placeholder */:\n return 'i18n';\n case 16 /* TNodeType.Projection */:\n return 'projection';\n case 1 /* TNodeType.Text */:\n return 'text';\n case 128 /* TNodeType.LetDeclaration */:\n return '@let';\n default:\n // This should not happen as we cover all possible TNode types above.\n return '<unknown>';\n }\n}\n/**\n * Validates that provided nodes match during the hydration process.\n */\nfunction validateMatchingNode(node, nodeType, tagName, lView, tNode, isViewContainerAnchor = false) {\n if (!node ||\n node.nodeType !== nodeType ||\n (node.nodeType === Node.ELEMENT_NODE &&\n node.tagName.toLowerCase() !== tagName?.toLowerCase())) {\n const expectedNode = shortRNodeDescription(nodeType, tagName, null);\n let header = `During hydration Angular expected ${expectedNode} but `;\n const hostComponentDef = getDeclarationComponentDef(lView);\n const componentClassName = hostComponentDef?.type?.name;\n const expectedDom = describeExpectedDom(lView, tNode, isViewContainerAnchor);\n const expected = `Angular expected this DOM:\\n\\n${expectedDom}\\n\\n`;\n let actual = '';\n const componentHostElement = unwrapRNode(lView[HOST]);\n if (!node) {\n // No node found during hydration.\n header += `the node was not found.\\n\\n`;\n // Since the node is missing, we use the closest node to attach the error to\n markRNodeAsHavingHydrationMismatch(componentHostElement, expectedDom);\n }\n else {\n const actualNode = shortRNodeDescription(node.nodeType, node.tagName ?? null, node.textContent ?? null);\n header += `found ${actualNode}.\\n\\n`;\n const actualDom = describeDomFromNode(node);\n actual = `Actual DOM is:\\n\\n${actualDom}\\n\\n`;\n // DevTools only report hydration issues on the component level, so we attach extra debug\n // info to a component host element to make it available to DevTools.\n markRNodeAsHavingHydrationMismatch(componentHostElement, expectedDom, actualDom);\n }\n const footer = getHydrationErrorFooter(componentClassName);\n const message = header + expected + actual + getHydrationAttributeNote() + footer;\n throw new RuntimeError(-500 /* RuntimeErrorCode.HYDRATION_NODE_MISMATCH */, message);\n }\n}\n/**\n * Validates that a given node has sibling nodes\n */\nfunction validateSiblingNodeExists(node) {\n validateNodeExists(node);\n if (!node.nextSibling) {\n const header = 'During hydration Angular expected more sibling nodes to be present.\\n\\n';\n const actual = `Actual DOM is:\\n\\n${describeDomFromNode(node)}\\n\\n`;\n const footer = getHydrationErrorFooter();\n const message = header + actual + footer;\n markRNodeAsHavingHydrationMismatch(node, '', actual);\n throw new RuntimeError(-501 /* RuntimeErrorCode.HYDRATION_MISSING_SIBLINGS */, message);\n }\n}\n/**\n * Validates that a node exists or throws\n */\nfunction validateNodeExists(node, lView = null, tNode = null) {\n if (!node) {\n const header = 'During hydration, Angular expected an element to be present at this location.\\n\\n';\n let expected = '';\n let footer = '';\n if (lView !== null && tNode !== null) {\n expected = describeExpectedDom(lView, tNode, false);\n footer = getHydrationErrorFooter();\n // Since the node is missing, we use the closest node to attach the error to\n markRNodeAsHavingHydrationMismatch(unwrapRNode(lView[HOST]), expected, '');\n }\n throw new RuntimeError(-502 /* RuntimeErrorCode.HYDRATION_MISSING_NODE */, `${header}${expected}\\n\\n${footer}`);\n }\n}\n/**\n * Builds the hydration error message when a node is not found\n *\n * @param lView the LView where the node exists\n * @param tNode the TNode\n */\nfunction nodeNotFoundError(lView, tNode) {\n const header = 'During serialization, Angular was unable to find an element in the DOM:\\n\\n';\n const expected = `${describeExpectedDom(lView, tNode, false)}\\n\\n`;\n const footer = getHydrationErrorFooter();\n throw new RuntimeError(-502 /* RuntimeErrorCode.HYDRATION_MISSING_NODE */, header + expected + footer);\n}\n/**\n * Builds a hydration error message when a node is not found at a path location\n *\n * @param host the Host Node\n * @param path the path to the node\n */\nfunction nodeNotFoundAtPathError(host, path) {\n const header = `During hydration Angular was unable to locate a node ` +\n `using the \"${path}\" path, starting from the ${describeRNode(host)} node.\\n\\n`;\n const footer = getHydrationErrorFooter();\n markRNodeAsHavingHydrationMismatch(host);\n throw new RuntimeError(-502 /* RuntimeErrorCode.HYDRATION_MISSING_NODE */, header + footer);\n}\n/**\n * Builds the hydration error message in the case that dom nodes are created outside of\n * the Angular context and are being used as projected nodes\n *\n * @param lView the LView\n * @param tNode the TNode\n * @returns an error\n */\nfunction unsupportedProjectionOfDomNodes(rNode) {\n const header = 'During serialization, Angular detected DOM nodes ' +\n 'that were created outside of Angular context and provided as projectable nodes ' +\n '(likely via `ViewContainerRef.createComponent` or `createComponent` APIs). ' +\n 'Hydration is not supported for such cases, consider refactoring the code to avoid ' +\n 'this pattern or using `ngSkipHydration` on the host element of the component.\\n\\n';\n const actual = `${describeDomFromNode(rNode)}\\n\\n`;\n const message = header + actual + getHydrationAttributeNote();\n return new RuntimeError(-503 /* RuntimeErrorCode.UNSUPPORTED_PROJECTION_DOM_NODES */, message);\n}\n/**\n * Builds the hydration error message in the case that ngSkipHydration was used on a\n * node that is not a component host element or host binding\n *\n * @param rNode the HTML Element\n * @returns an error\n */\nfunction invalidSkipHydrationHost(rNode) {\n const header = 'The `ngSkipHydration` flag is applied on a node ' +\n \"that doesn't act as a component host. Hydration can be \" +\n 'skipped only on per-component basis.\\n\\n';\n const actual = `${describeDomFromNode(rNode)}\\n\\n`;\n const footer = 'Please move the `ngSkipHydration` attribute to the component host element.\\n\\n';\n const message = header + actual + footer;\n return new RuntimeError(-504 /* RuntimeErrorCode.INVALID_SKIP_HYDRATION_HOST */, message);\n}\n// Stringification methods\n/**\n * Stringifies a given TNode's attributes\n *\n * @param tNode a provided TNode\n * @returns string\n */\nfunction stringifyTNodeAttrs(tNode) {\n const results = [];\n if (tNode.attrs) {\n for (let i = 0; i < tNode.attrs.length;) {\n const attrName = tNode.attrs[i++];\n // Once we reach the first flag, we know that the list of\n // attributes is over.\n if (typeof attrName == 'number') {\n break;\n }\n const attrValue = tNode.attrs[i++];\n results.push(`${attrName}=\"${shorten(attrValue)}\"`);\n }\n }\n return results.join(' ');\n}\n/**\n * The list of internal attributes that should be filtered out while\n * producing an error message.\n */\nconst internalAttrs = new Set(['ngh', 'ng-version', 'ng-server-context']);\n/**\n * Stringifies an HTML Element's attributes\n *\n * @param rNode an HTML Element\n * @returns string\n */\nfunction stringifyRNodeAttrs(rNode) {\n const results = [];\n for (let i = 0; i < rNode.attributes.length; i++) {\n const attr = rNode.attributes[i];\n if (internalAttrs.has(attr.name))\n continue;\n results.push(`${attr.name}=\"${shorten(attr.value)}\"`);\n }\n return results.join(' ');\n}\n// Methods for Describing the DOM\n/**\n * Converts a tNode to a helpful readable string value for use in error messages\n *\n * @param tNode a given TNode\n * @param innerContent the content of the node\n * @returns string\n */\nfunction describeTNode(tNode, innerContent = '…') {\n switch (tNode.type) {\n case 1 /* TNodeType.Text */:\n const content = tNode.value ? `(${tNode.value})` : '';\n return `#text${content}`;\n case 2 /* TNodeType.Element */:\n const attrs = stringifyTNodeAttrs(tNode);\n const tag = tNode.value.toLowerCase();\n return `<${tag}${attrs ? ' ' + attrs : ''}>${innerContent}</${tag}>`;\n case 8 /* TNodeType.ElementContainer */:\n return '<!-- ng-container -->';\n case 4 /* TNodeType.Container */:\n return '<!-- container -->';\n default:\n const typeAsString = getFriendlyStringFromTNodeType(tNode.type);\n return `#node(${typeAsString})`;\n }\n}\n/**\n * Converts an RNode to a helpful readable string value for use in error messages\n *\n * @param rNode a given RNode\n * @param innerContent the content of the node\n * @returns string\n */\nfunction describeRNode(rNode, innerContent = '…') {\n const node = rNode;\n switch (node.nodeType) {\n case Node.ELEMENT_NODE:\n const tag = node.tagName.toLowerCase();\n const attrs = stringifyRNodeAttrs(node);\n return `<${tag}${attrs ? ' ' + attrs : ''}>${innerContent}</${tag}>`;\n case Node.TEXT_NODE:\n const content = node.textContent ? shorten(node.textContent) : '';\n return `#text${content ? `(${content})` : ''}`;\n case Node.COMMENT_NODE:\n return `<!-- ${shorten(node.textContent ?? '')} -->`;\n default:\n return `#node(${node.nodeType})`;\n }\n}\n/**\n * Builds the string containing the expected DOM present given the LView and TNode\n * values for a readable error message\n *\n * @param lView the lView containing the DOM\n * @param tNode the tNode\n * @param isViewContainerAnchor boolean\n * @returns string\n */\nfunction describeExpectedDom(lView, tNode, isViewContainerAnchor) {\n const spacer = ' ';\n let content = '';\n if (tNode.prev) {\n content += spacer + '…\\n';\n content += spacer + describeTNode(tNode.prev) + '\\n';\n }\n else if (tNode.type && tNode.type & 12 /* TNodeType.AnyContainer */) {\n content += spacer + '…\\n';\n }\n if (isViewContainerAnchor) {\n content += spacer + describeTNode(tNode) + '\\n';\n content += spacer + `<!-- container --> ${AT_THIS_LOCATION}\\n`;\n }\n else {\n content += spacer + describeTNode(tNode) + ` ${AT_THIS_LOCATION}\\n`;\n }\n content += spacer + '…\\n';\n const parentRNode = tNode.type ? getParentRElement(lView[TVIEW], tNode, lView) : null;\n if (parentRNode) {\n content = describeRNode(parentRNode, '\\n' + content);\n }\n return content;\n}\n/**\n * Builds the string containing the DOM present around a given RNode for a\n * readable error message\n *\n * @param node the RNode\n * @returns string\n */\nfunction describeDomFromNode(node) {\n const spacer = ' ';\n let content = '';\n const currentNode = node;\n if (currentNode.previousSibling) {\n content += spacer + '…\\n';\n content += spacer + describeRNode(currentNode.previousSibling) + '\\n';\n }\n content += spacer + describeRNode(currentNode) + ` ${AT_THIS_LOCATION}\\n`;\n if (node.nextSibling) {\n content += spacer + '…\\n';\n }\n if (node.parentNode) {\n content = describeRNode(currentNode.parentNode, '\\n' + content);\n }\n return content;\n}\n/**\n * Shortens the description of a given RNode by its type for readability\n *\n * @param nodeType the type of node\n * @param tagName the node tag name\n * @param textContent the text content in the node\n * @returns string\n */\nfunction shortRNodeDescription(nodeType, tagName, textContent) {\n switch (nodeType) {\n case Node.ELEMENT_NODE:\n return `<${tagName.toLowerCase()}>`;\n case Node.TEXT_NODE:\n const content = textContent ? ` (with the \"${shorten(textContent)}\" content)` : '';\n return `a text node${content}`;\n case Node.COMMENT_NODE:\n return 'a comment node';\n default:\n return `#node(nodeType=${nodeType})`;\n }\n}\n/**\n * Builds the footer hydration error message\n *\n * @param componentClassName the name of the component class\n * @returns string\n */\nfunction getHydrationErrorFooter(componentClassName) {\n const componentInfo = componentClassName ? `the \"${componentClassName}\"` : 'corresponding';\n return (`To fix this problem:\\n` +\n ` * check ${componentInfo} component for hydration-related issues\\n` +\n ` * check to see if your template has valid HTML structure\\n` +\n ` * or skip hydration by adding the \\`ngSkipHydration\\` attribute ` +\n `to its host node in a template\\n\\n`);\n}\n/**\n * An attribute related note for hydration errors\n */\nfunction getHydrationAttributeNote() {\n return ('Note: attributes are only displayed to better represent the DOM' +\n ' but have no effect on hydration mismatches.\\n\\n');\n}\n// Node string utility functions\n/**\n * Strips all newlines out of a given string\n *\n * @param input a string to be cleared of new line characters\n * @returns\n */\nfunction stripNewlines(input) {\n return input.replace(/\\s+/gm, '');\n}\n/**\n * Reduces a string down to a maximum length of characters with ellipsis for readability\n *\n * @param input a string input\n * @param maxLength a maximum length in characters\n * @returns string\n */\nfunction shorten(input, maxLength = 50) {\n if (!input) {\n return '';\n }\n input = stripNewlines(input);\n return input.length > maxLength ? `${input.substring(0, maxLength - 1)}…` : input;\n}\n\n/**\n * Find a node in front of which `currentTNode` should be inserted (takes i18n into account).\n *\n * This method determines the `RNode` in front of which we should insert the `currentRNode`. This\n * takes `TNode.insertBeforeIndex` into account.\n *\n * @param parentTNode parent `TNode`\n * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)\n * @param lView current `LView`\n */\nfunction getInsertInFrontOfRNodeWithI18n(parentTNode, currentTNode, lView) {\n const tNodeInsertBeforeIndex = currentTNode.insertBeforeIndex;\n const insertBeforeIndex = Array.isArray(tNodeInsertBeforeIndex)\n ? tNodeInsertBeforeIndex[0]\n : tNodeInsertBeforeIndex;\n if (insertBeforeIndex === null) {\n return getInsertInFrontOfRNodeWithNoI18n(parentTNode, currentTNode, lView);\n }\n else {\n ngDevMode && assertIndexInRange(lView, insertBeforeIndex);\n return unwrapRNode(lView[insertBeforeIndex]);\n }\n}\n/**\n * Process `TNode.insertBeforeIndex` by adding i18n text nodes.\n *\n * See `TNode.insertBeforeIndex`\n */\nfunction processI18nInsertBefore(renderer, childTNode, lView, childRNode, parentRElement) {\n const tNodeInsertBeforeIndex = childTNode.insertBeforeIndex;\n if (Array.isArray(tNodeInsertBeforeIndex)) {\n // An array indicates that there are i18n nodes that need to be added as children of this\n // `childRNode`. These i18n nodes were created before this `childRNode` was available and so\n // only now can be added. The first element of the array is the normal index where we should\n // insert the `childRNode`. Additional elements are the extra nodes to be added as children of\n // `childRNode`.\n ngDevMode && assertDomNode(childRNode);\n let i18nParent = childRNode;\n let anchorRNode = null;\n if (!(childTNode.type & 3 /* TNodeType.AnyRNode */)) {\n anchorRNode = i18nParent;\n i18nParent = parentRElement;\n }\n if (i18nParent !== null && childTNode.componentOffset === -1) {\n for (let i = 1; i < tNodeInsertBeforeIndex.length; i++) {\n // No need to `unwrapRNode` because all of the indexes point to i18n text nodes.\n // see `assertDomNode` below.\n const i18nChild = lView[tNodeInsertBeforeIndex[i]];\n nativeInsertBefore(renderer, i18nParent, i18nChild, anchorRNode, false);\n }\n }\n }\n}\n\nfunction getOrCreateTNode(tView, index, type, name, attrs) {\n ngDevMode &&\n index !== 0 && // 0 are bogus nodes and they are OK. See `createContainerRef` in\n // `view_engine_compatibility` for additional context.\n assertGreaterThanOrEqual(index, HEADER_OFFSET, \"TNodes can't be in the LView header.\");\n // Keep this function short, so that the VM will inline it.\n ngDevMode && assertPureTNodeType(type);\n let tNode = tView.data[index];\n if (tNode === null) {\n tNode = createTNodeAtIndex(tView, index, type, name, attrs);\n if (isInI18nBlock()) {\n // If we are in i18n block then all elements should be pre declared through `Placeholder`\n // See `TNodeType.Placeholder` and `LFrame.inI18n` for more context.\n // If the `TNode` was not pre-declared than it means it was not mentioned which means it was\n // removed, so we mark it as detached.\n tNode.flags |= 32 /* TNodeFlags.isDetached */;\n }\n }\n else if (tNode.type & 64 /* TNodeType.Placeholder */) {\n tNode.type = type;\n tNode.value = name;\n tNode.attrs = attrs;\n const parent = getCurrentParentTNode();\n tNode.injectorIndex = parent === null ? -1 : parent.injectorIndex;\n ngDevMode && assertTNodeForTView(tNode, tView);\n ngDevMode && assertEqual(index, tNode.index, 'Expecting same index');\n }\n setCurrentTNode(tNode, true);\n return tNode;\n}\nfunction createTNodeAtIndex(tView, index, type, name, attrs) {\n const currentTNode = getCurrentTNodePlaceholderOk();\n const isParent = isCurrentTNodeParent();\n const parent = isParent ? currentTNode : currentTNode && currentTNode.parent;\n // Parents cannot cross component boundaries because components will be used in multiple places.\n const tNode = (tView.data[index] = createTNode(tView, parent, type, index, name, attrs));\n // Assign a pointer to the first child node of a given view. The first node is not always the one\n // at index 0, in case of i18n, index 0 can be the instruction `i18nStart` and the first node has\n // the index 1 or more, so we can't just check node index.\n linkTNodeInTView(tView, tNode, currentTNode, isParent);\n return tNode;\n}\nfunction linkTNodeInTView(tView, tNode, currentTNode, isParent) {\n if (tView.firstChild === null) {\n tView.firstChild = tNode;\n }\n if (currentTNode !== null) {\n if (isParent) {\n // FIXME(misko): This logic looks unnecessarily complicated. Could we simplify?\n if (currentTNode.child == null && tNode.parent !== null) {\n // We are in the same view, which means we are adding content node to the parent view.\n currentTNode.child = tNode;\n }\n }\n else {\n if (currentTNode.next === null) {\n // In the case of i18n the `currentTNode` may already be linked, in which case we don't want\n // to break the links which i18n created.\n currentTNode.next = tNode;\n tNode.prev = currentTNode;\n }\n }\n }\n}\nfunction createTNode(tView, tParent, type, index, value, attrs) {\n ngDevMode &&\n index !== 0 && // 0 are bogus nodes and they are OK. See `createContainerRef` in\n // `view_engine_compatibility` for additional context.\n assertGreaterThanOrEqual(index, HEADER_OFFSET, \"TNodes can't be in the LView header.\");\n ngDevMode && assertNotSame(attrs, undefined, \"'undefined' is not valid value for 'attrs'\");\n ngDevMode && ngDevMode.tNode++;\n ngDevMode && tParent && assertTNodeForTView(tParent, tView);\n let injectorIndex = tParent ? tParent.injectorIndex : -1;\n let flags = 0;\n if (isInSkipHydrationBlock$1()) {\n flags |= 128 /* TNodeFlags.inSkipHydrationBlock */;\n }\n // TODO: would it be helpful to use a prototypal inheritance here, similar to the way we do so with signals?\n const tNode = {\n type,\n index,\n insertBeforeIndex: null,\n injectorIndex,\n directiveStart: -1,\n directiveEnd: -1,\n directiveStylingLast: -1,\n componentOffset: -1,\n propertyBindings: null,\n flags,\n providerIndexes: 0,\n value: value,\n attrs: attrs,\n mergedAttrs: null,\n localNames: null,\n initialInputs: undefined,\n inputs: null,\n outputs: null,\n tView: null,\n next: null,\n prev: null,\n projectionNext: null,\n child: null,\n parent: tParent,\n projection: null,\n styles: null,\n stylesWithoutHost: null,\n residualStyles: undefined,\n classes: null,\n classesWithoutHost: null,\n residualClasses: undefined,\n classBindings: 0,\n styleBindings: 0,\n };\n if (ngDevMode) {\n // For performance reasons it is important that the tNode retains the same shape during runtime.\n // (To make sure that all of the code is monomorphic.) For this reason we seal the object to\n // prevent class transitions.\n Object.seal(tNode);\n }\n return tNode;\n}\n\n/**\n * Add `tNode` to `previousTNodes` list and update relevant `TNode`s in `previousTNodes` list\n * `tNode.insertBeforeIndex`.\n *\n * Things to keep in mind:\n * 1. All i18n text nodes are encoded as `TNodeType.Element` and are created eagerly by the\n * `ɵɵi18nStart` instruction.\n * 2. All `TNodeType.Placeholder` `TNodes` are elements which will be created later by\n * `ɵɵelementStart` instruction.\n * 3. `ɵɵelementStart` instruction will create `TNode`s in the ascending `TNode.index` order. (So a\n * smaller index `TNode` is guaranteed to be created before a larger one)\n *\n * We use the above three invariants to determine `TNode.insertBeforeIndex`.\n *\n * In an ideal world `TNode.insertBeforeIndex` would always be `TNode.next.index`. However,\n * this will not work because `TNode.next.index` may be larger than `TNode.index` which means that\n * the next node is not yet created and therefore we can't insert in front of it.\n *\n * Rule1: `TNode.insertBeforeIndex = null` if `TNode.next === null` (Initial condition, as we don't\n * know if there will be further `TNode`s inserted after.)\n * Rule2: If `previousTNode` is created after the `tNode` being inserted, then\n * `previousTNode.insertBeforeNode = tNode.index` (So when a new `tNode` is added we check\n * previous to see if we can update its `insertBeforeTNode`)\n *\n * See `TNode.insertBeforeIndex` for more context.\n *\n * @param previousTNodes A list of previous TNodes so that we can easily traverse `TNode`s in\n * reverse order. (If `TNode` would have `previous` this would not be necessary.)\n * @param newTNode A TNode to add to the `previousTNodes` list.\n */\nfunction addTNodeAndUpdateInsertBeforeIndex(previousTNodes, newTNode) {\n // Start with Rule1\n ngDevMode &&\n assertEqual(newTNode.insertBeforeIndex, null, 'We expect that insertBeforeIndex is not set');\n previousTNodes.push(newTNode);\n if (previousTNodes.length > 1) {\n for (let i = previousTNodes.length - 2; i >= 0; i--) {\n const existingTNode = previousTNodes[i];\n // Text nodes are created eagerly and so they don't need their `indexBeforeIndex` updated.\n // It is safe to ignore them.\n if (!isI18nText(existingTNode)) {\n if (isNewTNodeCreatedBefore(existingTNode, newTNode) &&\n getInsertBeforeIndex(existingTNode) === null) {\n // If it was created before us in time, (and it does not yet have `insertBeforeIndex`)\n // then add the `insertBeforeIndex`.\n setInsertBeforeIndex(existingTNode, newTNode.index);\n }\n }\n }\n }\n}\nfunction isI18nText(tNode) {\n return !(tNode.type & 64 /* TNodeType.Placeholder */);\n}\nfunction isNewTNodeCreatedBefore(existingTNode, newTNode) {\n return isI18nText(newTNode) || existingTNode.index > newTNode.index;\n}\nfunction getInsertBeforeIndex(tNode) {\n const index = tNode.insertBeforeIndex;\n return Array.isArray(index) ? index[0] : index;\n}\nfunction setInsertBeforeIndex(tNode, value) {\n const index = tNode.insertBeforeIndex;\n if (Array.isArray(index)) {\n // Array is stored if we have to insert child nodes. See `TNode.insertBeforeIndex`\n index[0] = value;\n }\n else {\n setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore);\n tNode.insertBeforeIndex = value;\n }\n}\n\n/**\n * Retrieve `TIcu` at a given `index`.\n *\n * The `TIcu` can be stored either directly (if it is nested ICU) OR\n * it is stored inside tho `TIcuContainer` if it is top level ICU.\n *\n * The reason for this is that the top level ICU need a `TNode` so that they are part of the render\n * tree, but nested ICU's have no TNode, because we don't know ahead of time if the nested ICU is\n * expressed (parent ICU may have selected a case which does not contain it.)\n *\n * @param tView Current `TView`.\n * @param index Index where the value should be read from.\n */\nfunction getTIcu(tView, index) {\n const value = tView.data[index];\n if (value === null || typeof value === 'string')\n return null;\n if (ngDevMode &&\n !(value.hasOwnProperty('tView') || value.hasOwnProperty('currentCaseLViewIndex'))) {\n throwError(\"We expect to get 'null'|'TIcu'|'TIcuContainer', but got: \" + value);\n }\n // Here the `value.hasOwnProperty('currentCaseLViewIndex')` is a polymorphic read as it can be\n // either TIcu or TIcuContainerNode. This is not ideal, but we still think it is OK because it\n // will be just two cases which fits into the browser inline cache (inline cache can take up to\n // 4)\n const tIcu = value.hasOwnProperty('currentCaseLViewIndex')\n ? value\n : value.value;\n ngDevMode && assertTIcu(tIcu);\n return tIcu;\n}\n/**\n * Store `TIcu` at a give `index`.\n *\n * The `TIcu` can be stored either directly (if it is nested ICU) OR\n * it is stored inside tho `TIcuContainer` if it is top level ICU.\n *\n * The reason for this is that the top level ICU need a `TNode` so that they are part of the render\n * tree, but nested ICU's have no TNode, because we don't know ahead of time if the nested ICU is\n * expressed (parent ICU may have selected a case which does not contain it.)\n *\n * @param tView Current `TView`.\n * @param index Index where the value should be stored at in `Tview.data`\n * @param tIcu The TIcu to store.\n */\nfunction setTIcu(tView, index, tIcu) {\n const tNode = tView.data[index];\n ngDevMode &&\n assertEqual(tNode === null || tNode.hasOwnProperty('tView'), true, \"We expect to get 'null'|'TIcuContainer'\");\n if (tNode === null) {\n tView.data[index] = tIcu;\n }\n else {\n ngDevMode && assertTNodeType(tNode, 32 /* TNodeType.Icu */);\n tNode.value = tIcu;\n }\n}\n/**\n * Set `TNode.insertBeforeIndex` taking the `Array` into account.\n *\n * See `TNode.insertBeforeIndex`\n */\nfunction setTNodeInsertBeforeIndex(tNode, index) {\n ngDevMode && assertTNode(tNode);\n let insertBeforeIndex = tNode.insertBeforeIndex;\n if (insertBeforeIndex === null) {\n setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore);\n insertBeforeIndex = tNode.insertBeforeIndex = [\n null /* may be updated to number later */,\n index,\n ];\n }\n else {\n assertEqual(Array.isArray(insertBeforeIndex), true, 'Expecting array here');\n insertBeforeIndex.push(index);\n }\n}\n/**\n * Create `TNode.type=TNodeType.Placeholder` node.\n *\n * See `TNodeType.Placeholder` for more information.\n */\nfunction createTNodePlaceholder(tView, previousTNodes, index) {\n const tNode = createTNodeAtIndex(tView, index, 64 /* TNodeType.Placeholder */, null, null);\n addTNodeAndUpdateInsertBeforeIndex(previousTNodes, tNode);\n return tNode;\n}\n/**\n * Returns current ICU case.\n *\n * ICU cases are stored as index into the `TIcu.cases`.\n * At times it is necessary to communicate that the ICU case just switched and that next ICU update\n * should update all bindings regardless of the mask. In such a case the we store negative numbers\n * for cases which have just been switched. This function removes the negative flag.\n */\nfunction getCurrentICUCaseIndex(tIcu, lView) {\n const currentCase = lView[tIcu.currentCaseLViewIndex];\n return currentCase === null ? currentCase : currentCase < 0 ? ~currentCase : currentCase;\n}\nfunction getParentFromIcuCreateOpCode(mergedCode) {\n return mergedCode >>> 17 /* IcuCreateOpCode.SHIFT_PARENT */;\n}\nfunction getRefFromIcuCreateOpCode(mergedCode) {\n return (mergedCode & 131070 /* IcuCreateOpCode.MASK_REF */) >>> 1 /* IcuCreateOpCode.SHIFT_REF */;\n}\nfunction getInstructionFromIcuCreateOpCode(mergedCode) {\n return mergedCode & 1 /* IcuCreateOpCode.MASK_INSTRUCTION */;\n}\nfunction icuCreateOpCode(opCode, parentIdx, refIdx) {\n ngDevMode && assertGreaterThanOrEqual(parentIdx, 0, 'Missing parent index');\n ngDevMode && assertGreaterThan(refIdx, 0, 'Missing ref index');\n return (opCode | (parentIdx << 17 /* IcuCreateOpCode.SHIFT_PARENT */) | (refIdx << 1 /* IcuCreateOpCode.SHIFT_REF */));\n}\n// Returns whether the given value corresponds to a root template message,\n// or a sub-template.\nfunction isRootTemplateMessage(subTemplateIndex) {\n return subTemplateIndex === -1;\n}\n\nfunction enterIcu(state, tIcu, lView) {\n state.index = 0;\n const currentCase = getCurrentICUCaseIndex(tIcu, lView);\n if (currentCase !== null) {\n ngDevMode && assertNumberInRange(currentCase, 0, tIcu.cases.length - 1);\n state.removes = tIcu.remove[currentCase];\n }\n else {\n state.removes = EMPTY_ARRAY;\n }\n}\nfunction icuContainerIteratorNext(state) {\n if (state.index < state.removes.length) {\n const removeOpCode = state.removes[state.index++];\n ngDevMode && assertNumber(removeOpCode, 'Expecting OpCode number');\n if (removeOpCode > 0) {\n const rNode = state.lView[removeOpCode];\n ngDevMode && assertDomNode(rNode);\n return rNode;\n }\n else {\n state.stack.push(state.index, state.removes);\n // ICUs are represented by negative indices\n const tIcuIndex = ~removeOpCode;\n const tIcu = state.lView[TVIEW].data[tIcuIndex];\n ngDevMode && assertTIcu(tIcu);\n enterIcu(state, tIcu, state.lView);\n return icuContainerIteratorNext(state);\n }\n }\n else {\n if (state.stack.length === 0) {\n return null;\n }\n else {\n state.removes = state.stack.pop();\n state.index = state.stack.pop();\n return icuContainerIteratorNext(state);\n }\n }\n}\nfunction loadIcuContainerVisitor() {\n const _state = {\n stack: [],\n index: -1,\n };\n /**\n * Retrieves a set of root nodes from `TIcu.remove`. Used by `TNodeType.ICUContainer`\n * to determine which root belong to the ICU.\n *\n * Example of usage.\n * ```ts\n * const nextRNode = icuContainerIteratorStart(tIcuContainerNode, lView);\n * let rNode: RNode|null;\n * while(rNode = nextRNode()) {\n * console.log(rNode);\n * }\n * ```\n *\n * @param tIcuContainerNode Current `TIcuContainerNode`\n * @param lView `LView` where the `RNode`s should be looked up.\n */\n function icuContainerIteratorStart(tIcuContainerNode, lView) {\n _state.lView = lView;\n while (_state.stack.length)\n _state.stack.pop();\n ngDevMode && assertTNodeForLView(tIcuContainerNode, lView);\n enterIcu(_state, tIcuContainerNode.value, lView);\n return icuContainerIteratorNext.bind(null, _state);\n }\n return icuContainerIteratorStart;\n}\nfunction createIcuIterator(tIcu, lView) {\n const state = {\n stack: [],\n index: -1,\n lView,\n };\n ngDevMode && assertTIcu(tIcu);\n enterIcu(state, tIcu, lView);\n return icuContainerIteratorNext.bind(null, state);\n}\n\n/**\n * Regexp that extracts a reference node information from the compressed node location.\n * The reference node is represented as either:\n * - a number which points to an LView slot\n * - the `b` char which indicates that the lookup should start from the `document.body`\n * - the `h` char to start lookup from the component host node (`lView[HOST]`)\n */\nconst REF_EXTRACTOR_REGEXP = new RegExp(`^(\\\\d+)*(${REFERENCE_NODE_BODY}|${REFERENCE_NODE_HOST})*(.*)`);\n/**\n * Helper function that takes a reference node location and a set of navigation steps\n * (from the reference node) to a target node and outputs a string that represents\n * a location.\n *\n * For example, given: referenceNode = 'b' (body) and path = ['firstChild', 'firstChild',\n * 'nextSibling'], the function returns: `bf2n`.\n */\nfunction compressNodeLocation(referenceNode, path) {\n const result = [referenceNode];\n for (const segment of path) {\n const lastIdx = result.length - 1;\n if (lastIdx > 0 && result[lastIdx - 1] === segment) {\n // An empty string in a count slot represents 1 occurrence of an instruction.\n const value = (result[lastIdx] || 1);\n result[lastIdx] = value + 1;\n }\n else {\n // Adding a new segment to the path.\n // Using an empty string in a counter field to avoid encoding `1`s\n // into the path, since they are implicit (e.g. `f1n1` vs `fn`), so\n // it's enough to have a single char in this case.\n result.push(segment, '');\n }\n }\n return result.join('');\n}\n/**\n * Helper function that reverts the `compressNodeLocation` and transforms a given\n * string into an array where at 0th position there is a reference node info and\n * after that it contains information (in pairs) about a navigation step and the\n * number of repetitions.\n *\n * For example, the path like 'bf2n' will be transformed to:\n * ['b', 'firstChild', 2, 'nextSibling', 1].\n *\n * This information is later consumed by the code that navigates the DOM to find\n * a given node by its location.\n */\nfunction decompressNodeLocation(path) {\n const matches = path.match(REF_EXTRACTOR_REGEXP);\n const [_, refNodeId, refNodeName, rest] = matches;\n // If a reference node is represented by an index, transform it to a number.\n const ref = refNodeId ? parseInt(refNodeId, 10) : refNodeName;\n const steps = [];\n // Match all segments in a path.\n for (const [_, step, count] of rest.matchAll(/(f|n)(\\d*)/g)) {\n const repeat = parseInt(count, 10) || 1;\n steps.push(step, repeat);\n }\n return [ref, ...steps];\n}\n\n/** Whether current TNode is a first node in an <ng-container>. */\nfunction isFirstElementInNgContainer(tNode) {\n return !tNode.prev && tNode.parent?.type === 8 /* TNodeType.ElementContainer */;\n}\n/** Returns an instruction index (subtracting HEADER_OFFSET). */\nfunction getNoOffsetIndex(tNode) {\n return tNode.index - HEADER_OFFSET;\n}\n/**\n * Check whether a given node exists, but is disconnected from the DOM.\n */\nfunction isDisconnectedNode(tNode, lView) {\n return (!(tNode.type & (16 /* TNodeType.Projection */ | 128 /* TNodeType.LetDeclaration */)) &&\n !!lView[tNode.index] &&\n isDisconnectedRNode(unwrapRNode(lView[tNode.index])));\n}\n/**\n * Check whether the given node exists, but is disconnected from the DOM.\n *\n * Note: we leverage the fact that we have this information available in the DOM emulation\n * layer (in Domino) for now. Longer-term solution should not rely on the DOM emulation and\n * only use internal data structures and state to compute this information.\n */\nfunction isDisconnectedRNode(rNode) {\n return !!rNode && !rNode.isConnected;\n}\n/**\n * Locate a node in an i18n tree that corresponds to a given instruction index.\n *\n * @param hydrationInfo The hydration annotation data\n * @param noOffsetIndex the instruction index\n * @returns an RNode that corresponds to the instruction index\n */\nfunction locateI18nRNodeByIndex(hydrationInfo, noOffsetIndex) {\n const i18nNodes = hydrationInfo.i18nNodes;\n if (i18nNodes) {\n return i18nNodes.get(noOffsetIndex);\n }\n return undefined;\n}\n/**\n * Attempt to locate an RNode by a path, if it exists.\n *\n * @param hydrationInfo The hydration annotation data\n * @param lView the current lView\n * @param noOffsetIndex the instruction index\n * @returns an RNode that corresponds to the instruction index or null if no path exists\n */\nfunction tryLocateRNodeByPath(hydrationInfo, lView, noOffsetIndex) {\n const nodes = hydrationInfo.data[NODES];\n const path = nodes?.[noOffsetIndex];\n return path ? locateRNodeByPath(path, lView) : null;\n}\n/**\n * Locate a node in DOM tree that corresponds to a given TNode.\n *\n * @param hydrationInfo The hydration annotation data\n * @param tView the current tView\n * @param lView the current lView\n * @param tNode the current tNode\n * @returns an RNode that represents a given tNode\n */\nfunction locateNextRNode(hydrationInfo, tView, lView, tNode) {\n const noOffsetIndex = getNoOffsetIndex(tNode);\n let native = locateI18nRNodeByIndex(hydrationInfo, noOffsetIndex);\n if (native === undefined) {\n const nodes = hydrationInfo.data[NODES];\n if (nodes?.[noOffsetIndex]) {\n // We know the exact location of the node.\n native = locateRNodeByPath(nodes[noOffsetIndex], lView);\n }\n else if (tView.firstChild === tNode) {\n // We create a first node in this view, so we use a reference\n // to the first child in this DOM segment.\n native = hydrationInfo.firstChild;\n }\n else {\n // Locate a node based on a previous sibling or a parent node.\n const previousTNodeParent = tNode.prev === null;\n const previousTNode = (tNode.prev ?? tNode.parent);\n ngDevMode &&\n assertDefined(previousTNode, 'Unexpected state: current TNode does not have a connection ' +\n 'to the previous node or a parent node.');\n if (isFirstElementInNgContainer(tNode)) {\n const noOffsetParentIndex = getNoOffsetIndex(tNode.parent);\n native = getSegmentHead(hydrationInfo, noOffsetParentIndex);\n }\n else {\n let previousRElement = getNativeByTNode(previousTNode, lView);\n if (previousTNodeParent) {\n native = previousRElement.firstChild;\n }\n else {\n // If the previous node is an element, but it also has container info,\n // this means that we are processing a node like `<div #vcrTarget>`, which is\n // represented in the DOM as `<div></div>...<!--container-->`.\n // In this case, there are nodes *after* this element and we need to skip\n // all of them to reach an element that we are looking for.\n const noOffsetPrevSiblingIndex = getNoOffsetIndex(previousTNode);\n const segmentHead = getSegmentHead(hydrationInfo, noOffsetPrevSiblingIndex);\n if (previousTNode.type === 2 /* TNodeType.Element */ && segmentHead) {\n const numRootNodesToSkip = calcSerializedContainerSize(hydrationInfo, noOffsetPrevSiblingIndex);\n // `+1` stands for an anchor comment node after all the views in this container.\n const nodesToSkip = numRootNodesToSkip + 1;\n // First node after this segment.\n native = siblingAfter(nodesToSkip, segmentHead);\n }\n else {\n native = previousRElement.nextSibling;\n }\n }\n }\n }\n }\n return native;\n}\n/**\n * Skips over a specified number of nodes and returns the next sibling node after that.\n */\nfunction siblingAfter(skip, from) {\n let currentNode = from;\n for (let i = 0; i < skip; i++) {\n ngDevMode && validateSiblingNodeExists(currentNode);\n currentNode = currentNode.nextSibling;\n }\n return currentNode;\n}\n/**\n * Helper function to produce a string representation of the navigation steps\n * (in terms of `nextSibling` and `firstChild` navigations). Used in error\n * messages in dev mode.\n */\nfunction stringifyNavigationInstructions(instructions) {\n const container = [];\n for (let i = 0; i < instructions.length; i += 2) {\n const step = instructions[i];\n const repeat = instructions[i + 1];\n for (let r = 0; r < repeat; r++) {\n container.push(step === NODE_NAVIGATION_STEP_FIRST_CHILD ? 'firstChild' : 'nextSibling');\n }\n }\n return container.join('.');\n}\n/**\n * Helper function that navigates from a starting point node (the `from` node)\n * using provided set of navigation instructions (within `path` argument).\n */\nfunction navigateToNode(from, instructions) {\n let node = from;\n for (let i = 0; i < instructions.length; i += 2) {\n const step = instructions[i];\n const repeat = instructions[i + 1];\n for (let r = 0; r < repeat; r++) {\n if (ngDevMode && !node) {\n throw nodeNotFoundAtPathError(from, stringifyNavigationInstructions(instructions));\n }\n switch (step) {\n case NODE_NAVIGATION_STEP_FIRST_CHILD:\n node = node.firstChild;\n break;\n case NODE_NAVIGATION_STEP_NEXT_SIBLING:\n node = node.nextSibling;\n break;\n }\n }\n }\n if (ngDevMode && !node) {\n throw nodeNotFoundAtPathError(from, stringifyNavigationInstructions(instructions));\n }\n return node;\n}\n/**\n * Locates an RNode given a set of navigation instructions (which also contains\n * a starting point node info).\n */\nfunction locateRNodeByPath(path, lView) {\n const [referenceNode, ...navigationInstructions] = decompressNodeLocation(path);\n let ref;\n if (referenceNode === REFERENCE_NODE_HOST) {\n ref = lView[DECLARATION_COMPONENT_VIEW][HOST];\n }\n else if (referenceNode === REFERENCE_NODE_BODY) {\n ref = ɵɵresolveBody(lView[DECLARATION_COMPONENT_VIEW][HOST]);\n }\n else {\n const parentElementId = Number(referenceNode);\n ref = unwrapRNode(lView[parentElementId + HEADER_OFFSET]);\n }\n return navigateToNode(ref, navigationInstructions);\n}\n/**\n * Generate a list of DOM navigation operations to get from node `start` to node `finish`.\n *\n * Note: assumes that node `start` occurs before node `finish` in an in-order traversal of the DOM\n * tree. That is, we should be able to get from `start` to `finish` purely by using `.firstChild`\n * and `.nextSibling` operations.\n */\nfunction navigateBetween(start, finish) {\n if (start === finish) {\n return [];\n }\n else if (start.parentElement == null || finish.parentElement == null) {\n return null;\n }\n else if (start.parentElement === finish.parentElement) {\n return navigateBetweenSiblings(start, finish);\n }\n else {\n // `finish` is a child of its parent, so the parent will always have a child.\n const parent = finish.parentElement;\n const parentPath = navigateBetween(start, parent);\n const childPath = navigateBetween(parent.firstChild, finish);\n if (!parentPath || !childPath)\n return null;\n return [\n // First navigate to `finish`'s parent\n ...parentPath,\n // Then to its first child.\n NODE_NAVIGATION_STEP_FIRST_CHILD,\n // And finally from that node to `finish` (maybe a no-op if we're already there).\n ...childPath,\n ];\n }\n}\n/**\n * Calculates a path between 2 sibling nodes (generates a number of `NextSibling` navigations).\n * Returns `null` if no such path exists between the given nodes.\n */\nfunction navigateBetweenSiblings(start, finish) {\n const nav = [];\n let node = null;\n for (node = start; node != null && node !== finish; node = node.nextSibling) {\n nav.push(NODE_NAVIGATION_STEP_NEXT_SIBLING);\n }\n // If the `node` becomes `null` or `undefined` at the end, that means that we\n // didn't find the `end` node, thus return `null` (which would trigger serialization\n // error to be produced).\n return node == null ? null : nav;\n}\n/**\n * Calculates a path between 2 nodes in terms of `nextSibling` and `firstChild`\n * navigations:\n * - the `from` node is a known node, used as an starting point for the lookup\n * (the `fromNodeName` argument is a string representation of the node).\n * - the `to` node is a node that the runtime logic would be looking up,\n * using the path generated by this function.\n */\nfunction calcPathBetween(from, to, fromNodeName) {\n const path = navigateBetween(from, to);\n return path === null ? null : compressNodeLocation(fromNodeName, path);\n}\n/**\n * Invoked at serialization time (on the server) when a set of navigation\n * instructions needs to be generated for a TNode.\n */\nfunction calcPathForNode(tNode, lView, excludedParentNodes) {\n let parentTNode = tNode.parent;\n let parentIndex;\n let parentRNode;\n let referenceNodeName;\n // Skip over all parent nodes that are disconnected from the DOM, such nodes\n // can not be used as anchors.\n //\n // This might happen in certain content projection-based use-cases, where\n // a content of an element is projected and used, when a parent element\n // itself remains detached from DOM. In this scenario we try to find a parent\n // element that is attached to DOM and can act as an anchor instead.\n //\n // It can also happen that the parent node should be excluded, for example,\n // because it belongs to an i18n block, which requires paths which aren't\n // relative to other views in an i18n block.\n while (parentTNode !== null &&\n (isDisconnectedNode(parentTNode, lView) || excludedParentNodes?.has(parentTNode.index))) {\n parentTNode = parentTNode.parent;\n }\n if (parentTNode === null || !(parentTNode.type & 3 /* TNodeType.AnyRNode */)) {\n // If there is no parent TNode or a parent TNode does not represent an RNode\n // (i.e. not a DOM node), use component host element as a reference node.\n parentIndex = referenceNodeName = REFERENCE_NODE_HOST;\n parentRNode = lView[DECLARATION_COMPONENT_VIEW][HOST];\n }\n else {\n // Use parent TNode as a reference node.\n parentIndex = parentTNode.index;\n parentRNode = unwrapRNode(lView[parentIndex]);\n referenceNodeName = renderStringify(parentIndex - HEADER_OFFSET);\n }\n let rNode = unwrapRNode(lView[tNode.index]);\n if (tNode.type & (12 /* TNodeType.AnyContainer */ | 32 /* TNodeType.Icu */)) {\n // For <ng-container> nodes, instead of serializing a reference\n // to the anchor comment node, serialize a location of the first\n // DOM element. Paired with the container size (serialized as a part\n // of `ngh.containers`), it should give enough information for runtime\n // to hydrate nodes in this container.\n const firstRNode = getFirstNativeNode(lView, tNode);\n // If container is not empty, use a reference to the first element,\n // otherwise, rNode would point to an anchor comment node.\n if (firstRNode) {\n rNode = firstRNode;\n }\n }\n let path = calcPathBetween(parentRNode, rNode, referenceNodeName);\n if (path === null && parentRNode !== rNode) {\n // Searching for a path between elements within a host node failed.\n // Trying to find a path to an element starting from the `document.body` instead.\n //\n // Important note: this type of reference is relatively unstable, since Angular\n // may not be able to control parts of the page that the runtime logic navigates\n // through. This is mostly needed to cover \"portals\" use-case (like menus, dialog boxes,\n // etc), where nodes are content-projected (including direct DOM manipulations) outside\n // of the host node. The better solution is to provide APIs to work with \"portals\",\n // at which point this code path would not be needed.\n const body = parentRNode.ownerDocument.body;\n path = calcPathBetween(body, rNode, REFERENCE_NODE_BODY);\n if (path === null) {\n // If the path is still empty, it's likely that this node is detached and\n // won't be found during hydration.\n throw nodeNotFoundError(lView, tNode);\n }\n }\n return path;\n}\n/**\n * Retrieves all comments nodes that contain ngh comments referring to a defer block\n */\nfunction gatherDeferBlocksCommentNodes(doc, node) {\n const commentNodesIterator = doc.createNodeIterator(node, NodeFilter.SHOW_COMMENT, { acceptNode });\n let currentNode;\n const nodesByBlockId = new Map();\n while ((currentNode = commentNodesIterator.nextNode())) {\n const nghPattern = 'ngh=';\n const content = currentNode?.textContent;\n const nghIdx = content?.indexOf(nghPattern) ?? -1;\n if (nghIdx > -1) {\n const nghValue = content.substring(nghIdx + nghPattern.length).trim();\n // Make sure the value has an expected format.\n ngDevMode &&\n assertEqual(nghValue.startsWith('d'), true, 'Invalid defer block id found in a comment node.');\n nodesByBlockId.set(nghValue, currentNode);\n }\n }\n return nodesByBlockId;\n}\nfunction acceptNode(node) {\n return node.textContent?.trimStart().startsWith('ngh=')\n ? NodeFilter.FILTER_ACCEPT\n : NodeFilter.FILTER_REJECT;\n}\n\nlet _isI18nHydrationSupportEnabled = false;\nlet _prepareI18nBlockForHydrationImpl = () => {\n // noop unless `enablePrepareI18nBlockForHydrationImpl` is invoked.\n};\nfunction setIsI18nHydrationSupportEnabled(enabled) {\n _isI18nHydrationSupportEnabled = enabled;\n}\nfunction isI18nHydrationSupportEnabled() {\n return _isI18nHydrationSupportEnabled;\n}\n/**\n * Prepares an i18n block and its children, located at the given\n * view and instruction index, for hydration.\n *\n * @param lView lView with the i18n block\n * @param index index of the i18n block in the lView\n * @param parentTNode TNode of the parent of the i18n block\n * @param subTemplateIndex sub-template index, or -1 for the main template\n */\nfunction prepareI18nBlockForHydration(lView, index, parentTNode, subTemplateIndex) {\n _prepareI18nBlockForHydrationImpl(lView, index, parentTNode, subTemplateIndex);\n}\nfunction enablePrepareI18nBlockForHydrationImpl() {\n _prepareI18nBlockForHydrationImpl = prepareI18nBlockForHydrationImpl;\n}\nfunction isI18nHydrationEnabled(injector) {\n injector = injector ?? inject(Injector);\n return injector.get(IS_I18N_HYDRATION_ENABLED, false);\n}\n/**\n * Collects, if not already cached, all of the indices in the\n * given TView which are children of an i18n block.\n *\n * Since i18n blocks don't introduce a parent TNode, this is necessary\n * in order to determine which indices in a LView are translated.\n */\nfunction getOrComputeI18nChildren(tView, context) {\n let i18nChildren = context.i18nChildren.get(tView);\n if (i18nChildren === undefined) {\n i18nChildren = collectI18nChildren(tView);\n context.i18nChildren.set(tView, i18nChildren);\n }\n return i18nChildren;\n}\nfunction collectI18nChildren(tView) {\n const children = new Set();\n function collectI18nViews(node) {\n children.add(node.index);\n switch (node.kind) {\n case 1 /* I18nNodeKind.ELEMENT */:\n case 2 /* I18nNodeKind.PLACEHOLDER */: {\n for (const childNode of node.children) {\n collectI18nViews(childNode);\n }\n break;\n }\n case 3 /* I18nNodeKind.ICU */: {\n for (const caseNodes of node.cases) {\n for (const caseNode of caseNodes) {\n collectI18nViews(caseNode);\n }\n }\n break;\n }\n }\n }\n // Traverse through the AST of each i18n block in the LView,\n // and collect every instruction index.\n for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n const tI18n = tView.data[i];\n if (!tI18n || !tI18n.ast) {\n continue;\n }\n for (const node of tI18n.ast) {\n collectI18nViews(node);\n }\n }\n return children.size === 0 ? null : children;\n}\n/**\n * Attempts to serialize i18n data for an i18n block, located at\n * the given view and instruction index.\n *\n * @param lView lView with the i18n block\n * @param index index of the i18n block in the lView\n * @param context the hydration context\n * @returns the i18n data, or null if there is no relevant data\n */\nfunction trySerializeI18nBlock(lView, index, context) {\n if (!context.isI18nHydrationEnabled) {\n return null;\n }\n const tView = lView[TVIEW];\n const tI18n = tView.data[index];\n if (!tI18n || !tI18n.ast) {\n return null;\n }\n const parentTNode = tView.data[tI18n.parentTNodeIndex];\n if (parentTNode && isI18nInSkipHydrationBlock(parentTNode)) {\n return null;\n }\n const serializedI18nBlock = {\n caseQueue: [],\n disconnectedNodes: new Set(),\n disjointNodes: new Set(),\n };\n serializeI18nBlock(lView, serializedI18nBlock, context, tI18n.ast);\n return serializedI18nBlock.caseQueue.length === 0 &&\n serializedI18nBlock.disconnectedNodes.size === 0 &&\n serializedI18nBlock.disjointNodes.size === 0\n ? null\n : serializedI18nBlock;\n}\nfunction serializeI18nBlock(lView, serializedI18nBlock, context, nodes) {\n let prevRNode = null;\n for (const node of nodes) {\n const nextRNode = serializeI18nNode(lView, serializedI18nBlock, context, node);\n if (nextRNode) {\n if (isDisjointNode(prevRNode, nextRNode)) {\n serializedI18nBlock.disjointNodes.add(node.index - HEADER_OFFSET);\n }\n prevRNode = nextRNode;\n }\n }\n return prevRNode;\n}\n/**\n * Helper to determine whether the given nodes are \"disjoint\".\n *\n * The i18n hydration process walks through the DOM and i18n nodes\n * at the same time. It expects the sibling DOM node of the previous\n * i18n node to be the first node of the next i18n node.\n *\n * In cases of content projection, this won't always be the case. So\n * when we detect that, we mark the node as \"disjoint\", ensuring that\n * we will serialize the path to the node. This way, when we hydrate the\n * i18n node, we will be able to find the correct place to start.\n */\nfunction isDisjointNode(prevNode, nextNode) {\n return prevNode && prevNode.nextSibling !== nextNode;\n}\n/**\n * Process the given i18n node for serialization.\n * Returns the first RNode for the i18n node to begin hydration.\n */\nfunction serializeI18nNode(lView, serializedI18nBlock, context, node) {\n const maybeRNode = unwrapRNode(lView[node.index]);\n if (!maybeRNode || isDisconnectedRNode(maybeRNode)) {\n serializedI18nBlock.disconnectedNodes.add(node.index - HEADER_OFFSET);\n return null;\n }\n const rNode = maybeRNode;\n switch (node.kind) {\n case 0 /* I18nNodeKind.TEXT */: {\n processTextNodeBeforeSerialization(context, rNode);\n break;\n }\n case 1 /* I18nNodeKind.ELEMENT */:\n case 2 /* I18nNodeKind.PLACEHOLDER */: {\n serializeI18nBlock(lView, serializedI18nBlock, context, node.children);\n break;\n }\n case 3 /* I18nNodeKind.ICU */: {\n const currentCase = lView[node.currentCaseLViewIndex];\n if (currentCase != null) {\n // i18n uses a negative value to signal a change to a new case, so we\n // need to invert it to get the proper value.\n const caseIdx = currentCase < 0 ? ~currentCase : currentCase;\n serializedI18nBlock.caseQueue.push(caseIdx);\n serializeI18nBlock(lView, serializedI18nBlock, context, node.cases[caseIdx]);\n }\n break;\n }\n }\n return getFirstNativeNodeForI18nNode(lView, node);\n}\n/**\n * Helper function to get the first native node to begin hydrating\n * the given i18n node.\n */\nfunction getFirstNativeNodeForI18nNode(lView, node) {\n const tView = lView[TVIEW];\n const maybeTNode = tView.data[node.index];\n if (isTNodeShape(maybeTNode)) {\n // If the node is backed by an actual TNode, we can simply delegate.\n return getFirstNativeNode(lView, maybeTNode);\n }\n else if (node.kind === 3 /* I18nNodeKind.ICU */) {\n // A nested ICU container won't have an actual TNode. In that case, we can use\n // an iterator to find the first child.\n const icuIterator = createIcuIterator(maybeTNode, lView);\n let rNode = icuIterator();\n // If the ICU container has no nodes, then we use the ICU anchor as the node.\n return rNode ?? unwrapRNode(lView[node.index]);\n }\n else {\n // Otherwise, the node is a text or trivial element in an ICU container,\n // and we can just use the RNode directly.\n return unwrapRNode(lView[node.index]) ?? null;\n }\n}\nfunction setCurrentNode(state, node) {\n state.currentNode = node;\n}\n/**\n * Marks the current RNode as the hydration root for the given\n * AST node.\n */\nfunction appendI18nNodeToCollection(context, state, astNode) {\n const noOffsetIndex = astNode.index - HEADER_OFFSET;\n const { disconnectedNodes } = context;\n const currentNode = state.currentNode;\n if (state.isConnected) {\n context.i18nNodes.set(noOffsetIndex, currentNode);\n // We expect the node to be connected, so ensure that it\n // is not in the set, regardless of whether we found it,\n // so that the downstream error handling can provide the\n // proper context.\n disconnectedNodes.delete(noOffsetIndex);\n }\n else {\n disconnectedNodes.add(noOffsetIndex);\n }\n return currentNode;\n}\n/**\n * Skip over some sibling nodes during hydration.\n *\n * Note: we use this instead of `siblingAfter` as it's expected that\n * sometimes we might encounter null nodes. In those cases, we want to\n * defer to downstream error handling to provide proper context.\n */\nfunction skipSiblingNodes(state, skip) {\n let currentNode = state.currentNode;\n for (let i = 0; i < skip; i++) {\n if (!currentNode) {\n break;\n }\n currentNode = currentNode?.nextSibling ?? null;\n }\n return currentNode;\n}\n/**\n * Fork the given state into a new state for hydrating children.\n */\nfunction forkHydrationState(state, nextNode) {\n return { currentNode: nextNode, isConnected: state.isConnected };\n}\nfunction prepareI18nBlockForHydrationImpl(lView, index, parentTNode, subTemplateIndex) {\n const hydrationInfo = lView[HYDRATION];\n if (!hydrationInfo) {\n return;\n }\n if (!isI18nHydrationSupportEnabled() ||\n (parentTNode &&\n (isI18nInSkipHydrationBlock(parentTNode) ||\n isDisconnectedNode$1(hydrationInfo, parentTNode.index - HEADER_OFFSET)))) {\n return;\n }\n const tView = lView[TVIEW];\n const tI18n = tView.data[index];\n ngDevMode &&\n assertDefined(tI18n, 'Expected i18n data to be present in a given TView slot during hydration');\n function findHydrationRoot() {\n if (isRootTemplateMessage(subTemplateIndex)) {\n // This is the root of an i18n block. In this case, our hydration root will\n // depend on where our parent TNode (i.e. the block with i18n applied) is\n // in the DOM.\n ngDevMode && assertDefined(parentTNode, 'Expected parent TNode while hydrating i18n root');\n const rootNode = locateNextRNode(hydrationInfo, tView, lView, parentTNode);\n // If this i18n block is attached to an <ng-container>, then we want to begin\n // hydrating directly with the RNode. Otherwise, for a TNode with a physical DOM\n // element, we want to recurse into the first child and begin there.\n return parentTNode.type & 8 /* TNodeType.ElementContainer */ ? rootNode : rootNode.firstChild;\n }\n // This is a nested template in an i18n block. In this case, the entire view\n // is translated, and part of a dehydrated view in a container. This means that\n // we can simply begin hydration with the first dehydrated child.\n return hydrationInfo?.firstChild;\n }\n const currentNode = findHydrationRoot();\n ngDevMode && assertDefined(currentNode, 'Expected root i18n node during hydration');\n const disconnectedNodes = initDisconnectedNodes(hydrationInfo) ?? new Set();\n const i18nNodes = (hydrationInfo.i18nNodes ??= new Map());\n const caseQueue = hydrationInfo.data[I18N_DATA]?.[index - HEADER_OFFSET] ?? [];\n const dehydratedIcuData = (hydrationInfo.dehydratedIcuData ??= new Map());\n collectI18nNodesFromDom({ hydrationInfo, lView, i18nNodes, disconnectedNodes, caseQueue, dehydratedIcuData }, { currentNode, isConnected: true }, tI18n.ast);\n // Nodes from inactive ICU cases should be considered disconnected. We track them above\n // because they aren't (and shouldn't be) serialized. Since we may mutate or create a\n // new set, we need to be sure to write the expected value back to the DehydratedView.\n hydrationInfo.disconnectedNodes = disconnectedNodes.size === 0 ? null : disconnectedNodes;\n}\nfunction collectI18nNodesFromDom(context, state, nodeOrNodes) {\n if (Array.isArray(nodeOrNodes)) {\n let nextState = state;\n for (const node of nodeOrNodes) {\n // Whenever a node doesn't directly follow the previous RNode, it\n // is given a path. We need to resume collecting nodes from that location\n // until and unless we find another disjoint node.\n const targetNode = tryLocateRNodeByPath(context.hydrationInfo, context.lView, node.index - HEADER_OFFSET);\n if (targetNode) {\n nextState = forkHydrationState(state, targetNode);\n }\n collectI18nNodesFromDom(context, nextState, node);\n }\n }\n else {\n if (context.disconnectedNodes.has(nodeOrNodes.index - HEADER_OFFSET)) {\n // i18n nodes can be considered disconnected if e.g. they were projected.\n // In that case, we have to make sure to skip over them.\n return;\n }\n switch (nodeOrNodes.kind) {\n case 0 /* I18nNodeKind.TEXT */: {\n // Claim a text node for hydration\n const currentNode = appendI18nNodeToCollection(context, state, nodeOrNodes);\n setCurrentNode(state, currentNode?.nextSibling ?? null);\n break;\n }\n case 1 /* I18nNodeKind.ELEMENT */: {\n // Recurse into the current element's children...\n collectI18nNodesFromDom(context, forkHydrationState(state, state.currentNode?.firstChild ?? null), nodeOrNodes.children);\n // And claim the parent element itself.\n const currentNode = appendI18nNodeToCollection(context, state, nodeOrNodes);\n setCurrentNode(state, currentNode?.nextSibling ?? null);\n break;\n }\n case 2 /* I18nNodeKind.PLACEHOLDER */: {\n const noOffsetIndex = nodeOrNodes.index - HEADER_OFFSET;\n const { hydrationInfo } = context;\n const containerSize = getNgContainerSize(hydrationInfo, noOffsetIndex);\n switch (nodeOrNodes.type) {\n case 0 /* I18nPlaceholderType.ELEMENT */: {\n // Hydration expects to find the head of the element.\n const currentNode = appendI18nNodeToCollection(context, state, nodeOrNodes);\n // A TNode for the node may not yet if we're hydrating during the first pass,\n // so use the serialized data to determine if this is an <ng-container>.\n if (isSerializedElementContainer(hydrationInfo, noOffsetIndex)) {\n // An <ng-container> doesn't have a physical DOM node, so we need to\n // continue hydrating from siblings.\n collectI18nNodesFromDom(context, state, nodeOrNodes.children);\n // Skip over the anchor element. It will be claimed by the\n // downstream container hydration.\n const nextNode = skipSiblingNodes(state, 1);\n setCurrentNode(state, nextNode);\n }\n else {\n // Non-container elements represent an actual node in the DOM, so we\n // need to continue hydration with the children, and claim the node.\n collectI18nNodesFromDom(context, forkHydrationState(state, state.currentNode?.firstChild ?? null), nodeOrNodes.children);\n setCurrentNode(state, currentNode?.nextSibling ?? null);\n // Elements can also be the anchor of a view container, so there may\n // be elements after this node that we need to skip.\n if (containerSize !== null) {\n // `+1` stands for an anchor node after all of the views in the container.\n const nextNode = skipSiblingNodes(state, containerSize + 1);\n setCurrentNode(state, nextNode);\n }\n }\n break;\n }\n case 1 /* I18nPlaceholderType.SUBTEMPLATE */: {\n ngDevMode &&\n assertNotEqual(containerSize, null, 'Expected a container size while hydrating i18n subtemplate');\n // Hydration expects to find the head of the template.\n appendI18nNodeToCollection(context, state, nodeOrNodes);\n // Skip over all of the template children, as well as the anchor\n // node, since the template itself will handle them instead.\n const nextNode = skipSiblingNodes(state, containerSize + 1);\n setCurrentNode(state, nextNode);\n break;\n }\n }\n break;\n }\n case 3 /* I18nNodeKind.ICU */: {\n // If the current node is connected, we need to pop the next case from the\n // queue, so that the active case is also considered connected.\n const selectedCase = state.isConnected ? context.caseQueue.shift() : null;\n const childState = { currentNode: null, isConnected: false };\n // We traverse through each case, even if it's not active,\n // so that we correctly populate disconnected nodes.\n for (let i = 0; i < nodeOrNodes.cases.length; i++) {\n collectI18nNodesFromDom(context, i === selectedCase ? state : childState, nodeOrNodes.cases[i]);\n }\n if (selectedCase !== null) {\n // ICUs represent a branching state, and the selected case could be different\n // than what it was on the server. In that case, we need to be able to clean\n // up the nodes from the original case. To do that, we store the selected case.\n context.dehydratedIcuData.set(nodeOrNodes.index, { case: selectedCase, node: nodeOrNodes });\n }\n // Hydration expects to find the ICU anchor element.\n const currentNode = appendI18nNodeToCollection(context, state, nodeOrNodes);\n setCurrentNode(state, currentNode?.nextSibling ?? null);\n break;\n }\n }\n }\n}\nlet _claimDehydratedIcuCaseImpl = () => {\n // noop unless `enableClaimDehydratedIcuCaseImpl` is invoked\n};\n/**\n * Mark the case for the ICU node at the given index in the view as claimed,\n * allowing its nodes to be hydrated and not cleaned up.\n */\nfunction claimDehydratedIcuCase(lView, icuIndex, caseIndex) {\n _claimDehydratedIcuCaseImpl(lView, icuIndex, caseIndex);\n}\nfunction enableClaimDehydratedIcuCaseImpl() {\n _claimDehydratedIcuCaseImpl = claimDehydratedIcuCaseImpl;\n}\nfunction claimDehydratedIcuCaseImpl(lView, icuIndex, caseIndex) {\n const dehydratedIcuDataMap = lView[HYDRATION]?.dehydratedIcuData;\n if (dehydratedIcuDataMap) {\n const dehydratedIcuData = dehydratedIcuDataMap.get(icuIndex);\n if (dehydratedIcuData?.case === caseIndex) {\n // If the case we're attempting to claim matches the dehydrated one,\n // we remove it from the map to mark it as \"claimed.\"\n dehydratedIcuDataMap.delete(icuIndex);\n }\n }\n}\n/**\n * Clean up all i18n hydration data associated with the given view.\n */\nfunction cleanupI18nHydrationData(lView) {\n const hydrationInfo = lView[HYDRATION];\n if (hydrationInfo) {\n const { i18nNodes, dehydratedIcuData: dehydratedIcuDataMap } = hydrationInfo;\n if (i18nNodes && dehydratedIcuDataMap) {\n const renderer = lView[RENDERER];\n for (const dehydratedIcuData of dehydratedIcuDataMap.values()) {\n cleanupDehydratedIcuData(renderer, i18nNodes, dehydratedIcuData);\n }\n }\n hydrationInfo.i18nNodes = undefined;\n hydrationInfo.dehydratedIcuData = undefined;\n }\n}\nfunction cleanupDehydratedIcuData(renderer, i18nNodes, dehydratedIcuData) {\n for (const node of dehydratedIcuData.node.cases[dehydratedIcuData.case]) {\n const rNode = i18nNodes.get(node.index - HEADER_OFFSET);\n if (rNode) {\n nativeRemoveNode(renderer, rNode, false);\n }\n }\n}\n\n/**\n * Removes all dehydrated views from a given LContainer:\n * both in internal data structure, as well as removing\n * corresponding DOM nodes that belong to that dehydrated view.\n */\nfunction removeDehydratedViews(lContainer) {\n const views = lContainer[DEHYDRATED_VIEWS] ?? [];\n const parentLView = lContainer[PARENT];\n const renderer = parentLView[RENDERER];\n const retainedViews = [];\n for (const view of views) {\n // Do not clean up contents of `@defer` blocks.\n // The cleanup for this content would happen once a given block\n // is triggered and hydrated.\n if (view.data[DEFER_BLOCK_ID] !== undefined) {\n retainedViews.push(view);\n }\n else {\n removeDehydratedView(view, renderer);\n ngDevMode && ngDevMode.dehydratedViewsRemoved++;\n }\n }\n // Reset the value to an array to indicate that no\n // further processing of dehydrated views is needed for\n // this view container (i.e. do not trigger the lookup process\n // once again in case a `ViewContainerRef` is created later).\n lContainer[DEHYDRATED_VIEWS] = retainedViews;\n}\n/**\n * Helper function to remove all nodes from a dehydrated view.\n */\nfunction removeDehydratedView(dehydratedView, renderer) {\n let nodesRemoved = 0;\n let currentRNode = dehydratedView.firstChild;\n if (currentRNode) {\n const numNodes = dehydratedView.data[NUM_ROOT_NODES];\n while (nodesRemoved < numNodes) {\n ngDevMode && validateSiblingNodeExists(currentRNode);\n const nextSibling = currentRNode.nextSibling;\n nativeRemoveNode(renderer, currentRNode, false);\n currentRNode = nextSibling;\n nodesRemoved++;\n }\n }\n}\n/**\n * Walks over all views within this LContainer invokes dehydrated views\n * cleanup function for each one.\n */\nfunction cleanupLContainer(lContainer) {\n removeDehydratedViews(lContainer);\n // The host could be an LView if this container is on a component node.\n // In this case, descend into host LView for further cleanup. See also\n // LContainer[HOST] docs for additional information.\n const hostLView = lContainer[HOST];\n if (isLView(hostLView)) {\n cleanupLView(hostLView);\n }\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n cleanupLView(lContainer[i]);\n }\n}\n/**\n * Walks over `LContainer`s and components registered within\n * this LView and invokes dehydrated views cleanup function for each one.\n */\nfunction cleanupLView(lView) {\n cleanupI18nHydrationData(lView);\n const tView = lView[TVIEW];\n for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n if (isLContainer(lView[i])) {\n const lContainer = lView[i];\n cleanupLContainer(lContainer);\n }\n else if (isLView(lView[i])) {\n // This is a component, enter the `cleanupLView` recursively.\n cleanupLView(lView[i]);\n }\n }\n}\n/**\n * Walks over all views registered within the ApplicationRef and removes\n * all dehydrated views from all `LContainer`s along the way.\n */\nfunction cleanupDehydratedViews(appRef) {\n const viewRefs = appRef._views;\n for (const viewRef of viewRefs) {\n const lNode = getLNodeForHydration(viewRef);\n // An `lView` might be `null` if a `ViewRef` represents\n // an embedded view (not a component view).\n if (lNode !== null && lNode[HOST] !== null) {\n if (isLView(lNode)) {\n cleanupLView(lNode);\n }\n else {\n // Cleanup in all views within this view container\n cleanupLContainer(lNode);\n }\n ngDevMode && ngDevMode.dehydratedViewsCleanupRuns++;\n }\n }\n}\n/**\n * post hydration cleanup handling for defer blocks that were incrementally\n * hydrated. This removes all the jsaction attributes, timers, observers,\n * dehydrated views and containers\n */\nfunction cleanupHydratedDeferBlocks(deferBlock, hydratedBlocks, registry, appRef) {\n if (deferBlock !== null) {\n registry.cleanup(hydratedBlocks);\n cleanupLContainer(deferBlock.lContainer);\n cleanupDehydratedViews(appRef);\n }\n}\n\n/**\n * Given a current DOM node and a serialized information about the views\n * in a container, walks over the DOM structure, collecting the list of\n * dehydrated views.\n */\nfunction locateDehydratedViewsInContainer(currentRNode, serializedViews) {\n const dehydratedViews = [];\n for (const serializedView of serializedViews) {\n // Repeats a view multiple times as needed, based on the serialized information\n // (for example, for *ngFor-produced views).\n for (let i = 0; i < (serializedView[MULTIPLIER] ?? 1); i++) {\n const view = {\n data: serializedView,\n firstChild: null,\n };\n if (serializedView[NUM_ROOT_NODES] > 0) {\n // Keep reference to the first node in this view,\n // so it can be accessed while invoking template instructions.\n view.firstChild = currentRNode;\n // Move over to the next node after this view, which can\n // either be a first node of the next view or an anchor comment\n // node after the last view in a container.\n currentRNode = siblingAfter(serializedView[NUM_ROOT_NODES], currentRNode);\n }\n dehydratedViews.push(view);\n }\n }\n return [currentRNode, dehydratedViews];\n}\n/**\n * Reference to a function that searches for a matching dehydrated views\n * stored on a given lContainer.\n * Returns `null` by default, when hydration is not enabled.\n */\nlet _findMatchingDehydratedViewImpl = () => null;\n/**\n * Retrieves the next dehydrated view from the LContainer and verifies that\n * it matches a given template id (from the TView that was used to create this\n * instance of a view). If the id doesn't match, that means that we are in an\n * unexpected state and can not complete the reconciliation process. Thus,\n * all dehydrated views from this LContainer are removed (including corresponding\n * DOM nodes) and the rendering is performed as if there were no dehydrated views\n * in this container.\n */\nfunction findMatchingDehydratedViewImpl(lContainer, template) {\n const views = lContainer[DEHYDRATED_VIEWS];\n if (!template || views === null || views.length === 0) {\n return null;\n }\n const view = views[0];\n // Verify whether the first dehydrated view in the container matches\n // the template id passed to this function (that originated from a TView\n // that was used to create an instance of an embedded or component views.\n if (view.data[TEMPLATE_ID] === template) {\n // If the template id matches - extract the first view and return it.\n return views.shift();\n }\n else {\n // Otherwise, we are at the state when reconciliation can not be completed,\n // thus we remove all dehydrated views within this container (remove them\n // from internal data structures as well as delete associated elements from\n // the DOM tree).\n removeDehydratedViews(lContainer);\n return null;\n }\n}\nfunction enableFindMatchingDehydratedViewImpl() {\n _findMatchingDehydratedViewImpl = findMatchingDehydratedViewImpl;\n}\nfunction findMatchingDehydratedView(lContainer, template) {\n return _findMatchingDehydratedViewImpl(lContainer, template);\n}\n\n/**\n * Represents a component created by a `ComponentFactory`.\n * Provides access to the component instance and related objects,\n * and provides the means of destroying the instance.\n *\n * @publicApi\n */\nclass ComponentRef$1 {\n}\n/**\n * Base class for a factory that can create a component dynamically.\n * Instantiate a factory for a given type of component with `resolveComponentFactory()`.\n * Use the resulting `ComponentFactory.create()` method to create a component of that type.\n *\n * @publicApi\n *\n * @deprecated Angular no longer requires Component factories. Please use other APIs where\n * Component class can be used directly.\n */\nclass ComponentFactory$1 {\n}\n\nclass _NullComponentFactoryResolver {\n resolveComponentFactory(component) {\n throw Error(`No component factory found for ${stringify(component)}.`);\n }\n}\n/**\n * A simple registry that maps `Components` to generated `ComponentFactory` classes\n * that can be used to create instances of components.\n * Use to obtain the factory for a given component type,\n * then use the factory's `create()` method to create a component of that type.\n *\n * Note: since v13, dynamic component creation via\n * [`ViewContainerRef.createComponent`](api/core/ViewContainerRef#createComponent)\n * does **not** require resolving component factory: component class can be used directly.\n *\n * @publicApi\n *\n * @deprecated Angular no longer requires Component factories. Please use other APIs where\n * Component class can be used directly.\n */\nclass ComponentFactoryResolver$1 {\n static NULL = new _NullComponentFactoryResolver();\n}\n\n/**\n * Creates and initializes a custom renderer that implements the `Renderer2` base class.\n *\n * @publicApi\n */\nclass RendererFactory2 {\n}\n/**\n * Extend this base class to implement custom rendering. By default, Angular\n * renders a template into DOM. You can use custom rendering to intercept\n * rendering calls, or to render to something other than DOM.\n *\n * Create your custom renderer using `RendererFactory2`.\n *\n * Use a custom renderer to bypass Angular's templating and\n * make custom UI changes that can't be expressed declaratively.\n * For example if you need to set a property or an attribute whose name is\n * not statically known, use the `setProperty()` or\n * `setAttribute()` method.\n *\n * @publicApi\n */\nclass Renderer2 {\n /**\n * If null or undefined, the view engine won't call it.\n * This is used as a performance optimization for production mode.\n */\n destroyNode = null;\n /**\n * @internal\n * @nocollapse\n */\n static __NG_ELEMENT_ID__ = () => injectRenderer2();\n}\n/** Injects a Renderer2 for the current component. */\nfunction injectRenderer2() {\n // We need the Renderer to be based on the component that it's being injected into, however since\n // DI happens before we've entered its view, `getLView` will return the parent view instead.\n const lView = getLView();\n const tNode = getCurrentTNode();\n const nodeAtIndex = getComponentLViewByIndex(tNode.index, lView);\n return (isLView(nodeAtIndex) ? nodeAtIndex : lView)[RENDERER];\n}\n\n/**\n * Sanitizer is used by the views to sanitize potentially dangerous values.\n *\n * @publicApi\n */\nclass Sanitizer {\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: Sanitizer,\n providedIn: 'root',\n factory: () => null,\n });\n}\n\nfunction isModuleWithProviders(value) {\n return value.ngModule !== undefined;\n}\nfunction isNgModule(value) {\n return !!getNgModuleDef(value);\n}\nfunction isPipe(value) {\n return !!getPipeDef$1(value);\n}\nfunction isDirective(value) {\n return !!getDirectiveDef(value);\n}\nfunction isComponent(value) {\n return !!getComponentDef(value);\n}\nfunction getDependencyTypeForError(type) {\n if (getComponentDef(type))\n return 'component';\n if (getDirectiveDef(type))\n return 'directive';\n if (getPipeDef$1(type))\n return 'pipe';\n return 'type';\n}\nfunction verifyStandaloneImport(depType, importingType) {\n if (isForwardRef(depType)) {\n depType = resolveForwardRef(depType);\n if (!depType) {\n throw new Error(`Expected forwardRef function, imported from \"${stringifyForError(importingType)}\", to return a standalone entity or NgModule but got \"${stringifyForError(depType) || depType}\".`);\n }\n }\n if (getNgModuleDef(depType) == null) {\n const def = getComponentDef(depType) || getDirectiveDef(depType) || getPipeDef$1(depType);\n if (def != null) {\n // if a component, directive or pipe is imported make sure that it is standalone\n if (!def.standalone) {\n throw new Error(`The \"${stringifyForError(depType)}\" ${getDependencyTypeForError(depType)}, imported from \"${stringifyForError(importingType)}\", is not standalone. Did you forget to add the standalone: true flag?`);\n }\n }\n else {\n // it can be either a module with provider or an unknown (not annotated) type\n if (isModuleWithProviders(depType)) {\n throw new Error(`A module with providers was imported from \"${stringifyForError(importingType)}\". Modules with providers are not supported in standalone components imports.`);\n }\n else {\n throw new Error(`The \"${stringifyForError(depType)}\" type, imported from \"${stringifyForError(importingType)}\", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);\n }\n }\n }\n}\n\n/**\n * Indicates whether to use the runtime dependency tracker for scope calculation in JIT compilation.\n * The value \"false\" means the old code path based on patching scope info into the types will be\n * used.\n *\n * @deprecated For migration purposes only, to be removed soon.\n */\nconst USE_RUNTIME_DEPS_TRACKER_FOR_JIT = true;\n/**\n * An implementation of DepsTrackerApi which will be used for JIT and local compilation.\n */\nclass DepsTracker {\n ownerNgModule = new Map();\n ngModulesWithSomeUnresolvedDecls = new Set();\n ngModulesScopeCache = new Map();\n standaloneComponentsScopeCache = new Map();\n /**\n * Attempts to resolve ng module's forward ref declarations as much as possible and add them to\n * the `ownerNgModule` map. This method normally should be called after the initial parsing when\n * all the forward refs are resolved (e.g., when trying to render a component)\n */\n resolveNgModulesDecls() {\n if (this.ngModulesWithSomeUnresolvedDecls.size === 0) {\n return;\n }\n for (const moduleType of this.ngModulesWithSomeUnresolvedDecls) {\n const def = getNgModuleDef(moduleType);\n if (def?.declarations) {\n for (const decl of maybeUnwrapFn(def.declarations)) {\n if (isComponent(decl)) {\n this.ownerNgModule.set(decl, moduleType);\n }\n }\n }\n }\n this.ngModulesWithSomeUnresolvedDecls.clear();\n }\n /** @override */\n getComponentDependencies(type, rawImports) {\n this.resolveNgModulesDecls();\n const def = getComponentDef(type);\n if (def === null) {\n throw new Error(`Attempting to get component dependencies for a type that is not a component: ${type}`);\n }\n if (def.standalone) {\n const scope = this.getStandaloneComponentScope(type, rawImports);\n if (scope.compilation.isPoisoned) {\n return { dependencies: [] };\n }\n return {\n dependencies: [\n ...scope.compilation.directives,\n ...scope.compilation.pipes,\n ...scope.compilation.ngModules,\n ],\n };\n }\n else {\n if (!this.ownerNgModule.has(type)) {\n // This component is orphan! No need to handle the error since the component rendering\n // pipeline (e.g., view_container_ref) will check for this error based on configs.\n return { dependencies: [] };\n }\n const scope = this.getNgModuleScope(this.ownerNgModule.get(type));\n if (scope.compilation.isPoisoned) {\n return { dependencies: [] };\n }\n return {\n dependencies: [...scope.compilation.directives, ...scope.compilation.pipes],\n };\n }\n }\n /**\n * @override\n * This implementation does not make use of param scopeInfo since it assumes the scope info is\n * already added to the type itself through methods like {@link ɵɵsetNgModuleScope}\n */\n registerNgModule(type, scopeInfo) {\n if (!isNgModule(type)) {\n throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${type}`);\n }\n // Lazily process the NgModules later when needed.\n this.ngModulesWithSomeUnresolvedDecls.add(type);\n }\n /** @override */\n clearScopeCacheFor(type) {\n this.ngModulesScopeCache.delete(type);\n this.standaloneComponentsScopeCache.delete(type);\n }\n /** @override */\n getNgModuleScope(type) {\n if (this.ngModulesScopeCache.has(type)) {\n return this.ngModulesScopeCache.get(type);\n }\n const scope = this.computeNgModuleScope(type);\n this.ngModulesScopeCache.set(type, scope);\n return scope;\n }\n /** Compute NgModule scope afresh. */\n computeNgModuleScope(type) {\n const def = getNgModuleDef(type, true);\n const scope = {\n exported: { directives: new Set(), pipes: new Set() },\n compilation: { directives: new Set(), pipes: new Set() },\n };\n // Analyzing imports\n for (const imported of maybeUnwrapFn(def.imports)) {\n if (isNgModule(imported)) {\n const importedScope = this.getNgModuleScope(imported);\n // When this module imports another, the imported module's exported directives and pipes\n // are added to the compilation scope of this module.\n addSet(importedScope.exported.directives, scope.compilation.directives);\n addSet(importedScope.exported.pipes, scope.compilation.pipes);\n }\n else if (isStandalone(imported)) {\n if (isDirective(imported) || isComponent(imported)) {\n scope.compilation.directives.add(imported);\n }\n else if (isPipe(imported)) {\n scope.compilation.pipes.add(imported);\n }\n else {\n // The standalone thing is neither a component nor a directive nor a pipe ... (what?)\n throw new RuntimeError(980 /* RuntimeErrorCode.RUNTIME_DEPS_INVALID_IMPORTED_TYPE */, 'The standalone imported type is neither a component nor a directive nor a pipe');\n }\n }\n else {\n // The import is neither a module nor a module-with-providers nor a standalone thing. This\n // is going to be an error. So we short circuit.\n scope.compilation.isPoisoned = true;\n break;\n }\n }\n // Analyzing declarations\n if (!scope.compilation.isPoisoned) {\n for (const decl of maybeUnwrapFn(def.declarations)) {\n // Cannot declare another NgModule or a standalone thing\n if (isNgModule(decl) || isStandalone(decl)) {\n scope.compilation.isPoisoned = true;\n break;\n }\n if (isPipe(decl)) {\n scope.compilation.pipes.add(decl);\n }\n else {\n // decl is either a directive or a component. The component may not yet have the ɵcmp due\n // to async compilation.\n scope.compilation.directives.add(decl);\n }\n }\n }\n // Analyzing exports\n for (const exported of maybeUnwrapFn(def.exports)) {\n if (isNgModule(exported)) {\n // When this module exports another, the exported module's exported directives and pipes\n // are added to both the compilation and exported scopes of this module.\n const exportedScope = this.getNgModuleScope(exported);\n // Based on the current logic there is no way to have poisoned exported scope. So no need to\n // check for it.\n addSet(exportedScope.exported.directives, scope.exported.directives);\n addSet(exportedScope.exported.pipes, scope.exported.pipes);\n // Some test toolings which run in JIT mode depend on this behavior that the exported scope\n // should also be present in the compilation scope, even though AoT does not support this\n // and it is also in odds with NgModule metadata definitions. Without this some tests in\n // Google will fail.\n addSet(exportedScope.exported.directives, scope.compilation.directives);\n addSet(exportedScope.exported.pipes, scope.compilation.pipes);\n }\n else if (isPipe(exported)) {\n scope.exported.pipes.add(exported);\n }\n else {\n scope.exported.directives.add(exported);\n }\n }\n return scope;\n }\n /** @override */\n getStandaloneComponentScope(type, rawImports) {\n if (this.standaloneComponentsScopeCache.has(type)) {\n return this.standaloneComponentsScopeCache.get(type);\n }\n const ans = this.computeStandaloneComponentScope(type, rawImports);\n this.standaloneComponentsScopeCache.set(type, ans);\n return ans;\n }\n computeStandaloneComponentScope(type, rawImports) {\n const ans = {\n compilation: {\n // Standalone components are always able to self-reference.\n directives: new Set([type]),\n pipes: new Set(),\n ngModules: new Set(),\n },\n };\n for (const rawImport of flatten(rawImports ?? [])) {\n const imported = resolveForwardRef(rawImport);\n try {\n verifyStandaloneImport(imported, type);\n }\n catch (e) {\n // Short-circuit if an import is not valid\n ans.compilation.isPoisoned = true;\n return ans;\n }\n if (isNgModule(imported)) {\n ans.compilation.ngModules.add(imported);\n const importedScope = this.getNgModuleScope(imported);\n // Short-circuit if an imported NgModule has corrupted exported scope.\n if (importedScope.exported.isPoisoned) {\n ans.compilation.isPoisoned = true;\n return ans;\n }\n addSet(importedScope.exported.directives, ans.compilation.directives);\n addSet(importedScope.exported.pipes, ans.compilation.pipes);\n }\n else if (isPipe(imported)) {\n ans.compilation.pipes.add(imported);\n }\n else if (isDirective(imported) || isComponent(imported)) {\n ans.compilation.directives.add(imported);\n }\n else {\n // The imported thing is not module/pipe/directive/component, so we error and short-circuit\n // here\n ans.compilation.isPoisoned = true;\n return ans;\n }\n }\n return ans;\n }\n /** @override */\n isOrphanComponent(cmp) {\n const def = getComponentDef(cmp);\n if (!def || def.standalone) {\n return false;\n }\n this.resolveNgModulesDecls();\n return !this.ownerNgModule.has(cmp);\n }\n}\nfunction addSet(sourceSet, targetSet) {\n for (const m of sourceSet) {\n targetSet.add(m);\n }\n}\n/** The deps tracker to be used in the current Angular app in dev mode. */\nconst depsTracker = new DepsTracker();\nconst TEST_ONLY = { DepsTracker };\n\n/**\n * Compute the static styling (class/style) from `TAttributes`.\n *\n * This function should be called during `firstCreatePass` only.\n *\n * @param tNode The `TNode` into which the styling information should be loaded.\n * @param attrs `TAttributes` containing the styling information.\n * @param writeToHost Where should the resulting static styles be written?\n * - `false` Write to `TNode.stylesWithoutHost` / `TNode.classesWithoutHost`\n * - `true` Write to `TNode.styles` / `TNode.classes`\n */\nfunction computeStaticStyling(tNode, attrs, writeToHost) {\n ngDevMode &&\n assertFirstCreatePass(getTView(), 'Expecting to be called in first template pass only');\n let styles = writeToHost ? tNode.styles : null;\n let classes = writeToHost ? tNode.classes : null;\n let mode = 0;\n if (attrs !== null) {\n for (let i = 0; i < attrs.length; i++) {\n const value = attrs[i];\n if (typeof value === 'number') {\n mode = value;\n }\n else if (mode == 1 /* AttributeMarker.Classes */) {\n classes = concatStringsWithSpace(classes, value);\n }\n else if (mode == 2 /* AttributeMarker.Styles */) {\n const style = value;\n const styleValue = attrs[++i];\n styles = concatStringsWithSpace(styles, style + ': ' + styleValue + ';');\n }\n }\n }\n writeToHost ? (tNode.styles = styles) : (tNode.stylesWithoutHost = styles);\n writeToHost ? (tNode.classes = classes) : (tNode.classesWithoutHost = classes);\n}\n\nclass ComponentFactoryResolver extends ComponentFactoryResolver$1 {\n ngModule;\n /**\n * @param ngModule The NgModuleRef to which all resolved factories are bound.\n */\n constructor(ngModule) {\n super();\n this.ngModule = ngModule;\n }\n resolveComponentFactory(component) {\n ngDevMode && assertComponentType(component);\n const componentDef = getComponentDef(component);\n return new ComponentFactory(componentDef, this.ngModule);\n }\n}\nfunction toRefArray(map, isInputMap) {\n const array = [];\n for (const publicName in map) {\n if (!map.hasOwnProperty(publicName)) {\n continue;\n }\n const value = map[publicName];\n if (value === undefined) {\n continue;\n }\n const isArray = Array.isArray(value);\n const propName = isArray ? value[0] : value;\n const flags = isArray ? value[1] : InputFlags.None;\n if (isInputMap) {\n array.push({\n propName: propName,\n templateName: publicName,\n isSignal: (flags & InputFlags.SignalBased) !== 0,\n });\n }\n else {\n array.push({\n propName: propName,\n templateName: publicName,\n });\n }\n }\n return array;\n}\nfunction getNamespace(elementName) {\n const name = elementName.toLowerCase();\n return name === 'svg' ? SVG_NAMESPACE : name === 'math' ? MATH_ML_NAMESPACE : null;\n}\n/**\n * ComponentFactory interface implementation.\n */\nclass ComponentFactory extends ComponentFactory$1 {\n componentDef;\n ngModule;\n selector;\n componentType;\n ngContentSelectors;\n isBoundToModule;\n get inputs() {\n const componentDef = this.componentDef;\n const inputTransforms = componentDef.inputTransforms;\n const refArray = toRefArray(componentDef.inputs, true);\n if (inputTransforms !== null) {\n for (const input of refArray) {\n if (inputTransforms.hasOwnProperty(input.propName)) {\n input.transform = inputTransforms[input.propName];\n }\n }\n }\n return refArray;\n }\n get outputs() {\n return toRefArray(this.componentDef.outputs, false);\n }\n /**\n * @param componentDef The component definition.\n * @param ngModule The NgModuleRef to which the factory is bound.\n */\n constructor(componentDef, ngModule) {\n super();\n this.componentDef = componentDef;\n this.ngModule = ngModule;\n this.componentType = componentDef.type;\n this.selector = stringifyCSSSelectorList(componentDef.selectors);\n this.ngContentSelectors = componentDef.ngContentSelectors ?? [];\n this.isBoundToModule = !!ngModule;\n }\n create(injector, projectableNodes, rootSelectorOrNode, environmentInjector) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n // Check if the component is orphan\n if (ngDevMode &&\n (typeof ngJitMode === 'undefined' || ngJitMode) &&\n this.componentDef.debugInfo?.forbidOrphanRendering) {\n if (depsTracker.isOrphanComponent(this.componentType)) {\n throw new RuntimeError(981 /* RuntimeErrorCode.RUNTIME_DEPS_ORPHAN_COMPONENT */, `Orphan component found! Trying to render the component ${debugStringifyTypeForError(this.componentType)} without first loading the NgModule that declares it. It is recommended to make this component standalone in order to avoid this error. If this is not possible now, import the component's NgModule in the appropriate NgModule, or the standalone component in which you are trying to render this component. If this is a lazy import, load the NgModule lazily as well and use its module injector.`);\n }\n }\n environmentInjector = environmentInjector || this.ngModule;\n let realEnvironmentInjector = environmentInjector instanceof EnvironmentInjector\n ? environmentInjector\n : environmentInjector?.injector;\n if (realEnvironmentInjector && this.componentDef.getStandaloneInjector !== null) {\n realEnvironmentInjector =\n this.componentDef.getStandaloneInjector(realEnvironmentInjector) ||\n realEnvironmentInjector;\n }\n const rootViewInjector = realEnvironmentInjector\n ? new ChainedInjector(injector, realEnvironmentInjector)\n : injector;\n const rendererFactory = rootViewInjector.get(RendererFactory2, null);\n if (rendererFactory === null) {\n throw new RuntimeError(407 /* RuntimeErrorCode.RENDERER_NOT_FOUND */, ngDevMode &&\n 'Angular was not able to inject a renderer (RendererFactory2). ' +\n 'Likely this is due to a broken DI hierarchy. ' +\n 'Make sure that any injector used to create this component has a correct parent.');\n }\n const sanitizer = rootViewInjector.get(Sanitizer, null);\n const changeDetectionScheduler = rootViewInjector.get(ChangeDetectionScheduler, null);\n const environment = {\n rendererFactory,\n sanitizer,\n changeDetectionScheduler,\n };\n const hostRenderer = rendererFactory.createRenderer(null, this.componentDef);\n // Determine a tag name used for creating host elements when this component is created\n // dynamically. Default to 'div' if this component did not specify any tag name in its\n // selector.\n const elementName = this.componentDef.selectors[0][0] || 'div';\n const hostRNode = rootSelectorOrNode\n ? locateHostElement(hostRenderer, rootSelectorOrNode, this.componentDef.encapsulation, rootViewInjector)\n : createElementNode(hostRenderer, elementName, getNamespace(elementName));\n let rootFlags = 512 /* LViewFlags.IsRoot */;\n if (this.componentDef.signals) {\n rootFlags |= 4096 /* LViewFlags.SignalView */;\n }\n else if (!this.componentDef.onPush) {\n rootFlags |= 16 /* LViewFlags.CheckAlways */;\n }\n let hydrationInfo = null;\n if (hostRNode !== null) {\n hydrationInfo = retrieveHydrationInfo(hostRNode, rootViewInjector, true /* isRootView */);\n }\n // Create the root view. Uses empty TView and ContentTemplate.\n const rootTView = createTView(0 /* TViewType.Root */, null, null, 1, 0, null, null, null, null, null, null);\n const rootLView = createLView(null, rootTView, null, rootFlags, null, null, environment, hostRenderer, rootViewInjector, null, hydrationInfo);\n rootLView[HEADER_OFFSET] = hostRNode;\n // rootView is the parent when bootstrapping\n // TODO(misko): it looks like we are entering view here but we don't really need to as\n // `renderView` does that. However as the code is written it is needed because\n // `createRootComponentView` and `createRootComponent` both read global state. Fixing those\n // issues would allow us to drop this.\n enterView(rootLView);\n let componentView = null;\n try {\n // If host dom element is created (instead of being provided as part of the dynamic component creation), also apply attributes and classes extracted from component selector.\n const tAttributes = rootSelectorOrNode\n ? ['ng-version', '19.1.4']\n : // Extract attributes and classes from the first selector only to match VE behavior.\n extractAttrsAndClassesFromSelector(this.componentDef.selectors[0]);\n // TODO: this logic is shared with the element instruction first create pass\n const hostTNode = getOrCreateTNode(rootTView, HEADER_OFFSET, 2 /* TNodeType.Element */, '#host', tAttributes);\n const [directiveDefs, hostDirectiveDefs] = resolveHostDirectives(rootTView, hostTNode, [\n this.componentDef,\n ]);\n initializeDirectives(rootTView, rootLView, hostTNode, directiveDefs, {}, hostDirectiveDefs);\n for (const def of directiveDefs) {\n hostTNode.mergedAttrs = mergeHostAttrs(hostTNode.mergedAttrs, def.hostAttrs);\n }\n hostTNode.mergedAttrs = mergeHostAttrs(hostTNode.mergedAttrs, tAttributes);\n computeStaticStyling(hostTNode, hostTNode.mergedAttrs, true);\n // TODO(crisbeto): in practice `hostRNode` should always be defined, but there are some\n // tests where the renderer is mocked out and `undefined` is returned. We should update the\n // tests so that this check can be removed.\n if (hostRNode) {\n setupStaticAttributes(hostRenderer, hostRNode, hostTNode);\n attachPatchData(hostRNode, rootLView);\n }\n if (projectableNodes !== undefined) {\n projectNodes(hostTNode, this.ngContentSelectors, projectableNodes);\n }\n // TODO(pk): this logic is similar to the instruction code where a node can have directives\n createDirectivesInstances(rootTView, rootLView, hostTNode);\n executeContentQueries(rootTView, hostTNode, rootLView);\n // TODO(pk): code / logic duplication with the elementEnd and similar instructions\n registerPostOrderHooks(rootTView, hostTNode);\n componentView = getComponentLViewByIndex(hostTNode.index, rootLView);\n // TODO(pk): why do we need this logic?\n rootLView[CONTEXT] = componentView[CONTEXT];\n renderView(rootTView, rootLView, null);\n }\n catch (e) {\n // Stop tracking the views if creation failed since\n // the consumer won't have a way to dereference them.\n if (componentView !== null) {\n unregisterLView(componentView);\n }\n unregisterLView(rootLView);\n throw e;\n }\n finally {\n leaveView();\n }\n return new ComponentRef(this.componentType, rootLView);\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n}\n/**\n * Represents an instance of a Component created via a {@link ComponentFactory}.\n *\n * `ComponentRef` provides access to the Component Instance as well other objects related to this\n * Component Instance and allows you to destroy the Component Instance via the {@link #destroy}\n * method.\n *\n */\nclass ComponentRef extends ComponentRef$1 {\n _rootLView;\n instance;\n hostView;\n changeDetectorRef;\n componentType;\n location;\n previousInputValues = null;\n _tNode;\n constructor(componentType, _rootLView) {\n super();\n this._rootLView = _rootLView;\n this._tNode = getTNode(_rootLView[TVIEW], HEADER_OFFSET);\n this.location = createElementRef(this._tNode, _rootLView);\n this.instance = getComponentLViewByIndex(this._tNode.index, _rootLView)[CONTEXT];\n this.hostView = this.changeDetectorRef = new ViewRef$1(_rootLView, undefined /* _cdRefInjectingView */, false /* notifyErrorHandler */);\n this.componentType = componentType;\n }\n setInput(name, value) {\n const inputData = this._tNode.inputs;\n let dataValue;\n if (inputData !== null && (dataValue = inputData[name])) {\n this.previousInputValues ??= new Map();\n // Do not set the input if it is the same as the last value\n // This behavior matches `bindingUpdated` when binding inputs in templates.\n if (this.previousInputValues.has(name) &&\n Object.is(this.previousInputValues.get(name), value)) {\n return;\n }\n const lView = this._rootLView;\n setInputsForProperty(lView[TVIEW], lView, dataValue, name, value);\n this.previousInputValues.set(name, value);\n const childComponentLView = getComponentLViewByIndex(this._tNode.index, lView);\n markViewDirty(childComponentLView, 1 /* NotificationSource.SetInput */);\n }\n else {\n if (ngDevMode) {\n const cmpNameForError = stringifyForError(this.componentType);\n let message = `Can't set value of the '${name}' input on the '${cmpNameForError}' component. `;\n message += `Make sure that the '${name}' property is annotated with @Input() or a mapped @Input('${name}') exists.`;\n reportUnknownPropertyError(message);\n }\n }\n }\n get injector() {\n return new NodeInjector(this._tNode, this._rootLView);\n }\n destroy() {\n this.hostView.destroy();\n }\n onDestroy(callback) {\n this.hostView.onDestroy(callback);\n }\n}\n/** Projects the `projectableNodes` that were specified when creating a root component. */\nfunction projectNodes(tNode, ngContentSelectors, projectableNodes) {\n const projection = (tNode.projection = []);\n for (let i = 0; i < ngContentSelectors.length; i++) {\n const nodesforSlot = projectableNodes[i];\n // Projectable nodes can be passed as array of arrays or an array of iterables (ngUpgrade\n // case). Here we do normalize passed data structure to be an array of arrays to avoid\n // complex checks down the line.\n // We also normalize the length of the passed in projectable nodes (to match the number of\n // <ng-container> slots defined by a component).\n projection.push(nodesforSlot != null && nodesforSlot.length ? Array.from(nodesforSlot) : null);\n }\n}\n\n/**\n * Represents a container where one or more views can be attached to a component.\n *\n * Can contain *host views* (created by instantiating a\n * component with the `createComponent()` method), and *embedded views*\n * (created by instantiating a `TemplateRef` with the `createEmbeddedView()` method).\n *\n * A view container instance can contain other view containers,\n * creating a view hierarchy.\n *\n * @usageNotes\n *\n * The example below demonstrates how the `createComponent` function can be used\n * to create an instance of a ComponentRef dynamically and attach it to an ApplicationRef,\n * so that it gets included into change detection cycles.\n *\n * Note: the example uses standalone components, but the function can also be used for\n * non-standalone components (declared in an NgModule) as well.\n *\n * ```angular-ts\n * @Component({\n * standalone: true,\n * selector: 'dynamic',\n * template: `<span>This is a content of a dynamic component.</span>`,\n * })\n * class DynamicComponent {\n * vcr = inject(ViewContainerRef);\n * }\n *\n * @Component({\n * standalone: true,\n * selector: 'app',\n * template: `<main>Hi! This is the main content.</main>`,\n * })\n * class AppComponent {\n * vcr = inject(ViewContainerRef);\n *\n * ngAfterViewInit() {\n * const compRef = this.vcr.createComponent(DynamicComponent);\n * compRef.changeDetectorRef.detectChanges();\n * }\n * }\n * ```\n *\n * @see {@link ComponentRef}\n * @see {@link EmbeddedViewRef}\n *\n * @publicApi\n */\nclass ViewContainerRef {\n /**\n * @internal\n * @nocollapse\n */\n static __NG_ELEMENT_ID__ = injectViewContainerRef;\n}\n/**\n * Creates a ViewContainerRef and stores it on the injector. Or, if the ViewContainerRef\n * already exists, retrieves the existing ViewContainerRef.\n *\n * @returns The ViewContainerRef instance to use\n */\nfunction injectViewContainerRef() {\n const previousTNode = getCurrentTNode();\n return createContainerRef(previousTNode, getLView());\n}\nconst VE_ViewContainerRef = ViewContainerRef;\n// TODO(alxhub): cleaning up this indirection triggers a subtle bug in Closure in g3. Once the fix\n// for that lands, this can be cleaned up.\nconst R3ViewContainerRef = class ViewContainerRef extends VE_ViewContainerRef {\n _lContainer;\n _hostTNode;\n _hostLView;\n constructor(_lContainer, _hostTNode, _hostLView) {\n super();\n this._lContainer = _lContainer;\n this._hostTNode = _hostTNode;\n this._hostLView = _hostLView;\n }\n get element() {\n return createElementRef(this._hostTNode, this._hostLView);\n }\n get injector() {\n return new NodeInjector(this._hostTNode, this._hostLView);\n }\n /** @deprecated No replacement */\n get parentInjector() {\n const parentLocation = getParentInjectorLocation(this._hostTNode, this._hostLView);\n if (hasParentInjector(parentLocation)) {\n const parentView = getParentInjectorView(parentLocation, this._hostLView);\n const injectorIndex = getParentInjectorIndex(parentLocation);\n ngDevMode && assertNodeInjector(parentView, injectorIndex);\n const parentTNode = parentView[TVIEW].data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */];\n return new NodeInjector(parentTNode, parentView);\n }\n else {\n return new NodeInjector(null, this._hostLView);\n }\n }\n clear() {\n while (this.length > 0) {\n this.remove(this.length - 1);\n }\n }\n get(index) {\n const viewRefs = getViewRefs(this._lContainer);\n return (viewRefs !== null && viewRefs[index]) || null;\n }\n get length() {\n return this._lContainer.length - CONTAINER_HEADER_OFFSET;\n }\n createEmbeddedView(templateRef, context, indexOrOptions) {\n let index;\n let injector;\n if (typeof indexOrOptions === 'number') {\n index = indexOrOptions;\n }\n else if (indexOrOptions != null) {\n index = indexOrOptions.index;\n injector = indexOrOptions.injector;\n }\n const dehydratedView = findMatchingDehydratedView(this._lContainer, templateRef.ssrId);\n const viewRef = templateRef.createEmbeddedViewImpl(context || {}, injector, dehydratedView);\n this.insertImpl(viewRef, index, shouldAddViewToDom(this._hostTNode, dehydratedView));\n return viewRef;\n }\n createComponent(componentFactoryOrType, indexOrOptions, injector, projectableNodes, environmentInjector) {\n const isComponentFactory = componentFactoryOrType && !isType(componentFactoryOrType);\n let index;\n // This function supports 2 signatures and we need to handle options correctly for both:\n // 1. When first argument is a Component type. This signature also requires extra\n // options to be provided as object (more ergonomic option).\n // 2. First argument is a Component factory. In this case extra options are represented as\n // positional arguments. This signature is less ergonomic and will be deprecated.\n if (isComponentFactory) {\n if (ngDevMode) {\n assertEqual(typeof indexOrOptions !== 'object', true, 'It looks like Component factory was provided as the first argument ' +\n 'and an options object as the second argument. This combination of arguments ' +\n 'is incompatible. You can either change the first argument to provide Component ' +\n 'type or change the second argument to be a number (representing an index at ' +\n \"which to insert the new component's host view into this container)\");\n }\n index = indexOrOptions;\n }\n else {\n if (ngDevMode) {\n assertDefined(getComponentDef(componentFactoryOrType), `Provided Component class doesn't contain Component definition. ` +\n `Please check whether provided class has @Component decorator.`);\n assertEqual(typeof indexOrOptions !== 'number', true, 'It looks like Component type was provided as the first argument ' +\n \"and a number (representing an index at which to insert the new component's \" +\n 'host view into this container as the second argument. This combination of arguments ' +\n 'is incompatible. Please use an object as the second argument instead.');\n }\n const options = (indexOrOptions || {});\n if (ngDevMode && options.environmentInjector && options.ngModuleRef) {\n throwError(`Cannot pass both environmentInjector and ngModuleRef options to createComponent().`);\n }\n index = options.index;\n injector = options.injector;\n projectableNodes = options.projectableNodes;\n environmentInjector = options.environmentInjector || options.ngModuleRef;\n }\n const componentFactory = isComponentFactory\n ? componentFactoryOrType\n : new ComponentFactory(getComponentDef(componentFactoryOrType));\n const contextInjector = injector || this.parentInjector;\n // If an `NgModuleRef` is not provided explicitly, try retrieving it from the DI tree.\n if (!environmentInjector && componentFactory.ngModule == null) {\n // For the `ComponentFactory` case, entering this logic is very unlikely, since we expect that\n // an instance of a `ComponentFactory`, resolved via `ComponentFactoryResolver` would have an\n // `ngModule` field. This is possible in some test scenarios and potentially in some JIT-based\n // use-cases. For the `ComponentFactory` case we preserve backwards-compatibility and try\n // using a provided injector first, then fall back to the parent injector of this\n // `ViewContainerRef` instance.\n //\n // For the factory-less case, it's critical to establish a connection with the module\n // injector tree (by retrieving an instance of an `NgModuleRef` and accessing its injector),\n // so that a component can use DI tokens provided in MgModules. For this reason, we can not\n // rely on the provided injector, since it might be detached from the DI tree (for example, if\n // it was created via `Injector.create` without specifying a parent injector, or if an\n // injector is retrieved from an `NgModuleRef` created via `createNgModule` using an\n // NgModule outside of a module tree). Instead, we always use `ViewContainerRef`'s parent\n // injector, which is normally connected to the DI tree, which includes module injector\n // subtree.\n const _injector = isComponentFactory ? contextInjector : this.parentInjector;\n // DO NOT REFACTOR. The code here used to have a `injector.get(NgModuleRef, null) ||\n // undefined` expression which seems to cause internal google apps to fail. This is documented\n // in the following internal bug issue: go/b/142967802\n const result = _injector.get(EnvironmentInjector, null);\n if (result) {\n environmentInjector = result;\n }\n }\n const componentDef = getComponentDef(componentFactory.componentType ?? {});\n const dehydratedView = findMatchingDehydratedView(this._lContainer, componentDef?.id ?? null);\n const rNode = dehydratedView?.firstChild ?? null;\n const componentRef = componentFactory.create(contextInjector, projectableNodes, rNode, environmentInjector);\n this.insertImpl(componentRef.hostView, index, shouldAddViewToDom(this._hostTNode, dehydratedView));\n return componentRef;\n }\n insert(viewRef, index) {\n return this.insertImpl(viewRef, index, true);\n }\n insertImpl(viewRef, index, addToDOM) {\n const lView = viewRef._lView;\n if (ngDevMode && viewRef.destroyed) {\n throw new Error('Cannot insert a destroyed View in a ViewContainer!');\n }\n if (viewAttachedToContainer(lView)) {\n // If view is already attached, detach it first so we clean up references appropriately.\n const prevIdx = this.indexOf(viewRef);\n // A view might be attached either to this or a different container. The `prevIdx` for\n // those cases will be:\n // equal to -1 for views attached to this ViewContainerRef\n // >= 0 for views attached to a different ViewContainerRef\n if (prevIdx !== -1) {\n this.detach(prevIdx);\n }\n else {\n const prevLContainer = lView[PARENT];\n ngDevMode &&\n assertEqual(isLContainer(prevLContainer), true, 'An attached view should have its PARENT point to a container.');\n // We need to re-create a R3ViewContainerRef instance since those are not stored on\n // LView (nor anywhere else).\n const prevVCRef = new R3ViewContainerRef(prevLContainer, prevLContainer[T_HOST], prevLContainer[PARENT]);\n prevVCRef.detach(prevVCRef.indexOf(viewRef));\n }\n }\n // Logical operation of adding `LView` to `LContainer`\n const adjustedIdx = this._adjustIndex(index);\n const lContainer = this._lContainer;\n addLViewToLContainer(lContainer, lView, adjustedIdx, addToDOM);\n viewRef.attachToViewContainerRef();\n addToArray(getOrCreateViewRefs(lContainer), adjustedIdx, viewRef);\n return viewRef;\n }\n move(viewRef, newIndex) {\n if (ngDevMode && viewRef.destroyed) {\n throw new Error('Cannot move a destroyed View in a ViewContainer!');\n }\n return this.insert(viewRef, newIndex);\n }\n indexOf(viewRef) {\n const viewRefsArr = getViewRefs(this._lContainer);\n return viewRefsArr !== null ? viewRefsArr.indexOf(viewRef) : -1;\n }\n remove(index) {\n const adjustedIdx = this._adjustIndex(index, -1);\n const detachedView = detachView(this._lContainer, adjustedIdx);\n if (detachedView) {\n // Before destroying the view, remove it from the container's array of `ViewRef`s.\n // This ensures the view container length is updated before calling\n // `destroyLView`, which could recursively call view container methods that\n // rely on an accurate container length.\n // (e.g. a method on this view container being called by a child directive's OnDestroy\n // lifecycle hook)\n removeFromArray(getOrCreateViewRefs(this._lContainer), adjustedIdx);\n destroyLView(detachedView[TVIEW], detachedView);\n }\n }\n detach(index) {\n const adjustedIdx = this._adjustIndex(index, -1);\n const view = detachView(this._lContainer, adjustedIdx);\n const wasDetached = view && removeFromArray(getOrCreateViewRefs(this._lContainer), adjustedIdx) != null;\n return wasDetached ? new ViewRef$1(view) : null;\n }\n _adjustIndex(index, shift = 0) {\n if (index == null) {\n return this.length + shift;\n }\n if (ngDevMode) {\n assertGreaterThan(index, -1, `ViewRef index must be positive, got ${index}`);\n // +1 because it's legal to insert at the end.\n assertLessThan(index, this.length + 1 + shift, 'index');\n }\n return index;\n }\n};\nfunction getViewRefs(lContainer) {\n return lContainer[VIEW_REFS];\n}\nfunction getOrCreateViewRefs(lContainer) {\n return (lContainer[VIEW_REFS] || (lContainer[VIEW_REFS] = []));\n}\n/**\n * Creates a ViewContainerRef and stores it on the injector.\n *\n * @param hostTNode The node that is requesting a ViewContainerRef\n * @param hostLView The view to which the node belongs\n * @returns The ViewContainerRef instance to use\n */\nfunction createContainerRef(hostTNode, hostLView) {\n ngDevMode && assertTNodeType(hostTNode, 12 /* TNodeType.AnyContainer */ | 3 /* TNodeType.AnyRNode */);\n let lContainer;\n const slotValue = hostLView[hostTNode.index];\n if (isLContainer(slotValue)) {\n // If the host is a container, we don't need to create a new LContainer\n lContainer = slotValue;\n }\n else {\n // An LContainer anchor can not be `null`, but we set it here temporarily\n // and update to the actual value later in this function (see\n // `_locateOrCreateAnchorNode`).\n lContainer = createLContainer(slotValue, hostLView, null, hostTNode);\n hostLView[hostTNode.index] = lContainer;\n addToEndOfViewTree(hostLView, lContainer);\n }\n _locateOrCreateAnchorNode(lContainer, hostLView, hostTNode, slotValue);\n return new R3ViewContainerRef(lContainer, hostTNode, hostLView);\n}\n/**\n * Creates and inserts a comment node that acts as an anchor for a view container.\n *\n * If the host is a regular element, we have to insert a comment node manually which will\n * be used as an anchor when inserting elements. In this specific case we use low-level DOM\n * manipulation to insert it.\n */\nfunction insertAnchorNode(hostLView, hostTNode) {\n const renderer = hostLView[RENDERER];\n ngDevMode && ngDevMode.rendererCreateComment++;\n const commentNode = renderer.createComment(ngDevMode ? 'container' : '');\n const hostNative = getNativeByTNode(hostTNode, hostLView);\n const parentOfHostNative = renderer.parentNode(hostNative);\n nativeInsertBefore(renderer, parentOfHostNative, commentNode, renderer.nextSibling(hostNative), false);\n return commentNode;\n}\nlet _locateOrCreateAnchorNode = createAnchorNode;\nlet _populateDehydratedViewsInLContainer = () => false; // noop by default\n/**\n * Looks up dehydrated views that belong to a given LContainer and populates\n * this information into the `LContainer[DEHYDRATED_VIEWS]` slot. When running\n * in client-only mode, this function is a noop.\n *\n * @param lContainer LContainer that should be populated.\n * @param tNode Corresponding TNode.\n * @param hostLView LView that hosts LContainer.\n * @returns a boolean flag that indicates whether a populating operation\n * was successful. The operation might be unsuccessful in case is has completed\n * previously, we are rendering in client-only mode or this content is located\n * in a skip hydration section.\n */\nfunction populateDehydratedViewsInLContainer(lContainer, tNode, hostLView) {\n return _populateDehydratedViewsInLContainer(lContainer, tNode, hostLView);\n}\n/**\n * Regular creation mode: an anchor is created and\n * assigned to the `lContainer[NATIVE]` slot.\n */\nfunction createAnchorNode(lContainer, hostLView, hostTNode, slotValue) {\n // We already have a native element (anchor) set, return.\n if (lContainer[NATIVE])\n return;\n let commentNode;\n // If the host is an element container, the native host element is guaranteed to be a\n // comment and we can reuse that comment as anchor element for the new LContainer.\n // The comment node in question is already part of the DOM structure so we don't need to append\n // it again.\n if (hostTNode.type & 8 /* TNodeType.ElementContainer */) {\n commentNode = unwrapRNode(slotValue);\n }\n else {\n commentNode = insertAnchorNode(hostLView, hostTNode);\n }\n lContainer[NATIVE] = commentNode;\n}\n/**\n * Hydration logic that looks up all dehydrated views in this container\n * and puts them into `lContainer[DEHYDRATED_VIEWS]` slot.\n *\n * @returns a boolean flag that indicates whether a populating operation\n * was successful. The operation might be unsuccessful in case is has completed\n * previously, we are rendering in client-only mode or this content is located\n * in a skip hydration section.\n */\nfunction populateDehydratedViewsInLContainerImpl(lContainer, tNode, hostLView) {\n // We already have a native element (anchor) set and the process\n // of finding dehydrated views happened (so the `lContainer[DEHYDRATED_VIEWS]`\n // is not null), exit early.\n if (lContainer[NATIVE] && lContainer[DEHYDRATED_VIEWS]) {\n return true;\n }\n const hydrationInfo = hostLView[HYDRATION];\n const noOffsetIndex = tNode.index - HEADER_OFFSET;\n const isNodeCreationMode = !hydrationInfo ||\n isInSkipHydrationBlock(tNode) ||\n isDisconnectedNode$1(hydrationInfo, noOffsetIndex);\n // Regular creation mode.\n if (isNodeCreationMode) {\n return false;\n }\n // Hydration mode, looking up an anchor node and dehydrated views in DOM.\n const currentRNode = getSegmentHead(hydrationInfo, noOffsetIndex);\n const serializedViews = hydrationInfo.data[CONTAINERS]?.[noOffsetIndex];\n ngDevMode &&\n assertDefined(serializedViews, 'Unexpected state: no hydration info available for a given TNode, ' +\n 'which represents a view container.');\n const [commentNode, dehydratedViews] = locateDehydratedViewsInContainer(currentRNode, serializedViews);\n if (ngDevMode) {\n validateMatchingNode(commentNode, Node.COMMENT_NODE, null, hostLView, tNode, true);\n // Do not throw in case this node is already claimed (thus `false` as a second\n // argument). If this container is created based on an `<ng-template>`, the comment\n // node would be already claimed from the `template` instruction. If an element acts\n // as an anchor (e.g. <div #vcRef>), a separate comment node would be created/located,\n // so we need to claim it here.\n markRNodeAsClaimedByHydration(commentNode, false);\n }\n lContainer[NATIVE] = commentNode;\n lContainer[DEHYDRATED_VIEWS] = dehydratedViews;\n return true;\n}\nfunction locateOrCreateAnchorNode(lContainer, hostLView, hostTNode, slotValue) {\n if (!_populateDehydratedViewsInLContainer(lContainer, hostTNode, hostLView)) {\n // Populating dehydrated views operation returned `false`, which indicates\n // that the logic was running in client-only mode, this an anchor comment\n // node should be created for this container.\n createAnchorNode(lContainer, hostLView, hostTNode, slotValue);\n }\n}\nfunction enableLocateOrCreateContainerRefImpl() {\n _locateOrCreateAnchorNode = locateOrCreateAnchorNode;\n _populateDehydratedViewsInLContainer = populateDehydratedViewsInLContainerImpl;\n}\n\nclass LQuery_ {\n queryList;\n matches = null;\n constructor(queryList) {\n this.queryList = queryList;\n }\n clone() {\n return new LQuery_(this.queryList);\n }\n setDirty() {\n this.queryList.setDirty();\n }\n}\nclass LQueries_ {\n queries;\n constructor(queries = []) {\n this.queries = queries;\n }\n createEmbeddedView(tView) {\n const tQueries = tView.queries;\n if (tQueries !== null) {\n const noOfInheritedQueries = tView.contentQueries !== null ? tView.contentQueries[0] : tQueries.length;\n const viewLQueries = [];\n // An embedded view has queries propagated from a declaration view at the beginning of the\n // TQueries collection and up until a first content query declared in the embedded view. Only\n // propagated LQueries are created at this point (LQuery corresponding to declared content\n // queries will be instantiated from the content query instructions for each directive).\n for (let i = 0; i < noOfInheritedQueries; i++) {\n const tQuery = tQueries.getByIndex(i);\n const parentLQuery = this.queries[tQuery.indexInDeclarationView];\n viewLQueries.push(parentLQuery.clone());\n }\n return new LQueries_(viewLQueries);\n }\n return null;\n }\n insertView(tView) {\n this.dirtyQueriesWithMatches(tView);\n }\n detachView(tView) {\n this.dirtyQueriesWithMatches(tView);\n }\n finishViewCreation(tView) {\n this.dirtyQueriesWithMatches(tView);\n }\n dirtyQueriesWithMatches(tView) {\n for (let i = 0; i < this.queries.length; i++) {\n if (getTQuery(tView, i).matches !== null) {\n this.queries[i].setDirty();\n }\n }\n }\n}\nclass TQueryMetadata_ {\n flags;\n read;\n predicate;\n constructor(predicate, flags, read = null) {\n this.flags = flags;\n this.read = read;\n // Compiler might not be able to pre-optimize and split multiple selectors.\n if (typeof predicate === 'string') {\n this.predicate = splitQueryMultiSelectors(predicate);\n }\n else {\n this.predicate = predicate;\n }\n }\n}\nclass TQueries_ {\n queries;\n constructor(queries = []) {\n this.queries = queries;\n }\n elementStart(tView, tNode) {\n ngDevMode &&\n assertFirstCreatePass(tView, 'Queries should collect results on the first template pass only');\n for (let i = 0; i < this.queries.length; i++) {\n this.queries[i].elementStart(tView, tNode);\n }\n }\n elementEnd(tNode) {\n for (let i = 0; i < this.queries.length; i++) {\n this.queries[i].elementEnd(tNode);\n }\n }\n embeddedTView(tNode) {\n let queriesForTemplateRef = null;\n for (let i = 0; i < this.length; i++) {\n const childQueryIndex = queriesForTemplateRef !== null ? queriesForTemplateRef.length : 0;\n const tqueryClone = this.getByIndex(i).embeddedTView(tNode, childQueryIndex);\n if (tqueryClone) {\n tqueryClone.indexInDeclarationView = i;\n if (queriesForTemplateRef !== null) {\n queriesForTemplateRef.push(tqueryClone);\n }\n else {\n queriesForTemplateRef = [tqueryClone];\n }\n }\n }\n return queriesForTemplateRef !== null ? new TQueries_(queriesForTemplateRef) : null;\n }\n template(tView, tNode) {\n ngDevMode &&\n assertFirstCreatePass(tView, 'Queries should collect results on the first template pass only');\n for (let i = 0; i < this.queries.length; i++) {\n this.queries[i].template(tView, tNode);\n }\n }\n getByIndex(index) {\n ngDevMode && assertIndexInRange(this.queries, index);\n return this.queries[index];\n }\n get length() {\n return this.queries.length;\n }\n track(tquery) {\n this.queries.push(tquery);\n }\n}\nclass TQuery_ {\n metadata;\n matches = null;\n indexInDeclarationView = -1;\n crossesNgTemplate = false;\n /**\n * A node index on which a query was declared (-1 for view queries and ones inherited from the\n * declaration template). We use this index (alongside with _appliesToNextNode flag) to know\n * when to apply content queries to elements in a template.\n */\n _declarationNodeIndex;\n /**\n * A flag indicating if a given query still applies to nodes it is crossing. We use this flag\n * (alongside with _declarationNodeIndex) to know when to stop applying content queries to\n * elements in a template.\n */\n _appliesToNextNode = true;\n constructor(metadata, nodeIndex = -1) {\n this.metadata = metadata;\n this._declarationNodeIndex = nodeIndex;\n }\n elementStart(tView, tNode) {\n if (this.isApplyingToNode(tNode)) {\n this.matchTNode(tView, tNode);\n }\n }\n elementEnd(tNode) {\n if (this._declarationNodeIndex === tNode.index) {\n this._appliesToNextNode = false;\n }\n }\n template(tView, tNode) {\n this.elementStart(tView, tNode);\n }\n embeddedTView(tNode, childQueryIndex) {\n if (this.isApplyingToNode(tNode)) {\n this.crossesNgTemplate = true;\n // A marker indicating a `<ng-template>` element (a placeholder for query results from\n // embedded views created based on this `<ng-template>`).\n this.addMatch(-tNode.index, childQueryIndex);\n return new TQuery_(this.metadata);\n }\n return null;\n }\n isApplyingToNode(tNode) {\n if (this._appliesToNextNode &&\n (this.metadata.flags & 1 /* QueryFlags.descendants */) !== 1 /* QueryFlags.descendants */) {\n const declarationNodeIdx = this._declarationNodeIndex;\n let parent = tNode.parent;\n // Determine if a given TNode is a \"direct\" child of a node on which a content query was\n // declared (only direct children of query's host node can match with the descendants: false\n // option). There are 3 main use-case / conditions to consider here:\n // - <needs-target><i #target></i></needs-target>: here <i #target> parent node is a query\n // host node;\n // - <needs-target><ng-template [ngIf]=\"true\"><i #target></i></ng-template></needs-target>:\n // here <i #target> parent node is null;\n // - <needs-target><ng-container><i #target></i></ng-container></needs-target>: here we need\n // to go past `<ng-container>` to determine <i #target> parent node (but we shouldn't traverse\n // up past the query's host node!).\n while (parent !== null &&\n parent.type & 8 /* TNodeType.ElementContainer */ &&\n parent.index !== declarationNodeIdx) {\n parent = parent.parent;\n }\n return declarationNodeIdx === (parent !== null ? parent.index : -1);\n }\n return this._appliesToNextNode;\n }\n matchTNode(tView, tNode) {\n const predicate = this.metadata.predicate;\n if (Array.isArray(predicate)) {\n for (let i = 0; i < predicate.length; i++) {\n const name = predicate[i];\n this.matchTNodeWithReadOption(tView, tNode, getIdxOfMatchingSelector(tNode, name));\n // Also try matching the name to a provider since strings can be used as DI tokens too.\n this.matchTNodeWithReadOption(tView, tNode, locateDirectiveOrProvider(tNode, tView, name, false, false));\n }\n }\n else {\n if (predicate === TemplateRef) {\n if (tNode.type & 4 /* TNodeType.Container */) {\n this.matchTNodeWithReadOption(tView, tNode, -1);\n }\n }\n else {\n this.matchTNodeWithReadOption(tView, tNode, locateDirectiveOrProvider(tNode, tView, predicate, false, false));\n }\n }\n }\n matchTNodeWithReadOption(tView, tNode, nodeMatchIdx) {\n if (nodeMatchIdx !== null) {\n const read = this.metadata.read;\n if (read !== null) {\n if (read === ElementRef ||\n read === ViewContainerRef ||\n (read === TemplateRef && tNode.type & 4 /* TNodeType.Container */)) {\n this.addMatch(tNode.index, -2);\n }\n else {\n const directiveOrProviderIdx = locateDirectiveOrProvider(tNode, tView, read, false, false);\n if (directiveOrProviderIdx !== null) {\n this.addMatch(tNode.index, directiveOrProviderIdx);\n }\n }\n }\n else {\n this.addMatch(tNode.index, nodeMatchIdx);\n }\n }\n }\n addMatch(tNodeIdx, matchIdx) {\n if (this.matches === null) {\n this.matches = [tNodeIdx, matchIdx];\n }\n else {\n this.matches.push(tNodeIdx, matchIdx);\n }\n }\n}\n/**\n * Iterates over local names for a given node and returns directive index\n * (or -1 if a local name points to an element).\n *\n * @param tNode static data of a node to check\n * @param selector selector to match\n * @returns directive index, -1 or null if a selector didn't match any of the local names\n */\nfunction getIdxOfMatchingSelector(tNode, selector) {\n const localNames = tNode.localNames;\n if (localNames !== null) {\n for (let i = 0; i < localNames.length; i += 2) {\n if (localNames[i] === selector) {\n return localNames[i + 1];\n }\n }\n }\n return null;\n}\nfunction createResultByTNodeType(tNode, currentView) {\n if (tNode.type & (3 /* TNodeType.AnyRNode */ | 8 /* TNodeType.ElementContainer */)) {\n return createElementRef(tNode, currentView);\n }\n else if (tNode.type & 4 /* TNodeType.Container */) {\n return createTemplateRef(tNode, currentView);\n }\n return null;\n}\nfunction createResultForNode(lView, tNode, matchingIdx, read) {\n if (matchingIdx === -1) {\n // if read token and / or strategy is not specified, detect it using appropriate tNode type\n return createResultByTNodeType(tNode, lView);\n }\n else if (matchingIdx === -2) {\n // read a special token from a node injector\n return createSpecialToken(lView, tNode, read);\n }\n else {\n // read a token\n return getNodeInjectable(lView, lView[TVIEW], matchingIdx, tNode);\n }\n}\nfunction createSpecialToken(lView, tNode, read) {\n if (read === ElementRef) {\n return createElementRef(tNode, lView);\n }\n else if (read === TemplateRef) {\n return createTemplateRef(tNode, lView);\n }\n else if (read === ViewContainerRef) {\n ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */);\n return createContainerRef(tNode, lView);\n }\n else {\n ngDevMode &&\n throwError(`Special token to read should be one of ElementRef, TemplateRef or ViewContainerRef but got ${stringify(read)}.`);\n }\n}\n/**\n * A helper function that creates query results for a given view. This function is meant to do the\n * processing once and only once for a given view instance (a set of results for a given view\n * doesn't change).\n */\nfunction materializeViewResults(tView, lView, tQuery, queryIndex) {\n const lQuery = lView[QUERIES].queries[queryIndex];\n if (lQuery.matches === null) {\n const tViewData = tView.data;\n const tQueryMatches = tQuery.matches;\n const result = [];\n for (let i = 0; tQueryMatches !== null && i < tQueryMatches.length; i += 2) {\n const matchedNodeIdx = tQueryMatches[i];\n if (matchedNodeIdx < 0) {\n // we at the <ng-template> marker which might have results in views created based on this\n // <ng-template> - those results will be in separate views though, so here we just leave\n // null as a placeholder\n result.push(null);\n }\n else {\n ngDevMode && assertIndexInRange(tViewData, matchedNodeIdx);\n const tNode = tViewData[matchedNodeIdx];\n result.push(createResultForNode(lView, tNode, tQueryMatches[i + 1], tQuery.metadata.read));\n }\n }\n lQuery.matches = result;\n }\n return lQuery.matches;\n}\n/**\n * A helper function that collects (already materialized) query results from a tree of views,\n * starting with a provided LView.\n */\nfunction collectQueryResults(tView, lView, queryIndex, result) {\n const tQuery = tView.queries.getByIndex(queryIndex);\n const tQueryMatches = tQuery.matches;\n if (tQueryMatches !== null) {\n const lViewResults = materializeViewResults(tView, lView, tQuery, queryIndex);\n for (let i = 0; i < tQueryMatches.length; i += 2) {\n const tNodeIdx = tQueryMatches[i];\n if (tNodeIdx > 0) {\n result.push(lViewResults[i / 2]);\n }\n else {\n const childQueryIndex = tQueryMatches[i + 1];\n const declarationLContainer = lView[-tNodeIdx];\n ngDevMode && assertLContainer(declarationLContainer);\n // collect matches for views inserted in this container\n for (let i = CONTAINER_HEADER_OFFSET; i < declarationLContainer.length; i++) {\n const embeddedLView = declarationLContainer[i];\n if (embeddedLView[DECLARATION_LCONTAINER] === embeddedLView[PARENT]) {\n collectQueryResults(embeddedLView[TVIEW], embeddedLView, childQueryIndex, result);\n }\n }\n // collect matches for views created from this declaration container and inserted into\n // different containers\n if (declarationLContainer[MOVED_VIEWS] !== null) {\n const embeddedLViews = declarationLContainer[MOVED_VIEWS];\n for (let i = 0; i < embeddedLViews.length; i++) {\n const embeddedLView = embeddedLViews[i];\n collectQueryResults(embeddedLView[TVIEW], embeddedLView, childQueryIndex, result);\n }\n }\n }\n }\n }\n return result;\n}\nfunction loadQueryInternal(lView, queryIndex) {\n ngDevMode &&\n assertDefined(lView[QUERIES], 'LQueries should be defined when trying to load a query');\n ngDevMode && assertIndexInRange(lView[QUERIES].queries, queryIndex);\n return lView[QUERIES].queries[queryIndex].queryList;\n}\n/**\n * Creates a new instance of LQuery and returns its index in the collection of LQuery objects.\n *\n * @returns index in the collection of LQuery objects\n */\nfunction createLQuery(tView, lView, flags) {\n const queryList = new QueryList((flags & 4 /* QueryFlags.emitDistinctChangesOnly */) === 4 /* QueryFlags.emitDistinctChangesOnly */);\n storeCleanupWithContext(tView, lView, queryList, queryList.destroy);\n const lQueries = (lView[QUERIES] ??= new LQueries_()).queries;\n return lQueries.push(new LQuery_(queryList)) - 1;\n}\nfunction createViewQuery(predicate, flags, read) {\n ngDevMode && assertNumber(flags, 'Expecting flags');\n const tView = getTView();\n if (tView.firstCreatePass) {\n createTQuery(tView, new TQueryMetadata_(predicate, flags, read), -1);\n if ((flags & 2 /* QueryFlags.isStatic */) === 2 /* QueryFlags.isStatic */) {\n tView.staticViewQueries = true;\n }\n }\n return createLQuery(tView, getLView(), flags);\n}\nfunction createContentQuery(directiveIndex, predicate, flags, read) {\n ngDevMode && assertNumber(flags, 'Expecting flags');\n const tView = getTView();\n if (tView.firstCreatePass) {\n const tNode = getCurrentTNode();\n createTQuery(tView, new TQueryMetadata_(predicate, flags, read), tNode.index);\n saveContentQueryAndDirectiveIndex(tView, directiveIndex);\n if ((flags & 2 /* QueryFlags.isStatic */) === 2 /* QueryFlags.isStatic */) {\n tView.staticContentQueries = true;\n }\n }\n return createLQuery(tView, getLView(), flags);\n}\n/** Splits multiple selectors in the locator. */\nfunction splitQueryMultiSelectors(locator) {\n return locator.split(',').map((s) => s.trim());\n}\nfunction createTQuery(tView, metadata, nodeIndex) {\n if (tView.queries === null)\n tView.queries = new TQueries_();\n tView.queries.track(new TQuery_(metadata, nodeIndex));\n}\nfunction saveContentQueryAndDirectiveIndex(tView, directiveIndex) {\n const tViewContentQueries = tView.contentQueries || (tView.contentQueries = []);\n const lastSavedDirectiveIndex = tViewContentQueries.length\n ? tViewContentQueries[tViewContentQueries.length - 1]\n : -1;\n if (directiveIndex !== lastSavedDirectiveIndex) {\n tViewContentQueries.push(tView.queries.length - 1, directiveIndex);\n }\n}\nfunction getTQuery(tView, index) {\n ngDevMode && assertDefined(tView.queries, 'TQueries must be defined to retrieve a TQuery');\n return tView.queries.getByIndex(index);\n}\n/**\n * A helper function collecting results from all the views where a given query was active.\n * @param lView\n * @param queryIndex\n */\nfunction getQueryResults(lView, queryIndex) {\n const tView = lView[TVIEW];\n const tQuery = getTQuery(tView, queryIndex);\n return tQuery.crossesNgTemplate\n ? collectQueryResults(tView, lView, queryIndex, [])\n : materializeViewResults(tView, lView, tQuery, queryIndex);\n}\n\n/**\n * A signal factory function in charge of creating a new computed signal capturing query\n * results. This centralized creation function is used by all types of queries (child / children,\n * required / optional).\n *\n * @param firstOnly indicates if all or only the first result should be returned\n * @param required indicates if at least one result is required\n * @returns a read-only signal with query results\n */\nfunction createQuerySignalFn(firstOnly, required, opts) {\n let node;\n const signalFn = createComputed$1(() => {\n // A dedicated signal that increments its value every time a query changes its dirty status. By\n // using this signal we can implement a query as computed and avoid creation of a specialized\n // reactive node type. Please note that a query gets marked dirty under the following\n // circumstances:\n // - a view (where a query is active) finished its first creation pass;\n // - a new view is inserted / deleted and it impacts query results.\n node._dirtyCounter();\n const value = refreshSignalQuery(node, firstOnly);\n if (required && value === undefined) {\n throw new RuntimeError(-951 /* RuntimeErrorCode.REQUIRED_QUERY_NO_VALUE */, ngDevMode && 'Child query result is required but no value is available.');\n }\n return value;\n });\n node = signalFn[SIGNAL$1];\n node._dirtyCounter = signal(0);\n node._flatValue = undefined;\n if (ngDevMode) {\n signalFn.toString = () => `[Query Signal]`;\n node.debugName = opts?.debugName;\n }\n return signalFn;\n}\nfunction createSingleResultOptionalQuerySignalFn(opts) {\n return createQuerySignalFn(/* firstOnly */ true, /* required */ false, opts);\n}\nfunction createSingleResultRequiredQuerySignalFn(opts) {\n return createQuerySignalFn(/* firstOnly */ true, /* required */ true, opts);\n}\nfunction createMultiResultQuerySignalFn(opts) {\n return createQuerySignalFn(/* firstOnly */ false, /* required */ false, opts);\n}\nfunction bindQueryToSignal(target, queryIndex) {\n const node = target[SIGNAL$1];\n node._lView = getLView();\n node._queryIndex = queryIndex;\n node._queryList = loadQueryInternal(node._lView, queryIndex);\n node._queryList.onDirty(() => node._dirtyCounter.update((v) => v + 1));\n}\nfunction refreshSignalQuery(node, firstOnly) {\n const lView = node._lView;\n const queryIndex = node._queryIndex;\n // There are 2 conditions under which we want to return \"empty\" results instead of the ones\n // collected by a query:\n //\n // 1) a given query wasn't created yet (this is a period of time between the directive creation\n // and execution of the query creation function) - in this case a query doesn't exist yet and we\n // don't have any results to return.\n //\n // 2) we are in the process of constructing a view (the first\n // creation pass didn't finish) and a query might have partial results, but we don't want to\n // return those - instead we do delay results collection until all nodes had a chance of matching\n // and we can present consistent, \"atomic\" (on a view level) results.\n if (lView === undefined || queryIndex === undefined || lView[FLAGS] & 4 /* LViewFlags.CreationMode */) {\n return (firstOnly ? undefined : EMPTY_ARRAY);\n }\n const queryList = loadQueryInternal(lView, queryIndex);\n const results = getQueryResults(lView, queryIndex);\n queryList.reset(results, unwrapElementRef);\n if (firstOnly) {\n return queryList.first;\n }\n else {\n // TODO: remove access to the private _changesDetected field by abstracting / removing usage of\n // QueryList in the signal-based queries (perf follow-up)\n const resultChanged = queryList._changesDetected;\n if (resultChanged || node._flatValue === undefined) {\n return (node._flatValue = queryList.toArray());\n }\n return node._flatValue;\n }\n}\n\nfunction viewChildFn(locator, opts) {\n ngDevMode && assertInInjectionContext(viewChild);\n return createSingleResultOptionalQuerySignalFn(opts);\n}\nfunction viewChildRequiredFn(locator, opts) {\n ngDevMode && assertInInjectionContext(viewChild);\n return createSingleResultRequiredQuerySignalFn(opts);\n}\n/**\n * Initializes a view child query.\n *\n * Consider using `viewChild.required` for queries that should always match.\n *\n * @usageNotes\n * Create a child query in your component by declaring a\n * class field and initializing it with the `viewChild()` function.\n *\n * ```angular-ts\n * @Component({template: '<div #el></div><my-component #cmp />'})\n * export class TestComponent {\n * divEl = viewChild<ElementRef>('el'); // Signal<ElementRef|undefined>\n * divElRequired = viewChild.required<ElementRef>('el'); // Signal<ElementRef>\n * cmp = viewChild(MyComponent); // Signal<MyComponent|undefined>\n * cmpRequired = viewChild.required(MyComponent); // Signal<MyComponent>\n * }\n * ```\n *\n * @publicAPI\n * @initializerApiFunction\n */\nconst viewChild = (() => {\n // Note: This may be considered a side-effect, but nothing will depend on\n // this assignment, unless this `viewChild` constant export is accessed. It's a\n // self-contained side effect that is local to the user facing `viewChild` export.\n viewChildFn.required = viewChildRequiredFn;\n return viewChildFn;\n})();\n/**\n * Initializes a view children query.\n *\n * Query results are represented as a signal of a read-only collection containing all matched\n * elements.\n *\n * @usageNotes\n * Create a children query in your component by declaring a\n * class field and initializing it with the `viewChildren()` function.\n *\n * ```ts\n * @Component({...})\n * export class TestComponent {\n * divEls = viewChildren<ElementRef>('el'); // Signal<ReadonlyArray<ElementRef>>\n * }\n * ```\n *\n * @initializerApiFunction\n * @publicAPI\n */\nfunction viewChildren(locator, opts) {\n ngDevMode && assertInInjectionContext(viewChildren);\n return createMultiResultQuerySignalFn(opts);\n}\nfunction contentChildFn(locator, opts) {\n ngDevMode && assertInInjectionContext(contentChild);\n return createSingleResultOptionalQuerySignalFn(opts);\n}\nfunction contentChildRequiredFn(locator, opts) {\n ngDevMode && assertInInjectionContext(contentChildren);\n return createSingleResultRequiredQuerySignalFn(opts);\n}\n/**\n * Initializes a content child query. Consider using `contentChild.required` for queries that should\n * always match.\n *\n * @usageNotes\n * Create a child query in your component by declaring a\n * class field and initializing it with the `contentChild()` function.\n *\n * ```ts\n * @Component({...})\n * export class TestComponent {\n * headerEl = contentChild<ElementRef>('h'); // Signal<ElementRef|undefined>\n * headerElElRequired = contentChild.required<ElementRef>('h'); // Signal<ElementRef>\n * header = contentChild(MyHeader); // Signal<MyHeader|undefined>\n * headerRequired = contentChild.required(MyHeader); // Signal<MyHeader>\n * }\n * ```\n *\n * @initializerApiFunction\n * @publicAPI\n */\nconst contentChild = (() => {\n // Note: This may be considered a side-effect, but nothing will depend on\n // this assignment, unless this `viewChild` constant export is accessed. It's a\n // self-contained side effect that is local to the user facing `viewChild` export.\n contentChildFn.required = contentChildRequiredFn;\n return contentChildFn;\n})();\n/**\n * Initializes a content children query.\n *\n * Query results are represented as a signal of a read-only collection containing all matched\n * elements.\n *\n * @usageNotes\n * Create a children query in your component by declaring a\n * class field and initializing it with the `contentChildren()` function.\n *\n * ```ts\n * @Component({...})\n * export class TestComponent {\n * headerEl = contentChildren<ElementRef>('h'); // Signal<ReadonlyArray<ElementRef>>\n * }\n * ```\n *\n * @initializerApiFunction\n * @publicAPI\n */\nfunction contentChildren(locator, opts) {\n return createMultiResultQuerySignalFn(opts);\n}\n\n/**\n * Creates a model signal.\n *\n * @param initialValue The initial value.\n * Can be set to {@link REQUIRED_UNSET_VALUE} for required model signals.\n * @param options Additional options for the model.\n */\nfunction createModelSignal(initialValue, opts) {\n const node = Object.create(INPUT_SIGNAL_NODE);\n const emitterRef = new OutputEmitterRef();\n node.value = initialValue;\n function getter() {\n producerAccessed$1(node);\n assertModelSet(node.value);\n return node.value;\n }\n getter[SIGNAL$1] = node;\n getter.asReadonly = signalAsReadonlyFn.bind(getter);\n // TODO: Should we throw an error when updating a destroyed model?\n getter.set = (newValue) => {\n if (!node.equal(node.value, newValue)) {\n signalSetFn$1(node, newValue);\n emitterRef.emit(newValue);\n }\n };\n getter.update = (updateFn) => {\n assertModelSet(node.value);\n getter.set(updateFn(node.value));\n };\n getter.subscribe = emitterRef.subscribe.bind(emitterRef);\n getter.destroyRef = emitterRef.destroyRef;\n if (ngDevMode) {\n getter.toString = () => `[Model Signal: ${getter()}]`;\n node.debugName = opts?.debugName;\n }\n return getter;\n}\n/** Asserts that a model's value is set. */\nfunction assertModelSet(value) {\n if (value === REQUIRED_UNSET_VALUE) {\n throw new RuntimeError(952 /* RuntimeErrorCode.REQUIRED_MODEL_NO_VALUE */, ngDevMode && 'Model is required but no value is available yet.');\n }\n}\n\nfunction modelFunction(initialValue, opts) {\n ngDevMode && assertInInjectionContext(model);\n return createModelSignal(initialValue, opts);\n}\nfunction modelRequiredFunction(opts) {\n ngDevMode && assertInInjectionContext(model);\n return createModelSignal(REQUIRED_UNSET_VALUE, opts);\n}\n/**\n * `model` declares a writeable signal that is exposed as an input/output\n * pair on the containing directive.\n *\n * The input name is taken either from the class member or from the `alias` option.\n * The output name is generated by taking the input name and appending `Change`.\n *\n * @usageNotes\n *\n * To use `model()`, import the function from `@angular/core`.\n *\n * ```ts\n * import {model} from '@angular/core`;\n * ```\n *\n * Inside your component, introduce a new class member and initialize\n * it with a call to `model` or `model.required`.\n *\n * ```ts\n * @Directive({\n * ...\n * })\n * export class MyDir {\n * firstName = model<string>(); // ModelSignal<string|undefined>\n * lastName = model.required<string>(); // ModelSignal<string>\n * age = model(0); // ModelSignal<number>\n * }\n * ```\n *\n * Inside your component template, you can display the value of a `model`\n * by calling the signal.\n *\n * ```html\n * <span>{{firstName()}}</span>\n * ```\n *\n * Updating the `model` is equivalent to updating a writable signal.\n *\n * ```ts\n * updateName(newFirstName: string): void {\n * this.firstName.set(newFirstName);\n * }\n * ```\n *\n * @publicAPI\n * @initializerApiFunction\n */\nconst model = (() => {\n // Note: This may be considered a side-effect, but nothing will depend on\n // this assignment, unless this `model` constant export is accessed. It's a\n // self-contained side effect that is local to the user facing `model` export.\n modelFunction.required = modelRequiredFunction;\n return modelFunction;\n})();\n\n// Stores the default value of `emitDistinctChangesOnly` when the `emitDistinctChangesOnly` is not\n// explicitly set.\nconst emitDistinctChangesOnlyDefaultValue = true;\n/**\n * Base class for query metadata.\n *\n * @see {@link ContentChildren}\n * @see {@link ContentChild}\n * @see {@link ViewChildren}\n * @see {@link ViewChild}\n *\n * @publicApi\n */\nclass Query {\n}\n/**\n * ContentChildren decorator and metadata.\n *\n *\n * @Annotation\n * @publicApi\n */\nconst ContentChildren = makePropDecorator('ContentChildren', (selector, opts = {}) => ({\n selector,\n first: false,\n isViewQuery: false,\n descendants: false,\n emitDistinctChangesOnly: emitDistinctChangesOnlyDefaultValue,\n ...opts,\n}), Query);\n/**\n * ContentChild decorator and metadata.\n *\n *\n * @Annotation\n *\n * @publicApi\n */\nconst ContentChild = makePropDecorator('ContentChild', (selector, opts = {}) => ({\n selector,\n first: true,\n isViewQuery: false,\n descendants: true,\n ...opts,\n}), Query);\n/**\n * ViewChildren decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst ViewChildren = makePropDecorator('ViewChildren', (selector, opts = {}) => ({\n selector,\n first: false,\n isViewQuery: true,\n descendants: true,\n emitDistinctChangesOnly: emitDistinctChangesOnlyDefaultValue,\n ...opts,\n}), Query);\n/**\n * ViewChild decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst ViewChild = makePropDecorator('ViewChild', (selector, opts) => ({\n selector,\n first: true,\n isViewQuery: true,\n descendants: true,\n ...opts,\n}), Query);\n\n/**\n * Used to resolve resource URLs on `@Component` when used with JIT compilation.\n *\n * Example:\n * ```ts\n * @Component({\n * selector: 'my-comp',\n * templateUrl: 'my-comp.html', // This requires asynchronous resolution\n * })\n * class MyComponent{\n * }\n *\n * // Calling `renderComponent` will fail because `renderComponent` is a synchronous process\n * // and `MyComponent`'s `@Component.templateUrl` needs to be resolved asynchronously.\n *\n * // Calling `resolveComponentResources()` will resolve `@Component.templateUrl` into\n * // `@Component.template`, which allows `renderComponent` to proceed in a synchronous manner.\n *\n * // Use browser's `fetch()` function as the default resource resolution strategy.\n * resolveComponentResources(fetch).then(() => {\n * // After resolution all URLs have been converted into `template` strings.\n * renderComponent(MyComponent);\n * });\n *\n * ```\n *\n * NOTE: In AOT the resolution happens during compilation, and so there should be no need\n * to call this method outside JIT mode.\n *\n * @param resourceResolver a function which is responsible for returning a `Promise` to the\n * contents of the resolved URL. Browser's `fetch()` method is a good default implementation.\n */\nfunction resolveComponentResources(resourceResolver) {\n // Store all promises which are fetching the resources.\n const componentResolved = [];\n // Cache so that we don't fetch the same resource more than once.\n const urlMap = new Map();\n function cachedResourceResolve(url) {\n let promise = urlMap.get(url);\n if (!promise) {\n const resp = resourceResolver(url);\n urlMap.set(url, (promise = resp.then(unwrapResponse)));\n }\n return promise;\n }\n componentResourceResolutionQueue.forEach((component, type) => {\n const promises = [];\n if (component.templateUrl) {\n promises.push(cachedResourceResolve(component.templateUrl).then((template) => {\n component.template = template;\n }));\n }\n const styles = typeof component.styles === 'string' ? [component.styles] : component.styles || [];\n component.styles = styles;\n if (component.styleUrl && component.styleUrls?.length) {\n throw new Error('@Component cannot define both `styleUrl` and `styleUrls`. ' +\n 'Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple');\n }\n else if (component.styleUrls?.length) {\n const styleOffset = component.styles.length;\n const styleUrls = component.styleUrls;\n component.styleUrls.forEach((styleUrl, index) => {\n styles.push(''); // pre-allocate array.\n promises.push(cachedResourceResolve(styleUrl).then((style) => {\n styles[styleOffset + index] = style;\n styleUrls.splice(styleUrls.indexOf(styleUrl), 1);\n if (styleUrls.length == 0) {\n component.styleUrls = undefined;\n }\n }));\n });\n }\n else if (component.styleUrl) {\n promises.push(cachedResourceResolve(component.styleUrl).then((style) => {\n styles.push(style);\n component.styleUrl = undefined;\n }));\n }\n const fullyResolved = Promise.all(promises).then(() => componentDefResolved(type));\n componentResolved.push(fullyResolved);\n });\n clearResolutionOfComponentResourcesQueue();\n return Promise.all(componentResolved).then(() => undefined);\n}\nlet componentResourceResolutionQueue = new Map();\n// Track when existing ɵcmp for a Type is waiting on resources.\nconst componentDefPendingResolution = new Set();\nfunction maybeQueueResolutionOfComponentResources(type, metadata) {\n if (componentNeedsResolution(metadata)) {\n componentResourceResolutionQueue.set(type, metadata);\n componentDefPendingResolution.add(type);\n }\n}\nfunction isComponentDefPendingResolution(type) {\n return componentDefPendingResolution.has(type);\n}\nfunction componentNeedsResolution(component) {\n return !!((component.templateUrl && !component.hasOwnProperty('template')) ||\n (component.styleUrls && component.styleUrls.length) ||\n component.styleUrl);\n}\nfunction clearResolutionOfComponentResourcesQueue() {\n const old = componentResourceResolutionQueue;\n componentResourceResolutionQueue = new Map();\n return old;\n}\nfunction restoreComponentResolutionQueue(queue) {\n componentDefPendingResolution.clear();\n queue.forEach((_, type) => componentDefPendingResolution.add(type));\n componentResourceResolutionQueue = queue;\n}\nfunction isComponentResourceResolutionQueueEmpty() {\n return componentResourceResolutionQueue.size === 0;\n}\nfunction unwrapResponse(response) {\n return typeof response == 'string' ? response : response.text();\n}\nfunction componentDefResolved(type) {\n componentDefPendingResolution.delete(type);\n}\n\n/**\n * Map of module-id to the corresponding NgModule.\n */\nconst modules = new Map();\n/**\n * Whether to check for duplicate NgModule registrations.\n *\n * This can be disabled for testing.\n */\nlet checkForDuplicateNgModules = true;\nfunction assertSameOrNotExisting(id, type, incoming) {\n if (type && type !== incoming && checkForDuplicateNgModules) {\n throw new Error(`Duplicate module registered for ${id} - ${stringify(type)} vs ${stringify(type.name)}`);\n }\n}\n/**\n * Adds the given NgModule type to Angular's NgModule registry.\n *\n * This is generated as a side-effect of NgModule compilation. Note that the `id` is passed in\n * explicitly and not read from the NgModule definition. This is for two reasons: it avoids a\n * megamorphic read, and in JIT there's a chicken-and-egg problem where the NgModule may not be\n * fully resolved when it's registered.\n *\n * @codeGenApi\n */\nfunction registerNgModuleType(ngModuleType, id) {\n const existing = modules.get(id) || null;\n assertSameOrNotExisting(id, existing, ngModuleType);\n modules.set(id, ngModuleType);\n}\nfunction clearModulesForTest() {\n modules.clear();\n}\nfunction getRegisteredNgModuleType(id) {\n return modules.get(id);\n}\n/**\n * Control whether the NgModule registration system enforces that each NgModule type registered has\n * a unique id.\n *\n * This is useful for testing as the NgModule registry cannot be properly reset between tests with\n * Angular's current API.\n */\nfunction setAllowDuplicateNgModuleIdsForTest(allowDuplicates) {\n checkForDuplicateNgModules = !allowDuplicates;\n}\n\n/**\n * Validation function invoked at runtime for each binding that might potentially\n * represent a security-sensitive attribute of an <iframe>.\n * See `IFRAME_SECURITY_SENSITIVE_ATTRS` in the\n * `packages/compiler/src/schema/dom_security_schema.ts` script for the full list\n * of such attributes.\n *\n * @codeGenApi\n */\nfunction ɵɵvalidateIframeAttribute(attrValue, tagName, attrName) {\n const lView = getLView();\n const tNode = getSelectedTNode();\n const element = getNativeByTNode(tNode, lView);\n // Restrict any dynamic bindings of security-sensitive attributes/properties\n // on an <iframe> for security reasons.\n if (tNode.type === 2 /* TNodeType.Element */ && tagName.toLowerCase() === 'iframe') {\n const iframe = element;\n // Unset previously applied `src` and `srcdoc` if we come across a situation when\n // a security-sensitive attribute is set later via an attribute/property binding.\n iframe.src = '';\n iframe.srcdoc = trustedHTMLFromString('');\n // Also remove the <iframe> from the document.\n nativeRemoveNode(lView[RENDERER], iframe);\n const errorMessage = ngDevMode &&\n `Angular has detected that the \\`${attrName}\\` was applied ` +\n `as a binding to an <iframe>${getTemplateLocationDetails(lView)}. ` +\n `For security reasons, the \\`${attrName}\\` can be set on an <iframe> ` +\n `as a static attribute only. \\n` +\n `To fix this, switch the \\`${attrName}\\` binding to a static attribute ` +\n `in a template or in host bindings section.`;\n throw new RuntimeError(-910 /* RuntimeErrorCode.UNSAFE_IFRAME_ATTRS */, errorMessage);\n }\n return attrValue;\n}\n\n/**\n * Represents an instance of an `NgModule` created by an `NgModuleFactory`.\n * Provides access to the `NgModule` instance and related objects.\n *\n * @publicApi\n */\nclass NgModuleRef$1 {\n}\n/**\n * @publicApi\n *\n * @deprecated\n * This class was mostly used as a part of ViewEngine-based JIT API and is no longer needed in Ivy\n * JIT mode. Angular provides APIs that accept NgModule classes directly (such as\n * [PlatformRef.bootstrapModule](api/core/PlatformRef#bootstrapModule) and\n * [createNgModule](api/core/createNgModule)), consider switching to those APIs instead of\n * using factory-based ones.\n */\nclass NgModuleFactory$1 {\n}\n\n/**\n * Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.\n *\n * @param ngModule NgModule class.\n * @param parentInjector Optional injector instance to use as a parent for the module injector. If\n * not provided, `NullInjector` will be used instead.\n * @returns NgModuleRef that represents an NgModule instance.\n *\n * @publicApi\n */\nfunction createNgModule(ngModule, parentInjector) {\n return new NgModuleRef(ngModule, parentInjector ?? null, []);\n}\n/**\n * The `createNgModule` function alias for backwards-compatibility.\n * Please avoid using it directly and use `createNgModule` instead.\n *\n * @deprecated Use `createNgModule` instead.\n */\nconst createNgModuleRef = createNgModule;\nclass NgModuleRef extends NgModuleRef$1 {\n ngModuleType;\n _parent;\n // tslint:disable-next-line:require-internal-with-underscore\n _bootstrapComponents = [];\n _r3Injector;\n instance;\n destroyCbs = [];\n // When bootstrapping a module we have a dependency graph that looks like this:\n // ApplicationRef -> ComponentFactoryResolver -> NgModuleRef. The problem is that if the\n // module being resolved tries to inject the ComponentFactoryResolver, it'll create a\n // circular dependency which will result in a runtime error, because the injector doesn't\n // exist yet. We work around the issue by creating the ComponentFactoryResolver ourselves\n // and providing it, rather than letting the injector resolve it.\n componentFactoryResolver = new ComponentFactoryResolver(this);\n constructor(ngModuleType, _parent, additionalProviders, runInjectorInitializers = true) {\n super();\n this.ngModuleType = ngModuleType;\n this._parent = _parent;\n const ngModuleDef = getNgModuleDef(ngModuleType);\n ngDevMode &&\n assertDefined(ngModuleDef, `NgModule '${stringify(ngModuleType)}' is not a subtype of 'NgModuleType'.`);\n this._bootstrapComponents = maybeUnwrapFn(ngModuleDef.bootstrap);\n this._r3Injector = createInjectorWithoutInjectorInstances(ngModuleType, _parent, [\n { provide: NgModuleRef$1, useValue: this },\n {\n provide: ComponentFactoryResolver$1,\n useValue: this.componentFactoryResolver,\n },\n ...additionalProviders,\n ], stringify(ngModuleType), new Set(['environment']));\n // We need to resolve the injector types separately from the injector creation, because\n // the module might be trying to use this ref in its constructor for DI which will cause a\n // circular error that will eventually error out, because the injector isn't created yet.\n if (runInjectorInitializers) {\n this.resolveInjectorInitializers();\n }\n }\n resolveInjectorInitializers() {\n this._r3Injector.resolveInjectorInitializers();\n this.instance = this._r3Injector.get(this.ngModuleType);\n }\n get injector() {\n return this._r3Injector;\n }\n destroy() {\n ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed');\n const injector = this._r3Injector;\n !injector.destroyed && injector.destroy();\n this.destroyCbs.forEach((fn) => fn());\n this.destroyCbs = null;\n }\n onDestroy(callback) {\n ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed');\n this.destroyCbs.push(callback);\n }\n}\nclass NgModuleFactory extends NgModuleFactory$1 {\n moduleType;\n constructor(moduleType) {\n super();\n this.moduleType = moduleType;\n }\n create(parentInjector) {\n return new NgModuleRef(this.moduleType, parentInjector, []);\n }\n}\nfunction createNgModuleRefWithProviders(moduleType, parentInjector, additionalProviders) {\n return new NgModuleRef(moduleType, parentInjector, additionalProviders, false);\n}\nclass EnvironmentNgModuleRefAdapter extends NgModuleRef$1 {\n injector;\n componentFactoryResolver = new ComponentFactoryResolver(this);\n instance = null;\n constructor(config) {\n super();\n const injector = new R3Injector([\n ...config.providers,\n { provide: NgModuleRef$1, useValue: this },\n { provide: ComponentFactoryResolver$1, useValue: this.componentFactoryResolver },\n ], config.parent || getNullInjector(), config.debugName, new Set(['environment']));\n this.injector = injector;\n if (config.runEnvironmentInitializers) {\n injector.resolveInjectorInitializers();\n }\n }\n destroy() {\n this.injector.destroy();\n }\n onDestroy(callback) {\n this.injector.onDestroy(callback);\n }\n}\n/**\n * Create a new environment injector.\n *\n * @param providers An array of providers.\n * @param parent A parent environment injector.\n * @param debugName An optional name for this injector instance, which will be used in error\n * messages.\n *\n * @publicApi\n */\nfunction createEnvironmentInjector(providers, parent, debugName = null) {\n const adapter = new EnvironmentNgModuleRefAdapter({\n providers,\n parent,\n debugName,\n runEnvironmentInitializers: true,\n });\n return adapter.injector;\n}\n\n/**\n * A service used by the framework to create instances of standalone injectors. Those injectors are\n * created on demand in case of dynamic component instantiation and contain ambient providers\n * collected from the imports graph rooted at a given standalone component.\n */\nclass StandaloneService {\n _injector;\n cachedInjectors = new Map();\n constructor(_injector) {\n this._injector = _injector;\n }\n getOrCreateStandaloneInjector(componentDef) {\n if (!componentDef.standalone) {\n return null;\n }\n if (!this.cachedInjectors.has(componentDef)) {\n const providers = internalImportProvidersFrom(false, componentDef.type);\n const standaloneInjector = providers.length > 0\n ? createEnvironmentInjector([providers], this._injector, `Standalone[${componentDef.type.name}]`)\n : null;\n this.cachedInjectors.set(componentDef, standaloneInjector);\n }\n return this.cachedInjectors.get(componentDef);\n }\n ngOnDestroy() {\n try {\n for (const injector of this.cachedInjectors.values()) {\n if (injector !== null) {\n injector.destroy();\n }\n }\n }\n finally {\n this.cachedInjectors.clear();\n }\n }\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: StandaloneService,\n providedIn: 'environment',\n factory: () => new StandaloneService(ɵɵinject(EnvironmentInjector)),\n });\n}\n\n/**\n * Create a component definition object.\n *\n *\n * # Example\n * ```ts\n * class MyComponent {\n * // Generated by Angular Template Compiler\n * // [Symbol] syntax will not be supported by TypeScript until v2.7\n * static ɵcmp = defineComponent({\n * ...\n * });\n * }\n * ```\n * @codeGenApi\n */\nfunction ɵɵdefineComponent(componentDefinition) {\n return noSideEffects(() => {\n // Initialize ngDevMode. This must be the first statement in ɵɵdefineComponent.\n // See the `initNgDevMode` docstring for more information.\n (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();\n const baseDef = getNgDirectiveDef(componentDefinition);\n const def = {\n ...baseDef,\n decls: componentDefinition.decls,\n vars: componentDefinition.vars,\n template: componentDefinition.template,\n consts: componentDefinition.consts || null,\n ngContentSelectors: componentDefinition.ngContentSelectors,\n onPush: componentDefinition.changeDetection === ChangeDetectionStrategy.OnPush,\n directiveDefs: null, // assigned in noSideEffects\n pipeDefs: null, // assigned in noSideEffects\n dependencies: (baseDef.standalone && componentDefinition.dependencies) || null,\n getStandaloneInjector: baseDef.standalone\n ? (parentInjector) => {\n return parentInjector.get(StandaloneService).getOrCreateStandaloneInjector(def);\n }\n : null,\n getExternalStyles: null,\n signals: componentDefinition.signals ?? false,\n data: componentDefinition.data || {},\n encapsulation: componentDefinition.encapsulation || ViewEncapsulation.Emulated,\n styles: componentDefinition.styles || EMPTY_ARRAY,\n _: null,\n schemas: componentDefinition.schemas || null,\n tView: null,\n id: '',\n };\n // TODO: Do we still need/want this ?\n if (baseDef.standalone) {\n performanceMarkFeature('NgStandalone');\n }\n initFeatures(def);\n const dependencies = componentDefinition.dependencies;\n def.directiveDefs = extractDefListOrFactory(dependencies, /* pipeDef */ false);\n def.pipeDefs = extractDefListOrFactory(dependencies, /* pipeDef */ true);\n def.id = getComponentId(def);\n return def;\n });\n}\nfunction extractDirectiveDef(type) {\n return getComponentDef(type) || getDirectiveDef(type);\n}\nfunction nonNull(value) {\n return value !== null;\n}\n/**\n * @codeGenApi\n */\nfunction ɵɵdefineNgModule(def) {\n return noSideEffects(() => {\n const res = {\n type: def.type,\n bootstrap: def.bootstrap || EMPTY_ARRAY,\n declarations: def.declarations || EMPTY_ARRAY,\n imports: def.imports || EMPTY_ARRAY,\n exports: def.exports || EMPTY_ARRAY,\n transitiveCompileScopes: null,\n schemas: def.schemas || null,\n id: def.id || null,\n };\n return res;\n });\n}\nfunction parseAndConvertBindingsForDefinition(obj, declaredInputs) {\n if (obj == null)\n return EMPTY_OBJ;\n const newLookup = {};\n for (const minifiedKey in obj) {\n if (obj.hasOwnProperty(minifiedKey)) {\n const value = obj[minifiedKey];\n let publicName;\n let declaredName;\n let inputFlags = InputFlags.None;\n if (Array.isArray(value)) {\n inputFlags = value[0];\n publicName = value[1];\n declaredName = value[2] ?? publicName; // declared name might not be set to save bytes.\n }\n else {\n publicName = value;\n declaredName = value;\n }\n // For inputs, capture the declared name, or if some flags are set.\n if (declaredInputs) {\n // Perf note: An array is only allocated for the input if there are flags.\n newLookup[publicName] =\n inputFlags !== InputFlags.None ? [minifiedKey, inputFlags] : minifiedKey;\n declaredInputs[publicName] = declaredName;\n }\n else {\n newLookup[publicName] = minifiedKey;\n }\n }\n }\n return newLookup;\n}\n/**\n * Create a directive definition object.\n *\n * # Example\n * ```ts\n * class MyDirective {\n * // Generated by Angular Template Compiler\n * // [Symbol] syntax will not be supported by TypeScript until v2.7\n * static ɵdir = ɵɵdefineDirective({\n * ...\n * });\n * }\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵdefineDirective(directiveDefinition) {\n return noSideEffects(() => {\n const def = getNgDirectiveDef(directiveDefinition);\n initFeatures(def);\n return def;\n });\n}\n/**\n * Create a pipe definition object.\n *\n * # Example\n * ```ts\n * class MyPipe implements PipeTransform {\n * // Generated by Angular Template Compiler\n * static ɵpipe = definePipe({\n * ...\n * });\n * }\n * ```\n * @param pipeDef Pipe definition generated by the compiler\n *\n * @codeGenApi\n */\nfunction ɵɵdefinePipe(pipeDef) {\n return {\n type: pipeDef.type,\n name: pipeDef.name,\n factory: null,\n pure: pipeDef.pure !== false,\n standalone: pipeDef.standalone ?? true,\n onDestroy: pipeDef.type.prototype.ngOnDestroy || null,\n };\n}\nfunction getNgDirectiveDef(directiveDefinition) {\n const declaredInputs = {};\n return {\n type: directiveDefinition.type,\n providersResolver: null,\n factory: null,\n hostBindings: directiveDefinition.hostBindings || null,\n hostVars: directiveDefinition.hostVars || 0,\n hostAttrs: directiveDefinition.hostAttrs || null,\n contentQueries: directiveDefinition.contentQueries || null,\n declaredInputs: declaredInputs,\n inputTransforms: null,\n inputConfig: directiveDefinition.inputs || EMPTY_OBJ,\n exportAs: directiveDefinition.exportAs || null,\n standalone: directiveDefinition.standalone ?? true,\n signals: directiveDefinition.signals === true,\n selectors: directiveDefinition.selectors || EMPTY_ARRAY,\n viewQuery: directiveDefinition.viewQuery || null,\n features: directiveDefinition.features || null,\n setInput: null,\n findHostDirectiveDefs: null,\n hostDirectives: null,\n inputs: parseAndConvertBindingsForDefinition(directiveDefinition.inputs, declaredInputs),\n outputs: parseAndConvertBindingsForDefinition(directiveDefinition.outputs),\n debugInfo: null,\n };\n}\nfunction initFeatures(definition) {\n definition.features?.forEach((fn) => fn(definition));\n}\nfunction extractDefListOrFactory(dependencies, pipeDef) {\n if (!dependencies) {\n return null;\n }\n const defExtractor = pipeDef ? getPipeDef$1 : extractDirectiveDef;\n return () => (typeof dependencies === 'function' ? dependencies() : dependencies)\n .map((dep) => defExtractor(dep))\n .filter(nonNull);\n}\n/**\n * A map that contains the generated component IDs and type.\n */\nconst GENERATED_COMP_IDS = new Map();\n/**\n * A method can returns a component ID from the component definition using a variant of DJB2 hash\n * algorithm.\n */\nfunction getComponentId(componentDef) {\n let hash = 0;\n // For components with i18n in templates, the `consts` array is generated by the compiler\n // as a function. If client and server bundles were produced with different minification\n // configurations, the serializable contents of the function body would be different on\n // the client and on the server. This might result in different ids generated. To avoid this\n // issue, we do not take the `consts` contents into account if it's a function.\n // See https://github.com/angular/angular/issues/58713.\n const componentDefConsts = typeof componentDef.consts === 'function' ? '' : componentDef.consts;\n // We cannot rely solely on the component selector as the same selector can be used in different\n // modules.\n //\n // `componentDef.style` is not used, due to it causing inconsistencies. Ex: when server\n // component styles has no sourcemaps and browsers do.\n //\n // Example:\n // https://github.com/angular/components/blob/d9f82c8f95309e77a6d82fd574c65871e91354c2/src/material/core/option/option.ts#L248\n // https://github.com/angular/components/blob/285f46dc2b4c5b127d356cb7c4714b221f03ce50/src/material/legacy-core/option/option.ts#L32\n const hashSelectors = [\n componentDef.selectors,\n componentDef.ngContentSelectors,\n componentDef.hostVars,\n componentDef.hostAttrs,\n componentDefConsts,\n componentDef.vars,\n componentDef.decls,\n componentDef.encapsulation,\n componentDef.standalone,\n componentDef.signals,\n componentDef.exportAs,\n JSON.stringify(componentDef.inputs),\n JSON.stringify(componentDef.outputs),\n // We cannot use 'componentDef.type.name' as the name of the symbol will change and will not\n // match in the server and browser bundles.\n Object.getOwnPropertyNames(componentDef.type.prototype),\n !!componentDef.contentQueries,\n !!componentDef.viewQuery,\n ];\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // If client and server bundles were produced with different minification configurations,\n // the serializable contents of the function body would be different on the client and on\n // the server. Ensure that we do not accidentally use functions in component id computation.\n for (const item of hashSelectors) {\n assertNotEqual(typeof item, 'function', 'Internal error: attempting to use a function in component id computation logic.');\n }\n }\n for (const char of hashSelectors.join('|')) {\n hash = (Math.imul(31, hash) + char.charCodeAt(0)) << 0;\n }\n // Force positive number hash.\n // 2147483647 = equivalent of Integer.MAX_VALUE.\n hash += 2147483647 + 1;\n const compId = 'c' + hash;\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n // Skip the check on the server since we can't guarantee the same component instance between\n // requests. Note that we can't use DI to check if we're on the server, because the component\n // hasn't been instantiated yet.\n (typeof ngServerMode === 'undefined' || !ngServerMode)) {\n if (GENERATED_COMP_IDS.has(compId)) {\n const previousCompDefType = GENERATED_COMP_IDS.get(compId);\n if (previousCompDefType !== componentDef.type) {\n console.warn(formatRuntimeError(-912 /* RuntimeErrorCode.COMPONENT_ID_COLLISION */, `Component ID generation collision detected. Components '${previousCompDefType.name}' and '${componentDef.type.name}' with selector '${stringifyCSSSelectorList(componentDef.selectors)}' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID.`));\n }\n }\n else {\n GENERATED_COMP_IDS.set(compId, componentDef.type);\n }\n }\n return compId;\n}\n\nfunction getSuperType(type) {\n return Object.getPrototypeOf(type.prototype).constructor;\n}\n/**\n * Merges the definition from a super class to a sub class.\n * @param definition The definition that is a SubClass of another directive of component\n *\n * @codeGenApi\n */\nfunction ɵɵInheritDefinitionFeature(definition) {\n let superType = getSuperType(definition.type);\n let shouldInheritFields = true;\n const inheritanceChain = [definition];\n while (superType) {\n let superDef = undefined;\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵcmp || superType.ɵdir;\n }\n else {\n if (superType.ɵcmp) {\n throw new RuntimeError(903 /* RuntimeErrorCode.INVALID_INHERITANCE */, ngDevMode &&\n `Directives cannot inherit Components. Directive ${stringifyForError(definition.type)} is attempting to extend component ${stringifyForError(superType)}`);\n }\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵdir;\n }\n if (superDef) {\n if (shouldInheritFields) {\n inheritanceChain.push(superDef);\n // Some fields in the definition may be empty, if there were no values to put in them that\n // would've justified object creation. Unwrap them if necessary.\n const writeableDef = definition;\n writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);\n writeableDef.inputTransforms = maybeUnwrapEmpty(definition.inputTransforms);\n writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);\n writeableDef.outputs = maybeUnwrapEmpty(definition.outputs);\n // Merge hostBindings\n const superHostBindings = superDef.hostBindings;\n superHostBindings && inheritHostBindings(definition, superHostBindings);\n // Merge queries\n const superViewQuery = superDef.viewQuery;\n const superContentQueries = superDef.contentQueries;\n superViewQuery && inheritViewQuery(definition, superViewQuery);\n superContentQueries && inheritContentQueries(definition, superContentQueries);\n // Merge inputs and outputs\n mergeInputsWithTransforms(definition, superDef);\n fillProperties(definition.outputs, superDef.outputs);\n // Merge animations metadata.\n // If `superDef` is a Component, the `data` field is present (defaults to an empty object).\n if (isComponentDef(superDef) && superDef.data.animation) {\n // If super def is a Component, the `definition` is also a Component, since Directives can\n // not inherit Components (we throw an error above and cannot reach this code).\n const defData = definition.data;\n defData.animation = (defData.animation || []).concat(superDef.data.animation);\n }\n }\n // Run parent features\n const features = superDef.features;\n if (features) {\n for (let i = 0; i < features.length; i++) {\n const feature = features[i];\n if (feature && feature.ngInherit) {\n feature(definition);\n }\n // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this\n // def already has all the necessary information inherited from its super class(es), so we\n // can stop merging fields from super classes. However we need to iterate through the\n // prototype chain to look for classes that might contain other \"features\" (like\n // NgOnChanges), which we should invoke for the original `definition`. We set the\n // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance\n // logic and only invoking functions from the \"features\" list.\n if (feature === ɵɵInheritDefinitionFeature) {\n shouldInheritFields = false;\n }\n }\n }\n }\n superType = Object.getPrototypeOf(superType);\n }\n mergeHostAttrsAcrossInheritance(inheritanceChain);\n}\nfunction mergeInputsWithTransforms(target, source) {\n for (const key in source.inputs) {\n if (!source.inputs.hasOwnProperty(key)) {\n continue;\n }\n if (target.inputs.hasOwnProperty(key)) {\n continue;\n }\n const value = source.inputs[key];\n if (value === undefined) {\n continue;\n }\n target.inputs[key] = value;\n target.declaredInputs[key] = source.declaredInputs[key];\n // If the input is inherited, and we have a transform for it, we also inherit it.\n // Note that transforms should not be inherited if the input has its own metadata\n // in the `source` directive itself already (i.e. the input is re-declared/overridden).\n if (source.inputTransforms !== null) {\n // Note: transforms are stored with their minified names.\n // Perf: only access the minified name when there are source transforms.\n const minifiedName = Array.isArray(value) ? value[0] : value;\n if (!source.inputTransforms.hasOwnProperty(minifiedName)) {\n continue;\n }\n target.inputTransforms ??= {};\n target.inputTransforms[minifiedName] = source.inputTransforms[minifiedName];\n }\n }\n}\n/**\n * Merge the `hostAttrs` and `hostVars` from the inherited parent to the base class.\n *\n * @param inheritanceChain A list of `WritableDefs` starting at the top most type and listing\n * sub-types in order. For each type take the `hostAttrs` and `hostVars` and merge it with the child\n * type.\n */\nfunction mergeHostAttrsAcrossInheritance(inheritanceChain) {\n let hostVars = 0;\n let hostAttrs = null;\n // We process the inheritance order from the base to the leaves here.\n for (let i = inheritanceChain.length - 1; i >= 0; i--) {\n const def = inheritanceChain[i];\n // For each `hostVars`, we need to add the superclass amount.\n def.hostVars = hostVars += def.hostVars;\n // for each `hostAttrs` we need to merge it with superclass.\n def.hostAttrs = mergeHostAttrs(def.hostAttrs, (hostAttrs = mergeHostAttrs(hostAttrs, def.hostAttrs)));\n }\n}\nfunction maybeUnwrapEmpty(value) {\n if (value === EMPTY_OBJ) {\n return {};\n }\n else if (value === EMPTY_ARRAY) {\n return [];\n }\n else {\n return value;\n }\n}\nfunction inheritViewQuery(definition, superViewQuery) {\n const prevViewQuery = definition.viewQuery;\n if (prevViewQuery) {\n definition.viewQuery = (rf, ctx) => {\n superViewQuery(rf, ctx);\n prevViewQuery(rf, ctx);\n };\n }\n else {\n definition.viewQuery = superViewQuery;\n }\n}\nfunction inheritContentQueries(definition, superContentQueries) {\n const prevContentQueries = definition.contentQueries;\n if (prevContentQueries) {\n definition.contentQueries = (rf, ctx, directiveIndex) => {\n superContentQueries(rf, ctx, directiveIndex);\n prevContentQueries(rf, ctx, directiveIndex);\n };\n }\n else {\n definition.contentQueries = superContentQueries;\n }\n}\nfunction inheritHostBindings(definition, superHostBindings) {\n const prevHostBindings = definition.hostBindings;\n if (prevHostBindings) {\n definition.hostBindings = (rf, ctx) => {\n superHostBindings(rf, ctx);\n prevHostBindings(rf, ctx);\n };\n }\n else {\n definition.hostBindings = superHostBindings;\n }\n}\n\n/**\n * Fields which exist on either directive or component definitions, and need to be copied from\n * parent to child classes by the `ɵɵCopyDefinitionFeature`.\n */\nconst COPY_DIRECTIVE_FIELDS = [\n // The child class should use the providers of its parent.\n 'providersResolver',\n // Not listed here are any fields which are handled by the `ɵɵInheritDefinitionFeature`, such\n // as inputs, outputs, and host binding functions.\n];\n/**\n * Fields which exist only on component definitions, and need to be copied from parent to child\n * classes by the `ɵɵCopyDefinitionFeature`.\n *\n * The type here allows any field of `ComponentDef` which is not also a property of `DirectiveDef`,\n * since those should go in `COPY_DIRECTIVE_FIELDS` above.\n */\nconst COPY_COMPONENT_FIELDS = [\n // The child class should use the template function of its parent, including all template\n // semantics.\n 'template',\n 'decls',\n 'consts',\n 'vars',\n 'onPush',\n 'ngContentSelectors',\n // The child class should use the CSS styles of its parent, including all styling semantics.\n 'styles',\n 'encapsulation',\n // The child class should be checked by the runtime in the same way as its parent.\n 'schemas',\n];\n/**\n * Copies the fields not handled by the `ɵɵInheritDefinitionFeature` from the supertype of a\n * definition.\n *\n * This exists primarily to support ngcc migration of an existing View Engine pattern, where an\n * entire decorator is inherited from a parent to a child class. When ngcc detects this case, it\n * generates a skeleton definition on the child class, and applies this feature.\n *\n * The `ɵɵCopyDefinitionFeature` then copies any needed fields from the parent class' definition,\n * including things like the component template function.\n *\n * @param definition The definition of a child class which inherits from a parent class with its\n * own definition.\n *\n * @codeGenApi\n */\nfunction ɵɵCopyDefinitionFeature(definition) {\n let superType = getSuperType(definition.type);\n let superDef = undefined;\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵcmp;\n }\n else {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵdir;\n }\n // Needed because `definition` fields are readonly.\n const defAny = definition;\n // Copy over any fields that apply to either directives or components.\n for (const field of COPY_DIRECTIVE_FIELDS) {\n defAny[field] = superDef[field];\n }\n if (isComponentDef(superDef)) {\n // Copy over any component-specific fields.\n for (const field of COPY_COMPONENT_FIELDS) {\n defAny[field] = superDef[field];\n }\n }\n}\n\n/**\n * This feature adds the host directives behavior to a directive definition by patching a\n * function onto it. The expectation is that the runtime will invoke the function during\n * directive matching.\n *\n * For example:\n * ```ts\n * class ComponentWithHostDirective {\n * static ɵcmp = defineComponent({\n * type: ComponentWithHostDirective,\n * features: [ɵɵHostDirectivesFeature([\n * SimpleHostDirective,\n * {directive: AdvancedHostDirective, inputs: ['foo: alias'], outputs: ['bar']},\n * ])]\n * });\n * }\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵHostDirectivesFeature(rawHostDirectives) {\n const feature = (definition) => {\n const isEager = Array.isArray(rawHostDirectives);\n if (definition.hostDirectives === null) {\n definition.findHostDirectiveDefs = findHostDirectiveDefs;\n definition.hostDirectives = isEager\n ? rawHostDirectives.map(createHostDirectiveDef)\n : [rawHostDirectives];\n }\n else if (isEager) {\n definition.hostDirectives.unshift(...rawHostDirectives.map(createHostDirectiveDef));\n }\n else {\n definition.hostDirectives.unshift(rawHostDirectives);\n }\n };\n feature.ngInherit = true;\n return feature;\n}\nfunction findHostDirectiveDefs(currentDef, matchedDefs, hostDirectiveDefs) {\n if (currentDef.hostDirectives !== null) {\n for (const configOrFn of currentDef.hostDirectives) {\n if (typeof configOrFn === 'function') {\n const resolved = configOrFn();\n for (const config of resolved) {\n trackHostDirectiveDef(createHostDirectiveDef(config), matchedDefs, hostDirectiveDefs);\n }\n }\n else {\n trackHostDirectiveDef(configOrFn, matchedDefs, hostDirectiveDefs);\n }\n }\n }\n}\n/** Tracks a single host directive during directive matching. */\nfunction trackHostDirectiveDef(def, matchedDefs, hostDirectiveDefs) {\n const hostDirectiveDef = getDirectiveDef(def.directive);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n validateHostDirective(def, hostDirectiveDef);\n }\n // We need to patch the `declaredInputs` so that\n // `ngOnChanges` can map the properties correctly.\n patchDeclaredInputs(hostDirectiveDef.declaredInputs, def.inputs);\n // Host directives execute before the host so that its host bindings can be overwritten.\n findHostDirectiveDefs(hostDirectiveDef, matchedDefs, hostDirectiveDefs);\n hostDirectiveDefs.set(hostDirectiveDef, def);\n matchedDefs.push(hostDirectiveDef);\n}\n/** Creates a `HostDirectiveDef` from a used-defined host directive configuration. */\nfunction createHostDirectiveDef(config) {\n return typeof config === 'function'\n ? { directive: resolveForwardRef(config), inputs: EMPTY_OBJ, outputs: EMPTY_OBJ }\n : {\n directive: resolveForwardRef(config.directive),\n inputs: bindingArrayToMap(config.inputs),\n outputs: bindingArrayToMap(config.outputs),\n };\n}\n/**\n * Converts an array in the form of `['publicName', 'alias', 'otherPublicName', 'otherAlias']` into\n * a map in the form of `{publicName: 'alias', otherPublicName: 'otherAlias'}`.\n */\nfunction bindingArrayToMap(bindings) {\n if (bindings === undefined || bindings.length === 0) {\n return EMPTY_OBJ;\n }\n const result = {};\n for (let i = 0; i < bindings.length; i += 2) {\n result[bindings[i]] = bindings[i + 1];\n }\n return result;\n}\n/**\n * `ngOnChanges` has some leftover legacy ViewEngine behavior where the keys inside the\n * `SimpleChanges` event refer to the *declared* name of the input, not its public name or its\n * minified name. E.g. in `@Input('alias') foo: string`, the name in the `SimpleChanges` object\n * will always be `foo`, and not `alias` or the minified name of `foo` in apps using property\n * minification.\n *\n * This is achieved through the `DirectiveDef.declaredInputs` map that is constructed when the\n * definition is declared. When a property is written to the directive instance, the\n * `NgOnChangesFeature` will try to remap the property name being written to using the\n * `declaredInputs`.\n *\n * Since the host directive input remapping happens during directive matching, `declaredInputs`\n * won't contain the new alias that the input is available under. This function addresses the\n * issue by patching the host directive aliases to the `declaredInputs`. There is *not* a risk of\n * this patching accidentally introducing new inputs to the host directive, because `declaredInputs`\n * is used *only* by the `NgOnChangesFeature` when determining what name is used in the\n * `SimpleChanges` object which won't be reached if an input doesn't exist.\n */\nfunction patchDeclaredInputs(declaredInputs, exposedInputs) {\n for (const publicName in exposedInputs) {\n if (exposedInputs.hasOwnProperty(publicName)) {\n const remappedPublicName = exposedInputs[publicName];\n const privateName = declaredInputs[publicName];\n // We *technically* shouldn't be able to hit this case because we can't have multiple\n // inputs on the same property and we have validations against conflicting aliases in\n // `validateMappings`. If we somehow did, it would lead to `ngOnChanges` being invoked\n // with the wrong name so we have a non-user-friendly assertion here just in case.\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n declaredInputs.hasOwnProperty(remappedPublicName)) {\n assertEqual(declaredInputs[remappedPublicName], declaredInputs[publicName], `Conflicting host directive input alias ${publicName}.`);\n }\n declaredInputs[remappedPublicName] = privateName;\n }\n }\n}\n/**\n * Verifies that the host directive has been configured correctly.\n * @param hostDirectiveConfig Host directive configuration object.\n * @param directiveDef Directive definition of the host directive.\n */\nfunction validateHostDirective(hostDirectiveConfig, directiveDef) {\n const type = hostDirectiveConfig.directive;\n if (directiveDef === null) {\n if (getComponentDef(type) !== null) {\n throw new RuntimeError(310 /* RuntimeErrorCode.HOST_DIRECTIVE_COMPONENT */, `Host directive ${type.name} cannot be a component.`);\n }\n throw new RuntimeError(307 /* RuntimeErrorCode.HOST_DIRECTIVE_UNRESOLVABLE */, `Could not resolve metadata for host directive ${type.name}. ` +\n `Make sure that the ${type.name} class is annotated with an @Directive decorator.`);\n }\n if (!directiveDef.standalone) {\n throw new RuntimeError(308 /* RuntimeErrorCode.HOST_DIRECTIVE_NOT_STANDALONE */, `Host directive ${directiveDef.type.name} must be standalone.`);\n }\n validateMappings('input', directiveDef, hostDirectiveConfig.inputs);\n validateMappings('output', directiveDef, hostDirectiveConfig.outputs);\n}\n/**\n * Checks that the host directive inputs/outputs configuration is valid.\n * @param bindingType Kind of binding that is being validated. Used in the error message.\n * @param def Definition of the host directive that is being validated against.\n * @param hostDirectiveBindings Host directive mapping object that shold be validated.\n */\nfunction validateMappings(bindingType, def, hostDirectiveBindings) {\n const className = def.type.name;\n const bindings = bindingType === 'input' ? def.inputs : def.outputs;\n for (const publicName in hostDirectiveBindings) {\n if (hostDirectiveBindings.hasOwnProperty(publicName)) {\n if (!bindings.hasOwnProperty(publicName)) {\n throw new RuntimeError(311 /* RuntimeErrorCode.HOST_DIRECTIVE_UNDEFINED_BINDING */, `Directive ${className} does not have an ${bindingType} with a public name of ${publicName}.`);\n }\n const remappedPublicName = hostDirectiveBindings[publicName];\n if (bindings.hasOwnProperty(remappedPublicName) && remappedPublicName !== publicName) {\n throw new RuntimeError(312 /* RuntimeErrorCode.HOST_DIRECTIVE_CONFLICTING_ALIAS */, `Cannot alias ${bindingType} ${publicName} of host directive ${className} to ${remappedPublicName}, because it already has a different ${bindingType} with the same public name.`);\n }\n }\n }\n}\n\n/**\n * Decorates the directive definition with support for input transform functions.\n *\n * If the directive uses inheritance, the feature should be included before the\n * `InheritDefinitionFeature` to ensure that the `inputTransforms` field is populated.\n *\n * @codeGenApi\n */\nfunction ɵɵInputTransformsFeature(definition) {\n const inputs = definition.inputConfig;\n const inputTransforms = {};\n for (const minifiedKey in inputs) {\n if (inputs.hasOwnProperty(minifiedKey)) {\n // Note: the private names are used for the keys, rather than the public ones, because public\n // names can be re-aliased in host directives which would invalidate the lookup.\n const value = inputs[minifiedKey];\n if (Array.isArray(value) && value[3]) {\n inputTransforms[minifiedKey] = value[3];\n }\n }\n }\n definition.inputTransforms = inputTransforms;\n}\n\nfunction isIterable(obj) {\n return obj !== null && typeof obj === 'object' && obj[Symbol.iterator] !== undefined;\n}\nfunction isListLikeIterable(obj) {\n if (!isJsObject(obj))\n return false;\n return (Array.isArray(obj) ||\n (!(obj instanceof Map) && // JS Map are iterables but return entries as [k, v]\n Symbol.iterator in obj)); // JS Iterable have a Symbol.iterator prop\n}\nfunction areIterablesEqual(a, b, comparator) {\n const iterator1 = a[Symbol.iterator]();\n const iterator2 = b[Symbol.iterator]();\n while (true) {\n const item1 = iterator1.next();\n const item2 = iterator2.next();\n if (item1.done && item2.done)\n return true;\n if (item1.done || item2.done)\n return false;\n if (!comparator(item1.value, item2.value))\n return false;\n }\n}\nfunction iterateListLike(obj, fn) {\n if (Array.isArray(obj)) {\n for (let i = 0; i < obj.length; i++) {\n fn(obj[i]);\n }\n }\n else {\n const iterator = obj[Symbol.iterator]();\n let item;\n while (!(item = iterator.next()).done) {\n fn(item.value);\n }\n }\n}\nfunction isJsObject(o) {\n return o !== null && (typeof o === 'function' || typeof o === 'object');\n}\n\nfunction devModeEqual(a, b) {\n const isListLikeIterableA = isListLikeIterable(a);\n const isListLikeIterableB = isListLikeIterable(b);\n if (isListLikeIterableA && isListLikeIterableB) {\n return areIterablesEqual(a, b, devModeEqual);\n }\n else {\n const isAObject = a && (typeof a === 'object' || typeof a === 'function');\n const isBObject = b && (typeof b === 'object' || typeof b === 'function');\n if (!isListLikeIterableA && isAObject && !isListLikeIterableB && isBObject) {\n return true;\n }\n else {\n return Object.is(a, b);\n }\n }\n}\n\n// TODO(misko): consider inlining\n/** Updates binding and returns the value. */\nfunction updateBinding(lView, bindingIndex, value) {\n return (lView[bindingIndex] = value);\n}\n/** Gets the current binding value. */\nfunction getBinding(lView, bindingIndex) {\n ngDevMode && assertIndexInRange(lView, bindingIndex);\n ngDevMode &&\n assertNotSame(lView[bindingIndex], NO_CHANGE, 'Stored value should never be NO_CHANGE.');\n return lView[bindingIndex];\n}\n/**\n * Updates binding if changed, then returns whether it was updated.\n *\n * This function also checks the `CheckNoChangesMode` and throws if changes are made.\n * Some changes (Objects/iterables) during `CheckNoChangesMode` are exempt to comply with VE\n * behavior.\n *\n * @param lView current `LView`\n * @param bindingIndex The binding in the `LView` to check\n * @param value New value to check against `lView[bindingIndex]`\n * @returns `true` if the bindings has changed. (Throws if binding has changed during\n * `CheckNoChangesMode`)\n */\nfunction bindingUpdated(lView, bindingIndex, value) {\n ngDevMode && assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');\n ngDevMode &&\n assertLessThan(bindingIndex, lView.length, `Slot should have been initialized to NO_CHANGE`);\n const oldValue = lView[bindingIndex];\n if (Object.is(oldValue, value)) {\n return false;\n }\n else {\n if (ngDevMode && isInCheckNoChangesMode()) {\n // View engine didn't report undefined values as changed on the first checkNoChanges pass\n // (before the change detection was run).\n const oldValueToCompare = oldValue !== NO_CHANGE ? oldValue : undefined;\n if (!devModeEqual(oldValueToCompare, value)) {\n const details = getExpressionChangedErrorDetails(lView, bindingIndex, oldValueToCompare, value);\n throwErrorIfNoChangesMode(oldValue === NO_CHANGE, details.oldValue, details.newValue, details.propName, lView);\n }\n // There was a change, but the `devModeEqual` decided that the change is exempt from an error.\n // For this reason we exit as if no change. The early exit is needed to prevent the changed\n // value to be written into `LView` (If we would write the new value that we would not see it\n // as change on next CD.)\n return false;\n }\n lView[bindingIndex] = value;\n return true;\n }\n}\n/** Updates 2 bindings if changed, then returns whether either was updated. */\nfunction bindingUpdated2(lView, bindingIndex, exp1, exp2) {\n const different = bindingUpdated(lView, bindingIndex, exp1);\n return bindingUpdated(lView, bindingIndex + 1, exp2) || different;\n}\n/** Updates 3 bindings if changed, then returns whether any was updated. */\nfunction bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3) {\n const different = bindingUpdated2(lView, bindingIndex, exp1, exp2);\n return bindingUpdated(lView, bindingIndex + 2, exp3) || different;\n}\n/** Updates 4 bindings if changed, then returns whether any was updated. */\nfunction bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4) {\n const different = bindingUpdated2(lView, bindingIndex, exp1, exp2);\n return bindingUpdated2(lView, bindingIndex + 2, exp3, exp4) || different;\n}\n\nfunction templateFirstCreatePass(index, tView, lView, templateFn, decls, vars, tagName, attrs, localRefsIndex) {\n ngDevMode && assertFirstCreatePass(tView);\n ngDevMode && ngDevMode.firstCreatePass++;\n const tViewConsts = tView.consts;\n // TODO(pk): refactor getOrCreateTNode to have the \"create\" only version\n const tNode = getOrCreateTNode(tView, index, 4 /* TNodeType.Container */, tagName || null, attrs || null);\n resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));\n registerPostOrderHooks(tView, tNode);\n const embeddedTView = (tNode.tView = createTView(2 /* TViewType.Embedded */, tNode, templateFn, decls, vars, tView.directiveRegistry, tView.pipeRegistry, null, tView.schemas, tViewConsts, null /* ssrId */));\n if (tView.queries !== null) {\n tView.queries.template(tView, tNode);\n embeddedTView.queries = tView.queries.embeddedTView(tNode);\n }\n return tNode;\n}\n/**\n * Creates an LContainer for an embedded view.\n *\n * @param declarationLView LView in which the template was declared.\n * @param declarationTView TView in which the template wa declared.\n * @param index The index of the container in the data array\n * @param templateFn Inline template\n * @param decls The number of nodes, local refs, and pipes for this template\n * @param vars The number of bindings for this template\n * @param tagName The name of the container element, if applicable\n * @param attrsIndex Index of template attributes in the `consts` array.\n * @param localRefs Index of the local references in the `consts` array.\n * @param localRefExtractor A function which extracts local-refs values from the template.\n * Defaults to the current element associated with the local-ref.\n */\nfunction declareTemplate(declarationLView, declarationTView, index, templateFn, decls, vars, tagName, attrs, localRefsIndex, localRefExtractor) {\n const adjustedIndex = index + HEADER_OFFSET;\n const tNode = declarationTView.firstCreatePass\n ? templateFirstCreatePass(adjustedIndex, declarationTView, declarationLView, templateFn, decls, vars, tagName, attrs, localRefsIndex)\n : declarationTView.data[adjustedIndex];\n setCurrentTNode(tNode, false);\n const comment = _locateOrCreateContainerAnchor(declarationTView, declarationLView, tNode, index);\n if (wasLastNodeCreated()) {\n appendChild(declarationTView, declarationLView, comment, tNode);\n }\n attachPatchData(comment, declarationLView);\n const lContainer = createLContainer(comment, declarationLView, comment, tNode);\n declarationLView[adjustedIndex] = lContainer;\n addToEndOfViewTree(declarationLView, lContainer);\n // If hydration is enabled, looks up dehydrated views in the DOM\n // using hydration annotation info and stores those views on LContainer.\n // In client-only mode, this function is a noop.\n populateDehydratedViewsInLContainer(lContainer, tNode, declarationLView);\n if (isDirectiveHost(tNode)) {\n createDirectivesInstancesInInstruction(declarationTView, declarationLView, tNode);\n }\n if (localRefsIndex != null) {\n saveResolvedLocalsInData(declarationLView, tNode, localRefExtractor);\n }\n return tNode;\n}\n/**\n * Creates an LContainer for an ng-template (dynamically-inserted view), e.g.\n *\n * <ng-template #foo>\n * <div></div>\n * </ng-template>\n *\n * @param index The index of the container in the data array\n * @param templateFn Inline template\n * @param decls The number of nodes, local refs, and pipes for this template\n * @param vars The number of bindings for this template\n * @param tagName The name of the container element, if applicable\n * @param attrsIndex Index of template attributes in the `consts` array.\n * @param localRefs Index of the local references in the `consts` array.\n * @param localRefExtractor A function which extracts local-refs values from the template.\n * Defaults to the current element associated with the local-ref.\n *\n * @codeGenApi\n */\nfunction ɵɵtemplate(index, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex, localRefExtractor) {\n const lView = getLView();\n const tView = getTView();\n const attrs = getConstant(tView.consts, attrsIndex);\n declareTemplate(lView, tView, index, templateFn, decls, vars, tagName, attrs, localRefsIndex, localRefExtractor);\n return ɵɵtemplate;\n}\nlet _locateOrCreateContainerAnchor = createContainerAnchorImpl;\n/**\n * Regular creation mode for LContainers and their anchor (comment) nodes.\n */\nfunction createContainerAnchorImpl(tView, lView, tNode, index) {\n lastNodeWasCreated(true);\n return lView[RENDERER].createComment(ngDevMode ? 'container' : '');\n}\n/**\n * Enables hydration code path (to lookup existing elements in DOM)\n * in addition to the regular creation mode for LContainers and their\n * anchor (comment) nodes.\n */\nfunction locateOrCreateContainerAnchorImpl(tView, lView, tNode, index) {\n const hydrationInfo = lView[HYDRATION];\n const isNodeCreationMode = !hydrationInfo ||\n isInSkipHydrationBlock$1() ||\n isDetachedByI18n(tNode) ||\n isDisconnectedNode$1(hydrationInfo, index);\n lastNodeWasCreated(isNodeCreationMode);\n // Regular creation mode.\n if (isNodeCreationMode) {\n return createContainerAnchorImpl(tView, lView, tNode, index);\n }\n const ssrId = hydrationInfo.data[TEMPLATES]?.[index] ?? null;\n // Apply `ssrId` value to the underlying TView if it was not previously set.\n //\n // There might be situations when the same component is present in a template\n // multiple times and some instances are opted-out of using hydration via\n // `ngSkipHydration` attribute. In this scenario, at the time a TView is created,\n // the `ssrId` might be `null` (if the first component is opted-out of hydration).\n // The code below makes sure that the `ssrId` is applied to the TView if it's still\n // `null` and verifies we never try to override it with a different value.\n if (ssrId !== null && tNode.tView !== null) {\n if (tNode.tView.ssrId === null) {\n tNode.tView.ssrId = ssrId;\n }\n else {\n ngDevMode &&\n assertEqual(tNode.tView.ssrId, ssrId, 'Unexpected value of the `ssrId` for this TView');\n }\n }\n // Hydration mode, looking up existing elements in DOM.\n const currentRNode = locateNextRNode(hydrationInfo, tView, lView, tNode);\n ngDevMode && validateNodeExists(currentRNode, lView, tNode);\n setSegmentHead(hydrationInfo, index, currentRNode);\n const viewContainerSize = calcSerializedContainerSize(hydrationInfo, index);\n const comment = siblingAfter(viewContainerSize, currentRNode);\n if (ngDevMode) {\n validateMatchingNode(comment, Node.COMMENT_NODE, null, lView, tNode);\n markRNodeAsClaimedByHydration(comment);\n }\n return comment;\n}\nfunction enableLocateOrCreateContainerAnchorImpl() {\n _locateOrCreateContainerAnchor = locateOrCreateContainerAnchorImpl;\n}\n\n/**\n * Helper function to schedule a callback to be invoked when a browser becomes idle.\n *\n * @param callback A function to be invoked when a browser becomes idle.\n * @param injector injector for the app\n */\nfunction onIdle(callback, injector) {\n const scheduler = injector.get(IdleScheduler);\n const cleanupFn = () => scheduler.remove(callback);\n scheduler.add(callback);\n return cleanupFn;\n}\n/**\n * Use shims for the `requestIdleCallback` and `cancelIdleCallback` functions for\n * environments where those functions are not available (e.g. Node.js and Safari).\n *\n * Note: we wrap the `requestIdleCallback` call into a function, so that it can be\n * overridden/mocked in test environment and picked up by the runtime code.\n */\nconst _requestIdleCallback = () => typeof requestIdleCallback !== 'undefined' ? requestIdleCallback : setTimeout;\nconst _cancelIdleCallback = () => typeof requestIdleCallback !== 'undefined' ? cancelIdleCallback : clearTimeout;\n/**\n * Helper service to schedule `requestIdleCallback`s for batches of defer blocks,\n * to avoid calling `requestIdleCallback` for each defer block (e.g. if\n * defer blocks are defined inside a for loop).\n */\nclass IdleScheduler {\n // Indicates whether current callbacks are being invoked.\n executingCallbacks = false;\n // Currently scheduled idle callback id.\n idleId = null;\n // Set of callbacks to be invoked next.\n current = new Set();\n // Set of callbacks collected while invoking current set of callbacks.\n // Those callbacks are scheduled for the next idle period.\n deferred = new Set();\n ngZone = inject(NgZone);\n requestIdleCallbackFn = _requestIdleCallback().bind(globalThis);\n cancelIdleCallbackFn = _cancelIdleCallback().bind(globalThis);\n add(callback) {\n const target = this.executingCallbacks ? this.deferred : this.current;\n target.add(callback);\n if (this.idleId === null) {\n this.scheduleIdleCallback();\n }\n }\n remove(callback) {\n const { current, deferred } = this;\n current.delete(callback);\n deferred.delete(callback);\n // If the last callback was removed and there is a pending\n // idle callback - cancel it.\n if (current.size === 0 && deferred.size === 0) {\n this.cancelIdleCallback();\n }\n }\n scheduleIdleCallback() {\n const callback = () => {\n this.cancelIdleCallback();\n this.executingCallbacks = true;\n for (const callback of this.current) {\n callback();\n }\n this.current.clear();\n this.executingCallbacks = false;\n // If there are any callbacks added during an invocation\n // of the current ones - make them \"current\" and schedule\n // a new idle callback.\n if (this.deferred.size > 0) {\n for (const callback of this.deferred) {\n this.current.add(callback);\n }\n this.deferred.clear();\n this.scheduleIdleCallback();\n }\n };\n // Ensure that the callback runs in the NgZone since\n // the `requestIdleCallback` is not currently patched by Zone.js.\n this.idleId = this.requestIdleCallbackFn(() => this.ngZone.run(callback));\n }\n cancelIdleCallback() {\n if (this.idleId !== null) {\n this.cancelIdleCallbackFn(this.idleId);\n this.idleId = null;\n }\n }\n ngOnDestroy() {\n this.cancelIdleCallback();\n this.current.clear();\n this.deferred.clear();\n }\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: IdleScheduler,\n providedIn: 'root',\n factory: () => new IdleScheduler(),\n });\n}\n\n/**\n * Returns a function that captures a provided delay.\n * Invoking the returned function schedules a trigger.\n */\nfunction onTimer(delay) {\n return (callback, injector) => scheduleTimerTrigger(delay, callback, injector);\n}\n/**\n * Schedules a callback to be invoked after a given timeout.\n *\n * @param delay A number of ms to wait until firing a callback.\n * @param callback A function to be invoked after a timeout.\n * @param injector injector for the app.\n */\nfunction scheduleTimerTrigger(delay, callback, injector) {\n const scheduler = injector.get(TimerScheduler);\n const cleanupFn = () => scheduler.remove(callback);\n scheduler.add(delay, callback);\n return cleanupFn;\n}\n/**\n * Helper service to schedule `setTimeout`s for batches of defer blocks,\n * to avoid calling `setTimeout` for each defer block (e.g. if defer blocks\n * are created inside a for loop).\n */\nclass TimerScheduler {\n // Indicates whether current callbacks are being invoked.\n executingCallbacks = false;\n // Currently scheduled `setTimeout` id.\n timeoutId = null;\n // When currently scheduled timer would fire.\n invokeTimerAt = null;\n // List of callbacks to be invoked.\n // For each callback we also store a timestamp on when the callback\n // should be invoked. We store timestamps and callback functions\n // in a flat array to avoid creating new objects for each entry.\n // [timestamp1, callback1, timestamp2, callback2, ...]\n current = [];\n // List of callbacks collected while invoking current set of callbacks.\n // Those callbacks are added to the \"current\" queue at the end of\n // the current callback invocation. The shape of this list is the same\n // as the shape of the `current` list.\n deferred = [];\n add(delay, callback) {\n const target = this.executingCallbacks ? this.deferred : this.current;\n this.addToQueue(target, Date.now() + delay, callback);\n this.scheduleTimer();\n }\n remove(callback) {\n const { current, deferred } = this;\n const callbackIndex = this.removeFromQueue(current, callback);\n if (callbackIndex === -1) {\n // Try cleaning up deferred queue only in case\n // we didn't find a callback in the \"current\" queue.\n this.removeFromQueue(deferred, callback);\n }\n // If the last callback was removed and there is a pending timeout - cancel it.\n if (current.length === 0 && deferred.length === 0) {\n this.clearTimeout();\n }\n }\n addToQueue(target, invokeAt, callback) {\n let insertAtIndex = target.length;\n for (let i = 0; i < target.length; i += 2) {\n const invokeQueuedCallbackAt = target[i];\n if (invokeQueuedCallbackAt > invokeAt) {\n // We've reached a first timer that is scheduled\n // for a later time than what we are trying to insert.\n // This is the location at which we need to insert,\n // no need to iterate further.\n insertAtIndex = i;\n break;\n }\n }\n arrayInsert2(target, insertAtIndex, invokeAt, callback);\n }\n removeFromQueue(target, callback) {\n let index = -1;\n for (let i = 0; i < target.length; i += 2) {\n const queuedCallback = target[i + 1];\n if (queuedCallback === callback) {\n index = i;\n break;\n }\n }\n if (index > -1) {\n // Remove 2 elements: a timestamp slot and\n // the following slot with a callback function.\n arraySplice(target, index, 2);\n }\n return index;\n }\n scheduleTimer() {\n const callback = () => {\n this.clearTimeout();\n this.executingCallbacks = true;\n // Clone the current state of the queue, since it might be altered\n // as we invoke callbacks.\n const current = [...this.current];\n // Invoke callbacks that were scheduled to run before the current time.\n const now = Date.now();\n for (let i = 0; i < current.length; i += 2) {\n const invokeAt = current[i];\n const callback = current[i + 1];\n if (invokeAt <= now) {\n callback();\n }\n else {\n // We've reached a timer that should not be invoked yet.\n break;\n }\n }\n // The state of the queue might've changed after callbacks invocation,\n // run the cleanup logic based on the *current* state of the queue.\n let lastCallbackIndex = -1;\n for (let i = 0; i < this.current.length; i += 2) {\n const invokeAt = this.current[i];\n if (invokeAt <= now) {\n // Add +1 to account for a callback function that\n // goes after the timestamp in events array.\n lastCallbackIndex = i + 1;\n }\n else {\n // We've reached a timer that should not be invoked yet.\n break;\n }\n }\n if (lastCallbackIndex >= 0) {\n arraySplice(this.current, 0, lastCallbackIndex + 1);\n }\n this.executingCallbacks = false;\n // If there are any callbacks added during an invocation\n // of the current ones - move them over to the \"current\"\n // queue.\n if (this.deferred.length > 0) {\n for (let i = 0; i < this.deferred.length; i += 2) {\n const invokeAt = this.deferred[i];\n const callback = this.deferred[i + 1];\n this.addToQueue(this.current, invokeAt, callback);\n }\n this.deferred.length = 0;\n }\n this.scheduleTimer();\n };\n // Avoid running timer callbacks more than once per\n // average frame duration. This is needed for better\n // batching and to avoid kicking off excessive change\n // detection cycles.\n const FRAME_DURATION_MS = 16; // 1000ms / 60fps\n if (this.current.length > 0) {\n const now = Date.now();\n // First element in the queue points at the timestamp\n // of the first (earliest) event.\n const invokeAt = this.current[0];\n if (this.timeoutId === null ||\n // Reschedule a timer in case a queue contains an item with\n // an earlier timestamp and the delta is more than an average\n // frame duration.\n (this.invokeTimerAt && this.invokeTimerAt - invokeAt > FRAME_DURATION_MS)) {\n // There was a timeout already, but an earlier event was added\n // into the queue. In this case we drop an old timer and setup\n // a new one with an updated (smaller) timeout.\n this.clearTimeout();\n const timeout = Math.max(invokeAt - now, FRAME_DURATION_MS);\n this.invokeTimerAt = invokeAt;\n this.timeoutId = setTimeout(callback, timeout);\n }\n }\n }\n clearTimeout() {\n if (this.timeoutId !== null) {\n clearTimeout(this.timeoutId);\n this.timeoutId = null;\n }\n }\n ngOnDestroy() {\n this.clearTimeout();\n this.current.length = 0;\n this.deferred.length = 0;\n }\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: TimerScheduler,\n providedIn: 'root',\n factory: () => new TimerScheduler(),\n });\n}\n\n/**\n * A service used by the framework to create and cache injector instances.\n *\n * This service is used to create a single injector instance for each defer\n * block definition, to avoid creating an injector for each defer block instance\n * of a certain type.\n */\nclass CachedInjectorService {\n cachedInjectors = new Map();\n getOrCreateInjector(key, parentInjector, providers, debugName) {\n if (!this.cachedInjectors.has(key)) {\n const injector = providers.length > 0\n ? createEnvironmentInjector(providers, parentInjector, debugName)\n : null;\n this.cachedInjectors.set(key, injector);\n }\n return this.cachedInjectors.get(key);\n }\n ngOnDestroy() {\n try {\n for (const injector of this.cachedInjectors.values()) {\n if (injector !== null) {\n injector.destroy();\n }\n }\n }\n finally {\n this.cachedInjectors.clear();\n }\n }\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: CachedInjectorService,\n providedIn: 'environment',\n factory: () => new CachedInjectorService(),\n });\n}\n\n/**\n * **INTERNAL**, avoid referencing it in application code.\n * *\n * Injector token that allows to provide `DeferBlockDependencyInterceptor` class\n * implementation.\n *\n * This token is only injected in devMode\n */\nconst DEFER_BLOCK_DEPENDENCY_INTERCEPTOR = \n/* @__PURE__ */ new InjectionToken('DEFER_BLOCK_DEPENDENCY_INTERCEPTOR');\n/**\n * **INTERNAL**, token used for configuring defer block behavior.\n */\nconst DEFER_BLOCK_CONFIG = new InjectionToken(ngDevMode ? 'DEFER_BLOCK_CONFIG' : '');\n/**\n * Checks whether there is a cached injector associated with a given defer block\n * declaration and returns if it exists. If there is no cached injector present -\n * creates a new injector and stores in the cache.\n */\nfunction getOrCreateEnvironmentInjector(parentInjector, tDetails, providers) {\n return parentInjector\n .get(CachedInjectorService)\n .getOrCreateInjector(tDetails, parentInjector, providers, ngDevMode ? 'DeferBlock Injector' : '');\n}\n/** Injector Helpers */\n/**\n * Creates a new injector, which contains providers collected from dependencies (NgModules) of\n * defer-loaded components. This function detects different types of parent injectors and creates\n * a new injector based on that.\n */\nfunction createDeferBlockInjector(parentInjector, tDetails, providers) {\n // Check if the parent injector is an instance of a `ChainedInjector`.\n //\n // In this case, we retain the shape of the injector and use a newly created\n // `EnvironmentInjector` as a parent in the `ChainedInjector`. That is needed to\n // make sure that the primary injector gets consulted first (since it's typically\n // a NodeInjector) and `EnvironmentInjector` tree is consulted after that.\n if (parentInjector instanceof ChainedInjector) {\n const origInjector = parentInjector.injector;\n // Guaranteed to be an environment injector\n const parentEnvInjector = parentInjector.parentInjector;\n const envInjector = getOrCreateEnvironmentInjector(parentEnvInjector, tDetails, providers);\n return new ChainedInjector(origInjector, envInjector);\n }\n const parentEnvInjector = parentInjector.get(EnvironmentInjector);\n // If the `parentInjector` is *not* an `EnvironmentInjector` - we need to create\n // a new `ChainedInjector` with the following setup:\n //\n // - the provided `parentInjector` becomes a primary injector\n // - an existing (real) `EnvironmentInjector` becomes a parent injector for\n // a newly-created one, which contains extra providers\n //\n // So the final order in which injectors would be consulted in this case would look like this:\n //\n // 1. Provided `parentInjector`\n // 2. Newly-created `EnvironmentInjector` with extra providers\n // 3. `EnvironmentInjector` from the `parentInjector`\n if (parentEnvInjector !== parentInjector) {\n const envInjector = getOrCreateEnvironmentInjector(parentEnvInjector, tDetails, providers);\n return new ChainedInjector(parentInjector, envInjector);\n }\n // The `parentInjector` is an instance of an `EnvironmentInjector`.\n // No need for special handling, we can use `parentInjector` as a\n // parent injector directly.\n return getOrCreateEnvironmentInjector(parentInjector, tDetails, providers);\n}\n/** Rendering Helpers */\n/**\n * Transitions a defer block to the new state. Updates the necessary\n * data structures and renders corresponding block.\n *\n * @param newState New state that should be applied to the defer block.\n * @param tNode TNode that represents a defer block.\n * @param lContainer Represents an instance of a defer block.\n * @param skipTimerScheduling Indicates that `@loading` and `@placeholder` block\n * should be rendered immediately, even if they have `after` or `minimum` config\n * options setup. This flag to needed for testing APIs to transition defer block\n * between states via `DeferFixture.render` method.\n */\nfunction renderDeferBlockState(newState, tNode, lContainer, skipTimerScheduling = false) {\n const hostLView = lContainer[PARENT];\n const hostTView = hostLView[TVIEW];\n // Check if this view is not destroyed. Since the loading process was async,\n // the view might end up being destroyed by the time rendering happens.\n if (isDestroyed(hostLView))\n return;\n // Make sure this TNode belongs to TView that represents host LView.\n ngDevMode && assertTNodeForLView(tNode, hostLView);\n const lDetails = getLDeferBlockDetails(hostLView, tNode);\n ngDevMode && assertDefined(lDetails, 'Expected a defer block state defined');\n const currentState = lDetails[DEFER_BLOCK_STATE];\n const ssrState = lDetails[SSR_BLOCK_STATE];\n if (ssrState !== null && newState < ssrState) {\n return; // trying to render a previous state, exit\n }\n if (isValidStateChange(currentState, newState) &&\n isValidStateChange(lDetails[NEXT_DEFER_BLOCK_STATE] ?? -1, newState)) {\n const tDetails = getTDeferBlockDetails(hostTView, tNode);\n // Skips scheduling on the server since it can delay the server response.\n const needsScheduling = !skipTimerScheduling &&\n (typeof ngServerMode === 'undefined' || !ngServerMode) &&\n (getLoadingBlockAfter(tDetails) !== null ||\n getMinimumDurationForState(tDetails, DeferBlockState.Loading) !== null ||\n getMinimumDurationForState(tDetails, DeferBlockState.Placeholder));\n if (ngDevMode && needsScheduling) {\n assertDefined(applyDeferBlockStateWithSchedulingImpl, 'Expected scheduling function to be defined');\n }\n const applyStateFn = needsScheduling\n ? applyDeferBlockStateWithSchedulingImpl\n : applyDeferBlockState;\n try {\n applyStateFn(newState, lDetails, lContainer, tNode, hostLView);\n }\n catch (error) {\n handleError(hostLView, error);\n }\n }\n}\nfunction findMatchingDehydratedViewForDeferBlock(lContainer, lDetails) {\n // Find matching view based on serialized defer block state.\n return (lContainer[DEHYDRATED_VIEWS]?.find((view) => view.data[DEFER_BLOCK_STATE$1] === lDetails[DEFER_BLOCK_STATE]) ?? null);\n}\n/**\n * Applies changes to the DOM to reflect a given state.\n */\nfunction applyDeferBlockState(newState, lDetails, lContainer, tNode, hostLView) {\n const stateTmplIndex = getTemplateIndexForState(newState, hostLView, tNode);\n if (stateTmplIndex !== null) {\n lDetails[DEFER_BLOCK_STATE] = newState;\n const hostTView = hostLView[TVIEW];\n const adjustedIndex = stateTmplIndex + HEADER_OFFSET;\n // The TNode that represents a template that will activated in the defer block\n const activeBlockTNode = getTNode(hostTView, adjustedIndex);\n // There is only 1 view that can be present in an LContainer that\n // represents a defer block, so always refer to the first one.\n const viewIndex = 0;\n removeLViewFromLContainer(lContainer, viewIndex);\n let injector;\n if (newState === DeferBlockState.Complete) {\n // When we render a defer block in completed state, there might be\n // newly loaded standalone components used within the block, which may\n // import NgModules with providers. In order to make those providers\n // available for components declared in that NgModule, we create an instance\n // of an environment injector to host those providers and pass this injector\n // to the logic that creates a view.\n const tDetails = getTDeferBlockDetails(hostTView, tNode);\n const providers = tDetails.providers;\n if (providers && providers.length > 0) {\n injector = createDeferBlockInjector(hostLView[INJECTOR], tDetails, providers);\n }\n }\n const dehydratedView = findMatchingDehydratedViewForDeferBlock(lContainer, lDetails);\n // Erase dehydrated view info, so that it's not removed later\n // by post-hydration cleanup process.\n lContainer[DEHYDRATED_VIEWS] = null;\n const embeddedLView = createAndRenderEmbeddedLView(hostLView, activeBlockTNode, null, {\n injector,\n dehydratedView,\n });\n addLViewToLContainer(lContainer, embeddedLView, viewIndex, shouldAddViewToDom(activeBlockTNode, dehydratedView));\n markViewDirty(embeddedLView, 2 /* NotificationSource.DeferBlockStateUpdate */);\n // TODO(incremental-hydration):\n // - what if we had some views in `lContainer[DEHYDRATED_VIEWS]`, but\n // we didn't find a view that matches the expected state?\n // - for example, handle a situation when a block was in the \"completed\" state\n // on the server, but the loading failing on the client. How do we reconcile and cleanup?\n if ((newState === DeferBlockState.Complete || newState === DeferBlockState.Error) &&\n Array.isArray(lDetails[ON_COMPLETE_FNS])) {\n for (const callback of lDetails[ON_COMPLETE_FNS]) {\n callback();\n }\n lDetails[ON_COMPLETE_FNS] = null;\n }\n }\n}\n/**\n * Extends the `applyDeferBlockState` with timer-based scheduling.\n * This function becomes available on a page if there are defer blocks\n * that use `after` or `minimum` parameters in the `@loading` or\n * `@placeholder` blocks.\n */\nfunction applyDeferBlockStateWithScheduling(newState, lDetails, lContainer, tNode, hostLView) {\n const now = Date.now();\n const hostTView = hostLView[TVIEW];\n const tDetails = getTDeferBlockDetails(hostTView, tNode);\n if (lDetails[STATE_IS_FROZEN_UNTIL] === null || lDetails[STATE_IS_FROZEN_UNTIL] <= now) {\n lDetails[STATE_IS_FROZEN_UNTIL] = null;\n const loadingAfter = getLoadingBlockAfter(tDetails);\n const inLoadingAfterPhase = lDetails[LOADING_AFTER_CLEANUP_FN] !== null;\n if (newState === DeferBlockState.Loading && loadingAfter !== null && !inLoadingAfterPhase) {\n // Trying to render loading, but it has an `after` config,\n // so schedule an update action after a timeout.\n lDetails[NEXT_DEFER_BLOCK_STATE] = newState;\n const cleanupFn = scheduleDeferBlockUpdate(loadingAfter, lDetails, tNode, lContainer, hostLView);\n lDetails[LOADING_AFTER_CLEANUP_FN] = cleanupFn;\n }\n else {\n // If we transition to a complete or an error state and there is a pending\n // operation to render loading after a timeout - invoke a cleanup operation,\n // which stops the timer.\n if (newState > DeferBlockState.Loading && inLoadingAfterPhase) {\n lDetails[LOADING_AFTER_CLEANUP_FN]();\n lDetails[LOADING_AFTER_CLEANUP_FN] = null;\n lDetails[NEXT_DEFER_BLOCK_STATE] = null;\n }\n applyDeferBlockState(newState, lDetails, lContainer, tNode, hostLView);\n const duration = getMinimumDurationForState(tDetails, newState);\n if (duration !== null) {\n lDetails[STATE_IS_FROZEN_UNTIL] = now + duration;\n scheduleDeferBlockUpdate(duration, lDetails, tNode, lContainer, hostLView);\n }\n }\n }\n else {\n // We are still rendering the previous state.\n // Update the `NEXT_DEFER_BLOCK_STATE`, which would be\n // picked up once it's time to transition to the next state.\n lDetails[NEXT_DEFER_BLOCK_STATE] = newState;\n }\n}\n/**\n * Schedules an update operation after a specified timeout.\n */\nfunction scheduleDeferBlockUpdate(timeout, lDetails, tNode, lContainer, hostLView) {\n const callback = () => {\n const nextState = lDetails[NEXT_DEFER_BLOCK_STATE];\n lDetails[STATE_IS_FROZEN_UNTIL] = null;\n lDetails[NEXT_DEFER_BLOCK_STATE] = null;\n if (nextState !== null) {\n renderDeferBlockState(nextState, tNode, lContainer);\n }\n };\n return scheduleTimerTrigger(timeout, callback, hostLView[INJECTOR]);\n}\n/**\n * Checks whether we can transition to the next state.\n *\n * We transition to the next state if the previous state was represented\n * with a number that is less than the next state. For example, if the current\n * state is \"loading\" (represented as `1`), we should not show a placeholder\n * (represented as `0`), but we can show a completed state (represented as `2`)\n * or an error state (represented as `3`).\n */\nfunction isValidStateChange(currentState, newState) {\n return currentState < newState;\n}\n/** Utility function to render placeholder content (if present) */\nfunction renderPlaceholder(lView, tNode) {\n const lContainer = lView[tNode.index];\n ngDevMode && assertLContainer(lContainer);\n renderDeferBlockState(DeferBlockState.Placeholder, tNode, lContainer);\n}\n/**\n * Subscribes to the \"loading\" Promise and renders corresponding defer sub-block,\n * based on the loading results.\n *\n * @param lContainer Represents an instance of a defer block.\n * @param tNode Represents defer block info shared across all instances.\n */\nfunction renderDeferStateAfterResourceLoading(tDetails, tNode, lContainer) {\n ngDevMode &&\n assertDefined(tDetails.loadingPromise, 'Expected loading Promise to exist on this defer block');\n tDetails.loadingPromise.then(() => {\n if (tDetails.loadingState === DeferDependenciesLoadingState.COMPLETE) {\n ngDevMode && assertDeferredDependenciesLoaded(tDetails);\n // Everything is loaded, show the primary block content\n renderDeferBlockState(DeferBlockState.Complete, tNode, lContainer);\n }\n else if (tDetails.loadingState === DeferDependenciesLoadingState.FAILED) {\n renderDeferBlockState(DeferBlockState.Error, tNode, lContainer);\n }\n });\n}\n/**\n * Reference to the timer-based scheduler implementation of defer block state\n * rendering method. It's used to make timer-based scheduling tree-shakable.\n * If `minimum` or `after` parameters are used, compiler generates an extra\n * argument for the `ɵɵdefer` instruction, which references a timer-based\n * implementation.\n */\nlet applyDeferBlockStateWithSchedulingImpl = null;\n/**\n * Enables timer-related scheduling if `after` or `minimum` parameters are setup\n * on the `@loading` or `@placeholder` blocks.\n */\nfunction ɵɵdeferEnableTimerScheduling(tView, tDetails, placeholderConfigIndex, loadingConfigIndex) {\n const tViewConsts = tView.consts;\n if (placeholderConfigIndex != null) {\n tDetails.placeholderBlockConfig = getConstant(tViewConsts, placeholderConfigIndex);\n }\n if (loadingConfigIndex != null) {\n tDetails.loadingBlockConfig = getConstant(tViewConsts, loadingConfigIndex);\n }\n // Enable implementation that supports timer-based scheduling.\n if (applyDeferBlockStateWithSchedulingImpl === null) {\n applyDeferBlockStateWithSchedulingImpl = applyDeferBlockStateWithScheduling;\n }\n}\n\n/**\n * The name of a field that Angular monkey-patches onto a component\n * class to store a function that loads defer-loadable dependencies\n * and applies metadata to a class.\n */\nconst ASYNC_COMPONENT_METADATA_FN = '__ngAsyncComponentMetadataFn__';\n/**\n * If a given component has unresolved async metadata - returns a reference\n * to a function that applies component metadata after resolving defer-loadable\n * dependencies. Otherwise - this function returns `null`.\n */\nfunction getAsyncClassMetadataFn(type) {\n const componentClass = type; // cast to `any`, so that we can read a monkey-patched field\n return componentClass[ASYNC_COMPONENT_METADATA_FN] ?? null;\n}\n/**\n * Handles the process of applying metadata info to a component class in case\n * component template has defer blocks (thus some dependencies became deferrable).\n *\n * @param type Component class where metadata should be added\n * @param dependencyLoaderFn Function that loads dependencies\n * @param metadataSetterFn Function that forms a scope in which the `setClassMetadata` is invoked\n */\nfunction setClassMetadataAsync(type, dependencyLoaderFn, metadataSetterFn) {\n const componentClass = type; // cast to `any`, so that we can monkey-patch it\n componentClass[ASYNC_COMPONENT_METADATA_FN] = () => Promise.all(dependencyLoaderFn()).then((dependencies) => {\n metadataSetterFn(...dependencies);\n // Metadata is now set, reset field value to indicate that this component\n // can by used/compiled synchronously.\n componentClass[ASYNC_COMPONENT_METADATA_FN] = null;\n return dependencies;\n });\n return componentClass[ASYNC_COMPONENT_METADATA_FN];\n}\n/**\n * Adds decorator, constructor, and property metadata to a given type via static metadata fields\n * on the type.\n *\n * These metadata fields can later be read with Angular's `ReflectionCapabilities` API.\n *\n * Calls to `setClassMetadata` can be guarded by ngDevMode, resulting in the metadata assignments\n * being tree-shaken away during production builds.\n */\nfunction setClassMetadata(type, decorators, ctorParameters, propDecorators) {\n return noSideEffects(() => {\n const clazz = type;\n if (decorators !== null) {\n if (clazz.hasOwnProperty('decorators') && clazz.decorators !== undefined) {\n clazz.decorators.push(...decorators);\n }\n else {\n clazz.decorators = decorators;\n }\n }\n if (ctorParameters !== null) {\n // Rather than merging, clobber the existing parameters. If other projects exist which\n // use tsickle-style annotations and reflect over them in the same way, this could\n // cause issues, but that is vanishingly unlikely.\n clazz.ctorParameters = ctorParameters;\n }\n if (propDecorators !== null) {\n // The property decorator objects are merged as it is possible different fields have\n // different decorator types. Decorators on individual fields are not merged, as it's\n // also incredibly unlikely that a field will be decorated both with an Angular\n // decorator and a non-Angular decorator that's also been downleveled.\n if (clazz.hasOwnProperty('propDecorators') && clazz.propDecorators !== undefined) {\n clazz.propDecorators = { ...clazz.propDecorators, ...propDecorators };\n }\n else {\n clazz.propDecorators = propDecorators;\n }\n }\n });\n}\n\n/*\n * This file exists to support compilation of @angular/core in Ivy mode.\n *\n * When the Angular compiler processes a compilation unit, it normally writes imports to\n * @angular/core. When compiling the core package itself this strategy isn't usable. Instead, the\n * compiler writes imports to this file.\n *\n * Only a subset of such imports are supported - core is not allowed to declare components or pipes.\n * A check in ngtsc's `R3SymbolsImportRewriter` validates this condition. The rewriter is only used\n * when compiling @angular/core and is responsible for translating an external name (prefixed with\n * ɵ) to the internal symbol name as exported below.\n *\n * The below symbols are used for @Injectable and @NgModule compilation.\n */\n/**\n * The existence of this constant (in this particular file) informs the Angular compiler that the\n * current program is actually @angular/core, which needs to be compiled specially.\n */\nconst ITS_JUST_ANGULAR = true;\n\nclass Console {\n log(message) {\n // tslint:disable-next-line:no-console\n console.log(message);\n }\n // Note: for reporting errors use `DOM.logError()` as it is platform specific\n warn(message) {\n console.warn(message);\n }\n static ɵfac = function Console_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Console)(); };\n static ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Console, factory: Console.ɵfac, providedIn: 'platform' });\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(Console, [{\n type: Injectable,\n args: [{ providedIn: 'platform' }]\n }], null, null); })();\n\n/**\n * These are the data structures that our framework injector profiler will fill with data in order\n * to support DI debugging APIs.\n *\n * resolverToTokenToDependencies: Maps an injector to a Map of tokens to an Array of\n * dependencies. Injector -> Token -> Dependencies This is used to support the\n * getDependenciesFromInjectable API, which takes in an injector and a token and returns it's\n * dependencies.\n *\n * resolverToProviders: Maps a DI resolver (an Injector or a TNode) to the providers configured\n * within it This is used to support the getInjectorProviders API, which takes in an injector and\n * returns the providers that it was configured with. Note that for the element injector case we\n * use the TNode instead of the LView as the DI resolver. This is because the registration of\n * providers happens only once per type of TNode. If an injector is created with an identical TNode,\n * the providers for that injector will not be reconfigured.\n *\n * standaloneInjectorToComponent: Maps the injector of a standalone component to the standalone\n * component that it is associated with. Used in the getInjectorProviders API, specificially in the\n * discovery of import paths for each provider. This is necessary because the imports array of a\n * standalone component is processed and configured in its standalone injector, but exists within\n * the component's definition. Because getInjectorProviders takes in an injector, if that injector\n * is the injector of a standalone component, we need to be able to discover the place where the\n * imports array is located (the component) in order to flatten the imports array within it to\n * discover all of it's providers.\n *\n *\n * All of these data structures are instantiated with WeakMaps. This will ensure that the presence\n * of any object in the keys of these maps does not prevent the garbage collector from collecting\n * those objects. Because of this property of WeakMaps, these data structures will never be the\n * source of a memory leak.\n *\n * An example of this advantage: When components are destroyed, we don't need to do\n * any additional work to remove that component from our mappings.\n *\n */\nclass DIDebugData {\n resolverToTokenToDependencies = new WeakMap();\n resolverToProviders = new WeakMap();\n resolverToEffects = new WeakMap();\n standaloneInjectorToComponent = new WeakMap();\n reset() {\n this.resolverToTokenToDependencies = new WeakMap();\n this.resolverToProviders = new WeakMap();\n this.standaloneInjectorToComponent = new WeakMap();\n }\n}\nlet frameworkDIDebugData = new DIDebugData();\nfunction getFrameworkDIDebugData() {\n return frameworkDIDebugData;\n}\n/**\n * Initalize default handling of injector events. This handling parses events\n * as they are emitted and constructs the data structures necessary to support\n * some of debug APIs.\n *\n * See handleInjectEvent, handleCreateEvent and handleProviderConfiguredEvent\n * for descriptions of each handler\n *\n * Supported APIs:\n * - getDependenciesFromInjectable\n * - getInjectorProviders\n */\nfunction setupFrameworkInjectorProfiler() {\n frameworkDIDebugData.reset();\n setInjectorProfiler((injectorProfilerEvent) => handleInjectorProfilerEvent(injectorProfilerEvent));\n}\nfunction handleInjectorProfilerEvent(injectorProfilerEvent) {\n const { context, type } = injectorProfilerEvent;\n if (type === 0 /* InjectorProfilerEventType.Inject */) {\n handleInjectEvent(context, injectorProfilerEvent.service);\n }\n else if (type === 1 /* InjectorProfilerEventType.InstanceCreatedByInjector */) {\n handleInstanceCreatedByInjectorEvent(context, injectorProfilerEvent.instance);\n }\n else if (type === 2 /* InjectorProfilerEventType.ProviderConfigured */) {\n handleProviderConfiguredEvent(context, injectorProfilerEvent.providerRecord);\n }\n else if (type === 3 /* InjectorProfilerEventType.EffectCreated */) {\n handleEffectCreatedEvent(context, injectorProfilerEvent.effect);\n }\n}\nfunction handleEffectCreatedEvent(context, effect) {\n const diResolver = getDIResolver(context.injector);\n if (diResolver === null) {\n throwError('An EffectCreated event must be run within an injection context.');\n }\n const { resolverToEffects } = frameworkDIDebugData;\n if (!resolverToEffects.has(diResolver)) {\n resolverToEffects.set(diResolver, []);\n }\n resolverToEffects.get(diResolver).push(effect);\n}\n/**\n *\n * Stores the injected service in frameworkDIDebugData.resolverToTokenToDependencies\n * based on it's injector and token.\n *\n * @param context InjectorProfilerContext the injection context that this event occurred in.\n * @param data InjectedService the service associated with this inject event.\n *\n */\nfunction handleInjectEvent(context, data) {\n const diResolver = getDIResolver(context.injector);\n if (diResolver === null) {\n throwError('An Inject event must be run within an injection context.');\n }\n const diResolverToInstantiatedToken = frameworkDIDebugData.resolverToTokenToDependencies;\n if (!diResolverToInstantiatedToken.has(diResolver)) {\n diResolverToInstantiatedToken.set(diResolver, new WeakMap());\n }\n // if token is a primitive type, ignore this event. We do this because we cannot keep track of\n // non-primitive tokens in WeakMaps since they are not garbage collectable.\n if (!canBeHeldWeakly(context.token)) {\n return;\n }\n const instantiatedTokenToDependencies = diResolverToInstantiatedToken.get(diResolver);\n if (!instantiatedTokenToDependencies.has(context.token)) {\n instantiatedTokenToDependencies.set(context.token, []);\n }\n const { token, value, flags } = data;\n assertDefined(context.token, 'Injector profiler context token is undefined.');\n const dependencies = instantiatedTokenToDependencies.get(context.token);\n assertDefined(dependencies, 'Could not resolve dependencies for token.');\n if (context.injector instanceof NodeInjector) {\n dependencies.push({ token, value, flags, injectedIn: getNodeInjectorContext(context.injector) });\n }\n else {\n dependencies.push({ token, value, flags });\n }\n}\n/**\n *\n * Returns the LView and TNode associated with a NodeInjector. Returns undefined if the injector\n * is not a NodeInjector.\n *\n * @param injector\n * @returns {lView: LView, tNode: TNode}|undefined\n */\nfunction getNodeInjectorContext(injector) {\n if (!(injector instanceof NodeInjector)) {\n throwError('getNodeInjectorContext must be called with a NodeInjector');\n }\n const lView = getNodeInjectorLView(injector);\n const tNode = getNodeInjectorTNode(injector);\n if (tNode === null) {\n return;\n }\n assertTNodeForLView(tNode, lView);\n return { lView, tNode };\n}\n/**\n *\n * If the created instance is an instance of a standalone component, maps the injector to that\n * standalone component in frameworkDIDebugData.standaloneInjectorToComponent\n *\n * @param context InjectorProfilerContext the injection context that this event occurred in.\n * @param data InjectorCreatedInstance an object containing the instance that was just created\n *\n */\nfunction handleInstanceCreatedByInjectorEvent(context, data) {\n const { value } = data;\n if (getDIResolver(context.injector) === null) {\n throwError('An InjectorCreatedInstance event must be run within an injection context.');\n }\n // if our value is an instance of a standalone component, map the injector of that standalone\n // component to the component class. Otherwise, this event is a noop.\n let standaloneComponent = undefined;\n if (typeof value === 'object') {\n standaloneComponent = value?.constructor;\n }\n // We want to also cover if `standaloneComponent === null` in addition to `undefined`\n if (standaloneComponent == undefined || !isStandaloneComponent(standaloneComponent)) {\n return;\n }\n const environmentInjector = context.injector.get(EnvironmentInjector, null, { optional: true });\n // Standalone components should have an environment injector. If one cannot be\n // found we may be in a test case for low level functionality that did not explicitly\n // setup this injector. In those cases, we simply ignore this event.\n if (environmentInjector === null) {\n return;\n }\n const { standaloneInjectorToComponent } = frameworkDIDebugData;\n // If our injector has already been mapped, as is the case\n // when a standalone component imports another standalone component,\n // we consider the original component (the component doing the importing)\n // as the component connected to our injector.\n if (standaloneInjectorToComponent.has(environmentInjector)) {\n return;\n }\n // If our injector hasn't been mapped, then we map it to the standalone component\n standaloneInjectorToComponent.set(environmentInjector, standaloneComponent);\n}\nfunction isStandaloneComponent(value) {\n const def = getComponentDef(value);\n return !!def?.standalone;\n}\n/**\n *\n * Stores the emitted ProviderRecords from the InjectorProfilerEventType.ProviderConfigured\n * event in frameworkDIDebugData.resolverToProviders\n *\n * @param context InjectorProfilerContext the injection context that this event occurred in.\n * @param data ProviderRecord an object containing the instance that was just created\n *\n */\nfunction handleProviderConfiguredEvent(context, data) {\n const { resolverToProviders } = frameworkDIDebugData;\n let diResolver;\n if (context?.injector instanceof NodeInjector) {\n diResolver = getNodeInjectorTNode(context.injector);\n }\n else {\n diResolver = context.injector;\n }\n if (diResolver === null) {\n throwError('A ProviderConfigured event must be run within an injection context.');\n }\n if (!resolverToProviders.has(diResolver)) {\n resolverToProviders.set(diResolver, []);\n }\n resolverToProviders.get(diResolver).push(data);\n}\nfunction getDIResolver(injector) {\n let diResolver = null;\n if (injector === undefined) {\n return diResolver;\n }\n // We use the LView as the diResolver for NodeInjectors because they\n // do not persist anywhere in the framework. They are simply wrappers around an LView and a TNode\n // that do persist. Because of this, we rely on the LView of the NodeInjector in order to use\n // as a concrete key to represent this injector. If we get the same LView back later, we know\n // we're looking at the same injector.\n if (injector instanceof NodeInjector) {\n diResolver = getNodeInjectorLView(injector);\n }\n // Other injectors can be used a keys for a map because their instances\n // persist\n else {\n diResolver = injector;\n }\n return diResolver;\n}\n// inspired by\n// https://tc39.es/ecma262/multipage/executable-code-and-execution-contexts.html#sec-canbeheldweakly\nfunction canBeHeldWeakly(value) {\n // we check for value !== null here because typeof null === 'object\n return (value !== null &&\n (typeof value === 'object' || typeof value === 'function' || typeof value === 'symbol'));\n}\n\n/**\n * Marks a component for check (in case of OnPush components) and synchronously\n * performs change detection on the application this component belongs to.\n *\n * @param component Component to {@link ChangeDetectorRef#markForCheck mark for check}.\n *\n * @publicApi\n */\nfunction applyChanges(component) {\n ngDevMode && assertDefined(component, 'component');\n markViewDirty(getComponentViewByInstance(component), 3 /* NotificationSource.DebugApplyChanges */);\n getRootComponents(component).forEach((rootComponent) => detectChanges(rootComponent));\n}\n/**\n * Synchronously perform change detection on a component (and possibly its sub-components).\n *\n * This function triggers change detection in a synchronous way on a component.\n *\n * @param component The component which the change detection should be performed on.\n */\nfunction detectChanges(component) {\n const view = getComponentViewByInstance(component);\n view[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n detectChangesInternal(view);\n}\n\n/**\n * Retrieves all defer blocks in a given LView.\n *\n * @param lView lView with defer blocks\n * @param deferBlocks defer block aggregator array\n */\nfunction getDeferBlocks$1(lView, deferBlocks) {\n const tView = lView[TVIEW];\n for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n if (isLContainer(lView[i])) {\n const lContainer = lView[i];\n // An LContainer may represent an instance of a defer block, in which case\n // we store it as a result. Otherwise, keep iterating over LContainer views and\n // look for defer blocks.\n const isLast = i === tView.bindingStartIndex - 1;\n if (!isLast) {\n const tNode = tView.data[i];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n if (isTDeferBlockDetails(tDetails)) {\n deferBlocks.push({ lContainer, lView, tNode, tDetails });\n // This LContainer represents a defer block, so we exit\n // this iteration and don't inspect views in this LContainer.\n continue;\n }\n }\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n getDeferBlocks$1(lContainer[i], deferBlocks);\n }\n }\n else if (isLView(lView[i])) {\n // This is a component, enter the `getDeferBlocks` recursively.\n getDeferBlocks$1(lView[i], deferBlocks);\n }\n }\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Gets all of the `@defer` blocks that are present inside the specified DOM node.\n * @param node Node in which to look for `@defer` blocks.\n *\n * @publicApi\n */\nfunction getDeferBlocks(node) {\n const results = [];\n const lView = getLContext(node)?.lView;\n if (lView) {\n findDeferBlocks(node, lView, results);\n }\n return results;\n}\n/**\n * Finds all the `@defer` blocks inside a specific node and view.\n * @param node Node in which to search for blocks.\n * @param lView View within the node in which to search for blocks.\n * @param results Array to which to add blocks once they're found.\n */\nfunction findDeferBlocks(node, lView, results) {\n const registry = lView[INJECTOR].get(DEHYDRATED_BLOCK_REGISTRY, null, { optional: true });\n const blocks = [];\n getDeferBlocks$1(lView, blocks);\n for (const details of blocks) {\n const native = getNativeByTNode(details.tNode, details.lView);\n const lDetails = getLDeferBlockDetails(details.lView, details.tNode);\n // The LView from `getLContext` might be the view the element is placed in.\n // Filter out defer blocks that aren't inside the specified root node.\n if (!node.contains(native)) {\n continue;\n }\n const tDetails = details.tDetails;\n const renderedLView = getRendererLView(details);\n const rootNodes = [];\n if (renderedLView !== null) {\n collectNativeNodes(renderedLView[TVIEW], renderedLView, renderedLView[TVIEW].firstChild, rootNodes);\n }\n const data = {\n state: stringifyState(lDetails[DEFER_BLOCK_STATE]),\n incrementalHydrationState: inferHydrationState(tDetails, lDetails, registry),\n hasErrorBlock: tDetails.errorTmplIndex !== null,\n loadingBlock: {\n exists: tDetails.loadingTmplIndex !== null,\n minimumTime: tDetails.loadingBlockConfig?.[MINIMUM_SLOT] ?? null,\n afterTime: tDetails.loadingBlockConfig?.[LOADING_AFTER_SLOT] ?? null,\n },\n placeholderBlock: {\n exists: tDetails.placeholderTmplIndex !== null,\n minimumTime: tDetails.placeholderBlockConfig?.[MINIMUM_SLOT] ?? null,\n },\n triggers: tDetails.debug?.triggers ? Array.from(tDetails.debug.triggers).sort() : [],\n rootNodes,\n };\n results.push(data);\n // `getDeferBlocks` does not resolve nested defer blocks so we have to recurse manually.\n if (renderedLView !== null) {\n findDeferBlocks(node, renderedLView, results);\n }\n }\n}\n/**\n * Turns the `DeferBlockState` into a string which is more readable than the enum form.\n *\n * @param lDetails Information about the\n * @returns\n */\nfunction stringifyState(state) {\n switch (state) {\n case DeferBlockState.Complete:\n return 'complete';\n case DeferBlockState.Loading:\n return 'loading';\n case DeferBlockState.Placeholder:\n return 'placeholder';\n case DeferBlockState.Error:\n return 'error';\n case DeferBlockInternalState.Initial:\n return 'initial';\n default:\n throw new Error(`Unrecognized state ${state}`);\n }\n}\n/**\n * Infers the hydration state of a specific defer block.\n * @param tDetails Static defer block information.\n * @param lDetails Instance defer block information.\n * @param registry Registry coordinating the hydration of defer blocks.\n */\nfunction inferHydrationState(tDetails, lDetails, registry) {\n if (registry === null ||\n lDetails[SSR_UNIQUE_ID] === null ||\n tDetails.hydrateTriggers === null ||\n tDetails.hydrateTriggers.has(7 /* DeferBlockTrigger.Never */)) {\n return 'not-configured';\n }\n return registry.has(lDetails[SSR_UNIQUE_ID]) ? 'dehydrated' : 'hydrated';\n}\n/**\n * Gets the current LView that is rendered out in a defer block.\n * @param details Instance information about the block.\n */\nfunction getRendererLView(details) {\n // Defer block containers can only ever contain one view.\n // If they're empty, it means that nothing is rendered.\n if (details.lContainer.length <= CONTAINER_HEADER_OFFSET) {\n return null;\n }\n const lView = details.lContainer[CONTAINER_HEADER_OFFSET];\n ngDevMode && assertLView(lView);\n return lView;\n}\n\n/**\n * Discovers the dependencies of an injectable instance. Provides DI information about each\n * dependency that the injectable was instantiated with, including where they were provided from.\n *\n * @param injector An injector instance\n * @param token a DI token that was constructed by the given injector instance\n * @returns an object that contains the created instance of token as well as all of the dependencies\n * that it was instantiated with OR undefined if the token was not created within the given\n * injector.\n */\nfunction getDependenciesFromInjectable(injector, token) {\n // First we check to see if the token given maps to an actual instance in the injector given.\n // We use `self: true` because we only want to look at the injector we were given.\n // We use `optional: true` because it's possible that the token we were given was never\n // constructed by the injector we were given.\n const instance = injector.get(token, null, { self: true, optional: true });\n if (instance === null) {\n throw new Error(`Unable to determine instance of ${token} in given injector`);\n }\n const unformattedDependencies = getDependenciesForTokenInInjector(token, injector);\n const resolutionPath = getInjectorResolutionPath(injector);\n const dependencies = unformattedDependencies.map((dep) => {\n // injectedIn contains private fields, so we omit it from the response\n const formattedDependency = {\n value: dep.value,\n };\n // convert injection flags to booleans\n const flags = dep.flags;\n formattedDependency.flags = {\n optional: (8 /* InternalInjectFlags.Optional */ & flags) === 8 /* InternalInjectFlags.Optional */,\n host: (1 /* InternalInjectFlags.Host */ & flags) === 1 /* InternalInjectFlags.Host */,\n self: (2 /* InternalInjectFlags.Self */ & flags) === 2 /* InternalInjectFlags.Self */,\n skipSelf: (4 /* InternalInjectFlags.SkipSelf */ & flags) === 4 /* InternalInjectFlags.SkipSelf */,\n };\n // find the injector that provided the dependency\n for (let i = 0; i < resolutionPath.length; i++) {\n const injectorToCheck = resolutionPath[i];\n // if skipSelf is true we skip the first injector\n if (i === 0 && formattedDependency.flags.skipSelf) {\n continue;\n }\n // host only applies to NodeInjectors\n if (formattedDependency.flags.host && injectorToCheck instanceof EnvironmentInjector) {\n break;\n }\n const instance = injectorToCheck.get(dep.token, null, {\n self: true,\n optional: true,\n });\n if (instance !== null) {\n // if host flag is true we double check that we can get the service from the first element\n // in the resolution path by using the host flag. This is done to make sure that we've found\n // the correct providing injector, and not a node injector that is connected to our path via\n // a router outlet.\n if (formattedDependency.flags.host) {\n const firstInjector = resolutionPath[0];\n const lookupFromFirstInjector = firstInjector.get(dep.token, null, {\n ...formattedDependency.flags,\n optional: true,\n });\n if (lookupFromFirstInjector !== null) {\n formattedDependency.providedIn = injectorToCheck;\n }\n break;\n }\n formattedDependency.providedIn = injectorToCheck;\n break;\n }\n // if self is true we stop after the first injector\n if (i === 0 && formattedDependency.flags.self) {\n break;\n }\n }\n if (dep.token)\n formattedDependency.token = dep.token;\n return formattedDependency;\n });\n return { instance, dependencies };\n}\nfunction getDependenciesForTokenInInjector(token, injector) {\n const { resolverToTokenToDependencies } = getFrameworkDIDebugData();\n if (!(injector instanceof NodeInjector)) {\n return resolverToTokenToDependencies.get(injector)?.get?.(token) ?? [];\n }\n const lView = getNodeInjectorLView(injector);\n const tokenDependencyMap = resolverToTokenToDependencies.get(lView);\n const dependencies = tokenDependencyMap?.get(token) ?? [];\n // In the NodeInjector case, all injections for every node are stored in the same lView.\n // We use the injectedIn field of the dependency to filter out the dependencies that\n // do not come from the same node as the instance we're looking at.\n return dependencies.filter((dependency) => {\n const dependencyNode = dependency.injectedIn?.tNode;\n if (dependencyNode === undefined) {\n return false;\n }\n const instanceNode = getNodeInjectorTNode(injector);\n assertTNode(dependencyNode);\n assertTNode(instanceNode);\n return dependencyNode === instanceNode;\n });\n}\n/**\n * Gets the class associated with an injector that contains a provider `imports` array in it's\n * definition\n *\n * For Module Injectors this returns the NgModule constructor.\n *\n * For Standalone injectors this returns the standalone component constructor.\n *\n * @param injector Injector an injector instance\n * @returns the constructor where the `imports` array that configures this injector is located\n */\nfunction getProviderImportsContainer(injector) {\n const { standaloneInjectorToComponent } = getFrameworkDIDebugData();\n // standalone components configure providers through a component def, so we have to\n // use the standalone component associated with this injector if Injector represents\n // a standalone components EnvironmentInjector\n if (standaloneInjectorToComponent.has(injector)) {\n return standaloneInjectorToComponent.get(injector);\n }\n // Module injectors configure providers through their NgModule def, so we use the\n // injector to lookup its NgModuleRef and through that grab its instance\n const defTypeRef = injector.get(NgModuleRef$1, null, { self: true, optional: true });\n // If we can't find an associated imports container, return null.\n // This could be the case if this function is called with an R3Injector that does not represent\n // a standalone component or NgModule.\n if (defTypeRef === null) {\n return null;\n }\n // In standalone applications, the root environment injector created by bootstrapApplication\n // may have no associated \"instance\".\n if (defTypeRef.instance === null) {\n return null;\n }\n return defTypeRef.instance.constructor;\n}\n/**\n * Gets the providers configured on a NodeInjector\n *\n * @param injector A NodeInjector instance\n * @returns ProviderRecord[] an array of objects representing the providers configured on this\n * injector\n */\nfunction getNodeInjectorProviders(injector) {\n const diResolver = getNodeInjectorTNode(injector);\n const { resolverToProviders } = getFrameworkDIDebugData();\n return resolverToProviders.get(diResolver) ?? [];\n}\n/**\n * Gets a mapping of providers configured on an injector to their import paths\n *\n * ModuleA -> imports ModuleB\n * ModuleB -> imports ModuleC\n * ModuleB -> provides MyServiceA\n * ModuleC -> provides MyServiceB\n *\n * getProviderImportPaths(ModuleA)\n * > Map(2) {\n * MyServiceA => [ModuleA, ModuleB]\n * MyServiceB => [ModuleA, ModuleB, ModuleC]\n * }\n *\n * @param providerImportsContainer constructor of class that contains an `imports` array in it's\n * definition\n * @returns A Map object that maps providers to an array of constructors representing it's import\n * path\n *\n */\nfunction getProviderImportPaths(providerImportsContainer) {\n const providerToPath = new Map();\n const visitedContainers = new Set();\n const visitor = walkProviderTreeToDiscoverImportPaths(providerToPath, visitedContainers);\n walkProviderTree(providerImportsContainer, visitor, [], new Set());\n return providerToPath;\n}\n/**\n *\n * Higher order function that returns a visitor for WalkProviderTree\n *\n * Takes in a Map and Set to keep track of the providers and containers\n * visited, so that we can discover the import paths of these providers\n * during the traversal.\n *\n * This visitor takes advantage of the fact that walkProviderTree performs a\n * postorder traversal of the provider tree for the passed in container. Because postorder\n * traversal recursively processes subtrees from leaf nodes until the traversal reaches the root,\n * we write a visitor that constructs provider import paths in reverse.\n *\n *\n * We use the visitedContainers set defined outside this visitor\n * because we want to run some logic only once for\n * each container in the tree. That logic can be described as:\n *\n *\n * 1. for each discovered_provider and discovered_path in the incomplete provider paths we've\n * already discovered\n * 2. get the first container in discovered_path\n * 3. if that first container is in the imports array of the container we're visiting\n * Then the container we're visiting is also in the import path of discovered_provider, so we\n * unshift discovered_path with the container we're currently visiting\n *\n *\n * Example Run:\n * ```\n * ┌──────────┐\n * │containerA│\n * ┌─imports-─┤ ├──imports─┐\n * │ │ provA │ │\n * │ │ provB │ │\n * │ └──────────┘ │\n * │ │\n * ┌▼─────────┐ ┌────────▼─┐\n * │containerB│ │containerC│\n * │ │ │ │\n * │ provD │ │ provF │\n * │ provE │ │ provG │\n * └──────────┘ └──────────┘\n * ```\n *\n * Each step of the traversal,\n *\n * ```\n * visitor(provD, containerB)\n * providerToPath === Map { provD => [containerB] }\n * visitedContainers === Set { containerB }\n *\n * visitor(provE, containerB)\n * providerToPath === Map { provD => [containerB], provE => [containerB] }\n * visitedContainers === Set { containerB }\n *\n * visitor(provF, containerC)\n * providerToPath === Map { provD => [containerB], provE => [containerB], provF => [containerC] }\n * visitedContainers === Set { containerB, containerC }\n *\n * visitor(provG, containerC)\n * providerToPath === Map {\n * provD => [containerB], provE => [containerB], provF => [containerC], provG => [containerC]\n * }\n * visitedContainers === Set { containerB, containerC }\n *\n * visitor(provA, containerA)\n * providerToPath === Map {\n * provD => [containerA, containerB],\n * provE => [containerA, containerB],\n * provF => [containerA, containerC],\n * provG => [containerA, containerC],\n * provA => [containerA]\n * }\n * visitedContainers === Set { containerB, containerC, containerA }\n *\n * visitor(provB, containerA)\n * providerToPath === Map {\n * provD => [containerA, containerB],\n * provE => [containerA, containerB],\n * provF => [containerA, containerC],\n * provG => [containerA, containerC],\n * provA => [containerA]\n * provB => [containerA]\n * }\n * visitedContainers === Set { containerB, containerC, containerA }\n * ```\n *\n * @param providerToPath Map map of providers to paths that this function fills\n * @param visitedContainers Set a set to keep track of the containers we've already visited\n * @return function(provider SingleProvider, container: Type<unknown> | InjectorType<unknown>) =>\n * void\n */\nfunction walkProviderTreeToDiscoverImportPaths(providerToPath, visitedContainers) {\n return (provider, container) => {\n // If the provider is not already in the providerToPath map,\n // add an entry with the provider as the key and an array containing the current container as\n // the value\n if (!providerToPath.has(provider)) {\n providerToPath.set(provider, [container]);\n }\n // This block will run exactly once for each container in the import tree.\n // This is where we run the logic to check the imports array of the current\n // container to see if it's the next container in the path for our currently\n // discovered providers.\n if (!visitedContainers.has(container)) {\n // Iterate through the providers we've already seen\n for (const prov of providerToPath.keys()) {\n const existingImportPath = providerToPath.get(prov);\n let containerDef = getInjectorDef(container);\n if (!containerDef) {\n const ngModule = container.ngModule;\n containerDef = getInjectorDef(ngModule);\n }\n if (!containerDef) {\n return;\n }\n const lastContainerAddedToPath = existingImportPath[0];\n let isNextStepInPath = false;\n deepForEach(containerDef.imports, (moduleImport) => {\n if (isNextStepInPath) {\n return;\n }\n isNextStepInPath =\n moduleImport.ngModule === lastContainerAddedToPath ||\n moduleImport === lastContainerAddedToPath;\n if (isNextStepInPath) {\n providerToPath.get(prov)?.unshift(container);\n }\n });\n }\n }\n visitedContainers.add(container);\n };\n}\n/**\n * Gets the providers configured on an EnvironmentInjector\n *\n * @param injector EnvironmentInjector\n * @returns an array of objects representing the providers of the given injector\n */\nfunction getEnvironmentInjectorProviders(injector) {\n const providerRecordsWithoutImportPaths = getFrameworkDIDebugData().resolverToProviders.get(injector) ?? [];\n // platform injector has no provider imports container so can we skip trying to\n // find import paths\n if (isPlatformInjector(injector)) {\n return providerRecordsWithoutImportPaths;\n }\n const providerImportsContainer = getProviderImportsContainer(injector);\n if (providerImportsContainer === null) {\n // We assume that if an environment injector exists without an associated provider imports\n // container, it was created without such a container. Some examples cases where this could\n // happen:\n // - The root injector of a standalone application\n // - A router injector created by using the providers array in a lazy loaded route\n // - A manually created injector that is attached to the injector tree\n // Since each of these cases has no provider container, there is no concept of import paths,\n // so we can simply return the provider records.\n return providerRecordsWithoutImportPaths;\n }\n const providerToPath = getProviderImportPaths(providerImportsContainer);\n const providerRecords = [];\n for (const providerRecord of providerRecordsWithoutImportPaths) {\n const provider = providerRecord.provider;\n // Ignore these special providers for now until we have a cleaner way of\n // determing when they are provided by the framework vs provided by the user.\n const token = provider.provide;\n if (token === ENVIRONMENT_INITIALIZER || token === INJECTOR_DEF_TYPES) {\n continue;\n }\n let importPath = providerToPath.get(provider) ?? [];\n const def = getComponentDef(providerImportsContainer);\n const isStandaloneComponent = !!def?.standalone;\n // We prepend the component constructor in the standalone case\n // because walkProviderTree does not visit this constructor during it's traversal\n if (isStandaloneComponent) {\n importPath = [providerImportsContainer, ...importPath];\n }\n providerRecords.push({ ...providerRecord, importPath });\n }\n return providerRecords;\n}\nfunction isPlatformInjector(injector) {\n return injector instanceof R3Injector && injector.scopes.has('platform');\n}\n/**\n * Gets the providers configured on an injector.\n *\n * @param injector the injector to lookup the providers of\n * @returns ProviderRecord[] an array of objects representing the providers of the given injector\n */\nfunction getInjectorProviders(injector) {\n if (injector instanceof NodeInjector) {\n return getNodeInjectorProviders(injector);\n }\n else if (injector instanceof EnvironmentInjector) {\n return getEnvironmentInjectorProviders(injector);\n }\n throwError('getInjectorProviders only supports NodeInjector and EnvironmentInjector');\n}\n/**\n *\n * Given an injector, this function will return\n * an object containing the type and source of the injector.\n *\n * | | type | source |\n * |--------------|-------------|-------------------------------------------------------------|\n * | NodeInjector | element | DOM element that created this injector |\n * | R3Injector | environment | `injector.source` |\n * | NullInjector | null | null |\n *\n * @param injector the Injector to get metadata for\n * @returns an object containing the type and source of the given injector. If the injector metadata\n * cannot be determined, returns null.\n */\nfunction getInjectorMetadata(injector) {\n if (injector instanceof NodeInjector) {\n const lView = getNodeInjectorLView(injector);\n const tNode = getNodeInjectorTNode(injector);\n assertTNodeForLView(tNode, lView);\n return { type: 'element', source: getNativeByTNode(tNode, lView) };\n }\n if (injector instanceof R3Injector) {\n return { type: 'environment', source: injector.source ?? null };\n }\n if (injector instanceof NullInjector) {\n return { type: 'null', source: null };\n }\n return null;\n}\nfunction getInjectorResolutionPath(injector) {\n const resolutionPath = [injector];\n getInjectorResolutionPathHelper(injector, resolutionPath);\n return resolutionPath;\n}\nfunction getInjectorResolutionPathHelper(injector, resolutionPath) {\n const parent = getInjectorParent(injector);\n // if getInjectorParent can't find a parent, then we've either reached the end\n // of the path, or we need to move from the Element Injector tree to the\n // module injector tree using the first injector in our path as the connection point.\n if (parent === null) {\n if (injector instanceof NodeInjector) {\n const firstInjector = resolutionPath[0];\n if (firstInjector instanceof NodeInjector) {\n const moduleInjector = getModuleInjectorOfNodeInjector(firstInjector);\n if (moduleInjector === null) {\n throwError('NodeInjector must have some connection to the module injector tree');\n }\n resolutionPath.push(moduleInjector);\n getInjectorResolutionPathHelper(moduleInjector, resolutionPath);\n }\n return resolutionPath;\n }\n }\n else {\n resolutionPath.push(parent);\n getInjectorResolutionPathHelper(parent, resolutionPath);\n }\n return resolutionPath;\n}\n/**\n * Gets the parent of an injector.\n *\n * This function is not able to make the jump from the Element Injector Tree to the Module\n * injector tree. This is because the \"parent\" (the next step in the reoslution path)\n * of a root NodeInjector is dependent on which NodeInjector ancestor initiated\n * the DI lookup. See getInjectorResolutionPath for a function that can make this jump.\n *\n * In the below diagram:\n * ```ts\n * getInjectorParent(NodeInjectorB)\n * > NodeInjectorA\n * getInjectorParent(NodeInjectorA) // or getInjectorParent(getInjectorParent(NodeInjectorB))\n * > null // cannot jump to ModuleInjector tree\n * ```\n *\n * ```\n * ┌───────┐ ┌───────────────────┐\n * ┌───────────┤ModuleA├───Injector────►│EnvironmentInjector│\n * │ └───┬───┘ └───────────────────┘\n * │ │\n * │ bootstraps\n * │ │\n * │ │\n * │ ┌────▼─────┐ ┌─────────────┐\n * declares │ComponentA├────Injector────►│NodeInjectorA│\n * │ └────┬─────┘ └─────▲───────┘\n * │ │ │\n * │ renders parent\n * │ │ │\n * │ ┌────▼─────┐ ┌─────┴───────┐\n * └─────────►│ComponentB├────Injector────►│NodeInjectorB│\n * └──────────┘ └─────────────┘\n *```\n *\n * @param injector an Injector to get the parent of\n * @returns Injector the parent of the given injector\n */\nfunction getInjectorParent(injector) {\n if (injector instanceof R3Injector) {\n const parent = injector.parent;\n if (isRouterOutletInjector(parent)) {\n // This is a special case for a `ChainedInjector` instance, which represents\n // a combination of a Router's `OutletInjector` and an EnvironmentInjector,\n // which represents a `@defer` block. Since the `OutletInjector` doesn't store\n // any tokens itself, we point to the parent injector instead. See the\n // `OutletInjector.__ngOutletInjector` field for additional information.\n return parent.parentInjector;\n }\n return parent;\n }\n let tNode;\n let lView;\n if (injector instanceof NodeInjector) {\n tNode = getNodeInjectorTNode(injector);\n lView = getNodeInjectorLView(injector);\n }\n else if (injector instanceof NullInjector) {\n return null;\n }\n else if (injector instanceof ChainedInjector) {\n return injector.parentInjector;\n }\n else {\n throwError('getInjectorParent only support injectors of type R3Injector, NodeInjector, NullInjector');\n }\n const parentLocation = getParentInjectorLocation(tNode, lView);\n if (hasParentInjector(parentLocation)) {\n const parentInjectorIndex = getParentInjectorIndex(parentLocation);\n const parentLView = getParentInjectorView(parentLocation, lView);\n const parentTView = parentLView[TVIEW];\n const parentTNode = parentTView.data[parentInjectorIndex + 8 /* NodeInjectorOffset.TNODE */];\n return new NodeInjector(parentTNode, parentLView);\n }\n else {\n const chainedInjector = lView[INJECTOR];\n // Case where chainedInjector.injector is an OutletInjector and chainedInjector.injector.parent\n // is a NodeInjector.\n // todo(aleksanderbodurri): ideally nothing in packages/core should deal\n // directly with router concerns. Refactor this so that we can make the jump from\n // NodeInjector -> OutletInjector -> NodeInjector\n // without explicitly relying on types contracts from packages/router\n const injectorParent = chainedInjector.injector?.parent;\n if (injectorParent instanceof NodeInjector) {\n return injectorParent;\n }\n }\n return null;\n}\n/**\n * Gets the module injector of a NodeInjector.\n *\n * @param injector NodeInjector to get module injector of\n * @returns Injector representing module injector of the given NodeInjector\n */\nfunction getModuleInjectorOfNodeInjector(injector) {\n let lView;\n if (injector instanceof NodeInjector) {\n lView = getNodeInjectorLView(injector);\n }\n else {\n throwError('getModuleInjectorOfNodeInjector must be called with a NodeInjector');\n }\n const inj = lView[INJECTOR];\n const moduleInjector = inj instanceof ChainedInjector ? inj.parentInjector : inj.parent;\n if (!moduleInjector) {\n throwError('NodeInjector must have some connection to the module injector tree');\n }\n return moduleInjector;\n}\n\nfunction isComputedNode(node) {\n return node.kind === 'computed';\n}\nfunction isTemplateEffectNode(node) {\n return node.kind === 'template';\n}\nfunction isEffectNode(node) {\n return node.kind === 'effect';\n}\nfunction isSignalNode(node) {\n return node.kind === 'signal';\n}\n/**\n *\n * @param injector\n * @returns Template consumer of given NodeInjector\n */\nfunction getTemplateConsumer(injector) {\n const tNode = getNodeInjectorTNode(injector);\n assertTNode(tNode);\n const lView = getNodeInjectorLView(injector);\n assertLView(lView);\n const templateLView = lView[tNode.index];\n assertLView(templateLView);\n return templateLView[REACTIVE_TEMPLATE_CONSUMER];\n}\nfunction getNodesAndEdgesFromSignalMap(signalMap) {\n const nodes = Array.from(signalMap.keys());\n const debugSignalGraphNodes = [];\n const edges = [];\n for (const [consumer, producers] of signalMap.entries()) {\n const consumerIndex = nodes.indexOf(consumer);\n // collect node\n if (isComputedNode(consumer) || isSignalNode(consumer)) {\n debugSignalGraphNodes.push({\n label: consumer.debugName,\n value: consumer.value,\n kind: consumer.kind,\n });\n }\n else if (isTemplateEffectNode(consumer)) {\n debugSignalGraphNodes.push({\n label: consumer.debugName ?? consumer.lView?.[HOST]?.tagName?.toLowerCase?.(),\n kind: consumer.kind,\n });\n }\n else if (isEffectNode(consumer)) {\n debugSignalGraphNodes.push({\n label: consumer.debugName,\n kind: consumer.kind,\n });\n }\n else {\n debugSignalGraphNodes.push({\n label: consumer.debugName,\n kind: consumer.kind,\n });\n }\n // collect edges for node\n for (const producer of producers) {\n edges.push({ consumer: consumerIndex, producer: nodes.indexOf(producer) });\n }\n }\n return { nodes: debugSignalGraphNodes, edges };\n}\nfunction extractEffectsFromInjector(injector) {\n let diResolver = injector;\n if (injector instanceof NodeInjector) {\n const lView = getNodeInjectorLView(injector);\n diResolver = lView;\n }\n const resolverToEffects = getFrameworkDIDebugData().resolverToEffects;\n const effects = resolverToEffects.get(diResolver) ?? [];\n return effects.map((effect) => effect[SIGNAL$1]);\n}\nfunction extractSignalNodesAndEdgesFromRoots(nodes, signalDependenciesMap = new Map()) {\n for (const node of nodes) {\n if (signalDependenciesMap.has(node)) {\n continue;\n }\n const producerNodes = (node.producerNode ?? []);\n signalDependenciesMap.set(node, producerNodes);\n extractSignalNodesAndEdgesFromRoots(producerNodes, signalDependenciesMap);\n }\n return signalDependenciesMap;\n}\n/**\n * Returns a debug representation of the signal graph for the given injector.\n *\n * Currently only supports element injectors. Starts by discovering the consumer nodes\n * and then traverses their producer nodes to build the signal graph.\n *\n * @param injector The injector to get the signal graph for.\n * @returns A debug representation of the signal graph.\n * @throws If the injector is an environment injector.\n */\nfunction getSignalGraph(injector) {\n let templateConsumer = null;\n if (!(injector instanceof NodeInjector) && !(injector instanceof R3Injector)) {\n return throwError('getSignalGraph must be called with a NodeInjector or R3Injector');\n }\n if (injector instanceof NodeInjector) {\n templateConsumer = getTemplateConsumer(injector);\n }\n const nonTemplateEffectNodes = extractEffectsFromInjector(injector);\n const signalNodes = templateConsumer\n ? [templateConsumer, ...nonTemplateEffectNodes]\n : nonTemplateEffectNodes;\n const signalDependenciesMap = extractSignalNodesAndEdgesFromRoots(signalNodes);\n return getNodesAndEdgesFromSignalMap(signalDependenciesMap);\n}\n\n/**\n * This file introduces series of globally accessible debug tools\n * to allow for the Angular debugging story to function.\n *\n * To see this in action run the following command:\n *\n * bazel run //packages/core/test/bundling/todo:devserver\n *\n * Then load `localhost:5432` and start using the console tools.\n */\n/**\n * This value reflects the property on the window where the dev\n * tools are patched (window.ng).\n * */\nconst GLOBAL_PUBLISH_EXPANDO_KEY = 'ng';\nconst globalUtilsFunctions = {\n /**\n * Warning: functions that start with `ɵ` are considered *INTERNAL* and should not be relied upon\n * in application's code. The contract of those functions might be changed in any release and/or a\n * function can be removed completely.\n */\n 'ɵgetDependenciesFromInjectable': getDependenciesFromInjectable,\n 'ɵgetInjectorProviders': getInjectorProviders,\n 'ɵgetInjectorResolutionPath': getInjectorResolutionPath,\n 'ɵgetInjectorMetadata': getInjectorMetadata,\n 'ɵsetProfiler': setProfiler,\n 'ɵgetSignalGraph': getSignalGraph,\n 'ɵgetDeferBlocks': getDeferBlocks,\n 'getDirectiveMetadata': getDirectiveMetadata$1,\n 'getComponent': getComponent,\n 'getContext': getContext,\n 'getListeners': getListeners,\n 'getOwningComponent': getOwningComponent,\n 'getHostElement': getHostElement,\n 'getInjector': getInjector,\n 'getRootComponents': getRootComponents,\n 'getDirectives': getDirectives,\n 'applyChanges': applyChanges,\n 'isSignal': isSignal,\n};\nlet _published = false;\n/**\n * Publishes a collection of default debug tools onto`window.ng`.\n *\n * These functions are available globally when Angular is in development\n * mode and are automatically stripped away from prod mode is on.\n */\nfunction publishDefaultGlobalUtils$1() {\n if (!_published) {\n _published = true;\n if (typeof window !== 'undefined') {\n // Only configure the injector profiler when running in the browser.\n setupFrameworkInjectorProfiler();\n }\n for (const [methodName, method] of Object.entries(globalUtilsFunctions)) {\n publishGlobalUtil(methodName, method);\n }\n }\n}\n/**\n * Publishes the given function to `window.ng` so that it can be\n * used from the browser console when an application is not in production.\n */\nfunction publishGlobalUtil(name, fn) {\n publishUtil(name, fn);\n}\n/**\n * Publishes the given function to `window.ng` from package other than @angular/core\n * So that it can be used from the browser console when an application is not in production.\n */\nfunction publishExternalGlobalUtil(name, fn) {\n publishUtil(name, fn);\n}\nfunction publishUtil(name, fn) {\n if (typeof COMPILED === 'undefined' || !COMPILED) {\n // Note: we can't export `ng` when using closure enhanced optimization as:\n // - closure declares globals itself for minified names, which sometimes clobber our `ng` global\n // - we can't declare a closure extern as the namespace `ng` is already used within Google\n // for typings for AngularJS (via `goog.provide('ng....')`).\n const w = _global;\n ngDevMode && assertDefined(fn, 'function not defined');\n w[GLOBAL_PUBLISH_EXPANDO_KEY] ??= {};\n w[GLOBAL_PUBLISH_EXPANDO_KEY][name] = fn;\n }\n}\n\n/**\n * Internal injection token that can used to access an instance of a Testability class.\n *\n * This token acts as a bridge between the core bootstrap code and the `Testability` class. This is\n * needed to ensure that there are no direct references to the `Testability` class, so it can be\n * tree-shaken away (if not referenced). For the environments/setups when the `Testability` class\n * should be available, this token is used to add a provider that references the `Testability`\n * class. Otherwise, only this token is retained in a bundle, but the `Testability` class is not.\n */\nconst TESTABILITY = new InjectionToken('');\n/**\n * Internal injection token to retrieve Testability getter class instance.\n */\nconst TESTABILITY_GETTER = new InjectionToken('');\n/**\n * The Testability service provides testing hooks that can be accessed from\n * the browser.\n *\n * Angular applications bootstrapped using an NgModule (via `@NgModule.bootstrap` field) will also\n * instantiate Testability by default (in both development and production modes).\n *\n * For applications bootstrapped using the `bootstrapApplication` function, Testability is not\n * included by default. You can include it into your applications by getting the list of necessary\n * providers using the `provideProtractorTestingSupport()` function and adding them into the\n * `options.providers` array. Example:\n *\n * ```ts\n * import {provideProtractorTestingSupport} from '@angular/platform-browser';\n *\n * await bootstrapApplication(RootComponent, providers: [provideProtractorTestingSupport()]);\n * ```\n *\n * @publicApi\n */\nclass Testability {\n _ngZone;\n registry;\n _isZoneStable = true;\n _callbacks = [];\n taskTrackingZone = null;\n constructor(_ngZone, registry, testabilityGetter) {\n this._ngZone = _ngZone;\n this.registry = registry;\n // If there was no Testability logic registered in the global scope\n // before, register the current testability getter as a global one.\n if (!_testabilityGetter) {\n setTestabilityGetter(testabilityGetter);\n testabilityGetter.addToWindow(registry);\n }\n this._watchAngularEvents();\n _ngZone.run(() => {\n this.taskTrackingZone =\n typeof Zone == 'undefined' ? null : Zone.current.get('TaskTrackingZone');\n });\n }\n _watchAngularEvents() {\n this._ngZone.onUnstable.subscribe({\n next: () => {\n this._isZoneStable = false;\n },\n });\n this._ngZone.runOutsideAngular(() => {\n this._ngZone.onStable.subscribe({\n next: () => {\n NgZone.assertNotInAngularZone();\n queueMicrotask(() => {\n this._isZoneStable = true;\n this._runCallbacksIfReady();\n });\n },\n });\n });\n }\n /**\n * Whether an associated application is stable\n */\n isStable() {\n return this._isZoneStable && !this._ngZone.hasPendingMacrotasks;\n }\n _runCallbacksIfReady() {\n if (this.isStable()) {\n // Schedules the call backs in a new frame so that it is always async.\n queueMicrotask(() => {\n while (this._callbacks.length !== 0) {\n let cb = this._callbacks.pop();\n clearTimeout(cb.timeoutId);\n cb.doneCb();\n }\n });\n }\n else {\n // Still not stable, send updates.\n let pending = this.getPendingTasks();\n this._callbacks = this._callbacks.filter((cb) => {\n if (cb.updateCb && cb.updateCb(pending)) {\n clearTimeout(cb.timeoutId);\n return false;\n }\n return true;\n });\n }\n }\n getPendingTasks() {\n if (!this.taskTrackingZone) {\n return [];\n }\n // Copy the tasks data so that we don't leak tasks.\n return this.taskTrackingZone.macroTasks.map((t) => {\n return {\n source: t.source,\n // From TaskTrackingZone:\n // https://github.com/angular/zone.js/blob/master/lib/zone-spec/task-tracking.ts#L40\n creationLocation: t.creationLocation,\n data: t.data,\n };\n });\n }\n addCallback(cb, timeout, updateCb) {\n let timeoutId = -1;\n if (timeout && timeout > 0) {\n timeoutId = setTimeout(() => {\n this._callbacks = this._callbacks.filter((cb) => cb.timeoutId !== timeoutId);\n cb();\n }, timeout);\n }\n this._callbacks.push({ doneCb: cb, timeoutId: timeoutId, updateCb: updateCb });\n }\n /**\n * Wait for the application to be stable with a timeout. If the timeout is reached before that\n * happens, the callback receives a list of the macro tasks that were pending, otherwise null.\n *\n * @param doneCb The callback to invoke when Angular is stable or the timeout expires\n * whichever comes first.\n * @param timeout Optional. The maximum time to wait for Angular to become stable. If not\n * specified, whenStable() will wait forever.\n * @param updateCb Optional. If specified, this callback will be invoked whenever the set of\n * pending macrotasks changes. If this callback returns true doneCb will not be invoked\n * and no further updates will be issued.\n */\n whenStable(doneCb, timeout, updateCb) {\n if (updateCb && !this.taskTrackingZone) {\n throw new Error('Task tracking zone is required when passing an update callback to ' +\n 'whenStable(). Is \"zone.js/plugins/task-tracking\" loaded?');\n }\n this.addCallback(doneCb, timeout, updateCb);\n this._runCallbacksIfReady();\n }\n /**\n * Registers an application with a testability hook so that it can be tracked.\n * @param token token of application, root element\n *\n * @internal\n */\n registerApplication(token) {\n this.registry.registerApplication(token, this);\n }\n /**\n * Unregisters an application.\n * @param token token of application, root element\n *\n * @internal\n */\n unregisterApplication(token) {\n this.registry.unregisterApplication(token);\n }\n /**\n * Find providers by name\n * @param using The root element to search from\n * @param provider The name of binding variable\n * @param exactMatch Whether using exactMatch\n */\n findProviders(using, provider, exactMatch) {\n // TODO(juliemr): implement.\n return [];\n }\n static ɵfac = function Testability_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Testability)(ɵɵinject(NgZone), ɵɵinject(TestabilityRegistry), ɵɵinject(TESTABILITY_GETTER)); };\n static ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Testability, factory: Testability.ɵfac });\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(Testability, [{\n type: Injectable\n }], () => [{ type: NgZone }, { type: TestabilityRegistry }, { type: undefined, decorators: [{\n type: Inject,\n args: [TESTABILITY_GETTER]\n }] }], null); })();\n/**\n * A global registry of {@link Testability} instances for specific elements.\n * @publicApi\n */\nclass TestabilityRegistry {\n /** @internal */\n _applications = new Map();\n /**\n * Registers an application with a testability hook so that it can be tracked\n * @param token token of application, root element\n * @param testability Testability hook\n */\n registerApplication(token, testability) {\n this._applications.set(token, testability);\n }\n /**\n * Unregisters an application.\n * @param token token of application, root element\n */\n unregisterApplication(token) {\n this._applications.delete(token);\n }\n /**\n * Unregisters all applications\n */\n unregisterAllApplications() {\n this._applications.clear();\n }\n /**\n * Get a testability hook associated with the application\n * @param elem root element\n */\n getTestability(elem) {\n return this._applications.get(elem) || null;\n }\n /**\n * Get all registered testabilities\n */\n getAllTestabilities() {\n return Array.from(this._applications.values());\n }\n /**\n * Get all registered applications(root elements)\n */\n getAllRootElements() {\n return Array.from(this._applications.keys());\n }\n /**\n * Find testability of a node in the Tree\n * @param elem node\n * @param findInAncestors whether finding testability in ancestors if testability was not found in\n * current node\n */\n findTestabilityInTree(elem, findInAncestors = true) {\n return _testabilityGetter?.findTestabilityInTree(this, elem, findInAncestors) ?? null;\n }\n static ɵfac = function TestabilityRegistry_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TestabilityRegistry)(); };\n static ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: TestabilityRegistry, factory: TestabilityRegistry.ɵfac, providedIn: 'platform' });\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(TestabilityRegistry, [{\n type: Injectable,\n args: [{ providedIn: 'platform' }]\n }], null, null); })();\n/**\n * Set the {@link GetTestability} implementation used by the Angular testing framework.\n * @publicApi\n */\nfunction setTestabilityGetter(getter) {\n _testabilityGetter = getter;\n}\nlet _testabilityGetter;\n\n/**\n * Determine if the argument is shaped like a Promise\n */\nfunction isPromise(obj) {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return !!obj && typeof obj.then === 'function';\n}\n/**\n * Determine if the argument is a Subscribable\n */\nfunction isSubscribable(obj) {\n return !!obj && typeof obj.subscribe === 'function';\n}\n\n/**\n * A DI token that you can use to provide\n * one or more initialization functions.\n *\n * The provided functions are injected at application startup and executed during\n * app initialization. If any of these functions returns a Promise or an Observable, initialization\n * does not complete until the Promise is resolved or the Observable is completed.\n *\n * You can, for example, create a factory function that loads language data\n * or an external configuration, and provide that function to the `APP_INITIALIZER` token.\n * The function is executed during the application bootstrap process,\n * and the needed data is available on startup.\n *\n * Note that the provided initializer is run in the injection context.\n *\n * @deprecated from v19.0.0, use provideAppInitializer instead\n *\n * @see {@link ApplicationInitStatus}\n * @see {@link provideAppInitializer}\n *\n * @usageNotes\n *\n * The following example illustrates how to configure a multi-provider using `APP_INITIALIZER` token\n * and a function returning a promise.\n * ### Example with NgModule-based application\n * ```ts\n * function initializeApp(): Promise<any> {\n * const http = inject(HttpClient);\n * return firstValueFrom(\n * http\n * .get(\"https://someUrl.com/api/user\")\n * .pipe(tap(user => { ... }))\n * );\n * }\n *\n * @NgModule({\n * imports: [BrowserModule],\n * declarations: [AppComponent],\n * bootstrap: [AppComponent],\n * providers: [{\n * provide: APP_INITIALIZER,\n * useValue: initializeApp,\n * multi: true,\n * }]\n * })\n * export class AppModule {}\n * ```\n *\n * ### Example with standalone application\n * ```ts\n * function initializeApp() {\n * const http = inject(HttpClient);\n * return firstValueFrom(\n * http\n * .get(\"https://someUrl.com/api/user\")\n * .pipe(tap(user => { ... }))\n * );\n * }\n *\n * bootstrapApplication(App, {\n * providers: [\n * provideHttpClient(),\n * {\n * provide: APP_INITIALIZER,\n * useValue: initializeApp,\n * multi: true,\n * },\n * ],\n * });\n\n * ```\n *\n *\n * It's also possible to configure a multi-provider using `APP_INITIALIZER` token and a function\n * returning an observable, see an example below. Note: the `HttpClient` in this example is used for\n * demo purposes to illustrate how the factory function can work with other providers available\n * through DI.\n *\n * ### Example with NgModule-based application\n * ```ts\n * function initializeApp() {\n * const http = inject(HttpClient);\n * return firstValueFrom(\n * http\n * .get(\"https://someUrl.com/api/user\")\n * .pipe(tap(user => { ... }))\n * );\n * }\n *\n * @NgModule({\n * imports: [BrowserModule, HttpClientModule],\n * declarations: [AppComponent],\n * bootstrap: [AppComponent],\n * providers: [{\n * provide: APP_INITIALIZER,\n * useValue: initializeApp,\n * multi: true,\n * }]\n * })\n * export class AppModule {}\n * ```\n *\n * ### Example with standalone application\n * ```ts\n * function initializeApp() {\n * const http = inject(HttpClient);\n * return firstValueFrom(\n * http\n * .get(\"https://someUrl.com/api/user\")\n * .pipe(tap(user => { ... }))\n * );\n * }\n *\n * bootstrapApplication(App, {\n * providers: [\n * provideHttpClient(),\n * {\n * provide: APP_INITIALIZER,\n * useValue: initializeApp,\n * multi: true,\n * },\n * ],\n * });\n * ```\n *\n * @publicApi\n */\nconst APP_INITIALIZER = new InjectionToken(ngDevMode ? 'Application Initializer' : '');\n/**\n * @description\n * The provided function is injected at application startup and executed during\n * app initialization. If the function returns a Promise or an Observable, initialization\n * does not complete until the Promise is resolved or the Observable is completed.\n *\n * You can, for example, create a function that loads language data\n * or an external configuration, and provide that function using `provideAppInitializer()`.\n * The function is executed during the application bootstrap process,\n * and the needed data is available on startup.\n *\n * Note that the provided initializer is run in the injection context.\n *\n * Previously, this was achieved using the `APP_INITIALIZER` token which is now deprecated.\n *\n * @see {@link APP_INITIALIZER}\n *\n * @usageNotes\n * The following example illustrates how to configure an initialization function using\n * `provideAppInitializer()`\n * ```ts\n * bootstrapApplication(App, {\n * providers: [\n * provideAppInitializer(() => {\n * const http = inject(HttpClient);\n * return firstValueFrom(\n * http\n * .get(\"https://someUrl.com/api/user\")\n * .pipe(tap(user => { ... }))\n * );\n * }),\n * provideHttpClient(),\n * ],\n * });\n * ```\n *\n * @publicApi\n */\nfunction provideAppInitializer(initializerFn) {\n return makeEnvironmentProviders([\n {\n provide: APP_INITIALIZER,\n multi: true,\n useValue: initializerFn,\n },\n ]);\n}\n/**\n * A class that reflects the state of running {@link APP_INITIALIZER} functions.\n *\n * @publicApi\n */\nclass ApplicationInitStatus {\n // Using non null assertion, these fields are defined below\n // within the `new Promise` callback (synchronously).\n resolve;\n reject;\n initialized = false;\n done = false;\n donePromise = new Promise((res, rej) => {\n this.resolve = res;\n this.reject = rej;\n });\n appInits = inject(APP_INITIALIZER, { optional: true }) ?? [];\n injector = inject(Injector);\n constructor() {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !Array.isArray(this.appInits)) {\n throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `APP_INITIALIZER` token value ' +\n `(expected an array, but got ${typeof this.appInits}). ` +\n 'Please check that the `APP_INITIALIZER` token is configured as a ' +\n '`multi: true` provider.');\n }\n }\n /** @internal */\n runInitializers() {\n if (this.initialized) {\n return;\n }\n const asyncInitPromises = [];\n for (const appInits of this.appInits) {\n const initResult = runInInjectionContext(this.injector, appInits);\n if (isPromise(initResult)) {\n asyncInitPromises.push(initResult);\n }\n else if (isSubscribable(initResult)) {\n const observableAsPromise = new Promise((resolve, reject) => {\n initResult.subscribe({ complete: resolve, error: reject });\n });\n asyncInitPromises.push(observableAsPromise);\n }\n }\n const complete = () => {\n // @ts-expect-error overwriting a readonly\n this.done = true;\n this.resolve();\n };\n Promise.all(asyncInitPromises)\n .then(() => {\n complete();\n })\n .catch((e) => {\n this.reject(e);\n });\n if (asyncInitPromises.length === 0) {\n complete();\n }\n this.initialized = true;\n }\n static ɵfac = function ApplicationInitStatus_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ApplicationInitStatus)(); };\n static ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ApplicationInitStatus, factory: ApplicationInitStatus.ɵfac, providedIn: 'root' });\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationInitStatus, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], () => [], null); })();\n\n/**\n * A scheduler which manages the execution of effects.\n */\nclass EffectScheduler {\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: EffectScheduler,\n providedIn: 'root',\n factory: () => new ZoneAwareEffectScheduler(),\n });\n}\n/**\n * A wrapper around `ZoneAwareQueueingScheduler` that schedules flushing via the microtask queue\n * when.\n */\nclass ZoneAwareEffectScheduler {\n queuedEffectCount = 0;\n queues = new Map();\n schedule(handle) {\n this.enqueue(handle);\n }\n remove(handle) {\n const zone = handle.zone;\n const queue = this.queues.get(zone);\n if (!queue.has(handle)) {\n return;\n }\n queue.delete(handle);\n this.queuedEffectCount--;\n }\n enqueue(handle) {\n const zone = handle.zone;\n if (!this.queues.has(zone)) {\n this.queues.set(zone, new Set());\n }\n const queue = this.queues.get(zone);\n if (queue.has(handle)) {\n return;\n }\n this.queuedEffectCount++;\n queue.add(handle);\n }\n /**\n * Run all scheduled effects.\n *\n * Execution order of effects within the same zone is guaranteed to be FIFO, but there is no\n * ordering guarantee between effects scheduled in different zones.\n */\n flush() {\n while (this.queuedEffectCount > 0) {\n for (const [zone, queue] of this.queues) {\n // `zone` here must be defined.\n if (zone === null) {\n this.flushQueue(queue);\n }\n else {\n zone.run(() => this.flushQueue(queue));\n }\n }\n }\n }\n flushQueue(queue) {\n for (const handle of queue) {\n queue.delete(handle);\n this.queuedEffectCount--;\n // TODO: what happens if this throws an error?\n handle.run();\n }\n }\n}\n\n/**\n * A DI token that provides a set of callbacks to\n * be called for every component that is bootstrapped.\n *\n * Each callback must take a `ComponentRef` instance and return nothing.\n *\n * `(componentRef: ComponentRef) => void`\n *\n * @publicApi\n */\nconst APP_BOOTSTRAP_LISTENER = new InjectionToken(ngDevMode ? 'appBootstrapListener' : '');\nfunction publishDefaultGlobalUtils() {\n ngDevMode && publishDefaultGlobalUtils$1();\n}\n/**\n * Sets the error for an invalid write to a signal to be an Angular `RuntimeError`.\n */\nfunction publishSignalConfiguration() {\n setThrowInvalidWriteToSignalError$1(() => {\n throw new RuntimeError(600 /* RuntimeErrorCode.SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT */, ngDevMode && 'Writing to signals is not allowed in a `computed`.');\n });\n}\nfunction isBoundToModule(cf) {\n return cf.isBoundToModule;\n}\n/**\n * A token for third-party components that can register themselves with NgProbe.\n *\n * @deprecated\n * @publicApi\n */\nclass NgProbeToken {\n name;\n token;\n constructor(name, token) {\n this.name = name;\n this.token = token;\n }\n}\n/** Maximum number of times ApplicationRef will refresh all attached views in a single tick. */\nconst MAXIMUM_REFRESH_RERUNS = 10;\nfunction _callAndReportToErrorHandler(errorHandler, ngZone, callback) {\n try {\n const result = callback();\n if (isPromise(result)) {\n return result.catch((e) => {\n ngZone.runOutsideAngular(() => errorHandler.handleError(e));\n // rethrow as the exception handler might not do it\n throw e;\n });\n }\n return result;\n }\n catch (e) {\n ngZone.runOutsideAngular(() => errorHandler.handleError(e));\n // rethrow as the exception handler might not do it\n throw e;\n }\n}\nfunction optionsReducer(dst, objs) {\n if (Array.isArray(objs)) {\n return objs.reduce(optionsReducer, dst);\n }\n return { ...dst, ...objs };\n}\n/**\n * A reference to an Angular application running on a page.\n *\n * @usageNotes\n * {@a is-stable-examples}\n * ### isStable examples and caveats\n *\n * Note two important points about `isStable`, demonstrated in the examples below:\n * - the application will never be stable if you start any kind\n * of recurrent asynchronous task when the application starts\n * (for example for a polling process, started with a `setInterval`, a `setTimeout`\n * or using RxJS operators like `interval`);\n * - the `isStable` Observable runs outside of the Angular zone.\n *\n * Let's imagine that you start a recurrent task\n * (here incrementing a counter, using RxJS `interval`),\n * and at the same time subscribe to `isStable`.\n *\n * ```ts\n * constructor(appRef: ApplicationRef) {\n * appRef.isStable.pipe(\n * filter(stable => stable)\n * ).subscribe(() => console.log('App is stable now');\n * interval(1000).subscribe(counter => console.log(counter));\n * }\n * ```\n * In this example, `isStable` will never emit `true`,\n * and the trace \"App is stable now\" will never get logged.\n *\n * If you want to execute something when the app is stable,\n * you have to wait for the application to be stable\n * before starting your polling process.\n *\n * ```ts\n * constructor(appRef: ApplicationRef) {\n * appRef.isStable.pipe(\n * first(stable => stable),\n * tap(stable => console.log('App is stable now')),\n * switchMap(() => interval(1000))\n * ).subscribe(counter => console.log(counter));\n * }\n * ```\n * In this example, the trace \"App is stable now\" will be logged\n * and then the counter starts incrementing every second.\n *\n * Note also that this Observable runs outside of the Angular zone,\n * which means that the code in the subscription\n * to this Observable will not trigger the change detection.\n *\n * Let's imagine that instead of logging the counter value,\n * you update a field of your component\n * and display it in its template.\n *\n * ```ts\n * constructor(appRef: ApplicationRef) {\n * appRef.isStable.pipe(\n * first(stable => stable),\n * switchMap(() => interval(1000))\n * ).subscribe(counter => this.value = counter);\n * }\n * ```\n * As the `isStable` Observable runs outside the zone,\n * the `value` field will be updated properly,\n * but the template will not be refreshed!\n *\n * You'll have to manually trigger the change detection to update the template.\n *\n * ```ts\n * constructor(appRef: ApplicationRef, cd: ChangeDetectorRef) {\n * appRef.isStable.pipe(\n * first(stable => stable),\n * switchMap(() => interval(1000))\n * ).subscribe(counter => {\n * this.value = counter;\n * cd.detectChanges();\n * });\n * }\n * ```\n *\n * Or make the subscription callback run inside the zone.\n *\n * ```ts\n * constructor(appRef: ApplicationRef, zone: NgZone) {\n * appRef.isStable.pipe(\n * first(stable => stable),\n * switchMap(() => interval(1000))\n * ).subscribe(counter => zone.run(() => this.value = counter));\n * }\n * ```\n *\n * @publicApi\n */\nclass ApplicationRef {\n /** @internal */\n _runningTick = false;\n _destroyed = false;\n _destroyListeners = [];\n /** @internal */\n _views = [];\n internalErrorHandler = inject(INTERNAL_APPLICATION_ERROR_HANDLER);\n afterRenderManager = inject(AfterRenderManager);\n zonelessEnabled = inject(ZONELESS_ENABLED);\n rootEffectScheduler = inject(EffectScheduler);\n /**\n * Current dirty state of the application across a number of dimensions (views, afterRender hooks,\n * etc).\n *\n * A flag set here means that `tick()` will attempt to resolve the dirtiness when executed.\n *\n * @internal\n */\n dirtyFlags = 0 /* ApplicationRefDirtyFlags.None */;\n /**\n * Like `dirtyFlags` but don't cause `tick()` to loop.\n *\n * @internal\n */\n deferredDirtyFlags = 0 /* ApplicationRefDirtyFlags.None */;\n /**\n * Most recent snapshot from the `TracingService`, if any.\n *\n * This snapshot attempts to capture the context when `tick()` was first\n * scheduled. It then runs wrapped in this context.\n *\n * @internal\n */\n tracingSnapshot = null;\n // Needed for ComponentFixture temporarily during migration of autoDetect behavior\n // Eventually the hostView of the fixture should just attach to ApplicationRef.\n externalTestViews = new Set();\n /** @internal */\n afterTick = new Subject();\n /** @internal */\n get allViews() {\n return [...this.externalTestViews.keys(), ...this._views];\n }\n /**\n * Indicates whether this instance was destroyed.\n */\n get destroyed() {\n return this._destroyed;\n }\n /**\n * Get a list of component types registered to this application.\n * This list is populated even before the component is created.\n */\n componentTypes = [];\n /**\n * Get a list of components registered to this application.\n */\n components = [];\n /**\n * Returns an Observable that indicates when the application is stable or unstable.\n */\n isStable = inject(PendingTasksInternal).hasPendingTasks.pipe(map((pending) => !pending));\n constructor() {\n // Inject the tracing service to initialize it.\n inject(TracingService, { optional: true });\n }\n /**\n * @returns A promise that resolves when the application becomes stable\n */\n whenStable() {\n let subscription;\n return new Promise((resolve) => {\n subscription = this.isStable.subscribe({\n next: (stable) => {\n if (stable) {\n resolve();\n }\n },\n });\n }).finally(() => {\n subscription.unsubscribe();\n });\n }\n _injector = inject(EnvironmentInjector);\n _rendererFactory = null;\n /**\n * The `EnvironmentInjector` used to create this application.\n */\n get injector() {\n return this._injector;\n }\n /**\n * Bootstrap a component onto the element identified by its selector or, optionally, to a\n * specified element.\n *\n * @usageNotes\n * ### Bootstrap process\n *\n * When bootstrapping a component, Angular mounts it onto a target DOM element\n * and kicks off automatic change detection. The target DOM element can be\n * provided using the `rootSelectorOrNode` argument.\n *\n * If the target DOM element is not provided, Angular tries to find one on a page\n * using the `selector` of the component that is being bootstrapped\n * (first matched element is used).\n *\n * ### Example\n *\n * Generally, we define the component to bootstrap in the `bootstrap` array of `NgModule`,\n * but it requires us to know the component while writing the application code.\n *\n * Imagine a situation where we have to wait for an API call to decide about the component to\n * bootstrap. We can use the `ngDoBootstrap` hook of the `NgModule` and call this method to\n * dynamically bootstrap a component.\n *\n * {@example core/ts/platform/platform.ts region='componentSelector'}\n *\n * Optionally, a component can be mounted onto a DOM element that does not match the\n * selector of the bootstrapped component.\n *\n * In the following example, we are providing a CSS selector to match the target element.\n *\n * {@example core/ts/platform/platform.ts region='cssSelector'}\n *\n * While in this example, we are providing reference to a DOM node.\n *\n * {@example core/ts/platform/platform.ts region='domNode'}\n */\n bootstrap(componentOrFactory, rootSelectorOrNode) {\n (typeof ngDevMode === 'undefined' || ngDevMode) && warnIfDestroyed(this._destroyed);\n const isComponentFactory = componentOrFactory instanceof ComponentFactory$1;\n const initStatus = this._injector.get(ApplicationInitStatus);\n if (!initStatus.done) {\n const standalone = !isComponentFactory && isStandalone(componentOrFactory);\n const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'Cannot bootstrap as there are still asynchronous initializers running.' +\n (standalone\n ? ''\n : ' Bootstrap components in the `ngDoBootstrap` method of the root module.');\n throw new RuntimeError(405 /* RuntimeErrorCode.ASYNC_INITIALIZERS_STILL_RUNNING */, errorMessage);\n }\n let componentFactory;\n if (isComponentFactory) {\n componentFactory = componentOrFactory;\n }\n else {\n const resolver = this._injector.get(ComponentFactoryResolver$1);\n componentFactory = resolver.resolveComponentFactory(componentOrFactory);\n }\n this.componentTypes.push(componentFactory.componentType);\n // Create a factory associated with the current module if it's not bound to some other\n const ngModule = isBoundToModule(componentFactory)\n ? undefined\n : this._injector.get(NgModuleRef$1);\n const selectorOrNode = rootSelectorOrNode || componentFactory.selector;\n const compRef = componentFactory.create(Injector.NULL, [], selectorOrNode, ngModule);\n const nativeElement = compRef.location.nativeElement;\n const testability = compRef.injector.get(TESTABILITY, null);\n testability?.registerApplication(nativeElement);\n compRef.onDestroy(() => {\n this.detachView(compRef.hostView);\n remove(this.components, compRef);\n testability?.unregisterApplication(nativeElement);\n });\n this._loadComponent(compRef);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const _console = this._injector.get(Console);\n _console.log(`Angular is running in development mode.`);\n }\n return compRef;\n }\n /**\n * Invoke this method to explicitly process change detection and its side-effects.\n *\n * In development mode, `tick()` also performs a second change detection cycle to ensure that no\n * further changes are detected. If additional changes are picked up during this second cycle,\n * bindings in the app have side-effects that cannot be resolved in a single change detection\n * pass.\n * In this case, Angular throws an error, since an Angular application can only have one change\n * detection pass during which all change detection must complete.\n */\n tick() {\n if (!this.zonelessEnabled) {\n this.dirtyFlags |= 1 /* ApplicationRefDirtyFlags.ViewTreeGlobal */;\n }\n this._tick();\n }\n /** @internal */\n _tick = () => {\n if (this.tracingSnapshot !== null) {\n const snapshot = this.tracingSnapshot;\n this.tracingSnapshot = null;\n // Ensure we always run `_tick()` in the context of the most recent snapshot,\n // if one exists. Snapshots may be reference counted by the implementation so\n // we want to ensure that if we request a snapshot that we use it.\n snapshot.run(TracingAction.CHANGE_DETECTION, this._tick);\n snapshot.dispose();\n return;\n }\n (typeof ngDevMode === 'undefined' || ngDevMode) && warnIfDestroyed(this._destroyed);\n if (this._runningTick) {\n throw new RuntimeError(101 /* RuntimeErrorCode.RECURSIVE_APPLICATION_REF_TICK */, ngDevMode && 'ApplicationRef.tick is called recursively');\n }\n const prevConsumer = setActiveConsumer$1(null);\n try {\n this._runningTick = true;\n this.synchronize();\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n for (let view of this.allViews) {\n view.checkNoChanges();\n }\n }\n }\n catch (e) {\n // Attention: Don't rethrow as it could cancel subscriptions to Observables!\n this.internalErrorHandler(e);\n }\n finally {\n this._runningTick = false;\n setActiveConsumer$1(prevConsumer);\n this.afterTick.next();\n }\n };\n /**\n * Performs the core work of synchronizing the application state with the UI, resolving any\n * pending dirtiness (potentially in a loop).\n */\n synchronize() {\n if (this._rendererFactory === null && !this._injector.destroyed) {\n this._rendererFactory = this._injector.get(RendererFactory2, null, { optional: true });\n }\n // When beginning synchronization, all deferred dirtiness becomes active dirtiness.\n this.dirtyFlags |= this.deferredDirtyFlags;\n this.deferredDirtyFlags = 0 /* ApplicationRefDirtyFlags.None */;\n let runs = 0;\n while (this.dirtyFlags !== 0 /* ApplicationRefDirtyFlags.None */ && runs++ < MAXIMUM_REFRESH_RERUNS) {\n this.synchronizeOnce();\n }\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && runs >= MAXIMUM_REFRESH_RERUNS) {\n throw new RuntimeError(103 /* RuntimeErrorCode.INFINITE_CHANGE_DETECTION */, ngDevMode &&\n 'Infinite change detection while refreshing application views. ' +\n 'Ensure views are not calling `markForCheck` on every template execution or ' +\n 'that afterRender hooks always mark views for check.');\n }\n }\n /**\n * Perform a single synchronization pass.\n */\n synchronizeOnce() {\n // If we happened to loop, deferred dirtiness can be processed as active dirtiness again.\n this.dirtyFlags |= this.deferredDirtyFlags;\n this.deferredDirtyFlags = 0 /* ApplicationRefDirtyFlags.None */;\n // First, process any dirty root effects.\n if (this.dirtyFlags & 16 /* ApplicationRefDirtyFlags.RootEffects */) {\n this.dirtyFlags &= ~16 /* ApplicationRefDirtyFlags.RootEffects */;\n this.rootEffectScheduler.flush();\n }\n // First check dirty views, if there are any.\n if (this.dirtyFlags & 7 /* ApplicationRefDirtyFlags.ViewTreeAny */) {\n // Change detection on views starts in targeted mode (only check components if they're\n // marked as dirty) unless global checking is specifically requested via APIs like\n // `ApplicationRef.tick()` and the `NgZone` integration.\n const useGlobalCheck = Boolean(this.dirtyFlags & 1 /* ApplicationRefDirtyFlags.ViewTreeGlobal */);\n // Clear the view-related dirty flags.\n this.dirtyFlags &= ~7 /* ApplicationRefDirtyFlags.ViewTreeAny */;\n // Set the AfterRender bit, as we're checking views and will need to run afterRender hooks.\n this.dirtyFlags |= 8 /* ApplicationRefDirtyFlags.AfterRender */;\n // Check all potentially dirty views.\n for (let { _lView, notifyErrorHandler } of this.allViews) {\n detectChangesInViewIfRequired(_lView, notifyErrorHandler, useGlobalCheck, this.zonelessEnabled);\n }\n // If `markForCheck()` was called during view checking, it will have set the `ViewTreeCheck`\n // flag. We clear the flag here because, for backwards compatibility, `markForCheck()`\n // during view checking doesn't cause the view to be re-checked.\n this.dirtyFlags &= ~4 /* ApplicationRefDirtyFlags.ViewTreeCheck */;\n // Check if any views are still dirty after checking and we need to loop back.\n this.syncDirtyFlagsWithViews();\n if (this.dirtyFlags &\n (7 /* ApplicationRefDirtyFlags.ViewTreeAny */ | 16 /* ApplicationRefDirtyFlags.RootEffects */)) {\n // If any views or effects are still dirty after checking, loop back before running render\n // hooks.\n return;\n }\n }\n else {\n // If we skipped refreshing views above, there might still be unflushed animations\n // because we never called `detectChangesInternal` on the views.\n this._rendererFactory?.begin?.();\n this._rendererFactory?.end?.();\n }\n // Even if there were no dirty views, afterRender hooks might still be dirty.\n if (this.dirtyFlags & 8 /* ApplicationRefDirtyFlags.AfterRender */) {\n this.dirtyFlags &= ~8 /* ApplicationRefDirtyFlags.AfterRender */;\n this.afterRenderManager.execute();\n // afterRender hooks might influence dirty flags.\n }\n this.syncDirtyFlagsWithViews();\n }\n /**\n * Checks `allViews` for views which require refresh/traversal, and updates `dirtyFlags`\n * accordingly, with two potential behaviors:\n *\n * 1. If any of our views require updating, then this adds the `ViewTreeTraversal` dirty flag.\n * This _should_ be a no-op, since the scheduler should've added the flag at the same time the\n * view was marked as needing updating.\n *\n * TODO(alxhub): figure out if this behavior is still needed for edge cases.\n *\n * 2. If none of our views require updating, then clear the view-related `dirtyFlag`s. This\n * happens when the scheduler is notified of a view becoming dirty, but the view itself isn't\n * reachable through traversal from our roots (e.g. it's detached from the CD tree).\n */\n syncDirtyFlagsWithViews() {\n if (this.allViews.some(({ _lView }) => requiresRefreshOrTraversal(_lView))) {\n // If after running all afterRender callbacks new views are dirty, ensure we loop back.\n this.dirtyFlags |= 2 /* ApplicationRefDirtyFlags.ViewTreeTraversal */;\n return;\n }\n else {\n // Even though this flag may be set, none of _our_ views require traversal, and so the\n // `ApplicationRef` doesn't require any repeated checking.\n this.dirtyFlags &= ~7 /* ApplicationRefDirtyFlags.ViewTreeAny */;\n }\n }\n /**\n * Attaches a view so that it will be dirty checked.\n * The view will be automatically detached when it is destroyed.\n * This will throw if the view is already attached to a ViewContainer.\n */\n attachView(viewRef) {\n (typeof ngDevMode === 'undefined' || ngDevMode) && warnIfDestroyed(this._destroyed);\n const view = viewRef;\n this._views.push(view);\n view.attachToAppRef(this);\n }\n /**\n * Detaches a view from dirty checking again.\n */\n detachView(viewRef) {\n (typeof ngDevMode === 'undefined' || ngDevMode) && warnIfDestroyed(this._destroyed);\n const view = viewRef;\n remove(this._views, view);\n view.detachFromAppRef();\n }\n _loadComponent(componentRef) {\n this.attachView(componentRef.hostView);\n this.tick();\n this.components.push(componentRef);\n // Get the listeners lazily to prevent DI cycles.\n const listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []);\n if (ngDevMode && !Array.isArray(listeners)) {\n throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `APP_BOOTSTRAP_LISTENER` token value ' +\n `(expected an array, but got ${typeof listeners}). ` +\n 'Please check that the `APP_BOOTSTRAP_LISTENER` token is configured as a ' +\n '`multi: true` provider.');\n }\n listeners.forEach((listener) => listener(componentRef));\n }\n /** @internal */\n ngOnDestroy() {\n if (this._destroyed)\n return;\n try {\n // Call all the lifecycle hooks.\n this._destroyListeners.forEach((listener) => listener());\n // Destroy all registered views.\n this._views.slice().forEach((view) => view.destroy());\n }\n finally {\n // Indicate that this instance is destroyed.\n this._destroyed = true;\n // Release all references.\n this._views = [];\n this._destroyListeners = [];\n }\n }\n /**\n * Registers a listener to be called when an instance is destroyed.\n *\n * @param callback A callback function to add as a listener.\n * @returns A function which unregisters a listener.\n */\n onDestroy(callback) {\n (typeof ngDevMode === 'undefined' || ngDevMode) && warnIfDestroyed(this._destroyed);\n this._destroyListeners.push(callback);\n return () => remove(this._destroyListeners, callback);\n }\n /**\n * Destroys an Angular application represented by this `ApplicationRef`. Calling this function\n * will destroy the associated environment injectors as well as all the bootstrapped components\n * with their views.\n */\n destroy() {\n if (this._destroyed) {\n throw new RuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, ngDevMode && 'This instance of the `ApplicationRef` has already been destroyed.');\n }\n const injector = this._injector;\n // Check that this injector instance supports destroy operation.\n if (injector.destroy && !injector.destroyed) {\n // Destroying an underlying injector will trigger the `ngOnDestroy` lifecycle\n // hook, which invokes the remaining cleanup actions.\n injector.destroy();\n }\n }\n /**\n * Returns the number of attached views.\n */\n get viewCount() {\n return this._views.length;\n }\n static ɵfac = function ApplicationRef_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ApplicationRef)(); };\n static ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ApplicationRef, factory: ApplicationRef.ɵfac, providedIn: 'root' });\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationRef, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], () => [], null); })();\nfunction warnIfDestroyed(destroyed) {\n if (destroyed) {\n console.warn(formatRuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, 'This instance of the `ApplicationRef` has already been destroyed.'));\n }\n}\nfunction remove(list, el) {\n const index = list.indexOf(el);\n if (index > -1) {\n list.splice(index, 1);\n }\n}\nfunction detectChangesInViewIfRequired(lView, notifyErrorHandler, isFirstPass, zonelessEnabled) {\n // When re-checking, only check views which actually need it.\n if (!isFirstPass && !requiresRefreshOrTraversal(lView)) {\n return;\n }\n const mode = isFirstPass && !zonelessEnabled\n ? // The first pass is always in Global mode, which includes `CheckAlways` views.\n 0 /* ChangeDetectionMode.Global */\n : // Only refresh views with the `RefreshView` flag or views is a changed signal\n 1 /* ChangeDetectionMode.Targeted */;\n detectChangesInternal(lView, notifyErrorHandler, mode);\n}\n\n/**\n * Schedules triggering of a defer block for `on idle` and `on timer` conditions.\n */\nfunction scheduleDelayedTrigger(scheduleFn) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n renderPlaceholder(lView, tNode);\n // Exit early to avoid invoking `scheduleFn`, which would\n // add `setTimeout` call and potentially delay serialization\n // on the server unnecessarily.\n if (!shouldTriggerDeferBlock(0 /* TriggerType.Regular */, lView))\n return;\n const injector = lView[INJECTOR];\n const lDetails = getLDeferBlockDetails(lView, tNode);\n const cleanupFn = scheduleFn(() => triggerDeferBlock(0 /* TriggerType.Regular */, lView, tNode), injector);\n storeTriggerCleanupFn(0 /* TriggerType.Regular */, lDetails, cleanupFn);\n}\n/**\n * Schedules prefetching for `on idle` and `on timer` triggers.\n *\n * @param scheduleFn A function that does the scheduling.\n */\nfunction scheduleDelayedPrefetching(scheduleFn, trigger) {\n if (typeof ngServerMode !== 'undefined' && ngServerMode)\n return;\n const lView = getLView();\n const injector = lView[INJECTOR];\n // Only trigger the scheduled trigger on the browser\n // since we don't want to delay the server response.\n const tNode = getCurrentTNode();\n const tView = lView[TVIEW];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n const lDetails = getLDeferBlockDetails(lView, tNode);\n const prefetch = () => triggerPrefetching(tDetails, lView, tNode);\n const cleanupFn = scheduleFn(prefetch, injector);\n storeTriggerCleanupFn(1 /* TriggerType.Prefetch */, lDetails, cleanupFn);\n }\n}\n/**\n * Schedules hydration triggering of a defer block for `on idle` and `on timer` conditions.\n */\nfunction scheduleDelayedHydrating(scheduleFn, lView, tNode) {\n if (typeof ngServerMode !== 'undefined' && ngServerMode)\n return;\n // Only trigger the scheduled trigger on the browser\n // since we don't want to delay the server response.\n const injector = lView[INJECTOR];\n const lDetails = getLDeferBlockDetails(lView, tNode);\n const ssrUniqueId = lDetails[SSR_UNIQUE_ID];\n ngDevMode && assertSsrIdDefined(ssrUniqueId);\n const cleanupFn = scheduleFn(() => triggerHydrationFromBlockName(injector, ssrUniqueId), injector);\n storeTriggerCleanupFn(2 /* TriggerType.Hydrate */, lDetails, cleanupFn);\n}\n/**\n * Trigger prefetching of dependencies for a defer block.\n *\n * @param tDetails Static information about this defer block.\n * @param lView LView of a host view.\n * @param tNode TNode that represents a defer block.\n */\nfunction triggerPrefetching(tDetails, lView, tNode) {\n triggerResourceLoading(tDetails, lView, tNode);\n}\n/**\n * Trigger loading of defer block dependencies if the process hasn't started yet.\n *\n * @param tDetails Static information about this defer block.\n * @param lView LView of a host view.\n */\nfunction triggerResourceLoading(tDetails, lView, tNode) {\n const injector = lView[INJECTOR];\n const tView = lView[TVIEW];\n if (tDetails.loadingState !== DeferDependenciesLoadingState.NOT_STARTED) {\n // If the loading status is different from initial one, it means that\n // the loading of dependencies is in progress and there is nothing to do\n // in this function. All details can be obtained from the `tDetails` object.\n return tDetails.loadingPromise ?? Promise.resolve();\n }\n const lDetails = getLDeferBlockDetails(lView, tNode);\n const primaryBlockTNode = getPrimaryBlockTNode(tView, tDetails);\n // Switch from NOT_STARTED -> IN_PROGRESS state.\n tDetails.loadingState = DeferDependenciesLoadingState.IN_PROGRESS;\n // Prefetching is triggered, cleanup all registered prefetch triggers.\n invokeTriggerCleanupFns(1 /* TriggerType.Prefetch */, lDetails);\n let dependenciesFn = tDetails.dependencyResolverFn;\n if (ngDevMode) {\n // Check if dependency function interceptor is configured.\n const deferDependencyInterceptor = injector.get(DEFER_BLOCK_DEPENDENCY_INTERCEPTOR, null, {\n optional: true,\n });\n if (deferDependencyInterceptor) {\n dependenciesFn = deferDependencyInterceptor.intercept(dependenciesFn);\n }\n }\n // Indicate that an application is not stable and has a pending task.\n const pendingTasks = injector.get(PendingTasksInternal);\n const taskId = pendingTasks.add();\n // The `dependenciesFn` might be `null` when all dependencies within\n // a given defer block were eagerly referenced elsewhere in a file,\n // thus no dynamic `import()`s were produced.\n if (!dependenciesFn) {\n tDetails.loadingPromise = Promise.resolve().then(() => {\n tDetails.loadingPromise = null;\n tDetails.loadingState = DeferDependenciesLoadingState.COMPLETE;\n pendingTasks.remove(taskId);\n });\n return tDetails.loadingPromise;\n }\n // Start downloading of defer block dependencies.\n tDetails.loadingPromise = Promise.allSettled(dependenciesFn()).then((results) => {\n let failed = false;\n const directiveDefs = [];\n const pipeDefs = [];\n for (const result of results) {\n if (result.status === 'fulfilled') {\n const dependency = result.value;\n const directiveDef = getComponentDef(dependency) || getDirectiveDef(dependency);\n if (directiveDef) {\n directiveDefs.push(directiveDef);\n }\n else {\n const pipeDef = getPipeDef$1(dependency);\n if (pipeDef) {\n pipeDefs.push(pipeDef);\n }\n }\n }\n else {\n failed = true;\n break;\n }\n }\n // Loading is completed, we no longer need the loading Promise\n // and a pending task should also be removed.\n tDetails.loadingPromise = null;\n pendingTasks.remove(taskId);\n if (failed) {\n tDetails.loadingState = DeferDependenciesLoadingState.FAILED;\n if (tDetails.errorTmplIndex === null) {\n const templateLocation = ngDevMode ? getTemplateLocationDetails(lView) : '';\n const error = new RuntimeError(-750 /* RuntimeErrorCode.DEFER_LOADING_FAILED */, ngDevMode &&\n 'Loading dependencies for `@defer` block failed, ' +\n `but no \\`@error\\` block was configured${templateLocation}. ` +\n 'Consider using the `@error` block to render an error state.');\n handleError(lView, error);\n }\n }\n else {\n tDetails.loadingState = DeferDependenciesLoadingState.COMPLETE;\n // Update directive and pipe registries to add newly downloaded dependencies.\n const primaryBlockTView = primaryBlockTNode.tView;\n if (directiveDefs.length > 0) {\n primaryBlockTView.directiveRegistry = addDepsToRegistry(primaryBlockTView.directiveRegistry, directiveDefs);\n // Extract providers from all NgModules imported by standalone components\n // used within this defer block.\n const directiveTypes = directiveDefs.map((def) => def.type);\n const providers = internalImportProvidersFrom(false, ...directiveTypes);\n tDetails.providers = providers;\n }\n if (pipeDefs.length > 0) {\n primaryBlockTView.pipeRegistry = addDepsToRegistry(primaryBlockTView.pipeRegistry, pipeDefs);\n }\n }\n });\n return tDetails.loadingPromise;\n}\n/**\n * Defines whether we should proceed with triggering a given defer block.\n */\nfunction shouldTriggerDeferBlock(triggerType, lView) {\n // prevents triggering regular triggers when on the server.\n if (triggerType === 0 /* TriggerType.Regular */ && typeof ngServerMode !== 'undefined' && ngServerMode) {\n return false;\n }\n // prevents triggering in the case of a test run with manual defer block configuration.\n const injector = lView[INJECTOR];\n const config = injector.get(DEFER_BLOCK_CONFIG, null, { optional: true });\n if (config?.behavior === DeferBlockBehavior.Manual) {\n return false;\n }\n return true;\n}\n/**\n * Attempts to trigger loading of defer block dependencies.\n * If the block is already in a loading, completed or an error state -\n * no additional actions are taken.\n */\nfunction triggerDeferBlock(triggerType, lView, tNode) {\n const tView = lView[TVIEW];\n const lContainer = lView[tNode.index];\n ngDevMode && assertLContainer(lContainer);\n if (!shouldTriggerDeferBlock(triggerType, lView))\n return;\n const lDetails = getLDeferBlockDetails(lView, tNode);\n const tDetails = getTDeferBlockDetails(tView, tNode);\n // Defer block is triggered, cleanup all registered trigger functions.\n invokeAllTriggerCleanupFns(lDetails);\n switch (tDetails.loadingState) {\n case DeferDependenciesLoadingState.NOT_STARTED:\n renderDeferBlockState(DeferBlockState.Loading, tNode, lContainer);\n triggerResourceLoading(tDetails, lView, tNode);\n // The `loadingState` might have changed to \"loading\".\n if (tDetails.loadingState ===\n DeferDependenciesLoadingState.IN_PROGRESS) {\n renderDeferStateAfterResourceLoading(tDetails, tNode, lContainer);\n }\n break;\n case DeferDependenciesLoadingState.IN_PROGRESS:\n renderDeferBlockState(DeferBlockState.Loading, tNode, lContainer);\n renderDeferStateAfterResourceLoading(tDetails, tNode, lContainer);\n break;\n case DeferDependenciesLoadingState.COMPLETE:\n ngDevMode && assertDeferredDependenciesLoaded(tDetails);\n renderDeferBlockState(DeferBlockState.Complete, tNode, lContainer);\n break;\n case DeferDependenciesLoadingState.FAILED:\n renderDeferBlockState(DeferBlockState.Error, tNode, lContainer);\n break;\n default:\n if (ngDevMode) {\n throwError('Unknown defer block state');\n }\n }\n}\n/**\n * The core mechanism for incremental hydration. This triggers\n * hydration for all the blocks in the tree that need to be hydrated\n * and keeps track of all those blocks that were hydrated along the way.\n *\n * Note: the `replayQueuedEventsFn` is only provided when hydration is invoked\n * as a result of an event replay (via JsAction). When hydration is invoked from\n * an instruction set (e.g. `deferOnImmediate`) - there is no need to replay any\n * events.\n */\nasync function triggerHydrationFromBlockName(injector, blockName, replayQueuedEventsFn) {\n const dehydratedBlockRegistry = injector.get(DEHYDRATED_BLOCK_REGISTRY);\n const blocksBeingHydrated = dehydratedBlockRegistry.hydrating;\n // Make sure we don't hydrate/trigger the same thing multiple times\n if (blocksBeingHydrated.has(blockName)) {\n return;\n }\n // The parent promise is the possible case of a list of defer blocks already being queued\n // If it is queued, it'll exist; otherwise it'll be null. The hydration queue will contain all\n // elements that need to be hydrated, sans any that have promises already\n const { parentBlockPromise, hydrationQueue } = getParentBlockHydrationQueue(blockName, injector);\n // The hydrating map in the registry prevents re-triggering hydration for a block that's already in\n // the hydration queue. Here we generate promises for each of the blocks about to be hydrated\n populateHydratingStateForQueue(dehydratedBlockRegistry, hydrationQueue);\n // Trigger resource loading and hydration for the blocks in the queue in the order of highest block\n // to lowest block. Once a block has finished resource loading, after next render fires after hydration\n // finishes. The new block will have its defer instruction called and will be in the registry.\n // Due to timing related to potential nested control flow, this has to be scheduled after the next render.\n // Indicate that we have some pending async work.\n const pendingTasks = injector.get(PendingTasksInternal);\n const taskId = pendingTasks.add();\n // If the parent block was being hydrated, but the process has\n // not yet complete, wait until parent block promise settles before\n // going over dehydrated blocks from the queue.\n if (parentBlockPromise !== null) {\n await parentBlockPromise;\n }\n // Actually do the triggering and hydration of the queue of blocks\n for (const dehydratedBlockId of hydrationQueue) {\n await triggerResourceLoadingForHydration(dehydratedBlockId, dehydratedBlockRegistry);\n await nextRender(injector);\n // TODO(incremental-hydration): assert (in dev mode) that a defer block is present in the dehydrated registry\n // at this point. If not - it means that the block has not been hydrated, for example due to different\n // `@if` conditions on the client and the server. If we detect this case, we should also do the cleanup\n // of all child block (promises, registry state, etc).\n // TODO(incremental-hydration): call `rejectFn` when lDetails[DEFER_BLOCK_STATE] is `DeferBlockState.Error`.\n blocksBeingHydrated.get(dehydratedBlockId).resolve();\n // TODO(incremental-hydration): consider adding a wait for stability here\n }\n // Await hydration completion for the requested block.\n await blocksBeingHydrated.get(blockName)?.promise;\n // All async work is done, remove the taskId from the registry.\n pendingTasks.remove(taskId);\n // Replay any queued events, if any exist and the replay operation was requested.\n if (replayQueuedEventsFn) {\n replayQueuedEventsFn(hydrationQueue);\n }\n // Cleanup after hydration of all affected defer blocks.\n cleanupHydratedDeferBlocks(dehydratedBlockRegistry.get(blockName), hydrationQueue, dehydratedBlockRegistry, injector.get(ApplicationRef));\n}\n/**\n * Generates a new promise for every defer block in the hydrating queue\n */\nfunction populateHydratingStateForQueue(registry, queue) {\n for (let blockId of queue) {\n registry.hydrating.set(blockId, Promise.withResolvers());\n }\n}\n// Waits for the next render cycle to complete\nfunction nextRender(injector) {\n return new Promise((resolveFn) => afterNextRender(resolveFn, { injector }));\n}\nasync function triggerResourceLoadingForHydration(dehydratedBlockId, dehydratedBlockRegistry) {\n const deferBlock = dehydratedBlockRegistry.get(dehydratedBlockId);\n // Since we trigger hydration for nested defer blocks in a sequence (parent -> child),\n // there is a chance that a defer block may not be present at hydration time. For example,\n // when a nested block was in an `@if` condition, which has changed.\n if (deferBlock === null) {\n // TODO(incremental-hydration): handle the cleanup for cases when\n // defer block is no longer present during hydration (e.g. `@if` condition\n // has changed during hydration/rendering).\n return;\n }\n const { tNode, lView } = deferBlock;\n const lDetails = getLDeferBlockDetails(lView, tNode);\n return new Promise((resolve) => {\n onDeferBlockCompletion(lDetails, resolve);\n triggerDeferBlock(2 /* TriggerType.Hydrate */, lView, tNode);\n });\n}\n/**\n * Registers cleanup functions for a defer block when the block has finished\n * fetching and rendering\n */\nfunction onDeferBlockCompletion(lDetails, callback) {\n if (!Array.isArray(lDetails[ON_COMPLETE_FNS])) {\n lDetails[ON_COMPLETE_FNS] = [];\n }\n lDetails[ON_COMPLETE_FNS].push(callback);\n}\n/**\n * Determines whether specific trigger types should be attached during an instruction firing\n * to ensure the proper triggers for a given type are used.\n */\nfunction shouldAttachTrigger(triggerType, lView, tNode) {\n if (triggerType === 0 /* TriggerType.Regular */) {\n return shouldAttachRegularTrigger(lView, tNode);\n }\n else if (triggerType === 2 /* TriggerType.Hydrate */) {\n return !shouldAttachRegularTrigger(lView, tNode);\n }\n // TriggerType.Prefetch is active only on the client\n return !(typeof ngServerMode !== 'undefined' && ngServerMode);\n}\n/**\n * Defines whether a regular trigger logic (e.g. \"on viewport\") should be attached\n * to a defer block. This function defines a condition, which mutually excludes\n * `deferOn*` and `deferHydrateOn*` triggers, to make sure only one of the trigger\n * types is active for a block with the current state.\n */\nfunction shouldAttachRegularTrigger(lView, tNode) {\n const injector = lView[INJECTOR];\n const tDetails = getTDeferBlockDetails(lView[TVIEW], tNode);\n const incrementalHydrationEnabled = isIncrementalHydrationEnabled(injector);\n const hasHydrateTriggers = tDetails.flags !== null &&\n (tDetails.flags & 1 /* TDeferDetailsFlags.HasHydrateTriggers */) ===\n 1 /* TDeferDetailsFlags.HasHydrateTriggers */;\n // On the server:\n if (typeof ngServerMode !== 'undefined' && ngServerMode) {\n // Regular triggers are activated on the server when:\n // - Either Incremental Hydration is *not* enabled\n // - Or Incremental Hydration is enabled, but a given block doesn't have \"hydrate\" triggers\n return !incrementalHydrationEnabled || !hasHydrateTriggers;\n }\n // On the client:\n const lDetails = getLDeferBlockDetails(lView, tNode);\n const wasServerSideRendered = lDetails[SSR_UNIQUE_ID] !== null;\n if (hasHydrateTriggers && wasServerSideRendered && incrementalHydrationEnabled) {\n return false;\n }\n return true;\n}\n/**\n * Retrives a Defer Block's list of hydration triggers\n */\nfunction getHydrateTriggers(tView, tNode) {\n const tDetails = getTDeferBlockDetails(tView, tNode);\n return (tDetails.hydrateTriggers ??= new Map());\n}\n/**\n * Loops through all defer block summaries and ensures all the blocks triggers are\n * properly initialized\n */\nfunction processAndInitTriggers(injector, blockData, nodes) {\n const idleElements = [];\n const timerElements = [];\n const viewportElements = [];\n const immediateElements = [];\n for (let [blockId, blockSummary] of blockData) {\n const commentNode = nodes.get(blockId);\n if (commentNode !== undefined) {\n const numRootNodes = blockSummary.data[NUM_ROOT_NODES];\n let currentNode = commentNode;\n for (let i = 0; i < numRootNodes; i++) {\n currentNode = currentNode.previousSibling;\n if (currentNode.nodeType !== Node.ELEMENT_NODE) {\n continue;\n }\n const elementTrigger = { el: currentNode, blockName: blockId };\n // hydrate\n if (blockSummary.hydrate.idle) {\n idleElements.push(elementTrigger);\n }\n if (blockSummary.hydrate.immediate) {\n immediateElements.push(elementTrigger);\n }\n if (blockSummary.hydrate.timer !== null) {\n elementTrigger.delay = blockSummary.hydrate.timer;\n timerElements.push(elementTrigger);\n }\n if (blockSummary.hydrate.viewport) {\n viewportElements.push(elementTrigger);\n }\n }\n }\n }\n setIdleTriggers(injector, idleElements);\n setImmediateTriggers(injector, immediateElements);\n setViewportTriggers(injector, viewportElements);\n setTimerTriggers(injector, timerElements);\n}\nfunction setIdleTriggers(injector, elementTriggers) {\n for (const elementTrigger of elementTriggers) {\n const registry = injector.get(DEHYDRATED_BLOCK_REGISTRY);\n const onInvoke = () => triggerHydrationFromBlockName(injector, elementTrigger.blockName);\n const cleanupFn = onIdle(onInvoke, injector);\n registry.addCleanupFn(elementTrigger.blockName, cleanupFn);\n }\n}\nfunction setViewportTriggers(injector, elementTriggers) {\n if (elementTriggers.length > 0) {\n const registry = injector.get(DEHYDRATED_BLOCK_REGISTRY);\n for (let elementTrigger of elementTriggers) {\n const cleanupFn = onViewport(elementTrigger.el, () => triggerHydrationFromBlockName(injector, elementTrigger.blockName), injector);\n registry.addCleanupFn(elementTrigger.blockName, cleanupFn);\n }\n }\n}\nfunction setTimerTriggers(injector, elementTriggers) {\n for (const elementTrigger of elementTriggers) {\n const registry = injector.get(DEHYDRATED_BLOCK_REGISTRY);\n const onInvoke = () => triggerHydrationFromBlockName(injector, elementTrigger.blockName);\n const timerFn = onTimer(elementTrigger.delay);\n const cleanupFn = timerFn(onInvoke, injector);\n registry.addCleanupFn(elementTrigger.blockName, cleanupFn);\n }\n}\nfunction setImmediateTriggers(injector, elementTriggers) {\n for (const elementTrigger of elementTriggers) {\n // Note: we intentionally avoid awaiting each call and instead kick off\n // th hydration process simultaneously for all defer blocks with this trigger;\n triggerHydrationFromBlockName(injector, elementTrigger.blockName);\n }\n}\n\n/**\n * Creates runtime data structures for defer blocks.\n *\n * @param index Index of the `defer` instruction.\n * @param primaryTmplIndex Index of the template with the primary block content.\n * @param dependencyResolverFn Function that contains dependencies for this defer block.\n * @param loadingTmplIndex Index of the template with the loading block content.\n * @param placeholderTmplIndex Index of the template with the placeholder block content.\n * @param errorTmplIndex Index of the template with the error block content.\n * @param loadingConfigIndex Index in the constants array of the configuration of the loading.\n * block.\n * @param placeholderConfigIndex Index in the constants array of the configuration of the\n * placeholder block.\n * @param enableTimerScheduling Function that enables timer-related scheduling if `after`\n * or `minimum` parameters are setup on the `@loading` or `@placeholder` blocks.\n * @param flags A set of flags to define a particular behavior (e.g. to indicate that\n * hydrate triggers are present and regular triggers should be deactivated\n * in certain scenarios).\n *\n * @codeGenApi\n */\nfunction ɵɵdefer(index, primaryTmplIndex, dependencyResolverFn, loadingTmplIndex, placeholderTmplIndex, errorTmplIndex, loadingConfigIndex, placeholderConfigIndex, enableTimerScheduling, flags) {\n const lView = getLView();\n const tView = getTView();\n const adjustedIndex = index + HEADER_OFFSET;\n const tNode = declareTemplate(lView, tView, index, null, 0, 0);\n const injector = lView[INJECTOR];\n if (tView.firstCreatePass) {\n performanceMarkFeature('NgDefer');\n const tDetails = {\n primaryTmplIndex,\n loadingTmplIndex: loadingTmplIndex ?? null,\n placeholderTmplIndex: placeholderTmplIndex ?? null,\n errorTmplIndex: errorTmplIndex ?? null,\n placeholderBlockConfig: null,\n loadingBlockConfig: null,\n dependencyResolverFn: dependencyResolverFn ?? null,\n loadingState: DeferDependenciesLoadingState.NOT_STARTED,\n loadingPromise: null,\n providers: null,\n hydrateTriggers: null,\n debug: null,\n flags: flags ?? 0 /* TDeferDetailsFlags.Default */,\n };\n enableTimerScheduling?.(tView, tDetails, placeholderConfigIndex, loadingConfigIndex);\n setTDeferBlockDetails(tView, adjustedIndex, tDetails);\n }\n const lContainer = lView[adjustedIndex];\n // If hydration is enabled, looks up dehydrated views in the DOM\n // using hydration annotation info and stores those views on LContainer.\n // In client-only mode, this function is a noop.\n populateDehydratedViewsInLContainer(lContainer, tNode, lView);\n let ssrBlockState = null;\n let ssrUniqueId = null;\n if (lContainer[DEHYDRATED_VIEWS]?.length > 0) {\n const info = lContainer[DEHYDRATED_VIEWS][0].data;\n ssrUniqueId = info[DEFER_BLOCK_ID] ?? null;\n ssrBlockState = info[DEFER_BLOCK_STATE$1];\n }\n // Init instance-specific defer details and store it.\n const lDetails = [\n null, // NEXT_DEFER_BLOCK_STATE\n DeferBlockInternalState.Initial, // DEFER_BLOCK_STATE\n null, // STATE_IS_FROZEN_UNTIL\n null, // LOADING_AFTER_CLEANUP_FN\n null, // TRIGGER_CLEANUP_FNS\n null, // PREFETCH_TRIGGER_CLEANUP_FNS\n ssrUniqueId, // SSR_UNIQUE_ID\n ssrBlockState, // SSR_BLOCK_STATE\n null, // ON_COMPLETE_FNS\n null, // HYDRATE_TRIGGER_CLEANUP_FNS\n ];\n setLDeferBlockDetails(lView, adjustedIndex, lDetails);\n let registry = null;\n if (ssrUniqueId !== null) {\n ngDevMode && assertIncrementalHydrationIsConfigured(injector);\n // Store this defer block in the registry, to have an access to\n // internal data structures from hydration runtime code.\n registry = injector.get(DEHYDRATED_BLOCK_REGISTRY);\n registry.add(ssrUniqueId, { lView, tNode, lContainer });\n }\n const onLViewDestroy = () => {\n invokeAllTriggerCleanupFns(lDetails);\n if (ssrUniqueId !== null) {\n registry?.cleanup([ssrUniqueId]);\n }\n };\n // When defer block is triggered - unsubscribe from LView destroy cleanup.\n storeTriggerCleanupFn(0 /* TriggerType.Regular */, lDetails, () => removeLViewOnDestroy(lView, onLViewDestroy));\n storeLViewOnDestroy(lView, onLViewDestroy);\n}\n/**\n * Loads defer block dependencies when a trigger value becomes truthy.\n * @codeGenApi\n */\nfunction ɵɵdeferWhen(rawValue) {\n const lView = getLView();\n const tNode = getSelectedTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, 'when <expression>');\n }\n if (!shouldAttachTrigger(0 /* TriggerType.Regular */, lView, tNode))\n return;\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, rawValue)) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n const value = Boolean(rawValue); // handle truthy or falsy values\n const lDetails = getLDeferBlockDetails(lView, tNode);\n const renderedState = lDetails[DEFER_BLOCK_STATE];\n if (value === false && renderedState === DeferBlockInternalState.Initial) {\n // If nothing is rendered yet, render a placeholder (if defined).\n renderPlaceholder(lView, tNode);\n }\n else if (value === true &&\n (renderedState === DeferBlockInternalState.Initial ||\n renderedState === DeferBlockState.Placeholder)) {\n triggerDeferBlock(0 /* TriggerType.Regular */, lView, tNode);\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n}\n/**\n * Prefetches the deferred content when a value becomes truthy.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchWhen(rawValue) {\n const lView = getLView();\n const tNode = getSelectedTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, 'prefetch when <expression>');\n }\n if (!shouldAttachTrigger(1 /* TriggerType.Prefetch */, lView, tNode))\n return;\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, rawValue)) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n const value = Boolean(rawValue); // handle truthy or falsy values\n const tView = lView[TVIEW];\n const tNode = getSelectedTNode();\n const tDetails = getTDeferBlockDetails(tView, tNode);\n if (value === true && tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n // If loading has not been started yet, trigger it now.\n triggerPrefetching(tDetails, lView, tNode);\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n}\n/**\n * Hydrates the deferred content when a value becomes truthy.\n * @codeGenApi\n */\nfunction ɵɵdeferHydrateWhen(rawValue) {\n const lView = getLView();\n const tNode = getSelectedTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, 'hydrate when <expression>');\n }\n if (!shouldAttachTrigger(2 /* TriggerType.Hydrate */, lView, tNode))\n return;\n // TODO(incremental-hydration): audit all defer instructions to reduce unnecessary work by\n // moving function calls inside their relevant control flow blocks\n const bindingIndex = nextBindingIndex();\n const tView = getTView();\n const hydrateTriggers = getHydrateTriggers(tView, tNode);\n hydrateTriggers.set(6 /* DeferBlockTrigger.When */, null);\n if (bindingUpdated(lView, bindingIndex, rawValue)) {\n if (typeof ngServerMode !== 'undefined' && ngServerMode) {\n // We are on the server and SSR for defer blocks is enabled.\n triggerDeferBlock(2 /* TriggerType.Hydrate */, lView, tNode);\n }\n else {\n const injector = lView[INJECTOR];\n const prevConsumer = setActiveConsumer$1(null);\n try {\n const value = Boolean(rawValue); // handle truthy or falsy values\n if (value === true) {\n // The `when` condition has changed to `true`, trigger defer block loading\n // if the block is either in initial (nothing is rendered) or a placeholder\n // state.\n const lDetails = getLDeferBlockDetails(lView, tNode);\n const ssrUniqueId = lDetails[SSR_UNIQUE_ID];\n ngDevMode && assertSsrIdDefined(ssrUniqueId);\n triggerHydrationFromBlockName(injector, ssrUniqueId);\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n }\n}\n/**\n * Specifies that hydration never occurs.\n * @codeGenApi\n */\nfunction ɵɵdeferHydrateNever() {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, 'hydrate never');\n }\n if (!shouldAttachTrigger(2 /* TriggerType.Hydrate */, lView, tNode))\n return;\n const hydrateTriggers = getHydrateTriggers(getTView(), tNode);\n hydrateTriggers.set(7 /* DeferBlockTrigger.Never */, null);\n if (typeof ngServerMode !== 'undefined' && ngServerMode) {\n // We are on the server and SSR for defer blocks is enabled.\n triggerDeferBlock(2 /* TriggerType.Hydrate */, lView, tNode);\n }\n}\n/**\n * Sets up logic to handle the `on idle` deferred trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnIdle() {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, 'on idle');\n }\n if (!shouldAttachTrigger(0 /* TriggerType.Regular */, lView, tNode))\n return;\n scheduleDelayedTrigger(onIdle);\n}\n/**\n * Sets up logic to handle the `prefetch on idle` deferred trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnIdle() {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, 'prefetch on idle');\n }\n if (!shouldAttachTrigger(1 /* TriggerType.Prefetch */, lView, tNode))\n return;\n scheduleDelayedPrefetching(onIdle, 0 /* DeferBlockTrigger.Idle */);\n}\n/**\n * Sets up logic to handle the `on idle` deferred trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferHydrateOnIdle() {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, 'hydrate on idle');\n }\n if (!shouldAttachTrigger(2 /* TriggerType.Hydrate */, lView, tNode))\n return;\n const hydrateTriggers = getHydrateTriggers(getTView(), tNode);\n hydrateTriggers.set(0 /* DeferBlockTrigger.Idle */, null);\n if (typeof ngServerMode !== 'undefined' && ngServerMode) {\n // We are on the server and SSR for defer blocks is enabled.\n triggerDeferBlock(2 /* TriggerType.Hydrate */, lView, tNode);\n }\n else {\n scheduleDelayedHydrating(onIdle, lView, tNode);\n }\n}\n/**\n * Sets up logic to handle the `on immediate` deferred trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnImmediate() {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, 'on immediate');\n }\n if (!shouldAttachTrigger(0 /* TriggerType.Regular */, lView, tNode))\n return;\n // Render placeholder block only if loading template is not present and we're on\n // the client to avoid content flickering, since it would be immediately replaced\n // by the loading block.\n const tDetails = getTDeferBlockDetails(lView[TVIEW], tNode);\n if (tDetails.loadingTmplIndex === null) {\n renderPlaceholder(lView, tNode);\n }\n triggerDeferBlock(0 /* TriggerType.Regular */, lView, tNode);\n}\n/**\n * Sets up logic to handle the `prefetch on immediate` deferred trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnImmediate() {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, 'prefetch on immediate');\n }\n if (!shouldAttachTrigger(1 /* TriggerType.Prefetch */, lView, tNode))\n return;\n const tView = lView[TVIEW];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n triggerResourceLoading(tDetails, lView, tNode);\n }\n}\n/**\n * Sets up logic to handle the `on immediate` hydrate trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferHydrateOnImmediate() {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, 'hydrate on immediate');\n }\n if (!shouldAttachTrigger(2 /* TriggerType.Hydrate */, lView, tNode))\n return;\n const hydrateTriggers = getHydrateTriggers(getTView(), tNode);\n hydrateTriggers.set(1 /* DeferBlockTrigger.Immediate */, null);\n if (typeof ngServerMode !== 'undefined' && ngServerMode) {\n triggerDeferBlock(2 /* TriggerType.Hydrate */, lView, tNode);\n }\n else {\n const injector = lView[INJECTOR];\n const lDetails = getLDeferBlockDetails(lView, tNode);\n const ssrUniqueId = lDetails[SSR_UNIQUE_ID];\n ngDevMode && assertSsrIdDefined(ssrUniqueId);\n triggerHydrationFromBlockName(injector, ssrUniqueId);\n }\n}\n/**\n * Creates runtime data structures for the `on timer` deferred trigger.\n * @param delay Amount of time to wait before loading the content.\n * @codeGenApi\n */\nfunction ɵɵdeferOnTimer(delay) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, `on timer(${delay}ms)`);\n }\n if (!shouldAttachTrigger(0 /* TriggerType.Regular */, lView, tNode))\n return;\n scheduleDelayedTrigger(onTimer(delay));\n}\n/**\n * Creates runtime data structures for the `prefetch on timer` deferred trigger.\n * @param delay Amount of time to wait before prefetching the content.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnTimer(delay) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, `prefetch on timer(${delay}ms)`);\n }\n if (!shouldAttachTrigger(1 /* TriggerType.Prefetch */, lView, tNode))\n return;\n scheduleDelayedPrefetching(onTimer(delay), 5 /* DeferBlockTrigger.Timer */);\n}\n/**\n * Creates runtime data structures for the `on timer` hydrate trigger.\n * @param delay Amount of time to wait before loading the content.\n * @codeGenApi\n */\nfunction ɵɵdeferHydrateOnTimer(delay) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, `hydrate on timer(${delay}ms)`);\n }\n if (!shouldAttachTrigger(2 /* TriggerType.Hydrate */, lView, tNode))\n return;\n const hydrateTriggers = getHydrateTriggers(getTView(), tNode);\n hydrateTriggers.set(5 /* DeferBlockTrigger.Timer */, { delay });\n if (typeof ngServerMode !== 'undefined' && ngServerMode) {\n // We are on the server and SSR for defer blocks is enabled.\n triggerDeferBlock(2 /* TriggerType.Hydrate */, lView, tNode);\n }\n else {\n scheduleDelayedHydrating(onTimer(delay), lView, tNode);\n }\n}\n/**\n * Creates runtime data structures for the `on hover` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnHover(triggerIndex, walkUpTimes) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, `on hover${walkUpTimes === -1 ? '' : '(<target>)'}`);\n }\n if (!shouldAttachTrigger(0 /* TriggerType.Regular */, lView, tNode))\n return;\n renderPlaceholder(lView, tNode);\n // Avoid adding event listeners when this instruction is invoked on the server.\n if (!(typeof ngServerMode !== 'undefined' && ngServerMode)) {\n registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onHover, () => triggerDeferBlock(0 /* TriggerType.Regular */, lView, tNode), 0 /* TriggerType.Regular */);\n }\n}\n/**\n * Creates runtime data structures for the `prefetch on hover` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnHover(triggerIndex, walkUpTimes) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, `prefetch on hover${walkUpTimes === -1 ? '' : '(<target>)'}`);\n }\n if (!shouldAttachTrigger(1 /* TriggerType.Prefetch */, lView, tNode))\n return;\n const tView = lView[TVIEW];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onHover, () => triggerPrefetching(tDetails, lView, tNode), 1 /* TriggerType.Prefetch */);\n }\n}\n/**\n * Creates runtime data structures for the `on hover` hydrate trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferHydrateOnHover() {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, 'hydrate on hover');\n }\n if (!shouldAttachTrigger(2 /* TriggerType.Hydrate */, lView, tNode))\n return;\n const hydrateTriggers = getHydrateTriggers(getTView(), tNode);\n hydrateTriggers.set(4 /* DeferBlockTrigger.Hover */, null);\n if (typeof ngServerMode !== 'undefined' && ngServerMode) {\n // We are on the server and SSR for defer blocks is enabled.\n triggerDeferBlock(2 /* TriggerType.Hydrate */, lView, tNode);\n }\n // The actual triggering of hydration on hover is handled by JSAction in\n // event_replay.ts.\n}\n/**\n * Creates runtime data structures for the `on interaction` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnInteraction(triggerIndex, walkUpTimes) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, `on interaction${walkUpTimes === -1 ? '' : '(<target>)'}`);\n }\n if (!shouldAttachTrigger(0 /* TriggerType.Regular */, lView, tNode))\n return;\n renderPlaceholder(lView, tNode);\n // Avoid adding event listeners when this instruction is invoked on the server.\n if (!(typeof ngServerMode !== 'undefined' && ngServerMode)) {\n registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onInteraction, () => triggerDeferBlock(0 /* TriggerType.Regular */, lView, tNode), 0 /* TriggerType.Regular */);\n }\n}\n/**\n * Creates runtime data structures for the `prefetch on interaction` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnInteraction(triggerIndex, walkUpTimes) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, `prefetch on interaction${walkUpTimes === -1 ? '' : '(<target>)'}`);\n }\n if (!shouldAttachTrigger(1 /* TriggerType.Prefetch */, lView, tNode))\n return;\n const tView = lView[TVIEW];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onInteraction, () => triggerPrefetching(tDetails, lView, tNode), 1 /* TriggerType.Prefetch */);\n }\n}\n/**\n * Creates runtime data structures for the `on interaction` hydrate trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferHydrateOnInteraction() {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, 'hydrate on interaction');\n }\n if (!shouldAttachTrigger(2 /* TriggerType.Hydrate */, lView, tNode))\n return;\n const hydrateTriggers = getHydrateTriggers(getTView(), tNode);\n hydrateTriggers.set(3 /* DeferBlockTrigger.Interaction */, null);\n if (typeof ngServerMode !== 'undefined' && ngServerMode) {\n // We are on the server and SSR for defer blocks is enabled.\n triggerDeferBlock(2 /* TriggerType.Hydrate */, lView, tNode);\n }\n // The actual triggering of hydration on interaction is handled by JSAction in\n // event_replay.ts.\n}\n/**\n * Creates runtime data structures for the `on viewport` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnViewport(triggerIndex, walkUpTimes) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, `on viewport${walkUpTimes === -1 ? '' : '(<target>)'}`);\n }\n if (!shouldAttachTrigger(0 /* TriggerType.Regular */, lView, tNode))\n return;\n renderPlaceholder(lView, tNode);\n // Avoid adding event listeners when this instruction is invoked on the server.\n if (!(typeof ngServerMode !== 'undefined' && ngServerMode)) {\n registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onViewport, () => triggerDeferBlock(0 /* TriggerType.Regular */, lView, tNode), 0 /* TriggerType.Regular */);\n }\n}\n/**\n * Creates runtime data structures for the `prefetch on viewport` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnViewport(triggerIndex, walkUpTimes) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, `prefetch on viewport${walkUpTimes === -1 ? '' : '(<target>)'}`);\n }\n if (!shouldAttachTrigger(1 /* TriggerType.Prefetch */, lView, tNode))\n return;\n const tView = lView[TVIEW];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onViewport, () => triggerPrefetching(tDetails, lView, tNode), 1 /* TriggerType.Prefetch */);\n }\n}\n/**\n * Creates runtime data structures for the `on viewport` hydrate trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferHydrateOnViewport() {\n const lView = getLView();\n const tNode = getCurrentTNode();\n if (ngDevMode) {\n trackTriggerForDebugging(lView[TVIEW], tNode, 'hydrate on viewport');\n }\n if (!shouldAttachTrigger(2 /* TriggerType.Hydrate */, lView, tNode))\n return;\n const hydrateTriggers = getHydrateTriggers(getTView(), tNode);\n hydrateTriggers.set(2 /* DeferBlockTrigger.Viewport */, null);\n if (typeof ngServerMode !== 'undefined' && ngServerMode) {\n // We are on the server and SSR for defer blocks is enabled.\n triggerDeferBlock(2 /* TriggerType.Hydrate */, lView, tNode);\n }\n // The actual triggering of hydration on viewport happens in triggering.ts,\n // since these instructions won't exist for dehydrated content.\n}\n\n/**\n * Updates the value of or removes a bound attribute on an Element.\n *\n * Used in the case of `[attr.title]=\"value\"`\n *\n * @param name name The name of the attribute.\n * @param value value The attribute is removed when value is `null` or `undefined`.\n * Otherwise the attribute value is set to the stringified value.\n * @param sanitizer An optional function used to sanitize the value.\n * @param namespace Optional namespace to use when setting the attribute.\n *\n * @codeGenApi\n */\nfunction ɵɵattribute(name, value, sanitizer, namespace) {\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, value)) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace);\n ngDevMode && storePropertyBindingMetadata(tView.data, tNode, 'attr.' + name, bindingIndex);\n }\n return ɵɵattribute;\n}\n\n/**\n * Create interpolation bindings with a variable number of expressions.\n *\n * If there are 1 to 8 expressions `interpolation1()` to `interpolation8()` should be used instead.\n * Those are faster because there is no need to create an array of expressions and iterate over it.\n *\n * `values`:\n * - has static text at even indexes,\n * - has evaluated expressions at odd indexes.\n *\n * Returns the concatenated string when any of the arguments changes, `NO_CHANGE` otherwise.\n */\nfunction interpolationV(lView, values) {\n ngDevMode && assertLessThan(2, values.length, 'should have at least 3 values');\n ngDevMode && assertEqual(values.length % 2, 1, 'should have an odd number of values');\n let isBindingUpdated = false;\n let bindingIndex = getBindingIndex();\n for (let i = 1; i < values.length; i += 2) {\n // Check if bindings (odd indexes) have changed\n isBindingUpdated = bindingUpdated(lView, bindingIndex++, values[i]) || isBindingUpdated;\n }\n setBindingIndex(bindingIndex);\n if (!isBindingUpdated) {\n return NO_CHANGE;\n }\n // Build the updated content\n let content = values[0];\n for (let i = 1; i < values.length; i += 2) {\n content += renderStringify(values[i]) + values[i + 1];\n }\n return content;\n}\n/**\n * Creates an interpolation binding with 1 expression.\n *\n * @param prefix static value used for concatenation only.\n * @param v0 value checked for change.\n * @param suffix static value used for concatenation only.\n */\nfunction interpolation1(lView, prefix, v0, suffix) {\n const different = bindingUpdated(lView, nextBindingIndex(), v0);\n return different ? prefix + renderStringify(v0) + suffix : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 2 expressions.\n */\nfunction interpolation2(lView, prefix, v0, i0, v1, suffix) {\n const bindingIndex = getBindingIndex();\n const different = bindingUpdated2(lView, bindingIndex, v0, v1);\n incrementBindingIndex(2);\n return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + suffix : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 3 expressions.\n */\nfunction interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix) {\n const bindingIndex = getBindingIndex();\n const different = bindingUpdated3(lView, bindingIndex, v0, v1, v2);\n incrementBindingIndex(3);\n return different\n ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + suffix\n : NO_CHANGE;\n}\n/**\n * Create an interpolation binding with 4 expressions.\n */\nfunction interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n const bindingIndex = getBindingIndex();\n const different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n incrementBindingIndex(4);\n return different\n ? prefix +\n renderStringify(v0) +\n i0 +\n renderStringify(v1) +\n i1 +\n renderStringify(v2) +\n i2 +\n renderStringify(v3) +\n suffix\n : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 5 expressions.\n */\nfunction interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n const bindingIndex = getBindingIndex();\n let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n different = bindingUpdated(lView, bindingIndex + 4, v4) || different;\n incrementBindingIndex(5);\n return different\n ? prefix +\n renderStringify(v0) +\n i0 +\n renderStringify(v1) +\n i1 +\n renderStringify(v2) +\n i2 +\n renderStringify(v3) +\n i3 +\n renderStringify(v4) +\n suffix\n : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 6 expressions.\n */\nfunction interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n const bindingIndex = getBindingIndex();\n let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n different = bindingUpdated2(lView, bindingIndex + 4, v4, v5) || different;\n incrementBindingIndex(6);\n return different\n ? prefix +\n renderStringify(v0) +\n i0 +\n renderStringify(v1) +\n i1 +\n renderStringify(v2) +\n i2 +\n renderStringify(v3) +\n i3 +\n renderStringify(v4) +\n i4 +\n renderStringify(v5) +\n suffix\n : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 7 expressions.\n */\nfunction interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n const bindingIndex = getBindingIndex();\n let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n different = bindingUpdated3(lView, bindingIndex + 4, v4, v5, v6) || different;\n incrementBindingIndex(7);\n return different\n ? prefix +\n renderStringify(v0) +\n i0 +\n renderStringify(v1) +\n i1 +\n renderStringify(v2) +\n i2 +\n renderStringify(v3) +\n i3 +\n renderStringify(v4) +\n i4 +\n renderStringify(v5) +\n i5 +\n renderStringify(v6) +\n suffix\n : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 8 expressions.\n */\nfunction interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n const bindingIndex = getBindingIndex();\n let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n different = bindingUpdated4(lView, bindingIndex + 4, v4, v5, v6, v7) || different;\n incrementBindingIndex(8);\n return different\n ? prefix +\n renderStringify(v0) +\n i0 +\n renderStringify(v1) +\n i1 +\n renderStringify(v2) +\n i2 +\n renderStringify(v3) +\n i3 +\n renderStringify(v4) +\n i4 +\n renderStringify(v5) +\n i5 +\n renderStringify(v6) +\n i6 +\n renderStringify(v7) +\n suffix\n : NO_CHANGE;\n}\n\n/**\n *\n * Update an interpolated attribute on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate1('title', 'prefix', v0, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate1(attrName, prefix, v0, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 1, prefix, suffix);\n }\n return ɵɵattributeInterpolate1;\n}\n/**\n *\n * Update an interpolated attribute on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate2(attrName, prefix, v0, i0, v1, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 2, prefix, i0, suffix);\n }\n return ɵɵattributeInterpolate2;\n}\n/**\n *\n * Update an interpolated attribute on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate3(\n * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate3(attrName, prefix, v0, i0, v1, i1, v2, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 3, prefix, i0, i1, suffix);\n }\n return ɵɵattributeInterpolate3;\n}\n/**\n *\n * Update an interpolated attribute on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate4(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate4(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 4, prefix, i0, i1, i2, suffix);\n }\n return ɵɵattributeInterpolate4;\n}\n/**\n *\n * Update an interpolated attribute on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate5(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate5(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 5, prefix, i0, i1, i2, i3, suffix);\n }\n return ɵɵattributeInterpolate5;\n}\n/**\n *\n * Update an interpolated attribute on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate6(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate6(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 6, prefix, i0, i1, i2, i3, i4, suffix);\n }\n return ɵɵattributeInterpolate6;\n}\n/**\n *\n * Update an interpolated attribute on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate7(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate7(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 7, prefix, i0, i1, i2, i3, i4, i5, suffix);\n }\n return ɵɵattributeInterpolate7;\n}\n/**\n *\n * Update an interpolated attribute on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate8(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate8(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 8, prefix, i0, i1, i2, i3, i4, i5, i6, suffix);\n }\n return ɵɵattributeInterpolate8;\n}\n/**\n * Update an interpolated attribute on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolateV(\n * 'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *\n * @param attrName The name of the attribute to update.\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolateV(attrName, values, sanitizer, namespace) {\n const lView = getLView();\n const interpolated = interpolationV(lView, values);\n if (interpolated !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolated, sanitizer, namespace);\n if (ngDevMode) {\n const interpolationInBetween = [values[0]]; // prefix\n for (let i = 2; i < values.length; i += 2) {\n interpolationInBetween.push(values[i]);\n }\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - interpolationInBetween.length + 1, ...interpolationInBetween);\n }\n }\n return ɵɵattributeInterpolateV;\n}\n\nfunction toTStylingRange(prev, next) {\n ngDevMode && assertNumberInRange(prev, 0, 32767 /* StylingRange.UNSIGNED_MASK */);\n ngDevMode && assertNumberInRange(next, 0, 32767 /* StylingRange.UNSIGNED_MASK */);\n return ((prev << 17 /* StylingRange.PREV_SHIFT */) | (next << 2 /* StylingRange.NEXT_SHIFT */));\n}\nfunction getTStylingRangePrev(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange >> 17 /* StylingRange.PREV_SHIFT */) & 32767 /* StylingRange.UNSIGNED_MASK */;\n}\nfunction getTStylingRangePrevDuplicate(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange & 2 /* StylingRange.PREV_DUPLICATE */) == 2 /* StylingRange.PREV_DUPLICATE */;\n}\nfunction setTStylingRangePrev(tStylingRange, previous) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n ngDevMode && assertNumberInRange(previous, 0, 32767 /* StylingRange.UNSIGNED_MASK */);\n return ((tStylingRange & ~4294836224 /* StylingRange.PREV_MASK */) |\n (previous << 17 /* StylingRange.PREV_SHIFT */));\n}\nfunction setTStylingRangePrevDuplicate(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange | 2 /* StylingRange.PREV_DUPLICATE */);\n}\nfunction getTStylingRangeNext(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange & 131068 /* StylingRange.NEXT_MASK */) >> 2 /* StylingRange.NEXT_SHIFT */;\n}\nfunction setTStylingRangeNext(tStylingRange, next) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n ngDevMode && assertNumberInRange(next, 0, 32767 /* StylingRange.UNSIGNED_MASK */);\n return ((tStylingRange & ~131068 /* StylingRange.NEXT_MASK */) | //\n (next << 2 /* StylingRange.NEXT_SHIFT */));\n}\nfunction getTStylingRangeNextDuplicate(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange & 1 /* StylingRange.NEXT_DUPLICATE */) === 1 /* StylingRange.NEXT_DUPLICATE */;\n}\nfunction setTStylingRangeNextDuplicate(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange | 1 /* StylingRange.NEXT_DUPLICATE */);\n}\nfunction getTStylingRangeTail(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n const next = getTStylingRangeNext(tStylingRange);\n return next === 0 ? getTStylingRangePrev(tStylingRange) : next;\n}\n\n/**\n * NOTE: The word `styling` is used interchangeably as style or class styling.\n *\n * This file contains code to link styling instructions together so that they can be replayed in\n * priority order. The file exists because Ivy styling instruction execution order does not match\n * that of the priority order. The purpose of this code is to create a linked list so that the\n * instructions can be traversed in priority order when computing the styles.\n *\n * Assume we are dealing with the following code:\n * ```angular-ts\n * @Component({\n * template: `\n * <my-cmp [style]=\" {color: '#001'} \"\n * [style.color]=\" #002 \"\n * dir-style-color-1\n * dir-style-color-2> `\n * })\n * class ExampleComponent {\n * static ngComp = ... {\n * ...\n * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n * ɵɵstyleMap({color: '#001'});\n * ɵɵstyleProp('color', '#002');\n * ...\n * }\n * }\n *\n * @Directive({\n * selector: `[dir-style-color-1]',\n * })\n * class Style1Directive {\n * @HostBinding('style') style = {color: '#005'};\n * @HostBinding('style.color') color = '#006';\n *\n * static ngDir = ... {\n * ...\n * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n * ɵɵstyleMap({color: '#005'});\n * ɵɵstyleProp('color', '#006');\n * ...\n * }\n * }\n *\n * @Directive({\n * selector: `[dir-style-color-2]',\n * })\n * class Style2Directive {\n * @HostBinding('style') style = {color: '#007'};\n * @HostBinding('style.color') color = '#008';\n *\n * static ngDir = ... {\n * ...\n * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n * ɵɵstyleMap({color: '#007'});\n * ɵɵstyleProp('color', '#008');\n * ...\n * }\n * }\n *\n * @Directive({\n * selector: `my-cmp',\n * })\n * class MyComponent {\n * @HostBinding('style') style = {color: '#003'};\n * @HostBinding('style.color') color = '#004';\n *\n * static ngComp = ... {\n * ...\n * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n * ɵɵstyleMap({color: '#003'});\n * ɵɵstyleProp('color', '#004');\n * ...\n * }\n * }\n * ```\n *\n * The Order of instruction execution is:\n *\n * NOTE: the comment binding location is for illustrative purposes only.\n *\n * ```ts\n * // Template: (ExampleComponent)\n * ɵɵstyleMap({color: '#001'}); // Binding index: 10\n * ɵɵstyleProp('color', '#002'); // Binding index: 12\n * // MyComponent\n * ɵɵstyleMap({color: '#003'}); // Binding index: 20\n * ɵɵstyleProp('color', '#004'); // Binding index: 22\n * // Style1Directive\n * ɵɵstyleMap({color: '#005'}); // Binding index: 24\n * ɵɵstyleProp('color', '#006'); // Binding index: 26\n * // Style2Directive\n * ɵɵstyleMap({color: '#007'}); // Binding index: 28\n * ɵɵstyleProp('color', '#008'); // Binding index: 30\n * ```\n *\n * The correct priority order of concatenation is:\n *\n * ```ts\n * // MyComponent\n * ɵɵstyleMap({color: '#003'}); // Binding index: 20\n * ɵɵstyleProp('color', '#004'); // Binding index: 22\n * // Style1Directive\n * ɵɵstyleMap({color: '#005'}); // Binding index: 24\n * ɵɵstyleProp('color', '#006'); // Binding index: 26\n * // Style2Directive\n * ɵɵstyleMap({color: '#007'}); // Binding index: 28\n * ɵɵstyleProp('color', '#008'); // Binding index: 30\n * // Template: (ExampleComponent)\n * ɵɵstyleMap({color: '#001'}); // Binding index: 10\n * ɵɵstyleProp('color', '#002'); // Binding index: 12\n * ```\n *\n * What color should be rendered?\n *\n * Once the items are correctly sorted in the list, the answer is simply the last item in the\n * concatenation list which is `#002`.\n *\n * To do so we keep a linked list of all of the bindings which pertain to this element.\n * Notice that the bindings are inserted in the order of execution, but the `TView.data` allows\n * us to traverse them in the order of priority.\n *\n * |Idx|`TView.data`|`LView` | Notes\n * |---|------------|-----------------|--------------\n * |...| | |\n * |10 |`null` |`{color: '#001'}`| `ɵɵstyleMap('color', {color: '#001'})`\n * |11 |`30 | 12` | ... |\n * |12 |`color` |`'#002'` | `ɵɵstyleProp('color', '#002')`\n * |13 |`10 | 0` | ... |\n * |...| | |\n * |20 |`null` |`{color: '#003'}`| `ɵɵstyleMap('color', {color: '#003'})`\n * |21 |`0 | 22` | ... |\n * |22 |`color` |`'#004'` | `ɵɵstyleProp('color', '#004')`\n * |23 |`20 | 24` | ... |\n * |24 |`null` |`{color: '#005'}`| `ɵɵstyleMap('color', {color: '#005'})`\n * |25 |`22 | 26` | ... |\n * |26 |`color` |`'#006'` | `ɵɵstyleProp('color', '#006')`\n * |27 |`24 | 28` | ... |\n * |28 |`null` |`{color: '#007'}`| `ɵɵstyleMap('color', {color: '#007'})`\n * |29 |`26 | 30` | ... |\n * |30 |`color` |`'#008'` | `ɵɵstyleProp('color', '#008')`\n * |31 |`28 | 10` | ... |\n *\n * The above data structure allows us to re-concatenate the styling no matter which data binding\n * changes.\n *\n * NOTE: in addition to keeping track of next/previous index the `TView.data` also stores prev/next\n * duplicate bit. The duplicate bit if true says there either is a binding with the same name or\n * there is a map (which may contain the name). This information is useful in knowing if other\n * styles with higher priority need to be searched for overwrites.\n *\n * NOTE: See `should support example in 'tnode_linked_list.ts' documentation` in\n * `tnode_linked_list_spec.ts` for working example.\n */\nlet __unused_const_as_closure_does_not_like_standalone_comment_blocks__;\n/**\n * Insert new `tStyleValue` at `TData` and link existing style bindings such that we maintain linked\n * list of styles and compute the duplicate flag.\n *\n * Note: this function is executed during `firstUpdatePass` only to populate the `TView.data`.\n *\n * The function works by keeping track of `tStylingRange` which contains two pointers pointing to\n * the head/tail of the template portion of the styles.\n * - if `isHost === false` (we are template) then insertion is at tail of `TStylingRange`\n * - if `isHost === true` (we are host binding) then insertion is at head of `TStylingRange`\n *\n * @param tData The `TData` to insert into.\n * @param tNode `TNode` associated with the styling element.\n * @param tStylingKey See `TStylingKey`.\n * @param index location of where `tStyleValue` should be stored (and linked into list.)\n * @param isHostBinding `true` if the insertion is for a `hostBinding`. (insertion is in front of\n * template.)\n * @param isClassBinding True if the associated `tStylingKey` as a `class` styling.\n * `tNode.classBindings` should be used (or `tNode.styleBindings` otherwise.)\n */\nfunction insertTStylingBinding(tData, tNode, tStylingKeyWithStatic, index, isHostBinding, isClassBinding) {\n ngDevMode && assertFirstUpdatePass(getTView());\n let tBindings = isClassBinding ? tNode.classBindings : tNode.styleBindings;\n let tmplHead = getTStylingRangePrev(tBindings);\n let tmplTail = getTStylingRangeNext(tBindings);\n tData[index] = tStylingKeyWithStatic;\n let isKeyDuplicateOfStatic = false;\n let tStylingKey;\n if (Array.isArray(tStylingKeyWithStatic)) {\n // We are case when the `TStylingKey` contains static fields as well.\n const staticKeyValueArray = tStylingKeyWithStatic;\n tStylingKey = staticKeyValueArray[1]; // unwrap.\n // We need to check if our key is present in the static so that we can mark it as duplicate.\n if (tStylingKey === null ||\n keyValueArrayIndexOf(staticKeyValueArray, tStylingKey) > 0) {\n // tStylingKey is present in the statics, need to mark it as duplicate.\n isKeyDuplicateOfStatic = true;\n }\n }\n else {\n tStylingKey = tStylingKeyWithStatic;\n }\n if (isHostBinding) {\n // We are inserting host bindings\n // If we don't have template bindings then `tail` is 0.\n const hasTemplateBindings = tmplTail !== 0;\n // This is important to know because that means that the `head` can't point to the first\n // template bindings (there are none.) Instead the head points to the tail of the template.\n if (hasTemplateBindings) {\n // template head's \"prev\" will point to last host binding or to 0 if no host bindings yet\n const previousNode = getTStylingRangePrev(tData[tmplHead + 1]);\n tData[index + 1] = toTStylingRange(previousNode, tmplHead);\n // if a host binding has already been registered, we need to update the next of that host\n // binding to point to this one\n if (previousNode !== 0) {\n // We need to update the template-tail value to point to us.\n tData[previousNode + 1] = setTStylingRangeNext(tData[previousNode + 1], index);\n }\n // The \"previous\" of the template binding head should point to this host binding\n tData[tmplHead + 1] = setTStylingRangePrev(tData[tmplHead + 1], index);\n }\n else {\n tData[index + 1] = toTStylingRange(tmplHead, 0);\n // if a host binding has already been registered, we need to update the next of that host\n // binding to point to this one\n if (tmplHead !== 0) {\n // We need to update the template-tail value to point to us.\n tData[tmplHead + 1] = setTStylingRangeNext(tData[tmplHead + 1], index);\n }\n // if we don't have template, the head points to template-tail, and needs to be advanced.\n tmplHead = index;\n }\n }\n else {\n // We are inserting in template section.\n // We need to set this binding's \"previous\" to the current template tail\n tData[index + 1] = toTStylingRange(tmplTail, 0);\n ngDevMode &&\n assertEqual(tmplHead !== 0 && tmplTail === 0, false, 'Adding template bindings after hostBindings is not allowed.');\n if (tmplHead === 0) {\n tmplHead = index;\n }\n else {\n // We need to update the previous value \"next\" to point to this binding\n tData[tmplTail + 1] = setTStylingRangeNext(tData[tmplTail + 1], index);\n }\n tmplTail = index;\n }\n // Now we need to update / compute the duplicates.\n // Starting with our location search towards head (least priority)\n if (isKeyDuplicateOfStatic) {\n tData[index + 1] = setTStylingRangePrevDuplicate(tData[index + 1]);\n }\n markDuplicates(tData, tStylingKey, index, true);\n markDuplicates(tData, tStylingKey, index, false);\n markDuplicateOfResidualStyling(tNode, tStylingKey, tData, index, isClassBinding);\n tBindings = toTStylingRange(tmplHead, tmplTail);\n if (isClassBinding) {\n tNode.classBindings = tBindings;\n }\n else {\n tNode.styleBindings = tBindings;\n }\n}\n/**\n * Look into the residual styling to see if the current `tStylingKey` is duplicate of residual.\n *\n * @param tNode `TNode` where the residual is stored.\n * @param tStylingKey `TStylingKey` to store.\n * @param tData `TData` associated with the current `LView`.\n * @param index location of where `tStyleValue` should be stored (and linked into list.)\n * @param isClassBinding True if the associated `tStylingKey` as a `class` styling.\n * `tNode.classBindings` should be used (or `tNode.styleBindings` otherwise.)\n */\nfunction markDuplicateOfResidualStyling(tNode, tStylingKey, tData, index, isClassBinding) {\n const residual = isClassBinding ? tNode.residualClasses : tNode.residualStyles;\n if (residual != null /* or undefined */ &&\n typeof tStylingKey == 'string' &&\n keyValueArrayIndexOf(residual, tStylingKey) >= 0) {\n // We have duplicate in the residual so mark ourselves as duplicate.\n tData[index + 1] = setTStylingRangeNextDuplicate(tData[index + 1]);\n }\n}\n/**\n * Marks `TStyleValue`s as duplicates if another style binding in the list has the same\n * `TStyleValue`.\n *\n * NOTE: this function is intended to be called twice once with `isPrevDir` set to `true` and once\n * with it set to `false` to search both the previous as well as next items in the list.\n *\n * No duplicate case\n * ```\n * [style.color]\n * [style.width.px] <<- index\n * [style.height.px]\n * ```\n *\n * In the above case adding `[style.width.px]` to the existing `[style.color]` produces no\n * duplicates because `width` is not found in any other part of the linked list.\n *\n * Duplicate case\n * ```\n * [style.color]\n * [style.width.em]\n * [style.width.px] <<- index\n * ```\n * In the above case adding `[style.width.px]` will produce a duplicate with `[style.width.em]`\n * because `width` is found in the chain.\n *\n * Map case 1\n * ```\n * [style.width.px]\n * [style.color]\n * [style] <<- index\n * ```\n * In the above case adding `[style]` will produce a duplicate with any other bindings because\n * `[style]` is a Map and as such is fully dynamic and could produce `color` or `width`.\n *\n * Map case 2\n * ```\n * [style]\n * [style.width.px]\n * [style.color] <<- index\n * ```\n * In the above case adding `[style.color]` will produce a duplicate because there is already a\n * `[style]` binding which is a Map and as such is fully dynamic and could produce `color` or\n * `width`.\n *\n * NOTE: Once `[style]` (Map) is added into the system all things are mapped as duplicates.\n * NOTE: We use `style` as example, but same logic is applied to `class`es as well.\n *\n * @param tData `TData` where the linked list is stored.\n * @param tStylingKey `TStylingKeyPrimitive` which contains the value to compare to other keys in\n * the linked list.\n * @param index Starting location in the linked list to search from\n * @param isPrevDir Direction.\n * - `true` for previous (lower priority);\n * - `false` for next (higher priority).\n */\nfunction markDuplicates(tData, tStylingKey, index, isPrevDir) {\n const tStylingAtIndex = tData[index + 1];\n const isMap = tStylingKey === null;\n let cursor = isPrevDir\n ? getTStylingRangePrev(tStylingAtIndex)\n : getTStylingRangeNext(tStylingAtIndex);\n let foundDuplicate = false;\n // We keep iterating as long as we have a cursor\n // AND either:\n // - we found what we are looking for, OR\n // - we are a map in which case we have to continue searching even after we find what we were\n // looking for since we are a wild card and everything needs to be flipped to duplicate.\n while (cursor !== 0 && (foundDuplicate === false || isMap)) {\n ngDevMode && assertIndexInRange(tData, cursor);\n const tStylingValueAtCursor = tData[cursor];\n const tStyleRangeAtCursor = tData[cursor + 1];\n if (isStylingMatch(tStylingValueAtCursor, tStylingKey)) {\n foundDuplicate = true;\n tData[cursor + 1] = isPrevDir\n ? setTStylingRangeNextDuplicate(tStyleRangeAtCursor)\n : setTStylingRangePrevDuplicate(tStyleRangeAtCursor);\n }\n cursor = isPrevDir\n ? getTStylingRangePrev(tStyleRangeAtCursor)\n : getTStylingRangeNext(tStyleRangeAtCursor);\n }\n if (foundDuplicate) {\n // if we found a duplicate, than mark ourselves.\n tData[index + 1] = isPrevDir\n ? setTStylingRangePrevDuplicate(tStylingAtIndex)\n : setTStylingRangeNextDuplicate(tStylingAtIndex);\n }\n}\n/**\n * Determines if two `TStylingKey`s are a match.\n *\n * When computing whether a binding contains a duplicate, we need to compare if the instruction\n * `TStylingKey` has a match.\n *\n * Here are examples of `TStylingKey`s which match given `tStylingKeyCursor` is:\n * - `color`\n * - `color` // Match another color\n * - `null` // That means that `tStylingKey` is a `classMap`/`styleMap` instruction\n * - `['', 'color', 'other', true]` // wrapped `color` so match\n * - `['', null, 'other', true]` // wrapped `null` so match\n * - `['', 'width', 'color', 'value']` // wrapped static value contains a match on `'color'`\n * - `null` // `tStylingKeyCursor` always match as it is `classMap`/`styleMap` instruction\n *\n * @param tStylingKeyCursor\n * @param tStylingKey\n */\nfunction isStylingMatch(tStylingKeyCursor, tStylingKey) {\n ngDevMode &&\n assertNotEqual(Array.isArray(tStylingKey), true, \"Expected that 'tStylingKey' has been unwrapped\");\n if (tStylingKeyCursor === null || // If the cursor is `null` it means that we have map at that\n // location so we must assume that we have a match.\n tStylingKey == null || // If `tStylingKey` is `null` then it is a map therefor assume that it\n // contains a match.\n (Array.isArray(tStylingKeyCursor) ? tStylingKeyCursor[1] : tStylingKeyCursor) === tStylingKey // If the keys match explicitly than we are a match.\n ) {\n return true;\n }\n else if (Array.isArray(tStylingKeyCursor) && typeof tStylingKey === 'string') {\n // if we did not find a match, but `tStylingKeyCursor` is `KeyValueArray` that means cursor has\n // statics and we need to check those as well.\n return keyValueArrayIndexOf(tStylingKeyCursor, tStylingKey) >= 0; // see if we are matching the key\n }\n return false;\n}\n\n// Global state of the parser. (This makes parser non-reentrant, but that is not an issue)\nconst parserState = {\n textEnd: 0,\n key: 0,\n keyEnd: 0,\n value: 0,\n valueEnd: 0,\n};\n/**\n * Retrieves the last parsed `key` of style.\n * @param text the text to substring the key from.\n */\nfunction getLastParsedKey(text) {\n return text.substring(parserState.key, parserState.keyEnd);\n}\n/**\n * Retrieves the last parsed `value` of style.\n * @param text the text to substring the key from.\n */\nfunction getLastParsedValue(text) {\n return text.substring(parserState.value, parserState.valueEnd);\n}\n/**\n * Initializes `className` string for parsing and parses the first token.\n *\n * This function is intended to be used in this format:\n * ```ts\n * for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {\n * const key = getLastParsedKey();\n * ...\n * }\n * ```\n * @param text `className` to parse\n * @returns index where the next invocation of `parseClassNameNext` should resume.\n */\nfunction parseClassName(text) {\n resetParserState(text);\n return parseClassNameNext(text, consumeWhitespace(text, 0, parserState.textEnd));\n}\n/**\n * Parses next `className` token.\n *\n * This function is intended to be used in this format:\n * ```ts\n * for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {\n * const key = getLastParsedKey();\n * ...\n * }\n * ```\n *\n * @param text `className` to parse\n * @param index where the parsing should resume.\n * @returns index where the next invocation of `parseClassNameNext` should resume.\n */\nfunction parseClassNameNext(text, index) {\n const end = parserState.textEnd;\n if (end === index) {\n return -1;\n }\n index = parserState.keyEnd = consumeClassToken(text, (parserState.key = index), end);\n return consumeWhitespace(text, index, end);\n}\n/**\n * Initializes `cssText` string for parsing and parses the first key/values.\n *\n * This function is intended to be used in this format:\n * ```ts\n * for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i))) {\n * const key = getLastParsedKey();\n * const value = getLastParsedValue();\n * ...\n * }\n * ```\n * @param text `cssText` to parse\n * @returns index where the next invocation of `parseStyleNext` should resume.\n */\nfunction parseStyle(text) {\n resetParserState(text);\n return parseStyleNext(text, consumeWhitespace(text, 0, parserState.textEnd));\n}\n/**\n * Parses the next `cssText` key/values.\n *\n * This function is intended to be used in this format:\n * ```ts\n * for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i))) {\n * const key = getLastParsedKey();\n * const value = getLastParsedValue();\n * ...\n * }\n *\n * @param text `cssText` to parse\n * @param index where the parsing should resume.\n * @returns index where the next invocation of `parseStyleNext` should resume.\n */\nfunction parseStyleNext(text, startIndex) {\n const end = parserState.textEnd;\n let index = (parserState.key = consumeWhitespace(text, startIndex, end));\n if (end === index) {\n // we reached an end so just quit\n return -1;\n }\n index = parserState.keyEnd = consumeStyleKey(text, index, end);\n index = consumeSeparator(text, index, end, 58 /* CharCode.COLON */);\n index = parserState.value = consumeWhitespace(text, index, end);\n index = parserState.valueEnd = consumeStyleValue(text, index, end);\n return consumeSeparator(text, index, end, 59 /* CharCode.SEMI_COLON */);\n}\n/**\n * Reset the global state of the styling parser.\n * @param text The styling text to parse.\n */\nfunction resetParserState(text) {\n parserState.key = 0;\n parserState.keyEnd = 0;\n parserState.value = 0;\n parserState.valueEnd = 0;\n parserState.textEnd = text.length;\n}\n/**\n * Returns index of next non-whitespace character.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index of next non-whitespace character (May be the same as `start` if no whitespace at\n * that location.)\n */\nfunction consumeWhitespace(text, startIndex, endIndex) {\n while (startIndex < endIndex && text.charCodeAt(startIndex) <= 32 /* CharCode.SPACE */) {\n startIndex++;\n }\n return startIndex;\n}\n/**\n * Returns index of last char in class token.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after last char in class token.\n */\nfunction consumeClassToken(text, startIndex, endIndex) {\n while (startIndex < endIndex && text.charCodeAt(startIndex) > 32 /* CharCode.SPACE */) {\n startIndex++;\n }\n return startIndex;\n}\n/**\n * Consumes all of the characters belonging to style key and token.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after last style key character.\n */\nfunction consumeStyleKey(text, startIndex, endIndex) {\n let ch;\n while (startIndex < endIndex &&\n ((ch = text.charCodeAt(startIndex)) === 45 /* CharCode.DASH */ ||\n ch === 95 /* CharCode.UNDERSCORE */ ||\n ((ch & -33 /* CharCode.UPPER_CASE */) >= 65 /* CharCode.A */ && (ch & -33 /* CharCode.UPPER_CASE */) <= 90 /* CharCode.Z */) ||\n (ch >= 48 /* CharCode.ZERO */ && ch <= 57 /* CharCode.NINE */))) {\n startIndex++;\n }\n return startIndex;\n}\n/**\n * Consumes all whitespace and the separator `:` after the style key.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after separator and surrounding whitespace.\n */\nfunction consumeSeparator(text, startIndex, endIndex, separator) {\n startIndex = consumeWhitespace(text, startIndex, endIndex);\n if (startIndex < endIndex) {\n if (ngDevMode && text.charCodeAt(startIndex) !== separator) {\n malformedStyleError(text, String.fromCharCode(separator), startIndex);\n }\n startIndex++;\n }\n return startIndex;\n}\n/**\n * Consumes style value honoring `url()` and `\"\"` text.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after last style value character.\n */\nfunction consumeStyleValue(text, startIndex, endIndex) {\n let ch1 = -1; // 1st previous character\n let ch2 = -1; // 2nd previous character\n let ch3 = -1; // 3rd previous character\n let i = startIndex;\n let lastChIndex = i;\n while (i < endIndex) {\n const ch = text.charCodeAt(i++);\n if (ch === 59 /* CharCode.SEMI_COLON */) {\n return lastChIndex;\n }\n else if (ch === 34 /* CharCode.DOUBLE_QUOTE */ || ch === 39 /* CharCode.SINGLE_QUOTE */) {\n lastChIndex = i = consumeQuotedText(text, ch, i, endIndex);\n }\n else if (startIndex === i - 4 && // We have seen only 4 characters so far \"URL(\" (Ignore \"foo_URL()\")\n ch3 === 85 /* CharCode.U */ &&\n ch2 === 82 /* CharCode.R */ &&\n ch1 === 76 /* CharCode.L */ &&\n ch === 40 /* CharCode.OPEN_PAREN */) {\n lastChIndex = i = consumeQuotedText(text, 41 /* CharCode.CLOSE_PAREN */, i, endIndex);\n }\n else if (ch > 32 /* CharCode.SPACE */) {\n // if we have a non-whitespace character then capture its location\n lastChIndex = i;\n }\n ch3 = ch2;\n ch2 = ch1;\n ch1 = ch & -33 /* CharCode.UPPER_CASE */;\n }\n return lastChIndex;\n}\n/**\n * Consumes all of the quoted characters.\n *\n * @param text Text to scan\n * @param quoteCharCode CharCode of either `\"` or `'` quote or `)` for `url(...)`.\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after quoted characters.\n */\nfunction consumeQuotedText(text, quoteCharCode, startIndex, endIndex) {\n let ch1 = -1; // 1st previous character\n let index = startIndex;\n while (index < endIndex) {\n const ch = text.charCodeAt(index++);\n if (ch == quoteCharCode && ch1 !== 92 /* CharCode.BACK_SLASH */) {\n return index;\n }\n if (ch == 92 /* CharCode.BACK_SLASH */ && ch1 === 92 /* CharCode.BACK_SLASH */) {\n // two back slashes cancel each other out. For example `\"\\\\\"` should properly end the\n // quotation. (It should not assume that the last `\"` is escaped.)\n ch1 = 0;\n }\n else {\n ch1 = ch;\n }\n }\n throw ngDevMode\n ? malformedStyleError(text, String.fromCharCode(quoteCharCode), endIndex)\n : new Error();\n}\nfunction malformedStyleError(text, expecting, index) {\n ngDevMode && assertEqual(typeof text === 'string', true, 'String expected here');\n throw throwError(`Malformed style at location ${index} in string '` +\n text.substring(0, index) +\n '[>>' +\n text.substring(index, index + 1) +\n '<<]' +\n text.slice(index + 1) +\n `'. Expecting '${expecting}'.`);\n}\n\n/**\n * Update a property on a selected element.\n *\n * Operates on the element selected by index via the {@link select} instruction.\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled\n *\n * @param propName Name of property. Because it is going to DOM, this is not subject to\n * renaming as part of minification.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n * @returns This function returns itself so that it may be chained\n * (e.g. `property('name', ctx.name)('title', ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵproperty(propName, value, sanitizer) {\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, value)) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, false);\n ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n }\n return ɵɵproperty;\n}\n/**\n * Given `<div style=\"...\" my-dir>` and `MyDir` with `@Input('style')` we need to write to\n * directive input.\n */\nfunction setDirectiveInputsWhichShadowsStyling(tView, tNode, lView, value, isClassBased) {\n const inputs = tNode.inputs;\n const property = isClassBased ? 'class' : 'style';\n // We support both 'class' and `className` hence the fallback.\n setInputsForProperty(tView, lView, inputs[property], property, value);\n}\n\n/**\n * Update a style binding on an element with the provided value.\n *\n * If the style value is falsy then it will be removed from the element\n * (or assigned a different value depending if there are any styles placed\n * on the element with `styleMap` or any static styles that are\n * present from when the element was created with `styling`).\n *\n * Note that the styling element is updated as part of `stylingApply`.\n *\n * @param prop A valid CSS property.\n * @param value New value to write (`null` or an empty string to remove).\n * @param suffix Optional suffix. Used with scalar values to add unit such as `px`.\n *\n * Note that this will apply the provided style value to the host element if this function is called\n * within a host binding function.\n *\n * @codeGenApi\n */\nfunction ɵɵstyleProp(prop, value, suffix) {\n checkStylingProperty(prop, value, suffix, false);\n return ɵɵstyleProp;\n}\n/**\n * Update a class binding on an element with the provided value.\n *\n * This instruction is meant to handle the `[class.foo]=\"exp\"` case and,\n * therefore, the class binding itself must already be allocated using\n * `styling` within the creation block.\n *\n * @param prop A valid CSS class (only one).\n * @param value A true/false value which will turn the class on or off.\n *\n * Note that this will apply the provided class value to the host element if this function\n * is called within a host binding function.\n *\n * @codeGenApi\n */\nfunction ɵɵclassProp(className, value) {\n checkStylingProperty(className, value, null, true);\n return ɵɵclassProp;\n}\n/**\n * Update style bindings using an object literal on an element.\n *\n * This instruction is meant to apply styling via the `[style]=\"exp\"` template bindings.\n * When styles are applied to the element they will then be updated with respect to\n * any styles/classes set via `styleProp`. If any styles are set to falsy\n * then they will be removed from the element.\n *\n * Note that the styling instruction will not be applied until `stylingApply` is called.\n *\n * @param styles A key/value style map of the styles that will be applied to the given element.\n * Any missing styles (that have already been applied to the element beforehand) will be\n * removed (unset) from the element's styling.\n *\n * Note that this will apply the provided styleMap value to the host element if this function\n * is called within a host binding.\n *\n * @codeGenApi\n */\nfunction ɵɵstyleMap(styles) {\n checkStylingMap(styleKeyValueArraySet, styleStringParser, styles, false);\n}\n/**\n * Parse text as style and add values to KeyValueArray.\n *\n * This code is pulled out to a separate function so that it can be tree shaken away if it is not\n * needed. It is only referenced from `ɵɵstyleMap`.\n *\n * @param keyValueArray KeyValueArray to add parsed values to.\n * @param text text to parse.\n */\nfunction styleStringParser(keyValueArray, text) {\n for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i)) {\n styleKeyValueArraySet(keyValueArray, getLastParsedKey(text), getLastParsedValue(text));\n }\n}\n/**\n * Update class bindings using an object literal or class-string on an element.\n *\n * This instruction is meant to apply styling via the `[class]=\"exp\"` template bindings.\n * When classes are applied to the element they will then be updated with\n * respect to any styles/classes set via `classProp`. If any\n * classes are set to falsy then they will be removed from the element.\n *\n * Note that the styling instruction will not be applied until `stylingApply` is called.\n * Note that this will the provided classMap value to the host element if this function is called\n * within a host binding.\n *\n * @param classes A key/value map or string of CSS classes that will be added to the\n * given element. Any missing classes (that have already been applied to the element\n * beforehand) will be removed (unset) from the element's list of CSS classes.\n *\n * @codeGenApi\n */\nfunction ɵɵclassMap(classes) {\n checkStylingMap(classKeyValueArraySet, classStringParser, classes, true);\n}\n/**\n * Parse text as class and add values to KeyValueArray.\n *\n * This code is pulled out to a separate function so that it can be tree shaken away if it is not\n * needed. It is only referenced from `ɵɵclassMap`.\n *\n * @param keyValueArray KeyValueArray to add parsed values to.\n * @param text text to parse.\n */\nfunction classStringParser(keyValueArray, text) {\n for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {\n keyValueArraySet(keyValueArray, getLastParsedKey(text), true);\n }\n}\n/**\n * Common code between `ɵɵclassProp` and `ɵɵstyleProp`.\n *\n * @param prop property name.\n * @param value binding value.\n * @param suffix suffix for the property (e.g. `em` or `px`)\n * @param isClassBased `true` if `class` change (`false` if `style`)\n */\nfunction checkStylingProperty(prop, value, suffix, isClassBased) {\n const lView = getLView();\n const tView = getTView();\n // Styling instructions use 2 slots per binding.\n // 1. one for the value / TStylingKey\n // 2. one for the intermittent-value / TStylingRange\n const bindingIndex = incrementBindingIndex(2);\n if (tView.firstUpdatePass) {\n stylingFirstUpdatePass(tView, prop, bindingIndex, isClassBased);\n }\n if (value !== NO_CHANGE && bindingUpdated(lView, bindingIndex, value)) {\n const tNode = tView.data[getSelectedIndex()];\n updateStyling(tView, tNode, lView, lView[RENDERER], prop, (lView[bindingIndex + 1] = normalizeSuffix(value, suffix)), isClassBased, bindingIndex);\n }\n}\n/**\n * Common code between `ɵɵclassMap` and `ɵɵstyleMap`.\n *\n * @param keyValueArraySet (See `keyValueArraySet` in \"util/array_utils\") Gets passed in as a\n * function so that `style` can be processed. This is done for tree shaking purposes.\n * @param stringParser Parser used to parse `value` if `string`. (Passed in as `style` and `class`\n * have different parsers.)\n * @param value bound value from application\n * @param isClassBased `true` if `class` change (`false` if `style`)\n */\nfunction checkStylingMap(keyValueArraySet, stringParser, value, isClassBased) {\n const tView = getTView();\n const bindingIndex = incrementBindingIndex(2);\n if (tView.firstUpdatePass) {\n stylingFirstUpdatePass(tView, null, bindingIndex, isClassBased);\n }\n const lView = getLView();\n if (value !== NO_CHANGE && bindingUpdated(lView, bindingIndex, value)) {\n // `getSelectedIndex()` should be here (rather than in instruction) so that it is guarded by the\n // if so as not to read unnecessarily.\n const tNode = tView.data[getSelectedIndex()];\n if (hasStylingInputShadow(tNode, isClassBased) && !isInHostBindings(tView, bindingIndex)) {\n if (ngDevMode) {\n // verify that if we are shadowing then `TData` is appropriately marked so that we skip\n // processing this binding in styling resolution.\n const tStylingKey = tView.data[bindingIndex];\n assertEqual(Array.isArray(tStylingKey) ? tStylingKey[1] : tStylingKey, false, \"Styling linked list shadow input should be marked as 'false'\");\n }\n // VE does not concatenate the static portion like we are doing here.\n // Instead VE just ignores the static completely if dynamic binding is present.\n // Because of locality we have already set the static portion because we don't know if there\n // is a dynamic portion until later. If we would ignore the static portion it would look like\n // the binding has removed it. This would confuse `[ngStyle]`/`[ngClass]` to do the wrong\n // thing as it would think that the static portion was removed. For this reason we\n // concatenate it so that `[ngStyle]`/`[ngClass]` can continue to work on changed.\n let staticPrefix = isClassBased ? tNode.classesWithoutHost : tNode.stylesWithoutHost;\n ngDevMode &&\n isClassBased === false &&\n staticPrefix !== null &&\n assertEqual(staticPrefix.endsWith(';'), true, \"Expecting static portion to end with ';'\");\n if (staticPrefix !== null) {\n // We want to make sure that falsy values of `value` become empty strings.\n value = concatStringsWithSpace(staticPrefix, value ? value : '');\n }\n // Given `<div [style] my-dir>` such that `my-dir` has `@Input('style')`.\n // This takes over the `[style]` binding. (Same for `[class]`)\n setDirectiveInputsWhichShadowsStyling(tView, tNode, lView, value, isClassBased);\n }\n else {\n updateStylingMap(tView, tNode, lView, lView[RENDERER], lView[bindingIndex + 1], (lView[bindingIndex + 1] = toStylingKeyValueArray(keyValueArraySet, stringParser, value)), isClassBased, bindingIndex);\n }\n }\n}\n/**\n * Determines when the binding is in `hostBindings` section\n *\n * @param tView Current `TView`\n * @param bindingIndex index of binding which we would like if it is in `hostBindings`\n */\nfunction isInHostBindings(tView, bindingIndex) {\n // All host bindings are placed after the expando section.\n return bindingIndex >= tView.expandoStartIndex;\n}\n/**\n * Collects the necessary information to insert the binding into a linked list of style bindings\n * using `insertTStylingBinding`.\n *\n * @param tView `TView` where the binding linked list will be stored.\n * @param tStylingKey Property/key of the binding.\n * @param bindingIndex Index of binding associated with the `prop`\n * @param isClassBased `true` if `class` change (`false` if `style`)\n */\nfunction stylingFirstUpdatePass(tView, tStylingKey, bindingIndex, isClassBased) {\n ngDevMode && assertFirstUpdatePass(tView);\n const tData = tView.data;\n if (tData[bindingIndex + 1] === null) {\n // The above check is necessary because we don't clear first update pass until first successful\n // (no exception) template execution. This prevents the styling instruction from double adding\n // itself to the list.\n // `getSelectedIndex()` should be here (rather than in instruction) so that it is guarded by the\n // if so as not to read unnecessarily.\n const tNode = tData[getSelectedIndex()];\n ngDevMode && assertDefined(tNode, 'TNode expected');\n const isHostBindings = isInHostBindings(tView, bindingIndex);\n if (hasStylingInputShadow(tNode, isClassBased) && tStylingKey === null && !isHostBindings) {\n // `tStylingKey === null` implies that we are either `[style]` or `[class]` binding.\n // If there is a directive which uses `@Input('style')` or `@Input('class')` than\n // we need to neutralize this binding since that directive is shadowing it.\n // We turn this into a noop by setting the key to `false`\n tStylingKey = false;\n }\n tStylingKey = wrapInStaticStylingKey(tData, tNode, tStylingKey, isClassBased);\n insertTStylingBinding(tData, tNode, tStylingKey, bindingIndex, isHostBindings, isClassBased);\n }\n}\n/**\n * Adds static styling information to the binding if applicable.\n *\n * The linked list of styles not only stores the list and keys, but also stores static styling\n * information on some of the keys. This function determines if the key should contain the styling\n * information and computes it.\n *\n * See `TStylingStatic` for more details.\n *\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param stylingKey `TStylingKeyPrimitive` which may need to be wrapped into `TStylingKey`\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction wrapInStaticStylingKey(tData, tNode, stylingKey, isClassBased) {\n const hostDirectiveDef = getCurrentDirectiveDef(tData);\n let residual = isClassBased ? tNode.residualClasses : tNode.residualStyles;\n if (hostDirectiveDef === null) {\n // We are in template node.\n // If template node already had styling instruction then it has already collected the static\n // styling and there is no need to collect them again. We know that we are the first styling\n // instruction because the `TNode.*Bindings` points to 0 (nothing has been inserted yet).\n const isFirstStylingInstructionInTemplate = (isClassBased ? tNode.classBindings : tNode.styleBindings) === 0;\n if (isFirstStylingInstructionInTemplate) {\n // It would be nice to be able to get the statics from `mergeAttrs`, however, at this point\n // they are already merged and it would not be possible to figure which property belongs where\n // in the priority.\n stylingKey = collectStylingFromDirectives(null, tData, tNode, stylingKey, isClassBased);\n stylingKey = collectStylingFromTAttrs(stylingKey, tNode.attrs, isClassBased);\n // We know that if we have styling binding in template we can't have residual.\n residual = null;\n }\n }\n else {\n // We are in host binding node and there was no binding instruction in template node.\n // This means that we need to compute the residual.\n const directiveStylingLast = tNode.directiveStylingLast;\n const isFirstStylingInstructionInHostBinding = directiveStylingLast === -1 || tData[directiveStylingLast] !== hostDirectiveDef;\n if (isFirstStylingInstructionInHostBinding) {\n stylingKey = collectStylingFromDirectives(hostDirectiveDef, tData, tNode, stylingKey, isClassBased);\n if (residual === null) {\n // - If `null` than either:\n // - Template styling instruction already ran and it has consumed the static\n // styling into its `TStylingKey` and so there is no need to update residual. Instead\n // we need to update the `TStylingKey` associated with the first template node\n // instruction. OR\n // - Some other styling instruction ran and determined that there are no residuals\n let templateStylingKey = getTemplateHeadTStylingKey(tData, tNode, isClassBased);\n if (templateStylingKey !== undefined && Array.isArray(templateStylingKey)) {\n // Only recompute if `templateStylingKey` had static values. (If no static value found\n // then there is nothing to do since this operation can only produce less static keys, not\n // more.)\n templateStylingKey = collectStylingFromDirectives(null, tData, tNode, templateStylingKey[1] /* unwrap previous statics */, isClassBased);\n templateStylingKey = collectStylingFromTAttrs(templateStylingKey, tNode.attrs, isClassBased);\n setTemplateHeadTStylingKey(tData, tNode, isClassBased, templateStylingKey);\n }\n }\n else {\n // We only need to recompute residual if it is not `null`.\n // - If existing residual (implies there was no template styling). This means that some of\n // the statics may have moved from the residual to the `stylingKey` and so we have to\n // recompute.\n // - If `undefined` this is the first time we are running.\n residual = collectResidual(tData, tNode, isClassBased);\n }\n }\n }\n if (residual !== undefined) {\n isClassBased ? (tNode.residualClasses = residual) : (tNode.residualStyles = residual);\n }\n return stylingKey;\n}\n/**\n * Retrieve the `TStylingKey` for the template styling instruction.\n *\n * This is needed since `hostBinding` styling instructions are inserted after the template\n * instruction. While the template instruction needs to update the residual in `TNode` the\n * `hostBinding` instructions need to update the `TStylingKey` of the template instruction because\n * the template instruction is downstream from the `hostBindings` instructions.\n *\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @return `TStylingKey` if found or `undefined` if not found.\n */\nfunction getTemplateHeadTStylingKey(tData, tNode, isClassBased) {\n const bindings = isClassBased ? tNode.classBindings : tNode.styleBindings;\n if (getTStylingRangeNext(bindings) === 0) {\n // There does not seem to be a styling instruction in the `template`.\n return undefined;\n }\n return tData[getTStylingRangePrev(bindings)];\n}\n/**\n * Update the `TStylingKey` of the first template instruction in `TNode`.\n *\n * Logically `hostBindings` styling instructions are of lower priority than that of the template.\n * However, they execute after the template styling instructions. This means that they get inserted\n * in front of the template styling instructions.\n *\n * If we have a template styling instruction and a new `hostBindings` styling instruction is\n * executed it means that it may need to steal static fields from the template instruction. This\n * method allows us to update the first template instruction `TStylingKey` with a new value.\n *\n * Assume:\n * ```angular-ts\n * <div my-dir style=\"color: red\" [style.color]=\"tmplExp\"></div>\n *\n * @Directive({\n * host: {\n * 'style': 'width: 100px',\n * '[style.color]': 'dirExp',\n * }\n * })\n * class MyDir {}\n * ```\n *\n * when `[style.color]=\"tmplExp\"` executes it creates this data structure.\n * ```ts\n * ['', 'color', 'color', 'red', 'width', '100px'],\n * ```\n *\n * The reason for this is that the template instruction does not know if there are styling\n * instructions and must assume that there are none and must collect all of the static styling.\n * (both\n * `color' and 'width`)\n *\n * When `'[style.color]': 'dirExp',` executes we need to insert a new data into the linked list.\n * ```ts\n * ['', 'color', 'width', '100px'], // newly inserted\n * ['', 'color', 'color', 'red', 'width', '100px'], // this is wrong\n * ```\n *\n * Notice that the template statics is now wrong as it incorrectly contains `width` so we need to\n * update it like so:\n * ```ts\n * ['', 'color', 'width', '100px'],\n * ['', 'color', 'color', 'red'], // UPDATE\n * ```\n *\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @param tStylingKey New `TStylingKey` which is replacing the old one.\n */\nfunction setTemplateHeadTStylingKey(tData, tNode, isClassBased, tStylingKey) {\n const bindings = isClassBased ? tNode.classBindings : tNode.styleBindings;\n ngDevMode &&\n assertNotEqual(getTStylingRangeNext(bindings), 0, 'Expecting to have at least one template styling binding.');\n tData[getTStylingRangePrev(bindings)] = tStylingKey;\n}\n/**\n * Collect all static values after the current `TNode.directiveStylingLast` index.\n *\n * Collect the remaining styling information which has not yet been collected by an existing\n * styling instruction.\n *\n * @param tData `TData` where the `DirectiveDefs` are stored.\n * @param tNode `TNode` which contains the directive range.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction collectResidual(tData, tNode, isClassBased) {\n let residual = undefined;\n const directiveEnd = tNode.directiveEnd;\n ngDevMode &&\n assertNotEqual(tNode.directiveStylingLast, -1, 'By the time this function gets called at least one hostBindings-node styling instruction must have executed.');\n // We add `1 + tNode.directiveStart` because we need to skip the current directive (as we are\n // collecting things after the last `hostBindings` directive which had a styling instruction.)\n for (let i = 1 + tNode.directiveStylingLast; i < directiveEnd; i++) {\n const attrs = tData[i].hostAttrs;\n residual = collectStylingFromTAttrs(residual, attrs, isClassBased);\n }\n return collectStylingFromTAttrs(residual, tNode.attrs, isClassBased);\n}\n/**\n * Collect the static styling information with lower priority than `hostDirectiveDef`.\n *\n * (This is opposite of residual styling.)\n *\n * @param hostDirectiveDef `DirectiveDef` for which we want to collect lower priority static\n * styling. (Or `null` if template styling)\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param stylingKey Existing `TStylingKey` to update or wrap.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction collectStylingFromDirectives(hostDirectiveDef, tData, tNode, stylingKey, isClassBased) {\n // We need to loop because there can be directives which have `hostAttrs` but don't have\n // `hostBindings` so this loop catches up to the current directive..\n let currentDirective = null;\n const directiveEnd = tNode.directiveEnd;\n let directiveStylingLast = tNode.directiveStylingLast;\n if (directiveStylingLast === -1) {\n directiveStylingLast = tNode.directiveStart;\n }\n else {\n directiveStylingLast++;\n }\n while (directiveStylingLast < directiveEnd) {\n currentDirective = tData[directiveStylingLast];\n ngDevMode && assertDefined(currentDirective, 'expected to be defined');\n stylingKey = collectStylingFromTAttrs(stylingKey, currentDirective.hostAttrs, isClassBased);\n if (currentDirective === hostDirectiveDef)\n break;\n directiveStylingLast++;\n }\n if (hostDirectiveDef !== null) {\n // we only advance the styling cursor if we are collecting data from host bindings.\n // Template executes before host bindings and so if we would update the index,\n // host bindings would not get their statics.\n tNode.directiveStylingLast = directiveStylingLast;\n }\n return stylingKey;\n}\n/**\n * Convert `TAttrs` into `TStylingStatic`.\n *\n * @param stylingKey existing `TStylingKey` to update or wrap.\n * @param attrs `TAttributes` to process.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction collectStylingFromTAttrs(stylingKey, attrs, isClassBased) {\n const desiredMarker = isClassBased ? 1 /* AttributeMarker.Classes */ : 2 /* AttributeMarker.Styles */;\n let currentMarker = -1 /* AttributeMarker.ImplicitAttributes */;\n if (attrs !== null) {\n for (let i = 0; i < attrs.length; i++) {\n const item = attrs[i];\n if (typeof item === 'number') {\n currentMarker = item;\n }\n else {\n if (currentMarker === desiredMarker) {\n if (!Array.isArray(stylingKey)) {\n stylingKey = stylingKey === undefined ? [] : ['', stylingKey];\n }\n keyValueArraySet(stylingKey, item, isClassBased ? true : attrs[++i]);\n }\n }\n }\n }\n return stylingKey === undefined ? null : stylingKey;\n}\n/**\n * Convert user input to `KeyValueArray`.\n *\n * This function takes user input which could be `string`, Object literal, or iterable and converts\n * it into a consistent representation. The output of this is `KeyValueArray` (which is an array\n * where\n * even indexes contain keys and odd indexes contain values for those keys).\n *\n * The advantage of converting to `KeyValueArray` is that we can perform diff in an input\n * independent\n * way.\n * (ie we can compare `foo bar` to `['bar', 'baz'] and determine a set of changes which need to be\n * applied)\n *\n * The fact that `KeyValueArray` is sorted is very important because it allows us to compute the\n * difference in linear fashion without the need to allocate any additional data.\n *\n * For example if we kept this as a `Map` we would have to iterate over previous `Map` to determine\n * which values need to be deleted, over the new `Map` to determine additions, and we would have to\n * keep additional `Map` to keep track of duplicates or items which have not yet been visited.\n *\n * @param keyValueArraySet (See `keyValueArraySet` in \"util/array_utils\") Gets passed in as a\n * function so that `style` can be processed. This is done\n * for tree shaking purposes.\n * @param stringParser The parser is passed in so that it will be tree shakable. See\n * `styleStringParser` and `classStringParser`\n * @param value The value to parse/convert to `KeyValueArray`\n */\nfunction toStylingKeyValueArray(keyValueArraySet, stringParser, value) {\n if (value == null /*|| value === undefined */ || value === '')\n return EMPTY_ARRAY;\n const styleKeyValueArray = [];\n const unwrappedValue = unwrapSafeValue(value);\n if (Array.isArray(unwrappedValue)) {\n for (let i = 0; i < unwrappedValue.length; i++) {\n keyValueArraySet(styleKeyValueArray, unwrappedValue[i], true);\n }\n }\n else if (typeof unwrappedValue === 'object') {\n for (const key in unwrappedValue) {\n if (unwrappedValue.hasOwnProperty(key)) {\n keyValueArraySet(styleKeyValueArray, key, unwrappedValue[key]);\n }\n }\n }\n else if (typeof unwrappedValue === 'string') {\n stringParser(styleKeyValueArray, unwrappedValue);\n }\n else {\n ngDevMode &&\n throwError('Unsupported styling type ' + typeof unwrappedValue + ': ' + unwrappedValue);\n }\n return styleKeyValueArray;\n}\n/**\n * Set a `value` for a `key`.\n *\n * See: `keyValueArraySet` for details\n *\n * @param keyValueArray KeyValueArray to add to.\n * @param key Style key to add.\n * @param value The value to set.\n */\nfunction styleKeyValueArraySet(keyValueArray, key, value) {\n keyValueArraySet(keyValueArray, key, unwrapSafeValue(value));\n}\n/**\n * Class-binding-specific function for setting the `value` for a `key`.\n *\n * See: `keyValueArraySet` for details\n *\n * @param keyValueArray KeyValueArray to add to.\n * @param key Style key to add.\n * @param value The value to set.\n */\nfunction classKeyValueArraySet(keyValueArray, key, value) {\n // We use `classList.add` to eventually add the CSS classes to the DOM node. Any value passed into\n // `add` is stringified and added to the `class` attribute, e.g. even null, undefined or numbers\n // will be added. Stringify the key here so that our internal data structure matches the value in\n // the DOM. The only exceptions are empty strings and strings that contain spaces for which\n // the browser throws an error. We ignore such values, because the error is somewhat cryptic.\n const stringKey = String(key);\n if (stringKey !== '' && !stringKey.includes(' ')) {\n keyValueArraySet(keyValueArray, stringKey, value);\n }\n}\n/**\n * Update map based styling.\n *\n * Map based styling could be anything which contains more than one binding. For example `string`,\n * or object literal. Dealing with all of these types would complicate the logic so\n * instead this function expects that the complex input is first converted into normalized\n * `KeyValueArray`. The advantage of normalization is that we get the values sorted, which makes it\n * very cheap to compute deltas between the previous and current value.\n *\n * @param tView Associated `TView.data` contains the linked list of binding priorities.\n * @param tNode `TNode` where the binding is located.\n * @param lView `LView` contains the values associated with other styling binding at this `TNode`.\n * @param renderer Renderer to use if any updates.\n * @param oldKeyValueArray Previous value represented as `KeyValueArray`\n * @param newKeyValueArray Current value represented as `KeyValueArray`\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @param bindingIndex Binding index of the binding.\n */\nfunction updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {\n if (oldKeyValueArray === NO_CHANGE) {\n // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.\n oldKeyValueArray = EMPTY_ARRAY;\n }\n let oldIndex = 0;\n let newIndex = 0;\n let oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;\n let newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;\n while (oldKey !== null || newKey !== null) {\n ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');\n ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');\n const oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;\n const newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;\n let setKey = null;\n let setValue = undefined;\n if (oldKey === newKey) {\n // UPDATE: Keys are equal => new value is overwriting old value.\n oldIndex += 2;\n newIndex += 2;\n if (oldValue !== newValue) {\n setKey = newKey;\n setValue = newValue;\n }\n }\n else if (newKey === null || (oldKey !== null && oldKey < newKey)) {\n // DELETE: oldKey key is missing or we did not find the oldKey in the newValue\n // (because the keyValueArray is sorted and `newKey` is found later alphabetically).\n // `\"background\" < \"color\"` so we need to delete `\"background\"` because it is not found in the\n // new array.\n oldIndex += 2;\n setKey = oldKey;\n }\n else {\n // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.\n // `\"color\" > \"background\"` so we need to add `color` because it is in new array but not in\n // old array.\n ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');\n newIndex += 2;\n setKey = newKey;\n setValue = newValue;\n }\n if (setKey !== null) {\n updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);\n }\n oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;\n newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;\n }\n}\n/**\n * Update a simple (property name) styling.\n *\n * This function takes `prop` and updates the DOM to that value. The function takes the binding\n * value as well as binding priority into consideration to determine which value should be written\n * to DOM. (For example it may be determined that there is a higher priority overwrite which blocks\n * the DOM write, or if the value goes to `undefined` a lower priority overwrite may be consulted.)\n *\n * @param tView Associated `TView.data` contains the linked list of binding priorities.\n * @param tNode `TNode` where the binding is located.\n * @param lView `LView` contains the values associated with other styling binding at this `TNode`.\n * @param renderer Renderer to use if any updates.\n * @param prop Either style property name or a class name.\n * @param value Either style value for `prop` or `true`/`false` if `prop` is class.\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @param bindingIndex Binding index of the binding.\n */\nfunction updateStyling(tView, tNode, lView, renderer, prop, value, isClassBased, bindingIndex) {\n if (!(tNode.type & 3 /* TNodeType.AnyRNode */)) {\n // It is possible to have styling on non-elements (such as ng-container).\n // This is rare, but it does happen. In such a case, just ignore the binding.\n return;\n }\n const tData = tView.data;\n const tRange = tData[bindingIndex + 1];\n const higherPriorityValue = getTStylingRangeNextDuplicate(tRange)\n ? findStylingValue(tData, tNode, lView, prop, getTStylingRangeNext(tRange), isClassBased)\n : undefined;\n if (!isStylingValuePresent(higherPriorityValue)) {\n // We don't have a next duplicate, or we did not find a duplicate value.\n if (!isStylingValuePresent(value)) {\n // We should delete current value or restore to lower priority value.\n if (getTStylingRangePrevDuplicate(tRange)) {\n // We have a possible prev duplicate, let's retrieve it.\n value = findStylingValue(tData, null, lView, prop, bindingIndex, isClassBased);\n }\n }\n const rNode = getNativeByIndex(getSelectedIndex(), lView);\n applyStyling(renderer, isClassBased, rNode, prop, value);\n }\n}\n/**\n * Search for styling value with higher priority which is overwriting current value, or a\n * value of lower priority to which we should fall back if the value is `undefined`.\n *\n * When value is being applied at a location, related values need to be consulted.\n * - If there is a higher priority binding, we should be using that one instead.\n * For example `<div [style]=\"{color:exp1}\" [style.color]=\"exp2\">` change to `exp1`\n * requires that we check `exp2` to see if it is set to value other than `undefined`.\n * - If there is a lower priority binding and we are changing to `undefined`\n * For example `<div [style]=\"{color:exp1}\" [style.color]=\"exp2\">` change to `exp2` to\n * `undefined` requires that we check `exp1` (and static values) and use that as new value.\n *\n * NOTE: The styling stores two values.\n * 1. The raw value which came from the application is stored at `index + 0` location. (This value\n * is used for dirty checking).\n * 2. The normalized value is stored at `index + 1`.\n *\n * @param tData `TData` used for traversing the priority.\n * @param tNode `TNode` to use for resolving static styling. Also controls search direction.\n * - `TNode` search next and quit as soon as `isStylingValuePresent(value)` is true.\n * If no value found consult `tNode.residualStyle`/`tNode.residualClass` for default value.\n * - `null` search prev and go all the way to end. Return last value where\n * `isStylingValuePresent(value)` is true.\n * @param lView `LView` used for retrieving the actual values.\n * @param prop Property which we are interested in.\n * @param index Starting index in the linked list of styling bindings where the search should start.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction findStylingValue(tData, tNode, lView, prop, index, isClassBased) {\n // `TNode` to use for resolving static styling. Also controls search direction.\n // - `TNode` search next and quit as soon as `isStylingValuePresent(value)` is true.\n // If no value found consult `tNode.residualStyle`/`tNode.residualClass` for default value.\n // - `null` search prev and go all the way to end. Return last value where\n // `isStylingValuePresent(value)` is true.\n const isPrevDirection = tNode === null;\n let value = undefined;\n while (index > 0) {\n const rawKey = tData[index];\n const containsStatics = Array.isArray(rawKey);\n // Unwrap the key if we contain static values.\n const key = containsStatics ? rawKey[1] : rawKey;\n const isStylingMap = key === null;\n let valueAtLViewIndex = lView[index + 1];\n if (valueAtLViewIndex === NO_CHANGE) {\n // In firstUpdatePass the styling instructions create a linked list of styling.\n // On subsequent passes it is possible for a styling instruction to try to read a binding\n // which\n // has not yet executed. In that case we will find `NO_CHANGE` and we should assume that\n // we have `undefined` (or empty array in case of styling-map instruction) instead. This\n // allows the resolution to apply the value (which may later be overwritten when the\n // binding actually executes.)\n valueAtLViewIndex = isStylingMap ? EMPTY_ARRAY : undefined;\n }\n let currentValue = isStylingMap\n ? keyValueArrayGet(valueAtLViewIndex, prop)\n : key === prop\n ? valueAtLViewIndex\n : undefined;\n if (containsStatics && !isStylingValuePresent(currentValue)) {\n currentValue = keyValueArrayGet(rawKey, prop);\n }\n if (isStylingValuePresent(currentValue)) {\n value = currentValue;\n if (isPrevDirection) {\n return value;\n }\n }\n const tRange = tData[index + 1];\n index = isPrevDirection ? getTStylingRangePrev(tRange) : getTStylingRangeNext(tRange);\n }\n if (tNode !== null) {\n // in case where we are going in next direction AND we did not find anything, we need to\n // consult residual styling\n let residual = isClassBased ? tNode.residualClasses : tNode.residualStyles;\n if (residual != null /** OR residual !=== undefined */) {\n value = keyValueArrayGet(residual, prop);\n }\n }\n return value;\n}\n/**\n * Determines if the binding value should be used (or if the value is 'undefined' and hence priority\n * resolution should be used.)\n *\n * @param value Binding style value.\n */\nfunction isStylingValuePresent(value) {\n // Currently only `undefined` value is considered non-binding. That is `undefined` says I don't\n // have an opinion as to what this binding should be and you should consult other bindings by\n // priority to determine the valid value.\n // This is extracted into a single function so that we have a single place to control this.\n return value !== undefined;\n}\n/**\n * Normalizes and/or adds a suffix to the value.\n *\n * If value is `null`/`undefined` no suffix is added\n * @param value\n * @param suffix\n */\nfunction normalizeSuffix(value, suffix) {\n if (value == null || value === '') {\n // do nothing\n // Do not add the suffix if the value is going to be empty.\n // As it produce invalid CSS, which the browsers will automatically omit but Domino will not.\n // Example: `\"left\": \"px;\"` instead of `\"left\": \"\"`.\n }\n else if (typeof suffix === 'string') {\n value = value + suffix;\n }\n else if (typeof value === 'object') {\n value = stringify(unwrapSafeValue(value));\n }\n return value;\n}\n/**\n * Tests if the `TNode` has input shadow.\n *\n * An input shadow is when a directive steals (shadows) the input by using `@Input('style')` or\n * `@Input('class')` as input.\n *\n * @param tNode `TNode` which we would like to see if it has shadow.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction hasStylingInputShadow(tNode, isClassBased) {\n return (tNode.flags & (isClassBased ? 8 /* TNodeFlags.hasClassInput */ : 16 /* TNodeFlags.hasStyleInput */)) !== 0;\n}\n\n/**\n *\n * Update an interpolated class on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate1('prefix', v0, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate1(prefix, v0, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate2('prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate2(prefix, v0, i0, v1, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate3(\n * 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate4(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate5(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate6(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate7(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate8(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n * Update an interpolated class on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolateV(\n * ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *.\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolateV(values) {\n const lView = getLView();\n const interpolatedValue = interpolationV(lView, values);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Instruction that returns the component instance in which the current instruction is executing.\n * This is a constant-time version of `nextContent` for the case where we know that we need the\n * component instance specifically, rather than the context of a particular template.\n *\n * @codeGenApi\n */\nfunction ɵɵcomponentInstance() {\n const instance = getLView()[DECLARATION_COMPONENT_VIEW][CONTEXT];\n ngDevMode && assertDefined(instance, 'Expected component instance to be defined');\n return instance;\n}\n\n/**\n * A type representing the live collection to be reconciled with any new (incoming) collection. This\n * is an adapter class that makes it possible to work with different internal data structures,\n * regardless of the actual values of the incoming collection.\n */\nclass LiveCollection {\n destroy(item) {\n // noop by default\n }\n updateValue(index, value) {\n // noop by default\n }\n // operations below could be implemented on top of the operations defined so far, but having\n // them explicitly allow clear expression of intent and potentially more performant\n // implementations\n swap(index1, index2) {\n const startIdx = Math.min(index1, index2);\n const endIdx = Math.max(index1, index2);\n const endItem = this.detach(endIdx);\n if (endIdx - startIdx > 1) {\n const startItem = this.detach(startIdx);\n this.attach(startIdx, endItem);\n this.attach(endIdx, startItem);\n }\n else {\n this.attach(startIdx, endItem);\n }\n }\n move(prevIndex, newIdx) {\n this.attach(newIdx, this.detach(prevIndex));\n }\n}\nfunction valuesMatching(liveIdx, liveValue, newIdx, newValue, trackBy) {\n if (liveIdx === newIdx && Object.is(liveValue, newValue)) {\n // matching and no value identity to update\n return 1;\n }\n else if (Object.is(trackBy(liveIdx, liveValue), trackBy(newIdx, newValue))) {\n // matching but requires value identity update\n return -1;\n }\n return 0;\n}\nfunction recordDuplicateKeys(keyToIdx, key, idx) {\n const idxSoFar = keyToIdx.get(key);\n if (idxSoFar !== undefined) {\n idxSoFar.add(idx);\n }\n else {\n keyToIdx.set(key, new Set([idx]));\n }\n}\n/**\n * The live collection reconciliation algorithm that perform various in-place operations, so it\n * reflects the content of the new (incoming) collection.\n *\n * The reconciliation algorithm has 2 code paths:\n * - \"fast\" path that don't require any memory allocation;\n * - \"slow\" path that requires additional memory allocation for intermediate data structures used to\n * collect additional information about the live collection.\n * It might happen that the algorithm switches between the two modes in question in a single\n * reconciliation path - generally it tries to stay on the \"fast\" path as much as possible.\n *\n * The overall complexity of the algorithm is O(n + m) for speed and O(n) for memory (where n is the\n * length of the live collection and m is the length of the incoming collection). Given the problem\n * at hand the complexity / performance constraints makes it impossible to perform the absolute\n * minimum of operation to reconcile the 2 collections. The algorithm makes different tradeoffs to\n * stay within reasonable performance bounds and may apply sub-optimal number of operations in\n * certain situations.\n *\n * @param liveCollection the current, live collection;\n * @param newCollection the new, incoming collection;\n * @param trackByFn key generation function that determines equality between items in the life and\n * incoming collection;\n */\nfunction reconcile(liveCollection, newCollection, trackByFn) {\n let detachedItems = undefined;\n let liveKeysInTheFuture = undefined;\n let liveStartIdx = 0;\n let liveEndIdx = liveCollection.length - 1;\n const duplicateKeys = ngDevMode ? new Map() : undefined;\n if (Array.isArray(newCollection)) {\n let newEndIdx = newCollection.length - 1;\n while (liveStartIdx <= liveEndIdx && liveStartIdx <= newEndIdx) {\n // compare from the beginning\n const liveStartValue = liveCollection.at(liveStartIdx);\n const newStartValue = newCollection[liveStartIdx];\n if (ngDevMode) {\n recordDuplicateKeys(duplicateKeys, trackByFn(liveStartIdx, newStartValue), liveStartIdx);\n }\n const isStartMatching = valuesMatching(liveStartIdx, liveStartValue, liveStartIdx, newStartValue, trackByFn);\n if (isStartMatching !== 0) {\n if (isStartMatching < 0) {\n liveCollection.updateValue(liveStartIdx, newStartValue);\n }\n liveStartIdx++;\n continue;\n }\n // compare from the end\n // TODO(perf): do _all_ the matching from the end\n const liveEndValue = liveCollection.at(liveEndIdx);\n const newEndValue = newCollection[newEndIdx];\n if (ngDevMode) {\n recordDuplicateKeys(duplicateKeys, trackByFn(newEndIdx, newEndValue), newEndIdx);\n }\n const isEndMatching = valuesMatching(liveEndIdx, liveEndValue, newEndIdx, newEndValue, trackByFn);\n if (isEndMatching !== 0) {\n if (isEndMatching < 0) {\n liveCollection.updateValue(liveEndIdx, newEndValue);\n }\n liveEndIdx--;\n newEndIdx--;\n continue;\n }\n // Detect swap and moves:\n const liveStartKey = trackByFn(liveStartIdx, liveStartValue);\n const liveEndKey = trackByFn(liveEndIdx, liveEndValue);\n const newStartKey = trackByFn(liveStartIdx, newStartValue);\n if (Object.is(newStartKey, liveEndKey)) {\n const newEndKey = trackByFn(newEndIdx, newEndValue);\n // detect swap on both ends;\n if (Object.is(newEndKey, liveStartKey)) {\n liveCollection.swap(liveStartIdx, liveEndIdx);\n liveCollection.updateValue(liveEndIdx, newEndValue);\n newEndIdx--;\n liveEndIdx--;\n }\n else {\n // the new item is the same as the live item with the end pointer - this is a move forward\n // to an earlier index;\n liveCollection.move(liveEndIdx, liveStartIdx);\n }\n liveCollection.updateValue(liveStartIdx, newStartValue);\n liveStartIdx++;\n continue;\n }\n // Fallback to the slow path: we need to learn more about the content of the live and new\n // collections.\n detachedItems ??= new UniqueValueMultiKeyMap();\n liveKeysInTheFuture ??= initLiveItemsInTheFuture(liveCollection, liveStartIdx, liveEndIdx, trackByFn);\n // Check if I'm inserting a previously detached item: if so, attach it here\n if (attachPreviouslyDetached(liveCollection, detachedItems, liveStartIdx, newStartKey)) {\n liveCollection.updateValue(liveStartIdx, newStartValue);\n liveStartIdx++;\n liveEndIdx++;\n }\n else if (!liveKeysInTheFuture.has(newStartKey)) {\n // Check if we seen a new item that doesn't exist in the old collection and must be INSERTED\n const newItem = liveCollection.create(liveStartIdx, newCollection[liveStartIdx]);\n liveCollection.attach(liveStartIdx, newItem);\n liveStartIdx++;\n liveEndIdx++;\n }\n else {\n // We know that the new item exists later on in old collection but we don't know its index\n // and as the consequence can't move it (don't know where to find it). Detach the old item,\n // hoping that it unlocks the fast path again.\n detachedItems.set(liveStartKey, liveCollection.detach(liveStartIdx));\n liveEndIdx--;\n }\n }\n // Final cleanup steps:\n // - more items in the new collection => insert\n while (liveStartIdx <= newEndIdx) {\n createOrAttach(liveCollection, detachedItems, trackByFn, liveStartIdx, newCollection[liveStartIdx]);\n liveStartIdx++;\n }\n }\n else if (newCollection != null) {\n // iterable - immediately fallback to the slow path\n const newCollectionIterator = newCollection[Symbol.iterator]();\n let newIterationResult = newCollectionIterator.next();\n while (!newIterationResult.done && liveStartIdx <= liveEndIdx) {\n const liveValue = liveCollection.at(liveStartIdx);\n const newValue = newIterationResult.value;\n if (ngDevMode) {\n recordDuplicateKeys(duplicateKeys, trackByFn(liveStartIdx, newValue), liveStartIdx);\n }\n const isStartMatching = valuesMatching(liveStartIdx, liveValue, liveStartIdx, newValue, trackByFn);\n if (isStartMatching !== 0) {\n // found a match - move on, but update value\n if (isStartMatching < 0) {\n liveCollection.updateValue(liveStartIdx, newValue);\n }\n liveStartIdx++;\n newIterationResult = newCollectionIterator.next();\n }\n else {\n detachedItems ??= new UniqueValueMultiKeyMap();\n liveKeysInTheFuture ??= initLiveItemsInTheFuture(liveCollection, liveStartIdx, liveEndIdx, trackByFn);\n // Check if I'm inserting a previously detached item: if so, attach it here\n const newKey = trackByFn(liveStartIdx, newValue);\n if (attachPreviouslyDetached(liveCollection, detachedItems, liveStartIdx, newKey)) {\n liveCollection.updateValue(liveStartIdx, newValue);\n liveStartIdx++;\n liveEndIdx++;\n newIterationResult = newCollectionIterator.next();\n }\n else if (!liveKeysInTheFuture.has(newKey)) {\n liveCollection.attach(liveStartIdx, liveCollection.create(liveStartIdx, newValue));\n liveStartIdx++;\n liveEndIdx++;\n newIterationResult = newCollectionIterator.next();\n }\n else {\n // it is a move forward - detach the current item without advancing in collections\n const liveKey = trackByFn(liveStartIdx, liveValue);\n detachedItems.set(liveKey, liveCollection.detach(liveStartIdx));\n liveEndIdx--;\n }\n }\n }\n // this is a new item as we run out of the items in the old collection - create or attach a\n // previously detached one\n while (!newIterationResult.done) {\n createOrAttach(liveCollection, detachedItems, trackByFn, liveCollection.length, newIterationResult.value);\n newIterationResult = newCollectionIterator.next();\n }\n }\n // Cleanups common to the array and iterable:\n // - more items in the live collection => delete starting from the end;\n while (liveStartIdx <= liveEndIdx) {\n liveCollection.destroy(liveCollection.detach(liveEndIdx--));\n }\n // - destroy items that were detached but never attached again.\n detachedItems?.forEach((item) => {\n liveCollection.destroy(item);\n });\n // report duplicate keys (dev mode only)\n if (ngDevMode) {\n let duplicatedKeysMsg = [];\n for (const [key, idxSet] of duplicateKeys) {\n if (idxSet.size > 1) {\n const idx = [...idxSet].sort((a, b) => a - b);\n for (let i = 1; i < idx.length; i++) {\n duplicatedKeysMsg.push(`key \"${stringifyForError(key)}\" at index \"${idx[i - 1]}\" and \"${idx[i]}\"`);\n }\n }\n }\n if (duplicatedKeysMsg.length > 0) {\n const message = formatRuntimeError(-955 /* RuntimeErrorCode.LOOP_TRACK_DUPLICATE_KEYS */, 'The provided track expression resulted in duplicated keys for a given collection. ' +\n 'Adjust the tracking expression such that it uniquely identifies all the items in the collection. ' +\n 'Duplicated keys were: \\n' +\n duplicatedKeysMsg.join(', \\n') +\n '.');\n console.warn(message);\n }\n }\n}\nfunction attachPreviouslyDetached(prevCollection, detachedItems, index, key) {\n if (detachedItems !== undefined && detachedItems.has(key)) {\n prevCollection.attach(index, detachedItems.get(key));\n detachedItems.delete(key);\n return true;\n }\n return false;\n}\nfunction createOrAttach(liveCollection, detachedItems, trackByFn, index, value) {\n if (!attachPreviouslyDetached(liveCollection, detachedItems, index, trackByFn(index, value))) {\n const newItem = liveCollection.create(index, value);\n liveCollection.attach(index, newItem);\n }\n else {\n liveCollection.updateValue(index, value);\n }\n}\nfunction initLiveItemsInTheFuture(liveCollection, start, end, trackByFn) {\n const keys = new Set();\n for (let i = start; i <= end; i++) {\n keys.add(trackByFn(i, liveCollection.at(i)));\n }\n return keys;\n}\n/**\n * A specific, partial implementation of the Map interface with the following characteristics:\n * - allows multiple values for a given key;\n * - maintain FIFO order for multiple values corresponding to a given key;\n * - assumes that all values are unique.\n *\n * The implementation aims at having the minimal overhead for cases where keys are _not_ duplicated\n * (the most common case in the list reconciliation algorithm). To achieve this, the first value for\n * a given key is stored in a regular map. Then, when more values are set for a given key, we\n * maintain a form of linked list in a separate map. To maintain this linked list we assume that all\n * values (in the entire collection) are unique.\n */\nclass UniqueValueMultiKeyMap {\n // A map from a key to the first value corresponding to this key.\n kvMap = new Map();\n // A map that acts as a linked list of values - each value maps to the next value in this \"linked\n // list\" (this only works if values are unique). Allocated lazily to avoid memory consumption when\n // there are no duplicated values.\n _vMap = undefined;\n has(key) {\n return this.kvMap.has(key);\n }\n delete(key) {\n if (!this.has(key))\n return false;\n const value = this.kvMap.get(key);\n if (this._vMap !== undefined && this._vMap.has(value)) {\n this.kvMap.set(key, this._vMap.get(value));\n this._vMap.delete(value);\n }\n else {\n this.kvMap.delete(key);\n }\n return true;\n }\n get(key) {\n return this.kvMap.get(key);\n }\n set(key, value) {\n if (this.kvMap.has(key)) {\n let prevValue = this.kvMap.get(key);\n // Note: we don't use `assertNotSame`, because the value needs to be stringified even if\n // there is no error which can freeze the browser for large values (see #58509).\n if (ngDevMode && prevValue === value) {\n throw new Error(`Detected a duplicated value ${value} for the key ${key}`);\n }\n if (this._vMap === undefined) {\n this._vMap = new Map();\n }\n const vMap = this._vMap;\n while (vMap.has(prevValue)) {\n prevValue = vMap.get(prevValue);\n }\n vMap.set(prevValue, value);\n }\n else {\n this.kvMap.set(key, value);\n }\n }\n forEach(cb) {\n for (let [key, value] of this.kvMap) {\n cb(value, key);\n if (this._vMap !== undefined) {\n const vMap = this._vMap;\n while (vMap.has(value)) {\n value = vMap.get(value);\n cb(value, key);\n }\n }\n }\n }\n}\n\n/**\n * The conditional instruction represents the basic building block on the runtime side to support\n * built-in \"if\" and \"switch\". On the high level this instruction is responsible for adding and\n * removing views selected by a conditional expression.\n *\n * @param matchingTemplateIndex Index of a template TNode representing a conditional view to be\n * inserted; -1 represents a special case when there is no view to insert.\n * @param contextValue Value that should be exposed as the context of the conditional.\n * @codeGenApi\n */\nfunction ɵɵconditional(matchingTemplateIndex, contextValue) {\n performanceMarkFeature('NgControlFlow');\n const hostLView = getLView();\n const bindingIndex = nextBindingIndex();\n const prevMatchingTemplateIndex = hostLView[bindingIndex] !== NO_CHANGE ? hostLView[bindingIndex] : -1;\n const prevContainer = prevMatchingTemplateIndex !== -1\n ? getLContainer(hostLView, HEADER_OFFSET + prevMatchingTemplateIndex)\n : undefined;\n const viewInContainerIdx = 0;\n if (bindingUpdated(hostLView, bindingIndex, matchingTemplateIndex)) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n // The index of the view to show changed - remove the previously displayed one\n // (it is a noop if there are no active views in a container).\n if (prevContainer !== undefined) {\n removeLViewFromLContainer(prevContainer, viewInContainerIdx);\n }\n // Index -1 is a special case where none of the conditions evaluates to\n // a truthy value and as the consequence we've got no view to show.\n if (matchingTemplateIndex !== -1) {\n const nextLContainerIndex = HEADER_OFFSET + matchingTemplateIndex;\n const nextContainer = getLContainer(hostLView, nextLContainerIndex);\n const templateTNode = getExistingTNode(hostLView[TVIEW], nextLContainerIndex);\n const dehydratedView = findMatchingDehydratedView(nextContainer, templateTNode.tView.ssrId);\n const embeddedLView = createAndRenderEmbeddedLView(hostLView, templateTNode, contextValue, {\n dehydratedView,\n });\n addLViewToLContainer(nextContainer, embeddedLView, viewInContainerIdx, shouldAddViewToDom(templateTNode, dehydratedView));\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n else if (prevContainer !== undefined) {\n // We might keep displaying the same template but the actual value of the expression could have\n // changed - re-bind in context.\n const lView = getLViewFromLContainer(prevContainer, viewInContainerIdx);\n if (lView !== undefined) {\n lView[CONTEXT] = contextValue;\n }\n }\n}\nclass RepeaterContext {\n lContainer;\n $implicit;\n $index;\n constructor(lContainer, $implicit, $index) {\n this.lContainer = lContainer;\n this.$implicit = $implicit;\n this.$index = $index;\n }\n get $count() {\n return this.lContainer.length - CONTAINER_HEADER_OFFSET;\n }\n}\n/**\n * A built-in trackBy function used for situations where users specified collection index as a\n * tracking expression. Having this function body in the runtime avoids unnecessary code generation.\n *\n * @param index\n * @returns\n */\nfunction ɵɵrepeaterTrackByIndex(index) {\n return index;\n}\n/**\n * A built-in trackBy function used for situations where users specified collection item reference\n * as a tracking expression. Having this function body in the runtime avoids unnecessary code\n * generation.\n *\n * @param index\n * @returns\n */\nfunction ɵɵrepeaterTrackByIdentity(_, value) {\n return value;\n}\nclass RepeaterMetadata {\n hasEmptyBlock;\n trackByFn;\n liveCollection;\n constructor(hasEmptyBlock, trackByFn, liveCollection) {\n this.hasEmptyBlock = hasEmptyBlock;\n this.trackByFn = trackByFn;\n this.liveCollection = liveCollection;\n }\n}\n/**\n * The repeaterCreate instruction runs in the creation part of the template pass and initializes\n * internal data structures required by the update pass of the built-in repeater logic. Repeater\n * metadata are allocated in the data part of LView with the following layout:\n * - LView[HEADER_OFFSET + index] - metadata\n * - LView[HEADER_OFFSET + index + 1] - reference to a template function rendering an item\n * - LView[HEADER_OFFSET + index + 2] - optional reference to a template function rendering an empty\n * block\n *\n * @param index Index at which to store the metadata of the repeater.\n * @param templateFn Reference to the template of the main repeater block.\n * @param decls The number of nodes, local refs, and pipes for the main block.\n * @param vars The number of bindings for the main block.\n * @param tagName The name of the container element, if applicable\n * @param attrsIndex Index of template attributes in the `consts` array.\n * @param trackByFn Reference to the tracking function.\n * @param trackByUsesComponentInstance Whether the tracking function has any references to the\n * component instance. If it doesn't, we can avoid rebinding it.\n * @param emptyTemplateFn Reference to the template function of the empty block.\n * @param emptyDecls The number of nodes, local refs, and pipes for the empty block.\n * @param emptyVars The number of bindings for the empty block.\n * @param emptyTagName The name of the empty block container element, if applicable\n * @param emptyAttrsIndex Index of the empty block template attributes in the `consts` array.\n *\n * @codeGenApi\n */\nfunction ɵɵrepeaterCreate(index, templateFn, decls, vars, tagName, attrsIndex, trackByFn, trackByUsesComponentInstance, emptyTemplateFn, emptyDecls, emptyVars, emptyTagName, emptyAttrsIndex) {\n performanceMarkFeature('NgControlFlow');\n ngDevMode &&\n assertFunction(trackByFn, `A track expression must be a function, was ${typeof trackByFn} instead.`);\n const lView = getLView();\n const tView = getTView();\n const hasEmptyBlock = emptyTemplateFn !== undefined;\n const hostLView = getLView();\n const boundTrackBy = trackByUsesComponentInstance\n ? // We only want to bind when necessary, because it produces a\n // new function. For pure functions it's not necessary.\n trackByFn.bind(hostLView[DECLARATION_COMPONENT_VIEW][CONTEXT])\n : trackByFn;\n const metadata = new RepeaterMetadata(hasEmptyBlock, boundTrackBy);\n hostLView[HEADER_OFFSET + index] = metadata;\n declareTemplate(lView, tView, index + 1, templateFn, decls, vars, tagName, getConstant(tView.consts, attrsIndex));\n if (hasEmptyBlock) {\n ngDevMode &&\n assertDefined(emptyDecls, 'Missing number of declarations for the empty repeater block.');\n ngDevMode &&\n assertDefined(emptyVars, 'Missing number of bindings for the empty repeater block.');\n declareTemplate(lView, tView, index + 2, emptyTemplateFn, emptyDecls, emptyVars, emptyTagName, getConstant(tView.consts, emptyAttrsIndex));\n }\n}\nfunction isViewExpensiveToRecreate(lView) {\n // assumption: anything more than a text node with a binding is considered \"expensive\"\n return lView.length - HEADER_OFFSET > 2;\n}\nclass OperationsCounter {\n created = 0;\n destroyed = 0;\n reset() {\n this.created = 0;\n this.destroyed = 0;\n }\n recordCreate() {\n this.created++;\n }\n recordDestroy() {\n this.destroyed++;\n }\n /**\n * A method indicating if the entire collection was re-created as part of the reconciliation pass.\n * Used to warn developers about the usage of a tracking function that might result in excessive\n * amount of view creation / destroy operations.\n *\n * @returns boolean value indicating if a live collection was re-created\n */\n wasReCreated(collectionLen) {\n return collectionLen > 0 && this.created === this.destroyed && this.created === collectionLen;\n }\n}\nclass LiveCollectionLContainerImpl extends LiveCollection {\n lContainer;\n hostLView;\n templateTNode;\n operationsCounter = ngDevMode ? new OperationsCounter() : undefined;\n /**\n Property indicating if indexes in the repeater context need to be updated following the live\n collection changes. Index updates are necessary if and only if views are inserted / removed in\n the middle of LContainer. Adds and removals at the end don't require index updates.\n */\n needsIndexUpdate = false;\n constructor(lContainer, hostLView, templateTNode) {\n super();\n this.lContainer = lContainer;\n this.hostLView = hostLView;\n this.templateTNode = templateTNode;\n }\n get length() {\n return this.lContainer.length - CONTAINER_HEADER_OFFSET;\n }\n at(index) {\n return this.getLView(index)[CONTEXT].$implicit;\n }\n attach(index, lView) {\n const dehydratedView = lView[HYDRATION];\n this.needsIndexUpdate ||= index !== this.length;\n addLViewToLContainer(this.lContainer, lView, index, shouldAddViewToDom(this.templateTNode, dehydratedView));\n }\n detach(index) {\n this.needsIndexUpdate ||= index !== this.length - 1;\n return detachExistingView(this.lContainer, index);\n }\n create(index, value) {\n const dehydratedView = findMatchingDehydratedView(this.lContainer, this.templateTNode.tView.ssrId);\n const embeddedLView = createAndRenderEmbeddedLView(this.hostLView, this.templateTNode, new RepeaterContext(this.lContainer, value, index), { dehydratedView });\n this.operationsCounter?.recordCreate();\n return embeddedLView;\n }\n destroy(lView) {\n destroyLView(lView[TVIEW], lView);\n this.operationsCounter?.recordDestroy();\n }\n updateValue(index, value) {\n this.getLView(index)[CONTEXT].$implicit = value;\n }\n reset() {\n this.needsIndexUpdate = false;\n this.operationsCounter?.reset();\n }\n updateIndexes() {\n if (this.needsIndexUpdate) {\n for (let i = 0; i < this.length; i++) {\n this.getLView(i)[CONTEXT].$index = i;\n }\n }\n }\n getLView(index) {\n return getExistingLViewFromLContainer(this.lContainer, index);\n }\n}\n/**\n * The repeater instruction does update-time diffing of a provided collection (against the\n * collection seen previously) and maps changes in the collection to views structure (by adding,\n * removing or moving views as needed).\n * @param collection - the collection instance to be checked for changes\n * @codeGenApi\n */\nfunction ɵɵrepeater(collection) {\n const prevConsumer = setActiveConsumer$1(null);\n const metadataSlotIdx = getSelectedIndex();\n try {\n const hostLView = getLView();\n const hostTView = hostLView[TVIEW];\n const metadata = hostLView[metadataSlotIdx];\n const containerIndex = metadataSlotIdx + 1;\n const lContainer = getLContainer(hostLView, containerIndex);\n if (metadata.liveCollection === undefined) {\n const itemTemplateTNode = getExistingTNode(hostTView, containerIndex);\n metadata.liveCollection = new LiveCollectionLContainerImpl(lContainer, hostLView, itemTemplateTNode);\n }\n else {\n metadata.liveCollection.reset();\n }\n const liveCollection = metadata.liveCollection;\n reconcile(liveCollection, collection, metadata.trackByFn);\n // Warn developers about situations where the entire collection was re-created as part of the\n // reconciliation pass. Note that this warning might be \"overreacting\" and report cases where\n // the collection re-creation is the intended behavior. Still, the assumption is that most of\n // the time it is undesired.\n if (ngDevMode &&\n metadata.trackByFn === ɵɵrepeaterTrackByIdentity &&\n liveCollection.operationsCounter?.wasReCreated(liveCollection.length) &&\n isViewExpensiveToRecreate(getExistingLViewFromLContainer(lContainer, 0))) {\n const message = formatRuntimeError(-956 /* RuntimeErrorCode.LOOP_TRACK_RECREATE */, `The configured tracking expression (track by identity) caused re-creation of the entire collection of size ${liveCollection.length}. ` +\n 'This is an expensive operation requiring destruction and subsequent creation of DOM nodes, directives, components etc. ' +\n 'Please review the \"track expression\" and make sure that it uniquely identifies items in a collection.');\n console.warn(message);\n }\n // moves in the container might caused context's index to get out of order, re-adjust if needed\n liveCollection.updateIndexes();\n // handle empty blocks\n if (metadata.hasEmptyBlock) {\n const bindingIndex = nextBindingIndex();\n const isCollectionEmpty = liveCollection.length === 0;\n if (bindingUpdated(hostLView, bindingIndex, isCollectionEmpty)) {\n const emptyTemplateIndex = metadataSlotIdx + 2;\n const lContainerForEmpty = getLContainer(hostLView, emptyTemplateIndex);\n if (isCollectionEmpty) {\n const emptyTemplateTNode = getExistingTNode(hostTView, emptyTemplateIndex);\n const dehydratedView = findMatchingDehydratedView(lContainerForEmpty, emptyTemplateTNode.tView.ssrId);\n const embeddedLView = createAndRenderEmbeddedLView(hostLView, emptyTemplateTNode, undefined, { dehydratedView });\n addLViewToLContainer(lContainerForEmpty, embeddedLView, 0, shouldAddViewToDom(emptyTemplateTNode, dehydratedView));\n }\n else {\n removeLViewFromLContainer(lContainerForEmpty, 0);\n }\n }\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n}\nfunction getLContainer(lView, index) {\n const lContainer = lView[index];\n ngDevMode && assertLContainer(lContainer);\n return lContainer;\n}\nfunction detachExistingView(lContainer, index) {\n const existingLView = detachView(lContainer, index);\n ngDevMode && assertLView(existingLView);\n return existingLView;\n}\nfunction getExistingLViewFromLContainer(lContainer, index) {\n const existingLView = getLViewFromLContainer(lContainer, index);\n ngDevMode && assertLView(existingLView);\n return existingLView;\n}\nfunction getExistingTNode(tView, index) {\n const tNode = getTNode(tView, index);\n ngDevMode && assertTNode(tNode);\n return tNode;\n}\n\nfunction elementStartFirstCreatePass(index, tView, lView, name, attrsIndex, localRefsIndex) {\n ngDevMode && assertFirstCreatePass(tView);\n ngDevMode && ngDevMode.firstCreatePass++;\n const tViewConsts = tView.consts;\n const attrs = getConstant(tViewConsts, attrsIndex);\n const tNode = getOrCreateTNode(tView, index, 2 /* TNodeType.Element */, name, attrs);\n resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));\n if (tNode.attrs !== null) {\n computeStaticStyling(tNode, tNode.attrs, false);\n }\n if (tNode.mergedAttrs !== null) {\n computeStaticStyling(tNode, tNode.mergedAttrs, true);\n }\n if (tView.queries !== null) {\n tView.queries.elementStart(tView, tNode);\n }\n return tNode;\n}\n/**\n * Create DOM element. The instruction must later be followed by `elementEnd()` call.\n *\n * @param index Index of the element in the LView array\n * @param name Name of the DOM Node\n * @param attrsIndex Index of the element's attributes in the `consts` array.\n * @param localRefsIndex Index of the element's local references in the `consts` array.\n * @returns This function returns itself so that it may be chained.\n *\n * Attributes and localRefs are passed as an array of strings where elements with an even index\n * hold an attribute name and elements with an odd index hold an attribute value, ex.:\n * ['id', 'warning5', 'class', 'alert']\n *\n * @codeGenApi\n */\nfunction ɵɵelementStart(index, name, attrsIndex, localRefsIndex) {\n const lView = getLView();\n const tView = getTView();\n const adjustedIndex = HEADER_OFFSET + index;\n ngDevMode &&\n assertEqual(getBindingIndex(), tView.bindingStartIndex, 'elements should be created before any bindings');\n ngDevMode && assertIndexInRange(lView, adjustedIndex);\n const renderer = lView[RENDERER];\n const tNode = tView.firstCreatePass\n ? elementStartFirstCreatePass(adjustedIndex, tView, lView, name, attrsIndex, localRefsIndex)\n : tView.data[adjustedIndex];\n const native = _locateOrCreateElementNode(tView, lView, tNode, renderer, name, index);\n lView[adjustedIndex] = native;\n const hasDirectives = isDirectiveHost(tNode);\n if (ngDevMode && tView.firstCreatePass) {\n validateElementIsKnown(native, lView, tNode.value, tView.schemas, hasDirectives);\n }\n setCurrentTNode(tNode, true);\n setupStaticAttributes(renderer, native, tNode);\n if (!isDetachedByI18n(tNode) && wasLastNodeCreated()) {\n // In the i18n case, the translation may have removed this element, so only add it if it is not\n // detached. See `TNodeType.Placeholder` and `LFrame.inI18n` for more context.\n appendChild(tView, lView, native, tNode);\n }\n // any immediate children of a component or template container must be pre-emptively\n // monkey-patched with the component view data so that the element can be inspected\n // later on using any element discovery utility methods (see `element_discovery.ts`)\n if (getElementDepthCount() === 0) {\n attachPatchData(native, lView);\n }\n increaseElementDepthCount();\n if (hasDirectives) {\n createDirectivesInstancesInInstruction(tView, lView, tNode);\n executeContentQueries(tView, tNode, lView);\n }\n if (localRefsIndex !== null) {\n saveResolvedLocalsInData(lView, tNode);\n }\n return ɵɵelementStart;\n}\n/**\n * Mark the end of the element.\n * @returns This function returns itself so that it may be chained.\n *\n * @codeGenApi\n */\nfunction ɵɵelementEnd() {\n let currentTNode = getCurrentTNode();\n ngDevMode && assertDefined(currentTNode, 'No parent node to close.');\n if (isCurrentTNodeParent()) {\n setCurrentTNodeAsNotParent();\n }\n else {\n ngDevMode && assertHasParent(getCurrentTNode());\n currentTNode = currentTNode.parent;\n setCurrentTNode(currentTNode, false);\n }\n const tNode = currentTNode;\n ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */);\n if (isSkipHydrationRootTNode(tNode)) {\n leaveSkipHydrationBlock();\n }\n decreaseElementDepthCount();\n const tView = getTView();\n if (tView.firstCreatePass) {\n registerPostOrderHooks(tView, currentTNode);\n if (isContentQueryHost(currentTNode)) {\n tView.queries.elementEnd(currentTNode);\n }\n }\n if (tNode.classesWithoutHost != null && hasClassInput(tNode)) {\n setDirectiveInputsWhichShadowsStyling(tView, tNode, getLView(), tNode.classesWithoutHost, true);\n }\n if (tNode.stylesWithoutHost != null && hasStyleInput(tNode)) {\n setDirectiveInputsWhichShadowsStyling(tView, tNode, getLView(), tNode.stylesWithoutHost, false);\n }\n return ɵɵelementEnd;\n}\n/**\n * Creates an empty element using {@link elementStart} and {@link elementEnd}\n *\n * @param index Index of the element in the data array\n * @param name Name of the DOM Node\n * @param attrsIndex Index of the element's attributes in the `consts` array.\n * @param localRefsIndex Index of the element's local references in the `consts` array.\n * @returns This function returns itself so that it may be chained.\n *\n * @codeGenApi\n */\nfunction ɵɵelement(index, name, attrsIndex, localRefsIndex) {\n ɵɵelementStart(index, name, attrsIndex, localRefsIndex);\n ɵɵelementEnd();\n return ɵɵelement;\n}\nlet _locateOrCreateElementNode = (tView, lView, tNode, renderer, name, index) => {\n lastNodeWasCreated(true);\n return createElementNode(renderer, name, getNamespace$1());\n};\n/**\n * Enables hydration code path (to lookup existing elements in DOM)\n * in addition to the regular creation mode of element nodes.\n */\nfunction locateOrCreateElementNodeImpl(tView, lView, tNode, renderer, name, index) {\n const hydrationInfo = lView[HYDRATION];\n const isNodeCreationMode = !hydrationInfo ||\n isInSkipHydrationBlock$1() ||\n isDetachedByI18n(tNode) ||\n isDisconnectedNode$1(hydrationInfo, index);\n lastNodeWasCreated(isNodeCreationMode);\n // Regular creation mode.\n if (isNodeCreationMode) {\n return createElementNode(renderer, name, getNamespace$1());\n }\n // Hydration mode, looking up an existing element in DOM.\n const native = locateNextRNode(hydrationInfo, tView, lView, tNode);\n ngDevMode && validateMatchingNode(native, Node.ELEMENT_NODE, name, lView, tNode);\n ngDevMode && markRNodeAsClaimedByHydration(native);\n // This element might also be an anchor of a view container.\n if (getSerializedContainerViews(hydrationInfo, index)) {\n // Important note: this element acts as an anchor, but it's **not** a part\n // of the embedded view, so we start the segment **after** this element, taking\n // a reference to the next sibling. For example, the following template:\n // `<div #vcrTarget>` is represented in the DOM as `<div></div>...<!--container-->`,\n // so while processing a `<div>` instruction, point to the next sibling as a\n // start of a segment.\n ngDevMode && validateNodeExists(native.nextSibling, lView, tNode);\n setSegmentHead(hydrationInfo, index, native.nextSibling);\n }\n // Checks if the skip hydration attribute is present during hydration so we know to\n // skip attempting to hydrate this block. We check both TNode and RElement for an\n // attribute: the RElement case is needed for i18n cases, when we add it to host\n // elements during the annotation phase (after all internal data structures are setup).\n if (hydrationInfo &&\n (hasSkipHydrationAttrOnTNode(tNode) || hasSkipHydrationAttrOnRElement(native))) {\n if (isComponentHost(tNode)) {\n enterSkipHydrationBlock(tNode);\n // Since this isn't hydratable, we need to empty the node\n // so there's no duplicate content after render\n clearElementContents(native);\n ngDevMode && markRNodeAsSkippedByHydration(native);\n }\n else if (ngDevMode) {\n // If this is not a component host, throw an error.\n // Hydration can be skipped on per-component basis only.\n throw invalidSkipHydrationHost(native);\n }\n }\n return native;\n}\nfunction enableLocateOrCreateElementNodeImpl() {\n _locateOrCreateElementNode = locateOrCreateElementNodeImpl;\n}\n\nfunction elementContainerStartFirstCreatePass(index, tView, lView, attrsIndex, localRefsIndex) {\n ngDevMode && ngDevMode.firstCreatePass++;\n const tViewConsts = tView.consts;\n const attrs = getConstant(tViewConsts, attrsIndex);\n const tNode = getOrCreateTNode(tView, index, 8 /* TNodeType.ElementContainer */, 'ng-container', attrs);\n // While ng-container doesn't necessarily support styling, we use the style context to identify\n // and execute directives on the ng-container.\n if (attrs !== null) {\n computeStaticStyling(tNode, attrs, true);\n }\n const localRefs = getConstant(tViewConsts, localRefsIndex);\n resolveDirectives(tView, lView, tNode, localRefs);\n if (tView.queries !== null) {\n tView.queries.elementStart(tView, tNode);\n }\n return tNode;\n}\n/**\n * Creates a logical container for other nodes (<ng-container>) backed by a comment node in the DOM.\n * The instruction must later be followed by `elementContainerEnd()` call.\n *\n * @param index Index of the element in the LView array\n * @param attrsIndex Index of the container attributes in the `consts` array.\n * @param localRefsIndex Index of the container's local references in the `consts` array.\n * @returns This function returns itself so that it may be chained.\n *\n * Even if this instruction accepts a set of attributes no actual attribute values are propagated to\n * the DOM (as a comment node can't have attributes). Attributes are here only for directive\n * matching purposes and setting initial inputs of directives.\n *\n * @codeGenApi\n */\nfunction ɵɵelementContainerStart(index, attrsIndex, localRefsIndex) {\n const lView = getLView();\n const tView = getTView();\n const adjustedIndex = index + HEADER_OFFSET;\n ngDevMode && assertIndexInRange(lView, adjustedIndex);\n ngDevMode &&\n assertEqual(getBindingIndex(), tView.bindingStartIndex, 'element containers should be created before any bindings');\n const tNode = tView.firstCreatePass\n ? elementContainerStartFirstCreatePass(adjustedIndex, tView, lView, attrsIndex, localRefsIndex)\n : tView.data[adjustedIndex];\n setCurrentTNode(tNode, true);\n const comment = _locateOrCreateElementContainerNode(tView, lView, tNode, index);\n lView[adjustedIndex] = comment;\n if (wasLastNodeCreated()) {\n appendChild(tView, lView, comment, tNode);\n }\n attachPatchData(comment, lView);\n if (isDirectiveHost(tNode)) {\n createDirectivesInstancesInInstruction(tView, lView, tNode);\n executeContentQueries(tView, tNode, lView);\n }\n if (localRefsIndex != null) {\n saveResolvedLocalsInData(lView, tNode);\n }\n return ɵɵelementContainerStart;\n}\n/**\n * Mark the end of the <ng-container>.\n * @returns This function returns itself so that it may be chained.\n *\n * @codeGenApi\n */\nfunction ɵɵelementContainerEnd() {\n let currentTNode = getCurrentTNode();\n const tView = getTView();\n if (isCurrentTNodeParent()) {\n setCurrentTNodeAsNotParent();\n }\n else {\n ngDevMode && assertHasParent(currentTNode);\n currentTNode = currentTNode.parent;\n setCurrentTNode(currentTNode, false);\n }\n ngDevMode && assertTNodeType(currentTNode, 8 /* TNodeType.ElementContainer */);\n if (tView.firstCreatePass) {\n registerPostOrderHooks(tView, currentTNode);\n if (isContentQueryHost(currentTNode)) {\n tView.queries.elementEnd(currentTNode);\n }\n }\n return ɵɵelementContainerEnd;\n}\n/**\n * Creates an empty logical container using {@link elementContainerStart}\n * and {@link elementContainerEnd}\n *\n * @param index Index of the element in the LView array\n * @param attrsIndex Index of the container attributes in the `consts` array.\n * @param localRefsIndex Index of the container's local references in the `consts` array.\n * @returns This function returns itself so that it may be chained.\n *\n * @codeGenApi\n */\nfunction ɵɵelementContainer(index, attrsIndex, localRefsIndex) {\n ɵɵelementContainerStart(index, attrsIndex, localRefsIndex);\n ɵɵelementContainerEnd();\n return ɵɵelementContainer;\n}\nlet _locateOrCreateElementContainerNode = (tView, lView, tNode, index) => {\n lastNodeWasCreated(true);\n return createCommentNode(lView[RENDERER], ngDevMode ? 'ng-container' : '');\n};\n/**\n * Enables hydration code path (to lookup existing elements in DOM)\n * in addition to the regular creation mode of comment nodes that\n * represent <ng-container>'s anchor.\n */\nfunction locateOrCreateElementContainerNode(tView, lView, tNode, index) {\n let comment;\n const hydrationInfo = lView[HYDRATION];\n const isNodeCreationMode = !hydrationInfo ||\n isInSkipHydrationBlock$1() ||\n isDisconnectedNode$1(hydrationInfo, index) ||\n isDetachedByI18n(tNode);\n lastNodeWasCreated(isNodeCreationMode);\n // Regular creation mode.\n if (isNodeCreationMode) {\n return createCommentNode(lView[RENDERER], ngDevMode ? 'ng-container' : '');\n }\n // Hydration mode, looking up existing elements in DOM.\n const currentRNode = locateNextRNode(hydrationInfo, tView, lView, tNode);\n ngDevMode && validateNodeExists(currentRNode, lView, tNode);\n const ngContainerSize = getNgContainerSize(hydrationInfo, index);\n ngDevMode &&\n assertNumber(ngContainerSize, 'Unexpected state: hydrating an <ng-container>, ' + 'but no hydration info is available.');\n setSegmentHead(hydrationInfo, index, currentRNode);\n comment = siblingAfter(ngContainerSize, currentRNode);\n if (ngDevMode) {\n validateMatchingNode(comment, Node.COMMENT_NODE, null, lView, tNode);\n markRNodeAsClaimedByHydration(comment);\n }\n return comment;\n}\nfunction enableLocateOrCreateElementContainerNodeImpl() {\n _locateOrCreateElementContainerNode = locateOrCreateElementContainerNode;\n}\n\n/**\n * Returns the current OpaqueViewState instance.\n *\n * Used in conjunction with the restoreView() instruction to save a snapshot\n * of the current view and restore it when listeners are invoked. This allows\n * walking the declaration view tree in listeners to get vars from parent views.\n *\n * @codeGenApi\n */\nfunction ɵɵgetCurrentView() {\n return getLView();\n}\n\n/**\n * Update a property on a host element. Only applies to native node properties, not inputs.\n *\n * Operates on the element selected by index via the {@link select} instruction.\n *\n * @param propName Name of property. Because it is going to DOM, this is not subject to\n * renaming as part of minification.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n * @returns This function returns itself so that it may be chained\n * (e.g. `property('name', ctx.name)('title', ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵhostProperty(propName, value, sanitizer) {\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, value)) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, true);\n ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n }\n return ɵɵhostProperty;\n}\n/**\n * Updates a synthetic host binding (e.g. `[@foo]`) on a component or directive.\n *\n * This instruction is for compatibility purposes and is designed to ensure that a\n * synthetic host binding (e.g. `@HostBinding('@foo')`) properly gets rendered in\n * the component's renderer. Normally all host bindings are evaluated with the parent\n * component's renderer, but, in the case of animation @triggers, they need to be\n * evaluated with the sub component's renderer (because that's where the animation\n * triggers are defined).\n *\n * Do not use this instruction as a replacement for `elementProperty`. This instruction\n * only exists to ensure compatibility with the ViewEngine's host binding behavior.\n *\n * @param index The index of the element to update in the data array\n * @param propName Name of property. Because it is going to DOM, this is not subject to\n * renaming as part of minification.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n *\n * @codeGenApi\n */\nfunction ɵɵsyntheticHostProperty(propName, value, sanitizer) {\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, value)) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n const currentDef = getCurrentDirectiveDef(tView.data);\n const renderer = loadComponentRenderer(currentDef, tNode, lView);\n elementPropertyInternal(tView, tNode, lView, propName, value, renderer, sanitizer, true);\n ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n }\n return ɵɵsyntheticHostProperty;\n}\n\n/**\n * NOTE: changes to the `ngI18nClosureMode` name must be synced with `compiler-cli/src/tooling.ts`.\n */\nif (typeof ngI18nClosureMode === 'undefined') {\n // These property accesses can be ignored because ngI18nClosureMode will be set to false\n // when optimizing code and the whole if statement will be dropped.\n // Make sure to refer to ngI18nClosureMode as ['ngI18nClosureMode'] for closure.\n // NOTE: we need to have it in IIFE so that the tree-shaker is happy.\n (function () {\n _global['ngI18nClosureMode'] =\n // TODO(FW-1250): validate that this actually, you know, works.\n typeof goog !== 'undefined' && typeof goog.getMsg === 'function';\n })();\n}\n\n// THIS CODE IS GENERATED - DO NOT MODIFY.\nconst u = undefined;\nfunction plural(val) {\n const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\\.?/, '').length;\n if (i === 1 && v === 0)\n return 1;\n return 5;\n}\nvar localeEn = [\"en\", [[\"a\", \"p\"], [\"AM\", \"PM\"], u], [[\"AM\", \"PM\"], u, u], [[\"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\"]], u, [[\"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\"]], u, [[\"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}\", u, \"{1} 'at' {0}\", u], [\".\", \",\", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0%\", \"¤#,##0.00\", \"#E0\"], \"USD\", \"$\", \"US Dollar\", {}, \"ltr\", plural];\n\n/**\n * This const is used to store the locale data registered with `registerLocaleData`\n */\nlet LOCALE_DATA = {};\n/**\n * Register locale data to be used internally by Angular. See the\n * [\"I18n guide\"](guide/i18n/format-data-locale) to know how to import additional locale\n * data.\n *\n * The signature `registerLocaleData(data: any, extraData?: any)` is deprecated since v5.1\n */\nfunction registerLocaleData(data, localeId, extraData) {\n if (typeof localeId !== 'string') {\n extraData = localeId;\n localeId = data[LocaleDataIndex.LocaleId];\n }\n localeId = localeId.toLowerCase().replace(/_/g, '-');\n LOCALE_DATA[localeId] = data;\n if (extraData) {\n LOCALE_DATA[localeId][LocaleDataIndex.ExtraData] = extraData;\n }\n}\n/**\n * Finds the locale data for a given locale.\n *\n * @param locale The locale code.\n * @returns The locale data.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)\n */\nfunction findLocaleData(locale) {\n const normalizedLocale = normalizeLocale(locale);\n let match = getLocaleData(normalizedLocale);\n if (match) {\n return match;\n }\n // let's try to find a parent locale\n const parentLocale = normalizedLocale.split('-')[0];\n match = getLocaleData(parentLocale);\n if (match) {\n return match;\n }\n if (parentLocale === 'en') {\n return localeEn;\n }\n throw new RuntimeError(701 /* RuntimeErrorCode.MISSING_LOCALE_DATA */, ngDevMode && `Missing locale data for the locale \"${locale}\".`);\n}\n/**\n * Retrieves the default currency code for the given locale.\n *\n * The default is defined as the first currency which is still in use.\n *\n * @param locale The code of the locale whose currency code we want.\n * @returns The code of the default currency for the given locale.\n *\n */\nfunction getLocaleCurrencyCode(locale) {\n const data = findLocaleData(locale);\n return data[LocaleDataIndex.CurrencyCode] || null;\n}\n/**\n * Retrieves the plural function used by ICU expressions to determine the plural case to use\n * for a given locale.\n * @param locale A locale code for the locale format rules to use.\n * @returns The plural function for the locale.\n * @see {@link NgPlural}\n * @see [Internationalization (i18n) Guide](guide/i18n)\n */\nfunction getLocalePluralCase(locale) {\n const data = findLocaleData(locale);\n return data[LocaleDataIndex.PluralCase];\n}\n/**\n * Helper function to get the given `normalizedLocale` from `LOCALE_DATA`\n * or from the global `ng.common.locale`.\n */\nfunction getLocaleData(normalizedLocale) {\n if (!(normalizedLocale in LOCALE_DATA)) {\n LOCALE_DATA[normalizedLocale] =\n _global.ng &&\n _global.ng.common &&\n _global.ng.common.locales &&\n _global.ng.common.locales[normalizedLocale];\n }\n return LOCALE_DATA[normalizedLocale];\n}\n/**\n * Helper function to remove all the locale data from `LOCALE_DATA`.\n */\nfunction unregisterAllLocaleData() {\n LOCALE_DATA = {};\n}\n/**\n * Index of each type of locale data from the locale data array\n */\nvar LocaleDataIndex;\n(function (LocaleDataIndex) {\n LocaleDataIndex[LocaleDataIndex[\"LocaleId\"] = 0] = \"LocaleId\";\n LocaleDataIndex[LocaleDataIndex[\"DayPeriodsFormat\"] = 1] = \"DayPeriodsFormat\";\n LocaleDataIndex[LocaleDataIndex[\"DayPeriodsStandalone\"] = 2] = \"DayPeriodsStandalone\";\n LocaleDataIndex[LocaleDataIndex[\"DaysFormat\"] = 3] = \"DaysFormat\";\n LocaleDataIndex[LocaleDataIndex[\"DaysStandalone\"] = 4] = \"DaysStandalone\";\n LocaleDataIndex[LocaleDataIndex[\"MonthsFormat\"] = 5] = \"MonthsFormat\";\n LocaleDataIndex[LocaleDataIndex[\"MonthsStandalone\"] = 6] = \"MonthsStandalone\";\n LocaleDataIndex[LocaleDataIndex[\"Eras\"] = 7] = \"Eras\";\n LocaleDataIndex[LocaleDataIndex[\"FirstDayOfWeek\"] = 8] = \"FirstDayOfWeek\";\n LocaleDataIndex[LocaleDataIndex[\"WeekendRange\"] = 9] = \"WeekendRange\";\n LocaleDataIndex[LocaleDataIndex[\"DateFormat\"] = 10] = \"DateFormat\";\n LocaleDataIndex[LocaleDataIndex[\"TimeFormat\"] = 11] = \"TimeFormat\";\n LocaleDataIndex[LocaleDataIndex[\"DateTimeFormat\"] = 12] = \"DateTimeFormat\";\n LocaleDataIndex[LocaleDataIndex[\"NumberSymbols\"] = 13] = \"NumberSymbols\";\n LocaleDataIndex[LocaleDataIndex[\"NumberFormats\"] = 14] = \"NumberFormats\";\n LocaleDataIndex[LocaleDataIndex[\"CurrencyCode\"] = 15] = \"CurrencyCode\";\n LocaleDataIndex[LocaleDataIndex[\"CurrencySymbol\"] = 16] = \"CurrencySymbol\";\n LocaleDataIndex[LocaleDataIndex[\"CurrencyName\"] = 17] = \"CurrencyName\";\n LocaleDataIndex[LocaleDataIndex[\"Currencies\"] = 18] = \"Currencies\";\n LocaleDataIndex[LocaleDataIndex[\"Directionality\"] = 19] = \"Directionality\";\n LocaleDataIndex[LocaleDataIndex[\"PluralCase\"] = 20] = \"PluralCase\";\n LocaleDataIndex[LocaleDataIndex[\"ExtraData\"] = 21] = \"ExtraData\";\n})(LocaleDataIndex || (LocaleDataIndex = {}));\n/**\n * Returns the canonical form of a locale name - lowercase with `_` replaced with `-`.\n */\nfunction normalizeLocale(locale) {\n return locale.toLowerCase().replace(/_/g, '-');\n}\n\nconst pluralMapping = ['zero', 'one', 'two', 'few', 'many'];\n/**\n * Returns the plural case based on the locale\n */\nfunction getPluralCase(value, locale) {\n const plural = getLocalePluralCase(locale)(parseInt(value, 10));\n const result = pluralMapping[plural];\n return result !== undefined ? result : 'other';\n}\n/**\n * The locale id that the application is using by default (for translations and ICU expressions).\n */\nconst DEFAULT_LOCALE_ID = 'en-US';\n/**\n * USD currency code that the application uses by default for CurrencyPipe when no\n * DEFAULT_CURRENCY_CODE is provided.\n */\nconst USD_CURRENCY_CODE = 'USD';\n\n/**\n * Marks that the next string is an element name.\n *\n * See `I18nMutateOpCodes` documentation.\n */\nconst ELEMENT_MARKER = {\n marker: 'element',\n};\n/**\n * Marks that the next string is comment text need for ICU.\n *\n * See `I18nMutateOpCodes` documentation.\n */\nconst ICU_MARKER = {\n marker: 'ICU',\n};\n/**\n * See `I18nCreateOpCodes`\n */\nvar I18nCreateOpCode;\n(function (I18nCreateOpCode) {\n /**\n * Number of bits to shift index so that it can be combined with the `APPEND_EAGERLY` and\n * `COMMENT`.\n */\n I18nCreateOpCode[I18nCreateOpCode[\"SHIFT\"] = 2] = \"SHIFT\";\n /**\n * Should the node be appended to parent immediately after creation.\n */\n I18nCreateOpCode[I18nCreateOpCode[\"APPEND_EAGERLY\"] = 1] = \"APPEND_EAGERLY\";\n /**\n * If set the node should be comment (rather than a text) node.\n */\n I18nCreateOpCode[I18nCreateOpCode[\"COMMENT\"] = 2] = \"COMMENT\";\n})(I18nCreateOpCode || (I18nCreateOpCode = {}));\n\n/**\n * The locale id that the application is currently using (for translations and ICU expressions).\n * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine\n * but is now defined as a global value.\n */\nlet LOCALE_ID$1 = DEFAULT_LOCALE_ID;\n/**\n * Sets the locale id that will be used for translations and ICU expressions.\n * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine\n * but is now defined as a global value.\n *\n * @param localeId\n */\nfunction setLocaleId(localeId) {\n ngDevMode && assertDefined(localeId, `Expected localeId to be defined`);\n if (typeof localeId === 'string') {\n LOCALE_ID$1 = localeId.toLowerCase().replace(/_/g, '-');\n }\n}\n/**\n * Gets the locale id that will be used for translations and ICU expressions.\n * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine\n * but is now defined as a global value.\n */\nfunction getLocaleId() {\n return LOCALE_ID$1;\n}\n\n/**\n * Keep track of which input bindings in `ɵɵi18nExp` have changed.\n *\n * This is used to efficiently update expressions in i18n only when the corresponding input has\n * changed.\n *\n * 1) Each bit represents which of the `ɵɵi18nExp` has changed.\n * 2) There are 32 bits allowed in JS.\n * 3) Bit 32 is special as it is shared for all changes past 32. (In other words if you have more\n * than 32 `ɵɵi18nExp` then all changes past 32nd `ɵɵi18nExp` will be mapped to same bit. This means\n * that we may end up changing more than we need to. But i18n expressions with 32 bindings is rare\n * so in practice it should not be an issue.)\n */\nlet changeMask = 0b0;\n/**\n * Keeps track of which bit needs to be updated in `changeMask`\n *\n * This value gets incremented on every call to `ɵɵi18nExp`\n */\nlet changeMaskCounter = 0;\n/**\n * Keep track of which input bindings in `ɵɵi18nExp` have changed.\n *\n * `setMaskBit` gets invoked by each call to `ɵɵi18nExp`.\n *\n * @param hasChange did `ɵɵi18nExp` detect a change.\n */\nfunction setMaskBit(hasChange) {\n if (hasChange) {\n changeMask = changeMask | (1 << Math.min(changeMaskCounter, 31));\n }\n changeMaskCounter++;\n}\nfunction applyI18n(tView, lView, index) {\n if (changeMaskCounter > 0) {\n ngDevMode && assertDefined(tView, `tView should be defined`);\n const tI18n = tView.data[index];\n // When `index` points to an `ɵɵi18nAttributes` then we have an array otherwise `TI18n`\n const updateOpCodes = Array.isArray(tI18n)\n ? tI18n\n : tI18n.update;\n const bindingsStartIndex = getBindingIndex() - changeMaskCounter - 1;\n applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask);\n }\n // Reset changeMask & maskBit to default for the next update cycle\n changeMask = 0b0;\n changeMaskCounter = 0;\n}\nfunction createNodeWithoutHydration(lView, textOrName, nodeType) {\n const renderer = lView[RENDERER];\n switch (nodeType) {\n case Node.COMMENT_NODE:\n return createCommentNode(renderer, textOrName);\n case Node.TEXT_NODE:\n return createTextNode(renderer, textOrName);\n case Node.ELEMENT_NODE:\n return createElementNode(renderer, textOrName, null);\n }\n}\nlet _locateOrCreateNode = (lView, index, textOrName, nodeType) => {\n lastNodeWasCreated(true);\n return createNodeWithoutHydration(lView, textOrName, nodeType);\n};\nfunction locateOrCreateNodeImpl(lView, index, textOrName, nodeType) {\n const hydrationInfo = lView[HYDRATION];\n const noOffsetIndex = index - HEADER_OFFSET;\n const isNodeCreationMode = !isI18nHydrationSupportEnabled() ||\n !hydrationInfo ||\n isInSkipHydrationBlock$1() ||\n isDisconnectedNode$1(hydrationInfo, noOffsetIndex);\n lastNodeWasCreated(isNodeCreationMode);\n if (isNodeCreationMode) {\n return createNodeWithoutHydration(lView, textOrName, nodeType);\n }\n const native = locateI18nRNodeByIndex(hydrationInfo, noOffsetIndex);\n // TODO: Improve error handling\n //\n // Other hydration paths use validateMatchingNode() in order to provide\n // detailed information in development mode about the expected DOM.\n // However, not every node in an i18n block has a TNode. Instead, we\n // need to be able to use the AST to generate a similar message.\n ngDevMode && assertDefined(native, 'expected native element');\n ngDevMode && assertEqual(native.nodeType, nodeType, 'expected matching nodeType');\n ngDevMode &&\n nodeType === Node.ELEMENT_NODE &&\n assertEqual(native.tagName.toLowerCase(), textOrName.toLowerCase(), 'expecting matching tagName');\n ngDevMode && markRNodeAsClaimedByHydration(native);\n return native;\n}\nfunction enableLocateOrCreateI18nNodeImpl() {\n _locateOrCreateNode = locateOrCreateNodeImpl;\n}\n/**\n * Apply `I18nCreateOpCodes` op-codes as stored in `TI18n.create`.\n *\n * Creates text (and comment) nodes which are internationalized.\n *\n * @param lView Current lView\n * @param createOpCodes Set of op-codes to apply\n * @param parentRNode Parent node (so that direct children can be added eagerly) or `null` if it is\n * a root node.\n * @param insertInFrontOf DOM node that should be used as an anchor.\n */\nfunction applyCreateOpCodes(lView, createOpCodes, parentRNode, insertInFrontOf) {\n const renderer = lView[RENDERER];\n for (let i = 0; i < createOpCodes.length; i++) {\n const opCode = createOpCodes[i++];\n const text = createOpCodes[i];\n const isComment = (opCode & I18nCreateOpCode.COMMENT) === I18nCreateOpCode.COMMENT;\n const appendNow = (opCode & I18nCreateOpCode.APPEND_EAGERLY) === I18nCreateOpCode.APPEND_EAGERLY;\n const index = opCode >>> I18nCreateOpCode.SHIFT;\n let rNode = lView[index];\n let lastNodeWasCreated = false;\n if (rNode === null) {\n // We only create new DOM nodes if they don't already exist: If ICU switches case back to a\n // case which was already instantiated, no need to create new DOM nodes.\n rNode = lView[index] = _locateOrCreateNode(lView, index, text, isComment ? Node.COMMENT_NODE : Node.TEXT_NODE);\n lastNodeWasCreated = wasLastNodeCreated();\n }\n if (appendNow && parentRNode !== null && lastNodeWasCreated) {\n nativeInsertBefore(renderer, parentRNode, rNode, insertInFrontOf, false);\n }\n }\n}\n/**\n * Apply `I18nMutateOpCodes` OpCodes.\n *\n * @param tView Current `TView`\n * @param mutableOpCodes Mutable OpCodes to process\n * @param lView Current `LView`\n * @param anchorRNode place where the i18n node should be inserted.\n */\nfunction applyMutableOpCodes(tView, mutableOpCodes, lView, anchorRNode) {\n ngDevMode && assertDomNode(anchorRNode);\n const renderer = lView[RENDERER];\n // `rootIdx` represents the node into which all inserts happen.\n let rootIdx = null;\n // `rootRNode` represents the real node into which we insert. This can be different from\n // `lView[rootIdx]` if we have projection.\n // - null we don't have a parent (as can be the case in when we are inserting into a root of\n // LView which has no parent.)\n // - `RElement` The element representing the root after taking projection into account.\n let rootRNode;\n for (let i = 0; i < mutableOpCodes.length; i++) {\n const opCode = mutableOpCodes[i];\n if (typeof opCode == 'string') {\n const textNodeIndex = mutableOpCodes[++i];\n if (lView[textNodeIndex] === null) {\n ngDevMode && ngDevMode.rendererCreateTextNode++;\n ngDevMode && assertIndexInRange(lView, textNodeIndex);\n lView[textNodeIndex] = _locateOrCreateNode(lView, textNodeIndex, opCode, Node.TEXT_NODE);\n }\n }\n else if (typeof opCode == 'number') {\n switch (opCode & 1 /* IcuCreateOpCode.MASK_INSTRUCTION */) {\n case 0 /* IcuCreateOpCode.AppendChild */:\n const parentIdx = getParentFromIcuCreateOpCode(opCode);\n if (rootIdx === null) {\n // The first operation should save the `rootIdx` because the first operation\n // must insert into the root. (Only subsequent operations can insert into a dynamic\n // parent)\n rootIdx = parentIdx;\n rootRNode = renderer.parentNode(anchorRNode);\n }\n let insertInFrontOf;\n let parentRNode;\n if (parentIdx === rootIdx) {\n insertInFrontOf = anchorRNode;\n parentRNode = rootRNode;\n }\n else {\n insertInFrontOf = null;\n parentRNode = unwrapRNode(lView[parentIdx]);\n }\n // FIXME(misko): Refactor with `processI18nText`\n if (parentRNode !== null) {\n // This can happen if the `LView` we are adding to is not attached to a parent `LView`.\n // In such a case there is no \"root\" we can attach to. This is fine, as we still need to\n // create the elements. When the `LView` gets later added to a parent these \"root\" nodes\n // get picked up and added.\n ngDevMode && assertDomNode(parentRNode);\n const refIdx = getRefFromIcuCreateOpCode(opCode);\n ngDevMode && assertGreaterThan(refIdx, HEADER_OFFSET, 'Missing ref');\n // `unwrapRNode` is not needed here as all of these point to RNodes as part of the i18n\n // which can't have components.\n const child = lView[refIdx];\n ngDevMode && assertDomNode(child);\n nativeInsertBefore(renderer, parentRNode, child, insertInFrontOf, false);\n const tIcu = getTIcu(tView, refIdx);\n if (tIcu !== null && typeof tIcu === 'object') {\n // If we just added a comment node which has ICU then that ICU may have already been\n // rendered and therefore we need to re-add it here.\n ngDevMode && assertTIcu(tIcu);\n const caseIndex = getCurrentICUCaseIndex(tIcu, lView);\n if (caseIndex !== null) {\n applyMutableOpCodes(tView, tIcu.create[caseIndex], lView, lView[tIcu.anchorIdx]);\n }\n }\n }\n break;\n case 1 /* IcuCreateOpCode.Attr */:\n const elementNodeIndex = opCode >>> 1 /* IcuCreateOpCode.SHIFT_REF */;\n const attrName = mutableOpCodes[++i];\n const attrValue = mutableOpCodes[++i];\n // This code is used for ICU expressions only, since we don't support\n // directives/components in ICUs, we don't need to worry about inputs here\n setElementAttribute(renderer, getNativeByIndex(elementNodeIndex, lView), null, null, attrName, attrValue, null);\n break;\n default:\n if (ngDevMode) {\n throw new RuntimeError(700 /* RuntimeErrorCode.INVALID_I18N_STRUCTURE */, `Unable to determine the type of mutate operation for \"${opCode}\"`);\n }\n }\n }\n else {\n switch (opCode) {\n case ICU_MARKER:\n const commentValue = mutableOpCodes[++i];\n const commentNodeIndex = mutableOpCodes[++i];\n if (lView[commentNodeIndex] === null) {\n ngDevMode &&\n assertEqual(typeof commentValue, 'string', `Expected \"${commentValue}\" to be a comment node value`);\n ngDevMode && ngDevMode.rendererCreateComment++;\n ngDevMode && assertIndexInExpandoRange(lView, commentNodeIndex);\n const commentRNode = (lView[commentNodeIndex] = _locateOrCreateNode(lView, commentNodeIndex, commentValue, Node.COMMENT_NODE));\n // FIXME(misko): Attaching patch data is only needed for the root (Also add tests)\n attachPatchData(commentRNode, lView);\n }\n break;\n case ELEMENT_MARKER:\n const tagName = mutableOpCodes[++i];\n const elementNodeIndex = mutableOpCodes[++i];\n if (lView[elementNodeIndex] === null) {\n ngDevMode &&\n assertEqual(typeof tagName, 'string', `Expected \"${tagName}\" to be an element node tag name`);\n ngDevMode && ngDevMode.rendererCreateElement++;\n ngDevMode && assertIndexInExpandoRange(lView, elementNodeIndex);\n const elementRNode = (lView[elementNodeIndex] = _locateOrCreateNode(lView, elementNodeIndex, tagName, Node.ELEMENT_NODE));\n // FIXME(misko): Attaching patch data is only needed for the root (Also add tests)\n attachPatchData(elementRNode, lView);\n }\n break;\n default:\n ngDevMode &&\n throwError(`Unable to determine the type of mutate operation for \"${opCode}\"`);\n }\n }\n }\n}\n/**\n * Apply `I18nUpdateOpCodes` OpCodes\n *\n * @param tView Current `TView`\n * @param lView Current `LView`\n * @param updateOpCodes OpCodes to process\n * @param bindingsStartIndex Location of the first `ɵɵi18nApply`\n * @param changeMask Each bit corresponds to a `ɵɵi18nExp` (Counting backwards from\n * `bindingsStartIndex`)\n */\nfunction applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask) {\n for (let i = 0; i < updateOpCodes.length; i++) {\n // bit code to check if we should apply the next update\n const checkBit = updateOpCodes[i];\n // Number of opCodes to skip until next set of update codes\n const skipCodes = updateOpCodes[++i];\n if (checkBit & changeMask) {\n // The value has been updated since last checked\n let value = '';\n for (let j = i + 1; j <= i + skipCodes; j++) {\n const opCode = updateOpCodes[j];\n if (typeof opCode == 'string') {\n value += opCode;\n }\n else if (typeof opCode == 'number') {\n if (opCode < 0) {\n // Negative opCode represent `i18nExp` values offset.\n value += renderStringify(lView[bindingsStartIndex - opCode]);\n }\n else {\n const nodeIndex = opCode >>> 2 /* I18nUpdateOpCode.SHIFT_REF */;\n switch (opCode & 3 /* I18nUpdateOpCode.MASK_OPCODE */) {\n case 1 /* I18nUpdateOpCode.Attr */:\n const propName = updateOpCodes[++j];\n const sanitizeFn = updateOpCodes[++j];\n const tNodeOrTagName = tView.data[nodeIndex];\n ngDevMode && assertDefined(tNodeOrTagName, 'Experting TNode or string');\n if (typeof tNodeOrTagName === 'string') {\n // IF we don't have a `TNode`, then we are an element in ICU (as ICU content does\n // not have TNode), in which case we know that there are no directives, and hence\n // we use attribute setting.\n setElementAttribute(lView[RENDERER], lView[nodeIndex], null, tNodeOrTagName, propName, value, sanitizeFn);\n }\n else {\n elementPropertyInternal(tView, tNodeOrTagName, lView, propName, value, lView[RENDERER], sanitizeFn, false);\n }\n break;\n case 0 /* I18nUpdateOpCode.Text */:\n const rText = lView[nodeIndex];\n rText !== null && updateTextNode(lView[RENDERER], rText, value);\n break;\n case 2 /* I18nUpdateOpCode.IcuSwitch */:\n applyIcuSwitchCase(tView, getTIcu(tView, nodeIndex), lView, value);\n break;\n case 3 /* I18nUpdateOpCode.IcuUpdate */:\n applyIcuUpdateCase(tView, getTIcu(tView, nodeIndex), bindingsStartIndex, lView);\n break;\n }\n }\n }\n }\n }\n else {\n const opCode = updateOpCodes[i + 1];\n if (opCode > 0 && (opCode & 3 /* I18nUpdateOpCode.MASK_OPCODE */) === 3 /* I18nUpdateOpCode.IcuUpdate */) {\n // Special case for the `icuUpdateCase`. It could be that the mask did not match, but\n // we still need to execute `icuUpdateCase` because the case has changed recently due to\n // previous `icuSwitchCase` instruction. (`icuSwitchCase` and `icuUpdateCase` always come in\n // pairs.)\n const nodeIndex = opCode >>> 2 /* I18nUpdateOpCode.SHIFT_REF */;\n const tIcu = getTIcu(tView, nodeIndex);\n const currentIndex = lView[tIcu.currentCaseLViewIndex];\n if (currentIndex < 0) {\n applyIcuUpdateCase(tView, tIcu, bindingsStartIndex, lView);\n }\n }\n }\n i += skipCodes;\n }\n}\n/**\n * Apply OpCodes associated with updating an existing ICU.\n *\n * @param tView Current `TView`\n * @param tIcu Current `TIcu`\n * @param bindingsStartIndex Location of the first `ɵɵi18nApply`\n * @param lView Current `LView`\n */\nfunction applyIcuUpdateCase(tView, tIcu, bindingsStartIndex, lView) {\n ngDevMode && assertIndexInRange(lView, tIcu.currentCaseLViewIndex);\n let activeCaseIndex = lView[tIcu.currentCaseLViewIndex];\n if (activeCaseIndex !== null) {\n let mask = changeMask;\n if (activeCaseIndex < 0) {\n // Clear the flag.\n // Negative number means that the ICU was freshly created and we need to force the update.\n activeCaseIndex = lView[tIcu.currentCaseLViewIndex] = ~activeCaseIndex;\n // -1 is same as all bits on, which simulates creation since it marks all bits dirty\n mask = -1;\n }\n applyUpdateOpCodes(tView, lView, tIcu.update[activeCaseIndex], bindingsStartIndex, mask);\n }\n}\n/**\n * Apply OpCodes associated with switching a case on ICU.\n *\n * This involves tearing down existing case and than building up a new case.\n *\n * @param tView Current `TView`\n * @param tIcu Current `TIcu`\n * @param lView Current `LView`\n * @param value Value of the case to update to.\n */\nfunction applyIcuSwitchCase(tView, tIcu, lView, value) {\n // Rebuild a new case for this ICU\n const caseIndex = getCaseIndex(tIcu, value);\n let activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView);\n if (activeCaseIndex !== caseIndex) {\n applyIcuSwitchCaseRemove(tView, tIcu, lView);\n lView[tIcu.currentCaseLViewIndex] = caseIndex === null ? null : ~caseIndex;\n if (caseIndex !== null) {\n // Add the nodes for the new case\n const anchorRNode = lView[tIcu.anchorIdx];\n if (anchorRNode) {\n ngDevMode && assertDomNode(anchorRNode);\n applyMutableOpCodes(tView, tIcu.create[caseIndex], lView, anchorRNode);\n }\n claimDehydratedIcuCase(lView, tIcu.anchorIdx, caseIndex);\n }\n }\n}\n/**\n * Apply OpCodes associated with tearing ICU case.\n *\n * This involves tearing down existing case and than building up a new case.\n *\n * @param tView Current `TView`\n * @param tIcu Current `TIcu`\n * @param lView Current `LView`\n */\nfunction applyIcuSwitchCaseRemove(tView, tIcu, lView) {\n let activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView);\n if (activeCaseIndex !== null) {\n const removeCodes = tIcu.remove[activeCaseIndex];\n for (let i = 0; i < removeCodes.length; i++) {\n const nodeOrIcuIndex = removeCodes[i];\n if (nodeOrIcuIndex > 0) {\n // Positive numbers are `RNode`s.\n const rNode = getNativeByIndex(nodeOrIcuIndex, lView);\n rNode !== null && nativeRemoveNode(lView[RENDERER], rNode);\n }\n else {\n // Negative numbers are ICUs\n applyIcuSwitchCaseRemove(tView, getTIcu(tView, ~nodeOrIcuIndex), lView);\n }\n }\n }\n}\n/**\n * Returns the index of the current case of an ICU expression depending on the main binding value\n *\n * @param icuExpression\n * @param bindingValue The value of the main binding used by this ICU expression\n */\nfunction getCaseIndex(icuExpression, bindingValue) {\n let index = icuExpression.cases.indexOf(bindingValue);\n if (index === -1) {\n switch (icuExpression.type) {\n case 1 /* IcuType.plural */: {\n const resolvedCase = getPluralCase(bindingValue, getLocaleId());\n index = icuExpression.cases.indexOf(resolvedCase);\n if (index === -1 && resolvedCase !== 'other') {\n index = icuExpression.cases.indexOf('other');\n }\n break;\n }\n case 0 /* IcuType.select */: {\n index = icuExpression.cases.indexOf('other');\n break;\n }\n }\n }\n return index === -1 ? null : index;\n}\n\n/**\n * Converts `I18nCreateOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nCreateOpCodes.debug` property if `ngDevMode` is enabled.\n * This function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nCreateOpCodes` if attached as a method.\n * @param opcodes `I18nCreateOpCodes` if invoked as a function.\n */\nfunction i18nCreateOpCodesToString(opcodes) {\n const createOpCodes = opcodes || (Array.isArray(this) ? this : []);\n let lines = [];\n for (let i = 0; i < createOpCodes.length; i++) {\n const opCode = createOpCodes[i++];\n const text = createOpCodes[i];\n const isComment = (opCode & I18nCreateOpCode.COMMENT) === I18nCreateOpCode.COMMENT;\n const appendNow = (opCode & I18nCreateOpCode.APPEND_EAGERLY) === I18nCreateOpCode.APPEND_EAGERLY;\n const index = opCode >>> I18nCreateOpCode.SHIFT;\n lines.push(`lView[${index}] = document.${isComment ? 'createComment' : 'createText'}(${JSON.stringify(text)});`);\n if (appendNow) {\n lines.push(`parent.appendChild(lView[${index}]);`);\n }\n }\n return lines;\n}\n/**\n * Converts `I18nUpdateOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nUpdateOpCodes.debug` property if `ngDevMode` is enabled.\n * This function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nUpdateOpCodes` if attached as a method.\n * @param opcodes `I18nUpdateOpCodes` if invoked as a function.\n */\nfunction i18nUpdateOpCodesToString(opcodes) {\n const parser = new OpCodeParser(opcodes || (Array.isArray(this) ? this : []));\n let lines = [];\n function consumeOpCode(value) {\n const ref = value >>> 2 /* I18nUpdateOpCode.SHIFT_REF */;\n const opCode = value & 3 /* I18nUpdateOpCode.MASK_OPCODE */;\n switch (opCode) {\n case 0 /* I18nUpdateOpCode.Text */:\n return `(lView[${ref}] as Text).textContent = $$$`;\n case 1 /* I18nUpdateOpCode.Attr */:\n const attrName = parser.consumeString();\n const sanitizationFn = parser.consumeFunction();\n const value = sanitizationFn ? `(${sanitizationFn})($$$)` : '$$$';\n return `(lView[${ref}] as Element).setAttribute('${attrName}', ${value})`;\n case 2 /* I18nUpdateOpCode.IcuSwitch */:\n return `icuSwitchCase(${ref}, $$$)`;\n case 3 /* I18nUpdateOpCode.IcuUpdate */:\n return `icuUpdateCase(${ref})`;\n }\n throw new Error('unexpected OpCode');\n }\n while (parser.hasMore()) {\n let mask = parser.consumeNumber();\n let size = parser.consumeNumber();\n const end = parser.i + size;\n const statements = [];\n let statement = '';\n while (parser.i < end) {\n let value = parser.consumeNumberOrString();\n if (typeof value === 'string') {\n statement += value;\n }\n else if (value < 0) {\n // Negative numbers are ref indexes\n // Here `i` refers to current binding index. It is to signify that the value is relative,\n // rather than absolute.\n statement += '${lView[i' + value + ']}';\n }\n else {\n // Positive numbers are operations.\n const opCodeText = consumeOpCode(value);\n statements.push(opCodeText.replace('$$$', '`' + statement + '`') + ';');\n statement = '';\n }\n }\n lines.push(`if (mask & 0b${mask.toString(2)}) { ${statements.join(' ')} }`);\n }\n return lines;\n}\n/**\n * Converts `I18nCreateOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nCreateOpCodes.debug` if `ngDevMode` is enabled. This\n * function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nCreateOpCodes` if attached as a method.\n * @param opcodes `I18nCreateOpCodes` if invoked as a function.\n */\nfunction icuCreateOpCodesToString(opcodes) {\n const parser = new OpCodeParser(opcodes || (Array.isArray(this) ? this : []));\n let lines = [];\n function consumeOpCode(opCode) {\n const parent = getParentFromIcuCreateOpCode(opCode);\n const ref = getRefFromIcuCreateOpCode(opCode);\n switch (getInstructionFromIcuCreateOpCode(opCode)) {\n case 0 /* IcuCreateOpCode.AppendChild */:\n return `(lView[${parent}] as Element).appendChild(lView[${lastRef}])`;\n case 1 /* IcuCreateOpCode.Attr */:\n return `(lView[${ref}] as Element).setAttribute(\"${parser.consumeString()}\", \"${parser.consumeString()}\")`;\n }\n throw new Error('Unexpected OpCode: ' + getInstructionFromIcuCreateOpCode(opCode));\n }\n let lastRef = -1;\n while (parser.hasMore()) {\n let value = parser.consumeNumberStringOrMarker();\n if (value === ICU_MARKER) {\n const text = parser.consumeString();\n lastRef = parser.consumeNumber();\n lines.push(`lView[${lastRef}] = document.createComment(\"${text}\")`);\n }\n else if (value === ELEMENT_MARKER) {\n const text = parser.consumeString();\n lastRef = parser.consumeNumber();\n lines.push(`lView[${lastRef}] = document.createElement(\"${text}\")`);\n }\n else if (typeof value === 'string') {\n lastRef = parser.consumeNumber();\n lines.push(`lView[${lastRef}] = document.createTextNode(\"${value}\")`);\n }\n else if (typeof value === 'number') {\n const line = consumeOpCode(value);\n line && lines.push(line);\n }\n else {\n throw new Error('Unexpected value');\n }\n }\n return lines;\n}\n/**\n * Converts `I18nRemoveOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nRemoveOpCodes.debug` if `ngDevMode` is enabled. This\n * function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nRemoveOpCodes` if attached as a method.\n * @param opcodes `I18nRemoveOpCodes` if invoked as a function.\n */\nfunction i18nRemoveOpCodesToString(opcodes) {\n const removeCodes = opcodes || (Array.isArray(this) ? this : []);\n let lines = [];\n for (let i = 0; i < removeCodes.length; i++) {\n const nodeOrIcuIndex = removeCodes[i];\n if (nodeOrIcuIndex > 0) {\n // Positive numbers are `RNode`s.\n lines.push(`remove(lView[${nodeOrIcuIndex}])`);\n }\n else {\n // Negative numbers are ICUs\n lines.push(`removeNestedICU(${~nodeOrIcuIndex})`);\n }\n }\n return lines;\n}\nclass OpCodeParser {\n i = 0;\n codes;\n constructor(codes) {\n this.codes = codes;\n }\n hasMore() {\n return this.i < this.codes.length;\n }\n consumeNumber() {\n let value = this.codes[this.i++];\n assertNumber(value, 'expecting number in OpCode');\n return value;\n }\n consumeString() {\n let value = this.codes[this.i++];\n assertString(value, 'expecting string in OpCode');\n return value;\n }\n consumeFunction() {\n let value = this.codes[this.i++];\n if (value === null || typeof value === 'function') {\n return value;\n }\n throw new Error('expecting function in OpCode');\n }\n consumeNumberOrString() {\n let value = this.codes[this.i++];\n if (typeof value === 'string') {\n return value;\n }\n assertNumber(value, 'expecting number or string in OpCode');\n return value;\n }\n consumeNumberStringOrMarker() {\n let value = this.codes[this.i++];\n if (typeof value === 'string' ||\n typeof value === 'number' ||\n value == ICU_MARKER ||\n value == ELEMENT_MARKER) {\n return value;\n }\n assertNumber(value, 'expecting number, string, ICU_MARKER or ELEMENT_MARKER in OpCode');\n return value;\n }\n}\n\nconst BINDING_REGEXP = /�(\\d+):?\\d*�/gi;\nconst ICU_REGEXP = /({\\s*�\\d+:?\\d*�\\s*,\\s*\\S{6}\\s*,[\\s\\S]*})/gi;\nconst NESTED_ICU = /�(\\d+)�/;\nconst ICU_BLOCK_REGEXP = /^\\s*(�\\d+:?\\d*�)\\s*,\\s*(select|plural)\\s*,/;\nconst MARKER = `�`;\nconst SUBTEMPLATE_REGEXP = /�\\/?\\*(\\d+:\\d+)�/gi;\nconst PH_REGEXP = /�(\\/?[#*]\\d+):?\\d*�/gi;\n/**\n * Angular uses the special entity &ngsp; as a placeholder for non-removable space.\n * It's replaced by the 0xE500 PUA (Private Use Areas) unicode character and later on replaced by a\n * space.\n * We are re-implementing the same idea since translations might contain this special character.\n */\nconst NGSP_UNICODE_REGEXP = /\\uE500/g;\nfunction replaceNgsp(value) {\n return value.replace(NGSP_UNICODE_REGEXP, ' ');\n}\n/**\n * Patch a `debug` property getter on top of the existing object.\n *\n * NOTE: always call this method with `ngDevMode && attachDebugObject(...)`\n *\n * @param obj Object to patch\n * @param debugGetter Getter returning a value to patch\n */\nfunction attachDebugGetter(obj, debugGetter) {\n if (ngDevMode) {\n Object.defineProperty(obj, 'debug', { get: debugGetter, enumerable: false });\n }\n else {\n throw new Error('This method should be guarded with `ngDevMode` so that it can be tree shaken in production!');\n }\n}\n/**\n * Create dynamic nodes from i18n translation block.\n *\n * - Text nodes are created synchronously\n * - TNodes are linked into tree lazily\n *\n * @param tView Current `TView`\n * @parentTNodeIndex index to the parent TNode of this i18n block\n * @param lView Current `LView`\n * @param index Index of `ɵɵi18nStart` instruction.\n * @param message Message to translate.\n * @param subTemplateIndex Index into the sub template of message translation. (ie in case of\n * `ngIf`) (-1 otherwise)\n */\nfunction i18nStartFirstCreatePass(tView, parentTNodeIndex, lView, index, message, subTemplateIndex) {\n const rootTNode = getCurrentParentTNode();\n const createOpCodes = [];\n const updateOpCodes = [];\n const existingTNodeStack = [[]];\n const astStack = [[]];\n if (ngDevMode) {\n attachDebugGetter(createOpCodes, i18nCreateOpCodesToString);\n attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);\n }\n message = getTranslationForTemplate(message, subTemplateIndex);\n const msgParts = replaceNgsp(message).split(PH_REGEXP);\n for (let i = 0; i < msgParts.length; i++) {\n let value = msgParts[i];\n if ((i & 1) === 0) {\n // Even indexes are text (including bindings & ICU expressions)\n const parts = i18nParseTextIntoPartsAndICU(value);\n for (let j = 0; j < parts.length; j++) {\n let part = parts[j];\n if ((j & 1) === 0) {\n // `j` is odd therefore `part` is string\n const text = part;\n ngDevMode && assertString(text, 'Parsed ICU part should be string');\n if (text !== '') {\n i18nStartFirstCreatePassProcessTextNode(astStack[0], tView, rootTNode, existingTNodeStack[0], createOpCodes, updateOpCodes, lView, text);\n }\n }\n else {\n // `j` is Even therefor `part` is an `ICUExpression`\n const icuExpression = part;\n // Verify that ICU expression has the right shape. Translations might contain invalid\n // constructions (while original messages were correct), so ICU parsing at runtime may\n // not succeed (thus `icuExpression` remains a string).\n // Note: we intentionally retain the error here by not using `ngDevMode`, because\n // the value can change based on the locale and users aren't guaranteed to hit\n // an invalid string while they're developing.\n if (typeof icuExpression !== 'object') {\n throw new Error(`Unable to parse ICU expression in \"${message}\" message.`);\n }\n const icuContainerTNode = createTNodeAndAddOpCode(tView, rootTNode, existingTNodeStack[0], lView, createOpCodes, ngDevMode ? `ICU ${index}:${icuExpression.mainBinding}` : '', true);\n const icuNodeIndex = icuContainerTNode.index;\n ngDevMode &&\n assertGreaterThanOrEqual(icuNodeIndex, HEADER_OFFSET, 'Index must be in absolute LView offset');\n icuStart(astStack[0], tView, lView, updateOpCodes, parentTNodeIndex, icuExpression, icuNodeIndex);\n }\n }\n }\n else {\n // Odd indexes are placeholders (elements and sub-templates)\n // At this point value is something like: '/#1:2' (originally coming from '�/#1:2�')\n const isClosing = value.charCodeAt(0) === 47 /* CharCode.SLASH */;\n const type = value.charCodeAt(isClosing ? 1 : 0);\n ngDevMode && assertOneOf(type, 42 /* CharCode.STAR */, 35 /* CharCode.HASH */);\n const index = HEADER_OFFSET + Number.parseInt(value.substring(isClosing ? 2 : 1));\n if (isClosing) {\n existingTNodeStack.shift();\n astStack.shift();\n setCurrentTNode(getCurrentParentTNode(), false);\n }\n else {\n const tNode = createTNodePlaceholder(tView, existingTNodeStack[0], index);\n existingTNodeStack.unshift([]);\n setCurrentTNode(tNode, true);\n const placeholderNode = {\n kind: 2 /* I18nNodeKind.PLACEHOLDER */,\n index,\n children: [],\n type: type === 35 /* CharCode.HASH */ ? 0 /* I18nPlaceholderType.ELEMENT */ : 1 /* I18nPlaceholderType.SUBTEMPLATE */,\n };\n astStack[0].push(placeholderNode);\n astStack.unshift(placeholderNode.children);\n }\n }\n }\n tView.data[index] = {\n create: createOpCodes,\n update: updateOpCodes,\n ast: astStack[0],\n parentTNodeIndex,\n };\n}\n/**\n * Allocate space in i18n Range add create OpCode instruction to create a text or comment node.\n *\n * @param tView Current `TView` needed to allocate space in i18n range.\n * @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will be\n * added as part of the `i18nStart` instruction or as part of the `TNode.insertBeforeIndex`.\n * @param existingTNodes internal state for `addTNodeAndUpdateInsertBeforeIndex`.\n * @param lView Current `LView` needed to allocate space in i18n range.\n * @param createOpCodes Array storing `I18nCreateOpCodes` where new opCodes will be added.\n * @param text Text to be added when the `Text` or `Comment` node will be created.\n * @param isICU true if a `Comment` node for ICU (instead of `Text`) node should be created.\n */\nfunction createTNodeAndAddOpCode(tView, rootTNode, existingTNodes, lView, createOpCodes, text, isICU) {\n const i18nNodeIdx = allocExpando(tView, lView, 1, null);\n let opCode = i18nNodeIdx << I18nCreateOpCode.SHIFT;\n let parentTNode = getCurrentParentTNode();\n if (rootTNode === parentTNode) {\n // FIXME(misko): A null `parentTNode` should represent when we fall of the `LView` boundary.\n // (there is no parent), but in some circumstances (because we are inconsistent about how we set\n // `previousOrParentTNode`) it could point to `rootTNode` So this is a work around.\n parentTNode = null;\n }\n if (parentTNode === null) {\n // If we don't have a parent that means that we can eagerly add nodes.\n // If we have a parent than these nodes can't be added now (as the parent has not been created\n // yet) and instead the `parentTNode` is responsible for adding it. See\n // `TNode.insertBeforeIndex`\n opCode |= I18nCreateOpCode.APPEND_EAGERLY;\n }\n if (isICU) {\n opCode |= I18nCreateOpCode.COMMENT;\n ensureIcuContainerVisitorLoaded(loadIcuContainerVisitor);\n }\n createOpCodes.push(opCode, text === null ? '' : text);\n // We store `{{?}}` so that when looking at debug `TNodeType.template` we can see where the\n // bindings are.\n const tNode = createTNodeAtIndex(tView, i18nNodeIdx, isICU ? 32 /* TNodeType.Icu */ : 1 /* TNodeType.Text */, text === null ? (ngDevMode ? '{{?}}' : '') : text, null);\n addTNodeAndUpdateInsertBeforeIndex(existingTNodes, tNode);\n const tNodeIdx = tNode.index;\n setCurrentTNode(tNode, false /* Text nodes are self closing */);\n if (parentTNode !== null && rootTNode !== parentTNode) {\n // We are a child of deeper node (rather than a direct child of `i18nStart` instruction.)\n // We have to make sure to add ourselves to the parent.\n setTNodeInsertBeforeIndex(parentTNode, tNodeIdx);\n }\n return tNode;\n}\n/**\n * Processes text node in i18n block.\n *\n * Text nodes can have:\n * - Create instruction in `createOpCodes` for creating the text node.\n * - Allocate spec for text node in i18n range of `LView`\n * - If contains binding:\n * - bindings => allocate space in i18n range of `LView` to store the binding value.\n * - populate `updateOpCodes` with update instructions.\n *\n * @param tView Current `TView`\n * @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will\n * be added as part of the `i18nStart` instruction or as part of the\n * `TNode.insertBeforeIndex`.\n * @param existingTNodes internal state for `addTNodeAndUpdateInsertBeforeIndex`.\n * @param createOpCodes Location where the creation OpCodes will be stored.\n * @param lView Current `LView`\n * @param text The translated text (which may contain binding)\n */\nfunction i18nStartFirstCreatePassProcessTextNode(ast, tView, rootTNode, existingTNodes, createOpCodes, updateOpCodes, lView, text) {\n const hasBinding = text.match(BINDING_REGEXP);\n const tNode = createTNodeAndAddOpCode(tView, rootTNode, existingTNodes, lView, createOpCodes, hasBinding ? null : text, false);\n const index = tNode.index;\n if (hasBinding) {\n generateBindingUpdateOpCodes(updateOpCodes, text, index, null, 0, null);\n }\n ast.push({ kind: 0 /* I18nNodeKind.TEXT */, index });\n}\n/**\n * See `i18nAttributes` above.\n */\nfunction i18nAttributesFirstPass(tView, index, values) {\n const previousElement = getCurrentTNode();\n const previousElementIndex = previousElement.index;\n const updateOpCodes = [];\n if (ngDevMode) {\n attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);\n }\n if (tView.firstCreatePass && tView.data[index] === null) {\n for (let i = 0; i < values.length; i += 2) {\n const attrName = values[i];\n const message = values[i + 1];\n if (message !== '') {\n // Check if attribute value contains an ICU and throw an error if that's the case.\n // ICUs in element attributes are not supported.\n // Note: we intentionally retain the error here by not using `ngDevMode`, because\n // the `value` can change based on the locale and users aren't guaranteed to hit\n // an invalid string while they're developing.\n if (ICU_REGEXP.test(message)) {\n throw new Error(`ICU expressions are not supported in attributes. Message: \"${message}\".`);\n }\n // i18n attributes that hit this code path are guaranteed to have bindings, because\n // the compiler treats static i18n attributes as regular attribute bindings.\n // Since this may not be the first i18n attribute on this element we need to pass in how\n // many previous bindings there have already been.\n generateBindingUpdateOpCodes(updateOpCodes, message, previousElementIndex, attrName, countBindings(updateOpCodes), null);\n }\n }\n tView.data[index] = updateOpCodes;\n }\n}\n/**\n * Generate the OpCodes to update the bindings of a string.\n *\n * @param updateOpCodes Place where the update opcodes will be stored.\n * @param str The string containing the bindings.\n * @param destinationNode Index of the destination node which will receive the binding.\n * @param attrName Name of the attribute, if the string belongs to an attribute.\n * @param sanitizeFn Sanitization function used to sanitize the string after update, if necessary.\n * @param bindingStart The lView index of the next expression that can be bound via an opCode.\n * @returns The mask value for these bindings\n */\nfunction generateBindingUpdateOpCodes(updateOpCodes, str, destinationNode, attrName, bindingStart, sanitizeFn) {\n ngDevMode &&\n assertGreaterThanOrEqual(destinationNode, HEADER_OFFSET, 'Index must be in absolute LView offset');\n const maskIndex = updateOpCodes.length; // Location of mask\n const sizeIndex = maskIndex + 1; // location of size for skipping\n updateOpCodes.push(null, null); // Alloc space for mask and size\n const startIndex = maskIndex + 2; // location of first allocation.\n if (ngDevMode) {\n attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);\n }\n const textParts = str.split(BINDING_REGEXP);\n let mask = 0;\n for (let j = 0; j < textParts.length; j++) {\n const textValue = textParts[j];\n if (j & 1) {\n // Odd indexes are bindings\n const bindingIndex = bindingStart + parseInt(textValue, 10);\n updateOpCodes.push(-1 - bindingIndex);\n mask = mask | toMaskBit(bindingIndex);\n }\n else if (textValue !== '') {\n // Even indexes are text\n updateOpCodes.push(textValue);\n }\n }\n updateOpCodes.push((destinationNode << 2 /* I18nUpdateOpCode.SHIFT_REF */) |\n (attrName ? 1 /* I18nUpdateOpCode.Attr */ : 0 /* I18nUpdateOpCode.Text */));\n if (attrName) {\n updateOpCodes.push(attrName, sanitizeFn);\n }\n updateOpCodes[maskIndex] = mask;\n updateOpCodes[sizeIndex] = updateOpCodes.length - startIndex;\n return mask;\n}\n/**\n * Count the number of bindings in the given `opCodes`.\n *\n * It could be possible to speed this up, by passing the number of bindings found back from\n * `generateBindingUpdateOpCodes()` to `i18nAttributesFirstPass()` but this would then require more\n * complexity in the code and/or transient objects to be created.\n *\n * Since this function is only called once when the template is instantiated, is trivial in the\n * first instance (since `opCodes` will be an empty array), and it is not common for elements to\n * contain multiple i18n bound attributes, it seems like this is a reasonable compromise.\n */\nfunction countBindings(opCodes) {\n let count = 0;\n for (let i = 0; i < opCodes.length; i++) {\n const opCode = opCodes[i];\n // Bindings are negative numbers.\n if (typeof opCode === 'number' && opCode < 0) {\n count++;\n }\n }\n return count;\n}\n/**\n * Convert binding index to mask bit.\n *\n * Each index represents a single bit on the bit-mask. Because bit-mask only has 32 bits, we make\n * the 32nd bit share all masks for all bindings higher than 32. Since it is extremely rare to\n * have more than 32 bindings this will be hit very rarely. The downside of hitting this corner\n * case is that we will execute binding code more often than necessary. (penalty of performance)\n */\nfunction toMaskBit(bindingIndex) {\n return 1 << Math.min(bindingIndex, 31);\n}\n/**\n * Removes everything inside the sub-templates of a message.\n */\nfunction removeInnerTemplateTranslation(message) {\n let match;\n let res = '';\n let index = 0;\n let inTemplate = false;\n let tagMatched;\n while ((match = SUBTEMPLATE_REGEXP.exec(message)) !== null) {\n if (!inTemplate) {\n res += message.substring(index, match.index + match[0].length);\n tagMatched = match[1];\n inTemplate = true;\n }\n else {\n if (match[0] === `${MARKER}/*${tagMatched}${MARKER}`) {\n index = match.index;\n inTemplate = false;\n }\n }\n }\n ngDevMode &&\n assertEqual(inTemplate, false, `Tag mismatch: unable to find the end of the sub-template in the translation \"${message}\"`);\n res += message.slice(index);\n return res;\n}\n/**\n * Extracts a part of a message and removes the rest.\n *\n * This method is used for extracting a part of the message associated with a template. A\n * translated message can span multiple templates.\n *\n * Example:\n * ```html\n * <div i18n>Translate <span *ngIf>me</span>!</div>\n * ```\n *\n * @param message The message to crop\n * @param subTemplateIndex Index of the sub-template to extract. If undefined it returns the\n * external template and removes all sub-templates.\n */\nfunction getTranslationForTemplate(message, subTemplateIndex) {\n if (isRootTemplateMessage(subTemplateIndex)) {\n // We want the root template message, ignore all sub-templates\n return removeInnerTemplateTranslation(message);\n }\n else {\n // We want a specific sub-template\n const start = message.indexOf(`:${subTemplateIndex}${MARKER}`) + 2 + subTemplateIndex.toString().length;\n const end = message.search(new RegExp(`${MARKER}\\\\/\\\\*\\\\d+:${subTemplateIndex}${MARKER}`));\n return removeInnerTemplateTranslation(message.substring(start, end));\n }\n}\n/**\n * Generate the OpCodes for ICU expressions.\n *\n * @param icuExpression\n * @param index Index where the anchor is stored and an optional `TIcuContainerNode`\n * - `lView[anchorIdx]` points to a `Comment` node representing the anchor for the ICU.\n * - `tView.data[anchorIdx]` points to the `TIcuContainerNode` if ICU is root (`null` otherwise)\n */\nfunction icuStart(ast, tView, lView, updateOpCodes, parentIdx, icuExpression, anchorIdx) {\n ngDevMode && assertDefined(icuExpression, 'ICU expression must be defined');\n let bindingMask = 0;\n const tIcu = {\n type: icuExpression.type,\n currentCaseLViewIndex: allocExpando(tView, lView, 1, null),\n anchorIdx,\n cases: [],\n create: [],\n remove: [],\n update: [],\n };\n addUpdateIcuSwitch(updateOpCodes, icuExpression, anchorIdx);\n setTIcu(tView, anchorIdx, tIcu);\n const values = icuExpression.values;\n const cases = [];\n for (let i = 0; i < values.length; i++) {\n // Each value is an array of strings & other ICU expressions\n const valueArr = values[i];\n const nestedIcus = [];\n for (let j = 0; j < valueArr.length; j++) {\n const value = valueArr[j];\n if (typeof value !== 'string') {\n // It is an nested ICU expression\n const icuIndex = nestedIcus.push(value) - 1;\n // Replace nested ICU expression by a comment node\n valueArr[j] = `<!--�${icuIndex}�-->`;\n }\n }\n const caseAst = [];\n cases.push(caseAst);\n bindingMask =\n parseIcuCase(caseAst, tView, tIcu, lView, updateOpCodes, parentIdx, icuExpression.cases[i], valueArr.join(''), nestedIcus) | bindingMask;\n }\n if (bindingMask) {\n addUpdateIcuUpdate(updateOpCodes, bindingMask, anchorIdx);\n }\n ast.push({\n kind: 3 /* I18nNodeKind.ICU */,\n index: anchorIdx,\n cases,\n currentCaseLViewIndex: tIcu.currentCaseLViewIndex,\n });\n}\n/**\n * Parses text containing an ICU expression and produces a JSON object for it.\n * Original code from closure library, modified for Angular.\n *\n * @param pattern Text containing an ICU expression that needs to be parsed.\n *\n */\nfunction parseICUBlock(pattern) {\n const cases = [];\n const values = [];\n let icuType = 1 /* IcuType.plural */;\n let mainBinding = 0;\n pattern = pattern.replace(ICU_BLOCK_REGEXP, function (str, binding, type) {\n if (type === 'select') {\n icuType = 0 /* IcuType.select */;\n }\n else {\n icuType = 1 /* IcuType.plural */;\n }\n mainBinding = parseInt(binding.slice(1), 10);\n return '';\n });\n const parts = i18nParseTextIntoPartsAndICU(pattern);\n // Looking for (key block)+ sequence. One of the keys has to be \"other\".\n for (let pos = 0; pos < parts.length;) {\n let key = parts[pos++].trim();\n if (icuType === 1 /* IcuType.plural */) {\n // Key can be \"=x\", we just want \"x\"\n key = key.replace(/\\s*(?:=)?(\\w+)\\s*/, '$1');\n }\n if (key.length) {\n cases.push(key);\n }\n const blocks = i18nParseTextIntoPartsAndICU(parts[pos++]);\n if (cases.length > values.length) {\n values.push(blocks);\n }\n }\n // TODO(ocombe): support ICU expressions in attributes, see #21615\n return { type: icuType, mainBinding: mainBinding, cases, values };\n}\n/**\n * Breaks pattern into strings and top level {...} blocks.\n * Can be used to break a message into text and ICU expressions, or to break an ICU expression\n * into keys and cases. Original code from closure library, modified for Angular.\n *\n * @param pattern (sub)Pattern to be broken.\n * @returns An `Array<string|IcuExpression>` where:\n * - odd positions: `string` => text between ICU expressions\n * - even positions: `ICUExpression` => ICU expression parsed into `ICUExpression` record.\n */\nfunction i18nParseTextIntoPartsAndICU(pattern) {\n if (!pattern) {\n return [];\n }\n let prevPos = 0;\n const braceStack = [];\n const results = [];\n const braces = /[{}]/g;\n // lastIndex doesn't get set to 0 so we have to.\n braces.lastIndex = 0;\n let match;\n while ((match = braces.exec(pattern))) {\n const pos = match.index;\n if (match[0] == '}') {\n braceStack.pop();\n if (braceStack.length == 0) {\n // End of the block.\n const block = pattern.substring(prevPos, pos);\n if (ICU_BLOCK_REGEXP.test(block)) {\n results.push(parseICUBlock(block));\n }\n else {\n results.push(block);\n }\n prevPos = pos + 1;\n }\n }\n else {\n if (braceStack.length == 0) {\n const substring = pattern.substring(prevPos, pos);\n results.push(substring);\n prevPos = pos + 1;\n }\n braceStack.push('{');\n }\n }\n const substring = pattern.substring(prevPos);\n results.push(substring);\n return results;\n}\n/**\n * Parses a node, its children and its siblings, and generates the mutate & update OpCodes.\n *\n */\nfunction parseIcuCase(ast, tView, tIcu, lView, updateOpCodes, parentIdx, caseName, unsafeCaseHtml, nestedIcus) {\n const create = [];\n const remove = [];\n const update = [];\n if (ngDevMode) {\n attachDebugGetter(create, icuCreateOpCodesToString);\n attachDebugGetter(remove, i18nRemoveOpCodesToString);\n attachDebugGetter(update, i18nUpdateOpCodesToString);\n }\n tIcu.cases.push(caseName);\n tIcu.create.push(create);\n tIcu.remove.push(remove);\n tIcu.update.push(update);\n const inertBodyHelper = getInertBodyHelper(getDocument());\n const inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeCaseHtml);\n ngDevMode && assertDefined(inertBodyElement, 'Unable to generate inert body element');\n const inertRootNode = getTemplateContent(inertBodyElement) || inertBodyElement;\n if (inertRootNode) {\n return walkIcuTree(ast, tView, tIcu, lView, updateOpCodes, create, remove, update, inertRootNode, parentIdx, nestedIcus, 0);\n }\n else {\n return 0;\n }\n}\nfunction walkIcuTree(ast, tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, parentNode, parentIdx, nestedIcus, depth) {\n let bindingMask = 0;\n let currentNode = parentNode.firstChild;\n while (currentNode) {\n const newIndex = allocExpando(tView, lView, 1, null);\n switch (currentNode.nodeType) {\n case Node.ELEMENT_NODE:\n const element = currentNode;\n const tagName = element.tagName.toLowerCase();\n if (VALID_ELEMENTS.hasOwnProperty(tagName)) {\n addCreateNodeAndAppend(create, ELEMENT_MARKER, tagName, parentIdx, newIndex);\n tView.data[newIndex] = tagName;\n const elAttrs = element.attributes;\n for (let i = 0; i < elAttrs.length; i++) {\n const attr = elAttrs.item(i);\n const lowerAttrName = attr.name.toLowerCase();\n const hasBinding = !!attr.value.match(BINDING_REGEXP);\n // we assume the input string is safe, unless it's using a binding\n if (hasBinding) {\n if (VALID_ATTRS.hasOwnProperty(lowerAttrName)) {\n if (URI_ATTRS[lowerAttrName]) {\n generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, 0, _sanitizeUrl);\n }\n else {\n generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, 0, null);\n }\n }\n else {\n ngDevMode &&\n console.warn(`WARNING: ignoring unsafe attribute value ` +\n `${lowerAttrName} on element ${tagName} ` +\n `(see ${XSS_SECURITY_URL})`);\n }\n }\n else {\n addCreateAttribute(create, newIndex, attr);\n }\n }\n const elementNode = {\n kind: 1 /* I18nNodeKind.ELEMENT */,\n index: newIndex,\n children: [],\n };\n ast.push(elementNode);\n // Parse the children of this node (if any)\n bindingMask =\n walkIcuTree(elementNode.children, tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, currentNode, newIndex, nestedIcus, depth + 1) | bindingMask;\n addRemoveNode(remove, newIndex, depth);\n }\n break;\n case Node.TEXT_NODE:\n const value = currentNode.textContent || '';\n const hasBinding = value.match(BINDING_REGEXP);\n addCreateNodeAndAppend(create, null, hasBinding ? '' : value, parentIdx, newIndex);\n addRemoveNode(remove, newIndex, depth);\n if (hasBinding) {\n bindingMask =\n generateBindingUpdateOpCodes(update, value, newIndex, null, 0, null) | bindingMask;\n }\n ast.push({\n kind: 0 /* I18nNodeKind.TEXT */,\n index: newIndex,\n });\n break;\n case Node.COMMENT_NODE:\n // Check if the comment node is a placeholder for a nested ICU\n const isNestedIcu = NESTED_ICU.exec(currentNode.textContent || '');\n if (isNestedIcu) {\n const nestedIcuIndex = parseInt(isNestedIcu[1], 10);\n const icuExpression = nestedIcus[nestedIcuIndex];\n // Create the comment node that will anchor the ICU expression\n addCreateNodeAndAppend(create, ICU_MARKER, ngDevMode ? `nested ICU ${nestedIcuIndex}` : '', parentIdx, newIndex);\n icuStart(ast, tView, lView, sharedUpdateOpCodes, parentIdx, icuExpression, newIndex);\n addRemoveNestedIcu(remove, newIndex, depth);\n }\n break;\n }\n currentNode = currentNode.nextSibling;\n }\n return bindingMask;\n}\nfunction addRemoveNode(remove, index, depth) {\n if (depth === 0) {\n remove.push(index);\n }\n}\nfunction addRemoveNestedIcu(remove, index, depth) {\n if (depth === 0) {\n remove.push(~index); // remove ICU at `index`\n remove.push(index); // remove ICU comment at `index`\n }\n}\nfunction addUpdateIcuSwitch(update, icuExpression, index) {\n update.push(toMaskBit(icuExpression.mainBinding), 2, -1 - icuExpression.mainBinding, (index << 2 /* I18nUpdateOpCode.SHIFT_REF */) | 2 /* I18nUpdateOpCode.IcuSwitch */);\n}\nfunction addUpdateIcuUpdate(update, bindingMask, index) {\n update.push(bindingMask, 1, (index << 2 /* I18nUpdateOpCode.SHIFT_REF */) | 3 /* I18nUpdateOpCode.IcuUpdate */);\n}\nfunction addCreateNodeAndAppend(create, marker, text, appendToParentIdx, createAtIdx) {\n if (marker !== null) {\n create.push(marker);\n }\n create.push(text, createAtIdx, icuCreateOpCode(0 /* IcuCreateOpCode.AppendChild */, appendToParentIdx, createAtIdx));\n}\nfunction addCreateAttribute(create, newIndex, attr) {\n create.push((newIndex << 1 /* IcuCreateOpCode.SHIFT_REF */) | 1 /* IcuCreateOpCode.Attr */, attr.name, attr.value);\n}\n\n// i18nPostprocess consts\nconst ROOT_TEMPLATE_ID = 0;\nconst PP_MULTI_VALUE_PLACEHOLDERS_REGEXP = /\\[(�.+?�?)\\]/;\nconst PP_PLACEHOLDERS_REGEXP = /\\[(�.+?�?)\\]|(�\\/?\\*\\d+:\\d+�)/g;\nconst PP_ICU_VARS_REGEXP = /({\\s*)(VAR_(PLURAL|SELECT)(_\\d+)?)(\\s*,)/g;\nconst PP_ICU_PLACEHOLDERS_REGEXP = /{([A-Z0-9_]+)}/g;\nconst PP_ICUS_REGEXP = /�I18N_EXP_(ICU(_\\d+)?)�/g;\nconst PP_CLOSE_TEMPLATE_REGEXP = /\\/\\*/;\nconst PP_TEMPLATE_ID_REGEXP = /\\d+\\:(\\d+)/;\n/**\n * Handles message string post-processing for internationalization.\n *\n * Handles message string post-processing by transforming it from intermediate\n * format (that might contain some markers that we need to replace) to the final\n * form, consumable by i18nStart instruction. Post processing steps include:\n *\n * 1. Resolve all multi-value cases (like [�*1:1��#2:1�|�#4:1�|�5�])\n * 2. Replace all ICU vars (like \"VAR_PLURAL\")\n * 3. Replace all placeholders used inside ICUs in a form of {PLACEHOLDER}\n * 4. Replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�)\n * in case multiple ICUs have the same placeholder name\n *\n * @param message Raw translation string for post processing\n * @param replacements Set of replacements that should be applied\n *\n * @returns Transformed string that can be consumed by i18nStart instruction\n *\n * @codeGenApi\n */\nfunction i18nPostprocess(message, replacements = {}) {\n /**\n * Step 1: resolve all multi-value placeholders like [�#5�|�*1:1��#2:1�|�#4:1�]\n *\n * Note: due to the way we process nested templates (BFS), multi-value placeholders are typically\n * grouped by templates, for example: [�#5�|�#6�|�#1:1�|�#3:2�] where �#5� and �#6� belong to root\n * template, �#1:1� belong to nested template with index 1 and �#1:2� - nested template with index\n * 3. However in real templates the order might be different: i.e. �#1:1� and/or �#3:2� may go in\n * front of �#6�. The post processing step restores the right order by keeping track of the\n * template id stack and looks for placeholders that belong to the currently active template.\n */\n let result = message;\n if (PP_MULTI_VALUE_PLACEHOLDERS_REGEXP.test(message)) {\n const matches = {};\n const templateIdsStack = [ROOT_TEMPLATE_ID];\n result = result.replace(PP_PLACEHOLDERS_REGEXP, (m, phs, tmpl) => {\n const content = phs || tmpl;\n const placeholders = matches[content] || [];\n if (!placeholders.length) {\n content.split('|').forEach((placeholder) => {\n const match = placeholder.match(PP_TEMPLATE_ID_REGEXP);\n const templateId = match ? parseInt(match[1], 10) : ROOT_TEMPLATE_ID;\n const isCloseTemplateTag = PP_CLOSE_TEMPLATE_REGEXP.test(placeholder);\n placeholders.push([templateId, isCloseTemplateTag, placeholder]);\n });\n matches[content] = placeholders;\n }\n if (!placeholders.length) {\n throw new Error(`i18n postprocess: unmatched placeholder - ${content}`);\n }\n const currentTemplateId = templateIdsStack[templateIdsStack.length - 1];\n let idx = 0;\n // find placeholder index that matches current template id\n for (let i = 0; i < placeholders.length; i++) {\n if (placeholders[i][0] === currentTemplateId) {\n idx = i;\n break;\n }\n }\n // update template id stack based on the current tag extracted\n const [templateId, isCloseTemplateTag, placeholder] = placeholders[idx];\n if (isCloseTemplateTag) {\n templateIdsStack.pop();\n }\n else if (currentTemplateId !== templateId) {\n templateIdsStack.push(templateId);\n }\n // remove processed tag from the list\n placeholders.splice(idx, 1);\n return placeholder;\n });\n }\n // return current result if no replacements specified\n if (!Object.keys(replacements).length) {\n return result;\n }\n /**\n * Step 2: replace all ICU vars (like \"VAR_PLURAL\")\n */\n result = result.replace(PP_ICU_VARS_REGEXP, (match, start, key, _type, _idx, end) => {\n return replacements.hasOwnProperty(key) ? `${start}${replacements[key]}${end}` : match;\n });\n /**\n * Step 3: replace all placeholders used inside ICUs in a form of {PLACEHOLDER}\n */\n result = result.replace(PP_ICU_PLACEHOLDERS_REGEXP, (match, key) => {\n return replacements.hasOwnProperty(key) ? replacements[key] : match;\n });\n /**\n * Step 4: replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�) in case\n * multiple ICUs have the same placeholder name\n */\n result = result.replace(PP_ICUS_REGEXP, (match, key) => {\n if (replacements.hasOwnProperty(key)) {\n const list = replacements[key];\n if (!list.length) {\n throw new Error(`i18n postprocess: unmatched ICU - ${match} with key: ${key}`);\n }\n return list.shift();\n }\n return match;\n });\n return result;\n}\n\n/**\n * Marks a block of text as translatable.\n *\n * The instructions `i18nStart` and `i18nEnd` mark the translation block in the template.\n * The translation `message` is the value which is locale specific. The translation string may\n * contain placeholders which associate inner elements and sub-templates within the translation.\n *\n * The translation `message` placeholders are:\n * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be\n * interpolated into. The placeholder `index` points to the expression binding index. An optional\n * `block` that matches the sub-template in which it was declared.\n * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*: Marks the beginning\n * and end of DOM element that were embedded in the original translation block. The placeholder\n * `index` points to the element index in the template instructions set. An optional `block` that\n * matches the sub-template in which it was declared.\n * - `�*{index}:{block}�`/`�/*{index}:{block}�`: *Sub-template Placeholder*: Sub-templates must be\n * split up and translated separately in each angular template function. The `index` points to the\n * `template` instruction index. A `block` that matches the sub-template in which it was declared.\n *\n * @param index A unique index of the translation in the static block.\n * @param messageIndex An index of the translation message from the `def.consts` array.\n * @param subTemplateIndex Optional sub-template index in the `message`.\n *\n * @codeGenApi\n */\nfunction ɵɵi18nStart(index, messageIndex, subTemplateIndex = -1) {\n const tView = getTView();\n const lView = getLView();\n const adjustedIndex = HEADER_OFFSET + index;\n ngDevMode && assertDefined(tView, `tView should be defined`);\n const message = getConstant(tView.consts, messageIndex);\n const parentTNode = getCurrentParentTNode();\n if (tView.firstCreatePass) {\n i18nStartFirstCreatePass(tView, parentTNode === null ? 0 : parentTNode.index, lView, adjustedIndex, message, subTemplateIndex);\n }\n // Set a flag that this LView has i18n blocks.\n // The flag is later used to determine whether this component should\n // be hydrated (currently hydration is not supported for i18n blocks).\n if (tView.type === 2 /* TViewType.Embedded */) {\n // Annotate host component's LView (not embedded view's LView),\n // since hydration can be skipped on per-component basis only.\n const componentLView = lView[DECLARATION_COMPONENT_VIEW];\n componentLView[FLAGS] |= 32 /* LViewFlags.HasI18n */;\n }\n else {\n lView[FLAGS] |= 32 /* LViewFlags.HasI18n */;\n }\n const tI18n = tView.data[adjustedIndex];\n const sameViewParentTNode = parentTNode === lView[T_HOST] ? null : parentTNode;\n const parentRNode = getClosestRElement(tView, sameViewParentTNode, lView);\n // If `parentTNode` is an `ElementContainer` than it has `<!--ng-container--->`.\n // When we do inserts we have to make sure to insert in front of `<!--ng-container--->`.\n const insertInFrontOf = parentTNode && parentTNode.type & 8 /* TNodeType.ElementContainer */ ? lView[parentTNode.index] : null;\n prepareI18nBlockForHydration(lView, adjustedIndex, parentTNode, subTemplateIndex);\n applyCreateOpCodes(lView, tI18n.create, parentRNode, insertInFrontOf);\n setInI18nBlock(true);\n}\n/**\n * Translates a translation block marked by `i18nStart` and `i18nEnd`. It inserts the text/ICU nodes\n * into the render tree, moves the placeholder nodes and removes the deleted nodes.\n *\n * @codeGenApi\n */\nfunction ɵɵi18nEnd() {\n setInI18nBlock(false);\n}\n/**\n *\n * Use this instruction to create a translation block that doesn't contain any placeholder.\n * It calls both {@link i18nStart} and {@link i18nEnd} in one instruction.\n *\n * The translation `message` is the value which is locale specific. The translation string may\n * contain placeholders which associate inner elements and sub-templates within the translation.\n *\n * The translation `message` placeholders are:\n * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be\n * interpolated into. The placeholder `index` points to the expression binding index. An optional\n * `block` that matches the sub-template in which it was declared.\n * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*: Marks the beginning\n * and end of DOM element that were embedded in the original translation block. The placeholder\n * `index` points to the element index in the template instructions set. An optional `block` that\n * matches the sub-template in which it was declared.\n * - `�*{index}:{block}�`/`�/*{index}:{block}�`: *Sub-template Placeholder*: Sub-templates must be\n * split up and translated separately in each angular template function. The `index` points to the\n * `template` instruction index. A `block` that matches the sub-template in which it was declared.\n *\n * @param index A unique index of the translation in the static block.\n * @param messageIndex An index of the translation message from the `def.consts` array.\n * @param subTemplateIndex Optional sub-template index in the `message`.\n *\n * @codeGenApi\n */\nfunction ɵɵi18n(index, messageIndex, subTemplateIndex) {\n ɵɵi18nStart(index, messageIndex, subTemplateIndex);\n ɵɵi18nEnd();\n}\n/**\n * Marks a list of attributes as translatable.\n *\n * @param index A unique index in the static block\n * @param values\n *\n * @codeGenApi\n */\nfunction ɵɵi18nAttributes(index, attrsIndex) {\n const tView = getTView();\n ngDevMode && assertDefined(tView, `tView should be defined`);\n const attrs = getConstant(tView.consts, attrsIndex);\n i18nAttributesFirstPass(tView, index + HEADER_OFFSET, attrs);\n}\n/**\n * Stores the values of the bindings during each update cycle in order to determine if we need to\n * update the translated nodes.\n *\n * @param value The binding's value\n * @returns This function returns itself so that it may be chained\n * (e.g. `i18nExp(ctx.name)(ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵi18nExp(value) {\n const lView = getLView();\n setMaskBit(bindingUpdated(lView, nextBindingIndex(), value));\n return ɵɵi18nExp;\n}\n/**\n * Updates a translation block or an i18n attribute when the bindings have changed.\n *\n * @param index Index of either {@link i18nStart} (translation block) or {@link i18nAttributes}\n * (i18n attribute) on which it should update the content.\n *\n * @codeGenApi\n */\nfunction ɵɵi18nApply(index) {\n applyI18n(getTView(), getLView(), index + HEADER_OFFSET);\n}\n/**\n * Handles message string post-processing for internationalization.\n *\n * Handles message string post-processing by transforming it from intermediate\n * format (that might contain some markers that we need to replace) to the final\n * form, consumable by i18nStart instruction. Post processing steps include:\n *\n * 1. Resolve all multi-value cases (like [�*1:1��#2:1�|�#4:1�|�5�])\n * 2. Replace all ICU vars (like \"VAR_PLURAL\")\n * 3. Replace all placeholders used inside ICUs in a form of {PLACEHOLDER}\n * 4. Replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�)\n * in case multiple ICUs have the same placeholder name\n *\n * @param message Raw translation string for post processing\n * @param replacements Set of replacements that should be applied\n *\n * @returns Transformed string that can be consumed by i18nStart instruction\n *\n * @codeGenApi\n */\nfunction ɵɵi18nPostprocess(message, replacements = {}) {\n return i18nPostprocess(message, replacements);\n}\n\n/**\n * Contains a reference to a function that disables event replay feature\n * for server-side rendered applications. This function is overridden with\n * an actual implementation when the event replay feature is enabled via\n * `withEventReplay()` call.\n */\nlet stashEventListener = (el, eventName, listenerFn) => { };\nfunction setStashFn(fn) {\n stashEventListener = fn;\n}\n/**\n * Adds an event listener to the current node.\n *\n * If an output exists on one of the node's directives, it also subscribes to the output\n * and saves the subscription for later cleanup.\n *\n * @param eventName Name of the event\n * @param listenerFn The function to be called when event emits\n * @param useCapture Whether or not to use capture in event listener - this argument is a reminder\n * from the Renderer3 infrastructure and should be removed from the instruction arguments\n * @param eventTargetResolver Function that returns global target information in case this listener\n * should be attached to a global object like window, document or body\n *\n * @codeGenApi\n */\nfunction ɵɵlistener(eventName, listenerFn, useCapture, eventTargetResolver) {\n const lView = getLView();\n const tView = getTView();\n const tNode = getCurrentTNode();\n listenerInternal(tView, lView, lView[RENDERER], tNode, eventName, listenerFn, eventTargetResolver);\n return ɵɵlistener;\n}\n/**\n * Registers a synthetic host listener (e.g. `(@foo.start)`) on a component or directive.\n *\n * This instruction is for compatibility purposes and is designed to ensure that a\n * synthetic host listener (e.g. `@HostListener('@foo.start')`) properly gets rendered\n * in the component's renderer. Normally all host listeners are evaluated with the\n * parent component's renderer, but, in the case of animation @triggers, they need\n * to be evaluated with the sub component's renderer (because that's where the\n * animation triggers are defined).\n *\n * Do not use this instruction as a replacement for `listener`. This instruction\n * only exists to ensure compatibility with the ViewEngine's host binding behavior.\n *\n * @param eventName Name of the event\n * @param listenerFn The function to be called when event emits\n * @param useCapture Whether or not to use capture in event listener\n * @param eventTargetResolver Function that returns global target information in case this listener\n * should be attached to a global object like window, document or body\n *\n * @codeGenApi\n */\nfunction ɵɵsyntheticHostListener(eventName, listenerFn) {\n const tNode = getCurrentTNode();\n const lView = getLView();\n const tView = getTView();\n const currentDef = getCurrentDirectiveDef(tView.data);\n const renderer = loadComponentRenderer(currentDef, tNode, lView);\n listenerInternal(tView, lView, renderer, tNode, eventName, listenerFn);\n return ɵɵsyntheticHostListener;\n}\n/**\n * A utility function that checks if a given element has already an event handler registered for an\n * event with a specified name. The TView.cleanup data structure is used to find out which events\n * are registered for a given element.\n */\nfunction findExistingListener(tView, lView, eventName, tNodeIdx) {\n const tCleanup = tView.cleanup;\n if (tCleanup != null) {\n for (let i = 0; i < tCleanup.length - 1; i += 2) {\n const cleanupEventName = tCleanup[i];\n if (cleanupEventName === eventName && tCleanup[i + 1] === tNodeIdx) {\n // We have found a matching event name on the same node but it might not have been\n // registered yet, so we must explicitly verify entries in the LView cleanup data\n // structures.\n const lCleanup = lView[CLEANUP];\n const listenerIdxInLCleanup = tCleanup[i + 2];\n return lCleanup.length > listenerIdxInLCleanup ? lCleanup[listenerIdxInLCleanup] : null;\n }\n // TView.cleanup can have a mix of 4-elements entries (for event handler cleanups) or\n // 2-element entries (for directive and queries destroy hooks). As such we can encounter\n // blocks of 4 or 2 items in the tView.cleanup and this is why we iterate over 2 elements\n // first and jump another 2 elements if we detect listeners cleanup (4 elements). Also check\n // documentation of TView.cleanup for more details of this data structure layout.\n if (typeof cleanupEventName === 'string') {\n i += 2;\n }\n }\n }\n return null;\n}\nfunction listenerInternal(tView, lView, renderer, tNode, eventName, listenerFn, eventTargetResolver) {\n const isTNodeDirectiveHost = isDirectiveHost(tNode);\n const firstCreatePass = tView.firstCreatePass;\n const tCleanup = firstCreatePass && getOrCreateTViewCleanup(tView);\n const context = lView[CONTEXT];\n // When the ɵɵlistener instruction was generated and is executed we know that there is either a\n // native listener or a directive output on this element. As such we we know that we will have to\n // register a listener and store its cleanup function on LView.\n const lCleanup = getOrCreateLViewCleanup(lView);\n ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */);\n let processOutputs = true;\n // Adding a native event listener is applicable when:\n // - The corresponding TNode represents a DOM element.\n // - The event target has a resolver (usually resulting in a global object,\n // such as `window` or `document`).\n if (tNode.type & 3 /* TNodeType.AnyRNode */ || eventTargetResolver) {\n const native = getNativeByTNode(tNode, lView);\n const target = eventTargetResolver ? eventTargetResolver(native) : native;\n const lCleanupIndex = lCleanup.length;\n const idxOrTargetGetter = eventTargetResolver\n ? (_lView) => eventTargetResolver(unwrapRNode(_lView[tNode.index]))\n : tNode.index;\n // In order to match current behavior, native DOM event listeners must be added for all\n // events (including outputs).\n // There might be cases where multiple directives on the same element try to register an event\n // handler function for the same event. In this situation we want to avoid registration of\n // several native listeners as each registration would be intercepted by NgZone and\n // trigger change detection. This would mean that a single user action would result in several\n // change detections being invoked. To avoid this situation we want to have only one call to\n // native handler registration (for the same element and same type of event).\n //\n // In order to have just one native event handler in presence of multiple handler functions,\n // we just register a first handler function as a native event listener and then chain\n // (coalesce) other handler functions on top of the first native handler function.\n let existingListener = null;\n // Please note that the coalescing described here doesn't happen for events specifying an\n // alternative target (ex. (document:click)) - this is to keep backward compatibility with the\n // view engine.\n // Also, we don't have to search for existing listeners is there are no directives\n // matching on a given node as we can't register multiple event handlers for the same event in\n // a template (this would mean having duplicate attributes).\n if (!eventTargetResolver && isTNodeDirectiveHost) {\n existingListener = findExistingListener(tView, lView, eventName, tNode.index);\n }\n if (existingListener !== null) {\n // Attach a new listener to coalesced listeners list, maintaining the order in which\n // listeners are registered. For performance reasons, we keep a reference to the last\n // listener in that list (in `__ngLastListenerFn__` field), so we can avoid going through\n // the entire set each time we need to add a new listener.\n const lastListenerFn = existingListener.__ngLastListenerFn__ || existingListener;\n lastListenerFn.__ngNextListenerFn__ = listenerFn;\n existingListener.__ngLastListenerFn__ = listenerFn;\n processOutputs = false;\n }\n else {\n listenerFn = wrapListener(tNode, lView, context, listenerFn);\n stashEventListener(native, eventName, listenerFn);\n const cleanupFn = renderer.listen(target, eventName, listenerFn);\n ngDevMode && ngDevMode.rendererAddEventListener++;\n lCleanup.push(listenerFn, cleanupFn);\n tCleanup && tCleanup.push(eventName, idxOrTargetGetter, lCleanupIndex, lCleanupIndex + 1);\n }\n }\n else {\n // Even if there is no native listener to add, we still need to wrap the listener so that OnPush\n // ancestors are marked dirty when an event occurs.\n listenerFn = wrapListener(tNode, lView, context, listenerFn);\n }\n // subscribe to directive outputs\n const outputs = tNode.outputs;\n let props;\n if (processOutputs && outputs !== null && (props = outputs[eventName])) {\n const propsLength = props.length;\n if (propsLength) {\n for (let i = 0; i < propsLength; i += 2) {\n const index = props[i];\n ngDevMode && assertIndexInRange(lView, index);\n const minifiedName = props[i + 1];\n const directiveInstance = lView[index];\n const output = directiveInstance[minifiedName];\n if (ngDevMode && !isOutputSubscribable(output)) {\n throw new Error(`@Output ${minifiedName} not initialized in '${directiveInstance.constructor.name}'.`);\n }\n const subscription = output.subscribe(listenerFn);\n const idx = lCleanup.length;\n lCleanup.push(listenerFn, subscription);\n tCleanup && tCleanup.push(eventName, tNode.index, idx, -(idx + 1));\n }\n }\n }\n}\nfunction executeListenerWithErrorHandling(lView, context, listenerFn, e) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n profiler(6 /* ProfilerEvent.OutputStart */, context, listenerFn);\n // Only explicitly returning false from a listener should preventDefault\n return listenerFn(e) !== false;\n }\n catch (error) {\n handleError(lView, error);\n return false;\n }\n finally {\n profiler(7 /* ProfilerEvent.OutputEnd */, context, listenerFn);\n setActiveConsumer$1(prevConsumer);\n }\n}\n/**\n * Wraps an event listener with a function that marks ancestors dirty and prevents default behavior,\n * if applicable.\n *\n * @param tNode The TNode associated with this listener\n * @param lView The LView that contains this listener\n * @param listenerFn The listener function to call\n * @param wrapWithPreventDefault Whether or not to prevent default behavior\n * (the procedural renderer does this already, so in those cases, we should skip)\n */\nfunction wrapListener(tNode, lView, context, listenerFn) {\n // Note: we are performing most of the work in the listener function itself\n // to optimize listener registration.\n return function wrapListenerIn_markDirtyAndPreventDefault(e) {\n // Ivy uses `Function` as a special token that allows us to unwrap the function\n // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`.\n if (e === Function) {\n return listenerFn;\n }\n // In order to be backwards compatible with View Engine, events on component host nodes\n // must also mark the component view itself dirty (i.e. the view that it owns).\n const startView = isComponentHost(tNode) ? getComponentLViewByIndex(tNode.index, lView) : lView;\n markViewDirty(startView, 5 /* NotificationSource.Listener */);\n let result = executeListenerWithErrorHandling(lView, context, listenerFn, e);\n // A just-invoked listener function might have coalesced listeners so we need to check for\n // their presence and invoke as needed.\n let nextListenerFn = wrapListenerIn_markDirtyAndPreventDefault.__ngNextListenerFn__;\n while (nextListenerFn) {\n // We should prevent default if any of the listeners explicitly return false\n result = executeListenerWithErrorHandling(lView, context, nextListenerFn, e) && result;\n nextListenerFn = nextListenerFn.__ngNextListenerFn__;\n }\n return result;\n };\n}\n/**\n * Whether the given value represents a subscribable output.\n *\n * For example, an `EventEmitter, a `Subject`, an `Observable` or an\n * `OutputEmitter`.\n */\nfunction isOutputSubscribable(value) {\n return (value != null && typeof value.subscribe === 'function');\n}\n\n/**\n * Retrieves a context at the level specified and saves it as the global, contextViewData.\n * Will get the next level up if level is not specified.\n *\n * This is used to save contexts of parent views so they can be bound in embedded views, or\n * in conjunction with reference() to bind a ref from a parent view.\n *\n * @param level The relative level of the view from which to grab context compared to contextVewData\n * @returns context\n *\n * @codeGenApi\n */\nfunction ɵɵnextContext(level = 1) {\n return nextContextImpl(level);\n}\n\n/**\n * Checks a given node against matching projection slots and returns the\n * determined slot index. Returns \"null\" if no slot matched the given node.\n *\n * This function takes into account the parsed ngProjectAs selector from the\n * node's attributes. If present, it will check whether the ngProjectAs selector\n * matches any of the projection slot selectors.\n */\nfunction matchingProjectionSlotIndex(tNode, projectionSlots) {\n let wildcardNgContentIndex = null;\n const ngProjectAsAttrVal = getProjectAsAttrValue(tNode);\n for (let i = 0; i < projectionSlots.length; i++) {\n const slotValue = projectionSlots[i];\n // The last wildcard projection slot should match all nodes which aren't matching\n // any selector. This is necessary to be backwards compatible with view engine.\n if (slotValue === '*') {\n wildcardNgContentIndex = i;\n continue;\n }\n // If we ran into an `ngProjectAs` attribute, we should match its parsed selector\n // to the list of selectors, otherwise we fall back to matching against the node.\n if (ngProjectAsAttrVal === null\n ? isNodeMatchingSelectorList(tNode, slotValue, /* isProjectionMode */ true)\n : isSelectorInSelectorList(ngProjectAsAttrVal, slotValue)) {\n return i; // first matching selector \"captures\" a given node\n }\n }\n return wildcardNgContentIndex;\n}\n/**\n * Instruction to distribute projectable nodes among <ng-content> occurrences in a given template.\n * It takes all the selectors from the entire component's template and decides where\n * each projected node belongs (it re-distributes nodes among \"buckets\" where each \"bucket\" is\n * backed by a selector).\n *\n * This function requires CSS selectors to be provided in 2 forms: parsed (by a compiler) and text,\n * un-parsed form.\n *\n * The parsed form is needed for efficient matching of a node against a given CSS selector.\n * The un-parsed, textual form is needed for support of the ngProjectAs attribute.\n *\n * Having a CSS selector in 2 different formats is not ideal, but alternatives have even more\n * drawbacks:\n * - having only a textual form would require runtime parsing of CSS selectors;\n * - we can't have only a parsed as we can't re-construct textual form from it (as entered by a\n * template author).\n *\n * @param projectionSlots? A collection of projection slots. A projection slot can be based\n * on a parsed CSS selectors or set to the wildcard selector (\"*\") in order to match\n * all nodes which do not match any selector. If not specified, a single wildcard\n * selector projection slot will be defined.\n *\n * @codeGenApi\n */\nfunction ɵɵprojectionDef(projectionSlots) {\n const componentNode = getLView()[DECLARATION_COMPONENT_VIEW][T_HOST];\n if (!componentNode.projection) {\n // If no explicit projection slots are defined, fall back to a single\n // projection slot with the wildcard selector.\n const numProjectionSlots = projectionSlots ? projectionSlots.length : 1;\n const projectionHeads = (componentNode.projection = newArray(numProjectionSlots, null));\n const tails = projectionHeads.slice();\n let componentChild = componentNode.child;\n while (componentChild !== null) {\n // Do not project let declarations so they don't occupy a slot.\n if (componentChild.type !== 128 /* TNodeType.LetDeclaration */) {\n const slotIndex = projectionSlots\n ? matchingProjectionSlotIndex(componentChild, projectionSlots)\n : 0;\n if (slotIndex !== null) {\n if (tails[slotIndex]) {\n tails[slotIndex].projectionNext = componentChild;\n }\n else {\n projectionHeads[slotIndex] = componentChild;\n }\n tails[slotIndex] = componentChild;\n }\n }\n componentChild = componentChild.next;\n }\n }\n}\n/**\n * Inserts previously re-distributed projected nodes. This instruction must be preceded by a call\n * to the projectionDef instruction.\n *\n * @param nodeIndex Index of the projection node.\n * @param selectorIndex Index of the slot selector.\n * - 0 when the selector is `*` (or unspecified as this is the default value),\n * - 1 based index of the selector from the {@link projectionDef}\n * @param attrs Static attributes set on the `ng-content` node.\n * @param fallbackTemplateFn Template function with fallback content.\n * Will be rendered if the slot is empty at runtime.\n * @param fallbackDecls Number of declarations in the fallback template.\n * @param fallbackVars Number of variables in the fallback template.\n *\n * @codeGenApi\n */\nfunction ɵɵprojection(nodeIndex, selectorIndex = 0, attrs, fallbackTemplateFn, fallbackDecls, fallbackVars) {\n const lView = getLView();\n const tView = getTView();\n const fallbackIndex = fallbackTemplateFn ? nodeIndex + 1 : null;\n // Fallback content needs to be declared no matter whether the slot is empty since different\n // instances of the component may or may not insert it. Also it needs to be declare *before*\n // the projection node in order to work correctly with hydration.\n if (fallbackIndex !== null) {\n declareTemplate(lView, tView, fallbackIndex, fallbackTemplateFn, fallbackDecls, fallbackVars, null, attrs);\n }\n const tProjectionNode = getOrCreateTNode(tView, HEADER_OFFSET + nodeIndex, 16 /* TNodeType.Projection */, null, attrs || null);\n // We can't use viewData[HOST_NODE] because projection nodes can be nested in embedded views.\n if (tProjectionNode.projection === null) {\n tProjectionNode.projection = selectorIndex;\n }\n // `<ng-content>` has no content. Even if there's fallback\n // content, the fallback is shown next to it.\n setCurrentTNodeAsNotParent();\n const hydrationInfo = lView[HYDRATION];\n const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1();\n const componentHostNode = lView[DECLARATION_COMPONENT_VIEW][T_HOST];\n const isEmpty = componentHostNode.projection[tProjectionNode.projection] === null;\n if (isEmpty && fallbackIndex !== null) {\n insertFallbackContent(lView, tView, fallbackIndex);\n }\n else if (isNodeCreationMode && !isDetachedByI18n(tProjectionNode)) {\n // re-distribution of projectable nodes is stored on a component's view level\n applyProjection(tView, lView, tProjectionNode);\n }\n}\n/** Inserts the fallback content of a projection slot. Assumes there's no projected content. */\nfunction insertFallbackContent(lView, tView, fallbackIndex) {\n const adjustedIndex = HEADER_OFFSET + fallbackIndex;\n const fallbackTNode = tView.data[adjustedIndex];\n const fallbackLContainer = lView[adjustedIndex];\n ngDevMode && assertTNode(fallbackTNode);\n ngDevMode && assertLContainer(fallbackLContainer);\n const dehydratedView = findMatchingDehydratedView(fallbackLContainer, fallbackTNode.tView.ssrId);\n const fallbackLView = createAndRenderEmbeddedLView(lView, fallbackTNode, undefined, {\n dehydratedView,\n });\n addLViewToLContainer(fallbackLContainer, fallbackLView, 0, shouldAddViewToDom(fallbackTNode, dehydratedView));\n}\n\n/**\n *\n * Update an interpolated property on an element with a lone bound value\n *\n * Used when the value passed to a property has 1 interpolated value in it, an no additional text\n * surrounds that interpolated value:\n *\n * ```html\n * <div title=\"{{v0}}\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate('title', v0);\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate(propName, v0, sanitizer) {\n ɵɵpropertyInterpolate1(propName, '', v0, '', sanitizer);\n return ɵɵpropertyInterpolate;\n}\n/**\n *\n * Update an interpolated property on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate1('title', 'prefix', v0, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate1(propName, prefix, v0, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 1, prefix, suffix);\n }\n return ɵɵpropertyInterpolate1;\n}\n/**\n *\n * Update an interpolated property on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate2(propName, prefix, v0, i0, v1, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 2, prefix, i0, suffix);\n }\n return ɵɵpropertyInterpolate2;\n}\n/**\n *\n * Update an interpolated property on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate3(\n * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate3(propName, prefix, v0, i0, v1, i1, v2, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 3, prefix, i0, i1, suffix);\n }\n return ɵɵpropertyInterpolate3;\n}\n/**\n *\n * Update an interpolated property on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate4(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate4(propName, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 4, prefix, i0, i1, i2, suffix);\n }\n return ɵɵpropertyInterpolate4;\n}\n/**\n *\n * Update an interpolated property on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate5(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate5(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 5, prefix, i0, i1, i2, i3, suffix);\n }\n return ɵɵpropertyInterpolate5;\n}\n/**\n *\n * Update an interpolated property on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate6(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate6(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 6, prefix, i0, i1, i2, i3, i4, suffix);\n }\n return ɵɵpropertyInterpolate6;\n}\n/**\n *\n * Update an interpolated property on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate7(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate7(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 7, prefix, i0, i1, i2, i3, i4, i5, suffix);\n }\n return ɵɵpropertyInterpolate7;\n}\n/**\n *\n * Update an interpolated property on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate8(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate8(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 8, prefix, i0, i1, i2, i3, i4, i5, i6, suffix);\n }\n return ɵɵpropertyInterpolate8;\n}\n/**\n * Update an interpolated property on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolateV(\n * 'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update.\n * @param values The collection of values and the strings in between those values, beginning with a\n * string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolateV(propName, values, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolationV(lView, values);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n if (ngDevMode) {\n const interpolationInBetween = [values[0]]; // prefix\n for (let i = 2; i < values.length; i += 2) {\n interpolationInBetween.push(values[i]);\n }\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - interpolationInBetween.length + 1, ...interpolationInBetween);\n }\n }\n return ɵɵpropertyInterpolateV;\n}\n\n/**\n * Registers a QueryList, associated with a content query, for later refresh (part of a view\n * refresh).\n *\n * @param directiveIndex Current directive index\n * @param predicate The type for which the query will search\n * @param flags Flags associated with the query\n * @param read What to save in the query\n * @returns QueryList<T>\n *\n * @codeGenApi\n */\nfunction ɵɵcontentQuery(directiveIndex, predicate, flags, read) {\n createContentQuery(directiveIndex, predicate, flags, read);\n}\n/**\n * Creates a new view query by initializing internal data structures.\n *\n * @param predicate The type for which the query will search\n * @param flags Flags associated with the query\n * @param read What to save in the query\n *\n * @codeGenApi\n */\nfunction ɵɵviewQuery(predicate, flags, read) {\n createViewQuery(predicate, flags, read);\n}\n/**\n * Refreshes a query by combining matches from all active views and removing matches from deleted\n * views.\n *\n * @returns `true` if a query got dirty during change detection or if this is a static query\n * resolving in creation mode, `false` otherwise.\n *\n * @codeGenApi\n */\nfunction ɵɵqueryRefresh(queryList) {\n const lView = getLView();\n const tView = getTView();\n const queryIndex = getCurrentQueryIndex();\n setCurrentQueryIndex(queryIndex + 1);\n const tQuery = getTQuery(tView, queryIndex);\n if (queryList.dirty &&\n isCreationMode(lView) ===\n ((tQuery.metadata.flags & 2 /* QueryFlags.isStatic */) === 2 /* QueryFlags.isStatic */)) {\n if (tQuery.matches === null) {\n queryList.reset([]);\n }\n else {\n const result = getQueryResults(lView, queryIndex);\n queryList.reset(result, unwrapElementRef);\n queryList.notifyOnChanges();\n }\n return true;\n }\n return false;\n}\n/**\n * Loads a QueryList corresponding to the current view or content query.\n *\n * @codeGenApi\n */\nfunction ɵɵloadQuery() {\n return loadQueryInternal(getLView(), getCurrentQueryIndex());\n}\n\n/**\n * Creates a new content query and binds it to a signal created by an authoring function.\n *\n * @param directiveIndex Current directive index\n * @param target The target signal to which the query should be bound\n * @param predicate The type for which the query will search\n * @param flags Flags associated with the query\n * @param read What to save in the query\n *\n * @codeGenApi\n */\nfunction ɵɵcontentQuerySignal(directiveIndex, target, predicate, flags, read) {\n bindQueryToSignal(target, createContentQuery(directiveIndex, predicate, flags, read));\n}\n/**\n * Creates a new view query by initializing internal data structures and binding a new query to the\n * target signal.\n *\n * @param target The target signal to assign the query results to.\n * @param predicate The type or label that should match a given query\n * @param flags Flags associated with the query\n * @param read What to save in the query\n *\n * @codeGenApi\n */\nfunction ɵɵviewQuerySignal(target, predicate, flags, read) {\n bindQueryToSignal(target, createViewQuery(predicate, flags, read));\n}\n/**\n * Advances the current query index by a specified offset.\n *\n * Adjusting the current query index is necessary in cases where a given directive has a mix of\n * zone-based and signal-based queries. The signal-based queries don't require tracking of the\n * current index (those are refreshed on demand and not during change detection) so this instruction\n * is only necessary for backward-compatibility.\n *\n * @param index offset to apply to the current query index (defaults to 1)\n *\n * @codeGenApi\n */\nfunction ɵɵqueryAdvance(indexOffset = 1) {\n setCurrentQueryIndex(getCurrentQueryIndex() + indexOffset);\n}\n\n/** Store a value in the `data` at a given `index`. */\nfunction store(tView, lView, index, value) {\n // We don't store any static data for local variables, so the first time\n // we see the template, we should store as null to avoid a sparse array\n if (index >= tView.data.length) {\n tView.data[index] = null;\n tView.blueprint[index] = null;\n }\n lView[index] = value;\n}\n/**\n * Retrieves a local reference from the current contextViewData.\n *\n * If the reference to retrieve is in a parent view, this instruction is used in conjunction\n * with a nextContext() call, which walks up the tree and updates the contextViewData instance.\n *\n * @param index The index of the local ref in contextViewData.\n *\n * @codeGenApi\n */\nfunction ɵɵreference(index) {\n const contextLView = getContextLView();\n return load(contextLView, HEADER_OFFSET + index);\n}\n\n/**\n *\n * Update an interpolated style on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div style=\"key: {{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate1('key: ', v0, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate1(prefix, v0, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate2('key: ', v0, '; key1: ', v1, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate2(prefix, v0, i0, v1, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key2: {{v1}}; key2: {{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate3(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate4(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate5(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}};\n * key5: {{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate6(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n * 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};\n * key6: {{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate7(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n * '; key6: ', v6, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};\n * key6: {{v6}}; key7: {{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate8(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n * '; key6: ', v6, '; key7: ', v7, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n * Update an interpolated style on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * class=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};\n * key6: {{v6}}; key7: {{v7}}; key8: {{v8}}; key9: {{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolateV(\n * ['key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n * '; key6: ', v6, '; key7: ', v7, '; key8: ', v8, '; key9: ', v9, 'suffix']);\n * ```\n *.\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '; key2: ', value1, '; key2: ', value2, ..., value99, 'suffix']`)\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolateV(values) {\n const lView = getLView();\n const interpolatedValue = interpolationV(lView, values);\n ɵɵstyleMap(interpolatedValue);\n}\n\n/**\n *\n * Update an interpolated style property on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate1(0, 'prefix', v0, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate1(prop, prefix, v0, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate1;\n}\n/**\n *\n * Update an interpolated style property on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate2(0, 'prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate2(prop, prefix, v0, i0, v1, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate2;\n}\n/**\n *\n * Update an interpolated style property on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate3(0, 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate3(prop, prefix, v0, i0, v1, i1, v2, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate3;\n}\n/**\n *\n * Update an interpolated style property on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate4(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate4(prop, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate4;\n}\n/**\n *\n * Update an interpolated style property on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate5(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate5(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate5;\n}\n/**\n *\n * Update an interpolated style property on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate6(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate6(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate6;\n}\n/**\n *\n * Update an interpolated style property on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate7(\n * 0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate7(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate7;\n}\n/**\n *\n * Update an interpolated style property on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate8(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6,\n * '-', v7, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate8(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate8;\n}\n/**\n * Update an interpolated style property on an element with 9 or more bound values surrounded by\n * text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\">\n * </div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolateV(\n * 0, ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`..\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolateV(prop, values, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolationV(lView, values);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolateV;\n}\n\n/**\n * Create static text node\n *\n * @param index Index of the node in the data array\n * @param value Static string value to write.\n *\n * @codeGenApi\n */\nfunction ɵɵtext(index, value = '') {\n const lView = getLView();\n const tView = getTView();\n const adjustedIndex = index + HEADER_OFFSET;\n ngDevMode &&\n assertEqual(getBindingIndex(), tView.bindingStartIndex, 'text nodes should be created before any bindings');\n ngDevMode && assertIndexInRange(lView, adjustedIndex);\n const tNode = tView.firstCreatePass\n ? getOrCreateTNode(tView, adjustedIndex, 1 /* TNodeType.Text */, value, null)\n : tView.data[adjustedIndex];\n const textNative = _locateOrCreateTextNode(tView, lView, tNode, value, index);\n lView[adjustedIndex] = textNative;\n if (wasLastNodeCreated()) {\n appendChild(tView, lView, textNative, tNode);\n }\n // Text nodes are self closing.\n setCurrentTNode(tNode, false);\n}\nlet _locateOrCreateTextNode = (tView, lView, tNode, value, index) => {\n lastNodeWasCreated(true);\n return createTextNode(lView[RENDERER], value);\n};\n/**\n * Enables hydration code path (to lookup existing elements in DOM)\n * in addition to the regular creation mode of text nodes.\n */\nfunction locateOrCreateTextNodeImpl(tView, lView, tNode, value, index) {\n const hydrationInfo = lView[HYDRATION];\n const isNodeCreationMode = !hydrationInfo ||\n isInSkipHydrationBlock$1() ||\n isDetachedByI18n(tNode) ||\n isDisconnectedNode$1(hydrationInfo, index);\n lastNodeWasCreated(isNodeCreationMode);\n // Regular creation mode.\n if (isNodeCreationMode) {\n return createTextNode(lView[RENDERER], value);\n }\n // Hydration mode, looking up an existing element in DOM.\n const textNative = locateNextRNode(hydrationInfo, tView, lView, tNode);\n ngDevMode && validateMatchingNode(textNative, Node.TEXT_NODE, null, lView, tNode);\n ngDevMode && markRNodeAsClaimedByHydration(textNative);\n return textNative;\n}\nfunction enableLocateOrCreateTextNodeImpl() {\n _locateOrCreateTextNode = locateOrCreateTextNodeImpl;\n}\n\n/**\n *\n * Update text content with a lone bound value\n *\n * Used when a text node has 1 interpolated value in it, an no additional text\n * surrounds that interpolated value:\n *\n * ```html\n * <div>{{v0}}</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate(v0);\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate(v0) {\n ɵɵtextInterpolate1('', v0, '');\n return ɵɵtextInterpolate;\n}\n/**\n *\n * Update text content with single bound value surrounded by other text.\n *\n * Used when a text node has 1 interpolated value in it:\n *\n * ```html\n * <div>prefix{{v0}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate1('prefix', v0, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate1(prefix, v0, suffix) {\n const lView = getLView();\n const interpolated = interpolation1(lView, prefix, v0, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate1;\n}\n/**\n *\n * Update text content with 2 bound values surrounded by other text.\n *\n * Used when a text node has 2 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate2('prefix', v0, '-', v1, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate2(prefix, v0, i0, v1, suffix) {\n const lView = getLView();\n const interpolated = interpolation2(lView, prefix, v0, i0, v1, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate2;\n}\n/**\n *\n * Update text content with 3 bound values surrounded by other text.\n *\n * Used when a text node has 3 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate3(\n * 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {\n const lView = getLView();\n const interpolated = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate3;\n}\n/**\n *\n * Update text content with 4 bound values surrounded by other text.\n *\n * Used when a text node has 4 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate4(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see ɵɵtextInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n const lView = getLView();\n const interpolated = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate4;\n}\n/**\n *\n * Update text content with 5 bound values surrounded by other text.\n *\n * Used when a text node has 5 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate5(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n const lView = getLView();\n const interpolated = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate5;\n}\n/**\n *\n * Update text content with 6 bound values surrounded by other text.\n *\n * Used when a text node has 6 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate6(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change. @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n const lView = getLView();\n const interpolated = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate6;\n}\n/**\n *\n * Update text content with 7 bound values surrounded by other text.\n *\n * Used when a text node has 7 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate7(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n const lView = getLView();\n const interpolated = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate7;\n}\n/**\n *\n * Update text content with 8 bound values surrounded by other text.\n *\n * Used when a text node has 8 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate8(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n const lView = getLView();\n const interpolated = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate8;\n}\n/**\n * Update text content with 9 or more bound values other surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolateV(\n * ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *.\n * @param values The collection of values and the strings in between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n *\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵtextInterpolateV(values) {\n const lView = getLView();\n const interpolated = interpolationV(lView, values);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolateV;\n}\n/**\n * Updates a text binding at a given index in a given LView.\n */\nfunction textBindingInternal(lView, index, value) {\n ngDevMode && assertString(value, 'Value should be a string');\n ngDevMode && assertNotSame(value, NO_CHANGE, 'value should not be NO_CHANGE');\n ngDevMode && assertIndexInRange(lView, index);\n const element = getNativeByIndex(index, lView);\n ngDevMode && assertDefined(element, 'native element should exist');\n updateTextNode(lView[RENDERER], element, value);\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Update a two-way bound property on a selected element.\n *\n * Operates on the element selected by index via the {@link select} instruction.\n *\n * @param propName Name of property.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n * @returns This function returns itself so that it may be chained\n * (e.g. `twoWayProperty('name', ctx.name)('title', ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵtwoWayProperty(propName, value, sanitizer) {\n // TODO(crisbeto): perf impact of re-evaluating this on each change detection?\n if (isWritableSignal(value)) {\n value = value();\n }\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, value)) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, false);\n ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n }\n return ɵɵtwoWayProperty;\n}\n/**\n * Function used inside two-way listeners to conditionally set the value of the bound expression.\n *\n * @param target Field on which to set the value.\n * @param value Value to be set to the field.\n *\n * @codeGenApi\n */\nfunction ɵɵtwoWayBindingSet(target, value) {\n const canWrite = isWritableSignal(target);\n canWrite && target.set(value);\n return canWrite;\n}\n/**\n * Adds an event listener that updates a two-way binding to the current node.\n *\n * @param eventName Name of the event.\n * @param listenerFn The function to be called when event emits.\n *\n * @codeGenApi\n */\nfunction ɵɵtwoWayListener(eventName, listenerFn) {\n const lView = getLView();\n const tView = getTView();\n const tNode = getCurrentTNode();\n listenerInternal(tView, lView, lView[RENDERER], tNode, eventName, listenerFn);\n return ɵɵtwoWayListener;\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/** Object that indicates the value of a `@let` declaration that hasn't been initialized yet. */\nconst UNINITIALIZED_LET = {};\n/**\n * Declares an `@let` at a specific data slot. Returns itself to allow chaining.\n *\n * @param index Index at which to declare the `@let`.\n *\n * @codeGenApi\n */\nfunction ɵɵdeclareLet(index) {\n const tView = getTView();\n const lView = getLView();\n const adjustedIndex = index + HEADER_OFFSET;\n const tNode = getOrCreateTNode(tView, adjustedIndex, 128 /* TNodeType.LetDeclaration */, null, null);\n setCurrentTNode(tNode, false);\n store(tView, lView, adjustedIndex, UNINITIALIZED_LET);\n return ɵɵdeclareLet;\n}\n/**\n * Instruction that stores the value of a `@let` declaration on the current view.\n * Returns the value to allow usage inside variable initializers.\n *\n * @codeGenApi\n */\nfunction ɵɵstoreLet(value) {\n performanceMarkFeature('NgLet');\n const tView = getTView();\n const lView = getLView();\n const index = getSelectedIndex();\n store(tView, lView, index, value);\n return value;\n}\n/**\n * Retrieves the value of a `@let` declaration defined in a parent view.\n *\n * @param index Index of the declaration within the view.\n *\n * @codeGenApi\n */\nfunction ɵɵreadContextLet(index) {\n const contextLView = getContextLView();\n const value = load(contextLView, HEADER_OFFSET + index);\n if (value === UNINITIALIZED_LET) {\n throw new RuntimeError(314 /* RuntimeErrorCode.UNINITIALIZED_LET_ACCESS */, ngDevMode && 'Attempting to access a @let declaration whose value is not available yet');\n }\n return value;\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Sets the location within the source template at which\n * each element in the current view was defined.\n *\n * @param index Index at which the DOM node was created.\n * @param templatePath Path to the template at which the node was defined.\n * @param locations Element locations to which to attach the source location.\n *\n * @codeGenApi\n */\nfunction ɵɵattachSourceLocations(templatePath, locations) {\n const tView = getTView();\n const lView = getLView();\n const renderer = lView[RENDERER];\n const attributeName = 'data-ng-source-location';\n for (const [index, offset, line, column] of locations) {\n const tNode = getTNode(tView, index + HEADER_OFFSET);\n // The compiler shouldn't generate the instruction for non-element nodes, but assert just in case.\n ngDevMode && assertTNodeType(tNode, 2 /* TNodeType.Element */);\n const node = getNativeByIndex(index + HEADER_OFFSET, lView);\n // Set the attribute directly in the DOM so it doesn't participate in directive matching.\n if (!node.hasAttribute(attributeName)) {\n const attributeValue = `${templatePath}@o:${offset},l:${line},c:${column}`;\n renderer.setAttribute(node, attributeName, attributeValue);\n }\n }\n}\n\n/*\n * This file re-exports all symbols contained in this directory.\n *\n * Why is this file not `index.ts`?\n *\n * There seems to be an inconsistent path resolution of an `index.ts` file\n * when only the parent directory is referenced. This could be due to the\n * node module resolution configuration differing from rollup and/or typescript.\n *\n * With commit\n * https://github.com/angular/angular/commit/d5e3f2c64bd13ce83e7c70788b7fc514ca4a9918\n * the `instructions.ts` file was moved to `instructions/instructions.ts` and an\n * `index.ts` file was used to re-export everything. Having had file names that were\n * importing from `instructions' directly (not the from the sub file or the `index.ts`\n * file) caused strange CI issues. `index.ts` had to be renamed to `all.ts` for this\n * to work.\n *\n * Jira Issue = FW-1184\n */\n\n/**\n * Resolves the providers which are defined in the DirectiveDef.\n *\n * When inserting the tokens and the factories in their respective arrays, we can assume that\n * this method is called first for the component (if any), and then for other directives on the same\n * node.\n * As a consequence,the providers are always processed in that order:\n * 1) The view providers of the component\n * 2) The providers of the component\n * 3) The providers of the other directives\n * This matches the structure of the injectables arrays of a view (for each node).\n * So the tokens and the factories can be pushed at the end of the arrays, except\n * in one case for multi providers.\n *\n * @param def the directive definition\n * @param providers: Array of `providers`.\n * @param viewProviders: Array of `viewProviders`.\n */\nfunction providersResolver(def, providers, viewProviders) {\n const tView = getTView();\n if (tView.firstCreatePass) {\n const isComponent = isComponentDef(def);\n // The list of view providers is processed first, and the flags are updated\n resolveProvider(viewProviders, tView.data, tView.blueprint, isComponent, true);\n // Then, the list of providers is processed, and the flags are updated\n resolveProvider(providers, tView.data, tView.blueprint, isComponent, false);\n }\n}\n/**\n * Resolves a provider and publishes it to the DI system.\n */\nfunction resolveProvider(provider, tInjectables, lInjectablesBlueprint, isComponent, isViewProvider) {\n provider = resolveForwardRef(provider);\n if (Array.isArray(provider)) {\n // Recursively call `resolveProvider`\n // Recursion is OK in this case because this code will not be in hot-path once we implement\n // cloning of the initial state.\n for (let i = 0; i < provider.length; i++) {\n resolveProvider(provider[i], tInjectables, lInjectablesBlueprint, isComponent, isViewProvider);\n }\n }\n else {\n const tView = getTView();\n const lView = getLView();\n const tNode = getCurrentTNode();\n let token = isTypeProvider(provider) ? provider : resolveForwardRef(provider.provide);\n const providerFactory = providerToFactory(provider);\n if (ngDevMode) {\n const injector = new NodeInjector(tNode, lView);\n runInInjectorProfilerContext(injector, token, () => {\n emitProviderConfiguredEvent(provider, isViewProvider);\n });\n }\n const beginIndex = tNode.providerIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;\n const endIndex = tNode.directiveStart;\n const cptViewProvidersCount = tNode.providerIndexes >> 20 /* TNodeProviderIndexes.CptViewProvidersCountShift */;\n if (isTypeProvider(provider) || !provider.multi) {\n // Single provider case: the factory is created and pushed immediately\n const factory = new NodeInjectorFactory(providerFactory, isViewProvider, ɵɵdirectiveInject);\n const existingFactoryIndex = indexOf(token, tInjectables, isViewProvider ? beginIndex : beginIndex + cptViewProvidersCount, endIndex);\n if (existingFactoryIndex === -1) {\n diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, token);\n registerDestroyHooksIfSupported(tView, provider, tInjectables.length);\n tInjectables.push(token);\n tNode.directiveStart++;\n tNode.directiveEnd++;\n if (isViewProvider) {\n tNode.providerIndexes += 1048576 /* TNodeProviderIndexes.CptViewProvidersCountShifter */;\n }\n lInjectablesBlueprint.push(factory);\n lView.push(factory);\n }\n else {\n lInjectablesBlueprint[existingFactoryIndex] = factory;\n lView[existingFactoryIndex] = factory;\n }\n }\n else {\n // Multi provider case:\n // We create a multi factory which is going to aggregate all the values.\n // Since the output of such a factory depends on content or view injection,\n // we create two of them, which are linked together.\n //\n // The first one (for view providers) is always in the first block of the injectables array,\n // and the second one (for providers) is always in the second block.\n // This is important because view providers have higher priority. When a multi token\n // is being looked up, the view providers should be found first.\n // Note that it is not possible to have a multi factory in the third block (directive block).\n //\n // The algorithm to process multi providers is as follows:\n // 1) If the multi provider comes from the `viewProviders` of the component:\n // a) If the special view providers factory doesn't exist, it is created and pushed.\n // b) Else, the multi provider is added to the existing multi factory.\n // 2) If the multi provider comes from the `providers` of the component or of another\n // directive:\n // a) If the multi factory doesn't exist, it is created and provider pushed into it.\n // It is also linked to the multi factory for view providers, if it exists.\n // b) Else, the multi provider is added to the existing multi factory.\n const existingProvidersFactoryIndex = indexOf(token, tInjectables, beginIndex + cptViewProvidersCount, endIndex);\n const existingViewProvidersFactoryIndex = indexOf(token, tInjectables, beginIndex, beginIndex + cptViewProvidersCount);\n const doesProvidersFactoryExist = existingProvidersFactoryIndex >= 0 && lInjectablesBlueprint[existingProvidersFactoryIndex];\n const doesViewProvidersFactoryExist = existingViewProvidersFactoryIndex >= 0 &&\n lInjectablesBlueprint[existingViewProvidersFactoryIndex];\n if ((isViewProvider && !doesViewProvidersFactoryExist) ||\n (!isViewProvider && !doesProvidersFactoryExist)) {\n // Cases 1.a and 2.a\n diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, token);\n const factory = multiFactory(isViewProvider ? multiViewProvidersFactoryResolver : multiProvidersFactoryResolver, lInjectablesBlueprint.length, isViewProvider, isComponent, providerFactory);\n if (!isViewProvider && doesViewProvidersFactoryExist) {\n lInjectablesBlueprint[existingViewProvidersFactoryIndex].providerFactory = factory;\n }\n registerDestroyHooksIfSupported(tView, provider, tInjectables.length, 0);\n tInjectables.push(token);\n tNode.directiveStart++;\n tNode.directiveEnd++;\n if (isViewProvider) {\n tNode.providerIndexes += 1048576 /* TNodeProviderIndexes.CptViewProvidersCountShifter */;\n }\n lInjectablesBlueprint.push(factory);\n lView.push(factory);\n }\n else {\n // Cases 1.b and 2.b\n const indexInFactory = multiFactoryAdd(lInjectablesBlueprint[isViewProvider ? existingViewProvidersFactoryIndex : existingProvidersFactoryIndex], providerFactory, !isViewProvider && isComponent);\n registerDestroyHooksIfSupported(tView, provider, existingProvidersFactoryIndex > -1\n ? existingProvidersFactoryIndex\n : existingViewProvidersFactoryIndex, indexInFactory);\n }\n if (!isViewProvider && isComponent && doesViewProvidersFactoryExist) {\n lInjectablesBlueprint[existingViewProvidersFactoryIndex].componentProviders++;\n }\n }\n }\n}\n/**\n * Registers the `ngOnDestroy` hook of a provider, if the provider supports destroy hooks.\n * @param tView `TView` in which to register the hook.\n * @param provider Provider whose hook should be registered.\n * @param contextIndex Index under which to find the context for the hook when it's being invoked.\n * @param indexInFactory Only required for `multi` providers. Index of the provider in the multi\n * provider factory.\n */\nfunction registerDestroyHooksIfSupported(tView, provider, contextIndex, indexInFactory) {\n const providerIsTypeProvider = isTypeProvider(provider);\n const providerIsClassProvider = isClassProvider(provider);\n if (providerIsTypeProvider || providerIsClassProvider) {\n // Resolve forward references as `useClass` can hold a forward reference.\n const classToken = providerIsClassProvider ? resolveForwardRef(provider.useClass) : provider;\n const prototype = classToken.prototype;\n const ngOnDestroy = prototype.ngOnDestroy;\n if (ngOnDestroy) {\n const hooks = tView.destroyHooks || (tView.destroyHooks = []);\n if (!providerIsTypeProvider && provider.multi) {\n ngDevMode &&\n assertDefined(indexInFactory, 'indexInFactory when registering multi factory destroy hook');\n const existingCallbacksIndex = hooks.indexOf(contextIndex);\n if (existingCallbacksIndex === -1) {\n hooks.push(contextIndex, [indexInFactory, ngOnDestroy]);\n }\n else {\n hooks[existingCallbacksIndex + 1].push(indexInFactory, ngOnDestroy);\n }\n }\n else {\n hooks.push(contextIndex, ngOnDestroy);\n }\n }\n }\n}\n/**\n * Add a factory in a multi factory.\n * @returns Index at which the factory was inserted.\n */\nfunction multiFactoryAdd(multiFactory, factory, isComponentProvider) {\n if (isComponentProvider) {\n multiFactory.componentProviders++;\n }\n return multiFactory.multi.push(factory) - 1;\n}\n/**\n * Returns the index of item in the array, but only in the begin to end range.\n */\nfunction indexOf(item, arr, begin, end) {\n for (let i = begin; i < end; i++) {\n if (arr[i] === item)\n return i;\n }\n return -1;\n}\n/**\n * Use this with `multi` `providers`.\n */\nfunction multiProvidersFactoryResolver(_, tData, lData, tNode) {\n return multiResolve(this.multi, []);\n}\n/**\n * Use this with `multi` `viewProviders`.\n *\n * This factory knows how to concatenate itself with the existing `multi` `providers`.\n */\nfunction multiViewProvidersFactoryResolver(_, tData, lView, tNode) {\n const factories = this.multi;\n let result;\n if (this.providerFactory) {\n const componentCount = this.providerFactory.componentProviders;\n const multiProviders = getNodeInjectable(lView, lView[TVIEW], this.providerFactory.index, tNode);\n // Copy the section of the array which contains `multi` `providers` from the component\n result = multiProviders.slice(0, componentCount);\n // Insert the `viewProvider` instances.\n multiResolve(factories, result);\n // Copy the section of the array which contains `multi` `providers` from other directives\n for (let i = componentCount; i < multiProviders.length; i++) {\n result.push(multiProviders[i]);\n }\n }\n else {\n result = [];\n // Insert the `viewProvider` instances.\n multiResolve(factories, result);\n }\n return result;\n}\n/**\n * Maps an array of factories into an array of values.\n */\nfunction multiResolve(factories, result) {\n for (let i = 0; i < factories.length; i++) {\n const factory = factories[i];\n result.push(factory());\n }\n return result;\n}\n/**\n * Creates a multi factory.\n */\nfunction multiFactory(factoryFn, index, isViewProvider, isComponent, f) {\n const factory = new NodeInjectorFactory(factoryFn, isViewProvider, ɵɵdirectiveInject);\n factory.multi = [];\n factory.index = index;\n factory.componentProviders = 0;\n multiFactoryAdd(factory, f, isComponent && !isViewProvider);\n return factory;\n}\n\n/**\n * This feature resolves the providers of a directive (or component),\n * and publish them into the DI system, making it visible to others for injection.\n *\n * For example:\n * ```ts\n * class ComponentWithProviders {\n * constructor(private greeter: GreeterDE) {}\n *\n * static ɵcmp = defineComponent({\n * type: ComponentWithProviders,\n * selectors: [['component-with-providers']],\n * factory: () => new ComponentWithProviders(directiveInject(GreeterDE as any)),\n * decls: 1,\n * vars: 1,\n * template: function(fs: RenderFlags, ctx: ComponentWithProviders) {\n * if (fs & RenderFlags.Create) {\n * ɵɵtext(0);\n * }\n * if (fs & RenderFlags.Update) {\n * ɵɵtextInterpolate(ctx.greeter.greet());\n * }\n * },\n * features: [ɵɵProvidersFeature([GreeterDE])]\n * });\n * }\n * ```\n *\n * @param definition\n *\n * @codeGenApi\n */\nfunction ɵɵProvidersFeature(providers, viewProviders = []) {\n return (definition) => {\n definition.providersResolver = (def, processProvidersFn) => {\n return providersResolver(def, //\n processProvidersFn ? processProvidersFn(providers) : providers, //\n viewProviders);\n };\n };\n}\n\n/**\n * A feature that adds support for external runtime styles for a component.\n * An external runtime style is a URL to a CSS stylesheet that contains the styles\n * for a given component. For browsers, this URL will be used in an appended `link` element\n * when the component is rendered. This feature is typically used for Hot Module Replacement\n * (HMR) of component stylesheets by leveraging preexisting global stylesheet HMR available\n * in most development servers.\n *\n * @codeGenApi\n */\nfunction ɵɵExternalStylesFeature(styleUrls) {\n return (definition) => {\n if (styleUrls.length < 1) {\n return;\n }\n definition.getExternalStyles = (encapsulationId) => {\n // Add encapsulation ID search parameter `ngcomp` to support external style encapsulation as well as the encapsulation mode\n // for usage tracking.\n const urls = styleUrls.map((value) => value +\n '?ngcomp' +\n (encapsulationId ? '=' + encodeURIComponent(encapsulationId) : '') +\n '&e=' +\n definition.encapsulation);\n return urls;\n };\n };\n}\n\n/**\n * Generated next to NgModules to monkey-patch directive and pipe references onto a component's\n * definition, when generating a direct reference in the component file would otherwise create an\n * import cycle.\n *\n * See [this explanation](https://hackmd.io/Odw80D0pR6yfsOjg_7XCJg?view) for more details.\n *\n * @codeGenApi\n */\nfunction ɵɵsetComponentScope(type, directives, pipes) {\n const def = type.ɵcmp;\n def.directiveDefs = extractDefListOrFactory(directives, /* pipeDef */ false);\n def.pipeDefs = extractDefListOrFactory(pipes, /* pipeDef */ true);\n}\n/**\n * Adds the module metadata that is necessary to compute the module's transitive scope to an\n * existing module definition.\n *\n * Scope metadata of modules is not used in production builds, so calls to this function can be\n * marked pure to tree-shake it from the bundle, allowing for all referenced declarations\n * to become eligible for tree-shaking as well.\n *\n * @codeGenApi\n */\nfunction ɵɵsetNgModuleScope(type, scope) {\n return noSideEffects(() => {\n const ngModuleDef = getNgModuleDef(type, true);\n ngModuleDef.declarations = convertToTypeArray(scope.declarations || EMPTY_ARRAY);\n ngModuleDef.imports = convertToTypeArray(scope.imports || EMPTY_ARRAY);\n ngModuleDef.exports = convertToTypeArray(scope.exports || EMPTY_ARRAY);\n if (scope.bootstrap) {\n // This only happens in local compilation mode.\n ngModuleDef.bootstrap = convertToTypeArray(scope.bootstrap);\n }\n depsTracker.registerNgModule(type, scope);\n });\n}\nfunction convertToTypeArray(values) {\n if (typeof values === 'function') {\n return values;\n }\n const flattenValues = flatten(values);\n if (flattenValues.some(isForwardRef)) {\n return () => flattenValues.map(resolveForwardRef).map(maybeUnwrapModuleWithProviders);\n }\n else {\n return flattenValues.map(maybeUnwrapModuleWithProviders);\n }\n}\nfunction maybeUnwrapModuleWithProviders(value) {\n return isModuleWithProviders(value) ? value.ngModule : value;\n}\n\n/**\n * Bindings for pure functions are stored after regular bindings.\n *\n * |-------decls------|---------vars---------| |----- hostVars (dir1) ------|\n * ------------------------------------------------------------------------------------------\n * | nodes/refs/pipes | bindings | fn slots | injector | dir1 | host bindings | host slots |\n * ------------------------------------------------------------------------------------------\n * ^ ^\n * TView.bindingStartIndex TView.expandoStartIndex\n *\n * Pure function instructions are given an offset from the binding root. Adding the offset to the\n * binding root gives the first index where the bindings are stored. In component views, the binding\n * root is the bindingStartIndex. In host bindings, the binding root is the expandoStartIndex +\n * any directive instances + any hostVars in directives evaluated before it.\n *\n * See VIEW_DATA.md for more information about host binding resolution.\n */\n/**\n * If the value hasn't been saved, calls the pure function to store and return the\n * value. If it has been saved, returns the saved value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn Function that returns a value\n * @param thisArg Optional calling context of pureFn\n * @returns value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction0(slotOffset, pureFn, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n return lView[bindingIndex] === NO_CHANGE\n ? updateBinding(lView, bindingIndex, thisArg ? pureFn.call(thisArg) : pureFn())\n : getBinding(lView, bindingIndex);\n}\n/**\n * If the value of the provided exp has changed, calls the pure function to return\n * an updated value. Or if the value has not changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn Function that returns an updated value\n * @param exp Updated expression value\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction1(slotOffset, pureFn, exp, thisArg) {\n return pureFunction1Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction2(slotOffset, pureFn, exp1, exp2, thisArg) {\n return pureFunction2Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction3(slotOffset, pureFn, exp1, exp2, exp3, thisArg) {\n return pureFunction3Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, exp3, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction4(slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg) {\n return pureFunction4Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction5(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n return bindingUpdated(lView, bindingIndex + 4, exp5) || different\n ? updateBinding(lView, bindingIndex + 5, thisArg\n ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5)\n : pureFn(exp1, exp2, exp3, exp4, exp5))\n : getBinding(lView, bindingIndex + 5);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param exp6\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction6(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n return bindingUpdated2(lView, bindingIndex + 4, exp5, exp6) || different\n ? updateBinding(lView, bindingIndex + 6, thisArg\n ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6)\n : pureFn(exp1, exp2, exp3, exp4, exp5, exp6))\n : getBinding(lView, bindingIndex + 6);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param exp6\n * @param exp7\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction7(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, exp7, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n let different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n return bindingUpdated3(lView, bindingIndex + 4, exp5, exp6, exp7) || different\n ? updateBinding(lView, bindingIndex + 7, thisArg\n ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6, exp7)\n : pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7))\n : getBinding(lView, bindingIndex + 7);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param exp6\n * @param exp7\n * @param exp8\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction8(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n return bindingUpdated4(lView, bindingIndex + 4, exp5, exp6, exp7, exp8) || different\n ? updateBinding(lView, bindingIndex + 8, thisArg\n ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8)\n : pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8))\n : getBinding(lView, bindingIndex + 8);\n}\n/**\n * pureFunction instruction that can support any number of bindings.\n *\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn A pure function that takes binding values and builds an object or array\n * containing those values.\n * @param exps An array of binding values\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunctionV(slotOffset, pureFn, exps, thisArg) {\n return pureFunctionVInternal(getLView(), getBindingRoot(), slotOffset, pureFn, exps, thisArg);\n}\n/**\n * Results of a pure function invocation are stored in LView in a dedicated slot that is initialized\n * to NO_CHANGE. In rare situations a pure pipe might throw an exception on the very first\n * invocation and not produce any valid results. In this case LView would keep holding the NO_CHANGE\n * value. The NO_CHANGE is not something that we can use in expressions / bindings thus we convert\n * it to `undefined`.\n */\nfunction getPureFunctionReturnValue(lView, returnValueIndex) {\n ngDevMode && assertIndexInRange(lView, returnValueIndex);\n const lastReturnValue = lView[returnValueIndex];\n return lastReturnValue === NO_CHANGE ? undefined : lastReturnValue;\n}\n/**\n * If the value of the provided exp has changed, calls the pure function to return\n * an updated value. Or if the value has not changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn Function that returns an updated value\n * @param exp Updated expression value\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunction1Internal(lView, bindingRoot, slotOffset, pureFn, exp, thisArg) {\n const bindingIndex = bindingRoot + slotOffset;\n return bindingUpdated(lView, bindingIndex, exp)\n ? updateBinding(lView, bindingIndex + 1, thisArg ? pureFn.call(thisArg, exp) : pureFn(exp))\n : getPureFunctionReturnValue(lView, bindingIndex + 1);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunction2Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, thisArg) {\n const bindingIndex = bindingRoot + slotOffset;\n return bindingUpdated2(lView, bindingIndex, exp1, exp2)\n ? updateBinding(lView, bindingIndex + 2, thisArg ? pureFn.call(thisArg, exp1, exp2) : pureFn(exp1, exp2))\n : getPureFunctionReturnValue(lView, bindingIndex + 2);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunction3Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, exp3, thisArg) {\n const bindingIndex = bindingRoot + slotOffset;\n return bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3)\n ? updateBinding(lView, bindingIndex + 3, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3) : pureFn(exp1, exp2, exp3))\n : getPureFunctionReturnValue(lView, bindingIndex + 3);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n */\nfunction pureFunction4Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg) {\n const bindingIndex = bindingRoot + slotOffset;\n return bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4)\n ? updateBinding(lView, bindingIndex + 4, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4) : pureFn(exp1, exp2, exp3, exp4))\n : getPureFunctionReturnValue(lView, bindingIndex + 4);\n}\n/**\n * pureFunction instruction that can support any number of bindings.\n *\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn A pure function that takes binding values and builds an object or array\n * containing those values.\n * @param exps An array of binding values\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunctionVInternal(lView, bindingRoot, slotOffset, pureFn, exps, thisArg) {\n let bindingIndex = bindingRoot + slotOffset;\n let different = false;\n for (let i = 0; i < exps.length; i++) {\n bindingUpdated(lView, bindingIndex++, exps[i]) && (different = true);\n }\n return different\n ? updateBinding(lView, bindingIndex, pureFn.apply(thisArg, exps))\n : getPureFunctionReturnValue(lView, bindingIndex);\n}\n\n/**\n * Create a pipe.\n *\n * @param index Pipe index where the pipe will be stored.\n * @param pipeName The name of the pipe\n * @returns T the instance of the pipe.\n *\n * @codeGenApi\n */\nfunction ɵɵpipe(index, pipeName) {\n const tView = getTView();\n let pipeDef;\n const adjustedIndex = index + HEADER_OFFSET;\n if (tView.firstCreatePass) {\n // The `getPipeDef` throws if a pipe with a given name is not found\n // (so we use non-null assertion below).\n pipeDef = getPipeDef(pipeName, tView.pipeRegistry);\n tView.data[adjustedIndex] = pipeDef;\n if (pipeDef.onDestroy) {\n (tView.destroyHooks ??= []).push(adjustedIndex, pipeDef.onDestroy);\n }\n }\n else {\n pipeDef = tView.data[adjustedIndex];\n }\n const pipeFactory = pipeDef.factory || (pipeDef.factory = getFactoryDef(pipeDef.type, true));\n let previousInjectorProfilerContext;\n if (ngDevMode) {\n previousInjectorProfilerContext = setInjectorProfilerContext({\n injector: new NodeInjector(getCurrentTNode(), getLView()),\n token: pipeDef.type,\n });\n }\n const previousInjectImplementation = setInjectImplementation(ɵɵdirectiveInject);\n try {\n // DI for pipes is supposed to behave like directives when placed on a component\n // host node, which means that we have to disable access to `viewProviders`.\n const previousIncludeViewProviders = setIncludeViewProviders(false);\n const pipeInstance = pipeFactory();\n setIncludeViewProviders(previousIncludeViewProviders);\n store(tView, getLView(), adjustedIndex, pipeInstance);\n return pipeInstance;\n }\n finally {\n // we have to restore the injector implementation in finally, just in case the creation of the\n // pipe throws an error.\n setInjectImplementation(previousInjectImplementation);\n ngDevMode && setInjectorProfilerContext(previousInjectorProfilerContext);\n }\n}\n/**\n * Searches the pipe registry for a pipe with the given name. If one is found,\n * returns the pipe. Otherwise, an error is thrown because the pipe cannot be resolved.\n *\n * @param name Name of pipe to resolve\n * @param registry Full list of available pipes\n * @returns Matching PipeDef\n */\nfunction getPipeDef(name, registry) {\n if (registry) {\n if (ngDevMode) {\n const pipes = registry.filter((pipe) => pipe.name === name);\n // TODO: Throw an error in the next major\n if (pipes.length > 1) {\n console.warn(formatRuntimeError(313 /* RuntimeErrorCode.MULTIPLE_MATCHING_PIPES */, getMultipleMatchingPipesMessage(name)));\n }\n }\n for (let i = registry.length - 1; i >= 0; i--) {\n const pipeDef = registry[i];\n if (name === pipeDef.name) {\n return pipeDef;\n }\n }\n }\n if (ngDevMode) {\n throw new RuntimeError(-302 /* RuntimeErrorCode.PIPE_NOT_FOUND */, getPipeNotFoundErrorMessage(name));\n }\n return;\n}\n/**\n * Generates a helpful error message for the user when multiple pipes match the name.\n *\n * @param name Name of the pipe\n * @returns The error message\n */\nfunction getMultipleMatchingPipesMessage(name) {\n const lView = getLView();\n const declarationLView = lView[DECLARATION_COMPONENT_VIEW];\n const context = declarationLView[CONTEXT];\n const hostIsStandalone = isHostComponentStandalone(lView);\n const componentInfoMessage = context ? ` in the '${context.constructor.name}' component` : '';\n const verifyMessage = `check ${hostIsStandalone ? \"'@Component.imports' of this component\" : 'the imports of this module'}`;\n const errorMessage = `Multiple pipes match the name \\`${name}\\`${componentInfoMessage}. ${verifyMessage}`;\n return errorMessage;\n}\n/**\n * Generates a helpful error message for the user when a pipe is not found.\n *\n * @param name Name of the missing pipe\n * @returns The error message\n */\nfunction getPipeNotFoundErrorMessage(name) {\n const lView = getLView();\n const declarationLView = lView[DECLARATION_COMPONENT_VIEW];\n const context = declarationLView[CONTEXT];\n const hostIsStandalone = isHostComponentStandalone(lView);\n const componentInfoMessage = context ? ` in the '${context.constructor.name}' component` : '';\n const verifyMessage = `Verify that it is ${hostIsStandalone\n ? \"included in the '@Component.imports' of this component\"\n : 'declared or imported in this module'}`;\n const errorMessage = `The pipe '${name}' could not be found${componentInfoMessage}. ${verifyMessage}`;\n return errorMessage;\n}\n/**\n * Invokes a pipe with 1 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param offset the binding offset\n * @param v1 1st argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind1(index, offset, v1) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex)\n ? pureFunction1Internal(lView, getBindingRoot(), offset, pipeInstance.transform, v1, pipeInstance)\n : pipeInstance.transform(v1);\n}\n/**\n * Invokes a pipe with 2 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param v1 1st argument to {@link PipeTransform#transform}.\n * @param v2 2nd argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind2(index, slotOffset, v1, v2) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex)\n ? pureFunction2Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, pipeInstance)\n : pipeInstance.transform(v1, v2);\n}\n/**\n * Invokes a pipe with 3 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param v1 1st argument to {@link PipeTransform#transform}.\n * @param v2 2nd argument to {@link PipeTransform#transform}.\n * @param v3 4rd argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind3(index, slotOffset, v1, v2, v3) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex)\n ? pureFunction3Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, v3, pipeInstance)\n : pipeInstance.transform(v1, v2, v3);\n}\n/**\n * Invokes a pipe with 4 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param v1 1st argument to {@link PipeTransform#transform}.\n * @param v2 2nd argument to {@link PipeTransform#transform}.\n * @param v3 3rd argument to {@link PipeTransform#transform}.\n * @param v4 4th argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind4(index, slotOffset, v1, v2, v3, v4) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex)\n ? pureFunction4Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, v3, v4, pipeInstance)\n : pipeInstance.transform(v1, v2, v3, v4);\n}\n/**\n * Invokes a pipe with variable number of arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param values Array of arguments to pass to {@link PipeTransform#transform} method.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBindV(index, slotOffset, values) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex)\n ? pureFunctionVInternal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, values, pipeInstance)\n : pipeInstance.transform.apply(pipeInstance, values);\n}\nfunction isPure(lView, index) {\n return lView[TVIEW].data[index].pure;\n}\n\n/**\n * Retrieves `TemplateRef` instance from `Injector` when a local reference is placed on the\n * `<ng-template>` element.\n *\n * @codeGenApi\n */\nfunction ɵɵtemplateRefExtractor(tNode, lView) {\n return createTemplateRef(tNode, lView);\n}\n\nfunction ɵɵgetComponentDepsFactory(type, rawImports) {\n return () => {\n try {\n return depsTracker.getComponentDependencies(type, rawImports).dependencies;\n }\n catch (e) {\n console.error(`Computing dependencies in local compilation mode for the component \"${type.name}\" failed with the exception:`, e);\n throw e;\n }\n };\n}\n\n/**\n * Sets the debug info for an Angular class.\n *\n * This runtime is guarded by ngDevMode flag.\n */\nfunction ɵsetClassDebugInfo(type, debugInfo) {\n const def = getComponentDef(type);\n if (def !== null) {\n def.debugInfo = debugInfo;\n }\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Replaces the metadata of a component type and re-renders all live instances of the component.\n * @param type Class whose metadata will be replaced.\n * @param applyMetadata Callback that will apply a new set of metadata on the `type` when invoked.\n * @param environment Syntehtic namespace imports that need to be passed along to the callback.\n * @param locals Local symbols from the source location that have to be exposed to the callback.\n * @codeGenApi\n */\nfunction ɵɵreplaceMetadata(type, applyMetadata, namespaces, locals) {\n ngDevMode && assertComponentDef(type);\n const currentDef = getComponentDef(type);\n // The reason `applyMetadata` is a callback that is invoked (almost) immediately is because\n // the compiler usually produces more code than just the component definition, e.g. there\n // can be functions for embedded views, the variables for the constant pool and `setClassMetadata`\n // calls. The callback allows us to keep them isolate from the rest of the app and to invoke\n // them at the right time.\n applyMetadata.apply(null, [type, namespaces, ...locals]);\n const { newDef, oldDef } = mergeWithExistingDefinition(currentDef, getComponentDef(type));\n // TODO(crisbeto): the `applyMetadata` call above will replace the definition on the type.\n // Ideally we should adjust the compiler output so the metadata is returned, however that'll\n // require some internal changes. We re-add the metadata here manually.\n type[NG_COMP_DEF] = newDef;\n // If a `tView` hasn't been created yet, it means that this component hasn't been instantianted\n // before. In this case there's nothing left for us to do aside from patching it in.\n if (oldDef.tView) {\n const trackedViews = getTrackedLViews().values();\n for (const root of trackedViews) {\n // Note: we have the additional check, because `IsRoot` can also indicate\n // a component created through something like `createComponent`.\n if (isRootView(root) && root[PARENT] === null) {\n recreateMatchingLViews(newDef, oldDef, root);\n }\n }\n }\n}\n/**\n * Merges two component definitions while preseving the original one in place.\n * @param currentDef Definition that should receive the new metadata.\n * @param newDef Source of the new metadata.\n */\nfunction mergeWithExistingDefinition(currentDef, newDef) {\n // Clone the current definition since we reference its original data further\n // down in the replacement process (e.g. when destroying the renderer).\n const clone = { ...currentDef };\n // Assign the new metadata in place while preserving the object literal. It's important to\n // Keep the object in place, because there can be references to it, for example in the\n // `directiveDefs` of another definition.\n const replacement = Object.assign(currentDef, newDef, {\n // We need to keep the existing directive and pipe defs, because they can get patched on\n // by a call to `setComponentScope` from a module file. That call won't make it into the\n // HMR replacement function, because it lives in an entirely different file.\n directiveDefs: clone.directiveDefs,\n pipeDefs: clone.pipeDefs,\n // Preserve the old `setInput` function, because it has some state.\n // This is fine, because the component instance is preserved as well.\n setInput: clone.setInput,\n // Externally this is redundant since we redeclare the definition using the original type.\n // Internally we may receive a definition with an alternate, but identical, type so we have\n // to ensure that the original one is preserved.\n type: clone.type,\n });\n ngDevMode && assertEqual(replacement, currentDef, 'Expected definition to be merged in place');\n return { newDef: replacement, oldDef: clone };\n}\n/**\n * Finds all LViews matching a specific component definition and recreates them.\n * @param oldDef Component definition to search for.\n * @param rootLView View from which to start the search.\n */\nfunction recreateMatchingLViews(newDef, oldDef, rootLView) {\n ngDevMode &&\n assertDefined(oldDef.tView, 'Expected a component definition that has been instantiated at least once');\n const tView = rootLView[TVIEW];\n // Use `tView` to match the LView since `instanceof` can\n // produce false positives when using inheritance.\n if (tView === oldDef.tView) {\n ngDevMode && assertComponentDef(oldDef.type);\n recreateLView(newDef, oldDef, rootLView);\n return;\n }\n for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n const current = rootLView[i];\n if (isLContainer(current)) {\n // The host can be an LView if a component is injecting `ViewContainerRef`.\n if (isLView(current[HOST])) {\n recreateMatchingLViews(newDef, oldDef, current[HOST]);\n }\n for (let j = CONTAINER_HEADER_OFFSET; j < current.length; j++) {\n recreateMatchingLViews(newDef, oldDef, current[j]);\n }\n }\n else if (isLView(current)) {\n recreateMatchingLViews(newDef, oldDef, current);\n }\n }\n}\n/**\n * Removes any cached renderers from the factory for the provided type.\n * This is currently used by the HMR logic to ensure Renderers are kept\n * synchronized with any definition metadata updates.\n * @param factory A RendererFactory2 instance.\n * @param def A ComponentDef instance.\n */\nfunction clearRendererCache(factory, def) {\n // Cast to read a private field.\n // NOTE: This must be kept synchronized with the renderer factory implementation in\n // platform-browser and platform-browser/animations.\n factory.componentReplaced?.(def.id);\n}\n/**\n * Recreates an LView in-place from a new component definition.\n * @param newDef Definition from which to recreate the view.\n * @param oldDef Previous component definition being swapped out.\n * @param lView View to be recreated.\n */\nfunction recreateLView(newDef, oldDef, lView) {\n const instance = lView[CONTEXT];\n let host = lView[HOST];\n // In theory the parent can also be an LContainer, but it appears like that's\n // only the case for embedded views which we won't be replacing here.\n const parentLView = lView[PARENT];\n ngDevMode && assertLView(parentLView);\n const tNode = lView[T_HOST];\n ngDevMode && assertTNodeType(tNode, 2 /* TNodeType.Element */);\n ngDevMode && assertNotEqual(newDef, oldDef, 'Expected different component definition');\n const zone = lView[INJECTOR].get(NgZone, null);\n const recreate = () => {\n // If we're recreating a component with shadow DOM encapsulation, it will have attached a\n // shadow root. The browser will throw if we attempt to attach another one and there's no way\n // to detach it. Our only option is to make a clone only of the root node, replace the node\n // with the clone and use it for the newly-created LView.\n if (oldDef.encapsulation === ViewEncapsulation.ShadowDom) {\n const newHost = host.cloneNode(false);\n host.replaceWith(newHost);\n host = newHost;\n }\n // Recreate the TView since the template might've changed.\n const newTView = getOrCreateComponentTView(newDef);\n // Create a new LView from the new TView, but reusing the existing TNode and DOM node.\n const newLView = createLView(parentLView, newTView, instance, getInitialLViewFlagsFromDef(newDef), host, tNode, null, null, // The renderer will be created a bit further down once the old one is destroyed.\n null, null, null);\n // Detach the LView from its current place in the tree so we don't\n // start traversing any siblings and modifying their structure.\n replaceLViewInTree(parentLView, lView, newLView, tNode.index);\n // Destroy the detached LView.\n destroyLView(lView[TVIEW], lView);\n // Always force the creation of a new renderer to ensure state captured during construction\n // stays consistent with the new component definition by clearing any old ached factories.\n const rendererFactory = lView[ENVIRONMENT].rendererFactory;\n clearRendererCache(rendererFactory, oldDef);\n // Patch a brand-new renderer onto the new view only after the old\n // view is destroyed so that the runtime doesn't try to reuse it.\n newLView[RENDERER] = rendererFactory.createRenderer(host, newDef);\n // Remove the nodes associated with the destroyed LView. This removes the\n // descendants, but not the host which we want to stay in place.\n removeViewFromDOM(lView[TVIEW], lView);\n // Reset the content projection state of the TNode before the first render.\n // Note that this has to happen after the LView has been destroyed or we\n // risk some projected nodes not being removed correctly.\n resetProjectionState(tNode);\n // Creation pass for the new view.\n renderView(newTView, newLView, instance);\n // Update pass for the new view.\n refreshView(newTView, newLView, newTView.template, instance);\n };\n // The callback isn't guaranteed to be inside the Zone so we need to bring it in ourselves.\n if (zone === null) {\n recreate();\n }\n else {\n zone.run(recreate);\n }\n}\n/**\n * Replaces one LView in the tree with another one.\n * @param parentLView Parent of the LView being replaced.\n * @param oldLView LView being replaced.\n * @param newLView Replacement LView to be inserted.\n * @param index Index at which the LView should be inserted.\n */\nfunction replaceLViewInTree(parentLView, oldLView, newLView, index) {\n // Update the sibling whose `NEXT` pointer refers to the old view.\n for (let i = HEADER_OFFSET; i < parentLView[TVIEW].bindingStartIndex; i++) {\n const current = parentLView[i];\n if ((isLView(current) || isLContainer(current)) && current[NEXT] === oldLView) {\n current[NEXT] = newLView;\n break;\n }\n }\n // Set the new view as the head, if the old view was first.\n if (parentLView[CHILD_HEAD] === oldLView) {\n parentLView[CHILD_HEAD] = newLView;\n }\n // Set the new view as the tail, if the old view was last.\n if (parentLView[CHILD_TAIL] === oldLView) {\n parentLView[CHILD_TAIL] = newLView;\n }\n // Update the `NEXT` pointer to the same as the old view.\n newLView[NEXT] = oldLView[NEXT];\n // Clear out the `NEXT` of the old view.\n oldLView[NEXT] = null;\n // Insert the new LView at the correct index.\n parentLView[index] = newLView;\n}\n/**\n * Child nodes mutate the `projection` state of their parent node as they're being projected.\n * This function resets the `project` back to its initial state.\n * @param tNode\n */\nfunction resetProjectionState(tNode) {\n // The `projection` is mutated by child nodes as they're being projected. We need to\n // reset it to the initial state so projection works after the template is swapped out.\n if (tNode.projection !== null) {\n for (const current of tNode.projection) {\n if (isTNodeShape(current)) {\n // Reset `projectionNext` since it can affect the traversal order during projection.\n current.projectionNext = null;\n current.flags &= ~2 /* TNodeFlags.isProjected */;\n }\n }\n tNode.projection = null;\n }\n}\n\n/**\n * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.\n *\n * This should be kept up to date with the public exports of @angular/core.\n */\nconst angularCoreEnv = (() => ({\n 'ɵɵattribute': ɵɵattribute,\n 'ɵɵattributeInterpolate1': ɵɵattributeInterpolate1,\n 'ɵɵattributeInterpolate2': ɵɵattributeInterpolate2,\n 'ɵɵattributeInterpolate3': ɵɵattributeInterpolate3,\n 'ɵɵattributeInterpolate4': ɵɵattributeInterpolate4,\n 'ɵɵattributeInterpolate5': ɵɵattributeInterpolate5,\n 'ɵɵattributeInterpolate6': ɵɵattributeInterpolate6,\n 'ɵɵattributeInterpolate7': ɵɵattributeInterpolate7,\n 'ɵɵattributeInterpolate8': ɵɵattributeInterpolate8,\n 'ɵɵattributeInterpolateV': ɵɵattributeInterpolateV,\n 'ɵɵdefineComponent': ɵɵdefineComponent,\n 'ɵɵdefineDirective': ɵɵdefineDirective,\n 'ɵɵdefineInjectable': ɵɵdefineInjectable,\n 'ɵɵdefineInjector': ɵɵdefineInjector,\n 'ɵɵdefineNgModule': ɵɵdefineNgModule,\n 'ɵɵdefinePipe': ɵɵdefinePipe,\n 'ɵɵdirectiveInject': ɵɵdirectiveInject,\n 'ɵɵgetInheritedFactory': ɵɵgetInheritedFactory,\n 'ɵɵinject': ɵɵinject,\n 'ɵɵinjectAttribute': ɵɵinjectAttribute,\n 'ɵɵinvalidFactory': ɵɵinvalidFactory,\n 'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,\n 'ɵɵtemplateRefExtractor': ɵɵtemplateRefExtractor,\n 'ɵɵresetView': ɵɵresetView,\n 'ɵɵHostDirectivesFeature': ɵɵHostDirectivesFeature,\n 'ɵɵNgOnChangesFeature': ɵɵNgOnChangesFeature,\n 'ɵɵProvidersFeature': ɵɵProvidersFeature,\n 'ɵɵCopyDefinitionFeature': ɵɵCopyDefinitionFeature,\n 'ɵɵInheritDefinitionFeature': ɵɵInheritDefinitionFeature,\n 'ɵɵInputTransformsFeature': ɵɵInputTransformsFeature,\n 'ɵɵExternalStylesFeature': ɵɵExternalStylesFeature,\n 'ɵɵnextContext': ɵɵnextContext,\n 'ɵɵnamespaceHTML': ɵɵnamespaceHTML,\n 'ɵɵnamespaceMathML': ɵɵnamespaceMathML,\n 'ɵɵnamespaceSVG': ɵɵnamespaceSVG,\n 'ɵɵenableBindings': ɵɵenableBindings,\n 'ɵɵdisableBindings': ɵɵdisableBindings,\n 'ɵɵelementStart': ɵɵelementStart,\n 'ɵɵelementEnd': ɵɵelementEnd,\n 'ɵɵelement': ɵɵelement,\n 'ɵɵelementContainerStart': ɵɵelementContainerStart,\n 'ɵɵelementContainerEnd': ɵɵelementContainerEnd,\n 'ɵɵelementContainer': ɵɵelementContainer,\n 'ɵɵpureFunction0': ɵɵpureFunction0,\n 'ɵɵpureFunction1': ɵɵpureFunction1,\n 'ɵɵpureFunction2': ɵɵpureFunction2,\n 'ɵɵpureFunction3': ɵɵpureFunction3,\n 'ɵɵpureFunction4': ɵɵpureFunction4,\n 'ɵɵpureFunction5': ɵɵpureFunction5,\n 'ɵɵpureFunction6': ɵɵpureFunction6,\n 'ɵɵpureFunction7': ɵɵpureFunction7,\n 'ɵɵpureFunction8': ɵɵpureFunction8,\n 'ɵɵpureFunctionV': ɵɵpureFunctionV,\n 'ɵɵgetCurrentView': ɵɵgetCurrentView,\n 'ɵɵrestoreView': ɵɵrestoreView,\n 'ɵɵlistener': ɵɵlistener,\n 'ɵɵprojection': ɵɵprojection,\n 'ɵɵsyntheticHostProperty': ɵɵsyntheticHostProperty,\n 'ɵɵsyntheticHostListener': ɵɵsyntheticHostListener,\n 'ɵɵpipeBind1': ɵɵpipeBind1,\n 'ɵɵpipeBind2': ɵɵpipeBind2,\n 'ɵɵpipeBind3': ɵɵpipeBind3,\n 'ɵɵpipeBind4': ɵɵpipeBind4,\n 'ɵɵpipeBindV': ɵɵpipeBindV,\n 'ɵɵprojectionDef': ɵɵprojectionDef,\n 'ɵɵhostProperty': ɵɵhostProperty,\n 'ɵɵproperty': ɵɵproperty,\n 'ɵɵpropertyInterpolate': ɵɵpropertyInterpolate,\n 'ɵɵpropertyInterpolate1': ɵɵpropertyInterpolate1,\n 'ɵɵpropertyInterpolate2': ɵɵpropertyInterpolate2,\n 'ɵɵpropertyInterpolate3': ɵɵpropertyInterpolate3,\n 'ɵɵpropertyInterpolate4': ɵɵpropertyInterpolate4,\n 'ɵɵpropertyInterpolate5': ɵɵpropertyInterpolate5,\n 'ɵɵpropertyInterpolate6': ɵɵpropertyInterpolate6,\n 'ɵɵpropertyInterpolate7': ɵɵpropertyInterpolate7,\n 'ɵɵpropertyInterpolate8': ɵɵpropertyInterpolate8,\n 'ɵɵpropertyInterpolateV': ɵɵpropertyInterpolateV,\n 'ɵɵpipe': ɵɵpipe,\n 'ɵɵqueryRefresh': ɵɵqueryRefresh,\n 'ɵɵqueryAdvance': ɵɵqueryAdvance,\n 'ɵɵviewQuery': ɵɵviewQuery,\n 'ɵɵviewQuerySignal': ɵɵviewQuerySignal,\n 'ɵɵloadQuery': ɵɵloadQuery,\n 'ɵɵcontentQuery': ɵɵcontentQuery,\n 'ɵɵcontentQuerySignal': ɵɵcontentQuerySignal,\n 'ɵɵreference': ɵɵreference,\n 'ɵɵclassMap': ɵɵclassMap,\n 'ɵɵclassMapInterpolate1': ɵɵclassMapInterpolate1,\n 'ɵɵclassMapInterpolate2': ɵɵclassMapInterpolate2,\n 'ɵɵclassMapInterpolate3': ɵɵclassMapInterpolate3,\n 'ɵɵclassMapInterpolate4': ɵɵclassMapInterpolate4,\n 'ɵɵclassMapInterpolate5': ɵɵclassMapInterpolate5,\n 'ɵɵclassMapInterpolate6': ɵɵclassMapInterpolate6,\n 'ɵɵclassMapInterpolate7': ɵɵclassMapInterpolate7,\n 'ɵɵclassMapInterpolate8': ɵɵclassMapInterpolate8,\n 'ɵɵclassMapInterpolateV': ɵɵclassMapInterpolateV,\n 'ɵɵstyleMap': ɵɵstyleMap,\n 'ɵɵstyleMapInterpolate1': ɵɵstyleMapInterpolate1,\n 'ɵɵstyleMapInterpolate2': ɵɵstyleMapInterpolate2,\n 'ɵɵstyleMapInterpolate3': ɵɵstyleMapInterpolate3,\n 'ɵɵstyleMapInterpolate4': ɵɵstyleMapInterpolate4,\n 'ɵɵstyleMapInterpolate5': ɵɵstyleMapInterpolate5,\n 'ɵɵstyleMapInterpolate6': ɵɵstyleMapInterpolate6,\n 'ɵɵstyleMapInterpolate7': ɵɵstyleMapInterpolate7,\n 'ɵɵstyleMapInterpolate8': ɵɵstyleMapInterpolate8,\n 'ɵɵstyleMapInterpolateV': ɵɵstyleMapInterpolateV,\n 'ɵɵstyleProp': ɵɵstyleProp,\n 'ɵɵstylePropInterpolate1': ɵɵstylePropInterpolate1,\n 'ɵɵstylePropInterpolate2': ɵɵstylePropInterpolate2,\n 'ɵɵstylePropInterpolate3': ɵɵstylePropInterpolate3,\n 'ɵɵstylePropInterpolate4': ɵɵstylePropInterpolate4,\n 'ɵɵstylePropInterpolate5': ɵɵstylePropInterpolate5,\n 'ɵɵstylePropInterpolate6': ɵɵstylePropInterpolate6,\n 'ɵɵstylePropInterpolate7': ɵɵstylePropInterpolate7,\n 'ɵɵstylePropInterpolate8': ɵɵstylePropInterpolate8,\n 'ɵɵstylePropInterpolateV': ɵɵstylePropInterpolateV,\n 'ɵɵclassProp': ɵɵclassProp,\n 'ɵɵadvance': ɵɵadvance,\n 'ɵɵtemplate': ɵɵtemplate,\n 'ɵɵconditional': ɵɵconditional,\n 'ɵɵdefer': ɵɵdefer,\n 'ɵɵdeferWhen': ɵɵdeferWhen,\n 'ɵɵdeferOnIdle': ɵɵdeferOnIdle,\n 'ɵɵdeferOnImmediate': ɵɵdeferOnImmediate,\n 'ɵɵdeferOnTimer': ɵɵdeferOnTimer,\n 'ɵɵdeferOnHover': ɵɵdeferOnHover,\n 'ɵɵdeferOnInteraction': ɵɵdeferOnInteraction,\n 'ɵɵdeferOnViewport': ɵɵdeferOnViewport,\n 'ɵɵdeferPrefetchWhen': ɵɵdeferPrefetchWhen,\n 'ɵɵdeferPrefetchOnIdle': ɵɵdeferPrefetchOnIdle,\n 'ɵɵdeferPrefetchOnImmediate': ɵɵdeferPrefetchOnImmediate,\n 'ɵɵdeferPrefetchOnTimer': ɵɵdeferPrefetchOnTimer,\n 'ɵɵdeferPrefetchOnHover': ɵɵdeferPrefetchOnHover,\n 'ɵɵdeferPrefetchOnInteraction': ɵɵdeferPrefetchOnInteraction,\n 'ɵɵdeferPrefetchOnViewport': ɵɵdeferPrefetchOnViewport,\n 'ɵɵdeferHydrateWhen': ɵɵdeferHydrateWhen,\n 'ɵɵdeferHydrateNever': ɵɵdeferHydrateNever,\n 'ɵɵdeferHydrateOnIdle': ɵɵdeferHydrateOnIdle,\n 'ɵɵdeferHydrateOnImmediate': ɵɵdeferHydrateOnImmediate,\n 'ɵɵdeferHydrateOnTimer': ɵɵdeferHydrateOnTimer,\n 'ɵɵdeferHydrateOnHover': ɵɵdeferHydrateOnHover,\n 'ɵɵdeferHydrateOnInteraction': ɵɵdeferHydrateOnInteraction,\n 'ɵɵdeferHydrateOnViewport': ɵɵdeferHydrateOnViewport,\n 'ɵɵdeferEnableTimerScheduling': ɵɵdeferEnableTimerScheduling,\n 'ɵɵrepeater': ɵɵrepeater,\n 'ɵɵrepeaterCreate': ɵɵrepeaterCreate,\n 'ɵɵrepeaterTrackByIndex': ɵɵrepeaterTrackByIndex,\n 'ɵɵrepeaterTrackByIdentity': ɵɵrepeaterTrackByIdentity,\n 'ɵɵcomponentInstance': ɵɵcomponentInstance,\n 'ɵɵtext': ɵɵtext,\n 'ɵɵtextInterpolate': ɵɵtextInterpolate,\n 'ɵɵtextInterpolate1': ɵɵtextInterpolate1,\n 'ɵɵtextInterpolate2': ɵɵtextInterpolate2,\n 'ɵɵtextInterpolate3': ɵɵtextInterpolate3,\n 'ɵɵtextInterpolate4': ɵɵtextInterpolate4,\n 'ɵɵtextInterpolate5': ɵɵtextInterpolate5,\n 'ɵɵtextInterpolate6': ɵɵtextInterpolate6,\n 'ɵɵtextInterpolate7': ɵɵtextInterpolate7,\n 'ɵɵtextInterpolate8': ɵɵtextInterpolate8,\n 'ɵɵtextInterpolateV': ɵɵtextInterpolateV,\n 'ɵɵi18n': ɵɵi18n,\n 'ɵɵi18nAttributes': ɵɵi18nAttributes,\n 'ɵɵi18nExp': ɵɵi18nExp,\n 'ɵɵi18nStart': ɵɵi18nStart,\n 'ɵɵi18nEnd': ɵɵi18nEnd,\n 'ɵɵi18nApply': ɵɵi18nApply,\n 'ɵɵi18nPostprocess': ɵɵi18nPostprocess,\n 'ɵɵresolveWindow': ɵɵresolveWindow,\n 'ɵɵresolveDocument': ɵɵresolveDocument,\n 'ɵɵresolveBody': ɵɵresolveBody,\n 'ɵɵsetComponentScope': ɵɵsetComponentScope,\n 'ɵɵsetNgModuleScope': ɵɵsetNgModuleScope,\n 'ɵɵregisterNgModuleType': registerNgModuleType,\n 'ɵɵgetComponentDepsFactory': ɵɵgetComponentDepsFactory,\n 'ɵsetClassDebugInfo': ɵsetClassDebugInfo,\n 'ɵɵdeclareLet': ɵɵdeclareLet,\n 'ɵɵstoreLet': ɵɵstoreLet,\n 'ɵɵreadContextLet': ɵɵreadContextLet,\n 'ɵɵattachSourceLocations': ɵɵattachSourceLocations,\n 'ɵɵsanitizeHtml': ɵɵsanitizeHtml,\n 'ɵɵsanitizeStyle': ɵɵsanitizeStyle,\n 'ɵɵsanitizeResourceUrl': ɵɵsanitizeResourceUrl,\n 'ɵɵsanitizeScript': ɵɵsanitizeScript,\n 'ɵɵsanitizeUrl': ɵɵsanitizeUrl,\n 'ɵɵsanitizeUrlOrResourceUrl': ɵɵsanitizeUrlOrResourceUrl,\n 'ɵɵtrustConstantHtml': ɵɵtrustConstantHtml,\n 'ɵɵtrustConstantResourceUrl': ɵɵtrustConstantResourceUrl,\n 'ɵɵvalidateIframeAttribute': ɵɵvalidateIframeAttribute,\n 'forwardRef': forwardRef,\n 'resolveForwardRef': resolveForwardRef,\n 'ɵɵtwoWayProperty': ɵɵtwoWayProperty,\n 'ɵɵtwoWayBindingSet': ɵɵtwoWayBindingSet,\n 'ɵɵtwoWayListener': ɵɵtwoWayListener,\n 'ɵɵreplaceMetadata': ɵɵreplaceMetadata,\n}))();\n\nlet jitOptions = null;\nfunction setJitOptions(options) {\n if (jitOptions !== null) {\n if (options.defaultEncapsulation !== jitOptions.defaultEncapsulation) {\n ngDevMode &&\n console.error('Provided value for `defaultEncapsulation` can not be changed once it has been set.');\n return;\n }\n if (options.preserveWhitespaces !== jitOptions.preserveWhitespaces) {\n ngDevMode &&\n console.error('Provided value for `preserveWhitespaces` can not be changed once it has been set.');\n return;\n }\n }\n jitOptions = options;\n}\nfunction getJitOptions() {\n return jitOptions;\n}\nfunction resetJitOptions() {\n jitOptions = null;\n}\n\nfunction patchModuleCompilation() {\n // Does nothing, but exists as a target for patching.\n}\n\nconst moduleQueue = [];\n/**\n * Enqueues moduleDef to be checked later to see if scope can be set on its\n * component declarations.\n */\nfunction enqueueModuleForDelayedScoping(moduleType, ngModule) {\n moduleQueue.push({ moduleType, ngModule });\n}\nlet flushingModuleQueue = false;\n/**\n * Loops over queued module definitions, if a given module definition has all of its\n * declarations resolved, it dequeues that module definition and sets the scope on\n * its declarations.\n */\nfunction flushModuleScopingQueueAsMuchAsPossible() {\n if (!flushingModuleQueue) {\n flushingModuleQueue = true;\n try {\n for (let i = moduleQueue.length - 1; i >= 0; i--) {\n const { moduleType, ngModule } = moduleQueue[i];\n if (ngModule.declarations && ngModule.declarations.every(isResolvedDeclaration)) {\n // dequeue\n moduleQueue.splice(i, 1);\n setScopeOnDeclaredComponents(moduleType, ngModule);\n }\n }\n }\n finally {\n flushingModuleQueue = false;\n }\n }\n}\n/**\n * Returns truthy if a declaration has resolved. If the declaration happens to be\n * an array of declarations, it will recurse to check each declaration in that array\n * (which may also be arrays).\n */\nfunction isResolvedDeclaration(declaration) {\n if (Array.isArray(declaration)) {\n return declaration.every(isResolvedDeclaration);\n }\n return !!resolveForwardRef(declaration);\n}\n/**\n * Compiles a module in JIT mode.\n *\n * This function automatically gets called when a class has a `@NgModule` decorator.\n */\nfunction compileNgModule(moduleType, ngModule = {}) {\n patchModuleCompilation();\n compileNgModuleDefs(moduleType, ngModule);\n if (ngModule.id !== undefined) {\n registerNgModuleType(moduleType, ngModule.id);\n }\n // Because we don't know if all declarations have resolved yet at the moment the\n // NgModule decorator is executing, we're enqueueing the setting of module scope\n // on its declarations to be run at a later time when all declarations for the module,\n // including forward refs, have resolved.\n enqueueModuleForDelayedScoping(moduleType, ngModule);\n}\n/**\n * Compiles and adds the `ɵmod`, `ɵfac` and `ɵinj` properties to the module class.\n *\n * It's possible to compile a module via this API which will allow duplicate declarations in its\n * root.\n */\nfunction compileNgModuleDefs(moduleType, ngModule, allowDuplicateDeclarationsInRoot = false) {\n ngDevMode && assertDefined(moduleType, 'Required value moduleType');\n ngDevMode && assertDefined(ngModule, 'Required value ngModule');\n const declarations = flatten(ngModule.declarations || EMPTY_ARRAY);\n let ngModuleDef = null;\n Object.defineProperty(moduleType, NG_MOD_DEF, {\n configurable: true,\n get: () => {\n if (ngModuleDef === null) {\n if (ngDevMode && ngModule.imports && ngModule.imports.indexOf(moduleType) > -1) {\n // We need to assert this immediately, because allowing it to continue will cause it to\n // go into an infinite loop before we've reached the point where we throw all the errors.\n throw new Error(`'${stringifyForError(moduleType)}' module can't import itself`);\n }\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'NgModule',\n type: moduleType,\n });\n ngModuleDef = compiler.compileNgModule(angularCoreEnv, `ng:///${moduleType.name}/ɵmod.js`, {\n type: moduleType,\n bootstrap: flatten(ngModule.bootstrap || EMPTY_ARRAY).map(resolveForwardRef),\n declarations: declarations.map(resolveForwardRef),\n imports: flatten(ngModule.imports || EMPTY_ARRAY)\n .map(resolveForwardRef)\n .map(expandModuleWithProviders),\n exports: flatten(ngModule.exports || EMPTY_ARRAY)\n .map(resolveForwardRef)\n .map(expandModuleWithProviders),\n schemas: ngModule.schemas ? flatten(ngModule.schemas) : null,\n id: ngModule.id || null,\n });\n // Set `schemas` on ngModuleDef to an empty array in JIT mode to indicate that runtime\n // should verify that there are no unknown elements in a template. In AOT mode, that check\n // happens at compile time and `schemas` information is not present on Component and Module\n // defs after compilation (so the check doesn't happen the second time at runtime).\n if (!ngModuleDef.schemas) {\n ngModuleDef.schemas = [];\n }\n }\n return ngModuleDef;\n },\n });\n let ngFactoryDef = null;\n Object.defineProperty(moduleType, NG_FACTORY_DEF, {\n get: () => {\n if (ngFactoryDef === null) {\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'NgModule',\n type: moduleType,\n });\n ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${moduleType.name}/ɵfac.js`, {\n name: moduleType.name,\n type: moduleType,\n deps: reflectDependencies(moduleType),\n target: compiler.FactoryTarget.NgModule,\n typeArgumentCount: 0,\n });\n }\n return ngFactoryDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n let ngInjectorDef = null;\n Object.defineProperty(moduleType, NG_INJ_DEF, {\n get: () => {\n if (ngInjectorDef === null) {\n ngDevMode && verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRoot);\n const meta = {\n name: moduleType.name,\n type: moduleType,\n providers: ngModule.providers || EMPTY_ARRAY,\n imports: [\n (ngModule.imports || EMPTY_ARRAY).map(resolveForwardRef),\n (ngModule.exports || EMPTY_ARRAY).map(resolveForwardRef),\n ],\n };\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'NgModule',\n type: moduleType,\n });\n ngInjectorDef = compiler.compileInjector(angularCoreEnv, `ng:///${moduleType.name}/ɵinj.js`, meta);\n }\n return ngInjectorDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\nfunction generateStandaloneInDeclarationsError(type, location) {\n const prefix = `Unexpected \"${stringifyForError(type)}\" found in the \"declarations\" array of the`;\n const suffix = `\"${stringifyForError(type)}\" is marked as standalone and can't be declared ` +\n 'in any NgModule - did you intend to import it instead (by adding it to the \"imports\" array)?';\n return `${prefix} ${location}, ${suffix}`;\n}\nfunction verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRoot, importingModule) {\n if (verifiedNgModule.get(moduleType))\n return;\n // skip verifications of standalone components, directives, and pipes\n if (isStandalone(moduleType))\n return;\n verifiedNgModule.set(moduleType, true);\n moduleType = resolveForwardRef(moduleType);\n let ngModuleDef;\n if (importingModule) {\n ngModuleDef = getNgModuleDef(moduleType);\n if (!ngModuleDef) {\n throw new Error(`Unexpected value '${moduleType.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);\n }\n }\n else {\n ngModuleDef = getNgModuleDef(moduleType, true);\n }\n const errors = [];\n const declarations = maybeUnwrapFn(ngModuleDef.declarations);\n const imports = maybeUnwrapFn(ngModuleDef.imports);\n flatten(imports)\n .map(unwrapModuleWithProvidersImports)\n .forEach((modOrStandaloneCmpt) => {\n verifySemanticsOfNgModuleImport(modOrStandaloneCmpt, moduleType);\n verifySemanticsOfNgModuleDef(modOrStandaloneCmpt, false, moduleType);\n });\n const exports = maybeUnwrapFn(ngModuleDef.exports);\n declarations.forEach(verifyDeclarationsHaveDefinitions);\n declarations.forEach(verifyDirectivesHaveSelector);\n declarations.forEach((declarationType) => verifyNotStandalone(declarationType, moduleType));\n const combinedDeclarations = [\n ...declarations.map(resolveForwardRef),\n ...flatten(imports.map(computeCombinedExports)).map(resolveForwardRef),\n ];\n exports.forEach(verifyExportsAreDeclaredOrReExported);\n declarations.forEach((decl) => verifyDeclarationIsUnique(decl, allowDuplicateDeclarationsInRoot));\n const ngModule = getAnnotation(moduleType, 'NgModule');\n if (ngModule) {\n ngModule.imports &&\n flatten(ngModule.imports)\n .map(unwrapModuleWithProvidersImports)\n .forEach((mod) => {\n verifySemanticsOfNgModuleImport(mod, moduleType);\n verifySemanticsOfNgModuleDef(mod, false, moduleType);\n });\n ngModule.bootstrap && deepForEach(ngModule.bootstrap, verifyCorrectBootstrapType);\n ngModule.bootstrap && deepForEach(ngModule.bootstrap, verifyComponentIsPartOfNgModule);\n }\n // Throw Error if any errors were detected.\n if (errors.length) {\n throw new Error(errors.join('\\n'));\n }\n ////////////////////////////////////////////////////////////////////////////////////////////////\n function verifyDeclarationsHaveDefinitions(type) {\n type = resolveForwardRef(type);\n const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);\n if (!def) {\n errors.push(`Unexpected value '${stringifyForError(type)}' declared by the module '${stringifyForError(moduleType)}'. Please add a @Pipe/@Directive/@Component annotation.`);\n }\n }\n function verifyDirectivesHaveSelector(type) {\n type = resolveForwardRef(type);\n const def = getDirectiveDef(type);\n if (!getComponentDef(type) && def && def.selectors.length == 0) {\n errors.push(`Directive ${stringifyForError(type)} has no selector, please add it!`);\n }\n }\n function verifyNotStandalone(type, moduleType) {\n type = resolveForwardRef(type);\n const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);\n if (def?.standalone) {\n const location = `\"${stringifyForError(moduleType)}\" NgModule`;\n errors.push(generateStandaloneInDeclarationsError(type, location));\n }\n }\n function verifyExportsAreDeclaredOrReExported(type) {\n type = resolveForwardRef(type);\n const kind = (getComponentDef(type) && 'component') ||\n (getDirectiveDef(type) && 'directive') ||\n (getPipeDef$1(type) && 'pipe');\n if (kind) {\n // only checked if we are declared as Component, Directive, or Pipe\n // Modules don't need to be declared or imported.\n if (combinedDeclarations.lastIndexOf(type) === -1) {\n // We are exporting something which we don't explicitly declare or import.\n errors.push(`Can't export ${kind} ${stringifyForError(type)} from ${stringifyForError(moduleType)} as it was neither declared nor imported!`);\n }\n }\n }\n function verifyDeclarationIsUnique(type, suppressErrors) {\n type = resolveForwardRef(type);\n const existingModule = ownerNgModule.get(type);\n if (existingModule && existingModule !== moduleType) {\n if (!suppressErrors) {\n const modules = [existingModule, moduleType].map(stringifyForError).sort();\n errors.push(`Type ${stringifyForError(type)} is part of the declarations of 2 modules: ${modules[0]} and ${modules[1]}! ` +\n `Please consider moving ${stringifyForError(type)} to a higher module that imports ${modules[0]} and ${modules[1]}. ` +\n `You can also create a new NgModule that exports and includes ${stringifyForError(type)} then import that NgModule in ${modules[0]} and ${modules[1]}.`);\n }\n }\n else {\n // Mark type as having owner.\n ownerNgModule.set(type, moduleType);\n }\n }\n function verifyComponentIsPartOfNgModule(type) {\n type = resolveForwardRef(type);\n const existingModule = ownerNgModule.get(type);\n if (!existingModule && !isStandalone(type)) {\n errors.push(`Component ${stringifyForError(type)} is not part of any NgModule or the module has not been imported into your module.`);\n }\n }\n function verifyCorrectBootstrapType(type) {\n type = resolveForwardRef(type);\n if (!getComponentDef(type)) {\n errors.push(`${stringifyForError(type)} cannot be used as an entry component.`);\n }\n if (isStandalone(type)) {\n // Note: this error should be the same as the\n // `NGMODULE_BOOTSTRAP_IS_STANDALONE` one in AOT compiler.\n errors.push(`The \\`${stringifyForError(type)}\\` class is a standalone component, which can ` +\n `not be used in the \\`@NgModule.bootstrap\\` array. Use the \\`bootstrapApplication\\` ` +\n `function for bootstrap instead.`);\n }\n }\n function verifySemanticsOfNgModuleImport(type, importingModule) {\n type = resolveForwardRef(type);\n const directiveDef = getComponentDef(type) || getDirectiveDef(type);\n if (directiveDef !== null && !directiveDef.standalone) {\n throw new Error(`Unexpected directive '${type.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);\n }\n const pipeDef = getPipeDef$1(type);\n if (pipeDef !== null && !pipeDef.standalone) {\n throw new Error(`Unexpected pipe '${type.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);\n }\n }\n}\nfunction unwrapModuleWithProvidersImports(typeOrWithProviders) {\n typeOrWithProviders = resolveForwardRef(typeOrWithProviders);\n return typeOrWithProviders.ngModule || typeOrWithProviders;\n}\nfunction getAnnotation(type, name) {\n let annotation = null;\n collect(type.__annotations__);\n collect(type.decorators);\n return annotation;\n function collect(annotations) {\n if (annotations) {\n annotations.forEach(readAnnotation);\n }\n }\n function readAnnotation(decorator) {\n if (!annotation) {\n const proto = Object.getPrototypeOf(decorator);\n if (proto.ngMetadataName == name) {\n annotation = decorator;\n }\n else if (decorator.type) {\n const proto = Object.getPrototypeOf(decorator.type);\n if (proto.ngMetadataName == name) {\n annotation = decorator.args[0];\n }\n }\n }\n }\n}\n/**\n * Keep track of compiled components. This is needed because in tests we often want to compile the\n * same component with more than one NgModule. This would cause an error unless we reset which\n * NgModule the component belongs to. We keep the list of compiled components here so that the\n * TestBed can reset it later.\n */\nlet ownerNgModule = new WeakMap();\nlet verifiedNgModule = new WeakMap();\nfunction resetCompiledComponents() {\n ownerNgModule = new WeakMap();\n verifiedNgModule = new WeakMap();\n moduleQueue.length = 0;\n GENERATED_COMP_IDS.clear();\n}\n/**\n * Computes the combined declarations of explicit declarations, as well as declarations inherited by\n * traversing the exports of imported modules.\n * @param type\n */\nfunction computeCombinedExports(type) {\n type = resolveForwardRef(type);\n const ngModuleDef = getNgModuleDef(type);\n // a standalone component, directive or pipe\n if (ngModuleDef === null) {\n return [type];\n }\n return flatten(maybeUnwrapFn(ngModuleDef.exports).map((type) => {\n const ngModuleDef = getNgModuleDef(type);\n if (ngModuleDef) {\n verifySemanticsOfNgModuleDef(type, false);\n return computeCombinedExports(type);\n }\n else {\n return type;\n }\n }));\n}\n/**\n * Some declared components may be compiled asynchronously, and thus may not have their\n * ɵcmp set yet. If this is the case, then a reference to the module is written into\n * the `ngSelectorScope` property of the declared type.\n */\nfunction setScopeOnDeclaredComponents(moduleType, ngModule) {\n const declarations = flatten(ngModule.declarations || EMPTY_ARRAY);\n const transitiveScopes = transitiveScopesFor(moduleType);\n declarations.forEach((declaration) => {\n declaration = resolveForwardRef(declaration);\n if (declaration.hasOwnProperty(NG_COMP_DEF)) {\n // A `ɵcmp` field exists - go ahead and patch the component directly.\n const component = declaration;\n const componentDef = getComponentDef(component);\n patchComponentDefWithScope(componentDef, transitiveScopes);\n }\n else if (!declaration.hasOwnProperty(NG_DIR_DEF) &&\n !declaration.hasOwnProperty(NG_PIPE_DEF)) {\n // Set `ngSelectorScope` for future reference when the component compilation finishes.\n declaration.ngSelectorScope = moduleType;\n }\n });\n}\n/**\n * Patch the definition of a component with directives and pipes from the compilation scope of\n * a given module.\n */\nfunction patchComponentDefWithScope(componentDef, transitiveScopes) {\n componentDef.directiveDefs = () => Array.from(transitiveScopes.compilation.directives)\n .map((dir) => dir.hasOwnProperty(NG_COMP_DEF) ? getComponentDef(dir) : getDirectiveDef(dir))\n .filter((def) => !!def);\n componentDef.pipeDefs = () => Array.from(transitiveScopes.compilation.pipes).map((pipe) => getPipeDef$1(pipe));\n componentDef.schemas = transitiveScopes.schemas;\n // Since we avoid Components/Directives/Pipes recompiling in case there are no overrides, we\n // may face a problem where previously compiled defs available to a given Component/Directive\n // are cached in TView and may become stale (in case any of these defs gets recompiled). In\n // order to avoid this problem, we force fresh TView to be created.\n componentDef.tView = null;\n}\n/**\n * Compute the pair of transitive scopes (compilation scope and exported scope) for a given type\n * (either a NgModule or a standalone component / directive / pipe).\n */\nfunction transitiveScopesFor(type) {\n if (isNgModule(type)) {\n if (USE_RUNTIME_DEPS_TRACKER_FOR_JIT) {\n const scope = depsTracker.getNgModuleScope(type);\n const def = getNgModuleDef(type, true);\n return {\n schemas: def.schemas || null,\n ...scope,\n };\n }\n else {\n return transitiveScopesForNgModule(type);\n }\n }\n else if (isStandalone(type)) {\n const directiveDef = getComponentDef(type) || getDirectiveDef(type);\n if (directiveDef !== null) {\n return {\n schemas: null,\n compilation: {\n directives: new Set(),\n pipes: new Set(),\n },\n exported: {\n directives: new Set([type]),\n pipes: new Set(),\n },\n };\n }\n const pipeDef = getPipeDef$1(type);\n if (pipeDef !== null) {\n return {\n schemas: null,\n compilation: {\n directives: new Set(),\n pipes: new Set(),\n },\n exported: {\n directives: new Set(),\n pipes: new Set([type]),\n },\n };\n }\n }\n // TODO: change the error message to be more user-facing and take standalone into account\n throw new Error(`${type.name} does not have a module def (ɵmod property)`);\n}\n/**\n * Compute the pair of transitive scopes (compilation scope and exported scope) for a given module.\n *\n * This operation is memoized and the result is cached on the module's definition. This function can\n * be called on modules with components that have not fully compiled yet, but the result should not\n * be used until they have.\n *\n * @param moduleType module that transitive scope should be calculated for.\n */\nfunction transitiveScopesForNgModule(moduleType) {\n const def = getNgModuleDef(moduleType, true);\n if (def.transitiveCompileScopes !== null) {\n return def.transitiveCompileScopes;\n }\n const scopes = {\n schemas: def.schemas || null,\n compilation: {\n directives: new Set(),\n pipes: new Set(),\n },\n exported: {\n directives: new Set(),\n pipes: new Set(),\n },\n };\n maybeUnwrapFn(def.imports).forEach((imported) => {\n // When this module imports another, the imported module's exported directives and pipes are\n // added to the compilation scope of this module.\n const importedScope = transitiveScopesFor(imported);\n importedScope.exported.directives.forEach((entry) => scopes.compilation.directives.add(entry));\n importedScope.exported.pipes.forEach((entry) => scopes.compilation.pipes.add(entry));\n });\n maybeUnwrapFn(def.declarations).forEach((declared) => {\n const declaredWithDefs = declared;\n if (getPipeDef$1(declaredWithDefs)) {\n scopes.compilation.pipes.add(declared);\n }\n else {\n // Either declared has a ɵcmp or ɵdir, or it's a component which hasn't\n // had its template compiled yet. In either case, it gets added to the compilation's\n // directives.\n scopes.compilation.directives.add(declared);\n }\n });\n maybeUnwrapFn(def.exports).forEach((exported) => {\n const exportedType = exported;\n // Either the type is a module, a pipe, or a component/directive (which may not have a\n // ɵcmp as it might be compiled asynchronously).\n if (isNgModule(exportedType)) {\n // When this module exports another, the exported module's exported directives and pipes are\n // added to both the compilation and exported scopes of this module.\n const exportedScope = transitiveScopesFor(exportedType);\n exportedScope.exported.directives.forEach((entry) => {\n scopes.compilation.directives.add(entry);\n scopes.exported.directives.add(entry);\n });\n exportedScope.exported.pipes.forEach((entry) => {\n scopes.compilation.pipes.add(entry);\n scopes.exported.pipes.add(entry);\n });\n }\n else if (getPipeDef$1(exportedType)) {\n scopes.exported.pipes.add(exportedType);\n }\n else {\n scopes.exported.directives.add(exportedType);\n }\n });\n def.transitiveCompileScopes = scopes;\n return scopes;\n}\nfunction expandModuleWithProviders(value) {\n if (isModuleWithProviders(value)) {\n return value.ngModule;\n }\n return value;\n}\n\n/**\n * Keep track of the compilation depth to avoid reentrancy issues during JIT compilation. This\n * matters in the following scenario:\n *\n * Consider a component 'A' that extends component 'B', both declared in module 'M'. During\n * the compilation of 'A' the definition of 'B' is requested to capture the inheritance chain,\n * potentially triggering compilation of 'B'. If this nested compilation were to trigger\n * `flushModuleScopingQueueAsMuchAsPossible` it may happen that module 'M' is still pending in the\n * queue, resulting in 'A' and 'B' to be patched with the NgModule scope. As the compilation of\n * 'A' is still in progress, this would introduce a circular dependency on its compilation. To avoid\n * this issue, the module scope queue is only flushed for compilations at the depth 0, to ensure\n * all compilations have finished.\n */\nlet compilationDepth = 0;\n/**\n * Compile an Angular component according to its decorator metadata, and patch the resulting\n * component def (ɵcmp) onto the component type.\n *\n * Compilation may be asynchronous (due to the need to resolve URLs for the component template or\n * other resources, for example). In the event that compilation is not immediate, `compileComponent`\n * will enqueue resource resolution into a global queue and will fail to return the `ɵcmp`\n * until the global queue has been resolved with a call to `resolveComponentResources`.\n */\nfunction compileComponent(type, metadata) {\n // Initialize ngDevMode. This must be the first statement in compileComponent.\n // See the `initNgDevMode` docstring for more information.\n (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();\n let ngComponentDef = null;\n // Metadata may have resources which need to be resolved.\n maybeQueueResolutionOfComponentResources(type, metadata);\n // Note that we're using the same function as `Directive`, because that's only subset of metadata\n // that we need to create the ngFactoryDef. We're avoiding using the component metadata\n // because we'd have to resolve the asynchronous templates.\n addDirectiveFactoryDef(type, metadata);\n Object.defineProperty(type, NG_COMP_DEF, {\n get: () => {\n if (ngComponentDef === null) {\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'component',\n type: type,\n });\n if (componentNeedsResolution(metadata)) {\n const error = [`Component '${type.name}' is not resolved:`];\n if (metadata.templateUrl) {\n error.push(` - templateUrl: ${metadata.templateUrl}`);\n }\n if (metadata.styleUrls && metadata.styleUrls.length) {\n error.push(` - styleUrls: ${JSON.stringify(metadata.styleUrls)}`);\n }\n if (metadata.styleUrl) {\n error.push(` - styleUrl: ${metadata.styleUrl}`);\n }\n error.push(`Did you run and wait for 'resolveComponentResources()'?`);\n throw new Error(error.join('\\n'));\n }\n // This const was called `jitOptions` previously but had to be renamed to `options` because\n // of a bug with Terser that caused optimized JIT builds to throw a `ReferenceError`.\n // This bug was investigated in https://github.com/angular/angular-cli/issues/17264.\n // We should not rename it back until https://github.com/terser/terser/issues/615 is fixed.\n const options = getJitOptions();\n let preserveWhitespaces = metadata.preserveWhitespaces;\n if (preserveWhitespaces === undefined) {\n if (options !== null && options.preserveWhitespaces !== undefined) {\n preserveWhitespaces = options.preserveWhitespaces;\n }\n else {\n preserveWhitespaces = false;\n }\n }\n let encapsulation = metadata.encapsulation;\n if (encapsulation === undefined) {\n if (options !== null && options.defaultEncapsulation !== undefined) {\n encapsulation = options.defaultEncapsulation;\n }\n else {\n encapsulation = ViewEncapsulation.Emulated;\n }\n }\n const templateUrl = metadata.templateUrl || `ng:///${type.name}/template.html`;\n const meta = {\n ...directiveMetadata(type, metadata),\n typeSourceSpan: compiler.createParseSourceSpan('Component', type.name, templateUrl),\n template: metadata.template || '',\n preserveWhitespaces,\n styles: typeof metadata.styles === 'string'\n ? [metadata.styles]\n : metadata.styles || EMPTY_ARRAY,\n animations: metadata.animations,\n // JIT components are always compiled against an empty set of `declarations`. Instead, the\n // `directiveDefs` and `pipeDefs` are updated at a later point:\n // * for NgModule-based components, they're set when the NgModule which declares the\n // component resolves in the module scoping queue\n // * for standalone components, they're set just below, after `compileComponent`.\n declarations: [],\n changeDetection: metadata.changeDetection,\n encapsulation,\n interpolation: metadata.interpolation,\n viewProviders: metadata.viewProviders || null,\n };\n compilationDepth++;\n try {\n if (meta.usesInheritance) {\n addDirectiveDefToUndecoratedParents(type);\n }\n ngComponentDef = compiler.compileComponent(angularCoreEnv, templateUrl, meta);\n if (meta.isStandalone) {\n // Patch the component definition for standalone components with `directiveDefs` and\n // `pipeDefs` functions which lazily compute the directives/pipes available in the\n // standalone component. Also set `dependencies` to the lazily resolved list of imports.\n const imports = flatten(metadata.imports || EMPTY_ARRAY);\n const { directiveDefs, pipeDefs } = getStandaloneDefFunctions(type, imports);\n ngComponentDef.directiveDefs = directiveDefs;\n ngComponentDef.pipeDefs = pipeDefs;\n ngComponentDef.dependencies = () => imports.map(resolveForwardRef);\n }\n }\n finally {\n // Ensure that the compilation depth is decremented even when the compilation failed.\n compilationDepth--;\n }\n if (compilationDepth === 0) {\n // When NgModule decorator executed, we enqueued the module definition such that\n // it would only dequeue and add itself as module scope to all of its declarations,\n // but only if if all of its declarations had resolved. This call runs the check\n // to see if any modules that are in the queue can be dequeued and add scope to\n // their declarations.\n flushModuleScopingQueueAsMuchAsPossible();\n }\n // If component compilation is async, then the @NgModule annotation which declares the\n // component may execute and set an ngSelectorScope property on the component type. This\n // allows the component to patch itself with directiveDefs from the module after it\n // finishes compiling.\n if (hasSelectorScope(type)) {\n const scopes = transitiveScopesFor(type.ngSelectorScope);\n patchComponentDefWithScope(ngComponentDef, scopes);\n }\n if (metadata.schemas) {\n if (meta.isStandalone) {\n ngComponentDef.schemas = metadata.schemas;\n }\n else {\n throw new Error(`The 'schemas' was specified for the ${stringifyForError(type)} but is only valid on a component that is standalone.`);\n }\n }\n else if (meta.isStandalone) {\n ngComponentDef.schemas = [];\n }\n }\n return ngComponentDef;\n },\n set: (def) => {\n ngComponentDef = def;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\n/**\n * Build memoized `directiveDefs` and `pipeDefs` functions for the component definition of a\n * standalone component, which process `imports` and filter out directives and pipes. The use of\n * memoized functions here allows for the delayed resolution of any `forwardRef`s present in the\n * component's `imports`.\n */\nfunction getStandaloneDefFunctions(type, imports) {\n let cachedDirectiveDefs = null;\n let cachedPipeDefs = null;\n const directiveDefs = () => {\n if (!USE_RUNTIME_DEPS_TRACKER_FOR_JIT) {\n if (cachedDirectiveDefs === null) {\n // Standalone components are always able to self-reference, so include the component's own\n // definition in its `directiveDefs`.\n cachedDirectiveDefs = [getComponentDef(type)];\n const seen = new Set([type]);\n for (const rawDep of imports) {\n ngDevMode && verifyStandaloneImport(rawDep, type);\n const dep = resolveForwardRef(rawDep);\n if (seen.has(dep)) {\n continue;\n }\n seen.add(dep);\n if (!!getNgModuleDef(dep)) {\n const scope = transitiveScopesFor(dep);\n for (const dir of scope.exported.directives) {\n const def = getComponentDef(dir) || getDirectiveDef(dir);\n if (def && !seen.has(dir)) {\n seen.add(dir);\n cachedDirectiveDefs.push(def);\n }\n }\n }\n else {\n const def = getComponentDef(dep) || getDirectiveDef(dep);\n if (def) {\n cachedDirectiveDefs.push(def);\n }\n }\n }\n }\n return cachedDirectiveDefs;\n }\n else {\n if (ngDevMode) {\n for (const rawDep of imports) {\n verifyStandaloneImport(rawDep, type);\n }\n }\n if (!isComponent(type)) {\n return [];\n }\n const scope = depsTracker.getStandaloneComponentScope(type, imports);\n return [...scope.compilation.directives]\n .map((p) => (getComponentDef(p) || getDirectiveDef(p)))\n .filter((d) => d !== null);\n }\n };\n const pipeDefs = () => {\n if (!USE_RUNTIME_DEPS_TRACKER_FOR_JIT) {\n if (cachedPipeDefs === null) {\n cachedPipeDefs = [];\n const seen = new Set();\n for (const rawDep of imports) {\n const dep = resolveForwardRef(rawDep);\n if (seen.has(dep)) {\n continue;\n }\n seen.add(dep);\n if (!!getNgModuleDef(dep)) {\n const scope = transitiveScopesFor(dep);\n for (const pipe of scope.exported.pipes) {\n const def = getPipeDef$1(pipe);\n if (def && !seen.has(pipe)) {\n seen.add(pipe);\n cachedPipeDefs.push(def);\n }\n }\n }\n else {\n const def = getPipeDef$1(dep);\n if (def) {\n cachedPipeDefs.push(def);\n }\n }\n }\n }\n return cachedPipeDefs;\n }\n else {\n if (ngDevMode) {\n for (const rawDep of imports) {\n verifyStandaloneImport(rawDep, type);\n }\n }\n if (!isComponent(type)) {\n return [];\n }\n const scope = depsTracker.getStandaloneComponentScope(type, imports);\n return [...scope.compilation.pipes].map((p) => getPipeDef$1(p)).filter((d) => d !== null);\n }\n };\n return {\n directiveDefs,\n pipeDefs,\n };\n}\nfunction hasSelectorScope(component) {\n return component.ngSelectorScope !== undefined;\n}\n/**\n * Compile an Angular directive according to its decorator metadata, and patch the resulting\n * directive def onto the component type.\n *\n * In the event that compilation is not immediate, `compileDirective` will return a `Promise` which\n * will resolve when compilation completes and the directive becomes usable.\n */\nfunction compileDirective(type, directive) {\n let ngDirectiveDef = null;\n addDirectiveFactoryDef(type, directive || {});\n Object.defineProperty(type, NG_DIR_DEF, {\n get: () => {\n if (ngDirectiveDef === null) {\n // `directive` can be null in the case of abstract directives as a base class\n // that use `@Directive()` with no selector. In that case, pass empty object to the\n // `directiveMetadata` function instead of null.\n const meta = getDirectiveMetadata(type, directive || {});\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'directive',\n type,\n });\n ngDirectiveDef = compiler.compileDirective(angularCoreEnv, meta.sourceMapUrl, meta.metadata);\n }\n return ngDirectiveDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\nfunction getDirectiveMetadata(type, metadata) {\n const name = type && type.name;\n const sourceMapUrl = `ng:///${name}/ɵdir.js`;\n const compiler = getCompilerFacade({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'directive', type });\n const facade = directiveMetadata(type, metadata);\n facade.typeSourceSpan = compiler.createParseSourceSpan('Directive', name, sourceMapUrl);\n if (facade.usesInheritance) {\n addDirectiveDefToUndecoratedParents(type);\n }\n return { metadata: facade, sourceMapUrl };\n}\nfunction addDirectiveFactoryDef(type, metadata) {\n let ngFactoryDef = null;\n Object.defineProperty(type, NG_FACTORY_DEF, {\n get: () => {\n if (ngFactoryDef === null) {\n const meta = getDirectiveMetadata(type, metadata);\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'directive',\n type,\n });\n ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${type.name}/ɵfac.js`, {\n name: meta.metadata.name,\n type: meta.metadata.type,\n typeArgumentCount: 0,\n deps: reflectDependencies(type),\n target: compiler.FactoryTarget.Directive,\n });\n }\n return ngFactoryDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\nfunction extendsDirectlyFromObject(type) {\n return Object.getPrototypeOf(type.prototype) === Object.prototype;\n}\n/**\n * Extract the `R3DirectiveMetadata` for a particular directive (either a `Directive` or a\n * `Component`).\n */\nfunction directiveMetadata(type, metadata) {\n // Reflect inputs and outputs.\n const reflect = getReflect();\n const propMetadata = reflect.ownPropMetadata(type);\n return {\n name: type.name,\n type: type,\n selector: metadata.selector !== undefined ? metadata.selector : null,\n host: metadata.host || EMPTY_OBJ,\n propMetadata: propMetadata,\n inputs: metadata.inputs || EMPTY_ARRAY,\n outputs: metadata.outputs || EMPTY_ARRAY,\n queries: extractQueriesMetadata(type, propMetadata, isContentQuery),\n lifecycle: { usesOnChanges: reflect.hasLifecycleHook(type, 'ngOnChanges') },\n typeSourceSpan: null,\n usesInheritance: !extendsDirectlyFromObject(type),\n exportAs: extractExportAs(metadata.exportAs),\n providers: metadata.providers || null,\n viewQueries: extractQueriesMetadata(type, propMetadata, isViewQuery),\n isStandalone: metadata.standalone === undefined ? true : !!metadata.standalone,\n isSignal: !!metadata.signals,\n hostDirectives: metadata.hostDirectives?.map((directive) => typeof directive === 'function' ? { directive } : directive) || null,\n };\n}\n/**\n * Adds a directive definition to all parent classes of a type that don't have an Angular decorator.\n */\nfunction addDirectiveDefToUndecoratedParents(type) {\n const objPrototype = Object.prototype;\n let parent = Object.getPrototypeOf(type.prototype).constructor;\n // Go up the prototype until we hit `Object`.\n while (parent && parent !== objPrototype) {\n // Since inheritance works if the class was annotated already, we only need to add\n // the def if there are no annotations and the def hasn't been created already.\n if (!getDirectiveDef(parent) &&\n !getComponentDef(parent) &&\n shouldAddAbstractDirective(parent)) {\n compileDirective(parent, null);\n }\n parent = Object.getPrototypeOf(parent);\n }\n}\nfunction convertToR3QueryPredicate(selector) {\n return typeof selector === 'string' ? splitByComma(selector) : resolveForwardRef(selector);\n}\nfunction convertToR3QueryMetadata(propertyName, ann) {\n return {\n propertyName: propertyName,\n predicate: convertToR3QueryPredicate(ann.selector),\n descendants: ann.descendants,\n first: ann.first,\n read: ann.read ? ann.read : null,\n static: !!ann.static,\n emitDistinctChangesOnly: !!ann.emitDistinctChangesOnly,\n isSignal: !!ann.isSignal,\n };\n}\nfunction extractQueriesMetadata(type, propMetadata, isQueryAnn) {\n const queriesMeta = [];\n for (const field in propMetadata) {\n if (propMetadata.hasOwnProperty(field)) {\n const annotations = propMetadata[field];\n annotations.forEach((ann) => {\n if (isQueryAnn(ann)) {\n if (!ann.selector) {\n throw new Error(`Can't construct a query for the property \"${field}\" of ` +\n `\"${stringifyForError(type)}\" since the query selector wasn't defined.`);\n }\n if (annotations.some(isInputAnnotation)) {\n throw new Error(`Cannot combine @Input decorators with query decorators`);\n }\n queriesMeta.push(convertToR3QueryMetadata(field, ann));\n }\n });\n }\n }\n return queriesMeta;\n}\nfunction extractExportAs(exportAs) {\n return exportAs === undefined ? null : splitByComma(exportAs);\n}\nfunction isContentQuery(value) {\n const name = value.ngMetadataName;\n return name === 'ContentChild' || name === 'ContentChildren';\n}\nfunction isViewQuery(value) {\n const name = value.ngMetadataName;\n return name === 'ViewChild' || name === 'ViewChildren';\n}\nfunction isInputAnnotation(value) {\n return value.ngMetadataName === 'Input';\n}\nfunction splitByComma(value) {\n return value.split(',').map((piece) => piece.trim());\n}\nconst LIFECYCLE_HOOKS = [\n 'ngOnChanges',\n 'ngOnInit',\n 'ngOnDestroy',\n 'ngDoCheck',\n 'ngAfterViewInit',\n 'ngAfterViewChecked',\n 'ngAfterContentInit',\n 'ngAfterContentChecked',\n];\nfunction shouldAddAbstractDirective(type) {\n const reflect = getReflect();\n if (LIFECYCLE_HOOKS.some((hookName) => reflect.hasLifecycleHook(type, hookName))) {\n return true;\n }\n const propMetadata = reflect.propMetadata(type);\n for (const field in propMetadata) {\n const annotations = propMetadata[field];\n for (let i = 0; i < annotations.length; i++) {\n const current = annotations[i];\n const metadataName = current.ngMetadataName;\n if (isInputAnnotation(current) ||\n isContentQuery(current) ||\n isViewQuery(current) ||\n metadataName === 'Output' ||\n metadataName === 'HostBinding' ||\n metadataName === 'HostListener') {\n return true;\n }\n }\n }\n return false;\n}\n\nfunction compilePipe(type, meta) {\n let ngPipeDef = null;\n let ngFactoryDef = null;\n Object.defineProperty(type, NG_FACTORY_DEF, {\n get: () => {\n if (ngFactoryDef === null) {\n const metadata = getPipeMetadata(type, meta);\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'pipe',\n type: metadata.type,\n });\n ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${metadata.name}/ɵfac.js`, {\n name: metadata.name,\n type: metadata.type,\n typeArgumentCount: 0,\n deps: reflectDependencies(type),\n target: compiler.FactoryTarget.Pipe,\n });\n }\n return ngFactoryDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n Object.defineProperty(type, NG_PIPE_DEF, {\n get: () => {\n if (ngPipeDef === null) {\n const metadata = getPipeMetadata(type, meta);\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'pipe',\n type: metadata.type,\n });\n ngPipeDef = compiler.compilePipe(angularCoreEnv, `ng:///${metadata.name}/ɵpipe.js`, metadata);\n }\n return ngPipeDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\nfunction getPipeMetadata(type, meta) {\n return {\n type: type,\n name: type.name,\n pipeName: meta.name,\n pure: meta.pure !== undefined ? meta.pure : true,\n isStandalone: meta.standalone === undefined ? true : !!meta.standalone,\n };\n}\n\n/**\n * Type of the Directive metadata.\n *\n * @publicApi\n */\nconst Directive = makeDecorator('Directive', (dir = {}) => dir, undefined, undefined, (type, meta) => compileDirective(type, meta));\n/**\n * Component decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Component = makeDecorator('Component', (c = {}) => ({ changeDetection: ChangeDetectionStrategy.Default, ...c }), Directive, undefined, (type, meta) => compileComponent(type, meta));\n/**\n * @Annotation\n * @publicApi\n */\nconst Pipe = makeDecorator('Pipe', (p) => ({ pure: true, ...p }), undefined, undefined, (type, meta) => compilePipe(type, meta));\n/**\n * @Annotation\n * @publicApi\n */\nconst Input = makePropDecorator('Input', (arg) => {\n if (!arg) {\n return {};\n }\n return typeof arg === 'string' ? { alias: arg } : arg;\n});\n/**\n * @Annotation\n * @publicApi\n */\nconst Output = makePropDecorator('Output', (alias) => ({ alias }));\n/**\n * @Annotation\n * @publicApi\n */\nconst HostBinding = makePropDecorator('HostBinding', (hostPropertyName) => ({ hostPropertyName }));\n/**\n * @Annotation\n * @publicApi\n */\nconst HostListener = makePropDecorator('HostListener', (eventName, args) => ({ eventName, args }));\n\n/**\n * @Annotation\n */\nconst NgModule = makeDecorator('NgModule', (ngModule) => ngModule, undefined, undefined, \n/**\n * Decorator that marks the following class as an NgModule, and supplies\n * configuration metadata for it.\n *\n * * The `declarations` option configures the compiler\n * with information about what belongs to the NgModule.\n * * The `providers` options configures the NgModule's injector to provide\n * dependencies the NgModule members.\n * * The `imports` and `exports` options bring in members from other modules, and make\n * this module's members available to others.\n */\n(type, meta) => compileNgModule(type, meta));\n\n/**\n * This indirection is needed to free up Component, etc symbols in the public API\n * to be used by the decorator versions of these annotations.\n */\n\n/**\n * @description Represents the version of Angular\n *\n * @publicApi\n */\nclass Version {\n full;\n major;\n minor;\n patch;\n constructor(full) {\n this.full = full;\n const parts = full.split('.');\n this.major = parts[0];\n this.minor = parts[1];\n this.patch = parts.slice(2).join('.');\n }\n}\n/**\n * @publicApi\n */\nconst VERSION = new Version('19.1.4');\n\n/**\n * Combination of NgModuleFactory and ComponentFactories.\n *\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n */\nclass ModuleWithComponentFactories {\n ngModuleFactory;\n componentFactories;\n constructor(ngModuleFactory, componentFactories) {\n this.ngModuleFactory = ngModuleFactory;\n this.componentFactories = componentFactories;\n }\n}\n/**\n * Low-level service for running the angular compiler during runtime\n * to create {@link ComponentFactory}s, which\n * can later be used to create and render a Component instance.\n *\n * Each `@NgModule` provides an own `Compiler` to its injector,\n * that will use the directives/pipes of the ng module for compilation\n * of components.\n *\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n */\nclass Compiler {\n /**\n * Compiles the given NgModule and all of its components. All templates of the components\n * have to be inlined.\n */\n compileModuleSync(moduleType) {\n return new NgModuleFactory(moduleType);\n }\n /**\n * Compiles the given NgModule and all of its components\n */\n compileModuleAsync(moduleType) {\n return Promise.resolve(this.compileModuleSync(moduleType));\n }\n /**\n * Same as {@link Compiler#compileModuleSync compileModuleSync} but also creates ComponentFactories for all components.\n */\n compileModuleAndAllComponentsSync(moduleType) {\n const ngModuleFactory = this.compileModuleSync(moduleType);\n const moduleDef = getNgModuleDef(moduleType);\n const componentFactories = maybeUnwrapFn(moduleDef.declarations).reduce((factories, declaration) => {\n const componentDef = getComponentDef(declaration);\n componentDef && factories.push(new ComponentFactory(componentDef));\n return factories;\n }, []);\n return new ModuleWithComponentFactories(ngModuleFactory, componentFactories);\n }\n /**\n * Same as {@link Compiler#compileModuleAsync compileModuleAsync} but also creates ComponentFactories for all components.\n */\n compileModuleAndAllComponentsAsync(moduleType) {\n return Promise.resolve(this.compileModuleAndAllComponentsSync(moduleType));\n }\n /**\n * Clears all caches.\n */\n clearCache() { }\n /**\n * Clears the cache for the given component/ngModule.\n */\n clearCacheFor(type) { }\n /**\n * Returns the id for a given NgModule, if one is defined and known to the compiler.\n */\n getModuleId(moduleType) {\n return undefined;\n }\n static ɵfac = function Compiler_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Compiler)(); };\n static ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Compiler, factory: Compiler.ɵfac, providedIn: 'root' });\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(Compiler, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], null, null); })();\n/**\n * Token to provide CompilerOptions in the platform injector.\n *\n * @publicApi\n */\nconst COMPILER_OPTIONS = new InjectionToken(ngDevMode ? 'compilerOptions' : '');\n/**\n * A factory for creating a Compiler\n *\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n */\nclass CompilerFactory {\n}\n\nfunction compileNgModuleFactory(injector, options, moduleType) {\n ngDevMode && assertNgModuleType(moduleType);\n const moduleFactory = new NgModuleFactory(moduleType);\n // All of the logic below is irrelevant for AOT-compiled code.\n if (typeof ngJitMode !== 'undefined' && !ngJitMode) {\n return Promise.resolve(moduleFactory);\n }\n const compilerOptions = injector.get(COMPILER_OPTIONS, []).concat(options);\n // Configure the compiler to use the provided options. This call may fail when multiple modules\n // are bootstrapped with incompatible options, as a component can only be compiled according to\n // a single set of options.\n setJitOptions({\n defaultEncapsulation: _lastDefined(compilerOptions.map((opts) => opts.defaultEncapsulation)),\n preserveWhitespaces: _lastDefined(compilerOptions.map((opts) => opts.preserveWhitespaces)),\n });\n if (isComponentResourceResolutionQueueEmpty()) {\n return Promise.resolve(moduleFactory);\n }\n const compilerProviders = compilerOptions.flatMap((option) => option.providers ?? []);\n // In case there are no compiler providers, we just return the module factory as\n // there won't be any resource loader. This can happen with Ivy, because AOT compiled\n // modules can be still passed through \"bootstrapModule\". In that case we shouldn't\n // unnecessarily require the JIT compiler.\n if (compilerProviders.length === 0) {\n return Promise.resolve(moduleFactory);\n }\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'NgModule',\n type: moduleType,\n });\n const compilerInjector = Injector.create({ providers: compilerProviders });\n const resourceLoader = compilerInjector.get(compiler.ResourceLoader);\n // The resource loader can also return a string while the \"resolveComponentResources\"\n // always expects a promise. Therefore we need to wrap the returned value in a promise.\n return resolveComponentResources((url) => Promise.resolve(resourceLoader.get(url))).then(() => moduleFactory);\n}\nfunction _lastDefined(args) {\n for (let i = args.length - 1; i >= 0; i--) {\n if (args[i] !== undefined) {\n return args[i];\n }\n }\n return undefined;\n}\n\nclass NgZoneChangeDetectionScheduler {\n zone = inject(NgZone);\n changeDetectionScheduler = inject(ChangeDetectionScheduler);\n applicationRef = inject(ApplicationRef);\n _onMicrotaskEmptySubscription;\n initialize() {\n if (this._onMicrotaskEmptySubscription) {\n return;\n }\n this._onMicrotaskEmptySubscription = this.zone.onMicrotaskEmpty.subscribe({\n next: () => {\n // `onMicroTaskEmpty` can happen _during_ the zoneless scheduler change detection because\n // zone.run(() => {}) will result in `checkStable` at the end of the `zone.run` closure\n // and emit `onMicrotaskEmpty` synchronously if run coalsecing is false.\n if (this.changeDetectionScheduler.runningTick) {\n return;\n }\n this.zone.run(() => {\n this.applicationRef.tick();\n });\n },\n });\n }\n ngOnDestroy() {\n this._onMicrotaskEmptySubscription?.unsubscribe();\n }\n static ɵfac = function NgZoneChangeDetectionScheduler_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NgZoneChangeDetectionScheduler)(); };\n static ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: NgZoneChangeDetectionScheduler, factory: NgZoneChangeDetectionScheduler.ɵfac, providedIn: 'root' });\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(NgZoneChangeDetectionScheduler, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], null, null); })();\n/**\n * Internal token used to verify that `provideZoneChangeDetection` is not used\n * with the bootstrapModule API.\n */\nconst PROVIDED_NG_ZONE = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'provideZoneChangeDetection token' : '', { factory: () => false });\nfunction internalProvideZoneChangeDetection({ ngZoneFactory, ignoreChangesOutsideZone, scheduleInRootZone, }) {\n ngZoneFactory ??= () => new NgZone({ ...getNgZoneOptions(), scheduleInRootZone });\n return [\n { provide: NgZone, useFactory: ngZoneFactory },\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory: () => {\n const ngZoneChangeDetectionScheduler = inject(NgZoneChangeDetectionScheduler, {\n optional: true,\n });\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n ngZoneChangeDetectionScheduler === null) {\n throw new RuntimeError(402 /* RuntimeErrorCode.MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP */, `A required Injectable was not found in the dependency injection tree. ` +\n 'If you are bootstrapping an NgModule, make sure that the `BrowserModule` is imported.');\n }\n return () => ngZoneChangeDetectionScheduler.initialize();\n },\n },\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory: () => {\n const service = inject(ZoneStablePendingTask);\n return () => {\n service.initialize();\n };\n },\n },\n // Always disable scheduler whenever explicitly disabled, even if another place called\n // `provideZoneChangeDetection` without the 'ignore' option.\n ignoreChangesOutsideZone === true ? { provide: ZONELESS_SCHEDULER_DISABLED, useValue: true } : [],\n {\n provide: SCHEDULE_IN_ROOT_ZONE,\n useValue: scheduleInRootZone ?? SCHEDULE_IN_ROOT_ZONE_DEFAULT,\n },\n ];\n}\n/**\n * Provides `NgZone`-based change detection for the application bootstrapped using\n * `bootstrapApplication`.\n *\n * `NgZone` is already provided in applications by default. This provider allows you to configure\n * options like `eventCoalescing` in the `NgZone`.\n * This provider is not available for `platformBrowser().bootstrapModule`, which uses\n * `BootstrapOptions` instead.\n *\n * @usageNotes\n * ```ts\n * bootstrapApplication(MyApp, {providers: [\n * provideZoneChangeDetection({eventCoalescing: true}),\n * ]});\n * ```\n *\n * @publicApi\n * @see {@link bootstrapApplication}\n * @see {@link NgZoneOptions}\n */\nfunction provideZoneChangeDetection(options) {\n const ignoreChangesOutsideZone = options?.ignoreChangesOutsideZone;\n const scheduleInRootZone = options?.scheduleInRootZone;\n const zoneProviders = internalProvideZoneChangeDetection({\n ngZoneFactory: () => {\n const ngZoneOptions = getNgZoneOptions(options);\n ngZoneOptions.scheduleInRootZone = scheduleInRootZone;\n if (ngZoneOptions.shouldCoalesceEventChangeDetection) {\n performanceMarkFeature('NgZone_CoalesceEvent');\n }\n return new NgZone(ngZoneOptions);\n },\n ignoreChangesOutsideZone,\n scheduleInRootZone,\n });\n return makeEnvironmentProviders([\n { provide: PROVIDED_NG_ZONE, useValue: true },\n { provide: ZONELESS_ENABLED, useValue: false },\n zoneProviders,\n ]);\n}\n// Transforms a set of `BootstrapOptions` (supported by the NgModule-based bootstrap APIs) ->\n// `NgZoneOptions` that are recognized by the NgZone constructor. Passing no options will result in\n// a set of default options returned.\nfunction getNgZoneOptions(options) {\n return {\n enableLongStackTrace: typeof ngDevMode === 'undefined' ? false : !!ngDevMode,\n shouldCoalesceEventChangeDetection: options?.eventCoalescing ?? false,\n shouldCoalesceRunChangeDetection: options?.runCoalescing ?? false,\n };\n}\nclass ZoneStablePendingTask {\n subscription = new Subscription();\n initialized = false;\n zone = inject(NgZone);\n pendingTasks = inject(PendingTasksInternal);\n initialize() {\n if (this.initialized) {\n return;\n }\n this.initialized = true;\n let task = null;\n if (!this.zone.isStable && !this.zone.hasPendingMacrotasks && !this.zone.hasPendingMicrotasks) {\n task = this.pendingTasks.add();\n }\n this.zone.runOutsideAngular(() => {\n this.subscription.add(this.zone.onStable.subscribe(() => {\n NgZone.assertNotInAngularZone();\n // Check whether there are no pending macro/micro tasks in the next tick\n // to allow for NgZone to update the state.\n queueMicrotask(() => {\n if (task !== null &&\n !this.zone.hasPendingMacrotasks &&\n !this.zone.hasPendingMicrotasks) {\n this.pendingTasks.remove(task);\n task = null;\n }\n });\n }));\n });\n this.subscription.add(this.zone.onUnstable.subscribe(() => {\n NgZone.assertInAngularZone();\n task ??= this.pendingTasks.add();\n }));\n }\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n static ɵfac = function ZoneStablePendingTask_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ZoneStablePendingTask)(); };\n static ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ZoneStablePendingTask, factory: ZoneStablePendingTask.ɵfac, providedIn: 'root' });\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ZoneStablePendingTask, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], null, null); })();\n\nconst CONSECUTIVE_MICROTASK_NOTIFICATION_LIMIT = 100;\nlet consecutiveMicrotaskNotifications = 0;\nlet stackFromLastFewNotifications = [];\nfunction trackMicrotaskNotificationForDebugging() {\n consecutiveMicrotaskNotifications++;\n if (CONSECUTIVE_MICROTASK_NOTIFICATION_LIMIT - consecutiveMicrotaskNotifications < 5) {\n const stack = new Error().stack;\n if (stack) {\n stackFromLastFewNotifications.push(stack);\n }\n }\n if (consecutiveMicrotaskNotifications === CONSECUTIVE_MICROTASK_NOTIFICATION_LIMIT) {\n throw new RuntimeError(103 /* RuntimeErrorCode.INFINITE_CHANGE_DETECTION */, 'Angular could not stabilize because there were endless change notifications within the browser event loop. ' +\n 'The stack from the last several notifications: \\n' +\n stackFromLastFewNotifications.join('\\n'));\n }\n}\nclass ChangeDetectionSchedulerImpl {\n appRef = inject(ApplicationRef);\n taskService = inject(PendingTasksInternal);\n ngZone = inject(NgZone);\n zonelessEnabled = inject(ZONELESS_ENABLED);\n tracing = inject(TracingService, { optional: true });\n disableScheduling = inject(ZONELESS_SCHEDULER_DISABLED, { optional: true }) ?? false;\n zoneIsDefined = typeof Zone !== 'undefined' && !!Zone.root.run;\n schedulerTickApplyArgs = [{ data: { '__scheduler_tick__': true } }];\n subscriptions = new Subscription();\n angularZoneId = this.zoneIsDefined\n ? this.ngZone._inner?.get(angularZoneInstanceIdProperty)\n : null;\n scheduleInRootZone = !this.zonelessEnabled &&\n this.zoneIsDefined &&\n (inject(SCHEDULE_IN_ROOT_ZONE, { optional: true }) ?? false);\n cancelScheduledCallback = null;\n useMicrotaskScheduler = false;\n runningTick = false;\n pendingRenderTaskId = null;\n constructor() {\n this.subscriptions.add(this.appRef.afterTick.subscribe(() => {\n // If the scheduler isn't running a tick but the application ticked, that means\n // someone called ApplicationRef.tick manually. In this case, we should cancel\n // any change detections that had been scheduled so we don't run an extra one.\n if (!this.runningTick) {\n this.cleanup();\n }\n }));\n this.subscriptions.add(this.ngZone.onUnstable.subscribe(() => {\n // If the zone becomes unstable when we're not running tick (this happens from the zone.run),\n // we should cancel any scheduled change detection here because at this point we\n // know that the zone will stabilize at some point and run change detection itself.\n if (!this.runningTick) {\n this.cleanup();\n }\n }));\n // TODO(atscott): These conditions will need to change when zoneless is the default\n // Instead, they should flip to checking if ZoneJS scheduling is provided\n this.disableScheduling ||=\n !this.zonelessEnabled &&\n // NoopNgZone without enabling zoneless means no scheduling whatsoever\n (this.ngZone instanceof NoopNgZone ||\n // The same goes for the lack of Zone without enabling zoneless scheduling\n !this.zoneIsDefined);\n }\n notify(source) {\n if (!this.zonelessEnabled && source === 5 /* NotificationSource.Listener */) {\n // When the notification comes from a listener, we skip the notification unless the\n // application has enabled zoneless. Ideally, listeners wouldn't notify the scheduler at all\n // automatically. We do not know that a developer made a change in the listener callback that\n // requires an `ApplicationRef.tick` (synchronize templates / run render hooks). We do this\n // only for an easier migration from OnPush components to zoneless. Because listeners are\n // usually executed inside the Angular zone and listeners automatically call `markViewDirty`,\n // developers never needed to manually use `ChangeDetectorRef.markForCheck` or some other API\n // to make listener callbacks work correctly with `OnPush` components.\n return;\n }\n let force = false;\n switch (source) {\n case 0 /* NotificationSource.MarkAncestorsForTraversal */: {\n this.appRef.dirtyFlags |= 2 /* ApplicationRefDirtyFlags.ViewTreeTraversal */;\n break;\n }\n case 3 /* NotificationSource.DebugApplyChanges */:\n case 2 /* NotificationSource.DeferBlockStateUpdate */:\n case 4 /* NotificationSource.MarkForCheck */:\n case 5 /* NotificationSource.Listener */:\n case 1 /* NotificationSource.SetInput */: {\n this.appRef.dirtyFlags |= 4 /* ApplicationRefDirtyFlags.ViewTreeCheck */;\n break;\n }\n case 8 /* NotificationSource.DeferredRenderHook */: {\n // Render hooks are \"deferred\" when they're triggered from other render hooks. Using the\n // deferred dirty flags ensures that adding new hooks doesn't automatically trigger a loop\n // inside tick().\n this.appRef.deferredDirtyFlags |= 8 /* ApplicationRefDirtyFlags.AfterRender */;\n break;\n }\n case 6 /* NotificationSource.CustomElement */: {\n // We use `ViewTreeTraversal` to ensure we refresh the element even if this is triggered\n // during CD. In practice this is a no-op since the elements code also calls via a\n // `markForRefresh()` API which sends `NotificationSource.MarkAncestorsForTraversal` anyway.\n this.appRef.dirtyFlags |= 2 /* ApplicationRefDirtyFlags.ViewTreeTraversal */;\n force = true;\n break;\n }\n case 13 /* NotificationSource.RootEffect */: {\n this.appRef.dirtyFlags |= 16 /* ApplicationRefDirtyFlags.RootEffects */;\n // Root effects still force a CD, even if the scheduler is disabled. This ensures that\n // effects always run, even when triggered from outside the zone when the scheduler is\n // otherwise disabled.\n force = true;\n break;\n }\n case 14 /* NotificationSource.ViewEffect */: {\n // This is technically a no-op, since view effects will also send a\n // `MarkAncestorsForTraversal` notification. Still, we set this for logical consistency.\n this.appRef.dirtyFlags |= 2 /* ApplicationRefDirtyFlags.ViewTreeTraversal */;\n // View effects still force a CD, even if the scheduler is disabled. This ensures that\n // effects always run, even when triggered from outside the zone when the scheduler is\n // otherwise disabled.\n force = true;\n break;\n }\n case 12 /* NotificationSource.PendingTaskRemoved */: {\n // Removing a pending task via the public API forces a scheduled tick, ensuring that\n // stability is async and delayed until there was at least an opportunity to run\n // application synchronization. This prevents some footguns when working with the\n // public API for pending tasks where developers attempt to update application state\n // immediately after removing the last task.\n force = true;\n break;\n }\n case 10 /* NotificationSource.ViewDetachedFromDOM */:\n case 9 /* NotificationSource.ViewAttached */:\n case 7 /* NotificationSource.RenderHook */:\n case 11 /* NotificationSource.AsyncAnimationsLoaded */:\n default: {\n // These notifications only schedule a tick but do not change whether we should refresh\n // views. Instead, we only need to run render hooks unless another notification from the\n // other set is also received before `tick` happens.\n this.appRef.dirtyFlags |= 8 /* ApplicationRefDirtyFlags.AfterRender */;\n }\n }\n // If not already defined, attempt to capture a tracing snapshot of this\n // notification so that the resulting CD run can be attributed to the\n // context which produced the notification.\n this.appRef.tracingSnapshot = this.tracing?.snapshot(this.appRef.tracingSnapshot) ?? null;\n if (!this.shouldScheduleTick(force)) {\n return;\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (this.useMicrotaskScheduler) {\n trackMicrotaskNotificationForDebugging();\n }\n else {\n consecutiveMicrotaskNotifications = 0;\n stackFromLastFewNotifications.length = 0;\n }\n }\n const scheduleCallback = this.useMicrotaskScheduler\n ? scheduleCallbackWithMicrotask\n : scheduleCallbackWithRafRace;\n this.pendingRenderTaskId = this.taskService.add();\n if (this.scheduleInRootZone) {\n this.cancelScheduledCallback = Zone.root.run(() => scheduleCallback(() => this.tick()));\n }\n else {\n this.cancelScheduledCallback = this.ngZone.runOutsideAngular(() => scheduleCallback(() => this.tick()));\n }\n }\n shouldScheduleTick(force) {\n if ((this.disableScheduling && !force) || this.appRef.destroyed) {\n return false;\n }\n // already scheduled or running\n if (this.pendingRenderTaskId !== null || this.runningTick || this.appRef._runningTick) {\n return false;\n }\n // If we're inside the zone don't bother with scheduler. Zone will stabilize\n // eventually and run change detection.\n if (!this.zonelessEnabled &&\n this.zoneIsDefined &&\n Zone.current.get(angularZoneInstanceIdProperty + this.angularZoneId)) {\n return false;\n }\n return true;\n }\n /**\n * Calls ApplicationRef._tick inside the `NgZone`.\n *\n * Calling `tick` directly runs change detection and cancels any change detection that had been\n * scheduled previously.\n *\n * @param shouldRefreshViews Passed directly to `ApplicationRef._tick` and skips straight to\n * render hooks when `false`.\n */\n tick() {\n // When ngZone.run below exits, onMicrotaskEmpty may emit if the zone is\n // stable. We want to prevent double ticking so we track whether the tick is\n // already running and skip it if so.\n if (this.runningTick || this.appRef.destroyed) {\n return;\n }\n // If we reach the tick and there is no work to be done in ApplicationRef.tick,\n // skip it altogether and clean up. There may be no work if, for example, the only\n // event that notified the scheduler was the removal of a pending task.\n if (this.appRef.dirtyFlags === 0 /* ApplicationRefDirtyFlags.None */) {\n this.cleanup();\n return;\n }\n // The scheduler used to pass \"whether to check views\" as a boolean flag instead of setting\n // fine-grained dirtiness flags, and global checking was always used on the first pass. This\n // created an interesting edge case: if a notification made a view dirty and then ticked via the\n // scheduler (and not the zone) a global check was still performed.\n //\n // Ideally, this would not be the case, and only zone-based ticks would do global passes.\n // However this is a breaking change and requires fixes in g3. Until this cleanup can be done,\n // we add the `ViewTreeGlobal` flag to request a global check if any views are dirty in a\n // scheduled tick (unless zoneless is enabled, in which case global checks aren't really a\n // thing).\n //\n // TODO(alxhub): clean up and remove this workaround as a breaking change.\n if (!this.zonelessEnabled && this.appRef.dirtyFlags & 7 /* ApplicationRefDirtyFlags.ViewTreeAny */) {\n this.appRef.dirtyFlags |= 1 /* ApplicationRefDirtyFlags.ViewTreeGlobal */;\n }\n const task = this.taskService.add();\n try {\n this.ngZone.run(() => {\n this.runningTick = true;\n this.appRef._tick();\n }, undefined, this.schedulerTickApplyArgs);\n }\n catch (e) {\n this.taskService.remove(task);\n throw e;\n }\n finally {\n this.cleanup();\n }\n // If we're notified of a change within 1 microtask of running change\n // detection, run another round in the same event loop. This allows code\n // which uses Promise.resolve (see NgModel) to avoid\n // ExpressionChanged...Error to still be reflected in a single browser\n // paint, even if that spans multiple rounds of change detection.\n this.useMicrotaskScheduler = true;\n scheduleCallbackWithMicrotask(() => {\n this.useMicrotaskScheduler = false;\n this.taskService.remove(task);\n });\n }\n ngOnDestroy() {\n this.subscriptions.unsubscribe();\n this.cleanup();\n }\n cleanup() {\n this.runningTick = false;\n this.cancelScheduledCallback?.();\n this.cancelScheduledCallback = null;\n // If this is the last task, the service will synchronously emit a stable\n // notification. If there is a subscriber that then acts in a way that\n // tries to notify the scheduler again, we need to be able to respond to\n // schedule a new change detection. Therefore, we should clear the task ID\n // before removing it from the pending tasks (or the tasks service should\n // not synchronously emit stable, similar to how Zone stableness only\n // happens if it's still stable after a microtask).\n if (this.pendingRenderTaskId !== null) {\n const taskId = this.pendingRenderTaskId;\n this.pendingRenderTaskId = null;\n this.taskService.remove(taskId);\n }\n }\n static ɵfac = function ChangeDetectionSchedulerImpl_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ChangeDetectionSchedulerImpl)(); };\n static ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ChangeDetectionSchedulerImpl, factory: ChangeDetectionSchedulerImpl.ɵfac, providedIn: 'root' });\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ChangeDetectionSchedulerImpl, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], () => [], null); })();\n/**\n * Provides change detection without ZoneJS for the application bootstrapped using\n * `bootstrapApplication`.\n *\n * This function allows you to configure the application to not use the state/state changes of\n * ZoneJS to schedule change detection in the application. This will work when ZoneJS is not present\n * on the page at all or if it exists because something else is using it (either another Angular\n * application which uses ZoneJS for scheduling or some other library that relies on ZoneJS).\n *\n * This can also be added to the `TestBed` providers to configure the test environment to more\n * closely match production behavior. This will help give higher confidence that components are\n * compatible with zoneless change detection.\n *\n * ZoneJS uses browser events to trigger change detection. When using this provider, Angular will\n * instead use Angular APIs to schedule change detection. These APIs include:\n *\n * - `ChangeDetectorRef.markForCheck`\n * - `ComponentRef.setInput`\n * - updating a signal that is read in a template\n * - when bound host or template listeners are triggered\n * - attaching a view that was marked dirty by one of the above\n * - removing a view\n * - registering a render hook (templates are only refreshed if render hooks do one of the above)\n *\n * @usageNotes\n * ```ts\n * bootstrapApplication(MyApp, {providers: [\n * provideExperimentalZonelessChangeDetection(),\n * ]});\n * ```\n *\n * This API is experimental. Neither the shape, nor the underlying behavior is stable and can change\n * in patch versions. There are known feature gaps and API ergonomic considerations. We will iterate\n * on the exact API based on the feedback and our understanding of the problem and solution space.\n *\n * @publicApi\n * @experimental\n * @see [bootstrapApplication](/api/platform-browser/bootstrapApplication)\n */\nfunction provideExperimentalZonelessChangeDetection() {\n performanceMarkFeature('NgZoneless');\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && typeof Zone !== 'undefined' && Zone) {\n const message = formatRuntimeError(914 /* RuntimeErrorCode.UNEXPECTED_ZONEJS_PRESENT_IN_ZONELESS_MODE */, `The application is using zoneless change detection, but is still loading Zone.js. ` +\n `Consider removing Zone.js to get the full benefits of zoneless. ` +\n `In applications using the Angular CLI, Zone.js is typically included in the \"polyfills\" section of the angular.json file.`);\n console.warn(message);\n }\n return makeEnvironmentProviders([\n { provide: ChangeDetectionScheduler, useExisting: ChangeDetectionSchedulerImpl },\n { provide: NgZone, useClass: NoopNgZone },\n { provide: ZONELESS_ENABLED, useValue: true },\n { provide: SCHEDULE_IN_ROOT_ZONE, useValue: false },\n typeof ngDevMode === 'undefined' || ngDevMode\n ? [{ provide: PROVIDED_ZONELESS, useValue: true }]\n : [],\n ]);\n}\n\n/**\n * Work out the locale from the potential global properties.\n *\n * * Closure Compiler: use `goog.LOCALE`.\n * * Ivy enabled: use `$localize.locale`\n */\nfunction getGlobalLocale() {\n if (typeof ngI18nClosureMode !== 'undefined' &&\n ngI18nClosureMode &&\n typeof goog !== 'undefined' &&\n goog.LOCALE !== 'en') {\n // * The default `goog.LOCALE` value is `en`, while Angular used `en-US`.\n // * In order to preserve backwards compatibility, we use Angular default value over\n // Closure Compiler's one.\n return goog.LOCALE;\n }\n else {\n // KEEP `typeof $localize !== 'undefined' && $localize.locale` IN SYNC WITH THE LOCALIZE\n // COMPILE-TIME INLINER.\n //\n // * During compile time inlining of translations the expression will be replaced\n // with a string literal that is the current locale. Other forms of this expression are not\n // guaranteed to be replaced.\n //\n // * During runtime translation evaluation, the developer is required to set `$localize.locale`\n // if required, or just to provide their own `LOCALE_ID` provider.\n return (typeof $localize !== 'undefined' && $localize.locale) || DEFAULT_LOCALE_ID;\n }\n}\n/**\n * Provide this token to set the locale of your application.\n * It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,\n * DecimalPipe and PercentPipe) and by ICU expressions.\n *\n * See the [i18n guide](guide/i18n/locale-id) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```ts\n * import { LOCALE_ID } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * providers: [{provide: LOCALE_ID, useValue: 'en-US' }]\n * });\n * ```\n *\n * @publicApi\n */\nconst LOCALE_ID = new InjectionToken(ngDevMode ? 'LocaleId' : '', {\n providedIn: 'root',\n factory: () => inject(LOCALE_ID, InjectFlags.Optional | InjectFlags.SkipSelf) || getGlobalLocale(),\n});\n/**\n * Provide this token to set the default currency code your application uses for\n * CurrencyPipe when there is no currency code passed into it. This is only used by\n * CurrencyPipe and has no relation to locale currency. Defaults to USD if not configured.\n *\n * See the [i18n guide](guide/i18n/locale-id) for more information.\n *\n * <div class=\"docs-alert docs-alert-helpful\">\n *\n * **Deprecation notice:**\n *\n * The default currency code is currently always `USD` but this is deprecated from v9.\n *\n * **In v10 the default currency code will be taken from the current locale.**\n *\n * If you need the previous behavior then set it by creating a `DEFAULT_CURRENCY_CODE` provider in\n * your application `NgModule`:\n *\n * ```ts\n * {provide: DEFAULT_CURRENCY_CODE, useValue: 'USD'}\n * ```\n *\n * </div>\n *\n * @usageNotes\n * ### Example\n *\n * ```ts\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * providers: [{provide: DEFAULT_CURRENCY_CODE, useValue: 'EUR' }]\n * });\n * ```\n *\n * @publicApi\n */\nconst DEFAULT_CURRENCY_CODE = new InjectionToken(ngDevMode ? 'DefaultCurrencyCode' : '', {\n providedIn: 'root',\n factory: () => USD_CURRENCY_CODE,\n});\n/**\n * Use this token at bootstrap to provide the content of your translation file (`xtb`,\n * `xlf` or `xlf2`) when you want to translate your application in another language.\n *\n * See the [i18n guide](guide/i18n/merge) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```ts\n * import { TRANSLATIONS } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * // content of your translation file\n * const translations = '....';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * providers: [{provide: TRANSLATIONS, useValue: translations }]\n * });\n * ```\n *\n * @publicApi\n */\nconst TRANSLATIONS = new InjectionToken(ngDevMode ? 'Translations' : '');\n/**\n * Provide this token at bootstrap to set the format of your {@link TRANSLATIONS}: `xtb`,\n * `xlf` or `xlf2`.\n *\n * See the [i18n guide](guide/i18n/merge) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```ts\n * import { TRANSLATIONS_FORMAT } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * providers: [{provide: TRANSLATIONS_FORMAT, useValue: 'xlf' }]\n * });\n * ```\n *\n * @publicApi\n */\nconst TRANSLATIONS_FORMAT = new InjectionToken(ngDevMode ? 'TranslationsFormat' : '');\n/**\n * Use this enum at bootstrap as an option of `bootstrapModule` to define the strategy\n * that the compiler should use in case of missing translations:\n * - Error: throw if you have missing translations.\n * - Warning (default): show a warning in the console and/or shell.\n * - Ignore: do nothing.\n *\n * See the [i18n guide](guide/i18n/merge#report-missing-translations) for more information.\n *\n * @usageNotes\n * ### Example\n * ```ts\n * import { MissingTranslationStrategy } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * missingTranslation: MissingTranslationStrategy.Error\n * });\n * ```\n *\n * @publicApi\n */\nvar MissingTranslationStrategy;\n(function (MissingTranslationStrategy) {\n MissingTranslationStrategy[MissingTranslationStrategy[\"Error\"] = 0] = \"Error\";\n MissingTranslationStrategy[MissingTranslationStrategy[\"Warning\"] = 1] = \"Warning\";\n MissingTranslationStrategy[MissingTranslationStrategy[\"Ignore\"] = 2] = \"Ignore\";\n})(MissingTranslationStrategy || (MissingTranslationStrategy = {}));\n\n// A delay in milliseconds before the scan is run after onLoad, to avoid any\n// potential race conditions with other LCP-related functions. This delay\n// happens outside of the main JavaScript execution and will only effect the timing\n// on when the warning becomes visible in the console.\nconst SCAN_DELAY = 200;\nconst OVERSIZED_IMAGE_TOLERANCE = 1200;\nclass ImagePerformanceWarning {\n // Map of full image URLs -> original `ngSrc` values.\n window = null;\n observer = null;\n options = inject(IMAGE_CONFIG);\n isBrowser = inject(PLATFORM_ID) === 'browser';\n lcpImageUrl;\n start() {\n if (!this.isBrowser ||\n typeof PerformanceObserver === 'undefined' ||\n (this.options?.disableImageSizeWarning && this.options?.disableImageLazyLoadWarning)) {\n return;\n }\n this.observer = this.initPerformanceObserver();\n const doc = getDocument();\n const win = doc.defaultView;\n if (typeof win !== 'undefined') {\n this.window = win;\n // Wait to avoid race conditions where LCP image triggers\n // load event before it's recorded by the performance observer\n const waitToScan = () => {\n setTimeout(this.scanImages.bind(this), SCAN_DELAY);\n };\n const setup = () => {\n // Consider the case when the application is created and destroyed multiple times.\n // Typically, applications are created instantly once the page is loaded, and the\n // `window.load` listener is always triggered. However, the `window.load` event will never\n // be fired if the page is loaded, and the application is created later. Checking for\n // `readyState` is the easiest way to determine whether the page has been loaded or not.\n if (doc.readyState === 'complete') {\n waitToScan();\n }\n else {\n this.window?.addEventListener('load', waitToScan, { once: true });\n }\n };\n // Angular doesn't have to run change detection whenever any asynchronous tasks are invoked in\n // the scope of this functionality.\n if (typeof Zone !== 'undefined') {\n Zone.root.run(() => setup());\n }\n else {\n setup();\n }\n }\n }\n ngOnDestroy() {\n this.observer?.disconnect();\n }\n initPerformanceObserver() {\n if (typeof PerformanceObserver === 'undefined') {\n return null;\n }\n const observer = new PerformanceObserver((entryList) => {\n const entries = entryList.getEntries();\n if (entries.length === 0)\n return;\n // We use the latest entry produced by the `PerformanceObserver` as the best\n // signal on which element is actually an LCP one. As an example, the first image to load on\n // a page, by virtue of being the only thing on the page so far, is often a LCP candidate\n // and gets reported by PerformanceObserver, but isn't necessarily the LCP element.\n const lcpElement = entries[entries.length - 1];\n // Cast to `any` due to missing `element` on the `LargestContentfulPaint` type of entry.\n // See https://developer.mozilla.org/en-US/docs/Web/API/LargestContentfulPaint\n const imgSrc = lcpElement.element?.src ?? '';\n // Exclude `data:` and `blob:` URLs, since they are fetched resources.\n if (imgSrc.startsWith('data:') || imgSrc.startsWith('blob:'))\n return;\n this.lcpImageUrl = imgSrc;\n });\n observer.observe({ type: 'largest-contentful-paint', buffered: true });\n return observer;\n }\n scanImages() {\n const images = getDocument().querySelectorAll('img');\n let lcpElementFound, lcpElementLoadedCorrectly = false;\n images.forEach((image) => {\n if (!this.options?.disableImageSizeWarning) {\n // Image elements using the NgOptimizedImage directive are excluded,\n // as that directive has its own version of this check.\n if (!image.getAttribute('ng-img') && this.isOversized(image)) {\n logOversizedImageWarning(image.src);\n }\n }\n if (!this.options?.disableImageLazyLoadWarning && this.lcpImageUrl) {\n if (image.src === this.lcpImageUrl) {\n lcpElementFound = true;\n if (image.loading !== 'lazy' || image.getAttribute('ng-img')) {\n // This variable is set to true and never goes back to false to account\n // for the case where multiple images have the same src url, and some\n // have lazy loading while others don't.\n // Also ignore NgOptimizedImage because there's a different warning for that.\n lcpElementLoadedCorrectly = true;\n }\n }\n }\n });\n if (lcpElementFound &&\n !lcpElementLoadedCorrectly &&\n this.lcpImageUrl &&\n !this.options?.disableImageLazyLoadWarning) {\n logLazyLCPWarning(this.lcpImageUrl);\n }\n }\n isOversized(image) {\n if (!this.window) {\n return false;\n }\n // The `isOversized` check may not be applicable or may require adjustments\n // for several types of image formats or scenarios. Currently, we specify only\n // `svg`, but this may also include `gif` since their quality isn’t tied to\n // dimensions in the same way as raster images.\n const nonOversizedImageExtentions = [\n // SVG images are vector-based, which means they can scale\n // to any size without losing quality.\n '.svg',\n ];\n // Convert it to lowercase because this may have uppercase\n // extensions, such as `IMAGE.SVG`.\n // We fallback to an empty string because `src` may be `undefined`\n // if it is explicitly set to `null` by some third-party code\n // (e.g., `image.src = null`).\n const imageSource = (image.src || '').toLowerCase();\n if (nonOversizedImageExtentions.some((extension) => imageSource.endsWith(extension))) {\n return false;\n }\n const computedStyle = this.window.getComputedStyle(image);\n let renderedWidth = parseFloat(computedStyle.getPropertyValue('width'));\n let renderedHeight = parseFloat(computedStyle.getPropertyValue('height'));\n const boxSizing = computedStyle.getPropertyValue('box-sizing');\n const objectFit = computedStyle.getPropertyValue('object-fit');\n if (objectFit === `cover`) {\n // Object fit cover may indicate a use case such as a sprite sheet where\n // this warning does not apply.\n return false;\n }\n if (boxSizing === 'border-box') {\n // If the image `box-sizing` is set to `border-box`, we adjust the rendered\n // dimensions by subtracting padding values.\n const paddingTop = computedStyle.getPropertyValue('padding-top');\n const paddingRight = computedStyle.getPropertyValue('padding-right');\n const paddingBottom = computedStyle.getPropertyValue('padding-bottom');\n const paddingLeft = computedStyle.getPropertyValue('padding-left');\n renderedWidth -= parseFloat(paddingRight) + parseFloat(paddingLeft);\n renderedHeight -= parseFloat(paddingTop) + parseFloat(paddingBottom);\n }\n const intrinsicWidth = image.naturalWidth;\n const intrinsicHeight = image.naturalHeight;\n const recommendedWidth = this.window.devicePixelRatio * renderedWidth;\n const recommendedHeight = this.window.devicePixelRatio * renderedHeight;\n const oversizedWidth = intrinsicWidth - recommendedWidth >= OVERSIZED_IMAGE_TOLERANCE;\n const oversizedHeight = intrinsicHeight - recommendedHeight >= OVERSIZED_IMAGE_TOLERANCE;\n return oversizedWidth || oversizedHeight;\n }\n static ɵfac = function ImagePerformanceWarning_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ImagePerformanceWarning)(); };\n static ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ImagePerformanceWarning, factory: ImagePerformanceWarning.ɵfac, providedIn: 'root' });\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ImagePerformanceWarning, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], null, null); })();\nfunction logLazyLCPWarning(src) {\n console.warn(formatRuntimeError(-913 /* RuntimeErrorCode.IMAGE_PERFORMANCE_WARNING */, `An image with src ${src} is the Largest Contentful Paint (LCP) element ` +\n `but was given a \"loading\" value of \"lazy\", which can negatively impact ` +\n `application loading performance. This warning can be addressed by ` +\n `changing the loading value of the LCP image to \"eager\", or by using the ` +\n `NgOptimizedImage directive's prioritization utilities. For more ` +\n `information about addressing or disabling this warning, see ` +\n `https://angular.dev/errors/NG0913`));\n}\nfunction logOversizedImageWarning(src) {\n console.warn(formatRuntimeError(-913 /* RuntimeErrorCode.IMAGE_PERFORMANCE_WARNING */, `An image with src ${src} has intrinsic file dimensions much larger than its ` +\n `rendered size. This can negatively impact application loading performance. ` +\n `For more information about addressing or disabling this warning, see ` +\n `https://angular.dev/errors/NG0913`));\n}\n\n/**\n * Internal token that allows to register extra callbacks that should be invoked during the\n * `PlatformRef.destroy` operation. This token is needed to avoid a direct reference to the\n * `PlatformRef` class (i.e. register the callback via `PlatformRef.onDestroy`), thus making the\n * entire class tree-shakeable.\n */\nconst PLATFORM_DESTROY_LISTENERS = new InjectionToken(ngDevMode ? 'PlatformDestroyListeners' : '');\n\n/**\n * InjectionToken to control root component bootstrap behavior.\n *\n * This token is primarily used in Angular's server-side rendering (SSR) scenarios,\n * particularly by the `@angular/ssr` package, to manage whether the root component\n * should be bootstrapped during the application initialization process.\n *\n * ## Purpose:\n * During SSR route extraction, setting this token to `false` prevents Angular from\n * bootstrapping the root component. This avoids unnecessary component rendering,\n * enabling route extraction without requiring additional APIs or triggering\n * component logic.\n *\n * ## Behavior:\n * - **`false`**: Prevents the root component from being bootstrapped.\n * - **`true`** (default): Proceeds with the normal root component bootstrap process.\n *\n * This mechanism ensures SSR can efficiently separate route extraction logic\n * from component rendering.\n */\nconst ENABLE_ROOT_COMPONENT_BOOTSTRAP = new InjectionToken(ngDevMode ? 'ENABLE_ROOT_COMPONENT_BOOTSTRAP' : '');\nfunction isApplicationBootstrapConfig(config) {\n return !config.moduleRef;\n}\nfunction bootstrap(config) {\n const envInjector = isApplicationBootstrapConfig(config)\n ? config.r3Injector\n : config.moduleRef.injector;\n const ngZone = envInjector.get(NgZone);\n return ngZone.run(() => {\n if (isApplicationBootstrapConfig(config)) {\n config.r3Injector.resolveInjectorInitializers();\n }\n else {\n config.moduleRef.resolveInjectorInitializers();\n }\n const exceptionHandler = envInjector.get(ErrorHandler, null);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (exceptionHandler === null) {\n const errorMessage = isApplicationBootstrapConfig(config)\n ? 'No `ErrorHandler` found in the Dependency Injection tree.'\n : 'No ErrorHandler. Is platform module (BrowserModule) included';\n throw new RuntimeError(402 /* RuntimeErrorCode.MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP */, errorMessage);\n }\n if (envInjector.get(PROVIDED_ZONELESS) && envInjector.get(PROVIDED_NG_ZONE)) {\n throw new RuntimeError(408 /* RuntimeErrorCode.PROVIDED_BOTH_ZONE_AND_ZONELESS */, 'Invalid change detection configuration: ' +\n 'provideZoneChangeDetection and provideExperimentalZonelessChangeDetection cannot be used together.');\n }\n }\n let onErrorSubscription;\n ngZone.runOutsideAngular(() => {\n onErrorSubscription = ngZone.onError.subscribe({\n next: (error) => {\n exceptionHandler.handleError(error);\n },\n });\n });\n // If the whole platform is destroyed, invoke the `destroy` method\n // for all bootstrapped applications as well.\n if (isApplicationBootstrapConfig(config)) {\n const destroyListener = () => envInjector.destroy();\n const onPlatformDestroyListeners = config.platformInjector.get(PLATFORM_DESTROY_LISTENERS);\n onPlatformDestroyListeners.add(destroyListener);\n envInjector.onDestroy(() => {\n onErrorSubscription.unsubscribe();\n onPlatformDestroyListeners.delete(destroyListener);\n });\n }\n else {\n const destroyListener = () => config.moduleRef.destroy();\n const onPlatformDestroyListeners = config.platformInjector.get(PLATFORM_DESTROY_LISTENERS);\n onPlatformDestroyListeners.add(destroyListener);\n config.moduleRef.onDestroy(() => {\n remove(config.allPlatformModules, config.moduleRef);\n onErrorSubscription.unsubscribe();\n onPlatformDestroyListeners.delete(destroyListener);\n });\n }\n return _callAndReportToErrorHandler(exceptionHandler, ngZone, () => {\n const initStatus = envInjector.get(ApplicationInitStatus);\n initStatus.runInitializers();\n return initStatus.donePromise.then(() => {\n // If the `LOCALE_ID` provider is defined at bootstrap then we set the value for ivy\n const localeId = envInjector.get(LOCALE_ID, DEFAULT_LOCALE_ID);\n setLocaleId(localeId || DEFAULT_LOCALE_ID);\n const enableRootComponentBoostrap = envInjector.get(ENABLE_ROOT_COMPONENT_BOOTSTRAP, true);\n if (!enableRootComponentBoostrap) {\n if (isApplicationBootstrapConfig(config)) {\n return envInjector.get(ApplicationRef);\n }\n config.allPlatformModules.push(config.moduleRef);\n return config.moduleRef;\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const imagePerformanceService = envInjector.get(ImagePerformanceWarning);\n imagePerformanceService.start();\n }\n if (isApplicationBootstrapConfig(config)) {\n const appRef = envInjector.get(ApplicationRef);\n if (config.rootComponent !== undefined) {\n appRef.bootstrap(config.rootComponent);\n }\n return appRef;\n }\n else {\n moduleDoBootstrap(config.moduleRef, config.allPlatformModules);\n return config.moduleRef;\n }\n });\n });\n });\n}\nfunction moduleDoBootstrap(moduleRef, allPlatformModules) {\n const appRef = moduleRef.injector.get(ApplicationRef);\n if (moduleRef._bootstrapComponents.length > 0) {\n moduleRef._bootstrapComponents.forEach((f) => appRef.bootstrap(f));\n }\n else if (moduleRef.instance.ngDoBootstrap) {\n moduleRef.instance.ngDoBootstrap(appRef);\n }\n else {\n throw new RuntimeError(-403 /* RuntimeErrorCode.BOOTSTRAP_COMPONENTS_NOT_FOUND */, ngDevMode &&\n `The module ${stringify(moduleRef.instance.constructor)} was bootstrapped, ` +\n `but it does not declare \"@NgModule.bootstrap\" components nor a \"ngDoBootstrap\" method. ` +\n `Please define one of these.`);\n }\n allPlatformModules.push(moduleRef);\n}\n\n/**\n * The Angular platform is the entry point for Angular on a web page.\n * Each page has exactly one platform. Services (such as reflection) which are common\n * to every Angular application running on the page are bound in its scope.\n * A page's platform is initialized implicitly when a platform is created using a platform\n * factory such as `PlatformBrowser`, or explicitly by calling the `createPlatform()` function.\n *\n * @publicApi\n */\nclass PlatformRef {\n _injector;\n _modules = [];\n _destroyListeners = [];\n _destroyed = false;\n /** @internal */\n constructor(_injector) {\n this._injector = _injector;\n }\n /**\n * Creates an instance of an `@NgModule` for the given platform.\n *\n * @deprecated Passing NgModule factories as the `PlatformRef.bootstrapModuleFactory` function\n * argument is deprecated. Use the `PlatformRef.bootstrapModule` API instead.\n */\n bootstrapModuleFactory(moduleFactory, options) {\n const scheduleInRootZone = options?.scheduleInRootZone;\n const ngZoneFactory = () => getNgZone(options?.ngZone, {\n ...getNgZoneOptions({\n eventCoalescing: options?.ngZoneEventCoalescing,\n runCoalescing: options?.ngZoneRunCoalescing,\n }),\n scheduleInRootZone,\n });\n const ignoreChangesOutsideZone = options?.ignoreChangesOutsideZone;\n const allAppProviders = [\n internalProvideZoneChangeDetection({\n ngZoneFactory,\n ignoreChangesOutsideZone,\n }),\n { provide: ChangeDetectionScheduler, useExisting: ChangeDetectionSchedulerImpl },\n ];\n const moduleRef = createNgModuleRefWithProviders(moduleFactory.moduleType, this.injector, allAppProviders);\n return bootstrap({\n moduleRef,\n allPlatformModules: this._modules,\n platformInjector: this.injector,\n });\n }\n /**\n * Creates an instance of an `@NgModule` for a given platform.\n *\n * @usageNotes\n * ### Simple Example\n *\n * ```ts\n * @NgModule({\n * imports: [BrowserModule]\n * })\n * class MyModule {}\n *\n * let moduleRef = platformBrowser().bootstrapModule(MyModule);\n * ```\n *\n */\n bootstrapModule(moduleType, compilerOptions = []) {\n const options = optionsReducer({}, compilerOptions);\n return compileNgModuleFactory(this.injector, options, moduleType).then((moduleFactory) => this.bootstrapModuleFactory(moduleFactory, options));\n }\n /**\n * Registers a listener to be called when the platform is destroyed.\n */\n onDestroy(callback) {\n this._destroyListeners.push(callback);\n }\n /**\n * Retrieves the platform {@link Injector}, which is the parent injector for\n * every Angular application on the page and provides singleton providers.\n */\n get injector() {\n return this._injector;\n }\n /**\n * Destroys the current Angular platform and all Angular applications on the page.\n * Destroys all modules and listeners registered with the platform.\n */\n destroy() {\n if (this._destroyed) {\n throw new RuntimeError(404 /* RuntimeErrorCode.PLATFORM_ALREADY_DESTROYED */, ngDevMode && 'The platform has already been destroyed!');\n }\n this._modules.slice().forEach((module) => module.destroy());\n this._destroyListeners.forEach((listener) => listener());\n const destroyListeners = this._injector.get(PLATFORM_DESTROY_LISTENERS, null);\n if (destroyListeners) {\n destroyListeners.forEach((listener) => listener());\n destroyListeners.clear();\n }\n this._destroyed = true;\n }\n /**\n * Indicates whether this instance was destroyed.\n */\n get destroyed() {\n return this._destroyed;\n }\n static ɵfac = function PlatformRef_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PlatformRef)(ɵɵinject(Injector)); };\n static ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: PlatformRef, factory: PlatformRef.ɵfac, providedIn: 'platform' });\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(PlatformRef, [{\n type: Injectable,\n args: [{ providedIn: 'platform' }]\n }], () => [{ type: Injector }], null); })();\n\nlet _platformInjector = null;\n/**\n * Internal token to indicate whether having multiple bootstrapped platform should be allowed (only\n * one bootstrapped platform is allowed by default). This token helps to support SSR scenarios.\n */\nconst ALLOW_MULTIPLE_PLATFORMS = new InjectionToken(ngDevMode ? 'AllowMultipleToken' : '');\n/**\n * Creates a platform.\n * Platforms must be created on launch using this function.\n *\n * @publicApi\n */\nfunction createPlatform(injector) {\n if (_platformInjector && !_platformInjector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {\n throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, ngDevMode && 'There can be only one platform. Destroy the previous one to create a new one.');\n }\n publishDefaultGlobalUtils();\n publishSignalConfiguration();\n _platformInjector = injector;\n const platform = injector.get(PlatformRef);\n runPlatformInitializers(injector);\n return platform;\n}\n/**\n * Creates a factory for a platform. Can be used to provide or override `Providers` specific to\n * your application's runtime needs, such as `PLATFORM_INITIALIZER` and `PLATFORM_ID`.\n * @param parentPlatformFactory Another platform factory to modify. Allows you to compose factories\n * to build up configurations that might be required by different libraries or parts of the\n * application.\n * @param name Identifies the new platform factory.\n * @param providers A set of dependency providers for platforms created with the new factory.\n *\n * @publicApi\n */\nfunction createPlatformFactory(parentPlatformFactory, name, providers = []) {\n const desc = `Platform: ${name}`;\n const marker = new InjectionToken(desc);\n return (extraProviders = []) => {\n let platform = getPlatform();\n if (!platform || platform.injector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {\n const platformProviders = [\n ...providers,\n ...extraProviders,\n { provide: marker, useValue: true },\n ];\n if (parentPlatformFactory) {\n parentPlatformFactory(platformProviders);\n }\n else {\n createPlatform(createPlatformInjector(platformProviders, desc));\n }\n }\n return assertPlatform(marker);\n };\n}\n/**\n * Helper function to create an instance of a platform injector (that maintains the 'platform'\n * scope).\n */\nfunction createPlatformInjector(providers = [], name) {\n return Injector.create({\n name,\n providers: [\n { provide: INJECTOR_SCOPE, useValue: 'platform' },\n { provide: PLATFORM_DESTROY_LISTENERS, useValue: new Set([() => (_platformInjector = null)]) },\n ...providers,\n ],\n });\n}\n/**\n * Checks that there is currently a platform that contains the given token as a provider.\n *\n * @publicApi\n */\nfunction assertPlatform(requiredToken) {\n const platform = getPlatform();\n if (!platform) {\n throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode && 'No platform exists!');\n }\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n !platform.injector.get(requiredToken, null)) {\n throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, 'A platform with a different configuration has been created. Please destroy it first.');\n }\n return platform;\n}\n/**\n * Returns the current platform.\n *\n * @publicApi\n */\nfunction getPlatform() {\n return _platformInjector?.get(PlatformRef) ?? null;\n}\n/**\n * Destroys the current Angular platform and all Angular applications on the page.\n * Destroys all modules and listeners registered with the platform.\n *\n * @publicApi\n */\nfunction destroyPlatform() {\n getPlatform()?.destroy();\n}\n/**\n * The goal of this function is to bootstrap a platform injector,\n * but avoid referencing `PlatformRef` class.\n * This function is needed for bootstrapping a Standalone Component.\n */\nfunction createOrReusePlatformInjector(providers = []) {\n // If a platform injector already exists, it means that the platform\n // is already bootstrapped and no additional actions are required.\n if (_platformInjector)\n return _platformInjector;\n publishDefaultGlobalUtils();\n // Otherwise, setup a new platform injector and run platform initializers.\n const injector = createPlatformInjector(providers);\n _platformInjector = injector;\n publishSignalConfiguration();\n runPlatformInitializers(injector);\n return injector;\n}\n/**\n * @description\n * This function is used to provide initialization functions that will be executed upon\n * initialization of the platform injector.\n *\n * Note that the provided initializer is run in the injection context.\n *\n * Previously, this was achieved using the `PLATFORM_INITIALIZER` token which is now deprecated.\n *\n * @see {@link PLATFORM_INITIALIZER}\n *\n * @publicApi\n */\nfunction providePlatformInitializer(initializerFn) {\n return makeEnvironmentProviders([\n {\n provide: PLATFORM_INITIALIZER,\n useValue: initializerFn,\n multi: true,\n },\n ]);\n}\nfunction runPlatformInitializers(injector) {\n const inits = injector.get(PLATFORM_INITIALIZER, null);\n runInInjectionContext(injector, () => {\n inits?.forEach((init) => init());\n });\n}\n\n/**\n * Used to periodically verify no expressions have changed after they were checked.\n *\n * @param options Used to configure when the check will execute.\n * - `interval` will periodically run exhaustive `checkNoChanges` on application views\n * - `useNgZoneOnStable` will use ZoneJS to determine when change detection might have run\n * in an application using ZoneJS to drive change detection. When the `NgZone.onStable` would\n * have emitted, all views attached to the `ApplicationRef` are checked for changes.\n * - 'exhaustive' means that all views attached to `ApplicationRef` and all the descendants of those views will be\n * checked for changes (excluding those subtrees which are detached via `ChangeDetectorRef.detach()`).\n * This is useful because the check that runs after regular change detection does not work for components using `ChangeDetectionStrategy.OnPush`.\n * This check is will surface any existing errors hidden by `OnPush` components. By default, this check is exhaustive\n * and will always check all views, regardless of their \"dirty\" state and `ChangeDetectionStrategy`.\n *\n * When the `useNgZoneOnStable` option is `true`, this function will provide its own `NgZone` implementation and needs\n * to come after any other `NgZone` provider, including `provideZoneChangeDetection()` and `provideExperimentalZonelessChangeDetection()`.\n *\n * @experimental\n * @publicApi\n */\nfunction provideExperimentalCheckNoChangesForDebug(options) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (options.interval === undefined && !options.useNgZoneOnStable) {\n throw new Error('Must provide one of `useNgZoneOnStable` or `interval`');\n }\n const checkNoChangesMode = options?.exhaustive === false\n ? CheckNoChangesMode.OnlyDirtyViews\n : CheckNoChangesMode.Exhaustive;\n return makeEnvironmentProviders([\n options?.useNgZoneOnStable\n ? { provide: NgZone, useFactory: () => new DebugNgZoneForCheckNoChanges(checkNoChangesMode) }\n : [],\n options?.interval !== undefined\n ? exhaustiveCheckNoChangesInterval(options.interval, checkNoChangesMode)\n : [],\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useValue: () => {\n if (options?.useNgZoneOnStable &&\n !(inject(NgZone) instanceof DebugNgZoneForCheckNoChanges)) {\n throw new Error('`provideExperimentalCheckNoChangesForDebug` with `useNgZoneOnStable` must be after any other provider for `NgZone`.');\n }\n },\n },\n ]);\n }\n else {\n return makeEnvironmentProviders([]);\n }\n}\nclass DebugNgZoneForCheckNoChanges extends NgZone {\n checkNoChangesMode;\n applicationRef;\n scheduler;\n errorHandler;\n injector = inject(EnvironmentInjector);\n constructor(checkNoChangesMode) {\n const zonelessEnabled = inject(ZONELESS_ENABLED);\n // Use coalescing to ensure we aren't ever running this check synchronously\n super({\n shouldCoalesceEventChangeDetection: true,\n shouldCoalesceRunChangeDetection: zonelessEnabled,\n });\n this.checkNoChangesMode = checkNoChangesMode;\n if (zonelessEnabled) {\n // prevent emits to ensure code doesn't rely on these\n this.onMicrotaskEmpty.emit = () => { };\n this.onStable.emit = () => {\n this.scheduler ||= this.injector.get(ChangeDetectionSchedulerImpl);\n if (this.scheduler.pendingRenderTaskId || this.scheduler.runningTick) {\n return;\n }\n this.checkApplicationViews();\n };\n this.onUnstable.emit = () => { };\n }\n else {\n this.runOutsideAngular(() => {\n this.onStable.subscribe(() => {\n this.checkApplicationViews();\n });\n });\n }\n }\n checkApplicationViews() {\n this.applicationRef ||= this.injector.get(ApplicationRef);\n for (const view of this.applicationRef.allViews) {\n try {\n checkNoChangesInternal(view._lView, this.checkNoChangesMode, view.notifyErrorHandler);\n }\n catch (e) {\n this.errorHandler ||= this.injector.get(ErrorHandler);\n this.errorHandler.handleError(e);\n }\n }\n }\n}\nfunction exhaustiveCheckNoChangesInterval(interval, checkNoChangesMode) {\n return {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory: () => {\n const applicationRef = inject(ApplicationRef);\n const errorHandler = inject(ErrorHandler);\n const scheduler = inject(ChangeDetectionSchedulerImpl);\n const ngZone = inject(NgZone);\n return () => {\n function scheduleCheckNoChanges() {\n ngZone.runOutsideAngular(() => {\n setTimeout(() => {\n if (applicationRef.destroyed) {\n return;\n }\n if (scheduler.pendingRenderTaskId || scheduler.runningTick) {\n scheduleCheckNoChanges();\n return;\n }\n for (const view of applicationRef.allViews) {\n try {\n checkNoChangesInternal(view._lView, checkNoChangesMode, view.notifyErrorHandler);\n }\n catch (e) {\n errorHandler.handleError(e);\n }\n }\n scheduleCheckNoChanges();\n }, interval);\n });\n }\n scheduleCheckNoChanges();\n };\n },\n };\n}\n\n/**\n * Returns whether Angular is in development mode.\n *\n * By default, this is true, unless `enableProdMode` is invoked prior to calling this method or the\n * application is built using the Angular CLI with the `optimization` option.\n * @see {@link cli/build ng build}\n *\n * @publicApi\n */\nfunction isDevMode() {\n return typeof ngDevMode === 'undefined' || !!ngDevMode;\n}\n/**\n * Disable Angular's development mode, which turns off assertions and other\n * checks within the framework.\n *\n * One important assertion this disables verifies that a change detection pass\n * does not result in additional changes to any bindings (also known as\n * unidirectional data flow).\n *\n * Using this method is discouraged as the Angular CLI will set production mode when using the\n * `optimization` option.\n * @see {@link cli/build ng build}\n *\n * @publicApi\n */\nfunction enableProdMode() {\n // The below check is there so when ngDevMode is set via terser\n // `global['ngDevMode'] = false;` is also dropped.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _global['ngDevMode'] = false;\n }\n}\n\n// Public API for render\n\n/**\n * Returns the NgModuleFactory with the given id (specified using [@NgModule.id\n * field](api/core/NgModule#id)), if it exists and has been loaded. Factories for NgModules that do\n * not specify an `id` cannot be retrieved. Throws if an NgModule cannot be found.\n * @publicApi\n * @deprecated Use `getNgModuleById` instead.\n */\nfunction getModuleFactory(id) {\n const type = getRegisteredNgModuleType(id);\n if (!type)\n throw noModuleError(id);\n return new NgModuleFactory(type);\n}\n/**\n * Returns the NgModule class with the given id (specified using [@NgModule.id\n * field](api/core/NgModule#id)), if it exists and has been loaded. Classes for NgModules that do\n * not specify an `id` cannot be retrieved. Throws if an NgModule cannot be found.\n * @publicApi\n */\nfunction getNgModuleById(id) {\n const type = getRegisteredNgModuleType(id);\n if (!type)\n throw noModuleError(id);\n return type;\n}\nfunction noModuleError(id) {\n return new Error(`No module with ID ${id} loaded`);\n}\n\n/**\n * Base class that provides change detection functionality.\n * A change-detection tree collects all views that are to be checked for changes.\n * Use the methods to add and remove views from the tree, initiate change-detection,\n * and explicitly mark views as _dirty_, meaning that they have changed and need to be re-rendered.\n *\n * @see [Using change detection hooks](guide/components/lifecycle#using-change-detection-hooks)\n * @see [Defining custom change detection](guide/components/lifecycle#defining-custom-change-detection)\n *\n * @usageNotes\n *\n * The following examples demonstrate how to modify default change-detection behavior\n * to perform explicit detection when needed.\n *\n * ### Use `markForCheck()` with `CheckOnce` strategy\n *\n * The following example sets the `OnPush` change-detection strategy for a component\n * (`CheckOnce`, rather than the default `CheckAlways`), then forces a second check\n * after an interval.\n *\n * {@example core/ts/change_detect/change-detection.ts region='mark-for-check'}\n *\n * ### Detach change detector to limit how often check occurs\n *\n * The following example defines a component with a large list of read-only data\n * that is expected to change constantly, many times per second.\n * To improve performance, we want to check and update the list\n * less often than the changes actually occur. To do that, we detach\n * the component's change detector and perform an explicit local check every five seconds.\n *\n * {@example core/ts/change_detect/change-detection.ts region='detach'}\n *\n *\n * ### Reattaching a detached component\n *\n * The following example creates a component displaying live data.\n * The component detaches its change detector from the main change detector tree\n * when the `live` property is set to false, and reattaches it when the property\n * becomes true.\n *\n * {@example core/ts/change_detect/change-detection.ts region='reattach'}\n *\n * @publicApi\n */\nclass ChangeDetectorRef {\n /**\n * @internal\n * @nocollapse\n */\n static __NG_ELEMENT_ID__ = injectChangeDetectorRef;\n}\n/** Returns a ChangeDetectorRef (a.k.a. a ViewRef) */\nfunction injectChangeDetectorRef(flags) {\n return createViewRef(getCurrentTNode(), getLView(), (flags & 16 /* InternalInjectFlags.ForPipe */) === 16 /* InternalInjectFlags.ForPipe */);\n}\n/**\n * Creates a ViewRef and stores it on the injector as ChangeDetectorRef (public alias).\n *\n * @param tNode The node that is requesting a ChangeDetectorRef\n * @param lView The view to which the node belongs\n * @param isPipe Whether the view is being injected into a pipe.\n * @returns The ChangeDetectorRef to use\n */\nfunction createViewRef(tNode, lView, isPipe) {\n if (isComponentHost(tNode) && !isPipe) {\n // The LView represents the location where the component is declared.\n // Instead we want the LView for the component View and so we need to look it up.\n const componentView = getComponentLViewByIndex(tNode.index, lView); // look down\n return new ViewRef$1(componentView, componentView);\n }\n else if (tNode.type &\n (3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 32 /* TNodeType.Icu */ | 128 /* TNodeType.LetDeclaration */)) {\n // The LView represents the location where the injection is requested from.\n // We need to locate the containing LView (in case where the `lView` is an embedded view)\n const hostComponentView = lView[DECLARATION_COMPONENT_VIEW]; // look up\n return new ViewRef$1(hostComponentView, lView);\n }\n return null;\n}\n\n/**\n * Represents an Angular view.\n *\n * @see [Change detection usage](/api/core/ChangeDetectorRef?tab=usage-notes)\n *\n * @publicApi\n */\nclass ViewRef extends ChangeDetectorRef {\n}\n/**\n * Represents an Angular view in a view container.\n * An embedded view can be referenced from a component\n * other than the hosting component whose template defines it, or it can be defined\n * independently by a `TemplateRef`.\n *\n * Properties of elements in a view can change, but the structure (number and order) of elements in\n * a view cannot. Change the structure of elements by inserting, moving, or\n * removing nested views in a view container.\n *\n * @see {@link ViewContainerRef}\n *\n * @usageNotes\n *\n * The following template breaks down into two separate `TemplateRef` instances,\n * an outer one and an inner one.\n *\n * ```html\n * Count: {{items.length}}\n * <ul>\n * <li *ngFor=\"let item of items\">{{item}}</li>\n * </ul>\n * ```\n *\n * This is the outer `TemplateRef`:\n *\n * ```html\n * Count: {{items.length}}\n * <ul>\n * <ng-template ngFor let-item [ngForOf]=\"items\"></ng-template>\n * </ul>\n * ```\n *\n * This is the inner `TemplateRef`:\n *\n * ```html\n * <li>{{item}}</li>\n * ```\n *\n * The outer and inner `TemplateRef` instances are assembled into views as follows:\n *\n * ```html\n * <!-- ViewRef: outer-0 -->\n * Count: 2\n * <ul>\n * <ng-template view-container-ref></ng-template>\n * <!-- ViewRef: inner-1 --><li>first</li><!-- /ViewRef: inner-1 -->\n * <!-- ViewRef: inner-2 --><li>second</li><!-- /ViewRef: inner-2 -->\n * </ul>\n * <!-- /ViewRef: outer-0 -->\n * ```\n * @publicApi\n */\nclass EmbeddedViewRef extends ViewRef {\n}\n\n// Public API for compiler\n\n// This file exists for easily patching NgModuleFactoryLoader in g3\nvar ng_module_factory_loader_impl = {};\n\n/**\n * @publicApi\n */\nclass DebugEventListener {\n name;\n callback;\n constructor(name, callback) {\n this.name = name;\n this.callback = callback;\n }\n}\n/**\n * @publicApi\n */\nfunction asNativeElements(debugEls) {\n return debugEls.map((el) => el.nativeElement);\n}\n/**\n * @publicApi\n */\nclass DebugNode {\n /**\n * The underlying DOM node.\n */\n nativeNode;\n constructor(nativeNode) {\n this.nativeNode = nativeNode;\n }\n /**\n * The `DebugElement` parent. Will be `null` if this is the root element.\n */\n get parent() {\n const parent = this.nativeNode.parentNode;\n return parent ? new DebugElement(parent) : null;\n }\n /**\n * The host dependency injector. For example, the root element's component instance injector.\n */\n get injector() {\n return getInjector(this.nativeNode);\n }\n /**\n * The element's own component instance, if it has one.\n */\n get componentInstance() {\n const nativeElement = this.nativeNode;\n return (nativeElement && (getComponent(nativeElement) || getOwningComponent(nativeElement)));\n }\n /**\n * An object that provides parent context for this element. Often an ancestor component instance\n * that governs this element.\n *\n * When an element is repeated within *ngFor, the context is an `NgForOf` whose `$implicit`\n * property is the value of the row instance value. For example, the `hero` in `*ngFor=\"let hero\n * of heroes\"`.\n */\n get context() {\n return getComponent(this.nativeNode) || getContext(this.nativeNode);\n }\n /**\n * The callbacks attached to the component's @Output properties and/or the element's event\n * properties.\n */\n get listeners() {\n return getListeners(this.nativeNode).filter((listener) => listener.type === 'dom');\n }\n /**\n * Dictionary of objects associated with template local variables (e.g. #foo), keyed by the local\n * variable name.\n */\n get references() {\n return getLocalRefs(this.nativeNode);\n }\n /**\n * This component's injector lookup tokens. Includes the component itself plus the tokens that the\n * component lists in its providers metadata.\n */\n get providerTokens() {\n return getInjectionTokens(this.nativeNode);\n }\n}\n/**\n * @publicApi\n *\n * @see [Component testing scenarios](guide/testing/components-scenarios)\n * @see [Basics of testing components](guide/testing/components-basics)\n * @see [Testing utility APIs](guide/testing/utility-apis)\n */\nclass DebugElement extends DebugNode {\n constructor(nativeNode) {\n ngDevMode && assertDomNode(nativeNode);\n super(nativeNode);\n }\n /**\n * The underlying DOM element at the root of the component.\n */\n get nativeElement() {\n return this.nativeNode.nodeType == Node.ELEMENT_NODE ? this.nativeNode : null;\n }\n /**\n * The element tag name, if it is an element.\n */\n get name() {\n const context = getLContext(this.nativeNode);\n const lView = context ? context.lView : null;\n if (lView !== null) {\n const tData = lView[TVIEW].data;\n const tNode = tData[context.nodeIndex];\n return tNode.value;\n }\n else {\n return this.nativeNode.nodeName;\n }\n }\n /**\n * Gets a map of property names to property values for an element.\n *\n * This map includes:\n * - Regular property bindings (e.g. `[id]=\"id\"`)\n * - Host property bindings (e.g. `host: { '[id]': \"id\" }`)\n * - Interpolated property bindings (e.g. `id=\"{{ value }}\")\n *\n * It does not include:\n * - input property bindings (e.g. `[myCustomInput]=\"value\"`)\n * - attribute bindings (e.g. `[attr.role]=\"menu\"`)\n */\n get properties() {\n const context = getLContext(this.nativeNode);\n const lView = context ? context.lView : null;\n if (lView === null) {\n return {};\n }\n const tData = lView[TVIEW].data;\n const tNode = tData[context.nodeIndex];\n const properties = {};\n // Collect properties from the DOM.\n copyDomProperties(this.nativeElement, properties);\n // Collect properties from the bindings. This is needed for animation renderer which has\n // synthetic properties which don't get reflected into the DOM.\n collectPropertyBindings(properties, tNode, lView, tData);\n return properties;\n }\n /**\n * A map of attribute names to attribute values for an element.\n */\n // TODO: replace null by undefined in the return type\n get attributes() {\n const attributes = {};\n const element = this.nativeElement;\n if (!element) {\n return attributes;\n }\n const context = getLContext(element);\n const lView = context ? context.lView : null;\n if (lView === null) {\n return {};\n }\n const tNodeAttrs = lView[TVIEW].data[context.nodeIndex].attrs;\n const lowercaseTNodeAttrs = [];\n // For debug nodes we take the element's attribute directly from the DOM since it allows us\n // to account for ones that weren't set via bindings (e.g. ViewEngine keeps track of the ones\n // that are set through `Renderer2`). The problem is that the browser will lowercase all names,\n // however since we have the attributes already on the TNode, we can preserve the case by going\n // through them once, adding them to the `attributes` map and putting their lower-cased name\n // into an array. Afterwards when we're going through the native DOM attributes, we can check\n // whether we haven't run into an attribute already through the TNode.\n if (tNodeAttrs) {\n let i = 0;\n while (i < tNodeAttrs.length) {\n const attrName = tNodeAttrs[i];\n // Stop as soon as we hit a marker. We only care about the regular attributes. Everything\n // else will be handled below when we read the final attributes off the DOM.\n if (typeof attrName !== 'string')\n break;\n const attrValue = tNodeAttrs[i + 1];\n attributes[attrName] = attrValue;\n lowercaseTNodeAttrs.push(attrName.toLowerCase());\n i += 2;\n }\n }\n for (const attr of element.attributes) {\n // Make sure that we don't assign the same attribute both in its\n // case-sensitive form and the lower-cased one from the browser.\n if (!lowercaseTNodeAttrs.includes(attr.name)) {\n attributes[attr.name] = attr.value;\n }\n }\n return attributes;\n }\n /**\n * The inline styles of the DOM element.\n */\n // TODO: replace null by undefined in the return type\n get styles() {\n const element = this.nativeElement;\n return (element?.style ?? {});\n }\n /**\n * A map containing the class names on the element as keys.\n *\n * This map is derived from the `className` property of the DOM element.\n *\n * Note: The values of this object will always be `true`. The class key will not appear in the KV\n * object if it does not exist on the element.\n *\n * @see [Element.className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className)\n */\n get classes() {\n const result = {};\n const element = this.nativeElement;\n // SVG elements return an `SVGAnimatedString` instead of a plain string for the `className`.\n const className = element.className;\n const classes = typeof className !== 'string' ? className.baseVal.split(' ') : className.split(' ');\n classes.forEach((value) => (result[value] = true));\n return result;\n }\n /**\n * The `childNodes` of the DOM element as a `DebugNode` array.\n *\n * @see [Node.childNodes](https://developer.mozilla.org/en-US/docs/Web/API/Node/childNodes)\n */\n get childNodes() {\n const childNodes = this.nativeNode.childNodes;\n const children = [];\n for (let i = 0; i < childNodes.length; i++) {\n const element = childNodes[i];\n children.push(getDebugNode(element));\n }\n return children;\n }\n /**\n * The immediate `DebugElement` children. Walk the tree by descending through `children`.\n */\n get children() {\n const nativeElement = this.nativeElement;\n if (!nativeElement)\n return [];\n const childNodes = nativeElement.children;\n const children = [];\n for (let i = 0; i < childNodes.length; i++) {\n const element = childNodes[i];\n children.push(getDebugNode(element));\n }\n return children;\n }\n /**\n * @returns the first `DebugElement` that matches the predicate at any depth in the subtree.\n */\n query(predicate) {\n const results = this.queryAll(predicate);\n return results[0] || null;\n }\n /**\n * @returns All `DebugElement` matches for the predicate at any depth in the subtree.\n */\n queryAll(predicate) {\n const matches = [];\n _queryAll(this, predicate, matches, true);\n return matches;\n }\n /**\n * @returns All `DebugNode` matches for the predicate at any depth in the subtree.\n */\n queryAllNodes(predicate) {\n const matches = [];\n _queryAll(this, predicate, matches, false);\n return matches;\n }\n /**\n * Triggers the event by its name if there is a corresponding listener in the element's\n * `listeners` collection.\n *\n * If the event lacks a listener or there's some other problem, consider\n * calling `nativeElement.dispatchEvent(eventObject)`.\n *\n * @param eventName The name of the event to trigger\n * @param eventObj The _event object_ expected by the handler\n *\n * @see [Testing components scenarios](guide/testing/components-scenarios#trigger-event-handler)\n */\n triggerEventHandler(eventName, eventObj) {\n const node = this.nativeNode;\n const invokedListeners = [];\n this.listeners.forEach((listener) => {\n if (listener.name === eventName) {\n const callback = listener.callback;\n callback.call(node, eventObj);\n invokedListeners.push(callback);\n }\n });\n // We need to check whether `eventListeners` exists, because it's something\n // that Zone.js only adds to `EventTarget` in browser environments.\n if (typeof node.eventListeners === 'function') {\n // Note that in Ivy we wrap event listeners with a call to `event.preventDefault` in some\n // cases. We use '__ngUnwrap__' as a special token that gives us access to the actual event\n // listener.\n node.eventListeners(eventName).forEach((listener) => {\n // In order to ensure that we can detect the special __ngUnwrap__ token described above, we\n // use `toString` on the listener and see if it contains the token. We use this approach to\n // ensure that it still worked with compiled code since it cannot remove or rename string\n // literals. We also considered using a special function name (i.e. if(listener.name ===\n // special)) but that was more cumbersome and we were also concerned the compiled code could\n // strip the name, turning the condition in to (\"\" === \"\") and always returning true.\n if (listener.toString().indexOf('__ngUnwrap__') !== -1) {\n const unwrappedListener = listener('__ngUnwrap__');\n return (invokedListeners.indexOf(unwrappedListener) === -1 &&\n unwrappedListener.call(node, eventObj));\n }\n });\n }\n }\n}\nfunction copyDomProperties(element, properties) {\n if (element) {\n // Skip own properties (as those are patched)\n let obj = Object.getPrototypeOf(element);\n const NodePrototype = Node.prototype;\n while (obj !== null && obj !== NodePrototype) {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n for (let key in descriptors) {\n if (!key.startsWith('__') && !key.startsWith('on')) {\n // don't include properties starting with `__` and `on`.\n // `__` are patched values which should not be included.\n // `on` are listeners which also should not be included.\n const value = element[key];\n if (isPrimitiveValue(value)) {\n properties[key] = value;\n }\n }\n }\n obj = Object.getPrototypeOf(obj);\n }\n }\n}\nfunction isPrimitiveValue(value) {\n return (typeof value === 'string' ||\n typeof value === 'boolean' ||\n typeof value === 'number' ||\n value === null);\n}\nfunction _queryAll(parentElement, predicate, matches, elementsOnly) {\n const context = getLContext(parentElement.nativeNode);\n const lView = context ? context.lView : null;\n if (lView !== null) {\n const parentTNode = lView[TVIEW].data[context.nodeIndex];\n _queryNodeChildren(parentTNode, lView, predicate, matches, elementsOnly, parentElement.nativeNode);\n }\n else {\n // If the context is null, then `parentElement` was either created with Renderer2 or native DOM\n // APIs.\n _queryNativeNodeDescendants(parentElement.nativeNode, predicate, matches, elementsOnly);\n }\n}\n/**\n * Recursively match the current TNode against the predicate, and goes on with the next ones.\n *\n * @param tNode the current TNode\n * @param lView the LView of this TNode\n * @param predicate the predicate to match\n * @param matches the list of positive matches\n * @param elementsOnly whether only elements should be searched\n * @param rootNativeNode the root native node on which predicate should not be matched\n */\nfunction _queryNodeChildren(tNode, lView, predicate, matches, elementsOnly, rootNativeNode) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n const nativeNode = getNativeByTNodeOrNull(tNode, lView);\n // For each type of TNode, specific logic is executed.\n if (tNode.type & (3 /* TNodeType.AnyRNode */ | 8 /* TNodeType.ElementContainer */)) {\n // Case 1: the TNode is an element\n // The native node has to be checked.\n _addQueryMatch(nativeNode, predicate, matches, elementsOnly, rootNativeNode);\n if (isComponentHost(tNode)) {\n // If the element is the host of a component, then all nodes in its view have to be processed.\n // Note: the component's content (tNode.child) will be processed from the insertion points.\n const componentView = getComponentLViewByIndex(tNode.index, lView);\n if (componentView && componentView[TVIEW].firstChild) {\n _queryNodeChildren(componentView[TVIEW].firstChild, componentView, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n else {\n if (tNode.child) {\n // Otherwise, its children have to be processed.\n _queryNodeChildren(tNode.child, lView, predicate, matches, elementsOnly, rootNativeNode);\n }\n // We also have to query the DOM directly in order to catch elements inserted through\n // Renderer2. Note that this is __not__ optimal, because we're walking similar trees multiple\n // times. ViewEngine could do it more efficiently, because all the insertions go through\n // Renderer2, however that's not the case in Ivy. This approach is being used because:\n // 1. Matching the ViewEngine behavior would mean potentially introducing a dependency\n // from `Renderer2` to Ivy which could bring Ivy code into ViewEngine.\n // 2. It allows us to capture nodes that were inserted directly via the DOM.\n nativeNode && _queryNativeNodeDescendants(nativeNode, predicate, matches, elementsOnly);\n }\n // In all cases, if a dynamic container exists for this node, each view inside it has to be\n // processed.\n const nodeOrContainer = lView[tNode.index];\n if (isLContainer(nodeOrContainer)) {\n _queryNodeChildrenInContainer(nodeOrContainer, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n else if (tNode.type & 4 /* TNodeType.Container */) {\n // Case 2: the TNode is a container\n // The native node has to be checked.\n const lContainer = lView[tNode.index];\n _addQueryMatch(lContainer[NATIVE], predicate, matches, elementsOnly, rootNativeNode);\n // Each view inside the container has to be processed.\n _queryNodeChildrenInContainer(lContainer, predicate, matches, elementsOnly, rootNativeNode);\n }\n else if (tNode.type & 16 /* TNodeType.Projection */) {\n // Case 3: the TNode is a projection insertion point (i.e. a <ng-content>).\n // The nodes projected at this location all need to be processed.\n const componentView = lView[DECLARATION_COMPONENT_VIEW];\n const componentHost = componentView[T_HOST];\n const head = componentHost.projection[tNode.projection];\n if (Array.isArray(head)) {\n for (let nativeNode of head) {\n _addQueryMatch(nativeNode, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n else if (head) {\n const nextLView = componentView[PARENT];\n const nextTNode = nextLView[TVIEW].data[head.index];\n _queryNodeChildren(nextTNode, nextLView, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n else if (tNode.child) {\n // Case 4: the TNode is a view.\n _queryNodeChildren(tNode.child, lView, predicate, matches, elementsOnly, rootNativeNode);\n }\n // We don't want to go to the next sibling of the root node.\n if (rootNativeNode !== nativeNode) {\n // To determine the next node to be processed, we need to use the next or the projectionNext\n // link, depending on whether the current node has been projected.\n const nextTNode = tNode.flags & 2 /* TNodeFlags.isProjected */ ? tNode.projectionNext : tNode.next;\n if (nextTNode) {\n _queryNodeChildren(nextTNode, lView, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n}\n/**\n * Process all TNodes in a given container.\n *\n * @param lContainer the container to be processed\n * @param predicate the predicate to match\n * @param matches the list of positive matches\n * @param elementsOnly whether only elements should be searched\n * @param rootNativeNode the root native node on which predicate should not be matched\n */\nfunction _queryNodeChildrenInContainer(lContainer, predicate, matches, elementsOnly, rootNativeNode) {\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n const childView = lContainer[i];\n const firstChild = childView[TVIEW].firstChild;\n if (firstChild) {\n _queryNodeChildren(firstChild, childView, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n}\n/**\n * Match the current native node against the predicate.\n *\n * @param nativeNode the current native node\n * @param predicate the predicate to match\n * @param matches the list of positive matches\n * @param elementsOnly whether only elements should be searched\n * @param rootNativeNode the root native node on which predicate should not be matched\n */\nfunction _addQueryMatch(nativeNode, predicate, matches, elementsOnly, rootNativeNode) {\n if (rootNativeNode !== nativeNode) {\n const debugNode = getDebugNode(nativeNode);\n if (!debugNode) {\n return;\n }\n // Type of the \"predicate and \"matches\" array are set based on the value of\n // the \"elementsOnly\" parameter. TypeScript is not able to properly infer these\n // types with generics, so we manually cast the parameters accordingly.\n if (elementsOnly &&\n debugNode instanceof DebugElement &&\n predicate(debugNode) &&\n matches.indexOf(debugNode) === -1) {\n matches.push(debugNode);\n }\n else if (!elementsOnly &&\n predicate(debugNode) &&\n matches.indexOf(debugNode) === -1) {\n matches.push(debugNode);\n }\n }\n}\n/**\n * Match all the descendants of a DOM node against a predicate.\n *\n * @param nativeNode the current native node\n * @param predicate the predicate to match\n * @param matches the list where matches are stored\n * @param elementsOnly whether only elements should be searched\n */\nfunction _queryNativeNodeDescendants(parentNode, predicate, matches, elementsOnly) {\n const nodes = parentNode.childNodes;\n const length = nodes.length;\n for (let i = 0; i < length; i++) {\n const node = nodes[i];\n const debugNode = getDebugNode(node);\n if (debugNode) {\n if (elementsOnly &&\n debugNode instanceof DebugElement &&\n predicate(debugNode) &&\n matches.indexOf(debugNode) === -1) {\n matches.push(debugNode);\n }\n else if (!elementsOnly &&\n predicate(debugNode) &&\n matches.indexOf(debugNode) === -1) {\n matches.push(debugNode);\n }\n _queryNativeNodeDescendants(node, predicate, matches, elementsOnly);\n }\n }\n}\n/**\n * Iterates through the property bindings for a given node and generates\n * a map of property names to values. This map only contains property bindings\n * defined in templates, not in host bindings.\n */\nfunction collectPropertyBindings(properties, tNode, lView, tData) {\n let bindingIndexes = tNode.propertyBindings;\n if (bindingIndexes !== null) {\n for (let i = 0; i < bindingIndexes.length; i++) {\n const bindingIndex = bindingIndexes[i];\n const propMetadata = tData[bindingIndex];\n const metadataParts = propMetadata.split(INTERPOLATION_DELIMITER);\n const propertyName = metadataParts[0];\n if (metadataParts.length > 1) {\n let value = metadataParts[1];\n for (let j = 1; j < metadataParts.length - 1; j++) {\n value += renderStringify(lView[bindingIndex + j - 1]) + metadataParts[j + 1];\n }\n properties[propertyName] = value;\n }\n else {\n properties[propertyName] = lView[bindingIndex];\n }\n }\n }\n}\n// Need to keep the nodes in a global Map so that multiple angular apps are supported.\nconst _nativeNodeToDebugNode = new Map();\nconst NG_DEBUG_PROPERTY = '__ng_debug__';\n/**\n * @publicApi\n */\nfunction getDebugNode(nativeNode) {\n if (nativeNode instanceof Node) {\n if (!nativeNode.hasOwnProperty(NG_DEBUG_PROPERTY)) {\n nativeNode[NG_DEBUG_PROPERTY] =\n nativeNode.nodeType == Node.ELEMENT_NODE\n ? new DebugElement(nativeNode)\n : new DebugNode(nativeNode);\n }\n return nativeNode[NG_DEBUG_PROPERTY];\n }\n return null;\n}\nfunction getAllDebugNodes() {\n return Array.from(_nativeNodeToDebugNode.values());\n}\nfunction indexDebugNode(node) {\n _nativeNodeToDebugNode.set(node.nativeNode, node);\n}\nfunction removeDebugNodeFromIndex(node) {\n _nativeNodeToDebugNode.delete(node.nativeNode);\n}\n\nclass DefaultIterableDifferFactory {\n constructor() { }\n supports(obj) {\n return isListLikeIterable(obj);\n }\n create(trackByFn) {\n return new DefaultIterableDiffer(trackByFn);\n }\n}\nconst trackByIdentity = (index, item) => item;\n/**\n * @deprecated v4.0.0 - Should not be part of public API.\n * @publicApi\n */\nclass DefaultIterableDiffer {\n length = 0;\n // TODO: confirm the usage of `collection` as it's unused, readonly and on a non public API.\n collection;\n // Keeps track of the used records at any point in time (during & across `_check()` calls)\n _linkedRecords = null;\n // Keeps track of the removed records at any point in time during `_check()` calls.\n _unlinkedRecords = null;\n _previousItHead = null;\n _itHead = null;\n _itTail = null;\n _additionsHead = null;\n _additionsTail = null;\n _movesHead = null;\n _movesTail = null;\n _removalsHead = null;\n _removalsTail = null;\n // Keeps track of records where custom track by is the same, but item identity has changed\n _identityChangesHead = null;\n _identityChangesTail = null;\n _trackByFn;\n constructor(trackByFn) {\n this._trackByFn = trackByFn || trackByIdentity;\n }\n forEachItem(fn) {\n let record;\n for (record = this._itHead; record !== null; record = record._next) {\n fn(record);\n }\n }\n forEachOperation(fn) {\n let nextIt = this._itHead;\n let nextRemove = this._removalsHead;\n let addRemoveOffset = 0;\n let moveOffsets = null;\n while (nextIt || nextRemove) {\n // Figure out which is the next record to process\n // Order: remove, add, move\n const record = !nextRemove ||\n (nextIt &&\n nextIt.currentIndex < getPreviousIndex(nextRemove, addRemoveOffset, moveOffsets))\n ? nextIt\n : nextRemove;\n const adjPreviousIndex = getPreviousIndex(record, addRemoveOffset, moveOffsets);\n const currentIndex = record.currentIndex;\n // consume the item, and adjust the addRemoveOffset and update moveDistance if necessary\n if (record === nextRemove) {\n addRemoveOffset--;\n nextRemove = nextRemove._nextRemoved;\n }\n else {\n nextIt = nextIt._next;\n if (record.previousIndex == null) {\n addRemoveOffset++;\n }\n else {\n // INVARIANT: currentIndex < previousIndex\n if (!moveOffsets)\n moveOffsets = [];\n const localMovePreviousIndex = adjPreviousIndex - addRemoveOffset;\n const localCurrentIndex = currentIndex - addRemoveOffset;\n if (localMovePreviousIndex != localCurrentIndex) {\n for (let i = 0; i < localMovePreviousIndex; i++) {\n const offset = i < moveOffsets.length ? moveOffsets[i] : (moveOffsets[i] = 0);\n const index = offset + i;\n if (localCurrentIndex <= index && index < localMovePreviousIndex) {\n moveOffsets[i] = offset + 1;\n }\n }\n const previousIndex = record.previousIndex;\n moveOffsets[previousIndex] = localCurrentIndex - localMovePreviousIndex;\n }\n }\n }\n if (adjPreviousIndex !== currentIndex) {\n fn(record, adjPreviousIndex, currentIndex);\n }\n }\n }\n forEachPreviousItem(fn) {\n let record;\n for (record = this._previousItHead; record !== null; record = record._nextPrevious) {\n fn(record);\n }\n }\n forEachAddedItem(fn) {\n let record;\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n fn(record);\n }\n }\n forEachMovedItem(fn) {\n let record;\n for (record = this._movesHead; record !== null; record = record._nextMoved) {\n fn(record);\n }\n }\n forEachRemovedItem(fn) {\n let record;\n for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\n fn(record);\n }\n }\n forEachIdentityChange(fn) {\n let record;\n for (record = this._identityChangesHead; record !== null; record = record._nextIdentityChange) {\n fn(record);\n }\n }\n diff(collection) {\n if (collection == null)\n collection = [];\n if (!isListLikeIterable(collection)) {\n throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode &&\n `Error trying to diff '${stringify(collection)}'. Only arrays and iterables are allowed`);\n }\n if (this.check(collection)) {\n return this;\n }\n else {\n return null;\n }\n }\n onDestroy() { }\n check(collection) {\n this._reset();\n let record = this._itHead;\n let mayBeDirty = false;\n let index;\n let item;\n let itemTrackBy;\n if (Array.isArray(collection)) {\n this.length = collection.length;\n for (let index = 0; index < this.length; index++) {\n item = collection[index];\n itemTrackBy = this._trackByFn(index, item);\n if (record === null || !Object.is(record.trackById, itemTrackBy)) {\n record = this._mismatch(record, item, itemTrackBy, index);\n mayBeDirty = true;\n }\n else {\n if (mayBeDirty) {\n // TODO(misko): can we limit this to duplicates only?\n record = this._verifyReinsertion(record, item, itemTrackBy, index);\n }\n if (!Object.is(record.item, item))\n this._addIdentityChange(record, item);\n }\n record = record._next;\n }\n }\n else {\n index = 0;\n iterateListLike(collection, (item) => {\n itemTrackBy = this._trackByFn(index, item);\n if (record === null || !Object.is(record.trackById, itemTrackBy)) {\n record = this._mismatch(record, item, itemTrackBy, index);\n mayBeDirty = true;\n }\n else {\n if (mayBeDirty) {\n // TODO(misko): can we limit this to duplicates only?\n record = this._verifyReinsertion(record, item, itemTrackBy, index);\n }\n if (!Object.is(record.item, item))\n this._addIdentityChange(record, item);\n }\n record = record._next;\n index++;\n });\n this.length = index;\n }\n this._truncate(record);\n this.collection = collection;\n return this.isDirty;\n }\n /* CollectionChanges is considered dirty if it has any additions, moves, removals, or identity\n * changes.\n */\n get isDirty() {\n return (this._additionsHead !== null ||\n this._movesHead !== null ||\n this._removalsHead !== null ||\n this._identityChangesHead !== null);\n }\n /**\n * Reset the state of the change objects to show no changes. This means set previousKey to\n * currentKey, and clear all of the queues (additions, moves, removals).\n * Set the previousIndexes of moved and added items to their currentIndexes\n * Reset the list of additions, moves and removals\n *\n * @internal\n */\n _reset() {\n if (this.isDirty) {\n let record;\n for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {\n record._nextPrevious = record._next;\n }\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n record.previousIndex = record.currentIndex;\n }\n this._additionsHead = this._additionsTail = null;\n for (record = this._movesHead; record !== null; record = record._nextMoved) {\n record.previousIndex = record.currentIndex;\n }\n this._movesHead = this._movesTail = null;\n this._removalsHead = this._removalsTail = null;\n this._identityChangesHead = this._identityChangesTail = null;\n // TODO(vicb): when assert gets supported\n // assert(!this.isDirty);\n }\n }\n /**\n * This is the core function which handles differences between collections.\n *\n * - `record` is the record which we saw at this position last time. If null then it is a new\n * item.\n * - `item` is the current item in the collection\n * - `index` is the position of the item in the collection\n *\n * @internal\n */\n _mismatch(record, item, itemTrackBy, index) {\n // The previous record after which we will append the current one.\n let previousRecord;\n if (record === null) {\n previousRecord = this._itTail;\n }\n else {\n previousRecord = record._prev;\n // Remove the record from the collection since we know it does not match the item.\n this._remove(record);\n }\n // See if we have evicted the item, which used to be at some anterior position of _itHead list.\n record = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\n if (record !== null) {\n // It is an item which we have evicted earlier: reinsert it back into the list.\n // But first we need to check if identity changed, so we can update in view if necessary.\n if (!Object.is(record.item, item))\n this._addIdentityChange(record, item);\n this._reinsertAfter(record, previousRecord, index);\n }\n else {\n // Attempt to see if the item is at some posterior position of _itHead list.\n record = this._linkedRecords === null ? null : this._linkedRecords.get(itemTrackBy, index);\n if (record !== null) {\n // We have the item in _itHead at/after `index` position. We need to move it forward in the\n // collection.\n // But first we need to check if identity changed, so we can update in view if necessary.\n if (!Object.is(record.item, item))\n this._addIdentityChange(record, item);\n this._moveAfter(record, previousRecord, index);\n }\n else {\n // It is a new item: add it.\n record = this._addAfter(new IterableChangeRecord_(item, itemTrackBy), previousRecord, index);\n }\n }\n return record;\n }\n /**\n * This check is only needed if an array contains duplicates. (Short circuit of nothing dirty)\n *\n * Use case: `[a, a]` => `[b, a, a]`\n *\n * If we did not have this check then the insertion of `b` would:\n * 1) evict first `a`\n * 2) insert `b` at `0` index.\n * 3) leave `a` at index `1` as is. <-- this is wrong!\n * 3) reinsert `a` at index 2. <-- this is wrong!\n *\n * The correct behavior is:\n * 1) evict first `a`\n * 2) insert `b` at `0` index.\n * 3) reinsert `a` at index 1.\n * 3) move `a` at from `1` to `2`.\n *\n *\n * Double check that we have not evicted a duplicate item. We need to check if the item type may\n * have already been removed:\n * The insertion of b will evict the first 'a'. If we don't reinsert it now it will be reinserted\n * at the end. Which will show up as the two 'a's switching position. This is incorrect, since a\n * better way to think of it is as insert of 'b' rather then switch 'a' with 'b' and then add 'a'\n * at the end.\n *\n * @internal\n */\n _verifyReinsertion(record, item, itemTrackBy, index) {\n let reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\n if (reinsertRecord !== null) {\n record = this._reinsertAfter(reinsertRecord, record._prev, index);\n }\n else if (record.currentIndex != index) {\n record.currentIndex = index;\n this._addToMoves(record, index);\n }\n return record;\n }\n /**\n * Get rid of any excess {@link IterableChangeRecord_}s from the previous collection\n *\n * - `record` The first excess {@link IterableChangeRecord_}.\n *\n * @internal\n */\n _truncate(record) {\n // Anything after that needs to be removed;\n while (record !== null) {\n const nextRecord = record._next;\n this._addToRemovals(this._unlink(record));\n record = nextRecord;\n }\n if (this._unlinkedRecords !== null) {\n this._unlinkedRecords.clear();\n }\n if (this._additionsTail !== null) {\n this._additionsTail._nextAdded = null;\n }\n if (this._movesTail !== null) {\n this._movesTail._nextMoved = null;\n }\n if (this._itTail !== null) {\n this._itTail._next = null;\n }\n if (this._removalsTail !== null) {\n this._removalsTail._nextRemoved = null;\n }\n if (this._identityChangesTail !== null) {\n this._identityChangesTail._nextIdentityChange = null;\n }\n }\n /** @internal */\n _reinsertAfter(record, prevRecord, index) {\n if (this._unlinkedRecords !== null) {\n this._unlinkedRecords.remove(record);\n }\n const prev = record._prevRemoved;\n const next = record._nextRemoved;\n if (prev === null) {\n this._removalsHead = next;\n }\n else {\n prev._nextRemoved = next;\n }\n if (next === null) {\n this._removalsTail = prev;\n }\n else {\n next._prevRemoved = prev;\n }\n this._insertAfter(record, prevRecord, index);\n this._addToMoves(record, index);\n return record;\n }\n /** @internal */\n _moveAfter(record, prevRecord, index) {\n this._unlink(record);\n this._insertAfter(record, prevRecord, index);\n this._addToMoves(record, index);\n return record;\n }\n /** @internal */\n _addAfter(record, prevRecord, index) {\n this._insertAfter(record, prevRecord, index);\n if (this._additionsTail === null) {\n // TODO(vicb):\n // assert(this._additionsHead === null);\n this._additionsTail = this._additionsHead = record;\n }\n else {\n // TODO(vicb):\n // assert(_additionsTail._nextAdded === null);\n // assert(record._nextAdded === null);\n this._additionsTail = this._additionsTail._nextAdded = record;\n }\n return record;\n }\n /** @internal */\n _insertAfter(record, prevRecord, index) {\n // TODO(vicb):\n // assert(record != prevRecord);\n // assert(record._next === null);\n // assert(record._prev === null);\n const next = prevRecord === null ? this._itHead : prevRecord._next;\n // TODO(vicb):\n // assert(next != record);\n // assert(prevRecord != record);\n record._next = next;\n record._prev = prevRecord;\n if (next === null) {\n this._itTail = record;\n }\n else {\n next._prev = record;\n }\n if (prevRecord === null) {\n this._itHead = record;\n }\n else {\n prevRecord._next = record;\n }\n if (this._linkedRecords === null) {\n this._linkedRecords = new _DuplicateMap();\n }\n this._linkedRecords.put(record);\n record.currentIndex = index;\n return record;\n }\n /** @internal */\n _remove(record) {\n return this._addToRemovals(this._unlink(record));\n }\n /** @internal */\n _unlink(record) {\n if (this._linkedRecords !== null) {\n this._linkedRecords.remove(record);\n }\n const prev = record._prev;\n const next = record._next;\n // TODO(vicb):\n // assert((record._prev = null) === null);\n // assert((record._next = null) === null);\n if (prev === null) {\n this._itHead = next;\n }\n else {\n prev._next = next;\n }\n if (next === null) {\n this._itTail = prev;\n }\n else {\n next._prev = prev;\n }\n return record;\n }\n /** @internal */\n _addToMoves(record, toIndex) {\n // TODO(vicb):\n // assert(record._nextMoved === null);\n if (record.previousIndex === toIndex) {\n return record;\n }\n if (this._movesTail === null) {\n // TODO(vicb):\n // assert(_movesHead === null);\n this._movesTail = this._movesHead = record;\n }\n else {\n // TODO(vicb):\n // assert(_movesTail._nextMoved === null);\n this._movesTail = this._movesTail._nextMoved = record;\n }\n return record;\n }\n _addToRemovals(record) {\n if (this._unlinkedRecords === null) {\n this._unlinkedRecords = new _DuplicateMap();\n }\n this._unlinkedRecords.put(record);\n record.currentIndex = null;\n record._nextRemoved = null;\n if (this._removalsTail === null) {\n // TODO(vicb):\n // assert(_removalsHead === null);\n this._removalsTail = this._removalsHead = record;\n record._prevRemoved = null;\n }\n else {\n // TODO(vicb):\n // assert(_removalsTail._nextRemoved === null);\n // assert(record._nextRemoved === null);\n record._prevRemoved = this._removalsTail;\n this._removalsTail = this._removalsTail._nextRemoved = record;\n }\n return record;\n }\n /** @internal */\n _addIdentityChange(record, item) {\n record.item = item;\n if (this._identityChangesTail === null) {\n this._identityChangesTail = this._identityChangesHead = record;\n }\n else {\n this._identityChangesTail = this._identityChangesTail._nextIdentityChange = record;\n }\n return record;\n }\n}\nclass IterableChangeRecord_ {\n item;\n trackById;\n currentIndex = null;\n previousIndex = null;\n /** @internal */\n _nextPrevious = null;\n /** @internal */\n _prev = null;\n /** @internal */\n _next = null;\n /** @internal */\n _prevDup = null;\n /** @internal */\n _nextDup = null;\n /** @internal */\n _prevRemoved = null;\n /** @internal */\n _nextRemoved = null;\n /** @internal */\n _nextAdded = null;\n /** @internal */\n _nextMoved = null;\n /** @internal */\n _nextIdentityChange = null;\n constructor(item, trackById) {\n this.item = item;\n this.trackById = trackById;\n }\n}\n// A linked list of IterableChangeRecords with the same IterableChangeRecord_.item\nclass _DuplicateItemRecordList {\n /** @internal */\n _head = null;\n /** @internal */\n _tail = null;\n /**\n * Append the record to the list of duplicates.\n *\n * Note: by design all records in the list of duplicates hold the same value in record.item.\n */\n add(record) {\n if (this._head === null) {\n this._head = this._tail = record;\n record._nextDup = null;\n record._prevDup = null;\n }\n else {\n // TODO(vicb):\n // assert(record.item == _head.item ||\n // record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);\n this._tail._nextDup = record;\n record._prevDup = this._tail;\n record._nextDup = null;\n this._tail = record;\n }\n }\n // Returns a IterableChangeRecord_ having IterableChangeRecord_.trackById == trackById and\n // IterableChangeRecord_.currentIndex >= atOrAfterIndex\n get(trackById, atOrAfterIndex) {\n let record;\n for (record = this._head; record !== null; record = record._nextDup) {\n if ((atOrAfterIndex === null || atOrAfterIndex <= record.currentIndex) &&\n Object.is(record.trackById, trackById)) {\n return record;\n }\n }\n return null;\n }\n /**\n * Remove one {@link IterableChangeRecord_} from the list of duplicates.\n *\n * Returns whether the list of duplicates is empty.\n */\n remove(record) {\n // TODO(vicb):\n // assert(() {\n // // verify that the record being removed is in the list.\n // for (IterableChangeRecord_ cursor = _head; cursor != null; cursor = cursor._nextDup) {\n // if (identical(cursor, record)) return true;\n // }\n // return false;\n //});\n const prev = record._prevDup;\n const next = record._nextDup;\n if (prev === null) {\n this._head = next;\n }\n else {\n prev._nextDup = next;\n }\n if (next === null) {\n this._tail = prev;\n }\n else {\n next._prevDup = prev;\n }\n return this._head === null;\n }\n}\nclass _DuplicateMap {\n map = new Map();\n put(record) {\n const key = record.trackById;\n let duplicates = this.map.get(key);\n if (!duplicates) {\n duplicates = new _DuplicateItemRecordList();\n this.map.set(key, duplicates);\n }\n duplicates.add(record);\n }\n /**\n * Retrieve the `value` using key. Because the IterableChangeRecord_ value may be one which we\n * have already iterated over, we use the `atOrAfterIndex` to pretend it is not there.\n *\n * Use case: `[a, b, c, a, a]` if we are at index `3` which is the second `a` then asking if we\n * have any more `a`s needs to return the second `a`.\n */\n get(trackById, atOrAfterIndex) {\n const key = trackById;\n const recordList = this.map.get(key);\n return recordList ? recordList.get(trackById, atOrAfterIndex) : null;\n }\n /**\n * Removes a {@link IterableChangeRecord_} from the list of duplicates.\n *\n * The list of duplicates also is removed from the map if it gets empty.\n */\n remove(record) {\n const key = record.trackById;\n const recordList = this.map.get(key);\n // Remove the list of duplicates when it gets empty\n if (recordList.remove(record)) {\n this.map.delete(key);\n }\n return record;\n }\n get isEmpty() {\n return this.map.size === 0;\n }\n clear() {\n this.map.clear();\n }\n}\nfunction getPreviousIndex(item, addRemoveOffset, moveOffsets) {\n const previousIndex = item.previousIndex;\n if (previousIndex === null)\n return previousIndex;\n let moveOffset = 0;\n if (moveOffsets && previousIndex < moveOffsets.length) {\n moveOffset = moveOffsets[previousIndex];\n }\n return previousIndex + addRemoveOffset + moveOffset;\n}\n\nclass DefaultKeyValueDifferFactory {\n constructor() { }\n supports(obj) {\n return obj instanceof Map || isJsObject(obj);\n }\n create() {\n return new DefaultKeyValueDiffer();\n }\n}\nclass DefaultKeyValueDiffer {\n _records = new Map();\n _mapHead = null;\n // _appendAfter is used in the check loop\n _appendAfter = null;\n _previousMapHead = null;\n _changesHead = null;\n _changesTail = null;\n _additionsHead = null;\n _additionsTail = null;\n _removalsHead = null;\n _removalsTail = null;\n get isDirty() {\n return (this._additionsHead !== null || this._changesHead !== null || this._removalsHead !== null);\n }\n forEachItem(fn) {\n let record;\n for (record = this._mapHead; record !== null; record = record._next) {\n fn(record);\n }\n }\n forEachPreviousItem(fn) {\n let record;\n for (record = this._previousMapHead; record !== null; record = record._nextPrevious) {\n fn(record);\n }\n }\n forEachChangedItem(fn) {\n let record;\n for (record = this._changesHead; record !== null; record = record._nextChanged) {\n fn(record);\n }\n }\n forEachAddedItem(fn) {\n let record;\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n fn(record);\n }\n }\n forEachRemovedItem(fn) {\n let record;\n for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\n fn(record);\n }\n }\n diff(map) {\n if (!map) {\n map = new Map();\n }\n else if (!(map instanceof Map || isJsObject(map))) {\n throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && `Error trying to diff '${stringify(map)}'. Only maps and objects are allowed`);\n }\n return this.check(map) ? this : null;\n }\n onDestroy() { }\n /**\n * Check the current state of the map vs the previous.\n * The algorithm is optimised for when the keys do no change.\n */\n check(map) {\n this._reset();\n let insertBefore = this._mapHead;\n this._appendAfter = null;\n this._forEach(map, (value, key) => {\n if (insertBefore && insertBefore.key === key) {\n this._maybeAddToChanges(insertBefore, value);\n this._appendAfter = insertBefore;\n insertBefore = insertBefore._next;\n }\n else {\n const record = this._getOrCreateRecordForKey(key, value);\n insertBefore = this._insertBeforeOrAppend(insertBefore, record);\n }\n });\n // Items remaining at the end of the list have been deleted\n if (insertBefore) {\n if (insertBefore._prev) {\n insertBefore._prev._next = null;\n }\n this._removalsHead = insertBefore;\n for (let record = insertBefore; record !== null; record = record._nextRemoved) {\n if (record === this._mapHead) {\n this._mapHead = null;\n }\n this._records.delete(record.key);\n record._nextRemoved = record._next;\n record.previousValue = record.currentValue;\n record.currentValue = null;\n record._prev = null;\n record._next = null;\n }\n }\n // Make sure tails have no next records from previous runs\n if (this._changesTail)\n this._changesTail._nextChanged = null;\n if (this._additionsTail)\n this._additionsTail._nextAdded = null;\n return this.isDirty;\n }\n /**\n * Inserts a record before `before` or append at the end of the list when `before` is null.\n *\n * Notes:\n * - This method appends at `this._appendAfter`,\n * - This method updates `this._appendAfter`,\n * - The return value is the new value for the insertion pointer.\n */\n _insertBeforeOrAppend(before, record) {\n if (before) {\n const prev = before._prev;\n record._next = before;\n record._prev = prev;\n before._prev = record;\n if (prev) {\n prev._next = record;\n }\n if (before === this._mapHead) {\n this._mapHead = record;\n }\n this._appendAfter = before;\n return before;\n }\n if (this._appendAfter) {\n this._appendAfter._next = record;\n record._prev = this._appendAfter;\n }\n else {\n this._mapHead = record;\n }\n this._appendAfter = record;\n return null;\n }\n _getOrCreateRecordForKey(key, value) {\n if (this._records.has(key)) {\n const record = this._records.get(key);\n this._maybeAddToChanges(record, value);\n const prev = record._prev;\n const next = record._next;\n if (prev) {\n prev._next = next;\n }\n if (next) {\n next._prev = prev;\n }\n record._next = null;\n record._prev = null;\n return record;\n }\n const record = new KeyValueChangeRecord_(key);\n this._records.set(key, record);\n record.currentValue = value;\n this._addToAdditions(record);\n return record;\n }\n /** @internal */\n _reset() {\n if (this.isDirty) {\n let record;\n // let `_previousMapHead` contain the state of the map before the changes\n this._previousMapHead = this._mapHead;\n for (record = this._previousMapHead; record !== null; record = record._next) {\n record._nextPrevious = record._next;\n }\n // Update `record.previousValue` with the value of the item before the changes\n // We need to update all changed items (that's those which have been added and changed)\n for (record = this._changesHead; record !== null; record = record._nextChanged) {\n record.previousValue = record.currentValue;\n }\n for (record = this._additionsHead; record != null; record = record._nextAdded) {\n record.previousValue = record.currentValue;\n }\n this._changesHead = this._changesTail = null;\n this._additionsHead = this._additionsTail = null;\n this._removalsHead = null;\n }\n }\n // Add the record or a given key to the list of changes only when the value has actually changed\n _maybeAddToChanges(record, newValue) {\n if (!Object.is(newValue, record.currentValue)) {\n record.previousValue = record.currentValue;\n record.currentValue = newValue;\n this._addToChanges(record);\n }\n }\n _addToAdditions(record) {\n if (this._additionsHead === null) {\n this._additionsHead = this._additionsTail = record;\n }\n else {\n this._additionsTail._nextAdded = record;\n this._additionsTail = record;\n }\n }\n _addToChanges(record) {\n if (this._changesHead === null) {\n this._changesHead = this._changesTail = record;\n }\n else {\n this._changesTail._nextChanged = record;\n this._changesTail = record;\n }\n }\n /** @internal */\n _forEach(obj, fn) {\n if (obj instanceof Map) {\n obj.forEach(fn);\n }\n else {\n Object.keys(obj).forEach((k) => fn(obj[k], k));\n }\n }\n}\nclass KeyValueChangeRecord_ {\n key;\n previousValue = null;\n currentValue = null;\n /** @internal */\n _nextPrevious = null;\n /** @internal */\n _next = null;\n /** @internal */\n _prev = null;\n /** @internal */\n _nextAdded = null;\n /** @internal */\n _nextRemoved = null;\n /** @internal */\n _nextChanged = null;\n constructor(key) {\n this.key = key;\n }\n}\n\nfunction defaultIterableDiffersFactory() {\n return new IterableDiffers([new DefaultIterableDifferFactory()]);\n}\n/**\n * A repository of different iterable diffing strategies used by NgFor, NgClass, and others.\n *\n * @publicApi\n */\nclass IterableDiffers {\n factories;\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: IterableDiffers,\n providedIn: 'root',\n factory: defaultIterableDiffersFactory,\n });\n constructor(factories) {\n this.factories = factories;\n }\n static create(factories, parent) {\n if (parent != null) {\n const copied = parent.factories.slice();\n factories = factories.concat(copied);\n }\n return new IterableDiffers(factories);\n }\n /**\n * Takes an array of {@link IterableDifferFactory} and returns a provider used to extend the\n * inherited {@link IterableDiffers} instance with the provided factories and return a new\n * {@link IterableDiffers} instance.\n *\n * @usageNotes\n * ### Example\n *\n * The following example shows how to extend an existing list of factories,\n * which will only be applied to the injector for this component and its children.\n * This step is all that's required to make a new {@link IterableDiffer} available.\n *\n * ```ts\n * @Component({\n * viewProviders: [\n * IterableDiffers.extend([new ImmutableListDiffer()])\n * ]\n * })\n * ```\n */\n static extend(factories) {\n return {\n provide: IterableDiffers,\n useFactory: (parent) => {\n // if parent is null, it means that we are in the root injector and we have just overridden\n // the default injection mechanism for IterableDiffers, in such a case just assume\n // `defaultIterableDiffersFactory`.\n return IterableDiffers.create(factories, parent || defaultIterableDiffersFactory());\n },\n // Dependency technically isn't optional, but we can provide a better error message this way.\n deps: [[IterableDiffers, new SkipSelf(), new Optional()]],\n };\n }\n find(iterable) {\n const factory = this.factories.find((f) => f.supports(iterable));\n if (factory != null) {\n return factory;\n }\n else {\n throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, ngDevMode &&\n `Cannot find a differ supporting object '${iterable}' of type '${getTypeNameForDebugging(iterable)}'`);\n }\n }\n}\nfunction getTypeNameForDebugging(type) {\n return type['name'] || typeof type;\n}\n\nfunction defaultKeyValueDiffersFactory() {\n return new KeyValueDiffers([new DefaultKeyValueDifferFactory()]);\n}\n/**\n * A repository of different Map diffing strategies used by NgClass, NgStyle, and others.\n *\n * @publicApi\n */\nclass KeyValueDiffers {\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: KeyValueDiffers,\n providedIn: 'root',\n factory: defaultKeyValueDiffersFactory,\n });\n factories;\n constructor(factories) {\n this.factories = factories;\n }\n static create(factories, parent) {\n if (parent) {\n const copied = parent.factories.slice();\n factories = factories.concat(copied);\n }\n return new KeyValueDiffers(factories);\n }\n /**\n * Takes an array of {@link KeyValueDifferFactory} and returns a provider used to extend the\n * inherited {@link KeyValueDiffers} instance with the provided factories and return a new\n * {@link KeyValueDiffers} instance.\n *\n * @usageNotes\n * ### Example\n *\n * The following example shows how to extend an existing list of factories,\n * which will only be applied to the injector for this component and its children.\n * This step is all that's required to make a new {@link KeyValueDiffer} available.\n *\n * ```ts\n * @Component({\n * viewProviders: [\n * KeyValueDiffers.extend([new ImmutableMapDiffer()])\n * ]\n * })\n * ```\n */\n static extend(factories) {\n return {\n provide: KeyValueDiffers,\n useFactory: (parent) => {\n // if parent is null, it means that we are in the root injector and we have just overridden\n // the default injection mechanism for KeyValueDiffers, in such a case just assume\n // `defaultKeyValueDiffersFactory`.\n return KeyValueDiffers.create(factories, parent || defaultKeyValueDiffersFactory());\n },\n // Dependency technically isn't optional, but we can provide a better error message this way.\n deps: [[KeyValueDiffers, new SkipSelf(), new Optional()]],\n };\n }\n find(kv) {\n const factory = this.factories.find((f) => f.supports(kv));\n if (factory) {\n return factory;\n }\n throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, ngDevMode && `Cannot find a differ supporting object '${kv}'`);\n }\n}\n\n/**\n * Structural diffing for `Object`s and `Map`s.\n */\nconst keyValDiff = [new DefaultKeyValueDifferFactory()];\n/**\n * Structural diffing for `Iterable` types such as `Array`s.\n */\nconst iterableDiff = [new DefaultIterableDifferFactory()];\nconst defaultIterableDiffers = new IterableDiffers(iterableDiff);\nconst defaultKeyValueDiffers = new KeyValueDiffers(keyValDiff);\n\n/**\n * @module\n * @description\n * Change detection enables data binding in Angular.\n */\n\n/**\n * This platform has to be included in any other platform\n *\n * @publicApi\n */\nconst platformCore = createPlatformFactory(null, 'core', []);\n\n/**\n * Re-exported by `BrowserModule`, which is included automatically in the root\n * `AppModule` when you create a new app with the CLI `new` command. Eagerly injects\n * `ApplicationRef` to instantiate it.\n *\n * @publicApi\n */\nclass ApplicationModule {\n // Inject ApplicationRef to make it eager...\n constructor(appRef) { }\n static ɵfac = function ApplicationModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ApplicationModule)(ɵɵinject(ApplicationRef)); };\n static ɵmod = /*@__PURE__*/ ɵɵdefineNgModule({ type: ApplicationModule });\n static ɵinj = /*@__PURE__*/ ɵɵdefineInjector({});\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationModule, [{\n type: NgModule\n }], () => [{ type: ApplicationRef }], null); })();\n\n/**\n * The default equality function used for `signal` and `computed`, which uses referential equality.\n */\nfunction defaultEquals(a, b) {\n return Object.is(a, b);\n}\n\n/**\n * The currently active consumer `ReactiveNode`, if running code in a reactive context.\n *\n * Change this via `setActiveConsumer`.\n */\nlet activeConsumer = null;\nlet inNotificationPhase = false;\n/**\n * Global epoch counter. Incremented whenever a source signal is set.\n */\nlet epoch = 1;\n/**\n * Symbol used to tell `Signal`s apart from other functions.\n *\n * This can be used to auto-unwrap signals in various cases, or to auto-wrap non-signal values.\n */\nconst SIGNAL = /* @__PURE__ */ Symbol('SIGNAL');\nfunction setActiveConsumer(consumer) {\n const prev = activeConsumer;\n activeConsumer = consumer;\n return prev;\n}\nfunction getActiveConsumer() {\n return activeConsumer;\n}\nfunction isInNotificationPhase() {\n return inNotificationPhase;\n}\nfunction isReactive(value) {\n return value[SIGNAL] !== undefined;\n}\nconst REACTIVE_NODE = {\n version: 0,\n lastCleanEpoch: 0,\n dirty: false,\n producerNode: undefined,\n producerLastReadVersion: undefined,\n producerIndexOfThis: undefined,\n nextProducerIndex: 0,\n liveConsumerNode: undefined,\n liveConsumerIndexOfThis: undefined,\n consumerAllowSignalWrites: false,\n consumerIsAlwaysLive: false,\n kind: 'unknown',\n producerMustRecompute: () => false,\n producerRecomputeValue: () => { },\n consumerMarkedDirty: () => { },\n consumerOnSignalRead: () => { },\n};\n/**\n * Called by implementations when a producer's signal is read.\n */\nfunction producerAccessed(node) {\n if (inNotificationPhase) {\n throw new Error(typeof ngDevMode !== 'undefined' && ngDevMode\n ? `Assertion error: signal read during notification phase`\n : '');\n }\n if (activeConsumer === null) {\n // Accessed outside of a reactive context, so nothing to record.\n return;\n }\n activeConsumer.consumerOnSignalRead(node);\n // This producer is the `idx`th dependency of `activeConsumer`.\n const idx = activeConsumer.nextProducerIndex++;\n assertConsumerNode(activeConsumer);\n if (idx < activeConsumer.producerNode.length && activeConsumer.producerNode[idx] !== node) {\n // There's been a change in producers since the last execution of `activeConsumer`.\n // `activeConsumer.producerNode[idx]` holds a stale dependency which will be be removed and\n // replaced with `this`.\n //\n // If `activeConsumer` isn't live, then this is a no-op, since we can replace the producer in\n // `activeConsumer.producerNode` directly. However, if `activeConsumer` is live, then we need\n // to remove it from the stale producer's `liveConsumer`s.\n if (consumerIsLive(activeConsumer)) {\n const staleProducer = activeConsumer.producerNode[idx];\n producerRemoveLiveConsumerAtIndex(staleProducer, activeConsumer.producerIndexOfThis[idx]);\n // At this point, the only record of `staleProducer` is the reference at\n // `activeConsumer.producerNode[idx]` which will be overwritten below.\n }\n }\n if (activeConsumer.producerNode[idx] !== node) {\n // We're a new dependency of the consumer (at `idx`).\n activeConsumer.producerNode[idx] = node;\n // If the active consumer is live, then add it as a live consumer. If not, then use 0 as a\n // placeholder value.\n activeConsumer.producerIndexOfThis[idx] = consumerIsLive(activeConsumer)\n ? producerAddLiveConsumer(node, activeConsumer, idx)\n : 0;\n }\n activeConsumer.producerLastReadVersion[idx] = node.version;\n}\n/**\n * Increment the global epoch counter.\n *\n * Called by source producers (that is, not computeds) whenever their values change.\n */\nfunction producerIncrementEpoch() {\n epoch++;\n}\n/**\n * Ensure this producer's `version` is up-to-date.\n */\nfunction producerUpdateValueVersion(node) {\n if (consumerIsLive(node) && !node.dirty) {\n // A live consumer will be marked dirty by producers, so a clean state means that its version\n // is guaranteed to be up-to-date.\n return;\n }\n if (!node.dirty && node.lastCleanEpoch === epoch) {\n // Even non-live consumers can skip polling if they previously found themselves to be clean at\n // the current epoch, since their dependencies could not possibly have changed (such a change\n // would've increased the epoch).\n return;\n }\n if (!node.producerMustRecompute(node) && !consumerPollProducersForChange(node)) {\n // None of our producers report a change since the last time they were read, so no\n // recomputation of our value is necessary, and we can consider ourselves clean.\n producerMarkClean(node);\n return;\n }\n node.producerRecomputeValue(node);\n // After recomputing the value, we're no longer dirty.\n producerMarkClean(node);\n}\n/**\n * Propagate a dirty notification to live consumers of this producer.\n */\nfunction producerNotifyConsumers(node) {\n if (node.liveConsumerNode === undefined) {\n return;\n }\n // Prevent signal reads when we're updating the graph\n const prev = inNotificationPhase;\n inNotificationPhase = true;\n try {\n for (const consumer of node.liveConsumerNode) {\n if (!consumer.dirty) {\n consumerMarkDirty(consumer);\n }\n }\n }\n finally {\n inNotificationPhase = prev;\n }\n}\n/**\n * Whether this `ReactiveNode` in its producer capacity is currently allowed to initiate updates,\n * based on the current consumer context.\n */\nfunction producerUpdatesAllowed() {\n return activeConsumer?.consumerAllowSignalWrites !== false;\n}\nfunction consumerMarkDirty(node) {\n node.dirty = true;\n producerNotifyConsumers(node);\n node.consumerMarkedDirty?.(node);\n}\nfunction producerMarkClean(node) {\n node.dirty = false;\n node.lastCleanEpoch = epoch;\n}\n/**\n * Prepare this consumer to run a computation in its reactive context.\n *\n * Must be called by subclasses which represent reactive computations, before those computations\n * begin.\n */\nfunction consumerBeforeComputation(node) {\n node && (node.nextProducerIndex = 0);\n return setActiveConsumer(node);\n}\n/**\n * Finalize this consumer's state after a reactive computation has run.\n *\n * Must be called by subclasses which represent reactive computations, after those computations\n * have finished.\n */\nfunction consumerAfterComputation(node, prevConsumer) {\n setActiveConsumer(prevConsumer);\n if (!node ||\n node.producerNode === undefined ||\n node.producerIndexOfThis === undefined ||\n node.producerLastReadVersion === undefined) {\n return;\n }\n if (consumerIsLive(node)) {\n // For live consumers, we need to remove the producer -> consumer edge for any stale producers\n // which weren't dependencies after the recomputation.\n for (let i = node.nextProducerIndex; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Truncate the producer tracking arrays.\n // Perf note: this is essentially truncating the length to `node.nextProducerIndex`, but\n // benchmarking has shown that individual pop operations are faster.\n while (node.producerNode.length > node.nextProducerIndex) {\n node.producerNode.pop();\n node.producerLastReadVersion.pop();\n node.producerIndexOfThis.pop();\n }\n}\n/**\n * Determine whether this consumer has any dependencies which have changed since the last time\n * they were read.\n */\nfunction consumerPollProducersForChange(node) {\n assertConsumerNode(node);\n // Poll producers for change.\n for (let i = 0; i < node.producerNode.length; i++) {\n const producer = node.producerNode[i];\n const seenVersion = node.producerLastReadVersion[i];\n // First check the versions. A mismatch means that the producer's value is known to have\n // changed since the last time we read it.\n if (seenVersion !== producer.version) {\n return true;\n }\n // The producer's version is the same as the last time we read it, but it might itself be\n // stale. Force the producer to recompute its version (calculating a new value if necessary).\n producerUpdateValueVersion(producer);\n // Now when we do this check, `producer.version` is guaranteed to be up to date, so if the\n // versions still match then it has not changed since the last time we read it.\n if (seenVersion !== producer.version) {\n return true;\n }\n }\n return false;\n}\n/**\n * Disconnect this consumer from the graph.\n */\nfunction consumerDestroy(node) {\n assertConsumerNode(node);\n if (consumerIsLive(node)) {\n // Drop all connections from the graph to this node.\n for (let i = 0; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Truncate all the arrays to drop all connection from this node to the graph.\n node.producerNode.length =\n node.producerLastReadVersion.length =\n node.producerIndexOfThis.length =\n 0;\n if (node.liveConsumerNode) {\n node.liveConsumerNode.length = node.liveConsumerIndexOfThis.length = 0;\n }\n}\n/**\n * Add `consumer` as a live consumer of this node.\n *\n * Note that this operation is potentially transitive. If this node becomes live, then it becomes\n * a live consumer of all of its current producers.\n */\nfunction producerAddLiveConsumer(node, consumer, indexOfThis) {\n assertProducerNode(node);\n if (node.liveConsumerNode.length === 0 && isConsumerNode(node)) {\n // When going from 0 to 1 live consumers, we become a live consumer to our producers.\n for (let i = 0; i < node.producerNode.length; i++) {\n node.producerIndexOfThis[i] = producerAddLiveConsumer(node.producerNode[i], node, i);\n }\n }\n node.liveConsumerIndexOfThis.push(indexOfThis);\n return node.liveConsumerNode.push(consumer) - 1;\n}\n/**\n * Remove the live consumer at `idx`.\n */\nfunction producerRemoveLiveConsumerAtIndex(node, idx) {\n assertProducerNode(node);\n if (typeof ngDevMode !== 'undefined' && ngDevMode && idx >= node.liveConsumerNode.length) {\n throw new Error(`Assertion error: active consumer index ${idx} is out of bounds of ${node.liveConsumerNode.length} consumers)`);\n }\n if (node.liveConsumerNode.length === 1 && isConsumerNode(node)) {\n // When removing the last live consumer, we will no longer be live. We need to remove\n // ourselves from our producers' tracking (which may cause consumer-producers to lose\n // liveness as well).\n for (let i = 0; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Move the last value of `liveConsumers` into `idx`. Note that if there's only a single\n // live consumer, this is a no-op.\n const lastIdx = node.liveConsumerNode.length - 1;\n node.liveConsumerNode[idx] = node.liveConsumerNode[lastIdx];\n node.liveConsumerIndexOfThis[idx] = node.liveConsumerIndexOfThis[lastIdx];\n // Truncate the array.\n node.liveConsumerNode.length--;\n node.liveConsumerIndexOfThis.length--;\n // If the index is still valid, then we need to fix the index pointer from the producer to this\n // consumer, and update it from `lastIdx` to `idx` (accounting for the move above).\n if (idx < node.liveConsumerNode.length) {\n const idxProducer = node.liveConsumerIndexOfThis[idx];\n const consumer = node.liveConsumerNode[idx];\n assertConsumerNode(consumer);\n consumer.producerIndexOfThis[idxProducer] = idx;\n }\n}\nfunction consumerIsLive(node) {\n return node.consumerIsAlwaysLive || (node?.liveConsumerNode?.length ?? 0) > 0;\n}\nfunction assertConsumerNode(node) {\n node.producerNode ??= [];\n node.producerIndexOfThis ??= [];\n node.producerLastReadVersion ??= [];\n}\nfunction assertProducerNode(node) {\n node.liveConsumerNode ??= [];\n node.liveConsumerIndexOfThis ??= [];\n}\nfunction isConsumerNode(node) {\n return node.producerNode !== undefined;\n}\n\n/**\n * Create a computed signal which derives a reactive value from an expression.\n */\nfunction createComputed(computation) {\n const node = Object.create(COMPUTED_NODE);\n node.computation = computation;\n const computed = () => {\n // Check if the value needs updating before returning it.\n producerUpdateValueVersion(node);\n // Record that someone looked at this signal.\n producerAccessed(node);\n if (node.value === ERRORED) {\n throw node.error;\n }\n return node.value;\n };\n computed[SIGNAL] = node;\n return computed;\n}\n/**\n * A dedicated symbol used before a computed value has been calculated for the first time.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst UNSET = /* @__PURE__ */ Symbol('UNSET');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * is in progress. Used to detect cycles in computation chains.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst COMPUTING = /* @__PURE__ */ Symbol('COMPUTING');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * failed. The thrown error is cached until the computation gets dirty again.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst ERRORED = /* @__PURE__ */ Symbol('ERRORED');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst COMPUTED_NODE = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n value: UNSET,\n dirty: true,\n error: null,\n equal: defaultEquals,\n kind: 'computed',\n producerMustRecompute(node) {\n // Force a recomputation if there's no current value, or if the current value is in the\n // process of being calculated (which should throw an error).\n return node.value === UNSET || node.value === COMPUTING;\n },\n producerRecomputeValue(node) {\n if (node.value === COMPUTING) {\n // Our computation somehow led to a cyclic read of itself.\n throw new Error('Detected cycle in computations.');\n }\n const oldValue = node.value;\n node.value = COMPUTING;\n const prevConsumer = consumerBeforeComputation(node);\n let newValue;\n let wasEqual = false;\n try {\n newValue = node.computation();\n // We want to mark this node as errored if calling `equal` throws; however, we don't want\n // to track any reactive reads inside `equal`.\n setActiveConsumer(null);\n wasEqual =\n oldValue !== UNSET &&\n oldValue !== ERRORED &&\n newValue !== ERRORED &&\n node.equal(oldValue, newValue);\n }\n catch (err) {\n newValue = ERRORED;\n node.error = err;\n }\n finally {\n consumerAfterComputation(node, prevConsumer);\n }\n if (wasEqual) {\n // No change to `valueVersion` - old and new values are\n // semantically equivalent.\n node.value = oldValue;\n return;\n }\n node.value = newValue;\n node.version++;\n },\n };\n})();\n\nfunction defaultThrowError() {\n throw new Error();\n}\nlet throwInvalidWriteToSignalErrorFn = defaultThrowError;\nfunction throwInvalidWriteToSignalError() {\n throwInvalidWriteToSignalErrorFn();\n}\nfunction setThrowInvalidWriteToSignalError(fn) {\n throwInvalidWriteToSignalErrorFn = fn;\n}\n\n/**\n * If set, called after `WritableSignal`s are updated.\n *\n * This hook can be used to achieve various effects, such as running effects synchronously as part\n * of setting a signal.\n */\nlet postSignalSetFn = null;\n/**\n * Create a `Signal` that can be set or updated directly.\n */\nfunction createSignal(initialValue) {\n const node = Object.create(SIGNAL_NODE);\n node.value = initialValue;\n const getter = (() => {\n producerAccessed(node);\n return node.value;\n });\n getter[SIGNAL] = node;\n return getter;\n}\nfunction setPostSignalSetFn(fn) {\n const prev = postSignalSetFn;\n postSignalSetFn = fn;\n return prev;\n}\nfunction signalGetFn() {\n producerAccessed(this);\n return this.value;\n}\nfunction signalSetFn(node, newValue) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError();\n }\n if (!node.equal(node.value, newValue)) {\n node.value = newValue;\n signalValueChanged(node);\n }\n}\nfunction signalUpdateFn(node, updater) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError();\n }\n signalSetFn(node, updater(node.value));\n}\nfunction runPostSignalSetFn() {\n postSignalSetFn?.();\n}\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst SIGNAL_NODE = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n equal: defaultEquals,\n value: undefined,\n kind: 'signal',\n };\n})();\nfunction signalValueChanged(node) {\n node.version++;\n producerIncrementEpoch();\n producerNotifyConsumers(node);\n postSignalSetFn?.();\n}\n\nfunction createLinkedSignal(sourceFn, computationFn, equalityFn) {\n const node = Object.create(LINKED_SIGNAL_NODE);\n node.source = sourceFn;\n node.computation = computationFn;\n if (equalityFn != undefined) {\n node.equal = equalityFn;\n }\n const linkedSignalGetter = () => {\n // Check if the value needs updating before returning it.\n producerUpdateValueVersion(node);\n // Record that someone looked at this signal.\n producerAccessed(node);\n if (node.value === ERRORED) {\n throw node.error;\n }\n return node.value;\n };\n const getter = linkedSignalGetter;\n getter[SIGNAL] = node;\n return getter;\n}\nfunction linkedSignalSetFn(node, newValue) {\n producerUpdateValueVersion(node);\n signalSetFn(node, newValue);\n producerMarkClean(node);\n}\nfunction linkedSignalUpdateFn(node, updater) {\n producerUpdateValueVersion(node);\n signalUpdateFn(node, updater);\n producerMarkClean(node);\n}\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `LINKED_SIGNAL_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst LINKED_SIGNAL_NODE = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n value: UNSET,\n dirty: true,\n error: null,\n equal: defaultEquals,\n producerMustRecompute(node) {\n // Force a recomputation if there's no current value, or if the current value is in the\n // process of being calculated (which should throw an error).\n return node.value === UNSET || node.value === COMPUTING;\n },\n producerRecomputeValue(node) {\n if (node.value === COMPUTING) {\n // Our computation somehow led to a cyclic read of itself.\n throw new Error('Detected cycle in computations.');\n }\n const oldValue = node.value;\n node.value = COMPUTING;\n const prevConsumer = consumerBeforeComputation(node);\n let newValue;\n try {\n const newSourceValue = node.source();\n const prev = oldValue === UNSET || oldValue === ERRORED\n ? undefined\n : {\n source: node.sourceValue,\n value: oldValue,\n };\n newValue = node.computation(newSourceValue, prev);\n node.sourceValue = newSourceValue;\n }\n catch (err) {\n newValue = ERRORED;\n node.error = err;\n }\n finally {\n consumerAfterComputation(node, prevConsumer);\n }\n if (oldValue !== UNSET && newValue !== ERRORED && node.equal(oldValue, newValue)) {\n // No change to `valueVersion` - old and new values are\n // semantically equivalent.\n node.value = oldValue;\n return;\n }\n node.value = newValue;\n node.version++;\n },\n };\n})();\n\nfunction createWatch(fn, schedule, allowSignalWrites) {\n const node = Object.create(WATCH_NODE);\n if (allowSignalWrites) {\n node.consumerAllowSignalWrites = true;\n }\n node.fn = fn;\n node.schedule = schedule;\n const registerOnCleanup = (cleanupFn) => {\n node.cleanupFn = cleanupFn;\n };\n function isWatchNodeDestroyed(node) {\n return node.fn === null && node.schedule === null;\n }\n function destroyWatchNode(node) {\n if (!isWatchNodeDestroyed(node)) {\n consumerDestroy(node); // disconnect watcher from the reactive graph\n node.cleanupFn();\n // nullify references to the integration functions to mark node as destroyed\n node.fn = null;\n node.schedule = null;\n node.cleanupFn = NOOP_CLEANUP_FN;\n }\n }\n const run = () => {\n if (node.fn === null) {\n // trying to run a destroyed watch is noop\n return;\n }\n if (isInNotificationPhase()) {\n throw new Error(`Schedulers cannot synchronously execute watches while scheduling.`);\n }\n node.dirty = false;\n if (node.hasRun && !consumerPollProducersForChange(node)) {\n return;\n }\n node.hasRun = true;\n const prevConsumer = consumerBeforeComputation(node);\n try {\n node.cleanupFn();\n node.cleanupFn = NOOP_CLEANUP_FN;\n node.fn(registerOnCleanup);\n }\n finally {\n consumerAfterComputation(node, prevConsumer);\n }\n };\n node.ref = {\n notify: () => consumerMarkDirty(node),\n run,\n cleanup: () => node.cleanupFn(),\n destroy: () => destroyWatchNode(node),\n [SIGNAL]: node,\n };\n return node.ref;\n}\nconst NOOP_CLEANUP_FN = () => { };\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst WATCH_NODE = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n consumerIsAlwaysLive: true,\n consumerAllowSignalWrites: false,\n consumerMarkedDirty: (node) => {\n if (node.schedule !== null) {\n node.schedule(node.ref);\n }\n },\n hasRun: false,\n cleanupFn: NOOP_CLEANUP_FN,\n };\n})();\n\nfunction setAlternateWeakRefImpl(impl) {\n // TODO: remove this function\n}\n\n/**\n * Internal create application API that implements the core application creation logic and optional\n * bootstrap logic.\n *\n * Platforms (such as `platform-browser`) may require different set of application and platform\n * providers for an application to function correctly. As a result, platforms may use this function\n * internally and supply the necessary providers during the bootstrap, while exposing\n * platform-specific APIs as a part of their public API.\n *\n * @returns A promise that returns an `ApplicationRef` instance once resolved.\n */\nfunction internalCreateApplication(config) {\n try {\n const { rootComponent, appProviders, platformProviders } = config;\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && rootComponent !== undefined) {\n assertStandaloneComponentType(rootComponent);\n }\n const platformInjector = createOrReusePlatformInjector(platformProviders);\n // Create root application injector based on a set of providers configured at the platform\n // bootstrap level as well as providers passed to the bootstrap call by a user.\n const allAppProviders = [\n internalProvideZoneChangeDetection({}),\n { provide: ChangeDetectionScheduler, useExisting: ChangeDetectionSchedulerImpl },\n ...(appProviders || []),\n ];\n const adapter = new EnvironmentNgModuleRefAdapter({\n providers: allAppProviders,\n parent: platformInjector,\n debugName: typeof ngDevMode === 'undefined' || ngDevMode ? 'Environment Injector' : '',\n // We skip environment initializers because we need to run them inside the NgZone, which\n // happens after we get the NgZone instance from the Injector.\n runEnvironmentInitializers: false,\n });\n return bootstrap({\n r3Injector: adapter.injector,\n platformInjector,\n rootComponent,\n });\n }\n catch (e) {\n return Promise.reject(e);\n }\n}\n\n/** Apps in which we've enabled event replay.\n * This is to prevent initializing event replay more than once per app.\n */\nconst appsWithEventReplay = new WeakSet();\n/**\n * The key that represents all replayable elements that are not in defer blocks.\n */\nconst EAGER_CONTENT_LISTENERS_KEY = '';\n/**\n * A list of block events that need to be replayed\n */\nlet blockEventQueue = [];\n/**\n * Determines whether Event Replay feature should be activated on the client.\n */\nfunction shouldEnableEventReplay(injector) {\n return injector.get(IS_EVENT_REPLAY_ENABLED, EVENT_REPLAY_ENABLED_DEFAULT);\n}\n/**\n * Returns a set of providers required to setup support for event replay.\n * Requires hydration to be enabled separately.\n */\nfunction withEventReplay() {\n const providers = [\n {\n provide: IS_EVENT_REPLAY_ENABLED,\n useFactory: () => {\n let isEnabled = true;\n if (typeof ngServerMode === 'undefined' || !ngServerMode) {\n // Note: globalThis[CONTRACT_PROPERTY] may be undefined in case Event Replay feature\n // is enabled, but there are no events configured in this application, in which case\n // we don't activate this feature, since there are no events to replay.\n const appId = inject(APP_ID);\n isEnabled = !!window._ejsas?.[appId];\n }\n if (isEnabled) {\n performanceMarkFeature('NgEventReplay');\n }\n return isEnabled;\n },\n },\n ];\n if (typeof ngServerMode === 'undefined' || !ngServerMode) {\n providers.push({\n provide: ENVIRONMENT_INITIALIZER,\n useValue: () => {\n const injector = inject(Injector);\n const appRef = injector.get(ApplicationRef);\n // We have to check for the appRef here due to the possibility of multiple apps\n // being present on the same page. We only want to enable event replay for the\n // apps that actually want it.\n if (!appsWithEventReplay.has(appRef)) {\n const jsActionMap = inject(JSACTION_BLOCK_ELEMENT_MAP);\n if (shouldEnableEventReplay(injector)) {\n setStashFn((rEl, eventName, listenerFn) => {\n sharedStashFunction(rEl, eventName, listenerFn);\n sharedMapFunction(rEl, jsActionMap);\n });\n }\n }\n },\n multi: true,\n }, {\n provide: APP_BOOTSTRAP_LISTENER,\n useFactory: () => {\n const appId = inject(APP_ID);\n const injector = inject(Injector);\n const appRef = inject(ApplicationRef);\n return () => {\n // We have to check for the appRef here due to the possibility of multiple apps\n // being present on the same page. We only want to enable event replay for the\n // apps that actually want it.\n if (!shouldEnableEventReplay(injector) || appsWithEventReplay.has(appRef)) {\n return;\n }\n appsWithEventReplay.add(appRef);\n appRef.onDestroy(() => {\n appsWithEventReplay.delete(appRef);\n // Ensure that we're always safe calling this in the browser.\n if (typeof ngServerMode !== 'undefined' && !ngServerMode) {\n // `_ejsa` should be deleted when the app is destroyed, ensuring that\n // no elements are still captured in the global list and are not prevented\n // from being garbage collected.\n clearAppScopedEarlyEventContract(appId);\n // Clean up the reference to the function set by the environment initializer,\n // as the function closure may capture injected elements and prevent them\n // from being properly garbage collected.\n setStashFn(() => { });\n }\n });\n // Kick off event replay logic once hydration for the initial part\n // of the application is completed. This timing is similar to the unclaimed\n // dehydrated views cleanup timing.\n appRef.whenStable().then(() => {\n const eventContractDetails = injector.get(JSACTION_EVENT_CONTRACT);\n initEventReplay(eventContractDetails, injector);\n const jsActionMap = injector.get(JSACTION_BLOCK_ELEMENT_MAP);\n jsActionMap.get(EAGER_CONTENT_LISTENERS_KEY)?.forEach(removeListeners);\n jsActionMap.delete(EAGER_CONTENT_LISTENERS_KEY);\n const eventContract = eventContractDetails.instance;\n // This removes event listeners registered through the container manager,\n // as listeners registered on `document.body` might never be removed if we\n // don't clean up the contract.\n if (isIncrementalHydrationEnabled(injector)) {\n // When incremental hydration is enabled, we cannot clean up the event\n // contract immediately because we're unaware if there are any deferred\n // blocks to hydrate. We can only schedule a contract cleanup when the\n // app is destroyed.\n appRef.onDestroy(() => eventContract.cleanUp());\n }\n else {\n eventContract.cleanUp();\n }\n });\n };\n },\n multi: true,\n });\n }\n return providers;\n}\nconst initEventReplay = (eventDelegation, injector) => {\n const appId = injector.get(APP_ID);\n // This is set in packages/platform-server/src/utils.ts\n const earlyJsactionData = window._ejsas[appId];\n const eventContract = (eventDelegation.instance = new EventContract(new EventContractContainer(earlyJsactionData.c)));\n for (const et of earlyJsactionData.et) {\n eventContract.addEvent(et);\n }\n for (const et of earlyJsactionData.etc) {\n eventContract.addEvent(et);\n }\n const eventInfos = getAppScopedQueuedEventInfos(appId);\n eventContract.replayEarlyEventInfos(eventInfos);\n clearAppScopedEarlyEventContract(appId);\n const dispatcher = new EventDispatcher((event) => {\n invokeRegisteredReplayListeners(injector, event, event.currentTarget);\n });\n registerDispatcher(eventContract, dispatcher);\n};\n/**\n * Extracts information about all DOM events (added in a template) registered on elements in a give\n * LView. Maps collected events to a corresponding DOM element (an element is used as a key).\n */\nfunction collectDomEventsInfo(tView, lView, eventTypesToReplay) {\n const domEventsInfo = new Map();\n const lCleanup = lView[CLEANUP];\n const tCleanup = tView.cleanup;\n if (!tCleanup || !lCleanup) {\n return domEventsInfo;\n }\n for (let i = 0; i < tCleanup.length;) {\n const firstParam = tCleanup[i++];\n const secondParam = tCleanup[i++];\n if (typeof firstParam !== 'string') {\n continue;\n }\n const eventType = firstParam;\n if (!isEarlyEventType(eventType)) {\n continue;\n }\n if (isCaptureEventType(eventType)) {\n eventTypesToReplay.capture.add(eventType);\n }\n else {\n eventTypesToReplay.regular.add(eventType);\n }\n const listenerElement = unwrapRNode(lView[secondParam]);\n i++; // move the cursor to the next position (location of the listener idx)\n const useCaptureOrIndx = tCleanup[i++];\n // if useCaptureOrIndx is boolean then report it as is.\n // if useCaptureOrIndx is positive number then it in unsubscribe method\n // if useCaptureOrIndx is negative number then it is a Subscription\n const isDomEvent = typeof useCaptureOrIndx === 'boolean' || useCaptureOrIndx >= 0;\n if (!isDomEvent) {\n continue;\n }\n if (!domEventsInfo.has(listenerElement)) {\n domEventsInfo.set(listenerElement, [eventType]);\n }\n else {\n domEventsInfo.get(listenerElement).push(eventType);\n }\n }\n return domEventsInfo;\n}\nfunction invokeRegisteredReplayListeners(injector, event, currentTarget) {\n const blockName = (currentTarget && currentTarget.getAttribute(DEFER_BLOCK_SSR_ID_ATTRIBUTE)) ?? '';\n if (/d\\d+/.test(blockName)) {\n hydrateAndInvokeBlockListeners(blockName, injector, event, currentTarget);\n }\n else if (event.eventPhase === EventPhase.REPLAY) {\n invokeListeners(event, currentTarget);\n }\n}\nfunction hydrateAndInvokeBlockListeners(blockName, injector, event, currentTarget) {\n blockEventQueue.push({ event, currentTarget });\n triggerHydrationFromBlockName(injector, blockName, replayQueuedBlockEvents);\n}\nfunction replayQueuedBlockEvents(hydratedBlocks) {\n // clone the queue\n const queue = [...blockEventQueue];\n const hydrated = new Set(hydratedBlocks);\n // empty it\n blockEventQueue = [];\n for (let { event, currentTarget } of queue) {\n const blockName = currentTarget.getAttribute(DEFER_BLOCK_SSR_ID_ATTRIBUTE);\n if (hydrated.has(blockName)) {\n invokeListeners(event, currentTarget);\n }\n else {\n // requeue events that weren't yet hydrated\n blockEventQueue.push({ event, currentTarget });\n }\n }\n}\n\n/**\n * A collection that tracks all serialized views (`ngh` DOM annotations)\n * to avoid duplication. An attempt to add a duplicate view results in the\n * collection returning the index of the previously collected serialized view.\n * This reduces the number of annotations needed for a given page.\n */\nclass SerializedViewCollection {\n views = [];\n indexByContent = new Map();\n add(serializedView) {\n const viewAsString = JSON.stringify(serializedView);\n if (!this.indexByContent.has(viewAsString)) {\n const index = this.views.length;\n this.views.push(serializedView);\n this.indexByContent.set(viewAsString, index);\n return index;\n }\n return this.indexByContent.get(viewAsString);\n }\n getAll() {\n return this.views;\n }\n}\n/**\n * Global counter that is used to generate a unique id for TViews\n * during the serialization process.\n */\nlet tViewSsrId = 0;\n/**\n * Generates a unique id for a given TView and returns this id.\n * The id is also stored on this instance of a TView and reused in\n * subsequent calls.\n *\n * This id is needed to uniquely identify and pick up dehydrated views\n * at runtime.\n */\nfunction getSsrId(tView) {\n if (!tView.ssrId) {\n tView.ssrId = `t${tViewSsrId++}`;\n }\n return tView.ssrId;\n}\n/**\n * Computes the number of root nodes in a given view\n * (or child nodes in a given container if a tNode is provided).\n */\nfunction calcNumRootNodes(tView, lView, tNode) {\n const rootNodes = [];\n collectNativeNodes(tView, lView, tNode, rootNodes);\n return rootNodes.length;\n}\n/**\n * Computes the number of root nodes in all views in a given LContainer.\n */\nfunction calcNumRootNodesInLContainer(lContainer) {\n const rootNodes = [];\n collectNativeNodesInLContainer(lContainer, rootNodes);\n return rootNodes.length;\n}\n/**\n * Annotates root level component's LView for hydration,\n * see `annotateHostElementForHydration` for additional information.\n */\nfunction annotateComponentLViewForHydration(lView, context, injector) {\n const hostElement = lView[HOST];\n // Root elements might also be annotated with the `ngSkipHydration` attribute,\n // check if it's present before starting the serialization process.\n if (hostElement && !hostElement.hasAttribute(SKIP_HYDRATION_ATTR_NAME)) {\n return annotateHostElementForHydration(hostElement, lView, null, context);\n }\n return null;\n}\n/**\n * Annotates root level LContainer for hydration. This happens when a root component\n * injects ViewContainerRef, thus making the component an anchor for a view container.\n * This function serializes the component itself as well as all views from the view\n * container.\n */\nfunction annotateLContainerForHydration(lContainer, context, injector) {\n const componentLView = unwrapLView(lContainer[HOST]);\n // Serialize the root component itself.\n const componentLViewNghIndex = annotateComponentLViewForHydration(componentLView, context, injector);\n if (componentLViewNghIndex === null) {\n // Component was not serialized (for example, if hydration was skipped by adding\n // the `ngSkipHydration` attribute or this component uses i18n blocks in the template,\n // but `withI18nSupport()` was not added), avoid annotating host element with the `ngh`\n // attribute.\n return;\n }\n const hostElement = unwrapRNode(componentLView[HOST]);\n // Serialize all views within this view container.\n const rootLView = lContainer[PARENT];\n const rootLViewNghIndex = annotateHostElementForHydration(hostElement, rootLView, null, context);\n const renderer = componentLView[RENDERER];\n // For cases when a root component also acts as an anchor node for a ViewContainerRef\n // (for example, when ViewContainerRef is injected in a root component), there is a need\n // to serialize information about the component itself, as well as an LContainer that\n // represents this ViewContainerRef. Effectively, we need to serialize 2 pieces of info:\n // (1) hydration info for the root component itself and (2) hydration info for the\n // ViewContainerRef instance (an LContainer). Each piece of information is included into\n // the hydration data (in the TransferState object) separately, thus we end up with 2 ids.\n // Since we only have 1 root element, we encode both bits of info into a single string:\n // ids are separated by the `|` char (e.g. `10|25`, where `10` is the ngh for a component view\n // and 25 is the `ngh` for a root view which holds LContainer).\n const finalIndex = `${componentLViewNghIndex}|${rootLViewNghIndex}`;\n renderer.setAttribute(hostElement, NGH_ATTR_NAME, finalIndex);\n}\n/**\n * Annotates all components bootstrapped in a given ApplicationRef\n * with info needed for hydration.\n *\n * @param appRef An instance of an ApplicationRef.\n * @param doc A reference to the current Document instance.\n * @return event types that need to be replayed\n */\nfunction annotateForHydration(appRef, doc) {\n const injector = appRef.injector;\n const isI18nHydrationEnabledVal = isI18nHydrationEnabled(injector);\n const isIncrementalHydrationEnabledVal = isIncrementalHydrationEnabled(injector);\n const serializedViewCollection = new SerializedViewCollection();\n const corruptedTextNodes = new Map();\n const viewRefs = appRef._views;\n const shouldReplayEvents = injector.get(IS_EVENT_REPLAY_ENABLED, EVENT_REPLAY_ENABLED_DEFAULT);\n const eventTypesToReplay = {\n regular: new Set(),\n capture: new Set(),\n };\n const deferBlocks = new Map();\n const appId = appRef.injector.get(APP_ID);\n for (const viewRef of viewRefs) {\n const lNode = getLNodeForHydration(viewRef);\n // An `lView` might be `null` if a `ViewRef` represents\n // an embedded view (not a component view).\n if (lNode !== null) {\n const context = {\n serializedViewCollection,\n corruptedTextNodes,\n isI18nHydrationEnabled: isI18nHydrationEnabledVal,\n isIncrementalHydrationEnabled: isIncrementalHydrationEnabledVal,\n i18nChildren: new Map(),\n eventTypesToReplay,\n shouldReplayEvents,\n appId,\n deferBlocks,\n };\n if (isLContainer(lNode)) {\n annotateLContainerForHydration(lNode, context, injector);\n }\n else {\n annotateComponentLViewForHydration(lNode, context, injector);\n }\n insertCorruptedTextNodeMarkers(corruptedTextNodes, doc);\n }\n }\n // Note: we *always* include hydration info key and a corresponding value\n // into the TransferState, even if the list of serialized views is empty.\n // This is needed as a signal to the client that the server part of the\n // hydration logic was setup and enabled correctly. Otherwise, if a client\n // hydration doesn't find a key in the transfer state - an error is produced.\n const serializedViews = serializedViewCollection.getAll();\n const transferState = injector.get(TransferState);\n transferState.set(NGH_DATA_KEY, serializedViews);\n if (deferBlocks.size > 0) {\n const blocks = {};\n for (const [id, info] of deferBlocks.entries()) {\n blocks[id] = info;\n }\n transferState.set(NGH_DEFER_BLOCKS_KEY, blocks);\n }\n return eventTypesToReplay;\n}\n/**\n * Serializes the lContainer data into a list of SerializedView objects,\n * that represent views within this lContainer.\n *\n * @param lContainer the lContainer we are serializing\n * @param tNode the TNode that contains info about this LContainer\n * @param lView that hosts this LContainer\n * @param parentDeferBlockId the defer block id of the parent if it exists\n * @param context the hydration context\n * @returns an array of the `SerializedView` objects\n */\nfunction serializeLContainer(lContainer, tNode, lView, parentDeferBlockId, context) {\n const views = [];\n let lastViewAsString = '';\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n let childLView = lContainer[i];\n let template;\n let numRootNodes;\n let serializedView;\n if (isRootView(childLView)) {\n // If this is a root view, get an LView for the underlying component,\n // because it contains information about the view to serialize.\n childLView = childLView[HEADER_OFFSET];\n // If we have an LContainer at this position, this indicates that the\n // host element was used as a ViewContainerRef anchor (e.g. a `ViewContainerRef`\n // was injected within the component class). This case requires special handling.\n if (isLContainer(childLView)) {\n // Calculate the number of root nodes in all views in a given container\n // and increment by one to account for an anchor node itself, i.e. in this\n // scenario we'll have a layout that would look like this:\n // `<app-root /><#VIEW1><#VIEW2>...<!--container-->`\n // The `+1` is to capture the `<app-root />` element.\n numRootNodes = calcNumRootNodesInLContainer(childLView) + 1;\n annotateLContainerForHydration(childLView, context, lView[INJECTOR]);\n const componentLView = unwrapLView(childLView[HOST]);\n serializedView = {\n [TEMPLATE_ID]: componentLView[TVIEW].ssrId,\n [NUM_ROOT_NODES]: numRootNodes,\n };\n }\n }\n if (!serializedView) {\n const childTView = childLView[TVIEW];\n if (childTView.type === 1 /* TViewType.Component */) {\n template = childTView.ssrId;\n // This is a component view, thus it has only 1 root node: the component\n // host node itself (other nodes would be inside that host node).\n numRootNodes = 1;\n }\n else {\n template = getSsrId(childTView);\n numRootNodes = calcNumRootNodes(childTView, childLView, childTView.firstChild);\n }\n serializedView = {\n [TEMPLATE_ID]: template,\n [NUM_ROOT_NODES]: numRootNodes,\n };\n let isHydrateNeverBlock = false;\n // If this is a defer block, serialize extra info.\n if (isDeferBlock(lView[TVIEW], tNode)) {\n const lDetails = getLDeferBlockDetails(lView, tNode);\n const tDetails = getTDeferBlockDetails(lView[TVIEW], tNode);\n if (context.isIncrementalHydrationEnabled && tDetails.hydrateTriggers !== null) {\n const deferBlockId = `d${context.deferBlocks.size}`;\n if (tDetails.hydrateTriggers.has(7 /* DeferBlockTrigger.Never */)) {\n isHydrateNeverBlock = true;\n }\n let rootNodes = [];\n collectNativeNodesInLContainer(lContainer, rootNodes);\n // Add defer block into info context.deferBlocks\n const deferBlockInfo = {\n [NUM_ROOT_NODES]: rootNodes.length,\n [DEFER_BLOCK_STATE$1]: lDetails[DEFER_BLOCK_STATE],\n };\n const serializedTriggers = serializeHydrateTriggers(tDetails.hydrateTriggers);\n if (serializedTriggers.length > 0) {\n deferBlockInfo[DEFER_HYDRATE_TRIGGERS] = serializedTriggers;\n }\n if (parentDeferBlockId !== null) {\n // Serialize parent id only when it's present.\n deferBlockInfo[DEFER_PARENT_BLOCK_ID] = parentDeferBlockId;\n }\n context.deferBlocks.set(deferBlockId, deferBlockInfo);\n const node = unwrapRNode(lContainer);\n if (node !== undefined) {\n if (node.nodeType === Node.COMMENT_NODE) {\n annotateDeferBlockAnchorForHydration(node, deferBlockId);\n }\n }\n else {\n ngDevMode && validateNodeExists(node, childLView, tNode);\n ngDevMode &&\n validateMatchingNode(node, Node.COMMENT_NODE, null, childLView, tNode, true);\n annotateDeferBlockAnchorForHydration(node, deferBlockId);\n }\n if (!isHydrateNeverBlock) {\n // Add JSAction attributes for root nodes that use some hydration triggers\n annotateDeferBlockRootNodesWithJsAction(tDetails, rootNodes, deferBlockId, context);\n }\n // Use current block id as parent for nested routes.\n parentDeferBlockId = deferBlockId;\n // Serialize extra info into the view object.\n // TODO(incremental-hydration): this should be serialized and included at a different level\n // (not at the view level).\n serializedView[DEFER_BLOCK_ID] = deferBlockId;\n }\n // DEFER_BLOCK_STATE is used for reconciliation in hydration, both regular and incremental.\n // We need to know which template is rendered when hydrating. So we serialize this state\n // regardless of hydration type.\n serializedView[DEFER_BLOCK_STATE$1] = lDetails[DEFER_BLOCK_STATE];\n }\n if (!isHydrateNeverBlock) {\n Object.assign(serializedView, serializeLView(lContainer[i], parentDeferBlockId, context));\n }\n }\n // Check if the previous view has the same shape (for example, it was\n // produced by the *ngFor), in which case bump the counter on the previous\n // view instead of including the same information again.\n const currentViewAsString = JSON.stringify(serializedView);\n if (views.length > 0 && currentViewAsString === lastViewAsString) {\n const previousView = views[views.length - 1];\n previousView[MULTIPLIER] ??= 1;\n previousView[MULTIPLIER]++;\n }\n else {\n // Record this view as most recently added.\n lastViewAsString = currentViewAsString;\n views.push(serializedView);\n }\n }\n return views;\n}\nfunction serializeHydrateTriggers(triggerMap) {\n const serializableDeferBlockTrigger = new Set([\n 0 /* DeferBlockTrigger.Idle */,\n 1 /* DeferBlockTrigger.Immediate */,\n 2 /* DeferBlockTrigger.Viewport */,\n 5 /* DeferBlockTrigger.Timer */,\n ]);\n let triggers = [];\n for (let [trigger, details] of triggerMap) {\n if (serializableDeferBlockTrigger.has(trigger)) {\n if (details === null) {\n triggers.push(trigger);\n }\n else {\n triggers.push({ trigger, delay: details.delay });\n }\n }\n }\n return triggers;\n}\n/**\n * Helper function to produce a node path (which navigation steps runtime logic\n * needs to take to locate a node) and stores it in the `NODES` section of the\n * current serialized view.\n */\nfunction appendSerializedNodePath(ngh, tNode, lView, excludedParentNodes) {\n const noOffsetIndex = tNode.index - HEADER_OFFSET;\n ngh[NODES] ??= {};\n // Ensure we don't calculate the path multiple times.\n ngh[NODES][noOffsetIndex] ??= calcPathForNode(tNode, lView, excludedParentNodes);\n}\n/**\n * Helper function to append information about a disconnected node.\n * This info is needed at runtime to avoid DOM lookups for this element\n * and instead, the element would be created from scratch.\n */\nfunction appendDisconnectedNodeIndex(ngh, tNodeOrNoOffsetIndex) {\n const noOffsetIndex = typeof tNodeOrNoOffsetIndex === 'number'\n ? tNodeOrNoOffsetIndex\n : tNodeOrNoOffsetIndex.index - HEADER_OFFSET;\n ngh[DISCONNECTED_NODES] ??= [];\n if (!ngh[DISCONNECTED_NODES].includes(noOffsetIndex)) {\n ngh[DISCONNECTED_NODES].push(noOffsetIndex);\n }\n}\n/**\n * Serializes the lView data into a SerializedView object that will later be added\n * to the TransferState storage and referenced using the `ngh` attribute on a host\n * element.\n *\n * @param lView the lView we are serializing\n * @param context the hydration context\n * @returns the `SerializedView` object containing the data to be added to the host node\n */\nfunction serializeLView(lView, parentDeferBlockId = null, context) {\n const ngh = {};\n const tView = lView[TVIEW];\n const i18nChildren = getOrComputeI18nChildren(tView, context);\n const nativeElementsToEventTypes = context.shouldReplayEvents\n ? collectDomEventsInfo(tView, lView, context.eventTypesToReplay)\n : null;\n // Iterate over DOM element references in an LView.\n for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n const tNode = tView.data[i];\n const noOffsetIndex = i - HEADER_OFFSET;\n // Attempt to serialize any i18n data for the given slot. We do this first, as i18n\n // has its own process for serialization.\n const i18nData = trySerializeI18nBlock(lView, i, context);\n if (i18nData) {\n ngh[I18N_DATA] ??= {};\n ngh[I18N_DATA][noOffsetIndex] = i18nData.caseQueue;\n for (const nodeNoOffsetIndex of i18nData.disconnectedNodes) {\n appendDisconnectedNodeIndex(ngh, nodeNoOffsetIndex);\n }\n for (const nodeNoOffsetIndex of i18nData.disjointNodes) {\n const tNode = tView.data[nodeNoOffsetIndex + HEADER_OFFSET];\n ngDevMode && assertTNode(tNode);\n appendSerializedNodePath(ngh, tNode, lView, i18nChildren);\n }\n continue;\n }\n // Skip processing of a given slot in the following cases:\n // - Local refs (e.g. <div #localRef>) take up an extra slot in LViews\n // to store the same element. In this case, there is no information in\n // a corresponding slot in TNode data structure.\n // - When a slot contains something other than a TNode. For example, there\n // might be some metadata information about a defer block or a control flow block.\n if (!isTNodeShape(tNode)) {\n continue;\n }\n // Skip any nodes that are in an i18n block but are considered detached (i.e. not\n // present in the template). These nodes are disconnected from the DOM tree, and\n // so we don't want to serialize any information about them.\n if (isDetachedByI18n(tNode)) {\n continue;\n }\n // Check if a native node that represents a given TNode is disconnected from the DOM tree.\n // Such nodes must be excluded from the hydration (since the hydration won't be able to\n // find them), so the TNode ids are collected and used at runtime to skip the hydration.\n //\n // This situation may happen during the content projection, when some nodes don't make it\n // into one of the content projection slots (for example, when there is no default\n // <ng-content /> slot in projector component's template).\n if (isDisconnectedNode(tNode, lView) && isContentProjectedNode(tNode)) {\n appendDisconnectedNodeIndex(ngh, tNode);\n continue;\n }\n if (Array.isArray(tNode.projection)) {\n for (const projectionHeadTNode of tNode.projection) {\n // We may have `null`s in slots with no projected content.\n if (!projectionHeadTNode)\n continue;\n if (!Array.isArray(projectionHeadTNode)) {\n // If we process re-projected content (i.e. `<ng-content>`\n // appears at projection location), skip annotations for this content\n // since all DOM nodes in this projection were handled while processing\n // a parent lView, which contains those nodes.\n if (!isProjectionTNode(projectionHeadTNode) &&\n !isInSkipHydrationBlock(projectionHeadTNode)) {\n if (isDisconnectedNode(projectionHeadTNode, lView)) {\n // Check whether this node is connected, since we may have a TNode\n // in the data structure as a projection segment head, but the\n // content projection slot might be disabled (e.g.\n // <ng-content *ngIf=\"false\" />).\n appendDisconnectedNodeIndex(ngh, projectionHeadTNode);\n }\n else {\n appendSerializedNodePath(ngh, projectionHeadTNode, lView, i18nChildren);\n }\n }\n }\n else {\n // If a value is an array, it means that we are processing a projection\n // where projectable nodes were passed in as DOM nodes (for example, when\n // calling `ViewContainerRef.createComponent(CmpA, {projectableNodes: [...]})`).\n //\n // In this scenario, nodes can come from anywhere (either created manually,\n // accessed via `document.querySelector`, etc) and may be in any state\n // (attached or detached from the DOM tree). As a result, we can not reliably\n // restore the state for such cases during hydration.\n throw unsupportedProjectionOfDomNodes(unwrapRNode(lView[i]));\n }\n }\n }\n conditionallyAnnotateNodePath(ngh, tNode, lView, i18nChildren);\n if (isLContainer(lView[i])) {\n // Serialize information about a template.\n const embeddedTView = tNode.tView;\n if (embeddedTView !== null) {\n ngh[TEMPLATES] ??= {};\n ngh[TEMPLATES][noOffsetIndex] = getSsrId(embeddedTView);\n }\n // Serialize views within this LContainer.\n const hostNode = lView[i][HOST]; // host node of this container\n // LView[i][HOST] can be of 2 different types:\n // - either a DOM node\n // - or an array that represents an LView of a component\n if (Array.isArray(hostNode)) {\n // This is a component, serialize info about it.\n const targetNode = unwrapRNode(hostNode);\n if (!targetNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME)) {\n annotateHostElementForHydration(targetNode, hostNode, parentDeferBlockId, context);\n }\n }\n ngh[CONTAINERS] ??= {};\n ngh[CONTAINERS][noOffsetIndex] = serializeLContainer(lView[i], tNode, lView, parentDeferBlockId, context);\n }\n else if (Array.isArray(lView[i]) && !isLetDeclaration(tNode)) {\n // This is a component, annotate the host node with an `ngh` attribute.\n // Note: Let declarations that return an array are also storing an array in the LView,\n // we need to exclude them.\n const targetNode = unwrapRNode(lView[i][HOST]);\n if (!targetNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME)) {\n annotateHostElementForHydration(targetNode, lView[i], parentDeferBlockId, context);\n }\n }\n else {\n // <ng-container> case\n if (tNode.type & 8 /* TNodeType.ElementContainer */) {\n // An <ng-container> is represented by the number of\n // top-level nodes. This information is needed to skip over\n // those nodes to reach a corresponding anchor node (comment node).\n ngh[ELEMENT_CONTAINERS] ??= {};\n ngh[ELEMENT_CONTAINERS][noOffsetIndex] = calcNumRootNodes(tView, lView, tNode.child);\n }\n else if (tNode.type & (16 /* TNodeType.Projection */ | 128 /* TNodeType.LetDeclaration */)) {\n // Current TNode represents an `<ng-content>` slot or `@let` declaration,\n // thus it has no DOM elements associated with it, so the **next sibling**\n // node would not be able to find an anchor. In this case, use full path instead.\n let nextTNode = tNode.next;\n // Skip over all `<ng-content>` slots and `@let` declarations in a row.\n while (nextTNode !== null &&\n nextTNode.type & (16 /* TNodeType.Projection */ | 128 /* TNodeType.LetDeclaration */)) {\n nextTNode = nextTNode.next;\n }\n if (nextTNode && !isInSkipHydrationBlock(nextTNode)) {\n // Handle a tNode after the `<ng-content>` slot.\n appendSerializedNodePath(ngh, nextTNode, lView, i18nChildren);\n }\n }\n else if (tNode.type & 1 /* TNodeType.Text */) {\n const rNode = unwrapRNode(lView[i]);\n processTextNodeBeforeSerialization(context, rNode);\n }\n }\n // Attach `jsaction` attribute to elements that have registered listeners,\n // thus potentially having a need to do an event replay.\n if (nativeElementsToEventTypes && tNode.type & 2 /* TNodeType.Element */) {\n const nativeElement = unwrapRNode(lView[i]);\n if (nativeElementsToEventTypes.has(nativeElement)) {\n setJSActionAttributes(nativeElement, nativeElementsToEventTypes.get(nativeElement), parentDeferBlockId);\n }\n }\n }\n return ngh;\n}\n/**\n * Serializes node location in cases when it's needed, specifically:\n *\n * 1. If `tNode.projectionNext` is different from `tNode.next` - it means that\n * the next `tNode` after projection is different from the one in the original\n * template. Since hydration relies on `tNode.next`, this serialized info\n * is required to help runtime code find the node at the correct location.\n * 2. In certain content projection-based use-cases, it's possible that only\n * a content of a projected element is rendered. In this case, content nodes\n * require an extra annotation, since runtime logic can't rely on parent-child\n * connection to identify the location of a node.\n */\nfunction conditionallyAnnotateNodePath(ngh, tNode, lView, excludedParentNodes) {\n if (isProjectionTNode(tNode)) {\n // Do not annotate projection nodes (<ng-content />), since\n // they don't have a corresponding DOM node representing them.\n return;\n }\n // Handle case #1 described above.\n if (tNode.projectionNext &&\n tNode.projectionNext !== tNode.next &&\n !isInSkipHydrationBlock(tNode.projectionNext)) {\n appendSerializedNodePath(ngh, tNode.projectionNext, lView, excludedParentNodes);\n }\n // Handle case #2 described above.\n // Note: we only do that for the first node (i.e. when `tNode.prev === null`),\n // the rest of the nodes would rely on the current node location, so no extra\n // annotation is needed.\n if (tNode.prev === null &&\n tNode.parent !== null &&\n isDisconnectedNode(tNode.parent, lView) &&\n !isDisconnectedNode(tNode, lView)) {\n appendSerializedNodePath(ngh, tNode, lView, excludedParentNodes);\n }\n}\n/**\n * Determines whether a component instance that is represented\n * by a given LView uses `ViewEncapsulation.ShadowDom`.\n */\nfunction componentUsesShadowDomEncapsulation(lView) {\n const instance = lView[CONTEXT];\n return instance?.constructor\n ? getComponentDef(instance.constructor)?.encapsulation === ViewEncapsulation.ShadowDom\n : false;\n}\n/**\n * Annotates component host element for hydration:\n * - by either adding the `ngh` attribute and collecting hydration-related info\n * for the serialization and transferring to the client\n * - or by adding the `ngSkipHydration` attribute in case Angular detects that\n * component contents is not compatible with hydration.\n *\n * @param element The Host element to be annotated\n * @param lView The associated LView\n * @param context The hydration context\n * @returns An index of serialized view from the transfer state object\n * or `null` when a given component can not be serialized.\n */\nfunction annotateHostElementForHydration(element, lView, parentDeferBlockId, context) {\n const renderer = lView[RENDERER];\n if ((hasI18n(lView) && !isI18nHydrationSupportEnabled()) ||\n componentUsesShadowDomEncapsulation(lView)) {\n // Attach the skip hydration attribute if this component:\n // - either has i18n blocks, since hydrating such blocks is not yet supported\n // - or uses ShadowDom view encapsulation, since Domino doesn't support\n // shadow DOM, so we can not guarantee that client and server representations\n // would exactly match\n renderer.setAttribute(element, SKIP_HYDRATION_ATTR_NAME, '');\n return null;\n }\n else {\n const ngh = serializeLView(lView, parentDeferBlockId, context);\n const index = context.serializedViewCollection.add(ngh);\n renderer.setAttribute(element, NGH_ATTR_NAME, index.toString());\n return index;\n }\n}\n/**\n * Annotates defer block comment node for hydration:\n *\n * @param comment The Host element to be annotated\n * @param deferBlockId the id of the target defer block\n */\nfunction annotateDeferBlockAnchorForHydration(comment, deferBlockId) {\n comment.textContent = `ngh=${deferBlockId}`;\n}\n/**\n * Physically inserts the comment nodes to ensure empty text nodes and adjacent\n * text node separators are preserved after server serialization of the DOM.\n * These get swapped back for empty text nodes or separators once hydration happens\n * on the client.\n *\n * @param corruptedTextNodes The Map of text nodes to be replaced with comments\n * @param doc The document\n */\nfunction insertCorruptedTextNodeMarkers(corruptedTextNodes, doc) {\n for (const [textNode, marker] of corruptedTextNodes) {\n textNode.after(doc.createComment(marker));\n }\n}\n/**\n * Detects whether a given TNode represents a node that\n * is being content projected.\n */\nfunction isContentProjectedNode(tNode) {\n let currentTNode = tNode;\n while (currentTNode != null) {\n // If we come across a component host node in parent nodes -\n // this TNode is in the content projection section.\n if (isComponentHost(currentTNode)) {\n return true;\n }\n currentTNode = currentTNode.parent;\n }\n return false;\n}\n/**\n * Incremental hydration requires that any defer block root node\n * with interaction or hover triggers have all of their root nodes\n * trigger hydration with those events. So we need to make sure all\n * the root nodes of that block have the proper jsaction attribute\n * to ensure hydration is triggered, since the content is dehydrated\n */\nfunction annotateDeferBlockRootNodesWithJsAction(tDetails, rootNodes, parentDeferBlockId, context) {\n const actionList = convertHydrateTriggersToJsAction(tDetails.hydrateTriggers);\n for (let et of actionList) {\n context.eventTypesToReplay.regular.add(et);\n }\n if (actionList.length > 0) {\n const elementNodes = rootNodes.filter((rn) => rn.nodeType === Node.ELEMENT_NODE);\n for (let rNode of elementNodes) {\n setJSActionAttributes(rNode, actionList, parentDeferBlockId);\n }\n }\n}\n\n/**\n * Indicates whether the hydration-related code was added,\n * prevents adding it multiple times.\n */\nlet isHydrationSupportEnabled = false;\n/**\n * Indicates whether the i18n-related code was added,\n * prevents adding it multiple times.\n *\n * Note: This merely controls whether the code is loaded,\n * while `setIsI18nHydrationSupportEnabled` determines\n * whether i18n blocks are serialized or hydrated.\n */\nlet isI18nHydrationRuntimeSupportEnabled = false;\n/**\n * Indicates whether the incremental hydration code was added,\n * prevents adding it multiple times.\n */\nlet isIncrementalHydrationRuntimeSupportEnabled = false;\n/**\n * Defines a period of time that Angular waits for the `ApplicationRef.isStable` to emit `true`.\n * If there was no event with the `true` value during this time, Angular reports a warning.\n */\nconst APPLICATION_IS_STABLE_TIMEOUT = 10_000;\n/**\n * Brings the necessary hydration code in tree-shakable manner.\n * The code is only present when the `provideClientHydration` is\n * invoked. Otherwise, this code is tree-shaken away during the\n * build optimization step.\n *\n * This technique allows us to swap implementations of methods so\n * tree shaking works appropriately when hydration is disabled or\n * enabled. It brings in the appropriate version of the method that\n * supports hydration only when enabled.\n */\nfunction enableHydrationRuntimeSupport() {\n if (!isHydrationSupportEnabled) {\n isHydrationSupportEnabled = true;\n enableRetrieveHydrationInfoImpl();\n enableLocateOrCreateElementNodeImpl();\n enableLocateOrCreateTextNodeImpl();\n enableLocateOrCreateElementContainerNodeImpl();\n enableLocateOrCreateContainerAnchorImpl();\n enableLocateOrCreateContainerRefImpl();\n enableFindMatchingDehydratedViewImpl();\n enableApplyRootElementTransformImpl();\n }\n}\n/**\n * Brings the necessary i18n hydration code in tree-shakable manner.\n * Similar to `enableHydrationRuntimeSupport`, the code is only\n * present when `withI18nSupport` is invoked.\n */\nfunction enableI18nHydrationRuntimeSupport() {\n if (!isI18nHydrationRuntimeSupportEnabled) {\n isI18nHydrationRuntimeSupportEnabled = true;\n enableLocateOrCreateI18nNodeImpl();\n enablePrepareI18nBlockForHydrationImpl();\n enableClaimDehydratedIcuCaseImpl();\n }\n}\n/**\n * Brings the necessary incremental hydration code in tree-shakable manner.\n * Similar to `enableHydrationRuntimeSupport`, the code is only\n * present when `enableIncrementalHydrationRuntimeSupport` is invoked.\n */\nfunction enableIncrementalHydrationRuntimeSupport() {\n if (!isIncrementalHydrationRuntimeSupportEnabled) {\n isIncrementalHydrationRuntimeSupportEnabled = true;\n enableRetrieveDeferBlockDataImpl();\n }\n}\n/**\n * Outputs a message with hydration stats into a console.\n */\nfunction printHydrationStats(injector) {\n const console = injector.get(Console);\n const message = `Angular hydrated ${ngDevMode.hydratedComponents} component(s) ` +\n `and ${ngDevMode.hydratedNodes} node(s), ` +\n `${ngDevMode.componentsSkippedHydration} component(s) were skipped. ` +\n (isIncrementalHydrationEnabled(injector)\n ? `${ngDevMode.deferBlocksWithIncrementalHydration} defer block(s) were configured to use incremental hydration. `\n : '') +\n `Learn more at https://angular.dev/guide/hydration.`;\n // tslint:disable-next-line:no-console\n console.log(message);\n}\n/**\n * Returns a Promise that is resolved when an application becomes stable.\n */\nfunction whenStableWithTimeout(appRef) {\n const whenStablePromise = appRef.whenStable();\n if (typeof ngDevMode !== 'undefined' && ngDevMode) {\n const timeoutTime = APPLICATION_IS_STABLE_TIMEOUT;\n const console = appRef.injector.get(Console);\n const ngZone = appRef.injector.get(NgZone);\n // The following call should not and does not prevent the app to become stable\n // We cannot use RxJS timer here because the app would remain unstable.\n // This also avoids an extra change detection cycle.\n const timeoutId = ngZone.runOutsideAngular(() => {\n return setTimeout(() => logWarningOnStableTimedout(timeoutTime, console), timeoutTime);\n });\n whenStablePromise.finally(() => clearTimeout(timeoutId));\n }\n return whenStablePromise;\n}\n/**\n * Defines a name of an attribute that is added to the <body> tag\n * in the `index.html` file in case a given route was configured\n * with `RenderMode.Client`. 'cm' is an abbreviation for \"Client Mode\".\n */\nconst CLIENT_RENDER_MODE_FLAG = 'ngcm';\n/**\n * Checks whether the `RenderMode.Client` was defined for the current route.\n */\nfunction isClientRenderModeEnabled() {\n const doc = getDocument();\n return ((typeof ngServerMode === 'undefined' || !ngServerMode) &&\n doc.body.hasAttribute(CLIENT_RENDER_MODE_FLAG));\n}\n/**\n * Returns a set of providers required to setup hydration support\n * for an application that is server side rendered. This function is\n * included into the `provideClientHydration` public API function from\n * the `platform-browser` package.\n *\n * The function sets up an internal flag that would be recognized during\n * the server side rendering time as well, so there is no need to\n * configure or change anything in NgUniversal to enable the feature.\n */\nfunction withDomHydration() {\n const providers = [\n {\n provide: IS_HYDRATION_DOM_REUSE_ENABLED,\n useFactory: () => {\n let isEnabled = true;\n if (typeof ngServerMode === 'undefined' || !ngServerMode) {\n // On the client, verify that the server response contains\n // hydration annotations. Otherwise, keep hydration disabled.\n const transferState = inject(TransferState, { optional: true });\n isEnabled = !!transferState?.get(NGH_DATA_KEY, null);\n }\n if (isEnabled) {\n performanceMarkFeature('NgHydration');\n }\n return isEnabled;\n },\n },\n {\n provide: ENVIRONMENT_INITIALIZER,\n useValue: () => {\n // i18n support is enabled by calling withI18nSupport(), but there's\n // no way to turn it off (e.g. for tests), so we turn it off by default.\n setIsI18nHydrationSupportEnabled(false);\n if (typeof ngServerMode !== 'undefined' && ngServerMode) {\n // Since this function is used across both server and client,\n // make sure that the runtime code is only added when invoked\n // on the client (see the `enableHydrationRuntimeSupport` function\n // call below).\n return;\n }\n if (inject(IS_HYDRATION_DOM_REUSE_ENABLED)) {\n verifySsrContentsIntegrity();\n enableHydrationRuntimeSupport();\n }\n else if (typeof ngDevMode !== 'undefined' && ngDevMode && !isClientRenderModeEnabled()) {\n const console = inject(Console);\n const message = formatRuntimeError(-505 /* RuntimeErrorCode.MISSING_HYDRATION_ANNOTATIONS */, 'Angular hydration was requested on the client, but there was no ' +\n 'serialized information present in the server response, ' +\n 'thus hydration was not enabled. ' +\n 'Make sure the `provideClientHydration()` is included into the list ' +\n 'of providers in the server part of the application configuration.');\n console.warn(message);\n }\n },\n multi: true,\n },\n ];\n if (typeof ngServerMode === 'undefined' || !ngServerMode) {\n providers.push({\n provide: PRESERVE_HOST_CONTENT,\n useFactory: () => {\n // Preserve host element content only in a browser\n // environment and when hydration is configured properly.\n // On a server, an application is rendered from scratch,\n // so the host content needs to be empty.\n return inject(IS_HYDRATION_DOM_REUSE_ENABLED);\n },\n }, {\n provide: APP_BOOTSTRAP_LISTENER,\n useFactory: () => {\n if (inject(IS_HYDRATION_DOM_REUSE_ENABLED)) {\n const appRef = inject(ApplicationRef);\n return () => {\n // Wait until an app becomes stable and cleanup all views that\n // were not claimed during the application bootstrap process.\n // The timing is similar to when we start the serialization process\n // on the server.\n //\n // Note: the cleanup task *MUST* be scheduled within the Angular zone in Zone apps\n // to ensure that change detection is properly run afterward.\n whenStableWithTimeout(appRef).then(() => {\n // Note: we have to check whether the application is destroyed before\n // performing other operations with the `injector`.\n // The application may be destroyed **before** it becomes stable, so when\n // the `whenStableWithTimeout` resolves, the injector might already be in\n // a destroyed state. Thus, calling `injector.get` would throw an error\n // indicating that the injector has already been destroyed.\n if (appRef.destroyed) {\n return;\n }\n cleanupDehydratedViews(appRef);\n if (typeof ngDevMode !== 'undefined' && ngDevMode) {\n countBlocksSkippedByHydration(appRef.injector);\n printHydrationStats(appRef.injector);\n }\n });\n };\n }\n return () => { }; // noop\n },\n multi: true,\n });\n }\n return makeEnvironmentProviders(providers);\n}\n/**\n * Returns a set of providers required to setup support for i18n hydration.\n * Requires hydration to be enabled separately.\n */\nfunction withI18nSupport() {\n return [\n {\n provide: IS_I18N_HYDRATION_ENABLED,\n useFactory: () => inject(IS_HYDRATION_DOM_REUSE_ENABLED),\n },\n {\n provide: ENVIRONMENT_INITIALIZER,\n useValue: () => {\n if (inject(IS_HYDRATION_DOM_REUSE_ENABLED)) {\n enableI18nHydrationRuntimeSupport();\n setIsI18nHydrationSupportEnabled(true);\n performanceMarkFeature('NgI18nHydration');\n }\n },\n multi: true,\n },\n ];\n}\n/**\n * Returns a set of providers required to setup support for incremental hydration.\n * Requires hydration to be enabled separately.\n * Enabling incremental hydration also enables event replay for the entire app.\n *\n * @developerPreview\n */\nfunction withIncrementalHydration() {\n const providers = [\n withEventReplay(),\n {\n provide: IS_INCREMENTAL_HYDRATION_ENABLED,\n useValue: true,\n },\n {\n provide: DEHYDRATED_BLOCK_REGISTRY,\n useClass: DehydratedBlockRegistry,\n },\n {\n provide: ENVIRONMENT_INITIALIZER,\n useValue: () => {\n enableIncrementalHydrationRuntimeSupport();\n performanceMarkFeature('NgIncrementalHydration');\n },\n multi: true,\n },\n ];\n if (typeof ngServerMode === 'undefined' || !ngServerMode) {\n providers.push({\n provide: APP_BOOTSTRAP_LISTENER,\n useFactory: () => {\n const injector = inject(Injector);\n const doc = getDocument();\n return () => {\n const deferBlockData = processBlockData(injector);\n const commentsByBlockId = gatherDeferBlocksCommentNodes(doc, doc.body);\n processAndInitTriggers(injector, deferBlockData, commentsByBlockId);\n appendDeferBlocksToJSActionMap(doc, injector);\n };\n },\n multi: true,\n });\n }\n return providers;\n}\n/**\n *\n * @param time The time in ms until the stable timedout warning message is logged\n */\nfunction logWarningOnStableTimedout(time, console) {\n const message = `Angular hydration expected the ApplicationRef.isStable() to emit \\`true\\`, but it ` +\n `didn't happen within ${time}ms. Angular hydration logic depends on the application becoming stable ` +\n `as a signal to complete hydration process.`;\n console.warn(formatRuntimeError(-506 /* RuntimeErrorCode.HYDRATION_STABLE_TIMEDOUT */, message));\n}\n/**\n * Verifies whether the DOM contains a special marker added during SSR time to make sure\n * there is no SSR'ed contents transformations happen after SSR is completed. Typically that\n * happens either by CDN or during the build process as an optimization to remove comment nodes.\n * Hydration process requires comment nodes produced by Angular to locate correct DOM segments.\n * When this special marker is *not* present - throw an error and do not proceed with hydration,\n * since it will not be able to function correctly.\n *\n * Note: this function is invoked only on the client, so it's safe to use DOM APIs.\n */\nfunction verifySsrContentsIntegrity() {\n const doc = getDocument();\n let hydrationMarker;\n for (const node of doc.body.childNodes) {\n if (node.nodeType === Node.COMMENT_NODE &&\n node.textContent?.trim() === SSR_CONTENT_INTEGRITY_MARKER) {\n hydrationMarker = node;\n break;\n }\n }\n if (!hydrationMarker) {\n throw new RuntimeError(-507 /* RuntimeErrorCode.MISSING_SSR_CONTENT_INTEGRITY_MARKER */, typeof ngDevMode !== 'undefined' &&\n ngDevMode &&\n 'Angular hydration logic detected that HTML content of this page was modified after it ' +\n 'was produced during server side rendering. Make sure that there are no optimizations ' +\n 'that remove comment nodes from HTML enabled on your CDN. Angular hydration ' +\n 'relies on HTML produced by the server, including whitespaces and comment nodes.');\n }\n}\n\n/**\n * Transforms a value (typically a string) to a boolean.\n * Intended to be used as a transform function of an input.\n *\n * @usageNotes\n * ```ts\n * @Input({ transform: booleanAttribute }) status!: boolean;\n * ```\n * @param value Value to be transformed.\n *\n * @publicApi\n */\nfunction booleanAttribute(value) {\n return typeof value === 'boolean' ? value : value != null && value !== 'false';\n}\n/**\n * Transforms a value (typically a string) to a number.\n * Intended to be used as a transform function of an input.\n * @param value Value to be transformed.\n * @param fallbackValue Value to use if the provided value can't be parsed as a number.\n *\n * @usageNotes\n * ```ts\n * @Input({ transform: numberAttribute }) id!: number;\n * ```\n *\n * @publicApi\n */\nfunction numberAttribute(value, fallbackValue = NaN) {\n // parseFloat(value) handles most of the cases we're interested in (it treats null, empty string,\n // and other non-number values as NaN, where Number just uses 0) but it considers the string\n // '123hello' to be a valid number. Therefore we also check if Number(value) is NaN.\n const isNumberValue = !isNaN(parseFloat(value)) && !isNaN(Number(value));\n return isNumberValue ? Number(value) : fallbackValue;\n}\n\nconst PERFORMANCE_MARK_PREFIX = '🅰️';\nlet enablePerfLogging = false;\n/**\n * Function that will start measuring against the performance API\n * Should be used in pair with stopMeasuring\n */\nfunction startMeasuring(label) {\n if (!enablePerfLogging) {\n return;\n }\n const { startLabel } = labels(label);\n /* tslint:disable:ban */\n performance.mark(startLabel);\n /* tslint:enable:ban */\n}\n/**\n * Function that will stop measuring against the performance API\n * Should be used in pair with stopMeasuring\n */\nfunction stopMeasuring(label) {\n if (!enablePerfLogging) {\n return;\n }\n const { startLabel, labelName, endLabel } = labels(label);\n /* tslint:disable:ban */\n performance.mark(endLabel);\n performance.measure(labelName, startLabel, endLabel);\n performance.clearMarks(startLabel);\n performance.clearMarks(endLabel);\n /* tslint:enable:ban */\n}\nfunction labels(label) {\n const labelName = `${PERFORMANCE_MARK_PREFIX}:${label}`;\n return {\n labelName,\n startLabel: `start:${labelName}`,\n endLabel: `end:${labelName}`,\n };\n}\nlet warningLogged = false;\n/**\n * This enables an internal performance profiler\n *\n * It should not be imported in application code\n */\nfunction enableProfiling() {\n if (!warningLogged &&\n (typeof performance === 'undefined' || !performance.mark || !performance.measure)) {\n warningLogged = true;\n console.warn('Performance API is not supported on this platform');\n return;\n }\n enablePerfLogging = true;\n}\nfunction disableProfiling() {\n enablePerfLogging = false;\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Gets the class name of the closest component to a node.\n * Warning! this function will return minified names if the name of the component is minified. The\n * consumer of the function is responsible for resolving the minified name to its original name.\n * @param node Node from which to start the search.\n */\nfunction getClosestComponentName(node) {\n let currentNode = node;\n while (currentNode) {\n const lView = readPatchedLView(currentNode);\n if (lView !== null) {\n for (let i = HEADER_OFFSET; i < lView.length; i++) {\n const current = lView[i];\n if ((!isLView(current) && !isLContainer(current)) || current[HOST] !== currentNode) {\n continue;\n }\n const tView = lView[TVIEW];\n const tNode = getTNode(tView, i);\n if (isComponentHost(tNode)) {\n const def = tView.data[tNode.directiveStart + tNode.componentOffset];\n const name = def.debugInfo?.className || def.type.name;\n // Note: the name may be an empty string if the class name is\n // dropped due to minification. In such cases keep going up the tree.\n if (name) {\n return name;\n }\n else {\n break;\n }\n }\n }\n }\n currentNode = currentNode.parentNode;\n }\n return null;\n}\n\n/**\n * Compiles a partial directive declaration object into a full directive definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareDirective(decl) {\n const compiler = getCompilerFacade({\n usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n kind: 'directive',\n type: decl.type,\n });\n return compiler.compileDirectiveDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵfac.js`, decl);\n}\n/**\n * Evaluates the class metadata declaration.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareClassMetadata(decl) {\n setClassMetadata(decl.type, decl.decorators, decl.ctorParameters ?? null, decl.propDecorators ?? null);\n}\n/**\n * Evaluates the class metadata of a component that contains deferred blocks.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareClassMetadataAsync(decl) {\n setClassMetadataAsync(decl.type, decl.resolveDeferredDeps, (...types) => {\n const meta = decl.resolveMetadata(...types);\n setClassMetadata(decl.type, meta.decorators, meta.ctorParameters, meta.propDecorators);\n });\n}\n/**\n * Compiles a partial component declaration object into a full component definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareComponent(decl) {\n const compiler = getCompilerFacade({\n usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n kind: 'component',\n type: decl.type,\n });\n return compiler.compileComponentDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵcmp.js`, decl);\n}\n/**\n * Compiles a partial pipe declaration object into a full pipe definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareFactory(decl) {\n const compiler = getCompilerFacade({\n usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n kind: getFactoryKind(decl.target),\n type: decl.type,\n });\n return compiler.compileFactoryDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵfac.js`, decl);\n}\nfunction getFactoryKind(target) {\n switch (target) {\n case FactoryTarget.Directive:\n return 'directive';\n case FactoryTarget.Component:\n return 'component';\n case FactoryTarget.Injectable:\n return 'injectable';\n case FactoryTarget.Pipe:\n return 'pipe';\n case FactoryTarget.NgModule:\n return 'NgModule';\n }\n}\n/**\n * Compiles a partial injectable declaration object into a full injectable definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareInjectable(decl) {\n const compiler = getCompilerFacade({\n usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n kind: 'injectable',\n type: decl.type,\n });\n return compiler.compileInjectableDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵprov.js`, decl);\n}\n/**\n * Compiles a partial injector declaration object into a full injector definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareInjector(decl) {\n const compiler = getCompilerFacade({\n usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n kind: 'NgModule',\n type: decl.type,\n });\n return compiler.compileInjectorDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵinj.js`, decl);\n}\n/**\n * Compiles a partial NgModule declaration object into a full NgModule definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareNgModule(decl) {\n const compiler = getCompilerFacade({\n usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n kind: 'NgModule',\n type: decl.type,\n });\n return compiler.compileNgModuleDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵmod.js`, decl);\n}\n/**\n * Compiles a partial pipe declaration object into a full pipe definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclarePipe(decl) {\n const compiler = getCompilerFacade({\n usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n kind: 'pipe',\n type: decl.type,\n });\n return compiler.compilePipeDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵpipe.js`, decl);\n}\n\n// we reexport these symbols just so that they are retained during the dead code elimination\n\n/**\n * Create a computed `Signal` which derives a reactive value from an expression.\n */\nfunction computed(computation, options) {\n performanceMarkFeature('NgSignals');\n const getter = createComputed$1(computation);\n if (options?.equal) {\n getter[SIGNAL$1].equal = options.equal;\n }\n if (ngDevMode) {\n getter.toString = () => `[Computed: ${getter()}]`;\n getter[SIGNAL$1].debugName = options?.debugName;\n }\n return getter;\n}\n\nconst identityFn = (v) => v;\nfunction linkedSignal(optionsOrComputation, options) {\n performanceMarkFeature('NgSignals');\n if (typeof optionsOrComputation === 'function') {\n const getter = createLinkedSignal$1(optionsOrComputation, (identityFn), options?.equal);\n return upgradeLinkedSignalGetter(getter);\n }\n else {\n const getter = createLinkedSignal$1(optionsOrComputation.source, optionsOrComputation.computation, optionsOrComputation.equal);\n return upgradeLinkedSignalGetter(getter);\n }\n}\nfunction upgradeLinkedSignalGetter(getter) {\n if (ngDevMode) {\n getter.toString = () => `[LinkedSignal: ${getter()}]`;\n }\n const node = getter[SIGNAL$1];\n const upgradedGetter = getter;\n upgradedGetter.set = (newValue) => linkedSignalSetFn$1(node, newValue);\n upgradedGetter.update = (updateFn) => linkedSignalUpdateFn$1(node, updateFn);\n upgradedGetter.asReadonly = signalAsReadonlyFn.bind(getter);\n return upgradedGetter;\n}\n\n/**\n * Execute an arbitrary function in a non-reactive (non-tracking) context. The executed function\n * can, optionally, return a value.\n */\nfunction untracked(nonReactiveReadsFn) {\n const prevConsumer = setActiveConsumer$1(null);\n // We are not trying to catch any particular errors here, just making sure that the consumers\n // stack is restored in case of errors.\n try {\n return nonReactiveReadsFn();\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n}\n\nclass ViewContext {\n view;\n node;\n constructor(view, node) {\n this.view = view;\n this.node = node;\n }\n /**\n * @internal\n * @nocollapse\n */\n static __NG_ELEMENT_ID__ = injectViewContext;\n}\nfunction injectViewContext() {\n return new ViewContext(getLView(), getCurrentTNode());\n}\n\n/**\n * Controls whether effects use the legacy `microtaskEffect` by default.\n */\nconst USE_MICROTASK_EFFECT_BY_DEFAULT = false;\n\nclass MicrotaskEffectScheduler extends ZoneAwareEffectScheduler {\n pendingTasks = inject(PendingTasksInternal);\n taskId = null;\n schedule(effect) {\n // Check whether there are any pending effects _before_ queueing in the base class.\n super.schedule(effect);\n if (this.taskId === null) {\n this.taskId = this.pendingTasks.add();\n queueMicrotask(() => this.flush());\n }\n }\n flush() {\n try {\n super.flush();\n }\n finally {\n if (this.taskId !== null) {\n this.pendingTasks.remove(this.taskId);\n this.taskId = null;\n }\n }\n }\n /** @nocollapse */\n static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({\n token: MicrotaskEffectScheduler,\n providedIn: 'root',\n factory: () => new MicrotaskEffectScheduler(),\n });\n}\n/**\n * Core reactive node for an Angular effect.\n *\n * `EffectHandle` combines the reactive graph's `Watch` base node for effects with the framework's\n * scheduling abstraction (`MicrotaskEffectScheduler`) as well as automatic cleanup via `DestroyRef`\n * if available/requested.\n */\nclass EffectHandle {\n scheduler;\n effectFn;\n zone;\n injector;\n unregisterOnDestroy;\n watcher;\n constructor(scheduler, effectFn, zone, destroyRef, injector, allowSignalWrites) {\n this.scheduler = scheduler;\n this.effectFn = effectFn;\n this.zone = zone;\n this.injector = injector;\n this.watcher = createWatch$1((onCleanup) => this.runEffect(onCleanup), () => this.schedule(), allowSignalWrites);\n this.unregisterOnDestroy = destroyRef?.onDestroy(() => this.destroy());\n }\n runEffect(onCleanup) {\n try {\n this.effectFn(onCleanup);\n }\n catch (err) {\n // Inject the `ErrorHandler` here in order to avoid circular DI error\n // if the effect is used inside of a custom `ErrorHandler`.\n const errorHandler = this.injector.get(ErrorHandler, null, { optional: true });\n errorHandler?.handleError(err);\n }\n }\n run() {\n this.watcher.run();\n }\n schedule() {\n this.scheduler.schedule(this);\n }\n destroy() {\n this.watcher.destroy();\n this.unregisterOnDestroy?.();\n // Note: if the effect is currently scheduled, it's not un-scheduled, and so the scheduler will\n // retain a reference to it. Attempting to execute it will be a no-op.\n }\n}\n// Just used for the name for the debug error below.\nfunction effect$1() { }\n/**\n * Create a global `Effect` for the given reactive function.\n */\nfunction microtaskEffect(effectFn, options) {\n performanceMarkFeature('NgSignals');\n ngDevMode &&\n assertNotInReactiveContext(effect$1, 'Call `effect` outside of a reactive context. For example, schedule the ' +\n 'effect inside the component constructor.');\n !options?.injector && assertInInjectionContext(effect$1);\n const injector = options?.injector ?? inject(Injector);\n const destroyRef = options?.manualCleanup !== true ? injector.get(DestroyRef) : null;\n const handle = new EffectHandle(injector.get(MicrotaskEffectScheduler), effectFn, typeof Zone === 'undefined' ? null : Zone.current, destroyRef, injector, options?.allowSignalWrites ?? false);\n // Effects need to be marked dirty manually to trigger their initial run. The timing of this\n // marking matters, because the effects may read signals that track component inputs, which are\n // only available after those components have had their first update pass.\n //\n // We inject `ChangeDetectorRef` optionally, to determine whether this effect is being created in\n // the context of a component or not. If it is, then we check whether the component has already\n // run its update pass, and defer the effect's initial scheduling until the update pass if it\n // hasn't already run.\n const cdr = injector.get(ChangeDetectorRef, null, { optional: true });\n if (!cdr || !(cdr._lView[FLAGS] & 8 /* LViewFlags.FirstLViewPass */)) {\n // This effect is either not running in a view injector, or the view has already\n // undergone its first change detection pass, which is necessary for any required inputs to be\n // set.\n handle.watcher.notify();\n }\n else {\n // Delay the initialization of the effect until the view is fully initialized.\n (cdr._lView[EFFECTS_TO_SCHEDULE] ??= []).push(handle.watcher.notify);\n }\n return handle;\n}\n\nlet useMicrotaskEffectsByDefault = USE_MICROTASK_EFFECT_BY_DEFAULT;\n/**\n * Toggle the flag on whether to use microtask effects (for testing).\n */\nfunction setUseMicrotaskEffectsByDefault(value) {\n const prev = useMicrotaskEffectsByDefault;\n useMicrotaskEffectsByDefault = value;\n return prev;\n}\nclass EffectRefImpl {\n [SIGNAL$1];\n constructor(node) {\n this[SIGNAL$1] = node;\n }\n destroy() {\n this[SIGNAL$1].destroy();\n }\n}\n/**\n * Registers an \"effect\" that will be scheduled & executed whenever the signals that it reads\n * changes.\n *\n * Angular has two different kinds of effect: component effects and root effects. Component effects\n * are created when `effect()` is called from a component, directive, or within a service of a\n * component/directive. Root effects are created when `effect()` is called from outside the\n * component tree, such as in a root service, or when the `forceRoot` option is provided.\n *\n * The two effect types differ in their timing. Component effects run as a component lifecycle\n * event during Angular's synchronization (change detection) process, and can safely read input\n * signals or create/destroy views that depend on component state. Root effects run as microtasks\n * and have no connection to the component tree or change detection.\n *\n * `effect()` must be run in injection context, unless the `injector` option is manually specified.\n *\n * @developerPreview\n */\nfunction effect(effectFn, options) {\n if (useMicrotaskEffectsByDefault) {\n if (ngDevMode && options?.forceRoot) {\n throw new Error(`Cannot use 'forceRoot' option with microtask effects on`);\n }\n return microtaskEffect(effectFn, options);\n }\n performanceMarkFeature('NgSignals');\n ngDevMode &&\n assertNotInReactiveContext(effect, 'Call `effect` outside of a reactive context. For example, schedule the ' +\n 'effect inside the component constructor.');\n !options?.injector && assertInInjectionContext(effect);\n if (ngDevMode && options?.allowSignalWrites !== undefined) {\n console.warn(`The 'allowSignalWrites' flag is deprecated and no longer impacts effect() (writes are always allowed)`);\n }\n const injector = options?.injector ?? inject(Injector);\n let destroyRef = options?.manualCleanup !== true ? injector.get(DestroyRef) : null;\n let node;\n const viewContext = injector.get(ViewContext, null, { optional: true });\n const notifier = injector.get(ChangeDetectionScheduler);\n if (viewContext !== null && !options?.forceRoot) {\n // This effect was created in the context of a view, and will be associated with the view.\n node = createViewEffect(viewContext.view, notifier, effectFn);\n if (destroyRef instanceof NodeInjectorDestroyRef && destroyRef._lView === viewContext.view) {\n // The effect is being created in the same view as the `DestroyRef` references, so it will be\n // automatically destroyed without the need for an explicit `DestroyRef` registration.\n destroyRef = null;\n }\n }\n else {\n // This effect was created outside the context of a view, and will be scheduled independently.\n node = createRootEffect(effectFn, injector.get(EffectScheduler), notifier);\n }\n node.injector = injector;\n if (destroyRef !== null) {\n // If we need to register for cleanup, do that here.\n node.onDestroyFn = destroyRef.onDestroy(() => node.destroy());\n }\n const effectRef = new EffectRefImpl(node);\n if (ngDevMode) {\n node.debugName = options?.debugName ?? '';\n const prevInjectorProfilerContext = setInjectorProfilerContext({ injector, token: null });\n try {\n emitEffectCreatedEvent(effectRef);\n }\n finally {\n setInjectorProfilerContext(prevInjectorProfilerContext);\n }\n }\n return effectRef;\n}\n/**\n * Not public API, which guarantees `EffectScheduler` only ever comes from the application root\n * injector.\n */\nconst APP_EFFECT_SCHEDULER = /* @__PURE__ */ new InjectionToken('', {\n providedIn: 'root',\n factory: () => inject(EffectScheduler),\n});\nconst BASE_EFFECT_NODE = \n/* @__PURE__ */ (() => ({\n ...REACTIVE_NODE$1,\n consumerIsAlwaysLive: true,\n consumerAllowSignalWrites: true,\n dirty: true,\n hasRun: false,\n cleanupFns: undefined,\n zone: null,\n kind: 'effect',\n onDestroyFn: noop,\n run() {\n this.dirty = false;\n if (ngDevMode && isInNotificationPhase$1()) {\n throw new Error(`Schedulers cannot synchronously execute watches while scheduling.`);\n }\n if (this.hasRun && !consumerPollProducersForChange$1(this)) {\n return;\n }\n this.hasRun = true;\n const registerCleanupFn = (cleanupFn) => (this.cleanupFns ??= []).push(cleanupFn);\n const prevNode = consumerBeforeComputation$1(this);\n // We clear `setIsRefreshingViews` so that `markForCheck()` within the body of an effect will\n // cause CD to reach the component in question.\n const prevRefreshingViews = setIsRefreshingViews(false);\n try {\n this.maybeCleanup();\n this.fn(registerCleanupFn);\n }\n finally {\n setIsRefreshingViews(prevRefreshingViews);\n consumerAfterComputation$1(this, prevNode);\n }\n },\n maybeCleanup() {\n if (!this.cleanupFns?.length) {\n return;\n }\n try {\n // Attempt to run the cleanup functions. Regardless of failure or success, we consider\n // cleanup \"completed\" and clear the list for the next run of the effect. Note that an error\n // from the cleanup function will still crash the current run of the effect.\n while (this.cleanupFns.length) {\n this.cleanupFns.pop()();\n }\n }\n finally {\n this.cleanupFns = [];\n }\n },\n}))();\nconst ROOT_EFFECT_NODE = \n/* @__PURE__ */ (() => ({\n ...BASE_EFFECT_NODE,\n consumerMarkedDirty() {\n this.scheduler.schedule(this);\n this.notifier.notify(13 /* NotificationSource.RootEffect */);\n },\n destroy() {\n consumerDestroy$1(this);\n this.onDestroyFn();\n this.maybeCleanup();\n this.scheduler.remove(this);\n },\n}))();\nconst VIEW_EFFECT_NODE = \n/* @__PURE__ */ (() => ({\n ...BASE_EFFECT_NODE,\n consumerMarkedDirty() {\n this.view[FLAGS] |= 8192 /* LViewFlags.HasChildViewsToRefresh */;\n markAncestorsForTraversal(this.view);\n this.notifier.notify(14 /* NotificationSource.ViewEffect */);\n },\n destroy() {\n consumerDestroy$1(this);\n this.onDestroyFn();\n this.maybeCleanup();\n this.view[EFFECTS]?.delete(this);\n },\n}))();\nfunction createViewEffect(view, notifier, fn) {\n const node = Object.create(VIEW_EFFECT_NODE);\n node.view = view;\n node.zone = typeof Zone !== 'undefined' ? Zone.current : null;\n node.notifier = notifier;\n node.fn = fn;\n view[EFFECTS] ??= new Set();\n view[EFFECTS].add(node);\n node.consumerMarkedDirty(node);\n return node;\n}\nfunction createRootEffect(fn, scheduler, notifier) {\n const node = Object.create(ROOT_EFFECT_NODE);\n node.fn = fn;\n node.scheduler = scheduler;\n node.notifier = notifier;\n node.zone = typeof Zone !== 'undefined' ? Zone.current : null;\n node.scheduler.schedule(node);\n node.notifier.notify(13 /* NotificationSource.RootEffect */);\n return node;\n}\n\nconst NOT_SET = Symbol('NOT_SET');\nconst EMPTY_CLEANUP_SET = new Set();\nconst AFTER_RENDER_PHASE_EFFECT_NODE = /* @__PURE__ */ (() => ({\n ...SIGNAL_NODE$1,\n consumerIsAlwaysLive: true,\n consumerAllowSignalWrites: true,\n value: NOT_SET,\n cleanup: null,\n /** Called when the effect becomes dirty */\n consumerMarkedDirty() {\n if (this.sequence.impl.executing) {\n // If hooks are in the middle of executing, then it matters whether this node has yet been\n // executed within its sequence. If not, then we don't want to notify the scheduler since\n // this node will be reached naturally.\n if (this.sequence.lastPhase === null || this.sequence.lastPhase < this.phase) {\n return;\n }\n // If during the execution of a later phase an earlier phase became dirty, then we should not\n // run any further phases until the earlier one reruns.\n this.sequence.erroredOrDestroyed = true;\n }\n // Either hooks are not running, or we're marking a node dirty that has already run within its\n // sequence.\n this.sequence.scheduler.notify(7 /* NotificationSource.RenderHook */);\n },\n phaseFn(previousValue) {\n this.sequence.lastPhase = this.phase;\n if (!this.dirty) {\n return this.signal;\n }\n this.dirty = false;\n if (this.value !== NOT_SET && !consumerPollProducersForChange$1(this)) {\n // None of our producers report a change since the last time they were read, so no\n // recomputation of our value is necessary.\n return this.signal;\n }\n // Run any needed cleanup functions.\n try {\n for (const cleanupFn of this.cleanup ?? EMPTY_CLEANUP_SET) {\n cleanupFn();\n }\n }\n finally {\n // Even if a cleanup function errors, ensure it's cleared.\n this.cleanup?.clear();\n }\n // Prepare to call the user's effect callback. If there was a previous phase, then it gave us\n // its value as a `Signal`, otherwise `previousValue` will be `undefined`.\n const args = [];\n if (previousValue !== undefined) {\n args.push(previousValue);\n }\n args.push(this.registerCleanupFn);\n // Call the user's callback in our reactive context.\n const prevConsumer = consumerBeforeComputation$1(this);\n let newValue;\n try {\n newValue = this.userFn.apply(null, args);\n }\n finally {\n consumerAfterComputation$1(this, prevConsumer);\n }\n if (this.value === NOT_SET || !this.equal(this.value, newValue)) {\n this.value = newValue;\n this.version++;\n }\n return this.signal;\n },\n}))();\n/**\n * An `AfterRenderSequence` that manages an `afterRenderEffect`'s phase effects.\n */\nclass AfterRenderEffectSequence extends AfterRenderSequence {\n scheduler;\n /**\n * While this sequence is executing, this tracks the last phase which was called by the\n * `afterRender` machinery.\n *\n * When a phase effect is marked dirty, this is used to determine whether it's already run or not.\n */\n lastPhase = null;\n /**\n * The reactive nodes for each phase, if a phase effect is defined for that phase.\n *\n * These are initialized to `undefined` but set in the constructor.\n */\n nodes = [undefined, undefined, undefined, undefined];\n constructor(impl, effectHooks, scheduler, destroyRef, snapshot = null) {\n // Note that we also initialize the underlying `AfterRenderSequence` hooks to `undefined` and\n // populate them as we create reactive nodes below.\n super(impl, [undefined, undefined, undefined, undefined], false, destroyRef, snapshot);\n this.scheduler = scheduler;\n // Setup a reactive node for each phase.\n for (const phase of AFTER_RENDER_PHASES) {\n const effectHook = effectHooks[phase];\n if (effectHook === undefined) {\n continue;\n }\n const node = Object.create(AFTER_RENDER_PHASE_EFFECT_NODE);\n node.sequence = this;\n node.phase = phase;\n node.userFn = effectHook;\n node.dirty = true;\n node.signal = (() => {\n producerAccessed$1(node);\n return node.value;\n });\n node.signal[SIGNAL$1] = node;\n node.registerCleanupFn = (fn) => (node.cleanup ??= new Set()).add(fn);\n this.nodes[phase] = node;\n // Install the upstream hook which runs the `phaseFn` for this phase.\n this.hooks[phase] = (value) => node.phaseFn(value);\n }\n }\n afterRun() {\n super.afterRun();\n // We're done running this sequence, so reset `lastPhase`.\n this.lastPhase = null;\n }\n destroy() {\n super.destroy();\n // Run the cleanup functions for each node.\n for (const node of this.nodes) {\n for (const fn of node?.cleanup ?? EMPTY_CLEANUP_SET) {\n fn();\n }\n }\n }\n}\n/**\n * @experimental\n */\nfunction afterRenderEffect(callbackOrSpec, options) {\n ngDevMode &&\n assertNotInReactiveContext(afterRenderEffect, 'Call `afterRenderEffect` outside of a reactive context. For example, create the render ' +\n 'effect inside the component constructor`.');\n !options?.injector && assertInInjectionContext(afterRenderEffect);\n if (typeof ngServerMode !== 'undefined' && ngServerMode) {\n return NOOP_AFTER_RENDER_REF;\n }\n const injector = options?.injector ?? inject(Injector);\n const scheduler = injector.get(ChangeDetectionScheduler);\n const manager = injector.get(AfterRenderManager);\n const tracing = injector.get(TracingService, null, { optional: true });\n manager.impl ??= injector.get(AfterRenderImpl);\n let spec = callbackOrSpec;\n if (typeof spec === 'function') {\n spec = { mixedReadWrite: callbackOrSpec };\n }\n const sequence = new AfterRenderEffectSequence(manager.impl, [spec.earlyRead, spec.write, spec.mixedReadWrite, spec.read], scheduler, injector.get(DestroyRef), tracing?.snapshot(null));\n manager.impl.register(sequence);\n return sequence;\n}\n\n// This file exists to allow the set of reactivity exports to be modified in g3, as these APIs are\n\n/**\n * Status of a `Resource`.\n *\n * @experimental\n */\nvar ResourceStatus;\n(function (ResourceStatus) {\n /**\n * The resource has no valid request and will not perform any loading.\n *\n * `value()` will be `undefined`.\n */\n ResourceStatus[ResourceStatus[\"Idle\"] = 0] = \"Idle\";\n /**\n * Loading failed with an error.\n *\n * `value()` will be `undefined`.\n */\n ResourceStatus[ResourceStatus[\"Error\"] = 1] = \"Error\";\n /**\n * The resource is currently loading a new value as a result of a change in its `request`.\n *\n * `value()` will be `undefined`.\n */\n ResourceStatus[ResourceStatus[\"Loading\"] = 2] = \"Loading\";\n /**\n * The resource is currently reloading a fresh value for the same request.\n *\n * `value()` will continue to return the previously fetched value during the reloading operation.\n */\n ResourceStatus[ResourceStatus[\"Reloading\"] = 3] = \"Reloading\";\n /**\n * Loading has completed and the resource has the value returned from the loader.\n */\n ResourceStatus[ResourceStatus[\"Resolved\"] = 4] = \"Resolved\";\n /**\n * The resource's value was set locally via `.set()` or `.update()`.\n */\n ResourceStatus[ResourceStatus[\"Local\"] = 5] = \"Local\";\n})(ResourceStatus || (ResourceStatus = {}));\n\n/**\n * Constructs a `Resource` that projects a reactive request to an asynchronous operation defined by\n * a loader function, which exposes the result of the loading operation via signals.\n *\n * Note that `resource` is intended for _read_ operations, not operations which perform mutations.\n * `resource` will cancel in-progress loads via the `AbortSignal` when destroyed or when a new\n * request object becomes available, which could prematurely abort mutations.\n *\n * @experimental\n */\nfunction resource(options) {\n options?.injector || assertInInjectionContext(resource);\n const request = (options.request ?? (() => null));\n return new ResourceImpl(request, options.loader, undefined, options.equal ? wrapEqualityFn(options.equal) : undefined, options.injector ?? inject(Injector));\n}\n/**\n * Base class which implements `.value` as a `WritableSignal` by delegating `.set` and `.update`.\n */\nclass BaseWritableResource {\n value;\n constructor(value) {\n this.value = value;\n this.value.set = this.set.bind(this);\n this.value.update = this.update.bind(this);\n this.value.asReadonly = signalAsReadonlyFn;\n }\n update(updateFn) {\n this.set(updateFn(untracked(this.value)));\n }\n isLoading = computed(() => this.status() === ResourceStatus.Loading || this.status() === ResourceStatus.Reloading);\n hasValue() {\n return this.value() !== undefined;\n }\n asReadonly() {\n return this;\n }\n}\n/**\n * Implementation for `resource()` which uses a `linkedSignal` to manage the resource's state.\n */\nclass ResourceImpl extends BaseWritableResource {\n loaderFn;\n defaultValue;\n equal;\n /**\n * The current state of the resource. Status, value, and error are derived from this.\n */\n state;\n /**\n * Signal of both the request value `R` and a writable `reload` signal that's linked/associated\n * to the given request. Changing the value of the `reload` signal causes the resource to reload.\n */\n extendedRequest;\n pendingTasks;\n effectRef;\n pendingController;\n resolvePendingTask = undefined;\n destroyed = false;\n constructor(request, loaderFn, defaultValue, equal, injector) {\n // Feed a computed signal for the value to `BaseWritableResource`, which will upgrade it to a\n // `WritableSignal` that delegates to `ResourceImpl.set`.\n super(computed(() => this.state().value, { equal }));\n this.loaderFn = loaderFn;\n this.defaultValue = defaultValue;\n this.equal = equal;\n this.pendingTasks = injector.get(PendingTasks);\n // Extend `request()` to include a writable reload signal.\n this.extendedRequest = computed(() => ({\n request: request(),\n reload: signal(0),\n }));\n // The main resource state is managed in a `linkedSignal`, which allows the resource to change\n // state instantaneously when the request signal changes.\n this.state = linkedSignal({\n // We use the request (as well as its reload signal) to derive the initial status of the\n // resource (Idle, Loading, or Reloading) in response to request changes. From this initial\n // status, the resource's effect will then trigger the loader and update to a Resolved or\n // Error state as appropriate.\n source: () => {\n const { request, reload } = this.extendedRequest();\n if (request === undefined || this.destroyed) {\n return ResourceStatus.Idle;\n }\n return reload() === 0 ? ResourceStatus.Loading : ResourceStatus.Reloading;\n },\n // Compute the state of the resource given a change in status.\n computation: (status, previous) => ({\n status,\n // When the state of the resource changes due to the request, remember the previous status\n // for the loader to consider.\n previousStatus: previous?.value.status ?? ResourceStatus.Idle,\n // In `Reloading` state, we keep the previous value if there is one, since the identity of\n // the request hasn't changed. Otherwise, we switch back to the default value.\n value: previous && status === ResourceStatus.Reloading\n ? previous.value.value\n : this.defaultValue,\n error: undefined,\n }),\n });\n this.effectRef = effect(this.loadEffect.bind(this), {\n injector,\n manualCleanup: true,\n });\n // Cancel any pending request when the resource itself is destroyed.\n injector.get(DestroyRef).onDestroy(() => this.destroy());\n }\n status = computed(() => this.state().status);\n error = computed(() => this.state().error);\n /**\n * Called either directly via `WritableResource.set` or via `.value.set()`.\n */\n set(value) {\n if (this.destroyed) {\n return;\n }\n const currentState = untracked(this.state);\n if (this.equal ? this.equal(currentState.value, value) : currentState.value === value) {\n return;\n }\n // Enter Local state with the user-defined value.\n this.state.set({\n status: ResourceStatus.Local,\n previousStatus: ResourceStatus.Local,\n value,\n error: undefined,\n });\n // We're departing from whatever state the resource was in previously, so cancel any in-progress\n // loading operations.\n this.abortInProgressLoad();\n }\n reload() {\n // We don't want to restart in-progress loads.\n const status = untracked(this.status);\n if (status === ResourceStatus.Idle ||\n status === ResourceStatus.Loading ||\n status === ResourceStatus.Reloading) {\n return false;\n }\n // Increment the reload signal to trigger the `state` linked signal to switch us to `Reload`\n untracked(this.extendedRequest).reload.update((v) => v + 1);\n return true;\n }\n destroy() {\n this.destroyed = true;\n this.effectRef.destroy();\n this.abortInProgressLoad();\n // Destroyed resources enter Idle state.\n this.state.set({\n status: ResourceStatus.Idle,\n previousStatus: ResourceStatus.Idle,\n value: this.defaultValue,\n error: undefined,\n });\n }\n async loadEffect() {\n // Capture the previous status before any state transitions. Note that this is `untracked` since\n // we do not want the effect to depend on the state of the resource, only on the request.\n const { status: previousStatus } = untracked(this.state);\n const { request, reload: reloadCounter } = this.extendedRequest();\n // Subscribe side-effectfully to `reloadCounter`, although we don't actually care about its\n // value. This is used to rerun the effect when `reload()` is triggered.\n reloadCounter();\n if (request === undefined) {\n // Nothing to load (and we should already be in a non-loading state).\n return;\n }\n else if (previousStatus !== ResourceStatus.Loading &&\n previousStatus !== ResourceStatus.Reloading) {\n // We might've transitioned into a loading state, but has since been overwritten (likely via\n // `.set`).\n // In this case, the resource has nothing to do.\n return;\n }\n // Cancel any previous loading attempts.\n this.abortInProgressLoad();\n // Capturing _this_ load's pending task in a local variable is important here. We may attempt to\n // resolve it twice:\n //\n // 1. when the loading function promise resolves/rejects\n // 2. when cancelling the loading operation\n //\n // After the loading operation is cancelled, `this.resolvePendingTask` no longer represents this\n // particular task, but this `await` may eventually resolve/reject. Thus, when we cancel in\n // response to (1) below, we need to cancel the locally saved task.\n const resolvePendingTask = (this.resolvePendingTask = this.pendingTasks.add());\n const { signal: abortSignal } = (this.pendingController = new AbortController());\n try {\n // The actual loading is run through `untracked` - only the request side of `resource` is\n // reactive. This avoids any confusion with signals tracking or not tracking depending on\n // which side of the `await` they are.\n const result = await untracked(() => this.loaderFn({\n abortSignal,\n request: request,\n previous: {\n status: previousStatus,\n },\n }));\n if (abortSignal.aborted) {\n // This load operation was cancelled.\n return;\n }\n // Success :)\n this.state.set({\n status: ResourceStatus.Resolved,\n previousStatus: ResourceStatus.Resolved,\n value: result,\n error: undefined,\n });\n }\n catch (err) {\n if (abortSignal.aborted) {\n // This load operation was cancelled.\n return;\n }\n // Fail :(\n this.state.set({\n status: ResourceStatus.Error,\n previousStatus: ResourceStatus.Error,\n value: this.defaultValue,\n error: err,\n });\n }\n finally {\n // Resolve the pending task now that loading is done.\n resolvePendingTask();\n // Free the abort controller to drop any registered 'abort' callbacks.\n this.pendingController = undefined;\n }\n }\n abortInProgressLoad() {\n untracked(() => this.pendingController?.abort());\n this.pendingController = undefined;\n // Once the load is aborted, we no longer want to block stability on its resolution.\n this.resolvePendingTask?.();\n this.resolvePendingTask = undefined;\n }\n}\n/**\n * Wraps an equality function to handle either value being `undefined`.\n */\nfunction wrapEqualityFn(equal) {\n return (a, b) => (a === undefined || b === undefined ? a === b : equal(a, b));\n}\n\n/**\n * Creates a `ComponentRef` instance based on provided component type and a set of options.\n *\n * @usageNotes\n *\n * The example below demonstrates how the `createComponent` function can be used\n * to create an instance of a ComponentRef dynamically and attach it to an ApplicationRef,\n * so that it gets included into change detection cycles.\n *\n * Note: the example uses standalone components, but the function can also be used for\n * non-standalone components (declared in an NgModule) as well.\n *\n * ```angular-ts\n * @Component({\n * standalone: true,\n * template: `Hello {{ name }}!`\n * })\n * class HelloComponent {\n * name = 'Angular';\n * }\n *\n * @Component({\n * standalone: true,\n * template: `<div id=\"hello-component-host\"></div>`\n * })\n * class RootComponent {}\n *\n * // Bootstrap an application.\n * const applicationRef = await bootstrapApplication(RootComponent);\n *\n * // Locate a DOM node that would be used as a host.\n * const hostElement = document.getElementById('hello-component-host');\n *\n * // Get an `EnvironmentInjector` instance from the `ApplicationRef`.\n * const environmentInjector = applicationRef.injector;\n *\n * // We can now create a `ComponentRef` instance.\n * const componentRef = createComponent(HelloComponent, {hostElement, environmentInjector});\n *\n * // Last step is to register the newly created ref using the `ApplicationRef` instance\n * // to include the component view into change detection cycles.\n * applicationRef.attachView(componentRef.hostView);\n * componentRef.changeDetectorRef.detectChanges();\n * ```\n *\n * @param component Component class reference.\n * @param options Set of options to use:\n * * `environmentInjector`: An `EnvironmentInjector` instance to be used for the component.\n * * `hostElement` (optional): A DOM node that should act as a host node for the component. If not\n * provided, Angular creates one based on the tag name used in the component selector (and falls\n * back to using `div` if selector doesn't have tag name info).\n * * `elementInjector` (optional): An `ElementInjector` instance, see additional info about it\n * [here](guide/di/hierarchical-dependency-injection#elementinjector).\n * * `projectableNodes` (optional): A list of DOM nodes that should be projected through\n * [`<ng-content>`](api/core/ng-content) of the new component instance, e.g.,\n * `[[element1, element2]]`: projects `element1` and `element2` into the same `<ng-content>`.\n * `[[element1, element2], [element3]]`: projects `element1` and `element2` into one `<ng-content>`,\n * and `element3` into a separate `<ng-content>`.\n * @returns ComponentRef instance that represents a given Component.\n *\n * @publicApi\n */\nfunction createComponent(component, options) {\n ngDevMode && assertComponentDef(component);\n const componentDef = getComponentDef(component);\n const elementInjector = options.elementInjector || getNullInjector();\n const factory = new ComponentFactory(componentDef);\n return factory.create(elementInjector, options.projectableNodes, options.hostElement, options.environmentInjector);\n}\n/**\n * Creates an object that allows to retrieve component metadata.\n *\n * @usageNotes\n *\n * The example below demonstrates how to use the function and how the fields\n * of the returned object map to the component metadata.\n *\n * ```angular-ts\n * @Component({\n * standalone: true,\n * selector: 'foo-component',\n * template: `\n * <ng-content></ng-content>\n * <ng-content select=\"content-selector-a\"></ng-content>\n * `,\n * })\n * class FooComponent {\n * @Input('inputName') inputPropName: string;\n * @Output('outputName') outputPropName = new EventEmitter<void>();\n * }\n *\n * const mirror = reflectComponentType(FooComponent);\n * expect(mirror.type).toBe(FooComponent);\n * expect(mirror.selector).toBe('foo-component');\n * expect(mirror.isStandalone).toBe(true);\n * expect(mirror.inputs).toEqual([{propName: 'inputName', templateName: 'inputPropName'}]);\n * expect(mirror.outputs).toEqual([{propName: 'outputName', templateName: 'outputPropName'}]);\n * expect(mirror.ngContentSelectors).toEqual([\n * '*', // first `<ng-content>` in a template, the selector defaults to `*`\n * 'content-selector-a' // second `<ng-content>` in a template\n * ]);\n * ```\n *\n * @param component Component class reference.\n * @returns An object that allows to retrieve component metadata.\n *\n * @publicApi\n */\nfunction reflectComponentType(component) {\n const componentDef = getComponentDef(component);\n if (!componentDef)\n return null;\n const factory = new ComponentFactory(componentDef);\n return {\n get selector() {\n return factory.selector;\n },\n get type() {\n return factory.componentType;\n },\n get inputs() {\n return factory.inputs;\n },\n get outputs() {\n return factory.outputs;\n },\n get ngContentSelectors() {\n return factory.ngContentSelectors;\n },\n get isStandalone() {\n return componentDef.standalone;\n },\n get isSignal() {\n return componentDef.signals;\n },\n };\n}\n\n/**\n * Merge multiple application configurations from left to right.\n *\n * @param configs Two or more configurations to be merged.\n * @returns A merged [ApplicationConfig](api/core/ApplicationConfig).\n *\n * @publicApi\n */\nfunction mergeApplicationConfig(...configs) {\n return configs.reduce((prev, curr) => {\n return Object.assign(prev, curr, { providers: [...prev.providers, ...curr.providers] });\n }, { providers: [] });\n}\n\n/**\n * Injection token representing the current HTTP request object.\n *\n * Use this token to access the current request when handling server-side\n * rendering (SSR).\n *\n * @remarks\n * This token may be `null` in the following scenarios:\n *\n * * During the build processes.\n * * When the application is rendered in the browser (client-side rendering).\n * * When performing static site generation (SSG).\n * * During route extraction in development (at the time of the request).\n *\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request | `Request` on MDN}\n *\n * @developerPreview\n */\nconst REQUEST = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'REQUEST' : '', {\n providedIn: 'platform',\n factory: () => null,\n});\n/**\n * Injection token for response initialization options.\n *\n * Use this token to provide response options for configuring or initializing\n * HTTP responses in server-side rendering or API endpoints.\n *\n * @remarks\n * This token may be `null` in the following scenarios:\n *\n * * During the build processes.\n * * When the application is rendered in the browser (client-side rendering).\n * * When performing static site generation (SSG).\n * * During route extraction in development (at the time of the request).\n *\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Response/Response | `ResponseInit` on MDN}\n *\n * @developerPreview\n */\nconst RESPONSE_INIT = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'RESPONSE_INIT' : '', {\n providedIn: 'platform',\n factory: () => null,\n});\n/**\n * Injection token for additional request context.\n *\n * Use this token to pass custom metadata or context related to the current request in server-side rendering.\n *\n * @remarks\n * This token is only available during server-side rendering and will be `null` in other contexts.\n *\n * @developerPreview\n */\nconst REQUEST_CONTEXT = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'REQUEST_CONTEXT' : '', {\n providedIn: 'platform',\n factory: () => null,\n});\n\n/**\n * @module\n * @description\n * Entry point from which you should import all public core APIs.\n */\nif (typeof ngDevMode !== 'undefined' && ngDevMode) {\n // This helper is to give a reasonable error message to people upgrading to v9 that have not yet\n // installed `@angular/localize` in their app.\n // tslint:disable-next-line: no-toplevel-property-access\n _global.$localize ??= function () {\n throw new Error('It looks like your application or one of its dependencies is using i18n.\\n' +\n 'Angular 9 introduced a global `$localize()` function that needs to be loaded.\\n' +\n 'Please run `ng add @angular/localize` from the Angular CLI.\\n' +\n \"(For non-CLI projects, add `import '@angular/localize/init';` to your `polyfills.ts` file.\\n\" +\n 'For server-side rendering applications add the import to your `main.server.ts` file.)');\n };\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n/* This file is not used to build this module. It is only used during editing\n * by the TypeScript language service and during build for verification. `ngc`\n * replaces this file with production index.ts when it rewrites private symbol\n * names.\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ANIMATION_MODULE_TYPE, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, AfterRenderPhase, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CSP_NONCE, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory$1 as ComponentFactory, ComponentFactoryResolver$1 as ComponentFactoryResolver, ComponentRef$1 as ComponentRef, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, DestroyRef, Directive, ENVIRONMENT_INITIALIZER, ElementRef, EmbeddedViewRef, EnvironmentInjector, ErrorHandler, EventEmitter, HOST_TAG_NAME, Host, HostAttributeToken, HostBinding, HostListener, INJECTOR$1 as INJECTOR, Inject, InjectFlags, Injectable, InjectionToken, Injector, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, NgProbeToken, NgZone, Optional, Output, OutputEmitterRef, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, PendingTasks, Pipe, PlatformRef, Query, QueryList, REQUEST, REQUEST_CONTEXT, RESPONSE_INIT, Renderer2, RendererFactory2, RendererStyleFlags2, ResourceStatus, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, TransferState, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation, ViewRef, afterNextRender, afterRender, afterRenderEffect, asNativeElements, assertInInjectionContext, assertNotInReactiveContext, assertPlatform, booleanAttribute, computed, contentChild, contentChildren, createComponent, createEnvironmentInjector, createNgModule, createNgModuleRef, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, effect, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getNgModuleById, getPlatform, importProvidersFrom, inject, input, isDevMode, isSignal, isStandalone, linkedSignal, makeEnvironmentProviders, makeStateKey, mergeApplicationConfig, model, numberAttribute, output, platformCore, provideAppInitializer, provideEnvironmentInitializer, provideExperimentalCheckNoChangesForDebug, provideExperimentalZonelessChangeDetection, providePlatformInitializer, provideZoneChangeDetection, reflectComponentType, resolveForwardRef, resource, runInInjectionContext, setTestabilityGetter, signal, untracked, viewChild, viewChildren, ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS, AfterRenderManager as ɵAfterRenderManager, CONTAINER_HEADER_OFFSET as ɵCONTAINER_HEADER_OFFSET, ChangeDetectionScheduler as ɵChangeDetectionScheduler, ChangeDetectionSchedulerImpl as ɵChangeDetectionSchedulerImpl, ComponentFactory$1 as ɵComponentFactory, Console as ɵConsole, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, DEFER_BLOCK_CONFIG as ɵDEFER_BLOCK_CONFIG, DEFER_BLOCK_DEPENDENCY_INTERCEPTOR as ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR, DeferBlockBehavior as ɵDeferBlockBehavior, DeferBlockState as ɵDeferBlockState, ENABLE_ROOT_COMPONENT_BOOTSTRAP as ɵENABLE_ROOT_COMPONENT_BOOTSTRAP, EffectScheduler as ɵEffectScheduler, IMAGE_CONFIG as ɵIMAGE_CONFIG, IMAGE_CONFIG_DEFAULTS as ɵIMAGE_CONFIG_DEFAULTS, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, ɵINPUT_SIGNAL_BRAND_WRITE_TYPE, INTERNAL_APPLICATION_ERROR_HANDLER as ɵINTERNAL_APPLICATION_ERROR_HANDLER, IS_HYDRATION_DOM_REUSE_ENABLED as ɵIS_HYDRATION_DOM_REUSE_ENABLED, IS_INCREMENTAL_HYDRATION_ENABLED as ɵIS_INCREMENTAL_HYDRATION_ENABLED, JSACTION_EVENT_CONTRACT as ɵJSACTION_EVENT_CONTRACT, LContext as ɵLContext, LocaleDataIndex as ɵLocaleDataIndex, MicrotaskEffectScheduler as ɵMicrotaskEffectScheduler, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_INJ_DEF as ɵNG_INJ_DEF, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE as ɵNO_CHANGE, NgModuleFactory as ɵNgModuleFactory, NoopNgZone as ɵNoopNgZone, PERFORMANCE_MARK_PREFIX as ɵPERFORMANCE_MARK_PREFIX, PROVIDED_NG_ZONE as ɵPROVIDED_NG_ZONE, PendingTasksInternal as ɵPendingTasksInternal, ReflectionCapabilities as ɵReflectionCapabilities, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, NgModuleRef as ɵRender3NgModuleRef, RuntimeError as ɵRuntimeError, SSR_CONTENT_INTEGRITY_MARKER as ɵSSR_CONTENT_INTEGRITY_MARKER, TESTABILITY as ɵTESTABILITY, TESTABILITY_GETTER as ɵTESTABILITY_GETTER, TracingAction as ɵTracingAction, TracingService as ɵTracingService, USE_RUNTIME_DEPS_TRACKER_FOR_JIT as ɵUSE_RUNTIME_DEPS_TRACKER_FOR_JIT, ViewRef$1 as ɵViewRef, XSS_SECURITY_URL as ɵXSS_SECURITY_URL, ZONELESS_ENABLED as ɵZONELESS_ENABLED, _sanitizeHtml as ɵ_sanitizeHtml, _sanitizeUrl as ɵ_sanitizeUrl, allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, annotateForHydration as ɵannotateForHydration, bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, compileComponent as ɵcompileComponent, compileDirective as ɵcompileDirective, compileNgModule as ɵcompileNgModule, compileNgModuleDefs as ɵcompileNgModuleDefs, compileNgModuleFactory as ɵcompileNgModuleFactory, compilePipe as ɵcompilePipe, convertToBitFlags as ɵconvertToBitFlags, createInjector as ɵcreateInjector, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, depsTracker as ɵdepsTracker, detectChangesInViewIfRequired as ɵdetectChangesInViewIfRequired, devModeEqual as ɵdevModeEqual, disableProfiling as ɵdisableProfiling, enableProfiling as ɵenableProfiling, findLocaleData as ɵfindLocaleData, flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible, formatRuntimeError as ɵformatRuntimeError, generateStandaloneInDeclarationsError as ɵgenerateStandaloneInDeclarationsError, getAsyncClassMetadataFn as ɵgetAsyncClassMetadataFn, getClosestComponentName as ɵgetClosestComponentName, getDebugNode as ɵgetDebugNode, getDeferBlocks$1 as ɵgetDeferBlocks, getDirectives as ɵgetDirectives, getHostElement as ɵgetHostElement, getInjectableDef as ɵgetInjectableDef, getLContext as ɵgetLContext, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getOutputDestroyRef as ɵgetOutputDestroyRef, getSanitizationBypassType as ɵgetSanitizationBypassType, ɵgetUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode, _global as ɵglobal, injectChangeDetectorRef as ɵinjectChangeDetectorRef, internalCreateApplication as ɵinternalCreateApplication, internalProvideZoneChangeDetection as ɵinternalProvideZoneChangeDetection, isBoundToModule as ɵisBoundToModule, isComponentDefPendingResolution as ɵisComponentDefPendingResolution, isEnvironmentProviders as ɵisEnvironmentProviders, isInjectable as ɵisInjectable, isNgModule as ɵisNgModule, isPromise as ɵisPromise, isSubscribable as ɵisSubscribable, microtaskEffect as ɵmicrotaskEffect, noSideEffects as ɵnoSideEffects, patchComponentDefWithScope as ɵpatchComponentDefWithScope, performanceMarkFeature as ɵperformanceMarkFeature, publishExternalGlobalUtil as ɵpublishExternalGlobalUtil, readHydrationInfo as ɵreadHydrationInfo, registerLocaleData as ɵregisterLocaleData, renderDeferBlockState as ɵrenderDeferBlockState, resetCompiledComponents as ɵresetCompiledComponents, resetJitOptions as ɵresetJitOptions, resolveComponentResources as ɵresolveComponentResources, restoreComponentResolutionQueue as ɵrestoreComponentResolutionQueue, setAllowDuplicateNgModuleIdsForTest as ɵsetAllowDuplicateNgModuleIdsForTest, setAlternateWeakRefImpl as ɵsetAlternateWeakRefImpl, ɵsetClassDebugInfo, setClassMetadata as ɵsetClassMetadata, setClassMetadataAsync as ɵsetClassMetadataAsync, setCurrentInjector as ɵsetCurrentInjector, setDocument as ɵsetDocument, setInjectorProfilerContext as ɵsetInjectorProfilerContext, setLocaleId as ɵsetLocaleId, ɵsetUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode, startMeasuring as ɵstartMeasuring, stopMeasuring as ɵstopMeasuring, store as ɵstore, stringify as ɵstringify, transitiveScopesFor as ɵtransitiveScopesFor, triggerResourceLoading as ɵtriggerResourceLoading, truncateMiddle as ɵtruncateMiddle, unregisterAllLocaleData as ɵunregisterLocaleData, unwrapSafeValue as ɵunwrapSafeValue, ɵunwrapWritableSignal, withDomHydration as ɵwithDomHydration, withEventReplay as ɵwithEventReplay, withI18nSupport as ɵwithI18nSupport, withIncrementalHydration as ɵwithIncrementalHydration, ɵɵCopyDefinitionFeature, ɵɵExternalStylesFeature, FactoryTarget as ɵɵFactoryTarget, ɵɵHostDirectivesFeature, ɵɵInheritDefinitionFeature, ɵɵInputTransformsFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵadvance, ɵɵattachSourceLocations, ɵɵattribute, ɵɵattributeInterpolate1, ɵɵattributeInterpolate2, ɵɵattributeInterpolate3, ɵɵattributeInterpolate4, ɵɵattributeInterpolate5, ɵɵattributeInterpolate6, ɵɵattributeInterpolate7, ɵɵattributeInterpolate8, ɵɵattributeInterpolateV, ɵɵclassMap, ɵɵclassMapInterpolate1, ɵɵclassMapInterpolate2, ɵɵclassMapInterpolate3, ɵɵclassMapInterpolate4, ɵɵclassMapInterpolate5, ɵɵclassMapInterpolate6, ɵɵclassMapInterpolate7, ɵɵclassMapInterpolate8, ɵɵclassMapInterpolateV, ɵɵclassProp, ɵɵcomponentInstance, ɵɵconditional, ɵɵcontentQuery, ɵɵcontentQuerySignal, ɵɵdeclareLet, ɵɵdefer, ɵɵdeferEnableTimerScheduling, ɵɵdeferHydrateNever, ɵɵdeferHydrateOnHover, ɵɵdeferHydrateOnIdle, ɵɵdeferHydrateOnImmediate, ɵɵdeferHydrateOnInteraction, ɵɵdeferHydrateOnTimer, ɵɵdeferHydrateOnViewport, ɵɵdeferHydrateWhen, ɵɵdeferOnHover, ɵɵdeferOnIdle, ɵɵdeferOnImmediate, ɵɵdeferOnInteraction, ɵɵdeferOnTimer, ɵɵdeferOnViewport, ɵɵdeferPrefetchOnHover, ɵɵdeferPrefetchOnIdle, ɵɵdeferPrefetchOnImmediate, ɵɵdeferPrefetchOnInteraction, ɵɵdeferPrefetchOnTimer, ɵɵdeferPrefetchOnViewport, ɵɵdeferPrefetchWhen, ɵɵdeferWhen, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineInjectable, ɵɵdefineInjector, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵenableBindings, ɵɵgetComponentDepsFactory, ɵɵgetCurrentView, ɵɵgetInheritedFactory, ɵɵhostProperty, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinject, ɵɵinjectAttribute, ɵɵinvalidFactory, ɵɵinvalidFactoryDep, ɵɵlistener, ɵɵloadQuery, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, ɵɵngDeclareClassMetadata, ɵɵngDeclareClassMetadataAsync, ɵɵngDeclareComponent, ɵɵngDeclareDirective, ɵɵngDeclareFactory, ɵɵngDeclareInjectable, ɵɵngDeclareInjector, ɵɵngDeclareNgModule, ɵɵngDeclarePipe, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpropertyInterpolate, ɵɵpropertyInterpolate1, ɵɵpropertyInterpolate2, ɵɵpropertyInterpolate3, ɵɵpropertyInterpolate4, ɵɵpropertyInterpolate5, ɵɵpropertyInterpolate6, ɵɵpropertyInterpolate7, ɵɵpropertyInterpolate8, ɵɵpropertyInterpolateV, ɵɵpureFunction0, ɵɵpureFunction1, ɵɵpureFunction2, ɵɵpureFunction3, ɵɵpureFunction4, ɵɵpureFunction5, ɵɵpureFunction6, ɵɵpureFunction7, ɵɵpureFunction8, ɵɵpureFunctionV, ɵɵqueryAdvance, ɵɵqueryRefresh, ɵɵreadContextLet, ɵɵreference, registerNgModuleType as ɵɵregisterNgModuleType, ɵɵrepeater, ɵɵrepeaterCreate, ɵɵrepeaterTrackByIdentity, ɵɵrepeaterTrackByIndex, ɵɵreplaceMetadata, ɵɵresetView, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵrestoreView, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵstoreLet, ɵɵstyleMap, ɵɵstyleMapInterpolate1, ɵɵstyleMapInterpolate2, ɵɵstyleMapInterpolate3, ɵɵstyleMapInterpolate4, ɵɵstyleMapInterpolate5, ɵɵstyleMapInterpolate6, ɵɵstyleMapInterpolate7, ɵɵstyleMapInterpolate8, ɵɵstyleMapInterpolateV, ɵɵstyleProp, ɵɵstylePropInterpolate1, ɵɵstylePropInterpolate2, ɵɵstylePropInterpolate3, ɵɵstylePropInterpolate4, ɵɵstylePropInterpolate5, ɵɵstylePropInterpolate6, ɵɵstylePropInterpolate7, ɵɵstylePropInterpolate8, ɵɵstylePropInterpolateV, ɵɵsyntheticHostListener, ɵɵsyntheticHostProperty, ɵɵtemplate, ɵɵtemplateRefExtractor, ɵɵtext, ɵɵtextInterpolate, ɵɵtextInterpolate1, ɵɵtextInterpolate2, ɵɵtextInterpolate3, ɵɵtextInterpolate4, ɵɵtextInterpolate5, ɵɵtextInterpolate6, ɵɵtextInterpolate7, ɵɵtextInterpolate8, ɵɵtextInterpolateV, ɵɵtrustConstantHtml, ɵɵtrustConstantResourceUrl, ɵɵtwoWayBindingSet, ɵɵtwoWayListener, ɵɵtwoWayProperty, ɵɵvalidateIframeAttribute, ɵɵviewQuery, ɵɵviewQuerySignal };\n","/**\n * @license Angular v19.1.4\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { Directive, InjectionToken, forwardRef, Optional, Inject, ɵisPromise, ɵisSubscribable, ɵRuntimeError, Self, untracked, computed, signal, EventEmitter, Input, Host, SkipSelf, booleanAttribute, ChangeDetectorRef, Output, Injectable, inject, NgModule, Version } from '@angular/core';\nimport { ɵgetDOM } from '@angular/common';\nimport { from, forkJoin, Subject } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n/**\n * Base class for all ControlValueAccessor classes defined in Forms package.\n * Contains common logic and utility functions.\n *\n * Note: this is an *internal-only* class and should not be extended or used directly in\n * applications code.\n */\nclass BaseControlValueAccessor {\n _renderer;\n _elementRef;\n /**\n * The registered callback function called when a change or input event occurs on the input\n * element.\n * @nodoc\n */\n onChange = (_) => { };\n /**\n * The registered callback function called when a blur event occurs on the input element.\n * @nodoc\n */\n onTouched = () => { };\n constructor(_renderer, _elementRef) {\n this._renderer = _renderer;\n this._elementRef = _elementRef;\n }\n /**\n * Helper method that sets a property on a target element using the current Renderer\n * implementation.\n * @nodoc\n */\n setProperty(key, value) {\n this._renderer.setProperty(this._elementRef.nativeElement, key, value);\n }\n /**\n * Registers a function called when the control is touched.\n * @nodoc\n */\n registerOnTouched(fn) {\n this.onTouched = fn;\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = fn;\n }\n /**\n * Sets the \"disabled\" property on the range input element.\n * @nodoc\n */\n setDisabledState(isDisabled) {\n this.setProperty('disabled', isDisabled);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: BaseControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: BaseControlValueAccessor, isStandalone: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: BaseControlValueAccessor, decorators: [{\n type: Directive\n }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }] });\n/**\n * Base class for all built-in ControlValueAccessor classes (except DefaultValueAccessor, which is\n * used in case no other CVAs can be found). We use this class to distinguish between default CVA,\n * built-in CVAs and custom CVAs, so that Forms logic can recognize built-in CVAs and treat custom\n * ones with higher priority (when both built-in and custom CVAs are present).\n *\n * Note: this is an *internal-only* class and should not be extended or used directly in\n * applications code.\n */\nclass BuiltInControlValueAccessor extends BaseControlValueAccessor {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: BuiltInControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: BuiltInControlValueAccessor, isStandalone: true, usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: BuiltInControlValueAccessor, decorators: [{\n type: Directive\n }] });\n/**\n * Used to provide a `ControlValueAccessor` for form controls.\n *\n * See `DefaultValueAccessor` for how to implement one.\n *\n * @publicApi\n */\nconst NG_VALUE_ACCESSOR = new InjectionToken(ngDevMode ? 'NgValueAccessor' : '');\n\nconst CHECKBOX_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => CheckboxControlValueAccessor),\n multi: true,\n};\n/**\n * @description\n * A `ControlValueAccessor` for writing a value and listening to changes on a checkbox input\n * element.\n *\n * @usageNotes\n *\n * ### Using a checkbox with a reactive form.\n *\n * The following example shows how to use a checkbox with a reactive form.\n *\n * ```ts\n * const rememberLoginControl = new FormControl();\n * ```\n *\n * ```html\n * <input type=\"checkbox\" [formControl]=\"rememberLoginControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass CheckboxControlValueAccessor extends BuiltInControlValueAccessor {\n /**\n * Sets the \"checked\" property on the input element.\n * @nodoc\n */\n writeValue(value) {\n this.setProperty('checked', value);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: CheckboxControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: CheckboxControlValueAccessor, isStandalone: false, selector: \"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]\", host: { listeners: { \"change\": \"onChange($event.target.checked)\", \"blur\": \"onTouched()\" } }, providers: [CHECKBOX_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: CheckboxControlValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',\n host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },\n providers: [CHECKBOX_VALUE_ACCESSOR],\n standalone: false,\n }]\n }] });\n\nconst DEFAULT_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => DefaultValueAccessor),\n multi: true,\n};\n/**\n * We must check whether the agent is Android because composition events\n * behave differently between iOS and Android.\n */\nfunction _isAndroid() {\n const userAgent = ɵgetDOM() ? ɵgetDOM().getUserAgent() : '';\n return /android (\\d+)/.test(userAgent.toLowerCase());\n}\n/**\n * @description\n * Provide this token to control if form directives buffer IME input until\n * the \"compositionend\" event occurs.\n * @publicApi\n */\nconst COMPOSITION_BUFFER_MODE = new InjectionToken(ngDevMode ? 'CompositionEventMode' : '');\n/**\n * The default `ControlValueAccessor` for writing a value and listening to changes on input\n * elements. The accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n *\n * @usageNotes\n *\n * ### Using the default value accessor\n *\n * The following example shows how to use an input element that activates the default value accessor\n * (in this case, a text field).\n *\n * ```ts\n * const firstNameControl = new FormControl();\n * ```\n *\n * ```html\n * <input type=\"text\" [formControl]=\"firstNameControl\">\n * ```\n *\n * This value accessor is used by default for `<input type=\"text\">` and `<textarea>` elements, but\n * you could also use it for custom components that have similar behavior and do not require special\n * processing. In order to attach the default value accessor to a custom element, add the\n * `ngDefaultControl` attribute as shown below.\n *\n * ```html\n * <custom-input-component ngDefaultControl [(ngModel)]=\"value\"></custom-input-component>\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass DefaultValueAccessor extends BaseControlValueAccessor {\n _compositionMode;\n /** Whether the user is creating a composition string (IME events). */\n _composing = false;\n constructor(renderer, elementRef, _compositionMode) {\n super(renderer, elementRef);\n this._compositionMode = _compositionMode;\n if (this._compositionMode == null) {\n this._compositionMode = !_isAndroid();\n }\n }\n /**\n * Sets the \"value\" property on the input element.\n * @nodoc\n */\n writeValue(value) {\n const normalizedValue = value == null ? '' : value;\n this.setProperty('value', normalizedValue);\n }\n /** @internal */\n _handleInput(value) {\n if (!this._compositionMode || (this._compositionMode && !this._composing)) {\n this.onChange(value);\n }\n }\n /** @internal */\n _compositionStart() {\n this._composing = true;\n }\n /** @internal */\n _compositionEnd(value) {\n this._composing = false;\n this._compositionMode && this.onChange(value);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DefaultValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: COMPOSITION_BUFFER_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: DefaultValueAccessor, isStandalone: false, selector: \"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]\", host: { listeners: { \"input\": \"$any(this)._handleInput($event.target.value)\", \"blur\": \"onTouched()\", \"compositionstart\": \"$any(this)._compositionStart()\", \"compositionend\": \"$any(this)._compositionEnd($event.target.value)\" } }, providers: [DEFAULT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DefaultValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',\n // TODO: vsavkin replace the above selector with the one below it once\n // https://github.com/angular/angular/issues/3011 is implemented\n // selector: '[ngModel],[formControl],[formControlName]',\n host: {\n '(input)': '$any(this)._handleInput($event.target.value)',\n '(blur)': 'onTouched()',\n '(compositionstart)': '$any(this)._compositionStart()',\n '(compositionend)': '$any(this)._compositionEnd($event.target.value)',\n },\n providers: [DEFAULT_VALUE_ACCESSOR],\n standalone: false,\n }]\n }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [COMPOSITION_BUFFER_MODE]\n }] }] });\n\nfunction isEmptyInputValue(value) {\n /**\n * Check if the object is a string or array before evaluating the length attribute.\n * This avoids falsely rejecting objects that contain a custom length attribute.\n * For example, the object {id: 1, length: 0, width: 0} should not be returned as empty.\n */\n return (value == null || ((typeof value === 'string' || Array.isArray(value)) && value.length === 0));\n}\nfunction hasValidLength(value) {\n // non-strict comparison is intentional, to check for both `null` and `undefined` values\n return value != null && typeof value.length === 'number';\n}\n/**\n * @description\n * An `InjectionToken` for registering additional synchronous validators used with\n * `AbstractControl`s.\n *\n * @see {@link NG_ASYNC_VALIDATORS}\n *\n * @usageNotes\n *\n * ### Providing a custom validator\n *\n * The following example registers a custom validator directive. Adding the validator to the\n * existing collection of validators requires the `multi: true` option.\n *\n * ```ts\n * @Directive({\n * selector: '[customValidator]',\n * providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}]\n * })\n * class CustomValidatorDirective implements Validator {\n * validate(control: AbstractControl): ValidationErrors | null {\n * return { 'custom': true };\n * }\n * }\n * ```\n *\n * @publicApi\n */\nconst NG_VALIDATORS = new InjectionToken(ngDevMode ? 'NgValidators' : '');\n/**\n * @description\n * An `InjectionToken` for registering additional asynchronous validators used with\n * `AbstractControl`s.\n *\n * @see {@link NG_VALIDATORS}\n *\n * @usageNotes\n *\n * ### Provide a custom async validator directive\n *\n * The following example implements the `AsyncValidator` interface to create an\n * async validator directive with a custom error key.\n *\n * ```ts\n * @Directive({\n * selector: '[customAsyncValidator]',\n * providers: [{provide: NG_ASYNC_VALIDATORS, useExisting: CustomAsyncValidatorDirective, multi:\n * true}]\n * })\n * class CustomAsyncValidatorDirective implements AsyncValidator {\n * validate(control: AbstractControl): Promise<ValidationErrors|null> {\n * return Promise.resolve({'custom': true});\n * }\n * }\n * ```\n *\n * @publicApi\n */\nconst NG_ASYNC_VALIDATORS = new InjectionToken(ngDevMode ? 'NgAsyncValidators' : '');\n/**\n * A regular expression that matches valid e-mail addresses.\n *\n * At a high level, this regexp matches e-mail addresses of the format `local-part@tld`, where:\n * - `local-part` consists of one or more of the allowed characters (alphanumeric and some\n * punctuation symbols).\n * - `local-part` cannot begin or end with a period (`.`).\n * - `local-part` cannot be longer than 64 characters.\n * - `tld` consists of one or more `labels` separated by periods (`.`). For example `localhost` or\n * `foo.com`.\n * - A `label` consists of one or more of the allowed characters (alphanumeric, dashes (`-`) and\n * periods (`.`)).\n * - A `label` cannot begin or end with a dash (`-`) or a period (`.`).\n * - A `label` cannot be longer than 63 characters.\n * - The whole address cannot be longer than 254 characters.\n *\n * ## Implementation background\n *\n * This regexp was ported over from AngularJS (see there for git history):\n * https://github.com/angular/angular.js/blob/c133ef836/src/ng/directive/input.js#L27\n * It is based on the\n * [WHATWG version](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with\n * some enhancements to incorporate more RFC rules (such as rules related to domain names and the\n * lengths of different parts of the address). The main differences from the WHATWG version are:\n * - Disallow `local-part` to begin or end with a period (`.`).\n * - Disallow `local-part` length to exceed 64 characters.\n * - Disallow total address length to exceed 254 characters.\n *\n * See [this commit](https://github.com/angular/angular.js/commit/f3f5cf72e) for more details.\n */\nconst EMAIL_REGEXP = /^(?=.{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])?)*$/;\n/**\n * @description\n * Provides a set of built-in validators that can be used by form controls.\n *\n * A validator is a function that processes a `FormControl` or collection of\n * controls and returns an error map or null. A null map means that validation has passed.\n *\n * @see [Form Validation](guide/forms/form-validation)\n *\n * @publicApi\n */\nclass Validators {\n /**\n * @description\n * Validator that requires the control's value to be greater than or equal to the provided number.\n *\n * @usageNotes\n *\n * ### Validate against a minimum of 3\n *\n * ```ts\n * const control = new FormControl(2, Validators.min(3));\n *\n * console.log(control.errors); // {min: {min: 3, actual: 2}}\n * ```\n *\n * @returns A validator function that returns an error map with the\n * `min` property if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static min(min) {\n return minValidator(min);\n }\n /**\n * @description\n * Validator that requires the control's value to be less than or equal to the provided number.\n *\n * @usageNotes\n *\n * ### Validate against a maximum of 15\n *\n * ```ts\n * const control = new FormControl(16, Validators.max(15));\n *\n * console.log(control.errors); // {max: {max: 15, actual: 16}}\n * ```\n *\n * @returns A validator function that returns an error map with the\n * `max` property if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static max(max) {\n return maxValidator(max);\n }\n /**\n * @description\n * Validator that requires the control have a non-empty value.\n *\n * @usageNotes\n *\n * ### Validate that the field is non-empty\n *\n * ```ts\n * const control = new FormControl('', Validators.required);\n *\n * console.log(control.errors); // {required: true}\n * ```\n *\n * @returns An error map with the `required` property\n * if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static required(control) {\n return requiredValidator(control);\n }\n /**\n * @description\n * Validator that requires the control's value be true. This validator is commonly\n * used for required checkboxes.\n *\n * @usageNotes\n *\n * ### Validate that the field value is true\n *\n * ```ts\n * const control = new FormControl('some value', Validators.requiredTrue);\n *\n * console.log(control.errors); // {required: true}\n * ```\n *\n * @returns An error map that contains the `required` property\n * set to `true` if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static requiredTrue(control) {\n return requiredTrueValidator(control);\n }\n /**\n * @description\n * Validator that requires the control's value pass an email validation test.\n *\n * Tests the value using a [regular\n * expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)\n * pattern suitable for common use cases. The pattern is based on the definition of a valid email\n * address in the [WHATWG HTML\n * specification](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with\n * some enhancements to incorporate more RFC rules (such as rules related to domain names and the\n * lengths of different parts of the address).\n *\n * The differences from the WHATWG version include:\n * - Disallow `local-part` (the part before the `@` symbol) to begin or end with a period (`.`).\n * - Disallow `local-part` to be longer than 64 characters.\n * - Disallow the whole address to be longer than 254 characters.\n *\n * If this pattern does not satisfy your business needs, you can use `Validators.pattern()` to\n * validate the value against a different pattern.\n *\n * @usageNotes\n *\n * ### Validate that the field matches a valid email pattern\n *\n * ```ts\n * const control = new FormControl('bad@', Validators.email);\n *\n * console.log(control.errors); // {email: true}\n * ```\n *\n * @returns An error map with the `email` property\n * if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static email(control) {\n return emailValidator(control);\n }\n /**\n * @description\n * Validator that requires the length of the control's value to be greater than or equal\n * to the provided minimum length. This validator is also provided by default if you use the\n * the HTML5 `minlength` attribute. Note that the `minLength` validator is intended to be used\n * only for types that have a numeric `length` property, such as strings or arrays. The\n * `minLength` validator logic is also not invoked for values when their `length` property is 0\n * (for example in case of an empty string or an empty array), to support optional controls. You\n * can use the standard `required` validator if empty values should not be considered valid.\n *\n * @usageNotes\n *\n * ### Validate that the field has a minimum of 3 characters\n *\n * ```ts\n * const control = new FormControl('ng', Validators.minLength(3));\n *\n * console.log(control.errors); // {minlength: {requiredLength: 3, actualLength: 2}}\n * ```\n *\n * ```html\n * <input minlength=\"5\">\n * ```\n *\n * @returns A validator function that returns an error map with the\n * `minlength` property if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static minLength(minLength) {\n return minLengthValidator(minLength);\n }\n /**\n * @description\n * Validator that requires the length of the control's value to be less than or equal\n * to the provided maximum length. This validator is also provided by default if you use the\n * the HTML5 `maxlength` attribute. Note that the `maxLength` validator is intended to be used\n * only for types that have a numeric `length` property, such as strings or arrays.\n *\n * @usageNotes\n *\n * ### Validate that the field has maximum of 5 characters\n *\n * ```ts\n * const control = new FormControl('Angular', Validators.maxLength(5));\n *\n * console.log(control.errors); // {maxlength: {requiredLength: 5, actualLength: 7}}\n * ```\n *\n * ```html\n * <input maxlength=\"5\">\n * ```\n *\n * @returns A validator function that returns an error map with the\n * `maxlength` property if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static maxLength(maxLength) {\n return maxLengthValidator(maxLength);\n }\n /**\n * @description\n * Validator that requires the control's value to match a regex pattern. This validator is also\n * provided by default if you use the HTML5 `pattern` attribute.\n *\n * @usageNotes\n *\n * ### Validate that the field only contains letters or spaces\n *\n * ```ts\n * const control = new FormControl('1', Validators.pattern('[a-zA-Z ]*'));\n *\n * console.log(control.errors); // {pattern: {requiredPattern: '^[a-zA-Z ]*$', actualValue: '1'}}\n * ```\n *\n * ```html\n * <input pattern=\"[a-zA-Z ]*\">\n * ```\n *\n * ### Pattern matching with the global or sticky flag\n *\n * `RegExp` objects created with the `g` or `y` flags that are passed into `Validators.pattern`\n * can produce different results on the same input when validations are run consecutively. This is\n * due to how the behavior of `RegExp.prototype.test` is\n * specified in [ECMA-262](https://tc39.es/ecma262/#sec-regexpbuiltinexec)\n * (`RegExp` preserves the index of the last match when the global or sticky flag is used).\n * Due to this behavior, it is recommended that when using\n * `Validators.pattern` you **do not** pass in a `RegExp` object with either the global or sticky\n * flag enabled.\n *\n * ```ts\n * // Not recommended (since the `g` flag is used)\n * const controlOne = new FormControl('1', Validators.pattern(/foo/g));\n *\n * // Good\n * const controlTwo = new FormControl('1', Validators.pattern(/foo/));\n * ```\n *\n * @param pattern A regular expression to be used as is to test the values, or a string.\n * If a string is passed, the `^` character is prepended and the `$` character is\n * appended to the provided string (if not already present), and the resulting regular\n * expression is used to test the values.\n *\n * @returns A validator function that returns an error map with the\n * `pattern` property if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static pattern(pattern) {\n return patternValidator(pattern);\n }\n /**\n * @description\n * Validator that performs no operation.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static nullValidator(control) {\n return nullValidator(control);\n }\n static compose(validators) {\n return compose(validators);\n }\n /**\n * @description\n * Compose multiple async validators into a single function that returns the union\n * of the individual error objects for the provided control.\n *\n * @returns A validator function that returns an error map with the\n * merged error objects of the async validators if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static composeAsync(validators) {\n return composeAsync(validators);\n }\n}\n/**\n * Validator that requires the control's value to be greater than or equal to the provided number.\n * See `Validators.min` for additional information.\n */\nfunction minValidator(min) {\n return (control) => {\n if (isEmptyInputValue(control.value) || isEmptyInputValue(min)) {\n return null; // don't validate empty values to allow optional controls\n }\n const value = parseFloat(control.value);\n // Controls with NaN values after parsing should be treated as not having a\n // minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min\n return !isNaN(value) && value < min ? { 'min': { 'min': min, 'actual': control.value } } : null;\n };\n}\n/**\n * Validator that requires the control's value to be less than or equal to the provided number.\n * See `Validators.max` for additional information.\n */\nfunction maxValidator(max) {\n return (control) => {\n if (isEmptyInputValue(control.value) || isEmptyInputValue(max)) {\n return null; // don't validate empty values to allow optional controls\n }\n const value = parseFloat(control.value);\n // Controls with NaN values after parsing should be treated as not having a\n // maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max\n return !isNaN(value) && value > max ? { 'max': { 'max': max, 'actual': control.value } } : null;\n };\n}\n/**\n * Validator that requires the control have a non-empty value.\n * See `Validators.required` for additional information.\n */\nfunction requiredValidator(control) {\n return isEmptyInputValue(control.value) ? { 'required': true } : null;\n}\n/**\n * Validator that requires the control's value be true. This validator is commonly\n * used for required checkboxes.\n * See `Validators.requiredTrue` for additional information.\n */\nfunction requiredTrueValidator(control) {\n return control.value === true ? null : { 'required': true };\n}\n/**\n * Validator that requires the control's value pass an email validation test.\n * See `Validators.email` for additional information.\n */\nfunction emailValidator(control) {\n if (isEmptyInputValue(control.value)) {\n return null; // don't validate empty values to allow optional controls\n }\n return EMAIL_REGEXP.test(control.value) ? null : { 'email': true };\n}\n/**\n * Validator that requires the length of the control's value to be greater than or equal\n * to the provided minimum length. See `Validators.minLength` for additional information.\n */\nfunction minLengthValidator(minLength) {\n return (control) => {\n if (isEmptyInputValue(control.value) || !hasValidLength(control.value)) {\n // don't validate empty values to allow optional controls\n // don't validate values without `length` property\n return null;\n }\n return control.value.length < minLength\n ? { 'minlength': { 'requiredLength': minLength, 'actualLength': control.value.length } }\n : null;\n };\n}\n/**\n * Validator that requires the length of the control's value to be less than or equal\n * to the provided maximum length. See `Validators.maxLength` for additional information.\n */\nfunction maxLengthValidator(maxLength) {\n return (control) => {\n return hasValidLength(control.value) && control.value.length > maxLength\n ? { 'maxlength': { 'requiredLength': maxLength, 'actualLength': control.value.length } }\n : null;\n };\n}\n/**\n * Validator that requires the control's value to match a regex pattern.\n * See `Validators.pattern` for additional information.\n */\nfunction patternValidator(pattern) {\n if (!pattern)\n return nullValidator;\n let regex;\n let regexStr;\n if (typeof pattern === 'string') {\n regexStr = '';\n if (pattern.charAt(0) !== '^')\n regexStr += '^';\n regexStr += pattern;\n if (pattern.charAt(pattern.length - 1) !== '$')\n regexStr += '$';\n regex = new RegExp(regexStr);\n }\n else {\n regexStr = pattern.toString();\n regex = pattern;\n }\n return (control) => {\n if (isEmptyInputValue(control.value)) {\n return null; // don't validate empty values to allow optional controls\n }\n const value = control.value;\n return regex.test(value)\n ? null\n : { 'pattern': { 'requiredPattern': regexStr, 'actualValue': value } };\n };\n}\n/**\n * Function that has `ValidatorFn` shape, but performs no operation.\n */\nfunction nullValidator(control) {\n return null;\n}\nfunction isPresent(o) {\n return o != null;\n}\nfunction toObservable(value) {\n const obs = ɵisPromise(value) ? from(value) : value;\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ɵisSubscribable(obs)) {\n let errorMessage = `Expected async validator to return Promise or Observable.`;\n // A synchronous validator will return object or null.\n if (typeof value === 'object') {\n errorMessage +=\n ' Are you using a synchronous validator where an async validator is expected?';\n }\n throw new ɵRuntimeError(-1101 /* RuntimeErrorCode.WRONG_VALIDATOR_RETURN_TYPE */, errorMessage);\n }\n return obs;\n}\nfunction mergeErrors(arrayOfErrors) {\n let res = {};\n arrayOfErrors.forEach((errors) => {\n res = errors != null ? { ...res, ...errors } : res;\n });\n return Object.keys(res).length === 0 ? null : res;\n}\nfunction executeValidators(control, validators) {\n return validators.map((validator) => validator(control));\n}\nfunction isValidatorFn(validator) {\n return !validator.validate;\n}\n/**\n * Given the list of validators that may contain both functions as well as classes, return the list\n * of validator functions (convert validator classes into validator functions). This is needed to\n * have consistent structure in validators list before composing them.\n *\n * @param validators The set of validators that may contain validators both in plain function form\n * as well as represented as a validator class.\n */\nfunction normalizeValidators(validators) {\n return validators.map((validator) => {\n return isValidatorFn(validator)\n ? validator\n : ((c) => validator.validate(c));\n });\n}\n/**\n * Merges synchronous validators into a single validator function.\n * See `Validators.compose` for additional information.\n */\nfunction compose(validators) {\n if (!validators)\n return null;\n const presentValidators = validators.filter(isPresent);\n if (presentValidators.length == 0)\n return null;\n return function (control) {\n return mergeErrors(executeValidators(control, presentValidators));\n };\n}\n/**\n * Accepts a list of validators of different possible shapes (`Validator` and `ValidatorFn`),\n * normalizes the list (converts everything to `ValidatorFn`) and merges them into a single\n * validator function.\n */\nfunction composeValidators(validators) {\n return validators != null ? compose(normalizeValidators(validators)) : null;\n}\n/**\n * Merges asynchronous validators into a single validator function.\n * See `Validators.composeAsync` for additional information.\n */\nfunction composeAsync(validators) {\n if (!validators)\n return null;\n const presentValidators = validators.filter(isPresent);\n if (presentValidators.length == 0)\n return null;\n return function (control) {\n const observables = executeValidators(control, presentValidators).map(toObservable);\n return forkJoin(observables).pipe(map(mergeErrors));\n };\n}\n/**\n * Accepts a list of async validators of different possible shapes (`AsyncValidator` and\n * `AsyncValidatorFn`), normalizes the list (converts everything to `AsyncValidatorFn`) and merges\n * them into a single validator function.\n */\nfunction composeAsyncValidators(validators) {\n return validators != null\n ? composeAsync(normalizeValidators(validators))\n : null;\n}\n/**\n * Merges raw control validators with a given directive validator and returns the combined list of\n * validators as an array.\n */\nfunction mergeValidators(controlValidators, dirValidator) {\n if (controlValidators === null)\n return [dirValidator];\n return Array.isArray(controlValidators)\n ? [...controlValidators, dirValidator]\n : [controlValidators, dirValidator];\n}\n/**\n * Retrieves the list of raw synchronous validators attached to a given control.\n */\nfunction getControlValidators(control) {\n return control._rawValidators;\n}\n/**\n * Retrieves the list of raw asynchronous validators attached to a given control.\n */\nfunction getControlAsyncValidators(control) {\n return control._rawAsyncValidators;\n}\n/**\n * Accepts a singleton validator, an array, or null, and returns an array type with the provided\n * validators.\n *\n * @param validators A validator, validators, or null.\n * @returns A validators array.\n */\nfunction makeValidatorsArray(validators) {\n if (!validators)\n return [];\n return Array.isArray(validators) ? validators : [validators];\n}\n/**\n * Determines whether a validator or validators array has a given validator.\n *\n * @param validators The validator or validators to compare against.\n * @param validator The validator to check.\n * @returns Whether the validator is present.\n */\nfunction hasValidator(validators, validator) {\n return Array.isArray(validators) ? validators.includes(validator) : validators === validator;\n}\n/**\n * Combines two arrays of validators into one. If duplicates are provided, only one will be added.\n *\n * @param validators The new validators.\n * @param currentValidators The base array of current validators.\n * @returns An array of validators.\n */\nfunction addValidators(validators, currentValidators) {\n const current = makeValidatorsArray(currentValidators);\n const validatorsToAdd = makeValidatorsArray(validators);\n validatorsToAdd.forEach((v) => {\n // Note: if there are duplicate entries in the new validators array,\n // only the first one would be added to the current list of validators.\n // Duplicate ones would be ignored since `hasValidator` would detect\n // the presence of a validator function and we update the current list in place.\n if (!hasValidator(current, v)) {\n current.push(v);\n }\n });\n return current;\n}\nfunction removeValidators(validators, currentValidators) {\n return makeValidatorsArray(currentValidators).filter((v) => !hasValidator(validators, v));\n}\n\n/**\n * @description\n * Base class for control directives.\n *\n * This class is only used internally in the `ReactiveFormsModule` and the `FormsModule`.\n *\n * @publicApi\n */\nclass AbstractControlDirective {\n /**\n * @description\n * Reports the value of the control if it is present, otherwise null.\n */\n get value() {\n return this.control ? this.control.value : null;\n }\n /**\n * @description\n * Reports whether the control is valid. A control is considered valid if no\n * validation errors exist with the current value.\n * If the control is not present, null is returned.\n */\n get valid() {\n return this.control ? this.control.valid : null;\n }\n /**\n * @description\n * Reports whether the control is invalid, meaning that an error exists in the input value.\n * If the control is not present, null is returned.\n */\n get invalid() {\n return this.control ? this.control.invalid : null;\n }\n /**\n * @description\n * Reports whether a control is pending, meaning that async validation is occurring and\n * errors are not yet available for the input value. If the control is not present, null is\n * returned.\n */\n get pending() {\n return this.control ? this.control.pending : null;\n }\n /**\n * @description\n * Reports whether the control is disabled, meaning that the control is disabled\n * in the UI and is exempt from validation checks and excluded from aggregate\n * values of ancestor controls. If the control is not present, null is returned.\n */\n get disabled() {\n return this.control ? this.control.disabled : null;\n }\n /**\n * @description\n * Reports whether the control is enabled, meaning that the control is included in ancestor\n * calculations of validity or value. If the control is not present, null is returned.\n */\n get enabled() {\n return this.control ? this.control.enabled : null;\n }\n /**\n * @description\n * Reports the control's validation errors. If the control is not present, null is returned.\n */\n get errors() {\n return this.control ? this.control.errors : null;\n }\n /**\n * @description\n * Reports whether the control is pristine, meaning that the user has not yet changed\n * the value in the UI. If the control is not present, null is returned.\n */\n get pristine() {\n return this.control ? this.control.pristine : null;\n }\n /**\n * @description\n * Reports whether the control is dirty, meaning that the user has changed\n * the value in the UI. If the control is not present, null is returned.\n */\n get dirty() {\n return this.control ? this.control.dirty : null;\n }\n /**\n * @description\n * Reports whether the control is touched, meaning that the user has triggered\n * a `blur` event on it. If the control is not present, null is returned.\n */\n get touched() {\n return this.control ? this.control.touched : null;\n }\n /**\n * @description\n * Reports the validation status of the control. Possible values include:\n * 'VALID', 'INVALID', 'DISABLED', and 'PENDING'.\n * If the control is not present, null is returned.\n */\n get status() {\n return this.control ? this.control.status : null;\n }\n /**\n * @description\n * Reports whether the control is untouched, meaning that the user has not yet triggered\n * a `blur` event on it. If the control is not present, null is returned.\n */\n get untouched() {\n return this.control ? this.control.untouched : null;\n }\n /**\n * @description\n * Returns a multicasting observable that emits a validation status whenever it is\n * calculated for the control. If the control is not present, null is returned.\n */\n get statusChanges() {\n return this.control ? this.control.statusChanges : null;\n }\n /**\n * @description\n * Returns a multicasting observable of value changes for the control that emits every time the\n * value of the control changes in the UI or programmatically.\n * If the control is not present, null is returned.\n */\n get valueChanges() {\n return this.control ? this.control.valueChanges : null;\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return null;\n }\n /**\n * Contains the result of merging synchronous validators into a single validator function\n * (combined using `Validators.compose`).\n */\n _composedValidatorFn;\n /**\n * Contains the result of merging asynchronous validators into a single validator function\n * (combined using `Validators.composeAsync`).\n */\n _composedAsyncValidatorFn;\n /**\n * Set of synchronous validators as they were provided while calling `setValidators` function.\n * @internal\n */\n _rawValidators = [];\n /**\n * Set of asynchronous validators as they were provided while calling `setAsyncValidators`\n * function.\n * @internal\n */\n _rawAsyncValidators = [];\n /**\n * Sets synchronous validators for this directive.\n * @internal\n */\n _setValidators(validators) {\n this._rawValidators = validators || [];\n this._composedValidatorFn = composeValidators(this._rawValidators);\n }\n /**\n * Sets asynchronous validators for this directive.\n * @internal\n */\n _setAsyncValidators(validators) {\n this._rawAsyncValidators = validators || [];\n this._composedAsyncValidatorFn = composeAsyncValidators(this._rawAsyncValidators);\n }\n /**\n * @description\n * Synchronous validator function composed of all the synchronous validators registered with this\n * directive.\n */\n get validator() {\n return this._composedValidatorFn || null;\n }\n /**\n * @description\n * Asynchronous validator function composed of all the asynchronous validators registered with\n * this directive.\n */\n get asyncValidator() {\n return this._composedAsyncValidatorFn || null;\n }\n /*\n * The set of callbacks to be invoked when directive instance is being destroyed.\n */\n _onDestroyCallbacks = [];\n /**\n * Internal function to register callbacks that should be invoked\n * when directive instance is being destroyed.\n * @internal\n */\n _registerOnDestroy(fn) {\n this._onDestroyCallbacks.push(fn);\n }\n /**\n * Internal function to invoke all registered \"on destroy\" callbacks.\n * Note: calling this function also clears the list of callbacks.\n * @internal\n */\n _invokeOnDestroyCallbacks() {\n this._onDestroyCallbacks.forEach((fn) => fn());\n this._onDestroyCallbacks = [];\n }\n /**\n * @description\n * Resets the control with the provided value if the control is present.\n */\n reset(value = undefined) {\n if (this.control)\n this.control.reset(value);\n }\n /**\n * @description\n * Reports whether the control with the given path has the error specified.\n *\n * @param errorCode The code of the error to check\n * @param path A list of control names that designates how to move from the current control\n * to the control that should be queried for errors.\n *\n * @usageNotes\n * For example, for the following `FormGroup`:\n *\n * ```ts\n * form = new FormGroup({\n * address: new FormGroup({ street: new FormControl() })\n * });\n * ```\n *\n * The path to the 'street' control from the root form would be 'address' -> 'street'.\n *\n * It can be provided to this method in one of two formats:\n *\n * 1. An array of string control names, e.g. `['address', 'street']`\n * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n *\n * If no path is given, this method checks for the error on the current control.\n *\n * @returns whether the given error is present in the control at the given path.\n *\n * If the control is not present, false is returned.\n */\n hasError(errorCode, path) {\n return this.control ? this.control.hasError(errorCode, path) : false;\n }\n /**\n * @description\n * Reports error data for the control with the given path.\n *\n * @param errorCode The code of the error to check\n * @param path A list of control names that designates how to move from the current control\n * to the control that should be queried for errors.\n *\n * @usageNotes\n * For example, for the following `FormGroup`:\n *\n * ```ts\n * form = new FormGroup({\n * address: new FormGroup({ street: new FormControl() })\n * });\n * ```\n *\n * The path to the 'street' control from the root form would be 'address' -> 'street'.\n *\n * It can be provided to this method in one of two formats:\n *\n * 1. An array of string control names, e.g. `['address', 'street']`\n * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n *\n * @returns error data for that particular error. If the control or error is not present,\n * null is returned.\n */\n getError(errorCode, path) {\n return this.control ? this.control.getError(errorCode, path) : null;\n }\n}\n\n/**\n * @description\n * A base class for directives that contain multiple registered instances of `NgControl`.\n * Only used by the forms module.\n *\n * @publicApi\n */\nclass ControlContainer extends AbstractControlDirective {\n /**\n * @description\n * The name for the control\n */\n // TODO(issue/24571): remove '!'.\n name;\n /**\n * @description\n * The top-level form directive for the control.\n */\n get formDirective() {\n return null;\n }\n /**\n * @description\n * The path to this group.\n */\n get path() {\n return null;\n }\n}\n\n/**\n * @description\n * A base class that all `FormControl`-based directives extend. It binds a `FormControl`\n * object to a DOM element.\n *\n * @publicApi\n */\nclass NgControl extends AbstractControlDirective {\n /**\n * @description\n * The parent form for the control.\n *\n * @internal\n */\n _parent = null;\n /**\n * @description\n * The name for the control\n */\n name = null;\n /**\n * @description\n * The value accessor for the control\n */\n valueAccessor = null;\n}\n\n// DO NOT REFACTOR!\n// Each status is represented by a separate function to make sure that\n// advanced Closure Compiler optimizations related to property renaming\n// can work correctly.\nclass AbstractControlStatus {\n _cd;\n constructor(cd) {\n this._cd = cd;\n }\n get isTouched() {\n // track the touched signal\n this._cd?.control?._touched?.();\n return !!this._cd?.control?.touched;\n }\n get isUntouched() {\n return !!this._cd?.control?.untouched;\n }\n get isPristine() {\n // track the pristine signal\n this._cd?.control?._pristine?.();\n return !!this._cd?.control?.pristine;\n }\n get isDirty() {\n // pristine signal already tracked above\n return !!this._cd?.control?.dirty;\n }\n get isValid() {\n // track the status signal\n this._cd?.control?._status?.();\n return !!this._cd?.control?.valid;\n }\n get isInvalid() {\n // status signal already tracked above\n return !!this._cd?.control?.invalid;\n }\n get isPending() {\n // status signal already tracked above\n return !!this._cd?.control?.pending;\n }\n get isSubmitted() {\n // track the submitted signal\n this._cd?._submitted?.();\n // We check for the `submitted` field from `NgForm` and `FormGroupDirective` classes, but\n // we avoid instanceof checks to prevent non-tree-shakable references to those types.\n return !!this._cd?.submitted;\n }\n}\nconst ngControlStatusHost = {\n '[class.ng-untouched]': 'isUntouched',\n '[class.ng-touched]': 'isTouched',\n '[class.ng-pristine]': 'isPristine',\n '[class.ng-dirty]': 'isDirty',\n '[class.ng-valid]': 'isValid',\n '[class.ng-invalid]': 'isInvalid',\n '[class.ng-pending]': 'isPending',\n};\nconst ngGroupStatusHost = {\n ...ngControlStatusHost,\n '[class.ng-submitted]': 'isSubmitted',\n};\n/**\n * @description\n * Directive automatically applied to Angular form controls that sets CSS classes\n * based on control status.\n *\n * @usageNotes\n *\n * ### CSS classes applied\n *\n * The following classes are applied as the properties become true:\n *\n * * ng-valid\n * * ng-invalid\n * * ng-pending\n * * ng-pristine\n * * ng-dirty\n * * ng-untouched\n * * ng-touched\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgControlStatus extends AbstractControlStatus {\n constructor(cd) {\n super(cd);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgControlStatus, deps: [{ token: NgControl, self: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgControlStatus, isStandalone: false, selector: \"[formControlName],[ngModel],[formControl]\", host: { properties: { \"class.ng-untouched\": \"isUntouched\", \"class.ng-touched\": \"isTouched\", \"class.ng-pristine\": \"isPristine\", \"class.ng-dirty\": \"isDirty\", \"class.ng-valid\": \"isValid\", \"class.ng-invalid\": \"isInvalid\", \"class.ng-pending\": \"isPending\" } }, usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgControlStatus, decorators: [{\n type: Directive,\n args: [{\n selector: '[formControlName],[ngModel],[formControl]',\n host: ngControlStatusHost,\n standalone: false,\n }]\n }], ctorParameters: () => [{ type: NgControl, decorators: [{\n type: Self\n }] }] });\n/**\n * @description\n * Directive automatically applied to Angular form groups that sets CSS classes\n * based on control status (valid/invalid/dirty/etc). On groups, this includes the additional\n * class ng-submitted.\n *\n * @see {@link NgControlStatus}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgControlStatusGroup extends AbstractControlStatus {\n constructor(cd) {\n super(cd);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgControlStatusGroup, deps: [{ token: ControlContainer, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgControlStatusGroup, isStandalone: false, selector: \"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]\", host: { properties: { \"class.ng-untouched\": \"isUntouched\", \"class.ng-touched\": \"isTouched\", \"class.ng-pristine\": \"isPristine\", \"class.ng-dirty\": \"isDirty\", \"class.ng-valid\": \"isValid\", \"class.ng-invalid\": \"isInvalid\", \"class.ng-pending\": \"isPending\", \"class.ng-submitted\": \"isSubmitted\" } }, usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgControlStatusGroup, decorators: [{\n type: Directive,\n args: [{\n selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',\n host: ngGroupStatusHost,\n standalone: false,\n }]\n }], ctorParameters: () => [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Self\n }] }] });\n\nconst formControlNameExample = `\n <div [formGroup]=\"myGroup\">\n <input formControlName=\"firstName\">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });`;\nconst formGroupNameExample = `\n <div [formGroup]=\"myGroup\">\n <div formGroupName=\"person\">\n <input formControlName=\"firstName\">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });`;\nconst formArrayNameExample = `\n <div [formGroup]=\"myGroup\">\n <div formArrayName=\"cities\">\n <div *ngFor=\"let city of cityArray.controls; index as i\">\n <input [formControlName]=\"i\">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl('SF')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });`;\nconst ngModelGroupExample = `\n <form>\n <div ngModelGroup=\"person\">\n <input [(ngModel)]=\"person.name\" name=\"firstName\">\n </div>\n </form>`;\nconst ngModelWithFormGroupExample = `\n <div [formGroup]=\"myGroup\">\n <input formControlName=\"firstName\">\n <input [(ngModel)]=\"showMoreControls\" [ngModelOptions]=\"{standalone: true}\">\n </div>\n`;\n\nfunction controlParentException(nameOrIndex) {\n return new ɵRuntimeError(1050 /* RuntimeErrorCode.FORM_CONTROL_NAME_MISSING_PARENT */, `formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n ${describeFormControl(nameOrIndex)}\n\n Example:\n\n ${formControlNameExample}`);\n}\nfunction describeFormControl(nameOrIndex) {\n if (nameOrIndex == null || nameOrIndex === '') {\n return '';\n }\n const valueType = typeof nameOrIndex === 'string' ? 'name' : 'index';\n return `Affected Form Control ${valueType}: \"${nameOrIndex}\"`;\n}\nfunction ngModelGroupException() {\n return new ɵRuntimeError(1051 /* RuntimeErrorCode.FORM_CONTROL_NAME_INSIDE_MODEL_GROUP */, `formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a \"form\" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${formGroupNameExample}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${ngModelGroupExample}`);\n}\nfunction missingFormException() {\n return new ɵRuntimeError(1052 /* RuntimeErrorCode.FORM_GROUP_MISSING_INSTANCE */, `formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${formControlNameExample}`);\n}\nfunction groupParentException() {\n return new ɵRuntimeError(1053 /* RuntimeErrorCode.FORM_GROUP_NAME_MISSING_PARENT */, `formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${formGroupNameExample}`);\n}\nfunction arrayParentException() {\n return new ɵRuntimeError(1054 /* RuntimeErrorCode.FORM_ARRAY_NAME_MISSING_PARENT */, `formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${formArrayNameExample}`);\n}\nconst disabledAttrWarning = `\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n\n Example:\n // Specify the \\`disabled\\` property at control creation time:\n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n\n // Controls can also be enabled/disabled after creation:\n form.get('first')?.enable();\n form.get('last')?.disable();\n`;\nconst asyncValidatorsDroppedWithOptsWarning = `\n It looks like you're constructing using a FormControl with both an options argument and an\n async validators argument. Mixing these arguments will cause your async validators to be dropped.\n You should either put all your validators in the options object, or in separate validators\n arguments. For example:\n\n // Using validators arguments\n fc = new FormControl(42, Validators.required, myAsyncValidator);\n\n // Using AbstractControlOptions\n fc = new FormControl(42, {validators: Validators.required, asyncValidators: myAV});\n\n // Do NOT mix them: async validators will be dropped!\n fc = new FormControl(42, {validators: Validators.required}, /* Oops! */ myAsyncValidator);\n`;\nfunction ngModelWarning(directiveName) {\n return `\n It looks like you're using ngModel on the same form field as ${directiveName}.\n Support for using the ngModel input property and ngModelChange event with\n reactive form directives has been deprecated in Angular v6 and will be removed\n in a future version of Angular.\n\n For more information on this, see our API docs here:\n https://angular.io/api/forms/${directiveName === 'formControl' ? 'FormControlDirective' : 'FormControlName'}#use-with-ngmodel\n `;\n}\nfunction describeKey(isFormGroup, key) {\n return isFormGroup ? `with name: '${key}'` : `at index: ${key}`;\n}\nfunction noControlsError(isFormGroup) {\n return `\n There are no form controls registered with this ${isFormGroup ? 'group' : 'array'} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `;\n}\nfunction missingControlError(isFormGroup, key) {\n return `Cannot find form control ${describeKey(isFormGroup, key)}`;\n}\nfunction missingControlValueError(isFormGroup, key) {\n return `Must supply a value for form control ${describeKey(isFormGroup, key)}`;\n}\n\n/**\n * Reports that a control is valid, meaning that no errors exist in the input value.\n *\n * @see {@link status}\n */\nconst VALID = 'VALID';\n/**\n * Reports that a control is invalid, meaning that an error exists in the input value.\n *\n * @see {@link status}\n */\nconst INVALID = 'INVALID';\n/**\n * Reports that a control is pending, meaning that async validation is occurring and\n * errors are not yet available for the input value.\n *\n * @see {@link markAsPending}\n * @see {@link status}\n */\nconst PENDING = 'PENDING';\n/**\n * Reports that a control is disabled, meaning that the control is exempt from ancestor\n * calculations of validity or value.\n *\n * @see {@link markAsDisabled}\n * @see {@link status}\n */\nconst DISABLED = 'DISABLED';\n/**\n * Base class for every event sent by `AbstractControl.events()`\n *\n * @publicApi\n */\nclass ControlEvent {\n}\n/**\n * Event fired when the value of a control changes.\n *\n * @publicApi\n */\nclass ValueChangeEvent extends ControlEvent {\n value;\n source;\n constructor(value, source) {\n super();\n this.value = value;\n this.source = source;\n }\n}\n/**\n * Event fired when the control's pristine state changes (pristine <=> dirty).\n *\n * @publicApi */\nclass PristineChangeEvent extends ControlEvent {\n pristine;\n source;\n constructor(pristine, source) {\n super();\n this.pristine = pristine;\n this.source = source;\n }\n}\n/**\n * Event fired when the control's touched status changes (touched <=> untouched).\n *\n * @publicApi\n */\nclass TouchedChangeEvent extends ControlEvent {\n touched;\n source;\n constructor(touched, source) {\n super();\n this.touched = touched;\n this.source = source;\n }\n}\n/**\n * Event fired when the control's status changes.\n *\n * @publicApi\n */\nclass StatusChangeEvent extends ControlEvent {\n status;\n source;\n constructor(status, source) {\n super();\n this.status = status;\n this.source = source;\n }\n}\n/**\n * Event fired when a form is submitted\n *\n * @publicApi\n */\nclass FormSubmittedEvent extends ControlEvent {\n source;\n constructor(source) {\n super();\n this.source = source;\n }\n}\n/**\n * Event fired when a form is reset.\n *\n * @publicApi\n */\nclass FormResetEvent extends ControlEvent {\n source;\n constructor(source) {\n super();\n this.source = source;\n }\n}\n/**\n * Gets validators from either an options object or given validators.\n */\nfunction pickValidators(validatorOrOpts) {\n return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.validators : validatorOrOpts) || null;\n}\n/**\n * Creates validator function by combining provided validators.\n */\nfunction coerceToValidator(validator) {\n return Array.isArray(validator) ? composeValidators(validator) : validator || null;\n}\n/**\n * Gets async validators from either an options object or given validators.\n */\nfunction pickAsyncValidators(asyncValidator, validatorOrOpts) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (isOptionsObj(validatorOrOpts) && asyncValidator) {\n console.warn(asyncValidatorsDroppedWithOptsWarning);\n }\n }\n return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.asyncValidators : asyncValidator) || null;\n}\n/**\n * Creates async validator function by combining provided async validators.\n */\nfunction coerceToAsyncValidator(asyncValidator) {\n return Array.isArray(asyncValidator)\n ? composeAsyncValidators(asyncValidator)\n : asyncValidator || null;\n}\nfunction isOptionsObj(validatorOrOpts) {\n return (validatorOrOpts != null &&\n !Array.isArray(validatorOrOpts) &&\n typeof validatorOrOpts === 'object');\n}\nfunction assertControlPresent(parent, isGroup, key) {\n const controls = parent.controls;\n const collection = isGroup ? Object.keys(controls) : controls;\n if (!collection.length) {\n throw new ɵRuntimeError(1000 /* RuntimeErrorCode.NO_CONTROLS */, typeof ngDevMode === 'undefined' || ngDevMode ? noControlsError(isGroup) : '');\n }\n if (!controls[key]) {\n throw new ɵRuntimeError(1001 /* RuntimeErrorCode.MISSING_CONTROL */, typeof ngDevMode === 'undefined' || ngDevMode ? missingControlError(isGroup, key) : '');\n }\n}\nfunction assertAllValuesPresent(control, isGroup, value) {\n control._forEachChild((_, key) => {\n if (value[key] === undefined) {\n throw new ɵRuntimeError(1002 /* RuntimeErrorCode.MISSING_CONTROL_VALUE */, typeof ngDevMode === 'undefined' || ngDevMode ? missingControlValueError(isGroup, key) : '');\n }\n });\n}\n/**\n * This is the base class for `FormControl`, `FormGroup`, and `FormArray`.\n *\n * It provides some of the shared behavior that all controls and groups of controls have, like\n * running validators, calculating status, and resetting state. It also defines the properties\n * that are shared between all sub-classes, like `value`, `valid`, and `dirty`. It shouldn't be\n * instantiated directly.\n *\n * The first type parameter TValue represents the value type of the control (`control.value`).\n * The optional type parameter TRawValue represents the raw value type (`control.getRawValue()`).\n *\n * @see [Forms Guide](guide/forms)\n * @see [Reactive Forms Guide](guide/forms/reactive-forms)\n * @see [Dynamic Forms Guide](guide/forms/dynamic-forms)\n *\n * @publicApi\n */\nclass AbstractControl {\n /** @internal */\n _pendingDirty = false;\n /**\n * Indicates that a control has its own pending asynchronous validation in progress.\n * It also stores if the control should emit events when the validation status changes.\n *\n * @internal\n */\n _hasOwnPendingAsyncValidator = null;\n /** @internal */\n _pendingTouched = false;\n /** @internal */\n _onCollectionChange = () => { };\n /** @internal */\n _updateOn;\n _parent = null;\n _asyncValidationSubscription;\n /**\n * Contains the result of merging synchronous validators into a single validator function\n * (combined using `Validators.compose`).\n *\n * @internal\n */\n _composedValidatorFn;\n /**\n * Contains the result of merging asynchronous validators into a single validator function\n * (combined using `Validators.composeAsync`).\n *\n * @internal\n */\n _composedAsyncValidatorFn;\n /**\n * Synchronous validators as they were provided:\n * - in `AbstractControl` constructor\n * - as an argument while calling `setValidators` function\n * - while calling the setter on the `validator` field (e.g. `control.validator = validatorFn`)\n *\n * @internal\n */\n _rawValidators;\n /**\n * Asynchronous validators as they were provided:\n * - in `AbstractControl` constructor\n * - as an argument while calling `setAsyncValidators` function\n * - while calling the setter on the `asyncValidator` field (e.g. `control.asyncValidator =\n * asyncValidatorFn`)\n *\n * @internal\n */\n _rawAsyncValidators;\n /**\n * The current value of the control.\n *\n * * For a `FormControl`, the current value.\n * * For an enabled `FormGroup`, the values of enabled controls as an object\n * with a key-value pair for each member of the group.\n * * For a disabled `FormGroup`, the values of all controls as an object\n * with a key-value pair for each member of the group.\n * * For a `FormArray`, the values of enabled controls as an array.\n *\n */\n value;\n /**\n * Initialize the AbstractControl instance.\n *\n * @param validators The function or array of functions that is used to determine the validity of\n * this control synchronously.\n * @param asyncValidators The function or array of functions that is used to determine validity of\n * this control asynchronously.\n */\n constructor(validators, asyncValidators) {\n this._assignValidators(validators);\n this._assignAsyncValidators(asyncValidators);\n }\n /**\n * Returns the function that is used to determine the validity of this control synchronously.\n * If multiple validators have been added, this will be a single composed function.\n * See `Validators.compose()` for additional information.\n */\n get validator() {\n return this._composedValidatorFn;\n }\n set validator(validatorFn) {\n this._rawValidators = this._composedValidatorFn = validatorFn;\n }\n /**\n * Returns the function that is used to determine the validity of this control asynchronously.\n * If multiple validators have been added, this will be a single composed function.\n * See `Validators.compose()` for additional information.\n */\n get asyncValidator() {\n return this._composedAsyncValidatorFn;\n }\n set asyncValidator(asyncValidatorFn) {\n this._rawAsyncValidators = this._composedAsyncValidatorFn = asyncValidatorFn;\n }\n /**\n * The parent control.\n */\n get parent() {\n return this._parent;\n }\n /**\n * The validation status of the control.\n *\n * @see {@link FormControlStatus}\n *\n * These status values are mutually exclusive, so a control cannot be\n * both valid AND invalid or invalid AND disabled.\n */\n get status() {\n return untracked(this.statusReactive);\n }\n set status(v) {\n untracked(() => this.statusReactive.set(v));\n }\n /** @internal */\n _status = computed(() => this.statusReactive());\n statusReactive = signal(undefined);\n /**\n * A control is `valid` when its `status` is `VALID`.\n *\n * @see {@link AbstractControl.status}\n *\n * @returns True if the control has passed all of its validation tests,\n * false otherwise.\n */\n get valid() {\n return this.status === VALID;\n }\n /**\n * A control is `invalid` when its `status` is `INVALID`.\n *\n * @see {@link AbstractControl.status}\n *\n * @returns True if this control has failed one or more of its validation checks,\n * false otherwise.\n */\n get invalid() {\n return this.status === INVALID;\n }\n /**\n * A control is `pending` when its `status` is `PENDING`.\n *\n * @see {@link AbstractControl.status}\n *\n * @returns True if this control is in the process of conducting a validation check,\n * false otherwise.\n */\n get pending() {\n return this.status == PENDING;\n }\n /**\n * A control is `disabled` when its `status` is `DISABLED`.\n *\n * Disabled controls are exempt from validation checks and\n * are not included in the aggregate value of their ancestor\n * controls.\n *\n * @see {@link AbstractControl.status}\n *\n * @returns True if the control is disabled, false otherwise.\n */\n get disabled() {\n return this.status === DISABLED;\n }\n /**\n * A control is `enabled` as long as its `status` is not `DISABLED`.\n *\n * @returns True if the control has any status other than 'DISABLED',\n * false if the status is 'DISABLED'.\n *\n * @see {@link AbstractControl.status}\n *\n */\n get enabled() {\n return this.status !== DISABLED;\n }\n /**\n * An object containing any errors generated by failing validation,\n * or null if there are no errors.\n */\n errors;\n /**\n * A control is `pristine` if the user has not yet changed\n * the value in the UI.\n *\n * @returns True if the user has not yet changed the value in the UI; compare `dirty`.\n * Programmatic changes to a control's value do not mark it dirty.\n */\n get pristine() {\n return untracked(this.pristineReactive);\n }\n set pristine(v) {\n untracked(() => this.pristineReactive.set(v));\n }\n /** @internal */\n _pristine = computed(() => this.pristineReactive());\n pristineReactive = signal(true);\n /**\n * A control is `dirty` if the user has changed the value\n * in the UI.\n *\n * @returns True if the user has changed the value of this control in the UI; compare `pristine`.\n * Programmatic changes to a control's value do not mark it dirty.\n */\n get dirty() {\n return !this.pristine;\n }\n /**\n * True if the control is marked as `touched`.\n *\n * A control is marked `touched` once the user has triggered\n * a `blur` event on it.\n */\n get touched() {\n return untracked(this.touchedReactive);\n }\n set touched(v) {\n untracked(() => this.touchedReactive.set(v));\n }\n /** @internal */\n _touched = computed(() => this.touchedReactive());\n touchedReactive = signal(false);\n /**\n * True if the control has not been marked as touched\n *\n * A control is `untouched` if the user has not yet triggered\n * a `blur` event on it.\n */\n get untouched() {\n return !this.touched;\n }\n /**\n * Exposed as observable, see below.\n *\n * @internal\n */\n _events = new Subject();\n /**\n * A multicasting observable that emits an event every time the state of the control changes.\n * It emits for value, status, pristine or touched changes.\n *\n * **Note**: On value change, the emit happens right after a value of this control is updated. The\n * value of a parent control (for example if this FormControl is a part of a FormGroup) is updated\n * later, so accessing a value of a parent control (using the `value` property) from the callback\n * of this event might result in getting a value that has not been updated yet. Subscribe to the\n * `events` of the parent control instead.\n * For other event types, the events are emitted after the parent control has been updated.\n *\n */\n events = this._events.asObservable();\n /**\n * A multicasting observable that emits an event every time the value of the control changes, in\n * the UI or programmatically. It also emits an event each time you call enable() or disable()\n * without passing along {emitEvent: false} as a function argument.\n *\n * **Note**: the emit happens right after a value of this control is updated. The value of a\n * parent control (for example if this FormControl is a part of a FormGroup) is updated later, so\n * accessing a value of a parent control (using the `value` property) from the callback of this\n * event might result in getting a value that has not been updated yet. Subscribe to the\n * `valueChanges` event of the parent control instead.\n *\n * TODO: this should be piped from events() but is breaking in G3\n */\n valueChanges;\n /**\n * A multicasting observable that emits an event every time the validation `status` of the control\n * recalculates.\n *\n * @see {@link FormControlStatus}\n * @see {@link AbstractControl.status}\n *\n * TODO: this should be piped from events() but is breaking in G3\n */\n statusChanges;\n /**\n * Reports the update strategy of the `AbstractControl` (meaning\n * the event on which the control updates itself).\n * Possible values: `'change'` | `'blur'` | `'submit'`\n * Default value: `'change'`\n */\n get updateOn() {\n return this._updateOn ? this._updateOn : this.parent ? this.parent.updateOn : 'change';\n }\n /**\n * Sets the synchronous validators that are active on this control. Calling\n * this overwrites any existing synchronous validators.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * If you want to add a new validator without affecting existing ones, consider\n * using `addValidators()` method instead.\n */\n setValidators(validators) {\n this._assignValidators(validators);\n }\n /**\n * Sets the asynchronous validators that are active on this control. Calling this\n * overwrites any existing asynchronous validators.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * If you want to add a new validator without affecting existing ones, consider\n * using `addAsyncValidators()` method instead.\n */\n setAsyncValidators(validators) {\n this._assignAsyncValidators(validators);\n }\n /**\n * Add a synchronous validator or validators to this control, without affecting other validators.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * Adding a validator that already exists will have no effect. If duplicate validator functions\n * are present in the `validators` array, only the first instance would be added to a form\n * control.\n *\n * @param validators The new validator function or functions to add to this control.\n */\n addValidators(validators) {\n this.setValidators(addValidators(validators, this._rawValidators));\n }\n /**\n * Add an asynchronous validator or validators to this control, without affecting other\n * validators.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * Adding a validator that already exists will have no effect.\n *\n * @param validators The new asynchronous validator function or functions to add to this control.\n */\n addAsyncValidators(validators) {\n this.setAsyncValidators(addValidators(validators, this._rawAsyncValidators));\n }\n /**\n * Remove a synchronous validator from this control, without affecting other validators.\n * Validators are compared by function reference; you must pass a reference to the exact same\n * validator function as the one that was originally set. If a provided validator is not found,\n * it is ignored.\n *\n * @usageNotes\n *\n * ### Reference to a ValidatorFn\n *\n * ```\n * // Reference to the RequiredValidator\n * const ctrl = new FormControl<string | null>('', Validators.required);\n * ctrl.removeValidators(Validators.required);\n *\n * // Reference to anonymous function inside MinValidator\n * const minValidator = Validators.min(3);\n * const ctrl = new FormControl<string | null>('', minValidator);\n * expect(ctrl.hasValidator(minValidator)).toEqual(true)\n * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)\n *\n * ctrl.removeValidators(minValidator);\n * ```\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * @param validators The validator or validators to remove.\n */\n removeValidators(validators) {\n this.setValidators(removeValidators(validators, this._rawValidators));\n }\n /**\n * Remove an asynchronous validator from this control, without affecting other validators.\n * Validators are compared by function reference; you must pass a reference to the exact same\n * validator function as the one that was originally set. If a provided validator is not found, it\n * is ignored.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * @param validators The asynchronous validator or validators to remove.\n */\n removeAsyncValidators(validators) {\n this.setAsyncValidators(removeValidators(validators, this._rawAsyncValidators));\n }\n /**\n * Check whether a synchronous validator function is present on this control. The provided\n * validator must be a reference to the exact same function that was provided.\n *\n * @usageNotes\n *\n * ### Reference to a ValidatorFn\n *\n * ```\n * // Reference to the RequiredValidator\n * const ctrl = new FormControl<number | null>(0, Validators.required);\n * expect(ctrl.hasValidator(Validators.required)).toEqual(true)\n *\n * // Reference to anonymous function inside MinValidator\n * const minValidator = Validators.min(3);\n * const ctrl = new FormControl<number | null>(0, minValidator);\n * expect(ctrl.hasValidator(minValidator)).toEqual(true)\n * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)\n * ```\n *\n * @param validator The validator to check for presence. Compared by function reference.\n * @returns Whether the provided validator was found on this control.\n */\n hasValidator(validator) {\n return hasValidator(this._rawValidators, validator);\n }\n /**\n * Check whether an asynchronous validator function is present on this control. The provided\n * validator must be a reference to the exact same function that was provided.\n *\n * @param validator The asynchronous validator to check for presence. Compared by function\n * reference.\n * @returns Whether the provided asynchronous validator was found on this control.\n */\n hasAsyncValidator(validator) {\n return hasValidator(this._rawAsyncValidators, validator);\n }\n /**\n * Empties out the synchronous validator list.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n */\n clearValidators() {\n this.validator = null;\n }\n /**\n * Empties out the async validator list.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n */\n clearAsyncValidators() {\n this.asyncValidator = null;\n }\n markAsTouched(opts = {}) {\n const changed = this.touched === false;\n this.touched = true;\n const sourceControl = opts.sourceControl ?? this;\n if (this._parent && !opts.onlySelf) {\n this._parent.markAsTouched({ ...opts, sourceControl });\n }\n if (changed && opts.emitEvent !== false) {\n this._events.next(new TouchedChangeEvent(true, sourceControl));\n }\n }\n /**\n * Marks the control and all its descendant controls as `touched`.\n * @see {@link markAsTouched()}\n *\n * @param opts Configuration options that determine how the control propagates changes\n * and emits events after marking is applied.\n * * `emitEvent`: When true or not supplied (the default), the `events`\n * observable emits a `TouchedChangeEvent` with the `touched` property being `true`.\n * When false, no events are emitted.\n */\n markAllAsTouched(opts = {}) {\n this.markAsTouched({ onlySelf: true, emitEvent: opts.emitEvent, sourceControl: this });\n this._forEachChild((control) => control.markAllAsTouched(opts));\n }\n markAsUntouched(opts = {}) {\n const changed = this.touched === true;\n this.touched = false;\n this._pendingTouched = false;\n const sourceControl = opts.sourceControl ?? this;\n this._forEachChild((control) => {\n control.markAsUntouched({ onlySelf: true, emitEvent: opts.emitEvent, sourceControl });\n });\n if (this._parent && !opts.onlySelf) {\n this._parent._updateTouched(opts, sourceControl);\n }\n if (changed && opts.emitEvent !== false) {\n this._events.next(new TouchedChangeEvent(false, sourceControl));\n }\n }\n markAsDirty(opts = {}) {\n const changed = this.pristine === true;\n this.pristine = false;\n const sourceControl = opts.sourceControl ?? this;\n if (this._parent && !opts.onlySelf) {\n this._parent.markAsDirty({ ...opts, sourceControl });\n }\n if (changed && opts.emitEvent !== false) {\n this._events.next(new PristineChangeEvent(false, sourceControl));\n }\n }\n markAsPristine(opts = {}) {\n const changed = this.pristine === false;\n this.pristine = true;\n this._pendingDirty = false;\n const sourceControl = opts.sourceControl ?? this;\n this._forEachChild((control) => {\n /** We don't propagate the source control downwards */\n control.markAsPristine({ onlySelf: true, emitEvent: opts.emitEvent });\n });\n if (this._parent && !opts.onlySelf) {\n this._parent._updatePristine(opts, sourceControl);\n }\n if (changed && opts.emitEvent !== false) {\n this._events.next(new PristineChangeEvent(true, sourceControl));\n }\n }\n markAsPending(opts = {}) {\n this.status = PENDING;\n const sourceControl = opts.sourceControl ?? this;\n if (opts.emitEvent !== false) {\n this._events.next(new StatusChangeEvent(this.status, sourceControl));\n this.statusChanges.emit(this.status);\n }\n if (this._parent && !opts.onlySelf) {\n this._parent.markAsPending({ ...opts, sourceControl });\n }\n }\n disable(opts = {}) {\n // If parent has been marked artificially dirty we don't want to re-calculate the\n // parent's dirtiness based on the children.\n const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);\n this.status = DISABLED;\n this.errors = null;\n this._forEachChild((control) => {\n /** We don't propagate the source control downwards */\n control.disable({ ...opts, onlySelf: true });\n });\n this._updateValue();\n const sourceControl = opts.sourceControl ?? this;\n if (opts.emitEvent !== false) {\n this._events.next(new ValueChangeEvent(this.value, sourceControl));\n this._events.next(new StatusChangeEvent(this.status, sourceControl));\n this.valueChanges.emit(this.value);\n this.statusChanges.emit(this.status);\n }\n this._updateAncestors({ ...opts, skipPristineCheck }, this);\n this._onDisabledChange.forEach((changeFn) => changeFn(true));\n }\n /**\n * Enables the control. This means the control is included in validation checks and\n * the aggregate value of its parent. Its status recalculates based on its value and\n * its validators.\n *\n * By default, if the control has children, all children are enabled.\n *\n * @see {@link AbstractControl.status}\n *\n * @param opts Configure options that control how the control propagates changes and\n * emits events when marked as untouched\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n * * `emitEvent`: When true or not supplied (the default), the `statusChanges`,\n * `valueChanges` and `events`\n * observables emit events with the latest status and value when the control is enabled.\n * When false, no events are emitted.\n */\n enable(opts = {}) {\n // If parent has been marked artificially dirty we don't want to re-calculate the\n // parent's dirtiness based on the children.\n const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);\n this.status = VALID;\n this._forEachChild((control) => {\n control.enable({ ...opts, onlySelf: true });\n });\n this.updateValueAndValidity({ onlySelf: true, emitEvent: opts.emitEvent });\n this._updateAncestors({ ...opts, skipPristineCheck }, this);\n this._onDisabledChange.forEach((changeFn) => changeFn(false));\n }\n _updateAncestors(opts, sourceControl) {\n if (this._parent && !opts.onlySelf) {\n this._parent.updateValueAndValidity(opts);\n if (!opts.skipPristineCheck) {\n this._parent._updatePristine({}, sourceControl);\n }\n this._parent._updateTouched({}, sourceControl);\n }\n }\n /**\n * Sets the parent of the control\n *\n * @param parent The new parent.\n */\n setParent(parent) {\n this._parent = parent;\n }\n /**\n * The raw value of this control. For most control implementations, the raw value will include\n * disabled children.\n */\n getRawValue() {\n return this.value;\n }\n updateValueAndValidity(opts = {}) {\n this._setInitialStatus();\n this._updateValue();\n if (this.enabled) {\n const shouldHaveEmitted = this._cancelExistingSubscription();\n this.errors = this._runValidator();\n this.status = this._calculateStatus();\n if (this.status === VALID || this.status === PENDING) {\n // If the canceled subscription should have emitted\n // we make sure the async validator emits the status change on completion\n this._runAsyncValidator(shouldHaveEmitted, opts.emitEvent);\n }\n }\n const sourceControl = opts.sourceControl ?? this;\n if (opts.emitEvent !== false) {\n this._events.next(new ValueChangeEvent(this.value, sourceControl));\n this._events.next(new StatusChangeEvent(this.status, sourceControl));\n this.valueChanges.emit(this.value);\n this.statusChanges.emit(this.status);\n }\n if (this._parent && !opts.onlySelf) {\n this._parent.updateValueAndValidity({ ...opts, sourceControl });\n }\n }\n /** @internal */\n _updateTreeValidity(opts = { emitEvent: true }) {\n this._forEachChild((ctrl) => ctrl._updateTreeValidity(opts));\n this.updateValueAndValidity({ onlySelf: true, emitEvent: opts.emitEvent });\n }\n _setInitialStatus() {\n this.status = this._allControlsDisabled() ? DISABLED : VALID;\n }\n _runValidator() {\n return this.validator ? this.validator(this) : null;\n }\n _runAsyncValidator(shouldHaveEmitted, emitEvent) {\n if (this.asyncValidator) {\n this.status = PENDING;\n this._hasOwnPendingAsyncValidator = { emitEvent: emitEvent !== false };\n const obs = toObservable(this.asyncValidator(this));\n this._asyncValidationSubscription = obs.subscribe((errors) => {\n this._hasOwnPendingAsyncValidator = null;\n // This will trigger the recalculation of the validation status, which depends on\n // the state of the asynchronous validation (whether it is in progress or not). So, it is\n // necessary that we have updated the `_hasOwnPendingAsyncValidator` boolean flag first.\n this.setErrors(errors, { emitEvent, shouldHaveEmitted });\n });\n }\n }\n _cancelExistingSubscription() {\n if (this._asyncValidationSubscription) {\n this._asyncValidationSubscription.unsubscribe();\n // we're cancelling the validator subscribtion, we keep if it should have emitted\n // because we want to emit eventually if it was required at least once.\n const shouldHaveEmitted = this._hasOwnPendingAsyncValidator?.emitEvent ?? false;\n this._hasOwnPendingAsyncValidator = null;\n return shouldHaveEmitted;\n }\n return false;\n }\n setErrors(errors, opts = {}) {\n this.errors = errors;\n this._updateControlsErrors(opts.emitEvent !== false, this, opts.shouldHaveEmitted);\n }\n /**\n * Retrieves a child control given the control's name or path.\n *\n * @param path A dot-delimited string or array of string/number values that define the path to the\n * control. If a string is provided, passing it as a string literal will result in improved type\n * information. Likewise, if an array is provided, passing it `as const` will cause improved type\n * information to be available.\n *\n * @usageNotes\n * ### Retrieve a nested control\n *\n * For example, to get a `name` control nested within a `person` sub-group:\n *\n * * `this.form.get('person.name');`\n *\n * -OR-\n *\n * * `this.form.get(['person', 'name'] as const);` // `as const` gives improved typings\n *\n * ### Retrieve a control in a FormArray\n *\n * When accessing an element inside a FormArray, you can use an element index.\n * For example, to get a `price` control from the first element in an `items` array you can use:\n *\n * * `this.form.get('items.0.price');`\n *\n * -OR-\n *\n * * `this.form.get(['items', 0, 'price']);`\n */\n get(path) {\n let currPath = path;\n if (currPath == null)\n return null;\n if (!Array.isArray(currPath))\n currPath = currPath.split('.');\n if (currPath.length === 0)\n return null;\n return currPath.reduce((control, name) => control && control._find(name), this);\n }\n /**\n * @description\n * Reports error data for the control with the given path.\n *\n * @param errorCode The code of the error to check\n * @param path A list of control names that designates how to move from the current control\n * to the control that should be queried for errors.\n *\n * @usageNotes\n * For example, for the following `FormGroup`:\n *\n * ```ts\n * form = new FormGroup({\n * address: new FormGroup({ street: new FormControl() })\n * });\n * ```\n *\n * The path to the 'street' control from the root form would be 'address' -> 'street'.\n *\n * It can be provided to this method in one of two formats:\n *\n * 1. An array of string control names, e.g. `['address', 'street']`\n * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n *\n * @returns error data for that particular error. If the control or error is not present,\n * null is returned.\n */\n getError(errorCode, path) {\n const control = path ? this.get(path) : this;\n return control && control.errors ? control.errors[errorCode] : null;\n }\n /**\n * @description\n * Reports whether the control with the given path has the error specified.\n *\n * @param errorCode The code of the error to check\n * @param path A list of control names that designates how to move from the current control\n * to the control that should be queried for errors.\n *\n * @usageNotes\n * For example, for the following `FormGroup`:\n *\n * ```ts\n * form = new FormGroup({\n * address: new FormGroup({ street: new FormControl() })\n * });\n * ```\n *\n * The path to the 'street' control from the root form would be 'address' -> 'street'.\n *\n * It can be provided to this method in one of two formats:\n *\n * 1. An array of string control names, e.g. `['address', 'street']`\n * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n *\n * If no path is given, this method checks for the error on the current control.\n *\n * @returns whether the given error is present in the control at the given path.\n *\n * If the control is not present, false is returned.\n */\n hasError(errorCode, path) {\n return !!this.getError(errorCode, path);\n }\n /**\n * Retrieves the top-level ancestor of this control.\n */\n get root() {\n let x = this;\n while (x._parent) {\n x = x._parent;\n }\n return x;\n }\n /** @internal */\n _updateControlsErrors(emitEvent, changedControl, shouldHaveEmitted) {\n this.status = this._calculateStatus();\n if (emitEvent) {\n this.statusChanges.emit(this.status);\n }\n // The Events Observable expose a slight different bevahior than the statusChanges obs\n // An async validator will still emit a StatusChangeEvent is a previously cancelled\n // async validator has emitEvent set to true\n if (emitEvent || shouldHaveEmitted) {\n this._events.next(new StatusChangeEvent(this.status, changedControl));\n }\n if (this._parent) {\n this._parent._updateControlsErrors(emitEvent, changedControl, shouldHaveEmitted);\n }\n }\n /** @internal */\n _initObservables() {\n this.valueChanges = new EventEmitter();\n this.statusChanges = new EventEmitter();\n }\n _calculateStatus() {\n if (this._allControlsDisabled())\n return DISABLED;\n if (this.errors)\n return INVALID;\n if (this._hasOwnPendingAsyncValidator || this._anyControlsHaveStatus(PENDING))\n return PENDING;\n if (this._anyControlsHaveStatus(INVALID))\n return INVALID;\n return VALID;\n }\n /** @internal */\n _anyControlsHaveStatus(status) {\n return this._anyControls((control) => control.status === status);\n }\n /** @internal */\n _anyControlsDirty() {\n return this._anyControls((control) => control.dirty);\n }\n /** @internal */\n _anyControlsTouched() {\n return this._anyControls((control) => control.touched);\n }\n /** @internal */\n _updatePristine(opts, changedControl) {\n const newPristine = !this._anyControlsDirty();\n const changed = this.pristine !== newPristine;\n this.pristine = newPristine;\n if (this._parent && !opts.onlySelf) {\n this._parent._updatePristine(opts, changedControl);\n }\n if (changed) {\n this._events.next(new PristineChangeEvent(this.pristine, changedControl));\n }\n }\n /** @internal */\n _updateTouched(opts = {}, changedControl) {\n this.touched = this._anyControlsTouched();\n this._events.next(new TouchedChangeEvent(this.touched, changedControl));\n if (this._parent && !opts.onlySelf) {\n this._parent._updateTouched(opts, changedControl);\n }\n }\n /** @internal */\n _onDisabledChange = [];\n /** @internal */\n _registerOnCollectionChange(fn) {\n this._onCollectionChange = fn;\n }\n /** @internal */\n _setUpdateStrategy(opts) {\n if (isOptionsObj(opts) && opts.updateOn != null) {\n this._updateOn = opts.updateOn;\n }\n }\n /**\n * Check to see if parent has been marked artificially dirty.\n *\n * @internal\n */\n _parentMarkedDirty(onlySelf) {\n const parentDirty = this._parent && this._parent.dirty;\n return !onlySelf && !!parentDirty && !this._parent._anyControlsDirty();\n }\n /** @internal */\n _find(name) {\n return null;\n }\n /**\n * Internal implementation of the `setValidators` method. Needs to be separated out into a\n * different method, because it is called in the constructor and it can break cases where\n * a control is extended.\n */\n _assignValidators(validators) {\n this._rawValidators = Array.isArray(validators) ? validators.slice() : validators;\n this._composedValidatorFn = coerceToValidator(this._rawValidators);\n }\n /**\n * Internal implementation of the `setAsyncValidators` method. Needs to be separated out into a\n * different method, because it is called in the constructor and it can break cases where\n * a control is extended.\n */\n _assignAsyncValidators(validators) {\n this._rawAsyncValidators = Array.isArray(validators) ? validators.slice() : validators;\n this._composedAsyncValidatorFn = coerceToAsyncValidator(this._rawAsyncValidators);\n }\n}\n\n/**\n * Tracks the value and validity state of a group of `FormControl` instances.\n *\n * A `FormGroup` aggregates the values of each child `FormControl` into one object,\n * with each control name as the key. It calculates its status by reducing the status values\n * of its children. For example, if one of the controls in a group is invalid, the entire\n * group becomes invalid.\n *\n * `FormGroup` is one of the four fundamental building blocks used to define forms in Angular,\n * along with `FormControl`, `FormArray`, and `FormRecord`.\n *\n * When instantiating a `FormGroup`, pass in a collection of child controls as the first\n * argument. The key for each child registers the name for the control.\n *\n * `FormGroup` is intended for use cases where the keys are known ahead of time.\n * If you need to dynamically add and remove controls, use {@link FormRecord} instead.\n *\n * `FormGroup` accepts an optional type parameter `TControl`, which is an object type with inner\n * control types as values.\n *\n * @usageNotes\n *\n * ### Create a form group with 2 controls\n *\n * ```ts\n * const form = new FormGroup({\n * first: new FormControl('Nancy', Validators.minLength(2)),\n * last: new FormControl('Drew'),\n * });\n *\n * console.log(form.value); // {first: 'Nancy', last; 'Drew'}\n * console.log(form.status); // 'VALID'\n * ```\n *\n * ### The type argument, and optional controls\n *\n * `FormGroup` accepts one generic argument, which is an object containing its inner controls.\n * This type will usually be inferred automatically, but you can always specify it explicitly if you\n * wish.\n *\n * If you have controls that are optional (i.e. they can be removed, you can use the `?` in the\n * type):\n *\n * ```ts\n * const form = new FormGroup<{\n * first: FormControl<string|null>,\n * middle?: FormControl<string|null>, // Middle name is optional.\n * last: FormControl<string|null>,\n * }>({\n * first: new FormControl('Nancy'),\n * last: new FormControl('Drew'),\n * });\n * ```\n *\n * ### Create a form group with a group-level validator\n *\n * You include group-level validators as the second arg, or group-level async\n * validators as the third arg. These come in handy when you want to perform validation\n * that considers the value of more than one child control.\n *\n * ```ts\n * const form = new FormGroup({\n * password: new FormControl('', Validators.minLength(2)),\n * passwordConfirm: new FormControl('', Validators.minLength(2)),\n * }, passwordMatchValidator);\n *\n *\n * function passwordMatchValidator(g: FormGroup) {\n * return g.get('password').value === g.get('passwordConfirm').value\n * ? null : {'mismatch': true};\n * }\n * ```\n *\n * Like `FormControl` instances, you choose to pass in\n * validators and async validators as part of an options object.\n *\n * ```ts\n * const form = new FormGroup({\n * password: new FormControl('')\n * passwordConfirm: new FormControl('')\n * }, { validators: passwordMatchValidator, asyncValidators: otherValidator });\n * ```\n *\n * ### Set the updateOn property for all controls in a form group\n *\n * The options object is used to set a default value for each child\n * control's `updateOn` property. If you set `updateOn` to `'blur'` at the\n * group level, all child controls default to 'blur', unless the child\n * has explicitly specified a different `updateOn` value.\n *\n * ```ts\n * const c = new FormGroup({\n * one: new FormControl()\n * }, { updateOn: 'blur' });\n * ```\n *\n * ### Using a FormGroup with optional controls\n *\n * It is possible to have optional controls in a FormGroup. An optional control can be removed later\n * using `removeControl`, and can be omitted when calling `reset`. Optional controls must be\n * declared optional in the group's type.\n *\n * ```ts\n * const c = new FormGroup<{one?: FormControl<string>}>({\n * one: new FormControl('')\n * });\n * ```\n *\n * Notice that `c.value.one` has type `string|null|undefined`. This is because calling `c.reset({})`\n * without providing the optional key `one` will cause it to become `null`.\n *\n * @publicApi\n */\nclass FormGroup extends AbstractControl {\n /**\n * Creates a new `FormGroup` instance.\n *\n * @param controls A collection of child controls. The key for each child is the name\n * under which it is registered.\n *\n * @param validatorOrOpts A synchronous validator function, or an array of\n * such functions, or an `AbstractControlOptions` object that contains validation functions\n * and a validation trigger.\n *\n * @param asyncValidator A single async validator or array of async validator functions\n *\n */\n constructor(controls, validatorOrOpts, asyncValidator) {\n super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n (typeof ngDevMode === 'undefined' || ngDevMode) && validateFormGroupControls(controls);\n this.controls = controls;\n this._initObservables();\n this._setUpdateStrategy(validatorOrOpts);\n this._setUpControls();\n this.updateValueAndValidity({\n onlySelf: true,\n // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n // `VALID` or `INVALID`. The status should be broadcasted via the `statusChanges` observable,\n // so we set `emitEvent` to `true` to allow that during the control creation process.\n emitEvent: !!this.asyncValidator,\n });\n }\n controls;\n registerControl(name, control) {\n if (this.controls[name])\n return this.controls[name];\n this.controls[name] = control;\n control.setParent(this);\n control._registerOnCollectionChange(this._onCollectionChange);\n return control;\n }\n addControl(name, control, options = {}) {\n this.registerControl(name, control);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n /**\n * Remove a control from this group. In a strongly-typed group, required controls cannot be\n * removed.\n *\n * This method also updates the value and validity of the control.\n *\n * @param name The control name to remove from the collection\n * @param options Specifies whether this FormGroup instance should emit events after a\n * control is removed.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * removed. When false, no events are emitted.\n */\n removeControl(name, options = {}) {\n if (this.controls[name])\n this.controls[name]._registerOnCollectionChange(() => { });\n delete this.controls[name];\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n setControl(name, control, options = {}) {\n if (this.controls[name])\n this.controls[name]._registerOnCollectionChange(() => { });\n delete this.controls[name];\n if (control)\n this.registerControl(name, control);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n contains(controlName) {\n return this.controls.hasOwnProperty(controlName) && this.controls[controlName].enabled;\n }\n /**\n * Sets the value of the `FormGroup`. It accepts an object that matches\n * the structure of the group, with control names as keys.\n *\n * @usageNotes\n * ### Set the complete value for the form group\n *\n * ```ts\n * const form = new FormGroup({\n * first: new FormControl(),\n * last: new FormControl()\n * });\n *\n * console.log(form.value); // {first: null, last: null}\n *\n * form.setValue({first: 'Nancy', last: 'Drew'});\n * console.log(form.value); // {first: 'Nancy', last: 'Drew'}\n * ```\n *\n * @throws When strict checks fail, such as setting the value of a control\n * that doesn't exist or if you exclude a value of a control that does exist.\n *\n * @param value The new value for the control that matches the structure of the group.\n * @param options Configuration options that determine how the control propagates changes\n * and emits events after the value changes.\n * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n * updateValueAndValidity} method.\n *\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is\n * false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control value is updated.\n * When false, no events are emitted.\n */\n setValue(value, options = {}) {\n assertAllValuesPresent(this, true, value);\n Object.keys(value).forEach((name) => {\n assertControlPresent(this, true, name);\n this.controls[name].setValue(value[name], {\n onlySelf: true,\n emitEvent: options.emitEvent,\n });\n });\n this.updateValueAndValidity(options);\n }\n /**\n * Patches the value of the `FormGroup`. It accepts an object with control\n * names as keys, and does its best to match the values to the correct controls\n * in the group.\n *\n * It accepts both super-sets and sub-sets of the group without throwing an error.\n *\n * @usageNotes\n * ### Patch the value for a form group\n *\n * ```ts\n * const form = new FormGroup({\n * first: new FormControl(),\n * last: new FormControl()\n * });\n * console.log(form.value); // {first: null, last: null}\n *\n * form.patchValue({first: 'Nancy'});\n * console.log(form.value); // {first: 'Nancy', last: null}\n * ```\n *\n * @param value The object that matches the structure of the group.\n * @param options Configuration options that determine how the control propagates changes and\n * emits events after the value is patched.\n * * `onlySelf`: When true, each change only affects this control and not its parent. Default is\n * true.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control value\n * is updated. When false, no events are emitted. The configuration options are passed to\n * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.\n */\n patchValue(value, options = {}) {\n // Even though the `value` argument type doesn't allow `null` and `undefined` values, the\n // `patchValue` can be called recursively and inner data structures might have these values, so\n // we just ignore such cases when a field containing FormGroup instance receives `null` or\n // `undefined` as a value.\n if (value == null /* both `null` and `undefined` */)\n return;\n Object.keys(value).forEach((name) => {\n // The compiler cannot see through the uninstantiated conditional type of `this.controls`, so\n // `as any` is required.\n const control = this.controls[name];\n if (control) {\n control.patchValue(\n /* Guaranteed to be present, due to the outer forEach. */ value[name], { onlySelf: true, emitEvent: options.emitEvent });\n }\n });\n this.updateValueAndValidity(options);\n }\n /**\n * Resets the `FormGroup`, marks all descendants `pristine` and `untouched` and sets\n * the value of all descendants to their default values, or null if no defaults were provided.\n *\n * You reset to a specific form state by passing in a map of states\n * that matches the structure of your form, with control names as keys. The state\n * is a standalone value or a form state object with both a value and a disabled\n * status.\n *\n * @param value Resets the control with an initial value,\n * or an object that defines the initial value and disabled state.\n *\n * @param options Configuration options that determine how the control propagates changes\n * and emits events when the group is reset.\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is\n * false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control is reset.\n * When false, no events are emitted.\n * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n * updateValueAndValidity} method.\n *\n * @usageNotes\n *\n * ### Reset the form group values\n *\n * ```ts\n * const form = new FormGroup({\n * first: new FormControl('first name'),\n * last: new FormControl('last name')\n * });\n *\n * console.log(form.value); // {first: 'first name', last: 'last name'}\n *\n * form.reset({ first: 'name', last: 'last name' });\n *\n * console.log(form.value); // {first: 'name', last: 'last name'}\n * ```\n *\n * ### Reset the form group values and disabled status\n *\n * ```ts\n * const form = new FormGroup({\n * first: new FormControl('first name'),\n * last: new FormControl('last name')\n * });\n *\n * form.reset({\n * first: {value: 'name', disabled: true},\n * last: 'last'\n * });\n *\n * console.log(form.value); // {last: 'last'}\n * console.log(form.get('first').status); // 'DISABLED'\n * ```\n */\n reset(value = {}, options = {}) {\n this._forEachChild((control, name) => {\n control.reset(value ? value[name] : null, {\n onlySelf: true,\n emitEvent: options.emitEvent,\n });\n });\n this._updatePristine(options, this);\n this._updateTouched(options, this);\n this.updateValueAndValidity(options);\n }\n /**\n * The aggregate value of the `FormGroup`, including any disabled controls.\n *\n * Retrieves all values regardless of disabled status.\n */\n getRawValue() {\n return this._reduceChildren({}, (acc, control, name) => {\n acc[name] = control.getRawValue();\n return acc;\n });\n }\n /** @internal */\n _syncPendingControls() {\n let subtreeUpdated = this._reduceChildren(false, (updated, child) => {\n return child._syncPendingControls() ? true : updated;\n });\n if (subtreeUpdated)\n this.updateValueAndValidity({ onlySelf: true });\n return subtreeUpdated;\n }\n /** @internal */\n _forEachChild(cb) {\n Object.keys(this.controls).forEach((key) => {\n // The list of controls can change (for ex. controls might be removed) while the loop\n // is running (as a result of invoking Forms API in `valueChanges` subscription), so we\n // have to null check before invoking the callback.\n const control = this.controls[key];\n control && cb(control, key);\n });\n }\n /** @internal */\n _setUpControls() {\n this._forEachChild((control) => {\n control.setParent(this);\n control._registerOnCollectionChange(this._onCollectionChange);\n });\n }\n /** @internal */\n _updateValue() {\n this.value = this._reduceValue();\n }\n /** @internal */\n _anyControls(condition) {\n for (const [controlName, control] of Object.entries(this.controls)) {\n if (this.contains(controlName) && condition(control)) {\n return true;\n }\n }\n return false;\n }\n /** @internal */\n _reduceValue() {\n let acc = {};\n return this._reduceChildren(acc, (acc, control, name) => {\n if (control.enabled || this.disabled) {\n acc[name] = control.value;\n }\n return acc;\n });\n }\n /** @internal */\n _reduceChildren(initValue, fn) {\n let res = initValue;\n this._forEachChild((control, name) => {\n res = fn(res, control, name);\n });\n return res;\n }\n /** @internal */\n _allControlsDisabled() {\n for (const controlName of Object.keys(this.controls)) {\n if (this.controls[controlName].enabled) {\n return false;\n }\n }\n return Object.keys(this.controls).length > 0 || this.disabled;\n }\n /** @internal */\n _find(name) {\n return this.controls.hasOwnProperty(name)\n ? this.controls[name]\n : null;\n }\n}\n/**\n * Will validate that none of the controls has a key with a dot\n * Throws other wise\n */\nfunction validateFormGroupControls(controls) {\n const invalidKeys = Object.keys(controls).filter((key) => key.includes('.'));\n if (invalidKeys.length > 0) {\n // TODO: make this an error once there are no more uses in G3\n console.warn(`FormGroup keys cannot include \\`.\\`, please replace the keys for: ${invalidKeys.join(',')}.`);\n }\n}\nconst UntypedFormGroup = FormGroup;\n/**\n * @description\n * Asserts that the given control is an instance of `FormGroup`\n *\n * @publicApi\n */\nconst isFormGroup = (control) => control instanceof FormGroup;\n/**\n * Tracks the value and validity state of a collection of `FormControl` instances, each of which has\n * the same value type.\n *\n * `FormRecord` is very similar to {@link FormGroup}, except it can be used with a dynamic keys,\n * with controls added and removed as needed.\n *\n * `FormRecord` accepts one generic argument, which describes the type of the controls it contains.\n *\n * @usageNotes\n *\n * ```ts\n * let numbers = new FormRecord({bill: new FormControl('415-123-456')});\n * numbers.addControl('bob', new FormControl('415-234-567'));\n * numbers.removeControl('bill');\n * ```\n *\n * @publicApi\n */\nclass FormRecord extends FormGroup {\n}\n/**\n * @description\n * Asserts that the given control is an instance of `FormRecord`\n *\n * @publicApi\n */\nconst isFormRecord = (control) => control instanceof FormRecord;\n\n/**\n * Token to provide to allow SetDisabledState to always be called when a CVA is added, regardless of\n * whether the control is disabled or enabled.\n *\n * @see {@link FormsModule#withconfig}\n */\nconst CALL_SET_DISABLED_STATE = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'CallSetDisabledState' : '', {\n providedIn: 'root',\n factory: () => setDisabledStateDefault,\n});\n/**\n * Whether to use the fixed setDisabledState behavior by default.\n */\nconst setDisabledStateDefault = 'always';\nfunction controlPath(name, parent) {\n return [...parent.path, name];\n}\n/**\n * Links a Form control and a Form directive by setting up callbacks (such as `onChange`) on both\n * instances. This function is typically invoked when form directive is being initialized.\n *\n * @param control Form control instance that should be linked.\n * @param dir Directive that should be linked with a given control.\n */\nfunction setUpControl(control, dir, callSetDisabledState = setDisabledStateDefault) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!control)\n _throwError(dir, 'Cannot find control with');\n if (!dir.valueAccessor)\n _throwMissingValueAccessorError(dir);\n }\n setUpValidators(control, dir);\n dir.valueAccessor.writeValue(control.value);\n // The legacy behavior only calls the CVA's `setDisabledState` if the control is disabled.\n // If the `callSetDisabledState` option is set to `always`, then this bug is fixed and\n // the method is always called.\n if (control.disabled || callSetDisabledState === 'always') {\n dir.valueAccessor.setDisabledState?.(control.disabled);\n }\n setUpViewChangePipeline(control, dir);\n setUpModelChangePipeline(control, dir);\n setUpBlurPipeline(control, dir);\n setUpDisabledChangeHandler(control, dir);\n}\n/**\n * Reverts configuration performed by the `setUpControl` control function.\n * Effectively disconnects form control with a given form directive.\n * This function is typically invoked when corresponding form directive is being destroyed.\n *\n * @param control Form control which should be cleaned up.\n * @param dir Directive that should be disconnected from a given control.\n * @param validateControlPresenceOnChange Flag that indicates whether onChange handler should\n * contain asserts to verify that it's not called once directive is destroyed. We need this flag\n * to avoid potentially breaking changes caused by better control cleanup introduced in #39235.\n */\nfunction cleanUpControl(control, dir, validateControlPresenceOnChange = true) {\n const noop = () => {\n if (validateControlPresenceOnChange && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n _noControlError(dir);\n }\n };\n // The `valueAccessor` field is typically defined on FromControl and FormControlName directive\n // instances and there is a logic in `selectValueAccessor` function that throws if it's not the\n // case. We still check the presence of `valueAccessor` before invoking its methods to make sure\n // that cleanup works correctly if app code or tests are setup to ignore the error thrown from\n // `selectValueAccessor`. See https://github.com/angular/angular/issues/40521.\n if (dir.valueAccessor) {\n dir.valueAccessor.registerOnChange(noop);\n dir.valueAccessor.registerOnTouched(noop);\n }\n cleanUpValidators(control, dir);\n if (control) {\n dir._invokeOnDestroyCallbacks();\n control._registerOnCollectionChange(() => { });\n }\n}\nfunction registerOnValidatorChange(validators, onChange) {\n validators.forEach((validator) => {\n if (validator.registerOnValidatorChange)\n validator.registerOnValidatorChange(onChange);\n });\n}\n/**\n * Sets up disabled change handler function on a given form control if ControlValueAccessor\n * associated with a given directive instance supports the `setDisabledState` call.\n *\n * @param control Form control where disabled change handler should be setup.\n * @param dir Corresponding directive instance associated with this control.\n */\nfunction setUpDisabledChangeHandler(control, dir) {\n if (dir.valueAccessor.setDisabledState) {\n const onDisabledChange = (isDisabled) => {\n dir.valueAccessor.setDisabledState(isDisabled);\n };\n control.registerOnDisabledChange(onDisabledChange);\n // Register a callback function to cleanup disabled change handler\n // from a control instance when a directive is destroyed.\n dir._registerOnDestroy(() => {\n control._unregisterOnDisabledChange(onDisabledChange);\n });\n }\n}\n/**\n * Sets up sync and async directive validators on provided form control.\n * This function merges validators from the directive into the validators of the control.\n *\n * @param control Form control where directive validators should be setup.\n * @param dir Directive instance that contains validators to be setup.\n */\nfunction setUpValidators(control, dir) {\n const validators = getControlValidators(control);\n if (dir.validator !== null) {\n control.setValidators(mergeValidators(validators, dir.validator));\n }\n else if (typeof validators === 'function') {\n // If sync validators are represented by a single validator function, we force the\n // `Validators.compose` call to happen by executing the `setValidators` function with\n // an array that contains that function. We need this to avoid possible discrepancies in\n // validators behavior, so sync validators are always processed by the `Validators.compose`.\n // Note: we should consider moving this logic inside the `setValidators` function itself, so we\n // have consistent behavior on AbstractControl API level. The same applies to the async\n // validators logic below.\n control.setValidators([validators]);\n }\n const asyncValidators = getControlAsyncValidators(control);\n if (dir.asyncValidator !== null) {\n control.setAsyncValidators(mergeValidators(asyncValidators, dir.asyncValidator));\n }\n else if (typeof asyncValidators === 'function') {\n control.setAsyncValidators([asyncValidators]);\n }\n // Re-run validation when validator binding changes, e.g. minlength=3 -> minlength=4\n const onValidatorChange = () => control.updateValueAndValidity();\n registerOnValidatorChange(dir._rawValidators, onValidatorChange);\n registerOnValidatorChange(dir._rawAsyncValidators, onValidatorChange);\n}\n/**\n * Cleans up sync and async directive validators on provided form control.\n * This function reverts the setup performed by the `setUpValidators` function, i.e.\n * removes directive-specific validators from a given control instance.\n *\n * @param control Form control from where directive validators should be removed.\n * @param dir Directive instance that contains validators to be removed.\n * @returns true if a control was updated as a result of this action.\n */\nfunction cleanUpValidators(control, dir) {\n let isControlUpdated = false;\n if (control !== null) {\n if (dir.validator !== null) {\n const validators = getControlValidators(control);\n if (Array.isArray(validators) && validators.length > 0) {\n // Filter out directive validator function.\n const updatedValidators = validators.filter((validator) => validator !== dir.validator);\n if (updatedValidators.length !== validators.length) {\n isControlUpdated = true;\n control.setValidators(updatedValidators);\n }\n }\n }\n if (dir.asyncValidator !== null) {\n const asyncValidators = getControlAsyncValidators(control);\n if (Array.isArray(asyncValidators) && asyncValidators.length > 0) {\n // Filter out directive async validator function.\n const updatedAsyncValidators = asyncValidators.filter((asyncValidator) => asyncValidator !== dir.asyncValidator);\n if (updatedAsyncValidators.length !== asyncValidators.length) {\n isControlUpdated = true;\n control.setAsyncValidators(updatedAsyncValidators);\n }\n }\n }\n }\n // Clear onValidatorChange callbacks by providing a noop function.\n const noop = () => { };\n registerOnValidatorChange(dir._rawValidators, noop);\n registerOnValidatorChange(dir._rawAsyncValidators, noop);\n return isControlUpdated;\n}\nfunction setUpViewChangePipeline(control, dir) {\n dir.valueAccessor.registerOnChange((newValue) => {\n control._pendingValue = newValue;\n control._pendingChange = true;\n control._pendingDirty = true;\n if (control.updateOn === 'change')\n updateControl(control, dir);\n });\n}\nfunction setUpBlurPipeline(control, dir) {\n dir.valueAccessor.registerOnTouched(() => {\n control._pendingTouched = true;\n if (control.updateOn === 'blur' && control._pendingChange)\n updateControl(control, dir);\n if (control.updateOn !== 'submit')\n control.markAsTouched();\n });\n}\nfunction updateControl(control, dir) {\n if (control._pendingDirty)\n control.markAsDirty();\n control.setValue(control._pendingValue, { emitModelToViewChange: false });\n dir.viewToModelUpdate(control._pendingValue);\n control._pendingChange = false;\n}\nfunction setUpModelChangePipeline(control, dir) {\n const onChange = (newValue, emitModelEvent) => {\n // control -> view\n dir.valueAccessor.writeValue(newValue);\n // control -> ngModel\n if (emitModelEvent)\n dir.viewToModelUpdate(newValue);\n };\n control.registerOnChange(onChange);\n // Register a callback function to cleanup onChange handler\n // from a control instance when a directive is destroyed.\n dir._registerOnDestroy(() => {\n control._unregisterOnChange(onChange);\n });\n}\n/**\n * Links a FormGroup or FormArray instance and corresponding Form directive by setting up validators\n * present in the view.\n *\n * @param control FormGroup or FormArray instance that should be linked.\n * @param dir Directive that provides view validators.\n */\nfunction setUpFormContainer(control, dir) {\n if (control == null && (typeof ngDevMode === 'undefined' || ngDevMode))\n _throwError(dir, 'Cannot find control with');\n setUpValidators(control, dir);\n}\n/**\n * Reverts the setup performed by the `setUpFormContainer` function.\n *\n * @param control FormGroup or FormArray instance that should be cleaned up.\n * @param dir Directive that provided view validators.\n * @returns true if a control was updated as a result of this action.\n */\nfunction cleanUpFormContainer(control, dir) {\n return cleanUpValidators(control, dir);\n}\nfunction _noControlError(dir) {\n return _throwError(dir, 'There is no FormControl instance attached to form control element with');\n}\nfunction _throwError(dir, message) {\n const messageEnd = _describeControlLocation(dir);\n throw new Error(`${message} ${messageEnd}`);\n}\nfunction _describeControlLocation(dir) {\n const path = dir.path;\n if (path && path.length > 1)\n return `path: '${path.join(' -> ')}'`;\n if (path?.[0])\n return `name: '${path}'`;\n return 'unspecified name attribute';\n}\nfunction _throwMissingValueAccessorError(dir) {\n const loc = _describeControlLocation(dir);\n throw new ɵRuntimeError(-1203 /* RuntimeErrorCode.NG_MISSING_VALUE_ACCESSOR */, `No value accessor for form control ${loc}.`);\n}\nfunction _throwInvalidValueAccessorError(dir) {\n const loc = _describeControlLocation(dir);\n throw new ɵRuntimeError(1200 /* RuntimeErrorCode.NG_VALUE_ACCESSOR_NOT_PROVIDED */, `Value accessor was not provided as an array for form control with ${loc}. ` +\n `Check that the \\`NG_VALUE_ACCESSOR\\` token is configured as a \\`multi: true\\` provider.`);\n}\nfunction isPropertyUpdated(changes, viewModel) {\n if (!changes.hasOwnProperty('model'))\n return false;\n const change = changes['model'];\n if (change.isFirstChange())\n return true;\n return !Object.is(viewModel, change.currentValue);\n}\nfunction isBuiltInAccessor(valueAccessor) {\n // Check if a given value accessor is an instance of a class that directly extends\n // `BuiltInControlValueAccessor` one.\n return Object.getPrototypeOf(valueAccessor.constructor) === BuiltInControlValueAccessor;\n}\nfunction syncPendingControls(form, directives) {\n form._syncPendingControls();\n directives.forEach((dir) => {\n const control = dir.control;\n if (control.updateOn === 'submit' && control._pendingChange) {\n dir.viewToModelUpdate(control._pendingValue);\n control._pendingChange = false;\n }\n });\n}\n// TODO: vsavkin remove it once https://github.com/angular/angular/issues/3011 is implemented\nfunction selectValueAccessor(dir, valueAccessors) {\n if (!valueAccessors)\n return null;\n if (!Array.isArray(valueAccessors) && (typeof ngDevMode === 'undefined' || ngDevMode))\n _throwInvalidValueAccessorError(dir);\n let defaultAccessor = undefined;\n let builtinAccessor = undefined;\n let customAccessor = undefined;\n valueAccessors.forEach((v) => {\n if (v.constructor === DefaultValueAccessor) {\n defaultAccessor = v;\n }\n else if (isBuiltInAccessor(v)) {\n if (builtinAccessor && (typeof ngDevMode === 'undefined' || ngDevMode))\n _throwError(dir, 'More than one built-in value accessor matches form control with');\n builtinAccessor = v;\n }\n else {\n if (customAccessor && (typeof ngDevMode === 'undefined' || ngDevMode))\n _throwError(dir, 'More than one custom value accessor matches form control with');\n customAccessor = v;\n }\n });\n if (customAccessor)\n return customAccessor;\n if (builtinAccessor)\n return builtinAccessor;\n if (defaultAccessor)\n return defaultAccessor;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _throwError(dir, 'No valid value accessor for form control with');\n }\n return null;\n}\nfunction removeListItem$1(list, el) {\n const index = list.indexOf(el);\n if (index > -1)\n list.splice(index, 1);\n}\n// TODO(kara): remove after deprecation period\nfunction _ngModelWarning(name, type, instance, warningConfig) {\n if (warningConfig === 'never')\n return;\n if (((warningConfig === null || warningConfig === 'once') && !type._ngModelWarningSentOnce) ||\n (warningConfig === 'always' && !instance._ngModelWarningSent)) {\n console.warn(ngModelWarning(name));\n type._ngModelWarningSentOnce = true;\n instance._ngModelWarningSent = true;\n }\n}\n\nconst formDirectiveProvider$1 = {\n provide: ControlContainer,\n useExisting: forwardRef(() => NgForm),\n};\nconst resolvedPromise$1 = (() => Promise.resolve())();\n/**\n * @description\n * Creates a top-level `FormGroup` instance and binds it to a form\n * to track aggregate form value and validation status.\n *\n * As soon as you import the `FormsModule`, this directive becomes active by default on\n * all `<form>` tags. You don't need to add a special selector.\n *\n * You optionally export the directive into a local template variable using `ngForm` as the key\n * (ex: `#myForm=\"ngForm\"`). This is optional, but useful. Many properties from the underlying\n * `FormGroup` instance are duplicated on the directive itself, so a reference to it\n * gives you access to the aggregate value and validity status of the form, as well as\n * user interaction properties like `dirty` and `touched`.\n *\n * To register child controls with the form, use `NgModel` with a `name`\n * attribute. You may use `NgModelGroup` to create sub-groups within the form.\n *\n * If necessary, listen to the directive's `ngSubmit` event to be notified when the user has\n * triggered a form submission. The `ngSubmit` event emits the original form\n * submission event.\n *\n * In template driven forms, all `<form>` tags are automatically tagged as `NgForm`.\n * To import the `FormsModule` but skip its usage in some forms,\n * for example, to use native HTML5 validation, add the `ngNoForm` and the `<form>`\n * tags won't create an `NgForm` directive. In reactive forms, using `ngNoForm` is\n * unnecessary because the `<form>` tags are inert. In that case, you would\n * refrain from using the `formGroup` directive.\n *\n * @usageNotes\n *\n * ### Listening for form submission\n *\n * The following example shows how to capture the form values from the \"ngSubmit\" event.\n *\n * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}\n *\n * ### Setting the update options\n *\n * The following example shows you how to change the \"updateOn\" option from its default using\n * ngFormOptions.\n *\n * ```html\n * <form [ngFormOptions]=\"{updateOn: 'blur'}\">\n * <input name=\"one\" ngModel> <!-- this ngModel will update on blur -->\n * </form>\n * ```\n *\n * ### Native DOM validation UI\n *\n * In order to prevent the native DOM form validation UI from interfering with Angular's form\n * validation, Angular automatically adds the `novalidate` attribute on any `<form>` whenever\n * `FormModule` or `ReactiveFormModule` are imported into the application.\n * If you want to explicitly enable native DOM validation UI with Angular forms, you can add the\n * `ngNativeValidate` attribute to the `<form>` element:\n *\n * ```html\n * <form ngNativeValidate>\n * ...\n * </form>\n * ```\n *\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgForm extends ControlContainer {\n callSetDisabledState;\n /**\n * @description\n * Returns whether the form submission has been triggered.\n */\n get submitted() {\n return untracked(this.submittedReactive);\n }\n /** @internal */\n _submitted = computed(() => this.submittedReactive());\n submittedReactive = signal(false);\n _directives = new Set();\n /**\n * @description\n * The `FormGroup` instance created for this form.\n */\n form;\n /**\n * @description\n * Event emitter for the \"ngSubmit\" event\n */\n ngSubmit = new EventEmitter();\n /**\n * @description\n * Tracks options for the `NgForm` instance.\n *\n * **updateOn**: Sets the default `updateOn` value for all child `NgModels` below it\n * unless explicitly set by a child `NgModel` using `ngModelOptions`). Defaults to 'change'.\n * Possible values: `'change'` | `'blur'` | `'submit'`.\n *\n */\n // TODO(issue/24571): remove '!'.\n options;\n constructor(validators, asyncValidators, callSetDisabledState) {\n super();\n this.callSetDisabledState = callSetDisabledState;\n this.form = new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));\n }\n /** @nodoc */\n ngAfterViewInit() {\n this._setUpdateStrategy();\n }\n /**\n * @description\n * The directive instance.\n */\n get formDirective() {\n return this;\n }\n /**\n * @description\n * The internal `FormGroup` instance.\n */\n get control() {\n return this.form;\n }\n /**\n * @description\n * Returns an array representing the path to this group. Because this directive\n * always lives at the top level of a form, it is always an empty array.\n */\n get path() {\n return [];\n }\n /**\n * @description\n * Returns a map of the controls in this group.\n */\n get controls() {\n return this.form.controls;\n }\n /**\n * @description\n * Method that sets up the control directive in this group, re-calculates its value\n * and validity, and adds the instance to the internal list of directives.\n *\n * @param dir The `NgModel` directive instance.\n */\n addControl(dir) {\n resolvedPromise$1.then(() => {\n const container = this._findContainer(dir.path);\n dir.control = (container.registerControl(dir.name, dir.control));\n setUpControl(dir.control, dir, this.callSetDisabledState);\n dir.control.updateValueAndValidity({ emitEvent: false });\n this._directives.add(dir);\n });\n }\n /**\n * @description\n * Retrieves the `FormControl` instance from the provided `NgModel` directive.\n *\n * @param dir The `NgModel` directive instance.\n */\n getControl(dir) {\n return this.form.get(dir.path);\n }\n /**\n * @description\n * Removes the `NgModel` instance from the internal list of directives\n *\n * @param dir The `NgModel` directive instance.\n */\n removeControl(dir) {\n resolvedPromise$1.then(() => {\n const container = this._findContainer(dir.path);\n if (container) {\n container.removeControl(dir.name);\n }\n this._directives.delete(dir);\n });\n }\n /**\n * @description\n * Adds a new `NgModelGroup` directive instance to the form.\n *\n * @param dir The `NgModelGroup` directive instance.\n */\n addFormGroup(dir) {\n resolvedPromise$1.then(() => {\n const container = this._findContainer(dir.path);\n const group = new FormGroup({});\n setUpFormContainer(group, dir);\n container.registerControl(dir.name, group);\n group.updateValueAndValidity({ emitEvent: false });\n });\n }\n /**\n * @description\n * Removes the `NgModelGroup` directive instance from the form.\n *\n * @param dir The `NgModelGroup` directive instance.\n */\n removeFormGroup(dir) {\n resolvedPromise$1.then(() => {\n const container = this._findContainer(dir.path);\n if (container) {\n container.removeControl(dir.name);\n }\n });\n }\n /**\n * @description\n * Retrieves the `FormGroup` for a provided `NgModelGroup` directive instance\n *\n * @param dir The `NgModelGroup` directive instance.\n */\n getFormGroup(dir) {\n return this.form.get(dir.path);\n }\n /**\n * Sets the new value for the provided `NgControl` directive.\n *\n * @param dir The `NgControl` directive instance.\n * @param value The new value for the directive's control.\n */\n updateModel(dir, value) {\n resolvedPromise$1.then(() => {\n const ctrl = this.form.get(dir.path);\n ctrl.setValue(value);\n });\n }\n /**\n * @description\n * Sets the value for this `FormGroup`.\n *\n * @param value The new value\n */\n setValue(value) {\n this.control.setValue(value);\n }\n /**\n * @description\n * Method called when the \"submit\" event is triggered on the form.\n * Triggers the `ngSubmit` emitter to emit the \"submit\" event as its payload.\n *\n * @param $event The \"submit\" event object\n */\n onSubmit($event) {\n this.submittedReactive.set(true);\n syncPendingControls(this.form, this._directives);\n this.ngSubmit.emit($event);\n // Forms with `method=\"dialog\"` have some special behavior\n // that won't reload the page and that shouldn't be prevented.\n return $event?.target?.method === 'dialog';\n }\n /**\n * @description\n * Method called when the \"reset\" event is triggered on the form.\n */\n onReset() {\n this.resetForm();\n }\n /**\n * @description\n * Resets the form to an initial value and resets its submitted status.\n *\n * @param value The new value for the form.\n */\n resetForm(value = undefined) {\n this.form.reset(value);\n this.submittedReactive.set(false);\n }\n _setUpdateStrategy() {\n if (this.options && this.options.updateOn != null) {\n this.form._updateOn = this.options.updateOn;\n }\n }\n _findContainer(path) {\n path.pop();\n return path.length ? this.form.get(path) : this.form;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgForm, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgForm, isStandalone: false, selector: \"form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]\", inputs: { options: [\"ngFormOptions\", \"options\"] }, outputs: { ngSubmit: \"ngSubmit\" }, host: { listeners: { \"submit\": \"onSubmit($event)\", \"reset\": \"onReset()\" } }, providers: [formDirectiveProvider$1], exportAs: [\"ngForm\"], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgForm, decorators: [{\n type: Directive,\n args: [{\n selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',\n providers: [formDirectiveProvider$1],\n host: { '(submit)': 'onSubmit($event)', '(reset)': 'onReset()' },\n outputs: ['ngSubmit'],\n exportAs: 'ngForm',\n standalone: false,\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [CALL_SET_DISABLED_STATE]\n }] }], propDecorators: { options: [{\n type: Input,\n args: ['ngFormOptions']\n }] } });\n\nfunction removeListItem(list, el) {\n const index = list.indexOf(el);\n if (index > -1)\n list.splice(index, 1);\n}\n\nfunction isFormControlState(formState) {\n return (typeof formState === 'object' &&\n formState !== null &&\n Object.keys(formState).length === 2 &&\n 'value' in formState &&\n 'disabled' in formState);\n}\nconst FormControl = class FormControl extends AbstractControl {\n /** @publicApi */\n defaultValue = null;\n /** @internal */\n _onChange = [];\n /** @internal */\n _pendingValue;\n /** @internal */\n _pendingChange = false;\n constructor(\n // formState and defaultValue will only be null if T is nullable\n formState = null, validatorOrOpts, asyncValidator) {\n super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n this._applyFormState(formState);\n this._setUpdateStrategy(validatorOrOpts);\n this._initObservables();\n this.updateValueAndValidity({\n onlySelf: true,\n // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n // `VALID` or `INVALID`.\n // The status should be broadcasted via the `statusChanges` observable, so we set\n // `emitEvent` to `true` to allow that during the control creation process.\n emitEvent: !!this.asyncValidator,\n });\n if (isOptionsObj(validatorOrOpts) &&\n (validatorOrOpts.nonNullable || validatorOrOpts.initialValueIsDefault)) {\n if (isFormControlState(formState)) {\n this.defaultValue = formState.value;\n }\n else {\n this.defaultValue = formState;\n }\n }\n }\n setValue(value, options = {}) {\n this.value = this._pendingValue = value;\n if (this._onChange.length && options.emitModelToViewChange !== false) {\n this._onChange.forEach((changeFn) => changeFn(this.value, options.emitViewToModelChange !== false));\n }\n this.updateValueAndValidity(options);\n }\n patchValue(value, options = {}) {\n this.setValue(value, options);\n }\n reset(formState = this.defaultValue, options = {}) {\n this._applyFormState(formState);\n this.markAsPristine(options);\n this.markAsUntouched(options);\n this.setValue(this.value, options);\n this._pendingChange = false;\n }\n /** @internal */\n _updateValue() { }\n /** @internal */\n _anyControls(condition) {\n return false;\n }\n /** @internal */\n _allControlsDisabled() {\n return this.disabled;\n }\n registerOnChange(fn) {\n this._onChange.push(fn);\n }\n /** @internal */\n _unregisterOnChange(fn) {\n removeListItem(this._onChange, fn);\n }\n registerOnDisabledChange(fn) {\n this._onDisabledChange.push(fn);\n }\n /** @internal */\n _unregisterOnDisabledChange(fn) {\n removeListItem(this._onDisabledChange, fn);\n }\n /** @internal */\n _forEachChild(cb) { }\n /** @internal */\n _syncPendingControls() {\n if (this.updateOn === 'submit') {\n if (this._pendingDirty)\n this.markAsDirty();\n if (this._pendingTouched)\n this.markAsTouched();\n if (this._pendingChange) {\n this.setValue(this._pendingValue, { onlySelf: true, emitModelToViewChange: false });\n return true;\n }\n }\n return false;\n }\n _applyFormState(formState) {\n if (isFormControlState(formState)) {\n this.value = this._pendingValue = formState.value;\n formState.disabled\n ? this.disable({ onlySelf: true, emitEvent: false })\n : this.enable({ onlySelf: true, emitEvent: false });\n }\n else {\n this.value = this._pendingValue = formState;\n }\n }\n};\nconst UntypedFormControl = FormControl;\n/**\n * @description\n * Asserts that the given control is an instance of `FormControl`\n *\n * @publicApi\n */\nconst isFormControl = (control) => control instanceof FormControl;\n\n/**\n * @description\n * A base class for code shared between the `NgModelGroup` and `FormGroupName` directives.\n *\n * @publicApi\n */\nclass AbstractFormGroupDirective extends ControlContainer {\n /**\n * @description\n * The parent control for the group\n *\n * @internal\n */\n // TODO(issue/24571): remove '!'.\n _parent;\n /** @nodoc */\n ngOnInit() {\n this._checkParentType();\n // Register the group with its parent group.\n this.formDirective.addFormGroup(this);\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.formDirective) {\n // Remove the group from its parent group.\n this.formDirective.removeFormGroup(this);\n }\n }\n /**\n * @description\n * The `FormGroup` bound to this directive.\n */\n get control() {\n return this.formDirective.getFormGroup(this);\n }\n /**\n * @description\n * The path to this group from the top-level directive.\n */\n get path() {\n return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n }\n /**\n * @description\n * The top-level directive for this group if present, otherwise null.\n */\n get formDirective() {\n return this._parent ? this._parent.formDirective : null;\n }\n /** @internal */\n _checkParentType() { }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: AbstractFormGroupDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: AbstractFormGroupDirective, isStandalone: false, usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: AbstractFormGroupDirective, decorators: [{\n type: Directive,\n args: [{\n standalone: false,\n }]\n }] });\n\nfunction modelParentException() {\n return new ɵRuntimeError(1350 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP */, `\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive \"formControlName\" instead. Example:\n\n ${formControlNameExample}\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n ${ngModelWithFormGroupExample}`);\n}\nfunction formGroupNameException() {\n return new ɵRuntimeError(1351 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP_NAME */, `\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${formGroupNameExample}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${ngModelGroupExample}`);\n}\nfunction missingNameException() {\n return new ɵRuntimeError(1352 /* RuntimeErrorCode.NGMODEL_WITHOUT_NAME */, `If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as 'standalone' in ngModelOptions.\n\n Example 1: <input [(ngModel)]=\"person.firstName\" name=\"first\">\n Example 2: <input [(ngModel)]=\"person.firstName\" [ngModelOptions]=\"{standalone: true}\">`);\n}\nfunction modelGroupParentException() {\n return new ɵRuntimeError(1353 /* RuntimeErrorCode.NGMODELGROUP_IN_FORM_GROUP */, `\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${formGroupNameExample}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${ngModelGroupExample}`);\n}\n\nconst modelGroupProvider = {\n provide: ControlContainer,\n useExisting: forwardRef(() => NgModelGroup),\n};\n/**\n * @description\n * Creates and binds a `FormGroup` instance to a DOM element.\n *\n * This directive can only be used as a child of `NgForm` (within `<form>` tags).\n *\n * Use this directive to validate a sub-group of your form separately from the\n * rest of your form, or if some values in your domain model make more sense\n * to consume together in a nested object.\n *\n * Provide a name for the sub-group and it will become the key\n * for the sub-group in the form's full value. If you need direct access, export the directive into\n * a local template variable using `ngModelGroup` (ex: `#myGroup=\"ngModelGroup\"`).\n *\n * @usageNotes\n *\n * ### Consuming controls in a grouping\n *\n * The following example shows you how to combine controls together in a sub-group\n * of the form.\n *\n * {@example forms/ts/ngModelGroup/ng_model_group_example.ts region='Component'}\n *\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgModelGroup extends AbstractFormGroupDirective {\n /**\n * @description\n * Tracks the name of the `NgModelGroup` bound to the directive. The name corresponds\n * to a key in the parent `NgForm`.\n */\n name = '';\n constructor(parent, validators, asyncValidators) {\n super();\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n }\n /** @internal */\n _checkParentType() {\n if (!(this._parent instanceof NgModelGroup) &&\n !(this._parent instanceof NgForm) &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw modelGroupParentException();\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgModelGroup, deps: [{ token: ControlContainer, host: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgModelGroup, isStandalone: false, selector: \"[ngModelGroup]\", inputs: { name: [\"ngModelGroup\", \"name\"] }, providers: [modelGroupProvider], exportAs: [\"ngModelGroup\"], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgModelGroup, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngModelGroup]',\n providers: [modelGroupProvider],\n exportAs: 'ngModelGroup',\n standalone: false,\n }]\n }], ctorParameters: () => [{ type: ControlContainer, decorators: [{\n type: Host\n }, {\n type: SkipSelf\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }], propDecorators: { name: [{\n type: Input,\n args: ['ngModelGroup']\n }] } });\n\nconst formControlBinding$1 = {\n provide: NgControl,\n useExisting: forwardRef(() => NgModel),\n};\n/**\n * `ngModel` forces an additional change detection run when its inputs change:\n * E.g.:\n * ```html\n * <div>{{myModel.valid}}</div>\n * <input [(ngModel)]=\"myValue\" #myModel=\"ngModel\">\n * ```\n * I.e. `ngModel` can export itself on the element and then be used in the template.\n * Normally, this would result in expressions before the `input` that use the exported directive\n * to have an old value as they have been\n * dirty checked before. As this is a very common case for `ngModel`, we added this second change\n * detection run.\n *\n * Notes:\n * - this is just one extra run no matter how many `ngModel`s have been changed.\n * - this is a general problem when using `exportAs` for directives!\n */\nconst resolvedPromise = (() => Promise.resolve())();\n/**\n * @description\n * Creates a `FormControl` instance from a [domain\n * model](https://en.wikipedia.org/wiki/Domain_model) and binds it to a form control element.\n *\n * The `FormControl` instance tracks the value, user interaction, and\n * validation status of the control and keeps the view synced with the model. If used\n * within a parent form, the directive also registers itself with the form as a child\n * control.\n *\n * This directive is used by itself or as part of a larger form. Use the\n * `ngModel` selector to activate it.\n *\n * It accepts a domain model as an optional `Input`. If you have a one-way binding\n * to `ngModel` with `[]` syntax, changing the domain model's value in the component\n * class sets the value in the view. If you have a two-way binding with `[()]` syntax\n * (also known as 'banana-in-a-box syntax'), the value in the UI always syncs back to\n * the domain model in your class.\n *\n * To inspect the properties of the associated `FormControl` (like the validity state),\n * export the directive into a local template variable using `ngModel` as the key (ex:\n * `#myVar=\"ngModel\"`). You can then access the control using the directive's `control` property.\n * However, the most commonly used properties (like `valid` and `dirty`) also exist on the control\n * for direct access. See a full list of properties directly available in\n * `AbstractControlDirective`.\n *\n * @see {@link RadioControlValueAccessor}\n * @see {@link SelectControlValueAccessor}\n *\n * @usageNotes\n *\n * ### Using ngModel on a standalone control\n *\n * The following examples show a simple standalone control using `ngModel`:\n *\n * {@example forms/ts/simpleNgModel/simple_ng_model_example.ts region='Component'}\n *\n * When using the `ngModel` within `<form>` tags, you'll also need to supply a `name` attribute\n * so that the control can be registered with the parent form under that name.\n *\n * In the context of a parent form, it's often unnecessary to include one-way or two-way binding,\n * as the parent form syncs the value for you. You access its properties by exporting it into a\n * local template variable using `ngForm` such as (`#f=\"ngForm\"`). Use the variable where\n * needed on form submission.\n *\n * If you do need to populate initial values into your form, using a one-way binding for\n * `ngModel` tends to be sufficient as long as you use the exported form's value rather\n * than the domain model's value on submit.\n *\n * ### Using ngModel within a form\n *\n * The following example shows controls using `ngModel` within a form:\n *\n * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}\n *\n * ### Using a standalone ngModel within a group\n *\n * The following example shows you how to use a standalone ngModel control\n * within a form. This controls the display of the form, but doesn't contain form data.\n *\n * ```html\n * <form>\n * <input name=\"login\" ngModel placeholder=\"Login\">\n * <input type=\"checkbox\" ngModel [ngModelOptions]=\"{standalone: true}\"> Show more options?\n * </form>\n * <!-- form value: {login: ''} -->\n * ```\n *\n * ### Setting the ngModel `name` attribute through options\n *\n * The following example shows you an alternate way to set the name attribute. Here,\n * an attribute identified as name is used within a custom form control component. To still be able\n * to specify the NgModel's name, you must specify it using the `ngModelOptions` input instead.\n *\n * ```html\n * <form>\n * <my-custom-form-control name=\"Nancy\" ngModel [ngModelOptions]=\"{name: 'user'}\">\n * </my-custom-form-control>\n * </form>\n * <!-- form value: {user: ''} -->\n * ```\n *\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgModel extends NgControl {\n _changeDetectorRef;\n callSetDisabledState;\n control = new FormControl();\n // At runtime we coerce arbitrary values assigned to the \"disabled\" input to a \"boolean\".\n // This is not reflected in the type of the property because outside of templates, consumers\n // should only deal with booleans. In templates, a string is allowed for convenience and to\n // match the native \"disabled attribute\" semantics which can be observed on input elements.\n // This static member tells the compiler that values of type \"string\" can also be assigned\n // to the input in a template.\n /** @nodoc */\n static ngAcceptInputType_isDisabled;\n /** @internal */\n _registered = false;\n /**\n * Internal reference to the view model value.\n * @nodoc\n */\n viewModel;\n /**\n * @description\n * Tracks the name bound to the directive. If a parent form exists, it\n * uses this name as a key to retrieve this control's value.\n */\n name = '';\n /**\n * @description\n * Tracks whether the control is disabled.\n */\n // TODO(issue/24571): remove '!'.\n isDisabled;\n /**\n * @description\n * Tracks the value bound to this directive.\n */\n model;\n /**\n * @description\n * Tracks the configuration options for this `ngModel` instance.\n *\n * **name**: An alternative to setting the name attribute on the form control element. See\n * the [example](api/forms/NgModel#using-ngmodel-on-a-standalone-control) for using `NgModel`\n * as a standalone control.\n *\n * **standalone**: When set to true, the `ngModel` will not register itself with its parent form,\n * and acts as if it's not in the form. Defaults to false. If no parent form exists, this option\n * has no effect.\n *\n * **updateOn**: Defines the event upon which the form control value and validity update.\n * Defaults to 'change'. Possible values: `'change'` | `'blur'` | `'submit'`.\n *\n */\n // TODO(issue/24571): remove '!'.\n options;\n /**\n * @description\n * Event emitter for producing the `ngModelChange` event after\n * the view model updates.\n */\n update = new EventEmitter();\n constructor(parent, validators, asyncValidators, valueAccessors, _changeDetectorRef, callSetDisabledState) {\n super();\n this._changeDetectorRef = _changeDetectorRef;\n this.callSetDisabledState = callSetDisabledState;\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n this.valueAccessor = selectValueAccessor(this, valueAccessors);\n }\n /** @nodoc */\n ngOnChanges(changes) {\n this._checkForErrors();\n if (!this._registered || 'name' in changes) {\n if (this._registered) {\n this._checkName();\n if (this.formDirective) {\n // We can't call `formDirective.removeControl(this)`, because the `name` has already been\n // changed. We also can't reset the name temporarily since the logic in `removeControl`\n // is inside a promise and it won't run immediately. We work around it by giving it an\n // object with the same shape instead.\n const oldName = changes['name'].previousValue;\n this.formDirective.removeControl({ name: oldName, path: this._getPath(oldName) });\n }\n }\n this._setUpControl();\n }\n if ('isDisabled' in changes) {\n this._updateDisabled(changes);\n }\n if (isPropertyUpdated(changes, this.viewModel)) {\n this._updateValue(this.model);\n this.viewModel = this.model;\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n this.formDirective && this.formDirective.removeControl(this);\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return this._getPath(this.name);\n }\n /**\n * @description\n * The top-level directive for this control if present, otherwise null.\n */\n get formDirective() {\n return this._parent ? this._parent.formDirective : null;\n }\n /**\n * @description\n * Sets the new value for the view model and emits an `ngModelChange` event.\n *\n * @param newValue The new value emitted by `ngModelChange`.\n */\n viewToModelUpdate(newValue) {\n this.viewModel = newValue;\n this.update.emit(newValue);\n }\n _setUpControl() {\n this._setUpdateStrategy();\n this._isStandalone() ? this._setUpStandalone() : this.formDirective.addControl(this);\n this._registered = true;\n }\n _setUpdateStrategy() {\n if (this.options && this.options.updateOn != null) {\n this.control._updateOn = this.options.updateOn;\n }\n }\n _isStandalone() {\n return !this._parent || !!(this.options && this.options.standalone);\n }\n _setUpStandalone() {\n setUpControl(this.control, this, this.callSetDisabledState);\n this.control.updateValueAndValidity({ emitEvent: false });\n }\n _checkForErrors() {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !this._isStandalone()) {\n this._checkParentType();\n }\n this._checkName();\n }\n _checkParentType() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!(this._parent instanceof NgModelGroup) &&\n this._parent instanceof AbstractFormGroupDirective) {\n throw formGroupNameException();\n }\n else if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {\n throw modelParentException();\n }\n }\n }\n _checkName() {\n if (this.options && this.options.name)\n this.name = this.options.name;\n if (!this._isStandalone() && !this.name && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw missingNameException();\n }\n }\n _updateValue(value) {\n resolvedPromise.then(() => {\n this.control.setValue(value, { emitViewToModelChange: false });\n this._changeDetectorRef?.markForCheck();\n });\n }\n _updateDisabled(changes) {\n const disabledValue = changes['isDisabled'].currentValue;\n // checking for 0 to avoid breaking change\n const isDisabled = disabledValue !== 0 && booleanAttribute(disabledValue);\n resolvedPromise.then(() => {\n if (isDisabled && !this.control.disabled) {\n this.control.disable();\n }\n else if (!isDisabled && this.control.disabled) {\n this.control.enable();\n }\n this._changeDetectorRef?.markForCheck();\n });\n }\n _getPath(controlName) {\n return this._parent ? controlPath(controlName, this._parent) : [controlName];\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgModel, deps: [{ token: ControlContainer, host: true, optional: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: ChangeDetectorRef, optional: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgModel, isStandalone: false, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: { name: \"name\", isDisabled: [\"disabled\", \"isDisabled\"], model: [\"ngModel\", \"model\"], options: [\"ngModelOptions\", \"options\"] }, outputs: { update: \"ngModelChange\" }, providers: [formControlBinding$1], exportAs: [\"ngModel\"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgModel, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngModel]:not([formControlName]):not([formControl])',\n providers: [formControlBinding$1],\n exportAs: 'ngModel',\n standalone: false,\n }]\n }], ctorParameters: () => [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALUE_ACCESSOR]\n }] }, { type: i0.ChangeDetectorRef, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ChangeDetectorRef]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [CALL_SET_DISABLED_STATE]\n }] }], propDecorators: { name: [{\n type: Input\n }], isDisabled: [{\n type: Input,\n args: ['disabled']\n }], model: [{\n type: Input,\n args: ['ngModel']\n }], options: [{\n type: Input,\n args: ['ngModelOptions']\n }], update: [{\n type: Output,\n args: ['ngModelChange']\n }] } });\n\n/**\n * @description\n *\n * Adds `novalidate` attribute to all forms by default.\n *\n * `novalidate` is used to disable browser's native form validation.\n *\n * If you want to use native validation with Angular forms, just add `ngNativeValidate` attribute:\n *\n * ```html\n * <form ngNativeValidate></form>\n * ```\n *\n * @publicApi\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n */\nclass ɵNgNoValidate {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ɵNgNoValidate, deps: [], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: ɵNgNoValidate, isStandalone: false, selector: \"form:not([ngNoForm]):not([ngNativeValidate])\", host: { attributes: { \"novalidate\": \"\" } }, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ɵNgNoValidate, decorators: [{\n type: Directive,\n args: [{\n selector: 'form:not([ngNoForm]):not([ngNativeValidate])',\n host: { 'novalidate': '' },\n standalone: false,\n }]\n }] });\n\nconst NUMBER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NumberValueAccessor),\n multi: true,\n};\n/**\n * @description\n * The `ControlValueAccessor` for writing a number value and listening to number input changes.\n * The value accessor is used by the `FormControlDirective`, `FormControlName`, and `NgModel`\n * directives.\n *\n * @usageNotes\n *\n * ### Using a number input with a reactive form.\n *\n * The following example shows how to use a number input with a reactive form.\n *\n * ```ts\n * const totalCountControl = new FormControl();\n * ```\n *\n * ```html\n * <input type=\"number\" [formControl]=\"totalCountControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass NumberValueAccessor extends BuiltInControlValueAccessor {\n /**\n * Sets the \"value\" property on the input element.\n * @nodoc\n */\n writeValue(value) {\n // The value needs to be normalized for IE9, otherwise it is set to 'null' when null\n const normalizedValue = value == null ? '' : value;\n this.setProperty('value', normalizedValue);\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = (value) => {\n fn(value == '' ? null : parseFloat(value));\n };\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NumberValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NumberValueAccessor, isStandalone: false, selector: \"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]\", host: { listeners: { \"input\": \"onChange($event.target.value)\", \"blur\": \"onTouched()\" } }, providers: [NUMBER_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NumberValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',\n host: { '(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },\n providers: [NUMBER_VALUE_ACCESSOR],\n standalone: false,\n }]\n }] });\n\nconst RADIO_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => RadioControlValueAccessor),\n multi: true,\n};\nfunction throwNameError() {\n throw new ɵRuntimeError(1202 /* RuntimeErrorCode.NAME_AND_FORM_CONTROL_NAME_MUST_MATCH */, `\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type=\"radio\" formControlName=\"food\" name=\"food\">\n `);\n}\n/**\n * @description\n * Class used by Angular to track radio buttons. For internal use only.\n */\nclass RadioControlRegistry {\n _accessors = [];\n /**\n * @description\n * Adds a control to the internal registry. For internal use only.\n */\n add(control, accessor) {\n this._accessors.push([control, accessor]);\n }\n /**\n * @description\n * Removes a control from the internal registry. For internal use only.\n */\n remove(accessor) {\n for (let i = this._accessors.length - 1; i >= 0; --i) {\n if (this._accessors[i][1] === accessor) {\n this._accessors.splice(i, 1);\n return;\n }\n }\n }\n /**\n * @description\n * Selects a radio button. For internal use only.\n */\n select(accessor) {\n this._accessors.forEach((c) => {\n if (this._isSameGroup(c, accessor) && c[1] !== accessor) {\n c[1].fireUncheck(accessor.value);\n }\n });\n }\n _isSameGroup(controlPair, accessor) {\n if (!controlPair[0].control)\n return false;\n return (controlPair[0]._parent === accessor._control._parent && controlPair[1].name === accessor.name);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RadioControlRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RadioControlRegistry, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RadioControlRegistry, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n/**\n * @description\n * The `ControlValueAccessor` for writing radio control values and listening to radio control\n * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @usageNotes\n *\n * ### Using radio buttons with reactive form directives\n *\n * The follow example shows how to use radio buttons in a reactive form. When using radio buttons in\n * a reactive form, radio buttons in the same group should have the same `formControlName`.\n * Providing a `name` attribute is optional.\n *\n * {@example forms/ts/reactiveRadioButtons/reactive_radio_button_example.ts region='Reactive'}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass RadioControlValueAccessor extends BuiltInControlValueAccessor {\n _registry;\n _injector;\n /** @internal */\n // TODO(issue/24571): remove '!'.\n _state;\n /** @internal */\n // TODO(issue/24571): remove '!'.\n _control;\n /** @internal */\n // TODO(issue/24571): remove '!'.\n _fn;\n setDisabledStateFired = false;\n /**\n * The registered callback function called when a change event occurs on the input element.\n * Note: we declare `onChange` here (also used as host listener) as a function with no arguments\n * to override the `onChange` function (which expects 1 argument) in the parent\n * `BaseControlValueAccessor` class.\n * @nodoc\n */\n onChange = () => { };\n /**\n * @description\n * Tracks the name of the radio input element.\n */\n // TODO(issue/24571): remove '!'.\n name;\n /**\n * @description\n * Tracks the name of the `FormControl` bound to the directive. The name corresponds\n * to a key in the parent `FormGroup` or `FormArray`.\n */\n // TODO(issue/24571): remove '!'.\n formControlName;\n /**\n * @description\n * Tracks the value of the radio input element\n */\n value;\n callSetDisabledState = inject(CALL_SET_DISABLED_STATE, { optional: true }) ?? setDisabledStateDefault;\n constructor(renderer, elementRef, _registry, _injector) {\n super(renderer, elementRef);\n this._registry = _registry;\n this._injector = _injector;\n }\n /** @nodoc */\n ngOnInit() {\n this._control = this._injector.get(NgControl);\n this._checkName();\n this._registry.add(this._control, this);\n }\n /** @nodoc */\n ngOnDestroy() {\n this._registry.remove(this);\n }\n /**\n * Sets the \"checked\" property value on the radio input element.\n * @nodoc\n */\n writeValue(value) {\n this._state = value === this.value;\n this.setProperty('checked', this._state);\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this._fn = fn;\n this.onChange = () => {\n fn(this.value);\n this._registry.select(this);\n };\n }\n /** @nodoc */\n setDisabledState(isDisabled) {\n /**\n * `setDisabledState` is supposed to be called whenever the disabled state of a control changes,\n * including upon control creation. However, a longstanding bug caused the method to not fire\n * when an *enabled* control was attached. This bug was fixed in v15 in #47576.\n *\n * This had a side effect: previously, it was possible to instantiate a reactive form control\n * with `[attr.disabled]=true`, even though the corresponding control was enabled in the\n * model. This resulted in a mismatch between the model and the DOM. Now, because\n * `setDisabledState` is always called, the value in the DOM will be immediately overwritten\n * with the \"correct\" enabled value.\n *\n * However, the fix also created an exceptional case: radio buttons. Because Reactive Forms\n * models the entire group of radio buttons as a single `FormControl`, there is no way to\n * control the disabled state for individual radios, so they can no longer be configured as\n * disabled. Thus, we keep the old behavior for radio buttons, so that `[attr.disabled]`\n * continues to work. Specifically, we drop the first call to `setDisabledState` if `disabled`\n * is `false`, and we are not in legacy mode.\n */\n if (this.setDisabledStateFired ||\n isDisabled ||\n this.callSetDisabledState === 'whenDisabledForLegacyCode') {\n this.setProperty('disabled', isDisabled);\n }\n this.setDisabledStateFired = true;\n }\n /**\n * Sets the \"value\" on the radio input element and unchecks it.\n *\n * @param value\n */\n fireUncheck(value) {\n this.writeValue(value);\n }\n _checkName() {\n if (this.name &&\n this.formControlName &&\n this.name !== this.formControlName &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwNameError();\n }\n if (!this.name && this.formControlName)\n this.name = this.formControlName;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RadioControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: RadioControlRegistry }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: RadioControlValueAccessor, isStandalone: false, selector: \"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]\", inputs: { name: \"name\", formControlName: \"formControlName\", value: \"value\" }, host: { listeners: { \"change\": \"onChange()\", \"blur\": \"onTouched()\" } }, providers: [RADIO_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RadioControlValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',\n host: { '(change)': 'onChange()', '(blur)': 'onTouched()' },\n providers: [RADIO_VALUE_ACCESSOR],\n standalone: false,\n }]\n }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: RadioControlRegistry }, { type: i0.Injector }], propDecorators: { name: [{\n type: Input\n }], formControlName: [{\n type: Input\n }], value: [{\n type: Input\n }] } });\n\nconst RANGE_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => RangeValueAccessor),\n multi: true,\n};\n/**\n * @description\n * The `ControlValueAccessor` for writing a range value and listening to range input changes.\n * The value accessor is used by the `FormControlDirective`, `FormControlName`, and `NgModel`\n * directives.\n *\n * @usageNotes\n *\n * ### Using a range input with a reactive form\n *\n * The following example shows how to use a range input with a reactive form.\n *\n * ```ts\n * const ageControl = new FormControl();\n * ```\n *\n * ```html\n * <input type=\"range\" [formControl]=\"ageControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass RangeValueAccessor extends BuiltInControlValueAccessor {\n /**\n * Sets the \"value\" property on the input element.\n * @nodoc\n */\n writeValue(value) {\n this.setProperty('value', parseFloat(value));\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = (value) => {\n fn(value == '' ? null : parseFloat(value));\n };\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RangeValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: RangeValueAccessor, isStandalone: false, selector: \"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]\", host: { listeners: { \"change\": \"onChange($event.target.value)\", \"input\": \"onChange($event.target.value)\", \"blur\": \"onTouched()\" } }, providers: [RANGE_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RangeValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',\n host: {\n '(change)': 'onChange($event.target.value)',\n '(input)': 'onChange($event.target.value)',\n '(blur)': 'onTouched()',\n },\n providers: [RANGE_VALUE_ACCESSOR],\n standalone: false,\n }]\n }] });\n\n/**\n * Token to provide to turn off the ngModel warning on formControl and formControlName.\n */\nconst NG_MODEL_WITH_FORM_CONTROL_WARNING = new InjectionToken(ngDevMode ? 'NgModelWithFormControlWarning' : '');\nconst formControlBinding = {\n provide: NgControl,\n useExisting: forwardRef(() => FormControlDirective),\n};\n/**\n * @description\n * Synchronizes a standalone `FormControl` instance to a form control element.\n *\n * Note that support for using the `ngModel` input property and `ngModelChange` event with reactive\n * form directives was deprecated in Angular v6 and is scheduled for removal in\n * a future version of Angular.\n *\n * @see [Reactive Forms Guide](guide/forms/reactive-forms)\n * @see {@link FormControl}\n * @see {@link AbstractControl}\n *\n * @usageNotes\n *\n * The following example shows how to register a standalone control and set its value.\n *\n * {@example forms/ts/simpleFormControl/simple_form_control_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormControlDirective extends NgControl {\n _ngModelWarningConfig;\n callSetDisabledState;\n /**\n * Internal reference to the view model value.\n * @nodoc\n */\n viewModel;\n /**\n * @description\n * Tracks the `FormControl` instance bound to the directive.\n */\n // TODO(issue/24571): remove '!'.\n form;\n /**\n * @description\n * Triggers a warning in dev mode that this input should not be used with reactive forms.\n */\n set isDisabled(isDisabled) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n console.warn(disabledAttrWarning);\n }\n }\n // TODO(kara): remove next 4 properties once deprecation period is over\n /** @deprecated as of v6 */\n model;\n /** @deprecated as of v6 */\n update = new EventEmitter();\n /**\n * @description\n * Static property used to track whether any ngModel warnings have been sent across\n * all instances of FormControlDirective. Used to support warning config of \"once\".\n *\n * @internal\n */\n static _ngModelWarningSentOnce = false;\n /**\n * @description\n * Instance property used to track whether an ngModel warning has been sent out for this\n * particular `FormControlDirective` instance. Used to support warning config of \"always\".\n *\n * @internal\n */\n _ngModelWarningSent = false;\n constructor(validators, asyncValidators, valueAccessors, _ngModelWarningConfig, callSetDisabledState) {\n super();\n this._ngModelWarningConfig = _ngModelWarningConfig;\n this.callSetDisabledState = callSetDisabledState;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n this.valueAccessor = selectValueAccessor(this, valueAccessors);\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if (this._isControlChanged(changes)) {\n const previousForm = changes['form'].previousValue;\n if (previousForm) {\n cleanUpControl(previousForm, this, /* validateControlPresenceOnChange */ false);\n }\n setUpControl(this.form, this, this.callSetDisabledState);\n this.form.updateValueAndValidity({ emitEvent: false });\n }\n if (isPropertyUpdated(changes, this.viewModel)) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _ngModelWarning('formControl', FormControlDirective, this, this._ngModelWarningConfig);\n }\n this.form.setValue(this.model);\n this.viewModel = this.model;\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.form) {\n cleanUpControl(this.form, this, /* validateControlPresenceOnChange */ false);\n }\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return [];\n }\n /**\n * @description\n * The `FormControl` bound to this directive.\n */\n get control() {\n return this.form;\n }\n /**\n * @description\n * Sets the new value for the view model and emits an `ngModelChange` event.\n *\n * @param newValue The new value for the view model.\n */\n viewToModelUpdate(newValue) {\n this.viewModel = newValue;\n this.update.emit(newValue);\n }\n _isControlChanged(changes) {\n return changes.hasOwnProperty('form');\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormControlDirective, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: NG_MODEL_WITH_FORM_CONTROL_WARNING, optional: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: FormControlDirective, isStandalone: false, selector: \"[formControl]\", inputs: { form: [\"formControl\", \"form\"], isDisabled: [\"disabled\", \"isDisabled\"], model: [\"ngModel\", \"model\"] }, outputs: { update: \"ngModelChange\" }, providers: [formControlBinding], exportAs: [\"ngForm\"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormControlDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[formControl]',\n providers: [formControlBinding],\n exportAs: 'ngForm',\n standalone: false,\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALUE_ACCESSOR]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [CALL_SET_DISABLED_STATE]\n }] }], propDecorators: { form: [{\n type: Input,\n args: ['formControl']\n }], isDisabled: [{\n type: Input,\n args: ['disabled']\n }], model: [{\n type: Input,\n args: ['ngModel']\n }], update: [{\n type: Output,\n args: ['ngModelChange']\n }] } });\n\nconst formDirectiveProvider = {\n provide: ControlContainer,\n useExisting: forwardRef(() => FormGroupDirective),\n};\n/**\n * @description\n *\n * Binds an existing `FormGroup` or `FormRecord` to a DOM element.\n *\n * This directive accepts an existing `FormGroup` instance. It will then use this\n * `FormGroup` instance to match any child `FormControl`, `FormGroup`/`FormRecord`,\n * and `FormArray` instances to child `FormControlName`, `FormGroupName`,\n * and `FormArrayName` directives.\n *\n * @see [Reactive Forms Guide](guide/forms/reactive-forms)\n * @see {@link AbstractControl}\n *\n * @usageNotes\n * ### Register Form Group\n *\n * The following example registers a `FormGroup` with first name and last name controls,\n * and listens for the *ngSubmit* event when the button is clicked.\n *\n * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormGroupDirective extends ControlContainer {\n callSetDisabledState;\n /**\n * @description\n * Reports whether the form submission has been triggered.\n */\n get submitted() {\n return untracked(this._submittedReactive);\n }\n // TODO(atscott): Remove once invalid API usage is cleaned up internally\n set submitted(value) {\n this._submittedReactive.set(value);\n }\n /** @internal */\n _submitted = computed(() => this._submittedReactive());\n _submittedReactive = signal(false);\n /**\n * Reference to an old form group input value, which is needed to cleanup\n * old instance in case it was replaced with a new one.\n */\n _oldForm;\n /**\n * Callback that should be invoked when controls in FormGroup or FormArray collection change\n * (added or removed). This callback triggers corresponding DOM updates.\n */\n _onCollectionChange = () => this._updateDomValue();\n /**\n * @description\n * Tracks the list of added `FormControlName` instances\n */\n directives = [];\n /**\n * @description\n * Tracks the `FormGroup` bound to this directive.\n */\n form = null;\n /**\n * @description\n * Emits an event when the form submission has been triggered.\n */\n ngSubmit = new EventEmitter();\n constructor(validators, asyncValidators, callSetDisabledState) {\n super();\n this.callSetDisabledState = callSetDisabledState;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n }\n /** @nodoc */\n ngOnChanges(changes) {\n this._checkFormPresent();\n if (changes.hasOwnProperty('form')) {\n this._updateValidators();\n this._updateDomValue();\n this._updateRegistrations();\n this._oldForm = this.form;\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.form) {\n cleanUpValidators(this.form, this);\n // Currently the `onCollectionChange` callback is rewritten each time the\n // `_registerOnCollectionChange` function is invoked. The implication is that cleanup should\n // happen *only* when the `onCollectionChange` callback was set by this directive instance.\n // Otherwise it might cause overriding a callback of some other directive instances. We should\n // consider updating this logic later to make it similar to how `onChange` callbacks are\n // handled, see https://github.com/angular/angular/issues/39732 for additional info.\n if (this.form._onCollectionChange === this._onCollectionChange) {\n this.form._registerOnCollectionChange(() => { });\n }\n }\n }\n /**\n * @description\n * Returns this directive's instance.\n */\n get formDirective() {\n return this;\n }\n /**\n * @description\n * Returns the `FormGroup` bound to this directive.\n */\n get control() {\n return this.form;\n }\n /**\n * @description\n * Returns an array representing the path to this group. Because this directive\n * always lives at the top level of a form, it always an empty array.\n */\n get path() {\n return [];\n }\n /**\n * @description\n * Method that sets up the control directive in this group, re-calculates its value\n * and validity, and adds the instance to the internal list of directives.\n *\n * @param dir The `FormControlName` directive instance.\n */\n addControl(dir) {\n const ctrl = this.form.get(dir.path);\n setUpControl(ctrl, dir, this.callSetDisabledState);\n ctrl.updateValueAndValidity({ emitEvent: false });\n this.directives.push(dir);\n return ctrl;\n }\n /**\n * @description\n * Retrieves the `FormControl` instance from the provided `FormControlName` directive\n *\n * @param dir The `FormControlName` directive instance.\n */\n getControl(dir) {\n return this.form.get(dir.path);\n }\n /**\n * @description\n * Removes the `FormControlName` instance from the internal list of directives\n *\n * @param dir The `FormControlName` directive instance.\n */\n removeControl(dir) {\n cleanUpControl(dir.control || null, dir, /* validateControlPresenceOnChange */ false);\n removeListItem$1(this.directives, dir);\n }\n /**\n * Adds a new `FormGroupName` directive instance to the form.\n *\n * @param dir The `FormGroupName` directive instance.\n */\n addFormGroup(dir) {\n this._setUpFormContainer(dir);\n }\n /**\n * Performs the necessary cleanup when a `FormGroupName` directive instance is removed from the\n * view.\n *\n * @param dir The `FormGroupName` directive instance.\n */\n removeFormGroup(dir) {\n this._cleanUpFormContainer(dir);\n }\n /**\n * @description\n * Retrieves the `FormGroup` for a provided `FormGroupName` directive instance\n *\n * @param dir The `FormGroupName` directive instance.\n */\n getFormGroup(dir) {\n return this.form.get(dir.path);\n }\n /**\n * Performs the necessary setup when a `FormArrayName` directive instance is added to the view.\n *\n * @param dir The `FormArrayName` directive instance.\n */\n addFormArray(dir) {\n this._setUpFormContainer(dir);\n }\n /**\n * Performs the necessary cleanup when a `FormArrayName` directive instance is removed from the\n * view.\n *\n * @param dir The `FormArrayName` directive instance.\n */\n removeFormArray(dir) {\n this._cleanUpFormContainer(dir);\n }\n /**\n * @description\n * Retrieves the `FormArray` for a provided `FormArrayName` directive instance.\n *\n * @param dir The `FormArrayName` directive instance.\n */\n getFormArray(dir) {\n return this.form.get(dir.path);\n }\n /**\n * Sets the new value for the provided `FormControlName` directive.\n *\n * @param dir The `FormControlName` directive instance.\n * @param value The new value for the directive's control.\n */\n updateModel(dir, value) {\n const ctrl = this.form.get(dir.path);\n ctrl.setValue(value);\n }\n /**\n * @description\n * Method called with the \"submit\" event is triggered on the form.\n * Triggers the `ngSubmit` emitter to emit the \"submit\" event as its payload.\n *\n * @param $event The \"submit\" event object\n */\n onSubmit($event) {\n this._submittedReactive.set(true);\n syncPendingControls(this.form, this.directives);\n this.ngSubmit.emit($event);\n this.form._events.next(new FormSubmittedEvent(this.control));\n // Forms with `method=\"dialog\"` have some special behavior that won't reload the page and that\n // shouldn't be prevented. Note that we need to null check the `event` and the `target`, because\n // some internal apps call this method directly with the wrong arguments.\n return $event?.target?.method === 'dialog';\n }\n /**\n * @description\n * Method called when the \"reset\" event is triggered on the form.\n */\n onReset() {\n this.resetForm();\n }\n /**\n * @description\n * Resets the form to an initial value and resets its submitted status.\n *\n * @param value The new value for the form.\n */\n resetForm(value = undefined) {\n this.form.reset(value);\n this._submittedReactive.set(false);\n this.form._events.next(new FormResetEvent(this.form));\n }\n /** @internal */\n _updateDomValue() {\n this.directives.forEach((dir) => {\n const oldCtrl = dir.control;\n const newCtrl = this.form.get(dir.path);\n if (oldCtrl !== newCtrl) {\n // Note: the value of the `dir.control` may not be defined, for example when it's a first\n // `FormControl` that is added to a `FormGroup` instance (via `addControl` call).\n cleanUpControl(oldCtrl || null, dir);\n // Check whether new control at the same location inside the corresponding `FormGroup` is an\n // instance of `FormControl` and perform control setup only if that's the case.\n // Note: we don't need to clear the list of directives (`this.directives`) here, it would be\n // taken care of in the `removeControl` method invoked when corresponding `formControlName`\n // directive instance is being removed (invoked from `FormControlName.ngOnDestroy`).\n if (isFormControl(newCtrl)) {\n setUpControl(newCtrl, dir, this.callSetDisabledState);\n dir.control = newCtrl;\n }\n }\n });\n this.form._updateTreeValidity({ emitEvent: false });\n }\n _setUpFormContainer(dir) {\n const ctrl = this.form.get(dir.path);\n setUpFormContainer(ctrl, dir);\n // NOTE: this operation looks unnecessary in case no new validators were added in\n // `setUpFormContainer` call. Consider updating this code to match the logic in\n // `_cleanUpFormContainer` function.\n ctrl.updateValueAndValidity({ emitEvent: false });\n }\n _cleanUpFormContainer(dir) {\n if (this.form) {\n const ctrl = this.form.get(dir.path);\n if (ctrl) {\n const isControlUpdated = cleanUpFormContainer(ctrl, dir);\n if (isControlUpdated) {\n // Run validity check only in case a control was updated (i.e. view validators were\n // removed) as removing view validators might cause validity to change.\n ctrl.updateValueAndValidity({ emitEvent: false });\n }\n }\n }\n }\n _updateRegistrations() {\n this.form._registerOnCollectionChange(this._onCollectionChange);\n if (this._oldForm) {\n this._oldForm._registerOnCollectionChange(() => { });\n }\n }\n _updateValidators() {\n setUpValidators(this.form, this);\n if (this._oldForm) {\n cleanUpValidators(this._oldForm, this);\n }\n }\n _checkFormPresent() {\n if (!this.form && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw missingFormException();\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormGroupDirective, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: FormGroupDirective, isStandalone: false, selector: \"[formGroup]\", inputs: { form: [\"formGroup\", \"form\"] }, outputs: { ngSubmit: \"ngSubmit\" }, host: { listeners: { \"submit\": \"onSubmit($event)\", \"reset\": \"onReset()\" } }, providers: [formDirectiveProvider], exportAs: [\"ngForm\"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormGroupDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[formGroup]',\n providers: [formDirectiveProvider],\n host: { '(submit)': 'onSubmit($event)', '(reset)': 'onReset()' },\n exportAs: 'ngForm',\n standalone: false,\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [CALL_SET_DISABLED_STATE]\n }] }], propDecorators: { form: [{\n type: Input,\n args: ['formGroup']\n }], ngSubmit: [{\n type: Output\n }] } });\n\nconst formGroupNameProvider = {\n provide: ControlContainer,\n useExisting: forwardRef(() => FormGroupName),\n};\n/**\n * @description\n *\n * Syncs a nested `FormGroup` or `FormRecord` to a DOM element.\n *\n * This directive can only be used with a parent `FormGroupDirective`.\n *\n * It accepts the string name of the nested `FormGroup` or `FormRecord` to link, and\n * looks for a `FormGroup` or `FormRecord` registered with that name in the parent\n * `FormGroup` instance you passed into `FormGroupDirective`.\n *\n * Use nested form groups to validate a sub-group of a\n * form separately from the rest or to group the values of certain\n * controls into their own nested object.\n *\n * @see [Reactive Forms Guide](guide/forms/reactive-forms)\n *\n * @usageNotes\n *\n * ### Access the group by name\n *\n * The following example uses the `AbstractControl.get` method to access the\n * associated `FormGroup`\n *\n * ```ts\n * this.form.get('name');\n * ```\n *\n * ### Access individual controls in the group\n *\n * The following example uses the `AbstractControl.get` method to access\n * individual controls within the group using dot syntax.\n *\n * ```ts\n * this.form.get('name.first');\n * ```\n *\n * ### Register a nested `FormGroup`.\n *\n * The following example registers a nested *name* `FormGroup` within an existing `FormGroup`,\n * and provides methods to retrieve the nested `FormGroup` and individual controls.\n *\n * {@example forms/ts/nestedFormGroup/nested_form_group_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormGroupName extends AbstractFormGroupDirective {\n /**\n * @description\n * Tracks the name of the `FormGroup` bound to the directive. The name corresponds\n * to a key in the parent `FormGroup` or `FormArray`.\n * Accepts a name as a string or a number.\n * The name in the form of a string is useful for individual forms,\n * while the numerical form allows for form groups to be bound\n * to indices when iterating over groups in a `FormArray`.\n */\n name = null;\n constructor(parent, validators, asyncValidators) {\n super();\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n }\n /** @internal */\n _checkParentType() {\n if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw groupParentException();\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormGroupName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: FormGroupName, isStandalone: false, selector: \"[formGroupName]\", inputs: { name: [\"formGroupName\", \"name\"] }, providers: [formGroupNameProvider], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormGroupName, decorators: [{\n type: Directive,\n args: [{\n selector: '[formGroupName]',\n providers: [formGroupNameProvider],\n standalone: false,\n }]\n }], ctorParameters: () => [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Host\n }, {\n type: SkipSelf\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }], propDecorators: { name: [{\n type: Input,\n args: ['formGroupName']\n }] } });\nconst formArrayNameProvider = {\n provide: ControlContainer,\n useExisting: forwardRef(() => FormArrayName),\n};\n/**\n * @description\n *\n * Syncs a nested `FormArray` to a DOM element.\n *\n * This directive is designed to be used with a parent `FormGroupDirective` (selector:\n * `[formGroup]`).\n *\n * It accepts the string name of the nested `FormArray` you want to link, and\n * will look for a `FormArray` registered with that name in the parent\n * `FormGroup` instance you passed into `FormGroupDirective`.\n *\n * @see [Reactive Forms Guide](guide/forms/reactive-forms)\n * @see {@link AbstractControl}\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example forms/ts/nestedFormArray/nested_form_array_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormArrayName extends ControlContainer {\n /** @internal */\n _parent;\n /**\n * @description\n * Tracks the name of the `FormArray` bound to the directive. The name corresponds\n * to a key in the parent `FormGroup` or `FormArray`.\n * Accepts a name as a string or a number.\n * The name in the form of a string is useful for individual forms,\n * while the numerical form allows for form arrays to be bound\n * to indices when iterating over arrays in a `FormArray`.\n */\n name = null;\n constructor(parent, validators, asyncValidators) {\n super();\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n }\n /**\n * A lifecycle method called when the directive's inputs are initialized. For internal use only.\n * @throws If the directive does not have a valid parent.\n * @nodoc\n */\n ngOnInit() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n this._checkParentType();\n }\n this.formDirective.addFormArray(this);\n }\n /**\n * A lifecycle method called before the directive's instance is destroyed. For internal use only.\n * @nodoc\n */\n ngOnDestroy() {\n if (this.formDirective) {\n this.formDirective.removeFormArray(this);\n }\n }\n /**\n * @description\n * The `FormArray` bound to this directive.\n */\n get control() {\n return this.formDirective.getFormArray(this);\n }\n /**\n * @description\n * The top-level directive for this group if present, otherwise null.\n */\n get formDirective() {\n return this._parent ? this._parent.formDirective : null;\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n }\n _checkParentType() {\n if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw arrayParentException();\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormArrayName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: FormArrayName, isStandalone: false, selector: \"[formArrayName]\", inputs: { name: [\"formArrayName\", \"name\"] }, providers: [formArrayNameProvider], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormArrayName, decorators: [{\n type: Directive,\n args: [{\n selector: '[formArrayName]',\n providers: [formArrayNameProvider],\n standalone: false,\n }]\n }], ctorParameters: () => [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Host\n }, {\n type: SkipSelf\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }], propDecorators: { name: [{\n type: Input,\n args: ['formArrayName']\n }] } });\nfunction _hasInvalidParent(parent) {\n return (!(parent instanceof FormGroupName) &&\n !(parent instanceof FormGroupDirective) &&\n !(parent instanceof FormArrayName));\n}\n\nconst controlNameBinding = {\n provide: NgControl,\n useExisting: forwardRef(() => FormControlName),\n};\n/**\n * @description\n * Syncs a `FormControl` in an existing `FormGroup` to a form control\n * element by name.\n *\n * @see [Reactive Forms Guide](guide/forms/reactive-forms)\n * @see {@link FormControl}\n * @see {@link AbstractControl}\n *\n * @usageNotes\n *\n * ### Register `FormControl` within a group\n *\n * The following example shows how to register multiple form controls within a form group\n * and set their value.\n *\n * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}\n *\n * To see `formControlName` examples with different form control types, see:\n *\n * * Radio buttons: `RadioControlValueAccessor`\n * * Selects: `SelectControlValueAccessor`\n *\n * ### Use with ngModel is deprecated\n *\n * Support for using the `ngModel` input property and `ngModelChange` event with reactive\n * form directives has been deprecated in Angular v6 and is scheduled for removal in\n * a future version of Angular.\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormControlName extends NgControl {\n _ngModelWarningConfig;\n _added = false;\n /**\n * Internal reference to the view model value.\n * @internal\n */\n viewModel;\n /**\n * @description\n * Tracks the `FormControl` instance bound to the directive.\n */\n // TODO(issue/24571): remove '!'.\n control;\n /**\n * @description\n * Tracks the name of the `FormControl` bound to the directive. The name corresponds\n * to a key in the parent `FormGroup` or `FormArray`.\n * Accepts a name as a string or a number.\n * The name in the form of a string is useful for individual forms,\n * while the numerical form allows for form controls to be bound\n * to indices when iterating over controls in a `FormArray`.\n */\n name = null;\n /**\n * @description\n * Triggers a warning in dev mode that this input should not be used with reactive forms.\n */\n set isDisabled(isDisabled) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n console.warn(disabledAttrWarning);\n }\n }\n // TODO(kara): remove next 4 properties once deprecation period is over\n /** @deprecated as of v6 */\n model;\n /** @deprecated as of v6 */\n update = new EventEmitter();\n /**\n * @description\n * Static property used to track whether any ngModel warnings have been sent across\n * all instances of FormControlName. Used to support warning config of \"once\".\n *\n * @internal\n */\n static _ngModelWarningSentOnce = false;\n /**\n * @description\n * Instance property used to track whether an ngModel warning has been sent out for this\n * particular FormControlName instance. Used to support warning config of \"always\".\n *\n * @internal\n */\n _ngModelWarningSent = false;\n constructor(parent, validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {\n super();\n this._ngModelWarningConfig = _ngModelWarningConfig;\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n this.valueAccessor = selectValueAccessor(this, valueAccessors);\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if (!this._added)\n this._setUpControl();\n if (isPropertyUpdated(changes, this.viewModel)) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _ngModelWarning('formControlName', FormControlName, this, this._ngModelWarningConfig);\n }\n this.viewModel = this.model;\n this.formDirective.updateModel(this, this.model);\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.formDirective) {\n this.formDirective.removeControl(this);\n }\n }\n /**\n * @description\n * Sets the new value for the view model and emits an `ngModelChange` event.\n *\n * @param newValue The new value for the view model.\n */\n viewToModelUpdate(newValue) {\n this.viewModel = newValue;\n this.update.emit(newValue);\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n }\n /**\n * @description\n * The top-level directive for this group if present, otherwise null.\n */\n get formDirective() {\n return this._parent ? this._parent.formDirective : null;\n }\n _checkParentType() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!(this._parent instanceof FormGroupName) &&\n this._parent instanceof AbstractFormGroupDirective) {\n throw ngModelGroupException();\n }\n else if (!(this._parent instanceof FormGroupName) &&\n !(this._parent instanceof FormGroupDirective) &&\n !(this._parent instanceof FormArrayName)) {\n throw controlParentException(this.name);\n }\n }\n }\n _setUpControl() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n this._checkParentType();\n }\n this.control = this.formDirective.addControl(this);\n this._added = true;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormControlName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: NG_MODEL_WITH_FORM_CONTROL_WARNING, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: FormControlName, isStandalone: false, selector: \"[formControlName]\", inputs: { name: [\"formControlName\", \"name\"], isDisabled: [\"disabled\", \"isDisabled\"], model: [\"ngModel\", \"model\"] }, outputs: { update: \"ngModelChange\" }, providers: [controlNameBinding], usesInheritance: true, usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormControlName, decorators: [{\n type: Directive,\n args: [{\n selector: '[formControlName]',\n providers: [controlNameBinding],\n standalone: false,\n }]\n }], ctorParameters: () => [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Host\n }, {\n type: SkipSelf\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALUE_ACCESSOR]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]\n }] }], propDecorators: { name: [{\n type: Input,\n args: ['formControlName']\n }], isDisabled: [{\n type: Input,\n args: ['disabled']\n }], model: [{\n type: Input,\n args: ['ngModel']\n }], update: [{\n type: Output,\n args: ['ngModelChange']\n }] } });\n\nconst SELECT_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SelectControlValueAccessor),\n multi: true,\n};\nfunction _buildValueString$1(id, value) {\n if (id == null)\n return `${value}`;\n if (value && typeof value === 'object')\n value = 'Object';\n return `${id}: ${value}`.slice(0, 50);\n}\nfunction _extractId$1(valueString) {\n return valueString.split(':')[0];\n}\n/**\n * @description\n * The `ControlValueAccessor` for writing select control values and listening to select control\n * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @usageNotes\n *\n * ### Using select controls in a reactive form\n *\n * The following examples show how to use a select control in a reactive form.\n *\n * {@example forms/ts/reactiveSelectControl/reactive_select_control_example.ts region='Component'}\n *\n * ### Using select controls in a template-driven form\n *\n * To use a select in a template-driven form, simply add an `ngModel` and a `name`\n * attribute to the main `<select>` tag.\n *\n * {@example forms/ts/selectControl/select_control_example.ts region='Component'}\n *\n * ### Customizing option selection\n *\n * Angular uses object identity to select option. It's possible for the identities of items\n * to change while the data does not. This can happen, for example, if the items are produced\n * from an RPC to the server, and that RPC is re-run. Even if the data hasn't changed, the\n * second response will produce objects with different identities.\n *\n * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.\n * `compareWith` takes a **function** which has two arguments: `option1` and `option2`.\n * If `compareWith` is given, Angular selects option by the return value of the function.\n *\n * ```ts\n * const selectedCountriesControl = new FormControl();\n * ```\n *\n * ```html\n * <select [compareWith]=\"compareFn\" [formControl]=\"selectedCountriesControl\">\n * <option *ngFor=\"let country of countries\" [ngValue]=\"country\">\n * {{country.name}}\n * </option>\n * </select>\n *\n * compareFn(c1: Country, c2: Country): boolean {\n * return c1 && c2 ? c1.id === c2.id : c1 === c2;\n * }\n * ```\n *\n * **Note:** We listen to the 'change' event because 'input' events aren't fired\n * for selects in IE, see:\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event#browser_compatibility\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass SelectControlValueAccessor extends BuiltInControlValueAccessor {\n /** @nodoc */\n value;\n /** @internal */\n _optionMap = new Map();\n /** @internal */\n _idCounter = 0;\n /**\n * @description\n * Tracks the option comparison algorithm for tracking identities when\n * checking for changes.\n */\n set compareWith(fn) {\n if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw new ɵRuntimeError(1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);\n }\n this._compareWith = fn;\n }\n _compareWith = Object.is;\n /**\n * Sets the \"value\" property on the select element.\n * @nodoc\n */\n writeValue(value) {\n this.value = value;\n const id = this._getOptionId(value);\n const valueString = _buildValueString$1(id, value);\n this.setProperty('value', valueString);\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = (valueString) => {\n this.value = this._getOptionValue(valueString);\n fn(this.value);\n };\n }\n /** @internal */\n _registerOption() {\n return (this._idCounter++).toString();\n }\n /** @internal */\n _getOptionId(value) {\n for (const id of this._optionMap.keys()) {\n if (this._compareWith(this._optionMap.get(id), value))\n return id;\n }\n return null;\n }\n /** @internal */\n _getOptionValue(valueString) {\n const id = _extractId$1(valueString);\n return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: SelectControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: SelectControlValueAccessor, isStandalone: false, selector: \"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]\", inputs: { compareWith: \"compareWith\" }, host: { listeners: { \"change\": \"onChange($event.target.value)\", \"blur\": \"onTouched()\" } }, providers: [SELECT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: SelectControlValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',\n host: { '(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },\n providers: [SELECT_VALUE_ACCESSOR],\n standalone: false,\n }]\n }], propDecorators: { compareWith: [{\n type: Input\n }] } });\n/**\n * @description\n * Marks `<option>` as dynamic, so Angular can be notified when options change.\n *\n * @see {@link SelectControlValueAccessor}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgSelectOption {\n _element;\n _renderer;\n _select;\n /**\n * @description\n * ID of the option element\n */\n // TODO(issue/24571): remove '!'.\n id;\n constructor(_element, _renderer, _select) {\n this._element = _element;\n this._renderer = _renderer;\n this._select = _select;\n if (this._select)\n this.id = this._select._registerOption();\n }\n /**\n * @description\n * Tracks the value bound to the option element. Unlike the value binding,\n * ngValue supports binding to objects.\n */\n set ngValue(value) {\n if (this._select == null)\n return;\n this._select._optionMap.set(this.id, value);\n this._setElementValue(_buildValueString$1(this.id, value));\n this._select.writeValue(this._select.value);\n }\n /**\n * @description\n * Tracks simple string values bound to the option element.\n * For objects, use the `ngValue` input binding.\n */\n set value(value) {\n this._setElementValue(value);\n if (this._select)\n this._select.writeValue(this._select.value);\n }\n /** @internal */\n _setElementValue(value) {\n this._renderer.setProperty(this._element.nativeElement, 'value', value);\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this._select) {\n this._select._optionMap.delete(this.id);\n this._select.writeValue(this._select.value);\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgSelectOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: NgSelectOption, isStandalone: false, selector: \"option\", inputs: { ngValue: \"ngValue\", value: \"value\" }, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NgSelectOption, decorators: [{\n type: Directive,\n args: [{\n selector: 'option',\n standalone: false,\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SelectControlValueAccessor, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }], propDecorators: { ngValue: [{\n type: Input,\n args: ['ngValue']\n }], value: [{\n type: Input,\n args: ['value']\n }] } });\n\nconst SELECT_MULTIPLE_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SelectMultipleControlValueAccessor),\n multi: true,\n};\nfunction _buildValueString(id, value) {\n if (id == null)\n return `${value}`;\n if (typeof value === 'string')\n value = `'${value}'`;\n if (value && typeof value === 'object')\n value = 'Object';\n return `${id}: ${value}`.slice(0, 50);\n}\nfunction _extractId(valueString) {\n return valueString.split(':')[0];\n}\n/** Mock interface for HTMLCollection */\nclass HTMLCollection {\n // TODO(issue/24571): remove '!'.\n length;\n}\n/**\n * @description\n * The `ControlValueAccessor` for writing multi-select control values and listening to multi-select\n * control changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @see {@link SelectControlValueAccessor}\n *\n * @usageNotes\n *\n * ### Using a multi-select control\n *\n * The follow example shows you how to use a multi-select control with a reactive form.\n *\n * ```ts\n * const countryControl = new FormControl();\n * ```\n *\n * ```html\n * <select multiple name=\"countries\" [formControl]=\"countryControl\">\n * <option *ngFor=\"let country of countries\" [ngValue]=\"country\">\n * {{ country.name }}\n * </option>\n * </select>\n * ```\n *\n * ### Customizing option selection\n *\n * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.\n * See the `SelectControlValueAccessor` for usage.\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {\n /**\n * The current value.\n * @nodoc\n */\n value;\n /** @internal */\n _optionMap = new Map();\n /** @internal */\n _idCounter = 0;\n /**\n * @description\n * Tracks the option comparison algorithm for tracking identities when\n * checking for changes.\n */\n set compareWith(fn) {\n if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw new ɵRuntimeError(1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);\n }\n this._compareWith = fn;\n }\n _compareWith = Object.is;\n /**\n * Sets the \"value\" property on one or of more of the select's options.\n * @nodoc\n */\n writeValue(value) {\n this.value = value;\n let optionSelectedStateSetter;\n if (Array.isArray(value)) {\n // convert values to ids\n const ids = value.map((v) => this._getOptionId(v));\n optionSelectedStateSetter = (opt, o) => {\n opt._setSelected(ids.indexOf(o.toString()) > -1);\n };\n }\n else {\n optionSelectedStateSetter = (opt, o) => {\n opt._setSelected(false);\n };\n }\n this._optionMap.forEach(optionSelectedStateSetter);\n }\n /**\n * Registers a function called when the control value changes\n * and writes an array of the selected options.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = (element) => {\n const selected = [];\n const selectedOptions = element.selectedOptions;\n if (selectedOptions !== undefined) {\n const options = selectedOptions;\n for (let i = 0; i < options.length; i++) {\n const opt = options[i];\n const val = this._getOptionValue(opt.value);\n selected.push(val);\n }\n }\n // Degrade to use `options` when `selectedOptions` property is not available.\n // Note: the `selectedOptions` is available in all supported browsers, but the Domino lib\n // doesn't have it currently, see https://github.com/fgnass/domino/issues/177.\n else {\n const options = element.options;\n for (let i = 0; i < options.length; i++) {\n const opt = options[i];\n if (opt.selected) {\n const val = this._getOptionValue(opt.value);\n selected.push(val);\n }\n }\n }\n this.value = selected;\n fn(selected);\n };\n }\n /** @internal */\n _registerOption(value) {\n const id = (this._idCounter++).toString();\n this._optionMap.set(id, value);\n return id;\n }\n /** @internal */\n _getOptionId(value) {\n for (const id of this._optionMap.keys()) {\n if (this._compareWith(this._optionMap.get(id)._value, value))\n return id;\n }\n return null;\n }\n /** @internal */\n _getOptionValue(valueString) {\n const id = _extractId(valueString);\n return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: SelectMultipleControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: SelectMultipleControlValueAccessor, isStandalone: false, selector: \"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]\", inputs: { compareWith: \"compareWith\" }, host: { listeners: { \"change\": \"onChange($event.target)\", \"blur\": \"onTouched()\" } }, providers: [SELECT_MULTIPLE_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: SelectMultipleControlValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',\n host: { '(change)': 'onChange($event.target)', '(blur)': 'onTouched()' },\n providers: [SELECT_MULTIPLE_VALUE_ACCESSOR],\n standalone: false,\n }]\n }], propDecorators: { compareWith: [{\n type: Input\n }] } });\n/**\n * @description\n * Marks `<option>` as dynamic, so Angular can be notified when options change.\n *\n * @see {@link SelectMultipleControlValueAccessor}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass ɵNgSelectMultipleOption {\n _element;\n _renderer;\n _select;\n // TODO(issue/24571): remove '!'.\n id;\n /** @internal */\n _value;\n constructor(_element, _renderer, _select) {\n this._element = _element;\n this._renderer = _renderer;\n this._select = _select;\n if (this._select) {\n this.id = this._select._registerOption(this);\n }\n }\n /**\n * @description\n * Tracks the value bound to the option element. Unlike the value binding,\n * ngValue supports binding to objects.\n */\n set ngValue(value) {\n if (this._select == null)\n return;\n this._value = value;\n this._setElementValue(_buildValueString(this.id, value));\n this._select.writeValue(this._select.value);\n }\n /**\n * @description\n * Tracks simple string values bound to the option element.\n * For objects, use the `ngValue` input binding.\n */\n set value(value) {\n if (this._select) {\n this._value = value;\n this._setElementValue(_buildValueString(this.id, value));\n this._select.writeValue(this._select.value);\n }\n else {\n this._setElementValue(value);\n }\n }\n /** @internal */\n _setElementValue(value) {\n this._renderer.setProperty(this._element.nativeElement, 'value', value);\n }\n /** @internal */\n _setSelected(selected) {\n this._renderer.setProperty(this._element.nativeElement, 'selected', selected);\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this._select) {\n this._select._optionMap.delete(this.id);\n this._select.writeValue(this._select.value);\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ɵNgSelectMultipleOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectMultipleControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: ɵNgSelectMultipleOption, isStandalone: false, selector: \"option\", inputs: { ngValue: \"ngValue\", value: \"value\" }, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ɵNgSelectMultipleOption, decorators: [{\n type: Directive,\n args: [{\n selector: 'option',\n standalone: false,\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SelectMultipleControlValueAccessor, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }], propDecorators: { ngValue: [{\n type: Input,\n args: ['ngValue']\n }], value: [{\n type: Input,\n args: ['value']\n }] } });\n\n/**\n * Method that updates string to integer if not already a number\n *\n * @param value The value to convert to integer.\n * @returns value of parameter converted to number or integer.\n */\nfunction toInteger(value) {\n return typeof value === 'number' ? value : parseInt(value, 10);\n}\n/**\n * Method that ensures that provided value is a float (and converts it to float if needed).\n *\n * @param value The value to convert to float.\n * @returns value of parameter converted to number or float.\n */\nfunction toFloat(value) {\n return typeof value === 'number' ? value : parseFloat(value);\n}\n/**\n * A base class for Validator-based Directives. The class contains common logic shared across such\n * Directives.\n *\n * For internal use only, this class is not intended for use outside of the Forms package.\n */\nclass AbstractValidatorDirective {\n _validator = nullValidator;\n _onChange;\n /**\n * A flag that tracks whether this validator is enabled.\n *\n * Marking it `internal` (vs `protected`), so that this flag can be used in host bindings of\n * directive classes that extend this base class.\n * @internal\n */\n _enabled;\n /** @nodoc */\n ngOnChanges(changes) {\n if (this.inputName in changes) {\n const input = this.normalizeInput(changes[this.inputName].currentValue);\n this._enabled = this.enabled(input);\n this._validator = this._enabled ? this.createValidator(input) : nullValidator;\n if (this._onChange) {\n this._onChange();\n }\n }\n }\n /** @nodoc */\n validate(control) {\n return this._validator(control);\n }\n /** @nodoc */\n registerOnValidatorChange(fn) {\n this._onChange = fn;\n }\n /**\n * @description\n * Determines whether this validator should be active or not based on an input.\n * Base class implementation checks whether an input is defined (if the value is different from\n * `null` and `undefined`). Validator classes that extend this base class can override this\n * function with the logic specific to a particular validator directive.\n */\n enabled(input) {\n return input != null /* both `null` and `undefined` */;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: AbstractValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: AbstractValidatorDirective, isStandalone: true, usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: AbstractValidatorDirective, decorators: [{\n type: Directive\n }] });\n/**\n * @description\n * Provider which adds `MaxValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MAX_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MaxValidator),\n multi: true,\n};\n/**\n * A directive which installs the {@link MaxValidator} for any `formControlName`,\n * `formControl`, or control with `ngModel` that also has a `max` attribute.\n *\n * @see [Form Validation](guide/forms/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a max validator\n *\n * The following example shows how to add a max validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input type=\"number\" ngModel max=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass MaxValidator extends AbstractValidatorDirective {\n /**\n * @description\n * Tracks changes to the max bound to this directive.\n */\n max;\n /** @internal */\n inputName = 'max';\n /** @internal */\n normalizeInput = (input) => toFloat(input);\n /** @internal */\n createValidator = (max) => maxValidator(max);\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: MaxValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: MaxValidator, isStandalone: false, selector: \"input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]\", inputs: { max: \"max\" }, host: { properties: { \"attr.max\": \"_enabled ? max : null\" } }, providers: [MAX_VALIDATOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: MaxValidator, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]',\n providers: [MAX_VALIDATOR],\n host: { '[attr.max]': '_enabled ? max : null' },\n standalone: false,\n }]\n }], propDecorators: { max: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `MinValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MIN_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MinValidator),\n multi: true,\n};\n/**\n * A directive which installs the {@link MinValidator} for any `formControlName`,\n * `formControl`, or control with `ngModel` that also has a `min` attribute.\n *\n * @see [Form Validation](guide/forms/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a min validator\n *\n * The following example shows how to add a min validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input type=\"number\" ngModel min=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass MinValidator extends AbstractValidatorDirective {\n /**\n * @description\n * Tracks changes to the min bound to this directive.\n */\n min;\n /** @internal */\n inputName = 'min';\n /** @internal */\n normalizeInput = (input) => toFloat(input);\n /** @internal */\n createValidator = (min) => minValidator(min);\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: MinValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: MinValidator, isStandalone: false, selector: \"input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]\", inputs: { min: \"min\" }, host: { properties: { \"attr.min\": \"_enabled ? min : null\" } }, providers: [MIN_VALIDATOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: MinValidator, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]',\n providers: [MIN_VALIDATOR],\n host: { '[attr.min]': '_enabled ? min : null' },\n standalone: false,\n }]\n }], propDecorators: { min: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `RequiredValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst REQUIRED_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => RequiredValidator),\n multi: true,\n};\n/**\n * @description\n * Provider which adds `CheckboxRequiredValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst CHECKBOX_REQUIRED_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => CheckboxRequiredValidator),\n multi: true,\n};\n/**\n * @description\n * A directive that adds the `required` validator to any controls marked with the\n * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/forms/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a required validator using template-driven forms\n *\n * ```html\n * <input name=\"fullName\" ngModel required>\n * ```\n *\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass RequiredValidator extends AbstractValidatorDirective {\n /**\n * @description\n * Tracks changes to the required attribute bound to this directive.\n */\n required;\n /** @internal */\n inputName = 'required';\n /** @internal */\n normalizeInput = booleanAttribute;\n /** @internal */\n createValidator = (input) => requiredValidator;\n /** @nodoc */\n enabled(input) {\n return input;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: RequiredValidator, isStandalone: false, selector: \":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]\", inputs: { required: \"required\" }, host: { properties: { \"attr.required\": \"_enabled ? \\\"\\\" : null\" } }, providers: [REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RequiredValidator, decorators: [{\n type: Directive,\n args: [{\n selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',\n providers: [REQUIRED_VALIDATOR],\n host: { '[attr.required]': '_enabled ? \"\" : null' },\n standalone: false,\n }]\n }], propDecorators: { required: [{\n type: Input\n }] } });\n/**\n * A Directive that adds the `required` validator to checkbox controls marked with the\n * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/forms/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a required checkbox validator using template-driven forms\n *\n * The following example shows how to add a checkbox required validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input type=\"checkbox\" name=\"active\" ngModel required>\n * ```\n *\n * @publicApi\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n */\nclass CheckboxRequiredValidator extends RequiredValidator {\n /** @internal */\n createValidator = (input) => requiredTrueValidator;\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: CheckboxRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: CheckboxRequiredValidator, isStandalone: false, selector: \"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]\", host: { properties: { \"attr.required\": \"_enabled ? \\\"\\\" : null\" } }, providers: [CHECKBOX_REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: CheckboxRequiredValidator, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',\n providers: [CHECKBOX_REQUIRED_VALIDATOR],\n host: { '[attr.required]': '_enabled ? \"\" : null' },\n standalone: false,\n }]\n }] });\n/**\n * @description\n * Provider which adds `EmailValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst EMAIL_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => EmailValidator),\n multi: true,\n};\n/**\n * A directive that adds the `email` validator to controls marked with the\n * `email` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * The email validation is based on the WHATWG HTML specification with some enhancements to\n * incorporate more RFC rules. More information can be found on the [Validators.email\n * page](api/forms/Validators#email).\n *\n * @see [Form Validation](guide/forms/form-validation)\n *\n * @usageNotes\n *\n * ### Adding an email validator\n *\n * The following example shows how to add an email validator to an input attached to an ngModel\n * binding.\n *\n * ```html\n * <input type=\"email\" name=\"email\" ngModel email>\n * <input type=\"email\" name=\"email\" ngModel email=\"true\">\n * <input type=\"email\" name=\"email\" ngModel [email]=\"true\">\n * ```\n *\n * @publicApi\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n */\nclass EmailValidator extends AbstractValidatorDirective {\n /**\n * @description\n * Tracks changes to the email attribute bound to this directive.\n */\n email;\n /** @internal */\n inputName = 'email';\n /** @internal */\n normalizeInput = booleanAttribute;\n /** @internal */\n createValidator = (input) => emailValidator;\n /** @nodoc */\n enabled(input) {\n return input;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: EmailValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: EmailValidator, isStandalone: false, selector: \"[email][formControlName],[email][formControl],[email][ngModel]\", inputs: { email: \"email\" }, providers: [EMAIL_VALIDATOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: EmailValidator, decorators: [{\n type: Directive,\n args: [{\n selector: '[email][formControlName],[email][formControl],[email][ngModel]',\n providers: [EMAIL_VALIDATOR],\n standalone: false,\n }]\n }], propDecorators: { email: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `MinLengthValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MIN_LENGTH_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MinLengthValidator),\n multi: true,\n};\n/**\n * A directive that adds minimum length validation to controls marked with the\n * `minlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/forms/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a minimum length validator\n *\n * The following example shows how to add a minimum length validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel minlength=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass MinLengthValidator extends AbstractValidatorDirective {\n /**\n * @description\n * Tracks changes to the minimum length bound to this directive.\n */\n minlength;\n /** @internal */\n inputName = 'minlength';\n /** @internal */\n normalizeInput = (input) => toInteger(input);\n /** @internal */\n createValidator = (minlength) => minLengthValidator(minlength);\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: MinLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: MinLengthValidator, isStandalone: false, selector: \"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]\", inputs: { minlength: \"minlength\" }, host: { properties: { \"attr.minlength\": \"_enabled ? minlength : null\" } }, providers: [MIN_LENGTH_VALIDATOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: MinLengthValidator, decorators: [{\n type: Directive,\n args: [{\n selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',\n providers: [MIN_LENGTH_VALIDATOR],\n host: { '[attr.minlength]': '_enabled ? minlength : null' },\n standalone: false,\n }]\n }], propDecorators: { minlength: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `MaxLengthValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MAX_LENGTH_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MaxLengthValidator),\n multi: true,\n};\n/**\n * A directive that adds maximum length validation to controls marked with the\n * `maxlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/forms/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a maximum length validator\n *\n * The following example shows how to add a maximum length validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel maxlength=\"25\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass MaxLengthValidator extends AbstractValidatorDirective {\n /**\n * @description\n * Tracks changes to the maximum length bound to this directive.\n */\n maxlength;\n /** @internal */\n inputName = 'maxlength';\n /** @internal */\n normalizeInput = (input) => toInteger(input);\n /** @internal */\n createValidator = (maxlength) => maxLengthValidator(maxlength);\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: MaxLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: MaxLengthValidator, isStandalone: false, selector: \"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]\", inputs: { maxlength: \"maxlength\" }, host: { properties: { \"attr.maxlength\": \"_enabled ? maxlength : null\" } }, providers: [MAX_LENGTH_VALIDATOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: MaxLengthValidator, decorators: [{\n type: Directive,\n args: [{\n selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',\n providers: [MAX_LENGTH_VALIDATOR],\n host: { '[attr.maxlength]': '_enabled ? maxlength : null' },\n standalone: false,\n }]\n }], propDecorators: { maxlength: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `PatternValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst PATTERN_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => PatternValidator),\n multi: true,\n};\n/**\n * @description\n * A directive that adds regex pattern validation to controls marked with the\n * `pattern` attribute. The regex must match the entire control value.\n * The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/forms/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a pattern validator\n *\n * The following example shows how to add a pattern validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel pattern=\"[a-zA-Z ]*\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass PatternValidator extends AbstractValidatorDirective {\n /**\n * @description\n * Tracks changes to the pattern bound to this directive.\n */\n pattern; // This input is always defined, since the name matches selector.\n /** @internal */\n inputName = 'pattern';\n /** @internal */\n normalizeInput = (input) => input;\n /** @internal */\n createValidator = (input) => patternValidator(input);\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PatternValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: PatternValidator, isStandalone: false, selector: \"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]\", inputs: { pattern: \"pattern\" }, host: { properties: { \"attr.pattern\": \"_enabled ? pattern : null\" } }, providers: [PATTERN_VALIDATOR], usesInheritance: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PatternValidator, decorators: [{\n type: Directive,\n args: [{\n selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',\n providers: [PATTERN_VALIDATOR],\n host: { '[attr.pattern]': '_enabled ? pattern : null' },\n standalone: false,\n }]\n }], propDecorators: { pattern: [{\n type: Input\n }] } });\n\nconst SHARED_FORM_DIRECTIVES = [\n ɵNgNoValidate,\n NgSelectOption,\n ɵNgSelectMultipleOption,\n DefaultValueAccessor,\n NumberValueAccessor,\n RangeValueAccessor,\n CheckboxControlValueAccessor,\n SelectControlValueAccessor,\n SelectMultipleControlValueAccessor,\n RadioControlValueAccessor,\n NgControlStatus,\n NgControlStatusGroup,\n RequiredValidator,\n MinLengthValidator,\n MaxLengthValidator,\n PatternValidator,\n CheckboxRequiredValidator,\n EmailValidator,\n MinValidator,\n MaxValidator,\n];\nconst TEMPLATE_DRIVEN_DIRECTIVES = [NgModel, NgModelGroup, NgForm];\nconst REACTIVE_DRIVEN_DIRECTIVES = [\n FormControlDirective,\n FormGroupDirective,\n FormControlName,\n FormGroupName,\n FormArrayName,\n];\n/**\n * Internal module used for sharing directives between FormsModule and ReactiveFormsModule\n */\nclass ɵInternalFormsSharedModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ɵInternalFormsSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: ɵInternalFormsSharedModule, declarations: [ɵNgNoValidate,\n NgSelectOption,\n ɵNgSelectMultipleOption,\n DefaultValueAccessor,\n NumberValueAccessor,\n RangeValueAccessor,\n CheckboxControlValueAccessor,\n SelectControlValueAccessor,\n SelectMultipleControlValueAccessor,\n RadioControlValueAccessor,\n NgControlStatus,\n NgControlStatusGroup,\n RequiredValidator,\n MinLengthValidator,\n MaxLengthValidator,\n PatternValidator,\n CheckboxRequiredValidator,\n EmailValidator,\n MinValidator,\n MaxValidator], exports: [ɵNgNoValidate,\n NgSelectOption,\n ɵNgSelectMultipleOption,\n DefaultValueAccessor,\n NumberValueAccessor,\n RangeValueAccessor,\n CheckboxControlValueAccessor,\n SelectControlValueAccessor,\n SelectMultipleControlValueAccessor,\n RadioControlValueAccessor,\n NgControlStatus,\n NgControlStatusGroup,\n RequiredValidator,\n MinLengthValidator,\n MaxLengthValidator,\n PatternValidator,\n CheckboxRequiredValidator,\n EmailValidator,\n MinValidator,\n MaxValidator] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ɵInternalFormsSharedModule });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ɵInternalFormsSharedModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: SHARED_FORM_DIRECTIVES,\n exports: SHARED_FORM_DIRECTIVES,\n }]\n }] });\n\n/**\n * Tracks the value and validity state of an array of `FormControl`,\n * `FormGroup` or `FormArray` instances.\n *\n * A `FormArray` aggregates the values of each child `FormControl` into an array.\n * It calculates its status by reducing the status values of its children. For example, if one of\n * the controls in a `FormArray` is invalid, the entire array becomes invalid.\n *\n * `FormArray` accepts one generic argument, which is the type of the controls inside.\n * If you need a heterogenous array, use {@link UntypedFormArray}.\n *\n * `FormArray` is one of the four fundamental building blocks used to define forms in Angular,\n * along with `FormControl`, `FormGroup`, and `FormRecord`.\n *\n * @usageNotes\n *\n * ### Create an array of form controls\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl('Nancy', Validators.minLength(2)),\n * new FormControl('Drew'),\n * ]);\n *\n * console.log(arr.value); // ['Nancy', 'Drew']\n * console.log(arr.status); // 'VALID'\n * ```\n *\n * ### Create a form array with array-level validators\n *\n * You include array-level validators and async validators. These come in handy\n * when you want to perform validation that considers the value of more than one child\n * control.\n *\n * The two types of validators are passed in separately as the second and third arg\n * respectively, or together as part of an options object.\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl('Nancy'),\n * new FormControl('Drew')\n * ], {validators: myValidator, asyncValidators: myAsyncValidator});\n * ```\n *\n * ### Set the updateOn property for all controls in a form array\n *\n * The options object is used to set a default value for each child\n * control's `updateOn` property. If you set `updateOn` to `'blur'` at the\n * array level, all child controls default to 'blur', unless the child\n * has explicitly specified a different `updateOn` value.\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl()\n * ], {updateOn: 'blur'});\n * ```\n *\n * ### Adding or removing controls from a form array\n *\n * To change the controls in the array, use the `push`, `insert`, `removeAt` or `clear` methods\n * in `FormArray` itself. These methods ensure the controls are properly tracked in the\n * form's hierarchy. Do not modify the array of `AbstractControl`s used to instantiate\n * the `FormArray` directly, as that result in strange and unexpected behavior such\n * as broken change detection.\n *\n * @publicApi\n */\nclass FormArray extends AbstractControl {\n /**\n * Creates a new `FormArray` instance.\n *\n * @param controls An array of child controls. Each child control is given an index\n * where it is registered.\n *\n * @param validatorOrOpts A synchronous validator function, or an array of\n * such functions, or an `AbstractControlOptions` object that contains validation functions\n * and a validation trigger.\n *\n * @param asyncValidator A single async validator or array of async validator functions\n *\n */\n constructor(controls, validatorOrOpts, asyncValidator) {\n super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n this.controls = controls;\n this._initObservables();\n this._setUpdateStrategy(validatorOrOpts);\n this._setUpControls();\n this.updateValueAndValidity({\n onlySelf: true,\n // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n // `VALID` or `INVALID`.\n // The status should be broadcasted via the `statusChanges` observable, so we set `emitEvent`\n // to `true` to allow that during the control creation process.\n emitEvent: !!this.asyncValidator,\n });\n }\n controls;\n /**\n * Get the `AbstractControl` at the given `index` in the array.\n *\n * @param index Index in the array to retrieve the control. If `index` is negative, it will wrap\n * around from the back, and if index is greatly negative (less than `-length`), the result is\n * undefined. This behavior is the same as `Array.at(index)`.\n */\n at(index) {\n return this.controls[this._adjustIndex(index)];\n }\n /**\n * Insert a new `AbstractControl` at the end of the array.\n *\n * @param control Form control to be inserted\n * @param options Specifies whether this FormArray instance should emit events after a new\n * control is added.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * inserted. When false, no events are emitted.\n */\n push(control, options = {}) {\n this.controls.push(control);\n this._registerControl(control);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n /**\n * Insert a new `AbstractControl` at the given `index` in the array.\n *\n * @param index Index in the array to insert the control. If `index` is negative, wraps around\n * from the back. If `index` is greatly negative (less than `-length`), prepends to the array.\n * This behavior is the same as `Array.splice(index, 0, control)`.\n * @param control Form control to be inserted\n * @param options Specifies whether this FormArray instance should emit events after a new\n * control is inserted.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * inserted. When false, no events are emitted.\n */\n insert(index, control, options = {}) {\n this.controls.splice(index, 0, control);\n this._registerControl(control);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n }\n /**\n * Remove the control at the given `index` in the array.\n *\n * @param index Index in the array to remove the control. If `index` is negative, wraps around\n * from the back. If `index` is greatly negative (less than `-length`), removes the first\n * element. This behavior is the same as `Array.splice(index, 1)`.\n * @param options Specifies whether this FormArray instance should emit events after a\n * control is removed.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * removed. When false, no events are emitted.\n */\n removeAt(index, options = {}) {\n // Adjust the index, then clamp it at no less than 0 to prevent undesired underflows.\n let adjustedIndex = this._adjustIndex(index);\n if (adjustedIndex < 0)\n adjustedIndex = 0;\n if (this.controls[adjustedIndex])\n this.controls[adjustedIndex]._registerOnCollectionChange(() => { });\n this.controls.splice(adjustedIndex, 1);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n }\n /**\n * Replace an existing control.\n *\n * @param index Index in the array to replace the control. If `index` is negative, wraps around\n * from the back. If `index` is greatly negative (less than `-length`), replaces the first\n * element. This behavior is the same as `Array.splice(index, 1, control)`.\n * @param control The `AbstractControl` control to replace the existing control\n * @param options Specifies whether this FormArray instance should emit events after an\n * existing control is replaced with a new one.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * replaced with a new one. When false, no events are emitted.\n */\n setControl(index, control, options = {}) {\n // Adjust the index, then clamp it at no less than 0 to prevent undesired underflows.\n let adjustedIndex = this._adjustIndex(index);\n if (adjustedIndex < 0)\n adjustedIndex = 0;\n if (this.controls[adjustedIndex])\n this.controls[adjustedIndex]._registerOnCollectionChange(() => { });\n this.controls.splice(adjustedIndex, 1);\n if (control) {\n this.controls.splice(adjustedIndex, 0, control);\n this._registerControl(control);\n }\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n /**\n * Length of the control array.\n */\n get length() {\n return this.controls.length;\n }\n /**\n * Sets the value of the `FormArray`. It accepts an array that matches\n * the structure of the control.\n *\n * This method performs strict checks, and throws an error if you try\n * to set the value of a control that doesn't exist or if you exclude the\n * value of a control.\n *\n * @usageNotes\n * ### Set the values for the controls in the form array\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n * console.log(arr.value); // [null, null]\n *\n * arr.setValue(['Nancy', 'Drew']);\n * console.log(arr.value); // ['Nancy', 'Drew']\n * ```\n *\n * @param value Array of values for the controls\n * @param options Configure options that determine how the control propagates changes and\n * emits events after the value changes\n *\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n * is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control value is updated.\n * When false, no events are emitted.\n * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n * updateValueAndValidity} method.\n */\n setValue(value, options = {}) {\n assertAllValuesPresent(this, false, value);\n value.forEach((newValue, index) => {\n assertControlPresent(this, false, index);\n this.at(index).setValue(newValue, { onlySelf: true, emitEvent: options.emitEvent });\n });\n this.updateValueAndValidity(options);\n }\n /**\n * Patches the value of the `FormArray`. It accepts an array that matches the\n * structure of the control, and does its best to match the values to the correct\n * controls in the group.\n *\n * It accepts both super-sets and sub-sets of the array without throwing an error.\n *\n * @usageNotes\n * ### Patch the values for controls in a form array\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n * console.log(arr.value); // [null, null]\n *\n * arr.patchValue(['Nancy']);\n * console.log(arr.value); // ['Nancy', null]\n * ```\n *\n * @param value Array of latest values for the controls\n * @param options Configure options that determine how the control propagates changes and\n * emits events after the value changes\n *\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n * is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control\n * value is updated. When false, no events are emitted. The configuration options are passed to\n * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.\n */\n patchValue(value, options = {}) {\n // Even though the `value` argument type doesn't allow `null` and `undefined` values, the\n // `patchValue` can be called recursively and inner data structures might have these values,\n // so we just ignore such cases when a field containing FormArray instance receives `null` or\n // `undefined` as a value.\n if (value == null /* both `null` and `undefined` */)\n return;\n value.forEach((newValue, index) => {\n if (this.at(index)) {\n this.at(index).patchValue(newValue, { onlySelf: true, emitEvent: options.emitEvent });\n }\n });\n this.updateValueAndValidity(options);\n }\n /**\n * Resets the `FormArray` and all descendants are marked `pristine` and `untouched`, and the\n * value of all descendants to null or null maps.\n *\n * You reset to a specific form state by passing in an array of states\n * that matches the structure of the control. The state is a standalone value\n * or a form state object with both a value and a disabled status.\n *\n * @usageNotes\n * ### Reset the values in a form array\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n * arr.reset(['name', 'last name']);\n *\n * console.log(arr.value); // ['name', 'last name']\n * ```\n *\n * ### Reset the values in a form array and the disabled status for the first control\n *\n * ```ts\n * arr.reset([\n * {value: 'name', disabled: true},\n * 'last'\n * ]);\n *\n * console.log(arr.value); // ['last']\n * console.log(arr.at(0).status); // 'DISABLED'\n * ```\n *\n * @param value Array of values for the controls\n * @param options Configure options that determine how the control propagates changes and\n * emits events after the value changes\n *\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n * is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control is reset.\n * When false, no events are emitted.\n * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n * updateValueAndValidity} method.\n */\n reset(value = [], options = {}) {\n this._forEachChild((control, index) => {\n control.reset(value[index], { onlySelf: true, emitEvent: options.emitEvent });\n });\n this._updatePristine(options, this);\n this._updateTouched(options, this);\n this.updateValueAndValidity(options);\n }\n /**\n * The aggregate value of the array, including any disabled controls.\n *\n * Reports all values regardless of disabled status.\n */\n getRawValue() {\n return this.controls.map((control) => control.getRawValue());\n }\n /**\n * Remove all controls in the `FormArray`.\n *\n * @param options Specifies whether this FormArray instance should emit events after all\n * controls are removed.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when all controls\n * in this FormArray instance are removed. When false, no events are emitted.\n *\n * @usageNotes\n * ### Remove all elements from a FormArray\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n * console.log(arr.length); // 2\n *\n * arr.clear();\n * console.log(arr.length); // 0\n * ```\n *\n * It's a simpler and more efficient alternative to removing all elements one by one:\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n *\n * while (arr.length) {\n * arr.removeAt(0);\n * }\n * ```\n */\n clear(options = {}) {\n if (this.controls.length < 1)\n return;\n this._forEachChild((control) => control._registerOnCollectionChange(() => { }));\n this.controls.splice(0);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n }\n /**\n * Adjusts a negative index by summing it with the length of the array. For very negative\n * indices, the result may remain negative.\n * @internal\n */\n _adjustIndex(index) {\n return index < 0 ? index + this.length : index;\n }\n /** @internal */\n _syncPendingControls() {\n let subtreeUpdated = this.controls.reduce((updated, child) => {\n return child._syncPendingControls() ? true : updated;\n }, false);\n if (subtreeUpdated)\n this.updateValueAndValidity({ onlySelf: true });\n return subtreeUpdated;\n }\n /** @internal */\n _forEachChild(cb) {\n this.controls.forEach((control, index) => {\n cb(control, index);\n });\n }\n /** @internal */\n _updateValue() {\n this.value = this.controls\n .filter((control) => control.enabled || this.disabled)\n .map((control) => control.value);\n }\n /** @internal */\n _anyControls(condition) {\n return this.controls.some((control) => control.enabled && condition(control));\n }\n /** @internal */\n _setUpControls() {\n this._forEachChild((control) => this._registerControl(control));\n }\n /** @internal */\n _allControlsDisabled() {\n for (const control of this.controls) {\n if (control.enabled)\n return false;\n }\n return this.controls.length > 0 || this.disabled;\n }\n _registerControl(control) {\n control.setParent(this);\n control._registerOnCollectionChange(this._onCollectionChange);\n }\n /** @internal */\n _find(name) {\n return this.at(name) ?? null;\n }\n}\nconst UntypedFormArray = FormArray;\n/**\n * @description\n * Asserts that the given control is an instance of `FormArray`\n *\n * @publicApi\n */\nconst isFormArray = (control) => control instanceof FormArray;\n\nfunction isAbstractControlOptions(options) {\n return (!!options &&\n (options.asyncValidators !== undefined ||\n options.validators !== undefined ||\n options.updateOn !== undefined));\n}\n/**\n * @description\n * Creates an `AbstractControl` from a user-specified configuration.\n *\n * The `FormBuilder` provides syntactic sugar that shortens creating instances of a\n * `FormControl`, `FormGroup`, or `FormArray`. It reduces the amount of boilerplate needed to\n * build complex forms.\n *\n * @see [Reactive Forms Guide](guide/forms/reactive-forms)\n *\n * @publicApi\n */\nclass FormBuilder {\n useNonNullable = false;\n /**\n * @description\n * Returns a FormBuilder in which automatically constructed `FormControl` elements\n * have `{nonNullable: true}` and are non-nullable.\n *\n * **Constructing non-nullable controls**\n *\n * When constructing a control, it will be non-nullable, and will reset to its initial value.\n *\n * ```ts\n * let nnfb = new FormBuilder().nonNullable;\n * let name = nnfb.control('Alex'); // FormControl<string>\n * name.reset();\n * console.log(name); // 'Alex'\n * ```\n *\n * **Constructing non-nullable groups or arrays**\n *\n * When constructing a group or array, all automatically created inner controls will be\n * non-nullable, and will reset to their initial values.\n *\n * ```ts\n * let nnfb = new FormBuilder().nonNullable;\n * let name = nnfb.group({who: 'Alex'}); // FormGroup<{who: FormControl<string>}>\n * name.reset();\n * console.log(name); // {who: 'Alex'}\n * ```\n * **Constructing *nullable* fields on groups or arrays**\n *\n * It is still possible to have a nullable field. In particular, any `FormControl` which is\n * *already* constructed will not be altered. For example:\n *\n * ```ts\n * let nnfb = new FormBuilder().nonNullable;\n * // FormGroup<{who: FormControl<string|null>}>\n * let name = nnfb.group({who: new FormControl('Alex')});\n * name.reset(); console.log(name); // {who: null}\n * ```\n *\n * Because the inner control is constructed explicitly by the caller, the builder has\n * no control over how it is created, and cannot exclude the `null`.\n */\n get nonNullable() {\n const nnfb = new FormBuilder();\n nnfb.useNonNullable = true;\n return nnfb;\n }\n group(controls, options = null) {\n const reducedControls = this._reduceControls(controls);\n let newOptions = {};\n if (isAbstractControlOptions(options)) {\n // `options` are `AbstractControlOptions`\n newOptions = options;\n }\n else if (options !== null) {\n // `options` are legacy form group options\n newOptions.validators = options.validator;\n newOptions.asyncValidators = options.asyncValidator;\n }\n return new FormGroup(reducedControls, newOptions);\n }\n /**\n * @description\n * Constructs a new `FormRecord` instance. Accepts a single generic argument, which is an object\n * containing all the keys and corresponding inner control types.\n *\n * @param controls A collection of child controls. The key for each child is the name\n * under which it is registered.\n *\n * @param options Configuration options object for the `FormRecord`. The object should have the\n * `AbstractControlOptions` type and might contain the following fields:\n * * `validators`: A synchronous validator function, or an array of validator functions.\n * * `asyncValidators`: A single async validator or array of async validator functions.\n * * `updateOn`: The event upon which the control should be updated (options: 'change' | 'blur'\n * | submit').\n */\n record(controls, options = null) {\n const reducedControls = this._reduceControls(controls);\n // Cast to `any` because the inferred types are not as specific as Element.\n return new FormRecord(reducedControls, options);\n }\n /**\n * @description\n * Constructs a new `FormControl` with the given state, validators and options. Sets\n * `{nonNullable: true}` in the options to get a non-nullable control. Otherwise, the\n * control will be nullable. Accepts a single generic argument, which is the type of the\n * control's value.\n *\n * @param formState Initializes the control with an initial state value, or\n * with an object that contains both a value and a disabled status.\n *\n * @param validatorOrOpts A synchronous validator function, or an array of\n * such functions, or a `FormControlOptions` object that contains\n * validation functions and a validation trigger.\n *\n * @param asyncValidator A single async validator or array of async validator\n * functions.\n *\n * @usageNotes\n *\n * ### Initialize a control as disabled\n *\n * The following example returns a control with an initial value in a disabled state.\n *\n * {@example forms/ts/formBuilder/form_builder_example.ts region='disabled-control'}\n */\n control(formState, validatorOrOpts, asyncValidator) {\n let newOptions = {};\n if (!this.useNonNullable) {\n return new FormControl(formState, validatorOrOpts, asyncValidator);\n }\n if (isAbstractControlOptions(validatorOrOpts)) {\n // If the second argument is options, then they are copied.\n newOptions = validatorOrOpts;\n }\n else {\n // If the other arguments are validators, they are copied into an options object.\n newOptions.validators = validatorOrOpts;\n newOptions.asyncValidators = asyncValidator;\n }\n return new FormControl(formState, { ...newOptions, nonNullable: true });\n }\n /**\n * Constructs a new `FormArray` from the given array of configurations,\n * validators and options. Accepts a single generic argument, which is the type of each control\n * inside the array.\n *\n * @param controls An array of child controls or control configs. Each child control is given an\n * index when it is registered.\n *\n * @param validatorOrOpts A synchronous validator function, or an array of such functions, or an\n * `AbstractControlOptions` object that contains\n * validation functions and a validation trigger.\n *\n * @param asyncValidator A single async validator or array of async validator functions.\n */\n array(controls, validatorOrOpts, asyncValidator) {\n const createdControls = controls.map((c) => this._createControl(c));\n // Cast to `any` because the inferred types are not as specific as Element.\n return new FormArray(createdControls, validatorOrOpts, asyncValidator);\n }\n /** @internal */\n _reduceControls(controls) {\n const createdControls = {};\n Object.keys(controls).forEach((controlName) => {\n createdControls[controlName] = this._createControl(controls[controlName]);\n });\n return createdControls;\n }\n /** @internal */\n _createControl(controls) {\n if (controls instanceof FormControl) {\n return controls;\n }\n else if (controls instanceof AbstractControl) {\n // A control; just return it\n return controls;\n }\n else if (Array.isArray(controls)) {\n // ControlConfig Tuple\n const value = controls[0];\n const validator = controls.length > 1 ? controls[1] : null;\n const asyncValidator = controls.length > 2 ? controls[2] : null;\n return this.control(value, validator, asyncValidator);\n }\n else {\n // T or FormControlState<T>\n return this.control(controls);\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormBuilder, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormBuilder, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n/**\n * @description\n * `NonNullableFormBuilder` is similar to {@link FormBuilder}, but automatically constructed\n * {@link FormControl} elements have `{nonNullable: true}` and are non-nullable.\n *\n * @publicApi\n */\nclass NonNullableFormBuilder {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NonNullableFormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NonNullableFormBuilder, providedIn: 'root', useFactory: () => inject(FormBuilder).nonNullable });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NonNullableFormBuilder, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root',\n useFactory: () => inject(FormBuilder).nonNullable,\n }]\n }] });\n/**\n * UntypedFormBuilder is the same as `FormBuilder`, but it provides untyped controls.\n */\nclass UntypedFormBuilder extends FormBuilder {\n group(controlsConfig, options = null) {\n return super.group(controlsConfig, options);\n }\n /**\n * Like `FormBuilder#control`, except the resulting control is untyped.\n */\n control(formState, validatorOrOpts, asyncValidator) {\n return super.control(formState, validatorOrOpts, asyncValidator);\n }\n /**\n * Like `FormBuilder#array`, except the resulting array is untyped.\n */\n array(controlsConfig, validatorOrOpts, asyncValidator) {\n return super.array(controlsConfig, validatorOrOpts, asyncValidator);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: UntypedFormBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: UntypedFormBuilder, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: UntypedFormBuilder, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the forms package.\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('19.1.4');\n\n/**\n * Exports the required providers and directives for template-driven forms,\n * making them available for import by NgModules that import this module.\n *\n * @see [Forms Overview](guide/forms)\n * @see [Template-driven Forms Guide](guide/forms)\n *\n * @publicApi\n */\nclass FormsModule {\n /**\n * @description\n * Provides options for configuring the forms module.\n *\n * @param opts An object of configuration options\n * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more\n * correct, or to only call it `whenDisabled`, which is the legacy behavior.\n */\n static withConfig(opts) {\n return {\n ngModule: FormsModule,\n providers: [\n {\n provide: CALL_SET_DISABLED_STATE,\n useValue: opts.callSetDisabledState ?? setDisabledStateDefault,\n },\n ],\n };\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: FormsModule, declarations: [NgModel, NgModelGroup, NgForm], exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormsModule, imports: [ɵInternalFormsSharedModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: FormsModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: TEMPLATE_DRIVEN_DIRECTIVES,\n exports: [ɵInternalFormsSharedModule, TEMPLATE_DRIVEN_DIRECTIVES],\n }]\n }] });\n/**\n * Exports the required infrastructure and directives for reactive forms,\n * making them available for import by NgModules that import this module.\n *\n * @see [Forms Overview](guide/forms)\n * @see [Reactive Forms Guide](guide/forms/reactive-forms)\n *\n * @publicApi\n */\nclass ReactiveFormsModule {\n /**\n * @description\n * Provides options for configuring the reactive forms module.\n *\n * @param opts An object of configuration options\n * * `warnOnNgModelWithFormControl` Configures when to emit a warning when an `ngModel`\n * binding is used with reactive form directives.\n * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more\n * correct, or to only call it `whenDisabled`, which is the legacy behavior.\n */\n static withConfig(opts) {\n return {\n ngModule: ReactiveFormsModule,\n providers: [\n {\n provide: NG_MODEL_WITH_FORM_CONTROL_WARNING,\n useValue: opts.warnOnNgModelWithFormControl ?? 'always',\n },\n {\n provide: CALL_SET_DISABLED_STATE,\n useValue: opts.callSetDisabledState ?? setDisabledStateDefault,\n },\n ],\n };\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ReactiveFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: ReactiveFormsModule, declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName], exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ReactiveFormsModule, imports: [ɵInternalFormsSharedModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ReactiveFormsModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [REACTIVE_DRIVEN_DIRECTIVES],\n exports: [ɵInternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES],\n }]\n }] });\n\n/**\n * @module\n * @description\n * This module is used for handling user input, by defining and building a `FormGroup` that\n * consists of `FormControl` objects, and mapping them onto the DOM. `FormControl`\n * objects can then be used to read information from the form DOM elements.\n *\n * Forms providers are not included in default providers; you must import these providers\n * explicitly.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AbstractControl, AbstractControlDirective, AbstractFormGroupDirective, COMPOSITION_BUFFER_MODE, CheckboxControlValueAccessor, CheckboxRequiredValidator, ControlContainer, ControlEvent, DefaultValueAccessor, EmailValidator, FormArray, FormArrayName, FormBuilder, FormControl, FormControlDirective, FormControlName, FormGroup, FormGroupDirective, FormGroupName, FormRecord, FormResetEvent, FormSubmittedEvent, FormsModule, MaxLengthValidator, MaxValidator, MinLengthValidator, MinValidator, NG_ASYNC_VALIDATORS, NG_VALIDATORS, NG_VALUE_ACCESSOR, NgControl, NgControlStatus, NgControlStatusGroup, NgForm, NgModel, NgModelGroup, NgSelectOption, NonNullableFormBuilder, NumberValueAccessor, PatternValidator, PristineChangeEvent, RadioControlValueAccessor, RangeValueAccessor, ReactiveFormsModule, RequiredValidator, SelectControlValueAccessor, SelectMultipleControlValueAccessor, StatusChangeEvent, TouchedChangeEvent, UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, VERSION, Validators, ValueChangeEvent, isFormArray, isFormControl, isFormGroup, isFormRecord, ɵInternalFormsSharedModule, ɵNgNoValidate, ɵNgSelectMultipleOption };\n","/**\n * @license Angular v19.1.4\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, isPlatformServer, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';\nexport { ɵgetDOM } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { ɵglobal, ɵRuntimeError, Injectable, InjectionToken, Inject, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, ɵTracingService, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, inject, ApplicationModule, NgModule, ApplicationRef, ɵConsole, Injector, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, ɵwithI18nSupport, ɵwithEventReplay, ɵwithIncrementalHydration, ENVIRONMENT_INITIALIZER, ɵZONELESS_ENABLED, ɵformatRuntimeError, makeEnvironmentProviders, ɵwithDomHydration, Version } from '@angular/core';\nimport { ɵwithHttpTransferCache } from '@angular/common/http';\n\n/**\n * Provides DOM operations in any browser environment.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\nclass GenericBrowserDomAdapter extends ɵDomAdapter {\n supportsDOMEvents = true;\n}\n\n/**\n * A `DomAdapter` powered by full browser DOM APIs.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\nclass BrowserDomAdapter extends GenericBrowserDomAdapter {\n static makeCurrent() {\n ɵsetRootDomAdapter(new BrowserDomAdapter());\n }\n onAndCancel(el, evt, listener, options) {\n el.addEventListener(evt, listener, options);\n return () => {\n el.removeEventListener(evt, listener, options);\n };\n }\n dispatchEvent(el, evt) {\n el.dispatchEvent(evt);\n }\n remove(node) {\n node.remove();\n }\n createElement(tagName, doc) {\n doc = doc || this.getDefaultDocument();\n return doc.createElement(tagName);\n }\n createHtmlDocument() {\n return document.implementation.createHTMLDocument('fakeTitle');\n }\n getDefaultDocument() {\n return document;\n }\n isElementNode(node) {\n return node.nodeType === Node.ELEMENT_NODE;\n }\n isShadowRoot(node) {\n return node instanceof DocumentFragment;\n }\n /** @deprecated No longer being used in Ivy code. To be removed in version 14. */\n getGlobalEventTarget(doc, target) {\n if (target === 'window') {\n return window;\n }\n if (target === 'document') {\n return doc;\n }\n if (target === 'body') {\n return doc.body;\n }\n return null;\n }\n getBaseHref(doc) {\n const href = getBaseElementHref();\n return href == null ? null : relativePath(href);\n }\n resetBaseElement() {\n baseElement = null;\n }\n getUserAgent() {\n return window.navigator.userAgent;\n }\n getCookie(name) {\n return ɵparseCookieValue(document.cookie, name);\n }\n}\nlet baseElement = null;\nfunction getBaseElementHref() {\n baseElement = baseElement || document.querySelector('base');\n return baseElement ? baseElement.getAttribute('href') : null;\n}\nfunction relativePath(url) {\n // The base URL doesn't really matter, we just need it so relative paths have something\n // to resolve against. In the browser `HTMLBaseElement.href` is always absolute.\n return new URL(url, document.baseURI).pathname;\n}\n\nclass BrowserGetTestability {\n addToWindow(registry) {\n ɵglobal['getAngularTestability'] = (elem, findInAncestors = true) => {\n const testability = registry.findTestabilityInTree(elem, findInAncestors);\n if (testability == null) {\n throw new ɵRuntimeError(5103 /* RuntimeErrorCode.TESTABILITY_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'Could not find testability for element.');\n }\n return testability;\n };\n ɵglobal['getAllAngularTestabilities'] = () => registry.getAllTestabilities();\n ɵglobal['getAllAngularRootElements'] = () => registry.getAllRootElements();\n const whenAllStable = (callback) => {\n const testabilities = ɵglobal['getAllAngularTestabilities']();\n let count = testabilities.length;\n const decrement = function () {\n count--;\n if (count == 0) {\n callback();\n }\n };\n testabilities.forEach((testability) => {\n testability.whenStable(decrement);\n });\n };\n if (!ɵglobal['frameworkStabilizers']) {\n ɵglobal['frameworkStabilizers'] = [];\n }\n ɵglobal['frameworkStabilizers'].push(whenAllStable);\n }\n findTestabilityInTree(registry, elem, findInAncestors) {\n if (elem == null) {\n return null;\n }\n const t = registry.getTestability(elem);\n if (t != null) {\n return t;\n }\n else if (!findInAncestors) {\n return null;\n }\n if (ɵgetDOM().isShadowRoot(elem)) {\n return this.findTestabilityInTree(registry, elem.host, true);\n }\n return this.findTestabilityInTree(registry, elem.parentElement, true);\n }\n}\n\n/**\n * A factory for `HttpXhrBackend` that uses the `XMLHttpRequest` browser API.\n */\nclass BrowserXhr {\n build() {\n return new XMLHttpRequest();\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: BrowserXhr });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: BrowserXhr, decorators: [{\n type: Injectable\n }] });\n\n/**\n * The injection token for plugins of the `EventManager` service.\n *\n * @publicApi\n */\nconst EVENT_MANAGER_PLUGINS = new InjectionToken(ngDevMode ? 'EventManagerPlugins' : '');\n/**\n * An injectable service that provides event management for Angular\n * through a browser plug-in.\n *\n * @publicApi\n */\nclass EventManager {\n _zone;\n _plugins;\n _eventNameToPlugin = new Map();\n /**\n * Initializes an instance of the event-manager service.\n */\n constructor(plugins, _zone) {\n this._zone = _zone;\n plugins.forEach((plugin) => {\n plugin.manager = this;\n });\n this._plugins = plugins.slice().reverse();\n }\n /**\n * Registers a handler for a specific element and event.\n *\n * @param element The HTML element to receive event notifications.\n * @param eventName The name of the event to listen for.\n * @param handler A function to call when the notification occurs. Receives the\n * event object as an argument.\n * @param options Options that configure how the event listener is bound.\n * @returns A callback function that can be used to remove the handler.\n */\n addEventListener(element, eventName, handler, options) {\n const plugin = this._findPluginFor(eventName);\n return plugin.addEventListener(element, eventName, handler, options);\n }\n /**\n * Retrieves the compilation zone in which event listeners are registered.\n */\n getZone() {\n return this._zone;\n }\n /** @internal */\n _findPluginFor(eventName) {\n let plugin = this._eventNameToPlugin.get(eventName);\n if (plugin) {\n return plugin;\n }\n const plugins = this._plugins;\n plugin = plugins.find((plugin) => plugin.supports(eventName));\n if (!plugin) {\n throw new ɵRuntimeError(5101 /* RuntimeErrorCode.NO_PLUGIN_FOR_EVENT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `No event manager plugin found for event ${eventName}`);\n }\n this._eventNameToPlugin.set(eventName, plugin);\n return plugin;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: EventManager });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: EventManager, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [EVENT_MANAGER_PLUGINS]\n }] }, { type: i0.NgZone }] });\n/**\n * The plugin definition for the `EventManager` class\n *\n * It can be used as a base class to create custom manager plugins, i.e. you can create your own\n * class that extends the `EventManagerPlugin` one.\n *\n * @publicApi\n */\nclass EventManagerPlugin {\n _doc;\n // TODO: remove (has some usage in G3)\n constructor(_doc) {\n this._doc = _doc;\n }\n // Using non-null assertion because it's set by EventManager's constructor\n manager;\n}\n\n/** The style elements attribute name used to set value of `APP_ID` token. */\nconst APP_ID_ATTRIBUTE_NAME = 'ng-app-id';\n/**\n * Removes all provided elements from the document.\n * @param elements An array of HTML Elements.\n */\nfunction removeElements(elements) {\n for (const element of elements) {\n element.remove();\n }\n}\n/**\n * Creates a `style` element with the provided inline style content.\n * @param style A string of the inline style content.\n * @param doc A DOM Document to use to create the element.\n * @returns An HTMLStyleElement instance.\n */\nfunction createStyleElement(style, doc) {\n const styleElement = doc.createElement('style');\n styleElement.textContent = style;\n return styleElement;\n}\n/**\n * Searches a DOM document's head element for style elements with a matching application\n * identifier attribute (`ng-app-id`) to the provide identifier and adds usage records for each.\n * @param doc An HTML DOM document instance.\n * @param appId A string containing an Angular application identifer.\n * @param inline A Map object for tracking inline (defined via `styles` in component decorator) style usage.\n * @param external A Map object for tracking external (defined via `styleUrls` in component decorator) style usage.\n */\nfunction addServerStyles(doc, appId, inline, external) {\n const elements = doc.head?.querySelectorAll(`style[${APP_ID_ATTRIBUTE_NAME}=\"${appId}\"],link[${APP_ID_ATTRIBUTE_NAME}=\"${appId}\"]`);\n if (elements) {\n for (const styleElement of elements) {\n styleElement.removeAttribute(APP_ID_ATTRIBUTE_NAME);\n if (styleElement instanceof HTMLLinkElement) {\n // Only use filename from href\n // The href is build time generated with a unique value to prevent duplicates.\n external.set(styleElement.href.slice(styleElement.href.lastIndexOf('/') + 1), {\n usage: 0,\n elements: [styleElement],\n });\n }\n else if (styleElement.textContent) {\n inline.set(styleElement.textContent, { usage: 0, elements: [styleElement] });\n }\n }\n }\n}\n/**\n * Creates a `link` element for the provided external style URL.\n * @param url A string of the URL for the stylesheet.\n * @param doc A DOM Document to use to create the element.\n * @returns An HTMLLinkElement instance.\n */\nfunction createLinkElement(url, doc) {\n const linkElement = doc.createElement('link');\n linkElement.setAttribute('rel', 'stylesheet');\n linkElement.setAttribute('href', url);\n return linkElement;\n}\nclass SharedStylesHost {\n doc;\n appId;\n nonce;\n /**\n * Provides usage information for active inline style content and associated HTML <style> elements.\n * Embedded styles typically originate from the `styles` metadata of a rendered component.\n */\n inline = new Map();\n /**\n * Provides usage information for active external style URLs and the associated HTML <link> elements.\n * External styles typically originate from the `ɵɵExternalStylesFeature` of a rendered component.\n */\n external = new Map();\n /**\n * Set of host DOM nodes that will have styles attached.\n */\n hosts = new Set();\n /**\n * Whether the application code is currently executing on a server.\n */\n isServer;\n constructor(doc, appId, nonce, platformId = {}) {\n this.doc = doc;\n this.appId = appId;\n this.nonce = nonce;\n this.isServer = isPlatformServer(platformId);\n addServerStyles(doc, appId, this.inline, this.external);\n this.hosts.add(doc.head);\n }\n /**\n * Adds embedded styles to the DOM via HTML `style` elements.\n * @param styles An array of style content strings.\n */\n addStyles(styles, urls) {\n for (const value of styles) {\n this.addUsage(value, this.inline, createStyleElement);\n }\n urls?.forEach((value) => this.addUsage(value, this.external, createLinkElement));\n }\n /**\n * Removes embedded styles from the DOM that were added as HTML `style` elements.\n * @param styles An array of style content strings.\n */\n removeStyles(styles, urls) {\n for (const value of styles) {\n this.removeUsage(value, this.inline);\n }\n urls?.forEach((value) => this.removeUsage(value, this.external));\n }\n addUsage(value, usages, creator) {\n // Attempt to get any current usage of the value\n const record = usages.get(value);\n // If existing, just increment the usage count\n if (record) {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && record.usage === 0) {\n // A usage count of zero indicates a preexisting server generated style.\n // This attribute is solely used for debugging purposes of SSR style reuse.\n record.elements.forEach((element) => element.setAttribute('ng-style-reused', ''));\n }\n record.usage++;\n }\n else {\n // Otherwise, create an entry to track the elements and add element for each host\n usages.set(value, {\n usage: 1,\n elements: [...this.hosts].map((host) => this.addElement(host, creator(value, this.doc))),\n });\n }\n }\n removeUsage(value, usages) {\n // Attempt to get any current usage of the value\n const record = usages.get(value);\n // If there is a record, reduce the usage count and if no longer used,\n // remove from DOM and delete usage record.\n if (record) {\n record.usage--;\n if (record.usage <= 0) {\n removeElements(record.elements);\n usages.delete(value);\n }\n }\n }\n ngOnDestroy() {\n for (const [, { elements }] of [...this.inline, ...this.external]) {\n removeElements(elements);\n }\n this.hosts.clear();\n }\n /**\n * Adds a host node to the set of style hosts and adds all existing style usage to\n * the newly added host node.\n *\n * This is currently only used for Shadow DOM encapsulation mode.\n */\n addHost(hostNode) {\n this.hosts.add(hostNode);\n // Add existing styles to new host\n for (const [style, { elements }] of this.inline) {\n elements.push(this.addElement(hostNode, createStyleElement(style, this.doc)));\n }\n for (const [url, { elements }] of this.external) {\n elements.push(this.addElement(hostNode, createLinkElement(url, this.doc)));\n }\n }\n removeHost(hostNode) {\n this.hosts.delete(hostNode);\n }\n addElement(host, element) {\n // Add a nonce if present\n if (this.nonce) {\n element.setAttribute('nonce', this.nonce);\n }\n // Add application identifier when on the server to support client-side reuse\n if (this.isServer) {\n element.setAttribute(APP_ID_ATTRIBUTE_NAME, this.appId);\n }\n // Insert the element into the DOM with the host node as parent\n return host.appendChild(element);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: SharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }, { token: CSP_NONCE, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: SharedStylesHost });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: SharedStylesHost, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: Document, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [APP_ID]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [CSP_NONCE]\n }, {\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }] });\n\nconst NAMESPACE_URIS = {\n 'svg': 'http://www.w3.org/2000/svg',\n 'xhtml': 'http://www.w3.org/1999/xhtml',\n 'xlink': 'http://www.w3.org/1999/xlink',\n 'xml': 'http://www.w3.org/XML/1998/namespace',\n 'xmlns': 'http://www.w3.org/2000/xmlns/',\n 'math': 'http://www.w3.org/1998/Math/MathML',\n};\nconst COMPONENT_REGEX = /%COMP%/g;\nconst SOURCEMAP_URL_REGEXP = /\\/\\*#\\s*sourceMappingURL=(.+?)\\s*\\*\\//;\nconst PROTOCOL_REGEXP = /^https?:/;\nconst COMPONENT_VARIABLE = '%COMP%';\nconst HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;\nconst CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;\n/**\n * The default value for the `REMOVE_STYLES_ON_COMPONENT_DESTROY` DI token.\n */\nconst REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT = true;\n/**\n * A DI token that indicates whether styles\n * of destroyed components should be removed from DOM.\n *\n * By default, the value is set to `true`.\n * @publicApi\n */\nconst REMOVE_STYLES_ON_COMPONENT_DESTROY = new InjectionToken(ngDevMode ? 'RemoveStylesOnCompDestroy' : '', {\n providedIn: 'root',\n factory: () => REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT,\n});\nfunction shimContentAttribute(componentShortId) {\n return CONTENT_ATTR.replace(COMPONENT_REGEX, componentShortId);\n}\nfunction shimHostAttribute(componentShortId) {\n return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId);\n}\nfunction shimStylesContent(compId, styles) {\n return styles.map((s) => s.replace(COMPONENT_REGEX, compId));\n}\n/**\n * Prepends a baseHref to the `sourceMappingURL` within the provided CSS content.\n * If the `sourceMappingURL` contains an inline (encoded) map, the function skips processing.\n *\n * @note For inline stylesheets, the `sourceMappingURL` is relative to the page's origin\n * and not the provided baseHref. This function is needed as when accessing the page with a URL\n * containing two or more segments.\n * For example, if the baseHref is set to `/`, and you visit a URL like `http://localhost/foo/bar`,\n * the map would be requested from `http://localhost/foo/bar/comp.css.map` instead of what you'd expect,\n * which is `http://localhost/comp.css.map`. This behavior is corrected by modifying the `sourceMappingURL`\n * to ensure external source maps are loaded relative to the baseHref.\n *\n\n * @param baseHref - The base URL to prepend to the `sourceMappingURL`.\n * @param styles - An array of CSS content strings, each potentially containing a `sourceMappingURL`.\n * @returns The updated array of CSS content strings with modified `sourceMappingURL` values,\n * or the original content if no modification is needed.\n */\nfunction addBaseHrefToCssSourceMap(baseHref, styles) {\n if (!baseHref) {\n return styles;\n }\n const absoluteBaseHrefUrl = new URL(baseHref, 'http://localhost');\n return styles.map((cssContent) => {\n if (!cssContent.includes('sourceMappingURL=')) {\n return cssContent;\n }\n return cssContent.replace(SOURCEMAP_URL_REGEXP, (_, sourceMapUrl) => {\n if (sourceMapUrl[0] === '/' ||\n sourceMapUrl.startsWith('data:') ||\n PROTOCOL_REGEXP.test(sourceMapUrl)) {\n return `/*# sourceMappingURL=${sourceMapUrl} */`;\n }\n const { pathname: resolvedSourceMapUrl } = new URL(sourceMapUrl, absoluteBaseHrefUrl);\n return `/*# sourceMappingURL=${resolvedSourceMapUrl} */`;\n });\n });\n}\nclass DomRendererFactory2 {\n eventManager;\n sharedStylesHost;\n appId;\n removeStylesOnCompDestroy;\n doc;\n platformId;\n ngZone;\n nonce;\n tracingService;\n rendererByCompId = new Map();\n defaultRenderer;\n platformIsServer;\n constructor(eventManager, sharedStylesHost, appId, removeStylesOnCompDestroy, doc, platformId, ngZone, nonce = null, tracingService = null) {\n this.eventManager = eventManager;\n this.sharedStylesHost = sharedStylesHost;\n this.appId = appId;\n this.removeStylesOnCompDestroy = removeStylesOnCompDestroy;\n this.doc = doc;\n this.platformId = platformId;\n this.ngZone = ngZone;\n this.nonce = nonce;\n this.tracingService = tracingService;\n this.platformIsServer = isPlatformServer(platformId);\n this.defaultRenderer = new DefaultDomRenderer2(eventManager, doc, ngZone, this.platformIsServer, this.tracingService);\n }\n createRenderer(element, type) {\n if (!element || !type) {\n return this.defaultRenderer;\n }\n if (this.platformIsServer && type.encapsulation === ViewEncapsulation.ShadowDom) {\n // Domino does not support shadow DOM.\n type = { ...type, encapsulation: ViewEncapsulation.Emulated };\n }\n const renderer = this.getOrCreateRenderer(element, type);\n // Renderers have different logic due to different encapsulation behaviours.\n // Ex: for emulated, an attribute is added to the element.\n if (renderer instanceof EmulatedEncapsulationDomRenderer2) {\n renderer.applyToHost(element);\n }\n else if (renderer instanceof NoneEncapsulationDomRenderer) {\n renderer.applyStyles();\n }\n return renderer;\n }\n getOrCreateRenderer(element, type) {\n const rendererByCompId = this.rendererByCompId;\n let renderer = rendererByCompId.get(type.id);\n if (!renderer) {\n const doc = this.doc;\n const ngZone = this.ngZone;\n const eventManager = this.eventManager;\n const sharedStylesHost = this.sharedStylesHost;\n const removeStylesOnCompDestroy = this.removeStylesOnCompDestroy;\n const platformIsServer = this.platformIsServer;\n const tracingService = this.tracingService;\n switch (type.encapsulation) {\n case ViewEncapsulation.Emulated:\n renderer = new EmulatedEncapsulationDomRenderer2(eventManager, sharedStylesHost, type, this.appId, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, tracingService);\n break;\n case ViewEncapsulation.ShadowDom:\n return new ShadowDomRenderer(eventManager, sharedStylesHost, element, type, doc, ngZone, this.nonce, platformIsServer, tracingService);\n default:\n renderer = new NoneEncapsulationDomRenderer(eventManager, sharedStylesHost, type, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, tracingService);\n break;\n }\n rendererByCompId.set(type.id, renderer);\n }\n return renderer;\n }\n ngOnDestroy() {\n this.rendererByCompId.clear();\n }\n /**\n * Used during HMR to clear any cached data about a component.\n * @param componentId ID of the component that is being replaced.\n */\n componentReplaced(componentId) {\n this.rendererByCompId.delete(componentId);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: SharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }, { token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.NgZone }, { token: CSP_NONCE }, { token: ɵTracingService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DomRendererFactory2 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DomRendererFactory2, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: EventManager }, { type: SharedStylesHost }, { type: undefined, decorators: [{\n type: Inject,\n args: [APP_ID]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [REMOVE_STYLES_ON_COMPONENT_DESTROY]\n }] }, { type: Document, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: Object, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Inject,\n args: [CSP_NONCE]\n }] }, { type: i0.ɵTracingService, decorators: [{\n type: Inject,\n args: [ɵTracingService]\n }, {\n type: Optional\n }] }] });\nclass DefaultDomRenderer2 {\n eventManager;\n doc;\n ngZone;\n platformIsServer;\n tracingService;\n data = Object.create(null);\n /**\n * By default this renderer throws when encountering synthetic properties\n * This can be disabled for example by the AsyncAnimationRendererFactory\n */\n throwOnSyntheticProps = true;\n constructor(eventManager, doc, ngZone, platformIsServer, tracingService) {\n this.eventManager = eventManager;\n this.doc = doc;\n this.ngZone = ngZone;\n this.platformIsServer = platformIsServer;\n this.tracingService = tracingService;\n }\n destroy() { }\n destroyNode = null;\n createElement(name, namespace) {\n if (namespace) {\n // TODO: `|| namespace` was added in\n // https://github.com/angular/angular/commit/2b9cc8503d48173492c29f5a271b61126104fbdb to\n // support how Ivy passed around the namespace URI rather than short name at the time. It did\n // not, however extend the support to other parts of the system (setAttribute, setAttribute,\n // and the ServerRenderer). We should decide what exactly the semantics for dealing with\n // namespaces should be and make it consistent.\n // Related issues:\n // https://github.com/angular/angular/issues/44028\n // https://github.com/angular/angular/issues/44883\n return this.doc.createElementNS(NAMESPACE_URIS[namespace] || namespace, name);\n }\n return this.doc.createElement(name);\n }\n createComment(value) {\n return this.doc.createComment(value);\n }\n createText(value) {\n return this.doc.createTextNode(value);\n }\n appendChild(parent, newChild) {\n const targetParent = isTemplateNode(parent) ? parent.content : parent;\n targetParent.appendChild(newChild);\n }\n insertBefore(parent, newChild, refChild) {\n if (parent) {\n const targetParent = isTemplateNode(parent) ? parent.content : parent;\n targetParent.insertBefore(newChild, refChild);\n }\n }\n removeChild(_parent, oldChild) {\n oldChild.remove();\n }\n selectRootElement(selectorOrNode, preserveContent) {\n let el = typeof selectorOrNode === 'string' ? this.doc.querySelector(selectorOrNode) : selectorOrNode;\n if (!el) {\n throw new ɵRuntimeError(-5104 /* RuntimeErrorCode.ROOT_NODE_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `The selector \"${selectorOrNode}\" did not match any elements`);\n }\n if (!preserveContent) {\n el.textContent = '';\n }\n return el;\n }\n parentNode(node) {\n return node.parentNode;\n }\n nextSibling(node) {\n return node.nextSibling;\n }\n setAttribute(el, name, value, namespace) {\n if (namespace) {\n name = namespace + ':' + name;\n const namespaceUri = NAMESPACE_URIS[namespace];\n if (namespaceUri) {\n el.setAttributeNS(namespaceUri, name, value);\n }\n else {\n el.setAttribute(name, value);\n }\n }\n else {\n el.setAttribute(name, value);\n }\n }\n removeAttribute(el, name, namespace) {\n if (namespace) {\n const namespaceUri = NAMESPACE_URIS[namespace];\n if (namespaceUri) {\n el.removeAttributeNS(namespaceUri, name);\n }\n else {\n el.removeAttribute(`${namespace}:${name}`);\n }\n }\n else {\n el.removeAttribute(name);\n }\n }\n addClass(el, name) {\n el.classList.add(name);\n }\n removeClass(el, name) {\n el.classList.remove(name);\n }\n setStyle(el, style, value, flags) {\n if (flags & (RendererStyleFlags2.DashCase | RendererStyleFlags2.Important)) {\n el.style.setProperty(style, value, flags & RendererStyleFlags2.Important ? 'important' : '');\n }\n else {\n el.style[style] = value;\n }\n }\n removeStyle(el, style, flags) {\n if (flags & RendererStyleFlags2.DashCase) {\n // removeProperty has no effect when used on camelCased properties.\n el.style.removeProperty(style);\n }\n else {\n el.style[style] = '';\n }\n }\n setProperty(el, name, value) {\n if (el == null) {\n return;\n }\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n this.throwOnSyntheticProps &&\n checkNoSyntheticProp(name, 'property');\n el[name] = value;\n }\n setValue(node, value) {\n node.nodeValue = value;\n }\n listen(target, event, callback, options) {\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n this.throwOnSyntheticProps &&\n checkNoSyntheticProp(event, 'listener');\n if (typeof target === 'string') {\n target = ɵgetDOM().getGlobalEventTarget(this.doc, target);\n if (!target) {\n throw new Error(`Unsupported event target ${target} for event ${event}`);\n }\n }\n let wrappedCallback = this.decoratePreventDefault(callback);\n if (this.tracingService !== null && this.tracingService.wrapEventListener) {\n wrappedCallback = this.tracingService.wrapEventListener(target, event, wrappedCallback);\n }\n return this.eventManager.addEventListener(target, event, wrappedCallback, options);\n }\n decoratePreventDefault(eventHandler) {\n // `DebugNode.triggerEventHandler` needs to know if the listener was created with\n // decoratePreventDefault or is a listener added outside the Angular context so it can handle\n // the two differently. In the first case, the special '__ngUnwrap__' token is passed to the\n // unwrap the listener (see below).\n return (event) => {\n // Ivy uses '__ngUnwrap__' as a special token that allows us to unwrap the function\n // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`. The\n // debug_node can inspect the listener toString contents for the existence of this special\n // token. Because the token is a string literal, it is ensured to not be modified by compiled\n // code.\n if (event === '__ngUnwrap__') {\n return eventHandler;\n }\n // Run the event handler inside the ngZone because event handlers are not patched\n // by Zone on the server. This is required only for tests.\n const allowDefaultBehavior = this.platformIsServer\n ? this.ngZone.runGuarded(() => eventHandler(event))\n : eventHandler(event);\n if (allowDefaultBehavior === false) {\n event.preventDefault();\n }\n return undefined;\n };\n }\n}\nconst AT_CHARCODE = (() => '@'.charCodeAt(0))();\nfunction checkNoSyntheticProp(name, nameKind) {\n if (name.charCodeAt(0) === AT_CHARCODE) {\n throw new ɵRuntimeError(5105 /* RuntimeErrorCode.UNEXPECTED_SYNTHETIC_PROPERTY */, `Unexpected synthetic ${nameKind} ${name} found. Please make sure that:\n - Make sure \\`provideAnimationsAsync()\\`, \\`provideAnimations()\\` or \\`provideNoopAnimations()\\` call was added to a list of providers used to bootstrap an application.\n - There is a corresponding animation configuration named \\`${name}\\` defined in the \\`animations\\` field of the \\`@Component\\` decorator (see https://angular.dev/api/core/Component#animations).`);\n }\n}\nfunction isTemplateNode(node) {\n return node.tagName === 'TEMPLATE' && node.content !== undefined;\n}\nclass ShadowDomRenderer extends DefaultDomRenderer2 {\n sharedStylesHost;\n hostEl;\n shadowRoot;\n constructor(eventManager, sharedStylesHost, hostEl, component, doc, ngZone, nonce, platformIsServer, tracingService) {\n super(eventManager, doc, ngZone, platformIsServer, tracingService);\n this.sharedStylesHost = sharedStylesHost;\n this.hostEl = hostEl;\n this.shadowRoot = hostEl.attachShadow({ mode: 'open' });\n this.sharedStylesHost.addHost(this.shadowRoot);\n let styles = component.styles;\n if (ngDevMode) {\n // We only do this in development, as for production users should not add CSS sourcemaps to components.\n const baseHref = ɵgetDOM().getBaseHref(doc) ?? '';\n styles = addBaseHrefToCssSourceMap(baseHref, styles);\n }\n styles = shimStylesContent(component.id, styles);\n for (const style of styles) {\n const styleEl = document.createElement('style');\n if (nonce) {\n styleEl.setAttribute('nonce', nonce);\n }\n styleEl.textContent = style;\n this.shadowRoot.appendChild(styleEl);\n }\n // Apply any external component styles to the shadow root for the component's element.\n // The ShadowDOM renderer uses an alternative execution path for component styles that\n // does not use the SharedStylesHost that other encapsulation modes leverage. Much like\n // the manual addition of embedded styles directly above, any external stylesheets\n // must be manually added here to ensure ShadowDOM components are correctly styled.\n // TODO: Consider reworking the DOM Renderers to consolidate style handling.\n const styleUrls = component.getExternalStyles?.();\n if (styleUrls) {\n for (const styleUrl of styleUrls) {\n const linkEl = createLinkElement(styleUrl, doc);\n if (nonce) {\n linkEl.setAttribute('nonce', nonce);\n }\n this.shadowRoot.appendChild(linkEl);\n }\n }\n }\n nodeOrShadowRoot(node) {\n return node === this.hostEl ? this.shadowRoot : node;\n }\n appendChild(parent, newChild) {\n return super.appendChild(this.nodeOrShadowRoot(parent), newChild);\n }\n insertBefore(parent, newChild, refChild) {\n return super.insertBefore(this.nodeOrShadowRoot(parent), newChild, refChild);\n }\n removeChild(_parent, oldChild) {\n return super.removeChild(null, oldChild);\n }\n parentNode(node) {\n return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(node)));\n }\n destroy() {\n this.sharedStylesHost.removeHost(this.shadowRoot);\n }\n}\nclass NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {\n sharedStylesHost;\n removeStylesOnCompDestroy;\n styles;\n styleUrls;\n constructor(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, tracingService, compId) {\n super(eventManager, doc, ngZone, platformIsServer, tracingService);\n this.sharedStylesHost = sharedStylesHost;\n this.removeStylesOnCompDestroy = removeStylesOnCompDestroy;\n let styles = component.styles;\n if (ngDevMode) {\n // We only do this in development, as for production users should not add CSS sourcemaps to components.\n const baseHref = ɵgetDOM().getBaseHref(doc) ?? '';\n styles = addBaseHrefToCssSourceMap(baseHref, styles);\n }\n this.styles = compId ? shimStylesContent(compId, styles) : styles;\n this.styleUrls = component.getExternalStyles?.(compId);\n }\n applyStyles() {\n this.sharedStylesHost.addStyles(this.styles, this.styleUrls);\n }\n destroy() {\n if (!this.removeStylesOnCompDestroy) {\n return;\n }\n this.sharedStylesHost.removeStyles(this.styles, this.styleUrls);\n }\n}\nclass EmulatedEncapsulationDomRenderer2 extends NoneEncapsulationDomRenderer {\n contentAttr;\n hostAttr;\n constructor(eventManager, sharedStylesHost, component, appId, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, tracingService) {\n const compId = appId + '-' + component.id;\n super(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, tracingService, compId);\n this.contentAttr = shimContentAttribute(compId);\n this.hostAttr = shimHostAttribute(compId);\n }\n applyToHost(element) {\n this.applyStyles();\n this.setAttribute(element, this.hostAttr, '');\n }\n createElement(parent, name) {\n const el = super.createElement(parent, name);\n super.setAttribute(el, this.contentAttr, '');\n return el;\n }\n}\n\nclass DomEventsPlugin extends EventManagerPlugin {\n constructor(doc) {\n super(doc);\n }\n // This plugin should come last in the list of plugins, because it accepts all\n // events.\n supports(eventName) {\n return true;\n }\n addEventListener(element, eventName, handler, options) {\n element.addEventListener(eventName, handler, options);\n return () => this.removeEventListener(element, eventName, handler, options);\n }\n removeEventListener(target, eventName, callback, options) {\n return target.removeEventListener(eventName, callback, options);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DomEventsPlugin });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DomEventsPlugin, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }] });\n\n/**\n * Defines supported modifiers for key events.\n */\nconst MODIFIER_KEYS = ['alt', 'control', 'meta', 'shift'];\n// The following values are here for cross-browser compatibility and to match the W3C standard\n// cf https://www.w3.org/TR/DOM-Level-3-Events-key/\nconst _keyMap = {\n '\\b': 'Backspace',\n '\\t': 'Tab',\n '\\x7F': 'Delete',\n '\\x1B': 'Escape',\n 'Del': 'Delete',\n 'Esc': 'Escape',\n 'Left': 'ArrowLeft',\n 'Right': 'ArrowRight',\n 'Up': 'ArrowUp',\n 'Down': 'ArrowDown',\n 'Menu': 'ContextMenu',\n 'Scroll': 'ScrollLock',\n 'Win': 'OS',\n};\n/**\n * Retrieves modifiers from key-event objects.\n */\nconst MODIFIER_KEY_GETTERS = {\n 'alt': (event) => event.altKey,\n 'control': (event) => event.ctrlKey,\n 'meta': (event) => event.metaKey,\n 'shift': (event) => event.shiftKey,\n};\n/**\n * A browser plug-in that provides support for handling of key events in Angular.\n */\nclass KeyEventsPlugin extends EventManagerPlugin {\n /**\n * Initializes an instance of the browser plug-in.\n * @param doc The document in which key events will be detected.\n */\n constructor(doc) {\n super(doc);\n }\n /**\n * Reports whether a named key event is supported.\n * @param eventName The event name to query.\n * @return True if the named key event is supported.\n */\n supports(eventName) {\n return KeyEventsPlugin.parseEventName(eventName) != null;\n }\n /**\n * Registers a handler for a specific element and key event.\n * @param element The HTML element to receive event notifications.\n * @param eventName The name of the key event to listen for.\n * @param handler A function to call when the notification occurs. Receives the\n * event object as an argument.\n * @returns The key event that was registered.\n */\n addEventListener(element, eventName, handler, options) {\n const parsedEvent = KeyEventsPlugin.parseEventName(eventName);\n const outsideHandler = KeyEventsPlugin.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());\n return this.manager.getZone().runOutsideAngular(() => {\n return ɵgetDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler, options);\n });\n }\n /**\n * Parses the user provided full keyboard event definition and normalizes it for\n * later internal use. It ensures the string is all lowercase, converts special\n * characters to a standard spelling, and orders all the values consistently.\n *\n * @param eventName The name of the key event to listen for.\n * @returns an object with the full, normalized string, and the dom event name\n * or null in the case when the event doesn't match a keyboard event.\n */\n static parseEventName(eventName) {\n const parts = eventName.toLowerCase().split('.');\n const domEventName = parts.shift();\n if (parts.length === 0 || !(domEventName === 'keydown' || domEventName === 'keyup')) {\n return null;\n }\n const key = KeyEventsPlugin._normalizeKey(parts.pop());\n let fullKey = '';\n let codeIX = parts.indexOf('code');\n if (codeIX > -1) {\n parts.splice(codeIX, 1);\n fullKey = 'code.';\n }\n MODIFIER_KEYS.forEach((modifierName) => {\n const index = parts.indexOf(modifierName);\n if (index > -1) {\n parts.splice(index, 1);\n fullKey += modifierName + '.';\n }\n });\n fullKey += key;\n if (parts.length != 0 || key.length === 0) {\n // returning null instead of throwing to let another plugin process the event\n return null;\n }\n // NOTE: Please don't rewrite this as so, as it will break JSCompiler property renaming.\n // The code must remain in the `result['domEventName']` form.\n // return {domEventName, fullKey};\n const result = {};\n result['domEventName'] = domEventName;\n result['fullKey'] = fullKey;\n return result;\n }\n /**\n * Determines whether the actual keys pressed match the configured key code string.\n * The `fullKeyCode` event is normalized in the `parseEventName` method when the\n * event is attached to the DOM during the `addEventListener` call. This is unseen\n * by the end user and is normalized for internal consistency and parsing.\n *\n * @param event The keyboard event.\n * @param fullKeyCode The normalized user defined expected key event string\n * @returns boolean.\n */\n static matchEventFullKeyCode(event, fullKeyCode) {\n let keycode = _keyMap[event.key] || event.key;\n let key = '';\n if (fullKeyCode.indexOf('code.') > -1) {\n keycode = event.code;\n key = 'code.';\n }\n // the keycode could be unidentified so we have to check here\n if (keycode == null || !keycode)\n return false;\n keycode = keycode.toLowerCase();\n if (keycode === ' ') {\n keycode = 'space'; // for readability\n }\n else if (keycode === '.') {\n keycode = 'dot'; // because '.' is used as a separator in event names\n }\n MODIFIER_KEYS.forEach((modifierName) => {\n if (modifierName !== keycode) {\n const modifierGetter = MODIFIER_KEY_GETTERS[modifierName];\n if (modifierGetter(event)) {\n key += modifierName + '.';\n }\n }\n });\n key += keycode;\n return key === fullKeyCode;\n }\n /**\n * Configures a handler callback for a key event.\n * @param fullKey The event name that combines all simultaneous keystrokes.\n * @param handler The function that responds to the key event.\n * @param zone The zone in which the event occurred.\n * @returns A callback function.\n */\n static eventCallback(fullKey, handler, zone) {\n return (event) => {\n if (KeyEventsPlugin.matchEventFullKeyCode(event, fullKey)) {\n zone.runGuarded(() => handler(event));\n }\n };\n }\n /** @internal */\n static _normalizeKey(keyName) {\n return keyName === 'esc' ? 'escape' : keyName;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: KeyEventsPlugin });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: KeyEventsPlugin, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }] });\n\n/**\n * Bootstraps an instance of an Angular application and renders a standalone component as the\n * application's root component. More information about standalone components can be found in [this\n * guide](guide/components/importing).\n *\n * @usageNotes\n * The root component passed into this function *must* be a standalone one (should have the\n * `standalone: true` flag in the `@Component` decorator config).\n *\n * ```angular-ts\n * @Component({\n * standalone: true,\n * template: 'Hello world!'\n * })\n * class RootComponent {}\n *\n * const appRef: ApplicationRef = await bootstrapApplication(RootComponent);\n * ```\n *\n * You can add the list of providers that should be available in the application injector by\n * specifying the `providers` field in an object passed as the second argument:\n *\n * ```ts\n * await bootstrapApplication(RootComponent, {\n * providers: [\n * {provide: BACKEND_URL, useValue: 'https://yourdomain.com/api'}\n * ]\n * });\n * ```\n *\n * The `importProvidersFrom` helper method can be used to collect all providers from any\n * existing NgModule (and transitively from all NgModules that it imports):\n *\n * ```ts\n * await bootstrapApplication(RootComponent, {\n * providers: [\n * importProvidersFrom(SomeNgModule)\n * ]\n * });\n * ```\n *\n * Note: the `bootstrapApplication` method doesn't include [Testability](api/core/Testability) by\n * default. You can add [Testability](api/core/Testability) by getting the list of necessary\n * providers using `provideProtractorTestingSupport()` function and adding them into the `providers`\n * array, for example:\n *\n * ```ts\n * import {provideProtractorTestingSupport} from '@angular/platform-browser';\n *\n * await bootstrapApplication(RootComponent, {providers: [provideProtractorTestingSupport()]});\n * ```\n *\n * @param rootComponent A reference to a standalone component that should be rendered.\n * @param options Extra configuration for the bootstrap operation, see `ApplicationConfig` for\n * additional info.\n * @returns A promise that returns an `ApplicationRef` instance once resolved.\n *\n * @publicApi\n */\nfunction bootstrapApplication(rootComponent, options) {\n return ɵinternalCreateApplication({ rootComponent, ...createProvidersConfig(options) });\n}\n/**\n * Create an instance of an Angular application without bootstrapping any components. This is useful\n * for the situation where one wants to decouple application environment creation (a platform and\n * associated injectors) from rendering components on a screen. Components can be subsequently\n * bootstrapped on the returned `ApplicationRef`.\n *\n * @param options Extra configuration for the application environment, see `ApplicationConfig` for\n * additional info.\n * @returns A promise that returns an `ApplicationRef` instance once resolved.\n *\n * @publicApi\n */\nfunction createApplication(options) {\n return ɵinternalCreateApplication(createProvidersConfig(options));\n}\nfunction createProvidersConfig(options) {\n return {\n appProviders: [...BROWSER_MODULE_PROVIDERS, ...(options?.providers ?? [])],\n platformProviders: INTERNAL_BROWSER_PLATFORM_PROVIDERS,\n };\n}\n/**\n * Returns a set of providers required to setup [Testability](api/core/Testability) for an\n * application bootstrapped using the `bootstrapApplication` function. The set of providers is\n * needed to support testing an application with Protractor (which relies on the Testability APIs\n * to be present).\n *\n * @returns An array of providers required to setup Testability for an application and make it\n * available for testing using Protractor.\n *\n * @publicApi\n */\nfunction provideProtractorTestingSupport() {\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideProtractorTestingSupport` call results in app\n // code.\n return [...TESTABILITY_PROVIDERS];\n}\nfunction initDomAdapter() {\n BrowserDomAdapter.makeCurrent();\n}\nfunction errorHandler() {\n return new ErrorHandler();\n}\nfunction _document() {\n // Tell ivy about the global document\n ɵsetDocument(document);\n return document;\n}\nconst INTERNAL_BROWSER_PLATFORM_PROVIDERS = [\n { provide: PLATFORM_ID, useValue: ɵPLATFORM_BROWSER_ID },\n { provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true },\n { provide: DOCUMENT, useFactory: _document, deps: [] },\n];\n/**\n * A factory function that returns a `PlatformRef` instance associated with browser service\n * providers.\n *\n * @publicApi\n */\nconst platformBrowser = createPlatformFactory(platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);\n/**\n * Internal marker to signal whether providers from the `BrowserModule` are already present in DI.\n * This is needed to avoid loading `BrowserModule` providers twice. We can't rely on the\n * `BrowserModule` presence itself, since the standalone-based bootstrap just imports\n * `BrowserModule` providers without referencing the module itself.\n */\nconst BROWSER_MODULE_PROVIDERS_MARKER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'BrowserModule Providers Marker' : '');\nconst TESTABILITY_PROVIDERS = [\n {\n provide: ɵTESTABILITY_GETTER,\n useClass: BrowserGetTestability,\n deps: [],\n },\n {\n provide: ɵTESTABILITY,\n useClass: Testability,\n deps: [NgZone, TestabilityRegistry, ɵTESTABILITY_GETTER],\n },\n {\n provide: Testability, // Also provide as `Testability` for backwards-compatibility.\n useClass: Testability,\n deps: [NgZone, TestabilityRegistry, ɵTESTABILITY_GETTER],\n },\n];\nconst BROWSER_MODULE_PROVIDERS = [\n { provide: ɵINJECTOR_SCOPE, useValue: 'root' },\n { provide: ErrorHandler, useFactory: errorHandler, deps: [] },\n {\n provide: EVENT_MANAGER_PLUGINS,\n useClass: DomEventsPlugin,\n multi: true,\n deps: [DOCUMENT, NgZone, PLATFORM_ID],\n },\n { provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT] },\n DomRendererFactory2,\n SharedStylesHost,\n EventManager,\n { provide: RendererFactory2, useExisting: DomRendererFactory2 },\n { provide: XhrFactory, useClass: BrowserXhr, deps: [] },\n typeof ngDevMode === 'undefined' || ngDevMode\n ? { provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true }\n : [],\n];\n/**\n * Exports required infrastructure for all Angular apps.\n * Included by default in all Angular apps created with the CLI\n * `new` command.\n * Re-exports `CommonModule` and `ApplicationModule`, making their\n * exports and providers available to all apps.\n *\n * @publicApi\n */\nclass BrowserModule {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const providersAlreadyPresent = inject(BROWSER_MODULE_PROVIDERS_MARKER, {\n optional: true,\n skipSelf: true,\n });\n if (providersAlreadyPresent) {\n throw new ɵRuntimeError(5100 /* RuntimeErrorCode.BROWSER_MODULE_ALREADY_LOADED */, `Providers from the \\`BrowserModule\\` have already been loaded. If you need access ` +\n `to common directives such as NgIf and NgFor, import the \\`CommonModule\\` instead.`);\n }\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: BrowserModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: BrowserModule, decorators: [{\n type: NgModule,\n args: [{\n providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],\n exports: [CommonModule, ApplicationModule],\n }]\n }], ctorParameters: () => [] });\n\n/**\n * A service for managing HTML `<meta>` tags.\n *\n * Properties of the `MetaDefinition` object match the attributes of the\n * HTML `<meta>` tag. These tags define document metadata that is important for\n * things like configuring a Content Security Policy, defining browser compatibility\n * and security settings, setting HTTP Headers, defining rich content for social sharing,\n * and Search Engine Optimization (SEO).\n *\n * To identify specific `<meta>` tags in a document, use an attribute selection\n * string in the format `\"tag_attribute='value string'\"`.\n * For example, an `attrSelector` value of `\"name='description'\"` matches a tag\n * whose `name` attribute has the value `\"description\"`.\n * Selectors are used with the `querySelector()` Document method,\n * in the format `meta[{attrSelector}]`.\n *\n * @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)\n * @see [Document.querySelector()](https://developer.mozilla.org/docs/Web/API/Document/querySelector)\n *\n *\n * @publicApi\n */\nclass Meta {\n _doc;\n _dom;\n constructor(_doc) {\n this._doc = _doc;\n this._dom = ɵgetDOM();\n }\n /**\n * Retrieves or creates a specific `<meta>` tag element in the current HTML document.\n * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute\n * values in the provided tag definition, and verifies that all other attribute values are equal.\n * If an existing element is found, it is returned and is not modified in any way.\n * @param tag The definition of a `<meta>` element to match or create.\n * @param forceCreation True to create a new element without checking whether one already exists.\n * @returns The existing element with the same attributes and values if found,\n * the new element if no match is found, or `null` if the tag parameter is not defined.\n */\n addTag(tag, forceCreation = false) {\n if (!tag)\n return null;\n return this._getOrCreateElement(tag, forceCreation);\n }\n /**\n * Retrieves or creates a set of `<meta>` tag elements in the current HTML document.\n * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute\n * values in the provided tag definition, and verifies that all other attribute values are equal.\n * @param tags An array of tag definitions to match or create.\n * @param forceCreation True to create new elements without checking whether they already exist.\n * @returns The matching elements if found, or the new elements.\n */\n addTags(tags, forceCreation = false) {\n if (!tags)\n return [];\n return tags.reduce((result, tag) => {\n if (tag) {\n result.push(this._getOrCreateElement(tag, forceCreation));\n }\n return result;\n }, []);\n }\n /**\n * Retrieves a `<meta>` tag element in the current HTML document.\n * @param attrSelector The tag attribute and value to match against, in the format\n * `\"tag_attribute='value string'\"`.\n * @returns The matching element, if any.\n */\n getTag(attrSelector) {\n if (!attrSelector)\n return null;\n return this._doc.querySelector(`meta[${attrSelector}]`) || null;\n }\n /**\n * Retrieves a set of `<meta>` tag elements in the current HTML document.\n * @param attrSelector The tag attribute and value to match against, in the format\n * `\"tag_attribute='value string'\"`.\n * @returns The matching elements, if any.\n */\n getTags(attrSelector) {\n if (!attrSelector)\n return [];\n const list /*NodeList*/ = this._doc.querySelectorAll(`meta[${attrSelector}]`);\n return list ? [].slice.call(list) : [];\n }\n /**\n * Modifies an existing `<meta>` tag element in the current HTML document.\n * @param tag The tag description with which to replace the existing tag content.\n * @param selector A tag attribute and value to match against, to identify\n * an existing tag. A string in the format `\"tag_attribute=`value string`\"`.\n * If not supplied, matches a tag with the same `name` or `property` attribute value as the\n * replacement tag.\n * @return The modified element.\n */\n updateTag(tag, selector) {\n if (!tag)\n return null;\n selector = selector || this._parseSelector(tag);\n const meta = this.getTag(selector);\n if (meta) {\n return this._setMetaElementAttributes(tag, meta);\n }\n return this._getOrCreateElement(tag, true);\n }\n /**\n * Removes an existing `<meta>` tag element from the current HTML document.\n * @param attrSelector A tag attribute and value to match against, to identify\n * an existing tag. A string in the format `\"tag_attribute=`value string`\"`.\n */\n removeTag(attrSelector) {\n this.removeTagElement(this.getTag(attrSelector));\n }\n /**\n * Removes an existing `<meta>` tag element from the current HTML document.\n * @param meta The tag definition to match against to identify an existing tag.\n */\n removeTagElement(meta) {\n if (meta) {\n this._dom.remove(meta);\n }\n }\n _getOrCreateElement(meta, forceCreation = false) {\n if (!forceCreation) {\n const selector = this._parseSelector(meta);\n // It's allowed to have multiple elements with the same name so it's not enough to\n // just check that element with the same name already present on the page. We also need to\n // check if element has tag attributes\n const elem = this.getTags(selector).filter((elem) => this._containsAttributes(meta, elem))[0];\n if (elem !== undefined)\n return elem;\n }\n const element = this._dom.createElement('meta');\n this._setMetaElementAttributes(meta, element);\n const head = this._doc.getElementsByTagName('head')[0];\n head.appendChild(element);\n return element;\n }\n _setMetaElementAttributes(tag, el) {\n Object.keys(tag).forEach((prop) => el.setAttribute(this._getMetaKeyMap(prop), tag[prop]));\n return el;\n }\n _parseSelector(tag) {\n const attr = tag.name ? 'name' : 'property';\n return `${attr}=\"${tag[attr]}\"`;\n }\n _containsAttributes(tag, elem) {\n return Object.keys(tag).every((key) => elem.getAttribute(this._getMetaKeyMap(key)) === tag[key]);\n }\n _getMetaKeyMap(prop) {\n return META_KEYS_MAP[prop] || prop;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: Meta, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: Meta, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }] });\n/**\n * Mapping for MetaDefinition properties with their correct meta attribute names\n */\nconst META_KEYS_MAP = {\n httpEquiv: 'http-equiv',\n};\n\n/**\n * A service that can be used to get and set the title of a current HTML document.\n *\n * Since an Angular application can't be bootstrapped on the entire HTML document (`<html>` tag)\n * it is not possible to bind to the `text` property of the `HTMLTitleElement` elements\n * (representing the `<title>` tag). Instead, this service can be used to set and get the current\n * title value.\n *\n * @publicApi\n */\nclass Title {\n _doc;\n constructor(_doc) {\n this._doc = _doc;\n }\n /**\n * Get the title of the current HTML document.\n */\n getTitle() {\n return this._doc.title;\n }\n /**\n * Set the title of the current HTML document.\n * @param newTitle\n */\n setTitle(newTitle) {\n this._doc.title = newTitle || '';\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: Title, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: Title, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }] });\n\n/**\n * Exports the value under a given `name` in the global property `ng`. For example `ng.probe` if\n * `name` is `'probe'`.\n * @param name Name under which it will be exported. Keep in mind this will be a property of the\n * global `ng` object.\n * @param value The value to export.\n */\nfunction exportNgVar(name, value) {\n if (typeof COMPILED === 'undefined' || !COMPILED) {\n // Note: we can't export `ng` when using closure enhanced optimization as:\n // - closure declares globals itself for minified names, which sometimes clobber our `ng` global\n // - we can't declare a closure extern as the namespace `ng` is already used within Google\n // for typings for angularJS (via `goog.provide('ng....')`).\n const ng = (ɵglobal['ng'] = ɵglobal['ng'] || {});\n ng[name] = value;\n }\n}\n\nclass ChangeDetectionPerfRecord {\n msPerTick;\n numTicks;\n constructor(msPerTick, numTicks) {\n this.msPerTick = msPerTick;\n this.numTicks = numTicks;\n }\n}\n/**\n * Entry point for all Angular profiling-related debug tools. This object\n * corresponds to the `ng.profiler` in the dev console.\n */\nclass AngularProfiler {\n appRef;\n constructor(ref) {\n this.appRef = ref.injector.get(ApplicationRef);\n }\n // tslint:disable:no-console\n /**\n * Exercises change detection in a loop and then prints the average amount of\n * time in milliseconds how long a single round of change detection takes for\n * the current state of the UI. It runs a minimum of 5 rounds for a minimum\n * of 500 milliseconds.\n *\n * Optionally, a user may pass a `config` parameter containing a map of\n * options. Supported options are:\n *\n * `record` (boolean) - causes the profiler to record a CPU profile while\n * it exercises the change detector. Example:\n *\n * ```ts\n * ng.profiler.timeChangeDetection({record: true})\n * ```\n */\n timeChangeDetection(config) {\n const record = config && config['record'];\n const profileName = 'Change Detection';\n // Profiler is not available in Android browsers without dev tools opened\n if (record && 'profile' in console && typeof console.profile === 'function') {\n console.profile(profileName);\n }\n const start = performance.now();\n let numTicks = 0;\n while (numTicks < 5 || performance.now() - start < 500) {\n this.appRef.tick();\n numTicks++;\n }\n const end = performance.now();\n if (record && 'profileEnd' in console && typeof console.profileEnd === 'function') {\n console.profileEnd(profileName);\n }\n const msPerTick = (end - start) / numTicks;\n console.log(`ran ${numTicks} change detection cycles`);\n console.log(`${msPerTick.toFixed(2)} ms per check`);\n return new ChangeDetectionPerfRecord(msPerTick, numTicks);\n }\n}\n\nconst PROFILER_GLOBAL_NAME = 'profiler';\n/**\n * Enabled Angular debug tools that are accessible via your browser's\n * developer console.\n *\n * Usage:\n *\n * 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)\n * 1. Type `ng.` (usually the console will show auto-complete suggestion)\n * 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`\n * then hit Enter.\n *\n * @publicApi\n */\nfunction enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n}\n/**\n * Disables Angular tools.\n *\n * @publicApi\n */\nfunction disableDebugTools() {\n exportNgVar(PROFILER_GLOBAL_NAME, null);\n}\n\n/**\n * Predicates for use with {@link DebugElement}'s query functions.\n *\n * @publicApi\n */\nclass By {\n /**\n * Match all nodes.\n *\n * @usageNotes\n * ### Example\n *\n * {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}\n */\n static all() {\n return () => true;\n }\n /**\n * Match elements by the given CSS selector.\n *\n * @usageNotes\n * ### Example\n *\n * {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}\n */\n static css(selector) {\n return (debugElement) => {\n return debugElement.nativeElement != null\n ? elementMatches(debugElement.nativeElement, selector)\n : false;\n };\n }\n /**\n * Match nodes that have the given directive present.\n *\n * @usageNotes\n * ### Example\n *\n * {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}\n */\n static directive(type) {\n return (debugNode) => debugNode.providerTokens.indexOf(type) !== -1;\n }\n}\nfunction elementMatches(n, selector) {\n if (ɵgetDOM().isElementNode(n)) {\n return ((n.matches && n.matches(selector)) ||\n (n.msMatchesSelector && n.msMatchesSelector(selector)) ||\n (n.webkitMatchesSelector && n.webkitMatchesSelector(selector)));\n }\n return false;\n}\n\n/**\n * Supported HammerJS recognizer event names.\n */\nconst EVENT_NAMES = {\n // pan\n 'pan': true,\n 'panstart': true,\n 'panmove': true,\n 'panend': true,\n 'pancancel': true,\n 'panleft': true,\n 'panright': true,\n 'panup': true,\n 'pandown': true,\n // pinch\n 'pinch': true,\n 'pinchstart': true,\n 'pinchmove': true,\n 'pinchend': true,\n 'pinchcancel': true,\n 'pinchin': true,\n 'pinchout': true,\n // press\n 'press': true,\n 'pressup': true,\n // rotate\n 'rotate': true,\n 'rotatestart': true,\n 'rotatemove': true,\n 'rotateend': true,\n 'rotatecancel': true,\n // swipe\n 'swipe': true,\n 'swipeleft': true,\n 'swiperight': true,\n 'swipeup': true,\n 'swipedown': true,\n // tap\n 'tap': true,\n 'doubletap': true,\n};\n/**\n * DI token for providing [HammerJS](https://hammerjs.github.io/) support to Angular.\n * @see {@link HammerGestureConfig}\n *\n * @ngModule HammerModule\n * @publicApi\n */\nconst HAMMER_GESTURE_CONFIG = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'HammerGestureConfig' : '');\n/**\n * Injection token used to provide a HammerLoader to Angular.\n *\n * @see {@link HammerLoader}\n *\n * @publicApi\n */\nconst HAMMER_LOADER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'HammerLoader' : '');\n/**\n * An injectable [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)\n * for gesture recognition. Configures specific event recognition.\n * @publicApi\n */\nclass HammerGestureConfig {\n /**\n * A set of supported event names for gestures to be used in Angular.\n * Angular supports all built-in recognizers, as listed in\n * [HammerJS documentation](https://hammerjs.github.io/).\n */\n events = [];\n /**\n * Maps gesture event names to a set of configuration options\n * that specify overrides to the default values for specific properties.\n *\n * The key is a supported event name to be configured,\n * and the options object contains a set of properties, with override values\n * to be applied to the named recognizer event.\n * For example, to disable recognition of the rotate event, specify\n * `{\"rotate\": {\"enable\": false}}`.\n *\n * Properties that are not present take the HammerJS default values.\n * For information about which properties are supported for which events,\n * and their allowed and default values, see\n * [HammerJS documentation](https://hammerjs.github.io/).\n *\n */\n overrides = {};\n /**\n * Properties whose default values can be overridden for a given event.\n * Different sets of properties apply to different events.\n * For information about which properties are supported for which events,\n * and their allowed and default values, see\n * [HammerJS documentation](https://hammerjs.github.io/).\n */\n options;\n /**\n * Creates a [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)\n * and attaches it to a given HTML element.\n * @param element The element that will recognize gestures.\n * @returns A HammerJS event-manager object.\n */\n buildHammer(element) {\n const mc = new Hammer(element, this.options);\n mc.get('pinch').set({ enable: true });\n mc.get('rotate').set({ enable: true });\n for (const eventName in this.overrides) {\n mc.get(eventName).set(this.overrides[eventName]);\n }\n return mc;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HammerGestureConfig });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HammerGestureConfig, decorators: [{\n type: Injectable\n }] });\n/**\n * Event plugin that adds Hammer support to an application.\n *\n * @ngModule HammerModule\n */\nclass HammerGesturesPlugin extends EventManagerPlugin {\n _config;\n _injector;\n loader;\n _loaderPromise = null;\n constructor(doc, _config, _injector, loader) {\n super(doc);\n this._config = _config;\n this._injector = _injector;\n this.loader = loader;\n }\n supports(eventName) {\n if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {\n return false;\n }\n if (!window.Hammer && !this.loader) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Get a `Console` through an injector to tree-shake the\n // class when it is unused in production.\n const _console = this._injector.get(ɵConsole);\n _console.warn(`The \"${eventName}\" event cannot be bound because Hammer.JS is not ` +\n `loaded and no custom loader has been specified.`);\n }\n return false;\n }\n return true;\n }\n addEventListener(element, eventName, handler) {\n const zone = this.manager.getZone();\n eventName = eventName.toLowerCase();\n // If Hammer is not present but a loader is specified, we defer adding the event listener\n // until Hammer is loaded.\n if (!window.Hammer && this.loader) {\n this._loaderPromise = this._loaderPromise || zone.runOutsideAngular(() => this.loader());\n // This `addEventListener` method returns a function to remove the added listener.\n // Until Hammer is loaded, the returned function needs to *cancel* the registration rather\n // than remove anything.\n let cancelRegistration = false;\n let deregister = () => {\n cancelRegistration = true;\n };\n zone.runOutsideAngular(() => this._loaderPromise.then(() => {\n // If Hammer isn't actually loaded when the custom loader resolves, give up.\n if (!window.Hammer) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const _console = this._injector.get(ɵConsole);\n _console.warn(`The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);\n }\n deregister = () => { };\n return;\n }\n if (!cancelRegistration) {\n // Now that Hammer is loaded and the listener is being loaded for real,\n // the deregistration function changes from canceling registration to\n // removal.\n deregister = this.addEventListener(element, eventName, handler);\n }\n }).catch(() => {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const _console = this._injector.get(ɵConsole);\n _console.warn(`The \"${eventName}\" event cannot be bound because the custom ` +\n `Hammer.JS loader failed.`);\n }\n deregister = () => { };\n }));\n // Return a function that *executes* `deregister` (and not `deregister` itself) so that we\n // can change the behavior of `deregister` once the listener is added. Using a closure in\n // this way allows us to avoid any additional data structures to track listener removal.\n return () => {\n deregister();\n };\n }\n return zone.runOutsideAngular(() => {\n // Creating the manager bind events, must be done outside of angular\n const mc = this._config.buildHammer(element);\n const callback = function (eventObj) {\n zone.runGuarded(function () {\n handler(eventObj);\n });\n };\n mc.on(eventName, callback);\n return () => {\n mc.off(eventName, callback);\n // destroy mc to prevent memory leak\n if (typeof mc.destroy === 'function') {\n mc.destroy();\n }\n };\n });\n }\n isCustomEvent(eventName) {\n return this._config.events.indexOf(eventName) > -1;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.Injector }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HammerGesturesPlugin });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HammerGesturesPlugin, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: HammerGestureConfig, decorators: [{\n type: Inject,\n args: [HAMMER_GESTURE_CONFIG]\n }] }, { type: i0.Injector }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [HAMMER_LOADER]\n }] }] });\n/**\n * Adds support for HammerJS.\n *\n * Import this module at the root of your application so that Angular can work with\n * HammerJS to detect gesture events.\n *\n * Note that applications still need to include the HammerJS script itself. This module\n * simply sets up the coordination layer between HammerJS and Angular's `EventManager`.\n *\n * @publicApi\n */\nclass HammerModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: HammerModule });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HammerModule, providers: [\n {\n provide: EVENT_MANAGER_PLUGINS,\n useClass: HammerGesturesPlugin,\n multi: true,\n deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, Injector, [new Optional(), HAMMER_LOADER]],\n },\n { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },\n ] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HammerModule, decorators: [{\n type: NgModule,\n args: [{\n providers: [\n {\n provide: EVENT_MANAGER_PLUGINS,\n useClass: HammerGesturesPlugin,\n multi: true,\n deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, Injector, [new Optional(), HAMMER_LOADER]],\n },\n { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },\n ],\n }]\n }] });\n\n/**\n * DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing\n * values to be safe to use in the different DOM contexts.\n *\n * For example, when binding a URL in an `<a [href]=\"someValue\">` hyperlink, `someValue` will be\n * sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on\n * the website.\n *\n * In specific situations, it might be necessary to disable sanitization, for example if the\n * application genuinely needs to produce a `javascript:` style link with a dynamic value in it.\n * Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`\n * methods, and then binding to that value from the template.\n *\n * These situations should be very rare, and extraordinary care must be taken to avoid creating a\n * Cross Site Scripting (XSS) security bug!\n *\n * When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as\n * close as possible to the source of the value, to make it easy to verify no security bug is\n * created by its use.\n *\n * It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that\n * does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous\n * code. The sanitizer leaves safe values intact.\n *\n * @security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in\n * sanitization for the value passed in. Carefully check and audit all values and code paths going\n * into this call. Make sure any user data is appropriately escaped for this security context.\n * For more detail, see the [Security Guide](https://g.co/ng/security).\n *\n * @publicApi\n */\nclass DomSanitizer {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(() => DomSanitizerImpl) });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DomSanitizer, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]\n }] });\nclass DomSanitizerImpl extends DomSanitizer {\n _doc;\n constructor(_doc) {\n super();\n this._doc = _doc;\n }\n sanitize(ctx, value) {\n if (value == null)\n return null;\n switch (ctx) {\n case SecurityContext.NONE:\n return value;\n case SecurityContext.HTML:\n if (ɵallowSanitizationBypassAndThrow(value, \"HTML\" /* BypassType.Html */)) {\n return ɵunwrapSafeValue(value);\n }\n return ɵ_sanitizeHtml(this._doc, String(value)).toString();\n case SecurityContext.STYLE:\n if (ɵallowSanitizationBypassAndThrow(value, \"Style\" /* BypassType.Style */)) {\n return ɵunwrapSafeValue(value);\n }\n return value;\n case SecurityContext.SCRIPT:\n if (ɵallowSanitizationBypassAndThrow(value, \"Script\" /* BypassType.Script */)) {\n return ɵunwrapSafeValue(value);\n }\n throw new ɵRuntimeError(5200 /* RuntimeErrorCode.SANITIZATION_UNSAFE_SCRIPT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'unsafe value used in a script context');\n case SecurityContext.URL:\n if (ɵallowSanitizationBypassAndThrow(value, \"URL\" /* BypassType.Url */)) {\n return ɵunwrapSafeValue(value);\n }\n return ɵ_sanitizeUrl(String(value));\n case SecurityContext.RESOURCE_URL:\n if (ɵallowSanitizationBypassAndThrow(value, \"ResourceURL\" /* BypassType.ResourceUrl */)) {\n return ɵunwrapSafeValue(value);\n }\n throw new ɵRuntimeError(5201 /* RuntimeErrorCode.SANITIZATION_UNSAFE_RESOURCE_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `unsafe value used in a resource URL context (see ${ɵXSS_SECURITY_URL})`);\n default:\n throw new ɵRuntimeError(5202 /* RuntimeErrorCode.SANITIZATION_UNEXPECTED_CTX */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `Unexpected SecurityContext ${ctx} (see ${ɵXSS_SECURITY_URL})`);\n }\n }\n bypassSecurityTrustHtml(value) {\n return ɵbypassSanitizationTrustHtml(value);\n }\n bypassSecurityTrustStyle(value) {\n return ɵbypassSanitizationTrustStyle(value);\n }\n bypassSecurityTrustScript(value) {\n return ɵbypassSanitizationTrustScript(value);\n }\n bypassSecurityTrustUrl(value) {\n return ɵbypassSanitizationTrustUrl(value);\n }\n bypassSecurityTrustResourceUrl(value) {\n return ɵbypassSanitizationTrustResourceUrl(value);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DomSanitizerImpl, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }] });\n\n/**\n * The list of features as an enum to uniquely type each `HydrationFeature`.\n * @see {@link HydrationFeature}\n *\n * @publicApi\n */\nvar HydrationFeatureKind;\n(function (HydrationFeatureKind) {\n HydrationFeatureKind[HydrationFeatureKind[\"NoHttpTransferCache\"] = 0] = \"NoHttpTransferCache\";\n HydrationFeatureKind[HydrationFeatureKind[\"HttpTransferCacheOptions\"] = 1] = \"HttpTransferCacheOptions\";\n HydrationFeatureKind[HydrationFeatureKind[\"I18nSupport\"] = 2] = \"I18nSupport\";\n HydrationFeatureKind[HydrationFeatureKind[\"EventReplay\"] = 3] = \"EventReplay\";\n HydrationFeatureKind[HydrationFeatureKind[\"IncrementalHydration\"] = 4] = \"IncrementalHydration\";\n})(HydrationFeatureKind || (HydrationFeatureKind = {}));\n/**\n * Helper function to create an object that represents a Hydration feature.\n */\nfunction hydrationFeature(ɵkind, ɵproviders = [], ɵoptions = {}) {\n return { ɵkind, ɵproviders };\n}\n/**\n * Disables HTTP transfer cache. Effectively causes HTTP requests to be performed twice: once on the\n * server and other one on the browser.\n *\n * @publicApi\n */\nfunction withNoHttpTransferCache() {\n // This feature has no providers and acts as a flag that turns off\n // HTTP transfer cache (which otherwise is turned on by default).\n return hydrationFeature(HydrationFeatureKind.NoHttpTransferCache);\n}\n/**\n * The function accepts an object, which allows to configure cache parameters,\n * such as which headers should be included (no headers are included by default),\n * whether POST requests should be cached or a callback function to determine if a\n * particular request should be cached.\n *\n * @publicApi\n */\nfunction withHttpTransferCacheOptions(options) {\n // This feature has no providers and acts as a flag to pass options to the HTTP transfer cache.\n return hydrationFeature(HydrationFeatureKind.HttpTransferCacheOptions, ɵwithHttpTransferCache(options));\n}\n/**\n * Enables support for hydrating i18n blocks.\n *\n * @developerPreview\n * @publicApi\n */\nfunction withI18nSupport() {\n return hydrationFeature(HydrationFeatureKind.I18nSupport, ɵwithI18nSupport());\n}\n/**\n * Enables support for replaying user events (e.g. `click`s) that happened on a page\n * before hydration logic has completed. Once an application is hydrated, all captured\n * events are replayed and relevant event listeners are executed.\n *\n * @usageNotes\n *\n * Basic example of how you can enable event replay in your application when\n * `bootstrapApplication` function is used:\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [provideClientHydration(withEventReplay())]\n * });\n * ```\n * @publicApi\n * @see {@link provideClientHydration}\n */\nfunction withEventReplay() {\n return hydrationFeature(HydrationFeatureKind.EventReplay, ɵwithEventReplay());\n}\n/**\n * Enables support for incremental hydration using the `hydrate` trigger syntax.\n *\n * @usageNotes\n *\n * Basic example of how you can enable incremental hydration in your application when\n * the `bootstrapApplication` function is used:\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [provideClientHydration(withIncrementalHydration())]\n * });\n * ```\n * @experimental\n * @publicApi\n * @see {@link provideClientHydration}\n */\nfunction withIncrementalHydration() {\n return hydrationFeature(HydrationFeatureKind.IncrementalHydration, ɵwithIncrementalHydration());\n}\n/**\n * Returns an `ENVIRONMENT_INITIALIZER` token setup with a function\n * that verifies whether compatible ZoneJS was used in an application\n * and logs a warning in a console if it's not the case.\n */\nfunction provideZoneJsCompatibilityDetector() {\n return [\n {\n provide: ENVIRONMENT_INITIALIZER,\n useValue: () => {\n const ngZone = inject(NgZone);\n const isZoneless = inject(ɵZONELESS_ENABLED);\n // Checking `ngZone instanceof NgZone` would be insufficient here,\n // because custom implementations might use NgZone as a base class.\n if (!isZoneless && ngZone.constructor !== NgZone) {\n const console = inject(ɵConsole);\n const message = ɵformatRuntimeError(-5000 /* RuntimeErrorCode.UNSUPPORTED_ZONEJS_INSTANCE */, 'Angular detected that hydration was enabled for an application ' +\n 'that uses a custom or a noop Zone.js implementation. ' +\n 'This is not yet a fully supported configuration.');\n console.warn(message);\n }\n },\n multi: true,\n },\n ];\n}\n/**\n * Sets up providers necessary to enable hydration functionality for the application.\n *\n * By default, the function enables the recommended set of features for the optimal\n * performance for most of the applications. It includes the following features:\n *\n * * Reconciling DOM hydration. Learn more about it [here](guide/hydration).\n * * [`HttpClient`](api/common/http/HttpClient) response caching while running on the server and\n * transferring this cache to the client to avoid extra HTTP requests. Learn more about data caching\n * [here](guide/ssr#caching-data-when-using-httpclient).\n *\n * These functions allow you to disable some of the default features or enable new ones:\n *\n * * {@link withNoHttpTransferCache} to disable HTTP transfer cache\n * * {@link withHttpTransferCacheOptions} to configure some HTTP transfer cache options\n * * {@link withI18nSupport} to enable hydration support for i18n blocks\n * * {@link withEventReplay} to enable support for replaying user events\n *\n * @usageNotes\n *\n * Basic example of how you can enable hydration in your application when\n * `bootstrapApplication` function is used:\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [provideClientHydration()]\n * });\n * ```\n *\n * Alternatively if you are using NgModules, you would add `provideClientHydration`\n * to your root app module's provider list.\n * ```ts\n * @NgModule({\n * declarations: [RootCmp],\n * bootstrap: [RootCmp],\n * providers: [provideClientHydration()],\n * })\n * export class AppModule {}\n * ```\n *\n * @see {@link withNoHttpTransferCache}\n * @see {@link withHttpTransferCacheOptions}\n * @see {@link withI18nSupport}\n * @see {@link withEventReplay}\n *\n * @param features Optional features to configure additional router behaviors.\n * @returns A set of providers to enable hydration.\n *\n * @publicApi\n */\nfunction provideClientHydration(...features) {\n const providers = [];\n const featuresKind = new Set();\n const hasHttpTransferCacheOptions = featuresKind.has(HydrationFeatureKind.HttpTransferCacheOptions);\n for (const { ɵproviders, ɵkind } of features) {\n featuresKind.add(ɵkind);\n if (ɵproviders.length) {\n providers.push(ɵproviders);\n }\n }\n if (typeof ngDevMode !== 'undefined' &&\n ngDevMode &&\n featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) &&\n hasHttpTransferCacheOptions) {\n // TODO: Make this a runtime error\n throw new Error('Configuration error: found both withHttpTransferCacheOptions() and withNoHttpTransferCache() in the same call to provideClientHydration(), which is a contradiction.');\n }\n return makeEnvironmentProviders([\n typeof ngDevMode !== 'undefined' && ngDevMode ? provideZoneJsCompatibilityDetector() : [],\n ɵwithDomHydration(),\n featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) || hasHttpTransferCacheOptions\n ? []\n : ɵwithHttpTransferCache({}),\n providers,\n ]);\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the platform-browser package.\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('19.1.4');\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BrowserModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, EventManagerPlugin, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, HydrationFeatureKind, Meta, REMOVE_STYLES_ON_COMPONENT_DESTROY, Title, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, platformBrowser, provideClientHydration, provideProtractorTestingSupport, withEventReplay, withHttpTransferCacheOptions, withI18nSupport, withIncrementalHydration, withNoHttpTransferCache, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, SharedStylesHost as ɵSharedStylesHost, initDomAdapter as ɵinitDomAdapter };\n","import { Observable } from '../Observable';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { from } from './from';\nimport { identity } from '../util/identity';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { popResultSelector, popScheduler } from '../util/args';\nimport { createObject } from '../util/createObject';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function combineLatest(...args) {\n const scheduler = popScheduler(args);\n const resultSelector = popResultSelector(args);\n const { args: observables, keys } = argsArgArrayOrObject(args);\n if (observables.length === 0) {\n return from([], scheduler);\n }\n const result = new Observable(combineLatestInit(observables, scheduler, keys\n ?\n (values) => createObject(keys, values)\n :\n identity));\n return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;\n}\nexport function combineLatestInit(observables, scheduler, valueTransform = identity) {\n return (subscriber) => {\n maybeSchedule(scheduler, () => {\n const { length } = observables;\n const values = new Array(length);\n let active = length;\n let remainingFirstValues = length;\n for (let i = 0; i < length; i++) {\n maybeSchedule(scheduler, () => {\n const source = from(observables[i], scheduler);\n let hasFirstValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n values[i] = value;\n if (!hasFirstValue) {\n hasFirstValue = true;\n remainingFirstValues--;\n }\n if (!remainingFirstValues) {\n subscriber.next(valueTransform(values.slice()));\n }\n }, () => {\n if (!--active) {\n subscriber.complete();\n }\n }));\n }, subscriber);\n }\n }, subscriber);\n };\n}\nfunction maybeSchedule(scheduler, execute, subscription) {\n if (scheduler) {\n executeSchedule(subscription, scheduler, execute);\n }\n else {\n execute();\n }\n}\n","import { createErrorClass } from './createErrorClass';\nexport const EmptyError = createErrorClass((_super) => function EmptyErrorImpl() {\n _super(this);\n this.name = 'EmptyError';\n this.message = 'no elements in sequence';\n});\n","import { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nexport function mergeAll(concurrent = Infinity) {\n return mergeMap(identity, concurrent);\n}\n","import { concatAll } from '../operators/concatAll';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function concat(...args) {\n return concatAll()(from(args, popScheduler(args)));\n}\n","import { mergeAll } from './mergeAll';\nexport function concatAll() {\n return mergeAll(1);\n}\n","import { Observable } from '../Observable';\nimport { innerFrom } from './innerFrom';\nexport function defer(observableFactory) {\n return new Observable((subscriber) => {\n innerFrom(observableFactory()).subscribe(subscriber);\n });\n}\n","import { Observable } from '../Observable';\nimport { isFunction } from '../util/isFunction';\nexport function throwError(errorOrErrorFactory, scheduler) {\n const errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : () => errorOrErrorFactory;\n const init = (subscriber) => subscriber.error(errorFactory());\n return new Observable(scheduler ? (subscriber) => scheduler.schedule(init, 0, subscriber) : init);\n}\n","import { Observable } from '../Observable';\nexport const EMPTY = new Observable((subscriber) => subscriber.complete());\nexport function empty(scheduler) {\n return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\nfunction emptyScheduled(scheduler) {\n return new Observable((subscriber) => scheduler.schedule(() => subscriber.complete()));\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function refCount() {\n return operate((source, subscriber) => {\n let connection = null;\n source._refCount++;\n const refCounter = createOperatorSubscriber(subscriber, undefined, undefined, undefined, () => {\n if (!source || source._refCount <= 0 || 0 < --source._refCount) {\n connection = null;\n return;\n }\n const sharedConnection = source._connection;\n const conn = connection;\n connection = null;\n if (sharedConnection && (!conn || sharedConnection === conn)) {\n sharedConnection.unsubscribe();\n }\n subscriber.unsubscribe();\n });\n source.subscribe(refCounter);\n if (!refCounter.closed) {\n connection = source.connect();\n }\n });\n}\n","import { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { refCount as higherOrderRefCount } from '../operators/refCount';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { hasLift } from '../util/lift';\nexport class ConnectableObservable extends Observable {\n constructor(source, subjectFactory) {\n super();\n this.source = source;\n this.subjectFactory = subjectFactory;\n this._subject = null;\n this._refCount = 0;\n this._connection = null;\n if (hasLift(source)) {\n this.lift = source.lift;\n }\n }\n _subscribe(subscriber) {\n return this.getSubject().subscribe(subscriber);\n }\n getSubject() {\n const subject = this._subject;\n if (!subject || subject.isStopped) {\n this._subject = this.subjectFactory();\n }\n return this._subject;\n }\n _teardown() {\n this._refCount = 0;\n const { _connection } = this;\n this._subject = this._connection = null;\n _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe();\n }\n connect() {\n let connection = this._connection;\n if (!connection) {\n connection = this._connection = new Subscription();\n const subject = this.getSubject();\n connection.add(this.source.subscribe(createOperatorSubscriber(subject, undefined, () => {\n this._teardown();\n subject.complete();\n }, (err) => {\n this._teardown();\n subject.error(err);\n }, () => this._teardown())));\n if (connection.closed) {\n this._connection = null;\n connection = Subscription.EMPTY;\n }\n }\n return connection;\n }\n refCount() {\n return higherOrderRefCount()(this);\n }\n}\n","import { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function take(count) {\n return count <= 0\n ?\n () => EMPTY\n : operate((source, subscriber) => {\n let seen = 0;\n source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n if (++seen <= count) {\n subscriber.next(value);\n if (count <= seen) {\n subscriber.complete();\n }\n }\n }));\n });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function defaultIfEmpty(defaultValue) {\n return operate((source, subscriber) => {\n let hasValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n hasValue = true;\n subscriber.next(value);\n }, () => {\n if (!hasValue) {\n subscriber.next(defaultValue);\n }\n subscriber.complete();\n }));\n });\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function throwIfEmpty(errorFactory = defaultErrorFactory) {\n return operate((source, subscriber) => {\n let hasValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n hasValue = true;\n subscriber.next(value);\n }, () => (hasValue ? subscriber.complete() : subscriber.error(errorFactory()))));\n });\n}\nfunction defaultErrorFactory() {\n return new EmptyError();\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\nexport function first(predicate, defaultValue) {\n const hasDefaultValue = arguments.length >= 2;\n return (source) => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));\n}\n","import { isFunction } from '../util/isFunction';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { identity } from '../util/identity';\nexport function tap(observerOrNext, error, complete) {\n const tapObserver = isFunction(observerOrNext) || error || complete\n ?\n { next: observerOrNext, error, complete }\n : observerOrNext;\n return tapObserver\n ? operate((source, subscriber) => {\n var _a;\n (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n let isUnsub = true;\n source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n var _a;\n (_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value);\n subscriber.next(value);\n }, () => {\n var _a;\n isUnsub = false;\n (_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n subscriber.complete();\n }, (err) => {\n var _a;\n isUnsub = false;\n (_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err);\n subscriber.error(err);\n }, () => {\n var _a, _b;\n if (isUnsub) {\n (_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n }\n (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);\n }));\n })\n :\n identity;\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { operate } from '../util/lift';\nexport function catchError(selector) {\n return operate((source, subscriber) => {\n let innerSub = null;\n let syncUnsub = false;\n let handledResult;\n innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, (err) => {\n handledResult = innerFrom(selector(err, catchError(selector)(source)));\n if (innerSub) {\n innerSub.unsubscribe();\n innerSub = null;\n handledResult.subscribe(subscriber);\n }\n else {\n syncUnsub = true;\n }\n }));\n if (syncUnsub) {\n innerSub.unsubscribe();\n innerSub = null;\n handledResult.subscribe(subscriber);\n }\n });\n}\n","import { operate } from '../util/lift';\nimport { scanInternals } from './scanInternals';\nexport function scan(accumulator, seed) {\n return operate(scanInternals(accumulator, seed, arguments.length >= 2, true));\n}\n","import { createOperatorSubscriber } from './OperatorSubscriber';\nexport function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {\n return (source, subscriber) => {\n let hasState = hasSeed;\n let state = seed;\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n const i = index++;\n state = hasState\n ?\n accumulator(state, value, i)\n :\n ((hasState = true), value);\n emitOnNext && subscriber.next(state);\n }, emitBeforeComplete &&\n (() => {\n hasState && subscriber.next(state);\n subscriber.complete();\n })));\n };\n}\n","import { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function takeLast(count) {\n return count <= 0\n ? () => EMPTY\n : operate((source, subscriber) => {\n let buffer = [];\n source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n buffer.push(value);\n count < buffer.length && buffer.shift();\n }, () => {\n for (const value of buffer) {\n subscriber.next(value);\n }\n subscriber.complete();\n }, undefined, () => {\n buffer = null;\n }));\n });\n}\n","/**\n * @license Angular v19.1.4\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { ɵisPromise, ɵRuntimeError, Injectable, createEnvironmentInjector, ɵisNgModule, isStandalone, InjectionToken, EventEmitter, input, inject, ViewContainerRef, ChangeDetectorRef, Directive, Input, Output, reflectComponentType, ɵisInjectable, runInInjectionContext, Component, Compiler, NgModuleFactory, NgZone, afterNextRender, EnvironmentInjector, DestroyRef, ɵConsole, ɵPendingTasksInternal, ɵɵsanitizeUrlOrResourceUrl, booleanAttribute, Attribute, HostBinding, HostListener, Optional, ContentChildren, makeEnvironmentProviders, APP_BOOTSTRAP_LISTENER, ENVIRONMENT_INITIALIZER, Injector, ApplicationRef, InjectFlags, APP_INITIALIZER, SkipSelf, NgModule, Version, ɵpublishExternalGlobalUtil } from '@angular/core';\nimport { isObservable, from, of, BehaviorSubject, combineLatest, EmptyError, concat, defer, pipe, throwError, EMPTY, ConnectableObservable, Subject, Subscription } from 'rxjs';\nimport * as i3 from '@angular/common';\nimport { DOCUMENT, Location, ViewportScroller, LOCATION_INITIALIZED, LocationStrategy, HashLocationStrategy, PathLocationStrategy } from '@angular/common';\nimport { map, switchMap, take, startWith, filter, mergeMap, first, concatMap, tap, catchError, scan, defaultIfEmpty, last as last$1, takeLast, finalize, refCount, takeUntil, mergeAll } from 'rxjs/operators';\nimport * as i1 from '@angular/platform-browser';\n\n/**\n * The primary routing outlet.\n *\n * @publicApi\n */\nconst PRIMARY_OUTLET = 'primary';\n/**\n * A private symbol used to store the value of `Route.title` inside the `Route.data` if it is a\n * static string or `Route.resolve` if anything else. This allows us to reuse the existing route\n * data/resolvers to support the title feature without new instrumentation in the `Router` pipeline.\n */\nconst RouteTitleKey = /* @__PURE__ */ Symbol('RouteTitle');\nclass ParamsAsMap {\n params;\n constructor(params) {\n this.params = params || {};\n }\n has(name) {\n return Object.prototype.hasOwnProperty.call(this.params, name);\n }\n get(name) {\n if (this.has(name)) {\n const v = this.params[name];\n return Array.isArray(v) ? v[0] : v;\n }\n return null;\n }\n getAll(name) {\n if (this.has(name)) {\n const v = this.params[name];\n return Array.isArray(v) ? v : [v];\n }\n return [];\n }\n get keys() {\n return Object.keys(this.params);\n }\n}\n/**\n * Converts a `Params` instance to a `ParamMap`.\n * @param params The instance to convert.\n * @returns The new map instance.\n *\n * @publicApi\n */\nfunction convertToParamMap(params) {\n return new ParamsAsMap(params);\n}\n/**\n * Matches the route configuration (`route`) against the actual URL (`segments`).\n *\n * When no matcher is defined on a `Route`, this is the matcher used by the Router by default.\n *\n * @param segments The remaining unmatched segments in the current navigation\n * @param segmentGroup The current segment group being matched\n * @param route The `Route` to match against.\n *\n * @see {@link UrlMatchResult}\n * @see {@link Route}\n *\n * @returns The resulting match information or `null` if the `route` should not match.\n * @publicApi\n */\nfunction defaultUrlMatcher(segments, segmentGroup, route) {\n const parts = route.path.split('/');\n if (parts.length > segments.length) {\n // The actual URL is shorter than the config, no match\n return null;\n }\n if (route.pathMatch === 'full' &&\n (segmentGroup.hasChildren() || parts.length < segments.length)) {\n // The config is longer than the actual URL but we are looking for a full match, return null\n return null;\n }\n const posParams = {};\n // Check each config part against the actual URL\n for (let index = 0; index < parts.length; index++) {\n const part = parts[index];\n const segment = segments[index];\n const isParameter = part[0] === ':';\n if (isParameter) {\n posParams[part.substring(1)] = segment;\n }\n else if (part !== segment.path) {\n // The actual URL part does not match the config, no match\n return null;\n }\n }\n return { consumed: segments.slice(0, parts.length), posParams };\n}\n\nfunction shallowEqualArrays(a, b) {\n if (a.length !== b.length)\n return false;\n for (let i = 0; i < a.length; ++i) {\n if (!shallowEqual(a[i], b[i]))\n return false;\n }\n return true;\n}\nfunction shallowEqual(a, b) {\n // While `undefined` should never be possible, it would sometimes be the case in IE 11\n // and pre-chromium Edge. The check below accounts for this edge case.\n const k1 = a ? getDataKeys(a) : undefined;\n const k2 = b ? getDataKeys(b) : undefined;\n if (!k1 || !k2 || k1.length != k2.length) {\n return false;\n }\n let key;\n for (let i = 0; i < k1.length; i++) {\n key = k1[i];\n if (!equalArraysOrString(a[key], b[key])) {\n return false;\n }\n }\n return true;\n}\n/**\n * Gets the keys of an object, including `symbol` keys.\n */\nfunction getDataKeys(obj) {\n return [...Object.keys(obj), ...Object.getOwnPropertySymbols(obj)];\n}\n/**\n * Test equality for arrays of strings or a string.\n */\nfunction equalArraysOrString(a, b) {\n if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length)\n return false;\n const aSorted = [...a].sort();\n const bSorted = [...b].sort();\n return aSorted.every((val, index) => bSorted[index] === val);\n }\n else {\n return a === b;\n }\n}\n/**\n * Return the last element of an array.\n */\nfunction last(a) {\n return a.length > 0 ? a[a.length - 1] : null;\n}\nfunction wrapIntoObservable(value) {\n if (isObservable(value)) {\n return value;\n }\n if (ɵisPromise(value)) {\n // Use `Promise.resolve()` to wrap promise-like instances.\n // Required ie when a Resolver returns a AngularJS `$q` promise to correctly trigger the\n // change detection.\n return from(Promise.resolve(value));\n }\n return of(value);\n}\n\nconst pathCompareMap = {\n 'exact': equalSegmentGroups,\n 'subset': containsSegmentGroup,\n};\nconst paramCompareMap = {\n 'exact': equalParams,\n 'subset': containsParams,\n 'ignored': () => true,\n};\nfunction containsTree(container, containee, options) {\n return (pathCompareMap[options.paths](container.root, containee.root, options.matrixParams) &&\n paramCompareMap[options.queryParams](container.queryParams, containee.queryParams) &&\n !(options.fragment === 'exact' && container.fragment !== containee.fragment));\n}\nfunction equalParams(container, containee) {\n // TODO: This does not handle array params correctly.\n return shallowEqual(container, containee);\n}\nfunction equalSegmentGroups(container, containee, matrixParams) {\n if (!equalPath(container.segments, containee.segments))\n return false;\n if (!matrixParamsMatch(container.segments, containee.segments, matrixParams)) {\n return false;\n }\n if (container.numberOfChildren !== containee.numberOfChildren)\n return false;\n for (const c in containee.children) {\n if (!container.children[c])\n return false;\n if (!equalSegmentGroups(container.children[c], containee.children[c], matrixParams))\n return false;\n }\n return true;\n}\nfunction containsParams(container, containee) {\n return (Object.keys(containee).length <= Object.keys(container).length &&\n Object.keys(containee).every((key) => equalArraysOrString(container[key], containee[key])));\n}\nfunction containsSegmentGroup(container, containee, matrixParams) {\n return containsSegmentGroupHelper(container, containee, containee.segments, matrixParams);\n}\nfunction containsSegmentGroupHelper(container, containee, containeePaths, matrixParams) {\n if (container.segments.length > containeePaths.length) {\n const current = container.segments.slice(0, containeePaths.length);\n if (!equalPath(current, containeePaths))\n return false;\n if (containee.hasChildren())\n return false;\n if (!matrixParamsMatch(current, containeePaths, matrixParams))\n return false;\n return true;\n }\n else if (container.segments.length === containeePaths.length) {\n if (!equalPath(container.segments, containeePaths))\n return false;\n if (!matrixParamsMatch(container.segments, containeePaths, matrixParams))\n return false;\n for (const c in containee.children) {\n if (!container.children[c])\n return false;\n if (!containsSegmentGroup(container.children[c], containee.children[c], matrixParams)) {\n return false;\n }\n }\n return true;\n }\n else {\n const current = containeePaths.slice(0, container.segments.length);\n const next = containeePaths.slice(container.segments.length);\n if (!equalPath(container.segments, current))\n return false;\n if (!matrixParamsMatch(container.segments, current, matrixParams))\n return false;\n if (!container.children[PRIMARY_OUTLET])\n return false;\n return containsSegmentGroupHelper(container.children[PRIMARY_OUTLET], containee, next, matrixParams);\n }\n}\nfunction matrixParamsMatch(containerPaths, containeePaths, options) {\n return containeePaths.every((containeeSegment, i) => {\n return paramCompareMap[options](containerPaths[i].parameters, containeeSegment.parameters);\n });\n}\n/**\n * @description\n *\n * Represents the parsed URL.\n *\n * Since a router state is a tree, and the URL is nothing but a serialized state, the URL is a\n * serialized tree.\n * UrlTree is a data structure that provides a lot of affordances in dealing with URLs\n *\n * @usageNotes\n * ### Example\n *\n * ```ts\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n * constructor(router: Router) {\n * const tree: UrlTree =\n * router.parseUrl('/team/33/(user/victor//support:help)?debug=true#fragment');\n * const f = tree.fragment; // return 'fragment'\n * const q = tree.queryParams; // returns {debug: 'true'}\n * const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];\n * const s: UrlSegment[] = g.segments; // returns 2 segments 'team' and '33'\n * g.children[PRIMARY_OUTLET].segments; // returns 2 segments 'user' and 'victor'\n * g.children['support'].segments; // return 1 segment 'help'\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass UrlTree {\n root;\n queryParams;\n fragment;\n /** @internal */\n _queryParamMap;\n constructor(\n /** The root segment group of the URL tree */\n root = new UrlSegmentGroup([], {}), \n /** The query params of the URL */\n queryParams = {}, \n /** The fragment of the URL */\n fragment = null) {\n this.root = root;\n this.queryParams = queryParams;\n this.fragment = fragment;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (root.segments.length > 0) {\n throw new ɵRuntimeError(4015 /* RuntimeErrorCode.INVALID_ROOT_URL_SEGMENT */, 'The root `UrlSegmentGroup` should not contain `segments`. ' +\n 'Instead, these segments belong in the `children` so they can be associated with a named outlet.');\n }\n }\n }\n get queryParamMap() {\n this._queryParamMap ??= convertToParamMap(this.queryParams);\n return this._queryParamMap;\n }\n /** @docsNotRequired */\n toString() {\n return DEFAULT_SERIALIZER.serialize(this);\n }\n}\n/**\n * @description\n *\n * Represents the parsed URL segment group.\n *\n * See `UrlTree` for more information.\n *\n * @publicApi\n */\nclass UrlSegmentGroup {\n segments;\n children;\n /** The parent node in the url tree */\n parent = null;\n constructor(\n /** The URL segments of this group. See `UrlSegment` for more information */\n segments, \n /** The list of children of this group */\n children) {\n this.segments = segments;\n this.children = children;\n Object.values(children).forEach((v) => (v.parent = this));\n }\n /** Whether the segment has child segments */\n hasChildren() {\n return this.numberOfChildren > 0;\n }\n /** Number of child segments */\n get numberOfChildren() {\n return Object.keys(this.children).length;\n }\n /** @docsNotRequired */\n toString() {\n return serializePaths(this);\n }\n}\n/**\n * @description\n *\n * Represents a single URL segment.\n *\n * A UrlSegment is a part of a URL between the two slashes. It contains a path and the matrix\n * parameters associated with the segment.\n *\n * @usageNotes\n * ### Example\n *\n * ```ts\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n * constructor(router: Router) {\n * const tree: UrlTree = router.parseUrl('/team;id=33');\n * const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];\n * const s: UrlSegment[] = g.segments;\n * s[0].path; // returns 'team'\n * s[0].parameters; // returns {id: 33}\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass UrlSegment {\n path;\n parameters;\n /** @internal */\n _parameterMap;\n constructor(\n /** The path part of a URL segment */\n path, \n /** The matrix parameters associated with a segment */\n parameters) {\n this.path = path;\n this.parameters = parameters;\n }\n get parameterMap() {\n this._parameterMap ??= convertToParamMap(this.parameters);\n return this._parameterMap;\n }\n /** @docsNotRequired */\n toString() {\n return serializePath(this);\n }\n}\nfunction equalSegments(as, bs) {\n return equalPath(as, bs) && as.every((a, i) => shallowEqual(a.parameters, bs[i].parameters));\n}\nfunction equalPath(as, bs) {\n if (as.length !== bs.length)\n return false;\n return as.every((a, i) => a.path === bs[i].path);\n}\nfunction mapChildrenIntoArray(segment, fn) {\n let res = [];\n Object.entries(segment.children).forEach(([childOutlet, child]) => {\n if (childOutlet === PRIMARY_OUTLET) {\n res = res.concat(fn(child, childOutlet));\n }\n });\n Object.entries(segment.children).forEach(([childOutlet, child]) => {\n if (childOutlet !== PRIMARY_OUTLET) {\n res = res.concat(fn(child, childOutlet));\n }\n });\n return res;\n}\n/**\n * @description\n *\n * Serializes and deserializes a URL string into a URL tree.\n *\n * The url serialization strategy is customizable. You can\n * make all URLs case insensitive by providing a custom UrlSerializer.\n *\n * See `DefaultUrlSerializer` for an example of a URL serializer.\n *\n * @publicApi\n */\nclass UrlSerializer {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: UrlSerializer, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]\n }] });\n/**\n * @description\n *\n * A default implementation of the `UrlSerializer`.\n *\n * Example URLs:\n *\n * ```\n * /inbox/33(popup:compose)\n * /inbox/33;open=true/messages/44\n * ```\n *\n * DefaultUrlSerializer uses parentheses to serialize secondary segments (e.g., popup:compose), the\n * colon syntax to specify the outlet, and the ';parameter=value' syntax (e.g., open=true) to\n * specify route specific parameters.\n *\n * @publicApi\n */\nclass DefaultUrlSerializer {\n /** Parses a url into a `UrlTree` */\n parse(url) {\n const p = new UrlParser(url);\n return new UrlTree(p.parseRootSegment(), p.parseQueryParams(), p.parseFragment());\n }\n /** Converts a `UrlTree` into a url */\n serialize(tree) {\n const segment = `/${serializeSegment(tree.root, true)}`;\n const query = serializeQueryParams(tree.queryParams);\n const fragment = typeof tree.fragment === `string` ? `#${encodeUriFragment(tree.fragment)}` : '';\n return `${segment}${query}${fragment}`;\n }\n}\nconst DEFAULT_SERIALIZER = new DefaultUrlSerializer();\nfunction serializePaths(segment) {\n return segment.segments.map((p) => serializePath(p)).join('/');\n}\nfunction serializeSegment(segment, root) {\n if (!segment.hasChildren()) {\n return serializePaths(segment);\n }\n if (root) {\n const primary = segment.children[PRIMARY_OUTLET]\n ? serializeSegment(segment.children[PRIMARY_OUTLET], false)\n : '';\n const children = [];\n Object.entries(segment.children).forEach(([k, v]) => {\n if (k !== PRIMARY_OUTLET) {\n children.push(`${k}:${serializeSegment(v, false)}`);\n }\n });\n return children.length > 0 ? `${primary}(${children.join('//')})` : primary;\n }\n else {\n const children = mapChildrenIntoArray(segment, (v, k) => {\n if (k === PRIMARY_OUTLET) {\n return [serializeSegment(segment.children[PRIMARY_OUTLET], false)];\n }\n return [`${k}:${serializeSegment(v, false)}`];\n });\n // use no parenthesis if the only child is a primary outlet route\n if (Object.keys(segment.children).length === 1 && segment.children[PRIMARY_OUTLET] != null) {\n return `${serializePaths(segment)}/${children[0]}`;\n }\n return `${serializePaths(segment)}/(${children.join('//')})`;\n }\n}\n/**\n * Encodes a URI string with the default encoding. This function will only ever be called from\n * `encodeUriQuery` or `encodeUriSegment` as it's the base set of encodings to be used. We need\n * a custom encoding because encodeURIComponent is too aggressive and encodes stuff that doesn't\n * have to be encoded per https://url.spec.whatwg.org.\n */\nfunction encodeUriString(s) {\n return encodeURIComponent(s)\n .replace(/%40/g, '@')\n .replace(/%3A/gi, ':')\n .replace(/%24/g, '$')\n .replace(/%2C/gi, ',');\n}\n/**\n * This function should be used to encode both keys and values in a query string key/value. In\n * the following URL, you need to call encodeUriQuery on \"k\" and \"v\":\n *\n * http://www.site.org/html;mk=mv?k=v#f\n */\nfunction encodeUriQuery(s) {\n return encodeUriString(s).replace(/%3B/gi, ';');\n}\n/**\n * This function should be used to encode a URL fragment. In the following URL, you need to call\n * encodeUriFragment on \"f\":\n *\n * http://www.site.org/html;mk=mv?k=v#f\n */\nfunction encodeUriFragment(s) {\n return encodeURI(s);\n}\n/**\n * This function should be run on any URI segment as well as the key and value in a key/value\n * pair for matrix params. In the following URL, you need to call encodeUriSegment on \"html\",\n * \"mk\", and \"mv\":\n *\n * http://www.site.org/html;mk=mv?k=v#f\n */\nfunction encodeUriSegment(s) {\n return encodeUriString(s).replace(/\\(/g, '%28').replace(/\\)/g, '%29').replace(/%26/gi, '&');\n}\nfunction decode(s) {\n return decodeURIComponent(s);\n}\n// Query keys/values should have the \"+\" replaced first, as \"+\" in a query string is \" \".\n// decodeURIComponent function will not decode \"+\" as a space.\nfunction decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n}\nfunction serializePath(path) {\n return `${encodeUriSegment(path.path)}${serializeMatrixParams(path.parameters)}`;\n}\nfunction serializeMatrixParams(params) {\n return Object.entries(params)\n .map(([key, value]) => `;${encodeUriSegment(key)}=${encodeUriSegment(value)}`)\n .join('');\n}\nfunction serializeQueryParams(params) {\n const strParams = Object.entries(params)\n .map(([name, value]) => {\n return Array.isArray(value)\n ? value.map((v) => `${encodeUriQuery(name)}=${encodeUriQuery(v)}`).join('&')\n : `${encodeUriQuery(name)}=${encodeUriQuery(value)}`;\n })\n .filter((s) => s);\n return strParams.length ? `?${strParams.join('&')}` : '';\n}\nconst SEGMENT_RE = /^[^\\/()?;#]+/;\nfunction matchSegments(str) {\n const match = str.match(SEGMENT_RE);\n return match ? match[0] : '';\n}\nconst MATRIX_PARAM_SEGMENT_RE = /^[^\\/()?;=#]+/;\nfunction matchMatrixKeySegments(str) {\n const match = str.match(MATRIX_PARAM_SEGMENT_RE);\n return match ? match[0] : '';\n}\nconst QUERY_PARAM_RE = /^[^=?&#]+/;\n// Return the name of the query param at the start of the string or an empty string\nfunction matchQueryParams(str) {\n const match = str.match(QUERY_PARAM_RE);\n return match ? match[0] : '';\n}\nconst QUERY_PARAM_VALUE_RE = /^[^&#]+/;\n// Return the value of the query param at the start of the string or an empty string\nfunction matchUrlQueryParamValue(str) {\n const match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}\nclass UrlParser {\n url;\n remaining;\n constructor(url) {\n this.url = url;\n this.remaining = url;\n }\n parseRootSegment() {\n this.consumeOptional('/');\n if (this.remaining === '' || this.peekStartsWith('?') || this.peekStartsWith('#')) {\n return new UrlSegmentGroup([], {});\n }\n // The root segment group never has segments\n return new UrlSegmentGroup([], this.parseChildren());\n }\n parseQueryParams() {\n const params = {};\n if (this.consumeOptional('?')) {\n do {\n this.parseQueryParam(params);\n } while (this.consumeOptional('&'));\n }\n return params;\n }\n parseFragment() {\n return this.consumeOptional('#') ? decodeURIComponent(this.remaining) : null;\n }\n parseChildren() {\n if (this.remaining === '') {\n return {};\n }\n this.consumeOptional('/');\n const segments = [];\n if (!this.peekStartsWith('(')) {\n segments.push(this.parseSegment());\n }\n while (this.peekStartsWith('/') && !this.peekStartsWith('//') && !this.peekStartsWith('/(')) {\n this.capture('/');\n segments.push(this.parseSegment());\n }\n let children = {};\n if (this.peekStartsWith('/(')) {\n this.capture('/');\n children = this.parseParens(true);\n }\n let res = {};\n if (this.peekStartsWith('(')) {\n res = this.parseParens(false);\n }\n if (segments.length > 0 || Object.keys(children).length > 0) {\n res[PRIMARY_OUTLET] = new UrlSegmentGroup(segments, children);\n }\n return res;\n }\n // parse a segment with its matrix parameters\n // ie `name;k1=v1;k2`\n parseSegment() {\n const path = matchSegments(this.remaining);\n if (path === '' && this.peekStartsWith(';')) {\n throw new ɵRuntimeError(4009 /* RuntimeErrorCode.EMPTY_PATH_WITH_PARAMS */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `Empty path url segment cannot have parameters: '${this.remaining}'.`);\n }\n this.capture(path);\n return new UrlSegment(decode(path), this.parseMatrixParams());\n }\n parseMatrixParams() {\n const params = {};\n while (this.consumeOptional(';')) {\n this.parseParam(params);\n }\n return params;\n }\n parseParam(params) {\n const key = matchMatrixKeySegments(this.remaining);\n if (!key) {\n return;\n }\n this.capture(key);\n let value = '';\n if (this.consumeOptional('=')) {\n const valueMatch = matchSegments(this.remaining);\n if (valueMatch) {\n value = valueMatch;\n this.capture(value);\n }\n }\n params[decode(key)] = decode(value);\n }\n // Parse a single query parameter `name[=value]`\n parseQueryParam(params) {\n const key = matchQueryParams(this.remaining);\n if (!key) {\n return;\n }\n this.capture(key);\n let value = '';\n if (this.consumeOptional('=')) {\n const valueMatch = matchUrlQueryParamValue(this.remaining);\n if (valueMatch) {\n value = valueMatch;\n this.capture(value);\n }\n }\n const decodedKey = decodeQuery(key);\n const decodedVal = decodeQuery(value);\n if (params.hasOwnProperty(decodedKey)) {\n // Append to existing values\n let currentVal = params[decodedKey];\n if (!Array.isArray(currentVal)) {\n currentVal = [currentVal];\n params[decodedKey] = currentVal;\n }\n currentVal.push(decodedVal);\n }\n else {\n // Create a new value\n params[decodedKey] = decodedVal;\n }\n }\n // parse `(a/b//outlet_name:c/d)`\n parseParens(allowPrimary) {\n const segments = {};\n this.capture('(');\n while (!this.consumeOptional(')') && this.remaining.length > 0) {\n const path = matchSegments(this.remaining);\n const next = this.remaining[path.length];\n // if is is not one of these characters, then the segment was unescaped\n // or the group was not closed\n if (next !== '/' && next !== ')' && next !== ';') {\n throw new ɵRuntimeError(4010 /* RuntimeErrorCode.UNPARSABLE_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Cannot parse url '${this.url}'`);\n }\n let outletName = undefined;\n if (path.indexOf(':') > -1) {\n outletName = path.slice(0, path.indexOf(':'));\n this.capture(outletName);\n this.capture(':');\n }\n else if (allowPrimary) {\n outletName = PRIMARY_OUTLET;\n }\n const children = this.parseChildren();\n segments[outletName] =\n Object.keys(children).length === 1\n ? children[PRIMARY_OUTLET]\n : new UrlSegmentGroup([], children);\n this.consumeOptional('//');\n }\n return segments;\n }\n peekStartsWith(str) {\n return this.remaining.startsWith(str);\n }\n // Consumes the prefix when it is present and returns whether it has been consumed\n consumeOptional(str) {\n if (this.peekStartsWith(str)) {\n this.remaining = this.remaining.substring(str.length);\n return true;\n }\n return false;\n }\n capture(str) {\n if (!this.consumeOptional(str)) {\n throw new ɵRuntimeError(4011 /* RuntimeErrorCode.UNEXPECTED_VALUE_IN_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Expected \"${str}\".`);\n }\n }\n}\nfunction createRoot(rootCandidate) {\n return rootCandidate.segments.length > 0\n ? new UrlSegmentGroup([], { [PRIMARY_OUTLET]: rootCandidate })\n : rootCandidate;\n}\n/**\n * Recursively\n * - merges primary segment children into their parents\n * - drops empty children (those which have no segments and no children themselves). This latter\n * prevents serializing a group into something like `/a(aux:)`, where `aux` is an empty child\n * segment.\n * - merges named outlets without a primary segment sibling into the children. This prevents\n * serializing a URL like `//(a:a)(b:b) instead of `/(a:a//b:b)` when the aux b route lives on the\n * root but the `a` route lives under an empty path primary route.\n */\nfunction squashSegmentGroup(segmentGroup) {\n const newChildren = {};\n for (const [childOutlet, child] of Object.entries(segmentGroup.children)) {\n const childCandidate = squashSegmentGroup(child);\n // moves named children in an empty path primary child into this group\n if (childOutlet === PRIMARY_OUTLET &&\n childCandidate.segments.length === 0 &&\n childCandidate.hasChildren()) {\n for (const [grandChildOutlet, grandChild] of Object.entries(childCandidate.children)) {\n newChildren[grandChildOutlet] = grandChild;\n }\n } // don't add empty children\n else if (childCandidate.segments.length > 0 || childCandidate.hasChildren()) {\n newChildren[childOutlet] = childCandidate;\n }\n }\n const s = new UrlSegmentGroup(segmentGroup.segments, newChildren);\n return mergeTrivialChildren(s);\n}\n/**\n * When possible, merges the primary outlet child into the parent `UrlSegmentGroup`.\n *\n * When a segment group has only one child which is a primary outlet, merges that child into the\n * parent. That is, the child segment group's segments are merged into the `s` and the child's\n * children become the children of `s`. Think of this like a 'squash', merging the child segment\n * group into the parent.\n */\nfunction mergeTrivialChildren(s) {\n if (s.numberOfChildren === 1 && s.children[PRIMARY_OUTLET]) {\n const c = s.children[PRIMARY_OUTLET];\n return new UrlSegmentGroup(s.segments.concat(c.segments), c.children);\n }\n return s;\n}\nfunction isUrlTree(v) {\n return v instanceof UrlTree;\n}\n\n/**\n * Creates a `UrlTree` relative to an `ActivatedRouteSnapshot`.\n *\n * @publicApi\n *\n *\n * @param relativeTo The `ActivatedRouteSnapshot` to apply the commands to\n * @param commands An array of URL fragments with which to construct the new URL tree.\n * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path\n * segments, followed by the parameters for each segment.\n * The fragments are applied to the one provided in the `relativeTo` parameter.\n * @param queryParams The query parameters for the `UrlTree`. `null` if the `UrlTree` does not have\n * any query parameters.\n * @param fragment The fragment for the `UrlTree`. `null` if the `UrlTree` does not have a fragment.\n *\n * @usageNotes\n *\n * ```ts\n * // create /team/33/user/11\n * createUrlTreeFromSnapshot(snapshot, ['/team', 33, 'user', 11]);\n *\n * // create /team/33;expand=true/user/11\n * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {expand: true}, 'user', 11]);\n *\n * // you can collapse static segments like this (this works only with the first passed-in value):\n * createUrlTreeFromSnapshot(snapshot, ['/team/33/user', userId]);\n *\n * // If the first segment can contain slashes, and you do not want the router to split it,\n * // you can do the following:\n * createUrlTreeFromSnapshot(snapshot, [{segmentPath: '/one/two'}]);\n *\n * // create /team/33/(user/11//right:chat)\n * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {outlets: {primary: 'user/11', right:\n * 'chat'}}], null, null);\n *\n * // remove the right secondary node\n * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {outlets: {primary: 'user/11', right: null}}]);\n *\n * // For the examples below, assume the current URL is for the `/team/33/user/11` and the\n * `ActivatedRouteSnapshot` points to `user/11`:\n *\n * // navigate to /team/33/user/11/details\n * createUrlTreeFromSnapshot(snapshot, ['details']);\n *\n * // navigate to /team/33/user/22\n * createUrlTreeFromSnapshot(snapshot, ['../22']);\n *\n * // navigate to /team/44/user/22\n * createUrlTreeFromSnapshot(snapshot, ['../../team/44/user/22']);\n * ```\n */\nfunction createUrlTreeFromSnapshot(relativeTo, commands, queryParams = null, fragment = null) {\n const relativeToUrlSegmentGroup = createSegmentGroupFromRoute(relativeTo);\n return createUrlTreeFromSegmentGroup(relativeToUrlSegmentGroup, commands, queryParams, fragment);\n}\nfunction createSegmentGroupFromRoute(route) {\n let targetGroup;\n function createSegmentGroupFromRouteRecursive(currentRoute) {\n const childOutlets = {};\n for (const childSnapshot of currentRoute.children) {\n const root = createSegmentGroupFromRouteRecursive(childSnapshot);\n childOutlets[childSnapshot.outlet] = root;\n }\n const segmentGroup = new UrlSegmentGroup(currentRoute.url, childOutlets);\n if (currentRoute === route) {\n targetGroup = segmentGroup;\n }\n return segmentGroup;\n }\n const rootCandidate = createSegmentGroupFromRouteRecursive(route.root);\n const rootSegmentGroup = createRoot(rootCandidate);\n return targetGroup ?? rootSegmentGroup;\n}\nfunction createUrlTreeFromSegmentGroup(relativeTo, commands, queryParams, fragment) {\n let root = relativeTo;\n while (root.parent) {\n root = root.parent;\n }\n // There are no commands so the `UrlTree` goes to the same path as the one created from the\n // `UrlSegmentGroup`. All we need to do is update the `queryParams` and `fragment` without\n // applying any other logic.\n if (commands.length === 0) {\n return tree(root, root, root, queryParams, fragment);\n }\n const nav = computeNavigation(commands);\n if (nav.toRoot()) {\n return tree(root, root, new UrlSegmentGroup([], {}), queryParams, fragment);\n }\n const position = findStartingPositionForTargetGroup(nav, root, relativeTo);\n const newSegmentGroup = position.processChildren\n ? updateSegmentGroupChildren(position.segmentGroup, position.index, nav.commands)\n : updateSegmentGroup(position.segmentGroup, position.index, nav.commands);\n return tree(root, position.segmentGroup, newSegmentGroup, queryParams, fragment);\n}\nfunction isMatrixParams(command) {\n return typeof command === 'object' && command != null && !command.outlets && !command.segmentPath;\n}\n/**\n * Determines if a given command has an `outlets` map. When we encounter a command\n * with an outlets k/v map, we need to apply each outlet individually to the existing segment.\n */\nfunction isCommandWithOutlets(command) {\n return typeof command === 'object' && command != null && command.outlets;\n}\nfunction tree(oldRoot, oldSegmentGroup, newSegmentGroup, queryParams, fragment) {\n let qp = {};\n if (queryParams) {\n Object.entries(queryParams).forEach(([name, value]) => {\n qp[name] = Array.isArray(value) ? value.map((v) => `${v}`) : `${value}`;\n });\n }\n let rootCandidate;\n if (oldRoot === oldSegmentGroup) {\n rootCandidate = newSegmentGroup;\n }\n else {\n rootCandidate = replaceSegment(oldRoot, oldSegmentGroup, newSegmentGroup);\n }\n const newRoot = createRoot(squashSegmentGroup(rootCandidate));\n return new UrlTree(newRoot, qp, fragment);\n}\n/**\n * Replaces the `oldSegment` which is located in some child of the `current` with the `newSegment`.\n * This also has the effect of creating new `UrlSegmentGroup` copies to update references. This\n * shouldn't be necessary but the fallback logic for an invalid ActivatedRoute in the creation uses\n * the Router's current url tree. If we don't create new segment groups, we end up modifying that\n * value.\n */\nfunction replaceSegment(current, oldSegment, newSegment) {\n const children = {};\n Object.entries(current.children).forEach(([outletName, c]) => {\n if (c === oldSegment) {\n children[outletName] = newSegment;\n }\n else {\n children[outletName] = replaceSegment(c, oldSegment, newSegment);\n }\n });\n return new UrlSegmentGroup(current.segments, children);\n}\nclass Navigation {\n isAbsolute;\n numberOfDoubleDots;\n commands;\n constructor(isAbsolute, numberOfDoubleDots, commands) {\n this.isAbsolute = isAbsolute;\n this.numberOfDoubleDots = numberOfDoubleDots;\n this.commands = commands;\n if (isAbsolute && commands.length > 0 && isMatrixParams(commands[0])) {\n throw new ɵRuntimeError(4003 /* RuntimeErrorCode.ROOT_SEGMENT_MATRIX_PARAMS */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'Root segment cannot have matrix parameters');\n }\n const cmdWithOutlet = commands.find(isCommandWithOutlets);\n if (cmdWithOutlet && cmdWithOutlet !== last(commands)) {\n throw new ɵRuntimeError(4004 /* RuntimeErrorCode.MISPLACED_OUTLETS_COMMAND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n '{outlets:{}} has to be the last command');\n }\n }\n toRoot() {\n return this.isAbsolute && this.commands.length === 1 && this.commands[0] == '/';\n }\n}\n/** Transforms commands to a normalized `Navigation` */\nfunction computeNavigation(commands) {\n if (typeof commands[0] === 'string' && commands.length === 1 && commands[0] === '/') {\n return new Navigation(true, 0, commands);\n }\n let numberOfDoubleDots = 0;\n let isAbsolute = false;\n const res = commands.reduce((res, cmd, cmdIdx) => {\n if (typeof cmd === 'object' && cmd != null) {\n if (cmd.outlets) {\n const outlets = {};\n Object.entries(cmd.outlets).forEach(([name, commands]) => {\n outlets[name] = typeof commands === 'string' ? commands.split('/') : commands;\n });\n return [...res, { outlets }];\n }\n if (cmd.segmentPath) {\n return [...res, cmd.segmentPath];\n }\n }\n if (!(typeof cmd === 'string')) {\n return [...res, cmd];\n }\n if (cmdIdx === 0) {\n cmd.split('/').forEach((urlPart, partIndex) => {\n if (partIndex == 0 && urlPart === '.') {\n // skip './a'\n }\n else if (partIndex == 0 && urlPart === '') {\n // '/a'\n isAbsolute = true;\n }\n else if (urlPart === '..') {\n // '../a'\n numberOfDoubleDots++;\n }\n else if (urlPart != '') {\n res.push(urlPart);\n }\n });\n return res;\n }\n return [...res, cmd];\n }, []);\n return new Navigation(isAbsolute, numberOfDoubleDots, res);\n}\nclass Position {\n segmentGroup;\n processChildren;\n index;\n constructor(segmentGroup, processChildren, index) {\n this.segmentGroup = segmentGroup;\n this.processChildren = processChildren;\n this.index = index;\n }\n}\nfunction findStartingPositionForTargetGroup(nav, root, target) {\n if (nav.isAbsolute) {\n return new Position(root, true, 0);\n }\n if (!target) {\n // `NaN` is used only to maintain backwards compatibility with incorrectly mocked\n // `ActivatedRouteSnapshot` in tests. In prior versions of this code, the position here was\n // determined based on an internal property that was rarely mocked, resulting in `NaN`. In\n // reality, this code path should _never_ be touched since `target` is not allowed to be falsey.\n return new Position(root, false, NaN);\n }\n if (target.parent === null) {\n return new Position(target, true, 0);\n }\n const modifier = isMatrixParams(nav.commands[0]) ? 0 : 1;\n const index = target.segments.length - 1 + modifier;\n return createPositionApplyingDoubleDots(target, index, nav.numberOfDoubleDots);\n}\nfunction createPositionApplyingDoubleDots(group, index, numberOfDoubleDots) {\n let g = group;\n let ci = index;\n let dd = numberOfDoubleDots;\n while (dd > ci) {\n dd -= ci;\n g = g.parent;\n if (!g) {\n throw new ɵRuntimeError(4005 /* RuntimeErrorCode.INVALID_DOUBLE_DOTS */, (typeof ngDevMode === 'undefined' || ngDevMode) && \"Invalid number of '../'\");\n }\n ci = g.segments.length;\n }\n return new Position(g, false, ci - dd);\n}\nfunction getOutlets(commands) {\n if (isCommandWithOutlets(commands[0])) {\n return commands[0].outlets;\n }\n return { [PRIMARY_OUTLET]: commands };\n}\nfunction updateSegmentGroup(segmentGroup, startIndex, commands) {\n segmentGroup ??= new UrlSegmentGroup([], {});\n if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\n return updateSegmentGroupChildren(segmentGroup, startIndex, commands);\n }\n const m = prefixedWith(segmentGroup, startIndex, commands);\n const slicedCommands = commands.slice(m.commandIndex);\n if (m.match && m.pathIndex < segmentGroup.segments.length) {\n const g = new UrlSegmentGroup(segmentGroup.segments.slice(0, m.pathIndex), {});\n g.children[PRIMARY_OUTLET] = new UrlSegmentGroup(segmentGroup.segments.slice(m.pathIndex), segmentGroup.children);\n return updateSegmentGroupChildren(g, 0, slicedCommands);\n }\n else if (m.match && slicedCommands.length === 0) {\n return new UrlSegmentGroup(segmentGroup.segments, {});\n }\n else if (m.match && !segmentGroup.hasChildren()) {\n return createNewSegmentGroup(segmentGroup, startIndex, commands);\n }\n else if (m.match) {\n return updateSegmentGroupChildren(segmentGroup, 0, slicedCommands);\n }\n else {\n return createNewSegmentGroup(segmentGroup, startIndex, commands);\n }\n}\nfunction updateSegmentGroupChildren(segmentGroup, startIndex, commands) {\n if (commands.length === 0) {\n return new UrlSegmentGroup(segmentGroup.segments, {});\n }\n else {\n const outlets = getOutlets(commands);\n const children = {};\n // If the set of commands applies to anything other than the primary outlet and the child\n // segment is an empty path primary segment on its own, we want to apply the commands to the\n // empty child path rather than here. The outcome is that the empty primary child is effectively\n // removed from the final output UrlTree. Imagine the following config:\n //\n // {path: '', children: [{path: '**', outlet: 'popup'}]}.\n //\n // Navigation to /(popup:a) will activate the child outlet correctly Given a follow-up\n // navigation with commands\n // ['/', {outlets: {'popup': 'b'}}], we _would not_ want to apply the outlet commands to the\n // root segment because that would result in\n // //(popup:a)(popup:b) since the outlet command got applied one level above where it appears in\n // the `ActivatedRoute` rather than updating the existing one.\n //\n // Because empty paths do not appear in the URL segments and the fact that the segments used in\n // the output `UrlTree` are squashed to eliminate these empty paths where possible\n // https://github.com/angular/angular/blob/13f10de40e25c6900ca55bd83b36bd533dacfa9e/packages/router/src/url_tree.ts#L755\n // it can be hard to determine what is the right thing to do when applying commands to a\n // `UrlSegmentGroup` that is created from an \"unsquashed\"/expanded `ActivatedRoute` tree.\n // This code effectively \"squashes\" empty path primary routes when they have no siblings on\n // the same level of the tree.\n if (Object.keys(outlets).some((o) => o !== PRIMARY_OUTLET) &&\n segmentGroup.children[PRIMARY_OUTLET] &&\n segmentGroup.numberOfChildren === 1 &&\n segmentGroup.children[PRIMARY_OUTLET].segments.length === 0) {\n const childrenOfEmptyChild = updateSegmentGroupChildren(segmentGroup.children[PRIMARY_OUTLET], startIndex, commands);\n return new UrlSegmentGroup(segmentGroup.segments, childrenOfEmptyChild.children);\n }\n Object.entries(outlets).forEach(([outlet, commands]) => {\n if (typeof commands === 'string') {\n commands = [commands];\n }\n if (commands !== null) {\n children[outlet] = updateSegmentGroup(segmentGroup.children[outlet], startIndex, commands);\n }\n });\n Object.entries(segmentGroup.children).forEach(([childOutlet, child]) => {\n if (outlets[childOutlet] === undefined) {\n children[childOutlet] = child;\n }\n });\n return new UrlSegmentGroup(segmentGroup.segments, children);\n }\n}\nfunction prefixedWith(segmentGroup, startIndex, commands) {\n let currentCommandIndex = 0;\n let currentPathIndex = startIndex;\n const noMatch = { match: false, pathIndex: 0, commandIndex: 0 };\n while (currentPathIndex < segmentGroup.segments.length) {\n if (currentCommandIndex >= commands.length)\n return noMatch;\n const path = segmentGroup.segments[currentPathIndex];\n const command = commands[currentCommandIndex];\n // Do not try to consume command as part of the prefixing if it has outlets because it can\n // contain outlets other than the one being processed. Consuming the outlets command would\n // result in other outlets being ignored.\n if (isCommandWithOutlets(command)) {\n break;\n }\n const curr = `${command}`;\n const next = currentCommandIndex < commands.length - 1 ? commands[currentCommandIndex + 1] : null;\n if (currentPathIndex > 0 && curr === undefined)\n break;\n if (curr && next && typeof next === 'object' && next.outlets === undefined) {\n if (!compare(curr, next, path))\n return noMatch;\n currentCommandIndex += 2;\n }\n else {\n if (!compare(curr, {}, path))\n return noMatch;\n currentCommandIndex++;\n }\n currentPathIndex++;\n }\n return { match: true, pathIndex: currentPathIndex, commandIndex: currentCommandIndex };\n}\nfunction createNewSegmentGroup(segmentGroup, startIndex, commands) {\n const paths = segmentGroup.segments.slice(0, startIndex);\n let i = 0;\n while (i < commands.length) {\n const command = commands[i];\n if (isCommandWithOutlets(command)) {\n const children = createNewSegmentChildren(command.outlets);\n return new UrlSegmentGroup(paths, children);\n }\n // if we start with an object literal, we need to reuse the path part from the segment\n if (i === 0 && isMatrixParams(commands[0])) {\n const p = segmentGroup.segments[startIndex];\n paths.push(new UrlSegment(p.path, stringify(commands[0])));\n i++;\n continue;\n }\n const curr = isCommandWithOutlets(command) ? command.outlets[PRIMARY_OUTLET] : `${command}`;\n const next = i < commands.length - 1 ? commands[i + 1] : null;\n if (curr && next && isMatrixParams(next)) {\n paths.push(new UrlSegment(curr, stringify(next)));\n i += 2;\n }\n else {\n paths.push(new UrlSegment(curr, {}));\n i++;\n }\n }\n return new UrlSegmentGroup(paths, {});\n}\nfunction createNewSegmentChildren(outlets) {\n const children = {};\n Object.entries(outlets).forEach(([outlet, commands]) => {\n if (typeof commands === 'string') {\n commands = [commands];\n }\n if (commands !== null) {\n children[outlet] = createNewSegmentGroup(new UrlSegmentGroup([], {}), 0, commands);\n }\n });\n return children;\n}\nfunction stringify(params) {\n const res = {};\n Object.entries(params).forEach(([k, v]) => (res[k] = `${v}`));\n return res;\n}\nfunction compare(path, params, segment) {\n return path == segment.path && shallowEqual(params, segment.parameters);\n}\n\nconst IMPERATIVE_NAVIGATION = 'imperative';\n/**\n * Identifies the type of a router event.\n *\n * @publicApi\n */\nvar EventType;\n(function (EventType) {\n EventType[EventType[\"NavigationStart\"] = 0] = \"NavigationStart\";\n EventType[EventType[\"NavigationEnd\"] = 1] = \"NavigationEnd\";\n EventType[EventType[\"NavigationCancel\"] = 2] = \"NavigationCancel\";\n EventType[EventType[\"NavigationError\"] = 3] = \"NavigationError\";\n EventType[EventType[\"RoutesRecognized\"] = 4] = \"RoutesRecognized\";\n EventType[EventType[\"ResolveStart\"] = 5] = \"ResolveStart\";\n EventType[EventType[\"ResolveEnd\"] = 6] = \"ResolveEnd\";\n EventType[EventType[\"GuardsCheckStart\"] = 7] = \"GuardsCheckStart\";\n EventType[EventType[\"GuardsCheckEnd\"] = 8] = \"GuardsCheckEnd\";\n EventType[EventType[\"RouteConfigLoadStart\"] = 9] = \"RouteConfigLoadStart\";\n EventType[EventType[\"RouteConfigLoadEnd\"] = 10] = \"RouteConfigLoadEnd\";\n EventType[EventType[\"ChildActivationStart\"] = 11] = \"ChildActivationStart\";\n EventType[EventType[\"ChildActivationEnd\"] = 12] = \"ChildActivationEnd\";\n EventType[EventType[\"ActivationStart\"] = 13] = \"ActivationStart\";\n EventType[EventType[\"ActivationEnd\"] = 14] = \"ActivationEnd\";\n EventType[EventType[\"Scroll\"] = 15] = \"Scroll\";\n EventType[EventType[\"NavigationSkipped\"] = 16] = \"NavigationSkipped\";\n})(EventType || (EventType = {}));\n/**\n * Base for events the router goes through, as opposed to events tied to a specific\n * route. Fired one time for any given navigation.\n *\n * The following code shows how a class subscribes to router events.\n *\n * ```ts\n * import {Event, RouterEvent, Router} from '@angular/router';\n *\n * class MyService {\n * constructor(public router: Router) {\n * router.events.pipe(\n * filter((e: Event | RouterEvent): e is RouterEvent => e instanceof RouterEvent)\n * ).subscribe((e: RouterEvent) => {\n * // Do something\n * });\n * }\n * }\n * ```\n *\n * @see {@link Event}\n * @see [Router events summary](guide/routing/router-reference#router-events)\n * @publicApi\n */\nclass RouterEvent {\n id;\n url;\n constructor(\n /** A unique ID that the router assigns to every router navigation. */\n id, \n /** The URL that is the destination for this navigation. */\n url) {\n this.id = id;\n this.url = url;\n }\n}\n/**\n * An event triggered when a navigation starts.\n *\n * @publicApi\n */\nclass NavigationStart extends RouterEvent {\n type = EventType.NavigationStart;\n /**\n * Identifies the call or event that triggered the navigation.\n * An `imperative` trigger is a call to `router.navigateByUrl()` or `router.navigate()`.\n *\n * @see {@link NavigationEnd}\n * @see {@link NavigationCancel}\n * @see {@link NavigationError}\n */\n navigationTrigger;\n /**\n * The navigation state that was previously supplied to the `pushState` call,\n * when the navigation is triggered by a `popstate` event. Otherwise null.\n *\n * The state object is defined by `NavigationExtras`, and contains any\n * developer-defined state value, as well as a unique ID that\n * the router assigns to every router transition/navigation.\n *\n * From the perspective of the router, the router never \"goes back\".\n * When the user clicks on the back button in the browser,\n * a new navigation ID is created.\n *\n * Use the ID in this previous-state object to differentiate between a newly created\n * state and one returned to by a `popstate` event, so that you can restore some\n * remembered state, such as scroll position.\n *\n */\n restoredState;\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n navigationTrigger = 'imperative', \n /** @docsNotRequired */\n restoredState = null) {\n super(id, url);\n this.navigationTrigger = navigationTrigger;\n this.restoredState = restoredState;\n }\n /** @docsNotRequired */\n toString() {\n return `NavigationStart(id: ${this.id}, url: '${this.url}')`;\n }\n}\n/**\n * An event triggered when a navigation ends successfully.\n *\n * @see {@link NavigationStart}\n * @see {@link NavigationCancel}\n * @see {@link NavigationError}\n *\n * @publicApi\n */\nclass NavigationEnd extends RouterEvent {\n urlAfterRedirects;\n type = EventType.NavigationEnd;\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n }\n /** @docsNotRequired */\n toString() {\n return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`;\n }\n}\n/**\n * A code for the `NavigationCancel` event of the `Router` to indicate the\n * reason a navigation failed.\n *\n * @publicApi\n */\nvar NavigationCancellationCode;\n(function (NavigationCancellationCode) {\n /**\n * A navigation failed because a guard returned a `UrlTree` to redirect.\n */\n NavigationCancellationCode[NavigationCancellationCode[\"Redirect\"] = 0] = \"Redirect\";\n /**\n * A navigation failed because a more recent navigation started.\n */\n NavigationCancellationCode[NavigationCancellationCode[\"SupersededByNewNavigation\"] = 1] = \"SupersededByNewNavigation\";\n /**\n * A navigation failed because one of the resolvers completed without emitting a value.\n */\n NavigationCancellationCode[NavigationCancellationCode[\"NoDataFromResolver\"] = 2] = \"NoDataFromResolver\";\n /**\n * A navigation failed because a guard returned `false`.\n */\n NavigationCancellationCode[NavigationCancellationCode[\"GuardRejected\"] = 3] = \"GuardRejected\";\n})(NavigationCancellationCode || (NavigationCancellationCode = {}));\n/**\n * A code for the `NavigationSkipped` event of the `Router` to indicate the\n * reason a navigation was skipped.\n *\n * @publicApi\n */\nvar NavigationSkippedCode;\n(function (NavigationSkippedCode) {\n /**\n * A navigation was skipped because the navigation URL was the same as the current Router URL.\n */\n NavigationSkippedCode[NavigationSkippedCode[\"IgnoredSameUrlNavigation\"] = 0] = \"IgnoredSameUrlNavigation\";\n /**\n * A navigation was skipped because the configured `UrlHandlingStrategy` return `false` for both\n * the current Router URL and the target of the navigation.\n *\n * @see {@link UrlHandlingStrategy}\n */\n NavigationSkippedCode[NavigationSkippedCode[\"IgnoredByUrlHandlingStrategy\"] = 1] = \"IgnoredByUrlHandlingStrategy\";\n})(NavigationSkippedCode || (NavigationSkippedCode = {}));\n/**\n * An event triggered when a navigation is canceled, directly or indirectly.\n * This can happen for several reasons including when a route guard\n * returns `false` or initiates a redirect by returning a `UrlTree`.\n *\n * @see {@link NavigationStart}\n * @see {@link NavigationEnd}\n * @see {@link NavigationError}\n *\n * @publicApi\n */\nclass NavigationCancel extends RouterEvent {\n reason;\n code;\n type = EventType.NavigationCancel;\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /**\n * A description of why the navigation was cancelled. For debug purposes only. Use `code`\n * instead for a stable cancellation reason that can be used in production.\n */\n reason, \n /**\n * A code to indicate why the navigation was canceled. This cancellation code is stable for\n * the reason and can be relied on whereas the `reason` string could change and should not be\n * used in production.\n */\n code) {\n super(id, url);\n this.reason = reason;\n this.code = code;\n }\n /** @docsNotRequired */\n toString() {\n return `NavigationCancel(id: ${this.id}, url: '${this.url}')`;\n }\n}\n/**\n * An event triggered when a navigation is skipped.\n * This can happen for a couple reasons including onSameUrlHandling\n * is set to `ignore` and the navigation URL is not different than the\n * current state.\n *\n * @publicApi\n */\nclass NavigationSkipped extends RouterEvent {\n reason;\n code;\n type = EventType.NavigationSkipped;\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /**\n * A description of why the navigation was skipped. For debug purposes only. Use `code`\n * instead for a stable skipped reason that can be used in production.\n */\n reason, \n /**\n * A code to indicate why the navigation was skipped. This code is stable for\n * the reason and can be relied on whereas the `reason` string could change and should not be\n * used in production.\n */\n code) {\n super(id, url);\n this.reason = reason;\n this.code = code;\n }\n}\n/**\n * An event triggered when a navigation fails due to an unexpected error.\n *\n * @see {@link NavigationStart}\n * @see {@link NavigationEnd}\n * @see {@link NavigationCancel}\n *\n * @publicApi\n */\nclass NavigationError extends RouterEvent {\n error;\n target;\n type = EventType.NavigationError;\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n error, \n /**\n * The target of the navigation when the error occurred.\n *\n * Note that this can be `undefined` because an error could have occurred before the\n * `RouterStateSnapshot` was created for the navigation.\n */\n target) {\n super(id, url);\n this.error = error;\n this.target = target;\n }\n /** @docsNotRequired */\n toString() {\n return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`;\n }\n}\n/**\n * An event triggered when routes are recognized.\n *\n * @publicApi\n */\nclass RoutesRecognized extends RouterEvent {\n urlAfterRedirects;\n state;\n type = EventType.RoutesRecognized;\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n }\n /** @docsNotRequired */\n toString() {\n return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n }\n}\n/**\n * An event triggered at the start of the Guard phase of routing.\n *\n * @see {@link GuardsCheckEnd}\n *\n * @publicApi\n */\nclass GuardsCheckStart extends RouterEvent {\n urlAfterRedirects;\n state;\n type = EventType.GuardsCheckStart;\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n }\n toString() {\n return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n }\n}\n/**\n * An event triggered at the end of the Guard phase of routing.\n *\n * @see {@link GuardsCheckStart}\n *\n * @publicApi\n */\nclass GuardsCheckEnd extends RouterEvent {\n urlAfterRedirects;\n state;\n shouldActivate;\n type = EventType.GuardsCheckEnd;\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state, \n /** @docsNotRequired */\n shouldActivate) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n this.shouldActivate = shouldActivate;\n }\n toString() {\n return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`;\n }\n}\n/**\n * An event triggered at the start of the Resolve phase of routing.\n *\n * Runs in the \"resolve\" phase whether or not there is anything to resolve.\n * In future, may change to only run when there are things to be resolved.\n *\n * @see {@link ResolveEnd}\n *\n * @publicApi\n */\nclass ResolveStart extends RouterEvent {\n urlAfterRedirects;\n state;\n type = EventType.ResolveStart;\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n }\n toString() {\n return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n }\n}\n/**\n * An event triggered at the end of the Resolve phase of routing.\n * @see {@link ResolveStart}\n *\n * @publicApi\n */\nclass ResolveEnd extends RouterEvent {\n urlAfterRedirects;\n state;\n type = EventType.ResolveEnd;\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n }\n toString() {\n return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n }\n}\n/**\n * An event triggered before lazy loading a route configuration.\n *\n * @see {@link RouteConfigLoadEnd}\n *\n * @publicApi\n */\nclass RouteConfigLoadStart {\n route;\n type = EventType.RouteConfigLoadStart;\n constructor(\n /** @docsNotRequired */\n route) {\n this.route = route;\n }\n toString() {\n return `RouteConfigLoadStart(path: ${this.route.path})`;\n }\n}\n/**\n * An event triggered when a route has been lazy loaded.\n *\n * @see {@link RouteConfigLoadStart}\n *\n * @publicApi\n */\nclass RouteConfigLoadEnd {\n route;\n type = EventType.RouteConfigLoadEnd;\n constructor(\n /** @docsNotRequired */\n route) {\n this.route = route;\n }\n toString() {\n return `RouteConfigLoadEnd(path: ${this.route.path})`;\n }\n}\n/**\n * An event triggered at the start of the child-activation\n * part of the Resolve phase of routing.\n * @see {@link ChildActivationEnd}\n * @see {@link ResolveStart}\n *\n * @publicApi\n */\nclass ChildActivationStart {\n snapshot;\n type = EventType.ChildActivationStart;\n constructor(\n /** @docsNotRequired */\n snapshot) {\n this.snapshot = snapshot;\n }\n toString() {\n const path = (this.snapshot.routeConfig && this.snapshot.routeConfig.path) || '';\n return `ChildActivationStart(path: '${path}')`;\n }\n}\n/**\n * An event triggered at the end of the child-activation part\n * of the Resolve phase of routing.\n * @see {@link ChildActivationStart}\n * @see {@link ResolveStart}\n * @publicApi\n */\nclass ChildActivationEnd {\n snapshot;\n type = EventType.ChildActivationEnd;\n constructor(\n /** @docsNotRequired */\n snapshot) {\n this.snapshot = snapshot;\n }\n toString() {\n const path = (this.snapshot.routeConfig && this.snapshot.routeConfig.path) || '';\n return `ChildActivationEnd(path: '${path}')`;\n }\n}\n/**\n * An event triggered at the start of the activation part\n * of the Resolve phase of routing.\n * @see {@link ActivationEnd}\n * @see {@link ResolveStart}\n *\n * @publicApi\n */\nclass ActivationStart {\n snapshot;\n type = EventType.ActivationStart;\n constructor(\n /** @docsNotRequired */\n snapshot) {\n this.snapshot = snapshot;\n }\n toString() {\n const path = (this.snapshot.routeConfig && this.snapshot.routeConfig.path) || '';\n return `ActivationStart(path: '${path}')`;\n }\n}\n/**\n * An event triggered at the end of the activation part\n * of the Resolve phase of routing.\n * @see {@link ActivationStart}\n * @see {@link ResolveStart}\n *\n * @publicApi\n */\nclass ActivationEnd {\n snapshot;\n type = EventType.ActivationEnd;\n constructor(\n /** @docsNotRequired */\n snapshot) {\n this.snapshot = snapshot;\n }\n toString() {\n const path = (this.snapshot.routeConfig && this.snapshot.routeConfig.path) || '';\n return `ActivationEnd(path: '${path}')`;\n }\n}\n/**\n * An event triggered by scrolling.\n *\n * @publicApi\n */\nclass Scroll {\n routerEvent;\n position;\n anchor;\n type = EventType.Scroll;\n constructor(\n /** @docsNotRequired */\n routerEvent, \n /** @docsNotRequired */\n position, \n /** @docsNotRequired */\n anchor) {\n this.routerEvent = routerEvent;\n this.position = position;\n this.anchor = anchor;\n }\n toString() {\n const pos = this.position ? `${this.position[0]}, ${this.position[1]}` : null;\n return `Scroll(anchor: '${this.anchor}', position: '${pos}')`;\n }\n}\nclass BeforeActivateRoutes {\n}\nclass RedirectRequest {\n url;\n navigationBehaviorOptions;\n constructor(url, navigationBehaviorOptions) {\n this.url = url;\n this.navigationBehaviorOptions = navigationBehaviorOptions;\n }\n}\nfunction stringifyEvent(routerEvent) {\n switch (routerEvent.type) {\n case EventType.ActivationEnd:\n return `ActivationEnd(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n case EventType.ActivationStart:\n return `ActivationStart(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n case EventType.ChildActivationEnd:\n return `ChildActivationEnd(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n case EventType.ChildActivationStart:\n return `ChildActivationStart(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n case EventType.GuardsCheckEnd:\n return `GuardsCheckEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state}, shouldActivate: ${routerEvent.shouldActivate})`;\n case EventType.GuardsCheckStart:\n return `GuardsCheckStart(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n case EventType.NavigationCancel:\n return `NavigationCancel(id: ${routerEvent.id}, url: '${routerEvent.url}')`;\n case EventType.NavigationSkipped:\n return `NavigationSkipped(id: ${routerEvent.id}, url: '${routerEvent.url}')`;\n case EventType.NavigationEnd:\n return `NavigationEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}')`;\n case EventType.NavigationError:\n return `NavigationError(id: ${routerEvent.id}, url: '${routerEvent.url}', error: ${routerEvent.error})`;\n case EventType.NavigationStart:\n return `NavigationStart(id: ${routerEvent.id}, url: '${routerEvent.url}')`;\n case EventType.ResolveEnd:\n return `ResolveEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n case EventType.ResolveStart:\n return `ResolveStart(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n case EventType.RouteConfigLoadEnd:\n return `RouteConfigLoadEnd(path: ${routerEvent.route.path})`;\n case EventType.RouteConfigLoadStart:\n return `RouteConfigLoadStart(path: ${routerEvent.route.path})`;\n case EventType.RoutesRecognized:\n return `RoutesRecognized(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n case EventType.Scroll:\n const pos = routerEvent.position\n ? `${routerEvent.position[0]}, ${routerEvent.position[1]}`\n : null;\n return `Scroll(anchor: '${routerEvent.anchor}', position: '${pos}')`;\n }\n}\n\n/**\n * Creates an `EnvironmentInjector` if the `Route` has providers and one does not already exist\n * and returns the injector. Otherwise, if the `Route` does not have `providers`, returns the\n * `currentInjector`.\n *\n * @param route The route that might have providers\n * @param currentInjector The parent injector of the `Route`\n */\nfunction getOrCreateRouteInjectorIfNeeded(route, currentInjector) {\n if (route.providers && !route._injector) {\n route._injector = createEnvironmentInjector(route.providers, currentInjector, `Route: ${route.path}`);\n }\n return route._injector ?? currentInjector;\n}\nfunction getLoadedRoutes$1(route) {\n return route._loadedRoutes;\n}\nfunction getLoadedInjector(route) {\n return route._loadedInjector;\n}\nfunction getLoadedComponent(route) {\n return route._loadedComponent;\n}\nfunction getProvidersInjector(route) {\n return route._injector;\n}\nfunction validateConfig(config, parentPath = '', requireStandaloneComponents = false) {\n // forEach doesn't iterate undefined values\n for (let i = 0; i < config.length; i++) {\n const route = config[i];\n const fullPath = getFullPath(parentPath, route);\n validateNode(route, fullPath, requireStandaloneComponents);\n }\n}\nfunction assertStandalone(fullPath, component) {\n if (component && ɵisNgModule(component)) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}'. You are using 'loadComponent' with a module, ` +\n `but it must be used with standalone components. Use 'loadChildren' instead.`);\n }\n else if (component && !isStandalone(component)) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}'. The component must be standalone.`);\n }\n}\nfunction validateNode(route, fullPath, requireStandaloneComponents) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!route) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `\n Invalid configuration of route '${fullPath}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);\n }\n if (Array.isArray(route)) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': Array cannot be specified`);\n }\n if (!route.redirectTo &&\n !route.component &&\n !route.loadComponent &&\n !route.children &&\n !route.loadChildren &&\n route.outlet &&\n route.outlet !== PRIMARY_OUTLET) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': a componentless route without children or loadChildren cannot have a named outlet set`);\n }\n if (route.redirectTo && route.children) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and children cannot be used together`);\n }\n if (route.redirectTo && route.loadChildren) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and loadChildren cannot be used together`);\n }\n if (route.children && route.loadChildren) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': children and loadChildren cannot be used together`);\n }\n if (route.redirectTo && (route.component || route.loadComponent)) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and component/loadComponent cannot be used together`);\n }\n if (route.component && route.loadComponent) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': component and loadComponent cannot be used together`);\n }\n if (route.redirectTo && route.canActivate) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and canActivate cannot be used together. Redirects happen before activation ` +\n `so canActivate will never be executed.`);\n }\n if (route.path && route.matcher) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': path and matcher cannot be used together`);\n }\n if (route.redirectTo === void 0 &&\n !route.component &&\n !route.loadComponent &&\n !route.children &&\n !route.loadChildren) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}'. One of the following must be provided: component, loadComponent, redirectTo, children or loadChildren`);\n }\n if (route.path === void 0 && route.matcher === void 0) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': routes must have either a path or a matcher specified`);\n }\n if (typeof route.path === 'string' && route.path.charAt(0) === '/') {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': path cannot start with a slash`);\n }\n if (route.path === '' && route.redirectTo !== void 0 && route.pathMatch === void 0) {\n const exp = `The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`;\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '{path: \"${fullPath}\", redirectTo: \"${route.redirectTo}\"}': please provide 'pathMatch'. ${exp}`);\n }\n if (requireStandaloneComponents) {\n assertStandalone(fullPath, route.component);\n }\n }\n if (route.children) {\n validateConfig(route.children, fullPath, requireStandaloneComponents);\n }\n}\nfunction getFullPath(parentPath, currentRoute) {\n if (!currentRoute) {\n return parentPath;\n }\n if (!parentPath && !currentRoute.path) {\n return '';\n }\n else if (parentPath && !currentRoute.path) {\n return `${parentPath}/`;\n }\n else if (!parentPath && currentRoute.path) {\n return currentRoute.path;\n }\n else {\n return `${parentPath}/${currentRoute.path}`;\n }\n}\n/** Returns the `route.outlet` or PRIMARY_OUTLET if none exists. */\nfunction getOutlet(route) {\n return route.outlet || PRIMARY_OUTLET;\n}\n/**\n * Sorts the `routes` such that the ones with an outlet matching `outletName` come first.\n * The order of the configs is otherwise preserved.\n */\nfunction sortByMatchingOutlets(routes, outletName) {\n const sortedConfig = routes.filter((r) => getOutlet(r) === outletName);\n sortedConfig.push(...routes.filter((r) => getOutlet(r) !== outletName));\n return sortedConfig;\n}\n/**\n * Gets the first injector in the snapshot's parent tree.\n *\n * If the `Route` has a static list of providers, the returned injector will be the one created from\n * those. If it does not exist, the returned injector may come from the parents, which may be from a\n * loaded config or their static providers.\n *\n * Returns `null` if there is neither this nor any parents have a stored injector.\n *\n * Generally used for retrieving the injector to use for getting tokens for guards/resolvers and\n * also used for getting the correct injector to use for creating components.\n */\nfunction getClosestRouteInjector(snapshot) {\n if (!snapshot)\n return null;\n // If the current route has its own injector, which is created from the static providers on the\n // route itself, we should use that. Otherwise, we start at the parent since we do not want to\n // include the lazy loaded injector from this route.\n if (snapshot.routeConfig?._injector) {\n return snapshot.routeConfig._injector;\n }\n for (let s = snapshot.parent; s; s = s.parent) {\n const route = s.routeConfig;\n // Note that the order here is important. `_loadedInjector` stored on the route with\n // `loadChildren: () => NgModule` so it applies to child routes with priority. The `_injector`\n // is created from the static providers on that parent route, so it applies to the children as\n // well, but only if there is no lazy loaded NgModuleRef injector.\n if (route?._loadedInjector)\n return route._loadedInjector;\n if (route?._injector)\n return route._injector;\n }\n return null;\n}\n\n/**\n * Store contextual information about a `RouterOutlet`\n *\n * @publicApi\n */\nclass OutletContext {\n rootInjector;\n outlet = null;\n route = null;\n children;\n attachRef = null;\n get injector() {\n return getClosestRouteInjector(this.route?.snapshot) ?? this.rootInjector;\n }\n constructor(rootInjector) {\n this.rootInjector = rootInjector;\n this.children = new ChildrenOutletContexts(this.rootInjector);\n }\n}\n/**\n * Store contextual information about the children (= nested) `RouterOutlet`\n *\n * @publicApi\n */\nclass ChildrenOutletContexts {\n rootInjector;\n // contexts for child outlets, by name.\n contexts = new Map();\n /** @nodoc */\n constructor(rootInjector) {\n this.rootInjector = rootInjector;\n }\n /** Called when a `RouterOutlet` directive is instantiated */\n onChildOutletCreated(childName, outlet) {\n const context = this.getOrCreateContext(childName);\n context.outlet = outlet;\n this.contexts.set(childName, context);\n }\n /**\n * Called when a `RouterOutlet` directive is destroyed.\n * We need to keep the context as the outlet could be destroyed inside a NgIf and might be\n * re-created later.\n */\n onChildOutletDestroyed(childName) {\n const context = this.getContext(childName);\n if (context) {\n context.outlet = null;\n context.attachRef = null;\n }\n }\n /**\n * Called when the corresponding route is deactivated during navigation.\n * Because the component get destroyed, all children outlet are destroyed.\n */\n onOutletDeactivated() {\n const contexts = this.contexts;\n this.contexts = new Map();\n return contexts;\n }\n onOutletReAttached(contexts) {\n this.contexts = contexts;\n }\n getOrCreateContext(childName) {\n let context = this.getContext(childName);\n if (!context) {\n context = new OutletContext(this.rootInjector);\n this.contexts.set(childName, context);\n }\n return context;\n }\n getContext(childName) {\n return this.contexts.get(childName) || null;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ChildrenOutletContexts, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ChildrenOutletContexts, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });\n\nclass Tree {\n /** @internal */\n _root;\n constructor(root) {\n this._root = root;\n }\n get root() {\n return this._root.value;\n }\n /**\n * @internal\n */\n parent(t) {\n const p = this.pathFromRoot(t);\n return p.length > 1 ? p[p.length - 2] : null;\n }\n /**\n * @internal\n */\n children(t) {\n const n = findNode(t, this._root);\n return n ? n.children.map((t) => t.value) : [];\n }\n /**\n * @internal\n */\n firstChild(t) {\n const n = findNode(t, this._root);\n return n && n.children.length > 0 ? n.children[0].value : null;\n }\n /**\n * @internal\n */\n siblings(t) {\n const p = findPath(t, this._root);\n if (p.length < 2)\n return [];\n const c = p[p.length - 2].children.map((c) => c.value);\n return c.filter((cc) => cc !== t);\n }\n /**\n * @internal\n */\n pathFromRoot(t) {\n return findPath(t, this._root).map((s) => s.value);\n }\n}\n// DFS for the node matching the value\nfunction findNode(value, node) {\n if (value === node.value)\n return node;\n for (const child of node.children) {\n const node = findNode(value, child);\n if (node)\n return node;\n }\n return null;\n}\n// Return the path to the node with the given value using DFS\nfunction findPath(value, node) {\n if (value === node.value)\n return [node];\n for (const child of node.children) {\n const path = findPath(value, child);\n if (path.length) {\n path.unshift(node);\n return path;\n }\n }\n return [];\n}\nclass TreeNode {\n value;\n children;\n constructor(value, children) {\n this.value = value;\n this.children = children;\n }\n toString() {\n return `TreeNode(${this.value})`;\n }\n}\n// Return the list of T indexed by outlet name\nfunction nodeChildrenAsMap(node) {\n const map = {};\n if (node) {\n node.children.forEach((child) => (map[child.value.outlet] = child));\n }\n return map;\n}\n\n/**\n * Represents the state of the router as a tree of activated routes.\n *\n * @usageNotes\n *\n * Every node in the route tree is an `ActivatedRoute` instance\n * that knows about the \"consumed\" URL segments, the extracted parameters,\n * and the resolved data.\n * Use the `ActivatedRoute` properties to traverse the tree from any node.\n *\n * The following fragment shows how a component gets the root node\n * of the current state to establish its own route tree:\n *\n * ```ts\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n * constructor(router: Router) {\n * const state: RouterState = router.routerState;\n * const root: ActivatedRoute = state.root;\n * const child = root.firstChild;\n * const id: Observable<string> = child.params.map(p => p.id);\n * //...\n * }\n * }\n * ```\n *\n * @see {@link ActivatedRoute}\n * @see [Getting route information](guide/routing/common-router-tasks#getting-route-information)\n *\n * @publicApi\n */\nclass RouterState extends Tree {\n snapshot;\n /** @internal */\n constructor(root, \n /** The current snapshot of the router state */\n snapshot) {\n super(root);\n this.snapshot = snapshot;\n setRouterState(this, root);\n }\n toString() {\n return this.snapshot.toString();\n }\n}\nfunction createEmptyState(rootComponent) {\n const snapshot = createEmptyStateSnapshot(rootComponent);\n const emptyUrl = new BehaviorSubject([new UrlSegment('', {})]);\n const emptyParams = new BehaviorSubject({});\n const emptyData = new BehaviorSubject({});\n const emptyQueryParams = new BehaviorSubject({});\n const fragment = new BehaviorSubject('');\n const activated = new ActivatedRoute(emptyUrl, emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, snapshot.root);\n activated.snapshot = snapshot.root;\n return new RouterState(new TreeNode(activated, []), snapshot);\n}\nfunction createEmptyStateSnapshot(rootComponent) {\n const emptyParams = {};\n const emptyData = {};\n const emptyQueryParams = {};\n const fragment = '';\n const activated = new ActivatedRouteSnapshot([], emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, null, {});\n return new RouterStateSnapshot('', new TreeNode(activated, []));\n}\n/**\n * Provides access to information about a route associated with a component\n * that is loaded in an outlet.\n * Use to traverse the `RouterState` tree and extract information from nodes.\n *\n * The following example shows how to construct a component using information from a\n * currently activated route.\n *\n * Note: the observables in this class only emit when the current and previous values differ based\n * on shallow equality. For example, changing deeply nested properties in resolved `data` will not\n * cause the `ActivatedRoute.data` `Observable` to emit a new value.\n *\n * {@example router/activated-route/module.ts region=\"activated-route\"\n * header=\"activated-route.component.ts\"}\n *\n * @see [Getting route information](guide/routing/common-router-tasks#getting-route-information)\n *\n * @publicApi\n */\nclass ActivatedRoute {\n urlSubject;\n paramsSubject;\n queryParamsSubject;\n fragmentSubject;\n dataSubject;\n outlet;\n component;\n /** The current snapshot of this route */\n snapshot;\n /** @internal */\n _futureSnapshot;\n /** @internal */\n _routerState;\n /** @internal */\n _paramMap;\n /** @internal */\n _queryParamMap;\n /** An Observable of the resolved route title */\n title;\n /** An observable of the URL segments matched by this route. */\n url;\n /** An observable of the matrix parameters scoped to this route. */\n params;\n /** An observable of the query parameters shared by all the routes. */\n queryParams;\n /** An observable of the URL fragment shared by all the routes. */\n fragment;\n /** An observable of the static and resolved data of this route. */\n data;\n /** @internal */\n constructor(\n /** @internal */\n urlSubject, \n /** @internal */\n paramsSubject, \n /** @internal */\n queryParamsSubject, \n /** @internal */\n fragmentSubject, \n /** @internal */\n dataSubject, \n /** The outlet name of the route, a constant. */\n outlet, \n /** The component of the route, a constant. */\n component, futureSnapshot) {\n this.urlSubject = urlSubject;\n this.paramsSubject = paramsSubject;\n this.queryParamsSubject = queryParamsSubject;\n this.fragmentSubject = fragmentSubject;\n this.dataSubject = dataSubject;\n this.outlet = outlet;\n this.component = component;\n this._futureSnapshot = futureSnapshot;\n this.title = this.dataSubject?.pipe(map((d) => d[RouteTitleKey])) ?? of(undefined);\n // TODO(atscott): Verify that these can be changed to `.asObservable()` with TGP.\n this.url = urlSubject;\n this.params = paramsSubject;\n this.queryParams = queryParamsSubject;\n this.fragment = fragmentSubject;\n this.data = dataSubject;\n }\n /** The configuration used to match this route. */\n get routeConfig() {\n return this._futureSnapshot.routeConfig;\n }\n /** The root of the router state. */\n get root() {\n return this._routerState.root;\n }\n /** The parent of this route in the router state tree. */\n get parent() {\n return this._routerState.parent(this);\n }\n /** The first child of this route in the router state tree. */\n get firstChild() {\n return this._routerState.firstChild(this);\n }\n /** The children of this route in the router state tree. */\n get children() {\n return this._routerState.children(this);\n }\n /** The path from the root of the router state tree to this route. */\n get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }\n /**\n * An Observable that contains a map of the required and optional parameters\n * specific to the route.\n * The map supports retrieving single and multiple values from the same parameter.\n */\n get paramMap() {\n this._paramMap ??= this.params.pipe(map((p) => convertToParamMap(p)));\n return this._paramMap;\n }\n /**\n * An Observable that contains a map of the query parameters available to all routes.\n * The map supports retrieving single and multiple values from the query parameter.\n */\n get queryParamMap() {\n this._queryParamMap ??= this.queryParams.pipe(map((p) => convertToParamMap(p)));\n return this._queryParamMap;\n }\n toString() {\n return this.snapshot ? this.snapshot.toString() : `Future(${this._futureSnapshot})`;\n }\n}\n/**\n * Returns the inherited params, data, and resolve for a given route.\n *\n * By default, we do not inherit parent data unless the current route is path-less or the parent\n * route is component-less.\n */\nfunction getInherited(route, parent, paramsInheritanceStrategy = 'emptyOnly') {\n let inherited;\n const { routeConfig } = route;\n if (parent !== null &&\n (paramsInheritanceStrategy === 'always' ||\n // inherit parent data if route is empty path\n routeConfig?.path === '' ||\n // inherit parent data if parent was componentless\n (!parent.component && !parent.routeConfig?.loadComponent))) {\n inherited = {\n params: { ...parent.params, ...route.params },\n data: { ...parent.data, ...route.data },\n resolve: {\n // Snapshots are created with data inherited from parent and guards (i.e. canActivate) can\n // change data because it's not frozen...\n // This first line could be deleted chose to break/disallow mutating the `data` object in\n // guards.\n // Note that data from parents still override this mutated data so anyone relying on this\n // might be surprised that it doesn't work if parent data is inherited but otherwise does.\n ...route.data,\n // Ensure inherited resolved data overrides inherited static data\n ...parent.data,\n // static data from the current route overrides any inherited data\n ...routeConfig?.data,\n // resolved data from current route overrides everything\n ...route._resolvedData,\n },\n };\n }\n else {\n inherited = {\n params: { ...route.params },\n data: { ...route.data },\n resolve: { ...route.data, ...(route._resolvedData ?? {}) },\n };\n }\n if (routeConfig && hasStaticTitle(routeConfig)) {\n inherited.resolve[RouteTitleKey] = routeConfig.title;\n }\n return inherited;\n}\n/**\n * @description\n *\n * Contains the information about a route associated with a component loaded in an\n * outlet at a particular moment in time. ActivatedRouteSnapshot can also be used to\n * traverse the router state tree.\n *\n * The following example initializes a component with route information extracted\n * from the snapshot of the root node at the time of creation.\n *\n * ```ts\n * @Component({templateUrl:'./my-component.html'})\n * class MyComponent {\n * constructor(route: ActivatedRoute) {\n * const id: string = route.snapshot.params.id;\n * const url: string = route.snapshot.url.join('');\n * const user = route.snapshot.data.user;\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass ActivatedRouteSnapshot {\n url;\n params;\n queryParams;\n fragment;\n data;\n outlet;\n component;\n /** The configuration used to match this route **/\n routeConfig;\n /** @internal */\n _resolve;\n /** @internal */\n _resolvedData;\n /** @internal */\n _routerState;\n /** @internal */\n _paramMap;\n /** @internal */\n _queryParamMap;\n /** The resolved route title */\n get title() {\n // Note: This _must_ be a getter because the data is mutated in the resolvers. Title will not be\n // available at the time of class instantiation.\n return this.data?.[RouteTitleKey];\n }\n /** @internal */\n constructor(\n /** The URL segments matched by this route */\n url, \n /**\n * The matrix parameters scoped to this route.\n *\n * You can compute all params (or data) in the router state or to get params outside\n * of an activated component by traversing the `RouterState` tree as in the following\n * example:\n * ```ts\n * collectRouteParams(router: Router) {\n * let params = {};\n * let stack: ActivatedRouteSnapshot[] = [router.routerState.snapshot.root];\n * while (stack.length > 0) {\n * const route = stack.pop()!;\n * params = {...params, ...route.params};\n * stack.push(...route.children);\n * }\n * return params;\n * }\n * ```\n */\n params, \n /** The query parameters shared by all the routes */\n queryParams, \n /** The URL fragment shared by all the routes */\n fragment, \n /** The static and resolved data of this route */\n data, \n /** The outlet name of the route */\n outlet, \n /** The component of the route */\n component, routeConfig, resolve) {\n this.url = url;\n this.params = params;\n this.queryParams = queryParams;\n this.fragment = fragment;\n this.data = data;\n this.outlet = outlet;\n this.component = component;\n this.routeConfig = routeConfig;\n this._resolve = resolve;\n }\n /** The root of the router state */\n get root() {\n return this._routerState.root;\n }\n /** The parent of this route in the router state tree */\n get parent() {\n return this._routerState.parent(this);\n }\n /** The first child of this route in the router state tree */\n get firstChild() {\n return this._routerState.firstChild(this);\n }\n /** The children of this route in the router state tree */\n get children() {\n return this._routerState.children(this);\n }\n /** The path from the root of the router state tree to this route */\n get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }\n get paramMap() {\n this._paramMap ??= convertToParamMap(this.params);\n return this._paramMap;\n }\n get queryParamMap() {\n this._queryParamMap ??= convertToParamMap(this.queryParams);\n return this._queryParamMap;\n }\n toString() {\n const url = this.url.map((segment) => segment.toString()).join('/');\n const matched = this.routeConfig ? this.routeConfig.path : '';\n return `Route(url:'${url}', path:'${matched}')`;\n }\n}\n/**\n * @description\n *\n * Represents the state of the router at a moment in time.\n *\n * This is a tree of activated route snapshots. Every node in this tree knows about\n * the \"consumed\" URL segments, the extracted parameters, and the resolved data.\n *\n * The following example shows how a component is initialized with information\n * from the snapshot of the root node's state at the time of creation.\n *\n * ```ts\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n * constructor(router: Router) {\n * const state: RouterState = router.routerState;\n * const snapshot: RouterStateSnapshot = state.snapshot;\n * const root: ActivatedRouteSnapshot = snapshot.root;\n * const child = root.firstChild;\n * const id: Observable<string> = child.params.map(p => p.id);\n * //...\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass RouterStateSnapshot extends Tree {\n url;\n /** @internal */\n constructor(\n /** The url from which this snapshot was created */\n url, root) {\n super(root);\n this.url = url;\n setRouterState(this, root);\n }\n toString() {\n return serializeNode(this._root);\n }\n}\nfunction setRouterState(state, node) {\n node.value._routerState = state;\n node.children.forEach((c) => setRouterState(state, c));\n}\nfunction serializeNode(node) {\n const c = node.children.length > 0 ? ` { ${node.children.map(serializeNode).join(', ')} } ` : '';\n return `${node.value}${c}`;\n}\n/**\n * The expectation is that the activate route is created with the right set of parameters.\n * So we push new values into the observables only when they are not the initial values.\n * And we detect that by checking if the snapshot field is set.\n */\nfunction advanceActivatedRoute(route) {\n if (route.snapshot) {\n const currentSnapshot = route.snapshot;\n const nextSnapshot = route._futureSnapshot;\n route.snapshot = nextSnapshot;\n if (!shallowEqual(currentSnapshot.queryParams, nextSnapshot.queryParams)) {\n route.queryParamsSubject.next(nextSnapshot.queryParams);\n }\n if (currentSnapshot.fragment !== nextSnapshot.fragment) {\n route.fragmentSubject.next(nextSnapshot.fragment);\n }\n if (!shallowEqual(currentSnapshot.params, nextSnapshot.params)) {\n route.paramsSubject.next(nextSnapshot.params);\n }\n if (!shallowEqualArrays(currentSnapshot.url, nextSnapshot.url)) {\n route.urlSubject.next(nextSnapshot.url);\n }\n if (!shallowEqual(currentSnapshot.data, nextSnapshot.data)) {\n route.dataSubject.next(nextSnapshot.data);\n }\n }\n else {\n route.snapshot = route._futureSnapshot;\n // this is for resolved data\n route.dataSubject.next(route._futureSnapshot.data);\n }\n}\nfunction equalParamsAndUrlSegments(a, b) {\n const equalUrlParams = shallowEqual(a.params, b.params) && equalSegments(a.url, b.url);\n const parentsMismatch = !a.parent !== !b.parent;\n return (equalUrlParams &&\n !parentsMismatch &&\n (!a.parent || equalParamsAndUrlSegments(a.parent, b.parent)));\n}\nfunction hasStaticTitle(config) {\n return typeof config.title === 'string' || config.title === null;\n}\n\n/**\n * An `InjectionToken` provided by the `RouterOutlet` and can be set using the `routerOutletData`\n * input.\n *\n * When unset, this value is `null` by default.\n *\n * @usageNotes\n *\n * To set the data from the template of the component with `router-outlet`:\n * ```html\n * <router-outlet [routerOutletData]=\"{name: 'Angular'}\" />\n * ```\n *\n * To read the data in the routed component:\n * ```ts\n * data = inject(ROUTER_OUTLET_DATA) as Signal<{name: string}>;\n * ```\n *\n * @publicApi\n */\nconst ROUTER_OUTLET_DATA = new InjectionToken(ngDevMode ? 'RouterOutlet data' : '');\n/**\n * @description\n *\n * Acts as a placeholder that Angular dynamically fills based on the current router state.\n *\n * Each outlet can have a unique name, determined by the optional `name` attribute.\n * The name cannot be set or changed dynamically. If not set, default value is \"primary\".\n *\n * ```html\n * <router-outlet></router-outlet>\n * <router-outlet name='left'></router-outlet>\n * <router-outlet name='right'></router-outlet>\n * ```\n *\n * Named outlets can be the targets of secondary routes.\n * The `Route` object for a secondary route has an `outlet` property to identify the target outlet:\n *\n * `{path: <base-path>, component: <component>, outlet: <target_outlet_name>}`\n *\n * Using named outlets and secondary routes, you can target multiple outlets in\n * the same `RouterLink` directive.\n *\n * The router keeps track of separate branches in a navigation tree for each named outlet and\n * generates a representation of that tree in the URL.\n * The URL for a secondary route uses the following syntax to specify both the primary and secondary\n * routes at the same time:\n *\n * `http://base-path/primary-route-path(outlet-name:route-path)`\n *\n * A router outlet emits an activate event when a new component is instantiated,\n * deactivate event when a component is destroyed.\n * An attached event emits when the `RouteReuseStrategy` instructs the outlet to reattach the\n * subtree, and the detached event emits when the `RouteReuseStrategy` instructs the outlet to\n * detach the subtree.\n *\n * ```html\n * <router-outlet\n * (activate)='onActivate($event)'\n * (deactivate)='onDeactivate($event)'\n * (attach)='onAttach($event)'\n * (detach)='onDetach($event)'></router-outlet>\n * ```\n *\n * @see {@link RouterLink}\n * @see {@link Route}\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass RouterOutlet {\n activated = null;\n /** @internal */\n get activatedComponentRef() {\n return this.activated;\n }\n _activatedRoute = null;\n /**\n * The name of the outlet\n *\n */\n name = PRIMARY_OUTLET;\n activateEvents = new EventEmitter();\n deactivateEvents = new EventEmitter();\n /**\n * Emits an attached component instance when the `RouteReuseStrategy` instructs to re-attach a\n * previously detached subtree.\n **/\n attachEvents = new EventEmitter();\n /**\n * Emits a detached component instance when the `RouteReuseStrategy` instructs to detach the\n * subtree.\n */\n detachEvents = new EventEmitter();\n /**\n * Data that will be provided to the child injector through the `ROUTER_OUTLET_DATA` token.\n *\n * When unset, the value of the token is `undefined` by default.\n */\n routerOutletData = input(undefined);\n parentContexts = inject(ChildrenOutletContexts);\n location = inject(ViewContainerRef);\n changeDetector = inject(ChangeDetectorRef);\n inputBinder = inject(INPUT_BINDER, { optional: true });\n /** @nodoc */\n supportsBindingToComponentInputs = true;\n /** @nodoc */\n ngOnChanges(changes) {\n if (changes['name']) {\n const { firstChange, previousValue } = changes['name'];\n if (firstChange) {\n // The first change is handled by ngOnInit. Because ngOnChanges doesn't get called when no\n // input is set at all, we need to centrally handle the first change there.\n return;\n }\n // unregister with the old name\n if (this.isTrackedInParentContexts(previousValue)) {\n this.deactivate();\n this.parentContexts.onChildOutletDestroyed(previousValue);\n }\n // register the new name\n this.initializeOutletWithName();\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n // Ensure that the registered outlet is this one before removing it on the context.\n if (this.isTrackedInParentContexts(this.name)) {\n this.parentContexts.onChildOutletDestroyed(this.name);\n }\n this.inputBinder?.unsubscribeFromRouteData(this);\n }\n isTrackedInParentContexts(outletName) {\n return this.parentContexts.getContext(outletName)?.outlet === this;\n }\n /** @nodoc */\n ngOnInit() {\n this.initializeOutletWithName();\n }\n initializeOutletWithName() {\n this.parentContexts.onChildOutletCreated(this.name, this);\n if (this.activated) {\n return;\n }\n // If the outlet was not instantiated at the time the route got activated we need to populate\n // the outlet when it is initialized (ie inside a NgIf)\n const context = this.parentContexts.getContext(this.name);\n if (context?.route) {\n if (context.attachRef) {\n // `attachRef` is populated when there is an existing component to mount\n this.attach(context.attachRef, context.route);\n }\n else {\n // otherwise the component defined in the configuration is created\n this.activateWith(context.route, context.injector);\n }\n }\n }\n get isActivated() {\n return !!this.activated;\n }\n /**\n * @returns The currently activated component instance.\n * @throws An error if the outlet is not activated.\n */\n get component() {\n if (!this.activated)\n throw new ɵRuntimeError(4012 /* RuntimeErrorCode.OUTLET_NOT_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Outlet is not activated');\n return this.activated.instance;\n }\n get activatedRoute() {\n if (!this.activated)\n throw new ɵRuntimeError(4012 /* RuntimeErrorCode.OUTLET_NOT_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Outlet is not activated');\n return this._activatedRoute;\n }\n get activatedRouteData() {\n if (this._activatedRoute) {\n return this._activatedRoute.snapshot.data;\n }\n return {};\n }\n /**\n * Called when the `RouteReuseStrategy` instructs to detach the subtree\n */\n detach() {\n if (!this.activated)\n throw new ɵRuntimeError(4012 /* RuntimeErrorCode.OUTLET_NOT_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Outlet is not activated');\n this.location.detach();\n const cmp = this.activated;\n this.activated = null;\n this._activatedRoute = null;\n this.detachEvents.emit(cmp.instance);\n return cmp;\n }\n /**\n * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree\n */\n attach(ref, activatedRoute) {\n this.activated = ref;\n this._activatedRoute = activatedRoute;\n this.location.insert(ref.hostView);\n this.inputBinder?.bindActivatedRouteToOutletComponent(this);\n this.attachEvents.emit(ref.instance);\n }\n deactivate() {\n if (this.activated) {\n const c = this.component;\n this.activated.destroy();\n this.activated = null;\n this._activatedRoute = null;\n this.deactivateEvents.emit(c);\n }\n }\n activateWith(activatedRoute, environmentInjector) {\n if (this.isActivated) {\n throw new ɵRuntimeError(4013 /* RuntimeErrorCode.OUTLET_ALREADY_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'Cannot activate an already activated outlet');\n }\n this._activatedRoute = activatedRoute;\n const location = this.location;\n const snapshot = activatedRoute.snapshot;\n const component = snapshot.component;\n const childContexts = this.parentContexts.getOrCreateContext(this.name).children;\n const injector = new OutletInjector(activatedRoute, childContexts, location.injector, this.routerOutletData);\n this.activated = location.createComponent(component, {\n index: location.length,\n injector,\n environmentInjector: environmentInjector,\n });\n // Calling `markForCheck` to make sure we will run the change detection when the\n // `RouterOutlet` is inside a `ChangeDetectionStrategy.OnPush` component.\n this.changeDetector.markForCheck();\n this.inputBinder?.bindActivatedRouteToOutletComponent(this);\n this.activateEvents.emit(this.activated.instance);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"17.1.0\", version: \"19.1.4\", type: RouterOutlet, isStandalone: true, selector: \"router-outlet\", inputs: { name: { classPropertyName: \"name\", publicName: \"name\", isSignal: false, isRequired: false, transformFunction: null }, routerOutletData: { classPropertyName: \"routerOutletData\", publicName: \"routerOutletData\", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activateEvents: \"activate\", deactivateEvents: \"deactivate\", attachEvents: \"attach\", detachEvents: \"detach\" }, exportAs: [\"outlet\"], usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterOutlet, decorators: [{\n type: Directive,\n args: [{\n selector: 'router-outlet',\n exportAs: 'outlet',\n }]\n }], propDecorators: { name: [{\n type: Input\n }], activateEvents: [{\n type: Output,\n args: ['activate']\n }], deactivateEvents: [{\n type: Output,\n args: ['deactivate']\n }], attachEvents: [{\n type: Output,\n args: ['attach']\n }], detachEvents: [{\n type: Output,\n args: ['detach']\n }] } });\nclass OutletInjector {\n route;\n childContexts;\n parent;\n outletData;\n /**\n * This injector has a special handing for the `ActivatedRoute` and\n * `ChildrenOutletContexts` tokens: it returns corresponding values for those\n * tokens dynamically. This behavior is different from the regular injector logic,\n * when we initialize and store a value, which is later returned for all inject\n * requests.\n *\n * In some cases (e.g. when using `@defer`), this dynamic behavior requires special\n * handling. This function allows to identify an instance of the `OutletInjector` and\n * create an instance of it without referring to the class itself (so this logic can\n * be invoked from the `core` package). This helps to retain dynamic behavior for the\n * mentioned tokens.\n *\n * Note: it's a temporary solution and we should explore how to support this case better.\n */\n __ngOutletInjector(parentInjector) {\n return new OutletInjector(this.route, this.childContexts, parentInjector, this.outletData);\n }\n constructor(route, childContexts, parent, outletData) {\n this.route = route;\n this.childContexts = childContexts;\n this.parent = parent;\n this.outletData = outletData;\n }\n get(token, notFoundValue) {\n if (token === ActivatedRoute) {\n return this.route;\n }\n if (token === ChildrenOutletContexts) {\n return this.childContexts;\n }\n if (token === ROUTER_OUTLET_DATA) {\n return this.outletData;\n }\n return this.parent.get(token, notFoundValue);\n }\n}\nconst INPUT_BINDER = new InjectionToken('');\n/**\n * Injectable used as a tree-shakable provider for opting in to binding router data to component\n * inputs.\n *\n * The RouterOutlet registers itself with this service when an `ActivatedRoute` is attached or\n * activated. When this happens, the service subscribes to the `ActivatedRoute` observables (params,\n * queryParams, data) and sets the inputs of the component using `ComponentRef.setInput`.\n * Importantly, when an input does not have an item in the route data with a matching key, this\n * input is set to `undefined`. If it were not done this way, the previous information would be\n * retained if the data got removed from the route (i.e. if a query parameter is removed).\n *\n * The `RouterOutlet` should unregister itself when destroyed via `unsubscribeFromRouteData` so that\n * the subscriptions are cleaned up.\n */\nclass RoutedComponentInputBinder {\n outletDataSubscriptions = new Map();\n bindActivatedRouteToOutletComponent(outlet) {\n this.unsubscribeFromRouteData(outlet);\n this.subscribeToRouteData(outlet);\n }\n unsubscribeFromRouteData(outlet) {\n this.outletDataSubscriptions.get(outlet)?.unsubscribe();\n this.outletDataSubscriptions.delete(outlet);\n }\n subscribeToRouteData(outlet) {\n const { activatedRoute } = outlet;\n const dataSubscription = combineLatest([\n activatedRoute.queryParams,\n activatedRoute.params,\n activatedRoute.data,\n ])\n .pipe(switchMap(([queryParams, params, data], index) => {\n data = { ...queryParams, ...params, ...data };\n // Get the first result from the data subscription synchronously so it's available to\n // the component as soon as possible (and doesn't require a second change detection).\n if (index === 0) {\n return of(data);\n }\n // Promise.resolve is used to avoid synchronously writing the wrong data when\n // two of the Observables in the `combineLatest` stream emit one after\n // another.\n return Promise.resolve(data);\n }))\n .subscribe((data) => {\n // Outlet may have been deactivated or changed names to be associated with a different\n // route\n if (!outlet.isActivated ||\n !outlet.activatedComponentRef ||\n outlet.activatedRoute !== activatedRoute ||\n activatedRoute.component === null) {\n this.unsubscribeFromRouteData(outlet);\n return;\n }\n const mirror = reflectComponentType(activatedRoute.component);\n if (!mirror) {\n this.unsubscribeFromRouteData(outlet);\n return;\n }\n for (const { templateName } of mirror.inputs) {\n outlet.activatedComponentRef.setInput(templateName, data[templateName]);\n }\n });\n this.outletDataSubscriptions.set(outlet, dataSubscription);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RoutedComponentInputBinder });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{\n type: Injectable\n }] });\n\nfunction createRouterState(routeReuseStrategy, curr, prevState) {\n const root = createNode(routeReuseStrategy, curr._root, prevState ? prevState._root : undefined);\n return new RouterState(root, curr);\n}\nfunction createNode(routeReuseStrategy, curr, prevState) {\n // reuse an activated route that is currently displayed on the screen\n if (prevState && routeReuseStrategy.shouldReuseRoute(curr.value, prevState.value.snapshot)) {\n const value = prevState.value;\n value._futureSnapshot = curr.value;\n const children = createOrReuseChildren(routeReuseStrategy, curr, prevState);\n return new TreeNode(value, children);\n }\n else {\n if (routeReuseStrategy.shouldAttach(curr.value)) {\n // retrieve an activated route that is used to be displayed, but is not currently displayed\n const detachedRouteHandle = routeReuseStrategy.retrieve(curr.value);\n if (detachedRouteHandle !== null) {\n const tree = detachedRouteHandle.route;\n tree.value._futureSnapshot = curr.value;\n tree.children = curr.children.map((c) => createNode(routeReuseStrategy, c));\n return tree;\n }\n }\n const value = createActivatedRoute(curr.value);\n const children = curr.children.map((c) => createNode(routeReuseStrategy, c));\n return new TreeNode(value, children);\n }\n}\nfunction createOrReuseChildren(routeReuseStrategy, curr, prevState) {\n return curr.children.map((child) => {\n for (const p of prevState.children) {\n if (routeReuseStrategy.shouldReuseRoute(child.value, p.value.snapshot)) {\n return createNode(routeReuseStrategy, child, p);\n }\n }\n return createNode(routeReuseStrategy, child);\n });\n}\nfunction createActivatedRoute(c) {\n return new ActivatedRoute(new BehaviorSubject(c.url), new BehaviorSubject(c.params), new BehaviorSubject(c.queryParams), new BehaviorSubject(c.fragment), new BehaviorSubject(c.data), c.outlet, c.component, c);\n}\n\n/**\n * Can be returned by a `Router` guard to instruct the `Router` to redirect rather than continue\n * processing the path of the in-flight navigation. The `redirectTo` indicates _where_ the new\n * navigation should go to and the optional `navigationBehaviorOptions` can provide more information\n * about _how_ to perform the navigation.\n *\n * ```ts\n * const route: Route = {\n * path: \"user/:userId\",\n * component: User,\n * canActivate: [\n * () => {\n * const router = inject(Router);\n * const authService = inject(AuthenticationService);\n *\n * if (!authService.isLoggedIn()) {\n * const loginPath = router.parseUrl(\"/login\");\n * return new RedirectCommand(loginPath, {\n * skipLocationChange: \"true\",\n * });\n * }\n *\n * return true;\n * },\n * ],\n * };\n * ```\n * @see [Routing guide](guide/routing/common-router-tasks#preventing-unauthorized-access)\n *\n * @publicApi\n */\nclass RedirectCommand {\n redirectTo;\n navigationBehaviorOptions;\n constructor(redirectTo, navigationBehaviorOptions) {\n this.redirectTo = redirectTo;\n this.navigationBehaviorOptions = navigationBehaviorOptions;\n }\n}\n\nconst NAVIGATION_CANCELING_ERROR = 'ngNavigationCancelingError';\nfunction redirectingNavigationError(urlSerializer, redirect) {\n const { redirectTo, navigationBehaviorOptions } = isUrlTree(redirect)\n ? { redirectTo: redirect, navigationBehaviorOptions: undefined }\n : redirect;\n const error = navigationCancelingError(ngDevMode && `Redirecting to \"${urlSerializer.serialize(redirectTo)}\"`, NavigationCancellationCode.Redirect);\n error.url = redirectTo;\n error.navigationBehaviorOptions = navigationBehaviorOptions;\n return error;\n}\nfunction navigationCancelingError(message, code) {\n const error = new Error(`NavigationCancelingError: ${message || ''}`);\n error[NAVIGATION_CANCELING_ERROR] = true;\n error.cancellationCode = code;\n return error;\n}\nfunction isRedirectingNavigationCancelingError(error) {\n return (isNavigationCancelingError(error) &&\n isUrlTree(error.url));\n}\nfunction isNavigationCancelingError(error) {\n return !!error && error[NAVIGATION_CANCELING_ERROR];\n}\n\nlet warnedAboutUnsupportedInputBinding = false;\nconst activateRoutes = (rootContexts, routeReuseStrategy, forwardEvent, inputBindingEnabled) => map((t) => {\n new ActivateRoutes(routeReuseStrategy, t.targetRouterState, t.currentRouterState, forwardEvent, inputBindingEnabled).activate(rootContexts);\n return t;\n});\nclass ActivateRoutes {\n routeReuseStrategy;\n futureState;\n currState;\n forwardEvent;\n inputBindingEnabled;\n constructor(routeReuseStrategy, futureState, currState, forwardEvent, inputBindingEnabled) {\n this.routeReuseStrategy = routeReuseStrategy;\n this.futureState = futureState;\n this.currState = currState;\n this.forwardEvent = forwardEvent;\n this.inputBindingEnabled = inputBindingEnabled;\n }\n activate(parentContexts) {\n const futureRoot = this.futureState._root;\n const currRoot = this.currState ? this.currState._root : null;\n this.deactivateChildRoutes(futureRoot, currRoot, parentContexts);\n advanceActivatedRoute(this.futureState.root);\n this.activateChildRoutes(futureRoot, currRoot, parentContexts);\n }\n // De-activate the child route that are not re-used for the future state\n deactivateChildRoutes(futureNode, currNode, contexts) {\n const children = nodeChildrenAsMap(currNode);\n // Recurse on the routes active in the future state to de-activate deeper children\n futureNode.children.forEach((futureChild) => {\n const childOutletName = futureChild.value.outlet;\n this.deactivateRoutes(futureChild, children[childOutletName], contexts);\n delete children[childOutletName];\n });\n // De-activate the routes that will not be re-used\n Object.values(children).forEach((v) => {\n this.deactivateRouteAndItsChildren(v, contexts);\n });\n }\n deactivateRoutes(futureNode, currNode, parentContext) {\n const future = futureNode.value;\n const curr = currNode ? currNode.value : null;\n if (future === curr) {\n // Reusing the node, check to see if the children need to be de-activated\n if (future.component) {\n // If we have a normal route, we need to go through an outlet.\n const context = parentContext.getContext(future.outlet);\n if (context) {\n this.deactivateChildRoutes(futureNode, currNode, context.children);\n }\n }\n else {\n // if we have a componentless route, we recurse but keep the same outlet map.\n this.deactivateChildRoutes(futureNode, currNode, parentContext);\n }\n }\n else {\n if (curr) {\n // Deactivate the current route which will not be re-used\n this.deactivateRouteAndItsChildren(currNode, parentContext);\n }\n }\n }\n deactivateRouteAndItsChildren(route, parentContexts) {\n // If there is no component, the Route is never attached to an outlet (because there is no\n // component to attach).\n if (route.value.component && this.routeReuseStrategy.shouldDetach(route.value.snapshot)) {\n this.detachAndStoreRouteSubtree(route, parentContexts);\n }\n else {\n this.deactivateRouteAndOutlet(route, parentContexts);\n }\n }\n detachAndStoreRouteSubtree(route, parentContexts) {\n const context = parentContexts.getContext(route.value.outlet);\n const contexts = context && route.value.component ? context.children : parentContexts;\n const children = nodeChildrenAsMap(route);\n for (const treeNode of Object.values(children)) {\n this.deactivateRouteAndItsChildren(treeNode, contexts);\n }\n if (context && context.outlet) {\n const componentRef = context.outlet.detach();\n const contexts = context.children.onOutletDeactivated();\n this.routeReuseStrategy.store(route.value.snapshot, { componentRef, route, contexts });\n }\n }\n deactivateRouteAndOutlet(route, parentContexts) {\n const context = parentContexts.getContext(route.value.outlet);\n // The context could be `null` if we are on a componentless route but there may still be\n // children that need deactivating.\n const contexts = context && route.value.component ? context.children : parentContexts;\n const children = nodeChildrenAsMap(route);\n for (const treeNode of Object.values(children)) {\n this.deactivateRouteAndItsChildren(treeNode, contexts);\n }\n if (context) {\n if (context.outlet) {\n // Destroy the component\n context.outlet.deactivate();\n // Destroy the contexts for all the outlets that were in the component\n context.children.onOutletDeactivated();\n }\n // Clear the information about the attached component on the context but keep the reference to\n // the outlet. Clear even if outlet was not yet activated to avoid activating later with old\n // info\n context.attachRef = null;\n context.route = null;\n }\n }\n activateChildRoutes(futureNode, currNode, contexts) {\n const children = nodeChildrenAsMap(currNode);\n futureNode.children.forEach((c) => {\n this.activateRoutes(c, children[c.value.outlet], contexts);\n this.forwardEvent(new ActivationEnd(c.value.snapshot));\n });\n if (futureNode.children.length) {\n this.forwardEvent(new ChildActivationEnd(futureNode.value.snapshot));\n }\n }\n activateRoutes(futureNode, currNode, parentContexts) {\n const future = futureNode.value;\n const curr = currNode ? currNode.value : null;\n advanceActivatedRoute(future);\n // reusing the node\n if (future === curr) {\n if (future.component) {\n // If we have a normal route, we need to go through an outlet.\n const context = parentContexts.getOrCreateContext(future.outlet);\n this.activateChildRoutes(futureNode, currNode, context.children);\n }\n else {\n // if we have a componentless route, we recurse but keep the same outlet map.\n this.activateChildRoutes(futureNode, currNode, parentContexts);\n }\n }\n else {\n if (future.component) {\n // if we have a normal route, we need to place the component into the outlet and recurse.\n const context = parentContexts.getOrCreateContext(future.outlet);\n if (this.routeReuseStrategy.shouldAttach(future.snapshot)) {\n const stored = (this.routeReuseStrategy.retrieve(future.snapshot));\n this.routeReuseStrategy.store(future.snapshot, null);\n context.children.onOutletReAttached(stored.contexts);\n context.attachRef = stored.componentRef;\n context.route = stored.route.value;\n if (context.outlet) {\n // Attach right away when the outlet has already been instantiated\n // Otherwise attach from `RouterOutlet.ngOnInit` when it is instantiated\n context.outlet.attach(stored.componentRef, stored.route.value);\n }\n advanceActivatedRoute(stored.route.value);\n this.activateChildRoutes(futureNode, null, context.children);\n }\n else {\n context.attachRef = null;\n context.route = future;\n if (context.outlet) {\n // Activate the outlet when it has already been instantiated\n // Otherwise it will get activated from its `ngOnInit` when instantiated\n context.outlet.activateWith(future, context.injector);\n }\n this.activateChildRoutes(futureNode, null, context.children);\n }\n }\n else {\n // if we have a componentless route, we recurse but keep the same outlet map.\n this.activateChildRoutes(futureNode, null, parentContexts);\n }\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const context = parentContexts.getOrCreateContext(future.outlet);\n const outlet = context.outlet;\n if (outlet &&\n this.inputBindingEnabled &&\n !outlet.supportsBindingToComponentInputs &&\n !warnedAboutUnsupportedInputBinding) {\n console.warn(`'withComponentInputBinding' feature is enabled but ` +\n `this application is using an outlet that may not support binding to component inputs.`);\n warnedAboutUnsupportedInputBinding = true;\n }\n }\n }\n}\n\nclass CanActivate {\n path;\n route;\n constructor(path) {\n this.path = path;\n this.route = this.path[this.path.length - 1];\n }\n}\nclass CanDeactivate {\n component;\n route;\n constructor(component, route) {\n this.component = component;\n this.route = route;\n }\n}\nfunction getAllRouteGuards(future, curr, parentContexts) {\n const futureRoot = future._root;\n const currRoot = curr ? curr._root : null;\n return getChildRouteGuards(futureRoot, currRoot, parentContexts, [futureRoot.value]);\n}\nfunction getCanActivateChild(p) {\n const canActivateChild = p.routeConfig ? p.routeConfig.canActivateChild : null;\n if (!canActivateChild || canActivateChild.length === 0)\n return null;\n return { node: p, guards: canActivateChild };\n}\nfunction getTokenOrFunctionIdentity(tokenOrFunction, injector) {\n const NOT_FOUND = Symbol();\n const result = injector.get(tokenOrFunction, NOT_FOUND);\n if (result === NOT_FOUND) {\n if (typeof tokenOrFunction === 'function' && !ɵisInjectable(tokenOrFunction)) {\n // We think the token is just a function so return it as-is\n return tokenOrFunction;\n }\n else {\n // This will throw the not found error\n return injector.get(tokenOrFunction);\n }\n }\n return result;\n}\nfunction getChildRouteGuards(futureNode, currNode, contexts, futurePath, checks = {\n canDeactivateChecks: [],\n canActivateChecks: [],\n}) {\n const prevChildren = nodeChildrenAsMap(currNode);\n // Process the children of the future route\n futureNode.children.forEach((c) => {\n getRouteGuards(c, prevChildren[c.value.outlet], contexts, futurePath.concat([c.value]), checks);\n delete prevChildren[c.value.outlet];\n });\n // Process any children left from the current route (not active for the future route)\n Object.entries(prevChildren).forEach(([k, v]) => deactivateRouteAndItsChildren(v, contexts.getContext(k), checks));\n return checks;\n}\nfunction getRouteGuards(futureNode, currNode, parentContexts, futurePath, checks = {\n canDeactivateChecks: [],\n canActivateChecks: [],\n}) {\n const future = futureNode.value;\n const curr = currNode ? currNode.value : null;\n const context = parentContexts ? parentContexts.getContext(futureNode.value.outlet) : null;\n // reusing the node\n if (curr && future.routeConfig === curr.routeConfig) {\n const shouldRun = shouldRunGuardsAndResolvers(curr, future, future.routeConfig.runGuardsAndResolvers);\n if (shouldRun) {\n checks.canActivateChecks.push(new CanActivate(futurePath));\n }\n else {\n // we need to set the data\n future.data = curr.data;\n future._resolvedData = curr._resolvedData;\n }\n // If we have a component, we need to go through an outlet.\n if (future.component) {\n getChildRouteGuards(futureNode, currNode, context ? context.children : null, futurePath, checks);\n // if we have a componentless route, we recurse but keep the same outlet map.\n }\n else {\n getChildRouteGuards(futureNode, currNode, parentContexts, futurePath, checks);\n }\n if (shouldRun && context && context.outlet && context.outlet.isActivated) {\n checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, curr));\n }\n }\n else {\n if (curr) {\n deactivateRouteAndItsChildren(currNode, context, checks);\n }\n checks.canActivateChecks.push(new CanActivate(futurePath));\n // If we have a component, we need to go through an outlet.\n if (future.component) {\n getChildRouteGuards(futureNode, null, context ? context.children : null, futurePath, checks);\n // if we have a componentless route, we recurse but keep the same outlet map.\n }\n else {\n getChildRouteGuards(futureNode, null, parentContexts, futurePath, checks);\n }\n }\n return checks;\n}\nfunction shouldRunGuardsAndResolvers(curr, future, mode) {\n if (typeof mode === 'function') {\n return mode(curr, future);\n }\n switch (mode) {\n case 'pathParamsChange':\n return !equalPath(curr.url, future.url);\n case 'pathParamsOrQueryParamsChange':\n return (!equalPath(curr.url, future.url) || !shallowEqual(curr.queryParams, future.queryParams));\n case 'always':\n return true;\n case 'paramsOrQueryParamsChange':\n return (!equalParamsAndUrlSegments(curr, future) ||\n !shallowEqual(curr.queryParams, future.queryParams));\n case 'paramsChange':\n default:\n return !equalParamsAndUrlSegments(curr, future);\n }\n}\nfunction deactivateRouteAndItsChildren(route, context, checks) {\n const children = nodeChildrenAsMap(route);\n const r = route.value;\n Object.entries(children).forEach(([childName, node]) => {\n if (!r.component) {\n deactivateRouteAndItsChildren(node, context, checks);\n }\n else if (context) {\n deactivateRouteAndItsChildren(node, context.children.getContext(childName), checks);\n }\n else {\n deactivateRouteAndItsChildren(node, null, checks);\n }\n });\n if (!r.component) {\n checks.canDeactivateChecks.push(new CanDeactivate(null, r));\n }\n else if (context && context.outlet && context.outlet.isActivated) {\n checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, r));\n }\n else {\n checks.canDeactivateChecks.push(new CanDeactivate(null, r));\n }\n}\n\n/**\n * Simple function check, but generic so type inference will flow. Example:\n *\n * function product(a: number, b: number) {\n * return a * b;\n * }\n *\n * if (isFunction<product>(fn)) {\n * return fn(1, 2);\n * } else {\n * throw \"Must provide the `product` function\";\n * }\n */\nfunction isFunction(v) {\n return typeof v === 'function';\n}\nfunction isBoolean(v) {\n return typeof v === 'boolean';\n}\nfunction isCanLoad(guard) {\n return guard && isFunction(guard.canLoad);\n}\nfunction isCanActivate(guard) {\n return guard && isFunction(guard.canActivate);\n}\nfunction isCanActivateChild(guard) {\n return guard && isFunction(guard.canActivateChild);\n}\nfunction isCanDeactivate(guard) {\n return guard && isFunction(guard.canDeactivate);\n}\nfunction isCanMatch(guard) {\n return guard && isFunction(guard.canMatch);\n}\nfunction isEmptyError(e) {\n return e instanceof EmptyError || e?.name === 'EmptyError';\n}\n\nconst INITIAL_VALUE = /* @__PURE__ */ Symbol('INITIAL_VALUE');\nfunction prioritizedGuardValue() {\n return switchMap((obs) => {\n return combineLatest(obs.map((o) => o.pipe(take(1), startWith(INITIAL_VALUE)))).pipe(map((results) => {\n for (const result of results) {\n if (result === true) {\n // If result is true, check the next one\n continue;\n }\n else if (result === INITIAL_VALUE) {\n // If guard has not finished, we need to stop processing.\n return INITIAL_VALUE;\n }\n else if (result === false || isRedirect(result)) {\n // Result finished and was not true. Return the result.\n // Note that we only allow false/UrlTree/RedirectCommand. Other values are considered invalid and\n // ignored.\n return result;\n }\n }\n // Everything resolved to true. Return true.\n return true;\n }), filter((item) => item !== INITIAL_VALUE), take(1));\n });\n}\nfunction isRedirect(val) {\n return isUrlTree(val) || val instanceof RedirectCommand;\n}\n\nfunction checkGuards(injector, forwardEvent) {\n return mergeMap((t) => {\n const { targetSnapshot, currentSnapshot, guards: { canActivateChecks, canDeactivateChecks }, } = t;\n if (canDeactivateChecks.length === 0 && canActivateChecks.length === 0) {\n return of({ ...t, guardsResult: true });\n }\n return runCanDeactivateChecks(canDeactivateChecks, targetSnapshot, currentSnapshot, injector).pipe(mergeMap((canDeactivate) => {\n return canDeactivate && isBoolean(canDeactivate)\n ? runCanActivateChecks(targetSnapshot, canActivateChecks, injector, forwardEvent)\n : of(canDeactivate);\n }), map((guardsResult) => ({ ...t, guardsResult })));\n });\n}\nfunction runCanDeactivateChecks(checks, futureRSS, currRSS, injector) {\n return from(checks).pipe(mergeMap((check) => runCanDeactivate(check.component, check.route, currRSS, futureRSS, injector)), first((result) => {\n return result !== true;\n }, true));\n}\nfunction runCanActivateChecks(futureSnapshot, checks, injector, forwardEvent) {\n return from(checks).pipe(concatMap((check) => {\n return concat(fireChildActivationStart(check.route.parent, forwardEvent), fireActivationStart(check.route, forwardEvent), runCanActivateChild(futureSnapshot, check.path, injector), runCanActivate(futureSnapshot, check.route, injector));\n }), first((result) => {\n return result !== true;\n }, true));\n}\n/**\n * This should fire off `ActivationStart` events for each route being activated at this\n * level.\n * In other words, if you're activating `a` and `b` below, `path` will contain the\n * `ActivatedRouteSnapshot`s for both and we will fire `ActivationStart` for both. Always\n * return\n * `true` so checks continue to run.\n */\nfunction fireActivationStart(snapshot, forwardEvent) {\n if (snapshot !== null && forwardEvent) {\n forwardEvent(new ActivationStart(snapshot));\n }\n return of(true);\n}\n/**\n * This should fire off `ChildActivationStart` events for each route being activated at this\n * level.\n * In other words, if you're activating `a` and `b` below, `path` will contain the\n * `ActivatedRouteSnapshot`s for both and we will fire `ChildActivationStart` for both. Always\n * return\n * `true` so checks continue to run.\n */\nfunction fireChildActivationStart(snapshot, forwardEvent) {\n if (snapshot !== null && forwardEvent) {\n forwardEvent(new ChildActivationStart(snapshot));\n }\n return of(true);\n}\nfunction runCanActivate(futureRSS, futureARS, injector) {\n const canActivate = futureARS.routeConfig ? futureARS.routeConfig.canActivate : null;\n if (!canActivate || canActivate.length === 0)\n return of(true);\n const canActivateObservables = canActivate.map((canActivate) => {\n return defer(() => {\n const closestInjector = getClosestRouteInjector(futureARS) ?? injector;\n const guard = getTokenOrFunctionIdentity(canActivate, closestInjector);\n const guardVal = isCanActivate(guard)\n ? guard.canActivate(futureARS, futureRSS)\n : runInInjectionContext(closestInjector, () => guard(futureARS, futureRSS));\n return wrapIntoObservable(guardVal).pipe(first());\n });\n });\n return of(canActivateObservables).pipe(prioritizedGuardValue());\n}\nfunction runCanActivateChild(futureRSS, path, injector) {\n const futureARS = path[path.length - 1];\n const canActivateChildGuards = path\n .slice(0, path.length - 1)\n .reverse()\n .map((p) => getCanActivateChild(p))\n .filter((_) => _ !== null);\n const canActivateChildGuardsMapped = canActivateChildGuards.map((d) => {\n return defer(() => {\n const guardsMapped = d.guards.map((canActivateChild) => {\n const closestInjector = getClosestRouteInjector(d.node) ?? injector;\n const guard = getTokenOrFunctionIdentity(canActivateChild, closestInjector);\n const guardVal = isCanActivateChild(guard)\n ? guard.canActivateChild(futureARS, futureRSS)\n : runInInjectionContext(closestInjector, () => guard(futureARS, futureRSS));\n return wrapIntoObservable(guardVal).pipe(first());\n });\n return of(guardsMapped).pipe(prioritizedGuardValue());\n });\n });\n return of(canActivateChildGuardsMapped).pipe(prioritizedGuardValue());\n}\nfunction runCanDeactivate(component, currARS, currRSS, futureRSS, injector) {\n const canDeactivate = currARS && currARS.routeConfig ? currARS.routeConfig.canDeactivate : null;\n if (!canDeactivate || canDeactivate.length === 0)\n return of(true);\n const canDeactivateObservables = canDeactivate.map((c) => {\n const closestInjector = getClosestRouteInjector(currARS) ?? injector;\n const guard = getTokenOrFunctionIdentity(c, closestInjector);\n const guardVal = isCanDeactivate(guard)\n ? guard.canDeactivate(component, currARS, currRSS, futureRSS)\n : runInInjectionContext(closestInjector, () => guard(component, currARS, currRSS, futureRSS));\n return wrapIntoObservable(guardVal).pipe(first());\n });\n return of(canDeactivateObservables).pipe(prioritizedGuardValue());\n}\nfunction runCanLoadGuards(injector, route, segments, urlSerializer) {\n const canLoad = route.canLoad;\n if (canLoad === undefined || canLoad.length === 0) {\n return of(true);\n }\n const canLoadObservables = canLoad.map((injectionToken) => {\n const guard = getTokenOrFunctionIdentity(injectionToken, injector);\n const guardVal = isCanLoad(guard)\n ? guard.canLoad(route, segments)\n : runInInjectionContext(injector, () => guard(route, segments));\n return wrapIntoObservable(guardVal);\n });\n return of(canLoadObservables).pipe(prioritizedGuardValue(), redirectIfUrlTree(urlSerializer));\n}\nfunction redirectIfUrlTree(urlSerializer) {\n return pipe(tap((result) => {\n if (typeof result === 'boolean')\n return;\n throw redirectingNavigationError(urlSerializer, result);\n }), map((result) => result === true));\n}\nfunction runCanMatchGuards(injector, route, segments, urlSerializer) {\n const canMatch = route.canMatch;\n if (!canMatch || canMatch.length === 0)\n return of(true);\n const canMatchObservables = canMatch.map((injectionToken) => {\n const guard = getTokenOrFunctionIdentity(injectionToken, injector);\n const guardVal = isCanMatch(guard)\n ? guard.canMatch(route, segments)\n : runInInjectionContext(injector, () => guard(route, segments));\n return wrapIntoObservable(guardVal);\n });\n return of(canMatchObservables).pipe(prioritizedGuardValue(), redirectIfUrlTree(urlSerializer));\n}\n\nclass NoMatch {\n segmentGroup;\n constructor(segmentGroup) {\n this.segmentGroup = segmentGroup || null;\n }\n}\nclass AbsoluteRedirect extends Error {\n urlTree;\n constructor(urlTree) {\n super();\n this.urlTree = urlTree;\n }\n}\nfunction noMatch$1(segmentGroup) {\n return throwError(new NoMatch(segmentGroup));\n}\nfunction absoluteRedirect(newTree) {\n return throwError(new AbsoluteRedirect(newTree));\n}\nfunction namedOutletsRedirect(redirectTo) {\n return throwError(new ɵRuntimeError(4000 /* RuntimeErrorCode.NAMED_OUTLET_REDIRECT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `Only absolute redirects can have named outlets. redirectTo: '${redirectTo}'`));\n}\nfunction canLoadFails(route) {\n return throwError(navigationCancelingError((typeof ngDevMode === 'undefined' || ngDevMode) &&\n `Cannot load children because the guard of the route \"path: '${route.path}'\" returned false`, NavigationCancellationCode.GuardRejected));\n}\nclass ApplyRedirects {\n urlSerializer;\n urlTree;\n constructor(urlSerializer, urlTree) {\n this.urlSerializer = urlSerializer;\n this.urlTree = urlTree;\n }\n lineralizeSegments(route, urlTree) {\n let res = [];\n let c = urlTree.root;\n while (true) {\n res = res.concat(c.segments);\n if (c.numberOfChildren === 0) {\n return of(res);\n }\n if (c.numberOfChildren > 1 || !c.children[PRIMARY_OUTLET]) {\n return namedOutletsRedirect(`${route.redirectTo}`);\n }\n c = c.children[PRIMARY_OUTLET];\n }\n }\n applyRedirectCommands(segments, redirectTo, posParams, currentSnapshot, injector) {\n if (typeof redirectTo !== 'string') {\n const redirectToFn = redirectTo;\n const { queryParams, fragment, routeConfig, url, outlet, params, data, title } = currentSnapshot;\n const newRedirect = runInInjectionContext(injector, () => redirectToFn({ params, data, queryParams, fragment, routeConfig, url, outlet, title }));\n if (newRedirect instanceof UrlTree) {\n throw new AbsoluteRedirect(newRedirect);\n }\n redirectTo = newRedirect;\n }\n const newTree = this.applyRedirectCreateUrlTree(redirectTo, this.urlSerializer.parse(redirectTo), segments, posParams);\n if (redirectTo[0] === '/') {\n throw new AbsoluteRedirect(newTree);\n }\n return newTree;\n }\n applyRedirectCreateUrlTree(redirectTo, urlTree, segments, posParams) {\n const newRoot = this.createSegmentGroup(redirectTo, urlTree.root, segments, posParams);\n return new UrlTree(newRoot, this.createQueryParams(urlTree.queryParams, this.urlTree.queryParams), urlTree.fragment);\n }\n createQueryParams(redirectToParams, actualParams) {\n const res = {};\n Object.entries(redirectToParams).forEach(([k, v]) => {\n const copySourceValue = typeof v === 'string' && v[0] === ':';\n if (copySourceValue) {\n const sourceName = v.substring(1);\n res[k] = actualParams[sourceName];\n }\n else {\n res[k] = v;\n }\n });\n return res;\n }\n createSegmentGroup(redirectTo, group, segments, posParams) {\n const updatedSegments = this.createSegments(redirectTo, group.segments, segments, posParams);\n let children = {};\n Object.entries(group.children).forEach(([name, child]) => {\n children[name] = this.createSegmentGroup(redirectTo, child, segments, posParams);\n });\n return new UrlSegmentGroup(updatedSegments, children);\n }\n createSegments(redirectTo, redirectToSegments, actualSegments, posParams) {\n return redirectToSegments.map((s) => s.path[0] === ':'\n ? this.findPosParam(redirectTo, s, posParams)\n : this.findOrReturn(s, actualSegments));\n }\n findPosParam(redirectTo, redirectToUrlSegment, posParams) {\n const pos = posParams[redirectToUrlSegment.path.substring(1)];\n if (!pos)\n throw new ɵRuntimeError(4001 /* RuntimeErrorCode.MISSING_REDIRECT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `Cannot redirect to '${redirectTo}'. Cannot find '${redirectToUrlSegment.path}'.`);\n return pos;\n }\n findOrReturn(redirectToUrlSegment, actualSegments) {\n let idx = 0;\n for (const s of actualSegments) {\n if (s.path === redirectToUrlSegment.path) {\n actualSegments.splice(idx);\n return s;\n }\n idx++;\n }\n return redirectToUrlSegment;\n }\n}\n\nconst noMatch = {\n matched: false,\n consumedSegments: [],\n remainingSegments: [],\n parameters: {},\n positionalParamSegments: {},\n};\nfunction matchWithChecks(segmentGroup, route, segments, injector, urlSerializer) {\n const result = match(segmentGroup, route, segments);\n if (!result.matched) {\n return of(result);\n }\n // Only create the Route's `EnvironmentInjector` if it matches the attempted\n // navigation\n injector = getOrCreateRouteInjectorIfNeeded(route, injector);\n return runCanMatchGuards(injector, route, segments, urlSerializer).pipe(map((v) => (v === true ? result : { ...noMatch })));\n}\nfunction match(segmentGroup, route, segments) {\n if (route.path === '**') {\n return createWildcardMatchResult(segments);\n }\n if (route.path === '') {\n if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || segments.length > 0)) {\n return { ...noMatch };\n }\n return {\n matched: true,\n consumedSegments: [],\n remainingSegments: segments,\n parameters: {},\n positionalParamSegments: {},\n };\n }\n const matcher = route.matcher || defaultUrlMatcher;\n const res = matcher(segments, segmentGroup, route);\n if (!res)\n return { ...noMatch };\n const posParams = {};\n Object.entries(res.posParams ?? {}).forEach(([k, v]) => {\n posParams[k] = v.path;\n });\n const parameters = res.consumed.length > 0\n ? { ...posParams, ...res.consumed[res.consumed.length - 1].parameters }\n : posParams;\n return {\n matched: true,\n consumedSegments: res.consumed,\n remainingSegments: segments.slice(res.consumed.length),\n // TODO(atscott): investigate combining parameters and positionalParamSegments\n parameters,\n positionalParamSegments: res.posParams ?? {},\n };\n}\nfunction createWildcardMatchResult(segments) {\n return {\n matched: true,\n parameters: segments.length > 0 ? last(segments).parameters : {},\n consumedSegments: segments,\n remainingSegments: [],\n positionalParamSegments: {},\n };\n}\nfunction split(segmentGroup, consumedSegments, slicedSegments, config) {\n if (slicedSegments.length > 0 &&\n containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config)) {\n const s = new UrlSegmentGroup(consumedSegments, createChildrenForEmptyPaths(config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));\n return { segmentGroup: s, slicedSegments: [] };\n }\n if (slicedSegments.length === 0 &&\n containsEmptyPathMatches(segmentGroup, slicedSegments, config)) {\n const s = new UrlSegmentGroup(segmentGroup.segments, addEmptyPathsToChildrenIfNeeded(segmentGroup, slicedSegments, config, segmentGroup.children));\n return { segmentGroup: s, slicedSegments };\n }\n const s = new UrlSegmentGroup(segmentGroup.segments, segmentGroup.children);\n return { segmentGroup: s, slicedSegments };\n}\nfunction addEmptyPathsToChildrenIfNeeded(segmentGroup, slicedSegments, routes, children) {\n const res = {};\n for (const r of routes) {\n if (emptyPathMatch(segmentGroup, slicedSegments, r) && !children[getOutlet(r)]) {\n const s = new UrlSegmentGroup([], {});\n res[getOutlet(r)] = s;\n }\n }\n return { ...children, ...res };\n}\nfunction createChildrenForEmptyPaths(routes, primarySegment) {\n const res = {};\n res[PRIMARY_OUTLET] = primarySegment;\n for (const r of routes) {\n if (r.path === '' && getOutlet(r) !== PRIMARY_OUTLET) {\n const s = new UrlSegmentGroup([], {});\n res[getOutlet(r)] = s;\n }\n }\n return res;\n}\nfunction containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, routes) {\n return routes.some((r) => emptyPathMatch(segmentGroup, slicedSegments, r) && getOutlet(r) !== PRIMARY_OUTLET);\n}\nfunction containsEmptyPathMatches(segmentGroup, slicedSegments, routes) {\n return routes.some((r) => emptyPathMatch(segmentGroup, slicedSegments, r));\n}\nfunction emptyPathMatch(segmentGroup, slicedSegments, r) {\n if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full') {\n return false;\n }\n return r.path === '';\n}\nfunction noLeftoversInUrl(segmentGroup, segments, outlet) {\n return segments.length === 0 && !segmentGroup.children[outlet];\n}\n\n/**\n * Class used to indicate there were no additional route config matches but that all segments of\n * the URL were consumed during matching so the route was URL matched. When this happens, we still\n * try to match child configs in case there are empty path children.\n */\nclass NoLeftoversInUrl {\n}\nfunction recognize$1(injector, configLoader, rootComponentType, config, urlTree, urlSerializer, paramsInheritanceStrategy = 'emptyOnly') {\n return new Recognizer(injector, configLoader, rootComponentType, config, urlTree, paramsInheritanceStrategy, urlSerializer).recognize();\n}\nconst MAX_ALLOWED_REDIRECTS = 31;\nclass Recognizer {\n injector;\n configLoader;\n rootComponentType;\n config;\n urlTree;\n paramsInheritanceStrategy;\n urlSerializer;\n applyRedirects;\n absoluteRedirectCount = 0;\n allowRedirects = true;\n constructor(injector, configLoader, rootComponentType, config, urlTree, paramsInheritanceStrategy, urlSerializer) {\n this.injector = injector;\n this.configLoader = configLoader;\n this.rootComponentType = rootComponentType;\n this.config = config;\n this.urlTree = urlTree;\n this.paramsInheritanceStrategy = paramsInheritanceStrategy;\n this.urlSerializer = urlSerializer;\n this.applyRedirects = new ApplyRedirects(this.urlSerializer, this.urlTree);\n }\n noMatchError(e) {\n return new ɵRuntimeError(4002 /* RuntimeErrorCode.NO_MATCH */, typeof ngDevMode === 'undefined' || ngDevMode\n ? `Cannot match any routes. URL Segment: '${e.segmentGroup}'`\n : `'${e.segmentGroup}'`);\n }\n recognize() {\n const rootSegmentGroup = split(this.urlTree.root, [], [], this.config).segmentGroup;\n return this.match(rootSegmentGroup).pipe(map(({ children, rootSnapshot }) => {\n const rootNode = new TreeNode(rootSnapshot, children);\n const routeState = new RouterStateSnapshot('', rootNode);\n const tree = createUrlTreeFromSnapshot(rootSnapshot, [], this.urlTree.queryParams, this.urlTree.fragment);\n // https://github.com/angular/angular/issues/47307\n // Creating the tree stringifies the query params\n // We don't want to do this here so reassign them to the original.\n tree.queryParams = this.urlTree.queryParams;\n routeState.url = this.urlSerializer.serialize(tree);\n return { state: routeState, tree };\n }));\n }\n match(rootSegmentGroup) {\n // Use Object.freeze to prevent readers of the Router state from modifying it outside\n // of a navigation, resulting in the router being out of sync with the browser.\n const rootSnapshot = new ActivatedRouteSnapshot([], Object.freeze({}), Object.freeze({ ...this.urlTree.queryParams }), this.urlTree.fragment, Object.freeze({}), PRIMARY_OUTLET, this.rootComponentType, null, {});\n return this.processSegmentGroup(this.injector, this.config, rootSegmentGroup, PRIMARY_OUTLET, rootSnapshot).pipe(map((children) => {\n return { children, rootSnapshot };\n }), catchError((e) => {\n if (e instanceof AbsoluteRedirect) {\n this.urlTree = e.urlTree;\n return this.match(e.urlTree.root);\n }\n if (e instanceof NoMatch) {\n throw this.noMatchError(e);\n }\n throw e;\n }));\n }\n processSegmentGroup(injector, config, segmentGroup, outlet, parentRoute) {\n if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\n return this.processChildren(injector, config, segmentGroup, parentRoute);\n }\n return this.processSegment(injector, config, segmentGroup, segmentGroup.segments, outlet, true, parentRoute).pipe(map((child) => (child instanceof TreeNode ? [child] : [])));\n }\n /**\n * Matches every child outlet in the `segmentGroup` to a `Route` in the config. Returns `null` if\n * we cannot find a match for _any_ of the children.\n *\n * @param config - The `Routes` to match against\n * @param segmentGroup - The `UrlSegmentGroup` whose children need to be matched against the\n * config.\n */\n processChildren(injector, config, segmentGroup, parentRoute) {\n // Expand outlets one at a time, starting with the primary outlet. We need to do it this way\n // because an absolute redirect from the primary outlet takes precedence.\n const childOutlets = [];\n for (const child of Object.keys(segmentGroup.children)) {\n if (child === 'primary') {\n childOutlets.unshift(child);\n }\n else {\n childOutlets.push(child);\n }\n }\n return from(childOutlets).pipe(concatMap((childOutlet) => {\n const child = segmentGroup.children[childOutlet];\n // Sort the config so that routes with outlets that match the one being activated\n // appear first, followed by routes for other outlets, which might match if they have\n // an empty path.\n const sortedConfig = sortByMatchingOutlets(config, childOutlet);\n return this.processSegmentGroup(injector, sortedConfig, child, childOutlet, parentRoute);\n }), scan((children, outletChildren) => {\n children.push(...outletChildren);\n return children;\n }), defaultIfEmpty(null), last$1(), mergeMap((children) => {\n if (children === null)\n return noMatch$1(segmentGroup);\n // Because we may have matched two outlets to the same empty path segment, we can have\n // multiple activated results for the same outlet. We should merge the children of\n // these results so the final return value is only one `TreeNode` per outlet.\n const mergedChildren = mergeEmptyPathMatches(children);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // This should really never happen - we are only taking the first match for each\n // outlet and merge the empty path matches.\n checkOutletNameUniqueness(mergedChildren);\n }\n sortActivatedRouteSnapshots(mergedChildren);\n return of(mergedChildren);\n }));\n }\n processSegment(injector, routes, segmentGroup, segments, outlet, allowRedirects, parentRoute) {\n return from(routes).pipe(concatMap((r) => {\n return this.processSegmentAgainstRoute(r._injector ?? injector, routes, r, segmentGroup, segments, outlet, allowRedirects, parentRoute).pipe(catchError((e) => {\n if (e instanceof NoMatch) {\n return of(null);\n }\n throw e;\n }));\n }), first((x) => !!x), catchError((e) => {\n if (isEmptyError(e)) {\n if (noLeftoversInUrl(segmentGroup, segments, outlet)) {\n return of(new NoLeftoversInUrl());\n }\n return noMatch$1(segmentGroup);\n }\n throw e;\n }));\n }\n processSegmentAgainstRoute(injector, routes, route, rawSegment, segments, outlet, allowRedirects, parentRoute) {\n // We allow matches to empty paths when the outlets differ so we can match a url like `/(b:b)` to\n // a config like\n // * `{path: '', children: [{path: 'b', outlet: 'b'}]}`\n // or even\n // * `{path: '', outlet: 'a', children: [{path: 'b', outlet: 'b'}]`\n //\n // The exception here is when the segment outlet is for the primary outlet. This would\n // result in a match inside the named outlet because all children there are written as primary\n // outlets. So we need to prevent child named outlet matches in a url like `/b` in a config like\n // * `{path: '', outlet: 'x' children: [{path: 'b'}]}`\n // This should only match if the url is `/(x:b)`.\n if (getOutlet(route) !== outlet &&\n (outlet === PRIMARY_OUTLET || !emptyPathMatch(rawSegment, segments, route))) {\n return noMatch$1(rawSegment);\n }\n if (route.redirectTo === undefined) {\n return this.matchSegmentAgainstRoute(injector, rawSegment, route, segments, outlet, parentRoute);\n }\n if (this.allowRedirects && allowRedirects) {\n return this.expandSegmentAgainstRouteUsingRedirect(injector, rawSegment, routes, route, segments, outlet, parentRoute);\n }\n return noMatch$1(rawSegment);\n }\n expandSegmentAgainstRouteUsingRedirect(injector, segmentGroup, routes, route, segments, outlet, parentRoute) {\n const { matched, parameters, consumedSegments, positionalParamSegments, remainingSegments } = match(segmentGroup, route, segments);\n if (!matched)\n return noMatch$1(segmentGroup);\n // TODO(atscott): Move all of this under an if(ngDevMode) as a breaking change and allow stack\n // size exceeded in production\n if (typeof route.redirectTo === 'string' && route.redirectTo[0] === '/') {\n this.absoluteRedirectCount++;\n if (this.absoluteRedirectCount > MAX_ALLOWED_REDIRECTS) {\n if (ngDevMode) {\n throw new ɵRuntimeError(4016 /* RuntimeErrorCode.INFINITE_REDIRECT */, `Detected possible infinite redirect when redirecting from '${this.urlTree}' to '${route.redirectTo}'.\\n` +\n `This is currently a dev mode only error but will become a` +\n ` call stack size exceeded error in production in a future major version.`);\n }\n this.allowRedirects = false;\n }\n }\n const currentSnapshot = new ActivatedRouteSnapshot(segments, parameters, Object.freeze({ ...this.urlTree.queryParams }), this.urlTree.fragment, getData(route), getOutlet(route), route.component ?? route._loadedComponent ?? null, route, getResolve(route));\n const inherited = getInherited(currentSnapshot, parentRoute, this.paramsInheritanceStrategy);\n currentSnapshot.params = Object.freeze(inherited.params);\n currentSnapshot.data = Object.freeze(inherited.data);\n const newTree = this.applyRedirects.applyRedirectCommands(consumedSegments, route.redirectTo, positionalParamSegments, currentSnapshot, injector);\n return this.applyRedirects.lineralizeSegments(route, newTree).pipe(mergeMap((newSegments) => {\n return this.processSegment(injector, routes, segmentGroup, newSegments.concat(remainingSegments), outlet, false, parentRoute);\n }));\n }\n matchSegmentAgainstRoute(injector, rawSegment, route, segments, outlet, parentRoute) {\n const matchResult = matchWithChecks(rawSegment, route, segments, injector, this.urlSerializer);\n if (route.path === '**') {\n // Prior versions of the route matching algorithm would stop matching at the wildcard route.\n // We should investigate a better strategy for any existing children. Otherwise, these\n // child segments are silently dropped from the navigation.\n // https://github.com/angular/angular/issues/40089\n rawSegment.children = {};\n }\n return matchResult.pipe(switchMap((result) => {\n if (!result.matched) {\n return noMatch$1(rawSegment);\n }\n // If the route has an injector created from providers, we should start using that.\n injector = route._injector ?? injector;\n return this.getChildConfig(injector, route, segments).pipe(switchMap(({ routes: childConfig }) => {\n const childInjector = route._loadedInjector ?? injector;\n const { parameters, consumedSegments, remainingSegments } = result;\n const snapshot = new ActivatedRouteSnapshot(consumedSegments, parameters, Object.freeze({ ...this.urlTree.queryParams }), this.urlTree.fragment, getData(route), getOutlet(route), route.component ?? route._loadedComponent ?? null, route, getResolve(route));\n const inherited = getInherited(snapshot, parentRoute, this.paramsInheritanceStrategy);\n snapshot.params = Object.freeze(inherited.params);\n snapshot.data = Object.freeze(inherited.data);\n const { segmentGroup, slicedSegments } = split(rawSegment, consumedSegments, remainingSegments, childConfig);\n if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {\n return this.processChildren(childInjector, childConfig, segmentGroup, snapshot).pipe(map((children) => {\n return new TreeNode(snapshot, children);\n }));\n }\n if (childConfig.length === 0 && slicedSegments.length === 0) {\n return of(new TreeNode(snapshot, []));\n }\n const matchedOnOutlet = getOutlet(route) === outlet;\n // If we matched a config due to empty path match on a different outlet, we need to\n // continue passing the current outlet for the segment rather than switch to PRIMARY.\n // Note that we switch to primary when we have a match because outlet configs look like\n // this: {path: 'a', outlet: 'a', children: [\n // {path: 'b', component: B},\n // {path: 'c', component: C},\n // ]}\n // Notice that the children of the named outlet are configured with the primary outlet\n return this.processSegment(childInjector, childConfig, segmentGroup, slicedSegments, matchedOnOutlet ? PRIMARY_OUTLET : outlet, true, snapshot).pipe(map((child) => {\n return new TreeNode(snapshot, child instanceof TreeNode ? [child] : []);\n }));\n }));\n }));\n }\n getChildConfig(injector, route, segments) {\n if (route.children) {\n // The children belong to the same module\n return of({ routes: route.children, injector });\n }\n if (route.loadChildren) {\n // lazy children belong to the loaded module\n if (route._loadedRoutes !== undefined) {\n return of({ routes: route._loadedRoutes, injector: route._loadedInjector });\n }\n return runCanLoadGuards(injector, route, segments, this.urlSerializer).pipe(mergeMap((shouldLoadResult) => {\n if (shouldLoadResult) {\n return this.configLoader.loadChildren(injector, route).pipe(tap((cfg) => {\n route._loadedRoutes = cfg.routes;\n route._loadedInjector = cfg.injector;\n }));\n }\n return canLoadFails(route);\n }));\n }\n return of({ routes: [], injector });\n }\n}\nfunction sortActivatedRouteSnapshots(nodes) {\n nodes.sort((a, b) => {\n if (a.value.outlet === PRIMARY_OUTLET)\n return -1;\n if (b.value.outlet === PRIMARY_OUTLET)\n return 1;\n return a.value.outlet.localeCompare(b.value.outlet);\n });\n}\nfunction hasEmptyPathConfig(node) {\n const config = node.value.routeConfig;\n return config && config.path === '';\n}\n/**\n * Finds `TreeNode`s with matching empty path route configs and merges them into `TreeNode` with\n * the children from each duplicate. This is necessary because different outlets can match a\n * single empty path route config and the results need to then be merged.\n */\nfunction mergeEmptyPathMatches(nodes) {\n const result = [];\n // The set of nodes which contain children that were merged from two duplicate empty path nodes.\n const mergedNodes = new Set();\n for (const node of nodes) {\n if (!hasEmptyPathConfig(node)) {\n result.push(node);\n continue;\n }\n const duplicateEmptyPathNode = result.find((resultNode) => node.value.routeConfig === resultNode.value.routeConfig);\n if (duplicateEmptyPathNode !== undefined) {\n duplicateEmptyPathNode.children.push(...node.children);\n mergedNodes.add(duplicateEmptyPathNode);\n }\n else {\n result.push(node);\n }\n }\n // For each node which has children from multiple sources, we need to recompute a new `TreeNode`\n // by also merging those children. This is necessary when there are multiple empty path configs\n // in a row. Put another way: whenever we combine children of two nodes, we need to also check\n // if any of those children can be combined into a single node as well.\n for (const mergedNode of mergedNodes) {\n const mergedChildren = mergeEmptyPathMatches(mergedNode.children);\n result.push(new TreeNode(mergedNode.value, mergedChildren));\n }\n return result.filter((n) => !mergedNodes.has(n));\n}\nfunction checkOutletNameUniqueness(nodes) {\n const names = {};\n nodes.forEach((n) => {\n const routeWithSameOutletName = names[n.value.outlet];\n if (routeWithSameOutletName) {\n const p = routeWithSameOutletName.url.map((s) => s.toString()).join('/');\n const c = n.value.url.map((s) => s.toString()).join('/');\n throw new ɵRuntimeError(4006 /* RuntimeErrorCode.TWO_SEGMENTS_WITH_SAME_OUTLET */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `Two segments cannot have the same outlet name: '${p}' and '${c}'.`);\n }\n names[n.value.outlet] = n.value;\n });\n}\nfunction getData(route) {\n return route.data || {};\n}\nfunction getResolve(route) {\n return route.resolve || {};\n}\n\nfunction recognize(injector, configLoader, rootComponentType, config, serializer, paramsInheritanceStrategy) {\n return mergeMap((t) => recognize$1(injector, configLoader, rootComponentType, config, t.extractedUrl, serializer, paramsInheritanceStrategy).pipe(map(({ state: targetSnapshot, tree: urlAfterRedirects }) => {\n return { ...t, targetSnapshot, urlAfterRedirects };\n })));\n}\n\nfunction resolveData(paramsInheritanceStrategy, injector) {\n return mergeMap((t) => {\n const { targetSnapshot, guards: { canActivateChecks }, } = t;\n if (!canActivateChecks.length) {\n return of(t);\n }\n // Iterating a Set in javascript happens in insertion order so it is safe to use a `Set` to\n // preserve the correct order that the resolvers should run in.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set#description\n const routesWithResolversToRun = new Set(canActivateChecks.map((check) => check.route));\n const routesNeedingDataUpdates = new Set();\n for (const route of routesWithResolversToRun) {\n if (routesNeedingDataUpdates.has(route)) {\n continue;\n }\n // All children under the route with a resolver to run need to recompute inherited data.\n for (const newRoute of flattenRouteTree(route)) {\n routesNeedingDataUpdates.add(newRoute);\n }\n }\n let routesProcessed = 0;\n return from(routesNeedingDataUpdates).pipe(concatMap((route) => {\n if (routesWithResolversToRun.has(route)) {\n return runResolve(route, targetSnapshot, paramsInheritanceStrategy, injector);\n }\n else {\n route.data = getInherited(route, route.parent, paramsInheritanceStrategy).resolve;\n return of(void 0);\n }\n }), tap(() => routesProcessed++), takeLast(1), mergeMap((_) => (routesProcessed === routesNeedingDataUpdates.size ? of(t) : EMPTY)));\n });\n}\n/**\n * Returns the `ActivatedRouteSnapshot` tree as an array, using DFS to traverse the route tree.\n */\nfunction flattenRouteTree(route) {\n const descendants = route.children.map((child) => flattenRouteTree(child)).flat();\n return [route, ...descendants];\n}\nfunction runResolve(futureARS, futureRSS, paramsInheritanceStrategy, injector) {\n const config = futureARS.routeConfig;\n const resolve = futureARS._resolve;\n if (config?.title !== undefined && !hasStaticTitle(config)) {\n resolve[RouteTitleKey] = config.title;\n }\n return resolveNode(resolve, futureARS, futureRSS, injector).pipe(map((resolvedData) => {\n futureARS._resolvedData = resolvedData;\n futureARS.data = getInherited(futureARS, futureARS.parent, paramsInheritanceStrategy).resolve;\n return null;\n }));\n}\nfunction resolveNode(resolve, futureARS, futureRSS, injector) {\n const keys = getDataKeys(resolve);\n if (keys.length === 0) {\n return of({});\n }\n const data = {};\n return from(keys).pipe(mergeMap((key) => getResolver(resolve[key], futureARS, futureRSS, injector).pipe(first(), tap((value) => {\n if (value instanceof RedirectCommand) {\n throw redirectingNavigationError(new DefaultUrlSerializer(), value);\n }\n data[key] = value;\n }))), takeLast(1), map(() => data), catchError((e) => (isEmptyError(e) ? EMPTY : throwError(e))));\n}\nfunction getResolver(injectionToken, futureARS, futureRSS, injector) {\n const closestInjector = getClosestRouteInjector(futureARS) ?? injector;\n const resolver = getTokenOrFunctionIdentity(injectionToken, closestInjector);\n const resolverValue = resolver.resolve\n ? resolver.resolve(futureARS, futureRSS)\n : runInInjectionContext(closestInjector, () => resolver(futureARS, futureRSS));\n return wrapIntoObservable(resolverValue);\n}\n\n/**\n * Perform a side effect through a switchMap for every emission on the source Observable,\n * but return an Observable that is identical to the source. It's essentially the same as\n * the `tap` operator, but if the side effectful `next` function returns an ObservableInput,\n * it will wait before continuing with the original value.\n */\nfunction switchTap(next) {\n return switchMap((v) => {\n const nextResult = next(v);\n if (nextResult) {\n return from(nextResult).pipe(map(() => v));\n }\n return of(v);\n });\n}\n\n/**\n * Provides a strategy for setting the page title after a router navigation.\n *\n * The built-in implementation traverses the router state snapshot and finds the deepest primary\n * outlet with `title` property. Given the `Routes` below, navigating to\n * `/base/child(popup:aux)` would result in the document title being set to \"child\".\n * ```ts\n * [\n * {path: 'base', title: 'base', children: [\n * {path: 'child', title: 'child'},\n * ],\n * {path: 'aux', outlet: 'popup', title: 'popupTitle'}\n * ]\n * ```\n *\n * This class can be used as a base class for custom title strategies. That is, you can create your\n * own class that extends the `TitleStrategy`. Note that in the above example, the `title`\n * from the named outlet is never used. However, a custom strategy might be implemented to\n * incorporate titles in named outlets.\n *\n * @publicApi\n * @see [Page title guide](guide/routing/common-router-tasks#setting-the-page-title)\n */\nclass TitleStrategy {\n /**\n * @returns The `title` of the deepest primary route.\n */\n buildTitle(snapshot) {\n let pageTitle;\n let route = snapshot.root;\n while (route !== undefined) {\n pageTitle = this.getResolvedTitleForRoute(route) ?? pageTitle;\n route = route.children.find((child) => child.outlet === PRIMARY_OUTLET);\n }\n return pageTitle;\n }\n /**\n * Given an `ActivatedRouteSnapshot`, returns the final value of the\n * `Route.title` property, which can either be a static string or a resolved value.\n */\n getResolvedTitleForRoute(snapshot) {\n return snapshot.data[RouteTitleKey];\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: TitleStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]\n }] });\n/**\n * The default `TitleStrategy` used by the router that updates the title using the `Title` service.\n */\nclass DefaultTitleStrategy extends TitleStrategy {\n title;\n constructor(title) {\n super();\n this.title = title;\n }\n /**\n * Sets the title of the browser to the given value.\n *\n * @param title The `pageTitle` from the deepest primary route.\n */\n updateTitle(snapshot) {\n const title = this.buildTitle(snapshot);\n if (title !== undefined) {\n this.title.setTitle(title);\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DefaultTitleStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: i1.Title }] });\n\n/**\n * A DI token for the router service.\n *\n * @publicApi\n */\nconst ROUTER_CONFIGURATION = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'router config' : '', {\n providedIn: 'root',\n factory: () => ({}),\n});\n\n/**\n * This component is used internally within the router to be a placeholder when an empty\n * router-outlet is needed. For example, with a config such as:\n *\n * `{path: 'parent', outlet: 'nav', children: [...]}`\n *\n * In order to render, there needs to be a component on this config, which will default\n * to this `EmptyOutletComponent`.\n */\nclass ɵEmptyOutletComponent {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"19.1.4\", type: ɵEmptyOutletComponent, isStandalone: true, selector: \"ng-component\", exportAs: [\"emptyRouterOutlet\"], ngImport: i0, template: `<router-outlet/>`, isInline: true, dependencies: [{ kind: \"directive\", type: RouterOutlet, selector: \"router-outlet\", inputs: [\"name\", \"routerOutletData\"], outputs: [\"activate\", \"deactivate\", \"attach\", \"detach\"], exportAs: [\"outlet\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{\n type: Component,\n args: [{\n template: `<router-outlet/>`,\n imports: [RouterOutlet],\n // Used to avoid component ID collisions with user code.\n exportAs: 'emptyRouterOutlet',\n }]\n }] });\n/**\n * Makes a copy of the config and adds any default required properties.\n */\nfunction standardizeConfig(r) {\n const children = r.children && r.children.map(standardizeConfig);\n const c = children ? { ...r, children } : { ...r };\n if (!c.component &&\n !c.loadComponent &&\n (children || c.loadChildren) &&\n c.outlet &&\n c.outlet !== PRIMARY_OUTLET) {\n c.component = ɵEmptyOutletComponent;\n }\n return c;\n}\n\n/**\n * The DI token for a router configuration.\n *\n * `ROUTES` is a low level API for router configuration via dependency injection.\n *\n * We recommend that in almost all cases to use higher level APIs such as `RouterModule.forRoot()`,\n * `provideRouter`, or `Router.resetConfig()`.\n *\n * @publicApi\n */\nconst ROUTES = new InjectionToken(ngDevMode ? 'ROUTES' : '');\nclass RouterConfigLoader {\n componentLoaders = new WeakMap();\n childrenLoaders = new WeakMap();\n onLoadStartListener;\n onLoadEndListener;\n compiler = inject(Compiler);\n loadComponent(route) {\n if (this.componentLoaders.get(route)) {\n return this.componentLoaders.get(route);\n }\n else if (route._loadedComponent) {\n return of(route._loadedComponent);\n }\n if (this.onLoadStartListener) {\n this.onLoadStartListener(route);\n }\n const loadRunner = wrapIntoObservable(route.loadComponent()).pipe(map(maybeUnwrapDefaultExport), tap((component) => {\n if (this.onLoadEndListener) {\n this.onLoadEndListener(route);\n }\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n assertStandalone(route.path ?? '', component);\n route._loadedComponent = component;\n }), finalize(() => {\n this.componentLoaders.delete(route);\n }));\n // Use custom ConnectableObservable as share in runners pipe increasing the bundle size too much\n const loader = new ConnectableObservable(loadRunner, () => new Subject()).pipe(refCount());\n this.componentLoaders.set(route, loader);\n return loader;\n }\n loadChildren(parentInjector, route) {\n if (this.childrenLoaders.get(route)) {\n return this.childrenLoaders.get(route);\n }\n else if (route._loadedRoutes) {\n return of({ routes: route._loadedRoutes, injector: route._loadedInjector });\n }\n if (this.onLoadStartListener) {\n this.onLoadStartListener(route);\n }\n const moduleFactoryOrRoutes$ = loadChildren(route, this.compiler, parentInjector, this.onLoadEndListener);\n const loadRunner = moduleFactoryOrRoutes$.pipe(finalize(() => {\n this.childrenLoaders.delete(route);\n }));\n // Use custom ConnectableObservable as share in runners pipe increasing the bundle size too much\n const loader = new ConnectableObservable(loadRunner, () => new Subject()).pipe(refCount());\n this.childrenLoaders.set(route, loader);\n return loader;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterConfigLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterConfigLoader, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n/**\n * Executes a `route.loadChildren` callback and converts the result to an array of child routes and\n * an injector if that callback returned a module.\n *\n * This function is used for the route discovery during prerendering\n * in @angular-devkit/build-angular. If there are any updates to the contract here, it will require\n * an update to the extractor.\n */\nfunction loadChildren(route, compiler, parentInjector, onLoadEndListener) {\n return wrapIntoObservable(route.loadChildren()).pipe(map(maybeUnwrapDefaultExport), mergeMap((t) => {\n if (t instanceof NgModuleFactory || Array.isArray(t)) {\n return of(t);\n }\n else {\n return from(compiler.compileModuleAsync(t));\n }\n }), map((factoryOrRoutes) => {\n if (onLoadEndListener) {\n onLoadEndListener(route);\n }\n // This injector comes from the `NgModuleRef` when lazy loading an `NgModule`. There is\n // no injector associated with lazy loading a `Route` array.\n let injector;\n let rawRoutes;\n let requireStandaloneComponents = false;\n if (Array.isArray(factoryOrRoutes)) {\n rawRoutes = factoryOrRoutes;\n requireStandaloneComponents = true;\n }\n else {\n injector = factoryOrRoutes.create(parentInjector).injector;\n // When loading a module that doesn't provide `RouterModule.forChild()` preloader\n // will get stuck in an infinite loop. The child module's Injector will look to\n // its parent `Injector` when it doesn't find any ROUTES so it will return routes\n // for it's parent module instead.\n rawRoutes = injector.get(ROUTES, [], { optional: true, self: true }).flat();\n }\n const routes = rawRoutes.map(standardizeConfig);\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n validateConfig(routes, route.path, requireStandaloneComponents);\n return { routes, injector };\n }));\n}\nfunction isWrappedDefaultExport(value) {\n // We use `in` here with a string key `'default'`, because we expect `DefaultExport` objects to be\n // dynamically imported ES modules with a spec-mandated `default` key. Thus we don't expect that\n // `default` will be a renamed property.\n return value && typeof value === 'object' && 'default' in value;\n}\nfunction maybeUnwrapDefaultExport(input) {\n // As per `isWrappedDefaultExport`, the `default` key here is generated by the browser and not\n // subject to property renaming, so we reference it with bracket access.\n return isWrappedDefaultExport(input) ? input['default'] : input;\n}\n\n/**\n * @description\n *\n * Provides a way to migrate AngularJS applications to Angular.\n *\n * @publicApi\n */\nclass UrlHandlingStrategy {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: UrlHandlingStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }]\n }] });\n/**\n * @publicApi\n */\nclass DefaultUrlHandlingStrategy {\n shouldProcessUrl(url) {\n return true;\n }\n extract(url) {\n return url;\n }\n merge(newUrlPart, wholeUrl) {\n return newUrlPart;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\n/// <reference types=\"dom-view-transitions\" />\nconst CREATE_VIEW_TRANSITION = new InjectionToken(ngDevMode ? 'view transition helper' : '');\nconst VIEW_TRANSITION_OPTIONS = new InjectionToken(ngDevMode ? 'view transition options' : '');\n/**\n * A helper function for using browser view transitions. This function skips the call to\n * `startViewTransition` if the browser does not support it.\n *\n * @returns A Promise that resolves when the view transition callback begins.\n */\nfunction createViewTransition(injector, from, to) {\n const transitionOptions = injector.get(VIEW_TRANSITION_OPTIONS);\n const document = injector.get(DOCUMENT);\n // Create promises outside the Angular zone to avoid causing extra change detections\n return injector.get(NgZone).runOutsideAngular(() => {\n if (!document.startViewTransition || transitionOptions.skipNextTransition) {\n transitionOptions.skipNextTransition = false;\n // The timing of `startViewTransition` is closer to a macrotask. It won't be called\n // until the current event loop exits so we use a promise resolved in a timeout instead\n // of Promise.resolve().\n return new Promise((resolve) => setTimeout(resolve));\n }\n let resolveViewTransitionStarted;\n const viewTransitionStarted = new Promise((resolve) => {\n resolveViewTransitionStarted = resolve;\n });\n const transition = document.startViewTransition(() => {\n resolveViewTransitionStarted();\n // We don't actually update dom within the transition callback. The resolving of the above\n // promise unblocks the Router navigation, which synchronously activates and deactivates\n // routes (the DOM update). This view transition waits for the next change detection to\n // complete (below), which includes the update phase of the routed components.\n return createRenderPromise(injector);\n });\n const { onViewTransitionCreated } = transitionOptions;\n if (onViewTransitionCreated) {\n runInInjectionContext(injector, () => onViewTransitionCreated({ transition, from, to }));\n }\n return viewTransitionStarted;\n });\n}\n/**\n * Creates a promise that resolves after next render.\n */\nfunction createRenderPromise(injector) {\n return new Promise((resolve) => {\n // Wait for the microtask queue to empty after the next render happens (by waiting a macrotask).\n // This ensures any follow-up renders in the microtask queue are completed before the\n // view transition starts animating.\n afterNextRender({ read: () => setTimeout(resolve) }, { injector });\n });\n}\n\nconst NAVIGATION_ERROR_HANDLER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'navigation error handler' : '');\nclass NavigationTransitions {\n currentNavigation = null;\n currentTransition = null;\n lastSuccessfulNavigation = null;\n /**\n * These events are used to communicate back to the Router about the state of the transition. The\n * Router wants to respond to these events in various ways. Because the `NavigationTransition`\n * class is not public, this event subject is not publicly exposed.\n */\n events = new Subject();\n /**\n * Used to abort the current transition with an error.\n */\n transitionAbortSubject = new Subject();\n configLoader = inject(RouterConfigLoader);\n environmentInjector = inject(EnvironmentInjector);\n destroyRef = inject(DestroyRef);\n urlSerializer = inject(UrlSerializer);\n rootContexts = inject(ChildrenOutletContexts);\n location = inject(Location);\n inputBindingEnabled = inject(INPUT_BINDER, { optional: true }) !== null;\n titleStrategy = inject(TitleStrategy);\n options = inject(ROUTER_CONFIGURATION, { optional: true }) || {};\n paramsInheritanceStrategy = this.options.paramsInheritanceStrategy || 'emptyOnly';\n urlHandlingStrategy = inject(UrlHandlingStrategy);\n createViewTransition = inject(CREATE_VIEW_TRANSITION, { optional: true });\n navigationErrorHandler = inject(NAVIGATION_ERROR_HANDLER, { optional: true });\n navigationId = 0;\n get hasRequestedNavigation() {\n return this.navigationId !== 0;\n }\n transitions;\n /**\n * Hook that enables you to pause navigation after the preactivation phase.\n * Used by `RouterModule`.\n *\n * @internal\n */\n afterPreactivation = () => of(void 0);\n /** @internal */\n rootComponentType = null;\n destroyed = false;\n constructor() {\n const onLoadStart = (r) => this.events.next(new RouteConfigLoadStart(r));\n const onLoadEnd = (r) => this.events.next(new RouteConfigLoadEnd(r));\n this.configLoader.onLoadEndListener = onLoadEnd;\n this.configLoader.onLoadStartListener = onLoadStart;\n this.destroyRef.onDestroy(() => {\n this.destroyed = true;\n });\n }\n complete() {\n this.transitions?.complete();\n }\n handleNavigationRequest(request) {\n const id = ++this.navigationId;\n this.transitions?.next({ ...this.transitions.value, ...request, id });\n }\n setupNavigations(router, initialUrlTree, initialRouterState) {\n this.transitions = new BehaviorSubject({\n id: 0,\n currentUrlTree: initialUrlTree,\n currentRawUrl: initialUrlTree,\n extractedUrl: this.urlHandlingStrategy.extract(initialUrlTree),\n urlAfterRedirects: this.urlHandlingStrategy.extract(initialUrlTree),\n rawUrl: initialUrlTree,\n extras: {},\n resolve: () => { },\n reject: () => { },\n promise: Promise.resolve(true),\n source: IMPERATIVE_NAVIGATION,\n restoredState: null,\n currentSnapshot: initialRouterState.snapshot,\n targetSnapshot: null,\n currentRouterState: initialRouterState,\n targetRouterState: null,\n guards: { canActivateChecks: [], canDeactivateChecks: [] },\n guardsResult: null,\n });\n return this.transitions.pipe(filter((t) => t.id !== 0), \n // Extract URL\n map((t) => ({\n ...t,\n extractedUrl: this.urlHandlingStrategy.extract(t.rawUrl),\n })), \n // Using switchMap so we cancel executing navigations when a new one comes in\n switchMap((overallTransitionState) => {\n let completed = false;\n let errored = false;\n return of(overallTransitionState).pipe(switchMap((t) => {\n // It is possible that `switchMap` fails to cancel previous navigations if a new one happens synchronously while the operator\n // is processing the `next` notification of that previous navigation. This can happen when a new navigation (say 2) cancels a\n // previous one (1) and yet another navigation (3) happens synchronously in response to the `NavigationCancel` event for (1).\n // https://github.com/ReactiveX/rxjs/issues/7455\n if (this.navigationId > overallTransitionState.id) {\n const cancellationReason = typeof ngDevMode === 'undefined' || ngDevMode\n ? `Navigation ID ${overallTransitionState.id} is not equal to the current navigation id ${this.navigationId}`\n : '';\n this.cancelNavigationTransition(overallTransitionState, cancellationReason, NavigationCancellationCode.SupersededByNewNavigation);\n return EMPTY;\n }\n this.currentTransition = overallTransitionState;\n // Store the Navigation object\n this.currentNavigation = {\n id: t.id,\n initialUrl: t.rawUrl,\n extractedUrl: t.extractedUrl,\n targetBrowserUrl: typeof t.extras.browserUrl === 'string'\n ? this.urlSerializer.parse(t.extras.browserUrl)\n : t.extras.browserUrl,\n trigger: t.source,\n extras: t.extras,\n previousNavigation: !this.lastSuccessfulNavigation\n ? null\n : {\n ...this.lastSuccessfulNavigation,\n previousNavigation: null,\n },\n };\n const urlTransition = !router.navigated || this.isUpdatingInternalState() || this.isUpdatedBrowserUrl();\n const onSameUrlNavigation = t.extras.onSameUrlNavigation ?? router.onSameUrlNavigation;\n if (!urlTransition && onSameUrlNavigation !== 'reload') {\n const reason = typeof ngDevMode === 'undefined' || ngDevMode\n ? `Navigation to ${t.rawUrl} was ignored because it is the same as the current Router URL.`\n : '';\n this.events.next(new NavigationSkipped(t.id, this.urlSerializer.serialize(t.rawUrl), reason, NavigationSkippedCode.IgnoredSameUrlNavigation));\n t.resolve(false);\n return EMPTY;\n }\n if (this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl)) {\n return of(t).pipe(\n // Fire NavigationStart event\n switchMap((t) => {\n const transition = this.transitions?.getValue();\n this.events.next(new NavigationStart(t.id, this.urlSerializer.serialize(t.extractedUrl), t.source, t.restoredState));\n if (transition !== this.transitions?.getValue()) {\n return EMPTY;\n }\n // This delay is required to match old behavior that forced\n // navigation to always be async\n return Promise.resolve(t);\n }), \n // Recognize\n recognize(this.environmentInjector, this.configLoader, this.rootComponentType, router.config, this.urlSerializer, this.paramsInheritanceStrategy), \n // Update URL if in `eager` update mode\n tap((t) => {\n overallTransitionState.targetSnapshot = t.targetSnapshot;\n overallTransitionState.urlAfterRedirects = t.urlAfterRedirects;\n this.currentNavigation = {\n ...this.currentNavigation,\n finalUrl: t.urlAfterRedirects,\n };\n // Fire RoutesRecognized\n const routesRecognized = new RoutesRecognized(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);\n this.events.next(routesRecognized);\n }));\n }\n else if (urlTransition &&\n this.urlHandlingStrategy.shouldProcessUrl(t.currentRawUrl)) {\n /* When the current URL shouldn't be processed, but the previous one\n * was, we handle this \"error condition\" by navigating to the\n * previously successful URL, but leaving the URL intact.*/\n const { id, extractedUrl, source, restoredState, extras } = t;\n const navStart = new NavigationStart(id, this.urlSerializer.serialize(extractedUrl), source, restoredState);\n this.events.next(navStart);\n const targetSnapshot = createEmptyState(this.rootComponentType).snapshot;\n this.currentTransition = overallTransitionState = {\n ...t,\n targetSnapshot,\n urlAfterRedirects: extractedUrl,\n extras: { ...extras, skipLocationChange: false, replaceUrl: false },\n };\n this.currentNavigation.finalUrl = extractedUrl;\n return of(overallTransitionState);\n }\n else {\n /* When neither the current or previous URL can be processed, do\n * nothing other than update router's internal reference to the\n * current \"settled\" URL. This way the next navigation will be coming\n * from the current URL in the browser.\n */\n const reason = typeof ngDevMode === 'undefined' || ngDevMode\n ? `Navigation was ignored because the UrlHandlingStrategy` +\n ` indicated neither the current URL ${t.currentRawUrl} nor target URL ${t.rawUrl} should be processed.`\n : '';\n this.events.next(new NavigationSkipped(t.id, this.urlSerializer.serialize(t.extractedUrl), reason, NavigationSkippedCode.IgnoredByUrlHandlingStrategy));\n t.resolve(false);\n return EMPTY;\n }\n }), \n // --- GUARDS ---\n tap((t) => {\n const guardsStart = new GuardsCheckStart(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);\n this.events.next(guardsStart);\n }), map((t) => {\n this.currentTransition = overallTransitionState = {\n ...t,\n guards: getAllRouteGuards(t.targetSnapshot, t.currentSnapshot, this.rootContexts),\n };\n return overallTransitionState;\n }), checkGuards(this.environmentInjector, (evt) => this.events.next(evt)), tap((t) => {\n overallTransitionState.guardsResult = t.guardsResult;\n if (t.guardsResult && typeof t.guardsResult !== 'boolean') {\n throw redirectingNavigationError(this.urlSerializer, t.guardsResult);\n }\n const guardsEnd = new GuardsCheckEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot, !!t.guardsResult);\n this.events.next(guardsEnd);\n }), filter((t) => {\n if (!t.guardsResult) {\n this.cancelNavigationTransition(t, '', NavigationCancellationCode.GuardRejected);\n return false;\n }\n return true;\n }), \n // --- RESOLVE ---\n switchTap((t) => {\n if (t.guards.canActivateChecks.length) {\n return of(t).pipe(tap((t) => {\n const resolveStart = new ResolveStart(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);\n this.events.next(resolveStart);\n }), switchMap((t) => {\n let dataResolved = false;\n return of(t).pipe(resolveData(this.paramsInheritanceStrategy, this.environmentInjector), tap({\n next: () => (dataResolved = true),\n complete: () => {\n if (!dataResolved) {\n this.cancelNavigationTransition(t, typeof ngDevMode === 'undefined' || ngDevMode\n ? `At least one route resolver didn't emit any value.`\n : '', NavigationCancellationCode.NoDataFromResolver);\n }\n },\n }));\n }), tap((t) => {\n const resolveEnd = new ResolveEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);\n this.events.next(resolveEnd);\n }));\n }\n return undefined;\n }), \n // --- LOAD COMPONENTS ---\n switchTap((t) => {\n const loadComponents = (route) => {\n const loaders = [];\n if (route.routeConfig?.loadComponent && !route.routeConfig._loadedComponent) {\n loaders.push(this.configLoader.loadComponent(route.routeConfig).pipe(tap((loadedComponent) => {\n route.component = loadedComponent;\n }), map(() => void 0)));\n }\n for (const child of route.children) {\n loaders.push(...loadComponents(child));\n }\n return loaders;\n };\n return combineLatest(loadComponents(t.targetSnapshot.root)).pipe(defaultIfEmpty(null), take(1));\n }), switchTap(() => this.afterPreactivation()), switchMap(() => {\n const { currentSnapshot, targetSnapshot } = overallTransitionState;\n const viewTransitionStarted = this.createViewTransition?.(this.environmentInjector, currentSnapshot.root, targetSnapshot.root);\n // If view transitions are enabled, block the navigation until the view\n // transition callback starts. Otherwise, continue immediately.\n return viewTransitionStarted\n ? from(viewTransitionStarted).pipe(map(() => overallTransitionState))\n : of(overallTransitionState);\n }), map((t) => {\n const targetRouterState = createRouterState(router.routeReuseStrategy, t.targetSnapshot, t.currentRouterState);\n this.currentTransition = overallTransitionState = { ...t, targetRouterState };\n this.currentNavigation.targetRouterState = targetRouterState;\n return overallTransitionState;\n }), tap(() => {\n this.events.next(new BeforeActivateRoutes());\n }), activateRoutes(this.rootContexts, router.routeReuseStrategy, (evt) => this.events.next(evt), this.inputBindingEnabled), \n // Ensure that if some observable used to drive the transition doesn't\n // complete, the navigation still finalizes This should never happen, but\n // this is done as a safety measure to avoid surfacing this error (#49567).\n take(1), tap({\n next: (t) => {\n completed = true;\n this.lastSuccessfulNavigation = this.currentNavigation;\n this.events.next(new NavigationEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects)));\n this.titleStrategy?.updateTitle(t.targetRouterState.snapshot);\n t.resolve(true);\n },\n complete: () => {\n completed = true;\n },\n }), \n // There used to be a lot more logic happening directly within the\n // transition Observable. Some of this logic has been refactored out to\n // other places but there may still be errors that happen there. This gives\n // us a way to cancel the transition from the outside. This may also be\n // required in the future to support something like the abort signal of the\n // Navigation API where the navigation gets aborted from outside the\n // transition.\n takeUntil(this.transitionAbortSubject.pipe(tap((err) => {\n throw err;\n }))), finalize(() => {\n /* When the navigation stream finishes either through error or success,\n * we set the `completed` or `errored` flag. However, there are some\n * situations where we could get here without either of those being set.\n * For instance, a redirect during NavigationStart. Therefore, this is a\n * catch-all to make sure the NavigationCancel event is fired when a\n * navigation gets cancelled but not caught by other means. */\n if (!completed && !errored) {\n const cancelationReason = typeof ngDevMode === 'undefined' || ngDevMode\n ? `Navigation ID ${overallTransitionState.id} is not equal to the current navigation id ${this.navigationId}`\n : '';\n this.cancelNavigationTransition(overallTransitionState, cancelationReason, NavigationCancellationCode.SupersededByNewNavigation);\n }\n // Only clear current navigation if it is still set to the one that\n // finalized.\n if (this.currentTransition?.id === overallTransitionState.id) {\n this.currentNavigation = null;\n this.currentTransition = null;\n }\n }), catchError((e) => {\n // If the application is already destroyed, the catch block should not\n // execute anything in practice because other resources have already\n // been released and destroyed.\n if (this.destroyed) {\n overallTransitionState.resolve(false);\n return EMPTY;\n }\n errored = true;\n /* This error type is issued during Redirect, and is handled as a\n * cancellation rather than an error. */\n if (isNavigationCancelingError(e)) {\n this.events.next(new NavigationCancel(overallTransitionState.id, this.urlSerializer.serialize(overallTransitionState.extractedUrl), e.message, e.cancellationCode));\n // When redirecting, we need to delay resolving the navigation\n // promise and push it to the redirect navigation\n if (!isRedirectingNavigationCancelingError(e)) {\n overallTransitionState.resolve(false);\n }\n else {\n this.events.next(new RedirectRequest(e.url, e.navigationBehaviorOptions));\n }\n /* All other errors should reset to the router's internal URL reference\n * to the pre-error state. */\n }\n else {\n const navigationError = new NavigationError(overallTransitionState.id, this.urlSerializer.serialize(overallTransitionState.extractedUrl), e, overallTransitionState.targetSnapshot ?? undefined);\n try {\n const navigationErrorHandlerResult = runInInjectionContext(this.environmentInjector, () => this.navigationErrorHandler?.(navigationError));\n if (navigationErrorHandlerResult instanceof RedirectCommand) {\n const { message, cancellationCode } = redirectingNavigationError(this.urlSerializer, navigationErrorHandlerResult);\n this.events.next(new NavigationCancel(overallTransitionState.id, this.urlSerializer.serialize(overallTransitionState.extractedUrl), message, cancellationCode));\n this.events.next(new RedirectRequest(navigationErrorHandlerResult.redirectTo, navigationErrorHandlerResult.navigationBehaviorOptions));\n }\n else {\n this.events.next(navigationError);\n throw e;\n }\n }\n catch (ee) {\n // TODO(atscott): consider flipping the default behavior of\n // resolveNavigationPromiseOnError to be `resolve(false)` when\n // undefined. This is the most sane thing to do given that\n // applications very rarely handle the promise rejection and, as a\n // result, would get \"unhandled promise rejection\" console logs.\n // The vast majority of applications would not be affected by this\n // change so omitting a migration seems reasonable. Instead,\n // applications that rely on rejection can specifically opt-in to the\n // old behavior.\n if (this.options.resolveNavigationPromiseOnError) {\n overallTransitionState.resolve(false);\n }\n else {\n overallTransitionState.reject(ee);\n }\n }\n }\n return EMPTY;\n }));\n // casting because `pipe` returns observable({}) when called with 8+ arguments\n }));\n }\n cancelNavigationTransition(t, reason, code) {\n const navCancel = new NavigationCancel(t.id, this.urlSerializer.serialize(t.extractedUrl), reason, code);\n this.events.next(navCancel);\n t.resolve(false);\n }\n /**\n * @returns Whether we're navigating to somewhere that is not what the Router is\n * currently set to.\n */\n isUpdatingInternalState() {\n // TODO(atscott): The serializer should likely be used instead of\n // `UrlTree.toString()`. Custom serializers are often written to handle\n // things better than the default one (objects, for example will be\n // [Object object] with the custom serializer and be \"the same\" when they\n // aren't).\n // (Same for isUpdatedBrowserUrl)\n return (this.currentTransition?.extractedUrl.toString() !==\n this.currentTransition?.currentUrlTree.toString());\n }\n /**\n * @returns Whether we're updating the browser URL to something new (navigation is going\n * to somewhere not displayed in the URL bar and we will update the URL\n * bar if navigation succeeds).\n */\n isUpdatedBrowserUrl() {\n // The extracted URL is the part of the URL that this application cares about. `extract` may\n // return only part of the browser URL and that part may have not changed even if some other\n // portion of the URL did.\n const currentBrowserUrl = this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true)));\n const targetBrowserUrl = this.currentNavigation?.targetBrowserUrl ?? this.currentNavigation?.extractedUrl;\n return (currentBrowserUrl.toString() !== targetBrowserUrl?.toString() &&\n !this.currentNavigation?.extras.skipLocationChange);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NavigationTransitions, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NavigationTransitions, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [] });\nfunction isBrowserTriggeredNavigation(source) {\n return source !== IMPERATIVE_NAVIGATION;\n}\n\n/**\n * @description\n *\n * Provides a way to customize when activated routes get reused.\n *\n * @publicApi\n */\nclass RouteReuseStrategy {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouteReuseStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]\n }] });\n/**\n * @description\n *\n * This base route reuse strategy only reuses routes when the matched router configs are\n * identical. This prevents components from being destroyed and recreated\n * when just the route parameters, query parameters or fragment change\n * (that is, the existing component is _reused_).\n *\n * This strategy does not store any routes for later reuse.\n *\n * Angular uses this strategy by default.\n *\n *\n * It can be used as a base class for custom route reuse strategies, i.e. you can create your own\n * class that extends the `BaseRouteReuseStrategy` one.\n * @publicApi\n */\nclass BaseRouteReuseStrategy {\n /**\n * Whether the given route should detach for later reuse.\n * Always returns false for `BaseRouteReuseStrategy`.\n * */\n shouldDetach(route) {\n return false;\n }\n /**\n * A no-op; the route is never stored since this strategy never detaches routes for later re-use.\n */\n store(route, detachedTree) { }\n /** Returns `false`, meaning the route (and its subtree) is never reattached */\n shouldAttach(route) {\n return false;\n }\n /** Returns `null` because this strategy does not store routes for later re-use. */\n retrieve(route) {\n return null;\n }\n /**\n * Determines if a route should be reused.\n * This strategy returns `true` when the future route config and current route config are\n * identical.\n */\n shouldReuseRoute(future, curr) {\n return future.routeConfig === curr.routeConfig;\n }\n}\nclass DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\nclass StateManager {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: StateManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: StateManager, providedIn: 'root', useFactory: () => inject(HistoryStateManager) });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: StateManager, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: () => inject(HistoryStateManager) }]\n }] });\nclass HistoryStateManager extends StateManager {\n location = inject(Location);\n urlSerializer = inject(UrlSerializer);\n options = inject(ROUTER_CONFIGURATION, { optional: true }) || {};\n canceledNavigationResolution = this.options.canceledNavigationResolution || 'replace';\n urlHandlingStrategy = inject(UrlHandlingStrategy);\n urlUpdateStrategy = this.options.urlUpdateStrategy || 'deferred';\n currentUrlTree = new UrlTree();\n getCurrentUrlTree() {\n return this.currentUrlTree;\n }\n rawUrlTree = this.currentUrlTree;\n getRawUrlTree() {\n return this.rawUrlTree;\n }\n /**\n * The id of the currently active page in the router.\n * Updated to the transition's target id on a successful navigation.\n *\n * This is used to track what page the router last activated. When an attempted navigation fails,\n * the router can then use this to compute how to restore the state back to the previously active\n * page.\n */\n currentPageId = 0;\n lastSuccessfulId = -1;\n restoredState() {\n return this.location.getState();\n }\n /**\n * The ɵrouterPageId of whatever page is currently active in the browser history. This is\n * important for computing the target page id for new navigations because we need to ensure each\n * page id in the browser history is 1 more than the previous entry.\n */\n get browserPageId() {\n if (this.canceledNavigationResolution !== 'computed') {\n return this.currentPageId;\n }\n return this.restoredState()?.ɵrouterPageId ?? this.currentPageId;\n }\n routerState = createEmptyState(null);\n getRouterState() {\n return this.routerState;\n }\n stateMemento = this.createStateMemento();\n createStateMemento() {\n return {\n rawUrlTree: this.rawUrlTree,\n currentUrlTree: this.currentUrlTree,\n routerState: this.routerState,\n };\n }\n registerNonRouterCurrentEntryChangeListener(listener) {\n return this.location.subscribe((event) => {\n if (event['type'] === 'popstate') {\n listener(event['url'], event.state);\n }\n });\n }\n handleRouterEvent(e, currentTransition) {\n if (e instanceof NavigationStart) {\n this.stateMemento = this.createStateMemento();\n }\n else if (e instanceof NavigationSkipped) {\n this.rawUrlTree = currentTransition.initialUrl;\n }\n else if (e instanceof RoutesRecognized) {\n if (this.urlUpdateStrategy === 'eager') {\n if (!currentTransition.extras.skipLocationChange) {\n const rawUrl = this.urlHandlingStrategy.merge(currentTransition.finalUrl, currentTransition.initialUrl);\n this.setBrowserUrl(currentTransition.targetBrowserUrl ?? rawUrl, currentTransition);\n }\n }\n }\n else if (e instanceof BeforeActivateRoutes) {\n this.currentUrlTree = currentTransition.finalUrl;\n this.rawUrlTree = this.urlHandlingStrategy.merge(currentTransition.finalUrl, currentTransition.initialUrl);\n this.routerState = currentTransition.targetRouterState;\n if (this.urlUpdateStrategy === 'deferred' && !currentTransition.extras.skipLocationChange) {\n this.setBrowserUrl(currentTransition.targetBrowserUrl ?? this.rawUrlTree, currentTransition);\n }\n }\n else if (e instanceof NavigationCancel &&\n (e.code === NavigationCancellationCode.GuardRejected ||\n e.code === NavigationCancellationCode.NoDataFromResolver)) {\n this.restoreHistory(currentTransition);\n }\n else if (e instanceof NavigationError) {\n this.restoreHistory(currentTransition, true);\n }\n else if (e instanceof NavigationEnd) {\n this.lastSuccessfulId = e.id;\n this.currentPageId = this.browserPageId;\n }\n }\n setBrowserUrl(url, transition) {\n const path = url instanceof UrlTree ? this.urlSerializer.serialize(url) : url;\n if (this.location.isCurrentPathEqualTo(path) || !!transition.extras.replaceUrl) {\n // replacements do not update the target page\n const currentBrowserPageId = this.browserPageId;\n const state = {\n ...transition.extras.state,\n ...this.generateNgRouterState(transition.id, currentBrowserPageId),\n };\n this.location.replaceState(path, '', state);\n }\n else {\n const state = {\n ...transition.extras.state,\n ...this.generateNgRouterState(transition.id, this.browserPageId + 1),\n };\n this.location.go(path, '', state);\n }\n }\n /**\n * Performs the necessary rollback action to restore the browser URL to the\n * state before the transition.\n */\n restoreHistory(navigation, restoringFromCaughtError = false) {\n if (this.canceledNavigationResolution === 'computed') {\n const currentBrowserPageId = this.browserPageId;\n const targetPagePosition = this.currentPageId - currentBrowserPageId;\n if (targetPagePosition !== 0) {\n this.location.historyGo(targetPagePosition);\n }\n else if (this.currentUrlTree === navigation.finalUrl && targetPagePosition === 0) {\n // We got to the activation stage (where currentUrlTree is set to the navigation's\n // finalUrl), but we weren't moving anywhere in history (skipLocationChange or replaceUrl).\n // We still need to reset the router state back to what it was when the navigation started.\n this.resetState(navigation);\n this.resetUrlToCurrentUrlTree();\n }\n else {\n // The browser URL and router state was not updated before the navigation cancelled so\n // there's no restoration needed.\n }\n }\n else if (this.canceledNavigationResolution === 'replace') {\n // TODO(atscott): It seems like we should _always_ reset the state here. It would be a no-op\n // for `deferred` navigations that haven't change the internal state yet because guards\n // reject. For 'eager' navigations, it seems like we also really should reset the state\n // because the navigation was cancelled. Investigate if this can be done by running TGP.\n if (restoringFromCaughtError) {\n this.resetState(navigation);\n }\n this.resetUrlToCurrentUrlTree();\n }\n }\n resetState(navigation) {\n this.routerState = this.stateMemento.routerState;\n this.currentUrlTree = this.stateMemento.currentUrlTree;\n // Note here that we use the urlHandlingStrategy to get the reset `rawUrlTree` because it may be\n // configured to handle only part of the navigation URL. This means we would only want to reset\n // the part of the navigation handled by the Angular router rather than the whole URL. In\n // addition, the URLHandlingStrategy may be configured to specifically preserve parts of the URL\n // when merging, such as the query params so they are not lost on a refresh.\n this.rawUrlTree = this.urlHandlingStrategy.merge(this.currentUrlTree, navigation.finalUrl ?? this.rawUrlTree);\n }\n resetUrlToCurrentUrlTree() {\n this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree), '', this.generateNgRouterState(this.lastSuccessfulId, this.currentPageId));\n }\n generateNgRouterState(navigationId, routerPageId) {\n if (this.canceledNavigationResolution === 'computed') {\n return { navigationId, ɵrouterPageId: routerPageId };\n }\n return { navigationId };\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HistoryStateManager, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HistoryStateManager, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: HistoryStateManager, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\n/**\n * Performs the given action once the router finishes its next/current navigation.\n *\n * The navigation is considered complete under the following conditions:\n * - `NavigationCancel` event emits and the code is not `NavigationCancellationCode.Redirect` or\n * `NavigationCancellationCode.SupersededByNewNavigation`. In these cases, the\n * redirecting/superseding navigation must finish.\n * - `NavigationError`, `NavigationEnd`, or `NavigationSkipped` event emits\n */\nfunction afterNextNavigation(router, action) {\n router.events\n .pipe(filter((e) => e instanceof NavigationEnd ||\n e instanceof NavigationCancel ||\n e instanceof NavigationError ||\n e instanceof NavigationSkipped), map((e) => {\n if (e instanceof NavigationEnd || e instanceof NavigationSkipped) {\n return 0 /* NavigationResult.COMPLETE */;\n }\n const redirecting = e instanceof NavigationCancel\n ? e.code === NavigationCancellationCode.Redirect ||\n e.code === NavigationCancellationCode.SupersededByNewNavigation\n : false;\n return redirecting ? 2 /* NavigationResult.REDIRECTING */ : 1 /* NavigationResult.FAILED */;\n }), filter((result) => result !== 2 /* NavigationResult.REDIRECTING */), take(1))\n .subscribe(() => {\n action();\n });\n}\n\n/**\n * The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `true`\n * (exact = true).\n */\nconst exactMatchOptions = {\n paths: 'exact',\n fragment: 'ignored',\n matrixParams: 'ignored',\n queryParams: 'exact',\n};\n/**\n * The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `false`\n * (exact = false).\n */\nconst subsetMatchOptions = {\n paths: 'subset',\n fragment: 'ignored',\n matrixParams: 'ignored',\n queryParams: 'subset',\n};\n/**\n * @description\n *\n * A service that facilitates navigation among views and URL manipulation capabilities.\n * This service is provided in the root scope and configured with [provideRouter](api/router/provideRouter).\n *\n * @see {@link Route}\n * @see {@link provideRouter}\n * @see [Routing and Navigation Guide](guide/routing/common-router-tasks).\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass Router {\n get currentUrlTree() {\n return this.stateManager.getCurrentUrlTree();\n }\n get rawUrlTree() {\n return this.stateManager.getRawUrlTree();\n }\n disposed = false;\n nonRouterCurrentEntryChangeSubscription;\n console = inject(ɵConsole);\n stateManager = inject(StateManager);\n options = inject(ROUTER_CONFIGURATION, { optional: true }) || {};\n pendingTasks = inject(ɵPendingTasksInternal);\n urlUpdateStrategy = this.options.urlUpdateStrategy || 'deferred';\n navigationTransitions = inject(NavigationTransitions);\n urlSerializer = inject(UrlSerializer);\n location = inject(Location);\n urlHandlingStrategy = inject(UrlHandlingStrategy);\n /**\n * The private `Subject` type for the public events exposed in the getter. This is used internally\n * to push events to. The separate field allows us to expose separate types in the public API\n * (i.e., an Observable rather than the Subject).\n */\n _events = new Subject();\n /**\n * An event stream for routing events.\n */\n get events() {\n // TODO(atscott): This _should_ be events.asObservable(). However, this change requires internal\n // cleanup: tests are doing `(route.events as Subject<Event>).next(...)`. This isn't\n // allowed/supported but we still have to fix these or file bugs against the teams before making\n // the change.\n return this._events;\n }\n /**\n * The current state of routing in this NgModule.\n */\n get routerState() {\n return this.stateManager.getRouterState();\n }\n /**\n * True if at least one navigation event has occurred,\n * false otherwise.\n */\n navigated = false;\n /**\n * A strategy for re-using routes.\n *\n * @deprecated Configure using `providers` instead:\n * `{provide: RouteReuseStrategy, useClass: MyStrategy}`.\n */\n routeReuseStrategy = inject(RouteReuseStrategy);\n /**\n * How to handle a navigation request to the current URL.\n *\n *\n * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.\n * @see {@link withRouterConfig}\n * @see {@link provideRouter}\n * @see {@link RouterModule}\n */\n onSameUrlNavigation = this.options.onSameUrlNavigation || 'ignore';\n config = inject(ROUTES, { optional: true })?.flat() ?? [];\n /**\n * Indicates whether the application has opted in to binding Router data to component inputs.\n *\n * This option is enabled by the `withComponentInputBinding` feature of `provideRouter` or\n * `bindToComponentInputs` in the `ExtraOptions` of `RouterModule.forRoot`.\n */\n componentInputBindingEnabled = !!inject(INPUT_BINDER, { optional: true });\n constructor() {\n this.resetConfig(this.config);\n this.navigationTransitions\n .setupNavigations(this, this.currentUrlTree, this.routerState)\n .subscribe({\n error: (e) => {\n this.console.warn(ngDevMode ? `Unhandled Navigation Error: ${e}` : e);\n },\n });\n this.subscribeToNavigationEvents();\n }\n eventsSubscription = new Subscription();\n subscribeToNavigationEvents() {\n const subscription = this.navigationTransitions.events.subscribe((e) => {\n try {\n const currentTransition = this.navigationTransitions.currentTransition;\n const currentNavigation = this.navigationTransitions.currentNavigation;\n if (currentTransition !== null && currentNavigation !== null) {\n this.stateManager.handleRouterEvent(e, currentNavigation);\n if (e instanceof NavigationCancel &&\n e.code !== NavigationCancellationCode.Redirect &&\n e.code !== NavigationCancellationCode.SupersededByNewNavigation) {\n // It seems weird that `navigated` is set to `true` when the navigation is rejected,\n // however it's how things were written initially. Investigation would need to be done\n // to determine if this can be removed.\n this.navigated = true;\n }\n else if (e instanceof NavigationEnd) {\n this.navigated = true;\n }\n else if (e instanceof RedirectRequest) {\n const opts = e.navigationBehaviorOptions;\n const mergedTree = this.urlHandlingStrategy.merge(e.url, currentTransition.currentRawUrl);\n const extras = {\n browserUrl: currentTransition.extras.browserUrl,\n info: currentTransition.extras.info,\n skipLocationChange: currentTransition.extras.skipLocationChange,\n // The URL is already updated at this point if we have 'eager' URL\n // updates or if the navigation was triggered by the browser (back\n // button, URL bar, etc). We want to replace that item in history\n // if the navigation is rejected.\n replaceUrl: currentTransition.extras.replaceUrl ||\n this.urlUpdateStrategy === 'eager' ||\n isBrowserTriggeredNavigation(currentTransition.source),\n // allow developer to override default options with RedirectCommand\n ...opts,\n };\n this.scheduleNavigation(mergedTree, IMPERATIVE_NAVIGATION, null, extras, {\n resolve: currentTransition.resolve,\n reject: currentTransition.reject,\n promise: currentTransition.promise,\n });\n }\n }\n // Note that it's important to have the Router process the events _before_ the event is\n // pushed through the public observable. This ensures the correct router state is in place\n // before applications observe the events.\n if (isPublicRouterEvent(e)) {\n this._events.next(e);\n }\n }\n catch (e) {\n this.navigationTransitions.transitionAbortSubject.next(e);\n }\n });\n this.eventsSubscription.add(subscription);\n }\n /** @internal */\n resetRootComponentType(rootComponentType) {\n // TODO: vsavkin router 4.0 should make the root component set to null\n // this will simplify the lifecycle of the router.\n this.routerState.root.component = rootComponentType;\n this.navigationTransitions.rootComponentType = rootComponentType;\n }\n /**\n * Sets up the location change listener and performs the initial navigation.\n */\n initialNavigation() {\n this.setUpLocationChangeListener();\n if (!this.navigationTransitions.hasRequestedNavigation) {\n this.navigateToSyncWithBrowser(this.location.path(true), IMPERATIVE_NAVIGATION, this.stateManager.restoredState());\n }\n }\n /**\n * Sets up the location change listener. This listener detects navigations triggered from outside\n * the Router (the browser back/forward buttons, for example) and schedules a corresponding Router\n * navigation so that the correct events, guards, etc. are triggered.\n */\n setUpLocationChangeListener() {\n // Don't need to use Zone.wrap any more, because zone.js\n // already patch onPopState, so location change callback will\n // run into ngZone\n this.nonRouterCurrentEntryChangeSubscription ??=\n this.stateManager.registerNonRouterCurrentEntryChangeListener((url, state) => {\n // The `setTimeout` was added in #12160 and is likely to support Angular/AngularJS\n // hybrid apps.\n setTimeout(() => {\n this.navigateToSyncWithBrowser(url, 'popstate', state);\n }, 0);\n });\n }\n /**\n * Schedules a router navigation to synchronize Router state with the browser state.\n *\n * This is done as a response to a popstate event and the initial navigation. These\n * two scenarios represent times when the browser URL/state has been updated and\n * the Router needs to respond to ensure its internal state matches.\n */\n navigateToSyncWithBrowser(url, source, state) {\n const extras = { replaceUrl: true };\n // TODO: restoredState should always include the entire state, regardless\n // of navigationId. This requires a breaking change to update the type on\n // NavigationStart’s restoredState, which currently requires navigationId\n // to always be present. The Router used to only restore history state if\n // a navigationId was present.\n // The stored navigationId is used by the RouterScroller to retrieve the scroll\n // position for the page.\n const restoredState = state?.navigationId ? state : null;\n // Separate to NavigationStart.restoredState, we must also restore the state to\n // history.state and generate a new navigationId, since it will be overwritten\n if (state) {\n const stateCopy = { ...state };\n delete stateCopy.navigationId;\n delete stateCopy.ɵrouterPageId;\n if (Object.keys(stateCopy).length !== 0) {\n extras.state = stateCopy;\n }\n }\n const urlTree = this.parseUrl(url);\n this.scheduleNavigation(urlTree, source, restoredState, extras);\n }\n /** The current URL. */\n get url() {\n return this.serializeUrl(this.currentUrlTree);\n }\n /**\n * Returns the current `Navigation` object when the router is navigating,\n * and `null` when idle.\n */\n getCurrentNavigation() {\n return this.navigationTransitions.currentNavigation;\n }\n /**\n * The `Navigation` object of the most recent navigation to succeed and `null` if there\n * has not been a successful navigation yet.\n */\n get lastSuccessfulNavigation() {\n return this.navigationTransitions.lastSuccessfulNavigation;\n }\n /**\n * Resets the route configuration used for navigation and generating links.\n *\n * @param config The route array for the new configuration.\n *\n * @usageNotes\n *\n * ```ts\n * router.resetConfig([\n * { path: 'team/:id', component: TeamCmp, children: [\n * { path: 'simple', component: SimpleCmp },\n * { path: 'user/:name', component: UserCmp }\n * ]}\n * ]);\n * ```\n */\n resetConfig(config) {\n (typeof ngDevMode === 'undefined' || ngDevMode) && validateConfig(config);\n this.config = config.map(standardizeConfig);\n this.navigated = false;\n }\n /** @nodoc */\n ngOnDestroy() {\n this.dispose();\n }\n /** Disposes of the router. */\n dispose() {\n // We call `unsubscribe()` to release observers, as users may forget to\n // unsubscribe manually when subscribing to `router.events`. We do not call\n // `complete()` because it is unsafe; if someone subscribes using the `first`\n // operator and the observable completes before emitting a value,\n // RxJS will throw an error.\n this._events.unsubscribe();\n this.navigationTransitions.complete();\n if (this.nonRouterCurrentEntryChangeSubscription) {\n this.nonRouterCurrentEntryChangeSubscription.unsubscribe();\n this.nonRouterCurrentEntryChangeSubscription = undefined;\n }\n this.disposed = true;\n this.eventsSubscription.unsubscribe();\n }\n /**\n * Appends URL segments to the current URL tree to create a new URL tree.\n *\n * @param commands An array of URL fragments with which to construct the new URL tree.\n * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path\n * segments, followed by the parameters for each segment.\n * The fragments are applied to the current URL tree or the one provided in the `relativeTo`\n * property of the options object, if supplied.\n * @param navigationExtras Options that control the navigation strategy.\n * @returns The new URL tree.\n *\n * @usageNotes\n *\n * ```\n * // create /team/33/user/11\n * router.createUrlTree(['/team', 33, 'user', 11]);\n *\n * // create /team/33;expand=true/user/11\n * router.createUrlTree(['/team', 33, {expand: true}, 'user', 11]);\n *\n * // you can collapse static segments like this (this works only with the first passed-in value):\n * router.createUrlTree(['/team/33/user', userId]);\n *\n * // If the first segment can contain slashes, and you do not want the router to split it,\n * // you can do the following:\n * router.createUrlTree([{segmentPath: '/one/two'}]);\n *\n * // create /team/33/(user/11//right:chat)\n * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: 'chat'}}]);\n *\n * // remove the right secondary node\n * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: null}}]);\n *\n * // assuming the current url is `/team/33/user/11` and the route points to `user/11`\n *\n * // navigate to /team/33/user/11/details\n * router.createUrlTree(['details'], {relativeTo: route});\n *\n * // navigate to /team/33/user/22\n * router.createUrlTree(['../22'], {relativeTo: route});\n *\n * // navigate to /team/44/user/22\n * router.createUrlTree(['../../team/44/user/22'], {relativeTo: route});\n *\n * Note that a value of `null` or `undefined` for `relativeTo` indicates that the\n * tree should be created relative to the root.\n * ```\n */\n createUrlTree(commands, navigationExtras = {}) {\n const { relativeTo, queryParams, fragment, queryParamsHandling, preserveFragment } = navigationExtras;\n const f = preserveFragment ? this.currentUrlTree.fragment : fragment;\n let q = null;\n switch (queryParamsHandling ?? this.options.defaultQueryParamsHandling) {\n case 'merge':\n q = { ...this.currentUrlTree.queryParams, ...queryParams };\n break;\n case 'preserve':\n q = this.currentUrlTree.queryParams;\n break;\n default:\n q = queryParams || null;\n }\n if (q !== null) {\n q = this.removeEmptyProps(q);\n }\n let relativeToUrlSegmentGroup;\n try {\n const relativeToSnapshot = relativeTo ? relativeTo.snapshot : this.routerState.snapshot.root;\n relativeToUrlSegmentGroup = createSegmentGroupFromRoute(relativeToSnapshot);\n }\n catch (e) {\n // This is strictly for backwards compatibility with tests that create\n // invalid `ActivatedRoute` mocks.\n // Note: the difference between having this fallback for invalid `ActivatedRoute` setups and\n // just throwing is ~500 test failures. Fixing all of those tests by hand is not feasible at\n // the moment.\n if (typeof commands[0] !== 'string' || commands[0][0] !== '/') {\n // Navigations that were absolute in the old way of creating UrlTrees\n // would still work because they wouldn't attempt to match the\n // segments in the `ActivatedRoute` to the `currentUrlTree` but\n // instead just replace the root segment with the navigation result.\n // Non-absolute navigations would fail to apply the commands because\n // the logic could not find the segment to replace (so they'd act like there were no\n // commands).\n commands = [];\n }\n relativeToUrlSegmentGroup = this.currentUrlTree.root;\n }\n return createUrlTreeFromSegmentGroup(relativeToUrlSegmentGroup, commands, q, f ?? null);\n }\n /**\n * Navigates to a view using an absolute route path.\n *\n * @param url An absolute path for a defined route. The function does not apply any delta to the\n * current URL.\n * @param extras An object containing properties that modify the navigation strategy.\n *\n * @returns A Promise that resolves to 'true' when navigation succeeds,\n * to 'false' when navigation fails, or is rejected on error.\n *\n * @usageNotes\n *\n * The following calls request navigation to an absolute path.\n *\n * ```ts\n * router.navigateByUrl(\"/team/33/user/11\");\n *\n * // Navigate without updating the URL\n * router.navigateByUrl(\"/team/33/user/11\", { skipLocationChange: true });\n * ```\n *\n * @see [Routing and Navigation guide](guide/routing/common-router-tasks)\n *\n */\n navigateByUrl(url, extras = {\n skipLocationChange: false,\n }) {\n const urlTree = isUrlTree(url) ? url : this.parseUrl(url);\n const mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree);\n return this.scheduleNavigation(mergedTree, IMPERATIVE_NAVIGATION, null, extras);\n }\n /**\n * Navigate based on the provided array of commands and a starting point.\n * If no starting route is provided, the navigation is absolute.\n *\n * @param commands An array of URL fragments with which to construct the target URL.\n * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path\n * segments, followed by the parameters for each segment.\n * The fragments are applied to the current URL or the one provided in the `relativeTo` property\n * of the options object, if supplied.\n * @param extras An options object that determines how the URL should be constructed or\n * interpreted.\n *\n * @returns A Promise that resolves to `true` when navigation succeeds, or `false` when navigation\n * fails. The Promise is rejected when an error occurs if `resolveNavigationPromiseOnError` is\n * not `true`.\n *\n * @usageNotes\n *\n * The following calls request navigation to a dynamic route path relative to the current URL.\n *\n * ```ts\n * router.navigate(['team', 33, 'user', 11], {relativeTo: route});\n *\n * // Navigate without updating the URL, overriding the default behavior\n * router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});\n * ```\n *\n * @see [Routing and Navigation guide](guide/routing/common-router-tasks)\n *\n */\n navigate(commands, extras = { skipLocationChange: false }) {\n validateCommands(commands);\n return this.navigateByUrl(this.createUrlTree(commands, extras), extras);\n }\n /** Serializes a `UrlTree` into a string */\n serializeUrl(url) {\n return this.urlSerializer.serialize(url);\n }\n /** Parses a string into a `UrlTree` */\n parseUrl(url) {\n try {\n return this.urlSerializer.parse(url);\n }\n catch {\n return this.urlSerializer.parse('/');\n }\n }\n isActive(url, matchOptions) {\n let options;\n if (matchOptions === true) {\n options = { ...exactMatchOptions };\n }\n else if (matchOptions === false) {\n options = { ...subsetMatchOptions };\n }\n else {\n options = matchOptions;\n }\n if (isUrlTree(url)) {\n return containsTree(this.currentUrlTree, url, options);\n }\n const urlTree = this.parseUrl(url);\n return containsTree(this.currentUrlTree, urlTree, options);\n }\n removeEmptyProps(params) {\n return Object.entries(params).reduce((result, [key, value]) => {\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n return result;\n }, {});\n }\n scheduleNavigation(rawUrl, source, restoredState, extras, priorPromise) {\n if (this.disposed) {\n return Promise.resolve(false);\n }\n let resolve;\n let reject;\n let promise;\n if (priorPromise) {\n resolve = priorPromise.resolve;\n reject = priorPromise.reject;\n promise = priorPromise.promise;\n }\n else {\n promise = new Promise((res, rej) => {\n resolve = res;\n reject = rej;\n });\n }\n // Indicate that the navigation is happening.\n const taskId = this.pendingTasks.add();\n afterNextNavigation(this, () => {\n // Remove pending task in a microtask to allow for cancelled\n // initial navigations and redirects within the same task.\n queueMicrotask(() => this.pendingTasks.remove(taskId));\n });\n this.navigationTransitions.handleNavigationRequest({\n source,\n restoredState,\n currentUrlTree: this.currentUrlTree,\n currentRawUrl: this.currentUrlTree,\n rawUrl,\n extras,\n resolve: resolve,\n reject: reject,\n promise,\n currentSnapshot: this.routerState.snapshot,\n currentRouterState: this.routerState,\n });\n // Make sure that the error is propagated even though `processNavigations` catch\n // handler does not rethrow\n return promise.catch((e) => {\n return Promise.reject(e);\n });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: Router, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: Router, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [] });\nfunction validateCommands(commands) {\n for (let i = 0; i < commands.length; i++) {\n const cmd = commands[i];\n if (cmd == null) {\n throw new ɵRuntimeError(4008 /* RuntimeErrorCode.NULLISH_COMMAND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `The requested path contains ${cmd} segment at index ${i}`);\n }\n }\n}\nfunction isPublicRouterEvent(e) {\n return !(e instanceof BeforeActivateRoutes) && !(e instanceof RedirectRequest);\n}\n\n/**\n * @description\n *\n * When applied to an element in a template, makes that element a link\n * that initiates navigation to a route. Navigation opens one or more routed components\n * in one or more `<router-outlet>` locations on the page.\n *\n * Given a route configuration `[{ path: 'user/:name', component: UserCmp }]`,\n * the following creates a static link to the route:\n * `<a routerLink=\"/user/bob\">link to user component</a>`\n *\n * You can use dynamic values to generate the link.\n * For a dynamic link, pass an array of path segments,\n * followed by the params for each segment.\n * For example, `['/team', teamId, 'user', userName, {details: true}]`\n * generates a link to `/team/11/user/bob;details=true`.\n *\n * Multiple static segments can be merged into one term and combined with dynamic segments.\n * For example, `['/team/11/user', userName, {details: true}]`\n *\n * The input that you provide to the link is treated as a delta to the current URL.\n * For instance, suppose the current URL is `/user/(box//aux:team)`.\n * The link `<a [routerLink]=\"['/user/jim']\">Jim</a>` creates the URL\n * `/user/(jim//aux:team)`.\n * See {@link Router#createUrlTree} for more information.\n *\n * @usageNotes\n *\n * You can use absolute or relative paths in a link, set query parameters,\n * control how parameters are handled, and keep a history of navigation states.\n *\n * ### Relative link paths\n *\n * The first segment name can be prepended with `/`, `./`, or `../`.\n * * If the first segment begins with `/`, the router looks up the route from the root of the\n * app.\n * * If the first segment begins with `./`, or doesn't begin with a slash, the router\n * looks in the children of the current activated route.\n * * If the first segment begins with `../`, the router goes up one level in the route tree.\n *\n * ### Setting and handling query params and fragments\n *\n * The following link adds a query parameter and a fragment to the generated URL:\n *\n * ```html\n * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" fragment=\"education\">\n * link to user component\n * </a>\n * ```\n * By default, the directive constructs the new URL using the given query parameters.\n * The example generates the link: `/user/bob?debug=true#education`.\n *\n * You can instruct the directive to handle query parameters differently\n * by specifying the `queryParamsHandling` option in the link.\n * Allowed values are:\n *\n * - `'merge'`: Merge the given `queryParams` into the current query params.\n * - `'preserve'`: Preserve the current query params.\n *\n * For example:\n *\n * ```html\n * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" queryParamsHandling=\"merge\">\n * link to user component\n * </a>\n * ```\n *\n * `queryParams`, `fragment`, `queryParamsHandling`, `preserveFragment`, and `relativeTo`\n * cannot be used when the `routerLink` input is a `UrlTree`.\n *\n * See {@link UrlCreationOptions#queryParamsHandling}.\n *\n * ### Preserving navigation history\n *\n * You can provide a `state` value to be persisted to the browser's\n * [`History.state` property](https://developer.mozilla.org/en-US/docs/Web/API/History#Properties).\n * For example:\n *\n * ```html\n * <a [routerLink]=\"['/user/bob']\" [state]=\"{tracingId: 123}\">\n * link to user component\n * </a>\n * ```\n *\n * Use {@link Router#getCurrentNavigation} to retrieve a saved\n * navigation-state value. For example, to capture the `tracingId` during the `NavigationStart`\n * event:\n *\n * ```ts\n * // Get NavigationStart events\n * router.events.pipe(filter(e => e instanceof NavigationStart)).subscribe(e => {\n * const navigation = router.getCurrentNavigation();\n * tracingService.trace({id: navigation.extras.state.tracingId});\n * });\n * ```\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass RouterLink {\n router;\n route;\n tabIndexAttribute;\n renderer;\n el;\n locationStrategy;\n /**\n * Represents an `href` attribute value applied to a host element,\n * when a host element is `<a>`. For other tags, the value is `null`.\n */\n href = null;\n /**\n * Represents the `target` attribute on a host element.\n * This is only used when the host element is an `<a>` tag.\n */\n target;\n /**\n * Passed to {@link Router#createUrlTree} as part of the\n * `UrlCreationOptions`.\n * @see {@link UrlCreationOptions#queryParams}\n * @see {@link Router#createUrlTree}\n */\n queryParams;\n /**\n * Passed to {@link Router#createUrlTree} as part of the\n * `UrlCreationOptions`.\n * @see {@link UrlCreationOptions#fragment}\n * @see {@link Router#createUrlTree}\n */\n fragment;\n /**\n * Passed to {@link Router#createUrlTree} as part of the\n * `UrlCreationOptions`.\n * @see {@link UrlCreationOptions#queryParamsHandling}\n * @see {@link Router#createUrlTree}\n */\n queryParamsHandling;\n /**\n * Passed to {@link Router#navigateByUrl} as part of the\n * `NavigationBehaviorOptions`.\n * @see {@link NavigationBehaviorOptions#state}\n * @see {@link Router#navigateByUrl}\n */\n state;\n /**\n * Passed to {@link Router#navigateByUrl} as part of the\n * `NavigationBehaviorOptions`.\n * @see {@link NavigationBehaviorOptions#info}\n * @see {@link Router#navigateByUrl}\n */\n info;\n /**\n * Passed to {@link Router#createUrlTree} as part of the\n * `UrlCreationOptions`.\n * Specify a value here when you do not want to use the default value\n * for `routerLink`, which is the current activated route.\n * Note that a value of `undefined` here will use the `routerLink` default.\n * @see {@link UrlCreationOptions#relativeTo}\n * @see {@link Router#createUrlTree}\n */\n relativeTo;\n /** Whether a host element is an `<a>` tag. */\n isAnchorElement;\n subscription;\n /** @internal */\n onChanges = new Subject();\n constructor(router, route, tabIndexAttribute, renderer, el, locationStrategy) {\n this.router = router;\n this.route = route;\n this.tabIndexAttribute = tabIndexAttribute;\n this.renderer = renderer;\n this.el = el;\n this.locationStrategy = locationStrategy;\n const tagName = el.nativeElement.tagName?.toLowerCase();\n this.isAnchorElement = tagName === 'a' || tagName === 'area';\n if (this.isAnchorElement) {\n this.subscription = router.events.subscribe((s) => {\n if (s instanceof NavigationEnd) {\n this.updateHref();\n }\n });\n }\n else {\n this.setTabIndexIfNotOnNativeEl('0');\n }\n }\n /**\n * Passed to {@link Router#createUrlTree} as part of the\n * `UrlCreationOptions`.\n * @see {@link UrlCreationOptions#preserveFragment}\n * @see {@link Router#createUrlTree}\n */\n preserveFragment = false;\n /**\n * Passed to {@link Router#navigateByUrl} as part of the\n * `NavigationBehaviorOptions`.\n * @see {@link NavigationBehaviorOptions#skipLocationChange}\n * @see {@link Router#navigateByUrl}\n */\n skipLocationChange = false;\n /**\n * Passed to {@link Router#navigateByUrl} as part of the\n * `NavigationBehaviorOptions`.\n * @see {@link NavigationBehaviorOptions#replaceUrl}\n * @see {@link Router#navigateByUrl}\n */\n replaceUrl = false;\n /**\n * Modifies the tab index if there was not a tabindex attribute on the element during\n * instantiation.\n */\n setTabIndexIfNotOnNativeEl(newTabIndex) {\n if (this.tabIndexAttribute != null /* both `null` and `undefined` */ || this.isAnchorElement) {\n return;\n }\n this.applyAttributeValue('tabindex', newTabIndex);\n }\n /** @nodoc */\n // TODO(atscott): Remove changes parameter in major version as a breaking change.\n ngOnChanges(changes) {\n if (ngDevMode &&\n isUrlTree(this.routerLinkInput) &&\n (this.fragment !== undefined ||\n this.queryParams ||\n this.queryParamsHandling ||\n this.preserveFragment ||\n this.relativeTo)) {\n throw new ɵRuntimeError(4016 /* RuntimeErrorCode.INVALID_ROUTER_LINK_INPUTS */, 'Cannot configure queryParams or fragment when using a UrlTree as the routerLink input value.');\n }\n if (this.isAnchorElement) {\n this.updateHref();\n }\n // This is subscribed to by `RouterLinkActive` so that it knows to update when there are changes\n // to the RouterLinks it's tracking.\n this.onChanges.next(this);\n }\n routerLinkInput = null;\n /**\n * Commands to pass to {@link Router#createUrlTree} or a `UrlTree`.\n * - **array**: commands to pass to {@link Router#createUrlTree}.\n * - **string**: shorthand for array of commands with just the string, i.e. `['/route']`\n * - **UrlTree**: a `UrlTree` for this link rather than creating one from the commands\n * and other inputs that correspond to properties of `UrlCreationOptions`.\n * - **null|undefined**: effectively disables the `routerLink`\n * @see {@link Router#createUrlTree}\n */\n set routerLink(commandsOrUrlTree) {\n if (commandsOrUrlTree == null) {\n this.routerLinkInput = null;\n this.setTabIndexIfNotOnNativeEl(null);\n }\n else {\n if (isUrlTree(commandsOrUrlTree)) {\n this.routerLinkInput = commandsOrUrlTree;\n }\n else {\n this.routerLinkInput = Array.isArray(commandsOrUrlTree)\n ? commandsOrUrlTree\n : [commandsOrUrlTree];\n }\n this.setTabIndexIfNotOnNativeEl('0');\n }\n }\n /** @nodoc */\n onClick(button, ctrlKey, shiftKey, altKey, metaKey) {\n const urlTree = this.urlTree;\n if (urlTree === null) {\n return true;\n }\n if (this.isAnchorElement) {\n if (button !== 0 || ctrlKey || shiftKey || altKey || metaKey) {\n return true;\n }\n if (typeof this.target === 'string' && this.target != '_self') {\n return true;\n }\n }\n const extras = {\n skipLocationChange: this.skipLocationChange,\n replaceUrl: this.replaceUrl,\n state: this.state,\n info: this.info,\n };\n this.router.navigateByUrl(urlTree, extras);\n // Return `false` for `<a>` elements to prevent default action\n // and cancel the native behavior, since the navigation is handled\n // by the Router.\n return !this.isAnchorElement;\n }\n /** @nodoc */\n ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n updateHref() {\n const urlTree = this.urlTree;\n this.href =\n urlTree !== null && this.locationStrategy\n ? this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(urlTree))\n : null;\n const sanitizedValue = this.href === null\n ? null\n : // This class represents a directive that can be added to both `<a>` elements,\n // as well as other elements. As a result, we can't define security context at\n // compile time. So the security context is deferred to runtime.\n // The `ɵɵsanitizeUrlOrResourceUrl` selects the necessary sanitizer function\n // based on the tag and property names. The logic mimics the one from\n // `packages/compiler/src/schema/dom_security_schema.ts`, which is used at compile time.\n //\n // Note: we should investigate whether we can switch to using `@HostBinding('attr.href')`\n // instead of applying a value via a renderer, after a final merge of the\n // `RouterLinkWithHref` directive.\n ɵɵsanitizeUrlOrResourceUrl(this.href, this.el.nativeElement.tagName.toLowerCase(), 'href');\n this.applyAttributeValue('href', sanitizedValue);\n }\n applyAttributeValue(attrName, attrValue) {\n const renderer = this.renderer;\n const nativeElement = this.el.nativeElement;\n if (attrValue !== null) {\n renderer.setAttribute(nativeElement, attrName, attrValue);\n }\n else {\n renderer.removeAttribute(nativeElement, attrName);\n }\n }\n get urlTree() {\n if (this.routerLinkInput === null) {\n return null;\n }\n else if (isUrlTree(this.routerLinkInput)) {\n return this.routerLinkInput;\n }\n return this.router.createUrlTree(this.routerLinkInput, {\n // If the `relativeTo` input is not defined, we want to use `this.route` by default.\n // Otherwise, we should use the value provided by the user in the input.\n relativeTo: this.relativeTo !== undefined ? this.relativeTo : this.route,\n queryParams: this.queryParams,\n fragment: this.fragment,\n queryParamsHandling: this.queryParamsHandling,\n preserveFragment: this.preserveFragment,\n });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterLink, deps: [{ token: Router }, { token: ActivatedRoute }, { token: 'tabindex', attribute: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i3.LocationStrategy }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"16.1.0\", version: \"19.1.4\", type: RouterLink, isStandalone: true, selector: \"[routerLink]\", inputs: { target: \"target\", queryParams: \"queryParams\", fragment: \"fragment\", queryParamsHandling: \"queryParamsHandling\", state: \"state\", info: \"info\", relativeTo: \"relativeTo\", preserveFragment: [\"preserveFragment\", \"preserveFragment\", booleanAttribute], skipLocationChange: [\"skipLocationChange\", \"skipLocationChange\", booleanAttribute], replaceUrl: [\"replaceUrl\", \"replaceUrl\", booleanAttribute], routerLink: \"routerLink\" }, host: { listeners: { \"click\": \"onClick($event.button,$event.ctrlKey,$event.shiftKey,$event.altKey,$event.metaKey)\" }, properties: { \"attr.target\": \"this.target\" } }, usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterLink, decorators: [{\n type: Directive,\n args: [{\n selector: '[routerLink]',\n }]\n }], ctorParameters: () => [{ type: Router }, { type: ActivatedRoute }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i3.LocationStrategy }], propDecorators: { target: [{\n type: HostBinding,\n args: ['attr.target']\n }, {\n type: Input\n }], queryParams: [{\n type: Input\n }], fragment: [{\n type: Input\n }], queryParamsHandling: [{\n type: Input\n }], state: [{\n type: Input\n }], info: [{\n type: Input\n }], relativeTo: [{\n type: Input\n }], preserveFragment: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], skipLocationChange: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], replaceUrl: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], routerLink: [{\n type: Input\n }], onClick: [{\n type: HostListener,\n args: ['click', [\n '$event.button',\n '$event.ctrlKey',\n '$event.shiftKey',\n '$event.altKey',\n '$event.metaKey',\n ]]\n }] } });\n\n/**\n *\n * @description\n *\n * Tracks whether the linked route of an element is currently active, and allows you\n * to specify one or more CSS classes to add to the element when the linked route\n * is active.\n *\n * Use this directive to create a visual distinction for elements associated with an active route.\n * For example, the following code highlights the word \"Bob\" when the router\n * activates the associated route:\n *\n * ```html\n * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\">Bob</a>\n * ```\n *\n * Whenever the URL is either '/user' or '/user/bob', the \"active-link\" class is\n * added to the anchor tag. If the URL changes, the class is removed.\n *\n * You can set more than one class using a space-separated string or an array.\n * For example:\n *\n * ```html\n * <a routerLink=\"/user/bob\" routerLinkActive=\"class1 class2\">Bob</a>\n * <a routerLink=\"/user/bob\" [routerLinkActive]=\"['class1', 'class2']\">Bob</a>\n * ```\n *\n * To add the classes only when the URL matches the link exactly, add the option `exact: true`:\n *\n * ```html\n * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact:\n * true}\">Bob</a>\n * ```\n *\n * To directly check the `isActive` status of the link, assign the `RouterLinkActive`\n * instance to a template variable.\n * For example, the following checks the status without assigning any CSS classes:\n *\n * ```html\n * <a routerLink=\"/user/bob\" routerLinkActive #rla=\"routerLinkActive\">\n * Bob {{ rla.isActive ? '(already open)' : ''}}\n * </a>\n * ```\n *\n * You can apply the `RouterLinkActive` directive to an ancestor of linked elements.\n * For example, the following sets the active-link class on the `<div>` parent tag\n * when the URL is either '/user/jim' or '/user/bob'.\n *\n * ```html\n * <div routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact: true}\">\n * <a routerLink=\"/user/jim\">Jim</a>\n * <a routerLink=\"/user/bob\">Bob</a>\n * </div>\n * ```\n *\n * The `RouterLinkActive` directive can also be used to set the aria-current attribute\n * to provide an alternative distinction for active elements to visually impaired users.\n *\n * For example, the following code adds the 'active' class to the Home Page link when it is\n * indeed active and in such case also sets its aria-current attribute to 'page':\n *\n * ```html\n * <a routerLink=\"/\" routerLinkActive=\"active\" ariaCurrentWhenActive=\"page\">Home Page</a>\n * ```\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass RouterLinkActive {\n router;\n element;\n renderer;\n cdr;\n link;\n links;\n classes = [];\n routerEventsSubscription;\n linkInputChangesSubscription;\n _isActive = false;\n get isActive() {\n return this._isActive;\n }\n /**\n * Options to configure how to determine if the router link is active.\n *\n * These options are passed to the `Router.isActive()` function.\n *\n * @see {@link Router#isActive}\n */\n routerLinkActiveOptions = { exact: false };\n /**\n * Aria-current attribute to apply when the router link is active.\n *\n * Possible values: `'page'` | `'step'` | `'location'` | `'date'` | `'time'` | `true` | `false`.\n *\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current}\n */\n ariaCurrentWhenActive;\n /**\n *\n * You can use the output `isActiveChange` to get notified each time the link becomes\n * active or inactive.\n *\n * Emits:\n * true -> Route is active\n * false -> Route is inactive\n *\n * ```html\n * <a\n * routerLink=\"/user/bob\"\n * routerLinkActive=\"active-link\"\n * (isActiveChange)=\"this.onRouterLinkActive($event)\">Bob</a>\n * ```\n */\n isActiveChange = new EventEmitter();\n constructor(router, element, renderer, cdr, link) {\n this.router = router;\n this.element = element;\n this.renderer = renderer;\n this.cdr = cdr;\n this.link = link;\n this.routerEventsSubscription = router.events.subscribe((s) => {\n if (s instanceof NavigationEnd) {\n this.update();\n }\n });\n }\n /** @nodoc */\n ngAfterContentInit() {\n // `of(null)` is used to force subscribe body to execute once immediately (like `startWith`).\n of(this.links.changes, of(null))\n .pipe(mergeAll())\n .subscribe((_) => {\n this.update();\n this.subscribeToEachLinkOnChanges();\n });\n }\n subscribeToEachLinkOnChanges() {\n this.linkInputChangesSubscription?.unsubscribe();\n const allLinkChanges = [...this.links.toArray(), this.link]\n .filter((link) => !!link)\n .map((link) => link.onChanges);\n this.linkInputChangesSubscription = from(allLinkChanges)\n .pipe(mergeAll())\n .subscribe((link) => {\n if (this._isActive !== this.isLinkActive(this.router)(link)) {\n this.update();\n }\n });\n }\n set routerLinkActive(data) {\n const classes = Array.isArray(data) ? data : data.split(' ');\n this.classes = classes.filter((c) => !!c);\n }\n /** @nodoc */\n ngOnChanges(changes) {\n this.update();\n }\n /** @nodoc */\n ngOnDestroy() {\n this.routerEventsSubscription.unsubscribe();\n this.linkInputChangesSubscription?.unsubscribe();\n }\n update() {\n if (!this.links || !this.router.navigated)\n return;\n queueMicrotask(() => {\n const hasActiveLinks = this.hasActiveLinks();\n this.classes.forEach((c) => {\n if (hasActiveLinks) {\n this.renderer.addClass(this.element.nativeElement, c);\n }\n else {\n this.renderer.removeClass(this.element.nativeElement, c);\n }\n });\n if (hasActiveLinks && this.ariaCurrentWhenActive !== undefined) {\n this.renderer.setAttribute(this.element.nativeElement, 'aria-current', this.ariaCurrentWhenActive.toString());\n }\n else {\n this.renderer.removeAttribute(this.element.nativeElement, 'aria-current');\n }\n // Only emit change if the active state changed.\n if (this._isActive !== hasActiveLinks) {\n this._isActive = hasActiveLinks;\n this.cdr.markForCheck();\n // Emit on isActiveChange after classes are updated\n this.isActiveChange.emit(hasActiveLinks);\n }\n });\n }\n isLinkActive(router) {\n const options = isActiveMatchOptions(this.routerLinkActiveOptions)\n ? this.routerLinkActiveOptions\n : // While the types should disallow `undefined` here, it's possible without strict inputs\n this.routerLinkActiveOptions.exact || false;\n return (link) => {\n const urlTree = link.urlTree;\n return urlTree ? router.isActive(urlTree, options) : false;\n };\n }\n hasActiveLinks() {\n const isActiveCheckFn = this.isLinkActive(this.router);\n return (this.link && isActiveCheckFn(this.link)) || this.links.some(isActiveCheckFn);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterLinkActive, deps: [{ token: Router }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"19.1.4\", type: RouterLinkActive, isStandalone: true, selector: \"[routerLinkActive]\", inputs: { routerLinkActiveOptions: \"routerLinkActiveOptions\", ariaCurrentWhenActive: \"ariaCurrentWhenActive\", routerLinkActive: \"routerLinkActive\" }, outputs: { isActiveChange: \"isActiveChange\" }, queries: [{ propertyName: \"links\", predicate: RouterLink, descendants: true }], exportAs: [\"routerLinkActive\"], usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterLinkActive, decorators: [{\n type: Directive,\n args: [{\n selector: '[routerLinkActive]',\n exportAs: 'routerLinkActive',\n }]\n }], ctorParameters: () => [{ type: Router }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: RouterLink, decorators: [{\n type: Optional\n }] }], propDecorators: { links: [{\n type: ContentChildren,\n args: [RouterLink, { descendants: true }]\n }], routerLinkActiveOptions: [{\n type: Input\n }], ariaCurrentWhenActive: [{\n type: Input\n }], isActiveChange: [{\n type: Output\n }], routerLinkActive: [{\n type: Input\n }] } });\n/**\n * Use instead of `'paths' in options` to be compatible with property renaming\n */\nfunction isActiveMatchOptions(options) {\n return !!options.paths;\n}\n\n/**\n * @description\n *\n * Provides a preloading strategy.\n *\n * @publicApi\n */\nclass PreloadingStrategy {\n}\n/**\n * @description\n *\n * Provides a preloading strategy that preloads all modules as quickly as possible.\n *\n * ```ts\n * RouterModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})\n * ```\n *\n * @publicApi\n */\nclass PreloadAllModules {\n preload(route, fn) {\n return fn().pipe(catchError(() => of(null)));\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PreloadAllModules, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: PreloadAllModules, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n/**\n * @description\n *\n * Provides a preloading strategy that does not preload any modules.\n *\n * This strategy is enabled by default.\n *\n * @publicApi\n */\nclass NoPreloading {\n preload(route, fn) {\n return of(null);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NoPreloading, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: NoPreloading, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n/**\n * The preloader optimistically loads all router configurations to\n * make navigations into lazily-loaded sections of the application faster.\n *\n * The preloader runs in the background. When the router bootstraps, the preloader\n * starts listening to all navigation events. After every such event, the preloader\n * will check if any configurations can be loaded lazily.\n *\n * If a route is protected by `canLoad` guards, the preloaded will not load it.\n *\n * @publicApi\n */\nclass RouterPreloader {\n router;\n injector;\n preloadingStrategy;\n loader;\n subscription;\n constructor(router, compiler, injector, preloadingStrategy, loader) {\n this.router = router;\n this.injector = injector;\n this.preloadingStrategy = preloadingStrategy;\n this.loader = loader;\n }\n setUpPreloading() {\n this.subscription = this.router.events\n .pipe(filter((e) => e instanceof NavigationEnd), concatMap(() => this.preload()))\n .subscribe(() => { });\n }\n preload() {\n return this.processRoutes(this.injector, this.router.config);\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n processRoutes(injector, routes) {\n const res = [];\n for (const route of routes) {\n if (route.providers && !route._injector) {\n route._injector = createEnvironmentInjector(route.providers, injector, `Route: ${route.path}`);\n }\n const injectorForCurrentRoute = route._injector ?? injector;\n const injectorForChildren = route._loadedInjector ?? injectorForCurrentRoute;\n // Note that `canLoad` is only checked as a condition that prevents `loadChildren` and not\n // `loadComponent`. `canLoad` guards only block loading of child routes by design. This\n // happens as a consequence of needing to descend into children for route matching immediately\n // while component loading is deferred until route activation. Because `canLoad` guards can\n // have side effects, we cannot execute them here so we instead skip preloading altogether\n // when present. Lastly, it remains to be decided whether `canLoad` should behave this way\n // at all. Code splitting and lazy loading is separate from client-side authorization checks\n // and should not be used as a security measure to prevent loading of code.\n if ((route.loadChildren && !route._loadedRoutes && route.canLoad === undefined) ||\n (route.loadComponent && !route._loadedComponent)) {\n res.push(this.preloadConfig(injectorForCurrentRoute, route));\n }\n if (route.children || route._loadedRoutes) {\n res.push(this.processRoutes(injectorForChildren, (route.children ?? route._loadedRoutes)));\n }\n }\n return from(res).pipe(mergeAll());\n }\n preloadConfig(injector, route) {\n return this.preloadingStrategy.preload(route, () => {\n let loadedChildren$;\n if (route.loadChildren && route.canLoad === undefined) {\n loadedChildren$ = this.loader.loadChildren(injector, route);\n }\n else {\n loadedChildren$ = of(null);\n }\n const recursiveLoadChildren$ = loadedChildren$.pipe(mergeMap((config) => {\n if (config === null) {\n return of(void 0);\n }\n route._loadedRoutes = config.routes;\n route._loadedInjector = config.injector;\n // If the loaded config was a module, use that as the module/module injector going\n // forward. Otherwise, continue using the current module/module injector.\n return this.processRoutes(config.injector ?? injector, config.routes);\n }));\n if (route.loadComponent && !route._loadedComponent) {\n const loadComponent$ = this.loader.loadComponent(route);\n return from([recursiveLoadChildren$, loadComponent$]).pipe(mergeAll());\n }\n else {\n return recursiveLoadChildren$;\n }\n });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterPreloader, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterPreloader, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }] });\n\nconst ROUTER_SCROLLER = new InjectionToken('');\nclass RouterScroller {\n urlSerializer;\n transitions;\n viewportScroller;\n zone;\n options;\n routerEventsSubscription;\n scrollEventsSubscription;\n lastId = 0;\n lastSource = 'imperative';\n restoredId = 0;\n store = {};\n /** @nodoc */\n constructor(urlSerializer, transitions, viewportScroller, zone, options = {}) {\n this.urlSerializer = urlSerializer;\n this.transitions = transitions;\n this.viewportScroller = viewportScroller;\n this.zone = zone;\n this.options = options;\n // Default both options to 'disabled'\n options.scrollPositionRestoration ||= 'disabled';\n options.anchorScrolling ||= 'disabled';\n }\n init() {\n // we want to disable the automatic scrolling because having two places\n // responsible for scrolling results race conditions, especially given\n // that browser don't implement this behavior consistently\n if (this.options.scrollPositionRestoration !== 'disabled') {\n this.viewportScroller.setHistoryScrollRestoration('manual');\n }\n this.routerEventsSubscription = this.createScrollEvents();\n this.scrollEventsSubscription = this.consumeScrollEvents();\n }\n createScrollEvents() {\n return this.transitions.events.subscribe((e) => {\n if (e instanceof NavigationStart) {\n // store the scroll position of the current stable navigations.\n this.store[this.lastId] = this.viewportScroller.getScrollPosition();\n this.lastSource = e.navigationTrigger;\n this.restoredId = e.restoredState ? e.restoredState.navigationId : 0;\n }\n else if (e instanceof NavigationEnd) {\n this.lastId = e.id;\n this.scheduleScrollEvent(e, this.urlSerializer.parse(e.urlAfterRedirects).fragment);\n }\n else if (e instanceof NavigationSkipped &&\n e.code === NavigationSkippedCode.IgnoredSameUrlNavigation) {\n this.lastSource = undefined;\n this.restoredId = 0;\n this.scheduleScrollEvent(e, this.urlSerializer.parse(e.url).fragment);\n }\n });\n }\n consumeScrollEvents() {\n return this.transitions.events.subscribe((e) => {\n if (!(e instanceof Scroll))\n return;\n // a popstate event. The pop state event will always ignore anchor scrolling.\n if (e.position) {\n if (this.options.scrollPositionRestoration === 'top') {\n this.viewportScroller.scrollToPosition([0, 0]);\n }\n else if (this.options.scrollPositionRestoration === 'enabled') {\n this.viewportScroller.scrollToPosition(e.position);\n }\n // imperative navigation \"forward\"\n }\n else {\n if (e.anchor && this.options.anchorScrolling === 'enabled') {\n this.viewportScroller.scrollToAnchor(e.anchor);\n }\n else if (this.options.scrollPositionRestoration !== 'disabled') {\n this.viewportScroller.scrollToPosition([0, 0]);\n }\n }\n });\n }\n scheduleScrollEvent(routerEvent, anchor) {\n this.zone.runOutsideAngular(() => {\n // The scroll event needs to be delayed until after change detection. Otherwise, we may\n // attempt to restore the scroll position before the router outlet has fully rendered the\n // component by executing its update block of the template function.\n setTimeout(() => {\n this.zone.run(() => {\n this.transitions.events.next(new Scroll(routerEvent, this.lastSource === 'popstate' ? this.store[this.restoredId] : null, anchor));\n });\n }, 0);\n });\n }\n /** @nodoc */\n ngOnDestroy() {\n this.routerEventsSubscription?.unsubscribe();\n this.scrollEventsSubscription?.unsubscribe();\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterScroller, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterScroller });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterScroller, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }] });\n\n/**\n * Sets up providers necessary to enable `Router` functionality for the application.\n * Allows to configure a set of routes as well as extra features that should be enabled.\n *\n * @usageNotes\n *\n * Basic example of how you can add a Router to your application:\n * ```ts\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent, {\n * providers: [provideRouter(appRoutes)]\n * });\n * ```\n *\n * You can also enable optional features in the Router by adding functions from the `RouterFeatures`\n * type:\n * ```ts\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes,\n * withDebugTracing(),\n * withRouterConfig({paramsInheritanceStrategy: 'always'}))\n * ]\n * }\n * );\n * ```\n *\n * @see {@link RouterFeatures}\n *\n * @publicApi\n * @param routes A set of `Route`s to use for the application routing table.\n * @param features Optional features to configure additional router behaviors.\n * @returns A set of providers to setup a Router.\n */\nfunction provideRouter(routes, ...features) {\n return makeEnvironmentProviders([\n { provide: ROUTES, multi: true, useValue: routes },\n typeof ngDevMode === 'undefined' || ngDevMode\n ? { provide: ROUTER_IS_PROVIDED, useValue: true }\n : [],\n { provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },\n { provide: APP_BOOTSTRAP_LISTENER, multi: true, useFactory: getBootstrapListener },\n features.map((feature) => feature.ɵproviders),\n ]);\n}\nfunction rootRoute(router) {\n return router.routerState.root;\n}\n/**\n * Helper function to create an object that represents a Router feature.\n */\nfunction routerFeature(kind, providers) {\n return { ɵkind: kind, ɵproviders: providers };\n}\n/**\n * An Injection token used to indicate whether `provideRouter` or `RouterModule.forRoot` was ever\n * called.\n */\nconst ROUTER_IS_PROVIDED = new InjectionToken('', {\n providedIn: 'root',\n factory: () => false,\n});\nconst routerIsProvidedDevModeCheck = {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory() {\n return () => {\n if (!inject(ROUTER_IS_PROVIDED)) {\n console.warn('`provideRoutes` was called without `provideRouter` or `RouterModule.forRoot`. ' +\n 'This is likely a mistake.');\n }\n };\n },\n};\n/**\n * Registers a DI provider for a set of routes.\n * @param routes The route configuration to provide.\n *\n * @usageNotes\n *\n * ```ts\n * @NgModule({\n * providers: [provideRoutes(ROUTES)]\n * })\n * class LazyLoadedChildModule {}\n * ```\n *\n * @deprecated If necessary, provide routes using the `ROUTES` `InjectionToken`.\n * @see {@link ROUTES}\n * @publicApi\n */\nfunction provideRoutes(routes) {\n return [\n { provide: ROUTES, multi: true, useValue: routes },\n typeof ngDevMode === 'undefined' || ngDevMode ? routerIsProvidedDevModeCheck : [],\n ];\n}\n/**\n * Enables customizable scrolling behavior for router navigations.\n *\n * @usageNotes\n *\n * Basic example of how you can enable scrolling feature:\n * ```ts\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withInMemoryScrolling())\n * ]\n * }\n * );\n * ```\n *\n * @see {@link provideRouter}\n * @see {@link ViewportScroller}\n *\n * @publicApi\n * @param options Set of configuration parameters to customize scrolling behavior, see\n * `InMemoryScrollingOptions` for additional information.\n * @returns A set of providers for use with `provideRouter`.\n */\nfunction withInMemoryScrolling(options = {}) {\n const providers = [\n {\n provide: ROUTER_SCROLLER,\n useFactory: () => {\n const viewportScroller = inject(ViewportScroller);\n const zone = inject(NgZone);\n const transitions = inject(NavigationTransitions);\n const urlSerializer = inject(UrlSerializer);\n return new RouterScroller(urlSerializer, transitions, viewportScroller, zone, options);\n },\n },\n ];\n return routerFeature(4 /* RouterFeatureKind.InMemoryScrollingFeature */, providers);\n}\nfunction getBootstrapListener() {\n const injector = inject(Injector);\n return (bootstrappedComponentRef) => {\n const ref = injector.get(ApplicationRef);\n if (bootstrappedComponentRef !== ref.components[0]) {\n return;\n }\n const router = injector.get(Router);\n const bootstrapDone = injector.get(BOOTSTRAP_DONE);\n if (injector.get(INITIAL_NAVIGATION) === 1 /* InitialNavigation.EnabledNonBlocking */) {\n router.initialNavigation();\n }\n injector.get(ROUTER_PRELOADER, null, InjectFlags.Optional)?.setUpPreloading();\n injector.get(ROUTER_SCROLLER, null, InjectFlags.Optional)?.init();\n router.resetRootComponentType(ref.componentTypes[0]);\n if (!bootstrapDone.closed) {\n bootstrapDone.next();\n bootstrapDone.complete();\n bootstrapDone.unsubscribe();\n }\n };\n}\n/**\n * A subject used to indicate that the bootstrapping phase is done. When initial navigation is\n * `enabledBlocking`, the first navigation waits until bootstrapping is finished before continuing\n * to the activation phase.\n */\nconst BOOTSTRAP_DONE = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'bootstrap done indicator' : '', {\n factory: () => {\n return new Subject();\n },\n});\nconst INITIAL_NAVIGATION = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'initial navigation' : '', { providedIn: 'root', factory: () => 1 /* InitialNavigation.EnabledNonBlocking */ });\n/**\n * Configures initial navigation to start before the root component is created.\n *\n * The bootstrap is blocked until the initial navigation is complete. This should be set in case\n * you use [server-side rendering](guide/ssr), but do not enable [hydration](guide/hydration) for\n * your application.\n *\n * @usageNotes\n *\n * Basic example of how you can enable this navigation behavior:\n * ```ts\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withEnabledBlockingInitialNavigation())\n * ]\n * }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @publicApi\n * @returns A set of providers for use with `provideRouter`.\n */\nfunction withEnabledBlockingInitialNavigation() {\n const providers = [\n { provide: INITIAL_NAVIGATION, useValue: 0 /* InitialNavigation.EnabledBlocking */ },\n {\n provide: APP_INITIALIZER,\n multi: true,\n deps: [Injector],\n useFactory: (injector) => {\n const locationInitialized = injector.get(LOCATION_INITIALIZED, Promise.resolve());\n return () => {\n return locationInitialized.then(() => {\n return new Promise((resolve) => {\n const router = injector.get(Router);\n const bootstrapDone = injector.get(BOOTSTRAP_DONE);\n afterNextNavigation(router, () => {\n // Unblock APP_INITIALIZER in case the initial navigation was canceled or errored\n // without a redirect.\n resolve(true);\n });\n injector.get(NavigationTransitions).afterPreactivation = () => {\n // Unblock APP_INITIALIZER once we get to `afterPreactivation`. At this point, we\n // assume activation will complete successfully (even though this is not\n // guaranteed).\n resolve(true);\n return bootstrapDone.closed ? of(void 0) : bootstrapDone;\n };\n router.initialNavigation();\n });\n });\n };\n },\n },\n ];\n return routerFeature(2 /* RouterFeatureKind.EnabledBlockingInitialNavigationFeature */, providers);\n}\n/**\n * Disables initial navigation.\n *\n * Use if there is a reason to have more control over when the router starts its initial navigation\n * due to some complex initialization logic.\n *\n * @usageNotes\n *\n * Basic example of how you can disable initial navigation:\n * ```ts\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withDisabledInitialNavigation())\n * ]\n * }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withDisabledInitialNavigation() {\n const providers = [\n {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: () => {\n const router = inject(Router);\n return () => {\n router.setUpLocationChangeListener();\n };\n },\n },\n { provide: INITIAL_NAVIGATION, useValue: 2 /* InitialNavigation.Disabled */ },\n ];\n return routerFeature(3 /* RouterFeatureKind.DisabledInitialNavigationFeature */, providers);\n}\n/**\n * Enables logging of all internal navigation events to the console.\n * Extra logging might be useful for debugging purposes to inspect Router event sequence.\n *\n * @usageNotes\n *\n * Basic example of how you can enable debug tracing:\n * ```ts\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withDebugTracing())\n * ]\n * }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withDebugTracing() {\n let providers = [];\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n providers = [\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory: () => {\n const router = inject(Router);\n return () => router.events.subscribe((e) => {\n // tslint:disable:no-console\n console.group?.(`Router Event: ${e.constructor.name}`);\n console.log(stringifyEvent(e));\n console.log(e);\n console.groupEnd?.();\n // tslint:enable:no-console\n });\n },\n },\n ];\n }\n else {\n providers = [];\n }\n return routerFeature(1 /* RouterFeatureKind.DebugTracingFeature */, providers);\n}\nconst ROUTER_PRELOADER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'router preloader' : '');\n/**\n * Allows to configure a preloading strategy to use. The strategy is configured by providing a\n * reference to a class that implements a `PreloadingStrategy`.\n *\n * @usageNotes\n *\n * Basic example of how you can configure preloading:\n * ```ts\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withPreloading(PreloadAllModules))\n * ]\n * }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @param preloadingStrategy A reference to a class that implements a `PreloadingStrategy` that\n * should be used.\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withPreloading(preloadingStrategy) {\n const providers = [\n { provide: ROUTER_PRELOADER, useExisting: RouterPreloader },\n { provide: PreloadingStrategy, useExisting: preloadingStrategy },\n ];\n return routerFeature(0 /* RouterFeatureKind.PreloadingFeature */, providers);\n}\n/**\n * Allows to provide extra parameters to configure Router.\n *\n * @usageNotes\n *\n * Basic example of how you can provide extra configuration options:\n * ```ts\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withRouterConfig({\n * onSameUrlNavigation: 'reload'\n * }))\n * ]\n * }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @param options A set of parameters to configure Router, see `RouterConfigOptions` for\n * additional information.\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withRouterConfig(options) {\n const providers = [{ provide: ROUTER_CONFIGURATION, useValue: options }];\n return routerFeature(5 /* RouterFeatureKind.RouterConfigurationFeature */, providers);\n}\n/**\n * Provides the location strategy that uses the URL fragment instead of the history API.\n *\n * @usageNotes\n *\n * Basic example of how you can use the hash location option:\n * ```ts\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withHashLocation())\n * ]\n * }\n * );\n * ```\n *\n * @see {@link provideRouter}\n * @see {@link HashLocationStrategy}\n *\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withHashLocation() {\n const providers = [{ provide: LocationStrategy, useClass: HashLocationStrategy }];\n return routerFeature(6 /* RouterFeatureKind.RouterHashLocationFeature */, providers);\n}\n/**\n * Provides a function which is called when a navigation error occurs.\n *\n * This function is run inside application's [injection context](guide/di/dependency-injection-context)\n * so you can use the [`inject`](api/core/inject) function.\n *\n * This function can return a `RedirectCommand` to convert the error to a redirect, similar to returning\n * a `UrlTree` or `RedirectCommand` from a guard. This will also prevent the `Router` from emitting\n * `NavigationError`; it will instead emit `NavigationCancel` with code NavigationCancellationCode.Redirect.\n * Return values other than `RedirectCommand` are ignored and do not change any behavior with respect to\n * how the `Router` handles the error.\n *\n * @usageNotes\n *\n * Basic example of how you can use the error handler option:\n * ```ts\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withNavigationErrorHandler((e: NavigationError) =>\n * inject(MyErrorTracker).trackError(e)))\n * ]\n * }\n * );\n * ```\n *\n * @see {@link NavigationError}\n * @see {@link core/inject}\n * @see {@link runInInjectionContext}\n *\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withNavigationErrorHandler(handler) {\n const providers = [\n {\n provide: NAVIGATION_ERROR_HANDLER,\n useValue: handler,\n },\n ];\n return routerFeature(7 /* RouterFeatureKind.NavigationErrorHandlerFeature */, providers);\n}\n/**\n * Enables binding information from the `Router` state directly to the inputs of the component in\n * `Route` configurations.\n *\n * @usageNotes\n *\n * Basic example of how you can enable the feature:\n * ```ts\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withComponentInputBinding())\n * ]\n * }\n * );\n * ```\n *\n * The router bindings information from any of the following sources:\n *\n * - query parameters\n * - path and matrix parameters\n * - static route data\n * - data from resolvers\n *\n * Duplicate keys are resolved in the same order from above, from least to greatest,\n * meaning that resolvers have the highest precedence and override any of the other information\n * from the route.\n *\n * Importantly, when an input does not have an item in the route data with a matching key, this\n * input is set to `undefined`. This prevents previous information from being\n * retained if the data got removed from the route (i.e. if a query parameter is removed).\n * Default values can be provided with a resolver on the route to ensure the value is always present\n * or an input and use an input transform in the component.\n *\n * @see {@link guide/components/inputs#input-transforms input transforms}\n * @returns A set of providers for use with `provideRouter`.\n */\nfunction withComponentInputBinding() {\n const providers = [\n RoutedComponentInputBinder,\n { provide: INPUT_BINDER, useExisting: RoutedComponentInputBinder },\n ];\n return routerFeature(8 /* RouterFeatureKind.ComponentInputBindingFeature */, providers);\n}\n/**\n * Enables view transitions in the Router by running the route activation and deactivation inside of\n * `document.startViewTransition`.\n *\n * Note: The View Transitions API is not available in all browsers. If the browser does not support\n * view transitions, the Router will not attempt to start a view transition and continue processing\n * the navigation as usual.\n *\n * @usageNotes\n *\n * Basic example of how you can enable the feature:\n * ```ts\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withViewTransitions())\n * ]\n * }\n * );\n * ```\n *\n * @returns A set of providers for use with `provideRouter`.\n * @see https://developer.chrome.com/docs/web-platform/view-transitions/\n * @see https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API\n * @developerPreview\n */\nfunction withViewTransitions(options) {\n const providers = [\n { provide: CREATE_VIEW_TRANSITION, useValue: createViewTransition },\n {\n provide: VIEW_TRANSITION_OPTIONS,\n useValue: { skipNextTransition: !!options?.skipInitialTransition, ...options },\n },\n ];\n return routerFeature(9 /* RouterFeatureKind.ViewTransitionsFeature */, providers);\n}\n\n/**\n * The directives defined in the `RouterModule`.\n */\nconst ROUTER_DIRECTIVES = [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent];\n/**\n * @docsNotRequired\n */\nconst ROUTER_FORROOT_GUARD = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'router duplicate forRoot guard' : '');\n// TODO(atscott): All of these except `ActivatedRoute` are `providedIn: 'root'`. They are only kept\n// here to avoid a breaking change whereby the provider order matters based on where the\n// `RouterModule`/`RouterTestingModule` is imported. These can/should be removed as a \"breaking\"\n// change in a major version.\nconst ROUTER_PROVIDERS = [\n Location,\n { provide: UrlSerializer, useClass: DefaultUrlSerializer },\n Router,\n ChildrenOutletContexts,\n { provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },\n RouterConfigLoader,\n // Only used to warn when `provideRoutes` is used without `RouterModule` or `provideRouter`. Can\n // be removed when `provideRoutes` is removed.\n typeof ngDevMode === 'undefined' || ngDevMode\n ? { provide: ROUTER_IS_PROVIDED, useValue: true }\n : [],\n];\n/**\n * @description\n *\n * Adds directives and providers for in-app navigation among views defined in an application.\n * Use the Angular `Router` service to declaratively specify application states and manage state\n * transitions.\n *\n * You can import this NgModule multiple times, once for each lazy-loaded bundle.\n * However, only one `Router` service can be active.\n * To ensure this, there are two ways to register routes when importing this module:\n *\n * * The `forRoot()` method creates an `NgModule` that contains all the directives, the given\n * routes, and the `Router` service itself.\n * * The `forChild()` method creates an `NgModule` that contains all the directives and the given\n * routes, but does not include the `Router` service.\n *\n * @see [Routing and Navigation guide](guide/routing/common-router-tasks) for an\n * overview of how the `Router` service should be used.\n *\n * @publicApi\n */\nclass RouterModule {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n inject(ROUTER_FORROOT_GUARD, { optional: true });\n }\n }\n /**\n * Creates and configures a module with all the router providers and directives.\n * Optionally sets up an application listener to perform an initial navigation.\n *\n * When registering the NgModule at the root, import as follows:\n *\n * ```ts\n * @NgModule({\n * imports: [RouterModule.forRoot(ROUTES)]\n * })\n * class MyNgModule {}\n * ```\n *\n * @param routes An array of `Route` objects that define the navigation paths for the application.\n * @param config An `ExtraOptions` configuration object that controls how navigation is performed.\n * @return The new `NgModule`.\n *\n */\n static forRoot(routes, config) {\n return {\n ngModule: RouterModule,\n providers: [\n ROUTER_PROVIDERS,\n typeof ngDevMode === 'undefined' || ngDevMode\n ? config?.enableTracing\n ? withDebugTracing().ɵproviders\n : []\n : [],\n { provide: ROUTES, multi: true, useValue: routes },\n typeof ngDevMode === 'undefined' || ngDevMode\n ? {\n provide: ROUTER_FORROOT_GUARD,\n useFactory: provideForRootGuard,\n deps: [[Router, new Optional(), new SkipSelf()]],\n }\n : [],\n config?.errorHandler\n ? {\n provide: NAVIGATION_ERROR_HANDLER,\n useValue: config.errorHandler,\n }\n : [],\n { provide: ROUTER_CONFIGURATION, useValue: config ? config : {} },\n config?.useHash ? provideHashLocationStrategy() : providePathLocationStrategy(),\n provideRouterScroller(),\n config?.preloadingStrategy ? withPreloading(config.preloadingStrategy).ɵproviders : [],\n config?.initialNavigation ? provideInitialNavigation(config) : [],\n config?.bindToComponentInputs ? withComponentInputBinding().ɵproviders : [],\n config?.enableViewTransitions ? withViewTransitions().ɵproviders : [],\n provideRouterInitializer(),\n ],\n };\n }\n /**\n * Creates a module with all the router directives and a provider registering routes,\n * without creating a new Router service.\n * When registering for submodules and lazy-loaded submodules, create the NgModule as follows:\n *\n * ```ts\n * @NgModule({\n * imports: [RouterModule.forChild(ROUTES)]\n * })\n * class MyNgModule {}\n * ```\n *\n * @param routes An array of `Route` objects that define the navigation paths for the submodule.\n * @return The new NgModule.\n *\n */\n static forChild(routes) {\n return {\n ngModule: RouterModule,\n providers: [{ provide: ROUTES, multi: true, useValue: routes }],\n };\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterModule });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"19.1.4\", ngImport: i0, type: RouterModule, decorators: [{\n type: NgModule,\n args: [{\n imports: ROUTER_DIRECTIVES,\n exports: ROUTER_DIRECTIVES,\n }]\n }], ctorParameters: () => [] });\n/**\n * For internal use by `RouterModule` only. Note that this differs from `withInMemoryRouterScroller`\n * because it reads from the `ExtraOptions` which should not be used in the standalone world.\n */\nfunction provideRouterScroller() {\n return {\n provide: ROUTER_SCROLLER,\n useFactory: () => {\n const viewportScroller = inject(ViewportScroller);\n const zone = inject(NgZone);\n const config = inject(ROUTER_CONFIGURATION);\n const transitions = inject(NavigationTransitions);\n const urlSerializer = inject(UrlSerializer);\n if (config.scrollOffset) {\n viewportScroller.setOffset(config.scrollOffset);\n }\n return new RouterScroller(urlSerializer, transitions, viewportScroller, zone, config);\n },\n };\n}\n// Note: For internal use only with `RouterModule`. Standalone setup via `provideRouter` should\n// provide hash location directly via `{provide: LocationStrategy, useClass: HashLocationStrategy}`.\nfunction provideHashLocationStrategy() {\n return { provide: LocationStrategy, useClass: HashLocationStrategy };\n}\n// Note: For internal use only with `RouterModule`. Standalone setup via `provideRouter` does not\n// need this at all because `PathLocationStrategy` is the default factory for `LocationStrategy`.\nfunction providePathLocationStrategy() {\n return { provide: LocationStrategy, useClass: PathLocationStrategy };\n}\nfunction provideForRootGuard(router) {\n if (router) {\n throw new ɵRuntimeError(4007 /* RuntimeErrorCode.FOR_ROOT_CALLED_TWICE */, `The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector.` +\n ` Lazy loaded modules should use RouterModule.forChild() instead.`);\n }\n return 'guarded';\n}\n// Note: For internal use only with `RouterModule`. Standalone router setup with `provideRouter`\n// users call `withXInitialNavigation` directly.\nfunction provideInitialNavigation(config) {\n return [\n config.initialNavigation === 'disabled' ? withDisabledInitialNavigation().ɵproviders : [],\n config.initialNavigation === 'enabledBlocking'\n ? withEnabledBlockingInitialNavigation().ɵproviders\n : [],\n ];\n}\n// TODO(atscott): This should not be in the public API\n/**\n * A DI token for the router initializer that\n * is called after the app is bootstrapped.\n *\n * @publicApi\n */\nconst ROUTER_INITIALIZER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'Router Initializer' : '');\nfunction provideRouterInitializer() {\n return [\n // ROUTER_INITIALIZER token should be removed. It's public API but shouldn't be. We can just\n // have `getBootstrapListener` directly attached to APP_BOOTSTRAP_LISTENER.\n { provide: ROUTER_INITIALIZER, useFactory: getBootstrapListener },\n { provide: APP_BOOTSTRAP_LISTENER, multi: true, useExisting: ROUTER_INITIALIZER },\n ];\n}\n\n/**\n * Maps an array of injectable classes with canMatch functions to an array of equivalent\n * `CanMatchFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToCanMatch(providers) {\n return providers.map((provider) => (...params) => inject(provider).canMatch(...params));\n}\n/**\n * Maps an array of injectable classes with canActivate functions to an array of equivalent\n * `CanActivateFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToCanActivate(providers) {\n return providers.map((provider) => (...params) => inject(provider).canActivate(...params));\n}\n/**\n * Maps an array of injectable classes with canActivateChild functions to an array of equivalent\n * `CanActivateChildFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToCanActivateChild(providers) {\n return providers.map((provider) => (...params) => inject(provider).canActivateChild(...params));\n}\n/**\n * Maps an array of injectable classes with canDeactivate functions to an array of equivalent\n * `CanDeactivateFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToCanDeactivate(providers) {\n return providers.map((provider) => (...params) => inject(provider).canDeactivate(...params));\n}\n/**\n * Maps an injectable class with a resolve function to an equivalent `ResolveFn`\n * for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='Resolve'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToResolve(provider) {\n return (...params) => inject(provider).resolve(...params);\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the router package.\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('19.1.4');\n\nfunction getLoadedRoutes(route) {\n return route._loadedRoutes;\n}\nɵpublishExternalGlobalUtil('ɵgetLoadedRoutes', getLoadedRoutes);\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, BaseRouteReuseStrategy, ChildActivationEnd, ChildActivationStart, ChildrenOutletContexts, DefaultTitleStrategy, DefaultUrlSerializer, EventType, GuardsCheckEnd, GuardsCheckStart, NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationError, NavigationSkipped, NavigationSkippedCode, NavigationStart, NoPreloading, OutletContext, PRIMARY_OUTLET, PreloadAllModules, PreloadingStrategy, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, ROUTER_OUTLET_DATA, ROUTES, RedirectCommand, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, Router, RouterEvent, RouterLink, RouterLinkActive, RouterLink as RouterLinkWithHref, RouterModule, RouterOutlet, RouterPreloader, RouterState, RouterStateSnapshot, RoutesRecognized, Scroll, TitleStrategy, UrlHandlingStrategy, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree, VERSION, convertToParamMap, createUrlTreeFromSnapshot, defaultUrlMatcher, mapToCanActivate, mapToCanActivateChild, mapToCanDeactivate, mapToCanMatch, mapToResolve, provideRouter, provideRoutes, withComponentInputBinding, withDebugTracing, withDisabledInitialNavigation, withEnabledBlockingInitialNavigation, withHashLocation, withInMemoryScrolling, withNavigationErrorHandler, withPreloading, withRouterConfig, withViewTransitions, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS, afterNextNavigation as ɵafterNextNavigation, loadChildren as ɵloadChildren };\n","import { Observable } from '../Observable';\nimport { isFunction } from './isFunction';\nexport function isObservable(obj) {\n return !!obj && (obj instanceof Observable || (isFunction(obj.lift) && isFunction(obj.subscribe)));\n}\n","import { concat } from '../observable/concat';\nimport { popScheduler } from '../util/args';\nimport { operate } from '../util/lift';\nexport function startWith(...values) {\n const scheduler = popScheduler(values);\n return operate((source, subscriber) => {\n (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);\n });\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { takeLast } from './takeLast';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { identity } from '../util/identity';\nexport function last(predicate, defaultValue) {\n const hasDefaultValue = arguments.length >= 2;\n return (source) => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, takeLast(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\nexport function takeUntil(notifier) {\n return operate((source, subscriber) => {\n innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop));\n !subscriber.closed && source.subscribe(subscriber);\n });\n}\n","import memoize from '@emotion/memoize';\n\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar index = memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport default index;\n","function memoize(fn) {\n var cache = {};\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport default memoize;\n","function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n","import memoize from '@emotion/memoize';\n\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar isPropValid = /* #__PURE__ */memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport { isPropValid as default };\n","/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n const lr = ['left', 'right'];\n const rl = ['right', 'left'];\n const tb = ['top', 'bottom'];\n const bt = ['bottom', 'top'];\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rl : lr;\n return isStart ? lr : rl;\n case 'left':\n case 'right':\n return isStart ? tb : bt;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n","import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';\nexport { rectToClientRect } from '@floating-ui/utils';\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n let {\n reference,\n floating\n } = _ref;\n const sideAxis = getSideAxis(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const alignLength = getAxisLength(alignmentAxis);\n const side = getSide(placement);\n const isVertical = sideAxis === 'y';\n const commonX = reference.x + reference.width / 2 - floating.width / 2;\n const commonY = reference.y + reference.height / 2 - floating.height / 2;\n const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n let coords;\n switch (side) {\n case 'top':\n coords = {\n x: commonX,\n y: reference.y - floating.height\n };\n break;\n case 'bottom':\n coords = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n case 'right':\n coords = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n case 'left':\n coords = {\n x: reference.x - floating.width,\n y: commonY\n };\n break;\n default:\n coords = {\n x: reference.x,\n y: reference.y\n };\n }\n switch (getAlignment(placement)) {\n case 'start':\n coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n case 'end':\n coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n }\n return coords;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n *\n * This export does not have any `platform` interface logic. You will need to\n * write one for the platform you are using Floating UI with.\n */\nconst computePosition = async (reference, floating, config) => {\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform\n } = config;\n const validMiddleware = middleware.filter(Boolean);\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));\n let rects = await platform.getElementRects({\n reference,\n floating,\n strategy\n });\n let {\n x,\n y\n } = computeCoordsFromPlacement(rects, placement, rtl);\n let statefulPlacement = placement;\n let middlewareData = {};\n let resetCount = 0;\n for (let i = 0; i < validMiddleware.length; i++) {\n const {\n name,\n fn\n } = validMiddleware[i];\n const {\n x: nextX,\n y: nextY,\n data,\n reset\n } = await fn({\n x,\n y,\n initialPlacement: placement,\n placement: statefulPlacement,\n strategy,\n middlewareData,\n rects,\n platform,\n elements: {\n reference,\n floating\n }\n });\n x = nextX != null ? nextX : x;\n y = nextY != null ? nextY : y;\n middlewareData = {\n ...middlewareData,\n [name]: {\n ...middlewareData[name],\n ...data\n }\n };\n if (reset && resetCount <= 50) {\n resetCount++;\n if (typeof reset === 'object') {\n if (reset.placement) {\n statefulPlacement = reset.placement;\n }\n if (reset.rects) {\n rects = reset.rects === true ? await platform.getElementRects({\n reference,\n floating,\n strategy\n }) : reset.rects;\n }\n ({\n x,\n y\n } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n }\n i = -1;\n }\n }\n return {\n x,\n y,\n placement: statefulPlacement,\n strategy,\n middlewareData\n };\n};\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nasync function detectOverflow(state, options) {\n var _await$platform$isEle;\n if (options === void 0) {\n options = {};\n }\n const {\n x,\n y,\n platform,\n rects,\n elements,\n strategy\n } = state;\n const {\n boundary = 'clippingAncestors',\n rootBoundary = 'viewport',\n elementContext = 'floating',\n altBoundary = false,\n padding = 0\n } = evaluate(options, state);\n const paddingObject = getPaddingObject(padding);\n const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n const element = elements[altBoundary ? altContext : elementContext];\n const clippingClientRect = rectToClientRect(await platform.getClippingRect({\n element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),\n boundary,\n rootBoundary,\n strategy\n }));\n const rect = elementContext === 'floating' ? {\n x,\n y,\n width: rects.floating.width,\n height: rects.floating.height\n } : rects.reference;\n const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));\n const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {\n x: 1,\n y: 1\n } : {\n x: 1,\n y: 1\n };\n const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n elements,\n rect,\n offsetParent,\n strategy\n }) : rect);\n return {\n top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n };\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements,\n middlewareData\n } = state;\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0\n } = evaluate(options, state) || {};\n if (element == null) {\n return {};\n }\n const paddingObject = getPaddingObject(padding);\n const coords = {\n x,\n y\n };\n const axis = getAlignmentAxis(placement);\n const length = getAxisLength(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));\n let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // If the padding is large enough that it causes the arrow to no longer be\n // centered, modify the padding so that it is centered.\n const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n const minPadding = min(paddingObject[minProp], largestPossiblePadding);\n const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min$1 = minPadding;\n const max = clientSize - arrowDimensions[length] - maxPadding;\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = clamp(min$1, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. To ensure `shift()` continues to take action,\n // a single reset is performed when this is true.\n const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;\n return {\n [axis]: coords[axis] + alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset - alignmentOffset,\n ...(shouldAddOffset && {\n alignmentOffset\n })\n },\n reset: shouldAddOffset\n };\n }\n});\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);\n return allowedPlacementsSortedByAlignment.filter(placement => {\n if (alignment) {\n return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n }\n return true;\n });\n}\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'autoPlacement',\n options,\n async fn(state) {\n var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;\n const {\n rects,\n middlewareData,\n placement,\n platform,\n elements\n } = state;\n const {\n crossAxis = false,\n alignment,\n allowedPlacements = placements,\n autoAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;\n const currentPlacement = placements$1[currentIndex];\n if (currentPlacement == null) {\n return {};\n }\n const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));\n\n // Make `computeCoords` start from the right place.\n if (placement !== currentPlacement) {\n return {\n reset: {\n placement: placements$1[0]\n }\n };\n }\n const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];\n const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n placement: currentPlacement,\n overflows: currentOverflows\n }];\n const nextPlacement = placements$1[currentIndex + 1];\n\n // There are more placements to check.\n if (nextPlacement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n const placementsSortedByMostSpace = allOverflows.map(d => {\n const alignment = getAlignment(d.placement);\n return [d.placement, alignment && crossAxis ?\n // Check along the mainAxis and main crossAxis side.\n d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :\n // Check only the mainAxis.\n d.overflows[0], d.overflows];\n }).sort((a, b) => a[1] - b[1]);\n const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,\n // Aligned placements should not check their opposite crossAxis\n // side.\n getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));\n const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];\n if (resetPlacement !== placement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: resetPlacement\n }\n };\n }\n return {};\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'flip',\n options,\n async fn(state) {\n var _middlewareData$arrow, _middlewareData$flip;\n const {\n placement,\n middlewareData,\n rects,\n initialPlacement,\n platform,\n elements\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true,\n fallbackPlacements: specifiedFallbackPlacements,\n fallbackStrategy = 'bestFit',\n fallbackAxisSideDirection = 'none',\n flipAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n\n // If a reset by the arrow was caused due to an alignment offset being\n // added, we should skip any logic now since `flip()` has already done its\n // work.\n // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643\n if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n const side = getSide(placement);\n const initialSideAxis = getSideAxis(initialPlacement);\n const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';\n if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {\n fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n }\n const placements = [initialPlacement, ...fallbackPlacements];\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const overflows = [];\n let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n if (checkMainAxis) {\n overflows.push(overflow[side]);\n }\n if (checkCrossAxis) {\n const sides = getAlignmentSides(placement, rects, rtl);\n overflows.push(overflow[sides[0]], overflow[sides[1]]);\n }\n overflowsData = [...overflowsData, {\n placement,\n overflows\n }];\n\n // One or more sides is overflowing.\n if (!overflows.every(side => side <= 0)) {\n var _middlewareData$flip2, _overflowsData$filter;\n const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n const nextPlacement = placements[nextIndex];\n if (nextPlacement) {\n // Try next placement and re-run the lifecycle.\n return {\n data: {\n index: nextIndex,\n overflows: overflowsData\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n\n // First, find the candidates that fit on the mainAxis side of overflow,\n // then find the placement that fits the best on the main crossAxis side.\n let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n\n // Otherwise fallback.\n if (!resetPlacement) {\n switch (fallbackStrategy) {\n case 'bestFit':\n {\n var _overflowsData$filter2;\n const placement = (_overflowsData$filter2 = overflowsData.filter(d => {\n if (hasFallbackAxisSideDirection) {\n const currentSideAxis = getSideAxis(d.placement);\n return currentSideAxis === initialSideAxis ||\n // Create a bias to the `y` side axis due to horizontal\n // reading directions favoring greater width.\n currentSideAxis === 'y';\n }\n return true;\n }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];\n if (placement) {\n resetPlacement = placement;\n }\n break;\n }\n case 'initialPlacement':\n resetPlacement = initialPlacement;\n break;\n }\n }\n if (placement !== resetPlacement) {\n return {\n reset: {\n placement: resetPlacement\n }\n };\n }\n }\n return {};\n }\n };\n};\n\nfunction getSideOffsets(overflow, rect) {\n return {\n top: overflow.top - rect.height,\n right: overflow.right - rect.width,\n bottom: overflow.bottom - rect.height,\n left: overflow.left - rect.width\n };\n}\nfunction isAnySideFullyClipped(overflow) {\n return sides.some(side => overflow[side] >= 0);\n}\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'hide',\n options,\n async fn(state) {\n const {\n rects\n } = state;\n const {\n strategy = 'referenceHidden',\n ...detectOverflowOptions\n } = evaluate(options, state);\n switch (strategy) {\n case 'referenceHidden':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n elementContext: 'reference'\n });\n const offsets = getSideOffsets(overflow, rects.reference);\n return {\n data: {\n referenceHiddenOffsets: offsets,\n referenceHidden: isAnySideFullyClipped(offsets)\n }\n };\n }\n case 'escaped':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n altBoundary: true\n });\n const offsets = getSideOffsets(overflow, rects.floating);\n return {\n data: {\n escapedOffsets: offsets,\n escaped: isAnySideFullyClipped(offsets)\n }\n };\n }\n default:\n {\n return {};\n }\n }\n }\n };\n};\n\nfunction getBoundingRect(rects) {\n const minX = min(...rects.map(rect => rect.left));\n const minY = min(...rects.map(rect => rect.top));\n const maxX = max(...rects.map(rect => rect.right));\n const maxY = max(...rects.map(rect => rect.bottom));\n return {\n x: minX,\n y: minY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nfunction getRectsByLine(rects) {\n const sortedRects = rects.slice().sort((a, b) => a.y - b.y);\n const groups = [];\n let prevRect = null;\n for (let i = 0; i < sortedRects.length; i++) {\n const rect = sortedRects[i];\n if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {\n groups.push([rect]);\n } else {\n groups[groups.length - 1].push(rect);\n }\n prevRect = rect;\n }\n return groups.map(rect => rectToClientRect(getBoundingRect(rect)));\n}\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'inline',\n options,\n async fn(state) {\n const {\n placement,\n elements,\n rects,\n platform,\n strategy\n } = state;\n // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n // ClientRect's bounds, despite the event listener being triggered. A\n // padding of 2 seems to handle this issue.\n const {\n padding = 2,\n x,\n y\n } = evaluate(options, state);\n const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);\n const clientRects = getRectsByLine(nativeClientRects);\n const fallback = rectToClientRect(getBoundingRect(nativeClientRects));\n const paddingObject = getPaddingObject(padding);\n function getBoundingClientRect() {\n // There are two rects and they are disjoined.\n if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {\n // Find the first rect in which the point is fully inside.\n return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;\n }\n\n // There are 2 or more connected rects.\n if (clientRects.length >= 2) {\n if (getSideAxis(placement) === 'y') {\n const firstRect = clientRects[0];\n const lastRect = clientRects[clientRects.length - 1];\n const isTop = getSide(placement) === 'top';\n const top = firstRect.top;\n const bottom = lastRect.bottom;\n const left = isTop ? firstRect.left : lastRect.left;\n const right = isTop ? firstRect.right : lastRect.right;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n const isLeftSide = getSide(placement) === 'left';\n const maxRight = max(...clientRects.map(rect => rect.right));\n const minLeft = min(...clientRects.map(rect => rect.left));\n const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);\n const top = measureRects[0].top;\n const bottom = measureRects[measureRects.length - 1].bottom;\n const left = minLeft;\n const right = maxRight;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n return fallback;\n }\n const resetRects = await platform.getElementRects({\n reference: {\n getBoundingClientRect\n },\n floating: elements.floating,\n strategy\n });\n if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {\n return {\n reset: {\n rects: resetRects\n }\n };\n }\n return {};\n }\n };\n};\n\n// For type backwards-compatibility, the `OffsetOptions` type was also\n// Derivable.\n\nasync function convertValueToCoords(state, options) {\n const {\n placement,\n platform,\n elements\n } = state;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isVertical = getSideAxis(placement) === 'y';\n const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;\n const crossAxisMulti = rtl && isVertical ? -1 : 1;\n const rawValue = evaluate(options, state);\n\n // eslint-disable-next-line prefer-const\n let {\n mainAxis,\n crossAxis,\n alignmentAxis\n } = typeof rawValue === 'number' ? {\n mainAxis: rawValue,\n crossAxis: 0,\n alignmentAxis: null\n } : {\n mainAxis: rawValue.mainAxis || 0,\n crossAxis: rawValue.crossAxis || 0,\n alignmentAxis: rawValue.alignmentAxis\n };\n if (alignment && typeof alignmentAxis === 'number') {\n crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;\n }\n return isVertical ? {\n x: crossAxis * crossAxisMulti,\n y: mainAxis * mainAxisMulti\n } : {\n x: mainAxis * mainAxisMulti,\n y: crossAxis * crossAxisMulti\n };\n}\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = function (options) {\n if (options === void 0) {\n options = 0;\n }\n return {\n name: 'offset',\n options,\n async fn(state) {\n var _middlewareData$offse, _middlewareData$arrow;\n const {\n x,\n y,\n placement,\n middlewareData\n } = state;\n const diffCoords = await convertValueToCoords(state, options);\n\n // If the placement is the same and the arrow caused an alignment offset\n // then we don't need to change the positioning coordinates.\n if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n return {\n x: x + diffCoords.x,\n y: y + diffCoords.y,\n data: {\n ...diffCoords,\n placement\n }\n };\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'shift',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = false,\n limiter = {\n fn: _ref => {\n let {\n x,\n y\n } = _ref;\n return {\n x,\n y\n };\n }\n },\n ...detectOverflowOptions\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const crossAxis = getSideAxis(getSide(placement));\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n if (checkMainAxis) {\n const minSide = mainAxis === 'y' ? 'top' : 'left';\n const maxSide = mainAxis === 'y' ? 'bottom' : 'right';\n const min = mainAxisCoord + overflow[minSide];\n const max = mainAxisCoord - overflow[maxSide];\n mainAxisCoord = clamp(min, mainAxisCoord, max);\n }\n if (checkCrossAxis) {\n const minSide = crossAxis === 'y' ? 'top' : 'left';\n const maxSide = crossAxis === 'y' ? 'bottom' : 'right';\n const min = crossAxisCoord + overflow[minSide];\n const max = crossAxisCoord - overflow[maxSide];\n crossAxisCoord = clamp(min, crossAxisCoord, max);\n }\n const limitedCoords = limiter.fn({\n ...state,\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n });\n return {\n ...limitedCoords,\n data: {\n x: limitedCoords.x - x,\n y: limitedCoords.y - y,\n enabled: {\n [mainAxis]: checkMainAxis,\n [crossAxis]: checkCrossAxis\n }\n }\n };\n }\n };\n};\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n options,\n fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n middlewareData\n } = state;\n const {\n offset = 0,\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const crossAxis = getSideAxis(placement);\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n const rawOffset = evaluate(offset, state);\n const computedOffset = typeof rawOffset === 'number' ? {\n mainAxis: rawOffset,\n crossAxis: 0\n } : {\n mainAxis: 0,\n crossAxis: 0,\n ...rawOffset\n };\n if (checkMainAxis) {\n const len = mainAxis === 'y' ? 'height' : 'width';\n const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n if (mainAxisCoord < limitMin) {\n mainAxisCoord = limitMin;\n } else if (mainAxisCoord > limitMax) {\n mainAxisCoord = limitMax;\n }\n }\n if (checkCrossAxis) {\n var _middlewareData$offse, _middlewareData$offse2;\n const len = mainAxis === 'y' ? 'width' : 'height';\n const isOriginSide = ['top', 'left'].includes(getSide(placement));\n const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n if (crossAxisCoord < limitMin) {\n crossAxisCoord = limitMin;\n } else if (crossAxisCoord > limitMax) {\n crossAxisCoord = limitMax;\n }\n }\n return {\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n };\n }\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'size',\n options,\n async fn(state) {\n var _state$middlewareData, _state$middlewareData2;\n const {\n placement,\n rects,\n platform,\n elements\n } = state;\n const {\n apply = () => {},\n ...detectOverflowOptions\n } = evaluate(options, state);\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isYAxis = getSideAxis(placement) === 'y';\n const {\n width,\n height\n } = rects.floating;\n let heightSide;\n let widthSide;\n if (side === 'top' || side === 'bottom') {\n heightSide = side;\n widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';\n } else {\n widthSide = side;\n heightSide = alignment === 'end' ? 'top' : 'bottom';\n }\n const maximumClippingHeight = height - overflow.top - overflow.bottom;\n const maximumClippingWidth = width - overflow.left - overflow.right;\n const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);\n const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);\n const noShift = !state.middlewareData.shift;\n let availableHeight = overflowAvailableHeight;\n let availableWidth = overflowAvailableWidth;\n if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {\n availableWidth = maximumClippingWidth;\n }\n if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {\n availableHeight = maximumClippingHeight;\n }\n if (noShift && !alignment) {\n const xMin = max(overflow.left, 0);\n const xMax = max(overflow.right, 0);\n const yMin = max(overflow.top, 0);\n const yMax = max(overflow.bottom, 0);\n if (isYAxis) {\n availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));\n } else {\n availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));\n }\n }\n await apply({\n ...state,\n availableWidth,\n availableHeight\n });\n const nextDimensions = await platform.getDimensions(elements.floating);\n if (width !== nextDimensions.width || height !== nextDimensions.height) {\n return {\n reset: {\n rects: true\n }\n };\n }\n return {};\n }\n };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };\n","function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isTopLayer(element) {\n return [':popover-open', ':modal'].some(selector => {\n try {\n return element.matches(selector);\n } catch (e) {\n return false;\n }\n });\n}\nfunction isContainingBlock(elementOrCss) {\n const webkit = isWebKit();\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nfunction isLastTraversableNode(node) {\n return ['html', 'body', '#document'].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n","import { rectToClientRect, detectOverflow as detectOverflow$1, offset as offset$1, autoPlacement as autoPlacement$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1, arrow as arrow$1, inline as inline$1, limitShift as limitShift$1, computePosition as computePosition$1 } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle, isHTMLElement, isElement, getWindow, isWebKit, getFrameElement, getDocumentElement, isTopLayer, getNodeName, isOverflowElement, getNodeScroll, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentWin = win;\n let currentIFrame = getFrameElement(currentWin);\n while (currentIFrame && offsetParent && offsetWin !== currentWin) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentWin = getWindow(currentIFrame);\n currentIFrame = getFrameElement(currentWin);\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n elements,\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isFixed = strategy === 'fixed';\n const documentElement = getDocumentElement(offsetParent);\n const topLayer = elements ? isTopLayer(elements.floating) : false;\n if (offsetParent === documentElement || topLayer && isFixed) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\n// If <html> has a CSS width greater than the viewport, then this will be\n// incorrect for RTL.\nfunction getWindowScrollBarX(element, rect) {\n const leftScroll = getNodeScroll(element).scrollLeft;\n if (!rect) {\n return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;\n }\n return rect.left + leftScroll;\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n ...clippingAncestor,\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n const {\n width,\n height\n } = getCssDimensions(element);\n return {\n width,\n height\n };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n // If the <body> scrollbar appears on the left (e.g. RTL systems). Use\n // Firefox with layout.scrollbar.side = 3 in about:config to test this.\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n let htmlX = 0;\n let htmlY = 0;\n if (documentElement && !isOffsetParentAnElement && !isFixed) {\n const htmlRect = documentElement.getBoundingClientRect();\n htmlY = htmlRect.top + scroll.scrollTop;\n htmlX = htmlRect.left + scroll.scrollLeft -\n // RTL <body> scrollbar.\n getWindowScrollBarX(documentElement, htmlRect);\n }\n const x = rect.left + scroll.scrollLeft - offsets.x - htmlX;\n const y = rect.top + scroll.scrollTop - offsets.y - htmlY;\n return {\n x,\n y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction isStaticPositioned(element) {\n return getComputedStyle(element).position === 'static';\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n let rawOffsetParent = element.offsetParent;\n\n // Firefox returns the <html> element as the offsetParent if it's non-static,\n // while Chrome and Safari return the <body> element. The <body> element must\n // be used to perform the correct calculations even if the <html> element is\n // non-static.\n if (getDocumentElement(element) === rawOffsetParent) {\n rawOffsetParent = rawOffsetParent.ownerDocument.body;\n }\n return rawOffsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const win = getWindow(element);\n if (isTopLayer(element)) {\n return win;\n }\n if (!isHTMLElement(element)) {\n let svgOffsetParent = getParentNode(element);\n while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {\n if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {\n return svgOffsetParent;\n }\n svgOffsetParent = getParentNode(svgOffsetParent);\n }\n return win;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {\n return win;\n }\n return offsetParent || getContainingBlock(element) || win;\n}\n\nconst getElementRects = async function (data) {\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n const floatingDimensions = await getDimensionsFn(data.floating);\n return {\n reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n floating: {\n x: 0,\n y: 0,\n width: floatingDimensions.width,\n height: floatingDimensions.height\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n var _io;\n clearTimeout(timeoutId);\n (_io = io) == null || _io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const {\n left,\n top,\n width,\n height\n } = element.getBoundingClientRect();\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n // If the reference is clipped, the ratio is 0. Throttle the refresh\n // to prevent an infinite loop of updates.\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 1000);\n } else {\n refresh(false, ratio);\n }\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle <iframe>s\n root: root.ownerDocument\n });\n } catch (e) {\n io = new IntersectionObserver(handleObserve, options);\n }\n io.observe(element);\n }\n refresh(true);\n return cleanup;\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n ancestorScroll = true,\n ancestorResize = true,\n elementResize = typeof ResizeObserver === 'function',\n layoutShift = typeof IntersectionObserver === 'function',\n animationFrame = false\n } = options;\n const referenceEl = unwrapElement(reference);\n const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.addEventListener('scroll', update, {\n passive: true\n });\n ancestorResize && ancestor.addEventListener('resize', update);\n });\n const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n let reobserveFrame = -1;\n let resizeObserver = null;\n if (elementResize) {\n resizeObserver = new ResizeObserver(_ref => {\n let [firstEntry] = _ref;\n if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n // Prevent update loops when using the `size` middleware.\n // https://github.com/floating-ui/floating-ui/issues/1740\n resizeObserver.unobserve(floating);\n cancelAnimationFrame(reobserveFrame);\n reobserveFrame = requestAnimationFrame(() => {\n var _resizeObserver;\n (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);\n });\n }\n update();\n });\n if (referenceEl && !animationFrame) {\n resizeObserver.observe(referenceEl);\n }\n resizeObserver.observe(floating);\n }\n let frameId;\n let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n if (animationFrame) {\n frameLoop();\n }\n function frameLoop() {\n const nextRefRect = getBoundingClientRect(reference);\n if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {\n update();\n }\n prevRefRect = nextRefRect;\n frameId = requestAnimationFrame(frameLoop);\n }\n update();\n return () => {\n var _resizeObserver2;\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.removeEventListener('scroll', update);\n ancestorResize && ancestor.removeEventListener('resize', update);\n });\n cleanupIo == null || cleanupIo();\n (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();\n resizeObserver = null;\n if (animationFrame) {\n cancelAnimationFrame(frameId);\n }\n };\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nconst detectOverflow = detectOverflow$1;\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = offset$1;\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = autoPlacement$1;\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = shift$1;\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = flip$1;\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = size$1;\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = hide$1;\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = arrow$1;\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = inline$1;\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = limitShift$1;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n */\nconst computePosition = (reference, floating, options) => {\n // This caches the expensive `getClippingElementAncestors` function so that\n // multiple lifecycle resets re-use the same result. It only lives for a\n // single call. If other functions become expensive, we can add them as well.\n const cache = new Map();\n const mergedOptions = {\n platform,\n ...options\n };\n const platformWithCache = {\n ...mergedOptions.platform,\n _c: cache\n };\n return computePosition$1(reference, floating, {\n ...mergedOptions,\n platform: platformWithCache\n });\n};\n\nexport { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, platform, shift, size };\n","import { computePosition, arrow as arrow$2, offset as offset$1, shift as shift$1, limitShift as limitShift$1, flip as flip$1, size as size$1, autoPlacement as autoPlacement$1, hide as hide$1, inline as inline$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect, useEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => ({\n ...offset$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => ({\n ...shift$1(options),\n options: [options, deps]\n});\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => ({\n ...limitShift$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => ({\n ...flip$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => ({\n ...size$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => ({\n ...autoPlacement$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => ({\n ...hide$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => ({\n ...inline$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => ({\n ...arrow$1(options),\n options: [options, deps]\n});\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If <html> has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on <html>\n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","var i=Symbol.for(\"preact-signals\");function t(){if(!(s>1)){var i,t=!1;while(void 0!==h){var r=h;h=void 0;f++;while(void 0!==r){var o=r.o;r.o=void 0;r.f&=-3;if(!(8&r.f)&&c(r))try{r.c()}catch(r){if(!t){i=r;t=!0}}r=o}}f=0;s--;if(t)throw i}else s--}function r(i){if(s>0)return i();s++;try{return i()}finally{t()}}var o=void 0;function n(i){var t=o;o=void 0;try{return i()}finally{o=t}}var h=void 0,s=0,f=0,v=0;function e(i){if(void 0!==o){var t=i.n;if(void 0===t||t.t!==o){t={i:0,S:i,p:o.s,n:void 0,t:o,e:void 0,x:void 0,r:t};if(void 0!==o.s)o.s.n=t;o.s=t;i.n=t;if(32&o.f)i.S(t);return t}else if(-1===t.i){t.i=0;if(void 0!==t.n){t.n.p=t.p;if(void 0!==t.p)t.p.n=t.n;t.p=o.s;t.n=void 0;o.s.n=t;o.s=t}return t}}}function u(i){this.v=i;this.i=0;this.n=void 0;this.t=void 0}u.prototype.brand=i;u.prototype.h=function(){return!0};u.prototype.S=function(i){if(this.t!==i&&void 0===i.e){i.x=this.t;if(void 0!==this.t)this.t.e=i;this.t=i}};u.prototype.U=function(i){if(void 0!==this.t){var t=i.e,r=i.x;if(void 0!==t){t.x=r;i.e=void 0}if(void 0!==r){r.e=t;i.x=void 0}if(i===this.t)this.t=r}};u.prototype.subscribe=function(i){var t=this;return E(function(){var r=t.value,n=o;o=void 0;try{i(r)}finally{o=n}})};u.prototype.valueOf=function(){return this.value};u.prototype.toString=function(){return this.value+\"\"};u.prototype.toJSON=function(){return this.value};u.prototype.peek=function(){var i=o;o=void 0;try{return this.value}finally{o=i}};Object.defineProperty(u.prototype,\"value\",{get:function(){var i=e(this);if(void 0!==i)i.i=this.i;return this.v},set:function(i){if(i!==this.v){if(f>100)throw new Error(\"Cycle detected\");this.v=i;this.i++;v++;s++;try{for(var r=this.t;void 0!==r;r=r.x)r.t.N()}finally{t()}}}});function d(i){return new u(i)}function c(i){for(var t=i.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function a(i){for(var t=i.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r)t.r=r;t.S.n=t;t.i=-1;if(void 0===t.n){i.s=t;break}}}function l(i){var t=i.s,r=void 0;while(void 0!==t){var o=t.p;if(-1===t.i){t.S.U(t);if(void 0!==o)o.n=t.n;if(void 0!==t.n)t.n.p=o}else r=t;t.S.n=t.r;if(void 0!==t.r)t.r=void 0;t=o}i.s=r}function y(i){u.call(this,void 0);this.x=i;this.s=void 0;this.g=v-1;this.f=4}(y.prototype=new u).h=function(){this.f&=-3;if(1&this.f)return!1;if(32==(36&this.f))return!0;this.f&=-5;if(this.g===v)return!0;this.g=v;this.f|=1;if(this.i>0&&!c(this)){this.f&=-2;return!0}var i=o;try{a(this);o=this;var t=this.x();if(16&this.f||this.v!==t||0===this.i){this.v=t;this.f&=-17;this.i++}}catch(i){this.v=i;this.f|=16;this.i++}o=i;l(this);this.f&=-2;return!0};y.prototype.S=function(i){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}u.prototype.S.call(this,i)};y.prototype.U=function(i){if(void 0!==this.t){u.prototype.U.call(this,i);if(void 0===this.t){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}}};y.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var i=this.t;void 0!==i;i=i.x)i.t.N()}};Object.defineProperty(y.prototype,\"value\",{get:function(){if(1&this.f)throw new Error(\"Cycle detected\");var i=e(this);this.h();if(void 0!==i)i.i=this.i;if(16&this.f)throw this.v;return this.v}});function w(i){return new y(i)}function _(i){var r=i.u;i.u=void 0;if(\"function\"==typeof r){s++;var n=o;o=void 0;try{r()}catch(t){i.f&=-2;i.f|=8;g(i);throw t}finally{o=n;t()}}}function g(i){for(var t=i.s;void 0!==t;t=t.n)t.S.U(t);i.x=void 0;i.s=void 0;_(i)}function p(i){if(o!==this)throw new Error(\"Out-of-order effect\");l(this);o=i;this.f&=-2;if(8&this.f)g(this);t()}function b(i){this.x=i;this.u=void 0;this.s=void 0;this.o=void 0;this.f=32}b.prototype.c=function(){var i=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();if(\"function\"==typeof t)this.u=t}finally{i()}};b.prototype.S=function(){if(1&this.f)throw new Error(\"Cycle detected\");this.f|=1;this.f&=-9;_(this);a(this);s++;var i=o;o=this;return p.bind(this,i)};b.prototype.N=function(){if(!(2&this.f)){this.f|=2;this.o=h;h=this}};b.prototype.d=function(){this.f|=8;if(!(1&this.f))g(this)};function E(i){var t=new b(i);try{t.c()}catch(i){t.d();throw i}return t.d.bind(t)}export{u as Signal,r as batch,w as computed,E as effect,d as signal,n as untracked};","import{Signal as n,effect as r,signal as t,computed as e}from\"@preact/signals-core\";export{Signal,batch,computed,effect,signal,untracked}from\"@preact/signals-core\";import i,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED as u,useRef as f,useMemo as o,useEffect as c}from\"react\";import{useSyncExternalStore as l}from\"use-sync-external-store/shim/index.js\";import a from\"react/jsx-runtime\";import s from\"react/jsx-dev-runtime\";var v=null,m=!1,p=null,d=new Map;function b(n){if(!n)return 1;var r,t=d.get(n);if(void 0!==t)return t;var e=n.useCallback.toString();if(n.useReducer===n.useEffect)r=1;else if(n.useEffect===n.useImperativeHandle)r=32;else if(/Invalid/.test(e))r=2;else if(/updateCallback/.test(e)||/\\[0\\]/.test(e)&&/\\[1\\]/.test(e)){var i=n.useReducer.toString();if(/rerenderReducer/.test(i)||/return\\s*\\[\\w+,/.test(i))r=16;else r=8}else r=4;d.set(n,r);return r}var g=[],h=Symbol.for(\"react.element\"),y=function(){};function S(r){if(\"function\"!=typeof r)return r;else return function(t,e){if(\"string\"==typeof t&&e)for(var i in e){var u=e[i];if(\"children\"!==i&&u instanceof n)e[i]=u.value}return r.call.apply(r,[r,t,e].concat([].slice.call(arguments,2)))}}var x,j,k=Symbol.dispose||Symbol.for(\"Symbol.dispose\");function w(n,r){var t=r.effect.S();x=r;return B.bind(r,n,t)}function B(n,r){r();x=n}({u:0,effect:{s:void 0,c:function(){},S:function(){return y},d:function(){}},subscribe:function(){return y},getSnapshot:function(){return 0},S:function(){},f:function(){}})[k]=function(){};var O=Promise.prototype.then.bind(Promise.resolve());function P(n){if(void 0===n)n=0;!function(){if(!j)j=O(function(){var n;j=void 0;null==(n=x)||n.f()})}();var t=f();if(null==t.current)t.current=function(n){var t,e,i,u,f=0,o=r(function(){e=this});e.c=function(){f=f+1|0;if(u)u()};return(t={u:n,effect:e,subscribe:function(n){u=n;return function(){f=f+1|0;u=void 0;o()}},getSnapshot:function(){return f},S:function(){if(null!=x){var n=x.u,r=this.u;if(0==n&&0==r||0==n&&1==r){x.f();i=w(void 0,this)}else if(1==n&&0==r||2==n&&0==r);else i=w(x,this)}else i=w(void 0,this)},f:function(){null==i||i();i=void 0}})[k]=function(){this.f()},t}(n);var e=t.current;l(e.subscribe,e.getSnapshot,e.getSnapshot);e.S();return e}Object.defineProperties(n.prototype,{$$typeof:{configurable:!0,value:h},type:{configurable:!0,value:function(n){var r=n.data,t=P(1);try{return r.value}finally{t.f()}}},props:{configurable:!0,get:function(){return{data:this}}},ref:{configurable:!0,value:null}});function useSignal(n){return o(function(){return t(n)},g)}function useComputed(n){var r=f(n);r.current=n;return o(function(){return e(function(){return r.current()})},g)}function useSignalEffect(n){var t=f(n);t.current=n;c(function(){return r(function(){return t.current()})},g)}!function(){Object.defineProperty(u.ReactCurrentDispatcher,\"current\",{get:function(){return p},set:function(n){if(!m){var r=b(p),t=b(n);p=n;if(function(n,r){if(1&n&&28&r)return!0;else if(2&n||2&r)return!1;else return!1}(r,t)){m=!0;v=P(1);m=!1}else if(function(n,r){return Boolean(28&n&&16&r)}(r,t)){var e;null==(e=v)||e.f();m=!0;v=P(1);m=!1}else if(function(n,r){return Boolean(28&n&&1&r)}(r,t)){var i;null==(i=v)||i.f();v=null}}else p=n}});!function(){var n=a,r=s;i.createElement=S(i.createElement);r.jsx&&(r.jsx=S(r.jsx));n.jsx&&(n.jsx=S(n.jsx));r.jsxs&&(r.jsxs=S(r.jsxs));n.jsxs&&(n.jsxs=S(n.jsxs));r.jsxDEV&&(r.jsxDEV=S(r.jsxDEV));n.jsxDEV&&(n.jsxDEV=S(n.jsxDEV))}()}();export{useComputed,useSignal,useSignalEffect};","function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);\n };\n}\n\n\n\n\nexport {$e42e1063c40fb3ef$export$b9ecd428b558ff10 as composeEventHandlers};\n","// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n","import $73KQ4$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $73KQ4$forwardRef, createElement as $73KQ4$createElement, useCallback as $73KQ4$useCallback, useState as $73KQ4$useState, useRef as $73KQ4$useRef, useEffect as $73KQ4$useEffect} from \"react\";\nimport {composeEventHandlers as $73KQ4$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {createContextScope as $73KQ4$createContextScope} from \"@radix-ui/react-context\";\nimport {useControllableState as $73KQ4$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {useLayoutEffect as $73KQ4$useLayoutEffect} from \"@radix-ui/react-use-layout-effect\";\nimport {useComposedRefs as $73KQ4$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {Primitive as $73KQ4$Primitive} from \"@radix-ui/react-primitive\";\nimport {Presence as $73KQ4$Presence} from \"@radix-ui/react-presence\";\nimport {useId as $73KQ4$useId} from \"@radix-ui/react-id\";\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Collapsible\n * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$COLLAPSIBLE_NAME = 'Collapsible';\nconst [$409067139f391064$var$createCollapsibleContext, $409067139f391064$export$952b32dcbe73087a] = $73KQ4$createContextScope($409067139f391064$var$COLLAPSIBLE_NAME);\nconst [$409067139f391064$var$CollapsibleProvider, $409067139f391064$var$useCollapsibleContext] = $409067139f391064$var$createCollapsibleContext($409067139f391064$var$COLLAPSIBLE_NAME);\nconst $409067139f391064$export$6eb0f7ddcda6131f = /*#__PURE__*/ $73KQ4$forwardRef((props, forwardedRef)=>{\n const { __scopeCollapsible: __scopeCollapsible , open: openProp , defaultOpen: defaultOpen , disabled: disabled , onOpenChange: onOpenChange , ...collapsibleProps } = props;\n const [open = false, setOpen] = $73KQ4$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /*#__PURE__*/ $73KQ4$createElement($409067139f391064$var$CollapsibleProvider, {\n scope: __scopeCollapsible,\n disabled: disabled,\n contentId: $73KQ4$useId(),\n open: open,\n onOpenToggle: $73KQ4$useCallback(()=>setOpen((prevOpen)=>!prevOpen\n )\n , [\n setOpen\n ])\n }, /*#__PURE__*/ $73KQ4$createElement($73KQ4$Primitive.div, $73KQ4$babelruntimehelpersesmextends({\n \"data-state\": $409067139f391064$var$getState(open),\n \"data-disabled\": disabled ? '' : undefined\n }, collapsibleProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($409067139f391064$export$6eb0f7ddcda6131f, {\n displayName: $409067139f391064$var$COLLAPSIBLE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * CollapsibleTrigger\n * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$TRIGGER_NAME = 'CollapsibleTrigger';\nconst $409067139f391064$export$c135dce7b15bbbdc = /*#__PURE__*/ $73KQ4$forwardRef((props, forwardedRef)=>{\n const { __scopeCollapsible: __scopeCollapsible , ...triggerProps } = props;\n const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME, __scopeCollapsible);\n return /*#__PURE__*/ $73KQ4$createElement($73KQ4$Primitive.button, $73KQ4$babelruntimehelpersesmextends({\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": $409067139f391064$var$getState(context.open),\n \"data-disabled\": context.disabled ? '' : undefined,\n disabled: context.disabled\n }, triggerProps, {\n ref: forwardedRef,\n onClick: $73KQ4$composeEventHandlers(props.onClick, context.onOpenToggle)\n }));\n});\n/*#__PURE__*/ Object.assign($409067139f391064$export$c135dce7b15bbbdc, {\n displayName: $409067139f391064$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * CollapsibleContent\n * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$CONTENT_NAME = 'CollapsibleContent';\nconst $409067139f391064$export$aadde00976f34151 = /*#__PURE__*/ $73KQ4$forwardRef((props, forwardedRef)=>{\n const { forceMount: forceMount , ...contentProps } = props;\n const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, props.__scopeCollapsible);\n return /*#__PURE__*/ $73KQ4$createElement($73KQ4$Presence, {\n present: forceMount || context.open\n }, ({ present: present })=>/*#__PURE__*/ $73KQ4$createElement($409067139f391064$var$CollapsibleContentImpl, $73KQ4$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef,\n present: present\n }))\n );\n});\n/*#__PURE__*/ Object.assign($409067139f391064$export$aadde00976f34151, {\n displayName: $409067139f391064$var$CONTENT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$CollapsibleContentImpl = /*#__PURE__*/ $73KQ4$forwardRef((props, forwardedRef)=>{\n const { __scopeCollapsible: __scopeCollapsible , present: present , children: children , ...contentProps } = props;\n const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = $73KQ4$useState(present);\n const ref = $73KQ4$useRef(null);\n const composedRefs = $73KQ4$useComposedRefs(forwardedRef, ref);\n const heightRef = $73KQ4$useRef(0);\n const height = heightRef.current;\n const widthRef = $73KQ4$useRef(0);\n const width = widthRef.current; // when opening we want it to immediately open to retrieve dimensions\n // when closing we delay `present` to retrieve dimensions before closing\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = $73KQ4$useRef(isOpen);\n const originalStylesRef = $73KQ4$useRef();\n $73KQ4$useEffect(()=>{\n const rAF = requestAnimationFrame(()=>isMountAnimationPreventedRef.current = false\n );\n return ()=>cancelAnimationFrame(rAF)\n ;\n }, []);\n $73KQ4$useLayoutEffect(()=>{\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n }; // block any animations/transitions so the element renders at its full dimensions\n node.style.transitionDuration = '0s';\n node.style.animationName = 'none'; // get width and height from full dimensions\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width; // kick off any animations/transitions that were originally set up if it isn't the initial mount\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n /**\n * depends on `context.open` because it will change to `false`\n * when a close is triggered but `present` will be `false` on\n * animation end (so when close finishes). This allows us to\n * retrieve the dimensions *before* closing.\n */ }, [\n context.open,\n present\n ]);\n return /*#__PURE__*/ $73KQ4$createElement($73KQ4$Primitive.div, $73KQ4$babelruntimehelpersesmextends({\n \"data-state\": $409067139f391064$var$getState(context.open),\n \"data-disabled\": context.disabled ? '' : undefined,\n id: context.contentId,\n hidden: !isOpen\n }, contentProps, {\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : undefined,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : undefined,\n ...props.style\n }\n }), isOpen && children);\n});\n/* -----------------------------------------------------------------------------------------------*/ function $409067139f391064$var$getState(open) {\n return open ? 'open' : 'closed';\n}\nconst $409067139f391064$export$be92b6f5f03c0fe9 = $409067139f391064$export$6eb0f7ddcda6131f;\nconst $409067139f391064$export$41fb9f06171c75f4 = $409067139f391064$export$c135dce7b15bbbdc;\nconst $409067139f391064$export$7c6e2c02157bb7d2 = $409067139f391064$export$aadde00976f34151;\n\n\n\n\nexport {$409067139f391064$export$952b32dcbe73087a as createCollapsibleScope, $409067139f391064$export$6eb0f7ddcda6131f as Collapsible, $409067139f391064$export$c135dce7b15bbbdc as CollapsibleTrigger, $409067139f391064$export$aadde00976f34151 as CollapsibleContent, $409067139f391064$export$be92b6f5f03c0fe9 as Root, $409067139f391064$export$41fb9f06171c75f4 as Trigger, $409067139f391064$export$7c6e2c02157bb7d2 as Content};\n","import $3DjNB$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport $3DjNB$react from \"react\";\nimport {createContextScope as $3DjNB$createContextScope} from \"@radix-ui/react-context\";\nimport {createCollection as $3DjNB$createCollection} from \"@radix-ui/react-collection\";\nimport {useComposedRefs as $3DjNB$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {composeEventHandlers as $3DjNB$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useControllableState as $3DjNB$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {Primitive as $3DjNB$Primitive} from \"@radix-ui/react-primitive\";\nimport {createCollapsibleScope as $3DjNB$createCollapsibleScope, Root as $3DjNB$Root, Trigger as $3DjNB$Trigger, Content as $3DjNB$Content} from \"@radix-ui/react-collapsible\";\nimport {useId as $3DjNB$useId} from \"@radix-ui/react-id\";\nimport {useDirection as $3DjNB$useDirection} from \"@radix-ui/react-direction\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Accordion\n * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$ACCORDION_NAME = 'Accordion';\nconst $1bf158f521e1b1b4$var$ACCORDION_KEYS = [\n 'Home',\n 'End',\n 'ArrowDown',\n 'ArrowUp',\n 'ArrowLeft',\n 'ArrowRight'\n];\nconst [$1bf158f521e1b1b4$var$Collection, $1bf158f521e1b1b4$var$useCollection, $1bf158f521e1b1b4$var$createCollectionScope] = $3DjNB$createCollection($1bf158f521e1b1b4$var$ACCORDION_NAME);\nconst [$1bf158f521e1b1b4$var$createAccordionContext, $1bf158f521e1b1b4$export$9748edc328a73be1] = $3DjNB$createContextScope($1bf158f521e1b1b4$var$ACCORDION_NAME, [\n $1bf158f521e1b1b4$var$createCollectionScope,\n $3DjNB$createCollapsibleScope\n]);\nconst $1bf158f521e1b1b4$var$useCollapsibleScope = $3DjNB$createCollapsibleScope();\nconst $1bf158f521e1b1b4$export$a766cd26d0d69044 = /*#__PURE__*/ $3DjNB$react.forwardRef((props, forwardedRef)=>{\n const { type: type , ...accordionProps } = props;\n const singleProps = accordionProps;\n const multipleProps = accordionProps;\n return /*#__PURE__*/ $3DjNB$react.createElement($1bf158f521e1b1b4$var$Collection.Provider, {\n scope: props.__scopeAccordion\n }, type === 'multiple' ? /*#__PURE__*/ $3DjNB$react.createElement($1bf158f521e1b1b4$var$AccordionImplMultiple, $3DjNB$babelruntimehelpersesmextends({}, multipleProps, {\n ref: forwardedRef\n })) : /*#__PURE__*/ $3DjNB$react.createElement($1bf158f521e1b1b4$var$AccordionImplSingle, $3DjNB$babelruntimehelpersesmextends({}, singleProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($1bf158f521e1b1b4$export$a766cd26d0d69044, {\n displayName: $1bf158f521e1b1b4$var$ACCORDION_NAME\n});\n$1bf158f521e1b1b4$export$a766cd26d0d69044.propTypes = {\n type (props) {\n const value = props.value || props.defaultValue;\n if (props.type && ![\n 'single',\n 'multiple'\n ].includes(props.type)) return new Error('Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`.');\n if (props.type === 'multiple' && typeof value === 'string') return new Error('Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`.');\n if (props.type === 'single' && Array.isArray(value)) return new Error('Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`.');\n return null;\n }\n};\n/* -----------------------------------------------------------------------------------------------*/ const [$1bf158f521e1b1b4$var$AccordionValueProvider, $1bf158f521e1b1b4$var$useAccordionValueContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME);\nconst [$1bf158f521e1b1b4$var$AccordionCollapsibleProvider, $1bf158f521e1b1b4$var$useAccordionCollapsibleContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, {\n collapsible: false\n});\nconst $1bf158f521e1b1b4$var$AccordionImplSingle = /*#__PURE__*/ $3DjNB$react.forwardRef((props, forwardedRef)=>{\n const { value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange = ()=>{} , collapsible: collapsible = false , ...accordionSingleProps } = props;\n const [value, setValue] = $3DjNB$useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n return /*#__PURE__*/ $3DjNB$react.createElement($1bf158f521e1b1b4$var$AccordionValueProvider, {\n scope: props.__scopeAccordion,\n value: value ? [\n value\n ] : [],\n onItemOpen: setValue,\n onItemClose: $3DjNB$react.useCallback(()=>collapsible && setValue('')\n , [\n collapsible,\n setValue\n ])\n }, /*#__PURE__*/ $3DjNB$react.createElement($1bf158f521e1b1b4$var$AccordionCollapsibleProvider, {\n scope: props.__scopeAccordion,\n collapsible: collapsible\n }, /*#__PURE__*/ $3DjNB$react.createElement($1bf158f521e1b1b4$var$AccordionImpl, $3DjNB$babelruntimehelpersesmextends({}, accordionSingleProps, {\n ref: forwardedRef\n }))));\n});\n/* -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$AccordionImplMultiple = /*#__PURE__*/ $3DjNB$react.forwardRef((props, forwardedRef)=>{\n const { value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange = ()=>{} , ...accordionMultipleProps } = props;\n const [value1 = [], setValue] = $3DjNB$useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n const handleItemOpen = $3DjNB$react.useCallback((itemValue)=>setValue((prevValue = [])=>[\n ...prevValue,\n itemValue\n ]\n )\n , [\n setValue\n ]);\n const handleItemClose = $3DjNB$react.useCallback((itemValue)=>setValue((prevValue = [])=>prevValue.filter((value)=>value !== itemValue\n )\n )\n , [\n setValue\n ]);\n return /*#__PURE__*/ $3DjNB$react.createElement($1bf158f521e1b1b4$var$AccordionValueProvider, {\n scope: props.__scopeAccordion,\n value: value1,\n onItemOpen: handleItemOpen,\n onItemClose: handleItemClose\n }, /*#__PURE__*/ $3DjNB$react.createElement($1bf158f521e1b1b4$var$AccordionCollapsibleProvider, {\n scope: props.__scopeAccordion,\n collapsible: true\n }, /*#__PURE__*/ $3DjNB$react.createElement($1bf158f521e1b1b4$var$AccordionImpl, $3DjNB$babelruntimehelpersesmextends({}, accordionMultipleProps, {\n ref: forwardedRef\n }))));\n});\n/* -----------------------------------------------------------------------------------------------*/ const [$1bf158f521e1b1b4$var$AccordionImplProvider, $1bf158f521e1b1b4$var$useAccordionContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME);\nconst $1bf158f521e1b1b4$var$AccordionImpl = /*#__PURE__*/ $3DjNB$react.forwardRef((props, forwardedRef)=>{\n const { __scopeAccordion: __scopeAccordion , disabled: disabled , dir: dir , orientation: orientation = 'vertical' , ...accordionProps } = props;\n const accordionRef = $3DjNB$react.useRef(null);\n const composedRefs = $3DjNB$useComposedRefs(accordionRef, forwardedRef);\n const getItems = $1bf158f521e1b1b4$var$useCollection(__scopeAccordion);\n const direction = $3DjNB$useDirection(dir);\n const isDirectionLTR = direction === 'ltr';\n const handleKeyDown = $3DjNB$composeEventHandlers(props.onKeyDown, (event)=>{\n var _triggerCollection$cl;\n if (!$1bf158f521e1b1b4$var$ACCORDION_KEYS.includes(event.key)) return;\n const target = event.target;\n const triggerCollection = getItems().filter((item)=>{\n var _item$ref$current;\n return !((_item$ref$current = item.ref.current) !== null && _item$ref$current !== void 0 && _item$ref$current.disabled);\n });\n const triggerIndex = triggerCollection.findIndex((item)=>item.ref.current === target\n );\n const triggerCount = triggerCollection.length;\n if (triggerIndex === -1) return; // Prevents page scroll while user is navigating\n event.preventDefault();\n let nextIndex = triggerIndex;\n const homeIndex = 0;\n const endIndex = triggerCount - 1;\n const moveNext = ()=>{\n nextIndex = triggerIndex + 1;\n if (nextIndex > endIndex) nextIndex = homeIndex;\n };\n const movePrev = ()=>{\n nextIndex = triggerIndex - 1;\n if (nextIndex < homeIndex) nextIndex = endIndex;\n };\n switch(event.key){\n case 'Home':\n nextIndex = homeIndex;\n break;\n case 'End':\n nextIndex = endIndex;\n break;\n case 'ArrowRight':\n if (orientation === 'horizontal') {\n if (isDirectionLTR) moveNext();\n else movePrev();\n }\n break;\n case 'ArrowDown':\n if (orientation === 'vertical') moveNext();\n break;\n case 'ArrowLeft':\n if (orientation === 'horizontal') {\n if (isDirectionLTR) movePrev();\n else moveNext();\n }\n break;\n case 'ArrowUp':\n if (orientation === 'vertical') movePrev();\n break;\n }\n const clampedIndex = nextIndex % triggerCount;\n (_triggerCollection$cl = triggerCollection[clampedIndex].ref.current) === null || _triggerCollection$cl === void 0 || _triggerCollection$cl.focus();\n });\n return /*#__PURE__*/ $3DjNB$react.createElement($1bf158f521e1b1b4$var$AccordionImplProvider, {\n scope: __scopeAccordion,\n disabled: disabled,\n direction: dir,\n orientation: orientation\n }, /*#__PURE__*/ $3DjNB$react.createElement($1bf158f521e1b1b4$var$Collection.Slot, {\n scope: __scopeAccordion\n }, /*#__PURE__*/ $3DjNB$react.createElement($3DjNB$Primitive.div, $3DjNB$babelruntimehelpersesmextends({}, accordionProps, {\n \"data-orientation\": orientation,\n ref: composedRefs,\n onKeyDown: disabled ? undefined : handleKeyDown\n }))));\n});\n/* -------------------------------------------------------------------------------------------------\n * AccordionItem\n * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$ITEM_NAME = 'AccordionItem';\nconst [$1bf158f521e1b1b4$var$AccordionItemProvider, $1bf158f521e1b1b4$var$useAccordionItemContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ITEM_NAME);\n/**\n * `AccordionItem` contains all of the parts of a collapsible section inside of an `Accordion`.\n */ const $1bf158f521e1b1b4$export$d99097c13d4dac9f = /*#__PURE__*/ $3DjNB$react.forwardRef((props, forwardedRef)=>{\n const { __scopeAccordion: __scopeAccordion , value: value , ...accordionItemProps } = props;\n const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ITEM_NAME, __scopeAccordion);\n const valueContext = $1bf158f521e1b1b4$var$useAccordionValueContext($1bf158f521e1b1b4$var$ITEM_NAME, __scopeAccordion);\n const collapsibleScope = $1bf158f521e1b1b4$var$useCollapsibleScope(__scopeAccordion);\n const triggerId = $3DjNB$useId();\n const open1 = value && valueContext.value.includes(value) || false;\n const disabled = accordionContext.disabled || props.disabled;\n return /*#__PURE__*/ $3DjNB$react.createElement($1bf158f521e1b1b4$var$AccordionItemProvider, {\n scope: __scopeAccordion,\n open: open1,\n disabled: disabled,\n triggerId: triggerId\n }, /*#__PURE__*/ $3DjNB$react.createElement($3DjNB$Root, $3DjNB$babelruntimehelpersesmextends({\n \"data-orientation\": accordionContext.orientation,\n \"data-state\": $1bf158f521e1b1b4$var$getState(open1)\n }, collapsibleScope, accordionItemProps, {\n ref: forwardedRef,\n disabled: disabled,\n open: open1,\n onOpenChange: (open)=>{\n if (open) valueContext.onItemOpen(value);\n else valueContext.onItemClose(value);\n }\n })));\n});\n/*#__PURE__*/ Object.assign($1bf158f521e1b1b4$export$d99097c13d4dac9f, {\n displayName: $1bf158f521e1b1b4$var$ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AccordionHeader\n * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$HEADER_NAME = 'AccordionHeader';\n/**\n * `AccordionHeader` contains the content for the parts of an `AccordionItem` that will be visible\n * whether or not its content is collapsed.\n */ const $1bf158f521e1b1b4$export$5e3e5deaaf81ee41 = /*#__PURE__*/ $3DjNB$react.forwardRef((props, forwardedRef)=>{\n const { __scopeAccordion: __scopeAccordion , ...headerProps } = props;\n const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, __scopeAccordion);\n const itemContext = $1bf158f521e1b1b4$var$useAccordionItemContext($1bf158f521e1b1b4$var$HEADER_NAME, __scopeAccordion);\n return /*#__PURE__*/ $3DjNB$react.createElement($3DjNB$Primitive.h3, $3DjNB$babelruntimehelpersesmextends({\n \"data-orientation\": accordionContext.orientation,\n \"data-state\": $1bf158f521e1b1b4$var$getState(itemContext.open),\n \"data-disabled\": itemContext.disabled ? '' : undefined\n }, headerProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($1bf158f521e1b1b4$export$5e3e5deaaf81ee41, {\n displayName: $1bf158f521e1b1b4$var$HEADER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AccordionTrigger\n * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$TRIGGER_NAME = 'AccordionTrigger';\n/**\n * `AccordionTrigger` is the trigger that toggles the collapsed state of an `AccordionItem`. It\n * should always be nested inside of an `AccordionHeader`.\n */ const $1bf158f521e1b1b4$export$94e939b1f85bdd73 = /*#__PURE__*/ $3DjNB$react.forwardRef((props, forwardedRef)=>{\n const { __scopeAccordion: __scopeAccordion , ...triggerProps } = props;\n const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, __scopeAccordion);\n const itemContext = $1bf158f521e1b1b4$var$useAccordionItemContext($1bf158f521e1b1b4$var$TRIGGER_NAME, __scopeAccordion);\n const collapsibleContext = $1bf158f521e1b1b4$var$useAccordionCollapsibleContext($1bf158f521e1b1b4$var$TRIGGER_NAME, __scopeAccordion);\n const collapsibleScope = $1bf158f521e1b1b4$var$useCollapsibleScope(__scopeAccordion);\n return /*#__PURE__*/ $3DjNB$react.createElement($1bf158f521e1b1b4$var$Collection.ItemSlot, {\n scope: __scopeAccordion\n }, /*#__PURE__*/ $3DjNB$react.createElement($3DjNB$Trigger, $3DjNB$babelruntimehelpersesmextends({\n \"aria-disabled\": itemContext.open && !collapsibleContext.collapsible || undefined,\n \"data-orientation\": accordionContext.orientation,\n id: itemContext.triggerId\n }, collapsibleScope, triggerProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($1bf158f521e1b1b4$export$94e939b1f85bdd73, {\n displayName: $1bf158f521e1b1b4$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AccordionContent\n * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$CONTENT_NAME = 'AccordionContent';\n/**\n * `AccordionContent` contains the collapsible content for an `AccordionItem`.\n */ const $1bf158f521e1b1b4$export$985b9a77379b54a0 = /*#__PURE__*/ $3DjNB$react.forwardRef((props, forwardedRef)=>{\n const { __scopeAccordion: __scopeAccordion , ...contentProps } = props;\n const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, __scopeAccordion);\n const itemContext = $1bf158f521e1b1b4$var$useAccordionItemContext($1bf158f521e1b1b4$var$CONTENT_NAME, __scopeAccordion);\n const collapsibleScope = $1bf158f521e1b1b4$var$useCollapsibleScope(__scopeAccordion);\n return /*#__PURE__*/ $3DjNB$react.createElement($3DjNB$Content, $3DjNB$babelruntimehelpersesmextends({\n role: \"region\",\n \"aria-labelledby\": itemContext.triggerId,\n \"data-orientation\": accordionContext.orientation\n }, collapsibleScope, contentProps, {\n ref: forwardedRef,\n style: {\n ['--radix-accordion-content-height']: 'var(--radix-collapsible-content-height)',\n ['--radix-accordion-content-width']: 'var(--radix-collapsible-content-width)',\n ...props.style\n }\n }));\n});\n/*#__PURE__*/ Object.assign($1bf158f521e1b1b4$export$985b9a77379b54a0, {\n displayName: $1bf158f521e1b1b4$var$CONTENT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $1bf158f521e1b1b4$var$getState(open) {\n return open ? 'open' : 'closed';\n}\nconst $1bf158f521e1b1b4$export$be92b6f5f03c0fe9 = $1bf158f521e1b1b4$export$a766cd26d0d69044;\nconst $1bf158f521e1b1b4$export$6d08773d2e66f8f2 = $1bf158f521e1b1b4$export$d99097c13d4dac9f;\nconst $1bf158f521e1b1b4$export$8b251419efc915eb = $1bf158f521e1b1b4$export$5e3e5deaaf81ee41;\nconst $1bf158f521e1b1b4$export$41fb9f06171c75f4 = $1bf158f521e1b1b4$export$94e939b1f85bdd73;\nconst $1bf158f521e1b1b4$export$7c6e2c02157bb7d2 = $1bf158f521e1b1b4$export$985b9a77379b54a0;\n\n\n\n\nexport {$1bf158f521e1b1b4$export$9748edc328a73be1 as createAccordionScope, $1bf158f521e1b1b4$export$a766cd26d0d69044 as Accordion, $1bf158f521e1b1b4$export$d99097c13d4dac9f as AccordionItem, $1bf158f521e1b1b4$export$5e3e5deaaf81ee41 as AccordionHeader, $1bf158f521e1b1b4$export$94e939b1f85bdd73 as AccordionTrigger, $1bf158f521e1b1b4$export$985b9a77379b54a0 as AccordionContent, $1bf158f521e1b1b4$export$be92b6f5f03c0fe9 as Root, $1bf158f521e1b1b4$export$6d08773d2e66f8f2 as Item, $1bf158f521e1b1b4$export$8b251419efc915eb as Header, $1bf158f521e1b1b4$export$41fb9f06171c75f4 as Trigger, $1bf158f521e1b1b4$export$7c6e2c02157bb7d2 as Content};\n","import $4k4D0$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {createElement as $4k4D0$createElement, forwardRef as $4k4D0$forwardRef, useRef as $4k4D0$useRef, useEffect as $4k4D0$useEffect} from \"react\";\nimport {createContextScope as $4k4D0$createContextScope} from \"@radix-ui/react-context\";\nimport {useComposedRefs as $4k4D0$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createDialogScope as $4k4D0$createDialogScope, Root as $4k4D0$Root, Trigger as $4k4D0$Trigger, Portal as $4k4D0$Portal, Overlay as $4k4D0$Overlay, WarningProvider as $4k4D0$WarningProvider, Content as $4k4D0$Content, Title as $4k4D0$Title, Description as $4k4D0$Description, Close as $4k4D0$Close} from \"@radix-ui/react-dialog\";\nimport {composeEventHandlers as $4k4D0$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {Slottable as $4k4D0$Slottable} from \"@radix-ui/react-slot\";\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * AlertDialog\n * -----------------------------------------------------------------------------------------------*/ const $905f4ae918aab1aa$var$ROOT_NAME = 'AlertDialog';\nconst [$905f4ae918aab1aa$var$createAlertDialogContext, $905f4ae918aab1aa$export$b8891880751c2c5b] = $4k4D0$createContextScope($905f4ae918aab1aa$var$ROOT_NAME, [\n $4k4D0$createDialogScope\n]);\nconst $905f4ae918aab1aa$var$useDialogScope = $4k4D0$createDialogScope();\nconst $905f4ae918aab1aa$export$de466dd8317b0b75 = (props)=>{\n const { __scopeAlertDialog: __scopeAlertDialog , ...alertDialogProps } = props;\n const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n return /*#__PURE__*/ $4k4D0$createElement($4k4D0$Root, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, alertDialogProps, {\n modal: true\n }));\n};\n/*#__PURE__*/ Object.assign($905f4ae918aab1aa$export$de466dd8317b0b75, {\n displayName: $905f4ae918aab1aa$var$ROOT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogTrigger\n * -----------------------------------------------------------------------------------------------*/ const $905f4ae918aab1aa$var$TRIGGER_NAME = 'AlertDialogTrigger';\nconst $905f4ae918aab1aa$export$6edd7a623ef0f40b = /*#__PURE__*/ $4k4D0$forwardRef((props, forwardedRef)=>{\n const { __scopeAlertDialog: __scopeAlertDialog , ...triggerProps } = props;\n const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n return /*#__PURE__*/ $4k4D0$createElement($4k4D0$Trigger, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, triggerProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($905f4ae918aab1aa$export$6edd7a623ef0f40b, {\n displayName: $905f4ae918aab1aa$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogPortal\n * -----------------------------------------------------------------------------------------------*/ const $905f4ae918aab1aa$var$PORTAL_NAME = 'AlertDialogPortal';\nconst $905f4ae918aab1aa$export$660f2bfdb986706c = (props)=>{\n const { __scopeAlertDialog: __scopeAlertDialog , ...portalProps } = props;\n const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n return /*#__PURE__*/ $4k4D0$createElement($4k4D0$Portal, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, portalProps));\n};\n/*#__PURE__*/ Object.assign($905f4ae918aab1aa$export$660f2bfdb986706c, {\n displayName: $905f4ae918aab1aa$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogOverlay\n * -----------------------------------------------------------------------------------------------*/ const $905f4ae918aab1aa$var$OVERLAY_NAME = 'AlertDialogOverlay';\nconst $905f4ae918aab1aa$export$a707a4895ce23256 = /*#__PURE__*/ $4k4D0$forwardRef((props, forwardedRef)=>{\n const { __scopeAlertDialog: __scopeAlertDialog , ...overlayProps } = props;\n const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n return /*#__PURE__*/ $4k4D0$createElement($4k4D0$Overlay, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, overlayProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($905f4ae918aab1aa$export$a707a4895ce23256, {\n displayName: $905f4ae918aab1aa$var$OVERLAY_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogContent\n * -----------------------------------------------------------------------------------------------*/ const $905f4ae918aab1aa$var$CONTENT_NAME = 'AlertDialogContent';\nconst [$905f4ae918aab1aa$var$AlertDialogContentProvider, $905f4ae918aab1aa$var$useAlertDialogContentContext] = $905f4ae918aab1aa$var$createAlertDialogContext($905f4ae918aab1aa$var$CONTENT_NAME);\nconst $905f4ae918aab1aa$export$94e6af45f0af4efd = /*#__PURE__*/ $4k4D0$forwardRef((props, forwardedRef)=>{\n const { __scopeAlertDialog: __scopeAlertDialog , children: children , ...contentProps } = props;\n const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n const contentRef = $4k4D0$useRef(null);\n const composedRefs = $4k4D0$useComposedRefs(forwardedRef, contentRef);\n const cancelRef = $4k4D0$useRef(null);\n return /*#__PURE__*/ $4k4D0$createElement($4k4D0$WarningProvider, {\n contentName: $905f4ae918aab1aa$var$CONTENT_NAME,\n titleName: $905f4ae918aab1aa$var$TITLE_NAME,\n docsSlug: \"alert-dialog\"\n }, /*#__PURE__*/ $4k4D0$createElement($905f4ae918aab1aa$var$AlertDialogContentProvider, {\n scope: __scopeAlertDialog,\n cancelRef: cancelRef\n }, /*#__PURE__*/ $4k4D0$createElement($4k4D0$Content, $4k4D0$babelruntimehelpersesmextends({\n role: \"alertdialog\"\n }, dialogScope, contentProps, {\n ref: composedRefs,\n onOpenAutoFocus: $4k4D0$composeEventHandlers(contentProps.onOpenAutoFocus, (event)=>{\n var _cancelRef$current;\n event.preventDefault();\n (_cancelRef$current = cancelRef.current) === null || _cancelRef$current === void 0 || _cancelRef$current.focus({\n preventScroll: true\n });\n }),\n onPointerDownOutside: (event)=>event.preventDefault()\n ,\n onInteractOutside: (event)=>event.preventDefault()\n }), /*#__PURE__*/ $4k4D0$createElement($4k4D0$Slottable, null, children), false)));\n});\n/*#__PURE__*/ Object.assign($905f4ae918aab1aa$export$94e6af45f0af4efd, {\n displayName: $905f4ae918aab1aa$var$CONTENT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogTitle\n * -----------------------------------------------------------------------------------------------*/ const $905f4ae918aab1aa$var$TITLE_NAME = 'AlertDialogTitle';\nconst $905f4ae918aab1aa$export$225e0da62d314b7 = /*#__PURE__*/ $4k4D0$forwardRef((props, forwardedRef)=>{\n const { __scopeAlertDialog: __scopeAlertDialog , ...titleProps } = props;\n const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n return /*#__PURE__*/ $4k4D0$createElement($4k4D0$Title, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, titleProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($905f4ae918aab1aa$export$225e0da62d314b7, {\n displayName: $905f4ae918aab1aa$var$TITLE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogDescription\n * -----------------------------------------------------------------------------------------------*/ const $905f4ae918aab1aa$var$DESCRIPTION_NAME = 'AlertDialogDescription';\nconst $905f4ae918aab1aa$export$a23b55cde55ad9a5 = /*#__PURE__*/ $4k4D0$forwardRef((props, forwardedRef)=>{\n const { __scopeAlertDialog: __scopeAlertDialog , ...descriptionProps } = props;\n const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n return /*#__PURE__*/ $4k4D0$createElement($4k4D0$Description, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, descriptionProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($905f4ae918aab1aa$export$a23b55cde55ad9a5, {\n displayName: $905f4ae918aab1aa$var$DESCRIPTION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogAction\n * -----------------------------------------------------------------------------------------------*/ const $905f4ae918aab1aa$var$ACTION_NAME = 'AlertDialogAction';\nconst $905f4ae918aab1aa$export$b454f818c58ee85d = /*#__PURE__*/ $4k4D0$forwardRef((props, forwardedRef)=>{\n const { __scopeAlertDialog: __scopeAlertDialog , ...actionProps } = props;\n const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n return /*#__PURE__*/ $4k4D0$createElement($4k4D0$Close, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, actionProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($905f4ae918aab1aa$export$b454f818c58ee85d, {\n displayName: $905f4ae918aab1aa$var$ACTION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AlertDialogCancel\n * -----------------------------------------------------------------------------------------------*/ const $905f4ae918aab1aa$var$CANCEL_NAME = 'AlertDialogCancel';\nconst $905f4ae918aab1aa$export$2f67a923571aaea0 = /*#__PURE__*/ $4k4D0$forwardRef((props, forwardedRef)=>{\n const { __scopeAlertDialog: __scopeAlertDialog , ...cancelProps } = props;\n const { cancelRef: cancelRef } = $905f4ae918aab1aa$var$useAlertDialogContentContext($905f4ae918aab1aa$var$CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);\n const ref = $4k4D0$useComposedRefs(forwardedRef, cancelRef);\n return /*#__PURE__*/ $4k4D0$createElement($4k4D0$Close, $4k4D0$babelruntimehelpersesmextends({}, dialogScope, cancelProps, {\n ref: ref\n }));\n});\n/*#__PURE__*/ Object.assign($905f4ae918aab1aa$export$2f67a923571aaea0, {\n displayName: $905f4ae918aab1aa$var$CANCEL_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ const $905f4ae918aab1aa$var$DescriptionWarning = ({ contentRef: contentRef })=>{\n const MESSAGE = `\\`${$905f4ae918aab1aa$var$CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${$905f4ae918aab1aa$var$CONTENT_NAME}\\` by passing a \\`${$905f4ae918aab1aa$var$DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${$905f4ae918aab1aa$var$CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n $4k4D0$useEffect(()=>{\n var _contentRef$current;\n const hasDescription = document.getElementById((_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.getAttribute('aria-describedby'));\n if (!hasDescription) console.warn(MESSAGE);\n }, [\n MESSAGE,\n contentRef\n ]);\n return null;\n};\nconst $905f4ae918aab1aa$export$be92b6f5f03c0fe9 = $905f4ae918aab1aa$export$de466dd8317b0b75;\nconst $905f4ae918aab1aa$export$41fb9f06171c75f4 = $905f4ae918aab1aa$export$6edd7a623ef0f40b;\nconst $905f4ae918aab1aa$export$602eac185826482c = $905f4ae918aab1aa$export$660f2bfdb986706c;\nconst $905f4ae918aab1aa$export$c6fdb837b070b4ff = $905f4ae918aab1aa$export$a707a4895ce23256;\nconst $905f4ae918aab1aa$export$7c6e2c02157bb7d2 = $905f4ae918aab1aa$export$94e6af45f0af4efd;\nconst $905f4ae918aab1aa$export$e19cd5f9376f8cee = $905f4ae918aab1aa$export$b454f818c58ee85d;\nconst $905f4ae918aab1aa$export$848c9b7ead0df967 = $905f4ae918aab1aa$export$2f67a923571aaea0;\nconst $905f4ae918aab1aa$export$f99233281efd08a0 = $905f4ae918aab1aa$export$225e0da62d314b7;\nconst $905f4ae918aab1aa$export$393edc798c47379d = $905f4ae918aab1aa$export$a23b55cde55ad9a5;\n\n\n\n\nexport {$905f4ae918aab1aa$export$b8891880751c2c5b as createAlertDialogScope, $905f4ae918aab1aa$export$de466dd8317b0b75 as AlertDialog, $905f4ae918aab1aa$export$6edd7a623ef0f40b as AlertDialogTrigger, $905f4ae918aab1aa$export$660f2bfdb986706c as AlertDialogPortal, $905f4ae918aab1aa$export$a707a4895ce23256 as AlertDialogOverlay, $905f4ae918aab1aa$export$94e6af45f0af4efd as AlertDialogContent, $905f4ae918aab1aa$export$b454f818c58ee85d as AlertDialogAction, $905f4ae918aab1aa$export$2f67a923571aaea0 as AlertDialogCancel, $905f4ae918aab1aa$export$225e0da62d314b7 as AlertDialogTitle, $905f4ae918aab1aa$export$a23b55cde55ad9a5 as AlertDialogDescription, $905f4ae918aab1aa$export$be92b6f5f03c0fe9 as Root, $905f4ae918aab1aa$export$41fb9f06171c75f4 as Trigger, $905f4ae918aab1aa$export$602eac185826482c as Portal, $905f4ae918aab1aa$export$c6fdb837b070b4ff as Overlay, $905f4ae918aab1aa$export$7c6e2c02157bb7d2 as Content, $905f4ae918aab1aa$export$e19cd5f9376f8cee as Action, $905f4ae918aab1aa$export$848c9b7ead0df967 as Cancel, $905f4ae918aab1aa$export$f99233281efd08a0 as Title, $905f4ae918aab1aa$export$393edc798c47379d as Description};\n","import $8D4cD$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $8D4cD$forwardRef, createElement as $8D4cD$createElement} from \"react\";\nimport {Primitive as $8D4cD$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * AspectRatio\n * -----------------------------------------------------------------------------------------------*/ const $c1b5f66aac50e106$var$NAME = 'AspectRatio';\nconst $c1b5f66aac50e106$export$e840e8869344ca38 = /*#__PURE__*/ $8D4cD$forwardRef((props, forwardedRef)=>{\n const { ratio: ratio = 1 , style: style , ...aspectRatioProps } = props;\n return /*#__PURE__*/ $8D4cD$createElement(\"div\", {\n style: {\n // ensures inner element is contained\n position: 'relative',\n // ensures padding bottom trick maths works\n width: '100%',\n paddingBottom: `${100 / ratio}%`\n },\n \"data-radix-aspect-ratio-wrapper\": \"\"\n }, /*#__PURE__*/ $8D4cD$createElement($8D4cD$Primitive.div, $8D4cD$babelruntimehelpersesmextends({}, aspectRatioProps, {\n ref: forwardedRef,\n style: {\n ...style,\n // ensures children expand in ratio\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n }\n })));\n});\n/*#__PURE__*/ Object.assign($c1b5f66aac50e106$export$e840e8869344ca38, {\n displayName: $c1b5f66aac50e106$var$NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $c1b5f66aac50e106$export$be92b6f5f03c0fe9 = $c1b5f66aac50e106$export$e840e8869344ca38;\n\n\n\n\nexport {$c1b5f66aac50e106$export$e840e8869344ca38 as AspectRatio, $c1b5f66aac50e106$export$be92b6f5f03c0fe9 as Root};\n","import $8NyvN$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $8NyvN$forwardRef, useState as $8NyvN$useState, createElement as $8NyvN$createElement, useEffect as $8NyvN$useEffect} from \"react\";\nimport {createContextScope as $8NyvN$createContextScope} from \"@radix-ui/react-context\";\nimport {useCallbackRef as $8NyvN$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\nimport {useLayoutEffect as $8NyvN$useLayoutEffect} from \"@radix-ui/react-use-layout-effect\";\nimport {Primitive as $8NyvN$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Avatar\n * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$AVATAR_NAME = 'Avatar';\nconst [$cddcb0b647441e34$var$createAvatarContext, $cddcb0b647441e34$export$90370d16b488820f] = $8NyvN$createContextScope($cddcb0b647441e34$var$AVATAR_NAME);\nconst [$cddcb0b647441e34$var$AvatarProvider, $cddcb0b647441e34$var$useAvatarContext] = $cddcb0b647441e34$var$createAvatarContext($cddcb0b647441e34$var$AVATAR_NAME);\nconst $cddcb0b647441e34$export$e2255cf6045e8d47 = /*#__PURE__*/ $8NyvN$forwardRef((props, forwardedRef)=>{\n const { __scopeAvatar: __scopeAvatar , ...avatarProps } = props;\n const [imageLoadingStatus, setImageLoadingStatus] = $8NyvN$useState('idle');\n return /*#__PURE__*/ $8NyvN$createElement($cddcb0b647441e34$var$AvatarProvider, {\n scope: __scopeAvatar,\n imageLoadingStatus: imageLoadingStatus,\n onImageLoadingStatusChange: setImageLoadingStatus\n }, /*#__PURE__*/ $8NyvN$createElement($8NyvN$Primitive.span, $8NyvN$babelruntimehelpersesmextends({}, avatarProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($cddcb0b647441e34$export$e2255cf6045e8d47, {\n displayName: $cddcb0b647441e34$var$AVATAR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AvatarImage\n * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$IMAGE_NAME = 'AvatarImage';\nconst $cddcb0b647441e34$export$2cd8ae1985206fe8 = /*#__PURE__*/ $8NyvN$forwardRef((props, forwardedRef)=>{\n const { __scopeAvatar: __scopeAvatar , src: src , onLoadingStatusChange: onLoadingStatusChange = ()=>{} , ...imageProps } = props;\n const context = $cddcb0b647441e34$var$useAvatarContext($cddcb0b647441e34$var$IMAGE_NAME, __scopeAvatar);\n const imageLoadingStatus = $cddcb0b647441e34$var$useImageLoadingStatus(src);\n const handleLoadingStatusChange = $8NyvN$useCallbackRef((status)=>{\n onLoadingStatusChange(status);\n context.onImageLoadingStatusChange(status);\n });\n $8NyvN$useLayoutEffect(()=>{\n if (imageLoadingStatus !== 'idle') handleLoadingStatusChange(imageLoadingStatus);\n }, [\n imageLoadingStatus,\n handleLoadingStatusChange\n ]);\n return imageLoadingStatus === 'loaded' ? /*#__PURE__*/ $8NyvN$createElement($8NyvN$Primitive.img, $8NyvN$babelruntimehelpersesmextends({}, imageProps, {\n ref: forwardedRef,\n src: src\n })) : null;\n});\n/*#__PURE__*/ Object.assign($cddcb0b647441e34$export$2cd8ae1985206fe8, {\n displayName: $cddcb0b647441e34$var$IMAGE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * AvatarFallback\n * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$FALLBACK_NAME = 'AvatarFallback';\nconst $cddcb0b647441e34$export$69fffb6a9571fbfe = /*#__PURE__*/ $8NyvN$forwardRef((props, forwardedRef)=>{\n const { __scopeAvatar: __scopeAvatar , delayMs: delayMs , ...fallbackProps } = props;\n const context = $cddcb0b647441e34$var$useAvatarContext($cddcb0b647441e34$var$FALLBACK_NAME, __scopeAvatar);\n const [canRender, setCanRender] = $8NyvN$useState(delayMs === undefined);\n $8NyvN$useEffect(()=>{\n if (delayMs !== undefined) {\n const timerId = window.setTimeout(()=>setCanRender(true)\n , delayMs);\n return ()=>window.clearTimeout(timerId)\n ;\n }\n }, [\n delayMs\n ]);\n return canRender && context.imageLoadingStatus !== 'loaded' ? /*#__PURE__*/ $8NyvN$createElement($8NyvN$Primitive.span, $8NyvN$babelruntimehelpersesmextends({}, fallbackProps, {\n ref: forwardedRef\n })) : null;\n});\n/*#__PURE__*/ Object.assign($cddcb0b647441e34$export$69fffb6a9571fbfe, {\n displayName: $cddcb0b647441e34$var$FALLBACK_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $cddcb0b647441e34$var$useImageLoadingStatus(src) {\n const [loadingStatus, setLoadingStatus] = $8NyvN$useState('idle');\n $8NyvN$useLayoutEffect(()=>{\n if (!src) {\n setLoadingStatus('error');\n return;\n }\n let isMounted = true;\n const image = new window.Image();\n const updateStatus = (status)=>()=>{\n if (!isMounted) return;\n setLoadingStatus(status);\n }\n ;\n setLoadingStatus('loading');\n image.onload = updateStatus('loaded');\n image.onerror = updateStatus('error');\n image.src = src;\n return ()=>{\n isMounted = false;\n };\n }, [\n src\n ]);\n return loadingStatus;\n}\nconst $cddcb0b647441e34$export$be92b6f5f03c0fe9 = $cddcb0b647441e34$export$e2255cf6045e8d47;\nconst $cddcb0b647441e34$export$3e431a229df88919 = $cddcb0b647441e34$export$2cd8ae1985206fe8;\nconst $cddcb0b647441e34$export$fb8d7f40caaeea67 = $cddcb0b647441e34$export$69fffb6a9571fbfe;\n\n\n\n\nexport {$cddcb0b647441e34$export$90370d16b488820f as createAvatarScope, $cddcb0b647441e34$export$e2255cf6045e8d47 as Avatar, $cddcb0b647441e34$export$2cd8ae1985206fe8 as AvatarImage, $cddcb0b647441e34$export$69fffb6a9571fbfe as AvatarFallback, $cddcb0b647441e34$export$be92b6f5f03c0fe9 as Root, $cddcb0b647441e34$export$3e431a229df88919 as Image, $cddcb0b647441e34$export$fb8d7f40caaeea67 as Fallback};\n","import $6vYhU$react from \"react\";\nimport {createContextScope as $6vYhU$createContextScope} from \"@radix-ui/react-context\";\nimport {useComposedRefs as $6vYhU$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {Slot as $6vYhU$Slot} from \"@radix-ui/react-slot\";\n\n\n\n\n\n// We have resorted to returning slots directly rather than exposing primitives that can then\n// be slotted like `<CollectionItem as={Slot}>…</CollectionItem>`.\n// This is because we encountered issues with generic types that cannot be statically analysed\n// due to creating them dynamically via createCollection.\nfunction $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {\n /* -----------------------------------------------------------------------------------------------\n * CollectionProvider\n * ---------------------------------------------------------------------------------------------*/ const PROVIDER_NAME = name + 'CollectionProvider';\n const [createCollectionContext, createCollectionScope] = $6vYhU$createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, {\n collectionRef: {\n current: null\n },\n itemMap: new Map()\n });\n const CollectionProvider = (props)=>{\n const { scope: scope , children: children } = props;\n const ref = $6vYhU$react.useRef(null);\n const itemMap = $6vYhU$react.useRef(new Map()).current;\n return /*#__PURE__*/ $6vYhU$react.createElement(CollectionProviderImpl, {\n scope: scope,\n itemMap: itemMap,\n collectionRef: ref\n }, children);\n };\n /*#__PURE__*/ Object.assign(CollectionProvider, {\n displayName: PROVIDER_NAME\n });\n /* -----------------------------------------------------------------------------------------------\n * CollectionSlot\n * ---------------------------------------------------------------------------------------------*/ const COLLECTION_SLOT_NAME = name + 'CollectionSlot';\n const CollectionSlot = /*#__PURE__*/ $6vYhU$react.forwardRef((props, forwardedRef)=>{\n const { scope: scope , children: children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = $6vYhU$useComposedRefs(forwardedRef, context.collectionRef);\n return /*#__PURE__*/ $6vYhU$react.createElement($6vYhU$Slot, {\n ref: composedRefs\n }, children);\n });\n /*#__PURE__*/ Object.assign(CollectionSlot, {\n displayName: COLLECTION_SLOT_NAME\n });\n /* -----------------------------------------------------------------------------------------------\n * CollectionItem\n * ---------------------------------------------------------------------------------------------*/ const ITEM_SLOT_NAME = name + 'CollectionItemSlot';\n const ITEM_DATA_ATTR = 'data-radix-collection-item';\n const CollectionItemSlot = /*#__PURE__*/ $6vYhU$react.forwardRef((props, forwardedRef)=>{\n const { scope: scope , children: children , ...itemData } = props;\n const ref = $6vYhU$react.useRef(null);\n const composedRefs = $6vYhU$useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n $6vYhU$react.useEffect(()=>{\n context.itemMap.set(ref, {\n ref: ref,\n ...itemData\n });\n return ()=>void context.itemMap.delete(ref)\n ;\n });\n return /*#__PURE__*/ $6vYhU$react.createElement($6vYhU$Slot, {\n [ITEM_DATA_ATTR]: '',\n ref: composedRefs\n }, children);\n });\n /*#__PURE__*/ Object.assign(CollectionItemSlot, {\n displayName: ITEM_SLOT_NAME\n });\n /* -----------------------------------------------------------------------------------------------\n * useCollection\n * ---------------------------------------------------------------------------------------------*/ function useCollection(scope) {\n const context = useCollectionContext(name + 'CollectionConsumer', scope);\n const getItems = $6vYhU$react.useCallback(()=>{\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort((a, b)=>orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [\n context.collectionRef,\n context.itemMap\n ]);\n return getItems;\n }\n return [\n {\n Provider: CollectionProvider,\n Slot: CollectionSlot,\n ItemSlot: CollectionItemSlot\n },\n useCollection,\n createCollectionScope\n ];\n}\n\n\n\n\nexport {$e02a7d9cb1dc128c$export$c74125a8e3af6bb2 as createCollection};\n","\"use client\";\n\n// packages/react/collection/src/Collection.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\nexport {\n createCollection\n};\n","import {useCallback as $3vqmr$useCallback} from \"react\";\n\n\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */ function $6ed0406888f73fc4$var$setRef(ref, value) {\n if (typeof ref === 'function') ref(value);\n else if (ref !== null && ref !== undefined) ref.current = value;\n}\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {\n return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef(ref, node)\n )\n ;\n}\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return $3vqmr$useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);\n}\n\n\n\n\nexport {$6ed0406888f73fc4$export$43e446d32b3d21af as composeRefs, $6ed0406888f73fc4$export$c7b2cbe3552a0d05 as useComposedRefs};\n","// packages/react/compose-refs/src/composeRefs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => refs.forEach((ref) => setRef(ref, node));\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n","import {createContext as $3bkAK$createContext, useMemo as $3bkAK$useMemo, createElement as $3bkAK$createElement, useContext as $3bkAK$useContext} from \"react\";\n\n\nfunction $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {\n const Context = /*#__PURE__*/ $3bkAK$createContext(defaultContext);\n function Provider(props) {\n const { children: children , ...context } = props; // Only re-memoize when prop values change\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const value = $3bkAK$useMemo(()=>context\n , Object.values(context));\n return /*#__PURE__*/ $3bkAK$createElement(Context.Provider, {\n value: value\n }, children);\n }\n function useContext(consumerName) {\n const context = $3bkAK$useContext(Context);\n if (context) return context;\n if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context.\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + 'Provider';\n return [\n Provider,\n useContext\n ];\n}\n/* -------------------------------------------------------------------------------------------------\n * createContextScope\n * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n /* -----------------------------------------------------------------------------------------------\n * createContext\n * ---------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {\n const BaseContext = /*#__PURE__*/ $3bkAK$createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [\n ...defaultContexts,\n defaultContext\n ];\n function Provider(props) {\n const { scope: scope , children: children , ...context } = props;\n const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext; // Only re-memoize when prop values change\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const value = $3bkAK$useMemo(()=>context\n , Object.values(context));\n return /*#__PURE__*/ $3bkAK$createElement(Context.Provider, {\n value: value\n }, children);\n }\n function useContext(consumerName, scope) {\n const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext;\n const context = $3bkAK$useContext(Context);\n if (context) return context;\n if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context.\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + 'Provider';\n return [\n Provider,\n useContext\n ];\n }\n /* -----------------------------------------------------------------------------------------------\n * createScope\n * ---------------------------------------------------------------------------------------------*/ const createScope = ()=>{\n const scopeContexts = defaultContexts.map((defaultContext)=>{\n return /*#__PURE__*/ $3bkAK$createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts;\n return $3bkAK$useMemo(()=>({\n [`__scope${scopeName}`]: {\n ...scope,\n [scopeName]: contexts\n }\n })\n , [\n scope,\n contexts\n ]);\n };\n };\n createScope.scopeName = scopeName;\n return [\n $c512c27ab02ef895$export$fd42f52fd3ae1109,\n $c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps)\n ];\n}\n/* -------------------------------------------------------------------------------------------------\n * composeContextScopes\n * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$var$composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope1 = ()=>{\n const scopeHooks = scopes.map((createScope)=>({\n useScope: createScope(),\n scopeName: createScope.scopeName\n })\n );\n return function useComposedScopes(overrideScopes) {\n const nextScopes1 = scopeHooks.reduce((nextScopes, { useScope: useScope , scopeName: scopeName })=>{\n // We are calling a hook inside a callback which React warns against to avoid inconsistent\n // renders, however, scoping doesn't have render side effects so we ignore the rule.\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return {\n ...nextScopes,\n ...currentScope\n };\n }, {});\n return $3bkAK$useMemo(()=>({\n [`__scope${baseScope.scopeName}`]: nextScopes1\n })\n , [\n nextScopes1\n ]);\n };\n };\n createScope1.scopeName = baseScope.scopeName;\n return createScope1;\n}\n\n\n\n\nexport {$c512c27ab02ef895$export$fd42f52fd3ae1109 as createContext, $c512c27ab02ef895$export$50c7b4e9d9f19c1 as createContextScope};\n","// packages/react/context/src/createContext.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n function Provider(props) {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n function Provider(props) {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName][index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName][index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n","import $67UHm$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useRef as $67UHm$useRef, createElement as $67UHm$createElement, useCallback as $67UHm$useCallback, forwardRef as $67UHm$forwardRef, Children as $67UHm$Children, useEffect as $67UHm$useEffect, Fragment as $67UHm$Fragment} from \"react\";\nimport {composeEventHandlers as $67UHm$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useComposedRefs as $67UHm$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $67UHm$createContextScope, createContext as $67UHm$createContext} from \"@radix-ui/react-context\";\nimport {useId as $67UHm$useId} from \"@radix-ui/react-id\";\nimport {useControllableState as $67UHm$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {DismissableLayer as $67UHm$DismissableLayer} from \"@radix-ui/react-dismissable-layer\";\nimport {FocusScope as $67UHm$FocusScope} from \"@radix-ui/react-focus-scope\";\nimport {Portal as $67UHm$Portal} from \"@radix-ui/react-portal\";\nimport {Presence as $67UHm$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $67UHm$Primitive} from \"@radix-ui/react-primitive\";\nimport {useFocusGuards as $67UHm$useFocusGuards} from \"@radix-ui/react-focus-guards\";\nimport {RemoveScroll as $67UHm$RemoveScroll} from \"react-remove-scroll\";\nimport {hideOthers as $67UHm$hideOthers} from \"aria-hidden\";\nimport {Slot as $67UHm$Slot} from \"@radix-ui/react-slot\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Dialog\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DIALOG_NAME = 'Dialog';\nconst [$5d3850c4d0b4e6c7$var$createDialogContext, $5d3850c4d0b4e6c7$export$cc702773b8ea3e41] = $67UHm$createContextScope($5d3850c4d0b4e6c7$var$DIALOG_NAME);\nconst [$5d3850c4d0b4e6c7$var$DialogProvider, $5d3850c4d0b4e6c7$var$useDialogContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$DIALOG_NAME);\nconst $5d3850c4d0b4e6c7$export$3ddf2d174ce01153 = (props)=>{\n const { __scopeDialog: __scopeDialog , children: children , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , modal: modal = true } = props;\n const triggerRef = $67UHm$useRef(null);\n const contentRef = $67UHm$useRef(null);\n const [open = false, setOpen] = $67UHm$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogProvider, {\n scope: __scopeDialog,\n triggerRef: triggerRef,\n contentRef: contentRef,\n contentId: $67UHm$useId(),\n titleId: $67UHm$useId(),\n descriptionId: $67UHm$useId(),\n open: open,\n onOpenChange: setOpen,\n onOpenToggle: $67UHm$useCallback(()=>setOpen((prevOpen)=>!prevOpen\n )\n , [\n setOpen\n ]),\n modal: modal\n }, children);\n};\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$3ddf2d174ce01153, {\n displayName: $5d3850c4d0b4e6c7$var$DIALOG_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogTrigger\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$TRIGGER_NAME = 'DialogTrigger';\nconst $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...triggerProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = $67UHm$useComposedRefs(forwardedRef, context.triggerRef);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.button, $67UHm$babelruntimehelpersesmextends({\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n }, triggerProps, {\n ref: composedTriggerRef,\n onClick: $67UHm$composeEventHandlers(props.onClick, context.onOpenToggle)\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$2e1e1122cf0cba88, {\n displayName: $5d3850c4d0b4e6c7$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogPortal\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$PORTAL_NAME = 'DialogPortal';\nconst [$5d3850c4d0b4e6c7$var$PortalProvider, $5d3850c4d0b4e6c7$var$usePortalContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$PORTAL_NAME, {\n forceMount: undefined\n});\nconst $5d3850c4d0b4e6c7$export$dad7c95542bacce0 = (props)=>{\n const { __scopeDialog: __scopeDialog , forceMount: forceMount , children: children , container: container } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$PORTAL_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$PortalProvider, {\n scope: __scopeDialog,\n forceMount: forceMount\n }, $67UHm$Children.map(children, (child)=>/*#__PURE__*/ $67UHm$createElement($67UHm$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $67UHm$createElement($67UHm$Portal, {\n asChild: true,\n container: container\n }, child))\n ));\n};\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$dad7c95542bacce0, {\n displayName: $5d3850c4d0b4e6c7$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogOverlay\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$OVERLAY_NAME = 'DialogOverlay';\nconst $5d3850c4d0b4e6c7$export$bd1d06c79be19e17 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const portalContext = $5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, props.__scopeDialog);\n const { forceMount: forceMount = portalContext.forceMount , ...overlayProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /*#__PURE__*/ $67UHm$createElement($67UHm$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogOverlayImpl, $67UHm$babelruntimehelpersesmextends({}, overlayProps, {\n ref: forwardedRef\n }))) : null;\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$bd1d06c79be19e17, {\n displayName: $5d3850c4d0b4e6c7$var$OVERLAY_NAME\n});\nconst $5d3850c4d0b4e6c7$var$DialogOverlayImpl = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...overlayProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, __scopeDialog);\n return(/*#__PURE__*/ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n $67UHm$createElement($67UHm$RemoveScroll, {\n as: $67UHm$Slot,\n allowPinchZoom: true,\n shards: [\n context.contentRef\n ]\n }, /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.div, $67UHm$babelruntimehelpersesmextends({\n \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n }, overlayProps, {\n ref: forwardedRef // We re-enable pointer-events prevented by `Dialog.Content` to allow scrolling the overlay.\n ,\n style: {\n pointerEvents: 'auto',\n ...overlayProps.style\n }\n }))));\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogContent\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$CONTENT_NAME = 'DialogContent';\nconst $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const portalContext = $5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n const { forceMount: forceMount = portalContext.forceMount , ...contentProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Presence, {\n present: forceMount || context.open\n }, context.modal ? /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentModal, $67UHm$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef\n })) : /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentNonModal, $67UHm$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$b6d9565de1e068cf, {\n displayName: $5d3850c4d0b4e6c7$var$CONTENT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentModal = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n const contentRef = $67UHm$useRef(null);\n const composedRefs = $67UHm$useComposedRefs(forwardedRef, context.contentRef, contentRef); // aria-hide everything except the content (better supported equivalent to setting aria-modal)\n $67UHm$useEffect(()=>{\n const content = contentRef.current;\n if (content) return $67UHm$hideOthers(content);\n }, []);\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, $67UHm$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs // we make sure focus isn't trapped once `DialogContent` has been closed\n ,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: $67UHm$composeEventHandlers(props.onCloseAutoFocus, (event)=>{\n var _context$triggerRef$c;\n event.preventDefault();\n (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();\n }),\n onPointerDownOutside: $67UHm$composeEventHandlers(props.onPointerDownOutside, (event)=>{\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick; // If the event is a right-click, we shouldn't close because\n // it is effectively as if we right-clicked the `Overlay`.\n if (isRightClick) event.preventDefault();\n }) // When focus is trapped, a `focusout` event may still happen.\n ,\n onFocusOutside: $67UHm$composeEventHandlers(props.onFocusOutside, (event)=>event.preventDefault()\n )\n }));\n});\n/* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentNonModal = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = $67UHm$useRef(false);\n const hasPointerDownOutsideRef = $67UHm$useRef(false);\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, $67UHm$babelruntimehelpersesmextends({}, props, {\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event)=>{\n var _props$onCloseAutoFoc;\n (_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);\n if (!event.defaultPrevented) {\n var _context$triggerRef$c2;\n if (!hasInteractedOutsideRef.current) (_context$triggerRef$c2 = context.triggerRef.current) === null || _context$triggerRef$c2 === void 0 || _context$triggerRef$c2.focus(); // Always prevent auto focus because we either focus manually or want user agent focus\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event)=>{\n var _props$onInteractOuts, _context$triggerRef$c3;\n (_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === 'pointerdown') hasPointerDownOutsideRef.current = true;\n } // Prevent dismissing when clicking the trigger.\n // As the trigger is already setup to close, without doing so would\n // cause it to close and immediately open.\n const target = event.target;\n const targetIsTrigger = (_context$triggerRef$c3 = context.triggerRef.current) === null || _context$triggerRef$c3 === void 0 ? void 0 : _context$triggerRef$c3.contains(target);\n if (targetIsTrigger) event.preventDefault(); // On Safari if the trigger is inside a container with tabIndex={0}, when clicked\n // we will get the pointer down outside event on the trigger, but then a subsequent\n // focus outside event on the container, we ignore any focus outside event when we've\n // already had a pointer down outside event.\n if (event.detail.originalEvent.type === 'focusin' && hasPointerDownOutsideRef.current) event.preventDefault();\n }\n }));\n});\n/* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentImpl = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , trapFocus: trapFocus , onOpenAutoFocus: onOpenAutoFocus , onCloseAutoFocus: onCloseAutoFocus , ...contentProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, __scopeDialog);\n const contentRef = $67UHm$useRef(null);\n const composedRefs = $67UHm$useComposedRefs(forwardedRef, contentRef); // Make sure the whole tree has focus guards as our `Dialog` will be\n // the last element in the DOM (beacuse of the `Portal`)\n $67UHm$useFocusGuards();\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Fragment, null, /*#__PURE__*/ $67UHm$createElement($67UHm$FocusScope, {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus\n }, /*#__PURE__*/ $67UHm$createElement($67UHm$DismissableLayer, $67UHm$babelruntimehelpersesmextends({\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n }, contentProps, {\n ref: composedRefs,\n onDismiss: ()=>context.onOpenChange(false)\n }))), false);\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogTitle\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$TITLE_NAME = 'DialogTitle';\nconst $5d3850c4d0b4e6c7$export$16f7638e4a34b909 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...titleProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TITLE_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.h2, $67UHm$babelruntimehelpersesmextends({\n id: context.titleId\n }, titleProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$16f7638e4a34b909, {\n displayName: $5d3850c4d0b4e6c7$var$TITLE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogDescription\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DESCRIPTION_NAME = 'DialogDescription';\nconst $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...descriptionProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$DESCRIPTION_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.p, $67UHm$babelruntimehelpersesmextends({\n id: context.descriptionId\n }, descriptionProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$94e94c2ec2c954d5, {\n displayName: $5d3850c4d0b4e6c7$var$DESCRIPTION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogClose\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$CLOSE_NAME = 'DialogClose';\nconst $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...closeProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CLOSE_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.button, $67UHm$babelruntimehelpersesmextends({\n type: \"button\"\n }, closeProps, {\n ref: forwardedRef,\n onClick: $67UHm$composeEventHandlers(props.onClick, ()=>context.onOpenChange(false)\n )\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac, {\n displayName: $5d3850c4d0b4e6c7$var$CLOSE_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $5d3850c4d0b4e6c7$var$getState(open) {\n return open ? 'open' : 'closed';\n}\nconst $5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME = 'DialogTitleWarning';\nconst [$5d3850c4d0b4e6c7$export$69b62a49393917d6, $5d3850c4d0b4e6c7$var$useWarningContext] = $67UHm$createContext($5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME, {\n contentName: $5d3850c4d0b4e6c7$var$CONTENT_NAME,\n titleName: $5d3850c4d0b4e6c7$var$TITLE_NAME,\n docsSlug: 'dialog'\n});\nconst $5d3850c4d0b4e6c7$var$TitleWarning = ({ titleId: titleId })=>{\n const titleWarningContext = $5d3850c4d0b4e6c7$var$useWarningContext($5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n $67UHm$useEffect(()=>{\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) throw new Error(MESSAGE);\n }\n }, [\n MESSAGE,\n titleId\n ]);\n return null;\n};\nconst $5d3850c4d0b4e6c7$var$DESCRIPTION_WARNING_NAME = 'DialogDescriptionWarning';\nconst $5d3850c4d0b4e6c7$var$DescriptionWarning = ({ contentRef: contentRef , descriptionId: descriptionId })=>{\n const descriptionWarningContext = $5d3850c4d0b4e6c7$var$useWarningContext($5d3850c4d0b4e6c7$var$DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n $67UHm$useEffect(()=>{\n var _contentRef$current;\n const describedById = (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.getAttribute('aria-describedby'); // if we have an id and the user hasn't set aria-describedby={undefined}\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [\n MESSAGE,\n contentRef,\n descriptionId\n ]);\n return null;\n};\nconst $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9 = $5d3850c4d0b4e6c7$export$3ddf2d174ce01153;\nconst $5d3850c4d0b4e6c7$export$41fb9f06171c75f4 = $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88;\nconst $5d3850c4d0b4e6c7$export$602eac185826482c = $5d3850c4d0b4e6c7$export$dad7c95542bacce0;\nconst $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff = $5d3850c4d0b4e6c7$export$bd1d06c79be19e17;\nconst $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2 = $5d3850c4d0b4e6c7$export$b6d9565de1e068cf;\nconst $5d3850c4d0b4e6c7$export$f99233281efd08a0 = $5d3850c4d0b4e6c7$export$16f7638e4a34b909;\nconst $5d3850c4d0b4e6c7$export$393edc798c47379d = $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5;\nconst $5d3850c4d0b4e6c7$export$f39c2d165cd861fe = $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac;\n\n\n\n\nexport {$5d3850c4d0b4e6c7$export$cc702773b8ea3e41 as createDialogScope, $5d3850c4d0b4e6c7$export$3ddf2d174ce01153 as Dialog, $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88 as DialogTrigger, $5d3850c4d0b4e6c7$export$dad7c95542bacce0 as DialogPortal, $5d3850c4d0b4e6c7$export$bd1d06c79be19e17 as DialogOverlay, $5d3850c4d0b4e6c7$export$b6d9565de1e068cf as DialogContent, $5d3850c4d0b4e6c7$export$16f7638e4a34b909 as DialogTitle, $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 as DialogDescription, $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac as DialogClose, $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9 as Root, $5d3850c4d0b4e6c7$export$41fb9f06171c75f4 as Trigger, $5d3850c4d0b4e6c7$export$602eac185826482c as Portal, $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff as Overlay, $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2 as Content, $5d3850c4d0b4e6c7$export$f99233281efd08a0 as Title, $5d3850c4d0b4e6c7$export$393edc798c47379d as Description, $5d3850c4d0b4e6c7$export$f39c2d165cd861fe as Close, $5d3850c4d0b4e6c7$export$69b62a49393917d6 as WarningProvider};\n","import {createContext as $7Gjcd$createContext, createElement as $7Gjcd$createElement, useContext as $7Gjcd$useContext} from \"react\";\n\n\nconst $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ $7Gjcd$createContext(undefined);\n/* -------------------------------------------------------------------------------------------------\n * Direction\n * -----------------------------------------------------------------------------------------------*/ const $f631663db3294ace$export$c760c09fdd558351 = (props)=>{\n const { dir: dir , children: children } = props;\n return /*#__PURE__*/ $7Gjcd$createElement($f631663db3294ace$var$DirectionContext.Provider, {\n value: dir\n }, children);\n};\n/* -----------------------------------------------------------------------------------------------*/ function $f631663db3294ace$export$b39126d51d94e6f3(localDir) {\n const globalDir = $7Gjcd$useContext($f631663db3294ace$var$DirectionContext);\n return localDir || globalDir || 'ltr';\n}\nconst $f631663db3294ace$export$2881499e37b75b9a = $f631663db3294ace$export$c760c09fdd558351;\n\n\n\n\nexport {$f631663db3294ace$export$b39126d51d94e6f3 as useDirection, $f631663db3294ace$export$2881499e37b75b9a as Provider, $f631663db3294ace$export$c760c09fdd558351 as DirectionProvider};\n","// packages/react/direction/src/Direction.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DirectionContext = React.createContext(void 0);\nvar DirectionProvider = (props) => {\n const { dir, children } = props;\n return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });\n};\nfunction useDirection(localDir) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || \"ltr\";\n}\nvar Provider = DirectionProvider;\nexport {\n DirectionProvider,\n Provider,\n useDirection\n};\n","import $kqwpH$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {createContext as $kqwpH$createContext, forwardRef as $kqwpH$forwardRef, useContext as $kqwpH$useContext, useState as $kqwpH$useState, useEffect as $kqwpH$useEffect, createElement as $kqwpH$createElement, useRef as $kqwpH$useRef} from \"react\";\nimport {composeEventHandlers as $kqwpH$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {Primitive as $kqwpH$Primitive, dispatchDiscreteCustomEvent as $kqwpH$dispatchDiscreteCustomEvent} from \"@radix-ui/react-primitive\";\nimport {useComposedRefs as $kqwpH$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {useCallbackRef as $kqwpH$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\nimport {useEscapeKeydown as $kqwpH$useEscapeKeydown} from \"@radix-ui/react-use-escape-keydown\";\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * DismissableLayer\n * -----------------------------------------------------------------------------------------------*/ const $5cb92bef7577960e$var$DISMISSABLE_LAYER_NAME = 'DismissableLayer';\nconst $5cb92bef7577960e$var$CONTEXT_UPDATE = 'dismissableLayer.update';\nconst $5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE = 'dismissableLayer.pointerDownOutside';\nconst $5cb92bef7577960e$var$FOCUS_OUTSIDE = 'dismissableLayer.focusOutside';\nlet $5cb92bef7577960e$var$originalBodyPointerEvents;\nconst $5cb92bef7577960e$var$DismissableLayerContext = /*#__PURE__*/ $kqwpH$createContext({\n layers: new Set(),\n layersWithOutsidePointerEventsDisabled: new Set(),\n branches: new Set()\n});\nconst $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ $kqwpH$forwardRef((props, forwardedRef)=>{\n var _node$ownerDocument;\n const { disableOutsidePointerEvents: disableOutsidePointerEvents = false , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , onFocusOutside: onFocusOutside , onInteractOutside: onInteractOutside , onDismiss: onDismiss , ...layerProps } = props;\n const context = $kqwpH$useContext($5cb92bef7577960e$var$DismissableLayerContext);\n const [node1, setNode] = $kqwpH$useState(null);\n const ownerDocument = (_node$ownerDocument = node1 === null || node1 === void 0 ? void 0 : node1.ownerDocument) !== null && _node$ownerDocument !== void 0 ? _node$ownerDocument : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;\n const [, force] = $kqwpH$useState({});\n const composedRefs = $kqwpH$useComposedRefs(forwardedRef, (node)=>setNode(node)\n );\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [\n ...context.layersWithOutsidePointerEventsDisabled\n ].slice(-1); // prettier-ignore\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled); // prettier-ignore\n const index = node1 ? layers.indexOf(node1) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = $5cb92bef7577960e$var$usePointerDownOutside((event)=>{\n const target = event.target;\n const isPointerDownOnBranch = [\n ...context.branches\n ].some((branch)=>branch.contains(target)\n );\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside === null || onPointerDownOutside === void 0 || onPointerDownOutside(event);\n onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);\n if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();\n }, ownerDocument);\n const focusOutside = $5cb92bef7577960e$var$useFocusOutside((event)=>{\n const target = event.target;\n const isFocusInBranch = [\n ...context.branches\n ].some((branch)=>branch.contains(target)\n );\n if (isFocusInBranch) return;\n onFocusOutside === null || onFocusOutside === void 0 || onFocusOutside(event);\n onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);\n if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();\n }, ownerDocument);\n $kqwpH$useEscapeKeydown((event)=>{\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n $kqwpH$useEffect(()=>{\n if (!node1) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n $5cb92bef7577960e$var$originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = 'none';\n }\n context.layersWithOutsidePointerEventsDisabled.add(node1);\n }\n context.layers.add(node1);\n $5cb92bef7577960e$var$dispatchUpdate();\n return ()=>{\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;\n };\n }, [\n node1,\n ownerDocument,\n disableOutsidePointerEvents,\n context\n ]);\n /**\n * We purposefully prevent combining this effect with the `disableOutsidePointerEvents` effect\n * because a change to `disableOutsidePointerEvents` would remove this layer from the stack\n * and add it to the end again so the layering order wouldn't be _creation order_.\n * We only want them to be removed from context stacks when unmounted.\n */ $kqwpH$useEffect(()=>{\n return ()=>{\n if (!node1) return;\n context.layers.delete(node1);\n context.layersWithOutsidePointerEventsDisabled.delete(node1);\n $5cb92bef7577960e$var$dispatchUpdate();\n };\n }, [\n node1,\n context\n ]);\n $kqwpH$useEffect(()=>{\n const handleUpdate = ()=>force({})\n ;\n document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);\n return ()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate)\n ;\n }, []);\n return /*#__PURE__*/ $kqwpH$createElement($kqwpH$Primitive.div, $kqwpH$babelruntimehelpersesmextends({}, layerProps, {\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? 'auto' : 'none' : undefined,\n ...props.style\n },\n onFocusCapture: $kqwpH$composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: $kqwpH$composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: $kqwpH$composeEventHandlers(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)\n }));\n});\n/*#__PURE__*/ Object.assign($5cb92bef7577960e$export$177fb62ff3ec1f22, {\n displayName: $5cb92bef7577960e$var$DISMISSABLE_LAYER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DismissableLayerBranch\n * -----------------------------------------------------------------------------------------------*/ const $5cb92bef7577960e$var$BRANCH_NAME = 'DismissableLayerBranch';\nconst $5cb92bef7577960e$export$4d5eb2109db14228 = /*#__PURE__*/ $kqwpH$forwardRef((props, forwardedRef)=>{\n const context = $kqwpH$useContext($5cb92bef7577960e$var$DismissableLayerContext);\n const ref = $kqwpH$useRef(null);\n const composedRefs = $kqwpH$useComposedRefs(forwardedRef, ref);\n $kqwpH$useEffect(()=>{\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return ()=>{\n context.branches.delete(node);\n };\n }\n }, [\n context.branches\n ]);\n return /*#__PURE__*/ $kqwpH$createElement($kqwpH$Primitive.div, $kqwpH$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs\n }));\n});\n/*#__PURE__*/ Object.assign($5cb92bef7577960e$export$4d5eb2109db14228, {\n displayName: $5cb92bef7577960e$var$BRANCH_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ /**\n * Listens for `pointerdown` outside a react subtree. We use `pointerdown` rather than `pointerup`\n * to mimic layer dismissing behaviour present in OS.\n * Returns props to pass to the node we want to check for outside events.\n */ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {\n const handlePointerDownOutside = $kqwpH$useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = $kqwpH$useRef(false);\n const handleClickRef = $kqwpH$useRef(()=>{});\n $kqwpH$useEffect(()=>{\n const handlePointerDown = (event)=>{\n if (event.target && !isPointerInsideReactTreeRef.current) {\n const eventDetail = {\n originalEvent: event\n };\n function handleAndDispatchPointerDownOutsideEvent() {\n $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, {\n discrete: true\n });\n }\n /**\n * On touch devices, we need to wait for a click event because browsers implement\n * a ~350ms delay between the time the user stops touching the display and when the\n * browser executres events. We need to ensure we don't reactivate pointer-events within\n * this timeframe otherwise the browser may execute events that should have been prevented.\n *\n * Additionally, this also lets us deal automatically with cancellations when a click event\n * isn't raised because the page was considered scrolled/drag-scrolled, long-pressed, etc.\n *\n * This is why we also continuously remove the previous listener, because we cannot be\n * certain that it was raised, and therefore cleaned-up.\n */ if (event.pointerType === 'touch') {\n ownerDocument.removeEventListener('click', handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent;\n ownerDocument.addEventListener('click', handleClickRef.current, {\n once: true\n });\n } else handleAndDispatchPointerDownOutsideEvent();\n } else // We need to remove the event listener in case the outside click has been canceled.\n // See: https://github.com/radix-ui/primitives/issues/2171\n ownerDocument.removeEventListener('click', handleClickRef.current);\n isPointerInsideReactTreeRef.current = false;\n };\n /**\n * if this hook executes in a component that mounts via a `pointerdown` event, the event\n * would bubble up to the document and trigger a `pointerDownOutside` event. We avoid\n * this by delaying the event listener registration on the document.\n * This is not React specific, but rather how the DOM works, ie:\n * ```\n * button.addEventListener('pointerdown', () => {\n * console.log('I will log');\n * document.addEventListener('pointerdown', () => {\n * console.log('I will also log');\n * })\n * });\n */ const timerId = window.setTimeout(()=>{\n ownerDocument.addEventListener('pointerdown', handlePointerDown);\n }, 0);\n return ()=>{\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener('pointerdown', handlePointerDown);\n ownerDocument.removeEventListener('click', handleClickRef.current);\n };\n }, [\n ownerDocument,\n handlePointerDownOutside\n ]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: ()=>isPointerInsideReactTreeRef.current = true\n };\n}\n/**\n * Listens for when focus happens outside a react subtree.\n * Returns props to pass to the root (node) of the subtree we want to check.\n */ function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {\n const handleFocusOutside = $kqwpH$useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = $kqwpH$useRef(false);\n $kqwpH$useEffect(()=>{\n const handleFocus = (event)=>{\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = {\n originalEvent: event\n };\n $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener('focusin', handleFocus);\n return ()=>ownerDocument.removeEventListener('focusin', handleFocus)\n ;\n }, [\n ownerDocument,\n handleFocusOutside\n ]);\n return {\n onFocusCapture: ()=>isFocusInsideReactTreeRef.current = true\n ,\n onBlurCapture: ()=>isFocusInsideReactTreeRef.current = false\n };\n}\nfunction $5cb92bef7577960e$var$dispatchUpdate() {\n const event = new CustomEvent($5cb92bef7577960e$var$CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detail, { discrete: discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, {\n bubbles: false,\n cancelable: true,\n detail: detail\n });\n if (handler) target.addEventListener(name, handler, {\n once: true\n });\n if (discrete) $kqwpH$dispatchDiscreteCustomEvent(target, event);\n else target.dispatchEvent(event);\n}\nconst $5cb92bef7577960e$export$be92b6f5f03c0fe9 = $5cb92bef7577960e$export$177fb62ff3ec1f22;\nconst $5cb92bef7577960e$export$aecb2ddcb55c95be = $5cb92bef7577960e$export$4d5eb2109db14228;\n\n\n\n\nexport {$5cb92bef7577960e$export$177fb62ff3ec1f22 as DismissableLayer, $5cb92bef7577960e$export$4d5eb2109db14228 as DismissableLayerBranch, $5cb92bef7577960e$export$be92b6f5f03c0fe9 as Root, $5cb92bef7577960e$export$aecb2ddcb55c95be as Branch};\n","import {useEffect as $hPSQ5$useEffect} from \"react\";\nimport {useCallbackRef as $hPSQ5$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\n\n\n\n/**\n * Listens for when the escape key is down\n */ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {\n const onEscapeKeyDown = $hPSQ5$useCallbackRef(onEscapeKeyDownProp);\n $hPSQ5$useEffect(()=>{\n const handleKeyDown = (event)=>{\n if (event.key === 'Escape') onEscapeKeyDown(event);\n };\n ownerDocument.addEventListener('keydown', handleKeyDown);\n return ()=>ownerDocument.removeEventListener('keydown', handleKeyDown)\n ;\n }, [\n onEscapeKeyDown,\n ownerDocument\n ]);\n}\n\n\n\n\nexport {$addc16e1bbe58fd0$export$3a72a57244d6e765 as useEscapeKeydown};\n","\"use client\";\n\n// packages/react/dismissable-layer/src/DismissableLayer.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useEscapeKeydown } from \"@radix-ui/react-use-escape-keydown\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DISMISSABLE_LAYER_NAME = \"DismissableLayer\";\nvar CONTEXT_UPDATE = \"dismissableLayer.update\";\nvar POINTER_DOWN_OUTSIDE = \"dismissableLayer.pointerDownOutside\";\nvar FOCUS_OUTSIDE = \"dismissableLayer.focusOutside\";\nvar originalBodyPointerEvents;\nvar DismissableLayerContext = React.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set()\n});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = usePointerDownOutside((event) => {\n const target = event.target;\n const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const focusOutside = useFocusOutside((event) => {\n const target = event.target;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n useEscapeKeydown((event) => {\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = \"none\";\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...layerProps,\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? \"auto\" : \"none\" : void 0,\n ...props.style\n },\n onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )\n }\n );\n }\n);\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\nvar BRANCH_NAME = \"DismissableLayerBranch\";\nvar DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });\n});\nDismissableLayerBranch.displayName = BRANCH_NAME;\nfunction usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n const eventDetail = { originalEvent: event };\n if (event.pointerType === \"touch\") {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n } else {\n handleAndDispatchPointerDownOutsideEvent2();\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n }\n isPointerInsideReactTreeRef.current = false;\n };\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener(\"pointerdown\", handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener(\"pointerdown\", handlePointerDown);\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n };\n }, [ownerDocument, handlePointerDownOutside]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true\n };\n}\nfunction useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {\n const handleFocusOutside = useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = React.useRef(false);\n React.useEffect(() => {\n const handleFocus = (event) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener(\"focusin\", handleFocus);\n return () => ownerDocument.removeEventListener(\"focusin\", handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n return {\n onFocusCapture: () => isFocusInsideReactTreeRef.current = true,\n onBlurCapture: () => isFocusInsideReactTreeRef.current = false\n };\n}\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\nvar Root = DismissableLayer;\nvar Branch = DismissableLayerBranch;\nexport {\n Branch,\n DismissableLayer,\n DismissableLayerBranch,\n Root\n};\n","// packages/react/use-escape-keydown/src/useEscapeKeydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n","import {useEffect as $1wErz$useEffect} from \"react\";\n\n\n/** Number of components which have requested interest to have focus guards */ let $3db38b7d1fb3fe6a$var$count = 0;\nfunction $3db38b7d1fb3fe6a$export$ac5b58043b79449b(props) {\n $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c();\n return props.children;\n}\n/**\n * Injects a pair of focus guards at the edges of the whole DOM tree\n * to ensure `focusin` & `focusout` events can be caught consistently.\n */ function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c() {\n $1wErz$useEffect(()=>{\n var _edgeGuards$, _edgeGuards$2;\n const edgeGuards = document.querySelectorAll('[data-radix-focus-guard]');\n document.body.insertAdjacentElement('afterbegin', (_edgeGuards$ = edgeGuards[0]) !== null && _edgeGuards$ !== void 0 ? _edgeGuards$ : $3db38b7d1fb3fe6a$var$createFocusGuard());\n document.body.insertAdjacentElement('beforeend', (_edgeGuards$2 = edgeGuards[1]) !== null && _edgeGuards$2 !== void 0 ? _edgeGuards$2 : $3db38b7d1fb3fe6a$var$createFocusGuard());\n $3db38b7d1fb3fe6a$var$count++;\n return ()=>{\n if ($3db38b7d1fb3fe6a$var$count === 1) document.querySelectorAll('[data-radix-focus-guard]').forEach((node)=>node.remove()\n );\n $3db38b7d1fb3fe6a$var$count--;\n };\n }, []);\n}\nfunction $3db38b7d1fb3fe6a$var$createFocusGuard() {\n const element = document.createElement('span');\n element.setAttribute('data-radix-focus-guard', '');\n element.tabIndex = 0;\n element.style.cssText = 'outline: none; opacity: 0; position: fixed; pointer-events: none';\n return element;\n}\nconst $3db38b7d1fb3fe6a$export$be92b6f5f03c0fe9 = $3db38b7d1fb3fe6a$export$ac5b58043b79449b;\n\n\n\n\nexport {$3db38b7d1fb3fe6a$export$ac5b58043b79449b as FocusGuards, $3db38b7d1fb3fe6a$export$be92b6f5f03c0fe9 as Root, $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c as useFocusGuards};\n","\"use client\";\n\n// packages/react/focus-guards/src/FocusGuards.tsx\nimport * as React from \"react\";\nvar count = 0;\nfunction FocusGuards(props) {\n useFocusGuards();\n return props.children;\n}\nfunction useFocusGuards() {\n React.useEffect(() => {\n const edgeGuards = document.querySelectorAll(\"[data-radix-focus-guard]\");\n document.body.insertAdjacentElement(\"afterbegin\", edgeGuards[0] ?? createFocusGuard());\n document.body.insertAdjacentElement(\"beforeend\", edgeGuards[1] ?? createFocusGuard());\n count++;\n return () => {\n if (count === 1) {\n document.querySelectorAll(\"[data-radix-focus-guard]\").forEach((node) => node.remove());\n }\n count--;\n };\n }, []);\n}\nfunction createFocusGuard() {\n const element = document.createElement(\"span\");\n element.setAttribute(\"data-radix-focus-guard\", \"\");\n element.tabIndex = 0;\n element.style.cssText = \"outline: none; opacity: 0; position: fixed; pointer-events: none\";\n return element;\n}\nvar Root = FocusGuards;\nexport {\n FocusGuards,\n Root,\n useFocusGuards\n};\n","import $45QHv$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $45QHv$forwardRef, useState as $45QHv$useState, useRef as $45QHv$useRef, useEffect as $45QHv$useEffect, useCallback as $45QHv$useCallback, createElement as $45QHv$createElement} from \"react\";\nimport {useComposedRefs as $45QHv$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {Primitive as $45QHv$Primitive} from \"@radix-ui/react-primitive\";\nimport {useCallbackRef as $45QHv$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\n\n\n\n\n\n\nconst $d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT = 'focusScope.autoFocusOnMount';\nconst $d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT = 'focusScope.autoFocusOnUnmount';\nconst $d3863c46a17e8a28$var$EVENT_OPTIONS = {\n bubbles: false,\n cancelable: true\n};\n/* -------------------------------------------------------------------------------------------------\n * FocusScope\n * -----------------------------------------------------------------------------------------------*/ const $d3863c46a17e8a28$var$FOCUS_SCOPE_NAME = 'FocusScope';\nconst $d3863c46a17e8a28$export$20e40289641fbbb6 = /*#__PURE__*/ $45QHv$forwardRef((props, forwardedRef)=>{\n const { loop: loop = false , trapped: trapped = false , onMountAutoFocus: onMountAutoFocusProp , onUnmountAutoFocus: onUnmountAutoFocusProp , ...scopeProps } = props;\n const [container1, setContainer] = $45QHv$useState(null);\n const onMountAutoFocus = $45QHv$useCallbackRef(onMountAutoFocusProp);\n const onUnmountAutoFocus = $45QHv$useCallbackRef(onUnmountAutoFocusProp);\n const lastFocusedElementRef = $45QHv$useRef(null);\n const composedRefs = $45QHv$useComposedRefs(forwardedRef, (node)=>setContainer(node)\n );\n const focusScope = $45QHv$useRef({\n paused: false,\n pause () {\n this.paused = true;\n },\n resume () {\n this.paused = false;\n }\n }).current; // Takes care of trapping focus if focus is moved outside programmatically for example\n $45QHv$useEffect(()=>{\n if (trapped) {\n function handleFocusIn(event) {\n if (focusScope.paused || !container1) return;\n const target = event.target;\n if (container1.contains(target)) lastFocusedElementRef.current = target;\n else $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {\n select: true\n });\n }\n function handleFocusOut(event) {\n if (focusScope.paused || !container1) return;\n const relatedTarget = event.relatedTarget; // A `focusout` event with a `null` `relatedTarget` will happen in at least two cases:\n //\n // 1. When the user switches app/tabs/windows/the browser itself loses focus.\n // 2. In Google Chrome, when the focused element is removed from the DOM.\n //\n // We let the browser do its thing here because:\n //\n // 1. The browser already keeps a memory of what's focused for when the page gets refocused.\n // 2. In Google Chrome, if we try to focus the deleted focused element (as per below), it\n // throws the CPU to 100%, so we avoid doing anything for this reason here too.\n if (relatedTarget === null) return; // If the focus has moved to an actual legitimate element (`relatedTarget !== null`)\n // that is outside the container, we move focus to the last valid focused element inside.\n if (!container1.contains(relatedTarget)) $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {\n select: true\n });\n } // When the focused element gets removed from the DOM, browsers move focus\n // back to the document.body. In this case, we move focus to the container\n // to keep focus trapped correctly.\n function handleMutations(mutations) {\n const focusedElement = document.activeElement;\n if (focusedElement !== document.body) return;\n for (const mutation of mutations)if (mutation.removedNodes.length > 0) $d3863c46a17e8a28$var$focus(container1);\n }\n document.addEventListener('focusin', handleFocusIn);\n document.addEventListener('focusout', handleFocusOut);\n const mutationObserver = new MutationObserver(handleMutations);\n if (container1) mutationObserver.observe(container1, {\n childList: true,\n subtree: true\n });\n return ()=>{\n document.removeEventListener('focusin', handleFocusIn);\n document.removeEventListener('focusout', handleFocusOut);\n mutationObserver.disconnect();\n };\n }\n }, [\n trapped,\n container1,\n focusScope.paused\n ]);\n $45QHv$useEffect(()=>{\n if (container1) {\n $d3863c46a17e8a28$var$focusScopesStack.add(focusScope);\n const previouslyFocusedElement = document.activeElement;\n const hasFocusedCandidate = container1.contains(previouslyFocusedElement);\n if (!hasFocusedCandidate) {\n const mountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);\n container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n container1.dispatchEvent(mountEvent);\n if (!mountEvent.defaultPrevented) {\n $d3863c46a17e8a28$var$focusFirst($d3863c46a17e8a28$var$removeLinks($d3863c46a17e8a28$var$getTabbableCandidates(container1)), {\n select: true\n });\n if (document.activeElement === previouslyFocusedElement) $d3863c46a17e8a28$var$focus(container1);\n }\n }\n return ()=>{\n container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, onMountAutoFocus); // We hit a react bug (fixed in v17) with focusing in unmount.\n // We need to delay the focus a little to get around it for now.\n // See: https://github.com/facebook/react/issues/17894\n setTimeout(()=>{\n const unmountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);\n container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n container1.dispatchEvent(unmountEvent);\n if (!unmountEvent.defaultPrevented) $d3863c46a17e8a28$var$focus(previouslyFocusedElement !== null && previouslyFocusedElement !== void 0 ? previouslyFocusedElement : document.body, {\n select: true\n });\n // we need to remove the listener after we `dispatchEvent`\n container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n $d3863c46a17e8a28$var$focusScopesStack.remove(focusScope);\n }, 0);\n };\n }\n }, [\n container1,\n onMountAutoFocus,\n onUnmountAutoFocus,\n focusScope\n ]); // Takes care of looping focus (when tabbing whilst at the edges)\n const handleKeyDown = $45QHv$useCallback((event)=>{\n if (!loop && !trapped) return;\n if (focusScope.paused) return;\n const isTabKey = event.key === 'Tab' && !event.altKey && !event.ctrlKey && !event.metaKey;\n const focusedElement = document.activeElement;\n if (isTabKey && focusedElement) {\n const container = event.currentTarget;\n const [first, last] = $d3863c46a17e8a28$var$getTabbableEdges(container);\n const hasTabbableElementsInside = first && last; // we can only wrap focus if we have tabbable edges\n if (!hasTabbableElementsInside) {\n if (focusedElement === container) event.preventDefault();\n } else {\n if (!event.shiftKey && focusedElement === last) {\n event.preventDefault();\n if (loop) $d3863c46a17e8a28$var$focus(first, {\n select: true\n });\n } else if (event.shiftKey && focusedElement === first) {\n event.preventDefault();\n if (loop) $d3863c46a17e8a28$var$focus(last, {\n select: true\n });\n }\n }\n }\n }, [\n loop,\n trapped,\n focusScope.paused\n ]);\n return /*#__PURE__*/ $45QHv$createElement($45QHv$Primitive.div, $45QHv$babelruntimehelpersesmextends({\n tabIndex: -1\n }, scopeProps, {\n ref: composedRefs,\n onKeyDown: handleKeyDown\n }));\n});\n/*#__PURE__*/ Object.assign($d3863c46a17e8a28$export$20e40289641fbbb6, {\n displayName: $d3863c46a17e8a28$var$FOCUS_SCOPE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * Utils\n * -----------------------------------------------------------------------------------------------*/ /**\n * Attempts focusing the first element in a list of candidates.\n * Stops when focus has actually moved.\n */ function $d3863c46a17e8a28$var$focusFirst(candidates, { select: select = false } = {}) {\n const previouslyFocusedElement = document.activeElement;\n for (const candidate of candidates){\n $d3863c46a17e8a28$var$focus(candidate, {\n select: select\n });\n if (document.activeElement !== previouslyFocusedElement) return;\n }\n}\n/**\n * Returns the first and last tabbable elements inside a container.\n */ function $d3863c46a17e8a28$var$getTabbableEdges(container) {\n const candidates = $d3863c46a17e8a28$var$getTabbableCandidates(container);\n const first = $d3863c46a17e8a28$var$findVisible(candidates, container);\n const last = $d3863c46a17e8a28$var$findVisible(candidates.reverse(), container);\n return [\n first,\n last\n ];\n}\n/**\n * Returns a list of potential tabbable candidates.\n *\n * NOTE: This is only a close approximation. For example it doesn't take into account cases like when\n * elements are not visible. This cannot be worked out easily by just reading a property, but rather\n * necessitate runtime knowledge (computed styles, etc). We deal with these cases separately.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker\n * Credit: https://github.com/discord/focus-layers/blob/master/src/util/wrapFocus.tsx#L1\n */ function $d3863c46a17e8a28$var$getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node)=>{\n const isHiddenInput = node.tagName === 'INPUT' && node.type === 'hidden';\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP; // `.tabIndex` is not the same as the `tabindex` attribute. It works on the\n // runtime's understanding of tabbability, so this automatically accounts\n // for any kind of element that could be tabbed to.\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while(walker.nextNode())nodes.push(walker.currentNode); // we do not take into account the order of nodes with positive `tabIndex` as it\n // hinders accessibility to have tab order different from visual order.\n return nodes;\n}\n/**\n * Returns the first visible element in a list.\n * NOTE: Only checks visibility up to the `container`.\n */ function $d3863c46a17e8a28$var$findVisible(elements, container) {\n for (const element of elements){\n // we stop checking if it's hidden at the `container` level (excluding)\n if (!$d3863c46a17e8a28$var$isHidden(element, {\n upTo: container\n })) return element;\n }\n}\nfunction $d3863c46a17e8a28$var$isHidden(node, { upTo: upTo }) {\n if (getComputedStyle(node).visibility === 'hidden') return true;\n while(node){\n // we stop at `upTo` (excluding it)\n if (upTo !== undefined && node === upTo) return false;\n if (getComputedStyle(node).display === 'none') return true;\n node = node.parentElement;\n }\n return false;\n}\nfunction $d3863c46a17e8a28$var$isSelectableInput(element) {\n return element instanceof HTMLInputElement && 'select' in element;\n}\nfunction $d3863c46a17e8a28$var$focus(element, { select: select = false } = {}) {\n // only focus if that element is focusable\n if (element && element.focus) {\n const previouslyFocusedElement = document.activeElement; // NOTE: we prevent scrolling on focus, to minimize jarring transitions for users\n element.focus({\n preventScroll: true\n }); // only select if its not the same element, it supports selection and we need to select\n if (element !== previouslyFocusedElement && $d3863c46a17e8a28$var$isSelectableInput(element) && select) element.select();\n }\n}\n/* -------------------------------------------------------------------------------------------------\n * FocusScope stack\n * -----------------------------------------------------------------------------------------------*/ const $d3863c46a17e8a28$var$focusScopesStack = $d3863c46a17e8a28$var$createFocusScopesStack();\nfunction $d3863c46a17e8a28$var$createFocusScopesStack() {\n /** A stack of focus scopes, with the active one at the top */ let stack = [];\n return {\n add (focusScope) {\n // pause the currently active focus scope (at the top of the stack)\n const activeFocusScope = stack[0];\n if (focusScope !== activeFocusScope) activeFocusScope === null || activeFocusScope === void 0 || activeFocusScope.pause();\n // remove in case it already exists (because we'll re-add it at the top of the stack)\n stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);\n stack.unshift(focusScope);\n },\n remove (focusScope) {\n var _stack$;\n stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);\n (_stack$ = stack[0]) === null || _stack$ === void 0 || _stack$.resume();\n }\n };\n}\nfunction $d3863c46a17e8a28$var$arrayRemove(array, item) {\n const updatedArray = [\n ...array\n ];\n const index = updatedArray.indexOf(item);\n if (index !== -1) updatedArray.splice(index, 1);\n return updatedArray;\n}\nfunction $d3863c46a17e8a28$var$removeLinks(items) {\n return items.filter((item)=>item.tagName !== 'A'\n );\n}\nconst $d3863c46a17e8a28$export$be92b6f5f03c0fe9 = $d3863c46a17e8a28$export$20e40289641fbbb6;\n\n\n\n\nexport {$d3863c46a17e8a28$export$20e40289641fbbb6 as FocusScope, $d3863c46a17e8a28$export$be92b6f5f03c0fe9 as Root};\n","\"use client\";\n\n// packages/react/focus-scope/src/FocusScope.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AUTOFOCUS_ON_MOUNT = \"focusScope.autoFocusOnMount\";\nvar AUTOFOCUS_ON_UNMOUNT = \"focusScope.autoFocusOnUnmount\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar FOCUS_SCOPE_NAME = \"FocusScope\";\nvar FocusScope = React.forwardRef((props, forwardedRef) => {\n const {\n loop = false,\n trapped = false,\n onMountAutoFocus: onMountAutoFocusProp,\n onUnmountAutoFocus: onUnmountAutoFocusProp,\n ...scopeProps\n } = props;\n const [container, setContainer] = React.useState(null);\n const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);\n const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);\n const lastFocusedElementRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));\n const focusScope = React.useRef({\n paused: false,\n pause() {\n this.paused = true;\n },\n resume() {\n this.paused = false;\n }\n }).current;\n React.useEffect(() => {\n if (trapped) {\n let handleFocusIn2 = function(event) {\n if (focusScope.paused || !container) return;\n const target = event.target;\n if (container.contains(target)) {\n lastFocusedElementRef.current = target;\n } else {\n focus(lastFocusedElementRef.current, { select: true });\n }\n }, handleFocusOut2 = function(event) {\n if (focusScope.paused || !container) return;\n const relatedTarget = event.relatedTarget;\n if (relatedTarget === null) return;\n if (!container.contains(relatedTarget)) {\n focus(lastFocusedElementRef.current, { select: true });\n }\n }, handleMutations2 = function(mutations) {\n const focusedElement = document.activeElement;\n if (focusedElement !== document.body) return;\n for (const mutation of mutations) {\n if (mutation.removedNodes.length > 0) focus(container);\n }\n };\n var handleFocusIn = handleFocusIn2, handleFocusOut = handleFocusOut2, handleMutations = handleMutations2;\n document.addEventListener(\"focusin\", handleFocusIn2);\n document.addEventListener(\"focusout\", handleFocusOut2);\n const mutationObserver = new MutationObserver(handleMutations2);\n if (container) mutationObserver.observe(container, { childList: true, subtree: true });\n return () => {\n document.removeEventListener(\"focusin\", handleFocusIn2);\n document.removeEventListener(\"focusout\", handleFocusOut2);\n mutationObserver.disconnect();\n };\n }\n }, [trapped, container, focusScope.paused]);\n React.useEffect(() => {\n if (container) {\n focusScopesStack.add(focusScope);\n const previouslyFocusedElement = document.activeElement;\n const hasFocusedCandidate = container.contains(previouslyFocusedElement);\n if (!hasFocusedCandidate) {\n const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);\n container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n container.dispatchEvent(mountEvent);\n if (!mountEvent.defaultPrevented) {\n focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });\n if (document.activeElement === previouslyFocusedElement) {\n focus(container);\n }\n }\n }\n return () => {\n container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n setTimeout(() => {\n const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);\n container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n container.dispatchEvent(unmountEvent);\n if (!unmountEvent.defaultPrevented) {\n focus(previouslyFocusedElement ?? document.body, { select: true });\n }\n container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n focusScopesStack.remove(focusScope);\n }, 0);\n };\n }\n }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);\n const handleKeyDown = React.useCallback(\n (event) => {\n if (!loop && !trapped) return;\n if (focusScope.paused) return;\n const isTabKey = event.key === \"Tab\" && !event.altKey && !event.ctrlKey && !event.metaKey;\n const focusedElement = document.activeElement;\n if (isTabKey && focusedElement) {\n const container2 = event.currentTarget;\n const [first, last] = getTabbableEdges(container2);\n const hasTabbableElementsInside = first && last;\n if (!hasTabbableElementsInside) {\n if (focusedElement === container2) event.preventDefault();\n } else {\n if (!event.shiftKey && focusedElement === last) {\n event.preventDefault();\n if (loop) focus(first, { select: true });\n } else if (event.shiftKey && focusedElement === first) {\n event.preventDefault();\n if (loop) focus(last, { select: true });\n }\n }\n }\n },\n [loop, trapped, focusScope.paused]\n );\n return /* @__PURE__ */ jsx(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });\n});\nFocusScope.displayName = FOCUS_SCOPE_NAME;\nfunction focusFirst(candidates, { select = false } = {}) {\n const previouslyFocusedElement = document.activeElement;\n for (const candidate of candidates) {\n focus(candidate, { select });\n if (document.activeElement !== previouslyFocusedElement) return;\n }\n}\nfunction getTabbableEdges(container) {\n const candidates = getTabbableCandidates(container);\n const first = findVisible(candidates, container);\n const last = findVisible(candidates.reverse(), container);\n return [first, last];\n}\nfunction getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node) => {\n const isHiddenInput = node.tagName === \"INPUT\" && node.type === \"hidden\";\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while (walker.nextNode()) nodes.push(walker.currentNode);\n return nodes;\n}\nfunction findVisible(elements, container) {\n for (const element of elements) {\n if (!isHidden(element, { upTo: container })) return element;\n }\n}\nfunction isHidden(node, { upTo }) {\n if (getComputedStyle(node).visibility === \"hidden\") return true;\n while (node) {\n if (upTo !== void 0 && node === upTo) return false;\n if (getComputedStyle(node).display === \"none\") return true;\n node = node.parentElement;\n }\n return false;\n}\nfunction isSelectableInput(element) {\n return element instanceof HTMLInputElement && \"select\" in element;\n}\nfunction focus(element, { select = false } = {}) {\n if (element && element.focus) {\n const previouslyFocusedElement = document.activeElement;\n element.focus({ preventScroll: true });\n if (element !== previouslyFocusedElement && isSelectableInput(element) && select)\n element.select();\n }\n}\nvar focusScopesStack = createFocusScopesStack();\nfunction createFocusScopesStack() {\n let stack = [];\n return {\n add(focusScope) {\n const activeFocusScope = stack[0];\n if (focusScope !== activeFocusScope) {\n activeFocusScope?.pause();\n }\n stack = arrayRemove(stack, focusScope);\n stack.unshift(focusScope);\n },\n remove(focusScope) {\n stack = arrayRemove(stack, focusScope);\n stack[0]?.resume();\n }\n };\n}\nfunction arrayRemove(array, item) {\n const updatedArray = [...array];\n const index = updatedArray.indexOf(item);\n if (index !== -1) {\n updatedArray.splice(index, 1);\n }\n return updatedArray;\n}\nfunction removeLinks(items) {\n return items.filter((item) => item.tagName !== \"A\");\n}\nvar Root = FocusScope;\nexport {\n FocusScope,\n Root\n};\n","import * as $2AODx$react from \"react\";\nimport {useLayoutEffect as $2AODx$useLayoutEffect} from \"@radix-ui/react-use-layout-effect\";\n\n\n\nconst $1746a345f3d73bb7$var$useReactId = $2AODx$react['useId'.toString()] || (()=>undefined\n);\nlet $1746a345f3d73bb7$var$count = 0;\nfunction $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {\n const [id, setId] = $2AODx$react.useState($1746a345f3d73bb7$var$useReactId()); // React versions older than 18 will have client-side ids only.\n $2AODx$useLayoutEffect(()=>{\n if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)\n );\n }, [\n deterministicId\n ]);\n return deterministicId || (id ? `radix-${id}` : '');\n}\n\n\n\n\nexport {$1746a345f3d73bb7$export$f680877a34711e37 as useId};\n","// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\"useId\".toString()] || (() => void 0);\nvar count = 0;\nfunction useId(deterministicId) {\n const [id, setId] = React.useState(useReactId());\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : \"\");\n}\nexport {\n useId\n};\n","import $am6gm$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useRef as $am6gm$useRef, useState as $am6gm$useState, createElement as $am6gm$createElement, useCallback as $am6gm$useCallback, forwardRef as $am6gm$forwardRef, useEffect as $am6gm$useEffect} from \"react\";\nimport {composeEventHandlers as $am6gm$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useComposedRefs as $am6gm$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $am6gm$createContextScope} from \"@radix-ui/react-context\";\nimport {DismissableLayer as $am6gm$DismissableLayer} from \"@radix-ui/react-dismissable-layer\";\nimport {useFocusGuards as $am6gm$useFocusGuards} from \"@radix-ui/react-focus-guards\";\nimport {FocusScope as $am6gm$FocusScope} from \"@radix-ui/react-focus-scope\";\nimport {useId as $am6gm$useId} from \"@radix-ui/react-id\";\nimport {createPopperScope as $am6gm$createPopperScope, Root as $am6gm$Root, Anchor as $am6gm$Anchor, Content as $am6gm$Content, Arrow as $am6gm$Arrow} from \"@radix-ui/react-popper\";\nimport {Portal as $am6gm$Portal} from \"@radix-ui/react-portal\";\nimport {Presence as $am6gm$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $am6gm$Primitive} from \"@radix-ui/react-primitive\";\nimport {Slot as $am6gm$Slot} from \"@radix-ui/react-slot\";\nimport {useControllableState as $am6gm$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {hideOthers as $am6gm$hideOthers} from \"aria-hidden\";\nimport {RemoveScroll as $am6gm$RemoveScroll} from \"react-remove-scroll\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Popover\n * -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$POPOVER_NAME = 'Popover';\nconst [$cb5cc270b50c6fcd$var$createPopoverContext, $cb5cc270b50c6fcd$export$c8393c9e73286932] = $am6gm$createContextScope($cb5cc270b50c6fcd$var$POPOVER_NAME, [\n $am6gm$createPopperScope\n]);\nconst $cb5cc270b50c6fcd$var$usePopperScope = $am6gm$createPopperScope();\nconst [$cb5cc270b50c6fcd$var$PopoverProvider, $cb5cc270b50c6fcd$var$usePopoverContext] = $cb5cc270b50c6fcd$var$createPopoverContext($cb5cc270b50c6fcd$var$POPOVER_NAME);\nconst $cb5cc270b50c6fcd$export$5b6b19405a83ff9d = (props)=>{\n const { __scopePopover: __scopePopover , children: children , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , modal: modal = false } = props;\n const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);\n const triggerRef = $am6gm$useRef(null);\n const [hasCustomAnchor, setHasCustomAnchor] = $am6gm$useState(false);\n const [open = false, setOpen] = $am6gm$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /*#__PURE__*/ $am6gm$createElement($am6gm$Root, popperScope, /*#__PURE__*/ $am6gm$createElement($cb5cc270b50c6fcd$var$PopoverProvider, {\n scope: __scopePopover,\n contentId: $am6gm$useId(),\n triggerRef: triggerRef,\n open: open,\n onOpenChange: setOpen,\n onOpenToggle: $am6gm$useCallback(()=>setOpen((prevOpen)=>!prevOpen\n )\n , [\n setOpen\n ]),\n hasCustomAnchor: hasCustomAnchor,\n onCustomAnchorAdd: $am6gm$useCallback(()=>setHasCustomAnchor(true)\n , []),\n onCustomAnchorRemove: $am6gm$useCallback(()=>setHasCustomAnchor(false)\n , []),\n modal: modal\n }, children));\n};\n/*#__PURE__*/ Object.assign($cb5cc270b50c6fcd$export$5b6b19405a83ff9d, {\n displayName: $cb5cc270b50c6fcd$var$POPOVER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * PopoverAnchor\n * -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$ANCHOR_NAME = 'PopoverAnchor';\nconst $cb5cc270b50c6fcd$export$96e5381f42521a79 = /*#__PURE__*/ $am6gm$forwardRef((props, forwardedRef)=>{\n const { __scopePopover: __scopePopover , ...anchorProps } = props;\n const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$ANCHOR_NAME, __scopePopover);\n const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);\n const { onCustomAnchorAdd: onCustomAnchorAdd , onCustomAnchorRemove: onCustomAnchorRemove } = context;\n $am6gm$useEffect(()=>{\n onCustomAnchorAdd();\n return ()=>onCustomAnchorRemove()\n ;\n }, [\n onCustomAnchorAdd,\n onCustomAnchorRemove\n ]);\n return /*#__PURE__*/ $am6gm$createElement($am6gm$Anchor, $am6gm$babelruntimehelpersesmextends({}, popperScope, anchorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($cb5cc270b50c6fcd$export$96e5381f42521a79, {\n displayName: $cb5cc270b50c6fcd$var$ANCHOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * PopoverTrigger\n * -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$TRIGGER_NAME = 'PopoverTrigger';\nconst $cb5cc270b50c6fcd$export$7dacb05d26466c3 = /*#__PURE__*/ $am6gm$forwardRef((props, forwardedRef)=>{\n const { __scopePopover: __scopePopover , ...triggerProps } = props;\n const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$TRIGGER_NAME, __scopePopover);\n const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);\n const composedTriggerRef = $am6gm$useComposedRefs(forwardedRef, context.triggerRef);\n const trigger = /*#__PURE__*/ $am6gm$createElement($am6gm$Primitive.button, $am6gm$babelruntimehelpersesmextends({\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": $cb5cc270b50c6fcd$var$getState(context.open)\n }, triggerProps, {\n ref: composedTriggerRef,\n onClick: $am6gm$composeEventHandlers(props.onClick, context.onOpenToggle)\n }));\n return context.hasCustomAnchor ? trigger : /*#__PURE__*/ $am6gm$createElement($am6gm$Anchor, $am6gm$babelruntimehelpersesmextends({\n asChild: true\n }, popperScope), trigger);\n});\n/*#__PURE__*/ Object.assign($cb5cc270b50c6fcd$export$7dacb05d26466c3, {\n displayName: $cb5cc270b50c6fcd$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * PopoverPortal\n * -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$PORTAL_NAME = 'PopoverPortal';\nconst [$cb5cc270b50c6fcd$var$PortalProvider, $cb5cc270b50c6fcd$var$usePortalContext] = $cb5cc270b50c6fcd$var$createPopoverContext($cb5cc270b50c6fcd$var$PORTAL_NAME, {\n forceMount: undefined\n});\nconst $cb5cc270b50c6fcd$export$dd679ffb4362d2d4 = (props)=>{\n const { __scopePopover: __scopePopover , forceMount: forceMount , children: children , container: container } = props;\n const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$PORTAL_NAME, __scopePopover);\n return /*#__PURE__*/ $am6gm$createElement($cb5cc270b50c6fcd$var$PortalProvider, {\n scope: __scopePopover,\n forceMount: forceMount\n }, /*#__PURE__*/ $am6gm$createElement($am6gm$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $am6gm$createElement($am6gm$Portal, {\n asChild: true,\n container: container\n }, children)));\n};\n/*#__PURE__*/ Object.assign($cb5cc270b50c6fcd$export$dd679ffb4362d2d4, {\n displayName: $cb5cc270b50c6fcd$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * PopoverContent\n * -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$CONTENT_NAME = 'PopoverContent';\nconst $cb5cc270b50c6fcd$export$d7e1f420b25549ff = /*#__PURE__*/ $am6gm$forwardRef((props, forwardedRef)=>{\n const portalContext = $cb5cc270b50c6fcd$var$usePortalContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);\n const { forceMount: forceMount = portalContext.forceMount , ...contentProps } = props;\n const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);\n return /*#__PURE__*/ $am6gm$createElement($am6gm$Presence, {\n present: forceMount || context.open\n }, context.modal ? /*#__PURE__*/ $am6gm$createElement($cb5cc270b50c6fcd$var$PopoverContentModal, $am6gm$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef\n })) : /*#__PURE__*/ $am6gm$createElement($cb5cc270b50c6fcd$var$PopoverContentNonModal, $am6gm$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($cb5cc270b50c6fcd$export$d7e1f420b25549ff, {\n displayName: $cb5cc270b50c6fcd$var$CONTENT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$PopoverContentModal = /*#__PURE__*/ $am6gm$forwardRef((props, forwardedRef)=>{\n const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);\n const contentRef = $am6gm$useRef(null);\n const composedRefs = $am6gm$useComposedRefs(forwardedRef, contentRef);\n const isRightClickOutsideRef = $am6gm$useRef(false); // aria-hide everything except the content (better supported equivalent to setting aria-modal)\n $am6gm$useEffect(()=>{\n const content = contentRef.current;\n if (content) return $am6gm$hideOthers(content);\n }, []);\n return /*#__PURE__*/ $am6gm$createElement($am6gm$RemoveScroll, {\n as: $am6gm$Slot,\n allowPinchZoom: true\n }, /*#__PURE__*/ $am6gm$createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, $am6gm$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs // we make sure we're not trapping once it's been closed\n ,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: $am6gm$composeEventHandlers(props.onCloseAutoFocus, (event)=>{\n var _context$triggerRef$c;\n event.preventDefault();\n if (!isRightClickOutsideRef.current) (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();\n }),\n onPointerDownOutside: $am6gm$composeEventHandlers(props.onPointerDownOutside, (event)=>{\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n isRightClickOutsideRef.current = isRightClick;\n }, {\n checkForDefaultPrevented: false\n }) // When focus is trapped, a `focusout` event may still happen.\n ,\n onFocusOutside: $am6gm$composeEventHandlers(props.onFocusOutside, (event)=>event.preventDefault()\n , {\n checkForDefaultPrevented: false\n })\n })));\n});\nconst $cb5cc270b50c6fcd$var$PopoverContentNonModal = /*#__PURE__*/ $am6gm$forwardRef((props, forwardedRef)=>{\n const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);\n const hasInteractedOutsideRef = $am6gm$useRef(false);\n const hasPointerDownOutsideRef = $am6gm$useRef(false);\n return /*#__PURE__*/ $am6gm$createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, $am6gm$babelruntimehelpersesmextends({}, props, {\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event)=>{\n var _props$onCloseAutoFoc;\n (_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);\n if (!event.defaultPrevented) {\n var _context$triggerRef$c2;\n if (!hasInteractedOutsideRef.current) (_context$triggerRef$c2 = context.triggerRef.current) === null || _context$triggerRef$c2 === void 0 || _context$triggerRef$c2.focus(); // Always prevent auto focus because we either focus manually or want user agent focus\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event)=>{\n var _props$onInteractOuts, _context$triggerRef$c3;\n (_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === 'pointerdown') hasPointerDownOutsideRef.current = true;\n } // Prevent dismissing when clicking the trigger.\n // As the trigger is already setup to close, without doing so would\n // cause it to close and immediately open.\n const target = event.target;\n const targetIsTrigger = (_context$triggerRef$c3 = context.triggerRef.current) === null || _context$triggerRef$c3 === void 0 ? void 0 : _context$triggerRef$c3.contains(target);\n if (targetIsTrigger) event.preventDefault(); // On Safari if the trigger is inside a container with tabIndex={0}, when clicked\n // we will get the pointer down outside event on the trigger, but then a subsequent\n // focus outside event on the container, we ignore any focus outside event when we've\n // already had a pointer down outside event.\n if (event.detail.originalEvent.type === 'focusin' && hasPointerDownOutsideRef.current) event.preventDefault();\n }\n }));\n});\n/* -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$PopoverContentImpl = /*#__PURE__*/ $am6gm$forwardRef((props, forwardedRef)=>{\n const { __scopePopover: __scopePopover , trapFocus: trapFocus , onOpenAutoFocus: onOpenAutoFocus , onCloseAutoFocus: onCloseAutoFocus , disableOutsidePointerEvents: disableOutsidePointerEvents , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , onFocusOutside: onFocusOutside , onInteractOutside: onInteractOutside , ...contentProps } = props;\n const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, __scopePopover);\n const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover); // Make sure the whole tree has focus guards as our `Popover` may be\n // the last element in the DOM (beacuse of the `Portal`)\n $am6gm$useFocusGuards();\n return /*#__PURE__*/ $am6gm$createElement($am6gm$FocusScope, {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus\n }, /*#__PURE__*/ $am6gm$createElement($am6gm$DismissableLayer, {\n asChild: true,\n disableOutsidePointerEvents: disableOutsidePointerEvents,\n onInteractOutside: onInteractOutside,\n onEscapeKeyDown: onEscapeKeyDown,\n onPointerDownOutside: onPointerDownOutside,\n onFocusOutside: onFocusOutside,\n onDismiss: ()=>context.onOpenChange(false)\n }, /*#__PURE__*/ $am6gm$createElement($am6gm$Content, $am6gm$babelruntimehelpersesmextends({\n \"data-state\": $cb5cc270b50c6fcd$var$getState(context.open),\n role: \"dialog\",\n id: context.contentId\n }, popperScope, contentProps, {\n ref: forwardedRef,\n style: {\n ...contentProps.style,\n '--radix-popover-content-transform-origin': 'var(--radix-popper-transform-origin)',\n '--radix-popover-content-available-width': 'var(--radix-popper-available-width)',\n '--radix-popover-content-available-height': 'var(--radix-popper-available-height)',\n '--radix-popover-trigger-width': 'var(--radix-popper-anchor-width)',\n '--radix-popover-trigger-height': 'var(--radix-popper-anchor-height)'\n }\n }))));\n});\n/* -------------------------------------------------------------------------------------------------\n * PopoverClose\n * -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$CLOSE_NAME = 'PopoverClose';\nconst $cb5cc270b50c6fcd$export$d6ac43ebaa40d53e = /*#__PURE__*/ $am6gm$forwardRef((props, forwardedRef)=>{\n const { __scopePopover: __scopePopover , ...closeProps } = props;\n const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CLOSE_NAME, __scopePopover);\n return /*#__PURE__*/ $am6gm$createElement($am6gm$Primitive.button, $am6gm$babelruntimehelpersesmextends({\n type: \"button\"\n }, closeProps, {\n ref: forwardedRef,\n onClick: $am6gm$composeEventHandlers(props.onClick, ()=>context.onOpenChange(false)\n )\n }));\n});\n/*#__PURE__*/ Object.assign($cb5cc270b50c6fcd$export$d6ac43ebaa40d53e, {\n displayName: $cb5cc270b50c6fcd$var$CLOSE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * PopoverArrow\n * -----------------------------------------------------------------------------------------------*/ const $cb5cc270b50c6fcd$var$ARROW_NAME = 'PopoverArrow';\nconst $cb5cc270b50c6fcd$export$3152841115e061b2 = /*#__PURE__*/ $am6gm$forwardRef((props, forwardedRef)=>{\n const { __scopePopover: __scopePopover , ...arrowProps } = props;\n const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);\n return /*#__PURE__*/ $am6gm$createElement($am6gm$Arrow, $am6gm$babelruntimehelpersesmextends({}, popperScope, arrowProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($cb5cc270b50c6fcd$export$3152841115e061b2, {\n displayName: $cb5cc270b50c6fcd$var$ARROW_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $cb5cc270b50c6fcd$var$getState(open) {\n return open ? 'open' : 'closed';\n}\nconst $cb5cc270b50c6fcd$export$be92b6f5f03c0fe9 = $cb5cc270b50c6fcd$export$5b6b19405a83ff9d;\nconst $cb5cc270b50c6fcd$export$b688253958b8dfe7 = $cb5cc270b50c6fcd$export$96e5381f42521a79;\nconst $cb5cc270b50c6fcd$export$41fb9f06171c75f4 = $cb5cc270b50c6fcd$export$7dacb05d26466c3;\nconst $cb5cc270b50c6fcd$export$602eac185826482c = $cb5cc270b50c6fcd$export$dd679ffb4362d2d4;\nconst $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2 = $cb5cc270b50c6fcd$export$d7e1f420b25549ff;\nconst $cb5cc270b50c6fcd$export$f39c2d165cd861fe = $cb5cc270b50c6fcd$export$d6ac43ebaa40d53e;\nconst $cb5cc270b50c6fcd$export$21b07c8f274aebd5 = $cb5cc270b50c6fcd$export$3152841115e061b2;\n\n\n\n\nexport {$cb5cc270b50c6fcd$export$c8393c9e73286932 as createPopoverScope, $cb5cc270b50c6fcd$export$5b6b19405a83ff9d as Popover, $cb5cc270b50c6fcd$export$96e5381f42521a79 as PopoverAnchor, $cb5cc270b50c6fcd$export$7dacb05d26466c3 as PopoverTrigger, $cb5cc270b50c6fcd$export$dd679ffb4362d2d4 as PopoverPortal, $cb5cc270b50c6fcd$export$d7e1f420b25549ff as PopoverContent, $cb5cc270b50c6fcd$export$d6ac43ebaa40d53e as PopoverClose, $cb5cc270b50c6fcd$export$3152841115e061b2 as PopoverArrow, $cb5cc270b50c6fcd$export$be92b6f5f03c0fe9 as Root, $cb5cc270b50c6fcd$export$b688253958b8dfe7 as Anchor, $cb5cc270b50c6fcd$export$41fb9f06171c75f4 as Trigger, $cb5cc270b50c6fcd$export$602eac185826482c as Portal, $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2 as Content, $cb5cc270b50c6fcd$export$f39c2d165cd861fe as Close, $cb5cc270b50c6fcd$export$21b07c8f274aebd5 as Arrow};\n","import $jbnEx$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $jbnEx$forwardRef, createElement as $jbnEx$createElement} from \"react\";\nimport {Primitive as $jbnEx$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Arrow\n * -----------------------------------------------------------------------------------------------*/ const $7e8f5cd07187803e$var$NAME = 'Arrow';\nconst $7e8f5cd07187803e$export$21b07c8f274aebd5 = /*#__PURE__*/ $jbnEx$forwardRef((props, forwardedRef)=>{\n const { children: children , width: width = 10 , height: height = 5 , ...arrowProps } = props;\n return /*#__PURE__*/ $jbnEx$createElement($jbnEx$Primitive.svg, $jbnEx$babelruntimehelpersesmextends({}, arrowProps, {\n ref: forwardedRef,\n width: width,\n height: height,\n viewBox: \"0 0 30 10\",\n preserveAspectRatio: \"none\"\n }), props.asChild ? children : /*#__PURE__*/ $jbnEx$createElement(\"polygon\", {\n points: \"0,0 30,0 15,10\"\n }));\n});\n/*#__PURE__*/ Object.assign($7e8f5cd07187803e$export$21b07c8f274aebd5, {\n displayName: $7e8f5cd07187803e$var$NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $7e8f5cd07187803e$export$be92b6f5f03c0fe9 = $7e8f5cd07187803e$export$21b07c8f274aebd5;\n\n\n\n\nexport {$7e8f5cd07187803e$export$21b07c8f274aebd5 as Arrow, $7e8f5cd07187803e$export$be92b6f5f03c0fe9 as Root};\n","import $kY93V$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useState as $kY93V$useState, createElement as $kY93V$createElement, forwardRef as $kY93V$forwardRef, useRef as $kY93V$useRef, useEffect as $kY93V$useEffect} from \"react\";\nimport {useFloating as $kY93V$useFloating, autoUpdate as $kY93V$autoUpdate, offset as $kY93V$offset, shift as $kY93V$shift, limitShift as $kY93V$limitShift, flip as $kY93V$flip, size as $kY93V$size, arrow as $kY93V$arrow, hide as $kY93V$hide} from \"@floating-ui/react-dom\";\nimport {Root as $kY93V$Root} from \"@radix-ui/react-arrow\";\nimport {useComposedRefs as $kY93V$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $kY93V$createContextScope} from \"@radix-ui/react-context\";\nimport {Primitive as $kY93V$Primitive} from \"@radix-ui/react-primitive\";\nimport {useCallbackRef as $kY93V$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\nimport {useLayoutEffect as $kY93V$useLayoutEffect} from \"@radix-ui/react-use-layout-effect\";\nimport {useSize as $kY93V$useSize} from \"@radix-ui/react-use-size\";\n\n\n\n\n\n\n\n\n\n\n\nconst $cf1ac5d9fe0e8206$export$36f0086da09c4b9f = [\n 'top',\n 'right',\n 'bottom',\n 'left'\n];\nconst $cf1ac5d9fe0e8206$export$3671ffab7b302fc9 = [\n 'start',\n 'center',\n 'end'\n];\n/* -------------------------------------------------------------------------------------------------\n * Popper\n * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$POPPER_NAME = 'Popper';\nconst [$cf1ac5d9fe0e8206$var$createPopperContext, $cf1ac5d9fe0e8206$export$722aac194ae923] = $kY93V$createContextScope($cf1ac5d9fe0e8206$var$POPPER_NAME);\nconst [$cf1ac5d9fe0e8206$var$PopperProvider, $cf1ac5d9fe0e8206$var$usePopperContext] = $cf1ac5d9fe0e8206$var$createPopperContext($cf1ac5d9fe0e8206$var$POPPER_NAME);\nconst $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9 = (props)=>{\n const { __scopePopper: __scopePopper , children: children } = props;\n const [anchor, setAnchor] = $kY93V$useState(null);\n return /*#__PURE__*/ $kY93V$createElement($cf1ac5d9fe0e8206$var$PopperProvider, {\n scope: __scopePopper,\n anchor: anchor,\n onAnchorChange: setAnchor\n }, children);\n};\n/*#__PURE__*/ Object.assign($cf1ac5d9fe0e8206$export$badac9ada3a0bdf9, {\n displayName: $cf1ac5d9fe0e8206$var$POPPER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * PopperAnchor\n * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$ANCHOR_NAME = 'PopperAnchor';\nconst $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d = /*#__PURE__*/ $kY93V$forwardRef((props, forwardedRef)=>{\n const { __scopePopper: __scopePopper , virtualRef: virtualRef , ...anchorProps } = props;\n const context = $cf1ac5d9fe0e8206$var$usePopperContext($cf1ac5d9fe0e8206$var$ANCHOR_NAME, __scopePopper);\n const ref = $kY93V$useRef(null);\n const composedRefs = $kY93V$useComposedRefs(forwardedRef, ref);\n $kY93V$useEffect(()=>{\n // Consumer can anchor the popper to something that isn't\n // a DOM node e.g. pointer position, so we override the\n // `anchorRef` with their virtual ref in this case.\n context.onAnchorChange((virtualRef === null || virtualRef === void 0 ? void 0 : virtualRef.current) || ref.current);\n });\n return virtualRef ? null : /*#__PURE__*/ $kY93V$createElement($kY93V$Primitive.div, $kY93V$babelruntimehelpersesmextends({}, anchorProps, {\n ref: composedRefs\n }));\n});\n/*#__PURE__*/ Object.assign($cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d, {\n displayName: $cf1ac5d9fe0e8206$var$ANCHOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * PopperContent\n * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$CONTENT_NAME = 'PopperContent';\nconst [$cf1ac5d9fe0e8206$var$PopperContentProvider, $cf1ac5d9fe0e8206$var$useContentContext] = $cf1ac5d9fe0e8206$var$createPopperContext($cf1ac5d9fe0e8206$var$CONTENT_NAME);\nconst $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /*#__PURE__*/ $kY93V$forwardRef((props, forwardedRef)=>{\n var _arrowSize$width, _arrowSize$height, _middlewareData$arrow, _middlewareData$arrow2, _middlewareData$arrow3, _middlewareData$trans, _middlewareData$trans2, _middlewareData$hide;\n const { __scopePopper: __scopePopper , side: side = 'bottom' , sideOffset: sideOffset = 0 , align: align = 'center' , alignOffset: alignOffset = 0 , arrowPadding: arrowPadding = 0 , avoidCollisions: avoidCollisions = true , collisionBoundary: collisionBoundary = [] , collisionPadding: collisionPaddingProp = 0 , sticky: sticky = 'partial' , hideWhenDetached: hideWhenDetached = false , updatePositionStrategy: updatePositionStrategy = 'optimized' , onPlaced: onPlaced , ...contentProps } = props;\n const context = $cf1ac5d9fe0e8206$var$usePopperContext($cf1ac5d9fe0e8206$var$CONTENT_NAME, __scopePopper);\n const [content, setContent] = $kY93V$useState(null);\n const composedRefs = $kY93V$useComposedRefs(forwardedRef, (node)=>setContent(node)\n );\n const [arrow, setArrow] = $kY93V$useState(null);\n const arrowSize = $kY93V$useSize(arrow);\n const arrowWidth = (_arrowSize$width = arrowSize === null || arrowSize === void 0 ? void 0 : arrowSize.width) !== null && _arrowSize$width !== void 0 ? _arrowSize$width : 0;\n const arrowHeight = (_arrowSize$height = arrowSize === null || arrowSize === void 0 ? void 0 : arrowSize.height) !== null && _arrowSize$height !== void 0 ? _arrowSize$height : 0;\n const desiredPlacement = side + (align !== 'center' ? '-' + align : '');\n const collisionPadding = typeof collisionPaddingProp === 'number' ? collisionPaddingProp : {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...collisionPaddingProp\n };\n const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [\n collisionBoundary\n ];\n const hasExplicitBoundaries = boundary.length > 0;\n const detectOverflowOptions = {\n padding: collisionPadding,\n boundary: boundary.filter($cf1ac5d9fe0e8206$var$isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: hasExplicitBoundaries\n };\n const { refs: refs , floatingStyles: floatingStyles , placement: placement , isPositioned: isPositioned , middlewareData: middlewareData } = $kY93V$useFloating({\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: 'fixed',\n placement: desiredPlacement,\n whileElementsMounted: (...args)=>{\n const cleanup = $kY93V$autoUpdate(...args, {\n animationFrame: updatePositionStrategy === 'always'\n });\n return cleanup;\n },\n elements: {\n reference: context.anchor\n },\n middleware: [\n $kY93V$offset({\n mainAxis: sideOffset + arrowHeight,\n alignmentAxis: alignOffset\n }),\n avoidCollisions && $kY93V$shift({\n mainAxis: true,\n crossAxis: false,\n limiter: sticky === 'partial' ? $kY93V$limitShift() : undefined,\n ...detectOverflowOptions\n }),\n avoidCollisions && $kY93V$flip({\n ...detectOverflowOptions\n }),\n $kY93V$size({\n ...detectOverflowOptions,\n apply: ({ elements: elements , rects: rects , availableWidth: availableWidth , availableHeight: availableHeight })=>{\n const { width: anchorWidth , height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty('--radix-popper-available-width', `${availableWidth}px`);\n contentStyle.setProperty('--radix-popper-available-height', `${availableHeight}px`);\n contentStyle.setProperty('--radix-popper-anchor-width', `${anchorWidth}px`);\n contentStyle.setProperty('--radix-popper-anchor-height', `${anchorHeight}px`);\n }\n }),\n arrow && $kY93V$arrow({\n element: arrow,\n padding: arrowPadding\n }),\n $cf1ac5d9fe0e8206$var$transformOrigin({\n arrowWidth: arrowWidth,\n arrowHeight: arrowHeight\n }),\n hideWhenDetached && $kY93V$hide({\n strategy: 'referenceHidden',\n ...detectOverflowOptions\n })\n ]\n });\n const [placedSide, placedAlign] = $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement);\n const handlePlaced = $kY93V$useCallbackRef(onPlaced);\n $kY93V$useLayoutEffect(()=>{\n if (isPositioned) handlePlaced === null || handlePlaced === void 0 || handlePlaced();\n }, [\n isPositioned,\n handlePlaced\n ]);\n const arrowX = (_middlewareData$arrow = middlewareData.arrow) === null || _middlewareData$arrow === void 0 ? void 0 : _middlewareData$arrow.x;\n const arrowY = (_middlewareData$arrow2 = middlewareData.arrow) === null || _middlewareData$arrow2 === void 0 ? void 0 : _middlewareData$arrow2.y;\n const cannotCenterArrow = ((_middlewareData$arrow3 = middlewareData.arrow) === null || _middlewareData$arrow3 === void 0 ? void 0 : _middlewareData$arrow3.centerOffset) !== 0;\n const [contentZIndex, setContentZIndex] = $kY93V$useState();\n $kY93V$useLayoutEffect(()=>{\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [\n content\n ]);\n return /*#__PURE__*/ $kY93V$createElement(\"div\", {\n ref: refs.setFloating,\n \"data-radix-popper-content-wrapper\": \"\",\n style: {\n ...floatingStyles,\n transform: isPositioned ? floatingStyles.transform : 'translate(0, -200%)',\n // keep off the page when measuring\n minWidth: 'max-content',\n zIndex: contentZIndex,\n ['--radix-popper-transform-origin']: [\n (_middlewareData$trans = middlewareData.transformOrigin) === null || _middlewareData$trans === void 0 ? void 0 : _middlewareData$trans.x,\n (_middlewareData$trans2 = middlewareData.transformOrigin) === null || _middlewareData$trans2 === void 0 ? void 0 : _middlewareData$trans2.y\n ].join(' ')\n } // Floating UI interally calculates logical alignment based the `dir` attribute on\n ,\n dir: props.dir\n }, /*#__PURE__*/ $kY93V$createElement($cf1ac5d9fe0e8206$var$PopperContentProvider, {\n scope: __scopePopper,\n placedSide: placedSide,\n onArrowChange: setArrow,\n arrowX: arrowX,\n arrowY: arrowY,\n shouldHideArrow: cannotCenterArrow\n }, /*#__PURE__*/ $kY93V$createElement($kY93V$Primitive.div, $kY93V$babelruntimehelpersesmextends({\n \"data-side\": placedSide,\n \"data-align\": placedAlign\n }, contentProps, {\n ref: composedRefs,\n style: {\n ...contentProps.style,\n // if the PopperContent hasn't been placed yet (not all measurements done)\n // we prevent animations so that users's animation don't kick in too early referring wrong sides\n animation: !isPositioned ? 'none' : undefined,\n // hide the content if using the hide middleware and should be hidden\n opacity: (_middlewareData$hide = middlewareData.hide) !== null && _middlewareData$hide !== void 0 && _middlewareData$hide.referenceHidden ? 0 : undefined\n }\n }))));\n});\n/*#__PURE__*/ Object.assign($cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc, {\n displayName: $cf1ac5d9fe0e8206$var$CONTENT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * PopperArrow\n * -----------------------------------------------------------------------------------------------*/ const $cf1ac5d9fe0e8206$var$ARROW_NAME = 'PopperArrow';\nconst $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE = {\n top: 'bottom',\n right: 'left',\n bottom: 'top',\n left: 'right'\n};\nconst $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 = /*#__PURE__*/ $kY93V$forwardRef(function $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0(props, forwardedRef) {\n const { __scopePopper: __scopePopper , ...arrowProps } = props;\n const contentContext = $cf1ac5d9fe0e8206$var$useContentContext($cf1ac5d9fe0e8206$var$ARROW_NAME, __scopePopper);\n const baseSide = $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE[contentContext.placedSide];\n return(/*#__PURE__*/ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)\n // doesn't report size as we'd expect on SVG elements.\n // it reports their bounding box which is effectively the largest path inside the SVG.\n $kY93V$createElement(\"span\", {\n ref: contentContext.onArrowChange,\n style: {\n position: 'absolute',\n left: contentContext.arrowX,\n top: contentContext.arrowY,\n [baseSide]: 0,\n transformOrigin: {\n top: '',\n right: '0 0',\n bottom: 'center 0',\n left: '100% 0'\n }[contentContext.placedSide],\n transform: {\n top: 'translateY(100%)',\n right: 'translateY(50%) rotate(90deg) translateX(-50%)',\n bottom: `rotate(180deg)`,\n left: 'translateY(50%) rotate(-90deg) translateX(50%)'\n }[contentContext.placedSide],\n visibility: contentContext.shouldHideArrow ? 'hidden' : undefined\n }\n }, /*#__PURE__*/ $kY93V$createElement($kY93V$Root, $kY93V$babelruntimehelpersesmextends({}, arrowProps, {\n ref: forwardedRef,\n style: {\n ...arrowProps.style,\n // ensures the element can be measured correctly (mostly for if SVG)\n display: 'block'\n }\n }))));\n});\n/*#__PURE__*/ Object.assign($cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0, {\n displayName: $cf1ac5d9fe0e8206$var$ARROW_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $cf1ac5d9fe0e8206$var$isNotNull(value) {\n return value !== null;\n}\nconst $cf1ac5d9fe0e8206$var$transformOrigin = (options)=>({\n name: 'transformOrigin',\n options: options,\n fn (data) {\n var _middlewareData$arrow4, _middlewareData$arrow5, _middlewareData$arrow6, _middlewareData$arrow7, _middlewareData$arrow8;\n const { placement: placement , rects: rects , middlewareData: middlewareData } = data;\n const cannotCenterArrow = ((_middlewareData$arrow4 = middlewareData.arrow) === null || _middlewareData$arrow4 === void 0 ? void 0 : _middlewareData$arrow4.centerOffset) !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement);\n const noArrowAlign = {\n start: '0%',\n center: '50%',\n end: '100%'\n }[placedAlign];\n const arrowXCenter = ((_middlewareData$arrow5 = (_middlewareData$arrow6 = middlewareData.arrow) === null || _middlewareData$arrow6 === void 0 ? void 0 : _middlewareData$arrow6.x) !== null && _middlewareData$arrow5 !== void 0 ? _middlewareData$arrow5 : 0) + arrowWidth / 2;\n const arrowYCenter = ((_middlewareData$arrow7 = (_middlewareData$arrow8 = middlewareData.arrow) === null || _middlewareData$arrow8 === void 0 ? void 0 : _middlewareData$arrow8.y) !== null && _middlewareData$arrow7 !== void 0 ? _middlewareData$arrow7 : 0) + arrowHeight / 2;\n let x = '';\n let y = '';\n if (placedSide === 'bottom') {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === 'top') {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === 'right') {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === 'left') {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return {\n data: {\n x: x,\n y: y\n }\n };\n }\n })\n;\nfunction $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement) {\n const [side, align = 'center'] = placement.split('-');\n return [\n side,\n align\n ];\n}\nconst $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9 = $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9;\nconst $cf1ac5d9fe0e8206$export$b688253958b8dfe7 = $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d;\nconst $cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2 = $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc;\nconst $cf1ac5d9fe0e8206$export$21b07c8f274aebd5 = $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0;\n\n\n\n\nexport {$cf1ac5d9fe0e8206$export$722aac194ae923 as createPopperScope, $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9 as Popper, $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d as PopperAnchor, $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc as PopperContent, $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 as PopperArrow, $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9 as Root, $cf1ac5d9fe0e8206$export$b688253958b8dfe7 as Anchor, $cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2 as Content, $cf1ac5d9fe0e8206$export$21b07c8f274aebd5 as Arrow, $cf1ac5d9fe0e8206$export$36f0086da09c4b9f as SIDE_OPTIONS, $cf1ac5d9fe0e8206$export$3671ffab7b302fc9 as ALIGN_OPTIONS};\n","import $7SXl2$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $7SXl2$forwardRef, createElement as $7SXl2$createElement} from \"react\";\nimport $7SXl2$reactdom from \"react-dom\";\nimport {Primitive as $7SXl2$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Portal\n * -----------------------------------------------------------------------------------------------*/ const $f1701beae083dbae$var$PORTAL_NAME = 'Portal';\nconst $f1701beae083dbae$export$602eac185826482c = /*#__PURE__*/ $7SXl2$forwardRef((props, forwardedRef)=>{\n var _globalThis$document;\n const { container: container = globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.body , ...portalProps } = props;\n return container ? /*#__PURE__*/ $7SXl2$reactdom.createPortal(/*#__PURE__*/ $7SXl2$createElement($7SXl2$Primitive.div, $7SXl2$babelruntimehelpersesmextends({}, portalProps, {\n ref: forwardedRef\n })), container) : null;\n});\n/*#__PURE__*/ Object.assign($f1701beae083dbae$export$602eac185826482c, {\n displayName: $f1701beae083dbae$var$PORTAL_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $f1701beae083dbae$export$be92b6f5f03c0fe9 = $f1701beae083dbae$export$602eac185826482c;\n\n\n\n\nexport {$f1701beae083dbae$export$602eac185826482c as Portal, $f1701beae083dbae$export$be92b6f5f03c0fe9 as Root};\n","\"use client\";\n\n// packages/react/portal/src/Portal.tsx\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\nexport {\n Portal,\n Root\n};\n","import {Children as $iqq3r$Children, cloneElement as $iqq3r$cloneElement, useState as $iqq3r$useState, useRef as $iqq3r$useRef, useEffect as $iqq3r$useEffect, useCallback as $iqq3r$useCallback, useReducer as $iqq3r$useReducer} from \"react\";\nimport {flushSync as $iqq3r$flushSync} from \"react-dom\";\nimport {useComposedRefs as $iqq3r$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {useLayoutEffect as $iqq3r$useLayoutEffect} from \"@radix-ui/react-use-layout-effect\";\n\n\n\n\n\n\nfunction $fe963b355347cc68$export$3e6543de14f8614f(initialState, machine) {\n return $iqq3r$useReducer((state, event)=>{\n const nextState = machine[state][event];\n return nextState !== null && nextState !== void 0 ? nextState : state;\n }, initialState);\n}\n\n\nconst $921a889cee6df7e8$export$99c2b779aa4e8b8b = (props)=>{\n const { present: present , children: children } = props;\n const presence = $921a889cee6df7e8$var$usePresence(present);\n const child = typeof children === 'function' ? children({\n present: presence.isPresent\n }) : $iqq3r$Children.only(children);\n const ref = $iqq3r$useComposedRefs(presence.ref, child.ref);\n const forceMount = typeof children === 'function';\n return forceMount || presence.isPresent ? /*#__PURE__*/ $iqq3r$cloneElement(child, {\n ref: ref\n }) : null;\n};\n$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName = 'Presence';\n/* -------------------------------------------------------------------------------------------------\n * usePresence\n * -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$usePresence(present) {\n const [node1, setNode] = $iqq3r$useState();\n const stylesRef = $iqq3r$useRef({});\n const prevPresentRef = $iqq3r$useRef(present);\n const prevAnimationNameRef = $iqq3r$useRef('none');\n const initialState = present ? 'mounted' : 'unmounted';\n const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f(initialState, {\n mounted: {\n UNMOUNT: 'unmounted',\n ANIMATION_OUT: 'unmountSuspended'\n },\n unmountSuspended: {\n MOUNT: 'mounted',\n ANIMATION_END: 'unmounted'\n },\n unmounted: {\n MOUNT: 'mounted'\n }\n });\n $iqq3r$useEffect(()=>{\n const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';\n }, [\n state\n ]);\n $iqq3r$useLayoutEffect(()=>{\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(styles);\n if (present) send('MOUNT');\n else if (currentAnimationName === 'none' || (styles === null || styles === void 0 ? void 0 : styles.display) === 'none') // If there is no exit animation or the element is hidden, animations won't run\n // so we unmount instantly\n send('UNMOUNT');\n else {\n /**\n * When `present` changes to `false`, we check changes to animation-name to\n * determine whether an animation has started. We chose this approach (reading\n * computed styles) because there is no `animationrun` event and `animationstart`\n * fires after `animation-delay` has expired which would be too late.\n */ const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) send('ANIMATION_OUT');\n else send('UNMOUNT');\n }\n prevPresentRef.current = present;\n }\n }, [\n present,\n send\n ]);\n $iqq3r$useLayoutEffect(()=>{\n if (node1) {\n /**\n * Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel`\n * event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we\n * make sure we only trigger ANIMATION_END for the currently active animation.\n */ const handleAnimationEnd = (event)=>{\n const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node1 && isCurrentAnimation) // With React 18 concurrency this update is applied\n // a frame after the animation ends, creating a flash of visible content.\n // By manually flushing we ensure they sync within a frame, removing the flash.\n $iqq3r$flushSync(()=>send('ANIMATION_END')\n );\n };\n const handleAnimationStart = (event)=>{\n if (event.target === node1) // if animation occurred, store its name as the previous animation.\n prevAnimationNameRef.current = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);\n };\n node1.addEventListener('animationstart', handleAnimationStart);\n node1.addEventListener('animationcancel', handleAnimationEnd);\n node1.addEventListener('animationend', handleAnimationEnd);\n return ()=>{\n node1.removeEventListener('animationstart', handleAnimationStart);\n node1.removeEventListener('animationcancel', handleAnimationEnd);\n node1.removeEventListener('animationend', handleAnimationEnd);\n };\n } else // Transition to the unmounted state if the node is removed prematurely.\n // We avoid doing so during cleanup as the node may change but still exist.\n send('ANIMATION_END');\n }, [\n node1,\n send\n ]);\n return {\n isPresent: [\n 'mounted',\n 'unmountSuspended'\n ].includes(state),\n ref: $iqq3r$useCallback((node)=>{\n if (node) stylesRef.current = getComputedStyle(node);\n setNode(node);\n }, [])\n };\n}\n/* -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$getAnimationName(styles) {\n return (styles === null || styles === void 0 ? void 0 : styles.animationName) || 'none';\n}\n\n\n\n\nexport {$921a889cee6df7e8$export$99c2b779aa4e8b8b as Presence};\n","\"use client\";\n\n// packages/react/presence/src/Presence.tsx\nimport * as React2 from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/useStateMachine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/Presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n ReactDOM.flushSync(() => send(\"ANIMATION_END\"));\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Presence\n};\n","import $4q5Fq$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $4q5Fq$forwardRef, useEffect as $4q5Fq$useEffect, createElement as $4q5Fq$createElement} from \"react\";\nimport {flushSync as $4q5Fq$flushSync} from \"react-dom\";\nimport {Slot as $4q5Fq$Slot} from \"@radix-ui/react-slot\";\n\n\n\n\n\nconst $8927f6f2acc4f386$var$NODES = [\n 'a',\n 'button',\n 'div',\n 'form',\n 'h2',\n 'h3',\n 'img',\n 'input',\n 'label',\n 'li',\n 'nav',\n 'ol',\n 'p',\n 'span',\n 'svg',\n 'ul'\n]; // Temporary while we await merge of this fix:\n// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/55396\n// prettier-ignore\n/* -------------------------------------------------------------------------------------------------\n * Primitive\n * -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce((primitive, node)=>{\n const Node = /*#__PURE__*/ $4q5Fq$forwardRef((props, forwardedRef)=>{\n const { asChild: asChild , ...primitiveProps } = props;\n const Comp = asChild ? $4q5Fq$Slot : node;\n $4q5Fq$useEffect(()=>{\n window[Symbol.for('radix-ui')] = true;\n }, []);\n return /*#__PURE__*/ $4q5Fq$createElement(Comp, $4q5Fq$babelruntimehelpersesmextends({}, primitiveProps, {\n ref: forwardedRef\n }));\n });\n Node.displayName = `Primitive.${node}`;\n return {\n ...primitive,\n [node]: Node\n };\n}, {});\n/* -------------------------------------------------------------------------------------------------\n * Utils\n * -----------------------------------------------------------------------------------------------*/ /**\n * Flush custom event dispatch\n * https://github.com/radix-ui/primitives/pull/1378\n *\n * React batches *all* event handlers since version 18, this introduces certain considerations when using custom event types.\n *\n * Internally, React prioritises events in the following order:\n * - discrete\n * - continuous\n * - default\n *\n * https://github.com/facebook/react/blob/a8a4742f1c54493df00da648a3f9d26e3db9c8b5/packages/react-dom/src/events/ReactDOMEventListener.js#L294-L350\n *\n * `discrete` is an important distinction as updates within these events are applied immediately.\n * React however, is not able to infer the priority of custom event types due to how they are detected internally.\n * Because of this, it's possible for updates from custom events to be unexpectedly batched when\n * dispatched by another `discrete` event.\n *\n * In order to ensure that updates from custom events are applied predictably, we need to manually flush the batch.\n * This utility should be used when dispatching a custom event from within another `discrete` event, this utility\n * is not nessesary when dispatching known event types, or if dispatching a custom type inside a non-discrete event.\n * For example:\n *\n * dispatching a known click 👎\n * target.dispatchEvent(new Event(‘click’))\n *\n * dispatching a custom type within a non-discrete event 👎\n * onScroll={(event) => event.target.dispatchEvent(new CustomEvent(‘customType’))}\n *\n * dispatching a custom type within a `discrete` event 👍\n * onPointerDown={(event) => dispatchDiscreteCustomEvent(event.target, new CustomEvent(‘customType’))}\n *\n * Note: though React classifies `focus`, `focusin` and `focusout` events as `discrete`, it's not recommended to use\n * this utility with them. This is because it's possible for those handlers to be called implicitly during render\n * e.g. when focus is within a component as it is unmounted, or when managing focus on mount.\n */ function $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event) {\n if (target) $4q5Fq$flushSync(()=>target.dispatchEvent(event)\n );\n}\n/* -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$be92b6f5f03c0fe9 = $8927f6f2acc4f386$export$250ffa63cdc0d034;\n\n\n\n\nexport {$8927f6f2acc4f386$export$250ffa63cdc0d034 as Primitive, $8927f6f2acc4f386$export$be92b6f5f03c0fe9 as Root, $8927f6f2acc4f386$export$6d1a0317bde7de7f as dispatchDiscreteCustomEvent};\n","// packages/react/primitive/src/Primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n","import $98Iye$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $98Iye$forwardRef, createElement as $98Iye$createElement, useRef as $98Iye$useRef, useState as $98Iye$useState, useEffect as $98Iye$useEffect, useCallback as $98Iye$useCallback} from \"react\";\nimport {composeEventHandlers as $98Iye$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {createCollection as $98Iye$createCollection} from \"@radix-ui/react-collection\";\nimport {useComposedRefs as $98Iye$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $98Iye$createContextScope} from \"@radix-ui/react-context\";\nimport {useId as $98Iye$useId} from \"@radix-ui/react-id\";\nimport {Primitive as $98Iye$Primitive} from \"@radix-ui/react-primitive\";\nimport {useCallbackRef as $98Iye$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\nimport {useControllableState as $98Iye$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {useDirection as $98Iye$useDirection} from \"@radix-ui/react-direction\";\n\n\n\n\n\n\n\n\n\n\n\n\nconst $d7bdfb9eb0fdf311$var$ENTRY_FOCUS = 'rovingFocusGroup.onEntryFocus';\nconst $d7bdfb9eb0fdf311$var$EVENT_OPTIONS = {\n bubbles: false,\n cancelable: true\n};\n/* -------------------------------------------------------------------------------------------------\n * RovingFocusGroup\n * -----------------------------------------------------------------------------------------------*/ const $d7bdfb9eb0fdf311$var$GROUP_NAME = 'RovingFocusGroup';\nconst [$d7bdfb9eb0fdf311$var$Collection, $d7bdfb9eb0fdf311$var$useCollection, $d7bdfb9eb0fdf311$var$createCollectionScope] = $98Iye$createCollection($d7bdfb9eb0fdf311$var$GROUP_NAME);\nconst [$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext, $d7bdfb9eb0fdf311$export$c7109489551a4f4] = $98Iye$createContextScope($d7bdfb9eb0fdf311$var$GROUP_NAME, [\n $d7bdfb9eb0fdf311$var$createCollectionScope\n]);\nconst [$d7bdfb9eb0fdf311$var$RovingFocusProvider, $d7bdfb9eb0fdf311$var$useRovingFocusContext] = $d7bdfb9eb0fdf311$var$createRovingFocusGroupContext($d7bdfb9eb0fdf311$var$GROUP_NAME);\nconst $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /*#__PURE__*/ $98Iye$forwardRef((props, forwardedRef)=>{\n return /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$Collection.Provider, {\n scope: props.__scopeRovingFocusGroup\n }, /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$Collection.Slot, {\n scope: props.__scopeRovingFocusGroup\n }, /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, $98Iye$babelruntimehelpersesmextends({}, props, {\n ref: forwardedRef\n }))));\n});\n/*#__PURE__*/ Object.assign($d7bdfb9eb0fdf311$export$8699f7c8af148338, {\n displayName: $d7bdfb9eb0fdf311$var$GROUP_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /*#__PURE__*/ $98Iye$forwardRef((props, forwardedRef)=>{\n const { __scopeRovingFocusGroup: __scopeRovingFocusGroup , orientation: orientation , loop: loop = false , dir: dir , currentTabStopId: currentTabStopIdProp , defaultCurrentTabStopId: defaultCurrentTabStopId , onCurrentTabStopIdChange: onCurrentTabStopIdChange , onEntryFocus: onEntryFocus , ...groupProps } = props;\n const ref = $98Iye$useRef(null);\n const composedRefs = $98Iye$useComposedRefs(forwardedRef, ref);\n const direction = $98Iye$useDirection(dir);\n const [currentTabStopId = null, setCurrentTabStopId] = $98Iye$useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId,\n onChange: onCurrentTabStopIdChange\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = $98Iye$useState(false);\n const handleEntryFocus = $98Iye$useCallbackRef(onEntryFocus);\n const getItems = $d7bdfb9eb0fdf311$var$useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = $98Iye$useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = $98Iye$useState(0);\n $98Iye$useEffect(()=>{\n const node = ref.current;\n if (node) {\n node.addEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS, handleEntryFocus);\n return ()=>node.removeEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS, handleEntryFocus)\n ;\n }\n }, [\n handleEntryFocus\n ]);\n return /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$RovingFocusProvider, {\n scope: __scopeRovingFocusGroup,\n orientation: orientation,\n dir: direction,\n loop: loop,\n currentTabStopId: currentTabStopId,\n onItemFocus: $98Iye$useCallback((tabStopId)=>setCurrentTabStopId(tabStopId)\n , [\n setCurrentTabStopId\n ]),\n onItemShiftTab: $98Iye$useCallback(()=>setIsTabbingBackOut(true)\n , []),\n onFocusableItemAdd: $98Iye$useCallback(()=>setFocusableItemsCount((prevCount)=>prevCount + 1\n )\n , []),\n onFocusableItemRemove: $98Iye$useCallback(()=>setFocusableItemsCount((prevCount)=>prevCount - 1\n )\n , [])\n }, /*#__PURE__*/ $98Iye$createElement($98Iye$Primitive.div, $98Iye$babelruntimehelpersesmextends({\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation\n }, groupProps, {\n ref: composedRefs,\n style: {\n outline: 'none',\n ...props.style\n },\n onMouseDown: $98Iye$composeEventHandlers(props.onMouseDown, ()=>{\n isClickFocusRef.current = true;\n }),\n onFocus: $98Iye$composeEventHandlers(props.onFocus, (event)=>{\n // We normally wouldn't need this check, because we already check\n // that the focus is on the current target and not bubbling to it.\n // We do this because Safari doesn't focus buttons when clicked, and\n // instead, the wrapper will get focused and not through a bubbling event.\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent($d7bdfb9eb0fdf311$var$ENTRY_FOCUS, $d7bdfb9eb0fdf311$var$EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item)=>item.focusable\n );\n const activeItem = items.find((item)=>item.active\n );\n const currentItem = items.find((item)=>item.id === currentTabStopId\n );\n const candidateItems = [\n activeItem,\n currentItem,\n ...items\n ].filter(Boolean);\n const candidateNodes = candidateItems.map((item)=>item.ref.current\n );\n $d7bdfb9eb0fdf311$var$focusFirst(candidateNodes);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: $98Iye$composeEventHandlers(props.onBlur, ()=>setIsTabbingBackOut(false)\n )\n })));\n});\n/* -------------------------------------------------------------------------------------------------\n * RovingFocusGroupItem\n * -----------------------------------------------------------------------------------------------*/ const $d7bdfb9eb0fdf311$var$ITEM_NAME = 'RovingFocusGroupItem';\nconst $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /*#__PURE__*/ $98Iye$forwardRef((props, forwardedRef)=>{\n const { __scopeRovingFocusGroup: __scopeRovingFocusGroup , focusable: focusable = true , active: active = false , tabStopId: tabStopId , ...itemProps } = props;\n const autoId = $98Iye$useId();\n const id = tabStopId || autoId;\n const context = $d7bdfb9eb0fdf311$var$useRovingFocusContext($d7bdfb9eb0fdf311$var$ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = $d7bdfb9eb0fdf311$var$useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd: onFocusableItemAdd , onFocusableItemRemove: onFocusableItemRemove } = context;\n $98Iye$useEffect(()=>{\n if (focusable) {\n onFocusableItemAdd();\n return ()=>onFocusableItemRemove()\n ;\n }\n }, [\n focusable,\n onFocusableItemAdd,\n onFocusableItemRemove\n ]);\n return /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$Collection.ItemSlot, {\n scope: __scopeRovingFocusGroup,\n id: id,\n focusable: focusable,\n active: active\n }, /*#__PURE__*/ $98Iye$createElement($98Iye$Primitive.span, $98Iye$babelruntimehelpersesmextends({\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation\n }, itemProps, {\n ref: forwardedRef,\n onMouseDown: $98Iye$composeEventHandlers(props.onMouseDown, (event)=>{\n // We prevent focusing non-focusable items on `mousedown`.\n // Even though the item has tabIndex={-1}, that only means take it out of the tab order.\n if (!focusable) event.preventDefault(); // Safari doesn't focus a button when clicked so we run our logic on mousedown also\n else context.onItemFocus(id);\n }),\n onFocus: $98Iye$composeEventHandlers(props.onFocus, ()=>context.onItemFocus(id)\n ),\n onKeyDown: $98Iye$composeEventHandlers(props.onKeyDown, (event)=>{\n if (event.key === 'Tab' && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = $d7bdfb9eb0fdf311$var$getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== undefined) {\n event.preventDefault();\n const items = getItems().filter((item)=>item.focusable\n );\n let candidateNodes = items.map((item)=>item.ref.current\n );\n if (focusIntent === 'last') candidateNodes.reverse();\n else if (focusIntent === 'prev' || focusIntent === 'next') {\n if (focusIntent === 'prev') candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? $d7bdfb9eb0fdf311$var$wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n /**\n * Imperative focus during keydown is risky so we prevent React's batching updates\n * to avoid potential bugs. See: https://github.com/facebook/react/issues/20332\n */ setTimeout(()=>$d7bdfb9eb0fdf311$var$focusFirst(candidateNodes)\n );\n }\n })\n })));\n});\n/*#__PURE__*/ Object.assign($d7bdfb9eb0fdf311$export$ab9df7c53fe8454, {\n displayName: $d7bdfb9eb0fdf311$var$ITEM_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ // prettier-ignore\nconst $d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: 'prev',\n ArrowUp: 'prev',\n ArrowRight: 'next',\n ArrowDown: 'next',\n PageUp: 'first',\n Home: 'first',\n PageDown: 'last',\n End: 'last'\n};\nfunction $d7bdfb9eb0fdf311$var$getDirectionAwareKey(key, dir) {\n if (dir !== 'rtl') return key;\n return key === 'ArrowLeft' ? 'ArrowRight' : key === 'ArrowRight' ? 'ArrowLeft' : key;\n}\nfunction $d7bdfb9eb0fdf311$var$getFocusIntent(event, orientation, dir) {\n const key = $d7bdfb9eb0fdf311$var$getDirectionAwareKey(event.key, dir);\n if (orientation === 'vertical' && [\n 'ArrowLeft',\n 'ArrowRight'\n ].includes(key)) return undefined;\n if (orientation === 'horizontal' && [\n 'ArrowUp',\n 'ArrowDown'\n ].includes(key)) return undefined;\n return $d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction $d7bdfb9eb0fdf311$var$focusFirst(candidates) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates){\n // if focus is already where we want to go, we don't want to keep going through the candidates\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\n/**\n * Wraps an array around itself at a given start index\n * Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`\n */ function $d7bdfb9eb0fdf311$var$wrapArray(array, startIndex) {\n return array.map((_, index)=>array[(startIndex + index) % array.length]\n );\n}\nconst $d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9 = $d7bdfb9eb0fdf311$export$8699f7c8af148338;\nconst $d7bdfb9eb0fdf311$export$6d08773d2e66f8f2 = $d7bdfb9eb0fdf311$export$ab9df7c53fe8454;\n\n\n\n\nexport {$d7bdfb9eb0fdf311$export$c7109489551a4f4 as createRovingFocusGroupScope, $d7bdfb9eb0fdf311$export$8699f7c8af148338 as RovingFocusGroup, $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 as RovingFocusGroupItem, $d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9 as Root, $d7bdfb9eb0fdf311$export$6d08773d2e66f8f2 as Item};\n","\"use client\";\n\n// packages/react/roving-focus/src/RovingFocusGroup.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId = null, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId,\n onChange: onCurrentTabStopIdChange\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n })\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n","function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(value, [min, max]) {\n return Math.min(max, Math.max(min, value));\n}\n\n\n\n\nexport {$ae6933e535247d3d$export$7d15b64cf5a3a4c4 as clamp};\n","import $01b9c$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useState as $01b9c$useState, useRef as $01b9c$useRef, createElement as $01b9c$createElement, useCallback as $01b9c$useCallback, forwardRef as $01b9c$forwardRef, Fragment as $01b9c$Fragment, useEffect as $01b9c$useEffect, useMemo as $01b9c$useMemo} from \"react\";\nimport {createPortal as $01b9c$createPortal} from \"react-dom\";\nimport {clamp as $01b9c$clamp} from \"@radix-ui/number\";\nimport {composeEventHandlers as $01b9c$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {createCollection as $01b9c$createCollection} from \"@radix-ui/react-collection\";\nimport {useComposedRefs as $01b9c$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $01b9c$createContextScope} from \"@radix-ui/react-context\";\nimport {useDirection as $01b9c$useDirection} from \"@radix-ui/react-direction\";\nimport {DismissableLayer as $01b9c$DismissableLayer} from \"@radix-ui/react-dismissable-layer\";\nimport {useFocusGuards as $01b9c$useFocusGuards} from \"@radix-ui/react-focus-guards\";\nimport {FocusScope as $01b9c$FocusScope} from \"@radix-ui/react-focus-scope\";\nimport {useId as $01b9c$useId} from \"@radix-ui/react-id\";\nimport {createPopperScope as $01b9c$createPopperScope, Root as $01b9c$Root, Anchor as $01b9c$Anchor, Content as $01b9c$Content, Arrow as $01b9c$Arrow} from \"@radix-ui/react-popper\";\nimport {Portal as $01b9c$Portal} from \"@radix-ui/react-portal\";\nimport {Primitive as $01b9c$Primitive} from \"@radix-ui/react-primitive\";\nimport {Slot as $01b9c$Slot} from \"@radix-ui/react-slot\";\nimport {useCallbackRef as $01b9c$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\nimport {useControllableState as $01b9c$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {useLayoutEffect as $01b9c$useLayoutEffect} from \"@radix-ui/react-use-layout-effect\";\nimport {usePrevious as $01b9c$usePrevious} from \"@radix-ui/react-use-previous\";\nimport {VisuallyHidden as $01b9c$VisuallyHidden} from \"@radix-ui/react-visually-hidden\";\nimport {hideOthers as $01b9c$hideOthers} from \"aria-hidden\";\nimport {RemoveScroll as $01b9c$RemoveScroll} from \"react-remove-scroll\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst $cc7e05a45900e73f$var$OPEN_KEYS = [\n ' ',\n 'Enter',\n 'ArrowUp',\n 'ArrowDown'\n];\nconst $cc7e05a45900e73f$var$SELECTION_KEYS = [\n ' ',\n 'Enter'\n];\n/* -------------------------------------------------------------------------------------------------\n * Select\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$SELECT_NAME = 'Select';\nconst [$cc7e05a45900e73f$var$Collection, $cc7e05a45900e73f$var$useCollection, $cc7e05a45900e73f$var$createCollectionScope] = $01b9c$createCollection($cc7e05a45900e73f$var$SELECT_NAME);\nconst [$cc7e05a45900e73f$var$createSelectContext, $cc7e05a45900e73f$export$286727a75dc039bd] = $01b9c$createContextScope($cc7e05a45900e73f$var$SELECT_NAME, [\n $cc7e05a45900e73f$var$createCollectionScope,\n $01b9c$createPopperScope\n]);\nconst $cc7e05a45900e73f$var$usePopperScope = $01b9c$createPopperScope();\nconst [$cc7e05a45900e73f$var$SelectProvider, $cc7e05a45900e73f$var$useSelectContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$SELECT_NAME);\nconst [$cc7e05a45900e73f$var$SelectNativeOptionsProvider, $cc7e05a45900e73f$var$useSelectNativeOptionsContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$SELECT_NAME);\nconst $cc7e05a45900e73f$export$ef9b1a59e592288f = (props)=>{\n const { __scopeSelect: __scopeSelect , children: children , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange , dir: dir , name: name , autoComplete: autoComplete , disabled: disabled , required: required } = props;\n const popperScope = $cc7e05a45900e73f$var$usePopperScope(__scopeSelect);\n const [trigger, setTrigger] = $01b9c$useState(null);\n const [valueNode, setValueNode] = $01b9c$useState(null);\n const [valueNodeHasChildren, setValueNodeHasChildren] = $01b9c$useState(false);\n const direction = $01b9c$useDirection(dir);\n const [open = false, setOpen] = $01b9c$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n const [value, setValue] = $01b9c$useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n const triggerPointerDownPosRef = $01b9c$useRef(null); // We set this to true by default so that events bubble to forms without JS (SSR)\n const isFormControl = trigger ? Boolean(trigger.closest('form')) : true;\n const [nativeOptionsSet, setNativeOptionsSet] = $01b9c$useState(new Set()); // The native `select` only associates the correct default value if the corresponding\n // `option` is rendered as a child **at the same time** as itself.\n // Because it might take a few renders for our items to gather the information to build\n // the native `option`(s), we generate a key on the `select` to make sure React re-builds it\n // each time the options change.\n const nativeSelectKey = Array.from(nativeOptionsSet).map((option)=>option.props.value\n ).join(';');\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Root, popperScope, /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectProvider, {\n required: required,\n scope: __scopeSelect,\n trigger: trigger,\n onTriggerChange: setTrigger,\n valueNode: valueNode,\n onValueNodeChange: setValueNode,\n valueNodeHasChildren: valueNodeHasChildren,\n onValueNodeHasChildrenChange: setValueNodeHasChildren,\n contentId: $01b9c$useId(),\n value: value,\n onValueChange: setValue,\n open: open,\n onOpenChange: setOpen,\n dir: direction,\n triggerPointerDownPosRef: triggerPointerDownPosRef,\n disabled: disabled\n }, /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$Collection.Provider, {\n scope: __scopeSelect\n }, /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectNativeOptionsProvider, {\n scope: props.__scopeSelect,\n onNativeOptionAdd: $01b9c$useCallback((option)=>{\n setNativeOptionsSet((prev)=>new Set(prev).add(option)\n );\n }, []),\n onNativeOptionRemove: $01b9c$useCallback((option)=>{\n setNativeOptionsSet((prev)=>{\n const optionsSet = new Set(prev);\n optionsSet.delete(option);\n return optionsSet;\n });\n }, [])\n }, children)), isFormControl ? /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$BubbleSelect, {\n key: nativeSelectKey,\n \"aria-hidden\": true,\n required: required,\n tabIndex: -1,\n name: name,\n autoComplete: autoComplete,\n value: value // enable form autofill\n ,\n onChange: (event)=>setValue(event.target.value)\n ,\n disabled: disabled\n }, value === undefined ? /*#__PURE__*/ $01b9c$createElement(\"option\", {\n value: \"\"\n }) : null, Array.from(nativeOptionsSet)) : null));\n};\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$ef9b1a59e592288f, {\n displayName: $cc7e05a45900e73f$var$SELECT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectTrigger\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$TRIGGER_NAME = 'SelectTrigger';\nconst $cc7e05a45900e73f$export$3ac1e88a1c0b9f1 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , disabled: disabled = false , ...triggerProps } = props;\n const popperScope = $cc7e05a45900e73f$var$usePopperScope(__scopeSelect);\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$TRIGGER_NAME, __scopeSelect);\n const isDisabled = context.disabled || disabled;\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, context.onTriggerChange);\n const getItems = $cc7e05a45900e73f$var$useCollection(__scopeSelect);\n const [searchRef, handleTypeaheadSearch, resetTypeahead] = $cc7e05a45900e73f$var$useTypeaheadSearch((search)=>{\n const enabledItems = getItems().filter((item)=>!item.disabled\n );\n const currentItem = enabledItems.find((item)=>item.value === context.value\n );\n const nextItem = $cc7e05a45900e73f$var$findNextItem(enabledItems, search, currentItem);\n if (nextItem !== undefined) context.onValueChange(nextItem.value);\n });\n const handleOpen = ()=>{\n if (!isDisabled) {\n context.onOpenChange(true); // reset typeahead when we open\n resetTypeahead();\n }\n };\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Anchor, $01b9c$babelruntimehelpersesmextends({\n asChild: true\n }, popperScope), /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.button, $01b9c$babelruntimehelpersesmextends({\n type: \"button\",\n role: \"combobox\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open,\n \"aria-required\": context.required,\n \"aria-autocomplete\": \"none\",\n dir: context.dir,\n \"data-state\": context.open ? 'open' : 'closed',\n disabled: isDisabled,\n \"data-disabled\": isDisabled ? '' : undefined,\n \"data-placeholder\": $cc7e05a45900e73f$var$shouldShowPlaceholder(context.value) ? '' : undefined\n }, triggerProps, {\n ref: composedRefs // Enable compatibility with native label or custom `Label` \"click\" for Safari:\n ,\n onClick: $01b9c$composeEventHandlers(triggerProps.onClick, (event)=>{\n // Whilst browsers generally have no issue focusing the trigger when clicking\n // on a label, Safari seems to struggle with the fact that there's no `onClick`.\n // We force `focus` in this case. Note: this doesn't create any other side-effect\n // because we are preventing default in `onPointerDown` so effectively\n // this only runs for a label \"click\"\n event.currentTarget.focus();\n }),\n onPointerDown: $01b9c$composeEventHandlers(triggerProps.onPointerDown, (event)=>{\n // prevent implicit pointer capture\n // https://www.w3.org/TR/pointerevents3/#implicit-pointer-capture\n const target = event.target;\n if (target.hasPointerCapture(event.pointerId)) target.releasePointerCapture(event.pointerId);\n // only call handler if it's the left button (mousedown gets triggered by all mouse buttons)\n // but not when the control key is pressed (avoiding MacOS right click)\n if (event.button === 0 && event.ctrlKey === false) {\n handleOpen();\n context.triggerPointerDownPosRef.current = {\n x: Math.round(event.pageX),\n y: Math.round(event.pageY)\n }; // prevent trigger from stealing focus from the active item after opening.\n event.preventDefault();\n }\n }),\n onKeyDown: $01b9c$composeEventHandlers(triggerProps.onKeyDown, (event)=>{\n const isTypingAhead = searchRef.current !== '';\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);\n if (isTypingAhead && event.key === ' ') return;\n if ($cc7e05a45900e73f$var$OPEN_KEYS.includes(event.key)) {\n handleOpen();\n event.preventDefault();\n }\n })\n })));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$3ac1e88a1c0b9f1, {\n displayName: $cc7e05a45900e73f$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectValue\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$VALUE_NAME = 'SelectValue';\nconst $cc7e05a45900e73f$export$e288731fd71264f0 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n // We ignore `className` and `style` as this part shouldn't be styled.\n const { __scopeSelect: __scopeSelect , className: className , style: style , children: children , placeholder: placeholder = '' , ...valueProps } = props;\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$VALUE_NAME, __scopeSelect);\n const { onValueNodeHasChildrenChange: onValueNodeHasChildrenChange } = context;\n const hasChildren = children !== undefined;\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, context.onValueNodeChange);\n $01b9c$useLayoutEffect(()=>{\n onValueNodeHasChildrenChange(hasChildren);\n }, [\n onValueNodeHasChildrenChange,\n hasChildren\n ]);\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.span, $01b9c$babelruntimehelpersesmextends({}, valueProps, {\n ref: composedRefs // we don't want events from the portalled `SelectValue` children to bubble\n ,\n style: {\n pointerEvents: 'none'\n }\n }), $cc7e05a45900e73f$var$shouldShowPlaceholder(context.value) ? /*#__PURE__*/ $01b9c$createElement($01b9c$Fragment, null, placeholder) : children);\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$e288731fd71264f0, {\n displayName: $cc7e05a45900e73f$var$VALUE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectIcon\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ICON_NAME = 'SelectIcon';\nconst $cc7e05a45900e73f$export$99b400cabb58c515 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , children: children , ...iconProps } = props;\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.span, $01b9c$babelruntimehelpersesmextends({\n \"aria-hidden\": true\n }, iconProps, {\n ref: forwardedRef\n }), children || '▼');\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$99b400cabb58c515, {\n displayName: $cc7e05a45900e73f$var$ICON_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectPortal\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$PORTAL_NAME = 'SelectPortal';\nconst $cc7e05a45900e73f$export$b2af6c9944296213 = (props)=>{\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Portal, $01b9c$babelruntimehelpersesmextends({\n asChild: true\n }, props));\n};\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$b2af6c9944296213, {\n displayName: $cc7e05a45900e73f$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectContent\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$CONTENT_NAME = 'SelectContent';\nconst $cc7e05a45900e73f$export$c973a4b3cb86a03d = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$CONTENT_NAME, props.__scopeSelect);\n const [fragment, setFragment] = $01b9c$useState(); // setting the fragment in `useLayoutEffect` as `DocumentFragment` doesn't exist on the server\n $01b9c$useLayoutEffect(()=>{\n setFragment(new DocumentFragment());\n }, []);\n if (!context.open) {\n const frag = fragment;\n return frag ? /*#__PURE__*/ $01b9c$createPortal(/*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectContentProvider, {\n scope: props.__scopeSelect\n }, /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$Collection.Slot, {\n scope: props.__scopeSelect\n }, /*#__PURE__*/ $01b9c$createElement(\"div\", null, props.children))), frag) : null;\n }\n return /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectContentImpl, $01b9c$babelruntimehelpersesmextends({}, props, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$c973a4b3cb86a03d, {\n displayName: $cc7e05a45900e73f$var$CONTENT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectContentImpl\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$CONTENT_MARGIN = 10;\nconst [$cc7e05a45900e73f$var$SelectContentProvider, $cc7e05a45900e73f$var$useSelectContentContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$CONTENT_NAME);\nconst $cc7e05a45900e73f$var$CONTENT_IMPL_NAME = 'SelectContentImpl';\nconst $cc7e05a45900e73f$var$SelectContentImpl = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , position: position = 'item-aligned' , onCloseAutoFocus: onCloseAutoFocus , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , side: //\n // PopperContent props\n side , sideOffset: sideOffset , align: align , alignOffset: alignOffset , arrowPadding: arrowPadding , collisionBoundary: collisionBoundary , collisionPadding: collisionPadding , sticky: sticky , hideWhenDetached: hideWhenDetached , avoidCollisions: avoidCollisions , //\n ...contentProps } = props;\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$CONTENT_NAME, __scopeSelect);\n const [content, setContent] = $01b9c$useState(null);\n const [viewport, setViewport] = $01b9c$useState(null);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, (node)=>setContent(node)\n );\n const [selectedItem, setSelectedItem] = $01b9c$useState(null);\n const [selectedItemText, setSelectedItemText] = $01b9c$useState(null);\n const getItems = $cc7e05a45900e73f$var$useCollection(__scopeSelect);\n const [isPositioned, setIsPositioned] = $01b9c$useState(false);\n const firstValidItemFoundRef = $01b9c$useRef(false); // aria-hide everything except the content (better supported equivalent to setting aria-modal)\n $01b9c$useEffect(()=>{\n if (content) return $01b9c$hideOthers(content);\n }, [\n content\n ]); // Make sure the whole tree has focus guards as our `Select` may be\n // the last element in the DOM (because of the `Portal`)\n $01b9c$useFocusGuards();\n const focusFirst = $01b9c$useCallback((candidates)=>{\n const [firstItem, ...restItems] = getItems().map((item)=>item.ref.current\n );\n const [lastItem] = restItems.slice(-1);\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates){\n // if focus is already where we want to go, we don't want to keep going through the candidates\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate === null || candidate === void 0 || candidate.scrollIntoView({\n block: 'nearest'\n }); // viewport might have padding so scroll to its edges when focusing first/last items.\n if (candidate === firstItem && viewport) viewport.scrollTop = 0;\n if (candidate === lastItem && viewport) viewport.scrollTop = viewport.scrollHeight;\n candidate === null || candidate === void 0 || candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n }, [\n getItems,\n viewport\n ]);\n const focusSelectedItem = $01b9c$useCallback(()=>focusFirst([\n selectedItem,\n content\n ])\n , [\n focusFirst,\n selectedItem,\n content\n ]); // Since this is not dependent on layout, we want to ensure this runs at the same time as\n // other effects across components. Hence why we don't call `focusSelectedItem` inside `position`.\n $01b9c$useEffect(()=>{\n if (isPositioned) focusSelectedItem();\n }, [\n isPositioned,\n focusSelectedItem\n ]); // prevent selecting items on `pointerup` in some cases after opening from `pointerdown`\n // and close on `pointerup` outside.\n const { onOpenChange: onOpenChange , triggerPointerDownPosRef: triggerPointerDownPosRef } = context;\n $01b9c$useEffect(()=>{\n if (content) {\n let pointerMoveDelta = {\n x: 0,\n y: 0\n };\n const handlePointerMove = (event)=>{\n var _triggerPointerDownPo, _triggerPointerDownPo2, _triggerPointerDownPo3, _triggerPointerDownPo4;\n pointerMoveDelta = {\n x: Math.abs(Math.round(event.pageX) - ((_triggerPointerDownPo = (_triggerPointerDownPo2 = triggerPointerDownPosRef.current) === null || _triggerPointerDownPo2 === void 0 ? void 0 : _triggerPointerDownPo2.x) !== null && _triggerPointerDownPo !== void 0 ? _triggerPointerDownPo : 0)),\n y: Math.abs(Math.round(event.pageY) - ((_triggerPointerDownPo3 = (_triggerPointerDownPo4 = triggerPointerDownPosRef.current) === null || _triggerPointerDownPo4 === void 0 ? void 0 : _triggerPointerDownPo4.y) !== null && _triggerPointerDownPo3 !== void 0 ? _triggerPointerDownPo3 : 0))\n };\n };\n const handlePointerUp = (event)=>{\n // If the pointer hasn't moved by a certain threshold then we prevent selecting item on `pointerup`.\n if (pointerMoveDelta.x <= 10 && pointerMoveDelta.y <= 10) event.preventDefault();\n else // otherwise, if the event was outside the content, close.\n if (!content.contains(event.target)) onOpenChange(false);\n document.removeEventListener('pointermove', handlePointerMove);\n triggerPointerDownPosRef.current = null;\n };\n if (triggerPointerDownPosRef.current !== null) {\n document.addEventListener('pointermove', handlePointerMove);\n document.addEventListener('pointerup', handlePointerUp, {\n capture: true,\n once: true\n });\n }\n return ()=>{\n document.removeEventListener('pointermove', handlePointerMove);\n document.removeEventListener('pointerup', handlePointerUp, {\n capture: true\n });\n };\n }\n }, [\n content,\n onOpenChange,\n triggerPointerDownPosRef\n ]);\n $01b9c$useEffect(()=>{\n const close = ()=>onOpenChange(false)\n ;\n window.addEventListener('blur', close);\n window.addEventListener('resize', close);\n return ()=>{\n window.removeEventListener('blur', close);\n window.removeEventListener('resize', close);\n };\n }, [\n onOpenChange\n ]);\n const [searchRef, handleTypeaheadSearch] = $cc7e05a45900e73f$var$useTypeaheadSearch((search)=>{\n const enabledItems = getItems().filter((item)=>!item.disabled\n );\n const currentItem = enabledItems.find((item)=>item.ref.current === document.activeElement\n );\n const nextItem = $cc7e05a45900e73f$var$findNextItem(enabledItems, search, currentItem);\n if (nextItem) /**\n * Imperative focus during keydown is risky so we prevent React's batching updates\n * to avoid potential bugs. See: https://github.com/facebook/react/issues/20332\n */ setTimeout(()=>nextItem.ref.current.focus()\n );\n });\n const itemRefCallback = $01b9c$useCallback((node, value, disabled)=>{\n const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;\n const isSelectedItem = context.value !== undefined && context.value === value;\n if (isSelectedItem || isFirstValidItem) {\n setSelectedItem(node);\n if (isFirstValidItem) firstValidItemFoundRef.current = true;\n }\n }, [\n context.value\n ]);\n const handleItemLeave = $01b9c$useCallback(()=>content === null || content === void 0 ? void 0 : content.focus()\n , [\n content\n ]);\n const itemTextRefCallback = $01b9c$useCallback((node, value, disabled)=>{\n const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;\n const isSelectedItem = context.value !== undefined && context.value === value;\n if (isSelectedItem || isFirstValidItem) setSelectedItemText(node);\n }, [\n context.value\n ]);\n const SelectPosition = position === 'popper' ? $cc7e05a45900e73f$var$SelectPopperPosition : $cc7e05a45900e73f$var$SelectItemAlignedPosition; // Silently ignore props that are not supported by `SelectItemAlignedPosition`\n const popperContentProps = SelectPosition === $cc7e05a45900e73f$var$SelectPopperPosition ? {\n side: side,\n sideOffset: sideOffset,\n align: align,\n alignOffset: alignOffset,\n arrowPadding: arrowPadding,\n collisionBoundary: collisionBoundary,\n collisionPadding: collisionPadding,\n sticky: sticky,\n hideWhenDetached: hideWhenDetached,\n avoidCollisions: avoidCollisions\n } : {};\n return /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectContentProvider, {\n scope: __scopeSelect,\n content: content,\n viewport: viewport,\n onViewportChange: setViewport,\n itemRefCallback: itemRefCallback,\n selectedItem: selectedItem,\n onItemLeave: handleItemLeave,\n itemTextRefCallback: itemTextRefCallback,\n focusSelectedItem: focusSelectedItem,\n selectedItemText: selectedItemText,\n position: position,\n isPositioned: isPositioned,\n searchRef: searchRef\n }, /*#__PURE__*/ $01b9c$createElement($01b9c$RemoveScroll, {\n as: $01b9c$Slot,\n allowPinchZoom: true\n }, /*#__PURE__*/ $01b9c$createElement($01b9c$FocusScope, {\n asChild: true // we make sure we're not trapping once it's been closed\n ,\n trapped: context.open,\n onMountAutoFocus: (event)=>{\n // we prevent open autofocus because we manually focus the selected item\n event.preventDefault();\n },\n onUnmountAutoFocus: $01b9c$composeEventHandlers(onCloseAutoFocus, (event)=>{\n var _context$trigger;\n (_context$trigger = context.trigger) === null || _context$trigger === void 0 || _context$trigger.focus({\n preventScroll: true\n });\n event.preventDefault();\n })\n }, /*#__PURE__*/ $01b9c$createElement($01b9c$DismissableLayer, {\n asChild: true,\n disableOutsidePointerEvents: true,\n onEscapeKeyDown: onEscapeKeyDown,\n onPointerDownOutside: onPointerDownOutside // When focus is trapped, a focusout event may still happen.\n ,\n onFocusOutside: (event)=>event.preventDefault()\n ,\n onDismiss: ()=>context.onOpenChange(false)\n }, /*#__PURE__*/ $01b9c$createElement(SelectPosition, $01b9c$babelruntimehelpersesmextends({\n role: \"listbox\",\n id: context.contentId,\n \"data-state\": context.open ? 'open' : 'closed',\n dir: context.dir,\n onContextMenu: (event)=>event.preventDefault()\n }, contentProps, popperContentProps, {\n onPlaced: ()=>setIsPositioned(true)\n ,\n ref: composedRefs,\n style: {\n // flex layout so we can place the scroll buttons properly\n display: 'flex',\n flexDirection: 'column',\n // reset the outline by default as the content MAY get focused\n outline: 'none',\n ...contentProps.style\n },\n onKeyDown: $01b9c$composeEventHandlers(contentProps.onKeyDown, (event)=>{\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey; // select should not be navigated using tab key so we prevent it\n if (event.key === 'Tab') event.preventDefault();\n if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);\n if ([\n 'ArrowUp',\n 'ArrowDown',\n 'Home',\n 'End'\n ].includes(event.key)) {\n const items = getItems().filter((item)=>!item.disabled\n );\n let candidateNodes = items.map((item)=>item.ref.current\n );\n if ([\n 'ArrowUp',\n 'End'\n ].includes(event.key)) candidateNodes = candidateNodes.slice().reverse();\n if ([\n 'ArrowUp',\n 'ArrowDown'\n ].includes(event.key)) {\n const currentElement = event.target;\n const currentIndex = candidateNodes.indexOf(currentElement);\n candidateNodes = candidateNodes.slice(currentIndex + 1);\n }\n /**\n * Imperative focus during keydown is risky so we prevent React's batching updates\n * to avoid potential bugs. See: https://github.com/facebook/react/issues/20332\n */ setTimeout(()=>focusFirst(candidateNodes)\n );\n event.preventDefault();\n }\n })\n }))))));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$var$SelectContentImpl, {\n displayName: $cc7e05a45900e73f$var$CONTENT_IMPL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectItemAlignedPosition\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ITEM_ALIGNED_POSITION_NAME = 'SelectItemAlignedPosition';\nconst $cc7e05a45900e73f$var$SelectItemAlignedPosition = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , onPlaced: onPlaced , ...popperProps } = props;\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$CONTENT_NAME, __scopeSelect);\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$CONTENT_NAME, __scopeSelect);\n const [contentWrapper, setContentWrapper] = $01b9c$useState(null);\n const [content, setContent] = $01b9c$useState(null);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, (node)=>setContent(node)\n );\n const getItems = $cc7e05a45900e73f$var$useCollection(__scopeSelect);\n const shouldExpandOnScrollRef = $01b9c$useRef(false);\n const shouldRepositionRef = $01b9c$useRef(true);\n const { viewport: viewport , selectedItem: selectedItem , selectedItemText: selectedItemText , focusSelectedItem: focusSelectedItem } = contentContext;\n const position = $01b9c$useCallback(()=>{\n if (context.trigger && context.valueNode && contentWrapper && content && viewport && selectedItem && selectedItemText) {\n const triggerRect = context.trigger.getBoundingClientRect(); // -----------------------------------------------------------------------------------------\n // Horizontal positioning\n // -----------------------------------------------------------------------------------------\n const contentRect = content.getBoundingClientRect();\n const valueNodeRect = context.valueNode.getBoundingClientRect();\n const itemTextRect = selectedItemText.getBoundingClientRect();\n if (context.dir !== 'rtl') {\n const itemTextOffset = itemTextRect.left - contentRect.left;\n const left = valueNodeRect.left - itemTextOffset;\n const leftDelta = triggerRect.left - left;\n const minContentWidth = triggerRect.width + leftDelta;\n const contentWidth = Math.max(minContentWidth, contentRect.width);\n const rightEdge = window.innerWidth - $cc7e05a45900e73f$var$CONTENT_MARGIN;\n const clampedLeft = $01b9c$clamp(left, [\n $cc7e05a45900e73f$var$CONTENT_MARGIN,\n rightEdge - contentWidth\n ]);\n contentWrapper.style.minWidth = minContentWidth + 'px';\n contentWrapper.style.left = clampedLeft + 'px';\n } else {\n const itemTextOffset = contentRect.right - itemTextRect.right;\n const right = window.innerWidth - valueNodeRect.right - itemTextOffset;\n const rightDelta = window.innerWidth - triggerRect.right - right;\n const minContentWidth = triggerRect.width + rightDelta;\n const contentWidth = Math.max(minContentWidth, contentRect.width);\n const leftEdge = window.innerWidth - $cc7e05a45900e73f$var$CONTENT_MARGIN;\n const clampedRight = $01b9c$clamp(right, [\n $cc7e05a45900e73f$var$CONTENT_MARGIN,\n leftEdge - contentWidth\n ]);\n contentWrapper.style.minWidth = minContentWidth + 'px';\n contentWrapper.style.right = clampedRight + 'px';\n } // -----------------------------------------------------------------------------------------\n // Vertical positioning\n // -----------------------------------------------------------------------------------------\n const items = getItems();\n const availableHeight = window.innerHeight - $cc7e05a45900e73f$var$CONTENT_MARGIN * 2;\n const itemsHeight = viewport.scrollHeight;\n const contentStyles = window.getComputedStyle(content);\n const contentBorderTopWidth = parseInt(contentStyles.borderTopWidth, 10);\n const contentPaddingTop = parseInt(contentStyles.paddingTop, 10);\n const contentBorderBottomWidth = parseInt(contentStyles.borderBottomWidth, 10);\n const contentPaddingBottom = parseInt(contentStyles.paddingBottom, 10);\n const fullContentHeight = contentBorderTopWidth + contentPaddingTop + itemsHeight + contentPaddingBottom + contentBorderBottomWidth; // prettier-ignore\n const minContentHeight = Math.min(selectedItem.offsetHeight * 5, fullContentHeight);\n const viewportStyles = window.getComputedStyle(viewport);\n const viewportPaddingTop = parseInt(viewportStyles.paddingTop, 10);\n const viewportPaddingBottom = parseInt(viewportStyles.paddingBottom, 10);\n const topEdgeToTriggerMiddle = triggerRect.top + triggerRect.height / 2 - $cc7e05a45900e73f$var$CONTENT_MARGIN;\n const triggerMiddleToBottomEdge = availableHeight - topEdgeToTriggerMiddle;\n const selectedItemHalfHeight = selectedItem.offsetHeight / 2;\n const itemOffsetMiddle = selectedItem.offsetTop + selectedItemHalfHeight;\n const contentTopToItemMiddle = contentBorderTopWidth + contentPaddingTop + itemOffsetMiddle;\n const itemMiddleToContentBottom = fullContentHeight - contentTopToItemMiddle;\n const willAlignWithoutTopOverflow = contentTopToItemMiddle <= topEdgeToTriggerMiddle;\n if (willAlignWithoutTopOverflow) {\n const isLastItem = selectedItem === items[items.length - 1].ref.current;\n contentWrapper.style.bottom = \"0px\";\n const viewportOffsetBottom = content.clientHeight - viewport.offsetTop - viewport.offsetHeight;\n const clampedTriggerMiddleToBottomEdge = Math.max(triggerMiddleToBottomEdge, selectedItemHalfHeight + (isLastItem ? viewportPaddingBottom : 0) + viewportOffsetBottom + contentBorderBottomWidth);\n const height = contentTopToItemMiddle + clampedTriggerMiddleToBottomEdge;\n contentWrapper.style.height = height + 'px';\n } else {\n const isFirstItem = selectedItem === items[0].ref.current;\n contentWrapper.style.top = \"0px\";\n const clampedTopEdgeToTriggerMiddle = Math.max(topEdgeToTriggerMiddle, contentBorderTopWidth + viewport.offsetTop + (isFirstItem ? viewportPaddingTop : 0) + selectedItemHalfHeight);\n const height = clampedTopEdgeToTriggerMiddle + itemMiddleToContentBottom;\n contentWrapper.style.height = height + 'px';\n viewport.scrollTop = contentTopToItemMiddle - topEdgeToTriggerMiddle + viewport.offsetTop;\n }\n contentWrapper.style.margin = `${$cc7e05a45900e73f$var$CONTENT_MARGIN}px 0`;\n contentWrapper.style.minHeight = minContentHeight + 'px';\n contentWrapper.style.maxHeight = availableHeight + 'px'; // -----------------------------------------------------------------------------------------\n onPlaced === null || onPlaced === void 0 || onPlaced(); // we don't want the initial scroll position adjustment to trigger \"expand on scroll\"\n // so we explicitly turn it on only after they've registered.\n requestAnimationFrame(()=>shouldExpandOnScrollRef.current = true\n );\n }\n }, [\n getItems,\n context.trigger,\n context.valueNode,\n contentWrapper,\n content,\n viewport,\n selectedItem,\n selectedItemText,\n context.dir,\n onPlaced\n ]);\n $01b9c$useLayoutEffect(()=>position()\n , [\n position\n ]); // copy z-index from content to wrapper\n const [contentZIndex, setContentZIndex] = $01b9c$useState();\n $01b9c$useLayoutEffect(()=>{\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [\n content\n ]); // When the viewport becomes scrollable at the top, the scroll up button will mount.\n // Because it is part of the normal flow, it will push down the viewport, thus throwing our\n // trigger => selectedItem alignment off by the amount the viewport was pushed down.\n // We wait for this to happen and then re-run the positining logic one more time to account for it.\n const handleScrollButtonChange = $01b9c$useCallback((node)=>{\n if (node && shouldRepositionRef.current === true) {\n position();\n focusSelectedItem === null || focusSelectedItem === void 0 || focusSelectedItem();\n shouldRepositionRef.current = false;\n }\n }, [\n position,\n focusSelectedItem\n ]);\n return /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectViewportProvider, {\n scope: __scopeSelect,\n contentWrapper: contentWrapper,\n shouldExpandOnScrollRef: shouldExpandOnScrollRef,\n onScrollButtonChange: handleScrollButtonChange\n }, /*#__PURE__*/ $01b9c$createElement(\"div\", {\n ref: setContentWrapper,\n style: {\n display: 'flex',\n flexDirection: 'column',\n position: 'fixed',\n zIndex: contentZIndex\n }\n }, /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.div, $01b9c$babelruntimehelpersesmextends({}, popperProps, {\n ref: composedRefs,\n style: {\n // When we get the height of the content, it includes borders. If we were to set\n // the height without having `boxSizing: 'border-box'` it would be too big.\n boxSizing: 'border-box',\n // We need to ensure the content doesn't get taller than the wrapper\n maxHeight: '100%',\n ...popperProps.style\n }\n }))));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$var$SelectItemAlignedPosition, {\n displayName: $cc7e05a45900e73f$var$ITEM_ALIGNED_POSITION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectPopperPosition\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$POPPER_POSITION_NAME = 'SelectPopperPosition';\nconst $cc7e05a45900e73f$var$SelectPopperPosition = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , align: align = 'start' , collisionPadding: collisionPadding = $cc7e05a45900e73f$var$CONTENT_MARGIN , ...popperProps } = props;\n const popperScope = $cc7e05a45900e73f$var$usePopperScope(__scopeSelect);\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Content, $01b9c$babelruntimehelpersesmextends({}, popperScope, popperProps, {\n ref: forwardedRef,\n align: align,\n collisionPadding: collisionPadding,\n style: {\n // Ensure border-box for floating-ui calculations\n boxSizing: 'border-box',\n ...popperProps.style,\n '--radix-select-content-transform-origin': 'var(--radix-popper-transform-origin)',\n '--radix-select-content-available-width': 'var(--radix-popper-available-width)',\n '--radix-select-content-available-height': 'var(--radix-popper-available-height)',\n '--radix-select-trigger-width': 'var(--radix-popper-anchor-width)',\n '--radix-select-trigger-height': 'var(--radix-popper-anchor-height)'\n }\n }));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$var$SelectPopperPosition, {\n displayName: $cc7e05a45900e73f$var$POPPER_POSITION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectViewport\n * -----------------------------------------------------------------------------------------------*/ const [$cc7e05a45900e73f$var$SelectViewportProvider, $cc7e05a45900e73f$var$useSelectViewportContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$CONTENT_NAME, {});\nconst $cc7e05a45900e73f$var$VIEWPORT_NAME = 'SelectViewport';\nconst $cc7e05a45900e73f$export$9ed6e7b40248d36d = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , ...viewportProps } = props;\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$VIEWPORT_NAME, __scopeSelect);\n const viewportContext = $cc7e05a45900e73f$var$useSelectViewportContext($cc7e05a45900e73f$var$VIEWPORT_NAME, __scopeSelect);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, contentContext.onViewportChange);\n const prevScrollTopRef = $01b9c$useRef(0);\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Fragment, null, /*#__PURE__*/ $01b9c$createElement(\"style\", {\n dangerouslySetInnerHTML: {\n __html: `[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`\n }\n }), /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$Collection.Slot, {\n scope: __scopeSelect\n }, /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.div, $01b9c$babelruntimehelpersesmextends({\n \"data-radix-select-viewport\": \"\",\n role: \"presentation\"\n }, viewportProps, {\n ref: composedRefs,\n style: {\n // we use position: 'relative' here on the `viewport` so that when we call\n // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport\n // (independent of the scrollUpButton).\n position: 'relative',\n flex: 1,\n overflow: 'auto',\n ...viewportProps.style\n },\n onScroll: $01b9c$composeEventHandlers(viewportProps.onScroll, (event)=>{\n const viewport = event.currentTarget;\n const { contentWrapper: contentWrapper , shouldExpandOnScrollRef: shouldExpandOnScrollRef } = viewportContext;\n if (shouldExpandOnScrollRef !== null && shouldExpandOnScrollRef !== void 0 && shouldExpandOnScrollRef.current && contentWrapper) {\n const scrolledBy = Math.abs(prevScrollTopRef.current - viewport.scrollTop);\n if (scrolledBy > 0) {\n const availableHeight = window.innerHeight - $cc7e05a45900e73f$var$CONTENT_MARGIN * 2;\n const cssMinHeight = parseFloat(contentWrapper.style.minHeight);\n const cssHeight = parseFloat(contentWrapper.style.height);\n const prevHeight = Math.max(cssMinHeight, cssHeight);\n if (prevHeight < availableHeight) {\n const nextHeight = prevHeight + scrolledBy;\n const clampedNextHeight = Math.min(availableHeight, nextHeight);\n const heightDiff = nextHeight - clampedNextHeight;\n contentWrapper.style.height = clampedNextHeight + 'px';\n if (contentWrapper.style.bottom === '0px') {\n viewport.scrollTop = heightDiff > 0 ? heightDiff : 0; // ensure the content stays pinned to the bottom\n contentWrapper.style.justifyContent = 'flex-end';\n }\n }\n }\n }\n prevScrollTopRef.current = viewport.scrollTop;\n })\n }))));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$9ed6e7b40248d36d, {\n displayName: $cc7e05a45900e73f$var$VIEWPORT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectGroup\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$GROUP_NAME = 'SelectGroup';\nconst [$cc7e05a45900e73f$var$SelectGroupContextProvider, $cc7e05a45900e73f$var$useSelectGroupContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$GROUP_NAME);\nconst $cc7e05a45900e73f$export$ee25a334c55de1f4 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , ...groupProps } = props;\n const groupId = $01b9c$useId();\n return /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectGroupContextProvider, {\n scope: __scopeSelect,\n id: groupId\n }, /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.div, $01b9c$babelruntimehelpersesmextends({\n role: \"group\",\n \"aria-labelledby\": groupId\n }, groupProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$ee25a334c55de1f4, {\n displayName: $cc7e05a45900e73f$var$GROUP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectLabel\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$LABEL_NAME = 'SelectLabel';\nconst $cc7e05a45900e73f$export$f67338d29bd972f8 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , ...labelProps } = props;\n const groupContext = $cc7e05a45900e73f$var$useSelectGroupContext($cc7e05a45900e73f$var$LABEL_NAME, __scopeSelect);\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.div, $01b9c$babelruntimehelpersesmextends({\n id: groupContext.id\n }, labelProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$f67338d29bd972f8, {\n displayName: $cc7e05a45900e73f$var$LABEL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectItem\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ITEM_NAME = 'SelectItem';\nconst [$cc7e05a45900e73f$var$SelectItemContextProvider, $cc7e05a45900e73f$var$useSelectItemContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$ITEM_NAME);\nconst $cc7e05a45900e73f$export$13ef48a934230896 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , value: value , disabled: disabled = false , textValue: textValueProp , ...itemProps } = props;\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$ITEM_NAME, __scopeSelect);\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$ITEM_NAME, __scopeSelect);\n const isSelected = context.value === value;\n const [textValue, setTextValue] = $01b9c$useState(textValueProp !== null && textValueProp !== void 0 ? textValueProp : '');\n const [isFocused, setIsFocused] = $01b9c$useState(false);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, (node)=>{\n var _contentContext$itemR;\n return (_contentContext$itemR = contentContext.itemRefCallback) === null || _contentContext$itemR === void 0 ? void 0 : _contentContext$itemR.call(contentContext, node, value, disabled);\n });\n const textId = $01b9c$useId();\n const handleSelect = ()=>{\n if (!disabled) {\n context.onValueChange(value);\n context.onOpenChange(false);\n }\n };\n if (value === '') throw new Error('A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.');\n return /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectItemContextProvider, {\n scope: __scopeSelect,\n value: value,\n disabled: disabled,\n textId: textId,\n isSelected: isSelected,\n onItemTextChange: $01b9c$useCallback((node)=>{\n setTextValue((prevTextValue)=>{\n var _node$textContent;\n return prevTextValue || ((_node$textContent = node === null || node === void 0 ? void 0 : node.textContent) !== null && _node$textContent !== void 0 ? _node$textContent : '').trim();\n });\n }, [])\n }, /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$Collection.ItemSlot, {\n scope: __scopeSelect,\n value: value,\n disabled: disabled,\n textValue: textValue\n }, /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.div, $01b9c$babelruntimehelpersesmextends({\n role: \"option\",\n \"aria-labelledby\": textId,\n \"data-highlighted\": isFocused ? '' : undefined // `isFocused` caveat fixes stuttering in VoiceOver\n ,\n \"aria-selected\": isSelected && isFocused,\n \"data-state\": isSelected ? 'checked' : 'unchecked',\n \"aria-disabled\": disabled || undefined,\n \"data-disabled\": disabled ? '' : undefined,\n tabIndex: disabled ? undefined : -1\n }, itemProps, {\n ref: composedRefs,\n onFocus: $01b9c$composeEventHandlers(itemProps.onFocus, ()=>setIsFocused(true)\n ),\n onBlur: $01b9c$composeEventHandlers(itemProps.onBlur, ()=>setIsFocused(false)\n ),\n onPointerUp: $01b9c$composeEventHandlers(itemProps.onPointerUp, handleSelect),\n onPointerMove: $01b9c$composeEventHandlers(itemProps.onPointerMove, (event)=>{\n if (disabled) {\n var _contentContext$onIte;\n (_contentContext$onIte = contentContext.onItemLeave) === null || _contentContext$onIte === void 0 || _contentContext$onIte.call(contentContext);\n } else // even though safari doesn't support this option, it's acceptable\n // as it only means it might scroll a few pixels when using the pointer.\n event.currentTarget.focus({\n preventScroll: true\n });\n }),\n onPointerLeave: $01b9c$composeEventHandlers(itemProps.onPointerLeave, (event)=>{\n if (event.currentTarget === document.activeElement) {\n var _contentContext$onIte2;\n (_contentContext$onIte2 = contentContext.onItemLeave) === null || _contentContext$onIte2 === void 0 || _contentContext$onIte2.call(contentContext);\n }\n }),\n onKeyDown: $01b9c$composeEventHandlers(itemProps.onKeyDown, (event)=>{\n var _contentContext$searc;\n const isTypingAhead = ((_contentContext$searc = contentContext.searchRef) === null || _contentContext$searc === void 0 ? void 0 : _contentContext$searc.current) !== '';\n if (isTypingAhead && event.key === ' ') return;\n if ($cc7e05a45900e73f$var$SELECTION_KEYS.includes(event.key)) handleSelect(); // prevent page scroll if using the space key to select an item\n if (event.key === ' ') event.preventDefault();\n })\n }))));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$13ef48a934230896, {\n displayName: $cc7e05a45900e73f$var$ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectItemText\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ITEM_TEXT_NAME = 'SelectItemText';\nconst $cc7e05a45900e73f$export$3572fb0fb821ff49 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n // We ignore `className` and `style` as this part shouldn't be styled.\n const { __scopeSelect: __scopeSelect , className: className , style: style , ...itemTextProps } = props;\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);\n const itemContext = $cc7e05a45900e73f$var$useSelectItemContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);\n const nativeOptionsContext = $cc7e05a45900e73f$var$useSelectNativeOptionsContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);\n const [itemTextNode, setItemTextNode] = $01b9c$useState(null);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, (node)=>setItemTextNode(node)\n , itemContext.onItemTextChange, (node)=>{\n var _contentContext$itemT;\n return (_contentContext$itemT = contentContext.itemTextRefCallback) === null || _contentContext$itemT === void 0 ? void 0 : _contentContext$itemT.call(contentContext, node, itemContext.value, itemContext.disabled);\n });\n const textContent = itemTextNode === null || itemTextNode === void 0 ? void 0 : itemTextNode.textContent;\n const nativeOption = $01b9c$useMemo(()=>/*#__PURE__*/ $01b9c$createElement(\"option\", {\n key: itemContext.value,\n value: itemContext.value,\n disabled: itemContext.disabled\n }, textContent)\n , [\n itemContext.disabled,\n itemContext.value,\n textContent\n ]);\n const { onNativeOptionAdd: onNativeOptionAdd , onNativeOptionRemove: onNativeOptionRemove } = nativeOptionsContext;\n $01b9c$useLayoutEffect(()=>{\n onNativeOptionAdd(nativeOption);\n return ()=>onNativeOptionRemove(nativeOption)\n ;\n }, [\n onNativeOptionAdd,\n onNativeOptionRemove,\n nativeOption\n ]);\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Fragment, null, /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.span, $01b9c$babelruntimehelpersesmextends({\n id: itemContext.textId\n }, itemTextProps, {\n ref: composedRefs\n })), itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? /*#__PURE__*/ $01b9c$createPortal(itemTextProps.children, context.valueNode) : null);\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$3572fb0fb821ff49, {\n displayName: $cc7e05a45900e73f$var$ITEM_TEXT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectItemIndicator\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ITEM_INDICATOR_NAME = 'SelectItemIndicator';\nconst $cc7e05a45900e73f$export$6b9198de19accfe6 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , ...itemIndicatorProps } = props;\n const itemContext = $cc7e05a45900e73f$var$useSelectItemContext($cc7e05a45900e73f$var$ITEM_INDICATOR_NAME, __scopeSelect);\n return itemContext.isSelected ? /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.span, $01b9c$babelruntimehelpersesmextends({\n \"aria-hidden\": true\n }, itemIndicatorProps, {\n ref: forwardedRef\n })) : null;\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$6b9198de19accfe6, {\n displayName: $cc7e05a45900e73f$var$ITEM_INDICATOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectScrollUpButton\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$SCROLL_UP_BUTTON_NAME = 'SelectScrollUpButton';\nconst $cc7e05a45900e73f$export$d8117927658af6d7 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$SCROLL_UP_BUTTON_NAME, props.__scopeSelect);\n const viewportContext = $cc7e05a45900e73f$var$useSelectViewportContext($cc7e05a45900e73f$var$SCROLL_UP_BUTTON_NAME, props.__scopeSelect);\n const [canScrollUp1, setCanScrollUp] = $01b9c$useState(false);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);\n $01b9c$useLayoutEffect(()=>{\n if (contentContext.viewport && contentContext.isPositioned) {\n const viewport = contentContext.viewport;\n function handleScroll() {\n const canScrollUp = viewport.scrollTop > 0;\n setCanScrollUp(canScrollUp);\n }\n handleScroll();\n viewport.addEventListener('scroll', handleScroll);\n return ()=>viewport.removeEventListener('scroll', handleScroll)\n ;\n }\n }, [\n contentContext.viewport,\n contentContext.isPositioned\n ]);\n return canScrollUp1 ? /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectScrollButtonImpl, $01b9c$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs,\n onAutoScroll: ()=>{\n const { viewport: viewport , selectedItem: selectedItem } = contentContext;\n if (viewport && selectedItem) viewport.scrollTop = viewport.scrollTop - selectedItem.offsetHeight;\n }\n })) : null;\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$d8117927658af6d7, {\n displayName: $cc7e05a45900e73f$var$SCROLL_UP_BUTTON_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectScrollDownButton\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$SCROLL_DOWN_BUTTON_NAME = 'SelectScrollDownButton';\nconst $cc7e05a45900e73f$export$ff951e476c12189 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);\n const viewportContext = $cc7e05a45900e73f$var$useSelectViewportContext($cc7e05a45900e73f$var$SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);\n const [canScrollDown1, setCanScrollDown] = $01b9c$useState(false);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);\n $01b9c$useLayoutEffect(()=>{\n if (contentContext.viewport && contentContext.isPositioned) {\n const viewport = contentContext.viewport;\n function handleScroll() {\n const maxScroll = viewport.scrollHeight - viewport.clientHeight; // we use Math.ceil here because if the UI is zoomed-in\n // `scrollTop` is not always reported as an integer\n const canScrollDown = Math.ceil(viewport.scrollTop) < maxScroll;\n setCanScrollDown(canScrollDown);\n }\n handleScroll();\n viewport.addEventListener('scroll', handleScroll);\n return ()=>viewport.removeEventListener('scroll', handleScroll)\n ;\n }\n }, [\n contentContext.viewport,\n contentContext.isPositioned\n ]);\n return canScrollDown1 ? /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectScrollButtonImpl, $01b9c$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs,\n onAutoScroll: ()=>{\n const { viewport: viewport , selectedItem: selectedItem } = contentContext;\n if (viewport && selectedItem) viewport.scrollTop = viewport.scrollTop + selectedItem.offsetHeight;\n }\n })) : null;\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$ff951e476c12189, {\n displayName: $cc7e05a45900e73f$var$SCROLL_DOWN_BUTTON_NAME\n});\nconst $cc7e05a45900e73f$var$SelectScrollButtonImpl = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , onAutoScroll: onAutoScroll , ...scrollIndicatorProps } = props;\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext('SelectScrollButton', __scopeSelect);\n const autoScrollTimerRef = $01b9c$useRef(null);\n const getItems = $cc7e05a45900e73f$var$useCollection(__scopeSelect);\n const clearAutoScrollTimer = $01b9c$useCallback(()=>{\n if (autoScrollTimerRef.current !== null) {\n window.clearInterval(autoScrollTimerRef.current);\n autoScrollTimerRef.current = null;\n }\n }, []);\n $01b9c$useEffect(()=>{\n return ()=>clearAutoScrollTimer()\n ;\n }, [\n clearAutoScrollTimer\n ]); // When the viewport becomes scrollable on either side, the relevant scroll button will mount.\n // Because it is part of the normal flow, it will push down (top button) or shrink (bottom button)\n // the viewport, potentially causing the active item to now be partially out of view.\n // We re-run the `scrollIntoView` logic to make sure it stays within the viewport.\n $01b9c$useLayoutEffect(()=>{\n var _activeItem$ref$curre;\n const activeItem = getItems().find((item)=>item.ref.current === document.activeElement\n );\n activeItem === null || activeItem === void 0 || (_activeItem$ref$curre = activeItem.ref.current) === null || _activeItem$ref$curre === void 0 || _activeItem$ref$curre.scrollIntoView({\n block: 'nearest'\n });\n }, [\n getItems\n ]);\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.div, $01b9c$babelruntimehelpersesmextends({\n \"aria-hidden\": true\n }, scrollIndicatorProps, {\n ref: forwardedRef,\n style: {\n flexShrink: 0,\n ...scrollIndicatorProps.style\n },\n onPointerDown: $01b9c$composeEventHandlers(scrollIndicatorProps.onPointerDown, ()=>{\n if (autoScrollTimerRef.current === null) autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);\n }),\n onPointerMove: $01b9c$composeEventHandlers(scrollIndicatorProps.onPointerMove, ()=>{\n var _contentContext$onIte3;\n (_contentContext$onIte3 = contentContext.onItemLeave) === null || _contentContext$onIte3 === void 0 || _contentContext$onIte3.call(contentContext);\n if (autoScrollTimerRef.current === null) autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);\n }),\n onPointerLeave: $01b9c$composeEventHandlers(scrollIndicatorProps.onPointerLeave, ()=>{\n clearAutoScrollTimer();\n })\n }));\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectSeparator\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$SEPARATOR_NAME = 'SelectSeparator';\nconst $cc7e05a45900e73f$export$eba4b1df07cb1d3 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , ...separatorProps } = props;\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.div, $01b9c$babelruntimehelpersesmextends({\n \"aria-hidden\": true\n }, separatorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$eba4b1df07cb1d3, {\n displayName: $cc7e05a45900e73f$var$SEPARATOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectArrow\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ARROW_NAME = 'SelectArrow';\nconst $cc7e05a45900e73f$export$314f4cb8f8099628 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , ...arrowProps } = props;\n const popperScope = $cc7e05a45900e73f$var$usePopperScope(__scopeSelect);\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$ARROW_NAME, __scopeSelect);\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$ARROW_NAME, __scopeSelect);\n return context.open && contentContext.position === 'popper' ? /*#__PURE__*/ $01b9c$createElement($01b9c$Arrow, $01b9c$babelruntimehelpersesmextends({}, popperScope, arrowProps, {\n ref: forwardedRef\n })) : null;\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$314f4cb8f8099628, {\n displayName: $cc7e05a45900e73f$var$ARROW_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $cc7e05a45900e73f$var$shouldShowPlaceholder(value) {\n return value === '' || value === undefined;\n}\nconst $cc7e05a45900e73f$var$BubbleSelect = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { value: value , ...selectProps } = props;\n const ref = $01b9c$useRef(null);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, ref);\n const prevValue = $01b9c$usePrevious(value); // Bubble value change to parents (e.g form change event)\n $01b9c$useEffect(()=>{\n const select = ref.current;\n const selectProto = window.HTMLSelectElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(selectProto, 'value');\n const setValue = descriptor.set;\n if (prevValue !== value && setValue) {\n const event = new Event('change', {\n bubbles: true\n });\n setValue.call(select, value);\n select.dispatchEvent(event);\n }\n }, [\n prevValue,\n value\n ]);\n /**\n * We purposefully use a `select` here to support form autofill as much\n * as possible.\n *\n * We purposefully do not add the `value` attribute here to allow the value\n * to be set programatically and bubble to any parent form `onChange` event.\n * Adding the `value` will cause React to consider the programatic\n * dispatch a duplicate and it will get swallowed.\n *\n * We use `VisuallyHidden` rather than `display: \"none\"` because Safari autofill\n * won't work otherwise.\n */ return /*#__PURE__*/ $01b9c$createElement($01b9c$VisuallyHidden, {\n asChild: true\n }, /*#__PURE__*/ $01b9c$createElement(\"select\", $01b9c$babelruntimehelpersesmextends({}, selectProps, {\n ref: composedRefs,\n defaultValue: value\n })));\n});\n$cc7e05a45900e73f$var$BubbleSelect.displayName = 'BubbleSelect';\nfunction $cc7e05a45900e73f$var$useTypeaheadSearch(onSearchChange) {\n const handleSearchChange = $01b9c$useCallbackRef(onSearchChange);\n const searchRef = $01b9c$useRef('');\n const timerRef = $01b9c$useRef(0);\n const handleTypeaheadSearch = $01b9c$useCallback((key)=>{\n const search = searchRef.current + key;\n handleSearchChange(search);\n (function updateSearch(value) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current); // Reset `searchRef` 1 second after it was last updated\n if (value !== '') timerRef.current = window.setTimeout(()=>updateSearch('')\n , 1000);\n })(search);\n }, [\n handleSearchChange\n ]);\n const resetTypeahead = $01b9c$useCallback(()=>{\n searchRef.current = '';\n window.clearTimeout(timerRef.current);\n }, []);\n $01b9c$useEffect(()=>{\n return ()=>window.clearTimeout(timerRef.current)\n ;\n }, []);\n return [\n searchRef,\n handleTypeaheadSearch,\n resetTypeahead\n ];\n}\n/**\n * This is the \"meat\" of the typeahead matching logic. It takes in a list of items,\n * the search and the current item, and returns the next item (or `undefined`).\n *\n * We normalize the search because if a user has repeatedly pressed a character,\n * we want the exact same behavior as if we only had that one character\n * (ie. cycle through items starting with that character)\n *\n * We also reorder the items by wrapping the array around the current item.\n * This is so we always look forward from the current item, and picking the first\n * item will always be the correct one.\n *\n * Finally, if the normalized search is exactly one character, we exclude the\n * current item from the values because otherwise it would be the first to match always\n * and focus would never move. This is as opposed to the regular case, where we\n * don't want focus to move if the current item still matches.\n */ function $cc7e05a45900e73f$var$findNextItem(items, search, currentItem) {\n const isRepeated = search.length > 1 && Array.from(search).every((char)=>char === search[0]\n );\n const normalizedSearch = isRepeated ? search[0] : search;\n const currentItemIndex = currentItem ? items.indexOf(currentItem) : -1;\n let wrappedItems = $cc7e05a45900e73f$var$wrapArray(items, Math.max(currentItemIndex, 0));\n const excludeCurrentItem = normalizedSearch.length === 1;\n if (excludeCurrentItem) wrappedItems = wrappedItems.filter((v)=>v !== currentItem\n );\n const nextItem = wrappedItems.find((item)=>item.textValue.toLowerCase().startsWith(normalizedSearch.toLowerCase())\n );\n return nextItem !== currentItem ? nextItem : undefined;\n}\n/**\n * Wraps an array around itself at a given start index\n * Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`\n */ function $cc7e05a45900e73f$var$wrapArray(array, startIndex) {\n return array.map((_, index)=>array[(startIndex + index) % array.length]\n );\n}\nconst $cc7e05a45900e73f$export$be92b6f5f03c0fe9 = $cc7e05a45900e73f$export$ef9b1a59e592288f;\nconst $cc7e05a45900e73f$export$41fb9f06171c75f4 = $cc7e05a45900e73f$export$3ac1e88a1c0b9f1;\nconst $cc7e05a45900e73f$export$4c8d1a57a761ef94 = $cc7e05a45900e73f$export$e288731fd71264f0;\nconst $cc7e05a45900e73f$export$f04a61298a47a40f = $cc7e05a45900e73f$export$99b400cabb58c515;\nconst $cc7e05a45900e73f$export$602eac185826482c = $cc7e05a45900e73f$export$b2af6c9944296213;\nconst $cc7e05a45900e73f$export$7c6e2c02157bb7d2 = $cc7e05a45900e73f$export$c973a4b3cb86a03d;\nconst $cc7e05a45900e73f$export$d5c6c08dc2d3ca7 = $cc7e05a45900e73f$export$9ed6e7b40248d36d;\nconst $cc7e05a45900e73f$export$eb2fcfdbd7ba97d4 = $cc7e05a45900e73f$export$ee25a334c55de1f4;\nconst $cc7e05a45900e73f$export$b04be29aa201d4f5 = $cc7e05a45900e73f$export$f67338d29bd972f8;\nconst $cc7e05a45900e73f$export$6d08773d2e66f8f2 = $cc7e05a45900e73f$export$13ef48a934230896;\nconst $cc7e05a45900e73f$export$d6e5bf9c43ea9319 = $cc7e05a45900e73f$export$3572fb0fb821ff49;\nconst $cc7e05a45900e73f$export$c3468e2714d175fa = $cc7e05a45900e73f$export$6b9198de19accfe6;\nconst $cc7e05a45900e73f$export$2f60d3ec9ad468f2 = $cc7e05a45900e73f$export$d8117927658af6d7;\nconst $cc7e05a45900e73f$export$bf1aedc3039c8d63 = $cc7e05a45900e73f$export$ff951e476c12189;\nconst $cc7e05a45900e73f$export$1ff3c3f08ae963c0 = $cc7e05a45900e73f$export$eba4b1df07cb1d3;\nconst $cc7e05a45900e73f$export$21b07c8f274aebd5 = $cc7e05a45900e73f$export$314f4cb8f8099628;\n\n\n\n\nexport {$cc7e05a45900e73f$export$286727a75dc039bd as createSelectScope, $cc7e05a45900e73f$export$ef9b1a59e592288f as Select, $cc7e05a45900e73f$export$3ac1e88a1c0b9f1 as SelectTrigger, $cc7e05a45900e73f$export$e288731fd71264f0 as SelectValue, $cc7e05a45900e73f$export$99b400cabb58c515 as SelectIcon, $cc7e05a45900e73f$export$b2af6c9944296213 as SelectPortal, $cc7e05a45900e73f$export$c973a4b3cb86a03d as SelectContent, $cc7e05a45900e73f$export$9ed6e7b40248d36d as SelectViewport, $cc7e05a45900e73f$export$ee25a334c55de1f4 as SelectGroup, $cc7e05a45900e73f$export$f67338d29bd972f8 as SelectLabel, $cc7e05a45900e73f$export$13ef48a934230896 as SelectItem, $cc7e05a45900e73f$export$3572fb0fb821ff49 as SelectItemText, $cc7e05a45900e73f$export$6b9198de19accfe6 as SelectItemIndicator, $cc7e05a45900e73f$export$d8117927658af6d7 as SelectScrollUpButton, $cc7e05a45900e73f$export$ff951e476c12189 as SelectScrollDownButton, $cc7e05a45900e73f$export$eba4b1df07cb1d3 as SelectSeparator, $cc7e05a45900e73f$export$314f4cb8f8099628 as SelectArrow, $cc7e05a45900e73f$export$be92b6f5f03c0fe9 as Root, $cc7e05a45900e73f$export$41fb9f06171c75f4 as Trigger, $cc7e05a45900e73f$export$4c8d1a57a761ef94 as Value, $cc7e05a45900e73f$export$f04a61298a47a40f as Icon, $cc7e05a45900e73f$export$602eac185826482c as Portal, $cc7e05a45900e73f$export$7c6e2c02157bb7d2 as Content, $cc7e05a45900e73f$export$d5c6c08dc2d3ca7 as Viewport, $cc7e05a45900e73f$export$eb2fcfdbd7ba97d4 as Group, $cc7e05a45900e73f$export$b04be29aa201d4f5 as Label, $cc7e05a45900e73f$export$6d08773d2e66f8f2 as Item, $cc7e05a45900e73f$export$d6e5bf9c43ea9319 as ItemText, $cc7e05a45900e73f$export$c3468e2714d175fa as ItemIndicator, $cc7e05a45900e73f$export$2f60d3ec9ad468f2 as ScrollUpButton, $cc7e05a45900e73f$export$bf1aedc3039c8d63 as ScrollDownButton, $cc7e05a45900e73f$export$1ff3c3f08ae963c0 as Separator, $cc7e05a45900e73f$export$21b07c8f274aebd5 as Arrow};\n","import $9IrjX$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $9IrjX$forwardRef, Children as $9IrjX$Children, isValidElement as $9IrjX$isValidElement, createElement as $9IrjX$createElement, cloneElement as $9IrjX$cloneElement, Fragment as $9IrjX$Fragment} from \"react\";\nimport {composeRefs as $9IrjX$composeRefs} from \"@radix-ui/react-compose-refs\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n const childrenArray = $9IrjX$Children.toArray(children);\n const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);\n if (slottable) {\n // the new element to render is the one passed as a child of `Slottable`\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child)=>{\n if (child === slottable) {\n // because the new element will be the one rendered, we are only interested\n // in grabbing its children (`newElement.props.children`)\n if ($9IrjX$Children.count(newElement) > 1) return $9IrjX$Children.only(null);\n return /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? newElement.props.children : null;\n } else return child;\n });\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? /*#__PURE__*/ $9IrjX$cloneElement(newElement, undefined, newChildren) : null);\n }\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), children);\n});\n$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';\n/* -------------------------------------------------------------------------------------------------\n * SlotClone\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n if (/*#__PURE__*/ $9IrjX$isValidElement(children)) return /*#__PURE__*/ $9IrjX$cloneElement(children, {\n ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),\n ref: forwardedRef ? $9IrjX$composeRefs(forwardedRef, children.ref) : children.ref\n });\n return $9IrjX$Children.count(children) > 1 ? $9IrjX$Children.only(null) : null;\n});\n$5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{\n return /*#__PURE__*/ $9IrjX$createElement($9IrjX$Fragment, null, children);\n};\n/* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {\n return /*#__PURE__*/ $9IrjX$isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;\n}\nfunction $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {\n // all child props should override\n const overrideProps = {\n ...childProps\n };\n for(const propName in childProps){\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n // if the handler exists on both, we compose them\n if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{\n childPropValue(...args);\n slotPropValue(...args);\n };\n else if (slotPropValue) overrideProps[propName] = slotPropValue;\n } else if (propName === 'style') overrideProps[propName] = {\n ...slotPropValue,\n ...childPropValue\n };\n else if (propName === 'className') overrideProps[propName] = [\n slotPropValue,\n childPropValue\n ].filter(Boolean).join(' ');\n }\n return {\n ...slotProps,\n ...overrideProps\n };\n}\nconst $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;\n\n\n\n\nexport {$5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable, $5e63c961fc1ce211$export$be92b6f5f03c0fe9 as Root};\n","// packages/react/slot/src/Slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment, jsx } from \"react/jsx-runtime\";\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n return React.cloneElement(children, {\n ...mergeProps(slotProps, children.props),\n // @ts-ignore\n ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef\n });\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n","import $irPIl$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $irPIl$forwardRef, useState as $irPIl$useState, useRef as $irPIl$useRef, createElement as $irPIl$createElement, useEffect as $irPIl$useEffect} from \"react\";\nimport {composeEventHandlers as $irPIl$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useComposedRefs as $irPIl$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $irPIl$createContextScope} from \"@radix-ui/react-context\";\nimport {useControllableState as $irPIl$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {usePrevious as $irPIl$usePrevious} from \"@radix-ui/react-use-previous\";\nimport {useSize as $irPIl$useSize} from \"@radix-ui/react-use-size\";\nimport {Primitive as $irPIl$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Switch\n * -----------------------------------------------------------------------------------------------*/ const $6be4966fd9bbc698$var$SWITCH_NAME = 'Switch';\nconst [$6be4966fd9bbc698$var$createSwitchContext, $6be4966fd9bbc698$export$cf7f5f17f69cbd43] = $irPIl$createContextScope($6be4966fd9bbc698$var$SWITCH_NAME);\nconst [$6be4966fd9bbc698$var$SwitchProvider, $6be4966fd9bbc698$var$useSwitchContext] = $6be4966fd9bbc698$var$createSwitchContext($6be4966fd9bbc698$var$SWITCH_NAME);\nconst $6be4966fd9bbc698$export$b5d5cf8927ab7262 = /*#__PURE__*/ $irPIl$forwardRef((props, forwardedRef)=>{\n const { __scopeSwitch: __scopeSwitch , name: name , checked: checkedProp , defaultChecked: defaultChecked , required: required , disabled: disabled , value: value = 'on' , onCheckedChange: onCheckedChange , ...switchProps } = props;\n const [button, setButton] = $irPIl$useState(null);\n const composedRefs = $irPIl$useComposedRefs(forwardedRef, (node)=>setButton(node)\n );\n const hasConsumerStoppedPropagationRef = $irPIl$useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)\n const isFormControl = button ? Boolean(button.closest('form')) : true;\n const [checked = false, setChecked] = $irPIl$useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked,\n onChange: onCheckedChange\n });\n return /*#__PURE__*/ $irPIl$createElement($6be4966fd9bbc698$var$SwitchProvider, {\n scope: __scopeSwitch,\n checked: checked,\n disabled: disabled\n }, /*#__PURE__*/ $irPIl$createElement($irPIl$Primitive.button, $irPIl$babelruntimehelpersesmextends({\n type: \"button\",\n role: \"switch\",\n \"aria-checked\": checked,\n \"aria-required\": required,\n \"data-state\": $6be4966fd9bbc698$var$getState(checked),\n \"data-disabled\": disabled ? '' : undefined,\n disabled: disabled,\n value: value\n }, switchProps, {\n ref: composedRefs,\n onClick: $irPIl$composeEventHandlers(props.onClick, (event)=>{\n setChecked((prevChecked)=>!prevChecked\n );\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if switch is in a form, stop propagation from the button so that we only propagate\n // one click event (from the input). We propagate changes from an input so that native\n // form validation works and form events reflect switch updates.\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n })), isFormControl && /*#__PURE__*/ $irPIl$createElement($6be4966fd9bbc698$var$BubbleInput, {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name: name,\n value: value,\n checked: checked,\n required: required,\n disabled: disabled // We transform because the input is absolutely positioned but we have\n ,\n style: {\n transform: 'translateX(-100%)'\n }\n }));\n});\n/*#__PURE__*/ Object.assign($6be4966fd9bbc698$export$b5d5cf8927ab7262, {\n displayName: $6be4966fd9bbc698$var$SWITCH_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SwitchThumb\n * -----------------------------------------------------------------------------------------------*/ const $6be4966fd9bbc698$var$THUMB_NAME = 'SwitchThumb';\nconst $6be4966fd9bbc698$export$4d07bf653ea69106 = /*#__PURE__*/ $irPIl$forwardRef((props, forwardedRef)=>{\n const { __scopeSwitch: __scopeSwitch , ...thumbProps } = props;\n const context = $6be4966fd9bbc698$var$useSwitchContext($6be4966fd9bbc698$var$THUMB_NAME, __scopeSwitch);\n return /*#__PURE__*/ $irPIl$createElement($irPIl$Primitive.span, $irPIl$babelruntimehelpersesmextends({\n \"data-state\": $6be4966fd9bbc698$var$getState(context.checked),\n \"data-disabled\": context.disabled ? '' : undefined\n }, thumbProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($6be4966fd9bbc698$export$4d07bf653ea69106, {\n displayName: $6be4966fd9bbc698$var$THUMB_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ const $6be4966fd9bbc698$var$BubbleInput = (props)=>{\n const { control: control , checked: checked , bubbles: bubbles = true , ...inputProps } = props;\n const ref = $irPIl$useRef(null);\n const prevChecked = $irPIl$usePrevious(checked);\n const controlSize = $irPIl$useSize(control); // Bubble checked change to parents (e.g form change event)\n $irPIl$useEffect(()=>{\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event('click', {\n bubbles: bubbles\n });\n setChecked.call(input, checked);\n input.dispatchEvent(event);\n }\n }, [\n prevChecked,\n checked,\n bubbles\n ]);\n return /*#__PURE__*/ $irPIl$createElement(\"input\", $irPIl$babelruntimehelpersesmextends({\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: checked\n }, inputProps, {\n tabIndex: -1,\n ref: ref,\n style: {\n ...props.style,\n ...controlSize,\n position: 'absolute',\n pointerEvents: 'none',\n opacity: 0,\n margin: 0\n }\n }));\n};\nfunction $6be4966fd9bbc698$var$getState(checked) {\n return checked ? 'checked' : 'unchecked';\n}\nconst $6be4966fd9bbc698$export$be92b6f5f03c0fe9 = $6be4966fd9bbc698$export$b5d5cf8927ab7262;\nconst $6be4966fd9bbc698$export$6521433ed15a34db = $6be4966fd9bbc698$export$4d07bf653ea69106;\n\n\n\n\nexport {$6be4966fd9bbc698$export$cf7f5f17f69cbd43 as createSwitchScope, $6be4966fd9bbc698$export$b5d5cf8927ab7262 as Switch, $6be4966fd9bbc698$export$4d07bf653ea69106 as SwitchThumb, $6be4966fd9bbc698$export$be92b6f5f03c0fe9 as Root, $6be4966fd9bbc698$export$6521433ed15a34db as Thumb};\n","import $1IHzk$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $1IHzk$forwardRef, createElement as $1IHzk$createElement, useRef as $1IHzk$useRef, useEffect as $1IHzk$useEffect} from \"react\";\nimport {composeEventHandlers as $1IHzk$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {createContextScope as $1IHzk$createContextScope} from \"@radix-ui/react-context\";\nimport {createRovingFocusGroupScope as $1IHzk$createRovingFocusGroupScope, Root as $1IHzk$Root, Item as $1IHzk$Item} from \"@radix-ui/react-roving-focus\";\nimport {Presence as $1IHzk$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $1IHzk$Primitive} from \"@radix-ui/react-primitive\";\nimport {useDirection as $1IHzk$useDirection} from \"@radix-ui/react-direction\";\nimport {useControllableState as $1IHzk$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {useId as $1IHzk$useId} from \"@radix-ui/react-id\";\n\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Tabs\n * -----------------------------------------------------------------------------------------------*/ const $69cb30bb0017df05$var$TABS_NAME = 'Tabs';\nconst [$69cb30bb0017df05$var$createTabsContext, $69cb30bb0017df05$export$355f5bd209d7b13a] = $1IHzk$createContextScope($69cb30bb0017df05$var$TABS_NAME, [\n $1IHzk$createRovingFocusGroupScope\n]);\nconst $69cb30bb0017df05$var$useRovingFocusGroupScope = $1IHzk$createRovingFocusGroupScope();\nconst [$69cb30bb0017df05$var$TabsProvider, $69cb30bb0017df05$var$useTabsContext] = $69cb30bb0017df05$var$createTabsContext($69cb30bb0017df05$var$TABS_NAME);\nconst $69cb30bb0017df05$export$b2539bed5023c21c = /*#__PURE__*/ $1IHzk$forwardRef((props, forwardedRef)=>{\n const { __scopeTabs: __scopeTabs , value: valueProp , onValueChange: onValueChange , defaultValue: defaultValue , orientation: orientation = 'horizontal' , dir: dir , activationMode: activationMode = 'automatic' , ...tabsProps } = props;\n const direction = $1IHzk$useDirection(dir);\n const [value, setValue] = $1IHzk$useControllableState({\n prop: valueProp,\n onChange: onValueChange,\n defaultProp: defaultValue\n });\n return /*#__PURE__*/ $1IHzk$createElement($69cb30bb0017df05$var$TabsProvider, {\n scope: __scopeTabs,\n baseId: $1IHzk$useId(),\n value: value,\n onValueChange: setValue,\n orientation: orientation,\n dir: direction,\n activationMode: activationMode\n }, /*#__PURE__*/ $1IHzk$createElement($1IHzk$Primitive.div, $1IHzk$babelruntimehelpersesmextends({\n dir: direction,\n \"data-orientation\": orientation\n }, tabsProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($69cb30bb0017df05$export$b2539bed5023c21c, {\n displayName: $69cb30bb0017df05$var$TABS_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TabsList\n * -----------------------------------------------------------------------------------------------*/ const $69cb30bb0017df05$var$TAB_LIST_NAME = 'TabsList';\nconst $69cb30bb0017df05$export$9712d22edc0d78c1 = /*#__PURE__*/ $1IHzk$forwardRef((props, forwardedRef)=>{\n const { __scopeTabs: __scopeTabs , loop: loop = true , ...listProps } = props;\n const context = $69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TAB_LIST_NAME, __scopeTabs);\n const rovingFocusGroupScope = $69cb30bb0017df05$var$useRovingFocusGroupScope(__scopeTabs);\n return /*#__PURE__*/ $1IHzk$createElement($1IHzk$Root, $1IHzk$babelruntimehelpersesmextends({\n asChild: true\n }, rovingFocusGroupScope, {\n orientation: context.orientation,\n dir: context.dir,\n loop: loop\n }), /*#__PURE__*/ $1IHzk$createElement($1IHzk$Primitive.div, $1IHzk$babelruntimehelpersesmextends({\n role: \"tablist\",\n \"aria-orientation\": context.orientation\n }, listProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($69cb30bb0017df05$export$9712d22edc0d78c1, {\n displayName: $69cb30bb0017df05$var$TAB_LIST_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TabsTrigger\n * -----------------------------------------------------------------------------------------------*/ const $69cb30bb0017df05$var$TRIGGER_NAME = 'TabsTrigger';\nconst $69cb30bb0017df05$export$8114b9fdfdf9f3ba = /*#__PURE__*/ $1IHzk$forwardRef((props, forwardedRef)=>{\n const { __scopeTabs: __scopeTabs , value: value , disabled: disabled = false , ...triggerProps } = props;\n const context = $69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TRIGGER_NAME, __scopeTabs);\n const rovingFocusGroupScope = $69cb30bb0017df05$var$useRovingFocusGroupScope(__scopeTabs);\n const triggerId = $69cb30bb0017df05$var$makeTriggerId(context.baseId, value);\n const contentId = $69cb30bb0017df05$var$makeContentId(context.baseId, value);\n const isSelected = value === context.value;\n return /*#__PURE__*/ $1IHzk$createElement($1IHzk$Item, $1IHzk$babelruntimehelpersesmextends({\n asChild: true\n }, rovingFocusGroupScope, {\n focusable: !disabled,\n active: isSelected\n }), /*#__PURE__*/ $1IHzk$createElement($1IHzk$Primitive.button, $1IHzk$babelruntimehelpersesmextends({\n type: \"button\",\n role: \"tab\",\n \"aria-selected\": isSelected,\n \"aria-controls\": contentId,\n \"data-state\": isSelected ? 'active' : 'inactive',\n \"data-disabled\": disabled ? '' : undefined,\n disabled: disabled,\n id: triggerId\n }, triggerProps, {\n ref: forwardedRef,\n onMouseDown: $1IHzk$composeEventHandlers(props.onMouseDown, (event)=>{\n // only call handler if it's the left button (mousedown gets triggered by all mouse buttons)\n // but not when the control key is pressed (avoiding MacOS right click)\n if (!disabled && event.button === 0 && event.ctrlKey === false) context.onValueChange(value);\n else // prevent focus to avoid accidental activation\n event.preventDefault();\n }),\n onKeyDown: $1IHzk$composeEventHandlers(props.onKeyDown, (event)=>{\n if ([\n ' ',\n 'Enter'\n ].includes(event.key)) context.onValueChange(value);\n }),\n onFocus: $1IHzk$composeEventHandlers(props.onFocus, ()=>{\n // handle \"automatic\" activation if necessary\n // ie. activate tab following focus\n const isAutomaticActivation = context.activationMode !== 'manual';\n if (!isSelected && !disabled && isAutomaticActivation) context.onValueChange(value);\n })\n })));\n});\n/*#__PURE__*/ Object.assign($69cb30bb0017df05$export$8114b9fdfdf9f3ba, {\n displayName: $69cb30bb0017df05$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TabsContent\n * -----------------------------------------------------------------------------------------------*/ const $69cb30bb0017df05$var$CONTENT_NAME = 'TabsContent';\nconst $69cb30bb0017df05$export$bd905d70e8fd2ebb = /*#__PURE__*/ $1IHzk$forwardRef((props, forwardedRef)=>{\n const { __scopeTabs: __scopeTabs , value: value , forceMount: forceMount , children: children , ...contentProps } = props;\n const context = $69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$CONTENT_NAME, __scopeTabs);\n const triggerId = $69cb30bb0017df05$var$makeTriggerId(context.baseId, value);\n const contentId = $69cb30bb0017df05$var$makeContentId(context.baseId, value);\n const isSelected = value === context.value;\n const isMountAnimationPreventedRef = $1IHzk$useRef(isSelected);\n $1IHzk$useEffect(()=>{\n const rAF = requestAnimationFrame(()=>isMountAnimationPreventedRef.current = false\n );\n return ()=>cancelAnimationFrame(rAF)\n ;\n }, []);\n return /*#__PURE__*/ $1IHzk$createElement($1IHzk$Presence, {\n present: forceMount || isSelected\n }, ({ present: present })=>/*#__PURE__*/ $1IHzk$createElement($1IHzk$Primitive.div, $1IHzk$babelruntimehelpersesmextends({\n \"data-state\": isSelected ? 'active' : 'inactive',\n \"data-orientation\": context.orientation,\n role: \"tabpanel\",\n \"aria-labelledby\": triggerId,\n hidden: !present,\n id: contentId,\n tabIndex: 0\n }, contentProps, {\n ref: forwardedRef,\n style: {\n ...props.style,\n animationDuration: isMountAnimationPreventedRef.current ? '0s' : undefined\n }\n }), present && children)\n );\n});\n/*#__PURE__*/ Object.assign($69cb30bb0017df05$export$bd905d70e8fd2ebb, {\n displayName: $69cb30bb0017df05$var$CONTENT_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ function $69cb30bb0017df05$var$makeTriggerId(baseId, value) {\n return `${baseId}-trigger-${value}`;\n}\nfunction $69cb30bb0017df05$var$makeContentId(baseId, value) {\n return `${baseId}-content-${value}`;\n}\nconst $69cb30bb0017df05$export$be92b6f5f03c0fe9 = $69cb30bb0017df05$export$b2539bed5023c21c;\nconst $69cb30bb0017df05$export$54c2e3dc7acea9f5 = $69cb30bb0017df05$export$9712d22edc0d78c1;\nconst $69cb30bb0017df05$export$41fb9f06171c75f4 = $69cb30bb0017df05$export$8114b9fdfdf9f3ba;\nconst $69cb30bb0017df05$export$7c6e2c02157bb7d2 = $69cb30bb0017df05$export$bd905d70e8fd2ebb;\n\n\n\n\nexport {$69cb30bb0017df05$export$355f5bd209d7b13a as createTabsScope, $69cb30bb0017df05$export$b2539bed5023c21c as Tabs, $69cb30bb0017df05$export$9712d22edc0d78c1 as TabsList, $69cb30bb0017df05$export$8114b9fdfdf9f3ba as TabsTrigger, $69cb30bb0017df05$export$bd905d70e8fd2ebb as TabsContent, $69cb30bb0017df05$export$be92b6f5f03c0fe9 as Root, $69cb30bb0017df05$export$54c2e3dc7acea9f5 as List, $69cb30bb0017df05$export$41fb9f06171c75f4 as Trigger, $69cb30bb0017df05$export$7c6e2c02157bb7d2 as Content};\n","import $8wepK$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useState as $8wepK$useState, useRef as $8wepK$useRef, useEffect as $8wepK$useEffect, createElement as $8wepK$createElement, useCallback as $8wepK$useCallback, useMemo as $8wepK$useMemo, forwardRef as $8wepK$forwardRef} from \"react\";\nimport {composeEventHandlers as $8wepK$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useComposedRefs as $8wepK$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $8wepK$createContextScope} from \"@radix-ui/react-context\";\nimport {DismissableLayer as $8wepK$DismissableLayer} from \"@radix-ui/react-dismissable-layer\";\nimport {useId as $8wepK$useId} from \"@radix-ui/react-id\";\nimport {createPopperScope as $8wepK$createPopperScope, Root as $8wepK$Root, Anchor as $8wepK$Anchor, Content as $8wepK$Content, Arrow as $8wepK$Arrow} from \"@radix-ui/react-popper\";\nimport {Portal as $8wepK$Portal} from \"@radix-ui/react-portal\";\nimport {Presence as $8wepK$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $8wepK$Primitive} from \"@radix-ui/react-primitive\";\nimport {Slottable as $8wepK$Slottable} from \"@radix-ui/react-slot\";\nimport {useControllableState as $8wepK$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {Root as $8wepK$Root1} from \"@radix-ui/react-visually-hidden\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst [$a093c7e1ec25a057$var$createTooltipContext, $a093c7e1ec25a057$export$1c540a2224f0d865] = $8wepK$createContextScope('Tooltip', [\n $8wepK$createPopperScope\n]);\nconst $a093c7e1ec25a057$var$usePopperScope = $8wepK$createPopperScope();\n/* -------------------------------------------------------------------------------------------------\n * TooltipProvider\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$PROVIDER_NAME = 'TooltipProvider';\nconst $a093c7e1ec25a057$var$DEFAULT_DELAY_DURATION = 700;\nconst $a093c7e1ec25a057$var$TOOLTIP_OPEN = 'tooltip.open';\nconst [$a093c7e1ec25a057$var$TooltipProviderContextProvider, $a093c7e1ec25a057$var$useTooltipProviderContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$PROVIDER_NAME);\nconst $a093c7e1ec25a057$export$f78649fb9ca566b8 = (props)=>{\n const { __scopeTooltip: __scopeTooltip , delayDuration: delayDuration = $a093c7e1ec25a057$var$DEFAULT_DELAY_DURATION , skipDelayDuration: skipDelayDuration = 300 , disableHoverableContent: disableHoverableContent = false , children: children } = props;\n const [isOpenDelayed, setIsOpenDelayed] = $8wepK$useState(true);\n const isPointerInTransitRef = $8wepK$useRef(false);\n const skipDelayTimerRef = $8wepK$useRef(0);\n $8wepK$useEffect(()=>{\n const skipDelayTimer = skipDelayTimerRef.current;\n return ()=>window.clearTimeout(skipDelayTimer)\n ;\n }, []);\n return /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipProviderContextProvider, {\n scope: __scopeTooltip,\n isOpenDelayed: isOpenDelayed,\n delayDuration: delayDuration,\n onOpen: $8wepK$useCallback(()=>{\n window.clearTimeout(skipDelayTimerRef.current);\n setIsOpenDelayed(false);\n }, []),\n onClose: $8wepK$useCallback(()=>{\n window.clearTimeout(skipDelayTimerRef.current);\n skipDelayTimerRef.current = window.setTimeout(()=>setIsOpenDelayed(true)\n , skipDelayDuration);\n }, [\n skipDelayDuration\n ]),\n isPointerInTransitRef: isPointerInTransitRef,\n onPointerInTransitChange: $8wepK$useCallback((inTransit)=>{\n isPointerInTransitRef.current = inTransit;\n }, []),\n disableHoverableContent: disableHoverableContent\n }, children);\n};\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$f78649fb9ca566b8, {\n displayName: $a093c7e1ec25a057$var$PROVIDER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * Tooltip\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$TOOLTIP_NAME = 'Tooltip';\nconst [$a093c7e1ec25a057$var$TooltipContextProvider, $a093c7e1ec25a057$var$useTooltipContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$TOOLTIP_NAME);\nconst $a093c7e1ec25a057$export$28c660c63b792dea = (props)=>{\n const { __scopeTooltip: __scopeTooltip , children: children , open: openProp , defaultOpen: defaultOpen = false , onOpenChange: onOpenChange , disableHoverableContent: disableHoverableContentProp , delayDuration: delayDurationProp } = props;\n const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$TOOLTIP_NAME, props.__scopeTooltip);\n const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);\n const [trigger, setTrigger] = $8wepK$useState(null);\n const contentId = $8wepK$useId();\n const openTimerRef = $8wepK$useRef(0);\n const disableHoverableContent = disableHoverableContentProp !== null && disableHoverableContentProp !== void 0 ? disableHoverableContentProp : providerContext.disableHoverableContent;\n const delayDuration = delayDurationProp !== null && delayDurationProp !== void 0 ? delayDurationProp : providerContext.delayDuration;\n const wasOpenDelayedRef = $8wepK$useRef(false);\n const [open1 = false, setOpen] = $8wepK$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: (open)=>{\n if (open) {\n providerContext.onOpen(); // as `onChange` is called within a lifecycle method we\n // avoid dispatching via `dispatchDiscreteCustomEvent`.\n document.dispatchEvent(new CustomEvent($a093c7e1ec25a057$var$TOOLTIP_OPEN));\n } else providerContext.onClose();\n onOpenChange === null || onOpenChange === void 0 || onOpenChange(open);\n }\n });\n const stateAttribute = $8wepK$useMemo(()=>{\n return open1 ? wasOpenDelayedRef.current ? 'delayed-open' : 'instant-open' : 'closed';\n }, [\n open1\n ]);\n const handleOpen = $8wepK$useCallback(()=>{\n window.clearTimeout(openTimerRef.current);\n wasOpenDelayedRef.current = false;\n setOpen(true);\n }, [\n setOpen\n ]);\n const handleClose = $8wepK$useCallback(()=>{\n window.clearTimeout(openTimerRef.current);\n setOpen(false);\n }, [\n setOpen\n ]);\n const handleDelayedOpen = $8wepK$useCallback(()=>{\n window.clearTimeout(openTimerRef.current);\n openTimerRef.current = window.setTimeout(()=>{\n wasOpenDelayedRef.current = true;\n setOpen(true);\n }, delayDuration);\n }, [\n delayDuration,\n setOpen\n ]);\n $8wepK$useEffect(()=>{\n return ()=>window.clearTimeout(openTimerRef.current)\n ;\n }, []);\n return /*#__PURE__*/ $8wepK$createElement($8wepK$Root, popperScope, /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipContextProvider, {\n scope: __scopeTooltip,\n contentId: contentId,\n open: open1,\n stateAttribute: stateAttribute,\n trigger: trigger,\n onTriggerChange: setTrigger,\n onTriggerEnter: $8wepK$useCallback(()=>{\n if (providerContext.isOpenDelayed) handleDelayedOpen();\n else handleOpen();\n }, [\n providerContext.isOpenDelayed,\n handleDelayedOpen,\n handleOpen\n ]),\n onTriggerLeave: $8wepK$useCallback(()=>{\n if (disableHoverableContent) handleClose();\n else // Clear the timer in case the pointer leaves the trigger before the tooltip is opened.\n window.clearTimeout(openTimerRef.current);\n }, [\n handleClose,\n disableHoverableContent\n ]),\n onOpen: handleOpen,\n onClose: handleClose,\n disableHoverableContent: disableHoverableContent\n }, children));\n};\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$28c660c63b792dea, {\n displayName: $a093c7e1ec25a057$var$TOOLTIP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TooltipTrigger\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$TRIGGER_NAME = 'TooltipTrigger';\nconst $a093c7e1ec25a057$export$8c610744efcf8a1d = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const { __scopeTooltip: __scopeTooltip , ...triggerProps } = props;\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$TRIGGER_NAME, __scopeTooltip);\n const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$TRIGGER_NAME, __scopeTooltip);\n const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);\n const ref = $8wepK$useRef(null);\n const composedRefs = $8wepK$useComposedRefs(forwardedRef, ref, context.onTriggerChange);\n const isPointerDownRef = $8wepK$useRef(false);\n const hasPointerMoveOpenedRef = $8wepK$useRef(false);\n const handlePointerUp = $8wepK$useCallback(()=>isPointerDownRef.current = false\n , []);\n $8wepK$useEffect(()=>{\n return ()=>document.removeEventListener('pointerup', handlePointerUp)\n ;\n }, [\n handlePointerUp\n ]);\n return /*#__PURE__*/ $8wepK$createElement($8wepK$Anchor, $8wepK$babelruntimehelpersesmextends({\n asChild: true\n }, popperScope), /*#__PURE__*/ $8wepK$createElement($8wepK$Primitive.button, $8wepK$babelruntimehelpersesmextends({\n // We purposefully avoid adding `type=button` here because tooltip triggers are also\n // commonly anchors and the anchor `type` attribute signifies MIME type.\n \"aria-describedby\": context.open ? context.contentId : undefined,\n \"data-state\": context.stateAttribute\n }, triggerProps, {\n ref: composedRefs,\n onPointerMove: $8wepK$composeEventHandlers(props.onPointerMove, (event)=>{\n if (event.pointerType === 'touch') return;\n if (!hasPointerMoveOpenedRef.current && !providerContext.isPointerInTransitRef.current) {\n context.onTriggerEnter();\n hasPointerMoveOpenedRef.current = true;\n }\n }),\n onPointerLeave: $8wepK$composeEventHandlers(props.onPointerLeave, ()=>{\n context.onTriggerLeave();\n hasPointerMoveOpenedRef.current = false;\n }),\n onPointerDown: $8wepK$composeEventHandlers(props.onPointerDown, ()=>{\n isPointerDownRef.current = true;\n document.addEventListener('pointerup', handlePointerUp, {\n once: true\n });\n }),\n onFocus: $8wepK$composeEventHandlers(props.onFocus, ()=>{\n if (!isPointerDownRef.current) context.onOpen();\n }),\n onBlur: $8wepK$composeEventHandlers(props.onBlur, context.onClose),\n onClick: $8wepK$composeEventHandlers(props.onClick, context.onClose)\n })));\n});\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$8c610744efcf8a1d, {\n displayName: $a093c7e1ec25a057$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TooltipPortal\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$PORTAL_NAME = 'TooltipPortal';\nconst [$a093c7e1ec25a057$var$PortalProvider, $a093c7e1ec25a057$var$usePortalContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$PORTAL_NAME, {\n forceMount: undefined\n});\nconst $a093c7e1ec25a057$export$7b36b8f925ab7497 = (props)=>{\n const { __scopeTooltip: __scopeTooltip , forceMount: forceMount , children: children , container: container } = props;\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$PORTAL_NAME, __scopeTooltip);\n return /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$PortalProvider, {\n scope: __scopeTooltip,\n forceMount: forceMount\n }, /*#__PURE__*/ $8wepK$createElement($8wepK$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $8wepK$createElement($8wepK$Portal, {\n asChild: true,\n container: container\n }, children)));\n};\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$7b36b8f925ab7497, {\n displayName: $a093c7e1ec25a057$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TooltipContent\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$CONTENT_NAME = 'TooltipContent';\nconst $a093c7e1ec25a057$export$e9003e2be37ec060 = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const portalContext = $a093c7e1ec25a057$var$usePortalContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);\n const { forceMount: forceMount = portalContext.forceMount , side: side = 'top' , ...contentProps } = props;\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);\n return /*#__PURE__*/ $8wepK$createElement($8wepK$Presence, {\n present: forceMount || context.open\n }, context.disableHoverableContent ? /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipContentImpl, $8wepK$babelruntimehelpersesmextends({\n side: side\n }, contentProps, {\n ref: forwardedRef\n })) : /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipContentHoverable, $8wepK$babelruntimehelpersesmextends({\n side: side\n }, contentProps, {\n ref: forwardedRef\n })));\n});\nconst $a093c7e1ec25a057$var$TooltipContentHoverable = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);\n const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);\n const ref = $8wepK$useRef(null);\n const composedRefs = $8wepK$useComposedRefs(forwardedRef, ref);\n const [pointerGraceArea, setPointerGraceArea] = $8wepK$useState(null);\n const { trigger: trigger , onClose: onClose } = context;\n const content = ref.current;\n const { onPointerInTransitChange: onPointerInTransitChange } = providerContext;\n const handleRemoveGraceArea = $8wepK$useCallback(()=>{\n setPointerGraceArea(null);\n onPointerInTransitChange(false);\n }, [\n onPointerInTransitChange\n ]);\n const handleCreateGraceArea = $8wepK$useCallback((event, hoverTarget)=>{\n const currentTarget = event.currentTarget;\n const exitPoint = {\n x: event.clientX,\n y: event.clientY\n };\n const exitSide = $a093c7e1ec25a057$var$getExitSideFromRect(exitPoint, currentTarget.getBoundingClientRect());\n const paddedExitPoints = $a093c7e1ec25a057$var$getPaddedExitPoints(exitPoint, exitSide);\n const hoverTargetPoints = $a093c7e1ec25a057$var$getPointsFromRect(hoverTarget.getBoundingClientRect());\n const graceArea = $a093c7e1ec25a057$var$getHull([\n ...paddedExitPoints,\n ...hoverTargetPoints\n ]);\n setPointerGraceArea(graceArea);\n onPointerInTransitChange(true);\n }, [\n onPointerInTransitChange\n ]);\n $8wepK$useEffect(()=>{\n return ()=>handleRemoveGraceArea()\n ;\n }, [\n handleRemoveGraceArea\n ]);\n $8wepK$useEffect(()=>{\n if (trigger && content) {\n const handleTriggerLeave = (event)=>handleCreateGraceArea(event, content)\n ;\n const handleContentLeave = (event)=>handleCreateGraceArea(event, trigger)\n ;\n trigger.addEventListener('pointerleave', handleTriggerLeave);\n content.addEventListener('pointerleave', handleContentLeave);\n return ()=>{\n trigger.removeEventListener('pointerleave', handleTriggerLeave);\n content.removeEventListener('pointerleave', handleContentLeave);\n };\n }\n }, [\n trigger,\n content,\n handleCreateGraceArea,\n handleRemoveGraceArea\n ]);\n $8wepK$useEffect(()=>{\n if (pointerGraceArea) {\n const handleTrackPointerGrace = (event)=>{\n const target = event.target;\n const pointerPosition = {\n x: event.clientX,\n y: event.clientY\n };\n const hasEnteredTarget = (trigger === null || trigger === void 0 ? void 0 : trigger.contains(target)) || (content === null || content === void 0 ? void 0 : content.contains(target));\n const isPointerOutsideGraceArea = !$a093c7e1ec25a057$var$isPointInPolygon(pointerPosition, pointerGraceArea);\n if (hasEnteredTarget) handleRemoveGraceArea();\n else if (isPointerOutsideGraceArea) {\n handleRemoveGraceArea();\n onClose();\n }\n };\n document.addEventListener('pointermove', handleTrackPointerGrace);\n return ()=>document.removeEventListener('pointermove', handleTrackPointerGrace)\n ;\n }\n }, [\n trigger,\n content,\n pointerGraceArea,\n onClose,\n handleRemoveGraceArea\n ]);\n return /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$TooltipContentImpl, $8wepK$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs\n }));\n});\nconst [$a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider, $a093c7e1ec25a057$var$useVisuallyHiddenContentContext] = $a093c7e1ec25a057$var$createTooltipContext($a093c7e1ec25a057$var$TOOLTIP_NAME, {\n isInside: false\n});\nconst $a093c7e1ec25a057$var$TooltipContentImpl = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const { __scopeTooltip: __scopeTooltip , children: children , 'aria-label': ariaLabel , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , ...contentProps } = props;\n const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, __scopeTooltip);\n const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);\n const { onClose: onClose } = context; // Close this tooltip if another one opens\n $8wepK$useEffect(()=>{\n document.addEventListener($a093c7e1ec25a057$var$TOOLTIP_OPEN, onClose);\n return ()=>document.removeEventListener($a093c7e1ec25a057$var$TOOLTIP_OPEN, onClose)\n ;\n }, [\n onClose\n ]); // Close the tooltip if the trigger is scrolled\n $8wepK$useEffect(()=>{\n if (context.trigger) {\n const handleScroll = (event)=>{\n const target = event.target;\n if (target !== null && target !== void 0 && target.contains(context.trigger)) onClose();\n };\n window.addEventListener('scroll', handleScroll, {\n capture: true\n });\n return ()=>window.removeEventListener('scroll', handleScroll, {\n capture: true\n })\n ;\n }\n }, [\n context.trigger,\n onClose\n ]);\n return /*#__PURE__*/ $8wepK$createElement($8wepK$DismissableLayer, {\n asChild: true,\n disableOutsidePointerEvents: false,\n onEscapeKeyDown: onEscapeKeyDown,\n onPointerDownOutside: onPointerDownOutside,\n onFocusOutside: (event)=>event.preventDefault()\n ,\n onDismiss: onClose\n }, /*#__PURE__*/ $8wepK$createElement($8wepK$Content, $8wepK$babelruntimehelpersesmextends({\n \"data-state\": context.stateAttribute\n }, popperScope, contentProps, {\n ref: forwardedRef,\n style: {\n ...contentProps.style,\n '--radix-tooltip-content-transform-origin': 'var(--radix-popper-transform-origin)',\n '--radix-tooltip-content-available-width': 'var(--radix-popper-available-width)',\n '--radix-tooltip-content-available-height': 'var(--radix-popper-available-height)',\n '--radix-tooltip-trigger-width': 'var(--radix-popper-anchor-width)',\n '--radix-tooltip-trigger-height': 'var(--radix-popper-anchor-height)'\n }\n }), /*#__PURE__*/ $8wepK$createElement($8wepK$Slottable, null, children), /*#__PURE__*/ $8wepK$createElement($a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider, {\n scope: __scopeTooltip,\n isInside: true\n }, /*#__PURE__*/ $8wepK$createElement($8wepK$Root1, {\n id: context.contentId,\n role: \"tooltip\"\n }, ariaLabel || children))));\n});\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$e9003e2be37ec060, {\n displayName: $a093c7e1ec25a057$var$CONTENT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TooltipArrow\n * -----------------------------------------------------------------------------------------------*/ const $a093c7e1ec25a057$var$ARROW_NAME = 'TooltipArrow';\nconst $a093c7e1ec25a057$export$c27ee0ad710f7559 = /*#__PURE__*/ $8wepK$forwardRef((props, forwardedRef)=>{\n const { __scopeTooltip: __scopeTooltip , ...arrowProps } = props;\n const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);\n const visuallyHiddenContentContext = $a093c7e1ec25a057$var$useVisuallyHiddenContentContext($a093c7e1ec25a057$var$ARROW_NAME, __scopeTooltip); // if the arrow is inside the `VisuallyHidden`, we don't want to render it all to\n // prevent issues in positioning the arrow due to the duplicate\n return visuallyHiddenContentContext.isInside ? null : /*#__PURE__*/ $8wepK$createElement($8wepK$Arrow, $8wepK$babelruntimehelpersesmextends({}, popperScope, arrowProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($a093c7e1ec25a057$export$c27ee0ad710f7559, {\n displayName: $a093c7e1ec25a057$var$ARROW_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $a093c7e1ec25a057$var$getExitSideFromRect(point, rect) {\n const top = Math.abs(rect.top - point.y);\n const bottom = Math.abs(rect.bottom - point.y);\n const right = Math.abs(rect.right - point.x);\n const left = Math.abs(rect.left - point.x);\n switch(Math.min(top, bottom, right, left)){\n case left:\n return 'left';\n case right:\n return 'right';\n case top:\n return 'top';\n case bottom:\n return 'bottom';\n default:\n throw new Error('unreachable');\n }\n}\nfunction $a093c7e1ec25a057$var$getPaddedExitPoints(exitPoint, exitSide, padding = 5) {\n const paddedExitPoints = [];\n switch(exitSide){\n case 'top':\n paddedExitPoints.push({\n x: exitPoint.x - padding,\n y: exitPoint.y + padding\n }, {\n x: exitPoint.x + padding,\n y: exitPoint.y + padding\n });\n break;\n case 'bottom':\n paddedExitPoints.push({\n x: exitPoint.x - padding,\n y: exitPoint.y - padding\n }, {\n x: exitPoint.x + padding,\n y: exitPoint.y - padding\n });\n break;\n case 'left':\n paddedExitPoints.push({\n x: exitPoint.x + padding,\n y: exitPoint.y - padding\n }, {\n x: exitPoint.x + padding,\n y: exitPoint.y + padding\n });\n break;\n case 'right':\n paddedExitPoints.push({\n x: exitPoint.x - padding,\n y: exitPoint.y - padding\n }, {\n x: exitPoint.x - padding,\n y: exitPoint.y + padding\n });\n break;\n }\n return paddedExitPoints;\n}\nfunction $a093c7e1ec25a057$var$getPointsFromRect(rect) {\n const { top: top , right: right , bottom: bottom , left: left } = rect;\n return [\n {\n x: left,\n y: top\n },\n {\n x: right,\n y: top\n },\n {\n x: right,\n y: bottom\n },\n {\n x: left,\n y: bottom\n }\n ];\n} // Determine if a point is inside of a polygon.\n// Based on https://github.com/substack/point-in-polygon\nfunction $a093c7e1ec25a057$var$isPointInPolygon(point, polygon) {\n const { x: x , y: y } = point;\n let inside = false;\n for(let i = 0, j = polygon.length - 1; i < polygon.length; j = i++){\n const xi = polygon[i].x;\n const yi = polygon[i].y;\n const xj = polygon[j].x;\n const yj = polygon[j].y; // prettier-ignore\n const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n return inside;\n} // Returns a new array of points representing the convex hull of the given set of points.\n// https://www.nayuki.io/page/convex-hull-algorithm\nfunction $a093c7e1ec25a057$var$getHull(points) {\n const newPoints = points.slice();\n newPoints.sort((a, b)=>{\n if (a.x < b.x) return -1;\n else if (a.x > b.x) return 1;\n else if (a.y < b.y) return -1;\n else if (a.y > b.y) return 1;\n else return 0;\n });\n return $a093c7e1ec25a057$var$getHullPresorted(newPoints);\n} // Returns the convex hull, assuming that each points[i] <= points[i + 1]. Runs in O(n) time.\nfunction $a093c7e1ec25a057$var$getHullPresorted(points) {\n if (points.length <= 1) return points.slice();\n const upperHull = [];\n for(let i = 0; i < points.length; i++){\n const p = points[i];\n while(upperHull.length >= 2){\n const q = upperHull[upperHull.length - 1];\n const r = upperHull[upperHull.length - 2];\n if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x)) upperHull.pop();\n else break;\n }\n upperHull.push(p);\n }\n upperHull.pop();\n const lowerHull = [];\n for(let i1 = points.length - 1; i1 >= 0; i1--){\n const p = points[i1];\n while(lowerHull.length >= 2){\n const q = lowerHull[lowerHull.length - 1];\n const r = lowerHull[lowerHull.length - 2];\n if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x)) lowerHull.pop();\n else break;\n }\n lowerHull.push(p);\n }\n lowerHull.pop();\n if (upperHull.length === 1 && lowerHull.length === 1 && upperHull[0].x === lowerHull[0].x && upperHull[0].y === lowerHull[0].y) return upperHull;\n else return upperHull.concat(lowerHull);\n}\nconst $a093c7e1ec25a057$export$2881499e37b75b9a = $a093c7e1ec25a057$export$f78649fb9ca566b8;\nconst $a093c7e1ec25a057$export$be92b6f5f03c0fe9 = $a093c7e1ec25a057$export$28c660c63b792dea;\nconst $a093c7e1ec25a057$export$41fb9f06171c75f4 = $a093c7e1ec25a057$export$8c610744efcf8a1d;\nconst $a093c7e1ec25a057$export$602eac185826482c = $a093c7e1ec25a057$export$7b36b8f925ab7497;\nconst $a093c7e1ec25a057$export$7c6e2c02157bb7d2 = $a093c7e1ec25a057$export$e9003e2be37ec060;\nconst $a093c7e1ec25a057$export$21b07c8f274aebd5 = $a093c7e1ec25a057$export$c27ee0ad710f7559;\n\n\n\n\nexport {$a093c7e1ec25a057$export$1c540a2224f0d865 as createTooltipScope, $a093c7e1ec25a057$export$f78649fb9ca566b8 as TooltipProvider, $a093c7e1ec25a057$export$28c660c63b792dea as Tooltip, $a093c7e1ec25a057$export$8c610744efcf8a1d as TooltipTrigger, $a093c7e1ec25a057$export$7b36b8f925ab7497 as TooltipPortal, $a093c7e1ec25a057$export$e9003e2be37ec060 as TooltipContent, $a093c7e1ec25a057$export$c27ee0ad710f7559 as TooltipArrow, $a093c7e1ec25a057$export$2881499e37b75b9a as Provider, $a093c7e1ec25a057$export$be92b6f5f03c0fe9 as Root, $a093c7e1ec25a057$export$41fb9f06171c75f4 as Trigger, $a093c7e1ec25a057$export$602eac185826482c as Portal, $a093c7e1ec25a057$export$7c6e2c02157bb7d2 as Content, $a093c7e1ec25a057$export$21b07c8f274aebd5 as Arrow};\n","import {useRef as $lwiWj$useRef, useEffect as $lwiWj$useEffect, useMemo as $lwiWj$useMemo} from \"react\";\n\n\n/**\n * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a\n * prop or avoid re-executing effects when passed as a dependency\n */ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {\n const callbackRef = $lwiWj$useRef(callback);\n $lwiWj$useEffect(()=>{\n callbackRef.current = callback;\n }); // https://github.com/facebook/react/issues/19240\n return $lwiWj$useMemo(()=>(...args)=>{\n var _callbackRef$current;\n return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);\n }\n , []);\n}\n\n\n\n\nexport {$b1b2314f5f9a1d84$export$25bec8c6f54ee79a as useCallbackRef};\n","// packages/react/use-callback-ref/src/useCallbackRef.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n","import {useCallback as $bnPw9$useCallback, useState as $bnPw9$useState, useRef as $bnPw9$useRef, useEffect as $bnPw9$useEffect} from \"react\";\nimport {useCallbackRef as $bnPw9$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\n\n\n\nfunction $71cd76cc60e0454e$export$6f32135080cb4c3({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {\n const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState({\n defaultProp: defaultProp,\n onChange: onChange\n });\n const isControlled = prop !== undefined;\n const value1 = isControlled ? prop : uncontrolledProp;\n const handleChange = $bnPw9$useCallbackRef(onChange);\n const setValue = $bnPw9$useCallback((nextValue)=>{\n if (isControlled) {\n const setter = nextValue;\n const value = typeof nextValue === 'function' ? setter(prop) : nextValue;\n if (value !== prop) handleChange(value);\n } else setUncontrolledProp(nextValue);\n }, [\n isControlled,\n prop,\n setUncontrolledProp,\n handleChange\n ]);\n return [\n value1,\n setValue\n ];\n}\nfunction $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp , onChange: onChange }) {\n const uncontrolledState = $bnPw9$useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = $bnPw9$useRef(value);\n const handleChange = $bnPw9$useCallbackRef(onChange);\n $bnPw9$useEffect(()=>{\n if (prevValueRef.current !== value) {\n handleChange(value);\n prevValueRef.current = value;\n }\n }, [\n value,\n prevValueRef,\n handleChange\n ]);\n return uncontrolledState;\n}\n\n\n\n\nexport {$71cd76cc60e0454e$export$6f32135080cb4c3 as useControllableState};\n","// packages/react/use-controllable-state/src/useControllableState.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n }\n}) {\n const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({ defaultProp, onChange });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n const handleChange = useCallbackRef(onChange);\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const setter = nextValue;\n const value2 = typeof nextValue === \"function\" ? setter(prop) : nextValue;\n if (value2 !== prop) handleChange(value2);\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, handleChange]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const uncontrolledState = React.useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = React.useRef(value);\n const handleChange = useCallbackRef(onChange);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n handleChange(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef, handleChange]);\n return uncontrolledState;\n}\nexport {\n useControllableState\n};\n","import {useLayoutEffect as $dxlwH$useLayoutEffect} from \"react\";\n\n\n/**\n * On the server, React emits a warning when calling `useLayoutEffect`.\n * This is because neither `useLayoutEffect` nor `useEffect` run on the server.\n * We use this safe version which suppresses the warning by replacing it with a noop on the server.\n *\n * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect\n */ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? $dxlwH$useLayoutEffect : ()=>{};\n\n\n\n\nexport {$9f79659886946c16$export$e5c5a5f917a5871c as useLayoutEffect};\n","// packages/react/use-layout-effect/src/useLayoutEffect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = Boolean(globalThis?.document) ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n","import {useRef as $8LvvK$useRef, useMemo as $8LvvK$useMemo} from \"react\";\n\n\nfunction $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {\n const ref = $8LvvK$useRef({\n value: value,\n previous: value\n }); // We compare values before making an update to ensure that\n // a change has been made. This ensures the previous value is\n // persisted correctly between renders.\n return $8LvvK$useMemo(()=>{\n if (ref.current.value !== value) {\n ref.current.previous = ref.current.value;\n ref.current.value = value;\n }\n return ref.current.previous;\n }, [\n value\n ]);\n}\n\n\n\n\nexport {$010c2913dbd2fe3d$export$5cae361ad82dce8b as usePrevious};\n","import {useState as $9gyGR$useState} from \"react\";\nimport {useLayoutEffect as $9gyGR$useLayoutEffect} from \"@radix-ui/react-use-layout-effect\";\n\n\n\nfunction $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {\n const [size, setSize] = $9gyGR$useState(undefined);\n $9gyGR$useLayoutEffect(()=>{\n if (element) {\n // provide size as early as possible\n setSize({\n width: element.offsetWidth,\n height: element.offsetHeight\n });\n const resizeObserver = new ResizeObserver((entries)=>{\n if (!Array.isArray(entries)) return;\n // Since we only observe the one element, we don't need to loop over the\n // array\n if (!entries.length) return;\n const entry = entries[0];\n let width;\n let height;\n if ('borderBoxSize' in entry) {\n const borderSizeEntry = entry['borderBoxSize']; // iron out differences between browsers\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize['inlineSize'];\n height = borderSize['blockSize'];\n } else {\n // for browsers that don't support `borderBoxSize`\n // we calculate it ourselves to get the correct border box.\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n setSize({\n width: width,\n height: height\n });\n });\n resizeObserver.observe(element, {\n box: 'border-box'\n });\n return ()=>resizeObserver.unobserve(element)\n ;\n } else // We only want to reset to `undefined` when the element becomes `null`,\n // not if it changes to another element.\n setSize(undefined);\n }, [\n element\n ]);\n return size;\n}\n\n\n\n\nexport {$db6c3485150b8e66$export$1ab7ae714698c4b8 as useSize};\n","import $kVwnw$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $kVwnw$forwardRef, createElement as $kVwnw$createElement} from \"react\";\nimport {Primitive as $kVwnw$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * VisuallyHidden\n * -----------------------------------------------------------------------------------------------*/ const $ea1ef594cf570d83$var$NAME = 'VisuallyHidden';\nconst $ea1ef594cf570d83$export$439d29a4e110a164 = /*#__PURE__*/ $kVwnw$forwardRef((props, forwardedRef)=>{\n return /*#__PURE__*/ $kVwnw$createElement($kVwnw$Primitive.span, $kVwnw$babelruntimehelpersesmextends({}, props, {\n ref: forwardedRef,\n style: {\n // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss\n position: 'absolute',\n border: 0,\n width: 1,\n height: 1,\n padding: 0,\n margin: -1,\n overflow: 'hidden',\n clip: 'rect(0, 0, 0, 0)',\n whiteSpace: 'nowrap',\n wordWrap: 'normal',\n ...props.style\n }\n }));\n});\n/*#__PURE__*/ Object.assign($ea1ef594cf570d83$export$439d29a4e110a164, {\n displayName: $ea1ef594cf570d83$var$NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $ea1ef594cf570d83$export$be92b6f5f03c0fe9 = $ea1ef594cf570d83$export$439d29a4e110a164;\n\n\n\n\nexport {$ea1ef594cf570d83$export$439d29a4e110a164 as VisuallyHidden, $ea1ef594cf570d83$export$be92b6f5f03c0fe9 as Root};\n","import {getOwnerWindow as $djhjW$getOwnerWindow} from \"@react-aria/utils\";\n\n/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $645f2e67b85a24c9$var$isStyleVisible(element) {\n const windowObject = (0, $djhjW$getOwnerWindow)(element);\n if (!(element instanceof windowObject.HTMLElement) && !(element instanceof windowObject.SVGElement)) return false;\n let { display: display, visibility: visibility } = element.style;\n let isVisible = display !== 'none' && visibility !== 'hidden' && visibility !== 'collapse';\n if (isVisible) {\n const { getComputedStyle: getComputedStyle } = element.ownerDocument.defaultView;\n let { display: computedDisplay, visibility: computedVisibility } = getComputedStyle(element);\n isVisible = computedDisplay !== 'none' && computedVisibility !== 'hidden' && computedVisibility !== 'collapse';\n }\n return isVisible;\n}\nfunction $645f2e67b85a24c9$var$isAttributeVisible(element, childElement) {\n return !element.hasAttribute('hidden') && // Ignore HiddenSelect when tree walking.\n !element.hasAttribute('data-react-aria-prevent-focus') && (element.nodeName === 'DETAILS' && childElement && childElement.nodeName !== 'SUMMARY' ? element.hasAttribute('open') : true);\n}\nfunction $645f2e67b85a24c9$export$e989c0fffaa6b27a(element, childElement) {\n return element.nodeName !== '#comment' && $645f2e67b85a24c9$var$isStyleVisible(element) && $645f2e67b85a24c9$var$isAttributeVisible(element, childElement) && (!element.parentElement || $645f2e67b85a24c9$export$e989c0fffaa6b27a(element.parentElement, element));\n}\n\n\nexport {$645f2e67b85a24c9$export$e989c0fffaa6b27a as isElementVisible};\n","import {focusSafely as $6a99195332edec8b$export$80f3e147d781571c} from \"./focusSafely.mjs\";\nimport {isElementVisible as $645f2e67b85a24c9$export$e989c0fffaa6b27a} from \"./isElementVisible.mjs\";\nimport {useLayoutEffect as $cgawC$useLayoutEffect, getOwnerDocument as $cgawC$getOwnerDocument} from \"@react-aria/utils\";\nimport $cgawC$react, {useRef as $cgawC$useRef, useContext as $cgawC$useContext, useMemo as $cgawC$useMemo, useEffect as $cgawC$useEffect} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nconst $9bf71ea28793e738$var$FocusContext = /*#__PURE__*/ (0, $cgawC$react).createContext(null);\nconst $9bf71ea28793e738$var$RESTORE_FOCUS_EVENT = 'react-aria-focus-scope-restore';\nlet $9bf71ea28793e738$var$activeScope = null;\nfunction $9bf71ea28793e738$export$20e40289641fbbb6(props) {\n let { children: children, contain: contain, restoreFocus: restoreFocus, autoFocus: autoFocus } = props;\n let startRef = (0, $cgawC$useRef)(null);\n let endRef = (0, $cgawC$useRef)(null);\n let scopeRef = (0, $cgawC$useRef)([]);\n let { parentNode: parentNode } = (0, $cgawC$useContext)($9bf71ea28793e738$var$FocusContext) || {};\n // Create a tree node here so we can add children to it even before it is added to the tree.\n let node = (0, $cgawC$useMemo)(()=>new $9bf71ea28793e738$var$TreeNode({\n scopeRef: scopeRef\n }), [\n scopeRef\n ]);\n (0, $cgawC$useLayoutEffect)(()=>{\n // If a new scope mounts outside the active scope, (e.g. DialogContainer launched from a menu),\n // use the active scope as the parent instead of the parent from context. Layout effects run bottom\n // up, so if the parent is not yet added to the tree, don't do this. Only the outer-most FocusScope\n // that is being added should get the activeScope as its parent.\n let parent = parentNode || $9bf71ea28793e738$export$d06fae2ee68b101e.root;\n if ($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parent.scopeRef) && $9bf71ea28793e738$var$activeScope && !$9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, parent.scopeRef)) {\n let activeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);\n if (activeNode) parent = activeNode;\n }\n // Add the node to the parent, and to the tree.\n parent.addChild(node);\n $9bf71ea28793e738$export$d06fae2ee68b101e.addNode(node);\n }, [\n node,\n parentNode\n ]);\n (0, $cgawC$useLayoutEffect)(()=>{\n let node = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);\n if (node) node.contain = !!contain;\n }, [\n contain\n ]);\n (0, $cgawC$useLayoutEffect)(()=>{\n var _startRef_current;\n // Find all rendered nodes between the sentinels and add them to the scope.\n let node = (_startRef_current = startRef.current) === null || _startRef_current === void 0 ? void 0 : _startRef_current.nextSibling;\n let nodes = [];\n let stopPropagation = (e)=>e.stopPropagation();\n while(node && node !== endRef.current){\n nodes.push(node);\n // Stop custom restore focus event from propagating to parent focus scopes.\n node.addEventListener($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, stopPropagation);\n node = node.nextSibling;\n }\n scopeRef.current = nodes;\n return ()=>{\n for (let node of nodes)node.removeEventListener($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, stopPropagation);\n };\n }, [\n children\n ]);\n $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restoreFocus, contain);\n $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain);\n $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain);\n $9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus);\n // This needs to be an effect so that activeScope is updated after the FocusScope tree is complete.\n // It cannot be a useLayoutEffect because the parent of this node hasn't been attached in the tree yet.\n (0, $cgawC$useEffect)(()=>{\n const activeElement = (0, $cgawC$getOwnerDocument)(scopeRef.current ? scopeRef.current[0] : undefined).activeElement;\n let scope = null;\n if ($9bf71ea28793e738$var$isElementInScope(activeElement, scopeRef.current)) {\n // We need to traverse the focusScope tree and find the bottom most scope that\n // contains the active element and set that as the activeScope.\n for (let node of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse())if (node.scopeRef && $9bf71ea28793e738$var$isElementInScope(activeElement, node.scopeRef.current)) scope = node;\n if (scope === $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef)) $9bf71ea28793e738$var$activeScope = scope.scopeRef;\n }\n }, [\n scopeRef\n ]);\n // This layout effect cleanup is so that the tree node is removed synchronously with react before the RAF\n // in useRestoreFocus cleanup runs.\n (0, $cgawC$useLayoutEffect)(()=>{\n return ()=>{\n var _focusScopeTree_getTreeNode_parent, _focusScopeTree_getTreeNode;\n var _focusScopeTree_getTreeNode_parent_scopeRef;\n // Scope may have been re-parented.\n let parentScope = (_focusScopeTree_getTreeNode_parent_scopeRef = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef)) === null || _focusScopeTree_getTreeNode === void 0 ? void 0 : (_focusScopeTree_getTreeNode_parent = _focusScopeTree_getTreeNode.parent) === null || _focusScopeTree_getTreeNode_parent === void 0 ? void 0 : _focusScopeTree_getTreeNode_parent.scopeRef) !== null && _focusScopeTree_getTreeNode_parent_scopeRef !== void 0 ? _focusScopeTree_getTreeNode_parent_scopeRef : null;\n if ((scopeRef === $9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope(scopeRef, $9bf71ea28793e738$var$activeScope)) && (!parentScope || $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parentScope))) $9bf71ea28793e738$var$activeScope = parentScope;\n $9bf71ea28793e738$export$d06fae2ee68b101e.removeTreeNode(scopeRef);\n };\n }, [\n scopeRef\n ]);\n let focusManager = (0, $cgawC$useMemo)(()=>$9bf71ea28793e738$var$createFocusManagerForScope(scopeRef), []);\n let value = (0, $cgawC$useMemo)(()=>({\n focusManager: focusManager,\n parentNode: node\n }), [\n node,\n focusManager\n ]);\n return /*#__PURE__*/ (0, $cgawC$react).createElement($9bf71ea28793e738$var$FocusContext.Provider, {\n value: value\n }, /*#__PURE__*/ (0, $cgawC$react).createElement(\"span\", {\n \"data-focus-scope-start\": true,\n hidden: true,\n ref: startRef\n }), children, /*#__PURE__*/ (0, $cgawC$react).createElement(\"span\", {\n \"data-focus-scope-end\": true,\n hidden: true,\n ref: endRef\n }));\n}\nfunction $9bf71ea28793e738$export$10c5169755ce7bd7() {\n var _useContext;\n return (_useContext = (0, $cgawC$useContext)($9bf71ea28793e738$var$FocusContext)) === null || _useContext === void 0 ? void 0 : _useContext.focusManager;\n}\nfunction $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef) {\n return {\n focusNext (opts = {}) {\n let scope = scopeRef.current;\n let { from: from, tabbable: tabbable, wrap: wrap, accept: accept } = opts;\n let node = from || (0, $cgawC$getOwnerDocument)(scope[0]).activeElement;\n let sentinel = scope[0].previousElementSibling;\n let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);\n let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {\n tabbable: tabbable,\n accept: accept\n }, scope);\n walker.currentNode = $9bf71ea28793e738$var$isElementInScope(node, scope) ? node : sentinel;\n let nextNode = walker.nextNode();\n if (!nextNode && wrap) {\n walker.currentNode = sentinel;\n nextNode = walker.nextNode();\n }\n if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);\n return nextNode;\n },\n focusPrevious (opts = {}) {\n let scope = scopeRef.current;\n let { from: from, tabbable: tabbable, wrap: wrap, accept: accept } = opts;\n let node = from || (0, $cgawC$getOwnerDocument)(scope[0]).activeElement;\n let sentinel = scope[scope.length - 1].nextElementSibling;\n let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);\n let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {\n tabbable: tabbable,\n accept: accept\n }, scope);\n walker.currentNode = $9bf71ea28793e738$var$isElementInScope(node, scope) ? node : sentinel;\n let previousNode = walker.previousNode();\n if (!previousNode && wrap) {\n walker.currentNode = sentinel;\n previousNode = walker.previousNode();\n }\n if (previousNode) $9bf71ea28793e738$var$focusElement(previousNode, true);\n return previousNode;\n },\n focusFirst (opts = {}) {\n let scope = scopeRef.current;\n let { tabbable: tabbable, accept: accept } = opts;\n let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);\n let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {\n tabbable: tabbable,\n accept: accept\n }, scope);\n walker.currentNode = scope[0].previousElementSibling;\n let nextNode = walker.nextNode();\n if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);\n return nextNode;\n },\n focusLast (opts = {}) {\n let scope = scopeRef.current;\n let { tabbable: tabbable, accept: accept } = opts;\n let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);\n let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {\n tabbable: tabbable,\n accept: accept\n }, scope);\n walker.currentNode = scope[scope.length - 1].nextElementSibling;\n let previousNode = walker.previousNode();\n if (previousNode) $9bf71ea28793e738$var$focusElement(previousNode, true);\n return previousNode;\n }\n };\n}\nconst $9bf71ea28793e738$var$focusableElements = [\n 'input:not([disabled]):not([type=hidden])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n 'button:not([disabled])',\n 'a[href]',\n 'area[href]',\n 'summary',\n 'iframe',\n 'object',\n 'embed',\n 'audio[controls]',\n 'video[controls]',\n '[contenteditable]'\n];\nconst $9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR = $9bf71ea28793e738$var$focusableElements.join(':not([hidden]),') + ',[tabindex]:not([disabled]):not([hidden])';\n$9bf71ea28793e738$var$focusableElements.push('[tabindex]:not([tabindex=\"-1\"]):not([disabled])');\nconst $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR = $9bf71ea28793e738$var$focusableElements.join(':not([hidden]):not([tabindex=\"-1\"]),');\nfunction $9bf71ea28793e738$export$4c063cf1350e6fed(element) {\n return element.matches($9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR);\n}\nfunction $9bf71ea28793e738$var$getScopeRoot(scope) {\n return scope[0].parentElement;\n}\nfunction $9bf71ea28793e738$var$shouldContainFocus(scopeRef) {\n let scope = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);\n while(scope && scope.scopeRef !== scopeRef){\n if (scope.contain) return false;\n scope = scope.parent;\n }\n return true;\n}\nfunction $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {\n let focusedNode = (0, $cgawC$useRef)(undefined);\n let raf = (0, $cgawC$useRef)(undefined);\n (0, $cgawC$useLayoutEffect)(()=>{\n let scope = scopeRef.current;\n if (!contain) {\n // if contain was changed, then we should cancel any ongoing waits to pull focus back into containment\n if (raf.current) {\n cancelAnimationFrame(raf.current);\n raf.current = undefined;\n }\n return;\n }\n const ownerDocument = (0, $cgawC$getOwnerDocument)(scope ? scope[0] : undefined);\n // Handle the Tab key to contain focus within the scope\n let onKeyDown = (e)=>{\n if (e.key !== 'Tab' || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;\n let focusedElement = ownerDocument.activeElement;\n let scope = scopeRef.current;\n if (!scope || !$9bf71ea28793e738$var$isElementInScope(focusedElement, scope)) return;\n let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);\n let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {\n tabbable: true\n }, scope);\n if (!focusedElement) return;\n walker.currentNode = focusedElement;\n let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();\n if (!nextElement) {\n walker.currentNode = e.shiftKey ? scope[scope.length - 1].nextElementSibling : scope[0].previousElementSibling;\n nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();\n }\n e.preventDefault();\n if (nextElement) $9bf71ea28793e738$var$focusElement(nextElement, true);\n };\n let onFocus = (e)=>{\n // If focusing an element in a child scope of the currently active scope, the child becomes active.\n // Moving out of the active scope to an ancestor is not allowed.\n if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(e.target, scopeRef.current)) {\n $9bf71ea28793e738$var$activeScope = scopeRef;\n focusedNode.current = e.target;\n } else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(e.target, scopeRef)) {\n // If a focus event occurs outside the active scope (e.g. user tabs from browser location bar),\n // restore focus to the previously focused node or the first tabbable element in the active scope.\n if (focusedNode.current) focusedNode.current.focus();\n else if ($9bf71ea28793e738$var$activeScope && $9bf71ea28793e738$var$activeScope.current) $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);\n } else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef)) focusedNode.current = e.target;\n };\n let onBlur = (e)=>{\n // Firefox doesn't shift focus back to the Dialog properly without this\n if (raf.current) cancelAnimationFrame(raf.current);\n raf.current = requestAnimationFrame(()=>{\n // Use document.activeElement instead of e.relatedTarget so we can tell if user clicked into iframe\n if (ownerDocument.activeElement && $9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(ownerDocument.activeElement, scopeRef)) {\n $9bf71ea28793e738$var$activeScope = scopeRef;\n if (ownerDocument.body.contains(e.target)) {\n var _focusedNode_current;\n focusedNode.current = e.target;\n (_focusedNode_current = focusedNode.current) === null || _focusedNode_current === void 0 ? void 0 : _focusedNode_current.focus();\n } else if ($9bf71ea28793e738$var$activeScope.current) $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);\n }\n });\n };\n ownerDocument.addEventListener('keydown', onKeyDown, false);\n ownerDocument.addEventListener('focusin', onFocus, false);\n scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));\n scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.addEventListener('focusout', onBlur, false));\n return ()=>{\n ownerDocument.removeEventListener('keydown', onKeyDown, false);\n ownerDocument.removeEventListener('focusin', onFocus, false);\n scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));\n scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.removeEventListener('focusout', onBlur, false));\n };\n }, [\n scopeRef,\n contain\n ]);\n // This is a useLayoutEffect so it is guaranteed to run before our async synthetic blur\n // eslint-disable-next-line arrow-body-style\n (0, $cgawC$useLayoutEffect)(()=>{\n return ()=>{\n if (raf.current) cancelAnimationFrame(raf.current);\n };\n }, [\n raf\n ]);\n}\nfunction $9bf71ea28793e738$var$isElementInAnyScope(element) {\n return $9bf71ea28793e738$var$isElementInChildScope(element);\n}\nfunction $9bf71ea28793e738$var$isElementInScope(element, scope) {\n if (!element) return false;\n if (!scope) return false;\n return scope.some((node)=>node.contains(element));\n}\nfunction $9bf71ea28793e738$var$isElementInChildScope(element, scope = null) {\n // If the element is within a top layer element (e.g. toasts), always allow moving focus there.\n if (element instanceof Element && element.closest('[data-react-aria-top-layer]')) return true;\n // node.contains in isElementInScope covers child scopes that are also DOM children,\n // but does not cover child scopes in portals.\n for (let { scopeRef: s } of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope))){\n if (s && $9bf71ea28793e738$var$isElementInScope(element, s.current)) return true;\n }\n return false;\n}\nfunction $9bf71ea28793e738$export$1258395f99bf9cbf(element) {\n return $9bf71ea28793e738$var$isElementInChildScope(element, $9bf71ea28793e738$var$activeScope);\n}\nfunction $9bf71ea28793e738$var$isAncestorScope(ancestor, scope) {\n var _focusScopeTree_getTreeNode;\n let parent = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope)) === null || _focusScopeTree_getTreeNode === void 0 ? void 0 : _focusScopeTree_getTreeNode.parent;\n while(parent){\n if (parent.scopeRef === ancestor) return true;\n parent = parent.parent;\n }\n return false;\n}\nfunction $9bf71ea28793e738$var$focusElement(element, scroll = false) {\n if (element != null && !scroll) try {\n (0, $6a99195332edec8b$export$80f3e147d781571c)(element);\n } catch (err) {\n // ignore\n }\n else if (element != null) try {\n element.focus();\n } catch (err) {\n // ignore\n }\n}\nfunction $9bf71ea28793e738$var$getFirstInScope(scope, tabbable = true) {\n let sentinel = scope[0].previousElementSibling;\n let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);\n let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {\n tabbable: tabbable\n }, scope);\n walker.currentNode = sentinel;\n let nextNode = walker.nextNode();\n // If the scope does not contain a tabbable element, use the first focusable element.\n if (tabbable && !nextNode) {\n scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);\n walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {\n tabbable: false\n }, scope);\n walker.currentNode = sentinel;\n nextNode = walker.nextNode();\n }\n return nextNode;\n}\nfunction $9bf71ea28793e738$var$focusFirstInScope(scope, tabbable = true) {\n $9bf71ea28793e738$var$focusElement($9bf71ea28793e738$var$getFirstInScope(scope, tabbable));\n}\nfunction $9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus) {\n const autoFocusRef = (0, $cgawC$react).useRef(autoFocus);\n (0, $cgawC$useEffect)(()=>{\n if (autoFocusRef.current) {\n $9bf71ea28793e738$var$activeScope = scopeRef;\n const ownerDocument = (0, $cgawC$getOwnerDocument)(scopeRef.current ? scopeRef.current[0] : undefined);\n if (!$9bf71ea28793e738$var$isElementInScope(ownerDocument.activeElement, $9bf71ea28793e738$var$activeScope.current) && scopeRef.current) $9bf71ea28793e738$var$focusFirstInScope(scopeRef.current);\n }\n autoFocusRef.current = false;\n }, [\n scopeRef\n ]);\n}\nfunction $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restore, contain) {\n // tracks the active scope, in case restore and contain are both false.\n // if either are true, this is tracked in useRestoreFocus or useFocusContainment.\n (0, $cgawC$useLayoutEffect)(()=>{\n if (restore || contain) return;\n let scope = scopeRef.current;\n const ownerDocument = (0, $cgawC$getOwnerDocument)(scope ? scope[0] : undefined);\n let onFocus = (e)=>{\n let target = e.target;\n if ($9bf71ea28793e738$var$isElementInScope(target, scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;\n else if (!$9bf71ea28793e738$var$isElementInAnyScope(target)) $9bf71ea28793e738$var$activeScope = null;\n };\n ownerDocument.addEventListener('focusin', onFocus, false);\n scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));\n return ()=>{\n ownerDocument.removeEventListener('focusin', onFocus, false);\n scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));\n };\n }, [\n scopeRef,\n restore,\n contain\n ]);\n}\nfunction $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef) {\n let scope = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);\n while(scope && scope.scopeRef !== scopeRef){\n if (scope.nodeToRestore) return false;\n scope = scope.parent;\n }\n return (scope === null || scope === void 0 ? void 0 : scope.scopeRef) === scopeRef;\n}\nfunction $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain) {\n // create a ref during render instead of useLayoutEffect so the active element is saved before a child with autoFocus=true mounts.\n // eslint-disable-next-line no-restricted-globals\n const nodeToRestoreRef = (0, $cgawC$useRef)(typeof document !== 'undefined' ? (0, $cgawC$getOwnerDocument)(scopeRef.current ? scopeRef.current[0] : undefined).activeElement : null);\n // restoring scopes should all track if they are active regardless of contain, but contain already tracks it plus logic to contain the focus\n // restoring-non-containing scopes should only care if they become active so they can perform the restore\n (0, $cgawC$useLayoutEffect)(()=>{\n let scope = scopeRef.current;\n const ownerDocument = (0, $cgawC$getOwnerDocument)(scope ? scope[0] : undefined);\n if (!restoreFocus || contain) return;\n let onFocus = ()=>{\n // If focusing an element in a child scope of the currently active scope, the child becomes active.\n // Moving out of the active scope to an ancestor is not allowed.\n if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(ownerDocument.activeElement, scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;\n };\n ownerDocument.addEventListener('focusin', onFocus, false);\n scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));\n return ()=>{\n ownerDocument.removeEventListener('focusin', onFocus, false);\n scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n scopeRef,\n contain\n ]);\n (0, $cgawC$useLayoutEffect)(()=>{\n const ownerDocument = (0, $cgawC$getOwnerDocument)(scopeRef.current ? scopeRef.current[0] : undefined);\n if (!restoreFocus) return;\n // Handle the Tab key so that tabbing out of the scope goes to the next element\n // after the node that had focus when the scope mounted. This is important when\n // using portals for overlays, so that focus goes to the expected element when\n // tabbing out of the overlay.\n let onKeyDown = (e)=>{\n if (e.key !== 'Tab' || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;\n let focusedElement = ownerDocument.activeElement;\n if (!$9bf71ea28793e738$var$isElementInScope(focusedElement, scopeRef.current)) return;\n let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);\n if (!treeNode) return;\n let nodeToRestore = treeNode.nodeToRestore;\n // Create a DOM tree walker that matches all tabbable elements\n let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ownerDocument.body, {\n tabbable: true\n });\n // Find the next tabbable element after the currently focused element\n walker.currentNode = focusedElement;\n let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();\n if (!nodeToRestore || !ownerDocument.body.contains(nodeToRestore) || nodeToRestore === ownerDocument.body) {\n nodeToRestore = undefined;\n treeNode.nodeToRestore = undefined;\n }\n // If there is no next element, or it is outside the current scope, move focus to the\n // next element after the node to restore to instead.\n if ((!nextElement || !$9bf71ea28793e738$var$isElementInScope(nextElement, scopeRef.current)) && nodeToRestore) {\n walker.currentNode = nodeToRestore;\n // Skip over elements within the scope, in case the scope immediately follows the node to restore.\n do nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();\n while ($9bf71ea28793e738$var$isElementInScope(nextElement, scopeRef.current));\n e.preventDefault();\n e.stopPropagation();\n if (nextElement) $9bf71ea28793e738$var$focusElement(nextElement, true);\n else // If there is no next element and the nodeToRestore isn't within a FocusScope (i.e. we are leaving the top level focus scope)\n // then move focus to the body.\n // Otherwise restore focus to the nodeToRestore (e.g menu within a popover -> tabbing to close the menu should move focus to menu trigger)\n if (!$9bf71ea28793e738$var$isElementInAnyScope(nodeToRestore)) focusedElement.blur();\n else $9bf71ea28793e738$var$focusElement(nodeToRestore, true);\n }\n };\n if (!contain) ownerDocument.addEventListener('keydown', onKeyDown, true);\n return ()=>{\n if (!contain) ownerDocument.removeEventListener('keydown', onKeyDown, true);\n };\n }, [\n scopeRef,\n restoreFocus,\n contain\n ]);\n // useLayoutEffect instead of useEffect so the active element is saved synchronously instead of asynchronously.\n (0, $cgawC$useLayoutEffect)(()=>{\n const ownerDocument = (0, $cgawC$getOwnerDocument)(scopeRef.current ? scopeRef.current[0] : undefined);\n if (!restoreFocus) return;\n let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);\n if (!treeNode) return;\n var _nodeToRestoreRef_current;\n treeNode.nodeToRestore = (_nodeToRestoreRef_current = nodeToRestoreRef.current) !== null && _nodeToRestoreRef_current !== void 0 ? _nodeToRestoreRef_current : undefined;\n return ()=>{\n let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);\n if (!treeNode) return;\n let nodeToRestore = treeNode.nodeToRestore;\n // if we already lost focus to the body and this was the active scope, then we should attempt to restore\n if (restoreFocus && nodeToRestore && // eslint-disable-next-line react-hooks/exhaustive-deps\n ($9bf71ea28793e738$var$isElementInScope(ownerDocument.activeElement, scopeRef.current) || ownerDocument.activeElement === ownerDocument.body && $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef))) {\n // freeze the focusScopeTree so it persists after the raf, otherwise during unmount nodes are removed from it\n let clonedTree = $9bf71ea28793e738$export$d06fae2ee68b101e.clone();\n requestAnimationFrame(()=>{\n // Only restore focus if we've lost focus to the body, the alternative is that focus has been purposefully moved elsewhere\n if (ownerDocument.activeElement === ownerDocument.body) {\n // look up the tree starting with our scope to find a nodeToRestore still in the DOM\n let treeNode = clonedTree.getTreeNode(scopeRef);\n while(treeNode){\n if (treeNode.nodeToRestore && treeNode.nodeToRestore.isConnected) {\n $9bf71ea28793e738$var$restoreFocusToElement(treeNode.nodeToRestore);\n return;\n }\n treeNode = treeNode.parent;\n }\n // If no nodeToRestore was found, focus the first element in the nearest\n // ancestor scope that is still in the tree.\n treeNode = clonedTree.getTreeNode(scopeRef);\n while(treeNode){\n if (treeNode.scopeRef && treeNode.scopeRef.current && $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(treeNode.scopeRef)) {\n let node = $9bf71ea28793e738$var$getFirstInScope(treeNode.scopeRef.current, true);\n $9bf71ea28793e738$var$restoreFocusToElement(node);\n return;\n }\n treeNode = treeNode.parent;\n }\n }\n });\n }\n };\n }, [\n scopeRef,\n restoreFocus\n ]);\n}\nfunction $9bf71ea28793e738$var$restoreFocusToElement(node) {\n // Dispatch a custom event that parent elements can intercept to customize focus restoration.\n // For example, virtualized collection components reuse DOM elements, so the original element\n // might still exist in the DOM but representing a different item.\n if (node.dispatchEvent(new CustomEvent($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, {\n bubbles: true,\n cancelable: true\n }))) $9bf71ea28793e738$var$focusElement(node);\n}\nfunction $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, opts, scope) {\n let selector = (opts === null || opts === void 0 ? void 0 : opts.tabbable) ? $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR : $9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR;\n let walker = (0, $cgawC$getOwnerDocument)(root).createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {\n acceptNode (node) {\n var _opts_from;\n // Skip nodes inside the starting node.\n if (opts === null || opts === void 0 ? void 0 : (_opts_from = opts.from) === null || _opts_from === void 0 ? void 0 : _opts_from.contains(node)) return NodeFilter.FILTER_REJECT;\n if (node.matches(selector) && (0, $645f2e67b85a24c9$export$e989c0fffaa6b27a)(node) && (!scope || $9bf71ea28793e738$var$isElementInScope(node, scope)) && (!(opts === null || opts === void 0 ? void 0 : opts.accept) || opts.accept(node))) return NodeFilter.FILTER_ACCEPT;\n return NodeFilter.FILTER_SKIP;\n }\n });\n if (opts === null || opts === void 0 ? void 0 : opts.from) walker.currentNode = opts.from;\n return walker;\n}\nfunction $9bf71ea28793e738$export$c5251b9e124bf29(ref, defaultOptions = {}) {\n return {\n focusNext (opts = {}) {\n let root = ref.current;\n if (!root) return null;\n let { from: from, tabbable: tabbable = defaultOptions.tabbable, wrap: wrap = defaultOptions.wrap, accept: accept = defaultOptions.accept } = opts;\n let node = from || (0, $cgawC$getOwnerDocument)(root).activeElement;\n let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {\n tabbable: tabbable,\n accept: accept\n });\n if (root.contains(node)) walker.currentNode = node;\n let nextNode = walker.nextNode();\n if (!nextNode && wrap) {\n walker.currentNode = root;\n nextNode = walker.nextNode();\n }\n if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);\n return nextNode;\n },\n focusPrevious (opts = defaultOptions) {\n let root = ref.current;\n if (!root) return null;\n let { from: from, tabbable: tabbable = defaultOptions.tabbable, wrap: wrap = defaultOptions.wrap, accept: accept = defaultOptions.accept } = opts;\n let node = from || (0, $cgawC$getOwnerDocument)(root).activeElement;\n let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {\n tabbable: tabbable,\n accept: accept\n });\n if (root.contains(node)) walker.currentNode = node;\n else {\n let next = $9bf71ea28793e738$var$last(walker);\n if (next) $9bf71ea28793e738$var$focusElement(next, true);\n return next !== null && next !== void 0 ? next : null;\n }\n let previousNode = walker.previousNode();\n if (!previousNode && wrap) {\n walker.currentNode = root;\n let lastNode = $9bf71ea28793e738$var$last(walker);\n if (!lastNode) // couldn't wrap\n return null;\n previousNode = lastNode;\n }\n if (previousNode) $9bf71ea28793e738$var$focusElement(previousNode, true);\n return previousNode !== null && previousNode !== void 0 ? previousNode : null;\n },\n focusFirst (opts = defaultOptions) {\n let root = ref.current;\n if (!root) return null;\n let { tabbable: tabbable = defaultOptions.tabbable, accept: accept = defaultOptions.accept } = opts;\n let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {\n tabbable: tabbable,\n accept: accept\n });\n let nextNode = walker.nextNode();\n if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);\n return nextNode;\n },\n focusLast (opts = defaultOptions) {\n let root = ref.current;\n if (!root) return null;\n let { tabbable: tabbable = defaultOptions.tabbable, accept: accept = defaultOptions.accept } = opts;\n let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {\n tabbable: tabbable,\n accept: accept\n });\n let next = $9bf71ea28793e738$var$last(walker);\n if (next) $9bf71ea28793e738$var$focusElement(next, true);\n return next !== null && next !== void 0 ? next : null;\n }\n };\n}\nfunction $9bf71ea28793e738$var$last(walker) {\n let next = undefined;\n let last;\n do {\n last = walker.lastChild();\n if (last) next = last;\n }while (last);\n return next;\n}\nclass $9bf71ea28793e738$var$Tree {\n get size() {\n return this.fastMap.size;\n }\n getTreeNode(data) {\n return this.fastMap.get(data);\n }\n addTreeNode(scopeRef, parent, nodeToRestore) {\n let parentNode = this.fastMap.get(parent !== null && parent !== void 0 ? parent : null);\n if (!parentNode) return;\n let node = new $9bf71ea28793e738$var$TreeNode({\n scopeRef: scopeRef\n });\n parentNode.addChild(node);\n node.parent = parentNode;\n this.fastMap.set(scopeRef, node);\n if (nodeToRestore) node.nodeToRestore = nodeToRestore;\n }\n addNode(node) {\n this.fastMap.set(node.scopeRef, node);\n }\n removeTreeNode(scopeRef) {\n // never remove the root\n if (scopeRef === null) return;\n let node = this.fastMap.get(scopeRef);\n if (!node) return;\n let parentNode = node.parent;\n // when we remove a scope, check if any sibling scopes are trying to restore focus to something inside the scope we're removing\n // if we are, then replace the siblings restore with the restore from the scope we're removing\n for (let current of this.traverse())if (current !== node && node.nodeToRestore && current.nodeToRestore && node.scopeRef && node.scopeRef.current && $9bf71ea28793e738$var$isElementInScope(current.nodeToRestore, node.scopeRef.current)) current.nodeToRestore = node.nodeToRestore;\n let children = node.children;\n if (parentNode) {\n parentNode.removeChild(node);\n if (children.size > 0) children.forEach((child)=>parentNode && parentNode.addChild(child));\n }\n this.fastMap.delete(node.scopeRef);\n }\n // Pre Order Depth First\n *traverse(node = this.root) {\n if (node.scopeRef != null) yield node;\n if (node.children.size > 0) for (let child of node.children)yield* this.traverse(child);\n }\n clone() {\n var _node_parent;\n let newTree = new $9bf71ea28793e738$var$Tree();\n var _node_parent_scopeRef;\n for (let node of this.traverse())newTree.addTreeNode(node.scopeRef, (_node_parent_scopeRef = (_node_parent = node.parent) === null || _node_parent === void 0 ? void 0 : _node_parent.scopeRef) !== null && _node_parent_scopeRef !== void 0 ? _node_parent_scopeRef : null, node.nodeToRestore);\n return newTree;\n }\n constructor(){\n this.fastMap = new Map();\n this.root = new $9bf71ea28793e738$var$TreeNode({\n scopeRef: null\n });\n this.fastMap.set(null, this.root);\n }\n}\nclass $9bf71ea28793e738$var$TreeNode {\n addChild(node) {\n this.children.add(node);\n node.parent = this;\n }\n removeChild(node) {\n this.children.delete(node);\n node.parent = undefined;\n }\n constructor(props){\n this.children = new Set();\n this.contain = false;\n this.scopeRef = props.scopeRef;\n }\n}\nlet $9bf71ea28793e738$export$d06fae2ee68b101e = new $9bf71ea28793e738$var$Tree();\n\n\nexport {$9bf71ea28793e738$export$20e40289641fbbb6 as FocusScope, $9bf71ea28793e738$export$d06fae2ee68b101e as focusScopeTree, $9bf71ea28793e738$export$10c5169755ce7bd7 as useFocusManager, $9bf71ea28793e738$export$2d6ec8fc375ceafa as getFocusableTreeWalker, $9bf71ea28793e738$export$4c063cf1350e6fed as isFocusable, $9bf71ea28793e738$export$1258395f99bf9cbf as isElementInChildOfActiveScope, $9bf71ea28793e738$export$c5251b9e124bf29 as createFocusManager};\n","import {getOwnerDocument as $jlOai$getOwnerDocument, runAfterTransition as $jlOai$runAfterTransition, focusWithoutScrolling as $jlOai$focusWithoutScrolling} from \"@react-aria/utils\";\nimport {getInteractionModality as $jlOai$getInteractionModality} from \"@react-aria/interactions\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the 'License');\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $6a99195332edec8b$export$80f3e147d781571c(element) {\n // If the user is interacting with a virtual cursor, e.g. screen reader, then\n // wait until after any animated transitions that are currently occurring on\n // the page before shifting focus. This avoids issues with VoiceOver on iOS\n // causing the page to scroll when moving focus if the element is transitioning\n // from off the screen.\n const ownerDocument = (0, $jlOai$getOwnerDocument)(element);\n if ((0, $jlOai$getInteractionModality)() === 'virtual') {\n let lastFocusedElement = ownerDocument.activeElement;\n (0, $jlOai$runAfterTransition)(()=>{\n // If focus did not move and the element is still in the document, focus it.\n if (ownerDocument.activeElement === lastFocusedElement && element.isConnected) (0, $jlOai$focusWithoutScrolling)(element);\n });\n } else (0, $jlOai$focusWithoutScrolling)(element);\n}\n\n\nexport {$6a99195332edec8b$export$80f3e147d781571c as focusSafely};\n","import {useSyntheticBlurEvent as $8a9cb279dc87e130$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {useCallback as $hf0lj$useCallback} from \"react\";\nimport {getOwnerDocument as $hf0lj$getOwnerDocument} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\nfunction $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {\n let { isDisabled: isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange: onFocusChange } = props;\n const onBlur = (0, $hf0lj$useCallback)((e)=>{\n if (e.target === e.currentTarget) {\n if (onBlurProp) onBlurProp(e);\n if (onFocusChange) onFocusChange(false);\n return true;\n }\n }, [\n onBlurProp,\n onFocusChange\n ]);\n const onSyntheticFocus = (0, $8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);\n const onFocus = (0, $hf0lj$useCallback)((e)=>{\n // Double check that document.activeElement actually matches e.target in case a previously chained\n // focus handler already moved focus somewhere else.\n const ownerDocument = (0, $hf0lj$getOwnerDocument)(e.target);\n if (e.target === e.currentTarget && ownerDocument.activeElement === e.target) {\n if (onFocusProp) onFocusProp(e);\n if (onFocusChange) onFocusChange(true);\n onSyntheticFocus(e);\n }\n }, [\n onFocusChange,\n onFocusProp,\n onSyntheticFocus\n ]);\n return {\n focusProps: {\n onFocus: !isDisabled && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : undefined,\n onBlur: !isDisabled && (onBlurProp || onFocusChange) ? onBlur : undefined\n }\n };\n}\n\n\nexport {$a1ea59d68270f0dd$export$f8168d8dd8fd66e6 as useFocus};\n","import {isMac as $28AnR$isMac, isVirtualClick as $28AnR$isVirtualClick, getOwnerWindow as $28AnR$getOwnerWindow, getOwnerDocument as $28AnR$getOwnerDocument} from \"@react-aria/utils\";\nimport {useState as $28AnR$useState, useEffect as $28AnR$useEffect} from \"react\";\nimport {useIsSSR as $28AnR$useIsSSR} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\n\nlet $507fabe10e71c6fb$var$currentModality = null;\nlet $507fabe10e71c6fb$var$changeHandlers = new Set();\nlet $507fabe10e71c6fb$export$d90243b58daecda7 = new Map(); // We use a map here to support setting event listeners across multiple document objects.\nlet $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\nlet $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n// Only Tab or Esc keys will make focus visible on text input elements\nconst $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {\n Tab: true,\n Escape: true\n};\nfunction $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {\n for (let handler of $507fabe10e71c6fb$var$changeHandlers)handler(modality, e);\n}\n/**\n * Helper function to determine if a KeyboardEvent is unmodified and could make keyboard focus styles visible.\n */ function $507fabe10e71c6fb$var$isValidKey(e) {\n // Control and Shift keys trigger when navigating back to the tab with keyboard.\n return !(e.metaKey || !(0, $28AnR$isMac)() && e.altKey || e.ctrlKey || e.key === 'Control' || e.key === 'Shift' || e.key === 'Meta');\n}\nfunction $507fabe10e71c6fb$var$handleKeyboardEvent(e) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n if ($507fabe10e71c6fb$var$isValidKey(e)) {\n $507fabe10e71c6fb$var$currentModality = 'keyboard';\n $507fabe10e71c6fb$var$triggerChangeHandlers('keyboard', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handlePointerEvent(e) {\n $507fabe10e71c6fb$var$currentModality = 'pointer';\n if (e.type === 'mousedown' || e.type === 'pointerdown') {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$triggerChangeHandlers('pointer', e);\n }\n}\nfunction $507fabe10e71c6fb$var$handleClickEvent(e) {\n if ((0, $28AnR$isVirtualClick)(e)) {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n }\n}\nfunction $507fabe10e71c6fb$var$handleFocusEvent(e) {\n // Firefox fires two extra focus events when the user first clicks into an iframe:\n // first on the window, then on the document. We ignore these events so they don't\n // cause keyboard focus rings to appear.\n if (e.target === window || e.target === document) return;\n // If a focus event occurs without a preceding keyboard or pointer event, switch to virtual modality.\n // This occurs, for example, when navigating a form with the next/previous buttons on iOS.\n if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {\n $507fabe10e71c6fb$var$currentModality = 'virtual';\n $507fabe10e71c6fb$var$triggerChangeHandlers('virtual', e);\n }\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;\n}\nfunction $507fabe10e71c6fb$var$handleWindowBlur() {\n // When the window is blurred, reset state. This is necessary when tabbing out of the window,\n // for example, since a subsequent focus event won't be fired.\n $507fabe10e71c6fb$var$hasEventBeforeFocus = false;\n $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;\n}\n/**\n * Setup global event listeners to control when keyboard focus style should be visible.\n */ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {\n if (typeof window === 'undefined' || $507fabe10e71c6fb$export$d90243b58daecda7.get((0, $28AnR$getOwnerWindow)(element))) return;\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n // Programmatic focus() calls shouldn't affect the current input modality.\n // However, we need to detect other cases when a focus event occurs without\n // a preceding user event (e.g. screen reader focus). Overriding the focus\n // method on HTMLElement.prototype is a bit hacky, but works.\n let focus = windowObject.HTMLElement.prototype.focus;\n windowObject.HTMLElement.prototype.focus = function() {\n $507fabe10e71c6fb$var$hasEventBeforeFocus = true;\n focus.apply(this, arguments);\n };\n documentObject.addEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.addEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n // Register focus events on the window so they are sure to happen\n // before React's event listeners (registered on the document).\n windowObject.addEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.addEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.addEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else {\n documentObject.addEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.addEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n // Add unmount handler\n windowObject.addEventListener('beforeunload', ()=>{\n $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);\n }, {\n once: true\n });\n $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {\n focus: focus\n });\n}\nconst $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener)=>{\n const windowObject = (0, $28AnR$getOwnerWindow)(element);\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n if (loadListener) documentObject.removeEventListener('DOMContentLoaded', loadListener);\n if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;\n windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;\n documentObject.removeEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);\n documentObject.removeEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);\n windowObject.removeEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);\n windowObject.removeEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);\n if (typeof PointerEvent !== 'undefined') {\n documentObject.removeEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n } else {\n documentObject.removeEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);\n documentObject.removeEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);\n }\n $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);\n};\nfunction $507fabe10e71c6fb$export$2f1888112f558a7d(element) {\n const documentObject = (0, $28AnR$getOwnerDocument)(element);\n let loadListener;\n if (documentObject.readyState !== 'loading') $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n else {\n loadListener = ()=>{\n $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);\n };\n documentObject.addEventListener('DOMContentLoaded', loadListener);\n }\n return ()=>$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);\n}\n// Server-side rendering does not have the document object defined\n// eslint-disable-next-line no-restricted-globals\nif (typeof document !== 'undefined') $507fabe10e71c6fb$export$2f1888112f558a7d();\nfunction $507fabe10e71c6fb$export$b9b3dfddab17db27() {\n return $507fabe10e71c6fb$var$currentModality !== 'pointer';\n}\nfunction $507fabe10e71c6fb$export$630ff653c5ada6a9() {\n return $507fabe10e71c6fb$var$currentModality;\n}\nfunction $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {\n $507fabe10e71c6fb$var$currentModality = modality;\n $507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);\n}\nfunction $507fabe10e71c6fb$export$98e20ec92f614cfe() {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n let [modality, setModality] = (0, $28AnR$useState)($507fabe10e71c6fb$var$currentModality);\n (0, $28AnR$useEffect)(()=>{\n let handler = ()=>{\n setModality($507fabe10e71c6fb$var$currentModality);\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n }, []);\n return (0, $28AnR$useIsSSR)() ? null : modality;\n}\nconst $507fabe10e71c6fb$var$nonTextInputTypes = new Set([\n 'checkbox',\n 'radio',\n 'range',\n 'color',\n 'file',\n 'image',\n 'button',\n 'submit',\n 'reset'\n]);\n/**\n * If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that\n * focus visible style can be properly set.\n */ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {\n var _e_target;\n const IHTMLInputElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;\n const IHTMLTextAreaElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;\n const IHTMLElement = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;\n const IKeyboardEvent = typeof window !== 'undefined' ? (0, $28AnR$getOwnerWindow)(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;\n isTextInput = isTextInput || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(e === null || e === void 0 ? void 0 : (_e_target = e.target) === null || _e_target === void 0 ? void 0 : _e_target.type) || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLTextAreaElement || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLElement && (e === null || e === void 0 ? void 0 : e.target.isContentEditable);\n return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);\n}\nfunction $507fabe10e71c6fb$export$ffd9e5021c1fb2d6(props = {}) {\n let { isTextInput: isTextInput, autoFocus: autoFocus } = props;\n let [isFocusVisibleState, setFocusVisible] = (0, $28AnR$useState)(autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27());\n $507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible)=>{\n setFocusVisible(isFocusVisible);\n }, [\n isTextInput\n ], {\n isTextInput: isTextInput\n });\n return {\n isFocusVisible: isFocusVisibleState\n };\n}\nfunction $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {\n $507fabe10e71c6fb$var$setupGlobalFocusEvents();\n (0, $28AnR$useEffect)(()=>{\n let handler = (modality, e)=>{\n if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;\n fn($507fabe10e71c6fb$export$b9b3dfddab17db27());\n };\n $507fabe10e71c6fb$var$changeHandlers.add(handler);\n return ()=>{\n $507fabe10e71c6fb$var$changeHandlers.delete(handler);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n}\n\n\nexport {$507fabe10e71c6fb$export$d90243b58daecda7 as hasSetupGlobalListeners, $507fabe10e71c6fb$export$2f1888112f558a7d as addWindowFocusTracking, $507fabe10e71c6fb$export$b9b3dfddab17db27 as isFocusVisible, $507fabe10e71c6fb$export$630ff653c5ada6a9 as getInteractionModality, $507fabe10e71c6fb$export$8397ddfc504fdb9a as setInteractionModality, $507fabe10e71c6fb$export$98e20ec92f614cfe as useInteractionModality, $507fabe10e71c6fb$export$ffd9e5021c1fb2d6 as useFocusVisible, $507fabe10e71c6fb$export$ec71b4b83ac08ec3 as useFocusVisibleListener};\n","import {useSyntheticBlurEvent as $8a9cb279dc87e130$export$715c682d09d639cc} from \"./utils.mjs\";\nimport {useRef as $3b9Q0$useRef, useCallback as $3b9Q0$useCallback} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\nfunction $9ab94262bd0047c7$export$420e68273165f4ec(props) {\n let { isDisabled: isDisabled, onBlurWithin: onBlurWithin, onFocusWithin: onFocusWithin, onFocusWithinChange: onFocusWithinChange } = props;\n let state = (0, $3b9Q0$useRef)({\n isFocusWithin: false\n });\n let onBlur = (0, $3b9Q0$useCallback)((e)=>{\n // We don't want to trigger onBlurWithin and then immediately onFocusWithin again\n // when moving focus inside the element. Only trigger if the currentTarget doesn't\n // include the relatedTarget (where focus is moving).\n if (state.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget)) {\n state.current.isFocusWithin = false;\n if (onBlurWithin) onBlurWithin(e);\n if (onFocusWithinChange) onFocusWithinChange(false);\n }\n }, [\n onBlurWithin,\n onFocusWithinChange,\n state\n ]);\n let onSyntheticFocus = (0, $8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);\n let onFocus = (0, $3b9Q0$useCallback)((e)=>{\n // Double check that document.activeElement actually matches e.target in case a previously chained\n // focus handler already moved focus somewhere else.\n if (!state.current.isFocusWithin && document.activeElement === e.target) {\n if (onFocusWithin) onFocusWithin(e);\n if (onFocusWithinChange) onFocusWithinChange(true);\n state.current.isFocusWithin = true;\n onSyntheticFocus(e);\n }\n }, [\n onFocusWithin,\n onFocusWithinChange,\n onSyntheticFocus\n ]);\n if (isDisabled) return {\n focusWithinProps: {\n // These should not have been null, that would conflict in mergeProps\n onFocus: undefined,\n onBlur: undefined\n }\n };\n return {\n focusWithinProps: {\n onFocus: onFocus,\n onBlur: onBlur\n }\n };\n}\n\n\nexport {$9ab94262bd0047c7$export$420e68273165f4ec as useFocusWithin};\n","import {useRef as $6dfIe$useRef, useCallback as $6dfIe$useCallback} from \"react\";\nimport {useLayoutEffect as $6dfIe$useLayoutEffect, useEffectEvent as $6dfIe$useEffectEvent} from \"@react-aria/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nclass $8a9cb279dc87e130$export$905e7fc544a71f36 {\n isDefaultPrevented() {\n return this.nativeEvent.defaultPrevented;\n }\n preventDefault() {\n this.defaultPrevented = true;\n this.nativeEvent.preventDefault();\n }\n stopPropagation() {\n this.nativeEvent.stopPropagation();\n this.isPropagationStopped = ()=>true;\n }\n isPropagationStopped() {\n return false;\n }\n persist() {}\n constructor(type, nativeEvent){\n this.nativeEvent = nativeEvent;\n this.target = nativeEvent.target;\n this.currentTarget = nativeEvent.currentTarget;\n this.relatedTarget = nativeEvent.relatedTarget;\n this.bubbles = nativeEvent.bubbles;\n this.cancelable = nativeEvent.cancelable;\n this.defaultPrevented = nativeEvent.defaultPrevented;\n this.eventPhase = nativeEvent.eventPhase;\n this.isTrusted = nativeEvent.isTrusted;\n this.timeStamp = nativeEvent.timeStamp;\n this.type = type;\n }\n}\nfunction $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {\n let stateRef = (0, $6dfIe$useRef)({\n isFocused: false,\n observer: null\n });\n // Clean up MutationObserver on unmount. See below.\n // eslint-disable-next-line arrow-body-style\n (0, $6dfIe$useLayoutEffect)(()=>{\n const state = stateRef.current;\n return ()=>{\n if (state.observer) {\n state.observer.disconnect();\n state.observer = null;\n }\n };\n }, []);\n let dispatchBlur = (0, $6dfIe$useEffectEvent)((e)=>{\n onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);\n });\n // This function is called during a React onFocus event.\n return (0, $6dfIe$useCallback)((e)=>{\n // React does not fire onBlur when an element is disabled. https://github.com/facebook/react/issues/9142\n // Most browsers fire a native focusout event in this case, except for Firefox. In that case, we use a\n // MutationObserver to watch for the disabled attribute, and dispatch these events ourselves.\n // For browsers that do, focusout fires before the MutationObserver, so onBlur should not fire twice.\n if (e.target instanceof HTMLButtonElement || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) {\n stateRef.current.isFocused = true;\n let target = e.target;\n let onBlurHandler = (e)=>{\n stateRef.current.isFocused = false;\n if (target.disabled) // For backward compatibility, dispatch a (fake) React synthetic event.\n dispatchBlur(new $8a9cb279dc87e130$export$905e7fc544a71f36('blur', e));\n // We no longer need the MutationObserver once the target is blurred.\n if (stateRef.current.observer) {\n stateRef.current.observer.disconnect();\n stateRef.current.observer = null;\n }\n };\n target.addEventListener('focusout', onBlurHandler, {\n once: true\n });\n stateRef.current.observer = new MutationObserver(()=>{\n if (stateRef.current.isFocused && target.disabled) {\n var _stateRef_current_observer;\n (_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === void 0 ? void 0 : _stateRef_current_observer.disconnect();\n let relatedTargetEl = target === document.activeElement ? null : document.activeElement;\n target.dispatchEvent(new FocusEvent('blur', {\n relatedTarget: relatedTargetEl\n }));\n target.dispatchEvent(new FocusEvent('focusout', {\n bubbles: true,\n relatedTarget: relatedTargetEl\n }));\n }\n });\n stateRef.current.observer.observe(target, {\n attributes: true,\n attributeFilter: [\n 'disabled'\n ]\n });\n }\n }, [\n dispatchBlur\n ]);\n}\n\n\nexport {$8a9cb279dc87e130$export$905e7fc544a71f36 as SyntheticFocusEvent, $8a9cb279dc87e130$export$715c682d09d639cc as useSyntheticBlurEvent};\n","import $670gB$react, {useContext as $670gB$useContext, useState as $670gB$useState, useMemo as $670gB$useMemo, useLayoutEffect as $670gB$useLayoutEffect, useRef as $670gB$useRef} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is\n// guarded by a check that it only runs on the client side.\n// eslint-disable-next-line rulesdir/useLayoutEffectRule\n\n// Default context value to use in case there is no SSRProvider. This is fine for\n// client-only apps. In order to support multiple copies of React Aria potentially\n// being on the page at once, the prefix is set to a random number. SSRProvider\n// will reset this to zero for consistency between server and client, so in the\n// SSR case multiple copies of React Aria is not supported.\nconst $b5e257d569688ac6$var$defaultContext = {\n prefix: String(Math.round(Math.random() * 10000000000)),\n current: 0\n};\nconst $b5e257d569688ac6$var$SSRContext = /*#__PURE__*/ (0, $670gB$react).createContext($b5e257d569688ac6$var$defaultContext);\nconst $b5e257d569688ac6$var$IsSSRContext = /*#__PURE__*/ (0, $670gB$react).createContext(false);\n// This is only used in React < 18.\nfunction $b5e257d569688ac6$var$LegacySSRProvider(props) {\n let cur = (0, $670gB$useContext)($b5e257d569688ac6$var$SSRContext);\n let counter = $b5e257d569688ac6$var$useCounter(cur === $b5e257d569688ac6$var$defaultContext);\n let [isSSR, setIsSSR] = (0, $670gB$useState)(true);\n let value = (0, $670gB$useMemo)(()=>({\n // If this is the first SSRProvider, start with an empty string prefix, otherwise\n // append and increment the counter.\n prefix: cur === $b5e257d569688ac6$var$defaultContext ? '' : `${cur.prefix}-${counter}`,\n current: 0\n }), [\n cur,\n counter\n ]);\n // If on the client, and the component was initially server rendered,\n // then schedule a layout effect to update the component after hydration.\n if (typeof document !== 'undefined') // This if statement technically breaks the rules of hooks, but is safe\n // because the condition never changes after mounting.\n // eslint-disable-next-line react-hooks/rules-of-hooks\n (0, $670gB$useLayoutEffect)(()=>{\n setIsSSR(false);\n }, []);\n return /*#__PURE__*/ (0, $670gB$react).createElement($b5e257d569688ac6$var$SSRContext.Provider, {\n value: value\n }, /*#__PURE__*/ (0, $670gB$react).createElement($b5e257d569688ac6$var$IsSSRContext.Provider, {\n value: isSSR\n }, props.children));\n}\nlet $b5e257d569688ac6$var$warnedAboutSSRProvider = false;\nfunction $b5e257d569688ac6$export$9f8ac96af4b1b2ae(props) {\n if (typeof (0, $670gB$react)['useId'] === 'function') {\n if (process.env.NODE_ENV !== 'test' && !$b5e257d569688ac6$var$warnedAboutSSRProvider) {\n console.warn('In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app.');\n $b5e257d569688ac6$var$warnedAboutSSRProvider = true;\n }\n return /*#__PURE__*/ (0, $670gB$react).createElement((0, $670gB$react).Fragment, null, props.children);\n }\n return /*#__PURE__*/ (0, $670gB$react).createElement($b5e257d569688ac6$var$LegacySSRProvider, props);\n}\nlet $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);\nlet $b5e257d569688ac6$var$componentIds = new WeakMap();\nfunction $b5e257d569688ac6$var$useCounter(isDisabled = false) {\n let ctx = (0, $670gB$useContext)($b5e257d569688ac6$var$SSRContext);\n let ref = (0, $670gB$useRef)(null);\n // eslint-disable-next-line rulesdir/pure-render\n if (ref.current === null && !isDisabled) {\n var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n // In strict mode, React renders components twice, and the ref will be reset to null on the second render.\n // This means our id counter will be incremented twice instead of once. This is a problem because on the\n // server, components are only rendered once and so ids generated on the server won't match the client.\n // In React 18, useId was introduced to solve this, but it is not available in older versions. So to solve this\n // we need to use some React internals to access the underlying Fiber instance, which is stable between renders.\n // This is exposed as ReactCurrentOwner in development, which is all we need since StrictMode only runs in development.\n // To ensure that we only increment the global counter once, we store the starting id for this component in\n // a weak map associated with the Fiber. On the second render, we reset the global counter to this value.\n // Since React runs the second render immediately after the first, this is safe.\n // @ts-ignore\n let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = (0, $670gB$react).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;\n if (currentOwner) {\n let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);\n if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.\n $b5e257d569688ac6$var$componentIds.set(currentOwner, {\n id: ctx.current,\n state: currentOwner.memoizedState\n });\n else if (currentOwner.memoizedState !== prevComponentValue.state) {\n // On the second render, the memoizedState gets reset by React.\n // Reset the counter, and remove from the weak map so we don't\n // do this for subsequent useId calls.\n ctx.current = prevComponentValue.id;\n $b5e257d569688ac6$var$componentIds.delete(currentOwner);\n }\n }\n // eslint-disable-next-line rulesdir/pure-render\n ref.current = ++ctx.current;\n }\n // eslint-disable-next-line rulesdir/pure-render\n return ref.current;\n}\nfunction $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {\n let ctx = (0, $670gB$useContext)($b5e257d569688ac6$var$SSRContext);\n // If we are rendering in a non-DOM environment, and there's no SSRProvider,\n // provide a warning to hint to the developer to add one.\n if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM) console.warn('When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.');\n let counter = $b5e257d569688ac6$var$useCounter(!!defaultId);\n let prefix = ctx === $b5e257d569688ac6$var$defaultContext && process.env.NODE_ENV === 'test' ? 'react-aria' : `react-aria${ctx.prefix}`;\n return defaultId || `${prefix}-${counter}`;\n}\nfunction $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {\n // @ts-ignore\n let id = (0, $670gB$react).useId();\n let [didSSR] = (0, $670gB$useState)($b5e257d569688ac6$export$535bd6ca7f90a273());\n let prefix = didSSR || process.env.NODE_ENV === 'test' ? 'react-aria' : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;\n return defaultId || `${prefix}-${id}`;\n}\nconst $b5e257d569688ac6$export$619500959fc48b26 = typeof (0, $670gB$react)['useId'] === 'function' ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;\nfunction $b5e257d569688ac6$var$getSnapshot() {\n return false;\n}\nfunction $b5e257d569688ac6$var$getServerSnapshot() {\n return true;\n}\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $b5e257d569688ac6$var$subscribe(onStoreChange) {\n // noop\n return ()=>{};\n}\nfunction $b5e257d569688ac6$export$535bd6ca7f90a273() {\n // In React 18, we can use useSyncExternalStore to detect if we're server rendering or hydrating.\n if (typeof (0, $670gB$react)['useSyncExternalStore'] === 'function') return (0, $670gB$react)['useSyncExternalStore']($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return (0, $670gB$useContext)($b5e257d569688ac6$var$IsSSRContext);\n}\n\n\nexport {$b5e257d569688ac6$export$9f8ac96af4b1b2ae as SSRProvider, $b5e257d569688ac6$export$535bd6ca7f90a273 as useIsSSR, $b5e257d569688ac6$export$619500959fc48b26 as useSSRSafeId};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /**\n * Calls all functions in the order they were chained with the same arguments.\n */ function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {\n return (...args)=>{\n for (let callback of callbacks)if (typeof callback === 'function') callback(...args);\n };\n}\n\n\nexport {$ff5963eb1fccf552$export$e08e3b67e392101e as chain};\n","const $431fbd86ca7dc216$export$b204af158042fbac = (el)=>{\n var _el_ownerDocument;\n return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;\n};\nconst $431fbd86ca7dc216$export$f21a1ffae260145a = (el)=>{\n if (el && 'window' in el && el.window === el) return el;\n const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);\n return doc.defaultView || window;\n};\n\n\nexport {$431fbd86ca7dc216$export$b204af158042fbac as getOwnerDocument, $431fbd86ca7dc216$export$f21a1ffae260145a as getOwnerWindow};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $7215afc6de606d6b$export$de79e2c695e052f3(element) {\n if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({\n preventScroll: true\n });\n else {\n let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);\n element.focus();\n $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);\n }\n}\nlet $7215afc6de606d6b$var$supportsPreventScrollCached = null;\nfunction $7215afc6de606d6b$var$supportsPreventScroll() {\n if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {\n $7215afc6de606d6b$var$supportsPreventScrollCached = false;\n try {\n let focusElem = document.createElement('div');\n focusElem.focus({\n get preventScroll () {\n $7215afc6de606d6b$var$supportsPreventScrollCached = true;\n return true;\n }\n });\n } catch (e) {\n // Ignore\n }\n }\n return $7215afc6de606d6b$var$supportsPreventScrollCached;\n}\nfunction $7215afc6de606d6b$var$getScrollableElements(element) {\n let parent = element.parentNode;\n let scrollableElements = [];\n let rootScrollingElement = document.scrollingElement || document.documentElement;\n while(parent instanceof HTMLElement && parent !== rootScrollingElement){\n if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({\n element: parent,\n scrollTop: parent.scrollTop,\n scrollLeft: parent.scrollLeft\n });\n parent = parent.parentNode;\n }\n if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({\n element: rootScrollingElement,\n scrollTop: rootScrollingElement.scrollTop,\n scrollLeft: rootScrollingElement.scrollLeft\n });\n return scrollableElements;\n}\nfunction $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {\n for (let { element: element, scrollTop: scrollTop, scrollLeft: scrollLeft } of scrollableElements){\n element.scrollTop = scrollTop;\n element.scrollLeft = scrollLeft;\n }\n}\n\n\nexport {$7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling};\n","import {isAndroid as $c87311424ea30a05$export$a11b0059900ceec8} from \"./platform.mjs\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $6a7db85432448f7f$export$60278871457622de(event) {\n // JAWS/NVDA with Firefox.\n if (event.mozInputSource === 0 && event.isTrusted) return true;\n // Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead\n // If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check\n // to detect TalkBack virtual clicks.\n if ((0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.pointerType) return event.type === 'click' && event.buttons === 1;\n return event.detail === 0 && !event.pointerType;\n}\nfunction $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {\n // If the pointer size is zero, then we assume it's from a screen reader.\n // Android TalkBack double tap will sometimes return a event with width and height of 1\n // and pointerType === 'mouse' so we need to check for a specific combination of event attributes.\n // Cannot use \"event.pressure === 0\" as the sole check due to Safari pointer events always returning pressure === 0\n // instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush\n // Talkback double tap from Windows Firefox touch screen press\n return !(0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse';\n}\n\n\nexport {$6a7db85432448f7f$export$60278871457622de as isVirtualClick, $6a7db85432448f7f$export$29bf1b5f2c56cf63 as isVirtualPointerEvent};\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","import {chain as $ff5963eb1fccf552$export$e08e3b67e392101e} from \"./chain.mjs\";\nimport {mergeIds as $bdb11010cef70236$export$cd8c9cb68f842629} from \"./useId.mjs\";\nimport $7jXr9$clsx from \"clsx\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {\n // Start with a base clone of the first argument. This is a lot faster than starting\n // with an empty object and adding properties as we go.\n let result = {\n ...args[0]\n };\n for(let i = 1; i < args.length; i++){\n let props = args[i];\n for(let key in props){\n let a = result[key];\n let b = props[key];\n // Chain events\n if (typeof a === 'function' && typeof b === 'function' && // This is a lot faster than a regex.\n key[0] === 'o' && key[1] === 'n' && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = (0, $ff5963eb1fccf552$export$e08e3b67e392101e)(a, b);\n else if ((key === 'className' || key === 'UNSAFE_className') && typeof a === 'string' && typeof b === 'string') result[key] = (0, $7jXr9$clsx)(a, b);\n else if (key === 'id' && a && b) result.id = (0, $bdb11010cef70236$export$cd8c9cb68f842629)(a, b);\n else result[key] = b !== undefined ? b : a;\n }\n }\n return result;\n}\n\n\nexport {$3ef42575df84b30b$export$9d1611c77c2fe928 as mergeProps};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $c87311424ea30a05$var$testUserAgent(re) {\n var _window_navigator_userAgentData;\n if (typeof window === 'undefined' || window.navigator == null) return false;\n return ((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand)=>re.test(brand.brand))) || re.test(window.navigator.userAgent);\n}\nfunction $c87311424ea30a05$var$testPlatform(re) {\n var _window_navigator_userAgentData;\n return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;\n}\nfunction $c87311424ea30a05$var$cached(fn) {\n let res = null;\n return ()=>{\n if (res == null) res = fn();\n return res;\n };\n}\nconst $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testPlatform(/^Mac/i);\n});\nconst $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testPlatform(/^iPhone/i);\n});\nconst $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.\n $c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;\n});\nconst $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();\n});\nconst $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();\n});\nconst $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();\n});\nconst $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/Chrome/i);\n});\nconst $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/Android/i);\n});\nconst $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {\n return $c87311424ea30a05$var$testUserAgent(/Firefox/i);\n});\n\n\nexport {$c87311424ea30a05$export$9ac100e40613ea10 as isMac, $c87311424ea30a05$export$186c6964ca17d99 as isIPhone, $c87311424ea30a05$export$7bef049ce92e4224 as isIPad, $c87311424ea30a05$export$fedb369cb70207f1 as isIOS, $c87311424ea30a05$export$e1865c3bedcd822b as isAppleDevice, $c87311424ea30a05$export$78551043582a6a98 as isWebKit, $c87311424ea30a05$export$6446a186d09e379e as isChrome, $c87311424ea30a05$export$a11b0059900ceec8 as isAndroid, $c87311424ea30a05$export$b7d78993b74f766d as isFirefox};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // We store a global list of elements that are currently transitioning,\n// mapped to a set of CSS properties that are transitioning for that element.\n// This is necessary rather than a simple count of transitions because of browser\n// bugs, e.g. Chrome sometimes fires both transitionend and transitioncancel rather\n// than one or the other. So we need to track what's actually transitioning so that\n// we can ignore these duplicate events.\nlet $bbed8b41f857bcc0$var$transitionsByElement = new Map();\n// A list of callbacks to call once there are no transitioning elements.\nlet $bbed8b41f857bcc0$var$transitionCallbacks = new Set();\nfunction $bbed8b41f857bcc0$var$setupGlobalEvents() {\n if (typeof window === 'undefined') return;\n function isTransitionEvent(event) {\n return 'propertyName' in event;\n }\n let onTransitionStart = (e)=>{\n if (!isTransitionEvent(e) || !e.target) return;\n // Add the transitioning property to the list for this element.\n let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);\n if (!transitions) {\n transitions = new Set();\n $bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions);\n // The transitioncancel event must be registered on the element itself, rather than as a global\n // event. This enables us to handle when the node is deleted from the document while it is transitioning.\n // In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.\n e.target.addEventListener('transitioncancel', onTransitionEnd, {\n once: true\n });\n }\n transitions.add(e.propertyName);\n };\n let onTransitionEnd = (e)=>{\n if (!isTransitionEvent(e) || !e.target) return;\n // Remove property from list of transitioning properties.\n let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);\n if (!properties) return;\n properties.delete(e.propertyName);\n // If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.\n if (properties.size === 0) {\n e.target.removeEventListener('transitioncancel', onTransitionEnd);\n $bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);\n }\n // If no transitioning elements, call all of the queued callbacks.\n if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {\n for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)cb();\n $bbed8b41f857bcc0$var$transitionCallbacks.clear();\n }\n };\n document.body.addEventListener('transitionrun', onTransitionStart);\n document.body.addEventListener('transitionend', onTransitionEnd);\n}\nif (typeof document !== 'undefined') {\n if (document.readyState !== 'loading') $bbed8b41f857bcc0$var$setupGlobalEvents();\n else document.addEventListener('DOMContentLoaded', $bbed8b41f857bcc0$var$setupGlobalEvents);\n}\nfunction $bbed8b41f857bcc0$export$24490316f764c430(fn) {\n // Wait one frame to see if an animation starts, e.g. a transition on mount.\n requestAnimationFrame(()=>{\n // If no transitions are running, call the function immediately.\n // Otherwise, add it to a list of callbacks to run at the end of the animation.\n if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) fn();\n else $bbed8b41f857bcc0$var$transitionCallbacks.add(fn);\n });\n}\n\n\nexport {$bbed8b41f857bcc0$export$24490316f764c430 as runAfterTransition};\n","import {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from \"./useLayoutEffect.mjs\";\nimport {useRef as $lmaYr$useRef, useCallback as $lmaYr$useCallback} from \"react\";\n\n/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {\n const ref = (0, $lmaYr$useRef)(null);\n (0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{\n ref.current = fn;\n }, [\n fn\n ]);\n // @ts-ignore\n return (0, $lmaYr$useCallback)((...args)=>{\n const f = ref.current;\n return f === null || f === void 0 ? void 0 : f(...args);\n }, []);\n}\n\n\nexport {$8ae05eaa5c114e9c$export$7f54fc3180508a52 as useEffectEvent};\n","import {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from \"./useLayoutEffect.mjs\";\nimport {useValueEffect as $1dbecbe27a04f9af$export$14d238f342723f25} from \"./useValueEffect.mjs\";\nimport {useState as $eKkEp$useState, useRef as $eKkEp$useRef, useCallback as $eKkEp$useCallback, useEffect as $eKkEp$useEffect} from \"react\";\nimport {useSSRSafeId as $eKkEp$useSSRSafeId} from \"@react-aria/ssr\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n// copied from SSRProvider.tsx to reduce exports, if needed again, consider sharing\nlet $bdb11010cef70236$var$canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);\nlet $bdb11010cef70236$var$idsUpdaterMap = new Map();\nfunction $bdb11010cef70236$export$f680877a34711e37(defaultId) {\n let [value, setValue] = (0, $eKkEp$useState)(defaultId);\n let nextId = (0, $eKkEp$useRef)(null);\n let res = (0, $eKkEp$useSSRSafeId)(value);\n let updateValue = (0, $eKkEp$useCallback)((val)=>{\n nextId.current = val;\n }, []);\n if ($bdb11010cef70236$var$canUseDOM) $bdb11010cef70236$var$idsUpdaterMap.set(res, updateValue);\n (0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{\n let r = res;\n return ()=>{\n $bdb11010cef70236$var$idsUpdaterMap.delete(r);\n };\n }, [\n res\n ]);\n // This cannot cause an infinite loop because the ref is updated first.\n // eslint-disable-next-line\n (0, $eKkEp$useEffect)(()=>{\n let newId = nextId.current;\n if (newId) {\n nextId.current = null;\n setValue(newId);\n }\n });\n return res;\n}\nfunction $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {\n if (idA === idB) return idA;\n let setIdA = $bdb11010cef70236$var$idsUpdaterMap.get(idA);\n if (setIdA) {\n setIdA(idB);\n return idB;\n }\n let setIdB = $bdb11010cef70236$var$idsUpdaterMap.get(idB);\n if (setIdB) {\n setIdB(idA);\n return idA;\n }\n return idB;\n}\nfunction $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray = []) {\n let id = $bdb11010cef70236$export$f680877a34711e37();\n let [resolvedId, setResolvedId] = (0, $1dbecbe27a04f9af$export$14d238f342723f25)(id);\n let updateId = (0, $eKkEp$useCallback)(()=>{\n setResolvedId(function*() {\n yield id;\n yield document.getElementById(id) ? id : undefined;\n });\n }, [\n id,\n setResolvedId\n ]);\n (0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(updateId, [\n id,\n updateId,\n ...depArray\n ]);\n return resolvedId;\n}\n\n\nexport {$bdb11010cef70236$export$f680877a34711e37 as useId, $bdb11010cef70236$export$cd8c9cb68f842629 as mergeIds, $bdb11010cef70236$export$b4cc09c592e8fdb8 as useSlotId};\n","import {useEffectEvent as $8ae05eaa5c114e9c$export$7f54fc3180508a52} from \"./useEffectEvent.mjs\";\nimport {useLayoutEffect as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c} from \"./useLayoutEffect.mjs\";\nimport {useState as $fCAlL$useState, useRef as $fCAlL$useRef} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) {\n let [value, setValue] = (0, $fCAlL$useState)(defaultValue);\n let effect = (0, $fCAlL$useRef)(null);\n // Store the function in a ref so we can always access the current version\n // which has the proper `value` in scope.\n let nextRef = (0, $8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{\n if (!effect.current) return;\n // Run the generator to the next yield.\n let newValue = effect.current.next();\n // If the generator is done, reset the effect.\n if (newValue.done) {\n effect.current = null;\n return;\n }\n // If the value is the same as the current value,\n // then continue to the next yield. Otherwise,\n // set the value in state and wait for the next layout effect.\n if (value === newValue.value) nextRef();\n else setValue(newValue.value);\n });\n (0, $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{\n // If there is an effect currently running, continue to the next yield.\n if (effect.current) nextRef();\n });\n let queue = (0, $8ae05eaa5c114e9c$export$7f54fc3180508a52)((fn)=>{\n effect.current = fn(value);\n nextRef();\n });\n return [\n value,\n queue\n ];\n}\n\n\nexport {$1dbecbe27a04f9af$export$14d238f342723f25 as useValueEffect};\n","import $HgANd$react from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nconst $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== 'undefined' ? (0, $HgANd$react).useLayoutEffect : ()=>{};\n\n\nexport {$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as useLayoutEffect};\n","import {mergeProps as $7JYt2$mergeProps} from \"@react-aria/utils\";\nimport $7JYt2$react, {useState as $7JYt2$useState, useMemo as $7JYt2$useMemo} from \"react\";\nimport {useFocusWithin as $7JYt2$useFocusWithin} from \"@react-aria/interactions\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nconst $5c3e21d68f1c4674$var$styles = {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n};\nfunction $5c3e21d68f1c4674$export$a966af930f325cab(props = {}) {\n let { style: style, isFocusable: isFocusable } = props;\n let [isFocused, setFocused] = (0, $7JYt2$useState)(false);\n let { focusWithinProps: focusWithinProps } = (0, $7JYt2$useFocusWithin)({\n isDisabled: !isFocusable,\n onFocusWithinChange: (val)=>setFocused(val)\n });\n // If focused, don't hide the element.\n let combinedStyles = (0, $7JYt2$useMemo)(()=>{\n if (isFocused) return style;\n else if (style) return {\n ...$5c3e21d68f1c4674$var$styles,\n ...style\n };\n else return $5c3e21d68f1c4674$var$styles;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isFocused\n ]);\n return {\n visuallyHiddenProps: {\n ...focusWithinProps,\n style: combinedStyles\n }\n };\n}\nfunction $5c3e21d68f1c4674$export$439d29a4e110a164(props) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { children: children, elementType: Element = 'div', isFocusable: isFocusable, style: style, ...otherProps } = props;\n let { visuallyHiddenProps: visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab(props);\n return /*#__PURE__*/ (0, $7JYt2$react).createElement(Element, (0, $7JYt2$mergeProps)(otherProps, visuallyHiddenProps), children);\n}\n\n\nexport {$5c3e21d68f1c4674$export$a966af930f325cab as useVisuallyHidden, $5c3e21d68f1c4674$export$439d29a4e110a164 as VisuallyHidden};\n","/**\n * @remix-run/router v1.19.1\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Types and Constants\n////////////////////////////////////////////////////////////////////////////////\n/**\n * Actions represent the type of change to a location value.\n */\nvar Action;\n(function (Action) {\n /**\n * A POP indicates a change to an arbitrary index in the history stack, such\n * as a back or forward navigation. It does not describe the direction of the\n * navigation, only that the current index changed.\n *\n * Note: This is the default action for newly created history objects.\n */\n Action[\"Pop\"] = \"POP\";\n /**\n * A PUSH indicates a new entry being added to the history stack, such as when\n * a link is clicked and a new page loads. When this happens, all subsequent\n * entries in the stack are lost.\n */\n Action[\"Push\"] = \"PUSH\";\n /**\n * A REPLACE indicates the entry at the current index in the history stack\n * being replaced by a new one.\n */\n Action[\"Replace\"] = \"REPLACE\";\n})(Action || (Action = {}));\nconst PopStateEventType = \"popstate\";\n/**\n * Memory history stores the current location in memory. It is designed for use\n * in stateful non-browser environments like tests and React Native.\n */\nfunction createMemoryHistory(options) {\n if (options === void 0) {\n options = {};\n }\n let {\n initialEntries = [\"/\"],\n initialIndex,\n v5Compat = false\n } = options;\n let entries; // Declare so we can access from createMemoryLocation\n entries = initialEntries.map((entry, index) => createMemoryLocation(entry, typeof entry === \"string\" ? null : entry.state, index === 0 ? \"default\" : undefined));\n let index = clampIndex(initialIndex == null ? entries.length - 1 : initialIndex);\n let action = Action.Pop;\n let listener = null;\n function clampIndex(n) {\n return Math.min(Math.max(n, 0), entries.length - 1);\n }\n function getCurrentLocation() {\n return entries[index];\n }\n function createMemoryLocation(to, state, key) {\n if (state === void 0) {\n state = null;\n }\n let location = createLocation(entries ? getCurrentLocation().pathname : \"/\", to, state, key);\n warning(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in memory history: \" + JSON.stringify(to));\n return location;\n }\n function createHref(to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n let history = {\n get index() {\n return index;\n },\n get action() {\n return action;\n },\n get location() {\n return getCurrentLocation();\n },\n createHref,\n createURL(to) {\n return new URL(createHref(to), \"http://localhost\");\n },\n encodeLocation(to) {\n let path = typeof to === \"string\" ? parsePath(to) : to;\n return {\n pathname: path.pathname || \"\",\n search: path.search || \"\",\n hash: path.hash || \"\"\n };\n },\n push(to, state) {\n action = Action.Push;\n let nextLocation = createMemoryLocation(to, state);\n index += 1;\n entries.splice(index, entries.length, nextLocation);\n if (v5Compat && listener) {\n listener({\n action,\n location: nextLocation,\n delta: 1\n });\n }\n },\n replace(to, state) {\n action = Action.Replace;\n let nextLocation = createMemoryLocation(to, state);\n entries[index] = nextLocation;\n if (v5Compat && listener) {\n listener({\n action,\n location: nextLocation,\n delta: 0\n });\n }\n },\n go(delta) {\n action = Action.Pop;\n let nextIndex = clampIndex(index + delta);\n let nextLocation = entries[nextIndex];\n index = nextIndex;\n if (listener) {\n listener({\n action,\n location: nextLocation,\n delta\n });\n }\n },\n listen(fn) {\n listener = fn;\n return () => {\n listener = null;\n };\n }\n };\n return history;\n}\n/**\n * Browser history stores the location in regular URLs. This is the standard for\n * most web apps, but it requires some configuration on the server to ensure you\n * serve the same app at multiple URLs.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory\n */\nfunction createBrowserHistory(options) {\n if (options === void 0) {\n options = {};\n }\n function createBrowserLocation(window, globalHistory) {\n let {\n pathname,\n search,\n hash\n } = window.location;\n return createLocation(\"\", {\n pathname,\n search,\n hash\n },\n // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n }\n function createBrowserHref(window, to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n return getUrlBasedHistory(createBrowserLocation, createBrowserHref, null, options);\n}\n/**\n * Hash history stores the location in window.location.hash. This makes it ideal\n * for situations where you don't want to send the location to the server for\n * some reason, either because you do cannot configure it or the URL space is\n * reserved for something else.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createhashhistory\n */\nfunction createHashHistory(options) {\n if (options === void 0) {\n options = {};\n }\n function createHashLocation(window, globalHistory) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = parsePath(window.location.hash.substr(1));\n // Hash URL should always have a leading / just like window.location.pathname\n // does, so if an app ends up at a route like /#something then we add a\n // leading slash so all of our path-matching behaves the same as if it would\n // in a browser router. This is particularly important when there exists a\n // root splat route (<Route path=\"*\">) since that matches internally against\n // \"/*\" and we'd expect /#something to 404 in a hash router app.\n if (!pathname.startsWith(\"/\") && !pathname.startsWith(\".\")) {\n pathname = \"/\" + pathname;\n }\n return createLocation(\"\", {\n pathname,\n search,\n hash\n },\n // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n }\n function createHashHref(window, to) {\n let base = window.document.querySelector(\"base\");\n let href = \"\";\n if (base && base.getAttribute(\"href\")) {\n let url = window.location.href;\n let hashIndex = url.indexOf(\"#\");\n href = hashIndex === -1 ? url : url.slice(0, hashIndex);\n }\n return href + \"#\" + (typeof to === \"string\" ? to : createPath(to));\n }\n function validateHashLocation(location, to) {\n warning(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in hash history.push(\" + JSON.stringify(to) + \")\");\n }\n return getUrlBasedHistory(createHashLocation, createHashHref, validateHashLocation, options);\n}\nfunction invariant(value, message) {\n if (value === false || value === null || typeof value === \"undefined\") {\n throw new Error(message);\n }\n}\nfunction warning(cond, message) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n try {\n // Welcome to debugging history!\n //\n // This error is thrown as a convenience, so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message);\n // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\nfunction createKey() {\n return Math.random().toString(36).substr(2, 8);\n}\n/**\n * For browser-based histories, we combine the state and key into an object\n */\nfunction getHistoryState(location, index) {\n return {\n usr: location.state,\n key: location.key,\n idx: index\n };\n}\n/**\n * Creates a Location object with a unique key from the given Path\n */\nfunction createLocation(current, to, state, key) {\n if (state === void 0) {\n state = null;\n }\n let location = _extends({\n pathname: typeof current === \"string\" ? current : current.pathname,\n search: \"\",\n hash: \"\"\n }, typeof to === \"string\" ? parsePath(to) : to, {\n state,\n // TODO: This could be cleaned up. push/replace should probably just take\n // full Locations now and avoid the need to run through this flow at all\n // But that's a pretty big refactor to the current test suite so going to\n // keep as is for the time being and just let any incoming keys take precedence\n key: to && to.key || key || createKey()\n });\n return location;\n}\n/**\n * Creates a string URL path from the given pathname, search, and hash components.\n */\nfunction createPath(_ref) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = _ref;\n if (search && search !== \"?\") pathname += search.charAt(0) === \"?\" ? search : \"?\" + search;\n if (hash && hash !== \"#\") pathname += hash.charAt(0) === \"#\" ? hash : \"#\" + hash;\n return pathname;\n}\n/**\n * Parses a string URL path into its separate pathname, search, and hash components.\n */\nfunction parsePath(path) {\n let parsedPath = {};\n if (path) {\n let hashIndex = path.indexOf(\"#\");\n if (hashIndex >= 0) {\n parsedPath.hash = path.substr(hashIndex);\n path = path.substr(0, hashIndex);\n }\n let searchIndex = path.indexOf(\"?\");\n if (searchIndex >= 0) {\n parsedPath.search = path.substr(searchIndex);\n path = path.substr(0, searchIndex);\n }\n if (path) {\n parsedPath.pathname = path;\n }\n }\n return parsedPath;\n}\nfunction getUrlBasedHistory(getLocation, createHref, validateLocation, options) {\n if (options === void 0) {\n options = {};\n }\n let {\n window = document.defaultView,\n v5Compat = false\n } = options;\n let globalHistory = window.history;\n let action = Action.Pop;\n let listener = null;\n let index = getIndex();\n // Index should only be null when we initialize. If not, it's because the\n // user called history.pushState or history.replaceState directly, in which\n // case we should log a warning as it will result in bugs.\n if (index == null) {\n index = 0;\n globalHistory.replaceState(_extends({}, globalHistory.state, {\n idx: index\n }), \"\");\n }\n function getIndex() {\n let state = globalHistory.state || {\n idx: null\n };\n return state.idx;\n }\n function handlePop() {\n action = Action.Pop;\n let nextIndex = getIndex();\n let delta = nextIndex == null ? null : nextIndex - index;\n index = nextIndex;\n if (listener) {\n listener({\n action,\n location: history.location,\n delta\n });\n }\n }\n function push(to, state) {\n action = Action.Push;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n index = getIndex() + 1;\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location);\n // try...catch because iOS limits us to 100 pushState calls :/\n try {\n globalHistory.pushState(historyState, \"\", url);\n } catch (error) {\n // If the exception is because `state` can't be serialized, let that throw\n // outwards just like a replace call would so the dev knows the cause\n // https://html.spec.whatwg.org/multipage/nav-history-apis.html#shared-history-push/replace-state-steps\n // https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializeinternal\n if (error instanceof DOMException && error.name === \"DataCloneError\") {\n throw error;\n }\n // They are going to lose state here, but there is no real\n // way to warn them about it since the page will refresh...\n window.location.assign(url);\n }\n if (v5Compat && listener) {\n listener({\n action,\n location: history.location,\n delta: 1\n });\n }\n }\n function replace(to, state) {\n action = Action.Replace;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n index = getIndex();\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location);\n globalHistory.replaceState(historyState, \"\", url);\n if (v5Compat && listener) {\n listener({\n action,\n location: history.location,\n delta: 0\n });\n }\n }\n function createURL(to) {\n // window.location.origin is \"null\" (the literal string value) in Firefox\n // under certain conditions, notably when serving from a local HTML file\n // See https://bugzilla.mozilla.org/show_bug.cgi?id=878297\n let base = window.location.origin !== \"null\" ? window.location.origin : window.location.href;\n let href = typeof to === \"string\" ? to : createPath(to);\n // Treating this as a full URL will strip any trailing spaces so we need to\n // pre-encode them since they might be part of a matching splat param from\n // an ancestor route\n href = href.replace(/ $/, \"%20\");\n invariant(base, \"No window.location.(origin|href) available to create URL for href: \" + href);\n return new URL(href, base);\n }\n let history = {\n get action() {\n return action;\n },\n get location() {\n return getLocation(window, globalHistory);\n },\n listen(fn) {\n if (listener) {\n throw new Error(\"A history only accepts one active listener\");\n }\n window.addEventListener(PopStateEventType, handlePop);\n listener = fn;\n return () => {\n window.removeEventListener(PopStateEventType, handlePop);\n listener = null;\n };\n },\n createHref(to) {\n return createHref(window, to);\n },\n createURL,\n encodeLocation(to) {\n // Encode a Location the same way window.location would\n let url = createURL(to);\n return {\n pathname: url.pathname,\n search: url.search,\n hash: url.hash\n };\n },\n push,\n replace,\n go(n) {\n return globalHistory.go(n);\n }\n };\n return history;\n}\n//#endregion\n\nvar ResultType;\n(function (ResultType) {\n ResultType[\"data\"] = \"data\";\n ResultType[\"deferred\"] = \"deferred\";\n ResultType[\"redirect\"] = \"redirect\";\n ResultType[\"error\"] = \"error\";\n})(ResultType || (ResultType = {}));\nconst immutableRouteKeys = new Set([\"lazy\", \"caseSensitive\", \"path\", \"id\", \"index\", \"children\"]);\nfunction isIndexRoute(route) {\n return route.index === true;\n}\n// Walk the route tree generating unique IDs where necessary, so we are working\n// solely with AgnosticDataRouteObject's within the Router\nfunction convertRoutesToDataRoutes(routes, mapRouteProperties, parentPath, manifest) {\n if (parentPath === void 0) {\n parentPath = [];\n }\n if (manifest === void 0) {\n manifest = {};\n }\n return routes.map((route, index) => {\n let treePath = [...parentPath, String(index)];\n let id = typeof route.id === \"string\" ? route.id : treePath.join(\"-\");\n invariant(route.index !== true || !route.children, \"Cannot specify children on an index route\");\n invariant(!manifest[id], \"Found a route id collision on id \\\"\" + id + \"\\\". Route \" + \"id's must be globally unique within Data Router usages\");\n if (isIndexRoute(route)) {\n let indexRoute = _extends({}, route, mapRouteProperties(route), {\n id\n });\n manifest[id] = indexRoute;\n return indexRoute;\n } else {\n let pathOrLayoutRoute = _extends({}, route, mapRouteProperties(route), {\n id,\n children: undefined\n });\n manifest[id] = pathOrLayoutRoute;\n if (route.children) {\n pathOrLayoutRoute.children = convertRoutesToDataRoutes(route.children, mapRouteProperties, treePath, manifest);\n }\n return pathOrLayoutRoute;\n }\n });\n}\n/**\n * Matches the given routes to a location and returns the match data.\n *\n * @see https://reactrouter.com/utils/match-routes\n */\nfunction matchRoutes(routes, locationArg, basename) {\n if (basename === void 0) {\n basename = \"/\";\n }\n return matchRoutesImpl(routes, locationArg, basename, false);\n}\nfunction matchRoutesImpl(routes, locationArg, basename, allowPartial) {\n let location = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n let pathname = stripBasename(location.pathname || \"/\", basename);\n if (pathname == null) {\n return null;\n }\n let branches = flattenRoutes(routes);\n rankRouteBranches(branches);\n let matches = null;\n for (let i = 0; matches == null && i < branches.length; ++i) {\n // Incoming pathnames are generally encoded from either window.location\n // or from router.navigate, but we want to match against the unencoded\n // paths in the route definitions. Memory router locations won't be\n // encoded here but there also shouldn't be anything to decode so this\n // should be a safe operation. This avoids needing matchRoutes to be\n // history-aware.\n let decoded = decodePath(pathname);\n matches = matchRouteBranch(branches[i], decoded, allowPartial);\n }\n return matches;\n}\nfunction convertRouteMatchToUiMatch(match, loaderData) {\n let {\n route,\n pathname,\n params\n } = match;\n return {\n id: route.id,\n pathname,\n params,\n data: loaderData[route.id],\n handle: route.handle\n };\n}\nfunction flattenRoutes(routes, branches, parentsMeta, parentPath) {\n if (branches === void 0) {\n branches = [];\n }\n if (parentsMeta === void 0) {\n parentsMeta = [];\n }\n if (parentPath === void 0) {\n parentPath = \"\";\n }\n let flattenRoute = (route, index, relativePath) => {\n let meta = {\n relativePath: relativePath === undefined ? route.path || \"\" : relativePath,\n caseSensitive: route.caseSensitive === true,\n childrenIndex: index,\n route\n };\n if (meta.relativePath.startsWith(\"/\")) {\n invariant(meta.relativePath.startsWith(parentPath), \"Absolute route path \\\"\" + meta.relativePath + \"\\\" nested under path \" + (\"\\\"\" + parentPath + \"\\\" is not valid. An absolute child route path \") + \"must start with the combined path of all its parent routes.\");\n meta.relativePath = meta.relativePath.slice(parentPath.length);\n }\n let path = joinPaths([parentPath, meta.relativePath]);\n let routesMeta = parentsMeta.concat(meta);\n // Add the children before adding this route to the array, so we traverse the\n // route tree depth-first and child routes appear before their parents in\n // the \"flattened\" version.\n if (route.children && route.children.length > 0) {\n invariant(\n // Our types know better, but runtime JS may not!\n // @ts-expect-error\n route.index !== true, \"Index routes must not have child routes. Please remove \" + (\"all child routes from route path \\\"\" + path + \"\\\".\"));\n flattenRoutes(route.children, branches, routesMeta, path);\n }\n // Routes without a path shouldn't ever match by themselves unless they are\n // index routes, so don't add them to the list of possible branches.\n if (route.path == null && !route.index) {\n return;\n }\n branches.push({\n path,\n score: computeScore(path, route.index),\n routesMeta\n });\n };\n routes.forEach((route, index) => {\n var _route$path;\n // coarse-grain check for optional params\n if (route.path === \"\" || !((_route$path = route.path) != null && _route$path.includes(\"?\"))) {\n flattenRoute(route, index);\n } else {\n for (let exploded of explodeOptionalSegments(route.path)) {\n flattenRoute(route, index, exploded);\n }\n }\n });\n return branches;\n}\n/**\n * Computes all combinations of optional path segments for a given path,\n * excluding combinations that are ambiguous and of lower priority.\n *\n * For example, `/one/:two?/three/:four?/:five?` explodes to:\n * - `/one/three`\n * - `/one/:two/three`\n * - `/one/three/:four`\n * - `/one/three/:five`\n * - `/one/:two/three/:four`\n * - `/one/:two/three/:five`\n * - `/one/three/:four/:five`\n * - `/one/:two/three/:four/:five`\n */\nfunction explodeOptionalSegments(path) {\n let segments = path.split(\"/\");\n if (segments.length === 0) return [];\n let [first, ...rest] = segments;\n // Optional path segments are denoted by a trailing `?`\n let isOptional = first.endsWith(\"?\");\n // Compute the corresponding required segment: `foo?` -> `foo`\n let required = first.replace(/\\?$/, \"\");\n if (rest.length === 0) {\n // Intepret empty string as omitting an optional segment\n // `[\"one\", \"\", \"three\"]` corresponds to omitting `:two` from `/one/:two?/three` -> `/one/three`\n return isOptional ? [required, \"\"] : [required];\n }\n let restExploded = explodeOptionalSegments(rest.join(\"/\"));\n let result = [];\n // All child paths with the prefix. Do this for all children before the\n // optional version for all children, so we get consistent ordering where the\n // parent optional aspect is preferred as required. Otherwise, we can get\n // child sections interspersed where deeper optional segments are higher than\n // parent optional segments, where for example, /:two would explode _earlier_\n // then /:one. By always including the parent as required _for all children_\n // first, we avoid this issue\n result.push(...restExploded.map(subpath => subpath === \"\" ? required : [required, subpath].join(\"/\")));\n // Then, if this is an optional value, add all child versions without\n if (isOptional) {\n result.push(...restExploded);\n }\n // for absolute paths, ensure `/` instead of empty segment\n return result.map(exploded => path.startsWith(\"/\") && exploded === \"\" ? \"/\" : exploded);\n}\nfunction rankRouteBranches(branches) {\n branches.sort((a, b) => a.score !== b.score ? b.score - a.score // Higher score first\n : compareIndexes(a.routesMeta.map(meta => meta.childrenIndex), b.routesMeta.map(meta => meta.childrenIndex)));\n}\nconst paramRe = /^:[\\w-]+$/;\nconst dynamicSegmentValue = 3;\nconst indexRouteValue = 2;\nconst emptySegmentValue = 1;\nconst staticSegmentValue = 10;\nconst splatPenalty = -2;\nconst isSplat = s => s === \"*\";\nfunction computeScore(path, index) {\n let segments = path.split(\"/\");\n let initialScore = segments.length;\n if (segments.some(isSplat)) {\n initialScore += splatPenalty;\n }\n if (index) {\n initialScore += indexRouteValue;\n }\n return segments.filter(s => !isSplat(s)).reduce((score, segment) => score + (paramRe.test(segment) ? dynamicSegmentValue : segment === \"\" ? emptySegmentValue : staticSegmentValue), initialScore);\n}\nfunction compareIndexes(a, b) {\n let siblings = a.length === b.length && a.slice(0, -1).every((n, i) => n === b[i]);\n return siblings ?\n // If two routes are siblings, we should try to match the earlier sibling\n // first. This allows people to have fine-grained control over the matching\n // behavior by simply putting routes with identical paths in the order they\n // want them tried.\n a[a.length - 1] - b[b.length - 1] :\n // Otherwise, it doesn't really make sense to rank non-siblings by index,\n // so they sort equally.\n 0;\n}\nfunction matchRouteBranch(branch, pathname, allowPartial) {\n if (allowPartial === void 0) {\n allowPartial = false;\n }\n let {\n routesMeta\n } = branch;\n let matchedParams = {};\n let matchedPathname = \"/\";\n let matches = [];\n for (let i = 0; i < routesMeta.length; ++i) {\n let meta = routesMeta[i];\n let end = i === routesMeta.length - 1;\n let remainingPathname = matchedPathname === \"/\" ? pathname : pathname.slice(matchedPathname.length) || \"/\";\n let match = matchPath({\n path: meta.relativePath,\n caseSensitive: meta.caseSensitive,\n end\n }, remainingPathname);\n let route = meta.route;\n if (!match && end && allowPartial && !routesMeta[routesMeta.length - 1].route.index) {\n match = matchPath({\n path: meta.relativePath,\n caseSensitive: meta.caseSensitive,\n end: false\n }, remainingPathname);\n }\n if (!match) {\n return null;\n }\n Object.assign(matchedParams, match.params);\n matches.push({\n // TODO: Can this as be avoided?\n params: matchedParams,\n pathname: joinPaths([matchedPathname, match.pathname]),\n pathnameBase: normalizePathname(joinPaths([matchedPathname, match.pathnameBase])),\n route\n });\n if (match.pathnameBase !== \"/\") {\n matchedPathname = joinPaths([matchedPathname, match.pathnameBase]);\n }\n }\n return matches;\n}\n/**\n * Returns a path with params interpolated.\n *\n * @see https://reactrouter.com/utils/generate-path\n */\nfunction generatePath(originalPath, params) {\n if (params === void 0) {\n params = {};\n }\n let path = originalPath;\n if (path.endsWith(\"*\") && path !== \"*\" && !path.endsWith(\"/*\")) {\n warning(false, \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n path = path.replace(/\\*$/, \"/*\");\n }\n // ensure `/` is added at the beginning if the path is absolute\n const prefix = path.startsWith(\"/\") ? \"/\" : \"\";\n const stringify = p => p == null ? \"\" : typeof p === \"string\" ? p : String(p);\n const segments = path.split(/\\/+/).map((segment, index, array) => {\n const isLastSegment = index === array.length - 1;\n // only apply the splat if it's the last segment\n if (isLastSegment && segment === \"*\") {\n const star = \"*\";\n // Apply the splat\n return stringify(params[star]);\n }\n const keyMatch = segment.match(/^:([\\w-]+)(\\??)$/);\n if (keyMatch) {\n const [, key, optional] = keyMatch;\n let param = params[key];\n invariant(optional === \"?\" || param != null, \"Missing \\\":\" + key + \"\\\" param\");\n return stringify(param);\n }\n // Remove any optional markers from optional static segments\n return segment.replace(/\\?$/g, \"\");\n })\n // Remove empty segments\n .filter(segment => !!segment);\n return prefix + segments.join(\"/\");\n}\n/**\n * Performs pattern matching on a URL pathname and returns information about\n * the match.\n *\n * @see https://reactrouter.com/utils/match-path\n */\nfunction matchPath(pattern, pathname) {\n if (typeof pattern === \"string\") {\n pattern = {\n path: pattern,\n caseSensitive: false,\n end: true\n };\n }\n let [matcher, compiledParams] = compilePath(pattern.path, pattern.caseSensitive, pattern.end);\n let match = pathname.match(matcher);\n if (!match) return null;\n let matchedPathname = match[0];\n let pathnameBase = matchedPathname.replace(/(.)\\/+$/, \"$1\");\n let captureGroups = match.slice(1);\n let params = compiledParams.reduce((memo, _ref, index) => {\n let {\n paramName,\n isOptional\n } = _ref;\n // We need to compute the pathnameBase here using the raw splat value\n // instead of using params[\"*\"] later because it will be decoded then\n if (paramName === \"*\") {\n let splatValue = captureGroups[index] || \"\";\n pathnameBase = matchedPathname.slice(0, matchedPathname.length - splatValue.length).replace(/(.)\\/+$/, \"$1\");\n }\n const value = captureGroups[index];\n if (isOptional && !value) {\n memo[paramName] = undefined;\n } else {\n memo[paramName] = (value || \"\").replace(/%2F/g, \"/\");\n }\n return memo;\n }, {});\n return {\n params,\n pathname: matchedPathname,\n pathnameBase,\n pattern\n };\n}\nfunction compilePath(path, caseSensitive, end) {\n if (caseSensitive === void 0) {\n caseSensitive = false;\n }\n if (end === void 0) {\n end = true;\n }\n warning(path === \"*\" || !path.endsWith(\"*\") || path.endsWith(\"/*\"), \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n let params = [];\n let regexpSource = \"^\" + path.replace(/\\/*\\*?$/, \"\") // Ignore trailing / and /*, we'll handle it below\n .replace(/^\\/*/, \"/\") // Make sure it has a leading /\n .replace(/[\\\\.*+^${}|()[\\]]/g, \"\\\\$&\") // Escape special regex chars\n .replace(/\\/:([\\w-]+)(\\?)?/g, (_, paramName, isOptional) => {\n params.push({\n paramName,\n isOptional: isOptional != null\n });\n return isOptional ? \"/?([^\\\\/]+)?\" : \"/([^\\\\/]+)\";\n });\n if (path.endsWith(\"*\")) {\n params.push({\n paramName: \"*\"\n });\n regexpSource += path === \"*\" || path === \"/*\" ? \"(.*)$\" // Already matched the initial /, just match the rest\n : \"(?:\\\\/(.+)|\\\\/*)$\"; // Don't include the / in params[\"*\"]\n } else if (end) {\n // When matching to the end, ignore trailing slashes\n regexpSource += \"\\\\/*$\";\n } else if (path !== \"\" && path !== \"/\") {\n // If our path is non-empty and contains anything beyond an initial slash,\n // then we have _some_ form of path in our regex, so we should expect to\n // match only if we find the end of this path segment. Look for an optional\n // non-captured trailing slash (to match a portion of the URL) or the end\n // of the path (if we've matched to the end). We used to do this with a\n // word boundary but that gives false positives on routes like\n // /user-preferences since `-` counts as a word boundary.\n regexpSource += \"(?:(?=\\\\/|$))\";\n } else ;\n let matcher = new RegExp(regexpSource, caseSensitive ? undefined : \"i\");\n return [matcher, params];\n}\nfunction decodePath(value) {\n try {\n return value.split(\"/\").map(v => decodeURIComponent(v).replace(/\\//g, \"%2F\")).join(\"/\");\n } catch (error) {\n warning(false, \"The URL path \\\"\" + value + \"\\\" could not be decoded because it is is a \" + \"malformed URL segment. This is probably due to a bad percent \" + (\"encoding (\" + error + \").\"));\n return value;\n }\n}\n/**\n * @private\n */\nfunction stripBasename(pathname, basename) {\n if (basename === \"/\") return pathname;\n if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {\n return null;\n }\n // We want to leave trailing slash behavior in the user's control, so if they\n // specify a basename with a trailing slash, we should support it\n let startIndex = basename.endsWith(\"/\") ? basename.length - 1 : basename.length;\n let nextChar = pathname.charAt(startIndex);\n if (nextChar && nextChar !== \"/\") {\n // pathname does not start with basename/\n return null;\n }\n return pathname.slice(startIndex) || \"/\";\n}\n/**\n * Returns a resolved path object relative to the given pathname.\n *\n * @see https://reactrouter.com/utils/resolve-path\n */\nfunction resolvePath(to, fromPathname) {\n if (fromPathname === void 0) {\n fromPathname = \"/\";\n }\n let {\n pathname: toPathname,\n search = \"\",\n hash = \"\"\n } = typeof to === \"string\" ? parsePath(to) : to;\n let pathname = toPathname ? toPathname.startsWith(\"/\") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname;\n return {\n pathname,\n search: normalizeSearch(search),\n hash: normalizeHash(hash)\n };\n}\nfunction resolvePathname(relativePath, fromPathname) {\n let segments = fromPathname.replace(/\\/+$/, \"\").split(\"/\");\n let relativeSegments = relativePath.split(\"/\");\n relativeSegments.forEach(segment => {\n if (segment === \"..\") {\n // Keep the root \"\" segment so the pathname starts at /\n if (segments.length > 1) segments.pop();\n } else if (segment !== \".\") {\n segments.push(segment);\n }\n });\n return segments.length > 1 ? segments.join(\"/\") : \"/\";\n}\nfunction getInvalidPathError(char, field, dest, path) {\n return \"Cannot include a '\" + char + \"' character in a manually specified \" + (\"`to.\" + field + \"` field [\" + JSON.stringify(path) + \"]. Please separate it out to the \") + (\"`to.\" + dest + \"` field. Alternatively you may provide the full path as \") + \"a string in <Link to=\\\"...\\\"> and the router will parse it for you.\";\n}\n/**\n * @private\n *\n * When processing relative navigation we want to ignore ancestor routes that\n * do not contribute to the path, such that index/pathless layout routes don't\n * interfere.\n *\n * For example, when moving a route element into an index route and/or a\n * pathless layout route, relative link behavior contained within should stay\n * the same. Both of the following examples should link back to the root:\n *\n * <Route path=\"/\">\n * <Route path=\"accounts\" element={<Link to=\"..\"}>\n * </Route>\n *\n * <Route path=\"/\">\n * <Route path=\"accounts\">\n * <Route element={<AccountsLayout />}> // <-- Does not contribute\n * <Route index element={<Link to=\"..\"} /> // <-- Does not contribute\n * </Route\n * </Route>\n * </Route>\n */\nfunction getPathContributingMatches(matches) {\n return matches.filter((match, index) => index === 0 || match.route.path && match.route.path.length > 0);\n}\n// Return the array of pathnames for the current route matches - used to\n// generate the routePathnames input for resolveTo()\nfunction getResolveToMatches(matches, v7_relativeSplatPath) {\n let pathMatches = getPathContributingMatches(matches);\n // When v7_relativeSplatPath is enabled, use the full pathname for the leaf\n // match so we include splat values for \".\" links. See:\n // https://github.com/remix-run/react-router/issues/11052#issuecomment-1836589329\n if (v7_relativeSplatPath) {\n return pathMatches.map((match, idx) => idx === pathMatches.length - 1 ? match.pathname : match.pathnameBase);\n }\n return pathMatches.map(match => match.pathnameBase);\n}\n/**\n * @private\n */\nfunction resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {\n if (isPathRelative === void 0) {\n isPathRelative = false;\n }\n let to;\n if (typeof toArg === \"string\") {\n to = parsePath(toArg);\n } else {\n to = _extends({}, toArg);\n invariant(!to.pathname || !to.pathname.includes(\"?\"), getInvalidPathError(\"?\", \"pathname\", \"search\", to));\n invariant(!to.pathname || !to.pathname.includes(\"#\"), getInvalidPathError(\"#\", \"pathname\", \"hash\", to));\n invariant(!to.search || !to.search.includes(\"#\"), getInvalidPathError(\"#\", \"search\", \"hash\", to));\n }\n let isEmptyPath = toArg === \"\" || to.pathname === \"\";\n let toPathname = isEmptyPath ? \"/\" : to.pathname;\n let from;\n // Routing is relative to the current pathname if explicitly requested.\n //\n // If a pathname is explicitly provided in `to`, it should be relative to the\n // route context. This is explained in `Note on `<Link to>` values` in our\n // migration guide from v5 as a means of disambiguation between `to` values\n // that begin with `/` and those that do not. However, this is problematic for\n // `to` values that do not provide a pathname. `to` can simply be a search or\n // hash string, in which case we should assume that the navigation is relative\n // to the current location's pathname and *not* the route pathname.\n if (toPathname == null) {\n from = locationPathname;\n } else {\n let routePathnameIndex = routePathnames.length - 1;\n // With relative=\"route\" (the default), each leading .. segment means\n // \"go up one route\" instead of \"go up one URL segment\". This is a key\n // difference from how <a href> works and a major reason we call this a\n // \"to\" value instead of a \"href\".\n if (!isPathRelative && toPathname.startsWith(\"..\")) {\n let toSegments = toPathname.split(\"/\");\n while (toSegments[0] === \"..\") {\n toSegments.shift();\n routePathnameIndex -= 1;\n }\n to.pathname = toSegments.join(\"/\");\n }\n from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : \"/\";\n }\n let path = resolvePath(to, from);\n // Ensure the pathname has a trailing slash if the original \"to\" had one\n let hasExplicitTrailingSlash = toPathname && toPathname !== \"/\" && toPathname.endsWith(\"/\");\n // Or if this was a link to the current path which has a trailing slash\n let hasCurrentTrailingSlash = (isEmptyPath || toPathname === \".\") && locationPathname.endsWith(\"/\");\n if (!path.pathname.endsWith(\"/\") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash)) {\n path.pathname += \"/\";\n }\n return path;\n}\n/**\n * @private\n */\nfunction getToPathname(to) {\n // Empty strings should be treated the same as / paths\n return to === \"\" || to.pathname === \"\" ? \"/\" : typeof to === \"string\" ? parsePath(to).pathname : to.pathname;\n}\n/**\n * @private\n */\nconst joinPaths = paths => paths.join(\"/\").replace(/\\/\\/+/g, \"/\");\n/**\n * @private\n */\nconst normalizePathname = pathname => pathname.replace(/\\/+$/, \"\").replace(/^\\/*/, \"/\");\n/**\n * @private\n */\nconst normalizeSearch = search => !search || search === \"?\" ? \"\" : search.startsWith(\"?\") ? search : \"?\" + search;\n/**\n * @private\n */\nconst normalizeHash = hash => !hash || hash === \"#\" ? \"\" : hash.startsWith(\"#\") ? hash : \"#\" + hash;\n/**\n * This is a shortcut for creating `application/json` responses. Converts `data`\n * to JSON and sets the `Content-Type` header.\n */\nconst json = function json(data, init) {\n if (init === void 0) {\n init = {};\n }\n let responseInit = typeof init === \"number\" ? {\n status: init\n } : init;\n let headers = new Headers(responseInit.headers);\n if (!headers.has(\"Content-Type\")) {\n headers.set(\"Content-Type\", \"application/json; charset=utf-8\");\n }\n return new Response(JSON.stringify(data), _extends({}, responseInit, {\n headers\n }));\n};\nclass DataWithResponseInit {\n constructor(data, init) {\n this.type = \"DataWithResponseInit\";\n this.data = data;\n this.init = init || null;\n }\n}\n/**\n * Create \"responses\" that contain `status`/`headers` without forcing\n * serialization into an actual `Response` - used by Remix single fetch\n */\nfunction data(data, init) {\n return new DataWithResponseInit(data, typeof init === \"number\" ? {\n status: init\n } : init);\n}\nclass AbortedDeferredError extends Error {}\nclass DeferredData {\n constructor(data, responseInit) {\n this.pendingKeysSet = new Set();\n this.subscribers = new Set();\n this.deferredKeys = [];\n invariant(data && typeof data === \"object\" && !Array.isArray(data), \"defer() only accepts plain objects\");\n // Set up an AbortController + Promise we can race against to exit early\n // cancellation\n let reject;\n this.abortPromise = new Promise((_, r) => reject = r);\n this.controller = new AbortController();\n let onAbort = () => reject(new AbortedDeferredError(\"Deferred data aborted\"));\n this.unlistenAbortSignal = () => this.controller.signal.removeEventListener(\"abort\", onAbort);\n this.controller.signal.addEventListener(\"abort\", onAbort);\n this.data = Object.entries(data).reduce((acc, _ref2) => {\n let [key, value] = _ref2;\n return Object.assign(acc, {\n [key]: this.trackPromise(key, value)\n });\n }, {});\n if (this.done) {\n // All incoming values were resolved\n this.unlistenAbortSignal();\n }\n this.init = responseInit;\n }\n trackPromise(key, value) {\n if (!(value instanceof Promise)) {\n return value;\n }\n this.deferredKeys.push(key);\n this.pendingKeysSet.add(key);\n // We store a little wrapper promise that will be extended with\n // _data/_error props upon resolve/reject\n let promise = Promise.race([value, this.abortPromise]).then(data => this.onSettle(promise, key, undefined, data), error => this.onSettle(promise, key, error));\n // Register rejection listeners to avoid uncaught promise rejections on\n // errors or aborted deferred values\n promise.catch(() => {});\n Object.defineProperty(promise, \"_tracked\", {\n get: () => true\n });\n return promise;\n }\n onSettle(promise, key, error, data) {\n if (this.controller.signal.aborted && error instanceof AbortedDeferredError) {\n this.unlistenAbortSignal();\n Object.defineProperty(promise, \"_error\", {\n get: () => error\n });\n return Promise.reject(error);\n }\n this.pendingKeysSet.delete(key);\n if (this.done) {\n // Nothing left to abort!\n this.unlistenAbortSignal();\n }\n // If the promise was resolved/rejected with undefined, we'll throw an error as you\n // should always resolve with a value or null\n if (error === undefined && data === undefined) {\n let undefinedError = new Error(\"Deferred data for key \\\"\" + key + \"\\\" resolved/rejected with `undefined`, \" + \"you must resolve/reject with a value or `null`.\");\n Object.defineProperty(promise, \"_error\", {\n get: () => undefinedError\n });\n this.emit(false, key);\n return Promise.reject(undefinedError);\n }\n if (data === undefined) {\n Object.defineProperty(promise, \"_error\", {\n get: () => error\n });\n this.emit(false, key);\n return Promise.reject(error);\n }\n Object.defineProperty(promise, \"_data\", {\n get: () => data\n });\n this.emit(false, key);\n return data;\n }\n emit(aborted, settledKey) {\n this.subscribers.forEach(subscriber => subscriber(aborted, settledKey));\n }\n subscribe(fn) {\n this.subscribers.add(fn);\n return () => this.subscribers.delete(fn);\n }\n cancel() {\n this.controller.abort();\n this.pendingKeysSet.forEach((v, k) => this.pendingKeysSet.delete(k));\n this.emit(true);\n }\n async resolveData(signal) {\n let aborted = false;\n if (!this.done) {\n let onAbort = () => this.cancel();\n signal.addEventListener(\"abort\", onAbort);\n aborted = await new Promise(resolve => {\n this.subscribe(aborted => {\n signal.removeEventListener(\"abort\", onAbort);\n if (aborted || this.done) {\n resolve(aborted);\n }\n });\n });\n }\n return aborted;\n }\n get done() {\n return this.pendingKeysSet.size === 0;\n }\n get unwrappedData() {\n invariant(this.data !== null && this.done, \"Can only unwrap data on initialized and settled deferreds\");\n return Object.entries(this.data).reduce((acc, _ref3) => {\n let [key, value] = _ref3;\n return Object.assign(acc, {\n [key]: unwrapTrackedPromise(value)\n });\n }, {});\n }\n get pendingKeys() {\n return Array.from(this.pendingKeysSet);\n }\n}\nfunction isTrackedPromise(value) {\n return value instanceof Promise && value._tracked === true;\n}\nfunction unwrapTrackedPromise(value) {\n if (!isTrackedPromise(value)) {\n return value;\n }\n if (value._error) {\n throw value._error;\n }\n return value._data;\n}\nconst defer = function defer(data, init) {\n if (init === void 0) {\n init = {};\n }\n let responseInit = typeof init === \"number\" ? {\n status: init\n } : init;\n return new DeferredData(data, responseInit);\n};\n/**\n * A redirect response. Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\nconst redirect = function redirect(url, init) {\n if (init === void 0) {\n init = 302;\n }\n let responseInit = init;\n if (typeof responseInit === \"number\") {\n responseInit = {\n status: responseInit\n };\n } else if (typeof responseInit.status === \"undefined\") {\n responseInit.status = 302;\n }\n let headers = new Headers(responseInit.headers);\n headers.set(\"Location\", url);\n return new Response(null, _extends({}, responseInit, {\n headers\n }));\n};\n/**\n * A redirect response that will force a document reload to the new location.\n * Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\nconst redirectDocument = (url, init) => {\n let response = redirect(url, init);\n response.headers.set(\"X-Remix-Reload-Document\", \"true\");\n return response;\n};\n/**\n * A redirect response that will perform a `history.replaceState` instead of a\n * `history.pushState` for client-side navigation redirects.\n * Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\nconst replace = (url, init) => {\n let response = redirect(url, init);\n response.headers.set(\"X-Remix-Replace\", \"true\");\n return response;\n};\n/**\n * @private\n * Utility class we use to hold auto-unwrapped 4xx/5xx Response bodies\n *\n * We don't export the class for public use since it's an implementation\n * detail, but we export the interface above so folks can build their own\n * abstractions around instances via isRouteErrorResponse()\n */\nclass ErrorResponseImpl {\n constructor(status, statusText, data, internal) {\n if (internal === void 0) {\n internal = false;\n }\n this.status = status;\n this.statusText = statusText || \"\";\n this.internal = internal;\n if (data instanceof Error) {\n this.data = data.toString();\n this.error = data;\n } else {\n this.data = data;\n }\n }\n}\n/**\n * Check if the given error is an ErrorResponse generated from a 4xx/5xx\n * Response thrown from an action/loader\n */\nfunction isRouteErrorResponse(error) {\n return error != null && typeof error.status === \"number\" && typeof error.statusText === \"string\" && typeof error.internal === \"boolean\" && \"data\" in error;\n}\n\nconst validMutationMethodsArr = [\"post\", \"put\", \"patch\", \"delete\"];\nconst validMutationMethods = new Set(validMutationMethodsArr);\nconst validRequestMethodsArr = [\"get\", ...validMutationMethodsArr];\nconst validRequestMethods = new Set(validRequestMethodsArr);\nconst redirectStatusCodes = new Set([301, 302, 303, 307, 308]);\nconst redirectPreserveMethodStatusCodes = new Set([307, 308]);\nconst IDLE_NAVIGATION = {\n state: \"idle\",\n location: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined\n};\nconst IDLE_FETCHER = {\n state: \"idle\",\n data: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined\n};\nconst IDLE_BLOCKER = {\n state: \"unblocked\",\n proceed: undefined,\n reset: undefined,\n location: undefined\n};\nconst ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i;\nconst defaultMapRouteProperties = route => ({\n hasErrorBoundary: Boolean(route.hasErrorBoundary)\n});\nconst TRANSITIONS_STORAGE_KEY = \"remix-router-transitions\";\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createRouter\n////////////////////////////////////////////////////////////////////////////////\n/**\n * Create a router and listen to history POP navigations\n */\nfunction createRouter(init) {\n const routerWindow = init.window ? init.window : typeof window !== \"undefined\" ? window : undefined;\n const isBrowser = typeof routerWindow !== \"undefined\" && typeof routerWindow.document !== \"undefined\" && typeof routerWindow.document.createElement !== \"undefined\";\n const isServer = !isBrowser;\n invariant(init.routes.length > 0, \"You must provide a non-empty routes array to createRouter\");\n let mapRouteProperties;\n if (init.mapRouteProperties) {\n mapRouteProperties = init.mapRouteProperties;\n } else if (init.detectErrorBoundary) {\n // If they are still using the deprecated version, wrap it with the new API\n let detectErrorBoundary = init.detectErrorBoundary;\n mapRouteProperties = route => ({\n hasErrorBoundary: detectErrorBoundary(route)\n });\n } else {\n mapRouteProperties = defaultMapRouteProperties;\n }\n // Routes keyed by ID\n let manifest = {};\n // Routes in tree format for matching\n let dataRoutes = convertRoutesToDataRoutes(init.routes, mapRouteProperties, undefined, manifest);\n let inFlightDataRoutes;\n let basename = init.basename || \"/\";\n let dataStrategyImpl = init.unstable_dataStrategy || defaultDataStrategy;\n let patchRoutesOnNavigationImpl = init.unstable_patchRoutesOnNavigation;\n // Config driven behavior flags\n let future = _extends({\n v7_fetcherPersist: false,\n v7_normalizeFormMethod: false,\n v7_partialHydration: false,\n v7_prependBasename: false,\n v7_relativeSplatPath: false,\n v7_skipActionErrorRevalidation: false\n }, init.future);\n // Cleanup function for history\n let unlistenHistory = null;\n // Externally-provided functions to call on all state changes\n let subscribers = new Set();\n // FIFO queue of previously discovered routes to prevent re-calling on\n // subsequent navigations to the same path\n let discoveredRoutesMaxSize = 1000;\n let discoveredRoutes = new Set();\n // Externally-provided object to hold scroll restoration locations during routing\n let savedScrollPositions = null;\n // Externally-provided function to get scroll restoration keys\n let getScrollRestorationKey = null;\n // Externally-provided function to get current scroll position\n let getScrollPosition = null;\n // One-time flag to control the initial hydration scroll restoration. Because\n // we don't get the saved positions from <ScrollRestoration /> until _after_\n // the initial render, we need to manually trigger a separate updateState to\n // send along the restoreScrollPosition\n // Set to true if we have `hydrationData` since we assume we were SSR'd and that\n // SSR did the initial scroll restoration.\n let initialScrollRestored = init.hydrationData != null;\n let initialMatches = matchRoutes(dataRoutes, init.history.location, basename);\n let initialErrors = null;\n if (initialMatches == null && !patchRoutesOnNavigationImpl) {\n // If we do not match a user-provided-route, fall back to the root\n // to allow the error boundary to take over\n let error = getInternalRouterError(404, {\n pathname: init.history.location.pathname\n });\n let {\n matches,\n route\n } = getShortCircuitMatches(dataRoutes);\n initialMatches = matches;\n initialErrors = {\n [route.id]: error\n };\n }\n // In SPA apps, if the user provided a patchRoutesOnNavigation implementation and\n // our initial match is a splat route, clear them out so we run through lazy\n // discovery on hydration in case there's a more accurate lazy route match.\n // In SSR apps (with `hydrationData`), we expect that the server will send\n // up the proper matched routes so we don't want to run lazy discovery on\n // initial hydration and want to hydrate into the splat route.\n if (initialMatches && !init.hydrationData) {\n let fogOfWar = checkFogOfWar(initialMatches, dataRoutes, init.history.location.pathname);\n if (fogOfWar.active) {\n initialMatches = null;\n }\n }\n let initialized;\n if (!initialMatches) {\n initialized = false;\n initialMatches = [];\n // If partial hydration and fog of war is enabled, we will be running\n // `patchRoutesOnNavigation` during hydration so include any partial matches as\n // the initial matches so we can properly render `HydrateFallback`'s\n if (future.v7_partialHydration) {\n let fogOfWar = checkFogOfWar(null, dataRoutes, init.history.location.pathname);\n if (fogOfWar.active && fogOfWar.matches) {\n initialMatches = fogOfWar.matches;\n }\n }\n } else if (initialMatches.some(m => m.route.lazy)) {\n // All initialMatches need to be loaded before we're ready. If we have lazy\n // functions around still then we'll need to run them in initialize()\n initialized = false;\n } else if (!initialMatches.some(m => m.route.loader)) {\n // If we've got no loaders to run, then we're good to go\n initialized = true;\n } else if (future.v7_partialHydration) {\n // If partial hydration is enabled, we're initialized so long as we were\n // provided with hydrationData for every route with a loader, and no loaders\n // were marked for explicit hydration\n let loaderData = init.hydrationData ? init.hydrationData.loaderData : null;\n let errors = init.hydrationData ? init.hydrationData.errors : null;\n let isRouteInitialized = m => {\n // No loader, nothing to initialize\n if (!m.route.loader) {\n return true;\n }\n // Explicitly opting-in to running on hydration\n if (typeof m.route.loader === \"function\" && m.route.loader.hydrate === true) {\n return false;\n }\n // Otherwise, initialized if hydrated with data or an error\n return loaderData && loaderData[m.route.id] !== undefined || errors && errors[m.route.id] !== undefined;\n };\n // If errors exist, don't consider routes below the boundary\n if (errors) {\n let idx = initialMatches.findIndex(m => errors[m.route.id] !== undefined);\n initialized = initialMatches.slice(0, idx + 1).every(isRouteInitialized);\n } else {\n initialized = initialMatches.every(isRouteInitialized);\n }\n } else {\n // Without partial hydration - we're initialized if we were provided any\n // hydrationData - which is expected to be complete\n initialized = init.hydrationData != null;\n }\n let router;\n let state = {\n historyAction: init.history.action,\n location: init.history.location,\n matches: initialMatches,\n initialized,\n navigation: IDLE_NAVIGATION,\n // Don't restore on initial updateState() if we were SSR'd\n restoreScrollPosition: init.hydrationData != null ? false : null,\n preventScrollReset: false,\n revalidation: \"idle\",\n loaderData: init.hydrationData && init.hydrationData.loaderData || {},\n actionData: init.hydrationData && init.hydrationData.actionData || null,\n errors: init.hydrationData && init.hydrationData.errors || initialErrors,\n fetchers: new Map(),\n blockers: new Map()\n };\n // -- Stateful internal variables to manage navigations --\n // Current navigation in progress (to be committed in completeNavigation)\n let pendingAction = Action.Pop;\n // Should the current navigation prevent the scroll reset if scroll cannot\n // be restored?\n let pendingPreventScrollReset = false;\n // AbortController for the active navigation\n let pendingNavigationController;\n // Should the current navigation enable document.startViewTransition?\n let pendingViewTransitionEnabled = false;\n // Store applied view transitions so we can apply them on POP\n let appliedViewTransitions = new Map();\n // Cleanup function for persisting applied transitions to sessionStorage\n let removePageHideEventListener = null;\n // We use this to avoid touching history in completeNavigation if a\n // revalidation is entirely uninterrupted\n let isUninterruptedRevalidation = false;\n // Use this internal flag to force revalidation of all loaders:\n // - submissions (completed or interrupted)\n // - useRevalidator()\n // - X-Remix-Revalidate (from redirect)\n let isRevalidationRequired = false;\n // Use this internal array to capture routes that require revalidation due\n // to a cancelled deferred on action submission\n let cancelledDeferredRoutes = [];\n // Use this internal array to capture fetcher loads that were cancelled by an\n // action navigation and require revalidation\n let cancelledFetcherLoads = new Set();\n // AbortControllers for any in-flight fetchers\n let fetchControllers = new Map();\n // Track loads based on the order in which they started\n let incrementingLoadId = 0;\n // Track the outstanding pending navigation data load to be compared against\n // the globally incrementing load when a fetcher load lands after a completed\n // navigation\n let pendingNavigationLoadId = -1;\n // Fetchers that triggered data reloads as a result of their actions\n let fetchReloadIds = new Map();\n // Fetchers that triggered redirect navigations\n let fetchRedirectIds = new Set();\n // Most recent href/match for fetcher.load calls for fetchers\n let fetchLoadMatches = new Map();\n // Ref-count mounted fetchers so we know when it's ok to clean them up\n let activeFetchers = new Map();\n // Fetchers that have requested a delete when using v7_fetcherPersist,\n // they'll be officially removed after they return to idle\n let deletedFetchers = new Set();\n // Store DeferredData instances for active route matches. When a\n // route loader returns defer() we stick one in here. Then, when a nested\n // promise resolves we update loaderData. If a new navigation starts we\n // cancel active deferreds for eliminated routes.\n let activeDeferreds = new Map();\n // Store blocker functions in a separate Map outside of router state since\n // we don't need to update UI state if they change\n let blockerFunctions = new Map();\n // Map of pending patchRoutesOnNavigation() promises (keyed by path/matches) so\n // that we only kick them off once for a given combo\n let pendingPatchRoutes = new Map();\n // Flag to ignore the next history update, so we can revert the URL change on\n // a POP navigation that was blocked by the user without touching router state\n let ignoreNextHistoryUpdate = false;\n // Initialize the router, all side effects should be kicked off from here.\n // Implemented as a Fluent API for ease of:\n // let router = createRouter(init).initialize();\n function initialize() {\n // If history informs us of a POP navigation, start the navigation but do not update\n // state. We'll update our own state once the navigation completes\n unlistenHistory = init.history.listen(_ref => {\n let {\n action: historyAction,\n location,\n delta\n } = _ref;\n // Ignore this event if it was just us resetting the URL from a\n // blocked POP navigation\n if (ignoreNextHistoryUpdate) {\n ignoreNextHistoryUpdate = false;\n return;\n }\n warning(blockerFunctions.size === 0 || delta != null, \"You are trying to use a blocker on a POP navigation to a location \" + \"that was not created by @remix-run/router. This will fail silently in \" + \"production. This can happen if you are navigating outside the router \" + \"via `window.history.pushState`/`window.location.hash` instead of using \" + \"router navigation APIs. This can also happen if you are using \" + \"createHashRouter and the user manually changes the URL.\");\n let blockerKey = shouldBlockNavigation({\n currentLocation: state.location,\n nextLocation: location,\n historyAction\n });\n if (blockerKey && delta != null) {\n // Restore the URL to match the current UI, but don't update router state\n ignoreNextHistoryUpdate = true;\n init.history.go(delta * -1);\n // Put the blocker into a blocked state\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location,\n proceed() {\n updateBlocker(blockerKey, {\n state: \"proceeding\",\n proceed: undefined,\n reset: undefined,\n location\n });\n // Re-do the same POP navigation we just blocked\n init.history.go(delta);\n },\n reset() {\n let blockers = new Map(state.blockers);\n blockers.set(blockerKey, IDLE_BLOCKER);\n updateState({\n blockers\n });\n }\n });\n return;\n }\n return startNavigation(historyAction, location);\n });\n if (isBrowser) {\n // FIXME: This feels gross. How can we cleanup the lines between\n // scrollRestoration/appliedTransitions persistance?\n restoreAppliedTransitions(routerWindow, appliedViewTransitions);\n let _saveAppliedTransitions = () => persistAppliedTransitions(routerWindow, appliedViewTransitions);\n routerWindow.addEventListener(\"pagehide\", _saveAppliedTransitions);\n removePageHideEventListener = () => routerWindow.removeEventListener(\"pagehide\", _saveAppliedTransitions);\n }\n // Kick off initial data load if needed. Use Pop to avoid modifying history\n // Note we don't do any handling of lazy here. For SPA's it'll get handled\n // in the normal navigation flow. For SSR it's expected that lazy modules are\n // resolved prior to router creation since we can't go into a fallbackElement\n // UI for SSR'd apps\n if (!state.initialized) {\n startNavigation(Action.Pop, state.location, {\n initialHydration: true\n });\n }\n return router;\n }\n // Clean up a router and it's side effects\n function dispose() {\n if (unlistenHistory) {\n unlistenHistory();\n }\n if (removePageHideEventListener) {\n removePageHideEventListener();\n }\n subscribers.clear();\n pendingNavigationController && pendingNavigationController.abort();\n state.fetchers.forEach((_, key) => deleteFetcher(key));\n state.blockers.forEach((_, key) => deleteBlocker(key));\n }\n // Subscribe to state updates for the router\n function subscribe(fn) {\n subscribers.add(fn);\n return () => subscribers.delete(fn);\n }\n // Update our state and notify the calling context of the change\n function updateState(newState, opts) {\n if (opts === void 0) {\n opts = {};\n }\n state = _extends({}, state, newState);\n // Prep fetcher cleanup so we can tell the UI which fetcher data entries\n // can be removed\n let completedFetchers = [];\n let deletedFetchersKeys = [];\n if (future.v7_fetcherPersist) {\n state.fetchers.forEach((fetcher, key) => {\n if (fetcher.state === \"idle\") {\n if (deletedFetchers.has(key)) {\n // Unmounted from the UI and can be totally removed\n deletedFetchersKeys.push(key);\n } else {\n // Returned to idle but still mounted in the UI, so semi-remains for\n // revalidations and such\n completedFetchers.push(key);\n }\n }\n });\n }\n // Iterate over a local copy so that if flushSync is used and we end up\n // removing and adding a new subscriber due to the useCallback dependencies,\n // we don't get ourselves into a loop calling the new subscriber immediately\n [...subscribers].forEach(subscriber => subscriber(state, {\n deletedFetchers: deletedFetchersKeys,\n unstable_viewTransitionOpts: opts.viewTransitionOpts,\n unstable_flushSync: opts.flushSync === true\n }));\n // Remove idle fetchers from state since we only care about in-flight fetchers.\n if (future.v7_fetcherPersist) {\n completedFetchers.forEach(key => state.fetchers.delete(key));\n deletedFetchersKeys.forEach(key => deleteFetcher(key));\n }\n }\n // Complete a navigation returning the state.navigation back to the IDLE_NAVIGATION\n // and setting state.[historyAction/location/matches] to the new route.\n // - Location is a required param\n // - Navigation will always be set to IDLE_NAVIGATION\n // - Can pass any other state in newState\n function completeNavigation(location, newState, _temp) {\n var _location$state, _location$state2;\n let {\n flushSync\n } = _temp === void 0 ? {} : _temp;\n // Deduce if we're in a loading/actionReload state:\n // - We have committed actionData in the store\n // - The current navigation was a mutation submission\n // - We're past the submitting state and into the loading state\n // - The location being loaded is not the result of a redirect\n let isActionReload = state.actionData != null && state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && state.navigation.state === \"loading\" && ((_location$state = location.state) == null ? void 0 : _location$state._isRedirect) !== true;\n let actionData;\n if (newState.actionData) {\n if (Object.keys(newState.actionData).length > 0) {\n actionData = newState.actionData;\n } else {\n // Empty actionData -> clear prior actionData due to an action error\n actionData = null;\n }\n } else if (isActionReload) {\n // Keep the current data if we're wrapping up the action reload\n actionData = state.actionData;\n } else {\n // Clear actionData on any other completed navigations\n actionData = null;\n }\n // Always preserve any existing loaderData from re-used routes\n let loaderData = newState.loaderData ? mergeLoaderData(state.loaderData, newState.loaderData, newState.matches || [], newState.errors) : state.loaderData;\n // On a successful navigation we can assume we got through all blockers\n // so we can start fresh\n let blockers = state.blockers;\n if (blockers.size > 0) {\n blockers = new Map(blockers);\n blockers.forEach((_, k) => blockers.set(k, IDLE_BLOCKER));\n }\n // Always respect the user flag. Otherwise don't reset on mutation\n // submission navigations unless they redirect\n let preventScrollReset = pendingPreventScrollReset === true || state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && ((_location$state2 = location.state) == null ? void 0 : _location$state2._isRedirect) !== true;\n // Commit any in-flight routes at the end of the HMR revalidation \"navigation\"\n if (inFlightDataRoutes) {\n dataRoutes = inFlightDataRoutes;\n inFlightDataRoutes = undefined;\n }\n if (isUninterruptedRevalidation) ; else if (pendingAction === Action.Pop) ; else if (pendingAction === Action.Push) {\n init.history.push(location, location.state);\n } else if (pendingAction === Action.Replace) {\n init.history.replace(location, location.state);\n }\n let viewTransitionOpts;\n // On POP, enable transitions if they were enabled on the original navigation\n if (pendingAction === Action.Pop) {\n // Forward takes precedence so they behave like the original navigation\n let priorPaths = appliedViewTransitions.get(state.location.pathname);\n if (priorPaths && priorPaths.has(location.pathname)) {\n viewTransitionOpts = {\n currentLocation: state.location,\n nextLocation: location\n };\n } else if (appliedViewTransitions.has(location.pathname)) {\n // If we don't have a previous forward nav, assume we're popping back to\n // the new location and enable if that location previously enabled\n viewTransitionOpts = {\n currentLocation: location,\n nextLocation: state.location\n };\n }\n } else if (pendingViewTransitionEnabled) {\n // Store the applied transition on PUSH/REPLACE\n let toPaths = appliedViewTransitions.get(state.location.pathname);\n if (toPaths) {\n toPaths.add(location.pathname);\n } else {\n toPaths = new Set([location.pathname]);\n appliedViewTransitions.set(state.location.pathname, toPaths);\n }\n viewTransitionOpts = {\n currentLocation: state.location,\n nextLocation: location\n };\n }\n updateState(_extends({}, newState, {\n actionData,\n loaderData,\n historyAction: pendingAction,\n location,\n initialized: true,\n navigation: IDLE_NAVIGATION,\n revalidation: \"idle\",\n restoreScrollPosition: getSavedScrollPosition(location, newState.matches || state.matches),\n preventScrollReset,\n blockers\n }), {\n viewTransitionOpts,\n flushSync: flushSync === true\n });\n // Reset stateful navigation vars\n pendingAction = Action.Pop;\n pendingPreventScrollReset = false;\n pendingViewTransitionEnabled = false;\n isUninterruptedRevalidation = false;\n isRevalidationRequired = false;\n cancelledDeferredRoutes = [];\n }\n // Trigger a navigation event, which can either be a numerical POP or a PUSH\n // replace with an optional submission\n async function navigate(to, opts) {\n if (typeof to === \"number\") {\n init.history.go(to);\n return;\n }\n let normalizedPath = normalizeTo(state.location, state.matches, basename, future.v7_prependBasename, to, future.v7_relativeSplatPath, opts == null ? void 0 : opts.fromRouteId, opts == null ? void 0 : opts.relative);\n let {\n path,\n submission,\n error\n } = normalizeNavigateOptions(future.v7_normalizeFormMethod, false, normalizedPath, opts);\n let currentLocation = state.location;\n let nextLocation = createLocation(state.location, path, opts && opts.state);\n // When using navigate as a PUSH/REPLACE we aren't reading an already-encoded\n // URL from window.location, so we need to encode it here so the behavior\n // remains the same as POP and non-data-router usages. new URL() does all\n // the same encoding we'd get from a history.pushState/window.location read\n // without having to touch history\n nextLocation = _extends({}, nextLocation, init.history.encodeLocation(nextLocation));\n let userReplace = opts && opts.replace != null ? opts.replace : undefined;\n let historyAction = Action.Push;\n if (userReplace === true) {\n historyAction = Action.Replace;\n } else if (userReplace === false) ; else if (submission != null && isMutationMethod(submission.formMethod) && submission.formAction === state.location.pathname + state.location.search) {\n // By default on submissions to the current location we REPLACE so that\n // users don't have to double-click the back button to get to the prior\n // location. If the user redirects to a different location from the\n // action/loader this will be ignored and the redirect will be a PUSH\n historyAction = Action.Replace;\n }\n let preventScrollReset = opts && \"preventScrollReset\" in opts ? opts.preventScrollReset === true : undefined;\n let flushSync = (opts && opts.unstable_flushSync) === true;\n let blockerKey = shouldBlockNavigation({\n currentLocation,\n nextLocation,\n historyAction\n });\n if (blockerKey) {\n // Put the blocker into a blocked state\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location: nextLocation,\n proceed() {\n updateBlocker(blockerKey, {\n state: \"proceeding\",\n proceed: undefined,\n reset: undefined,\n location: nextLocation\n });\n // Send the same navigation through\n navigate(to, opts);\n },\n reset() {\n let blockers = new Map(state.blockers);\n blockers.set(blockerKey, IDLE_BLOCKER);\n updateState({\n blockers\n });\n }\n });\n return;\n }\n return await startNavigation(historyAction, nextLocation, {\n submission,\n // Send through the formData serialization error if we have one so we can\n // render at the right error boundary after we match routes\n pendingError: error,\n preventScrollReset,\n replace: opts && opts.replace,\n enableViewTransition: opts && opts.unstable_viewTransition,\n flushSync\n });\n }\n // Revalidate all current loaders. If a navigation is in progress or if this\n // is interrupted by a navigation, allow this to \"succeed\" by calling all\n // loaders during the next loader round\n function revalidate() {\n interruptActiveLoads();\n updateState({\n revalidation: \"loading\"\n });\n // If we're currently submitting an action, we don't need to start a new\n // navigation, we'll just let the follow up loader execution call all loaders\n if (state.navigation.state === \"submitting\") {\n return;\n }\n // If we're currently in an idle state, start a new navigation for the current\n // action/location and mark it as uninterrupted, which will skip the history\n // update in completeNavigation\n if (state.navigation.state === \"idle\") {\n startNavigation(state.historyAction, state.location, {\n startUninterruptedRevalidation: true\n });\n return;\n }\n // Otherwise, if we're currently in a loading state, just start a new\n // navigation to the navigation.location but do not trigger an uninterrupted\n // revalidation so that history correctly updates once the navigation completes\n startNavigation(pendingAction || state.historyAction, state.navigation.location, {\n overrideNavigation: state.navigation\n });\n }\n // Start a navigation to the given action/location. Can optionally provide a\n // overrideNavigation which will override the normalLoad in the case of a redirect\n // navigation\n async function startNavigation(historyAction, location, opts) {\n // Abort any in-progress navigations and start a new one. Unset any ongoing\n // uninterrupted revalidations unless told otherwise, since we want this\n // new navigation to update history normally\n pendingNavigationController && pendingNavigationController.abort();\n pendingNavigationController = null;\n pendingAction = historyAction;\n isUninterruptedRevalidation = (opts && opts.startUninterruptedRevalidation) === true;\n // Save the current scroll position every time we start a new navigation,\n // and track whether we should reset scroll on completion\n saveScrollPosition(state.location, state.matches);\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n pendingViewTransitionEnabled = (opts && opts.enableViewTransition) === true;\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let loadingNavigation = opts && opts.overrideNavigation;\n let matches = matchRoutes(routesToUse, location, basename);\n let flushSync = (opts && opts.flushSync) === true;\n let fogOfWar = checkFogOfWar(matches, routesToUse, location.pathname);\n if (fogOfWar.active && fogOfWar.matches) {\n matches = fogOfWar.matches;\n }\n // Short circuit with a 404 on the root error boundary if we match nothing\n if (!matches) {\n let {\n error,\n notFoundMatches,\n route\n } = handleNavigational404(location.pathname);\n completeNavigation(location, {\n matches: notFoundMatches,\n loaderData: {},\n errors: {\n [route.id]: error\n }\n }, {\n flushSync\n });\n return;\n }\n // Short circuit if it's only a hash change and not a revalidation or\n // mutation submission.\n //\n // Ignore on initial page loads because since the initial load will always\n // be \"same hash\". For example, on /page#hash and submit a <Form method=\"post\">\n // which will default to a navigation to /page\n if (state.initialized && !isRevalidationRequired && isHashChangeOnly(state.location, location) && !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))) {\n completeNavigation(location, {\n matches\n }, {\n flushSync\n });\n return;\n }\n // Create a controller/Request for this navigation\n pendingNavigationController = new AbortController();\n let request = createClientSideRequest(init.history, location, pendingNavigationController.signal, opts && opts.submission);\n let pendingActionResult;\n if (opts && opts.pendingError) {\n // If we have a pendingError, it means the user attempted a GET submission\n // with binary FormData so assign here and skip to handleLoaders. That\n // way we handle calling loaders above the boundary etc. It's not really\n // different from an actionError in that sense.\n pendingActionResult = [findNearestBoundary(matches).route.id, {\n type: ResultType.error,\n error: opts.pendingError\n }];\n } else if (opts && opts.submission && isMutationMethod(opts.submission.formMethod)) {\n // Call action if we received an action submission\n let actionResult = await handleAction(request, location, opts.submission, matches, fogOfWar.active, {\n replace: opts.replace,\n flushSync\n });\n if (actionResult.shortCircuited) {\n return;\n }\n // If we received a 404 from handleAction, it's because we couldn't lazily\n // discover the destination route so we don't want to call loaders\n if (actionResult.pendingActionResult) {\n let [routeId, result] = actionResult.pendingActionResult;\n if (isErrorResult(result) && isRouteErrorResponse(result.error) && result.error.status === 404) {\n pendingNavigationController = null;\n completeNavigation(location, {\n matches: actionResult.matches,\n loaderData: {},\n errors: {\n [routeId]: result.error\n }\n });\n return;\n }\n }\n matches = actionResult.matches || matches;\n pendingActionResult = actionResult.pendingActionResult;\n loadingNavigation = getLoadingNavigation(location, opts.submission);\n flushSync = false;\n // No need to do fog of war matching again on loader execution\n fogOfWar.active = false;\n // Create a GET request for the loaders\n request = createClientSideRequest(init.history, request.url, request.signal);\n }\n // Call loaders\n let {\n shortCircuited,\n matches: updatedMatches,\n loaderData,\n errors\n } = await handleLoaders(request, location, matches, fogOfWar.active, loadingNavigation, opts && opts.submission, opts && opts.fetcherSubmission, opts && opts.replace, opts && opts.initialHydration === true, flushSync, pendingActionResult);\n if (shortCircuited) {\n return;\n }\n // Clean up now that the action/loaders have completed. Don't clean up if\n // we short circuited because pendingNavigationController will have already\n // been assigned to a new controller for the next navigation\n pendingNavigationController = null;\n completeNavigation(location, _extends({\n matches: updatedMatches || matches\n }, getActionDataForCommit(pendingActionResult), {\n loaderData,\n errors\n }));\n }\n // Call the action matched by the leaf route for this navigation and handle\n // redirects/errors\n async function handleAction(request, location, submission, matches, isFogOfWar, opts) {\n if (opts === void 0) {\n opts = {};\n }\n interruptActiveLoads();\n // Put us in a submitting state\n let navigation = getSubmittingNavigation(location, submission);\n updateState({\n navigation\n }, {\n flushSync: opts.flushSync === true\n });\n if (isFogOfWar) {\n let discoverResult = await discoverRoutes(matches, location.pathname, request.signal);\n if (discoverResult.type === \"aborted\") {\n return {\n shortCircuited: true\n };\n } else if (discoverResult.type === \"error\") {\n let {\n boundaryId,\n error\n } = handleDiscoverRouteError(location.pathname, discoverResult);\n return {\n matches: discoverResult.partialMatches,\n pendingActionResult: [boundaryId, {\n type: ResultType.error,\n error\n }]\n };\n } else if (!discoverResult.matches) {\n let {\n notFoundMatches,\n error,\n route\n } = handleNavigational404(location.pathname);\n return {\n matches: notFoundMatches,\n pendingActionResult: [route.id, {\n type: ResultType.error,\n error\n }]\n };\n } else {\n matches = discoverResult.matches;\n }\n }\n // Call our action and get the result\n let result;\n let actionMatch = getTargetMatch(matches, location);\n if (!actionMatch.route.action && !actionMatch.route.lazy) {\n result = {\n type: ResultType.error,\n error: getInternalRouterError(405, {\n method: request.method,\n pathname: location.pathname,\n routeId: actionMatch.route.id\n })\n };\n } else {\n let results = await callDataStrategy(\"action\", request, [actionMatch], matches);\n result = results[0];\n if (request.signal.aborted) {\n return {\n shortCircuited: true\n };\n }\n }\n if (isRedirectResult(result)) {\n let replace;\n if (opts && opts.replace != null) {\n replace = opts.replace;\n } else {\n // If the user didn't explicity indicate replace behavior, replace if\n // we redirected to the exact same location we're currently at to avoid\n // double back-buttons\n let location = normalizeRedirectLocation(result.response.headers.get(\"Location\"), new URL(request.url), basename);\n replace = location === state.location.pathname + state.location.search;\n }\n await startRedirectNavigation(request, result, {\n submission,\n replace\n });\n return {\n shortCircuited: true\n };\n }\n if (isDeferredResult(result)) {\n throw getInternalRouterError(400, {\n type: \"defer-action\"\n });\n }\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id);\n // By default, all submissions to the current location are REPLACE\n // navigations, but if the action threw an error that'll be rendered in\n // an errorElement, we fall back to PUSH so that the user can use the\n // back button to get back to the pre-submission form location to try\n // again\n if ((opts && opts.replace) !== true) {\n pendingAction = Action.Push;\n }\n return {\n matches,\n pendingActionResult: [boundaryMatch.route.id, result]\n };\n }\n return {\n matches,\n pendingActionResult: [actionMatch.route.id, result]\n };\n }\n // Call all applicable loaders for the given matches, handling redirects,\n // errors, etc.\n async function handleLoaders(request, location, matches, isFogOfWar, overrideNavigation, submission, fetcherSubmission, replace, initialHydration, flushSync, pendingActionResult) {\n // Figure out the right navigation we want to use for data loading\n let loadingNavigation = overrideNavigation || getLoadingNavigation(location, submission);\n // If this was a redirect from an action we don't have a \"submission\" but\n // we have it on the loading navigation so use that if available\n let activeSubmission = submission || fetcherSubmission || getSubmissionFromNavigation(loadingNavigation);\n // If this is an uninterrupted revalidation, we remain in our current idle\n // state. If not, we need to switch to our loading state and load data,\n // preserving any new action data or existing action data (in the case of\n // a revalidation interrupting an actionReload)\n // If we have partialHydration enabled, then don't update the state for the\n // initial data load since it's not a \"navigation\"\n let shouldUpdateNavigationState = !isUninterruptedRevalidation && (!future.v7_partialHydration || !initialHydration);\n // When fog of war is enabled, we enter our `loading` state earlier so we\n // can discover new routes during the `loading` state. We skip this if\n // we've already run actions since we would have done our matching already.\n // If the children() function threw then, we want to proceed with the\n // partial matches it discovered.\n if (isFogOfWar) {\n if (shouldUpdateNavigationState) {\n let actionData = getUpdatedActionData(pendingActionResult);\n updateState(_extends({\n navigation: loadingNavigation\n }, actionData !== undefined ? {\n actionData\n } : {}), {\n flushSync\n });\n }\n let discoverResult = await discoverRoutes(matches, location.pathname, request.signal);\n if (discoverResult.type === \"aborted\") {\n return {\n shortCircuited: true\n };\n } else if (discoverResult.type === \"error\") {\n let {\n boundaryId,\n error\n } = handleDiscoverRouteError(location.pathname, discoverResult);\n return {\n matches: discoverResult.partialMatches,\n loaderData: {},\n errors: {\n [boundaryId]: error\n }\n };\n } else if (!discoverResult.matches) {\n let {\n error,\n notFoundMatches,\n route\n } = handleNavigational404(location.pathname);\n return {\n matches: notFoundMatches,\n loaderData: {},\n errors: {\n [route.id]: error\n }\n };\n } else {\n matches = discoverResult.matches;\n }\n }\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, activeSubmission, location, future.v7_partialHydration && initialHydration === true, future.v7_skipActionErrorRevalidation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, pendingActionResult);\n // Cancel pending deferreds for no-longer-matched routes or routes we're\n // about to reload. Note that if this is an action reload we would have\n // already cancelled all pending deferreds so this would be a no-op\n cancelActiveDeferreds(routeId => !(matches && matches.some(m => m.route.id === routeId)) || matchesToLoad && matchesToLoad.some(m => m.route.id === routeId));\n pendingNavigationLoadId = ++incrementingLoadId;\n // Short circuit if we have no loaders to run\n if (matchesToLoad.length === 0 && revalidatingFetchers.length === 0) {\n let updatedFetchers = markFetchRedirectsDone();\n completeNavigation(location, _extends({\n matches,\n loaderData: {},\n // Commit pending error if we're short circuiting\n errors: pendingActionResult && isErrorResult(pendingActionResult[1]) ? {\n [pendingActionResult[0]]: pendingActionResult[1].error\n } : null\n }, getActionDataForCommit(pendingActionResult), updatedFetchers ? {\n fetchers: new Map(state.fetchers)\n } : {}), {\n flushSync\n });\n return {\n shortCircuited: true\n };\n }\n if (shouldUpdateNavigationState) {\n let updates = {};\n if (!isFogOfWar) {\n // Only update navigation/actionNData if we didn't already do it above\n updates.navigation = loadingNavigation;\n let actionData = getUpdatedActionData(pendingActionResult);\n if (actionData !== undefined) {\n updates.actionData = actionData;\n }\n }\n if (revalidatingFetchers.length > 0) {\n updates.fetchers = getUpdatedRevalidatingFetchers(revalidatingFetchers);\n }\n updateState(updates, {\n flushSync\n });\n }\n revalidatingFetchers.forEach(rf => {\n if (fetchControllers.has(rf.key)) {\n abortFetcher(rf.key);\n }\n if (rf.controller) {\n // Fetchers use an independent AbortController so that aborting a fetcher\n // (via deleteFetcher) does not abort the triggering navigation that\n // triggered the revalidation\n fetchControllers.set(rf.key, rf.controller);\n }\n });\n // Proxy navigation abort through to revalidation fetchers\n let abortPendingFetchRevalidations = () => revalidatingFetchers.forEach(f => abortFetcher(f.key));\n if (pendingNavigationController) {\n pendingNavigationController.signal.addEventListener(\"abort\", abortPendingFetchRevalidations);\n }\n let {\n loaderResults,\n fetcherResults\n } = await callLoadersAndMaybeResolveData(state.matches, matches, matchesToLoad, revalidatingFetchers, request);\n if (request.signal.aborted) {\n return {\n shortCircuited: true\n };\n }\n // Clean up _after_ loaders have completed. Don't clean up if we short\n // circuited because fetchControllers would have been aborted and\n // reassigned to new controllers for the next navigation\n if (pendingNavigationController) {\n pendingNavigationController.signal.removeEventListener(\"abort\", abortPendingFetchRevalidations);\n }\n revalidatingFetchers.forEach(rf => fetchControllers.delete(rf.key));\n // If any loaders returned a redirect Response, start a new REPLACE navigation\n let redirect = findRedirect([...loaderResults, ...fetcherResults]);\n if (redirect) {\n if (redirect.idx >= matchesToLoad.length) {\n // If this redirect came from a fetcher make sure we mark it in\n // fetchRedirectIds so it doesn't get revalidated on the next set of\n // loader executions\n let fetcherKey = revalidatingFetchers[redirect.idx - matchesToLoad.length].key;\n fetchRedirectIds.add(fetcherKey);\n }\n await startRedirectNavigation(request, redirect.result, {\n replace\n });\n return {\n shortCircuited: true\n };\n }\n // Process and commit output from loaders\n let {\n loaderData,\n errors\n } = processLoaderData(state, matches, matchesToLoad, loaderResults, pendingActionResult, revalidatingFetchers, fetcherResults, activeDeferreds);\n // Wire up subscribers to update loaderData as promises settle\n activeDeferreds.forEach((deferredData, routeId) => {\n deferredData.subscribe(aborted => {\n // Note: No need to updateState here since the TrackedPromise on\n // loaderData is stable across resolve/reject\n // Remove this instance if we were aborted or if promises have settled\n if (aborted || deferredData.done) {\n activeDeferreds.delete(routeId);\n }\n });\n });\n // During partial hydration, preserve SSR errors for routes that don't re-run\n if (future.v7_partialHydration && initialHydration && state.errors) {\n Object.entries(state.errors).filter(_ref2 => {\n let [id] = _ref2;\n return !matchesToLoad.some(m => m.route.id === id);\n }).forEach(_ref3 => {\n let [routeId, error] = _ref3;\n errors = Object.assign(errors || {}, {\n [routeId]: error\n });\n });\n }\n let updatedFetchers = markFetchRedirectsDone();\n let didAbortFetchLoads = abortStaleFetchLoads(pendingNavigationLoadId);\n let shouldUpdateFetchers = updatedFetchers || didAbortFetchLoads || revalidatingFetchers.length > 0;\n return _extends({\n matches,\n loaderData,\n errors\n }, shouldUpdateFetchers ? {\n fetchers: new Map(state.fetchers)\n } : {});\n }\n function getUpdatedActionData(pendingActionResult) {\n if (pendingActionResult && !isErrorResult(pendingActionResult[1])) {\n // This is cast to `any` currently because `RouteData`uses any and it\n // would be a breaking change to use any.\n // TODO: v7 - change `RouteData` to use `unknown` instead of `any`\n return {\n [pendingActionResult[0]]: pendingActionResult[1].data\n };\n } else if (state.actionData) {\n if (Object.keys(state.actionData).length === 0) {\n return null;\n } else {\n return state.actionData;\n }\n }\n }\n function getUpdatedRevalidatingFetchers(revalidatingFetchers) {\n revalidatingFetchers.forEach(rf => {\n let fetcher = state.fetchers.get(rf.key);\n let revalidatingFetcher = getLoadingFetcher(undefined, fetcher ? fetcher.data : undefined);\n state.fetchers.set(rf.key, revalidatingFetcher);\n });\n return new Map(state.fetchers);\n }\n // Trigger a fetcher load/submit for the given fetcher key\n function fetch(key, routeId, href, opts) {\n if (isServer) {\n throw new Error(\"router.fetch() was called during the server render, but it shouldn't be. \" + \"You are likely calling a useFetcher() method in the body of your component. \" + \"Try moving it to a useEffect or a callback.\");\n }\n if (fetchControllers.has(key)) abortFetcher(key);\n let flushSync = (opts && opts.unstable_flushSync) === true;\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let normalizedPath = normalizeTo(state.location, state.matches, basename, future.v7_prependBasename, href, future.v7_relativeSplatPath, routeId, opts == null ? void 0 : opts.relative);\n let matches = matchRoutes(routesToUse, normalizedPath, basename);\n let fogOfWar = checkFogOfWar(matches, routesToUse, normalizedPath);\n if (fogOfWar.active && fogOfWar.matches) {\n matches = fogOfWar.matches;\n }\n if (!matches) {\n setFetcherError(key, routeId, getInternalRouterError(404, {\n pathname: normalizedPath\n }), {\n flushSync\n });\n return;\n }\n let {\n path,\n submission,\n error\n } = normalizeNavigateOptions(future.v7_normalizeFormMethod, true, normalizedPath, opts);\n if (error) {\n setFetcherError(key, routeId, error, {\n flushSync\n });\n return;\n }\n let match = getTargetMatch(matches, path);\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n if (submission && isMutationMethod(submission.formMethod)) {\n handleFetcherAction(key, routeId, path, match, matches, fogOfWar.active, flushSync, submission);\n return;\n }\n // Store off the match so we can call it's shouldRevalidate on subsequent\n // revalidations\n fetchLoadMatches.set(key, {\n routeId,\n path\n });\n handleFetcherLoader(key, routeId, path, match, matches, fogOfWar.active, flushSync, submission);\n }\n // Call the action for the matched fetcher.submit(), and then handle redirects,\n // errors, and revalidation\n async function handleFetcherAction(key, routeId, path, match, requestMatches, isFogOfWar, flushSync, submission) {\n interruptActiveLoads();\n fetchLoadMatches.delete(key);\n function detectAndHandle405Error(m) {\n if (!m.route.action && !m.route.lazy) {\n let error = getInternalRouterError(405, {\n method: submission.formMethod,\n pathname: path,\n routeId: routeId\n });\n setFetcherError(key, routeId, error, {\n flushSync\n });\n return true;\n }\n return false;\n }\n if (!isFogOfWar && detectAndHandle405Error(match)) {\n return;\n }\n // Put this fetcher into it's submitting state\n let existingFetcher = state.fetchers.get(key);\n updateFetcherState(key, getSubmittingFetcher(submission, existingFetcher), {\n flushSync\n });\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(init.history, path, abortController.signal, submission);\n if (isFogOfWar) {\n let discoverResult = await discoverRoutes(requestMatches, path, fetchRequest.signal);\n if (discoverResult.type === \"aborted\") {\n return;\n } else if (discoverResult.type === \"error\") {\n let {\n error\n } = handleDiscoverRouteError(path, discoverResult);\n setFetcherError(key, routeId, error, {\n flushSync\n });\n return;\n } else if (!discoverResult.matches) {\n setFetcherError(key, routeId, getInternalRouterError(404, {\n pathname: path\n }), {\n flushSync\n });\n return;\n } else {\n requestMatches = discoverResult.matches;\n match = getTargetMatch(requestMatches, path);\n if (detectAndHandle405Error(match)) {\n return;\n }\n }\n }\n // Call the action for the fetcher\n fetchControllers.set(key, abortController);\n let originatingLoadId = incrementingLoadId;\n let actionResults = await callDataStrategy(\"action\", fetchRequest, [match], requestMatches);\n let actionResult = actionResults[0];\n if (fetchRequest.signal.aborted) {\n // We can delete this so long as we weren't aborted by our own fetcher\n // re-submit which would have put _new_ controller is in fetchControllers\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n return;\n }\n // When using v7_fetcherPersist, we don't want errors bubbling up to the UI\n // or redirects processed for unmounted fetchers so we just revert them to\n // idle\n if (future.v7_fetcherPersist && deletedFetchers.has(key)) {\n if (isRedirectResult(actionResult) || isErrorResult(actionResult)) {\n updateFetcherState(key, getDoneFetcher(undefined));\n return;\n }\n // Let SuccessResult's fall through for revalidation\n } else {\n if (isRedirectResult(actionResult)) {\n fetchControllers.delete(key);\n if (pendingNavigationLoadId > originatingLoadId) {\n // A new navigation was kicked off after our action started, so that\n // should take precedence over this redirect navigation. We already\n // set isRevalidationRequired so all loaders for the new route should\n // fire unless opted out via shouldRevalidate\n updateFetcherState(key, getDoneFetcher(undefined));\n return;\n } else {\n fetchRedirectIds.add(key);\n updateFetcherState(key, getLoadingFetcher(submission));\n return startRedirectNavigation(fetchRequest, actionResult, {\n fetcherSubmission: submission\n });\n }\n }\n // Process any non-redirect errors thrown\n if (isErrorResult(actionResult)) {\n setFetcherError(key, routeId, actionResult.error);\n return;\n }\n }\n if (isDeferredResult(actionResult)) {\n throw getInternalRouterError(400, {\n type: \"defer-action\"\n });\n }\n // Start the data load for current matches, or the next location if we're\n // in the middle of a navigation\n let nextLocation = state.navigation.location || state.location;\n let revalidationRequest = createClientSideRequest(init.history, nextLocation, abortController.signal);\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let matches = state.navigation.state !== \"idle\" ? matchRoutes(routesToUse, state.navigation.location, basename) : state.matches;\n invariant(matches, \"Didn't find any matches after fetcher action\");\n let loadId = ++incrementingLoadId;\n fetchReloadIds.set(key, loadId);\n let loadFetcher = getLoadingFetcher(submission, actionResult.data);\n state.fetchers.set(key, loadFetcher);\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, submission, nextLocation, false, future.v7_skipActionErrorRevalidation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, [match.route.id, actionResult]);\n // Put all revalidating fetchers into the loading state, except for the\n // current fetcher which we want to keep in it's current loading state which\n // contains it's action submission info + action data\n revalidatingFetchers.filter(rf => rf.key !== key).forEach(rf => {\n let staleKey = rf.key;\n let existingFetcher = state.fetchers.get(staleKey);\n let revalidatingFetcher = getLoadingFetcher(undefined, existingFetcher ? existingFetcher.data : undefined);\n state.fetchers.set(staleKey, revalidatingFetcher);\n if (fetchControllers.has(staleKey)) {\n abortFetcher(staleKey);\n }\n if (rf.controller) {\n fetchControllers.set(staleKey, rf.controller);\n }\n });\n updateState({\n fetchers: new Map(state.fetchers)\n });\n let abortPendingFetchRevalidations = () => revalidatingFetchers.forEach(rf => abortFetcher(rf.key));\n abortController.signal.addEventListener(\"abort\", abortPendingFetchRevalidations);\n let {\n loaderResults,\n fetcherResults\n } = await callLoadersAndMaybeResolveData(state.matches, matches, matchesToLoad, revalidatingFetchers, revalidationRequest);\n if (abortController.signal.aborted) {\n return;\n }\n abortController.signal.removeEventListener(\"abort\", abortPendingFetchRevalidations);\n fetchReloadIds.delete(key);\n fetchControllers.delete(key);\n revalidatingFetchers.forEach(r => fetchControllers.delete(r.key));\n let redirect = findRedirect([...loaderResults, ...fetcherResults]);\n if (redirect) {\n if (redirect.idx >= matchesToLoad.length) {\n // If this redirect came from a fetcher make sure we mark it in\n // fetchRedirectIds so it doesn't get revalidated on the next set of\n // loader executions\n let fetcherKey = revalidatingFetchers[redirect.idx - matchesToLoad.length].key;\n fetchRedirectIds.add(fetcherKey);\n }\n return startRedirectNavigation(revalidationRequest, redirect.result);\n }\n // Process and commit output from loaders\n let {\n loaderData,\n errors\n } = processLoaderData(state, state.matches, matchesToLoad, loaderResults, undefined, revalidatingFetchers, fetcherResults, activeDeferreds);\n // Since we let revalidations complete even if the submitting fetcher was\n // deleted, only put it back to idle if it hasn't been deleted\n if (state.fetchers.has(key)) {\n let doneFetcher = getDoneFetcher(actionResult.data);\n state.fetchers.set(key, doneFetcher);\n }\n abortStaleFetchLoads(loadId);\n // If we are currently in a navigation loading state and this fetcher is\n // more recent than the navigation, we want the newer data so abort the\n // navigation and complete it with the fetcher data\n if (state.navigation.state === \"loading\" && loadId > pendingNavigationLoadId) {\n invariant(pendingAction, \"Expected pending action\");\n pendingNavigationController && pendingNavigationController.abort();\n completeNavigation(state.navigation.location, {\n matches,\n loaderData,\n errors,\n fetchers: new Map(state.fetchers)\n });\n } else {\n // otherwise just update with the fetcher data, preserving any existing\n // loaderData for loaders that did not need to reload. We have to\n // manually merge here since we aren't going through completeNavigation\n updateState({\n errors,\n loaderData: mergeLoaderData(state.loaderData, loaderData, matches, errors),\n fetchers: new Map(state.fetchers)\n });\n isRevalidationRequired = false;\n }\n }\n // Call the matched loader for fetcher.load(), handling redirects, errors, etc.\n async function handleFetcherLoader(key, routeId, path, match, matches, isFogOfWar, flushSync, submission) {\n let existingFetcher = state.fetchers.get(key);\n updateFetcherState(key, getLoadingFetcher(submission, existingFetcher ? existingFetcher.data : undefined), {\n flushSync\n });\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(init.history, path, abortController.signal);\n if (isFogOfWar) {\n let discoverResult = await discoverRoutes(matches, path, fetchRequest.signal);\n if (discoverResult.type === \"aborted\") {\n return;\n } else if (discoverResult.type === \"error\") {\n let {\n error\n } = handleDiscoverRouteError(path, discoverResult);\n setFetcherError(key, routeId, error, {\n flushSync\n });\n return;\n } else if (!discoverResult.matches) {\n setFetcherError(key, routeId, getInternalRouterError(404, {\n pathname: path\n }), {\n flushSync\n });\n return;\n } else {\n matches = discoverResult.matches;\n match = getTargetMatch(matches, path);\n }\n }\n // Call the loader for this fetcher route match\n fetchControllers.set(key, abortController);\n let originatingLoadId = incrementingLoadId;\n let results = await callDataStrategy(\"loader\", fetchRequest, [match], matches);\n let result = results[0];\n // Deferred isn't supported for fetcher loads, await everything and treat it\n // as a normal load. resolveDeferredData will return undefined if this\n // fetcher gets aborted, so we just leave result untouched and short circuit\n // below if that happens\n if (isDeferredResult(result)) {\n result = (await resolveDeferredData(result, fetchRequest.signal, true)) || result;\n }\n // We can delete this so long as we weren't aborted by our our own fetcher\n // re-load which would have put _new_ controller is in fetchControllers\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n if (fetchRequest.signal.aborted) {\n return;\n }\n // We don't want errors bubbling up or redirects followed for unmounted\n // fetchers, so short circuit here if it was removed from the UI\n if (deletedFetchers.has(key)) {\n updateFetcherState(key, getDoneFetcher(undefined));\n return;\n }\n // If the loader threw a redirect Response, start a new REPLACE navigation\n if (isRedirectResult(result)) {\n if (pendingNavigationLoadId > originatingLoadId) {\n // A new navigation was kicked off after our loader started, so that\n // should take precedence over this redirect navigation\n updateFetcherState(key, getDoneFetcher(undefined));\n return;\n } else {\n fetchRedirectIds.add(key);\n await startRedirectNavigation(fetchRequest, result);\n return;\n }\n }\n // Process any non-redirect errors thrown\n if (isErrorResult(result)) {\n setFetcherError(key, routeId, result.error);\n return;\n }\n invariant(!isDeferredResult(result), \"Unhandled fetcher deferred data\");\n // Put the fetcher back into an idle state\n updateFetcherState(key, getDoneFetcher(result.data));\n }\n /**\n * Utility function to handle redirects returned from an action or loader.\n * Normally, a redirect \"replaces\" the navigation that triggered it. So, for\n * example:\n *\n * - user is on /a\n * - user clicks a link to /b\n * - loader for /b redirects to /c\n *\n * In a non-JS app the browser would track the in-flight navigation to /b and\n * then replace it with /c when it encountered the redirect response. In\n * the end it would only ever update the URL bar with /c.\n *\n * In client-side routing using pushState/replaceState, we aim to emulate\n * this behavior and we also do not update history until the end of the\n * navigation (including processed redirects). This means that we never\n * actually touch history until we've processed redirects, so we just use\n * the history action from the original navigation (PUSH or REPLACE).\n */\n async function startRedirectNavigation(request, redirect, _temp2) {\n let {\n submission,\n fetcherSubmission,\n replace\n } = _temp2 === void 0 ? {} : _temp2;\n if (redirect.response.headers.has(\"X-Remix-Revalidate\")) {\n isRevalidationRequired = true;\n }\n let location = redirect.response.headers.get(\"Location\");\n invariant(location, \"Expected a Location header on the redirect Response\");\n location = normalizeRedirectLocation(location, new URL(request.url), basename);\n let redirectLocation = createLocation(state.location, location, {\n _isRedirect: true\n });\n if (isBrowser) {\n let isDocumentReload = false;\n if (redirect.response.headers.has(\"X-Remix-Reload-Document\")) {\n // Hard reload if the response contained X-Remix-Reload-Document\n isDocumentReload = true;\n } else if (ABSOLUTE_URL_REGEX.test(location)) {\n const url = init.history.createURL(location);\n isDocumentReload =\n // Hard reload if it's an absolute URL to a new origin\n url.origin !== routerWindow.location.origin ||\n // Hard reload if it's an absolute URL that does not match our basename\n stripBasename(url.pathname, basename) == null;\n }\n if (isDocumentReload) {\n if (replace) {\n routerWindow.location.replace(location);\n } else {\n routerWindow.location.assign(location);\n }\n return;\n }\n }\n // There's no need to abort on redirects, since we don't detect the\n // redirect until the action/loaders have settled\n pendingNavigationController = null;\n let redirectHistoryAction = replace === true || redirect.response.headers.has(\"X-Remix-Replace\") ? Action.Replace : Action.Push;\n // Use the incoming submission if provided, fallback on the active one in\n // state.navigation\n let {\n formMethod,\n formAction,\n formEncType\n } = state.navigation;\n if (!submission && !fetcherSubmission && formMethod && formAction && formEncType) {\n submission = getSubmissionFromNavigation(state.navigation);\n }\n // If this was a 307/308 submission we want to preserve the HTTP method and\n // re-submit the GET/POST/PUT/PATCH/DELETE as a submission navigation to the\n // redirected location\n let activeSubmission = submission || fetcherSubmission;\n if (redirectPreserveMethodStatusCodes.has(redirect.response.status) && activeSubmission && isMutationMethod(activeSubmission.formMethod)) {\n await startNavigation(redirectHistoryAction, redirectLocation, {\n submission: _extends({}, activeSubmission, {\n formAction: location\n }),\n // Preserve this flag across redirects\n preventScrollReset: pendingPreventScrollReset\n });\n } else {\n // If we have a navigation submission, we will preserve it through the\n // redirect navigation\n let overrideNavigation = getLoadingNavigation(redirectLocation, submission);\n await startNavigation(redirectHistoryAction, redirectLocation, {\n overrideNavigation,\n // Send fetcher submissions through for shouldRevalidate\n fetcherSubmission,\n // Preserve this flag across redirects\n preventScrollReset: pendingPreventScrollReset\n });\n }\n }\n // Utility wrapper for calling dataStrategy client-side without having to\n // pass around the manifest, mapRouteProperties, etc.\n async function callDataStrategy(type, request, matchesToLoad, matches) {\n try {\n let results = await callDataStrategyImpl(dataStrategyImpl, type, request, matchesToLoad, matches, manifest, mapRouteProperties);\n return await Promise.all(results.map((result, i) => {\n if (isRedirectHandlerResult(result)) {\n let response = result.result;\n return {\n type: ResultType.redirect,\n response: normalizeRelativeRoutingRedirectResponse(response, request, matchesToLoad[i].route.id, matches, basename, future.v7_relativeSplatPath)\n };\n }\n return convertHandlerResultToDataResult(result);\n }));\n } catch (e) {\n // If the outer dataStrategy method throws, just return the error for all\n // matches - and it'll naturally bubble to the root\n return matchesToLoad.map(() => ({\n type: ResultType.error,\n error: e\n }));\n }\n }\n async function callLoadersAndMaybeResolveData(currentMatches, matches, matchesToLoad, fetchersToLoad, request) {\n let [loaderResults, ...fetcherResults] = await Promise.all([matchesToLoad.length ? callDataStrategy(\"loader\", request, matchesToLoad, matches) : [], ...fetchersToLoad.map(f => {\n if (f.matches && f.match && f.controller) {\n let fetcherRequest = createClientSideRequest(init.history, f.path, f.controller.signal);\n return callDataStrategy(\"loader\", fetcherRequest, [f.match], f.matches).then(r => r[0]);\n } else {\n return Promise.resolve({\n type: ResultType.error,\n error: getInternalRouterError(404, {\n pathname: f.path\n })\n });\n }\n })]);\n await Promise.all([resolveDeferredResults(currentMatches, matchesToLoad, loaderResults, loaderResults.map(() => request.signal), false, state.loaderData), resolveDeferredResults(currentMatches, fetchersToLoad.map(f => f.match), fetcherResults, fetchersToLoad.map(f => f.controller ? f.controller.signal : null), true)]);\n return {\n loaderResults,\n fetcherResults\n };\n }\n function interruptActiveLoads() {\n // Every interruption triggers a revalidation\n isRevalidationRequired = true;\n // Cancel pending route-level deferreds and mark cancelled routes for\n // revalidation\n cancelledDeferredRoutes.push(...cancelActiveDeferreds());\n // Abort in-flight fetcher loads\n fetchLoadMatches.forEach((_, key) => {\n if (fetchControllers.has(key)) {\n cancelledFetcherLoads.add(key);\n abortFetcher(key);\n }\n });\n }\n function updateFetcherState(key, fetcher, opts) {\n if (opts === void 0) {\n opts = {};\n }\n state.fetchers.set(key, fetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n }, {\n flushSync: (opts && opts.flushSync) === true\n });\n }\n function setFetcherError(key, routeId, error, opts) {\n if (opts === void 0) {\n opts = {};\n }\n let boundaryMatch = findNearestBoundary(state.matches, routeId);\n deleteFetcher(key);\n updateState({\n errors: {\n [boundaryMatch.route.id]: error\n },\n fetchers: new Map(state.fetchers)\n }, {\n flushSync: (opts && opts.flushSync) === true\n });\n }\n function getFetcher(key) {\n if (future.v7_fetcherPersist) {\n activeFetchers.set(key, (activeFetchers.get(key) || 0) + 1);\n // If this fetcher was previously marked for deletion, unmark it since we\n // have a new instance\n if (deletedFetchers.has(key)) {\n deletedFetchers.delete(key);\n }\n }\n return state.fetchers.get(key) || IDLE_FETCHER;\n }\n function deleteFetcher(key) {\n let fetcher = state.fetchers.get(key);\n // Don't abort the controller if this is a deletion of a fetcher.submit()\n // in it's loading phase since - we don't want to abort the corresponding\n // revalidation and want them to complete and land\n if (fetchControllers.has(key) && !(fetcher && fetcher.state === \"loading\" && fetchReloadIds.has(key))) {\n abortFetcher(key);\n }\n fetchLoadMatches.delete(key);\n fetchReloadIds.delete(key);\n fetchRedirectIds.delete(key);\n deletedFetchers.delete(key);\n cancelledFetcherLoads.delete(key);\n state.fetchers.delete(key);\n }\n function deleteFetcherAndUpdateState(key) {\n if (future.v7_fetcherPersist) {\n let count = (activeFetchers.get(key) || 0) - 1;\n if (count <= 0) {\n activeFetchers.delete(key);\n deletedFetchers.add(key);\n } else {\n activeFetchers.set(key, count);\n }\n } else {\n deleteFetcher(key);\n }\n updateState({\n fetchers: new Map(state.fetchers)\n });\n }\n function abortFetcher(key) {\n let controller = fetchControllers.get(key);\n invariant(controller, \"Expected fetch controller: \" + key);\n controller.abort();\n fetchControllers.delete(key);\n }\n function markFetchersDone(keys) {\n for (let key of keys) {\n let fetcher = getFetcher(key);\n let doneFetcher = getDoneFetcher(fetcher.data);\n state.fetchers.set(key, doneFetcher);\n }\n }\n function markFetchRedirectsDone() {\n let doneKeys = [];\n let updatedFetchers = false;\n for (let key of fetchRedirectIds) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, \"Expected fetcher: \" + key);\n if (fetcher.state === \"loading\") {\n fetchRedirectIds.delete(key);\n doneKeys.push(key);\n updatedFetchers = true;\n }\n }\n markFetchersDone(doneKeys);\n return updatedFetchers;\n }\n function abortStaleFetchLoads(landedId) {\n let yeetedKeys = [];\n for (let [key, id] of fetchReloadIds) {\n if (id < landedId) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, \"Expected fetcher: \" + key);\n if (fetcher.state === \"loading\") {\n abortFetcher(key);\n fetchReloadIds.delete(key);\n yeetedKeys.push(key);\n }\n }\n }\n markFetchersDone(yeetedKeys);\n return yeetedKeys.length > 0;\n }\n function getBlocker(key, fn) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER;\n if (blockerFunctions.get(key) !== fn) {\n blockerFunctions.set(key, fn);\n }\n return blocker;\n }\n function deleteBlocker(key) {\n state.blockers.delete(key);\n blockerFunctions.delete(key);\n }\n // Utility function to update blockers, ensuring valid state transitions\n function updateBlocker(key, newBlocker) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER;\n // Poor mans state machine :)\n // https://mermaid.live/edit#pako:eNqVkc9OwzAMxl8l8nnjAYrEtDIOHEBIgwvKJTReGy3_lDpIqO27k6awMG0XcrLlnz87nwdonESogKXXBuE79rq75XZO3-yHds0RJVuv70YrPlUrCEe2HfrORS3rubqZfuhtpg5C9wk5tZ4VKcRUq88q9Z8RS0-48cE1iHJkL0ugbHuFLus9L6spZy8nX9MP2CNdomVaposqu3fGayT8T8-jJQwhepo_UtpgBQaDEUom04dZhAN1aJBDlUKJBxE1ceB2Smj0Mln-IBW5AFU2dwUiktt_2Qaq2dBfaKdEup85UV7Yd-dKjlnkabl2Pvr0DTkTreM\n invariant(blocker.state === \"unblocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"proceeding\" || blocker.state === \"blocked\" && newBlocker.state === \"unblocked\" || blocker.state === \"proceeding\" && newBlocker.state === \"unblocked\", \"Invalid blocker state transition: \" + blocker.state + \" -> \" + newBlocker.state);\n let blockers = new Map(state.blockers);\n blockers.set(key, newBlocker);\n updateState({\n blockers\n });\n }\n function shouldBlockNavigation(_ref4) {\n let {\n currentLocation,\n nextLocation,\n historyAction\n } = _ref4;\n if (blockerFunctions.size === 0) {\n return;\n }\n // We ony support a single active blocker at the moment since we don't have\n // any compelling use cases for multi-blocker yet\n if (blockerFunctions.size > 1) {\n warning(false, \"A router only supports one blocker at a time\");\n }\n let entries = Array.from(blockerFunctions.entries());\n let [blockerKey, blockerFunction] = entries[entries.length - 1];\n let blocker = state.blockers.get(blockerKey);\n if (blocker && blocker.state === \"proceeding\") {\n // If the blocker is currently proceeding, we don't need to re-check\n // it and can let this navigation continue\n return;\n }\n // At this point, we know we're unblocked/blocked so we need to check the\n // user-provided blocker function\n if (blockerFunction({\n currentLocation,\n nextLocation,\n historyAction\n })) {\n return blockerKey;\n }\n }\n function handleNavigational404(pathname) {\n let error = getInternalRouterError(404, {\n pathname\n });\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let {\n matches,\n route\n } = getShortCircuitMatches(routesToUse);\n // Cancel all pending deferred on 404s since we don't keep any routes\n cancelActiveDeferreds();\n return {\n notFoundMatches: matches,\n route,\n error\n };\n }\n function handleDiscoverRouteError(pathname, discoverResult) {\n return {\n boundaryId: findNearestBoundary(discoverResult.partialMatches).route.id,\n error: getInternalRouterError(400, {\n type: \"route-discovery\",\n pathname,\n message: discoverResult.error != null && \"message\" in discoverResult.error ? discoverResult.error : String(discoverResult.error)\n })\n };\n }\n function cancelActiveDeferreds(predicate) {\n let cancelledRouteIds = [];\n activeDeferreds.forEach((dfd, routeId) => {\n if (!predicate || predicate(routeId)) {\n // Cancel the deferred - but do not remove from activeDeferreds here -\n // we rely on the subscribers to do that so our tests can assert proper\n // cleanup via _internalActiveDeferreds\n dfd.cancel();\n cancelledRouteIds.push(routeId);\n activeDeferreds.delete(routeId);\n }\n });\n return cancelledRouteIds;\n }\n // Opt in to capturing and reporting scroll positions during navigations,\n // used by the <ScrollRestoration> component\n function enableScrollRestoration(positions, getPosition, getKey) {\n savedScrollPositions = positions;\n getScrollPosition = getPosition;\n getScrollRestorationKey = getKey || null;\n // Perform initial hydration scroll restoration, since we miss the boat on\n // the initial updateState() because we've not yet rendered <ScrollRestoration/>\n // and therefore have no savedScrollPositions available\n if (!initialScrollRestored && state.navigation === IDLE_NAVIGATION) {\n initialScrollRestored = true;\n let y = getSavedScrollPosition(state.location, state.matches);\n if (y != null) {\n updateState({\n restoreScrollPosition: y\n });\n }\n }\n return () => {\n savedScrollPositions = null;\n getScrollPosition = null;\n getScrollRestorationKey = null;\n };\n }\n function getScrollKey(location, matches) {\n if (getScrollRestorationKey) {\n let key = getScrollRestorationKey(location, matches.map(m => convertRouteMatchToUiMatch(m, state.loaderData)));\n return key || location.key;\n }\n return location.key;\n }\n function saveScrollPosition(location, matches) {\n if (savedScrollPositions && getScrollPosition) {\n let key = getScrollKey(location, matches);\n savedScrollPositions[key] = getScrollPosition();\n }\n }\n function getSavedScrollPosition(location, matches) {\n if (savedScrollPositions) {\n let key = getScrollKey(location, matches);\n let y = savedScrollPositions[key];\n if (typeof y === \"number\") {\n return y;\n }\n }\n return null;\n }\n function checkFogOfWar(matches, routesToUse, pathname) {\n if (patchRoutesOnNavigationImpl) {\n // Don't bother re-calling patchRouteOnMiss for a path we've already\n // processed. the last execution would have patched the route tree\n // accordingly so `matches` here are already accurate.\n if (discoveredRoutes.has(pathname)) {\n return {\n active: false,\n matches\n };\n }\n if (!matches) {\n let fogMatches = matchRoutesImpl(routesToUse, pathname, basename, true);\n return {\n active: true,\n matches: fogMatches || []\n };\n } else {\n if (Object.keys(matches[0].params).length > 0) {\n // If we matched a dynamic param or a splat, it might only be because\n // we haven't yet discovered other routes that would match with a\n // higher score. Call patchRoutesOnNavigation just to be sure\n let partialMatches = matchRoutesImpl(routesToUse, pathname, basename, true);\n return {\n active: true,\n matches: partialMatches\n };\n }\n }\n }\n return {\n active: false,\n matches: null\n };\n }\n async function discoverRoutes(matches, pathname, signal) {\n let partialMatches = matches;\n while (true) {\n let isNonHMR = inFlightDataRoutes == null;\n let routesToUse = inFlightDataRoutes || dataRoutes;\n try {\n await loadLazyRouteChildren(patchRoutesOnNavigationImpl, pathname, partialMatches, routesToUse, manifest, mapRouteProperties, pendingPatchRoutes, signal);\n } catch (e) {\n return {\n type: \"error\",\n error: e,\n partialMatches\n };\n } finally {\n // If we are not in the middle of an HMR revalidation and we changed the\n // routes, provide a new identity so when we `updateState` at the end of\n // this navigation/fetch `router.routes` will be a new identity and\n // trigger a re-run of memoized `router.routes` dependencies.\n // HMR will already update the identity and reflow when it lands\n // `inFlightDataRoutes` in `completeNavigation`\n if (isNonHMR) {\n dataRoutes = [...dataRoutes];\n }\n }\n if (signal.aborted) {\n return {\n type: \"aborted\"\n };\n }\n let newMatches = matchRoutes(routesToUse, pathname, basename);\n if (newMatches) {\n addToFifoQueue(pathname, discoveredRoutes);\n return {\n type: \"success\",\n matches: newMatches\n };\n }\n let newPartialMatches = matchRoutesImpl(routesToUse, pathname, basename, true);\n // Avoid loops if the second pass results in the same partial matches\n if (!newPartialMatches || partialMatches.length === newPartialMatches.length && partialMatches.every((m, i) => m.route.id === newPartialMatches[i].route.id)) {\n addToFifoQueue(pathname, discoveredRoutes);\n return {\n type: \"success\",\n matches: null\n };\n }\n partialMatches = newPartialMatches;\n }\n }\n function addToFifoQueue(path, queue) {\n if (queue.size >= discoveredRoutesMaxSize) {\n let first = queue.values().next().value;\n queue.delete(first);\n }\n queue.add(path);\n }\n function _internalSetRoutes(newRoutes) {\n manifest = {};\n inFlightDataRoutes = convertRoutesToDataRoutes(newRoutes, mapRouteProperties, undefined, manifest);\n }\n function patchRoutes(routeId, children) {\n let isNonHMR = inFlightDataRoutes == null;\n let routesToUse = inFlightDataRoutes || dataRoutes;\n patchRoutesImpl(routeId, children, routesToUse, manifest, mapRouteProperties);\n // If we are not in the middle of an HMR revalidation and we changed the\n // routes, provide a new identity and trigger a reflow via `updateState`\n // to re-run memoized `router.routes` dependencies.\n // HMR will already update the identity and reflow when it lands\n // `inFlightDataRoutes` in `completeNavigation`\n if (isNonHMR) {\n dataRoutes = [...dataRoutes];\n updateState({});\n }\n }\n router = {\n get basename() {\n return basename;\n },\n get future() {\n return future;\n },\n get state() {\n return state;\n },\n get routes() {\n return dataRoutes;\n },\n get window() {\n return routerWindow;\n },\n initialize,\n subscribe,\n enableScrollRestoration,\n navigate,\n fetch,\n revalidate,\n // Passthrough to history-aware createHref used by useHref so we get proper\n // hash-aware URLs in DOM paths\n createHref: to => init.history.createHref(to),\n encodeLocation: to => init.history.encodeLocation(to),\n getFetcher,\n deleteFetcher: deleteFetcherAndUpdateState,\n dispose,\n getBlocker,\n deleteBlocker,\n patchRoutes,\n _internalFetchControllers: fetchControllers,\n _internalActiveDeferreds: activeDeferreds,\n // TODO: Remove setRoutes, it's temporary to avoid dealing with\n // updating the tree while validating the update algorithm.\n _internalSetRoutes\n };\n return router;\n}\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createStaticHandler\n////////////////////////////////////////////////////////////////////////////////\nconst UNSAFE_DEFERRED_SYMBOL = Symbol(\"deferred\");\nfunction createStaticHandler(routes, opts) {\n invariant(routes.length > 0, \"You must provide a non-empty routes array to createStaticHandler\");\n let manifest = {};\n let basename = (opts ? opts.basename : null) || \"/\";\n let mapRouteProperties;\n if (opts != null && opts.mapRouteProperties) {\n mapRouteProperties = opts.mapRouteProperties;\n } else if (opts != null && opts.detectErrorBoundary) {\n // If they are still using the deprecated version, wrap it with the new API\n let detectErrorBoundary = opts.detectErrorBoundary;\n mapRouteProperties = route => ({\n hasErrorBoundary: detectErrorBoundary(route)\n });\n } else {\n mapRouteProperties = defaultMapRouteProperties;\n }\n // Config driven behavior flags\n let future = _extends({\n v7_relativeSplatPath: false,\n v7_throwAbortReason: false\n }, opts ? opts.future : null);\n let dataRoutes = convertRoutesToDataRoutes(routes, mapRouteProperties, undefined, manifest);\n /**\n * The query() method is intended for document requests, in which we want to\n * call an optional action and potentially multiple loaders for all nested\n * routes. It returns a StaticHandlerContext object, which is very similar\n * to the router state (location, loaderData, actionData, errors, etc.) and\n * also adds SSR-specific information such as the statusCode and headers\n * from action/loaders Responses.\n *\n * It _should_ never throw and should report all errors through the\n * returned context.errors object, properly associating errors to their error\n * boundary. Additionally, it tracks _deepestRenderedBoundaryId which can be\n * used to emulate React error boundaries during SSr by performing a second\n * pass only down to the boundaryId.\n *\n * The one exception where we do not return a StaticHandlerContext is when a\n * redirect response is returned or thrown from any action/loader. We\n * propagate that out and return the raw Response so the HTTP server can\n * return it directly.\n *\n * - `opts.requestContext` is an optional server context that will be passed\n * to actions/loaders in the `context` parameter\n * - `opts.skipLoaderErrorBubbling` is an optional parameter that will prevent\n * the bubbling of errors which allows single-fetch-type implementations\n * where the client will handle the bubbling and we may need to return data\n * for the handling route\n */\n async function query(request, _temp3) {\n let {\n requestContext,\n skipLoaderErrorBubbling,\n unstable_dataStrategy\n } = _temp3 === void 0 ? {} : _temp3;\n let url = new URL(request.url);\n let method = request.method;\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename);\n // SSR supports HEAD requests while SPA doesn't\n if (!isValidMethod(method) && method !== \"HEAD\") {\n let error = getInternalRouterError(405, {\n method\n });\n let {\n matches: methodNotAllowedMatches,\n route\n } = getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: methodNotAllowedMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n } else if (!matches) {\n let error = getInternalRouterError(404, {\n pathname: location.pathname\n });\n let {\n matches: notFoundMatches,\n route\n } = getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: notFoundMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n }\n let result = await queryImpl(request, location, matches, requestContext, unstable_dataStrategy || null, skipLoaderErrorBubbling === true, null);\n if (isResponse(result)) {\n return result;\n }\n // When returning StaticHandlerContext, we patch back in the location here\n // since we need it for React Context. But this helps keep our submit and\n // loadRouteData operating on a Request instead of a Location\n return _extends({\n location,\n basename\n }, result);\n }\n /**\n * The queryRoute() method is intended for targeted route requests, either\n * for fetch ?_data requests or resource route requests. In this case, we\n * are only ever calling a single action or loader, and we are returning the\n * returned value directly. In most cases, this will be a Response returned\n * from the action/loader, but it may be a primitive or other value as well -\n * and in such cases the calling context should handle that accordingly.\n *\n * We do respect the throw/return differentiation, so if an action/loader\n * throws, then this method will throw the value. This is important so we\n * can do proper boundary identification in Remix where a thrown Response\n * must go to the Catch Boundary but a returned Response is happy-path.\n *\n * One thing to note is that any Router-initiated Errors that make sense\n * to associate with a status code will be thrown as an ErrorResponse\n * instance which include the raw Error, such that the calling context can\n * serialize the error as they see fit while including the proper response\n * code. Examples here are 404 and 405 errors that occur prior to reaching\n * any user-defined loaders.\n *\n * - `opts.routeId` allows you to specify the specific route handler to call.\n * If not provided the handler will determine the proper route by matching\n * against `request.url`\n * - `opts.requestContext` is an optional server context that will be passed\n * to actions/loaders in the `context` parameter\n */\n async function queryRoute(request, _temp4) {\n let {\n routeId,\n requestContext,\n unstable_dataStrategy\n } = _temp4 === void 0 ? {} : _temp4;\n let url = new URL(request.url);\n let method = request.method;\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename);\n // SSR supports HEAD requests while SPA doesn't\n if (!isValidMethod(method) && method !== \"HEAD\" && method !== \"OPTIONS\") {\n throw getInternalRouterError(405, {\n method\n });\n } else if (!matches) {\n throw getInternalRouterError(404, {\n pathname: location.pathname\n });\n }\n let match = routeId ? matches.find(m => m.route.id === routeId) : getTargetMatch(matches, location);\n if (routeId && !match) {\n throw getInternalRouterError(403, {\n pathname: location.pathname,\n routeId\n });\n } else if (!match) {\n // This should never hit I don't think?\n throw getInternalRouterError(404, {\n pathname: location.pathname\n });\n }\n let result = await queryImpl(request, location, matches, requestContext, unstable_dataStrategy || null, false, match);\n if (isResponse(result)) {\n return result;\n }\n let error = result.errors ? Object.values(result.errors)[0] : undefined;\n if (error !== undefined) {\n // If we got back result.errors, that means the loader/action threw\n // _something_ that wasn't a Response, but it's not guaranteed/required\n // to be an `instanceof Error` either, so we have to use throw here to\n // preserve the \"error\" state outside of queryImpl.\n throw error;\n }\n // Pick off the right state value to return\n if (result.actionData) {\n return Object.values(result.actionData)[0];\n }\n if (result.loaderData) {\n var _result$activeDeferre;\n let data = Object.values(result.loaderData)[0];\n if ((_result$activeDeferre = result.activeDeferreds) != null && _result$activeDeferre[match.route.id]) {\n data[UNSAFE_DEFERRED_SYMBOL] = result.activeDeferreds[match.route.id];\n }\n return data;\n }\n return undefined;\n }\n async function queryImpl(request, location, matches, requestContext, unstable_dataStrategy, skipLoaderErrorBubbling, routeMatch) {\n invariant(request.signal, \"query()/queryRoute() requests must contain an AbortController signal\");\n try {\n if (isMutationMethod(request.method.toLowerCase())) {\n let result = await submit(request, matches, routeMatch || getTargetMatch(matches, location), requestContext, unstable_dataStrategy, skipLoaderErrorBubbling, routeMatch != null);\n return result;\n }\n let result = await loadRouteData(request, matches, requestContext, unstable_dataStrategy, skipLoaderErrorBubbling, routeMatch);\n return isResponse(result) ? result : _extends({}, result, {\n actionData: null,\n actionHeaders: {}\n });\n } catch (e) {\n // If the user threw/returned a Response in callLoaderOrAction for a\n // `queryRoute` call, we throw the `HandlerResult` to bail out early\n // and then return or throw the raw Response here accordingly\n if (isHandlerResult(e) && isResponse(e.result)) {\n if (e.type === ResultType.error) {\n throw e.result;\n }\n return e.result;\n }\n // Redirects are always returned since they don't propagate to catch\n // boundaries\n if (isRedirectResponse(e)) {\n return e;\n }\n throw e;\n }\n }\n async function submit(request, matches, actionMatch, requestContext, unstable_dataStrategy, skipLoaderErrorBubbling, isRouteRequest) {\n let result;\n if (!actionMatch.route.action && !actionMatch.route.lazy) {\n let error = getInternalRouterError(405, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: actionMatch.route.id\n });\n if (isRouteRequest) {\n throw error;\n }\n result = {\n type: ResultType.error,\n error\n };\n } else {\n let results = await callDataStrategy(\"action\", request, [actionMatch], matches, isRouteRequest, requestContext, unstable_dataStrategy);\n result = results[0];\n if (request.signal.aborted) {\n throwStaticHandlerAbortedError(request, isRouteRequest, future);\n }\n }\n if (isRedirectResult(result)) {\n // Uhhhh - this should never happen, we should always throw these from\n // callLoaderOrAction, but the type narrowing here keeps TS happy and we\n // can get back on the \"throw all redirect responses\" train here should\n // this ever happen :/\n throw new Response(null, {\n status: result.response.status,\n headers: {\n Location: result.response.headers.get(\"Location\")\n }\n });\n }\n if (isDeferredResult(result)) {\n let error = getInternalRouterError(400, {\n type: \"defer-action\"\n });\n if (isRouteRequest) {\n throw error;\n }\n result = {\n type: ResultType.error,\n error\n };\n }\n if (isRouteRequest) {\n // Note: This should only be non-Response values if we get here, since\n // isRouteRequest should throw any Response received in callLoaderOrAction\n if (isErrorResult(result)) {\n throw result.error;\n }\n return {\n matches: [actionMatch],\n loaderData: {},\n actionData: {\n [actionMatch.route.id]: result.data\n },\n errors: null,\n // Note: statusCode + headers are unused here since queryRoute will\n // return the raw Response or value\n statusCode: 200,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n }\n // Create a GET request for the loaders\n let loaderRequest = new Request(request.url, {\n headers: request.headers,\n redirect: request.redirect,\n signal: request.signal\n });\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = skipLoaderErrorBubbling ? actionMatch : findNearestBoundary(matches, actionMatch.route.id);\n let context = await loadRouteData(loaderRequest, matches, requestContext, unstable_dataStrategy, skipLoaderErrorBubbling, null, [boundaryMatch.route.id, result]);\n // action status codes take precedence over loader status codes\n return _extends({}, context, {\n statusCode: isRouteErrorResponse(result.error) ? result.error.status : result.statusCode != null ? result.statusCode : 500,\n actionData: null,\n actionHeaders: _extends({}, result.headers ? {\n [actionMatch.route.id]: result.headers\n } : {})\n });\n }\n let context = await loadRouteData(loaderRequest, matches, requestContext, unstable_dataStrategy, skipLoaderErrorBubbling, null);\n return _extends({}, context, {\n actionData: {\n [actionMatch.route.id]: result.data\n }\n }, result.statusCode ? {\n statusCode: result.statusCode\n } : {}, {\n actionHeaders: result.headers ? {\n [actionMatch.route.id]: result.headers\n } : {}\n });\n }\n async function loadRouteData(request, matches, requestContext, unstable_dataStrategy, skipLoaderErrorBubbling, routeMatch, pendingActionResult) {\n let isRouteRequest = routeMatch != null;\n // Short circuit if we have no loaders to run (queryRoute())\n if (isRouteRequest && !(routeMatch != null && routeMatch.route.loader) && !(routeMatch != null && routeMatch.route.lazy)) {\n throw getInternalRouterError(400, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: routeMatch == null ? void 0 : routeMatch.route.id\n });\n }\n let requestMatches = routeMatch ? [routeMatch] : pendingActionResult && isErrorResult(pendingActionResult[1]) ? getLoaderMatchesUntilBoundary(matches, pendingActionResult[0]) : matches;\n let matchesToLoad = requestMatches.filter(m => m.route.loader || m.route.lazy);\n // Short circuit if we have no loaders to run (query())\n if (matchesToLoad.length === 0) {\n return {\n matches,\n // Add a null for all matched routes for proper revalidation on the client\n loaderData: matches.reduce((acc, m) => Object.assign(acc, {\n [m.route.id]: null\n }), {}),\n errors: pendingActionResult && isErrorResult(pendingActionResult[1]) ? {\n [pendingActionResult[0]]: pendingActionResult[1].error\n } : null,\n statusCode: 200,\n loaderHeaders: {},\n activeDeferreds: null\n };\n }\n let results = await callDataStrategy(\"loader\", request, matchesToLoad, matches, isRouteRequest, requestContext, unstable_dataStrategy);\n if (request.signal.aborted) {\n throwStaticHandlerAbortedError(request, isRouteRequest, future);\n }\n // Process and commit output from loaders\n let activeDeferreds = new Map();\n let context = processRouteLoaderData(matches, matchesToLoad, results, pendingActionResult, activeDeferreds, skipLoaderErrorBubbling);\n // Add a null for any non-loader matches for proper revalidation on the client\n let executedLoaders = new Set(matchesToLoad.map(match => match.route.id));\n matches.forEach(match => {\n if (!executedLoaders.has(match.route.id)) {\n context.loaderData[match.route.id] = null;\n }\n });\n return _extends({}, context, {\n matches,\n activeDeferreds: activeDeferreds.size > 0 ? Object.fromEntries(activeDeferreds.entries()) : null\n });\n }\n // Utility wrapper for calling dataStrategy server-side without having to\n // pass around the manifest, mapRouteProperties, etc.\n async function callDataStrategy(type, request, matchesToLoad, matches, isRouteRequest, requestContext, unstable_dataStrategy) {\n let results = await callDataStrategyImpl(unstable_dataStrategy || defaultDataStrategy, type, request, matchesToLoad, matches, manifest, mapRouteProperties, requestContext);\n return await Promise.all(results.map((result, i) => {\n if (isRedirectHandlerResult(result)) {\n let response = result.result;\n // Throw redirects and let the server handle them with an HTTP redirect\n throw normalizeRelativeRoutingRedirectResponse(response, request, matchesToLoad[i].route.id, matches, basename, future.v7_relativeSplatPath);\n }\n if (isResponse(result.result) && isRouteRequest) {\n // For SSR single-route requests, we want to hand Responses back\n // directly without unwrapping\n throw result;\n }\n return convertHandlerResultToDataResult(result);\n }));\n }\n return {\n dataRoutes,\n query,\n queryRoute\n };\n}\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region Helpers\n////////////////////////////////////////////////////////////////////////////////\n/**\n * Given an existing StaticHandlerContext and an error thrown at render time,\n * provide an updated StaticHandlerContext suitable for a second SSR render\n */\nfunction getStaticContextFromError(routes, context, error) {\n let newContext = _extends({}, context, {\n statusCode: isRouteErrorResponse(error) ? error.status : 500,\n errors: {\n [context._deepestRenderedBoundaryId || routes[0].id]: error\n }\n });\n return newContext;\n}\nfunction throwStaticHandlerAbortedError(request, isRouteRequest, future) {\n if (future.v7_throwAbortReason && request.signal.reason !== undefined) {\n throw request.signal.reason;\n }\n let method = isRouteRequest ? \"queryRoute\" : \"query\";\n throw new Error(method + \"() call aborted: \" + request.method + \" \" + request.url);\n}\nfunction isSubmissionNavigation(opts) {\n return opts != null && (\"formData\" in opts && opts.formData != null || \"body\" in opts && opts.body !== undefined);\n}\nfunction normalizeTo(location, matches, basename, prependBasename, to, v7_relativeSplatPath, fromRouteId, relative) {\n let contextualMatches;\n let activeRouteMatch;\n if (fromRouteId) {\n // Grab matches up to the calling route so our route-relative logic is\n // relative to the correct source route\n contextualMatches = [];\n for (let match of matches) {\n contextualMatches.push(match);\n if (match.route.id === fromRouteId) {\n activeRouteMatch = match;\n break;\n }\n }\n } else {\n contextualMatches = matches;\n activeRouteMatch = matches[matches.length - 1];\n }\n // Resolve the relative path\n let path = resolveTo(to ? to : \".\", getResolveToMatches(contextualMatches, v7_relativeSplatPath), stripBasename(location.pathname, basename) || location.pathname, relative === \"path\");\n // When `to` is not specified we inherit search/hash from the current\n // location, unlike when to=\".\" and we just inherit the path.\n // See https://github.com/remix-run/remix/issues/927\n if (to == null) {\n path.search = location.search;\n path.hash = location.hash;\n }\n // Add an ?index param for matched index routes if we don't already have one\n if ((to == null || to === \"\" || to === \".\") && activeRouteMatch && activeRouteMatch.route.index && !hasNakedIndexQuery(path.search)) {\n path.search = path.search ? path.search.replace(/^\\?/, \"?index&\") : \"?index\";\n }\n // If we're operating within a basename, prepend it to the pathname. If\n // this is a root navigation, then just use the raw basename which allows\n // the basename to have full control over the presence of a trailing slash\n // on root actions\n if (prependBasename && basename !== \"/\") {\n path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n }\n return createPath(path);\n}\n// Normalize navigation options by converting formMethod=GET formData objects to\n// URLSearchParams so they behave identically to links with query params\nfunction normalizeNavigateOptions(normalizeFormMethod, isFetcher, path, opts) {\n // Return location verbatim on non-submission navigations\n if (!opts || !isSubmissionNavigation(opts)) {\n return {\n path\n };\n }\n if (opts.formMethod && !isValidMethod(opts.formMethod)) {\n return {\n path,\n error: getInternalRouterError(405, {\n method: opts.formMethod\n })\n };\n }\n let getInvalidBodyError = () => ({\n path,\n error: getInternalRouterError(400, {\n type: \"invalid-body\"\n })\n });\n // Create a Submission on non-GET navigations\n let rawFormMethod = opts.formMethod || \"get\";\n let formMethod = normalizeFormMethod ? rawFormMethod.toUpperCase() : rawFormMethod.toLowerCase();\n let formAction = stripHashFromPath(path);\n if (opts.body !== undefined) {\n if (opts.formEncType === \"text/plain\") {\n // text only support POST/PUT/PATCH/DELETE submissions\n if (!isMutationMethod(formMethod)) {\n return getInvalidBodyError();\n }\n let text = typeof opts.body === \"string\" ? opts.body : opts.body instanceof FormData || opts.body instanceof URLSearchParams ?\n // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#plain-text-form-data\n Array.from(opts.body.entries()).reduce((acc, _ref5) => {\n let [name, value] = _ref5;\n return \"\" + acc + name + \"=\" + value + \"\\n\";\n }, \"\") : String(opts.body);\n return {\n path,\n submission: {\n formMethod,\n formAction,\n formEncType: opts.formEncType,\n formData: undefined,\n json: undefined,\n text\n }\n };\n } else if (opts.formEncType === \"application/json\") {\n // json only supports POST/PUT/PATCH/DELETE submissions\n if (!isMutationMethod(formMethod)) {\n return getInvalidBodyError();\n }\n try {\n let json = typeof opts.body === \"string\" ? JSON.parse(opts.body) : opts.body;\n return {\n path,\n submission: {\n formMethod,\n formAction,\n formEncType: opts.formEncType,\n formData: undefined,\n json,\n text: undefined\n }\n };\n } catch (e) {\n return getInvalidBodyError();\n }\n }\n }\n invariant(typeof FormData === \"function\", \"FormData is not available in this environment\");\n let searchParams;\n let formData;\n if (opts.formData) {\n searchParams = convertFormDataToSearchParams(opts.formData);\n formData = opts.formData;\n } else if (opts.body instanceof FormData) {\n searchParams = convertFormDataToSearchParams(opts.body);\n formData = opts.body;\n } else if (opts.body instanceof URLSearchParams) {\n searchParams = opts.body;\n formData = convertSearchParamsToFormData(searchParams);\n } else if (opts.body == null) {\n searchParams = new URLSearchParams();\n formData = new FormData();\n } else {\n try {\n searchParams = new URLSearchParams(opts.body);\n formData = convertSearchParamsToFormData(searchParams);\n } catch (e) {\n return getInvalidBodyError();\n }\n }\n let submission = {\n formMethod,\n formAction,\n formEncType: opts && opts.formEncType || \"application/x-www-form-urlencoded\",\n formData,\n json: undefined,\n text: undefined\n };\n if (isMutationMethod(submission.formMethod)) {\n return {\n path,\n submission\n };\n }\n // Flatten submission onto URLSearchParams for GET submissions\n let parsedPath = parsePath(path);\n // On GET navigation submissions we can drop the ?index param from the\n // resulting location since all loaders will run. But fetcher GET submissions\n // only run a single loader so we need to preserve any incoming ?index params\n if (isFetcher && parsedPath.search && hasNakedIndexQuery(parsedPath.search)) {\n searchParams.append(\"index\", \"\");\n }\n parsedPath.search = \"?\" + searchParams;\n return {\n path: createPath(parsedPath),\n submission\n };\n}\n// Filter out all routes below any caught error as they aren't going to\n// render so we don't need to load them\nfunction getLoaderMatchesUntilBoundary(matches, boundaryId) {\n let boundaryMatches = matches;\n if (boundaryId) {\n let index = matches.findIndex(m => m.route.id === boundaryId);\n if (index >= 0) {\n boundaryMatches = matches.slice(0, index);\n }\n }\n return boundaryMatches;\n}\nfunction getMatchesToLoad(history, state, matches, submission, location, isInitialLoad, skipActionErrorRevalidation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, pendingActionResult) {\n let actionResult = pendingActionResult ? isErrorResult(pendingActionResult[1]) ? pendingActionResult[1].error : pendingActionResult[1].data : undefined;\n let currentUrl = history.createURL(state.location);\n let nextUrl = history.createURL(location);\n // Pick navigation matches that are net-new or qualify for revalidation\n let boundaryId = pendingActionResult && isErrorResult(pendingActionResult[1]) ? pendingActionResult[0] : undefined;\n let boundaryMatches = boundaryId ? getLoaderMatchesUntilBoundary(matches, boundaryId) : matches;\n // Don't revalidate loaders by default after action 4xx/5xx responses\n // when the flag is enabled. They can still opt-into revalidation via\n // `shouldRevalidate` via `actionResult`\n let actionStatus = pendingActionResult ? pendingActionResult[1].statusCode : undefined;\n let shouldSkipRevalidation = skipActionErrorRevalidation && actionStatus && actionStatus >= 400;\n let navigationMatches = boundaryMatches.filter((match, index) => {\n let {\n route\n } = match;\n if (route.lazy) {\n // We haven't loaded this route yet so we don't know if it's got a loader!\n return true;\n }\n if (route.loader == null) {\n return false;\n }\n if (isInitialLoad) {\n if (typeof route.loader !== \"function\" || route.loader.hydrate) {\n return true;\n }\n return state.loaderData[route.id] === undefined && (\n // Don't re-run if the loader ran and threw an error\n !state.errors || state.errors[route.id] === undefined);\n }\n // Always call the loader on new route instances and pending defer cancellations\n if (isNewLoader(state.loaderData, state.matches[index], match) || cancelledDeferredRoutes.some(id => id === match.route.id)) {\n return true;\n }\n // This is the default implementation for when we revalidate. If the route\n // provides it's own implementation, then we give them full control but\n // provide this value so they can leverage it if needed after they check\n // their own specific use cases\n let currentRouteMatch = state.matches[index];\n let nextRouteMatch = match;\n return shouldRevalidateLoader(match, _extends({\n currentUrl,\n currentParams: currentRouteMatch.params,\n nextUrl,\n nextParams: nextRouteMatch.params\n }, submission, {\n actionResult,\n actionStatus,\n defaultShouldRevalidate: shouldSkipRevalidation ? false :\n // Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate\n isRevalidationRequired || currentUrl.pathname + currentUrl.search === nextUrl.pathname + nextUrl.search ||\n // Search params affect all loaders\n currentUrl.search !== nextUrl.search || isNewRouteInstance(currentRouteMatch, nextRouteMatch)\n }));\n });\n // Pick fetcher.loads that need to be revalidated\n let revalidatingFetchers = [];\n fetchLoadMatches.forEach((f, key) => {\n // Don't revalidate:\n // - on initial load (shouldn't be any fetchers then anyway)\n // - if fetcher won't be present in the subsequent render\n // - no longer matches the URL (v7_fetcherPersist=false)\n // - was unmounted but persisted due to v7_fetcherPersist=true\n if (isInitialLoad || !matches.some(m => m.route.id === f.routeId) || deletedFetchers.has(key)) {\n return;\n }\n let fetcherMatches = matchRoutes(routesToUse, f.path, basename);\n // If the fetcher path no longer matches, push it in with null matches so\n // we can trigger a 404 in callLoadersAndMaybeResolveData. Note this is\n // currently only a use-case for Remix HMR where the route tree can change\n // at runtime and remove a route previously loaded via a fetcher\n if (!fetcherMatches) {\n revalidatingFetchers.push({\n key,\n routeId: f.routeId,\n path: f.path,\n matches: null,\n match: null,\n controller: null\n });\n return;\n }\n // Revalidating fetchers are decoupled from the route matches since they\n // load from a static href. They revalidate based on explicit revalidation\n // (submission, useRevalidator, or X-Remix-Revalidate)\n let fetcher = state.fetchers.get(key);\n let fetcherMatch = getTargetMatch(fetcherMatches, f.path);\n let shouldRevalidate = false;\n if (fetchRedirectIds.has(key)) {\n // Never trigger a revalidation of an actively redirecting fetcher\n shouldRevalidate = false;\n } else if (cancelledFetcherLoads.has(key)) {\n // Always mark for revalidation if the fetcher was cancelled\n cancelledFetcherLoads.delete(key);\n shouldRevalidate = true;\n } else if (fetcher && fetcher.state !== \"idle\" && fetcher.data === undefined) {\n // If the fetcher hasn't ever completed loading yet, then this isn't a\n // revalidation, it would just be a brand new load if an explicit\n // revalidation is required\n shouldRevalidate = isRevalidationRequired;\n } else {\n // Otherwise fall back on any user-defined shouldRevalidate, defaulting\n // to explicit revalidations only\n shouldRevalidate = shouldRevalidateLoader(fetcherMatch, _extends({\n currentUrl,\n currentParams: state.matches[state.matches.length - 1].params,\n nextUrl,\n nextParams: matches[matches.length - 1].params\n }, submission, {\n actionResult,\n actionStatus,\n defaultShouldRevalidate: shouldSkipRevalidation ? false : isRevalidationRequired\n }));\n }\n if (shouldRevalidate) {\n revalidatingFetchers.push({\n key,\n routeId: f.routeId,\n path: f.path,\n matches: fetcherMatches,\n match: fetcherMatch,\n controller: new AbortController()\n });\n }\n });\n return [navigationMatches, revalidatingFetchers];\n}\nfunction isNewLoader(currentLoaderData, currentMatch, match) {\n let isNew =\n // [a] -> [a, b]\n !currentMatch ||\n // [a, b] -> [a, c]\n match.route.id !== currentMatch.route.id;\n // Handle the case that we don't have data for a re-used route, potentially\n // from a prior error or from a cancelled pending deferred\n let isMissingData = currentLoaderData[match.route.id] === undefined;\n // Always load if this is a net-new route or we don't yet have data\n return isNew || isMissingData;\n}\nfunction isNewRouteInstance(currentMatch, match) {\n let currentPath = currentMatch.route.path;\n return (\n // param change for this match, /users/123 -> /users/456\n currentMatch.pathname !== match.pathname ||\n // splat param changed, which is not present in match.path\n // e.g. /files/images/avatar.jpg -> files/finances.xls\n currentPath != null && currentPath.endsWith(\"*\") && currentMatch.params[\"*\"] !== match.params[\"*\"]\n );\n}\nfunction shouldRevalidateLoader(loaderMatch, arg) {\n if (loaderMatch.route.shouldRevalidate) {\n let routeChoice = loaderMatch.route.shouldRevalidate(arg);\n if (typeof routeChoice === \"boolean\") {\n return routeChoice;\n }\n }\n return arg.defaultShouldRevalidate;\n}\n/**\n * Idempotent utility to execute patchRoutesOnNavigation() to lazily load route\n * definitions and update the routes/routeManifest\n */\nasync function loadLazyRouteChildren(patchRoutesOnNavigationImpl, path, matches, routes, manifest, mapRouteProperties, pendingRouteChildren, signal) {\n let key = [path, ...matches.map(m => m.route.id)].join(\"-\");\n try {\n let pending = pendingRouteChildren.get(key);\n if (!pending) {\n pending = patchRoutesOnNavigationImpl({\n path,\n matches,\n patch: (routeId, children) => {\n if (!signal.aborted) {\n patchRoutesImpl(routeId, children, routes, manifest, mapRouteProperties);\n }\n }\n });\n pendingRouteChildren.set(key, pending);\n }\n if (pending && isPromise(pending)) {\n await pending;\n }\n } finally {\n pendingRouteChildren.delete(key);\n }\n}\nfunction patchRoutesImpl(routeId, children, routesToUse, manifest, mapRouteProperties) {\n if (routeId) {\n var _route$children;\n let route = manifest[routeId];\n invariant(route, \"No route found to patch children into: routeId = \" + routeId);\n let dataChildren = convertRoutesToDataRoutes(children, mapRouteProperties, [routeId, \"patch\", String(((_route$children = route.children) == null ? void 0 : _route$children.length) || \"0\")], manifest);\n if (route.children) {\n route.children.push(...dataChildren);\n } else {\n route.children = dataChildren;\n }\n } else {\n let dataChildren = convertRoutesToDataRoutes(children, mapRouteProperties, [\"patch\", String(routesToUse.length || \"0\")], manifest);\n routesToUse.push(...dataChildren);\n }\n}\n/**\n * Execute route.lazy() methods to lazily load route modules (loader, action,\n * shouldRevalidate) and update the routeManifest in place which shares objects\n * with dataRoutes so those get updated as well.\n */\nasync function loadLazyRouteModule(route, mapRouteProperties, manifest) {\n if (!route.lazy) {\n return;\n }\n let lazyRoute = await route.lazy();\n // If the lazy route function was executed and removed by another parallel\n // call then we can return - first lazy() to finish wins because the return\n // value of lazy is expected to be static\n if (!route.lazy) {\n return;\n }\n let routeToUpdate = manifest[route.id];\n invariant(routeToUpdate, \"No route found in manifest\");\n // Update the route in place. This should be safe because there's no way\n // we could yet be sitting on this route as we can't get there without\n // resolving lazy() first.\n //\n // This is different than the HMR \"update\" use-case where we may actively be\n // on the route being updated. The main concern boils down to \"does this\n // mutation affect any ongoing navigations or any current state.matches\n // values?\". If not, it should be safe to update in place.\n let routeUpdates = {};\n for (let lazyRouteProperty in lazyRoute) {\n let staticRouteValue = routeToUpdate[lazyRouteProperty];\n let isPropertyStaticallyDefined = staticRouteValue !== undefined &&\n // This property isn't static since it should always be updated based\n // on the route updates\n lazyRouteProperty !== \"hasErrorBoundary\";\n warning(!isPropertyStaticallyDefined, \"Route \\\"\" + routeToUpdate.id + \"\\\" has a static property \\\"\" + lazyRouteProperty + \"\\\" \" + \"defined but its lazy function is also returning a value for this property. \" + (\"The lazy route property \\\"\" + lazyRouteProperty + \"\\\" will be ignored.\"));\n if (!isPropertyStaticallyDefined && !immutableRouteKeys.has(lazyRouteProperty)) {\n routeUpdates[lazyRouteProperty] = lazyRoute[lazyRouteProperty];\n }\n }\n // Mutate the route with the provided updates. Do this first so we pass\n // the updated version to mapRouteProperties\n Object.assign(routeToUpdate, routeUpdates);\n // Mutate the `hasErrorBoundary` property on the route based on the route\n // updates and remove the `lazy` function so we don't resolve the lazy\n // route again.\n Object.assign(routeToUpdate, _extends({}, mapRouteProperties(routeToUpdate), {\n lazy: undefined\n }));\n}\n// Default implementation of `dataStrategy` which fetches all loaders in parallel\nfunction defaultDataStrategy(opts) {\n return Promise.all(opts.matches.map(m => m.resolve()));\n}\nasync function callDataStrategyImpl(dataStrategyImpl, type, request, matchesToLoad, matches, manifest, mapRouteProperties, requestContext) {\n let routeIdsToLoad = matchesToLoad.reduce((acc, m) => acc.add(m.route.id), new Set());\n let loadedMatches = new Set();\n // Send all matches here to allow for a middleware-type implementation.\n // handler will be a no-op for unneeded routes and we filter those results\n // back out below.\n let results = await dataStrategyImpl({\n matches: matches.map(match => {\n let shouldLoad = routeIdsToLoad.has(match.route.id);\n // `resolve` encapsulates the route.lazy, executing the\n // loader/action, and mapping return values/thrown errors to a\n // HandlerResult. Users can pass a callback to take fine-grained control\n // over the execution of the loader/action\n let resolve = handlerOverride => {\n loadedMatches.add(match.route.id);\n return shouldLoad ? callLoaderOrAction(type, request, match, manifest, mapRouteProperties, handlerOverride, requestContext) : Promise.resolve({\n type: ResultType.data,\n result: undefined\n });\n };\n return _extends({}, match, {\n shouldLoad,\n resolve\n });\n }),\n request,\n params: matches[0].params,\n context: requestContext\n });\n // Throw if any loadRoute implementations not called since they are what\n // ensures a route is fully loaded\n matches.forEach(m => invariant(loadedMatches.has(m.route.id), \"`match.resolve()` was not called for route id \\\"\" + m.route.id + \"\\\". \" + \"You must call `match.resolve()` on every match passed to \" + \"`dataStrategy` to ensure all routes are properly loaded.\"));\n // Filter out any middleware-only matches for which we didn't need to run handlers\n return results.filter((_, i) => routeIdsToLoad.has(matches[i].route.id));\n}\n// Default logic for calling a loader/action is the user has no specified a dataStrategy\nasync function callLoaderOrAction(type, request, match, manifest, mapRouteProperties, handlerOverride, staticContext) {\n let result;\n let onReject;\n let runHandler = handler => {\n // Setup a promise we can race against so that abort signals short circuit\n let reject;\n // This will never resolve so safe to type it as Promise<HandlerResult> to\n // satisfy the function return value\n let abortPromise = new Promise((_, r) => reject = r);\n onReject = () => reject();\n request.signal.addEventListener(\"abort\", onReject);\n let actualHandler = ctx => {\n if (typeof handler !== \"function\") {\n return Promise.reject(new Error(\"You cannot call the handler for a route which defines a boolean \" + (\"\\\"\" + type + \"\\\" [routeId: \" + match.route.id + \"]\")));\n }\n return handler({\n request,\n params: match.params,\n context: staticContext\n }, ...(ctx !== undefined ? [ctx] : []));\n };\n let handlerPromise;\n if (handlerOverride) {\n handlerPromise = handlerOverride(ctx => actualHandler(ctx));\n } else {\n handlerPromise = (async () => {\n try {\n let val = await actualHandler();\n return {\n type: \"data\",\n result: val\n };\n } catch (e) {\n return {\n type: \"error\",\n result: e\n };\n }\n })();\n }\n return Promise.race([handlerPromise, abortPromise]);\n };\n try {\n let handler = match.route[type];\n if (match.route.lazy) {\n if (handler) {\n // Run statically defined handler in parallel with lazy()\n let handlerError;\n let [value] = await Promise.all([\n // If the handler throws, don't let it immediately bubble out,\n // since we need to let the lazy() execution finish so we know if this\n // route has a boundary that can handle the error\n runHandler(handler).catch(e => {\n handlerError = e;\n }), loadLazyRouteModule(match.route, mapRouteProperties, manifest)]);\n if (handlerError !== undefined) {\n throw handlerError;\n }\n result = value;\n } else {\n // Load lazy route module, then run any returned handler\n await loadLazyRouteModule(match.route, mapRouteProperties, manifest);\n handler = match.route[type];\n if (handler) {\n // Handler still runs even if we got interrupted to maintain consistency\n // with un-abortable behavior of handler execution on non-lazy or\n // previously-lazy-loaded routes\n result = await runHandler(handler);\n } else if (type === \"action\") {\n let url = new URL(request.url);\n let pathname = url.pathname + url.search;\n throw getInternalRouterError(405, {\n method: request.method,\n pathname,\n routeId: match.route.id\n });\n } else {\n // lazy() route has no loader to run. Short circuit here so we don't\n // hit the invariant below that errors on returning undefined.\n return {\n type: ResultType.data,\n result: undefined\n };\n }\n }\n } else if (!handler) {\n let url = new URL(request.url);\n let pathname = url.pathname + url.search;\n throw getInternalRouterError(404, {\n pathname\n });\n } else {\n result = await runHandler(handler);\n }\n invariant(result.result !== undefined, \"You defined \" + (type === \"action\" ? \"an action\" : \"a loader\") + \" for route \" + (\"\\\"\" + match.route.id + \"\\\" but didn't return anything from your `\" + type + \"` \") + \"function. Please return a value or `null`.\");\n } catch (e) {\n // We should already be catching and converting normal handler executions to\n // HandlerResults and returning them, so anything that throws here is an\n // unexpected error we still need to wrap\n return {\n type: ResultType.error,\n result: e\n };\n } finally {\n if (onReject) {\n request.signal.removeEventListener(\"abort\", onReject);\n }\n }\n return result;\n}\nasync function convertHandlerResultToDataResult(handlerResult) {\n let {\n result,\n type\n } = handlerResult;\n if (isResponse(result)) {\n let data;\n try {\n let contentType = result.headers.get(\"Content-Type\");\n // Check between word boundaries instead of startsWith() due to the last\n // paragraph of https://httpwg.org/specs/rfc9110.html#field.content-type\n if (contentType && /\\bapplication\\/json\\b/.test(contentType)) {\n if (result.body == null) {\n data = null;\n } else {\n data = await result.json();\n }\n } else {\n data = await result.text();\n }\n } catch (e) {\n return {\n type: ResultType.error,\n error: e\n };\n }\n if (type === ResultType.error) {\n return {\n type: ResultType.error,\n error: new ErrorResponseImpl(result.status, result.statusText, data),\n statusCode: result.status,\n headers: result.headers\n };\n }\n return {\n type: ResultType.data,\n data,\n statusCode: result.status,\n headers: result.headers\n };\n }\n if (type === ResultType.error) {\n if (isDataWithResponseInit(result)) {\n var _result$init2;\n if (result.data instanceof Error) {\n var _result$init;\n return {\n type: ResultType.error,\n error: result.data,\n statusCode: (_result$init = result.init) == null ? void 0 : _result$init.status\n };\n }\n // Convert thrown unstable_data() to ErrorResponse instances\n result = new ErrorResponseImpl(((_result$init2 = result.init) == null ? void 0 : _result$init2.status) || 500, undefined, result.data);\n }\n return {\n type: ResultType.error,\n error: result,\n statusCode: isRouteErrorResponse(result) ? result.status : undefined\n };\n }\n if (isDeferredData(result)) {\n var _result$init3, _result$init4;\n return {\n type: ResultType.deferred,\n deferredData: result,\n statusCode: (_result$init3 = result.init) == null ? void 0 : _result$init3.status,\n headers: ((_result$init4 = result.init) == null ? void 0 : _result$init4.headers) && new Headers(result.init.headers)\n };\n }\n if (isDataWithResponseInit(result)) {\n var _result$init5, _result$init6;\n return {\n type: ResultType.data,\n data: result.data,\n statusCode: (_result$init5 = result.init) == null ? void 0 : _result$init5.status,\n headers: (_result$init6 = result.init) != null && _result$init6.headers ? new Headers(result.init.headers) : undefined\n };\n }\n return {\n type: ResultType.data,\n data: result\n };\n}\n// Support relative routing in internal redirects\nfunction normalizeRelativeRoutingRedirectResponse(response, request, routeId, matches, basename, v7_relativeSplatPath) {\n let location = response.headers.get(\"Location\");\n invariant(location, \"Redirects returned/thrown from loaders/actions must have a Location header\");\n if (!ABSOLUTE_URL_REGEX.test(location)) {\n let trimmedMatches = matches.slice(0, matches.findIndex(m => m.route.id === routeId) + 1);\n location = normalizeTo(new URL(request.url), trimmedMatches, basename, true, location, v7_relativeSplatPath);\n response.headers.set(\"Location\", location);\n }\n return response;\n}\nfunction normalizeRedirectLocation(location, currentUrl, basename) {\n if (ABSOLUTE_URL_REGEX.test(location)) {\n // Strip off the protocol+origin for same-origin + same-basename absolute redirects\n let normalizedLocation = location;\n let url = normalizedLocation.startsWith(\"//\") ? new URL(currentUrl.protocol + normalizedLocation) : new URL(normalizedLocation);\n let isSameBasename = stripBasename(url.pathname, basename) != null;\n if (url.origin === currentUrl.origin && isSameBasename) {\n return url.pathname + url.search + url.hash;\n }\n }\n return location;\n}\n// Utility method for creating the Request instances for loaders/actions during\n// client-side navigations and fetches. During SSR we will always have a\n// Request instance from the static handler (query/queryRoute)\nfunction createClientSideRequest(history, location, signal, submission) {\n let url = history.createURL(stripHashFromPath(location)).toString();\n let init = {\n signal\n };\n if (submission && isMutationMethod(submission.formMethod)) {\n let {\n formMethod,\n formEncType\n } = submission;\n // Didn't think we needed this but it turns out unlike other methods, patch\n // won't be properly normalized to uppercase and results in a 405 error.\n // See: https://fetch.spec.whatwg.org/#concept-method\n init.method = formMethod.toUpperCase();\n if (formEncType === \"application/json\") {\n init.headers = new Headers({\n \"Content-Type\": formEncType\n });\n init.body = JSON.stringify(submission.json);\n } else if (formEncType === \"text/plain\") {\n // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n init.body = submission.text;\n } else if (formEncType === \"application/x-www-form-urlencoded\" && submission.formData) {\n // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n init.body = convertFormDataToSearchParams(submission.formData);\n } else {\n // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n init.body = submission.formData;\n }\n }\n return new Request(url, init);\n}\nfunction convertFormDataToSearchParams(formData) {\n let searchParams = new URLSearchParams();\n for (let [key, value] of formData.entries()) {\n // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#converting-an-entry-list-to-a-list-of-name-value-pairs\n searchParams.append(key, typeof value === \"string\" ? value : value.name);\n }\n return searchParams;\n}\nfunction convertSearchParamsToFormData(searchParams) {\n let formData = new FormData();\n for (let [key, value] of searchParams.entries()) {\n formData.append(key, value);\n }\n return formData;\n}\nfunction processRouteLoaderData(matches, matchesToLoad, results, pendingActionResult, activeDeferreds, skipLoaderErrorBubbling) {\n // Fill in loaderData/errors from our loaders\n let loaderData = {};\n let errors = null;\n let statusCode;\n let foundError = false;\n let loaderHeaders = {};\n let pendingError = pendingActionResult && isErrorResult(pendingActionResult[1]) ? pendingActionResult[1].error : undefined;\n // Process loader results into state.loaderData/state.errors\n results.forEach((result, index) => {\n let id = matchesToLoad[index].route.id;\n invariant(!isRedirectResult(result), \"Cannot handle redirect results in processLoaderData\");\n if (isErrorResult(result)) {\n let error = result.error;\n // If we have a pending action error, we report it at the highest-route\n // that throws a loader error, and then clear it out to indicate that\n // it was consumed\n if (pendingError !== undefined) {\n error = pendingError;\n pendingError = undefined;\n }\n errors = errors || {};\n if (skipLoaderErrorBubbling) {\n errors[id] = error;\n } else {\n // Look upwards from the matched route for the closest ancestor error\n // boundary, defaulting to the root match. Prefer higher error values\n // if lower errors bubble to the same boundary\n let boundaryMatch = findNearestBoundary(matches, id);\n if (errors[boundaryMatch.route.id] == null) {\n errors[boundaryMatch.route.id] = error;\n }\n }\n // Clear our any prior loaderData for the throwing route\n loaderData[id] = undefined;\n // Once we find our first (highest) error, we set the status code and\n // prevent deeper status codes from overriding\n if (!foundError) {\n foundError = true;\n statusCode = isRouteErrorResponse(result.error) ? result.error.status : 500;\n }\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n } else {\n if (isDeferredResult(result)) {\n activeDeferreds.set(id, result.deferredData);\n loaderData[id] = result.deferredData.data;\n // Error status codes always override success status codes, but if all\n // loaders are successful we take the deepest status code.\n if (result.statusCode != null && result.statusCode !== 200 && !foundError) {\n statusCode = result.statusCode;\n }\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n } else {\n loaderData[id] = result.data;\n // Error status codes always override success status codes, but if all\n // loaders are successful we take the deepest status code.\n if (result.statusCode && result.statusCode !== 200 && !foundError) {\n statusCode = result.statusCode;\n }\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n }\n }\n });\n // If we didn't consume the pending action error (i.e., all loaders\n // resolved), then consume it here. Also clear out any loaderData for the\n // throwing route\n if (pendingError !== undefined && pendingActionResult) {\n errors = {\n [pendingActionResult[0]]: pendingError\n };\n loaderData[pendingActionResult[0]] = undefined;\n }\n return {\n loaderData,\n errors,\n statusCode: statusCode || 200,\n loaderHeaders\n };\n}\nfunction processLoaderData(state, matches, matchesToLoad, results, pendingActionResult, revalidatingFetchers, fetcherResults, activeDeferreds) {\n let {\n loaderData,\n errors\n } = processRouteLoaderData(matches, matchesToLoad, results, pendingActionResult, activeDeferreds, false // This method is only called client side so we always want to bubble\n );\n // Process results from our revalidating fetchers\n for (let index = 0; index < revalidatingFetchers.length; index++) {\n let {\n key,\n match,\n controller\n } = revalidatingFetchers[index];\n invariant(fetcherResults !== undefined && fetcherResults[index] !== undefined, \"Did not find corresponding fetcher result\");\n let result = fetcherResults[index];\n // Process fetcher non-redirect errors\n if (controller && controller.signal.aborted) {\n // Nothing to do for aborted fetchers\n continue;\n } else if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(state.matches, match == null ? void 0 : match.route.id);\n if (!(errors && errors[boundaryMatch.route.id])) {\n errors = _extends({}, errors, {\n [boundaryMatch.route.id]: result.error\n });\n }\n state.fetchers.delete(key);\n } else if (isRedirectResult(result)) {\n // Should never get here, redirects should get processed above, but we\n // keep this to type narrow to a success result in the else\n invariant(false, \"Unhandled fetcher revalidation redirect\");\n } else if (isDeferredResult(result)) {\n // Should never get here, deferred data should be awaited for fetchers\n // in resolveDeferredResults\n invariant(false, \"Unhandled fetcher deferred data\");\n } else {\n let doneFetcher = getDoneFetcher(result.data);\n state.fetchers.set(key, doneFetcher);\n }\n }\n return {\n loaderData,\n errors\n };\n}\nfunction mergeLoaderData(loaderData, newLoaderData, matches, errors) {\n let mergedLoaderData = _extends({}, newLoaderData);\n for (let match of matches) {\n let id = match.route.id;\n if (newLoaderData.hasOwnProperty(id)) {\n if (newLoaderData[id] !== undefined) {\n mergedLoaderData[id] = newLoaderData[id];\n }\n } else if (loaderData[id] !== undefined && match.route.loader) {\n // Preserve existing keys not included in newLoaderData and where a loader\n // wasn't removed by HMR\n mergedLoaderData[id] = loaderData[id];\n }\n if (errors && errors.hasOwnProperty(id)) {\n // Don't keep any loader data below the boundary\n break;\n }\n }\n return mergedLoaderData;\n}\nfunction getActionDataForCommit(pendingActionResult) {\n if (!pendingActionResult) {\n return {};\n }\n return isErrorResult(pendingActionResult[1]) ? {\n // Clear out prior actionData on errors\n actionData: {}\n } : {\n actionData: {\n [pendingActionResult[0]]: pendingActionResult[1].data\n }\n };\n}\n// Find the nearest error boundary, looking upwards from the leaf route (or the\n// route specified by routeId) for the closest ancestor error boundary,\n// defaulting to the root match\nfunction findNearestBoundary(matches, routeId) {\n let eligibleMatches = routeId ? matches.slice(0, matches.findIndex(m => m.route.id === routeId) + 1) : [...matches];\n return eligibleMatches.reverse().find(m => m.route.hasErrorBoundary === true) || matches[0];\n}\nfunction getShortCircuitMatches(routes) {\n // Prefer a root layout route if present, otherwise shim in a route object\n let route = routes.length === 1 ? routes[0] : routes.find(r => r.index || !r.path || r.path === \"/\") || {\n id: \"__shim-error-route__\"\n };\n return {\n matches: [{\n params: {},\n pathname: \"\",\n pathnameBase: \"\",\n route\n }],\n route\n };\n}\nfunction getInternalRouterError(status, _temp5) {\n let {\n pathname,\n routeId,\n method,\n type,\n message\n } = _temp5 === void 0 ? {} : _temp5;\n let statusText = \"Unknown Server Error\";\n let errorMessage = \"Unknown @remix-run/router error\";\n if (status === 400) {\n statusText = \"Bad Request\";\n if (type === \"route-discovery\") {\n errorMessage = \"Unable to match URL \\\"\" + pathname + \"\\\" - the `unstable_patchRoutesOnNavigation()` \" + (\"function threw the following error:\\n\" + message);\n } else if (method && pathname && routeId) {\n errorMessage = \"You made a \" + method + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide a `loader` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n } else if (type === \"defer-action\") {\n errorMessage = \"defer() is not supported in actions\";\n } else if (type === \"invalid-body\") {\n errorMessage = \"Unable to encode submission body\";\n }\n } else if (status === 403) {\n statusText = \"Forbidden\";\n errorMessage = \"Route \\\"\" + routeId + \"\\\" does not match URL \\\"\" + pathname + \"\\\"\";\n } else if (status === 404) {\n statusText = \"Not Found\";\n errorMessage = \"No route matches URL \\\"\" + pathname + \"\\\"\";\n } else if (status === 405) {\n statusText = \"Method Not Allowed\";\n if (method && pathname && routeId) {\n errorMessage = \"You made a \" + method.toUpperCase() + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide an `action` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n } else if (method) {\n errorMessage = \"Invalid request method \\\"\" + method.toUpperCase() + \"\\\"\";\n }\n }\n return new ErrorResponseImpl(status || 500, statusText, new Error(errorMessage), true);\n}\n// Find any returned redirect errors, starting from the lowest match\nfunction findRedirect(results) {\n for (let i = results.length - 1; i >= 0; i--) {\n let result = results[i];\n if (isRedirectResult(result)) {\n return {\n result,\n idx: i\n };\n }\n }\n}\nfunction stripHashFromPath(path) {\n let parsedPath = typeof path === \"string\" ? parsePath(path) : path;\n return createPath(_extends({}, parsedPath, {\n hash: \"\"\n }));\n}\nfunction isHashChangeOnly(a, b) {\n if (a.pathname !== b.pathname || a.search !== b.search) {\n return false;\n }\n if (a.hash === \"\") {\n // /page -> /page#hash\n return b.hash !== \"\";\n } else if (a.hash === b.hash) {\n // /page#hash -> /page#hash\n return true;\n } else if (b.hash !== \"\") {\n // /page#hash -> /page#other\n return true;\n }\n // If the hash is removed the browser will re-perform a request to the server\n // /page#hash -> /page\n return false;\n}\nfunction isPromise(val) {\n return typeof val === \"object\" && val != null && \"then\" in val;\n}\nfunction isHandlerResult(result) {\n return result != null && typeof result === \"object\" && \"type\" in result && \"result\" in result && (result.type === ResultType.data || result.type === ResultType.error);\n}\nfunction isRedirectHandlerResult(result) {\n return isResponse(result.result) && redirectStatusCodes.has(result.result.status);\n}\nfunction isDeferredResult(result) {\n return result.type === ResultType.deferred;\n}\nfunction isErrorResult(result) {\n return result.type === ResultType.error;\n}\nfunction isRedirectResult(result) {\n return (result && result.type) === ResultType.redirect;\n}\nfunction isDataWithResponseInit(value) {\n return typeof value === \"object\" && value != null && \"type\" in value && \"data\" in value && \"init\" in value && value.type === \"DataWithResponseInit\";\n}\nfunction isDeferredData(value) {\n let deferred = value;\n return deferred && typeof deferred === \"object\" && typeof deferred.data === \"object\" && typeof deferred.subscribe === \"function\" && typeof deferred.cancel === \"function\" && typeof deferred.resolveData === \"function\";\n}\nfunction isResponse(value) {\n return value != null && typeof value.status === \"number\" && typeof value.statusText === \"string\" && typeof value.headers === \"object\" && typeof value.body !== \"undefined\";\n}\nfunction isRedirectResponse(result) {\n if (!isResponse(result)) {\n return false;\n }\n let status = result.status;\n let location = result.headers.get(\"Location\");\n return status >= 300 && status <= 399 && location != null;\n}\nfunction isValidMethod(method) {\n return validRequestMethods.has(method.toLowerCase());\n}\nfunction isMutationMethod(method) {\n return validMutationMethods.has(method.toLowerCase());\n}\nasync function resolveDeferredResults(currentMatches, matchesToLoad, results, signals, isFetcher, currentLoaderData) {\n for (let index = 0; index < results.length; index++) {\n let result = results[index];\n let match = matchesToLoad[index];\n // If we don't have a match, then we can have a deferred result to do\n // anything with. This is for revalidating fetchers where the route was\n // removed during HMR\n if (!match) {\n continue;\n }\n let currentMatch = currentMatches.find(m => m.route.id === match.route.id);\n let isRevalidatingLoader = currentMatch != null && !isNewRouteInstance(currentMatch, match) && (currentLoaderData && currentLoaderData[match.route.id]) !== undefined;\n if (isDeferredResult(result) && (isFetcher || isRevalidatingLoader)) {\n // Note: we do not have to touch activeDeferreds here since we race them\n // against the signal in resolveDeferredData and they'll get aborted\n // there if needed\n let signal = signals[index];\n invariant(signal, \"Expected an AbortSignal for revalidating fetcher deferred result\");\n await resolveDeferredData(result, signal, isFetcher).then(result => {\n if (result) {\n results[index] = result || results[index];\n }\n });\n }\n }\n}\nasync function resolveDeferredData(result, signal, unwrap) {\n if (unwrap === void 0) {\n unwrap = false;\n }\n let aborted = await result.deferredData.resolveData(signal);\n if (aborted) {\n return;\n }\n if (unwrap) {\n try {\n return {\n type: ResultType.data,\n data: result.deferredData.unwrappedData\n };\n } catch (e) {\n // Handle any TrackedPromise._error values encountered while unwrapping\n return {\n type: ResultType.error,\n error: e\n };\n }\n }\n return {\n type: ResultType.data,\n data: result.deferredData.data\n };\n}\nfunction hasNakedIndexQuery(search) {\n return new URLSearchParams(search).getAll(\"index\").some(v => v === \"\");\n}\nfunction getTargetMatch(matches, location) {\n let search = typeof location === \"string\" ? parsePath(location).search : location.search;\n if (matches[matches.length - 1].route.index && hasNakedIndexQuery(search || \"\")) {\n // Return the leaf index route when index is present\n return matches[matches.length - 1];\n }\n // Otherwise grab the deepest \"path contributing\" match (ignoring index and\n // pathless layout routes)\n let pathMatches = getPathContributingMatches(matches);\n return pathMatches[pathMatches.length - 1];\n}\nfunction getSubmissionFromNavigation(navigation) {\n let {\n formMethod,\n formAction,\n formEncType,\n text,\n formData,\n json\n } = navigation;\n if (!formMethod || !formAction || !formEncType) {\n return;\n }\n if (text != null) {\n return {\n formMethod,\n formAction,\n formEncType,\n formData: undefined,\n json: undefined,\n text\n };\n } else if (formData != null) {\n return {\n formMethod,\n formAction,\n formEncType,\n formData,\n json: undefined,\n text: undefined\n };\n } else if (json !== undefined) {\n return {\n formMethod,\n formAction,\n formEncType,\n formData: undefined,\n json,\n text: undefined\n };\n }\n}\nfunction getLoadingNavigation(location, submission) {\n if (submission) {\n let navigation = {\n state: \"loading\",\n location,\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text\n };\n return navigation;\n } else {\n let navigation = {\n state: \"loading\",\n location,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined\n };\n return navigation;\n }\n}\nfunction getSubmittingNavigation(location, submission) {\n let navigation = {\n state: \"submitting\",\n location,\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text\n };\n return navigation;\n}\nfunction getLoadingFetcher(submission, data) {\n if (submission) {\n let fetcher = {\n state: \"loading\",\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text,\n data\n };\n return fetcher;\n } else {\n let fetcher = {\n state: \"loading\",\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined,\n data\n };\n return fetcher;\n }\n}\nfunction getSubmittingFetcher(submission, existingFetcher) {\n let fetcher = {\n state: \"submitting\",\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text,\n data: existingFetcher ? existingFetcher.data : undefined\n };\n return fetcher;\n}\nfunction getDoneFetcher(data) {\n let fetcher = {\n state: \"idle\",\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined,\n data\n };\n return fetcher;\n}\nfunction restoreAppliedTransitions(_window, transitions) {\n try {\n let sessionPositions = _window.sessionStorage.getItem(TRANSITIONS_STORAGE_KEY);\n if (sessionPositions) {\n let json = JSON.parse(sessionPositions);\n for (let [k, v] of Object.entries(json || {})) {\n if (v && Array.isArray(v)) {\n transitions.set(k, new Set(v || []));\n }\n }\n }\n } catch (e) {\n // no-op, use default empty object\n }\n}\nfunction persistAppliedTransitions(_window, transitions) {\n if (transitions.size > 0) {\n let json = {};\n for (let [k, v] of transitions) {\n json[k] = [...v];\n }\n try {\n _window.sessionStorage.setItem(TRANSITIONS_STORAGE_KEY, JSON.stringify(json));\n } catch (error) {\n warning(false, \"Failed to save applied view transitions in sessionStorage (\" + error + \").\");\n }\n }\n}\n//#endregion\n\nexport { AbortedDeferredError, Action, IDLE_BLOCKER, IDLE_FETCHER, IDLE_NAVIGATION, UNSAFE_DEFERRED_SYMBOL, DeferredData as UNSAFE_DeferredData, ErrorResponseImpl as UNSAFE_ErrorResponseImpl, convertRouteMatchToUiMatch as UNSAFE_convertRouteMatchToUiMatch, convertRoutesToDataRoutes as UNSAFE_convertRoutesToDataRoutes, decodePath as UNSAFE_decodePath, getResolveToMatches as UNSAFE_getResolveToMatches, invariant as UNSAFE_invariant, warning as UNSAFE_warning, createBrowserHistory, createHashHistory, createMemoryHistory, createPath, createRouter, createStaticHandler, defer, generatePath, getStaticContextFromError, getToPathname, isDataWithResponseInit, isDeferredData, isRouteErrorResponse, joinPaths, json, matchPath, matchRoutes, normalizePathname, parsePath, redirect, redirectDocument, replace, resolvePath, resolveTo, stripBasename, data as unstable_data };\n","import { safeJsonParse, ParameterHandler, Timer } from '@visiba-cortex/std';\n\n// src/_web_socket_transport.ts\nfunction noop() {\n}\nvar WebSocketTransport = class _WebSocketTransport {\n onMessage;\n onClose;\n webSocketModuleProtocol;\n webSocket = null;\n /** @internal */\n static create(webSocketModuleProtocol) {\n return new _WebSocketTransport(webSocketModuleProtocol);\n }\n constructor(webSocketModuleProtocol) {\n this.webSocketModuleProtocol = webSocketModuleProtocol;\n this.onMessage = null;\n this.onClose = null;\n }\n async connect(url, transferFormat) {\n const webSocket = new this.webSocketModuleProtocol(url);\n let opened = false;\n if (transferFormat === 2 /* Binary */) {\n webSocket.binaryType = \"arraybuffer\";\n }\n return new Promise((resolve, reject) => {\n webSocket.onopen = () => {\n opened = true;\n this.webSocket = webSocket;\n resolve();\n };\n webSocket.onmessage = (message) => {\n if (this.onMessage) {\n try {\n this.onMessage(message.data);\n } catch (error) {\n this.close();\n return;\n }\n }\n };\n webSocket.onerror = (event) => {\n reject(event);\n };\n webSocket.onclose = (event) => {\n if (opened) {\n this.closeInternal(event);\n return;\n }\n };\n });\n }\n close() {\n if (this.webSocket) {\n this.closeInternal(void 0);\n }\n return Promise.resolve();\n }\n send(data) {\n this.webSocket?.send(data);\n }\n closeInternal(event) {\n if (this.webSocket) {\n this.webSocket.onclose = noop;\n this.webSocket.onmessage = noop;\n this.webSocket.onerror = noop;\n this.webSocket.close();\n this.webSocket = null;\n }\n if (this.onClose) {\n if (this.isCloseEvent(event) && (event.wasClean === false || event.code !== 1e3)) {\n this.onClose(new Error(`WebSocket closed with status code: ${event.code} (${event.reason}).`));\n } else if (event instanceof Error) {\n this.onClose(event);\n } else {\n this.onClose();\n }\n }\n }\n isCloseEvent(event) {\n return event != null && !(event instanceof Error) && typeof event.wasClean === \"boolean\" && typeof event.code === \"number\";\n }\n};\n\n// src/_event_emitter.ts\nvar EventEmitter = class {\n errorHandlers = /* @__PURE__ */ new WeakMap();\n events = /* @__PURE__ */ Object.create(null);\n constructor() {\n }\n on(event, handler, errorHandler) {\n (this.events[event] || (this.events[event] = [])).push(handler);\n if (errorHandler) {\n this.errorHandlers.set(handler, errorHandler);\n }\n return () => {\n this.off(event, handler);\n };\n }\n /**\n * Un-registers a handler for events emitted by this instance.\n */\n off(event, handler) {\n if (!this.events[event])\n return;\n this.events[event].splice(this.events[event].indexOf(handler) >>> 0, 1);\n }\n offAll() {\n this.events = /* @__PURE__ */ Object.create(null);\n }\n /**\n * Emits an event containing a given value.\n */\n emit(event, data, id = void 0) {\n (this.events[event] || []).forEach((handler) => {\n try {\n handler(data, id);\n } catch (error) {\n const errorHandler = this.errorHandlers.get(handler);\n if (errorHandler)\n errorHandler(error);\n }\n });\n }\n};\n\n// src/_convert_message_data.ts\nvar ConvertMessageData;\n((ConvertMessageData2) => {\n function read(data) {\n const { C, T, D, I } = JSON.parse(data);\n return {\n controller: C,\n topic: T,\n data: D,\n id: I\n };\n }\n ConvertMessageData2.read = read;\n function write({ controller, topic, data, id }) {\n const builder = {\n C: controller,\n T: topic\n };\n if (data)\n builder[\"D\"] = JSON.stringify(data);\n if (id)\n builder[\"I\"] = id;\n return JSON.stringify(builder);\n }\n ConvertMessageData2.write = write;\n})(ConvertMessageData || (ConvertMessageData = {}));\n\n// src/_abstract_socket_events.ts\nvar AbstractSocketEvents = class {\n state = { state: 0 /* Pristine */ };\n storedUncalledOnOpenEvents = [];\n storedUncalledOnCloseEvents = [];\n storedUncalledOnErrorEvents = [];\n storedUncalledOnReconnect = [];\n storedUncalledOnReconnected = [];\n /**\n * Fires when instance has opened.\n */\n set onOpen(fn) {\n if (this.state.state === 1 /* Open */) {\n fn(this.state.data);\n return;\n }\n this.storedUncalledOnOpenEvents.push(fn);\n }\n /**\n * Fires when instance is closed.\n */\n set onClose(fn) {\n if (this.state.state === 2 /* Closed */) {\n fn(this.state.data);\n return;\n }\n this.storedUncalledOnCloseEvents.push(fn);\n }\n /**\n * Fires when the socket is being set in a reconnection state.\n */\n set onReconnect(fn) {\n this.storedUncalledOnReconnect.push(fn);\n }\n /**\n * Fires when the socket is being set in a reconnected state.\n */\n set onReconnected(fn) {\n this.storedUncalledOnReconnected.push(fn);\n }\n /**\n * Fires when instance has an error.\n *\n * @deprecated\n */\n set onError(fn) {\n if (this.state.state === 3 /* Error */) {\n fn(this.state.data);\n return;\n }\n this.storedUncalledOnErrorEvents.push(fn);\n }\n};\n\n// src/socket_controller.ts\nvar SocketController = class _SocketController extends AbstractSocketEvents {\n constructor(controller, controllerContext, reporter) {\n super();\n this.controller = controller;\n this.controllerContext = controllerContext;\n this.reporter = reporter;\n this.controller = controller;\n }\n static LOG_TRACE = \"SocketController\";\n /**\n * Stores all invoked functions. Properties are removed when invoked function\n * is called.\n */\n invokes = /* @__PURE__ */ Object.create(null);\n /** Stores all events for this Controller instance. */\n listener = new EventEmitter();\n /**\n * Parses a socket message in order to understand what to do with it. If `topic`\n * is not `2 (open)` or `3 (close)`, it'll fire an event with topic's value.\n */\n dispatchEvent(message) {\n const data = safeJsonParse(message.data);\n switch (message.topic) {\n case \"2\" /* Open */: {\n this.state = { state: 1 /* Open */, data };\n while (this.storedUncalledOnOpenEvents.length > 0) {\n const fn = this.storedUncalledOnOpenEvents.shift();\n fn(data);\n }\n this.reporter.log(`Controller \"${this.controller}\" has been opened`);\n break;\n }\n case \"3\" /* Close */:\n this.state = { state: 2 /* Closed */, data };\n while (this.storedUncalledOnCloseEvents.length > 0) {\n const fn = this.storedUncalledOnCloseEvents.shift();\n fn(data);\n }\n this.reporter.log(`Controller \"${this.controller}\" has been closed`);\n break;\n default: {\n const key = message.topic.replace(\"_r\", \"\");\n const invoked = this.invokes[key];\n if (invoked && message.topic.includes(\"_r\")) {\n invoked.forEach((fn) => fn(data));\n delete this.invokes[key];\n } else {\n this.listener.emit(message.topic, data, message.id ?? void 0);\n }\n }\n }\n }\n /**\n * Publishes data to the socket connection with reference to this controller.\n */\n publish(topic, data = null, id = null) {\n const httpConnection = this.controllerContext.httpConnection;\n if (httpConnection.state !== 2 /* Connected */)\n return;\n const sendData = {\n topic,\n data,\n id,\n controller: this.controller\n };\n const message = ConvertMessageData.write(sendData);\n httpConnection.send(message);\n }\n /**\n * Publishes data to the socket connection with a callback that'll be called\n * once a response socket event is read.\n */\n invoke(topic, data, callback) {\n if (!this.invokes[topic])\n this.invokes[topic] = [];\n this.invokes[topic].push(callback);\n this.publish(topic, data);\n }\n /** Adds a listener to an event. */\n on(topic, event) {\n return this.listener.on(topic, event);\n }\n /**\n * Closes this controller. Removes all listeners and instance is removed from\n * clientReference's Controller list.\n */\n close() {\n this.listener.offAll();\n this.controllerContext.remove(this.controller);\n }\n /* @internal */\n communicateReconnect() {\n if (this.storedUncalledOnReconnect.length > 0) {\n this.reporter.log(`[${_SocketController.LOG_TRACE}] controller \"${this.controller}\" is reconnecting ...`);\n }\n while (this.storedUncalledOnReconnect.length > 0) {\n const fn = this.storedUncalledOnReconnect.shift();\n fn(null);\n }\n }\n /* @internal */\n communicateReconnected() {\n if (this.storedUncalledOnReconnected.length > 0) {\n this.reporter.log(`[${_SocketController.LOG_TRACE}] controller \"${this.controller}\" has reconnected!`);\n }\n while (this.storedUncalledOnReconnected.length > 0) {\n const fn = this.storedUncalledOnReconnected.shift();\n fn(null);\n }\n }\n};\n\n// src/_controller_context.ts\nvar ControllerContext = class _ControllerContext {\n constructor(httpConnection, reporter) {\n this.httpConnection = httpConnection;\n this.reporter = reporter;\n }\n controllers = /* @__PURE__ */ new Map();\n static create(httpConnection, reporter) {\n return new _ControllerContext(httpConnection, reporter);\n }\n get(ref) {\n let instance = this.controllers.get(ref);\n if (instance == null) {\n instance = this.add(ref);\n }\n return instance;\n }\n add(ref) {\n this.reporter.log(`Connects to controller: ${ref}`);\n this.remove(ref);\n const instance = new SocketController(ref, this, this.reporter);\n this.controllers.set(ref, instance);\n instance.publish(\"1\" /* Init */);\n return instance;\n }\n remove(ref) {\n if (this.controllers.has(ref)) {\n this.controllers.delete(ref);\n }\n }\n panicControllers() {\n for (const controllers of this.controllers.values()) {\n controllers.communicateReconnect();\n }\n }\n calmControllers() {\n for (const controllers of this.controllers.values()) {\n controllers.communicateReconnected();\n }\n }\n resyncUncoupledControllers() {\n for (const [key, value] of this.controllers.entries()) {\n if (key === \"ping\")\n continue;\n value.publish(\"1\" /* Init */);\n }\n }\n handleControllerMessage(message) {\n if (message.topic === \"4\" /* Error */) {\n this.reporter.log(`Controller message carried an error: ${message.data}`);\n return;\n }\n if (message.topic === \"0\" /* AuthFailed */) {\n return;\n }\n const controllerInstance = this.controllers.get(message.controller) ?? this.add(message.controller);\n if (controllerInstance) {\n controllerInstance.dispatchEvent(message);\n }\n }\n};\nvar HandshakeProtocol = class _HandshakeProtocol {\n constructor(controllerContext, reporter) {\n this.controllerContext = controllerContext;\n this.reporter = reporter;\n this.onPanic = null;\n }\n static HANDSHAKE_CONTROLLER = \"ping\";\n static HANDSHAKE_MESSAGE = \"ping\";\n interval = new Timer();\n failedHandshakes = 0;\n pingController = null;\n signed = false;\n onPanic;\n sign(checkInterval) {\n if (this.signed) {\n this.terminate();\n }\n this.reporter.log(\"Signs handshake protocol\");\n this.signed = true;\n this.pingController = this.controllerContext.add(_HandshakeProtocol.HANDSHAKE_CONTROLLER);\n return this.interval.repeat(this.handleTick.bind(this), checkInterval);\n }\n handlePong() {\n this.failedHandshakes = 0;\n }\n terminate() {\n if (this.signed) {\n this.reporter.log(\"Terminates old handshake protocol\");\n this.failedHandshakes = 0;\n this.interval.flush();\n this.controllerContext.remove(_HandshakeProtocol.HANDSHAKE_CONTROLLER);\n this.signed = false;\n return;\n }\n }\n handleTick() {\n if (this.failedHandshakes > 1) {\n this.reporter.log(`Failed handshakes amount went over 1`);\n this.terminate();\n if (this.onPanic) {\n this.onPanic();\n }\n return;\n }\n this.failedHandshakes++;\n this.pingController?.publish(_HandshakeProtocol.HANDSHAKE_MESSAGE);\n }\n};\nvar ReconnectionPolicy = class _ReconnectionPolicy {\n constructor(ctx, reporter) {\n this.ctx = ctx;\n this.reporter = reporter;\n }\n static NOOP = () => void 0;\n reconnectTimer = new Timer();\n reconnectAttempts = 0;\n isAlive = true;\n invoke(retryMethod, gracefulShutdown) {\n if (!this.isAlive)\n return _ReconnectionPolicy.NOOP;\n const { reconnectAscent, reconnectCap, reconnectInterval, reconnectMaxAttempts } = this.ctx;\n const timeout = reconnectInterval * reconnectAscent ** this.reconnectAttempts++;\n this.reconnectTimer.flush();\n if (this.reconnectAttempts > reconnectMaxAttempts) {\n gracefulShutdown();\n }\n this.reconnectTimer.wait(\n async () => {\n try {\n this.reporter.log(`Tries to reconnect ...`);\n await retryMethod();\n this.reconnectTimer.flush();\n } catch (error) {\n if (!this.isAlive)\n return;\n this.reporter.log(`Failed to reconnect, retrying in ${timeout}ms`);\n this.invoke(retryMethod, gracefulShutdown);\n }\n },\n timeout > reconnectCap ? reconnectCap : timeout\n );\n return () => this.dispose();\n }\n dispose() {\n this.isAlive = false;\n this.reconnectTimer.flush();\n }\n};\n\n// src/http_connection.ts\nvar HttpConnection = class _HttpConnection {\n static LOG_TRACE = \"HttpConnection\";\n parameterHandler;\n controllerContext;\n handshakeProtocol;\n url;\n webSocketTransport;\n reporter;\n handshakeInterval;\n connectionState;\n reconnectionPolicy = null;\n get state() {\n return this.connectionState;\n }\n /** @internal */\n onGracefulShutdown = null;\n /** @internal */\n onReconnect = null;\n /** @internal */\n onReconnected = null;\n /** @internal */\n static create(url, handshakeInterval, webSocketTransport, reporter) {\n return new _HttpConnection(url, handshakeInterval, webSocketTransport, reporter);\n }\n constructor(url, handshakeInterval, webSocketTransport, reporter) {\n this.parameterHandler = new ParameterHandler();\n this.url = url;\n this.handshakeInterval = handshakeInterval;\n this.reporter = reporter;\n this.controllerContext = ControllerContext.create(this, reporter);\n this.handshakeProtocol = new HandshakeProtocol(this.controllerContext, this.reporter);\n this.handshakeProtocol.onPanic = () => this.handlePanic();\n this.webSocketTransport = webSocketTransport;\n this.webSocketTransport.onMessage = (data) => this.handleOnMessage(data);\n this.webSocketTransport.onClose = (error) => this.handleOnWebSocketTransportClose(error);\n this.connectionState = 0 /* Disconnected */;\n }\n async open() {\n this.connectionState = 1 /* Connecting */;\n this.reporter.log(`[${_HttpConnection.LOG_TRACE}] Sets connectionState to Connecting`);\n try {\n await this.openInternal();\n this.connectionState = 2 /* Connected */;\n this.controllerContext.resyncUncoupledControllers();\n if (this.reconnectionPolicy != null) {\n this.controllerContext.calmControllers();\n this.onReconnected?.();\n this.reconnectionPolicy = null;\n }\n this.handshakeProtocol.sign(this.handshakeInterval);\n this.reporter.log(`[${_HttpConnection.LOG_TRACE}] Sets connectionState to Connected`);\n } catch (error) {\n if (error instanceof Error) {\n this.reporter.log(`Error in open, reason ${error.message}`);\n } else if (error instanceof CloseEvent) {\n this.reporter.log(`Error in open, code ${error.code}`);\n } else {\n this.reporter.log(`Error in open, we have no idea why, see ${safeJsonParse(error) ?? error}`);\n console.log(error);\n }\n return Promise.reject(error);\n }\n }\n send(data) {\n this.webSocketTransport.send(data);\n }\n close() {\n this.connectionState = 3 /* Disconnecting */;\n this.reporter.log(`[${_HttpConnection.LOG_TRACE}] Sets connectionState to Disconnecting`);\n return this.closeInternal();\n }\n closeInternal() {\n this.reconnectionPolicy?.dispose();\n this.reconnectionPolicy = null;\n this.handshakeProtocol.terminate();\n this.connectionState = 0 /* Disconnected */;\n this.reporter.log(`[${_HttpConnection.LOG_TRACE}] Sets connectionState to Disconnected`);\n return this.webSocketTransport.close();\n }\n async openInternal() {\n await this.webSocketTransport.connect(this.url + this.parameterHandler.getString(), 1 /* Text */);\n }\n handleOnMessage(data) {\n try {\n if (data instanceof ArrayBuffer) {\n throw new Error(`ArrayBuffer not yet impl`);\n }\n const message = ConvertMessageData.read(data);\n if (message.topic === \"8\" /* Pong */) {\n this.handshakeProtocol.handlePong();\n return;\n }\n if (message.controller === \"system\") {\n if (message.topic === \"4\" /* Error */) {\n this.reporter.log(`System message carried an error: ${message.data}`);\n }\n return;\n }\n this.controllerContext.handleControllerMessage(message);\n } catch (error) {\n console.log(error);\n if (error instanceof Error) {\n this.reporter.log(`error while parsing a message: ${error.message}`);\n return;\n }\n this.reporter.log(`error while parsing a message... unknown type thrown, see -> ${safeJsonParse(error) ?? error}`);\n }\n }\n async invokeReconnectionPolicy() {\n if (this.reconnectionPolicy != null)\n return;\n this.reporter.log(`[${_HttpConnection.LOG_TRACE}] invoked reconnectionPolicy`);\n this.connectionState = 4 /* Reconnecting */;\n this.reporter.log(`[${_HttpConnection.LOG_TRACE}] Sets connectionState to Reconnecting`);\n this.onReconnect?.();\n this.controllerContext.panicControllers();\n await this.closeInternal();\n this.reconnectionPolicy = new ReconnectionPolicy(\n {\n reconnectInterval: 1e3,\n reconnectAscent: 1.5,\n reconnectCap: 3e5,\n reconnectMaxAttempts: Infinity\n },\n this.reporter\n );\n this.reconnectionPolicy.invoke(this.handleReconnect.bind(this), this.gracefulShutdown.bind(this));\n }\n async handleReconnect() {\n await this.open();\n return Promise.resolve();\n }\n handleOnWebSocketTransportClose(error) {\n if (error != null) {\n this.reporter.log(`closed with error ${error.message}`);\n this.invokeReconnectionPolicy();\n return;\n }\n this.connectionState = 0 /* Disconnected */;\n this.reporter.log(`[${_HttpConnection.LOG_TRACE}] Sets connectionState to Disconnected`);\n this.gracefulShutdown();\n }\n handlePanic() {\n this.reporter.log(`[${_HttpConnection.LOG_TRACE}] panicked`);\n this.invokeReconnectionPolicy();\n }\n gracefulShutdown() {\n if (this.onGracefulShutdown != null) {\n this.onGracefulShutdown();\n }\n }\n};\n\n// src/_reporter.ts\nvar Reporter = class {\n // This type is fine\n // eslint-disable-next-line @typescript-eslint/ban-types\n constructor(fn) {\n this.fn = fn;\n }\n log(message) {\n this.fn(message);\n }\n};\n\n// src/axon.ts\nfunction noop2() {\n}\nvar Axon = class {\n events = new EventEmitter();\n webSocketTransport;\n httpConnection;\n reporter;\n // The \"Function\" type should be change when we can distribute around a better logger\n // TODO: Tell Emil to type this better...\n // eslint-disable-next-line @typescript-eslint/ban-types\n constructor(url, logger) {\n this.reporter = new Reporter(logger ?? noop2);\n this.webSocketTransport = WebSocketTransport.create(WebSocket);\n this.httpConnection = HttpConnection.create(url, 5 * 1e3, this.webSocketTransport, this.reporter);\n this.httpConnection.onGracefulShutdown = () => this.handleGracefulShutDown();\n this.httpConnection.onReconnect = () => this.events.emit(\"onReconnecting\", null);\n this.httpConnection.onReconnected = () => this.events.emit(\"onReconnected\", null);\n }\n open() {\n const promise = this.httpConnection.open();\n promise.then(() => {\n this.events.emit(\"onOpen\", null);\n });\n return promise;\n }\n close() {\n const promise = this.httpConnection.close();\n promise.then(() => {\n this.events.emit(\"onClose\", null);\n });\n return promise;\n }\n /**\n * @deprecated Use getController instead.\n */\n createController(controllerName) {\n return this.getController(controllerName);\n }\n getController(controllerName) {\n if (controllerName === \"ping\") {\n console.warn(\"ping is reserved for internal usage\");\n }\n return this.httpConnection.controllerContext.get(controllerName);\n }\n /** Appends an parameter. Parameters is used when opening a WebSocket. */\n setParameters(value) {\n this.httpConnection.parameterHandler.append(value);\n }\n /** Clears all parameters. Parameters is used when opening a WebSocket. */\n clearParameters() {\n this.httpConnection.parameterHandler.clearParameters();\n }\n handleGracefulShutDown() {\n this.events.emit(\"onClose\", null);\n }\n};\n\nexport { Axon, SocketController };\n//# sourceMappingURL=out.js.map\n","import Axios2 from 'axios';\n\n// src/http.ts\n\n// src/http_error.ts\nvar HttpError = class _HttpError extends Error {\n constructor(message, statusCode, data) {\n super(message);\n this.message = message;\n this.statusCode = statusCode;\n this.data = data;\n this.name = \"HttpError\";\n Object.setPrototypeOf(this, _HttpError.prototype);\n }\n};\nfunction isHttpError(error) {\n if (error instanceof HttpError) {\n return true;\n }\n return false;\n}\n\n// src/_axios_enhanced_error_as_http_error.ts\nfunction axiosEnhancedErrorAsHttpError(error) {\n if (Axios2.isAxiosError(error)) {\n const httpError = new HttpError(error.message, error.response?.status ?? -1, error.response?.data ?? null);\n return httpError;\n }\n return error;\n}\n\n// src/http_status_code.ts\nvar HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {\n HttpStatusCode2[HttpStatusCode2[\"Continue100\"] = 100] = \"Continue100\";\n HttpStatusCode2[HttpStatusCode2[\"SwitchingProtocols101\"] = 101] = \"SwitchingProtocols101\";\n HttpStatusCode2[HttpStatusCode2[\"Processing102\"] = 102] = \"Processing102\";\n HttpStatusCode2[HttpStatusCode2[\"Ok200\"] = 200] = \"Ok200\";\n HttpStatusCode2[HttpStatusCode2[\"Created201\"] = 201] = \"Created201\";\n HttpStatusCode2[HttpStatusCode2[\"Accepted202\"] = 202] = \"Accepted202\";\n HttpStatusCode2[HttpStatusCode2[\"NonAuthoritativeInformation203\"] = 203] = \"NonAuthoritativeInformation203\";\n HttpStatusCode2[HttpStatusCode2[\"NoContent204\"] = 204] = \"NoContent204\";\n HttpStatusCode2[HttpStatusCode2[\"ResetContent205\"] = 205] = \"ResetContent205\";\n HttpStatusCode2[HttpStatusCode2[\"PartialContent206\"] = 206] = \"PartialContent206\";\n HttpStatusCode2[HttpStatusCode2[\"MultiStatus207\"] = 207] = \"MultiStatus207\";\n HttpStatusCode2[HttpStatusCode2[\"AlreadyReported208\"] = 208] = \"AlreadyReported208\";\n HttpStatusCode2[HttpStatusCode2[\"ImUsed226\"] = 226] = \"ImUsed226\";\n HttpStatusCode2[HttpStatusCode2[\"MultipleChoices300\"] = 300] = \"MultipleChoices300\";\n HttpStatusCode2[HttpStatusCode2[\"MovedPermanently301\"] = 301] = \"MovedPermanently301\";\n HttpStatusCode2[HttpStatusCode2[\"Found302\"] = 302] = \"Found302\";\n HttpStatusCode2[HttpStatusCode2[\"SeeOther303\"] = 303] = \"SeeOther303\";\n HttpStatusCode2[HttpStatusCode2[\"NotModified304\"] = 304] = \"NotModified304\";\n HttpStatusCode2[HttpStatusCode2[\"UseProxy305\"] = 305] = \"UseProxy305\";\n HttpStatusCode2[HttpStatusCode2[\"SwitchProxy306\"] = 306] = \"SwitchProxy306\";\n HttpStatusCode2[HttpStatusCode2[\"TemporaryRedirect307\"] = 307] = \"TemporaryRedirect307\";\n HttpStatusCode2[HttpStatusCode2[\"PermanentRedirect308\"] = 308] = \"PermanentRedirect308\";\n HttpStatusCode2[HttpStatusCode2[\"BadRequest400\"] = 400] = \"BadRequest400\";\n HttpStatusCode2[HttpStatusCode2[\"Unauthorized401\"] = 401] = \"Unauthorized401\";\n HttpStatusCode2[HttpStatusCode2[\"PaymentRequired402\"] = 402] = \"PaymentRequired402\";\n HttpStatusCode2[HttpStatusCode2[\"Forbidden403\"] = 403] = \"Forbidden403\";\n HttpStatusCode2[HttpStatusCode2[\"NotFound404\"] = 404] = \"NotFound404\";\n HttpStatusCode2[HttpStatusCode2[\"MethodNotAllowed405\"] = 405] = \"MethodNotAllowed405\";\n HttpStatusCode2[HttpStatusCode2[\"NotAcceptable406\"] = 406] = \"NotAcceptable406\";\n HttpStatusCode2[HttpStatusCode2[\"ProxyAuthenticationRequired407\"] = 407] = \"ProxyAuthenticationRequired407\";\n HttpStatusCode2[HttpStatusCode2[\"RequestTimeout408\"] = 408] = \"RequestTimeout408\";\n HttpStatusCode2[HttpStatusCode2[\"Conflict409\"] = 409] = \"Conflict409\";\n HttpStatusCode2[HttpStatusCode2[\"Gone410\"] = 410] = \"Gone410\";\n HttpStatusCode2[HttpStatusCode2[\"LengthRequired411\"] = 411] = \"LengthRequired411\";\n HttpStatusCode2[HttpStatusCode2[\"PreconditionFailed412\"] = 412] = \"PreconditionFailed412\";\n HttpStatusCode2[HttpStatusCode2[\"PayloadTooLarge413\"] = 413] = \"PayloadTooLarge413\";\n HttpStatusCode2[HttpStatusCode2[\"UriTooLong414\"] = 414] = \"UriTooLong414\";\n HttpStatusCode2[HttpStatusCode2[\"UnsupportedMediaType415\"] = 415] = \"UnsupportedMediaType415\";\n HttpStatusCode2[HttpStatusCode2[\"RangeNotSatisfiable416\"] = 416] = \"RangeNotSatisfiable416\";\n HttpStatusCode2[HttpStatusCode2[\"ExpectationFailed417\"] = 417] = \"ExpectationFailed417\";\n HttpStatusCode2[HttpStatusCode2[\"IAmATeapot418\"] = 418] = \"IAmATeapot418\";\n HttpStatusCode2[HttpStatusCode2[\"MisdirectedRequest421\"] = 421] = \"MisdirectedRequest421\";\n HttpStatusCode2[HttpStatusCode2[\"UnprocessableEntity422\"] = 422] = \"UnprocessableEntity422\";\n HttpStatusCode2[HttpStatusCode2[\"Locked423\"] = 423] = \"Locked423\";\n HttpStatusCode2[HttpStatusCode2[\"FailedDependency424\"] = 424] = \"FailedDependency424\";\n HttpStatusCode2[HttpStatusCode2[\"UpgradeRequired426\"] = 426] = \"UpgradeRequired426\";\n HttpStatusCode2[HttpStatusCode2[\"PreconditionRequired428\"] = 428] = \"PreconditionRequired428\";\n HttpStatusCode2[HttpStatusCode2[\"TooManyRequests429\"] = 429] = \"TooManyRequests429\";\n HttpStatusCode2[HttpStatusCode2[\"RequestHeaderFieldsTooLarge431\"] = 431] = \"RequestHeaderFieldsTooLarge431\";\n HttpStatusCode2[HttpStatusCode2[\"UnavailableForLegalReasons451\"] = 451] = \"UnavailableForLegalReasons451\";\n HttpStatusCode2[HttpStatusCode2[\"InternalServerError500\"] = 500] = \"InternalServerError500\";\n HttpStatusCode2[HttpStatusCode2[\"NotImplemented501\"] = 501] = \"NotImplemented501\";\n HttpStatusCode2[HttpStatusCode2[\"BadGateway502\"] = 502] = \"BadGateway502\";\n HttpStatusCode2[HttpStatusCode2[\"ServiceUnavailable503\"] = 503] = \"ServiceUnavailable503\";\n HttpStatusCode2[HttpStatusCode2[\"GatewayTimeout504\"] = 504] = \"GatewayTimeout504\";\n HttpStatusCode2[HttpStatusCode2[\"HttpVersionNotSupported505\"] = 505] = \"HttpVersionNotSupported505\";\n HttpStatusCode2[HttpStatusCode2[\"VariantAlsoNegotiates506\"] = 506] = \"VariantAlsoNegotiates506\";\n HttpStatusCode2[HttpStatusCode2[\"InsufficientStorage507\"] = 507] = \"InsufficientStorage507\";\n HttpStatusCode2[HttpStatusCode2[\"LoopDetected508\"] = 508] = \"LoopDetected508\";\n HttpStatusCode2[HttpStatusCode2[\"NotExtended510\"] = 510] = \"NotExtended510\";\n HttpStatusCode2[HttpStatusCode2[\"NetworkAuthenticationRequired511\"] = 511] = \"NetworkAuthenticationRequired511\";\n return HttpStatusCode2;\n})(HttpStatusCode || {});\n\n// src/http_options.ts\nvar HttpOptions = class _HttpOptions {\n cancelToken = null;\n requestConfig;\n mock = null;\n throttle = 0;\n /** Mutable if needed */\n static defaultRequestConfig = {\n headers: {}\n };\n constructor({ requestConfig, cancelToken, mock, throttle }) {\n this.cancelToken = cancelToken ?? null;\n if (requestConfig) {\n this.requestConfig = {\n ...requestConfig\n };\n } else {\n this.requestConfig = {\n ..._HttpOptions.defaultRequestConfig\n };\n }\n if (mock) {\n this.mock = mock;\n }\n if (throttle) {\n this.throttle = throttle;\n }\n this.requestConfig.headers = {\n ...this.requestConfig.headers\n };\n }\n};\n\n// src/http.ts\nvar clients = /* @__PURE__ */ Object.create(null);\nasync function send(fn, url, options, body) {\n let response;\n if (options.mock != null) {\n response = {\n data: options.mock.data,\n status: options.mock.status ?? 200 /* Ok200 */,\n // Defaults to Ok so developers doesn't need to explicity type the default.\n config: options.requestConfig,\n headers: options.mock.headers ?? {},\n statusText: \"\"\n };\n } else {\n try {\n if (body === void 0) {\n response = await fn(url, {\n ...options.requestConfig,\n cancelToken: options.cancelToken?.token ?? Axios2.CancelToken.source().token\n });\n } else {\n response = await fn(\n url,\n body,\n // We're not transforming this anymore since it's being done internally in Axios https://github.com/axios/axios/blob/master/lib/defaults/index.js#L52\n {\n ...options.requestConfig,\n cancelToken: options.cancelToken?.token ?? Axios2.CancelToken.source().token\n }\n );\n }\n } catch (error) {\n throw axiosEnhancedErrorAsHttpError(error);\n }\n }\n if (options.throttle > 0) {\n await new Promise((resolve) => setTimeout(resolve, options.throttle));\n }\n return response;\n}\nvar Http = Object.freeze({\n /**\n * When invoked, it'll causes a GET request to execute on\n * the server. Returning a promise with the server's response.\n */\n get(url, optionConfiguration) {\n return send(Axios2.get, url, optionConfiguration ?? new HttpOptions({}));\n },\n /**\n * When invoked, it'll causes a DELETE request to execute on\n * the server. Returning a promise with the server's response.\n */\n delete(url, optionConfiguration) {\n return send(Axios2.delete, url, optionConfiguration ?? new HttpOptions({}));\n },\n /**\n * When invoked, it'll causes a OPTIONS request to execute on\n * the server. Returning a promise with the server's response.\n */\n options(url, optionConfiguration) {\n return send(Axios2.options, url, optionConfiguration ?? new HttpOptions({}));\n },\n /**\n * When invoked, it'll causes a HEAD request to execute on\n * the server. Returning a promise with the server's response.\n */\n head(url, optionConfiguration) {\n return send(Axios2.head, url, optionConfiguration ?? new HttpOptions({}));\n },\n /**\n * When invoked, it'll causes a POST request to execute on\n * the server. Returning a promise with the server's response.\n */\n post(url, body, optionConfiguration) {\n if (body instanceof HttpOptions)\n throw new Error(`Option was passed as the body`);\n return send(Axios2.post, url, optionConfiguration ?? new HttpOptions({}), body);\n },\n /**\n * When invoked, it'll causes a PUT request to execute on\n * the server. Returning a promise with the server's response.\n */\n put(url, body, optionConfiguration) {\n if (body instanceof HttpOptions)\n throw new Error(`Option was passed as the body`);\n return send(Axios2.put, url, optionConfiguration ?? new HttpOptions({}), body);\n },\n /**\n * When invoked, it'll causes a PATCH request to execute on\n * the server. Returning a promise with the server's response.\n */\n patch(url, body, optionConfiguration) {\n if (body instanceof HttpOptions)\n throw new Error(`Option was passed as the body`);\n return send(Axios2.patch, url, optionConfiguration ?? new HttpOptions({}), body);\n },\n /**\n * Creates a new Http Client which may be used for a long lasting session.\n */\n create(alias) {\n let optionCtor = HttpOptions;\n return {\n /**\n * When invoked, it'll causes the configured GET request to execute on\n * the server. Returning a promise with the server's response.\n */\n get(url, optionConfiguration) {\n return send(clients[alias]?.get ?? Axios2.get, url, optionConfiguration ?? new optionCtor({}));\n },\n /**\n * When invoked, it'll causes the configured DELETE request to execute on\n * the server. Returning a promise with the server's response.\n */\n delete(url, optionConfiguration) {\n return send(clients[alias]?.delete ?? Axios2.delete, url, optionConfiguration ?? new optionCtor({}));\n },\n /**\n * When invoked, it'll causes the configured OPTIONS request to execute on\n * the server. Returning a promise with the server's response.\n */\n options(url, optionConfiguration) {\n return send(clients[alias]?.options ?? Axios2.options, url, optionConfiguration ?? new optionCtor({}));\n },\n /**\n * When invoked, it'll causes the configured HEAD request to execute on\n * the server. Returning a promise with the server's response.\n */\n head(url, optionConfiguration) {\n return send(clients[alias]?.head ?? Axios2.head, url, optionConfiguration ?? new optionCtor({}));\n },\n /**\n * When invoked, it'll causes the configured POST request to execute on\n * the server. Returning a promise with the server's response.\n */\n post(url, body, optionConfiguration) {\n if (body instanceof HttpOptions)\n throw new Error(`Option was passed as the body`);\n return send(clients[alias]?.post ?? Axios2.post, url, optionConfiguration ?? new optionCtor({}), body);\n },\n /**\n * When invoked, it'll causes the configured PUT request to execute on\n * the server. Returning a promise with the server's response.\n */\n put(url, body, optionConfiguration) {\n if (body instanceof HttpOptions)\n throw new Error(`Option was passed as the body`);\n return send(clients[alias]?.put ?? Axios2.put, url, optionConfiguration ?? new optionCtor({}), body);\n },\n /**\n * When invoked, it'll causes the configured PATCH request to execute on\n * the server. Returning a promise with the server's response.\n */\n patch(url, body, optionConfiguration) {\n if (body instanceof HttpOptions)\n throw new Error(`Option was passed as the body`);\n return send(clients[alias]?.patch ?? Axios2.patch, url, optionConfiguration ?? new optionCtor({}), body);\n },\n /**\n * Updates the Http Client with `HttpRequestConfig`.\n */\n setConfig(config) {\n clients[alias] = Axios2.create(config);\n },\n /**\n * Overrides what class Options should be, useful to add a\n * standardization for each custom request (same headers for each request etc)\n */\n setCustomOption(option) {\n optionCtor = option;\n }\n };\n },\n /**\n * If needed, this method creates an CancelToken. May be inserted into an\n * Http.Option for canceling requests prematurely.\n */\n createCancelTokenSource() {\n return Axios2.CancelToken.source();\n },\n /**\n * Removes a known Http Client.\n */\n removeClient(alias) {\n delete clients[alias];\n },\n /**\n * Retrieves an instantiated Http Client.\n */\n getClient(alias) {\n return clients[alias] ?? null;\n }\n});\n\nexport { Http, HttpError, HttpOptions, HttpStatusCode, isHttpError };\n//# sourceMappingURL=out.js.map\n","import { createContext, useContext, useRef, useLayoutEffect } from 'react';\nimport { jsx } from 'react/jsx-runtime';\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp(target, key, result);\n return result;\n};\n\n// src/_graph.ts\nvar Node = class {\n constructor(data) {\n this.data = data;\n }\n incoming = /* @__PURE__ */ new Map();\n outgoing = /* @__PURE__ */ new Map();\n};\nvar Graph = class {\n constructor(lookupFn) {\n this.lookupFn = lookupFn;\n }\n nodes = /* @__PURE__ */ new Map();\n insertEdge(from, to) {\n const fromNode = this.lookupOrInsertNode(from);\n const toNode = this.lookupOrInsertNode(to);\n fromNode.outgoing.set(this.lookupFn(to), toNode);\n toNode.incoming.set(this.lookupFn(from), fromNode);\n }\n lookup(key) {\n return this.nodes.get(key) ?? null;\n }\n lookupOrInsertNode(data) {\n const key = this.lookupFn(data);\n let node = this.nodes.get(key);\n if (!node) {\n node = new Node(data);\n this.nodes.set(key, node);\n }\n return node;\n }\n removeNode(key) {\n this.nodes.delete(key);\n for (const node of this.nodes.values()) {\n node.outgoing.delete(key);\n node.incoming.delete(key);\n }\n }\n edges() {\n const nodes = [];\n for (const node of this.nodes.values()) {\n if (node.outgoing.size === 0) {\n nodes.push(node);\n }\n }\n return nodes;\n }\n isEmpty() {\n return this.nodes.size === 0;\n }\n};\n\n// src/_todo.ts\nvar NotImplementedError = class extends Error {\n constructor(featureName) {\n const message = featureName ? `Feature \"${featureName}\" is not implemented.` : \"Not implemented.\";\n super(message);\n this.name = \"NotImplementedError\";\n }\n};\nfunction todo(featureName) {\n const err = new NotImplementedError(featureName);\n Error.captureStackTrace?.(err, todo);\n throw err;\n}\n\n// src/inject.ts\nvar currentResolution = null;\nvar NOOP = () => {\n};\nvar MAX_RECURSION_DEPTH_BEFORE_FLAGGING_CIRCULAR_NODES = 65535;\nvar Scopes = /* @__PURE__ */ ((Scopes2) => {\n Scopes2[Scopes2[\"Singleton\"] = 0] = \"Singleton\";\n Scopes2[Scopes2[\"Transient\"] = 1] = \"Transient\";\n Scopes2[Scopes2[\"Scoped\"] = 2] = \"Scoped\";\n Scopes2[Scopes2[\"Unknown\"] = 3] = \"Unknown\";\n return Scopes2;\n})(Scopes || {});\nvar registry = [];\nfunction INTERNAL_register(token, someValue, settings, __fake__reflection) {\n registry.push({\n token,\n someValue,\n settings\n });\n if (__fake__reflection != null) {\n INTERNAL_setCachedReflection(token, __fake__reflection);\n }\n}\nfunction getResolveScopeRef() {\n if (currentResolution == null)\n throw new Error(\"Could not reach the current injector\");\n return currentResolution;\n}\nfunction resolve(token) {\n return getResolveScopeRef().resolve(token);\n}\nfunction clearRegistry() {\n while (registry.length) {\n registry.pop();\n }\n}\nvar REFLECTED_DATA_REGISTRY_CACHE = [];\nfunction INTERNAL_getCachedReflection(reflector) {\n const cachedReflection = REFLECTED_DATA_REGISTRY_CACHE.find((x) => x.key === reflector);\n if (cachedReflection != null)\n return cachedReflection.value;\n if (Injectable.lookup !== NOOP) {\n const reflectedData = INTERNAL_setCachedReflection(reflector, Injectable.lookup(reflector));\n return reflectedData.value;\n }\n return [];\n}\nfunction INTERNAL_setCachedReflection(reflector, reflectedTokens) {\n const cachedReflection = REFLECTED_DATA_REGISTRY_CACHE.find((x) => x.key === reflector);\n if (cachedReflection != null)\n return cachedReflection;\n const newCachedReflectionData = {\n key: reflector,\n value: reflectedTokens\n };\n REFLECTED_DATA_REGISTRY_CACHE.push(newCachedReflectionData);\n return newCachedReflectionData;\n}\nfunction Injectable(settings, __fake__reflection) {\n const scope = settings?.scope ?? settings?.lifetime ?? 2 /* Scoped */;\n return function decorate(ctor) {\n INTERNAL_register(\n ctor,\n ctor,\n {\n scope\n },\n __fake__reflection\n );\n };\n}\nfunction register(token, someValue, scope) {\n INTERNAL_register(token, someValue, {\n scope: scope ?? 2 /* Scoped */\n });\n}\nInjectable.naughtyReflection = INTERNAL_setCachedReflection;\nInjectable.lookup = NOOP;\nInjectable.register = register;\nvar Container = class _Container {\n static instanceCounter = 0;\n id;\n singletons;\n scoped;\n parentScope;\n hotRegistrationRegister;\n constructor(parentScope, shouldInherit = true) {\n this.id = _Container.instanceCounter++;\n this.scoped = [];\n this.parentScope = shouldInherit ? parentScope ?? null : null;\n this.singletons = parentScope?.singletons ?? [];\n this.hotRegistrationRegister = parentScope?.hotRegistrationRegister ?? [];\n }\n /**\n * Given the current context, it'll try to find any resolved Singletons or Scoped instances.\n *\n * @throws Will throw an error if dependency is not registered.\n */\n getPotentialResolvedDependency(dependencyToken) {\n const registration = this.scanRegistration(dependencyToken);\n if (registration == null) {\n throw new Error(`Dependency not registered: ${dependencyToken.toString()}`);\n }\n const resolved = this.scanResolved(registration);\n if (resolved != null)\n return [resolved.instance, registration];\n return [null, registration];\n }\n scanRegistration(dependencyToken) {\n let registration = null;\n for (let index = registry.length; index > 0; index--) {\n const item = registry[index - 1];\n if (item.token === dependencyToken) {\n registration = item;\n break;\n }\n }\n if (this.hotRegistrationRegister.length > 0) {\n for (const hotRegistration of this.hotRegistrationRegister) {\n if (hotRegistration.token === dependencyToken) {\n if (registration) {\n registration.someValue = hotRegistration.someValue;\n } else {\n registration = hotRegistration;\n }\n break;\n }\n }\n }\n if (registration != null) {\n return registration;\n }\n return null;\n }\n scanRegistrationStrict(dependencyToken) {\n const registration = this.scanRegistration(dependencyToken);\n if (registration == null)\n throw new Error(`Could not retrieve registration. \"${unwrapTokenForPrint(dependencyToken)}\"`);\n return registration;\n }\n scanResolved(registration) {\n if (registration.settings.scope === 0 /* Singleton */) {\n return this.singletons.find((x) => x.token === registration.token) ?? null;\n }\n if (registration.settings.scope === 2 /* Scoped */) {\n return this.scoped.find((x) => x.token === registration.token) ?? this.lookThroughInheritedScopesToFindResolved(registration) ?? null;\n }\n return null;\n }\n addHotRegistration(dependencyToken, value, scope) {\n this.hotRegistrationRegister.push({\n token: dependencyToken,\n someValue: value,\n settings: {\n scope: scope ?? 3 /* Unknown */\n }\n });\n }\n /**\n * Don't use this in application code. It's for specifically running certain tests, expect lot of side effects.\n */\n clearHotRegistration() {\n this.hotRegistrationRegister = [];\n }\n /**\n * Don't use this in application code. It's for specifically running certain tests, expect lot of side effects.\n */\n clearSingletons() {\n this.singletons = [];\n }\n /**\n * Don't use this in application code. It's for specifically running certain tests, expect lot of side effects.\n */\n clearScoped() {\n this.scoped = [];\n }\n /**\n * Don't use this in application code. It's for specifically running certain tests, expect lot of side effects.\n */\n clearInheritedScoped() {\n this.parentScope = null;\n }\n /**\n * Don't use this in application code. It's for specifically running certain tests, expect lot of side effects.\n */\n clearAll() {\n this.clearSingletons();\n this.clearScoped();\n this.clearInheritedScoped();\n this.clearHotRegistration();\n }\n lookThroughInheritedScopesToFindResolved(registration) {\n let parent = this.parentScope;\n while (parent != null) {\n const resolved = parent.scoped.find((x) => x.token === registration.token);\n if (resolved) {\n return resolved;\n }\n parent = parent.parentScope;\n }\n return null;\n }\n};\nvar Resolution = class _Resolution {\n static instanceCounter = 0;\n id;\n container;\n constructor(container) {\n this.id = _Resolution.instanceCounter++;\n this.container = container;\n }\n resolve(dependencyToken) {\n currentResolution = this;\n const [resolved, registration] = this.container.getPotentialResolvedDependency(dependencyToken);\n if (resolved != null)\n return resolved;\n const dependenciesForEachDependency = /* @__PURE__ */ new Map();\n const dependencyGraph = new Graph((node) => node.id);\n const transients = [];\n const nodeStack = [this.step_one_createNode(registration, null)];\n let depth = 0;\n while (nodeStack.length > 0) {\n const node = nodeStack.pop();\n if (node == null)\n throw new Error(\"Undefined behavior, how did you end up here?\");\n if (depth++ > MAX_RECURSION_DEPTH_BEFORE_FLAGGING_CIRCULAR_NODES)\n throw new Error(\"Reach max depth, recursive dependency?\");\n dependencyGraph.lookupOrInsertNode(node);\n const dependencies = INTERNAL_getCachedReflection(node.registration.token);\n const registrations = dependencies.map((dependency) => this.container.scanRegistrationStrict(dependency));\n for (const registration2 of registrations) {\n if (registration2 == null)\n throw new Error(\"A dependency was not registered.\");\n const newEdge = this.step_one_createNode(registration2, node.parent);\n dependencyGraph.insertEdge(node, newEdge);\n nodeStack.push(newEdge);\n }\n dependenciesForEachDependency.set(node.registration.token, registrations);\n }\n depth = 0;\n while (true) {\n if (depth++ > MAX_RECURSION_DEPTH_BEFORE_FLAGGING_CIRCULAR_NODES)\n throw new Error(\"Reach max depth, recursive dependency?\");\n const edges = dependencyGraph.edges();\n if (edges.length === 0) {\n if (!dependencyGraph.isEmpty())\n throw new Error(\"Graph contains nodes which never got removed.\");\n break;\n }\n for (const edge of edges) {\n const registration2 = edge.data.registration;\n const token = registration2.token;\n const factory = registration2.someValue;\n dependencyGraph.removeNode(edge.data.id);\n if (typeof token === \"symbol\") {\n todo(\"Non ctor injection\");\n } else {\n let resolved2 = registration2 ? this.container.scanResolved(registration2) : null;\n if (resolved2 == null) {\n const args = this.step_two_retrieveArgs(token, dependenciesForEachDependency, transients);\n const instance2 = new /* As Ctor */\n factory(...args);\n resolved2 = {\n instance: instance2,\n token\n };\n }\n if (registration2.settings.scope === 0 /* Singleton */) {\n this.container.singletons.push(resolved2);\n continue;\n }\n if (registration2.settings.scope === 2 /* Scoped */) {\n this.container.scoped.push(resolved2);\n continue;\n }\n if (registration2.settings.scope === 1 /* Transient */) {\n transients.push(resolved2);\n continue;\n }\n throw new Error(\"Unknown scope\");\n }\n }\n }\n let instance;\n if (registration.settings.scope === 1 /* Transient */) {\n instance = transients[transients.length - 1].instance;\n } else {\n const newResolved = this.container.scanResolved(registration);\n if (newResolved == null) {\n todo(\"Cannot get the complete resolution\");\n }\n instance = newResolved.instance;\n }\n currentResolution = null;\n return instance;\n }\n step_one_createNode(registration, parent) {\n let id = registration.token;\n if (registration.settings.scope === 1 /* Transient */) {\n id = Symbol(\"force new edge\");\n }\n return {\n id,\n registration,\n parent\n };\n }\n step_two_retrieveArgs(token, depRef, transients) {\n const lookupDependencies = depRef.get(token) ?? [];\n const args = [];\n for (const dep of lookupDependencies) {\n let instance;\n if (dep.settings.scope === 1 /* Transient */) {\n const i = transients.findIndex((x) => x.token === dep.token);\n if (i === -1) {\n throw new Error(\"Could not find a transient instance\");\n }\n instance = transients[i].instance;\n transients.splice(i, 1);\n } else {\n const resolved = this.container.scanResolved(dep);\n if (resolved == null) {\n todo(\"Failed to a resolved dep\");\n }\n instance = resolved.instance;\n }\n args.push(instance);\n }\n return args;\n }\n};\nfunction unwrapTokenForPrint(token) {\n if (token instanceof Symbol) {\n return token.toString();\n }\n return token.toString();\n}\nfunction Transient() {\n return (ctor) => {\n INTERNAL_register(ctor, ctor, {\n scope: 1 /* Transient */\n });\n };\n}\nfunction Scoped() {\n return (ctor) => {\n INTERNAL_register(ctor, ctor, {\n scope: 2 /* Scoped */\n });\n };\n}\nfunction Singleton() {\n return (ctor) => {\n INTERNAL_register(ctor, ctor, {\n scope: 0 /* Singleton */\n });\n };\n}\n\n// src/injector.ts\nvar Injector = class {\n currentResolution = getResolveScopeRef();\n resolve(dependencyToken) {\n return this.currentResolution.resolve(dependencyToken);\n }\n};\nInjector = __decorateClass([\n Injectable()\n], Injector);\nInjectable.naughtyReflection(Injector, []);\nfunction useConstant(factory) {\n const historyRef = useRef();\n if (historyRef.current == null) {\n historyRef.current = factory();\n }\n return historyRef.current;\n}\nvar GlobalResolutionContext = createContext(new Resolution(new Container()));\nfunction NewContainer(props) {\n let backwards_compatible__inheritFrom;\n if (props.parentContainer != null) {\n backwards_compatible__inheritFrom = props.parentContainer.container;\n } else if (props.inheritFrom != null) {\n backwards_compatible__inheritFrom = props.inheritFrom;\n } else {\n backwards_compatible__inheritFrom = null;\n }\n let backwards_compatible__useInheritanceLink;\n if (props.useInheritanceLink != null) {\n backwards_compatible__useInheritanceLink = props.useInheritanceLink;\n } else if (props.shouldInheritScopes != null) {\n backwards_compatible__useInheritanceLink = props.shouldInheritScopes;\n } else {\n backwards_compatible__useInheritanceLink = true;\n }\n const globalResolutionCtx = useContext(GlobalResolutionContext);\n const container = useConstant(\n () => new Resolution(\n new Container(backwards_compatible__inheritFrom ?? globalResolutionCtx.container, backwards_compatible__useInheritanceLink)\n )\n );\n return /* @__PURE__ */ jsx(GlobalResolutionContext.Provider, { value: container, children: props.children });\n}\nfunction useResolve(dependencyToken) {\n const globalResolutionCtx = useContext(GlobalResolutionContext);\n const value = useConstant(() => globalResolutionCtx.resolve(dependencyToken));\n return value;\n}\nfunction useResolveLifecycle(dependencyToken, ...params) {\n const globalResolutionCtx = useContext(GlobalResolutionContext);\n const hasBeenResolved = useConstant(() => {\n const container = globalResolutionCtx.container;\n const registration = container.scanRegistration(dependencyToken);\n if (registration == null)\n return false;\n const instance2 = container.scanResolved(registration);\n return instance2 != null;\n });\n const instance = useConstant(() => globalResolutionCtx.resolve(dependencyToken));\n const hasCalledMount = useRef(false);\n const latestParams = useRef(params);\n useLayoutEffect(\n function ReactLifeCycleTapIn() {\n if (hasCalledMount.current) {\n latestParams.current = params;\n boxFn(instance.whenUpdate?.bind(instance), latestParams.current);\n return;\n }\n hasCalledMount.current = true;\n if (hasBeenResolved) {\n boxFn(instance.whenRepeatedlyMount?.bind(instance), params);\n } else {\n boxFn(instance.whenMount?.bind(instance), params);\n }\n },\n [instance, params]\n );\n useLayoutEffect(() => {\n return () => {\n boxFn(instance.whenDemount?.bind(instance), latestParams.current);\n };\n }, [instance]);\n return instance;\n}\nfunction boxFn(fn, params) {\n try {\n const response = fn?.(...params);\n if (response instanceof Promise) {\n response.catch((error) => {\n printBoxedError(error);\n });\n }\n } catch (error) {\n printBoxedError(error);\n }\n}\nfunction printBoxedError(exception) {\n let error;\n if (exception instanceof Error) {\n error = exception;\n } else {\n error = new Error(\"unknown\", {\n cause: exception\n });\n }\n console.error(error);\n}\nvar useService = useResolve;\n\n// src/testing.ts\nfunction createTestBed() {\n return new TestBed();\n}\nvar TestBed = class {\n resolution;\n container;\n constructor() {\n this.container = new Container();\n this.resolution = new Resolution(this.container);\n }\n resolve(dependencyToken) {\n return this.resolution.resolve(dependencyToken);\n }\n mockRegister(token, factory, lifeTime) {\n this.container.addHotRegistration(token, factory, lifeTime);\n }\n clearMocks() {\n this.container.clearHotRegistration();\n }\n};\nfunction withNewContainer(Component) {\n return function(props) {\n return /* @__PURE__ */ jsx(NewContainer, { children: /* @__PURE__ */ jsx(Component, { ...props }) });\n };\n}\n\nexport { Container, Injectable, Injector, NewContainer, Resolution, Scoped, Scopes, Singleton, Transient, clearRegistry, createTestBed, resolve, useResolve, useResolveLifecycle as useResolveController, useService, withNewContainer };\n//# sourceMappingURL=out.js.map\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar logger_1 = require(\"./logger\");\nObject.defineProperty(exports, \"Logger\", { enumerable: true, get: function () { return logger_1.Logger; } });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Logger = void 0;\n/**\n * # cortex:logger\n */\nvar Logger;\n(function (Logger) {\n const DETAILS = 'numeric';\n const LOCALE = 'en';\n let Level;\n (function (Level) {\n Level[Level[\"ERROR\"] = 1] = \"ERROR\";\n Level[Level[\"WARN\"] = 2] = \"WARN\";\n Level[Level[\"INFO\"] = 4] = \"INFO\";\n Level[Level[\"DEBUG\"] = 8] = \"DEBUG\";\n Level[Level[\"VERBOSE\"] = 16] = \"VERBOSE\";\n Level[Level[\"NONE\"] = 0] = \"NONE\";\n })(Level = Logger.Level || (Logger.Level = {}));\n // Bit value, 0 = none\n let flag = Level.NONE;\n let printFns;\n setPrintFn({\n warn: console.warn,\n error: console.error,\n info: console.info,\n verbose: console.log,\n });\n function assert(level, message) {\n const timestamp = new Date();\n const hour = new Intl.DateTimeFormat(LOCALE, { hour: DETAILS }).format(timestamp);\n const minute = new Intl.DateTimeFormat(LOCALE, { minute: DETAILS }).format(timestamp);\n const second = new Intl.DateTimeFormat(LOCALE, { second: DETAILS }).format(timestamp);\n const str = `[${levelEnumToString(level)} - ${hour}:${minute}:${second}] ${message}`;\n if ((level & flag) === level) {\n printMessage(str, level);\n }\n }\n Logger.assert = assert;\n function setLevel(level) {\n const newFlag = getBitFlag(level);\n flag = newFlag;\n }\n Logger.setLevel = setLevel;\n function setPrintFn(fns) {\n printFns = fns;\n }\n Logger.setPrintFn = setPrintFn;\n function printMessage(str, level) {\n if (level === Level.ERROR) {\n printFns.error(str);\n return;\n }\n if (level === Level.WARN) {\n printFns.warn(str);\n return;\n }\n if (level === Level.INFO) {\n printFns.info(str);\n return;\n }\n printFns.verbose(str);\n }\n function levelEnumToString(level) {\n if ((level & Level.ERROR) === Level.ERROR)\n return 'error';\n if ((level & Level.WARN) === Level.WARN)\n return 'warn';\n if ((level & Level.INFO) === Level.INFO)\n return 'info';\n if ((level & Level.DEBUG) === Level.DEBUG)\n return 'debug';\n if ((level & Level.VERBOSE) === Level.VERBOSE)\n return 'verbose';\n throw new Error('Can not assert with level \"none\"');\n }\n function getBitFlag(level) {\n let bitWise;\n switch (level) {\n case Level.ERROR:\n bitWise = Level.ERROR;\n break;\n case Level.WARN:\n bitWise = Level.WARN | Level.ERROR;\n break;\n case Level.INFO:\n bitWise = Level.INFO | Level.WARN | Level.ERROR;\n break;\n case Level.DEBUG:\n bitWise = Level.DEBUG | Level.INFO | Level.WARN | Level.ERROR;\n break;\n case Level.VERBOSE:\n bitWise = Level.VERBOSE | Level.DEBUG | Level.INFO | Level.WARN | Level.ERROR;\n break;\n default:\n bitWise = 0;\n }\n return bitWise;\n }\n})(Logger = exports.Logger || (exports.Logger = {}));\n","import { EventEmitter } from '@visiba-cortex/std';\nimport { useEffect, useReducer } from 'react';\n\n// src/_debug_hook.ts\n\n// src/subscribable/common.ts\nvar PRESENTATION_DEBUG_REF = \"__cortex_presentation_debug_ref__\";\nvar PRESENTATION_DEBUG_HOOK = \"__cortex_presentation_debug_hook__\";\n\n// src/_debug_hook.ts\nglobalThis[PRESENTATION_DEBUG_REF] ?? (globalThis[PRESENTATION_DEBUG_REF] = /* @__PURE__ */ new WeakSet());\nglobalThis[PRESENTATION_DEBUG_HOOK] ?? (globalThis[PRESENTATION_DEBUG_HOOK] = new EventEmitter());\n\n// src/data_struct/fixed_size_impl.ts\nvar FixedSizeImpl = class {\n storedData = /* @__PURE__ */ new Map();\n keys;\n constructor(data) {\n this.keys = new Set(Object.keys(data));\n this.insert(data);\n }\n insert(fromObject) {\n const changeSet = /* @__PURE__ */ new Set();\n for (const key in fromObject) {\n const preValue = this.storedData.get(key);\n changeSet.add(key);\n if (!this.keys.has(key)) {\n this.keys.add(key);\n } else if (typeof preValue === \"object\" && preValue === fromObject[key]) {\n this.storedData.set(key, fromObject[key]);\n continue;\n }\n this.storedData.set(key, fromObject[key]);\n }\n return changeSet;\n }\n extract() {\n const builder = {};\n for (const key of this.keys.values()) {\n builder[key] = this.storedData.get(key);\n }\n return builder;\n }\n toIter() {\n return this.storedData.entries();\n }\n};\n\n// src/subscribable/flow_presentation.ts\nvar Flow = /* @__PURE__ */ ((Flow3) => {\n Flow3[Flow3[\"ACCESSIBLE\"] = 0] = \"ACCESSIBLE\";\n Flow3[Flow3[\"UNSET\"] = 1] = \"UNSET\";\n Flow3[Flow3[\"PENDING\"] = 2] = \"PENDING\";\n Flow3[Flow3[\"ERROR\"] = 3] = \"ERROR\";\n return Flow3;\n})(Flow || {});\nvar FlowPresentation = class {\n error = null;\n flowState = 1 /* UNSET */;\n data = null;\n hooks = /* @__PURE__ */ new Map();\n constructor(spec = {}) {\n if (globalThis[PRESENTATION_DEBUG_REF]) {\n globalThis[PRESENTATION_DEBUG_REF].add(this);\n }\n const { initialValue, designatedFlowState } = spec;\n if (designatedFlowState !== void 0)\n this.flowState = designatedFlowState;\n if (initialValue) {\n this.data = new FixedSizeImpl(initialValue);\n }\n }\n subscribe(event) {\n const id = Symbol();\n this.hooks.set(id, event);\n return () => {\n this.hooks.delete(id);\n };\n }\n unsafeWrite(currentState) {\n if (!this.data)\n throw new Error(\"data need to first be set\");\n try {\n const newState = currentState instanceof Function ? currentState(this.data) : currentState;\n const changeSet = this.data.insert(newState);\n this.error = null;\n this.flowState = 0 /* ACCESSIBLE */;\n this.dispatch(changeSet);\n } catch (error) {\n this.error = new Error(`could not mutate the state:\n\n${error}`);\n this.flowState = 3 /* ERROR */;\n this.dispatch();\n }\n }\n read() {\n switch (this.flowState) {\n case 2 /* PENDING */:\n case 1 /* UNSET */:\n case 3 /* ERROR */:\n return [void 0, this.flowState];\n default: {\n if (!this.data) {\n this.flowState = 1 /* UNSET */;\n return [this.flowState, 1 /* UNSET */];\n }\n return [this.data.extract(), this.flowState];\n }\n }\n }\n peekState() {\n const [state] = this.read();\n return state;\n }\n changeFlowTo(action) {\n this.flowState = action;\n this.dispatch();\n }\n overwriteData(state) {\n this.data = new FixedSizeImpl(state);\n }\n dispatch(changeSet) {\n this.hooks.forEach((hook) => hook(changeSet));\n }\n};\n\n// src/subscribable/concurrent_presentation.tsx\nvar ConcurrentPresentation = class {\n state;\n suspender = null;\n error = null;\n fallback = null;\n constructor(initialValue) {\n if (globalThis[PRESENTATION_DEBUG_REF]) {\n globalThis[PRESENTATION_DEBUG_REF].add(this);\n }\n this.state = new FlowPresentation({\n initialValue,\n designatedFlowState: 1 /* UNSET */\n });\n }\n read() {\n if (this.state.flowState === 0 /* ACCESSIBLE */) {\n return this.state.peekState();\n }\n if (this.state.flowState === 3 /* ERROR */) {\n throw this.error;\n }\n throw this.createPromise();\n }\n gracefulDegradation(fallback) {\n this.fallback = fallback;\n }\n suspend(promise, parseFn) {\n this.createPromise();\n this.error = null;\n this.state.flowState = 2 /* PENDING */;\n const writeBlock = (response) => {\n const fn = () => parseFn ? parseFn(response) : response;\n try {\n this.state.unsafeWrite(fn);\n } catch (error) {\n this.state.overwriteData(fn());\n this.state.changeFlowTo(0 /* ACCESSIBLE */);\n }\n };\n promise.then(writeBlock, async (error) => {\n if (!this.fallback) {\n this.error = error;\n this.state.changeFlowTo(3 /* ERROR */);\n return;\n }\n try {\n const resolve = await this.fallback(error);\n if (resolve instanceof Error)\n throw resolve;\n if (!resolve) {\n this.error = error;\n this.state.changeFlowTo(3 /* ERROR */);\n return;\n }\n writeBlock(resolve);\n } catch (fallbackError) {\n this.error = fallbackError;\n this.state.changeFlowTo(3 /* ERROR */);\n }\n });\n return this;\n }\n unsafeWrite(currentState) {\n this.state.unsafeWrite(currentState);\n }\n unsafeRead() {\n const [state] = this.state.read();\n return state;\n }\n subscribe(event) {\n return this.state.subscribe(event);\n }\n createPromise() {\n if (!this.suspender) {\n this.suspender = new Promise((resolve) => {\n const disposer = this.state.subscribe(() => {\n switch (this.state.flowState) {\n case 1 /* UNSET */:\n case 2 /* PENDING */:\n break;\n default: {\n disposer();\n resolve();\n this.suspender = null;\n }\n }\n });\n });\n }\n return this.suspender;\n }\n};\n\n// src/subscribable/synchronous_presentation.ts\nvar SynchronousPresentation = class {\n data;\n hooks = /* @__PURE__ */ new Map();\n constructor(initialValue) {\n if (globalThis[PRESENTATION_DEBUG_REF]) {\n globalThis[PRESENTATION_DEBUG_REF].add(this);\n }\n if (typeof initialValue !== \"object\") {\n throw new Error(\"a state can only be represented as an object literal\");\n }\n this.data = new FixedSizeImpl(initialValue);\n }\n subscribe(event) {\n const id = Symbol();\n this.hooks.set(id, event);\n return () => {\n this.hooks.delete(id);\n };\n }\n write(currentState) {\n try {\n const newState = currentState instanceof Function ? currentState(this.data) : currentState;\n const changeSet = this.data.insert(newState);\n this.dispatch(changeSet);\n } catch (error) {\n console.error(`could not mutate the state:\n\n${error}`);\n }\n }\n read() {\n return this.data.extract();\n }\n dispatch(changeSet) {\n this.hooks.forEach((hook) => hook(changeSet));\n }\n};\nfunction useMisbehavedForceUpdate() {\n const [_, forceUpdate] = useReducer((x) => x + 1, 0);\n return forceUpdate;\n}\n\n// src/use_presentation.tsx\nfunction usePresentation(presentation, triggers) {\n const forceUpdate = useMisbehavedForceUpdate();\n useEffect(() => {\n globalThis[PRESENTATION_DEBUG_HOOK].emit(\"add\", presentation);\n const disposer = presentation.subscribe((changeSet) => {\n if (triggers && changeSet) {\n const shouldUpdate = triggers.find((trigger) => {\n return changeSet.has(trigger);\n });\n if (shouldUpdate) {\n forceUpdate();\n }\n return;\n }\n forceUpdate();\n });\n return () => {\n globalThis[PRESENTATION_DEBUG_HOOK].emit(\"remove\", presentation);\n disposer();\n };\n }, [presentation, triggers]);\n return presentation.read();\n}\n\n// src/presentation.ts\nvar Presentation;\n((Presentation2) => {\n function create(initialValue) {\n return new SynchronousPresentation(initialValue);\n }\n Presentation2.create = create;\n function createConcurrent(initialValue) {\n return new ConcurrentPresentation(initialValue);\n }\n Presentation2.createConcurrent = createConcurrent;\n function createFlow(spec = {}) {\n return new FlowPresentation({\n initialValue: spec.initialValue,\n designatedFlowState: spec.designatedFlowState\n });\n }\n Presentation2.createFlow = createFlow;\n})(Presentation || (Presentation = {}));\n\nexport { ConcurrentPresentation, Flow, FlowPresentation, Presentation, SynchronousPresentation, usePresentation };\n//# sourceMappingURL=out.js.map\n","/**\r\n * ## cortex:std:debug\r\n * Module to \"assert\" certain criteria within the code. If code is being\r\n * executed in a production environment it'll throw an error. If code is being\r\n * executed in a development environment call \"debugger\" first.\r\n *\r\n * ### Code example\r\n *\r\n * ```ts\r\n * const valueFromService = getValueFromService()!;\r\n * // throws an error if null or undefined. If dev env it'll launch the debugger before the throw\r\n * Debug.assertDeclared(valueFromService);\r\n *\r\n * // continue with valueFromService being defined\r\n * ```\r\n */\r\nexport var Debug;\r\n(function (Debug) {\r\n /** Asserts value's truthiness, if false -> fail */\r\n function assert(expression, message) {\r\n if (!expression) {\r\n fail(`error ${message}`);\r\n }\r\n }\r\n Debug.assert = assert;\r\n /** Asserts that value is not undefined or null */\r\n function assertDeclared(value, message) {\r\n if (typeof value === 'undefined' || value === null) {\r\n fail(`error ${message}`);\r\n }\r\n return true;\r\n }\r\n Debug.assertDeclared = assertDeclared;\r\n function fail(message) {\r\n if (process.env.NODE_ENV === 'development') {\r\n debugger;\r\n }\r\n throw new Error(message);\r\n }\r\n})(Debug || (Debug = {}));\r\n","export class Timer {\r\n constructor() {\r\n this.disposers = new Map();\r\n this.registeredId = 0;\r\n }\r\n wait(callback, duration) {\r\n // @ts-ignore TODO fix so node types does not interfere with DOM lib\r\n const timeout = setTimeout(callback, duration);\r\n const disposer = () => {\r\n clearTimeout(timeout);\r\n };\r\n return this.registerDisposer(disposer);\r\n }\r\n repeat(callback, duration, callOnceOnInvoke = false) {\r\n if (callOnceOnInvoke) {\r\n callback();\r\n }\r\n // @ts-ignore TODO fix so node types does not interfere with DOM lib\r\n const interval = setInterval(callback, duration);\r\n const disposer = () => {\r\n clearInterval(interval);\r\n };\r\n return this.registerDisposer(disposer);\r\n }\r\n flush() {\r\n this.disposers.forEach((disposer) => disposer());\r\n }\r\n registerDisposer(disposer) {\r\n let localUid = this.registeredId++;\r\n this.disposers.set(localUid, disposer);\r\n return () => {\r\n this.disposers.delete(localUid);\r\n disposer();\r\n };\r\n }\r\n}\r\n/**\r\n * ## cortex:std:timer\r\n * Wrapper around JavaScript's setTimeout and setInterval to provide a more\r\n * intuitive api interface\r\n */\r\n(function (Timer) {\r\n function wait(...args) {\r\n const time = new Timer();\r\n time.wait(...args);\r\n return time.flush.bind(time);\r\n }\r\n Timer.wait = wait;\r\n function repeat(...args) {\r\n const time = new Timer();\r\n time.repeat(...args);\r\n return time.flush.bind(time);\r\n }\r\n Timer.repeat = repeat;\r\n})(Timer || (Timer = {}));\r\n","/**\r\n * ## cortex:std:color\r\n * Exposes an api that you can use to modify brightness of a given hex or check\r\n * if the hex is a dark or light color (based on a YIQ equation)\r\n */\r\nexport var Color;\r\n(function (Color) {\r\n // Only used some functionality from https://github.com/Qix-/color/blob/master/index.js\r\n // since they don't seem to support tree shaking and we're only interested in\r\n // a few lines from that lib anyway\r\n const HEX_REGEX = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;\r\n /**\r\n * Changes the brightness by an amount\r\n *\r\n * @param hex a valid color code, e.g. #1ea0b4\r\n * @param ratio a int value\r\n */\r\n function lightLevel(hex, amount) {\r\n // To visualize how the color changes in a color picker, here's how a\r\n // positive amount effects a color:\r\n // Before running this function, RGB values are: [23, 95, 45] (hex #175F2D)\r\n // - - - - -\r\n // - - - - -\r\n // - - - - -\r\n // - - - x -\r\n // - - - - -\r\n // After running this function with a amount of 40, the new RGB values\r\n // are now: [63, 135, 75] (hex #357D41)\r\n // - - - - -\r\n // - - - - -\r\n // - - x - -\r\n // - - - - -\r\n // - - - - -\r\n // By adding another 40, it'll move linear closer to the top left corner.\r\n // Having a negative amount will move it linear in the other direction\r\n /**\r\n * Scoped helper to deal with overflows\r\n */\r\n function normalizeValue(value) {\r\n if (value > 255) {\r\n return 255;\r\n }\r\n if (value < 0) {\r\n return 0;\r\n }\r\n return value;\r\n }\r\n const rgb = createRgb(hex);\r\n const r = normalizeValue(rgb[0] + amount);\r\n const g = normalizeValue(rgb[1] + amount);\r\n const b = normalizeValue(rgb[2] + amount);\r\n return createHex([r, g, b, 1]);\r\n }\r\n Color.lightLevel = lightLevel;\r\n /**\r\n * Converts a color code to an RGB tuple\r\n *\r\n * @param hex a valid color code, e.g. #1ea0b4\r\n */\r\n function createRgb(hex) {\r\n if (!HEX_REGEX.test(hex)) {\r\n throw new Error('Tried to modify a non hex string');\r\n }\r\n // Hex is base 16\r\n const num = parseInt(hex.slice(1), 16);\r\n const red = num >> 16;\r\n const green = (num >> 8) & 0x00ff;\r\n const blue = num & 0x0000ff;\r\n // The last number in the tuple is alpha, and it's not currently implemented\r\n return [red, green, blue, 1];\r\n }\r\n Color.createRgb = createRgb;\r\n /**\r\n * Converts an RGB tuple to a color code\r\n *\r\n * @param rgb an tuple containing hex decimal values from 0 - 255\r\n */\r\n function createHex(rgb) {\r\n function section(num) {\r\n const str = num.toString(16).toLowerCase();\r\n return str.length < 2 ? `0${str}` : str;\r\n }\r\n return `#${section(rgb[0])}${section(rgb[1])}${section(rgb[2])}`;\r\n }\r\n Color.createHex = createHex;\r\n /**\r\n * Checks if a color is \"dark\" based on a YIQ equation\r\n * The one being used can be found here:\r\n * http://24ways.org/2010/calculating-color-contrast\r\n *\r\n * @param hex a valid color code, e.g. #1ea0b4\r\n */\r\n function isDark(hex) {\r\n // YIQ equation from http://24ways.org/2010/calculating-color-contrast\r\n const rgb = createRgb(hex);\r\n const yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;\r\n return yiq < 128;\r\n }\r\n Color.isDark = isDark;\r\n /**\r\n * Checks if a color is \"light\" based on a YIQ equation.\r\n * The one being used can be found here:\r\n * http://24ways.org/2010/calculating-color-contrast\r\n *\r\n * @param hex a valid color code, e.g. #1ea0b4\r\n */\r\n function isLight(hex) {\r\n return !isDark(hex);\r\n }\r\n Color.isLight = isLight;\r\n})(Color || (Color = {}));\r\n","export class Emitter {\r\n constructor() {\r\n this.events = Object.create(null);\r\n }\r\n on(event, handler) {\r\n (this.events[event] || (this.events[event] = [])).push(handler);\r\n }\r\n off(event, handler) {\r\n if (!this.events[event])\r\n return;\r\n this.events[event].splice(this.events[event].indexOf(handler) >>> 0, 1);\r\n }\r\n emit(event, data) {\r\n (this.events[event] || []).forEach((handler) => {\r\n handler(data);\r\n });\r\n }\r\n}\r\n","export class Vec2 {\r\n constructor(x, y) {\r\n this.x = x;\r\n this.y = y;\r\n }\r\n getAsObj() {\r\n return {\r\n x: this.x,\r\n y: this.y,\r\n };\r\n }\r\n}\r\n","import { Timer } from './timer';\r\n/**\r\n * ## cortex:std:retry\r\n * Module for retrying a given function either x amount of times\r\n * or every x seconds\r\n */\r\nexport var Retry;\r\n(function (Retry) {\r\n /** Retry a function every x amount of seconds, regardless of success or failure */\r\n Retry.byBruteForce = (fn, options) => {\r\n const defaultOption = {\r\n every: 1000,\r\n for: 1,\r\n hooks: [],\r\n ...(options ? options : {}),\r\n };\r\n return new Promise((resolve, reject) => {\r\n let attempts = 0;\r\n let finishedRequest = false;\r\n const disposer = Timer.repeat(() => {\r\n proxy(attempts++);\r\n }, defaultOption.every, true);\r\n async function proxy(attempt) {\r\n var _a;\r\n if (attempt > defaultOption.for && !finishedRequest) {\r\n disposer();\r\n reject(`request did not finish in ${defaultOption.for} attempts`);\r\n }\r\n try {\r\n const resolvedIntoThis = await fn();\r\n if (!finishedRequest) {\r\n disposer();\r\n finishedRequest = true;\r\n resolve(resolvedIntoThis);\r\n }\r\n }\r\n catch (error) {\r\n (_a = defaultOption.hooks) === null || _a === void 0 ? void 0 : _a.forEach((hook) => hook());\r\n }\r\n }\r\n });\r\n };\r\n /** Retry a function for a given amount of times in case if fails */\r\n Retry.the = (fn, options) => {\r\n const defaultOption = {\r\n againAfter: 1000,\r\n for: 1,\r\n hooks: [],\r\n ...(options ? options : {}),\r\n };\r\n return new Promise((resolve, reject) => {\r\n let attempts = 0;\r\n async function proxy(attempt) {\r\n var _a;\r\n try {\r\n const resolvedIntoThis = await fn();\r\n resolve(resolvedIntoThis);\r\n }\r\n catch (error) {\r\n (_a = defaultOption.hooks) === null || _a === void 0 ? void 0 : _a.forEach((hook) => hook());\r\n if (attempt <= defaultOption.for) {\r\n retry();\r\n }\r\n else {\r\n reject(error);\r\n }\r\n }\r\n }\r\n function retry() {\r\n setTimeout(() => {\r\n proxy(attempts++);\r\n }, defaultOption.againAfter);\r\n }\r\n proxy(attempts++);\r\n });\r\n };\r\n})(Retry || (Retry = {}));\r\n","/**\r\n * ## cortex:std:ArgumentError\r\n * Custom error type to throw when argument checking fails.\r\n */\r\nexport class ArgumentError extends Error {\r\n constructor(message) {\r\n super(message);\r\n this.message = message;\r\n this.name = 'ArgumentError';\r\n Object.setPrototypeOf(this, ArgumentError.prototype);\r\n }\r\n}\r\n","/**\r\n * ## cortex:std:ApplicationError\r\n * Custom error type to throw when application flow fails.\r\n */\r\nexport class ApplicationError extends Error {\r\n constructor(message) {\r\n super(message);\r\n this.message = message;\r\n this.name = 'ApplicationError';\r\n Object.setPrototypeOf(this, ApplicationError.prototype);\r\n }\r\n}\r\n","import React, { useRef, useState, forwardRef, useEffect, Fragment } from 'react';\nimport styled, { createGlobalStyle } from 'styled-components';\nimport { jsx, jsxs } from 'react/jsx-runtime';\nimport { Emitter, Vec2 } from '@visiba-cortex/std';\nimport { motion } from 'framer-motion';\nimport { createPortal } from 'react-dom';\nimport { Logger } from '@visiba-cortex/logger';\nimport DOMPurify from 'dompurify';\n\n/**\r\n * # cortex:react-ui-std:helper:focusContext\r\n *\r\n * Simple storage to mutate the current focused DOM element.\r\n */\nconst focusContext = {\n current: null\n};\n\n// The base_button component does not include \"cursor: pointer;\" due to\n// official standards specifying that: \"The cursor is a pointer that indicates\n// a link.\" https://www.w3.org/TR/CSS21/ui.html#propdef-cursor\n//\n// Microsoft and Apple also specifies that the \"correct\" interaction is to\n// reserve the pointing hand to URL links\n// https://docs.microsoft.com/en-gb/windows/win32/uxguide/inter-mouse?redirectedfrom=MSDN\n// https://developer.apple.com/design/human-interface-guidelines/macos/user-interaction/mouse-and-trackpad/\n//\n// If you'd want to have buttons with cursors, that's fine, but you'll need to\n// extend the base_button component in order to get that interaction\nconst elements$c = {\n content: styled.button.withConfig({\n displayName: \"base_buttoncomponent__content\",\n componentId: \"sc-1imqvhh-0\"\n })([\"border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;\"])\n};\n/**\r\n * # cortex:react-ui-std:comp:BaseButton\r\n */\n\nconst BaseButton = ({ ...props\n}) => {\n // Takes out these values to be used as variables here.\n const {\n children,\n className,\n disabled,\n // Takes out focus events for override.\n onBlur,\n onFocus,\n // Takes out mouse events for override.\n onClick,\n onMouseDown,\n onMouseUp,\n onMouseEnter,\n onMouseLeave,\n // Takes out keyboard events for override.\n onKeyUp,\n onKeyDown,\n // Takes out touch events for override.\n onTouchEnd,\n onTouchMove,\n onTouchStart,\n onMouseMove,\n // defaults.\n tabIndex = 0,\n type = 'button',\n // Spreads anything else.\n ...rest\n } = props;\n const buttonRef = useRef(null);\n const [isFocused, setIsFocus] = useState(false);\n if (disabled && isFocused) setIsFocus(false); // Focus events\n\n function handleBlur(event) {\n setIsFocus(false);\n focusContext.current = null;\n if (onBlur) onBlur(event);\n }\n\n function handleFocus(event) {\n setIsFocus(true);\n focusContext.current = buttonRef.current;\n if (onFocus) onFocus(event);\n } // Mouse events\n\n\n function handleClick(event) {\n if (onClick) onClick(event);\n }\n\n function handleMouseDown(event) {\n if (onMouseDown) onMouseDown(event);\n }\n\n function handleMouseUp(event) {\n if (onMouseUp) onMouseUp(event);\n }\n\n function handleMouseEnter(event) {\n if (onMouseEnter) onMouseEnter(event);\n }\n\n function handleMouseLeave(event) {\n if (onMouseLeave) onMouseLeave(event);\n }\n\n function handleMouseMove(event) {\n if (onMouseMove) onMouseMove(event);\n } // Keyboard events\n\n\n function handleKeyDown(event) {\n if (isFocused && event.key === 'Escape' && focusContext.current) {\n focusContext.current.blur();\n } else if (onKeyDown) {\n onKeyDown(event);\n }\n }\n\n function handleKeyUp(event) {\n if (onKeyUp) onKeyUp(event);\n } // Touch events\n\n\n function handleTouchStart(event) {\n if (onTouchStart) onTouchStart(event);\n }\n\n function handleTouchEnd(event) {\n if (onTouchEnd) onTouchEnd(event);\n }\n\n function handleTouchMove(event) {\n if (onTouchMove) onTouchMove(event);\n }\n\n return /*#__PURE__*/jsx(elements$c.content, {\n ref: buttonRef,\n className: className,\n disabled: disabled,\n tabIndex: disabled ? -1 : tabIndex,\n onBlur: handleBlur,\n onClick: handleClick,\n onFocus: handleFocus,\n onKeyDown: handleKeyDown,\n onKeyUp: handleKeyUp,\n onMouseDown: handleMouseDown,\n onMouseMove: handleMouseMove,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n onMouseUp: handleMouseUp,\n onTouchEnd: handleTouchEnd,\n onTouchMove: handleTouchMove,\n onTouchStart: handleTouchStart,\n type: type,\n ...rest,\n children: children\n });\n};\n\nconst elements$b = {\n baseInput: styled.input.withConfig({\n displayName: \"base_inputcomponent__baseInput\",\n componentId: \"sc-1ga12ih-0\"\n })([\"display:block;font:inherit;color:currentColor;border:0;margin:0;padding:6px 0 7px;display:block;min-width:0;box-sizing:content-box;background:none;-webkit-tap-highlight-color:transparent;outline:none;font-size:1rem;\"])\n};\n/**\r\n * # cortex:react-ui-std:comp:BaseInput\r\n */\n\nconst BaseInput = /*#__PURE__*/forwardRef(function BaseInput(props, ref) {\n const {\n // Takes out these values to be used as variables here.\n className,\n disabled,\n type,\n // defaults.\n tabIndex = 0,\n // Spreads anything else.\n ...rest\n } = props;\n const [isFocused, setIsFocus] = useState(false);\n if (disabled && isFocused) setIsFocus(false);\n return /*#__PURE__*/jsx(elements$b.baseInput, {\n ref: ref,\n \"aria-invalid\": true,\n \"aria-describedby\": '',\n className: className,\n disabled: disabled,\n tabIndex: disabled ? -1 : tabIndex,\n type: type,\n ...rest\n });\n});\n\n/**\r\n * ## cortex:react-ui-std:dangerouslyInjectHTML\r\n * ### 🚨 If you don't know exactly what you're doing, don't ever use this. 🚨\r\n */\nfunction dangerouslyInjectHTML(htmlString) {\n // Reason: We've intentionally not included Node types. But how we're\n // distributing the bundle, this is fine. (Could add a x.d.ts that types\n // process though)\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n if (process.env.NODE_ENV === 'development') {\n console.warn(`\nUnsafe HTML was injected into the DOM, if you know what you're doing you can ignore this message.\nIf not, use the \"sanitizedInjectHTML\" function instead.\n\t\t`);\n }\n\n return {\n __html: htmlString\n };\n}\n\nconst elements$a = {\n svg: styled.svg.withConfig({\n displayName: \"base_iconcomponent__svg\",\n componentId: \"sc-cyh2c-0\"\n })([\"width:1em;height:1em;display:inline-block;vertical-align:text-top;pointer-events:none;fill:currentColor;stroke:currentColor;flex-shrink:0;\", \"\"], ({\n rotation,\n mirror,\n center\n }) => {\n // Needs to concat \"transform\" so they won't interfere with each other\n let transformBuilder = '';\n\n if (rotation !== 0) {\n transformBuilder += `rotate(${rotation}deg) `;\n }\n\n if (mirror !== null) {\n const horizontal = mirror === 'Horizontal' || mirror === true || false;\n const vertical = mirror === 'Vertical' || mirror === true || false;\n\n if (horizontal) {\n transformBuilder += 'scaleX(-1) ';\n }\n\n if (vertical) {\n transformBuilder += 'scaleY(-1) ';\n }\n }\n\n if (center) {\n transformBuilder += 'translateY(50%)';\n return `\n\t\t\t\t\tposition: relative;\n\t\t\t\t\ttop: 50%;\n\t\t\t\t\ttransform: ${transformBuilder.trim()};\n\t\t\t\t\ttransform-origin: 50% 100%;\n\t\t\t\t\tvertical-align: super;\n\t\t\t\t`;\n } else if (transformBuilder !== '') {\n return `transform: ${transformBuilder.trim()};`;\n }\n\n return null;\n })\n};\n/**\r\n * # cortex:react-ui-std:comp:BaseIcon\r\n */\n\nconst BaseIcon = ({\n children,\n viewBox,\n rotation,\n mirror,\n center,\n dangerouslySetInnerHTML\n}) => {\n return /*#__PURE__*/jsx(elements$a.svg, {\n \"data-testid\": \"svg\",\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: viewBox !== null && viewBox !== void 0 ? viewBox : '0 0 512 512',\n rotation: rotation !== null && rotation !== void 0 ? rotation : 0,\n mirror: mirror !== null && mirror !== void 0 ? mirror : null,\n center: center !== null && center !== void 0 ? center : false,\n dangerouslySetInnerHTML: dangerouslySetInnerHTML,\n children: children\n });\n};\n\n/**\r\n * # cortex:react-ui-std:helper:AnchorPointConsumer\r\n */\n\nlet AnchorPointConsumer;\n\n(function (_AnchorPointConsumer) {\n let Events;\n\n (function (Events) {\n Events[Events[\"Update\"] = 0] = \"Update\";\n Events[Events[\"Notify\"] = 1] = \"Notify\";\n })(Events || (Events = {}));\n\n _AnchorPointConsumer.Events = Events;\n const defaultPosition = 'x-';\n const list = _AnchorPointConsumer.list = new Map();\n const notifier = _AnchorPointConsumer.notifier = new Emitter();\n\n class Instance {\n constructor({\n name,\n ref,\n left,\n top\n }) {\n this.vec2 = void 0;\n this.name = void 0;\n this.elementReference = void 0;\n this.top = void 0;\n this.left = void 0;\n this.eventEmitter = new Emitter();\n this.name = name;\n this.elementReference = ref;\n this.top = top !== null && top !== void 0 ? top : defaultPosition;\n this.left = left !== null && left !== void 0 ? left : defaultPosition;\n window.addEventListener('resize', this.handleWindowEvent.bind(this));\n window.addEventListener('scroll', this.handleWindowEvent.bind(this));\n this.vec2 = this.calculatePosition(this.top, this.left);\n }\n\n onChange(fn) {\n this.eventEmitter.on(Events.Update, fn);\n return () => {\n this.eventEmitter.off(Events.Update, fn);\n };\n }\n\n destroy() {\n window.removeEventListener('resize', this.handleWindowEvent.bind(this));\n window.removeEventListener('scroll', this.handleWindowEvent.bind(this));\n }\n\n handleWindowEvent() {\n this.vec2 = this.calculatePosition(this.top, this.left);\n this.eventEmitter.emit(Events.Update, this.vec2);\n }\n\n calculatePosition(top, left) {\n const rect = this.elementReference.getBoundingClientRect();\n\n function returnPercentageOfAnchorPointStr(str) {\n const length = str.length - 1;\n const index = str.indexOf('x');\n if (index === -1) throw new Error('no x');\n return index / length;\n }\n\n const topPercentage = returnPercentageOfAnchorPointStr(top);\n const leftPercentage = returnPercentageOfAnchorPointStr(left);\n const topPosition = rect.y + window.scrollY + rect.height * topPercentage;\n const leftPosition = rect.x + rect.width * leftPercentage;\n return new Vec2(leftPosition, topPosition);\n }\n\n }\n\n function add(configuration) {\n if (list.has(configuration.name)) {\n throw new Error(`Tried to add ${configuration.name} twice`);\n }\n\n list.set(configuration.name, new Instance(configuration));\n notifier.emit(Events.Notify, configuration.name);\n }\n\n _AnchorPointConsumer.add = add;\n\n function destroy(name) {\n if (!list.has(name)) {\n throw new Error(`Could not find an event with the name ${name}`);\n }\n\n const anchorPointInstance = list.get(name);\n anchorPointInstance === null || anchorPointInstance === void 0 ? void 0 : anchorPointInstance.destroy();\n list.delete(name);\n }\n\n _AnchorPointConsumer.destroy = destroy;\n})(AnchorPointConsumer || (AnchorPointConsumer = {}));\n\nconst elements$9 = {\n container: styled.div.withConfig({\n displayName: \"anchor_pointcomponent__container\",\n componentId: \"sc-19k057k-0\"\n })([\"display:contents;\"])\n};\n/**\r\n * # cortex:react-ui-std:comp:AnchorPoint\r\n */\n\nconst AnchorPoint = ({\n name,\n top,\n left,\n children\n}) => {\n const ref = useRef(null);\n useEffect(() => {\n if (ref.current === null) {\n throw new Error('Could not read DOM value');\n }\n\n if (ref.current.parentNode === null) {\n throw new Error('Ref has no parent to attach to');\n }\n\n AnchorPointConsumer.add({\n name,\n ref: ref.current.parentNode,\n top,\n left\n });\n return () => {\n AnchorPointConsumer.destroy(name);\n };\n }, []);\n return /*#__PURE__*/jsx(elements$9.container, {\n ref: ref,\n children: children\n });\n};\n\nconst elements$8 = {\n article: styled.div.withConfig({\n displayName: \"articlecomponent__article\",\n componentId: \"sc-ejwa7k-0\"\n })([\"display:contents;\", \" p{margin-bottom:10px;}h1{margin-bottom:30px;}h2{margin-bottom:30px;}h3{margin-bottom:30px;}h4{margin-bottom:30px;}h5{margin-bottom:15px;}h6{margin-bottom:5px;}\"], ({\n center\n }) => center && `text-align: center;`)\n};\n/**\r\n * # cortex:react-ui:Article\r\n */\n\nconst Article = ({\n children,\n className,\n center,\n ...rest\n}) => {\n return /*#__PURE__*/jsx(elements$8.article, {\n center: center,\n className: className,\n ...rest,\n children: children\n });\n};\n\nconst elements$7 = {\n fluid: styled.span.withConfig({\n displayName: \"sizecomponent__fluid\",\n componentId: \"sc-ua2hd6-0\"\n })([\"position:relative;display:inline-block;width:100%;& > *{width:100%;}\"])\n};\n/**\r\n * # cortex:react-ui:Size\r\n */\n\nconst Size = ({\n children,\n className,\n fluid = false\n}) => {\n if (fluid) {\n return /*#__PURE__*/jsx(elements$7.fluid, {\n className: className,\n children: children\n });\n }\n\n return /*#__PURE__*/jsx(\"span\", {\n className: className,\n children: children\n });\n};\n\nconst elements$6 = {\n button: styled(BaseButton).withConfig({\n displayName: \"buttoncomponent__button\",\n componentId: \"sc-1snrpmp-0\"\n })([\"height:40px;padding:0px 16px;border-radius:20px;box-sizing:border-box;color:#ffffff;background-color:#0099ff;\"])\n};\n/**\r\n * # cortex:react-ui:Button\r\n */\n\nconst Button = ({\n children,\n fluid,\n className,\n ...rest\n}) => {\n return /*#__PURE__*/jsx(Size, {\n fluid: fluid,\n className: className !== null && className !== void 0 ? className : '',\n children: /*#__PURE__*/jsx(elements$6.button, { ...rest,\n children: children\n })\n });\n};\n\nconst elements$5 = {\n flex: styled.div.withConfig({\n displayName: \"flexcomponent__flex\",\n componentId: \"sc-1mxh8j5-0\"\n })([\"display:flex;\", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \"\"], ({\n applySize\n }) => applySize && `width: 100%;\\nheight: 100%;`, ({\n styleAlignItems\n }) => styleAlignItems && `align-items: ${styleAlignItems};`, ({\n styleJustifyContent\n }) => styleJustifyContent && `justify-content: ${styleJustifyContent};`, ({\n styleAlignSelf\n }) => styleAlignSelf && `align-selfs: ${styleAlignSelf};`, ({\n styleWrap\n }) => styleWrap && `flex-wrap: wrap;`, ({\n styleGrow\n }) => styleGrow && `flex-grow: ${styleGrow};`, ({\n styleShrink\n }) => styleShrink && `flex-shrink: ${styleShrink};`, ({\n styleBasis\n }) => styleBasis && `flex-basis: ${styleBasis};`)\n};\n/**\r\n * # cortex:react-ui:Flex\r\n * A layout component that's used to specify a layout of children using the Flexbox\r\n * algorithm.\r\n */\n\nconst Flex = ({\n grow,\n basis,\n className,\n children,\n shrink = 0,\n wrap = false,\n applySize = true,\n direction = 'column',\n alignItems = 'flex-start',\n justifyContent = 'flex-start'\n}) => {\n return /*#__PURE__*/jsx(elements$5.flex, {\n className: className,\n styleDirection: direction,\n styleAlignItems: alignItems,\n styleJustifyContent: justifyContent,\n styleWrap: wrap,\n styleGrow: grow,\n styleShrink: shrink,\n styleBasis: basis,\n applySize: applySize,\n children: children\n });\n};\n\n/**\r\n * # cortex:react-ui-std:helper:StyleSheetController\r\n */\nclass StyleSheetController {\n constructor() {\n this.styleElement = void 0;\n this.styles = new Set();\n this.styleElement = document.createElement('style');\n this.styleElement.type = 'text/css';\n this.styleElement.appendChild(document.createTextNode(''));\n document.head.appendChild(this.styleElement);\n }\n\n addToRegister(selector, style) {\n const cssStyleSheet = this.styleElement.sheet;\n if (this.styles.has(selector)) return this;\n this.styles.add(selector);\n const newCSSVariables = `\n\t\t\t${selector} {\n ${style}\n\t\t\t}\n `;\n cssStyleSheet.insertRule(newCSSVariables, cssStyleSheet.cssRules.length);\n return this;\n }\n\n}\n\nconst styleSheetController = new StyleSheetController();\n/**\r\n * # cortex:react-ui-std:comp:HeadlessStack\r\n */\n\nconst HeadLessStack = ({\n axis,\n fluid,\n spacing,\n children\n}) => {\n const halfSpacing = spacing / 2;\n const baseStr = `${spacing}_${fluid ? 'y' : 'n'}_${axis === 'Vertical' ? 'v' : 'h'}`;\n const parentClassName = `p_${baseStr}`;\n const childClassName = `c_${baseStr}`;\n\n if (axis === 'Vertical') {\n styleSheetController.addToRegister(`.${parentClassName}`, `\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t${fluid ? `height: calc(100% + ${spacing}px);` : ''}\n\t\t\t\t\tflex-direction: column;\n\t\t\t\t\tmargin-top: -${halfSpacing}px!important;\n\t\t\t\t\tmargin-bottom: -${halfSpacing}px!important;\n\t\t\t\t`).addToRegister(`.${childClassName}`, `\n\t\t\t\t\t${fluid ? `height: 100%;` : ''}\n\t\t\t\t\tmargin-top: ${halfSpacing}px!important;\n\t\t\t\t\tmargin-bottom: ${halfSpacing}px!important;\n\t\t\t\t`);\n } else {\n styleSheetController.addToRegister(`.${parentClassName}`, `\n\t\t\t\tdisplay: flex;\n\t\t\t\t${fluid ? `width: calc(100% + ${spacing}px);` : ''}\n\t\t\t\tflex-direction: row;\n\t\t\t\tmargin-left: -${halfSpacing}px!important;\n\t\t\t\tmargin-right: -${halfSpacing}px!important;\n\t\t\t`).addToRegister(`.${childClassName}`, `\n\t\t\t\t${fluid ? `width: 100%;` : ''}\n\t\t\t\tmargin-left: ${halfSpacing}px!important;\n\t\t\t\tmargin-right: ${halfSpacing}px!important;\n\t\t\t`);\n }\n\n return children({\n parentClassName: parentClassName,\n childClassName: childClassName\n });\n};\n\n/**\r\n * # cortex:react-ui-std:helper:unwrapFragment\r\n */\n\nfunction unwrapFragment(children) {\n const childArr = React.Children.toArray(children);\n const newArr = childArr.reduce((builder, child) => {\n if (child.type === Fragment) {\n return builder.concat(unwrapFragment(child.props.children));\n }\n\n builder.push(child);\n return builder;\n }, []);\n return newArr;\n}\n\n/**\r\n * # cortex:react-ui:HStack\r\n */\nconst HStack = ({\n className,\n spacing = 0,\n fluid = true,\n children\n}) => {\n const flatten = unwrapFragment(children);\n return /*#__PURE__*/jsx(HeadLessStack, {\n spacing: spacing,\n axis: 'Horizontal',\n fluid: fluid,\n children: ({\n childClassName,\n parentClassName\n }) => /*#__PURE__*/jsx(\"div\", {\n className: `${className !== null && className !== void 0 ? className : ''} ${parentClassName}`.trim(),\n children: flatten.map(child => {\n var _child$props$classNam;\n\n if (child === null) return child;\n return /*#__PURE__*/React.cloneElement(child, { ...child.props,\n className: `${(_child$props$classNam = child.props.className) !== null && _child$props$classNam !== void 0 ? _child$props$classNam : ''} ${childClassName}`.trim()\n });\n })\n })\n });\n};\n\nconst elements$4 = {\n label: styled.label.withConfig({\n displayName: \"inputcomponent__label\",\n componentId: \"sc-7av3og-0\"\n })([\"min-width:40px;display:block;position:relative;box-sizing:border-box;\"]),\n input: styled(BaseInput).withConfig({\n displayName: \"inputcomponent__input\",\n componentId: \"sc-7av3og-1\"\n })([\"height:40px;padding:0px 16px;box-sizing:border-box;border-radius:10px;color:var(--visiba_input_clr,rgb(51,51,51));background-color:var(--visiba_input_bg,rgb(51,51,51));width:100%;&:focus{outline-width:0px;box-shadow:inset 0 0 0 1px var(--visiba_input_focus_clr,#0099ff);}\"])\n};\n/**\r\n * # cortex:react-ui:Input\r\n */\n\nconst Input = /*#__PURE__*/forwardRef(function Input({\n fluid,\n className,\n ...rest\n}, ref) {\n return /*#__PURE__*/jsx(Size, {\n fluid: fluid,\n className: className,\n children: /*#__PURE__*/jsx(elements$4.label, {\n children: /*#__PURE__*/jsx(elements$4.input, { ...rest,\n ref: ref\n })\n })\n });\n});\n\nconst elements$3 = {\n body: styled.div.withConfig({\n displayName: \"layoutcomponent__body\",\n componentId: \"sc-1tkq8p3-0\"\n })([\"display:flex;box-sizing:\", \";flex:\", \";flex-shrink:\", \";padding:\", \";margin:\", \";background:\", \";border-radius:\", \";box-shadow:\", \";\", \" \", \" \", \" \", \" \", \"\"], ({\n styleBox\n }) => styleBox === 'inner' ? 'border-box' : 'content-box', ({\n styleGrow\n }) => styleGrow ? '1' : null, ({\n styleShrink\n }) => styleShrink ? '1' : '0', ({\n stylePadding\n }) => stylePadding !== undefined ? typeof stylePadding === 'string' ? stylePadding : `${stylePadding}px` : '0', ({\n styleMargin\n }) => styleMargin !== undefined ? typeof styleMargin === 'string' ? styleMargin : `${styleMargin}px` : '0', ({\n styleBackground\n }) => styleBackground !== null && styleBackground !== void 0 ? styleBackground : null, ({\n styleCornerRadius\n }) => styleCornerRadius ? typeof styleCornerRadius === 'string' ? styleCornerRadius : `${styleCornerRadius}px` : null, ({\n styleShadow\n }) => styleShadow !== null && styleShadow !== void 0 ? styleShadow : null, ({\n styleWidth\n }) => {\n if (typeof styleWidth === 'number') {\n return `width: ${styleWidth}px;`;\n }\n\n if (Array.isArray(styleWidth)) {\n const [max, min] = styleWidth;\n let builder = 'width: 100%;';\n\n if (max !== null) {\n builder += `\\nmax-width: ${max}px;`;\n } else {\n builder = '';\n }\n\n if (min !== undefined) {\n builder += `\\nmin-width: ${min}px;`;\n }\n\n return builder;\n }\n\n if (typeof styleWidth === 'string') {\n return `width: ${styleWidth};`;\n }\n\n return 'width: 100%;';\n }, ({\n styleHeight\n }) => {\n if (typeof styleHeight === 'number') {\n return `height: ${styleHeight}px;`;\n }\n\n if (Array.isArray(styleHeight)) {\n const [max, min] = styleHeight;\n let builder = 'height: 100%;';\n\n if (max !== null) {\n builder += `\\nmax-height: ${max}px;`;\n } else {\n builder = '';\n }\n\n if (min !== undefined) {\n builder += `\\nmin-height: ${min}px;`;\n }\n\n return builder;\n }\n\n if (typeof styleHeight === 'string') {\n return `height: ${styleHeight};`;\n }\n\n return 'height: 100%;';\n }, ({\n styleDirection\n }) => {\n if (styleDirection !== undefined) {\n return `flex-direction: ${styleDirection};`;\n }\n\n return null;\n }, ({\n styleClip\n }) => {\n if (styleClip === undefined) {\n return null;\n }\n\n if (styleClip === 'x') {\n return 'overflow-x: auto\\noverflow-y: hidden;';\n }\n\n if (styleClip === 'y') {\n return 'overflow-y: auto;\\noverflow-x: hidden;';\n }\n\n if (styleClip === 'xy') {\n return 'overflow: auto;';\n }\n\n return 'overflow: hidden;';\n }, ({\n styleAlignment,\n styleDirection\n }) => {\n if (styleDirection === 'row') {\n switch (styleAlignment) {\n case 'center':\n return `\n\t\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t`;\n\n case 'leading':\n return `\n\t\t\t\t\t\t\tjustify-content: flex-start;\n\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t`;\n\n case 'trailing':\n return `\n\t\t\t\t\t\t\tjustify-content: flex-end;\n\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t`;\n\n case 'top':\n return `\n\t\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\t\talign-items: flex-start;\n\t\t\t\t\t\t`;\n\n case 'bottom':\n return `\n\t\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\t\talign-items: flex-end;\n\t\t\t\t\t\t`;\n\n case 'topLeading':\n return `\n\t\t\t\t\t\t\tjustify-content: flex-start;\n\t\t\t\t\t\t\talign-items: flex-start;\n\t\t\t\t\t\t`;\n\n case 'topTrailing':\n return `\n\t\t\t\t\t\t\tjustify-content: flex-end;\n\t\t\t\t\t\t\talign-items: flex-start;\n\t\t\t\t\t\t`;\n\n case 'bottomLeading':\n return `\n\t\t\t\t\t\t\tjustify-content: flex-start;\n\t\t\t\t\t\t\talign-items: flex-end;\n\t\t\t\t\t\t`;\n\n case 'bottomTrailing':\n return `\n\t\t\t\t\t\t\tjustify-content: flex-end;\n\t\t\t\t\t\t\talign-items: flex-end;\n\t\t\t\t\t\t`;\n\n case 'spaceCenter':\n return `\n\t\t\t\t\t\t\tjustify-content: space-between;\n\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t`;\n\n case 'spaceEnd':\n return `\n\t\t\t\t\t\t\tjustify-content: space-between;\n\t\t\t\t\t\t\talign-items: flex-end;\n\t\t\t\t\t\t`;\n\n case 'spaceStart':\n return `\n\t\t\t\t\t\t\tjustify-content: space-between;\n\t\t\t\t\t\t\talign-items: flex-start;\n\t\t\t\t\t\t`;\n\n case 'stretch':\n return `\n\t\t\t\t\t\t\tjustify-content: stretch;\n\t\t\t\t\t\t\talign-items: stretch;\n\t\t\t\t\t\t`;\n\n default:\n throw new Error('unsupported alignment');\n }\n } else {\n switch (styleAlignment) {\n case 'center':\n return `\n\t\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t`;\n\n case 'leading':\n return `\n\t\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\t\talign-items: flex-start;\n\t\t\t\t\t\t`;\n\n case 'trailing':\n return `\n\t\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\t\talign-items: flex-end;\n\t\t\t\t\t\t`;\n\n case 'top':\n return `\n\t\t\t\t\t\t\tjustify-content: flex-start;\n\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t`;\n\n case 'bottom':\n return `\n\t\t\t\t\t\t\tjustify-content: flex-end;\n\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t`;\n\n case 'topLeading':\n return `\n\t\t\t\t\t\t\tjustify-content: flex-start;\n\t\t\t\t\t\t\talign-items: flex-start;\n\t\t\t\t\t\t`;\n\n case 'topTrailing':\n return `\n\t\t\t\t\t\t\tjustify-content: flex-start;\n\t\t\t\t\t\t\talign-items: flex-end;\n\t\t\t\t\t\t`;\n\n case 'bottomLeading':\n return `\n\t\t\t\t\t\t\tjustify-content: flex-end;\n\t\t\t\t\t\t\talign-items: flex-start;\n\t\t\t\t\t\t`;\n\n case 'bottomTrailing':\n return `\n\t\t\t\t\t\t\tjustify-content: flex-end;\n\t\t\t\t\t\t\talign-items: flex-end;\n\t\t\t\t\t\t`;\n\n case 'spaceCenter':\n return `\n\t\t\t\t\t\t\tjustify-content: space-between;\n\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t`;\n\n case 'spaceEnd':\n return `\n\t\t\t\t\t\t\tjustify-content: space-between;\n\t\t\t\t\t\t\talign-items: flex-end;\n\t\t\t\t\t\t`;\n\n case 'spaceStart':\n return `\n\t\t\t\t\t\t\tjustify-content: space-between;\n\t\t\t\t\t\t\talign-items: flex-start;\n\t\t\t\t\t\t`;\n\n case 'stretch':\n return `\n\t\t\t\t\t\t\tjustify-content: stretch;\n\t\t\t\t\t\t\talign-items: stretch;\n\t\t\t\t\t\t`;\n\n default:\n throw new Error('unsupported alignment');\n }\n }\n })\n};\n/**\r\n * # cortex:react-ui:Layout\r\n * A layout component that's used to create a basic container with common\r\n * occurring constraints.\r\n */\n\nconst Layout = ({\n alignment = 'topLeading',\n direction = 'column',\n shrink = true,\n box = 'inner',\n background,\n cornerRadius,\n grow,\n height,\n padding,\n shadow,\n width,\n margin,\n clip,\n className,\n children,\n ...rest\n}) => {\n return /*#__PURE__*/jsx(elements$3.body, {\n styleAlignment: alignment,\n styleDirection: direction,\n styleShrink: shrink,\n styleBox: box,\n styleBackground: background,\n styleCornerRadius: cornerRadius,\n styleGrow: grow,\n styleHeight: height,\n stylePadding: padding,\n styleShadow: shadow,\n styleWidth: width,\n styleMargin: margin,\n styleClip: clip,\n className: className,\n ...rest,\n children: children\n });\n};\n\n// const elements = {}\n\n/**\r\n * # cortex:react-ui:LoaderDots\r\n */\nconst LoaderDots = ({\n backgroundColor,\n container\n}) => {\n const loadingContainer = {\n width: (container === null || container === void 0 ? void 0 : container.width) || '2rem',\n height: (container === null || container === void 0 ? void 0 : container.height) || '2rem',\n display: (container === null || container === void 0 ? void 0 : container.display) || 'flex',\n justifyContent: (container === null || container === void 0 ? void 0 : container.justifyContent) || 'space-around',\n alignItems: (container === null || container === void 0 ? void 0 : container.alignItems) || 'center'\n };\n const loadingCircle = {\n display: 'block',\n width: '0.5rem',\n height: '0.5rem',\n backgroundColor: backgroundColor || '#555555',\n borderRadius: '0.25rem'\n };\n const loadingContainerVariants = {\n start: {\n transition: {\n staggerChildren: 0.2\n }\n },\n end: {\n transition: {\n staggerChildren: 0.2\n }\n }\n };\n const loadingCircleVariants = {\n start: {\n y: '0%'\n },\n end: {\n y: '100%'\n }\n };\n const loadingCircleTransition = {\n duration: 0.5,\n yoyo: Infinity,\n ease: 'easeInOut'\n };\n return /*#__PURE__*/jsxs(motion.div, {\n style: loadingContainer,\n variants: loadingContainerVariants,\n initial: \"start\",\n animate: \"end\",\n children: [/*#__PURE__*/jsx(motion.span, {\n style: loadingCircle,\n variants: loadingCircleVariants,\n transition: loadingCircleTransition\n }), /*#__PURE__*/jsx(motion.span, {\n style: loadingCircle,\n variants: loadingCircleVariants,\n transition: loadingCircleTransition\n }), /*#__PURE__*/jsx(motion.span, {\n style: loadingCircle,\n variants: loadingCircleVariants,\n transition: loadingCircleTransition\n })]\n });\n};\n\nconst id = 'visiba-portal';\nconst className = `${id}-container`;\n\nif (!document.getElementById(id)) {\n var _document$body;\n\n const root_element = document.createElement('div');\n root_element.id = id;\n (_document$body = document.body) === null || _document$body === void 0 ? void 0 : _document$body.appendChild(root_element);\n} else {\n Logger.assert(Logger.Level.WARN, 'multiple instances of visiba-ui-std has been made');\n}\n\nconst styleSheet = new StyleSheetController();\nstyleSheet.addToRegister('#visiba-portal', `\n\t\tposition: fixed;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tpointer-events: none;\n\t`);\nstyleSheet.addToRegister(className, `\n\t\tdisplay: contents;\n\t`);\n\n/**\r\n * # cortex:react-ui-std:comp:Portal\r\n */\nconst Portal = ({\n children\n}) => {\n const mount = document.getElementById(id);\n const el = document.createElement('div');\n el.className = className;\n if (!mount) throw new Error(\"root element was removed, don't do that\");\n useEffect(() => {\n mount.appendChild(el);\n return () => {\n mount.removeChild(el);\n };\n }, [mount, el]);\n return /*#__PURE__*/createPortal(children, el);\n};\n\n/**\r\n * # cortex:react-ui:ResetCss\r\n */\n\nconst ResetCss = createGlobalStyle([\"html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,menu,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,main,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block;}menu,ol,ul{list-style:none;}*,*::before,*::after{box-sizing:inherit;}body{line-height:1;}html{box-sizing:border-box;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-rendering:auto;letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-shadow:none;}img{display:inline-block;height:auto;max-width:100%;vertical-align:middle;}a{font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;color:inherit;text-decoration:inherit;}[hidden]{display:none !important;}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto;}*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important;}}\"]);\n\nconst ScreenReaderTextElement = styled.span.withConfig({\n displayName: \"screen-reader-textcomponent__ScreenReaderTextElement\",\n componentId: \"sc-1vanyy4-0\"\n})([\"border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal !important;\"]);\n\n/**\r\n * # cortex:react-ui:ScreenReaderText\r\n * Component to communicate content to screen readers without visually display it on the screen.\r\n */\nconst ScreenReaderText = ({\n children\n}) => {\n return /*#__PURE__*/jsx(ScreenReaderTextElement, {\n children: children\n });\n};\n\nconst elements$2 = {\n separator: styled.div.withConfig({\n displayName: \"separatorcomponent__separator\",\n componentId: \"sc-1wlnrm9-0\"\n })([\"width:100%;display:flex;justify-content:center;\"]),\n inner: styled.div.withConfig({\n displayName: \"separatorcomponent__inner\",\n componentId: \"sc-1wlnrm9-1\"\n })([\"height:2px;width:calc(100% - \", \"px);background:var(--kira_separator_bg,#343438);\"], ({\n padding\n }) => padding)\n};\n/**\r\n * # cortex:react-ui:Separator\r\n */\n\nconst Separator = ({\n children,\n className,\n padding\n}) => {\n return /*#__PURE__*/jsx(elements$2.separator, {\n \"aria-hidden\": \"true\",\n className: className,\n children: /*#__PURE__*/jsx(elements$2.inner, {\n padding: padding !== null && padding !== void 0 ? padding : 0,\n children: children\n })\n });\n};\n\nconst elements$1 = {\n body: styled.span.withConfig({\n displayName: \"spacercomponent__body\",\n componentId: \"sc-dusmos-0\"\n })([\"width:\", \";height:\", \";flex:0 0 auto;\"], ({\n width\n }) => width, ({\n height\n }) => height)\n};\n/**\r\n * # cortex:react-ui:Spacer\r\n */\n\nconst Spacer = ({\n height = 0,\n width = 0\n}) => {\n height = typeof height === 'number' && height > 0 ? `${height}px` : height;\n width = typeof width === 'number' && width > 0 ? `${width}px` : width;\n return /*#__PURE__*/jsx(elements$1.body, {\n height: height,\n width: width\n });\n};\n\nconst elements = {\n button: styled.div.withConfig({\n displayName: \"static_buttoncomponent__button\",\n componentId: \"sc-crdn8m-0\"\n })([\"height:40px;padding:0px 16px;border-radius:20px;box-sizing:border-box;color:#ffffff;background-color:#0099ff;\"])\n};\n/**\r\n * # cortex:react-ui:StaticButton\r\n */\n\nconst StaticButton = ({\n children,\n fluid,\n className,\n ...rest\n}) => {\n return /*#__PURE__*/jsx(Size, {\n fluid: fluid,\n className: className,\n children: /*#__PURE__*/jsx(elements.button, { ...rest,\n children: children\n })\n });\n};\n\nconst TextElement = styled.span.withConfig({\n displayName: \"textcomponent__TextElement\",\n componentId: \"sc-zzoqn8-0\"\n})([\"\", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" &:focus{outline:0;}\"], ({\n font\n}) => font && `font: ${font};`, ({\n color\n}) => color && `color: ${color};`, ({\n fontFamily\n}) => fontFamily && `font-family: ${fontFamily};`, ({\n fontSize\n}) => fontSize && `font-size: ${fontSize};`, ({\n fontWeight\n}) => fontWeight && `font-weight: ${fontWeight};`, ({\n lineHeight\n}) => lineHeight && `line-height: ${lineHeight};`, ({\n preserveLineBreaks\n}) => preserveLineBreaks && 'white-space: pre-line;', ({\n textTransform\n}) => textTransform && `text-transform: ${textTransform};`);\n\n/**\r\n * # cortex:react-ui:Text\r\n * Component to render text-elements.\r\n */\nconst Text = /*#__PURE__*/forwardRef(function Text({\n children,\n as: asElement = 'span',\n color = 'inherit',\n ...rest\n}, ref) {\n return /*#__PURE__*/jsx(TextElement, {\n as: asElement,\n color: color,\n ref: ref,\n ...rest,\n children: children\n });\n});\nText.h1 = /*#__PURE__*/forwardRef(function TextH1({\n children,\n ...rest\n}, ref) {\n return /*#__PURE__*/jsx(Text, {\n as: \"h1\",\n ref: ref,\n ...rest,\n children: children\n });\n});\nText.h2 = /*#__PURE__*/forwardRef(function TextH2({\n children,\n ...rest\n}, ref) {\n return /*#__PURE__*/jsx(Text, {\n as: \"h2\",\n ref: ref,\n ...rest,\n children: children\n });\n});\nText.h3 = /*#__PURE__*/forwardRef(function TextH3({\n children,\n ...rest\n}, ref) {\n return /*#__PURE__*/jsx(Text, {\n as: \"h3\",\n ref: ref,\n ...rest,\n children: children\n });\n});\nText.h4 = /*#__PURE__*/forwardRef(function TextH4({\n children,\n ...rest\n}, ref) {\n return /*#__PURE__*/jsx(Text, {\n as: \"h4\",\n ref: ref,\n ...rest,\n children: children\n });\n});\nText.h5 = /*#__PURE__*/forwardRef(function TextH5({\n children,\n ...rest\n}, ref) {\n return /*#__PURE__*/jsx(Text, {\n as: \"h5\",\n ref: ref,\n ...rest,\n children: children\n });\n});\nText.h6 = /*#__PURE__*/forwardRef(function TextH6({\n children,\n ...rest\n}, ref) {\n return /*#__PURE__*/jsx(Text, {\n as: \"h6\",\n ref: ref,\n ...rest,\n children: children\n });\n});\nText.p = /*#__PURE__*/forwardRef(function TextP({\n children,\n preserveLineBreaks = true,\n ...rest\n}, ref) {\n return /*#__PURE__*/jsx(Text, {\n as: \"p\",\n preserveLineBreaks: preserveLineBreaks,\n ref: ref,\n ...rest,\n children: children\n });\n});\n\n/**\r\n * # cortex:react-ui:VStack\r\n */\nconst VStack = function VStack({\n className,\n spacing = 0,\n fluid = true,\n children\n}) {\n const flatten = unwrapFragment(children);\n return /*#__PURE__*/jsx(HeadLessStack, {\n spacing: spacing,\n axis: 'Vertical',\n fluid: fluid,\n children: ({\n childClassName,\n parentClassName\n }) => /*#__PURE__*/jsx(\"div\", {\n className: `${className !== null && className !== void 0 ? className : ''} ${parentClassName}`.trim(),\n children: flatten.map(child => {\n var _child$props$classNam;\n\n if (child === null) return child;\n return /*#__PURE__*/React.cloneElement(child, { ...child.props,\n className: `${(_child$props$classNam = child.props.className) !== null && _child$props$classNam !== void 0 ? _child$props$classNam : ''} ${childClassName}`.trim()\n });\n })\n })\n });\n};\n\n/**\r\n * # cortex:react-ui-std:hooks:useAnchorPointValue\r\n */\nfunction useAnchorPointValue(name) {\n const [position, setPosition] = useState(null);\n useEffect(() => {\n let disposer;\n\n if (AnchorPointConsumer.list.get(name)) {\n const anchorPointInstance = AnchorPointConsumer.list.get(name);\n setPosition(anchorPointInstance.vec2.getAsObj());\n disposer = anchorPointInstance.onChange(vec2 => {\n setPosition(vec2.getAsObj());\n });\n } else {\n function listener(event) {\n if (event !== name) return;\n AnchorPointConsumer.notifier.off(AnchorPointConsumer.Events.Notify, listener);\n const anchorPointInstance = AnchorPointConsumer.list.get(name);\n setPosition(anchorPointInstance.vec2.getAsObj());\n disposer = anchorPointInstance.onChange(vec2 => {\n setPosition(vec2.getAsObj());\n });\n }\n\n AnchorPointConsumer.notifier.on(AnchorPointConsumer.Events.Notify, listener);\n }\n\n return () => {\n if (disposer) disposer();\n };\n }, []);\n return position;\n}\n\nconst Inner = function HeadlessPopover_Inner({\n attachTo,\n children\n}) {\n const position = useAnchorPointValue(attachTo);\n return /*#__PURE__*/jsx(Fragment, {\n children: position !== null && children({\n x: position.x,\n y: position.y\n })\n });\n};\n/**\r\n * # cortex:react-ui-std:comp:HeadlessPopover\r\n */\n\n\nconst HeadLessPopover = ({\n attachTo,\n children\n}) => {\n return /*#__PURE__*/jsx(Portal, {\n children: /*#__PURE__*/jsx(Inner, {\n attachTo: attachTo,\n children: children\n })\n });\n};\n\n/**\r\n * # cortex:react-ui-std:helper:isFocused\r\n */\nconst isFocused = event => {\n let originIsFocused = false;\n\n if (event.target && event.target instanceof Element && event.target !== document.body) {\n originIsFocused = document.activeElement === event.target;\n }\n\n return originIsFocused;\n};\n\n/**\r\n * ## cortex:react-ui-std:sanitizedInjectHTML\r\n * Sanitization is the inspection of an untrusted value, turning it into a value that's safe to insert into the DOM.\r\n */\n\nfunction sanitizedInjectHTML(htmlString) {\n return {\n __html: DOMPurify.sanitize(htmlString)\n };\n}\n\n// Since the exported type below are so convoluted, we'll just disable these for\nconst formStates = new WeakMap();\nfunction createFormGroup(controllers) {\n return {\n controllers,\n refs: {},\n\n isValid() {// being worked on in the new patient web\n // noop\n },\n\n state() {\n const builder = {};\n Object.entries(this.controllers).forEach(([key, value]) => {\n builder[key] = value.value;\n });\n return builder;\n },\n\n reset() {// being worked on in the new patient web\n // noop\n }\n\n };\n}\nfunction formControl(defaultValue, ...validators) {\n return {\n initialValue: defaultValue,\n value: defaultValue,\n valid: false,\n touched: false,\n validators: [...validators]\n };\n}\n/**\r\n * # cortex:react-ui-std:hooks:useForm\r\n */\n\nfunction useForm(control) {\n const [formState] = useState(control);\n let formGroup;\n\n if (formStates.has(formState)) {\n formGroup = formStates.get(formState);\n } else {\n formGroup = createFormGroup(formState);\n formStates.set(formState, formGroup);\n }\n\n function handleInputChange(event) {\n if (!(event && event.srcElement)) return;\n const {\n value,\n name\n } = event.srcElement;\n formState[name].value = value;\n }\n /** Binds an input to this hook. */\n\n\n function set(ref) {\n if (ref) {\n if (typeof formState[ref.name] === 'undefined') {\n throw new Error(`\"${ref.name}\" is not a valid form group`);\n }\n\n ref.value = formState[ref.name].value;\n\n if (!formGroup.refs[ref.name]) {\n ref.addEventListener('input', handleInputChange);\n formGroup.refs[ref.name] = ref;\n }\n }\n }\n /** Wrapper for the a submit callback. */\n\n\n const forward = callback => event => {\n event.preventDefault();\n event.persist();\n callback(formGroup.state());\n };\n\n useEffect(() => {\n return () => {\n Object.values(formGroup.refs).forEach(ref => {\n ref.removeEventListener('input', handleInputChange);\n });\n };\n }, []);\n return {\n set,\n forward,\n formGroup\n };\n}\n\n/**\r\n * # cortex:react-ui-std:hooks:useKeyPress\r\n */\n\nfunction useKeyPress(targetKey) {\n // State for keeping track of whether key is pressed\n const [keyPressed, setKeyPressed] = useState(false); // If pressed key is our target key then set to true\n\n function handleKeyDown({\n key\n }) {\n if (key === targetKey) {\n setKeyPressed(true);\n }\n } // If released key is our target key then set to false\n\n\n const handleKeyUp = ({\n key\n }) => {\n if (key === targetKey) {\n setKeyPressed(false);\n }\n }; // Add event listeners\n\n\n useEffect(() => {\n addEventListener('keydown', handleKeyDown);\n addEventListener('keyup', handleKeyUp); // Remove event listeners on cleanup\n\n return () => {\n removeEventListener('keydown', handleKeyDown);\n removeEventListener('keyup', handleKeyUp);\n };\n }, []); // Empty array ensures that effect is only run on mount and unmount\n\n return keyPressed;\n}\n\n/**\r\n * # cortex:react-ui-std:hooks:useOutsideClick\r\n */\n\nfunction useOutsideClick(ref, handler) {\n const handleClick = event => {\n if (ref && (!ref.current || ref.current.contains(event.target))) {\n return;\n }\n\n handler(event);\n };\n\n useEffect(() => {\n addEventListener('mousedown', handleClick);\n addEventListener('touchstart', handleClick); // disposer\n\n return () => {\n removeEventListener('mousedown', handleClick);\n removeEventListener('touchstart', handleClick);\n };\n }, []);\n}\n\nexport { AnchorPoint, AnchorPointConsumer, Article, BaseButton, BaseIcon, BaseInput, Button, Flex, HStack, HeadLessPopover, HeadLessStack, Input, Layout, LoaderDots, Portal, ResetCss, ScreenReaderText, Separator, Size, Spacer, StaticButton, Text, VStack, createFormGroup, dangerouslyInjectHTML, focusContext, formControl, isFocused, sanitizedInjectHTML, unwrapFragment, useAnchorPointValue, useForm, useKeyPress, useOutsideClick };\n","// src/errors/argument_error.ts\nvar ArgumentError = class _ArgumentError extends Error {\n constructor(message) {\n super(message);\n this.message = message;\n this.name = \"ArgumentError\";\n Object.setPrototypeOf(this, _ArgumentError.prototype);\n }\n};\n\n// src/errors/application_error.ts\nvar ApplicationError = class _ApplicationError extends Error {\n constructor(message) {\n super(message);\n this.message = message;\n this.name = \"ApplicationError\";\n Object.setPrototypeOf(this, _ApplicationError.prototype);\n }\n};\n\n// src/clamp.tsx\nfunction clamp(value, [min, max]) {\n if (min > max)\n throw new Error(\"min can not be greater than max\");\n return Math.min(max, Math.max(min, value));\n}\n\n// src/color.ts\nvar Color;\n((Color2) => {\n const HEX_REGEX = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;\n function lightLevel(hex, amount) {\n function normalizeValue(value) {\n if (value > 255) {\n return 255;\n }\n if (value < 0) {\n return 0;\n }\n return value;\n }\n const rgb = createRgb(hex);\n const r = normalizeValue(rgb[0] + amount);\n const g = normalizeValue(rgb[1] + amount);\n const b = normalizeValue(rgb[2] + amount);\n return createHex([r, g, b, 1]);\n }\n Color2.lightLevel = lightLevel;\n function createRgb(hex) {\n if (!HEX_REGEX.test(hex)) {\n throw new Error(\"Tried to modify a non hex string\");\n }\n const num = parseInt(hex.slice(1), 16);\n const red = num >> 16;\n const green = num >> 8 & 255;\n const blue = num & 255;\n return [red, green, blue, 1];\n }\n Color2.createRgb = createRgb;\n function createHex(rgb) {\n function section(num) {\n const str = num.toString(16).toLowerCase();\n return str.length < 2 ? `0${str}` : str;\n }\n return `#${section(rgb[0])}${section(rgb[1])}${section(rgb[2])}`;\n }\n Color2.createHex = createHex;\n function isDark(hex) {\n const rgb = createRgb(hex);\n const yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1e3;\n return yiq < 128;\n }\n Color2.isDark = isDark;\n function isLight(hex) {\n return !isDark(hex);\n }\n Color2.isLight = isLight;\n})(Color || (Color = {}));\n\n// src/debounce.ts\nfunction debounce(fn, interval) {\n let timeout;\n return function debouncer(...args) {\n const functionCall = () => fn.apply(this, args);\n clearTimeout(timeout);\n timeout = setTimeout(functionCall, interval);\n };\n}\n\n// src/debug.ts\nvar Debug;\n((Debug2) => {\n function assert(expression, message) {\n if (!expression) {\n throw new Error(message ?? \"assertion failed\");\n }\n return true;\n }\n Debug2.assert = assert;\n function assertDeclared(value, message) {\n if (typeof value === \"undefined\" || value === null) {\n throw new Error(message ?? \"assertDeclared\");\n }\n return true;\n }\n Debug2.assertDeclared = assertDeclared;\n})(Debug || (Debug = {}));\n\n// src/timer.ts\nvar Timer = class {\n disposers = /* @__PURE__ */ new Map();\n registeredId = 0;\n wait(callback, duration) {\n const timeout = setTimeout(callback, duration);\n const disposer = () => {\n clearTimeout(timeout);\n };\n return this.registerDisposer(disposer);\n }\n repeat(callback, duration, callOnceOnInvoke = false) {\n if (callOnceOnInvoke) {\n callback();\n }\n const interval = setInterval(callback, duration);\n const disposer = () => {\n clearInterval(interval);\n };\n return this.registerDisposer(disposer);\n }\n flush() {\n this.disposers.forEach((disposer) => disposer());\n }\n registerDisposer(disposer) {\n const localUid = this.registeredId++;\n this.disposers.set(localUid, disposer);\n return () => {\n this.disposers.delete(localUid);\n disposer();\n };\n }\n};\n((Timer2) => {\n function wait(...args) {\n const time = new Timer2();\n time.wait(...args);\n return time.flush.bind(time);\n }\n Timer2.wait = wait;\n function repeat(...args) {\n const time = new Timer2();\n time.repeat(...args);\n return time.flush.bind(time);\n }\n Timer2.repeat = repeat;\n})(Timer || (Timer = {}));\n\n// src/delay.tsx\nfunction delay(delayTime) {\n return new Promise((resolve) => Timer.wait(resolve, delayTime));\n}\n\n// src/event_emitter.ts\nvar EventEmitter = class {\n events = /* @__PURE__ */ Object.create(null);\n errorHandlers = /* @__PURE__ */ new WeakMap();\n constructor() {\n }\n on(event, handler, errorHandler) {\n (this.events[event] || (this.events[event] = [])).push(handler);\n if (errorHandler) {\n this.errorHandlers.set(handler, errorHandler);\n }\n return () => {\n this.off(event, handler);\n };\n }\n /**\n * Un-registers handlers for events emitted by this instance.\n */\n off(event, handler) {\n if (!this.events[event])\n return;\n this.events[event].splice(this.events[event].indexOf(handler) >>> 0, 1);\n }\n /**\n * Emits an event containing a given value.\n */\n emit(event, data) {\n (this.events[event] || []).forEach((handler) => {\n try {\n handler(data);\n } catch (error) {\n const errorHandler = this.errorHandlers.get(handler);\n if (errorHandler)\n errorHandler(error);\n }\n });\n }\n};\n\n// src/get_cookie.tsx\nfunction getCookie(name) {\n if (document.cookie.length > 0) {\n let start = document.cookie.indexOf(name + \"=\");\n if (start !== -1) {\n start = start + name.length + 1;\n let end = document.cookie.indexOf(\";\", start);\n if (end === -1) {\n end = document.cookie.length;\n }\n return unescape(document.cookie.substring(start, end));\n }\n }\n return null;\n}\n\n// src/is_visiba_ios_app.tsx\nfunction isVisibaIOSApp() {\n try {\n const cookie = getCookie(\"VisibaIOSApp\");\n return !!cookie;\n } catch {\n return false;\n }\n}\n\n// src/get_platform.tsx\nvar DeviceType = /* @__PURE__ */ ((DeviceType2) => {\n DeviceType2[DeviceType2[\"Ios\"] = 0] = \"Ios\";\n DeviceType2[DeviceType2[\"Android\"] = 1] = \"Android\";\n DeviceType2[DeviceType2[\"Web\"] = 2] = \"Web\";\n return DeviceType2;\n})(DeviceType || {});\nfunction getPlatform() {\n const userAgent = navigator.userAgent || navigator.vendor;\n if (/android/i.test(userAgent)) {\n return 1 /* Android */;\n }\n if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream || isVisibaIOSApp()) {\n return 0 /* Ios */;\n }\n return 2 /* Web */;\n}\n\n// src/parameter_handler.ts\nvar ParameterHandler = class {\n /**\n * Map of current parameters.\n * */\n parameters = /* @__PURE__ */ Object.create(null);\n /** Appends a new object of parameters */\n append(item) {\n Object.assign(this.parameters, item);\n }\n /** Clears the parameter maps. */\n clearParameters() {\n this.parameters = /* @__PURE__ */ Object.create(null);\n }\n /** Returns a query string based on the values in the map. */\n getString() {\n if (Object.keys(this.parameters).length === 0)\n return \"\";\n const entries = Object.entries(this.parameters);\n return entries.reduce((accumulator, currentValue, currentIndex) => {\n let combine = accumulator + currentValue.join(\"=\");\n if (entries.length - 1 !== currentIndex) {\n combine += \"&\";\n }\n return combine;\n }, \"?\");\n }\n};\n\n// src/prefers_reduced_motion.tsx\nfunction prefersReducedMotion() {\n return globalThis.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n}\n\n// src/rem.ts\nfunction rem(px) {\n return `${px / 16}rem`;\n}\nfunction remToNumber(remValue) {\n const strippedRem = remValue.replace(\"rem\", \"\");\n const value = parseInt(strippedRem, 10);\n if (isNaN(value)) {\n return 16;\n }\n return value * 16;\n}\n\n// src/retry.ts\nvar Retry;\n((Retry2) => {\n Retry2.byBruteForce = (fn, options) => {\n const defaultOption = {\n every: 1e3,\n for: 1,\n hooks: [],\n ...options ? options : {}\n };\n return new Promise((resolve, reject) => {\n let attempts = 0;\n let finishedRequest = false;\n const disposer = Timer.repeat(\n () => {\n proxy(++attempts);\n },\n defaultOption.every,\n true\n );\n async function proxy(attempt) {\n if (attempt > defaultOption.for && !finishedRequest) {\n disposer();\n reject(`request did not finish in ${defaultOption.for} attempts`);\n } else {\n try {\n const resolvedIntoThis = await fn();\n if (!finishedRequest) {\n disposer();\n finishedRequest = true;\n resolve(resolvedIntoThis);\n }\n } catch (error) {\n defaultOption.hooks?.forEach((hook) => hook());\n }\n }\n }\n });\n };\n Retry2.the = (fn, options) => {\n const defaultOption = {\n againAfter: 1e3,\n for: 1,\n hooks: [],\n ...options ? options : {}\n };\n return new Promise((resolve, reject) => {\n let attempts = 0;\n async function proxy(attempt) {\n try {\n const resolvedIntoThis = await fn();\n resolve(resolvedIntoThis);\n } catch (error) {\n defaultOption.hooks?.forEach((hook) => hook());\n if (attempt < defaultOption.for) {\n retry();\n } else {\n reject(`request did not finish in ${defaultOption.for} attempts`);\n }\n }\n }\n function retry() {\n setTimeout(() => {\n proxy(++attempts);\n }, defaultOption.againAfter);\n }\n proxy(++attempts);\n });\n };\n})(Retry || (Retry = {}));\n\n// src/safe_json_parse.ts\nfunction safeJsonParse(data) {\n try {\n return JSON.parse(data);\n } catch (error) {\n return data;\n }\n}\n\n// src/storage.tsx\nfunction storage(spec = {}) {\n const storeType = spec.type ?? \"local\";\n const store = storeType === \"local\" ? globalThis.localStorage : globalThis.sessionStorage;\n return {\n storeType,\n get(key) {\n const item = store.getItem(`${spec.prefix ?? \"\"}${key.toString()}`);\n if (!item)\n return null;\n return safeJsonParse(item);\n },\n set(key, data) {\n store.setItem(`${spec.prefix ?? \"\"}${key.toString()}`, JSON.stringify(data));\n },\n removeItem(key) {\n store.removeItem(`${spec.prefix ?? \"\"}${key.toString()}`);\n }\n };\n}\n\n// src/vector.ts\nvar Vec2 = class {\n constructor(x, y) {\n this.x = x;\n this.y = y;\n }\n getAsObj() {\n return {\n x: this.x,\n y: this.y\n };\n }\n};\nvar Vec3 = class {\n constructor(x, y, z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }\n getAsObj() {\n return {\n x: this.x,\n y: this.y,\n z: this.z\n };\n }\n};\n\n// src/create_initials.ts\nfunction createInitials(commonName, separator) {\n const parts = commonName.trim().split(\" \");\n if (parts.length === 0) {\n return \"\";\n }\n const firstPart = parts[0].charAt(0).toUpperCase();\n if (parts.length === 1) {\n return firstPart;\n }\n const secondPart = (parts[parts.length - 1] ?? \"\").charAt(0).toUpperCase();\n return firstPart + (separator ?? \"\") + secondPart;\n}\n\n// src/format_bytes.ts\nfunction formatBytes(bytes, decimals = 2) {\n if (bytes === 0)\n return \"0 Bytes\";\n const base = 1024;\n const dm = decimals < 0 ? 0 : decimals;\n const sizes = [\"Bytes\", \"KB\", \"MB\", \"GB\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\"];\n const sizeIndex = Math.floor(Math.log(bytes) / Math.log(base));\n return (bytes / Math.pow(base, sizeIndex)).toFixed(dm) + \" \" + sizes[sizeIndex];\n}\n\n// src/convert_to_milliseconds.tsx\nfunction convertToMilliseconds(hours, minutes, seconds) {\n return (hours * 60 * 60 + minutes * 60 + seconds) * 1e3;\n}\n\nexport { ApplicationError, ArgumentError, Color, Debug, DeviceType, EventEmitter, ParameterHandler, Retry, Timer, Vec2, Vec3, clamp, convertToMilliseconds, createInitials, debounce, delay, formatBytes, getCookie, getPlatform, isVisibaIOSApp, prefersReducedMotion, rem, remToNumber, safeJsonParse, storage };\n//# sourceMappingURL=out.js.map\n","var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n","export var TransformationType;\n(function (TransformationType) {\n TransformationType[TransformationType[\"PLAIN_TO_CLASS\"] = 0] = \"PLAIN_TO_CLASS\";\n TransformationType[TransformationType[\"CLASS_TO_PLAIN\"] = 1] = \"CLASS_TO_PLAIN\";\n TransformationType[TransformationType[\"CLASS_TO_CLASS\"] = 2] = \"CLASS_TO_CLASS\";\n})(TransformationType || (TransformationType = {}));\n","import { MetadataStorage } from './MetadataStorage';\n/**\n * Default metadata storage is used as singleton and can be used to storage all metadatas.\n */\nexport const defaultMetadataStorage = new MetadataStorage();\n","import { TransformationType } from './enums';\n/**\n * Storage all library metadata.\n */\nexport class MetadataStorage {\n constructor() {\n // -------------------------------------------------------------------------\n // Properties\n // -------------------------------------------------------------------------\n this._typeMetadatas = new Map();\n this._transformMetadatas = new Map();\n this._exposeMetadatas = new Map();\n this._excludeMetadatas = new Map();\n this._ancestorsMap = new Map();\n }\n // -------------------------------------------------------------------------\n // Adder Methods\n // -------------------------------------------------------------------------\n addTypeMetadata(metadata) {\n if (!this._typeMetadatas.has(metadata.target)) {\n this._typeMetadatas.set(metadata.target, new Map());\n }\n this._typeMetadatas.get(metadata.target).set(metadata.propertyName, metadata);\n }\n addTransformMetadata(metadata) {\n if (!this._transformMetadatas.has(metadata.target)) {\n this._transformMetadatas.set(metadata.target, new Map());\n }\n if (!this._transformMetadatas.get(metadata.target).has(metadata.propertyName)) {\n this._transformMetadatas.get(metadata.target).set(metadata.propertyName, []);\n }\n this._transformMetadatas.get(metadata.target).get(metadata.propertyName).push(metadata);\n }\n addExposeMetadata(metadata) {\n if (!this._exposeMetadatas.has(metadata.target)) {\n this._exposeMetadatas.set(metadata.target, new Map());\n }\n this._exposeMetadatas.get(metadata.target).set(metadata.propertyName, metadata);\n }\n addExcludeMetadata(metadata) {\n if (!this._excludeMetadatas.has(metadata.target)) {\n this._excludeMetadatas.set(metadata.target, new Map());\n }\n this._excludeMetadatas.get(metadata.target).set(metadata.propertyName, metadata);\n }\n // -------------------------------------------------------------------------\n // Public Methods\n // -------------------------------------------------------------------------\n findTransformMetadatas(target, propertyName, transformationType) {\n return this.findMetadatas(this._transformMetadatas, target, propertyName).filter(metadata => {\n if (!metadata.options)\n return true;\n if (metadata.options.toClassOnly === true && metadata.options.toPlainOnly === true)\n return true;\n if (metadata.options.toClassOnly === true) {\n return (transformationType === TransformationType.CLASS_TO_CLASS ||\n transformationType === TransformationType.PLAIN_TO_CLASS);\n }\n if (metadata.options.toPlainOnly === true) {\n return transformationType === TransformationType.CLASS_TO_PLAIN;\n }\n return true;\n });\n }\n findExcludeMetadata(target, propertyName) {\n return this.findMetadata(this._excludeMetadatas, target, propertyName);\n }\n findExposeMetadata(target, propertyName) {\n return this.findMetadata(this._exposeMetadatas, target, propertyName);\n }\n findExposeMetadataByCustomName(target, name) {\n return this.getExposedMetadatas(target).find(metadata => {\n return metadata.options && metadata.options.name === name;\n });\n }\n findTypeMetadata(target, propertyName) {\n return this.findMetadata(this._typeMetadatas, target, propertyName);\n }\n getStrategy(target) {\n const excludeMap = this._excludeMetadatas.get(target);\n const exclude = excludeMap && excludeMap.get(undefined);\n const exposeMap = this._exposeMetadatas.get(target);\n const expose = exposeMap && exposeMap.get(undefined);\n if ((exclude && expose) || (!exclude && !expose))\n return 'none';\n return exclude ? 'excludeAll' : 'exposeAll';\n }\n getExposedMetadatas(target) {\n return this.getMetadata(this._exposeMetadatas, target);\n }\n getExcludedMetadatas(target) {\n return this.getMetadata(this._excludeMetadatas, target);\n }\n getExposedProperties(target, transformationType) {\n return this.getExposedMetadatas(target)\n .filter(metadata => {\n if (!metadata.options)\n return true;\n if (metadata.options.toClassOnly === true && metadata.options.toPlainOnly === true)\n return true;\n if (metadata.options.toClassOnly === true) {\n return (transformationType === TransformationType.CLASS_TO_CLASS ||\n transformationType === TransformationType.PLAIN_TO_CLASS);\n }\n if (metadata.options.toPlainOnly === true) {\n return transformationType === TransformationType.CLASS_TO_PLAIN;\n }\n return true;\n })\n .map(metadata => metadata.propertyName);\n }\n getExcludedProperties(target, transformationType) {\n return this.getExcludedMetadatas(target)\n .filter(metadata => {\n if (!metadata.options)\n return true;\n if (metadata.options.toClassOnly === true && metadata.options.toPlainOnly === true)\n return true;\n if (metadata.options.toClassOnly === true) {\n return (transformationType === TransformationType.CLASS_TO_CLASS ||\n transformationType === TransformationType.PLAIN_TO_CLASS);\n }\n if (metadata.options.toPlainOnly === true) {\n return transformationType === TransformationType.CLASS_TO_PLAIN;\n }\n return true;\n })\n .map(metadata => metadata.propertyName);\n }\n clear() {\n this._typeMetadatas.clear();\n this._exposeMetadatas.clear();\n this._excludeMetadatas.clear();\n this._ancestorsMap.clear();\n }\n // -------------------------------------------------------------------------\n // Private Methods\n // -------------------------------------------------------------------------\n getMetadata(metadatas, target) {\n const metadataFromTargetMap = metadatas.get(target);\n let metadataFromTarget;\n if (metadataFromTargetMap) {\n metadataFromTarget = Array.from(metadataFromTargetMap.values()).filter(meta => meta.propertyName !== undefined);\n }\n const metadataFromAncestors = [];\n for (const ancestor of this.getAncestors(target)) {\n const ancestorMetadataMap = metadatas.get(ancestor);\n if (ancestorMetadataMap) {\n const metadataFromAncestor = Array.from(ancestorMetadataMap.values()).filter(meta => meta.propertyName !== undefined);\n metadataFromAncestors.push(...metadataFromAncestor);\n }\n }\n return metadataFromAncestors.concat(metadataFromTarget || []);\n }\n findMetadata(metadatas, target, propertyName) {\n const metadataFromTargetMap = metadatas.get(target);\n if (metadataFromTargetMap) {\n const metadataFromTarget = metadataFromTargetMap.get(propertyName);\n if (metadataFromTarget) {\n return metadataFromTarget;\n }\n }\n for (const ancestor of this.getAncestors(target)) {\n const ancestorMetadataMap = metadatas.get(ancestor);\n if (ancestorMetadataMap) {\n const ancestorResult = ancestorMetadataMap.get(propertyName);\n if (ancestorResult) {\n return ancestorResult;\n }\n }\n }\n return undefined;\n }\n findMetadatas(metadatas, target, propertyName) {\n const metadataFromTargetMap = metadatas.get(target);\n let metadataFromTarget;\n if (metadataFromTargetMap) {\n metadataFromTarget = metadataFromTargetMap.get(propertyName);\n }\n const metadataFromAncestorsTarget = [];\n for (const ancestor of this.getAncestors(target)) {\n const ancestorMetadataMap = metadatas.get(ancestor);\n if (ancestorMetadataMap) {\n if (ancestorMetadataMap.has(propertyName)) {\n metadataFromAncestorsTarget.push(...ancestorMetadataMap.get(propertyName));\n }\n }\n }\n return metadataFromAncestorsTarget\n .slice()\n .reverse()\n .concat((metadataFromTarget || []).slice().reverse());\n }\n getAncestors(target) {\n if (!target)\n return [];\n if (!this._ancestorsMap.has(target)) {\n const ancestors = [];\n for (let baseClass = Object.getPrototypeOf(target.prototype.constructor); typeof baseClass.prototype !== 'undefined'; baseClass = Object.getPrototypeOf(baseClass.prototype.constructor)) {\n ancestors.push(baseClass);\n }\n this._ancestorsMap.set(target, ancestors);\n }\n return this._ancestorsMap.get(target);\n }\n}\n","function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);\n };\n}\n\n\n\n\nexport {$e42e1063c40fb3ef$export$b9ecd428b558ff10 as composeEventHandlers};\n","import {useCallback as $3vqmr$useCallback} from \"react\";\n\n\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */ function $6ed0406888f73fc4$var$setRef(ref, value) {\n if (typeof ref === 'function') ref(value);\n else if (ref !== null && ref !== undefined) ref.current = value;\n}\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {\n return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef(ref, node)\n )\n ;\n}\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return $3vqmr$useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);\n}\n\n\n\n\nexport {$6ed0406888f73fc4$export$43e446d32b3d21af as composeRefs, $6ed0406888f73fc4$export$c7b2cbe3552a0d05 as useComposedRefs};\n","import {createContext as $3bkAK$createContext, useMemo as $3bkAK$useMemo, createElement as $3bkAK$createElement, useContext as $3bkAK$useContext} from \"react\";\n\n\nfunction $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {\n const Context = /*#__PURE__*/ $3bkAK$createContext(defaultContext);\n function Provider(props) {\n const { children: children , ...context } = props; // Only re-memoize when prop values change\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const value = $3bkAK$useMemo(()=>context\n , Object.values(context));\n return /*#__PURE__*/ $3bkAK$createElement(Context.Provider, {\n value: value\n }, children);\n }\n function useContext(consumerName) {\n const context = $3bkAK$useContext(Context);\n if (context) return context;\n if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context.\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + 'Provider';\n return [\n Provider,\n useContext\n ];\n}\n/* -------------------------------------------------------------------------------------------------\n * createContextScope\n * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n /* -----------------------------------------------------------------------------------------------\n * createContext\n * ---------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {\n const BaseContext = /*#__PURE__*/ $3bkAK$createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [\n ...defaultContexts,\n defaultContext\n ];\n function Provider(props) {\n const { scope: scope , children: children , ...context } = props;\n const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext; // Only re-memoize when prop values change\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const value = $3bkAK$useMemo(()=>context\n , Object.values(context));\n return /*#__PURE__*/ $3bkAK$createElement(Context.Provider, {\n value: value\n }, children);\n }\n function useContext(consumerName, scope) {\n const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext;\n const context = $3bkAK$useContext(Context);\n if (context) return context;\n if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context.\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + 'Provider';\n return [\n Provider,\n useContext\n ];\n }\n /* -----------------------------------------------------------------------------------------------\n * createScope\n * ---------------------------------------------------------------------------------------------*/ const createScope = ()=>{\n const scopeContexts = defaultContexts.map((defaultContext)=>{\n return /*#__PURE__*/ $3bkAK$createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts;\n return $3bkAK$useMemo(()=>({\n [`__scope${scopeName}`]: {\n ...scope,\n [scopeName]: contexts\n }\n })\n , [\n scope,\n contexts\n ]);\n };\n };\n createScope.scopeName = scopeName;\n return [\n $c512c27ab02ef895$export$fd42f52fd3ae1109,\n $c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps)\n ];\n}\n/* -------------------------------------------------------------------------------------------------\n * composeContextScopes\n * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$var$composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope1 = ()=>{\n const scopeHooks = scopes.map((createScope)=>({\n useScope: createScope(),\n scopeName: createScope.scopeName\n })\n );\n return function useComposedScopes(overrideScopes) {\n const nextScopes1 = scopeHooks.reduce((nextScopes, { useScope: useScope , scopeName: scopeName })=>{\n // We are calling a hook inside a callback which React warns against to avoid inconsistent\n // renders, however, scoping doesn't have render side effects so we ignore the rule.\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return {\n ...nextScopes,\n ...currentScope\n };\n }, {});\n return $3bkAK$useMemo(()=>({\n [`__scope${baseScope.scopeName}`]: nextScopes1\n })\n , [\n nextScopes1\n ]);\n };\n };\n createScope1.scopeName = baseScope.scopeName;\n return createScope1;\n}\n\n\n\n\nexport {$c512c27ab02ef895$export$fd42f52fd3ae1109 as createContext, $c512c27ab02ef895$export$50c7b4e9d9f19c1 as createContextScope};\n","import {useLayoutEffect as $dxlwH$useLayoutEffect} from \"react\";\n\n\n/**\n * On the server, React emits a warning when calling `useLayoutEffect`.\n * This is because neither `useLayoutEffect` nor `useEffect` run on the server.\n * We use this safe version which suppresses the warning by replacing it with a noop on the server.\n *\n * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect\n */ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? $dxlwH$useLayoutEffect : ()=>{};\n\n\n\n\nexport {$9f79659886946c16$export$e5c5a5f917a5871c as useLayoutEffect};\n","import * as $2AODx$react from \"react\";\nimport {useLayoutEffect as $2AODx$useLayoutEffect} from \"@radix-ui/react-use-layout-effect\";\n\n\n\nconst $1746a345f3d73bb7$var$useReactId = $2AODx$react['useId'.toString()] || (()=>undefined\n);\nlet $1746a345f3d73bb7$var$count = 0;\nfunction $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {\n const [id, setId] = $2AODx$react.useState($1746a345f3d73bb7$var$useReactId()); // React versions older than 18 will have client-side ids only.\n $2AODx$useLayoutEffect(()=>{\n if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)\n );\n }, [\n deterministicId\n ]);\n return deterministicId || (id ? `radix-${id}` : '');\n}\n\n\n\n\nexport {$1746a345f3d73bb7$export$f680877a34711e37 as useId};\n","import {useRef as $lwiWj$useRef, useEffect as $lwiWj$useEffect, useMemo as $lwiWj$useMemo} from \"react\";\n\n\n/**\n * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a\n * prop or avoid re-executing effects when passed as a dependency\n */ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {\n const callbackRef = $lwiWj$useRef(callback);\n $lwiWj$useEffect(()=>{\n callbackRef.current = callback;\n }); // https://github.com/facebook/react/issues/19240\n return $lwiWj$useMemo(()=>(...args)=>{\n var _callbackRef$current;\n return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);\n }\n , []);\n}\n\n\n\n\nexport {$b1b2314f5f9a1d84$export$25bec8c6f54ee79a as useCallbackRef};\n","import {useCallback as $bnPw9$useCallback, useState as $bnPw9$useState, useRef as $bnPw9$useRef, useEffect as $bnPw9$useEffect} from \"react\";\nimport {useCallbackRef as $bnPw9$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\n\n\n\nfunction $71cd76cc60e0454e$export$6f32135080cb4c3({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {\n const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState({\n defaultProp: defaultProp,\n onChange: onChange\n });\n const isControlled = prop !== undefined;\n const value1 = isControlled ? prop : uncontrolledProp;\n const handleChange = $bnPw9$useCallbackRef(onChange);\n const setValue = $bnPw9$useCallback((nextValue)=>{\n if (isControlled) {\n const setter = nextValue;\n const value = typeof nextValue === 'function' ? setter(prop) : nextValue;\n if (value !== prop) handleChange(value);\n } else setUncontrolledProp(nextValue);\n }, [\n isControlled,\n prop,\n setUncontrolledProp,\n handleChange\n ]);\n return [\n value1,\n setValue\n ];\n}\nfunction $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp , onChange: onChange }) {\n const uncontrolledState = $bnPw9$useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = $bnPw9$useRef(value);\n const handleChange = $bnPw9$useCallbackRef(onChange);\n $bnPw9$useEffect(()=>{\n if (prevValueRef.current !== value) {\n handleChange(value);\n prevValueRef.current = value;\n }\n }, [\n value,\n prevValueRef,\n handleChange\n ]);\n return uncontrolledState;\n}\n\n\n\n\nexport {$71cd76cc60e0454e$export$6f32135080cb4c3 as useControllableState};\n","import $9IrjX$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $9IrjX$forwardRef, Children as $9IrjX$Children, isValidElement as $9IrjX$isValidElement, createElement as $9IrjX$createElement, cloneElement as $9IrjX$cloneElement, Fragment as $9IrjX$Fragment} from \"react\";\nimport {composeRefs as $9IrjX$composeRefs} from \"@radix-ui/react-compose-refs\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n const childrenArray = $9IrjX$Children.toArray(children);\n const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);\n if (slottable) {\n // the new element to render is the one passed as a child of `Slottable`\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child)=>{\n if (child === slottable) {\n // because the new element will be the one rendered, we are only interested\n // in grabbing its children (`newElement.props.children`)\n if ($9IrjX$Children.count(newElement) > 1) return $9IrjX$Children.only(null);\n return /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? newElement.props.children : null;\n } else return child;\n });\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? /*#__PURE__*/ $9IrjX$cloneElement(newElement, undefined, newChildren) : null);\n }\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), children);\n});\n$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';\n/* -------------------------------------------------------------------------------------------------\n * SlotClone\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n if (/*#__PURE__*/ $9IrjX$isValidElement(children)) return /*#__PURE__*/ $9IrjX$cloneElement(children, {\n ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),\n ref: $9IrjX$composeRefs(forwardedRef, children.ref)\n });\n return $9IrjX$Children.count(children) > 1 ? $9IrjX$Children.only(null) : null;\n});\n$5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{\n return /*#__PURE__*/ $9IrjX$createElement($9IrjX$Fragment, null, children);\n};\n/* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {\n return /*#__PURE__*/ $9IrjX$isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;\n}\nfunction $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {\n // all child props should override\n const overrideProps = {\n ...childProps\n };\n for(const propName in childProps){\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName); // if it's a handler, modify the override by composing the base handler\n if (isHandler) overrideProps[propName] = (...args)=>{\n childPropValue === null || childPropValue === void 0 || childPropValue(...args);\n slotPropValue === null || slotPropValue === void 0 || slotPropValue(...args);\n };\n else if (propName === 'style') overrideProps[propName] = {\n ...slotPropValue,\n ...childPropValue\n };\n else if (propName === 'className') overrideProps[propName] = [\n slotPropValue,\n childPropValue\n ].filter(Boolean).join(' ');\n }\n return {\n ...slotProps,\n ...overrideProps\n };\n}\nconst $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;\n\n\n\n\nexport {$5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable, $5e63c961fc1ce211$export$be92b6f5f03c0fe9 as Root};\n","import $4q5Fq$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $4q5Fq$forwardRef, useEffect as $4q5Fq$useEffect, createElement as $4q5Fq$createElement} from \"react\";\nimport {flushSync as $4q5Fq$flushSync} from \"react-dom\";\nimport {Slot as $4q5Fq$Slot} from \"@radix-ui/react-slot\";\n\n\n\n\n\nconst $8927f6f2acc4f386$var$NODES = [\n 'a',\n 'button',\n 'div',\n 'h2',\n 'h3',\n 'img',\n 'li',\n 'nav',\n 'ol',\n 'p',\n 'span',\n 'svg',\n 'ul'\n]; // Temporary while we await merge of this fix:\n// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/55396\n// prettier-ignore\n/* -------------------------------------------------------------------------------------------------\n * Primitive\n * -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce((primitive, node)=>{\n const Node = /*#__PURE__*/ $4q5Fq$forwardRef((props, forwardedRef)=>{\n const { asChild: asChild , ...primitiveProps } = props;\n const Comp = asChild ? $4q5Fq$Slot : node;\n $4q5Fq$useEffect(()=>{\n window[Symbol.for('radix-ui')] = true;\n }, []);\n return /*#__PURE__*/ $4q5Fq$createElement(Comp, $4q5Fq$babelruntimehelpersesmextends({}, primitiveProps, {\n ref: forwardedRef\n }));\n });\n Node.displayName = `Primitive.${node}`;\n return {\n ...primitive,\n [node]: Node\n };\n}, {});\n/* -------------------------------------------------------------------------------------------------\n * Utils\n * -----------------------------------------------------------------------------------------------*/ /**\n * Flush custom event dispatch\n * https://github.com/radix-ui/primitives/pull/1378\n *\n * React batches *all* event handlers since version 18, this introduces certain considerations when using custom event types.\n *\n * Internally, React prioritises events in the following order:\n * - discrete\n * - continuous\n * - default\n *\n * https://github.com/facebook/react/blob/a8a4742f1c54493df00da648a3f9d26e3db9c8b5/packages/react-dom/src/events/ReactDOMEventListener.js#L294-L350\n *\n * `discrete` is an important distinction as updates within these events are applied immediately.\n * React however, is not able to infer the priority of custom event types due to how they are detected internally.\n * Because of this, it's possible for updates from custom events to be unexpectedly batched when\n * dispatched by another `discrete` event.\n *\n * In order to ensure that updates from custom events are applied predictably, we need to manually flush the batch.\n * This utility should be used when dispatching a custom event from within another `discrete` event, this utility\n * is not nessesary when dispatching known event types, or if dispatching a custom type inside a non-discrete event.\n * For example:\n *\n * dispatching a known click 👎\n * target.dispatchEvent(new Event(‘click’))\n *\n * dispatching a custom type within a non-discrete event 👎\n * onScroll={(event) => event.target.dispatchEvent(new CustomEvent(‘customType’))}\n *\n * dispatching a custom type within a `discrete` event 👍\n * onPointerDown={(event) => dispatchDiscreteCustomEvent(event.target, new CustomEvent(‘customType’))}\n *\n * Note: though React classifies `focus`, `focusin` and `focusout` events as `discrete`, it's not recommended to use\n * this utility with them. This is because it's possible for those handlers to be called implicitly during render\n * e.g. when focus is within a component as it is unmounted, or when managing focus on mount.\n */ function $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event) {\n if (target) $4q5Fq$flushSync(()=>target.dispatchEvent(event)\n );\n}\n/* -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$be92b6f5f03c0fe9 = $8927f6f2acc4f386$export$250ffa63cdc0d034;\n\n\n\n\nexport {$8927f6f2acc4f386$export$250ffa63cdc0d034 as Primitive, $8927f6f2acc4f386$export$be92b6f5f03c0fe9 as Root, $8927f6f2acc4f386$export$6d1a0317bde7de7f as dispatchDiscreteCustomEvent};\n","import $kqwpH$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {createContext as $kqwpH$createContext, forwardRef as $kqwpH$forwardRef, useContext as $kqwpH$useContext, useState as $kqwpH$useState, useEffect as $kqwpH$useEffect, createElement as $kqwpH$createElement, useRef as $kqwpH$useRef} from \"react\";\nimport {composeEventHandlers as $kqwpH$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {Primitive as $kqwpH$Primitive, dispatchDiscreteCustomEvent as $kqwpH$dispatchDiscreteCustomEvent} from \"@radix-ui/react-primitive\";\nimport {useComposedRefs as $kqwpH$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {useCallbackRef as $kqwpH$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\nimport {useEscapeKeydown as $kqwpH$useEscapeKeydown} from \"@radix-ui/react-use-escape-keydown\";\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * DismissableLayer\n * -----------------------------------------------------------------------------------------------*/ const $5cb92bef7577960e$var$DISMISSABLE_LAYER_NAME = 'DismissableLayer';\nconst $5cb92bef7577960e$var$CONTEXT_UPDATE = 'dismissableLayer.update';\nconst $5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE = 'dismissableLayer.pointerDownOutside';\nconst $5cb92bef7577960e$var$FOCUS_OUTSIDE = 'dismissableLayer.focusOutside';\nlet $5cb92bef7577960e$var$originalBodyPointerEvents;\nconst $5cb92bef7577960e$var$DismissableLayerContext = /*#__PURE__*/ $kqwpH$createContext({\n layers: new Set(),\n layersWithOutsidePointerEventsDisabled: new Set(),\n branches: new Set()\n});\nconst $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ $kqwpH$forwardRef((props, forwardedRef)=>{\n const { disableOutsidePointerEvents: disableOutsidePointerEvents = false , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , onFocusOutside: onFocusOutside , onInteractOutside: onInteractOutside , onDismiss: onDismiss , ...layerProps } = props;\n const context = $kqwpH$useContext($5cb92bef7577960e$var$DismissableLayerContext);\n const [node1, setNode] = $kqwpH$useState(null);\n const [, force] = $kqwpH$useState({});\n const composedRefs = $kqwpH$useComposedRefs(forwardedRef, (node)=>setNode(node)\n );\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [\n ...context.layersWithOutsidePointerEventsDisabled\n ].slice(-1); // prettier-ignore\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled); // prettier-ignore\n const index = node1 ? layers.indexOf(node1) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = $5cb92bef7577960e$var$usePointerDownOutside((event)=>{\n const target = event.target;\n const isPointerDownOnBranch = [\n ...context.branches\n ].some((branch)=>branch.contains(target)\n );\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside === null || onPointerDownOutside === void 0 || onPointerDownOutside(event);\n onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);\n if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();\n });\n const focusOutside = $5cb92bef7577960e$var$useFocusOutside((event)=>{\n const target = event.target;\n const isFocusInBranch = [\n ...context.branches\n ].some((branch)=>branch.contains(target)\n );\n if (isFocusInBranch) return;\n onFocusOutside === null || onFocusOutside === void 0 || onFocusOutside(event);\n onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);\n if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();\n });\n $kqwpH$useEscapeKeydown((event)=>{\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n });\n $kqwpH$useEffect(()=>{\n if (!node1) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n $5cb92bef7577960e$var$originalBodyPointerEvents = document.body.style.pointerEvents;\n document.body.style.pointerEvents = 'none';\n }\n context.layersWithOutsidePointerEventsDisabled.add(node1);\n }\n context.layers.add(node1);\n $5cb92bef7577960e$var$dispatchUpdate();\n return ()=>{\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) document.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;\n };\n }, [\n node1,\n disableOutsidePointerEvents,\n context\n ]);\n /**\n * We purposefully prevent combining this effect with the `disableOutsidePointerEvents` effect\n * because a change to `disableOutsidePointerEvents` would remove this layer from the stack\n * and add it to the end again so the layering order wouldn't be _creation order_.\n * We only want them to be removed from context stacks when unmounted.\n */ $kqwpH$useEffect(()=>{\n return ()=>{\n if (!node1) return;\n context.layers.delete(node1);\n context.layersWithOutsidePointerEventsDisabled.delete(node1);\n $5cb92bef7577960e$var$dispatchUpdate();\n };\n }, [\n node1,\n context\n ]);\n $kqwpH$useEffect(()=>{\n const handleUpdate = ()=>force({})\n ;\n document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);\n return ()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate)\n ;\n }, []);\n return /*#__PURE__*/ $kqwpH$createElement($kqwpH$Primitive.div, $kqwpH$babelruntimehelpersesmextends({}, layerProps, {\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? 'auto' : 'none' : undefined,\n ...props.style\n },\n onFocusCapture: $kqwpH$composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: $kqwpH$composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: $kqwpH$composeEventHandlers(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)\n }));\n});\n/*#__PURE__*/ Object.assign($5cb92bef7577960e$export$177fb62ff3ec1f22, {\n displayName: $5cb92bef7577960e$var$DISMISSABLE_LAYER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DismissableLayerBranch\n * -----------------------------------------------------------------------------------------------*/ const $5cb92bef7577960e$var$BRANCH_NAME = 'DismissableLayerBranch';\nconst $5cb92bef7577960e$export$4d5eb2109db14228 = /*#__PURE__*/ $kqwpH$forwardRef((props, forwardedRef)=>{\n const context = $kqwpH$useContext($5cb92bef7577960e$var$DismissableLayerContext);\n const ref = $kqwpH$useRef(null);\n const composedRefs = $kqwpH$useComposedRefs(forwardedRef, ref);\n $kqwpH$useEffect(()=>{\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return ()=>{\n context.branches.delete(node);\n };\n }\n }, [\n context.branches\n ]);\n return /*#__PURE__*/ $kqwpH$createElement($kqwpH$Primitive.div, $kqwpH$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs\n }));\n});\n/*#__PURE__*/ Object.assign($5cb92bef7577960e$export$4d5eb2109db14228, {\n displayName: $5cb92bef7577960e$var$BRANCH_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ /**\n * Listens for `pointerdown` outside a react subtree. We use `pointerdown` rather than `pointerup`\n * to mimic layer dismissing behaviour present in OS.\n * Returns props to pass to the node we want to check for outside events.\n */ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside) {\n const handlePointerDownOutside = $kqwpH$useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = $kqwpH$useRef(false);\n const handleClickRef = $kqwpH$useRef(()=>{});\n $kqwpH$useEffect(()=>{\n const handlePointerDown = (event)=>{\n if (event.target && !isPointerInsideReactTreeRef.current) {\n const eventDetail = {\n originalEvent: event\n };\n function handleAndDispatchPointerDownOutsideEvent() {\n $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, {\n discrete: true\n });\n }\n /**\n * On touch devices, we need to wait for a click event because browsers implement\n * a ~350ms delay between the time the user stops touching the display and when the\n * browser executres events. We need to ensure we don't reactivate pointer-events within\n * this timeframe otherwise the browser may execute events that should have been prevented.\n *\n * Additionally, this also lets us deal automatically with cancellations when a click event\n * isn't raised because the page was considered scrolled/drag-scrolled, long-pressed, etc.\n *\n * This is why we also continuously remove the previous listener, because we cannot be\n * certain that it was raised, and therefore cleaned-up.\n */ if (event.pointerType === 'touch') {\n document.removeEventListener('click', handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent;\n document.addEventListener('click', handleClickRef.current, {\n once: true\n });\n } else handleAndDispatchPointerDownOutsideEvent();\n }\n isPointerInsideReactTreeRef.current = false;\n };\n /**\n * if this hook executes in a component that mounts via a `pointerdown` event, the event\n * would bubble up to the document and trigger a `pointerDownOutside` event. We avoid\n * this by delaying the event listener registration on the document.\n * This is not React specific, but rather how the DOM works, ie:\n * ```\n * button.addEventListener('pointerdown', () => {\n * console.log('I will log');\n * document.addEventListener('pointerdown', () => {\n * console.log('I will also log');\n * })\n * });\n */ const timerId = window.setTimeout(()=>{\n document.addEventListener('pointerdown', handlePointerDown);\n }, 0);\n return ()=>{\n window.clearTimeout(timerId);\n document.removeEventListener('pointerdown', handlePointerDown);\n document.removeEventListener('click', handleClickRef.current);\n };\n }, [\n handlePointerDownOutside\n ]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: ()=>isPointerInsideReactTreeRef.current = true\n };\n}\n/**\n * Listens for when focus happens outside a react subtree.\n * Returns props to pass to the root (node) of the subtree we want to check.\n */ function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside) {\n const handleFocusOutside = $kqwpH$useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = $kqwpH$useRef(false);\n $kqwpH$useEffect(()=>{\n const handleFocus = (event)=>{\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = {\n originalEvent: event\n };\n $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n document.addEventListener('focusin', handleFocus);\n return ()=>document.removeEventListener('focusin', handleFocus)\n ;\n }, [\n handleFocusOutside\n ]);\n return {\n onFocusCapture: ()=>isFocusInsideReactTreeRef.current = true\n ,\n onBlurCapture: ()=>isFocusInsideReactTreeRef.current = false\n };\n}\nfunction $5cb92bef7577960e$var$dispatchUpdate() {\n const event = new CustomEvent($5cb92bef7577960e$var$CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detail, { discrete: discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, {\n bubbles: false,\n cancelable: true,\n detail: detail\n });\n if (handler) target.addEventListener(name, handler, {\n once: true\n });\n if (discrete) $kqwpH$dispatchDiscreteCustomEvent(target, event);\n else target.dispatchEvent(event);\n}\nconst $5cb92bef7577960e$export$be92b6f5f03c0fe9 = $5cb92bef7577960e$export$177fb62ff3ec1f22;\nconst $5cb92bef7577960e$export$aecb2ddcb55c95be = $5cb92bef7577960e$export$4d5eb2109db14228;\n\n\n\n\nexport {$5cb92bef7577960e$export$177fb62ff3ec1f22 as DismissableLayer, $5cb92bef7577960e$export$4d5eb2109db14228 as DismissableLayerBranch, $5cb92bef7577960e$export$be92b6f5f03c0fe9 as Root, $5cb92bef7577960e$export$aecb2ddcb55c95be as Branch};\n","import {useEffect as $hPSQ5$useEffect} from \"react\";\nimport {useCallbackRef as $hPSQ5$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\n\n\n\n/**\n * Listens for when the escape key is down\n */ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp) {\n const onEscapeKeyDown = $hPSQ5$useCallbackRef(onEscapeKeyDownProp);\n $hPSQ5$useEffect(()=>{\n const handleKeyDown = (event)=>{\n if (event.key === 'Escape') onEscapeKeyDown(event);\n };\n document.addEventListener('keydown', handleKeyDown);\n return ()=>document.removeEventListener('keydown', handleKeyDown)\n ;\n }, [\n onEscapeKeyDown\n ]);\n}\n\n\n\n\nexport {$addc16e1bbe58fd0$export$3a72a57244d6e765 as useEscapeKeydown};\n","import $45QHv$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $45QHv$forwardRef, useState as $45QHv$useState, useRef as $45QHv$useRef, useEffect as $45QHv$useEffect, useCallback as $45QHv$useCallback, createElement as $45QHv$createElement} from \"react\";\nimport {useComposedRefs as $45QHv$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {Primitive as $45QHv$Primitive} from \"@radix-ui/react-primitive\";\nimport {useCallbackRef as $45QHv$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\n\n\n\n\n\n\nconst $d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT = 'focusScope.autoFocusOnMount';\nconst $d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT = 'focusScope.autoFocusOnUnmount';\nconst $d3863c46a17e8a28$var$EVENT_OPTIONS = {\n bubbles: false,\n cancelable: true\n};\n/* -------------------------------------------------------------------------------------------------\n * FocusScope\n * -----------------------------------------------------------------------------------------------*/ const $d3863c46a17e8a28$var$FOCUS_SCOPE_NAME = 'FocusScope';\nconst $d3863c46a17e8a28$export$20e40289641fbbb6 = /*#__PURE__*/ $45QHv$forwardRef((props, forwardedRef)=>{\n const { loop: loop = false , trapped: trapped = false , onMountAutoFocus: onMountAutoFocusProp , onUnmountAutoFocus: onUnmountAutoFocusProp , ...scopeProps } = props;\n const [container1, setContainer] = $45QHv$useState(null);\n const onMountAutoFocus = $45QHv$useCallbackRef(onMountAutoFocusProp);\n const onUnmountAutoFocus = $45QHv$useCallbackRef(onUnmountAutoFocusProp);\n const lastFocusedElementRef = $45QHv$useRef(null);\n const composedRefs = $45QHv$useComposedRefs(forwardedRef, (node)=>setContainer(node)\n );\n const focusScope = $45QHv$useRef({\n paused: false,\n pause () {\n this.paused = true;\n },\n resume () {\n this.paused = false;\n }\n }).current; // Takes care of trapping focus if focus is moved outside programmatically for example\n $45QHv$useEffect(()=>{\n if (trapped) {\n function handleFocusIn(event) {\n if (focusScope.paused || !container1) return;\n const target = event.target;\n if (container1.contains(target)) lastFocusedElementRef.current = target;\n else $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {\n select: true\n });\n }\n function handleFocusOut(event) {\n if (focusScope.paused || !container1) return;\n if (!container1.contains(event.relatedTarget)) $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {\n select: true\n });\n }\n document.addEventListener('focusin', handleFocusIn);\n document.addEventListener('focusout', handleFocusOut);\n return ()=>{\n document.removeEventListener('focusin', handleFocusIn);\n document.removeEventListener('focusout', handleFocusOut);\n };\n }\n }, [\n trapped,\n container1,\n focusScope.paused\n ]);\n $45QHv$useEffect(()=>{\n if (container1) {\n $d3863c46a17e8a28$var$focusScopesStack.add(focusScope);\n const previouslyFocusedElement = document.activeElement;\n const hasFocusedCandidate = container1.contains(previouslyFocusedElement);\n if (!hasFocusedCandidate) {\n const mountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);\n container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n container1.dispatchEvent(mountEvent);\n if (!mountEvent.defaultPrevented) {\n $d3863c46a17e8a28$var$focusFirst($d3863c46a17e8a28$var$removeLinks($d3863c46a17e8a28$var$getTabbableCandidates(container1)), {\n select: true\n });\n if (document.activeElement === previouslyFocusedElement) $d3863c46a17e8a28$var$focus(container1);\n }\n }\n return ()=>{\n container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, onMountAutoFocus); // We hit a react bug (fixed in v17) with focusing in unmount.\n // We need to delay the focus a little to get around it for now.\n // See: https://github.com/facebook/react/issues/17894\n setTimeout(()=>{\n const unmountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);\n container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n container1.dispatchEvent(unmountEvent);\n if (!unmountEvent.defaultPrevented) $d3863c46a17e8a28$var$focus(previouslyFocusedElement !== null && previouslyFocusedElement !== void 0 ? previouslyFocusedElement : document.body, {\n select: true\n });\n // we need to remove the listener after we `dispatchEvent`\n container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n $d3863c46a17e8a28$var$focusScopesStack.remove(focusScope);\n }, 0);\n };\n }\n }, [\n container1,\n onMountAutoFocus,\n onUnmountAutoFocus,\n focusScope\n ]); // Takes care of looping focus (when tabbing whilst at the edges)\n const handleKeyDown = $45QHv$useCallback((event)=>{\n if (!loop && !trapped) return;\n if (focusScope.paused) return;\n const isTabKey = event.key === 'Tab' && !event.altKey && !event.ctrlKey && !event.metaKey;\n const focusedElement = document.activeElement;\n if (isTabKey && focusedElement) {\n const container = event.currentTarget;\n const [first, last] = $d3863c46a17e8a28$var$getTabbableEdges(container);\n const hasTabbableElementsInside = first && last; // we can only wrap focus if we have tabbable edges\n if (!hasTabbableElementsInside) {\n if (focusedElement === container) event.preventDefault();\n } else {\n if (!event.shiftKey && focusedElement === last) {\n event.preventDefault();\n if (loop) $d3863c46a17e8a28$var$focus(first, {\n select: true\n });\n } else if (event.shiftKey && focusedElement === first) {\n event.preventDefault();\n if (loop) $d3863c46a17e8a28$var$focus(last, {\n select: true\n });\n }\n }\n }\n }, [\n loop,\n trapped,\n focusScope.paused\n ]);\n return /*#__PURE__*/ $45QHv$createElement($45QHv$Primitive.div, $45QHv$babelruntimehelpersesmextends({\n tabIndex: -1\n }, scopeProps, {\n ref: composedRefs,\n onKeyDown: handleKeyDown\n }));\n});\n/*#__PURE__*/ Object.assign($d3863c46a17e8a28$export$20e40289641fbbb6, {\n displayName: $d3863c46a17e8a28$var$FOCUS_SCOPE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * Utils\n * -----------------------------------------------------------------------------------------------*/ /**\n * Attempts focusing the first element in a list of candidates.\n * Stops when focus has actually moved.\n */ function $d3863c46a17e8a28$var$focusFirst(candidates, { select: select = false } = {}) {\n const previouslyFocusedElement = document.activeElement;\n for (const candidate of candidates){\n $d3863c46a17e8a28$var$focus(candidate, {\n select: select\n });\n if (document.activeElement !== previouslyFocusedElement) return;\n }\n}\n/**\n * Returns the first and last tabbable elements inside a container.\n */ function $d3863c46a17e8a28$var$getTabbableEdges(container) {\n const candidates = $d3863c46a17e8a28$var$getTabbableCandidates(container);\n const first = $d3863c46a17e8a28$var$findVisible(candidates, container);\n const last = $d3863c46a17e8a28$var$findVisible(candidates.reverse(), container);\n return [\n first,\n last\n ];\n}\n/**\n * Returns a list of potential tabbable candidates.\n *\n * NOTE: This is only a close approximation. For example it doesn't take into account cases like when\n * elements are not visible. This cannot be worked out easily by just reading a property, but rather\n * necessitate runtime knowledge (computed styles, etc). We deal with these cases separately.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker\n * Credit: https://github.com/discord/focus-layers/blob/master/src/util/wrapFocus.tsx#L1\n */ function $d3863c46a17e8a28$var$getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node)=>{\n const isHiddenInput = node.tagName === 'INPUT' && node.type === 'hidden';\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP; // `.tabIndex` is not the same as the `tabindex` attribute. It works on the\n // runtime's understanding of tabbability, so this automatically accounts\n // for any kind of element that could be tabbed to.\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while(walker.nextNode())nodes.push(walker.currentNode); // we do not take into account the order of nodes with positive `tabIndex` as it\n // hinders accessibility to have tab order different from visual order.\n return nodes;\n}\n/**\n * Returns the first visible element in a list.\n * NOTE: Only checks visibility up to the `container`.\n */ function $d3863c46a17e8a28$var$findVisible(elements, container) {\n for (const element of elements){\n // we stop checking if it's hidden at the `container` level (excluding)\n if (!$d3863c46a17e8a28$var$isHidden(element, {\n upTo: container\n })) return element;\n }\n}\nfunction $d3863c46a17e8a28$var$isHidden(node, { upTo: upTo }) {\n if (getComputedStyle(node).visibility === 'hidden') return true;\n while(node){\n // we stop at `upTo` (excluding it)\n if (upTo !== undefined && node === upTo) return false;\n if (getComputedStyle(node).display === 'none') return true;\n node = node.parentElement;\n }\n return false;\n}\nfunction $d3863c46a17e8a28$var$isSelectableInput(element) {\n return element instanceof HTMLInputElement && 'select' in element;\n}\nfunction $d3863c46a17e8a28$var$focus(element, { select: select = false } = {}) {\n // only focus if that element is focusable\n if (element && element.focus) {\n const previouslyFocusedElement = document.activeElement; // NOTE: we prevent scrolling on focus, to minimize jarring transitions for users\n element.focus({\n preventScroll: true\n }); // only select if its not the same element, it supports selection and we need to select\n if (element !== previouslyFocusedElement && $d3863c46a17e8a28$var$isSelectableInput(element) && select) element.select();\n }\n}\n/* -------------------------------------------------------------------------------------------------\n * FocusScope stack\n * -----------------------------------------------------------------------------------------------*/ const $d3863c46a17e8a28$var$focusScopesStack = $d3863c46a17e8a28$var$createFocusScopesStack();\nfunction $d3863c46a17e8a28$var$createFocusScopesStack() {\n /** A stack of focus scopes, with the active one at the top */ let stack = [];\n return {\n add (focusScope) {\n // pause the currently active focus scope (at the top of the stack)\n const activeFocusScope = stack[0];\n if (focusScope !== activeFocusScope) activeFocusScope === null || activeFocusScope === void 0 || activeFocusScope.pause();\n // remove in case it already exists (because we'll re-add it at the top of the stack)\n stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);\n stack.unshift(focusScope);\n },\n remove (focusScope) {\n var _stack$;\n stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);\n (_stack$ = stack[0]) === null || _stack$ === void 0 || _stack$.resume();\n }\n };\n}\nfunction $d3863c46a17e8a28$var$arrayRemove(array, item) {\n const updatedArray = [\n ...array\n ];\n const index = updatedArray.indexOf(item);\n if (index !== -1) updatedArray.splice(index, 1);\n return updatedArray;\n}\nfunction $d3863c46a17e8a28$var$removeLinks(items) {\n return items.filter((item)=>item.tagName !== 'A'\n );\n}\nconst $d3863c46a17e8a28$export$be92b6f5f03c0fe9 = $d3863c46a17e8a28$export$20e40289641fbbb6;\n\n\n\n\nexport {$d3863c46a17e8a28$export$20e40289641fbbb6 as FocusScope, $d3863c46a17e8a28$export$be92b6f5f03c0fe9 as Root};\n","import $7SXl2$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $7SXl2$forwardRef, createElement as $7SXl2$createElement} from \"react\";\nimport $7SXl2$reactdom from \"react-dom\";\nimport {Primitive as $7SXl2$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Portal\n * -----------------------------------------------------------------------------------------------*/ const $f1701beae083dbae$var$PORTAL_NAME = 'Portal';\nconst $f1701beae083dbae$export$602eac185826482c = /*#__PURE__*/ $7SXl2$forwardRef((props, forwardedRef)=>{\n var _globalThis$document;\n const { container: container = globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.body , ...portalProps } = props;\n return container ? /*#__PURE__*/ $7SXl2$reactdom.createPortal(/*#__PURE__*/ $7SXl2$createElement($7SXl2$Primitive.div, $7SXl2$babelruntimehelpersesmextends({}, portalProps, {\n ref: forwardedRef\n })), container) : null;\n});\n/*#__PURE__*/ Object.assign($f1701beae083dbae$export$602eac185826482c, {\n displayName: $f1701beae083dbae$var$PORTAL_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $f1701beae083dbae$export$be92b6f5f03c0fe9 = $f1701beae083dbae$export$602eac185826482c;\n\n\n\n\nexport {$f1701beae083dbae$export$602eac185826482c as Portal, $f1701beae083dbae$export$be92b6f5f03c0fe9 as Root};\n","import {Children as $iqq3r$Children, cloneElement as $iqq3r$cloneElement, useState as $iqq3r$useState, useRef as $iqq3r$useRef, useEffect as $iqq3r$useEffect, useCallback as $iqq3r$useCallback, useReducer as $iqq3r$useReducer} from \"react\";\nimport {flushSync as $iqq3r$flushSync} from \"react-dom\";\nimport {useComposedRefs as $iqq3r$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {useLayoutEffect as $iqq3r$useLayoutEffect} from \"@radix-ui/react-use-layout-effect\";\n\n\n\n\n\n\nfunction $fe963b355347cc68$export$3e6543de14f8614f(initialState, machine) {\n return $iqq3r$useReducer((state, event)=>{\n const nextState = machine[state][event];\n return nextState !== null && nextState !== void 0 ? nextState : state;\n }, initialState);\n}\n\n\nconst $921a889cee6df7e8$export$99c2b779aa4e8b8b = (props)=>{\n const { present: present , children: children } = props;\n const presence = $921a889cee6df7e8$var$usePresence(present);\n const child = typeof children === 'function' ? children({\n present: presence.isPresent\n }) : $iqq3r$Children.only(children);\n const ref = $iqq3r$useComposedRefs(presence.ref, child.ref);\n const forceMount = typeof children === 'function';\n return forceMount || presence.isPresent ? /*#__PURE__*/ $iqq3r$cloneElement(child, {\n ref: ref\n }) : null;\n};\n$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName = 'Presence';\n/* -------------------------------------------------------------------------------------------------\n * usePresence\n * -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$usePresence(present) {\n const [node1, setNode] = $iqq3r$useState();\n const stylesRef = $iqq3r$useRef({});\n const prevPresentRef = $iqq3r$useRef(present);\n const prevAnimationNameRef = $iqq3r$useRef('none');\n const initialState = present ? 'mounted' : 'unmounted';\n const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f(initialState, {\n mounted: {\n UNMOUNT: 'unmounted',\n ANIMATION_OUT: 'unmountSuspended'\n },\n unmountSuspended: {\n MOUNT: 'mounted',\n ANIMATION_END: 'unmounted'\n },\n unmounted: {\n MOUNT: 'mounted'\n }\n });\n $iqq3r$useEffect(()=>{\n const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';\n }, [\n state\n ]);\n $iqq3r$useLayoutEffect(()=>{\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(styles);\n if (present) send('MOUNT');\n else if (currentAnimationName === 'none' || (styles === null || styles === void 0 ? void 0 : styles.display) === 'none') // If there is no exit animation or the element is hidden, animations won't run\n // so we unmount instantly\n send('UNMOUNT');\n else {\n /**\n * When `present` changes to `false`, we check changes to animation-name to\n * determine whether an animation has started. We chose this approach (reading\n * computed styles) because there is no `animationrun` event and `animationstart`\n * fires after `animation-delay` has expired which would be too late.\n */ const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) send('ANIMATION_OUT');\n else send('UNMOUNT');\n }\n prevPresentRef.current = present;\n }\n }, [\n present,\n send\n ]);\n $iqq3r$useLayoutEffect(()=>{\n if (node1) {\n /**\n * Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel`\n * event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we\n * make sure we only trigger ANIMATION_END for the currently active animation.\n */ const handleAnimationEnd = (event)=>{\n const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node1 && isCurrentAnimation) // With React 18 concurrency this update is applied\n // a frame after the animation ends, creating a flash of visible content.\n // By manually flushing we ensure they sync within a frame, removing the flash.\n $iqq3r$flushSync(()=>send('ANIMATION_END')\n );\n };\n const handleAnimationStart = (event)=>{\n if (event.target === node1) // if animation occurred, store its name as the previous animation.\n prevAnimationNameRef.current = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);\n };\n node1.addEventListener('animationstart', handleAnimationStart);\n node1.addEventListener('animationcancel', handleAnimationEnd);\n node1.addEventListener('animationend', handleAnimationEnd);\n return ()=>{\n node1.removeEventListener('animationstart', handleAnimationStart);\n node1.removeEventListener('animationcancel', handleAnimationEnd);\n node1.removeEventListener('animationend', handleAnimationEnd);\n };\n } else // Transition to the unmounted state if the node is removed prematurely.\n // We avoid doing so during cleanup as the node may change but still exist.\n send('ANIMATION_END');\n }, [\n node1,\n send\n ]);\n return {\n isPresent: [\n 'mounted',\n 'unmountSuspended'\n ].includes(state),\n ref: $iqq3r$useCallback((node)=>{\n if (node) stylesRef.current = getComputedStyle(node);\n setNode(node);\n }, [])\n };\n}\n/* -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$getAnimationName(styles) {\n return (styles === null || styles === void 0 ? void 0 : styles.animationName) || 'none';\n}\n\n\n\n\nexport {$921a889cee6df7e8$export$99c2b779aa4e8b8b as Presence};\n","import {useEffect as $1wErz$useEffect} from \"react\";\n\n\n/** Number of components which have requested interest to have focus guards */ let $3db38b7d1fb3fe6a$var$count = 0;\nfunction $3db38b7d1fb3fe6a$export$ac5b58043b79449b(props) {\n $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c();\n return props.children;\n}\n/**\n * Injects a pair of focus guards at the edges of the whole DOM tree\n * to ensure `focusin` & `focusout` events can be caught consistently.\n */ function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c() {\n $1wErz$useEffect(()=>{\n var _edgeGuards$, _edgeGuards$2;\n const edgeGuards = document.querySelectorAll('[data-radix-focus-guard]');\n document.body.insertAdjacentElement('afterbegin', (_edgeGuards$ = edgeGuards[0]) !== null && _edgeGuards$ !== void 0 ? _edgeGuards$ : $3db38b7d1fb3fe6a$var$createFocusGuard());\n document.body.insertAdjacentElement('beforeend', (_edgeGuards$2 = edgeGuards[1]) !== null && _edgeGuards$2 !== void 0 ? _edgeGuards$2 : $3db38b7d1fb3fe6a$var$createFocusGuard());\n $3db38b7d1fb3fe6a$var$count++;\n return ()=>{\n if ($3db38b7d1fb3fe6a$var$count === 1) document.querySelectorAll('[data-radix-focus-guard]').forEach((node)=>node.remove()\n );\n $3db38b7d1fb3fe6a$var$count--;\n };\n }, []);\n}\nfunction $3db38b7d1fb3fe6a$var$createFocusGuard() {\n const element = document.createElement('span');\n element.setAttribute('data-radix-focus-guard', '');\n element.tabIndex = 0;\n element.style.cssText = 'outline: none; opacity: 0; position: fixed; pointer-events: none';\n return element;\n}\nconst $3db38b7d1fb3fe6a$export$be92b6f5f03c0fe9 = $3db38b7d1fb3fe6a$export$ac5b58043b79449b;\n\n\n\n\nexport {$3db38b7d1fb3fe6a$export$ac5b58043b79449b as FocusGuards, $3db38b7d1fb3fe6a$export$be92b6f5f03c0fe9 as Root, $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c as useFocusGuards};\n","import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\n","import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nimport { fullWidthClassName, zeroRightClassName } from 'react-remove-scroll-bar/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { effectCar } from './medium';\nvar nothing = function () {\n return;\n};\n/**\n * Removes scrollbar from the page and contain the scroll within the Lock\n */\nvar RemoveScroll = React.forwardRef(function (props, parentRef) {\n var ref = React.useRef(null);\n var _a = React.useState({\n onScrollCapture: nothing,\n onWheelCapture: nothing,\n onTouchMoveCapture: nothing,\n }), callbacks = _a[0], setCallbacks = _a[1];\n var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, rest = __rest(props, [\"forwardProps\", \"children\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\"]);\n var SideCar = sideCar;\n var containerRef = useMergeRefs([ref, parentRef]);\n var containerProps = __assign(__assign({}, rest), callbacks);\n return (React.createElement(React.Fragment, null,\n enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref })),\n forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));\n});\nRemoveScroll.defaultProps = {\n enabled: true,\n removeScrollBar: true,\n inert: false,\n};\nRemoveScroll.classNames = {\n fullWidth: fullWidthClassName,\n zeroRight: zeroRightClassName,\n};\nexport { RemoveScroll };\n","var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n","var elementCouldBeVScrolled = function (node) {\n var styles = window.getComputedStyle(node);\n return (styles.overflowY !== 'hidden' && // not-not-scrollable\n !(styles.overflowY === styles.overflowX && styles.overflowY === 'visible') // scrollable\n );\n};\nvar elementCouldBeHScrolled = function (node) {\n var styles = window.getComputedStyle(node);\n return (styles.overflowX !== 'hidden' && // not-not-scrollable\n !(styles.overflowY === styles.overflowX && styles.overflowX === 'visible') // scrollable\n );\n};\nexport var locationCouldBeScrolled = function (axis, node) {\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), s = _a[1], d = _a[2];\n if (s > d) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== document.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n target = target.parentNode;\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n if (isDeltaPositive && ((noOverscroll && availableScroll === 0) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && availableScrollTop === 0) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n","import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(function () { return styleSingleton(); })[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if ('touches' in event && event.touches.length === 2) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && e.target === event.target && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n event.preventDefault();\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n event.preventDefault();\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { gapMode: \"margin\" }) : null));\n}\n","import { exportSidecar } from 'use-sidecar';\nimport { RemoveScrollSideCar } from './SideEffect';\nimport { effectCar } from './medium';\nexport default exportSidecar(effectCar, RemoveScrollSideCar);\n","import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n","import $67UHm$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useRef as $67UHm$useRef, createElement as $67UHm$createElement, useCallback as $67UHm$useCallback, forwardRef as $67UHm$forwardRef, Children as $67UHm$Children, useEffect as $67UHm$useEffect, Fragment as $67UHm$Fragment} from \"react\";\nimport {composeEventHandlers as $67UHm$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useComposedRefs as $67UHm$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $67UHm$createContextScope, createContext as $67UHm$createContext} from \"@radix-ui/react-context\";\nimport {useId as $67UHm$useId} from \"@radix-ui/react-id\";\nimport {useControllableState as $67UHm$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {DismissableLayer as $67UHm$DismissableLayer} from \"@radix-ui/react-dismissable-layer\";\nimport {FocusScope as $67UHm$FocusScope} from \"@radix-ui/react-focus-scope\";\nimport {Portal as $67UHm$Portal} from \"@radix-ui/react-portal\";\nimport {Presence as $67UHm$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $67UHm$Primitive} from \"@radix-ui/react-primitive\";\nimport {useFocusGuards as $67UHm$useFocusGuards} from \"@radix-ui/react-focus-guards\";\nimport {RemoveScroll as $67UHm$RemoveScroll} from \"react-remove-scroll\";\nimport {hideOthers as $67UHm$hideOthers} from \"aria-hidden\";\nimport {Slot as $67UHm$Slot} from \"@radix-ui/react-slot\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Dialog\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DIALOG_NAME = 'Dialog';\nconst [$5d3850c4d0b4e6c7$var$createDialogContext, $5d3850c4d0b4e6c7$export$cc702773b8ea3e41] = $67UHm$createContextScope($5d3850c4d0b4e6c7$var$DIALOG_NAME);\nconst [$5d3850c4d0b4e6c7$var$DialogProvider, $5d3850c4d0b4e6c7$var$useDialogContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$DIALOG_NAME);\nconst $5d3850c4d0b4e6c7$export$3ddf2d174ce01153 = (props)=>{\n const { __scopeDialog: __scopeDialog , children: children , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , modal: modal = true } = props;\n const triggerRef = $67UHm$useRef(null);\n const contentRef = $67UHm$useRef(null);\n const [open = false, setOpen] = $67UHm$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogProvider, {\n scope: __scopeDialog,\n triggerRef: triggerRef,\n contentRef: contentRef,\n contentId: $67UHm$useId(),\n titleId: $67UHm$useId(),\n descriptionId: $67UHm$useId(),\n open: open,\n onOpenChange: setOpen,\n onOpenToggle: $67UHm$useCallback(()=>setOpen((prevOpen)=>!prevOpen\n )\n , [\n setOpen\n ]),\n modal: modal\n }, children);\n};\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$3ddf2d174ce01153, {\n displayName: $5d3850c4d0b4e6c7$var$DIALOG_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogTrigger\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$TRIGGER_NAME = 'DialogTrigger';\nconst $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...triggerProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = $67UHm$useComposedRefs(forwardedRef, context.triggerRef);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.button, $67UHm$babelruntimehelpersesmextends({\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n }, triggerProps, {\n ref: composedTriggerRef,\n onClick: $67UHm$composeEventHandlers(props.onClick, context.onOpenToggle)\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$2e1e1122cf0cba88, {\n displayName: $5d3850c4d0b4e6c7$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogPortal\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$PORTAL_NAME = 'DialogPortal';\nconst [$5d3850c4d0b4e6c7$var$PortalProvider, $5d3850c4d0b4e6c7$var$usePortalContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$PORTAL_NAME, {\n forceMount: undefined\n});\nconst $5d3850c4d0b4e6c7$export$dad7c95542bacce0 = (props)=>{\n const { __scopeDialog: __scopeDialog , forceMount: forceMount , children: children , container: container } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$PORTAL_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$PortalProvider, {\n scope: __scopeDialog,\n forceMount: forceMount\n }, $67UHm$Children.map(children, (child)=>/*#__PURE__*/ $67UHm$createElement($67UHm$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $67UHm$createElement($67UHm$Portal, {\n asChild: true,\n container: container\n }, child))\n ));\n};\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$dad7c95542bacce0, {\n displayName: $5d3850c4d0b4e6c7$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogOverlay\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$OVERLAY_NAME = 'DialogOverlay';\nconst $5d3850c4d0b4e6c7$export$bd1d06c79be19e17 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const portalContext = $5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, props.__scopeDialog);\n const { forceMount: forceMount = portalContext.forceMount , ...overlayProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /*#__PURE__*/ $67UHm$createElement($67UHm$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogOverlayImpl, $67UHm$babelruntimehelpersesmextends({}, overlayProps, {\n ref: forwardedRef\n }))) : null;\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$bd1d06c79be19e17, {\n displayName: $5d3850c4d0b4e6c7$var$OVERLAY_NAME\n});\nconst $5d3850c4d0b4e6c7$var$DialogOverlayImpl = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...overlayProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, __scopeDialog);\n return(/*#__PURE__*/ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n $67UHm$createElement($67UHm$RemoveScroll, {\n as: $67UHm$Slot,\n allowPinchZoom: true,\n shards: [\n context.contentRef\n ]\n }, /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.div, $67UHm$babelruntimehelpersesmextends({\n \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n }, overlayProps, {\n ref: forwardedRef // We re-enable pointer-events prevented by `Dialog.Content` to allow scrolling the overlay.\n ,\n style: {\n pointerEvents: 'auto',\n ...overlayProps.style\n }\n }))));\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogContent\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$CONTENT_NAME = 'DialogContent';\nconst $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const portalContext = $5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n const { forceMount: forceMount = portalContext.forceMount , ...contentProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Presence, {\n present: forceMount || context.open\n }, context.modal ? /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentModal, $67UHm$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef\n })) : /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentNonModal, $67UHm$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$b6d9565de1e068cf, {\n displayName: $5d3850c4d0b4e6c7$var$CONTENT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentModal = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n const contentRef = $67UHm$useRef(null);\n const composedRefs = $67UHm$useComposedRefs(forwardedRef, context.contentRef, contentRef); // aria-hide everything except the content (better supported equivalent to setting aria-modal)\n $67UHm$useEffect(()=>{\n const content = contentRef.current;\n if (content) return $67UHm$hideOthers(content);\n }, []);\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, $67UHm$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs // we make sure focus isn't trapped once `DialogContent` has been closed\n ,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: $67UHm$composeEventHandlers(props.onCloseAutoFocus, (event)=>{\n var _context$triggerRef$c;\n event.preventDefault();\n (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();\n }),\n onPointerDownOutside: $67UHm$composeEventHandlers(props.onPointerDownOutside, (event)=>{\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick; // If the event is a right-click, we shouldn't close because\n // it is effectively as if we right-clicked the `Overlay`.\n if (isRightClick) event.preventDefault();\n }) // When focus is trapped, a `focusout` event may still happen.\n ,\n onFocusOutside: $67UHm$composeEventHandlers(props.onFocusOutside, (event)=>event.preventDefault()\n )\n }));\n});\n/* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentNonModal = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = $67UHm$useRef(false);\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, $67UHm$babelruntimehelpersesmextends({}, props, {\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event)=>{\n var _props$onCloseAutoFoc;\n (_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);\n if (!event.defaultPrevented) {\n var _context$triggerRef$c2;\n if (!hasInteractedOutsideRef.current) (_context$triggerRef$c2 = context.triggerRef.current) === null || _context$triggerRef$c2 === void 0 || _context$triggerRef$c2.focus(); // Always prevent auto focus because we either focus manually or want user agent focus\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n },\n onInteractOutside: (event)=>{\n var _props$onInteractOuts, _context$triggerRef$c3;\n (_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);\n if (!event.defaultPrevented) hasInteractedOutsideRef.current = true; // Prevent dismissing when clicking the trigger.\n // As the trigger is already setup to close, without doing so would\n // cause it to close and immediately open.\n //\n // We use `onInteractOutside` as some browsers also\n // focus on pointer down, creating the same issue.\n const target = event.target;\n const targetIsTrigger = (_context$triggerRef$c3 = context.triggerRef.current) === null || _context$triggerRef$c3 === void 0 ? void 0 : _context$triggerRef$c3.contains(target);\n if (targetIsTrigger) event.preventDefault();\n }\n }));\n});\n/* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentImpl = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , trapFocus: trapFocus , onOpenAutoFocus: onOpenAutoFocus , onCloseAutoFocus: onCloseAutoFocus , ...contentProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, __scopeDialog);\n const contentRef = $67UHm$useRef(null);\n const composedRefs = $67UHm$useComposedRefs(forwardedRef, contentRef); // Make sure the whole tree has focus guards as our `Dialog` will be\n // the last element in the DOM (beacuse of the `Portal`)\n $67UHm$useFocusGuards();\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Fragment, null, /*#__PURE__*/ $67UHm$createElement($67UHm$FocusScope, {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus\n }, /*#__PURE__*/ $67UHm$createElement($67UHm$DismissableLayer, $67UHm$babelruntimehelpersesmextends({\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n }, contentProps, {\n ref: composedRefs,\n onDismiss: ()=>context.onOpenChange(false)\n }))), false);\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogTitle\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$TITLE_NAME = 'DialogTitle';\nconst $5d3850c4d0b4e6c7$export$16f7638e4a34b909 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...titleProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TITLE_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.h2, $67UHm$babelruntimehelpersesmextends({\n id: context.titleId\n }, titleProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$16f7638e4a34b909, {\n displayName: $5d3850c4d0b4e6c7$var$TITLE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogDescription\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DESCRIPTION_NAME = 'DialogDescription';\nconst $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...descriptionProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$DESCRIPTION_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.p, $67UHm$babelruntimehelpersesmextends({\n id: context.descriptionId\n }, descriptionProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$94e94c2ec2c954d5, {\n displayName: $5d3850c4d0b4e6c7$var$DESCRIPTION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogClose\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$CLOSE_NAME = 'DialogClose';\nconst $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...closeProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CLOSE_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.button, $67UHm$babelruntimehelpersesmextends({\n type: \"button\"\n }, closeProps, {\n ref: forwardedRef,\n onClick: $67UHm$composeEventHandlers(props.onClick, ()=>context.onOpenChange(false)\n )\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac, {\n displayName: $5d3850c4d0b4e6c7$var$CLOSE_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $5d3850c4d0b4e6c7$var$getState(open) {\n return open ? 'open' : 'closed';\n}\nconst $5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME = 'DialogTitleWarning';\nconst [$5d3850c4d0b4e6c7$export$69b62a49393917d6, $5d3850c4d0b4e6c7$var$useWarningContext] = $67UHm$createContext($5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME, {\n contentName: $5d3850c4d0b4e6c7$var$CONTENT_NAME,\n titleName: $5d3850c4d0b4e6c7$var$TITLE_NAME,\n docsSlug: 'dialog'\n});\nconst $5d3850c4d0b4e6c7$var$TitleWarning = ({ titleId: titleId })=>{\n const titleWarningContext = $5d3850c4d0b4e6c7$var$useWarningContext($5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n $67UHm$useEffect(()=>{\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) throw new Error(MESSAGE);\n }\n }, [\n MESSAGE,\n titleId\n ]);\n return null;\n};\nconst $5d3850c4d0b4e6c7$var$DESCRIPTION_WARNING_NAME = 'DialogDescriptionWarning';\nconst $5d3850c4d0b4e6c7$var$DescriptionWarning = ({ contentRef: contentRef , descriptionId: descriptionId })=>{\n const descriptionWarningContext = $5d3850c4d0b4e6c7$var$useWarningContext($5d3850c4d0b4e6c7$var$DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n $67UHm$useEffect(()=>{\n var _contentRef$current;\n const describedById = (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.getAttribute('aria-describedby'); // if we have an id and the user hasn't set aria-describedby={undefined}\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [\n MESSAGE,\n contentRef,\n descriptionId\n ]);\n return null;\n};\nconst $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9 = $5d3850c4d0b4e6c7$export$3ddf2d174ce01153;\nconst $5d3850c4d0b4e6c7$export$41fb9f06171c75f4 = $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88;\nconst $5d3850c4d0b4e6c7$export$602eac185826482c = $5d3850c4d0b4e6c7$export$dad7c95542bacce0;\nconst $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff = $5d3850c4d0b4e6c7$export$bd1d06c79be19e17;\nconst $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2 = $5d3850c4d0b4e6c7$export$b6d9565de1e068cf;\nconst $5d3850c4d0b4e6c7$export$f99233281efd08a0 = $5d3850c4d0b4e6c7$export$16f7638e4a34b909;\nconst $5d3850c4d0b4e6c7$export$393edc798c47379d = $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5;\nconst $5d3850c4d0b4e6c7$export$f39c2d165cd861fe = $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac;\n\n\n\n\nexport {$5d3850c4d0b4e6c7$export$cc702773b8ea3e41 as createDialogScope, $5d3850c4d0b4e6c7$export$3ddf2d174ce01153 as Dialog, $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88 as DialogTrigger, $5d3850c4d0b4e6c7$export$dad7c95542bacce0 as DialogPortal, $5d3850c4d0b4e6c7$export$bd1d06c79be19e17 as DialogOverlay, $5d3850c4d0b4e6c7$export$b6d9565de1e068cf as DialogContent, $5d3850c4d0b4e6c7$export$16f7638e4a34b909 as DialogTitle, $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 as DialogDescription, $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac as DialogClose, $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9 as Root, $5d3850c4d0b4e6c7$export$41fb9f06171c75f4 as Trigger, $5d3850c4d0b4e6c7$export$602eac185826482c as Portal, $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff as Overlay, $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2 as Content, $5d3850c4d0b4e6c7$export$f99233281efd08a0 as Title, $5d3850c4d0b4e6c7$export$393edc798c47379d as Description, $5d3850c4d0b4e6c7$export$f39c2d165cd861fe as Close, $5d3850c4d0b4e6c7$export$69b62a49393917d6 as WarningProvider};\n","import*as C from\"@radix-ui/react-dialog\";import*as t from\"react\";import le from\"command-score\";var ue='[cmdk-list-sizer=\"\"]',M='[cmdk-group=\"\"]',N='[cmdk-group-items=\"\"]',de='[cmdk-group-heading=\"\"]',ee='[cmdk-item=\"\"]',Z=`${ee}:not([aria-disabled=\"true\"])`,z=\"cmdk-item-select\",S=\"data-value\",fe=(n,a)=>le(n,a),te=t.createContext(void 0),k=()=>t.useContext(te),re=t.createContext(void 0),U=()=>t.useContext(re),ne=t.createContext(void 0),oe=t.forwardRef((n,a)=>{let r=t.useRef(null),o=x(()=>({search:\"\",value:\"\",filtered:{count:0,items:new Map,groups:new Set}})),u=x(()=>new Set),l=x(()=>new Map),p=x(()=>new Map),f=x(()=>new Set),d=ae(n),{label:v,children:E,value:R,onValueChange:w,filter:O,shouldFilter:ie,...D}=n,F=t.useId(),g=t.useId(),A=t.useId(),y=ye();L(()=>{if(R!==void 0){let e=R.trim().toLowerCase();o.current.value=e,y(6,W),h.emit()}},[R]);let h=t.useMemo(()=>({subscribe:e=>(f.current.add(e),()=>f.current.delete(e)),snapshot:()=>o.current,setState:(e,c,i)=>{var s,m,b;if(!Object.is(o.current[e],c)){if(o.current[e]=c,e===\"search\")j(),G(),y(1,V);else if(e===\"value\")if(((s=d.current)==null?void 0:s.value)!==void 0){(b=(m=d.current).onValueChange)==null||b.call(m,c);return}else i||y(5,W);h.emit()}},emit:()=>{f.current.forEach(e=>e())}}),[]),K=t.useMemo(()=>({value:(e,c)=>{c!==p.current.get(e)&&(p.current.set(e,c),o.current.filtered.items.set(e,B(c)),y(2,()=>{G(),h.emit()}))},item:(e,c)=>(u.current.add(e),c&&(l.current.has(c)?l.current.get(c).add(e):l.current.set(c,new Set([e]))),y(3,()=>{j(),G(),o.current.value||V(),h.emit()}),()=>{p.current.delete(e),u.current.delete(e),o.current.filtered.items.delete(e),y(4,()=>{j(),V(),h.emit()})}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{p.current.delete(e),l.current.delete(e)}),filter:()=>d.current.shouldFilter,label:v||n[\"aria-label\"],listId:F,inputId:A,labelId:g}),[]);function B(e){var i;let c=((i=d.current)==null?void 0:i.filter)??fe;return e?c(e,o.current.search):0}function G(){if(!r.current||!o.current.search||d.current.shouldFilter===!1)return;let e=o.current.filtered.items,c=[];o.current.filtered.groups.forEach(s=>{let m=l.current.get(s),b=0;m.forEach(P=>{let ce=e.get(P);b=Math.max(ce,b)}),c.push([s,b])});let i=r.current.querySelector(ue);I().sort((s,m)=>{let b=s.getAttribute(S),P=m.getAttribute(S);return(e.get(P)??0)-(e.get(b)??0)}).forEach(s=>{let m=s.closest(N);m?m.appendChild(s.parentElement===m?s:s.closest(`${N} > *`)):i.appendChild(s.parentElement===i?s:s.closest(`${N} > *`))}),c.sort((s,m)=>m[1]-s[1]).forEach(s=>{let m=r.current.querySelector(`${M}[${S}=\"${s[0]}\"]`);m==null||m.parentElement.appendChild(m)})}function V(){let e=I().find(i=>!i.ariaDisabled),c=e==null?void 0:e.getAttribute(S);h.setState(\"value\",c||void 0)}function j(){if(!o.current.search||d.current.shouldFilter===!1){o.current.filtered.count=u.current.size;return}o.current.filtered.groups=new Set;let e=0;for(let c of u.current){let i=p.current.get(c),s=B(i);o.current.filtered.items.set(c,s),s>0&&e++}for(let[c,i]of l.current)for(let s of i)if(o.current.filtered.items.get(s)>0){o.current.filtered.groups.add(c);break}o.current.filtered.count=e}function W(){var c,i,s;let e=_();e&&(((c=e.parentElement)==null?void 0:c.firstChild)===e&&((s=(i=e.closest(M))==null?void 0:i.querySelector(de))==null||s.scrollIntoView({block:\"nearest\"})),e.scrollIntoView({block:\"nearest\"}))}function _(){return r.current.querySelector(`${ee}[aria-selected=\"true\"]`)}function I(){return Array.from(r.current.querySelectorAll(Z))}function q(e){let i=I()[e];i&&h.setState(\"value\",i.getAttribute(S))}function $(e){var b;let c=_(),i=I(),s=i.findIndex(P=>P===c),m=i[s+e];(b=d.current)!=null&&b.loop&&(m=s+e<0?i[i.length-1]:s+e===i.length?i[0]:i[s+e]),m&&h.setState(\"value\",m.getAttribute(S))}function J(e){let c=_(),i=c==null?void 0:c.closest(M),s;for(;i&&!s;)i=e>0?Se(i,M):Ce(i,M),s=i==null?void 0:i.querySelector(Z);s?h.setState(\"value\",s.getAttribute(S)):$(e)}let Q=()=>q(I().length-1),X=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):$(1)},Y=e=>{e.preventDefault(),e.metaKey?q(0):e.altKey?J(-1):$(-1)};return t.createElement(\"div\",{ref:H([r,a]),...D,\"cmdk-root\":\"\",onKeyDown:e=>{var c;if((c=D.onKeyDown)==null||c.call(D,e),!e.defaultPrevented)switch(e.key){case\"n\":case\"j\":{e.ctrlKey&&X(e);break}case\"ArrowDown\":{X(e);break}case\"p\":case\"k\":{e.ctrlKey&&Y(e);break}case\"ArrowUp\":{Y(e);break}case\"Home\":{e.preventDefault(),q(0);break}case\"End\":{e.preventDefault(),Q();break}case\"Enter\":{e.preventDefault();let i=_();if(i){let s=new Event(z);i.dispatchEvent(s)}}}}},t.createElement(\"label\",{\"cmdk-label\":\"\",htmlFor:K.inputId,id:K.labelId,style:xe},v),t.createElement(re.Provider,{value:h},t.createElement(te.Provider,{value:K},E)))}),me=t.forwardRef((n,a)=>{let r=t.useId(),o=t.useRef(null),u=t.useContext(ne),l=k(),p=ae(n);L(()=>l.item(r,u),[]);let f=se(r,o,[n.value,n.children,o]),d=U(),v=T(g=>g.value&&g.value===f.current),E=T(g=>l.filter()===!1?!0:g.search?g.filtered.items.get(r)>0:!0);t.useEffect(()=>{let g=o.current;if(!(!g||n.disabled))return g.addEventListener(z,R),()=>g.removeEventListener(z,R)},[E,n.onSelect,n.disabled]);function R(){var g,A;(A=(g=p.current).onSelect)==null||A.call(g,f.current)}function w(){d.setState(\"value\",f.current,!0)}if(!E)return null;let{disabled:O,value:ie,onSelect:D,...F}=n;return t.createElement(\"div\",{ref:H([o,a]),...F,\"cmdk-item\":\"\",role:\"option\",\"aria-disabled\":O||void 0,\"aria-selected\":v||void 0,\"data-selected\":v||void 0,onPointerMove:O?void 0:w,onClick:O?void 0:R},n.children)}),pe=t.forwardRef((n,a)=>{let{heading:r,children:o,...u}=n,l=t.useId(),p=t.useRef(null),f=t.useRef(null),d=t.useId(),v=k(),E=T(w=>v.filter()===!1?!0:w.search?w.filtered.groups.has(l):!0);L(()=>v.group(l),[]),se(l,p,[n.value,n.heading,f]);let R=t.createElement(ne.Provider,{value:l},o);return t.createElement(\"div\",{ref:H([p,a]),...u,\"cmdk-group\":\"\",role:\"presentation\",hidden:E?void 0:!0},r&&t.createElement(\"div\",{ref:f,\"cmdk-group-heading\":\"\",\"aria-hidden\":!0,id:d},r),t.createElement(\"div\",{\"cmdk-group-items\":\"\",role:\"group\",\"aria-labelledby\":r?d:void 0},R))}),ge=t.forwardRef((n,a)=>{let{alwaysRender:r,...o}=n,u=t.useRef(null),l=T(p=>!p.search);return!r&&!l?null:t.createElement(\"div\",{ref:H([u,a]),...o,\"cmdk-separator\":\"\",role:\"separator\"})}),ve=t.forwardRef((n,a)=>{let{onValueChange:r,...o}=n,u=n.value!=null,l=U(),p=T(d=>d.search),f=k();return t.useEffect(()=>{n.value!=null&&l.setState(\"search\",n.value)},[n.value]),t.createElement(\"input\",{ref:a,...o,\"cmdk-input\":\"\",autoComplete:\"off\",autoCorrect:\"off\",spellCheck:!1,\"aria-autocomplete\":\"list\",role:\"combobox\",\"aria-expanded\":!0,\"aria-controls\":f.listId,\"aria-labelledby\":f.labelId,id:f.inputId,type:\"text\",value:u?n.value:p,onChange:d=>{u||l.setState(\"search\",d.target.value),r==null||r(d.target.value)}})}),Re=t.forwardRef((n,a)=>{let{children:r,...o}=n,u=t.useRef(null),l=t.useRef(null),p=k();return t.useEffect(()=>{if(l.current&&u.current){let f=l.current,d=u.current,v,E=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{let R=f.getBoundingClientRect().height;d.style.setProperty(\"--cmdk-list-height\",R.toFixed(1)+\"px\")})});return E.observe(f),()=>{cancelAnimationFrame(v),E.unobserve(f)}}},[]),t.createElement(\"div\",{ref:H([u,a]),...o,\"cmdk-list\":\"\",role:\"listbox\",\"aria-label\":\"Suggestions\",id:p.listId,\"aria-labelledby\":p.inputId},t.createElement(\"div\",{ref:l,\"cmdk-list-sizer\":\"\"},r))}),be=t.forwardRef((n,a)=>{let{open:r,onOpenChange:o,container:u,...l}=n;return t.createElement(C.Root,{open:r,onOpenChange:o},t.createElement(C.Portal,{container:u},t.createElement(C.Overlay,{\"cmdk-overlay\":\"\"}),t.createElement(C.Content,{\"aria-label\":n.label,\"cmdk-dialog\":\"\"},t.createElement(oe,{ref:a,...l}))))}),he=t.forwardRef((n,a)=>{let r=t.useRef(!0),o=T(u=>u.filtered.count===0);return t.useEffect(()=>{r.current=!1},[]),r.current||!o?null:t.createElement(\"div\",{ref:a,...n,\"cmdk-empty\":\"\",role:\"presentation\"})}),Ee=t.forwardRef((n,a)=>{let{progress:r,children:o,...u}=n;return t.createElement(\"div\",{ref:a,...u,\"cmdk-loading\":\"\",role:\"progressbar\",\"aria-valuenow\":r,\"aria-valuemin\":0,\"aria-valuemax\":100,\"aria-label\":\"Loading...\"},t.createElement(\"div\",{\"aria-hidden\":!0},o))}),Le=Object.assign(oe,{List:Re,Item:me,Input:ve,Group:pe,Separator:ge,Dialog:be,Empty:he,Loading:Ee});function Se(n,a){let r=n.nextElementSibling;for(;r;){if(r.matches(a))return r;r=r.nextElementSibling}}function Ce(n,a){let r=n.previousElementSibling;for(;r;){if(r.matches(a))return r;r=r.previousElementSibling}}function ae(n){let a=t.useRef(n);return L(()=>{a.current=n}),a}var L=typeof window>\"u\"?t.useEffect:t.useLayoutEffect;function x(n){let a=t.useRef();return a.current===void 0&&(a.current=n()),a}function H(n){return a=>{n.forEach(r=>{typeof r==\"function\"?r(a):r!=null&&(r.current=a)})}}function T(n){let a=U(),r=()=>n(a.snapshot());return t.useSyncExternalStore(a.subscribe,r,r)}function se(n,a,r){let o=t.useRef(),u=k();return L(()=>{var p;let l=(()=>{var f;for(let d of r){if(typeof d==\"string\")return d.trim().toLowerCase();if(typeof d==\"object\"&&\"current\"in d&&d.current)return(f=d.current.textContent)==null?void 0:f.trim().toLowerCase()}})();u.value(n,l),(p=a.current)==null||p.setAttribute(S,l),o.current=l}),o}var ye=()=>{let[n,a]=t.useState(),r=x(()=>new Map);return L(()=>{r.current.forEach(o=>o()),r.current=new Map},[n]),(o,u)=>{r.current.set(o,u),a({})}},xe={position:\"absolute\",width:\"1px\",height:\"1px\",padding:\"0\",margin:\"-1px\",overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",whiteSpace:\"nowrap\",borderWidth:\"0\"};export{Le as Command,be as CommandDialog,he as CommandEmpty,pe as CommandGroup,ve as CommandInput,me as CommandItem,Re as CommandList,Ee as CommandLoading,oe as CommandRoot,ge as CommandSeparator,T as useCommandState};\n","// The scores are arranged so that a continuous match of characters will\n// result in a total score of 1.\n//\n// The best case, this character is a match, and either this is the start\n// of the string, or the previous character was also a match.\nvar SCORE_CONTINUE_MATCH = 1,\n\n // A new match at the start of a word scores better than a new match\n // elsewhere as it's more likely that the user will type the starts\n // of fragments.\n // (Our notion of word includes CamelCase and hypen-separated, etc.)\n SCORE_WORD_JUMP = 0.9,\n\n // Any other match isn't ideal, but we include it for completeness.\n SCORE_CHARACTER_JUMP = 0.3,\n\n // If the user transposed two letters, it should be signficantly penalized.\n //\n // i.e. \"ouch\" is more likely than \"curtain\" when \"uc\" is typed.\n SCORE_TRANSPOSITION = 0.1,\n\n // If the user jumped to half-way through a subsequent word, it should be\n // very significantly penalized.\n //\n // i.e. \"loes\" is very unlikely to match \"loch ness\".\n // NOTE: this is set to 0 for superhuman right now, but we may want to revisit.\n SCORE_LONG_JUMP = 0,\n\n // The goodness of a match should decay slightly with each missing\n // character.\n //\n // i.e. \"bad\" is more likely than \"bard\" when \"bd\" is typed.\n //\n // This will not change the order of suggestions based on SCORE_* until\n // 100 characters are inserted between matches.\n PENALTY_SKIPPED = 0.999,\n\n // The goodness of an exact-case match should be higher than a\n // case-insensitive match by a small amount.\n //\n // i.e. \"HTML\" is more likely than \"haml\" when \"HM\" is typed.\n //\n // This will not change the order of suggestions based on SCORE_* until\n // 1000 characters are inserted between matches.\n PENALTY_CASE_MISMATCH = 0.9999,\n\n // If the word has more characters than the user typed, it should\n // be penalised slightly.\n //\n // i.e. \"html\" is more likely than \"html5\" if I type \"html\".\n //\n // However, it may well be the case that there's a sensible secondary\n // ordering (like alphabetical) that it makes sense to rely on when\n // there are many prefix matches, so we don't make the penalty increase\n // with the number of tokens.\n PENALTY_NOT_COMPLETE = 0.99;\n\nvar IS_GAP_REGEXP = /[\\\\\\/\\-_+.# \\t\"@\\[\\(\\{&]/,\n COUNT_GAPS_REGEXP = /[\\\\\\/\\-_+.# \\t\"@\\[\\(\\{&]/g;\n\nfunction commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, stringIndex, abbreviationIndex) {\n\n if (abbreviationIndex === abbreviation.length) {\n if (stringIndex === string.length) {\n return SCORE_CONTINUE_MATCH;\n\n }\n return PENALTY_NOT_COMPLETE;\n }\n\n var abbreviationChar = lowerAbbreviation.charAt(abbreviationIndex);\n var index = lowerString.indexOf(abbreviationChar, stringIndex);\n var highScore = 0;\n\n var score, transposedScore, wordBreaks;\n\n while (index >= 0) {\n\n score = commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, index + 1, abbreviationIndex + 1);\n if (score > highScore) {\n if (index === stringIndex) {\n score *= SCORE_CONTINUE_MATCH;\n } else if (IS_GAP_REGEXP.test(string.charAt(index - 1))) {\n score *= SCORE_WORD_JUMP;\n wordBreaks = string.slice(stringIndex, index - 1).match(COUNT_GAPS_REGEXP);\n if (wordBreaks && stringIndex > 0) {\n score *= Math.pow(PENALTY_SKIPPED, wordBreaks.length);\n }\n } else if (IS_GAP_REGEXP.test(string.slice(stringIndex, index - 1))) {\n score *= SCORE_LONG_JUMP;\n if (stringIndex > 0) {\n score *= Math.pow(PENALTY_SKIPPED, index - stringIndex);\n }\n } else {\n score *= SCORE_CHARACTER_JUMP;\n if (stringIndex > 0) {\n score *= Math.pow(PENALTY_SKIPPED, index - stringIndex);\n }\n }\n\n if (string.charAt(index) !== abbreviation.charAt(abbreviationIndex)) {\n score *= PENALTY_CASE_MISMATCH;\n }\n\n }\n\n if (score < SCORE_TRANSPOSITION &&\n lowerString.charAt(index - 1) === lowerAbbreviation.charAt(abbreviationIndex + 1) &&\n lowerString.charAt(index - 1) !== lowerAbbreviation.charAt(abbreviationIndex)) {\n transposedScore = commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, index + 1, abbreviationIndex + 2);\n\n if (transposedScore * SCORE_TRANSPOSITION > score) {\n score = transposedScore * SCORE_TRANSPOSITION;\n }\n }\n\n if (score > highScore) {\n highScore = score;\n }\n\n index = lowerString.indexOf(abbreviationChar, index + 1);\n }\n\n return highScore;\n}\n\nfunction commandScore(string, abbreviation) {\n /* NOTE:\n * in the original, we used to do the lower-casing on each recursive call, but this meant that toLowerCase()\n * was the dominating cost in the algorithm, passing both is a little ugly, but considerably faster.\n */\n return commandScoreInner(string, abbreviation, string.toLowerCase(), abbreviation.toLowerCase(), 0, 0);\n}\n\nmodule.exports = commandScore;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_customParseFormat=t()}(this,(function(){\"use strict\";var e={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},t=/(\\[[^[]*\\])|([-_:/.,()\\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\\d/,r=/\\d\\d/,i=/\\d\\d?/,o=/\\d*[^-_:/,()\\s\\d]+/,s={},a=function(e){return(e=+e)+(e>68?1900:2e3)};var f=function(e){return function(t){this[e]=+t}},h=[/[+-]\\d\\d:?(\\d\\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if(\"Z\"===e)return 0;var t=e.match(/([+-]|\\d\\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:\"+\"===t[0]?-n:n}(e)}],u=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=s.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?\"pm\":\"PM\");return n},c={A:[o,function(e){this.afternoon=d(e,!1)}],a:[o,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\\d{3}/,function(e){this.milliseconds=+e}],s:[i,f(\"seconds\")],ss:[i,f(\"seconds\")],m:[i,f(\"minutes\")],mm:[i,f(\"minutes\")],H:[i,f(\"hours\")],h:[i,f(\"hours\")],HH:[i,f(\"hours\")],hh:[i,f(\"hours\")],D:[i,f(\"day\")],DD:[r,f(\"day\")],Do:[o,function(e){var t=s.ordinal,n=e.match(/\\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\\[|\\]/g,\"\")===e&&(this.day=r)}],w:[i,f(\"week\")],ww:[r,f(\"week\")],M:[i,f(\"month\")],MM:[r,f(\"month\")],MMM:[o,function(e){var t=u(\"months\"),n=(u(\"monthsShort\")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u(\"months\").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\\d+/,f(\"year\")],YY:[r,function(e){this.year=a(e)}],YYYY:[/\\d{4}/,f(\"year\")],Z:h,ZZ:h};function l(n){var r,i;r=n,i=s&&s.formats;for(var o=(n=r.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=o.length,f=0;f<a;f+=1){var h=o[f],u=c[h],d=u&&u[0],l=u&&u[1];o[f]=l?{regex:d,parser:l}:h.replace(/^\\[|\\]$/g,\"\")}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=o[n];if(\"string\"==typeof i)r+=i.length;else{var s=i.regex,f=i.parser,h=e.slice(r),u=s.exec(h)[0];f.call(t,u),e=e.replace(u,\"\")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var a=o[1];if(\"string\"==typeof a){var f=!0===o[2],h=!0===o[3],u=f||h,d=o[2];h&&(d=o[2]),s=this.$locale(),!f&&d&&(s=n.Ls[d]),this.$d=function(e,t,n,r){try{if([\"x\",\"X\"].indexOf(t)>-1)return new Date((\"X\"===t?1e3:1)*e);var i=l(t)(e),o=i.year,s=i.month,a=i.day,f=i.hours,h=i.minutes,u=i.seconds,d=i.milliseconds,c=i.zone,m=i.week,M=new Date,Y=a||(o||s?1:M.getDate()),p=o||M.getFullYear(),v=0;o&&!s||(v=s>0?s-1:M.getMonth());var D,w=f||0,g=h||0,y=u||0,L=d||0;return c?new Date(Date.UTC(p,v,Y,w,g,y,L+60*c.offset*1e3)):n?new Date(Date.UTC(p,v,Y,w,g,y,L)):(D=new Date(p,v,Y,w,g,y,L),m&&(D=r(D).week(m).toDate()),D)}catch(e){return new Date(\"\")}}(t,a,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date(\"\")),s={}}else if(a instanceof Array)for(var c=a.length,m=1;m<=c;m+=1){o[1]=a[m-1];var M=n.apply(this,o);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===c&&(this.$d=new Date(\"\"))}else i.call(this,e)}}}));","!function(t,s){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=s():\"function\"==typeof define&&define.amd?define(s):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs_plugin_duration=s()}(this,(function(){\"use strict\";var t,s,n=1e3,i=6e4,e=36e5,r=864e5,o=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,d=2628e6,a=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h={years:u,months:d,days:r,hours:e,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},c=function(t){return t instanceof g},f=function(t,s,n){return new g(t,n,s.$l)},m=function(t){return s.p(t)+\"s\"},l=function(t){return t<0},$=function(t){return l(t)?Math.ceil(t):Math.floor(t)},y=function(t){return Math.abs(t)},v=function(t,s){return t?l(t)?{negative:!0,format:\"\"+y(t)+s}:{negative:!1,format:\"\"+t+s}:{negative:!1,format:\"\"}},g=function(){function l(t,s,n){var i=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),s)return f(t*h[m(s)],this);if(\"number\"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if(\"object\"==typeof t)return Object.keys(t).forEach((function(s){i.$d[m(s)]=t[s]})),this.calMilliseconds(),this;if(\"string\"==typeof t){var e=t.match(a);if(e){var r=e.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=r[0],this.$d.months=r[1],this.$d.weeks=r[2],this.$d.days=r[3],this.$d.hours=r[4],this.$d.minutes=r[5],this.$d.seconds=r[6],this.calMilliseconds(),this}}return this}var y=l.prototype;return y.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(s,n){return s+(t.$d[n]||0)*h[n]}),0)},y.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=$(t/u),t%=u,this.$d.months=$(t/d),t%=d,this.$d.days=$(t/r),t%=r,this.$d.hours=$(t/e),t%=e,this.$d.minutes=$(t/i),t%=i,this.$d.seconds=$(t/n),t%=n,this.$d.milliseconds=t},y.toISOString=function(){var t=v(this.$d.years,\"Y\"),s=v(this.$d.months,\"M\"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var i=v(n,\"D\"),e=v(this.$d.hours,\"H\"),r=v(this.$d.minutes,\"M\"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var u=v(o,\"S\"),d=t.negative||s.negative||i.negative||e.negative||r.negative||u.negative,a=e.format||r.format||u.format?\"T\":\"\",h=(d?\"-\":\"\")+\"P\"+t.format+s.format+i.format+a+e.format+r.format+u.format;return\"P\"===h||\"-P\"===h?\"P0D\":h},y.toJSON=function(){return this.toISOString()},y.format=function(t){var n=t||\"YYYY-MM-DDTHH:mm:ss\",i={Y:this.$d.years,YY:s.s(this.$d.years,2,\"0\"),YYYY:s.s(this.$d.years,4,\"0\"),M:this.$d.months,MM:s.s(this.$d.months,2,\"0\"),D:this.$d.days,DD:s.s(this.$d.days,2,\"0\"),H:this.$d.hours,HH:s.s(this.$d.hours,2,\"0\"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,\"0\"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,\"0\"),SSS:s.s(this.$d.milliseconds,3,\"0\")};return n.replace(o,(function(t,s){return s||String(i[t])}))},y.as=function(t){return this.$ms/h[m(t)]},y.get=function(t){var s=this.$ms,n=m(t);return\"milliseconds\"===n?s%=1e3:s=\"weeks\"===n?$(s/h[n]):this.$d[n],s||0},y.add=function(t,s,n){var i;return i=s?t*h[m(s)]:c(t)?t.$ms:f(t,this).$ms,f(this.$ms+i*(n?-1:1),this)},y.subtract=function(t,s){return this.add(t,s,!0)},y.locale=function(t){var s=this.clone();return s.$l=t,s},y.clone=function(){return f(this.$ms,this)},y.humanize=function(s){return t().add(this.$ms,\"ms\").locale(this.$l).fromNow(!s)},y.valueOf=function(){return this.asMilliseconds()},y.milliseconds=function(){return this.get(\"milliseconds\")},y.asMilliseconds=function(){return this.as(\"milliseconds\")},y.seconds=function(){return this.get(\"seconds\")},y.asSeconds=function(){return this.as(\"seconds\")},y.minutes=function(){return this.get(\"minutes\")},y.asMinutes=function(){return this.as(\"minutes\")},y.hours=function(){return this.get(\"hours\")},y.asHours=function(){return this.as(\"hours\")},y.days=function(){return this.get(\"days\")},y.asDays=function(){return this.as(\"days\")},y.weeks=function(){return this.get(\"weeks\")},y.asWeeks=function(){return this.as(\"weeks\")},y.months=function(){return this.get(\"months\")},y.asMonths=function(){return this.as(\"months\")},y.years=function(){return this.get(\"years\")},y.asYears=function(){return this.as(\"years\")},l}(),p=function(t,s,n){return t.add(s.years()*n,\"y\").add(s.months()*n,\"M\").add(s.days()*n,\"d\").add(s.hours()*n,\"h\").add(s.minutes()*n,\"m\").add(s.seconds()*n,\"s\").add(s.milliseconds()*n,\"ms\")};return function(n,i,e){t=e,s=e().$utils(),e.duration=function(t,s){var n=e.locale();return f(t,{$l:n},s)},e.isDuration=c;var r=i.prototype.add,o=i.prototype.subtract;i.prototype.add=function(t,s){return c(t)?p(this,t,1):r.bind(this)(t,s)},i.prototype.subtract=function(t,s){return c(t)?p(this,t,-1):o.bind(this)(t,s)}}}));","!function(e,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isBetween=i()}(this,(function(){\"use strict\";return function(e,i,t){i.prototype.isBetween=function(e,i,s,f){var n=t(e),o=t(i),r=\"(\"===(f=f||\"()\")[0],u=\")\"===f[1];return(r?this.isAfter(n,s):!this.isBefore(n,s))&&(u?this.isBefore(o,s):!this.isAfter(o,s))||(r?this.isBefore(n,s):!this.isAfter(n,s))&&(u?this.isAfter(o,s):!this.isBefore(o,s))}}}));","!function(n,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(n=\"undefined\"!=typeof globalThis?globalThis:n||self).dayjs_plugin_localeData=e()}(this,(function(){\"use strict\";return function(n,e,t){var r=e.prototype,o=function(n){return n&&(n.indexOf?n:n.s)},u=function(n,e,t,r,u){var i=n.name?n:n.$locale(),a=o(i[e]),s=o(i[t]),f=a||s.map((function(n){return n.slice(0,r)}));if(!u)return f;var d=i.weekStart;return f.map((function(n,e){return f[(e+(d||0))%7]}))},i=function(){return t.Ls[t.locale()]},a=function(n,e){return n.formats[e]||function(n){return n.replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(function(n,e,t){return e||t.slice(1)}))}(n.formats[e.toUpperCase()])},s=function(){var n=this;return{months:function(e){return e?e.format(\"MMMM\"):u(n,\"months\")},monthsShort:function(e){return e?e.format(\"MMM\"):u(n,\"monthsShort\",\"months\",3)},firstDayOfWeek:function(){return n.$locale().weekStart||0},weekdays:function(e){return e?e.format(\"dddd\"):u(n,\"weekdays\")},weekdaysMin:function(e){return e?e.format(\"dd\"):u(n,\"weekdaysMin\",\"weekdays\",2)},weekdaysShort:function(e){return e?e.format(\"ddd\"):u(n,\"weekdaysShort\",\"weekdays\",3)},longDateFormat:function(e){return a(n.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s.bind(this)()},t.localeData=function(){var n=i();return{firstDayOfWeek:function(){return n.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(e){return a(n,e)},meridiem:n.meridiem,ordinal:n.ordinal}},t.months=function(){return u(i(),\"months\")},t.monthsShort=function(){return u(i(),\"monthsShort\",\"months\",3)},t.weekdays=function(n){return u(i(),\"weekdays\",null,null,n)},t.weekdaysShort=function(n){return u(i(),\"weekdaysShort\",\"weekdays\",3,n)},t.weekdaysMin=function(n){return u(i(),\"weekdaysMin\",\"weekdays\",2,n)}}}));","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_localizedFormat=t()}(this,(function(){\"use strict\";var e={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"};return function(t,o,n){var r=o.prototype,i=r.format;n.en.formats=e,r.format=function(t){void 0===t&&(t=\"YYYY-MM-DDTHH:mm:ssZ\");var o=this.$locale().formats,n=function(t,o){return t.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}))}(t,void 0===o?{}:o);return i.call(this,n)}}}));","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs_plugin_timezone=e()}(this,(function(){\"use strict\";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,o){var r,a=function(t,n,i){void 0===i&&(i={});var o=new Date(t),r=function(t,n){void 0===n&&(n={});var i=n.timeZoneName||\"short\",o=t+\"|\"+i,r=e[o];return r||(r=new Intl.DateTimeFormat(\"en-US\",{hour12:!1,timeZone:t,year:\"numeric\",month:\"2-digit\",day:\"2-digit\",hour:\"2-digit\",minute:\"2-digit\",second:\"2-digit\",timeZoneName:i}),e[o]=r),r}(n,i);return r.formatToParts(o)},u=function(e,n){for(var i=a(e,n),r=[],u=0;u<i.length;u+=1){var f=i[u],s=f.type,m=f.value,c=t[s];c>=0&&(r[c]=parseInt(m,10))}var d=r[3],l=24===d?0:d,h=r[0]+\"-\"+r[1]+\"-\"+r[2]+\" \"+l+\":\"+r[4]+\":\"+r[5]+\":000\",v=+e;return(o.utc(h).valueOf()-(v-=v%1e3))/6e4},f=i.prototype;f.tz=function(t,e){void 0===t&&(t=r);var n,i=this.utcOffset(),a=this.toDate(),u=a.toLocaleString(\"en-US\",{timeZone:t}),f=Math.round((a-new Date(u))/1e3/60),s=15*-Math.round(a.getTimezoneOffset()/15)-f;if(!Number(s))n=this.utcOffset(0,e);else if(n=o(u,{locale:this.$L}).$set(\"millisecond\",this.$ms).utcOffset(s,!0),e){var m=n.utcOffset();n=n.add(i-m,\"minute\")}return n.$x.$timezone=t,n},f.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return\"timezonename\"===t.type.toLowerCase()}));return n&&n.value};var s=f.startOf;f.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return s.call(this,t,e);var n=o(this.format(\"YYYY-MM-DD HH:mm:ss:SSS\"),{locale:this.$L});return s.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,f=u(+o(),a);if(\"string\"!=typeof t)return o(t).tz(a);var s=function(t,e,n){var i=t-60*e*1e3,o=u(i,n);if(e===o)return[i,e];var r=u(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),f,a),m=s[0],c=s[1],d=o(m).utcOffset(c);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t}}}));","!function(t,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs_plugin_utc=i()}(this,(function(){\"use strict\";var t=\"minute\",i=/[+-]\\d\\d(?::?\\d\\d)?/g,e=/([+-]|\\d\\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t)};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else r.call(this)};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if(\"string\"==typeof s&&(s=function(t){void 0===t&&(t=\"\");var s=t.match(i);if(!s)return null;var f=(\"\"+s[0]).match(e)||[\"-\",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:\"+\"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?\"YYYY-MM-DDTHH:mm:ss[Z]\":\"\");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return\"s\"===t&&this.$offset?n(this.format(\"YYYY-MM-DD HH:mm:ss:SSS\")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)}}}));","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_weekOfYear=t()}(this,(function(){\"use strict\";var e=\"week\",t=\"year\";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),\"day\");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,\"millisecond\"),o=this.diff(a,e,!0);return o<0?r(this).startOf(\"week\").week():Math.ceil(o)},f.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}));","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_weekday=t()}(this,(function(){\"use strict\";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,i=this.$W,n=(i<t?i+7:i)-t;return this.$utils().u(e)?n:this.subtract(n,\"day\").add(e,\"day\")}}}));","/*! @license DOMPurify 2.5.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.6/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());\n})(this, (function () { 'use strict';\n\n function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n }\n function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n }\n function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n }\n function _construct(Parent, args, Class) {\n if (_isNativeReflectConstruct()) {\n _construct = Reflect.construct;\n } else {\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) _setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n return _construct.apply(null, arguments);\n }\n function _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n }\n function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n }\n function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n }\n function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n }\n function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n }\n function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var hasOwnProperty = Object.hasOwnProperty,\n setPrototypeOf = Object.setPrototypeOf,\n isFrozen = Object.isFrozen,\n getPrototypeOf = Object.getPrototypeOf,\n getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n var freeze = Object.freeze,\n seal = Object.seal,\n create = Object.create; // eslint-disable-line import/no-mutable-exports\n var _ref = typeof Reflect !== 'undefined' && Reflect,\n apply = _ref.apply,\n construct = _ref.construct;\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n if (!construct) {\n construct = function construct(Func, args) {\n return _construct(Func, _toConsumableArray(args));\n };\n }\n var arrayForEach = unapply(Array.prototype.forEach);\n var arrayPop = unapply(Array.prototype.pop);\n var arrayPush = unapply(Array.prototype.push);\n var stringToLowerCase = unapply(String.prototype.toLowerCase);\n var stringToString = unapply(String.prototype.toString);\n var stringMatch = unapply(String.prototype.match);\n var stringReplace = unapply(String.prototype.replace);\n var stringIndexOf = unapply(String.prototype.indexOf);\n var stringTrim = unapply(String.prototype.trim);\n var regExpTest = unapply(RegExp.prototype.test);\n var typeErrorCreate = unconstruct(TypeError);\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n return apply(func, thisArg, args);\n };\n }\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n return construct(func, args);\n };\n }\n\n /* Add properties to a lookup table */\n function addToSet(set, array, transformCaseFunc) {\n var _transformCaseFunc;\n transformCaseFunc = (_transformCaseFunc = transformCaseFunc) !== null && _transformCaseFunc !== void 0 ? _transformCaseFunc : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n var l = array.length;\n while (l--) {\n var element = array[l];\n if (typeof element === 'string') {\n var lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n element = lcElement;\n }\n }\n set[element] = true;\n }\n return set;\n }\n\n /* Shallow clone an object */\n function clone(object) {\n var newObject = create(null);\n var property;\n for (property in object) {\n if (apply(hasOwnProperty, object, [property]) === true) {\n newObject[property] = object[property];\n }\n }\n return newObject;\n }\n\n /* IE10 doesn't support __lookupGetter__ so lets'\n * simulate it. It also automatically checks\n * if the prop is function or getter and behaves\n * accordingly. */\n function lookupGetter(object, prop) {\n while (object !== null) {\n var desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n object = getPrototypeOf(object);\n }\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n return fallbackValue;\n }\n\n var html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);\n\n // SVG\n var svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\n var svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);\n\n // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n var svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\n var mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover']);\n\n // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n var mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n var text = freeze(['#text']);\n\n var html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']);\n var svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\n var mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\n var xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n // eslint-disable-next-line unicorn/better-regex\n var MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n var ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\n var TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\n var DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n var ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n var IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n var ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n var DOCTYPE_NAME = seal(/^html$/i);\n var CUSTOM_ELEMENT = seal(/^[a-z][.\\w]*(-[.\\w]+)+$/i);\n\n var getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\n var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) {\n if (_typeof(trustedTypes) !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n var suffix = null;\n var ATTR_NAME = 'data-tt-policy-suffix';\n if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n var policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML: function createHTML(html) {\n return html;\n },\n createScriptURL: function createScriptURL(scriptUrl) {\n return scriptUrl;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n function createDOMPurify() {\n var window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n var DOMPurify = function DOMPurify(root) {\n return createDOMPurify(root);\n };\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = '2.5.6';\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n return DOMPurify;\n }\n var originalDocument = window.document;\n var document = window.document;\n var DocumentFragment = window.DocumentFragment,\n HTMLTemplateElement = window.HTMLTemplateElement,\n Node = window.Node,\n Element = window.Element,\n NodeFilter = window.NodeFilter,\n _window$NamedNodeMap = window.NamedNodeMap,\n NamedNodeMap = _window$NamedNodeMap === void 0 ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap,\n HTMLFormElement = window.HTMLFormElement,\n DOMParser = window.DOMParser,\n trustedTypes = window.trustedTypes;\n var ElementPrototype = Element.prototype;\n var cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n var getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n var getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n var getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n var template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);\n var emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';\n var _document = document,\n implementation = _document.implementation,\n createNodeIterator = _document.createNodeIterator,\n createDocumentFragment = _document.createDocumentFragment,\n getElementsByTagName = _document.getElementsByTagName;\n var importNode = originalDocument.importNode;\n var documentMode = {};\n try {\n documentMode = clone(document).documentMode ? document.documentMode : {};\n } catch (_) {}\n var hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined && documentMode !== 9;\n var MUSTACHE_EXPR$1 = MUSTACHE_EXPR,\n ERB_EXPR$1 = ERB_EXPR,\n TMPLIT_EXPR$1 = TMPLIT_EXPR,\n DATA_ATTR$1 = DATA_ATTR,\n ARIA_ATTR$1 = ARIA_ATTR,\n IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE$1 = ATTR_WHITESPACE,\n CUSTOM_ELEMENT$1 = CUSTOM_ELEMENT;\n var IS_ALLOWED_URI$1 = IS_ALLOWED_URI;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n var ALLOWED_TAGS = null;\n var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray(html$1), _toConsumableArray(svg$1), _toConsumableArray(svgFilters), _toConsumableArray(mathMl$1), _toConsumableArray(text)));\n\n /* Allowed attribute names */\n var ALLOWED_ATTR = null;\n var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray(html), _toConsumableArray(svg), _toConsumableArray(mathMl), _toConsumableArray(xml)));\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n var CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false\n }\n }));\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n var FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n var FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n var ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n var ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n var ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n var ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n var SAFE_FOR_TEMPLATES = false;\n\n /* Output should be safe even for XML used within HTML and alike.\n * This means, DOMPurify removes comments when containing risky content.\n */\n var SAFE_FOR_XML = true;\n\n /* Decide if document with <html>... should be returned */\n var WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n var SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n var FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n var RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n var RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n var RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n var SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n var SANITIZE_NAMED_PROPS = false;\n var SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n var KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n var IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n var USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n var FORBID_CONTENTS = null;\n var DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n\n /* Tags that are safe for data: URIs */\n var DATA_URI_TAGS = null;\n var DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n\n /* Attributes safe for values like \"javascript:\" */\n var URI_SAFE_ATTRIBUTES = null;\n var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n var MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n var NAMESPACE = HTML_NAMESPACE;\n var IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n var ALLOWED_NAMESPACES = null;\n var DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);\n\n /* Parsing of strict XHTML documents */\n var PARSER_MEDIA_TYPE;\n var SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n var DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n var transformCaseFunc;\n\n /* Keep a reference to config to pass to hooks */\n var CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n var formElement = document.createElement('form');\n var isRegexOrFunction = function isRegexOrFunction(testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n var _parseConfig = function _parseConfig(cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || _typeof(cfg) !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE;\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES = 'ALLOWED_NAMESPACES' in cfg ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES),\n // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS),\n // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};\n FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$1;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, _toConsumableArray(text));\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html$1);\n addToSet(ALLOWED_ATTR, html);\n }\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg$1);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl$1);\n addToSet(ALLOWED_ATTR, mathMl);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n CONFIG = cfg;\n };\n var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n var HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'annotation-xml']);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n var COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n var ALL_SVG_TAGS = addToSet({}, svg$1);\n addToSet(ALL_SVG_TAGS, svgFilters);\n addToSet(ALL_SVG_TAGS, svgDisallowed);\n var ALL_MATHML_TAGS = addToSet({}, mathMl$1);\n addToSet(ALL_MATHML_TAGS, mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n var _checkValidNamespace = function _checkValidNamespace(element) {\n var parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template'\n };\n }\n var tagName = stringToLowerCase(element.tagName);\n var parentTagName = stringToLowerCase(parent.tagName);\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n var _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, {\n element: node\n });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n try {\n node.outerHTML = emptyHTML;\n } catch (_) {\n node.remove();\n }\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n var _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n var _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n var doc;\n var leadingWhitespace;\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n var matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' + dirty + '</body></html>';\n }\n var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n var body = doc.body || doc.documentElement;\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n var _createIterator = function _createIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null, false);\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n var _isClobbered = function _isClobbered(elm) {\n return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function');\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n var _isNode = function _isNode(object) {\n return _typeof(Node) === 'object' ? object instanceof Node : object && _typeof(object) === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n var _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n arrayForEach(hooks[entryPoint], function (hook) {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n var _sanitizeElements = function _sanitizeElements(currentNode) {\n var content;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check if tagname contains Unicode */\n if (regExpTest(/[\\u0080-\\uFFFF]/, currentNode.nodeName)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n var tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName: tagName,\n allowedTags: ALLOWED_TAGS\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Mitigate a problem with templates inside select */\n if (tagName === 'select' && regExpTest(/<template/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove any ocurrence of processing instructions */\n if (currentNode.nodeType === 7) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove any kind of possibly harmful comments */\n if (SAFE_FOR_XML && currentNode.nodeType === 8 && regExpTest(/<[/\\w]/g, currentNode.data)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false;\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n var parentNode = getParentNode(currentNode) || currentNode.parentNode;\n var childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n if (childNodes && parentNode) {\n var childCount = childNodes.length;\n for (var i = childCount - 1; i >= 0; --i) {\n var childClone = cloneNode(childNodes[i], true);\n childClone.__removalCount = (currentNode.__removalCount || 0) + 1;\n parentNode.insertBefore(childClone, getNextSibling(currentNode));\n }\n }\n }\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get fallback-tag mXSS */\n if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\\/no(script|embed|frames)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR$1, ' ');\n content = stringReplace(content, ERB_EXPR$1, ' ');\n content = stringReplace(content, TMPLIT_EXPR$1, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, {\n element: currentNode.cloneNode()\n });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n var _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n _basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE$1, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$1, stringReplace(value, ATTR_WHITESPACE$1, ''))) ; else if (value) {\n return false;\n } else ;\n return true;\n };\n\n /**\n * _basicCustomElementCheck\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n * @param {string} tagName name of the tag of the node to sanitize\n */\n var _basicCustomElementTest = function _basicCustomElementTest(tagName) {\n return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT$1);\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n var _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n var attr;\n var value;\n var lcName;\n var l;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n var attributes = currentNode.attributes;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n var hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n var _attr = attr,\n name = _attr.name,\n namespaceURI = _attr.namespaceURI;\n value = name === 'value' ? attr.value : stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n\n /* Work around a security issue with comments inside attributes */\n if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\\/(style|title)/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR$1, ' ');\n value = stringReplace(value, ERB_EXPR$1, ' ');\n value = stringReplace(value, TMPLIT_EXPR$1, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n var lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (trustedTypesPolicy && _typeof(trustedTypes) === 'object' && typeof trustedTypes.getAttributeType === 'function') {\n if (namespaceURI) ; else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n {\n value = trustedTypesPolicy.createHTML(value);\n break;\n }\n case 'TrustedScriptURL':\n {\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n }\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n } else {\n arrayPop(DOMPurify.removed);\n }\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n var _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n var shadowNode;\n var shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty) {\n var cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var body;\n var importedNode;\n var currentNode;\n var oldNode;\n var returnNode;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n if (typeof dirty.toString === 'function') {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n } else {\n throw typeErrorCreate('toString is not a function');\n }\n }\n\n /* Check we can run. Otherwise fall back or ignore */\n if (!DOMPurify.isSupported) {\n if (_typeof(window.toStaticHTML) === 'object' || typeof window.toStaticHTML === 'function') {\n if (typeof dirty === 'string') {\n return window.toStaticHTML(dirty);\n }\n if (_isNode(dirty)) {\n return window.toStaticHTML(dirty.outerHTML);\n }\n }\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n var tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n var nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while (currentNode = nodeIterator.nextNode()) {\n /* Fix IE's strange behavior with manipulated textNodes #89 */\n if (currentNode.nodeType === 3 && currentNode === oldNode) {\n continue;\n }\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n oldNode = currentNode;\n }\n oldNode = null;\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n return returnNode;\n }\n var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {\n serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$1, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR$1, ' ');\n serializedHTML = stringReplace(serializedHTML, TMPLIT_EXPR$1, ' ');\n }\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n var lcTag = transformCaseFunc(tag);\n var lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n return DOMPurify;\n }\n var purify = createDOMPurify();\n\n return purify;\n\n}));\n","/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());\n})(this, (function () { 'use strict';\n\n const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor\n } = Object;\n let {\n freeze,\n seal,\n create\n } = Object; // eslint-disable-line import/no-mutable-exports\n let {\n apply,\n construct\n } = typeof Reflect !== 'undefined' && Reflect;\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n if (!construct) {\n construct = function construct(Func, args) {\n return new Func(...args);\n };\n }\n const arrayForEach = unapply(Array.prototype.forEach);\n const arrayPop = unapply(Array.prototype.pop);\n const arrayPush = unapply(Array.prototype.push);\n const stringToLowerCase = unapply(String.prototype.toLowerCase);\n const stringToString = unapply(String.prototype.toString);\n const stringMatch = unapply(String.prototype.match);\n const stringReplace = unapply(String.prototype.replace);\n const stringIndexOf = unapply(String.prototype.indexOf);\n const stringTrim = unapply(String.prototype.trim);\n const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);\n const regExpTest = unapply(RegExp.prototype.test);\n const typeErrorCreate = unconstruct(TypeError);\n\n /**\n * Creates a new function that calls the given function with a specified thisArg and arguments.\n *\n * @param {Function} func - The function to be wrapped and called.\n * @returns {Function} A new function that calls the given function with a specified thisArg and arguments.\n */\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n return apply(func, thisArg, args);\n };\n }\n\n /**\n * Creates a new function that constructs an instance of the given constructor function with the provided arguments.\n *\n * @param {Function} func - The constructor function to be wrapped and called.\n * @returns {Function} A new function that constructs an instance of the given constructor function with the provided arguments.\n */\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n return construct(func, args);\n };\n }\n\n /**\n * Add properties to a lookup table\n *\n * @param {Object} set - The set to which elements will be added.\n * @param {Array} array - The array containing elements to be added to the set.\n * @param {Function} transformCaseFunc - An optional function to transform the case of each element before adding to the set.\n * @returns {Object} The modified set with added elements.\n */\n function addToSet(set, array) {\n let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n element = lcElement;\n }\n }\n set[element] = true;\n }\n return set;\n }\n\n /**\n * Clean up an array to harden against CSPP\n *\n * @param {Array} array - The array to be cleaned.\n * @returns {Array} The cleaned version of the array\n */\n function cleanArray(array) {\n for (let index = 0; index < array.length; index++) {\n const isPropertyExist = objectHasOwnProperty(array, index);\n if (!isPropertyExist) {\n array[index] = null;\n }\n }\n return array;\n }\n\n /**\n * Shallow clone an object\n *\n * @param {Object} object - The object to be cloned.\n * @returns {Object} A new object that copies the original.\n */\n function clone(object) {\n const newObject = create(null);\n for (const [property, value] of entries(object)) {\n const isPropertyExist = objectHasOwnProperty(object, property);\n if (isPropertyExist) {\n if (Array.isArray(value)) {\n newObject[property] = cleanArray(value);\n } else if (value && typeof value === 'object' && value.constructor === Object) {\n newObject[property] = clone(value);\n } else {\n newObject[property] = value;\n }\n }\n }\n return newObject;\n }\n\n /**\n * This method automatically checks if the prop is function or getter and behaves accordingly.\n *\n * @param {Object} object - The object to look up the getter function in its prototype chain.\n * @param {String} prop - The property name for which to find the getter function.\n * @returns {Function} The getter function found in the prototype chain or a fallback function.\n */\n function lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n object = getPrototypeOf(object);\n }\n function fallbackValue() {\n return null;\n }\n return fallbackValue;\n }\n\n const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);\n\n // SVG\n const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\n const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);\n\n // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\n const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']);\n\n // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n const text = freeze(['#text']);\n\n const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);\n const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\n const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\n const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n // eslint-disable-next-line unicorn/better-regex\n const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\n const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\n const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n const ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n const DOCTYPE_NAME = seal(/^html$/i);\n const CUSTOM_ELEMENT = seal(/^[a-z][.\\w]*(-[.\\w]+)+$/i);\n\n var EXPRESSIONS = /*#__PURE__*/Object.freeze({\n __proto__: null,\n MUSTACHE_EXPR: MUSTACHE_EXPR,\n ERB_EXPR: ERB_EXPR,\n TMPLIT_EXPR: TMPLIT_EXPR,\n DATA_ATTR: DATA_ATTR,\n ARIA_ATTR: ARIA_ATTR,\n IS_ALLOWED_URI: IS_ALLOWED_URI,\n IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE: ATTR_WHITESPACE,\n DOCTYPE_NAME: DOCTYPE_NAME,\n CUSTOM_ELEMENT: CUSTOM_ELEMENT\n });\n\n // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType\n const NODE_TYPE = {\n element: 1,\n attribute: 2,\n text: 3,\n cdataSection: 4,\n entityReference: 5,\n // Deprecated\n entityNode: 6,\n // Deprecated\n progressingInstruction: 7,\n comment: 8,\n document: 9,\n documentType: 10,\n documentFragment: 11,\n notation: 12 // Deprecated\n };\n const getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {HTMLScriptElement} purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).\n * @return {TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported or creating the policy failed).\n */\n const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {\n if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {\n suffix = purifyHostElement.getAttribute(ATTR_NAME);\n }\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n function createDOMPurify() {\n let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n const DOMPurify = root => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = '3.1.6';\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n return DOMPurify;\n }\n let {\n document\n } = window;\n const originalDocument = document;\n const currentScript = originalDocument.currentScript;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes\n } = window;\n const ElementPrototype = Element.prototype;\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const remove = lookupGetter(ElementPrototype, 'remove');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n let trustedTypesPolicy;\n let emptyHTML = '';\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName\n } = document;\n const {\n importNode\n } = originalDocument;\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n CUSTOM_ELEMENT\n } = EXPRESSIONS;\n let {\n IS_ALLOWED_URI: IS_ALLOWED_URI$1\n } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false\n }\n }));\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Output should be safe even for XML used within HTML and alike.\n * This means, DOMPurify removes comments when containing risky content.\n */\n let SAFE_FOR_XML = true;\n\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE = null;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc = null;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n const isRegexOrFunction = function isRegexOrFunction(testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function _parseConfig() {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES),\n // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS),\n // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};\n FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};\n USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, text);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html$1);\n addToSet(ALLOWED_ATTR, html);\n }\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg$1);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl$1);\n addToSet(ALLOWED_ATTR, mathMl);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n if (cfg.TRUSTED_TYPES_POLICY) {\n if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.');\n }\n if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.');\n }\n\n // Overwrite existing TrustedTypes policy.\n trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;\n\n // Sign local variables required by `sanitize`.\n emptyHTML = trustedTypesPolicy.createHTML('');\n } else {\n // Uninitialized policy, attempt to initialize the internal dompurify policy.\n if (trustedTypesPolicy === undefined) {\n trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);\n }\n\n // If creating the internal policy succeeded sign internal variables.\n if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {\n emptyHTML = trustedTypesPolicy.createHTML('');\n }\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n CONFIG = cfg;\n };\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'annotation-xml']);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);\n const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);\n\n /**\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function _checkValidNamespace(element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template'\n };\n }\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, {\n element: node\n });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n getParentNode(node).removeChild(node);\n } catch (_) {\n remove(node);\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n let doc = null;\n let leadingWhitespace = null;\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' + dirty + '</body></html>';\n }\n const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n const body = doc.body || doc.documentElement;\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n *\n * @param {Node} root The root element or node to start traversing on.\n * @return {NodeIterator} The created NodeIterator\n */\n const _createNodeIterator = function _createNodeIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function _isClobbered(elm) {\n return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function');\n };\n\n /**\n * Checks whether the given object is a DOM node.\n *\n * @param {Node} object object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function _isNode(object) {\n return typeof Node === 'function' && object instanceof Node;\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n arrayForEach(hooks[entryPoint], hook => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function _sanitizeElements(currentNode) {\n let content = null;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove any occurrence of processing instructions */\n if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove any kind of possibly harmful comments */\n if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\\w]/g, currentNode.data)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {\n return false;\n }\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {\n return false;\n }\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n for (let i = childCount - 1; i >= 0; --i) {\n const childClone = cloneNode(childNodes[i], true);\n childClone.__removalCount = (currentNode.__removalCount || 0) + 1;\n parentNode.insertBefore(childClone, getNextSibling(currentNode));\n }\n }\n }\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get fallback-tag mXSS */\n if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\\/no(script|embed|frames)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {\n /* Get the element's text content */\n content = currentNode.textContent;\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n content = stringReplace(content, expr, ' ');\n });\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, {\n element: currentNode.cloneNode()\n });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (value) {\n return false;\n } else ;\n return true;\n };\n\n /**\n * _isBasicCustomElement\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n *\n * @param {string} tagName name of the tag of the node to sanitize\n * @returns {boolean} Returns true if the tag name meets the basic criteria for a custom element, otherwise false.\n */\n const _isBasicCustomElement = function _isBasicCustomElement(tagName) {\n return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n const {\n attributes\n } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n let l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n const attr = attributes[l];\n const {\n name,\n namespaceURI,\n value: attrValue\n } = attr;\n const lcName = transformCaseFunc(name);\n let value = name === 'value' ? attrValue : stringTrim(attrValue);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n\n /* Work around a security issue with comments inside attributes */\n if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\\/(style|title)/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n value = stringReplace(value, expr, ' ');\n });\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {\n if (namespaceURI) ; else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n {\n value = trustedTypesPolicy.createHTML(value);\n break;\n }\n case 'TrustedScriptURL':\n {\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n }\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n } else {\n arrayPop(DOMPurify.removed);\n }\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n let shadowNode = null;\n const shadowIterator = _createNodeIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} cfg object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty) {\n let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let body = null;\n let importedNode = null;\n let currentNode = null;\n let returnNode = null;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n if (typeof dirty.toString === 'function') {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n } else {\n throw typeErrorCreate('toString is not a function');\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while (currentNode = nodeIterator.nextNode()) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n return returnNode;\n }\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {\n serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n serializedHTML = stringReplace(serializedHTML, expr, ' ');\n });\n }\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function () {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {String} tag Tag name of containing element.\n * @param {String} attr Attribute name.\n * @param {String} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n return DOMPurify;\n }\n var purify = createDOMPurify();\n\n return purify;\n\n}));\n","import { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n document.head.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n top: ${top}px !important;\n left: ${left}px !important;\n }\n `);\n }\n return () => {\n document.head.removeChild(style);\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React.cloneElement(children, { ref }) }));\n}\n\nexport { PopChild };\n","import { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n const context = useMemo(() => ({\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n },\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => presenceChildren.delete(childId);\n },\n }), \n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n presenceAffectsLayout ? [Math.random()] : [isPresent]);\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n if (mode === \"popLayout\") {\n children = jsx(PopChild, { isPresent: isPresent, children: children });\n }\n return (jsx(PresenceContext.Provider, { value: context, children: children }));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n","import { Children, isValidElement } from 'react';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n\nexport { getChildKey, onlyElements };\n","import { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { invariant } from '../../utils/errors.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { onlyElements, getChildKey } from './utils.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\n\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, exitBeforeEnter, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", }) => {\n invariant(!exitBeforeEnter, \"Replace exitBeforeEnter with mode='wait'\");\n /**\n * Filter any children that aren't ReactElements. We can only track components\n * between renders with a props.key.\n */\n const presentChildren = useMemo(() => onlyElements(children), [children]);\n /**\n * Track the keys of the currently rendered children. This is used to\n * determine which children are exiting.\n */\n const presentKeys = presentChildren.map(getChildKey);\n /**\n * If `initial={false}` we only want to pass this to components in the first render.\n */\n const isInitialRender = useRef(true);\n /**\n * A ref containing the currently present children. When all exit animations\n * are complete, we use this to re-render the component with the latest children\n * *committed* rather than the latest children *rendered*.\n */\n const pendingPresentChildren = useRef(presentChildren);\n /**\n * Track which exiting children have finished animating out.\n */\n const exitComplete = useConstant(() => new Map());\n /**\n * Save children to render as React state. To ensure this component is concurrent-safe,\n * we check for exiting children via an effect.\n */\n const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n pendingPresentChildren.current = presentChildren;\n /**\n * Update complete status of exiting children.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const key = getChildKey(renderedChildren[i]);\n if (!presentKeys.includes(key)) {\n if (exitComplete.get(key) !== true) {\n exitComplete.set(key, false);\n }\n }\n else {\n exitComplete.delete(key);\n }\n }\n }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n const exitingChildren = [];\n if (presentChildren !== diffedChildren) {\n let nextChildren = [...presentChildren];\n /**\n * Loop through all the currently rendered components and decide which\n * are exiting.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const child = renderedChildren[i];\n const key = getChildKey(child);\n if (!presentKeys.includes(key)) {\n nextChildren.splice(i, 0, child);\n exitingChildren.push(child);\n }\n }\n /**\n * If we're in \"wait\" mode, and we have exiting children, we want to\n * only render these until they've all exited.\n */\n if (mode === \"wait\" && exitingChildren.length) {\n nextChildren = exitingChildren;\n }\n setRenderedChildren(onlyElements(nextChildren));\n setDiffedChildren(presentChildren);\n /**\n * Early return to ensure once we've set state with the latest diffed\n * children, we can immediately re-render.\n */\n return;\n }\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n renderedChildren.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n /**\n * If we've been provided a forceRender function by the LayoutGroupContext,\n * we can use it to force a re-render amongst all surrounding components once\n * all components have finished animating out.\n */\n const { forceRender } = useContext(LayoutGroupContext);\n return (jsx(Fragment, { children: renderedChildren.map((child) => {\n const key = getChildKey(child);\n const isPresent = presentChildren === renderedChildren ||\n presentKeys.includes(key);\n const onExit = () => {\n if (exitComplete.has(key)) {\n exitComplete.set(key, true);\n }\n else {\n return;\n }\n let isEveryExitComplete = true;\n exitComplete.forEach((isExitComplete) => {\n if (!isExitComplete)\n isEveryExitComplete = false;\n });\n if (isEveryExitComplete) {\n forceRender === null || forceRender === void 0 ? void 0 : forceRender();\n setRenderedChildren(pendingPresentChildren.current);\n onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: isPresent ? undefined : custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, onExitComplete: isPresent ? undefined : onExit, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n","import { createContext } from 'react';\n\nconst LayoutGroupContext = createContext({});\n\nexport { LayoutGroupContext };\n","import { createContext } from 'react';\n\n/**\n * @public\n */\nconst MotionConfigContext = createContext({\n transformPagePoint: (p) => p,\n isStatic: false,\n reducedMotion: \"never\",\n});\n\nexport { MotionConfigContext };\n","import { createContext } from 'react';\n\n/**\n * @public\n */\nconst PresenceContext = createContext(null);\n\nexport { PresenceContext };\n","import { MotionGlobalConfig } from '../utils/GlobalConfig.mjs';\nimport { createRenderStep } from './render-step.mjs';\n\nconst stepsOrder = [\n \"read\", // Read\n \"resolveKeyframes\", // Write/Read/Write/Read\n \"update\", // Compute\n \"preRender\", // Compute\n \"render\", // Write\n \"postRender\", // Compute\n];\nconst maxElapsed = 40;\nfunction createRenderBatcher(scheduleNextBatch, allowKeepAlive) {\n let runNextFrame = false;\n let useDefaultElapsed = true;\n const state = {\n delta: 0.0,\n timestamp: 0.0,\n isProcessing: false,\n };\n const flagRunNextFrame = () => (runNextFrame = true);\n const steps = stepsOrder.reduce((acc, key) => {\n acc[key] = createRenderStep(flagRunNextFrame);\n return acc;\n }, {});\n const { read, resolveKeyframes, update, preRender, render, postRender } = steps;\n const processBatch = () => {\n const timestamp = MotionGlobalConfig.useManualTiming\n ? state.timestamp\n : performance.now();\n runNextFrame = false;\n state.delta = useDefaultElapsed\n ? 1000 / 60\n : Math.max(Math.min(timestamp - state.timestamp, maxElapsed), 1);\n state.timestamp = timestamp;\n state.isProcessing = true;\n // Unrolled render loop for better per-frame performance\n read.process(state);\n resolveKeyframes.process(state);\n update.process(state);\n preRender.process(state);\n render.process(state);\n postRender.process(state);\n state.isProcessing = false;\n if (runNextFrame && allowKeepAlive) {\n useDefaultElapsed = false;\n scheduleNextBatch(processBatch);\n }\n };\n const wake = () => {\n runNextFrame = true;\n useDefaultElapsed = true;\n if (!state.isProcessing) {\n scheduleNextBatch(processBatch);\n }\n };\n const schedule = stepsOrder.reduce((acc, key) => {\n const step = steps[key];\n acc[key] = (process, keepAlive = false, immediate = false) => {\n if (!runNextFrame)\n wake();\n return step.schedule(process, keepAlive, immediate);\n };\n return acc;\n }, {});\n const cancel = (process) => {\n for (let i = 0; i < stepsOrder.length; i++) {\n steps[stepsOrder[i]].cancel(process);\n }\n };\n return { schedule, cancel, state, steps };\n}\n\nexport { createRenderBatcher, stepsOrder };\n","function createRenderStep(runNextFrame) {\n /**\n * We create and reuse two queues, one to queue jobs for the current frame\n * and one for the next. We reuse to avoid triggering GC after x frames.\n */\n let thisFrame = new Set();\n let nextFrame = new Set();\n /**\n * Track whether we're currently processing jobs in this step. This way\n * we can decide whether to schedule new jobs for this frame or next.\n */\n let isProcessing = false;\n let flushNextFrame = false;\n /**\n * A set of processes which were marked keepAlive when scheduled.\n */\n const toKeepAlive = new WeakSet();\n let latestFrameData = {\n delta: 0.0,\n timestamp: 0.0,\n isProcessing: false,\n };\n function triggerCallback(callback) {\n if (toKeepAlive.has(callback)) {\n step.schedule(callback);\n runNextFrame();\n }\n callback(latestFrameData);\n }\n const step = {\n /**\n * Schedule a process to run on the next frame.\n */\n schedule: (callback, keepAlive = false, immediate = false) => {\n const addToCurrentFrame = immediate && isProcessing;\n const queue = addToCurrentFrame ? thisFrame : nextFrame;\n if (keepAlive)\n toKeepAlive.add(callback);\n if (!queue.has(callback))\n queue.add(callback);\n return callback;\n },\n /**\n * Cancel the provided callback from running on the next frame.\n */\n cancel: (callback) => {\n nextFrame.delete(callback);\n toKeepAlive.delete(callback);\n },\n /**\n * Execute all schedule callbacks.\n */\n process: (frameData) => {\n latestFrameData = frameData;\n /**\n * If we're already processing we've probably been triggered by a flushSync\n * inside an existing process. Instead of executing, mark flushNextFrame\n * as true and ensure we flush the following frame at the end of this one.\n */\n if (isProcessing) {\n flushNextFrame = true;\n return;\n }\n isProcessing = true;\n [thisFrame, nextFrame] = [nextFrame, thisFrame];\n // Clear the next frame queue\n nextFrame.clear();\n // Execute this frame\n thisFrame.forEach(triggerCallback);\n isProcessing = false;\n if (flushNextFrame) {\n flushNextFrame = false;\n step.process(frameData);\n }\n },\n };\n return step;\n}\n\nexport { createRenderStep };\n","import { noop } from '../utils/noop.mjs';\nimport { createRenderBatcher } from './batcher.mjs';\n\nconst { schedule: frame, cancel: cancelFrame, state: frameData, steps, } = createRenderBatcher(typeof requestAnimationFrame !== \"undefined\" ? requestAnimationFrame : noop, true);\n\nexport { cancelFrame, frame, frameData, steps };\n","import { MotionGlobalConfig } from '../utils/GlobalConfig.mjs';\nimport { frameData } from './frame.mjs';\n\nlet now;\nfunction clearTime() {\n now = undefined;\n}\n/**\n * An eventloop-synchronous alternative to performance.now().\n *\n * Ensures that time measurements remain consistent within a synchronous context.\n * Usually calling performance.now() twice within the same synchronous context\n * will return different values which isn't useful for animations when we're usually\n * trying to sync animations to the same frame.\n */\nconst time = {\n now: () => {\n if (now === undefined) {\n time.set(frameData.isProcessing || MotionGlobalConfig.useManualTiming\n ? frameData.timestamp\n : performance.now());\n }\n return now;\n },\n set: (newTime) => {\n now = newTime;\n queueMicrotask(clearTime);\n },\n};\n\nexport { time };\n","import { createContext } from 'react';\n\nconst MotionContext = createContext({});\n\nexport { MotionContext };\n","import { createContext } from 'react';\n\nconst LazyContext = createContext({ strict: false });\n\nexport { LazyContext };\n","/**\n * Convert camelCase to dash-case properties.\n */\nconst camelToDash = (str) => str.replace(/([a-z])([A-Z])/gu, \"$1-$2\").toLowerCase();\n\nexport { camelToDash };\n","import { camelToDash } from '../../render/dom/utils/camel-to-dash.mjs';\n\nconst optimizedAppearDataId = \"framerAppearId\";\nconst optimizedAppearDataAttribute = \"data-\" + camelToDash(optimizedAppearDataId);\n\nexport { optimizedAppearDataAttribute, optimizedAppearDataId };\n","import { createRenderBatcher } from './batcher.mjs';\n\nconst { schedule: microtask, cancel: cancelMicrotask } = createRenderBatcher(queueMicrotask, false);\n\nexport { cancelMicrotask, microtask };\n","function isRefObject(ref) {\n return (ref &&\n typeof ref === \"object\" &&\n Object.prototype.hasOwnProperty.call(ref, \"current\"));\n}\n\nexport { isRefObject };\n","import { createContext } from 'react';\n\n/**\n * Internal, exported only for usage in Framer\n */\nconst SwitchLayoutGroupContext = createContext({});\n\nexport { SwitchLayoutGroupContext };\n","import { useContext, useRef, useInsertionEffect, useEffect } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { MotionContext } from '../../context/MotionContext/index.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { LazyContext } from '../../context/LazyContext.mjs';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { optimizedAppearDataAttribute } from '../../animation/optimized-appear/data-id.mjs';\nimport { microtask } from '../../frameloop/microtask.mjs';\nimport { isRefObject } from '../../utils/is-ref-object.mjs';\nimport { SwitchLayoutGroupContext } from '../../context/SwitchLayoutGroupContext.mjs';\n\nlet scheduleHandoffComplete = false;\nfunction useVisualElement(Component, visualState, props, createVisualElement, ProjectionNodeConstructor) {\n var _a;\n const { visualElement: parent } = useContext(MotionContext);\n const lazyContext = useContext(LazyContext);\n const presenceContext = useContext(PresenceContext);\n const reducedMotionConfig = useContext(MotionConfigContext).reducedMotion;\n const visualElementRef = useRef();\n /**\n * If we haven't preloaded a renderer, check to see if we have one lazy-loaded\n */\n createVisualElement = createVisualElement || lazyContext.renderer;\n if (!visualElementRef.current && createVisualElement) {\n visualElementRef.current = createVisualElement(Component, {\n visualState,\n parent,\n props,\n presenceContext,\n blockInitialAnimation: presenceContext\n ? presenceContext.initial === false\n : false,\n reducedMotionConfig,\n });\n }\n const visualElement = visualElementRef.current;\n /**\n * Load Motion gesture and animation features. These are rendered as renderless\n * components so each feature can optionally make use of React lifecycle methods.\n */\n const initialLayoutGroupConfig = useContext(SwitchLayoutGroupContext);\n if (visualElement &&\n !visualElement.projection &&\n ProjectionNodeConstructor &&\n (visualElement.type === \"html\" || visualElement.type === \"svg\")) {\n createProjectionNode(visualElementRef.current, props, ProjectionNodeConstructor, initialLayoutGroupConfig);\n }\n useInsertionEffect(() => {\n visualElement && visualElement.update(props, presenceContext);\n });\n /**\n * Cache this value as we want to know whether HandoffAppearAnimations\n * was present on initial render - it will be deleted after this.\n */\n const optimisedAppearId = props[optimizedAppearDataAttribute];\n const wantsHandoff = useRef(Boolean(optimisedAppearId) &&\n !window.MotionHandoffIsComplete &&\n ((_a = window.MotionHasOptimisedAnimation) === null || _a === void 0 ? void 0 : _a.call(window, optimisedAppearId)));\n useIsomorphicLayoutEffect(() => {\n if (!visualElement)\n return;\n visualElement.updateFeatures();\n microtask.render(visualElement.render);\n /**\n * Ideally this function would always run in a useEffect.\n *\n * However, if we have optimised appear animations to handoff from,\n * it needs to happen synchronously to ensure there's no flash of\n * incorrect styles in the event of a hydration error.\n *\n * So if we detect a situtation where optimised appear animations\n * are running, we use useLayoutEffect to trigger animations.\n */\n if (wantsHandoff.current && visualElement.animationState) {\n visualElement.animationState.animateChanges();\n }\n });\n useEffect(() => {\n if (!visualElement)\n return;\n if (!wantsHandoff.current && visualElement.animationState) {\n visualElement.animationState.animateChanges();\n }\n wantsHandoff.current = false;\n // This ensures all future calls to animateChanges() will run in useEffect\n if (!scheduleHandoffComplete) {\n scheduleHandoffComplete = true;\n queueMicrotask(completeHandoff);\n }\n });\n return visualElement;\n}\nfunction completeHandoff() {\n window.MotionHandoffIsComplete = true;\n}\nfunction createProjectionNode(visualElement, props, ProjectionNodeConstructor, initialPromotionConfig) {\n const { layoutId, layout, drag, dragConstraints, layoutScroll, layoutRoot, } = props;\n visualElement.projection = new ProjectionNodeConstructor(visualElement.latestValues, props[\"data-framer-portal-id\"]\n ? undefined\n : getClosestProjectingNode(visualElement.parent));\n visualElement.projection.setOptions({\n layoutId,\n layout,\n alwaysMeasureLayout: Boolean(drag) || (dragConstraints && isRefObject(dragConstraints)),\n visualElement,\n /**\n * TODO: Update options in an effect. This could be tricky as it'll be too late\n * to update by the time layout animations run.\n * We also need to fix this safeToRemove by linking it up to the one returned by usePresence,\n * ensuring it gets called if there's no potential layout animations.\n *\n */\n animationType: typeof layout === \"string\" ? layout : \"both\",\n initialPromotionConfig,\n layoutScroll,\n layoutRoot,\n });\n}\nfunction getClosestProjectingNode(visualElement) {\n if (!visualElement)\n return undefined;\n return visualElement.options.allowProjection !== false\n ? visualElement.projection\n : getClosestProjectingNode(visualElement.parent);\n}\n\nexport { useVisualElement };\n","import { useCallback } from 'react';\nimport { isRefObject } from '../../utils/is-ref-object.mjs';\n\n/**\n * Creates a ref function that, when called, hydrates the provided\n * external ref and VisualElement.\n */\nfunction useMotionRef(visualState, visualElement, externalRef) {\n return useCallback((instance) => {\n instance && visualState.mount && visualState.mount(instance);\n if (visualElement) {\n if (instance) {\n visualElement.mount(instance);\n }\n else {\n visualElement.unmount();\n }\n }\n if (externalRef) {\n if (typeof externalRef === \"function\") {\n externalRef(instance);\n }\n else if (isRefObject(externalRef)) {\n externalRef.current = instance;\n }\n }\n }, \n /**\n * Only pass a new ref callback to React if we've received a visual element\n * factory. Otherwise we'll be mounting/remounting every time externalRef\n * or other dependencies change.\n */\n [visualElement]);\n}\n\nexport { useMotionRef };\n","/**\n * Decides if the supplied variable is variant label\n */\nfunction isVariantLabel(v) {\n return typeof v === \"string\" || Array.isArray(v);\n}\n\nexport { isVariantLabel };\n","function isAnimationControls(v) {\n return (v !== null &&\n typeof v === \"object\" &&\n typeof v.start === \"function\");\n}\n\nexport { isAnimationControls };\n","const variantPriorityOrder = [\n \"animate\",\n \"whileInView\",\n \"whileFocus\",\n \"whileHover\",\n \"whileTap\",\n \"whileDrag\",\n \"exit\",\n];\nconst variantProps = [\"initial\", ...variantPriorityOrder];\n\nexport { variantPriorityOrder, variantProps };\n","import { isAnimationControls } from '../../animation/utils/is-animation-controls.mjs';\nimport { isVariantLabel } from './is-variant-label.mjs';\nimport { variantProps } from './variant-props.mjs';\n\nfunction isControllingVariants(props) {\n return (isAnimationControls(props.animate) ||\n variantProps.some((name) => isVariantLabel(props[name])));\n}\nfunction isVariantNode(props) {\n return Boolean(isControllingVariants(props) || props.variants);\n}\n\nexport { isControllingVariants, isVariantNode };\n","import { useContext, useMemo } from 'react';\nimport { MotionContext } from './index.mjs';\nimport { getCurrentTreeVariants } from './utils.mjs';\n\nfunction useCreateMotionContext(props) {\n const { initial, animate } = getCurrentTreeVariants(props, useContext(MotionContext));\n return useMemo(() => ({ initial, animate }), [variantLabelsAsDependency(initial), variantLabelsAsDependency(animate)]);\n}\nfunction variantLabelsAsDependency(prop) {\n return Array.isArray(prop) ? prop.join(\" \") : prop;\n}\n\nexport { useCreateMotionContext };\n","import { isVariantLabel } from '../../render/utils/is-variant-label.mjs';\nimport { isControllingVariants } from '../../render/utils/is-controlling-variants.mjs';\n\nfunction getCurrentTreeVariants(props, context) {\n if (isControllingVariants(props)) {\n const { initial, animate } = props;\n return {\n initial: initial === false || isVariantLabel(initial)\n ? initial\n : undefined,\n animate: isVariantLabel(animate) ? animate : undefined,\n };\n }\n return props.inherit !== false ? context : {};\n}\n\nexport { getCurrentTreeVariants };\n","const featureProps = {\n animation: [\n \"animate\",\n \"variants\",\n \"whileHover\",\n \"whileTap\",\n \"exit\",\n \"whileInView\",\n \"whileFocus\",\n \"whileDrag\",\n ],\n exit: [\"exit\"],\n drag: [\"drag\", \"dragControls\"],\n focus: [\"whileFocus\"],\n hover: [\"whileHover\", \"onHoverStart\", \"onHoverEnd\"],\n tap: [\"whileTap\", \"onTap\", \"onTapStart\", \"onTapCancel\"],\n pan: [\"onPan\", \"onPanStart\", \"onPanSessionStart\", \"onPanEnd\"],\n inView: [\"whileInView\", \"onViewportEnter\", \"onViewportLeave\"],\n layout: [\"layout\", \"layoutId\"],\n};\nconst featureDefinitions = {};\nfor (const key in featureProps) {\n featureDefinitions[key] = {\n isEnabled: (props) => featureProps[key].some((name) => !!props[name]),\n };\n}\n\nexport { featureDefinitions };\n","const motionComponentSymbol = Symbol.for(\"motionComponentSymbol\");\n\nexport { motionComponentSymbol };\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useContext } from 'react';\nimport { MotionConfigContext } from '../context/MotionConfigContext.mjs';\nimport { MotionContext } from '../context/MotionContext/index.mjs';\nimport { useVisualElement } from './utils/use-visual-element.mjs';\nimport { useMotionRef } from './utils/use-motion-ref.mjs';\nimport { useCreateMotionContext } from '../context/MotionContext/create.mjs';\nimport { loadFeatures } from './features/load-features.mjs';\nimport { isBrowser } from '../utils/is-browser.mjs';\nimport { LayoutGroupContext } from '../context/LayoutGroupContext.mjs';\nimport { LazyContext } from '../context/LazyContext.mjs';\nimport { motionComponentSymbol } from './utils/symbol.mjs';\nimport { warning, invariant } from '../utils/errors.mjs';\nimport { featureDefinitions } from './features/definitions.mjs';\n\n/**\n * Create a `motion` component.\n *\n * This function accepts a Component argument, which can be either a string (ie \"div\"\n * for `motion.div`), or an actual React component.\n *\n * Alongside this is a config option which provides a way of rendering the provided\n * component \"offline\", or outside the React render cycle.\n */\nfunction createMotionComponent({ preloadedFeatures, createVisualElement, useRender, useVisualState, Component, }) {\n preloadedFeatures && loadFeatures(preloadedFeatures);\n function MotionComponent(props, externalRef) {\n /**\n * If we need to measure the element we load this functionality in a\n * separate class component in order to gain access to getSnapshotBeforeUpdate.\n */\n let MeasureLayout;\n const configAndProps = {\n ...useContext(MotionConfigContext),\n ...props,\n layoutId: useLayoutId(props),\n };\n const { isStatic } = configAndProps;\n const context = useCreateMotionContext(props);\n const visualState = useVisualState(props, isStatic);\n if (!isStatic && isBrowser) {\n useStrictMode(configAndProps, preloadedFeatures);\n const layoutProjection = getProjectionFunctionality(configAndProps);\n MeasureLayout = layoutProjection.MeasureLayout;\n /**\n * Create a VisualElement for this component. A VisualElement provides a common\n * interface to renderer-specific APIs (ie DOM/Three.js etc) as well as\n * providing a way of rendering to these APIs outside of the React render loop\n * for more performant animations and interactions\n */\n context.visualElement = useVisualElement(Component, visualState, configAndProps, createVisualElement, layoutProjection.ProjectionNode);\n }\n /**\n * The mount order and hierarchy is specific to ensure our element ref\n * is hydrated by the time features fire their effects.\n */\n return (jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout && context.visualElement ? (jsx(MeasureLayout, { visualElement: context.visualElement, ...configAndProps })) : null, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, context.visualElement)] }));\n }\n const ForwardRefComponent = forwardRef(MotionComponent);\n ForwardRefComponent[motionComponentSymbol] = Component;\n return ForwardRefComponent;\n}\nfunction useLayoutId({ layoutId }) {\n const layoutGroupId = useContext(LayoutGroupContext).id;\n return layoutGroupId && layoutId !== undefined\n ? layoutGroupId + \"-\" + layoutId\n : layoutId;\n}\nfunction useStrictMode(configAndProps, preloadedFeatures) {\n const isStrict = useContext(LazyContext).strict;\n /**\n * If we're in development mode, check to make sure we're not rendering a motion component\n * as a child of LazyMotion, as this will break the file-size benefits of using it.\n */\n if (process.env.NODE_ENV !== \"production\" &&\n preloadedFeatures &&\n isStrict) {\n const strictMessage = \"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.\";\n configAndProps.ignoreStrict\n ? warning(false, strictMessage)\n : invariant(false, strictMessage);\n }\n}\nfunction getProjectionFunctionality(props) {\n const { drag, layout } = featureDefinitions;\n if (!drag && !layout)\n return {};\n const combined = { ...drag, ...layout };\n return {\n MeasureLayout: (drag === null || drag === void 0 ? void 0 : drag.isEnabled(props)) || (layout === null || layout === void 0 ? void 0 : layout.isEnabled(props))\n ? combined.MeasureLayout\n : undefined,\n ProjectionNode: combined.ProjectionNode,\n };\n}\n\nexport { createMotionComponent };\n","import { featureDefinitions } from './definitions.mjs';\n\nfunction loadFeatures(features) {\n for (const key in features) {\n featureDefinitions[key] = {\n ...featureDefinitions[key],\n ...features[key],\n };\n }\n}\n\nexport { loadFeatures };\n","import { createMotionComponent } from '../../motion/index.mjs';\n\n/**\n * Convert any React component into a `motion` component. The provided component\n * **must** use `React.forwardRef` to the underlying DOM component you want to animate.\n *\n * ```jsx\n * const Component = React.forwardRef((props, ref) => {\n * return <div ref={ref} />\n * })\n *\n * const MotionComponent = motion(Component)\n * ```\n *\n * @public\n */\nfunction createMotionProxy(createConfig) {\n function custom(Component, customMotionComponentConfig = {}) {\n return createMotionComponent(createConfig(Component, customMotionComponentConfig));\n }\n if (typeof Proxy === \"undefined\") {\n return custom;\n }\n /**\n * A cache of generated `motion` components, e.g `motion.div`, `motion.input` etc.\n * Rather than generating them anew every render.\n */\n const componentCache = new Map();\n return new Proxy(custom, {\n /**\n * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.\n * The prop name is passed through as `key` and we can use that to generate a `motion`\n * DOM component with that name.\n */\n get: (_target, key) => {\n /**\n * If this element doesn't exist in the component cache, create it and cache.\n */\n if (!componentCache.has(key)) {\n componentCache.set(key, custom(key));\n }\n return componentCache.get(key);\n },\n });\n}\n\nexport { createMotionProxy };\n","/**\n * We keep these listed separately as we use the lowercase tag names as part\n * of the runtime bundle to detect SVG components\n */\nconst lowercaseSVGElements = [\n \"animate\",\n \"circle\",\n \"defs\",\n \"desc\",\n \"ellipse\",\n \"g\",\n \"image\",\n \"line\",\n \"filter\",\n \"marker\",\n \"mask\",\n \"metadata\",\n \"path\",\n \"pattern\",\n \"polygon\",\n \"polyline\",\n \"rect\",\n \"stop\",\n \"switch\",\n \"symbol\",\n \"svg\",\n \"text\",\n \"tspan\",\n \"use\",\n \"view\",\n];\n\nexport { lowercaseSVGElements };\n","import { lowercaseSVGElements } from '../../svg/lowercase-elements.mjs';\n\nfunction isSVGComponent(Component) {\n if (\n /**\n * If it's not a string, it's a custom React component. Currently we only support\n * HTML custom React components.\n */\n typeof Component !== \"string\" ||\n /**\n * If it contains a dash, the element is a custom HTML webcomponent.\n */\n Component.includes(\"-\")) {\n return false;\n }\n else if (\n /**\n * If it's in our list of lowercase SVG tags, it's an SVG component\n */\n lowercaseSVGElements.indexOf(Component) > -1 ||\n /**\n * If it contains a capital letter, it's an SVG component\n */\n /[A-Z]/u.test(Component)) {\n return true;\n }\n return false;\n}\n\nexport { isSVGComponent };\n","const scaleCorrectors = {};\nfunction addScaleCorrector(correctors) {\n Object.assign(scaleCorrectors, correctors);\n}\n\nexport { addScaleCorrector, scaleCorrectors };\n","/**\n * Generate a list of every possible transform key.\n */\nconst transformPropOrder = [\n \"transformPerspective\",\n \"x\",\n \"y\",\n \"z\",\n \"translateX\",\n \"translateY\",\n \"translateZ\",\n \"scale\",\n \"scaleX\",\n \"scaleY\",\n \"rotate\",\n \"rotateX\",\n \"rotateY\",\n \"rotateZ\",\n \"skew\",\n \"skewX\",\n \"skewY\",\n];\n/**\n * A quick lookup for transform props.\n */\nconst transformProps = new Set(transformPropOrder);\n\nexport { transformPropOrder, transformProps };\n","import { scaleCorrectors } from '../../projection/styles/scale-correction.mjs';\nimport { transformProps } from '../../render/html/utils/transform.mjs';\n\nfunction isForcedMotionValue(key, { layout, layoutId }) {\n return (transformProps.has(key) ||\n key.startsWith(\"origin\") ||\n ((layout || layoutId !== undefined) &&\n (!!scaleCorrectors[key] || key === \"opacity\")));\n}\n\nexport { isForcedMotionValue };\n","const isMotionValue = (value) => Boolean(value && value.getVelocity);\n\nexport { isMotionValue };\n","/**\n * Provided a value and a ValueType, returns the value as that value type.\n */\nconst getValueAsType = (value, type) => {\n return type && typeof value === \"number\"\n ? type.transform(value)\n : value;\n};\n\nexport { getValueAsType };\n","import { number } from '../../../value/types/numbers/index.mjs';\n\nconst int = {\n ...number,\n transform: Math.round,\n};\n\nexport { int };\n","import { scale, alpha } from '../../../value/types/numbers/index.mjs';\nimport { px, degrees, progressPercentage } from '../../../value/types/numbers/units.mjs';\nimport { int } from './type-int.mjs';\n\nconst numberValueTypes = {\n // Border props\n borderWidth: px,\n borderTopWidth: px,\n borderRightWidth: px,\n borderBottomWidth: px,\n borderLeftWidth: px,\n borderRadius: px,\n radius: px,\n borderTopLeftRadius: px,\n borderTopRightRadius: px,\n borderBottomRightRadius: px,\n borderBottomLeftRadius: px,\n // Positioning props\n width: px,\n maxWidth: px,\n height: px,\n maxHeight: px,\n size: px,\n top: px,\n right: px,\n bottom: px,\n left: px,\n // Spacing props\n padding: px,\n paddingTop: px,\n paddingRight: px,\n paddingBottom: px,\n paddingLeft: px,\n margin: px,\n marginTop: px,\n marginRight: px,\n marginBottom: px,\n marginLeft: px,\n // Transform props\n rotate: degrees,\n rotateX: degrees,\n rotateY: degrees,\n rotateZ: degrees,\n scale,\n scaleX: scale,\n scaleY: scale,\n scaleZ: scale,\n skew: degrees,\n skewX: degrees,\n skewY: degrees,\n distance: px,\n translateX: px,\n translateY: px,\n translateZ: px,\n x: px,\n y: px,\n z: px,\n perspective: px,\n transformPerspective: px,\n opacity: alpha,\n originX: progressPercentage,\n originY: progressPercentage,\n originZ: px,\n // Misc\n zIndex: int,\n backgroundPositionX: px,\n backgroundPositionY: px,\n // SVG\n fillOpacity: alpha,\n strokeOpacity: alpha,\n numOctaves: int,\n};\n\nexport { numberValueTypes };\n","import { transformPropOrder } from './transform.mjs';\nimport { getValueAsType } from '../../dom/value-types/get-as-type.mjs';\nimport { numberValueTypes } from '../../dom/value-types/number.mjs';\n\nconst translateAlias = {\n x: \"translateX\",\n y: \"translateY\",\n z: \"translateZ\",\n transformPerspective: \"perspective\",\n};\nconst numTransforms = transformPropOrder.length;\n/**\n * Build a CSS transform style from individual x/y/scale etc properties.\n *\n * This outputs with a default order of transforms/scales/rotations, this can be customised by\n * providing a transformTemplate function.\n */\nfunction buildTransform(latestValues, transform, transformTemplate) {\n // The transform string we're going to build into.\n let transformString = \"\";\n let transformIsDefault = true;\n /**\n * Loop over all possible transforms in order, adding the ones that\n * are present to the transform string.\n */\n for (let i = 0; i < numTransforms; i++) {\n const key = transformPropOrder[i];\n const value = latestValues[key];\n if (value === undefined)\n continue;\n let valueIsDefault = true;\n if (typeof value === \"number\") {\n valueIsDefault = value === (key.startsWith(\"scale\") ? 1 : 0);\n }\n else {\n valueIsDefault = parseFloat(value) === 0;\n }\n if (!valueIsDefault || transformTemplate) {\n const valueAsType = getValueAsType(value, numberValueTypes[key]);\n if (!valueIsDefault) {\n transformIsDefault = false;\n const transformName = translateAlias[key] || key;\n transformString += `${transformName}(${valueAsType}) `;\n }\n if (transformTemplate) {\n transform[key] = valueAsType;\n }\n }\n }\n transformString = transformString.trim();\n // If we have a custom `transform` template, pass our transform values and\n // generated transformString to that before returning\n if (transformTemplate) {\n transformString = transformTemplate(transform, transformIsDefault ? \"\" : transformString);\n }\n else if (transformIsDefault) {\n transformString = \"none\";\n }\n return transformString;\n}\n\nexport { buildTransform };\n","import { buildTransform } from './build-transform.mjs';\nimport { isCSSVariableName } from '../../dom/utils/is-css-variable.mjs';\nimport { transformProps } from './transform.mjs';\nimport { getValueAsType } from '../../dom/value-types/get-as-type.mjs';\nimport { numberValueTypes } from '../../dom/value-types/number.mjs';\n\nfunction buildHTMLStyles(state, latestValues, transformTemplate) {\n const { style, vars, transformOrigin } = state;\n // Track whether we encounter any transform or transformOrigin values.\n let hasTransform = false;\n let hasTransformOrigin = false;\n /**\n * Loop over all our latest animated values and decide whether to handle them\n * as a style or CSS variable.\n *\n * Transforms and transform origins are kept separately for further processing.\n */\n for (const key in latestValues) {\n const value = latestValues[key];\n if (transformProps.has(key)) {\n // If this is a transform, flag to enable further transform processing\n hasTransform = true;\n continue;\n }\n else if (isCSSVariableName(key)) {\n vars[key] = value;\n continue;\n }\n else {\n // Convert the value to its default value type, ie 0 -> \"0px\"\n const valueAsType = getValueAsType(value, numberValueTypes[key]);\n if (key.startsWith(\"origin\")) {\n // If this is a transform origin, flag and enable further transform-origin processing\n hasTransformOrigin = true;\n transformOrigin[key] =\n valueAsType;\n }\n else {\n style[key] = valueAsType;\n }\n }\n }\n if (!latestValues.transform) {\n if (hasTransform || transformTemplate) {\n style.transform = buildTransform(latestValues, state.transform, transformTemplate);\n }\n else if (style.transform) {\n /**\n * If we have previously created a transform but currently don't have any,\n * reset transform style to none.\n */\n style.transform = \"none\";\n }\n }\n /**\n * Build a transformOrigin style. Uses the same defaults as the browser for\n * undefined origins.\n */\n if (hasTransformOrigin) {\n const { originX = \"50%\", originY = \"50%\", originZ = 0, } = transformOrigin;\n style.transformOrigin = `${originX} ${originY} ${originZ}`;\n }\n}\n\nexport { buildHTMLStyles };\n","const createHtmlRenderState = () => ({\n style: {},\n transform: {},\n transformOrigin: {},\n vars: {},\n});\n\nexport { createHtmlRenderState };\n","import { useMemo } from 'react';\nimport { isForcedMotionValue } from '../../motion/utils/is-forced-motion-value.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\nimport { buildHTMLStyles } from './utils/build-styles.mjs';\nimport { createHtmlRenderState } from './utils/create-render-state.mjs';\n\nfunction copyRawValuesOnly(target, source, props) {\n for (const key in source) {\n if (!isMotionValue(source[key]) && !isForcedMotionValue(key, props)) {\n target[key] = source[key];\n }\n }\n}\nfunction useInitialMotionValues({ transformTemplate }, visualState) {\n return useMemo(() => {\n const state = createHtmlRenderState();\n buildHTMLStyles(state, visualState, transformTemplate);\n return Object.assign({}, state.vars, state.style);\n }, [visualState]);\n}\nfunction useStyle(props, visualState) {\n const styleProp = props.style || {};\n const style = {};\n /**\n * Copy non-Motion Values straight into style\n */\n copyRawValuesOnly(style, styleProp, props);\n Object.assign(style, useInitialMotionValues(props, visualState));\n return style;\n}\nfunction useHTMLProps(props, visualState) {\n // The `any` isn't ideal but it is the type of createElement props argument\n const htmlProps = {};\n const style = useStyle(props, visualState);\n if (props.drag && props.dragListener !== false) {\n // Disable the ghost element when a user drags\n htmlProps.draggable = false;\n // Disable text selection\n style.userSelect =\n style.WebkitUserSelect =\n style.WebkitTouchCallout =\n \"none\";\n // Disable scrolling on the draggable direction\n style.touchAction =\n props.drag === true\n ? \"none\"\n : `pan-${props.drag === \"x\" ? \"y\" : \"x\"}`;\n }\n if (props.tabIndex === undefined &&\n (props.onTap || props.onTapStart || props.whileTap)) {\n htmlProps.tabIndex = 0;\n }\n htmlProps.style = style;\n return htmlProps;\n}\n\nexport { copyRawValuesOnly, useHTMLProps };\n","import { px } from '../../../value/types/numbers/units.mjs';\n\nfunction calcOrigin(origin, offset, size) {\n return typeof origin === \"string\"\n ? origin\n : px.transform(offset + size * origin);\n}\n/**\n * The SVG transform origin defaults are different to CSS and is less intuitive,\n * so we use the measured dimensions of the SVG to reconcile these.\n */\nfunction calcSVGTransformOrigin(dimensions, originX, originY) {\n const pxOriginX = calcOrigin(originX, dimensions.x, dimensions.width);\n const pxOriginY = calcOrigin(originY, dimensions.y, dimensions.height);\n return `${pxOriginX} ${pxOriginY}`;\n}\n\nexport { calcSVGTransformOrigin };\n","import { px } from '../../../value/types/numbers/units.mjs';\n\nconst dashKeys = {\n offset: \"stroke-dashoffset\",\n array: \"stroke-dasharray\",\n};\nconst camelKeys = {\n offset: \"strokeDashoffset\",\n array: \"strokeDasharray\",\n};\n/**\n * Build SVG path properties. Uses the path's measured length to convert\n * our custom pathLength, pathSpacing and pathOffset into stroke-dashoffset\n * and stroke-dasharray attributes.\n *\n * This function is mutative to reduce per-frame GC.\n */\nfunction buildSVGPath(attrs, length, spacing = 1, offset = 0, useDashCase = true) {\n // Normalise path length by setting SVG attribute pathLength to 1\n attrs.pathLength = 1;\n // We use dash case when setting attributes directly to the DOM node and camel case\n // when defining props on a React component.\n const keys = useDashCase ? dashKeys : camelKeys;\n // Build the dash offset\n attrs[keys.offset] = px.transform(-offset);\n // Build the dash array\n const pathLength = px.transform(length);\n const pathSpacing = px.transform(spacing);\n attrs[keys.array] = `${pathLength} ${pathSpacing}`;\n}\n\nexport { buildSVGPath };\n","import { buildHTMLStyles } from '../../html/utils/build-styles.mjs';\nimport { calcSVGTransformOrigin } from './transform-origin.mjs';\nimport { buildSVGPath } from './path.mjs';\n\n/**\n * Build SVG visual attrbutes, like cx and style.transform\n */\nfunction buildSVGAttrs(state, { attrX, attrY, attrScale, originX, originY, pathLength, pathSpacing = 1, pathOffset = 0, \n// This is object creation, which we try to avoid per-frame.\n...latest }, isSVGTag, transformTemplate) {\n buildHTMLStyles(state, latest, transformTemplate);\n /**\n * For svg tags we just want to make sure viewBox is animatable and treat all the styles\n * as normal HTML tags.\n */\n if (isSVGTag) {\n if (state.style.viewBox) {\n state.attrs.viewBox = state.style.viewBox;\n }\n return;\n }\n state.attrs = state.style;\n state.style = {};\n const { attrs, style, dimensions } = state;\n /**\n * However, we apply transforms as CSS transforms. So if we detect a transform we take it from attrs\n * and copy it into style.\n */\n if (attrs.transform) {\n if (dimensions)\n style.transform = attrs.transform;\n delete attrs.transform;\n }\n // Parse transformOrigin\n if (dimensions &&\n (originX !== undefined || originY !== undefined || style.transform)) {\n style.transformOrigin = calcSVGTransformOrigin(dimensions, originX !== undefined ? originX : 0.5, originY !== undefined ? originY : 0.5);\n }\n // Render attrX/attrY/attrScale as attributes\n if (attrX !== undefined)\n attrs.x = attrX;\n if (attrY !== undefined)\n attrs.y = attrY;\n if (attrScale !== undefined)\n attrs.scale = attrScale;\n // Build SVG path if one has been defined\n if (pathLength !== undefined) {\n buildSVGPath(attrs, pathLength, pathSpacing, pathOffset, false);\n }\n}\n\nexport { buildSVGAttrs };\n","import { createHtmlRenderState } from '../../html/utils/create-render-state.mjs';\n\nconst createSvgRenderState = () => ({\n ...createHtmlRenderState(),\n attrs: {},\n});\n\nexport { createSvgRenderState };\n","const isSVGTag = (tag) => typeof tag === \"string\" && tag.toLowerCase() === \"svg\";\n\nexport { isSVGTag };\n","import { useMemo } from 'react';\nimport { copyRawValuesOnly } from '../html/use-props.mjs';\nimport { buildSVGAttrs } from './utils/build-attrs.mjs';\nimport { createSvgRenderState } from './utils/create-render-state.mjs';\nimport { isSVGTag } from './utils/is-svg-tag.mjs';\n\nfunction useSVGProps(props, visualState, _isStatic, Component) {\n const visualProps = useMemo(() => {\n const state = createSvgRenderState();\n buildSVGAttrs(state, visualState, isSVGTag(Component), props.transformTemplate);\n return {\n ...state.attrs,\n style: { ...state.style },\n };\n }, [visualState]);\n if (props.style) {\n const rawStyles = {};\n copyRawValuesOnly(rawStyles, props.style, props);\n visualProps.style = { ...rawStyles, ...visualProps.style };\n }\n return visualProps;\n}\n\nexport { useSVGProps };\n","import { Fragment, useMemo, createElement } from 'react';\nimport { useHTMLProps } from '../html/use-props.mjs';\nimport { filterProps } from './utils/filter-props.mjs';\nimport { isSVGComponent } from './utils/is-svg-component.mjs';\nimport { useSVGProps } from '../svg/use-props.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\n\nfunction createUseRender(forwardMotionProps = false) {\n const useRender = (Component, props, ref, { latestValues }, isStatic) => {\n const useVisualProps = isSVGComponent(Component)\n ? useSVGProps\n : useHTMLProps;\n const visualProps = useVisualProps(props, latestValues, isStatic, Component);\n const filteredProps = filterProps(props, typeof Component === \"string\", forwardMotionProps);\n const elementProps = Component !== Fragment\n ? { ...filteredProps, ...visualProps, ref }\n : {};\n /**\n * If component has been handed a motion value as its child,\n * memoise its initial value and render that. Subsequent updates\n * will be handled by the onChange handler\n */\n const { children } = props;\n const renderedChildren = useMemo(() => (isMotionValue(children) ? children.get() : children), [children]);\n return createElement(Component, {\n ...elementProps,\n children: renderedChildren,\n });\n };\n return useRender;\n}\n\nexport { createUseRender };\n","function renderHTML(element, { style, vars }, styleProp, projection) {\n Object.assign(element.style, style, projection && projection.getProjectionStyles(styleProp));\n // Loop over any CSS variables and assign those.\n for (const key in vars) {\n element.style.setProperty(key, vars[key]);\n }\n}\n\nexport { renderHTML };\n","/**\n * A set of attribute names that are always read/written as camel case.\n */\nconst camelCaseAttributes = new Set([\n \"baseFrequency\",\n \"diffuseConstant\",\n \"kernelMatrix\",\n \"kernelUnitLength\",\n \"keySplines\",\n \"keyTimes\",\n \"limitingConeAngle\",\n \"markerHeight\",\n \"markerWidth\",\n \"numOctaves\",\n \"targetX\",\n \"targetY\",\n \"surfaceScale\",\n \"specularConstant\",\n \"specularExponent\",\n \"stdDeviation\",\n \"tableValues\",\n \"viewBox\",\n \"gradientTransform\",\n \"pathLength\",\n \"startOffset\",\n \"textLength\",\n \"lengthAdjust\",\n]);\n\nexport { camelCaseAttributes };\n","import { camelToDash } from '../../dom/utils/camel-to-dash.mjs';\nimport { renderHTML } from '../../html/utils/render.mjs';\nimport { camelCaseAttributes } from './camel-case-attrs.mjs';\n\nfunction renderSVG(element, renderState, _styleProp, projection) {\n renderHTML(element, renderState, undefined, projection);\n for (const key in renderState.attrs) {\n element.setAttribute(!camelCaseAttributes.has(key) ? camelToDash(key) : key, renderState.attrs[key]);\n }\n}\n\nexport { renderSVG };\n","import { isForcedMotionValue } from '../../../motion/utils/is-forced-motion-value.mjs';\nimport { isMotionValue } from '../../../value/utils/is-motion-value.mjs';\n\nfunction scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n var _a;\n const { style } = props;\n const newValues = {};\n for (const key in style) {\n if (isMotionValue(style[key]) ||\n (prevProps.style &&\n isMotionValue(prevProps.style[key])) ||\n isForcedMotionValue(key, props) ||\n ((_a = visualElement === null || visualElement === void 0 ? void 0 : visualElement.getValue(key)) === null || _a === void 0 ? void 0 : _a.liveStyle) !== undefined) {\n newValues[key] = style[key];\n }\n }\n /**\n * If the willChange style has been manually set as a string, set\n * applyWillChange to false to prevent it from automatically being applied.\n */\n if (visualElement && style && typeof style.willChange === \"string\") {\n visualElement.applyWillChange = false;\n }\n return newValues;\n}\n\nexport { scrapeMotionValuesFromProps };\n","import { isMotionValue } from '../../../value/utils/is-motion-value.mjs';\nimport { scrapeMotionValuesFromProps as scrapeMotionValuesFromProps$1 } from '../../html/utils/scrape-motion-values.mjs';\nimport { transformPropOrder } from '../../html/utils/transform.mjs';\n\nfunction scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n const newValues = scrapeMotionValuesFromProps$1(props, prevProps, visualElement);\n for (const key in props) {\n if (isMotionValue(props[key]) ||\n isMotionValue(prevProps[key])) {\n const targetKey = transformPropOrder.indexOf(key) !== -1\n ? \"attr\" + key.charAt(0).toUpperCase() + key.substring(1)\n : key;\n newValues[targetKey] = props[key];\n }\n }\n return newValues;\n}\n\nexport { scrapeMotionValuesFromProps };\n","function getValueState(visualElement) {\n const state = [{}, {}];\n visualElement === null || visualElement === void 0 ? void 0 : visualElement.values.forEach((value, key) => {\n state[0][key] = value.get();\n state[1][key] = value.getVelocity();\n });\n return state;\n}\nfunction resolveVariantFromProps(props, definition, custom, visualElement) {\n /**\n * If the variant definition is a function, resolve.\n */\n if (typeof definition === \"function\") {\n const [current, velocity] = getValueState(visualElement);\n definition = definition(custom !== undefined ? custom : props.custom, current, velocity);\n }\n /**\n * If the variant definition is a variant label, or\n * the function returned a variant label, resolve.\n */\n if (typeof definition === \"string\") {\n definition = props.variants && props.variants[definition];\n }\n /**\n * At this point we've resolved both functions and variant labels,\n * but the resolved variant label might itself have been a function.\n * If so, resolve. This can only have returned a valid target object.\n */\n if (typeof definition === \"function\") {\n const [current, velocity] = getValueState(visualElement);\n definition = definition(custom !== undefined ? custom : props.custom, current, velocity);\n }\n return definition;\n}\n\nexport { resolveVariantFromProps };\n","const isKeyframesTarget = (v) => {\n return Array.isArray(v);\n};\n\nexport { isKeyframesTarget };\n","import { isKeyframesTarget } from '../animation/utils/is-keyframes-target.mjs';\n\nconst isCustomValue = (v) => {\n return Boolean(v && typeof v === \"object\" && v.mix && v.toValue);\n};\nconst resolveFinalValueInKeyframes = (v) => {\n // TODO maybe throw if v.length - 1 is placeholder token?\n return isKeyframesTarget(v) ? v[v.length - 1] || 0 : v;\n};\n\nexport { isCustomValue, resolveFinalValueInKeyframes };\n","import { isCustomValue } from '../../utils/resolve-value.mjs';\nimport { isMotionValue } from './is-motion-value.mjs';\n\n/**\n * If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself\n *\n * TODO: Remove and move to library\n */\nfunction resolveMotionValue(value) {\n const unwrappedValue = isMotionValue(value) ? value.get() : value;\n return isCustomValue(unwrappedValue)\n ? unwrappedValue.toValue()\n : unwrappedValue;\n}\n\nexport { resolveMotionValue };\n","/**\n * A list of values that can be hardware-accelerated.\n */\nconst acceleratedValues = new Set([\n \"opacity\",\n \"clipPath\",\n \"filter\",\n \"transform\",\n // TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved\n // or until we implement support for linear() easing.\n // \"background-color\"\n]);\n\nexport { acceleratedValues };\n","import { acceleratedValues } from '../../animation/animators/utils/accelerated-values.mjs';\nimport { camelToDash } from '../../render/dom/utils/camel-to-dash.mjs';\nimport { transformProps } from '../../render/html/utils/transform.mjs';\n\nfunction getWillChangeName(name) {\n if (transformProps.has(name)) {\n return \"transform\";\n }\n else if (acceleratedValues.has(name)) {\n return camelToDash(name);\n }\n}\n\nexport { getWillChangeName };\n","import { useContext } from 'react';\nimport { isAnimationControls } from '../../animation/utils/is-animation-controls.mjs';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { resolveVariantFromProps } from '../../render/utils/resolve-variants.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { resolveMotionValue } from '../../value/utils/resolve-motion-value.mjs';\nimport { MotionContext } from '../../context/MotionContext/index.mjs';\nimport { isControllingVariants, isVariantNode } from '../../render/utils/is-controlling-variants.mjs';\nimport { getWillChangeName } from '../../value/use-will-change/get-will-change-name.mjs';\nimport { addUniqueItem } from '../../utils/array.mjs';\n\nfunction makeState({ applyWillChange = false, scrapeMotionValuesFromProps, createRenderState, onMount, }, props, context, presenceContext, isStatic) {\n const state = {\n latestValues: makeLatestValues(props, context, presenceContext, isStatic ? false : applyWillChange, scrapeMotionValuesFromProps),\n renderState: createRenderState(),\n };\n if (onMount) {\n state.mount = (instance) => onMount(props, instance, state);\n }\n return state;\n}\nconst makeUseVisualState = (config) => (props, isStatic) => {\n const context = useContext(MotionContext);\n const presenceContext = useContext(PresenceContext);\n const make = () => makeState(config, props, context, presenceContext, isStatic);\n return isStatic ? make() : useConstant(make);\n};\nfunction addWillChange(willChange, name) {\n const memberName = getWillChangeName(name);\n if (memberName) {\n addUniqueItem(willChange, memberName);\n }\n}\nfunction forEachDefinition(props, definition, callback) {\n const list = Array.isArray(definition) ? definition : [definition];\n for (let i = 0; i < list.length; i++) {\n const resolved = resolveVariantFromProps(props, list[i]);\n if (resolved) {\n const { transitionEnd, transition, ...target } = resolved;\n callback(target, transitionEnd);\n }\n }\n}\nfunction makeLatestValues(props, context, presenceContext, shouldApplyWillChange, scrapeMotionValues) {\n var _a;\n const values = {};\n const willChange = [];\n const applyWillChange = shouldApplyWillChange && ((_a = props.style) === null || _a === void 0 ? void 0 : _a.willChange) === undefined;\n const motionValues = scrapeMotionValues(props, {});\n for (const key in motionValues) {\n values[key] = resolveMotionValue(motionValues[key]);\n }\n let { initial, animate } = props;\n const isControllingVariants$1 = isControllingVariants(props);\n const isVariantNode$1 = isVariantNode(props);\n if (context &&\n isVariantNode$1 &&\n !isControllingVariants$1 &&\n props.inherit !== false) {\n if (initial === undefined)\n initial = context.initial;\n if (animate === undefined)\n animate = context.animate;\n }\n let isInitialAnimationBlocked = presenceContext\n ? presenceContext.initial === false\n : false;\n isInitialAnimationBlocked = isInitialAnimationBlocked || initial === false;\n const variantToSet = isInitialAnimationBlocked ? animate : initial;\n if (variantToSet &&\n typeof variantToSet !== \"boolean\" &&\n !isAnimationControls(variantToSet)) {\n forEachDefinition(props, variantToSet, (target, transitionEnd) => {\n for (const key in target) {\n let valueTarget = target[key];\n if (Array.isArray(valueTarget)) {\n /**\n * Take final keyframe if the initial animation is blocked because\n * we want to initialise at the end of that blocked animation.\n */\n const index = isInitialAnimationBlocked\n ? valueTarget.length - 1\n : 0;\n valueTarget = valueTarget[index];\n }\n if (valueTarget !== null) {\n values[key] = valueTarget;\n }\n }\n for (const key in transitionEnd) {\n values[key] = transitionEnd[key];\n }\n });\n }\n // Add animating values to will-change\n if (applyWillChange) {\n if (animate && initial !== false && !isAnimationControls(animate)) {\n forEachDefinition(props, animate, (target) => {\n for (const key in target) {\n addWillChange(willChange, key);\n }\n });\n }\n if (willChange.length) {\n values.willChange = willChange.join(\",\");\n }\n }\n return values;\n}\n\nexport { makeUseVisualState };\n","import { renderSVG } from './utils/render.mjs';\nimport { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.mjs';\nimport { makeUseVisualState } from '../../motion/utils/use-visual-state.mjs';\nimport { createSvgRenderState } from './utils/create-render-state.mjs';\nimport { buildSVGAttrs } from './utils/build-attrs.mjs';\nimport { isSVGTag } from './utils/is-svg-tag.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst svgMotionConfig = {\n useVisualState: makeUseVisualState({\n scrapeMotionValuesFromProps: scrapeMotionValuesFromProps,\n createRenderState: createSvgRenderState,\n onMount: (props, instance, { renderState, latestValues }) => {\n frame.read(() => {\n try {\n renderState.dimensions =\n typeof instance.getBBox ===\n \"function\"\n ? instance.getBBox()\n : instance.getBoundingClientRect();\n }\n catch (e) {\n // Most likely trying to measure an unrendered element under Firefox\n renderState.dimensions = {\n x: 0,\n y: 0,\n width: 0,\n height: 0,\n };\n }\n });\n frame.render(() => {\n buildSVGAttrs(renderState, latestValues, isSVGTag(instance.tagName), props.transformTemplate);\n renderSVG(instance, renderState);\n });\n },\n }),\n};\n\nexport { svgMotionConfig };\n","import { makeUseVisualState } from '../../motion/utils/use-visual-state.mjs';\nimport { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.mjs';\nimport { createHtmlRenderState } from './utils/create-render-state.mjs';\n\nconst htmlMotionConfig = {\n useVisualState: makeUseVisualState({\n applyWillChange: true,\n scrapeMotionValuesFromProps,\n createRenderState: createHtmlRenderState,\n }),\n};\n\nexport { htmlMotionConfig };\n","function addDomEvent(target, eventName, handler, options = { passive: true }) {\n target.addEventListener(eventName, handler, options);\n return () => target.removeEventListener(eventName, handler);\n}\n\nexport { addDomEvent };\n","const isPrimaryPointer = (event) => {\n if (event.pointerType === \"mouse\") {\n return typeof event.button !== \"number\" || event.button <= 0;\n }\n else {\n /**\n * isPrimary is true for all mice buttons, whereas every touch point\n * is regarded as its own input. So subsequent concurrent touch points\n * will be false.\n *\n * Specifically match against false here as incomplete versions of\n * PointerEvents in very old browser might have it set as undefined.\n */\n return event.isPrimary !== false;\n }\n};\n\nexport { isPrimaryPointer };\n","import { isPrimaryPointer } from './utils/is-primary-pointer.mjs';\n\nfunction extractEventInfo(event, pointType = \"page\") {\n return {\n point: {\n x: event[`${pointType}X`],\n y: event[`${pointType}Y`],\n },\n };\n}\nconst addPointerInfo = (handler) => {\n return (event) => isPrimaryPointer(event) && handler(event, extractEventInfo(event));\n};\n\nexport { addPointerInfo, extractEventInfo };\n","import { addDomEvent } from './add-dom-event.mjs';\nimport { addPointerInfo } from './event-info.mjs';\n\nfunction addPointerEvent(target, eventName, handler, options) {\n return addDomEvent(target, eventName, addPointerInfo(handler), options);\n}\n\nexport { addPointerEvent };\n","function createLock(name) {\n let lock = null;\n return () => {\n const openLock = () => {\n lock = null;\n };\n if (lock === null) {\n lock = name;\n return openLock;\n }\n return false;\n };\n}\nconst globalHorizontalLock = createLock(\"dragHorizontal\");\nconst globalVerticalLock = createLock(\"dragVertical\");\nfunction getGlobalLock(drag) {\n let lock = false;\n if (drag === \"y\") {\n lock = globalVerticalLock();\n }\n else if (drag === \"x\") {\n lock = globalHorizontalLock();\n }\n else {\n const openHorizontal = globalHorizontalLock();\n const openVertical = globalVerticalLock();\n if (openHorizontal && openVertical) {\n lock = () => {\n openHorizontal();\n openVertical();\n };\n }\n else {\n // Release the locks because we don't use them\n if (openHorizontal)\n openHorizontal();\n if (openVertical)\n openVertical();\n }\n }\n return lock;\n}\nfunction isDragActive() {\n // Check the gesture lock - if we get it, it means no drag gesture is active\n // and we can safely fire the tap gesture.\n const openGestureLock = getGlobalLock(true);\n if (!openGestureLock)\n return true;\n openGestureLock();\n return false;\n}\n\nexport { createLock, getGlobalLock, isDragActive };\n","class Feature {\n constructor(node) {\n this.isMounted = false;\n this.node = node;\n }\n update() { }\n}\n\nexport { Feature };\n","import { addPointerEvent } from '../events/add-pointer-event.mjs';\nimport { pipe } from '../utils/pipe.mjs';\nimport { isDragActive } from './drag/utils/lock.mjs';\nimport { Feature } from '../motion/features/Feature.mjs';\nimport { frame } from '../frameloop/frame.mjs';\n\nfunction addHoverEvent(node, isActive) {\n const eventName = isActive ? \"pointerenter\" : \"pointerleave\";\n const callbackName = isActive ? \"onHoverStart\" : \"onHoverEnd\";\n const handleEvent = (event, info) => {\n if (event.pointerType === \"touch\" || isDragActive())\n return;\n const props = node.getProps();\n if (node.animationState && props.whileHover) {\n node.animationState.setActive(\"whileHover\", isActive);\n }\n const callback = props[callbackName];\n if (callback) {\n frame.postRender(() => callback(event, info));\n }\n };\n return addPointerEvent(node.current, eventName, handleEvent, {\n passive: !node.getProps()[callbackName],\n });\n}\nclass HoverGesture extends Feature {\n mount() {\n this.unmount = pipe(addHoverEvent(this.node, true), addHoverEvent(this.node, false));\n }\n unmount() { }\n}\n\nexport { HoverGesture };\n","/**\n * Recursively traverse up the tree to check whether the provided child node\n * is the parent or a descendant of it.\n *\n * @param parent - Element to find\n * @param child - Element to test against parent\n */\nconst isNodeOrChild = (parent, child) => {\n if (!child) {\n return false;\n }\n else if (parent === child) {\n return true;\n }\n else {\n return isNodeOrChild(parent, child.parentElement);\n }\n};\n\nexport { isNodeOrChild };\n","import { extractEventInfo } from '../events/event-info.mjs';\nimport { addDomEvent } from '../events/add-dom-event.mjs';\nimport { addPointerEvent } from '../events/add-pointer-event.mjs';\nimport { Feature } from '../motion/features/Feature.mjs';\nimport { pipe } from '../utils/pipe.mjs';\nimport { isDragActive } from './drag/utils/lock.mjs';\nimport { isNodeOrChild } from './utils/is-node-or-child.mjs';\nimport { noop } from '../utils/noop.mjs';\nimport { frame } from '../frameloop/frame.mjs';\n\nfunction fireSyntheticPointerEvent(name, handler) {\n if (!handler)\n return;\n const syntheticPointerEvent = new PointerEvent(\"pointer\" + name);\n handler(syntheticPointerEvent, extractEventInfo(syntheticPointerEvent));\n}\nclass PressGesture extends Feature {\n constructor() {\n super(...arguments);\n this.removeStartListeners = noop;\n this.removeEndListeners = noop;\n this.removeAccessibleListeners = noop;\n this.startPointerPress = (startEvent, startInfo) => {\n if (this.isPressing)\n return;\n this.removeEndListeners();\n const props = this.node.getProps();\n const endPointerPress = (endEvent, endInfo) => {\n if (!this.checkPressEnd())\n return;\n const { onTap, onTapCancel, globalTapTarget } = this.node.getProps();\n /**\n * We only count this as a tap gesture if the event.target is the same\n * as, or a child of, this component's element\n */\n const handler = !globalTapTarget &&\n !isNodeOrChild(this.node.current, endEvent.target)\n ? onTapCancel\n : onTap;\n if (handler) {\n frame.update(() => handler(endEvent, endInfo));\n }\n };\n const removePointerUpListener = addPointerEvent(window, \"pointerup\", endPointerPress, {\n passive: !(props.onTap || props[\"onPointerUp\"]),\n });\n const removePointerCancelListener = addPointerEvent(window, \"pointercancel\", (cancelEvent, cancelInfo) => this.cancelPress(cancelEvent, cancelInfo), {\n passive: !(props.onTapCancel ||\n props[\"onPointerCancel\"]),\n });\n this.removeEndListeners = pipe(removePointerUpListener, removePointerCancelListener);\n this.startPress(startEvent, startInfo);\n };\n this.startAccessiblePress = () => {\n const handleKeydown = (keydownEvent) => {\n if (keydownEvent.key !== \"Enter\" || this.isPressing)\n return;\n const handleKeyup = (keyupEvent) => {\n if (keyupEvent.key !== \"Enter\" || !this.checkPressEnd())\n return;\n fireSyntheticPointerEvent(\"up\", (event, info) => {\n const { onTap } = this.node.getProps();\n if (onTap) {\n frame.postRender(() => onTap(event, info));\n }\n });\n };\n this.removeEndListeners();\n this.removeEndListeners = addDomEvent(this.node.current, \"keyup\", handleKeyup);\n fireSyntheticPointerEvent(\"down\", (event, info) => {\n this.startPress(event, info);\n });\n };\n const removeKeydownListener = addDomEvent(this.node.current, \"keydown\", handleKeydown);\n const handleBlur = () => {\n if (!this.isPressing)\n return;\n fireSyntheticPointerEvent(\"cancel\", (cancelEvent, cancelInfo) => this.cancelPress(cancelEvent, cancelInfo));\n };\n const removeBlurListener = addDomEvent(this.node.current, \"blur\", handleBlur);\n this.removeAccessibleListeners = pipe(removeKeydownListener, removeBlurListener);\n };\n }\n startPress(event, info) {\n this.isPressing = true;\n const { onTapStart, whileTap } = this.node.getProps();\n /**\n * Ensure we trigger animations before firing event callback\n */\n if (whileTap && this.node.animationState) {\n this.node.animationState.setActive(\"whileTap\", true);\n }\n if (onTapStart) {\n frame.postRender(() => onTapStart(event, info));\n }\n }\n checkPressEnd() {\n this.removeEndListeners();\n this.isPressing = false;\n const props = this.node.getProps();\n if (props.whileTap && this.node.animationState) {\n this.node.animationState.setActive(\"whileTap\", false);\n }\n return !isDragActive();\n }\n cancelPress(event, info) {\n if (!this.checkPressEnd())\n return;\n const { onTapCancel } = this.node.getProps();\n if (onTapCancel) {\n frame.postRender(() => onTapCancel(event, info));\n }\n }\n mount() {\n const props = this.node.getProps();\n const removePointerListener = addPointerEvent(props.globalTapTarget ? window : this.node.current, \"pointerdown\", this.startPointerPress, {\n passive: !(props.onTapStart ||\n props[\"onPointerStart\"]),\n });\n const removeFocusListener = addDomEvent(this.node.current, \"focus\", this.startAccessiblePress);\n this.removeStartListeners = pipe(removePointerListener, removeFocusListener);\n }\n unmount() {\n this.removeStartListeners();\n this.removeEndListeners();\n this.removeAccessibleListeners();\n }\n}\n\nexport { PressGesture };\n","/**\n * Map an IntersectionHandler callback to an element. We only ever make one handler for one\n * element, so even though these handlers might all be triggered by different\n * observers, we can keep them in the same map.\n */\nconst observerCallbacks = new WeakMap();\n/**\n * Multiple observers can be created for multiple element/document roots. Each with\n * different settings. So here we store dictionaries of observers to each root,\n * using serialised settings (threshold/margin) as lookup keys.\n */\nconst observers = new WeakMap();\nconst fireObserverCallback = (entry) => {\n const callback = observerCallbacks.get(entry.target);\n callback && callback(entry);\n};\nconst fireAllObserverCallbacks = (entries) => {\n entries.forEach(fireObserverCallback);\n};\nfunction initIntersectionObserver({ root, ...options }) {\n const lookupRoot = root || document;\n /**\n * If we don't have an observer lookup map for this root, create one.\n */\n if (!observers.has(lookupRoot)) {\n observers.set(lookupRoot, {});\n }\n const rootObservers = observers.get(lookupRoot);\n const key = JSON.stringify(options);\n /**\n * If we don't have an observer for this combination of root and settings,\n * create one.\n */\n if (!rootObservers[key]) {\n rootObservers[key] = new IntersectionObserver(fireAllObserverCallbacks, { root, ...options });\n }\n return rootObservers[key];\n}\nfunction observeIntersection(element, options, callback) {\n const rootInteresectionObserver = initIntersectionObserver(options);\n observerCallbacks.set(element, callback);\n rootInteresectionObserver.observe(element);\n return () => {\n observerCallbacks.delete(element);\n rootInteresectionObserver.unobserve(element);\n };\n}\n\nexport { observeIntersection };\n","import { Feature } from '../Feature.mjs';\nimport { observeIntersection } from './observers.mjs';\n\nconst thresholdNames = {\n some: 0,\n all: 1,\n};\nclass InViewFeature extends Feature {\n constructor() {\n super(...arguments);\n this.hasEnteredView = false;\n this.isInView = false;\n }\n startObserver() {\n this.unmount();\n const { viewport = {} } = this.node.getProps();\n const { root, margin: rootMargin, amount = \"some\", once } = viewport;\n const options = {\n root: root ? root.current : undefined,\n rootMargin,\n threshold: typeof amount === \"number\" ? amount : thresholdNames[amount],\n };\n const onIntersectionUpdate = (entry) => {\n const { isIntersecting } = entry;\n /**\n * If there's been no change in the viewport state, early return.\n */\n if (this.isInView === isIntersecting)\n return;\n this.isInView = isIntersecting;\n /**\n * Handle hasEnteredView. If this is only meant to run once, and\n * element isn't visible, early return. Otherwise set hasEnteredView to true.\n */\n if (once && !isIntersecting && this.hasEnteredView) {\n return;\n }\n else if (isIntersecting) {\n this.hasEnteredView = true;\n }\n if (this.node.animationState) {\n this.node.animationState.setActive(\"whileInView\", isIntersecting);\n }\n /**\n * Use the latest committed props rather than the ones in scope\n * when this observer is created\n */\n const { onViewportEnter, onViewportLeave } = this.node.getProps();\n const callback = isIntersecting ? onViewportEnter : onViewportLeave;\n callback && callback(entry);\n };\n return observeIntersection(this.node.current, options, onIntersectionUpdate);\n }\n mount() {\n this.startObserver();\n }\n update() {\n if (typeof IntersectionObserver === \"undefined\")\n return;\n const { props, prevProps } = this.node;\n const hasOptionsChanged = [\"amount\", \"margin\", \"root\"].some(hasViewportOptionChanged(props, prevProps));\n if (hasOptionsChanged) {\n this.startObserver();\n }\n }\n unmount() { }\n}\nfunction hasViewportOptionChanged({ viewport = {} }, { viewport: prevViewport = {} } = {}) {\n return (name) => viewport[name] !== prevViewport[name];\n}\n\nexport { InViewFeature };\n","import { HoverGesture } from '../../gestures/hover.mjs';\nimport { FocusGesture } from '../../gestures/focus.mjs';\nimport { PressGesture } from '../../gestures/press.mjs';\nimport { InViewFeature } from './viewport/index.mjs';\n\nconst gestureAnimations = {\n inView: {\n Feature: InViewFeature,\n },\n tap: {\n Feature: PressGesture,\n },\n focus: {\n Feature: FocusGesture,\n },\n hover: {\n Feature: HoverGesture,\n },\n};\n\nexport { gestureAnimations };\n","import { addDomEvent } from '../events/add-dom-event.mjs';\nimport { Feature } from '../motion/features/Feature.mjs';\nimport { pipe } from '../utils/pipe.mjs';\n\nclass FocusGesture extends Feature {\n constructor() {\n super(...arguments);\n this.isActive = false;\n }\n onFocus() {\n let isFocusVisible = false;\n /**\n * If this element doesn't match focus-visible then don't\n * apply whileHover. But, if matches throws that focus-visible\n * is not a valid selector then in that browser outline styles will be applied\n * to the element by default and we want to match that behaviour with whileFocus.\n */\n try {\n isFocusVisible = this.node.current.matches(\":focus-visible\");\n }\n catch (e) {\n isFocusVisible = true;\n }\n if (!isFocusVisible || !this.node.animationState)\n return;\n this.node.animationState.setActive(\"whileFocus\", true);\n this.isActive = true;\n }\n onBlur() {\n if (!this.isActive || !this.node.animationState)\n return;\n this.node.animationState.setActive(\"whileFocus\", false);\n this.isActive = false;\n }\n mount() {\n this.unmount = pipe(addDomEvent(this.node.current, \"focus\", () => this.onFocus()), addDomEvent(this.node.current, \"blur\", () => this.onBlur()));\n }\n unmount() { }\n}\n\nexport { FocusGesture };\n","function shallowCompare(next, prev) {\n if (!Array.isArray(prev))\n return false;\n const prevLength = prev.length;\n if (prevLength !== next.length)\n return false;\n for (let i = 0; i < prevLength; i++) {\n if (prev[i] !== next[i])\n return false;\n }\n return true;\n}\n\nexport { shallowCompare };\n","import { resolveVariantFromProps } from './resolve-variants.mjs';\n\nfunction resolveVariant(visualElement, definition, custom) {\n const props = visualElement.getProps();\n return resolveVariantFromProps(props, definition, custom !== undefined ? custom : props.custom, visualElement);\n}\n\nexport { resolveVariant };\n","/**\n * Converts seconds to milliseconds\n *\n * @param seconds - Time in seconds.\n * @return milliseconds - Converted time in milliseconds.\n */\nconst secondsToMilliseconds = (seconds) => seconds * 1000;\nconst millisecondsToSeconds = (milliseconds) => milliseconds / 1000;\n\nexport { millisecondsToSeconds, secondsToMilliseconds };\n","import { transformProps } from '../../render/html/utils/transform.mjs';\n\nconst underDampedSpring = {\n type: \"spring\",\n stiffness: 500,\n damping: 25,\n restSpeed: 10,\n};\nconst criticallyDampedSpring = (target) => ({\n type: \"spring\",\n stiffness: 550,\n damping: target === 0 ? 2 * Math.sqrt(550) : 30,\n restSpeed: 10,\n});\nconst keyframesTransition = {\n type: \"keyframes\",\n duration: 0.8,\n};\n/**\n * Default easing curve is a slightly shallower version of\n * the default browser easing curve.\n */\nconst ease = {\n type: \"keyframes\",\n ease: [0.25, 0.1, 0.35, 1],\n duration: 0.3,\n};\nconst getDefaultTransition = (valueKey, { keyframes }) => {\n if (keyframes.length > 2) {\n return keyframesTransition;\n }\n else if (transformProps.has(valueKey)) {\n return valueKey.startsWith(\"scale\")\n ? criticallyDampedSpring(keyframes[1])\n : underDampedSpring;\n }\n return ease;\n};\n\nexport { getDefaultTransition };\n","/**\n * Decide whether a transition is defined on a given Transition.\n * This filters out orchestration options and returns true\n * if any options are left.\n */\nfunction isTransitionDefined({ when, delay: _delay, delayChildren, staggerChildren, staggerDirection, repeat, repeatType, repeatDelay, from, elapsed, ...transition }) {\n return !!Object.keys(transition).length;\n}\nfunction getValueTransition(transition, key) {\n return (transition[key] ||\n transition[\"default\"] ||\n transition);\n}\n\nexport { getValueTransition, isTransitionDefined };\n","const instantAnimationState = {\n current: false,\n};\n\nexport { instantAnimationState };\n","const isNotNull = (value) => value !== null;\nfunction getFinalKeyframe(keyframes, { repeat, repeatType = \"loop\" }, finalKeyframe) {\n const resolvedKeyframes = keyframes.filter(isNotNull);\n const index = repeat && repeatType !== \"loop\" && repeat % 2 === 1\n ? 0\n : resolvedKeyframes.length - 1;\n return !index || finalKeyframe === undefined\n ? resolvedKeyframes[index]\n : finalKeyframe;\n}\n\nexport { getFinalKeyframe };\n","/**\n * Check if the value is a zero value string like \"0px\" or \"0%\"\n */\nconst isZeroValueString = (v) => /^0[^.\\s]+$/u.test(v);\n\nexport { isZeroValueString };\n","/**\n * Check if value is a numerical string, ie a string that is purely a number eg \"100\" or \"-100.1\"\n */\nconst isNumericalString = (v) => /^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)$/u.test(v);\n\nexport { isNumericalString };\n","import { invariant } from '../../../utils/errors.mjs';\nimport { isNumericalString } from '../../../utils/is-numerical-string.mjs';\nimport { isCSSVariableToken } from './is-css-variable.mjs';\n\n/**\n * Parse Framer's special CSS variable format into a CSS token and a fallback.\n *\n * ```\n * `var(--foo, #fff)` => [`--foo`, '#fff']\n * ```\n *\n * @param current\n */\nconst splitCSSVariableRegex = \n// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words\n/^var\\(--(?:([\\w-]+)|([\\w-]+), ?([a-zA-Z\\d ()%#.,-]+))\\)/u;\nfunction parseCSSVariable(current) {\n const match = splitCSSVariableRegex.exec(current);\n if (!match)\n return [,];\n const [, token1, token2, fallback] = match;\n return [`--${token1 !== null && token1 !== void 0 ? token1 : token2}`, fallback];\n}\nconst maxDepth = 4;\nfunction getVariableValue(current, element, depth = 1) {\n invariant(depth <= maxDepth, `Max CSS variable fallback depth detected in property \"${current}\". This may indicate a circular fallback dependency.`);\n const [token, fallback] = parseCSSVariable(current);\n // No CSS variable detected\n if (!token)\n return;\n // Attempt to read this CSS variable off the element\n const resolved = window.getComputedStyle(element).getPropertyValue(token);\n if (resolved) {\n const trimmed = resolved.trim();\n return isNumericalString(trimmed) ? parseFloat(trimmed) : trimmed;\n }\n return isCSSVariableToken(fallback)\n ? getVariableValue(fallback, element, depth + 1)\n : fallback;\n}\n\nexport { getVariableValue, parseCSSVariable };\n","import { transformPropOrder } from '../../html/utils/transform.mjs';\nimport { number } from '../../../value/types/numbers/index.mjs';\nimport { px } from '../../../value/types/numbers/units.mjs';\n\nconst positionalKeys = new Set([\n \"width\",\n \"height\",\n \"top\",\n \"left\",\n \"right\",\n \"bottom\",\n \"x\",\n \"y\",\n \"translateX\",\n \"translateY\",\n]);\nconst isNumOrPxType = (v) => v === number || v === px;\nconst getPosFromMatrix = (matrix, pos) => parseFloat(matrix.split(\", \")[pos]);\nconst getTranslateFromMatrix = (pos2, pos3) => (_bbox, { transform }) => {\n if (transform === \"none\" || !transform)\n return 0;\n const matrix3d = transform.match(/^matrix3d\\((.+)\\)$/u);\n if (matrix3d) {\n return getPosFromMatrix(matrix3d[1], pos3);\n }\n else {\n const matrix = transform.match(/^matrix\\((.+)\\)$/u);\n if (matrix) {\n return getPosFromMatrix(matrix[1], pos2);\n }\n else {\n return 0;\n }\n }\n};\nconst transformKeys = new Set([\"x\", \"y\", \"z\"]);\nconst nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));\nfunction removeNonTranslationalTransform(visualElement) {\n const removedTransforms = [];\n nonTranslationalTransformKeys.forEach((key) => {\n const value = visualElement.getValue(key);\n if (value !== undefined) {\n removedTransforms.push([key, value.get()]);\n value.set(key.startsWith(\"scale\") ? 1 : 0);\n }\n });\n return removedTransforms;\n}\nconst positionalValues = {\n // Dimensions\n width: ({ x }, { paddingLeft = \"0\", paddingRight = \"0\" }) => x.max - x.min - parseFloat(paddingLeft) - parseFloat(paddingRight),\n height: ({ y }, { paddingTop = \"0\", paddingBottom = \"0\" }) => y.max - y.min - parseFloat(paddingTop) - parseFloat(paddingBottom),\n top: (_bbox, { top }) => parseFloat(top),\n left: (_bbox, { left }) => parseFloat(left),\n bottom: ({ y }, { top }) => parseFloat(top) + (y.max - y.min),\n right: ({ x }, { left }) => parseFloat(left) + (x.max - x.min),\n // Transform\n x: getTranslateFromMatrix(4, 13),\n y: getTranslateFromMatrix(5, 14),\n};\n// Alias translate longform names\npositionalValues.translateX = positionalValues.x;\npositionalValues.translateY = positionalValues.y;\n\nexport { isNumOrPxType, positionalKeys, positionalValues, removeNonTranslationalTransform };\n","/**\n * Tests a provided value against a ValueType\n */\nconst testValueType = (v) => (type) => type.test(v);\n\nexport { testValueType };\n","import { number } from '../../../value/types/numbers/index.mjs';\nimport { px, percent, degrees, vw, vh } from '../../../value/types/numbers/units.mjs';\nimport { testValueType } from './test.mjs';\nimport { auto } from './type-auto.mjs';\n\n/**\n * A list of value types commonly used for dimensions\n */\nconst dimensionValueTypes = [number, px, percent, degrees, vw, vh, auto];\n/**\n * Tests a dimensional value against the list of dimension ValueTypes\n */\nconst findDimensionValueType = (v) => dimensionValueTypes.find(testValueType(v));\n\nexport { dimensionValueTypes, findDimensionValueType };\n","/**\n * ValueType for \"auto\"\n */\nconst auto = {\n test: (v) => v === \"auto\",\n parse: (v) => v,\n};\n\nexport { auto };\n","import { removeNonTranslationalTransform } from '../dom/utils/unit-conversion.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst toResolve = new Set();\nlet isScheduled = false;\nlet anyNeedsMeasurement = false;\nfunction measureAllKeyframes() {\n if (anyNeedsMeasurement) {\n const resolversToMeasure = Array.from(toResolve).filter((resolver) => resolver.needsMeasurement);\n const elementsToMeasure = new Set(resolversToMeasure.map((resolver) => resolver.element));\n const transformsToRestore = new Map();\n /**\n * Write pass\n * If we're measuring elements we want to remove bounding box-changing transforms.\n */\n elementsToMeasure.forEach((element) => {\n const removedTransforms = removeNonTranslationalTransform(element);\n if (!removedTransforms.length)\n return;\n transformsToRestore.set(element, removedTransforms);\n element.render();\n });\n // Read\n resolversToMeasure.forEach((resolver) => resolver.measureInitialState());\n // Write\n elementsToMeasure.forEach((element) => {\n element.render();\n const restore = transformsToRestore.get(element);\n if (restore) {\n restore.forEach(([key, value]) => {\n var _a;\n (_a = element.getValue(key)) === null || _a === void 0 ? void 0 : _a.set(value);\n });\n }\n });\n // Read\n resolversToMeasure.forEach((resolver) => resolver.measureEndState());\n // Write\n resolversToMeasure.forEach((resolver) => {\n if (resolver.suspendedScrollY !== undefined) {\n window.scrollTo(0, resolver.suspendedScrollY);\n }\n });\n }\n anyNeedsMeasurement = false;\n isScheduled = false;\n toResolve.forEach((resolver) => resolver.complete());\n toResolve.clear();\n}\nfunction readAllKeyframes() {\n toResolve.forEach((resolver) => {\n resolver.readKeyframes();\n if (resolver.needsMeasurement) {\n anyNeedsMeasurement = true;\n }\n });\n}\nfunction flushKeyframeResolvers() {\n readAllKeyframes();\n measureAllKeyframes();\n}\nclass KeyframeResolver {\n constructor(unresolvedKeyframes, onComplete, name, motionValue, element, isAsync = false) {\n /**\n * Track whether this resolver has completed. Once complete, it never\n * needs to attempt keyframe resolution again.\n */\n this.isComplete = false;\n /**\n * Track whether this resolver is async. If it is, it'll be added to the\n * resolver queue and flushed in the next frame. Resolvers that aren't going\n * to trigger read/write thrashing don't need to be async.\n */\n this.isAsync = false;\n /**\n * Track whether this resolver needs to perform a measurement\n * to resolve its keyframes.\n */\n this.needsMeasurement = false;\n /**\n * Track whether this resolver is currently scheduled to resolve\n * to allow it to be cancelled and resumed externally.\n */\n this.isScheduled = false;\n this.unresolvedKeyframes = [...unresolvedKeyframes];\n this.onComplete = onComplete;\n this.name = name;\n this.motionValue = motionValue;\n this.element = element;\n this.isAsync = isAsync;\n }\n scheduleResolve() {\n this.isScheduled = true;\n if (this.isAsync) {\n toResolve.add(this);\n if (!isScheduled) {\n isScheduled = true;\n frame.read(readAllKeyframes);\n frame.resolveKeyframes(measureAllKeyframes);\n }\n }\n else {\n this.readKeyframes();\n this.complete();\n }\n }\n readKeyframes() {\n const { unresolvedKeyframes, name, element, motionValue } = this;\n /**\n * If a keyframe is null, we hydrate it either by reading it from\n * the instance, or propagating from previous keyframes.\n */\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n if (unresolvedKeyframes[i] === null) {\n /**\n * If the first keyframe is null, we need to find its value by sampling the element\n */\n if (i === 0) {\n const currentValue = motionValue === null || motionValue === void 0 ? void 0 : motionValue.get();\n const finalKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n if (currentValue !== undefined) {\n unresolvedKeyframes[0] = currentValue;\n }\n else if (element && name) {\n const valueAsRead = element.readValue(name, finalKeyframe);\n if (valueAsRead !== undefined && valueAsRead !== null) {\n unresolvedKeyframes[0] = valueAsRead;\n }\n }\n if (unresolvedKeyframes[0] === undefined) {\n unresolvedKeyframes[0] = finalKeyframe;\n }\n if (motionValue && currentValue === undefined) {\n motionValue.set(unresolvedKeyframes[0]);\n }\n }\n else {\n unresolvedKeyframes[i] = unresolvedKeyframes[i - 1];\n }\n }\n }\n }\n setFinalKeyframe() { }\n measureInitialState() { }\n renderEndStyles() { }\n measureEndState() { }\n complete() {\n this.isComplete = true;\n this.onComplete(this.unresolvedKeyframes, this.finalKeyframe);\n toResolve.delete(this);\n }\n cancel() {\n if (!this.isComplete) {\n this.isScheduled = false;\n toResolve.delete(this);\n }\n }\n resume() {\n if (!this.isComplete)\n this.scheduleResolve();\n }\n}\n\nexport { KeyframeResolver, flushKeyframeResolvers };\n","import { complex } from './index.mjs';\nimport { floatRegex } from '../utils.mjs';\n\n/**\n * Properties that should default to 1 or 100%\n */\nconst maxDefaults = new Set([\"brightness\", \"contrast\", \"saturate\", \"opacity\"]);\nfunction applyDefaultFilter(v) {\n const [name, value] = v.slice(0, -1).split(\"(\");\n if (name === \"drop-shadow\")\n return v;\n const [number] = value.match(floatRegex) || [];\n if (!number)\n return v;\n const unit = value.replace(number, \"\");\n let defaultValue = maxDefaults.has(name) ? 1 : 0;\n if (number !== value)\n defaultValue *= 100;\n return name + \"(\" + defaultValue + unit + \")\";\n}\nconst functionRegex = /\\b([a-z-]*)\\(.*?\\)/gu;\nconst filter = {\n ...complex,\n getAnimatableNone: (v) => {\n const functions = v.match(functionRegex);\n return functions ? functions.map(applyDefaultFilter).join(\" \") : v;\n },\n};\n\nexport { filter };\n","import { color } from '../../../value/types/color/index.mjs';\nimport { filter } from '../../../value/types/complex/filter.mjs';\nimport { numberValueTypes } from './number.mjs';\n\n/**\n * A map of default value types for common values\n */\nconst defaultValueTypes = {\n ...numberValueTypes,\n // Color props\n color,\n backgroundColor: color,\n outlineColor: color,\n fill: color,\n stroke: color,\n // Border props\n borderColor: color,\n borderTopColor: color,\n borderRightColor: color,\n borderBottomColor: color,\n borderLeftColor: color,\n filter,\n WebkitFilter: filter,\n};\n/**\n * Gets the default ValueType for the provided value key\n */\nconst getDefaultValueType = (key) => defaultValueTypes[key];\n\nexport { defaultValueTypes, getDefaultValueType };\n","import { complex } from '../../../value/types/complex/index.mjs';\nimport { filter } from '../../../value/types/complex/filter.mjs';\nimport { getDefaultValueType } from './defaults.mjs';\n\nfunction getAnimatableNone(key, value) {\n let defaultValueType = getDefaultValueType(key);\n if (defaultValueType !== filter)\n defaultValueType = complex;\n // If value is not recognised as animatable, ie \"none\", create an animatable version origin based on the target\n return defaultValueType.getAnimatableNone\n ? defaultValueType.getAnimatableNone(value)\n : undefined;\n}\n\nexport { getAnimatableNone };\n","import { analyseComplexValue } from '../../../value/types/complex/index.mjs';\nimport { getAnimatableNone } from '../../dom/value-types/animatable-none.mjs';\n\n/**\n * If we encounter keyframes like \"none\" or \"0\" and we also have keyframes like\n * \"#fff\" or \"200px 200px\" we want to find a keyframe to serve as a template for\n * the \"none\" keyframes. In this case \"#fff\" or \"200px 200px\" - then these get turned into\n * zero equivalents, i.e. \"#fff0\" or \"0px 0px\".\n */\nconst invalidTemplates = new Set([\"auto\", \"none\", \"0\"]);\nfunction makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name) {\n let i = 0;\n let animatableTemplate = undefined;\n while (i < unresolvedKeyframes.length && !animatableTemplate) {\n const keyframe = unresolvedKeyframes[i];\n if (typeof keyframe === \"string\" &&\n !invalidTemplates.has(keyframe) &&\n analyseComplexValue(keyframe).values.length) {\n animatableTemplate = unresolvedKeyframes[i];\n }\n i++;\n }\n if (animatableTemplate && name) {\n for (const noneIndex of noneKeyframeIndexes) {\n unresolvedKeyframes[noneIndex] = getAnimatableNone(name, animatableTemplate);\n }\n }\n}\n\nexport { makeNoneKeyframesAnimatable };\n","import { isNone } from '../../animation/utils/is-none.mjs';\nimport { getVariableValue } from './utils/css-variables-conversion.mjs';\nimport { isCSSVariableToken } from './utils/is-css-variable.mjs';\nimport { positionalKeys, isNumOrPxType, positionalValues } from './utils/unit-conversion.mjs';\nimport { findDimensionValueType } from './value-types/dimensions.mjs';\nimport { KeyframeResolver } from '../utils/KeyframesResolver.mjs';\nimport { makeNoneKeyframesAnimatable } from '../html/utils/make-none-animatable.mjs';\n\nclass DOMKeyframesResolver extends KeyframeResolver {\n constructor(unresolvedKeyframes, onComplete, name, motionValue, element) {\n super(unresolvedKeyframes, onComplete, name, motionValue, element, true);\n }\n readKeyframes() {\n const { unresolvedKeyframes, element, name } = this;\n if (!element || !element.current)\n return;\n super.readKeyframes();\n /**\n * If any keyframe is a CSS variable, we need to find its value by sampling the element\n */\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n let keyframe = unresolvedKeyframes[i];\n if (typeof keyframe === \"string\") {\n keyframe = keyframe.trim();\n if (isCSSVariableToken(keyframe)) {\n const resolved = getVariableValue(keyframe, element.current);\n if (resolved !== undefined) {\n unresolvedKeyframes[i] = resolved;\n }\n if (i === unresolvedKeyframes.length - 1) {\n this.finalKeyframe = keyframe;\n }\n }\n }\n }\n /**\n * Resolve \"none\" values. We do this potentially twice - once before and once after measuring keyframes.\n * This could be seen as inefficient but it's a trade-off to avoid measurements in more situations, which\n * have a far bigger performance impact.\n */\n this.resolveNoneKeyframes();\n /**\n * Check to see if unit type has changed. If so schedule jobs that will\n * temporarily set styles to the destination keyframes.\n * Skip if we have more than two keyframes or this isn't a positional value.\n * TODO: We can throw if there are multiple keyframes and the value type changes.\n */\n if (!positionalKeys.has(name) || unresolvedKeyframes.length !== 2) {\n return;\n }\n const [origin, target] = unresolvedKeyframes;\n const originType = findDimensionValueType(origin);\n const targetType = findDimensionValueType(target);\n /**\n * Either we don't recognise these value types or we can animate between them.\n */\n if (originType === targetType)\n return;\n /**\n * If both values are numbers or pixels, we can animate between them by\n * converting them to numbers.\n */\n if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n const value = unresolvedKeyframes[i];\n if (typeof value === \"string\") {\n unresolvedKeyframes[i] = parseFloat(value);\n }\n }\n }\n else {\n /**\n * Else, the only way to resolve this is by measuring the element.\n */\n this.needsMeasurement = true;\n }\n }\n resolveNoneKeyframes() {\n const { unresolvedKeyframes, name } = this;\n const noneKeyframeIndexes = [];\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n if (isNone(unresolvedKeyframes[i])) {\n noneKeyframeIndexes.push(i);\n }\n }\n if (noneKeyframeIndexes.length) {\n makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name);\n }\n }\n measureInitialState() {\n const { element, unresolvedKeyframes, name } = this;\n if (!element || !element.current)\n return;\n if (name === \"height\") {\n this.suspendedScrollY = window.pageYOffset;\n }\n this.measuredOrigin = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n unresolvedKeyframes[0] = this.measuredOrigin;\n // Set final key frame to measure after next render\n const measureKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n if (measureKeyframe !== undefined) {\n element.getValue(name, measureKeyframe).jump(measureKeyframe, false);\n }\n }\n measureEndState() {\n var _a;\n const { element, name, unresolvedKeyframes } = this;\n if (!element || !element.current)\n return;\n const value = element.getValue(name);\n value && value.jump(this.measuredOrigin, false);\n const finalKeyframeIndex = unresolvedKeyframes.length - 1;\n const finalKeyframe = unresolvedKeyframes[finalKeyframeIndex];\n unresolvedKeyframes[finalKeyframeIndex] = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n if (finalKeyframe !== null && this.finalKeyframe === undefined) {\n this.finalKeyframe = finalKeyframe;\n }\n // If we removed transform values, reapply them before the next render\n if ((_a = this.removedTransforms) === null || _a === void 0 ? void 0 : _a.length) {\n this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {\n element\n .getValue(unsetTransformName)\n .set(unsetTransformValue);\n });\n }\n this.resolveNoneKeyframes();\n }\n}\n\nexport { DOMKeyframesResolver };\n","import { isZeroValueString } from '../../utils/is-zero-value-string.mjs';\n\nfunction isNone(value) {\n if (typeof value === \"number\") {\n return value === 0;\n }\n else if (value !== null) {\n return value === \"none\" || value === \"0\" || isZeroValueString(value);\n }\n else {\n return true;\n }\n}\n\nexport { isNone };\n","function memo(callback) {\n let result;\n return () => {\n if (result === undefined)\n result = callback();\n return result;\n };\n}\n\nexport { memo };\n","import { complex } from '../../value/types/complex/index.mjs';\n\n/**\n * Check if a value is animatable. Examples:\n *\n * ✅: 100, \"100px\", \"#fff\"\n * ❌: \"block\", \"url(2.jpg)\"\n * @param value\n *\n * @internal\n */\nconst isAnimatable = (value, name) => {\n // If the list of keys tat might be non-animatable grows, replace with Set\n if (name === \"zIndex\")\n return false;\n // If it's a number or a keyframes array, we can animate it. We might at some point\n // need to do a deep isAnimatable check of keyframes, or let Popmotion handle this,\n // but for now lets leave it like this for performance reasons\n if (typeof value === \"number\" || Array.isArray(value))\n return true;\n if (typeof value === \"string\" && // It's animatable if we have a string\n (complex.test(value) || value === \"0\") && // And it contains numbers and/or colors\n !value.startsWith(\"url(\") // Unless it starts with \"url(\"\n ) {\n return true;\n }\n return false;\n};\n\nexport { isAnimatable };\n","import { time } from '../../frameloop/sync-time.mjs';\nimport { flushKeyframeResolvers } from '../../render/utils/KeyframesResolver.mjs';\nimport { instantAnimationState } from '../../utils/use-instant-transition-state.mjs';\nimport { canAnimate } from './utils/can-animate.mjs';\nimport { getFinalKeyframe } from './waapi/utils/get-final-keyframe.mjs';\n\n/**\n * Maximum time allowed between an animation being created and it being\n * resolved for us to use the latter as the start time.\n *\n * This is to ensure that while we prefer to \"start\" an animation as soon\n * as it's triggered, we also want to avoid a visual jump if there's a big delay\n * between these two moments.\n */\nconst MAX_RESOLVE_DELAY = 40;\nclass BaseAnimation {\n constructor({ autoplay = true, delay = 0, type = \"keyframes\", repeat = 0, repeatDelay = 0, repeatType = \"loop\", ...options }) {\n // Track whether the animation has been stopped. Stopped animations won't restart.\n this.isStopped = false;\n this.hasAttemptedResolve = false;\n this.createdAt = time.now();\n this.options = {\n autoplay,\n delay,\n type,\n repeat,\n repeatDelay,\n repeatType,\n ...options,\n };\n this.updateFinishedPromise();\n }\n /**\n * This method uses the createdAt and resolvedAt to calculate the\n * animation startTime. *Ideally*, we would use the createdAt time as t=0\n * as the following frame would then be the first frame of the animation in\n * progress, which would feel snappier.\n *\n * However, if there's a delay (main thread work) between the creation of\n * the animation and the first commited frame, we prefer to use resolvedAt\n * to avoid a sudden jump into the animation.\n */\n calcStartTime() {\n if (!this.resolvedAt)\n return this.createdAt;\n return this.resolvedAt - this.createdAt > MAX_RESOLVE_DELAY\n ? this.resolvedAt\n : this.createdAt;\n }\n /**\n * A getter for resolved data. If keyframes are not yet resolved, accessing\n * this.resolved will synchronously flush all pending keyframe resolvers.\n * This is a deoptimisation, but at its worst still batches read/writes.\n */\n get resolved() {\n if (!this._resolved && !this.hasAttemptedResolve) {\n flushKeyframeResolvers();\n }\n return this._resolved;\n }\n /**\n * A method to be called when the keyframes resolver completes. This method\n * will check if its possible to run the animation and, if not, skip it.\n * Otherwise, it will call initPlayback on the implementing class.\n */\n onKeyframesResolved(keyframes, finalKeyframe) {\n this.resolvedAt = time.now();\n this.hasAttemptedResolve = true;\n const { name, type, velocity, delay, onComplete, onUpdate, isGenerator, } = this.options;\n /**\n * If we can't animate this value with the resolved keyframes\n * then we should complete it immediately.\n */\n if (!isGenerator && !canAnimate(keyframes, name, type, velocity)) {\n // Finish immediately\n if (instantAnimationState.current || !delay) {\n onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate(getFinalKeyframe(keyframes, this.options, finalKeyframe));\n onComplete === null || onComplete === void 0 ? void 0 : onComplete();\n this.resolveFinishedPromise();\n return;\n }\n // Finish after a delay\n else {\n this.options.duration = 0;\n }\n }\n const resolvedAnimation = this.initPlayback(keyframes, finalKeyframe);\n if (resolvedAnimation === false)\n return;\n this._resolved = {\n keyframes,\n finalKeyframe,\n ...resolvedAnimation,\n };\n this.onPostResolved();\n }\n onPostResolved() { }\n /**\n * Allows the returned animation to be awaited or promise-chained. Currently\n * resolves when the animation finishes at all but in a future update could/should\n * reject if its cancels.\n */\n then(resolve, reject) {\n return this.currentFinishedPromise.then(resolve, reject);\n }\n updateFinishedPromise() {\n this.currentFinishedPromise = new Promise((resolve) => {\n this.resolveFinishedPromise = resolve;\n });\n }\n}\n\nexport { BaseAnimation };\n","import { warning } from '../../../utils/errors.mjs';\nimport { isAnimatable } from '../../utils/is-animatable.mjs';\n\nfunction hasKeyframesChanged(keyframes) {\n const current = keyframes[0];\n if (keyframes.length === 1)\n return true;\n for (let i = 0; i < keyframes.length; i++) {\n if (keyframes[i] !== current)\n return true;\n }\n}\nfunction canAnimate(keyframes, name, type, velocity) {\n /**\n * Check if we're able to animate between the start and end keyframes,\n * and throw a warning if we're attempting to animate between one that's\n * animatable and another that isn't.\n */\n const originKeyframe = keyframes[0];\n if (originKeyframe === null)\n return false;\n /**\n * These aren't traditionally animatable but we do support them.\n * In future we could look into making this more generic or replacing\n * this function with mix() === mixImmediate\n */\n if (name === \"display\" || name === \"visibility\")\n return true;\n const targetKeyframe = keyframes[keyframes.length - 1];\n const isOriginAnimatable = isAnimatable(originKeyframe, name);\n const isTargetAnimatable = isAnimatable(targetKeyframe, name);\n warning(isOriginAnimatable === isTargetAnimatable, `You are trying to animate ${name} from \"${originKeyframe}\" to \"${targetKeyframe}\". ${originKeyframe} is not an animatable value - to enable this animation set ${originKeyframe} to a value animatable to ${targetKeyframe} via the \\`style\\` property.`);\n // Always skip if any of these are true\n if (!isOriginAnimatable || !isTargetAnimatable) {\n return false;\n }\n return hasKeyframesChanged(keyframes) || (type === \"spring\" && velocity);\n}\n\nexport { canAnimate };\n","import { velocityPerSecond } from '../../../utils/velocity-per-second.mjs';\n\nconst velocitySampleDuration = 5; // ms\nfunction calcGeneratorVelocity(resolveValue, t, current) {\n const prevT = Math.max(t - velocitySampleDuration, 0);\n return velocityPerSecond(current - resolveValue(prevT), t - prevT);\n}\n\nexport { calcGeneratorVelocity };\n","import { warning } from '../../../utils/errors.mjs';\nimport { clamp } from '../../../utils/clamp.mjs';\nimport { secondsToMilliseconds, millisecondsToSeconds } from '../../../utils/time-conversion.mjs';\n\nconst safeMin = 0.001;\nconst minDuration = 0.01;\nconst maxDuration = 10.0;\nconst minDamping = 0.05;\nconst maxDamping = 1;\nfunction findSpring({ duration = 800, bounce = 0.25, velocity = 0, mass = 1, }) {\n let envelope;\n let derivative;\n warning(duration <= secondsToMilliseconds(maxDuration), \"Spring duration must be 10 seconds or less\");\n let dampingRatio = 1 - bounce;\n /**\n * Restrict dampingRatio and duration to within acceptable ranges.\n */\n dampingRatio = clamp(minDamping, maxDamping, dampingRatio);\n duration = clamp(minDuration, maxDuration, millisecondsToSeconds(duration));\n if (dampingRatio < 1) {\n /**\n * Underdamped spring\n */\n envelope = (undampedFreq) => {\n const exponentialDecay = undampedFreq * dampingRatio;\n const delta = exponentialDecay * duration;\n const a = exponentialDecay - velocity;\n const b = calcAngularFreq(undampedFreq, dampingRatio);\n const c = Math.exp(-delta);\n return safeMin - (a / b) * c;\n };\n derivative = (undampedFreq) => {\n const exponentialDecay = undampedFreq * dampingRatio;\n const delta = exponentialDecay * duration;\n const d = delta * velocity + velocity;\n const e = Math.pow(dampingRatio, 2) * Math.pow(undampedFreq, 2) * duration;\n const f = Math.exp(-delta);\n const g = calcAngularFreq(Math.pow(undampedFreq, 2), dampingRatio);\n const factor = -envelope(undampedFreq) + safeMin > 0 ? -1 : 1;\n return (factor * ((d - e) * f)) / g;\n };\n }\n else {\n /**\n * Critically-damped spring\n */\n envelope = (undampedFreq) => {\n const a = Math.exp(-undampedFreq * duration);\n const b = (undampedFreq - velocity) * duration + 1;\n return -safeMin + a * b;\n };\n derivative = (undampedFreq) => {\n const a = Math.exp(-undampedFreq * duration);\n const b = (velocity - undampedFreq) * (duration * duration);\n return a * b;\n };\n }\n const initialGuess = 5 / duration;\n const undampedFreq = approximateRoot(envelope, derivative, initialGuess);\n duration = secondsToMilliseconds(duration);\n if (isNaN(undampedFreq)) {\n return {\n stiffness: 100,\n damping: 10,\n duration,\n };\n }\n else {\n const stiffness = Math.pow(undampedFreq, 2) * mass;\n return {\n stiffness,\n damping: dampingRatio * 2 * Math.sqrt(mass * stiffness),\n duration,\n };\n }\n}\nconst rootIterations = 12;\nfunction approximateRoot(envelope, derivative, initialGuess) {\n let result = initialGuess;\n for (let i = 1; i < rootIterations; i++) {\n result = result - envelope(result) / derivative(result);\n }\n return result;\n}\nfunction calcAngularFreq(undampedFreq, dampingRatio) {\n return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);\n}\n\nexport { calcAngularFreq, findSpring, maxDamping, maxDuration, minDamping, minDuration };\n","import { millisecondsToSeconds, secondsToMilliseconds } from '../../../utils/time-conversion.mjs';\nimport { calcGeneratorVelocity } from '../utils/velocity.mjs';\nimport { findSpring, calcAngularFreq } from './find.mjs';\n\nconst durationKeys = [\"duration\", \"bounce\"];\nconst physicsKeys = [\"stiffness\", \"damping\", \"mass\"];\nfunction isSpringType(options, keys) {\n return keys.some((key) => options[key] !== undefined);\n}\nfunction getSpringOptions(options) {\n let springOptions = {\n velocity: 0.0,\n stiffness: 100,\n damping: 10,\n mass: 1.0,\n isResolvedFromDuration: false,\n ...options,\n };\n // stiffness/damping/mass overrides duration/bounce\n if (!isSpringType(options, physicsKeys) &&\n isSpringType(options, durationKeys)) {\n const derived = findSpring(options);\n springOptions = {\n ...springOptions,\n ...derived,\n mass: 1.0,\n };\n springOptions.isResolvedFromDuration = true;\n }\n return springOptions;\n}\nfunction spring({ keyframes, restDelta, restSpeed, ...options }) {\n const origin = keyframes[0];\n const target = keyframes[keyframes.length - 1];\n /**\n * This is the Iterator-spec return value. We ensure it's mutable rather than using a generator\n * to reduce GC during animation.\n */\n const state = { done: false, value: origin };\n const { stiffness, damping, mass, duration, velocity, isResolvedFromDuration, } = getSpringOptions({\n ...options,\n velocity: -millisecondsToSeconds(options.velocity || 0),\n });\n const initialVelocity = velocity || 0.0;\n const dampingRatio = damping / (2 * Math.sqrt(stiffness * mass));\n const initialDelta = target - origin;\n const undampedAngularFreq = millisecondsToSeconds(Math.sqrt(stiffness / mass));\n /**\n * If we're working on a granular scale, use smaller defaults for determining\n * when the spring is finished.\n *\n * These defaults have been selected emprically based on what strikes a good\n * ratio between feeling good and finishing as soon as changes are imperceptible.\n */\n const isGranularScale = Math.abs(initialDelta) < 5;\n restSpeed || (restSpeed = isGranularScale ? 0.01 : 2);\n restDelta || (restDelta = isGranularScale ? 0.005 : 0.5);\n let resolveSpring;\n if (dampingRatio < 1) {\n const angularFreq = calcAngularFreq(undampedAngularFreq, dampingRatio);\n // Underdamped spring\n resolveSpring = (t) => {\n const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);\n return (target -\n envelope *\n (((initialVelocity +\n dampingRatio * undampedAngularFreq * initialDelta) /\n angularFreq) *\n Math.sin(angularFreq * t) +\n initialDelta * Math.cos(angularFreq * t)));\n };\n }\n else if (dampingRatio === 1) {\n // Critically damped spring\n resolveSpring = (t) => target -\n Math.exp(-undampedAngularFreq * t) *\n (initialDelta +\n (initialVelocity + undampedAngularFreq * initialDelta) * t);\n }\n else {\n // Overdamped spring\n const dampedAngularFreq = undampedAngularFreq * Math.sqrt(dampingRatio * dampingRatio - 1);\n resolveSpring = (t) => {\n const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);\n // When performing sinh or cosh values can hit Infinity so we cap them here\n const freqForT = Math.min(dampedAngularFreq * t, 300);\n return (target -\n (envelope *\n ((initialVelocity +\n dampingRatio * undampedAngularFreq * initialDelta) *\n Math.sinh(freqForT) +\n dampedAngularFreq *\n initialDelta *\n Math.cosh(freqForT))) /\n dampedAngularFreq);\n };\n }\n return {\n calculatedDuration: isResolvedFromDuration ? duration || null : null,\n next: (t) => {\n const current = resolveSpring(t);\n if (!isResolvedFromDuration) {\n let currentVelocity = 0.0;\n /**\n * We only need to calculate velocity for under-damped springs\n * as over- and critically-damped springs can't overshoot, so\n * checking only for displacement is enough.\n */\n if (dampingRatio < 1) {\n currentVelocity =\n t === 0\n ? secondsToMilliseconds(initialVelocity)\n : calcGeneratorVelocity(resolveSpring, t, current);\n }\n const isBelowVelocityThreshold = Math.abs(currentVelocity) <= restSpeed;\n const isBelowDisplacementThreshold = Math.abs(target - current) <= restDelta;\n state.done =\n isBelowVelocityThreshold && isBelowDisplacementThreshold;\n }\n else {\n state.done = t >= duration;\n }\n state.value = state.done ? target : current;\n return state;\n },\n };\n}\n\nexport { spring };\n","import { spring } from './spring/index.mjs';\nimport { calcGeneratorVelocity } from './utils/velocity.mjs';\n\nfunction inertia({ keyframes, velocity = 0.0, power = 0.8, timeConstant = 325, bounceDamping = 10, bounceStiffness = 500, modifyTarget, min, max, restDelta = 0.5, restSpeed, }) {\n const origin = keyframes[0];\n const state = {\n done: false,\n value: origin,\n };\n const isOutOfBounds = (v) => (min !== undefined && v < min) || (max !== undefined && v > max);\n const nearestBoundary = (v) => {\n if (min === undefined)\n return max;\n if (max === undefined)\n return min;\n return Math.abs(min - v) < Math.abs(max - v) ? min : max;\n };\n let amplitude = power * velocity;\n const ideal = origin + amplitude;\n const target = modifyTarget === undefined ? ideal : modifyTarget(ideal);\n /**\n * If the target has changed we need to re-calculate the amplitude, otherwise\n * the animation will start from the wrong position.\n */\n if (target !== ideal)\n amplitude = target - origin;\n const calcDelta = (t) => -amplitude * Math.exp(-t / timeConstant);\n const calcLatest = (t) => target + calcDelta(t);\n const applyFriction = (t) => {\n const delta = calcDelta(t);\n const latest = calcLatest(t);\n state.done = Math.abs(delta) <= restDelta;\n state.value = state.done ? target : latest;\n };\n /**\n * Ideally this would resolve for t in a stateless way, we could\n * do that by always precalculating the animation but as we know\n * this will be done anyway we can assume that spring will\n * be discovered during that.\n */\n let timeReachedBoundary;\n let spring$1;\n const checkCatchBoundary = (t) => {\n if (!isOutOfBounds(state.value))\n return;\n timeReachedBoundary = t;\n spring$1 = spring({\n keyframes: [state.value, nearestBoundary(state.value)],\n velocity: calcGeneratorVelocity(calcLatest, t, state.value), // TODO: This should be passing * 1000\n damping: bounceDamping,\n stiffness: bounceStiffness,\n restDelta,\n restSpeed,\n });\n };\n checkCatchBoundary(0);\n return {\n calculatedDuration: null,\n next: (t) => {\n /**\n * We need to resolve the friction to figure out if we need a\n * spring but we don't want to do this twice per frame. So here\n * we flag if we updated for this frame and later if we did\n * we can skip doing it again.\n */\n let hasUpdatedFrame = false;\n if (!spring$1 && timeReachedBoundary === undefined) {\n hasUpdatedFrame = true;\n applyFriction(t);\n checkCatchBoundary(t);\n }\n /**\n * If we have a spring and the provided t is beyond the moment the friction\n * animation crossed the min/max boundary, use the spring.\n */\n if (timeReachedBoundary !== undefined && t >= timeReachedBoundary) {\n return spring$1.next(t - timeReachedBoundary);\n }\n else {\n !hasUpdatedFrame && applyFriction(t);\n return state;\n }\n },\n };\n}\n\nexport { inertia };\n","import { noop } from '../utils/noop.mjs';\n\n/*\n Bezier function generator\n This has been modified from Gaëtan Renaudeau's BezierEasing\n https://github.com/gre/bezier-easing/blob/master/src/index.js\n https://github.com/gre/bezier-easing/blob/master/LICENSE\n \n I've removed the newtonRaphsonIterate algo because in benchmarking it\n wasn't noticiably faster than binarySubdivision, indeed removing it\n usually improved times, depending on the curve.\n I also removed the lookup table, as for the added bundle size and loop we're\n only cutting ~4 or so subdivision iterations. I bumped the max iterations up\n to 12 to compensate and this still tended to be faster for no perceivable\n loss in accuracy.\n Usage\n const easeOut = cubicBezier(.17,.67,.83,.67);\n const x = easeOut(0.5); // returns 0.627...\n*/\n// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.\nconst calcBezier = (t, a1, a2) => (((1.0 - 3.0 * a2 + 3.0 * a1) * t + (3.0 * a2 - 6.0 * a1)) * t + 3.0 * a1) *\n t;\nconst subdivisionPrecision = 0.0000001;\nconst subdivisionMaxIterations = 12;\nfunction binarySubdivide(x, lowerBound, upperBound, mX1, mX2) {\n let currentX;\n let currentT;\n let i = 0;\n do {\n currentT = lowerBound + (upperBound - lowerBound) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - x;\n if (currentX > 0.0) {\n upperBound = currentT;\n }\n else {\n lowerBound = currentT;\n }\n } while (Math.abs(currentX) > subdivisionPrecision &&\n ++i < subdivisionMaxIterations);\n return currentT;\n}\nfunction cubicBezier(mX1, mY1, mX2, mY2) {\n // If this is a linear gradient, return linear easing\n if (mX1 === mY1 && mX2 === mY2)\n return noop;\n const getTForX = (aX) => binarySubdivide(aX, 0, 1, mX1, mX2);\n // If animation is at start/end, return t without easing\n return (t) => t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2);\n}\n\nexport { cubicBezier };\n","import { cubicBezier } from './cubic-bezier.mjs';\n\nconst easeIn = cubicBezier(0.42, 0, 1, 1);\nconst easeOut = cubicBezier(0, 0, 0.58, 1);\nconst easeInOut = cubicBezier(0.42, 0, 0.58, 1);\n\nexport { easeIn, easeInOut, easeOut };\n","// Accepts an easing function and returns a new one that outputs mirrored values for\n// the second half of the animation. Turns easeIn into easeInOut.\nconst mirrorEasing = (easing) => (p) => p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;\n\nexport { mirrorEasing };\n","// Accepts an easing function and returns a new one that outputs reversed values.\n// Turns easeIn into easeOut.\nconst reverseEasing = (easing) => (p) => 1 - easing(1 - p);\n\nexport { reverseEasing };\n","import { mirrorEasing } from './modifiers/mirror.mjs';\nimport { reverseEasing } from './modifiers/reverse.mjs';\n\nconst circIn = (p) => 1 - Math.sin(Math.acos(p));\nconst circOut = reverseEasing(circIn);\nconst circInOut = mirrorEasing(circIn);\n\nexport { circIn, circInOut, circOut };\n","import { cubicBezier } from './cubic-bezier.mjs';\nimport { mirrorEasing } from './modifiers/mirror.mjs';\nimport { reverseEasing } from './modifiers/reverse.mjs';\n\nconst backOut = cubicBezier(0.33, 1.53, 0.69, 0.99);\nconst backIn = reverseEasing(backOut);\nconst backInOut = mirrorEasing(backIn);\n\nexport { backIn, backInOut, backOut };\n","import { invariant } from '../../utils/errors.mjs';\nimport { cubicBezier } from '../cubic-bezier.mjs';\nimport { noop } from '../../utils/noop.mjs';\nimport { easeIn, easeInOut, easeOut } from '../ease.mjs';\nimport { circIn, circInOut, circOut } from '../circ.mjs';\nimport { backIn, backInOut, backOut } from '../back.mjs';\nimport { anticipate } from '../anticipate.mjs';\n\nconst easingLookup = {\n linear: noop,\n easeIn,\n easeInOut,\n easeOut,\n circIn,\n circInOut,\n circOut,\n backIn,\n backInOut,\n backOut,\n anticipate,\n};\nconst easingDefinitionToFunction = (definition) => {\n if (Array.isArray(definition)) {\n // If cubic bezier definition, create bezier curve\n invariant(definition.length === 4, `Cubic bezier arrays must contain four numerical values.`);\n const [x1, y1, x2, y2] = definition;\n return cubicBezier(x1, y1, x2, y2);\n }\n else if (typeof definition === \"string\") {\n // Else lookup from table\n invariant(easingLookup[definition] !== undefined, `Invalid easing type '${definition}'`);\n return easingLookup[definition];\n }\n return definition;\n};\n\nexport { easingDefinitionToFunction };\n","import { backIn } from './back.mjs';\n\nconst anticipate = (p) => (p *= 2) < 1 ? 0.5 * backIn(p) : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));\n\nexport { anticipate };\n","import { easeInOut } from '../../easing/ease.mjs';\nimport { isEasingArray } from '../../easing/utils/is-easing-array.mjs';\nimport { easingDefinitionToFunction } from '../../easing/utils/map.mjs';\nimport { interpolate } from '../../utils/interpolate.mjs';\nimport { defaultOffset } from '../../utils/offsets/default.mjs';\nimport { convertOffsetToTimes } from '../../utils/offsets/time.mjs';\n\nfunction defaultEasing(values, easing) {\n return values.map(() => easing || easeInOut).splice(0, values.length - 1);\n}\nfunction keyframes({ duration = 300, keyframes: keyframeValues, times, ease = \"easeInOut\", }) {\n /**\n * Easing functions can be externally defined as strings. Here we convert them\n * into actual functions.\n */\n const easingFunctions = isEasingArray(ease)\n ? ease.map(easingDefinitionToFunction)\n : easingDefinitionToFunction(ease);\n /**\n * This is the Iterator-spec return value. We ensure it's mutable rather than using a generator\n * to reduce GC during animation.\n */\n const state = {\n done: false,\n value: keyframeValues[0],\n };\n /**\n * Create a times array based on the provided 0-1 offsets\n */\n const absoluteTimes = convertOffsetToTimes(\n // Only use the provided offsets if they're the correct length\n // TODO Maybe we should warn here if there's a length mismatch\n times && times.length === keyframeValues.length\n ? times\n : defaultOffset(keyframeValues), duration);\n const mapTimeToKeyframe = interpolate(absoluteTimes, keyframeValues, {\n ease: Array.isArray(easingFunctions)\n ? easingFunctions\n : defaultEasing(keyframeValues, easingFunctions),\n });\n return {\n calculatedDuration: duration,\n next: (t) => {\n state.value = mapTimeToKeyframe(t);\n state.done = t >= duration;\n return state;\n },\n };\n}\n\nexport { defaultEasing, keyframes };\n","const isEasingArray = (ease) => {\n return Array.isArray(ease) && typeof ease[0] !== \"number\";\n};\n\nexport { isEasingArray };\n","function convertOffsetToTimes(offset, duration) {\n return offset.map((o) => o * duration);\n}\n\nexport { convertOffsetToTimes };\n","import { time } from '../../../frameloop/sync-time.mjs';\nimport { frame, cancelFrame, frameData } from '../../../frameloop/frame.mjs';\n\nconst frameloopDriver = (update) => {\n const passTimestamp = ({ timestamp }) => update(timestamp);\n return {\n start: () => frame.update(passTimestamp, true),\n stop: () => cancelFrame(passTimestamp),\n /**\n * If we're processing this frame we can use the\n * framelocked timestamp to keep things in sync.\n */\n now: () => (frameData.isProcessing ? frameData.timestamp : time.now()),\n };\n};\n\nexport { frameloopDriver };\n","import { KeyframeResolver } from '../../render/utils/KeyframesResolver.mjs';\nimport { spring } from '../generators/spring/index.mjs';\nimport { inertia } from '../generators/inertia.mjs';\nimport { keyframes } from '../generators/keyframes.mjs';\nimport { BaseAnimation } from './BaseAnimation.mjs';\nimport { pipe } from '../../utils/pipe.mjs';\nimport { mix } from '../../utils/mix/index.mjs';\nimport { calcGeneratorDuration } from '../generators/utils/calc-duration.mjs';\nimport { millisecondsToSeconds, secondsToMilliseconds } from '../../utils/time-conversion.mjs';\nimport { clamp } from '../../utils/clamp.mjs';\nimport { invariant } from '../../utils/errors.mjs';\nimport { frameloopDriver } from './drivers/driver-frameloop.mjs';\nimport { getFinalKeyframe } from './waapi/utils/get-final-keyframe.mjs';\n\nconst generators = {\n decay: inertia,\n inertia,\n tween: keyframes,\n keyframes: keyframes,\n spring,\n};\nconst percentToProgress = (percent) => percent / 100;\n/**\n * Animation that runs on the main thread. Designed to be WAAPI-spec in the subset of\n * features we expose publically. Mostly the compatibility is to ensure visual identity\n * between both WAAPI and main thread animations.\n */\nclass MainThreadAnimation extends BaseAnimation {\n constructor(options) {\n super(options);\n /**\n * The time at which the animation was paused.\n */\n this.holdTime = null;\n /**\n * The time at which the animation was cancelled.\n */\n this.cancelTime = null;\n /**\n * The current time of the animation.\n */\n this.currentTime = 0;\n /**\n * Playback speed as a factor. 0 would be stopped, -1 reverse and 2 double speed.\n */\n this.playbackSpeed = 1;\n /**\n * The state of the animation to apply when the animation is resolved. This\n * allows calls to the public API to control the animation before it is resolved,\n * without us having to resolve it first.\n */\n this.pendingPlayState = \"running\";\n /**\n * The time at which the animation was started.\n */\n this.startTime = null;\n this.state = \"idle\";\n /**\n * This method is bound to the instance to fix a pattern where\n * animation.stop is returned as a reference from a useEffect.\n */\n this.stop = () => {\n this.resolver.cancel();\n this.isStopped = true;\n if (this.state === \"idle\")\n return;\n this.teardown();\n const { onStop } = this.options;\n onStop && onStop();\n };\n const { name, motionValue, element, keyframes } = this.options;\n const KeyframeResolver$1 = (element === null || element === void 0 ? void 0 : element.KeyframeResolver) || KeyframeResolver;\n const onResolved = (resolvedKeyframes, finalKeyframe) => this.onKeyframesResolved(resolvedKeyframes, finalKeyframe);\n this.resolver = new KeyframeResolver$1(keyframes, onResolved, name, motionValue, element);\n this.resolver.scheduleResolve();\n }\n initPlayback(keyframes$1) {\n const { type = \"keyframes\", repeat = 0, repeatDelay = 0, repeatType, velocity = 0, } = this.options;\n const generatorFactory = generators[type] || keyframes;\n /**\n * If our generator doesn't support mixing numbers, we need to replace keyframes with\n * [0, 100] and then make a function that maps that to the actual keyframes.\n *\n * 100 is chosen instead of 1 as it works nicer with spring animations.\n */\n let mapPercentToKeyframes;\n let mirroredGenerator;\n if (generatorFactory !== keyframes &&\n typeof keyframes$1[0] !== \"number\") {\n if (process.env.NODE_ENV !== \"production\") {\n invariant(keyframes$1.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${keyframes$1}`);\n }\n mapPercentToKeyframes = pipe(percentToProgress, mix(keyframes$1[0], keyframes$1[1]));\n keyframes$1 = [0, 100];\n }\n const generator = generatorFactory({ ...this.options, keyframes: keyframes$1 });\n /**\n * If we have a mirror repeat type we need to create a second generator that outputs the\n * mirrored (not reversed) animation and later ping pong between the two generators.\n */\n if (repeatType === \"mirror\") {\n mirroredGenerator = generatorFactory({\n ...this.options,\n keyframes: [...keyframes$1].reverse(),\n velocity: -velocity,\n });\n }\n /**\n * If duration is undefined and we have repeat options,\n * we need to calculate a duration from the generator.\n *\n * We set it to the generator itself to cache the duration.\n * Any timeline resolver will need to have already precalculated\n * the duration by this step.\n */\n if (generator.calculatedDuration === null) {\n generator.calculatedDuration = calcGeneratorDuration(generator);\n }\n const { calculatedDuration } = generator;\n const resolvedDuration = calculatedDuration + repeatDelay;\n const totalDuration = resolvedDuration * (repeat + 1) - repeatDelay;\n return {\n generator,\n mirroredGenerator,\n mapPercentToKeyframes,\n calculatedDuration,\n resolvedDuration,\n totalDuration,\n };\n }\n onPostResolved() {\n const { autoplay = true } = this.options;\n this.play();\n if (this.pendingPlayState === \"paused\" || !autoplay) {\n this.pause();\n }\n else {\n this.state = this.pendingPlayState;\n }\n }\n tick(timestamp, sample = false) {\n const { resolved } = this;\n // If the animations has failed to resolve, return the final keyframe.\n if (!resolved) {\n const { keyframes } = this.options;\n return { done: true, value: keyframes[keyframes.length - 1] };\n }\n const { finalKeyframe, generator, mirroredGenerator, mapPercentToKeyframes, keyframes, calculatedDuration, totalDuration, resolvedDuration, } = resolved;\n if (this.startTime === null)\n return generator.next(0);\n const { delay, repeat, repeatType, repeatDelay, onUpdate } = this.options;\n /**\n * requestAnimationFrame timestamps can come through as lower than\n * the startTime as set by performance.now(). Here we prevent this,\n * though in the future it could be possible to make setting startTime\n * a pending operation that gets resolved here.\n */\n if (this.speed > 0) {\n this.startTime = Math.min(this.startTime, timestamp);\n }\n else if (this.speed < 0) {\n this.startTime = Math.min(timestamp - totalDuration / this.speed, this.startTime);\n }\n // Update currentTime\n if (sample) {\n this.currentTime = timestamp;\n }\n else if (this.holdTime !== null) {\n this.currentTime = this.holdTime;\n }\n else {\n // Rounding the time because floating point arithmetic is not always accurate, e.g. 3000.367 - 1000.367 =\n // 2000.0000000000002. This is a problem when we are comparing the currentTime with the duration, for\n // example.\n this.currentTime =\n Math.round(timestamp - this.startTime) * this.speed;\n }\n // Rebase on delay\n const timeWithoutDelay = this.currentTime - delay * (this.speed >= 0 ? 1 : -1);\n const isInDelayPhase = this.speed >= 0\n ? timeWithoutDelay < 0\n : timeWithoutDelay > totalDuration;\n this.currentTime = Math.max(timeWithoutDelay, 0);\n // If this animation has finished, set the current time to the total duration.\n if (this.state === \"finished\" && this.holdTime === null) {\n this.currentTime = totalDuration;\n }\n let elapsed = this.currentTime;\n let frameGenerator = generator;\n if (repeat) {\n /**\n * Get the current progress (0-1) of the animation. If t is >\n * than duration we'll get values like 2.5 (midway through the\n * third iteration)\n */\n const progress = Math.min(this.currentTime, totalDuration) / resolvedDuration;\n /**\n * Get the current iteration (0 indexed). For instance the floor of\n * 2.5 is 2.\n */\n let currentIteration = Math.floor(progress);\n /**\n * Get the current progress of the iteration by taking the remainder\n * so 2.5 is 0.5 through iteration 2\n */\n let iterationProgress = progress % 1.0;\n /**\n * If iteration progress is 1 we count that as the end\n * of the previous iteration.\n */\n if (!iterationProgress && progress >= 1) {\n iterationProgress = 1;\n }\n iterationProgress === 1 && currentIteration--;\n currentIteration = Math.min(currentIteration, repeat + 1);\n /**\n * Reverse progress if we're not running in \"normal\" direction\n */\n const isOddIteration = Boolean(currentIteration % 2);\n if (isOddIteration) {\n if (repeatType === \"reverse\") {\n iterationProgress = 1 - iterationProgress;\n if (repeatDelay) {\n iterationProgress -= repeatDelay / resolvedDuration;\n }\n }\n else if (repeatType === \"mirror\") {\n frameGenerator = mirroredGenerator;\n }\n }\n elapsed = clamp(0, 1, iterationProgress) * resolvedDuration;\n }\n /**\n * If we're in negative time, set state as the initial keyframe.\n * This prevents delay: x, duration: 0 animations from finishing\n * instantly.\n */\n const state = isInDelayPhase\n ? { done: false, value: keyframes[0] }\n : frameGenerator.next(elapsed);\n if (mapPercentToKeyframes) {\n state.value = mapPercentToKeyframes(state.value);\n }\n let { done } = state;\n if (!isInDelayPhase && calculatedDuration !== null) {\n done =\n this.speed >= 0\n ? this.currentTime >= totalDuration\n : this.currentTime <= 0;\n }\n const isAnimationFinished = this.holdTime === null &&\n (this.state === \"finished\" || (this.state === \"running\" && done));\n if (isAnimationFinished && finalKeyframe !== undefined) {\n state.value = getFinalKeyframe(keyframes, this.options, finalKeyframe);\n }\n if (onUpdate) {\n onUpdate(state.value);\n }\n if (isAnimationFinished) {\n this.finish();\n }\n return state;\n }\n get duration() {\n const { resolved } = this;\n return resolved ? millisecondsToSeconds(resolved.calculatedDuration) : 0;\n }\n get time() {\n return millisecondsToSeconds(this.currentTime);\n }\n set time(newTime) {\n newTime = secondsToMilliseconds(newTime);\n this.currentTime = newTime;\n if (this.holdTime !== null || this.speed === 0) {\n this.holdTime = newTime;\n }\n else if (this.driver) {\n this.startTime = this.driver.now() - newTime / this.speed;\n }\n }\n get speed() {\n return this.playbackSpeed;\n }\n set speed(newSpeed) {\n const hasChanged = this.playbackSpeed !== newSpeed;\n this.playbackSpeed = newSpeed;\n if (hasChanged) {\n this.time = millisecondsToSeconds(this.currentTime);\n }\n }\n play() {\n if (!this.resolver.isScheduled) {\n this.resolver.resume();\n }\n if (!this._resolved) {\n this.pendingPlayState = \"running\";\n return;\n }\n if (this.isStopped)\n return;\n const { driver = frameloopDriver, onPlay, startTime } = this.options;\n if (!this.driver) {\n this.driver = driver((timestamp) => this.tick(timestamp));\n }\n onPlay && onPlay();\n const now = this.driver.now();\n if (this.holdTime !== null) {\n this.startTime = now - this.holdTime;\n }\n else if (!this.startTime) {\n this.startTime = startTime !== null && startTime !== void 0 ? startTime : this.calcStartTime();\n }\n else if (this.state === \"finished\") {\n this.startTime = now;\n }\n if (this.state === \"finished\") {\n this.updateFinishedPromise();\n }\n this.cancelTime = this.startTime;\n this.holdTime = null;\n /**\n * Set playState to running only after we've used it in\n * the previous logic.\n */\n this.state = \"running\";\n this.driver.start();\n }\n pause() {\n var _a;\n if (!this._resolved) {\n this.pendingPlayState = \"paused\";\n return;\n }\n this.state = \"paused\";\n this.holdTime = (_a = this.currentTime) !== null && _a !== void 0 ? _a : 0;\n }\n complete() {\n if (this.state !== \"running\") {\n this.play();\n }\n this.pendingPlayState = this.state = \"finished\";\n this.holdTime = null;\n }\n finish() {\n this.teardown();\n this.state = \"finished\";\n const { onComplete } = this.options;\n onComplete && onComplete();\n }\n cancel() {\n if (this.cancelTime !== null) {\n this.tick(this.cancelTime);\n }\n this.teardown();\n this.updateFinishedPromise();\n }\n teardown() {\n this.state = \"idle\";\n this.stopDriver();\n this.resolveFinishedPromise();\n this.updateFinishedPromise();\n this.startTime = this.cancelTime = null;\n this.resolver.cancel();\n }\n stopDriver() {\n if (!this.driver)\n return;\n this.driver.stop();\n this.driver = undefined;\n }\n sample(time) {\n this.startTime = 0;\n return this.tick(time, true);\n }\n}\n// Legacy interface\nfunction animateValue(options) {\n return new MainThreadAnimation(options);\n}\n\nexport { MainThreadAnimation, animateValue };\n","/**\n * Implement a practical max duration for keyframe generation\n * to prevent infinite loops\n */\nconst maxGeneratorDuration = 20000;\nfunction calcGeneratorDuration(generator) {\n let duration = 0;\n const timeStep = 50;\n let state = generator.next(duration);\n while (!state.done && duration < maxGeneratorDuration) {\n duration += timeStep;\n state = generator.next(duration);\n }\n return duration >= maxGeneratorDuration ? Infinity : duration;\n}\n\nexport { calcGeneratorDuration, maxGeneratorDuration };\n","const isBezierDefinition = (easing) => Array.isArray(easing) && typeof easing[0] === \"number\";\n\nexport { isBezierDefinition };\n","import { isBezierDefinition } from '../../../easing/utils/is-bezier-definition.mjs';\n\nfunction isWaapiSupportedEasing(easing) {\n return Boolean(!easing ||\n (typeof easing === \"string\" && easing in supportedWaapiEasing) ||\n isBezierDefinition(easing) ||\n (Array.isArray(easing) && easing.every(isWaapiSupportedEasing)));\n}\nconst cubicBezierAsString = ([a, b, c, d]) => `cubic-bezier(${a}, ${b}, ${c}, ${d})`;\nconst supportedWaapiEasing = {\n linear: \"linear\",\n ease: \"ease\",\n easeIn: \"ease-in\",\n easeOut: \"ease-out\",\n easeInOut: \"ease-in-out\",\n circIn: cubicBezierAsString([0, 0.65, 0.55, 1]),\n circOut: cubicBezierAsString([0.55, 0, 1, 0.45]),\n backIn: cubicBezierAsString([0.31, 0.01, 0.66, -0.59]),\n backOut: cubicBezierAsString([0.33, 1.53, 0.69, 0.99]),\n};\nfunction mapEasingToNativeEasingWithDefault(easing) {\n return (mapEasingToNativeEasing(easing) ||\n supportedWaapiEasing.easeOut);\n}\nfunction mapEasingToNativeEasing(easing) {\n if (!easing) {\n return undefined;\n }\n else if (isBezierDefinition(easing)) {\n return cubicBezierAsString(easing);\n }\n else if (Array.isArray(easing)) {\n return easing.map(mapEasingToNativeEasingWithDefault);\n }\n else {\n return supportedWaapiEasing[easing];\n }\n}\n\nexport { cubicBezierAsString, isWaapiSupportedEasing, mapEasingToNativeEasing, supportedWaapiEasing };\n","import { DOMKeyframesResolver } from '../../render/dom/DOMKeyframesResolver.mjs';\nimport { memo } from '../../utils/memo.mjs';\nimport { noop } from '../../utils/noop.mjs';\nimport { millisecondsToSeconds, secondsToMilliseconds } from '../../utils/time-conversion.mjs';\nimport { BaseAnimation } from './BaseAnimation.mjs';\nimport { MainThreadAnimation } from './MainThreadAnimation.mjs';\nimport { acceleratedValues } from './utils/accelerated-values.mjs';\nimport { animateStyle } from './waapi/index.mjs';\nimport { isWaapiSupportedEasing } from './waapi/easing.mjs';\nimport { getFinalKeyframe } from './waapi/utils/get-final-keyframe.mjs';\n\nconst supportsWaapi = memo(() => Object.hasOwnProperty.call(Element.prototype, \"animate\"));\n/**\n * 10ms is chosen here as it strikes a balance between smooth\n * results (more than one keyframe per frame at 60fps) and\n * keyframe quantity.\n */\nconst sampleDelta = 10; //ms\n/**\n * Implement a practical max duration for keyframe generation\n * to prevent infinite loops\n */\nconst maxDuration = 20000;\n/**\n * Check if an animation can run natively via WAAPI or requires pregenerated keyframes.\n * WAAPI doesn't support spring or function easings so we run these as JS animation before\n * handing off.\n */\nfunction requiresPregeneratedKeyframes(options) {\n return options.type === \"spring\" || !isWaapiSupportedEasing(options.ease);\n}\nfunction pregenerateKeyframes(keyframes, options) {\n /**\n * Create a main-thread animation to pregenerate keyframes.\n * We sample this at regular intervals to generate keyframes that we then\n * linearly interpolate between.\n */\n const sampleAnimation = new MainThreadAnimation({\n ...options,\n keyframes,\n repeat: 0,\n delay: 0,\n isGenerator: true,\n });\n let state = { done: false, value: keyframes[0] };\n const pregeneratedKeyframes = [];\n /**\n * Bail after 20 seconds of pre-generated keyframes as it's likely\n * we're heading for an infinite loop.\n */\n let t = 0;\n while (!state.done && t < maxDuration) {\n state = sampleAnimation.sample(t);\n pregeneratedKeyframes.push(state.value);\n t += sampleDelta;\n }\n return {\n times: undefined,\n keyframes: pregeneratedKeyframes,\n duration: t - sampleDelta,\n ease: \"linear\",\n };\n}\nclass AcceleratedAnimation extends BaseAnimation {\n constructor(options) {\n super(options);\n const { name, motionValue, element, keyframes } = this.options;\n this.resolver = new DOMKeyframesResolver(keyframes, (resolvedKeyframes, finalKeyframe) => this.onKeyframesResolved(resolvedKeyframes, finalKeyframe), name, motionValue, element);\n this.resolver.scheduleResolve();\n }\n initPlayback(keyframes, finalKeyframe) {\n var _a;\n let { duration = 300, times, ease, type, motionValue, name, startTime, } = this.options;\n /**\n * If element has since been unmounted, return false to indicate\n * the animation failed to initialised.\n */\n if (!((_a = motionValue.owner) === null || _a === void 0 ? void 0 : _a.current)) {\n return false;\n }\n /**\n * If this animation needs pre-generated keyframes then generate.\n */\n if (requiresPregeneratedKeyframes(this.options)) {\n const { onComplete, onUpdate, motionValue, element, ...options } = this.options;\n const pregeneratedAnimation = pregenerateKeyframes(keyframes, options);\n keyframes = pregeneratedAnimation.keyframes;\n // If this is a very short animation, ensure we have\n // at least two keyframes to animate between as older browsers\n // can't animate between a single keyframe.\n if (keyframes.length === 1) {\n keyframes[1] = keyframes[0];\n }\n duration = pregeneratedAnimation.duration;\n times = pregeneratedAnimation.times;\n ease = pregeneratedAnimation.ease;\n type = \"keyframes\";\n }\n const animation = animateStyle(motionValue.owner.current, name, keyframes, { ...this.options, duration, times, ease });\n // Override the browser calculated startTime with one synchronised to other JS\n // and WAAPI animations starting this event loop.\n animation.startTime = startTime !== null && startTime !== void 0 ? startTime : this.calcStartTime();\n if (this.pendingTimeline) {\n animation.timeline = this.pendingTimeline;\n this.pendingTimeline = undefined;\n }\n else {\n /**\n * Prefer the `onfinish` prop as it's more widely supported than\n * the `finished` promise.\n *\n * Here, we synchronously set the provided MotionValue to the end\n * keyframe. If we didn't, when the WAAPI animation is finished it would\n * be removed from the element which would then revert to its old styles.\n */\n animation.onfinish = () => {\n const { onComplete } = this.options;\n motionValue.set(getFinalKeyframe(keyframes, this.options, finalKeyframe));\n onComplete && onComplete();\n this.cancel();\n this.resolveFinishedPromise();\n };\n }\n return {\n animation,\n duration,\n times,\n type,\n ease,\n keyframes: keyframes,\n };\n }\n get duration() {\n const { resolved } = this;\n if (!resolved)\n return 0;\n const { duration } = resolved;\n return millisecondsToSeconds(duration);\n }\n get time() {\n const { resolved } = this;\n if (!resolved)\n return 0;\n const { animation } = resolved;\n return millisecondsToSeconds(animation.currentTime || 0);\n }\n set time(newTime) {\n const { resolved } = this;\n if (!resolved)\n return;\n const { animation } = resolved;\n animation.currentTime = secondsToMilliseconds(newTime);\n }\n get speed() {\n const { resolved } = this;\n if (!resolved)\n return 1;\n const { animation } = resolved;\n return animation.playbackRate;\n }\n set speed(newSpeed) {\n const { resolved } = this;\n if (!resolved)\n return;\n const { animation } = resolved;\n animation.playbackRate = newSpeed;\n }\n get state() {\n const { resolved } = this;\n if (!resolved)\n return \"idle\";\n const { animation } = resolved;\n return animation.playState;\n }\n get startTime() {\n const { resolved } = this;\n if (!resolved)\n return null;\n const { animation } = resolved;\n // Coerce to number as TypeScript incorrectly types this\n // as CSSNumberish\n return animation.startTime;\n }\n /**\n * Replace the default DocumentTimeline with another AnimationTimeline.\n * Currently used for scroll animations.\n */\n attachTimeline(timeline) {\n if (!this._resolved) {\n this.pendingTimeline = timeline;\n }\n else {\n const { resolved } = this;\n if (!resolved)\n return noop;\n const { animation } = resolved;\n animation.timeline = timeline;\n animation.onfinish = null;\n }\n return noop;\n }\n play() {\n if (this.isStopped)\n return;\n const { resolved } = this;\n if (!resolved)\n return;\n const { animation } = resolved;\n if (animation.playState === \"finished\") {\n this.updateFinishedPromise();\n }\n animation.play();\n }\n pause() {\n const { resolved } = this;\n if (!resolved)\n return;\n const { animation } = resolved;\n animation.pause();\n }\n stop() {\n this.resolver.cancel();\n this.isStopped = true;\n if (this.state === \"idle\")\n return;\n this.resolveFinishedPromise();\n this.updateFinishedPromise();\n const { resolved } = this;\n if (!resolved)\n return;\n const { animation, keyframes, duration, type, ease, times } = resolved;\n if (animation.playState === \"idle\" ||\n animation.playState === \"finished\") {\n return;\n }\n /**\n * WAAPI doesn't natively have any interruption capabilities.\n *\n * Rather than read commited styles back out of the DOM, we can\n * create a renderless JS animation and sample it twice to calculate\n * its current value, \"previous\" value, and therefore allow\n * Motion to calculate velocity for any subsequent animation.\n */\n if (this.time) {\n const { motionValue, onUpdate, onComplete, element, ...options } = this.options;\n const sampleAnimation = new MainThreadAnimation({\n ...options,\n keyframes,\n duration,\n type,\n ease,\n times,\n isGenerator: true,\n });\n const sampleTime = secondsToMilliseconds(this.time);\n motionValue.setWithVelocity(sampleAnimation.sample(sampleTime - sampleDelta).value, sampleAnimation.sample(sampleTime).value, sampleDelta);\n }\n const { onStop } = this.options;\n onStop && onStop();\n this.cancel();\n }\n complete() {\n const { resolved } = this;\n if (!resolved)\n return;\n resolved.animation.finish();\n }\n cancel() {\n const { resolved } = this;\n if (!resolved)\n return;\n resolved.animation.cancel();\n }\n static supports(options) {\n const { motionValue, name, repeatDelay, repeatType, damping, type } = options;\n return (supportsWaapi() &&\n name &&\n acceleratedValues.has(name) &&\n motionValue &&\n motionValue.owner &&\n motionValue.owner.current instanceof HTMLElement &&\n /**\n * If we're outputting values to onUpdate then we can't use WAAPI as there's\n * no way to read the value from WAAPI every frame.\n */\n !motionValue.owner.getProps().onUpdate &&\n !repeatDelay &&\n repeatType !== \"mirror\" &&\n damping !== 0 &&\n type !== \"inertia\");\n }\n}\n\nexport { AcceleratedAnimation };\n","import { mapEasingToNativeEasing } from './easing.mjs';\n\nfunction animateStyle(element, valueName, keyframes, { delay = 0, duration = 300, repeat = 0, repeatType = \"loop\", ease, times, } = {}) {\n const keyframeOptions = { [valueName]: keyframes };\n if (times)\n keyframeOptions.offset = times;\n const easing = mapEasingToNativeEasing(ease);\n /**\n * If this is an easing array, apply to keyframes, not animation as a whole\n */\n if (Array.isArray(easing))\n keyframeOptions.easing = easing;\n return element.animate(keyframeOptions, {\n delay,\n duration,\n easing: !Array.isArray(easing) ? easing : \"linear\",\n fill: \"both\",\n iterations: repeat + 1,\n direction: repeatType === \"reverse\" ? \"alternate\" : \"normal\",\n });\n}\n\nexport { animateStyle };\n","import { memo } from '../../../utils/memo.mjs';\n\nconst supportsScrollTimeline = memo(() => window.ScrollTimeline !== undefined);\n\nexport { supportsScrollTimeline };\n","import { observeTimeline } from '../render/dom/scroll/observe.mjs';\nimport { supportsScrollTimeline } from '../render/dom/scroll/supports.mjs';\n\nclass GroupPlaybackControls {\n constructor(animations) {\n // Bound to accomodate common `return animation.stop` pattern\n this.stop = () => this.runAll(\"stop\");\n this.animations = animations.filter(Boolean);\n }\n then(onResolve, onReject) {\n return Promise.all(this.animations).then(onResolve).catch(onReject);\n }\n /**\n * TODO: Filter out cancelled or stopped animations before returning\n */\n getAll(propName) {\n return this.animations[0][propName];\n }\n setAll(propName, newValue) {\n for (let i = 0; i < this.animations.length; i++) {\n this.animations[i][propName] = newValue;\n }\n }\n attachTimeline(timeline) {\n const cancelAll = this.animations.map((animation) => {\n if (supportsScrollTimeline() && animation.attachTimeline) {\n animation.attachTimeline(timeline);\n }\n else {\n animation.pause();\n return observeTimeline((progress) => {\n animation.time = animation.duration * progress;\n }, timeline);\n }\n });\n return () => {\n cancelAll.forEach((cancelTimeline, i) => {\n if (cancelTimeline)\n cancelTimeline();\n this.animations[i].stop();\n });\n };\n }\n get time() {\n return this.getAll(\"time\");\n }\n set time(time) {\n this.setAll(\"time\", time);\n }\n get speed() {\n return this.getAll(\"speed\");\n }\n set speed(speed) {\n this.setAll(\"speed\", speed);\n }\n get startTime() {\n return this.getAll(\"startTime\");\n }\n get duration() {\n let max = 0;\n for (let i = 0; i < this.animations.length; i++) {\n max = Math.max(max, this.animations[i].duration);\n }\n return max;\n }\n runAll(methodName) {\n this.animations.forEach((controls) => controls[methodName]());\n }\n play() {\n this.runAll(\"play\");\n }\n pause() {\n this.runAll(\"pause\");\n }\n cancel() {\n this.runAll(\"cancel\");\n }\n complete() {\n this.runAll(\"complete\");\n }\n}\n\nexport { GroupPlaybackControls };\n","import { frame, cancelFrame } from '../../../frameloop/frame.mjs';\n\nfunction observeTimeline(update, timeline) {\n let prevProgress;\n const onFrame = () => {\n const { currentTime } = timeline;\n const percentage = currentTime === null ? 0 : currentTime.value;\n const progress = percentage / 100;\n if (prevProgress !== progress) {\n update(progress);\n }\n prevProgress = progress;\n };\n frame.update(onFrame, true);\n return () => cancelFrame(onFrame);\n}\n\nexport { observeTimeline };\n","import { secondsToMilliseconds } from '../../utils/time-conversion.mjs';\nimport { getDefaultTransition } from '../utils/default-transitions.mjs';\nimport { getValueTransition, isTransitionDefined } from '../utils/transitions.mjs';\nimport { MotionGlobalConfig } from '../../utils/GlobalConfig.mjs';\nimport { instantAnimationState } from '../../utils/use-instant-transition-state.mjs';\nimport { getFinalKeyframe } from '../animators/waapi/utils/get-final-keyframe.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\nimport { AcceleratedAnimation } from '../animators/AcceleratedAnimation.mjs';\nimport { MainThreadAnimation } from '../animators/MainThreadAnimation.mjs';\nimport { GroupPlaybackControls } from '../GroupPlaybackControls.mjs';\n\nconst animateMotionValue = (name, value, target, transition = {}, element, isHandoff, \n/**\n * Currently used to remove values from will-change when an animation ends.\n * Preferably this would be handled by event listeners on the MotionValue\n * but these aren't consistent enough yet when considering the different ways\n * an animation can be cancelled.\n */\nonEnd) => (onComplete) => {\n const valueTransition = getValueTransition(transition, name) || {};\n /**\n * Most transition values are currently completely overwritten by value-specific\n * transitions. In the future it'd be nicer to blend these transitions. But for now\n * delay actually does inherit from the root transition if not value-specific.\n */\n const delay = valueTransition.delay || transition.delay || 0;\n /**\n * Elapsed isn't a public transition option but can be passed through from\n * optimized appear effects in milliseconds.\n */\n let { elapsed = 0 } = transition;\n elapsed = elapsed - secondsToMilliseconds(delay);\n let options = {\n keyframes: Array.isArray(target) ? target : [null, target],\n ease: \"easeOut\",\n velocity: value.getVelocity(),\n ...valueTransition,\n delay: -elapsed,\n onUpdate: (v) => {\n value.set(v);\n valueTransition.onUpdate && valueTransition.onUpdate(v);\n },\n onComplete: () => {\n onComplete();\n valueTransition.onComplete && valueTransition.onComplete();\n onEnd && onEnd();\n },\n onStop: onEnd,\n name,\n motionValue: value,\n element: isHandoff ? undefined : element,\n };\n /**\n * If there's no transition defined for this value, we can generate\n * unqiue transition settings for this value.\n */\n if (!isTransitionDefined(valueTransition)) {\n options = {\n ...options,\n ...getDefaultTransition(name, options),\n };\n }\n /**\n * Both WAAPI and our internal animation functions use durations\n * as defined by milliseconds, while our external API defines them\n * as seconds.\n */\n if (options.duration) {\n options.duration = secondsToMilliseconds(options.duration);\n }\n if (options.repeatDelay) {\n options.repeatDelay = secondsToMilliseconds(options.repeatDelay);\n }\n if (options.from !== undefined) {\n options.keyframes[0] = options.from;\n }\n let shouldSkip = false;\n if (options.type === false ||\n (options.duration === 0 && !options.repeatDelay)) {\n options.duration = 0;\n if (options.delay === 0) {\n shouldSkip = true;\n }\n }\n if (instantAnimationState.current ||\n MotionGlobalConfig.skipAnimations) {\n shouldSkip = true;\n options.duration = 0;\n options.delay = 0;\n }\n /**\n * If we can or must skip creating the animation, and apply only\n * the final keyframe, do so. We also check once keyframes are resolved but\n * this early check prevents the need to create an animation at all.\n */\n if (shouldSkip && !isHandoff && value.get() !== undefined) {\n const finalKeyframe = getFinalKeyframe(options.keyframes, valueTransition);\n if (finalKeyframe !== undefined) {\n frame.update(() => {\n options.onUpdate(finalKeyframe);\n options.onComplete();\n });\n // We still want to return some animation controls here rather\n // than returning undefined\n return new GroupPlaybackControls([]);\n }\n }\n /**\n * Animate via WAAPI if possible. If this is a handoff animation, the optimised animation will be running via\n * WAAPI. Therefore, this animation must be JS to ensure it runs \"under\" the\n * optimised animation.\n */\n if (!isHandoff && AcceleratedAnimation.supports(options)) {\n return new AcceleratedAnimation(options);\n }\n else {\n return new MainThreadAnimation(options);\n }\n};\n\nexport { animateMotionValue };\n","import { resolveFinalValueInKeyframes } from '../../utils/resolve-value.mjs';\nimport { motionValue } from '../../value/index.mjs';\nimport { resolveVariant } from './resolve-dynamic-variants.mjs';\n\n/**\n * Set VisualElement's MotionValue, creating a new MotionValue for it if\n * it doesn't exist.\n */\nfunction setMotionValue(visualElement, key, value) {\n if (visualElement.hasValue(key)) {\n visualElement.getValue(key).set(value);\n }\n else {\n visualElement.addValue(key, motionValue(value));\n }\n}\nfunction setTarget(visualElement, definition) {\n const resolved = resolveVariant(visualElement, definition);\n let { transitionEnd = {}, transition = {}, ...target } = resolved || {};\n target = { ...target, ...transitionEnd };\n for (const key in target) {\n const value = resolveFinalValueInKeyframes(target[key]);\n setMotionValue(visualElement, key, value);\n }\n}\n\nexport { setTarget };\n","import { optimizedAppearDataAttribute } from './data-id.mjs';\n\nfunction getOptimisedAppearId(visualElement) {\n return visualElement.props[optimizedAppearDataAttribute];\n}\n\nexport { getOptimisedAppearId };\n","import { MotionValue } from '../index.mjs';\nimport { getWillChangeName } from './get-will-change-name.mjs';\nimport { removeItem } from '../../utils/array.mjs';\n\nclass WillChangeMotionValue extends MotionValue {\n constructor() {\n super(...arguments);\n this.output = [];\n this.counts = new Map();\n }\n add(name) {\n const styleName = getWillChangeName(name);\n if (!styleName)\n return;\n /**\n * Update counter. Each value has an indepdent counter\n * as multiple sources could be requesting the same value\n * gets added to will-change.\n */\n const prevCount = this.counts.get(styleName) || 0;\n this.counts.set(styleName, prevCount + 1);\n if (prevCount === 0) {\n this.output.push(styleName);\n this.update();\n }\n /**\n * Prevents the remove function from being called multiple times.\n */\n let hasRemoved = false;\n return () => {\n if (hasRemoved)\n return;\n hasRemoved = true;\n const newCount = this.counts.get(styleName) - 1;\n this.counts.set(styleName, newCount);\n if (newCount === 0) {\n removeItem(this.output, styleName);\n this.update();\n }\n };\n }\n update() {\n this.set(this.output.length ? this.output.join(\", \") : \"auto\");\n }\n}\n\nexport { WillChangeMotionValue };\n","import { WillChangeMotionValue } from './WillChangeMotionValue.mjs';\nimport { isWillChangeMotionValue } from './is.mjs';\n\nfunction addValueToWillChange(visualElement, key) {\n var _a;\n if (!visualElement.applyWillChange)\n return;\n let willChange = visualElement.getValue(\"willChange\");\n /**\n * If we haven't created a willChange MotionValue, and the we haven't been\n * manually provided one, create one.\n */\n if (!willChange && !((_a = visualElement.props.style) === null || _a === void 0 ? void 0 : _a.willChange)) {\n willChange = new WillChangeMotionValue(\"auto\");\n visualElement.addValue(\"willChange\", willChange);\n }\n /**\n * It could be that a user has set willChange to a regular MotionValue,\n * in which case we can't add the value to it.\n */\n if (isWillChangeMotionValue(willChange)) {\n return willChange.add(key);\n }\n}\n\nexport { addValueToWillChange };\n","import { isMotionValue } from '../utils/is-motion-value.mjs';\n\nfunction isWillChangeMotionValue(value) {\n return Boolean(isMotionValue(value) && value.add);\n}\n\nexport { isWillChangeMotionValue };\n","import { transformProps } from '../../render/html/utils/transform.mjs';\nimport { animateMotionValue } from './motion-value.mjs';\nimport { setTarget } from '../../render/utils/setters.mjs';\nimport { getValueTransition } from '../utils/transitions.mjs';\nimport { getOptimisedAppearId } from '../optimized-appear/get-appear-id.mjs';\nimport { addValueToWillChange } from '../../value/use-will-change/add-will-change.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\n/**\n * Decide whether we should block this animation. Previously, we achieved this\n * just by checking whether the key was listed in protectedKeys, but this\n * posed problems if an animation was triggered by afterChildren and protectedKeys\n * had been set to true in the meantime.\n */\nfunction shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {\n const shouldBlock = protectedKeys.hasOwnProperty(key) && needsAnimating[key] !== true;\n needsAnimating[key] = false;\n return shouldBlock;\n}\nfunction animateTarget(visualElement, targetAndTransition, { delay = 0, transitionOverride, type } = {}) {\n var _a;\n let { transition = visualElement.getDefaultTransition(), transitionEnd, ...target } = targetAndTransition;\n if (transitionOverride)\n transition = transitionOverride;\n const animations = [];\n const animationTypeState = type &&\n visualElement.animationState &&\n visualElement.animationState.getState()[type];\n for (const key in target) {\n const value = visualElement.getValue(key, (_a = visualElement.latestValues[key]) !== null && _a !== void 0 ? _a : null);\n const valueTarget = target[key];\n if (valueTarget === undefined ||\n (animationTypeState &&\n shouldBlockAnimation(animationTypeState, key))) {\n continue;\n }\n const valueTransition = {\n delay,\n ...getValueTransition(transition || {}, key),\n };\n /**\n * If this is the first time a value is being animated, check\n * to see if we're handling off from an existing animation.\n */\n let isHandoff = false;\n if (window.MotionHandoffAnimation) {\n const appearId = getOptimisedAppearId(visualElement);\n if (appearId) {\n const startTime = window.MotionHandoffAnimation(appearId, key, frame);\n if (startTime !== null) {\n valueTransition.startTime = startTime;\n isHandoff = true;\n }\n }\n }\n value.start(animateMotionValue(key, value, valueTarget, visualElement.shouldReduceMotion && transformProps.has(key)\n ? { type: false }\n : valueTransition, visualElement, isHandoff, addValueToWillChange(visualElement, key)));\n const animation = value.animation;\n if (animation) {\n animations.push(animation);\n }\n }\n if (transitionEnd) {\n Promise.all(animations).then(() => {\n frame.update(() => {\n transitionEnd && setTarget(visualElement, transitionEnd);\n });\n });\n }\n return animations;\n}\n\nexport { animateTarget };\n","import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\n\nfunction animateVariant(visualElement, variant, options = {}) {\n var _a;\n const resolved = resolveVariant(visualElement, variant, options.type === \"exit\"\n ? (_a = visualElement.presenceContext) === null || _a === void 0 ? void 0 : _a.custom\n : undefined);\n let { transition = visualElement.getDefaultTransition() || {} } = resolved || {};\n if (options.transitionOverride) {\n transition = options.transitionOverride;\n }\n /**\n * If we have a variant, create a callback that runs it as an animation.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getAnimation = resolved\n ? () => Promise.all(animateTarget(visualElement, resolved, options))\n : () => Promise.resolve();\n /**\n * If we have children, create a callback that runs all their animations.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getChildAnimations = visualElement.variantChildren && visualElement.variantChildren.size\n ? (forwardDelay = 0) => {\n const { delayChildren = 0, staggerChildren, staggerDirection, } = transition;\n return animateChildren(visualElement, variant, delayChildren + forwardDelay, staggerChildren, staggerDirection, options);\n }\n : () => Promise.resolve();\n /**\n * If the transition explicitly defines a \"when\" option, we need to resolve either\n * this animation or all children animations before playing the other.\n */\n const { when } = transition;\n if (when) {\n const [first, last] = when === \"beforeChildren\"\n ? [getAnimation, getChildAnimations]\n : [getChildAnimations, getAnimation];\n return first().then(() => last());\n }\n else {\n return Promise.all([getAnimation(), getChildAnimations(options.delay)]);\n }\n}\nfunction animateChildren(visualElement, variant, delayChildren = 0, staggerChildren = 0, staggerDirection = 1, options) {\n const animations = [];\n const maxStaggerDuration = (visualElement.variantChildren.size - 1) * staggerChildren;\n const generateStaggerDuration = staggerDirection === 1\n ? (i = 0) => i * staggerChildren\n : (i = 0) => maxStaggerDuration - i * staggerChildren;\n Array.from(visualElement.variantChildren)\n .sort(sortByTreeOrder)\n .forEach((child, i) => {\n child.notify(\"AnimationStart\", variant);\n animations.push(animateVariant(child, variant, {\n ...options,\n delay: delayChildren + generateStaggerDuration(i),\n }).then(() => child.notify(\"AnimationComplete\", variant)));\n });\n return Promise.all(animations);\n}\nfunction sortByTreeOrder(a, b) {\n return a.sortNodePosition(b);\n}\n\nexport { animateVariant, sortByTreeOrder };\n","import { isAnimationControls } from '../../animation/utils/is-animation-controls.mjs';\nimport { isKeyframesTarget } from '../../animation/utils/is-keyframes-target.mjs';\nimport { shallowCompare } from '../../utils/shallow-compare.mjs';\nimport { isVariantLabel } from './is-variant-label.mjs';\nimport { resolveVariant } from './resolve-dynamic-variants.mjs';\nimport { variantPriorityOrder } from './variant-props.mjs';\nimport { animateVisualElement } from '../../animation/interfaces/visual-element.mjs';\n\nconst reversePriorityOrder = [...variantPriorityOrder].reverse();\nconst numAnimationTypes = variantPriorityOrder.length;\nfunction animateList(visualElement) {\n return (animations) => Promise.all(animations.map(({ animation, options }) => animateVisualElement(visualElement, animation, options)));\n}\nfunction createAnimationState(visualElement) {\n let animate = animateList(visualElement);\n let state = createState();\n let isInitialRender = true;\n /**\n * This function will be used to reduce the animation definitions for\n * each active animation type into an object of resolved values for it.\n */\n const buildResolvedTypeValues = (type) => (acc, definition) => {\n var _a;\n const resolved = resolveVariant(visualElement, definition, type === \"exit\"\n ? (_a = visualElement.presenceContext) === null || _a === void 0 ? void 0 : _a.custom\n : undefined);\n if (resolved) {\n const { transition, transitionEnd, ...target } = resolved;\n acc = { ...acc, ...target, ...transitionEnd };\n }\n return acc;\n };\n /**\n * This just allows us to inject mocked animation functions\n * @internal\n */\n function setAnimateFunction(makeAnimator) {\n animate = makeAnimator(visualElement);\n }\n /**\n * When we receive new props, we need to:\n * 1. Create a list of protected keys for each type. This is a directory of\n * value keys that are currently being \"handled\" by types of a higher priority\n * so that whenever an animation is played of a given type, these values are\n * protected from being animated.\n * 2. Determine if an animation type needs animating.\n * 3. Determine if any values have been removed from a type and figure out\n * what to animate those to.\n */\n function animateChanges(changedActiveType) {\n const props = visualElement.getProps();\n const context = visualElement.getVariantContext(true) || {};\n /**\n * A list of animations that we'll build into as we iterate through the animation\n * types. This will get executed at the end of the function.\n */\n const animations = [];\n /**\n * Keep track of which values have been removed. Then, as we hit lower priority\n * animation types, we can check if they contain removed values and animate to that.\n */\n const removedKeys = new Set();\n /**\n * A dictionary of all encountered keys. This is an object to let us build into and\n * copy it without iteration. Each time we hit an animation type we set its protected\n * keys - the keys its not allowed to animate - to the latest version of this object.\n */\n let encounteredKeys = {};\n /**\n * If a variant has been removed at a given index, and this component is controlling\n * variant animations, we want to ensure lower-priority variants are forced to animate.\n */\n let removedVariantIndex = Infinity;\n /**\n * Iterate through all animation types in reverse priority order. For each, we want to\n * detect which values it's handling and whether or not they've changed (and therefore\n * need to be animated). If any values have been removed, we want to detect those in\n * lower priority props and flag for animation.\n */\n for (let i = 0; i < numAnimationTypes; i++) {\n const type = reversePriorityOrder[i];\n const typeState = state[type];\n const prop = props[type] !== undefined\n ? props[type]\n : context[type];\n const propIsVariant = isVariantLabel(prop);\n /**\n * If this type has *just* changed isActive status, set activeDelta\n * to that status. Otherwise set to null.\n */\n const activeDelta = type === changedActiveType ? typeState.isActive : null;\n if (activeDelta === false)\n removedVariantIndex = i;\n /**\n * If this prop is an inherited variant, rather than been set directly on the\n * component itself, we want to make sure we allow the parent to trigger animations.\n *\n * TODO: Can probably change this to a !isControllingVariants check\n */\n let isInherited = prop === context[type] &&\n prop !== props[type] &&\n propIsVariant;\n /**\n *\n */\n if (isInherited &&\n isInitialRender &&\n visualElement.manuallyAnimateOnMount) {\n isInherited = false;\n }\n /**\n * Set all encountered keys so far as the protected keys for this type. This will\n * be any key that has been animated or otherwise handled by active, higher-priortiy types.\n */\n typeState.protectedKeys = { ...encounteredKeys };\n // Check if we can skip analysing this prop early\n if (\n // If it isn't active and hasn't *just* been set as inactive\n (!typeState.isActive && activeDelta === null) ||\n // If we didn't and don't have any defined prop for this animation type\n (!prop && !typeState.prevProp) ||\n // Or if the prop doesn't define an animation\n isAnimationControls(prop) ||\n typeof prop === \"boolean\") {\n continue;\n }\n /**\n * As we go look through the values defined on this type, if we detect\n * a changed value or a value that was removed in a higher priority, we set\n * this to true and add this prop to the animation list.\n */\n const variantDidChange = checkVariantsDidChange(typeState.prevProp, prop);\n let shouldAnimateType = variantDidChange ||\n // If we're making this variant active, we want to always make it active\n (type === changedActiveType &&\n typeState.isActive &&\n !isInherited &&\n propIsVariant) ||\n // If we removed a higher-priority variant (i is in reverse order)\n (i > removedVariantIndex && propIsVariant);\n let handledRemovedValues = false;\n /**\n * As animations can be set as variant lists, variants or target objects, we\n * coerce everything to an array if it isn't one already\n */\n const definitionList = Array.isArray(prop) ? prop : [prop];\n /**\n * Build an object of all the resolved values. We'll use this in the subsequent\n * animateChanges calls to determine whether a value has changed.\n */\n let resolvedValues = definitionList.reduce(buildResolvedTypeValues(type), {});\n if (activeDelta === false)\n resolvedValues = {};\n /**\n * Now we need to loop through all the keys in the prev prop and this prop,\n * and decide:\n * 1. If the value has changed, and needs animating\n * 2. If it has been removed, and needs adding to the removedKeys set\n * 3. If it has been removed in a higher priority type and needs animating\n * 4. If it hasn't been removed in a higher priority but hasn't changed, and\n * needs adding to the type's protectedKeys list.\n */\n const { prevResolvedValues = {} } = typeState;\n const allKeys = {\n ...prevResolvedValues,\n ...resolvedValues,\n };\n const markToAnimate = (key) => {\n shouldAnimateType = true;\n if (removedKeys.has(key)) {\n handledRemovedValues = true;\n removedKeys.delete(key);\n }\n typeState.needsAnimating[key] = true;\n const motionValue = visualElement.getValue(key);\n if (motionValue)\n motionValue.liveStyle = false;\n };\n for (const key in allKeys) {\n const next = resolvedValues[key];\n const prev = prevResolvedValues[key];\n // If we've already handled this we can just skip ahead\n if (encounteredKeys.hasOwnProperty(key))\n continue;\n /**\n * If the value has changed, we probably want to animate it.\n */\n let valueHasChanged = false;\n if (isKeyframesTarget(next) && isKeyframesTarget(prev)) {\n valueHasChanged = !shallowCompare(next, prev);\n }\n else {\n valueHasChanged = next !== prev;\n }\n if (valueHasChanged) {\n if (next !== undefined && next !== null) {\n // If next is defined and doesn't equal prev, it needs animating\n markToAnimate(key);\n }\n else {\n // If it's undefined, it's been removed.\n removedKeys.add(key);\n }\n }\n else if (next !== undefined && removedKeys.has(key)) {\n /**\n * If next hasn't changed and it isn't undefined, we want to check if it's\n * been removed by a higher priority\n */\n markToAnimate(key);\n }\n else {\n /**\n * If it hasn't changed, we add it to the list of protected values\n * to ensure it doesn't get animated.\n */\n typeState.protectedKeys[key] = true;\n }\n }\n /**\n * Update the typeState so next time animateChanges is called we can compare the\n * latest prop and resolvedValues to these.\n */\n typeState.prevProp = prop;\n typeState.prevResolvedValues = resolvedValues;\n /**\n *\n */\n if (typeState.isActive) {\n encounteredKeys = { ...encounteredKeys, ...resolvedValues };\n }\n if (isInitialRender && visualElement.blockInitialAnimation) {\n shouldAnimateType = false;\n }\n /**\n * If this is an inherited prop we want to hard-block animations\n */\n if (shouldAnimateType && (!isInherited || handledRemovedValues)) {\n animations.push(...definitionList.map((animation) => ({\n animation: animation,\n options: { type },\n })));\n }\n }\n /**\n * If there are some removed value that haven't been dealt with,\n * we need to create a new animation that falls back either to the value\n * defined in the style prop, or the last read value.\n */\n if (removedKeys.size) {\n const fallbackAnimation = {};\n removedKeys.forEach((key) => {\n const fallbackTarget = visualElement.getBaseTarget(key);\n const motionValue = visualElement.getValue(key);\n if (motionValue)\n motionValue.liveStyle = true;\n // @ts-expect-error - @mattgperry to figure if we should do something here\n fallbackAnimation[key] = fallbackTarget !== null && fallbackTarget !== void 0 ? fallbackTarget : null;\n });\n animations.push({ animation: fallbackAnimation });\n }\n let shouldAnimate = Boolean(animations.length);\n if (isInitialRender &&\n (props.initial === false || props.initial === props.animate) &&\n !visualElement.manuallyAnimateOnMount) {\n shouldAnimate = false;\n }\n isInitialRender = false;\n return shouldAnimate ? animate(animations) : Promise.resolve();\n }\n /**\n * Change whether a certain animation type is active.\n */\n function setActive(type, isActive) {\n var _a;\n // If the active state hasn't changed, we can safely do nothing here\n if (state[type].isActive === isActive)\n return Promise.resolve();\n // Propagate active change to children\n (_a = visualElement.variantChildren) === null || _a === void 0 ? void 0 : _a.forEach((child) => { var _a; return (_a = child.animationState) === null || _a === void 0 ? void 0 : _a.setActive(type, isActive); });\n state[type].isActive = isActive;\n const animations = animateChanges(type);\n for (const key in state) {\n state[key].protectedKeys = {};\n }\n return animations;\n }\n return {\n animateChanges,\n setActive,\n setAnimateFunction,\n getState: () => state,\n reset: () => {\n state = createState();\n isInitialRender = true;\n },\n };\n}\nfunction checkVariantsDidChange(prev, next) {\n if (typeof next === \"string\") {\n return next !== prev;\n }\n else if (Array.isArray(next)) {\n return !shallowCompare(next, prev);\n }\n return false;\n}\nfunction createTypeState(isActive = false) {\n return {\n isActive,\n protectedKeys: {},\n needsAnimating: {},\n prevResolvedValues: {},\n };\n}\nfunction createState() {\n return {\n animate: createTypeState(true),\n whileInView: createTypeState(),\n whileHover: createTypeState(),\n whileTap: createTypeState(),\n whileDrag: createTypeState(),\n whileFocus: createTypeState(),\n exit: createTypeState(),\n };\n}\n\nexport { checkVariantsDidChange, createAnimationState };\n","import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\nimport { animateVariant } from './visual-element-variant.mjs';\n\nfunction animateVisualElement(visualElement, definition, options = {}) {\n visualElement.notify(\"AnimationStart\", definition);\n let animation;\n if (Array.isArray(definition)) {\n const animations = definition.map((variant) => animateVariant(visualElement, variant, options));\n animation = Promise.all(animations);\n }\n else if (typeof definition === \"string\") {\n animation = animateVariant(visualElement, definition, options);\n }\n else {\n const resolvedDefinition = typeof definition === \"function\"\n ? resolveVariant(visualElement, definition, options.custom)\n : definition;\n animation = Promise.all(animateTarget(visualElement, resolvedDefinition, options));\n }\n return animation.then(() => {\n visualElement.notify(\"AnimationComplete\", definition);\n });\n}\n\nexport { animateVisualElement };\n","import { Feature } from '../Feature.mjs';\n\nlet id = 0;\nclass ExitAnimationFeature extends Feature {\n constructor() {\n super(...arguments);\n this.id = id++;\n }\n update() {\n if (!this.node.presenceContext)\n return;\n const { isPresent, onExitComplete } = this.node.presenceContext;\n const { isPresent: prevIsPresent } = this.node.prevPresenceContext || {};\n if (!this.node.animationState || isPresent === prevIsPresent) {\n return;\n }\n const exitAnimation = this.node.animationState.setActive(\"exit\", !isPresent);\n if (onExitComplete && !isPresent) {\n exitAnimation.then(() => onExitComplete(this.id));\n }\n }\n mount() {\n const { register } = this.node.presenceContext || {};\n if (register) {\n this.unmount = register(this.id);\n }\n }\n unmount() { }\n}\n\nexport { ExitAnimationFeature };\n","import { AnimationFeature } from './animation/index.mjs';\nimport { ExitAnimationFeature } from './animation/exit.mjs';\n\nconst animations = {\n animation: {\n Feature: AnimationFeature,\n },\n exit: {\n Feature: ExitAnimationFeature,\n },\n};\n\nexport { animations };\n","import { isAnimationControls } from '../../../animation/utils/is-animation-controls.mjs';\nimport { createAnimationState } from '../../../render/utils/animation-state.mjs';\nimport { Feature } from '../Feature.mjs';\n\nclass AnimationFeature extends Feature {\n /**\n * We dynamically generate the AnimationState manager as it contains a reference\n * to the underlying animation library. We only want to load that if we load this,\n * so people can optionally code split it out using the `m` component.\n */\n constructor(node) {\n super(node);\n node.animationState || (node.animationState = createAnimationState(node));\n }\n updateAnimationControlsSubscription() {\n const { animate } = this.node.getProps();\n if (isAnimationControls(animate)) {\n this.unmountControls = animate.subscribe(this.node);\n }\n }\n /**\n * Subscribe any provided AnimationControls to the component's VisualElement\n */\n mount() {\n this.updateAnimationControlsSubscription();\n }\n update() {\n const { animate } = this.node.getProps();\n const { animate: prevAnimate } = this.node.prevProps || {};\n if (animate !== prevAnimate) {\n this.updateAnimationControlsSubscription();\n }\n }\n unmount() {\n var _a;\n this.node.animationState.reset();\n (_a = this.unmountControls) === null || _a === void 0 ? void 0 : _a.call(this);\n }\n}\n\nexport { AnimationFeature };\n","const distance = (a, b) => Math.abs(a - b);\nfunction distance2D(a, b) {\n // Multi-dimensional\n const xDelta = distance(a.x, b.x);\n const yDelta = distance(a.y, b.y);\n return Math.sqrt(xDelta ** 2 + yDelta ** 2);\n}\n\nexport { distance, distance2D };\n","import { extractEventInfo } from '../../events/event-info.mjs';\nimport { secondsToMilliseconds, millisecondsToSeconds } from '../../utils/time-conversion.mjs';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { pipe } from '../../utils/pipe.mjs';\nimport { distance2D } from '../../utils/distance.mjs';\nimport { isPrimaryPointer } from '../../events/utils/is-primary-pointer.mjs';\nimport { frame, cancelFrame, frameData } from '../../frameloop/frame.mjs';\n\n/**\n * @internal\n */\nclass PanSession {\n constructor(event, handlers, { transformPagePoint, contextWindow, dragSnapToOrigin = false } = {}) {\n /**\n * @internal\n */\n this.startEvent = null;\n /**\n * @internal\n */\n this.lastMoveEvent = null;\n /**\n * @internal\n */\n this.lastMoveEventInfo = null;\n /**\n * @internal\n */\n this.handlers = {};\n /**\n * @internal\n */\n this.contextWindow = window;\n this.updatePoint = () => {\n if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n return;\n const info = getPanInfo(this.lastMoveEventInfo, this.history);\n const isPanStarted = this.startEvent !== null;\n // Only start panning if the offset is larger than 3 pixels. If we make it\n // any larger than this we'll want to reset the pointer history\n // on the first update to avoid visual snapping to the cursoe.\n const isDistancePastThreshold = distance2D(info.offset, { x: 0, y: 0 }) >= 3;\n if (!isPanStarted && !isDistancePastThreshold)\n return;\n const { point } = info;\n const { timestamp } = frameData;\n this.history.push({ ...point, timestamp });\n const { onStart, onMove } = this.handlers;\n if (!isPanStarted) {\n onStart && onStart(this.lastMoveEvent, info);\n this.startEvent = this.lastMoveEvent;\n }\n onMove && onMove(this.lastMoveEvent, info);\n };\n this.handlePointerMove = (event, info) => {\n this.lastMoveEvent = event;\n this.lastMoveEventInfo = transformPoint(info, this.transformPagePoint);\n // Throttle mouse move event to once per frame\n frame.update(this.updatePoint, true);\n };\n this.handlePointerUp = (event, info) => {\n this.end();\n const { onEnd, onSessionEnd, resumeAnimation } = this.handlers;\n if (this.dragSnapToOrigin)\n resumeAnimation && resumeAnimation();\n if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n return;\n const panInfo = getPanInfo(event.type === \"pointercancel\"\n ? this.lastMoveEventInfo\n : transformPoint(info, this.transformPagePoint), this.history);\n if (this.startEvent && onEnd) {\n onEnd(event, panInfo);\n }\n onSessionEnd && onSessionEnd(event, panInfo);\n };\n // If we have more than one touch, don't start detecting this gesture\n if (!isPrimaryPointer(event))\n return;\n this.dragSnapToOrigin = dragSnapToOrigin;\n this.handlers = handlers;\n this.transformPagePoint = transformPagePoint;\n this.contextWindow = contextWindow || window;\n const info = extractEventInfo(event);\n const initialInfo = transformPoint(info, this.transformPagePoint);\n const { point } = initialInfo;\n const { timestamp } = frameData;\n this.history = [{ ...point, timestamp }];\n const { onSessionStart } = handlers;\n onSessionStart &&\n onSessionStart(event, getPanInfo(initialInfo, this.history));\n this.removeListeners = pipe(addPointerEvent(this.contextWindow, \"pointermove\", this.handlePointerMove), addPointerEvent(this.contextWindow, \"pointerup\", this.handlePointerUp), addPointerEvent(this.contextWindow, \"pointercancel\", this.handlePointerUp));\n }\n updateHandlers(handlers) {\n this.handlers = handlers;\n }\n end() {\n this.removeListeners && this.removeListeners();\n cancelFrame(this.updatePoint);\n }\n}\nfunction transformPoint(info, transformPagePoint) {\n return transformPagePoint ? { point: transformPagePoint(info.point) } : info;\n}\nfunction subtractPoint(a, b) {\n return { x: a.x - b.x, y: a.y - b.y };\n}\nfunction getPanInfo({ point }, history) {\n return {\n point,\n delta: subtractPoint(point, lastDevicePoint(history)),\n offset: subtractPoint(point, startDevicePoint(history)),\n velocity: getVelocity(history, 0.1),\n };\n}\nfunction startDevicePoint(history) {\n return history[0];\n}\nfunction lastDevicePoint(history) {\n return history[history.length - 1];\n}\nfunction getVelocity(history, timeDelta) {\n if (history.length < 2) {\n return { x: 0, y: 0 };\n }\n let i = history.length - 1;\n let timestampedPoint = null;\n const lastPoint = lastDevicePoint(history);\n while (i >= 0) {\n timestampedPoint = history[i];\n if (lastPoint.timestamp - timestampedPoint.timestamp >\n secondsToMilliseconds(timeDelta)) {\n break;\n }\n i--;\n }\n if (!timestampedPoint) {\n return { x: 0, y: 0 };\n }\n const time = millisecondsToSeconds(lastPoint.timestamp - timestampedPoint.timestamp);\n if (time === 0) {\n return { x: 0, y: 0 };\n }\n const currentVelocity = {\n x: (lastPoint.x - timestampedPoint.x) / time,\n y: (lastPoint.y - timestampedPoint.y) / time,\n };\n if (currentVelocity.x === Infinity) {\n currentVelocity.x = 0;\n }\n if (currentVelocity.y === Infinity) {\n currentVelocity.y = 0;\n }\n return currentVelocity;\n}\n\nexport { PanSession };\n","import { mixNumber } from '../../utils/mix/number.mjs';\n\nconst SCALE_PRECISION = 0.0001;\nconst SCALE_MIN = 1 - SCALE_PRECISION;\nconst SCALE_MAX = 1 + SCALE_PRECISION;\nconst TRANSLATE_PRECISION = 0.01;\nconst TRANSLATE_MIN = 0 - TRANSLATE_PRECISION;\nconst TRANSLATE_MAX = 0 + TRANSLATE_PRECISION;\nfunction calcLength(axis) {\n return axis.max - axis.min;\n}\nfunction isNear(value, target, maxDistance) {\n return Math.abs(value - target) <= maxDistance;\n}\nfunction calcAxisDelta(delta, source, target, origin = 0.5) {\n delta.origin = origin;\n delta.originPoint = mixNumber(source.min, source.max, delta.origin);\n delta.scale = calcLength(target) / calcLength(source);\n delta.translate =\n mixNumber(target.min, target.max, delta.origin) - delta.originPoint;\n if ((delta.scale >= SCALE_MIN && delta.scale <= SCALE_MAX) ||\n isNaN(delta.scale)) {\n delta.scale = 1.0;\n }\n if ((delta.translate >= TRANSLATE_MIN &&\n delta.translate <= TRANSLATE_MAX) ||\n isNaN(delta.translate)) {\n delta.translate = 0.0;\n }\n}\nfunction calcBoxDelta(delta, source, target, origin) {\n calcAxisDelta(delta.x, source.x, target.x, origin ? origin.originX : undefined);\n calcAxisDelta(delta.y, source.y, target.y, origin ? origin.originY : undefined);\n}\nfunction calcRelativeAxis(target, relative, parent) {\n target.min = parent.min + relative.min;\n target.max = target.min + calcLength(relative);\n}\nfunction calcRelativeBox(target, relative, parent) {\n calcRelativeAxis(target.x, relative.x, parent.x);\n calcRelativeAxis(target.y, relative.y, parent.y);\n}\nfunction calcRelativeAxisPosition(target, layout, parent) {\n target.min = layout.min - parent.min;\n target.max = target.min + calcLength(layout);\n}\nfunction calcRelativePosition(target, layout, parent) {\n calcRelativeAxisPosition(target.x, layout.x, parent.x);\n calcRelativeAxisPosition(target.y, layout.y, parent.y);\n}\n\nexport { calcAxisDelta, calcBoxDelta, calcLength, calcRelativeAxis, calcRelativeAxisPosition, calcRelativeBox, calcRelativePosition, isNear };\n","import { progress } from '../../../utils/progress.mjs';\nimport { calcLength } from '../../../projection/geometry/delta-calc.mjs';\nimport { clamp } from '../../../utils/clamp.mjs';\nimport { mixNumber } from '../../../utils/mix/number.mjs';\n\n/**\n * Apply constraints to a point. These constraints are both physical along an\n * axis, and an elastic factor that determines how much to constrain the point\n * by if it does lie outside the defined parameters.\n */\nfunction applyConstraints(point, { min, max }, elastic) {\n if (min !== undefined && point < min) {\n // If we have a min point defined, and this is outside of that, constrain\n point = elastic\n ? mixNumber(min, point, elastic.min)\n : Math.max(point, min);\n }\n else if (max !== undefined && point > max) {\n // If we have a max point defined, and this is outside of that, constrain\n point = elastic\n ? mixNumber(max, point, elastic.max)\n : Math.min(point, max);\n }\n return point;\n}\n/**\n * Calculate constraints in terms of the viewport when defined relatively to the\n * measured axis. This is measured from the nearest edge, so a max constraint of 200\n * on an axis with a max value of 300 would return a constraint of 500 - axis length\n */\nfunction calcRelativeAxisConstraints(axis, min, max) {\n return {\n min: min !== undefined ? axis.min + min : undefined,\n max: max !== undefined\n ? axis.max + max - (axis.max - axis.min)\n : undefined,\n };\n}\n/**\n * Calculate constraints in terms of the viewport when\n * defined relatively to the measured bounding box.\n */\nfunction calcRelativeConstraints(layoutBox, { top, left, bottom, right }) {\n return {\n x: calcRelativeAxisConstraints(layoutBox.x, left, right),\n y: calcRelativeAxisConstraints(layoutBox.y, top, bottom),\n };\n}\n/**\n * Calculate viewport constraints when defined as another viewport-relative axis\n */\nfunction calcViewportAxisConstraints(layoutAxis, constraintsAxis) {\n let min = constraintsAxis.min - layoutAxis.min;\n let max = constraintsAxis.max - layoutAxis.max;\n // If the constraints axis is actually smaller than the layout axis then we can\n // flip the constraints\n if (constraintsAxis.max - constraintsAxis.min <\n layoutAxis.max - layoutAxis.min) {\n [min, max] = [max, min];\n }\n return { min, max };\n}\n/**\n * Calculate viewport constraints when defined as another viewport-relative box\n */\nfunction calcViewportConstraints(layoutBox, constraintsBox) {\n return {\n x: calcViewportAxisConstraints(layoutBox.x, constraintsBox.x),\n y: calcViewportAxisConstraints(layoutBox.y, constraintsBox.y),\n };\n}\n/**\n * Calculate a transform origin relative to the source axis, between 0-1, that results\n * in an asthetically pleasing scale/transform needed to project from source to target.\n */\nfunction calcOrigin(source, target) {\n let origin = 0.5;\n const sourceLength = calcLength(source);\n const targetLength = calcLength(target);\n if (targetLength > sourceLength) {\n origin = progress(target.min, target.max - sourceLength, source.min);\n }\n else if (sourceLength > targetLength) {\n origin = progress(source.min, source.max - targetLength, target.min);\n }\n return clamp(0, 1, origin);\n}\n/**\n * Rebase the calculated viewport constraints relative to the layout.min point.\n */\nfunction rebaseAxisConstraints(layout, constraints) {\n const relativeConstraints = {};\n if (constraints.min !== undefined) {\n relativeConstraints.min = constraints.min - layout.min;\n }\n if (constraints.max !== undefined) {\n relativeConstraints.max = constraints.max - layout.min;\n }\n return relativeConstraints;\n}\nconst defaultElastic = 0.35;\n/**\n * Accepts a dragElastic prop and returns resolved elastic values for each axis.\n */\nfunction resolveDragElastic(dragElastic = defaultElastic) {\n if (dragElastic === false) {\n dragElastic = 0;\n }\n else if (dragElastic === true) {\n dragElastic = defaultElastic;\n }\n return {\n x: resolveAxisElastic(dragElastic, \"left\", \"right\"),\n y: resolveAxisElastic(dragElastic, \"top\", \"bottom\"),\n };\n}\nfunction resolveAxisElastic(dragElastic, minLabel, maxLabel) {\n return {\n min: resolvePointElastic(dragElastic, minLabel),\n max: resolvePointElastic(dragElastic, maxLabel),\n };\n}\nfunction resolvePointElastic(dragElastic, label) {\n return typeof dragElastic === \"number\"\n ? dragElastic\n : dragElastic[label] || 0;\n}\n\nexport { applyConstraints, calcOrigin, calcRelativeAxisConstraints, calcRelativeConstraints, calcViewportAxisConstraints, calcViewportConstraints, defaultElastic, rebaseAxisConstraints, resolveAxisElastic, resolveDragElastic, resolvePointElastic };\n","const createAxisDelta = () => ({\n translate: 0,\n scale: 1,\n origin: 0,\n originPoint: 0,\n});\nconst createDelta = () => ({\n x: createAxisDelta(),\n y: createAxisDelta(),\n});\nconst createAxis = () => ({ min: 0, max: 0 });\nconst createBox = () => ({\n x: createAxis(),\n y: createAxis(),\n});\n\nexport { createAxis, createAxisDelta, createBox, createDelta };\n","function eachAxis(callback) {\n return [callback(\"x\"), callback(\"y\")];\n}\n\nexport { eachAxis };\n","/**\n * Bounding boxes tend to be defined as top, left, right, bottom. For various operations\n * it's easier to consider each axis individually. This function returns a bounding box\n * as a map of single-axis min/max values.\n */\nfunction convertBoundingBoxToBox({ top, left, right, bottom, }) {\n return {\n x: { min: left, max: right },\n y: { min: top, max: bottom },\n };\n}\nfunction convertBoxToBoundingBox({ x, y }) {\n return { top: y.min, right: x.max, bottom: y.max, left: x.min };\n}\n/**\n * Applies a TransformPoint function to a bounding box. TransformPoint is usually a function\n * provided by Framer to allow measured points to be corrected for device scaling. This is used\n * when measuring DOM elements and DOM event points.\n */\nfunction transformBoxPoints(point, transformPoint) {\n if (!transformPoint)\n return point;\n const topLeft = transformPoint({ x: point.left, y: point.top });\n const bottomRight = transformPoint({ x: point.right, y: point.bottom });\n return {\n top: topLeft.y,\n left: topLeft.x,\n bottom: bottomRight.y,\n right: bottomRight.x,\n };\n}\n\nexport { convertBoundingBoxToBox, convertBoxToBoundingBox, transformBoxPoints };\n","function isIdentityScale(scale) {\n return scale === undefined || scale === 1;\n}\nfunction hasScale({ scale, scaleX, scaleY }) {\n return (!isIdentityScale(scale) ||\n !isIdentityScale(scaleX) ||\n !isIdentityScale(scaleY));\n}\nfunction hasTransform(values) {\n return (hasScale(values) ||\n has2DTranslate(values) ||\n values.z ||\n values.rotate ||\n values.rotateX ||\n values.rotateY ||\n values.skewX ||\n values.skewY);\n}\nfunction has2DTranslate(values) {\n return is2DTranslate(values.x) || is2DTranslate(values.y);\n}\nfunction is2DTranslate(value) {\n return value && value !== \"0%\";\n}\n\nexport { has2DTranslate, hasScale, hasTransform };\n","import { mixNumber } from '../../utils/mix/number.mjs';\nimport { hasTransform } from '../utils/has-transform.mjs';\n\n/**\n * Scales a point based on a factor and an originPoint\n */\nfunction scalePoint(point, scale, originPoint) {\n const distanceFromOrigin = point - originPoint;\n const scaled = scale * distanceFromOrigin;\n return originPoint + scaled;\n}\n/**\n * Applies a translate/scale delta to a point\n */\nfunction applyPointDelta(point, translate, scale, originPoint, boxScale) {\n if (boxScale !== undefined) {\n point = scalePoint(point, boxScale, originPoint);\n }\n return scalePoint(point, scale, originPoint) + translate;\n}\n/**\n * Applies a translate/scale delta to an axis\n */\nfunction applyAxisDelta(axis, translate = 0, scale = 1, originPoint, boxScale) {\n axis.min = applyPointDelta(axis.min, translate, scale, originPoint, boxScale);\n axis.max = applyPointDelta(axis.max, translate, scale, originPoint, boxScale);\n}\n/**\n * Applies a translate/scale delta to a box\n */\nfunction applyBoxDelta(box, { x, y }) {\n applyAxisDelta(box.x, x.translate, x.scale, x.originPoint);\n applyAxisDelta(box.y, y.translate, y.scale, y.originPoint);\n}\nconst TREE_SCALE_SNAP_MIN = 0.999999999999;\nconst TREE_SCALE_SNAP_MAX = 1.0000000000001;\n/**\n * Apply a tree of deltas to a box. We do this to calculate the effect of all the transforms\n * in a tree upon our box before then calculating how to project it into our desired viewport-relative box\n *\n * This is the final nested loop within updateLayoutDelta for future refactoring\n */\nfunction applyTreeDeltas(box, treeScale, treePath, isSharedTransition = false) {\n const treeLength = treePath.length;\n if (!treeLength)\n return;\n // Reset the treeScale\n treeScale.x = treeScale.y = 1;\n let node;\n let delta;\n for (let i = 0; i < treeLength; i++) {\n node = treePath[i];\n delta = node.projectionDelta;\n /**\n * TODO: Prefer to remove this, but currently we have motion components with\n * display: contents in Framer.\n */\n const { visualElement } = node.options;\n if (visualElement &&\n visualElement.props.style &&\n visualElement.props.style.display === \"contents\") {\n continue;\n }\n if (isSharedTransition &&\n node.options.layoutScroll &&\n node.scroll &&\n node !== node.root) {\n transformBox(box, {\n x: -node.scroll.offset.x,\n y: -node.scroll.offset.y,\n });\n }\n if (delta) {\n // Incoporate each ancestor's scale into a culmulative treeScale for this component\n treeScale.x *= delta.x.scale;\n treeScale.y *= delta.y.scale;\n // Apply each ancestor's calculated delta into this component's recorded layout box\n applyBoxDelta(box, delta);\n }\n if (isSharedTransition && hasTransform(node.latestValues)) {\n transformBox(box, node.latestValues);\n }\n }\n /**\n * Snap tree scale back to 1 if it's within a non-perceivable threshold.\n * This will help reduce useless scales getting rendered.\n */\n if (treeScale.x < TREE_SCALE_SNAP_MAX &&\n treeScale.x > TREE_SCALE_SNAP_MIN) {\n treeScale.x = 1.0;\n }\n if (treeScale.y < TREE_SCALE_SNAP_MAX &&\n treeScale.y > TREE_SCALE_SNAP_MIN) {\n treeScale.y = 1.0;\n }\n}\nfunction translateAxis(axis, distance) {\n axis.min = axis.min + distance;\n axis.max = axis.max + distance;\n}\n/**\n * Apply a transform to an axis from the latest resolved motion values.\n * This function basically acts as a bridge between a flat motion value map\n * and applyAxisDelta\n */\nfunction transformAxis(axis, axisTranslate, axisScale, boxScale, axisOrigin = 0.5) {\n const originPoint = mixNumber(axis.min, axis.max, axisOrigin);\n // Apply the axis delta to the final axis\n applyAxisDelta(axis, axisTranslate, axisScale, originPoint, boxScale);\n}\n/**\n * Apply a transform to a box from the latest resolved motion values.\n */\nfunction transformBox(box, transform) {\n transformAxis(box.x, transform.x, transform.scaleX, transform.scale, transform.originX);\n transformAxis(box.y, transform.y, transform.scaleY, transform.scale, transform.originY);\n}\n\nexport { applyAxisDelta, applyBoxDelta, applyPointDelta, applyTreeDeltas, scalePoint, transformAxis, transformBox, translateAxis };\n","import { convertBoundingBoxToBox, transformBoxPoints } from '../geometry/conversion.mjs';\nimport { translateAxis } from '../geometry/delta-apply.mjs';\n\nfunction measureViewportBox(instance, transformPoint) {\n return convertBoundingBoxToBox(transformBoxPoints(instance.getBoundingClientRect(), transformPoint));\n}\nfunction measurePageBox(element, rootProjectionNode, transformPagePoint) {\n const viewportBox = measureViewportBox(element, transformPagePoint);\n const { scroll } = rootProjectionNode;\n if (scroll) {\n translateAxis(viewportBox.x, scroll.offset.x);\n translateAxis(viewportBox.y, scroll.offset.y);\n }\n return viewportBox;\n}\n\nexport { measurePageBox, measureViewportBox };\n","// Fixes https://github.com/framer/motion/issues/2270\nconst getContextWindow = ({ current }) => {\n return current ? current.ownerDocument.defaultView : null;\n};\n\nexport { getContextWindow };\n","import { invariant } from '../../utils/errors.mjs';\nimport { PanSession } from '../pan/PanSession.mjs';\nimport { getGlobalLock } from './utils/lock.mjs';\nimport { isRefObject } from '../../utils/is-ref-object.mjs';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { applyConstraints, calcRelativeConstraints, resolveDragElastic, rebaseAxisConstraints, calcViewportConstraints, calcOrigin, defaultElastic } from './utils/constraints.mjs';\nimport { createBox } from '../../projection/geometry/models.mjs';\nimport { eachAxis } from '../../projection/utils/each-axis.mjs';\nimport { measurePageBox } from '../../projection/utils/measure.mjs';\nimport { extractEventInfo } from '../../events/event-info.mjs';\nimport { convertBoxToBoundingBox, convertBoundingBoxToBox } from '../../projection/geometry/conversion.mjs';\nimport { addDomEvent } from '../../events/add-dom-event.mjs';\nimport { calcLength } from '../../projection/geometry/delta-calc.mjs';\nimport { mixNumber } from '../../utils/mix/number.mjs';\nimport { percent } from '../../value/types/numbers/units.mjs';\nimport { animateMotionValue } from '../../animation/interfaces/motion-value.mjs';\nimport { getContextWindow } from '../../utils/get-context-window.mjs';\nimport { addValueToWillChange } from '../../value/use-will-change/add-will-change.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst elementDragControls = new WeakMap();\n/**\n *\n */\n// let latestPointerEvent: PointerEvent\nclass VisualElementDragControls {\n constructor(visualElement) {\n // This is a reference to the global drag gesture lock, ensuring only one component\n // can \"capture\" the drag of one or both axes.\n // TODO: Look into moving this into pansession?\n this.openGlobalLock = null;\n this.isDragging = false;\n this.currentDirection = null;\n this.originPoint = { x: 0, y: 0 };\n /**\n * The permitted boundaries of travel, in pixels.\n */\n this.constraints = false;\n this.hasMutatedConstraints = false;\n /**\n * The per-axis resolved elastic values.\n */\n this.elastic = createBox();\n this.visualElement = visualElement;\n }\n start(originEvent, { snapToCursor = false } = {}) {\n /**\n * Don't start dragging if this component is exiting\n */\n const { presenceContext } = this.visualElement;\n if (presenceContext && presenceContext.isPresent === false)\n return;\n const onSessionStart = (event) => {\n const { dragSnapToOrigin } = this.getProps();\n // Stop or pause any animations on both axis values immediately. This allows the user to throw and catch\n // the component.\n dragSnapToOrigin ? this.pauseAnimation() : this.stopAnimation();\n if (snapToCursor) {\n this.snapToCursor(extractEventInfo(event, \"page\").point);\n }\n };\n const onStart = (event, info) => {\n var _a;\n // Attempt to grab the global drag gesture lock - maybe make this part of PanSession\n const { drag, dragPropagation, onDragStart } = this.getProps();\n if (drag && !dragPropagation) {\n if (this.openGlobalLock)\n this.openGlobalLock();\n this.openGlobalLock = getGlobalLock(drag);\n // If we don 't have the lock, don't start dragging\n if (!this.openGlobalLock)\n return;\n }\n this.isDragging = true;\n this.currentDirection = null;\n this.resolveConstraints();\n if (this.visualElement.projection) {\n this.visualElement.projection.isAnimationBlocked = true;\n this.visualElement.projection.target = undefined;\n }\n /**\n * Record gesture origin\n */\n eachAxis((axis) => {\n let current = this.getAxisMotionValue(axis).get() || 0;\n /**\n * If the MotionValue is a percentage value convert to px\n */\n if (percent.test(current)) {\n const { projection } = this.visualElement;\n if (projection && projection.layout) {\n const measuredAxis = projection.layout.layoutBox[axis];\n if (measuredAxis) {\n const length = calcLength(measuredAxis);\n current = length * (parseFloat(current) / 100);\n }\n }\n }\n this.originPoint[axis] = current;\n });\n // Fire onDragStart event\n if (onDragStart) {\n frame.postRender(() => onDragStart(event, info));\n }\n (_a = this.removeWillChange) === null || _a === void 0 ? void 0 : _a.call(this);\n this.removeWillChange = addValueToWillChange(this.visualElement, \"transform\");\n const { animationState } = this.visualElement;\n animationState && animationState.setActive(\"whileDrag\", true);\n };\n const onMove = (event, info) => {\n // latestPointerEvent = event\n const { dragPropagation, dragDirectionLock, onDirectionLock, onDrag, } = this.getProps();\n // If we didn't successfully receive the gesture lock, early return.\n if (!dragPropagation && !this.openGlobalLock)\n return;\n const { offset } = info;\n // Attempt to detect drag direction if directionLock is true\n if (dragDirectionLock && this.currentDirection === null) {\n this.currentDirection = getCurrentDirection(offset);\n // If we've successfully set a direction, notify listener\n if (this.currentDirection !== null) {\n onDirectionLock && onDirectionLock(this.currentDirection);\n }\n return;\n }\n // Update each point with the latest position\n this.updateAxis(\"x\", info.point, offset);\n this.updateAxis(\"y\", info.point, offset);\n /**\n * Ideally we would leave the renderer to fire naturally at the end of\n * this frame but if the element is about to change layout as the result\n * of a re-render we want to ensure the browser can read the latest\n * bounding box to ensure the pointer and element don't fall out of sync.\n */\n this.visualElement.render();\n /**\n * This must fire after the render call as it might trigger a state\n * change which itself might trigger a layout update.\n */\n onDrag && onDrag(event, info);\n };\n const onSessionEnd = (event, info) => this.stop(event, info);\n const resumeAnimation = () => eachAxis((axis) => {\n var _a;\n return this.getAnimationState(axis) === \"paused\" &&\n ((_a = this.getAxisMotionValue(axis).animation) === null || _a === void 0 ? void 0 : _a.play());\n });\n const { dragSnapToOrigin } = this.getProps();\n this.panSession = new PanSession(originEvent, {\n onSessionStart,\n onStart,\n onMove,\n onSessionEnd,\n resumeAnimation,\n }, {\n transformPagePoint: this.visualElement.getTransformPagePoint(),\n dragSnapToOrigin,\n contextWindow: getContextWindow(this.visualElement),\n });\n }\n stop(event, info) {\n var _a;\n (_a = this.removeWillChange) === null || _a === void 0 ? void 0 : _a.call(this);\n const isDragging = this.isDragging;\n this.cancel();\n if (!isDragging)\n return;\n const { velocity } = info;\n this.startAnimation(velocity);\n const { onDragEnd } = this.getProps();\n if (onDragEnd) {\n frame.postRender(() => onDragEnd(event, info));\n }\n }\n cancel() {\n this.isDragging = false;\n const { projection, animationState } = this.visualElement;\n if (projection) {\n projection.isAnimationBlocked = false;\n }\n this.panSession && this.panSession.end();\n this.panSession = undefined;\n const { dragPropagation } = this.getProps();\n if (!dragPropagation && this.openGlobalLock) {\n this.openGlobalLock();\n this.openGlobalLock = null;\n }\n animationState && animationState.setActive(\"whileDrag\", false);\n }\n updateAxis(axis, _point, offset) {\n const { drag } = this.getProps();\n // If we're not dragging this axis, do an early return.\n if (!offset || !shouldDrag(axis, drag, this.currentDirection))\n return;\n const axisValue = this.getAxisMotionValue(axis);\n let next = this.originPoint[axis] + offset[axis];\n // Apply constraints\n if (this.constraints && this.constraints[axis]) {\n next = applyConstraints(next, this.constraints[axis], this.elastic[axis]);\n }\n axisValue.set(next);\n }\n resolveConstraints() {\n var _a;\n const { dragConstraints, dragElastic } = this.getProps();\n const layout = this.visualElement.projection &&\n !this.visualElement.projection.layout\n ? this.visualElement.projection.measure(false)\n : (_a = this.visualElement.projection) === null || _a === void 0 ? void 0 : _a.layout;\n const prevConstraints = this.constraints;\n if (dragConstraints && isRefObject(dragConstraints)) {\n if (!this.constraints) {\n this.constraints = this.resolveRefConstraints();\n }\n }\n else {\n if (dragConstraints && layout) {\n this.constraints = calcRelativeConstraints(layout.layoutBox, dragConstraints);\n }\n else {\n this.constraints = false;\n }\n }\n this.elastic = resolveDragElastic(dragElastic);\n /**\n * If we're outputting to external MotionValues, we want to rebase the measured constraints\n * from viewport-relative to component-relative.\n */\n if (prevConstraints !== this.constraints &&\n layout &&\n this.constraints &&\n !this.hasMutatedConstraints) {\n eachAxis((axis) => {\n if (this.constraints !== false &&\n this.getAxisMotionValue(axis)) {\n this.constraints[axis] = rebaseAxisConstraints(layout.layoutBox[axis], this.constraints[axis]);\n }\n });\n }\n }\n resolveRefConstraints() {\n const { dragConstraints: constraints, onMeasureDragConstraints } = this.getProps();\n if (!constraints || !isRefObject(constraints))\n return false;\n const constraintsElement = constraints.current;\n invariant(constraintsElement !== null, \"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.\");\n const { projection } = this.visualElement;\n // TODO\n if (!projection || !projection.layout)\n return false;\n const constraintsBox = measurePageBox(constraintsElement, projection.root, this.visualElement.getTransformPagePoint());\n let measuredConstraints = calcViewportConstraints(projection.layout.layoutBox, constraintsBox);\n /**\n * If there's an onMeasureDragConstraints listener we call it and\n * if different constraints are returned, set constraints to that\n */\n if (onMeasureDragConstraints) {\n const userConstraints = onMeasureDragConstraints(convertBoxToBoundingBox(measuredConstraints));\n this.hasMutatedConstraints = !!userConstraints;\n if (userConstraints) {\n measuredConstraints = convertBoundingBoxToBox(userConstraints);\n }\n }\n return measuredConstraints;\n }\n startAnimation(velocity) {\n const { drag, dragMomentum, dragElastic, dragTransition, dragSnapToOrigin, onDragTransitionEnd, } = this.getProps();\n const constraints = this.constraints || {};\n const momentumAnimations = eachAxis((axis) => {\n if (!shouldDrag(axis, drag, this.currentDirection)) {\n return;\n }\n let transition = (constraints && constraints[axis]) || {};\n if (dragSnapToOrigin)\n transition = { min: 0, max: 0 };\n /**\n * Overdamp the boundary spring if `dragElastic` is disabled. There's still a frame\n * of spring animations so we should look into adding a disable spring option to `inertia`.\n * We could do something here where we affect the `bounceStiffness` and `bounceDamping`\n * using the value of `dragElastic`.\n */\n const bounceStiffness = dragElastic ? 200 : 1000000;\n const bounceDamping = dragElastic ? 40 : 10000000;\n const inertia = {\n type: \"inertia\",\n velocity: dragMomentum ? velocity[axis] : 0,\n bounceStiffness,\n bounceDamping,\n timeConstant: 750,\n restDelta: 1,\n restSpeed: 10,\n ...dragTransition,\n ...transition,\n };\n // If we're not animating on an externally-provided `MotionValue` we can use the\n // component's animation controls which will handle interactions with whileHover (etc),\n // otherwise we just have to animate the `MotionValue` itself.\n return this.startAxisValueAnimation(axis, inertia);\n });\n // Run all animations and then resolve the new drag constraints.\n return Promise.all(momentumAnimations).then(onDragTransitionEnd);\n }\n startAxisValueAnimation(axis, transition) {\n const axisValue = this.getAxisMotionValue(axis);\n return axisValue.start(animateMotionValue(axis, axisValue, 0, transition, this.visualElement, false, addValueToWillChange(this.visualElement, axis)));\n }\n stopAnimation() {\n eachAxis((axis) => this.getAxisMotionValue(axis).stop());\n }\n pauseAnimation() {\n eachAxis((axis) => { var _a; return (_a = this.getAxisMotionValue(axis).animation) === null || _a === void 0 ? void 0 : _a.pause(); });\n }\n getAnimationState(axis) {\n var _a;\n return (_a = this.getAxisMotionValue(axis).animation) === null || _a === void 0 ? void 0 : _a.state;\n }\n /**\n * Drag works differently depending on which props are provided.\n *\n * - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values.\n * - Otherwise, we apply the delta to the x/y motion values.\n */\n getAxisMotionValue(axis) {\n const dragKey = `_drag${axis.toUpperCase()}`;\n const props = this.visualElement.getProps();\n const externalMotionValue = props[dragKey];\n return externalMotionValue\n ? externalMotionValue\n : this.visualElement.getValue(axis, (props.initial\n ? props.initial[axis]\n : undefined) || 0);\n }\n snapToCursor(point) {\n eachAxis((axis) => {\n const { drag } = this.getProps();\n // If we're not dragging this axis, do an early return.\n if (!shouldDrag(axis, drag, this.currentDirection))\n return;\n const { projection } = this.visualElement;\n const axisValue = this.getAxisMotionValue(axis);\n if (projection && projection.layout) {\n const { min, max } = projection.layout.layoutBox[axis];\n axisValue.set(point[axis] - mixNumber(min, max, 0.5));\n }\n });\n }\n /**\n * When the viewport resizes we want to check if the measured constraints\n * have changed and, if so, reposition the element within those new constraints\n * relative to where it was before the resize.\n */\n scalePositionWithinConstraints() {\n if (!this.visualElement.current)\n return;\n const { drag, dragConstraints } = this.getProps();\n const { projection } = this.visualElement;\n if (!isRefObject(dragConstraints) || !projection || !this.constraints)\n return;\n /**\n * Stop current animations as there can be visual glitching if we try to do\n * this mid-animation\n */\n this.stopAnimation();\n /**\n * Record the relative position of the dragged element relative to the\n * constraints box and save as a progress value.\n */\n const boxProgress = { x: 0, y: 0 };\n eachAxis((axis) => {\n const axisValue = this.getAxisMotionValue(axis);\n if (axisValue && this.constraints !== false) {\n const latest = axisValue.get();\n boxProgress[axis] = calcOrigin({ min: latest, max: latest }, this.constraints[axis]);\n }\n });\n /**\n * Update the layout of this element and resolve the latest drag constraints\n */\n const { transformTemplate } = this.visualElement.getProps();\n this.visualElement.current.style.transform = transformTemplate\n ? transformTemplate({}, \"\")\n : \"none\";\n projection.root && projection.root.updateScroll();\n projection.updateLayout();\n this.resolveConstraints();\n /**\n * For each axis, calculate the current progress of the layout axis\n * within the new constraints.\n */\n eachAxis((axis) => {\n if (!shouldDrag(axis, drag, null))\n return;\n /**\n * Calculate a new transform based on the previous box progress\n */\n const axisValue = this.getAxisMotionValue(axis);\n const { min, max } = this.constraints[axis];\n axisValue.set(mixNumber(min, max, boxProgress[axis]));\n });\n }\n addListeners() {\n if (!this.visualElement.current)\n return;\n elementDragControls.set(this.visualElement, this);\n const element = this.visualElement.current;\n /**\n * Attach a pointerdown event listener on this DOM element to initiate drag tracking.\n */\n const stopPointerListener = addPointerEvent(element, \"pointerdown\", (event) => {\n const { drag, dragListener = true } = this.getProps();\n drag && dragListener && this.start(event);\n });\n const measureDragConstraints = () => {\n const { dragConstraints } = this.getProps();\n if (isRefObject(dragConstraints) && dragConstraints.current) {\n this.constraints = this.resolveRefConstraints();\n }\n };\n const { projection } = this.visualElement;\n const stopMeasureLayoutListener = projection.addEventListener(\"measure\", measureDragConstraints);\n if (projection && !projection.layout) {\n projection.root && projection.root.updateScroll();\n projection.updateLayout();\n }\n frame.read(measureDragConstraints);\n /**\n * Attach a window resize listener to scale the draggable target within its defined\n * constraints as the window resizes.\n */\n const stopResizeListener = addDomEvent(window, \"resize\", () => this.scalePositionWithinConstraints());\n /**\n * If the element's layout changes, calculate the delta and apply that to\n * the drag gesture's origin point.\n */\n const stopLayoutUpdateListener = projection.addEventListener(\"didUpdate\", (({ delta, hasLayoutChanged }) => {\n if (this.isDragging && hasLayoutChanged) {\n eachAxis((axis) => {\n const motionValue = this.getAxisMotionValue(axis);\n if (!motionValue)\n return;\n this.originPoint[axis] += delta[axis].translate;\n motionValue.set(motionValue.get() + delta[axis].translate);\n });\n this.visualElement.render();\n }\n }));\n return () => {\n stopResizeListener();\n stopPointerListener();\n stopMeasureLayoutListener();\n stopLayoutUpdateListener && stopLayoutUpdateListener();\n };\n }\n getProps() {\n const props = this.visualElement.getProps();\n const { drag = false, dragDirectionLock = false, dragPropagation = false, dragConstraints = false, dragElastic = defaultElastic, dragMomentum = true, } = props;\n return {\n ...props,\n drag,\n dragDirectionLock,\n dragPropagation,\n dragConstraints,\n dragElastic,\n dragMomentum,\n };\n }\n}\nfunction shouldDrag(direction, drag, currentDirection) {\n return ((drag === true || drag === direction) &&\n (currentDirection === null || currentDirection === direction));\n}\n/**\n * Based on an x/y offset determine the current drag direction. If both axis' offsets are lower\n * than the provided threshold, return `null`.\n *\n * @param offset - The x/y offset from origin.\n * @param lockThreshold - (Optional) - the minimum absolute offset before we can determine a drag direction.\n */\nfunction getCurrentDirection(offset, lockThreshold = 10) {\n let direction = null;\n if (Math.abs(offset.y) > lockThreshold) {\n direction = \"y\";\n }\n else if (Math.abs(offset.x) > lockThreshold) {\n direction = \"x\";\n }\n return direction;\n}\n\nexport { VisualElementDragControls, elementDragControls };\n","import { PanSession } from './PanSession.mjs';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { Feature } from '../../motion/features/Feature.mjs';\nimport { noop } from '../../utils/noop.mjs';\nimport { getContextWindow } from '../../utils/get-context-window.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst asyncHandler = (handler) => (event, info) => {\n if (handler) {\n frame.postRender(() => handler(event, info));\n }\n};\nclass PanGesture extends Feature {\n constructor() {\n super(...arguments);\n this.removePointerDownListener = noop;\n }\n onPointerDown(pointerDownEvent) {\n this.session = new PanSession(pointerDownEvent, this.createPanHandlers(), {\n transformPagePoint: this.node.getTransformPagePoint(),\n contextWindow: getContextWindow(this.node),\n });\n }\n createPanHandlers() {\n const { onPanSessionStart, onPanStart, onPan, onPanEnd } = this.node.getProps();\n return {\n onSessionStart: asyncHandler(onPanSessionStart),\n onStart: asyncHandler(onPanStart),\n onMove: onPan,\n onEnd: (event, info) => {\n delete this.session;\n if (onPanEnd) {\n frame.postRender(() => onPanEnd(event, info));\n }\n },\n };\n }\n mount() {\n this.removePointerDownListener = addPointerEvent(this.node.current, \"pointerdown\", (event) => this.onPointerDown(event));\n }\n update() {\n this.session && this.session.updateHandlers(this.createPanHandlers());\n }\n unmount() {\n this.removePointerDownListener();\n this.session && this.session.end();\n }\n}\n\nexport { PanGesture };\n","/**\n * This should only ever be modified on the client otherwise it'll\n * persist through server requests. If we need instanced states we\n * could lazy-init via root.\n */\nconst globalProjectionState = {\n /**\n * Global flag as to whether the tree has animated since the last time\n * we resized the window\n */\n hasAnimatedSinceResize: true,\n /**\n * We set this to true once, on the first update. Any nodes added to the tree beyond that\n * update will be given a `data-projection-id` attribute.\n */\n hasEverUpdated: false,\n};\n\nexport { globalProjectionState };\n","import { px } from '../../value/types/numbers/units.mjs';\n\nfunction pixelsToPercent(pixels, axis) {\n if (axis.max === axis.min)\n return 0;\n return (pixels / (axis.max - axis.min)) * 100;\n}\n/**\n * We always correct borderRadius as a percentage rather than pixels to reduce paints.\n * For example, if you are projecting a box that is 100px wide with a 10px borderRadius\n * into a box that is 200px wide with a 20px borderRadius, that is actually a 10%\n * borderRadius in both states. If we animate between the two in pixels that will trigger\n * a paint each time. If we animate between the two in percentage we'll avoid a paint.\n */\nconst correctBorderRadius = {\n correct: (latest, node) => {\n if (!node.target)\n return latest;\n /**\n * If latest is a string, if it's a percentage we can return immediately as it's\n * going to be stretched appropriately. Otherwise, if it's a pixel, convert it to a number.\n */\n if (typeof latest === \"string\") {\n if (px.test(latest)) {\n latest = parseFloat(latest);\n }\n else {\n return latest;\n }\n }\n /**\n * If latest is a number, it's a pixel value. We use the current viewportBox to calculate that\n * pixel value as a percentage of each axis\n */\n const x = pixelsToPercent(latest, node.target.x);\n const y = pixelsToPercent(latest, node.target.y);\n return `${x}% ${y}%`;\n },\n};\n\nexport { correctBorderRadius, pixelsToPercent };\n","import { mixNumber } from '../../utils/mix/number.mjs';\nimport { complex } from '../../value/types/complex/index.mjs';\n\nconst correctBoxShadow = {\n correct: (latest, { treeScale, projectionDelta }) => {\n const original = latest;\n const shadow = complex.parse(latest);\n // TODO: Doesn't support multiple shadows\n if (shadow.length > 5)\n return original;\n const template = complex.createTransformer(latest);\n const offset = typeof shadow[0] !== \"number\" ? 1 : 0;\n // Calculate the overall context scale\n const xScale = projectionDelta.x.scale * treeScale.x;\n const yScale = projectionDelta.y.scale * treeScale.y;\n shadow[0 + offset] /= xScale;\n shadow[1 + offset] /= yScale;\n /**\n * Ideally we'd correct x and y scales individually, but because blur and\n * spread apply to both we have to take a scale average and apply that instead.\n * We could potentially improve the outcome of this by incorporating the ratio between\n * the two scales.\n */\n const averageScale = mixNumber(xScale, yScale, 0.5);\n // Blur\n if (typeof shadow[2 + offset] === \"number\")\n shadow[2 + offset] /= averageScale;\n // Spread\n if (typeof shadow[3 + offset] === \"number\")\n shadow[3 + offset] /= averageScale;\n return template(shadow);\n },\n};\n\nexport { correctBoxShadow };\n","import { jsx } from 'react/jsx-runtime';\nimport { useContext, Component } from 'react';\nimport { usePresence } from '../../../components/AnimatePresence/use-presence.mjs';\nimport { LayoutGroupContext } from '../../../context/LayoutGroupContext.mjs';\nimport { SwitchLayoutGroupContext } from '../../../context/SwitchLayoutGroupContext.mjs';\nimport { globalProjectionState } from '../../../projection/node/state.mjs';\nimport { correctBorderRadius } from '../../../projection/styles/scale-border-radius.mjs';\nimport { correctBoxShadow } from '../../../projection/styles/scale-box-shadow.mjs';\nimport { addScaleCorrector } from '../../../projection/styles/scale-correction.mjs';\nimport { microtask } from '../../../frameloop/microtask.mjs';\nimport { frame } from '../../../frameloop/frame.mjs';\n\nclass MeasureLayoutWithContext extends Component {\n /**\n * This only mounts projection nodes for components that\n * need measuring, we might want to do it for all components\n * in order to incorporate transforms\n */\n componentDidMount() {\n const { visualElement, layoutGroup, switchLayoutGroup, layoutId } = this.props;\n const { projection } = visualElement;\n addScaleCorrector(defaultScaleCorrectors);\n if (projection) {\n if (layoutGroup.group)\n layoutGroup.group.add(projection);\n if (switchLayoutGroup && switchLayoutGroup.register && layoutId) {\n switchLayoutGroup.register(projection);\n }\n projection.root.didUpdate();\n projection.addEventListener(\"animationComplete\", () => {\n this.safeToRemove();\n });\n projection.setOptions({\n ...projection.options,\n onExitComplete: () => this.safeToRemove(),\n });\n }\n globalProjectionState.hasEverUpdated = true;\n }\n getSnapshotBeforeUpdate(prevProps) {\n const { layoutDependency, visualElement, drag, isPresent } = this.props;\n const projection = visualElement.projection;\n if (!projection)\n return null;\n /**\n * TODO: We use this data in relegate to determine whether to\n * promote a previous element. There's no guarantee its presence data\n * will have updated by this point - if a bug like this arises it will\n * have to be that we markForRelegation and then find a new lead some other way,\n * perhaps in didUpdate\n */\n projection.isPresent = isPresent;\n if (drag ||\n prevProps.layoutDependency !== layoutDependency ||\n layoutDependency === undefined) {\n projection.willUpdate();\n }\n else {\n this.safeToRemove();\n }\n if (prevProps.isPresent !== isPresent) {\n if (isPresent) {\n projection.promote();\n }\n else if (!projection.relegate()) {\n /**\n * If there's another stack member taking over from this one,\n * it's in charge of the exit animation and therefore should\n * be in charge of the safe to remove. Otherwise we call it here.\n */\n frame.postRender(() => {\n const stack = projection.getStack();\n if (!stack || !stack.members.length) {\n this.safeToRemove();\n }\n });\n }\n }\n return null;\n }\n componentDidUpdate() {\n const { projection } = this.props.visualElement;\n if (projection) {\n projection.root.didUpdate();\n microtask.postRender(() => {\n if (!projection.currentAnimation && projection.isLead()) {\n this.safeToRemove();\n }\n });\n }\n }\n componentWillUnmount() {\n const { visualElement, layoutGroup, switchLayoutGroup: promoteContext, } = this.props;\n const { projection } = visualElement;\n if (projection) {\n projection.scheduleCheckAfterUnmount();\n if (layoutGroup && layoutGroup.group)\n layoutGroup.group.remove(projection);\n if (promoteContext && promoteContext.deregister)\n promoteContext.deregister(projection);\n }\n }\n safeToRemove() {\n const { safeToRemove } = this.props;\n safeToRemove && safeToRemove();\n }\n render() {\n return null;\n }\n}\nfunction MeasureLayout(props) {\n const [isPresent, safeToRemove] = usePresence();\n const layoutGroup = useContext(LayoutGroupContext);\n return (jsx(MeasureLayoutWithContext, { ...props, layoutGroup: layoutGroup, switchLayoutGroup: useContext(SwitchLayoutGroupContext), isPresent: isPresent, safeToRemove: safeToRemove }));\n}\nconst defaultScaleCorrectors = {\n borderRadius: {\n ...correctBorderRadius,\n applyTo: [\n \"borderTopLeftRadius\",\n \"borderTopRightRadius\",\n \"borderBottomLeftRadius\",\n \"borderBottomRightRadius\",\n ],\n },\n borderTopLeftRadius: correctBorderRadius,\n borderTopRightRadius: correctBorderRadius,\n borderBottomLeftRadius: correctBorderRadius,\n borderBottomRightRadius: correctBorderRadius,\n boxShadow: correctBoxShadow,\n};\n\nexport { MeasureLayout };\n","import { useContext, useId, useEffect, useCallback } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\n\n/**\n * When a component is the child of `AnimatePresence`, it can use `usePresence`\n * to access information about whether it's still present in the React tree.\n *\n * ```jsx\n * import { usePresence } from \"framer-motion\"\n *\n * export const Component = () => {\n * const [isPresent, safeToRemove] = usePresence()\n *\n * useEffect(() => {\n * !isPresent && setTimeout(safeToRemove, 1000)\n * }, [isPresent])\n *\n * return <div />\n * }\n * ```\n *\n * If `isPresent` is `false`, it means that a component has been removed the tree, but\n * `AnimatePresence` won't really remove it until `safeToRemove` has been called.\n *\n * @public\n */\nfunction usePresence() {\n const context = useContext(PresenceContext);\n if (context === null)\n return [true, null];\n const { isPresent, onExitComplete, register } = context;\n // It's safe to call the following hooks conditionally (after an early return) because the context will always\n // either be null or non-null for the lifespan of the component.\n const id = useId();\n useEffect(() => register(id), []);\n const safeToRemove = useCallback(() => onExitComplete && onExitComplete(id), [id, onExitComplete]);\n return !isPresent && onExitComplete ? [false, safeToRemove] : [true];\n}\n/**\n * Similar to `usePresence`, except `useIsPresent` simply returns whether or not the component is present.\n * There is no `safeToRemove` function.\n *\n * ```jsx\n * import { useIsPresent } from \"framer-motion\"\n *\n * export const Component = () => {\n * const isPresent = useIsPresent()\n *\n * useEffect(() => {\n * !isPresent && console.log(\"I've been removed!\")\n * }, [isPresent])\n *\n * return <div />\n * }\n * ```\n *\n * @public\n */\nfunction useIsPresent() {\n return isPresent(useContext(PresenceContext));\n}\nfunction isPresent(context) {\n return context === null ? true : context.isPresent;\n}\n\nexport { isPresent, useIsPresent, usePresence };\n","import { circOut } from '../../easing/circ.mjs';\nimport { progress } from '../../utils/progress.mjs';\nimport { mixNumber } from '../../utils/mix/number.mjs';\nimport { noop } from '../../utils/noop.mjs';\nimport { percent, px } from '../../value/types/numbers/units.mjs';\n\nconst borders = [\"TopLeft\", \"TopRight\", \"BottomLeft\", \"BottomRight\"];\nconst numBorders = borders.length;\nconst asNumber = (value) => typeof value === \"string\" ? parseFloat(value) : value;\nconst isPx = (value) => typeof value === \"number\" || px.test(value);\nfunction mixValues(target, follow, lead, progress, shouldCrossfadeOpacity, isOnlyMember) {\n if (shouldCrossfadeOpacity) {\n target.opacity = mixNumber(0, \n // TODO Reinstate this if only child\n lead.opacity !== undefined ? lead.opacity : 1, easeCrossfadeIn(progress));\n target.opacityExit = mixNumber(follow.opacity !== undefined ? follow.opacity : 1, 0, easeCrossfadeOut(progress));\n }\n else if (isOnlyMember) {\n target.opacity = mixNumber(follow.opacity !== undefined ? follow.opacity : 1, lead.opacity !== undefined ? lead.opacity : 1, progress);\n }\n /**\n * Mix border radius\n */\n for (let i = 0; i < numBorders; i++) {\n const borderLabel = `border${borders[i]}Radius`;\n let followRadius = getRadius(follow, borderLabel);\n let leadRadius = getRadius(lead, borderLabel);\n if (followRadius === undefined && leadRadius === undefined)\n continue;\n followRadius || (followRadius = 0);\n leadRadius || (leadRadius = 0);\n const canMix = followRadius === 0 ||\n leadRadius === 0 ||\n isPx(followRadius) === isPx(leadRadius);\n if (canMix) {\n target[borderLabel] = Math.max(mixNumber(asNumber(followRadius), asNumber(leadRadius), progress), 0);\n if (percent.test(leadRadius) || percent.test(followRadius)) {\n target[borderLabel] += \"%\";\n }\n }\n else {\n target[borderLabel] = leadRadius;\n }\n }\n /**\n * Mix rotation\n */\n if (follow.rotate || lead.rotate) {\n target.rotate = mixNumber(follow.rotate || 0, lead.rotate || 0, progress);\n }\n}\nfunction getRadius(values, radiusName) {\n return values[radiusName] !== undefined\n ? values[radiusName]\n : values.borderRadius;\n}\n// /**\n// * We only want to mix the background color if there's a follow element\n// * that we're not crossfading opacity between. For instance with switch\n// * AnimateSharedLayout animations, this helps the illusion of a continuous\n// * element being animated but also cuts down on the number of paints triggered\n// * for elements where opacity is doing that work for us.\n// */\n// if (\n// !hasFollowElement &&\n// latestLeadValues.backgroundColor &&\n// latestFollowValues.backgroundColor\n// ) {\n// /**\n// * This isn't ideal performance-wise as mixColor is creating a new function every frame.\n// * We could probably create a mixer that runs at the start of the animation but\n// * the idea behind the crossfader is that it runs dynamically between two potentially\n// * changing targets (ie opacity or borderRadius may be animating independently via variants)\n// */\n// leadState.backgroundColor = followState.backgroundColor = mixColor(\n// latestFollowValues.backgroundColor as string,\n// latestLeadValues.backgroundColor as string\n// )(p)\n// }\nconst easeCrossfadeIn = compress(0, 0.5, circOut);\nconst easeCrossfadeOut = compress(0.5, 0.95, noop);\nfunction compress(min, max, easing) {\n return (p) => {\n // Could replace ifs with clamp\n if (p < min)\n return 0;\n if (p > max)\n return 1;\n return easing(progress(min, max, p));\n };\n}\n\nexport { mixValues };\n","/**\n * Reset an axis to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyAxisInto(axis, originAxis) {\n axis.min = originAxis.min;\n axis.max = originAxis.max;\n}\n/**\n * Reset a box to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyBoxInto(box, originBox) {\n copyAxisInto(box.x, originBox.x);\n copyAxisInto(box.y, originBox.y);\n}\n/**\n * Reset a delta to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyAxisDeltaInto(delta, originDelta) {\n delta.translate = originDelta.translate;\n delta.scale = originDelta.scale;\n delta.originPoint = originDelta.originPoint;\n delta.origin = originDelta.origin;\n}\n\nexport { copyAxisDeltaInto, copyAxisInto, copyBoxInto };\n","import { mixNumber } from '../../utils/mix/number.mjs';\nimport { percent } from '../../value/types/numbers/units.mjs';\nimport { scalePoint } from './delta-apply.mjs';\n\n/**\n * Remove a delta from a point. This is essentially the steps of applyPointDelta in reverse\n */\nfunction removePointDelta(point, translate, scale, originPoint, boxScale) {\n point -= translate;\n point = scalePoint(point, 1 / scale, originPoint);\n if (boxScale !== undefined) {\n point = scalePoint(point, 1 / boxScale, originPoint);\n }\n return point;\n}\n/**\n * Remove a delta from an axis. This is essentially the steps of applyAxisDelta in reverse\n */\nfunction removeAxisDelta(axis, translate = 0, scale = 1, origin = 0.5, boxScale, originAxis = axis, sourceAxis = axis) {\n if (percent.test(translate)) {\n translate = parseFloat(translate);\n const relativeProgress = mixNumber(sourceAxis.min, sourceAxis.max, translate / 100);\n translate = relativeProgress - sourceAxis.min;\n }\n if (typeof translate !== \"number\")\n return;\n let originPoint = mixNumber(originAxis.min, originAxis.max, origin);\n if (axis === originAxis)\n originPoint -= translate;\n axis.min = removePointDelta(axis.min, translate, scale, originPoint, boxScale);\n axis.max = removePointDelta(axis.max, translate, scale, originPoint, boxScale);\n}\n/**\n * Remove a transforms from an axis. This is essentially the steps of applyAxisTransforms in reverse\n * and acts as a bridge between motion values and removeAxisDelta\n */\nfunction removeAxisTransforms(axis, transforms, [key, scaleKey, originKey], origin, sourceAxis) {\n removeAxisDelta(axis, transforms[key], transforms[scaleKey], transforms[originKey], transforms.scale, origin, sourceAxis);\n}\n/**\n * The names of the motion values we want to apply as translation, scale and origin.\n */\nconst xKeys = [\"x\", \"scaleX\", \"originX\"];\nconst yKeys = [\"y\", \"scaleY\", \"originY\"];\n/**\n * Remove a transforms from an box. This is essentially the steps of applyAxisBox in reverse\n * and acts as a bridge between motion values and removeAxisDelta\n */\nfunction removeBoxTransforms(box, transforms, originBox, sourceBox) {\n removeAxisTransforms(box.x, transforms, xKeys, originBox ? originBox.x : undefined, sourceBox ? sourceBox.x : undefined);\n removeAxisTransforms(box.y, transforms, yKeys, originBox ? originBox.y : undefined, sourceBox ? sourceBox.y : undefined);\n}\n\nexport { removeAxisDelta, removeAxisTransforms, removeBoxTransforms, removePointDelta };\n","import { calcLength } from './delta-calc.mjs';\n\nfunction isAxisDeltaZero(delta) {\n return delta.translate === 0 && delta.scale === 1;\n}\nfunction isDeltaZero(delta) {\n return isAxisDeltaZero(delta.x) && isAxisDeltaZero(delta.y);\n}\nfunction axisEquals(a, b) {\n return a.min === b.min && a.max === b.max;\n}\nfunction boxEquals(a, b) {\n return axisEquals(a.x, b.x) && axisEquals(a.y, b.y);\n}\nfunction axisEqualsRounded(a, b) {\n return (Math.round(a.min) === Math.round(b.min) &&\n Math.round(a.max) === Math.round(b.max));\n}\nfunction boxEqualsRounded(a, b) {\n return axisEqualsRounded(a.x, b.x) && axisEqualsRounded(a.y, b.y);\n}\nfunction aspectRatio(box) {\n return calcLength(box.x) / calcLength(box.y);\n}\nfunction axisDeltaEquals(a, b) {\n return (a.translate === b.translate &&\n a.scale === b.scale &&\n a.originPoint === b.originPoint);\n}\n\nexport { aspectRatio, axisDeltaEquals, axisEquals, axisEqualsRounded, boxEquals, boxEqualsRounded, isDeltaZero };\n","import { addUniqueItem, removeItem } from '../../utils/array.mjs';\n\nclass NodeStack {\n constructor() {\n this.members = [];\n }\n add(node) {\n addUniqueItem(this.members, node);\n node.scheduleRender();\n }\n remove(node) {\n removeItem(this.members, node);\n if (node === this.prevLead) {\n this.prevLead = undefined;\n }\n if (node === this.lead) {\n const prevLead = this.members[this.members.length - 1];\n if (prevLead) {\n this.promote(prevLead);\n }\n }\n }\n relegate(node) {\n const indexOfNode = this.members.findIndex((member) => node === member);\n if (indexOfNode === 0)\n return false;\n /**\n * Find the next projection node that is present\n */\n let prevLead;\n for (let i = indexOfNode; i >= 0; i--) {\n const member = this.members[i];\n if (member.isPresent !== false) {\n prevLead = member;\n break;\n }\n }\n if (prevLead) {\n this.promote(prevLead);\n return true;\n }\n else {\n return false;\n }\n }\n promote(node, preserveFollowOpacity) {\n const prevLead = this.lead;\n if (node === prevLead)\n return;\n this.prevLead = prevLead;\n this.lead = node;\n node.show();\n if (prevLead) {\n prevLead.instance && prevLead.scheduleRender();\n node.scheduleRender();\n node.resumeFrom = prevLead;\n if (preserveFollowOpacity) {\n node.resumeFrom.preserveOpacity = true;\n }\n if (prevLead.snapshot) {\n node.snapshot = prevLead.snapshot;\n node.snapshot.latestValues =\n prevLead.animationValues || prevLead.latestValues;\n }\n if (node.root && node.root.isUpdating) {\n node.isLayoutDirty = true;\n }\n const { crossfade } = node.options;\n if (crossfade === false) {\n prevLead.hide();\n }\n /**\n * TODO:\n * - Test border radius when previous node was deleted\n * - boxShadow mixing\n * - Shared between element A in scrolled container and element B (scroll stays the same or changes)\n * - Shared between element A in transformed container and element B (transform stays the same or changes)\n * - Shared between element A in scrolled page and element B (scroll stays the same or changes)\n * ---\n * - Crossfade opacity of root nodes\n * - layoutId changes after animation\n * - layoutId changes mid animation\n */\n }\n }\n exitAnimationComplete() {\n this.members.forEach((node) => {\n const { options, resumingFrom } = node;\n options.onExitComplete && options.onExitComplete();\n if (resumingFrom) {\n resumingFrom.options.onExitComplete &&\n resumingFrom.options.onExitComplete();\n }\n });\n }\n scheduleRender() {\n this.members.forEach((node) => {\n node.instance && node.scheduleRender(false);\n });\n }\n /**\n * Clear any leads that have been removed this render to prevent them from being\n * used in future animations and to prevent memory leaks\n */\n removeLeadSnapshot() {\n if (this.lead && this.lead.snapshot) {\n this.lead.snapshot = undefined;\n }\n }\n}\n\nexport { NodeStack };\n","const compareByDepth = (a, b) => a.depth - b.depth;\n\nexport { compareByDepth };\n","import { addUniqueItem, removeItem } from '../../utils/array.mjs';\nimport { compareByDepth } from './compare-by-depth.mjs';\n\nclass FlatTree {\n constructor() {\n this.children = [];\n this.isDirty = false;\n }\n add(child) {\n addUniqueItem(this.children, child);\n this.isDirty = true;\n }\n remove(child) {\n removeItem(this.children, child);\n this.isDirty = true;\n }\n forEach(callback) {\n this.isDirty && this.children.sort(compareByDepth);\n this.isDirty = false;\n this.children.forEach(callback);\n }\n}\n\nexport { FlatTree };\n","import { SubscriptionManager } from '../../utils/subscription-manager.mjs';\nimport { mixValues } from '../animation/mix-values.mjs';\nimport { copyBoxInto, copyAxisDeltaInto } from '../geometry/copy.mjs';\nimport { translateAxis, transformBox, applyBoxDelta, applyTreeDeltas } from '../geometry/delta-apply.mjs';\nimport { calcRelativePosition, calcRelativeBox, calcBoxDelta, calcLength, isNear } from '../geometry/delta-calc.mjs';\nimport { removeBoxTransforms } from '../geometry/delta-remove.mjs';\nimport { getValueTransition } from '../../animation/utils/transitions.mjs';\nimport { boxEqualsRounded, isDeltaZero, axisDeltaEquals, aspectRatio, boxEquals } from '../geometry/utils.mjs';\nimport { NodeStack } from '../shared/stack.mjs';\nimport { scaleCorrectors } from '../styles/scale-correction.mjs';\nimport { buildProjectionTransform } from '../styles/transform.mjs';\nimport { eachAxis } from '../utils/each-axis.mjs';\nimport { hasTransform, hasScale, has2DTranslate } from '../utils/has-transform.mjs';\nimport { FlatTree } from '../../render/utils/flat-tree.mjs';\nimport { resolveMotionValue } from '../../value/utils/resolve-motion-value.mjs';\nimport { globalProjectionState } from './state.mjs';\nimport { delay } from '../../utils/delay.mjs';\nimport { mixNumber } from '../../utils/mix/number.mjs';\nimport { isSVGElement } from '../../render/dom/utils/is-svg-element.mjs';\nimport { animateSingleValue } from '../../animation/interfaces/single-value.mjs';\nimport { clamp } from '../../utils/clamp.mjs';\nimport { cancelFrame, frameData, steps, frame } from '../../frameloop/frame.mjs';\nimport { noop } from '../../utils/noop.mjs';\nimport { time } from '../../frameloop/sync-time.mjs';\nimport { microtask } from '../../frameloop/microtask.mjs';\nimport { getOptimisedAppearId } from '../../animation/optimized-appear/get-appear-id.mjs';\nimport { createBox, createDelta } from '../geometry/models.mjs';\n\nconst metrics = {\n type: \"projectionFrame\",\n totalNodes: 0,\n resolvedTargetDeltas: 0,\n recalculatedProjection: 0,\n};\nconst isDebug = typeof window !== \"undefined\" && window.MotionDebug !== undefined;\nconst transformAxes = [\"\", \"X\", \"Y\", \"Z\"];\nconst hiddenVisibility = { visibility: \"hidden\" };\n/**\n * We use 1000 as the animation target as 0-1000 maps better to pixels than 0-1\n * which has a noticeable difference in spring animations\n */\nconst animationTarget = 1000;\nlet id = 0;\nfunction resetDistortingTransform(key, visualElement, values, sharedAnimationValues) {\n const { latestValues } = visualElement;\n // Record the distorting transform and then temporarily set it to 0\n if (latestValues[key]) {\n values[key] = latestValues[key];\n visualElement.setStaticValue(key, 0);\n if (sharedAnimationValues) {\n sharedAnimationValues[key] = 0;\n }\n }\n}\nfunction cancelTreeOptimisedTransformAnimations(projectionNode) {\n projectionNode.hasCheckedOptimisedAppear = true;\n if (projectionNode.root === projectionNode)\n return;\n const { visualElement } = projectionNode.options;\n if (!visualElement)\n return;\n const appearId = getOptimisedAppearId(visualElement);\n if (window.MotionHasOptimisedAnimation(appearId, \"transform\")) {\n const { layout, layoutId } = projectionNode.options;\n window.MotionCancelOptimisedAnimation(appearId, \"transform\", frame, !(layout || layoutId));\n }\n const { parent } = projectionNode;\n if (parent && !parent.hasCheckedOptimisedAppear) {\n cancelTreeOptimisedTransformAnimations(parent);\n }\n}\nfunction createProjectionNode({ attachResizeListener, defaultParent, measureScroll, checkIsScrollRoot, resetTransform, }) {\n return class ProjectionNode {\n constructor(latestValues = {}, parent = defaultParent === null || defaultParent === void 0 ? void 0 : defaultParent()) {\n /**\n * A unique ID generated for every projection node.\n */\n this.id = id++;\n /**\n * An id that represents a unique session instigated by startUpdate.\n */\n this.animationId = 0;\n /**\n * A Set containing all this component's children. This is used to iterate\n * through the children.\n *\n * TODO: This could be faster to iterate as a flat array stored on the root node.\n */\n this.children = new Set();\n /**\n * Options for the node. We use this to configure what kind of layout animations\n * we should perform (if any).\n */\n this.options = {};\n /**\n * We use this to detect when its safe to shut down part of a projection tree.\n * We have to keep projecting children for scale correction and relative projection\n * until all their parents stop performing layout animations.\n */\n this.isTreeAnimating = false;\n this.isAnimationBlocked = false;\n /**\n * Flag to true if we think this layout has been changed. We can't always know this,\n * currently we set it to true every time a component renders, or if it has a layoutDependency\n * if that has changed between renders. Additionally, components can be grouped by LayoutGroup\n * and if one node is dirtied, they all are.\n */\n this.isLayoutDirty = false;\n /**\n * Flag to true if we think the projection calculations for this node needs\n * recalculating as a result of an updated transform or layout animation.\n */\n this.isProjectionDirty = false;\n /**\n * Flag to true if the layout *or* transform has changed. This then gets propagated\n * throughout the projection tree, forcing any element below to recalculate on the next frame.\n */\n this.isSharedProjectionDirty = false;\n /**\n * Flag transform dirty. This gets propagated throughout the whole tree but is only\n * respected by shared nodes.\n */\n this.isTransformDirty = false;\n /**\n * Block layout updates for instant layout transitions throughout the tree.\n */\n this.updateManuallyBlocked = false;\n this.updateBlockedByResize = false;\n /**\n * Set to true between the start of the first `willUpdate` call and the end of the `didUpdate`\n * call.\n */\n this.isUpdating = false;\n /**\n * If this is an SVG element we currently disable projection transforms\n */\n this.isSVG = false;\n /**\n * Flag to true (during promotion) if a node doing an instant layout transition needs to reset\n * its projection styles.\n */\n this.needsReset = false;\n /**\n * Flags whether this node should have its transform reset prior to measuring.\n */\n this.shouldResetTransform = false;\n /**\n * Store whether this node has been checked for optimised appear animations. As\n * effects fire bottom-up, and we want to look up the tree for appear animations,\n * this makes sure we only check each path once, stopping at nodes that\n * have already been checked.\n */\n this.hasCheckedOptimisedAppear = false;\n /**\n * An object representing the calculated contextual/accumulated/tree scale.\n * This will be used to scale calculcated projection transforms, as these are\n * calculated in screen-space but need to be scaled for elements to layoutly\n * make it to their calculated destinations.\n *\n * TODO: Lazy-init\n */\n this.treeScale = { x: 1, y: 1 };\n /**\n *\n */\n this.eventHandlers = new Map();\n this.hasTreeAnimated = false;\n // Note: Currently only running on root node\n this.updateScheduled = false;\n this.scheduleUpdate = () => this.update();\n this.projectionUpdateScheduled = false;\n this.checkUpdateFailed = () => {\n if (this.isUpdating) {\n this.isUpdating = false;\n this.clearAllSnapshots();\n }\n };\n /**\n * This is a multi-step process as shared nodes might be of different depths. Nodes\n * are sorted by depth order, so we need to resolve the entire tree before moving to\n * the next step.\n */\n this.updateProjection = () => {\n this.projectionUpdateScheduled = false;\n /**\n * Reset debug counts. Manually resetting rather than creating a new\n * object each frame.\n */\n if (isDebug) {\n metrics.totalNodes =\n metrics.resolvedTargetDeltas =\n metrics.recalculatedProjection =\n 0;\n }\n this.nodes.forEach(propagateDirtyNodes);\n this.nodes.forEach(resolveTargetDelta);\n this.nodes.forEach(calcProjection);\n this.nodes.forEach(cleanDirtyNodes);\n if (isDebug) {\n window.MotionDebug.record(metrics);\n }\n };\n /**\n * Frame calculations\n */\n this.resolvedRelativeTargetAt = 0.0;\n this.hasProjected = false;\n this.isVisible = true;\n this.animationProgress = 0;\n /**\n * Shared layout\n */\n // TODO Only running on root node\n this.sharedNodes = new Map();\n this.latestValues = latestValues;\n this.root = parent ? parent.root || parent : this;\n this.path = parent ? [...parent.path, parent] : [];\n this.parent = parent;\n this.depth = parent ? parent.depth + 1 : 0;\n for (let i = 0; i < this.path.length; i++) {\n this.path[i].shouldResetTransform = true;\n }\n if (this.root === this)\n this.nodes = new FlatTree();\n }\n addEventListener(name, handler) {\n if (!this.eventHandlers.has(name)) {\n this.eventHandlers.set(name, new SubscriptionManager());\n }\n return this.eventHandlers.get(name).add(handler);\n }\n notifyListeners(name, ...args) {\n const subscriptionManager = this.eventHandlers.get(name);\n subscriptionManager && subscriptionManager.notify(...args);\n }\n hasListeners(name) {\n return this.eventHandlers.has(name);\n }\n /**\n * Lifecycles\n */\n mount(instance, isLayoutDirty = this.root.hasTreeAnimated) {\n if (this.instance)\n return;\n this.isSVG = isSVGElement(instance);\n this.instance = instance;\n const { layoutId, layout, visualElement } = this.options;\n if (visualElement && !visualElement.current) {\n visualElement.mount(instance);\n }\n this.root.nodes.add(this);\n this.parent && this.parent.children.add(this);\n if (isLayoutDirty && (layout || layoutId)) {\n this.isLayoutDirty = true;\n }\n if (attachResizeListener) {\n let cancelDelay;\n const resizeUnblockUpdate = () => (this.root.updateBlockedByResize = false);\n attachResizeListener(instance, () => {\n this.root.updateBlockedByResize = true;\n cancelDelay && cancelDelay();\n cancelDelay = delay(resizeUnblockUpdate, 250);\n if (globalProjectionState.hasAnimatedSinceResize) {\n globalProjectionState.hasAnimatedSinceResize = false;\n this.nodes.forEach(finishAnimation);\n }\n });\n }\n if (layoutId) {\n this.root.registerSharedNode(layoutId, this);\n }\n // Only register the handler if it requires layout animation\n if (this.options.animate !== false &&\n visualElement &&\n (layoutId || layout)) {\n this.addEventListener(\"didUpdate\", ({ delta, hasLayoutChanged, hasRelativeTargetChanged, layout: newLayout, }) => {\n if (this.isTreeAnimationBlocked()) {\n this.target = undefined;\n this.relativeTarget = undefined;\n return;\n }\n // TODO: Check here if an animation exists\n const layoutTransition = this.options.transition ||\n visualElement.getDefaultTransition() ||\n defaultLayoutTransition;\n const { onLayoutAnimationStart, onLayoutAnimationComplete, } = visualElement.getProps();\n /**\n * The target layout of the element might stay the same,\n * but its position relative to its parent has changed.\n */\n const targetChanged = !this.targetLayout ||\n !boxEqualsRounded(this.targetLayout, newLayout) ||\n hasRelativeTargetChanged;\n /**\n * If the layout hasn't seemed to have changed, it might be that the\n * element is visually in the same place in the document but its position\n * relative to its parent has indeed changed. So here we check for that.\n */\n const hasOnlyRelativeTargetChanged = !hasLayoutChanged && hasRelativeTargetChanged;\n if (this.options.layoutRoot ||\n (this.resumeFrom && this.resumeFrom.instance) ||\n hasOnlyRelativeTargetChanged ||\n (hasLayoutChanged &&\n (targetChanged || !this.currentAnimation))) {\n if (this.resumeFrom) {\n this.resumingFrom = this.resumeFrom;\n this.resumingFrom.resumingFrom = undefined;\n }\n this.setAnimationOrigin(delta, hasOnlyRelativeTargetChanged);\n const animationOptions = {\n ...getValueTransition(layoutTransition, \"layout\"),\n onPlay: onLayoutAnimationStart,\n onComplete: onLayoutAnimationComplete,\n };\n if (visualElement.shouldReduceMotion ||\n this.options.layoutRoot) {\n animationOptions.delay = 0;\n animationOptions.type = false;\n }\n this.startAnimation(animationOptions);\n }\n else {\n /**\n * If the layout hasn't changed and we have an animation that hasn't started yet,\n * finish it immediately. Otherwise it will be animating from a location\n * that was probably never commited to screen and look like a jumpy box.\n */\n if (!hasLayoutChanged) {\n finishAnimation(this);\n }\n if (this.isLead() && this.options.onExitComplete) {\n this.options.onExitComplete();\n }\n }\n this.targetLayout = newLayout;\n });\n }\n }\n unmount() {\n this.options.layoutId && this.willUpdate();\n this.root.nodes.remove(this);\n const stack = this.getStack();\n stack && stack.remove(this);\n this.parent && this.parent.children.delete(this);\n this.instance = undefined;\n cancelFrame(this.updateProjection);\n }\n // only on the root\n blockUpdate() {\n this.updateManuallyBlocked = true;\n }\n unblockUpdate() {\n this.updateManuallyBlocked = false;\n }\n isUpdateBlocked() {\n return this.updateManuallyBlocked || this.updateBlockedByResize;\n }\n isTreeAnimationBlocked() {\n return (this.isAnimationBlocked ||\n (this.parent && this.parent.isTreeAnimationBlocked()) ||\n false);\n }\n // Note: currently only running on root node\n startUpdate() {\n if (this.isUpdateBlocked())\n return;\n this.isUpdating = true;\n this.nodes && this.nodes.forEach(resetSkewAndRotation);\n this.animationId++;\n }\n getTransformTemplate() {\n const { visualElement } = this.options;\n return visualElement && visualElement.getProps().transformTemplate;\n }\n willUpdate(shouldNotifyListeners = true) {\n this.root.hasTreeAnimated = true;\n if (this.root.isUpdateBlocked()) {\n this.options.onExitComplete && this.options.onExitComplete();\n return;\n }\n /**\n * If we're running optimised appear animations then these must be\n * cancelled before measuring the DOM. This is so we can measure\n * the true layout of the element rather than the WAAPI animation\n * which will be unaffected by the resetSkewAndRotate step.\n *\n * Note: This is a DOM write. Worst case scenario is this is sandwiched\n * between other snapshot reads which will cause unnecessary style recalculations.\n * This has to happen here though, as we don't yet know which nodes will need\n * snapshots in startUpdate(), but we only want to cancel optimised animations\n * if a layout animation measurement is actually going to be affected by them.\n */\n if (window.MotionCancelOptimisedAnimation &&\n !this.hasCheckedOptimisedAppear) {\n cancelTreeOptimisedTransformAnimations(this);\n }\n !this.root.isUpdating && this.root.startUpdate();\n if (this.isLayoutDirty)\n return;\n this.isLayoutDirty = true;\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n node.shouldResetTransform = true;\n node.updateScroll(\"snapshot\");\n if (node.options.layoutRoot) {\n node.willUpdate(false);\n }\n }\n const { layoutId, layout } = this.options;\n if (layoutId === undefined && !layout)\n return;\n const transformTemplate = this.getTransformTemplate();\n this.prevTransformTemplateValue = transformTemplate\n ? transformTemplate(this.latestValues, \"\")\n : undefined;\n this.updateSnapshot();\n shouldNotifyListeners && this.notifyListeners(\"willUpdate\");\n }\n update() {\n this.updateScheduled = false;\n const updateWasBlocked = this.isUpdateBlocked();\n // When doing an instant transition, we skip the layout update,\n // but should still clean up the measurements so that the next\n // snapshot could be taken correctly.\n if (updateWasBlocked) {\n this.unblockUpdate();\n this.clearAllSnapshots();\n this.nodes.forEach(clearMeasurements);\n return;\n }\n if (!this.isUpdating) {\n this.nodes.forEach(clearIsLayoutDirty);\n }\n this.isUpdating = false;\n /**\n * Write\n */\n this.nodes.forEach(resetTransformStyle);\n /**\n * Read ==================\n */\n // Update layout measurements of updated children\n this.nodes.forEach(updateLayout);\n /**\n * Write\n */\n // Notify listeners that the layout is updated\n this.nodes.forEach(notifyLayoutUpdate);\n this.clearAllSnapshots();\n /**\n * Manually flush any pending updates. Ideally\n * we could leave this to the following requestAnimationFrame but this seems\n * to leave a flash of incorrectly styled content.\n */\n const now = time.now();\n frameData.delta = clamp(0, 1000 / 60, now - frameData.timestamp);\n frameData.timestamp = now;\n frameData.isProcessing = true;\n steps.update.process(frameData);\n steps.preRender.process(frameData);\n steps.render.process(frameData);\n frameData.isProcessing = false;\n }\n didUpdate() {\n if (!this.updateScheduled) {\n this.updateScheduled = true;\n microtask.read(this.scheduleUpdate);\n }\n }\n clearAllSnapshots() {\n this.nodes.forEach(clearSnapshot);\n this.sharedNodes.forEach(removeLeadSnapshots);\n }\n scheduleUpdateProjection() {\n if (!this.projectionUpdateScheduled) {\n this.projectionUpdateScheduled = true;\n frame.preRender(this.updateProjection, false, true);\n }\n }\n scheduleCheckAfterUnmount() {\n /**\n * If the unmounting node is in a layoutGroup and did trigger a willUpdate,\n * we manually call didUpdate to give a chance to the siblings to animate.\n * Otherwise, cleanup all snapshots to prevents future nodes from reusing them.\n */\n frame.postRender(() => {\n if (this.isLayoutDirty) {\n this.root.didUpdate();\n }\n else {\n this.root.checkUpdateFailed();\n }\n });\n }\n /**\n * Update measurements\n */\n updateSnapshot() {\n if (this.snapshot || !this.instance)\n return;\n this.snapshot = this.measure();\n }\n updateLayout() {\n if (!this.instance)\n return;\n // TODO: Incorporate into a forwarded scroll offset\n this.updateScroll();\n if (!(this.options.alwaysMeasureLayout && this.isLead()) &&\n !this.isLayoutDirty) {\n return;\n }\n /**\n * When a node is mounted, it simply resumes from the prevLead's\n * snapshot instead of taking a new one, but the ancestors scroll\n * might have updated while the prevLead is unmounted. We need to\n * update the scroll again to make sure the layout we measure is\n * up to date.\n */\n if (this.resumeFrom && !this.resumeFrom.instance) {\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n node.updateScroll();\n }\n }\n const prevLayout = this.layout;\n this.layout = this.measure(false);\n this.layoutCorrected = createBox();\n this.isLayoutDirty = false;\n this.projectionDelta = undefined;\n this.notifyListeners(\"measure\", this.layout.layoutBox);\n const { visualElement } = this.options;\n visualElement &&\n visualElement.notify(\"LayoutMeasure\", this.layout.layoutBox, prevLayout ? prevLayout.layoutBox : undefined);\n }\n updateScroll(phase = \"measure\") {\n let needsMeasurement = Boolean(this.options.layoutScroll && this.instance);\n if (this.scroll &&\n this.scroll.animationId === this.root.animationId &&\n this.scroll.phase === phase) {\n needsMeasurement = false;\n }\n if (needsMeasurement) {\n const isRoot = checkIsScrollRoot(this.instance);\n this.scroll = {\n animationId: this.root.animationId,\n phase,\n isRoot,\n offset: measureScroll(this.instance),\n wasRoot: this.scroll ? this.scroll.isRoot : isRoot,\n };\n }\n }\n resetTransform() {\n if (!resetTransform)\n return;\n const isResetRequested = this.isLayoutDirty ||\n this.shouldResetTransform ||\n this.options.alwaysMeasureLayout;\n const hasProjection = this.projectionDelta && !isDeltaZero(this.projectionDelta);\n const transformTemplate = this.getTransformTemplate();\n const transformTemplateValue = transformTemplate\n ? transformTemplate(this.latestValues, \"\")\n : undefined;\n const transformTemplateHasChanged = transformTemplateValue !== this.prevTransformTemplateValue;\n if (isResetRequested &&\n (hasProjection ||\n hasTransform(this.latestValues) ||\n transformTemplateHasChanged)) {\n resetTransform(this.instance, transformTemplateValue);\n this.shouldResetTransform = false;\n this.scheduleRender();\n }\n }\n measure(removeTransform = true) {\n const pageBox = this.measurePageBox();\n let layoutBox = this.removeElementScroll(pageBox);\n /**\n * Measurements taken during the pre-render stage\n * still have transforms applied so we remove them\n * via calculation.\n */\n if (removeTransform) {\n layoutBox = this.removeTransform(layoutBox);\n }\n roundBox(layoutBox);\n return {\n animationId: this.root.animationId,\n measuredBox: pageBox,\n layoutBox,\n latestValues: {},\n source: this.id,\n };\n }\n measurePageBox() {\n var _a;\n const { visualElement } = this.options;\n if (!visualElement)\n return createBox();\n const box = visualElement.measureViewportBox();\n const wasInScrollRoot = ((_a = this.scroll) === null || _a === void 0 ? void 0 : _a.wasRoot) || this.path.some(checkNodeWasScrollRoot);\n if (!wasInScrollRoot) {\n // Remove viewport scroll to give page-relative coordinates\n const { scroll } = this.root;\n if (scroll) {\n translateAxis(box.x, scroll.offset.x);\n translateAxis(box.y, scroll.offset.y);\n }\n }\n return box;\n }\n removeElementScroll(box) {\n var _a;\n const boxWithoutScroll = createBox();\n copyBoxInto(boxWithoutScroll, box);\n if ((_a = this.scroll) === null || _a === void 0 ? void 0 : _a.wasRoot) {\n return boxWithoutScroll;\n }\n /**\n * Performance TODO: Keep a cumulative scroll offset down the tree\n * rather than loop back up the path.\n */\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n const { scroll, options } = node;\n if (node !== this.root && scroll && options.layoutScroll) {\n /**\n * If this is a new scroll root, we want to remove all previous scrolls\n * from the viewport box.\n */\n if (scroll.wasRoot) {\n copyBoxInto(boxWithoutScroll, box);\n }\n translateAxis(boxWithoutScroll.x, scroll.offset.x);\n translateAxis(boxWithoutScroll.y, scroll.offset.y);\n }\n }\n return boxWithoutScroll;\n }\n applyTransform(box, transformOnly = false) {\n const withTransforms = createBox();\n copyBoxInto(withTransforms, box);\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n if (!transformOnly &&\n node.options.layoutScroll &&\n node.scroll &&\n node !== node.root) {\n transformBox(withTransforms, {\n x: -node.scroll.offset.x,\n y: -node.scroll.offset.y,\n });\n }\n if (!hasTransform(node.latestValues))\n continue;\n transformBox(withTransforms, node.latestValues);\n }\n if (hasTransform(this.latestValues)) {\n transformBox(withTransforms, this.latestValues);\n }\n return withTransforms;\n }\n removeTransform(box) {\n const boxWithoutTransform = createBox();\n copyBoxInto(boxWithoutTransform, box);\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n if (!node.instance)\n continue;\n if (!hasTransform(node.latestValues))\n continue;\n hasScale(node.latestValues) && node.updateSnapshot();\n const sourceBox = createBox();\n const nodeBox = node.measurePageBox();\n copyBoxInto(sourceBox, nodeBox);\n removeBoxTransforms(boxWithoutTransform, node.latestValues, node.snapshot ? node.snapshot.layoutBox : undefined, sourceBox);\n }\n if (hasTransform(this.latestValues)) {\n removeBoxTransforms(boxWithoutTransform, this.latestValues);\n }\n return boxWithoutTransform;\n }\n setTargetDelta(delta) {\n this.targetDelta = delta;\n this.root.scheduleUpdateProjection();\n this.isProjectionDirty = true;\n }\n setOptions(options) {\n this.options = {\n ...this.options,\n ...options,\n crossfade: options.crossfade !== undefined ? options.crossfade : true,\n };\n }\n clearMeasurements() {\n this.scroll = undefined;\n this.layout = undefined;\n this.snapshot = undefined;\n this.prevTransformTemplateValue = undefined;\n this.targetDelta = undefined;\n this.target = undefined;\n this.isLayoutDirty = false;\n }\n forceRelativeParentToResolveTarget() {\n if (!this.relativeParent)\n return;\n /**\n * If the parent target isn't up-to-date, force it to update.\n * This is an unfortunate de-optimisation as it means any updating relative\n * projection will cause all the relative parents to recalculate back\n * up the tree.\n */\n if (this.relativeParent.resolvedRelativeTargetAt !==\n frameData.timestamp) {\n this.relativeParent.resolveTargetDelta(true);\n }\n }\n resolveTargetDelta(forceRecalculation = false) {\n var _a;\n /**\n * Once the dirty status of nodes has been spread through the tree, we also\n * need to check if we have a shared node of a different depth that has itself\n * been dirtied.\n */\n const lead = this.getLead();\n this.isProjectionDirty || (this.isProjectionDirty = lead.isProjectionDirty);\n this.isTransformDirty || (this.isTransformDirty = lead.isTransformDirty);\n this.isSharedProjectionDirty || (this.isSharedProjectionDirty = lead.isSharedProjectionDirty);\n const isShared = Boolean(this.resumingFrom) || this !== lead;\n /**\n * We don't use transform for this step of processing so we don't\n * need to check whether any nodes have changed transform.\n */\n const canSkip = !(forceRecalculation ||\n (isShared && this.isSharedProjectionDirty) ||\n this.isProjectionDirty ||\n ((_a = this.parent) === null || _a === void 0 ? void 0 : _a.isProjectionDirty) ||\n this.attemptToResolveRelativeTarget ||\n this.root.updateBlockedByResize);\n if (canSkip)\n return;\n const { layout, layoutId } = this.options;\n /**\n * If we have no layout, we can't perform projection, so early return\n */\n if (!this.layout || !(layout || layoutId))\n return;\n this.resolvedRelativeTargetAt = frameData.timestamp;\n /**\n * If we don't have a targetDelta but do have a layout, we can attempt to resolve\n * a relativeParent. This will allow a component to perform scale correction\n * even if no animation has started.\n */\n if (!this.targetDelta && !this.relativeTarget) {\n const relativeParent = this.getClosestProjectingParent();\n if (relativeParent &&\n relativeParent.layout &&\n this.animationProgress !== 1) {\n this.relativeParent = relativeParent;\n this.forceRelativeParentToResolveTarget();\n this.relativeTarget = createBox();\n this.relativeTargetOrigin = createBox();\n calcRelativePosition(this.relativeTargetOrigin, this.layout.layoutBox, relativeParent.layout.layoutBox);\n copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);\n }\n else {\n this.relativeParent = this.relativeTarget = undefined;\n }\n }\n /**\n * If we have no relative target or no target delta our target isn't valid\n * for this frame.\n */\n if (!this.relativeTarget && !this.targetDelta)\n return;\n /**\n * Lazy-init target data structure\n */\n if (!this.target) {\n this.target = createBox();\n this.targetWithTransforms = createBox();\n }\n /**\n * If we've got a relative box for this component, resolve it into a target relative to the parent.\n */\n if (this.relativeTarget &&\n this.relativeTargetOrigin &&\n this.relativeParent &&\n this.relativeParent.target) {\n this.forceRelativeParentToResolveTarget();\n calcRelativeBox(this.target, this.relativeTarget, this.relativeParent.target);\n /**\n * If we've only got a targetDelta, resolve it into a target\n */\n }\n else if (this.targetDelta) {\n if (Boolean(this.resumingFrom)) {\n // TODO: This is creating a new object every frame\n this.target = this.applyTransform(this.layout.layoutBox);\n }\n else {\n copyBoxInto(this.target, this.layout.layoutBox);\n }\n applyBoxDelta(this.target, this.targetDelta);\n }\n else {\n /**\n * If no target, use own layout as target\n */\n copyBoxInto(this.target, this.layout.layoutBox);\n }\n /**\n * If we've been told to attempt to resolve a relative target, do so.\n */\n if (this.attemptToResolveRelativeTarget) {\n this.attemptToResolveRelativeTarget = false;\n const relativeParent = this.getClosestProjectingParent();\n if (relativeParent &&\n Boolean(relativeParent.resumingFrom) ===\n Boolean(this.resumingFrom) &&\n !relativeParent.options.layoutScroll &&\n relativeParent.target &&\n this.animationProgress !== 1) {\n this.relativeParent = relativeParent;\n this.forceRelativeParentToResolveTarget();\n this.relativeTarget = createBox();\n this.relativeTargetOrigin = createBox();\n calcRelativePosition(this.relativeTargetOrigin, this.target, relativeParent.target);\n copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);\n }\n else {\n this.relativeParent = this.relativeTarget = undefined;\n }\n }\n /**\n * Increase debug counter for resolved target deltas\n */\n if (isDebug) {\n metrics.resolvedTargetDeltas++;\n }\n }\n getClosestProjectingParent() {\n if (!this.parent ||\n hasScale(this.parent.latestValues) ||\n has2DTranslate(this.parent.latestValues)) {\n return undefined;\n }\n if (this.parent.isProjecting()) {\n return this.parent;\n }\n else {\n return this.parent.getClosestProjectingParent();\n }\n }\n isProjecting() {\n return Boolean((this.relativeTarget ||\n this.targetDelta ||\n this.options.layoutRoot) &&\n this.layout);\n }\n calcProjection() {\n var _a;\n const lead = this.getLead();\n const isShared = Boolean(this.resumingFrom) || this !== lead;\n let canSkip = true;\n /**\n * If this is a normal layout animation and neither this node nor its nearest projecting\n * is dirty then we can't skip.\n */\n if (this.isProjectionDirty || ((_a = this.parent) === null || _a === void 0 ? void 0 : _a.isProjectionDirty)) {\n canSkip = false;\n }\n /**\n * If this is a shared layout animation and this node's shared projection is dirty then\n * we can't skip.\n */\n if (isShared &&\n (this.isSharedProjectionDirty || this.isTransformDirty)) {\n canSkip = false;\n }\n /**\n * If we have resolved the target this frame we must recalculate the\n * projection to ensure it visually represents the internal calculations.\n */\n if (this.resolvedRelativeTargetAt === frameData.timestamp) {\n canSkip = false;\n }\n if (canSkip)\n return;\n const { layout, layoutId } = this.options;\n /**\n * If this section of the tree isn't animating we can\n * delete our target sources for the following frame.\n */\n this.isTreeAnimating = Boolean((this.parent && this.parent.isTreeAnimating) ||\n this.currentAnimation ||\n this.pendingAnimation);\n if (!this.isTreeAnimating) {\n this.targetDelta = this.relativeTarget = undefined;\n }\n if (!this.layout || !(layout || layoutId))\n return;\n /**\n * Reset the corrected box with the latest values from box, as we're then going\n * to perform mutative operations on it.\n */\n copyBoxInto(this.layoutCorrected, this.layout.layoutBox);\n /**\n * Record previous tree scales before updating.\n */\n const prevTreeScaleX = this.treeScale.x;\n const prevTreeScaleY = this.treeScale.y;\n /**\n * Apply all the parent deltas to this box to produce the corrected box. This\n * is the layout box, as it will appear on screen as a result of the transforms of its parents.\n */\n applyTreeDeltas(this.layoutCorrected, this.treeScale, this.path, isShared);\n /**\n * If this layer needs to perform scale correction but doesn't have a target,\n * use the layout as the target.\n */\n if (lead.layout &&\n !lead.target &&\n (this.treeScale.x !== 1 || this.treeScale.y !== 1)) {\n lead.target = lead.layout.layoutBox;\n lead.targetWithTransforms = createBox();\n }\n const { target } = lead;\n if (!target) {\n /**\n * If we don't have a target to project into, but we were previously\n * projecting, we want to remove the stored transform and schedule\n * a render to ensure the elements reflect the removed transform.\n */\n if (this.prevProjectionDelta) {\n this.createProjectionDeltas();\n this.scheduleRender();\n }\n return;\n }\n if (!this.projectionDelta || !this.prevProjectionDelta) {\n this.createProjectionDeltas();\n }\n else {\n copyAxisDeltaInto(this.prevProjectionDelta.x, this.projectionDelta.x);\n copyAxisDeltaInto(this.prevProjectionDelta.y, this.projectionDelta.y);\n }\n /**\n * Update the delta between the corrected box and the target box before user-set transforms were applied.\n * This will allow us to calculate the corrected borderRadius and boxShadow to compensate\n * for our layout reprojection, but still allow them to be scaled correctly by the user.\n * It might be that to simplify this we may want to accept that user-set scale is also corrected\n * and we wouldn't have to keep and calc both deltas, OR we could support a user setting\n * to allow people to choose whether these styles are corrected based on just the\n * layout reprojection or the final bounding box.\n */\n calcBoxDelta(this.projectionDelta, this.layoutCorrected, target, this.latestValues);\n if (this.treeScale.x !== prevTreeScaleX ||\n this.treeScale.y !== prevTreeScaleY ||\n !axisDeltaEquals(this.projectionDelta.x, this.prevProjectionDelta.x) ||\n !axisDeltaEquals(this.projectionDelta.y, this.prevProjectionDelta.y)) {\n this.hasProjected = true;\n this.scheduleRender();\n this.notifyListeners(\"projectionUpdate\", target);\n }\n /**\n * Increase debug counter for recalculated projections\n */\n if (isDebug) {\n metrics.recalculatedProjection++;\n }\n }\n hide() {\n this.isVisible = false;\n // TODO: Schedule render\n }\n show() {\n this.isVisible = true;\n // TODO: Schedule render\n }\n scheduleRender(notifyAll = true) {\n var _a;\n (_a = this.options.visualElement) === null || _a === void 0 ? void 0 : _a.scheduleRender();\n if (notifyAll) {\n const stack = this.getStack();\n stack && stack.scheduleRender();\n }\n if (this.resumingFrom && !this.resumingFrom.instance) {\n this.resumingFrom = undefined;\n }\n }\n createProjectionDeltas() {\n this.prevProjectionDelta = createDelta();\n this.projectionDelta = createDelta();\n this.projectionDeltaWithTransform = createDelta();\n }\n setAnimationOrigin(delta, hasOnlyRelativeTargetChanged = false) {\n const snapshot = this.snapshot;\n const snapshotLatestValues = snapshot\n ? snapshot.latestValues\n : {};\n const mixedValues = { ...this.latestValues };\n const targetDelta = createDelta();\n if (!this.relativeParent ||\n !this.relativeParent.options.layoutRoot) {\n this.relativeTarget = this.relativeTargetOrigin = undefined;\n }\n this.attemptToResolveRelativeTarget = !hasOnlyRelativeTargetChanged;\n const relativeLayout = createBox();\n const snapshotSource = snapshot ? snapshot.source : undefined;\n const layoutSource = this.layout ? this.layout.source : undefined;\n const isSharedLayoutAnimation = snapshotSource !== layoutSource;\n const stack = this.getStack();\n const isOnlyMember = !stack || stack.members.length <= 1;\n const shouldCrossfadeOpacity = Boolean(isSharedLayoutAnimation &&\n !isOnlyMember &&\n this.options.crossfade === true &&\n !this.path.some(hasOpacityCrossfade));\n this.animationProgress = 0;\n let prevRelativeTarget;\n this.mixTargetDelta = (latest) => {\n const progress = latest / 1000;\n mixAxisDelta(targetDelta.x, delta.x, progress);\n mixAxisDelta(targetDelta.y, delta.y, progress);\n this.setTargetDelta(targetDelta);\n if (this.relativeTarget &&\n this.relativeTargetOrigin &&\n this.layout &&\n this.relativeParent &&\n this.relativeParent.layout) {\n calcRelativePosition(relativeLayout, this.layout.layoutBox, this.relativeParent.layout.layoutBox);\n mixBox(this.relativeTarget, this.relativeTargetOrigin, relativeLayout, progress);\n /**\n * If this is an unchanged relative target we can consider the\n * projection not dirty.\n */\n if (prevRelativeTarget &&\n boxEquals(this.relativeTarget, prevRelativeTarget)) {\n this.isProjectionDirty = false;\n }\n if (!prevRelativeTarget)\n prevRelativeTarget = createBox();\n copyBoxInto(prevRelativeTarget, this.relativeTarget);\n }\n if (isSharedLayoutAnimation) {\n this.animationValues = mixedValues;\n mixValues(mixedValues, snapshotLatestValues, this.latestValues, progress, shouldCrossfadeOpacity, isOnlyMember);\n }\n this.root.scheduleUpdateProjection();\n this.scheduleRender();\n this.animationProgress = progress;\n };\n this.mixTargetDelta(this.options.layoutRoot ? 1000 : 0);\n }\n startAnimation(options) {\n this.notifyListeners(\"animationStart\");\n this.currentAnimation && this.currentAnimation.stop();\n if (this.resumingFrom && this.resumingFrom.currentAnimation) {\n this.resumingFrom.currentAnimation.stop();\n }\n if (this.pendingAnimation) {\n cancelFrame(this.pendingAnimation);\n this.pendingAnimation = undefined;\n }\n /**\n * Start the animation in the next frame to have a frame with progress 0,\n * where the target is the same as when the animation started, so we can\n * calculate the relative positions correctly for instant transitions.\n */\n this.pendingAnimation = frame.update(() => {\n globalProjectionState.hasAnimatedSinceResize = true;\n this.currentAnimation = animateSingleValue(0, animationTarget, {\n ...options,\n onUpdate: (latest) => {\n this.mixTargetDelta(latest);\n options.onUpdate && options.onUpdate(latest);\n },\n onComplete: () => {\n options.onComplete && options.onComplete();\n this.completeAnimation();\n },\n });\n if (this.resumingFrom) {\n this.resumingFrom.currentAnimation = this.currentAnimation;\n }\n this.pendingAnimation = undefined;\n });\n }\n completeAnimation() {\n if (this.resumingFrom) {\n this.resumingFrom.currentAnimation = undefined;\n this.resumingFrom.preserveOpacity = undefined;\n }\n const stack = this.getStack();\n stack && stack.exitAnimationComplete();\n this.resumingFrom =\n this.currentAnimation =\n this.animationValues =\n undefined;\n this.notifyListeners(\"animationComplete\");\n }\n finishAnimation() {\n if (this.currentAnimation) {\n this.mixTargetDelta && this.mixTargetDelta(animationTarget);\n this.currentAnimation.stop();\n }\n this.completeAnimation();\n }\n applyTransformsToTarget() {\n const lead = this.getLead();\n let { targetWithTransforms, target, layout, latestValues } = lead;\n if (!targetWithTransforms || !target || !layout)\n return;\n /**\n * If we're only animating position, and this element isn't the lead element,\n * then instead of projecting into the lead box we instead want to calculate\n * a new target that aligns the two boxes but maintains the layout shape.\n */\n if (this !== lead &&\n this.layout &&\n layout &&\n shouldAnimatePositionOnly(this.options.animationType, this.layout.layoutBox, layout.layoutBox)) {\n target = this.target || createBox();\n const xLength = calcLength(this.layout.layoutBox.x);\n target.x.min = lead.target.x.min;\n target.x.max = target.x.min + xLength;\n const yLength = calcLength(this.layout.layoutBox.y);\n target.y.min = lead.target.y.min;\n target.y.max = target.y.min + yLength;\n }\n copyBoxInto(targetWithTransforms, target);\n /**\n * Apply the latest user-set transforms to the targetBox to produce the targetBoxFinal.\n * This is the final box that we will then project into by calculating a transform delta and\n * applying it to the corrected box.\n */\n transformBox(targetWithTransforms, latestValues);\n /**\n * Update the delta between the corrected box and the final target box, after\n * user-set transforms are applied to it. This will be used by the renderer to\n * create a transform style that will reproject the element from its layout layout\n * into the desired bounding box.\n */\n calcBoxDelta(this.projectionDeltaWithTransform, this.layoutCorrected, targetWithTransforms, latestValues);\n }\n registerSharedNode(layoutId, node) {\n if (!this.sharedNodes.has(layoutId)) {\n this.sharedNodes.set(layoutId, new NodeStack());\n }\n const stack = this.sharedNodes.get(layoutId);\n stack.add(node);\n const config = node.options.initialPromotionConfig;\n node.promote({\n transition: config ? config.transition : undefined,\n preserveFollowOpacity: config && config.shouldPreserveFollowOpacity\n ? config.shouldPreserveFollowOpacity(node)\n : undefined,\n });\n }\n isLead() {\n const stack = this.getStack();\n return stack ? stack.lead === this : true;\n }\n getLead() {\n var _a;\n const { layoutId } = this.options;\n return layoutId ? ((_a = this.getStack()) === null || _a === void 0 ? void 0 : _a.lead) || this : this;\n }\n getPrevLead() {\n var _a;\n const { layoutId } = this.options;\n return layoutId ? (_a = this.getStack()) === null || _a === void 0 ? void 0 : _a.prevLead : undefined;\n }\n getStack() {\n const { layoutId } = this.options;\n if (layoutId)\n return this.root.sharedNodes.get(layoutId);\n }\n promote({ needsReset, transition, preserveFollowOpacity, } = {}) {\n const stack = this.getStack();\n if (stack)\n stack.promote(this, preserveFollowOpacity);\n if (needsReset) {\n this.projectionDelta = undefined;\n this.needsReset = true;\n }\n if (transition)\n this.setOptions({ transition });\n }\n relegate() {\n const stack = this.getStack();\n if (stack) {\n return stack.relegate(this);\n }\n else {\n return false;\n }\n }\n resetSkewAndRotation() {\n const { visualElement } = this.options;\n if (!visualElement)\n return;\n // If there's no detected skew or rotation values, we can early return without a forced render.\n let hasDistortingTransform = false;\n /**\n * An unrolled check for rotation values. Most elements don't have any rotation and\n * skipping the nested loop and new object creation is 50% faster.\n */\n const { latestValues } = visualElement;\n if (latestValues.z ||\n latestValues.rotate ||\n latestValues.rotateX ||\n latestValues.rotateY ||\n latestValues.rotateZ ||\n latestValues.skewX ||\n latestValues.skewY) {\n hasDistortingTransform = true;\n }\n // If there's no distorting values, we don't need to do any more.\n if (!hasDistortingTransform)\n return;\n const resetValues = {};\n if (latestValues.z) {\n resetDistortingTransform(\"z\", visualElement, resetValues, this.animationValues);\n }\n // Check the skew and rotate value of all axes and reset to 0\n for (let i = 0; i < transformAxes.length; i++) {\n resetDistortingTransform(`rotate${transformAxes[i]}`, visualElement, resetValues, this.animationValues);\n resetDistortingTransform(`skew${transformAxes[i]}`, visualElement, resetValues, this.animationValues);\n }\n // Force a render of this element to apply the transform with all skews and rotations\n // set to 0.\n visualElement.render();\n // Put back all the values we reset\n for (const key in resetValues) {\n visualElement.setStaticValue(key, resetValues[key]);\n if (this.animationValues) {\n this.animationValues[key] = resetValues[key];\n }\n }\n // Schedule a render for the next frame. This ensures we won't visually\n // see the element with the reset rotate value applied.\n visualElement.scheduleRender();\n }\n getProjectionStyles(styleProp) {\n var _a, _b;\n if (!this.instance || this.isSVG)\n return undefined;\n if (!this.isVisible) {\n return hiddenVisibility;\n }\n const styles = {\n visibility: \"\",\n };\n const transformTemplate = this.getTransformTemplate();\n if (this.needsReset) {\n this.needsReset = false;\n styles.opacity = \"\";\n styles.pointerEvents =\n resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || \"\";\n styles.transform = transformTemplate\n ? transformTemplate(this.latestValues, \"\")\n : \"none\";\n return styles;\n }\n const lead = this.getLead();\n if (!this.projectionDelta || !this.layout || !lead.target) {\n const emptyStyles = {};\n if (this.options.layoutId) {\n emptyStyles.opacity =\n this.latestValues.opacity !== undefined\n ? this.latestValues.opacity\n : 1;\n emptyStyles.pointerEvents =\n resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || \"\";\n }\n if (this.hasProjected && !hasTransform(this.latestValues)) {\n emptyStyles.transform = transformTemplate\n ? transformTemplate({}, \"\")\n : \"none\";\n this.hasProjected = false;\n }\n return emptyStyles;\n }\n const valuesToRender = lead.animationValues || lead.latestValues;\n this.applyTransformsToTarget();\n styles.transform = buildProjectionTransform(this.projectionDeltaWithTransform, this.treeScale, valuesToRender);\n if (transformTemplate) {\n styles.transform = transformTemplate(valuesToRender, styles.transform);\n }\n const { x, y } = this.projectionDelta;\n styles.transformOrigin = `${x.origin * 100}% ${y.origin * 100}% 0`;\n if (lead.animationValues) {\n /**\n * If the lead component is animating, assign this either the entering/leaving\n * opacity\n */\n styles.opacity =\n lead === this\n ? (_b = (_a = valuesToRender.opacity) !== null && _a !== void 0 ? _a : this.latestValues.opacity) !== null && _b !== void 0 ? _b : 1\n : this.preserveOpacity\n ? this.latestValues.opacity\n : valuesToRender.opacityExit;\n }\n else {\n /**\n * Or we're not animating at all, set the lead component to its layout\n * opacity and other components to hidden.\n */\n styles.opacity =\n lead === this\n ? valuesToRender.opacity !== undefined\n ? valuesToRender.opacity\n : \"\"\n : valuesToRender.opacityExit !== undefined\n ? valuesToRender.opacityExit\n : 0;\n }\n /**\n * Apply scale correction\n */\n for (const key in scaleCorrectors) {\n if (valuesToRender[key] === undefined)\n continue;\n const { correct, applyTo } = scaleCorrectors[key];\n /**\n * Only apply scale correction to the value if we have an\n * active projection transform. Otherwise these values become\n * vulnerable to distortion if the element changes size without\n * a corresponding layout animation.\n */\n const corrected = styles.transform === \"none\"\n ? valuesToRender[key]\n : correct(valuesToRender[key], lead);\n if (applyTo) {\n const num = applyTo.length;\n for (let i = 0; i < num; i++) {\n styles[applyTo[i]] = corrected;\n }\n }\n else {\n styles[key] = corrected;\n }\n }\n /**\n * Disable pointer events on follow components. This is to ensure\n * that if a follow component covers a lead component it doesn't block\n * pointer events on the lead.\n */\n if (this.options.layoutId) {\n styles.pointerEvents =\n lead === this\n ? resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || \"\"\n : \"none\";\n }\n return styles;\n }\n clearSnapshot() {\n this.resumeFrom = this.snapshot = undefined;\n }\n // Only run on root\n resetTree() {\n this.root.nodes.forEach((node) => { var _a; return (_a = node.currentAnimation) === null || _a === void 0 ? void 0 : _a.stop(); });\n this.root.nodes.forEach(clearMeasurements);\n this.root.sharedNodes.clear();\n }\n };\n}\nfunction updateLayout(node) {\n node.updateLayout();\n}\nfunction notifyLayoutUpdate(node) {\n var _a;\n const snapshot = ((_a = node.resumeFrom) === null || _a === void 0 ? void 0 : _a.snapshot) || node.snapshot;\n if (node.isLead() &&\n node.layout &&\n snapshot &&\n node.hasListeners(\"didUpdate\")) {\n const { layoutBox: layout, measuredBox: measuredLayout } = node.layout;\n const { animationType } = node.options;\n const isShared = snapshot.source !== node.layout.source;\n // TODO Maybe we want to also resize the layout snapshot so we don't trigger\n // animations for instance if layout=\"size\" and an element has only changed position\n if (animationType === \"size\") {\n eachAxis((axis) => {\n const axisSnapshot = isShared\n ? snapshot.measuredBox[axis]\n : snapshot.layoutBox[axis];\n const length = calcLength(axisSnapshot);\n axisSnapshot.min = layout[axis].min;\n axisSnapshot.max = axisSnapshot.min + length;\n });\n }\n else if (shouldAnimatePositionOnly(animationType, snapshot.layoutBox, layout)) {\n eachAxis((axis) => {\n const axisSnapshot = isShared\n ? snapshot.measuredBox[axis]\n : snapshot.layoutBox[axis];\n const length = calcLength(layout[axis]);\n axisSnapshot.max = axisSnapshot.min + length;\n /**\n * Ensure relative target gets resized and rerendererd\n */\n if (node.relativeTarget && !node.currentAnimation) {\n node.isProjectionDirty = true;\n node.relativeTarget[axis].max =\n node.relativeTarget[axis].min + length;\n }\n });\n }\n const layoutDelta = createDelta();\n calcBoxDelta(layoutDelta, layout, snapshot.layoutBox);\n const visualDelta = createDelta();\n if (isShared) {\n calcBoxDelta(visualDelta, node.applyTransform(measuredLayout, true), snapshot.measuredBox);\n }\n else {\n calcBoxDelta(visualDelta, layout, snapshot.layoutBox);\n }\n const hasLayoutChanged = !isDeltaZero(layoutDelta);\n let hasRelativeTargetChanged = false;\n if (!node.resumeFrom) {\n const relativeParent = node.getClosestProjectingParent();\n /**\n * If the relativeParent is itself resuming from a different element then\n * the relative snapshot is not relavent\n */\n if (relativeParent && !relativeParent.resumeFrom) {\n const { snapshot: parentSnapshot, layout: parentLayout } = relativeParent;\n if (parentSnapshot && parentLayout) {\n const relativeSnapshot = createBox();\n calcRelativePosition(relativeSnapshot, snapshot.layoutBox, parentSnapshot.layoutBox);\n const relativeLayout = createBox();\n calcRelativePosition(relativeLayout, layout, parentLayout.layoutBox);\n if (!boxEqualsRounded(relativeSnapshot, relativeLayout)) {\n hasRelativeTargetChanged = true;\n }\n if (relativeParent.options.layoutRoot) {\n node.relativeTarget = relativeLayout;\n node.relativeTargetOrigin = relativeSnapshot;\n node.relativeParent = relativeParent;\n }\n }\n }\n }\n node.notifyListeners(\"didUpdate\", {\n layout,\n snapshot,\n delta: visualDelta,\n layoutDelta,\n hasLayoutChanged,\n hasRelativeTargetChanged,\n });\n }\n else if (node.isLead()) {\n const { onExitComplete } = node.options;\n onExitComplete && onExitComplete();\n }\n /**\n * Clearing transition\n * TODO: Investigate why this transition is being passed in as {type: false } from Framer\n * and why we need it at all\n */\n node.options.transition = undefined;\n}\nfunction propagateDirtyNodes(node) {\n /**\n * Increase debug counter for nodes encountered this frame\n */\n if (isDebug) {\n metrics.totalNodes++;\n }\n if (!node.parent)\n return;\n /**\n * If this node isn't projecting, propagate isProjectionDirty. It will have\n * no performance impact but it will allow the next child that *is* projecting\n * but *isn't* dirty to just check its parent to see if *any* ancestor needs\n * correcting.\n */\n if (!node.isProjecting()) {\n node.isProjectionDirty = node.parent.isProjectionDirty;\n }\n /**\n * Propagate isSharedProjectionDirty and isTransformDirty\n * throughout the whole tree. A future revision can take another look at\n * this but for safety we still recalcualte shared nodes.\n */\n node.isSharedProjectionDirty || (node.isSharedProjectionDirty = Boolean(node.isProjectionDirty ||\n node.parent.isProjectionDirty ||\n node.parent.isSharedProjectionDirty));\n node.isTransformDirty || (node.isTransformDirty = node.parent.isTransformDirty);\n}\nfunction cleanDirtyNodes(node) {\n node.isProjectionDirty =\n node.isSharedProjectionDirty =\n node.isTransformDirty =\n false;\n}\nfunction clearSnapshot(node) {\n node.clearSnapshot();\n}\nfunction clearMeasurements(node) {\n node.clearMeasurements();\n}\nfunction clearIsLayoutDirty(node) {\n node.isLayoutDirty = false;\n}\nfunction resetTransformStyle(node) {\n const { visualElement } = node.options;\n if (visualElement && visualElement.getProps().onBeforeLayoutMeasure) {\n visualElement.notify(\"BeforeLayoutMeasure\");\n }\n node.resetTransform();\n}\nfunction finishAnimation(node) {\n node.finishAnimation();\n node.targetDelta = node.relativeTarget = node.target = undefined;\n node.isProjectionDirty = true;\n}\nfunction resolveTargetDelta(node) {\n node.resolveTargetDelta();\n}\nfunction calcProjection(node) {\n node.calcProjection();\n}\nfunction resetSkewAndRotation(node) {\n node.resetSkewAndRotation();\n}\nfunction removeLeadSnapshots(stack) {\n stack.removeLeadSnapshot();\n}\nfunction mixAxisDelta(output, delta, p) {\n output.translate = mixNumber(delta.translate, 0, p);\n output.scale = mixNumber(delta.scale, 1, p);\n output.origin = delta.origin;\n output.originPoint = delta.originPoint;\n}\nfunction mixAxis(output, from, to, p) {\n output.min = mixNumber(from.min, to.min, p);\n output.max = mixNumber(from.max, to.max, p);\n}\nfunction mixBox(output, from, to, p) {\n mixAxis(output.x, from.x, to.x, p);\n mixAxis(output.y, from.y, to.y, p);\n}\nfunction hasOpacityCrossfade(node) {\n return (node.animationValues && node.animationValues.opacityExit !== undefined);\n}\nconst defaultLayoutTransition = {\n duration: 0.45,\n ease: [0.4, 0, 0.1, 1],\n};\nconst userAgentContains = (string) => typeof navigator !== \"undefined\" &&\n navigator.userAgent &&\n navigator.userAgent.toLowerCase().includes(string);\n/**\n * Measured bounding boxes must be rounded in Safari and\n * left untouched in Chrome, otherwise non-integer layouts within scaled-up elements\n * can appear to jump.\n */\nconst roundPoint = userAgentContains(\"applewebkit/\") && !userAgentContains(\"chrome/\")\n ? Math.round\n : noop;\nfunction roundAxis(axis) {\n // Round to the nearest .5 pixels to support subpixel layouts\n axis.min = roundPoint(axis.min);\n axis.max = roundPoint(axis.max);\n}\nfunction roundBox(box) {\n roundAxis(box.x);\n roundAxis(box.y);\n}\nfunction shouldAnimatePositionOnly(animationType, snapshot, layout) {\n return (animationType === \"position\" ||\n (animationType === \"preserve-aspect\" &&\n !isNear(aspectRatio(snapshot), aspectRatio(layout), 0.2)));\n}\nfunction checkNodeWasScrollRoot(node) {\n var _a;\n return node !== node.root && ((_a = node.scroll) === null || _a === void 0 ? void 0 : _a.wasRoot);\n}\n\nexport { cleanDirtyNodes, createProjectionNode, mixAxis, mixAxisDelta, mixBox, propagateDirtyNodes };\n","function isSVGElement(element) {\n return element instanceof SVGElement && element.tagName !== \"svg\";\n}\n\nexport { isSVGElement };\n","import { time } from '../frameloop/sync-time.mjs';\nimport { frame, cancelFrame } from '../frameloop/frame.mjs';\n\n/**\n * Timeout defined in ms\n */\nfunction delay(callback, timeout) {\n const start = time.now();\n const checkElapsed = ({ timestamp }) => {\n const elapsed = timestamp - start;\n if (elapsed >= timeout) {\n cancelFrame(checkElapsed);\n callback(elapsed - timeout);\n }\n };\n frame.read(checkElapsed, true);\n return () => cancelFrame(checkElapsed);\n}\n\nexport { delay };\n","import { animateMotionValue } from './motion-value.mjs';\nimport { motionValue } from '../../value/index.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\n\nfunction animateSingleValue(value, keyframes, options) {\n const motionValue$1 = isMotionValue(value) ? value : motionValue(value);\n motionValue$1.start(animateMotionValue(\"\", motionValue$1, keyframes, options));\n return motionValue$1.animation;\n}\n\nexport { animateSingleValue };\n","function buildProjectionTransform(delta, treeScale, latestTransform) {\n let transform = \"\";\n /**\n * The translations we use to calculate are always relative to the viewport coordinate space.\n * But when we apply scales, we also scale the coordinate space of an element and its children.\n * For instance if we have a treeScale (the culmination of all parent scales) of 0.5 and we need\n * to move an element 100 pixels, we actually need to move it 200 in within that scaled space.\n */\n const xTranslate = delta.x.translate / treeScale.x;\n const yTranslate = delta.y.translate / treeScale.y;\n const zTranslate = (latestTransform === null || latestTransform === void 0 ? void 0 : latestTransform.z) || 0;\n if (xTranslate || yTranslate || zTranslate) {\n transform = `translate3d(${xTranslate}px, ${yTranslate}px, ${zTranslate}px) `;\n }\n /**\n * Apply scale correction for the tree transform.\n * This will apply scale to the screen-orientated axes.\n */\n if (treeScale.x !== 1 || treeScale.y !== 1) {\n transform += `scale(${1 / treeScale.x}, ${1 / treeScale.y}) `;\n }\n if (latestTransform) {\n const { transformPerspective, rotate, rotateX, rotateY, skewX, skewY } = latestTransform;\n if (transformPerspective)\n transform = `perspective(${transformPerspective}px) ${transform}`;\n if (rotate)\n transform += `rotate(${rotate}deg) `;\n if (rotateX)\n transform += `rotateX(${rotateX}deg) `;\n if (rotateY)\n transform += `rotateY(${rotateY}deg) `;\n if (skewX)\n transform += `skewX(${skewX}deg) `;\n if (skewY)\n transform += `skewY(${skewY}deg) `;\n }\n /**\n * Apply scale to match the size of the element to the size we want it.\n * This will apply scale to the element-orientated axes.\n */\n const elementScaleX = delta.x.scale * treeScale.x;\n const elementScaleY = delta.y.scale * treeScale.y;\n if (elementScaleX !== 1 || elementScaleY !== 1) {\n transform += `scale(${elementScaleX}, ${elementScaleY})`;\n }\n return transform || \"none\";\n}\n\nexport { buildProjectionTransform };\n","import { createProjectionNode } from './create-projection-node.mjs';\nimport { addDomEvent } from '../../events/add-dom-event.mjs';\n\nconst DocumentProjectionNode = createProjectionNode({\n attachResizeListener: (ref, notify) => addDomEvent(ref, \"resize\", notify),\n measureScroll: () => ({\n x: document.documentElement.scrollLeft || document.body.scrollLeft,\n y: document.documentElement.scrollTop || document.body.scrollTop,\n }),\n checkIsScrollRoot: () => true,\n});\n\nexport { DocumentProjectionNode };\n","import { createProjectionNode } from './create-projection-node.mjs';\nimport { DocumentProjectionNode } from './DocumentProjectionNode.mjs';\n\nconst rootProjectionNode = {\n current: undefined,\n};\nconst HTMLProjectionNode = createProjectionNode({\n measureScroll: (instance) => ({\n x: instance.scrollLeft,\n y: instance.scrollTop,\n }),\n defaultParent: () => {\n if (!rootProjectionNode.current) {\n const documentNode = new DocumentProjectionNode({});\n documentNode.mount(window);\n documentNode.setOptions({ layoutScroll: true });\n rootProjectionNode.current = documentNode;\n }\n return rootProjectionNode.current;\n },\n resetTransform: (instance, value) => {\n instance.style.transform = value !== undefined ? value : \"none\";\n },\n checkIsScrollRoot: (instance) => Boolean(window.getComputedStyle(instance).position === \"fixed\"),\n});\n\nexport { HTMLProjectionNode, rootProjectionNode };\n","import { DragGesture } from '../../gestures/drag/index.mjs';\nimport { PanGesture } from '../../gestures/pan/index.mjs';\nimport { MeasureLayout } from './layout/MeasureLayout.mjs';\nimport { HTMLProjectionNode } from '../../projection/node/HTMLProjectionNode.mjs';\n\nconst drag = {\n pan: {\n Feature: PanGesture,\n },\n drag: {\n Feature: DragGesture,\n ProjectionNode: HTMLProjectionNode,\n MeasureLayout,\n },\n};\n\nexport { drag };\n","import { Feature } from '../../motion/features/Feature.mjs';\nimport { noop } from '../../utils/noop.mjs';\nimport { VisualElementDragControls } from './VisualElementDragControls.mjs';\n\nclass DragGesture extends Feature {\n constructor(node) {\n super(node);\n this.removeGroupControls = noop;\n this.removeListeners = noop;\n this.controls = new VisualElementDragControls(node);\n }\n mount() {\n // If we've been provided a DragControls for manual control over the drag gesture,\n // subscribe this component to it on mount.\n const { dragControls } = this.node.getProps();\n if (dragControls) {\n this.removeGroupControls = dragControls.subscribe(this.controls);\n }\n this.removeListeners = this.controls.addListeners() || noop;\n }\n unmount() {\n this.removeGroupControls();\n this.removeListeners();\n }\n}\n\nexport { DragGesture };\n","// Does this device prefer reduced motion? Returns `null` server-side.\nconst prefersReducedMotion = { current: null };\nconst hasReducedMotionListener = { current: false };\n\nexport { hasReducedMotionListener, prefersReducedMotion };\n","const visualElementStore = new WeakMap();\n\nexport { visualElementStore };\n","import { color } from '../../../value/types/color/index.mjs';\nimport { complex } from '../../../value/types/complex/index.mjs';\nimport { dimensionValueTypes } from './dimensions.mjs';\nimport { testValueType } from './test.mjs';\n\n/**\n * A list of all ValueTypes\n */\nconst valueTypes = [...dimensionValueTypes, color, complex];\n/**\n * Tests a value against the list of ValueTypes\n */\nconst findValueType = (v) => valueTypes.find(testValueType(v));\n\nexport { findValueType };\n","import { initPrefersReducedMotion } from '../utils/reduced-motion/index.mjs';\nimport { hasReducedMotionListener, prefersReducedMotion } from '../utils/reduced-motion/state.mjs';\nimport { SubscriptionManager } from '../utils/subscription-manager.mjs';\nimport { motionValue } from '../value/index.mjs';\nimport { isMotionValue } from '../value/utils/is-motion-value.mjs';\nimport { transformProps } from './html/utils/transform.mjs';\nimport { isControllingVariants, isVariantNode } from './utils/is-controlling-variants.mjs';\nimport { isVariantLabel } from './utils/is-variant-label.mjs';\nimport { updateMotionValuesFromProps } from './utils/motion-values.mjs';\nimport { resolveVariantFromProps } from './utils/resolve-variants.mjs';\nimport { warnOnce } from '../utils/warn-once.mjs';\nimport { featureDefinitions } from '../motion/features/definitions.mjs';\nimport { variantProps } from './utils/variant-props.mjs';\nimport { visualElementStore } from './store.mjs';\nimport { KeyframeResolver } from './utils/KeyframesResolver.mjs';\nimport { isNumericalString } from '../utils/is-numerical-string.mjs';\nimport { isZeroValueString } from '../utils/is-zero-value-string.mjs';\nimport { findValueType } from './dom/value-types/find.mjs';\nimport { complex } from '../value/types/complex/index.mjs';\nimport { getAnimatableNone } from './dom/value-types/animatable-none.mjs';\nimport { createBox } from '../projection/geometry/models.mjs';\nimport { frame, cancelFrame } from '../frameloop/frame.mjs';\n\nconst propEventHandlers = [\n \"AnimationStart\",\n \"AnimationComplete\",\n \"Update\",\n \"BeforeLayoutMeasure\",\n \"LayoutMeasure\",\n \"LayoutAnimationStart\",\n \"LayoutAnimationComplete\",\n];\nconst numVariantProps = variantProps.length;\n/**\n * A VisualElement is an imperative abstraction around UI elements such as\n * HTMLElement, SVGElement, Three.Object3D etc.\n */\nclass VisualElement {\n /**\n * This method takes React props and returns found MotionValues. For example, HTML\n * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.\n *\n * This isn't an abstract method as it needs calling in the constructor, but it is\n * intended to be one.\n */\n scrapeMotionValuesFromProps(_props, _prevProps, _visualElement) {\n return {};\n }\n constructor({ parent, props, presenceContext, reducedMotionConfig, blockInitialAnimation, visualState, }, options = {}) {\n /**\n * If true, will-change will be applied to the element. Only HTMLVisualElements\n * currently support this.\n */\n this.applyWillChange = false;\n /**\n * A reference to the current underlying Instance, e.g. a HTMLElement\n * or Three.Mesh etc.\n */\n this.current = null;\n /**\n * A set containing references to this VisualElement's children.\n */\n this.children = new Set();\n /**\n * Determine what role this visual element should take in the variant tree.\n */\n this.isVariantNode = false;\n this.isControllingVariants = false;\n /**\n * Decides whether this VisualElement should animate in reduced motion\n * mode.\n *\n * TODO: This is currently set on every individual VisualElement but feels\n * like it could be set globally.\n */\n this.shouldReduceMotion = null;\n /**\n * A map of all motion values attached to this visual element. Motion\n * values are source of truth for any given animated value. A motion\n * value might be provided externally by the component via props.\n */\n this.values = new Map();\n this.KeyframeResolver = KeyframeResolver;\n /**\n * Cleanup functions for active features (hover/tap/exit etc)\n */\n this.features = {};\n /**\n * A map of every subscription that binds the provided or generated\n * motion values onChange listeners to this visual element.\n */\n this.valueSubscriptions = new Map();\n /**\n * A reference to the previously-provided motion values as returned\n * from scrapeMotionValuesFromProps. We use the keys in here to determine\n * if any motion values need to be removed after props are updated.\n */\n this.prevMotionValues = {};\n /**\n * An object containing a SubscriptionManager for each active event.\n */\n this.events = {};\n /**\n * An object containing an unsubscribe function for each prop event subscription.\n * For example, every \"Update\" event can have multiple subscribers via\n * VisualElement.on(), but only one of those can be defined via the onUpdate prop.\n */\n this.propEventSubscriptions = {};\n this.notifyUpdate = () => this.notify(\"Update\", this.latestValues);\n this.render = () => {\n this.isRenderScheduled = false;\n if (!this.current)\n return;\n this.triggerBuild();\n this.renderInstance(this.current, this.renderState, this.props.style, this.projection);\n };\n this.isRenderScheduled = false;\n this.scheduleRender = () => {\n if (!this.isRenderScheduled) {\n this.isRenderScheduled = true;\n frame.render(this.render, false, true);\n }\n };\n const { latestValues, renderState } = visualState;\n this.latestValues = latestValues;\n this.baseTarget = { ...latestValues };\n this.initialValues = props.initial ? { ...latestValues } : {};\n this.renderState = renderState;\n this.parent = parent;\n this.props = props;\n this.presenceContext = presenceContext;\n this.depth = parent ? parent.depth + 1 : 0;\n this.reducedMotionConfig = reducedMotionConfig;\n this.options = options;\n this.blockInitialAnimation = Boolean(blockInitialAnimation);\n this.isControllingVariants = isControllingVariants(props);\n this.isVariantNode = isVariantNode(props);\n if (this.isVariantNode) {\n this.variantChildren = new Set();\n }\n this.manuallyAnimateOnMount = Boolean(parent && parent.current);\n /**\n * Any motion values that are provided to the element when created\n * aren't yet bound to the element, as this would technically be impure.\n * However, we iterate through the motion values and set them to the\n * initial values for this component.\n *\n * TODO: This is impure and we should look at changing this to run on mount.\n * Doing so will break some tests but this isn't necessarily a breaking change,\n * more a reflection of the test.\n */\n const { willChange, ...initialMotionValues } = this.scrapeMotionValuesFromProps(props, {}, this);\n for (const key in initialMotionValues) {\n const value = initialMotionValues[key];\n if (latestValues[key] !== undefined && isMotionValue(value)) {\n value.set(latestValues[key], false);\n }\n }\n }\n mount(instance) {\n this.current = instance;\n visualElementStore.set(instance, this);\n if (this.projection && !this.projection.instance) {\n this.projection.mount(instance);\n }\n if (this.parent && this.isVariantNode && !this.isControllingVariants) {\n this.removeFromVariantTree = this.parent.addVariantChild(this);\n }\n this.values.forEach((value, key) => this.bindToMotionValue(key, value));\n if (!hasReducedMotionListener.current) {\n initPrefersReducedMotion();\n }\n this.shouldReduceMotion =\n this.reducedMotionConfig === \"never\"\n ? false\n : this.reducedMotionConfig === \"always\"\n ? true\n : prefersReducedMotion.current;\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(this.shouldReduceMotion !== true, \"You have Reduced Motion enabled on your device. Animations may not appear as expected.\");\n }\n if (this.parent)\n this.parent.children.add(this);\n this.update(this.props, this.presenceContext);\n }\n unmount() {\n visualElementStore.delete(this.current);\n this.projection && this.projection.unmount();\n cancelFrame(this.notifyUpdate);\n cancelFrame(this.render);\n this.valueSubscriptions.forEach((remove) => remove());\n this.valueSubscriptions.clear();\n this.removeFromVariantTree && this.removeFromVariantTree();\n this.parent && this.parent.children.delete(this);\n for (const key in this.events) {\n this.events[key].clear();\n }\n for (const key in this.features) {\n const feature = this.features[key];\n if (feature) {\n feature.unmount();\n feature.isMounted = false;\n }\n }\n this.current = null;\n }\n bindToMotionValue(key, value) {\n if (this.valueSubscriptions.has(key)) {\n this.valueSubscriptions.get(key)();\n }\n const valueIsTransform = transformProps.has(key);\n const removeOnChange = value.on(\"change\", (latestValue) => {\n this.latestValues[key] = latestValue;\n this.props.onUpdate && frame.preRender(this.notifyUpdate);\n if (valueIsTransform && this.projection) {\n this.projection.isTransformDirty = true;\n }\n });\n const removeOnRenderRequest = value.on(\"renderRequest\", this.scheduleRender);\n let removeSyncCheck;\n if (window.MotionCheckAppearSync) {\n removeSyncCheck = window.MotionCheckAppearSync(this, key, value);\n }\n this.valueSubscriptions.set(key, () => {\n removeOnChange();\n removeOnRenderRequest();\n if (removeSyncCheck)\n removeSyncCheck();\n if (value.owner)\n value.stop();\n });\n }\n sortNodePosition(other) {\n /**\n * If these nodes aren't even of the same type we can't compare their depth.\n */\n if (!this.current ||\n !this.sortInstanceNodePosition ||\n this.type !== other.type) {\n return 0;\n }\n return this.sortInstanceNodePosition(this.current, other.current);\n }\n updateFeatures() {\n let key = \"animation\";\n for (key in featureDefinitions) {\n const featureDefinition = featureDefinitions[key];\n if (!featureDefinition)\n continue;\n const { isEnabled, Feature: FeatureConstructor } = featureDefinition;\n /**\n * If this feature is enabled but not active, make a new instance.\n */\n if (!this.features[key] &&\n FeatureConstructor &&\n isEnabled(this.props)) {\n this.features[key] = new FeatureConstructor(this);\n }\n /**\n * If we have a feature, mount or update it.\n */\n if (this.features[key]) {\n const feature = this.features[key];\n if (feature.isMounted) {\n feature.update();\n }\n else {\n feature.mount();\n feature.isMounted = true;\n }\n }\n }\n }\n triggerBuild() {\n this.build(this.renderState, this.latestValues, this.props);\n }\n /**\n * Measure the current viewport box with or without transforms.\n * Only measures axis-aligned boxes, rotate and skew must be manually\n * removed with a re-render to work.\n */\n measureViewportBox() {\n return this.current\n ? this.measureInstanceViewportBox(this.current, this.props)\n : createBox();\n }\n getStaticValue(key) {\n return this.latestValues[key];\n }\n setStaticValue(key, value) {\n this.latestValues[key] = value;\n }\n /**\n * Update the provided props. Ensure any newly-added motion values are\n * added to our map, old ones removed, and listeners updated.\n */\n update(props, presenceContext) {\n if (props.transformTemplate || this.props.transformTemplate) {\n this.scheduleRender();\n }\n this.prevProps = this.props;\n this.props = props;\n this.prevPresenceContext = this.presenceContext;\n this.presenceContext = presenceContext;\n /**\n * Update prop event handlers ie onAnimationStart, onAnimationComplete\n */\n for (let i = 0; i < propEventHandlers.length; i++) {\n const key = propEventHandlers[i];\n if (this.propEventSubscriptions[key]) {\n this.propEventSubscriptions[key]();\n delete this.propEventSubscriptions[key];\n }\n const listenerName = (\"on\" + key);\n const listener = props[listenerName];\n if (listener) {\n this.propEventSubscriptions[key] = this.on(key, listener);\n }\n }\n this.prevMotionValues = updateMotionValuesFromProps(this, this.scrapeMotionValuesFromProps(props, this.prevProps, this), this.prevMotionValues);\n if (this.handleChildMotionValue) {\n this.handleChildMotionValue();\n }\n }\n getProps() {\n return this.props;\n }\n /**\n * Returns the variant definition with a given name.\n */\n getVariant(name) {\n return this.props.variants ? this.props.variants[name] : undefined;\n }\n /**\n * Returns the defined default transition on this component.\n */\n getDefaultTransition() {\n return this.props.transition;\n }\n getTransformPagePoint() {\n return this.props.transformPagePoint;\n }\n getClosestVariantNode() {\n return this.isVariantNode\n ? this\n : this.parent\n ? this.parent.getClosestVariantNode()\n : undefined;\n }\n getVariantContext(startAtParent = false) {\n if (startAtParent) {\n return this.parent ? this.parent.getVariantContext() : undefined;\n }\n if (!this.isControllingVariants) {\n const context = this.parent\n ? this.parent.getVariantContext() || {}\n : {};\n if (this.props.initial !== undefined) {\n context.initial = this.props.initial;\n }\n return context;\n }\n const context = {};\n for (let i = 0; i < numVariantProps; i++) {\n const name = variantProps[i];\n const prop = this.props[name];\n if (isVariantLabel(prop) || prop === false) {\n context[name] = prop;\n }\n }\n return context;\n }\n /**\n * Add a child visual element to our set of children.\n */\n addVariantChild(child) {\n const closestVariantNode = this.getClosestVariantNode();\n if (closestVariantNode) {\n closestVariantNode.variantChildren &&\n closestVariantNode.variantChildren.add(child);\n return () => closestVariantNode.variantChildren.delete(child);\n }\n }\n /**\n * Add a motion value and bind it to this visual element.\n */\n addValue(key, value) {\n // Remove existing value if it exists\n const existingValue = this.values.get(key);\n if (value !== existingValue) {\n if (existingValue)\n this.removeValue(key);\n this.bindToMotionValue(key, value);\n this.values.set(key, value);\n this.latestValues[key] = value.get();\n }\n }\n /**\n * Remove a motion value and unbind any active subscriptions.\n */\n removeValue(key) {\n this.values.delete(key);\n const unsubscribe = this.valueSubscriptions.get(key);\n if (unsubscribe) {\n unsubscribe();\n this.valueSubscriptions.delete(key);\n }\n delete this.latestValues[key];\n this.removeValueFromRenderState(key, this.renderState);\n }\n /**\n * Check whether we have a motion value for this key\n */\n hasValue(key) {\n return this.values.has(key);\n }\n getValue(key, defaultValue) {\n if (this.props.values && this.props.values[key]) {\n return this.props.values[key];\n }\n let value = this.values.get(key);\n if (value === undefined && defaultValue !== undefined) {\n value = motionValue(defaultValue === null ? undefined : defaultValue, { owner: this });\n this.addValue(key, value);\n }\n return value;\n }\n /**\n * If we're trying to animate to a previously unencountered value,\n * we need to check for it in our state and as a last resort read it\n * directly from the instance (which might have performance implications).\n */\n readValue(key, target) {\n var _a;\n let value = this.latestValues[key] !== undefined || !this.current\n ? this.latestValues[key]\n : (_a = this.getBaseTargetFromProps(this.props, key)) !== null && _a !== void 0 ? _a : this.readValueFromInstance(this.current, key, this.options);\n if (value !== undefined && value !== null) {\n if (typeof value === \"string\" &&\n (isNumericalString(value) || isZeroValueString(value))) {\n // If this is a number read as a string, ie \"0\" or \"200\", convert it to a number\n value = parseFloat(value);\n }\n else if (!findValueType(value) && complex.test(target)) {\n value = getAnimatableNone(key, target);\n }\n this.setBaseTarget(key, isMotionValue(value) ? value.get() : value);\n }\n return isMotionValue(value) ? value.get() : value;\n }\n /**\n * Set the base target to later animate back to. This is currently\n * only hydrated on creation and when we first read a value.\n */\n setBaseTarget(key, value) {\n this.baseTarget[key] = value;\n }\n /**\n * Find the base target for a value thats been removed from all animation\n * props.\n */\n getBaseTarget(key) {\n var _a;\n const { initial } = this.props;\n let valueFromInitial;\n if (typeof initial === \"string\" || typeof initial === \"object\") {\n const variant = resolveVariantFromProps(this.props, initial, (_a = this.presenceContext) === null || _a === void 0 ? void 0 : _a.custom);\n if (variant) {\n valueFromInitial = variant[key];\n }\n }\n /**\n * If this value still exists in the current initial variant, read that.\n */\n if (initial && valueFromInitial !== undefined) {\n return valueFromInitial;\n }\n /**\n * Alternatively, if this VisualElement config has defined a getBaseTarget\n * so we can read the value from an alternative source, try that.\n */\n const target = this.getBaseTargetFromProps(this.props, key);\n if (target !== undefined && !isMotionValue(target))\n return target;\n /**\n * If the value was initially defined on initial, but it doesn't any more,\n * return undefined. Otherwise return the value as initially read from the DOM.\n */\n return this.initialValues[key] !== undefined &&\n valueFromInitial === undefined\n ? undefined\n : this.baseTarget[key];\n }\n on(eventName, callback) {\n if (!this.events[eventName]) {\n this.events[eventName] = new SubscriptionManager();\n }\n return this.events[eventName].add(callback);\n }\n notify(eventName, ...args) {\n if (this.events[eventName]) {\n this.events[eventName].notify(...args);\n }\n }\n}\n\nexport { VisualElement };\n","import { isBrowser } from '../is-browser.mjs';\nimport { hasReducedMotionListener, prefersReducedMotion } from './state.mjs';\n\nfunction initPrefersReducedMotion() {\n hasReducedMotionListener.current = true;\n if (!isBrowser)\n return;\n if (window.matchMedia) {\n const motionMediaQuery = window.matchMedia(\"(prefers-reduced-motion)\");\n const setReducedMotionPreferences = () => (prefersReducedMotion.current = motionMediaQuery.matches);\n motionMediaQuery.addListener(setReducedMotionPreferences);\n setReducedMotionPreferences();\n }\n else {\n prefersReducedMotion.current = false;\n }\n}\n\nexport { initPrefersReducedMotion };\n","import { warnOnce } from '../../utils/warn-once.mjs';\nimport { motionValue } from '../../value/index.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\n\nfunction updateMotionValuesFromProps(element, next, prev) {\n for (const key in next) {\n const nextValue = next[key];\n const prevValue = prev[key];\n if (isMotionValue(nextValue)) {\n /**\n * If this is a motion value found in props or style, we want to add it\n * to our visual element's motion value map.\n */\n element.addValue(key, nextValue);\n /**\n * Check the version of the incoming motion value with this version\n * and warn against mismatches.\n */\n if (process.env.NODE_ENV === \"development\") {\n warnOnce(nextValue.version === \"11.3.31\", `Attempting to mix Framer Motion versions ${nextValue.version} with 11.3.31 may not work as expected.`);\n }\n }\n else if (isMotionValue(prevValue)) {\n /**\n * If we're swapping from a motion value to a static value,\n * create a new motion value from that\n */\n element.addValue(key, motionValue(nextValue, { owner: element }));\n }\n else if (prevValue !== nextValue) {\n /**\n * If this is a flat value that has changed, update the motion value\n * or create one if it doesn't exist. We only want to do this if we're\n * not handling the value with our animation state.\n */\n if (element.hasValue(key)) {\n const existingValue = element.getValue(key);\n if (existingValue.liveStyle === true) {\n existingValue.jump(nextValue);\n }\n else if (!existingValue.hasAnimated) {\n existingValue.set(nextValue);\n }\n }\n else {\n const latestValue = element.getStaticValue(key);\n element.addValue(key, motionValue(latestValue !== undefined ? latestValue : nextValue, { owner: element }));\n }\n }\n }\n // Handle removed values\n for (const key in prev) {\n if (next[key] === undefined)\n element.removeValue(key);\n }\n return next;\n}\n\nexport { updateMotionValuesFromProps };\n","import { VisualElement } from '../VisualElement.mjs';\nimport { DOMKeyframesResolver } from './DOMKeyframesResolver.mjs';\n\nclass DOMVisualElement extends VisualElement {\n constructor() {\n super(...arguments);\n this.KeyframeResolver = DOMKeyframesResolver;\n }\n sortInstanceNodePosition(a, b) {\n /**\n * compareDocumentPosition returns a bitmask, by using the bitwise &\n * we're returning true if 2 in that bitmask is set to true. 2 is set\n * to true if b preceeds a.\n */\n return a.compareDocumentPosition(b) & 2 ? 1 : -1;\n }\n getBaseTargetFromProps(props, key) {\n return props.style\n ? props.style[key]\n : undefined;\n }\n removeValueFromRenderState(key, { vars, style }) {\n delete vars[key];\n delete style[key];\n }\n}\n\nexport { DOMVisualElement };\n","import { buildHTMLStyles } from './utils/build-styles.mjs';\nimport { isCSSVariableName } from '../dom/utils/is-css-variable.mjs';\nimport { transformProps } from './utils/transform.mjs';\nimport { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.mjs';\nimport { renderHTML } from './utils/render.mjs';\nimport { getDefaultValueType } from '../dom/value-types/defaults.mjs';\nimport { measureViewportBox } from '../../projection/utils/measure.mjs';\nimport { DOMVisualElement } from '../dom/DOMVisualElement.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\n\nfunction getComputedStyle(element) {\n return window.getComputedStyle(element);\n}\nclass HTMLVisualElement extends DOMVisualElement {\n constructor() {\n super(...arguments);\n this.type = \"html\";\n this.applyWillChange = true;\n this.renderInstance = renderHTML;\n }\n readValueFromInstance(instance, key) {\n if (transformProps.has(key)) {\n const defaultType = getDefaultValueType(key);\n return defaultType ? defaultType.default || 0 : 0;\n }\n else {\n const computedStyle = getComputedStyle(instance);\n const value = (isCSSVariableName(key)\n ? computedStyle.getPropertyValue(key)\n : computedStyle[key]) || 0;\n return typeof value === \"string\" ? value.trim() : value;\n }\n }\n measureInstanceViewportBox(instance, { transformPagePoint }) {\n return measureViewportBox(instance, transformPagePoint);\n }\n build(renderState, latestValues, props) {\n buildHTMLStyles(renderState, latestValues, props.transformTemplate);\n }\n scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n return scrapeMotionValuesFromProps(props, prevProps, visualElement);\n }\n handleChildMotionValue() {\n if (this.childSubscription) {\n this.childSubscription();\n delete this.childSubscription;\n }\n const { children } = this.props;\n if (isMotionValue(children)) {\n this.childSubscription = children.on(\"change\", (latest) => {\n if (this.current)\n this.current.textContent = `${latest}`;\n });\n }\n }\n}\n\nexport { HTMLVisualElement, getComputedStyle };\n","import { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.mjs';\nimport { DOMVisualElement } from '../dom/DOMVisualElement.mjs';\nimport { buildSVGAttrs } from './utils/build-attrs.mjs';\nimport { camelToDash } from '../dom/utils/camel-to-dash.mjs';\nimport { camelCaseAttributes } from './utils/camel-case-attrs.mjs';\nimport { transformProps } from '../html/utils/transform.mjs';\nimport { renderSVG } from './utils/render.mjs';\nimport { getDefaultValueType } from '../dom/value-types/defaults.mjs';\nimport { createBox } from '../../projection/geometry/models.mjs';\nimport { isSVGTag } from './utils/is-svg-tag.mjs';\n\nclass SVGVisualElement extends DOMVisualElement {\n constructor() {\n super(...arguments);\n this.type = \"svg\";\n this.isSVGTag = false;\n this.measureInstanceViewportBox = createBox;\n }\n getBaseTargetFromProps(props, key) {\n return props[key];\n }\n readValueFromInstance(instance, key) {\n if (transformProps.has(key)) {\n const defaultType = getDefaultValueType(key);\n return defaultType ? defaultType.default || 0 : 0;\n }\n key = !camelCaseAttributes.has(key) ? camelToDash(key) : key;\n return instance.getAttribute(key);\n }\n scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n return scrapeMotionValuesFromProps(props, prevProps, visualElement);\n }\n build(renderState, latestValues, props) {\n buildSVGAttrs(renderState, latestValues, this.isSVGTag, props.transformTemplate);\n }\n renderInstance(instance, renderState, styleProp, projection) {\n renderSVG(instance, renderState, styleProp, projection);\n }\n mount(instance) {\n this.isSVGTag = isSVGTag(instance.tagName);\n super.mount(instance);\n }\n}\n\nexport { SVGVisualElement };\n","import { Fragment } from 'react';\nimport { HTMLVisualElement } from '../html/HTMLVisualElement.mjs';\nimport { SVGVisualElement } from '../svg/SVGVisualElement.mjs';\nimport { isSVGComponent } from './utils/is-svg-component.mjs';\n\nconst createDomVisualElement = (Component, options) => {\n return isSVGComponent(Component)\n ? new SVGVisualElement(options)\n : new HTMLVisualElement(options, {\n allowProjection: Component !== Fragment,\n });\n};\n\nexport { createDomVisualElement };\n","import { createMotionComponent } from '../../motion/index.mjs';\nimport { createMotionProxy } from './motion-proxy.mjs';\nimport { createDomMotionConfig } from './utils/create-config.mjs';\nimport { gestureAnimations } from '../../motion/features/gestures.mjs';\nimport { animations } from '../../motion/features/animations.mjs';\nimport { drag } from '../../motion/features/drag.mjs';\nimport { createDomVisualElement } from './create-visual-element.mjs';\nimport { layout } from '../../motion/features/layout.mjs';\n\nconst preloadedFeatures = {\n ...animations,\n ...gestureAnimations,\n ...drag,\n ...layout,\n};\n/**\n * HTML & SVG components, optimised for use with gestures and animation. These can be used as\n * drop-in replacements for any HTML & SVG component, all CSS & SVG properties are supported.\n *\n * @public\n */\nconst motion = /*@__PURE__*/ createMotionProxy((Component, config) => createDomMotionConfig(Component, config, preloadedFeatures, createDomVisualElement));\n/**\n * Create a DOM `motion` component with the provided string. This is primarily intended\n * as a full alternative to `motion` for consumers who have to support environments that don't\n * support `Proxy`.\n *\n * ```javascript\n * import { createDomMotionComponent } from \"framer-motion\"\n *\n * const motion = {\n * div: createDomMotionComponent('div')\n * }\n * ```\n *\n * @public\n */\nfunction createDomMotionComponent(key) {\n return createMotionComponent(createDomMotionConfig(key, { forwardMotionProps: false }, preloadedFeatures, createDomVisualElement));\n}\n\nexport { createDomMotionComponent, motion };\n","import { HTMLProjectionNode } from '../../projection/node/HTMLProjectionNode.mjs';\nimport { MeasureLayout } from './layout/MeasureLayout.mjs';\n\nconst layout = {\n layout: {\n ProjectionNode: HTMLProjectionNode,\n MeasureLayout,\n },\n};\n\nexport { layout };\n","import { isSVGComponent } from './is-svg-component.mjs';\nimport { createUseRender } from '../use-render.mjs';\nimport { svgMotionConfig } from '../../svg/config-motion.mjs';\nimport { htmlMotionConfig } from '../../html/config-motion.mjs';\n\nfunction createDomMotionConfig(Component, { forwardMotionProps = false }, preloadedFeatures, createVisualElement) {\n const baseConfig = isSVGComponent(Component)\n ? svgMotionConfig\n : htmlMotionConfig;\n return {\n ...baseConfig,\n preloadedFeatures,\n useRender: createUseRender(forwardMotionProps),\n createVisualElement,\n Component,\n };\n}\n\nexport { createDomMotionConfig };\n","/**\n * A list of all valid MotionProps.\n *\n * @privateRemarks\n * This doesn't throw if a `MotionProp` name is missing - it should.\n */\nconst validMotionProps = new Set([\n \"animate\",\n \"exit\",\n \"variants\",\n \"initial\",\n \"style\",\n \"values\",\n \"variants\",\n \"transition\",\n \"transformTemplate\",\n \"custom\",\n \"inherit\",\n \"onBeforeLayoutMeasure\",\n \"onAnimationStart\",\n \"onAnimationComplete\",\n \"onUpdate\",\n \"onDragStart\",\n \"onDrag\",\n \"onDragEnd\",\n \"onMeasureDragConstraints\",\n \"onDirectionLock\",\n \"onDragTransitionEnd\",\n \"_dragX\",\n \"_dragY\",\n \"onHoverStart\",\n \"onHoverEnd\",\n \"onViewportEnter\",\n \"onViewportLeave\",\n \"globalTapTarget\",\n \"ignoreStrict\",\n \"viewport\",\n]);\n/**\n * Check whether a prop name is a valid `MotionProp` key.\n *\n * @param key - Name of the property to check\n * @returns `true` is key is a valid `MotionProp`.\n *\n * @public\n */\nfunction isValidMotionProp(key) {\n return (key.startsWith(\"while\") ||\n (key.startsWith(\"drag\") && key !== \"draggable\") ||\n key.startsWith(\"layout\") ||\n key.startsWith(\"onTap\") ||\n key.startsWith(\"onPan\") ||\n key.startsWith(\"onLayout\") ||\n validMotionProps.has(key));\n}\n\nexport { isValidMotionProp };\n","import { isValidMotionProp } from '../../../motion/utils/valid-prop.mjs';\n\nlet shouldForward = (key) => !isValidMotionProp(key);\nfunction loadExternalIsValidProp(isValidProp) {\n if (!isValidProp)\n return;\n // Explicitly filter our events\n shouldForward = (key) => key.startsWith(\"on\") ? !isValidMotionProp(key) : isValidProp(key);\n}\n/**\n * Emotion and Styled Components both allow users to pass through arbitrary props to their components\n * to dynamically generate CSS. They both use the `@emotion/is-prop-valid` package to determine which\n * of these should be passed to the underlying DOM node.\n *\n * However, when styling a Motion component `styled(motion.div)`, both packages pass through *all* props\n * as it's seen as an arbitrary component rather than a DOM node. Motion only allows arbitrary props\n * passed through the `custom` prop so it doesn't *need* the payload or computational overhead of\n * `@emotion/is-prop-valid`, however to fix this problem we need to use it.\n *\n * By making it an optionalDependency we can offer this functionality only in the situations where it's\n * actually required.\n */\ntry {\n /**\n * We attempt to import this package but require won't be defined in esm environments, in that case\n * isPropValid will have to be provided via `MotionContext`. In a 6.0.0 this should probably be removed\n * in favour of explicit injection.\n */\n loadExternalIsValidProp(require(\"@emotion/is-prop-valid\").default);\n}\ncatch (_a) {\n // We don't need to actually do anything here - the fallback is the existing `isPropValid`.\n}\nfunction filterProps(props, isDom, forwardMotionProps) {\n const filteredProps = {};\n for (const key in props) {\n /**\n * values is considered a valid prop by Emotion, so if it's present\n * this will be rendered out to the DOM unless explicitly filtered.\n *\n * We check the type as it could be used with the `feColorMatrix`\n * element, which we support.\n */\n if (key === \"values\" && typeof props.values === \"object\")\n continue;\n if (shouldForward(key) ||\n (forwardMotionProps === true && isValidMotionProp(key)) ||\n (!isDom && !isValidMotionProp(key)) ||\n // If trying to use native HTML drag events, forward drag listeners\n (props[\"draggable\"] &&\n key.startsWith(\"onDrag\"))) {\n filteredProps[key] =\n props[key];\n }\n }\n return filteredProps;\n}\n\nexport { filterProps, loadExternalIsValidProp };\n","const checkStringStartsWith = (token) => (key) => typeof key === \"string\" && key.startsWith(token);\nconst isCSSVariableName = checkStringStartsWith(\"--\");\nconst startsAsVariableToken = checkStringStartsWith(\"var(--\");\nconst isCSSVariableToken = (value) => {\n const startsWithToken = startsAsVariableToken(value);\n if (!startsWithToken)\n return false;\n // Ensure any comments are stripped from the value as this can harm performance of the regex.\n return singleCssVariableRegex.test(value.split(\"/*\")[0].trim());\n};\nconst singleCssVariableRegex = /var\\(--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)$/iu;\n\nexport { isCSSVariableName, isCSSVariableToken };\n","const MotionGlobalConfig = {\n skipAnimations: false,\n useManualTiming: false,\n};\n\nexport { MotionGlobalConfig };\n","function addUniqueItem(arr, item) {\n if (arr.indexOf(item) === -1)\n arr.push(item);\n}\nfunction removeItem(arr, item) {\n const index = arr.indexOf(item);\n if (index > -1)\n arr.splice(index, 1);\n}\n// Adapted from array-move\nfunction moveItem([...arr], fromIndex, toIndex) {\n const startIndex = fromIndex < 0 ? arr.length + fromIndex : fromIndex;\n if (startIndex >= 0 && startIndex < arr.length) {\n const endIndex = toIndex < 0 ? arr.length + toIndex : toIndex;\n const [item] = arr.splice(fromIndex, 1);\n arr.splice(endIndex, 0, item);\n }\n return arr;\n}\n\nexport { addUniqueItem, moveItem, removeItem };\n","const clamp = (min, max, v) => {\n if (v > max)\n return max;\n if (v < min)\n return min;\n return v;\n};\n\nexport { clamp };\n","import { noop } from './noop.mjs';\n\nlet warning = noop;\nlet invariant = noop;\nif (process.env.NODE_ENV !== \"production\") {\n warning = (check, message) => {\n if (!check && typeof console !== \"undefined\") {\n console.warn(message);\n }\n };\n invariant = (check, message) => {\n if (!check) {\n throw new Error(message);\n }\n };\n}\n\nexport { invariant, warning };\n","import { invariant } from './errors.mjs';\nimport { clamp } from './clamp.mjs';\nimport { pipe } from './pipe.mjs';\nimport { progress } from './progress.mjs';\nimport { noop } from './noop.mjs';\nimport { mix } from './mix/index.mjs';\n\nfunction createMixers(output, ease, customMixer) {\n const mixers = [];\n const mixerFactory = customMixer || mix;\n const numMixers = output.length - 1;\n for (let i = 0; i < numMixers; i++) {\n let mixer = mixerFactory(output[i], output[i + 1]);\n if (ease) {\n const easingFunction = Array.isArray(ease) ? ease[i] || noop : ease;\n mixer = pipe(easingFunction, mixer);\n }\n mixers.push(mixer);\n }\n return mixers;\n}\n/**\n * Create a function that maps from a numerical input array to a generic output array.\n *\n * Accepts:\n * - Numbers\n * - Colors (hex, hsl, hsla, rgb, rgba)\n * - Complex (combinations of one or more numbers or strings)\n *\n * ```jsx\n * const mixColor = interpolate([0, 1], ['#fff', '#000'])\n *\n * mixColor(0.5) // 'rgba(128, 128, 128, 1)'\n * ```\n *\n * TODO Revist this approach once we've moved to data models for values,\n * probably not needed to pregenerate mixer functions.\n *\n * @public\n */\nfunction interpolate(input, output, { clamp: isClamp = true, ease, mixer } = {}) {\n const inputLength = input.length;\n invariant(inputLength === output.length, \"Both input and output ranges must be the same length\");\n /**\n * If we're only provided a single input, we can just make a function\n * that returns the output.\n */\n if (inputLength === 1)\n return () => output[0];\n if (inputLength === 2 && input[0] === input[1])\n return () => output[1];\n // If input runs highest -> lowest, reverse both arrays\n if (input[0] > input[inputLength - 1]) {\n input = [...input].reverse();\n output = [...output].reverse();\n }\n const mixers = createMixers(output, ease, mixer);\n const numMixers = mixers.length;\n const interpolator = (v) => {\n let i = 0;\n if (numMixers > 1) {\n for (; i < input.length - 2; i++) {\n if (v < input[i + 1])\n break;\n }\n }\n const progressInRange = progress(input[i], input[i + 1], v);\n return mixers[i](progressInRange);\n };\n return isClamp\n ? (v) => interpolator(clamp(input[0], input[inputLength - 1], v))\n : interpolator;\n}\n\nexport { interpolate };\n","const isBrowser = typeof window !== \"undefined\";\n\nexport { isBrowser };\n","// Adapted from https://gist.github.com/mjackson/5311256\nfunction hueToRgb(p, q, t) {\n if (t < 0)\n t += 1;\n if (t > 1)\n t -= 1;\n if (t < 1 / 6)\n return p + (q - p) * 6 * t;\n if (t < 1 / 2)\n return q;\n if (t < 2 / 3)\n return p + (q - p) * (2 / 3 - t) * 6;\n return p;\n}\nfunction hslaToRgba({ hue, saturation, lightness, alpha }) {\n hue /= 360;\n saturation /= 100;\n lightness /= 100;\n let red = 0;\n let green = 0;\n let blue = 0;\n if (!saturation) {\n red = green = blue = lightness;\n }\n else {\n const q = lightness < 0.5\n ? lightness * (1 + saturation)\n : lightness + saturation - lightness * saturation;\n const p = 2 * lightness - q;\n red = hueToRgb(p, q, hue + 1 / 3);\n green = hueToRgb(p, q, hue);\n blue = hueToRgb(p, q, hue - 1 / 3);\n }\n return {\n red: Math.round(red * 255),\n green: Math.round(green * 255),\n blue: Math.round(blue * 255),\n alpha,\n };\n}\n\nexport { hslaToRgba };\n","function mixImmediate(a, b) {\n return (p) => (p > 0 ? b : a);\n}\n\nexport { mixImmediate };\n","import { mixNumber } from './number.mjs';\nimport { warning } from '../errors.mjs';\nimport { hslaToRgba } from '../hsla-to-rgba.mjs';\nimport { hex } from '../../value/types/color/hex.mjs';\nimport { rgba } from '../../value/types/color/rgba.mjs';\nimport { hsla } from '../../value/types/color/hsla.mjs';\nimport { mixImmediate } from './immediate.mjs';\n\n// Linear color space blending\n// Explained https://www.youtube.com/watch?v=LKnqECcg6Gw\n// Demonstrated http://codepen.io/osublake/pen/xGVVaN\nconst mixLinearColor = (from, to, v) => {\n const fromExpo = from * from;\n const expo = v * (to * to - fromExpo) + fromExpo;\n return expo < 0 ? 0 : Math.sqrt(expo);\n};\nconst colorTypes = [hex, rgba, hsla];\nconst getColorType = (v) => colorTypes.find((type) => type.test(v));\nfunction asRGBA(color) {\n const type = getColorType(color);\n warning(Boolean(type), `'${color}' is not an animatable color. Use the equivalent color code instead.`);\n if (!Boolean(type))\n return false;\n let model = type.parse(color);\n if (type === hsla) {\n // TODO Remove this cast - needed since Framer Motion's stricter typing\n model = hslaToRgba(model);\n }\n return model;\n}\nconst mixColor = (from, to) => {\n const fromRGBA = asRGBA(from);\n const toRGBA = asRGBA(to);\n if (!fromRGBA || !toRGBA) {\n return mixImmediate(from, to);\n }\n const blended = { ...fromRGBA };\n return (v) => {\n blended.red = mixLinearColor(fromRGBA.red, toRGBA.red, v);\n blended.green = mixLinearColor(fromRGBA.green, toRGBA.green, v);\n blended.blue = mixLinearColor(fromRGBA.blue, toRGBA.blue, v);\n blended.alpha = mixNumber(fromRGBA.alpha, toRGBA.alpha, v);\n return rgba.transform(blended);\n };\n};\n\nexport { mixColor, mixLinearColor };\n","const invisibleValues = new Set([\"none\", \"hidden\"]);\n/**\n * Returns a function that, when provided a progress value between 0 and 1,\n * will return the \"none\" or \"hidden\" string only when the progress is that of\n * the origin or target.\n */\nfunction mixVisibility(origin, target) {\n if (invisibleValues.has(origin)) {\n return (p) => (p <= 0 ? origin : target);\n }\n else {\n return (p) => (p >= 1 ? target : origin);\n }\n}\n\nexport { invisibleValues, mixVisibility };\n","import { mixNumber as mixNumber$1 } from './number.mjs';\nimport { mixColor } from './color.mjs';\nimport { pipe } from '../pipe.mjs';\nimport { warning } from '../errors.mjs';\nimport { color } from '../../value/types/color/index.mjs';\nimport { complex, analyseComplexValue } from '../../value/types/complex/index.mjs';\nimport { isCSSVariableToken } from '../../render/dom/utils/is-css-variable.mjs';\nimport { invisibleValues, mixVisibility } from './visibility.mjs';\nimport { mixImmediate } from './immediate.mjs';\n\nfunction mixNumber(a, b) {\n return (p) => mixNumber$1(a, b, p);\n}\nfunction getMixer(a) {\n if (typeof a === \"number\") {\n return mixNumber;\n }\n else if (typeof a === \"string\") {\n return isCSSVariableToken(a)\n ? mixImmediate\n : color.test(a)\n ? mixColor\n : mixComplex;\n }\n else if (Array.isArray(a)) {\n return mixArray;\n }\n else if (typeof a === \"object\") {\n return color.test(a) ? mixColor : mixObject;\n }\n return mixImmediate;\n}\nfunction mixArray(a, b) {\n const output = [...a];\n const numValues = output.length;\n const blendValue = a.map((v, i) => getMixer(v)(v, b[i]));\n return (p) => {\n for (let i = 0; i < numValues; i++) {\n output[i] = blendValue[i](p);\n }\n return output;\n };\n}\nfunction mixObject(a, b) {\n const output = { ...a, ...b };\n const blendValue = {};\n for (const key in output) {\n if (a[key] !== undefined && b[key] !== undefined) {\n blendValue[key] = getMixer(a[key])(a[key], b[key]);\n }\n }\n return (v) => {\n for (const key in blendValue) {\n output[key] = blendValue[key](v);\n }\n return output;\n };\n}\nfunction matchOrder(origin, target) {\n var _a;\n const orderedOrigin = [];\n const pointers = { color: 0, var: 0, number: 0 };\n for (let i = 0; i < target.values.length; i++) {\n const type = target.types[i];\n const originIndex = origin.indexes[type][pointers[type]];\n const originValue = (_a = origin.values[originIndex]) !== null && _a !== void 0 ? _a : 0;\n orderedOrigin[i] = originValue;\n pointers[type]++;\n }\n return orderedOrigin;\n}\nconst mixComplex = (origin, target) => {\n const template = complex.createTransformer(target);\n const originStats = analyseComplexValue(origin);\n const targetStats = analyseComplexValue(target);\n const canInterpolate = originStats.indexes.var.length === targetStats.indexes.var.length &&\n originStats.indexes.color.length === targetStats.indexes.color.length &&\n originStats.indexes.number.length >= targetStats.indexes.number.length;\n if (canInterpolate) {\n if ((invisibleValues.has(origin) &&\n !targetStats.values.length) ||\n (invisibleValues.has(target) &&\n !originStats.values.length)) {\n return mixVisibility(origin, target);\n }\n return pipe(mixArray(matchOrder(originStats, targetStats), targetStats.values), template);\n }\n else {\n warning(true, `Complex values '${origin}' and '${target}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`);\n return mixImmediate(origin, target);\n }\n};\n\nexport { getMixer, mixArray, mixComplex, mixObject };\n","import { getMixer } from './complex.mjs';\nimport { mixNumber } from './number.mjs';\n\nfunction mix(from, to, p) {\n if (typeof from === \"number\" &&\n typeof to === \"number\" &&\n typeof p === \"number\") {\n return mixNumber(from, to, p);\n }\n const mixer = getMixer(from);\n return mixer(from, to);\n}\n\nexport { mix };\n","/*\n Value in range from progress\n\n Given a lower limit and an upper limit, we return the value within\n that range as expressed by progress (usually a number from 0 to 1)\n\n So progress = 0.5 would change\n\n from -------- to\n\n to\n\n from ---- to\n\n E.g. from = 10, to = 20, progress = 0.5 => 15\n\n @param [number]: Lower limit of range\n @param [number]: Upper limit of range\n @param [number]: The progress between lower and upper limits expressed 0-1\n @return [number]: Value as calculated from progress within range (not limited within range)\n*/\nconst mixNumber = (from, to, progress) => {\n return from + (to - from) * progress;\n};\n\nexport { mixNumber };\n","const noop = (any) => any;\n\nexport { noop };\n","import { fillOffset } from './fill.mjs';\n\nfunction defaultOffset(arr) {\n const offset = [0];\n fillOffset(offset, arr.length - 1);\n return offset;\n}\n\nexport { defaultOffset };\n","import { mixNumber } from '../mix/number.mjs';\nimport { progress } from '../progress.mjs';\n\nfunction fillOffset(offset, remaining) {\n const min = offset[offset.length - 1];\n for (let i = 1; i <= remaining; i++) {\n const offsetProgress = progress(0, remaining, i);\n offset.push(mixNumber(min, 1, offsetProgress));\n }\n}\n\nexport { fillOffset };\n","/**\n * Pipe\n * Compose other transformers to run linearily\n * pipe(min(20), max(40))\n * @param {...functions} transformers\n * @return {function}\n */\nconst combineFunctions = (a, b) => (v) => b(a(v));\nconst pipe = (...transformers) => transformers.reduce(combineFunctions);\n\nexport { pipe };\n","/*\n Progress within given range\n\n Given a lower limit and an upper limit, we return the progress\n (expressed as a number 0-1) represented by the given value, and\n limit that progress to within 0-1.\n\n @param [number]: Lower limit\n @param [number]: Upper limit\n @param [number]: Value to find progress within given range\n @return [number]: Progress of value within range as expressed 0-1\n*/\nconst progress = (from, to, value) => {\n const toFromDifference = to - from;\n return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;\n};\n\nexport { progress };\n","import { addUniqueItem, removeItem } from './array.mjs';\n\nclass SubscriptionManager {\n constructor() {\n this.subscriptions = [];\n }\n add(handler) {\n addUniqueItem(this.subscriptions, handler);\n return () => removeItem(this.subscriptions, handler);\n }\n notify(a, b, c) {\n const numSubscriptions = this.subscriptions.length;\n if (!numSubscriptions)\n return;\n if (numSubscriptions === 1) {\n /**\n * If there's only a single handler we can just call it without invoking a loop.\n */\n this.subscriptions[0](a, b, c);\n }\n else {\n for (let i = 0; i < numSubscriptions; i++) {\n /**\n * Check whether the handler exists before firing as it's possible\n * the subscriptions were modified during this loop running.\n */\n const handler = this.subscriptions[i];\n handler && handler(a, b, c);\n }\n }\n }\n getSize() {\n return this.subscriptions.length;\n }\n clear() {\n this.subscriptions.length = 0;\n }\n}\n\nexport { SubscriptionManager };\n","import { useRef } from 'react';\n\n/**\n * Creates a constant value over the lifecycle of a component.\n *\n * Even if `useMemo` is provided an empty array as its final argument, it doesn't offer\n * a guarantee that it won't re-run for performance reasons later on. By using `useConstant`\n * you can ensure that initialisers don't execute twice or more.\n */\nfunction useConstant(init) {\n const ref = useRef(null);\n if (ref.current === null) {\n ref.current = init();\n }\n return ref.current;\n}\n\nexport { useConstant };\n","import { useLayoutEffect, useEffect } from 'react';\nimport { isBrowser } from './is-browser.mjs';\n\nconst useIsomorphicLayoutEffect = isBrowser ? useLayoutEffect : useEffect;\n\nexport { useIsomorphicLayoutEffect };\n","import { useInsertionEffect } from 'react';\n\nfunction useMotionValueEvent(value, event, callback) {\n /**\n * useInsertionEffect will create subscriptions before any other\n * effects will run. Effects run upwards through the tree so it\n * can be that binding a useLayoutEffect higher up the tree can\n * miss changes from lower down the tree.\n */\n useInsertionEffect(() => value.on(event, callback), [value, event, callback]);\n}\n\nexport { useMotionValueEvent };\n","/*\n Convert velocity into velocity per second\n\n @param [number]: Unit per frame\n @param [number]: Frame duration in ms\n*/\nfunction velocityPerSecond(velocity, frameDuration) {\n return frameDuration ? velocity * (1000 / frameDuration) : 0;\n}\n\nexport { velocityPerSecond };\n","import { SubscriptionManager } from '../utils/subscription-manager.mjs';\nimport { velocityPerSecond } from '../utils/velocity-per-second.mjs';\nimport { warnOnce } from '../utils/warn-once.mjs';\nimport { time } from '../frameloop/sync-time.mjs';\nimport { frame } from '../frameloop/frame.mjs';\n\n/**\n * Maximum time between the value of two frames, beyond which we\n * assume the velocity has since been 0.\n */\nconst MAX_VELOCITY_DELTA = 30;\nconst isFloat = (value) => {\n return !isNaN(parseFloat(value));\n};\nconst collectMotionValues = {\n current: undefined,\n};\n/**\n * `MotionValue` is used to track the state and velocity of motion values.\n *\n * @public\n */\nclass MotionValue {\n /**\n * @param init - The initiating value\n * @param config - Optional configuration options\n *\n * - `transformer`: A function to transform incoming values with.\n *\n * @internal\n */\n constructor(init, options = {}) {\n /**\n * This will be replaced by the build step with the latest version number.\n * When MotionValues are provided to motion components, warn if versions are mixed.\n */\n this.version = \"11.3.31\";\n /**\n * Tracks whether this value can output a velocity. Currently this is only true\n * if the value is numerical, but we might be able to widen the scope here and support\n * other value types.\n *\n * @internal\n */\n this.canTrackVelocity = null;\n /**\n * An object containing a SubscriptionManager for each active event.\n */\n this.events = {};\n this.updateAndNotify = (v, render = true) => {\n const currentTime = time.now();\n /**\n * If we're updating the value during another frame or eventloop\n * than the previous frame, then the we set the previous frame value\n * to current.\n */\n if (this.updatedAt !== currentTime) {\n this.setPrevFrameValue();\n }\n this.prev = this.current;\n this.setCurrent(v);\n // Update update subscribers\n if (this.current !== this.prev && this.events.change) {\n this.events.change.notify(this.current);\n }\n // Update render subscribers\n if (render && this.events.renderRequest) {\n this.events.renderRequest.notify(this.current);\n }\n };\n this.hasAnimated = false;\n this.setCurrent(init);\n this.owner = options.owner;\n }\n setCurrent(current) {\n this.current = current;\n this.updatedAt = time.now();\n if (this.canTrackVelocity === null && current !== undefined) {\n this.canTrackVelocity = isFloat(this.current);\n }\n }\n setPrevFrameValue(prevFrameValue = this.current) {\n this.prevFrameValue = prevFrameValue;\n this.prevUpdatedAt = this.updatedAt;\n }\n /**\n * Adds a function that will be notified when the `MotionValue` is updated.\n *\n * It returns a function that, when called, will cancel the subscription.\n *\n * When calling `onChange` inside a React component, it should be wrapped with the\n * `useEffect` hook. As it returns an unsubscribe function, this should be returned\n * from the `useEffect` function to ensure you don't add duplicate subscribers..\n *\n * ```jsx\n * export const MyComponent = () => {\n * const x = useMotionValue(0)\n * const y = useMotionValue(0)\n * const opacity = useMotionValue(1)\n *\n * useEffect(() => {\n * function updateOpacity() {\n * const maxXY = Math.max(x.get(), y.get())\n * const newOpacity = transform(maxXY, [0, 100], [1, 0])\n * opacity.set(newOpacity)\n * }\n *\n * const unsubscribeX = x.on(\"change\", updateOpacity)\n * const unsubscribeY = y.on(\"change\", updateOpacity)\n *\n * return () => {\n * unsubscribeX()\n * unsubscribeY()\n * }\n * }, [])\n *\n * return <motion.div style={{ x }} />\n * }\n * ```\n *\n * @param subscriber - A function that receives the latest value.\n * @returns A function that, when called, will cancel this subscription.\n *\n * @deprecated\n */\n onChange(subscription) {\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(false, `value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback).`);\n }\n return this.on(\"change\", subscription);\n }\n on(eventName, callback) {\n if (!this.events[eventName]) {\n this.events[eventName] = new SubscriptionManager();\n }\n const unsubscribe = this.events[eventName].add(callback);\n if (eventName === \"change\") {\n return () => {\n unsubscribe();\n /**\n * If we have no more change listeners by the start\n * of the next frame, stop active animations.\n */\n frame.read(() => {\n if (!this.events.change.getSize()) {\n this.stop();\n }\n });\n };\n }\n return unsubscribe;\n }\n clearListeners() {\n for (const eventManagers in this.events) {\n this.events[eventManagers].clear();\n }\n }\n /**\n * Attaches a passive effect to the `MotionValue`.\n *\n * @internal\n */\n attach(passiveEffect, stopPassiveEffect) {\n this.passiveEffect = passiveEffect;\n this.stopPassiveEffect = stopPassiveEffect;\n }\n /**\n * Sets the state of the `MotionValue`.\n *\n * @remarks\n *\n * ```jsx\n * const x = useMotionValue(0)\n * x.set(10)\n * ```\n *\n * @param latest - Latest value to set.\n * @param render - Whether to notify render subscribers. Defaults to `true`\n *\n * @public\n */\n set(v, render = true) {\n if (!render || !this.passiveEffect) {\n this.updateAndNotify(v, render);\n }\n else {\n this.passiveEffect(v, this.updateAndNotify);\n }\n }\n setWithVelocity(prev, current, delta) {\n this.set(current);\n this.prev = undefined;\n this.prevFrameValue = prev;\n this.prevUpdatedAt = this.updatedAt - delta;\n }\n /**\n * Set the state of the `MotionValue`, stopping any active animations,\n * effects, and resets velocity to `0`.\n */\n jump(v, endAnimation = true) {\n this.updateAndNotify(v);\n this.prev = v;\n this.prevUpdatedAt = this.prevFrameValue = undefined;\n endAnimation && this.stop();\n if (this.stopPassiveEffect)\n this.stopPassiveEffect();\n }\n /**\n * Returns the latest state of `MotionValue`\n *\n * @returns - The latest state of `MotionValue`\n *\n * @public\n */\n get() {\n if (collectMotionValues.current) {\n collectMotionValues.current.push(this);\n }\n return this.current;\n }\n /**\n * @public\n */\n getPrevious() {\n return this.prev;\n }\n /**\n * Returns the latest velocity of `MotionValue`\n *\n * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.\n *\n * @public\n */\n getVelocity() {\n const currentTime = time.now();\n if (!this.canTrackVelocity ||\n this.prevFrameValue === undefined ||\n currentTime - this.updatedAt > MAX_VELOCITY_DELTA) {\n return 0;\n }\n const delta = Math.min(this.updatedAt - this.prevUpdatedAt, MAX_VELOCITY_DELTA);\n // Casts because of parseFloat's poor typing\n return velocityPerSecond(parseFloat(this.current) -\n parseFloat(this.prevFrameValue), delta);\n }\n /**\n * Registers a new animation to control this `MotionValue`. Only one\n * animation can drive a `MotionValue` at one time.\n *\n * ```jsx\n * value.start()\n * ```\n *\n * @param animation - A function that starts the provided animation\n *\n * @internal\n */\n start(startAnimation) {\n this.stop();\n return new Promise((resolve) => {\n this.hasAnimated = true;\n this.animation = startAnimation(resolve);\n if (this.events.animationStart) {\n this.events.animationStart.notify();\n }\n }).then(() => {\n if (this.events.animationComplete) {\n this.events.animationComplete.notify();\n }\n this.clearAnimation();\n });\n }\n /**\n * Stop the currently active animation.\n *\n * @public\n */\n stop() {\n if (this.animation) {\n this.animation.stop();\n if (this.events.animationCancel) {\n this.events.animationCancel.notify();\n }\n }\n this.clearAnimation();\n }\n /**\n * Returns `true` if this value is currently animating.\n *\n * @public\n */\n isAnimating() {\n return !!this.animation;\n }\n clearAnimation() {\n delete this.animation;\n }\n /**\n * Destroy and clean up subscribers to this `MotionValue`.\n *\n * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically\n * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually\n * created a `MotionValue` via the `motionValue` function.\n *\n * @public\n */\n destroy() {\n this.clearListeners();\n this.stop();\n if (this.stopPassiveEffect) {\n this.stopPassiveEffect();\n }\n }\n}\nfunction motionValue(init, options) {\n return new MotionValue(init, options);\n}\n\nexport { MotionValue, collectMotionValues, motionValue };\n","import { rgba } from './rgba.mjs';\nimport { isColorString } from './utils.mjs';\n\nfunction parseHex(v) {\n let r = \"\";\n let g = \"\";\n let b = \"\";\n let a = \"\";\n // If we have 6 characters, ie #FF0000\n if (v.length > 5) {\n r = v.substring(1, 3);\n g = v.substring(3, 5);\n b = v.substring(5, 7);\n a = v.substring(7, 9);\n // Or we have 3 characters, ie #F00\n }\n else {\n r = v.substring(1, 2);\n g = v.substring(2, 3);\n b = v.substring(3, 4);\n a = v.substring(4, 5);\n r += r;\n g += g;\n b += b;\n a += a;\n }\n return {\n red: parseInt(r, 16),\n green: parseInt(g, 16),\n blue: parseInt(b, 16),\n alpha: a ? parseInt(a, 16) / 255 : 1,\n };\n}\nconst hex = {\n test: isColorString(\"#\"),\n parse: parseHex,\n transform: rgba.transform,\n};\n\nexport { hex };\n","import { alpha } from '../numbers/index.mjs';\nimport { percent } from '../numbers/units.mjs';\nimport { sanitize } from '../utils.mjs';\nimport { isColorString, splitColor } from './utils.mjs';\n\nconst hsla = {\n test: isColorString(\"hsl\", \"hue\"),\n parse: splitColor(\"hue\", \"saturation\", \"lightness\"),\n transform: ({ hue, saturation, lightness, alpha: alpha$1 = 1 }) => {\n return (\"hsla(\" +\n Math.round(hue) +\n \", \" +\n percent.transform(sanitize(saturation)) +\n \", \" +\n percent.transform(sanitize(lightness)) +\n \", \" +\n sanitize(alpha.transform(alpha$1)) +\n \")\");\n },\n};\n\nexport { hsla };\n","import { isString } from '../utils.mjs';\nimport { hex } from './hex.mjs';\nimport { hsla } from './hsla.mjs';\nimport { rgba } from './rgba.mjs';\n\nconst color = {\n test: (v) => rgba.test(v) || hex.test(v) || hsla.test(v),\n parse: (v) => {\n if (rgba.test(v)) {\n return rgba.parse(v);\n }\n else if (hsla.test(v)) {\n return hsla.parse(v);\n }\n else {\n return hex.parse(v);\n }\n },\n transform: (v) => {\n return isString(v)\n ? v\n : v.hasOwnProperty(\"red\")\n ? rgba.transform(v)\n : hsla.transform(v);\n },\n};\n\nexport { color };\n","import { clamp } from '../../../utils/clamp.mjs';\nimport { alpha, number } from '../numbers/index.mjs';\nimport { sanitize } from '../utils.mjs';\nimport { isColorString, splitColor } from './utils.mjs';\n\nconst clampRgbUnit = (v) => clamp(0, 255, v);\nconst rgbUnit = {\n ...number,\n transform: (v) => Math.round(clampRgbUnit(v)),\n};\nconst rgba = {\n test: isColorString(\"rgb\", \"red\"),\n parse: splitColor(\"red\", \"green\", \"blue\"),\n transform: ({ red, green, blue, alpha: alpha$1 = 1 }) => \"rgba(\" +\n rgbUnit.transform(red) +\n \", \" +\n rgbUnit.transform(green) +\n \", \" +\n rgbUnit.transform(blue) +\n \", \" +\n sanitize(alpha.transform(alpha$1)) +\n \")\",\n};\n\nexport { rgbUnit, rgba };\n","import { isString, singleColorRegex, isNullish, floatRegex } from '../utils.mjs';\n\n/**\n * Returns true if the provided string is a color, ie rgba(0,0,0,0) or #000,\n * but false if a number or multiple colors\n */\nconst isColorString = (type, testProp) => (v) => {\n return Boolean((isString(v) && singleColorRegex.test(v) && v.startsWith(type)) ||\n (testProp &&\n !isNullish(v) &&\n Object.prototype.hasOwnProperty.call(v, testProp)));\n};\nconst splitColor = (aName, bName, cName) => (v) => {\n if (!isString(v))\n return v;\n const [a, b, c, alpha] = v.match(floatRegex);\n return {\n [aName]: parseFloat(a),\n [bName]: parseFloat(b),\n [cName]: parseFloat(c),\n alpha: alpha !== undefined ? parseFloat(alpha) : 1,\n };\n};\n\nexport { isColorString, splitColor };\n","import { color } from '../color/index.mjs';\nimport { isString, floatRegex, colorRegex, sanitize } from '../utils.mjs';\n\nfunction test(v) {\n var _a, _b;\n return (isNaN(v) &&\n isString(v) &&\n (((_a = v.match(floatRegex)) === null || _a === void 0 ? void 0 : _a.length) || 0) +\n (((_b = v.match(colorRegex)) === null || _b === void 0 ? void 0 : _b.length) || 0) >\n 0);\n}\nconst NUMBER_TOKEN = \"number\";\nconst COLOR_TOKEN = \"color\";\nconst VAR_TOKEN = \"var\";\nconst VAR_FUNCTION_TOKEN = \"var(\";\nconst SPLIT_TOKEN = \"${}\";\n// this regex consists of the `singleCssVariableRegex|rgbHSLValueRegex|digitRegex`\nconst complexRegex = /var\\s*\\(\\s*--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)|#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\)|-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/giu;\nfunction analyseComplexValue(value) {\n const originalValue = value.toString();\n const values = [];\n const indexes = {\n color: [],\n number: [],\n var: [],\n };\n const types = [];\n let i = 0;\n const tokenised = originalValue.replace(complexRegex, (parsedValue) => {\n if (color.test(parsedValue)) {\n indexes.color.push(i);\n types.push(COLOR_TOKEN);\n values.push(color.parse(parsedValue));\n }\n else if (parsedValue.startsWith(VAR_FUNCTION_TOKEN)) {\n indexes.var.push(i);\n types.push(VAR_TOKEN);\n values.push(parsedValue);\n }\n else {\n indexes.number.push(i);\n types.push(NUMBER_TOKEN);\n values.push(parseFloat(parsedValue));\n }\n ++i;\n return SPLIT_TOKEN;\n });\n const split = tokenised.split(SPLIT_TOKEN);\n return { values, split, indexes, types };\n}\nfunction parseComplexValue(v) {\n return analyseComplexValue(v).values;\n}\nfunction createTransformer(source) {\n const { split, types } = analyseComplexValue(source);\n const numSections = split.length;\n return (v) => {\n let output = \"\";\n for (let i = 0; i < numSections; i++) {\n output += split[i];\n if (v[i] !== undefined) {\n const type = types[i];\n if (type === NUMBER_TOKEN) {\n output += sanitize(v[i]);\n }\n else if (type === COLOR_TOKEN) {\n output += color.transform(v[i]);\n }\n else {\n output += v[i];\n }\n }\n }\n return output;\n };\n}\nconst convertNumbersToZero = (v) => typeof v === \"number\" ? 0 : v;\nfunction getAnimatableNone(v) {\n const parsed = parseComplexValue(v);\n const transformer = createTransformer(v);\n return transformer(parsed.map(convertNumbersToZero));\n}\nconst complex = {\n test,\n parse: parseComplexValue,\n createTransformer,\n getAnimatableNone,\n};\n\nexport { analyseComplexValue, complex };\n","import { clamp } from '../../../utils/clamp.mjs';\n\nconst number = {\n test: (v) => typeof v === \"number\",\n parse: parseFloat,\n transform: (v) => v,\n};\nconst alpha = {\n ...number,\n transform: (v) => clamp(0, 1, v),\n};\nconst scale = {\n ...number,\n default: 1,\n};\n\nexport { alpha, number, scale };\n","import { isString } from '../utils.mjs';\n\nconst createUnitType = (unit) => ({\n test: (v) => isString(v) && v.endsWith(unit) && v.split(\" \").length === 1,\n parse: parseFloat,\n transform: (v) => `${v}${unit}`,\n});\nconst degrees = createUnitType(\"deg\");\nconst percent = createUnitType(\"%\");\nconst px = createUnitType(\"px\");\nconst vh = createUnitType(\"vh\");\nconst vw = createUnitType(\"vw\");\nconst progressPercentage = {\n ...percent,\n parse: (v) => percent.parse(v) / 100,\n transform: (v) => percent.transform(v * 100),\n};\n\nexport { degrees, percent, progressPercentage, px, vh, vw };\n","/**\n * TODO: When we move from string as a source of truth to data models\n * everything in this folder should probably be referred to as models vs types\n */\n// If this number is a decimal, make it just five decimal places\n// to avoid exponents\nconst sanitize = (v) => Math.round(v * 100000) / 100000;\nconst floatRegex = /-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/gu;\nconst colorRegex = /(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))/giu;\nconst singleColorRegex = /^(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))$/iu;\nfunction isString(v) {\n return typeof v === \"string\";\n}\nfunction isNullish(v) {\n return v == null;\n}\n\nexport { colorRegex, floatRegex, isNullish, isString, sanitize, singleColorRegex };\n","import { resolveElements } from '../utils/resolve-element.mjs';\n\nconst resizeHandlers = new WeakMap();\nlet observer;\nfunction getElementSize(target, borderBoxSize) {\n if (borderBoxSize) {\n const { inlineSize, blockSize } = borderBoxSize[0];\n return { width: inlineSize, height: blockSize };\n }\n else if (target instanceof SVGElement && \"getBBox\" in target) {\n return target.getBBox();\n }\n else {\n return {\n width: target.offsetWidth,\n height: target.offsetHeight,\n };\n }\n}\nfunction notifyTarget({ target, contentRect, borderBoxSize, }) {\n var _a;\n (_a = resizeHandlers.get(target)) === null || _a === void 0 ? void 0 : _a.forEach((handler) => {\n handler({\n target,\n contentSize: contentRect,\n get size() {\n return getElementSize(target, borderBoxSize);\n },\n });\n });\n}\nfunction notifyAll(entries) {\n entries.forEach(notifyTarget);\n}\nfunction createResizeObserver() {\n if (typeof ResizeObserver === \"undefined\")\n return;\n observer = new ResizeObserver(notifyAll);\n}\nfunction resizeElement(target, handler) {\n if (!observer)\n createResizeObserver();\n const elements = resolveElements(target);\n elements.forEach((element) => {\n let elementHandlers = resizeHandlers.get(element);\n if (!elementHandlers) {\n elementHandlers = new Set();\n resizeHandlers.set(element, elementHandlers);\n }\n elementHandlers.add(handler);\n observer === null || observer === void 0 ? void 0 : observer.observe(element);\n });\n return () => {\n elements.forEach((element) => {\n const elementHandlers = resizeHandlers.get(element);\n elementHandlers === null || elementHandlers === void 0 ? void 0 : elementHandlers.delete(handler);\n if (!(elementHandlers === null || elementHandlers === void 0 ? void 0 : elementHandlers.size)) {\n observer === null || observer === void 0 ? void 0 : observer.unobserve(element);\n }\n });\n };\n}\n\nexport { resizeElement };\n","import { invariant } from '../../../utils/errors.mjs';\n\nfunction resolveElements(elements, scope, selectorCache) {\n var _a;\n if (typeof elements === \"string\") {\n let root = document;\n if (scope) {\n invariant(Boolean(scope.current), \"Scope provided, but no element detected.\");\n root = scope.current;\n }\n if (selectorCache) {\n (_a = selectorCache[elements]) !== null && _a !== void 0 ? _a : (selectorCache[elements] = root.querySelectorAll(elements));\n elements = selectorCache[elements];\n }\n else {\n elements = root.querySelectorAll(elements);\n }\n }\n else if (elements instanceof Element) {\n elements = [elements];\n }\n /**\n * Return an empty array\n */\n return Array.from(elements || []);\n}\n\nexport { resolveElements };\n","const windowCallbacks = new Set();\nlet windowResizeHandler;\nfunction createWindowResizeHandler() {\n windowResizeHandler = () => {\n const size = {\n width: window.innerWidth,\n height: window.innerHeight,\n };\n const info = {\n target: window,\n size,\n contentSize: size,\n };\n windowCallbacks.forEach((callback) => callback(info));\n };\n window.addEventListener(\"resize\", windowResizeHandler);\n}\nfunction resizeWindow(callback) {\n windowCallbacks.add(callback);\n if (!windowResizeHandler)\n createWindowResizeHandler();\n return () => {\n windowCallbacks.delete(callback);\n if (!windowCallbacks.size && windowResizeHandler) {\n windowResizeHandler = undefined;\n }\n };\n}\n\nexport { resizeWindow };\n","import { progress } from '../../../utils/progress.mjs';\nimport { velocityPerSecond } from '../../../utils/velocity-per-second.mjs';\n\n/**\n * A time in milliseconds, beyond which we consider the scroll velocity to be 0.\n */\nconst maxElapsed = 50;\nconst createAxisInfo = () => ({\n current: 0,\n offset: [],\n progress: 0,\n scrollLength: 0,\n targetOffset: 0,\n targetLength: 0,\n containerLength: 0,\n velocity: 0,\n});\nconst createScrollInfo = () => ({\n time: 0,\n x: createAxisInfo(),\n y: createAxisInfo(),\n});\nconst keys = {\n x: {\n length: \"Width\",\n position: \"Left\",\n },\n y: {\n length: \"Height\",\n position: \"Top\",\n },\n};\nfunction updateAxisInfo(element, axisName, info, time) {\n const axis = info[axisName];\n const { length, position } = keys[axisName];\n const prev = axis.current;\n const prevTime = info.time;\n axis.current = element[`scroll${position}`];\n axis.scrollLength = element[`scroll${length}`] - element[`client${length}`];\n axis.offset.length = 0;\n axis.offset[0] = 0;\n axis.offset[1] = axis.scrollLength;\n axis.progress = progress(0, axis.scrollLength, axis.current);\n const elapsed = time - prevTime;\n axis.velocity =\n elapsed > maxElapsed\n ? 0\n : velocityPerSecond(axis.current - prev, elapsed);\n}\nfunction updateScrollInfo(element, info, time) {\n updateAxisInfo(element, \"x\", info, time);\n updateAxisInfo(element, \"y\", info, time);\n info.time = time;\n}\n\nexport { createScrollInfo, updateScrollInfo };\n","const ScrollOffset = {\n Enter: [\n [0, 1],\n [1, 1],\n ],\n Exit: [\n [0, 0],\n [1, 0],\n ],\n Any: [\n [1, 0],\n [0, 1],\n ],\n All: [\n [0, 0],\n [1, 1],\n ],\n};\n\nexport { ScrollOffset };\n","const namedEdges = {\n start: 0,\n center: 0.5,\n end: 1,\n};\nfunction resolveEdge(edge, length, inset = 0) {\n let delta = 0;\n /**\n * If we have this edge defined as a preset, replace the definition\n * with the numerical value.\n */\n if (edge in namedEdges) {\n edge = namedEdges[edge];\n }\n /**\n * Handle unit values\n */\n if (typeof edge === \"string\") {\n const asNumber = parseFloat(edge);\n if (edge.endsWith(\"px\")) {\n delta = asNumber;\n }\n else if (edge.endsWith(\"%\")) {\n edge = asNumber / 100;\n }\n else if (edge.endsWith(\"vw\")) {\n delta = (asNumber / 100) * document.documentElement.clientWidth;\n }\n else if (edge.endsWith(\"vh\")) {\n delta = (asNumber / 100) * document.documentElement.clientHeight;\n }\n else {\n edge = asNumber;\n }\n }\n /**\n * If the edge is defined as a number, handle as a progress value.\n */\n if (typeof edge === \"number\") {\n delta = length * edge;\n }\n return inset + delta;\n}\n\nexport { namedEdges, resolveEdge };\n","import { resolveEdge, namedEdges } from './edge.mjs';\n\nconst defaultOffset = [0, 0];\nfunction resolveOffset(offset, containerLength, targetLength, targetInset) {\n let offsetDefinition = Array.isArray(offset) ? offset : defaultOffset;\n let targetPoint = 0;\n let containerPoint = 0;\n if (typeof offset === \"number\") {\n /**\n * If we're provided offset: [0, 0.5, 1] then each number x should become\n * [x, x], so we default to the behaviour of mapping 0 => 0 of both target\n * and container etc.\n */\n offsetDefinition = [offset, offset];\n }\n else if (typeof offset === \"string\") {\n offset = offset.trim();\n if (offset.includes(\" \")) {\n offsetDefinition = offset.split(\" \");\n }\n else {\n /**\n * If we're provided a definition like \"100px\" then we want to apply\n * that only to the top of the target point, leaving the container at 0.\n * Whereas a named offset like \"end\" should be applied to both.\n */\n offsetDefinition = [offset, namedEdges[offset] ? offset : `0`];\n }\n }\n targetPoint = resolveEdge(offsetDefinition[0], targetLength, targetInset);\n containerPoint = resolveEdge(offsetDefinition[1], containerLength);\n return targetPoint - containerPoint;\n}\n\nexport { resolveOffset };\n","import { calcInset } from './inset.mjs';\nimport { ScrollOffset } from './presets.mjs';\nimport { resolveOffset } from './offset.mjs';\nimport { interpolate } from '../../../../utils/interpolate.mjs';\nimport { defaultOffset } from '../../../../utils/offsets/default.mjs';\n\nconst point = { x: 0, y: 0 };\nfunction getTargetSize(target) {\n return \"getBBox\" in target && target.tagName !== \"svg\"\n ? target.getBBox()\n : { width: target.clientWidth, height: target.clientHeight };\n}\nfunction resolveOffsets(container, info, options) {\n const { offset: offsetDefinition = ScrollOffset.All } = options;\n const { target = container, axis = \"y\" } = options;\n const lengthLabel = axis === \"y\" ? \"height\" : \"width\";\n const inset = target !== container ? calcInset(target, container) : point;\n /**\n * Measure the target and container. If they're the same thing then we\n * use the container's scrollWidth/Height as the target, from there\n * all other calculations can remain the same.\n */\n const targetSize = target === container\n ? { width: container.scrollWidth, height: container.scrollHeight }\n : getTargetSize(target);\n const containerSize = {\n width: container.clientWidth,\n height: container.clientHeight,\n };\n /**\n * Reset the length of the resolved offset array rather than creating a new one.\n * TODO: More reusable data structures for targetSize/containerSize would also be good.\n */\n info[axis].offset.length = 0;\n /**\n * Populate the offset array by resolving the user's offset definition into\n * a list of pixel scroll offets.\n */\n let hasChanged = !info[axis].interpolate;\n const numOffsets = offsetDefinition.length;\n for (let i = 0; i < numOffsets; i++) {\n const offset = resolveOffset(offsetDefinition[i], containerSize[lengthLabel], targetSize[lengthLabel], inset[axis]);\n if (!hasChanged && offset !== info[axis].interpolatorOffsets[i]) {\n hasChanged = true;\n }\n info[axis].offset[i] = offset;\n }\n /**\n * If the pixel scroll offsets have changed, create a new interpolator function\n * to map scroll value into a progress.\n */\n if (hasChanged) {\n info[axis].interpolate = interpolate(info[axis].offset, defaultOffset(offsetDefinition));\n info[axis].interpolatorOffsets = [...info[axis].offset];\n }\n info[axis].progress = info[axis].interpolate(info[axis].current);\n}\n\nexport { resolveOffsets };\n","function calcInset(element, container) {\n const inset = { x: 0, y: 0 };\n let current = element;\n while (current && current !== container) {\n if (current instanceof HTMLElement) {\n inset.x += current.offsetLeft;\n inset.y += current.offsetTop;\n current = current.offsetParent;\n }\n else if (current.tagName === \"svg\") {\n /**\n * This isn't an ideal approach to measuring the offset of <svg /> tags.\n * It would be preferable, given they behave like HTMLElements in most ways\n * to use offsetLeft/Top. But these don't exist on <svg />. Likewise we\n * can't use .getBBox() like most SVG elements as these provide the offset\n * relative to the SVG itself, which for <svg /> is usually 0x0.\n */\n const svgBoundingBox = current.getBoundingClientRect();\n current = current.parentElement;\n const parentBoundingBox = current.getBoundingClientRect();\n inset.x += svgBoundingBox.left - parentBoundingBox.left;\n inset.y += svgBoundingBox.top - parentBoundingBox.top;\n }\n else if (current instanceof SVGGraphicsElement) {\n const { x, y } = current.getBBox();\n inset.x += x;\n inset.y += y;\n let svg = null;\n let parent = current.parentNode;\n while (!svg) {\n if (parent.tagName === \"svg\") {\n svg = parent;\n }\n parent = current.parentNode;\n }\n current = svg;\n }\n else {\n break;\n }\n }\n return inset;\n}\n\nexport { calcInset };\n","import { warnOnce } from '../../../utils/warn-once.mjs';\nimport { updateScrollInfo } from './info.mjs';\nimport { resolveOffsets } from './offsets/index.mjs';\n\nfunction measure(container, target = container, info) {\n /**\n * Find inset of target within scrollable container\n */\n info.x.targetOffset = 0;\n info.y.targetOffset = 0;\n if (target !== container) {\n let node = target;\n while (node && node !== container) {\n info.x.targetOffset += node.offsetLeft;\n info.y.targetOffset += node.offsetTop;\n node = node.offsetParent;\n }\n }\n info.x.targetLength =\n target === container ? target.scrollWidth : target.clientWidth;\n info.y.targetLength =\n target === container ? target.scrollHeight : target.clientHeight;\n info.x.containerLength = container.clientWidth;\n info.y.containerLength = container.clientHeight;\n /**\n * In development mode ensure scroll containers aren't position: static as this makes\n * it difficult to measure their relative positions.\n */\n if (process.env.NODE_ENV !== \"production\") {\n if (container && target && target !== container) {\n warnOnce(getComputedStyle(container).position !== \"static\", \"Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.\");\n }\n }\n}\nfunction createOnScrollHandler(element, onScroll, info, options = {}) {\n return {\n measure: () => measure(element, options.target, info),\n update: (time) => {\n updateScrollInfo(element, info, time);\n if (options.offset || options.target) {\n resolveOffsets(element, info, options);\n }\n },\n notify: () => onScroll(info),\n };\n}\n\nexport { createOnScrollHandler };\n","import { resize } from '../resize/index.mjs';\nimport { createScrollInfo } from './info.mjs';\nimport { createOnScrollHandler } from './on-scroll-handler.mjs';\nimport { frame, cancelFrame, frameData } from '../../../frameloop/frame.mjs';\n\nconst scrollListeners = new WeakMap();\nconst resizeListeners = new WeakMap();\nconst onScrollHandlers = new WeakMap();\nconst getEventTarget = (element) => element === document.documentElement ? window : element;\nfunction scrollInfo(onScroll, { container = document.documentElement, ...options } = {}) {\n let containerHandlers = onScrollHandlers.get(container);\n /**\n * Get the onScroll handlers for this container.\n * If one isn't found, create a new one.\n */\n if (!containerHandlers) {\n containerHandlers = new Set();\n onScrollHandlers.set(container, containerHandlers);\n }\n /**\n * Create a new onScroll handler for the provided callback.\n */\n const info = createScrollInfo();\n const containerHandler = createOnScrollHandler(container, onScroll, info, options);\n containerHandlers.add(containerHandler);\n /**\n * Check if there's a scroll event listener for this container.\n * If not, create one.\n */\n if (!scrollListeners.has(container)) {\n const measureAll = () => {\n for (const handler of containerHandlers)\n handler.measure();\n };\n const updateAll = () => {\n for (const handler of containerHandlers) {\n handler.update(frameData.timestamp);\n }\n };\n const notifyAll = () => {\n for (const handler of containerHandlers)\n handler.notify();\n };\n const listener = () => {\n frame.read(measureAll, false, true);\n frame.read(updateAll, false, true);\n frame.update(notifyAll, false, true);\n };\n scrollListeners.set(container, listener);\n const target = getEventTarget(container);\n window.addEventListener(\"resize\", listener, { passive: true });\n if (container !== document.documentElement) {\n resizeListeners.set(container, resize(container, listener));\n }\n target.addEventListener(\"scroll\", listener, { passive: true });\n }\n const listener = scrollListeners.get(container);\n frame.read(listener, false, true);\n return () => {\n var _a;\n cancelFrame(listener);\n /**\n * Check if we even have any handlers for this container.\n */\n const currentHandlers = onScrollHandlers.get(container);\n if (!currentHandlers)\n return;\n currentHandlers.delete(containerHandler);\n if (currentHandlers.size)\n return;\n /**\n * If no more handlers, remove the scroll listener too.\n */\n const scrollListener = scrollListeners.get(container);\n scrollListeners.delete(container);\n if (scrollListener) {\n getEventTarget(container).removeEventListener(\"scroll\", scrollListener);\n (_a = resizeListeners.get(container)) === null || _a === void 0 ? void 0 : _a();\n window.removeEventListener(\"resize\", scrollListener);\n }\n };\n}\n\nexport { scrollInfo };\n","import { resizeElement } from './handle-element.mjs';\nimport { resizeWindow } from './handle-window.mjs';\n\nfunction resize(a, b) {\n return typeof a === \"function\" ? resizeWindow(a) : resizeElement(a, b);\n}\n\nexport { resize };\n","import { motionValue } from './index.mjs';\nimport { useConstant } from '../utils/use-constant.mjs';\nimport { useEffect } from 'react';\nimport { warning } from '../utils/errors.mjs';\nimport { scrollInfo } from '../render/dom/scroll/track.mjs';\nimport { useIsomorphicLayoutEffect } from '../utils/use-isomorphic-effect.mjs';\n\nfunction refWarning(name, ref) {\n warning(Boolean(!ref || ref.current), `You have defined a ${name} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \\`layoutEffect: false\\` option.`);\n}\nconst createScrollMotionValues = () => ({\n scrollX: motionValue(0),\n scrollY: motionValue(0),\n scrollXProgress: motionValue(0),\n scrollYProgress: motionValue(0),\n});\nfunction useScroll({ container, target, layoutEffect = true, ...options } = {}) {\n const values = useConstant(createScrollMotionValues);\n const useLifecycleEffect = layoutEffect\n ? useIsomorphicLayoutEffect\n : useEffect;\n useLifecycleEffect(() => {\n refWarning(\"target\", target);\n refWarning(\"container\", container);\n return scrollInfo(({ x, y }) => {\n values.scrollX.set(x.current);\n values.scrollXProgress.set(x.progress);\n values.scrollY.set(y.current);\n values.scrollYProgress.set(y.progress);\n }, {\n ...options,\n container: (container === null || container === void 0 ? void 0 : container.current) || undefined,\n target: (target === null || target === void 0 ? void 0 : target.current) || undefined,\n });\n }, [container, target, JSON.stringify(options.offset)]);\n return values;\n}\n\nexport { useScroll };\n","import _extends from '@babel/runtime/helpers/esm/extends';\n\n/**\r\n * Actions represent the type of change to a location value.\r\n *\r\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#action\r\n */\nvar Action;\n\n(function (Action) {\n /**\r\n * A POP indicates a change to an arbitrary index in the history stack, such\r\n * as a back or forward navigation. It does not describe the direction of the\r\n * navigation, only that the current index changed.\r\n *\r\n * Note: This is the default action for newly created history objects.\r\n */\n Action[\"Pop\"] = \"POP\";\n /**\r\n * A PUSH indicates a new entry being added to the history stack, such as when\r\n * a link is clicked and a new page loads. When this happens, all subsequent\r\n * entries in the stack are lost.\r\n */\n\n Action[\"Push\"] = \"PUSH\";\n /**\r\n * A REPLACE indicates the entry at the current index in the history stack\r\n * being replaced by a new one.\r\n */\n\n Action[\"Replace\"] = \"REPLACE\";\n})(Action || (Action = {}));\n\nvar readOnly = process.env.NODE_ENV !== \"production\" ? function (obj) {\n return Object.freeze(obj);\n} : function (obj) {\n return obj;\n};\n\nfunction warning(cond, message) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== 'undefined') console.warn(message);\n\n try {\n // Welcome to debugging history!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message); // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\n\nvar BeforeUnloadEventType = 'beforeunload';\nvar HashChangeEventType = 'hashchange';\nvar PopStateEventType = 'popstate';\n/**\r\n * Browser history stores the location in regular URLs. This is the standard for\r\n * most web apps, but it requires some configuration on the server to ensure you\r\n * serve the same app at multiple URLs.\r\n *\r\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory\r\n */\n\nfunction createBrowserHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$window = _options.window,\n window = _options$window === void 0 ? document.defaultView : _options$window;\n var globalHistory = window.history;\n\n function getIndexAndLocation() {\n var _window$location = window.location,\n pathname = _window$location.pathname,\n search = _window$location.search,\n hash = _window$location.hash;\n var state = globalHistory.state || {};\n return [state.idx, readOnly({\n pathname: pathname,\n search: search,\n hash: hash,\n state: state.usr || null,\n key: state.key || 'default'\n })];\n }\n\n var blockedPopTx = null;\n\n function handlePop() {\n if (blockedPopTx) {\n blockers.call(blockedPopTx);\n blockedPopTx = null;\n } else {\n var nextAction = Action.Pop;\n\n var _getIndexAndLocation = getIndexAndLocation(),\n nextIndex = _getIndexAndLocation[0],\n nextLocation = _getIndexAndLocation[1];\n\n if (blockers.length) {\n if (nextIndex != null) {\n var delta = index - nextIndex;\n\n if (delta) {\n // Revert the POP\n blockedPopTx = {\n action: nextAction,\n location: nextLocation,\n retry: function retry() {\n go(delta * -1);\n }\n };\n go(delta);\n }\n } else {\n // Trying to POP to a location with no index. We did not create\n // this location, so we can't effectively block the navigation.\n process.env.NODE_ENV !== \"production\" ? warning(false, // TODO: Write up a doc that explains our blocking strategy in\n // detail and link to it here so people can understand better what\n // is going on and how to avoid it.\n \"You are trying to block a POP navigation to a location that was not \" + \"created by the history library. The block will fail silently in \" + \"production, but in general you should do all navigation with the \" + \"history library (instead of using window.history.pushState directly) \" + \"to avoid this situation.\") : void 0;\n }\n } else {\n applyTx(nextAction);\n }\n }\n }\n\n window.addEventListener(PopStateEventType, handlePop);\n var action = Action.Pop;\n\n var _getIndexAndLocation2 = getIndexAndLocation(),\n index = _getIndexAndLocation2[0],\n location = _getIndexAndLocation2[1];\n\n var listeners = createEvents();\n var blockers = createEvents();\n\n if (index == null) {\n index = 0;\n globalHistory.replaceState(_extends({}, globalHistory.state, {\n idx: index\n }), '');\n }\n\n function createHref(to) {\n return typeof to === 'string' ? to : createPath(to);\n } // state defaults to `null` because `window.history.state` does\n\n\n function getNextLocation(to, state) {\n if (state === void 0) {\n state = null;\n }\n\n return readOnly(_extends({\n pathname: location.pathname,\n hash: '',\n search: ''\n }, typeof to === 'string' ? parsePath(to) : to, {\n state: state,\n key: createKey()\n }));\n }\n\n function getHistoryStateAndUrl(nextLocation, index) {\n return [{\n usr: nextLocation.state,\n key: nextLocation.key,\n idx: index\n }, createHref(nextLocation)];\n }\n\n function allowTx(action, location, retry) {\n return !blockers.length || (blockers.call({\n action: action,\n location: location,\n retry: retry\n }), false);\n }\n\n function applyTx(nextAction) {\n action = nextAction;\n\n var _getIndexAndLocation3 = getIndexAndLocation();\n\n index = _getIndexAndLocation3[0];\n location = _getIndexAndLocation3[1];\n listeners.call({\n action: action,\n location: location\n });\n }\n\n function push(to, state) {\n var nextAction = Action.Push;\n var nextLocation = getNextLocation(to, state);\n\n function retry() {\n push(to, state);\n }\n\n if (allowTx(nextAction, nextLocation, retry)) {\n var _getHistoryStateAndUr = getHistoryStateAndUrl(nextLocation, index + 1),\n historyState = _getHistoryStateAndUr[0],\n url = _getHistoryStateAndUr[1]; // TODO: Support forced reloading\n // try...catch because iOS limits us to 100 pushState calls :/\n\n\n try {\n globalHistory.pushState(historyState, '', url);\n } catch (error) {\n // They are going to lose state here, but there is no real\n // way to warn them about it since the page will refresh...\n window.location.assign(url);\n }\n\n applyTx(nextAction);\n }\n }\n\n function replace(to, state) {\n var nextAction = Action.Replace;\n var nextLocation = getNextLocation(to, state);\n\n function retry() {\n replace(to, state);\n }\n\n if (allowTx(nextAction, nextLocation, retry)) {\n var _getHistoryStateAndUr2 = getHistoryStateAndUrl(nextLocation, index),\n historyState = _getHistoryStateAndUr2[0],\n url = _getHistoryStateAndUr2[1]; // TODO: Support forced reloading\n\n\n globalHistory.replaceState(historyState, '', url);\n applyTx(nextAction);\n }\n }\n\n function go(delta) {\n globalHistory.go(delta);\n }\n\n var history = {\n get action() {\n return action;\n },\n\n get location() {\n return location;\n },\n\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n back: function back() {\n go(-1);\n },\n forward: function forward() {\n go(1);\n },\n listen: function listen(listener) {\n return listeners.push(listener);\n },\n block: function block(blocker) {\n var unblock = blockers.push(blocker);\n\n if (blockers.length === 1) {\n window.addEventListener(BeforeUnloadEventType, promptBeforeUnload);\n }\n\n return function () {\n unblock(); // Remove the beforeunload listener so the document may\n // still be salvageable in the pagehide event.\n // See https://html.spec.whatwg.org/#unloading-documents\n\n if (!blockers.length) {\n window.removeEventListener(BeforeUnloadEventType, promptBeforeUnload);\n }\n };\n }\n };\n return history;\n}\n/**\r\n * Hash history stores the location in window.location.hash. This makes it ideal\r\n * for situations where you don't want to send the location to the server for\r\n * some reason, either because you do cannot configure it or the URL space is\r\n * reserved for something else.\r\n *\r\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createhashhistory\r\n */\n\nfunction createHashHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options2 = options,\n _options2$window = _options2.window,\n window = _options2$window === void 0 ? document.defaultView : _options2$window;\n var globalHistory = window.history;\n\n function getIndexAndLocation() {\n var _parsePath = parsePath(window.location.hash.substr(1)),\n _parsePath$pathname = _parsePath.pathname,\n pathname = _parsePath$pathname === void 0 ? '/' : _parsePath$pathname,\n _parsePath$search = _parsePath.search,\n search = _parsePath$search === void 0 ? '' : _parsePath$search,\n _parsePath$hash = _parsePath.hash,\n hash = _parsePath$hash === void 0 ? '' : _parsePath$hash;\n\n var state = globalHistory.state || {};\n return [state.idx, readOnly({\n pathname: pathname,\n search: search,\n hash: hash,\n state: state.usr || null,\n key: state.key || 'default'\n })];\n }\n\n var blockedPopTx = null;\n\n function handlePop() {\n if (blockedPopTx) {\n blockers.call(blockedPopTx);\n blockedPopTx = null;\n } else {\n var nextAction = Action.Pop;\n\n var _getIndexAndLocation4 = getIndexAndLocation(),\n nextIndex = _getIndexAndLocation4[0],\n nextLocation = _getIndexAndLocation4[1];\n\n if (blockers.length) {\n if (nextIndex != null) {\n var delta = index - nextIndex;\n\n if (delta) {\n // Revert the POP\n blockedPopTx = {\n action: nextAction,\n location: nextLocation,\n retry: function retry() {\n go(delta * -1);\n }\n };\n go(delta);\n }\n } else {\n // Trying to POP to a location with no index. We did not create\n // this location, so we can't effectively block the navigation.\n process.env.NODE_ENV !== \"production\" ? warning(false, // TODO: Write up a doc that explains our blocking strategy in\n // detail and link to it here so people can understand better\n // what is going on and how to avoid it.\n \"You are trying to block a POP navigation to a location that was not \" + \"created by the history library. The block will fail silently in \" + \"production, but in general you should do all navigation with the \" + \"history library (instead of using window.history.pushState directly) \" + \"to avoid this situation.\") : void 0;\n }\n } else {\n applyTx(nextAction);\n }\n }\n }\n\n window.addEventListener(PopStateEventType, handlePop); // popstate does not fire on hashchange in IE 11 and old (trident) Edge\n // https://developer.mozilla.org/de/docs/Web/API/Window/popstate_event\n\n window.addEventListener(HashChangeEventType, function () {\n var _getIndexAndLocation5 = getIndexAndLocation(),\n nextLocation = _getIndexAndLocation5[1]; // Ignore extraneous hashchange events.\n\n\n if (createPath(nextLocation) !== createPath(location)) {\n handlePop();\n }\n });\n var action = Action.Pop;\n\n var _getIndexAndLocation6 = getIndexAndLocation(),\n index = _getIndexAndLocation6[0],\n location = _getIndexAndLocation6[1];\n\n var listeners = createEvents();\n var blockers = createEvents();\n\n if (index == null) {\n index = 0;\n globalHistory.replaceState(_extends({}, globalHistory.state, {\n idx: index\n }), '');\n }\n\n function getBaseHref() {\n var base = document.querySelector('base');\n var href = '';\n\n if (base && base.getAttribute('href')) {\n var url = window.location.href;\n var hashIndex = url.indexOf('#');\n href = hashIndex === -1 ? url : url.slice(0, hashIndex);\n }\n\n return href;\n }\n\n function createHref(to) {\n return getBaseHref() + '#' + (typeof to === 'string' ? to : createPath(to));\n }\n\n function getNextLocation(to, state) {\n if (state === void 0) {\n state = null;\n }\n\n return readOnly(_extends({\n pathname: location.pathname,\n hash: '',\n search: ''\n }, typeof to === 'string' ? parsePath(to) : to, {\n state: state,\n key: createKey()\n }));\n }\n\n function getHistoryStateAndUrl(nextLocation, index) {\n return [{\n usr: nextLocation.state,\n key: nextLocation.key,\n idx: index\n }, createHref(nextLocation)];\n }\n\n function allowTx(action, location, retry) {\n return !blockers.length || (blockers.call({\n action: action,\n location: location,\n retry: retry\n }), false);\n }\n\n function applyTx(nextAction) {\n action = nextAction;\n\n var _getIndexAndLocation7 = getIndexAndLocation();\n\n index = _getIndexAndLocation7[0];\n location = _getIndexAndLocation7[1];\n listeners.call({\n action: action,\n location: location\n });\n }\n\n function push(to, state) {\n var nextAction = Action.Push;\n var nextLocation = getNextLocation(to, state);\n\n function retry() {\n push(to, state);\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(nextLocation.pathname.charAt(0) === '/', \"Relative pathnames are not supported in hash history.push(\" + JSON.stringify(to) + \")\") : void 0;\n\n if (allowTx(nextAction, nextLocation, retry)) {\n var _getHistoryStateAndUr3 = getHistoryStateAndUrl(nextLocation, index + 1),\n historyState = _getHistoryStateAndUr3[0],\n url = _getHistoryStateAndUr3[1]; // TODO: Support forced reloading\n // try...catch because iOS limits us to 100 pushState calls :/\n\n\n try {\n globalHistory.pushState(historyState, '', url);\n } catch (error) {\n // They are going to lose state here, but there is no real\n // way to warn them about it since the page will refresh...\n window.location.assign(url);\n }\n\n applyTx(nextAction);\n }\n }\n\n function replace(to, state) {\n var nextAction = Action.Replace;\n var nextLocation = getNextLocation(to, state);\n\n function retry() {\n replace(to, state);\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(nextLocation.pathname.charAt(0) === '/', \"Relative pathnames are not supported in hash history.replace(\" + JSON.stringify(to) + \")\") : void 0;\n\n if (allowTx(nextAction, nextLocation, retry)) {\n var _getHistoryStateAndUr4 = getHistoryStateAndUrl(nextLocation, index),\n historyState = _getHistoryStateAndUr4[0],\n url = _getHistoryStateAndUr4[1]; // TODO: Support forced reloading\n\n\n globalHistory.replaceState(historyState, '', url);\n applyTx(nextAction);\n }\n }\n\n function go(delta) {\n globalHistory.go(delta);\n }\n\n var history = {\n get action() {\n return action;\n },\n\n get location() {\n return location;\n },\n\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n back: function back() {\n go(-1);\n },\n forward: function forward() {\n go(1);\n },\n listen: function listen(listener) {\n return listeners.push(listener);\n },\n block: function block(blocker) {\n var unblock = blockers.push(blocker);\n\n if (blockers.length === 1) {\n window.addEventListener(BeforeUnloadEventType, promptBeforeUnload);\n }\n\n return function () {\n unblock(); // Remove the beforeunload listener so the document may\n // still be salvageable in the pagehide event.\n // See https://html.spec.whatwg.org/#unloading-documents\n\n if (!blockers.length) {\n window.removeEventListener(BeforeUnloadEventType, promptBeforeUnload);\n }\n };\n }\n };\n return history;\n}\n/**\r\n * Memory history stores the current location in memory. It is designed for use\r\n * in stateful non-browser environments like tests and React Native.\r\n *\r\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#creatememoryhistory\r\n */\n\nfunction createMemoryHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options3 = options,\n _options3$initialEntr = _options3.initialEntries,\n initialEntries = _options3$initialEntr === void 0 ? ['/'] : _options3$initialEntr,\n initialIndex = _options3.initialIndex;\n var entries = initialEntries.map(function (entry) {\n var location = readOnly(_extends({\n pathname: '/',\n search: '',\n hash: '',\n state: null,\n key: createKey()\n }, typeof entry === 'string' ? parsePath(entry) : entry));\n process.env.NODE_ENV !== \"production\" ? warning(location.pathname.charAt(0) === '/', \"Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: \" + JSON.stringify(entry) + \")\") : void 0;\n return location;\n });\n var index = clamp(initialIndex == null ? entries.length - 1 : initialIndex, 0, entries.length - 1);\n var action = Action.Pop;\n var location = entries[index];\n var listeners = createEvents();\n var blockers = createEvents();\n\n function createHref(to) {\n return typeof to === 'string' ? to : createPath(to);\n }\n\n function getNextLocation(to, state) {\n if (state === void 0) {\n state = null;\n }\n\n return readOnly(_extends({\n pathname: location.pathname,\n search: '',\n hash: ''\n }, typeof to === 'string' ? parsePath(to) : to, {\n state: state,\n key: createKey()\n }));\n }\n\n function allowTx(action, location, retry) {\n return !blockers.length || (blockers.call({\n action: action,\n location: location,\n retry: retry\n }), false);\n }\n\n function applyTx(nextAction, nextLocation) {\n action = nextAction;\n location = nextLocation;\n listeners.call({\n action: action,\n location: location\n });\n }\n\n function push(to, state) {\n var nextAction = Action.Push;\n var nextLocation = getNextLocation(to, state);\n\n function retry() {\n push(to, state);\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(location.pathname.charAt(0) === '/', \"Relative pathnames are not supported in memory history.push(\" + JSON.stringify(to) + \")\") : void 0;\n\n if (allowTx(nextAction, nextLocation, retry)) {\n index += 1;\n entries.splice(index, entries.length, nextLocation);\n applyTx(nextAction, nextLocation);\n }\n }\n\n function replace(to, state) {\n var nextAction = Action.Replace;\n var nextLocation = getNextLocation(to, state);\n\n function retry() {\n replace(to, state);\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(location.pathname.charAt(0) === '/', \"Relative pathnames are not supported in memory history.replace(\" + JSON.stringify(to) + \")\") : void 0;\n\n if (allowTx(nextAction, nextLocation, retry)) {\n entries[index] = nextLocation;\n applyTx(nextAction, nextLocation);\n }\n }\n\n function go(delta) {\n var nextIndex = clamp(index + delta, 0, entries.length - 1);\n var nextAction = Action.Pop;\n var nextLocation = entries[nextIndex];\n\n function retry() {\n go(delta);\n }\n\n if (allowTx(nextAction, nextLocation, retry)) {\n index = nextIndex;\n applyTx(nextAction, nextLocation);\n }\n }\n\n var history = {\n get index() {\n return index;\n },\n\n get action() {\n return action;\n },\n\n get location() {\n return location;\n },\n\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n back: function back() {\n go(-1);\n },\n forward: function forward() {\n go(1);\n },\n listen: function listen(listener) {\n return listeners.push(listener);\n },\n block: function block(blocker) {\n return blockers.push(blocker);\n }\n };\n return history;\n} ////////////////////////////////////////////////////////////////////////////////\n// UTILS\n////////////////////////////////////////////////////////////////////////////////\n\nfunction clamp(n, lowerBound, upperBound) {\n return Math.min(Math.max(n, lowerBound), upperBound);\n}\n\nfunction promptBeforeUnload(event) {\n // Cancel the event.\n event.preventDefault(); // Chrome (and legacy IE) requires returnValue to be set.\n\n event.returnValue = '';\n}\n\nfunction createEvents() {\n var handlers = [];\n return {\n get length() {\n return handlers.length;\n },\n\n push: function push(fn) {\n handlers.push(fn);\n return function () {\n handlers = handlers.filter(function (handler) {\n return handler !== fn;\n });\n };\n },\n call: function call(arg) {\n handlers.forEach(function (fn) {\n return fn && fn(arg);\n });\n }\n };\n}\n\nfunction createKey() {\n return Math.random().toString(36).substr(2, 8);\n}\n/**\r\n * Creates a string URL path from the given pathname, search, and hash components.\r\n *\r\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createpath\r\n */\n\n\nfunction createPath(_ref) {\n var _ref$pathname = _ref.pathname,\n pathname = _ref$pathname === void 0 ? '/' : _ref$pathname,\n _ref$search = _ref.search,\n search = _ref$search === void 0 ? '' : _ref$search,\n _ref$hash = _ref.hash,\n hash = _ref$hash === void 0 ? '' : _ref$hash;\n if (search && search !== '?') pathname += search.charAt(0) === '?' ? search : '?' + search;\n if (hash && hash !== '#') pathname += hash.charAt(0) === '#' ? hash : '#' + hash;\n return pathname;\n}\n/**\r\n * Parses a string URL path into its separate pathname, search, and hash components.\r\n *\r\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#parsepath\r\n */\n\nfunction parsePath(path) {\n var parsedPath = {};\n\n if (path) {\n var hashIndex = path.indexOf('#');\n\n if (hashIndex >= 0) {\n parsedPath.hash = path.substr(hashIndex);\n path = path.substr(0, hashIndex);\n }\n\n var searchIndex = path.indexOf('?');\n\n if (searchIndex >= 0) {\n parsedPath.search = path.substr(searchIndex);\n path = path.substr(0, searchIndex);\n }\n\n if (path) {\n parsedPath.pathname = path;\n }\n }\n\n return parsedPath;\n}\n\nexport { Action, createBrowserHistory, createHashHistory, createMemoryHistory, createPath, parsePath };\n","// This file replaces `format.js` in bundlers like webpack or Rollup,\n// according to `browser` config in `package.json`.\n\nmodule.exports = function (random, alphabet, size) {\n // We can’t use bytes bigger than the alphabet. To make bytes values closer\n // to the alphabet, we apply bitmask on them. We look for the closest\n // `2 ** x - 1` number, which will be bigger than alphabet size. If we have\n // 30 symbols in the alphabet, we will take 31 (00011111).\n // We do not use faster Math.clz32, because it is not available in browsers.\n var mask = (2 << Math.log(alphabet.length - 1) / Math.LN2) - 1\n // Bitmask is not a perfect solution (in our example it will pass 31 bytes,\n // which is bigger than the alphabet). As a result, we will need more bytes,\n // than ID size, because we will refuse bytes bigger than the alphabet.\n\n // Every hardware random generator call is costly,\n // because we need to wait for entropy collection. This is why often it will\n // be faster to ask for few extra bytes in advance, to avoid additional calls.\n\n // Here we calculate how many random bytes should we call in advance.\n // It depends on ID length, mask / alphabet size and magic number 1.6\n // (which was selected according benchmarks).\n\n // -~f => Math.ceil(f) if n is float number\n // -~i => i + 1 if n is integer number\n var step = -~(1.6 * mask * size / alphabet.length)\n var id = ''\n\n while (true) {\n var bytes = random(step)\n // Compact alternative for `for (var i = 0; i < step; i++)`\n var i = step\n while (i--) {\n // If random byte is bigger than alphabet even after bitmask,\n // we refuse it by `|| ''`.\n id += alphabet[bytes[i] & mask] || ''\n // More compact than `id.length + 1 === size`\n if (id.length === +size) return id\n }\n }\n}\n","/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),ca=require(\"scheduler\");function p(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;c<arguments.length;c++)b+=\"&args[]=\"+encodeURIComponent(arguments[c]);return\"Minified React error #\"+a+\"; visit \"+b+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var da=new Set,ea={};function fa(a,b){ha(a,b);ha(a+\"Capture\",b)}\nfunction ha(a,b){ea[a]=b;for(a=0;a<b.length;a++)da.add(b[a])}\nvar ia=!(\"undefined\"===typeof window||\"undefined\"===typeof window.document||\"undefined\"===typeof window.document.createElement),ja=Object.prototype.hasOwnProperty,ka=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,la=\n{},ma={};function oa(a){if(ja.call(ma,a))return!0;if(ja.call(la,a))return!1;if(ka.test(a))return ma[a]=!0;la[a]=!0;return!1}function pa(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case \"function\":case \"symbol\":return!0;case \"boolean\":if(d)return!1;if(null!==c)return!c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return\"data-\"!==a&&\"aria-\"!==a;default:return!1}}\nfunction qa(a,b,c,d){if(null===b||\"undefined\"===typeof b||pa(a,b,c,d))return!0;if(d)return!1;if(null!==c)switch(c.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){z[a]=new v(a,2,!1,a,null,!1,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});[\"capture\",\"download\"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(ra,\nsa);z[b]=new v(b,1,!1,a,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)});\nz.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)});\nfunction ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2<b.length)||\"o\"!==b[0]&&\"O\"!==b[0]||\"n\"!==b[1]&&\"N\"!==b[1])qa(b,c,e,d)&&(c=null),d||null===e?oa(b)&&(null===c?a.removeAttribute(b):a.setAttribute(b,\"\"+c)):e.mustUseProperty?a[e.propertyName]=null===c?3===e.type?!1:\"\":c:(b=e.attributeName,d=e.attributeNamespace,null===c?a.removeAttribute(b):(e=e.type,c=3===e||4===e&&!0===c?\"\":\"\"+c,d?a.setAttributeNS(d,b,c):a.setAttribute(b,c)))}\nvar ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for(\"react.element\"),wa=Symbol.for(\"react.portal\"),ya=Symbol.for(\"react.fragment\"),za=Symbol.for(\"react.strict_mode\"),Aa=Symbol.for(\"react.profiler\"),Ba=Symbol.for(\"react.provider\"),Ca=Symbol.for(\"react.context\"),Da=Symbol.for(\"react.forward_ref\"),Ea=Symbol.for(\"react.suspense\"),Fa=Symbol.for(\"react.suspense_list\"),Ga=Symbol.for(\"react.memo\"),Ha=Symbol.for(\"react.lazy\");Symbol.for(\"react.scope\");Symbol.for(\"react.debug_trace_mode\");\nvar Ia=Symbol.for(\"react.offscreen\");Symbol.for(\"react.legacy_hidden\");Symbol.for(\"react.cache\");Symbol.for(\"react.tracing_marker\");var Ja=Symbol.iterator;function Ka(a){if(null===a||\"object\"!==typeof a)return null;a=Ja&&a[Ja]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}var A=Object.assign,La;function Ma(a){if(void 0===La)try{throw Error();}catch(c){var b=c.stack.trim().match(/\\n( *(at )?)/);La=b&&b[1]||\"\"}return\"\\n\"+La+a}var Na=!1;\nfunction Oa(a,b){if(!a||Na)return\"\";Na=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(b)if(b=function(){throw Error();},Object.defineProperty(b.prototype,\"props\",{set:function(){throw Error();}}),\"object\"===typeof Reflect&&Reflect.construct){try{Reflect.construct(b,[])}catch(l){var d=l}Reflect.construct(a,[],b)}else{try{b.call()}catch(l){d=l}a.call(b.prototype)}else{try{throw Error();}catch(l){d=l}a()}}catch(l){if(l&&d&&\"string\"===typeof l.stack){for(var e=l.stack.split(\"\\n\"),\nf=d.stack.split(\"\\n\"),g=e.length-1,h=f.length-1;1<=g&&0<=h&&e[g]!==f[h];)h--;for(;1<=g&&0<=h;g--,h--)if(e[g]!==f[h]){if(1!==g||1!==h){do if(g--,h--,0>h||e[g]!==f[h]){var k=\"\\n\"+e[g].replace(\" at new \",\" at \");a.displayName&&k.includes(\"<anonymous>\")&&(k=k.replace(\"<anonymous>\",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:\"\")?Ma(a):\"\"}\nfunction Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma(\"Lazy\");case 13:return Ma(\"Suspense\");case 19:return Ma(\"SuspenseList\");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return\"\"}}\nfunction Qa(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){case ya:return\"Fragment\";case wa:return\"Portal\";case Aa:return\"Profiler\";case za:return\"StrictMode\";case Ea:return\"Suspense\";case Fa:return\"SuspenseList\"}if(\"object\"===typeof a)switch(a.$$typeof){case Ca:return(a.displayName||\"Context\")+\".Consumer\";case Ba:return(a._context.displayName||\"Context\")+\".Provider\";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||\nb.name||\"\",a=\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||\"Memo\";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null}\nfunction Ra(a){var b=a.type;switch(a.tag){case 24:return\"Cache\";case 9:return(b.displayName||\"Context\")+\".Consumer\";case 10:return(b._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return a=b.render,a=a.displayName||a.name||\"\",b.displayName||(\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return b;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return Qa(b);case 8:return b===za?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";\ncase 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"===typeof b)return b.displayName||b.name||null;if(\"string\"===typeof b)return b}return null}function Sa(a){switch(typeof a){case \"boolean\":case \"number\":case \"string\":case \"undefined\":return a;case \"object\":return a;default:return\"\"}}\nfunction Ta(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction Ua(a){var b=Ta(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=Ta(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||(\"undefined\"!==typeof document?document:void 0);if(\"undefined\"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}\nfunction Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,\"checked\",b,!1)}\nfunction bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if(\"number\"===d){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);else if(\"submit\"===d||\"reset\"===d){a.removeAttribute(\"value\");return}b.hasOwnProperty(\"value\")?cb(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction db(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){var d=b.type;if(!(\"submit\"!==d&&\"reset\"!==d||void 0!==b.value&&null!==b.value))return;b=\"\"+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!!a._wrapperState.initialChecked;\"\"!==c&&(a.name=c)}\nfunction cb(a,b,c){if(\"number\"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}var eb=Array.isArray;\nfunction fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e<c.length;e++)b[\"$\"+c[e]]=!0;for(c=0;c<a.length;c++)e=b.hasOwnProperty(\"$\"+a[c].value),a[c].selected!==e&&(a[c].selected=e),e&&d&&(a[c].defaultSelected=!0)}else{c=\"\"+Sa(c);b=null;for(e=0;e<a.length;e++){if(a[e].value===c){a[e].selected=!0;d&&(a[e].defaultSelected=!0);return}null!==b||a[e].disabled||(b=a[e])}null!==b&&(b.selected=!0)}}\nfunction gb(a,b){if(null!=b.dangerouslySetInnerHTML)throw Error(p(91));return A({},b,{value:void 0,defaultValue:void 0,children:\"\"+a._wrapperState.initialValue})}function hb(a,b){var c=b.value;if(null==c){c=b.children;b=b.defaultValue;if(null!=c){if(null!=b)throw Error(p(92));if(eb(c)){if(1<c.length)throw Error(p(93));c=c[0]}b=c}null==b&&(b=\"\");c=b}a._wrapperState={initialValue:Sa(c)}}\nfunction ib(a,b){var c=Sa(b.value),d=Sa(b.defaultValue);null!=c&&(c=\"\"+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=\"\"+d)}function jb(a){var b=a.textContent;b===a._wrapperState.initialValue&&\"\"!==b&&null!==b&&(a.value=b)}function kb(a){switch(a){case \"svg\":return\"http://www.w3.org/2000/svg\";case \"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}\nfunction lb(a,b){return null==a||\"http://www.w3.org/1999/xhtml\"===a?kb(b):\"http://www.w3.org/2000/svg\"===a&&\"foreignObject\"===b?\"http://www.w3.org/1999/xhtml\":a}\nvar mb,nb=function(a){return\"undefined\"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(\"http://www.w3.org/2000/svg\"!==a.namespaceURI||\"innerHTML\"in a)a.innerHTML=b;else{mb=mb||document.createElement(\"div\");mb.innerHTML=\"<svg>\"+b.valueOf().toString()+\"</svg>\";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,\nzoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||\"boolean\"===typeof b||\"\"===b?\"\":c||\"number\"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(\"\"+b).trim():b+\"px\"}\nfunction sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\"),e=rb(c,b[c],d);\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if(\"object\"!==typeof b.dangerouslySetInnerHTML||!(\"__html\"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&\"object\"!==typeof b.style)throw Error(p(62));}}\nfunction vb(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;\nfunction Bb(a){if(a=Cb(a)){if(\"function\"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a<b.length;a++)Bb(b[a])}}function Gb(a,b){return a(b)}function Hb(){}var Ib=!1;function Jb(a,b,c){if(Ib)return a(b,c);Ib=!0;try{return Gb(a,b,c)}finally{if(Ib=!1,null!==zb||null!==Ab)Hb(),Fb()}}\nfunction Kb(a,b){var c=a.stateNode;if(null===c)return null;var d=Db(c);if(null===d)return null;c=d[b];a:switch(b){case \"onClick\":case \"onClickCapture\":case \"onDoubleClick\":case \"onDoubleClickCapture\":case \"onMouseDown\":case \"onMouseDownCapture\":case \"onMouseMove\":case \"onMouseMoveCapture\":case \"onMouseUp\":case \"onMouseUpCapture\":case \"onMouseEnter\":(d=!d.disabled)||(a=a.type,d=!(\"button\"===a||\"input\"===a||\"select\"===a||\"textarea\"===a));a=!d;break a;default:a=!1}if(a)return null;if(c&&\"function\"!==\ntypeof c)throw Error(p(231,b,typeof c));return c}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,\"passive\",{get:function(){Lb=!0}});window.addEventListener(\"test\",Mb,Mb);window.removeEventListener(\"test\",Mb,Mb)}catch(a){Lb=!1}function Nb(a,b,c,d,e,f,g,h,k){var l=Array.prototype.slice.call(arguments,3);try{b.apply(c,l)}catch(m){this.onError(m)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(a){Ob=!0;Pb=a}};function Tb(a,b,c,d,e,f,g,h,k){Ob=!1;Pb=null;Nb.apply(Sb,arguments)}\nfunction Ub(a,b,c,d,e,f,g,h,k){Tb.apply(this,arguments);if(Ob){if(Ob){var l=Pb;Ob=!1;Pb=null}else throw Error(p(198));Qb||(Qb=!0,Rb=l)}}function Vb(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.flags&4098)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function Wb(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function Xb(a){if(Vb(a)!==a)throw Error(p(188));}\nfunction Yb(a){var b=a.alternate;if(!b){b=Vb(a);if(null===b)throw Error(p(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return Xb(e),a;if(f===d)return Xb(e),b;f=f.sibling}throw Error(p(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===\nc){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(p(189));}}if(c.alternate!==d)throw Error(p(190));}if(3!==c.tag)throw Error(p(188));return c.stateNode.current===c?a:b}function Zb(a){a=Yb(a);return null!==a?$b(a):null}function $b(a){if(5===a.tag||6===a.tag)return a;for(a=a.child;null!==a;){var b=$b(a);if(null!==b)return b;a=a.sibling}return null}\nvar ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(a){if(lc&&\"function\"===typeof lc.onCommitFiberRoot)try{lc.onCommitFiberRoot(kc,a,void 0,128===(a.current.flags&128))}catch(b){}}\nvar oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(a){a>>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;\nfunction tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;\ndefault:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0<b;)c=31-oc(b),e=1<<c,d|=a[c],b&=~e;return d}\nfunction vc(a,b){switch(a){case 1:case 2:case 4:return b+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return b+5E3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}\nfunction wc(a,b){for(var c=a.suspendedLanes,d=a.pingedLanes,e=a.expirationTimes,f=a.pendingLanes;0<f;){var g=31-oc(f),h=1<<g,k=e[g];if(-1===k){if(0===(h&c)||0!==(h&d))e[g]=vc(h,b)}else k<=b&&(a.expiredLanes|=h);f&=~h}}function xc(a){a=a.pendingLanes&-1073741825;return 0!==a?a:a&1073741824?1073741824:0}function yc(){var a=rc;rc<<=1;0===(rc&4194240)&&(rc=64);return a}function zc(a){for(var b=[],c=0;31>c;c++)b.push(a);return b}\nfunction Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0<c;){var e=31-oc(c),f=1<<e;b[e]=0;d[e]=-1;a[e]=-1;c&=~f}}\nfunction Cc(a,b){var c=a.entangledLanes|=b;for(a=a.entanglements;c;){var d=31-oc(c),e=1<<d;e&b|a[d]&b&&(a[d]|=b);c&=~e}}var C=0;function Dc(a){a&=-a;return 1<a?4<a?0!==(a&268435455)?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit\".split(\" \");\nfunction Sc(a,b){switch(a){case \"focusin\":case \"focusout\":Lc=null;break;case \"dragenter\":case \"dragleave\":Mc=null;break;case \"mouseover\":case \"mouseout\":Nc=null;break;case \"pointerover\":case \"pointerout\":Oc.delete(b.pointerId);break;case \"gotpointercapture\":case \"lostpointercapture\":Pc.delete(b.pointerId)}}\nfunction Tc(a,b,c,d,e,f){if(null===a||a.nativeEvent!==f)return a={blockedOn:b,domEventName:c,eventSystemFlags:d,nativeEvent:f,targetContainers:[e]},null!==b&&(b=Cb(b),null!==b&&Fc(b)),a;a.eventSystemFlags|=d;b=a.targetContainers;null!==e&&-1===b.indexOf(e)&&b.push(e);return a}\nfunction Uc(a,b,c,d,e){switch(b){case \"focusin\":return Lc=Tc(Lc,a,b,c,d,e),!0;case \"dragenter\":return Mc=Tc(Mc,a,b,c,d,e),!0;case \"mouseover\":return Nc=Tc(Nc,a,b,c,d,e),!0;case \"pointerover\":var f=e.pointerId;Oc.set(f,Tc(Oc.get(f)||null,a,b,c,d,e));return!0;case \"gotpointercapture\":return f=e.pointerId,Pc.set(f,Tc(Pc.get(f)||null,a,b,c,d,e)),!0}return!1}\nfunction Vc(a){var b=Wc(a.target);if(null!==b){var c=Vb(b);if(null!==c)if(b=c.tag,13===b){if(b=Wb(c),null!==b){a.blockedOn=b;Ic(a.priority,function(){Gc(c)});return}}else if(3===b&&c.stateNode.current.memoizedState.isDehydrated){a.blockedOn=3===c.tag?c.stateNode.containerInfo:null;return}}a.blockedOn=null}\nfunction Xc(a){if(null!==a.blockedOn)return!1;for(var b=a.targetContainers;0<b.length;){var c=Yc(a.domEventName,a.eventSystemFlags,b[0],a.nativeEvent);if(null===c){c=a.nativeEvent;var d=new c.constructor(c.type,c);wb=d;c.target.dispatchEvent(d);wb=null}else return b=Cb(c),null!==b&&Fc(b),a.blockedOn=c,!1;b.shift()}return!0}function Zc(a,b,c){Xc(a)&&c.delete(b)}function $c(){Jc=!1;null!==Lc&&Xc(Lc)&&(Lc=null);null!==Mc&&Xc(Mc)&&(Mc=null);null!==Nc&&Xc(Nc)&&(Nc=null);Oc.forEach(Zc);Pc.forEach(Zc)}\nfunction ad(a,b){a.blockedOn===b&&(a.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}\nfunction bd(a){function b(b){return ad(b,a)}if(0<Kc.length){ad(Kc[0],a);for(var c=1;c<Kc.length;c++){var d=Kc[c];d.blockedOn===a&&(d.blockedOn=null)}}null!==Lc&&ad(Lc,a);null!==Mc&&ad(Mc,a);null!==Nc&&ad(Nc,a);Oc.forEach(b);Pc.forEach(b);for(c=0;c<Qc.length;c++)d=Qc[c],d.blockedOn===a&&(d.blockedOn=null);for(;0<Qc.length&&(c=Qc[0],null===c.blockedOn);)Vc(c),null===c.blockedOn&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;\nfunction ed(a,b,c,d){var e=C,f=cd.transition;cd.transition=null;try{C=1,fd(a,b,c,d)}finally{C=e,cd.transition=f}}function gd(a,b,c,d){var e=C,f=cd.transition;cd.transition=null;try{C=4,fd(a,b,c,d)}finally{C=e,cd.transition=f}}\nfunction fd(a,b,c,d){if(dd){var e=Yc(a,b,c,d);if(null===e)hd(a,b,d,id,c),Sc(a,d);else if(Uc(e,a,b,c,d))d.stopPropagation();else if(Sc(a,d),b&4&&-1<Rc.indexOf(a)){for(;null!==e;){var f=Cb(e);null!==f&&Ec(f);f=Yc(a,b,c,d);null===f&&hd(a,b,d,id,c);if(f===e)break;e=f}null!==e&&d.stopPropagation()}else hd(a,b,d,null,c)}}var id=null;\nfunction Yc(a,b,c,d){id=null;a=xb(d);a=Wc(a);if(null!==a)if(b=Vb(a),null===b)a=null;else if(c=b.tag,13===c){a=Wb(b);if(null!==a)return a;a=null}else if(3===c){if(b.stateNode.current.memoizedState.isDehydrated)return 3===b.tag?b.stateNode.containerInfo:null;a=null}else b!==a&&(a=null);id=a;return null}\nfunction jd(a){switch(a){case \"cancel\":case \"click\":case \"close\":case \"contextmenu\":case \"copy\":case \"cut\":case \"auxclick\":case \"dblclick\":case \"dragend\":case \"dragstart\":case \"drop\":case \"focusin\":case \"focusout\":case \"input\":case \"invalid\":case \"keydown\":case \"keypress\":case \"keyup\":case \"mousedown\":case \"mouseup\":case \"paste\":case \"pause\":case \"play\":case \"pointercancel\":case \"pointerdown\":case \"pointerup\":case \"ratechange\":case \"reset\":case \"resize\":case \"seeked\":case \"submit\":case \"touchcancel\":case \"touchend\":case \"touchstart\":case \"volumechange\":case \"change\":case \"selectionchange\":case \"textInput\":case \"compositionstart\":case \"compositionend\":case \"compositionupdate\":case \"beforeblur\":case \"afterblur\":case \"beforeinput\":case \"blur\":case \"fullscreenchange\":case \"focus\":case \"hashchange\":case \"popstate\":case \"select\":case \"selectstart\":return 1;case \"drag\":case \"dragenter\":case \"dragexit\":case \"dragleave\":case \"dragover\":case \"mousemove\":case \"mouseout\":case \"mouseover\":case \"pointermove\":case \"pointerout\":case \"pointerover\":case \"scroll\":case \"toggle\":case \"touchmove\":case \"wheel\":case \"mouseenter\":case \"mouseleave\":case \"pointerenter\":case \"pointerleave\":return 4;\ncase \"message\":switch(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var a,b=ld,c=b.length,d,e=\"value\"in kd?kd.value:kd.textContent,f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);return md=e.slice(a,1<d?1-d:void 0)}\nfunction od(a){var b=a.keyCode;\"charCode\"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;10===a&&(a=13);return 32<=a||13===a?a:0}function pd(){return!0}function qd(){return!1}\nfunction rd(a){function b(b,d,e,f,g){this._reactName=b;this._targetInst=e;this.type=d;this.nativeEvent=f;this.target=g;this.currentTarget=null;for(var c in a)a.hasOwnProperty(c)&&(b=a[c],this[c]=b?b(f):f[c]);this.isDefaultPrevented=(null!=f.defaultPrevented?f.defaultPrevented:!1===f.returnValue)?pd:qd;this.isPropagationStopped=qd;return this}A(b.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():\"unknown\"!==typeof a.returnValue&&\n(a.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():\"unknown\"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd});return b}\nvar sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(a){return void 0===a.relatedTarget?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){if(\"movementX\"in\na)return a.movementX;a!==yd&&(yd&&\"mousemove\"===a.type?(wd=a.screenX-yd.screenX,xd=a.screenY-yd.screenY):xd=wd=0,yd=a);return wd},movementY:function(a){return\"movementY\"in a?a.movementY:xd}}),Bd=rd(Ad),Cd=A({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A({},sd,{clipboardData:function(a){return\"clipboardData\"in a?a.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A({},sd,{data:0}),Ld=rd(Kd),Md={Esc:\"Escape\",\nSpacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},Nd={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",\n119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},Od={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function Pd(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=Od[a])?!!b[a]:!1}function zd(){return Pd}\nvar Qd=A({},ud,{key:function(a){if(a.key){var b=Md[a.key]||a.key;if(\"Unidentified\"!==b)return b}return\"keypress\"===a.type?(a=od(a),13===a?\"Enter\":String.fromCharCode(a)):\"keydown\"===a.type||\"keyup\"===a.type?Nd[a.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(a){return\"keypress\"===a.type?od(a):0},keyCode:function(a){return\"keydown\"===a.type||\"keyup\"===a.type?a.keyCode:0},which:function(a){return\"keypress\"===\na.type?od(a):\"keydown\"===a.type||\"keyup\"===a.type?a.keyCode:0}}),Rd=rd(Qd),Sd=A({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A({},Ad,{deltaX:function(a){return\"deltaX\"in a?a.deltaX:\"wheelDeltaX\"in a?-a.wheelDeltaX:0},\ndeltaY:function(a){return\"deltaY\"in a?a.deltaY:\"wheelDeltaY\"in a?-a.wheelDeltaY:\"wheelDelta\"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&\"CompositionEvent\"in window,be=null;ia&&\"documentMode\"in document&&(be=document.documentMode);var ce=ia&&\"TextEvent\"in window&&!be,de=ia&&(!ae||be&&8<be&&11>=be),ee=String.fromCharCode(32),fe=!1;\nfunction ge(a,b){switch(a){case \"keyup\":return-1!==$d.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"focusout\":return!0;default:return!1}}function he(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case \"compositionend\":return he(b);case \"keypress\":if(32!==b.which)return null;fe=!0;return ee;case \"textInput\":return a=b.data,a===ee&&fe?null:a;default:return null}}\nfunction ke(a,b){if(ie)return\"compositionend\"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case \"compositionend\":return de&&\"ko\"!==b.locale?null:b.data;default:return null}}\nvar le={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return\"input\"===b?!!le[a.type]:\"textarea\"===b?!0:!1}function ne(a,b,c,d){Eb(d);b=oe(b,\"onChange\");0<b.length&&(c=new td(\"onChange\",\"change\",null,c,d),a.push({event:c,listeners:b}))}var pe=null,qe=null;function re(a){se(a,0)}function te(a){var b=ue(a);if(Wa(b))return a}\nfunction ve(a,b){if(\"change\"===a)return b}var we=!1;if(ia){var xe;if(ia){var ye=\"oninput\"in document;if(!ye){var ze=document.createElement(\"div\");ze.setAttribute(\"oninput\",\"return;\");ye=\"function\"===typeof ze.oninput}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent(\"onpropertychange\",Be),qe=pe=null)}function Be(a){if(\"value\"===a.propertyName&&te(qe)){var b=[];ne(b,qe,a,xb(a));Jb(re,b)}}\nfunction Ce(a,b,c){\"focusin\"===a?(Ae(),pe=b,qe=c,pe.attachEvent(\"onpropertychange\",Be)):\"focusout\"===a&&Ae()}function De(a){if(\"selectionchange\"===a||\"keyup\"===a||\"keydown\"===a)return te(qe)}function Ee(a,b){if(\"click\"===a)return te(b)}function Fe(a,b){if(\"input\"===a||\"change\"===a)return te(b)}function Ge(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var He=\"function\"===typeof Object.is?Object.is:Ge;\nfunction Ie(a,b){if(He(a,b))return!0;if(\"object\"!==typeof a||null===a||\"object\"!==typeof b||null===b)return!1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++){var e=c[d];if(!ja.call(b,e)||!He(a[e],b[e]))return!1}return!0}function Je(a){for(;a&&a.firstChild;)a=a.firstChild;return a}\nfunction Ke(a,b){var c=Je(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}\nfunction Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nfunction Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),\"selectionStart\"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c,\nd);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});\"function\"===typeof c.focus&&c.focus();for(c=0;c<b.length;c++)a=b[c],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}\nvar Pe=ia&&\"documentMode\"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;\nfunction Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,\"selectionStart\"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,\"onSelect\"),0<d.length&&(b=new td(\"onSelect\",\"select\",null,b,c),a.push({event:b,listeners:d}),b.target=Qe)))}\nfunction Ve(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c[\"Webkit\"+a]=\"webkit\"+b;c[\"Moz\"+a]=\"moz\"+b;return c}var We={animationend:Ve(\"Animation\",\"AnimationEnd\"),animationiteration:Ve(\"Animation\",\"AnimationIteration\"),animationstart:Ve(\"Animation\",\"AnimationStart\"),transitionend:Ve(\"Transition\",\"TransitionEnd\")},Xe={},Ye={};\nia&&(Ye=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),\"TransitionEvent\"in window||delete We.transitionend.transition);function Ze(a){if(Xe[a])return Xe[a];if(!We[a])return a;var b=We[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Ye)return Xe[a]=b[c];return a}var $e=Ze(\"animationend\"),af=Ze(\"animationiteration\"),bf=Ze(\"animationstart\"),cf=Ze(\"transitionend\"),df=new Map,ef=\"abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\".split(\" \");\nfunction ff(a,b){df.set(a,b);fa(b,[a])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,\"on\"+kf)}ff($e,\"onAnimationEnd\");ff(af,\"onAnimationIteration\");ff(bf,\"onAnimationStart\");ff(\"dblclick\",\"onDoubleClick\");ff(\"focusin\",\"onFocus\");ff(\"focusout\",\"onBlur\");ff(cf,\"onTransitionEnd\");ha(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]);ha(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]);ha(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]);\nha(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]);fa(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \"));fa(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \"));fa(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]);fa(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \"));fa(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \"));\nfa(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var lf=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),mf=new Set(\"cancel close invalid load scroll toggle\".split(\" \").concat(lf));\nfunction nf(a,b,c){var d=a.type||\"unknown-event\";a.currentTarget=c;Ub(d,b,void 0,a);a.currentTarget=null}\nfunction se(a,b){b=0!==(b&4);for(var c=0;c<a.length;c++){var d=a[c],e=d.event;d=d.listeners;a:{var f=void 0;if(b)for(var g=d.length-1;0<=g;g--){var h=d[g],k=h.instance,l=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;nf(e,h,l);f=k}else for(g=0;g<d.length;g++){h=d[g];k=h.instance;l=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;nf(e,h,l);f=k}}}if(Qb)throw a=Rb,Qb=!1,Rb=null,a;}\nfunction D(a,b){var c=b[of];void 0===c&&(c=b[of]=new Set);var d=a+\"__bubble\";c.has(d)||(pf(b,a,2,!1),c.add(d))}function qf(a,b,c){var d=0;b&&(d|=4);pf(c,a,d,b)}var rf=\"_reactListening\"+Math.random().toString(36).slice(2);function sf(a){if(!a[rf]){a[rf]=!0;da.forEach(function(b){\"selectionchange\"!==b&&(mf.has(b)||qf(b,!1,a),qf(b,!0,a))});var b=9===a.nodeType?a:a.ownerDocument;null===b||b[rf]||(b[rf]=!0,qf(\"selectionchange\",!1,b))}}\nfunction pf(a,b,c,d){switch(jd(b)){case 1:var e=ed;break;case 4:e=gd;break;default:e=fd}c=e.bind(null,b,c,a);e=void 0;!Lb||\"touchstart\"!==b&&\"touchmove\"!==b&&\"wheel\"!==b||(e=!0);d?void 0!==e?a.addEventListener(b,c,{capture:!0,passive:e}):a.addEventListener(b,c,!0):void 0!==e?a.addEventListener(b,c,{passive:e}):a.addEventListener(b,c,!1)}\nfunction hd(a,b,c,d,e){var f=d;if(0===(b&1)&&0===(b&2)&&null!==d)a:for(;;){if(null===d)return;var g=d.tag;if(3===g||4===g){var h=d.stateNode.containerInfo;if(h===e||8===h.nodeType&&h.parentNode===e)break;if(4===g)for(g=d.return;null!==g;){var k=g.tag;if(3===k||4===k)if(k=g.stateNode.containerInfo,k===e||8===k.nodeType&&k.parentNode===e)return;g=g.return}for(;null!==h;){g=Wc(h);if(null===g)return;k=g.tag;if(5===k||6===k){d=f=g;continue a}h=h.parentNode}}d=d.return}Jb(function(){var d=f,e=xb(c),g=[];\na:{var h=df.get(a);if(void 0!==h){var k=td,n=a;switch(a){case \"keypress\":if(0===od(c))break a;case \"keydown\":case \"keyup\":k=Rd;break;case \"focusin\":n=\"focus\";k=Fd;break;case \"focusout\":n=\"blur\";k=Fd;break;case \"beforeblur\":case \"afterblur\":k=Fd;break;case \"click\":if(2===c.button)break a;case \"auxclick\":case \"dblclick\":case \"mousedown\":case \"mousemove\":case \"mouseup\":case \"mouseout\":case \"mouseover\":case \"contextmenu\":k=Bd;break;case \"drag\":case \"dragend\":case \"dragenter\":case \"dragexit\":case \"dragleave\":case \"dragover\":case \"dragstart\":case \"drop\":k=\nDd;break;case \"touchcancel\":case \"touchend\":case \"touchmove\":case \"touchstart\":k=Vd;break;case $e:case af:case bf:k=Hd;break;case cf:k=Xd;break;case \"scroll\":k=vd;break;case \"wheel\":k=Zd;break;case \"copy\":case \"cut\":case \"paste\":k=Jd;break;case \"gotpointercapture\":case \"lostpointercapture\":case \"pointercancel\":case \"pointerdown\":case \"pointermove\":case \"pointerout\":case \"pointerover\":case \"pointerup\":k=Td}var t=0!==(b&4),J=!t&&\"scroll\"===a,x=t?null!==h?h+\"Capture\":null:h;t=[];for(var w=d,u;null!==\nw;){u=w;var F=u.stateNode;5===u.tag&&null!==F&&(u=F,null!==x&&(F=Kb(w,x),null!=F&&t.push(tf(w,F,u))));if(J)break;w=w.return}0<t.length&&(h=new k(h,n,null,c,e),g.push({event:h,listeners:t}))}}if(0===(b&7)){a:{h=\"mouseover\"===a||\"pointerover\"===a;k=\"mouseout\"===a||\"pointerout\"===a;if(h&&c!==wb&&(n=c.relatedTarget||c.fromElement)&&(Wc(n)||n[uf]))break a;if(k||h){h=e.window===e?e:(h=e.ownerDocument)?h.defaultView||h.parentWindow:window;if(k){if(n=c.relatedTarget||c.toElement,k=d,n=n?Wc(n):null,null!==\nn&&(J=Vb(n),n!==J||5!==n.tag&&6!==n.tag))n=null}else k=null,n=d;if(k!==n){t=Bd;F=\"onMouseLeave\";x=\"onMouseEnter\";w=\"mouse\";if(\"pointerout\"===a||\"pointerover\"===a)t=Td,F=\"onPointerLeave\",x=\"onPointerEnter\",w=\"pointer\";J=null==k?h:ue(k);u=null==n?h:ue(n);h=new t(F,w+\"leave\",k,c,e);h.target=J;h.relatedTarget=u;F=null;Wc(e)===d&&(t=new t(x,w+\"enter\",n,c,e),t.target=u,t.relatedTarget=J,F=t);J=F;if(k&&n)b:{t=k;x=n;w=0;for(u=t;u;u=vf(u))w++;u=0;for(F=x;F;F=vf(F))u++;for(;0<w-u;)t=vf(t),w--;for(;0<u-w;)x=\nvf(x),u--;for(;w--;){if(t===x||null!==x&&t===x.alternate)break b;t=vf(t);x=vf(x)}t=null}else t=null;null!==k&&wf(g,h,k,t,!1);null!==n&&null!==J&&wf(g,J,n,t,!0)}}}a:{h=d?ue(d):window;k=h.nodeName&&h.nodeName.toLowerCase();if(\"select\"===k||\"input\"===k&&\"file\"===h.type)var na=ve;else if(me(h))if(we)na=Fe;else{na=De;var xa=Ce}else(k=h.nodeName)&&\"input\"===k.toLowerCase()&&(\"checkbox\"===h.type||\"radio\"===h.type)&&(na=Ee);if(na&&(na=na(a,d))){ne(g,na,c,e);break a}xa&&xa(a,h,d);\"focusout\"===a&&(xa=h._wrapperState)&&\nxa.controlled&&\"number\"===h.type&&cb(h,\"number\",h.value)}xa=d?ue(d):window;switch(a){case \"focusin\":if(me(xa)||\"true\"===xa.contentEditable)Qe=xa,Re=d,Se=null;break;case \"focusout\":Se=Re=Qe=null;break;case \"mousedown\":Te=!0;break;case \"contextmenu\":case \"mouseup\":case \"dragend\":Te=!1;Ue(g,c,e);break;case \"selectionchange\":if(Pe)break;case \"keydown\":case \"keyup\":Ue(g,c,e)}var $a;if(ae)b:{switch(a){case \"compositionstart\":var ba=\"onCompositionStart\";break b;case \"compositionend\":ba=\"onCompositionEnd\";\nbreak b;case \"compositionupdate\":ba=\"onCompositionUpdate\";break b}ba=void 0}else ie?ge(a,c)&&(ba=\"onCompositionEnd\"):\"keydown\"===a&&229===c.keyCode&&(ba=\"onCompositionStart\");ba&&(de&&\"ko\"!==c.locale&&(ie||\"onCompositionStart\"!==ba?\"onCompositionEnd\"===ba&&ie&&($a=nd()):(kd=e,ld=\"value\"in kd?kd.value:kd.textContent,ie=!0)),xa=oe(d,ba),0<xa.length&&(ba=new Ld(ba,a,null,c,e),g.push({event:ba,listeners:xa}),$a?ba.data=$a:($a=he(c),null!==$a&&(ba.data=$a))));if($a=ce?je(a,c):ke(a,c))d=oe(d,\"onBeforeInput\"),\n0<d.length&&(e=new Ld(\"onBeforeInput\",\"beforeinput\",null,c,e),g.push({event:e,listeners:d}),e.data=$a)}se(g,b)})}function tf(a,b,c){return{instance:a,listener:b,currentTarget:c}}function oe(a,b){for(var c=b+\"Capture\",d=[];null!==a;){var e=a,f=e.stateNode;5===e.tag&&null!==f&&(e=f,f=Kb(a,c),null!=f&&d.unshift(tf(a,f,e)),f=Kb(a,b),null!=f&&d.push(tf(a,f,e)));a=a.return}return d}function vf(a){if(null===a)return null;do a=a.return;while(a&&5!==a.tag);return a?a:null}\nfunction wf(a,b,c,d,e){for(var f=b._reactName,g=[];null!==c&&c!==d;){var h=c,k=h.alternate,l=h.stateNode;if(null!==k&&k===d)break;5===h.tag&&null!==l&&(h=l,e?(k=Kb(c,f),null!=k&&g.unshift(tf(c,k,h))):e||(k=Kb(c,f),null!=k&&g.push(tf(c,k,h))));c=c.return}0!==g.length&&a.push({event:b,listeners:g})}var xf=/\\r\\n?/g,yf=/\\u0000|\\uFFFD/g;function zf(a){return(\"string\"===typeof a?a:\"\"+a).replace(xf,\"\\n\").replace(yf,\"\")}function Af(a,b,c){b=zf(b);if(zf(a)!==b&&c)throw Error(p(425));}function Bf(){}\nvar Cf=null,Df=null;function Ef(a,b){return\"textarea\"===a||\"noscript\"===a||\"string\"===typeof b.children||\"number\"===typeof b.children||\"object\"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}\nvar Ff=\"function\"===typeof setTimeout?setTimeout:void 0,Gf=\"function\"===typeof clearTimeout?clearTimeout:void 0,Hf=\"function\"===typeof Promise?Promise:void 0,Jf=\"function\"===typeof queueMicrotask?queueMicrotask:\"undefined\"!==typeof Hf?function(a){return Hf.resolve(null).then(a).catch(If)}:Ff;function If(a){setTimeout(function(){throw a;})}\nfunction Kf(a,b){var c=b,d=0;do{var e=c.nextSibling;a.removeChild(c);if(e&&8===e.nodeType)if(c=e.data,\"/$\"===c){if(0===d){a.removeChild(e);bd(b);return}d--}else\"$\"!==c&&\"$?\"!==c&&\"$!\"!==c||d++;c=e}while(c);bd(b)}function Lf(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break;if(8===b){b=a.data;if(\"$\"===b||\"$!\"===b||\"$?\"===b)break;if(\"/$\"===b)return null}}return a}\nfunction Mf(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(\"$\"===c||\"$!\"===c||\"$?\"===c){if(0===b)return a;b--}else\"/$\"===c&&b++}a=a.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of=\"__reactFiber$\"+Nf,Pf=\"__reactProps$\"+Nf,uf=\"__reactContainer$\"+Nf,of=\"__reactEvents$\"+Nf,Qf=\"__reactListeners$\"+Nf,Rf=\"__reactHandles$\"+Nf;\nfunction Wc(a){var b=a[Of];if(b)return b;for(var c=a.parentNode;c;){if(b=c[uf]||c[Of]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Mf(a);null!==a;){if(c=a[Of])return c;a=Mf(a)}return b}a=c;c=a.parentNode}return null}function Cb(a){a=a[Of]||a[uf];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function ue(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(p(33));}function Db(a){return a[Pf]||null}var Sf=[],Tf=-1;function Uf(a){return{current:a}}\nfunction E(a){0>Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}\nfunction Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||\"Unknown\",e));return A({},c,d)}\nfunction cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)}\nfunction jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a<c.length;a++){var d=c[a];do d=d(!0);while(null!==d)}eg=null;fg=!1}catch(e){throw null!==eg&&(eg=eg.slice(a+1)),ac(fc,jg),e;}finally{C=b,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg=\"\";function tg(a,b){kg[lg++]=ng;kg[lg++]=mg;mg=a;ng=b}\nfunction ug(a,b,c){og[pg++]=rg;og[pg++]=sg;og[pg++]=qg;qg=a;var d=rg;a=sg;var e=32-oc(d)-1;d&=~(1<<e);c+=1;var f=32-oc(b)+e;if(30<f){var g=e-e%5;f=(d&(1<<g)-1).toString(32);d>>=g;e-=g;rg=1<<32-oc(b)+e|c<<e|d;sg=f+a}else rg=1<<f|c<<e|d,sg=a}function vg(a){null!==a.return&&(tg(a,1),ug(a,1,0))}function wg(a){for(;a===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;a===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;\nfunction Ag(a,b){var c=Bg(5,null,null,0);c.elementType=\"DELETED\";c.stateNode=b;c.return=a;b=a.deletions;null===b?(a.deletions=[c],a.flags|=16):b.push(c)}\nfunction Cg(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,xg=a,yg=Lf(b.firstChild),!0):!1;case 6:return b=\"\"===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,xg=a,yg=null,!0):!1;case 13:return b=8!==b.nodeType?null:b,null!==b?(c=null!==qg?{id:rg,overflow:sg}:null,a.memoizedState={dehydrated:b,treeContext:c,retryLane:1073741824},c=Bg(18,null,null,0),c.stateNode=b,c.return=a,a.child=c,xg=a,yg=\nnull,!0):!1;default:return!1}}function Dg(a){return 0!==(a.mode&1)&&0===(a.flags&128)}function Eg(a){if(I){var b=yg;if(b){var c=b;if(!Cg(a,b)){if(Dg(a))throw Error(p(418));b=Lf(c.nextSibling);var d=xg;b&&Cg(a,b)?Ag(d,c):(a.flags=a.flags&-4097|2,I=!1,xg=a)}}else{if(Dg(a))throw Error(p(418));a.flags=a.flags&-4097|2;I=!1;xg=a}}}function Fg(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;xg=a}\nfunction Gg(a){if(a!==xg)return!1;if(!I)return Fg(a),I=!0,!1;var b;(b=3!==a.tag)&&!(b=5!==a.tag)&&(b=a.type,b=\"head\"!==b&&\"body\"!==b&&!Ef(a.type,a.memoizedProps));if(b&&(b=yg)){if(Dg(a))throw Hg(),Error(p(418));for(;b;)Ag(a,b),b=Lf(b.nextSibling)}Fg(a);if(13===a.tag){a=a.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(p(317));a:{a=a.nextSibling;for(b=0;a;){if(8===a.nodeType){var c=a.data;if(\"/$\"===c){if(0===b){yg=Lf(a.nextSibling);break a}b--}else\"$\"!==c&&\"$!\"!==c&&\"$?\"!==c||b++}a=a.nextSibling}yg=\nnull}}else yg=xg?Lf(a.stateNode.nextSibling):null;return!0}function Hg(){for(var a=yg;a;)a=Lf(a.nextSibling)}function Ig(){yg=xg=null;I=!1}function Jg(a){null===zg?zg=[a]:zg.push(a)}var Kg=ua.ReactCurrentBatchConfig;\nfunction Lg(a,b,c){a=c.ref;if(null!==a&&\"function\"!==typeof a&&\"object\"!==typeof a){if(c._owner){c=c._owner;if(c){if(1!==c.tag)throw Error(p(309));var d=c.stateNode}if(!d)throw Error(p(147,a));var e=d,f=\"\"+a;if(null!==b&&null!==b.ref&&\"function\"===typeof b.ref&&b.ref._stringRef===f)return b.ref;b=function(a){var b=e.refs;null===a?delete b[f]:b[f]=a};b._stringRef=f;return b}if(\"string\"!==typeof a)throw Error(p(284));if(!c._owner)throw Error(p(290,a));}return a}\nfunction Mg(a,b){a=Object.prototype.toString.call(b);throw Error(p(31,\"[object Object]\"===a?\"object with keys {\"+Object.keys(b).join(\", \")+\"}\":a));}function Ng(a){var b=a._init;return b(a._payload)}\nfunction Og(a){function b(b,c){if(a){var d=b.deletions;null===d?(b.deletions=[c],b.flags|=16):d.push(c)}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b){a=Pg(a,b);a.index=0;a.sibling=null;return a}function f(b,c,d){b.index=d;if(!a)return b.flags|=1048576,c;d=b.alternate;if(null!==d)return d=d.index,d<c?(b.flags|=2,c):d;b.flags|=2;return c}function g(b){a&&\nnull===b.alternate&&(b.flags|=2);return b}function h(a,b,c,d){if(null===b||6!==b.tag)return b=Qg(c,a.mode,d),b.return=a,b;b=e(b,c);b.return=a;return b}function k(a,b,c,d){var f=c.type;if(f===ya)return m(a,b,c.props.children,d,c.key);if(null!==b&&(b.elementType===f||\"object\"===typeof f&&null!==f&&f.$$typeof===Ha&&Ng(f)===b.type))return d=e(b,c.props),d.ref=Lg(a,b,c),d.return=a,d;d=Rg(c.type,c.key,c.props,null,a.mode,d);d.ref=Lg(a,b,c);d.return=a;return d}function l(a,b,c,d){if(null===b||4!==b.tag||\nb.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==c.implementation)return b=Sg(c,a.mode,d),b.return=a,b;b=e(b,c.children||[]);b.return=a;return b}function m(a,b,c,d,f){if(null===b||7!==b.tag)return b=Tg(c,a.mode,d,f),b.return=a,b;b=e(b,c);b.return=a;return b}function q(a,b,c){if(\"string\"===typeof b&&\"\"!==b||\"number\"===typeof b)return b=Qg(\"\"+b,a.mode,c),b.return=a,b;if(\"object\"===typeof b&&null!==b){switch(b.$$typeof){case va:return c=Rg(b.type,b.key,b.props,null,a.mode,c),\nc.ref=Lg(a,null,b),c.return=a,c;case wa:return b=Sg(b,a.mode,c),b.return=a,b;case Ha:var d=b._init;return q(a,d(b._payload),c)}if(eb(b)||Ka(b))return b=Tg(b,a.mode,c,null),b.return=a,b;Mg(a,b)}return null}function r(a,b,c,d){var e=null!==b?b.key:null;if(\"string\"===typeof c&&\"\"!==c||\"number\"===typeof c)return null!==e?null:h(a,b,\"\"+c,d);if(\"object\"===typeof c&&null!==c){switch(c.$$typeof){case va:return c.key===e?k(a,b,c,d):null;case wa:return c.key===e?l(a,b,c,d):null;case Ha:return e=c._init,r(a,\nb,e(c._payload),d)}if(eb(c)||Ka(c))return null!==e?null:m(a,b,c,d,null);Mg(a,c)}return null}function y(a,b,c,d,e){if(\"string\"===typeof d&&\"\"!==d||\"number\"===typeof d)return a=a.get(c)||null,h(b,a,\"\"+d,e);if(\"object\"===typeof d&&null!==d){switch(d.$$typeof){case va:return a=a.get(null===d.key?c:d.key)||null,k(b,a,d,e);case wa:return a=a.get(null===d.key?c:d.key)||null,l(b,a,d,e);case Ha:var f=d._init;return y(a,b,c,f(d._payload),e)}if(eb(d)||Ka(d))return a=a.get(c)||null,m(b,a,d,e,null);Mg(b,d)}return null}\nfunction n(e,g,h,k){for(var l=null,m=null,u=g,w=g=0,x=null;null!==u&&w<h.length;w++){u.index>w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;w<h.length;w++)u=q(e,h[w],k),null!==u&&(g=f(u,g,w),null===m?l=u:m.sibling=u,m=u);I&&tg(e,w);return l}for(u=d(e,u);w<h.length;w++)x=y(u,e,w,h[w],k),null!==x&&(a&&null!==x.alternate&&u.delete(null===\nx.key?w:x.key),g=f(x,g,w),null===m?l=x:m.sibling=x,m=x);a&&u.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function t(e,g,h,k){var l=Ka(h);if(\"function\"!==typeof l)throw Error(p(150));h=l.call(h);if(null==h)throw Error(p(151));for(var u=l=null,m=g,w=g=0,x=null,n=h.next();null!==m&&!n.done;w++,n=h.next()){m.index>w?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e,\nm),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){\"object\"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if(\"object\"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=\nf.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||\"object\"===typeof k&&null!==k&&k.$$typeof===Ha&&Ng(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=Lg(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Tg(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Rg(f.type,f.key,f.props,null,a.mode,h),h.ref=Lg(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==\nd;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=Sg(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);Mg(a,f)}return\"string\"===typeof f&&\"\"!==f||\"number\"===typeof f?(f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):\n(c(a,d),d=Qg(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(a){var b=Wg.current;E(Wg);a._currentValue=b}function bh(a,b,c){for(;null!==a;){var d=a.alternate;(a.childLanes&b)!==b?(a.childLanes|=b,null!==d&&(d.childLanes|=b)):null!==d&&(d.childLanes&b)!==b&&(d.childLanes|=b);if(a===c)break;a=a.return}}\nfunction ch(a,b){Xg=a;Zg=Yg=null;a=a.dependencies;null!==a&&null!==a.firstContext&&(0!==(a.lanes&b)&&(dh=!0),a.firstContext=null)}function eh(a){var b=a._currentValue;if(Zg!==a)if(a={context:a,memoizedValue:b,next:null},null===Yg){if(null===Xg)throw Error(p(308));Yg=a;Xg.dependencies={lanes:0,firstContext:a}}else Yg=Yg.next=a;return b}var fh=null;function gh(a){null===fh?fh=[a]:fh.push(a)}\nfunction hh(a,b,c,d){var e=b.interleaved;null===e?(c.next=c,gh(b)):(c.next=e.next,e.next=c);b.interleaved=c;return ih(a,d)}function ih(a,b){a.lanes|=b;var c=a.alternate;null!==c&&(c.lanes|=b);c=a;for(a=a.return;null!==a;)a.childLanes|=b,c=a.alternate,null!==c&&(c.childLanes|=b),c=a,a=a.return;return 3===c.tag?c.stateNode:null}var jh=!1;function kh(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}\nfunction lh(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function mh(a,b){return{eventTime:a,lane:b,tag:0,payload:null,callback:null,next:null}}\nfunction nh(a,b,c){var d=a.updateQueue;if(null===d)return null;d=d.shared;if(0!==(K&2)){var e=d.pending;null===e?b.next=b:(b.next=e.next,e.next=b);d.pending=b;return ih(a,c)}e=d.interleaved;null===e?(b.next=b,gh(d)):(b.next=e.next,e.next=b);d.interleaved=b;return ih(a,c)}function oh(a,b,c){b=b.updateQueue;if(null!==b&&(b=b.shared,0!==(c&4194240))){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nfunction ph(a,b){var c=a.updateQueue,d=a.alternate;if(null!==d&&(d=d.updateQueue,c===d)){var e=null,f=null;c=c.firstBaseUpdate;if(null!==c){do{var g={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};null===f?e=f=g:f=f.next=g;c=c.next}while(null!==c);null===f?e=f=b:f=f.next=b}else e=f=b;c={baseState:d.baseState,firstBaseUpdate:e,lastBaseUpdate:f,shared:d.shared,effects:d.effects};a.updateQueue=c;return}a=c.lastBaseUpdate;null===a?c.firstBaseUpdate=b:a.next=\nb;c.lastBaseUpdate=b}\nfunction qh(a,b,c,d){var e=a.updateQueue;jh=!1;var f=e.firstBaseUpdate,g=e.lastBaseUpdate,h=e.shared.pending;if(null!==h){e.shared.pending=null;var k=h,l=k.next;k.next=null;null===g?f=l:g.next=l;g=k;var m=a.alternate;null!==m&&(m=m.updateQueue,h=m.lastBaseUpdate,h!==g&&(null===h?m.firstBaseUpdate=l:h.next=l,m.lastBaseUpdate=k))}if(null!==f){var q=e.baseState;g=0;m=l=k=null;h=f;do{var r=h.lane,y=h.eventTime;if((d&r)===r){null!==m&&(m=m.next={eventTime:y,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,\nnext:null});a:{var n=a,t=h;r=b;y=c;switch(t.tag){case 1:n=t.payload;if(\"function\"===typeof n){q=n.call(y,q,r);break a}q=n;break a;case 3:n.flags=n.flags&-65537|128;case 0:n=t.payload;r=\"function\"===typeof n?n.call(y,q,r):n;if(null===r||void 0===r)break a;q=A({},q,r);break a;case 2:jh=!0}}null!==h.callback&&0!==h.lane&&(a.flags|=64,r=e.effects,null===r?e.effects=[h]:r.push(h))}else y={eventTime:y,lane:r,tag:h.tag,payload:h.payload,callback:h.callback,next:null},null===m?(l=m=y,k=q):m=m.next=y,g|=r;\nh=h.next;if(null===h)if(h=e.shared.pending,null===h)break;else r=h,h=r.next,r.next=null,e.lastBaseUpdate=r,e.shared.pending=null}while(1);null===m&&(k=q);e.baseState=k;e.firstBaseUpdate=l;e.lastBaseUpdate=m;b=e.shared.interleaved;if(null!==b){e=b;do g|=e.lane,e=e.next;while(e!==b)}else null===f&&(e.shared.lanes=0);rh|=g;a.lanes=g;a.memoizedState=q}}\nfunction sh(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;b<a.length;b++){var d=a[b],e=d.callback;if(null!==e){d.callback=null;d=c;if(\"function\"!==typeof e)throw Error(p(191,e));e.call(d)}}}var th={},uh=Uf(th),vh=Uf(th),wh=Uf(th);function xh(a){if(a===th)throw Error(p(174));return a}\nfunction yh(a,b){G(wh,b);G(vh,a);G(uh,th);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a)}E(uh);G(uh,b)}function zh(){E(uh);E(vh);E(wh)}function Ah(a){xh(wh.current);var b=xh(uh.current);var c=lb(b,a.type);b!==c&&(G(vh,a),G(uh,c))}function Bh(a){vh.current===a&&(E(uh),E(vh))}var L=Uf(0);\nfunction Ch(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||\"$?\"===c.data||\"$!\"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var Dh=[];\nfunction Eh(){for(var a=0;a<Dh.length;a++)Dh[a]._workInProgressVersionPrimary=null;Dh.length=0}var Fh=ua.ReactCurrentDispatcher,Gh=ua.ReactCurrentBatchConfig,Hh=0,M=null,N=null,O=null,Ih=!1,Jh=!1,Kh=0,Lh=0;function P(){throw Error(p(321));}function Mh(a,b){if(null===b)return!1;for(var c=0;c<b.length&&c<a.length;c++)if(!He(a[c],b[c]))return!1;return!0}\nfunction Nh(a,b,c,d,e,f){Hh=f;M=b;b.memoizedState=null;b.updateQueue=null;b.lanes=0;Fh.current=null===a||null===a.memoizedState?Oh:Ph;a=c(d,e);if(Jh){f=0;do{Jh=!1;Kh=0;if(25<=f)throw Error(p(301));f+=1;O=N=null;b.updateQueue=null;Fh.current=Qh;a=c(d,e)}while(Jh)}Fh.current=Rh;b=null!==N&&null!==N.next;Hh=0;O=N=M=null;Ih=!1;if(b)throw Error(p(300));return a}function Sh(){var a=0!==Kh;Kh=0;return a}\nfunction Th(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===O?M.memoizedState=O=a:O=O.next=a;return O}function Uh(){if(null===N){var a=M.alternate;a=null!==a?a.memoizedState:null}else a=N.next;var b=null===O?M.memoizedState:O.next;if(null!==b)O=b,N=a;else{if(null===a)throw Error(p(310));N=a;a={memoizedState:N.memoizedState,baseState:N.baseState,baseQueue:N.baseQueue,queue:N.queue,next:null};null===O?M.memoizedState=O=a:O=O.next=a}return O}\nfunction Vh(a,b){return\"function\"===typeof b?b(a):b}\nfunction Wh(a){var b=Uh(),c=b.queue;if(null===c)throw Error(p(311));c.lastRenderedReducer=a;var d=N,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){f=e.next;d=d.baseState;var h=g=null,k=null,l=f;do{var m=l.lane;if((Hh&m)===m)null!==k&&(k=k.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d=l.hasEagerState?l.eagerState:a(d,l.action);else{var q={lane:m,action:l.action,hasEagerState:l.hasEagerState,\neagerState:l.eagerState,next:null};null===k?(h=k=q,g=d):k=k.next=q;M.lanes|=m;rh|=m}l=l.next}while(null!==l&&l!==f);null===k?g=d:k.next=h;He(d,b.memoizedState)||(dh=!0);b.memoizedState=d;b.baseState=g;b.baseQueue=k;c.lastRenderedState=d}a=c.interleaved;if(null!==a){e=a;do f=e.lane,M.lanes|=f,rh|=f,e=e.next;while(e!==a)}else null===e&&(c.lanes=0);return[b.memoizedState,c.dispatch]}\nfunction Xh(a){var b=Uh(),c=b.queue;if(null===c)throw Error(p(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);He(f,b.memoizedState)||(dh=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}function Yh(){}\nfunction Zh(a,b){var c=M,d=Uh(),e=b(),f=!He(d.memoizedState,e);f&&(d.memoizedState=e,dh=!0);d=d.queue;$h(ai.bind(null,c,d,a),[a]);if(d.getSnapshot!==b||f||null!==O&&O.memoizedState.tag&1){c.flags|=2048;bi(9,ci.bind(null,c,d,e,b),void 0,null);if(null===Q)throw Error(p(349));0!==(Hh&30)||di(c,b,e)}return e}function di(a,b,c){a.flags|=16384;a={getSnapshot:b,value:c};b=M.updateQueue;null===b?(b={lastEffect:null,stores:null},M.updateQueue=b,b.stores=[a]):(c=b.stores,null===c?b.stores=[a]:c.push(a))}\nfunction ci(a,b,c,d){b.value=c;b.getSnapshot=d;ei(b)&&fi(a)}function ai(a,b,c){return c(function(){ei(b)&&fi(a)})}function ei(a){var b=a.getSnapshot;a=a.value;try{var c=b();return!He(a,c)}catch(d){return!0}}function fi(a){var b=ih(a,1);null!==b&&gi(b,a,1,-1)}\nfunction hi(a){var b=Th();\"function\"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vh,lastRenderedState:a};b.queue=a;a=a.dispatch=ii.bind(null,M,a);return[b.memoizedState,a]}\nfunction bi(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=M.updateQueue;null===b?(b={lastEffect:null,stores:null},M.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}function ji(){return Uh().memoizedState}function ki(a,b,c,d){var e=Th();M.flags|=a;e.memoizedState=bi(1|b,c,void 0,void 0===d?null:d)}\nfunction li(a,b,c,d){var e=Uh();d=void 0===d?null:d;var f=void 0;if(null!==N){var g=N.memoizedState;f=g.destroy;if(null!==d&&Mh(d,g.deps)){e.memoizedState=bi(b,c,f,d);return}}M.flags|=a;e.memoizedState=bi(1|b,c,f,d)}function mi(a,b){return ki(8390656,8,a,b)}function $h(a,b){return li(2048,8,a,b)}function ni(a,b){return li(4,2,a,b)}function oi(a,b){return li(4,4,a,b)}\nfunction pi(a,b){if(\"function\"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function qi(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return li(4,4,pi.bind(null,b,a),c)}function ri(){}function si(a,b){var c=Uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Mh(b,d[1]))return d[0];c.memoizedState=[a,b];return a}\nfunction ti(a,b){var c=Uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Mh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function ui(a,b,c){if(0===(Hh&21))return a.baseState&&(a.baseState=!1,dh=!0),a.memoizedState=c;He(c,b)||(c=yc(),M.lanes|=c,rh|=c,a.baseState=!0);return b}function vi(a,b){var c=C;C=0!==c&&4>c?c:4;a(!0);var d=Gh.transition;Gh.transition={};try{a(!1),b()}finally{C=c,Gh.transition=d}}function wi(){return Uh().memoizedState}\nfunction xi(a,b,c){var d=yi(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(zi(a))Ai(b,c);else if(c=hh(a,b,c,d),null!==c){var e=R();gi(c,a,d,e);Bi(c,b,d)}}\nfunction ii(a,b,c){var d=yi(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(zi(a))Ai(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,gh(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=hh(a,b,e,d);null!==c&&(e=R(),gi(c,a,d,e),Bi(c,b,d))}}\nfunction zi(a){var b=a.alternate;return a===M||null!==b&&b===M}function Ai(a,b){Jh=Ih=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Bi(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nvar Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(a,b){Th().memoizedState=[a,void 0===b?null:b];return a},useContext:eh,useEffect:mi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ki(4194308,\n4,pi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ki(4194308,4,a,b)},useInsertionEffect:function(a,b){return ki(4,2,a,b)},useMemo:function(a,b){var c=Th();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=Th();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=xi.bind(null,M,a);return[d.memoizedState,a]},useRef:function(a){var b=\nTh();a={current:a};return b.memoizedState=a},useState:hi,useDebugValue:ri,useDeferredValue:function(a){return Th().memoizedState=a},useTransition:function(){var a=hi(!1),b=a[0];a=vi.bind(null,a[1]);Th().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=M,e=Th();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===Q)throw Error(p(349));0!==(Hh&30)||di(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;mi(ai.bind(null,d,\nf,a),[a]);d.flags|=2048;bi(9,ci.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=Th(),b=Q.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=\":\"+b+\"R\"+c;c=Kh++;0<c&&(b+=\"H\"+c.toString(32));b+=\":\"}else c=Lh++,b=\":\"+b+\"r\"+c.toString(32)+\":\";return a.memoizedState=b},unstable_isNewReconciler:!1},Ph={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Wh,useRef:ji,useState:function(){return Wh(Vh)},\nuseDebugValue:ri,useDeferredValue:function(a){var b=Uh();return ui(b,N.memoizedState,a)},useTransition:function(){var a=Wh(Vh)[0],b=Uh().memoizedState;return[a,b]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1},Qh={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Xh,useRef:ji,useState:function(){return Xh(Vh)},useDebugValue:ri,useDeferredValue:function(a){var b=Uh();return null===\nN?b.memoizedState=a:ui(b,N.memoizedState,a)},useTransition:function(){var a=Xh(Vh)[0],b=Uh().memoizedState;return[a,b]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1};function Ci(a,b){if(a&&a.defaultProps){b=A({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c]);return b}return b}function Di(a,b,c,d){b=a.memoizedState;c=c(d,b);c=null===c||void 0===c?b:A({},b,c);a.memoizedState=c;0===a.lanes&&(a.updateQueue.baseState=c)}\nvar Ei={isMounted:function(a){return(a=a._reactInternals)?Vb(a)===a:!1},enqueueSetState:function(a,b,c){a=a._reactInternals;var d=R(),e=yi(a),f=mh(d,e);f.payload=b;void 0!==c&&null!==c&&(f.callback=c);b=nh(a,f,e);null!==b&&(gi(b,a,e,d),oh(b,a,e))},enqueueReplaceState:function(a,b,c){a=a._reactInternals;var d=R(),e=yi(a),f=mh(d,e);f.tag=1;f.payload=b;void 0!==c&&null!==c&&(f.callback=c);b=nh(a,f,e);null!==b&&(gi(b,a,e,d),oh(b,a,e))},enqueueForceUpdate:function(a,b){a=a._reactInternals;var c=R(),d=\nyi(a),e=mh(c,d);e.tag=2;void 0!==b&&null!==b&&(e.callback=b);b=nh(a,e,d);null!==b&&(gi(b,a,d,c),oh(b,a,d))}};function Fi(a,b,c,d,e,f,g){a=a.stateNode;return\"function\"===typeof a.shouldComponentUpdate?a.shouldComponentUpdate(d,f,g):b.prototype&&b.prototype.isPureReactComponent?!Ie(c,d)||!Ie(e,f):!0}\nfunction Gi(a,b,c){var d=!1,e=Vf;var f=b.contextType;\"object\"===typeof f&&null!==f?f=eh(f):(e=Zf(b)?Xf:H.current,d=b.contextTypes,f=(d=null!==d&&void 0!==d)?Yf(a,e):Vf);b=new b(c,f);a.memoizedState=null!==b.state&&void 0!==b.state?b.state:null;b.updater=Ei;a.stateNode=b;b._reactInternals=a;d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=e,a.__reactInternalMemoizedMaskedChildContext=f);return b}\nfunction Hi(a,b,c,d){a=b.state;\"function\"===typeof b.componentWillReceiveProps&&b.componentWillReceiveProps(c,d);\"function\"===typeof b.UNSAFE_componentWillReceiveProps&&b.UNSAFE_componentWillReceiveProps(c,d);b.state!==a&&Ei.enqueueReplaceState(b,b.state,null)}\nfunction Ii(a,b,c,d){var e=a.stateNode;e.props=c;e.state=a.memoizedState;e.refs={};kh(a);var f=b.contextType;\"object\"===typeof f&&null!==f?e.context=eh(f):(f=Zf(b)?Xf:H.current,e.context=Yf(a,f));e.state=a.memoizedState;f=b.getDerivedStateFromProps;\"function\"===typeof f&&(Di(a,b,f,c),e.state=a.memoizedState);\"function\"===typeof b.getDerivedStateFromProps||\"function\"===typeof e.getSnapshotBeforeUpdate||\"function\"!==typeof e.UNSAFE_componentWillMount&&\"function\"!==typeof e.componentWillMount||(b=e.state,\n\"function\"===typeof e.componentWillMount&&e.componentWillMount(),\"function\"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),b!==e.state&&Ei.enqueueReplaceState(e,e.state,null),qh(a,c,e,d),e.state=a.memoizedState);\"function\"===typeof e.componentDidMount&&(a.flags|=4194308)}function Ji(a,b){try{var c=\"\",d=b;do c+=Pa(d),d=d.return;while(d);var e=c}catch(f){e=\"\\nError generating stack: \"+f.message+\"\\n\"+f.stack}return{value:a,source:b,stack:e,digest:null}}\nfunction Ki(a,b,c){return{value:a,source:null,stack:null!=c?c:null,digest:null!=b?b:null}}function Li(a,b){try{console.error(b.value)}catch(c){setTimeout(function(){throw c;})}}var Mi=\"function\"===typeof WeakMap?WeakMap:Map;function Ni(a,b,c){c=mh(-1,c);c.tag=3;c.payload={element:null};var d=b.value;c.callback=function(){Oi||(Oi=!0,Pi=d);Li(a,b)};return c}\nfunction Qi(a,b,c){c=mh(-1,c);c.tag=3;var d=a.type.getDerivedStateFromError;if(\"function\"===typeof d){var e=b.value;c.payload=function(){return d(e)};c.callback=function(){Li(a,b)}}var f=a.stateNode;null!==f&&\"function\"===typeof f.componentDidCatch&&(c.callback=function(){Li(a,b);\"function\"!==typeof d&&(null===Ri?Ri=new Set([this]):Ri.add(this));var c=b.stack;this.componentDidCatch(b.value,{componentStack:null!==c?c:\"\"})});return c}\nfunction Si(a,b,c){var d=a.pingCache;if(null===d){d=a.pingCache=new Mi;var e=new Set;d.set(b,e)}else e=d.get(b),void 0===e&&(e=new Set,d.set(b,e));e.has(c)||(e.add(c),a=Ti.bind(null,a,b,c),b.then(a,a))}function Ui(a){do{var b;if(b=13===a.tag)b=a.memoizedState,b=null!==b?null!==b.dehydrated?!0:!1:!0;if(b)return a;a=a.return}while(null!==a);return null}\nfunction Vi(a,b,c,d,e){if(0===(a.mode&1))return a===b?a.flags|=65536:(a.flags|=128,c.flags|=131072,c.flags&=-52805,1===c.tag&&(null===c.alternate?c.tag=17:(b=mh(-1,1),b.tag=2,nh(c,b,1))),c.lanes|=1),a;a.flags|=65536;a.lanes=e;return a}var Wi=ua.ReactCurrentOwner,dh=!1;function Xi(a,b,c,d){b.child=null===a?Vg(b,null,c,d):Ug(b,a.child,c,d)}\nfunction Yi(a,b,c,d,e){c=c.render;var f=b.ref;ch(b,e);d=Nh(a,b,c,d,f,e);c=Sh();if(null!==a&&!dh)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,Zi(a,b,e);I&&c&&vg(b);b.flags|=1;Xi(a,b,d,e);return b.child}\nfunction $i(a,b,c,d,e){if(null===a){var f=c.type;if(\"function\"===typeof f&&!aj(f)&&void 0===f.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=f,bj(a,b,f,d,e);a=Rg(c.type,null,d,b,b.mode,e);a.ref=b.ref;a.return=b;return b.child=a}f=a.child;if(0===(a.lanes&e)){var g=f.memoizedProps;c=c.compare;c=null!==c?c:Ie;if(c(g,d)&&a.ref===b.ref)return Zi(a,b,e)}b.flags|=1;a=Pg(f,d);a.ref=b.ref;a.return=b;return b.child=a}\nfunction bj(a,b,c,d,e){if(null!==a){var f=a.memoizedProps;if(Ie(f,d)&&a.ref===b.ref)if(dh=!1,b.pendingProps=d=f,0!==(a.lanes&e))0!==(a.flags&131072)&&(dh=!0);else return b.lanes=a.lanes,Zi(a,b,e)}return cj(a,b,c,d,e)}\nfunction dj(a,b,c){var d=b.pendingProps,e=d.children,f=null!==a?a.memoizedState:null;if(\"hidden\"===d.mode)if(0===(b.mode&1))b.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(ej,fj),fj|=c;else{if(0===(c&1073741824))return a=null!==f?f.baseLanes|c:c,b.lanes=b.childLanes=1073741824,b.memoizedState={baseLanes:a,cachePool:null,transitions:null},b.updateQueue=null,G(ej,fj),fj|=a,null;b.memoizedState={baseLanes:0,cachePool:null,transitions:null};d=null!==f?f.baseLanes:c;G(ej,fj);fj|=d}else null!==\nf?(d=f.baseLanes|c,b.memoizedState=null):d=c,G(ej,fj),fj|=d;Xi(a,b,e,c);return b.child}function gj(a,b){var c=b.ref;if(null===a&&null!==c||null!==a&&a.ref!==c)b.flags|=512,b.flags|=2097152}function cj(a,b,c,d,e){var f=Zf(c)?Xf:H.current;f=Yf(b,f);ch(b,e);c=Nh(a,b,c,d,f,e);d=Sh();if(null!==a&&!dh)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,Zi(a,b,e);I&&d&&vg(b);b.flags|=1;Xi(a,b,c,e);return b.child}\nfunction hj(a,b,c,d,e){if(Zf(c)){var f=!0;cg(b)}else f=!1;ch(b,e);if(null===b.stateNode)ij(a,b),Gi(b,c,d),Ii(b,c,d,e),d=!0;else if(null===a){var g=b.stateNode,h=b.memoizedProps;g.props=h;var k=g.context,l=c.contextType;\"object\"===typeof l&&null!==l?l=eh(l):(l=Zf(c)?Xf:H.current,l=Yf(b,l));var m=c.getDerivedStateFromProps,q=\"function\"===typeof m||\"function\"===typeof g.getSnapshotBeforeUpdate;q||\"function\"!==typeof g.UNSAFE_componentWillReceiveProps&&\"function\"!==typeof g.componentWillReceiveProps||\n(h!==d||k!==l)&&Hi(b,g,d,l);jh=!1;var r=b.memoizedState;g.state=r;qh(b,d,g,e);k=b.memoizedState;h!==d||r!==k||Wf.current||jh?(\"function\"===typeof m&&(Di(b,c,m,d),k=b.memoizedState),(h=jh||Fi(b,c,h,d,r,k,l))?(q||\"function\"!==typeof g.UNSAFE_componentWillMount&&\"function\"!==typeof g.componentWillMount||(\"function\"===typeof g.componentWillMount&&g.componentWillMount(),\"function\"===typeof g.UNSAFE_componentWillMount&&g.UNSAFE_componentWillMount()),\"function\"===typeof g.componentDidMount&&(b.flags|=4194308)):\n(\"function\"===typeof g.componentDidMount&&(b.flags|=4194308),b.memoizedProps=d,b.memoizedState=k),g.props=d,g.state=k,g.context=l,d=h):(\"function\"===typeof g.componentDidMount&&(b.flags|=4194308),d=!1)}else{g=b.stateNode;lh(a,b);h=b.memoizedProps;l=b.type===b.elementType?h:Ci(b.type,h);g.props=l;q=b.pendingProps;r=g.context;k=c.contextType;\"object\"===typeof k&&null!==k?k=eh(k):(k=Zf(c)?Xf:H.current,k=Yf(b,k));var y=c.getDerivedStateFromProps;(m=\"function\"===typeof y||\"function\"===typeof g.getSnapshotBeforeUpdate)||\n\"function\"!==typeof g.UNSAFE_componentWillReceiveProps&&\"function\"!==typeof g.componentWillReceiveProps||(h!==q||r!==k)&&Hi(b,g,d,k);jh=!1;r=b.memoizedState;g.state=r;qh(b,d,g,e);var n=b.memoizedState;h!==q||r!==n||Wf.current||jh?(\"function\"===typeof y&&(Di(b,c,y,d),n=b.memoizedState),(l=jh||Fi(b,c,l,d,r,n,k)||!1)?(m||\"function\"!==typeof g.UNSAFE_componentWillUpdate&&\"function\"!==typeof g.componentWillUpdate||(\"function\"===typeof g.componentWillUpdate&&g.componentWillUpdate(d,n,k),\"function\"===typeof g.UNSAFE_componentWillUpdate&&\ng.UNSAFE_componentWillUpdate(d,n,k)),\"function\"===typeof g.componentDidUpdate&&(b.flags|=4),\"function\"===typeof g.getSnapshotBeforeUpdate&&(b.flags|=1024)):(\"function\"!==typeof g.componentDidUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=4),\"function\"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=1024),b.memoizedProps=d,b.memoizedState=n),g.props=d,g.state=n,g.context=k,d=l):(\"function\"!==typeof g.componentDidUpdate||h===a.memoizedProps&&r===\na.memoizedState||(b.flags|=4),\"function\"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=1024),d=!1)}return jj(a,b,c,d,f,e)}\nfunction jj(a,b,c,d,e,f){gj(a,b);var g=0!==(b.flags&128);if(!d&&!g)return e&&dg(b,c,!1),Zi(a,b,f);d=b.stateNode;Wi.current=b;var h=g&&\"function\"!==typeof c.getDerivedStateFromError?null:d.render();b.flags|=1;null!==a&&g?(b.child=Ug(b,a.child,null,f),b.child=Ug(b,null,h,f)):Xi(a,b,h,f);b.memoizedState=d.state;e&&dg(b,c,!0);return b.child}function kj(a){var b=a.stateNode;b.pendingContext?ag(a,b.pendingContext,b.pendingContext!==b.context):b.context&&ag(a,b.context,!1);yh(a,b.containerInfo)}\nfunction lj(a,b,c,d,e){Ig();Jg(e);b.flags|=256;Xi(a,b,c,d);return b.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(a){return{baseLanes:a,cachePool:null,transitions:null}}\nfunction oj(a,b,c){var d=b.pendingProps,e=L.current,f=!1,g=0!==(b.flags&128),h;(h=g)||(h=null!==a&&null===a.memoizedState?!1:0!==(e&2));if(h)f=!0,b.flags&=-129;else if(null===a||null!==a.memoizedState)e|=1;G(L,e&1);if(null===a){Eg(b);a=b.memoizedState;if(null!==a&&(a=a.dehydrated,null!==a))return 0===(b.mode&1)?b.lanes=1:\"$!\"===a.data?b.lanes=8:b.lanes=1073741824,null;g=d.children;a=d.fallback;return f?(d=b.mode,f=b.child,g={mode:\"hidden\",children:g},0===(d&1)&&null!==f?(f.childLanes=0,f.pendingProps=\ng):f=pj(g,d,0,null),a=Tg(a,d,c,null),f.return=b,a.return=b,f.sibling=a,b.child=f,b.child.memoizedState=nj(c),b.memoizedState=mj,a):qj(b,g)}e=a.memoizedState;if(null!==e&&(h=e.dehydrated,null!==h))return rj(a,b,g,d,h,e,c);if(f){f=d.fallback;g=b.mode;e=a.child;h=e.sibling;var k={mode:\"hidden\",children:d.children};0===(g&1)&&b.child!==e?(d=b.child,d.childLanes=0,d.pendingProps=k,b.deletions=null):(d=Pg(e,k),d.subtreeFlags=e.subtreeFlags&14680064);null!==h?f=Pg(h,f):(f=Tg(f,g,c,null),f.flags|=2);f.return=\nb;d.return=b;d.sibling=f;b.child=d;d=f;f=b.child;g=a.child.memoizedState;g=null===g?nj(c):{baseLanes:g.baseLanes|c,cachePool:null,transitions:g.transitions};f.memoizedState=g;f.childLanes=a.childLanes&~c;b.memoizedState=mj;return d}f=a.child;a=f.sibling;d=Pg(f,{mode:\"visible\",children:d.children});0===(b.mode&1)&&(d.lanes=c);d.return=b;d.sibling=null;null!==a&&(c=b.deletions,null===c?(b.deletions=[a],b.flags|=16):c.push(a));b.child=d;b.memoizedState=null;return d}\nfunction qj(a,b){b=pj({mode:\"visible\",children:b},a.mode,0,null);b.return=a;return a.child=b}function sj(a,b,c,d){null!==d&&Jg(d);Ug(b,a.child,null,c);a=qj(b,b.pendingProps.children);a.flags|=2;b.memoizedState=null;return a}\nfunction rj(a,b,c,d,e,f,g){if(c){if(b.flags&256)return b.flags&=-257,d=Ki(Error(p(422))),sj(a,b,g,d);if(null!==b.memoizedState)return b.child=a.child,b.flags|=128,null;f=d.fallback;e=b.mode;d=pj({mode:\"visible\",children:d.children},e,0,null);f=Tg(f,e,g,null);f.flags|=2;d.return=b;f.return=b;d.sibling=f;b.child=d;0!==(b.mode&1)&&Ug(b,a.child,null,g);b.child.memoizedState=nj(g);b.memoizedState=mj;return f}if(0===(b.mode&1))return sj(a,b,g,null);if(\"$!\"===e.data){d=e.nextSibling&&e.nextSibling.dataset;\nif(d)var h=d.dgst;d=h;f=Error(p(419));d=Ki(f,d,void 0);return sj(a,b,g,d)}h=0!==(g&a.childLanes);if(dh||h){d=Q;if(null!==d){switch(g&-g){case 4:e=2;break;case 16:e=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:e=32;break;case 536870912:e=268435456;break;default:e=0}e=0!==(e&(d.suspendedLanes|g))?0:e;\n0!==e&&e!==f.retryLane&&(f.retryLane=e,ih(a,e),gi(d,a,e,-1))}tj();d=Ki(Error(p(421)));return sj(a,b,g,d)}if(\"$?\"===e.data)return b.flags|=128,b.child=a.child,b=uj.bind(null,a),e._reactRetry=b,null;a=f.treeContext;yg=Lf(e.nextSibling);xg=b;I=!0;zg=null;null!==a&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=a.id,sg=a.overflow,qg=b);b=qj(b,d.children);b.flags|=4096;return b}function vj(a,b,c){a.lanes|=b;var d=a.alternate;null!==d&&(d.lanes|=b);bh(a.return,b,c)}\nfunction wj(a,b,c,d,e){var f=a.memoizedState;null===f?a.memoizedState={isBackwards:b,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:e}:(f.isBackwards=b,f.rendering=null,f.renderingStartTime=0,f.last=d,f.tail=c,f.tailMode=e)}\nfunction xj(a,b,c){var d=b.pendingProps,e=d.revealOrder,f=d.tail;Xi(a,b,d.children,c);d=L.current;if(0!==(d&2))d=d&1|2,b.flags|=128;else{if(null!==a&&0!==(a.flags&128))a:for(a=b.child;null!==a;){if(13===a.tag)null!==a.memoizedState&&vj(a,c,b);else if(19===a.tag)vj(a,c,b);else if(null!==a.child){a.child.return=a;a=a.child;continue}if(a===b)break a;for(;null===a.sibling;){if(null===a.return||a.return===b)break a;a=a.return}a.sibling.return=a.return;a=a.sibling}d&=1}G(L,d);if(0===(b.mode&1))b.memoizedState=\nnull;else switch(e){case \"forwards\":c=b.child;for(e=null;null!==c;)a=c.alternate,null!==a&&null===Ch(a)&&(e=c),c=c.sibling;c=e;null===c?(e=b.child,b.child=null):(e=c.sibling,c.sibling=null);wj(b,!1,e,c,f);break;case \"backwards\":c=null;e=b.child;for(b.child=null;null!==e;){a=e.alternate;if(null!==a&&null===Ch(a)){b.child=e;break}a=e.sibling;e.sibling=c;c=e;e=a}wj(b,!0,c,null,f);break;case \"together\":wj(b,!1,null,null,void 0);break;default:b.memoizedState=null}return b.child}\nfunction ij(a,b){0===(b.mode&1)&&null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2)}function Zi(a,b,c){null!==a&&(b.dependencies=a.dependencies);rh|=b.lanes;if(0===(c&b.childLanes))return null;if(null!==a&&b.child!==a.child)throw Error(p(153));if(null!==b.child){a=b.child;c=Pg(a,a.pendingProps);b.child=c;for(c.return=b;null!==a.sibling;)a=a.sibling,c=c.sibling=Pg(a,a.pendingProps),c.return=b;c.sibling=null}return b.child}\nfunction yj(a,b,c){switch(b.tag){case 3:kj(b);Ig();break;case 5:Ah(b);break;case 1:Zf(b.type)&&cg(b);break;case 4:yh(b,b.stateNode.containerInfo);break;case 10:var d=b.type._context,e=b.memoizedProps.value;G(Wg,d._currentValue);d._currentValue=e;break;case 13:d=b.memoizedState;if(null!==d){if(null!==d.dehydrated)return G(L,L.current&1),b.flags|=128,null;if(0!==(c&b.child.childLanes))return oj(a,b,c);G(L,L.current&1);a=Zi(a,b,c);return null!==a?a.sibling:null}G(L,L.current&1);break;case 19:d=0!==(c&\nb.childLanes);if(0!==(a.flags&128)){if(d)return xj(a,b,c);b.flags|=128}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null,e.lastEffect=null);G(L,L.current);if(d)break;else return null;case 22:case 23:return b.lanes=0,dj(a,b,c)}return Zi(a,b,c)}var zj,Aj,Bj,Cj;\nzj=function(a,b){for(var c=b.child;null!==c;){if(5===c.tag||6===c.tag)a.appendChild(c.stateNode);else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return}c.sibling.return=c.return;c=c.sibling}};Aj=function(){};\nBj=function(a,b,c,d){var e=a.memoizedProps;if(e!==d){a=b.stateNode;xh(uh.current);var f=null;switch(c){case \"input\":e=Ya(a,e);d=Ya(a,d);f=[];break;case \"select\":e=A({},e,{value:void 0});d=A({},d,{value:void 0});f=[];break;case \"textarea\":e=gb(a,e);d=gb(a,d);f=[];break;default:\"function\"!==typeof e.onClick&&\"function\"===typeof d.onClick&&(a.onclick=Bf)}ub(c,d);var g;c=null;for(l in e)if(!d.hasOwnProperty(l)&&e.hasOwnProperty(l)&&null!=e[l])if(\"style\"===l){var h=e[l];for(g in h)h.hasOwnProperty(g)&&\n(c||(c={}),c[g]=\"\")}else\"dangerouslySetInnerHTML\"!==l&&\"children\"!==l&&\"suppressContentEditableWarning\"!==l&&\"suppressHydrationWarning\"!==l&&\"autoFocus\"!==l&&(ea.hasOwnProperty(l)?f||(f=[]):(f=f||[]).push(l,null));for(l in d){var k=d[l];h=null!=e?e[l]:void 0;if(d.hasOwnProperty(l)&&k!==h&&(null!=k||null!=h))if(\"style\"===l)if(h){for(g in h)!h.hasOwnProperty(g)||k&&k.hasOwnProperty(g)||(c||(c={}),c[g]=\"\");for(g in k)k.hasOwnProperty(g)&&h[g]!==k[g]&&(c||(c={}),c[g]=k[g])}else c||(f||(f=[]),f.push(l,\nc)),c=k;else\"dangerouslySetInnerHTML\"===l?(k=k?k.__html:void 0,h=h?h.__html:void 0,null!=k&&h!==k&&(f=f||[]).push(l,k)):\"children\"===l?\"string\"!==typeof k&&\"number\"!==typeof k||(f=f||[]).push(l,\"\"+k):\"suppressContentEditableWarning\"!==l&&\"suppressHydrationWarning\"!==l&&(ea.hasOwnProperty(l)?(null!=k&&\"onScroll\"===l&&D(\"scroll\",a),f||h===k||(f=[])):(f=f||[]).push(l,k))}c&&(f=f||[]).push(\"style\",c);var l=f;if(b.updateQueue=l)b.flags|=4}};Cj=function(a,b,c,d){c!==d&&(b.flags|=4)};\nfunction Dj(a,b){if(!I)switch(a.tailMode){case \"hidden\":b=a.tail;for(var c=null;null!==b;)null!==b.alternate&&(c=b),b=b.sibling;null===c?a.tail=null:c.sibling=null;break;case \"collapsed\":c=a.tail;for(var d=null;null!==c;)null!==c.alternate&&(d=c),c=c.sibling;null===d?b||null===a.tail?a.tail=null:a.tail.sibling=null:d.sibling=null}}\nfunction S(a){var b=null!==a.alternate&&a.alternate.child===a.child,c=0,d=0;if(b)for(var e=a.child;null!==e;)c|=e.lanes|e.childLanes,d|=e.subtreeFlags&14680064,d|=e.flags&14680064,e.return=a,e=e.sibling;else for(e=a.child;null!==e;)c|=e.lanes|e.childLanes,d|=e.subtreeFlags,d|=e.flags,e.return=a,e=e.sibling;a.subtreeFlags|=d;a.childLanes=c;return b}\nfunction Ej(a,b,c){var d=b.pendingProps;wg(b);switch(b.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(b),null;case 1:return Zf(b.type)&&$f(),S(b),null;case 3:d=b.stateNode;zh();E(Wf);E(H);Eh();d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null);if(null===a||null===a.child)Gg(b)?b.flags|=4:null===a||a.memoizedState.isDehydrated&&0===(b.flags&256)||(b.flags|=1024,null!==zg&&(Fj(zg),zg=null));Aj(a,b);S(b);return null;case 5:Bh(b);var e=xh(wh.current);\nc=b.type;if(null!==a&&null!=b.stateNode)Bj(a,b,c,d,e),a.ref!==b.ref&&(b.flags|=512,b.flags|=2097152);else{if(!d){if(null===b.stateNode)throw Error(p(166));S(b);return null}a=xh(uh.current);if(Gg(b)){d=b.stateNode;c=b.type;var f=b.memoizedProps;d[Of]=b;d[Pf]=f;a=0!==(b.mode&1);switch(c){case \"dialog\":D(\"cancel\",d);D(\"close\",d);break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",d);break;case \"video\":case \"audio\":for(e=0;e<lf.length;e++)D(lf[e],d);break;case \"source\":D(\"error\",d);break;case \"img\":case \"image\":case \"link\":D(\"error\",\nd);D(\"load\",d);break;case \"details\":D(\"toggle\",d);break;case \"input\":Za(d,f);D(\"invalid\",d);break;case \"select\":d._wrapperState={wasMultiple:!!f.multiple};D(\"invalid\",d);break;case \"textarea\":hb(d,f),D(\"invalid\",d)}ub(c,f);e=null;for(var g in f)if(f.hasOwnProperty(g)){var h=f[g];\"children\"===g?\"string\"===typeof h?d.textContent!==h&&(!0!==f.suppressHydrationWarning&&Af(d.textContent,h,a),e=[\"children\",h]):\"number\"===typeof h&&d.textContent!==\"\"+h&&(!0!==f.suppressHydrationWarning&&Af(d.textContent,\nh,a),e=[\"children\",\"\"+h]):ea.hasOwnProperty(g)&&null!=h&&\"onScroll\"===g&&D(\"scroll\",d)}switch(c){case \"input\":Va(d);db(d,f,!0);break;case \"textarea\":Va(d);jb(d);break;case \"select\":case \"option\":break;default:\"function\"===typeof f.onClick&&(d.onclick=Bf)}d=e;b.updateQueue=d;null!==d&&(b.flags|=4)}else{g=9===e.nodeType?e:e.ownerDocument;\"http://www.w3.org/1999/xhtml\"===a&&(a=kb(c));\"http://www.w3.org/1999/xhtml\"===a?\"script\"===c?(a=g.createElement(\"div\"),a.innerHTML=\"<script>\\x3c/script>\",a=a.removeChild(a.firstChild)):\n\"string\"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),\"select\"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;zj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case \"dialog\":D(\"cancel\",a);D(\"close\",a);e=d;break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",a);e=d;break;case \"video\":case \"audio\":for(e=0;e<lf.length;e++)D(lf[e],a);e=d;break;case \"source\":D(\"error\",a);e=d;break;case \"img\":case \"image\":case \"link\":D(\"error\",\na);D(\"load\",a);e=d;break;case \"details\":D(\"toggle\",a);e=d;break;case \"input\":Za(a,d);e=Ya(a,d);D(\"invalid\",a);break;case \"option\":e=d;break;case \"select\":a._wrapperState={wasMultiple:!!d.multiple};e=A({},d,{value:void 0});D(\"invalid\",a);break;case \"textarea\":hb(a,d);e=gb(a,d);D(\"invalid\",a);break;default:e=d}ub(c,e);h=e;for(f in h)if(h.hasOwnProperty(f)){var k=h[f];\"style\"===f?sb(a,k):\"dangerouslySetInnerHTML\"===f?(k=k?k.__html:void 0,null!=k&&nb(a,k)):\"children\"===f?\"string\"===typeof k?(\"textarea\"!==\nc||\"\"!==k)&&ob(a,k):\"number\"===typeof k&&ob(a,\"\"+k):\"suppressContentEditableWarning\"!==f&&\"suppressHydrationWarning\"!==f&&\"autoFocus\"!==f&&(ea.hasOwnProperty(f)?null!=k&&\"onScroll\"===f&&D(\"scroll\",a):null!=k&&ta(a,f,k,g))}switch(c){case \"input\":Va(a);db(a,d,!1);break;case \"textarea\":Va(a);jb(a);break;case \"option\":null!=d.value&&a.setAttribute(\"value\",\"\"+Sa(d.value));break;case \"select\":a.multiple=!!d.multiple;f=d.value;null!=f?fb(a,!!d.multiple,f,!1):null!=d.defaultValue&&fb(a,!!d.multiple,d.defaultValue,\n!0);break;default:\"function\"===typeof e.onClick&&(a.onclick=Bf)}switch(c){case \"button\":case \"input\":case \"select\":case \"textarea\":d=!!d.autoFocus;break a;case \"img\":d=!0;break a;default:d=!1}}d&&(b.flags|=4)}null!==b.ref&&(b.flags|=512,b.flags|=2097152)}S(b);return null;case 6:if(a&&null!=b.stateNode)Cj(a,b,a.memoizedProps,d);else{if(\"string\"!==typeof d&&null===b.stateNode)throw Error(p(166));c=xh(wh.current);xh(uh.current);if(Gg(b)){d=b.stateNode;c=b.memoizedProps;d[Of]=b;if(f=d.nodeValue!==c)if(a=\nxg,null!==a)switch(a.tag){case 3:Af(d.nodeValue,c,0!==(a.mode&1));break;case 5:!0!==a.memoizedProps.suppressHydrationWarning&&Af(d.nodeValue,c,0!==(a.mode&1))}f&&(b.flags|=4)}else d=(9===c.nodeType?c:c.ownerDocument).createTextNode(d),d[Of]=b,b.stateNode=d}S(b);return null;case 13:E(L);d=b.memoizedState;if(null===a||null!==a.memoizedState&&null!==a.memoizedState.dehydrated){if(I&&null!==yg&&0!==(b.mode&1)&&0===(b.flags&128))Hg(),Ig(),b.flags|=98560,f=!1;else if(f=Gg(b),null!==d&&null!==d.dehydrated){if(null===\na){if(!f)throw Error(p(318));f=b.memoizedState;f=null!==f?f.dehydrated:null;if(!f)throw Error(p(317));f[Of]=b}else Ig(),0===(b.flags&128)&&(b.memoizedState=null),b.flags|=4;S(b);f=!1}else null!==zg&&(Fj(zg),zg=null),f=!0;if(!f)return b.flags&65536?b:null}if(0!==(b.flags&128))return b.lanes=c,b;d=null!==d;d!==(null!==a&&null!==a.memoizedState)&&d&&(b.child.flags|=8192,0!==(b.mode&1)&&(null===a||0!==(L.current&1)?0===T&&(T=3):tj()));null!==b.updateQueue&&(b.flags|=4);S(b);return null;case 4:return zh(),\nAj(a,b),null===a&&sf(b.stateNode.containerInfo),S(b),null;case 10:return ah(b.type._context),S(b),null;case 17:return Zf(b.type)&&$f(),S(b),null;case 19:E(L);f=b.memoizedState;if(null===f)return S(b),null;d=0!==(b.flags&128);g=f.rendering;if(null===g)if(d)Dj(f,!1);else{if(0!==T||null!==a&&0!==(a.flags&128))for(a=b.child;null!==a;){g=Ch(a);if(null!==g){b.flags|=128;Dj(f,!1);d=g.updateQueue;null!==d&&(b.updateQueue=d,b.flags|=4);b.subtreeFlags=0;d=c;for(c=b.child;null!==c;)f=c,a=d,f.flags&=14680066,\ng=f.alternate,null===g?(f.childLanes=0,f.lanes=a,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,a=g.dependencies,f.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),c=c.sibling;G(L,L.current&1|2);return b.child}a=\na.sibling}null!==f.tail&&B()>Gj&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304)}else{if(!d)if(a=Ch(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Dj(f,!0),null===f.tail&&\"hidden\"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Gj&&1073741824!==c&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering=\nb,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=L.current,G(L,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Hj(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(fj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));}\nfunction Ij(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return zh(),E(Wf),E(H),Eh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Bh(b),null;case 13:E(L);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(L),null;case 4:return zh(),null;case 10:return ah(b.type._context),null;case 22:case 23:return Hj(),\nnull;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=\"function\"===typeof WeakSet?WeakSet:Set,V=null;function Lj(a,b){var c=a.ref;if(null!==c)if(\"function\"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Mj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Nj=!1;\nfunction Oj(a,b){Cf=dd;a=Me();if(Ne(a)){if(\"selectionStart\"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=\nq.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;\ncase 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Ci(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent=\"\":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Nj;Nj=!1;return n}\nfunction Pj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Mj(b,c,f)}e=e.next}while(e!==d)}}function Qj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Rj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}\"function\"===typeof b?b(a):b.current=a}}\nfunction Sj(a){var b=a.alternate;null!==b&&(a.alternate=null,Sj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Tj(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction Uj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Tj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}\nfunction Vj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Vj(a,b,c),a=a.sibling;null!==a;)Vj(a,b,c),a=a.sibling}\nfunction Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}var X=null,Xj=!1;function Yj(a,b,c){for(c=c.child;null!==c;)Zj(a,b,c),c=c.sibling}\nfunction Zj(a,b,c){if(lc&&\"function\"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Lj(c,b);case 6:var d=X,e=Xj;X=null;Yj(a,b,c);X=d;Xj=e;null!==X&&(Xj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Xj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Xj;X=c.stateNode.containerInfo;Xj=!0;\nYj(a,b,c);X=d;Xj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Mj(c,b,g):0!==(f&4)&&Mj(c,b,g));e=e.next}while(e!==d)}Yj(a,b,c);break;case 1:if(!U&&(Lj(c,b),d=c.stateNode,\"function\"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Yj(a,b,c);break;case 21:Yj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!==\nc.memoizedState,Yj(a,b,c),U=d):Yj(a,b,c);break;default:Yj(a,b,c)}}function ak(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Kj);b.forEach(function(b){var d=bk.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}\nfunction ck(a,b){var c=b.deletions;if(null!==c)for(var d=0;d<c.length;d++){var e=c[d];try{var f=a,g=b,h=g;a:for(;null!==h;){switch(h.tag){case 5:X=h.stateNode;Xj=!1;break a;case 3:X=h.stateNode.containerInfo;Xj=!0;break a;case 4:X=h.stateNode.containerInfo;Xj=!0;break a}h=h.return}if(null===X)throw Error(p(160));Zj(f,g,e);X=null;Xj=!1;var k=e.alternate;null!==k&&(k.return=null);e.return=null}catch(l){W(e,b,l)}}if(b.subtreeFlags&12854)for(b=b.child;null!==b;)dk(b,a),b=b.sibling}\nfunction dk(a,b){var c=a.alternate,d=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ck(b,a);ek(a);if(d&4){try{Pj(3,a,a.return),Qj(3,a)}catch(t){W(a,a.return,t)}try{Pj(5,a,a.return)}catch(t){W(a,a.return,t)}}break;case 1:ck(b,a);ek(a);d&512&&null!==c&&Lj(c,c.return);break;case 5:ck(b,a);ek(a);d&512&&null!==c&&Lj(c,c.return);if(a.flags&32){var e=a.stateNode;try{ob(e,\"\")}catch(t){W(a,a.return,t)}}if(d&4&&(e=a.stateNode,null!=e)){var f=a.memoizedProps,g=null!==c?c.memoizedProps:f,h=a.type,k=a.updateQueue;\na.updateQueue=null;if(null!==k)try{\"input\"===h&&\"radio\"===f.type&&null!=f.name&&ab(e,f);vb(h,g);var l=vb(h,f);for(g=0;g<k.length;g+=2){var m=k[g],q=k[g+1];\"style\"===m?sb(e,q):\"dangerouslySetInnerHTML\"===m?nb(e,q):\"children\"===m?ob(e,q):ta(e,m,q,l)}switch(h){case \"input\":bb(e,f);break;case \"textarea\":ib(e,f);break;case \"select\":var r=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=!!f.multiple;var y=f.value;null!=y?fb(e,!!f.multiple,y,!1):r!==!!f.multiple&&(null!=f.defaultValue?fb(e,!!f.multiple,\nf.defaultValue,!0):fb(e,!!f.multiple,f.multiple?[]:\"\",!1))}e[Pf]=f}catch(t){W(a,a.return,t)}}break;case 6:ck(b,a);ek(a);if(d&4){if(null===a.stateNode)throw Error(p(162));e=a.stateNode;f=a.memoizedProps;try{e.nodeValue=f}catch(t){W(a,a.return,t)}}break;case 3:ck(b,a);ek(a);if(d&4&&null!==c&&c.memoizedState.isDehydrated)try{bd(b.containerInfo)}catch(t){W(a,a.return,t)}break;case 4:ck(b,a);ek(a);break;case 13:ck(b,a);ek(a);e=a.child;e.flags&8192&&(f=null!==e.memoizedState,e.stateNode.isHidden=f,!f||\nnull!==e.alternate&&null!==e.alternate.memoizedState||(fk=B()));d&4&&ak(a);break;case 22:m=null!==c&&null!==c.memoizedState;a.mode&1?(U=(l=U)||m,ck(b,a),U=l):ck(b,a);ek(a);if(d&8192){l=null!==a.memoizedState;if((a.stateNode.isHidden=l)&&!m&&0!==(a.mode&1))for(V=a,m=a.child;null!==m;){for(q=V=m;null!==V;){r=V;y=r.child;switch(r.tag){case 0:case 11:case 14:case 15:Pj(4,r,r.return);break;case 1:Lj(r,r.return);var n=r.stateNode;if(\"function\"===typeof n.componentWillUnmount){d=r;c=r.return;try{b=d,n.props=\nb.memoizedProps,n.state=b.memoizedState,n.componentWillUnmount()}catch(t){W(d,c,t)}}break;case 5:Lj(r,r.return);break;case 22:if(null!==r.memoizedState){gk(q);continue}}null!==y?(y.return=r,V=y):gk(q)}m=m.sibling}a:for(m=null,q=a;;){if(5===q.tag){if(null===m){m=q;try{e=q.stateNode,l?(f=e.style,\"function\"===typeof f.setProperty?f.setProperty(\"display\",\"none\",\"important\"):f.display=\"none\"):(h=q.stateNode,k=q.memoizedProps.style,g=void 0!==k&&null!==k&&k.hasOwnProperty(\"display\")?k.display:null,h.style.display=\nrb(\"display\",g))}catch(t){W(a,a.return,t)}}}else if(6===q.tag){if(null===m)try{q.stateNode.nodeValue=l?\"\":q.memoizedProps}catch(t){W(a,a.return,t)}}else if((22!==q.tag&&23!==q.tag||null===q.memoizedState||q===a)&&null!==q.child){q.child.return=q;q=q.child;continue}if(q===a)break a;for(;null===q.sibling;){if(null===q.return||q.return===a)break a;m===q&&(m=null);q=q.return}m===q&&(m=null);q.sibling.return=q.return;q=q.sibling}}break;case 19:ck(b,a);ek(a);d&4&&ak(a);break;case 21:break;default:ck(b,\na),ek(a)}}function ek(a){var b=a.flags;if(b&2){try{a:{for(var c=a.return;null!==c;){if(Tj(c)){var d=c;break a}c=c.return}throw Error(p(160));}switch(d.tag){case 5:var e=d.stateNode;d.flags&32&&(ob(e,\"\"),d.flags&=-33);var f=Uj(a);Wj(a,f,e);break;case 3:case 4:var g=d.stateNode.containerInfo,h=Uj(a);Vj(a,h,g);break;default:throw Error(p(161));}}catch(k){W(a,a.return,k)}a.flags&=-3}b&4096&&(a.flags&=-4097)}function hk(a,b,c){V=a;ik(a,b,c)}\nfunction ik(a,b,c){for(var d=0!==(a.mode&1);null!==V;){var e=V,f=e.child;if(22===e.tag&&d){var g=null!==e.memoizedState||Jj;if(!g){var h=e.alternate,k=null!==h&&null!==h.memoizedState||U;h=Jj;var l=U;Jj=g;if((U=k)&&!l)for(V=e;null!==V;)g=V,k=g.child,22===g.tag&&null!==g.memoizedState?jk(e):null!==k?(k.return=g,V=k):jk(e);for(;null!==f;)V=f,ik(f,b,c),f=f.sibling;V=e;Jj=h;U=l}kk(a,b,c)}else 0!==(e.subtreeFlags&8772)&&null!==f?(f.return=e,V=f):kk(a,b,c)}}\nfunction kk(a){for(;null!==V;){var b=V;if(0!==(b.flags&8772)){var c=b.alternate;try{if(0!==(b.flags&8772))switch(b.tag){case 0:case 11:case 15:U||Qj(5,b);break;case 1:var d=b.stateNode;if(b.flags&4&&!U)if(null===c)d.componentDidMount();else{var e=b.elementType===b.type?c.memoizedProps:Ci(b.type,c.memoizedProps);d.componentDidUpdate(e,c.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var f=b.updateQueue;null!==f&&sh(b,f,d);break;case 3:var g=b.updateQueue;if(null!==g){c=null;if(null!==b.child)switch(b.child.tag){case 5:c=\nb.child.stateNode;break;case 1:c=b.child.stateNode}sh(b,g,c)}break;case 5:var h=b.stateNode;if(null===c&&b.flags&4){c=h;var k=b.memoizedProps;switch(b.type){case \"button\":case \"input\":case \"select\":case \"textarea\":k.autoFocus&&c.focus();break;case \"img\":k.src&&(c.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(null===b.memoizedState){var l=b.alternate;if(null!==l){var m=l.memoizedState;if(null!==m){var q=m.dehydrated;null!==q&&bd(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;\ndefault:throw Error(p(163));}U||b.flags&512&&Rj(b)}catch(r){W(b,b.return,r)}}if(b===a){V=null;break}c=b.sibling;if(null!==c){c.return=b.return;V=c;break}V=b.return}}function gk(a){for(;null!==V;){var b=V;if(b===a){V=null;break}var c=b.sibling;if(null!==c){c.return=b.return;V=c;break}V=b.return}}\nfunction jk(a){for(;null!==V;){var b=V;try{switch(b.tag){case 0:case 11:case 15:var c=b.return;try{Qj(4,b)}catch(k){W(b,c,k)}break;case 1:var d=b.stateNode;if(\"function\"===typeof d.componentDidMount){var e=b.return;try{d.componentDidMount()}catch(k){W(b,e,k)}}var f=b.return;try{Rj(b)}catch(k){W(b,f,k)}break;case 5:var g=b.return;try{Rj(b)}catch(k){W(b,g,k)}}}catch(k){W(b,b.return,k)}if(b===a){V=null;break}var h=b.sibling;if(null!==h){h.return=b.return;V=h;break}V=b.return}}\nvar lk=Math.ceil,mk=ua.ReactCurrentDispatcher,nk=ua.ReactCurrentOwner,ok=ua.ReactCurrentBatchConfig,K=0,Q=null,Y=null,Z=0,fj=0,ej=Uf(0),T=0,pk=null,rh=0,qk=0,rk=0,sk=null,tk=null,fk=0,Gj=Infinity,uk=null,Oi=!1,Pi=null,Ri=null,vk=!1,wk=null,xk=0,yk=0,zk=null,Ak=-1,Bk=0;function R(){return 0!==(K&6)?B():-1!==Ak?Ak:Ak=B()}\nfunction yi(a){if(0===(a.mode&1))return 1;if(0!==(K&2)&&0!==Z)return Z&-Z;if(null!==Kg.transition)return 0===Bk&&(Bk=yc()),Bk;a=C;if(0!==a)return a;a=window.event;a=void 0===a?16:jd(a.type);return a}function gi(a,b,c,d){if(50<yk)throw yk=0,zk=null,Error(p(185));Ac(a,c,d);if(0===(K&2)||a!==Q)a===Q&&(0===(K&2)&&(qk|=c),4===T&&Ck(a,Z)),Dk(a,d),1===c&&0===K&&0===(b.mode&1)&&(Gj=B()+500,fg&&jg())}\nfunction Dk(a,b){var c=a.callbackNode;wc(a,b);var d=uc(a,a===Q?Z:0);if(0===d)null!==c&&bc(c),a.callbackNode=null,a.callbackPriority=0;else if(b=d&-d,a.callbackPriority!==b){null!=c&&bc(c);if(1===b)0===a.tag?ig(Ek.bind(null,a)):hg(Ek.bind(null,a)),Jf(function(){0===(K&6)&&jg()}),c=null;else{switch(Dc(d)){case 1:c=fc;break;case 4:c=gc;break;case 16:c=hc;break;case 536870912:c=jc;break;default:c=hc}c=Fk(c,Gk.bind(null,a))}a.callbackPriority=b;a.callbackNode=c}}\nfunction Gk(a,b){Ak=-1;Bk=0;if(0!==(K&6))throw Error(p(327));var c=a.callbackNode;if(Hk()&&a.callbackNode!==c)return null;var d=uc(a,a===Q?Z:0);if(0===d)return null;if(0!==(d&30)||0!==(d&a.expiredLanes)||b)b=Ik(a,d);else{b=d;var e=K;K|=2;var f=Jk();if(Q!==a||Z!==b)uk=null,Gj=B()+500,Kk(a,b);do try{Lk();break}catch(h){Mk(a,h)}while(1);$g();mk.current=f;K=e;null!==Y?b=0:(Q=null,Z=0,b=T)}if(0!==b){2===b&&(e=xc(a),0!==e&&(d=e,b=Nk(a,e)));if(1===b)throw c=pk,Kk(a,0),Ck(a,d),Dk(a,B()),c;if(6===b)Ck(a,d);\nelse{e=a.current.alternate;if(0===(d&30)&&!Ok(e)&&(b=Ik(a,d),2===b&&(f=xc(a),0!==f&&(d=f,b=Nk(a,f))),1===b))throw c=pk,Kk(a,0),Ck(a,d),Dk(a,B()),c;a.finishedWork=e;a.finishedLanes=d;switch(b){case 0:case 1:throw Error(p(345));case 2:Pk(a,tk,uk);break;case 3:Ck(a,d);if((d&130023424)===d&&(b=fk+500-B(),10<b)){if(0!==uc(a,0))break;e=a.suspendedLanes;if((e&d)!==d){R();a.pingedLanes|=a.suspendedLanes&e;break}a.timeoutHandle=Ff(Pk.bind(null,a,tk,uk),b);break}Pk(a,tk,uk);break;case 4:Ck(a,d);if((d&4194240)===\nd)break;b=a.eventTimes;for(e=-1;0<d;){var g=31-oc(d);f=1<<g;g=b[g];g>e&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*lk(d/1960))-d;if(10<d){a.timeoutHandle=Ff(Pk.bind(null,a,tk,uk),d);break}Pk(a,tk,uk);break;case 5:Pk(a,tk,uk);break;default:throw Error(p(329));}}}Dk(a,B());return a.callbackNode===c?Gk.bind(null,a):null}\nfunction Nk(a,b){var c=sk;a.current.memoizedState.isDehydrated&&(Kk(a,b).flags|=256);a=Ik(a,b);2!==a&&(b=tk,tk=c,null!==b&&Fj(b));return a}function Fj(a){null===tk?tk=a:tk.push.apply(tk,a)}\nfunction Ok(a){for(var b=a;;){if(b.flags&16384){var c=b.updateQueue;if(null!==c&&(c=c.stores,null!==c))for(var d=0;d<c.length;d++){var e=c[d],f=e.getSnapshot;e=e.value;try{if(!He(f(),e))return!1}catch(g){return!1}}}c=b.child;if(b.subtreeFlags&16384&&null!==c)c.return=b,b=c;else{if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return!0;b=b.return}b.sibling.return=b.return;b=b.sibling}}return!0}\nfunction Ck(a,b){b&=~rk;b&=~qk;a.suspendedLanes|=b;a.pingedLanes&=~b;for(a=a.expirationTimes;0<b;){var c=31-oc(b),d=1<<c;a[c]=-1;b&=~d}}function Ek(a){if(0!==(K&6))throw Error(p(327));Hk();var b=uc(a,0);if(0===(b&1))return Dk(a,B()),null;var c=Ik(a,b);if(0!==a.tag&&2===c){var d=xc(a);0!==d&&(b=d,c=Nk(a,d))}if(1===c)throw c=pk,Kk(a,0),Ck(a,b),Dk(a,B()),c;if(6===c)throw Error(p(345));a.finishedWork=a.current.alternate;a.finishedLanes=b;Pk(a,tk,uk);Dk(a,B());return null}\nfunction Qk(a,b){var c=K;K|=1;try{return a(b)}finally{K=c,0===K&&(Gj=B()+500,fg&&jg())}}function Rk(a){null!==wk&&0===wk.tag&&0===(K&6)&&Hk();var b=K;K|=1;var c=ok.transition,d=C;try{if(ok.transition=null,C=1,a)return a()}finally{C=d,ok.transition=c,K=b,0===(K&6)&&jg()}}function Hj(){fj=ej.current;E(ej)}\nfunction Kk(a,b){a.finishedWork=null;a.finishedLanes=0;var c=a.timeoutHandle;-1!==c&&(a.timeoutHandle=-1,Gf(c));if(null!==Y)for(c=Y.return;null!==c;){var d=c;wg(d);switch(d.tag){case 1:d=d.type.childContextTypes;null!==d&&void 0!==d&&$f();break;case 3:zh();E(Wf);E(H);Eh();break;case 5:Bh(d);break;case 4:zh();break;case 13:E(L);break;case 19:E(L);break;case 10:ah(d.type._context);break;case 22:case 23:Hj()}c=c.return}Q=a;Y=a=Pg(a.current,null);Z=fj=b;T=0;pk=null;rk=qk=rh=0;tk=sk=null;if(null!==fh){for(b=\n0;b<fh.length;b++)if(c=fh[b],d=c.interleaved,null!==d){c.interleaved=null;var e=d.next,f=c.pending;if(null!==f){var g=f.next;f.next=e;d.next=g}c.pending=d}fh=null}return a}\nfunction Mk(a,b){do{var c=Y;try{$g();Fh.current=Rh;if(Ih){for(var d=M.memoizedState;null!==d;){var e=d.queue;null!==e&&(e.pending=null);d=d.next}Ih=!1}Hh=0;O=N=M=null;Jh=!1;Kh=0;nk.current=null;if(null===c||null===c.return){T=1;pk=b;Y=null;break}a:{var f=a,g=c.return,h=c,k=b;b=Z;h.flags|=32768;if(null!==k&&\"object\"===typeof k&&\"function\"===typeof k.then){var l=k,m=h,q=m.tag;if(0===(m.mode&1)&&(0===q||11===q||15===q)){var r=m.alternate;r?(m.updateQueue=r.updateQueue,m.memoizedState=r.memoizedState,\nm.lanes=r.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=Ui(g);if(null!==y){y.flags&=-257;Vi(y,g,h,f,b);y.mode&1&&Si(f,l,b);b=y;k=l;var n=b.updateQueue;if(null===n){var t=new Set;t.add(k);b.updateQueue=t}else n.add(k);break a}else{if(0===(b&1)){Si(f,l,b);tj();break a}k=Error(p(426))}}else if(I&&h.mode&1){var J=Ui(g);if(null!==J){0===(J.flags&65536)&&(J.flags|=256);Vi(J,g,h,f,b);Jg(Ji(k,h));break a}}f=k=Ji(k,h);4!==T&&(T=2);null===sk?sk=[f]:sk.push(f);f=g;do{switch(f.tag){case 3:f.flags|=65536;\nb&=-b;f.lanes|=b;var x=Ni(f,k,b);ph(f,x);break a;case 1:h=k;var w=f.type,u=f.stateNode;if(0===(f.flags&128)&&(\"function\"===typeof w.getDerivedStateFromError||null!==u&&\"function\"===typeof u.componentDidCatch&&(null===Ri||!Ri.has(u)))){f.flags|=65536;b&=-b;f.lanes|=b;var F=Qi(f,h,b);ph(f,F);break a}}f=f.return}while(null!==f)}Sk(c)}catch(na){b=na;Y===c&&null!==c&&(Y=c=c.return);continue}break}while(1)}function Jk(){var a=mk.current;mk.current=Rh;return null===a?Rh:a}\nfunction tj(){if(0===T||3===T||2===T)T=4;null===Q||0===(rh&268435455)&&0===(qk&268435455)||Ck(Q,Z)}function Ik(a,b){var c=K;K|=2;var d=Jk();if(Q!==a||Z!==b)uk=null,Kk(a,b);do try{Tk();break}catch(e){Mk(a,e)}while(1);$g();K=c;mk.current=d;if(null!==Y)throw Error(p(261));Q=null;Z=0;return T}function Tk(){for(;null!==Y;)Uk(Y)}function Lk(){for(;null!==Y&&!cc();)Uk(Y)}function Uk(a){var b=Vk(a.alternate,a,fj);a.memoizedProps=a.pendingProps;null===b?Sk(a):Y=b;nk.current=null}\nfunction Sk(a){var b=a;do{var c=b.alternate;a=b.return;if(0===(b.flags&32768)){if(c=Ej(c,b,fj),null!==c){Y=c;return}}else{c=Ij(c,b);if(null!==c){c.flags&=32767;Y=c;return}if(null!==a)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{T=6;Y=null;return}}b=b.sibling;if(null!==b){Y=b;return}Y=b=a}while(null!==b);0===T&&(T=5)}function Pk(a,b,c){var d=C,e=ok.transition;try{ok.transition=null,C=1,Wk(a,b,c,d)}finally{ok.transition=e,C=d}return null}\nfunction Wk(a,b,c,d){do Hk();while(null!==wk);if(0!==(K&6))throw Error(p(327));c=a.finishedWork;var e=a.finishedLanes;if(null===c)return null;a.finishedWork=null;a.finishedLanes=0;if(c===a.current)throw Error(p(177));a.callbackNode=null;a.callbackPriority=0;var f=c.lanes|c.childLanes;Bc(a,f);a===Q&&(Y=Q=null,Z=0);0===(c.subtreeFlags&2064)&&0===(c.flags&2064)||vk||(vk=!0,Fk(hc,function(){Hk();return null}));f=0!==(c.flags&15990);if(0!==(c.subtreeFlags&15990)||f){f=ok.transition;ok.transition=null;\nvar g=C;C=1;var h=K;K|=4;nk.current=null;Oj(a,c);dk(c,a);Oe(Df);dd=!!Cf;Df=Cf=null;a.current=c;hk(c,a,e);dc();K=h;C=g;ok.transition=f}else a.current=c;vk&&(vk=!1,wk=a,xk=e);f=a.pendingLanes;0===f&&(Ri=null);mc(c.stateNode,d);Dk(a,B());if(null!==b)for(d=a.onRecoverableError,c=0;c<b.length;c++)e=b[c],d(e.value,{componentStack:e.stack,digest:e.digest});if(Oi)throw Oi=!1,a=Pi,Pi=null,a;0!==(xk&1)&&0!==a.tag&&Hk();f=a.pendingLanes;0!==(f&1)?a===zk?yk++:(yk=0,zk=a):yk=0;jg();return null}\nfunction Hk(){if(null!==wk){var a=Dc(xk),b=ok.transition,c=C;try{ok.transition=null;C=16>a?16:a;if(null===wk)var d=!1;else{a=wk;wk=null;xk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;k<h.length;k++){var l=h[k];for(V=l;null!==V;){var m=V;switch(m.tag){case 0:case 11:case 15:Pj(8,m,f)}var q=m.child;if(null!==q)q.return=m,V=q;else for(;null!==V;){m=V;var r=m.sibling,y=m.return;Sj(m);if(m===\nl){V=null;break}if(null!==r){r.return=y;V=r;break}V=y}}}var n=f.alternate;if(null!==n){var t=n.child;if(null!==t){n.child=null;do{var J=t.sibling;t.sibling=null;t=J}while(null!==t)}}V=f}}if(0!==(f.subtreeFlags&2064)&&null!==g)g.return=f,V=g;else b:for(;null!==V;){f=V;if(0!==(f.flags&2048))switch(f.tag){case 0:case 11:case 15:Pj(9,f,f.return)}var x=f.sibling;if(null!==x){x.return=f.return;V=x;break b}V=f.return}}var w=a.current;for(V=w;null!==V;){g=V;var u=g.child;if(0!==(g.subtreeFlags&2064)&&null!==\nu)u.return=g,V=u;else b:for(g=w;null!==V;){h=V;if(0!==(h.flags&2048))try{switch(h.tag){case 0:case 11:case 15:Qj(9,h)}}catch(na){W(h,h.return,na)}if(h===g){V=null;break b}var F=h.sibling;if(null!==F){F.return=h.return;V=F;break b}V=h.return}}K=e;jg();if(lc&&\"function\"===typeof lc.onPostCommitFiberRoot)try{lc.onPostCommitFiberRoot(kc,a)}catch(na){}d=!0}return d}finally{C=c,ok.transition=b}}return!1}function Xk(a,b,c){b=Ji(c,b);b=Ni(a,b,1);a=nh(a,b,1);b=R();null!==a&&(Ac(a,1,b),Dk(a,b))}\nfunction W(a,b,c){if(3===a.tag)Xk(a,a,c);else for(;null!==b;){if(3===b.tag){Xk(b,a,c);break}else if(1===b.tag){var d=b.stateNode;if(\"function\"===typeof b.type.getDerivedStateFromError||\"function\"===typeof d.componentDidCatch&&(null===Ri||!Ri.has(d))){a=Ji(c,a);a=Qi(b,a,1);b=nh(b,a,1);a=R();null!==b&&(Ac(b,1,a),Dk(b,a));break}}b=b.return}}\nfunction Ti(a,b,c){var d=a.pingCache;null!==d&&d.delete(b);b=R();a.pingedLanes|=a.suspendedLanes&c;Q===a&&(Z&c)===c&&(4===T||3===T&&(Z&130023424)===Z&&500>B()-fk?Kk(a,0):rk|=c);Dk(a,b)}function Yk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=R();a=ih(a,b);null!==a&&(Ac(a,b,c),Dk(a,c))}function uj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Yk(a,c)}\nfunction bk(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Yk(a,c)}var Vk;\nVk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)dh=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return dh=!1,yj(a,b,c);dh=0!==(a.flags&131072)?!0:!1}else dh=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;ij(a,b);a=b.pendingProps;var e=Yf(b,H.current);ch(b,c);e=Nh(null,b,d,a,e,c);var f=Sh();b.flags|=1;\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=\nnull,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,kh(b),e.updater=Ei,b.stateNode=e,e._reactInternals=b,Ii(b,d,a,c),b=jj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Xi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{ij(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=Zk(d);a=Ci(d,a);switch(e){case 0:b=cj(null,b,d,a,c);break a;case 1:b=hj(null,b,d,a,c);break a;case 11:b=Yi(null,b,d,a,c);break a;case 14:b=$i(null,b,d,Ci(d.type,a),c);break a}throw Error(p(306,\nd,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),cj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),hj(a,b,d,e,c);case 3:a:{kj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;lh(a,b);qh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=\nf,b.memoizedState=f,b.flags&256){e=Ji(Error(p(423)),b);b=lj(a,b,d,c,e);break a}else if(d!==e){e=Ji(Error(p(424)),b);b=lj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Vg(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=Zi(a,b,c);break a}Xi(a,b,d,c)}b=b.child}return b;case 5:return Ah(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),\ngj(a,b),Xi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return oj(a,b,c);case 4:return yh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Ug(b,null,d,c):Xi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),Yi(a,b,d,e,c);case 7:return Xi(a,b,b.pendingProps,c),b.child;case 8:return Xi(a,b,b.pendingProps.children,c),b.child;case 12:return Xi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;\ng=e.value;G(Wg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=Zi(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=mh(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);bh(f.return,\nc,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);bh(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Xi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,ch(b,c),e=eh(e),d=d(e),b.flags|=1,Xi(a,b,d,c),\nb.child;case 14:return d=b.type,e=Ci(d,b.pendingProps),e=Ci(d.type,e),$i(a,b,d,e,c);case 15:return bj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),ij(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,ch(b,c),Gi(b,d,e),Ii(b,d,e,c),jj(null,b,d,!0,a,c);case 19:return xj(a,b,c);case 22:return dj(a,b,c)}throw Error(p(156,b.tag));};function Fk(a,b){return ac(a,b)}\nfunction $k(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new $k(a,b,c,d)}function aj(a){a=a.prototype;return!(!a||!a.isReactComponent)}\nfunction Zk(a){if(\"function\"===typeof a)return aj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2}\nfunction Pg(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};\nc.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}\nfunction Rg(a,b,c,d,e,f){var g=2;d=a;if(\"function\"===typeof a)aj(a)&&(g=1);else if(\"string\"===typeof a)g=5;else a:switch(a){case ya:return Tg(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return pj(c,e,f,b);default:if(\"object\"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;\nbreak a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,\"\"));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Tg(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function pj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function Qg(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}\nfunction Sg(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction al(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=\nnull}function bl(a,b,c,d,e,f,g,h,k){a=new al(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};kh(f);return a}function cl(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:wa,key:null==d?null:\"\"+d,children:a,containerInfo:b,implementation:c}}\nfunction dl(a){if(!a)return Vf;a=a._reactInternals;a:{if(Vb(a)!==a||1!==a.tag)throw Error(p(170));var b=a;do{switch(b.tag){case 3:b=b.stateNode.context;break a;case 1:if(Zf(b.type)){b=b.stateNode.__reactInternalMemoizedMergedChildContext;break a}}b=b.return}while(null!==b);throw Error(p(171));}if(1===a.tag){var c=a.type;if(Zf(c))return bg(a,c,b)}return b}\nfunction el(a,b,c,d,e,f,g,h,k){a=bl(c,d,!0,a,e,f,g,h,k);a.context=dl(null);c=a.current;d=R();e=yi(c);f=mh(d,e);f.callback=void 0!==b&&null!==b?b:null;nh(c,f,e);a.current.lanes=e;Ac(a,e,d);Dk(a,d);return a}function fl(a,b,c,d){var e=b.current,f=R(),g=yi(e);c=dl(c);null===b.context?b.context=c:b.pendingContext=c;b=mh(f,g);b.payload={element:a};d=void 0===d?null:d;null!==d&&(b.callback=d);a=nh(e,b,g);null!==a&&(gi(a,e,g,f),oh(a,e,g));return g}\nfunction gl(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function hl(a,b){a=a.memoizedState;if(null!==a&&null!==a.dehydrated){var c=a.retryLane;a.retryLane=0!==c&&c<b?c:b}}function il(a,b){hl(a,b);(a=a.alternate)&&hl(a,b)}function jl(){return null}var kl=\"function\"===typeof reportError?reportError:function(a){console.error(a)};function ll(a){this._internalRoot=a}\nml.prototype.render=ll.prototype.render=function(a){var b=this._internalRoot;if(null===b)throw Error(p(409));fl(a,b,null,null)};ml.prototype.unmount=ll.prototype.unmount=function(){var a=this._internalRoot;if(null!==a){this._internalRoot=null;var b=a.containerInfo;Rk(function(){fl(null,a,null,null)});b[uf]=null}};function ml(a){this._internalRoot=a}\nml.prototype.unstable_scheduleHydration=function(a){if(a){var b=Hc();a={blockedOn:null,target:a,priority:b};for(var c=0;c<Qc.length&&0!==b&&b<Qc[c].priority;c++);Qc.splice(c,0,a);0===c&&Vc(a)}};function nl(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType)}function ol(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||\" react-mount-point-unstable \"!==a.nodeValue))}function pl(){}\nfunction ql(a,b,c,d,e){if(e){if(\"function\"===typeof d){var f=d;d=function(){var a=gl(g);f.call(a)}}var g=el(b,d,a,0,null,!1,!1,\"\",pl);a._reactRootContainer=g;a[uf]=g.current;sf(8===a.nodeType?a.parentNode:a);Rk();return g}for(;e=a.lastChild;)a.removeChild(e);if(\"function\"===typeof d){var h=d;d=function(){var a=gl(k);h.call(a)}}var k=bl(a,0,!1,null,null,!1,!1,\"\",pl);a._reactRootContainer=k;a[uf]=k.current;sf(8===a.nodeType?a.parentNode:a);Rk(function(){fl(b,k,c,d)});return k}\nfunction rl(a,b,c,d,e){var f=c._reactRootContainer;if(f){var g=f;if(\"function\"===typeof e){var h=e;e=function(){var a=gl(g);h.call(a)}}fl(b,g,a,e)}else g=ql(c,b,a,e,d);return gl(g)}Ec=function(a){switch(a.tag){case 3:var b=a.stateNode;if(b.current.memoizedState.isDehydrated){var c=tc(b.pendingLanes);0!==c&&(Cc(b,c|1),Dk(b,B()),0===(K&6)&&(Gj=B()+500,jg()))}break;case 13:Rk(function(){var b=ih(a,1);if(null!==b){var c=R();gi(b,a,1,c)}}),il(a,1)}};\nFc=function(a){if(13===a.tag){var b=ih(a,134217728);if(null!==b){var c=R();gi(b,a,134217728,c)}il(a,134217728)}};Gc=function(a){if(13===a.tag){var b=yi(a),c=ih(a,b);if(null!==c){var d=R();gi(c,a,b,d)}il(a,b)}};Hc=function(){return C};Ic=function(a,b){var c=C;try{return C=a,b()}finally{C=c}};\nyb=function(a,b,c){switch(b){case \"input\":bb(a,c);b=c.name;if(\"radio\"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+b)+'][type=\"radio\"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=Db(d);if(!e)throw Error(p(90));Wa(d);bb(d,e)}}}break;case \"textarea\":ib(a,c);break;case \"select\":b=c.value,null!=b&&fb(a,!!c.multiple,b,!1)}};Gb=Qk;Hb=Rk;\nvar sl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Qk]},tl={findFiberByHostInstance:Wc,bundleType:0,version:\"18.3.1\",rendererPackageName:\"react-dom\"};\nvar ul={bundleType:tl.bundleType,version:tl.version,rendererPackageName:tl.rendererPackageName,rendererConfig:tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=Zb(a);return null===a?null:a.stateNode},findFiberByHostInstance:tl.findFiberByHostInstance||\njl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:\"18.3.1-next-f1338f8080-20240426\"};if(\"undefined\"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl.isDisabled&&vl.supportsFiber)try{kc=vl.inject(ul),lc=vl}catch(a){}}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl;\nexports.createPortal=function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nl(b))throw Error(p(200));return cl(a,b,null,c)};exports.createRoot=function(a,b){if(!nl(a))throw Error(p(299));var c=!1,d=\"\",e=kl;null!==b&&void 0!==b&&(!0===b.unstable_strictMode&&(c=!0),void 0!==b.identifierPrefix&&(d=b.identifierPrefix),void 0!==b.onRecoverableError&&(e=b.onRecoverableError));b=bl(a,1,!1,null,null,c,!1,d,e);a[uf]=b.current;sf(8===a.nodeType?a.parentNode:a);return new ll(b)};\nexports.findDOMNode=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternals;if(void 0===b){if(\"function\"===typeof a.render)throw Error(p(188));a=Object.keys(a).join(\",\");throw Error(p(268,a));}a=Zb(b);a=null===a?null:a.stateNode;return a};exports.flushSync=function(a){return Rk(a)};exports.hydrate=function(a,b,c){if(!ol(b))throw Error(p(200));return rl(null,a,b,!0,c)};\nexports.hydrateRoot=function(a,b,c){if(!nl(a))throw Error(p(405));var d=null!=c&&c.hydratedSources||null,e=!1,f=\"\",g=kl;null!==c&&void 0!==c&&(!0===c.unstable_strictMode&&(e=!0),void 0!==c.identifierPrefix&&(f=c.identifierPrefix),void 0!==c.onRecoverableError&&(g=c.onRecoverableError));b=el(b,null,a,1,null!=c?c:null,e,!1,f,g);a[uf]=b.current;sf(a);if(d)for(a=0;a<d.length;a++)c=d[a],e=c._getVersion,e=e(c._source),null==b.mutableSourceEagerHydrationData?b.mutableSourceEagerHydrationData=[c,e]:b.mutableSourceEagerHydrationData.push(c,\ne);return new ml(b)};exports.render=function(a,b,c){if(!ol(b))throw Error(p(200));return rl(null,a,b,!1,c)};exports.unmountComponentAtNode=function(a){if(!ol(a))throw Error(p(40));return a._reactRootContainer?(Rk(function(){rl(null,null,a,!1,function(){a._reactRootContainer=null;a[uf]=null})}),!0):!1};exports.unstable_batchedUpdates=Qk;\nexports.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!ol(c))throw Error(p(200));if(null==a||void 0===a._reactInternals)throw Error(p(38));return rl(a,b,c,!1,d)};exports.version=\"18.3.1-next-f1338f8080-20240426\";\n","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.min.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n","import React from 'react';\n\nvar isCheckBoxInput = (element) => element.type === 'checkbox';\n\nvar isDateObject = (value) => value instanceof Date;\n\nvar isNullOrUndefined = (value) => value == null;\n\nconst isObjectType = (value) => typeof value === 'object';\nvar isObject = (value) => !isNullOrUndefined(value) &&\n !Array.isArray(value) &&\n isObjectType(value) &&\n !isDateObject(value);\n\nvar getEventValue = (event) => isObject(event) && event.target\n ? isCheckBoxInput(event.target)\n ? event.target.checked\n : event.target.value\n : event;\n\nvar getNodeParentName = (name) => name.substring(0, name.search(/\\.\\d+(\\.|$)/)) || name;\n\nvar isNameInFieldArray = (names, name) => names.has(getNodeParentName(name));\n\nvar isPlainObject = (tempObject) => {\n const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;\n return (isObject(prototypeCopy) && prototypeCopy.hasOwnProperty('isPrototypeOf'));\n};\n\nvar isWeb = typeof window !== 'undefined' &&\n typeof window.HTMLElement !== 'undefined' &&\n typeof document !== 'undefined';\n\nfunction cloneObject(data) {\n let copy;\n const isArray = Array.isArray(data);\n if (data instanceof Date) {\n copy = new Date(data);\n }\n else if (data instanceof Set) {\n copy = new Set(data);\n }\n else if (!(isWeb && (data instanceof Blob || data instanceof FileList)) &&\n (isArray || isObject(data))) {\n copy = isArray ? [] : {};\n if (!isArray && !isPlainObject(data)) {\n copy = data;\n }\n else {\n for (const key in data) {\n if (data.hasOwnProperty(key)) {\n copy[key] = cloneObject(data[key]);\n }\n }\n }\n }\n else {\n return data;\n }\n return copy;\n}\n\nvar compact = (value) => Array.isArray(value) ? value.filter(Boolean) : [];\n\nvar isUndefined = (val) => val === undefined;\n\nvar get = (obj, path, defaultValue) => {\n if (!path || !isObject(obj)) {\n return defaultValue;\n }\n const result = compact(path.split(/[,[\\].]+?/)).reduce((result, key) => isNullOrUndefined(result) ? result : result[key], obj);\n return isUndefined(result) || result === obj\n ? isUndefined(obj[path])\n ? defaultValue\n : obj[path]\n : result;\n};\n\nvar isBoolean = (value) => typeof value === 'boolean';\n\nconst EVENTS = {\n BLUR: 'blur',\n FOCUS_OUT: 'focusout',\n CHANGE: 'change',\n};\nconst VALIDATION_MODE = {\n onBlur: 'onBlur',\n onChange: 'onChange',\n onSubmit: 'onSubmit',\n onTouched: 'onTouched',\n all: 'all',\n};\nconst INPUT_VALIDATION_RULES = {\n max: 'max',\n min: 'min',\n maxLength: 'maxLength',\n minLength: 'minLength',\n pattern: 'pattern',\n required: 'required',\n validate: 'validate',\n};\n\nconst HookFormContext = React.createContext(null);\n/**\n * This custom hook allows you to access the form context. useFormContext is intended to be used in deeply nested structures, where it would become inconvenient to pass the context as a prop. To be used with {@link FormProvider}.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @returns return all useForm methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * <FormProvider {...methods} >\n * <form onSubmit={methods.handleSubmit(onSubmit)}>\n * <NestedInput />\n * <input type=\"submit\" />\n * </form>\n * </FormProvider>\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return <input {...register(\"test\")} />;\n * }\n * ```\n */\nconst useFormContext = () => React.useContext(HookFormContext);\n/**\n * A provider component that propagates the `useForm` methods to all children components via [React Context](https://reactjs.org/docs/context.html) API. To be used with {@link useFormContext}.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @param props - all useForm methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * <FormProvider {...methods} >\n * <form onSubmit={methods.handleSubmit(onSubmit)}>\n * <NestedInput />\n * <input type=\"submit\" />\n * </form>\n * </FormProvider>\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return <input {...register(\"test\")} />;\n * }\n * ```\n */\nconst FormProvider = (props) => {\n const { children, ...data } = props;\n return (React.createElement(HookFormContext.Provider, { value: data }, children));\n};\n\nvar getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {\n const result = {\n defaultValues: control._defaultValues,\n };\n for (const key in formState) {\n Object.defineProperty(result, key, {\n get: () => {\n const _key = key;\n if (control._proxyFormState[_key] !== VALIDATION_MODE.all) {\n control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;\n }\n localProxyFormState && (localProxyFormState[_key] = true);\n return formState[_key];\n },\n });\n }\n return result;\n};\n\nvar isEmptyObject = (value) => isObject(value) && !Object.keys(value).length;\n\nvar shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, isRoot) => {\n updateFormState(formStateData);\n const { name, ...formState } = formStateData;\n return (isEmptyObject(formState) ||\n Object.keys(formState).length >= Object.keys(_proxyFormState).length ||\n Object.keys(formState).find((key) => _proxyFormState[key] ===\n (!isRoot || VALIDATION_MODE.all)));\n};\n\nvar convertToArrayPayload = (value) => (Array.isArray(value) ? value : [value]);\n\nvar shouldSubscribeByName = (name, signalName, exact) => !name ||\n !signalName ||\n name === signalName ||\n convertToArrayPayload(name).some((currentName) => currentName &&\n (exact\n ? currentName === signalName\n : currentName.startsWith(signalName) ||\n signalName.startsWith(currentName)));\n\nfunction useSubscribe(props) {\n const _props = React.useRef(props);\n _props.current = props;\n React.useEffect(() => {\n const subscription = !props.disabled &&\n _props.current.subject &&\n _props.current.subject.subscribe({\n next: _props.current.next,\n });\n return () => {\n subscription && subscription.unsubscribe();\n };\n }, [props.disabled]);\n}\n\n/**\n * This custom hook allows you to subscribe to each form state, and isolate the re-render at the custom hook level. It has its scope in terms of form state subscription, so it would not affect other useFormState and useForm. Using this hook can reduce the re-render impact on large and complex form application.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformstate) • [Demo](https://codesandbox.io/s/useformstate-75xly)\n *\n * @param props - include options on specify fields to subscribe. {@link UseFormStateReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, control } = useForm({\n * defaultValues: {\n * firstName: \"firstName\"\n * }});\n * const { dirtyFields } = useFormState({\n * control\n * });\n * const onSubmit = (data) => console.log(data);\n *\n * return (\n * <form onSubmit={handleSubmit(onSubmit)}>\n * <input {...register(\"firstName\")} placeholder=\"First Name\" />\n * {dirtyFields.firstName && <p>Field is dirty.</p>}\n * <input type=\"submit\" />\n * </form>\n * );\n * }\n * ```\n */\nfunction useFormState(props) {\n const methods = useFormContext();\n const { control = methods.control, disabled, name, exact } = props || {};\n const [formState, updateFormState] = React.useState(control._formState);\n const _mounted = React.useRef(true);\n const _localProxyFormState = React.useRef({\n isDirty: false,\n isLoading: false,\n dirtyFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n });\n const _name = React.useRef(name);\n _name.current = name;\n useSubscribe({\n disabled,\n next: (value) => _mounted.current &&\n shouldSubscribeByName(_name.current, value.name, exact) &&\n shouldRenderFormState(value, _localProxyFormState.current, control._updateFormState) &&\n updateFormState({\n ...control._formState,\n ...value,\n }),\n subject: control._subjects.state,\n });\n React.useEffect(() => {\n _mounted.current = true;\n _localProxyFormState.current.isValid && control._updateValid(true);\n return () => {\n _mounted.current = false;\n };\n }, [control]);\n return getProxyFormState(formState, control, _localProxyFormState.current, false);\n}\n\nvar isString = (value) => typeof value === 'string';\n\nvar generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {\n if (isString(names)) {\n isGlobal && _names.watch.add(names);\n return get(formValues, names, defaultValue);\n }\n if (Array.isArray(names)) {\n return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get(formValues, fieldName)));\n }\n isGlobal && (_names.watchAll = true);\n return formValues;\n};\n\n/**\n * Custom hook to subscribe to field change and isolate re-rendering at the component level.\n *\n * @remarks\n *\n * [API](https://react-hook-form.com/docs/usewatch) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-usewatch-h9i5e)\n *\n * @example\n * ```tsx\n * const { control } = useForm();\n * const values = useWatch({\n * name: \"fieldName\"\n * control,\n * })\n * ```\n */\nfunction useWatch(props) {\n const methods = useFormContext();\n const { control = methods.control, name, defaultValue, disabled, exact, } = props || {};\n const _name = React.useRef(name);\n _name.current = name;\n useSubscribe({\n disabled,\n subject: control._subjects.values,\n next: (formState) => {\n if (shouldSubscribeByName(_name.current, formState.name, exact)) {\n updateValue(cloneObject(generateWatchOutput(_name.current, control._names, formState.values || control._formValues, false, defaultValue)));\n }\n },\n });\n const [value, updateValue] = React.useState(control._getWatch(name, defaultValue));\n React.useEffect(() => control._removeUnmounted());\n return value;\n}\n\nvar isKey = (value) => /^\\w*$/.test(value);\n\nvar stringToPath = (input) => compact(input.replace(/[\"|']|\\]/g, '').split(/\\.|\\[/));\n\nfunction set(object, path, value) {\n let index = -1;\n const tempPath = isKey(path) ? [path] : stringToPath(path);\n const length = tempPath.length;\n const lastIndex = length - 1;\n while (++index < length) {\n const key = tempPath[index];\n let newValue = value;\n if (index !== lastIndex) {\n const objValue = object[key];\n newValue =\n isObject(objValue) || Array.isArray(objValue)\n ? objValue\n : !isNaN(+tempPath[index + 1])\n ? []\n : {};\n }\n object[key] = newValue;\n object = object[key];\n }\n return object;\n}\n\n/**\n * Custom hook to work with controlled component, this function provide you with both form and field level state. Re-render is isolated at the hook level.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usecontroller) • [Demo](https://codesandbox.io/s/usecontroller-0o8px)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns field properties, field and form state. {@link UseControllerReturn}\n *\n * @example\n * ```tsx\n * function Input(props) {\n * const { field, fieldState, formState } = useController(props);\n * return (\n * <div>\n * <input {...field} placeholder={props.name} />\n * <p>{fieldState.isTouched && \"Touched\"}</p>\n * <p>{formState.isSubmitted ? \"submitted\" : \"\"}</p>\n * </div>\n * );\n * }\n * ```\n */\nfunction useController(props) {\n const methods = useFormContext();\n const { name, disabled, control = methods.control, shouldUnregister } = props;\n const isArrayField = isNameInFieldArray(control._names.array, name);\n const value = useWatch({\n control,\n name,\n defaultValue: get(control._formValues, name, get(control._defaultValues, name, props.defaultValue)),\n exact: true,\n });\n const formState = useFormState({\n control,\n name,\n });\n const _registerProps = React.useRef(control.register(name, {\n ...props.rules,\n value,\n }));\n _registerProps.current = control.register(name, props.rules);\n React.useEffect(() => {\n const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;\n const updateMounted = (name, value) => {\n const field = get(control._fields, name);\n if (field) {\n field._f.mount = value;\n }\n };\n updateMounted(name, true);\n if (_shouldUnregisterField) {\n const value = cloneObject(get(control._options.defaultValues, name));\n set(control._defaultValues, name, value);\n if (isUndefined(get(control._formValues, name))) {\n set(control._formValues, name, value);\n }\n }\n return () => {\n (isArrayField\n ? _shouldUnregisterField && !control._state.action\n : _shouldUnregisterField)\n ? control.unregister(name)\n : updateMounted(name, false);\n };\n }, [name, control, isArrayField, shouldUnregister]);\n React.useEffect(() => {\n if (get(control._fields, name)) {\n control._updateDisabledField({\n disabled,\n fields: control._fields,\n name,\n value: get(control._fields, name)._f.value,\n });\n }\n }, [disabled, name, control]);\n return {\n field: {\n name,\n value,\n ...(isBoolean(disabled) || isBoolean(formState.disabled)\n ? { disabled: formState.disabled || disabled }\n : {}),\n onChange: React.useCallback((event) => _registerProps.current.onChange({\n target: {\n value: getEventValue(event),\n name: name,\n },\n type: EVENTS.CHANGE,\n }), [name]),\n onBlur: React.useCallback(() => _registerProps.current.onBlur({\n target: {\n value: get(control._formValues, name),\n name: name,\n },\n type: EVENTS.BLUR,\n }), [name, control]),\n ref: (elm) => {\n const field = get(control._fields, name);\n if (field && elm) {\n field._f.ref = {\n focus: () => elm.focus(),\n select: () => elm.select(),\n setCustomValidity: (message) => elm.setCustomValidity(message),\n reportValidity: () => elm.reportValidity(),\n };\n }\n },\n },\n formState,\n fieldState: Object.defineProperties({}, {\n invalid: {\n enumerable: true,\n get: () => !!get(formState.errors, name),\n },\n isDirty: {\n enumerable: true,\n get: () => !!get(formState.dirtyFields, name),\n },\n isTouched: {\n enumerable: true,\n get: () => !!get(formState.touchedFields, name),\n },\n error: {\n enumerable: true,\n get: () => get(formState.errors, name),\n },\n }),\n };\n}\n\n/**\n * Component based on `useController` hook to work with controlled component.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usecontroller/controller) • [Demo](https://codesandbox.io/s/react-hook-form-v6-controller-ts-jwyzw) • [Video](https://www.youtube.com/watch?v=N2UNk_UCVyA)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns provide field handler functions, field and form state.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control } = useForm<FormValues>({\n * defaultValues: {\n * test: \"\"\n * }\n * });\n *\n * return (\n * <form>\n * <Controller\n * control={control}\n * name=\"test\"\n * render={({ field: { onChange, onBlur, value, ref }, formState, fieldState }) => (\n * <>\n * <input\n * onChange={onChange} // send value to hook form\n * onBlur={onBlur} // notify when input is touched\n * value={value} // return updated value\n * ref={ref} // set ref for focus management\n * />\n * <p>{formState.isSubmitted ? \"submitted\" : \"\"}</p>\n * <p>{fieldState.isTouched ? \"touched\" : \"\"}</p>\n * </>\n * )}\n * />\n * </form>\n * );\n * }\n * ```\n */\nconst Controller = (props) => props.render(useController(props));\n\nconst POST_REQUEST = 'post';\n/**\n * Form component to manage submission.\n *\n * @param props - to setup submission detail. {@link FormProps}\n *\n * @returns form component or headless render prop.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control, formState: { errors } } = useForm();\n *\n * return (\n * <Form action=\"/api\" control={control}>\n * <input {...register(\"name\")} />\n * <p>{errors?.root?.server && 'Server error'}</p>\n * <button>Submit</button>\n * </Form>\n * );\n * }\n * ```\n */\nfunction Form(props) {\n const methods = useFormContext();\n const [mounted, setMounted] = React.useState(false);\n const { control = methods.control, onSubmit, children, action, method = POST_REQUEST, headers, encType, onError, render, onSuccess, validateStatus, ...rest } = props;\n const submit = async (event) => {\n let hasError = false;\n let type = '';\n await control.handleSubmit(async (data) => {\n const formData = new FormData();\n let formDataJson = '';\n try {\n formDataJson = JSON.stringify(data);\n }\n catch (_a) { }\n for (const name of control._names.mount) {\n formData.append(name, get(data, name));\n }\n if (onSubmit) {\n await onSubmit({\n data,\n event,\n method,\n formData,\n formDataJson,\n });\n }\n if (action) {\n try {\n const shouldStringifySubmissionData = [\n headers && headers['Content-Type'],\n encType,\n ].some((value) => value && value.includes('json'));\n const response = await fetch(action, {\n method,\n headers: {\n ...headers,\n ...(encType ? { 'Content-Type': encType } : {}),\n },\n body: shouldStringifySubmissionData ? formDataJson : formData,\n });\n if (response &&\n (validateStatus\n ? !validateStatus(response.status)\n : response.status < 200 || response.status >= 300)) {\n hasError = true;\n onError && onError({ response });\n type = String(response.status);\n }\n else {\n onSuccess && onSuccess({ response });\n }\n }\n catch (error) {\n hasError = true;\n onError && onError({ error });\n }\n }\n })(event);\n if (hasError && props.control) {\n props.control._subjects.state.next({\n isSubmitSuccessful: false,\n });\n props.control.setError('root.server', {\n type,\n });\n }\n };\n React.useEffect(() => {\n setMounted(true);\n }, []);\n return render ? (React.createElement(React.Fragment, null, render({\n submit,\n }))) : (React.createElement(\"form\", { noValidate: mounted, action: action, method: method, encType: encType, onSubmit: submit, ...rest }, children));\n}\n\nvar appendErrors = (name, validateAllFieldCriteria, errors, type, message) => validateAllFieldCriteria\n ? {\n ...errors[name],\n types: {\n ...(errors[name] && errors[name].types ? errors[name].types : {}),\n [type]: message || true,\n },\n }\n : {};\n\nvar generateId = () => {\n const d = typeof performance === 'undefined' ? Date.now() : performance.now() * 1000;\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n const r = (Math.random() * 16 + d) % 16 | 0;\n return (c == 'x' ? r : (r & 0x3) | 0x8).toString(16);\n });\n};\n\nvar getFocusFieldName = (name, index, options = {}) => options.shouldFocus || isUndefined(options.shouldFocus)\n ? options.focusName ||\n `${name}.${isUndefined(options.focusIndex) ? index : options.focusIndex}.`\n : '';\n\nvar getValidationModes = (mode) => ({\n isOnSubmit: !mode || mode === VALIDATION_MODE.onSubmit,\n isOnBlur: mode === VALIDATION_MODE.onBlur,\n isOnChange: mode === VALIDATION_MODE.onChange,\n isOnAll: mode === VALIDATION_MODE.all,\n isOnTouch: mode === VALIDATION_MODE.onTouched,\n});\n\nvar isWatched = (name, _names, isBlurEvent) => !isBlurEvent &&\n (_names.watchAll ||\n _names.watch.has(name) ||\n [..._names.watch].some((watchName) => name.startsWith(watchName) &&\n /^\\.\\w+/.test(name.slice(watchName.length))));\n\nconst iterateFieldsByAction = (fields, action, fieldsNames, abortEarly) => {\n for (const key of fieldsNames || Object.keys(fields)) {\n const field = get(fields, key);\n if (field) {\n const { _f, ...currentField } = field;\n if (_f) {\n if (_f.refs && _f.refs[0] && action(_f.refs[0], key) && !abortEarly) {\n break;\n }\n else if (_f.ref && action(_f.ref, _f.name) && !abortEarly) {\n break;\n }\n }\n else if (isObject(currentField)) {\n iterateFieldsByAction(currentField, action);\n }\n }\n }\n};\n\nvar updateFieldArrayRootError = (errors, error, name) => {\n const fieldArrayErrors = compact(get(errors, name));\n set(fieldArrayErrors, 'root', error[name]);\n set(errors, name, fieldArrayErrors);\n return errors;\n};\n\nvar isFileInput = (element) => element.type === 'file';\n\nvar isFunction = (value) => typeof value === 'function';\n\nvar isHTMLElement = (value) => {\n if (!isWeb) {\n return false;\n }\n const owner = value ? value.ownerDocument : 0;\n return (value instanceof\n (owner && owner.defaultView ? owner.defaultView.HTMLElement : HTMLElement));\n};\n\nvar isMessage = (value) => isString(value);\n\nvar isRadioInput = (element) => element.type === 'radio';\n\nvar isRegex = (value) => value instanceof RegExp;\n\nconst defaultResult = {\n value: false,\n isValid: false,\n};\nconst validResult = { value: true, isValid: true };\nvar getCheckboxValue = (options) => {\n if (Array.isArray(options)) {\n if (options.length > 1) {\n const values = options\n .filter((option) => option && option.checked && !option.disabled)\n .map((option) => option.value);\n return { value: values, isValid: !!values.length };\n }\n return options[0].checked && !options[0].disabled\n ? // @ts-expect-error expected to work in the browser\n options[0].attributes && !isUndefined(options[0].attributes.value)\n ? isUndefined(options[0].value) || options[0].value === ''\n ? validResult\n : { value: options[0].value, isValid: true }\n : validResult\n : defaultResult;\n }\n return defaultResult;\n};\n\nconst defaultReturn = {\n isValid: false,\n value: null,\n};\nvar getRadioValue = (options) => Array.isArray(options)\n ? options.reduce((previous, option) => option && option.checked && !option.disabled\n ? {\n isValid: true,\n value: option.value,\n }\n : previous, defaultReturn)\n : defaultReturn;\n\nfunction getValidateError(result, ref, type = 'validate') {\n if (isMessage(result) ||\n (Array.isArray(result) && result.every(isMessage)) ||\n (isBoolean(result) && !result)) {\n return {\n type,\n message: isMessage(result) ? result : '',\n ref,\n };\n }\n}\n\nvar getValueAndMessage = (validationData) => isObject(validationData) && !isRegex(validationData)\n ? validationData\n : {\n value: validationData,\n message: '',\n };\n\nvar validateField = async (field, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {\n const { ref, refs, required, maxLength, minLength, min, max, pattern, validate, name, valueAsNumber, mount, disabled, } = field._f;\n const inputValue = get(formValues, name);\n if (!mount || disabled) {\n return {};\n }\n const inputRef = refs ? refs[0] : ref;\n const setCustomValidity = (message) => {\n if (shouldUseNativeValidation && inputRef.reportValidity) {\n inputRef.setCustomValidity(isBoolean(message) ? '' : message || '');\n inputRef.reportValidity();\n }\n };\n const error = {};\n const isRadio = isRadioInput(ref);\n const isCheckBox = isCheckBoxInput(ref);\n const isRadioOrCheckbox = isRadio || isCheckBox;\n const isEmpty = ((valueAsNumber || isFileInput(ref)) &&\n isUndefined(ref.value) &&\n isUndefined(inputValue)) ||\n (isHTMLElement(ref) && ref.value === '') ||\n inputValue === '' ||\n (Array.isArray(inputValue) && !inputValue.length);\n const appendErrorsCurry = appendErrors.bind(null, name, validateAllFieldCriteria, error);\n const getMinMaxMessage = (exceedMax, maxLengthMessage, minLengthMessage, maxType = INPUT_VALIDATION_RULES.maxLength, minType = INPUT_VALIDATION_RULES.minLength) => {\n const message = exceedMax ? maxLengthMessage : minLengthMessage;\n error[name] = {\n type: exceedMax ? maxType : minType,\n message,\n ref,\n ...appendErrorsCurry(exceedMax ? maxType : minType, message),\n };\n };\n if (isFieldArray\n ? !Array.isArray(inputValue) || !inputValue.length\n : required &&\n ((!isRadioOrCheckbox && (isEmpty || isNullOrUndefined(inputValue))) ||\n (isBoolean(inputValue) && !inputValue) ||\n (isCheckBox && !getCheckboxValue(refs).isValid) ||\n (isRadio && !getRadioValue(refs).isValid))) {\n const { value, message } = isMessage(required)\n ? { value: !!required, message: required }\n : getValueAndMessage(required);\n if (value) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.required,\n message,\n ref: inputRef,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.required, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (!isEmpty && (!isNullOrUndefined(min) || !isNullOrUndefined(max))) {\n let exceedMax;\n let exceedMin;\n const maxOutput = getValueAndMessage(max);\n const minOutput = getValueAndMessage(min);\n if (!isNullOrUndefined(inputValue) && !isNaN(inputValue)) {\n const valueNumber = ref.valueAsNumber ||\n (inputValue ? +inputValue : inputValue);\n if (!isNullOrUndefined(maxOutput.value)) {\n exceedMax = valueNumber > maxOutput.value;\n }\n if (!isNullOrUndefined(minOutput.value)) {\n exceedMin = valueNumber < minOutput.value;\n }\n }\n else {\n const valueDate = ref.valueAsDate || new Date(inputValue);\n const convertTimeToDate = (time) => new Date(new Date().toDateString() + ' ' + time);\n const isTime = ref.type == 'time';\n const isWeek = ref.type == 'week';\n if (isString(maxOutput.value) && inputValue) {\n exceedMax = isTime\n ? convertTimeToDate(inputValue) > convertTimeToDate(maxOutput.value)\n : isWeek\n ? inputValue > maxOutput.value\n : valueDate > new Date(maxOutput.value);\n }\n if (isString(minOutput.value) && inputValue) {\n exceedMin = isTime\n ? convertTimeToDate(inputValue) < convertTimeToDate(minOutput.value)\n : isWeek\n ? inputValue < minOutput.value\n : valueDate < new Date(minOutput.value);\n }\n }\n if (exceedMax || exceedMin) {\n getMinMaxMessage(!!exceedMax, maxOutput.message, minOutput.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if ((maxLength || minLength) &&\n !isEmpty &&\n (isString(inputValue) || (isFieldArray && Array.isArray(inputValue)))) {\n const maxLengthOutput = getValueAndMessage(maxLength);\n const minLengthOutput = getValueAndMessage(minLength);\n const exceedMax = !isNullOrUndefined(maxLengthOutput.value) &&\n inputValue.length > +maxLengthOutput.value;\n const exceedMin = !isNullOrUndefined(minLengthOutput.value) &&\n inputValue.length < +minLengthOutput.value;\n if (exceedMax || exceedMin) {\n getMinMaxMessage(exceedMax, maxLengthOutput.message, minLengthOutput.message);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if (pattern && !isEmpty && isString(inputValue)) {\n const { value: patternValue, message } = getValueAndMessage(pattern);\n if (isRegex(patternValue) && !inputValue.match(patternValue)) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.pattern,\n message,\n ref,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.pattern, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (validate) {\n if (isFunction(validate)) {\n const result = await validate(inputValue, formValues);\n const validateError = getValidateError(result, inputRef);\n if (validateError) {\n error[name] = {\n ...validateError,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.validate, validateError.message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(validateError.message);\n return error;\n }\n }\n }\n else if (isObject(validate)) {\n let validationResult = {};\n for (const key in validate) {\n if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) {\n break;\n }\n const validateError = getValidateError(await validate[key](inputValue, formValues), inputRef, key);\n if (validateError) {\n validationResult = {\n ...validateError,\n ...appendErrorsCurry(key, validateError.message),\n };\n setCustomValidity(validateError.message);\n if (validateAllFieldCriteria) {\n error[name] = validationResult;\n }\n }\n }\n if (!isEmptyObject(validationResult)) {\n error[name] = {\n ref: inputRef,\n ...validationResult,\n };\n if (!validateAllFieldCriteria) {\n return error;\n }\n }\n }\n }\n setCustomValidity(true);\n return error;\n};\n\nfunction append(data, value) {\n return [...data, ...convertToArrayPayload(value)];\n}\n\nvar fillEmptyArray = (value) => Array.isArray(value) ? value.map(() => undefined) : undefined;\n\nfunction insert(data, index, value) {\n return [\n ...data.slice(0, index),\n ...convertToArrayPayload(value),\n ...data.slice(index),\n ];\n}\n\nvar moveArrayAt = (data, from, to) => {\n if (!Array.isArray(data)) {\n return [];\n }\n if (isUndefined(data[to])) {\n data[to] = undefined;\n }\n data.splice(to, 0, data.splice(from, 1)[0]);\n return data;\n};\n\nfunction prepend(data, value) {\n return [...convertToArrayPayload(value), ...convertToArrayPayload(data)];\n}\n\nfunction removeAtIndexes(data, indexes) {\n let i = 0;\n const temp = [...data];\n for (const index of indexes) {\n temp.splice(index - i, 1);\n i++;\n }\n return compact(temp).length ? temp : [];\n}\nvar removeArrayAt = (data, index) => isUndefined(index)\n ? []\n : removeAtIndexes(data, convertToArrayPayload(index).sort((a, b) => a - b));\n\nvar swapArrayAt = (data, indexA, indexB) => {\n data[indexA] = [data[indexB], (data[indexB] = data[indexA])][0];\n};\n\nfunction baseGet(object, updatePath) {\n const length = updatePath.slice(0, -1).length;\n let index = 0;\n while (index < length) {\n object = isUndefined(object) ? index++ : object[updatePath[index++]];\n }\n return object;\n}\nfunction isEmptyArray(obj) {\n for (const key in obj) {\n if (obj.hasOwnProperty(key) && !isUndefined(obj[key])) {\n return false;\n }\n }\n return true;\n}\nfunction unset(object, path) {\n const paths = Array.isArray(path)\n ? path\n : isKey(path)\n ? [path]\n : stringToPath(path);\n const childObject = paths.length === 1 ? object : baseGet(object, paths);\n const index = paths.length - 1;\n const key = paths[index];\n if (childObject) {\n delete childObject[key];\n }\n if (index !== 0 &&\n ((isObject(childObject) && isEmptyObject(childObject)) ||\n (Array.isArray(childObject) && isEmptyArray(childObject)))) {\n unset(object, paths.slice(0, -1));\n }\n return object;\n}\n\nvar updateAt = (fieldValues, index, value) => {\n fieldValues[index] = value;\n return fieldValues;\n};\n\n/**\n * A custom hook that exposes convenient methods to perform operations with a list of dynamic inputs that need to be appended, updated, removed etc. • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn) • [Video](https://youtu.be/4MrbfGSFY2A)\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usefieldarray) • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn)\n *\n * @param props - useFieldArray props\n *\n * @returns methods - functions to manipulate with the Field Arrays (dynamic inputs) {@link UseFieldArrayReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, control, handleSubmit, reset, trigger, setError } = useForm({\n * defaultValues: {\n * test: []\n * }\n * });\n * const { fields, append } = useFieldArray({\n * control,\n * name: \"test\"\n * });\n *\n * return (\n * <form onSubmit={handleSubmit(data => console.log(data))}>\n * {fields.map((item, index) => (\n * <input key={item.id} {...register(`test.${index}.firstName`)} />\n * ))}\n * <button type=\"button\" onClick={() => append({ firstName: \"bill\" })}>\n * append\n * </button>\n * <input type=\"submit\" />\n * </form>\n * );\n * }\n * ```\n */\nfunction useFieldArray(props) {\n const methods = useFormContext();\n const { control = methods.control, name, keyName = 'id', shouldUnregister, } = props;\n const [fields, setFields] = React.useState(control._getFieldArray(name));\n const ids = React.useRef(control._getFieldArray(name).map(generateId));\n const _fieldIds = React.useRef(fields);\n const _name = React.useRef(name);\n const _actioned = React.useRef(false);\n _name.current = name;\n _fieldIds.current = fields;\n control._names.array.add(name);\n props.rules &&\n control.register(name, props.rules);\n useSubscribe({\n next: ({ values, name: fieldArrayName, }) => {\n if (fieldArrayName === _name.current || !fieldArrayName) {\n const fieldValues = get(values, _name.current);\n if (Array.isArray(fieldValues)) {\n setFields(fieldValues);\n ids.current = fieldValues.map(generateId);\n }\n }\n },\n subject: control._subjects.array,\n });\n const updateValues = React.useCallback((updatedFieldArrayValues) => {\n _actioned.current = true;\n control._updateFieldArray(name, updatedFieldArrayValues);\n }, [control, name]);\n const append$1 = (value, options) => {\n const appendValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = append(control._getFieldArray(name), appendValue);\n control._names.focus = getFocusFieldName(name, updatedFieldArrayValues.length - 1, options);\n ids.current = append(ids.current, appendValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, append, {\n argA: fillEmptyArray(value),\n });\n };\n const prepend$1 = (value, options) => {\n const prependValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = prepend(control._getFieldArray(name), prependValue);\n control._names.focus = getFocusFieldName(name, 0, options);\n ids.current = prepend(ids.current, prependValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, prepend, {\n argA: fillEmptyArray(value),\n });\n };\n const remove = (index) => {\n const updatedFieldArrayValues = removeArrayAt(control._getFieldArray(name), index);\n ids.current = removeArrayAt(ids.current, index);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, removeArrayAt, {\n argA: index,\n });\n };\n const insert$1 = (index, value, options) => {\n const insertValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = insert(control._getFieldArray(name), index, insertValue);\n control._names.focus = getFocusFieldName(name, index, options);\n ids.current = insert(ids.current, index, insertValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, insert, {\n argA: index,\n argB: fillEmptyArray(value),\n });\n };\n const swap = (indexA, indexB) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n swapArrayAt(updatedFieldArrayValues, indexA, indexB);\n swapArrayAt(ids.current, indexA, indexB);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, swapArrayAt, {\n argA: indexA,\n argB: indexB,\n }, false);\n };\n const move = (from, to) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n moveArrayAt(updatedFieldArrayValues, from, to);\n moveArrayAt(ids.current, from, to);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, moveArrayAt, {\n argA: from,\n argB: to,\n }, false);\n };\n const update = (index, value) => {\n const updateValue = cloneObject(value);\n const updatedFieldArrayValues = updateAt(control._getFieldArray(name), index, updateValue);\n ids.current = [...updatedFieldArrayValues].map((item, i) => !item || i === index ? generateId() : ids.current[i]);\n updateValues(updatedFieldArrayValues);\n setFields([...updatedFieldArrayValues]);\n control._updateFieldArray(name, updatedFieldArrayValues, updateAt, {\n argA: index,\n argB: updateValue,\n }, true, false);\n };\n const replace = (value) => {\n const updatedFieldArrayValues = convertToArrayPayload(cloneObject(value));\n ids.current = updatedFieldArrayValues.map(generateId);\n updateValues([...updatedFieldArrayValues]);\n setFields([...updatedFieldArrayValues]);\n control._updateFieldArray(name, [...updatedFieldArrayValues], (data) => data, {}, true, false);\n };\n React.useEffect(() => {\n control._state.action = false;\n isWatched(name, control._names) &&\n control._subjects.state.next({\n ...control._formState,\n });\n if (_actioned.current &&\n (!getValidationModes(control._options.mode).isOnSubmit ||\n control._formState.isSubmitted)) {\n if (control._options.resolver) {\n control._executeSchema([name]).then((result) => {\n const error = get(result.errors, name);\n const existingError = get(control._formState.errors, name);\n if (existingError\n ? (!error && existingError.type) ||\n (error &&\n (existingError.type !== error.type ||\n existingError.message !== error.message))\n : error && error.type) {\n error\n ? set(control._formState.errors, name, error)\n : unset(control._formState.errors, name);\n control._subjects.state.next({\n errors: control._formState.errors,\n });\n }\n });\n }\n else {\n const field = get(control._fields, name);\n if (field && field._f) {\n validateField(field, control._formValues, control._options.criteriaMode === VALIDATION_MODE.all, control._options.shouldUseNativeValidation, true).then((error) => !isEmptyObject(error) &&\n control._subjects.state.next({\n errors: updateFieldArrayRootError(control._formState.errors, error, name),\n }));\n }\n }\n }\n control._subjects.values.next({\n name,\n values: { ...control._formValues },\n });\n control._names.focus &&\n iterateFieldsByAction(control._fields, (ref, key) => {\n if (control._names.focus &&\n key.startsWith(control._names.focus) &&\n ref.focus) {\n ref.focus();\n return 1;\n }\n return;\n });\n control._names.focus = '';\n control._updateValid();\n _actioned.current = false;\n }, [fields, name, control]);\n React.useEffect(() => {\n !get(control._formValues, name) && control._updateFieldArray(name);\n return () => {\n (control._options.shouldUnregister || shouldUnregister) &&\n control.unregister(name);\n };\n }, [name, control, keyName, shouldUnregister]);\n return {\n swap: React.useCallback(swap, [updateValues, name, control]),\n move: React.useCallback(move, [updateValues, name, control]),\n prepend: React.useCallback(prepend$1, [updateValues, name, control]),\n append: React.useCallback(append$1, [updateValues, name, control]),\n remove: React.useCallback(remove, [updateValues, name, control]),\n insert: React.useCallback(insert$1, [updateValues, name, control]),\n update: React.useCallback(update, [updateValues, name, control]),\n replace: React.useCallback(replace, [updateValues, name, control]),\n fields: React.useMemo(() => fields.map((field, index) => ({\n ...field,\n [keyName]: ids.current[index] || generateId(),\n })), [fields, keyName]),\n };\n}\n\nfunction createSubject() {\n let _observers = [];\n const next = (value) => {\n for (const observer of _observers) {\n observer.next && observer.next(value);\n }\n };\n const subscribe = (observer) => {\n _observers.push(observer);\n return {\n unsubscribe: () => {\n _observers = _observers.filter((o) => o !== observer);\n },\n };\n };\n const unsubscribe = () => {\n _observers = [];\n };\n return {\n get observers() {\n return _observers;\n },\n next,\n subscribe,\n unsubscribe,\n };\n}\n\nvar isPrimitive = (value) => isNullOrUndefined(value) || !isObjectType(value);\n\nfunction deepEqual(object1, object2) {\n if (isPrimitive(object1) || isPrimitive(object2)) {\n return object1 === object2;\n }\n if (isDateObject(object1) && isDateObject(object2)) {\n return object1.getTime() === object2.getTime();\n }\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n if (keys1.length !== keys2.length) {\n return false;\n }\n for (const key of keys1) {\n const val1 = object1[key];\n if (!keys2.includes(key)) {\n return false;\n }\n if (key !== 'ref') {\n const val2 = object2[key];\n if ((isDateObject(val1) && isDateObject(val2)) ||\n (isObject(val1) && isObject(val2)) ||\n (Array.isArray(val1) && Array.isArray(val2))\n ? !deepEqual(val1, val2)\n : val1 !== val2) {\n return false;\n }\n }\n }\n return true;\n}\n\nvar isMultipleSelect = (element) => element.type === `select-multiple`;\n\nvar isRadioOrCheckbox = (ref) => isRadioInput(ref) || isCheckBoxInput(ref);\n\nvar live = (ref) => isHTMLElement(ref) && ref.isConnected;\n\nvar objectHasFunction = (data) => {\n for (const key in data) {\n if (isFunction(data[key])) {\n return true;\n }\n }\n return false;\n};\n\nfunction markFieldsDirty(data, fields = {}) {\n const isParentNodeArray = Array.isArray(data);\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) ||\n (isObject(data[key]) && !objectHasFunction(data[key]))) {\n fields[key] = Array.isArray(data[key]) ? [] : {};\n markFieldsDirty(data[key], fields[key]);\n }\n else if (!isNullOrUndefined(data[key])) {\n fields[key] = true;\n }\n }\n }\n return fields;\n}\nfunction getDirtyFieldsFromDefaultValues(data, formValues, dirtyFieldsFromValues) {\n const isParentNodeArray = Array.isArray(data);\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) ||\n (isObject(data[key]) && !objectHasFunction(data[key]))) {\n if (isUndefined(formValues) ||\n isPrimitive(dirtyFieldsFromValues[key])) {\n dirtyFieldsFromValues[key] = Array.isArray(data[key])\n ? markFieldsDirty(data[key], [])\n : { ...markFieldsDirty(data[key]) };\n }\n else {\n getDirtyFieldsFromDefaultValues(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]);\n }\n }\n else {\n dirtyFieldsFromValues[key] = !deepEqual(data[key], formValues[key]);\n }\n }\n }\n return dirtyFieldsFromValues;\n}\nvar getDirtyFields = (defaultValues, formValues) => getDirtyFieldsFromDefaultValues(defaultValues, formValues, markFieldsDirty(formValues));\n\nvar getFieldValueAs = (value, { valueAsNumber, valueAsDate, setValueAs }) => isUndefined(value)\n ? value\n : valueAsNumber\n ? value === ''\n ? NaN\n : value\n ? +value\n : value\n : valueAsDate && isString(value)\n ? new Date(value)\n : setValueAs\n ? setValueAs(value)\n : value;\n\nfunction getFieldValue(_f) {\n const ref = _f.ref;\n if (_f.refs ? _f.refs.every((ref) => ref.disabled) : ref.disabled) {\n return;\n }\n if (isFileInput(ref)) {\n return ref.files;\n }\n if (isRadioInput(ref)) {\n return getRadioValue(_f.refs).value;\n }\n if (isMultipleSelect(ref)) {\n return [...ref.selectedOptions].map(({ value }) => value);\n }\n if (isCheckBoxInput(ref)) {\n return getCheckboxValue(_f.refs).value;\n }\n return getFieldValueAs(isUndefined(ref.value) ? _f.ref.value : ref.value, _f);\n}\n\nvar getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => {\n const fields = {};\n for (const name of fieldsNames) {\n const field = get(_fields, name);\n field && set(fields, name, field._f);\n }\n return {\n criteriaMode,\n names: [...fieldsNames],\n fields,\n shouldUseNativeValidation,\n };\n};\n\nvar getRuleValue = (rule) => isUndefined(rule)\n ? rule\n : isRegex(rule)\n ? rule.source\n : isObject(rule)\n ? isRegex(rule.value)\n ? rule.value.source\n : rule.value\n : rule;\n\nvar hasValidation = (options) => options.mount &&\n (options.required ||\n options.min ||\n options.max ||\n options.maxLength ||\n options.minLength ||\n options.pattern ||\n options.validate);\n\nfunction schemaErrorLookup(errors, _fields, name) {\n const error = get(errors, name);\n if (error || isKey(name)) {\n return {\n error,\n name,\n };\n }\n const names = name.split('.');\n while (names.length) {\n const fieldName = names.join('.');\n const field = get(_fields, fieldName);\n const foundError = get(errors, fieldName);\n if (field && !Array.isArray(field) && name !== fieldName) {\n return { name };\n }\n if (foundError && foundError.type) {\n return {\n name: fieldName,\n error: foundError,\n };\n }\n names.pop();\n }\n return {\n name,\n };\n}\n\nvar skipValidation = (isBlurEvent, isTouched, isSubmitted, reValidateMode, mode) => {\n if (mode.isOnAll) {\n return false;\n }\n else if (!isSubmitted && mode.isOnTouch) {\n return !(isTouched || isBlurEvent);\n }\n else if (isSubmitted ? reValidateMode.isOnBlur : mode.isOnBlur) {\n return !isBlurEvent;\n }\n else if (isSubmitted ? reValidateMode.isOnChange : mode.isOnChange) {\n return isBlurEvent;\n }\n return true;\n};\n\nvar unsetEmptyArray = (ref, name) => !compact(get(ref, name)).length && unset(ref, name);\n\nconst defaultOptions = {\n mode: VALIDATION_MODE.onSubmit,\n reValidateMode: VALIDATION_MODE.onChange,\n shouldFocusError: true,\n};\nfunction createFormControl(props = {}, flushRootRender) {\n let _options = {\n ...defaultOptions,\n ...props,\n };\n let _formState = {\n submitCount: 0,\n isDirty: false,\n isLoading: isFunction(_options.defaultValues),\n isValidating: false,\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n touchedFields: {},\n dirtyFields: {},\n errors: {},\n disabled: false,\n };\n let _fields = {};\n let _defaultValues = isObject(_options.defaultValues) || isObject(_options.values)\n ? cloneObject(_options.defaultValues || _options.values) || {}\n : {};\n let _formValues = _options.shouldUnregister\n ? {}\n : cloneObject(_defaultValues);\n let _state = {\n action: false,\n mount: false,\n watch: false,\n };\n let _names = {\n mount: new Set(),\n unMount: new Set(),\n array: new Set(),\n watch: new Set(),\n };\n let delayErrorCallback;\n let timer = 0;\n const _proxyFormState = {\n isDirty: false,\n dirtyFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n };\n const _subjects = {\n values: createSubject(),\n array: createSubject(),\n state: createSubject(),\n };\n const shouldCaptureDirtyFields = props.resetOptions && props.resetOptions.keepDirtyValues;\n const validationModeBeforeSubmit = getValidationModes(_options.mode);\n const validationModeAfterSubmit = getValidationModes(_options.reValidateMode);\n const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;\n const debounce = (callback) => (wait) => {\n clearTimeout(timer);\n timer = setTimeout(callback, wait);\n };\n const _updateValid = async (shouldUpdateValid) => {\n if (_proxyFormState.isValid || shouldUpdateValid) {\n const isValid = _options.resolver\n ? isEmptyObject((await _executeSchema()).errors)\n : await executeBuiltInValidation(_fields, true);\n if (isValid !== _formState.isValid) {\n _subjects.state.next({\n isValid,\n });\n }\n }\n };\n const _updateIsValidating = (value) => _proxyFormState.isValidating &&\n _subjects.state.next({\n isValidating: value,\n });\n const _updateFieldArray = (name, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {\n if (args && method) {\n _state.action = true;\n if (shouldUpdateFieldsAndState && Array.isArray(get(_fields, name))) {\n const fieldValues = method(get(_fields, name), args.argA, args.argB);\n shouldSetValues && set(_fields, name, fieldValues);\n }\n if (shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.errors, name))) {\n const errors = method(get(_formState.errors, name), args.argA, args.argB);\n shouldSetValues && set(_formState.errors, name, errors);\n unsetEmptyArray(_formState.errors, name);\n }\n if (_proxyFormState.touchedFields &&\n shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.touchedFields, name))) {\n const touchedFields = method(get(_formState.touchedFields, name), args.argA, args.argB);\n shouldSetValues && set(_formState.touchedFields, name, touchedFields);\n }\n if (_proxyFormState.dirtyFields) {\n _formState.dirtyFields = getDirtyFields(_defaultValues, _formValues);\n }\n _subjects.state.next({\n name,\n isDirty: _getDirty(name, values),\n dirtyFields: _formState.dirtyFields,\n errors: _formState.errors,\n isValid: _formState.isValid,\n });\n }\n else {\n set(_formValues, name, values);\n }\n };\n const updateErrors = (name, error) => {\n set(_formState.errors, name, error);\n _subjects.state.next({\n errors: _formState.errors,\n });\n };\n const updateValidAndValue = (name, shouldSkipSetValueAs, value, ref) => {\n const field = get(_fields, name);\n if (field) {\n const defaultValue = get(_formValues, name, isUndefined(value) ? get(_defaultValues, name) : value);\n isUndefined(defaultValue) ||\n (ref && ref.defaultChecked) ||\n shouldSkipSetValueAs\n ? set(_formValues, name, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f))\n : setFieldValue(name, defaultValue);\n _state.mount && _updateValid();\n }\n };\n const updateTouchAndDirty = (name, fieldValue, isBlurEvent, shouldDirty, shouldRender) => {\n let shouldUpdateField = false;\n let isPreviousDirty = false;\n const output = {\n name,\n };\n if (!isBlurEvent || shouldDirty) {\n if (_proxyFormState.isDirty) {\n isPreviousDirty = _formState.isDirty;\n _formState.isDirty = output.isDirty = _getDirty();\n shouldUpdateField = isPreviousDirty !== output.isDirty;\n }\n const isCurrentFieldPristine = deepEqual(get(_defaultValues, name), fieldValue);\n isPreviousDirty = get(_formState.dirtyFields, name);\n isCurrentFieldPristine\n ? unset(_formState.dirtyFields, name)\n : set(_formState.dirtyFields, name, true);\n output.dirtyFields = _formState.dirtyFields;\n shouldUpdateField =\n shouldUpdateField ||\n (_proxyFormState.dirtyFields &&\n isPreviousDirty !== !isCurrentFieldPristine);\n }\n if (isBlurEvent) {\n const isPreviousFieldTouched = get(_formState.touchedFields, name);\n if (!isPreviousFieldTouched) {\n set(_formState.touchedFields, name, isBlurEvent);\n output.touchedFields = _formState.touchedFields;\n shouldUpdateField =\n shouldUpdateField ||\n (_proxyFormState.touchedFields &&\n isPreviousFieldTouched !== isBlurEvent);\n }\n }\n shouldUpdateField && shouldRender && _subjects.state.next(output);\n return shouldUpdateField ? output : {};\n };\n const shouldRenderByError = (name, isValid, error, fieldState) => {\n const previousFieldError = get(_formState.errors, name);\n const shouldUpdateValid = _proxyFormState.isValid &&\n isBoolean(isValid) &&\n _formState.isValid !== isValid;\n if (props.delayError && error) {\n delayErrorCallback = debounce(() => updateErrors(name, error));\n delayErrorCallback(props.delayError);\n }\n else {\n clearTimeout(timer);\n delayErrorCallback = null;\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n if ((error ? !deepEqual(previousFieldError, error) : previousFieldError) ||\n !isEmptyObject(fieldState) ||\n shouldUpdateValid) {\n const updatedFormState = {\n ...fieldState,\n ...(shouldUpdateValid && isBoolean(isValid) ? { isValid } : {}),\n errors: _formState.errors,\n name,\n };\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n _subjects.state.next(updatedFormState);\n }\n _updateIsValidating(false);\n };\n const _executeSchema = async (name) => _options.resolver(_formValues, _options.context, getResolverOptions(name || _names.mount, _fields, _options.criteriaMode, _options.shouldUseNativeValidation));\n const executeSchemaAndUpdateState = async (names) => {\n const { errors } = await _executeSchema(names);\n if (names) {\n for (const name of names) {\n const error = get(errors, name);\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n }\n else {\n _formState.errors = errors;\n }\n return errors;\n };\n const executeBuiltInValidation = async (fields, shouldOnlyCheckValid, context = {\n valid: true,\n }) => {\n for (const name in fields) {\n const field = fields[name];\n if (field) {\n const { _f, ...fieldValue } = field;\n if (_f) {\n const isFieldArrayRoot = _names.array.has(_f.name);\n const fieldError = await validateField(field, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !shouldOnlyCheckValid, isFieldArrayRoot);\n if (fieldError[_f.name]) {\n context.valid = false;\n if (shouldOnlyCheckValid) {\n break;\n }\n }\n !shouldOnlyCheckValid &&\n (get(fieldError, _f.name)\n ? isFieldArrayRoot\n ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name)\n : set(_formState.errors, _f.name, fieldError[_f.name])\n : unset(_formState.errors, _f.name));\n }\n fieldValue &&\n (await executeBuiltInValidation(fieldValue, shouldOnlyCheckValid, context));\n }\n }\n return context.valid;\n };\n const _removeUnmounted = () => {\n for (const name of _names.unMount) {\n const field = get(_fields, name);\n field &&\n (field._f.refs\n ? field._f.refs.every((ref) => !live(ref))\n : !live(field._f.ref)) &&\n unregister(name);\n }\n _names.unMount = new Set();\n };\n const _getDirty = (name, data) => (name && data && set(_formValues, name, data),\n !deepEqual(getValues(), _defaultValues));\n const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {\n ...(_state.mount\n ? _formValues\n : isUndefined(defaultValue)\n ? _defaultValues\n : isString(names)\n ? { [names]: defaultValue }\n : defaultValue),\n }, isGlobal, defaultValue);\n const _getFieldArray = (name) => compact(get(_state.mount ? _formValues : _defaultValues, name, props.shouldUnregister ? get(_defaultValues, name, []) : []));\n const setFieldValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n let fieldValue = value;\n if (field) {\n const fieldReference = field._f;\n if (fieldReference) {\n !fieldReference.disabled &&\n set(_formValues, name, getFieldValueAs(value, fieldReference));\n fieldValue =\n isHTMLElement(fieldReference.ref) && isNullOrUndefined(value)\n ? ''\n : value;\n if (isMultipleSelect(fieldReference.ref)) {\n [...fieldReference.ref.options].forEach((optionRef) => (optionRef.selected = fieldValue.includes(optionRef.value)));\n }\n else if (fieldReference.refs) {\n if (isCheckBoxInput(fieldReference.ref)) {\n fieldReference.refs.length > 1\n ? fieldReference.refs.forEach((checkboxRef) => (!checkboxRef.defaultChecked || !checkboxRef.disabled) &&\n (checkboxRef.checked = Array.isArray(fieldValue)\n ? !!fieldValue.find((data) => data === checkboxRef.value)\n : fieldValue === checkboxRef.value))\n : fieldReference.refs[0] &&\n (fieldReference.refs[0].checked = !!fieldValue);\n }\n else {\n fieldReference.refs.forEach((radioRef) => (radioRef.checked = radioRef.value === fieldValue));\n }\n }\n else if (isFileInput(fieldReference.ref)) {\n fieldReference.ref.value = '';\n }\n else {\n fieldReference.ref.value = fieldValue;\n if (!fieldReference.ref.type) {\n _subjects.values.next({\n name,\n values: { ..._formValues },\n });\n }\n }\n }\n }\n (options.shouldDirty || options.shouldTouch) &&\n updateTouchAndDirty(name, fieldValue, options.shouldTouch, options.shouldDirty, true);\n options.shouldValidate && trigger(name);\n };\n const setValues = (name, value, options) => {\n for (const fieldKey in value) {\n const fieldValue = value[fieldKey];\n const fieldName = `${name}.${fieldKey}`;\n const field = get(_fields, fieldName);\n (_names.array.has(name) ||\n !isPrimitive(fieldValue) ||\n (field && !field._f)) &&\n !isDateObject(fieldValue)\n ? setValues(fieldName, fieldValue, options)\n : setFieldValue(fieldName, fieldValue, options);\n }\n };\n const setValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n const isFieldArray = _names.array.has(name);\n const cloneValue = cloneObject(value);\n set(_formValues, name, cloneValue);\n if (isFieldArray) {\n _subjects.array.next({\n name,\n values: { ..._formValues },\n });\n if ((_proxyFormState.isDirty || _proxyFormState.dirtyFields) &&\n options.shouldDirty) {\n _subjects.state.next({\n name,\n dirtyFields: getDirtyFields(_defaultValues, _formValues),\n isDirty: _getDirty(name, cloneValue),\n });\n }\n }\n else {\n field && !field._f && !isNullOrUndefined(cloneValue)\n ? setValues(name, cloneValue, options)\n : setFieldValue(name, cloneValue, options);\n }\n isWatched(name, _names) && _subjects.state.next({ ..._formState });\n _subjects.values.next({\n name,\n values: { ..._formValues },\n });\n !_state.mount && flushRootRender();\n };\n const onChange = async (event) => {\n const target = event.target;\n let name = target.name;\n let isFieldValueUpdated = true;\n const field = get(_fields, name);\n const getCurrentFieldValue = () => target.type ? getFieldValue(field._f) : getEventValue(event);\n const _updateIsFieldValueUpdated = (fieldValue) => {\n isFieldValueUpdated =\n Number.isNaN(fieldValue) ||\n fieldValue === get(_formValues, name, fieldValue);\n };\n if (field) {\n let error;\n let isValid;\n const fieldValue = getCurrentFieldValue();\n const isBlurEvent = event.type === EVENTS.BLUR || event.type === EVENTS.FOCUS_OUT;\n const shouldSkipValidation = (!hasValidation(field._f) &&\n !_options.resolver &&\n !get(_formState.errors, name) &&\n !field._f.deps) ||\n skipValidation(isBlurEvent, get(_formState.touchedFields, name), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit);\n const watched = isWatched(name, _names, isBlurEvent);\n set(_formValues, name, fieldValue);\n if (isBlurEvent) {\n field._f.onBlur && field._f.onBlur(event);\n delayErrorCallback && delayErrorCallback(0);\n }\n else if (field._f.onChange) {\n field._f.onChange(event);\n }\n const fieldState = updateTouchAndDirty(name, fieldValue, isBlurEvent, false);\n const shouldRender = !isEmptyObject(fieldState) || watched;\n !isBlurEvent &&\n _subjects.values.next({\n name,\n type: event.type,\n values: { ..._formValues },\n });\n if (shouldSkipValidation) {\n _proxyFormState.isValid && _updateValid();\n return (shouldRender &&\n _subjects.state.next({ name, ...(watched ? {} : fieldState) }));\n }\n !isBlurEvent && watched && _subjects.state.next({ ..._formState });\n _updateIsValidating(true);\n if (_options.resolver) {\n const { errors } = await _executeSchema([name]);\n _updateIsFieldValueUpdated(fieldValue);\n if (isFieldValueUpdated) {\n const previousErrorLookupResult = schemaErrorLookup(_formState.errors, _fields, name);\n const errorLookupResult = schemaErrorLookup(errors, _fields, previousErrorLookupResult.name || name);\n error = errorLookupResult.error;\n name = errorLookupResult.name;\n isValid = isEmptyObject(errors);\n }\n }\n else {\n error = (await validateField(field, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation))[name];\n _updateIsFieldValueUpdated(fieldValue);\n if (isFieldValueUpdated) {\n if (error) {\n isValid = false;\n }\n else if (_proxyFormState.isValid) {\n isValid = await executeBuiltInValidation(_fields, true);\n }\n }\n }\n if (isFieldValueUpdated) {\n field._f.deps &&\n trigger(field._f.deps);\n shouldRenderByError(name, isValid, error, fieldState);\n }\n }\n };\n const _focusInput = (ref, key) => {\n if (get(_formState.errors, key) && ref.focus) {\n ref.focus();\n return 1;\n }\n return;\n };\n const trigger = async (name, options = {}) => {\n let isValid;\n let validationResult;\n const fieldNames = convertToArrayPayload(name);\n _updateIsValidating(true);\n if (_options.resolver) {\n const errors = await executeSchemaAndUpdateState(isUndefined(name) ? name : fieldNames);\n isValid = isEmptyObject(errors);\n validationResult = name\n ? !fieldNames.some((name) => get(errors, name))\n : isValid;\n }\n else if (name) {\n validationResult = (await Promise.all(fieldNames.map(async (fieldName) => {\n const field = get(_fields, fieldName);\n return await executeBuiltInValidation(field && field._f ? { [fieldName]: field } : field);\n }))).every(Boolean);\n !(!validationResult && !_formState.isValid) && _updateValid();\n }\n else {\n validationResult = isValid = await executeBuiltInValidation(_fields);\n }\n _subjects.state.next({\n ...(!isString(name) ||\n (_proxyFormState.isValid && isValid !== _formState.isValid)\n ? {}\n : { name }),\n ...(_options.resolver || !name ? { isValid } : {}),\n errors: _formState.errors,\n isValidating: false,\n });\n options.shouldFocus &&\n !validationResult &&\n iterateFieldsByAction(_fields, _focusInput, name ? fieldNames : _names.mount);\n return validationResult;\n };\n const getValues = (fieldNames) => {\n const values = {\n ..._defaultValues,\n ...(_state.mount ? _formValues : {}),\n };\n return isUndefined(fieldNames)\n ? values\n : isString(fieldNames)\n ? get(values, fieldNames)\n : fieldNames.map((name) => get(values, name));\n };\n const getFieldState = (name, formState) => ({\n invalid: !!get((formState || _formState).errors, name),\n isDirty: !!get((formState || _formState).dirtyFields, name),\n isTouched: !!get((formState || _formState).touchedFields, name),\n error: get((formState || _formState).errors, name),\n });\n const clearErrors = (name) => {\n name &&\n convertToArrayPayload(name).forEach((inputName) => unset(_formState.errors, inputName));\n _subjects.state.next({\n errors: name ? _formState.errors : {},\n });\n };\n const setError = (name, error, options) => {\n const ref = (get(_fields, name, { _f: {} })._f || {}).ref;\n set(_formState.errors, name, {\n ...error,\n ref,\n });\n _subjects.state.next({\n name,\n errors: _formState.errors,\n isValid: false,\n });\n options && options.shouldFocus && ref && ref.focus && ref.focus();\n };\n const watch = (name, defaultValue) => isFunction(name)\n ? _subjects.values.subscribe({\n next: (payload) => name(_getWatch(undefined, defaultValue), payload),\n })\n : _getWatch(name, defaultValue, true);\n const unregister = (name, options = {}) => {\n for (const fieldName of name ? convertToArrayPayload(name) : _names.mount) {\n _names.mount.delete(fieldName);\n _names.array.delete(fieldName);\n if (!options.keepValue) {\n unset(_fields, fieldName);\n unset(_formValues, fieldName);\n }\n !options.keepError && unset(_formState.errors, fieldName);\n !options.keepDirty && unset(_formState.dirtyFields, fieldName);\n !options.keepTouched && unset(_formState.touchedFields, fieldName);\n !_options.shouldUnregister &&\n !options.keepDefaultValue &&\n unset(_defaultValues, fieldName);\n }\n _subjects.values.next({\n values: { ..._formValues },\n });\n _subjects.state.next({\n ..._formState,\n ...(!options.keepDirty ? {} : { isDirty: _getDirty() }),\n });\n !options.keepIsValid && _updateValid();\n };\n const _updateDisabledField = ({ disabled, name, field, fields, value, }) => {\n if (isBoolean(disabled)) {\n const inputValue = disabled\n ? undefined\n : isUndefined(value)\n ? getFieldValue(field ? field._f : get(fields, name)._f)\n : value;\n set(_formValues, name, inputValue);\n updateTouchAndDirty(name, inputValue, false, false, true);\n }\n };\n const register = (name, options = {}) => {\n let field = get(_fields, name);\n const disabledIsDefined = isBoolean(options.disabled);\n set(_fields, name, {\n ...(field || {}),\n _f: {\n ...(field && field._f ? field._f : { ref: { name } }),\n name,\n mount: true,\n ...options,\n },\n });\n _names.mount.add(name);\n if (field) {\n _updateDisabledField({\n field,\n disabled: options.disabled,\n name,\n });\n }\n else {\n updateValidAndValue(name, true, options.value);\n }\n return {\n ...(disabledIsDefined ? { disabled: options.disabled } : {}),\n ...(_options.progressive\n ? {\n required: !!options.required,\n min: getRuleValue(options.min),\n max: getRuleValue(options.max),\n minLength: getRuleValue(options.minLength),\n maxLength: getRuleValue(options.maxLength),\n pattern: getRuleValue(options.pattern),\n }\n : {}),\n name,\n onChange,\n onBlur: onChange,\n ref: (ref) => {\n if (ref) {\n register(name, options);\n field = get(_fields, name);\n const fieldRef = isUndefined(ref.value)\n ? ref.querySelectorAll\n ? ref.querySelectorAll('input,select,textarea')[0] || ref\n : ref\n : ref;\n const radioOrCheckbox = isRadioOrCheckbox(fieldRef);\n const refs = field._f.refs || [];\n if (radioOrCheckbox\n ? refs.find((option) => option === fieldRef)\n : fieldRef === field._f.ref) {\n return;\n }\n set(_fields, name, {\n _f: {\n ...field._f,\n ...(radioOrCheckbox\n ? {\n refs: [\n ...refs.filter(live),\n fieldRef,\n ...(Array.isArray(get(_defaultValues, name)) ? [{}] : []),\n ],\n ref: { type: fieldRef.type, name },\n }\n : { ref: fieldRef }),\n },\n });\n updateValidAndValue(name, false, undefined, fieldRef);\n }\n else {\n field = get(_fields, name, {});\n if (field._f) {\n field._f.mount = false;\n }\n (_options.shouldUnregister || options.shouldUnregister) &&\n !(isNameInFieldArray(_names.array, name) && _state.action) &&\n _names.unMount.add(name);\n }\n },\n };\n };\n const _focusError = () => _options.shouldFocusError &&\n iterateFieldsByAction(_fields, _focusInput, _names.mount);\n const _disableForm = (disabled) => {\n if (isBoolean(disabled)) {\n _subjects.state.next({ disabled });\n iterateFieldsByAction(_fields, (ref) => {\n ref.disabled = disabled;\n }, 0, false);\n }\n };\n const handleSubmit = (onValid, onInvalid) => async (e) => {\n if (e) {\n e.preventDefault && e.preventDefault();\n e.persist && e.persist();\n }\n let fieldValues = cloneObject(_formValues);\n _subjects.state.next({\n isSubmitting: true,\n });\n if (_options.resolver) {\n const { errors, values } = await _executeSchema();\n _formState.errors = errors;\n fieldValues = values;\n }\n else {\n await executeBuiltInValidation(_fields);\n }\n unset(_formState.errors, 'root');\n if (isEmptyObject(_formState.errors)) {\n _subjects.state.next({\n errors: {},\n });\n await onValid(fieldValues, e);\n }\n else {\n if (onInvalid) {\n await onInvalid({ ..._formState.errors }, e);\n }\n _focusError();\n setTimeout(_focusError);\n }\n _subjects.state.next({\n isSubmitted: true,\n isSubmitting: false,\n isSubmitSuccessful: isEmptyObject(_formState.errors),\n submitCount: _formState.submitCount + 1,\n errors: _formState.errors,\n });\n };\n const resetField = (name, options = {}) => {\n if (get(_fields, name)) {\n if (isUndefined(options.defaultValue)) {\n setValue(name, get(_defaultValues, name));\n }\n else {\n setValue(name, options.defaultValue);\n set(_defaultValues, name, options.defaultValue);\n }\n if (!options.keepTouched) {\n unset(_formState.touchedFields, name);\n }\n if (!options.keepDirty) {\n unset(_formState.dirtyFields, name);\n _formState.isDirty = options.defaultValue\n ? _getDirty(name, get(_defaultValues, name))\n : _getDirty();\n }\n if (!options.keepError) {\n unset(_formState.errors, name);\n _proxyFormState.isValid && _updateValid();\n }\n _subjects.state.next({ ..._formState });\n }\n };\n const _reset = (formValues, keepStateOptions = {}) => {\n const updatedValues = formValues ? cloneObject(formValues) : _defaultValues;\n const cloneUpdatedValues = cloneObject(updatedValues);\n const values = formValues && !isEmptyObject(formValues)\n ? cloneUpdatedValues\n : _defaultValues;\n if (!keepStateOptions.keepDefaultValues) {\n _defaultValues = updatedValues;\n }\n if (!keepStateOptions.keepValues) {\n if (keepStateOptions.keepDirtyValues || shouldCaptureDirtyFields) {\n for (const fieldName of _names.mount) {\n get(_formState.dirtyFields, fieldName)\n ? set(values, fieldName, get(_formValues, fieldName))\n : setValue(fieldName, get(values, fieldName));\n }\n }\n else {\n if (isWeb && isUndefined(formValues)) {\n for (const name of _names.mount) {\n const field = get(_fields, name);\n if (field && field._f) {\n const fieldReference = Array.isArray(field._f.refs)\n ? field._f.refs[0]\n : field._f.ref;\n if (isHTMLElement(fieldReference)) {\n const form = fieldReference.closest('form');\n if (form) {\n form.reset();\n break;\n }\n }\n }\n }\n }\n _fields = {};\n }\n _formValues = props.shouldUnregister\n ? keepStateOptions.keepDefaultValues\n ? cloneObject(_defaultValues)\n : {}\n : cloneObject(values);\n _subjects.array.next({\n values: { ...values },\n });\n _subjects.values.next({\n values: { ...values },\n });\n }\n _names = {\n mount: new Set(),\n unMount: new Set(),\n array: new Set(),\n watch: new Set(),\n watchAll: false,\n focus: '',\n };\n !_state.mount && flushRootRender();\n _state.mount = !_proxyFormState.isValid || !!keepStateOptions.keepIsValid;\n _state.watch = !!props.shouldUnregister;\n _subjects.state.next({\n submitCount: keepStateOptions.keepSubmitCount\n ? _formState.submitCount\n : 0,\n isDirty: keepStateOptions.keepDirty\n ? _formState.isDirty\n : !!(keepStateOptions.keepDefaultValues &&\n !deepEqual(formValues, _defaultValues)),\n isSubmitted: keepStateOptions.keepIsSubmitted\n ? _formState.isSubmitted\n : false,\n dirtyFields: keepStateOptions.keepDirtyValues\n ? _formState.dirtyFields\n : keepStateOptions.keepDefaultValues && formValues\n ? getDirtyFields(_defaultValues, formValues)\n : {},\n touchedFields: keepStateOptions.keepTouched\n ? _formState.touchedFields\n : {},\n errors: keepStateOptions.keepErrors ? _formState.errors : {},\n isSubmitSuccessful: keepStateOptions.keepIsSubmitSuccessful\n ? _formState.isSubmitSuccessful\n : false,\n isSubmitting: false,\n });\n };\n const reset = (formValues, keepStateOptions) => _reset(isFunction(formValues)\n ? formValues(_formValues)\n : formValues, keepStateOptions);\n const setFocus = (name, options = {}) => {\n const field = get(_fields, name);\n const fieldReference = field && field._f;\n if (fieldReference) {\n const fieldRef = fieldReference.refs\n ? fieldReference.refs[0]\n : fieldReference.ref;\n if (fieldRef.focus) {\n fieldRef.focus();\n options.shouldSelect && fieldRef.select();\n }\n }\n };\n const _updateFormState = (updatedFormState) => {\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n };\n const _resetDefaultValues = () => isFunction(_options.defaultValues) &&\n _options.defaultValues().then((values) => {\n reset(values, _options.resetOptions);\n _subjects.state.next({\n isLoading: false,\n });\n });\n return {\n control: {\n register,\n unregister,\n getFieldState,\n handleSubmit,\n setError,\n _executeSchema,\n _getWatch,\n _getDirty,\n _updateValid,\n _removeUnmounted,\n _updateFieldArray,\n _updateDisabledField,\n _getFieldArray,\n _reset,\n _resetDefaultValues,\n _updateFormState,\n _disableForm,\n _subjects,\n _proxyFormState,\n get _fields() {\n return _fields;\n },\n get _formValues() {\n return _formValues;\n },\n get _state() {\n return _state;\n },\n set _state(value) {\n _state = value;\n },\n get _defaultValues() {\n return _defaultValues;\n },\n get _names() {\n return _names;\n },\n set _names(value) {\n _names = value;\n },\n get _formState() {\n return _formState;\n },\n set _formState(value) {\n _formState = value;\n },\n get _options() {\n return _options;\n },\n set _options(value) {\n _options = {\n ..._options,\n ...value,\n };\n },\n },\n trigger,\n register,\n handleSubmit,\n watch,\n setValue,\n getValues,\n reset,\n resetField,\n clearErrors,\n unregister,\n setError,\n setFocus,\n getFieldState,\n };\n}\n\n/**\n * Custom hook to manage the entire form.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useform) • [Demo](https://codesandbox.io/s/react-hook-form-get-started-ts-5ksmm) • [Video](https://www.youtube.com/watch?v=RkXv4AXXC_4)\n *\n * @param props - form configuration and validation parameters.\n *\n * @returns methods - individual functions to manage the form state. {@link UseFormReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, watch, formState: { errors } } = useForm();\n * const onSubmit = data => console.log(data);\n *\n * console.log(watch(\"example\"));\n *\n * return (\n * <form onSubmit={handleSubmit(onSubmit)}>\n * <input defaultValue=\"test\" {...register(\"example\")} />\n * <input {...register(\"exampleRequired\", { required: true })} />\n * {errors.exampleRequired && <span>This field is required</span>}\n * <button>Submit</button>\n * </form>\n * );\n * }\n * ```\n */\nfunction useForm(props = {}) {\n const _formControl = React.useRef();\n const _values = React.useRef();\n const [formState, updateFormState] = React.useState({\n isDirty: false,\n isValidating: false,\n isLoading: isFunction(props.defaultValues),\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n submitCount: 0,\n dirtyFields: {},\n touchedFields: {},\n errors: {},\n disabled: false,\n defaultValues: isFunction(props.defaultValues)\n ? undefined\n : props.defaultValues,\n });\n if (!_formControl.current) {\n _formControl.current = {\n ...createFormControl(props, () => updateFormState((formState) => ({ ...formState }))),\n formState,\n };\n }\n const control = _formControl.current.control;\n control._options = props;\n useSubscribe({\n subject: control._subjects.state,\n next: (value) => {\n if (shouldRenderFormState(value, control._proxyFormState, control._updateFormState, true)) {\n updateFormState({ ...control._formState });\n }\n },\n });\n React.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);\n React.useEffect(() => {\n if (control._proxyFormState.isDirty) {\n const isDirty = control._getDirty();\n if (isDirty !== formState.isDirty) {\n control._subjects.state.next({\n isDirty,\n });\n }\n }\n }, [control, formState.isDirty]);\n React.useEffect(() => {\n if (props.values && !deepEqual(props.values, _values.current)) {\n control._reset(props.values, control._options.resetOptions);\n _values.current = props.values;\n }\n else {\n control._resetDefaultValues();\n }\n }, [props.values, control]);\n React.useEffect(() => {\n if (!control._state.mount) {\n control._updateValid();\n control._state.mount = true;\n }\n if (control._state.watch) {\n control._state.watch = false;\n control._subjects.state.next({ ...control._formState });\n }\n control._removeUnmounted();\n });\n _formControl.current.formState = getProxyFormState(formState, control);\n return _formControl.current;\n}\n\nexport { Controller, Form, FormProvider, appendErrors, get, set, useController, useFieldArray, useForm, useFormContext, useFormState, useWatch };\n","export var zeroRightClassName = 'right-scroll-bar-position';\nexport var fullWidthClassName = 'width-before-scroll-bar';\nexport var noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nexport var removedBarSizeVariable = '--removed-body-scroll-bar-size';\n","export var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nexport var getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n","import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\nexport var lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body[\").concat(lockAttribute, \"] {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body[\").concat(lockAttribute, \"] {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\nvar getCurrentUseCounter = function () {\n var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n return isFinite(counter) ? counter : 0;\n};\nexport var useLockAttribute = function () {\n React.useEffect(function () {\n document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n return function () {\n var newCounter = getCurrentUseCounter() - 1;\n if (newCounter <= 0) {\n document.body.removeAttribute(lockAttribute);\n }\n else {\n document.body.setAttribute(lockAttribute, newCounter.toString());\n }\n };\n }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (_a) {\n var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n useLockAttribute();\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n","import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\n","import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nimport { fullWidthClassName, zeroRightClassName } from 'react-remove-scroll-bar/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { effectCar } from './medium';\nvar nothing = function () {\n return;\n};\n/**\n * Removes scrollbar from the page and contain the scroll within the Lock\n */\nvar RemoveScroll = React.forwardRef(function (props, parentRef) {\n var ref = React.useRef(null);\n var _a = React.useState({\n onScrollCapture: nothing,\n onWheelCapture: nothing,\n onTouchMoveCapture: nothing,\n }), callbacks = _a[0], setCallbacks = _a[1];\n var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, rest = __rest(props, [\"forwardProps\", \"children\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\"]);\n var SideCar = sideCar;\n var containerRef = useMergeRefs([ref, parentRef]);\n var containerProps = __assign(__assign({}, rest), callbacks);\n return (React.createElement(React.Fragment, null,\n enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref })),\n forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));\n});\nRemoveScroll.defaultProps = {\n enabled: true,\n removeScrollBar: true,\n inert: false,\n};\nRemoveScroll.classNames = {\n fullWidth: fullWidthClassName,\n zeroRight: zeroRightClassName,\n};\nexport { RemoveScroll };\n","var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n","var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), s = _a[1], d = _a[2];\n if (s > d) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== document.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n target = target.parentNode;\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n if (isDeltaPositive && ((noOverscroll && availableScroll === 0) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && availableScrollTop === 0) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n","import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(function () { return styleSingleton(); })[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if ('touches' in event && event.touches.length === 2) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && e.target === event.target && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { gapMode: \"margin\" }) : null));\n}\n","import { exportSidecar } from 'use-sidecar';\nimport { RemoveScrollSideCar } from './SideEffect';\nimport { effectCar } from './medium';\nexport default exportSidecar(effectCar, RemoveScrollSideCar);\n","import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n","import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\n","import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nimport { fullWidthClassName, zeroRightClassName } from 'react-remove-scroll-bar/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { effectCar } from './medium';\nvar nothing = function () {\n return;\n};\n/**\n * Removes scrollbar from the page and contain the scroll within the Lock\n */\nvar RemoveScroll = React.forwardRef(function (props, parentRef) {\n var ref = React.useRef(null);\n var _a = React.useState({\n onScrollCapture: nothing,\n onWheelCapture: nothing,\n onTouchMoveCapture: nothing,\n }), callbacks = _a[0], setCallbacks = _a[1];\n var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest(props, [\"forwardProps\", \"children\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\", \"gapMode\"]);\n var SideCar = sideCar;\n var containerRef = useMergeRefs([ref, parentRef]);\n var containerProps = __assign(__assign({}, rest), callbacks);\n return (React.createElement(React.Fragment, null,\n enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),\n forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));\n});\nRemoveScroll.defaultProps = {\n enabled: true,\n removeScrollBar: true,\n inert: false,\n};\nRemoveScroll.classNames = {\n fullWidth: fullWidthClassName,\n zeroRight: zeroRightClassName,\n};\nexport { RemoveScroll };\n","var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n","var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), s = _a[1], d = _a[2];\n if (s > d) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n if (target instanceof ShadowRoot) {\n target = target.host;\n }\n else {\n target = target.parentNode;\n }\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n","import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(styleSingleton)[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if ('touches' in event && event.touches.length === 2) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null));\n}\nfunction getOutermostShadowParent(node) {\n var shadowParent = null;\n while (node !== null) {\n if (node instanceof ShadowRoot) {\n shadowParent = node.host;\n node = node.host;\n }\n node = node.parentNode;\n }\n return shadowParent;\n}\n","import { exportSidecar } from 'use-sidecar';\nimport { RemoveScrollSideCar } from './SideEffect';\nimport { effectCar } from './medium';\nexport default exportSidecar(effectCar, RemoveScrollSideCar);\n","import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n","/**\n * React Router DOM v6.26.1\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { UNSAFE_mapRouteProperties, UNSAFE_DataRouterContext, UNSAFE_DataRouterStateContext, Router, UNSAFE_useRoutesImpl, UNSAFE_NavigationContext, useHref, useResolvedPath, useLocation, useNavigate, createPath, UNSAFE_useRouteId, UNSAFE_RouteContext, useMatches, useNavigation, useBlocker } from 'react-router';\nexport { AbortedDeferredError, Await, MemoryRouter, Navigate, NavigationType, Outlet, Route, Router, Routes, UNSAFE_DataRouterContext, UNSAFE_DataRouterStateContext, UNSAFE_LocationContext, UNSAFE_NavigationContext, UNSAFE_RouteContext, UNSAFE_useRouteId, createMemoryRouter, createPath, createRoutesFromChildren, createRoutesFromElements, defer, generatePath, isRouteErrorResponse, json, matchPath, matchRoutes, parsePath, redirect, redirectDocument, renderMatches, replace, resolvePath, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes } from 'react-router';\nimport { stripBasename, UNSAFE_warning, createRouter, createBrowserHistory, createHashHistory, UNSAFE_ErrorResponseImpl, UNSAFE_invariant, joinPaths, IDLE_FETCHER, matchPath } from '@remix-run/router';\nexport { UNSAFE_ErrorResponseImpl } from '@remix-run/router';\n\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\n\nconst defaultMethod = \"get\";\nconst defaultEncType = \"application/x-www-form-urlencoded\";\nfunction isHtmlElement(object) {\n return object != null && typeof object.tagName === \"string\";\n}\nfunction isButtonElement(object) {\n return isHtmlElement(object) && object.tagName.toLowerCase() === \"button\";\n}\nfunction isFormElement(object) {\n return isHtmlElement(object) && object.tagName.toLowerCase() === \"form\";\n}\nfunction isInputElement(object) {\n return isHtmlElement(object) && object.tagName.toLowerCase() === \"input\";\n}\nfunction isModifiedEvent(event) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\nfunction shouldProcessLinkClick(event, target) {\n return event.button === 0 && (\n // Ignore everything but left clicks\n !target || target === \"_self\") &&\n // Let browser handle \"target=_blank\" etc.\n !isModifiedEvent(event) // Ignore clicks with modifier keys\n ;\n}\n/**\n * Creates a URLSearchParams object using the given initializer.\n *\n * This is identical to `new URLSearchParams(init)` except it also\n * supports arrays as values in the object form of the initializer\n * instead of just strings. This is convenient when you need multiple\n * values for a given key, but don't want to use an array initializer.\n *\n * For example, instead of:\n *\n * let searchParams = new URLSearchParams([\n * ['sort', 'name'],\n * ['sort', 'price']\n * ]);\n *\n * you can do:\n *\n * let searchParams = createSearchParams({\n * sort: ['name', 'price']\n * });\n */\nfunction createSearchParams(init) {\n if (init === void 0) {\n init = \"\";\n }\n return new URLSearchParams(typeof init === \"string\" || Array.isArray(init) || init instanceof URLSearchParams ? init : Object.keys(init).reduce((memo, key) => {\n let value = init[key];\n return memo.concat(Array.isArray(value) ? value.map(v => [key, v]) : [[key, value]]);\n }, []));\n}\nfunction getSearchParamsForLocation(locationSearch, defaultSearchParams) {\n let searchParams = createSearchParams(locationSearch);\n if (defaultSearchParams) {\n // Use `defaultSearchParams.forEach(...)` here instead of iterating of\n // `defaultSearchParams.keys()` to work-around a bug in Firefox related to\n // web extensions. Relevant Bugzilla tickets:\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1414602\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1023984\n defaultSearchParams.forEach((_, key) => {\n if (!searchParams.has(key)) {\n defaultSearchParams.getAll(key).forEach(value => {\n searchParams.append(key, value);\n });\n }\n });\n }\n return searchParams;\n}\n// One-time check for submitter support\nlet _formDataSupportsSubmitter = null;\nfunction isFormDataSubmitterSupported() {\n if (_formDataSupportsSubmitter === null) {\n try {\n new FormData(document.createElement(\"form\"),\n // @ts-expect-error if FormData supports the submitter parameter, this will throw\n 0);\n _formDataSupportsSubmitter = false;\n } catch (e) {\n _formDataSupportsSubmitter = true;\n }\n }\n return _formDataSupportsSubmitter;\n}\nconst supportedFormEncTypes = new Set([\"application/x-www-form-urlencoded\", \"multipart/form-data\", \"text/plain\"]);\nfunction getFormEncType(encType) {\n if (encType != null && !supportedFormEncTypes.has(encType)) {\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, \"\\\"\" + encType + \"\\\" is not a valid `encType` for `<Form>`/`<fetcher.Form>` \" + (\"and will default to \\\"\" + defaultEncType + \"\\\"\")) : void 0;\n return null;\n }\n return encType;\n}\nfunction getFormSubmissionInfo(target, basename) {\n let method;\n let action;\n let encType;\n let formData;\n let body;\n if (isFormElement(target)) {\n // When grabbing the action from the element, it will have had the basename\n // prefixed to ensure non-JS scenarios work, so strip it since we'll\n // re-prefix in the router\n let attr = target.getAttribute(\"action\");\n action = attr ? stripBasename(attr, basename) : null;\n method = target.getAttribute(\"method\") || defaultMethod;\n encType = getFormEncType(target.getAttribute(\"enctype\")) || defaultEncType;\n formData = new FormData(target);\n } else if (isButtonElement(target) || isInputElement(target) && (target.type === \"submit\" || target.type === \"image\")) {\n let form = target.form;\n if (form == null) {\n throw new Error(\"Cannot submit a <button> or <input type=\\\"submit\\\"> without a <form>\");\n }\n // <button>/<input type=\"submit\"> may override attributes of <form>\n // When grabbing the action from the element, it will have had the basename\n // prefixed to ensure non-JS scenarios work, so strip it since we'll\n // re-prefix in the router\n let attr = target.getAttribute(\"formaction\") || form.getAttribute(\"action\");\n action = attr ? stripBasename(attr, basename) : null;\n method = target.getAttribute(\"formmethod\") || form.getAttribute(\"method\") || defaultMethod;\n encType = getFormEncType(target.getAttribute(\"formenctype\")) || getFormEncType(form.getAttribute(\"enctype\")) || defaultEncType;\n // Build a FormData object populated from a form and submitter\n formData = new FormData(form, target);\n // If this browser doesn't support the `FormData(el, submitter)` format,\n // then tack on the submitter value at the end. This is a lightweight\n // solution that is not 100% spec compliant. For complete support in older\n // browsers, consider using the `formdata-submitter-polyfill` package\n if (!isFormDataSubmitterSupported()) {\n let {\n name,\n type,\n value\n } = target;\n if (type === \"image\") {\n let prefix = name ? name + \".\" : \"\";\n formData.append(prefix + \"x\", \"0\");\n formData.append(prefix + \"y\", \"0\");\n } else if (name) {\n formData.append(name, value);\n }\n }\n } else if (isHtmlElement(target)) {\n throw new Error(\"Cannot submit element that is not <form>, <button>, or \" + \"<input type=\\\"submit|image\\\">\");\n } else {\n method = defaultMethod;\n action = null;\n encType = defaultEncType;\n body = target;\n }\n // Send body for <Form encType=\"text/plain\" so we encode it into text\n if (formData && encType === \"text/plain\") {\n body = formData;\n formData = undefined;\n }\n return {\n action,\n method: method.toLowerCase(),\n encType,\n formData,\n body\n };\n}\n\nconst _excluded = [\"onClick\", \"relative\", \"reloadDocument\", \"replace\", \"state\", \"target\", \"to\", \"preventScrollReset\", \"unstable_viewTransition\"],\n _excluded2 = [\"aria-current\", \"caseSensitive\", \"className\", \"end\", \"style\", \"to\", \"unstable_viewTransition\", \"children\"],\n _excluded3 = [\"fetcherKey\", \"navigate\", \"reloadDocument\", \"replace\", \"state\", \"method\", \"action\", \"onSubmit\", \"relative\", \"preventScrollReset\", \"unstable_viewTransition\"];\n// HEY YOU! DON'T TOUCH THIS VARIABLE!\n//\n// It is replaced with the proper version at build time via a babel plugin in\n// the rollup config.\n//\n// Export a global property onto the window for React Router detection by the\n// Core Web Vitals Technology Report. This way they can configure the `wappalyzer`\n// to detect and properly classify live websites as being built with React Router:\n// https://github.com/HTTPArchive/wappalyzer/blob/main/src/technologies/r.json\nconst REACT_ROUTER_VERSION = \"6\";\ntry {\n window.__reactRouterVersion = REACT_ROUTER_VERSION;\n} catch (e) {\n // no-op\n}\nfunction createBrowserRouter(routes, opts) {\n return createRouter({\n basename: opts == null ? void 0 : opts.basename,\n future: _extends({}, opts == null ? void 0 : opts.future, {\n v7_prependBasename: true\n }),\n history: createBrowserHistory({\n window: opts == null ? void 0 : opts.window\n }),\n hydrationData: (opts == null ? void 0 : opts.hydrationData) || parseHydrationData(),\n routes,\n mapRouteProperties: UNSAFE_mapRouteProperties,\n unstable_dataStrategy: opts == null ? void 0 : opts.unstable_dataStrategy,\n unstable_patchRoutesOnNavigation: opts == null ? void 0 : opts.unstable_patchRoutesOnNavigation,\n window: opts == null ? void 0 : opts.window\n }).initialize();\n}\nfunction createHashRouter(routes, opts) {\n return createRouter({\n basename: opts == null ? void 0 : opts.basename,\n future: _extends({}, opts == null ? void 0 : opts.future, {\n v7_prependBasename: true\n }),\n history: createHashHistory({\n window: opts == null ? void 0 : opts.window\n }),\n hydrationData: (opts == null ? void 0 : opts.hydrationData) || parseHydrationData(),\n routes,\n mapRouteProperties: UNSAFE_mapRouteProperties,\n unstable_dataStrategy: opts == null ? void 0 : opts.unstable_dataStrategy,\n unstable_patchRoutesOnNavigation: opts == null ? void 0 : opts.unstable_patchRoutesOnNavigation,\n window: opts == null ? void 0 : opts.window\n }).initialize();\n}\nfunction parseHydrationData() {\n var _window;\n let state = (_window = window) == null ? void 0 : _window.__staticRouterHydrationData;\n if (state && state.errors) {\n state = _extends({}, state, {\n errors: deserializeErrors(state.errors)\n });\n }\n return state;\n}\nfunction deserializeErrors(errors) {\n if (!errors) return null;\n let entries = Object.entries(errors);\n let serialized = {};\n for (let [key, val] of entries) {\n // Hey you! If you change this, please change the corresponding logic in\n // serializeErrors in react-router-dom/server.tsx :)\n if (val && val.__type === \"RouteErrorResponse\") {\n serialized[key] = new UNSAFE_ErrorResponseImpl(val.status, val.statusText, val.data, val.internal === true);\n } else if (val && val.__type === \"Error\") {\n // Attempt to reconstruct the right type of Error (i.e., ReferenceError)\n if (val.__subType) {\n let ErrorConstructor = window[val.__subType];\n if (typeof ErrorConstructor === \"function\") {\n try {\n // @ts-expect-error\n let error = new ErrorConstructor(val.message);\n // Wipe away the client-side stack trace. Nothing to fill it in with\n // because we don't serialize SSR stack traces for security reasons\n error.stack = \"\";\n serialized[key] = error;\n } catch (e) {\n // no-op - fall through and create a normal Error\n }\n }\n }\n if (serialized[key] == null) {\n let error = new Error(val.message);\n // Wipe away the client-side stack trace. Nothing to fill it in with\n // because we don't serialize SSR stack traces for security reasons\n error.stack = \"\";\n serialized[key] = error;\n }\n } else {\n serialized[key] = val;\n }\n }\n return serialized;\n}\nconst ViewTransitionContext = /*#__PURE__*/React.createContext({\n isTransitioning: false\n});\nif (process.env.NODE_ENV !== \"production\") {\n ViewTransitionContext.displayName = \"ViewTransition\";\n}\nconst FetchersContext = /*#__PURE__*/React.createContext(new Map());\nif (process.env.NODE_ENV !== \"production\") {\n FetchersContext.displayName = \"Fetchers\";\n}\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region Components\n////////////////////////////////////////////////////////////////////////////////\n/**\n Webpack + React 17 fails to compile on any of the following because webpack\n complains that `startTransition` doesn't exist in `React`:\n * import { startTransition } from \"react\"\n * import * as React from from \"react\";\n \"startTransition\" in React ? React.startTransition(() => setState()) : setState()\n * import * as React from from \"react\";\n \"startTransition\" in React ? React[\"startTransition\"](() => setState()) : setState()\n\n Moving it to a constant such as the following solves the Webpack/React 17 issue:\n * import * as React from from \"react\";\n const START_TRANSITION = \"startTransition\";\n START_TRANSITION in React ? React[START_TRANSITION](() => setState()) : setState()\n\n However, that introduces webpack/terser minification issues in production builds\n in React 18 where minification/obfuscation ends up removing the call of\n React.startTransition entirely from the first half of the ternary. Grabbing\n this exported reference once up front resolves that issue.\n\n See https://github.com/remix-run/react-router/issues/10579\n*/\nconst START_TRANSITION = \"startTransition\";\nconst startTransitionImpl = React[START_TRANSITION];\nconst FLUSH_SYNC = \"flushSync\";\nconst flushSyncImpl = ReactDOM[FLUSH_SYNC];\nconst USE_ID = \"useId\";\nconst useIdImpl = React[USE_ID];\nfunction startTransitionSafe(cb) {\n if (startTransitionImpl) {\n startTransitionImpl(cb);\n } else {\n cb();\n }\n}\nfunction flushSyncSafe(cb) {\n if (flushSyncImpl) {\n flushSyncImpl(cb);\n } else {\n cb();\n }\n}\nclass Deferred {\n constructor() {\n this.status = \"pending\";\n this.promise = new Promise((resolve, reject) => {\n this.resolve = value => {\n if (this.status === \"pending\") {\n this.status = \"resolved\";\n resolve(value);\n }\n };\n this.reject = reason => {\n if (this.status === \"pending\") {\n this.status = \"rejected\";\n reject(reason);\n }\n };\n });\n }\n}\n/**\n * Given a Remix Router instance, render the appropriate UI\n */\nfunction RouterProvider(_ref) {\n let {\n fallbackElement,\n router,\n future\n } = _ref;\n let [state, setStateImpl] = React.useState(router.state);\n let [pendingState, setPendingState] = React.useState();\n let [vtContext, setVtContext] = React.useState({\n isTransitioning: false\n });\n let [renderDfd, setRenderDfd] = React.useState();\n let [transition, setTransition] = React.useState();\n let [interruption, setInterruption] = React.useState();\n let fetcherData = React.useRef(new Map());\n let {\n v7_startTransition\n } = future || {};\n let optInStartTransition = React.useCallback(cb => {\n if (v7_startTransition) {\n startTransitionSafe(cb);\n } else {\n cb();\n }\n }, [v7_startTransition]);\n let setState = React.useCallback((newState, _ref2) => {\n let {\n deletedFetchers,\n unstable_flushSync: flushSync,\n unstable_viewTransitionOpts: viewTransitionOpts\n } = _ref2;\n deletedFetchers.forEach(key => fetcherData.current.delete(key));\n newState.fetchers.forEach((fetcher, key) => {\n if (fetcher.data !== undefined) {\n fetcherData.current.set(key, fetcher.data);\n }\n });\n let isViewTransitionUnavailable = router.window == null || router.window.document == null || typeof router.window.document.startViewTransition !== \"function\";\n // If this isn't a view transition or it's not available in this browser,\n // just update and be done with it\n if (!viewTransitionOpts || isViewTransitionUnavailable) {\n if (flushSync) {\n flushSyncSafe(() => setStateImpl(newState));\n } else {\n optInStartTransition(() => setStateImpl(newState));\n }\n return;\n }\n // flushSync + startViewTransition\n if (flushSync) {\n // Flush through the context to mark DOM elements as transition=ing\n flushSyncSafe(() => {\n // Cancel any pending transitions\n if (transition) {\n renderDfd && renderDfd.resolve();\n transition.skipTransition();\n }\n setVtContext({\n isTransitioning: true,\n flushSync: true,\n currentLocation: viewTransitionOpts.currentLocation,\n nextLocation: viewTransitionOpts.nextLocation\n });\n });\n // Update the DOM\n let t = router.window.document.startViewTransition(() => {\n flushSyncSafe(() => setStateImpl(newState));\n });\n // Clean up after the animation completes\n t.finished.finally(() => {\n flushSyncSafe(() => {\n setRenderDfd(undefined);\n setTransition(undefined);\n setPendingState(undefined);\n setVtContext({\n isTransitioning: false\n });\n });\n });\n flushSyncSafe(() => setTransition(t));\n return;\n }\n // startTransition + startViewTransition\n if (transition) {\n // Interrupting an in-progress transition, cancel and let everything flush\n // out, and then kick off a new transition from the interruption state\n renderDfd && renderDfd.resolve();\n transition.skipTransition();\n setInterruption({\n state: newState,\n currentLocation: viewTransitionOpts.currentLocation,\n nextLocation: viewTransitionOpts.nextLocation\n });\n } else {\n // Completed navigation update with opted-in view transitions, let 'er rip\n setPendingState(newState);\n setVtContext({\n isTransitioning: true,\n flushSync: false,\n currentLocation: viewTransitionOpts.currentLocation,\n nextLocation: viewTransitionOpts.nextLocation\n });\n }\n }, [router.window, transition, renderDfd, fetcherData, optInStartTransition]);\n // Need to use a layout effect here so we are subscribed early enough to\n // pick up on any render-driven redirects/navigations (useEffect/<Navigate>)\n React.useLayoutEffect(() => router.subscribe(setState), [router, setState]);\n // When we start a view transition, create a Deferred we can use for the\n // eventual \"completed\" render\n React.useEffect(() => {\n if (vtContext.isTransitioning && !vtContext.flushSync) {\n setRenderDfd(new Deferred());\n }\n }, [vtContext]);\n // Once the deferred is created, kick off startViewTransition() to update the\n // DOM and then wait on the Deferred to resolve (indicating the DOM update has\n // happened)\n React.useEffect(() => {\n if (renderDfd && pendingState && router.window) {\n let newState = pendingState;\n let renderPromise = renderDfd.promise;\n let transition = router.window.document.startViewTransition(async () => {\n optInStartTransition(() => setStateImpl(newState));\n await renderPromise;\n });\n transition.finished.finally(() => {\n setRenderDfd(undefined);\n setTransition(undefined);\n setPendingState(undefined);\n setVtContext({\n isTransitioning: false\n });\n });\n setTransition(transition);\n }\n }, [optInStartTransition, pendingState, renderDfd, router.window]);\n // When the new location finally renders and is committed to the DOM, this\n // effect will run to resolve the transition\n React.useEffect(() => {\n if (renderDfd && pendingState && state.location.key === pendingState.location.key) {\n renderDfd.resolve();\n }\n }, [renderDfd, transition, state.location, pendingState]);\n // If we get interrupted with a new navigation during a transition, we skip\n // the active transition, let it cleanup, then kick it off again here\n React.useEffect(() => {\n if (!vtContext.isTransitioning && interruption) {\n setPendingState(interruption.state);\n setVtContext({\n isTransitioning: true,\n flushSync: false,\n currentLocation: interruption.currentLocation,\n nextLocation: interruption.nextLocation\n });\n setInterruption(undefined);\n }\n }, [vtContext.isTransitioning, interruption]);\n React.useEffect(() => {\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(fallbackElement == null || !router.future.v7_partialHydration, \"`<RouterProvider fallbackElement>` is deprecated when using \" + \"`v7_partialHydration`, use a `HydrateFallback` component instead\") : void 0;\n // Only log this once on initial mount\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n let navigator = React.useMemo(() => {\n return {\n createHref: router.createHref,\n encodeLocation: router.encodeLocation,\n go: n => router.navigate(n),\n push: (to, state, opts) => router.navigate(to, {\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n }),\n replace: (to, state, opts) => router.navigate(to, {\n replace: true,\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n })\n };\n }, [router]);\n let basename = router.basename || \"/\";\n let dataRouterContext = React.useMemo(() => ({\n router,\n navigator,\n static: false,\n basename\n }), [router, navigator, basename]);\n let routerFuture = React.useMemo(() => ({\n v7_relativeSplatPath: router.future.v7_relativeSplatPath\n }), [router.future.v7_relativeSplatPath]);\n // The fragment and {null} here are important! We need them to keep React 18's\n // useId happy when we are server-rendering since we may have a <script> here\n // containing the hydrated server-side staticContext (from StaticRouterProvider).\n // useId relies on the component tree structure to generate deterministic id's\n // so we need to ensure it remains the same on the client even though\n // we don't need the <script> tag\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(UNSAFE_DataRouterContext.Provider, {\n value: dataRouterContext\n }, /*#__PURE__*/React.createElement(UNSAFE_DataRouterStateContext.Provider, {\n value: state\n }, /*#__PURE__*/React.createElement(FetchersContext.Provider, {\n value: fetcherData.current\n }, /*#__PURE__*/React.createElement(ViewTransitionContext.Provider, {\n value: vtContext\n }, /*#__PURE__*/React.createElement(Router, {\n basename: basename,\n location: state.location,\n navigationType: state.historyAction,\n navigator: navigator,\n future: routerFuture\n }, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/React.createElement(MemoizedDataRoutes, {\n routes: router.routes,\n future: router.future,\n state: state\n }) : fallbackElement))))), null);\n}\n// Memoize to avoid re-renders when updating `ViewTransitionContext`\nconst MemoizedDataRoutes = /*#__PURE__*/React.memo(DataRoutes);\nfunction DataRoutes(_ref3) {\n let {\n routes,\n future,\n state\n } = _ref3;\n return UNSAFE_useRoutesImpl(routes, undefined, state, future);\n}\n/**\n * A `<Router>` for use in web browsers. Provides the cleanest URLs.\n */\nfunction BrowserRouter(_ref4) {\n let {\n basename,\n children,\n future,\n window\n } = _ref4;\n let historyRef = React.useRef();\n if (historyRef.current == null) {\n historyRef.current = createBrowserHistory({\n window,\n v5Compat: true\n });\n }\n let history = historyRef.current;\n let [state, setStateImpl] = React.useState({\n action: history.action,\n location: history.location\n });\n let {\n v7_startTransition\n } = future || {};\n let setState = React.useCallback(newState => {\n v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);\n }, [setStateImpl, v7_startTransition]);\n React.useLayoutEffect(() => history.listen(setState), [history, setState]);\n return /*#__PURE__*/React.createElement(Router, {\n basename: basename,\n children: children,\n location: state.location,\n navigationType: state.action,\n navigator: history,\n future: future\n });\n}\n/**\n * A `<Router>` for use in web browsers. Stores the location in the hash\n * portion of the URL so it is not sent to the server.\n */\nfunction HashRouter(_ref5) {\n let {\n basename,\n children,\n future,\n window\n } = _ref5;\n let historyRef = React.useRef();\n if (historyRef.current == null) {\n historyRef.current = createHashHistory({\n window,\n v5Compat: true\n });\n }\n let history = historyRef.current;\n let [state, setStateImpl] = React.useState({\n action: history.action,\n location: history.location\n });\n let {\n v7_startTransition\n } = future || {};\n let setState = React.useCallback(newState => {\n v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);\n }, [setStateImpl, v7_startTransition]);\n React.useLayoutEffect(() => history.listen(setState), [history, setState]);\n return /*#__PURE__*/React.createElement(Router, {\n basename: basename,\n children: children,\n location: state.location,\n navigationType: state.action,\n navigator: history,\n future: future\n });\n}\n/**\n * A `<Router>` that accepts a pre-instantiated history object. It's important\n * to note that using your own history object is highly discouraged and may add\n * two versions of the history library to your bundles unless you use the same\n * version of the history library that React Router uses internally.\n */\nfunction HistoryRouter(_ref6) {\n let {\n basename,\n children,\n future,\n history\n } = _ref6;\n let [state, setStateImpl] = React.useState({\n action: history.action,\n location: history.location\n });\n let {\n v7_startTransition\n } = future || {};\n let setState = React.useCallback(newState => {\n v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);\n }, [setStateImpl, v7_startTransition]);\n React.useLayoutEffect(() => history.listen(setState), [history, setState]);\n return /*#__PURE__*/React.createElement(Router, {\n basename: basename,\n children: children,\n location: state.location,\n navigationType: state.action,\n navigator: history,\n future: future\n });\n}\nif (process.env.NODE_ENV !== \"production\") {\n HistoryRouter.displayName = \"unstable_HistoryRouter\";\n}\nconst isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\" && typeof window.document.createElement !== \"undefined\";\nconst ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i;\n/**\n * The public API for rendering a history-aware `<a>`.\n */\nconst Link = /*#__PURE__*/React.forwardRef(function LinkWithRef(_ref7, ref) {\n let {\n onClick,\n relative,\n reloadDocument,\n replace,\n state,\n target,\n to,\n preventScrollReset,\n unstable_viewTransition\n } = _ref7,\n rest = _objectWithoutPropertiesLoose(_ref7, _excluded);\n let {\n basename\n } = React.useContext(UNSAFE_NavigationContext);\n // Rendered into <a href> for absolute URLs\n let absoluteHref;\n let isExternal = false;\n if (typeof to === \"string\" && ABSOLUTE_URL_REGEX.test(to)) {\n // Render the absolute href server- and client-side\n absoluteHref = to;\n // Only check for external origins client-side\n if (isBrowser) {\n try {\n let currentUrl = new URL(window.location.href);\n let targetUrl = to.startsWith(\"//\") ? new URL(currentUrl.protocol + to) : new URL(to);\n let path = stripBasename(targetUrl.pathname, basename);\n if (targetUrl.origin === currentUrl.origin && path != null) {\n // Strip the protocol/origin/basename for same-origin absolute URLs\n to = path + targetUrl.search + targetUrl.hash;\n } else {\n isExternal = true;\n }\n } catch (e) {\n // We can't do external URL detection without a valid URL\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, \"<Link to=\\\"\" + to + \"\\\"> contains an invalid URL which will probably break \" + \"when clicked - please update to a valid URL path.\") : void 0;\n }\n }\n }\n // Rendered into <a href> for relative URLs\n let href = useHref(to, {\n relative\n });\n let internalOnClick = useLinkClickHandler(to, {\n replace,\n state,\n target,\n preventScrollReset,\n relative,\n unstable_viewTransition\n });\n function handleClick(event) {\n if (onClick) onClick(event);\n if (!event.defaultPrevented) {\n internalOnClick(event);\n }\n }\n return (\n /*#__PURE__*/\n // eslint-disable-next-line jsx-a11y/anchor-has-content\n React.createElement(\"a\", _extends({}, rest, {\n href: absoluteHref || href,\n onClick: isExternal || reloadDocument ? onClick : handleClick,\n ref: ref,\n target: target\n }))\n );\n});\nif (process.env.NODE_ENV !== \"production\") {\n Link.displayName = \"Link\";\n}\n/**\n * A `<Link>` wrapper that knows if it's \"active\" or not.\n */\nconst NavLink = /*#__PURE__*/React.forwardRef(function NavLinkWithRef(_ref8, ref) {\n let {\n \"aria-current\": ariaCurrentProp = \"page\",\n caseSensitive = false,\n className: classNameProp = \"\",\n end = false,\n style: styleProp,\n to,\n unstable_viewTransition,\n children\n } = _ref8,\n rest = _objectWithoutPropertiesLoose(_ref8, _excluded2);\n let path = useResolvedPath(to, {\n relative: rest.relative\n });\n let location = useLocation();\n let routerState = React.useContext(UNSAFE_DataRouterStateContext);\n let {\n navigator,\n basename\n } = React.useContext(UNSAFE_NavigationContext);\n let isTransitioning = routerState != null &&\n // Conditional usage is OK here because the usage of a data router is static\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useViewTransitionState(path) && unstable_viewTransition === true;\n let toPathname = navigator.encodeLocation ? navigator.encodeLocation(path).pathname : path.pathname;\n let locationPathname = location.pathname;\n let nextLocationPathname = routerState && routerState.navigation && routerState.navigation.location ? routerState.navigation.location.pathname : null;\n if (!caseSensitive) {\n locationPathname = locationPathname.toLowerCase();\n nextLocationPathname = nextLocationPathname ? nextLocationPathname.toLowerCase() : null;\n toPathname = toPathname.toLowerCase();\n }\n if (nextLocationPathname && basename) {\n nextLocationPathname = stripBasename(nextLocationPathname, basename) || nextLocationPathname;\n }\n // If the `to` has a trailing slash, look at that exact spot. Otherwise,\n // we're looking for a slash _after_ what's in `to`. For example:\n //\n // <NavLink to=\"/users\"> and <NavLink to=\"/users/\">\n // both want to look for a / at index 6 to match URL `/users/matt`\n const endSlashPosition = toPathname !== \"/\" && toPathname.endsWith(\"/\") ? toPathname.length - 1 : toPathname.length;\n let isActive = locationPathname === toPathname || !end && locationPathname.startsWith(toPathname) && locationPathname.charAt(endSlashPosition) === \"/\";\n let isPending = nextLocationPathname != null && (nextLocationPathname === toPathname || !end && nextLocationPathname.startsWith(toPathname) && nextLocationPathname.charAt(toPathname.length) === \"/\");\n let renderProps = {\n isActive,\n isPending,\n isTransitioning\n };\n let ariaCurrent = isActive ? ariaCurrentProp : undefined;\n let className;\n if (typeof classNameProp === \"function\") {\n className = classNameProp(renderProps);\n } else {\n // If the className prop is not a function, we use a default `active`\n // class for <NavLink />s that are active. In v5 `active` was the default\n // value for `activeClassName`, but we are removing that API and can still\n // use the old default behavior for a cleaner upgrade path and keep the\n // simple styling rules working as they currently do.\n className = [classNameProp, isActive ? \"active\" : null, isPending ? \"pending\" : null, isTransitioning ? \"transitioning\" : null].filter(Boolean).join(\" \");\n }\n let style = typeof styleProp === \"function\" ? styleProp(renderProps) : styleProp;\n return /*#__PURE__*/React.createElement(Link, _extends({}, rest, {\n \"aria-current\": ariaCurrent,\n className: className,\n ref: ref,\n style: style,\n to: to,\n unstable_viewTransition: unstable_viewTransition\n }), typeof children === \"function\" ? children(renderProps) : children);\n});\nif (process.env.NODE_ENV !== \"production\") {\n NavLink.displayName = \"NavLink\";\n}\n/**\n * A `@remix-run/router`-aware `<form>`. It behaves like a normal form except\n * that the interaction with the server is with `fetch` instead of new document\n * requests, allowing components to add nicer UX to the page as the form is\n * submitted and returns with data.\n */\nconst Form = /*#__PURE__*/React.forwardRef((_ref9, forwardedRef) => {\n let {\n fetcherKey,\n navigate,\n reloadDocument,\n replace,\n state,\n method = defaultMethod,\n action,\n onSubmit,\n relative,\n preventScrollReset,\n unstable_viewTransition\n } = _ref9,\n props = _objectWithoutPropertiesLoose(_ref9, _excluded3);\n let submit = useSubmit();\n let formAction = useFormAction(action, {\n relative\n });\n let formMethod = method.toLowerCase() === \"get\" ? \"get\" : \"post\";\n let submitHandler = event => {\n onSubmit && onSubmit(event);\n if (event.defaultPrevented) return;\n event.preventDefault();\n let submitter = event.nativeEvent.submitter;\n let submitMethod = (submitter == null ? void 0 : submitter.getAttribute(\"formmethod\")) || method;\n submit(submitter || event.currentTarget, {\n fetcherKey,\n method: submitMethod,\n navigate,\n replace,\n state,\n relative,\n preventScrollReset,\n unstable_viewTransition\n });\n };\n return /*#__PURE__*/React.createElement(\"form\", _extends({\n ref: forwardedRef,\n method: formMethod,\n action: formAction,\n onSubmit: reloadDocument ? onSubmit : submitHandler\n }, props));\n});\nif (process.env.NODE_ENV !== \"production\") {\n Form.displayName = \"Form\";\n}\n/**\n * This component will emulate the browser's scroll restoration on location\n * changes.\n */\nfunction ScrollRestoration(_ref10) {\n let {\n getKey,\n storageKey\n } = _ref10;\n useScrollRestoration({\n getKey,\n storageKey\n });\n return null;\n}\nif (process.env.NODE_ENV !== \"production\") {\n ScrollRestoration.displayName = \"ScrollRestoration\";\n}\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region Hooks\n////////////////////////////////////////////////////////////////////////////////\nvar DataRouterHook;\n(function (DataRouterHook) {\n DataRouterHook[\"UseScrollRestoration\"] = \"useScrollRestoration\";\n DataRouterHook[\"UseSubmit\"] = \"useSubmit\";\n DataRouterHook[\"UseSubmitFetcher\"] = \"useSubmitFetcher\";\n DataRouterHook[\"UseFetcher\"] = \"useFetcher\";\n DataRouterHook[\"useViewTransitionState\"] = \"useViewTransitionState\";\n})(DataRouterHook || (DataRouterHook = {}));\nvar DataRouterStateHook;\n(function (DataRouterStateHook) {\n DataRouterStateHook[\"UseFetcher\"] = \"useFetcher\";\n DataRouterStateHook[\"UseFetchers\"] = \"useFetchers\";\n DataRouterStateHook[\"UseScrollRestoration\"] = \"useScrollRestoration\";\n})(DataRouterStateHook || (DataRouterStateHook = {}));\n// Internal hooks\nfunction getDataRouterConsoleError(hookName) {\n return hookName + \" must be used within a data router. See https://reactrouter.com/routers/picking-a-router.\";\n}\nfunction useDataRouterContext(hookName) {\n let ctx = React.useContext(UNSAFE_DataRouterContext);\n !ctx ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n return ctx;\n}\nfunction useDataRouterState(hookName) {\n let state = React.useContext(UNSAFE_DataRouterStateContext);\n !state ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n return state;\n}\n// External hooks\n/**\n * Handles the click behavior for router `<Link>` components. This is useful if\n * you need to create custom `<Link>` components with the same click behavior we\n * use in our exported `<Link>`.\n */\nfunction useLinkClickHandler(to, _temp) {\n let {\n target,\n replace: replaceProp,\n state,\n preventScrollReset,\n relative,\n unstable_viewTransition\n } = _temp === void 0 ? {} : _temp;\n let navigate = useNavigate();\n let location = useLocation();\n let path = useResolvedPath(to, {\n relative\n });\n return React.useCallback(event => {\n if (shouldProcessLinkClick(event, target)) {\n event.preventDefault();\n // If the URL hasn't changed, a regular <a> will do a replace instead of\n // a push, so do the same here unless the replace prop is explicitly set\n let replace = replaceProp !== undefined ? replaceProp : createPath(location) === createPath(path);\n navigate(to, {\n replace,\n state,\n preventScrollReset,\n relative,\n unstable_viewTransition\n });\n }\n }, [location, navigate, path, replaceProp, state, target, to, preventScrollReset, relative, unstable_viewTransition]);\n}\n/**\n * A convenient wrapper for reading and writing search parameters via the\n * URLSearchParams interface.\n */\nfunction useSearchParams(defaultInit) {\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(typeof URLSearchParams !== \"undefined\", \"You cannot use the `useSearchParams` hook in a browser that does not \" + \"support the URLSearchParams API. If you need to support Internet \" + \"Explorer 11, we recommend you load a polyfill such as \" + \"https://github.com/ungap/url-search-params.\") : void 0;\n let defaultSearchParamsRef = React.useRef(createSearchParams(defaultInit));\n let hasSetSearchParamsRef = React.useRef(false);\n let location = useLocation();\n let searchParams = React.useMemo(() =>\n // Only merge in the defaults if we haven't yet called setSearchParams.\n // Once we call that we want those to take precedence, otherwise you can't\n // remove a param with setSearchParams({}) if it has an initial value\n getSearchParamsForLocation(location.search, hasSetSearchParamsRef.current ? null : defaultSearchParamsRef.current), [location.search]);\n let navigate = useNavigate();\n let setSearchParams = React.useCallback((nextInit, navigateOptions) => {\n const newSearchParams = createSearchParams(typeof nextInit === \"function\" ? nextInit(searchParams) : nextInit);\n hasSetSearchParamsRef.current = true;\n navigate(\"?\" + newSearchParams, navigateOptions);\n }, [navigate, searchParams]);\n return [searchParams, setSearchParams];\n}\nfunction validateClientSideSubmission() {\n if (typeof document === \"undefined\") {\n throw new Error(\"You are calling submit during the server render. \" + \"Try calling submit within a `useEffect` or callback instead.\");\n }\n}\nlet fetcherId = 0;\nlet getUniqueFetcherId = () => \"__\" + String(++fetcherId) + \"__\";\n/**\n * Returns a function that may be used to programmatically submit a form (or\n * some arbitrary data) to the server.\n */\nfunction useSubmit() {\n let {\n router\n } = useDataRouterContext(DataRouterHook.UseSubmit);\n let {\n basename\n } = React.useContext(UNSAFE_NavigationContext);\n let currentRouteId = UNSAFE_useRouteId();\n return React.useCallback(function (target, options) {\n if (options === void 0) {\n options = {};\n }\n validateClientSideSubmission();\n let {\n action,\n method,\n encType,\n formData,\n body\n } = getFormSubmissionInfo(target, basename);\n if (options.navigate === false) {\n let key = options.fetcherKey || getUniqueFetcherId();\n router.fetch(key, currentRouteId, options.action || action, {\n preventScrollReset: options.preventScrollReset,\n formData,\n body,\n formMethod: options.method || method,\n formEncType: options.encType || encType,\n unstable_flushSync: options.unstable_flushSync\n });\n } else {\n router.navigate(options.action || action, {\n preventScrollReset: options.preventScrollReset,\n formData,\n body,\n formMethod: options.method || method,\n formEncType: options.encType || encType,\n replace: options.replace,\n state: options.state,\n fromRouteId: currentRouteId,\n unstable_flushSync: options.unstable_flushSync,\n unstable_viewTransition: options.unstable_viewTransition\n });\n }\n }, [router, basename, currentRouteId]);\n}\n// v7: Eventually we should deprecate this entirely in favor of using the\n// router method directly?\nfunction useFormAction(action, _temp2) {\n let {\n relative\n } = _temp2 === void 0 ? {} : _temp2;\n let {\n basename\n } = React.useContext(UNSAFE_NavigationContext);\n let routeContext = React.useContext(UNSAFE_RouteContext);\n !routeContext ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"useFormAction must be used inside a RouteContext\") : UNSAFE_invariant(false) : void 0;\n let [match] = routeContext.matches.slice(-1);\n // Shallow clone path so we can modify it below, otherwise we modify the\n // object referenced by useMemo inside useResolvedPath\n let path = _extends({}, useResolvedPath(action ? action : \".\", {\n relative\n }));\n // If no action was specified, browsers will persist current search params\n // when determining the path, so match that behavior\n // https://github.com/remix-run/remix/issues/927\n let location = useLocation();\n if (action == null) {\n // Safe to write to this directly here since if action was undefined, we\n // would have called useResolvedPath(\".\") which will never include a search\n path.search = location.search;\n // When grabbing search params from the URL, remove any included ?index param\n // since it might not apply to our contextual route. We add it back based\n // on match.route.index below\n let params = new URLSearchParams(path.search);\n if (params.has(\"index\") && params.get(\"index\") === \"\") {\n params.delete(\"index\");\n path.search = params.toString() ? \"?\" + params.toString() : \"\";\n }\n }\n if ((!action || action === \".\") && match.route.index) {\n path.search = path.search ? path.search.replace(/^\\?/, \"?index&\") : \"?index\";\n }\n // If we're operating within a basename, prepend it to the pathname prior\n // to creating the form action. If this is a root navigation, then just use\n // the raw basename which allows the basename to have full control over the\n // presence of a trailing slash on root actions\n if (basename !== \"/\") {\n path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n }\n return createPath(path);\n}\n// TODO: (v7) Change the useFetcher generic default from `any` to `unknown`\n/**\n * Interacts with route loaders and actions without causing a navigation. Great\n * for any interaction that stays on the same page.\n */\nfunction useFetcher(_temp3) {\n var _route$matches;\n let {\n key\n } = _temp3 === void 0 ? {} : _temp3;\n let {\n router\n } = useDataRouterContext(DataRouterHook.UseFetcher);\n let state = useDataRouterState(DataRouterStateHook.UseFetcher);\n let fetcherData = React.useContext(FetchersContext);\n let route = React.useContext(UNSAFE_RouteContext);\n let routeId = (_route$matches = route.matches[route.matches.length - 1]) == null ? void 0 : _route$matches.route.id;\n !fetcherData ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"useFetcher must be used inside a FetchersContext\") : UNSAFE_invariant(false) : void 0;\n !route ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"useFetcher must be used inside a RouteContext\") : UNSAFE_invariant(false) : void 0;\n !(routeId != null) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"useFetcher can only be used on routes that contain a unique \\\"id\\\"\") : UNSAFE_invariant(false) : void 0;\n // Fetcher key handling\n // OK to call conditionally to feature detect `useId`\n // eslint-disable-next-line react-hooks/rules-of-hooks\n let defaultKey = useIdImpl ? useIdImpl() : \"\";\n let [fetcherKey, setFetcherKey] = React.useState(key || defaultKey);\n if (key && key !== fetcherKey) {\n setFetcherKey(key);\n } else if (!fetcherKey) {\n // We will only fall through here when `useId` is not available\n setFetcherKey(getUniqueFetcherId());\n }\n // Registration/cleanup\n React.useEffect(() => {\n router.getFetcher(fetcherKey);\n return () => {\n // Tell the router we've unmounted - if v7_fetcherPersist is enabled this\n // will not delete immediately but instead queue up a delete after the\n // fetcher returns to an `idle` state\n router.deleteFetcher(fetcherKey);\n };\n }, [router, fetcherKey]);\n // Fetcher additions\n let load = React.useCallback((href, opts) => {\n !routeId ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"No routeId available for fetcher.load()\") : UNSAFE_invariant(false) : void 0;\n router.fetch(fetcherKey, routeId, href, opts);\n }, [fetcherKey, routeId, router]);\n let submitImpl = useSubmit();\n let submit = React.useCallback((target, opts) => {\n submitImpl(target, _extends({}, opts, {\n navigate: false,\n fetcherKey\n }));\n }, [fetcherKey, submitImpl]);\n let FetcherForm = React.useMemo(() => {\n let FetcherForm = /*#__PURE__*/React.forwardRef((props, ref) => {\n return /*#__PURE__*/React.createElement(Form, _extends({}, props, {\n navigate: false,\n fetcherKey: fetcherKey,\n ref: ref\n }));\n });\n if (process.env.NODE_ENV !== \"production\") {\n FetcherForm.displayName = \"fetcher.Form\";\n }\n return FetcherForm;\n }, [fetcherKey]);\n // Exposed FetcherWithComponents\n let fetcher = state.fetchers.get(fetcherKey) || IDLE_FETCHER;\n let data = fetcherData.get(fetcherKey);\n let fetcherWithComponents = React.useMemo(() => _extends({\n Form: FetcherForm,\n submit,\n load\n }, fetcher, {\n data\n }), [FetcherForm, submit, load, fetcher, data]);\n return fetcherWithComponents;\n}\n/**\n * Provides all fetchers currently on the page. Useful for layouts and parent\n * routes that need to provide pending/optimistic UI regarding the fetch.\n */\nfunction useFetchers() {\n let state = useDataRouterState(DataRouterStateHook.UseFetchers);\n return Array.from(state.fetchers.entries()).map(_ref11 => {\n let [key, fetcher] = _ref11;\n return _extends({}, fetcher, {\n key\n });\n });\n}\nconst SCROLL_RESTORATION_STORAGE_KEY = \"react-router-scroll-positions\";\nlet savedScrollPositions = {};\n/**\n * When rendered inside a RouterProvider, will restore scroll positions on navigations\n */\nfunction useScrollRestoration(_temp4) {\n let {\n getKey,\n storageKey\n } = _temp4 === void 0 ? {} : _temp4;\n let {\n router\n } = useDataRouterContext(DataRouterHook.UseScrollRestoration);\n let {\n restoreScrollPosition,\n preventScrollReset\n } = useDataRouterState(DataRouterStateHook.UseScrollRestoration);\n let {\n basename\n } = React.useContext(UNSAFE_NavigationContext);\n let location = useLocation();\n let matches = useMatches();\n let navigation = useNavigation();\n // Trigger manual scroll restoration while we're active\n React.useEffect(() => {\n window.history.scrollRestoration = \"manual\";\n return () => {\n window.history.scrollRestoration = \"auto\";\n };\n }, []);\n // Save positions on pagehide\n usePageHide(React.useCallback(() => {\n if (navigation.state === \"idle\") {\n let key = (getKey ? getKey(location, matches) : null) || location.key;\n savedScrollPositions[key] = window.scrollY;\n }\n try {\n sessionStorage.setItem(storageKey || SCROLL_RESTORATION_STORAGE_KEY, JSON.stringify(savedScrollPositions));\n } catch (error) {\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, \"Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (\" + error + \").\") : void 0;\n }\n window.history.scrollRestoration = \"auto\";\n }, [storageKey, getKey, navigation.state, location, matches]));\n // Read in any saved scroll locations\n if (typeof document !== \"undefined\") {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useLayoutEffect(() => {\n try {\n let sessionPositions = sessionStorage.getItem(storageKey || SCROLL_RESTORATION_STORAGE_KEY);\n if (sessionPositions) {\n savedScrollPositions = JSON.parse(sessionPositions);\n }\n } catch (e) {\n // no-op, use default empty object\n }\n }, [storageKey]);\n // Enable scroll restoration in the router\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useLayoutEffect(() => {\n let getKeyWithoutBasename = getKey && basename !== \"/\" ? (location, matches) => getKey( // Strip the basename to match useLocation()\n _extends({}, location, {\n pathname: stripBasename(location.pathname, basename) || location.pathname\n }), matches) : getKey;\n let disableScrollRestoration = router == null ? void 0 : router.enableScrollRestoration(savedScrollPositions, () => window.scrollY, getKeyWithoutBasename);\n return () => disableScrollRestoration && disableScrollRestoration();\n }, [router, basename, getKey]);\n // Restore scrolling when state.restoreScrollPosition changes\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useLayoutEffect(() => {\n // Explicit false means don't do anything (used for submissions)\n if (restoreScrollPosition === false) {\n return;\n }\n // been here before, scroll to it\n if (typeof restoreScrollPosition === \"number\") {\n window.scrollTo(0, restoreScrollPosition);\n return;\n }\n // try to scroll to the hash\n if (location.hash) {\n let el = document.getElementById(decodeURIComponent(location.hash.slice(1)));\n if (el) {\n el.scrollIntoView();\n return;\n }\n }\n // Don't reset if this navigation opted out\n if (preventScrollReset === true) {\n return;\n }\n // otherwise go to the top on new locations\n window.scrollTo(0, 0);\n }, [location, restoreScrollPosition, preventScrollReset]);\n }\n}\n/**\n * Setup a callback to be fired on the window's `beforeunload` event. This is\n * useful for saving some data to `window.localStorage` just before the page\n * refreshes.\n *\n * Note: The `callback` argument should be a function created with\n * `React.useCallback()`.\n */\nfunction useBeforeUnload(callback, options) {\n let {\n capture\n } = options || {};\n React.useEffect(() => {\n let opts = capture != null ? {\n capture\n } : undefined;\n window.addEventListener(\"beforeunload\", callback, opts);\n return () => {\n window.removeEventListener(\"beforeunload\", callback, opts);\n };\n }, [callback, capture]);\n}\n/**\n * Setup a callback to be fired on the window's `pagehide` event. This is\n * useful for saving some data to `window.localStorage` just before the page\n * refreshes. This event is better supported than beforeunload across browsers.\n *\n * Note: The `callback` argument should be a function created with\n * `React.useCallback()`.\n */\nfunction usePageHide(callback, options) {\n let {\n capture\n } = options || {};\n React.useEffect(() => {\n let opts = capture != null ? {\n capture\n } : undefined;\n window.addEventListener(\"pagehide\", callback, opts);\n return () => {\n window.removeEventListener(\"pagehide\", callback, opts);\n };\n }, [callback, capture]);\n}\n/**\n * Wrapper around useBlocker to show a window.confirm prompt to users instead\n * of building a custom UI with useBlocker.\n *\n * Warning: This has *a lot of rough edges* and behaves very differently (and\n * very incorrectly in some cases) across browsers if user click addition\n * back/forward navigations while the confirm is open. Use at your own risk.\n */\nfunction usePrompt(_ref12) {\n let {\n when,\n message\n } = _ref12;\n let blocker = useBlocker(when);\n React.useEffect(() => {\n if (blocker.state === \"blocked\") {\n let proceed = window.confirm(message);\n if (proceed) {\n // This timeout is needed to avoid a weird \"race\" on POP navigations\n // between the `window.history` revert navigation and the result of\n // `window.confirm`\n setTimeout(blocker.proceed, 0);\n } else {\n blocker.reset();\n }\n }\n }, [blocker, message]);\n React.useEffect(() => {\n if (blocker.state === \"blocked\" && !when) {\n blocker.reset();\n }\n }, [blocker, when]);\n}\n/**\n * Return a boolean indicating if there is an active view transition to the\n * given href. You can use this value to render CSS classes or viewTransitionName\n * styles onto your elements\n *\n * @param href The destination href\n * @param [opts.relative] Relative routing type (\"route\" | \"path\")\n */\nfunction useViewTransitionState(to, opts) {\n if (opts === void 0) {\n opts = {};\n }\n let vtContext = React.useContext(ViewTransitionContext);\n !(vtContext != null) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. \" + \"Did you accidentally import `RouterProvider` from `react-router`?\") : UNSAFE_invariant(false) : void 0;\n let {\n basename\n } = useDataRouterContext(DataRouterHook.useViewTransitionState);\n let path = useResolvedPath(to, {\n relative: opts.relative\n });\n if (!vtContext.isTransitioning) {\n return false;\n }\n let currentPath = stripBasename(vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;\n let nextPath = stripBasename(vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;\n // Transition is active if we're going to or coming from the indicated\n // destination. This ensures that other PUSH navigations that reverse\n // an indicated transition apply. I.e., on the list view you have:\n //\n // <NavLink to=\"/details/1\" unstable_viewTransition>\n //\n // If you click the breadcrumb back to the list view:\n //\n // <NavLink to=\"/list\" unstable_viewTransition>\n //\n // We should apply the transition because it's indicated as active going\n // from /list -> /details/1 and therefore should be active on the reverse\n // (even though this isn't strictly a POP reverse)\n return matchPath(path.pathname, nextPath) != null || matchPath(path.pathname, currentPath) != null;\n}\n//#endregion\n\nexport { BrowserRouter, Form, HashRouter, Link, NavLink, RouterProvider, ScrollRestoration, FetchersContext as UNSAFE_FetchersContext, ViewTransitionContext as UNSAFE_ViewTransitionContext, useScrollRestoration as UNSAFE_useScrollRestoration, createBrowserRouter, createHashRouter, createSearchParams, HistoryRouter as unstable_HistoryRouter, usePrompt as unstable_usePrompt, useViewTransitionState as unstable_useViewTransitionState, useBeforeUnload, useFetcher, useFetchers, useFormAction, useLinkClickHandler, useSearchParams, useSubmit };\n","/**\n * React Router v6.26.1\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport * as React from 'react';\nimport { UNSAFE_invariant, joinPaths, matchPath, UNSAFE_decodePath, UNSAFE_getResolveToMatches, UNSAFE_warning, resolveTo, parsePath, matchRoutes, Action, UNSAFE_convertRouteMatchToUiMatch, stripBasename, IDLE_BLOCKER, isRouteErrorResponse, createMemoryHistory, AbortedDeferredError, createRouter } from '@remix-run/router';\nexport { AbortedDeferredError, Action as NavigationType, createPath, defer, generatePath, isRouteErrorResponse, json, matchPath, matchRoutes, parsePath, redirect, redirectDocument, replace, resolvePath } from '@remix-run/router';\n\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\n// Create react-specific types from the agnostic types in @remix-run/router to\n// export from react-router\nconst DataRouterContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n DataRouterContext.displayName = \"DataRouter\";\n}\nconst DataRouterStateContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n DataRouterStateContext.displayName = \"DataRouterState\";\n}\nconst AwaitContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n AwaitContext.displayName = \"Await\";\n}\n\n/**\n * A Navigator is a \"location changer\"; it's how you get to different locations.\n *\n * Every history instance conforms to the Navigator interface, but the\n * distinction is useful primarily when it comes to the low-level `<Router>` API\n * where both the location and a navigator must be provided separately in order\n * to avoid \"tearing\" that may occur in a suspense-enabled app if the action\n * and/or location were to be read directly from the history instance.\n */\n\nconst NavigationContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n NavigationContext.displayName = \"Navigation\";\n}\nconst LocationContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n LocationContext.displayName = \"Location\";\n}\nconst RouteContext = /*#__PURE__*/React.createContext({\n outlet: null,\n matches: [],\n isDataRoute: false\n});\nif (process.env.NODE_ENV !== \"production\") {\n RouteContext.displayName = \"Route\";\n}\nconst RouteErrorContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n RouteErrorContext.displayName = \"RouteError\";\n}\n\n/**\n * Returns the full href for the given \"to\" value. This is useful for building\n * custom links that are also accessible and preserve right-click behavior.\n *\n * @see https://reactrouter.com/hooks/use-href\n */\nfunction useHref(to, _temp) {\n let {\n relative\n } = _temp === void 0 ? {} : _temp;\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useHref() may be used only in the context of a <Router> component.\") : UNSAFE_invariant(false) : void 0;\n let {\n basename,\n navigator\n } = React.useContext(NavigationContext);\n let {\n hash,\n pathname,\n search\n } = useResolvedPath(to, {\n relative\n });\n let joinedPathname = pathname;\n\n // If we're operating within a basename, prepend it to the pathname prior\n // to creating the href. If this is a root navigation, then just use the raw\n // basename which allows the basename to have full control over the presence\n // of a trailing slash on root links\n if (basename !== \"/\") {\n joinedPathname = pathname === \"/\" ? basename : joinPaths([basename, pathname]);\n }\n return navigator.createHref({\n pathname: joinedPathname,\n search,\n hash\n });\n}\n\n/**\n * Returns true if this component is a descendant of a `<Router>`.\n *\n * @see https://reactrouter.com/hooks/use-in-router-context\n */\nfunction useInRouterContext() {\n return React.useContext(LocationContext) != null;\n}\n\n/**\n * Returns the current location object, which represents the current URL in web\n * browsers.\n *\n * Note: If you're using this it may mean you're doing some of your own\n * \"routing\" in your app, and we'd like to know what your use case is. We may\n * be able to provide something higher-level to better suit your needs.\n *\n * @see https://reactrouter.com/hooks/use-location\n */\nfunction useLocation() {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useLocation() may be used only in the context of a <Router> component.\") : UNSAFE_invariant(false) : void 0;\n return React.useContext(LocationContext).location;\n}\n\n/**\n * Returns the current navigation action which describes how the router came to\n * the current location, either by a pop, push, or replace on the history stack.\n *\n * @see https://reactrouter.com/hooks/use-navigation-type\n */\nfunction useNavigationType() {\n return React.useContext(LocationContext).navigationType;\n}\n\n/**\n * Returns a PathMatch object if the given pattern matches the current URL.\n * This is useful for components that need to know \"active\" state, e.g.\n * `<NavLink>`.\n *\n * @see https://reactrouter.com/hooks/use-match\n */\nfunction useMatch(pattern) {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useMatch() may be used only in the context of a <Router> component.\") : UNSAFE_invariant(false) : void 0;\n let {\n pathname\n } = useLocation();\n return React.useMemo(() => matchPath(pattern, UNSAFE_decodePath(pathname)), [pathname, pattern]);\n}\n\n/**\n * The interface for the navigate() function returned from useNavigate().\n */\n\nconst navigateEffectWarning = \"You should call navigate() in a React.useEffect(), not when \" + \"your component is first rendered.\";\n\n// Mute warnings for calls to useNavigate in SSR environments\nfunction useIsomorphicLayoutEffect(cb) {\n let isStatic = React.useContext(NavigationContext).static;\n if (!isStatic) {\n // We should be able to get rid of this once react 18.3 is released\n // See: https://github.com/facebook/react/pull/26395\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useLayoutEffect(cb);\n }\n}\n\n/**\n * Returns an imperative method for changing the location. Used by `<Link>`s, but\n * may also be used by other elements to change the location.\n *\n * @see https://reactrouter.com/hooks/use-navigate\n */\nfunction useNavigate() {\n let {\n isDataRoute\n } = React.useContext(RouteContext);\n // Conditional usage is OK here because the usage of a data router is static\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return isDataRoute ? useNavigateStable() : useNavigateUnstable();\n}\nfunction useNavigateUnstable() {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useNavigate() may be used only in the context of a <Router> component.\") : UNSAFE_invariant(false) : void 0;\n let dataRouterContext = React.useContext(DataRouterContext);\n let {\n basename,\n future,\n navigator\n } = React.useContext(NavigationContext);\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let routePathnamesJson = JSON.stringify(UNSAFE_getResolveToMatches(matches, future.v7_relativeSplatPath));\n let activeRef = React.useRef(false);\n useIsomorphicLayoutEffect(() => {\n activeRef.current = true;\n });\n let navigate = React.useCallback(function (to, options) {\n if (options === void 0) {\n options = {};\n }\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(activeRef.current, navigateEffectWarning) : void 0;\n\n // Short circuit here since if this happens on first render the navigate\n // is useless because we haven't wired up our history listener yet\n if (!activeRef.current) return;\n if (typeof to === \"number\") {\n navigator.go(to);\n return;\n }\n let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === \"path\");\n\n // If we're operating within a basename, prepend it to the pathname prior\n // to handing off to history (but only if we're not in a data router,\n // otherwise it'll prepend the basename inside of the router).\n // If this is a root navigation, then we navigate to the raw basename\n // which allows the basename to have full control over the presence of a\n // trailing slash on root links\n if (dataRouterContext == null && basename !== \"/\") {\n path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n }\n (!!options.replace ? navigator.replace : navigator.push)(path, options.state, options);\n }, [basename, navigator, routePathnamesJson, locationPathname, dataRouterContext]);\n return navigate;\n}\nconst OutletContext = /*#__PURE__*/React.createContext(null);\n\n/**\n * Returns the context (if provided) for the child route at this level of the route\n * hierarchy.\n * @see https://reactrouter.com/hooks/use-outlet-context\n */\nfunction useOutletContext() {\n return React.useContext(OutletContext);\n}\n\n/**\n * Returns the element for the child route at this level of the route\n * hierarchy. Used internally by `<Outlet>` to render child routes.\n *\n * @see https://reactrouter.com/hooks/use-outlet\n */\nfunction useOutlet(context) {\n let outlet = React.useContext(RouteContext).outlet;\n if (outlet) {\n return /*#__PURE__*/React.createElement(OutletContext.Provider, {\n value: context\n }, outlet);\n }\n return outlet;\n}\n\n/**\n * Returns an object of key/value pairs of the dynamic params from the current\n * URL that were matched by the route path.\n *\n * @see https://reactrouter.com/hooks/use-params\n */\nfunction useParams() {\n let {\n matches\n } = React.useContext(RouteContext);\n let routeMatch = matches[matches.length - 1];\n return routeMatch ? routeMatch.params : {};\n}\n\n/**\n * Resolves the pathname of the given `to` value against the current location.\n *\n * @see https://reactrouter.com/hooks/use-resolved-path\n */\nfunction useResolvedPath(to, _temp2) {\n let {\n relative\n } = _temp2 === void 0 ? {} : _temp2;\n let {\n future\n } = React.useContext(NavigationContext);\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let routePathnamesJson = JSON.stringify(UNSAFE_getResolveToMatches(matches, future.v7_relativeSplatPath));\n return React.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === \"path\"), [to, routePathnamesJson, locationPathname, relative]);\n}\n\n/**\n * Returns the element of the route that matched the current location, prepared\n * with the correct context to render the remainder of the route tree. Route\n * elements in the tree must render an `<Outlet>` to render their child route's\n * element.\n *\n * @see https://reactrouter.com/hooks/use-routes\n */\nfunction useRoutes(routes, locationArg) {\n return useRoutesImpl(routes, locationArg);\n}\n\n// Internal implementation with accept optional param for RouterProvider usage\nfunction useRoutesImpl(routes, locationArg, dataRouterState, future) {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useRoutes() may be used only in the context of a <Router> component.\") : UNSAFE_invariant(false) : void 0;\n let {\n navigator\n } = React.useContext(NavigationContext);\n let {\n matches: parentMatches\n } = React.useContext(RouteContext);\n let routeMatch = parentMatches[parentMatches.length - 1];\n let parentParams = routeMatch ? routeMatch.params : {};\n let parentPathname = routeMatch ? routeMatch.pathname : \"/\";\n let parentPathnameBase = routeMatch ? routeMatch.pathnameBase : \"/\";\n let parentRoute = routeMatch && routeMatch.route;\n if (process.env.NODE_ENV !== \"production\") {\n // You won't get a warning about 2 different <Routes> under a <Route>\n // without a trailing *, but this is a best-effort warning anyway since we\n // cannot even give the warning unless they land at the parent route.\n //\n // Example:\n //\n // <Routes>\n // {/* This route path MUST end with /* because otherwise\n // it will never match /blog/post/123 */}\n // <Route path=\"blog\" element={<Blog />} />\n // <Route path=\"blog/feed\" element={<BlogFeed />} />\n // </Routes>\n //\n // function Blog() {\n // return (\n // <Routes>\n // <Route path=\"post/:id\" element={<Post />} />\n // </Routes>\n // );\n // }\n let parentPath = parentRoute && parentRoute.path || \"\";\n warningOnce(parentPathname, !parentRoute || parentPath.endsWith(\"*\"), \"You rendered descendant <Routes> (or called `useRoutes()`) at \" + (\"\\\"\" + parentPathname + \"\\\" (under <Route path=\\\"\" + parentPath + \"\\\">) but the \") + \"parent route path has no trailing \\\"*\\\". This means if you navigate \" + \"deeper, the parent won't match anymore and therefore the child \" + \"routes will never render.\\n\\n\" + (\"Please change the parent <Route path=\\\"\" + parentPath + \"\\\"> to <Route \") + (\"path=\\\"\" + (parentPath === \"/\" ? \"*\" : parentPath + \"/*\") + \"\\\">.\"));\n }\n let locationFromContext = useLocation();\n let location;\n if (locationArg) {\n var _parsedLocationArg$pa;\n let parsedLocationArg = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n !(parentPathnameBase === \"/\" || ((_parsedLocationArg$pa = parsedLocationArg.pathname) == null ? void 0 : _parsedLocationArg$pa.startsWith(parentPathnameBase))) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, \" + \"the location pathname must begin with the portion of the URL pathname that was \" + (\"matched by all parent routes. The current pathname base is \\\"\" + parentPathnameBase + \"\\\" \") + (\"but pathname \\\"\" + parsedLocationArg.pathname + \"\\\" was given in the `location` prop.\")) : UNSAFE_invariant(false) : void 0;\n location = parsedLocationArg;\n } else {\n location = locationFromContext;\n }\n let pathname = location.pathname || \"/\";\n let remainingPathname = pathname;\n if (parentPathnameBase !== \"/\") {\n // Determine the remaining pathname by removing the # of URL segments the\n // parentPathnameBase has, instead of removing based on character count.\n // This is because we can't guarantee that incoming/outgoing encodings/\n // decodings will match exactly.\n // We decode paths before matching on a per-segment basis with\n // decodeURIComponent(), but we re-encode pathnames via `new URL()` so they\n // match what `window.location.pathname` would reflect. Those don't 100%\n // align when it comes to encoded URI characters such as % and &.\n //\n // So we may end up with:\n // pathname: \"/descendant/a%25b/match\"\n // parentPathnameBase: \"/descendant/a%b\"\n //\n // And the direct substring removal approach won't work :/\n let parentSegments = parentPathnameBase.replace(/^\\//, \"\").split(\"/\");\n let segments = pathname.replace(/^\\//, \"\").split(\"/\");\n remainingPathname = \"/\" + segments.slice(parentSegments.length).join(\"/\");\n }\n let matches = matchRoutes(routes, {\n pathname: remainingPathname\n });\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(parentRoute || matches != null, \"No routes matched location \\\"\" + location.pathname + location.search + location.hash + \"\\\" \") : void 0;\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(matches == null || matches[matches.length - 1].route.element !== undefined || matches[matches.length - 1].route.Component !== undefined || matches[matches.length - 1].route.lazy !== undefined, \"Matched leaf route at location \\\"\" + location.pathname + location.search + location.hash + \"\\\" \" + \"does not have an element or Component. This means it will render an <Outlet /> with a \" + \"null value by default resulting in an \\\"empty\\\" page.\") : void 0;\n }\n let renderedMatches = _renderMatches(matches && matches.map(match => Object.assign({}, match, {\n params: Object.assign({}, parentParams, match.params),\n pathname: joinPaths([parentPathnameBase,\n // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathname).pathname : match.pathname]),\n pathnameBase: match.pathnameBase === \"/\" ? parentPathnameBase : joinPaths([parentPathnameBase,\n // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathnameBase).pathname : match.pathnameBase])\n })), parentMatches, dataRouterState, future);\n\n // When a user passes in a `locationArg`, the associated routes need to\n // be wrapped in a new `LocationContext.Provider` in order for `useLocation`\n // to use the scoped location instead of the global location.\n if (locationArg && renderedMatches) {\n return /*#__PURE__*/React.createElement(LocationContext.Provider, {\n value: {\n location: _extends({\n pathname: \"/\",\n search: \"\",\n hash: \"\",\n state: null,\n key: \"default\"\n }, location),\n navigationType: Action.Pop\n }\n }, renderedMatches);\n }\n return renderedMatches;\n}\nfunction DefaultErrorComponent() {\n let error = useRouteError();\n let message = isRouteErrorResponse(error) ? error.status + \" \" + error.statusText : error instanceof Error ? error.message : JSON.stringify(error);\n let stack = error instanceof Error ? error.stack : null;\n let lightgrey = \"rgba(200,200,200, 0.5)\";\n let preStyles = {\n padding: \"0.5rem\",\n backgroundColor: lightgrey\n };\n let codeStyles = {\n padding: \"2px 4px\",\n backgroundColor: lightgrey\n };\n let devInfo = null;\n if (process.env.NODE_ENV !== \"production\") {\n console.error(\"Error handled by React Router default ErrorBoundary:\", error);\n devInfo = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"p\", null, \"\\uD83D\\uDCBF Hey developer \\uD83D\\uDC4B\"), /*#__PURE__*/React.createElement(\"p\", null, \"You can provide a way better UX than this when your app throws errors by providing your own \", /*#__PURE__*/React.createElement(\"code\", {\n style: codeStyles\n }, \"ErrorBoundary\"), \" or\", \" \", /*#__PURE__*/React.createElement(\"code\", {\n style: codeStyles\n }, \"errorElement\"), \" prop on your route.\"));\n }\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"h2\", null, \"Unexpected Application Error!\"), /*#__PURE__*/React.createElement(\"h3\", {\n style: {\n fontStyle: \"italic\"\n }\n }, message), stack ? /*#__PURE__*/React.createElement(\"pre\", {\n style: preStyles\n }, stack) : null, devInfo);\n}\nconst defaultErrorElement = /*#__PURE__*/React.createElement(DefaultErrorComponent, null);\nclass RenderErrorBoundary extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n location: props.location,\n revalidation: props.revalidation,\n error: props.error\n };\n }\n static getDerivedStateFromError(error) {\n return {\n error: error\n };\n }\n static getDerivedStateFromProps(props, state) {\n // When we get into an error state, the user will likely click \"back\" to the\n // previous page that didn't have an error. Because this wraps the entire\n // application, that will have no effect--the error page continues to display.\n // This gives us a mechanism to recover from the error when the location changes.\n //\n // Whether we're in an error state or not, we update the location in state\n // so that when we are in an error state, it gets reset when a new location\n // comes in and the user recovers from the error.\n if (state.location !== props.location || state.revalidation !== \"idle\" && props.revalidation === \"idle\") {\n return {\n error: props.error,\n location: props.location,\n revalidation: props.revalidation\n };\n }\n\n // If we're not changing locations, preserve the location but still surface\n // any new errors that may come through. We retain the existing error, we do\n // this because the error provided from the app state may be cleared without\n // the location changing.\n return {\n error: props.error !== undefined ? props.error : state.error,\n location: state.location,\n revalidation: props.revalidation || state.revalidation\n };\n }\n componentDidCatch(error, errorInfo) {\n console.error(\"React Router caught the following error during render\", error, errorInfo);\n }\n render() {\n return this.state.error !== undefined ? /*#__PURE__*/React.createElement(RouteContext.Provider, {\n value: this.props.routeContext\n }, /*#__PURE__*/React.createElement(RouteErrorContext.Provider, {\n value: this.state.error,\n children: this.props.component\n })) : this.props.children;\n }\n}\nfunction RenderedRoute(_ref) {\n let {\n routeContext,\n match,\n children\n } = _ref;\n let dataRouterContext = React.useContext(DataRouterContext);\n\n // Track how deep we got in our render pass to emulate SSR componentDidCatch\n // in a DataStaticRouter\n if (dataRouterContext && dataRouterContext.static && dataRouterContext.staticContext && (match.route.errorElement || match.route.ErrorBoundary)) {\n dataRouterContext.staticContext._deepestRenderedBoundaryId = match.route.id;\n }\n return /*#__PURE__*/React.createElement(RouteContext.Provider, {\n value: routeContext\n }, children);\n}\nfunction _renderMatches(matches, parentMatches, dataRouterState, future) {\n var _dataRouterState;\n if (parentMatches === void 0) {\n parentMatches = [];\n }\n if (dataRouterState === void 0) {\n dataRouterState = null;\n }\n if (future === void 0) {\n future = null;\n }\n if (matches == null) {\n var _future;\n if (!dataRouterState) {\n return null;\n }\n if (dataRouterState.errors) {\n // Don't bail if we have data router errors so we can render them in the\n // boundary. Use the pre-matched (or shimmed) matches\n matches = dataRouterState.matches;\n } else if ((_future = future) != null && _future.v7_partialHydration && parentMatches.length === 0 && !dataRouterState.initialized && dataRouterState.matches.length > 0) {\n // Don't bail if we're initializing with partial hydration and we have\n // router matches. That means we're actively running `patchRoutesOnNavigation`\n // so we should render down the partial matches to the appropriate\n // `HydrateFallback`. We only do this if `parentMatches` is empty so it\n // only impacts the root matches for `RouterProvider` and no descendant\n // `<Routes>`\n matches = dataRouterState.matches;\n } else {\n return null;\n }\n }\n let renderedMatches = matches;\n\n // If we have data errors, trim matches to the highest error boundary\n let errors = (_dataRouterState = dataRouterState) == null ? void 0 : _dataRouterState.errors;\n if (errors != null) {\n let errorIndex = renderedMatches.findIndex(m => m.route.id && (errors == null ? void 0 : errors[m.route.id]) !== undefined);\n !(errorIndex >= 0) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"Could not find a matching route for errors on route IDs: \" + Object.keys(errors).join(\",\")) : UNSAFE_invariant(false) : void 0;\n renderedMatches = renderedMatches.slice(0, Math.min(renderedMatches.length, errorIndex + 1));\n }\n\n // If we're in a partial hydration mode, detect if we need to render down to\n // a given HydrateFallback while we load the rest of the hydration data\n let renderFallback = false;\n let fallbackIndex = -1;\n if (dataRouterState && future && future.v7_partialHydration) {\n for (let i = 0; i < renderedMatches.length; i++) {\n let match = renderedMatches[i];\n // Track the deepest fallback up until the first route without data\n if (match.route.HydrateFallback || match.route.hydrateFallbackElement) {\n fallbackIndex = i;\n }\n if (match.route.id) {\n let {\n loaderData,\n errors\n } = dataRouterState;\n let needsToRunLoader = match.route.loader && loaderData[match.route.id] === undefined && (!errors || errors[match.route.id] === undefined);\n if (match.route.lazy || needsToRunLoader) {\n // We found the first route that's not ready to render (waiting on\n // lazy, or has a loader that hasn't run yet). Flag that we need to\n // render a fallback and render up until the appropriate fallback\n renderFallback = true;\n if (fallbackIndex >= 0) {\n renderedMatches = renderedMatches.slice(0, fallbackIndex + 1);\n } else {\n renderedMatches = [renderedMatches[0]];\n }\n break;\n }\n }\n }\n }\n return renderedMatches.reduceRight((outlet, match, index) => {\n // Only data routers handle errors/fallbacks\n let error;\n let shouldRenderHydrateFallback = false;\n let errorElement = null;\n let hydrateFallbackElement = null;\n if (dataRouterState) {\n error = errors && match.route.id ? errors[match.route.id] : undefined;\n errorElement = match.route.errorElement || defaultErrorElement;\n if (renderFallback) {\n if (fallbackIndex < 0 && index === 0) {\n warningOnce(\"route-fallback\", false, \"No `HydrateFallback` element provided to render during initial hydration\");\n shouldRenderHydrateFallback = true;\n hydrateFallbackElement = null;\n } else if (fallbackIndex === index) {\n shouldRenderHydrateFallback = true;\n hydrateFallbackElement = match.route.hydrateFallbackElement || null;\n }\n }\n }\n let matches = parentMatches.concat(renderedMatches.slice(0, index + 1));\n let getChildren = () => {\n let children;\n if (error) {\n children = errorElement;\n } else if (shouldRenderHydrateFallback) {\n children = hydrateFallbackElement;\n } else if (match.route.Component) {\n // Note: This is a de-optimized path since React won't re-use the\n // ReactElement since it's identity changes with each new\n // React.createElement call. We keep this so folks can use\n // `<Route Component={...}>` in `<Routes>` but generally `Component`\n // usage is only advised in `RouterProvider` when we can convert it to\n // `element` ahead of time.\n children = /*#__PURE__*/React.createElement(match.route.Component, null);\n } else if (match.route.element) {\n children = match.route.element;\n } else {\n children = outlet;\n }\n return /*#__PURE__*/React.createElement(RenderedRoute, {\n match: match,\n routeContext: {\n outlet,\n matches,\n isDataRoute: dataRouterState != null\n },\n children: children\n });\n };\n // Only wrap in an error boundary within data router usages when we have an\n // ErrorBoundary/errorElement on this route. Otherwise let it bubble up to\n // an ancestor ErrorBoundary/errorElement\n return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /*#__PURE__*/React.createElement(RenderErrorBoundary, {\n location: dataRouterState.location,\n revalidation: dataRouterState.revalidation,\n component: errorElement,\n error: error,\n children: getChildren(),\n routeContext: {\n outlet: null,\n matches,\n isDataRoute: true\n }\n }) : getChildren();\n }, null);\n}\nvar DataRouterHook = /*#__PURE__*/function (DataRouterHook) {\n DataRouterHook[\"UseBlocker\"] = \"useBlocker\";\n DataRouterHook[\"UseRevalidator\"] = \"useRevalidator\";\n DataRouterHook[\"UseNavigateStable\"] = \"useNavigate\";\n return DataRouterHook;\n}(DataRouterHook || {});\nvar DataRouterStateHook = /*#__PURE__*/function (DataRouterStateHook) {\n DataRouterStateHook[\"UseBlocker\"] = \"useBlocker\";\n DataRouterStateHook[\"UseLoaderData\"] = \"useLoaderData\";\n DataRouterStateHook[\"UseActionData\"] = \"useActionData\";\n DataRouterStateHook[\"UseRouteError\"] = \"useRouteError\";\n DataRouterStateHook[\"UseNavigation\"] = \"useNavigation\";\n DataRouterStateHook[\"UseRouteLoaderData\"] = \"useRouteLoaderData\";\n DataRouterStateHook[\"UseMatches\"] = \"useMatches\";\n DataRouterStateHook[\"UseRevalidator\"] = \"useRevalidator\";\n DataRouterStateHook[\"UseNavigateStable\"] = \"useNavigate\";\n DataRouterStateHook[\"UseRouteId\"] = \"useRouteId\";\n return DataRouterStateHook;\n}(DataRouterStateHook || {});\nfunction getDataRouterConsoleError(hookName) {\n return hookName + \" must be used within a data router. See https://reactrouter.com/routers/picking-a-router.\";\n}\nfunction useDataRouterContext(hookName) {\n let ctx = React.useContext(DataRouterContext);\n !ctx ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n return ctx;\n}\nfunction useDataRouterState(hookName) {\n let state = React.useContext(DataRouterStateContext);\n !state ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n return state;\n}\nfunction useRouteContext(hookName) {\n let route = React.useContext(RouteContext);\n !route ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n return route;\n}\n\n// Internal version with hookName-aware debugging\nfunction useCurrentRouteId(hookName) {\n let route = useRouteContext(hookName);\n let thisRoute = route.matches[route.matches.length - 1];\n !thisRoute.route.id ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, hookName + \" can only be used on routes that contain a unique \\\"id\\\"\") : UNSAFE_invariant(false) : void 0;\n return thisRoute.route.id;\n}\n\n/**\n * Returns the ID for the nearest contextual route\n */\nfunction useRouteId() {\n return useCurrentRouteId(DataRouterStateHook.UseRouteId);\n}\n\n/**\n * Returns the current navigation, defaulting to an \"idle\" navigation when\n * no navigation is in progress\n */\nfunction useNavigation() {\n let state = useDataRouterState(DataRouterStateHook.UseNavigation);\n return state.navigation;\n}\n\n/**\n * Returns a revalidate function for manually triggering revalidation, as well\n * as the current state of any manual revalidations\n */\nfunction useRevalidator() {\n let dataRouterContext = useDataRouterContext(DataRouterHook.UseRevalidator);\n let state = useDataRouterState(DataRouterStateHook.UseRevalidator);\n return React.useMemo(() => ({\n revalidate: dataRouterContext.router.revalidate,\n state: state.revalidation\n }), [dataRouterContext.router.revalidate, state.revalidation]);\n}\n\n/**\n * Returns the active route matches, useful for accessing loaderData for\n * parent/child routes or the route \"handle\" property\n */\nfunction useMatches() {\n let {\n matches,\n loaderData\n } = useDataRouterState(DataRouterStateHook.UseMatches);\n return React.useMemo(() => matches.map(m => UNSAFE_convertRouteMatchToUiMatch(m, loaderData)), [matches, loaderData]);\n}\n\n/**\n * Returns the loader data for the nearest ancestor Route loader\n */\nfunction useLoaderData() {\n let state = useDataRouterState(DataRouterStateHook.UseLoaderData);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData);\n if (state.errors && state.errors[routeId] != null) {\n console.error(\"You cannot `useLoaderData` in an errorElement (routeId: \" + routeId + \")\");\n return undefined;\n }\n return state.loaderData[routeId];\n}\n\n/**\n * Returns the loaderData for the given routeId\n */\nfunction useRouteLoaderData(routeId) {\n let state = useDataRouterState(DataRouterStateHook.UseRouteLoaderData);\n return state.loaderData[routeId];\n}\n\n/**\n * Returns the action data for the nearest ancestor Route action\n */\nfunction useActionData() {\n let state = useDataRouterState(DataRouterStateHook.UseActionData);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData);\n return state.actionData ? state.actionData[routeId] : undefined;\n}\n\n/**\n * Returns the nearest ancestor Route error, which could be a loader/action\n * error or a render error. This is intended to be called from your\n * ErrorBoundary/errorElement to display a proper error message.\n */\nfunction useRouteError() {\n var _state$errors;\n let error = React.useContext(RouteErrorContext);\n let state = useDataRouterState(DataRouterStateHook.UseRouteError);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseRouteError);\n\n // If this was a render error, we put it in a RouteError context inside\n // of RenderErrorBoundary\n if (error !== undefined) {\n return error;\n }\n\n // Otherwise look for errors from our data router state\n return (_state$errors = state.errors) == null ? void 0 : _state$errors[routeId];\n}\n\n/**\n * Returns the happy-path data from the nearest ancestor `<Await />` value\n */\nfunction useAsyncValue() {\n let value = React.useContext(AwaitContext);\n return value == null ? void 0 : value._data;\n}\n\n/**\n * Returns the error from the nearest ancestor `<Await />` value\n */\nfunction useAsyncError() {\n let value = React.useContext(AwaitContext);\n return value == null ? void 0 : value._error;\n}\nlet blockerId = 0;\n\n/**\n * Allow the application to block navigations within the SPA and present the\n * user a confirmation dialog to confirm the navigation. Mostly used to avoid\n * using half-filled form data. This does not handle hard-reloads or\n * cross-origin navigations.\n */\nfunction useBlocker(shouldBlock) {\n let {\n router,\n basename\n } = useDataRouterContext(DataRouterHook.UseBlocker);\n let state = useDataRouterState(DataRouterStateHook.UseBlocker);\n let [blockerKey, setBlockerKey] = React.useState(\"\");\n let blockerFunction = React.useCallback(arg => {\n if (typeof shouldBlock !== \"function\") {\n return !!shouldBlock;\n }\n if (basename === \"/\") {\n return shouldBlock(arg);\n }\n\n // If they provided us a function and we've got an active basename, strip\n // it from the locations we expose to the user to match the behavior of\n // useLocation\n let {\n currentLocation,\n nextLocation,\n historyAction\n } = arg;\n return shouldBlock({\n currentLocation: _extends({}, currentLocation, {\n pathname: stripBasename(currentLocation.pathname, basename) || currentLocation.pathname\n }),\n nextLocation: _extends({}, nextLocation, {\n pathname: stripBasename(nextLocation.pathname, basename) || nextLocation.pathname\n }),\n historyAction\n });\n }, [basename, shouldBlock]);\n\n // This effect is in charge of blocker key assignment and deletion (which is\n // tightly coupled to the key)\n React.useEffect(() => {\n let key = String(++blockerId);\n setBlockerKey(key);\n return () => router.deleteBlocker(key);\n }, [router]);\n\n // This effect handles assigning the blockerFunction. This is to handle\n // unstable blocker function identities, and happens only after the prior\n // effect so we don't get an orphaned blockerFunction in the router with a\n // key of \"\". Until then we just have the IDLE_BLOCKER.\n React.useEffect(() => {\n if (blockerKey !== \"\") {\n router.getBlocker(blockerKey, blockerFunction);\n }\n }, [router, blockerKey, blockerFunction]);\n\n // Prefer the blocker from `state` not `router.state` since DataRouterContext\n // is memoized so this ensures we update on blocker state updates\n return blockerKey && state.blockers.has(blockerKey) ? state.blockers.get(blockerKey) : IDLE_BLOCKER;\n}\n\n/**\n * Stable version of useNavigate that is used when we are in the context of\n * a RouterProvider.\n */\nfunction useNavigateStable() {\n let {\n router\n } = useDataRouterContext(DataRouterHook.UseNavigateStable);\n let id = useCurrentRouteId(DataRouterStateHook.UseNavigateStable);\n let activeRef = React.useRef(false);\n useIsomorphicLayoutEffect(() => {\n activeRef.current = true;\n });\n let navigate = React.useCallback(function (to, options) {\n if (options === void 0) {\n options = {};\n }\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(activeRef.current, navigateEffectWarning) : void 0;\n\n // Short circuit here since if this happens on first render the navigate\n // is useless because we haven't wired up our router subscriber yet\n if (!activeRef.current) return;\n if (typeof to === \"number\") {\n router.navigate(to);\n } else {\n router.navigate(to, _extends({\n fromRouteId: id\n }, options));\n }\n }, [router, id]);\n return navigate;\n}\nconst alreadyWarned = {};\nfunction warningOnce(key, cond, message) {\n if (!cond && !alreadyWarned[key]) {\n alreadyWarned[key] = true;\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, message) : void 0;\n }\n}\n\n/**\n Webpack + React 17 fails to compile on any of the following because webpack\n complains that `startTransition` doesn't exist in `React`:\n * import { startTransition } from \"react\"\n * import * as React from from \"react\";\n \"startTransition\" in React ? React.startTransition(() => setState()) : setState()\n * import * as React from from \"react\";\n \"startTransition\" in React ? React[\"startTransition\"](() => setState()) : setState()\n\n Moving it to a constant such as the following solves the Webpack/React 17 issue:\n * import * as React from from \"react\";\n const START_TRANSITION = \"startTransition\";\n START_TRANSITION in React ? React[START_TRANSITION](() => setState()) : setState()\n\n However, that introduces webpack/terser minification issues in production builds\n in React 18 where minification/obfuscation ends up removing the call of\n React.startTransition entirely from the first half of the ternary. Grabbing\n this exported reference once up front resolves that issue.\n\n See https://github.com/remix-run/react-router/issues/10579\n*/\nconst START_TRANSITION = \"startTransition\";\nconst startTransitionImpl = React[START_TRANSITION];\n\n/**\n * Given a Remix Router instance, render the appropriate UI\n */\nfunction RouterProvider(_ref) {\n let {\n fallbackElement,\n router,\n future\n } = _ref;\n let [state, setStateImpl] = React.useState(router.state);\n let {\n v7_startTransition\n } = future || {};\n let setState = React.useCallback(newState => {\n if (v7_startTransition && startTransitionImpl) {\n startTransitionImpl(() => setStateImpl(newState));\n } else {\n setStateImpl(newState);\n }\n }, [setStateImpl, v7_startTransition]);\n\n // Need to use a layout effect here so we are subscribed early enough to\n // pick up on any render-driven redirects/navigations (useEffect/<Navigate>)\n React.useLayoutEffect(() => router.subscribe(setState), [router, setState]);\n React.useEffect(() => {\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(fallbackElement == null || !router.future.v7_partialHydration, \"`<RouterProvider fallbackElement>` is deprecated when using \" + \"`v7_partialHydration`, use a `HydrateFallback` component instead\") : void 0;\n // Only log this once on initial mount\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n let navigator = React.useMemo(() => {\n return {\n createHref: router.createHref,\n encodeLocation: router.encodeLocation,\n go: n => router.navigate(n),\n push: (to, state, opts) => router.navigate(to, {\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n }),\n replace: (to, state, opts) => router.navigate(to, {\n replace: true,\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n })\n };\n }, [router]);\n let basename = router.basename || \"/\";\n let dataRouterContext = React.useMemo(() => ({\n router,\n navigator,\n static: false,\n basename\n }), [router, navigator, basename]);\n\n // The fragment and {null} here are important! We need them to keep React 18's\n // useId happy when we are server-rendering since we may have a <script> here\n // containing the hydrated server-side staticContext (from StaticRouterProvider).\n // useId relies on the component tree structure to generate deterministic id's\n // so we need to ensure it remains the same on the client even though\n // we don't need the <script> tag\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DataRouterContext.Provider, {\n value: dataRouterContext\n }, /*#__PURE__*/React.createElement(DataRouterStateContext.Provider, {\n value: state\n }, /*#__PURE__*/React.createElement(Router, {\n basename: basename,\n location: state.location,\n navigationType: state.historyAction,\n navigator: navigator,\n future: {\n v7_relativeSplatPath: router.future.v7_relativeSplatPath\n }\n }, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/React.createElement(DataRoutes, {\n routes: router.routes,\n future: router.future,\n state: state\n }) : fallbackElement))), null);\n}\nfunction DataRoutes(_ref2) {\n let {\n routes,\n future,\n state\n } = _ref2;\n return useRoutesImpl(routes, undefined, state, future);\n}\n/**\n * A `<Router>` that stores all entries in memory.\n *\n * @see https://reactrouter.com/router-components/memory-router\n */\nfunction MemoryRouter(_ref3) {\n let {\n basename,\n children,\n initialEntries,\n initialIndex,\n future\n } = _ref3;\n let historyRef = React.useRef();\n if (historyRef.current == null) {\n historyRef.current = createMemoryHistory({\n initialEntries,\n initialIndex,\n v5Compat: true\n });\n }\n let history = historyRef.current;\n let [state, setStateImpl] = React.useState({\n action: history.action,\n location: history.location\n });\n let {\n v7_startTransition\n } = future || {};\n let setState = React.useCallback(newState => {\n v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);\n }, [setStateImpl, v7_startTransition]);\n React.useLayoutEffect(() => history.listen(setState), [history, setState]);\n return /*#__PURE__*/React.createElement(Router, {\n basename: basename,\n children: children,\n location: state.location,\n navigationType: state.action,\n navigator: history,\n future: future\n });\n}\n/**\n * Changes the current location.\n *\n * Note: This API is mostly useful in React.Component subclasses that are not\n * able to use hooks. In functional components, we recommend you use the\n * `useNavigate` hook instead.\n *\n * @see https://reactrouter.com/components/navigate\n */\nfunction Navigate(_ref4) {\n let {\n to,\n replace,\n state,\n relative\n } = _ref4;\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of\n // the router loaded. We can help them understand how to avoid that.\n \"<Navigate> may be used only in the context of a <Router> component.\") : UNSAFE_invariant(false) : void 0;\n let {\n future,\n static: isStatic\n } = React.useContext(NavigationContext);\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(!isStatic, \"<Navigate> must not be used on the initial render in a <StaticRouter>. \" + \"This is a no-op, but you should modify your code so the <Navigate> is \" + \"only ever rendered in response to some user interaction or state change.\") : void 0;\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let navigate = useNavigate();\n\n // Resolve the path outside of the effect so that when effects run twice in\n // StrictMode they navigate to the same place\n let path = resolveTo(to, UNSAFE_getResolveToMatches(matches, future.v7_relativeSplatPath), locationPathname, relative === \"path\");\n let jsonPath = JSON.stringify(path);\n React.useEffect(() => navigate(JSON.parse(jsonPath), {\n replace,\n state,\n relative\n }), [navigate, jsonPath, relative, replace, state]);\n return null;\n}\n/**\n * Renders the child route's element, if there is one.\n *\n * @see https://reactrouter.com/components/outlet\n */\nfunction Outlet(props) {\n return useOutlet(props.context);\n}\n/**\n * Declares an element that should be rendered at a certain URL path.\n *\n * @see https://reactrouter.com/components/route\n */\nfunction Route(_props) {\n process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"A <Route> is only ever to be used as the child of <Routes> element, \" + \"never rendered directly. Please wrap your <Route> in a <Routes>.\") : UNSAFE_invariant(false) ;\n}\n/**\n * Provides location context for the rest of the app.\n *\n * Note: You usually won't render a `<Router>` directly. Instead, you'll render a\n * router that is more specific to your environment such as a `<BrowserRouter>`\n * in web browsers or a `<StaticRouter>` for server rendering.\n *\n * @see https://reactrouter.com/router-components/router\n */\nfunction Router(_ref5) {\n let {\n basename: basenameProp = \"/\",\n children = null,\n location: locationProp,\n navigationType = Action.Pop,\n navigator,\n static: staticProp = false,\n future\n } = _ref5;\n !!useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"You cannot render a <Router> inside another <Router>.\" + \" You should never have more than one in your app.\") : UNSAFE_invariant(false) : void 0;\n\n // Preserve trailing slashes on basename, so we can let the user control\n // the enforcement of trailing slashes throughout the app\n let basename = basenameProp.replace(/^\\/*/, \"/\");\n let navigationContext = React.useMemo(() => ({\n basename,\n navigator,\n static: staticProp,\n future: _extends({\n v7_relativeSplatPath: false\n }, future)\n }), [basename, future, navigator, staticProp]);\n if (typeof locationProp === \"string\") {\n locationProp = parsePath(locationProp);\n }\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\",\n state = null,\n key = \"default\"\n } = locationProp;\n let locationContext = React.useMemo(() => {\n let trailingPathname = stripBasename(pathname, basename);\n if (trailingPathname == null) {\n return null;\n }\n return {\n location: {\n pathname: trailingPathname,\n search,\n hash,\n state,\n key\n },\n navigationType\n };\n }, [basename, pathname, search, hash, state, key, navigationType]);\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(locationContext != null, \"<Router basename=\\\"\" + basename + \"\\\"> is not able to match the URL \" + (\"\\\"\" + pathname + search + hash + \"\\\" because it does not start with the \") + \"basename, so the <Router> won't render anything.\") : void 0;\n if (locationContext == null) {\n return null;\n }\n return /*#__PURE__*/React.createElement(NavigationContext.Provider, {\n value: navigationContext\n }, /*#__PURE__*/React.createElement(LocationContext.Provider, {\n children: children,\n value: locationContext\n }));\n}\n/**\n * A container for a nested tree of `<Route>` elements that renders the branch\n * that best matches the current location.\n *\n * @see https://reactrouter.com/components/routes\n */\nfunction Routes(_ref6) {\n let {\n children,\n location\n } = _ref6;\n return useRoutes(createRoutesFromChildren(children), location);\n}\n/**\n * Component to use for rendering lazily loaded data from returning defer()\n * in a loader function\n */\nfunction Await(_ref7) {\n let {\n children,\n errorElement,\n resolve\n } = _ref7;\n return /*#__PURE__*/React.createElement(AwaitErrorBoundary, {\n resolve: resolve,\n errorElement: errorElement\n }, /*#__PURE__*/React.createElement(ResolveAwait, null, children));\n}\nvar AwaitRenderStatus = /*#__PURE__*/function (AwaitRenderStatus) {\n AwaitRenderStatus[AwaitRenderStatus[\"pending\"] = 0] = \"pending\";\n AwaitRenderStatus[AwaitRenderStatus[\"success\"] = 1] = \"success\";\n AwaitRenderStatus[AwaitRenderStatus[\"error\"] = 2] = \"error\";\n return AwaitRenderStatus;\n}(AwaitRenderStatus || {});\nconst neverSettledPromise = new Promise(() => {});\nclass AwaitErrorBoundary extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n error: null\n };\n }\n static getDerivedStateFromError(error) {\n return {\n error\n };\n }\n componentDidCatch(error, errorInfo) {\n console.error(\"<Await> caught the following error during render\", error, errorInfo);\n }\n render() {\n let {\n children,\n errorElement,\n resolve\n } = this.props;\n let promise = null;\n let status = AwaitRenderStatus.pending;\n if (!(resolve instanceof Promise)) {\n // Didn't get a promise - provide as a resolved promise\n status = AwaitRenderStatus.success;\n promise = Promise.resolve();\n Object.defineProperty(promise, \"_tracked\", {\n get: () => true\n });\n Object.defineProperty(promise, \"_data\", {\n get: () => resolve\n });\n } else if (this.state.error) {\n // Caught a render error, provide it as a rejected promise\n status = AwaitRenderStatus.error;\n let renderError = this.state.error;\n promise = Promise.reject().catch(() => {}); // Avoid unhandled rejection warnings\n Object.defineProperty(promise, \"_tracked\", {\n get: () => true\n });\n Object.defineProperty(promise, \"_error\", {\n get: () => renderError\n });\n } else if (resolve._tracked) {\n // Already tracked promise - check contents\n promise = resolve;\n status = \"_error\" in promise ? AwaitRenderStatus.error : \"_data\" in promise ? AwaitRenderStatus.success : AwaitRenderStatus.pending;\n } else {\n // Raw (untracked) promise - track it\n status = AwaitRenderStatus.pending;\n Object.defineProperty(resolve, \"_tracked\", {\n get: () => true\n });\n promise = resolve.then(data => Object.defineProperty(resolve, \"_data\", {\n get: () => data\n }), error => Object.defineProperty(resolve, \"_error\", {\n get: () => error\n }));\n }\n if (status === AwaitRenderStatus.error && promise._error instanceof AbortedDeferredError) {\n // Freeze the UI by throwing a never resolved promise\n throw neverSettledPromise;\n }\n if (status === AwaitRenderStatus.error && !errorElement) {\n // No errorElement, throw to the nearest route-level error boundary\n throw promise._error;\n }\n if (status === AwaitRenderStatus.error) {\n // Render via our errorElement\n return /*#__PURE__*/React.createElement(AwaitContext.Provider, {\n value: promise,\n children: errorElement\n });\n }\n if (status === AwaitRenderStatus.success) {\n // Render children with resolved value\n return /*#__PURE__*/React.createElement(AwaitContext.Provider, {\n value: promise,\n children: children\n });\n }\n\n // Throw to the suspense boundary\n throw promise;\n }\n}\n\n/**\n * @private\n * Indirection to leverage useAsyncValue for a render-prop API on `<Await>`\n */\nfunction ResolveAwait(_ref8) {\n let {\n children\n } = _ref8;\n let data = useAsyncValue();\n let toRender = typeof children === \"function\" ? children(data) : children;\n return /*#__PURE__*/React.createElement(React.Fragment, null, toRender);\n}\n\n///////////////////////////////////////////////////////////////////////////////\n// UTILS\n///////////////////////////////////////////////////////////////////////////////\n\n/**\n * Creates a route config from a React \"children\" object, which is usually\n * either a `<Route>` element or an array of them. Used internally by\n * `<Routes>` to create a route config from its children.\n *\n * @see https://reactrouter.com/utils/create-routes-from-children\n */\nfunction createRoutesFromChildren(children, parentPath) {\n if (parentPath === void 0) {\n parentPath = [];\n }\n let routes = [];\n React.Children.forEach(children, (element, index) => {\n if (! /*#__PURE__*/React.isValidElement(element)) {\n // Ignore non-elements. This allows people to more easily inline\n // conditionals in their route config.\n return;\n }\n let treePath = [...parentPath, index];\n if (element.type === React.Fragment) {\n // Transparently support React.Fragment and its children.\n routes.push.apply(routes, createRoutesFromChildren(element.props.children, treePath));\n return;\n }\n !(element.type === Route) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"[\" + (typeof element.type === \"string\" ? element.type : element.type.name) + \"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>\") : UNSAFE_invariant(false) : void 0;\n !(!element.props.index || !element.props.children) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"An index route cannot have child routes.\") : UNSAFE_invariant(false) : void 0;\n let route = {\n id: element.props.id || treePath.join(\"-\"),\n caseSensitive: element.props.caseSensitive,\n element: element.props.element,\n Component: element.props.Component,\n index: element.props.index,\n path: element.props.path,\n loader: element.props.loader,\n action: element.props.action,\n errorElement: element.props.errorElement,\n ErrorBoundary: element.props.ErrorBoundary,\n hasErrorBoundary: element.props.ErrorBoundary != null || element.props.errorElement != null,\n shouldRevalidate: element.props.shouldRevalidate,\n handle: element.props.handle,\n lazy: element.props.lazy\n };\n if (element.props.children) {\n route.children = createRoutesFromChildren(element.props.children, treePath);\n }\n routes.push(route);\n });\n return routes;\n}\n\n/**\n * Renders the result of `matchRoutes()` into a React element.\n */\nfunction renderMatches(matches) {\n return _renderMatches(matches);\n}\n\nfunction mapRouteProperties(route) {\n let updates = {\n // Note: this check also occurs in createRoutesFromChildren so update\n // there if you change this -- please and thank you!\n hasErrorBoundary: route.ErrorBoundary != null || route.errorElement != null\n };\n if (route.Component) {\n if (process.env.NODE_ENV !== \"production\") {\n if (route.element) {\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, \"You should not include both `Component` and `element` on your route - \" + \"`Component` will be used.\") : void 0;\n }\n }\n Object.assign(updates, {\n element: /*#__PURE__*/React.createElement(route.Component),\n Component: undefined\n });\n }\n if (route.HydrateFallback) {\n if (process.env.NODE_ENV !== \"production\") {\n if (route.hydrateFallbackElement) {\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, \"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - \" + \"`HydrateFallback` will be used.\") : void 0;\n }\n }\n Object.assign(updates, {\n hydrateFallbackElement: /*#__PURE__*/React.createElement(route.HydrateFallback),\n HydrateFallback: undefined\n });\n }\n if (route.ErrorBoundary) {\n if (process.env.NODE_ENV !== \"production\") {\n if (route.errorElement) {\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, \"You should not include both `ErrorBoundary` and `errorElement` on your route - \" + \"`ErrorBoundary` will be used.\") : void 0;\n }\n }\n Object.assign(updates, {\n errorElement: /*#__PURE__*/React.createElement(route.ErrorBoundary),\n ErrorBoundary: undefined\n });\n }\n return updates;\n}\nfunction createMemoryRouter(routes, opts) {\n return createRouter({\n basename: opts == null ? void 0 : opts.basename,\n future: _extends({}, opts == null ? void 0 : opts.future, {\n v7_prependBasename: true\n }),\n history: createMemoryHistory({\n initialEntries: opts == null ? void 0 : opts.initialEntries,\n initialIndex: opts == null ? void 0 : opts.initialIndex\n }),\n hydrationData: opts == null ? void 0 : opts.hydrationData,\n routes,\n mapRouteProperties,\n unstable_dataStrategy: opts == null ? void 0 : opts.unstable_dataStrategy,\n unstable_patchRoutesOnNavigation: opts == null ? void 0 : opts.unstable_patchRoutesOnNavigation\n }).initialize();\n}\n\nexport { Await, MemoryRouter, Navigate, Outlet, Route, Router, RouterProvider, Routes, DataRouterContext as UNSAFE_DataRouterContext, DataRouterStateContext as UNSAFE_DataRouterStateContext, LocationContext as UNSAFE_LocationContext, NavigationContext as UNSAFE_NavigationContext, RouteContext as UNSAFE_RouteContext, mapRouteProperties as UNSAFE_mapRouteProperties, useRouteId as UNSAFE_useRouteId, useRoutesImpl as UNSAFE_useRoutesImpl, createMemoryRouter, createRoutesFromChildren, createRoutesFromChildren as createRoutesFromElements, renderMatches, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };\n","var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n","import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n if (!document)\n return null;\n var tag = document.createElement('style');\n tag.type = 'text/css';\n var nonce = getNonce();\n if (nonce) {\n tag.setAttribute('nonce', nonce);\n }\n return tag;\n}\nfunction injectStyles(tag, css) {\n // @ts-ignore\n if (tag.styleSheet) {\n // @ts-ignore\n tag.styleSheet.cssText = css;\n }\n else {\n tag.appendChild(document.createTextNode(css));\n }\n}\nfunction insertStyleTag(tag) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n var counter = 0;\n var stylesheet = null;\n return {\n add: function (style) {\n if (counter == 0) {\n if ((stylesheet = makeStyleTag())) {\n injectStyles(stylesheet, style);\n insertStyleTag(stylesheet);\n }\n }\n counter++;\n },\n remove: function () {\n counter--;\n if (!counter && stylesheet) {\n stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n stylesheet = null;\n }\n },\n };\n};\n","import { styleHookSingleton } from './hook';\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nexport var styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n","import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n","/**\n * @license React\n * react-jsx-dev-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var a=Symbol.for(\"react.fragment\");exports.Fragment=a;exports.jsxDEV=void 0;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}\nfunction N(a,b){return{$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\\/+/g;function Q(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(\"\"+a.key):b.toString(36)}\nfunction R(a,b,e,d,c){var k=typeof a;if(\"undefined\"===k||\"boolean\"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case \"string\":case \"number\":h=!0;break;case \"object\":switch(a.$$typeof){case l:case n:h=!0}}if(h)return h=a,c=c(h),a=\"\"===d?\".\"+Q(h,0):d,I(c)?(e=\"\",null!=a&&(e=a.replace(P,\"$&/\")+\"/\"),R(c,b,e,\"\",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?\"\":(\"\"+c.key).replace(P,\"$&/\")+\"/\")+a)),b.push(c)),1;h=0;d=\"\"===d?\".\":d+\":\";if(I(a))for(var g=0;g<a.length;g++){k=\na[g];var f=d+Q(k,g);h+=R(k,b,e,f,c)}else if(f=A(a),\"function\"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if(\"object\"===k)throw b=String(a),Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===b?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":b)+\"). If you meant to render a collection of children, use an array instead.\");return h}\nfunction S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,\"\",\"\",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}\nvar U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};function X(){throw Error(\"act(...) is not supported in production builds of React.\");}\nexports.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error(\"React.Children.only expected to receive a single React element child.\");return a}};exports.Component=E;exports.Fragment=p;exports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;exports.act=X;\nexports.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \"+a+\".\");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=\"\"+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);\nfor(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};exports.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};exports.createElement=M;exports.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};\nexports.forwardRef=function(a){return{$$typeof:v,render:a}};exports.isValidElement=O;exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=V.transition;V.transition={};try{a()}finally{V.transition=b}};exports.unstable_act=X;exports.useCallback=function(a,b){return U.current.useCallback(a,b)};exports.useContext=function(a){return U.current.useContext(a)};\nexports.useDebugValue=function(){};exports.useDeferredValue=function(a){return U.current.useDeferredValue(a)};exports.useEffect=function(a,b){return U.current.useEffect(a,b)};exports.useId=function(){return U.current.useId()};exports.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};exports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};\nexports.useMemo=function(a,b){return U.current.useMemo(a,b)};exports.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};exports.useRef=function(a){return U.current.useRef(a)};exports.useState=function(a){return U.current.useState(a)};exports.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};exports.useTransition=function(){return U.current.useTransition()};exports.version=\"18.3.1\";\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-dev-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-dev-runtime.development.js');\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import { Subject } from './Subject';\nexport class BehaviorSubject extends Subject {\n constructor(_value) {\n super();\n this._value = _value;\n }\n get value() {\n return this.getValue();\n }\n _subscribe(subscriber) {\n const subscription = super._subscribe(subscriber);\n !subscription.closed && subscriber.next(this._value);\n return subscription;\n }\n getValue() {\n const { hasError, thrownError, _value } = this;\n if (hasError) {\n throw thrownError;\n }\n this._throwIfClosed();\n return _value;\n }\n next(value) {\n super.next((this._value = value));\n }\n}\n","import { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription } from './Subscription';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\nexport class Observable {\n constructor(subscribe) {\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n lift(operator) {\n const observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n }\n subscribe(observerOrNext, error, complete) {\n const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n errorContext(() => {\n const { operator, source } = this;\n subscriber.add(operator\n ?\n operator.call(subscriber, source)\n : source\n ?\n this._subscribe(subscriber)\n :\n this._trySubscribe(subscriber));\n });\n return subscriber;\n }\n _trySubscribe(sink) {\n try {\n return this._subscribe(sink);\n }\n catch (err) {\n sink.error(err);\n }\n }\n forEach(next, promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n const subscriber = new SafeSubscriber({\n next: (value) => {\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n subscriber.unsubscribe();\n }\n },\n error: reject,\n complete: resolve,\n });\n this.subscribe(subscriber);\n });\n }\n _subscribe(subscriber) {\n var _a;\n return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);\n }\n [Symbol_observable]() {\n return this;\n }\n pipe(...operations) {\n return pipeFromArray(operations)(this);\n }\n toPromise(promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n let value;\n this.subscribe((x) => (value = x), (err) => reject(err), () => resolve(value));\n });\n }\n}\nObservable.create = (subscribe) => {\n return new Observable(subscribe);\n};\nfunction getPromiseCtor(promiseCtor) {\n var _a;\n return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;\n}\nfunction isObserver(value) {\n return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\nfunction isSubscriber(value) {\n return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));\n}\n","import { createErrorClass } from './createErrorClass';\nexport const ObjectUnsubscribedError = createErrorClass((_super) => function ObjectUnsubscribedErrorImpl() {\n _super(this);\n this.name = 'ObjectUnsubscribedError';\n this.message = 'object unsubscribed';\n});\n","import { Observable } from './Observable';\nimport { Subscription, EMPTY_SUBSCRIPTION } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { arrRemove } from './util/arrRemove';\nimport { errorContext } from './util/errorContext';\nexport class Subject extends Observable {\n constructor() {\n super();\n this.closed = false;\n this.currentObservers = null;\n this.observers = [];\n this.isStopped = false;\n this.hasError = false;\n this.thrownError = null;\n }\n lift(operator) {\n const subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n }\n _throwIfClosed() {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n }\n next(value) {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n if (!this.currentObservers) {\n this.currentObservers = Array.from(this.observers);\n }\n for (const observer of this.currentObservers) {\n observer.next(value);\n }\n }\n });\n }\n error(err) {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n this.hasError = this.isStopped = true;\n this.thrownError = err;\n const { observers } = this;\n while (observers.length) {\n observers.shift().error(err);\n }\n }\n });\n }\n complete() {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n this.isStopped = true;\n const { observers } = this;\n while (observers.length) {\n observers.shift().complete();\n }\n }\n });\n }\n unsubscribe() {\n this.isStopped = this.closed = true;\n this.observers = this.currentObservers = null;\n }\n get observed() {\n var _a;\n return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;\n }\n _trySubscribe(subscriber) {\n this._throwIfClosed();\n return super._trySubscribe(subscriber);\n }\n _subscribe(subscriber) {\n this._throwIfClosed();\n this._checkFinalizedStatuses(subscriber);\n return this._innerSubscribe(subscriber);\n }\n _innerSubscribe(subscriber) {\n const { hasError, isStopped, observers } = this;\n if (hasError || isStopped) {\n return EMPTY_SUBSCRIPTION;\n }\n this.currentObservers = null;\n observers.push(subscriber);\n return new Subscription(() => {\n this.currentObservers = null;\n arrRemove(observers, subscriber);\n });\n }\n _checkFinalizedStatuses(subscriber) {\n const { hasError, thrownError, isStopped } = this;\n if (hasError) {\n subscriber.error(thrownError);\n }\n else if (isStopped) {\n subscriber.complete();\n }\n }\n asObservable() {\n const observable = new Observable();\n observable.source = this;\n return observable;\n }\n}\nSubject.create = (destination, source) => {\n return new AnonymousSubject(destination, source);\n};\nexport class AnonymousSubject extends Subject {\n constructor(destination, source) {\n super();\n this.destination = destination;\n this.source = source;\n }\n next(value) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);\n }\n error(err) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);\n }\n complete() {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);\n }\n _subscribe(subscriber) {\n var _a, _b;\n return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;\n }\n}\n","export const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();\nexport function errorNotification(error) {\n return createNotification('E', undefined, error);\n}\nexport function nextNotification(value) {\n return createNotification('N', value, undefined);\n}\nexport function createNotification(kind, value, error) {\n return {\n kind,\n value,\n error,\n };\n}\n","import { isFunction } from './util/isFunction';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\nexport class Subscriber extends Subscription {\n constructor(destination) {\n super();\n this.isStopped = false;\n if (destination) {\n this.destination = destination;\n if (isSubscription(destination)) {\n destination.add(this);\n }\n }\n else {\n this.destination = EMPTY_OBSERVER;\n }\n }\n static create(next, error, complete) {\n return new SafeSubscriber(next, error, complete);\n }\n next(value) {\n if (this.isStopped) {\n handleStoppedNotification(nextNotification(value), this);\n }\n else {\n this._next(value);\n }\n }\n error(err) {\n if (this.isStopped) {\n handleStoppedNotification(errorNotification(err), this);\n }\n else {\n this.isStopped = true;\n this._error(err);\n }\n }\n complete() {\n if (this.isStopped) {\n handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n }\n else {\n this.isStopped = true;\n this._complete();\n }\n }\n unsubscribe() {\n if (!this.closed) {\n this.isStopped = true;\n super.unsubscribe();\n this.destination = null;\n }\n }\n _next(value) {\n this.destination.next(value);\n }\n _error(err) {\n try {\n this.destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n }\n _complete() {\n try {\n this.destination.complete();\n }\n finally {\n this.unsubscribe();\n }\n }\n}\nconst _bind = Function.prototype.bind;\nfunction bind(fn, thisArg) {\n return _bind.call(fn, thisArg);\n}\nclass ConsumerObserver {\n constructor(partialObserver) {\n this.partialObserver = partialObserver;\n }\n next(value) {\n const { partialObserver } = this;\n if (partialObserver.next) {\n try {\n partialObserver.next(value);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n }\n error(err) {\n const { partialObserver } = this;\n if (partialObserver.error) {\n try {\n partialObserver.error(err);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n else {\n handleUnhandledError(err);\n }\n }\n complete() {\n const { partialObserver } = this;\n if (partialObserver.complete) {\n try {\n partialObserver.complete();\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n }\n}\nexport class SafeSubscriber extends Subscriber {\n constructor(observerOrNext, error, complete) {\n super();\n let partialObserver;\n if (isFunction(observerOrNext) || !observerOrNext) {\n partialObserver = {\n next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined),\n error: error !== null && error !== void 0 ? error : undefined,\n complete: complete !== null && complete !== void 0 ? complete : undefined,\n };\n }\n else {\n let context;\n if (this && config.useDeprecatedNextContext) {\n context = Object.create(observerOrNext);\n context.unsubscribe = () => this.unsubscribe();\n partialObserver = {\n next: observerOrNext.next && bind(observerOrNext.next, context),\n error: observerOrNext.error && bind(observerOrNext.error, context),\n complete: observerOrNext.complete && bind(observerOrNext.complete, context),\n };\n }\n else {\n partialObserver = observerOrNext;\n }\n }\n this.destination = new ConsumerObserver(partialObserver);\n }\n}\nfunction handleUnhandledError(error) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n captureError(error);\n }\n else {\n reportUnhandledError(error);\n }\n}\nfunction defaultErrorHandler(err) {\n throw err;\n}\nfunction handleStoppedNotification(notification, subscriber) {\n const { onStoppedNotification } = config;\n onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));\n}\nexport const EMPTY_OBSERVER = {\n closed: true,\n next: noop,\n error: defaultErrorHandler,\n complete: noop,\n};\n","import { createErrorClass } from './createErrorClass';\nexport const UnsubscriptionError = createErrorClass((_super) => function UnsubscriptionErrorImpl(errors) {\n _super(this);\n this.message = errors\n ? `${errors.length} errors occurred during unsubscription:\n${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\\n ')}`\n : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n});\n","import { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { arrRemove } from './util/arrRemove';\nexport class Subscription {\n constructor(initialTeardown) {\n this.initialTeardown = initialTeardown;\n this.closed = false;\n this._parentage = null;\n this._finalizers = null;\n }\n unsubscribe() {\n let errors;\n if (!this.closed) {\n this.closed = true;\n const { _parentage } = this;\n if (_parentage) {\n this._parentage = null;\n if (Array.isArray(_parentage)) {\n for (const parent of _parentage) {\n parent.remove(this);\n }\n }\n else {\n _parentage.remove(this);\n }\n }\n const { initialTeardown: initialFinalizer } = this;\n if (isFunction(initialFinalizer)) {\n try {\n initialFinalizer();\n }\n catch (e) {\n errors = e instanceof UnsubscriptionError ? e.errors : [e];\n }\n }\n const { _finalizers } = this;\n if (_finalizers) {\n this._finalizers = null;\n for (const finalizer of _finalizers) {\n try {\n execFinalizer(finalizer);\n }\n catch (err) {\n errors = errors !== null && errors !== void 0 ? errors : [];\n if (err instanceof UnsubscriptionError) {\n errors = [...errors, ...err.errors];\n }\n else {\n errors.push(err);\n }\n }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n }\n }\n add(teardown) {\n var _a;\n if (teardown && teardown !== this) {\n if (this.closed) {\n execFinalizer(teardown);\n }\n else {\n if (teardown instanceof Subscription) {\n if (teardown.closed || teardown._hasParent(this)) {\n return;\n }\n teardown._addParent(this);\n }\n (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);\n }\n }\n }\n _hasParent(parent) {\n const { _parentage } = this;\n return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));\n }\n _addParent(parent) {\n const { _parentage } = this;\n this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n }\n _removeParent(parent) {\n const { _parentage } = this;\n if (_parentage === parent) {\n this._parentage = null;\n }\n else if (Array.isArray(_parentage)) {\n arrRemove(_parentage, parent);\n }\n }\n remove(teardown) {\n const { _finalizers } = this;\n _finalizers && arrRemove(_finalizers, teardown);\n if (teardown instanceof Subscription) {\n teardown._removeParent(this);\n }\n }\n}\nSubscription.EMPTY = (() => {\n const empty = new Subscription();\n empty.closed = true;\n return empty;\n})();\nexport const EMPTY_SUBSCRIPTION = Subscription.EMPTY;\nexport function isSubscription(value) {\n return (value instanceof Subscription ||\n (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));\n}\nfunction execFinalizer(finalizer) {\n if (isFunction(finalizer)) {\n finalizer();\n }\n else {\n finalizer.unsubscribe();\n }\n}\n","export const config = {\n onUnhandledError: null,\n onStoppedNotification: null,\n Promise: undefined,\n useDeprecatedSynchronousErrorHandling: false,\n useDeprecatedNextContext: false,\n};\n","import { Observable } from '../Observable';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { innerFrom } from './innerFrom';\nimport { popResultSelector } from '../util/args';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { createObject } from '../util/createObject';\nexport function forkJoin(...args) {\n const resultSelector = popResultSelector(args);\n const { args: sources, keys } = argsArgArrayOrObject(args);\n const result = new Observable((subscriber) => {\n const { length } = sources;\n if (!length) {\n subscriber.complete();\n return;\n }\n const values = new Array(length);\n let remainingCompletions = length;\n let remainingEmissions = length;\n for (let sourceIndex = 0; sourceIndex < length; sourceIndex++) {\n let hasValue = false;\n innerFrom(sources[sourceIndex]).subscribe(createOperatorSubscriber(subscriber, (value) => {\n if (!hasValue) {\n hasValue = true;\n remainingEmissions--;\n }\n values[sourceIndex] = value;\n }, () => remainingCompletions--, undefined, () => {\n if (!remainingCompletions || !hasValue) {\n if (!remainingEmissions) {\n subscriber.next(keys ? createObject(keys, values) : values);\n }\n subscriber.complete();\n }\n }));\n }\n });\n return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;\n}\n","import { executeSchedule } from '../util/executeSchedule';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function observeOn(scheduler, delay = 0) {\n return operate((source, subscriber) => {\n source.subscribe(createOperatorSubscriber(subscriber, (value) => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay), () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay), (err) => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay)));\n });\n}\n","import { operate } from '../util/lift';\nexport function subscribeOn(scheduler, delay = 0) {\n return operate((source, subscriber) => {\n subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));\n });\n}\n","import { Observable } from '../Observable';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleAsyncIterable(input, scheduler) {\n if (!input) {\n throw new Error('Iterable cannot be null');\n }\n return new Observable((subscriber) => {\n executeSchedule(subscriber, scheduler, () => {\n const iterator = input[Symbol.asyncIterator]();\n executeSchedule(subscriber, scheduler, () => {\n iterator.next().then((result) => {\n if (result.done) {\n subscriber.complete();\n }\n else {\n subscriber.next(result.value);\n }\n });\n }, 0, true);\n });\n });\n}\n","import { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isReadableStreamLike } from '../util/isReadableStreamLike';\nimport { scheduleReadableStreamLike } from './scheduleReadableStreamLike';\nexport function scheduled(input, scheduler) {\n if (input != null) {\n if (isInteropObservable(input)) {\n return scheduleObservable(input, scheduler);\n }\n if (isArrayLike(input)) {\n return scheduleArray(input, scheduler);\n }\n if (isPromise(input)) {\n return schedulePromise(input, scheduler);\n }\n if (isAsyncIterable(input)) {\n return scheduleAsyncIterable(input, scheduler);\n }\n if (isIterable(input)) {\n return scheduleIterable(input, scheduler);\n }\n if (isReadableStreamLike(input)) {\n return scheduleReadableStreamLike(input, scheduler);\n }\n }\n throw createInvalidObservableTypeError(input);\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function scheduleObservable(input, scheduler) {\n return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n","import { Observable } from '../Observable';\nexport function scheduleArray(input, scheduler) {\n return new Observable((subscriber) => {\n let i = 0;\n return scheduler.schedule(function () {\n if (i === input.length) {\n subscriber.complete();\n }\n else {\n subscriber.next(input[i++]);\n if (!subscriber.closed) {\n this.schedule();\n }\n }\n });\n });\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function schedulePromise(input, scheduler) {\n return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n","import { Observable } from '../Observable';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from '../util/isFunction';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleIterable(input, scheduler) {\n return new Observable((subscriber) => {\n let iterator;\n executeSchedule(subscriber, scheduler, () => {\n iterator = input[Symbol_iterator]();\n executeSchedule(subscriber, scheduler, () => {\n let value;\n let done;\n try {\n ({ value, done } = iterator.next());\n }\n catch (err) {\n subscriber.error(err);\n return;\n }\n if (done) {\n subscriber.complete();\n }\n else {\n subscriber.next(value);\n }\n }, 0, true);\n });\n return () => isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return();\n });\n}\n","import { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nexport function scheduleReadableStreamLike(input, scheduler) {\n return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);\n}\n","import { scheduled } from '../scheduled/scheduled';\nimport { innerFrom } from './innerFrom';\nexport function from(input, scheduler) {\n return scheduler ? scheduled(input, scheduler) : innerFrom(input);\n}\n","import { __asyncValues, __awaiter } from \"tslib\";\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isPromise } from '../util/isPromise';\nimport { Observable } from '../Observable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isIterable } from '../util/isIterable';\nimport { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nimport { isFunction } from '../util/isFunction';\nimport { reportUnhandledError } from '../util/reportUnhandledError';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport function innerFrom(input) {\n if (input instanceof Observable) {\n return input;\n }\n if (input != null) {\n if (isInteropObservable(input)) {\n return fromInteropObservable(input);\n }\n if (isArrayLike(input)) {\n return fromArrayLike(input);\n }\n if (isPromise(input)) {\n return fromPromise(input);\n }\n if (isAsyncIterable(input)) {\n return fromAsyncIterable(input);\n }\n if (isIterable(input)) {\n return fromIterable(input);\n }\n if (isReadableStreamLike(input)) {\n return fromReadableStreamLike(input);\n }\n }\n throw createInvalidObservableTypeError(input);\n}\nexport function fromInteropObservable(obj) {\n return new Observable((subscriber) => {\n const obs = obj[Symbol_observable]();\n if (isFunction(obs.subscribe)) {\n return obs.subscribe(subscriber);\n }\n throw new TypeError('Provided object does not correctly implement Symbol.observable');\n });\n}\nexport function fromArrayLike(array) {\n return new Observable((subscriber) => {\n for (let i = 0; i < array.length && !subscriber.closed; i++) {\n subscriber.next(array[i]);\n }\n subscriber.complete();\n });\n}\nexport function fromPromise(promise) {\n return new Observable((subscriber) => {\n promise\n .then((value) => {\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n }, (err) => subscriber.error(err))\n .then(null, reportUnhandledError);\n });\n}\nexport function fromIterable(iterable) {\n return new Observable((subscriber) => {\n for (const value of iterable) {\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n }\n subscriber.complete();\n });\n}\nexport function fromAsyncIterable(asyncIterable) {\n return new Observable((subscriber) => {\n process(asyncIterable, subscriber).catch((err) => subscriber.error(err));\n });\n}\nexport function fromReadableStreamLike(readableStream) {\n return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));\n}\nfunction process(asyncIterable, subscriber) {\n var asyncIterable_1, asyncIterable_1_1;\n var e_1, _a;\n return __awaiter(this, void 0, void 0, function* () {\n try {\n for (asyncIterable_1 = __asyncValues(asyncIterable); asyncIterable_1_1 = yield asyncIterable_1.next(), !asyncIterable_1_1.done;) {\n const value = asyncIterable_1_1.value;\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)) yield _a.call(asyncIterable_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n subscriber.complete();\n });\n}\n","import { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function of(...args) {\n const scheduler = popScheduler(args);\n return from(args, scheduler);\n}\n","import { Subscriber } from '../Subscriber';\nexport function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {\n return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);\n}\nexport class OperatorSubscriber extends Subscriber {\n constructor(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {\n super(destination);\n this.onFinalize = onFinalize;\n this.shouldUnsubscribe = shouldUnsubscribe;\n this._next = onNext\n ? function (value) {\n try {\n onNext(value);\n }\n catch (err) {\n destination.error(err);\n }\n }\n : super._next;\n this._error = onError\n ? function (err) {\n try {\n onError(err);\n }\n catch (err) {\n destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n }\n : super._error;\n this._complete = onComplete\n ? function () {\n try {\n onComplete();\n }\n catch (err) {\n destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n }\n : super._complete;\n }\n unsubscribe() {\n var _a;\n if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {\n const { closed } = this;\n super.unsubscribe();\n !closed && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));\n }\n }\n}\n","import { mergeMap } from './mergeMap';\nimport { isFunction } from '../util/isFunction';\nexport function concatMap(project, resultSelector) {\n return isFunction(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1);\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function filter(predicate, thisArg) {\n return operate((source, subscriber) => {\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, (value) => predicate.call(thisArg, value, index++) && subscriber.next(value)));\n });\n}\n","import { operate } from '../util/lift';\nexport function finalize(callback) {\n return operate((source, subscriber) => {\n try {\n source.subscribe(subscriber);\n }\n finally {\n subscriber.add(callback);\n }\n });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function map(project, thisArg) {\n return operate((source, subscriber) => {\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n subscriber.next(project.call(thisArg, value, index++));\n }));\n });\n}\n","import { map } from './map';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { mergeInternals } from './mergeInternals';\nimport { isFunction } from '../util/isFunction';\nexport function mergeMap(project, resultSelector, concurrent = Infinity) {\n if (isFunction(resultSelector)) {\n return mergeMap((a, i) => map((b, ii) => resultSelector(a, b, i, ii))(innerFrom(project(a, i))), concurrent);\n }\n else if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n }\n return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent));\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {\n const buffer = [];\n let active = 0;\n let index = 0;\n let isComplete = false;\n const checkComplete = () => {\n if (isComplete && !buffer.length && !active) {\n subscriber.complete();\n }\n };\n const outerNext = (value) => (active < concurrent ? doInnerSub(value) : buffer.push(value));\n const doInnerSub = (value) => {\n expand && subscriber.next(value);\n active++;\n let innerComplete = false;\n innerFrom(project(value, index++)).subscribe(createOperatorSubscriber(subscriber, (innerValue) => {\n onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);\n if (expand) {\n outerNext(innerValue);\n }\n else {\n subscriber.next(innerValue);\n }\n }, () => {\n innerComplete = true;\n }, undefined, () => {\n if (innerComplete) {\n try {\n active--;\n while (buffer.length && active < concurrent) {\n const bufferedValue = buffer.shift();\n if (innerSubScheduler) {\n executeSchedule(subscriber, innerSubScheduler, () => doInnerSub(bufferedValue));\n }\n else {\n doInnerSub(bufferedValue);\n }\n }\n checkComplete();\n }\n catch (err) {\n subscriber.error(err);\n }\n }\n }));\n };\n source.subscribe(createOperatorSubscriber(subscriber, outerNext, () => {\n isComplete = true;\n checkComplete();\n }));\n return () => {\n additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();\n };\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function switchMap(project, resultSelector) {\n return operate((source, subscriber) => {\n let innerSubscriber = null;\n let index = 0;\n let isComplete = false;\n const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();\n source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();\n let innerIndex = 0;\n const outerIndex = index++;\n innerFrom(project(value, outerIndex)).subscribe((innerSubscriber = createOperatorSubscriber(subscriber, (innerValue) => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue), () => {\n innerSubscriber = null;\n checkComplete();\n })));\n }, () => {\n isComplete = true;\n checkComplete();\n }));\n });\n}\n","export const timeoutProvider = {\n setTimeout(handler, timeout, ...args) {\n const { delegate } = timeoutProvider;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {\n return delegate.setTimeout(handler, timeout, ...args);\n }\n return setTimeout(handler, timeout, ...args);\n },\n clearTimeout(handle) {\n const { delegate } = timeoutProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);\n },\n delegate: undefined,\n};\n","export function getSymbolIterator() {\n if (typeof Symbol !== 'function' || !Symbol.iterator) {\n return '@@iterator';\n }\n return Symbol.iterator;\n}\nexport const iterator = getSymbolIterator();\n","export const observable = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();\n","import { isFunction } from './isFunction';\nimport { isScheduler } from './isScheduler';\nfunction last(arr) {\n return arr[arr.length - 1];\n}\nexport function popResultSelector(args) {\n return isFunction(last(args)) ? args.pop() : undefined;\n}\nexport function popScheduler(args) {\n return isScheduler(last(args)) ? args.pop() : undefined;\n}\nexport function popNumber(args, defaultValue) {\n return typeof last(args) === 'number' ? args.pop() : defaultValue;\n}\n","import { isFunction } from './isFunction';\nexport function isScheduler(value) {\n return value && isFunction(value.schedule);\n}\n","const { isArray } = Array;\nconst { getPrototypeOf, prototype: objectProto, keys: getKeys } = Object;\nexport function argsArgArrayOrObject(args) {\n if (args.length === 1) {\n const first = args[0];\n if (isArray(first)) {\n return { args: first, keys: null };\n }\n if (isPOJO(first)) {\n const keys = getKeys(first);\n return {\n args: keys.map((key) => first[key]),\n keys,\n };\n }\n }\n return { args: args, keys: null };\n}\nfunction isPOJO(obj) {\n return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;\n}\n","export function arrRemove(arr, item) {\n if (arr) {\n const index = arr.indexOf(item);\n 0 <= index && arr.splice(index, 1);\n }\n}\n","export function createErrorClass(createImpl) {\n const _super = (instance) => {\n Error.call(instance);\n instance.stack = new Error().stack;\n };\n const ctorFunc = createImpl(_super);\n ctorFunc.prototype = Object.create(Error.prototype);\n ctorFunc.prototype.constructor = ctorFunc;\n return ctorFunc;\n}\n","export function createObject(keys, values) {\n return keys.reduce((result, key, i) => ((result[key] = values[i]), result), {});\n}\n","import { config } from '../config';\nlet context = null;\nexport function errorContext(cb) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n const isRoot = !context;\n if (isRoot) {\n context = { errorThrown: false, error: null };\n }\n cb();\n if (isRoot) {\n const { errorThrown, error } = context;\n context = null;\n if (errorThrown) {\n throw error;\n }\n }\n }\n else {\n cb();\n }\n}\nexport function captureError(err) {\n if (config.useDeprecatedSynchronousErrorHandling && context) {\n context.errorThrown = true;\n context.error = err;\n }\n}\n","export function executeSchedule(parentSubscription, scheduler, work, delay = 0, repeat = false) {\n const scheduleSubscription = scheduler.schedule(function () {\n work();\n if (repeat) {\n parentSubscription.add(this.schedule(null, delay));\n }\n else {\n this.unsubscribe();\n }\n }, delay);\n parentSubscription.add(scheduleSubscription);\n if (!repeat) {\n return scheduleSubscription;\n }\n}\n","export function identity(x) {\n return x;\n}\n","export const isArrayLike = ((x) => x && typeof x.length === 'number' && typeof x !== 'function');\n","import { isFunction } from './isFunction';\nexport function isAsyncIterable(obj) {\n return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);\n}\n","export function isFunction(value) {\n return typeof value === 'function';\n}\n","import { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\nexport function isInteropObservable(input) {\n return isFunction(input[Symbol_observable]);\n}\n","import { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from './isFunction';\nexport function isIterable(input) {\n return isFunction(input === null || input === void 0 ? void 0 : input[Symbol_iterator]);\n}\n","import { isFunction } from \"./isFunction\";\nexport function isPromise(value) {\n return isFunction(value === null || value === void 0 ? void 0 : value.then);\n}\n","import { __asyncGenerator, __await } from \"tslib\";\nimport { isFunction } from './isFunction';\nexport function readableStreamLikeToAsyncGenerator(readableStream) {\n return __asyncGenerator(this, arguments, function* readableStreamLikeToAsyncGenerator_1() {\n const reader = readableStream.getReader();\n try {\n while (true) {\n const { value, done } = yield __await(reader.read());\n if (done) {\n return yield __await(void 0);\n }\n yield yield __await(value);\n }\n }\n finally {\n reader.releaseLock();\n }\n });\n}\nexport function isReadableStreamLike(obj) {\n return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);\n}\n","import { isFunction } from './isFunction';\nexport function hasLift(source) {\n return isFunction(source === null || source === void 0 ? void 0 : source.lift);\n}\nexport function operate(init) {\n return (source) => {\n if (hasLift(source)) {\n return source.lift(function (liftedSource) {\n try {\n return init(liftedSource, this);\n }\n catch (err) {\n this.error(err);\n }\n });\n }\n throw new TypeError('Unable to lift unknown Observable type');\n };\n}\n","import { map } from \"../operators/map\";\nconst { isArray } = Array;\nfunction callOrApply(fn, args) {\n return isArray(args) ? fn(...args) : fn(args);\n}\nexport function mapOneOrManyArgs(fn) {\n return map(args => callOrApply(fn, args));\n}\n","export function noop() { }\n","import { identity } from './identity';\nexport function pipe(...fns) {\n return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n if (fns.length === 0) {\n return identity;\n }\n if (fns.length === 1) {\n return fns[0];\n }\n return function piped(input) {\n return fns.reduce((prev, fn) => fn(prev), input);\n };\n}\n","import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\nexport function reportUnhandledError(err) {\n timeoutProvider.setTimeout(() => {\n const { onUnhandledError } = config;\n if (onUnhandledError) {\n onUnhandledError(err);\n }\n else {\n throw err;\n }\n });\n}\n","export function createInvalidObservableTypeError(input) {\n return new TypeError(`You provided ${input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`);\n}\n","/**\n * @license React\n * scheduler.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';function f(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<g(e,b))a[d]=b,a[c]=e,c=d;else break a}}function h(a){return 0===a.length?null:a[0]}function k(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length,w=e>>>1;d<w;){var m=2*(d+1)-1,C=a[m],n=m+1,x=a[n];if(0>g(C,c))n<e&&0>g(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(n<e&&0>g(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Q<P?!1:!0}function R(){if(null!==O){var a=exports.unstable_now();Q=a;var b=!0;try{b=O(!0,a)}finally{b?S():(N=!1,O=null)}}else N=!1}var S;if(\"function\"===typeof F)S=function(){F(R)};else if(\"undefined\"!==typeof MessageChannel){var T=new MessageChannel,U=T.port2;T.port1.onmessage=R;S=function(){U.postMessage(null)}}else S=function(){D(R,0)};function I(a){O=a;N||(N=!0,S())}function K(a,b){L=D(function(){a(exports.unstable_now())},b)}\nexports.unstable_IdlePriority=5;exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(a){a.callback=null};exports.unstable_continueExecution=function(){A||z||(A=!0,I(J))};\nexports.unstable_forceFrameRate=function(a){0>a||125<a?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):P=0<a?Math.floor(1E3/a):5};exports.unstable_getCurrentPriorityLevel=function(){return y};exports.unstable_getFirstCallbackNode=function(){return h(r)};exports.unstable_next=function(a){switch(y){case 1:case 2:case 3:var b=3;break;default:b=y}var c=y;y=b;try{return a()}finally{y=c}};exports.unstable_pauseExecution=function(){};\nexports.unstable_requestPaint=function(){};exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=y;y=a;try{return b()}finally{y=c}};\nexports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();\"object\"===typeof c&&null!==c?(c=c.delay,c=\"number\"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:u++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","//\n\nmodule.exports = function shallowEqual(objA, objB, compare, compareContext) {\n var ret = compare ? compare.call(compareContext, objA, objB) : void 0;\n\n if (ret !== void 0) {\n return !!ret;\n }\n\n if (objA === objB) {\n return true;\n }\n\n if (typeof objA !== \"object\" || !objA || typeof objB !== \"object\" || !objB) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);\n\n // Test for A's keys different from B.\n for (var idx = 0; idx < keysA.length; idx++) {\n var key = keysA[idx];\n\n if (!bHasOwnProperty(key)) {\n return false;\n }\n\n var valueA = objA[key];\n var valueB = objB[key];\n\n ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;\n\n if (ret === false || (ret === void 0 && valueA !== valueB)) {\n return false;\n }\n }\n\n return true;\n};\n","'use strict';\nmodule.exports = require('./lib/index');\n","'use strict';\n\nvar randomFromSeed = require('./random/random-from-seed');\n\nvar ORIGINAL = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-';\nvar alphabet;\nvar previousSeed;\n\nvar shuffled;\n\nfunction reset() {\n shuffled = false;\n}\n\nfunction setCharacters(_alphabet_) {\n if (!_alphabet_) {\n if (alphabet !== ORIGINAL) {\n alphabet = ORIGINAL;\n reset();\n }\n return;\n }\n\n if (_alphabet_ === alphabet) {\n return;\n }\n\n if (_alphabet_.length !== ORIGINAL.length) {\n throw new Error('Custom alphabet for shortid must be ' + ORIGINAL.length + ' unique characters. You submitted ' + _alphabet_.length + ' characters: ' + _alphabet_);\n }\n\n var unique = _alphabet_.split('').filter(function(item, ind, arr){\n return ind !== arr.lastIndexOf(item);\n });\n\n if (unique.length) {\n throw new Error('Custom alphabet for shortid must be ' + ORIGINAL.length + ' unique characters. These characters were not unique: ' + unique.join(', '));\n }\n\n alphabet = _alphabet_;\n reset();\n}\n\nfunction characters(_alphabet_) {\n setCharacters(_alphabet_);\n return alphabet;\n}\n\nfunction setSeed(seed) {\n randomFromSeed.seed(seed);\n if (previousSeed !== seed) {\n reset();\n previousSeed = seed;\n }\n}\n\nfunction shuffle() {\n if (!alphabet) {\n setCharacters(ORIGINAL);\n }\n\n var sourceArray = alphabet.split('');\n var targetArray = [];\n var r = randomFromSeed.nextValue();\n var characterIndex;\n\n while (sourceArray.length > 0) {\n r = randomFromSeed.nextValue();\n characterIndex = Math.floor(r * sourceArray.length);\n targetArray.push(sourceArray.splice(characterIndex, 1)[0]);\n }\n return targetArray.join('');\n}\n\nfunction getShuffled() {\n if (shuffled) {\n return shuffled;\n }\n shuffled = shuffle();\n return shuffled;\n}\n\n/**\n * lookup shuffled letter\n * @param index\n * @returns {string}\n */\nfunction lookup(index) {\n var alphabetShuffled = getShuffled();\n return alphabetShuffled[index];\n}\n\nfunction get () {\n return alphabet || ORIGINAL;\n}\n\nmodule.exports = {\n get: get,\n characters: characters,\n seed: setSeed,\n lookup: lookup,\n shuffled: getShuffled\n};\n","'use strict';\n\nvar generate = require('./generate');\nvar alphabet = require('./alphabet');\n\n// Ignore all milliseconds before a certain time to reduce the size of the date entropy without sacrificing uniqueness.\n// This number should be updated every year or so to keep the generated id short.\n// To regenerate `new Date() - 0` and bump the version. Always bump the version!\nvar REDUCE_TIME = 1567752802062;\n\n// don't change unless we change the algos or REDUCE_TIME\n// must be an integer and less than 16\nvar version = 7;\n\n// Counter is used when shortid is called multiple times in one second.\nvar counter;\n\n// Remember the last time shortid was called in case counter is needed.\nvar previousSeconds;\n\n/**\n * Generate unique id\n * Returns string id\n */\nfunction build(clusterWorkerId) {\n var str = '';\n\n var seconds = Math.floor((Date.now() - REDUCE_TIME) * 0.001);\n\n if (seconds === previousSeconds) {\n counter++;\n } else {\n counter = 0;\n previousSeconds = seconds;\n }\n\n str = str + generate(version);\n str = str + generate(clusterWorkerId);\n if (counter > 0) {\n str = str + generate(counter);\n }\n str = str + generate(seconds);\n return str;\n}\n\nmodule.exports = build;\n","'use strict';\n\nvar alphabet = require('./alphabet');\nvar random = require('./random/random-byte');\nvar format = require('nanoid/format');\n\nfunction generate(number) {\n var loopCounter = 0;\n var done;\n\n var str = '';\n\n while (!done) {\n str = str + format(random, alphabet.get(), 1);\n done = number < (Math.pow(16, loopCounter + 1 ) );\n loopCounter++;\n }\n return str;\n}\n\nmodule.exports = generate;\n","'use strict';\n\nvar alphabet = require('./alphabet');\nvar build = require('./build');\nvar isValid = require('./is-valid');\n\n// if you are using cluster or multiple servers use this to make each instance\n// has a unique value for worker\n// Note: I don't know if this is automatically set when using third\n// party cluster solutions such as pm2.\nvar clusterWorkerId = require('./util/cluster-worker-id') || 0;\n\n/**\n * Set the seed.\n * Highly recommended if you don't want people to try to figure out your id schema.\n * exposed as shortid.seed(int)\n * @param seed Integer value to seed the random alphabet. ALWAYS USE THE SAME SEED or you might get overlaps.\n */\nfunction seed(seedValue) {\n alphabet.seed(seedValue);\n return module.exports;\n}\n\n/**\n * Set the cluster worker or machine id\n * exposed as shortid.worker(int)\n * @param workerId worker must be positive integer. Number less than 16 is recommended.\n * returns shortid module so it can be chained.\n */\nfunction worker(workerId) {\n clusterWorkerId = workerId;\n return module.exports;\n}\n\n/**\n *\n * sets new characters to use in the alphabet\n * returns the shuffled alphabet\n */\nfunction characters(newCharacters) {\n if (newCharacters !== undefined) {\n alphabet.characters(newCharacters);\n }\n\n return alphabet.shuffled();\n}\n\n/**\n * Generate unique id\n * Returns string id\n */\nfunction generate() {\n return build(clusterWorkerId);\n}\n\n// Export all other functions as properties of the generate function\nmodule.exports = generate;\nmodule.exports.generate = generate;\nmodule.exports.seed = seed;\nmodule.exports.worker = worker;\nmodule.exports.characters = characters;\nmodule.exports.isValid = isValid;\n","'use strict';\nvar alphabet = require('./alphabet');\n\nfunction isShortId(id) {\n if (!id || typeof id !== 'string' || id.length < 6 ) {\n return false;\n }\n\n var nonAlphabetic = new RegExp('[^' +\n alphabet.get().replace(/[|\\\\{}()[\\]^$+*?.-]/g, '\\\\$&') +\n ']');\n return !nonAlphabetic.test(id);\n}\n\nmodule.exports = isShortId;\n","'use strict';\n\nvar crypto = typeof window === 'object' && (window.crypto || window.msCrypto); // IE 11 uses window.msCrypto\n\nvar randomByte;\n\nif (!crypto || !crypto.getRandomValues) {\n randomByte = function(size) {\n var bytes = [];\n for (var i = 0; i < size; i++) {\n bytes.push(Math.floor(Math.random() * 256));\n }\n return bytes;\n };\n} else {\n randomByte = function(size) {\n return crypto.getRandomValues(new Uint8Array(size));\n };\n}\n\nmodule.exports = randomByte;\n","'use strict';\n\n// Found this seed-based random generator somewhere\n// Based on The Central Randomizer 1.3 (C) 1997 by Paul Houle (houle@msc.cornell.edu)\n\nvar seed = 1;\n\n/**\n * return a random number based on a seed\n * @param seed\n * @returns {number}\n */\nfunction getNextValue() {\n seed = (seed * 9301 + 49297) % 233280;\n return seed/(233280.0);\n}\n\nfunction setSeed(_seed_) {\n seed = _seed_;\n}\n\nmodule.exports = {\n nextValue: getNextValue,\n seed: setSeed\n};\n","'use strict';\n\nmodule.exports = 0;\n","export var MS = '-ms-'\nexport var MOZ = '-moz-'\nexport var WEBKIT = '-webkit-'\n\nexport var COMMENT = 'comm'\nexport var RULESET = 'rule'\nexport var DECLARATION = 'decl'\n\nexport var PAGE = '@page'\nexport var MEDIA = '@media'\nexport var IMPORT = '@import'\nexport var CHARSET = '@charset'\nexport var VIEWPORT = '@viewport'\nexport var SUPPORTS = '@supports'\nexport var DOCUMENT = '@document'\nexport var NAMESPACE = '@namespace'\nexport var KEYFRAMES = '@keyframes'\nexport var FONT_FACE = '@font-face'\nexport var COUNTER_STYLE = '@counter-style'\nexport var FONT_FEATURE_VALUES = '@font-feature-values'\nexport var LAYER = '@layer'\nexport var SCOPE = '@scope'\n","/**\n * @param {number}\n * @return {number}\n */\nexport var abs = Math.abs\n\n/**\n * @param {number}\n * @return {string}\n */\nexport var from = String.fromCharCode\n\n/**\n * @param {object}\n * @return {object}\n */\nexport var assign = Object.assign\n\n/**\n * @param {string} value\n * @param {number} length\n * @return {number}\n */\nexport function hash (value, length) {\n\treturn charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0\n}\n\n/**\n * @param {string} value\n * @return {string}\n */\nexport function trim (value) {\n\treturn value.trim()\n}\n\n/**\n * @param {string} value\n * @param {RegExp} pattern\n * @return {string?}\n */\nexport function match (value, pattern) {\n\treturn (value = pattern.exec(value)) ? value[0] : value\n}\n\n/**\n * @param {string} value\n * @param {(string|RegExp)} pattern\n * @param {string} replacement\n * @return {string}\n */\nexport function replace (value, pattern, replacement) {\n\treturn value.replace(pattern, replacement)\n}\n\n/**\n * @param {string} value\n * @param {string} search\n * @param {number} position\n * @return {number}\n */\nexport function indexof (value, search, position) {\n\treturn value.indexOf(search, position)\n}\n\n/**\n * @param {string} value\n * @param {number} index\n * @return {number}\n */\nexport function charat (value, index) {\n\treturn value.charCodeAt(index) | 0\n}\n\n/**\n * @param {string} value\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function substr (value, begin, end) {\n\treturn value.slice(begin, end)\n}\n\n/**\n * @param {string} value\n * @return {number}\n */\nexport function strlen (value) {\n\treturn value.length\n}\n\n/**\n * @param {any[]} value\n * @return {number}\n */\nexport function sizeof (value) {\n\treturn value.length\n}\n\n/**\n * @param {any} value\n * @param {any[]} array\n * @return {any}\n */\nexport function append (value, array) {\n\treturn array.push(value), value\n}\n\n/**\n * @param {string[]} array\n * @param {function} callback\n * @return {string}\n */\nexport function combine (array, callback) {\n\treturn array.map(callback).join('')\n}\n\n/**\n * @param {string[]} array\n * @param {RegExp} pattern\n * @return {string[]}\n */\nexport function filter (array, pattern) {\n\treturn array.filter(function (value) { return !match(value, pattern) })\n}\n","import {from, trim, charat, strlen, substr, append, assign} from './Utility.js'\n\nexport var line = 1\nexport var column = 1\nexport var length = 0\nexport var position = 0\nexport var character = 0\nexport var characters = ''\n\n/**\n * @param {string} value\n * @param {object | null} root\n * @param {object | null} parent\n * @param {string} type\n * @param {string[] | string} props\n * @param {object[] | string} children\n * @param {object[]} siblings\n * @param {number} length\n */\nexport function node (value, root, parent, type, props, children, length, siblings) {\n\treturn {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: '', siblings: siblings}\n}\n\n/**\n * @param {object} root\n * @param {object} props\n * @return {object}\n */\nexport function copy (root, props) {\n\treturn assign(node('', null, null, '', null, null, 0, root.siblings), root, {length: -root.length}, props)\n}\n\n/**\n * @param {object} root\n */\nexport function lift (root) {\n\twhile (root.root)\n\t\troot = copy(root.root, {children: [root]})\n\n\tappend(root, root.siblings)\n}\n\n/**\n * @return {number}\n */\nexport function char () {\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function prev () {\n\tcharacter = position > 0 ? charat(characters, --position) : 0\n\n\tif (column--, character === 10)\n\t\tcolumn = 1, line--\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function next () {\n\tcharacter = position < length ? charat(characters, position++) : 0\n\n\tif (column++, character === 10)\n\t\tcolumn = 1, line++\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function peek () {\n\treturn charat(characters, position)\n}\n\n/**\n * @return {number}\n */\nexport function caret () {\n\treturn position\n}\n\n/**\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function slice (begin, end) {\n\treturn substr(characters, begin, end)\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function token (type) {\n\tswitch (type) {\n\t\t// \\0 \\t \\n \\r \\s whitespace token\n\t\tcase 0: case 9: case 10: case 13: case 32:\n\t\t\treturn 5\n\t\t// ! + , / > @ ~ isolate token\n\t\tcase 33: case 43: case 44: case 47: case 62: case 64: case 126:\n\t\t// ; { } breakpoint token\n\t\tcase 59: case 123: case 125:\n\t\t\treturn 4\n\t\t// : accompanied token\n\t\tcase 58:\n\t\t\treturn 3\n\t\t// \" ' ( [ opening delimit token\n\t\tcase 34: case 39: case 40: case 91:\n\t\t\treturn 2\n\t\t// ) ] closing delimit token\n\t\tcase 41: case 93:\n\t\t\treturn 1\n\t}\n\n\treturn 0\n}\n\n/**\n * @param {string} value\n * @return {any[]}\n */\nexport function alloc (value) {\n\treturn line = column = 1, length = strlen(characters = value), position = 0, []\n}\n\n/**\n * @param {any} value\n * @return {any}\n */\nexport function dealloc (value) {\n\treturn characters = '', value\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function delimit (type) {\n\treturn trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))\n}\n\n/**\n * @param {string} value\n * @return {string[]}\n */\nexport function tokenize (value) {\n\treturn dealloc(tokenizer(alloc(value)))\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function whitespace (type) {\n\twhile (character = peek())\n\t\tif (character < 33)\n\t\t\tnext()\n\t\telse\n\t\t\tbreak\n\n\treturn token(type) > 2 || token(character) > 3 ? '' : ' '\n}\n\n/**\n * @param {string[]} children\n * @return {string[]}\n */\nexport function tokenizer (children) {\n\twhile (next())\n\t\tswitch (token(character)) {\n\t\t\tcase 0: append(identifier(position - 1), children)\n\t\t\t\tbreak\n\t\t\tcase 2: append(delimit(character), children)\n\t\t\t\tbreak\n\t\t\tdefault: append(from(character), children)\n\t\t}\n\n\treturn children\n}\n\n/**\n * @param {number} index\n * @param {number} count\n * @return {string}\n */\nexport function escaping (index, count) {\n\twhile (--count && next())\n\t\t// not 0-9 A-F a-f\n\t\tif (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))\n\t\t\tbreak\n\n\treturn slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function delimiter (type) {\n\twhile (next())\n\t\tswitch (character) {\n\t\t\t// ] ) \" '\n\t\t\tcase type:\n\t\t\t\treturn position\n\t\t\t// \" '\n\t\t\tcase 34: case 39:\n\t\t\t\tif (type !== 34 && type !== 39)\n\t\t\t\t\tdelimiter(character)\n\t\t\t\tbreak\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (type === 41)\n\t\t\t\t\tdelimiter(type)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tnext()\n\t\t\t\tbreak\n\t\t}\n\n\treturn position\n}\n\n/**\n * @param {number} type\n * @param {number} index\n * @return {number}\n */\nexport function commenter (type, index) {\n\twhile (next())\n\t\t// //\n\t\tif (type + character === 47 + 10)\n\t\t\tbreak\n\t\t// /*\n\t\telse if (type + character === 42 + 42 && peek() === 47)\n\t\t\tbreak\n\n\treturn '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())\n}\n\n/**\n * @param {number} index\n * @return {string}\n */\nexport function identifier (index) {\n\twhile (!token(peek()))\n\t\tnext()\n\n\treturn slice(index, position)\n}\n","import {IMPORT, LAYER, COMMENT, RULESET, DECLARATION, KEYFRAMES} from './Enum.js'\nimport {strlen} from './Utility.js'\n\n/**\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function serialize (children, callback) {\n\tvar output = ''\n\n\tfor (var i = 0; i < children.length; i++)\n\t\toutput += callback(children[i], i, children, callback) || ''\n\n\treturn output\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function stringify (element, index, children, callback) {\n\tswitch (element.type) {\n\t\tcase LAYER: if (element.children.length) break\n\t\tcase IMPORT: case DECLARATION: return element.return = element.return || element.value\n\t\tcase COMMENT: return ''\n\t\tcase KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'\n\t\tcase RULESET: if (!strlen(element.value = element.props.join(','))) return ''\n\t}\n\n\treturn strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''\n}\n","import {MS, MOZ, WEBKIT} from './Enum.js'\nimport {hash, charat, strlen, indexof, replace, substr, match} from './Utility.js'\n\n/**\n * @param {string} value\n * @param {number} length\n * @param {object[]} children\n * @return {string}\n */\nexport function prefix (value, length, children) {\n\tswitch (hash(value, length)) {\n\t\t// color-adjust\n\t\tcase 5103:\n\t\t\treturn WEBKIT + 'print-' + value + value\n\t\t// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)\n\t\tcase 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:\n\t\t// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break\n\t\tcase 5572: case 6356: case 5844: case 3191: case 6645: case 3005:\n\t\t// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,\n\t\tcase 6391: case 5879: case 5623: case 6135: case 4599: case 4855:\n\t\t// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)\n\t\tcase 4215: case 6389: case 5109: case 5365: case 5621: case 3829:\n\t\t\treturn WEBKIT + value + value\n\t\t// tab-size\n\t\tcase 4789:\n\t\t\treturn MOZ + value + value\n\t\t// appearance, user-select, transform, hyphens, text-size-adjust\n\t\tcase 5349: case 4246: case 4810: case 6968: case 2756:\n\t\t\treturn WEBKIT + value + MOZ + value + MS + value + value\n\t\t// writing-mode\n\t\tcase 5936:\n\t\t\tswitch (charat(value, length + 11)) {\n\t\t\t\t// vertical-l(r)\n\t\t\t\tcase 114:\n\t\t\t\t\treturn WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb') + value\n\t\t\t\t// vertical-r(l)\n\t\t\t\tcase 108:\n\t\t\t\t\treturn WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb-rl') + value\n\t\t\t\t// horizontal(-)tb\n\t\t\t\tcase 45:\n\t\t\t\t\treturn WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'lr') + value\n\t\t\t\t// default: fallthrough to below\n\t\t\t}\n\t\t// flex, flex-direction, scroll-snap-type, writing-mode\n\t\tcase 6828: case 4268: case 2903:\n\t\t\treturn WEBKIT + value + MS + value + value\n\t\t// order\n\t\tcase 6165:\n\t\t\treturn WEBKIT + value + MS + 'flex-' + value + value\n\t\t// align-items\n\t\tcase 5187:\n\t\t\treturn WEBKIT + value + replace(value, /(\\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value\n\t\t// align-self\n\t\tcase 5443:\n\t\t\treturn WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/g, '') + (!match(value, /flex-|baseline/) ? MS + 'grid-row-' + replace(value, /flex-|-self/g, '') : '') + value\n\t\t// align-content\n\t\tcase 4675:\n\t\t\treturn WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/g, '') + value\n\t\t// flex-shrink\n\t\tcase 5548:\n\t\t\treturn WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value\n\t\t// flex-basis\n\t\tcase 5292:\n\t\t\treturn WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value\n\t\t// flex-grow\n\t\tcase 6060:\n\t\t\treturn WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value\n\t\t// transition\n\t\tcase 4554:\n\t\t\treturn WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value\n\t\t// cursor\n\t\tcase 6187:\n\t\t\treturn replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value\n\t\t// background, background-image\n\t\tcase 5495: case 3959:\n\t\t\treturn replace(value, /(image-set\\([^]*)/, WEBKIT + '$1' + '$`$1')\n\t\t// justify-content\n\t\tcase 4968:\n\t\t\treturn replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value\n\t\t// justify-self\n\t\tcase 4200:\n\t\t\tif (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value\n\t\t\tbreak\n\t\t// grid-template-(columns|rows)\n\t\tcase 2592: case 3360:\n\t\t\treturn MS + replace(value, 'template-', '') + value\n\t\t// grid-(row|column)-start\n\t\tcase 4384: case 3616:\n\t\t\tif (children && children.some(function (element, index) { return length = index, match(element.props, /grid-\\w+-end/) })) {\n\t\t\t\treturn ~indexof(value + (children = children[length].value), 'span', 0) ? value : (MS + replace(value, '-start', '') + value + MS + 'grid-row-span:' + (~indexof(children, 'span', 0) ? match(children, /\\d+/) : +match(children, /\\d+/) - +match(value, /\\d+/)) + ';')\n\t\t\t}\n\t\t\treturn MS + replace(value, '-start', '') + value\n\t\t// grid-(row|column)-end\n\t\tcase 4896: case 4128:\n\t\t\treturn (children && children.some(function (element) { return match(element.props, /grid-\\w+-start/) })) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value\n\t\t// (margin|padding)-inline-(start|end)\n\t\tcase 4095: case 3583: case 4068: case 2532:\n\t\t\treturn replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value\n\t\t// (min|max)?(width|height|inline-size|block-size)\n\t\tcase 8116: case 7059: case 5753: case 5535:\n\t\tcase 5445: case 5701: case 4933: case 4677:\n\t\tcase 5533: case 5789: case 5021: case 4765:\n\t\t\t// stretch, max-content, min-content, fill-available\n\t\t\tif (strlen(value) - 1 - length > 6)\n\t\t\t\tswitch (charat(value, length + 1)) {\n\t\t\t\t\t// (m)ax-content, (m)in-content\n\t\t\t\t\tcase 109:\n\t\t\t\t\t\t// -\n\t\t\t\t\t\tif (charat(value, length + 4) !== 45)\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t// (f)ill-available, (f)it-content\n\t\t\t\t\tcase 102:\n\t\t\t\t\t\treturn replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value\n\t\t\t\t\t// (s)tretch\n\t\t\t\t\tcase 115:\n\t\t\t\t\t\treturn ~indexof(value, 'stretch', 0) ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value\n\t\t\t\t}\n\t\t\tbreak\n\t\t// grid-(column|row)\n\t\tcase 5152: case 5920:\n\t\t\treturn replace(value, /(.+?):(\\d+)(\\s*\\/\\s*(span)?\\s*(\\d+))?(.*)/, function (_, a, b, c, d, e, f) { return (MS + a + ':' + b + f) + (c ? (MS + a + '-span:' + (d ? e : +e - +b)) + f : '') + value })\n\t\t// position: sticky\n\t\tcase 4949:\n\t\t\t// stick(y)?\n\t\t\tif (charat(value, length + 6) === 121)\n\t\t\t\treturn replace(value, ':', ':' + WEBKIT) + value\n\t\t\tbreak\n\t\t// display: (flex|inline-flex|grid|inline-grid)\n\t\tcase 6444:\n\t\t\tswitch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {\n\t\t\t\t// (inline-)?fle(x)\n\t\t\t\tcase 120:\n\t\t\t\t\treturn replace(value, /(.+:)([^;\\s!]+)(;|(\\s+)?!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value\n\t\t\t\t// (inline-)?gri(d)\n\t\t\t\tcase 100:\n\t\t\t\t\treturn replace(value, ':', ':' + MS) + value\n\t\t\t}\n\t\t\tbreak\n\t\t// scroll-margin, scroll-margin-(top|right|bottom|left)\n\t\tcase 5719: case 2647: case 2135: case 3927: case 2391:\n\t\t\treturn replace(value, 'scroll-', 'scroll-snap-') + value\n\t}\n\n\treturn value\n}\n","import {MS, MOZ, WEBKIT, RULESET, KEYFRAMES, DECLARATION} from './Enum.js'\nimport {match, charat, substr, strlen, sizeof, replace, combine, filter, assign} from './Utility.js'\nimport {copy, lift, tokenize} from './Tokenizer.js'\nimport {serialize} from './Serializer.js'\nimport {prefix} from './Prefixer.js'\n\n/**\n * @param {function[]} collection\n * @return {function}\n */\nexport function middleware (collection) {\n\tvar length = sizeof(collection)\n\n\treturn function (element, index, children, callback) {\n\t\tvar output = ''\n\n\t\tfor (var i = 0; i < length; i++)\n\t\t\toutput += collection[i](element, index, children, callback) || ''\n\n\t\treturn output\n\t}\n}\n\n/**\n * @param {function} callback\n * @return {function}\n */\nexport function rulesheet (callback) {\n\treturn function (element) {\n\t\tif (!element.root)\n\t\t\tif (element = element.return)\n\t\t\t\tcallback(element)\n\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n */\nexport function prefixer (element, index, children, callback) {\n\tif (element.length > -1)\n\t\tif (!element.return)\n\t\t\tswitch (element.type) {\n\t\t\t\tcase DECLARATION: element.return = prefix(element.value, element.length, children)\n\t\t\t\t\treturn\n\t\t\t\tcase KEYFRAMES:\n\t\t\t\t\treturn serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)\n\t\t\t\tcase RULESET:\n\t\t\t\t\tif (element.length)\n\t\t\t\t\t\treturn combine(children = element.props, function (value) {\n\t\t\t\t\t\t\tswitch (match(value, callback = /(::plac\\w+|:read-\\w+)/)) {\n\t\t\t\t\t\t\t\t// :read-(only|write)\n\t\t\t\t\t\t\t\tcase ':read-only': case ':read-write':\n\t\t\t\t\t\t\t\t\tlift(copy(element, {props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]}))\n\t\t\t\t\t\t\t\t\tlift(copy(element, {props: [value]}))\n\t\t\t\t\t\t\t\t\tassign(element, {props: filter(children, callback)})\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t// :placeholder\n\t\t\t\t\t\t\t\tcase '::placeholder':\n\t\t\t\t\t\t\t\t\tlift(copy(element, {props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]}))\n\t\t\t\t\t\t\t\t\tlift(copy(element, {props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]}))\n\t\t\t\t\t\t\t\t\tlift(copy(element, {props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]}))\n\t\t\t\t\t\t\t\t\tlift(copy(element, {props: [value]}))\n\t\t\t\t\t\t\t\t\tassign(element, {props: filter(children, callback)})\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn ''\n\t\t\t\t\t\t})\n\t\t\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n */\nexport function namespace (element) {\n\tswitch (element.type) {\n\t\tcase RULESET:\n\t\t\telement.props = element.props.map(function (value) {\n\t\t\t\treturn combine(tokenize(value), function (value, index, children) {\n\t\t\t\t\tswitch (charat(value, 0)) {\n\t\t\t\t\t\t// \\f\n\t\t\t\t\t\tcase 12:\n\t\t\t\t\t\t\treturn substr(value, 1, strlen(value))\n\t\t\t\t\t\t// \\0 ( + > ~\n\t\t\t\t\t\tcase 0: case 40: case 43: case 62: case 126:\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase 58:\n\t\t\t\t\t\t\tif (children[++index] === 'global')\n\t\t\t\t\t\t\t\tchildren[index] = '', children[++index] = '\\f' + substr(children[index], index = 1, -1)\n\t\t\t\t\t\t// \\s\n\t\t\t\t\t\tcase 32:\n\t\t\t\t\t\t\treturn index === 1 ? '' : value\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tswitch (index) {\n\t\t\t\t\t\t\t\tcase 0: element = value\n\t\t\t\t\t\t\t\t\treturn sizeof(children) > 1 ? '' : value\n\t\t\t\t\t\t\t\tcase index = sizeof(children) - 1: case 2:\n\t\t\t\t\t\t\t\t\treturn index === 2 ? value + element + element : value + element\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t}\n}\n","import {COMMENT, RULESET, DECLARATION} from './Enum.js'\nimport {abs, charat, trim, from, sizeof, strlen, substr, append, replace, indexof} from './Utility.js'\nimport {node, char, prev, next, peek, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js'\n\n/**\n * @param {string} value\n * @return {object[]}\n */\nexport function compile (value) {\n\treturn dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {string[]} rule\n * @param {string[]} rules\n * @param {string[]} rulesets\n * @param {number[]} pseudo\n * @param {number[]} points\n * @param {string[]} declarations\n * @return {object}\n */\nexport function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {\n\tvar index = 0\n\tvar offset = 0\n\tvar length = pseudo\n\tvar atrule = 0\n\tvar property = 0\n\tvar previous = 0\n\tvar variable = 1\n\tvar scanning = 1\n\tvar ampersand = 1\n\tvar character = 0\n\tvar type = ''\n\tvar props = rules\n\tvar children = rulesets\n\tvar reference = rule\n\tvar characters = type\n\n\twhile (scanning)\n\t\tswitch (previous = character, character = next()) {\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (previous != 108 && charat(characters, length - 1) == 58) {\n\t\t\t\t\tif (indexof(characters += replace(delimit(character), '&', '&\\f'), '&\\f', abs(index ? points[index - 1] : 0)) != -1)\n\t\t\t\t\t\tampersand = -1\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t// \" ' [\n\t\t\tcase 34: case 39: case 91:\n\t\t\t\tcharacters += delimit(character)\n\t\t\t\tbreak\n\t\t\t// \\t \\n \\r \\s\n\t\t\tcase 9: case 10: case 13: case 32:\n\t\t\t\tcharacters += whitespace(previous)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tcharacters += escaping(caret() - 1, 7)\n\t\t\t\tcontinue\n\t\t\t// /\n\t\t\tcase 47:\n\t\t\t\tswitch (peek()) {\n\t\t\t\t\tcase 42: case 47:\n\t\t\t\t\t\tappend(comment(commenter(next(), caret()), root, parent, declarations), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcharacters += '/'\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t// {\n\t\t\tcase 123 * variable:\n\t\t\t\tpoints[index++] = strlen(characters) * ampersand\n\t\t\t// } ; \\0\n\t\t\tcase 125 * variable: case 59: case 0:\n\t\t\t\tswitch (character) {\n\t\t\t\t\t// \\0 }\n\t\t\t\t\tcase 0: case 125: scanning = 0\n\t\t\t\t\t// ;\n\t\t\t\t\tcase 59 + offset: if (ampersand == -1) characters = replace(characters, /\\f/g, '')\n\t\t\t\t\t\tif (property > 0 && (strlen(characters) - length))\n\t\t\t\t\t\t\tappend(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @ ;\n\t\t\t\t\tcase 59: characters += ';'\n\t\t\t\t\t// { rule/at-rule\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tappend(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets)\n\n\t\t\t\t\t\tif (character === 123)\n\t\t\t\t\t\t\tif (offset === 0)\n\t\t\t\t\t\t\t\tparse(characters, root, reference, reference, props, rulesets, length, points, children)\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tswitch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {\n\t\t\t\t\t\t\t\t\t// d l m s\n\t\t\t\t\t\t\t\t\tcase 100: case 108: case 109: case 115:\n\t\t\t\t\t\t\t\t\t\tparse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tparse(characters, reference, reference, reference, [''], children, 0, points, children)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tindex = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo\n\t\t\t\tbreak\n\t\t\t// :\n\t\t\tcase 58:\n\t\t\t\tlength = 1 + strlen(characters), property = previous\n\t\t\tdefault:\n\t\t\t\tif (variable < 1)\n\t\t\t\t\tif (character == 123)\n\t\t\t\t\t\t--variable\n\t\t\t\t\telse if (character == 125 && variable++ == 0 && prev() == 125)\n\t\t\t\t\t\tcontinue\n\n\t\t\t\tswitch (characters += from(character), character * variable) {\n\t\t\t\t\t// &\n\t\t\t\t\tcase 38:\n\t\t\t\t\t\tampersand = offset > 0 ? 1 : (characters += '\\f', -1)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// ,\n\t\t\t\t\tcase 44:\n\t\t\t\t\t\tpoints[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @\n\t\t\t\t\tcase 64:\n\t\t\t\t\t\t// -\n\t\t\t\t\t\tif (peek() === 45)\n\t\t\t\t\t\t\tcharacters += delimit(next())\n\n\t\t\t\t\t\tatrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// -\n\t\t\t\t\tcase 45:\n\t\t\t\t\t\tif (previous === 45 && strlen(characters) == 2)\n\t\t\t\t\t\t\tvariable = 0\n\t\t\t\t}\n\t\t}\n\n\treturn rulesets\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} index\n * @param {number} offset\n * @param {string[]} rules\n * @param {number[]} points\n * @param {string} type\n * @param {string[]} props\n * @param {string[]} children\n * @param {number} length\n * @param {object[]} siblings\n * @return {object}\n */\nexport function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {\n\tvar post = offset - 1\n\tvar rule = offset === 0 ? rules : ['']\n\tvar size = sizeof(rule)\n\n\tfor (var i = 0, j = 0, k = 0; i < index; ++i)\n\t\tfor (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)\n\t\t\tif (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\\f/g, rule[x])))\n\t\t\t\tprops[k++] = z\n\n\treturn node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings)\n}\n\n/**\n * @param {number} value\n * @param {object} root\n * @param {object?} parent\n * @param {object[]} siblings\n * @return {object}\n */\nexport function comment (value, root, parent, siblings) {\n\treturn node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings)\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} length\n * @param {object[]} siblings\n * @return {object}\n */\nexport function declaration (value, root, parent, length, siblings) {\n\treturn node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings)\n}\n","var unitlessKeys = {\n animationIterationCount: 1,\n aspectRatio: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\nexport { unitlessKeys as default };\n","import{__spreadArray as e,__assign as t}from\"tslib\";import n from\"@emotion/is-prop-valid\";import o,{useRef as r,useState as s,useMemo as i,useEffect as a,useContext as c,useDebugValue as l,createElement as u}from\"react\";import p from\"shallowequal\";import*as d from\"stylis\";import h from\"@emotion/unitless\";var f=\"undefined\"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||\"data-styled\",m=\"active\",y=\"data-styled-version\",v=\"6.1.13\",g=\"/*!sc*/\\n\",S=\"undefined\"!=typeof window&&\"HTMLElement\"in window,w=Boolean(\"boolean\"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:\"undefined\"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&\"\"!==process.env.REACT_APP_SC_DISABLE_SPEEDY?\"false\"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:\"undefined\"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&\"\"!==process.env.SC_DISABLE_SPEEDY?\"false\"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:\"production\"!==process.env.NODE_ENV),b={},E=/invalid hook call/i,N=new Set,P=function(t,n){if(\"production\"!==process.env.NODE_ENV){var o=n?' with the id of \"'.concat(n,'\"'):\"\",s=\"The component \".concat(t).concat(o,\" has been created dynamically.\\n\")+\"You may see this warning because you've called styled inside another component.\\nTo resolve this only create new StyledComponents outside of any render method and function component.\",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,e([t],n,!1))},r(),a&&!N.has(s)&&(console.warn(s),N.add(s))}catch(e){E.test(e.message)&&N.delete(s)}finally{console.error=i}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set([\"a\",\"abbr\",\"address\",\"area\",\"article\",\"aside\",\"audio\",\"b\",\"base\",\"bdi\",\"bdo\",\"big\",\"blockquote\",\"body\",\"br\",\"button\",\"canvas\",\"caption\",\"cite\",\"code\",\"col\",\"colgroup\",\"data\",\"datalist\",\"dd\",\"del\",\"details\",\"dfn\",\"dialog\",\"div\",\"dl\",\"dt\",\"em\",\"embed\",\"fieldset\",\"figcaption\",\"figure\",\"footer\",\"form\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"header\",\"hgroup\",\"hr\",\"html\",\"i\",\"iframe\",\"img\",\"input\",\"ins\",\"kbd\",\"keygen\",\"label\",\"legend\",\"li\",\"link\",\"main\",\"map\",\"mark\",\"menu\",\"menuitem\",\"meta\",\"meter\",\"nav\",\"noscript\",\"object\",\"ol\",\"optgroup\",\"option\",\"output\",\"p\",\"param\",\"picture\",\"pre\",\"progress\",\"q\",\"rp\",\"rt\",\"ruby\",\"s\",\"samp\",\"script\",\"section\",\"select\",\"small\",\"source\",\"span\",\"strong\",\"style\",\"sub\",\"summary\",\"sup\",\"table\",\"tbody\",\"td\",\"textarea\",\"tfoot\",\"th\",\"thead\",\"time\",\"tr\",\"track\",\"u\",\"ul\",\"use\",\"var\",\"video\",\"wbr\",\"circle\",\"clipPath\",\"defs\",\"ellipse\",\"foreignObject\",\"g\",\"image\",\"line\",\"linearGradient\",\"marker\",\"mask\",\"path\",\"pattern\",\"polygon\",\"polyline\",\"radialGradient\",\"rect\",\"stop\",\"svg\",\"text\",\"tspan\"]),O=/[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,\"-\").replace(D,\"\")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n=\"\";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return(j(t%k)+n).replace(T,\"$1-$2\")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z=function(e){return M(F,e)};function $(e){return x(z(e)>>>0)}function B(e){return\"production\"!==process.env.NODE_ENV&&\"string\"==typeof e&&e||e.displayName||e.name||\"Component\"}function L(e){return\"string\"==typeof e&&(\"production\"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G=\"function\"==typeof Symbol&&Symbol.for,Y=G?Symbol.for(\"react.memo\"):60115,W=G?Symbol.for(\"react.forward_ref\"):60112,q={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[W]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(e){return(\"type\"in(t=e)&&t.type.$$typeof)===Y?U:\"$$typeof\"in e?J[e.$$typeof]:q;var t}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if(\"string\"!=typeof t){if(ne){var o=te(t);o&&o!==ne&&oe(e,o,n)}var r=K(t);Q&&(r=r.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l)}catch(e){}}}}return e}function re(e){return\"function\"==typeof e}function se(e){return\"object\"==typeof e&&\"styledComponentId\"in e}function ie(e,t){return e&&t?\"\".concat(e,\" \").concat(t):e||t||\"\"}function ae(e,t){if(0===e.length)return\"\";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ce(e){return null!==e&&\"object\"==typeof e&&e.constructor.name===Object.name&&!(\"props\"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=!1),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le(e[o],t[o]);else if(ce(t))for(var o in t)e[o]=le(e[o],t[o]);return e}function ue(e,t){Object.defineProperty(e,\"toString\",{value:t})}var pe=\"production\"!==process.env.NODE_ENV?{1:\"Cannot create styled-component for component: %s.\\n\\n\",2:\"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\\n\\n- Are you trying to reuse it across renders?\\n- Are you accidentally calling collectStyles twice?\\n\\n\",3:\"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\\n\\n\",4:\"The `StyleSheetManager` expects a valid target or sheet prop!\\n\\n- Does this error occur on the client and is your target falsy?\\n- Does this error occur on the server and is the sheet falsy?\\n\\n\",5:\"The clone method cannot be used on the client!\\n\\n- Are you running in a client-like environment on the server?\\n- Are you trying to run SSR on the client?\\n\\n\",6:\"Trying to insert a new style tag, but the given Node is unmounted!\\n\\n- Are you using a custom target that isn't mounted?\\n- Does your document not have a valid head element?\\n- Have you accidentally removed a style tag manually?\\n\\n\",7:'ThemeProvider: Please return an object from your \"theme\" prop function, e.g.\\n\\n```js\\ntheme={() => ({})}\\n```\\n\\n',8:'ThemeProvider: Please make your \"theme\" prop an object.\\n\\n',9:\"Missing document `<head>`\\n\\n\",10:\"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\\n\\n\",11:\"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\\n\\n\",12:\"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\\\`\\\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\\n\\n\",13:\"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\\n\\n\",14:'ThemeProvider: \"theme\" prop is required.\\n\\n',15:\"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\\n\\n```js\\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\\n```\\n\\n\",16:\"Reached the limit of how many styled components may be created at group %s.\\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\\nas for instance in your render method then you may be running into this limitation.\\n\\n\",17:\"CSSStyleSheet could not be found on HTMLStyleElement.\\nHas styled-components' style tag been unmounted or altered by another script?\\n\",18:\"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`\"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function he(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return\"production\"===process.env.NODE_ENV?new Error(\"An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#\".concat(t,\" for more information.\").concat(n.length>0?\" Args: \".concat(n.join(\", \")):\"\")):new Error(de.apply(void 0,e([pe[t]],n,!1)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he(16,\"\".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t=\"\";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+=\"\".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=1<<30,ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;if(\"production\"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he(16,\"\".concat(t));return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e)},be=\"style[\".concat(f,\"][\").concat(y,'=\"').concat(v,'\"]'),Ee=new RegExp(\"^\".concat(f,'\\\\.g(\\\\d+)\\\\[id=\"([\\\\w\\\\d-]+)\"\\\\].*?\"([^\"]*)')),Ne=function(e,t,n){for(var o,r=n.split(\",\"),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o)},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:\"\").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r))}};function Ce(){return\"undefined\"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,o=document.createElement(\"style\"),r=function(e){var t=Array.from(e.querySelectorAll(\"style[\".concat(f,\"]\")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m),o.setAttribute(y,v);var i=Ce();return i&&o.setAttribute(\"nonce\",i),n.insertBefore(o,s),o},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode(\"\")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:\"\"},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:\"\"},e}(),De=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:\"\"},e}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,n,o){void 0===e&&(e=C),void 0===n&&(n={});var r=this;this.options=t(t({},Te),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=!1,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o=\"\",r=function(n){var r=function(e){return ve.get(e)}(n);if(void 0===r)return\"continue\";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return\"continue\";var a=\"\".concat(f,\".g\").concat(n,'[id=\"').concat(r,'\"]'),c=\"\";void 0!==s&&s.forEach(function(e){e.length>0&&(c+=\"\".concat(e,\",\"))}),o+=\"\".concat(i).concat(a,'{content:\"').concat(c,'\"}').concat(g)},s=0;s<n;s++)r(s);return o}(r)})}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this)},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(t(t({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),je=/&/g,xe=/^\\s*\\/\\/.*$/gm;function Ve(e,t){return e.map(function(e){return\"rule\"===e.type&&(e.value=\"\".concat(t,\" \").concat(e.value),e.value=e.value.replaceAll(\",\",\",\".concat(t,\" \")),e.props=e.props.map(function(e){return\"\".concat(t,\" \").concat(e)})),Array.isArray(e.children)&&\"@keyframes\"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,o,r=void 0===e?C:e,s=r.options,i=void 0===s?C:s,a=r.plugins,c=void 0===a?_:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,\"\").length>0?\".\".concat(t):e},u=c.slice();u.push(function(e){e.type===d.RULESET&&e.value.includes(\"&\")&&(e.props[0]=e.props[0].replace(je,n).replace(o,l))}),i.prefix&&u.push(d.prefixer),u.push(d.stringify);var p=function(e,r,s,a){void 0===r&&(r=\"\"),void 0===s&&(s=\"\"),void 0===a&&(a=\"&\"),t=a,n=r,o=new RegExp(\"\\\\\".concat(n,\"\\\\b\"),\"g\");var c=e.replace(xe,\"\"),l=d.compile(s||r?\"\".concat(s,\" \").concat(r,\" { \").concat(c,\" }\"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return d.serialize(l,d.middleware(u.concat(d.rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():\"\",p}var Me=new ke,ze=Fe(),$e=o.createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze}),Be=$e.Consumer,Le=o.createContext(void 0);function Ge(){return c($e)}function Ye(e){var t=s(e.stylisPlugins),n=t[0],r=t[1],c=Ge().styleSheet,l=i(function(){var t=c;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,c]),u=i(function(){return Fe({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);a(function(){p(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var d=i(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:l,stylis:u}},[e.shouldForwardProp,l,u]);return o.createElement($e.Provider,{value:d},o.createElement(Le.Provider,{value:u},e.children))}var We=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ze);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,\"@keyframes\"))},this.name=e,this.id=\"sc-keyframes-\".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),qe=function(e){return e>=\"A\"&&e<=\"Z\"};function He(e){for(var t=\"\",n=0;n<e.length;n++){var o=e[n];if(1===n&&\"-\"===o&&\"-\"===e[0])return e;qe(o)?t+=\"-\"+o.toLowerCase():t+=o}return t.startsWith(\"ms-\")?\"-\"+t:t}var Ue=function(e){return null==e||!1===e||\"\"===e},Je=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push(\"\".concat(He(s),\":\"),i,\";\"):ce(i)?r.push.apply(r,e(e([\"\".concat(s,\" {\")],Je(i),!1),[\"}\"],!1)):r.push(\"\".concat(He(s),\": \").concat((n=s,null==(o=i)||\"boolean\"==typeof o||\"\"===o?\"\":\"number\"!=typeof o||0===o||n in h||n.startsWith(\"--\")?String(o).trim():\"\".concat(o,\"px\")),\";\")))}return r};function Xe(e,t,n,o){if(Ue(e))return[];if(se(e))return[\".\".concat(e.styledComponentId)];if(re(e)){if(!re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var r=e(t);return\"production\"===process.env.NODE_ENV||\"object\"!=typeof r||Array.isArray(r)||r instanceof We||ce(r)||null===r||console.error(\"\".concat(B(e),\" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\")),Xe(r,t,n,o)}var s;return e instanceof We?n?(e.inject(n,o),[e.getName(o)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Xe(e,t,n,o)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return!1}return!0}var Ke=z(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId=\"\",this.isStatic=\"production\"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M(Ke,t),this.baseStyle=n,ke.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):\"\";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie(o,this.staticRulesId);else{var r=ae(Xe(this.rules,e,t,n)),s=x(M(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,\".\".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}o=ie(o,s),this.staticRulesId=s}else{for(var a=M(this.baseHash,n.hash),c=\"\",l=0;l<this.rules.length;l++){var u=this.rules[l];if(\"string\"==typeof u)c+=u,\"production\"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Xe(u,e,t,n));a=M(a,p+l),c+=p}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,\".\".concat(d),void 0,this.componentId)),o=ie(o,d)}}return o},e}(),et=o.createContext(void 0),tt=et.Consumer;function nt(){var e=c(et);if(!e)throw he(18);return e}function ot(e){var n=o.useContext(et),r=i(function(){return function(e,n){if(!e)throw he(14);if(re(e)){var o=e(n);if(\"production\"!==process.env.NODE_ENV&&(null===o||Array.isArray(o)||\"object\"!=typeof o))throw he(7);return o}if(Array.isArray(e)||\"object\"!=typeof e)throw he(8);return n?t(t({},n),e):e}(e.theme,n)},[e.theme,n]);return e.children?o.createElement(et.Provider,{value:r},e.children):null}var rt={},st=new Set;function it(e,r,s){var i=se(e),a=e,c=!L(e),p=r.attrs,d=void 0===p?_:p,h=r.componentId,f=void 0===h?function(e,t){var n=\"string\"!=typeof e?\"sc\":R(e);rt[n]=(rt[n]||0)+1;var o=\"\".concat(n,\"-\").concat($(v+n+rt[n]));return t?\"\".concat(t,\"-\").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L(e)?\"styled.\".concat(e):\"Styled(\".concat(B(e),\")\")}(e):m,g=r.displayName&&r.componentId?\"\".concat(R(r.displayName),\"-\").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)}}else w=b}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=o.useContext(et),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;\"production\"!==process.env.NODE_ENV&&l(d);var v=I(r,f,c)||C,g=function(e,n,o){for(var r,s=t(t({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(s):r;for(var c in a)s[c]=\"className\"===c?ie(s[c],a[c]):\"style\"===c?t(t({},s[c]),a[c]):a[c]}return n.className&&(s.className=ie(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||\"$\"===b[0]||\"as\"===b||\"theme\"===b&&g.theme===v||(\"forwardedAs\"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||\"development\"!==process.env.NODE_ENV||n(b)||st.has(b)||!A.has(S)||(st.add(b),console.warn('styled-components: it looks like an unknown prop \"'.concat(b,'\" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return\"production\"!==process.env.NODE_ENV&&l(o),o}(a,g);\"production\"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=\" \"+E),g.className&&(N+=\" \"+g.className),w[L(S)&&!A.has(S)?\"class\":\"className\"]=N,w.ref=s,u(S,w)}(D,e,r)}O.displayName=y;var D=o.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):\"\",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,\"defaultProps\",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le(e,r[o],!0);return e}({},a.defaultProps,e):e}}),\"production\"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of \"'.concat(t,'\"'):\"\";console.warn(\"Over \".concat(200,\" classes were generated for component \").concat(e).concat(s,\".\\n\")+\"Consider using the attrs method, together with a style object for frequently changed styles.\\nExample:\\n const Component = styled.div.attrs(props => ({\\n style: {\\n background: props.background,\\n },\\n }))`width: 100%;`\\n\\n <Component />\"),o=!0,n={}}}}(y,g)),ue(D,function(){return\".\".concat(D.styledComponentId)}),c&&oe(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function at(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var ct=function(e){return Object.assign(e,{isCss:!0})};function lt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return ct(Xe(at(_,e([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&\"string\"==typeof r[0]?Xe(r):ct(Xe(at(r,n)))}function ut(n,o,r){if(void 0===r&&(r=C),!o)throw he(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,lt.apply(void 0,e([t],s,!1)))};return s.attrs=function(e){return ut(n,o,t(t({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,o,t(t({},r),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e)});var ht=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ze(e),ke.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,o){var r=o(ae(Xe(this.rules,t,n,o)),\"\"),s=this.componentId+e;n.insertRules(s,s,r)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,o){e>2&&ke.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)},e}();function ft(n){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var i=lt.apply(void 0,e([n],r,!1)),a=\"sc-global-\".concat($(JSON.stringify(i))),c=new ht(i,a);\"production\"!==process.env.NODE_ENV&&P(a);var l=function(e){var t=Ge(),n=o.useContext(et),r=o.useRef(t.styleSheet.allocateGSInstance(a)).current;return\"production\"!==process.env.NODE_ENV&&o.Children.count(e.children)&&console.warn(\"The global style component \".concat(a,\" was given child JSX. createGlobalStyle does not render children.\")),\"production\"!==process.env.NODE_ENV&&i.some(function(e){return\"string\"==typeof e&&-1!==e.indexOf(\"@import\")})&&console.warn(\"Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app.\"),t.styleSheet.server&&u(r,e,t.styleSheet,n,t.stylis),o.useLayoutEffect(function(){if(!t.styleSheet.server)return u(r,e,t.styleSheet,n,t.stylis),function(){return c.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,n,t.stylis]),null};function u(e,n,o,r,s){if(c.isStatic)c.renderStyles(e,b,o,s);else{var i=t(t({},n),{theme:I(n,r,l.defaultProps)});c.renderStyles(e,i,o,s)}}return o.memo(l)}function mt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];\"production\"!==process.env.NODE_ENV&&\"undefined\"!=typeof navigator&&\"ReactNative\"===navigator.product&&console.warn(\"`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.\");var r=ae(lt.apply(void 0,e([t],n,!1))),s=$(r);return new We(s,r)}function yt(e){var n=o.forwardRef(function(n,r){var s=I(n,o.useContext(et),e.defaultProps);return\"production\"!==process.env.NODE_ENV&&void 0===s&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class \"'.concat(B(e),'\"')),o.createElement(e,t({},n,{theme:s,ref:r}))});return n.displayName=\"WithTheme(\".concat(B(e),\")\"),oe(n,e)}var vt=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return\"\";var n=Ce(),o=ae([n&&'nonce=\"'.concat(n,'\"'),\"\".concat(f,'=\"true\"'),\"\".concat(y,'=\"').concat(v,'\"')].filter(Boolean),\" \");return\"<style \".concat(o,\">\").concat(t,\"</style>\")},this.getStyleTags=function(){if(e.sealed)throw he(2);return e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)throw he(2);var r=e.instance.toString();if(!r)return[];var s=((n={})[f]=\"\",n[y]=v,n.dangerouslySetInnerHTML={__html:r},n),i=Ce();return i&&(s.nonce=i),[o.createElement(\"style\",t({},s,{key:\"sc-0-0\"}))]},this.seal=function(){e.sealed=!0},this.instance=new ke({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw he(2);return o.createElement(Ye,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw he(3)},e}(),gt={StyleSheet:ke,mainSheet:Me};\"production\"!==process.env.NODE_ENV&&\"undefined\"!=typeof navigator&&\"ReactNative\"===navigator.product&&console.warn(\"It looks like you've imported 'styled-components' on React Native.\\nPerhaps you're looking to import 'styled-components/native'?\\nRead more about this at https://www.styled-components.com/docs/basics#react-native\");var St=\"__sc-\".concat(f,\"__\");\"production\"!==process.env.NODE_ENV&&\"test\"!==process.env.NODE_ENV&&\"undefined\"!=typeof window&&(window[St]||(window[St]=0),1===window[St]&&console.warn(\"It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\\n\\nSee https://s-c.sh/2BAXzed for more info.\"),window[St]+=1);export{vt as ServerStyleSheet,Be as StyleSheetConsumer,$e as StyleSheetContext,Ye as StyleSheetManager,tt as ThemeConsumer,et as ThemeContext,ot as ThemeProvider,gt as __PRIVATE__,ft as createGlobalStyle,lt as css,dt as default,se as isStyledComponent,mt as keyframes,dt as styled,nt as useTheme,v as version,yt as withTheme};\n","/////////////////////////////////////////////////////////////////////////////////\n/* UAParser.js v1.0.38\n Copyright © 2012-2021 Faisal Salman <f@faisalman.com>\n MIT License *//*\n Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data.\n Supports browser & node.js environment. \n Demo : https://faisalman.github.io/ua-parser-js\n Source : https://github.com/faisalman/ua-parser-js */\n/////////////////////////////////////////////////////////////////////////////////\n\n(function (window, undefined) {\n\n 'use strict';\n\n //////////////\n // Constants\n /////////////\n\n\n var LIBVERSION = '1.0.38',\n EMPTY = '',\n UNKNOWN = '?',\n FUNC_TYPE = 'function',\n UNDEF_TYPE = 'undefined',\n OBJ_TYPE = 'object',\n STR_TYPE = 'string',\n MAJOR = 'major',\n MODEL = 'model',\n NAME = 'name',\n TYPE = 'type',\n VENDOR = 'vendor',\n VERSION = 'version',\n ARCHITECTURE= 'architecture',\n CONSOLE = 'console',\n MOBILE = 'mobile',\n TABLET = 'tablet',\n SMARTTV = 'smarttv',\n WEARABLE = 'wearable',\n EMBEDDED = 'embedded',\n UA_MAX_LENGTH = 500;\n\n var AMAZON = 'Amazon',\n APPLE = 'Apple',\n ASUS = 'ASUS',\n BLACKBERRY = 'BlackBerry',\n BROWSER = 'Browser',\n CHROME = 'Chrome',\n EDGE = 'Edge',\n FIREFOX = 'Firefox',\n GOOGLE = 'Google',\n HUAWEI = 'Huawei',\n LG = 'LG',\n MICROSOFT = 'Microsoft',\n MOTOROLA = 'Motorola',\n OPERA = 'Opera',\n SAMSUNG = 'Samsung',\n SHARP = 'Sharp',\n SONY = 'Sony',\n XIAOMI = 'Xiaomi',\n ZEBRA = 'Zebra',\n FACEBOOK = 'Facebook',\n CHROMIUM_OS = 'Chromium OS',\n MAC_OS = 'Mac OS';\n\n ///////////\n // Helper\n //////////\n\n var extend = function (regexes, extensions) {\n var mergedRegexes = {};\n for (var i in regexes) {\n if (extensions[i] && extensions[i].length % 2 === 0) {\n mergedRegexes[i] = extensions[i].concat(regexes[i]);\n } else {\n mergedRegexes[i] = regexes[i];\n }\n }\n return mergedRegexes;\n },\n enumerize = function (arr) {\n var enums = {};\n for (var i=0; i<arr.length; i++) {\n enums[arr[i].toUpperCase()] = arr[i];\n }\n return enums;\n },\n has = function (str1, str2) {\n return typeof str1 === STR_TYPE ? lowerize(str2).indexOf(lowerize(str1)) !== -1 : false;\n },\n lowerize = function (str) {\n return str.toLowerCase();\n },\n majorize = function (version) {\n return typeof(version) === STR_TYPE ? version.replace(/[^\\d\\.]/g, EMPTY).split('.')[0] : undefined;\n },\n trim = function (str, len) {\n if (typeof(str) === STR_TYPE) {\n str = str.replace(/^\\s\\s*/, EMPTY);\n return typeof(len) === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);\n }\n };\n\n ///////////////\n // Map helper\n //////////////\n\n var rgxMapper = function (ua, arrays) {\n\n var i = 0, j, k, p, q, matches, match;\n\n // loop through all regexes maps\n while (i < arrays.length && !matches) {\n\n var regex = arrays[i], // even sequence (0,2,4,..)\n props = arrays[i + 1]; // odd sequence (1,3,5,..)\n j = k = 0;\n\n // try matching uastring with regexes\n while (j < regex.length && !matches) {\n\n if (!regex[j]) { break; }\n matches = regex[j++].exec(ua);\n\n if (!!matches) {\n for (p = 0; p < props.length; p++) {\n match = matches[++k];\n q = props[p];\n // check if given property is actually array\n if (typeof q === OBJ_TYPE && q.length > 0) {\n if (q.length === 2) {\n if (typeof q[1] == FUNC_TYPE) {\n // assign modified match\n this[q[0]] = q[1].call(this, match);\n } else {\n // assign given value, ignore regex match\n this[q[0]] = q[1];\n }\n } else if (q.length === 3) {\n // check whether function or regex\n if (typeof q[1] === FUNC_TYPE && !(q[1].exec && q[1].test)) {\n // call function (usually string mapper)\n this[q[0]] = match ? q[1].call(this, match, q[2]) : undefined;\n } else {\n // sanitize match using given regex\n this[q[0]] = match ? match.replace(q[1], q[2]) : undefined;\n }\n } else if (q.length === 4) {\n this[q[0]] = match ? q[3].call(this, match.replace(q[1], q[2])) : undefined;\n }\n } else {\n this[q] = match ? match : undefined;\n }\n }\n }\n }\n i += 2;\n }\n },\n\n strMapper = function (str, map) {\n\n for (var i in map) {\n // check if current value is array\n if (typeof map[i] === OBJ_TYPE && map[i].length > 0) {\n for (var j = 0; j < map[i].length; j++) {\n if (has(map[i][j], str)) {\n return (i === UNKNOWN) ? undefined : i;\n }\n }\n } else if (has(map[i], str)) {\n return (i === UNKNOWN) ? undefined : i;\n }\n }\n return str;\n };\n\n ///////////////\n // String map\n //////////////\n\n // Safari < 3.0\n var oldSafariMap = {\n '1.0' : '/8',\n '1.2' : '/1',\n '1.3' : '/3',\n '2.0' : '/412',\n '2.0.2' : '/416',\n '2.0.3' : '/417',\n '2.0.4' : '/419',\n '?' : '/'\n },\n windowsVersionMap = {\n 'ME' : '4.90',\n 'NT 3.11' : 'NT3.51',\n 'NT 4.0' : 'NT4.0',\n '2000' : 'NT 5.0',\n 'XP' : ['NT 5.1', 'NT 5.2'],\n 'Vista' : 'NT 6.0',\n '7' : 'NT 6.1',\n '8' : 'NT 6.2',\n '8.1' : 'NT 6.3',\n '10' : ['NT 6.4', 'NT 10.0'],\n 'RT' : 'ARM'\n };\n\n //////////////\n // Regex map\n /////////////\n\n var regexes = {\n\n browser : [[\n\n /\\b(?:crmo|crios)\\/([\\w\\.]+)/i // Chrome for Android/iOS\n ], [VERSION, [NAME, 'Chrome']], [\n /edg(?:e|ios|a)?\\/([\\w\\.]+)/i // Microsoft Edge\n ], [VERSION, [NAME, 'Edge']], [\n\n // Presto based\n /(opera mini)\\/([-\\w\\.]+)/i, // Opera Mini\n /(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i, // Opera Mobi/Tablet\n /(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i // Opera\n ], [NAME, VERSION], [\n /opios[\\/ ]+([\\w\\.]+)/i // Opera mini on iphone >= 8.0\n ], [VERSION, [NAME, OPERA+' Mini']], [\n /\\bop(?:rg)?x\\/([\\w\\.]+)/i // Opera GX\n ], [VERSION, [NAME, OPERA+' GX']], [\n /\\bopr\\/([\\w\\.]+)/i // Opera Webkit\n ], [VERSION, [NAME, OPERA]], [\n\n // Mixed\n /\\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\\/ ]?([\\w\\.]+)/i // Baidu\n ], [VERSION, [NAME, 'Baidu']], [\n /(kindle)\\/([\\w\\.]+)/i, // Kindle\n /(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i, // Lunascape/Maxthon/Netfront/Jasmine/Blazer\n // Trident based\n /(avant|iemobile|slim)\\s?(?:browser)?[\\/ ]?([\\w\\.]*)/i, // Avant/IEMobile/SlimBrowser\n /(?:ms|\\()(ie) ([\\w\\.]+)/i, // Internet Explorer\n\n // Webkit/KHTML based // Flock/RockMelt/Midori/Epiphany/Silk/Skyfire/Bolt/Iron/Iridium/PhantomJS/Bowser/QupZilla/Falkon\n /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,\n // Rekonq/Puffin/Brave/Whale/QQBrowserLite/QQ, aka ShouQ\n /(heytap|ovi)browser\\/([\\d\\.]+)/i, // Heytap/Ovi\n /(weibo)__([\\d\\.]+)/i // Weibo\n ], [NAME, VERSION], [\n /\\bddg\\/([\\w\\.]+)/i // DuckDuckGo\n ], [VERSION, [NAME, 'DuckDuckGo']], [\n /(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i // UCBrowser\n ], [VERSION, [NAME, 'UC'+BROWSER]], [\n /microm.+\\bqbcore\\/([\\w\\.]+)/i, // WeChat Desktop for Windows Built-in Browser\n /\\bqbcore\\/([\\w\\.]+).+microm/i,\n /micromessenger\\/([\\w\\.]+)/i // WeChat\n ], [VERSION, [NAME, 'WeChat']], [\n /konqueror\\/([\\w\\.]+)/i // Konqueror\n ], [VERSION, [NAME, 'Konqueror']], [\n /trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i // IE11\n ], [VERSION, [NAME, 'IE']], [\n /ya(?:search)?browser\\/([\\w\\.]+)/i // Yandex\n ], [VERSION, [NAME, 'Yandex']], [\n /slbrowser\\/([\\w\\.]+)/i // Smart Lenovo Browser\n ], [VERSION, [NAME, 'Smart Lenovo '+BROWSER]], [\n /(avast|avg)\\/([\\w\\.]+)/i // Avast/AVG Secure Browser\n ], [[NAME, /(.+)/, '$1 Secure '+BROWSER], VERSION], [\n /\\bfocus\\/([\\w\\.]+)/i // Firefox Focus\n ], [VERSION, [NAME, FIREFOX+' Focus']], [\n /\\bopt\\/([\\w\\.]+)/i // Opera Touch\n ], [VERSION, [NAME, OPERA+' Touch']], [\n /coc_coc\\w+\\/([\\w\\.]+)/i // Coc Coc Browser\n ], [VERSION, [NAME, 'Coc Coc']], [\n /dolfin\\/([\\w\\.]+)/i // Dolphin\n ], [VERSION, [NAME, 'Dolphin']], [\n /coast\\/([\\w\\.]+)/i // Opera Coast\n ], [VERSION, [NAME, OPERA+' Coast']], [\n /miuibrowser\\/([\\w\\.]+)/i // MIUI Browser\n ], [VERSION, [NAME, 'MIUI '+BROWSER]], [\n /fxios\\/([-\\w\\.]+)/i // Firefox for iOS\n ], [VERSION, [NAME, FIREFOX]], [\n /\\bqihu|(qi?ho?o?|360)browser/i // 360\n ], [[NAME, '360 ' + BROWSER]], [\n /(oculus|sailfish|huawei|vivo)browser\\/([\\w\\.]+)/i\n ], [[NAME, /(.+)/, '$1 ' + BROWSER], VERSION], [ // Oculus/Sailfish/HuaweiBrowser/VivoBrowser\n /samsungbrowser\\/([\\w\\.]+)/i // Samsung Internet\n ], [VERSION, [NAME, SAMSUNG + ' Internet']], [\n /(comodo_dragon)\\/([\\w\\.]+)/i // Comodo Dragon\n ], [[NAME, /_/g, ' '], VERSION], [\n /metasr[\\/ ]?([\\d\\.]+)/i // Sogou Explorer\n ], [VERSION, [NAME, 'Sogou Explorer']], [\n /(sogou)mo\\w+\\/([\\d\\.]+)/i // Sogou Mobile\n ], [[NAME, 'Sogou Mobile'], VERSION], [\n /(electron)\\/([\\w\\.]+) safari/i, // Electron-based App\n /(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i, // Tesla\n /m?(qqbrowser|2345Explorer)[\\/ ]?([\\w\\.]+)/i // QQBrowser/2345 Browser\n ], [NAME, VERSION], [\n /(lbbrowser)/i, // LieBao Browser\n /\\[(linkedin)app\\]/i // LinkedIn App for iOS & Android\n ], [NAME], [\n\n // WebView\n /((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i // Facebook App for iOS & Android\n ], [[NAME, FACEBOOK], VERSION], [\n /(Klarna)\\/([\\w\\.]+)/i, // Klarna Shopping Browser for iOS & Android\n /(kakao(?:talk|story))[\\/ ]([\\w\\.]+)/i, // Kakao App\n /(naver)\\(.*?(\\d+\\.[\\w\\.]+).*\\)/i, // Naver InApp\n /safari (line)\\/([\\w\\.]+)/i, // Line App for iOS\n /\\b(line)\\/([\\w\\.]+)\\/iab/i, // Line App for Android\n /(alipay)client\\/([\\w\\.]+)/i, // Alipay\n /(twitter)(?:and| f.+e\\/([\\w\\.]+))/i, // Twitter\n /(chromium|instagram|snapchat)[\\/ ]([-\\w\\.]+)/i // Chromium/Instagram/Snapchat\n ], [NAME, VERSION], [\n /\\bgsa\\/([\\w\\.]+) .*safari\\//i // Google Search Appliance on iOS\n ], [VERSION, [NAME, 'GSA']], [\n /musical_ly(?:.+app_?version\\/|_)([\\w\\.]+)/i // TikTok\n ], [VERSION, [NAME, 'TikTok']], [\n\n /headlesschrome(?:\\/([\\w\\.]+)| )/i // Chrome Headless\n ], [VERSION, [NAME, CHROME+' Headless']], [\n\n / wv\\).+(chrome)\\/([\\w\\.]+)/i // Chrome WebView\n ], [[NAME, CHROME+' WebView'], VERSION], [\n\n /droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i // Android Browser\n ], [VERSION, [NAME, 'Android '+BROWSER]], [\n\n /(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i // Chrome/OmniWeb/Arora/Tizen/Nokia\n ], [NAME, VERSION], [\n\n /version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i // Mobile Safari\n ], [VERSION, [NAME, 'Mobile Safari']], [\n /version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i // Safari & Safari Mobile\n ], [VERSION, NAME], [\n /webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i // Safari < 3.0\n ], [NAME, [VERSION, strMapper, oldSafariMap]], [\n\n /(webkit|khtml)\\/([\\w\\.]+)/i\n ], [NAME, VERSION], [\n\n // Gecko based\n /(navigator|netscape\\d?)\\/([-\\w\\.]+)/i // Netscape\n ], [[NAME, 'Netscape'], VERSION], [\n /mobile vr; rv:([\\w\\.]+)\\).+firefox/i // Firefox Reality\n ], [VERSION, [NAME, FIREFOX+' Reality']], [\n /ekiohf.+(flow)\\/([\\w\\.]+)/i, // Flow\n /(swiftfox)/i, // Swiftfox\n /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,\n // IceDragon/Iceweasel/Camino/Chimera/Fennec/Maemo/Minimo/Conkeror/Klar\n /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,\n // Firefox/SeaMonkey/K-Meleon/IceCat/IceApe/Firebird/Phoenix\n /(firefox)\\/([\\w\\.]+)/i, // Other Firefox-based\n /(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i, // Mozilla\n\n // Other\n /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,\n // Polaris/Lynx/Dillo/iCab/Doris/Amaya/w3m/NetSurf/Sleipnir/Obigo/Mosaic/Go/ICE/UP.Browser\n /(links) \\(([\\w\\.]+)/i, // Links\n /panasonic;(viera)/i // Panasonic Viera\n ], [NAME, VERSION], [\n \n /(cobalt)\\/([\\w\\.]+)/i // Cobalt\n ], [NAME, [VERSION, /master.|lts./, \"\"]]\n ],\n\n cpu : [[\n\n /(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i // AMD64 (x64)\n ], [[ARCHITECTURE, 'amd64']], [\n\n /(ia32(?=;))/i // IA32 (quicktime)\n ], [[ARCHITECTURE, lowerize]], [\n\n /((?:i[346]|x)86)[;\\)]/i // IA32 (x86)\n ], [[ARCHITECTURE, 'ia32']], [\n\n /\\b(aarch64|arm(v?8e?l?|_?64))\\b/i // ARM64\n ], [[ARCHITECTURE, 'arm64']], [\n\n /\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i // ARMHF\n ], [[ARCHITECTURE, 'armhf']], [\n\n // PocketPC mistakenly identified as PowerPC\n /windows (ce|mobile); ppc;/i\n ], [[ARCHITECTURE, 'arm']], [\n\n /((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i // PowerPC\n ], [[ARCHITECTURE, /ower/, EMPTY, lowerize]], [\n\n /(sun4\\w)[;\\)]/i // SPARC\n ], [[ARCHITECTURE, 'sparc']], [\n\n /((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i\n // IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC\n ], [[ARCHITECTURE, lowerize]]\n ],\n\n device : [[\n\n //////////////////////////\n // MOBILES & TABLETS\n /////////////////////////\n\n // Samsung\n /\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i\n ], [MODEL, [VENDOR, SAMSUNG], [TYPE, TABLET]], [\n /\\b((?:s[cgp]h|gt|sm)-\\w+|sc[g-]?[\\d]+a?|galaxy nexus)/i,\n /samsung[- ]([-\\w]+)/i,\n /sec-(sgh\\w+)/i\n ], [MODEL, [VENDOR, SAMSUNG], [TYPE, MOBILE]], [\n\n // Apple\n /(?:\\/|\\()(ip(?:hone|od)[\\w, ]*)(?:\\/|;)/i // iPod/iPhone\n ], [MODEL, [VENDOR, APPLE], [TYPE, MOBILE]], [\n /\\((ipad);[-\\w\\),; ]+apple/i, // iPad\n /applecoremedia\\/[\\w\\.]+ \\((ipad)/i,\n /\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i\n ], [MODEL, [VENDOR, APPLE], [TYPE, TABLET]], [\n /(macintosh);/i\n ], [MODEL, [VENDOR, APPLE]], [\n\n // Sharp\n /\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i\n ], [MODEL, [VENDOR, SHARP], [TYPE, MOBILE]], [\n\n // Huawei\n /\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i\n ], [MODEL, [VENDOR, HUAWEI], [TYPE, TABLET]], [\n /(?:huawei|honor)([-\\w ]+)[;\\)]/i,\n /\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i\n ], [MODEL, [VENDOR, HUAWEI], [TYPE, MOBILE]], [\n\n // Xiaomi\n /\\b(poco[\\w ]+|m2\\d{3}j\\d\\d[a-z]{2})(?: bui|\\))/i, // Xiaomi POCO\n /\\b; (\\w+) build\\/hm\\1/i, // Xiaomi Hongmi 'numeric' models\n /\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i, // Xiaomi Hongmi\n /\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i, // Xiaomi Redmi\n /oid[^\\)]+; (m?[12][0-389][01]\\w{3,6}[c-y])( bui|; wv|\\))/i, // Xiaomi Redmi 'numeric' models\n /\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i // Xiaomi Mi\n ], [[MODEL, /_/g, ' '], [VENDOR, XIAOMI], [TYPE, MOBILE]], [\n /oid[^\\)]+; (2\\d{4}(283|rpbf)[cgl])( bui|\\))/i, // Redmi Pad\n /\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i // Mi Pad tablets\n ],[[MODEL, /_/g, ' '], [VENDOR, XIAOMI], [TYPE, TABLET]], [\n\n // OPPO\n /; (\\w+) bui.+ oppo/i,\n /\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i\n ], [MODEL, [VENDOR, 'OPPO'], [TYPE, MOBILE]], [\n /\\b(opd2\\d{3}a?) bui/i\n ], [MODEL, [VENDOR, 'OPPO'], [TYPE, TABLET]], [\n\n // Vivo\n /vivo (\\w+)(?: bui|\\))/i,\n /\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i\n ], [MODEL, [VENDOR, 'Vivo'], [TYPE, MOBILE]], [\n\n // Realme\n /\\b(rmx[1-3]\\d{3})(?: bui|;|\\))/i\n ], [MODEL, [VENDOR, 'Realme'], [TYPE, MOBILE]], [\n\n // Motorola\n /\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,\n /\\bmot(?:orola)?[- ](\\w*)/i,\n /((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i\n ], [MODEL, [VENDOR, MOTOROLA], [TYPE, MOBILE]], [\n /\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i\n ], [MODEL, [VENDOR, MOTOROLA], [TYPE, TABLET]], [\n\n // LG\n /((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i\n ], [MODEL, [VENDOR, LG], [TYPE, TABLET]], [\n /(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,\n /\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,\n /\\blg-?([\\d\\w]+) bui/i\n ], [MODEL, [VENDOR, LG], [TYPE, MOBILE]], [\n\n // Lenovo\n /(ideatab[-\\w ]+)/i,\n /lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i\n ], [MODEL, [VENDOR, 'Lenovo'], [TYPE, TABLET]], [\n\n // Nokia\n /(?:maemo|nokia).*(n900|lumia \\d+)/i,\n /nokia[-_ ]?([-\\w\\.]*)/i\n ], [[MODEL, /_/g, ' '], [VENDOR, 'Nokia'], [TYPE, MOBILE]], [\n\n // Google\n /(pixel c)\\b/i // Google Pixel C\n ], [MODEL, [VENDOR, GOOGLE], [TYPE, TABLET]], [\n /droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i // Google Pixel\n ], [MODEL, [VENDOR, GOOGLE], [TYPE, MOBILE]], [\n\n // Sony\n /droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i\n ], [MODEL, [VENDOR, SONY], [TYPE, MOBILE]], [\n /sony tablet [ps]/i,\n /\\b(?:sony)?sgp\\w+(?: bui|\\))/i\n ], [[MODEL, 'Xperia Tablet'], [VENDOR, SONY], [TYPE, TABLET]], [\n\n // OnePlus\n / (kb2005|in20[12]5|be20[12][59])\\b/i,\n /(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i\n ], [MODEL, [VENDOR, 'OnePlus'], [TYPE, MOBILE]], [\n\n // Amazon\n /(alexa)webm/i,\n /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\))/i, // Kindle Fire without Silk / Echo Show\n /(kf[a-z]+)( bui|\\)).+silk\\//i // Kindle Fire HD\n ], [MODEL, [VENDOR, AMAZON], [TYPE, TABLET]], [\n /((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i // Fire Phone\n ], [[MODEL, /(.+)/g, 'Fire Phone $1'], [VENDOR, AMAZON], [TYPE, MOBILE]], [\n\n // BlackBerry\n /(playbook);[-\\w\\),; ]+(rim)/i // BlackBerry PlayBook\n ], [MODEL, VENDOR, [TYPE, TABLET]], [\n /\\b((?:bb[a-f]|st[hv])100-\\d)/i,\n /\\(bb10; (\\w+)/i // BlackBerry 10\n ], [MODEL, [VENDOR, BLACKBERRY], [TYPE, MOBILE]], [\n\n // Asus\n /(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i\n ], [MODEL, [VENDOR, ASUS], [TYPE, TABLET]], [\n / (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i\n ], [MODEL, [VENDOR, ASUS], [TYPE, MOBILE]], [\n\n // HTC\n /(nexus 9)/i // HTC Nexus 9\n ], [MODEL, [VENDOR, 'HTC'], [TYPE, TABLET]], [\n /(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i, // HTC\n\n // ZTE\n /(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,\n /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\.))|sony(?!-bra))[-_ ]?([-\\w]*)/i // Alcatel/GeeksPhone/Nexian/Panasonic/Sony\n ], [VENDOR, [MODEL, /_/g, ' '], [TYPE, MOBILE]], [\n\n // Acer\n /droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i\n ], [MODEL, [VENDOR, 'Acer'], [TYPE, TABLET]], [\n\n // Meizu\n /droid.+; (m[1-5] note) bui/i,\n /\\bmz-([-\\w]{2,})/i\n ], [MODEL, [VENDOR, 'Meizu'], [TYPE, MOBILE]], [\n \n // Ulefone\n /; ((?:power )?armor(?:[\\w ]{0,8}))(?: bui|\\))/i\n ], [MODEL, [VENDOR, 'Ulefone'], [TYPE, MOBILE]], [\n\n // MIXED\n /(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\\w]*)/i,\n // BlackBerry/BenQ/Palm/Sony-Ericsson/Acer/Asus/Dell/Meizu/Motorola/Polytron\n /(hp) ([\\w ]+\\w)/i, // HP iPAQ\n /(asus)-?(\\w+)/i, // Asus\n /(microsoft); (lumia[\\w ]+)/i, // Microsoft Lumia\n /(lenovo)[-_ ]?([-\\w]+)/i, // Lenovo\n /(jolla)/i, // Jolla\n /(oppo) ?([\\w ]+) bui/i // OPPO\n ], [VENDOR, MODEL, [TYPE, MOBILE]], [\n\n /(kobo)\\s(ereader|touch)/i, // Kobo\n /(archos) (gamepad2?)/i, // Archos\n /(hp).+(touchpad(?!.+tablet)|tablet)/i, // HP TouchPad\n /(kindle)\\/([\\w\\.]+)/i, // Kindle\n /(nook)[\\w ]+build\\/(\\w+)/i, // Nook\n /(dell) (strea[kpr\\d ]*[\\dko])/i, // Dell Streak\n /(le[- ]+pan)[- ]+(\\w{1,9}) bui/i, // Le Pan Tablets\n /(trinity)[- ]*(t\\d{3}) bui/i, // Trinity Tablets\n /(gigaset)[- ]+(q\\w{1,9}) bui/i, // Gigaset Tablets\n /(vodafone) ([\\w ]+)(?:\\)| bui)/i // Vodafone\n ], [VENDOR, MODEL, [TYPE, TABLET]], [\n\n /(surface duo)/i // Surface Duo\n ], [MODEL, [VENDOR, MICROSOFT], [TYPE, TABLET]], [\n /droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i // Fairphone\n ], [MODEL, [VENDOR, 'Fairphone'], [TYPE, MOBILE]], [\n /(u304aa)/i // AT&T\n ], [MODEL, [VENDOR, 'AT&T'], [TYPE, MOBILE]], [\n /\\bsie-(\\w*)/i // Siemens\n ], [MODEL, [VENDOR, 'Siemens'], [TYPE, MOBILE]], [\n /\\b(rct\\w+) b/i // RCA Tablets\n ], [MODEL, [VENDOR, 'RCA'], [TYPE, TABLET]], [\n /\\b(venue[\\d ]{2,7}) b/i // Dell Venue Tablets\n ], [MODEL, [VENDOR, 'Dell'], [TYPE, TABLET]], [\n /\\b(q(?:mv|ta)\\w+) b/i // Verizon Tablet\n ], [MODEL, [VENDOR, 'Verizon'], [TYPE, TABLET]], [\n /\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i // Barnes & Noble Tablet\n ], [MODEL, [VENDOR, 'Barnes & Noble'], [TYPE, TABLET]], [\n /\\b(tm\\d{3}\\w+) b/i\n ], [MODEL, [VENDOR, 'NuVision'], [TYPE, TABLET]], [\n /\\b(k88) b/i // ZTE K Series Tablet\n ], [MODEL, [VENDOR, 'ZTE'], [TYPE, TABLET]], [\n /\\b(nx\\d{3}j) b/i // ZTE Nubia\n ], [MODEL, [VENDOR, 'ZTE'], [TYPE, MOBILE]], [\n /\\b(gen\\d{3}) b.+49h/i // Swiss GEN Mobile\n ], [MODEL, [VENDOR, 'Swiss'], [TYPE, MOBILE]], [\n /\\b(zur\\d{3}) b/i // Swiss ZUR Tablet\n ], [MODEL, [VENDOR, 'Swiss'], [TYPE, TABLET]], [\n /\\b((zeki)?tb.*\\b) b/i // Zeki Tablets\n ], [MODEL, [VENDOR, 'Zeki'], [TYPE, TABLET]], [\n /\\b([yr]\\d{2}) b/i,\n /\\b(dragon[- ]+touch |dt)(\\w{5}) b/i // Dragon Touch Tablet\n ], [[VENDOR, 'Dragon Touch'], MODEL, [TYPE, TABLET]], [\n /\\b(ns-?\\w{0,9}) b/i // Insignia Tablets\n ], [MODEL, [VENDOR, 'Insignia'], [TYPE, TABLET]], [\n /\\b((nxa|next)-?\\w{0,9}) b/i // NextBook Tablets\n ], [MODEL, [VENDOR, 'NextBook'], [TYPE, TABLET]], [\n /\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i // Voice Xtreme Phones\n ], [[VENDOR, 'Voice'], MODEL, [TYPE, MOBILE]], [\n /\\b(lvtel\\-)?(v1[12]) b/i // LvTel Phones\n ], [[VENDOR, 'LvTel'], MODEL, [TYPE, MOBILE]], [\n /\\b(ph-1) /i // Essential PH-1\n ], [MODEL, [VENDOR, 'Essential'], [TYPE, MOBILE]], [\n /\\b(v(100md|700na|7011|917g).*\\b) b/i // Envizen Tablets\n ], [MODEL, [VENDOR, 'Envizen'], [TYPE, TABLET]], [\n /\\b(trio[-\\w\\. ]+) b/i // MachSpeed Tablets\n ], [MODEL, [VENDOR, 'MachSpeed'], [TYPE, TABLET]], [\n /\\btu_(1491) b/i // Rotor Tablets\n ], [MODEL, [VENDOR, 'Rotor'], [TYPE, TABLET]], [\n /(shield[\\w ]+) b/i // Nvidia Shield Tablets\n ], [MODEL, [VENDOR, 'Nvidia'], [TYPE, TABLET]], [\n /(sprint) (\\w+)/i // Sprint Phones\n ], [VENDOR, MODEL, [TYPE, MOBILE]], [\n /(kin\\.[onetw]{3})/i // Microsoft Kin\n ], [[MODEL, /\\./g, ' '], [VENDOR, MICROSOFT], [TYPE, MOBILE]], [\n /droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i // Zebra\n ], [MODEL, [VENDOR, ZEBRA], [TYPE, TABLET]], [\n /droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i\n ], [MODEL, [VENDOR, ZEBRA], [TYPE, MOBILE]], [\n\n ///////////////////\n // SMARTTVS\n ///////////////////\n\n /smart-tv.+(samsung)/i // Samsung\n ], [VENDOR, [TYPE, SMARTTV]], [\n /hbbtv.+maple;(\\d+)/i\n ], [[MODEL, /^/, 'SmartTV'], [VENDOR, SAMSUNG], [TYPE, SMARTTV]], [\n /(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i // LG SmartTV\n ], [[VENDOR, LG], [TYPE, SMARTTV]], [\n /(apple) ?tv/i // Apple TV\n ], [VENDOR, [MODEL, APPLE+' TV'], [TYPE, SMARTTV]], [\n /crkey/i // Google Chromecast\n ], [[MODEL, CHROME+'cast'], [VENDOR, GOOGLE], [TYPE, SMARTTV]], [\n /droid.+aft(\\w+)( bui|\\))/i // Fire TV\n ], [MODEL, [VENDOR, AMAZON], [TYPE, SMARTTV]], [\n /\\(dtv[\\);].+(aquos)/i,\n /(aquos-tv[\\w ]+)\\)/i // Sharp\n ], [MODEL, [VENDOR, SHARP], [TYPE, SMARTTV]],[\n /(bravia[\\w ]+)( bui|\\))/i // Sony\n ], [MODEL, [VENDOR, SONY], [TYPE, SMARTTV]], [\n /(mitv-\\w{5}) bui/i // Xiaomi\n ], [MODEL, [VENDOR, XIAOMI], [TYPE, SMARTTV]], [\n /Hbbtv.*(technisat) (.*);/i // TechniSAT\n ], [VENDOR, MODEL, [TYPE, SMARTTV]], [\n /\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i, // Roku\n /hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w\\+ ]*; *([\\w\\d][^;]*);([^;]*)/i // HbbTV devices\n ], [[VENDOR, trim], [MODEL, trim], [TYPE, SMARTTV]], [\n /\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i // SmartTV from Unidentified Vendors\n ], [[TYPE, SMARTTV]], [\n\n ///////////////////\n // CONSOLES\n ///////////////////\n\n /(ouya)/i, // Ouya\n /(nintendo) ([wids3utch]+)/i // Nintendo\n ], [VENDOR, MODEL, [TYPE, CONSOLE]], [\n /droid.+; (shield) bui/i // Nvidia\n ], [MODEL, [VENDOR, 'Nvidia'], [TYPE, CONSOLE]], [\n /(playstation [345portablevi]+)/i // Playstation\n ], [MODEL, [VENDOR, SONY], [TYPE, CONSOLE]], [\n /\\b(xbox(?: one)?(?!; xbox))[\\); ]/i // Microsoft Xbox\n ], [MODEL, [VENDOR, MICROSOFT], [TYPE, CONSOLE]], [\n\n ///////////////////\n // WEARABLES\n ///////////////////\n\n /((pebble))app/i // Pebble\n ], [VENDOR, MODEL, [TYPE, WEARABLE]], [\n /(watch)(?: ?os[,\\/]|\\d,\\d\\/)[\\d\\.]+/i // Apple Watch\n ], [MODEL, [VENDOR, APPLE], [TYPE, WEARABLE]], [\n /droid.+; (glass) \\d/i // Google Glass\n ], [MODEL, [VENDOR, GOOGLE], [TYPE, WEARABLE]], [\n /droid.+; (wt63?0{2,3})\\)/i\n ], [MODEL, [VENDOR, ZEBRA], [TYPE, WEARABLE]], [\n /(quest( \\d| pro)?)/i // Oculus Quest\n ], [MODEL, [VENDOR, FACEBOOK], [TYPE, WEARABLE]], [\n\n ///////////////////\n // EMBEDDED\n ///////////////////\n\n /(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i // Tesla\n ], [VENDOR, [TYPE, EMBEDDED]], [\n /(aeobc)\\b/i // Echo Dot\n ], [MODEL, [VENDOR, AMAZON], [TYPE, EMBEDDED]], [\n\n ////////////////////\n // MIXED (GENERIC)\n ///////////////////\n\n /droid .+?; ([^;]+?)(?: bui|; wv\\)|\\) applew).+? mobile safari/i // Android Phones from Unidentified Vendors\n ], [MODEL, [TYPE, MOBILE]], [\n /droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i // Android Tablets from Unidentified Vendors\n ], [MODEL, [TYPE, TABLET]], [\n /\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i // Unidentifiable Tablet\n ], [[TYPE, TABLET]], [\n /(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i // Unidentifiable Mobile\n ], [[TYPE, MOBILE]], [\n /(android[-\\w\\. ]{0,9});.+buil/i // Generic Android Device\n ], [MODEL, [VENDOR, 'Generic']]\n ],\n\n engine : [[\n\n /windows.+ edge\\/([\\w\\.]+)/i // EdgeHTML\n ], [VERSION, [NAME, EDGE+'HTML']], [\n\n /webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i // Blink\n ], [VERSION, [NAME, 'Blink']], [\n\n /(presto)\\/([\\w\\.]+)/i, // Presto\n /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i, // WebKit/Trident/NetFront/NetSurf/Amaya/Lynx/w3m/Goanna\n /ekioh(flow)\\/([\\w\\.]+)/i, // Flow\n /(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i, // KHTML/Tasman/Links\n /(icab)[\\/ ]([23]\\.[\\d\\.]+)/i, // iCab\n /\\b(libweb)/i\n ], [NAME, VERSION], [\n\n /rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i // Gecko\n ], [VERSION, NAME]\n ],\n\n os : [[\n\n // Windows\n /microsoft (windows) (vista|xp)/i // Windows (iTunes)\n ], [NAME, VERSION], [\n /(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i // Windows Phone\n ], [NAME, [VERSION, strMapper, windowsVersionMap]], [\n /windows nt 6\\.2; (arm)/i, // Windows RT\n /windows[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i,\n /(?:win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i\n ], [[VERSION, strMapper, windowsVersionMap], [NAME, 'Windows']], [\n\n // iOS/macOS\n /ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i, // iOS\n /(?:ios;fbsv\\/|iphone.+ios[\\/ ])([\\d\\.]+)/i,\n /cfnetwork\\/.+darwin/i\n ], [[VERSION, /_/g, '.'], [NAME, 'iOS']], [\n /(mac os x) ?([\\w\\. ]*)/i,\n /(macintosh|mac_powerpc\\b)(?!.+haiku)/i // Mac OS\n ], [[NAME, MAC_OS], [VERSION, /_/g, '.']], [\n\n // Mobile OSes\n /droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i // Android-x86/HarmonyOS\n ], [VERSION, NAME], [ // Android/WebOS/QNX/Bada/RIM/Maemo/MeeGo/Sailfish OS\n /(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,\n /(blackberry)\\w*\\/([\\w\\.]*)/i, // Blackberry\n /(tizen|kaios)[\\/ ]([\\w\\.]+)/i, // Tizen/KaiOS\n /\\((series40);/i // Series 40\n ], [NAME, VERSION], [\n /\\(bb(10);/i // BlackBerry 10\n ], [VERSION, [NAME, BLACKBERRY]], [\n /(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i // Symbian\n ], [VERSION, [NAME, 'Symbian']], [\n /mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i // Firefox OS\n ], [VERSION, [NAME, FIREFOX+' OS']], [\n /web0s;.+rt(tv)/i,\n /\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i // WebOS\n ], [VERSION, [NAME, 'webOS']], [\n /watch(?: ?os[,\\/]|\\d,\\d\\/)([\\d\\.]+)/i // watchOS\n ], [VERSION, [NAME, 'watchOS']], [\n\n // Google Chromecast\n /crkey\\/([\\d\\.]+)/i // Google Chromecast\n ], [VERSION, [NAME, CHROME+'cast']], [\n /(cros) [\\w]+(?:\\)| ([\\w\\.]+)\\b)/i // Chromium OS\n ], [[NAME, CHROMIUM_OS], VERSION],[\n\n // Smart TVs\n /panasonic;(viera)/i, // Panasonic Viera\n /(netrange)mmh/i, // Netrange\n /(nettv)\\/(\\d+\\.[\\w\\.]+)/i, // NetTV\n\n // Console\n /(nintendo|playstation) ([wids345portablevuch]+)/i, // Nintendo/Playstation\n /(xbox); +xbox ([^\\);]+)/i, // Microsoft Xbox (360, One, X, S, Series X, Series S)\n\n // Other\n /\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i, // Joli/Palm\n /(mint)[\\/\\(\\) ]?(\\w*)/i, // Mint\n /(mageia|vectorlinux)[; ]/i, // Mageia/VectorLinux\n /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,\n // Ubuntu/Debian/SUSE/Gentoo/Arch/Slackware/Fedora/Mandriva/CentOS/PCLinuxOS/RedHat/Zenwalk/Linpus/Raspbian/Plan9/Minix/RISCOS/Contiki/Deepin/Manjaro/elementary/Sabayon/Linspire\n /(hurd|linux) ?([\\w\\.]*)/i, // Hurd/Linux\n /(gnu) ?([\\w\\.]*)/i, // GNU\n /\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i, // FreeBSD/NetBSD/OpenBSD/PC-BSD/GhostBSD/DragonFly\n /(haiku) (\\w+)/i // Haiku\n ], [NAME, VERSION], [\n /(sunos) ?([\\w\\.\\d]*)/i // Solaris\n ], [[NAME, 'Solaris'], VERSION], [\n /((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i, // Solaris\n /(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i, // AIX\n /\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, // BeOS/OS2/AmigaOS/MorphOS/OpenVMS/Fuchsia/HP-UX/SerenityOS\n /(unix) ?([\\w\\.]*)/i // UNIX\n ], [NAME, VERSION]\n ]\n };\n\n /////////////////\n // Constructor\n ////////////////\n\n var UAParser = function (ua, extensions) {\n\n if (typeof ua === OBJ_TYPE) {\n extensions = ua;\n ua = undefined;\n }\n\n if (!(this instanceof UAParser)) {\n return new UAParser(ua, extensions).getResult();\n }\n\n var _navigator = (typeof window !== UNDEF_TYPE && window.navigator) ? window.navigator : undefined;\n var _ua = ua || ((_navigator && _navigator.userAgent) ? _navigator.userAgent : EMPTY);\n var _uach = (_navigator && _navigator.userAgentData) ? _navigator.userAgentData : undefined;\n var _rgxmap = extensions ? extend(regexes, extensions) : regexes;\n var _isSelfNav = _navigator && _navigator.userAgent == _ua;\n\n this.getBrowser = function () {\n var _browser = {};\n _browser[NAME] = undefined;\n _browser[VERSION] = undefined;\n rgxMapper.call(_browser, _ua, _rgxmap.browser);\n _browser[MAJOR] = majorize(_browser[VERSION]);\n // Brave-specific detection\n if (_isSelfNav && _navigator && _navigator.brave && typeof _navigator.brave.isBrave == FUNC_TYPE) {\n _browser[NAME] = 'Brave';\n }\n return _browser;\n };\n this.getCPU = function () {\n var _cpu = {};\n _cpu[ARCHITECTURE] = undefined;\n rgxMapper.call(_cpu, _ua, _rgxmap.cpu);\n return _cpu;\n };\n this.getDevice = function () {\n var _device = {};\n _device[VENDOR] = undefined;\n _device[MODEL] = undefined;\n _device[TYPE] = undefined;\n rgxMapper.call(_device, _ua, _rgxmap.device);\n if (_isSelfNav && !_device[TYPE] && _uach && _uach.mobile) {\n _device[TYPE] = MOBILE;\n }\n // iPadOS-specific detection: identified as Mac, but has some iOS-only properties\n if (_isSelfNav && _device[MODEL] == 'Macintosh' && _navigator && typeof _navigator.standalone !== UNDEF_TYPE && _navigator.maxTouchPoints && _navigator.maxTouchPoints > 2) {\n _device[MODEL] = 'iPad';\n _device[TYPE] = TABLET;\n }\n return _device;\n };\n this.getEngine = function () {\n var _engine = {};\n _engine[NAME] = undefined;\n _engine[VERSION] = undefined;\n rgxMapper.call(_engine, _ua, _rgxmap.engine);\n return _engine;\n };\n this.getOS = function () {\n var _os = {};\n _os[NAME] = undefined;\n _os[VERSION] = undefined;\n rgxMapper.call(_os, _ua, _rgxmap.os);\n if (_isSelfNav && !_os[NAME] && _uach && _uach.platform && _uach.platform != 'Unknown') {\n _os[NAME] = _uach.platform \n .replace(/chrome os/i, CHROMIUM_OS)\n .replace(/macos/i, MAC_OS); // backward compatibility\n }\n return _os;\n };\n this.getResult = function () {\n return {\n ua : this.getUA(),\n browser : this.getBrowser(),\n engine : this.getEngine(),\n os : this.getOS(),\n device : this.getDevice(),\n cpu : this.getCPU()\n };\n };\n this.getUA = function () {\n return _ua;\n };\n this.setUA = function (ua) {\n _ua = (typeof ua === STR_TYPE && ua.length > UA_MAX_LENGTH) ? trim(ua, UA_MAX_LENGTH) : ua;\n return this;\n };\n this.setUA(_ua);\n return this;\n };\n\n UAParser.VERSION = LIBVERSION;\n UAParser.BROWSER = enumerize([NAME, VERSION, MAJOR]);\n UAParser.CPU = enumerize([ARCHITECTURE]);\n UAParser.DEVICE = enumerize([MODEL, VENDOR, TYPE, CONSOLE, MOBILE, SMARTTV, TABLET, WEARABLE, EMBEDDED]);\n UAParser.ENGINE = UAParser.OS = enumerize([NAME, VERSION]);\n\n ///////////\n // Export\n //////////\n\n // check js environment\n if (typeof(exports) !== UNDEF_TYPE) {\n // nodejs env\n if (typeof module !== UNDEF_TYPE && module.exports) {\n exports = module.exports = UAParser;\n }\n exports.UAParser = UAParser;\n } else {\n // requirejs env (optional)\n if (typeof(define) === FUNC_TYPE && define.amd) {\n define(function () {\n return UAParser;\n });\n } else if (typeof window !== UNDEF_TYPE) {\n // browser env\n window.UAParser = UAParser;\n }\n }\n\n // jQuery/Zepto specific (optional)\n // Note:\n // In AMD env the global scope should be kept clean, but jQuery is an exception.\n // jQuery always exports to global scope, unless jQuery.noConflict(true) is used,\n // and we should catch that.\n var $ = typeof window !== UNDEF_TYPE && (window.jQuery || window.Zepto);\n if ($ && !$.ua) {\n var parser = new UAParser();\n $.ua = parser.getResult();\n $.ua.get = function () {\n return parser.getUA();\n };\n $.ua.set = function (ua) {\n parser.setUA(ua);\n var result = parser.getResult();\n for (var prop in result) {\n $.ua[prop] = result[prop];\n }\n };\n }\n\n})(typeof window === 'object' ? window : this);\n","/**\n * Assigns a value for a given ref, no matter of the ref format\n * @param {RefObject} ref - a callback function or ref object\n * @param value - a new value\n *\n * @see https://github.com/theKashey/use-callback-ref#assignref\n * @example\n * const refObject = useRef();\n * const refFn = (ref) => {....}\n *\n * assignRef(refObject, \"refValue\");\n * assignRef(refFn, \"refValue\");\n */\nexport function assignRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref) {\n ref.current = value;\n }\n return ref;\n}\n","import * as React from 'react';\nimport { assignRef } from './assignRef';\nimport { useCallbackRef } from './useRef';\nvar useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nvar currentValues = new WeakMap();\n/**\n * Merges two or more refs together providing a single interface to set their value\n * @param {RefObject|Ref} refs\n * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}\n *\n * @see {@link mergeRefs} a version without buit-in memoization\n * @see https://github.com/theKashey/use-callback-ref#usemergerefs\n * @example\n * const Component = React.forwardRef((props, ref) => {\n * const ownRef = useRef();\n * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together\n * return <div ref={domRef}>...</div>\n * }\n */\nexport function useMergeRefs(refs, defaultValue) {\n var callbackRef = useCallbackRef(defaultValue || null, function (newValue) {\n return refs.forEach(function (ref) { return assignRef(ref, newValue); });\n });\n // handle refs changes - added or removed\n useIsomorphicLayoutEffect(function () {\n var oldValue = currentValues.get(callbackRef);\n if (oldValue) {\n var prevRefs_1 = new Set(oldValue);\n var nextRefs_1 = new Set(refs);\n var current_1 = callbackRef.current;\n prevRefs_1.forEach(function (ref) {\n if (!nextRefs_1.has(ref)) {\n assignRef(ref, null);\n }\n });\n nextRefs_1.forEach(function (ref) {\n if (!prevRefs_1.has(ref)) {\n assignRef(ref, current_1);\n }\n });\n }\n currentValues.set(callbackRef, refs);\n }, [refs]);\n return callbackRef;\n}\n","import { useState } from 'react';\n/**\n * creates a MutableRef with ref change callback\n * @param initialValue - initial ref value\n * @param {Function} callback - a callback to run when value changes\n *\n * @example\n * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);\n * ref.current = 1;\n * // prints 0 -> 1\n *\n * @see https://reactjs.org/docs/hooks-reference.html#useref\n * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref\n * @returns {MutableRefObject}\n */\nexport function useCallbackRef(initialValue, callback) {\n var ref = useState(function () { return ({\n // value\n value: initialValue,\n // last callback\n callback: callback,\n // \"memoized\" public interface\n facade: {\n get current() {\n return ref.value;\n },\n set current(value) {\n var last = ref.value;\n if (last !== value) {\n ref.value = value;\n ref.callback(value, last);\n }\n },\n },\n }); })[0];\n // update callback\n ref.callback = callback;\n return ref.facade;\n}\n","import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nvar SideCar = function (_a) {\n var sideCar = _a.sideCar, rest = __rest(_a, [\"sideCar\"]);\n if (!sideCar) {\n throw new Error('Sidecar: please provide `sideCar` property to import the right car');\n }\n var Target = sideCar.read();\n if (!Target) {\n throw new Error('Sidecar medium not found');\n }\n return React.createElement(Target, __assign({}, rest));\n};\nSideCar.isSideCarExport = true;\nexport function exportSidecar(medium, exported) {\n medium.useMedium(exported);\n return SideCar;\n}\n","import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n","/**\n * @license React\n * use-sync-external-store-shim.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var e=require(\"react\");function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k=\"function\"===typeof Object.is?Object.is:h,l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c})},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c})})},[a]);p(d);return d}\nfunction r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return!k(a,d)}catch(f){return!0}}function t(a,b){return b()}var u=\"undefined\"===typeof window||\"undefined\"===typeof window.document||\"undefined\"===typeof window.document.createElement?t:q;exports.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.min.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\n\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n //\n // Note to future-self: No, you can't remove the `toLowerCase()` call.\n // REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351\n return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();\n}\nfunction stringify(arr, offset = 0) {\n var uuid = unsafeStringify(arr, offset);\n // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n return uuid;\n}\nexport default stringify;","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n options = options || {};\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n offset = offset || 0;\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return unsafeStringify(rnds);\n}\nexport default v4;","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `\n\t\t\t.iFrame {\n\t\t\t\tposition: fixed;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\ttop: 0px;\n\t\t\t\tborder-width: 0;\n\t\t\t\tz-index: 2147483647;\n\t\t\t\tbackground: #ffffff;\n\t\t\t}\n\t\t`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `\n\t\t\t& .full-height {\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `\n\t\t\t& .withSafeArea {\n\t\t\t\twidth: 100%;\n\t\t\t\tmax-width: 1320px;\n\t\t\t\tmargin: 0 auto 40px;\n\t\t\t}\n\t\t`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `\n\t\t\tp,\n\t\t\tspan,\n\t\t\th1,\n\t\t\th2,\n\t\t\th3,\n\t\t\th4,\n\t\t\th5,\n\t\t\th6,\n\t\t\th7,\n\t\t\th8,\n\t\t\th9 {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.sendButton {margin-top: 15px;} visiba-svg { width: 60px; }`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\nmedia-test-mini .testBox {\n background-color: var(--c_backgroundBox);\n border-radius: 4px;\n margin-bottom: 0px;\n transition: all 0.5s ease-in-out;\n box-sizing: border-box;\n position: relative;\n margin-bottom: 2px;\n}\nmedia-test-mini .testBox.js-visible {\n overflow: visible;\n}\nmedia-test-mini .testBox > div:not(.testEvaluation) {\n padding: 20px;\n display: flex;\n justify-content: space-between;\n}\nmedia-test-mini .testBox > div:not(.testEvaluation) h2.title {\n color: var(--c_textBody);\n font-weight: bold;\n font-size: 1.375em;\n}\nmedia-test-mini .testBox .inner {\n display: flex;\n}\nmedia-test-mini .testBox .inner .testIcon {\n width: 40px;\n}\nmedia-test-mini .testBox .btnWrapper {\n width: 260px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n}\nmedia-test-mini .testBox .btnWrapper .btn {\n width: 120px;\n}\nmedia-test-mini .testBox .innerColumn {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n}\nmedia-test-mini .testBox .portrait {\n width: 100px;\n}\nmedia-test-mini .testBox .switchContentHolder {\n position: relative;\n margin-left: var(--m_components);\n}\nmedia-test-mini .testBox .switchContentHolder .switchContent {\n width: 100%;\n transition: opacity 0.25s ease-in-out;\n}\nmedia-test-mini .testBox .statusIconArea {\n width: 20px;\n position: absolute;\n right: 20px;\n}\nmedia-test-mini .testBox .statusIconArea .statusIcon {\n width: 100%;\n transform: translateY(50%);\n opacity: 0;\n transition: opacity 0.25s ease-in-out;\n}\nmedia-test-mini .testBox .statusIconArea .statusIcon.svg_Check svg .fill {\n fill: #54ad54;\n}\nmedia-test-mini .testBox .statusIconArea .statusIcon.svg_Warning svg .fill {\n fill: var(--c_buttonDangerBackground);\n}\nmedia-test-mini .testBox .microphone_failed visiba-svg {\n width: 20px;\n margin-right: 10px;\n}\nmedia-test-mini .testBox .microphone_failed .fill {\n fill: var(--c_accentColor);\n}\nmedia-test-mini .testBox .microphone_failed .desc {\n color: var(--c_accentColor);\n}\nmedia-test-mini .testBox .iconWrapper {\n position: relative;\n width: 40px;\n}\nmedia-test-mini .testBox .iconWrapper .testIcon {\n width: 100%;\n position: relative;\n z-index: 2;\n}\nmedia-test-mini .testBox .iconWrapper .circlesWrapper {\n width: 100%;\n position: absolute;\n top: 20px;\n}\nmedia-test-mini .testBox .iconWrapper .circlesWrapper .circles {\n width: 100%;\n padding-bottom: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\nmedia-test-mini .testBox .iconWrapper .circlesWrapper .circles .circle {\n background: rgba(var(--c_mainColorDark), 0.1);\n border-radius: 100%;\n width: 150%;\n height: 150%;\n position: absolute;\n top: -25%;\n left: -25%;\n}\nmedia-test-mini .testBox .iconWrapper .circlesWrapper .svgbg {\n background: #fff;\n border-radius: 100%;\n overflow: hidden;\n width: 92%;\n padding-bottom: 92%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 1;\n}\nmedia-test-mini .testCamera .videoWrap {\n position: relative;\n border-radius: 100%;\n overflow: hidden;\n height: 0px;\n padding-bottom: 100%;\n transition: opacity 0.25s ease-in-out;\n}\nmedia-test-mini .testCamera .videoWrap .videoLoaderIcon {\n width: 40px;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\nmedia-test-mini .testCamera .videoWrap video {\n max-width: unset;\n}\nmedia-test-mini .hide {\n opacity: 0;\n}\nmedia-test-mini .show {\n opacity: 1 !important;\n transition: opacity 0.25s 0.25s ease-in-out !important;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\nmessaging .box {\n background-color: var(--c_backgroundBox);\n border-radius: 4px;\n margin-top: 2px;\n}\nmessaging .box:first-child {\n margin-top: 0px;\n}\nmessaging .header {\n padding: 20px 20px;\n}\nmessaging .header .columnWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 90%;\n}\nmessaging .header .columnWrapper .column {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n width: 100%;\n}\nmessaging .header .columnWrapper .column .item {\n padding: 0 4%;\n box-sizing: border-box;\n line-height: 1.1em;\n}\nmessaging .header .columnWrapper .column .item.paymentInfo {\n padding-right: 0;\n}\nmessaging .header .columnWrapper .column .icon {\n text-align: center;\n}\nmessaging .header .columnWrapper .column .icon visiba-svg {\n width: 20px;\n margin-top: 14px;\n}\nmessaging .header .columnWrapper .column .icon + div {\n width: calc(100% - 30px);\n margin-left: 10px;\n}\nmessaging .header .columnWrapper .column .title {\n font-weight: normal;\n font-size: 0.75em;\n}\nmessaging .header .columnWrapper .column .info {\n font-weight: lighter;\n}\nmessaging .messageAreaWrapper {\n padding-right: 2px;\n}\nmessaging .resourceArea {\n align-items: center;\n}\nmessaging .resourceArea .name {\n font-size: 1.375em;\n}\nmessaging .resourceArea visiba-svg {\n height: 40px;\n width: 40px;\n}\nmessaging .resourceArea .resourceInfo {\n margin-left: 20px;\n}\nmessaging .resourceArea .resourceInfo p {\n overflow: hidden;\n margin: 0px;\n white-space: nowrap;\n}\nmessaging .forms {\n margin-top: 20px;\n}\nmessaging .forms .form {\n display: inline-block;\n cursor: pointer;\n}\nmessaging .forms .form .icon {\n display: inline-block;\n position: relative;\n}\nmessaging .forms .form .icon visiba-svg {\n width: 20px;\n position: relative;\n margin-top: 3px;\n}\nmessaging .forms .form .icon span {\n position: absolute;\n border-radius: 100%;\n height: 17px;\n width: 17px;\n background-color: var(--c_accentColor);\n border: solid 2px #fff;\n font-weight: bold;\n top: -4px;\n right: -7px;\n box-sizing: border-box;\n text-align: center;\n color: rgba(255, 255, 255, 0.9);\n line-height: 13px;\n font-size: 0.8125em;\n}\nmessaging .forms .form .formInfo {\n float: right;\n margin-left: 12px;\n}\nmessaging .forms .form .formName {\n line-height: 1em;\n font-size: 1.25em;\n}\nmessaging .forms .form .notice {\n line-height: 1em;\n color: var(--c_accentColor);\n}\nmessaging .messageArea {\n max-height: 480px;\n overflow: auto;\n position: relative;\n}\nmessaging .messageArea .loader {\n text-align: center;\n position: absolute;\n top: calc(50% - 20px);\n width: 100%;\n}\nmessaging .messageArea .loader visiba-svg {\n width: 40px;\n}\nmessaging .messageArea .messagesWrapper {\n padding: var(--m_components);\n}\n@keyframes fadeInMessage {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\nmessaging .messageArea .messagesWrapper > .line:first-child {\n border-top: none;\n padding-top: 0px;\n margin-top: 0px;\n}\nmessaging .messageArea .messagesWrapper .line {\n border-top: solid 1px rgba(var(--c_textBody), 0.25);\n padding-top: var(--m_elements);\n margin-top: var(--m_elements);\n}\nmessaging .messageArea .messagesWrapper .messageHeader {\n text-align: center;\n font-size: 0.75em;\n font-weight: 400;\n}\nmessaging .messageArea .messagesWrapper .messageAndHeader .messageInfo {\n display: flex;\n align-items: center;\n}\nmessaging .messageArea .messagesWrapper .messageAndHeader .messageInfo .profileImg {\n width: 40px;\n height: 40px;\n float: left;\n display: inline-block;\n line-height: 0;\n}\nmessaging .messageArea .messagesWrapper .messageAndHeader .messageInfo .profileImg img {\n width: 100%;\n border-radius: 100%;\n height: 40px;\n}\nmessaging .messageArea .messagesWrapper .messageAndHeader .messageInfo .profileImg visiba-svg {\n width: 100%;\n}\nmessaging .messageArea .messagesWrapper .messageAndHeader .messageInfo .info {\n float: left;\n width: calc(100% - 40px);\n padding-left: 25px;\n box-sizing: border-box;\n line-height: 1.2em;\n}\nmessaging .messageArea .messagesWrapper .messageAndHeader .messageInfo .info .other {\n font-weight: lighter;\n}\nmessaging .messageArea .messagesWrapper .message {\n margin-top: 10px;\n line-height: 1.35em;\n box-sizing: border-box;\n padding-left: 66px;\n}\nmessaging .messageArea .messagesWrapper .message pre {\n font-size: 1em;\n font-family: \"Source Sans Pro\", sans-serif;\n line-height: 1.35em;\n margin: 0;\n}\nmessaging .messageArea .messagesWrapper .message .timestamp {\n font-weight: lighter;\n font-size: 0.875em;\n margin-top: 20px;\n}\nmessaging .messageArea .messagesWrapper .message .redRobinSession {\n color: #777;\n}\nmessaging .messageArea .messagesWrapper .formsInConversation .form {\n cursor: pointer;\n margin-top: 10px;\n padding-left: 66px;\n max-width: 50%;\n}\nmessaging .messageArea .messagesWrapper .formsInConversation .form .icon {\n float: left;\n width: 40px;\n}\nmessaging .messageArea .messagesWrapper .formsInConversation .form .icon visiba-svg {\n width: 100%;\n}\nmessaging .messageArea .messagesWrapper .formsInConversation .form .text {\n float: left;\n width: calc(100% - 50px);\n margin-left: 10px;\n line-height: 1.2em;\n}\nmessaging .messageArea .messagesWrapper .formsInConversation .form .text .--unanswered {\n color: var(--c_errorText);\n}\nmessaging .messageArea .messagesWrapper .formsInConversation .form .text .--answered {\n color: var(--c_textLink);\n}\nmessaging .messageArea .messagesWrapper .files .file {\n max-width: 50%;\n}\nmessaging .messageArea .messagesWrapper .files .file .nonImage {\n padding-top: 10px;\n}\nmessaging .messageArea .messagesWrapper .files .file .nonImage .icon {\n width: 40px;\n}\nmessaging .messageArea .messagesWrapper .files .file .nonImage .icon visiba-svg {\n width: 100%;\n}\nmessaging .messageArea .messagesWrapper .files .file .nonImage .text {\n padding-top: 10px;\n width: calc(100% - 50px);\n margin-left: 10px;\n line-height: 1.2em;\n}\nmessaging .messageArea .messagesWrapper .files .file .nonImage.uploading .icon {\n position: relative;\n}\nmessaging .messageArea .messagesWrapper .files .file .nonImage.uploading .icon visiba-svg,\nmessaging .messageArea .messagesWrapper .files .file .nonImage.uploading .icon svg {\n display: block;\n}\nmessaging .messageArea .messagesWrapper .files .file .nonImage.uploading .icon visiba-svg {\n stroke-dasharray: 250;\n stroke-dashoffset: 250;\n transition: all 0.1s ease-out;\n}\nmessaging .messageArea .messagesWrapper .files .file .nonImage.uploading .icon span {\n position: absolute;\n top: 22%;\n left: 0;\n right: 0;\n text-align: center;\n font-size: 0.75em;\n}\nmessaging .messageArea .messagesWrapper .files .file .nonImage.uploading .icon.failed .fill {\n fill: var(--c_accentColor);\n}\nmessaging .messageArea .messagesWrapper .files .file .nonImage.uploading .text {\n padding-top: 0;\n}\nmessaging .messageArea .messagesWrapper .files .file img {\n max-height: 150px;\n cursor: pointer;\n float: left;\n}\nmessaging .messageArea .messagesWrapper .caseClosed {\n text-align: center;\n padding-top: var(--m_elements);\n font-size: 0.75em;\n}\nmessaging .messageArea .messagesWrapper .caseClosed > div {\n line-height: 15px;\n}\nmessaging .messageArea .messagesWrapper .caseClosed span {\n font-weight: 600;\n}\nmessaging .messageArea .messagesWrapper .newMessage {\n display: none;\n text-align: center;\n font-size: 0.75em;\n margin-top: -2px;\n margin-bottom: -5px;\n}\nmessaging .messageArea .messagesWrapper .unread {\n border-top: 2px solid var(--c_mainColorLight);\n margin-top: 15px;\n}\nmessaging .messageArea .messagesWrapper .unread .newMessage {\n display: block;\n}\nmessaging .messageArea .messagesWrapper .unread .newMessage + .messageAndHeader {\n margin-top: -24px;\n}\nmessaging .messageArea .messagesWrapper .unread ~ .unread {\n margin-top: 0;\n border-top: none;\n}\nmessaging .messageArea .messagesWrapper .unread ~ .unread .newMessage {\n display: none;\n}\nmessaging .messageArea .messagesWrapper .unread ~ .unread .newMessage + .messageAndHeader {\n margin-top: unset;\n}\nmessaging .reconectInfo {\n background-color: var(--c_buttonDisabledText);\n margin-top: 2px;\n margin-bottom: -2px;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n padding: 5px 20px;\n}\nmessaging .reconectInfo + .writingArea::before {\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\nmessaging .writingArea {\n display: inline-block;\n position: relative;\n width: 100%;\n margin-top: 2px;\n}\nmessaging .writingArea::before {\n position: absolute;\n top: 0px;\n left: 0px;\n bottom: 0px;\n right: 0px;\n background-color: var(--c_backgroundBox);\n z-index: 0;\n border-radius: 4px;\n content: \"\";\n transition: left 0.2s ease-in-out, right 0.2s ease-in-out, box-shadow 0.2s ease-in-out;\n}\nmessaging .writingArea > * {\n position: relative;\n z-index: 1;\n}\nmessaging .writingArea.focus:not(.disabled)::before {\n left: -6px;\n right: -6px;\n box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);\n}\nmessaging .writingArea.disabled {\n opacity: 0.5;\n}\nmessaging .writingArea.disabled visiba-svg svg .fill {\n fill: var(--c_buttonDisabledText);\n}\nmessaging .writingArea.disabled .content .send {\n cursor: default;\n}\nmessaging .writingArea .content {\n padding: 12px 20px;\n display: flex;\n align-items: center;\n}\nmessaging .writingArea .content .plus {\n position: relative;\n float: left;\n width: 20px;\n height: 20px;\n line-height: 0;\n overflow: hidden;\n cursor: pointer;\n}\nmessaging .writingArea .content .plus input {\n width: 100%;\n height: 100%;\n opacity: 0;\n z-index: 3;\n position: absolute;\n top: 0;\n left: 0;\n cursor: pointer;\n}\nmessaging .writingArea .content .plus visiba-svg {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n cursor: pointer;\n z-index: 2;\n}\nmessaging .writingArea .content .plus visiba-svg svg {\n width: 100%;\n height: 100%;\n}\nmessaging .writingArea .content .plus input:hover + svg polygon {\n fill: var(--c_mainColorDarkActive);\n}\nmessaging .writingArea .content .input {\n float: left;\n width: calc(100% - 20px);\n padding: 0 20px;\n box-sizing: border-box;\n}\nmessaging .writingArea .content .input visiba-input .wallInput.wallStyling {\n padding: 0px;\n margin: 0;\n}\nmessaging .writingArea .content .input visiba-input .wallInput.wallStyling::before {\n content: none;\n}\nmessaging .writingArea .content .input visiba-input .wallInput.wallStyling::after {\n content: none;\n}\nmessaging .writingArea .content .input visiba-input .wallInput.wallStyling textarea {\n border: none;\n padding: 0px;\n box-sizing: border-box;\n padding-top: 3px;\n}\nmessaging .writingArea .content .input visiba-input .wallInput.wallStyling label {\n display: none;\n}\nmessaging .writingArea .content .send {\n float: left;\n width: 20px;\n line-height: 0;\n cursor: pointer;\n}\nmessaging .writingArea .content .send visiba-svg {\n width: 20px;\n}\nmessaging .footer {\n text-align: center;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\nbreadcrumbs .content, breadcrumbs .goBack {\n display: flex;\n align-items: center;\n flex-direction: row;\n height: 60px;\n box-sizing: border-box;\n padding: 20px;\n color: var(--c_mainColorDark);\n -webkit-user-select: none;\n user-select: none;\n border-radius: 4px;\n background-color: var(--c_backgroundBox);\n}\n\nbreadcrumbs {\n display: flex;\n align-items: center;\n margin-bottom: 20px;\n font-size: 1rem;\n line-height: normal;\n}\nbreadcrumbs .goBack {\n margin-right: var(--m_relatedContents);\n cursor: pointer;\n}\nbreadcrumbs .goBack .svg_arrowLeft {\n width: 20px;\n margin-right: 10px;\n}\nbreadcrumbs .content {\n justify-content: space-between;\n flex-grow: 1;\n}\nbreadcrumbs .breadList {\n margin: 0;\n padding: 0;\n display: flex;\n align-items: center;\n}\nbreadcrumbs .breadList .clickable a {\n cursor: pointer;\n}\nbreadcrumbs .breadList .selected span,\nbreadcrumbs .breadList .selected a {\n cursor: default;\n}\nbreadcrumbs .breadList .selected span::before,\nbreadcrumbs .breadList .selected a::before {\n content: \"\";\n position: absolute;\n bottom: -1px;\n height: 1px;\n width: 100%;\n background: var(--c_mainColorDark);\n}\nbreadcrumbs .breadList__item {\n position: relative;\n display: flex;\n color: var(--c_mainColorDark);\n}\nbreadcrumbs .breadList__item .svg_arrowRight {\n width: 16px;\n margin: 0 var(--m_components)-3;\n}\nbreadcrumbs .breadList__item .svg_arrowRight .fill {\n fill: var(--c_mainColorDark);\n}\nbreadcrumbs .breadList__item a {\n cursor: default;\n color: var(--c_mainColorDark);\n}\nbreadcrumbs .breadList .disabled span,\nbreadcrumbs .breadList .disabled a {\n color: rgba(var(--c_textBody), 0.54285714);\n}\nbreadcrumbs .breadList .disabled span::before,\nbreadcrumbs .breadList .disabled a::before {\n color: rgba(var(--c_textBody), 0.54285714);\n}\nbreadcrumbs .breadList .disabled .svg_arrowRight {\n width: 16px;\n margin: 0 var(--m_components)-3;\n}\nbreadcrumbs .breadList .disabled .svg_arrowRight .fill {\n fill: rgba(var(--c_textBody), 0.54285714);\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\nvisiba-document-sign {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 100;\n}\n@media screen and (max-width: 905px) {\n visiba-document-sign {\n height: 100vh;\n width: 100vw;\n }\n}\nvisiba-document-sign .block {\n margin-bottom: 40px;\n word-break: break-all;\n}\nvisiba-document-sign .overlay {\n background: var(--c_mainOverlayBackground);\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n}\nvisiba-document-sign .container {\n position: relative;\n pointer-events: none;\n height: 100%;\n}\n@media screen and (max-width: 905px) {\n visiba-document-sign .container {\n width: 100%;\n }\n}\nvisiba-document-sign .containerInner {\n height: 100%;\n}\n@media screen and (max-width: 905px) {\n visiba-document-sign .containerInner {\n margin: 0 8px;\n }\n}\nvisiba-document-sign .inner {\n background: var(--c_backgroundBox);\n box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.4);\n padding: 46px 40px 33px;\n pointer-events: all;\n overflow-y: auto;\n max-height: 80%;\n position: relative;\n top: 100px;\n position: relative;\n border-radius: 16px;\n}\n@media screen and (max-width: 905px) {\n visiba-document-sign .inner {\n margin: 0 !important;\n width: 100% !important;\n }\n}\nvisiba-document-sign .inner .title {\n font-weight: 600;\n margin-bottom: 20px;\n}\nvisiba-document-sign .inner .summary {\n white-space: pre-line;\n word-break: break-word;\n}\nvisiba-document-sign .inner .checkboxes {\n padding: 0 6% 40px;\n}\nvisiba-document-sign .inner .checkboxes .wallInput {\n padding-top: 0;\n margin-top: 12px;\n}\nvisiba-document-sign .inner h2 {\n font-size: 1.375em;\n color: var(--c_textBody);\n margin-bottom: 1.7em;\n}\nvisiba-document-sign .inner .body {\n margin-bottom: 20px;\n}\nvisiba-document-sign .inner .body ul {\n list-style: disc;\n padding: 0;\n}\nvisiba-document-sign .inner .abortButton {\n margin-top: 7px;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\n.wwrapper {\n position: fixed;\n top: 100px;\n right: 24px;\n z-index: 1;\n}\n.wwrapper .subContent {\n color: var(--c_textBody);\n}\n.wwrapper .content {\n color: var(--c_menuPublicTextColor);\n}\n.wwrapper .mainContent {\n color: var(--c_accentColor);\n font-size: 1.375em;\n}\n.wwrapper .subContent {\n color: var(--c_textBody);\n font-size: 0.875em;\n}\n.wwrapper .item {\n background: #fff;\n border-bottom: 5px solid var(--c_accentColor);\n min-width: 320px;\n min-height: 60px;\n display: flex;\n align-items: center;\n border-radius: 4px;\n box-shadow: var(--cellula--elevation--floating);\n padding: 8px 16px;\n}\n.wwrapper .item .fill {\n fill: var(--c_accentColor);\n}\n.wwrapper .svgWrap {\n min-width: 30px;\n text-align: center;\n height: 27px;\n margin-right: 16px;\n}\n.wwrapper .svgWrap visiba-svg {\n width: auto;\n}\n.wwrapper .svgWrap visiba-svg svg {\n display: block;\n height: 27px;\n}\n.wwrapper .svgWrap span {\n color: var(--c_accentColor);\n font-weight: bold;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\ndynamic-form {\n display: block;\n margin-bottom: var(--m_relatedContents);\n border-radius: 0;\n padding: 0;\n word-break: break-all;\n}\ndynamic-form h1,\ndynamic-form h2,\ndynamic-form h3 {\n color: var(--c_textBody);\n}\ndynamic-form .head {\n word-break: normal;\n background: var(--c_backgroundBox);\n border-radius: 4px;\n padding: 20px 40px;\n margin-bottom: var(--m_relatedContents);\n text-align: center;\n}\ndynamic-form .page {\n background: var(--c_backgroundBox);\n border-radius: 4px;\n padding: 20px 40px;\n}\ndynamic-form .page h2 {\n text-align: left;\n}\ndynamic-form .question {\n margin: 40px 0;\n word-break: normal;\n}\ndynamic-form .question .row.input {\n padding-left: 20px;\n}\ndynamic-form .question h3 {\n font-size: 1.25em;\n font-weight: 300;\n}\ndynamic-form .question h3 span {\n font-size: 1.5em;\n font-weight: normal;\n}\ndynamic-form .question.customValidation {\n position: relative;\n}\ndynamic-form .question.customValidation span.error {\n display: none;\n position: absolute;\n bottom: -15px;\n font-size: 0.8em;\n font-weight: normal;\n line-height: 1em;\n right: 0;\n z-index: 3;\n font-size: 0.625em;\n}\ndynamic-form .question.customValidation .dirty span.error {\n display: block;\n}\ndynamic-form dfq-yesno .radioWrap {\n display: inline-block;\n margin-right: 25px;\n}\ndynamic-form dfq-yesno .radioWrap label {\n display: block;\n}\ndynamic-form dfq-multiline {\n display: block;\n max-width: 400px;\n}\ndynamic-form dfq-multichoice visiba-input {\n margin: 10px 0;\n}\ndynamic-form .ng-submitted .question.customValidation span.error {\n display: block;\n}\ndynamic-form .navigation {\n text-align: center;\n}\ndynamic-form .navigation .back {\n left: 0;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n color: var(--c_mainColorLight);\n font-size: 0.75em;\n cursor: pointer;\n -webkit-user-select: none;\n user-select: none;\n transition: all 200ms ease;\n}\ndynamic-form .navigation .back visiba-svg {\n width: 10px;\n margin-right: var(--m_elements);\n top: 4px;\n position: relative;\n}\ndynamic-form .navigation .pagination {\n font-size: 1.25em;\n color: var(--c_inputBorder);\n}\ndynamic-form .navigation .pagination span span {\n color: var(--c_textDark);\n font-weight: 600;\n}\ndynamic-form .navigation .abortLink {\n font-size: 0.75em;\n}\ndynamic-form .navigation .next,\ndynamic-form .navigation .send {\n display: inline-block;\n min-width: 200px;\n}\ndynamic-form .navigation .row {\n margin: var(--m_components) 0 5px;\n position: relative;\n}\n\n/* ==========================================================================\n# Tablet CSS\n ========================================================================== */`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\n.container {\n width: 50px;\n height: 50px;\n display: flex;\n}\n\n.svg {\n display: flex;\n align-items: center;\n justify-content: center;\n fill: var(--c_mainColorDark);\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\nlicenceholder-footer footer {\n background: var(--c_mainColorDarkActive);\n padding: 40px 0;\n color: var(--c_textLight);\n min-height: 200px;\n box-sizing: border-box;\n}\nlicenceholder-footer footer visiba-svg {\n width: 20px;\n}\nlicenceholder-footer footer visiba-svg .fill {\n fill: var(--c_textLight);\n}\nlicenceholder-footer footer visiba-svg svg {\n max-height: 40px;\n}\nlicenceholder-footer footer .basicInfo {\n font-weight: lighter;\n}\nlicenceholder-footer footer .basicInfo > .row {\n padding: 2px 0;\n}\nlicenceholder-footer footer .basicInfo .icon {\n float: left;\n position: relative;\n}\nlicenceholder-footer footer .basicInfo .text {\n float: left;\n width: calc(100% - 40px);\n margin-left: var(--m_components);\n}\nlicenceholder-footer footer .basicInfo .text a {\n color: var(--c_textLight);\n -webkit-hyphens: manual;\n hyphens: manual;\n word-break: break-word;\n}\nlicenceholder-footer footer .basicInfo .text a:hover {\n font-weight: normal;\n}\nlicenceholder-footer footer .basicInfo .text.about {\n white-space: pre-line;\n}\nlicenceholder-footer footer .basicInfo .text.about a {\n color: var(--c_mainColorLight);\n}\nlicenceholder-footer footer .logos {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\nlicenceholder-footer footer .logos img.ce {\n margin-top: 80px;\n width: 40px;\n display: inline;\n}\nlicenceholder-footer footer .logos img.visiba {\n margin-top: 20px;\n width: 100px;\n display: inline;\n}\n@media screen and (max-width: 905px) {\n licenceholder-footer footer .container {\n width: auto;\n margin: 0 1rem;\n }\n licenceholder-footer footer .row > .basicInfo {\n width: 100%;\n margin-left: 0;\n margin-bottom: 1rem;\n }\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\nmobile-app-promotion .contentWrapper {\n text-align: center;\n}\nmobile-app-promotion .contentWrapper .textCircle {\n background-color: var(--c_mainColorDark);\n border-radius: 100%;\n font-size: 0.875em;\n line-height: 1.2em;\n padding: 50% 10% 50%;\n color: #fff;\n text-align: center;\n margin-bottom: 6px;\n}\nmobile-app-promotion .contentWrapper .textCircle .textHolder {\n height: 0px;\n}\nmobile-app-promotion .contentWrapper .textCircle .textHolder .text {\n transform: translateY(-50%);\n}\nmobile-app-promotion .contentWrapper img {\n margin: 5px 0px 0px;\n width: 100%;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\n.modal__overlay {\n z-index: 998;\n background: var(--c_mainOverlayBackground);\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n}\n\n.modal {\n z-index: 999;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n.modal__container {\n max-width: 600px;\n min-width: 300px;\n padding: var(--m_components);\n background: var(--c_backgroundBox);\n box-shadow: rgba(102, 119, 136, 0.1) 0 2px 8px 2px, rgba(102, 119, 136, 0.3) 0 1px 2px;\n pointer-events: auto;\n border-radius: 16px;\n text-align: center;\n}\n@media screen and (max-width: 905px) {\n .modal__container {\n margin: 0 8px;\n }\n}\n.modal__container .cancel {\n text-align: right;\n}\n.modal__container .cancel visiba-svg {\n width: 20px;\n}\n.modal__container .cancel visiba-svg:hover {\n cursor: pointer;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\n.notSupportedToastContainer {\n position: fixed;\n bottom: 20px;\n left: 20px;\n}\n\n.notSupportedToast {\n width: 300px;\n min-height: 100px;\n background: #fff;\n padding: 20px;\n border-radius: 20px;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);\n margin-bottom: 20px;\n}\n.notSupportedToast:last-of-type {\n margin-bottom: 0;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\n.notificationComplianceContainer {\n width: 480px;\n}\n@media screen and (max-width: 905px) {\n .notificationComplianceContainer {\n width: 100%;\n }\n}\n\n.title {\n color: black;\n}\n\n.infoText {\n text-align: left;\n padding: 0 35px;\n}\n.infoText:first-of-type {\n margin-top: 40px;\n}\n.infoText:last-of-type {\n margin-bottom: 80px;\n}\n\n.toggleContainer {\n display: flex;\n justify-content: space-evenly;\n margin: 25px 0;\n}\n\n.sendButton {\n margin-top: 20px;\n width: 180px;\n}\n\n.error {\n font-size: small;\n}\n\n.bold {\n font-weight: bold;\n}\n\nbutton {\n margin: 10px;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\nvisiba-registration {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 100;\n}\nvisiba-registration .regContainer {\n display: block;\n overflow-y: scroll;\n width: 100vw;\n height: 100vh;\n}\n@media screen and (max-width: 905px) {\n visiba-registration {\n width: 100vw;\n height: 100vh;\n }\n visiba-registration .registration-fields > * {\n width: 100% !important;\n margin: 0 !important;\n padding: 0 8px;\n }\n}\nvisiba-registration .overlay {\n background: var(--c_mainOverlayBackground);\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n}\nvisiba-registration .container {\n margin-top: 120px;\n position: relative;\n pointer-events: none;\n}\n@media screen and (max-width: 905px) {\n visiba-registration .container {\n width: 100%;\n display: flex;\n align-items: center;\n margin-top: 0;\n overflow: auto;\n }\n}\nvisiba-registration .inner {\n background: var(--c_backgroundBox);\n box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.4);\n padding: 40px 0;\n pointer-events: all;\n border-radius: 16px;\n}\n@media screen and (max-width: 905px) {\n visiba-registration .inner {\n width: auto !important;\n margin: 0 8px !important;\n }\n}\nvisiba-registration .inner .icon {\n margin-bottom: 16px;\n text-align: center;\n}\nvisiba-registration .inner .icon visiba-svg {\n width: 60px;\n}\nvisiba-registration .inner .intro {\n text-align: center;\n}\n@media screen and (max-width: 905px) {\n visiba-registration .inner .intro {\n margin: 0 !important;\n width: 100% !important;\n }\n}\nvisiba-registration .inner visiba-nin,\nvisiba-registration .inner visiba-input,\nvisiba-registration .inner visiba-tel {\n margin-bottom: 30px;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.semantic-view {\n min-height: 100vh;\n min-height: 100svh;\n min-height: 100dvh;\n display: flex;\n flex-direction: column;\n}\n\n.semantic-header {\n position: fixed;\n top: 0;\n left: 0;\n display: flex;\n align-items: center;\n height: var(--header-height);\n width: 100%;\n background-color: #f1f3f5;\n box-shadow: var(--cellula--elevation--skim);\n /* Needs to use a high z-index to have it appear on top of other elements */\n z-index: 2;\n}\n@media screen and (max-width: 700px) {\n .semantic-header.hide-on-small-devices {\n display: none;\n }\n}\n\n.semantic-main {\n position: relative;\n width: 100%;\n top: var(--header-height);\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n margin-bottom: var(--header-height);\n overflow: hidden;\n background-color: var(--cellula--color--neutral--100);\n z-index: 1;\n min-height: calc(95vh - 48px);\n}\n@media screen and (max-width: 700px) {\n .semantic-main.full-screen {\n top: 0;\n margin: 0;\n min-height: 100%;\n }\n}\n\n.semantic-footer {\n width: 100%;\n overflow: hidden;\n min-height: 332px;\n background-color: var(--cellula--color--primary--300);\n}\n@media screen and (max-width: 700px) {\n .semantic-footer.hide-on-small-devices {\n display: none;\n }\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\nvisiba-signin {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: calc(var(--Z_INDEX_HACK, 0) + 3);\n}\n@media screen and (max-width: 905px) {\n visiba-signin {\n width: 100vw;\n height: 100vh;\n }\n}\nvisiba-signin .outerWrapper {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.5);\n}\nvisiba-signin .container {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: none;\n overflow-x: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow-y: auto;\n}\n@media screen and (max-width: 905px) {\n visiba-signin .container {\n height: 100%;\n width: 100%;\n }\n}\nvisiba-signin .innerWrapper {\n width: 480px;\n max-width: 90%;\n pointer-events: all;\n cursor: auto;\n}\n@media screen and (max-width: 905px) {\n visiba-signin .innerWrapper {\n max-width: 100%;\n width: 100%;\n margin: 0 8px;\n }\n}\nvisiba-signin .innerContent {\n position: relative;\n border-radius: 16px;\n background: var(--c_backgroundBox);\n box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.5);\n display: flex;\n pointer-events: auto;\n flex-direction: column;\n overflow: hidden;\n}\nvisiba-signin .error {\n text-align: center;\n}\nvisiba-signin .methods {\n text-align: center;\n color: rgba(var(--c_textBody), 0.853659);\n}\nvisiba-signin .methods .list {\n margin-top: 9px;\n background: var(--c_mainColorDark);\n line-height: 1em;\n display: flex;\n flex-wrap: wrap;\n align-items: stretch;\n}\nvisiba-signin .methods .list-item {\n all: unset;\n color: var(--c_textLight);\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 10px 15px 12px;\n min-width: 100px;\n cursor: pointer;\n flex: 1;\n}\nvisiba-signin .methods .list-item:focus {\n background-color: var(--c_mainColorLight);\n}\nvisiba-signin .methods .list-item.selected {\n background-color: var(--c_mainColorDarkActive);\n}\nvisiba-signin .methods .list-item visiba-svg {\n width: 30px;\n}\nvisiba-signin .methods .list-item visiba-svg .fill {\n fill: var(--c_textLight);\n}\nvisiba-signin .methods .list-item .logInTypeImg {\n height: 40px;\n margin-bottom: 5px;\n}\nvisiba-signin .countrySelect {\n width: 150px;\n margin-left: 20px;\n}\nvisiba-signin .cancel {\n all: unset;\n position: absolute;\n right: 20px;\n top: 20px;\n cursor: pointer;\n z-index: 1;\n}\nvisiba-signin .cancel visiba-svg {\n width: 20px;\n}\nvisiba-signin .loginReason {\n padding: 40px 40px 0px;\n text-align: center;\n}\nvisiba-signin .loginReason .title {\n font-size: 1.375em;\n}\nvisiba-signin .methodDirectives {\n min-height: 200px;\n text-align: center;\n padding: 40px 40px 16px;\n position: relative;\n}\nvisiba-signin no-auth-login {\n display: block;\n padding: 0 80px;\n}\nvisiba-signin no-auth-login .btn {\n margin: 1em 0;\n background: var(--c_mainColorDark);\n width: 100%;\n}\nvisiba-signin no-auth-login input {\n display: block;\n width: 100%;\n box-sizing: border-box;\n}\nvisiba-signin no-auth-login .error {\n margin: 1em 0;\n color: var(--c_accentColor);\n}\nvisiba-signin sms-login form .codeField {\n padding-top: 10px;\n margin-top: 6px;\n}\nvisiba-signin sms-login form .codeField.nhsStyling {\n padding-top: 0;\n margin-top: 0;\n}\nvisiba-signin sms-login form .codeAgain {\n font-size: 0.875em;\n text-align: center;\n cursor: pointer;\n}\nvisiba-signin sms-login form .codeSent {\n font-size: 0.75em;\n color: var(--c_mainColorDark);\n text-align: center;\n}\nvisiba-signin sms-login form .err {\n font-size: 0.75em;\n color: var(--c_errorText);\n}\nvisiba-signin sms-login form .btn.large {\n margin-top: 30px;\n width: 100%;\n}\nvisiba-signin sms-login form .btn.large.nhsButton {\n height: 80%;\n width: 50%;\n}\nvisiba-signin sms-login .nhsFont {\n font-size: 1rem;\n margin-bottom: 0;\n color: #505050;\n}\nvisiba-signin visibacare-iframe-auth {\n display: block;\n text-align: center;\n}\nvisiba-signin visibacare-iframe-auth visiba-svg {\n width: 40px;\n position: absolute;\n top: 20%;\n left: 50%;\n margin-left: -20px;\n z-index: 2;\n}\nvisiba-signin visibacare-iframe-auth .btn {\n margin-top: 4em;\n padding: 8px 30px;\n}\nvisiba-signin visibacare-iframe-auth .btn-nhs {\n display: inline-flex;\n padding: 10px;\n gap: 16px;\n align-items: center;\n background-color: #005eb8;\n color: #fff;\n line-height: 0;\n border: none;\n border-radius: 5px;\n}\nvisiba-signin visibacare-iframe-auth .loading-nhs {\n display: inline-flex;\n padding: 10px;\n gap: 16px;\n align-items: center;\n color: #005eb8;\n line-height: 0;\n font-weight: 600;\n}\nvisiba-signin .marginBottom2 {\n margin-bottom: 2rem;\n}\nvisiba-signin .marginBottom4 {\n margin-bottom: 4rem;\n}\n\n@media only screen and (max-height: 600px) {\n visiba-signin .outerWrapper {\n display: block;\n }\n visiba-signin .outerWrapper .innerWrapper {\n margin: 50px auto;\n }\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\n.succesBox {\n overflow: hidden;\n display: block;\n}\n.succesBox.-related {\n margin-bottom: var(--m_relatedContents);\n}\n.succesBox.-element {\n margin-bottom: var(--m_elements);\n}\n.succesBox__container {\n text-align: center;\n border-radius: 4px;\n overflow: hidden;\n}\n.succesBox__header {\n background-color: var(--c_mainColorDark);\n position: relative;\n}\n.succesBox__check {\n position: relative;\n top: 17px;\n transform: scale(1.06);\n}\n.succesBox__check svg {\n height: 80px;\n filter: drop-shadow(0 0px 4px rgba(0, 0, 0, 0.1));\n}\n.succesBox__check svg .fill {\n fill: var(--c_backgroundBox);\n}\n.succesBox__exit {\n position: absolute;\n right: 20px;\n top: 20px;\n width: 20px;\n height: 20px;\n cursor: pointer;\n}\n.succesBox__exit visiba-svg {\n width: inherit;\n height: inherit;\n}\n.succesBox__exit visiba-svg .fill {\n fill: var(--c_backgroundBox);\n}\n.succesBox__info {\n background-color: var(--c_backgroundBox);\n padding: 30px 10px 0;\n}\n.succesBox__info__receiptUrl {\n font-size: 12px;\n}\n.succesBox__action {\n font-size: 12px;\n display: flex;\n justify-content: center;\n line-height: 12px;\n padding-bottom: var(--m_components);\n}\n.succesBox__href {\n color: var(--c_mainColorLight);\n cursor: pointer;\n font-weight: 600;\n}\n.succesBox h2 {\n color: var(--c_textBody);\n font-weight: 600;\n font-size: 1.25em;\n margin: 0;\n margin-bottom: 0.3em;\n}\n.succesBox p {\n margin-bottom: var(--m_elements);\n}\n.succesBox .btn {\n margin-top: 20px;\n width: 30%;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\nunit-picker breadcrumbs {\n margin-bottom: 2px;\n}\nunit-picker .header {\n background: #fff;\n padding: 20px;\n border-radius: 4px;\n}\nunit-picker .header h1 {\n color: var(--c_textBody);\n}\nunit-picker .header .searchRow {\n display: flex;\n margin: 12px 88px 2px;\n}\nunit-picker .header .searchRow visiba-input {\n flex-grow: 1;\n}\nunit-picker .header .searchRow visiba-input input {\n width: 100%;\n box-sizing: border-box;\n outline: 0;\n}\nunit-picker .unit {\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: #ffffff;\n padding: 15px 20px;\n border-radius: 4px;\n margin-top: 2px;\n cursor: pointer;\n}\nunit-picker .unit.-offer {\n justify-content: flex-start;\n}\nunit-picker .unit.-offer visiba-svg {\n width: 24px;\n height: 24px;\n margin-right: 20px;\n}\nunit-picker .unit visiba-svg {\n width: 13px;\n height: 22px;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\nvisiba-payment .paymentBox {\n position: relative;\n background-color: var(--c_backgroundBox);\n border-radius: 4px;\n margin-bottom: 2px;\n height: 0px;\n transition: all 0.5s ease-in-out;\n overflow: hidden;\n box-sizing: border-box;\n}\nvisiba-payment .paymentBox > div {\n padding: 40px 0px;\n transition: opacity 0.25s ease-in-out;\n opacity: 0;\n position: absolute;\n width: 100%;\n top: 0px;\n pointer-events: none;\n}\nvisiba-payment .paymentBox .hide {\n visibility: hidden;\n}\nvisiba-payment .paymentBox .paymentTitle {\n color: var(--c_textBody);\n}\nvisiba-payment .paymentBox .continueActions .continue .btn {\n width: 100%;\n}\nvisiba-payment .paymentBox .continueActions .cancel {\n text-align: center;\n}\nvisiba-payment .paymentBox .paymentOptions .paymentChoices {\n margin-bottom: 10px;\n}\nvisiba-payment .paymentBox .paymentFrame iframe {\n width: 100%;\n height: 280px;\n border: none;\n position: relative;\n z-index: 1;\n}\nvisiba-payment .paymentBox .paymentFrame .loadingIcon {\n width: 40px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\nvisiba-payment .paymentBox .paymentFailed .failedMessage {\n min-height: 50px;\n color: var(--c_mainColorDark);\n}\nvisiba-payment .paymentBox .paymentFailed .paymentTitle {\n display: inline-block;\n}\nvisiba-payment .paymentBox .paymentFailed visiba-svg {\n display: inline-block;\n vertical-align: middle;\n margin-top: -8px;\n width: 40px;\n}\nvisiba-payment .paymentBox .paymentFailed visiba-svg .fill {\n fill: var(--c_mainColorLight);\n}\nvisiba-payment .paymentBox .paymentFailed h2 {\n font-weight: bold;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\n.progressbar {\n position: absolute;\n left: 0;\n right: 0;\n z-index: 2;\n background: #ffffff;\n height: 5px;\n width: 100%;\n transition: height 0.2s linear;\n overflow: hidden;\n}\n.progressbar.-rounded {\n border-radius: 4px;\n}\n.progressbar.-big {\n height: 20px;\n}\n.progressbar.-static {\n display: block;\n position: static;\n}\n.progressbar.-fixed {\n top: 75px;\n position: fixed;\n}\n.progressbar.-positionTop {\n top: 0;\n}\n.progressbar.js-disable {\n height: 0;\n transition-delay: 0.3s;\n}\n.progressbar__line {\n display: block;\n overflow: hidden;\n position: relative;\n width: inherit;\n height: inherit;\n}\n\n.bar, .determinate, .indeterminate {\n position: absolute;\n background: var(--c_mainColorDark);\n height: inherit;\n}\n.bar.-rounded, .-rounded.determinate, .-rounded.indeterminate {\n border-radius: 20px;\n}\n.bar.-light, .-light.determinate, .-light.indeterminate {\n background: var(--c_mainColorLight);\n}\n\n.indeterminate {\n animation: indeterminateBar 2s 0.5s infinite;\n}\n\n.determinate {\n transition: transform 0.5s ease-in-out;\n width: 100%;\n transform-origin: top left;\n}\n\n@keyframes indeterminateBar {\n 0% {\n left: -70%;\n width: 70%;\n }\n 100% {\n left: 105%;\n width: 5%;\n }\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\nvisiba-step {\n background-color: var(--c_backgroundBox);\n display: flex;\n width: 100%;\n padding: 20px 40px 16px;\n box-sizing: border-box;\n border-radius: 4px;\n margin-bottom: 2px;\n flex-wrap: wrap;\n}\n@media screen and (min-width: 900px) {\n visiba-step {\n flex-direction: row;\n }\n}\nvisiba-step .step {\n display: flex;\n align-items: center;\n margin: 0 10px;\n color: rgba(var(--c_textBody), 0.54285714);\n}\nvisiba-step .step visiba-svg {\n width: 10px;\n margin-left: 20px;\n vertical-align: middle;\n flex-shrink: 0;\n}\nvisiba-step .step visiba-svg .fill {\n fill: rgba(var(--c_textBody), 0.54285714);\n}\nvisiba-step .step.done, visiba-step .step.current {\n color: var(--c_mainColorDark);\n}\nvisiba-step .step.done visiba-svg .fill {\n fill: var(--c_mainColorDark);\n}\nvisiba-step .step.current span {\n border-bottom: 2px solid var(--c_mainColorDark);\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\n.section_guest {\n display: flex;\n justify-content: center;\n}\n.section_guest .innerBox {\n position: relative;\n}\n.section_guest.isWeb {\n margin-top: 2em;\n}\n.section_guest.isWeb .innerBox {\n border-radius: 30px;\n padding: 60px 80px;\n min-height: 80vh;\n width: 500px;\n box-sizing: border-box;\n}\n.section_guest.isNative {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.section_guest.isNative .innerBox {\n width: 100%;\n padding: 20px;\n}\n.section_guest .btn {\n border-radius: 20px;\n width: auto;\n font-weight: bold;\n padding: 16px 44px;\n}\n.section_guest .innerBox {\n background: var(--c_backgroundBox);\n}\n.section_guest h1 {\n color: var(--c_textBody);\n margin-bottom: 0;\n font-weight: bold;\n font-size: 1.3125em;\n}\n.section_guest .time {\n display: flex;\n margin: 2em 0;\n}\n.section_guest .time.disabled {\n opacity: 0.5;\n}\n.section_guest .time visiba-svg {\n flex-shrink: 0;\n width: 35px;\n margin-right: 10px;\n}\n.section_guest .time .text {\n flex-grow: 1;\n top: -5px;\n position: relative;\n}\n.section_guest .time .text b {\n font-weight: 600;\n}\n.section_guest .textInfo {\n min-height: 200px;\n margin-bottom: 2em;\n}\n.section_guest .textInfo__link {\n margin-top: 2em;\n text-align: center;\n}\n.section_guest .textInfo__link a {\n width: 55%;\n display: inline-block;\n}\n.section_guest .lobbyInfo {\n text-align: center;\n font-weight: bold;\n}\n.section_guest .signOut,\n.section_guest .startCall {\n text-align: center;\n margin-top: 2em;\n}\n.section_guest .error {\n font-weight: bold;\n}\n.section_guest .bottomSectionWrap {\n position: absolute;\n bottom: 100px;\n width: 100%;\n left: 0;\n}\n\n.guestOverlay {\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: #ffffff;\n z-index: 999999;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 15px;\n}\n.guestOverlay p {\n text-align: center;\n font-size: 1.25rem;\n font-weight: bold;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ==========================================================================\n# Colors\n ========================================================================== */\n/*\\$mainColor:#d40621;\n\\$alphaLight:rgba(#fff, .5);\n\\$alphaDark:rgba(#000, .5);\n\\$placeholderTextLight:rgba(#fff, .7);\n\\$placeholderTextDark:rgba(#000, .7);\n\n\\$textLight: #fff;\n\\$textDark: #404040;\n\\$textThemes:#d40621;*/\n/* ################## */\n/* ################## */\n/* ################## */\n/* ################## */\nbody .section_index {\n font-size: 1.375em;\n}\nbody .section_index unit-picker {\n display: block;\n margin-bottom: 80px;\n}\nbody .section_index .signInRow {\n margin-bottom: 20px;\n}\nbody .section_index .signInRow visiba-svg {\n width: 20px;\n}\nbody .section_index mobile-app-promotion {\n font-size: 0.7272727273em;\n position: absolute;\n width: 120px;\n margin-top: 20px;\n left: 4%;\n z-index: 1;\n}\nbody .section_index .pageText {\n margin-top: 50px;\n}\nbody .section_index .pageLogo {\n margin-top: 50px;\n display: flex;\n justify-content: center;\n}\nbody .section_index .pageLogo img {\n height: 150px;\n}\nbody .section_index .doors {\n margin-top: 50px;\n}\nbody .section_index .doors > div:first-child {\n margin-bottom: 40px;\n}\nbody .section_index .doors .door {\n color: var(--c_textBody);\n}\nbody .section_index .doors .door .cardBtn {\n padding: 20px 40px;\n box-sizing: border-box;\n}\nbody .section_index .doors .door:nth-child(odd) {\n clear: left;\n margin-left: 0;\n}\nbody .section_index .doors .door:nth-child(n+3) {\n margin-top: 40px;\n}\nbody .section_index .doors .door.superoffset12 {\n margin-left: 24%;\n}\nbody .section_index .doors .door .icon {\n float: left;\n width: 40px;\n display: flex;\n align-content: center;\n align-items: center;\n height: 50px;\n}\nbody .section_index .doors .door .icon .noticeBadge {\n position: absolute;\n top: -1px;\n right: -6px;\n border-radius: 100%;\n background-color: var(--c_accentColor);\n text-align: center;\n font-weight: bold;\n color: var(--c_textLight);\n font-size: 0.6818181818em;\n line-height: 0.6818181818em;\n width: 1.6em;\n height: 1.6em;\n padding: 0.3333333333em 0;\n box-sizing: border-box;\n border: solid 2px var(--c_backgroundBox);\n}\nbody .section_index .doors .door svg {\n height: 40px;\n width: 50px;\n}\nbody .section_index .doors .door .text {\n float: left;\n margin-left: 20px;\n width: calc(100% - 60px);\n}\nbody .section_index .doors .door .text .title {\n font-size: 1em;\n font-weight: 600;\n}\nbody .section_index .doors .door .text .info {\n font-size: 0.7272727273em;\n}\nbody .section_index .doors .door visiba-svg {\n width: 100%;\n}\nbody .section_index .doors .door visiba-svg svg {\n width: 100%;\n}\nbody .section_index .doors .door visiba-svg svg .fill {\n transition: all 0.2s ease-in-out;\n}\nbody .section_index .full {\n background: url(\"//media-cdn.visibacare.com/service/public/design/headerBg.png\") no-repeat center;\n background-size: cover;\n padding-bottom: 10.41667%;\n position: relative;\n}\nbody .section_index .full .overlay {\n position: absolute;\n z-index: 1;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background: rgba(var(--c_mainColorDarkActive), 0.7);\n}\nbody .section_index .full .logoWrap {\n text-align: center;\n position: absolute;\n z-index: 2;\n left: 0;\n right: 0;\n top: 50%;\n transform: translateY(-50%);\n}\nbody .section_index .full .logoWrap img {\n max-width: 80%;\n max-height: 80px;\n vertical-align: bottom;\n}\nbody .section_index .full .logoWrap a {\n color: var(--c_textLight);\n}\n\n/* ==========================================================================\n# Tablet CSS\n ========================================================================== */\n@media (min-width: 751px) and (max-width: 1000px) {\n .section_index entrance-menu ul li {\n width: 100% !important;\n margin-left: 0 !important;\n }\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.router-outlet {\n margin-top: var(--header-height);\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.wrapper-container {\n position: fixed;\n inset: 0;\n display: block;\n z-index: 2;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.wrapper-container {\n display: contents;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `header-component {\n display: contents;\n}\n\n.header-wrapper-container {\n display: contents;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.wrapper-container {\n display: contents;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = require(\"../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/noSourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.97.1_esbuild@0.24.2_/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.video-call-wrapper-container {\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n}\n.video-call-wrapper-container button[role=combobox] {\n background: #fff;\n}`, \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/*! *****************************************************************************\nCopyright (C) Microsoft. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\nvar Reflect;\n(function (Reflect) {\n // Metadata Proposal\n // https://rbuckton.github.io/reflect-metadata/\n (function (factory) {\n var root = typeof globalThis === \"object\" ? globalThis :\n typeof global === \"object\" ? global :\n typeof self === \"object\" ? self :\n typeof this === \"object\" ? this :\n sloppyModeThis();\n var exporter = makeExporter(Reflect);\n if (typeof root.Reflect !== \"undefined\") {\n exporter = makeExporter(root.Reflect, exporter);\n }\n factory(exporter, root);\n if (typeof root.Reflect === \"undefined\") {\n root.Reflect = Reflect;\n }\n function makeExporter(target, previous) {\n return function (key, value) {\n Object.defineProperty(target, key, { configurable: true, writable: true, value: value });\n if (previous)\n previous(key, value);\n };\n }\n function functionThis() {\n try {\n return Function(\"return this;\")();\n }\n catch (_) { }\n }\n function indirectEvalThis() {\n try {\n return (void 0, eval)(\"(function() { return this; })()\");\n }\n catch (_) { }\n }\n function sloppyModeThis() {\n return functionThis() || indirectEvalThis();\n }\n })(function (exporter, root) {\n var hasOwn = Object.prototype.hasOwnProperty;\n // feature test for Symbol support\n var supportsSymbol = typeof Symbol === \"function\";\n var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== \"undefined\" ? Symbol.toPrimitive : \"@@toPrimitive\";\n var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== \"undefined\" ? Symbol.iterator : \"@@iterator\";\n var supportsCreate = typeof Object.create === \"function\"; // feature test for Object.create support\n var supportsProto = { __proto__: [] } instanceof Array; // feature test for __proto__ support\n var downLevel = !supportsCreate && !supportsProto;\n var HashMap = {\n // create an object in dictionary mode (a.k.a. \"slow\" mode in v8)\n create: supportsCreate\n ? function () { return MakeDictionary(Object.create(null)); }\n : supportsProto\n ? function () { return MakeDictionary({ __proto__: null }); }\n : function () { return MakeDictionary({}); },\n has: downLevel\n ? function (map, key) { return hasOwn.call(map, key); }\n : function (map, key) { return key in map; },\n get: downLevel\n ? function (map, key) { return hasOwn.call(map, key) ? map[key] : undefined; }\n : function (map, key) { return map[key]; },\n };\n // Load global or shim versions of Map, Set, and WeakMap\n var functionPrototype = Object.getPrototypeOf(Function);\n var _Map = typeof Map === \"function\" && typeof Map.prototype.entries === \"function\" ? Map : CreateMapPolyfill();\n var _Set = typeof Set === \"function\" && typeof Set.prototype.entries === \"function\" ? Set : CreateSetPolyfill();\n var _WeakMap = typeof WeakMap === \"function\" ? WeakMap : CreateWeakMapPolyfill();\n var registrySymbol = supportsSymbol ? Symbol.for(\"@reflect-metadata:registry\") : undefined;\n var metadataRegistry = GetOrCreateMetadataRegistry();\n var metadataProvider = CreateMetadataProvider(metadataRegistry);\n /**\n * Applies a set of decorators to a property of a target object.\n * @param decorators An array of decorators.\n * @param target The target object.\n * @param propertyKey (Optional) The property key to decorate.\n * @param attributes (Optional) The property descriptor for the target key.\n * @remarks Decorators are applied in reverse order.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Example = Reflect.decorate(decoratorsArray, Example);\n *\n * // property (on constructor)\n * Reflect.decorate(decoratorsArray, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.decorate(decoratorsArray, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Object.defineProperty(Example, \"staticMethod\",\n * Reflect.decorate(decoratorsArray, Example, \"staticMethod\",\n * Object.getOwnPropertyDescriptor(Example, \"staticMethod\")));\n *\n * // method (on prototype)\n * Object.defineProperty(Example.prototype, \"method\",\n * Reflect.decorate(decoratorsArray, Example.prototype, \"method\",\n * Object.getOwnPropertyDescriptor(Example.prototype, \"method\")));\n *\n */\n function decorate(decorators, target, propertyKey, attributes) {\n if (!IsUndefined(propertyKey)) {\n if (!IsArray(decorators))\n throw new TypeError();\n if (!IsObject(target))\n throw new TypeError();\n if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))\n throw new TypeError();\n if (IsNull(attributes))\n attributes = undefined;\n propertyKey = ToPropertyKey(propertyKey);\n return DecorateProperty(decorators, target, propertyKey, attributes);\n }\n else {\n if (!IsArray(decorators))\n throw new TypeError();\n if (!IsConstructor(target))\n throw new TypeError();\n return DecorateConstructor(decorators, target);\n }\n }\n exporter(\"decorate\", decorate);\n // 4.1.2 Reflect.metadata(metadataKey, metadataValue)\n // https://rbuckton.github.io/reflect-metadata/#reflect.metadata\n /**\n * A default metadata decorator factory that can be used on a class, class member, or parameter.\n * @param metadataKey The key for the metadata entry.\n * @param metadataValue The value for the metadata entry.\n * @returns A decorator function.\n * @remarks\n * If `metadataKey` is already defined for the target and target key, the\n * metadataValue for that key will be overwritten.\n * @example\n *\n * // constructor\n * @Reflect.metadata(key, value)\n * class Example {\n * }\n *\n * // property (on constructor, TypeScript only)\n * class Example {\n * @Reflect.metadata(key, value)\n * static staticProperty;\n * }\n *\n * // property (on prototype, TypeScript only)\n * class Example {\n * @Reflect.metadata(key, value)\n * property;\n * }\n *\n * // method (on constructor)\n * class Example {\n * @Reflect.metadata(key, value)\n * static staticMethod() { }\n * }\n *\n * // method (on prototype)\n * class Example {\n * @Reflect.metadata(key, value)\n * method() { }\n * }\n *\n */\n function metadata(metadataKey, metadataValue) {\n function decorator(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))\n throw new TypeError();\n OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);\n }\n return decorator;\n }\n exporter(\"metadata\", metadata);\n /**\n * Define a unique metadata entry on the target.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param metadataValue A value that contains attached metadata.\n * @param target The target object on which to define metadata.\n * @param propertyKey (Optional) The property key for the target.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Reflect.defineMetadata(\"custom:annotation\", options, Example);\n *\n * // property (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticMethod\");\n *\n * // method (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"method\");\n *\n * // decorator factory as metadata-producing annotation.\n * function MyAnnotation(options): Decorator {\n * return (target, key?) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\n * }\n *\n */\n function defineMetadata(metadataKey, metadataValue, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);\n }\n exporter(\"defineMetadata\", defineMetadata);\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.hasMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function hasMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryHasMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"hasMetadata\", hasMetadata);\n /**\n * Gets a value indicating whether the target object has the provided metadata key defined.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function hasOwnMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"hasOwnMetadata\", hasOwnMetadata);\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function getMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryGetMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"getMetadata\", getMetadata);\n /**\n * Gets the metadata value for the provided metadata key on the target object.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function getOwnMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"getOwnMetadata\", getOwnMetadata);\n /**\n * Gets the metadata keys defined on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns An array of unique metadata keys.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getMetadataKeys(Example);\n *\n * // property (on constructor)\n * result = Reflect.getMetadataKeys(Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getMetadataKeys(Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getMetadataKeys(Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getMetadataKeys(Example.prototype, \"method\");\n *\n */\n function getMetadataKeys(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryMetadataKeys(target, propertyKey);\n }\n exporter(\"getMetadataKeys\", getMetadataKeys);\n /**\n * Gets the unique metadata keys defined on the target object.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns An array of unique metadata keys.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getOwnMetadataKeys(Example);\n *\n * // property (on constructor)\n * result = Reflect.getOwnMetadataKeys(Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getOwnMetadataKeys(Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"method\");\n *\n */\n function getOwnMetadataKeys(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryOwnMetadataKeys(target, propertyKey);\n }\n exporter(\"getOwnMetadataKeys\", getOwnMetadataKeys);\n /**\n * Deletes the metadata entry from the target object with the provided key.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function deleteMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n var provider = GetMetadataProvider(target, propertyKey, /*Create*/ false);\n if (IsUndefined(provider))\n return false;\n return provider.OrdinaryDeleteMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"deleteMetadata\", deleteMetadata);\n function DecorateConstructor(decorators, target) {\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n var decorated = decorator(target);\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\n if (!IsConstructor(decorated))\n throw new TypeError();\n target = decorated;\n }\n }\n return target;\n }\n function DecorateProperty(decorators, target, propertyKey, descriptor) {\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n var decorated = decorator(target, propertyKey, descriptor);\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\n if (!IsObject(decorated))\n throw new TypeError();\n descriptor = decorated;\n }\n }\n return descriptor;\n }\n // 3.1.1.1 OrdinaryHasMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasmetadata\n function OrdinaryHasMetadata(MetadataKey, O, P) {\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn)\n return true;\n var parent = OrdinaryGetPrototypeOf(O);\n if (!IsNull(parent))\n return OrdinaryHasMetadata(MetadataKey, parent, P);\n return false;\n }\n // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata\n function OrdinaryHasOwnMetadata(MetadataKey, O, P) {\n var provider = GetMetadataProvider(O, P, /*Create*/ false);\n if (IsUndefined(provider))\n return false;\n return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P));\n }\n // 3.1.3.1 OrdinaryGetMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetmetadata\n function OrdinaryGetMetadata(MetadataKey, O, P) {\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn)\n return OrdinaryGetOwnMetadata(MetadataKey, O, P);\n var parent = OrdinaryGetPrototypeOf(O);\n if (!IsNull(parent))\n return OrdinaryGetMetadata(MetadataKey, parent, P);\n return undefined;\n }\n // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata\n function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var provider = GetMetadataProvider(O, P, /*Create*/ false);\n if (IsUndefined(provider))\n return;\n return provider.OrdinaryGetOwnMetadata(MetadataKey, O, P);\n }\n // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata\n function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {\n var provider = GetMetadataProvider(O, P, /*Create*/ true);\n provider.OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P);\n }\n // 3.1.6.1 OrdinaryMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarymetadatakeys\n function OrdinaryMetadataKeys(O, P) {\n var ownKeys = OrdinaryOwnMetadataKeys(O, P);\n var parent = OrdinaryGetPrototypeOf(O);\n if (parent === null)\n return ownKeys;\n var parentKeys = OrdinaryMetadataKeys(parent, P);\n if (parentKeys.length <= 0)\n return ownKeys;\n if (ownKeys.length <= 0)\n return parentKeys;\n var set = new _Set();\n var keys = [];\n for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {\n var key = ownKeys_1[_i];\n var hasKey = set.has(key);\n if (!hasKey) {\n set.add(key);\n keys.push(key);\n }\n }\n for (var _a = 0, parentKeys_1 = parentKeys; _a < parentKeys_1.length; _a++) {\n var key = parentKeys_1[_a];\n var hasKey = set.has(key);\n if (!hasKey) {\n set.add(key);\n keys.push(key);\n }\n }\n return keys;\n }\n // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys\n function OrdinaryOwnMetadataKeys(O, P) {\n var provider = GetMetadataProvider(O, P, /*create*/ false);\n if (!provider) {\n return [];\n }\n return provider.OrdinaryOwnMetadataKeys(O, P);\n }\n // 6 ECMAScript Data Types and Values\n // https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values\n function Type(x) {\n if (x === null)\n return 1 /* Null */;\n switch (typeof x) {\n case \"undefined\": return 0 /* Undefined */;\n case \"boolean\": return 2 /* Boolean */;\n case \"string\": return 3 /* String */;\n case \"symbol\": return 4 /* Symbol */;\n case \"number\": return 5 /* Number */;\n case \"object\": return x === null ? 1 /* Null */ : 6 /* Object */;\n default: return 6 /* Object */;\n }\n }\n // 6.1.1 The Undefined Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-undefined-type\n function IsUndefined(x) {\n return x === undefined;\n }\n // 6.1.2 The Null Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-null-type\n function IsNull(x) {\n return x === null;\n }\n // 6.1.5 The Symbol Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-symbol-type\n function IsSymbol(x) {\n return typeof x === \"symbol\";\n }\n // 6.1.7 The Object Type\n // https://tc39.github.io/ecma262/#sec-object-type\n function IsObject(x) {\n return typeof x === \"object\" ? x !== null : typeof x === \"function\";\n }\n // 7.1 Type Conversion\n // https://tc39.github.io/ecma262/#sec-type-conversion\n // 7.1.1 ToPrimitive(input [, PreferredType])\n // https://tc39.github.io/ecma262/#sec-toprimitive\n function ToPrimitive(input, PreferredType) {\n switch (Type(input)) {\n case 0 /* Undefined */: return input;\n case 1 /* Null */: return input;\n case 2 /* Boolean */: return input;\n case 3 /* String */: return input;\n case 4 /* Symbol */: return input;\n case 5 /* Number */: return input;\n }\n var hint = PreferredType === 3 /* String */ ? \"string\" : PreferredType === 5 /* Number */ ? \"number\" : \"default\";\n var exoticToPrim = GetMethod(input, toPrimitiveSymbol);\n if (exoticToPrim !== undefined) {\n var result = exoticToPrim.call(input, hint);\n if (IsObject(result))\n throw new TypeError();\n return result;\n }\n return OrdinaryToPrimitive(input, hint === \"default\" ? \"number\" : hint);\n }\n // 7.1.1.1 OrdinaryToPrimitive(O, hint)\n // https://tc39.github.io/ecma262/#sec-ordinarytoprimitive\n function OrdinaryToPrimitive(O, hint) {\n if (hint === \"string\") {\n var toString_1 = O.toString;\n if (IsCallable(toString_1)) {\n var result = toString_1.call(O);\n if (!IsObject(result))\n return result;\n }\n var valueOf = O.valueOf;\n if (IsCallable(valueOf)) {\n var result = valueOf.call(O);\n if (!IsObject(result))\n return result;\n }\n }\n else {\n var valueOf = O.valueOf;\n if (IsCallable(valueOf)) {\n var result = valueOf.call(O);\n if (!IsObject(result))\n return result;\n }\n var toString_2 = O.toString;\n if (IsCallable(toString_2)) {\n var result = toString_2.call(O);\n if (!IsObject(result))\n return result;\n }\n }\n throw new TypeError();\n }\n // 7.1.2 ToBoolean(argument)\n // https://tc39.github.io/ecma262/2016/#sec-toboolean\n function ToBoolean(argument) {\n return !!argument;\n }\n // 7.1.12 ToString(argument)\n // https://tc39.github.io/ecma262/#sec-tostring\n function ToString(argument) {\n return \"\" + argument;\n }\n // 7.1.14 ToPropertyKey(argument)\n // https://tc39.github.io/ecma262/#sec-topropertykey\n function ToPropertyKey(argument) {\n var key = ToPrimitive(argument, 3 /* String */);\n if (IsSymbol(key))\n return key;\n return ToString(key);\n }\n // 7.2 Testing and Comparison Operations\n // https://tc39.github.io/ecma262/#sec-testing-and-comparison-operations\n // 7.2.2 IsArray(argument)\n // https://tc39.github.io/ecma262/#sec-isarray\n function IsArray(argument) {\n return Array.isArray\n ? Array.isArray(argument)\n : argument instanceof Object\n ? argument instanceof Array\n : Object.prototype.toString.call(argument) === \"[object Array]\";\n }\n // 7.2.3 IsCallable(argument)\n // https://tc39.github.io/ecma262/#sec-iscallable\n function IsCallable(argument) {\n // NOTE: This is an approximation as we cannot check for [[Call]] internal method.\n return typeof argument === \"function\";\n }\n // 7.2.4 IsConstructor(argument)\n // https://tc39.github.io/ecma262/#sec-isconstructor\n function IsConstructor(argument) {\n // NOTE: This is an approximation as we cannot check for [[Construct]] internal method.\n return typeof argument === \"function\";\n }\n // 7.2.7 IsPropertyKey(argument)\n // https://tc39.github.io/ecma262/#sec-ispropertykey\n function IsPropertyKey(argument) {\n switch (Type(argument)) {\n case 3 /* String */: return true;\n case 4 /* Symbol */: return true;\n default: return false;\n }\n }\n function SameValueZero(x, y) {\n return x === y || x !== x && y !== y;\n }\n // 7.3 Operations on Objects\n // https://tc39.github.io/ecma262/#sec-operations-on-objects\n // 7.3.9 GetMethod(V, P)\n // https://tc39.github.io/ecma262/#sec-getmethod\n function GetMethod(V, P) {\n var func = V[P];\n if (func === undefined || func === null)\n return undefined;\n if (!IsCallable(func))\n throw new TypeError();\n return func;\n }\n // 7.4 Operations on Iterator Objects\n // https://tc39.github.io/ecma262/#sec-operations-on-iterator-objects\n function GetIterator(obj) {\n var method = GetMethod(obj, iteratorSymbol);\n if (!IsCallable(method))\n throw new TypeError(); // from Call\n var iterator = method.call(obj);\n if (!IsObject(iterator))\n throw new TypeError();\n return iterator;\n }\n // 7.4.4 IteratorValue(iterResult)\n // https://tc39.github.io/ecma262/2016/#sec-iteratorvalue\n function IteratorValue(iterResult) {\n return iterResult.value;\n }\n // 7.4.5 IteratorStep(iterator)\n // https://tc39.github.io/ecma262/#sec-iteratorstep\n function IteratorStep(iterator) {\n var result = iterator.next();\n return result.done ? false : result;\n }\n // 7.4.6 IteratorClose(iterator, completion)\n // https://tc39.github.io/ecma262/#sec-iteratorclose\n function IteratorClose(iterator) {\n var f = iterator[\"return\"];\n if (f)\n f.call(iterator);\n }\n // 9.1 Ordinary Object Internal Methods and Internal Slots\n // https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots\n // 9.1.1.1 OrdinaryGetPrototypeOf(O)\n // https://tc39.github.io/ecma262/#sec-ordinarygetprototypeof\n function OrdinaryGetPrototypeOf(O) {\n var proto = Object.getPrototypeOf(O);\n if (typeof O !== \"function\" || O === functionPrototype)\n return proto;\n // TypeScript doesn't set __proto__ in ES5, as it's non-standard.\n // Try to determine the superclass constructor. Compatible implementations\n // must either set __proto__ on a subclass constructor to the superclass constructor,\n // or ensure each class has a valid `constructor` property on its prototype that\n // points back to the constructor.\n // If this is not the same as Function.[[Prototype]], then this is definately inherited.\n // This is the case when in ES6 or when using __proto__ in a compatible browser.\n if (proto !== functionPrototype)\n return proto;\n // If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.\n var prototype = O.prototype;\n var prototypeProto = prototype && Object.getPrototypeOf(prototype);\n if (prototypeProto == null || prototypeProto === Object.prototype)\n return proto;\n // If the constructor was not a function, then we cannot determine the heritage.\n var constructor = prototypeProto.constructor;\n if (typeof constructor !== \"function\")\n return proto;\n // If we have some kind of self-reference, then we cannot determine the heritage.\n if (constructor === O)\n return proto;\n // we have a pretty good guess at the heritage.\n return constructor;\n }\n // Global metadata registry\n // - Allows `import \"reflect-metadata\"` and `import \"reflect-metadata/no-conflict\"` to interoperate.\n // - Uses isolated metadata if `Reflect` is frozen before the registry can be installed.\n /**\n * Creates a registry used to allow multiple `reflect-metadata` providers.\n */\n function CreateMetadataRegistry() {\n var fallback;\n if (!IsUndefined(registrySymbol) &&\n typeof root.Reflect !== \"undefined\" &&\n !(registrySymbol in root.Reflect) &&\n typeof root.Reflect.defineMetadata === \"function\") {\n // interoperate with older version of `reflect-metadata` that did not support a registry.\n fallback = CreateFallbackProvider(root.Reflect);\n }\n var first;\n var second;\n var rest;\n var targetProviderMap = new _WeakMap();\n var registry = {\n registerProvider: registerProvider,\n getProvider: getProvider,\n setProvider: setProvider,\n };\n return registry;\n function registerProvider(provider) {\n if (!Object.isExtensible(registry)) {\n throw new Error(\"Cannot add provider to a frozen registry.\");\n }\n switch (true) {\n case fallback === provider: break;\n case IsUndefined(first):\n first = provider;\n break;\n case first === provider: break;\n case IsUndefined(second):\n second = provider;\n break;\n case second === provider: break;\n default:\n if (rest === undefined)\n rest = new _Set();\n rest.add(provider);\n break;\n }\n }\n function getProviderNoCache(O, P) {\n if (!IsUndefined(first)) {\n if (first.isProviderFor(O, P))\n return first;\n if (!IsUndefined(second)) {\n if (second.isProviderFor(O, P))\n return first;\n if (!IsUndefined(rest)) {\n var iterator = GetIterator(rest);\n while (true) {\n var next = IteratorStep(iterator);\n if (!next) {\n return undefined;\n }\n var provider = IteratorValue(next);\n if (provider.isProviderFor(O, P)) {\n IteratorClose(iterator);\n return provider;\n }\n }\n }\n }\n }\n if (!IsUndefined(fallback) && fallback.isProviderFor(O, P)) {\n return fallback;\n }\n return undefined;\n }\n function getProvider(O, P) {\n var providerMap = targetProviderMap.get(O);\n var provider;\n if (!IsUndefined(providerMap)) {\n provider = providerMap.get(P);\n }\n if (!IsUndefined(provider)) {\n return provider;\n }\n provider = getProviderNoCache(O, P);\n if (!IsUndefined(provider)) {\n if (IsUndefined(providerMap)) {\n providerMap = new _Map();\n targetProviderMap.set(O, providerMap);\n }\n providerMap.set(P, provider);\n }\n return provider;\n }\n function hasProvider(provider) {\n if (IsUndefined(provider))\n throw new TypeError();\n return first === provider || second === provider || !IsUndefined(rest) && rest.has(provider);\n }\n function setProvider(O, P, provider) {\n if (!hasProvider(provider)) {\n throw new Error(\"Metadata provider not registered.\");\n }\n var existingProvider = getProvider(O, P);\n if (existingProvider !== provider) {\n if (!IsUndefined(existingProvider)) {\n return false;\n }\n var providerMap = targetProviderMap.get(O);\n if (IsUndefined(providerMap)) {\n providerMap = new _Map();\n targetProviderMap.set(O, providerMap);\n }\n providerMap.set(P, provider);\n }\n return true;\n }\n }\n /**\n * Gets or creates the shared registry of metadata providers.\n */\n function GetOrCreateMetadataRegistry() {\n var metadataRegistry;\n if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {\n metadataRegistry = root.Reflect[registrySymbol];\n }\n if (IsUndefined(metadataRegistry)) {\n metadataRegistry = CreateMetadataRegistry();\n }\n if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {\n Object.defineProperty(root.Reflect, registrySymbol, {\n enumerable: false,\n configurable: false,\n writable: false,\n value: metadataRegistry\n });\n }\n return metadataRegistry;\n }\n function CreateMetadataProvider(registry) {\n // [[Metadata]] internal slot\n // https://rbuckton.github.io/reflect-metadata/#ordinary-object-internal-methods-and-internal-slots\n var metadata = new _WeakMap();\n var provider = {\n isProviderFor: function (O, P) {\n var targetMetadata = metadata.get(O);\n if (IsUndefined(targetMetadata))\n return false;\n return targetMetadata.has(P);\n },\n OrdinaryDefineOwnMetadata: OrdinaryDefineOwnMetadata,\n OrdinaryHasOwnMetadata: OrdinaryHasOwnMetadata,\n OrdinaryGetOwnMetadata: OrdinaryGetOwnMetadata,\n OrdinaryOwnMetadataKeys: OrdinaryOwnMetadataKeys,\n OrdinaryDeleteMetadata: OrdinaryDeleteMetadata,\n };\n metadataRegistry.registerProvider(provider);\n return provider;\n function GetOrCreateMetadataMap(O, P, Create) {\n var targetMetadata = metadata.get(O);\n var createdTargetMetadata = false;\n if (IsUndefined(targetMetadata)) {\n if (!Create)\n return undefined;\n targetMetadata = new _Map();\n metadata.set(O, targetMetadata);\n createdTargetMetadata = true;\n }\n var metadataMap = targetMetadata.get(P);\n if (IsUndefined(metadataMap)) {\n if (!Create)\n return undefined;\n metadataMap = new _Map();\n targetMetadata.set(P, metadataMap);\n if (!registry.setProvider(O, P, provider)) {\n targetMetadata.delete(P);\n if (createdTargetMetadata) {\n metadata.delete(O);\n }\n throw new Error(\"Wrong provider for target.\");\n }\n }\n return metadataMap;\n }\n // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata\n function OrdinaryHasOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n return ToBoolean(metadataMap.has(MetadataKey));\n }\n // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata\n function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }\n // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata\n function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ true);\n metadataMap.set(MetadataKey, MetadataValue);\n }\n // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys\n function OrdinaryOwnMetadataKeys(O, P) {\n var keys = [];\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return keys;\n var keysObj = metadataMap.keys();\n var iterator = GetIterator(keysObj);\n var k = 0;\n while (true) {\n var next = IteratorStep(iterator);\n if (!next) {\n keys.length = k;\n return keys;\n }\n var nextValue = IteratorValue(next);\n try {\n keys[k] = nextValue;\n }\n catch (e) {\n try {\n IteratorClose(iterator);\n }\n finally {\n throw e;\n }\n }\n k++;\n }\n }\n function OrdinaryDeleteMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n if (!metadataMap.delete(MetadataKey))\n return false;\n if (metadataMap.size === 0) {\n var targetMetadata = metadata.get(O);\n if (!IsUndefined(targetMetadata)) {\n targetMetadata.delete(P);\n if (targetMetadata.size === 0) {\n metadata.delete(targetMetadata);\n }\n }\n }\n return true;\n }\n }\n function CreateFallbackProvider(reflect) {\n var defineMetadata = reflect.defineMetadata, hasOwnMetadata = reflect.hasOwnMetadata, getOwnMetadata = reflect.getOwnMetadata, getOwnMetadataKeys = reflect.getOwnMetadataKeys, deleteMetadata = reflect.deleteMetadata;\n var metadataOwner = new _WeakMap();\n var provider = {\n isProviderFor: function (O, P) {\n var metadataPropertySet = metadataOwner.get(O);\n if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) {\n return true;\n }\n if (getOwnMetadataKeys(O, P).length) {\n if (IsUndefined(metadataPropertySet)) {\n metadataPropertySet = new _Set();\n metadataOwner.set(O, metadataPropertySet);\n }\n metadataPropertySet.add(P);\n return true;\n }\n return false;\n },\n OrdinaryDefineOwnMetadata: defineMetadata,\n OrdinaryHasOwnMetadata: hasOwnMetadata,\n OrdinaryGetOwnMetadata: getOwnMetadata,\n OrdinaryOwnMetadataKeys: getOwnMetadataKeys,\n OrdinaryDeleteMetadata: deleteMetadata,\n };\n return provider;\n }\n /**\n * Gets the metadata provider for an object. If the object has no metadata provider and this is for a create operation,\n * then this module's metadata provider is assigned to the object.\n */\n function GetMetadataProvider(O, P, Create) {\n var registeredProvider = metadataRegistry.getProvider(O, P);\n if (!IsUndefined(registeredProvider)) {\n return registeredProvider;\n }\n if (Create) {\n if (metadataRegistry.setProvider(O, P, metadataProvider)) {\n return metadataProvider;\n }\n throw new Error(\"Illegal state.\");\n }\n return undefined;\n }\n // naive Map shim\n function CreateMapPolyfill() {\n var cacheSentinel = {};\n var arraySentinel = [];\n var MapIterator = /** @class */ (function () {\n function MapIterator(keys, values, selector) {\n this._index = 0;\n this._keys = keys;\n this._values = values;\n this._selector = selector;\n }\n MapIterator.prototype[\"@@iterator\"] = function () { return this; };\n MapIterator.prototype[iteratorSymbol] = function () { return this; };\n MapIterator.prototype.next = function () {\n var index = this._index;\n if (index >= 0 && index < this._keys.length) {\n var result = this._selector(this._keys[index], this._values[index]);\n if (index + 1 >= this._keys.length) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n else {\n this._index++;\n }\n return { value: result, done: false };\n }\n return { value: undefined, done: true };\n };\n MapIterator.prototype.throw = function (error) {\n if (this._index >= 0) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n throw error;\n };\n MapIterator.prototype.return = function (value) {\n if (this._index >= 0) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n return { value: value, done: true };\n };\n return MapIterator;\n }());\n var Map = /** @class */ (function () {\n function Map() {\n this._keys = [];\n this._values = [];\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n }\n Object.defineProperty(Map.prototype, \"size\", {\n get: function () { return this._keys.length; },\n enumerable: true,\n configurable: true\n });\n Map.prototype.has = function (key) { return this._find(key, /*insert*/ false) >= 0; };\n Map.prototype.get = function (key) {\n var index = this._find(key, /*insert*/ false);\n return index >= 0 ? this._values[index] : undefined;\n };\n Map.prototype.set = function (key, value) {\n var index = this._find(key, /*insert*/ true);\n this._values[index] = value;\n return this;\n };\n Map.prototype.delete = function (key) {\n var index = this._find(key, /*insert*/ false);\n if (index >= 0) {\n var size = this._keys.length;\n for (var i = index + 1; i < size; i++) {\n this._keys[i - 1] = this._keys[i];\n this._values[i - 1] = this._values[i];\n }\n this._keys.length--;\n this._values.length--;\n if (SameValueZero(key, this._cacheKey)) {\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n }\n return true;\n }\n return false;\n };\n Map.prototype.clear = function () {\n this._keys.length = 0;\n this._values.length = 0;\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n };\n Map.prototype.keys = function () { return new MapIterator(this._keys, this._values, getKey); };\n Map.prototype.values = function () { return new MapIterator(this._keys, this._values, getValue); };\n Map.prototype.entries = function () { return new MapIterator(this._keys, this._values, getEntry); };\n Map.prototype[\"@@iterator\"] = function () { return this.entries(); };\n Map.prototype[iteratorSymbol] = function () { return this.entries(); };\n Map.prototype._find = function (key, insert) {\n if (!SameValueZero(this._cacheKey, key)) {\n this._cacheIndex = -1;\n for (var i = 0; i < this._keys.length; i++) {\n if (SameValueZero(this._keys[i], key)) {\n this._cacheIndex = i;\n break;\n }\n }\n }\n if (this._cacheIndex < 0 && insert) {\n this._cacheIndex = this._keys.length;\n this._keys.push(key);\n this._values.push(undefined);\n }\n return this._cacheIndex;\n };\n return Map;\n }());\n return Map;\n function getKey(key, _) {\n return key;\n }\n function getValue(_, value) {\n return value;\n }\n function getEntry(key, value) {\n return [key, value];\n }\n }\n // naive Set shim\n function CreateSetPolyfill() {\n var Set = /** @class */ (function () {\n function Set() {\n this._map = new _Map();\n }\n Object.defineProperty(Set.prototype, \"size\", {\n get: function () { return this._map.size; },\n enumerable: true,\n configurable: true\n });\n Set.prototype.has = function (value) { return this._map.has(value); };\n Set.prototype.add = function (value) { return this._map.set(value, value), this; };\n Set.prototype.delete = function (value) { return this._map.delete(value); };\n Set.prototype.clear = function () { this._map.clear(); };\n Set.prototype.keys = function () { return this._map.keys(); };\n Set.prototype.values = function () { return this._map.keys(); };\n Set.prototype.entries = function () { return this._map.entries(); };\n Set.prototype[\"@@iterator\"] = function () { return this.keys(); };\n Set.prototype[iteratorSymbol] = function () { return this.keys(); };\n return Set;\n }());\n return Set;\n }\n // naive WeakMap shim\n function CreateWeakMapPolyfill() {\n var UUID_SIZE = 16;\n var keys = HashMap.create();\n var rootKey = CreateUniqueKey();\n return /** @class */ (function () {\n function WeakMap() {\n this._key = CreateUniqueKey();\n }\n WeakMap.prototype.has = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? HashMap.has(table, this._key) : false;\n };\n WeakMap.prototype.get = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? HashMap.get(table, this._key) : undefined;\n };\n WeakMap.prototype.set = function (target, value) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ true);\n table[this._key] = value;\n return this;\n };\n WeakMap.prototype.delete = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? delete table[this._key] : false;\n };\n WeakMap.prototype.clear = function () {\n // NOTE: not a real clear, just makes the previous data unreachable\n this._key = CreateUniqueKey();\n };\n return WeakMap;\n }());\n function CreateUniqueKey() {\n var key;\n do\n key = \"@@WeakMap@@\" + CreateUUID();\n while (HashMap.has(keys, key));\n keys[key] = true;\n return key;\n }\n function GetOrCreateWeakMapTable(target, create) {\n if (!hasOwn.call(target, rootKey)) {\n if (!create)\n return undefined;\n Object.defineProperty(target, rootKey, { value: HashMap.create() });\n }\n return target[rootKey];\n }\n function FillRandomBytes(buffer, size) {\n for (var i = 0; i < size; ++i)\n buffer[i] = Math.random() * 0xff | 0;\n return buffer;\n }\n function GenRandomBytes(size) {\n if (typeof Uint8Array === \"function\") {\n var array = new Uint8Array(size);\n if (typeof crypto !== \"undefined\") {\n crypto.getRandomValues(array);\n }\n else if (typeof msCrypto !== \"undefined\") {\n msCrypto.getRandomValues(array);\n }\n else {\n FillRandomBytes(array, size);\n }\n return array;\n }\n return FillRandomBytes(new Array(size), size);\n }\n function CreateUUID() {\n var data = GenRandomBytes(UUID_SIZE);\n // mark as random - RFC 4122 § 4.4\n data[6] = data[6] & 0x4f | 0x40;\n data[8] = data[8] & 0xbf | 0x80;\n var result = \"\";\n for (var offset = 0; offset < UUID_SIZE; ++offset) {\n var byte = data[offset];\n if (offset === 4 || offset === 6 || offset === 8)\n result += \"-\";\n if (byte < 16)\n result += \"0\";\n result += byte.toString(16).toLowerCase();\n }\n return result;\n }\n }\n // uses a heuristic used by v8 and chakra to force an object into dictionary mode.\n function MakeDictionary(obj) {\n obj.__ = undefined;\n delete obj.__;\n return obj;\n }\n });\n})(Reflect || (Reflect = {}));\n","'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object<any, any>} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array<boolean>}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array<String|Number>} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst isStandardBrowserEnv = (() => {\n let product;\n if (typeof navigator !== 'undefined' && (\n (product = navigator.product) === 'ReactNative' ||\n product === 'NativeScript' ||\n product === 'NS')\n ) {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n})();\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\n const isStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n isStandardBrowserEnv,\n isStandardBrowserWebWorkerEnv,\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: platform.isNode ? 'http' : 'xhr',\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n if (!hasJSONContentType) {\n return data;\n }\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.isStandardBrowserEnv ?\n\n// Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n const cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n// Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })();\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.isStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n const responseType = config.responseType;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n if (utils.isFormData(requestData)) {\n if (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else {\n requestHeaders.setContentType('multipart/form-data;', false); // mobile/desktop app frameworks\n }\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (platform.isStandardBrowserEnv) {\n // Add xsrf header\n const xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath))\n && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if(fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n if((adapter = utils.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter)) {\n break;\n }\n }\n\n if (!adapter) {\n if (adapter === false) {\n throw new AxiosError(\n `Adapter ${nameOrAdapter} is not supported by the environment`,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n throw new Error(\n utils.hasOwnProp(knownAdapters, nameOrAdapter) ?\n `Adapter '${nameOrAdapter}' is not available in the build` :\n `Unknown adapter '${nameOrAdapter}'`\n );\n }\n\n if (!utils.isFunction(adapter)) {\n throw new TypeError('adapter is not a function');\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? thing.toJSON() : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","export const VERSION = \"1.5.0\";","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","// The minimum length of the national significant number.\nexport var MIN_LENGTH_FOR_NSN = 2; // The ITU says the maximum length should be 15,\n// but one can find longer numbers in Germany.\n\nexport var MAX_LENGTH_FOR_NSN = 17; // The maximum length of the country calling code.\n\nexport var MAX_LENGTH_COUNTRY_CODE = 3; // Digits accepted in phone numbers\n// (ascii, fullwidth, arabic-indic, and eastern arabic digits).\n\nexport var VALID_DIGITS = \"0-9\\uFF10-\\uFF19\\u0660-\\u0669\\u06F0-\\u06F9\"; // `DASHES` will be right after the opening square bracket of the \"character class\"\n\nvar DASHES = \"-\\u2010-\\u2015\\u2212\\u30FC\\uFF0D\";\nvar SLASHES = \"\\uFF0F/\";\nvar DOTS = \"\\uFF0E.\";\nexport var WHITESPACE = \" \\xA0\\xAD\\u200B\\u2060\\u3000\";\nvar BRACKETS = \"()\\uFF08\\uFF09\\uFF3B\\uFF3D\\\\[\\\\]\"; // export const OPENING_BRACKETS = '(\\uFF08\\uFF3B\\\\\\['\n\nvar TILDES = \"~\\u2053\\u223C\\uFF5E\"; // Regular expression of acceptable punctuation found in phone numbers. This\n// excludes punctuation found as a leading character only. This consists of dash\n// characters, white space characters, full stops, slashes, square brackets,\n// parentheses and tildes. Full-width variants are also present.\n\nexport var VALID_PUNCTUATION = \"\".concat(DASHES).concat(SLASHES).concat(DOTS).concat(WHITESPACE).concat(BRACKETS).concat(TILDES);\nexport var PLUS_CHARS = \"+\\uFF0B\"; // const LEADING_PLUS_CHARS_PATTERN = new RegExp('^[' + PLUS_CHARS + ']+')\n","import applyInternationalSeparatorStyle from './applyInternationalSeparatorStyle.js'; // This was originally set to $1 but there are some countries for which the\n// first group is not used in the national pattern (e.g. Argentina) so the $1\n// group does not match correctly. Therefore, we use `\\d`, so that the first\n// group actually used in the pattern will be matched.\n\nexport var FIRST_GROUP_PATTERN = /(\\$\\d)/;\nexport default function formatNationalNumberUsingFormat(number, format, _ref) {\n var useInternationalFormat = _ref.useInternationalFormat,\n withNationalPrefix = _ref.withNationalPrefix,\n carrierCode = _ref.carrierCode,\n metadata = _ref.metadata;\n var formattedNumber = number.replace(new RegExp(format.pattern()), useInternationalFormat ? format.internationalFormat() : // This library doesn't use `domestic_carrier_code_formatting_rule`,\n // because that one is only used when formatting phone numbers\n // for dialing from a mobile phone, and this is not a dialing library.\n // carrierCode && format.domesticCarrierCodeFormattingRule()\n // \t// First, replace the $CC in the formatting rule with the desired carrier code.\n // \t// Then, replace the $FG in the formatting rule with the first group\n // \t// and the carrier code combined in the appropriate way.\n // \t? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))\n // \t: (\n // \t\twithNationalPrefix && format.nationalPrefixFormattingRule()\n // \t\t\t? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())\n // \t\t\t: format.format()\n // \t)\n withNationalPrefix && format.nationalPrefixFormattingRule() ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule()) : format.format());\n\n if (useInternationalFormat) {\n return applyInternationalSeparatorStyle(formattedNumber);\n }\n\n return formattedNumber;\n}\n","import { VALID_PUNCTUATION } from '../constants.js'; // Removes brackets and replaces dashes with spaces.\n//\n// E.g. \"(999) 111-22-33\" -> \"999 111 22 33\"\n//\n// For some reason Google's metadata contains `<intlFormat/>`s with brackets and dashes.\n// Meanwhile, there's no single opinion about using punctuation in international phone numbers.\n//\n// For example, Google's `<intlFormat/>` for USA is `+1 213-373-4253`.\n// And here's a quote from WikiPedia's \"North American Numbering Plan\" page:\n// https://en.wikipedia.org/wiki/North_American_Numbering_Plan\n//\n// \"The country calling code for all countries participating in the NANP is 1.\n// In international format, an NANP number should be listed as +1 301 555 01 00,\n// where 301 is an area code (Maryland).\"\n//\n// I personally prefer the international format without any punctuation.\n// For example, brackets are remnants of the old age, meaning that the\n// phone number part in brackets (so called \"area code\") can be omitted\n// if dialing within the same \"area\".\n// And hyphens were clearly introduced for splitting local numbers into memorizable groups.\n// For example, remembering \"5553535\" is difficult but \"555-35-35\" is much simpler.\n// Imagine a man taking a bus from home to work and seeing an ad with a phone number.\n// He has a couple of seconds to memorize that number until it passes by.\n// If it were spaces instead of hyphens the man wouldn't necessarily get it,\n// but with hyphens instead of spaces the grouping is more explicit.\n// I personally think that hyphens introduce visual clutter,\n// so I prefer replacing them with spaces in international numbers.\n// In the modern age all output is done on displays where spaces are clearly distinguishable\n// so hyphens can be safely replaced with spaces without losing any legibility.\n//\n\nexport default function applyInternationalSeparatorStyle(formattedNumber) {\n return formattedNumber.replace(new RegExp(\"[\".concat(VALID_PUNCTUATION, \"]+\"), 'g'), ' ').trim();\n}\n","import Metadata from '../metadata.js';\n/**\r\n * Pattern that makes it easy to distinguish whether a region has a single\r\n * international dialing prefix or not. If a region has a single international\r\n * prefix (e.g. 011 in USA), it will be represented as a string that contains\r\n * a sequence of ASCII digits, and possibly a tilde, which signals waiting for\r\n * the tone. If there are multiple available international prefixes in a\r\n * region, they will be represented as a regex string that always contains one\r\n * or more characters that are not ASCII digits or a tilde.\r\n */\n\nvar SINGLE_IDD_PREFIX_REG_EXP = /^[\\d]+(?:[~\\u2053\\u223C\\uFF5E][\\d]+)?$/; // For regions that have multiple IDD prefixes\n// a preferred IDD prefix is returned.\n\nexport default function getIddPrefix(country, callingCode, metadata) {\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n\n if (countryMetadata.defaultIDDPrefix()) {\n return countryMetadata.defaultIDDPrefix();\n }\n\n if (SINGLE_IDD_PREFIX_REG_EXP.test(countryMetadata.IDDPrefix())) {\n return countryMetadata.IDDPrefix();\n }\n}\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport formatNationalNumberUsingFormat from './helpers/formatNationalNumberUsingFormat.js';\nimport Metadata, { getCountryCallingCode } from './metadata.js';\nimport getIddPrefix from './helpers/getIddPrefix.js';\nimport { formatRFC3966 } from './helpers/RFC3966.js';\nvar DEFAULT_OPTIONS = {\n formatExtension: function formatExtension(formattedNumber, extension, metadata) {\n return \"\".concat(formattedNumber).concat(metadata.ext()).concat(extension);\n }\n};\n/**\r\n * Formats a phone number.\r\n *\r\n * format(phoneNumberInstance, 'INTERNATIONAL', { ..., v2: true }, metadata)\r\n * format(phoneNumberInstance, 'NATIONAL', { ..., v2: true }, metadata)\r\n *\r\n * format({ phone: '8005553535', country: 'RU' }, 'INTERNATIONAL', { ... }, metadata)\r\n * format({ phone: '8005553535', country: 'RU' }, 'NATIONAL', undefined, metadata)\r\n *\r\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\r\n * @param {string} format\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {string}\r\n */\n\nexport default function formatNumber(input, format, options, metadata) {\n // Apply default options.\n if (options) {\n options = _objectSpread(_objectSpread({}, DEFAULT_OPTIONS), options);\n } else {\n options = DEFAULT_OPTIONS;\n }\n\n metadata = new Metadata(metadata);\n\n if (input.country && input.country !== '001') {\n // Validate `input.country`.\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n\n metadata.country(input.country);\n } else if (input.countryCallingCode) {\n metadata.selectNumberingPlan(input.countryCallingCode);\n } else return input.phone || '';\n\n var countryCallingCode = metadata.countryCallingCode();\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone; // This variable should have been declared inside `case`s\n // but Babel has a bug and it says \"duplicate variable declaration\".\n\n var number;\n\n switch (format) {\n case 'NATIONAL':\n // Legacy argument support.\n // (`{ country: ..., phone: '' }`)\n if (!nationalNumber) {\n return '';\n }\n\n number = formatNationalNumber(nationalNumber, input.carrierCode, 'NATIONAL', metadata, options);\n return addExtension(number, input.ext, metadata, options.formatExtension);\n\n case 'INTERNATIONAL':\n // Legacy argument support.\n // (`{ country: ..., phone: '' }`)\n if (!nationalNumber) {\n return \"+\".concat(countryCallingCode);\n }\n\n number = formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata, options);\n number = \"+\".concat(countryCallingCode, \" \").concat(number);\n return addExtension(number, input.ext, metadata, options.formatExtension);\n\n case 'E.164':\n // `E.164` doesn't define \"phone number extensions\".\n return \"+\".concat(countryCallingCode).concat(nationalNumber);\n\n case 'RFC3966':\n return formatRFC3966({\n number: \"+\".concat(countryCallingCode).concat(nationalNumber),\n ext: input.ext\n });\n // For reference, here's Google's IDD formatter:\n // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546\n // Not saying that this IDD formatter replicates it 1:1, but it seems to work.\n // Who would even need to format phone numbers in IDD format anyway?\n\n case 'IDD':\n if (!options.fromCountry) {\n return; // throw new Error('`fromCountry` option not passed for IDD-prefixed formatting.')\n }\n\n var formattedNumber = formatIDD(nationalNumber, input.carrierCode, countryCallingCode, options.fromCountry, metadata);\n return addExtension(formattedNumber, input.ext, metadata, options.formatExtension);\n\n default:\n throw new Error(\"Unknown \\\"format\\\" argument passed to \\\"formatNumber()\\\": \\\"\".concat(format, \"\\\"\"));\n }\n}\n\nfunction formatNationalNumber(number, carrierCode, formatAs, metadata, options) {\n var format = chooseFormatForNumber(metadata.formats(), number);\n\n if (!format) {\n return number;\n }\n\n return formatNationalNumberUsingFormat(number, format, {\n useInternationalFormat: formatAs === 'INTERNATIONAL',\n withNationalPrefix: format.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options && options.nationalPrefix === false ? false : true,\n carrierCode: carrierCode,\n metadata: metadata\n });\n}\n\nexport function chooseFormatForNumber(availableFormats, nationalNnumber) {\n for (var _iterator = _createForOfIteratorHelperLoose(availableFormats), _step; !(_step = _iterator()).done;) {\n var format = _step.value;\n\n // Validate leading digits.\n // The test case for \"else path\" could be found by searching for\n // \"format.leadingDigitsPatterns().length === 0\".\n if (format.leadingDigitsPatterns().length > 0) {\n // The last leading_digits_pattern is used here, as it is the most detailed\n var lastLeadingDigitsPattern = format.leadingDigitsPatterns()[format.leadingDigitsPatterns().length - 1]; // If leading digits don't match then move on to the next phone number format\n\n if (nationalNnumber.search(lastLeadingDigitsPattern) !== 0) {\n continue;\n }\n } // Check that the national number matches the phone number format regular expression\n\n\n if (matchesEntirely(nationalNnumber, format.pattern())) {\n return format;\n }\n }\n}\n\nfunction addExtension(formattedNumber, ext, metadata, formatExtension) {\n return ext ? formatExtension(formattedNumber, ext, metadata) : formattedNumber;\n}\n\nfunction formatIDD(nationalNumber, carrierCode, countryCallingCode, fromCountry, metadata) {\n var fromCountryCallingCode = getCountryCallingCode(fromCountry, metadata.metadata); // When calling within the same country calling code.\n\n if (fromCountryCallingCode === countryCallingCode) {\n var formattedNumber = formatNationalNumber(nationalNumber, carrierCode, 'NATIONAL', metadata); // For NANPA regions, return the national format for these regions\n // but prefix it with the country calling code.\n\n if (countryCallingCode === '1') {\n return countryCallingCode + ' ' + formattedNumber;\n } // If regions share a country calling code, the country calling code need\n // not be dialled. This also applies when dialling within a region, so this\n // if clause covers both these cases. Technically this is the case for\n // dialling from La Reunion to other overseas departments of France (French\n // Guiana, Martinique, Guadeloupe), but not vice versa - so we don't cover\n // this edge case for now and for those cases return the version including\n // country calling code. Details here:\n // http://www.petitfute.com/voyage/225-info-pratiques-reunion\n //\n\n\n return formattedNumber;\n }\n\n var iddPrefix = getIddPrefix(fromCountry, undefined, metadata.metadata);\n\n if (iddPrefix) {\n return \"\".concat(iddPrefix, \" \").concat(countryCallingCode, \" \").concat(formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata));\n }\n}\n","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nimport isViablePhoneNumber from './isViablePhoneNumber.js'; // https://www.ietf.org/rfc/rfc3966.txt\n\n/**\r\n * @param {string} text - Phone URI (RFC 3966).\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\n\nexport function parseRFC3966(text) {\n var number;\n var ext; // Replace \"tel:\" with \"tel=\" for parsing convenience.\n\n text = text.replace(/^tel:/, 'tel=');\n\n for (var _iterator = _createForOfIteratorHelperLoose(text.split(';')), _step; !(_step = _iterator()).done;) {\n var part = _step.value;\n\n var _part$split = part.split('='),\n _part$split2 = _slicedToArray(_part$split, 2),\n name = _part$split2[0],\n value = _part$split2[1];\n\n switch (name) {\n case 'tel':\n number = value;\n break;\n\n case 'ext':\n ext = value;\n break;\n\n case 'phone-context':\n // Only \"country contexts\" are supported.\n // \"Domain contexts\" are ignored.\n if (value[0] === '+') {\n number = value + number;\n }\n\n break;\n }\n } // If the phone number is not viable, then abort.\n\n\n if (!isViablePhoneNumber(number)) {\n return {};\n }\n\n var result = {\n number: number\n };\n\n if (ext) {\n result.ext = ext;\n }\n\n return result;\n}\n/**\r\n * @param {object} - `{ ?number, ?extension }`.\r\n * @return {string} Phone URI (RFC 3966).\r\n */\n\nexport function formatRFC3966(_ref) {\n var number = _ref.number,\n ext = _ref.ext;\n\n if (!number) {\n return '';\n }\n\n if (number[0] !== '+') {\n throw new Error(\"\\\"formatRFC3966()\\\" expects \\\"number\\\" to be in E.164 format.\");\n }\n\n return \"tel:\".concat(number).concat(ext ? ';ext=' + ext : '');\n}\n","import { VALID_DIGITS } from '../../constants.js'; // The RFC 3966 format for extensions.\n\nvar RFC3966_EXTN_PREFIX = ';ext=';\n/**\r\n * Helper method for constructing regular expressions for parsing. Creates\r\n * an expression that captures up to max_length digits.\r\n * @return {string} RegEx pattern to capture extension digits.\r\n */\n\nvar getExtensionDigitsPattern = function getExtensionDigitsPattern(maxLength) {\n return \"([\".concat(VALID_DIGITS, \"]{1,\").concat(maxLength, \"})\");\n};\n/**\r\n * Helper initialiser method to create the regular-expression pattern to match\r\n * extensions.\r\n * Copy-pasted from Google's `libphonenumber`:\r\n * https://github.com/google/libphonenumber/blob/55b2646ec9393f4d3d6661b9c82ef9e258e8b829/javascript/i18n/phonenumbers/phonenumberutil.js#L759-L766\r\n * @return {string} RegEx pattern to capture extensions.\r\n */\n\n\nexport default function createExtensionPattern(purpose) {\n // We cap the maximum length of an extension based on the ambiguity of the way\n // the extension is prefixed. As per ITU, the officially allowed length for\n // extensions is actually 40, but we don't support this since we haven't seen real\n // examples and this introduces many false interpretations as the extension labels\n // are not standardized.\n\n /** @type {string} */\n var extLimitAfterExplicitLabel = '20';\n /** @type {string} */\n\n var extLimitAfterLikelyLabel = '15';\n /** @type {string} */\n\n var extLimitAfterAmbiguousChar = '9';\n /** @type {string} */\n\n var extLimitWhenNotSure = '6';\n /** @type {string} */\n\n var possibleSeparatorsBetweenNumberAndExtLabel = \"[ \\xA0\\\\t,]*\"; // Optional full stop (.) or colon, followed by zero or more spaces/tabs/commas.\n\n /** @type {string} */\n\n var possibleCharsAfterExtLabel = \"[:\\\\.\\uFF0E]?[ \\xA0\\\\t,-]*\";\n /** @type {string} */\n\n var optionalExtnSuffix = \"#?\"; // Here the extension is called out in more explicit way, i.e mentioning it obvious\n // patterns like \"ext.\".\n\n /** @type {string} */\n\n var explicitExtLabels = \"(?:e?xt(?:ensi(?:o\\u0301?|\\xF3))?n?|\\uFF45?\\uFF58\\uFF54\\uFF4E?|\\u0434\\u043E\\u0431|anexo)\"; // One-character symbols that can be used to indicate an extension, and less\n // commonly used or more ambiguous extension labels.\n\n /** @type {string} */\n\n var ambiguousExtLabels = \"(?:[x\\uFF58#\\uFF03~\\uFF5E]|int|\\uFF49\\uFF4E\\uFF54)\"; // When extension is not separated clearly.\n\n /** @type {string} */\n\n var ambiguousSeparator = \"[- ]+\"; // This is the same as possibleSeparatorsBetweenNumberAndExtLabel, but not matching\n // comma as extension label may have it.\n\n /** @type {string} */\n\n var possibleSeparatorsNumberExtLabelNoComma = \"[ \\xA0\\\\t]*\"; // \",,\" is commonly used for auto dialling the extension when connected. First\n // comma is matched through possibleSeparatorsBetweenNumberAndExtLabel, so we do\n // not repeat it here. Semi-colon works in Iphone and Android also to pop up a\n // button with the extension number following.\n\n /** @type {string} */\n\n var autoDiallingAndExtLabelsFound = \"(?:,{2}|;)\";\n /** @type {string} */\n\n var rfcExtn = RFC3966_EXTN_PREFIX + getExtensionDigitsPattern(extLimitAfterExplicitLabel);\n /** @type {string} */\n\n var explicitExtn = possibleSeparatorsBetweenNumberAndExtLabel + explicitExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterExplicitLabel) + optionalExtnSuffix;\n /** @type {string} */\n\n var ambiguousExtn = possibleSeparatorsBetweenNumberAndExtLabel + ambiguousExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;\n /** @type {string} */\n\n var americanStyleExtnWithSuffix = ambiguousSeparator + getExtensionDigitsPattern(extLimitWhenNotSure) + \"#\";\n /** @type {string} */\n\n var autoDiallingExtn = possibleSeparatorsNumberExtLabelNoComma + autoDiallingAndExtLabelsFound + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterLikelyLabel) + optionalExtnSuffix;\n /** @type {string} */\n\n var onlyCommasExtn = possibleSeparatorsNumberExtLabelNoComma + \"(?:,)+\" + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix; // The first regular expression covers RFC 3966 format, where the extension is added\n // using \";ext=\". The second more generic where extension is mentioned with explicit\n // labels like \"ext:\". In both the above cases we allow more numbers in extension than\n // any other extension labels. The third one captures when single character extension\n // labels or less commonly used labels are used. In such cases we capture fewer\n // extension digits in order to reduce the chance of falsely interpreting two\n // numbers beside each other as a number + extension. The fourth one covers the\n // special case of American numbers where the extension is written with a hash\n // at the end, such as \"- 503#\". The fifth one is exclusively for extension\n // autodialling formats which are used when dialling and in this case we accept longer\n // extensions. The last one is more liberal on the number of commas that acts as\n // extension labels, so we have a strict cap on the number of digits in such extensions.\n\n return rfcExtn + \"|\" + explicitExtn + \"|\" + ambiguousExtn + \"|\" + americanStyleExtnWithSuffix + \"|\" + autoDiallingExtn + \"|\" + onlyCommasExtn;\n}\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nimport Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nvar NON_FIXED_LINE_PHONE_TYPES = ['MOBILE', 'PREMIUM_RATE', 'TOLL_FREE', 'SHARED_COST', 'VOIP', 'PERSONAL_NUMBER', 'PAGER', 'UAN', 'VOICEMAIL']; // Finds out national phone number type (fixed line, mobile, etc)\n\nexport default function getNumberType(input, options, metadata) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {}; // When `parse()` returns an empty object — `{}` —\n // that means that the phone number is malformed,\n // so it can't possibly be valid.\n\n if (!input.country && !input.countryCallingCode) {\n return;\n }\n\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(input.country, input.countryCallingCode);\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone; // The following is copy-pasted from the original function:\n // https://github.com/googlei18n/libphonenumber/blob/3ea547d4fbaa2d0b67588904dfa5d3f2557c27ff/javascript/i18n/phonenumbers/phonenumberutil.js#L2835\n // Is this national number even valid for this country\n\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern())) {\n return;\n } // Is it fixed line number\n\n\n if (isNumberTypeEqualTo(nationalNumber, 'FIXED_LINE', metadata)) {\n // Because duplicate regular expressions are removed\n // to reduce metadata size, if \"mobile\" pattern is \"\"\n // then it means it was removed due to being a duplicate of the fixed-line pattern.\n //\n if (metadata.type('MOBILE') && metadata.type('MOBILE').pattern() === '') {\n return 'FIXED_LINE_OR_MOBILE';\n } // `MOBILE` type pattern isn't included if it matched `FIXED_LINE` one.\n // For example, for \"US\" country.\n // Old metadata (< `1.0.18`) had a specific \"types\" data structure\n // that happened to be `undefined` for `MOBILE` in that case.\n // Newer metadata (>= `1.0.18`) has another data structure that is\n // not `undefined` for `MOBILE` in that case (it's just an empty array).\n // So this `if` is just for backwards compatibility with old metadata.\n\n\n if (!metadata.type('MOBILE')) {\n return 'FIXED_LINE_OR_MOBILE';\n } // Check if the number happens to qualify as both fixed line and mobile.\n // (no such country in the minimal metadata set)\n\n /* istanbul ignore if */\n\n\n if (isNumberTypeEqualTo(nationalNumber, 'MOBILE', metadata)) {\n return 'FIXED_LINE_OR_MOBILE';\n }\n\n return 'FIXED_LINE';\n }\n\n for (var _iterator = _createForOfIteratorHelperLoose(NON_FIXED_LINE_PHONE_TYPES), _step; !(_step = _iterator()).done;) {\n var type = _step.value;\n\n if (isNumberTypeEqualTo(nationalNumber, type, metadata)) {\n return type;\n }\n }\n}\nexport function isNumberTypeEqualTo(nationalNumber, type, metadata) {\n type = metadata.type(type);\n\n if (!type || !type.pattern()) {\n return false;\n } // Check if any possible number lengths are present;\n // if so, we use them to avoid checking\n // the validation pattern if they don't match.\n // If they are absent, this means they match\n // the general description, which we have\n // already checked before a specific number type.\n\n\n if (type.possibleLengths() && type.possibleLengths().indexOf(nationalNumber.length) < 0) {\n return false;\n }\n\n return matchesEntirely(nationalNumber, type.pattern());\n}\n","var objectConstructor = {}.constructor;\nexport default function isObject(object) {\n return object !== undefined && object !== null && object.constructor === objectConstructor;\n}\n","import { MIN_LENGTH_FOR_NSN, VALID_DIGITS, VALID_PUNCTUATION, PLUS_CHARS } from '../constants.js';\nimport createExtensionPattern from './extension/createExtensionPattern.js'; // Regular expression of viable phone numbers. This is location independent.\n// Checks we have at least three leading digits, and only valid punctuation,\n// alpha characters and digits in the phone number. Does not include extension\n// data. The symbol 'x' is allowed here as valid punctuation since it is often\n// used as a placeholder for carrier codes, for example in Brazilian phone\n// numbers. We also allow multiple '+' characters at the start.\n//\n// Corresponds to the following:\n// [digits]{minLengthNsn}|\n// plus_sign*\n// (([punctuation]|[star])*[digits]){3,}([punctuation]|[star]|[digits]|[alpha])*\n//\n// The first reg-ex is to allow short numbers (two digits long) to be parsed if\n// they are entered as \"15\" etc, but only if there is no punctuation in them.\n// The second expression restricts the number of digits to three or more, but\n// then allows them to be in international form, and to have alpha-characters\n// and punctuation. We split up the two reg-exes here and combine them when\n// creating the reg-ex VALID_PHONE_NUMBER_PATTERN itself so we can prefix it\n// with ^ and append $ to each branch.\n//\n// \"Note VALID_PUNCTUATION starts with a -,\n// so must be the first in the range\" (c) Google devs.\n// (wtf did they mean by saying that; probably nothing)\n//\n\nvar MIN_LENGTH_PHONE_NUMBER_PATTERN = '[' + VALID_DIGITS + ']{' + MIN_LENGTH_FOR_NSN + '}'; //\n// And this is the second reg-exp:\n// (see MIN_LENGTH_PHONE_NUMBER_PATTERN for a full description of this reg-exp)\n//\n\nexport var VALID_PHONE_NUMBER = '[' + PLUS_CHARS + ']{0,1}' + '(?:' + '[' + VALID_PUNCTUATION + ']*' + '[' + VALID_DIGITS + ']' + '){3,}' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']*'; // This regular expression isn't present in Google's `libphonenumber`\n// and is only used to determine whether the phone number being input\n// is too short for it to even consider it a \"valid\" number.\n// This is just a way to differentiate between a really invalid phone\n// number like \"abcde\" and a valid phone number that a user has just\n// started inputting, like \"+1\" or \"1\": both these cases would be\n// considered `NOT_A_NUMBER` by Google's `libphonenumber`, but this\n// library can provide a more detailed error message — whether it's\n// really \"not a number\", or is it just a start of a valid phone number.\n\nvar VALID_PHONE_NUMBER_START_REG_EXP = new RegExp('^' + '[' + PLUS_CHARS + ']{0,1}' + '(?:' + '[' + VALID_PUNCTUATION + ']*' + '[' + VALID_DIGITS + ']' + '){1,2}' + '$', 'i');\nexport var VALID_PHONE_NUMBER_WITH_EXTENSION = VALID_PHONE_NUMBER + // Phone number extensions\n'(?:' + createExtensionPattern() + ')?'; // The combined regular expression for valid phone numbers:\n//\n\nvar VALID_PHONE_NUMBER_PATTERN = new RegExp( // Either a short two-digit-only phone number\n'^' + MIN_LENGTH_PHONE_NUMBER_PATTERN + '$' + '|' + // Or a longer fully parsed phone number (min 3 characters)\n'^' + VALID_PHONE_NUMBER_WITH_EXTENSION + '$', 'i'); // Checks to see if the string of characters could possibly be a phone number at\n// all. At the moment, checks to see that the string begins with at least 2\n// digits, ignoring any punctuation commonly found in phone numbers. This method\n// does not require the number to be normalized in advance - but does assume\n// that leading non-number symbols have been removed, such as by the method\n// `extract_possible_number`.\n//\n\nexport default function isViablePhoneNumber(number) {\n return number.length >= MIN_LENGTH_FOR_NSN && VALID_PHONE_NUMBER_PATTERN.test(number);\n} // This is just a way to differentiate between a really invalid phone\n// number like \"abcde\" and a valid phone number that a user has just\n// started inputting, like \"+1\" or \"1\": both these cases would be\n// considered `NOT_A_NUMBER` by Google's `libphonenumber`, but this\n// library can provide a more detailed error message — whether it's\n// really \"not a number\", or is it just a start of a valid phone number.\n\nexport function isViablePhoneNumberStart(number) {\n return VALID_PHONE_NUMBER_START_REG_EXP.test(number);\n}\n","/**\r\n * Checks whether the entire input sequence can be matched\r\n * against the regular expression.\r\n * @return {boolean}\r\n */\nexport default function matchesEntirely(text, regular_expression) {\n // If assigning the `''` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n text = text || '';\n return new RegExp('^(?:' + regular_expression + ')$').test(text);\n}\n","import Metadata from './metadata.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport getNumberType from './helpers/getNumberType.js';\n/**\r\n * Checks if a given phone number is valid.\r\n *\r\n * isValid(phoneNumberInstance, { ..., v2: true }, metadata)\r\n *\r\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\r\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\r\n *\r\n * If the `number` is a string, it will be parsed to an object,\r\n * but only if it contains only valid phone number characters (including punctuation).\r\n * If the `number` is an object, it is used as is.\r\n *\r\n * The optional `defaultCountry` argument is the default country.\r\n * I.e. it does not restrict to just that country,\r\n * e.g. in those cases where several countries share\r\n * the same phone numbering rules (NANPA, Britain, etc).\r\n * For example, even though the number `07624 369230`\r\n * belongs to the Isle of Man (\"IM\" country code)\r\n * calling `isValidNumber('07624369230', 'GB', metadata)`\r\n * still returns `true` because the country is not restricted to `GB`,\r\n * it's just that `GB` is the default one for the phone numbering rules.\r\n * For restricting the country see `isValidNumberForRegion()`\r\n * though restricting a country might not be a good idea.\r\n * https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#when-should-i-use-isvalidnumberforregion\r\n *\r\n * Examples:\r\n *\r\n * ```js\r\n * isValidNumber('+78005553535', metadata)\r\n * isValidNumber('8005553535', 'RU', metadata)\r\n * isValidNumber('88005553535', 'RU', metadata)\r\n * isValidNumber({ phone: '8005553535', country: 'RU' }, metadata)\r\n * ```\r\n */\n\nexport default function isValidNumber(input, options, metadata) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(input.country, input.countryCallingCode); // By default, countries only have type regexps when it's required for\n // distinguishing different countries having the same `countryCallingCode`.\n\n if (metadata.hasTypes()) {\n return getNumberType(input, options, metadata.metadata) !== undefined;\n } // If there are no type regexps for this country in metadata then use\n // `nationalNumberPattern` as a \"better than nothing\" replacement.\n\n\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n return matchesEntirely(nationalNumber, metadata.nationalNumberPattern());\n}\n","// Copy-pasted from:\n// https://github.com/substack/semver-compare/blob/master/index.js\n//\n// Inlining this function because some users reported issues with\n// importing from `semver-compare` in a browser with ES6 \"native\" modules.\n//\n// Fixes `semver-compare` not being able to compare versions with alpha/beta/etc \"tags\".\n// https://github.com/catamphetamine/libphonenumber-js/issues/381\nexport default function (a, b) {\n a = a.split('-');\n b = b.split('-');\n var pa = a[0].split('.');\n var pb = b[0].split('.');\n\n for (var i = 0; i < 3; i++) {\n var na = Number(pa[i]);\n var nb = Number(pb[i]);\n if (na > nb) return 1;\n if (nb > na) return -1;\n if (!isNaN(na) && isNaN(nb)) return 1;\n if (isNaN(na) && !isNaN(nb)) return -1;\n }\n\n if (a[1] && b[1]) {\n return a[1] > b[1] ? 1 : a[1] < b[1] ? -1 : 0;\n }\n\n return !a[1] && b[1] ? 1 : a[1] && !b[1] ? -1 : 0;\n}\n","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nimport compare from './tools/semver-compare.js';\nimport isObject from './helpers/isObject.js'; // Added \"possibleLengths\" and renamed\n// \"country_phone_code_to_countries\" to \"country_calling_codes\".\n\nvar V2 = '1.0.18'; // Added \"idd_prefix\" and \"default_idd_prefix\".\n\nvar V3 = '1.2.0'; // Moved `001` country code to \"nonGeographic\" section of metadata.\n\nvar V4 = '1.7.35';\nvar DEFAULT_EXT_PREFIX = ' ext. ';\nvar CALLING_CODE_REG_EXP = /^\\d+$/;\n/**\r\n * See: https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md\r\n */\n\nvar Metadata = /*#__PURE__*/function () {\n function Metadata(metadata) {\n _classCallCheck(this, Metadata);\n\n validateMetadata(metadata);\n this.metadata = metadata;\n setVersion.call(this, metadata);\n }\n\n _createClass(Metadata, [{\n key: \"getCountries\",\n value: function getCountries() {\n return Object.keys(this.metadata.countries).filter(function (_) {\n return _ !== '001';\n });\n }\n }, {\n key: \"getCountryMetadata\",\n value: function getCountryMetadata(countryCode) {\n return this.metadata.countries[countryCode];\n }\n }, {\n key: \"nonGeographic\",\n value: function nonGeographic() {\n if (this.v1 || this.v2 || this.v3) return; // `nonGeographical` was a typo.\n // It's present in metadata generated from `1.7.35` to `1.7.37`.\n // The test case could be found by searching for \"nonGeographical\".\n\n return this.metadata.nonGeographic || this.metadata.nonGeographical;\n }\n }, {\n key: \"hasCountry\",\n value: function hasCountry(country) {\n return this.getCountryMetadata(country) !== undefined;\n }\n }, {\n key: \"hasCallingCode\",\n value: function hasCallingCode(callingCode) {\n if (this.getCountryCodesForCallingCode(callingCode)) {\n return true;\n }\n\n if (this.nonGeographic()) {\n if (this.nonGeographic()[callingCode]) {\n return true;\n }\n } else {\n // A hacky workaround for old custom metadata (generated before V4).\n var countryCodes = this.countryCallingCodes()[callingCode];\n\n if (countryCodes && countryCodes.length === 1 && countryCodes[0] === '001') {\n return true;\n }\n }\n }\n }, {\n key: \"isNonGeographicCallingCode\",\n value: function isNonGeographicCallingCode(callingCode) {\n if (this.nonGeographic()) {\n return this.nonGeographic()[callingCode] ? true : false;\n } else {\n return this.getCountryCodesForCallingCode(callingCode) ? false : true;\n }\n } // Deprecated.\n\n }, {\n key: \"country\",\n value: function country(countryCode) {\n return this.selectNumberingPlan(countryCode);\n }\n }, {\n key: \"selectNumberingPlan\",\n value: function selectNumberingPlan(countryCode, callingCode) {\n // Supports just passing `callingCode` as the first argument.\n if (countryCode && CALLING_CODE_REG_EXP.test(countryCode)) {\n callingCode = countryCode;\n countryCode = null;\n }\n\n if (countryCode && countryCode !== '001') {\n if (!this.hasCountry(countryCode)) {\n throw new Error(\"Unknown country: \".concat(countryCode));\n }\n\n this.numberingPlan = new NumberingPlan(this.getCountryMetadata(countryCode), this);\n } else if (callingCode) {\n if (!this.hasCallingCode(callingCode)) {\n throw new Error(\"Unknown calling code: \".concat(callingCode));\n }\n\n this.numberingPlan = new NumberingPlan(this.getNumberingPlanMetadata(callingCode), this);\n } else {\n this.numberingPlan = undefined;\n }\n\n return this;\n }\n }, {\n key: \"getCountryCodesForCallingCode\",\n value: function getCountryCodesForCallingCode(callingCode) {\n var countryCodes = this.countryCallingCodes()[callingCode];\n\n if (countryCodes) {\n // Metadata before V4 included \"non-geographic entity\" calling codes\n // inside `country_calling_codes` (for example, `\"881\":[\"001\"]`).\n // Now the semantics of `country_calling_codes` has changed:\n // it's specifically for \"countries\" now.\n // Older versions of custom metadata will simply skip parsing\n // \"non-geographic entity\" phone numbers with new versions\n // of this library: it's not considered a bug,\n // because such numbers are extremely rare,\n // and developers extremely rarely use custom metadata.\n if (countryCodes.length === 1 && countryCodes[0].length === 3) {\n return;\n }\n\n return countryCodes;\n }\n }\n }, {\n key: \"getCountryCodeForCallingCode\",\n value: function getCountryCodeForCallingCode(callingCode) {\n var countryCodes = this.getCountryCodesForCallingCode(callingCode);\n\n if (countryCodes) {\n return countryCodes[0];\n }\n }\n }, {\n key: \"getNumberingPlanMetadata\",\n value: function getNumberingPlanMetadata(callingCode) {\n var countryCode = this.getCountryCodeForCallingCode(callingCode);\n\n if (countryCode) {\n return this.getCountryMetadata(countryCode);\n }\n\n if (this.nonGeographic()) {\n var metadata = this.nonGeographic()[callingCode];\n\n if (metadata) {\n return metadata;\n }\n } else {\n // A hacky workaround for old custom metadata (generated before V4).\n // In that metadata, there was no concept of \"non-geographic\" metadata\n // so metadata for `001` country code was stored along with other countries.\n // The test case can be found by searching for:\n // \"should work around `nonGeographic` metadata not existing\".\n var countryCodes = this.countryCallingCodes()[callingCode];\n\n if (countryCodes && countryCodes.length === 1 && countryCodes[0] === '001') {\n return this.metadata.countries['001'];\n }\n }\n } // Deprecated.\n\n }, {\n key: \"countryCallingCode\",\n value: function countryCallingCode() {\n return this.numberingPlan.callingCode();\n } // Deprecated.\n\n }, {\n key: \"IDDPrefix\",\n value: function IDDPrefix() {\n return this.numberingPlan.IDDPrefix();\n } // Deprecated.\n\n }, {\n key: \"defaultIDDPrefix\",\n value: function defaultIDDPrefix() {\n return this.numberingPlan.defaultIDDPrefix();\n } // Deprecated.\n\n }, {\n key: \"nationalNumberPattern\",\n value: function nationalNumberPattern() {\n return this.numberingPlan.nationalNumberPattern();\n } // Deprecated.\n\n }, {\n key: \"possibleLengths\",\n value: function possibleLengths() {\n return this.numberingPlan.possibleLengths();\n } // Deprecated.\n\n }, {\n key: \"formats\",\n value: function formats() {\n return this.numberingPlan.formats();\n } // Deprecated.\n\n }, {\n key: \"nationalPrefixForParsing\",\n value: function nationalPrefixForParsing() {\n return this.numberingPlan.nationalPrefixForParsing();\n } // Deprecated.\n\n }, {\n key: \"nationalPrefixTransformRule\",\n value: function nationalPrefixTransformRule() {\n return this.numberingPlan.nationalPrefixTransformRule();\n } // Deprecated.\n\n }, {\n key: \"leadingDigits\",\n value: function leadingDigits() {\n return this.numberingPlan.leadingDigits();\n } // Deprecated.\n\n }, {\n key: \"hasTypes\",\n value: function hasTypes() {\n return this.numberingPlan.hasTypes();\n } // Deprecated.\n\n }, {\n key: \"type\",\n value: function type(_type) {\n return this.numberingPlan.type(_type);\n } // Deprecated.\n\n }, {\n key: \"ext\",\n value: function ext() {\n return this.numberingPlan.ext();\n }\n }, {\n key: \"countryCallingCodes\",\n value: function countryCallingCodes() {\n if (this.v1) return this.metadata.country_phone_code_to_countries;\n return this.metadata.country_calling_codes;\n } // Deprecated.\n\n }, {\n key: \"chooseCountryByCountryCallingCode\",\n value: function chooseCountryByCountryCallingCode(callingCode) {\n return this.selectNumberingPlan(callingCode);\n }\n }, {\n key: \"hasSelectedNumberingPlan\",\n value: function hasSelectedNumberingPlan() {\n return this.numberingPlan !== undefined;\n }\n }]);\n\n return Metadata;\n}();\n\nexport { Metadata as default };\n\nvar NumberingPlan = /*#__PURE__*/function () {\n function NumberingPlan(metadata, globalMetadataObject) {\n _classCallCheck(this, NumberingPlan);\n\n this.globalMetadataObject = globalMetadataObject;\n this.metadata = metadata;\n setVersion.call(this, globalMetadataObject.metadata);\n }\n\n _createClass(NumberingPlan, [{\n key: \"callingCode\",\n value: function callingCode() {\n return this.metadata[0];\n } // Formatting information for regions which share\n // a country calling code is contained by only one region\n // for performance reasons. For example, for NANPA region\n // (\"North American Numbering Plan Administration\",\n // which includes USA, Canada, Cayman Islands, Bahamas, etc)\n // it will be contained in the metadata for `US`.\n\n }, {\n key: \"getDefaultCountryMetadataForRegion\",\n value: function getDefaultCountryMetadataForRegion() {\n return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());\n } // Is always present.\n\n }, {\n key: \"IDDPrefix\",\n value: function IDDPrefix() {\n if (this.v1 || this.v2) return;\n return this.metadata[1];\n } // Is only present when a country supports multiple IDD prefixes.\n\n }, {\n key: \"defaultIDDPrefix\",\n value: function defaultIDDPrefix() {\n if (this.v1 || this.v2) return;\n return this.metadata[12];\n }\n }, {\n key: \"nationalNumberPattern\",\n value: function nationalNumberPattern() {\n if (this.v1 || this.v2) return this.metadata[1];\n return this.metadata[2];\n } // \"possible length\" data is always present in Google's metadata.\n\n }, {\n key: \"possibleLengths\",\n value: function possibleLengths() {\n if (this.v1) return;\n return this.metadata[this.v2 ? 2 : 3];\n }\n }, {\n key: \"_getFormats\",\n value: function _getFormats(metadata) {\n return metadata[this.v1 ? 2 : this.v2 ? 3 : 4];\n } // For countries of the same region (e.g. NANPA)\n // formats are all stored in the \"main\" country for that region.\n // E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n\n }, {\n key: \"formats\",\n value: function formats() {\n var _this = this;\n\n var formats = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];\n return formats.map(function (_) {\n return new Format(_, _this);\n });\n }\n }, {\n key: \"nationalPrefix\",\n value: function nationalPrefix() {\n return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];\n }\n }, {\n key: \"_getNationalPrefixFormattingRule\",\n value: function _getNationalPrefixFormattingRule(metadata) {\n return metadata[this.v1 ? 4 : this.v2 ? 5 : 6];\n } // For countries of the same region (e.g. NANPA)\n // national prefix formatting rule is stored in the \"main\" country for that region.\n // E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n\n }, {\n key: \"nationalPrefixFormattingRule\",\n value: function nationalPrefixFormattingRule() {\n return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());\n }\n }, {\n key: \"_nationalPrefixForParsing\",\n value: function _nationalPrefixForParsing() {\n return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];\n }\n }, {\n key: \"nationalPrefixForParsing\",\n value: function nationalPrefixForParsing() {\n // If `national_prefix_for_parsing` is not set explicitly,\n // then infer it from `national_prefix` (if any)\n return this._nationalPrefixForParsing() || this.nationalPrefix();\n }\n }, {\n key: \"nationalPrefixTransformRule\",\n value: function nationalPrefixTransformRule() {\n return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];\n }\n }, {\n key: \"_getNationalPrefixIsOptionalWhenFormatting\",\n value: function _getNationalPrefixIsOptionalWhenFormatting() {\n return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];\n } // For countries of the same region (e.g. NANPA)\n // \"national prefix is optional when formatting\" flag is\n // stored in the \"main\" country for that region.\n // E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n\n }, {\n key: \"nationalPrefixIsOptionalWhenFormattingInNationalFormat\",\n value: function nationalPrefixIsOptionalWhenFormattingInNationalFormat() {\n return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());\n }\n }, {\n key: \"leadingDigits\",\n value: function leadingDigits() {\n return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];\n }\n }, {\n key: \"types\",\n value: function types() {\n return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];\n }\n }, {\n key: \"hasTypes\",\n value: function hasTypes() {\n // Versions 1.2.0 - 1.2.4: can be `[]`.\n\n /* istanbul ignore next */\n if (this.types() && this.types().length === 0) {\n return false;\n } // Versions <= 1.2.4: can be `undefined`.\n // Version >= 1.2.5: can be `0`.\n\n\n return !!this.types();\n }\n }, {\n key: \"type\",\n value: function type(_type2) {\n if (this.hasTypes() && getType(this.types(), _type2)) {\n return new Type(getType(this.types(), _type2), this);\n }\n }\n }, {\n key: \"ext\",\n value: function ext() {\n if (this.v1 || this.v2) return DEFAULT_EXT_PREFIX;\n return this.metadata[13] || DEFAULT_EXT_PREFIX;\n }\n }]);\n\n return NumberingPlan;\n}();\n\nvar Format = /*#__PURE__*/function () {\n function Format(format, metadata) {\n _classCallCheck(this, Format);\n\n this._format = format;\n this.metadata = metadata;\n }\n\n _createClass(Format, [{\n key: \"pattern\",\n value: function pattern() {\n return this._format[0];\n }\n }, {\n key: \"format\",\n value: function format() {\n return this._format[1];\n }\n }, {\n key: \"leadingDigitsPatterns\",\n value: function leadingDigitsPatterns() {\n return this._format[2] || [];\n }\n }, {\n key: \"nationalPrefixFormattingRule\",\n value: function nationalPrefixFormattingRule() {\n return this._format[3] || this.metadata.nationalPrefixFormattingRule();\n }\n }, {\n key: \"nationalPrefixIsOptionalWhenFormattingInNationalFormat\",\n value: function nationalPrefixIsOptionalWhenFormattingInNationalFormat() {\n return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();\n }\n }, {\n key: \"nationalPrefixIsMandatoryWhenFormattingInNationalFormat\",\n value: function nationalPrefixIsMandatoryWhenFormattingInNationalFormat() {\n // National prefix is omitted if there's no national prefix formatting rule\n // set for this country, or when the national prefix formatting rule\n // contains no national prefix itself, or when this rule is set but\n // national prefix is optional for this phone number format\n // (and it is not enforced explicitly)\n return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();\n } // Checks whether national prefix formatting rule contains national prefix.\n\n }, {\n key: \"usesNationalPrefix\",\n value: function usesNationalPrefix() {\n return this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a \"dummy\" one.\n !FIRST_GROUP_ONLY_PREFIX_PATTERN.test(this.nationalPrefixFormattingRule()) // In compressed metadata, `this.nationalPrefixFormattingRule()` is `0`\n // when `national_prefix_formatting_rule` is not present.\n // So, `true` or `false` are returned explicitly here, so that\n // `0` number isn't returned.\n ? true : false;\n }\n }, {\n key: \"internationalFormat\",\n value: function internationalFormat() {\n return this._format[5] || this.format();\n }\n }]);\n\n return Format;\n}();\n/**\r\n * A pattern that is used to determine if the national prefix formatting rule\r\n * has the first group only, i.e., does not start with the national prefix.\r\n * Note that the pattern explicitly allows for unbalanced parentheses.\r\n */\n\n\nvar FIRST_GROUP_ONLY_PREFIX_PATTERN = /^\\(?\\$1\\)?$/;\n\nvar Type = /*#__PURE__*/function () {\n function Type(type, metadata) {\n _classCallCheck(this, Type);\n\n this.type = type;\n this.metadata = metadata;\n }\n\n _createClass(Type, [{\n key: \"pattern\",\n value: function pattern() {\n if (this.metadata.v1) return this.type;\n return this.type[0];\n }\n }, {\n key: \"possibleLengths\",\n value: function possibleLengths() {\n if (this.metadata.v1) return;\n return this.type[1] || this.metadata.possibleLengths();\n }\n }]);\n\n return Type;\n}();\n\nfunction getType(types, type) {\n switch (type) {\n case 'FIXED_LINE':\n return types[0];\n\n case 'MOBILE':\n return types[1];\n\n case 'TOLL_FREE':\n return types[2];\n\n case 'PREMIUM_RATE':\n return types[3];\n\n case 'PERSONAL_NUMBER':\n return types[4];\n\n case 'VOICEMAIL':\n return types[5];\n\n case 'UAN':\n return types[6];\n\n case 'PAGER':\n return types[7];\n\n case 'VOIP':\n return types[8];\n\n case 'SHARED_COST':\n return types[9];\n }\n}\n\nexport function validateMetadata(metadata) {\n if (!metadata) {\n throw new Error('[libphonenumber-js] `metadata` argument not passed. Check your arguments.');\n } // `country_phone_code_to_countries` was renamed to\n // `country_calling_codes` in `1.0.18`.\n\n\n if (!isObject(metadata) || !isObject(metadata.countries)) {\n throw new Error(\"[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got \".concat(isObject(metadata) ? 'an object of shape: { ' + Object.keys(metadata).join(', ') + ' }' : 'a ' + typeOf(metadata) + ': ' + metadata, \".\"));\n }\n} // Babel transforms `typeof` into some \"branches\"\n// so istanbul will show this as \"branch not covered\".\n\n/* istanbul ignore next */\n\nvar typeOf = function typeOf(_) {\n return _typeof(_);\n};\n/**\r\n * Returns extension prefix for a country.\r\n * @param {string} country\r\n * @param {object} metadata\r\n * @return {string?}\r\n * @example\r\n * // Returns \" ext. \"\r\n * getExtPrefix(\"US\")\r\n */\n\n\nexport function getExtPrefix(country, metadata) {\n metadata = new Metadata(metadata);\n\n if (metadata.hasCountry(country)) {\n return metadata.country(country).ext();\n }\n\n return DEFAULT_EXT_PREFIX;\n}\n/**\r\n * Returns \"country calling code\" for a country.\r\n * Throws an error if the country doesn't exist or isn't supported by this library.\r\n * @param {string} country\r\n * @param {object} metadata\r\n * @return {string}\r\n * @example\r\n * // Returns \"44\"\r\n * getCountryCallingCode(\"GB\")\r\n */\n\nexport function getCountryCallingCode(country, metadata) {\n metadata = new Metadata(metadata);\n\n if (metadata.hasCountry(country)) {\n return metadata.country(country).countryCallingCode();\n }\n\n throw new Error(\"Unknown country: \".concat(country));\n}\nexport function isSupportedCountry(country, metadata) {\n // metadata = new Metadata(metadata)\n // return metadata.hasCountry(country)\n return metadata.countries.hasOwnProperty(country);\n}\n\nfunction setVersion(metadata) {\n var version = metadata.version;\n\n if (typeof version === 'number') {\n this.v1 = version === 1;\n this.v2 = version === 2;\n this.v3 = version === 3;\n this.v4 = version === 4;\n } else {\n if (!version) {\n this.v1 = true;\n } else if (compare(version, V3) === -1) {\n this.v2 = true;\n } else if (compare(version, V4) === -1) {\n this.v3 = true;\n } else {\n this.v4 = true;\n }\n }\n} // const ISO_COUNTRY_CODE = /^[A-Z]{2}$/\n// function isCountryCode(countryCode) {\n// \treturn ISO_COUNTRY_CODE.test(countryCodeOrCountryCallingCode)\n// }\n","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \"function\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \"function\") { throw new TypeError(\"Super expression must either be null or a function\"); } if (typeof _cache !== \"undefined\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\n\nfunction _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\"[native code]\") !== -1; }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n// https://stackoverflow.com/a/46971044/970769\n// \"Breaking changes in Typescript 2.1\"\n// \"Extending built-ins like Error, Array, and Map may no longer work.\"\n// \"As a recommendation, you can manually adjust the prototype immediately after any super(...) calls.\"\n// https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work\nvar ParseError = /*#__PURE__*/function (_Error) {\n _inherits(ParseError, _Error);\n\n var _super = _createSuper(ParseError);\n\n function ParseError(code) {\n var _this;\n\n _classCallCheck(this, ParseError);\n\n _this = _super.call(this, code); // Set the prototype explicitly.\n // Any subclass of FooError will have to manually set the prototype as well.\n\n Object.setPrototypeOf(_assertThisInitialized(_this), ParseError.prototype);\n _this.name = _this.constructor.name;\n return _this;\n }\n\n return _createClass(ParseError);\n}( /*#__PURE__*/_wrapNativeSuper(Error));\n\nexport { ParseError as default };\n","import createExtensionPattern from './createExtensionPattern.js'; // Regexp of all known extension prefixes used by different regions followed by\n// 1 or more valid digits, for use when parsing.\n\nvar EXTN_PATTERN = new RegExp('(?:' + createExtensionPattern() + ')$', 'i'); // Strips any extension (as in, the part of the number dialled after the call is\n// connected, usually indicated with extn, ext, x or similar) from the end of\n// the number, and returns it.\n\nexport default function extractExtension(number) {\n var start = number.search(EXTN_PATTERN);\n\n if (start < 0) {\n return {};\n } // If we find a potential extension, and the number preceding this is a viable\n // number, we assume it is an extension.\n\n\n var numberWithoutExtension = number.slice(0, start);\n var matches = number.match(EXTN_PATTERN);\n var i = 1;\n\n while (i < matches.length) {\n if (matches[i]) {\n return {\n number: numberWithoutExtension,\n ext: matches[i]\n };\n }\n\n i++;\n }\n}\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n// These mappings map a character (key) to a specific digit that should\n// replace it for normalization purposes. Non-European digits that\n// may be used in phone numbers are mapped to a European equivalent.\n//\n// E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\n//\nexport var DIGITS = {\n '0': '0',\n '1': '1',\n '2': '2',\n '3': '3',\n '4': '4',\n '5': '5',\n '6': '6',\n '7': '7',\n '8': '8',\n '9': '9',\n \"\\uFF10\": '0',\n // Fullwidth digit 0\n \"\\uFF11\": '1',\n // Fullwidth digit 1\n \"\\uFF12\": '2',\n // Fullwidth digit 2\n \"\\uFF13\": '3',\n // Fullwidth digit 3\n \"\\uFF14\": '4',\n // Fullwidth digit 4\n \"\\uFF15\": '5',\n // Fullwidth digit 5\n \"\\uFF16\": '6',\n // Fullwidth digit 6\n \"\\uFF17\": '7',\n // Fullwidth digit 7\n \"\\uFF18\": '8',\n // Fullwidth digit 8\n \"\\uFF19\": '9',\n // Fullwidth digit 9\n \"\\u0660\": '0',\n // Arabic-indic digit 0\n \"\\u0661\": '1',\n // Arabic-indic digit 1\n \"\\u0662\": '2',\n // Arabic-indic digit 2\n \"\\u0663\": '3',\n // Arabic-indic digit 3\n \"\\u0664\": '4',\n // Arabic-indic digit 4\n \"\\u0665\": '5',\n // Arabic-indic digit 5\n \"\\u0666\": '6',\n // Arabic-indic digit 6\n \"\\u0667\": '7',\n // Arabic-indic digit 7\n \"\\u0668\": '8',\n // Arabic-indic digit 8\n \"\\u0669\": '9',\n // Arabic-indic digit 9\n \"\\u06F0\": '0',\n // Eastern-Arabic digit 0\n \"\\u06F1\": '1',\n // Eastern-Arabic digit 1\n \"\\u06F2\": '2',\n // Eastern-Arabic digit 2\n \"\\u06F3\": '3',\n // Eastern-Arabic digit 3\n \"\\u06F4\": '4',\n // Eastern-Arabic digit 4\n \"\\u06F5\": '5',\n // Eastern-Arabic digit 5\n \"\\u06F6\": '6',\n // Eastern-Arabic digit 6\n \"\\u06F7\": '7',\n // Eastern-Arabic digit 7\n \"\\u06F8\": '8',\n // Eastern-Arabic digit 8\n \"\\u06F9\": '9' // Eastern-Arabic digit 9\n\n};\nexport function parseDigit(character) {\n return DIGITS[character];\n}\n/**\r\n * Parses phone number digits from a string.\r\n * Drops all punctuation leaving only digits.\r\n * Also converts wide-ascii and arabic-indic numerals to conventional numerals.\r\n * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\r\n * @param {string} string\r\n * @return {string}\r\n * @example\r\n * ```js\r\n * parseDigits('8 (800) 555')\r\n * // Outputs '8800555'.\r\n * ```\r\n */\n\nexport default function parseDigits(string) {\n var result = ''; // Using `.split('')` here instead of normal `for ... of`\n // because the importing application doesn't neccessarily include an ES6 polyfill.\n // The `.split('')` approach discards \"exotic\" UTF-8 characters\n // (the ones consisting of four bytes) but digits\n // (including non-European ones) don't fall into that range\n // so such \"exotic\" characters would be discarded anyway.\n\n for (var _iterator = _createForOfIteratorHelperLoose(string.split('')), _step; !(_step = _iterator()).done;) {\n var character = _step.value;\n var digit = parseDigit(character);\n\n if (digit) {\n result += digit;\n }\n }\n\n return result;\n}\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nimport { parseDigit } from './helpers/parseDigits.js';\n/**\r\n * Parses phone number characters from a string.\r\n * Drops all punctuation leaving only digits and the leading `+` sign (if any).\r\n * Also converts wide-ascii and arabic-indic numerals to conventional numerals.\r\n * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\r\n * @param {string} string\r\n * @return {string}\r\n * @example\r\n * ```js\r\n * // Outputs '8800555'.\r\n * parseIncompletePhoneNumber('8 (800) 555')\r\n * // Outputs '+7800555'.\r\n * parseIncompletePhoneNumber('+7 800 555')\r\n * ```\r\n */\n\nexport default function parseIncompletePhoneNumber(string) {\n var result = ''; // Using `.split('')` here instead of normal `for ... of`\n // because the importing application doesn't neccessarily include an ES6 polyfill.\n // The `.split('')` approach discards \"exotic\" UTF-8 characters\n // (the ones consisting of four bytes) but digits\n // (including non-European ones) don't fall into that range\n // so such \"exotic\" characters would be discarded anyway.\n\n for (var _iterator = _createForOfIteratorHelperLoose(string.split('')), _step; !(_step = _iterator()).done;) {\n var character = _step.value;\n result += parsePhoneNumberCharacter(character, result) || '';\n }\n\n return result;\n}\n/**\r\n * Parses next character while parsing phone number digits (including a `+`)\r\n * from text: discards everything except `+` and digits, and `+` is only allowed\r\n * at the start of a phone number.\r\n * For example, is used in `react-phone-number-input` where it uses\r\n * [`input-format`](https://gitlab.com/catamphetamine/input-format).\r\n * @param {string} character - Yet another character from raw input string.\r\n * @param {string?} prevParsedCharacters - Previous parsed characters.\r\n * @param {function?} emitEvent - An optional \"emit event\" function.\r\n * @return {string?} The parsed character.\r\n */\n\nexport function parsePhoneNumberCharacter(character, prevParsedCharacters, emitEvent) {\n // Only allow a leading `+`.\n if (character === '+') {\n // If this `+` is not the first parsed character\n // then discard it.\n if (prevParsedCharacters) {\n // `emitEvent` argument was added to this `export`ed function on Dec 26th, 2023.\n // Any 3rd-party code that used to `import` and call this function before that\n // won't be passing any `emitEvent` argument.\n //\n // The addition of the `emitEvent` argument was to fix the slightly-weird behavior\n // of parsing an input string when the user inputs something like `\"2+7\"\n // https://github.com/catamphetamine/react-phone-number-input/issues/437\n //\n // If the parser encounters an unexpected `+` in a string being parsed\n // then it simply discards that out-of-place `+` and any following characters.\n //\n if (typeof emitEvent === 'function') {\n emitEvent('end');\n }\n\n return;\n }\n\n return '+';\n } // Allow digits.\n\n\n return parseDigit(character);\n}\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n/**\r\n * Merges two arrays.\r\n * @param {*} a\r\n * @param {*} b\r\n * @return {*}\r\n */\nexport default function mergeArrays(a, b) {\n var merged = a.slice();\n\n for (var _iterator = _createForOfIteratorHelperLoose(b), _step; !(_step = _iterator()).done;) {\n var element = _step.value;\n\n if (a.indexOf(element) < 0) {\n merged.push(element);\n }\n }\n\n return merged.sort(function (a, b) {\n return a - b;\n }); // ES6 version, requires Set polyfill.\n // let merged = new Set(a)\n // for (const element of b) {\n // \tmerged.add(i)\n // }\n // return Array.from(merged).sort((a, b) => a - b)\n}\n","import mergeArrays from './mergeArrays.js';\nexport default function checkNumberLength(nationalNumber, metadata) {\n return checkNumberLengthForType(nationalNumber, undefined, metadata);\n} // Checks whether a number is possible for the country based on its length.\n// Should only be called for the \"new\" metadata which has \"possible lengths\".\n\nexport function checkNumberLengthForType(nationalNumber, type, metadata) {\n var type_info = metadata.type(type); // There should always be \"<possiblePengths/>\" set for every type element.\n // This is declared in the XML schema.\n // For size efficiency, where a sub-description (e.g. fixed-line)\n // has the same \"<possiblePengths/>\" as the \"general description\", this is missing,\n // so we fall back to the \"general description\". Where no numbers of the type\n // exist at all, there is one possible length (-1) which is guaranteed\n // not to match the length of any real phone number.\n\n var possible_lengths = type_info && type_info.possibleLengths() || metadata.possibleLengths(); // let local_lengths = type_info && type.possibleLengthsLocal() || metadata.possibleLengthsLocal()\n // Metadata before version `1.0.18` didn't contain `possible_lengths`.\n\n if (!possible_lengths) {\n return 'IS_POSSIBLE';\n }\n\n if (type === 'FIXED_LINE_OR_MOBILE') {\n // No such country in metadata.\n\n /* istanbul ignore next */\n if (!metadata.type('FIXED_LINE')) {\n // The rare case has been encountered where no fixedLine data is available\n // (true for some non-geographic entities), so we just check mobile.\n return checkNumberLengthForType(nationalNumber, 'MOBILE', metadata);\n }\n\n var mobile_type = metadata.type('MOBILE');\n\n if (mobile_type) {\n // Merge the mobile data in if there was any. \"Concat\" creates a new\n // array, it doesn't edit possible_lengths in place, so we don't need a copy.\n // Note that when adding the possible lengths from mobile, we have\n // to again check they aren't empty since if they are this indicates\n // they are the same as the general desc and should be obtained from there.\n possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths()); // The current list is sorted; we need to merge in the new list and\n // re-sort (duplicates are okay). Sorting isn't so expensive because\n // the lists are very small.\n // if (local_lengths) {\n // \tlocal_lengths = mergeArrays(local_lengths, mobile_type.possibleLengthsLocal())\n // } else {\n // \tlocal_lengths = mobile_type.possibleLengthsLocal()\n // }\n }\n } // If the type doesn't exist then return 'INVALID_LENGTH'.\n else if (type && !type_info) {\n return 'INVALID_LENGTH';\n }\n\n var actual_length = nationalNumber.length; // In `libphonenumber-js` all \"local-only\" formats are dropped for simplicity.\n // // This is safe because there is never an overlap beween the possible lengths\n // // and the local-only lengths; this is checked at build time.\n // if (local_lengths && local_lengths.indexOf(nationalNumber.length) >= 0)\n // {\n // \treturn 'IS_POSSIBLE_LOCAL_ONLY'\n // }\n\n var minimum_length = possible_lengths[0];\n\n if (minimum_length === actual_length) {\n return 'IS_POSSIBLE';\n }\n\n if (minimum_length > actual_length) {\n return 'TOO_SHORT';\n }\n\n if (possible_lengths[possible_lengths.length - 1] < actual_length) {\n return 'TOO_LONG';\n } // We skip the first element since we've already checked it.\n\n\n return possible_lengths.indexOf(actual_length, 1) >= 0 ? 'IS_POSSIBLE' : 'INVALID_LENGTH';\n}\n","import Metadata from './metadata.js';\nimport checkNumberLength from './helpers/checkNumberLength.js';\n/**\r\n * Checks if a phone number is \"possible\" (basically just checks its length).\r\n *\r\n * isPossible(phoneNumberInstance, { ..., v2: true }, metadata)\r\n *\r\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\r\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\r\n *\r\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {string}\r\n */\n\nexport default function isPossiblePhoneNumber(input, options, metadata) {\n /* istanbul ignore if */\n if (options === undefined) {\n options = {};\n }\n\n metadata = new Metadata(metadata);\n\n if (options.v2) {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n\n metadata.selectNumberingPlan(input.countryCallingCode);\n } else {\n if (!input.phone) {\n return false;\n }\n\n if (input.country) {\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n\n metadata.country(input.country);\n } else {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n\n metadata.selectNumberingPlan(input.countryCallingCode);\n }\n } // Old metadata (< 1.0.18) had no \"possible length\" data.\n\n\n if (metadata.possibleLengths()) {\n return isPossibleNumber(input.phone || input.nationalNumber, metadata);\n } else {\n // There was a bug between `1.7.35` and `1.7.37` where \"possible_lengths\"\n // were missing for \"non-geographical\" numbering plans.\n // Just assume the number is possible in such cases:\n // it's unlikely that anyone generated their custom metadata\n // in that short period of time (one day).\n // This code can be removed in some future major version update.\n if (input.countryCallingCode && metadata.isNonGeographicCallingCode(input.countryCallingCode)) {\n // \"Non-geographic entities\" did't have `possibleLengths`\n // due to a bug in metadata generation process.\n return true;\n } else {\n throw new Error('Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.');\n }\n }\n}\nexport function isPossibleNumber(nationalNumber, metadata) {\n //, isInternational) {\n switch (checkNumberLength(nationalNumber, metadata)) {\n case 'IS_POSSIBLE':\n return true;\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n // \treturn !isInternational\n\n default:\n return false;\n }\n}\n","import Metadata from '../metadata.js';\n/**\r\n * Returns a list of countries that the phone number could potentially belong to.\r\n * @param {string} callingCode — Calling code.\r\n * @param {string} nationalNumber — National (significant) number.\r\n * @param {object} metadata — Metadata.\r\n * @return {string[]} A list of possible countries.\r\n */\n\nexport default function getPossibleCountriesForNumber(callingCode, nationalNumber, metadata) {\n var _metadata = new Metadata(metadata);\n\n var possibleCountries = _metadata.getCountryCodesForCallingCode(callingCode);\n\n if (!possibleCountries) {\n return [];\n }\n\n return possibleCountries.filter(function (country) {\n return couldNationalNumberBelongToCountry(nationalNumber, country, metadata);\n });\n}\n\nfunction couldNationalNumberBelongToCountry(nationalNumber, country, metadata) {\n var _metadata = new Metadata(metadata);\n\n _metadata.selectNumberingPlan(country);\n\n if (_metadata.numberingPlan.possibleLengths().indexOf(nationalNumber.length) >= 0) {\n return true;\n }\n\n return false;\n}\n","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nimport Metadata from './metadata.js';\nimport isPossibleNumber from './isPossible.js';\nimport isValidNumber from './isValid.js'; // import checkNumberLength from './helpers/checkNumberLength.js'\n\nimport getNumberType from './helpers/getNumberType.js';\nimport getPossibleCountriesForNumber from './helpers/getPossibleCountriesForNumber.js';\nimport formatNumber from './format.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\n\nvar PhoneNumber = /*#__PURE__*/function () {\n /**\r\n * @param {string} countryOrCountryCallingCode\r\n * @param {string} nationalNumber\r\n * @param {object} metadata — Metadata JSON\r\n * @return {PhoneNumber}\r\n */\n function PhoneNumber(countryOrCountryCallingCode, nationalNumber, metadata) {\n _classCallCheck(this, PhoneNumber);\n\n if (!countryOrCountryCallingCode) {\n throw new TypeError('`country` or `countryCallingCode` not passed');\n }\n\n if (!nationalNumber) {\n throw new TypeError('`nationalNumber` not passed');\n }\n\n if (!metadata) {\n throw new TypeError('`metadata` not passed');\n }\n\n var _getCountryAndCountry = getCountryAndCountryCallingCode(countryOrCountryCallingCode, metadata),\n country = _getCountryAndCountry.country,\n countryCallingCode = _getCountryAndCountry.countryCallingCode;\n\n this.country = country;\n this.countryCallingCode = countryCallingCode;\n this.nationalNumber = nationalNumber;\n this.number = '+' + this.countryCallingCode + this.nationalNumber; // Exclude `metadata` property output from `PhoneNumber.toString()`\n // so that it doesn't clutter the console output of Node.js.\n // Previously, when Node.js did `console.log(new PhoneNumber(...))`,\n // it would output the whole internal structure of the `metadata` object.\n\n this.getMetadata = function () {\n return metadata;\n };\n }\n\n _createClass(PhoneNumber, [{\n key: \"setExt\",\n value: function setExt(ext) {\n this.ext = ext;\n }\n }, {\n key: \"getPossibleCountries\",\n value: function getPossibleCountries() {\n if (this.country) {\n return [this.country];\n }\n\n return getPossibleCountriesForNumber(this.countryCallingCode, this.nationalNumber, this.getMetadata());\n }\n }, {\n key: \"isPossible\",\n value: function isPossible() {\n return isPossibleNumber(this, {\n v2: true\n }, this.getMetadata());\n }\n }, {\n key: \"isValid\",\n value: function isValid() {\n return isValidNumber(this, {\n v2: true\n }, this.getMetadata());\n }\n }, {\n key: \"isNonGeographic\",\n value: function isNonGeographic() {\n var metadata = new Metadata(this.getMetadata());\n return metadata.isNonGeographicCallingCode(this.countryCallingCode);\n }\n }, {\n key: \"isEqual\",\n value: function isEqual(phoneNumber) {\n return this.number === phoneNumber.number && this.ext === phoneNumber.ext;\n } // This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,\n // but later it was found out that it doesn't include the possible `TOO_SHORT` result\n // returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,\n // so eventually I simply commented out this method from the `PhoneNumber` class\n // and just left the `validatePhoneNumberLength()` function, even though that one would require\n // and additional step to also validate the actual country / calling code of the phone number.\n // validateLength() {\n // \tconst metadata = new Metadata(this.getMetadata())\n // \tmetadata.selectNumberingPlan(this.countryCallingCode)\n // \tconst result = checkNumberLength(this.nationalNumber, metadata)\n // \tif (result !== 'IS_POSSIBLE') {\n // \t\treturn result\n // \t}\n // }\n\n }, {\n key: \"getType\",\n value: function getType() {\n return getNumberType(this, {\n v2: true\n }, this.getMetadata());\n }\n }, {\n key: \"format\",\n value: function format(_format, options) {\n return formatNumber(this, _format, options ? _objectSpread(_objectSpread({}, options), {}, {\n v2: true\n }) : {\n v2: true\n }, this.getMetadata());\n }\n }, {\n key: \"formatNational\",\n value: function formatNational(options) {\n return this.format('NATIONAL', options);\n }\n }, {\n key: \"formatInternational\",\n value: function formatInternational(options) {\n return this.format('INTERNATIONAL', options);\n }\n }, {\n key: \"getURI\",\n value: function getURI(options) {\n return this.format('RFC3966', options);\n }\n }]);\n\n return PhoneNumber;\n}();\n\nexport { PhoneNumber as default };\n\nvar isCountryCode = function isCountryCode(value) {\n return /^[A-Z]{2}$/.test(value);\n};\n\nfunction getCountryAndCountryCallingCode(countryOrCountryCallingCode, metadataJson) {\n var country;\n var countryCallingCode;\n var metadata = new Metadata(metadataJson); // If country code is passed then derive `countryCallingCode` from it.\n // Also store the country code as `.country`.\n\n if (isCountryCode(countryOrCountryCallingCode)) {\n country = countryOrCountryCallingCode;\n metadata.selectNumberingPlan(country);\n countryCallingCode = metadata.countryCallingCode();\n } else {\n countryCallingCode = countryOrCountryCallingCode;\n /* istanbul ignore if */\n\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(countryCallingCode)) {\n country = '001';\n }\n }\n }\n\n return {\n country: country,\n countryCallingCode: countryCallingCode\n };\n}\n","import Metadata from '../metadata.js';\nimport { VALID_DIGITS } from '../constants.js';\nvar CAPTURING_DIGIT_PATTERN = new RegExp('([' + VALID_DIGITS + '])');\nexport default function stripIddPrefix(number, country, callingCode, metadata) {\n if (!country) {\n return;\n } // Check if the number is IDD-prefixed.\n\n\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n var IDDPrefixPattern = new RegExp(countryMetadata.IDDPrefix());\n\n if (number.search(IDDPrefixPattern) !== 0) {\n return;\n } // Strip IDD prefix.\n\n\n number = number.slice(number.match(IDDPrefixPattern)[0].length); // If there're any digits after an IDD prefix,\n // then those digits are a country calling code.\n // Since no country code starts with a `0`,\n // the code below validates that the next digit (if present) is not `0`.\n\n var matchedGroups = number.match(CAPTURING_DIGIT_PATTERN);\n\n if (matchedGroups && matchedGroups[1] != null && matchedGroups[1].length > 0) {\n if (matchedGroups[1] === '0') {\n return;\n }\n }\n\n return number;\n}\n","import extractNationalNumberFromPossiblyIncompleteNumber from './extractNationalNumberFromPossiblyIncompleteNumber.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport checkNumberLength from './checkNumberLength.js';\n/**\r\n * Strips national prefix and carrier code from a complete phone number.\r\n * The difference from the non-\"FromCompleteNumber\" function is that\r\n * it won't extract national prefix if the resultant number is too short\r\n * to be a complete number for the selected phone numbering plan.\r\n * @param {string} number — Complete phone number digits.\r\n * @param {Metadata} metadata — Metadata with a phone numbering plan selected.\r\n * @return {object} `{ nationalNumber: string, carrierCode: string? }`.\r\n */\n\nexport default function extractNationalNumber(number, metadata) {\n // Parsing national prefixes and carrier codes\n // is only required for local phone numbers\n // but some people don't understand that\n // and sometimes write international phone numbers\n // with national prefixes (or maybe even carrier codes).\n // http://ucken.blogspot.ru/2016/03/trunk-prefixes-in-skype4b.html\n // Google's original library forgives such mistakes\n // and so does this library, because it has been requested:\n // https://github.com/catamphetamine/libphonenumber-js/issues/127\n var _extractNationalNumbe = extractNationalNumberFromPossiblyIncompleteNumber(number, metadata),\n carrierCode = _extractNationalNumbe.carrierCode,\n nationalNumber = _extractNationalNumbe.nationalNumber;\n\n if (nationalNumber !== number) {\n if (!shouldHaveExtractedNationalPrefix(number, nationalNumber, metadata)) {\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n } // Check the national (significant) number length after extracting national prefix and carrier code.\n // Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature.\n\n\n if (metadata.possibleLengths()) {\n // The number remaining after stripping the national prefix and carrier code\n // should be long enough to have a possible length for the country.\n // Otherwise, don't strip the national prefix and carrier code,\n // since the original number could be a valid number.\n // This check has been copy-pasted \"as is\" from Google's original library:\n // https://github.com/google/libphonenumber/blob/876268eb1ad6cdc1b7b5bef17fc5e43052702d57/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L3236-L3250\n // It doesn't check for the \"possibility\" of the original `number`.\n // I guess it's fine not checking that one. It works as is anyway.\n if (!isPossibleIncompleteNationalNumber(nationalNumber, metadata)) {\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n }\n }\n }\n\n return {\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n} // In some countries, the same digit could be a national prefix\n// or a leading digit of a valid phone number.\n// For example, in Russia, national prefix is `8`,\n// and also `800 555 35 35` is a valid number\n// in which `8` is not a national prefix, but the first digit\n// of a national (significant) number.\n// Same's with Belarus:\n// `82004910060` is a valid national (significant) number,\n// but `2004910060` is not.\n// To support such cases (to prevent the code from always stripping\n// national prefix), a condition is imposed: a national prefix\n// is not extracted when the original number is \"viable\" and the\n// resultant number is not, a \"viable\" national number being the one\n// that matches `national_number_pattern`.\n\nfunction shouldHaveExtractedNationalPrefix(nationalNumberBefore, nationalNumberAfter, metadata) {\n // The equivalent in Google's code is:\n // https://github.com/google/libphonenumber/blob/e326fa1fc4283bb05eb35cb3c15c18f98a31af33/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L2969-L3004\n if (matchesEntirely(nationalNumberBefore, metadata.nationalNumberPattern()) && !matchesEntirely(nationalNumberAfter, metadata.nationalNumberPattern())) {\n return false;\n } // This \"is possible\" national number (length) check has been commented out\n // because it's superceded by the (effectively) same check done in the\n // `extractNationalNumber()` function after it calls `shouldHaveExtractedNationalPrefix()`.\n // In other words, why run the same check twice if it could only be run once.\n // // Check the national (significant) number length after extracting national prefix and carrier code.\n // // Fixes a minor \"weird behavior\" bug: https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/57\n // // (Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature).\n // if (metadata.possibleLengths()) {\n // \tif (isPossibleIncompleteNationalNumber(nationalNumberBefore, metadata) &&\n // \t\t!isPossibleIncompleteNationalNumber(nationalNumberAfter, metadata)) {\n // \t\treturn false\n // \t}\n // }\n\n\n return true;\n}\n\nfunction isPossibleIncompleteNationalNumber(nationalNumber, metadata) {\n switch (checkNumberLength(nationalNumber, metadata)) {\n case 'TOO_SHORT':\n case 'INVALID_LENGTH':\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n return false;\n\n default:\n return true;\n }\n}\n","/**\r\n * Strips any national prefix (such as 0, 1) present in a\r\n * (possibly incomplete) number provided.\r\n * \"Carrier codes\" are only used in Colombia and Brazil,\r\n * and only when dialing within those countries from a mobile phone to a fixed line number.\r\n * Sometimes it won't actually strip national prefix\r\n * and will instead prepend some digits to the `number`:\r\n * for example, when number `2345678` is passed with `VI` country selected,\r\n * it will return `{ number: \"3402345678\" }`, because `340` area code is prepended.\r\n * @param {string} number — National number digits.\r\n * @param {object} metadata — Metadata with country selected.\r\n * @return {object} `{ nationalNumber: string, nationalPrefix: string? carrierCode: string? }`. Even if a national prefix was extracted, it's not necessarily present in the returned object, so don't rely on its presence in the returned object in order to find out whether a national prefix has been extracted or not.\r\n */\nexport default function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {\n if (number && metadata.numberingPlan.nationalPrefixForParsing()) {\n // See METADATA.md for the description of\n // `national_prefix_for_parsing` and `national_prefix_transform_rule`.\n // Attempt to parse the first digits as a national prefix.\n var prefixPattern = new RegExp('^(?:' + metadata.numberingPlan.nationalPrefixForParsing() + ')');\n var prefixMatch = prefixPattern.exec(number);\n\n if (prefixMatch) {\n var nationalNumber;\n var carrierCode; // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n // If a `national_prefix_for_parsing` has any \"capturing groups\"\n // then it means that the national (significant) number is equal to\n // those \"capturing groups\" transformed via `national_prefix_transform_rule`,\n // and nothing could be said about the actual national prefix:\n // what is it and was it even there.\n // If a `national_prefix_for_parsing` doesn't have any \"capturing groups\",\n // then everything it matches is a national prefix.\n // To determine whether `national_prefix_for_parsing` matched any\n // \"capturing groups\", the value of the result of calling `.exec()`\n // is looked at, and if it has non-undefined values where there're\n // \"capturing groups\" in the regular expression, then it means\n // that \"capturing groups\" have been matched.\n // It's not possible to tell whether there'll be any \"capturing gropus\"\n // before the matching process, because a `national_prefix_for_parsing`\n // could exhibit both behaviors.\n\n var capturedGroupsCount = prefixMatch.length - 1;\n var hasCapturedGroups = capturedGroupsCount > 0 && prefixMatch[capturedGroupsCount];\n\n if (metadata.nationalPrefixTransformRule() && hasCapturedGroups) {\n nationalNumber = number.replace(prefixPattern, metadata.nationalPrefixTransformRule()); // If there's more than one captured group,\n // then carrier code is the second one.\n\n if (capturedGroupsCount > 1) {\n carrierCode = prefixMatch[1];\n }\n } // If there're no \"capturing groups\",\n // or if there're \"capturing groups\" but no\n // `national_prefix_transform_rule`,\n // then just strip the national prefix from the number,\n // and possibly a carrier code.\n // Seems like there could be more.\n else {\n // `prefixBeforeNationalNumber` is the whole substring matched by\n // the `national_prefix_for_parsing` regular expression.\n // There seem to be no guarantees that it's just a national prefix.\n // For example, if there's a carrier code, it's gonna be a\n // part of `prefixBeforeNationalNumber` too.\n var prefixBeforeNationalNumber = prefixMatch[0];\n nationalNumber = number.slice(prefixBeforeNationalNumber.length); // If there's at least one captured group,\n // then carrier code is the first one.\n\n if (hasCapturedGroups) {\n carrierCode = prefixMatch[1];\n }\n } // Tries to guess whether a national prefix was present in the input.\n // This is not something copy-pasted from Google's library:\n // they don't seem to have an equivalent for that.\n // So this isn't an \"officially approved\" way of doing something like that.\n // But since there seems no other existing method, this library uses it.\n\n\n var nationalPrefix;\n\n if (hasCapturedGroups) {\n var possiblePositionOfTheFirstCapturedGroup = number.indexOf(prefixMatch[1]);\n var possibleNationalPrefix = number.slice(0, possiblePositionOfTheFirstCapturedGroup); // Example: an Argentinian (AR) phone number `0111523456789`.\n // `prefixMatch[0]` is `01115`, and `$1` is `11`,\n // and the rest of the phone number is `23456789`.\n // The national number is transformed via `9$1` to `91123456789`.\n // National prefix `0` is detected being present at the start.\n // if (possibleNationalPrefix.indexOf(metadata.numberingPlan.nationalPrefix()) === 0) {\n\n if (possibleNationalPrefix === metadata.numberingPlan.nationalPrefix()) {\n nationalPrefix = metadata.numberingPlan.nationalPrefix();\n }\n } else {\n nationalPrefix = prefixMatch[0];\n }\n\n return {\n nationalNumber: nationalNumber,\n nationalPrefix: nationalPrefix,\n carrierCode: carrierCode\n };\n }\n }\n\n return {\n nationalNumber: number\n };\n}\n","import stripIddPrefix from './stripIddPrefix.js';\nimport extractCountryCallingCodeFromInternationalNumberWithoutPlusSign from './extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js';\nimport Metadata from '../metadata.js';\nimport { MAX_LENGTH_COUNTRY_CODE } from '../constants.js';\n/**\r\n * Converts a phone number digits (possibly with a `+`)\r\n * into a calling code and the rest phone number digits.\r\n * The \"rest phone number digits\" could include\r\n * a national prefix, carrier code, and national\r\n * (significant) number.\r\n * @param {string} number — Phone number digits (possibly with a `+`).\r\n * @param {string} [country] — Default country.\r\n * @param {string} [callingCode] — Default calling code (some phone numbering plans are non-geographic).\r\n * @param {object} metadata\r\n * @return {object} `{ countryCallingCodeSource: string?, countryCallingCode: string?, number: string }`\r\n * @example\r\n * // Returns `{ countryCallingCode: \"1\", number: \"2133734253\" }`.\r\n * extractCountryCallingCode('2133734253', 'US', null, metadata)\r\n * extractCountryCallingCode('2133734253', null, '1', metadata)\r\n * extractCountryCallingCode('+12133734253', null, null, metadata)\r\n * extractCountryCallingCode('+12133734253', 'RU', null, metadata)\r\n */\n\nexport default function extractCountryCallingCode(number, country, callingCode, metadata) {\n if (!number) {\n return {};\n }\n\n var isNumberWithIddPrefix; // If this is not an international phone number,\n // then either extract an \"IDD\" prefix, or extract a\n // country calling code from a number by autocorrecting it\n // by prepending a leading `+` in cases when it starts\n // with the country calling code.\n // https://wikitravel.org/en/International_dialling_prefix\n // https://github.com/catamphetamine/libphonenumber-js/issues/376\n\n if (number[0] !== '+') {\n // Convert an \"out-of-country\" dialing phone number\n // to a proper international phone number.\n var numberWithoutIDD = stripIddPrefix(number, country, callingCode, metadata); // If an IDD prefix was stripped then\n // convert the number to international one\n // for subsequent parsing.\n\n if (numberWithoutIDD && numberWithoutIDD !== number) {\n isNumberWithIddPrefix = true;\n number = '+' + numberWithoutIDD;\n } else {\n // Check to see if the number starts with the country calling code\n // for the default country. If so, we remove the country calling code,\n // and do some checks on the validity of the number before and after.\n // https://github.com/catamphetamine/libphonenumber-js/issues/376\n if (country || callingCode) {\n var _extractCountryCallin = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, callingCode, metadata),\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n shorterNumber = _extractCountryCallin.number;\n\n if (countryCallingCode) {\n return {\n countryCallingCodeSource: 'FROM_NUMBER_WITHOUT_PLUS_SIGN',\n countryCallingCode: countryCallingCode,\n number: shorterNumber\n };\n }\n }\n\n return {\n // No need to set it to `UNSPECIFIED`. It can be just `undefined`.\n // countryCallingCodeSource: 'UNSPECIFIED',\n number: number\n };\n }\n } // Fast abortion: country codes do not begin with a '0'\n\n\n if (number[1] === '0') {\n return {};\n }\n\n metadata = new Metadata(metadata); // The thing with country phone codes\n // is that they are orthogonal to each other\n // i.e. there's no such country phone code A\n // for which country phone code B exists\n // where B starts with A.\n // Therefore, while scanning digits,\n // if a valid country code is found,\n // that means that it is the country code.\n //\n\n var i = 2;\n\n while (i - 1 <= MAX_LENGTH_COUNTRY_CODE && i <= number.length) {\n var _countryCallingCode = number.slice(1, i);\n\n if (metadata.hasCallingCode(_countryCallingCode)) {\n metadata.selectNumberingPlan(_countryCallingCode);\n return {\n countryCallingCodeSource: isNumberWithIddPrefix ? 'FROM_NUMBER_WITH_IDD' : 'FROM_NUMBER_WITH_PLUS_SIGN',\n countryCallingCode: _countryCallingCode,\n number: number.slice(i)\n };\n }\n\n i++;\n }\n\n return {};\n} // The possible values for the returned `countryCallingCodeSource` are:\n//\n// Copy-pasted from:\n// https://github.com/google/libphonenumber/blob/master/resources/phonenumber.proto\n//\n// // The source from which the country_code is derived. This is not set in the\n// // general parsing method, but in the method that parses and keeps raw_input.\n// // New fields could be added upon request.\n// enum CountryCodeSource {\n// // Default value returned if this is not set, because the phone number was\n// // created using parse, not parseAndKeepRawInput. hasCountryCodeSource will\n// // return false if this is the case.\n// UNSPECIFIED = 0;\n//\n// // The country_code is derived based on a phone number with a leading \"+\",\n// // e.g. the French number \"+33 1 42 68 53 00\".\n// FROM_NUMBER_WITH_PLUS_SIGN = 1;\n//\n// // The country_code is derived based on a phone number with a leading IDD,\n// // e.g. the French number \"011 33 1 42 68 53 00\", as it is dialled from US.\n// FROM_NUMBER_WITH_IDD = 5;\n//\n// // The country_code is derived based on a phone number without a leading\n// // \"+\", e.g. the French number \"33 1 42 68 53 00\" when defaultCountry is\n// // supplied as France.\n// FROM_NUMBER_WITHOUT_PLUS_SIGN = 10;\n//\n// // The country_code is derived NOT based on the phone number itself, but\n// // from the defaultCountry parameter provided in the parsing function by the\n// // clients. This happens mostly for numbers written in the national format\n// // (without country code). For example, this would be set when parsing the\n// // French number \"01 42 68 53 00\", when defaultCountry is supplied as\n// // France.\n// FROM_DEFAULT_COUNTRY = 20;\n// }\n","import Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport extractNationalNumber from './extractNationalNumber.js';\nimport checkNumberLength from './checkNumberLength.js';\nimport getCountryCallingCode from '../getCountryCallingCode.js';\n/**\r\n * Sometimes some people incorrectly input international phone numbers\r\n * without the leading `+`. This function corrects such input.\r\n * @param {string} number — Phone number digits.\r\n * @param {string?} country\r\n * @param {string?} callingCode\r\n * @param {object} metadata\r\n * @return {object} `{ countryCallingCode: string?, number: string }`.\r\n */\n\nexport default function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, callingCode, metadata) {\n var countryCallingCode = country ? getCountryCallingCode(country, metadata) : callingCode;\n\n if (number.indexOf(countryCallingCode) === 0) {\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(country, callingCode);\n var possibleShorterNumber = number.slice(countryCallingCode.length);\n\n var _extractNationalNumbe = extractNationalNumber(possibleShorterNumber, metadata),\n possibleShorterNationalNumber = _extractNationalNumbe.nationalNumber;\n\n var _extractNationalNumbe2 = extractNationalNumber(number, metadata),\n nationalNumber = _extractNationalNumbe2.nationalNumber; // If the number was not valid before but is valid now,\n // or if it was too long before, we consider the number\n // with the country calling code stripped to be a better result\n // and keep that instead.\n // For example, in Germany (+49), `49` is a valid area code,\n // so if a number starts with `49`, it could be both a valid\n // national German number or an international number without\n // a leading `+`.\n\n\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata.nationalNumberPattern()) || checkNumberLength(nationalNumber, metadata) === 'TOO_LONG') {\n return {\n countryCallingCode: countryCallingCode,\n number: possibleShorterNumber\n };\n }\n }\n\n return {\n number: number\n };\n}\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nimport Metadata from '../metadata.js';\nimport getNumberType from './getNumberType.js';\nexport default function getCountryByNationalNumber(nationalPhoneNumber, _ref) {\n var countries = _ref.countries,\n defaultCountry = _ref.defaultCountry,\n metadata = _ref.metadata;\n // Re-create `metadata` because it will be selecting a `country`.\n metadata = new Metadata(metadata);\n var matchingCountries = [];\n\n for (var _iterator = _createForOfIteratorHelperLoose(countries), _step; !(_step = _iterator()).done;) {\n var country = _step.value;\n metadata.country(country); // \"Leading digits\" patterns are only defined for about 20% of all countries.\n // By definition, matching \"leading digits\" is a sufficient but not a necessary\n // condition for a phone number to belong to a country.\n // The point of \"leading digits\" check is that it's the fastest one to get a match.\n // https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md#leading_digits\n // I'd suppose that \"leading digits\" patterns are mutually exclusive for different countries\n // because of the intended use of that feature.\n\n if (metadata.leadingDigits()) {\n if (nationalPhoneNumber && nationalPhoneNumber.search(metadata.leadingDigits()) === 0) {\n return country;\n }\n } // Else perform full validation with all of those\n // fixed-line/mobile/etc regular expressions.\n else if (getNumberType({\n phone: nationalPhoneNumber,\n country: country\n }, undefined, metadata.metadata)) {\n // If the `defaultCountry` is among the `matchingCountries` then return it.\n if (defaultCountry) {\n if (country === defaultCountry) {\n return country;\n }\n\n matchingCountries.push(country);\n } else {\n return country;\n }\n }\n } // Return the first (\"main\") one of the `matchingCountries`.\n\n\n if (matchingCountries.length > 0) {\n return matchingCountries[0];\n }\n}\n","import getCountryByNationalNumber from './getCountryByNationalNumber.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\nexport default function getCountryByCallingCode(callingCode, _ref) {\n var nationalPhoneNumber = _ref.nationalNumber,\n defaultCountry = _ref.defaultCountry,\n metadata = _ref.metadata;\n\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(callingCode)) {\n return '001';\n }\n }\n\n var possibleCountries = metadata.getCountryCodesForCallingCode(callingCode);\n\n if (!possibleCountries) {\n return;\n } // If there's just one country corresponding to the country code,\n // then just return it, without further phone number digits validation.\n\n\n if (possibleCountries.length === 1) {\n return possibleCountries[0];\n }\n\n return getCountryByNationalNumber(nationalPhoneNumber, {\n countries: possibleCountries,\n defaultCountry: defaultCountry,\n metadata: metadata.metadata\n });\n}\n","// When phone numbers are written in `RFC3966` format — `\"tel:+12133734253\"` —\n// they can have their \"calling code\" part written separately in a `phone-context` parameter.\n// Example: `\"tel:12133734253;phone-context=+1\"`.\n// This function parses the full phone number from the local number and the `phone-context`\n// when the `phone-context` contains a `+` sign.\nimport { VALID_DIGITS // PLUS_CHARS\n} from '../constants.js';\nexport var PLUS_SIGN = '+';\nvar RFC3966_VISUAL_SEPARATOR_ = '[\\\\-\\\\.\\\\(\\\\)]?';\nvar RFC3966_PHONE_DIGIT_ = '(' + '[' + VALID_DIGITS + ']' + '|' + RFC3966_VISUAL_SEPARATOR_ + ')';\nvar RFC3966_GLOBAL_NUMBER_DIGITS_ = '^' + '\\\\' + PLUS_SIGN + RFC3966_PHONE_DIGIT_ + '*' + '[' + VALID_DIGITS + ']' + RFC3966_PHONE_DIGIT_ + '*' + '$';\n/**\r\n * Regular expression of valid global-number-digits for the phone-context\r\n * parameter, following the syntax defined in RFC3966.\r\n */\n\nvar RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_ = new RegExp(RFC3966_GLOBAL_NUMBER_DIGITS_, 'g'); // In this port of Google's library, we don't accept alpha characters in phone numbers.\n// const ALPHANUM_ = VALID_ALPHA_ + VALID_DIGITS\n\nvar ALPHANUM_ = VALID_DIGITS;\nvar RFC3966_DOMAINLABEL_ = '[' + ALPHANUM_ + ']+((\\\\-)*[' + ALPHANUM_ + '])*';\nvar VALID_ALPHA_ = 'a-zA-Z';\nvar RFC3966_TOPLABEL_ = '[' + VALID_ALPHA_ + ']+((\\\\-)*[' + ALPHANUM_ + '])*';\nvar RFC3966_DOMAINNAME_ = '^(' + RFC3966_DOMAINLABEL_ + '\\\\.)*' + RFC3966_TOPLABEL_ + '\\\\.?$';\n/**\r\n * Regular expression of valid domainname for the phone-context parameter,\r\n * following the syntax defined in RFC3966.\r\n */\n\nvar RFC3966_DOMAINNAME_PATTERN_ = new RegExp(RFC3966_DOMAINNAME_, 'g');\nexport var RFC3966_PREFIX_ = 'tel:';\nexport var RFC3966_PHONE_CONTEXT_ = ';phone-context=';\nexport var RFC3966_ISDN_SUBADDRESS_ = ';isub=';\n/**\r\n * Extracts the value of the phone-context parameter of `numberToExtractFrom`,\r\n * following the syntax defined in RFC3966.\r\n *\r\n * @param {string} numberToExtractFrom\r\n * @return {string|null} the extracted string (possibly empty), or `null` if no phone-context parameter is found.\r\n */\n\nexport default function extractPhoneContext(numberToExtractFrom) {\n var indexOfPhoneContext = numberToExtractFrom.indexOf(RFC3966_PHONE_CONTEXT_); // If no phone-context parameter is present\n\n if (indexOfPhoneContext < 0) {\n return null;\n }\n\n var phoneContextStart = indexOfPhoneContext + RFC3966_PHONE_CONTEXT_.length; // If phone-context parameter is empty\n\n if (phoneContextStart >= numberToExtractFrom.length) {\n return '';\n }\n\n var phoneContextEnd = numberToExtractFrom.indexOf(';', phoneContextStart); // If phone-context is not the last parameter\n\n if (phoneContextEnd >= 0) {\n return numberToExtractFrom.substring(phoneContextStart, phoneContextEnd);\n } else {\n return numberToExtractFrom.substring(phoneContextStart);\n }\n}\n/**\r\n * Returns whether the value of phoneContext follows the syntax defined in RFC3966.\r\n *\r\n * @param {string|null} phoneContext\r\n * @return {boolean}\r\n */\n\nexport function isPhoneContextValid(phoneContext) {\n if (phoneContext === null) {\n return true;\n }\n\n if (phoneContext.length === 0) {\n return false;\n } // Does phone-context value match pattern of global-number-digits or domainname.\n\n\n return RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(phoneContext) || RFC3966_DOMAINNAME_PATTERN_.test(phoneContext);\n}\n","import extractPhoneContext, { isPhoneContextValid, PLUS_SIGN, RFC3966_PREFIX_, RFC3966_PHONE_CONTEXT_, RFC3966_ISDN_SUBADDRESS_ } from './extractPhoneContext.js';\nimport ParseError from '../ParseError.js';\n/**\r\n * @param {string} numberToParse\r\n * @param {string} nationalNumber\r\n * @return {}\r\n */\n\nexport default function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref) {\n var extractFormattedPhoneNumber = _ref.extractFormattedPhoneNumber;\n var phoneContext = extractPhoneContext(numberToParse);\n\n if (!isPhoneContextValid(phoneContext)) {\n throw new ParseError('NOT_A_NUMBER');\n }\n\n var phoneNumberString;\n\n if (phoneContext === null) {\n // Extract a possible number from the string passed in.\n // (this strips leading characters that could not be the start of a phone number)\n phoneNumberString = extractFormattedPhoneNumber(numberToParse) || '';\n } else {\n phoneNumberString = ''; // If the phone context contains a phone number prefix, we need to capture\n // it, whereas domains will be ignored.\n\n if (phoneContext.charAt(0) === PLUS_SIGN) {\n phoneNumberString += phoneContext;\n } // Now append everything between the \"tel:\" prefix and the phone-context.\n // This should include the national number, an optional extension or\n // isdn-subaddress component. Note we also handle the case when \"tel:\" is\n // missing, as we have seen in some of the phone number inputs.\n // In that case, we append everything from the beginning.\n\n\n var indexOfRfc3966Prefix = numberToParse.indexOf(RFC3966_PREFIX_);\n var indexOfNationalNumber; // RFC 3966 \"tel:\" prefix is preset at this stage because\n // `isPhoneContextValid()` requires it to be present.\n\n /* istanbul ignore else */\n\n if (indexOfRfc3966Prefix >= 0) {\n indexOfNationalNumber = indexOfRfc3966Prefix + RFC3966_PREFIX_.length;\n } else {\n indexOfNationalNumber = 0;\n }\n\n var indexOfPhoneContext = numberToParse.indexOf(RFC3966_PHONE_CONTEXT_);\n phoneNumberString += numberToParse.substring(indexOfNationalNumber, indexOfPhoneContext);\n } // Delete the isdn-subaddress and everything after it if it is present.\n // Note extension won't appear at the same time with isdn-subaddress\n // according to paragraph 5.3 of the RFC3966 spec.\n\n\n var indexOfIsdn = phoneNumberString.indexOf(RFC3966_ISDN_SUBADDRESS_);\n\n if (indexOfIsdn > 0) {\n phoneNumberString = phoneNumberString.substring(0, indexOfIsdn);\n } // If both phone context and isdn-subaddress are absent but other\n // parameters are present, the parameters are left in nationalNumber.\n // This is because we are concerned about deleting content from a potential\n // number string when there is no strong evidence that the number is\n // actually written in RFC3966.\n\n\n if (phoneNumberString !== '') {\n return phoneNumberString;\n }\n}\n","// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\nimport { VALID_DIGITS, PLUS_CHARS, MIN_LENGTH_FOR_NSN, MAX_LENGTH_FOR_NSN } from './constants.js';\nimport ParseError from './ParseError.js';\nimport Metadata from './metadata.js';\nimport isViablePhoneNumber, { isViablePhoneNumberStart } from './helpers/isViablePhoneNumber.js';\nimport extractExtension from './helpers/extension/extractExtension.js';\nimport parseIncompletePhoneNumber from './parseIncompletePhoneNumber.js';\nimport getCountryCallingCode from './getCountryCallingCode.js';\nimport { isPossibleNumber } from './isPossible.js'; // import { parseRFC3966 } from './helpers/RFC3966.js'\n\nimport PhoneNumber from './PhoneNumber.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport extractCountryCallingCode from './helpers/extractCountryCallingCode.js';\nimport extractNationalNumber from './helpers/extractNationalNumber.js';\nimport stripIddPrefix from './helpers/stripIddPrefix.js';\nimport getCountryByCallingCode from './helpers/getCountryByCallingCode.js';\nimport extractFormattedPhoneNumberFromPossibleRfc3966NumberUri from './helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js'; // We don't allow input strings for parsing to be longer than 250 chars.\n// This prevents malicious input from consuming CPU.\n\nvar MAX_INPUT_STRING_LENGTH = 250; // This consists of the plus symbol, digits, and arabic-indic digits.\n\nvar PHONE_NUMBER_START_PATTERN = new RegExp('[' + PLUS_CHARS + VALID_DIGITS + ']'); // Regular expression of trailing characters that we want to remove.\n// A trailing `#` is sometimes used when writing phone numbers with extensions in US.\n// Example: \"+1 (645) 123 1234-910#\" number has extension \"910\".\n\nvar AFTER_PHONE_NUMBER_END_PATTERN = new RegExp('[^' + VALID_DIGITS + '#' + ']+$');\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false; // Examples:\n//\n// ```js\n// parse('8 (800) 555-35-35', 'RU')\n// parse('8 (800) 555-35-35', 'RU', metadata)\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } })\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } }, metadata)\n// parse('+7 800 555 35 35')\n// parse('+7 800 555 35 35', metadata)\n// ```\n//\n\n/**\r\n * Parses a phone number.\r\n *\r\n * parse('123456789', { defaultCountry: 'RU', v2: true }, metadata)\r\n * parse('123456789', { defaultCountry: 'RU' }, metadata)\r\n * parse('123456789', undefined, metadata)\r\n *\r\n * @param {string} input\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {object|PhoneNumber?} If `options.v2: true` flag is passed, it returns a `PhoneNumber?` instance. Otherwise, returns an object of shape `{ phone: '...', country: '...' }` (or just `{}` if no phone number was parsed).\r\n */\n\nexport default function parse(text, options, metadata) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n metadata = new Metadata(metadata); // Validate `defaultCountry`.\n\n if (options.defaultCountry && !metadata.hasCountry(options.defaultCountry)) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n\n throw new Error(\"Unknown country: \".concat(options.defaultCountry));\n } // Parse the phone number.\n\n\n var _parseInput = parseInput(text, options.v2, options.extract),\n formattedPhoneNumber = _parseInput.number,\n ext = _parseInput.ext,\n error = _parseInput.error; // If the phone number is not viable then return nothing.\n\n\n if (!formattedPhoneNumber) {\n if (options.v2) {\n if (error === 'TOO_SHORT') {\n throw new ParseError('TOO_SHORT');\n }\n\n throw new ParseError('NOT_A_NUMBER');\n }\n\n return {};\n }\n\n var _parsePhoneNumber = parsePhoneNumber(formattedPhoneNumber, options.defaultCountry, options.defaultCallingCode, metadata),\n country = _parsePhoneNumber.country,\n nationalNumber = _parsePhoneNumber.nationalNumber,\n countryCallingCode = _parsePhoneNumber.countryCallingCode,\n countryCallingCodeSource = _parsePhoneNumber.countryCallingCodeSource,\n carrierCode = _parsePhoneNumber.carrierCode;\n\n if (!metadata.hasSelectedNumberingPlan()) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n\n return {};\n } // Validate national (significant) number length.\n\n\n if (!nationalNumber || nationalNumber.length < MIN_LENGTH_FOR_NSN) {\n // Won't throw here because the regexp already demands length > 1.\n\n /* istanbul ignore if */\n if (options.v2) {\n throw new ParseError('TOO_SHORT');\n } // Google's demo just throws an error in this case.\n\n\n return {};\n } // Validate national (significant) number length.\n //\n // A sidenote:\n //\n // They say that sometimes national (significant) numbers\n // can be longer than `MAX_LENGTH_FOR_NSN` (e.g. in Germany).\n // https://github.com/googlei18n/libphonenumber/blob/7e1748645552da39c4e1ba731e47969d97bdb539/resources/phonenumber.proto#L36\n // Such numbers will just be discarded.\n //\n\n\n if (nationalNumber.length > MAX_LENGTH_FOR_NSN) {\n if (options.v2) {\n throw new ParseError('TOO_LONG');\n } // Google's demo just throws an error in this case.\n\n\n return {};\n }\n\n if (options.v2) {\n var phoneNumber = new PhoneNumber(countryCallingCode, nationalNumber, metadata.metadata);\n\n if (country) {\n phoneNumber.country = country;\n }\n\n if (carrierCode) {\n phoneNumber.carrierCode = carrierCode;\n }\n\n if (ext) {\n phoneNumber.ext = ext;\n }\n\n phoneNumber.__countryCallingCodeSource = countryCallingCodeSource;\n return phoneNumber;\n } // Check if national phone number pattern matches the number.\n // National number pattern is different for each country,\n // even for those ones which are part of the \"NANPA\" group.\n\n\n var valid = (options.extended ? metadata.hasSelectedNumberingPlan() : country) ? matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) : false;\n\n if (!options.extended) {\n return valid ? result(country, nationalNumber, ext) : {};\n } // isInternational: countryCallingCode !== undefined\n\n\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n carrierCode: carrierCode,\n valid: valid,\n possible: valid ? true : options.extended === true && metadata.possibleLengths() && isPossibleNumber(nationalNumber, metadata) ? true : false,\n phone: nationalNumber,\n ext: ext\n };\n}\n/**\r\n * Extracts a formatted phone number from text.\r\n * Doesn't guarantee that the extracted phone number\r\n * is a valid phone number (for example, doesn't validate its length).\r\n * @param {string} text\r\n * @param {boolean} [extract] — If `false`, then will parse the entire `text` as a phone number.\r\n * @param {boolean} [throwOnError] — By default, it won't throw if the text is too long.\r\n * @return {string}\r\n * @example\r\n * // Returns \"(213) 373-4253\".\r\n * extractFormattedPhoneNumber(\"Call (213) 373-4253 for assistance.\")\r\n */\n\nfunction _extractFormattedPhoneNumber(text, extract, throwOnError) {\n if (!text) {\n return;\n }\n\n if (text.length > MAX_INPUT_STRING_LENGTH) {\n if (throwOnError) {\n throw new ParseError('TOO_LONG');\n }\n\n return;\n }\n\n if (extract === false) {\n return text;\n } // Attempt to extract a possible number from the string passed in\n\n\n var startsAt = text.search(PHONE_NUMBER_START_PATTERN);\n\n if (startsAt < 0) {\n return;\n }\n\n return text // Trim everything to the left of the phone number\n .slice(startsAt) // Remove trailing non-numerical characters\n .replace(AFTER_PHONE_NUMBER_END_PATTERN, '');\n}\n/**\r\n * @param {string} text - Input.\r\n * @param {boolean} v2 - Legacy API functions don't pass `v2: true` flag.\r\n * @param {boolean} [extract] - Whether to extract a phone number from `text`, or attempt to parse the entire text as a phone number.\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\n\n\nfunction parseInput(text, v2, extract) {\n // // Parse RFC 3966 phone number URI.\n // if (text && text.indexOf('tel:') === 0) {\n // \treturn parseRFC3966(text)\n // }\n // let number = extractFormattedPhoneNumber(text, extract, v2)\n var number = extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(text, {\n extractFormattedPhoneNumber: function extractFormattedPhoneNumber(text) {\n return _extractFormattedPhoneNumber(text, extract, v2);\n }\n }); // If the phone number is not viable, then abort.\n\n if (!number) {\n return {};\n }\n\n if (!isViablePhoneNumber(number)) {\n if (isViablePhoneNumberStart(number)) {\n return {\n error: 'TOO_SHORT'\n };\n }\n\n return {};\n } // Attempt to parse extension first, since it doesn't require region-specific\n // data and we want to have the non-normalised number here.\n\n\n var withExtensionStripped = extractExtension(number);\n\n if (withExtensionStripped.ext) {\n return withExtensionStripped;\n }\n\n return {\n number: number\n };\n}\n/**\r\n * Creates `parse()` result object.\r\n */\n\n\nfunction result(country, nationalNumber, ext) {\n var result = {\n country: country,\n phone: nationalNumber\n };\n\n if (ext) {\n result.ext = ext;\n }\n\n return result;\n}\n/**\r\n * Parses a viable phone number.\r\n * @param {string} formattedPhoneNumber — Example: \"(213) 373-4253\".\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {Metadata} metadata\r\n * @return {object} Returns `{ country: string?, countryCallingCode: string?, nationalNumber: string? }`.\r\n */\n\n\nfunction parsePhoneNumber(formattedPhoneNumber, defaultCountry, defaultCallingCode, metadata) {\n // Extract calling code from phone number.\n var _extractCountryCallin = extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber), defaultCountry, defaultCallingCode, metadata.metadata),\n countryCallingCodeSource = _extractCountryCallin.countryCallingCodeSource,\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n number = _extractCountryCallin.number; // Choose a country by `countryCallingCode`.\n\n\n var country;\n\n if (countryCallingCode) {\n metadata.selectNumberingPlan(countryCallingCode);\n } // If `formattedPhoneNumber` is passed in \"national\" format\n // then `number` is defined and `countryCallingCode` is `undefined`.\n else if (number && (defaultCountry || defaultCallingCode)) {\n metadata.selectNumberingPlan(defaultCountry, defaultCallingCode);\n\n if (defaultCountry) {\n country = defaultCountry;\n } else {\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(defaultCallingCode)) {\n country = '001';\n }\n }\n }\n\n countryCallingCode = defaultCallingCode || getCountryCallingCode(defaultCountry, metadata.metadata);\n } else return {};\n\n if (!number) {\n return {\n countryCallingCodeSource: countryCallingCodeSource,\n countryCallingCode: countryCallingCode\n };\n }\n\n var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number), metadata),\n nationalNumber = _extractNationalNumbe.nationalNumber,\n carrierCode = _extractNationalNumbe.carrierCode; // Sometimes there are several countries\n // corresponding to the same country phone code\n // (e.g. NANPA countries all having `1` country phone code).\n // Therefore, to reliably determine the exact country,\n // national (significant) number should have been parsed first.\n //\n // When `metadata.json` is generated, all \"ambiguous\" country phone codes\n // get their countries populated with the full set of\n // \"phone number type\" regular expressions.\n //\n\n\n var exactCountry = getCountryByCallingCode(countryCallingCode, {\n nationalNumber: nationalNumber,\n defaultCountry: defaultCountry,\n metadata: metadata\n });\n\n if (exactCountry) {\n country = exactCountry;\n /* istanbul ignore if */\n\n if (exactCountry === '001') {// Can't happen with `USE_NON_GEOGRAPHIC_COUNTRY_CODE` being `false`.\n // If `USE_NON_GEOGRAPHIC_COUNTRY_CODE` is set to `true` for some reason,\n // then remove the \"istanbul ignore if\".\n } else {\n metadata.country(country);\n }\n }\n\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n countryCallingCodeSource: countryCallingCodeSource,\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport _formatNumber from '../format.js';\nimport parse from '../parse.js';\nimport isObject from '../helpers/isObject.js';\nexport default function formatNumber() {\n var _normalizeArguments = normalizeArguments(arguments),\n input = _normalizeArguments.input,\n format = _normalizeArguments.format,\n options = _normalizeArguments.options,\n metadata = _normalizeArguments.metadata;\n\n return _formatNumber(input, format, options, metadata);\n} // Sort out arguments\n\nfunction normalizeArguments(args) {\n var _Array$prototype$slic = Array.prototype.slice.call(args),\n _Array$prototype$slic2 = _slicedToArray(_Array$prototype$slic, 5),\n arg_1 = _Array$prototype$slic2[0],\n arg_2 = _Array$prototype$slic2[1],\n arg_3 = _Array$prototype$slic2[2],\n arg_4 = _Array$prototype$slic2[3],\n arg_5 = _Array$prototype$slic2[4];\n\n var input;\n var format;\n var options;\n var metadata; // Sort out arguments.\n // If the phone number is passed as a string.\n // `format('8005553535', ...)`.\n\n if (typeof arg_1 === 'string') {\n // If country code is supplied.\n // `format('8005553535', 'RU', 'NATIONAL', [options], metadata)`.\n if (typeof arg_3 === 'string') {\n format = arg_3;\n\n if (arg_5) {\n options = arg_4;\n metadata = arg_5;\n } else {\n metadata = arg_4;\n }\n\n input = parse(arg_1, {\n defaultCountry: arg_2,\n extended: true\n }, metadata);\n } // Just an international phone number is supplied\n // `format('+78005553535', 'NATIONAL', [options], metadata)`.\n else {\n if (typeof arg_2 !== 'string') {\n throw new Error('`format` argument not passed to `formatNumber(number, format)`');\n }\n\n format = arg_2;\n\n if (arg_4) {\n options = arg_3;\n metadata = arg_4;\n } else {\n metadata = arg_3;\n }\n\n input = parse(arg_1, {\n extended: true\n }, metadata);\n }\n } // If the phone number is passed as a parsed number object.\n // `format({ phone: '8005553535', country: 'RU' }, 'NATIONAL', [options], metadata)`.\n else if (isObject(arg_1)) {\n input = arg_1;\n format = arg_2;\n\n if (arg_4) {\n options = arg_3;\n metadata = arg_4;\n } else {\n metadata = arg_3;\n }\n } else throw new TypeError('A phone number must either be a string or an object of shape { phone, [country] }.'); // Legacy lowercase formats.\n\n\n if (format === 'International') {\n format = 'INTERNATIONAL';\n } else if (format === 'National') {\n format = 'NATIONAL';\n }\n\n return {\n input: input,\n format: format,\n options: options,\n metadata: metadata\n };\n}\n","import withMetadataArgument from '../min/exports/withMetadataArgument.js'\r\n\r\nimport _format from '../es6/legacy/format.js'\r\n\r\nexport function format() {\r\n\treturn withMetadataArgument(_format, arguments)\r\n}\r\n","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport isViablePhoneNumber from '../helpers/isViablePhoneNumber.js';\nimport _getNumberType from '../helpers/getNumberType.js';\nimport isObject from '../helpers/isObject.js';\nimport parse from '../parse.js'; // Finds out national phone number type (fixed line, mobile, etc)\n\nexport default function getNumberType() {\n var _normalizeArguments = normalizeArguments(arguments),\n input = _normalizeArguments.input,\n options = _normalizeArguments.options,\n metadata = _normalizeArguments.metadata; // `parseNumber()` would return `{}` when no phone number could be parsed from the input.\n\n\n if (!input.phone) {\n return;\n }\n\n return _getNumberType(input, options, metadata);\n} // Sort out arguments\n\nexport function normalizeArguments(args) {\n var _Array$prototype$slic = Array.prototype.slice.call(args),\n _Array$prototype$slic2 = _slicedToArray(_Array$prototype$slic, 4),\n arg_1 = _Array$prototype$slic2[0],\n arg_2 = _Array$prototype$slic2[1],\n arg_3 = _Array$prototype$slic2[2],\n arg_4 = _Array$prototype$slic2[3];\n\n var input;\n var options = {};\n var metadata; // If the phone number is passed as a string.\n // `getNumberType('88005553535', ...)`.\n\n if (typeof arg_1 === 'string') {\n // If \"default country\" argument is being passed\n // then convert it to an `options` object.\n // `getNumberType('88005553535', 'RU', metadata)`.\n if (!isObject(arg_2)) {\n if (arg_4) {\n options = arg_3;\n metadata = arg_4;\n } else {\n metadata = arg_3;\n } // `parse` extracts phone numbers from raw text,\n // therefore it will cut off all \"garbage\" characters,\n // while this `validate` function needs to verify\n // that the phone number contains no \"garbage\"\n // therefore the explicit `isViablePhoneNumber` check.\n\n\n if (isViablePhoneNumber(arg_1)) {\n input = parse(arg_1, {\n defaultCountry: arg_2\n }, metadata);\n } else {\n input = {};\n }\n } // No \"resrict country\" argument is being passed.\n // International phone number is passed.\n // `getNumberType('+78005553535', metadata)`.\n else {\n if (arg_3) {\n options = arg_2;\n metadata = arg_3;\n } else {\n metadata = arg_2;\n } // `parse` extracts phone numbers from raw text,\n // therefore it will cut off all \"garbage\" characters,\n // while this `validate` function needs to verify\n // that the phone number contains no \"garbage\"\n // therefore the explicit `isViablePhoneNumber` check.\n\n\n if (isViablePhoneNumber(arg_1)) {\n input = parse(arg_1, undefined, metadata);\n } else {\n input = {};\n }\n }\n } // If the phone number is passed as a parsed phone number.\n // `getNumberType({ phone: '88005553535', country: 'RU' }, ...)`.\n else if (isObject(arg_1)) {\n input = arg_1;\n\n if (arg_3) {\n options = arg_2;\n metadata = arg_3;\n } else {\n metadata = arg_2;\n }\n } else throw new TypeError('A phone number must either be a string or an object of shape { phone, [country] }.');\n\n return {\n input: input,\n options: options,\n metadata: metadata\n };\n}\n","import _isValidNumber from '../isValid.js';\nimport { normalizeArguments } from './getNumberType.js'; // Finds out national phone number type (fixed line, mobile, etc)\n\nexport default function isValidNumber() {\n var _normalizeArguments = normalizeArguments(arguments),\n input = _normalizeArguments.input,\n options = _normalizeArguments.options,\n metadata = _normalizeArguments.metadata; // `parseNumber()` would return `{}` when no phone number could be parsed from the input.\n\n\n if (!input.phone) {\n return false;\n }\n\n return _isValidNumber(input, options, metadata);\n}\n","// Deprecated.\r\n\r\nimport withMetadataArgument from '../min/exports/withMetadataArgument.js'\r\n\r\nimport _isValidNumber from '../es6/legacy/isValidNumber.js'\r\n\r\nexport function isValidNumber() {\r\n\treturn withMetadataArgument(_isValidNumber, arguments)\r\n}\r\n","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport isObject from './helpers/isObject.js'; // Extracts the following properties from function arguments:\n// * input `text`\n// * `options` object\n// * `metadata` JSON\n\nexport default function normalizeArguments(args) {\n var _Array$prototype$slic = Array.prototype.slice.call(args),\n _Array$prototype$slic2 = _slicedToArray(_Array$prototype$slic, 4),\n arg_1 = _Array$prototype$slic2[0],\n arg_2 = _Array$prototype$slic2[1],\n arg_3 = _Array$prototype$slic2[2],\n arg_4 = _Array$prototype$slic2[3];\n\n var text;\n var options;\n var metadata; // If the phone number is passed as a string.\n // `parsePhoneNumber('88005553535', ...)`.\n\n if (typeof arg_1 === 'string') {\n text = arg_1;\n } else throw new TypeError('A text for parsing must be a string.'); // If \"default country\" argument is being passed then move it to `options`.\n // `parsePhoneNumber('88005553535', 'RU', [options], metadata)`.\n\n\n if (!arg_2 || typeof arg_2 === 'string') {\n if (arg_4) {\n options = arg_3;\n metadata = arg_4;\n } else {\n options = undefined;\n metadata = arg_3;\n }\n\n if (arg_2) {\n options = _objectSpread({\n defaultCountry: arg_2\n }, options);\n }\n } // `defaultCountry` is not passed.\n // Example: `parsePhoneNumber('+78005553535', [options], metadata)`.\n else if (isObject(arg_2)) {\n if (arg_3) {\n options = arg_2;\n metadata = arg_3;\n } else {\n metadata = arg_2;\n }\n } else throw new Error(\"Invalid second argument: \".concat(arg_2));\n\n return {\n text: text,\n options: options,\n metadata: metadata\n };\n}\n","import _parseNumber from '../parse.js';\nimport normalizeArguments from '../normalizeArguments.js';\nexport default function parseNumber() {\n var _normalizeArguments = normalizeArguments(arguments),\n text = _normalizeArguments.text,\n options = _normalizeArguments.options,\n metadata = _normalizeArguments.metadata;\n\n return _parseNumber(text, options, metadata);\n}\n","import withMetadataArgument from '../min/exports/withMetadataArgument.js'\r\n\r\nimport _parse from '../es6/legacy/parse.js'\r\n\r\nexport function parse() {\r\n\treturn withMetadataArgument(_parse, arguments)\r\n}\r\n","// This file is a workaround for a bug in web browsers' \"native\"\n// ES6 importing system which is uncapable of importing \"*.json\" files.\n// https://github.com/catamphetamine/libphonenumber-js/issues/239\nexport default {\"version\":4,\"country_calling_codes\":{\"1\":[\"US\",\"AG\",\"AI\",\"AS\",\"BB\",\"BM\",\"BS\",\"CA\",\"DM\",\"DO\",\"GD\",\"GU\",\"JM\",\"KN\",\"KY\",\"LC\",\"MP\",\"MS\",\"PR\",\"SX\",\"TC\",\"TT\",\"VC\",\"VG\",\"VI\"],\"7\":[\"RU\",\"KZ\"],\"20\":[\"EG\"],\"27\":[\"ZA\"],\"30\":[\"GR\"],\"31\":[\"NL\"],\"32\":[\"BE\"],\"33\":[\"FR\"],\"34\":[\"ES\"],\"36\":[\"HU\"],\"39\":[\"IT\",\"VA\"],\"40\":[\"RO\"],\"41\":[\"CH\"],\"43\":[\"AT\"],\"44\":[\"GB\",\"GG\",\"IM\",\"JE\"],\"45\":[\"DK\"],\"46\":[\"SE\"],\"47\":[\"NO\",\"SJ\"],\"48\":[\"PL\"],\"49\":[\"DE\"],\"51\":[\"PE\"],\"52\":[\"MX\"],\"53\":[\"CU\"],\"54\":[\"AR\"],\"55\":[\"BR\"],\"56\":[\"CL\"],\"57\":[\"CO\"],\"58\":[\"VE\"],\"60\":[\"MY\"],\"61\":[\"AU\",\"CC\",\"CX\"],\"62\":[\"ID\"],\"63\":[\"PH\"],\"64\":[\"NZ\"],\"65\":[\"SG\"],\"66\":[\"TH\"],\"81\":[\"JP\"],\"82\":[\"KR\"],\"84\":[\"VN\"],\"86\":[\"CN\"],\"90\":[\"TR\"],\"91\":[\"IN\"],\"92\":[\"PK\"],\"93\":[\"AF\"],\"94\":[\"LK\"],\"95\":[\"MM\"],\"98\":[\"IR\"],\"211\":[\"SS\"],\"212\":[\"MA\",\"EH\"],\"213\":[\"DZ\"],\"216\":[\"TN\"],\"218\":[\"LY\"],\"220\":[\"GM\"],\"221\":[\"SN\"],\"222\":[\"MR\"],\"223\":[\"ML\"],\"224\":[\"GN\"],\"225\":[\"CI\"],\"226\":[\"BF\"],\"227\":[\"NE\"],\"228\":[\"TG\"],\"229\":[\"BJ\"],\"230\":[\"MU\"],\"231\":[\"LR\"],\"232\":[\"SL\"],\"233\":[\"GH\"],\"234\":[\"NG\"],\"235\":[\"TD\"],\"236\":[\"CF\"],\"237\":[\"CM\"],\"238\":[\"CV\"],\"239\":[\"ST\"],\"240\":[\"GQ\"],\"241\":[\"GA\"],\"242\":[\"CG\"],\"243\":[\"CD\"],\"244\":[\"AO\"],\"245\":[\"GW\"],\"246\":[\"IO\"],\"247\":[\"AC\"],\"248\":[\"SC\"],\"249\":[\"SD\"],\"250\":[\"RW\"],\"251\":[\"ET\"],\"252\":[\"SO\"],\"253\":[\"DJ\"],\"254\":[\"KE\"],\"255\":[\"TZ\"],\"256\":[\"UG\"],\"257\":[\"BI\"],\"258\":[\"MZ\"],\"260\":[\"ZM\"],\"261\":[\"MG\"],\"262\":[\"RE\",\"YT\"],\"263\":[\"ZW\"],\"264\":[\"NA\"],\"265\":[\"MW\"],\"266\":[\"LS\"],\"267\":[\"BW\"],\"268\":[\"SZ\"],\"269\":[\"KM\"],\"290\":[\"SH\",\"TA\"],\"291\":[\"ER\"],\"297\":[\"AW\"],\"298\":[\"FO\"],\"299\":[\"GL\"],\"350\":[\"GI\"],\"351\":[\"PT\"],\"352\":[\"LU\"],\"353\":[\"IE\"],\"354\":[\"IS\"],\"355\":[\"AL\"],\"356\":[\"MT\"],\"357\":[\"CY\"],\"358\":[\"FI\",\"AX\"],\"359\":[\"BG\"],\"370\":[\"LT\"],\"371\":[\"LV\"],\"372\":[\"EE\"],\"373\":[\"MD\"],\"374\":[\"AM\"],\"375\":[\"BY\"],\"376\":[\"AD\"],\"377\":[\"MC\"],\"378\":[\"SM\"],\"380\":[\"UA\"],\"381\":[\"RS\"],\"382\":[\"ME\"],\"383\":[\"XK\"],\"385\":[\"HR\"],\"386\":[\"SI\"],\"387\":[\"BA\"],\"389\":[\"MK\"],\"420\":[\"CZ\"],\"421\":[\"SK\"],\"423\":[\"LI\"],\"500\":[\"FK\"],\"501\":[\"BZ\"],\"502\":[\"GT\"],\"503\":[\"SV\"],\"504\":[\"HN\"],\"505\":[\"NI\"],\"506\":[\"CR\"],\"507\":[\"PA\"],\"508\":[\"PM\"],\"509\":[\"HT\"],\"590\":[\"GP\",\"BL\",\"MF\"],\"591\":[\"BO\"],\"592\":[\"GY\"],\"593\":[\"EC\"],\"594\":[\"GF\"],\"595\":[\"PY\"],\"596\":[\"MQ\"],\"597\":[\"SR\"],\"598\":[\"UY\"],\"599\":[\"CW\",\"BQ\"],\"670\":[\"TL\"],\"672\":[\"NF\"],\"673\":[\"BN\"],\"674\":[\"NR\"],\"675\":[\"PG\"],\"676\":[\"TO\"],\"677\":[\"SB\"],\"678\":[\"VU\"],\"679\":[\"FJ\"],\"680\":[\"PW\"],\"681\":[\"WF\"],\"682\":[\"CK\"],\"683\":[\"NU\"],\"685\":[\"WS\"],\"686\":[\"KI\"],\"687\":[\"NC\"],\"688\":[\"TV\"],\"689\":[\"PF\"],\"690\":[\"TK\"],\"691\":[\"FM\"],\"692\":[\"MH\"],\"850\":[\"KP\"],\"852\":[\"HK\"],\"853\":[\"MO\"],\"855\":[\"KH\"],\"856\":[\"LA\"],\"880\":[\"BD\"],\"886\":[\"TW\"],\"960\":[\"MV\"],\"961\":[\"LB\"],\"962\":[\"JO\"],\"963\":[\"SY\"],\"964\":[\"IQ\"],\"965\":[\"KW\"],\"966\":[\"SA\"],\"967\":[\"YE\"],\"968\":[\"OM\"],\"970\":[\"PS\"],\"971\":[\"AE\"],\"972\":[\"IL\"],\"973\":[\"BH\"],\"974\":[\"QA\"],\"975\":[\"BT\"],\"976\":[\"MN\"],\"977\":[\"NP\"],\"992\":[\"TJ\"],\"993\":[\"TM\"],\"994\":[\"AZ\"],\"995\":[\"GE\"],\"996\":[\"KG\"],\"998\":[\"UZ\"]},\"countries\":{\"AC\":[\"247\",\"00\",\"(?:[01589]\\\\d|[46])\\\\d{4}\",[5,6]],\"AD\":[\"376\",\"00\",\"(?:1|6\\\\d)\\\\d{7}|[135-9]\\\\d{5}\",[6,8,9],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"[135-9]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"1\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]]]],\"AE\":[\"971\",\"00\",\"(?:[4-7]\\\\d|9[0-689])\\\\d{7}|800\\\\d{2,9}|[2-4679]\\\\d{7}\",[5,6,7,8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{2,9})\",\"$1 $2\",[\"60|8\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[236]|[479][2-8]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{5})\",\"$1 $2 $3\",[\"[479]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"]],\"0\"],\"AF\":[\"93\",\"00\",\"[2-7]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-7]\"],\"0$1\"]],\"0\"],\"AG\":[\"1\",\"011\",\"(?:268|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([457]\\\\d{6})$|1\",\"268$1\",0,\"268\"],\"AI\":[\"1\",\"011\",\"(?:264|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2457]\\\\d{6})$|1\",\"264$1\",0,\"264\"],\"AL\":[\"355\",\"00\",\"(?:700\\\\d\\\\d|900)\\\\d{3}|8\\\\d{5,7}|(?:[2-5]|6\\\\d)\\\\d{7}\",[6,7,8,9],[[\"(\\\\d{3})(\\\\d{3,4})\",\"$1 $2\",[\"80|9\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"4[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2358][2-5]|4\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[23578]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"6\"],\"0$1\"]],\"0\"],\"AM\":[\"374\",\"00\",\"(?:[1-489]\\\\d|55|60|77)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]0\"],\"0 $1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"2|3[12]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"1|47\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[3-9]\"],\"0$1\"]],\"0\"],\"AO\":[\"244\",\"00\",\"[29]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[29]\"]]]],\"AR\":[\"54\",\"00\",\"(?:11|[89]\\\\d\\\\d)\\\\d{8}|[2368]\\\\d{9}\",[10,11],[[\"(\\\\d{4})(\\\\d{2})(\\\\d{4})\",\"$1 $2-$3\",[\"2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])\",\"2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)\",\"2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]\",\"2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]\"],\"0$1\",1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2-$3\",[\"1\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[68]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2-$3\",[\"[23]\"],\"0$1\",1],[\"(\\\\d)(\\\\d{4})(\\\\d{2})(\\\\d{4})\",\"$2 15-$3-$4\",[\"9(?:2[2-469]|3[3-578])\",\"9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))\",\"9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)\",\"9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]\",\"9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]\"],\"0$1\",0,\"$1 $2 $3-$4\"],[\"(\\\\d)(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$2 15-$3-$4\",[\"91\"],\"0$1\",0,\"$1 $2 $3-$4\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1-$2-$3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$2 15-$3-$4\",[\"9\"],\"0$1\",0,\"$1 $2 $3-$4\"]],\"0\",0,\"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?\",\"9$1\"],\"AS\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|684|900)\\\\d{7}\",[10],0,\"1\",0,\"([267]\\\\d{6})$|1\",\"684$1\",0,\"684\"],\"AT\":[\"43\",\"00\",\"1\\\\d{3,12}|2\\\\d{6,12}|43(?:(?:0\\\\d|5[02-9])\\\\d{3,9}|2\\\\d{4,5}|[3467]\\\\d{4}|8\\\\d{4,6}|9\\\\d{4,7})|5\\\\d{4,12}|8\\\\d{7,12}|9\\\\d{8,12}|(?:[367]\\\\d|4[0-24-9])\\\\d{4,11}\",[4,5,6,7,8,9,10,11,12,13],[[\"(\\\\d)(\\\\d{3,12})\",\"$1 $2\",[\"1(?:11|[2-9])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})\",\"$1 $2\",[\"517\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,5})\",\"$1 $2\",[\"5[079]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,10})\",\"$1 $2\",[\"(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3,9})\",\"$1 $2\",[\"[2-467]|5[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4,7})\",\"$1 $2 $3\",[\"5\"],\"0$1\"]],\"0\"],\"AU\":[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{7}(?:\\\\d(?:\\\\d{2})?)?|8[0-24-9]\\\\d{7})|[2-478]\\\\d{8}|1\\\\d{4,7}\",[5,6,7,8,9,10,12],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1 $2\",[\"16\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3\",[\"16\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"14|4\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[2378]\"],\"(0$1)\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1(?:30|[89])\"]]],\"0\",0,\"(183[12])|0\",0,0,0,[[\"(?:(?:(?:2(?:[0-26-9]\\\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\\\d|2[0-8]))\\\\d|3(?:(?:[0-3589]\\\\d|6[1-9]|7[0-35-9])\\\\d|4(?:[0-578]\\\\d|90)))\\\\d\\\\d|8(?:51(?:0(?:0[03-9]|[12479]\\\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\\\d|7[89]|9[0-4])|3\\\\d\\\\d)|(?:6[0-8]|[78]\\\\d)\\\\d{3}|9(?:[02-9]\\\\d{3}|1(?:(?:[0-58]\\\\d|6[0135-9])\\\\d|7(?:0[0-24-9]|[1-9]\\\\d)|9(?:[0-46-9]\\\\d|5[0-79])))))\\\\d{3}\",[9]],[\"4(?:79[01]|83[0-389]|94[0-4])\\\\d{5}|4(?:[0-36]\\\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,[\"163\\\\d{2,6}\",[5,6,7,8,9]],[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],\"AW\":[\"297\",\"00\",\"(?:[25-79]\\\\d\\\\d|800)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[25-9]\"]]]],\"AX\":[\"358\",\"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))\",\"2\\\\d{4,9}|35\\\\d{4,5}|(?:60\\\\d\\\\d|800)\\\\d{4,6}|7\\\\d{5,11}|(?:[14]\\\\d|3[0-46-9]|50)\\\\d{4,8}\",[5,6,7,8,9,10,11,12],0,\"0\",0,0,0,0,\"18\",0,\"00\"],\"AZ\":[\"994\",\"00\",\"365\\\\d{6}|(?:[124579]\\\\d|60|88)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"90\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[28]|2|365|46\",\"1[28]|2|365[45]|46\",\"1[28]|2|365(?:4|5[02])|46\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[13-9]\"],\"0$1\"]],\"0\"],\"BA\":[\"387\",\"00\",\"6\\\\d{8}|(?:[35689]\\\\d|49|70)\\\\d{6}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6[1-3]|[7-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2-$3\",[\"[3-5]|6[56]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"6\"],\"0$1\"]],\"0\"],\"BB\":[\"1\",\"011\",\"(?:246|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"246$1\",0,\"246\"],\"BD\":[\"880\",\"00\",\"[1-469]\\\\d{9}|8[0-79]\\\\d{7,8}|[2-79]\\\\d{8}|[2-9]\\\\d{7}|[3-9]\\\\d{6}|[57-9]\\\\d{5}\",[6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1-$2\",[\"31[5-8]|[459]1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1-$2\",[\"3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3,6})\",\"$1-$2\",[\"[13-9]|2[23]\"],\"0$1\"],[\"(\\\\d)(\\\\d{7,8})\",\"$1-$2\",[\"2\"],\"0$1\"]],\"0\"],\"BE\":[\"32\",\"00\",\"4\\\\d{8}|[1-9]\\\\d{7}\",[8,9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"(?:80|9)0\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[239]|4[23]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[15-8]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"4\"],\"0$1\"]],\"0\"],\"BF\":[\"226\",\"00\",\"[025-7]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[025-7]\"]]]],\"BG\":[\"359\",\"00\",\"00800\\\\d{7}|[2-7]\\\\d{6,7}|[89]\\\\d{6,8}|2\\\\d{5}\",[6,7,8,9,12],[[\"(\\\\d)(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"43[1-6]|70[1-9]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\",\"$1 $2 $3\",[\"[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"(?:70|8)0\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3\",[\"43[1-7]|7\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[48]|9[08]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],\"BH\":[\"973\",\"00\",\"[136-9]\\\\d{7}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[13679]|8[02-4679]\"]]]],\"BI\":[\"257\",\"00\",\"(?:[267]\\\\d|31)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2367]\"]]]],\"BJ\":[\"229\",\"00\",\"[24-689]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[24-689]\"]]]],\"BL\":[\"590\",\"00\",\"590\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],0,\"0\",0,0,0,0,0,[[\"590(?:2[7-9]|3[3-7]|5[12]|87)\\\\d{4}\"],[\"69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\\\d)|6(?:1[016-9]|5[0-4]|[67]\\\\d))\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],0,0,0,0,0,[\"9(?:(?:39[5-7]|76[018])\\\\d|475[0-5])\\\\d{4}\"]]],\"BM\":[\"1\",\"011\",\"(?:441|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"441$1\",0,\"441\"],\"BN\":[\"673\",\"00\",\"[2-578]\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-578]\"]]]],\"BO\":[\"591\",\"00(?:1\\\\d)?\",\"8001\\\\d{5}|(?:[2-467]\\\\d|50)\\\\d{6}\",[8,9],[[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"[235]|4[46]\"]],[\"(\\\\d{8})\",\"$1\",[\"[67]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]],\"0\",0,\"0(1\\\\d)?\"],\"BQ\":[\"599\",\"00\",\"(?:[34]1|7\\\\d)\\\\d{5}\",[7],0,0,0,0,0,0,\"[347]\"],\"BR\":[\"55\",\"00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)\",\"(?:[1-46-9]\\\\d\\\\d|5(?:[0-46-9]\\\\d|5[0-46-9]))\\\\d{8}|[1-9]\\\\d{9}|[3589]\\\\d{8}|[34]\\\\d{7}\",[8,9,10,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"300|4(?:0[02]|37)\",\"4(?:02|37)0|[34]00\"]],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{4})\",\"$1 $2 $3\",[\"(?:[358]|90)0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2-$3\",[\"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]\"],\"($1)\"],[\"(\\\\d{2})(\\\\d{5})(\\\\d{4})\",\"$1 $2-$3\",[\"[16][1-9]|[2-57-9]\"],\"($1)\"]],\"0\",0,\"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\\\d{10,11}))?\",\"$2\"],\"BS\":[\"1\",\"011\",\"(?:242|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([3-8]\\\\d{6})$|1\",\"242$1\",0,\"242\"],\"BT\":[\"975\",\"00\",\"[17]\\\\d{7}|[2-8]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-68]|7[246]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[67]|7\"]]]],\"BW\":[\"267\",\"00\",\"(?:0800|(?:[37]|800)\\\\d)\\\\d{6}|(?:[2-6]\\\\d|90)\\\\d{5}\",[7,8,10],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"90\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[24-6]|3[15-9]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[37]\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],\"BY\":[\"375\",\"810\",\"(?:[12]\\\\d|33|44|902)\\\\d{7}|8(?:0[0-79]\\\\d{5,7}|[1-7]\\\\d{9})|8(?:1[0-489]|[5-79]\\\\d)\\\\d{7}|8[1-79]\\\\d{6,7}|8[0-79]\\\\d{5}|8\\\\d{5}\",[6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"800\"],\"8 $1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,4})\",\"$1 $2 $3\",[\"800\"],\"8 $1\"],[\"(\\\\d{4})(\\\\d{2})(\\\\d{3})\",\"$1 $2-$3\",[\"1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])\",\"1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])\"],\"8 0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"1(?:[56]|7[467])|2[1-3]\"],\"8 0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[1-4]\"],\"8 0$1\"],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"8 $1\"]],\"8\",0,\"0|80?\",0,0,0,0,\"8~10\"],\"BZ\":[\"501\",\"00\",\"(?:0800\\\\d|[2-8])\\\\d{6}\",[7,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[2-8]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1-$2-$3-$4\",[\"0\"]]]],\"CA\":[\"1\",\"011\",\"(?:[2-8]\\\\d|90)\\\\d{8}|3\\\\d{6}\",[7,10],0,\"1\",0,0,0,0,0,[[\"(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\\\d{6}\",[10]],[\"\",[10]],[\"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}\",[10]],[\"900[2-9]\\\\d{6}\",[10]],[\"52(?:3(?:[2-46-9][02-9]\\\\d|5(?:[02-46-9]\\\\d|5[0-46-9]))|4(?:[2-478][02-9]\\\\d|5(?:[034]\\\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\\\d)|9(?:[05-9]\\\\d|2[0-5]|49)))\\\\d{4}|52[34][2-9]1[02-9]\\\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\\\d{6}\",[10]],0,[\"310\\\\d{4}\",[7]],0,[\"600[2-9]\\\\d{6}\",[10]]]],\"CC\":[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{8}(?:\\\\d{2})?|8[0-24-9]\\\\d{7})|[148]\\\\d{8}|1\\\\d{5,7}\",[6,7,8,9,10,12],0,\"0\",0,\"([59]\\\\d{7})$|0\",\"8$1\",0,0,[[\"8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\\\d|70[23]|959))\\\\d{3}\",[9]],[\"4(?:79[01]|83[0-389]|94[0-4])\\\\d{5}|4(?:[0-36]\\\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,0,[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],\"CD\":[\"243\",\"00\",\"[189]\\\\d{8}|[1-68]\\\\d{6}\",[7,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"88\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"[1-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"]],\"0\"],\"CF\":[\"236\",\"00\",\"(?:[27]\\\\d{3}|8776)\\\\d{4}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[278]\"]]]],\"CG\":[\"242\",\"00\",\"222\\\\d{6}|(?:0\\\\d|80)\\\\d{7}\",[9],[[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[02]\"]]]],\"CH\":[\"41\",\"00\",\"8\\\\d{11}|[2-9]\\\\d{8}\",[9,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8[047]|90\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-79]|81\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"8\"],\"0$1\"]],\"0\"],\"CI\":[\"225\",\"00\",\"[02]\\\\d{9}\",[10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d)(\\\\d{5})\",\"$1 $2 $3 $4\",[\"2\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"0\"]]]],\"CK\":[\"682\",\"00\",\"[2-578]\\\\d{4}\",[5],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"[2-578]\"]]]],\"CL\":[\"56\",\"(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0\",\"12300\\\\d{6}|6\\\\d{9,10}|[2-9]\\\\d{8}\",[9,10,11],[[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"219\",\"2196\"],\"($1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"44\"]],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2[1-36]\"],\"($1)\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"9[2-9]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])\"],\"($1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"60|8\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"60\"]]]],\"CM\":[\"237\",\"00\",\"[26]\\\\d{8}|88\\\\d{6,7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"88\"]],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"[26]|88\"]]]],\"CN\":[\"86\",\"00|1(?:[12]\\\\d|79)\\\\d\\\\d00\",\"(?:(?:1[03-689]|2\\\\d)\\\\d\\\\d|6)\\\\d{8}|1\\\\d{10}|[126]\\\\d{6}(?:\\\\d(?:\\\\d{2})?)?|86\\\\d{5,6}|(?:[3-579]\\\\d|8[0-57-9])\\\\d{5,9}\",[7,8,9,10,11,12],[[\"(\\\\d{2})(\\\\d{5,6})\",\"$1 $2\",[\"(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]\",\"(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\\\d|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1\",\"10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\\\d|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12\",\"10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\\\d|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123\",\"10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\\\d|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]\",\"(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))[19]\",\"85[23](?:10|95)|(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))(?:10|9[56])\",\"85[23](?:100|95)|(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))(?:100|9[56])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"(?:4|80)0\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"10|2(?:[02-57-9]|1[1-9])\",\"10|2(?:[02-57-9]|1[1-9])\",\"10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{7,8})\",\"$1 $2\",[\"9\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"80\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-578]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"1[3-9]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"[12]\"],\"0$1\",1]],\"0\",0,\"(1(?:[12]\\\\d|79)\\\\d\\\\d)|0\",0,0,0,0,\"00\"],\"CO\":[\"57\",\"00(?:4(?:[14]4|56)|[579])\",\"(?:60\\\\d\\\\d|9101)\\\\d{6}|(?:1\\\\d|3)\\\\d{9}\",[10,11],[[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"6\"],\"($1)\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"3[0-357]|91\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{7})\",\"$1-$2-$3\",[\"1\"],\"0$1\",0,\"$1 $2 $3\"]],\"0\",0,\"0([3579]|4(?:[14]4|56))?\"],\"CR\":[\"506\",\"00\",\"(?:8\\\\d|90)\\\\d{8}|(?:[24-8]\\\\d{3}|3005)\\\\d{4}\",[8,10],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-7]|8[3-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[89]\"]]],0,0,\"(19(?:0[0-2468]|1[09]|20|66|77|99))\"],\"CU\":[\"53\",\"119\",\"(?:[2-7]|8\\\\d\\\\d)\\\\d{7}|[2-47]\\\\d{6}|[34]\\\\d{5}\",[6,7,8,10],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1 $2\",[\"2[1-4]|[34]\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{6,7})\",\"$1 $2\",[\"7\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"[56]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"8\"],\"0$1\"]],\"0\"],\"CV\":[\"238\",\"0\",\"(?:[2-59]\\\\d\\\\d|800)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[2-589]\"]]]],\"CW\":[\"599\",\"00\",\"(?:[34]1|60|(?:7|9\\\\d)\\\\d)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[3467]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9[4-8]\"]]],0,0,0,0,0,\"[69]\"],\"CX\":[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{8}(?:\\\\d{2})?|8[0-24-9]\\\\d{7})|[148]\\\\d{8}|1\\\\d{5,7}\",[6,7,8,9,10,12],0,\"0\",0,\"([59]\\\\d{7})$|0\",\"8$1\",0,0,[[\"8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\\\d|7(?:0[01]|1[0-2])|958))\\\\d{3}\",[9]],[\"4(?:79[01]|83[0-389]|94[0-4])\\\\d{5}|4(?:[0-36]\\\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,0,[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],\"CY\":[\"357\",\"00\",\"(?:[279]\\\\d|[58]0)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[257-9]\"]]]],\"CZ\":[\"420\",\"00\",\"(?:[2-578]\\\\d|60)\\\\d{7}|9\\\\d{8,11}\",[9,10,11,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-8]|9[015-7]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"96\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]]]],\"DE\":[\"49\",\"00\",\"[2579]\\\\d{5,14}|49(?:[34]0|69|8\\\\d)\\\\d\\\\d?|49(?:37|49|60|7[089]|9\\\\d)\\\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\\\d{1,8}|(?:1|[368]\\\\d|4[0-8])\\\\d{3,13}|49(?:[015]\\\\d|2[13]|31|[46][1-8])\\\\d{1,9}\",[4,5,6,7,8,9,10,11,12,13,14,15],[[\"(\\\\d{2})(\\\\d{3,13})\",\"$1 $2\",[\"3[02]|40|[68]9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,12})\",\"$1 $2\",[\"2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1\",\"2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{2,11})\",\"$1 $2\",[\"[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]\",\"[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"138\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{2,10})\",\"$1 $2\",[\"3\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5,11})\",\"$1 $2\",[\"181\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{4,10})\",\"$1 $2 $3\",[\"1(?:3|80)|9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7,8})\",\"$1 $2\",[\"1[67]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7,12})\",\"$1 $2\",[\"8\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{6})\",\"$1 $2\",[\"185\",\"1850\",\"18500\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{7})\",\"$1 $2\",[\"18[68]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{7})\",\"$1 $2\",[\"15[1279]\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{6})\",\"$1 $2\",[\"15[03568]\",\"15(?:[0568]|31)\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{8})\",\"$1 $2\",[\"18\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{7,8})\",\"$1 $2 $3\",[\"1(?:6[023]|7)\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{2})(\\\\d{7})\",\"$1 $2 $3\",[\"15[279]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{8})\",\"$1 $2 $3\",[\"15\"],\"0$1\"]],\"0\"],\"DJ\":[\"253\",\"00\",\"(?:2\\\\d|77)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[27]\"]]]],\"DK\":[\"45\",\"00\",\"[2-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-9]\"]]]],\"DM\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|767|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"767$1\",0,\"767\"],\"DO\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"8001|8[024]9\"],\"DZ\":[\"213\",\"00\",\"(?:[1-4]|[5-79]\\\\d|80)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[1-4]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-8]\"],\"0$1\"]],\"0\"],\"EC\":[\"593\",\"00\",\"1\\\\d{9,10}|(?:[2-7]|9\\\\d)\\\\d{7}\",[8,9,10,11],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2-$3\",[\"[2-7]\"],\"(0$1)\",0,\"$1-$2-$3\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],\"EE\":[\"372\",\"00\",\"8\\\\d{9}|[4578]\\\\d{7}|(?:[3-8]\\\\d|90)\\\\d{5}\",[7,8,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88\",\"[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88\"]],[\"(\\\\d{4})(\\\\d{3,4})\",\"$1 $2\",[\"[45]|8(?:00|[1-49])\",\"[45]|8(?:00[1-9]|[1-49])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],\"EG\":[\"20\",\"00\",\"[189]\\\\d{8,9}|[24-6]\\\\d{8}|[135]\\\\d{7}\",[8,9,10],[[\"(\\\\d)(\\\\d{7,8})\",\"$1 $2\",[\"[23]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6,7})\",\"$1 $2\",[\"1[35]|[4-6]|8[2468]|9[235-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{8})\",\"$1 $2\",[\"1\"],\"0$1\"]],\"0\"],\"EH\":[\"212\",\"00\",\"[5-8]\\\\d{8}\",[9],0,\"0\",0,0,0,0,\"528[89]\"],\"ER\":[\"291\",\"00\",\"[178]\\\\d{6}\",[7],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[178]\"],\"0$1\"]],\"0\"],\"ES\":[\"34\",\"00\",\"[5-9]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]00\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-9]\"]]]],\"ET\":[\"251\",\"00\",\"(?:11|[2-579]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-579]\"],\"0$1\"]],\"0\"],\"FI\":[\"358\",\"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))\",\"[1-35689]\\\\d{4}|7\\\\d{10,11}|(?:[124-7]\\\\d|3[0-46-9])\\\\d{8}|[1-9]\\\\d{5,8}\",[5,6,7,8,9,10,11,12],[[\"(\\\\d{5})\",\"$1\",[\"20[2-59]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1 $2\",[\"(?:[1-3]0|[68])0|70[07-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4,8})\",\"$1 $2\",[\"[14]|2[09]|50|7[135]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6,10})\",\"$1 $2\",[\"7\"],\"0$1\"],[\"(\\\\d)(\\\\d{4,9})\",\"$1 $2\",[\"(?:1[49]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9\"],\"0$1\"]],\"0\",0,0,0,0,\"1[03-79]|[2-9]\",0,\"00\"],\"FJ\":[\"679\",\"0(?:0|52)\",\"45\\\\d{5}|(?:0800\\\\d|[235-9])\\\\d{6}\",[7,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[235-9]|45\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"0\"]]],0,0,0,0,0,0,0,\"00\"],\"FK\":[\"500\",\"00\",\"[2-7]\\\\d{4}\",[5]],\"FM\":[\"691\",\"00\",\"(?:[39]\\\\d\\\\d|820)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[389]\"]]]],\"FO\":[\"298\",\"00\",\"[2-9]\\\\d{5}\",[6],[[\"(\\\\d{6})\",\"$1\",[\"[2-9]\"]]],0,0,\"(10(?:01|[12]0|88))\"],\"FR\":[\"33\",\"00\",\"[1-9]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0 $1\"],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"[1-79]\"],\"0$1\"]],\"0\"],\"GA\":[\"241\",\"00\",\"(?:[067]\\\\d|11)\\\\d{6}|[2-7]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-7]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"0\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"11|[67]\"],\"0$1\"]],0,0,\"0(11\\\\d{6}|60\\\\d{6}|61\\\\d{6}|6[256]\\\\d{6}|7[467]\\\\d{6})\",\"$1\"],\"GB\":[\"44\",\"00\",\"[1-357-9]\\\\d{9}|[18]\\\\d{8}|8\\\\d{6}\",[7,9,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"800\",\"8001\",\"80011\",\"800111\",\"8001111\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"845\",\"8454\",\"84546\",\"845464\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"800\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{4,5})\",\"$1 $2\",[\"1(?:38|5[23]|69|76|94)\",\"1(?:(?:38|69)7|5(?:24|39)|768|946)\",\"1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5,6})\",\"$1 $2\",[\"1(?:[2-69][02-9]|[78])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[25]|7(?:0|6[02-9])\",\"[25]|7(?:0|6(?:[03-9]|2[356]))\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1389]\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"(?:1(?:1(?:3(?:[0-58]\\\\d\\\\d|73[0-35])|4(?:(?:[0-5]\\\\d|70)\\\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\\\d|6(?:[0-4]\\\\d|50))\\\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\\\d)\\\\d|1(?:[0-7]\\\\d|8[0-3]))|(?:3(?:0\\\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\\\d)\\\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\\\d{3})\\\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\\\d)|76\\\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\\\d|7[4-79])|295[5-7]|35[34]\\\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\\\d{3}\",[9,10]],[\"7(?:457[0-57-9]|700[01]|911[028])\\\\d{5}|7(?:[1-3]\\\\d\\\\d|4(?:[0-46-9]\\\\d|5[0-689])|5(?:0[0-8]|[13-9]\\\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\\\d|8[02-9]|9[0-689])|8(?:[014-9]\\\\d|[23][0-8])|9(?:[024-9]\\\\d|1[02-9]|3[0-689]))\\\\d{6}\",[10]],[\"80[08]\\\\d{7}|800\\\\d{6}|8001111\"],[\"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\\\d|8[2-49]))\\\\d{7}|845464\\\\d\",[7,10]],[\"70\\\\d{8}\",[10]],0,[\"(?:3[0347]|55)\\\\d{8}\",[10]],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\",[10]],[\"56\\\\d{8}\",[10]]],0,\" x\"],\"GD\":[\"1\",\"011\",\"(?:473|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"473$1\",0,\"473\"],\"GE\":[\"995\",\"00\",\"(?:[3-57]\\\\d\\\\d|800)\\\\d{6}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"70\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"32\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[57]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[348]\"],\"0$1\"]],\"0\"],\"GF\":[\"594\",\"00\",\"[56]94\\\\d{6}|(?:80|9\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[56]|9[47]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[89]\"],\"0$1\"]],\"0\"],\"GG\":[\"44\",\"00\",\"(?:1481|[357-9]\\\\d{3})\\\\d{6}|8\\\\d{6}(?:\\\\d{2})?\",[7,9,10],0,\"0\",0,\"([25-9]\\\\d{5})$|0\",\"1481$1\",0,0,[[\"1481[25-9]\\\\d{5}\",[10]],[\"7(?:(?:781|839)\\\\d|911[17])\\\\d{5}\",[10]],[\"80[08]\\\\d{7}|800\\\\d{6}|8001111\"],[\"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\\\d|8[0-3]))\\\\d{7}|845464\\\\d\",[7,10]],[\"70\\\\d{8}\",[10]],0,[\"(?:3[0347]|55)\\\\d{8}\",[10]],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\",[10]],[\"56\\\\d{8}\",[10]]]],\"GH\":[\"233\",\"00\",\"(?:[235]\\\\d{3}|800)\\\\d{5}\",[8,9],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[235]\"],\"0$1\"]],\"0\"],\"GI\":[\"350\",\"00\",\"(?:[25]\\\\d|60)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"2\"]]]],\"GL\":[\"299\",\"00\",\"(?:19|[2-689]\\\\d|70)\\\\d{4}\",[6],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"19|[2-9]\"]]]],\"GM\":[\"220\",\"00\",\"[2-9]\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-9]\"]]]],\"GN\":[\"224\",\"00\",\"722\\\\d{6}|(?:3|6\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"3\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[67]\"]]]],\"GP\":[\"590\",\"00\",\"590\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[569]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\\\d)\\\\d{4}\"],[\"69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\\\d)|6(?:1[016-9]|5[0-4]|[67]\\\\d))\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],0,0,0,0,0,[\"9(?:(?:39[5-7]|76[018])\\\\d|475[0-5])\\\\d{4}\"]]],\"GQ\":[\"240\",\"00\",\"222\\\\d{6}|(?:3\\\\d|55|[89]0)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[235]\"]],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"[89]\"]]]],\"GR\":[\"30\",\"00\",\"5005000\\\\d{3}|8\\\\d{9,11}|(?:[269]\\\\d|70)\\\\d{8}\",[10,11,12],[[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"21|7\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2689]\"]],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{5})\",\"$1 $2 $3\",[\"8\"]]]],\"GT\":[\"502\",\"00\",\"80\\\\d{6}|(?:1\\\\d{3}|[2-7])\\\\d{7}\",[8,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-8]\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]]]],\"GU\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|671|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"671$1\",0,\"671\"],\"GW\":[\"245\",\"00\",\"[49]\\\\d{8}|4\\\\d{6}\",[7,9],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"40\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[49]\"]]]],\"GY\":[\"592\",\"001\",\"(?:[2-8]\\\\d{3}|9008)\\\\d{3}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-9]\"]]]],\"HK\":[\"852\",\"00(?:30|5[09]|[126-9]?)\",\"8[0-46-9]\\\\d{6,7}|9\\\\d{4,7}|(?:[2-7]|9\\\\d{3})\\\\d{7}\",[5,6,7,8,9,11],[[\"(\\\\d{3})(\\\\d{2,5})\",\"$1 $2\",[\"900\",\"9003\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-7]|8[1-4]|9(?:0[1-9]|[1-8])\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]]],0,0,0,0,0,0,0,\"00\"],\"HN\":[\"504\",\"00\",\"8\\\\d{10}|[237-9]\\\\d{7}\",[8,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"[237-9]\"]]]],\"HR\":[\"385\",\"00\",\"(?:[24-69]\\\\d|3[0-79])\\\\d{7}|80\\\\d{5,7}|[1-79]\\\\d{7}|6\\\\d{5,6}\",[6,7,8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"6[01]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"6|7[245]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-57]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],\"HT\":[\"509\",\"00\",\"(?:[2-489]\\\\d|55)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-589]\"]]]],\"HU\":[\"36\",\"00\",\"[235-7]\\\\d{8}|[1-9]\\\\d{7}\",[8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"(06 $1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]\"],\"(06 $1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-9]\"],\"06 $1\"]],\"06\"],\"ID\":[\"62\",\"00[89]\",\"(?:(?:00[1-9]|8\\\\d)\\\\d{4}|[1-36])\\\\d{6}|00\\\\d{10}|[1-9]\\\\d{8,10}|[2-9]\\\\d{7}\",[7,8,9,10,11,12,13],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"15\"]],[\"(\\\\d{2})(\\\\d{5,9})\",\"$1 $2\",[\"2[124]|[36]1\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5,7})\",\"$1 $2\",[\"800\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5,8})\",\"$1 $2\",[\"[2-79]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{3})\",\"$1-$2-$3\",[\"8[1-35-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6,8})\",\"$1 $2\",[\"1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"804\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"80\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1-$2-$3\",[\"8\"],\"0$1\"]],\"0\"],\"IE\":[\"353\",\"00\",\"(?:1\\\\d|[2569])\\\\d{6,8}|4\\\\d{6,9}|7\\\\d{8}|8\\\\d{8,9}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"2[24-9]|47|58|6[237-9]|9[35-9]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[45]0\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2569]|4[1-69]|7[14]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"70\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"81\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"4\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],\"IL\":[\"972\",\"0(?:0|1[2-9])\",\"1\\\\d{6}(?:\\\\d{3,5})?|[57]\\\\d{8}|[1-489]\\\\d{7}\",[7,8,9,10,11,12],[[\"(\\\\d{4})(\\\\d{3})\",\"$1-$2\",[\"125\"]],[\"(\\\\d{4})(\\\\d{2})(\\\\d{2})\",\"$1-$2-$3\",[\"121\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[2-489]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[57]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3\",[\"12\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1-$2\",[\"159\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3-$4\",[\"1[7-9]\"]],[\"(\\\\d{3})(\\\\d{1,2})(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3-$4\",[\"15\"]]],\"0\"],\"IM\":[\"44\",\"00\",\"1624\\\\d{6}|(?:[3578]\\\\d|90)\\\\d{8}\",[10],0,\"0\",0,\"([25-8]\\\\d{5})$|0\",\"1624$1\",0,\"74576|(?:16|7[56])24\"],\"IN\":[\"91\",\"00\",\"(?:000800|[2-9]\\\\d\\\\d)\\\\d{7}|1\\\\d{7,12}\",[8,9,10,11,12,13],[[\"(\\\\d{8})\",\"$1\",[\"5(?:0|2[23]|3[03]|[67]1|88)\",\"5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)\",\"5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)\"],0,1],[\"(\\\\d{4})(\\\\d{4,5})\",\"$1 $2\",[\"180\",\"1800\"],0,1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"140\"],0,1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"11|2[02]|33|4[04]|79[1-7]|80[2-46]\",\"11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])\",\"11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]\",\"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]\",\"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]\"],\"0$1\",1],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807\",\"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]\",\"1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\\\d|7(?:1(?:[013-8]\\\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\\\d|5[0-367])|70[13-7]))[2-7]\"],\"0$1\",1],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"[6-9]\"],\"0$1\",1],[\"(\\\\d{4})(\\\\d{2,4})(\\\\d{4})\",\"$1 $2 $3\",[\"1(?:6|8[06])\",\"1(?:6|8[06]0)\"],0,1],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"18\"],0,1]],\"0\"],\"IO\":[\"246\",\"00\",\"3\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"3\"]]]],\"IQ\":[\"964\",\"00\",\"(?:1|7\\\\d\\\\d)\\\\d{7}|[2-6]\\\\d{7,8}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-6]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\"],\"IR\":[\"98\",\"00\",\"[1-9]\\\\d{9}|(?:[1-8]\\\\d\\\\d|9)\\\\d{3,4}\",[4,5,6,7,10],[[\"(\\\\d{4,5})\",\"$1\",[\"96\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4,5})\",\"$1 $2\",[\"(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-8]\"],\"0$1\"]],\"0\"],\"IS\":[\"354\",\"00|1(?:0(?:01|[12]0)|100)\",\"(?:38\\\\d|[4-9])\\\\d{6}\",[7,9],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[4-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"3\"]]],0,0,0,0,0,0,0,\"00\"],\"IT\":[\"39\",\"00\",\"0\\\\d{5,10}|1\\\\d{8,10}|3(?:[0-8]\\\\d{7,10}|9\\\\d{7,8})|(?:43|55|70)\\\\d{8}|8\\\\d{5}(?:\\\\d{2,4})?\",[6,7,8,9,10,11,12],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1 $2\",[\"0[26]\"]],[\"(\\\\d{3})(\\\\d{3,6})\",\"$1 $2\",[\"0[13-57-9][0159]|8(?:03|4[17]|9[2-5])\",\"0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))\"]],[\"(\\\\d{4})(\\\\d{2,6})\",\"$1 $2\",[\"0(?:[13-579][2-46-8]|8[236-8])\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"894\"]],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"0[26]|5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"1(?:44|[679])|[378]|43\"]],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"0[13-57-9][0159]|14\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{5})\",\"$1 $2 $3\",[\"0[26]\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"3\"]]],0,0,0,0,0,0,[[\"0669[0-79]\\\\d{1,6}|0(?:1(?:[0159]\\\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\\\d\\\\d|3(?:[0159]\\\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\\\d|6[0-8])|7(?:[0159]\\\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\\\d{2,7}\",[6,7,8,9,10,11]],[\"3[2-9]\\\\d{7,8}|(?:31|43)\\\\d{8}\",[9,10]],[\"80(?:0\\\\d{3}|3)\\\\d{3}\",[6,9]],[\"(?:0878\\\\d{3}|89(?:2\\\\d|3[04]|4(?:[0-4]|[5-9]\\\\d\\\\d)|5[0-4]))\\\\d\\\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\\\d{6}\",[6,8,9,10]],[\"1(?:78\\\\d|99)\\\\d{6}\",[9,10]],[\"3[2-8]\\\\d{9,10}\",[11,12]],0,0,[\"55\\\\d{8}\",[10]],[\"84(?:[08]\\\\d{3}|[17])\\\\d{3}\",[6,9]]]],\"JE\":[\"44\",\"00\",\"1534\\\\d{6}|(?:[3578]\\\\d|90)\\\\d{8}\",[10],0,\"0\",0,\"([0-24-8]\\\\d{5})$|0\",\"1534$1\",0,0,[[\"1534[0-24-8]\\\\d{5}\"],[\"7(?:(?:(?:50|82)9|937)\\\\d|7(?:00[378]|97\\\\d))\\\\d{5}\"],[\"80(?:07(?:35|81)|8901)\\\\d{4}\"],[\"(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\\\d{4}\"],[\"701511\\\\d{4}\"],0,[\"(?:3(?:0(?:07(?:35|81)|8901)|3\\\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\\\d{4})\\\\d{4}\"],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\"],[\"56\\\\d{8}\"]]],\"JM\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|658|900)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"658|876\"],\"JO\":[\"962\",\"00\",\"(?:(?:[2689]|7\\\\d)\\\\d|32|53)\\\\d{6}\",[8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2356]|87\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"70\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\"],\"JP\":[\"81\",\"010\",\"00[1-9]\\\\d{6,14}|[257-9]\\\\d{9}|(?:00|[1-9]\\\\d\\\\d)\\\\d{6}\",[8,9,10,11,12,13,14,15,16,17],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3\",[\"(?:12|57|99)0\"],\"0$1\"],[\"(\\\\d{4})(\\\\d)(\\\\d{4})\",\"$1-$2-$3\",[\"1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])\",\"1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]\",\"1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"60\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"[36]|4(?:2[09]|7[01])\",\"[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])\",\"1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]\",\"1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1-$2-$3\",[\"[14]|[289][2-9]|5[3-9]|7[2-4679]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"800\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"[257-9]\"],\"0$1\"]],\"0\",0,\"(000[259]\\\\d{6})$|(?:(?:003768)0?)|0\",\"$1\"],\"KE\":[\"254\",\"000\",\"(?:[17]\\\\d\\\\d|900)\\\\d{6}|(?:2|80)0\\\\d{6,7}|[4-6]\\\\d{6,8}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{5,7})\",\"$1 $2\",[\"[24-6]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"[17]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"]],\"0\"],\"KG\":[\"996\",\"00\",\"8\\\\d{9}|[235-9]\\\\d{8}\",[9,10],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"3(?:1[346]|[24-79])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[235-79]|88\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d)(\\\\d{2,3})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],\"KH\":[\"855\",\"00[14-9]\",\"1\\\\d{9}|[1-9]\\\\d{7,8}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],\"KI\":[\"686\",\"00\",\"(?:[37]\\\\d|6[0-79])\\\\d{6}|(?:[2-48]\\\\d|50)\\\\d{3}\",[5,8],0,\"0\"],\"KM\":[\"269\",\"00\",\"[3478]\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[3478]\"]]]],\"KN\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"869$1\",0,\"869\"],\"KP\":[\"850\",\"00|99\",\"85\\\\d{6}|(?:19\\\\d|[2-7])\\\\d{7}\",[8,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"]],\"0\"],\"KR\":[\"82\",\"00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))\",\"00[1-9]\\\\d{8,11}|(?:[12]|5\\\\d{3})\\\\d{7}|[13-6]\\\\d{9}|(?:[1-6]\\\\d|80)\\\\d{7}|[3-6]\\\\d{4,5}|(?:00|7)0\\\\d{8}\",[5,6,8,9,10,11,12,13,14],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1-$2\",[\"(?:3[1-3]|[46][1-4]|5[1-5])1\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"1\"]],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1-$2-$3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[36]0|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1-$2-$3\",[\"[1346]|5[1-5]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"[57]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})(\\\\d{4})\",\"$1-$2-$3\",[\"5\"],\"0$1\"]],\"0\",0,\"0(8(?:[1-46-8]|5\\\\d\\\\d))?\"],\"KW\":[\"965\",\"00\",\"18\\\\d{5}|(?:[2569]\\\\d|41)\\\\d{6}\",[7,8],[[\"(\\\\d{4})(\\\\d{3,4})\",\"$1 $2\",[\"[169]|2(?:[235]|4[1-35-9])|52\"]],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[245]\"]]]],\"KY\":[\"1\",\"011\",\"(?:345|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"345$1\",0,\"345\"],\"KZ\":[\"7\",\"810\",\"(?:33622|8\\\\d{8})\\\\d{5}|[78]\\\\d{9}\",[10,14],0,\"8\",0,0,0,0,\"33|7\",0,\"8~10\"],\"LA\":[\"856\",\"00\",\"[23]\\\\d{9}|3\\\\d{8}|(?:[235-8]\\\\d|41)\\\\d{6}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2[13]|3[14]|[4-8]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"30[0135-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"[23]\"],\"0$1\"]],\"0\"],\"LB\":[\"961\",\"00\",\"[27-9]\\\\d{7}|[13-9]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[27-9]\"]]],\"0\"],\"LC\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|758|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-8]\\\\d{6})$|1\",\"758$1\",0,\"758\"],\"LI\":[\"423\",\"00\",\"[68]\\\\d{8}|(?:[2378]\\\\d|90)\\\\d{5}\",[7,9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[2379]|8(?:0[09]|7)\",\"[2379]|8(?:0(?:02|9)|7)\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"69\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]]],\"0\",0,\"(1001)|0\"],\"LK\":[\"94\",\"00\",\"[1-9]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[1-689]\"],\"0$1\"]],\"0\"],\"LR\":[\"231\",\"00\",\"(?:[245]\\\\d|33|77|88)\\\\d{7}|(?:2\\\\d|[4-6])\\\\d{6}\",[7,8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"4[67]|[56]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-578]\"],\"0$1\"]],\"0\"],\"LS\":[\"266\",\"00\",\"(?:[256]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2568]\"]]]],\"LT\":[\"370\",\"00\",\"(?:[3469]\\\\d|52|[78]0)\\\\d{6}\",[8],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"52[0-7]\"],\"(0-$1)\",1],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[7-9]\"],\"0 $1\",1],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"37|4(?:[15]|6[1-8])\"],\"(0-$1)\",1],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[3-6]\"],\"(0-$1)\",1]],\"0\",0,\"[08]\"],\"LU\":[\"352\",\"00\",\"35[013-9]\\\\d{4,8}|6\\\\d{8}|35\\\\d{2,4}|(?:[2457-9]\\\\d|3[0-46-9])\\\\d{2,9}\",[4,5,6,7,8,9,10,11],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"20[2-689]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})\",\"$1 $2 $3 $4\",[\"2(?:[0367]|4[3-8])\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"80[01]|90[015]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"20\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})\",\"$1 $2 $3 $4 $5\",[\"2(?:[0367]|4[3-8])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,5})\",\"$1 $2 $3 $4\",[\"[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]\"]]],0,0,\"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\\\d)\"],\"LV\":[\"371\",\"00\",\"(?:[268]\\\\d|90)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[269]|8[01]\"]]]],\"LY\":[\"218\",\"00\",\"[2-9]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{7})\",\"$1-$2\",[\"[2-9]\"],\"0$1\"]],\"0\"],\"MA\":[\"212\",\"00\",\"[5-8]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"5[45]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5})\",\"$1-$2\",[\"5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1-$2\",[\"8\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1-$2\",[\"[5-7]\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"5(?:2(?:[0-25-79]\\\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\\\d)\\\\d{5}\"],[\"(?:6(?:[0-79]\\\\d|8[0-247-9])|7(?:[0167]\\\\d|2[0-4]|5[01]|8[0-3]))\\\\d{6}\"],[\"80[0-7]\\\\d{6}\"],[\"89\\\\d{7}\"],0,0,0,0,[\"(?:592(?:4[0-2]|93)|80[89]\\\\d\\\\d)\\\\d{4}\"]]],\"MC\":[\"377\",\"00\",\"(?:[3489]|6\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"4\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[389]\"]],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"6\"],\"0$1\"]],\"0\"],\"MD\":[\"373\",\"00\",\"(?:[235-7]\\\\d|[89]0)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"22|3\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[25-7]\"],\"0$1\"]],\"0\"],\"ME\":[\"382\",\"00\",\"(?:20|[3-79]\\\\d)\\\\d{6}|80\\\\d{6,7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-9]\"],\"0$1\"]],\"0\"],\"MF\":[\"590\",\"00\",\"590\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],0,\"0\",0,0,0,0,0,[[\"590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\\\d{4}\"],[\"69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\\\d)|6(?:1[016-9]|5[0-4]|[67]\\\\d))\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],0,0,0,0,0,[\"9(?:(?:39[5-7]|76[018])\\\\d|475[0-5])\\\\d{4}\"]]],\"MG\":[\"261\",\"00\",\"[23]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[23]\"],\"0$1\"]],\"0\",0,\"([24-9]\\\\d{6})$|0\",\"20$1\"],\"MH\":[\"692\",\"011\",\"329\\\\d{4}|(?:[256]\\\\d|45)\\\\d{5}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[2-6]\"]]],\"1\"],\"MK\":[\"389\",\"00\",\"[2-578]\\\\d{7}\",[8],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2|34[47]|4(?:[37]7|5[47]|64)\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[347]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[58]\"],\"0$1\"]],\"0\"],\"ML\":[\"223\",\"00\",\"[24-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[24-9]\"]]]],\"MM\":[\"95\",\"00\",\"1\\\\d{5,7}|95\\\\d{6}|(?:[4-7]|9[0-46-9])\\\\d{6,8}|(?:2|8\\\\d)\\\\d{5,8}\",[6,7,8,9,10],[[\"(\\\\d)(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"16|2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[12]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[4-7]|8[1-35]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4,6})\",\"$1 $2 $3\",[\"9(?:2[0-4]|[35-9]|4[137-9])\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"92\"],\"0$1\"],[\"(\\\\d)(\\\\d{5})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],\"MN\":[\"976\",\"001\",\"[12]\\\\d{7,9}|[5-9]\\\\d{7}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"[12]1\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[5-9]\"]],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"[12]2[1-3]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5,6})\",\"$1 $2\",[\"[12](?:27|3[2-8]|4[2-68]|5[1-4689])\",\"[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{4,5})\",\"$1 $2\",[\"[12]\"],\"0$1\"]],\"0\"],\"MO\":[\"853\",\"00\",\"0800\\\\d{3}|(?:28|[68]\\\\d)\\\\d{6}\",[7,8],[[\"(\\\\d{4})(\\\\d{3})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[268]\"]]]],\"MP\":[\"1\",\"011\",\"[58]\\\\d{9}|(?:67|90)0\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"670$1\",0,\"670\"],\"MQ\":[\"596\",\"00\",\"596\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[569]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],\"MR\":[\"222\",\"00\",\"(?:[2-4]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-48]\"]]]],\"MS\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|664|900)\\\\d{7}\",[10],0,\"1\",0,\"([34]\\\\d{6})$|1\",\"664$1\",0,\"664\"],\"MT\":[\"356\",\"00\",\"3550\\\\d{4}|(?:[2579]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2357-9]\"]]]],\"MU\":[\"230\",\"0(?:0|[24-7]0|3[03])\",\"(?:[57]|8\\\\d\\\\d)\\\\d{7}|[2-468]\\\\d{6}\",[7,8,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-46]|8[013]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[57]\"]],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"8\"]]],0,0,0,0,0,0,0,\"020\"],\"MV\":[\"960\",\"0(?:0|19)\",\"(?:800|9[0-57-9]\\\\d)\\\\d{7}|[34679]\\\\d{6}\",[7,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[34679]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"]]],0,0,0,0,0,0,0,\"00\"],\"MW\":[\"265\",\"00\",\"(?:[1289]\\\\d|31|77)\\\\d{7}|1\\\\d{6}\",[7,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[137-9]\"],\"0$1\"]],\"0\"],\"MX\":[\"52\",\"0[09]\",\"[2-9]\\\\d{9}\",[10],[[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"33|5[56]|81\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-9]\"]]],0,0,0,0,0,0,0,\"00\"],\"MY\":[\"60\",\"00\",\"1\\\\d{8,9}|(?:3\\\\d|[4-9])\\\\d{7}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3\",[\"[4-79]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1-$2 $3\",[\"1(?:[02469]|[378][1-9]|53)|8\",\"1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1-$2 $3\",[\"3\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1-$2-$3-$4\",[\"1(?:[367]|80)\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3\",[\"15\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2 $3\",[\"1\"],\"0$1\"]],\"0\"],\"MZ\":[\"258\",\"00\",\"(?:2|8\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2|8[2-79]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],\"NA\":[\"264\",\"00\",\"[68]\\\\d{7,8}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"88\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"6\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"87\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],\"NC\":[\"687\",\"00\",\"(?:050|[2-57-9]\\\\d\\\\d)\\\\d{3}\",[6],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1.$2.$3\",[\"[02-57-9]\"]]]],\"NE\":[\"227\",\"00\",\"[027-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"08\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[089]|2[013]|7[0467]\"]]]],\"NF\":[\"672\",\"00\",\"[13]\\\\d{5}\",[6],[[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"1[0-3]\"]],[\"(\\\\d)(\\\\d{5})\",\"$1 $2\",[\"[13]\"]]],0,0,\"([0-258]\\\\d{4})$\",\"3$1\"],\"NG\":[\"234\",\"009\",\"2[0-24-9]\\\\d{8}|[78]\\\\d{10,13}|[7-9]\\\\d{9}|[1-9]\\\\d{7}|[124-7]\\\\d{6}\",[7,8,10,11,12,13,14],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"78\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[12]|9(?:0[3-9]|[1-9])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\",\"$1 $2 $3\",[\"[3-6]|7(?:0[0-689]|[1-79])|8[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[7-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"20[129]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})(\\\\d{5,6})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"]],\"0\"],\"NI\":[\"505\",\"00\",\"(?:1800|[25-8]\\\\d{3})\\\\d{4}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[125-8]\"]]]],\"NL\":[\"31\",\"00\",\"(?:[124-7]\\\\d\\\\d|3(?:[02-9]\\\\d|1[0-8]))\\\\d{6}|8\\\\d{6,9}|9\\\\d{6,10}|1\\\\d{4,5}\",[5,6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{4,7})\",\"$1 $2\",[\"[89]0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"66\"],\"0$1\"],[\"(\\\\d)(\\\\d{8})\",\"$1 $2\",[\"6\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1[16-8]|2[259]|3[124]|4[17-9]|5[124679]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-578]|91\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],\"NO\":[\"47\",\"00\",\"(?:0|[2-9]\\\\d{3})\\\\d{4}\",[5,8],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-79]\"]]],0,0,0,0,0,\"[02-689]|7[0-8]\"],\"NP\":[\"977\",\"00\",\"(?:1\\\\d|9)\\\\d{9}|[1-9]\\\\d{7}\",[8,10,11],[[\"(\\\\d)(\\\\d{7})\",\"$1-$2\",[\"1[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1-$2\",[\"1[01]|[2-8]|9(?:[1-59]|[67][2-6])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1-$2\",[\"9\"]]],\"0\"],\"NR\":[\"674\",\"00\",\"(?:444|(?:55|8\\\\d)\\\\d|666)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[4-68]\"]]]],\"NU\":[\"683\",\"00\",\"(?:[4-7]|888\\\\d)\\\\d{3}\",[4,7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"8\"]]]],\"NZ\":[\"64\",\"0(?:0|161)\",\"[1289]\\\\d{9}|50\\\\d{5}(?:\\\\d{2,3})?|[27-9]\\\\d{7,8}|(?:[34]\\\\d|6[0-35-9])\\\\d{6}|8\\\\d{4,6}\",[5,6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{3,8})\",\"$1 $2\",[\"8[1-79]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"50[036-8]|8|90\",\"50(?:[0367]|88)|8|90\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"24|[346]|7[2-57-9]|9[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2(?:10|74)|[589]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"1|2[028]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,5})\",\"$1 $2 $3\",[\"2(?:[169]|7[0-35-9])|7\"],\"0$1\"]],\"0\",0,0,0,0,0,0,\"00\"],\"OM\":[\"968\",\"00\",\"(?:1505|[279]\\\\d{3}|500)\\\\d{4}|800\\\\d{5,6}\",[7,8,9],[[\"(\\\\d{3})(\\\\d{4,6})\",\"$1 $2\",[\"[58]\"]],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"2\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[179]\"]]]],\"PA\":[\"507\",\"00\",\"(?:00800|8\\\\d{3})\\\\d{6}|[68]\\\\d{7}|[1-57-9]\\\\d{6}\",[7,8,10,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[1-57-9]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"[68]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]]],\"PE\":[\"51\",\"00|19(?:1[124]|77|90)00\",\"(?:[14-8]|9\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"80\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"1\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[4-8]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"]]],\"0\",0,0,0,0,0,0,\"00\",\" Anexo \"],\"PF\":[\"689\",\"00\",\"4\\\\d{5}(?:\\\\d{2})?|8\\\\d{7,8}\",[6,8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"44\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"4|8[7-9]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]]]],\"PG\":[\"675\",\"00|140[1-3]\",\"(?:180|[78]\\\\d{3})\\\\d{4}|(?:[2-589]\\\\d|64)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"18|[2-69]|85\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[78]\"]]],0,0,0,0,0,0,0,\"00\"],\"PH\":[\"63\",\"00\",\"(?:[2-7]|9\\\\d)\\\\d{8}|2\\\\d{5}|(?:1800|8)\\\\d{7,9}\",[6,8,9,10,11,12,13],[[\"(\\\\d)(\\\\d{5})\",\"$1 $2\",[\"2\"],\"(0$1)\"],[\"(\\\\d{4})(\\\\d{4,6})\",\"$1 $2\",[\"3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2\",\"3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))\"],\"(0$1)\"],[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"346|4(?:27|9[35])|883\",\"3469|4(?:279|9(?:30|56))|8834\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-7]|8[2-8]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{4})(\\\\d{1,2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"1\"]]],\"0\"],\"PK\":[\"92\",\"00\",\"122\\\\d{6}|[24-8]\\\\d{10,11}|9(?:[013-9]\\\\d{8,10}|2(?:[01]\\\\d\\\\d|2(?:[06-8]\\\\d|1[01]))\\\\d{7})|(?:[2-8]\\\\d{3}|92(?:[0-7]\\\\d|8[1-9]))\\\\d{6}|[24-9]\\\\d{8}|[89]\\\\d{7}\",[8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,7})\",\"$1 $2 $3\",[\"[89]0\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"1\"]],[\"(\\\\d{3})(\\\\d{6,7})\",\"$1 $2\",[\"2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])\",\"9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{7,8})\",\"$1 $2\",[\"(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\"],\"(0$1)\"],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"58\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"3\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"[24-9]\"],\"(0$1)\"]],\"0\"],\"PL\":[\"48\",\"00\",\"(?:6|8\\\\d\\\\d)\\\\d{7}|[1-9]\\\\d{6}(?:\\\\d{2})?|[26]\\\\d{5}\",[6,7,8,9,10],[[\"(\\\\d{5})\",\"$1\",[\"19\"]],[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"11|20|64\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1\",\"(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"64\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[2-8]|[2-7]|8[1-79]|9[145]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"8\"]]]],\"PM\":[\"508\",\"00\",\"[45]\\\\d{5}|(?:708|80\\\\d)\\\\d{6}\",[6,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[45]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],\"PR\":[\"1\",\"011\",\"(?:[589]\\\\d\\\\d|787)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"787|939\"],\"PS\":[\"970\",\"00\",\"[2489]2\\\\d{6}|(?:1\\\\d|5)\\\\d{8}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2489]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],\"PT\":[\"351\",\"00\",\"1693\\\\d{5}|(?:[26-9]\\\\d|30)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2[12]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"16|[236-9]\"]]]],\"PW\":[\"680\",\"01[12]\",\"(?:[24-8]\\\\d\\\\d|345|900)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-9]\"]]]],\"PY\":[\"595\",\"00\",\"59\\\\d{4,6}|9\\\\d{5,10}|(?:[2-46-8]\\\\d|5[0-8])\\\\d{4,7}\",[6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{3,6})\",\"$1 $2\",[\"[2-9]0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{4,5})\",\"$1 $2\",[\"2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"87\"]],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"9(?:[5-79]|8[1-7])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-8]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"]]],\"0\"],\"QA\":[\"974\",\"00\",\"800\\\\d{4}|(?:2|800)\\\\d{6}|(?:0080|[3-7])\\\\d{7}\",[7,8,9,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"2[16]|8\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[3-7]\"]]]],\"RE\":[\"262\",\"00\",\"(?:26|[689]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2689]\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"26(?:2\\\\d\\\\d|3(?:0\\\\d|1[0-6]))\\\\d{4}\"],[\"69(?:2\\\\d\\\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\\\d{4}\"],[\"80\\\\d{7}\"],[\"89[1-37-9]\\\\d{6}\"],0,0,0,0,[\"9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\\\d{4}\"],[\"8(?:1[019]|2[0156]|84|90)\\\\d{6}\"]]],\"RO\":[\"40\",\"00\",\"(?:[236-8]\\\\d|90)\\\\d{7}|[23]\\\\d{5}\",[6,9],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"2[3-6]\",\"2[3-6]\\\\d9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"219|31\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[23]1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[236-9]\"],\"0$1\"]],\"0\",0,0,0,0,0,0,0,\" int \"],\"RS\":[\"381\",\"00\",\"38[02-9]\\\\d{6,9}|6\\\\d{7,9}|90\\\\d{4,8}|38\\\\d{5,6}|(?:7\\\\d\\\\d|800)\\\\d{3,9}|(?:[12]\\\\d|3[0-79])\\\\d{5,10}\",[6,7,8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3,9})\",\"$1 $2\",[\"(?:2[389]|39)0|[7-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5,10})\",\"$1 $2\",[\"[1-36]\"],\"0$1\"]],\"0\"],\"RU\":[\"7\",\"810\",\"8\\\\d{13}|[347-9]\\\\d{9}\",[10,14],[[\"(\\\\d{4})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"7(?:1[0-8]|2[1-9])\",\"7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))\",\"7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2\"],\"8 ($1)\",1],[\"(\\\\d{5})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"7(?:1[0-68]|2[1-9])\",\"7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))\",\"7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]\"],\"8 ($1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"8 ($1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[349]|8(?:[02-7]|1[1-8])\"],\"8 ($1)\",1],[\"(\\\\d{4})(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"8\"],\"8 ($1)\"]],\"8\",0,0,0,0,\"3[04-689]|[489]\",0,\"8~10\"],\"RW\":[\"250\",\"00\",\"(?:06|[27]\\\\d\\\\d|[89]00)\\\\d{6}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"0\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[7-9]\"],\"0$1\"]],\"0\"],\"SA\":[\"966\",\"00\",\"92\\\\d{7}|(?:[15]|8\\\\d)\\\\d{8}\",[9,10],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"9\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"81\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]],\"0\"],\"SB\":[\"677\",\"0[01]\",\"[6-9]\\\\d{6}|[1-6]\\\\d{4}\",[5,7],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])\"]]]],\"SC\":[\"248\",\"010|0[0-2]\",\"(?:[2489]\\\\d|64)\\\\d{5}\",[7],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[246]|9[57]\"]]],0,0,0,0,0,0,0,\"00\"],\"SD\":[\"249\",\"00\",\"[19]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[19]\"],\"0$1\"]],\"0\"],\"SE\":[\"46\",\"00\",\"(?:[26]\\\\d\\\\d|9)\\\\d{9}|[1-9]\\\\d{8}|[1-689]\\\\d{7}|[1-4689]\\\\d{6}|2\\\\d{5}\",[6,7,8,9,10,12],[[\"(\\\\d{2})(\\\\d{2,3})(\\\\d{2})\",\"$1-$2 $3\",[\"20\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"9(?:00|39|44|9)\"],\"0$1\",0,\"$1 $2\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})\",\"$1-$2 $3\",[\"[12][136]|3[356]|4[0246]|6[03]|90[1-9]\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d)(\\\\d{2,3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"8\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{2})\",\"$1-$2 $3\",[\"1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{3})\",\"$1-$2 $3\",[\"9(?:00|39|44)\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{2})(\\\\d{2,3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"10|7\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"8\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1-$2 $3 $4\",[\"9\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4 $5\",[\"[26]\"],\"0$1\",0,\"$1 $2 $3 $4 $5\"]],\"0\"],\"SG\":[\"65\",\"0[0-3]\\\\d\",\"(?:(?:1\\\\d|8)\\\\d\\\\d|7000)\\\\d{7}|[3689]\\\\d{7}\",[8,10,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[369]|8(?:0[1-9]|[1-9])\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{4})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]]]],\"SH\":[\"290\",\"00\",\"(?:[256]\\\\d|8)\\\\d{3}\",[4,5],0,0,0,0,0,0,\"[256]\"],\"SI\":[\"386\",\"00|10(?:22|66|88|99)\",\"[1-7]\\\\d{7}|8\\\\d{4,7}|90\\\\d{4,6}\",[5,6,7,8],[[\"(\\\\d{2})(\\\\d{3,6})\",\"$1 $2\",[\"8[09]|9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"59|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[37][01]|4[0139]|51|6\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[1-57]\"],\"(0$1)\"]],\"0\",0,0,0,0,0,0,\"00\"],\"SJ\":[\"47\",\"00\",\"0\\\\d{4}|(?:[489]\\\\d|79)\\\\d{6}\",[5,8],0,0,0,0,0,0,\"79\"],\"SK\":[\"421\",\"00\",\"[2-689]\\\\d{8}|[2-59]\\\\d{6}|[2-5]\\\\d{5}\",[6,7,9],[[\"(\\\\d)(\\\\d{2})(\\\\d{3,4})\",\"$1 $2 $3\",[\"21\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"[3-5][1-8]1\",\"[3-5][1-8]1[67]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1/$2 $3 $4\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[689]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1/$2 $3 $4\",[\"[3-5]\"],\"0$1\"]],\"0\"],\"SL\":[\"232\",\"00\",\"(?:[237-9]\\\\d|66)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[236-9]\"],\"(0$1)\"]],\"0\"],\"SM\":[\"378\",\"00\",\"(?:0549|[5-7]\\\\d)\\\\d{6}\",[8,10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-7]\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"0\"]]],0,0,\"([89]\\\\d{5})$\",\"0549$1\"],\"SN\":[\"221\",\"00\",\"(?:[378]\\\\d|93)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[379]\"]]]],\"SO\":[\"252\",\"00\",\"[346-9]\\\\d{8}|[12679]\\\\d{7}|[1-5]\\\\d{6}|[1348]\\\\d{5}\",[6,7,8,9],[[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"8[125]\"]],[\"(\\\\d{6})\",\"$1\",[\"[134]\"]],[\"(\\\\d)(\\\\d{6})\",\"$1 $2\",[\"[15]|2[0-79]|3[0-46-8]|4[0-7]\"]],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"(?:2|90)4|[67]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[348]|64|79|90\"]],[\"(\\\\d{2})(\\\\d{5,7})\",\"$1 $2\",[\"1|28|6[0-35-9]|77|9[2-9]\"]]],\"0\"],\"SR\":[\"597\",\"00\",\"(?:[2-5]|68|[78]\\\\d)\\\\d{5}\",[6,7],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1-$2-$3\",[\"56\"]],[\"(\\\\d{3})(\\\\d{3})\",\"$1-$2\",[\"[2-5]\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[6-8]\"]]]],\"SS\":[\"211\",\"00\",\"[19]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[19]\"],\"0$1\"]],\"0\"],\"ST\":[\"239\",\"00\",\"(?:22|9\\\\d)\\\\d{5}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[29]\"]]]],\"SV\":[\"503\",\"00\",\"[267]\\\\d{7}|(?:80\\\\d|900)\\\\d{4}(?:\\\\d{4})?\",[7,8,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[89]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[267]\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"]]]],\"SX\":[\"1\",\"011\",\"7215\\\\d{6}|(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"(5\\\\d{6})$|1\",\"721$1\",0,\"721\"],\"SY\":[\"963\",\"00\",\"[1-39]\\\\d{8}|[1-5]\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-5]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"],\"0$1\",1]],\"0\"],\"SZ\":[\"268\",\"00\",\"0800\\\\d{4}|(?:[237]\\\\d|900)\\\\d{6}\",[8,9],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[0237]\"]],[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"9\"]]]],\"TA\":[\"290\",\"00\",\"8\\\\d{3}\",[4],0,0,0,0,0,0,\"8\"],\"TC\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|649|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-479]\\\\d{6})$|1\",\"649$1\",0,\"649\"],\"TD\":[\"235\",\"00|16\",\"(?:22|[689]\\\\d|77)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[26-9]\"]]],0,0,0,0,0,0,0,\"00\"],\"TG\":[\"228\",\"00\",\"[279]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[279]\"]]]],\"TH\":[\"66\",\"00[1-9]\",\"(?:001800|[2-57]|[689]\\\\d)\\\\d{7}|1\\\\d{7,9}\",[8,9,10,13],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[13-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],\"TJ\":[\"992\",\"810\",\"[0-57-9]\\\\d{8}\",[9],[[\"(\\\\d{6})(\\\\d)(\\\\d{2})\",\"$1 $2 $3\",[\"331\",\"3317\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"44[02-479]|[34]7\"]],[\"(\\\\d{4})(\\\\d)(\\\\d{4})\",\"$1 $2 $3\",[\"3(?:[1245]|3[12])\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[0-57-9]\"]]],0,0,0,0,0,0,0,\"8~10\"],\"TK\":[\"690\",\"00\",\"[2-47]\\\\d{3,6}\",[4,5,6,7]],\"TL\":[\"670\",\"00\",\"7\\\\d{7}|(?:[2-47]\\\\d|[89]0)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-489]|70\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"7\"]]]],\"TM\":[\"993\",\"810\",\"(?:[1-6]\\\\d|71)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"12\"],\"(8 $1)\"],[\"(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[1-5]\"],\"(8 $1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[67]\"],\"8 $1\"]],\"8\",0,0,0,0,0,0,\"8~10\"],\"TN\":[\"216\",\"00\",\"[2-57-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-57-9]\"]]]],\"TO\":[\"676\",\"00\",\"(?:0800|(?:[5-8]\\\\d\\\\d|999)\\\\d)\\\\d{3}|[2-8]\\\\d{4}\",[5,7],[[\"(\\\\d{2})(\\\\d{3})\",\"$1-$2\",[\"[2-4]|50|6[09]|7[0-24-69]|8[05]\"]],[\"(\\\\d{4})(\\\\d{3})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[5-9]\"]]]],\"TR\":[\"90\",\"00\",\"4\\\\d{6}|8\\\\d{11,12}|(?:[2-58]\\\\d\\\\d|900)\\\\d{7}\",[7,10,12,13],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"512|8[01589]|90\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"5(?:[0-59]|61)\",\"5(?:[0-59]|61[06])\",\"5(?:[0-59]|61[06]1)\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[24][1-8]|3[1-9]\"],\"(0$1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{6,7})\",\"$1 $2 $3\",[\"80\"],\"0$1\",1]],\"0\"],\"TT\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-46-8]\\\\d{6})$|1\",\"868$1\",0,\"868\"],\"TV\":[\"688\",\"00\",\"(?:2|7\\\\d\\\\d|90)\\\\d{4}\",[5,6,7],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"2\"]],[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"90\"]],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"7\"]]]],\"TW\":[\"886\",\"0(?:0[25-79]|19)\",\"[2-689]\\\\d{8}|7\\\\d{9,10}|[2-8]\\\\d{7}|2\\\\d{6}\",[7,8,9,10,11],[[\"(\\\\d{2})(\\\\d)(\\\\d{4})\",\"$1 $2 $3\",[\"202\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[258]0\"],\"0$1\"],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]\",\"[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[49]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\",0,0,0,0,0,0,0,\"#\"],\"TZ\":[\"255\",\"00[056]\",\"(?:[25-8]\\\\d|41|90)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[24]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[67]\"],\"0$1\"]],\"0\"],\"UA\":[\"380\",\"00\",\"[89]\\\\d{9}|[3-9]\\\\d{8}\",[9,10],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]\",\"6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])\",\"3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-7]|89|9[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"]],\"0\",0,0,0,0,0,0,\"0~0\"],\"UG\":[\"256\",\"00[057]\",\"800\\\\d{6}|(?:[29]0|[347]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"202\",\"2024\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"[27-9]|4(?:6[45]|[7-9])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"[34]\"],\"0$1\"]],\"0\"],\"US\":[\"1\",\"011\",\"[2-9]\\\\d{9}|3\\\\d{6}\",[10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"310\"],0,1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"($1) $2-$3\",[\"[2-9]\"],0,1,\"$1-$2-$3\"]],\"1\",0,0,0,0,0,[[\"(?:3052(?:0[0-8]|[1-9]\\\\d)|5056(?:[0-35-9]\\\\d|4[468])|7302[0-4]\\\\d)\\\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|7306|983[2-47-9])\\\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\\\d{6}\"],[\"\"],[\"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}\"],[\"900[2-9]\\\\d{6}\"],[\"52(?:3(?:[2-46-9][02-9]\\\\d|5(?:[02-46-9]\\\\d|5[0-46-9]))|4(?:[2-478][02-9]\\\\d|5(?:[034]\\\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\\\d)|9(?:[05-9]\\\\d|2[0-5]|49)))\\\\d{4}|52[34][2-9]1[02-9]\\\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\\\d{6}\"],0,0,0,[\"305209\\\\d{4}\"]]],\"UY\":[\"598\",\"0(?:0|1[3-9]\\\\d)\",\"0004\\\\d{2,9}|[1249]\\\\d{7}|(?:[49]\\\\d|80)\\\\d{5}\",[6,7,8,9,10,11,12,13],[[\"(\\\\d{3})(\\\\d{3,4})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[49]0|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[124]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3 $4\",[\"0\"]]],\"0\",0,0,0,0,0,0,\"00\",\" int. \"],\"UZ\":[\"998\",\"00\",\"(?:20|33|[5-79]\\\\d|88)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[235-9]\"]]]],\"VA\":[\"39\",\"00\",\"0\\\\d{5,10}|3[0-8]\\\\d{7,10}|55\\\\d{8}|8\\\\d{5}(?:\\\\d{2,4})?|(?:1\\\\d|39)\\\\d{7,8}\",[6,7,8,9,10,11,12],0,0,0,0,0,0,\"06698\"],\"VC\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|784|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"784$1\",0,\"784\"],\"VE\":[\"58\",\"00\",\"[68]00\\\\d{7}|(?:[24]\\\\d|[59]0)\\\\d{8}\",[10],[[\"(\\\\d{3})(\\\\d{7})\",\"$1-$2\",[\"[24-689]\"],\"0$1\"]],\"0\"],\"VG\":[\"1\",\"011\",\"(?:284|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-578]\\\\d{6})$|1\",\"284$1\",0,\"284\"],\"VI\":[\"1\",\"011\",\"[58]\\\\d{9}|(?:34|90)0\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"340$1\",0,\"340\"],\"VN\":[\"84\",\"00\",\"[12]\\\\d{9}|[135-9]\\\\d{8}|[16]\\\\d{7}|[16-8]\\\\d{6}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"80\"],\"0$1\",1],[\"(\\\\d{4})(\\\\d{4,6})\",\"$1 $2\",[\"1\"],0,1],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"6\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[357-9]\"],\"0$1\",1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2[48]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"],\"0$1\",1]],\"0\"],\"VU\":[\"678\",\"00\",\"[57-9]\\\\d{6}|(?:[238]\\\\d|48)\\\\d{3}\",[5,7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[57-9]\"]]]],\"WF\":[\"681\",\"00\",\"(?:40|72)\\\\d{4}|8\\\\d{5}(?:\\\\d{3})?\",[6,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[478]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]]]],\"WS\":[\"685\",\"0\",\"(?:[2-6]|8\\\\d{5})\\\\d{4}|[78]\\\\d{6}|[68]\\\\d{5}\",[5,6,7,10],[[\"(\\\\d{5})\",\"$1\",[\"[2-5]|6[1-9]\"]],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1 $2\",[\"[68]\"]],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"7\"]]]],\"XK\":[\"383\",\"00\",\"2\\\\d{7,8}|3\\\\d{7,11}|(?:4\\\\d\\\\d|[89]00)\\\\d{5}\",[8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-4]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2|39\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7,10})\",\"$1 $2\",[\"3\"],\"0$1\"]],\"0\"],\"YE\":[\"967\",\"00\",\"(?:1|7\\\\d)\\\\d{7}|[1-7]\\\\d{6}\",[7,8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-6]|7(?:[24-6]|8[0-7])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\"],\"YT\":[\"262\",\"00\",\"(?:80|9\\\\d)\\\\d{7}|(?:26|63)9\\\\d{6}\",[9],0,\"0\",0,0,0,0,0,[[\"269(?:0[0-467]|15|5[0-4]|6\\\\d|[78]0)\\\\d{4}\"],[\"639(?:0[0-79]|1[019]|[267]\\\\d|3[09]|40|5[05-9]|9[04-79])\\\\d{4}\"],[\"80\\\\d{7}\"],0,0,0,0,0,[\"9(?:(?:39|47)8[01]|769\\\\d)\\\\d{4}\"]]],\"ZA\":[\"27\",\"00\",\"[1-79]\\\\d{8}|8\\\\d{4,9}\",[5,6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1 $2\",[\"8[1-4]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\",\"$1 $2 $3\",[\"8[1-4]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"860\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],\"ZM\":[\"260\",\"00\",\"800\\\\d{6}|(?:21|63|[79]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[28]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"[79]\"],\"0$1\"]],\"0\"],\"ZW\":[\"263\",\"00\",\"2(?:[0-57-9]\\\\d{6,8}|6[0-24-9]\\\\d{6,7})|[38]\\\\d{9}|[35-8]\\\\d{8}|[3-6]\\\\d{7}|[1-689]\\\\d{6}|[1-3569]\\\\d{5}|[1356]\\\\d{4}\",[5,6,7,8,9,10],[[\"(\\\\d{3})(\\\\d{3,5})\",\"$1 $2\",[\"2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3\",[\"[49]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"80\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2\",\"2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)\",\"2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,5})\",\"$1 $2\",[\"1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"29[013-9]|39|54\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3,5})\",\"$1 $2\",[\"(?:25|54)8\",\"258|5483\"],\"0$1\"]],\"0\"]},\"nonGeographic\":{\"800\":[\"800\",0,\"(?:00|[1-9]\\\\d)\\\\d{6}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"\\\\d\"]]],0,0,0,0,0,0,[0,0,[\"(?:00|[1-9]\\\\d)\\\\d{6}\"]]],\"808\":[\"808\",0,\"[1-9]\\\\d{7}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[1-9]\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,[\"[1-9]\\\\d{7}\"]]],\"870\":[\"870\",0,\"7\\\\d{11}|[35-7]\\\\d{8}\",[9,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[35-7]\"]]],0,0,0,0,0,0,[0,[\"(?:[356]|774[45])\\\\d{8}|7[6-8]\\\\d{7}\"]]],\"878\":[\"878\",0,\"10\\\\d{10}\",[12],[[\"(\\\\d{2})(\\\\d{5})(\\\\d{5})\",\"$1 $2 $3\",[\"1\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[\"10\\\\d{10}\"]]],\"881\":[\"881\",0,\"6\\\\d{9}|[0-36-9]\\\\d{8}\",[9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\",[\"[0-37-9]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{5,6})\",\"$1 $2 $3\",[\"6\"]]],0,0,0,0,0,0,[0,[\"6\\\\d{9}|[0-36-9]\\\\d{8}\"]]],\"882\":[\"882\",0,\"[13]\\\\d{6}(?:\\\\d{2,5})?|[19]\\\\d{7}|(?:[25]\\\\d\\\\d|4)\\\\d{7}(?:\\\\d{2})?\",[7,8,9,10,11,12],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"16|342\"]],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"49\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"1[36]|9\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"3[23]\"]],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"16\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"10|23|3(?:[15]|4[57])|4|51\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"34\"]],[\"(\\\\d{2})(\\\\d{4,5})(\\\\d{5})\",\"$1 $2 $3\",[\"[1-35]\"]]],0,0,0,0,0,0,[0,[\"342\\\\d{4}|(?:337|49)\\\\d{6}|(?:3(?:2|47|7\\\\d{3})|50\\\\d{3})\\\\d{7}\",[7,8,9,10,12]],0,0,0,[\"348[57]\\\\d{7}\",[11]],0,0,[\"1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\\\d{4}|6\\\\d{5,10})|(?:345\\\\d|9[89])\\\\d{6}|(?:10|2(?:3|85\\\\d)|3(?:[15]|[69]\\\\d\\\\d)|4[15-8]|51)\\\\d{8}\"]]],\"883\":[\"883\",0,\"(?:[1-4]\\\\d|51)\\\\d{6,10}\",[8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,8})\",\"$1 $2 $3\",[\"[14]|2[24-689]|3[02-689]|51[24-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"510\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"21\"]],[\"(\\\\d{4})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"51[13]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"[235]\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[\"(?:2(?:00\\\\d\\\\d|10)|(?:370[1-9]|51\\\\d0)\\\\d)\\\\d{7}|51(?:00\\\\d{5}|[24-9]0\\\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\\\d{5,9}\"]]],\"888\":[\"888\",0,\"\\\\d{11}\",[11],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\"]],0,0,0,0,0,0,[0,0,0,0,0,0,[\"\\\\d{11}\"]]],\"979\":[\"979\",0,\"[1359]\\\\d{8}\",[9],[[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[1359]\"]]],0,0,0,0,0,0,[0,0,0,[\"[1359]\\\\d{8}\"]]]}}","// Importing from a \".js\" file is a workaround for Node.js \"ES Modules\"\r\n// importing system which is even uncapable of importing \"*.json\" files.\r\nimport metadata from '../../metadata.min.json.js'\r\n\r\nexport default function withMetadataArgument(func, _arguments) {\r\n\tvar args = Array.prototype.slice.call(_arguments)\r\n\targs.push(metadata)\r\n\treturn func.apply(this, args)\r\n}","import{coreTokensData as t}from\"@cellula/react\";var e={colorNeutral0:{cssVar:\"--cellula--color--neutral--0\",value:\"#FFFFFF\"},colorNeutral100:{cssVar:\"--cellula--color--neutral--100\",value:\"#F8F8F9\"},colorNeutral200:{cssVar:\"--cellula--color--neutral--200\",value:\"#EFEFF1\"},colorNeutral300:{cssVar:\"--cellula--color--neutral--300\",value:\"#E1E2E5\"},colorNeutral400:{cssVar:\"--cellula--color--neutral--400\",value:\"#D1D3D7\"},colorNeutral500:{cssVar:\"--cellula--color--neutral--500\",value:\"#B3B7BE\"},colorNeutral600:{cssVar:\"--cellula--color--neutral--600\",value:\"#9095A0\"},colorNeutral700:{cssVar:\"--cellula--color--neutral--700\",value:\"#6A6F7B\"},colorNeutral800:{cssVar:\"--cellula--color--neutral--800\",value:\"#555962\"},colorNeutral900:{cssVar:\"--cellula--color--neutral--900\",value:\"#464951\"},colorNeutral1000:{cssVar:\"--cellula--color--neutral--1000\",value:\"#2F3136\"},colorWarning100:{cssVar:\"--cellula--color--warning--100\",value:\"#FFF7EB\"},colorWarning200:{cssVar:\"--cellula--color--warning--200\",value:\"#FFEDD1\"},colorWarning300:{cssVar:\"--cellula--color--warning--300\",value:\"#FDDEAA\"},colorWarning400:{cssVar:\"--cellula--color--warning--400\",value:\"#F7CD7D\"},colorWarning500:{cssVar:\"--cellula--color--warning--500\",value:\"#DFB04A\"},colorWarning600:{cssVar:\"--cellula--color--warning--600\",value:\"#B68F3E\"},colorWarning700:{cssVar:\"--cellula--color--warning--700\",value:\"#886B31\"},colorWarning800:{cssVar:\"--cellula--color--warning--800\",value:\"#6C5629\"},colorWarning900:{cssVar:\"--cellula--color--warning--900\",value:\"#594623\"},colorWarning1000:{cssVar:\"--cellula--color--warning--1000\",value:\"#3B2F1A\"},colorDanger100:{cssVar:\"--cellula--color--danger--100\",value:\"#FFF6F5\"},colorDanger200:{cssVar:\"--cellula--color--danger--200\",value:\"#FFEAE7\"},colorDanger300:{cssVar:\"--cellula--color--danger--300\",value:\"#FFD8D4\"},colorDanger400:{cssVar:\"--cellula--color--danger--400\",value:\"#FFC5BE\"},colorDanger500:{cssVar:\"--cellula--color--danger--500\",value:\"#FF9C94\"},colorDanger600:{cssVar:\"--cellula--color--danger--600\",value:\"#F46864\"},colorDanger700:{cssVar:\"--cellula--color--danger--700\",value:\"#BF4746\"},colorDanger800:{cssVar:\"--cellula--color--danger--800\",value:\"#973B39\"},colorDanger900:{cssVar:\"--cellula--color--danger--900\",value:\"#7B322F\"},colorDanger1000:{cssVar:\"--cellula--color--danger--1000\",value:\"#502421\"},colorSuccess100:{cssVar:\"--cellula--color--success--100\",value:\"#F4FAF4\"},colorSuccess200:{cssVar:\"--cellula--color--success--200\",value:\"#E5F3E5\"},colorSuccess300:{cssVar:\"--cellula--color--success--300\",value:\"#CEE9CF\"},colorSuccess400:{cssVar:\"--cellula--color--success--400\",value:\"#B4DDB6\"},colorSuccess500:{cssVar:\"--cellula--color--success--500\",value:\"#84C78B\"},colorSuccess600:{cssVar:\"--cellula--color--success--600\",value:\"#38A952\"},colorSuccess700:{cssVar:\"--cellula--color--success--700\",value:\"#2A7F3D\"},colorSuccess800:{cssVar:\"--cellula--color--success--800\",value:\"#266532\"},colorSuccess900:{cssVar:\"--cellula--color--success--900\",value:\"#21532A\"},colorSuccess1000:{cssVar:\"--cellula--color--success--1000\",value:\"#1A371E\"},colorInfo100:{cssVar:\"--cellula--color--info--100\",value:\"#F5F9FD\"},colorInfo200:{cssVar:\"--cellula--color--info--200\",value:\"#E9F0FB\"},colorInfo300:{cssVar:\"--cellula--color--info--300\",value:\"#D5E3F7\"},colorInfo400:{cssVar:\"--cellula--color--info--400\",value:\"#BED5F3\"},colorInfo500:{cssVar:\"--cellula--color--info--500\",value:\"#92BAEA\"},colorInfo600:{cssVar:\"--cellula--color--info--600\",value:\"#4B9AE0\"},colorInfo700:{cssVar:\"--cellula--color--info--700\",value:\"#2E73AC\"},colorInfo800:{cssVar:\"--cellula--color--info--800\",value:\"#2A5C88\"},colorInfo900:{cssVar:\"--cellula--color--info--900\",value:\"#264C6E\"},colorInfo1000:{cssVar:\"--cellula--color--info--1000\",value:\"#1E3248\"},colorPrimary100:{cssVar:\"--cellula--color--primary--100\",value:\"#FEF7EF\"},colorPrimary200:{cssVar:\"--cellula--color--primary--200\",value:\"#F8EEE1\"},colorPrimary300:{cssVar:\"--cellula--color--primary--300\",value:\"#E9E0D4\"},colorPrimary400:{cssVar:\"--cellula--color--primary--400\",value:\"#DAD1C6\"},colorPrimary500:{cssVar:\"--cellula--color--primary--500\",value:\"#BDB6AC\"},colorPrimary600:{cssVar:\"--cellula--color--primary--600\",value:\"#9A948D\"},colorPrimary700:{cssVar:\"--cellula--color--primary--700\",value:\"#736E69\"},colorPrimary800:{cssVar:\"--cellula--color--primary--800\",value:\"#5C5854\"},colorPrimary800t08:{cssVar:\"--cellula--color--primary--800-t08\",value:\"#5C585414\"},colorPrimary800t12:{cssVar:\"--cellula--color--primary--800-t12\",value:\"#5C58541F\"},colorPrimary900:{cssVar:\"--cellula--color--primary--900\",value:\"#4B4845\"},colorPrimary1000:{cssVar:\"--cellula--color--primary--1000\",value:\"#32312F\"},colorAccent100:{cssVar:\"--cellula--color--accent--100\",value:\"#F9F7FE\"},colorAccent200:{cssVar:\"--cellula--color--accent--200\",value:\"#F2EDFE\"},colorAccent300:{cssVar:\"--cellula--color--accent--300\",value:\"#E5DCFC\"},colorAccent400:{cssVar:\"--cellula--color--accent--400\",value:\"#D8CCFB\"},colorAccent500:{cssVar:\"--cellula--color--accent--500\",value:\"#BEADF8\"},colorAccent600:{cssVar:\"--cellula--color--accent--600\",value:\"#9985F3\"},colorAccent700:{cssVar:\"--cellula--color--accent--700\",value:\"#6459EC\"},colorAccent800:{cssVar:\"--cellula--color--accent--800\",value:\"#313FE7\"},colorAccent900:{cssVar:\"--cellula--color--accent--900\",value:\"#1C32C7\"},colorAccent1000:{cssVar:\"--cellula--color--accent--1000\",value:\"#23237E\"},colorAccent800t08:{cssVar:\"--cellula--color--accent--800-t08\",value:\"#313FE714\"},colorAccent800t12:{cssVar:\"--cellula--color--accent--800-t12\",value:\"#1C32C71F\"},colorFocus:{cssVar:\"--cellula--color--focus\",value:\"#44A5FF\"}},r={...t,...e,componentIconButtonHover:{cssVar:\"--cellula--component--icon-button--color--hover\",value:`${e.colorNeutral800.value}14`},componentIconButtonActive:{cssVar:\"--cellula--component--icon-button--color--active\",value:`${e.colorNeutral800.value}1F`},componentIconButtonHoverInteractive:{cssVar:\"--cellula--component--icon-button--color--hover-interactive\",value:`var(${e.colorAccent800t08.cssVar})`},componentIconButtonActiveInteractive:{cssVar:\"--cellula--component--icon-button--color--active-interactive\",value:`var(${e.colorAccent800t12.cssVar})`},componentIconButtonHoverOnDark:{cssVar:\"--cellula--component--icon-button--color--hover-on-dark\",value:`${e.colorNeutral0.value}14`},componentIconButtonActiveOnDark:{cssVar:\"--cellula--component--icon-button--color--active-on-dark\",value:`${e.colorNeutral0.value}1F`},componentIconButtonHoverInfo:{cssVar:\"--cellula--component--icon-button--color--hover-info\",value:`${e.colorInfo800.value}14`},componentIconButtonActiveInfo:{cssVar:\"--cellula--component--icon-button--color--active-info\",value:`${e.colorInfo800.value}1F`},componentIconButtonHoverSuccess:{cssVar:\"--cellula--component--icon-button--color--hover-success\",value:`${e.colorSuccess800.value}14`},componentIconButtonActiveSuccess:{cssVar:\"--cellula--component--icon-button--color--active-success\",value:`${e.colorSuccess800.value}1F`},componentIconButtonHoverWarning:{cssVar:\"--cellula--component--icon-button--color--hover-warning\",value:`${e.colorWarning800.value}14`},componentIconButtonActiveWarning:{cssVar:\"--cellula--component--icon-button--color--active-warning\",value:`${e.colorWarning800.value}1F`},componentIconButtonHoverDanger:{cssVar:\"--cellula--component--icon-button--color--hover-danger\",value:`${e.colorDanger800.value}14`},componentIconButtonActiveDanger:{cssVar:\"--cellula--component--icon-button--color--active-danger\",value:`${e.colorDanger800.value}1F`}};import{coreTokens as l}from\"@cellula/react\";var o={...l,color:{border:{default:`var(${r.colorNeutral400.cssVar})`,brand:`var(${r.colorPrimary400.cssVar})`,interactive:`var(${r.colorPrimary800.cssVar})`,input:`var(${r.colorNeutral500.cssVar})`,highlight:`var(${r.colorAccent300.cssVar})`,muted:`var(${r.colorNeutral200.cssVar})`},content:{default:`var(${r.colorNeutral1000.cssVar})`,brand:`var(${r.colorPrimary1000.cssVar})`,mutedBrand:`var(${r.colorPrimary800.cssVar})`,interactive:`var(${r.colorPrimary800.cssVar})`,muted:`var(${r.colorNeutral800.cssVar})`,placeholder:`var(${r.colorNeutral500.cssVar})`,onInteractive:`var(${r.colorNeutral0.cssVar})`,onDark:`var(${r.colorNeutral0.cssVar})`,onAppNav:`var(${r.colorNeutral0.cssVar})`,highlight:`var(${r.colorAccent800.cssVar})`,onHighlight:`var(${r.colorAccent900.cssVar})`},bg:{pageBrand:`var(${r.colorPrimary100.cssVar})`,surfaceBrand:`var(${r.colorPrimary200.cssVar})`,surfaceDarkBrand:`var(${r.colorPrimary700.cssVar})`,highlight:`var(${r.colorAccent300.cssVar})`,interactive:`var(${r.colorPrimary800.cssVar})`,interactiveHover:`var(${r.colorPrimary900.cssVar})`,interactiveActive:`var(${r.colorPrimary1000.cssVar})`,interactiveMutedHover:`var(${r.colorPrimary800t08.cssVar})`,interactiveMutedActive:`var(${r.colorPrimary800t12.cssVar})`,page:`var(${r.colorNeutral100.cssVar})`,surface:`var(${r.colorNeutral0.cssVar})`,surfaceDark:`var(${r.colorNeutral800.cssVar})`,deselected:`var(${r.colorNeutral400.cssVar})`,deselectedHover:`var(${r.colorNeutral500.cssVar})`,deselectedActive:`var(${r.colorNeutral600.cssVar})`,readOnly:`var(${r.colorNeutral200.cssVar})`},warning:{bg:`var(${r.colorWarning300.cssVar})`,bgHover:`var(${r.colorWarning400.cssVar})`,border:`var(${r.colorWarning600.cssVar})`,borderMuted:`var(${r.colorWarning500.cssVar})`,content:`var(${r.colorWarning1000.cssVar})`,contentMuted:`var(${r.colorWarning800.cssVar})`},danger:{bg:`var(${r.colorDanger300.cssVar})`,bgHover:`var(${r.colorDanger400.cssVar})`,bgActive:`var(${r.colorDanger500.cssVar})`,border:`var(${r.colorDanger600.cssVar})`,borderMuted:`var(${r.colorDanger500.cssVar})`,content:`var(${r.colorDanger1000.cssVar})`,contentMuted:`var(${r.colorDanger800.cssVar})`},success:{bg:`var(${r.colorSuccess300.cssVar})`,bgHover:`var(${r.colorSuccess400.cssVar})`,border:`var(${r.colorSuccess600.cssVar})`,borderMuted:`var(${r.colorSuccess500.cssVar})`,content:`var(${r.colorSuccess1000.cssVar})`,contentMuted:`var(${r.colorSuccess800.cssVar})`},info:{bg:`var(${r.colorInfo300.cssVar})`,bgHover:`var(${r.colorInfo400.cssVar})`,border:`var(${r.colorInfo600.cssVar})`,borderMuted:`var(${r.colorInfo500.cssVar})`,content:`var(${r.colorInfo1000.cssVar})`,contentMuted:`var(${r.colorInfo800.cssVar})`},focus:`var(${r.colorFocus.cssVar})`},component:{iconButton:{hover:`var(${r.componentIconButtonHover.cssVar})`,active:`var(${r.componentIconButtonActive.cssVar})`,hoverInteractive:`var(${r.componentIconButtonHoverInteractive.cssVar})`,activeInteractive:`var(${r.componentIconButtonActiveInteractive.cssVar})`,hoverOnDark:`var(${r.componentIconButtonHoverOnDark.cssVar})`,activeOnDark:`var(${r.componentIconButtonActiveOnDark.cssVar})`,hoverInfo:`var(${r.componentIconButtonHoverInfo.cssVar})`,activeInfo:`var(${r.componentIconButtonActiveInfo.cssVar})`,hoverSuccess:`var(${r.componentIconButtonHoverSuccess.cssVar})`,activeSuccess:`var(${r.componentIconButtonActiveSuccess.cssVar})`,hoverWarning:`var(${r.componentIconButtonHoverWarning.cssVar})`,activeWarning:`var(${r.componentIconButtonActiveWarning.cssVar})`,hoverDanger:`var(${r.componentIconButtonHoverDanger.cssVar})`,activeDanger:`var(${r.componentIconButtonActiveDanger.cssVar})`}}},a={primary:{100:`var(${r.colorPrimary100.cssVar})`,200:`var(${r.colorPrimary200.cssVar})`,300:`var(${r.colorPrimary300.cssVar})`,400:`var(${r.colorPrimary400.cssVar})`,500:`var(${r.colorPrimary500.cssVar})`,600:`var(${r.colorPrimary600.cssVar})`,700:`var(${r.colorPrimary700.cssVar})`,800:`var(${r.colorPrimary800.cssVar})`,900:`var(${r.colorPrimary900.cssVar})`,1e3:`var(${r.colorPrimary1000.cssVar})`},accent:{100:`var(${r.colorAccent100.cssVar})`,200:`var(${r.colorAccent200.cssVar})`,300:`var(${r.colorAccent300.cssVar})`,400:`var(${r.colorAccent400.cssVar})`,500:`var(${r.colorAccent500.cssVar})`,600:`var(${r.colorAccent600.cssVar})`,700:`var(${r.colorAccent700.cssVar})`,800:`var(${r.colorAccent800.cssVar})`,900:`var(${r.colorAccent900.cssVar})`,1e3:`var(${r.colorAccent1000.cssVar})`},neutral:{0:`var(${r.colorNeutral0.cssVar})`,100:`var(${r.colorNeutral100.cssVar})`,200:`var(${r.colorNeutral200.cssVar})`,300:`var(${r.colorNeutral300.cssVar})`,400:`var(${r.colorNeutral400.cssVar})`,500:`var(${r.colorNeutral500.cssVar})`,600:`var(${r.colorNeutral600.cssVar})`,700:`var(${r.colorNeutral700.cssVar})`,800:`var(${r.colorNeutral800.cssVar})`,900:`var(${r.colorNeutral900.cssVar})`,1e3:`var(${r.colorNeutral1000.cssVar})`},warning:{100:`var(${r.colorWarning100.cssVar})`,200:`var(${r.colorWarning200.cssVar})`,300:`var(${r.colorWarning300.cssVar})`,400:`var(${r.colorWarning400.cssVar})`,500:`var(${r.colorWarning500.cssVar})`,600:`var(${r.colorWarning600.cssVar})`,700:`var(${r.colorWarning700.cssVar})`,800:`var(${r.colorWarning800.cssVar})`,900:`var(${r.colorWarning900.cssVar})`,1e3:`var(${r.colorWarning1000.cssVar})`},danger:{200:`var(${r.colorDanger200.cssVar})`,100:`var(${r.colorDanger100.cssVar})`,300:`var(${r.colorDanger300.cssVar})`,400:`var(${r.colorDanger400.cssVar})`,500:`var(${r.colorDanger500.cssVar})`,600:`var(${r.colorDanger600.cssVar})`,700:`var(${r.colorDanger700.cssVar})`,800:`var(${r.colorDanger800.cssVar})`,900:`var(${r.colorDanger900.cssVar})`,1e3:`var(${r.colorDanger1000.cssVar})`},success:{100:`var(${r.colorSuccess100.cssVar})`,200:`var(${r.colorSuccess200.cssVar})`,300:`var(${r.colorSuccess300.cssVar})`,400:`var(${r.colorSuccess400.cssVar})`,500:`var(${r.colorSuccess500.cssVar})`,600:`var(${r.colorSuccess600.cssVar})`,700:`var(${r.colorSuccess700.cssVar})`,800:`var(${r.colorSuccess800.cssVar})`,900:`var(${r.colorSuccess900.cssVar})`,1e3:`var(${r.colorSuccess1000.cssVar})`},info:{100:`var(${r.colorInfo100.cssVar})`,200:`var(${r.colorInfo200.cssVar})`,300:`var(${r.colorInfo300.cssVar})`,400:`var(${r.colorInfo400.cssVar})`,500:`var(${r.colorInfo500.cssVar})`,600:`var(${r.colorInfo600.cssVar})`,700:`var(${r.colorInfo700.cssVar})`,800:`var(${r.colorInfo800.cssVar})`,900:`var(${r.colorInfo900.cssVar})`,1e3:`var(${r.colorInfo1000.cssVar})`}};function c(n){return`${n/16}rem`}var m={tokens:{...r},components:{common:{focusColor:o.color.focus},aspectRatio:{},accordion:{headerFont:o.text.label.largeSemiBold,bodyFont:o.text.body.regular},commonInput:{baseBorderColor:o.color.border.input,basePaddingHorizontal:o.spacing.x1_5,basePaddingVertical:o.spacing.x1_5,baseFont:o.text.label.regular,baseTextColor:o.color.content.default,baseBorderRadius:o.borderRadius.small,baseBackground:o.color.bg.surface,focusRingColor:o.color.bg.interactiveMutedActive,hoverBorderColor:o.color.border.interactive,readOnlyBackground:o.color.bg.readOnly,readOnlyBorderColor:o.color.bg.readOnly,placeholderTextColor:o.color.content.placeholder,labelMarginBottom:o.spacing.x0_5,descriptionMarginBottom:o.spacing.x1,invalidBorderColor:o.color.danger.border,helpTextGap:o.spacing.x1_5},avatar:{background:a.neutral[100],iconBackground:o.color.bg.surfaceBrand,iconColor:o.color.content.mutedBrand,fallbackBackground:o.color.bg.surfaceBrand,fallbackColor:o.color.content.mutedBrand},button:{baseFont:o.text.label.largeSemiBold,baseBorderRadius:o.borderRadius.pill,baseFocusRingColor:o.color.focus,baseIconMarginToText:o.spacing.x1,primaryBackground:o.color.bg.interactive,primaryHoverBackground:o.color.bg.interactiveHover,primaryActiveBackground:o.color.bg.interactiveActive,primaryTextColor:o.color.content.onInteractive,secondaryBorderColor:o.color.bg.interactive,secondaryHoverBackground:o.color.bg.interactiveMutedHover,secondaryActiveBackground:o.color.bg.interactiveMutedActive,secondaryTextColor:o.color.content.interactive,ghostHoverBackground:o.color.bg.interactiveMutedHover,ghostActiveBackground:o.color.bg.interactiveMutedActive,ghostTextColor:o.color.content.interactive,dangerBackground:o.color.danger.bg,dangerHoverBackground:o.color.danger.bgHover,dangerActiveBackground:o.color.danger.bgActive,dangerTextColor:o.color.danger.content,xSmallPaddingVertical:o.spacing.x0_5,xSmallPaddingHorizontal:o.spacing.x2,xSmallFont:o.text.label.smallSemiBold,xSmallMinWidth:c(72),xSmallMinHeight:c(32),xSmallIconPadding:o.spacing.x1_5,xSmallIconSize:o.size.x2_5,smallPaddingVertical:o.spacing.x1,smallPaddingHorizontal:o.spacing.x3,smallFont:o.text.body.semiBold,smallMinWidth:c(88),smallMinHeight:c(40),smallIconPadding:o.spacing.x2,smallIconSize:o.size.x2_5,mediumPaddingVertical:o.spacing.x1,mediumPaddingHorizontal:o.spacing.x4,mediumFont:o.text.body.semiBold,mediumMinWidth:c(96),mediumMinHeight:c(48),mediumIconPadding:o.spacing.x2_5,mediumIconSize:o.size.x2_5,largePaddingVertical:o.spacing.x1_5,largePaddingHorizontal:o.spacing.x4,largeFont:o.text.label.largeSemiBold,largeMinWidth:c(104),largeMinHeight:c(56),largeIconPadding:o.spacing.x3,largeIconSize:o.size.x3,xLargePaddingVertical:o.spacing.x1_5,xLargePaddingHorizontal:o.spacing.x4,xLargeFont:o.text.label.largeSemiBold,xLargeMinWidth:c(120),xLargeMinHeight:c(64),xLargeIconPadding:o.spacing.x3,xLargeIconSize:o.size.x3},badgeNumber:{interactiveBackground:o.color.bg.highlight,interactiveTextColor:o.color.content.onHighlight,brandDarkBackground:o.color.bg.surfaceDarkBrand,brandDarkTextColor:o.color.content.onDark,brandLightBackground:o.color.bg.surfaceBrand,brandLightTextColor:o.color.content.brand,neutralDarkBackground:o.color.bg.surfaceDark,neutralDarkTextColor:o.color.content.onDark,neutralLightBackground:o.color.bg.surface,neutralLightTextColor:o.color.content.default,smallText:o.text.label.xSmallSemiBold,mediumText:o.text.label.smallSemiBold},badgeText:{basePadding:`${o.spacing.x0_25} ${o.spacing.x1} ${o.spacing.x0_25} ${o.spacing.x0_5}`,baseBorderRadius:o.borderRadius.small,baseAdjustTextPadding:o.spacing.x0_5,interactiveBackground:o.color.bg.highlight,interactiveTextColor:o.color.content.onHighlight,brandDarkBackground:o.color.bg.surfaceDarkBrand,brandDarkTextColor:o.color.content.onDark,brandLightBackground:o.color.bg.surfaceBrand,brandLightTextColor:o.color.content.brand,neutralDarkBackground:o.color.bg.surfaceDark,neutralDarkTextColor:o.color.content.onDark,neutralLightBackground:o.color.bg.surface,neutralLightTextColor:o.color.content.default,successBackground:o.color.success.bg,successTextColor:o.color.success.contentMuted,infoBackground:o.color.info.bg,infoTextColor:o.color.info.contentMuted,warningBackground:o.color.warning.bg,warningTextColor:o.color.warning.contentMuted,dangerBackground:o.color.danger.bg,dangerTextColor:o.color.danger.contentMuted,smallText:o.text.label.xSmallRegular,smallHeight:c(20),mediumText:o.text.label.smallRegular,mediumHeight:c(24)},divider:{baseBackground:o.color.border.default},icon:{xSmallSize:o.size.x2,smallSize:o.size.x2_5,mediumSize:o.size.x3,largeSize:o.size.x4,xLargeSize:o.size.x5},iconButton:{baseText:o.text.label.largeSemiBold,baseBorderRadius:o.borderRadius.pill,baseHoverBackground:o.component.iconButton.hover,baseActiveBackground:o.component.iconButton.active,baseFocusRingColor:o.color.focus,interactiveTextColor:o.color.content.interactive,interactiveHoverBackground:o.component.iconButton.hover,interactiveActiveBackground:o.component.iconButton.active,onDarkTextColor:o.color.content.onDark,onDarkHoverBackground:o.component.iconButton.hoverOnDark,onDarkActiveBackground:o.component.iconButton.activeOnDark,infoTextColor:o.color.info.contentMuted,infoHoverBackground:o.component.iconButton.hoverInfo,infoActiveBackground:o.component.iconButton.activeInfo,successTextColor:o.color.success.contentMuted,successHoverBackground:o.component.iconButton.hoverSuccess,successActiveBackground:o.component.iconButton.activeSuccess,warningTextColor:o.color.warning.contentMuted,warningHoverBackground:o.component.iconButton.hoverWarning,warningActiveBackground:o.component.iconButton.activeWarning,dangerTextColor:o.color.danger.contentMuted,dangerHoverBackground:o.component.iconButton.hoverDanger,dangerActiveBackground:o.component.iconButton.activeDanger,smallPadding:o.spacing.x0_25,smallIconSize:o.size.x2_5,mediumPadding:o.spacing.x0_5,mediumIconSize:o.size.x3,largePadding:o.spacing.x0_5,largeIconSize:o.size.x4},notificationAlert:{basePadding:o.spacing.x1,baseBorderRadius:o.borderRadius.small,baseText:o.text.label.regular,baseIconMargin:o.spacing.x1,infoBorderColor:o.color.info.borderMuted,infoBackground:o.color.info.bg,infoTextColor:o.color.info.content,infoIconColor:o.color.info.contentMuted,successBorderColor:o.color.success.borderMuted,successBackground:o.color.success.bg,successTextColor:o.color.success.content,successIconColor:o.color.success.contentMuted,warningBorderColor:o.color.warning.borderMuted,warningBackground:o.color.warning.bg,warningTextColor:o.color.warning.content,warningIconColor:o.color.warning.contentMuted,dangerBorderColor:o.color.danger.borderMuted,dangerBackground:o.color.danger.bg,dangerTextColor:o.color.danger.content,dangerIconColor:o.color.danger.contentMuted},spinner:{xSmallSize:o.size.x2_5,smallSize:o.size.x3,mediumSize:o.size.x4,largeSize:o.size.x5},tooltip:{basePadding:`${o.spacing.x1} ${o.spacing.x1_5}`,baseText:o.text.label.smallRegular,baseTextColor:o.color.content.onDark,baseBackground:o.color.bg.surfaceDark,baseElevation:o.elevation.lifted,baseBorderRadius:o.borderRadius.small,baseArrowMargin:o.spacing.x1,darkBackground:o.color.bg.surfaceDark,darkTextColor:o.color.content.onDark,lightBackground:o.color.bg.surface,lightTextColor:o.color.content.default,interactiveBackground:o.color.bg.interactive,interactiveTextColor:o.color.content.onInteractive,arrowSize:o.size.x1_5,arrowBorderRadius:o.borderRadius.xSmall},input:{baseBorderColor:o.color.border.input,basePaddingHorizontal:o.spacing.x1_5,basePaddingVertical:o.spacing.x1_5,baseFont:o.text.label.regular,baseTextColor:o.color.content.default,baseBorderRadius:o.borderRadius.small,baseBackground:o.color.bg.surface,baseMinHeight:c(48),focusRingColor:o.color.bg.interactiveMutedActive,hoverBorderColor:o.color.border.interactive,readOnlyBackground:o.color.bg.readOnly,readOnlyBorderColor:o.color.bg.readOnly,placeholderTextColor:o.color.content.placeholder,invalidBorderColor:o.color.danger.border,iconPaddingLeft:o.spacing.x6,iconColor:o.color.content.muted,iconSize:o.size.x3,iconFocusRingColor:o.color.focus},textArea:{baseBorderColor:o.color.border.input,basePaddingHorizontal:o.spacing.x1_5,basePaddingVertical:o.spacing.x1_5,baseFont:o.text.label.regular,baseTextColor:o.color.content.default,baseBorderRadius:o.borderRadius.small,baseBackground:o.color.bg.surface,baseMinHeight:c(48),focusRingColor:o.color.bg.interactiveMutedActive,hoverBorderColor:o.color.border.interactive,readOnlyBackground:o.color.bg.readOnly,readOnlyBorderColor:o.color.bg.readOnly,placeholderTextColor:o.color.content.placeholder,invalidBorderColor:o.color.danger.border,invalidPaddingRight:o.spacing.x5,invalidIconColor:o.color.danger.contentMuted,invalidIconSize:o.size.x3},label:{baseFont:o.text.label.semiBold,baseTextColor:o.color.content.default,optionalFont:o.text.label.xSmallRegular,optionalTextColor:o.color.content.muted},inputDate:{iconPaddingLeft:o.spacing.x6,iconColor:o.color.content.muted,iconSize:o.size.x3},inputTime:{iconPaddingLeft:o.spacing.x6,iconColor:o.color.content.muted,iconSize:o.size.x3},inputPhoneNumber:{countrySelectTriggerHoverBg:o.color.bg.interactiveMutedHover,countrySelectTriggerActiveBg:o.color.bg.interactiveMutedActive},dialogAlert:{background:o.color.bg.surface,borderRadius:o.borderRadius.large,boxShadow:o.elevation.flying,padding:o.spacing.x1,zIndex:\"2\",maxWidth:\"550px\",innerPadding:o.spacing.x2,headerText:o.text.heading.xSmall,headerTextAtMediumAndAbove:o.text.heading.small,headerMarginBottom:o.spacing.x1_5,bodyText:o.text.body.regular,bodyTextAtMediumAndAbove:o.text.body.largeRegular,bodyMarginBottom:o.spacing.x3,errorMarginBottom:o.spacing.x2_5,buttonGroupGap:o.spacing.x1},dialogModal:{background:o.color.bg.surface,borderRadius:o.borderRadius.large,boxShadow:o.elevation.flying,padding:o.spacing.x2_5,zIndex:\"2\",gap:o.spacing.x2_5,titleFont:o.text.heading.xSmall,titleFontAtMediumAndAbove:o.text.heading.small,descriptionFont:o.text.body.regular,descriptionFontAtMediumAndAbove:o.text.body.largeRegular,contentFont:o.text.body.regular},tabNavigation:{triggerPadding:`${o.spacing.x1} ${o.spacing.x1_5}`,triggerFont:o.text.label.largeRegular,triggerPassiveColor:o.color.content.muted,triggerActiveFont:o.text.label.largeSemiBold,triggerActiveColor:o.color.content.default,triggerActiveBackground:o.color.content.interactive,triggerHoverColor:o.color.content.interactive,sliderBackground:o.color.border.default},inputSelect:{triggerColor:o.color.content.default,triggerBackground:o.color.bg.surface,triggerPlaceholderColor:o.color.content.muted,triggerSelectedBackground:o.color.bg.interactiveMutedActive,triggerInvalidBackground:o.color.bg.surface,triggerInvalidBorder:o.color.danger.border,selectIconColor:o.color.content.muted,contentBackground:o.color.bg.surface,contentBorderRadius:o.borderRadius.small,contentBorderColor:o.color.border.default,contentBoxShadow:o.elevation.floating,itemColor:o.color.content.default,itemBorderRadius:o.borderRadius.xSmall,itemHeight:o.size.x5,itemHeightMobile:o.size.x7,itemPadding:`${o.spacing.x1} ${o.spacing.x4} ${o.spacing.x1} ${o.spacing.x1}`,itemPaddingMobile:`${o.spacing.x1} ${o.spacing.x5} ${o.spacing.x1} ${o.spacing.x2}`,itemDisabledColor:o.color.content.muted,itemDisabledBackground:o.color.bg.readOnly,itemCheckedFont:o.text.label.semiBold,itemCheckedBackground:o.color.bg.interactiveMutedActive,itemHighlightBackground:o.color.bg.interactiveMutedHover,itemSeparatorBackground:o.color.border.default,itemSeparatorSpacing:o.spacing.x0_5,itemIndicatorSpacing:o.spacing.x1,itemIndicatorSpacingMobile:o.spacing.x2,itemIndicatorColor:o.color.content.interactive,itemScrollButtonColor:o.color.content.muted,itemViewportPadding:o.spacing.x0_5,itemViewportPaddingMobile:`0 0 ${o.spacing.x1_5}`},inputRadio:{focusColor:o.color.focus,labelMarginBottom:o.spacing.x0_5,itemsGap:o.spacing.x1,itemsMargin:o.spacing.x0_5,itemsHorizontalGap:`${o.spacing.x1} ${o.spacing.x2}`,outlinedItemsGap:o.spacing.x0_5,itemFont:o.text.label.regular,itemTextColor:o.color.content.default,itemGap:o.spacing.x1,indicatorBackground:o.color.bg.surface,indicatorBorderColor:o.color.border.input,indicatorOuterSize:o.size.x3,indicatorInnerSize:o.size.x1_5,activeIndicatorOutlineColor:o.color.bg.interactiveMutedActive,checkedItemFont:o.text.label.semiBold,checkedIndicatorBorderColor:o.color.border.interactive,outlinedItemPadding:o.spacing.x1_5,outlinedItemMinHeight:o.size.x6,outlinedItemBorderColor:o.color.border.input,outlinedItemBorderRadius:o.borderRadius.medium,hoverOutlinedItemBorderColor:o.color.border.interactive,activeOutlinedItemOutlineColor:o.color.bg.interactiveMutedActive,checkedOutlinedItemBackground:o.color.bg.interactiveMutedActive,disabledOutlinedItemBackground:o.color.bg.readOnly,disabledIndicatorBorderColor:o.color.border.input,disabledIndicatorBackground:o.color.bg.readOnly},inputCheckbox:{focusColor:o.color.focus,labelMarginBottom:o.spacing.x0_5,itemsGap:o.spacing.x1,itemsMargin:o.spacing.x0_5,itemsHorizontalGap:`${o.spacing.x1} ${o.spacing.x2}`,outlinedItemsGap:o.spacing.x0_5,itemFont:o.text.label.regular,itemTextColor:o.color.content.default,itemGap:o.spacing.x1,indicatorBackground:o.color.bg.surface,indicatorBorderColor:o.color.border.input,indicatorSize:o.size.x2_5,activeIndicatorOutlineColor:o.color.bg.interactiveMutedActive,checkedItemFont:o.text.label.semiBold,checkedIndicatorBorderColor:o.color.bg.interactive,checkedIndicatorBackground:o.color.bg.interactive,outlinedItemPadding:o.spacing.x1_5,outlinedItemMinHeight:o.size.x6,outlinedItemBorderColor:o.color.border.input,outlinedItemBorderRadius:o.borderRadius.medium,hoverOutlinedItemBorderColor:o.color.border.interactive,activeOutlinedItemOutlineColor:o.color.bg.interactiveMutedActive,checkedOutlinedItemBackground:o.color.bg.interactiveMutedActive,disabledOutlinedItemBackground:o.color.bg.readOnly,disabledIndicatorBorderColor:o.color.border.input,disabledIndicatorBackground:o.color.bg.readOnly},inputSwitch:{labelColor:o.color.content.default,labelFont:o.text.label.regular,labelCheckedFont:o.text.label.semiBold,inputIconColor:o.color.bg.surface,inputBg:o.color.bg.deselected,inputCheckedBg:o.color.bg.interactive,inputCheckedHoverBg:o.color.bg.interactiveHover,inputCheckedActiveBg:o.color.bg.interactiveActive,inputHoverBg:o.color.bg.deselectedHover,inputActiveBg:o.color.bg.deselectedActive,inputFocus:o.color.focus,thumbBg:o.color.bg.surface},inputCombobox:{triggerFontColor:o.color.content.default,triggerIconColor:o.color.content.muted,triggerSelectedFont:o.text.label.semiBold,triggerSelectedBackground:o.color.bg.interactiveMutedActive,contentBackground:o.color.bg.surface,contentBorderRadius:o.borderRadius.small,contentBorderColor:o.color.border.default,contentBoxShadow:o.elevation.floating,contentFontColor:o.color.content.default,inputIconColor:o.color.content.muted,inputFont:o.text.body.regular,inputBorderColor:o.color.border.default,inputHeight:`${o.size.x3}`,emptyFont:o.text.label.regular,emptyFontColor:o.color.content.default,emptyPadding:`${o.spacing.x1}`,itemFont:o.text.label.regular,itemFontColor:o.color.content.default,itemBorderRadius:o.borderRadius.xSmall,itemMinHeight:o.size.x5,itemPadding:`${o.spacing.x1}`,itemHoverBackground:o.color.bg.interactiveMutedHover,itemSelectedBackground:o.color.bg.interactiveMutedActive,itemSubLabelFont:o.text.label.xSmallRegular,itemSubLabelFontColor:o.color.content.muted},textLink:{baseText:o.text.label.semiBold,baseTextColor:o.color.content.interactive,baseFocusRingColor:o.color.focus,baseIconSize:o.size.x2,baseIconMargin:o.spacing.x1,activeTextColor:o.color.content.default,smallText:o.text.label.smallSemiBold,smallIconSize:o.size.x2,smallIconMargin:o.size.x0_5,mediumText:o.text.label.semiBold,mediumIconSize:o.size.x2_5,mediumIconMargin:o.size.x1,largeText:o.text.label.largeSemiBold,largeIconSize:o.size.x3,largeIconMargin:o.size.x1},helpText:{baseFont:o.text.label.xSmallRegular,baseTextColor:o.color.content.muted,baseMarginTop:o.spacing.x0_5,baseMarginLeft:o.spacing.x0_25,invalidTextColor:o.color.danger.contentMuted},description:{baseFont:o.text.label.smallRegular,baseTextColor:o.color.content.muted},characterCount:{baseText:o.text.label.xSmallRegular,baseTextColor:o.color.content.muted,baseMarginTop:o.spacing.x0_5,invalidTextColor:o.color.danger.contentMuted},fileViewer:{background:\"#000\",textColor:o.color.content.onDark},dropdownMenu:{contentBackground:o.color.bg.surface,contentBorderRadius:o.borderRadius.small,contentBorderColor:o.color.border.default,contentBoxShadow:o.elevation.floating,itemFont:o.text.label.regular,itemFontColor:o.color.content.default,itemBorderRadius:o.borderRadius.xSmall,itemMinHeight:o.size.x5,itemPadding:`${o.spacing.x1}`,itemHoverBackground:o.color.bg.interactiveMutedHover,itemActiveBackground:o.color.bg.interactiveMutedActive,itemDisabledBackground:o.color.bg.readOnly},attachment:{baseBackground:o.color.bg.surface,baseBorderColor:o.color.border.default,baseBorderRadius:o.borderRadius.small,baseBoxShadow:o.elevation.skim,basePadding:o.spacing.x1,hoverBoxShadow:o.elevation.lifted,previewBackground:o.color.bg.surfaceBrand,previewIconColor:o.color.content.mutedBrand,nameFont:o.text.label.smallSemiBold,nameFontColor:o.color.content.default,metaFont:o.text.label.smallRegular,metaFontColor:o.color.content.muted},toastNotification:{baseBorderRadius:o.borderRadius.medium,basePadding:o.size.x2,baseGap:o.size.x2,baseElevation:o.elevation.floating,successIconColor:o.color.success.content,successTextColor:o.color.success.content,successBackground:o.color.success.bg,successBorderColor:o.color.success.border,dangerIconColor:o.color.danger.content,dangerTextColor:o.color.danger.content,dangerBackground:o.color.danger.bg,dangerBorderColor:o.color.danger.border,warningIconColor:o.color.warning.content,warningTextColor:o.color.warning.content,warningBackground:o.color.warning.bg,warningBorderColor:o.color.warning.border,infoIconColor:o.color.info.content,infoTextColor:o.color.info.content,infoBackground:o.color.info.bg,infoBorderColor:o.color.info.border},inputRating:{focusColor:o.color.focus,labelMarginBottom:o.spacing.x0_5,itemsGap:o.spacing.x0_5,itemsMargin:o.spacing.x0_5,itemsHorizontalGap:`${o.spacing.x1} ${o.spacing.x2}`,outlinedItemsGap:o.spacing.x0_5,itemFont:o.text.label.regular,itemTextColor:o.color.content.default,itemGap:o.spacing.x1,indicatorBackground:o.color.bg.surface,indicatorBorderColor:o.color.border.input,indicatorHover:o.color.bg.interactiveMutedActive,indicatorOuterSize:o.size.x5,indicatorInnerSize:o.size.x1_5,activeIndicatorOutlineColor:o.color.bg.interactiveMutedActive,checkedItemFont:o.text.label.semiBold,checkedIndicatorBorderColor:o.color.border.interactive,outlinedItemPadding:o.spacing.x1_5,outlinedItemMinHeight:o.size.x6,outlinedItemBorderColor:o.color.border.input,outlinedItemBorderRadius:o.borderRadius.medium,hoverOutlinedItemBorderColor:o.color.border.interactive,activeOutlinedItemOutlineColor:o.color.bg.interactiveMutedActive,checkedOutlinedItemBackground:o.color.bg.interactiveMutedActive,disabledOutlinedItemBackground:o.color.bg.readOnly,disabledIndicatorBorderColor:o.color.border.input,disabledIndicatorBackground:o.color.bg.readOnly}}};export{a as primitiveColorTokens,c as rem,m as theme,o as tokens};\n","import { createContext } from 'react';\n\n/**\n * @public\n */\nconst MotionConfigContext = createContext({\n transformPagePoint: (p) => p,\n isStatic: false,\n reducedMotion: \"never\",\n});\n\nexport { MotionConfigContext };\n","import { createContext } from 'react';\n\nconst MotionContext = createContext({});\n\nexport { MotionContext };\n","import { createContext } from 'react';\n\n/**\n * @public\n */\nconst PresenceContext = createContext(null);\n\nexport { PresenceContext };\n","const isBrowser = typeof document !== \"undefined\";\n\nexport { isBrowser };\n","import { useLayoutEffect, useEffect } from 'react';\nimport { isBrowser } from './is-browser.mjs';\n\nconst useIsomorphicLayoutEffect = isBrowser ? useLayoutEffect : useEffect;\n\nexport { useIsomorphicLayoutEffect };\n","import { createContext } from 'react';\n\nconst LazyContext = createContext({ strict: false });\n\nexport { LazyContext };\n","function isRefObject(ref) {\n return (typeof ref === \"object\" &&\n Object.prototype.hasOwnProperty.call(ref, \"current\"));\n}\n\nexport { isRefObject };\n","/**\n * Decides if the supplied variable is variant label\n */\nfunction isVariantLabel(v) {\n return typeof v === \"string\" || Array.isArray(v);\n}\n\nexport { isVariantLabel };\n","function isAnimationControls(v) {\n return typeof v === \"object\" && typeof v.start === \"function\";\n}\n\nexport { isAnimationControls };\n","const variantPriorityOrder = [\n \"animate\",\n \"whileInView\",\n \"whileFocus\",\n \"whileHover\",\n \"whileTap\",\n \"whileDrag\",\n \"exit\",\n];\nconst variantProps = [\"initial\", ...variantPriorityOrder];\n\nexport { variantPriorityOrder, variantProps };\n","import { isAnimationControls } from '../../animation/utils/is-animation-controls.mjs';\nimport { isVariantLabel } from './is-variant-label.mjs';\nimport { variantProps } from './variant-props.mjs';\n\nfunction isControllingVariants(props) {\n return (isAnimationControls(props.animate) ||\n variantProps.some((name) => isVariantLabel(props[name])));\n}\nfunction isVariantNode(props) {\n return Boolean(isControllingVariants(props) || props.variants);\n}\n\nexport { isControllingVariants, isVariantNode };\n","import { useContext, useMemo } from 'react';\nimport { MotionContext } from './index.mjs';\nimport { getCurrentTreeVariants } from './utils.mjs';\n\nfunction useCreateMotionContext(props) {\n const { initial, animate } = getCurrentTreeVariants(props, useContext(MotionContext));\n return useMemo(() => ({ initial, animate }), [variantLabelsAsDependency(initial), variantLabelsAsDependency(animate)]);\n}\nfunction variantLabelsAsDependency(prop) {\n return Array.isArray(prop) ? prop.join(\" \") : prop;\n}\n\nexport { useCreateMotionContext };\n","import { isVariantLabel } from '../../render/utils/is-variant-label.mjs';\nimport { isControllingVariants } from '../../render/utils/is-controlling-variants.mjs';\n\nfunction getCurrentTreeVariants(props, context) {\n if (isControllingVariants(props)) {\n const { initial, animate } = props;\n return {\n initial: initial === false || isVariantLabel(initial)\n ? initial\n : undefined,\n animate: isVariantLabel(animate) ? animate : undefined,\n };\n }\n return props.inherit !== false ? context : {};\n}\n\nexport { getCurrentTreeVariants };\n","const featureProps = {\n animation: [\n \"animate\",\n \"variants\",\n \"whileHover\",\n \"whileTap\",\n \"exit\",\n \"whileInView\",\n \"whileFocus\",\n \"whileDrag\",\n ],\n exit: [\"exit\"],\n drag: [\"drag\", \"dragControls\"],\n focus: [\"whileFocus\"],\n hover: [\"whileHover\", \"onHoverStart\", \"onHoverEnd\"],\n tap: [\"whileTap\", \"onTap\", \"onTapStart\", \"onTapCancel\"],\n pan: [\"onPan\", \"onPanStart\", \"onPanSessionStart\", \"onPanEnd\"],\n inView: [\"whileInView\", \"onViewportEnter\", \"onViewportLeave\"],\n layout: [\"layout\", \"layoutId\"],\n};\nconst featureDefinitions = {};\nfor (const key in featureProps) {\n featureDefinitions[key] = {\n isEnabled: (props) => featureProps[key].some((name) => !!props[name]),\n };\n}\n\nexport { featureDefinitions };\n","import { createContext } from 'react';\n\nconst LayoutGroupContext = createContext({});\n\nexport { LayoutGroupContext };\n","import { createContext } from 'react';\n\n/**\n * Internal, exported only for usage in Framer\n */\nconst SwitchLayoutGroupContext = createContext({});\n\nexport { SwitchLayoutGroupContext };\n","const motionComponentSymbol = Symbol.for(\"motionComponentSymbol\");\n\nexport { motionComponentSymbol };\n","import * as React from 'react';\nimport { forwardRef, useContext } from 'react';\nimport { MotionConfigContext } from '../context/MotionConfigContext.mjs';\nimport { MotionContext } from '../context/MotionContext/index.mjs';\nimport { useVisualElement } from './utils/use-visual-element.mjs';\nimport { useMotionRef } from './utils/use-motion-ref.mjs';\nimport { useCreateMotionContext } from '../context/MotionContext/create.mjs';\nimport { loadFeatures } from './features/load-features.mjs';\nimport { isBrowser } from '../utils/is-browser.mjs';\nimport { LayoutGroupContext } from '../context/LayoutGroupContext.mjs';\nimport { LazyContext } from '../context/LazyContext.mjs';\nimport { SwitchLayoutGroupContext } from '../context/SwitchLayoutGroupContext.mjs';\nimport { motionComponentSymbol } from './utils/symbol.mjs';\n\n/**\n * Create a `motion` component.\n *\n * This function accepts a Component argument, which can be either a string (ie \"div\"\n * for `motion.div`), or an actual React component.\n *\n * Alongside this is a config option which provides a way of rendering the provided\n * component \"offline\", or outside the React render cycle.\n */\nfunction createMotionComponent({ preloadedFeatures, createVisualElement, useRender, useVisualState, Component, }) {\n preloadedFeatures && loadFeatures(preloadedFeatures);\n function MotionComponent(props, externalRef) {\n /**\n * If we need to measure the element we load this functionality in a\n * separate class component in order to gain access to getSnapshotBeforeUpdate.\n */\n let MeasureLayout;\n const configAndProps = {\n ...useContext(MotionConfigContext),\n ...props,\n layoutId: useLayoutId(props),\n };\n const { isStatic } = configAndProps;\n const context = useCreateMotionContext(props);\n const visualState = useVisualState(props, isStatic);\n if (!isStatic && isBrowser) {\n /**\n * Create a VisualElement for this component. A VisualElement provides a common\n * interface to renderer-specific APIs (ie DOM/Three.js etc) as well as\n * providing a way of rendering to these APIs outside of the React render loop\n * for more performant animations and interactions\n */\n context.visualElement = useVisualElement(Component, visualState, configAndProps, createVisualElement);\n /**\n * Load Motion gesture and animation features. These are rendered as renderless\n * components so each feature can optionally make use of React lifecycle methods.\n */\n const initialLayoutGroupConfig = useContext(SwitchLayoutGroupContext);\n const isStrict = useContext(LazyContext).strict;\n if (context.visualElement) {\n MeasureLayout = context.visualElement.loadFeatures(\n // Note: Pass the full new combined props to correctly re-render dynamic feature components.\n configAndProps, isStrict, preloadedFeatures, initialLayoutGroupConfig);\n }\n }\n /**\n * The mount order and hierarchy is specific to ensure our element ref\n * is hydrated by the time features fire their effects.\n */\n return (React.createElement(MotionContext.Provider, { value: context },\n MeasureLayout && context.visualElement ? (React.createElement(MeasureLayout, { visualElement: context.visualElement, ...configAndProps })) : null,\n useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, context.visualElement)));\n }\n const ForwardRefComponent = forwardRef(MotionComponent);\n ForwardRefComponent[motionComponentSymbol] = Component;\n return ForwardRefComponent;\n}\nfunction useLayoutId({ layoutId }) {\n const layoutGroupId = useContext(LayoutGroupContext).id;\n return layoutGroupId && layoutId !== undefined\n ? layoutGroupId + \"-\" + layoutId\n : layoutId;\n}\n\nexport { createMotionComponent };\n","import { featureDefinitions } from './definitions.mjs';\n\nfunction loadFeatures(features) {\n for (const key in features) {\n featureDefinitions[key] = {\n ...featureDefinitions[key],\n ...features[key],\n };\n }\n}\n\nexport { loadFeatures };\n","import { useContext, useRef, useInsertionEffect, useEffect } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { MotionContext } from '../../context/MotionContext/index.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { LazyContext } from '../../context/LazyContext.mjs';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\n\nfunction useVisualElement(Component, visualState, props, createVisualElement) {\n const { visualElement: parent } = useContext(MotionContext);\n const lazyContext = useContext(LazyContext);\n const presenceContext = useContext(PresenceContext);\n const reducedMotionConfig = useContext(MotionConfigContext).reducedMotion;\n const visualElementRef = useRef();\n /**\n * If we haven't preloaded a renderer, check to see if we have one lazy-loaded\n */\n createVisualElement = createVisualElement || lazyContext.renderer;\n if (!visualElementRef.current && createVisualElement) {\n visualElementRef.current = createVisualElement(Component, {\n visualState,\n parent,\n props,\n presenceContext,\n blockInitialAnimation: presenceContext\n ? presenceContext.initial === false\n : false,\n reducedMotionConfig,\n });\n }\n const visualElement = visualElementRef.current;\n useInsertionEffect(() => {\n visualElement && visualElement.update(props, presenceContext);\n });\n /**\n * Cache this value as we want to know whether HandoffAppearAnimations\n * was present on initial render - it will be deleted after this.\n */\n const canHandoff = useRef(Boolean(window.HandoffAppearAnimations));\n useIsomorphicLayoutEffect(() => {\n if (!visualElement)\n return;\n visualElement.render();\n /**\n * Ideally this function would always run in a useEffect.\n *\n * However, if we have optimised appear animations to handoff from,\n * it needs to happen synchronously to ensure there's no flash of\n * incorrect styles in the event of a hydration error.\n *\n * So if we detect a situtation where optimised appear animations\n * are running, we use useLayoutEffect to trigger animations.\n */\n if (canHandoff.current && visualElement.animationState) {\n visualElement.animationState.animateChanges();\n }\n });\n useEffect(() => {\n if (!visualElement)\n return;\n visualElement.updateFeatures();\n if (!canHandoff.current && visualElement.animationState) {\n visualElement.animationState.animateChanges();\n }\n /**\n * Once we've handed off animations we can delete HandoffAppearAnimations\n * so components added after the initial render can animate changes\n * in useEffect vs useLayoutEffect.\n */\n window.HandoffAppearAnimations = undefined;\n canHandoff.current = false;\n });\n return visualElement;\n}\n\nexport { useVisualElement };\n","import { useCallback } from 'react';\nimport { isRefObject } from '../../utils/is-ref-object.mjs';\n\n/**\n * Creates a ref function that, when called, hydrates the provided\n * external ref and VisualElement.\n */\nfunction useMotionRef(visualState, visualElement, externalRef) {\n return useCallback((instance) => {\n instance && visualState.mount && visualState.mount(instance);\n if (visualElement) {\n instance\n ? visualElement.mount(instance)\n : visualElement.unmount();\n }\n if (externalRef) {\n if (typeof externalRef === \"function\") {\n externalRef(instance);\n }\n else if (isRefObject(externalRef)) {\n externalRef.current = instance;\n }\n }\n }, \n /**\n * Only pass a new ref callback to React if we've received a visual element\n * factory. Otherwise we'll be mounting/remounting every time externalRef\n * or other dependencies change.\n */\n [visualElement]);\n}\n\nexport { useMotionRef };\n","import { createMotionComponent } from '../../motion/index.mjs';\n\n/**\n * Convert any React component into a `motion` component. The provided component\n * **must** use `React.forwardRef` to the underlying DOM component you want to animate.\n *\n * ```jsx\n * const Component = React.forwardRef((props, ref) => {\n * return <div ref={ref} />\n * })\n *\n * const MotionComponent = motion(Component)\n * ```\n *\n * @public\n */\nfunction createMotionProxy(createConfig) {\n function custom(Component, customMotionComponentConfig = {}) {\n return createMotionComponent(createConfig(Component, customMotionComponentConfig));\n }\n if (typeof Proxy === \"undefined\") {\n return custom;\n }\n /**\n * A cache of generated `motion` components, e.g `motion.div`, `motion.input` etc.\n * Rather than generating them anew every render.\n */\n const componentCache = new Map();\n return new Proxy(custom, {\n /**\n * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.\n * The prop name is passed through as `key` and we can use that to generate a `motion`\n * DOM component with that name.\n */\n get: (_target, key) => {\n /**\n * If this element doesn't exist in the component cache, create it and cache.\n */\n if (!componentCache.has(key)) {\n componentCache.set(key, custom(key));\n }\n return componentCache.get(key);\n },\n });\n}\n\nexport { createMotionProxy };\n","/**\n * We keep these listed seperately as we use the lowercase tag names as part\n * of the runtime bundle to detect SVG components\n */\nconst lowercaseSVGElements = [\n \"animate\",\n \"circle\",\n \"defs\",\n \"desc\",\n \"ellipse\",\n \"g\",\n \"image\",\n \"line\",\n \"filter\",\n \"marker\",\n \"mask\",\n \"metadata\",\n \"path\",\n \"pattern\",\n \"polygon\",\n \"polyline\",\n \"rect\",\n \"stop\",\n \"switch\",\n \"symbol\",\n \"svg\",\n \"text\",\n \"tspan\",\n \"use\",\n \"view\",\n];\n\nexport { lowercaseSVGElements };\n","import { lowercaseSVGElements } from '../../svg/lowercase-elements.mjs';\n\nfunction isSVGComponent(Component) {\n if (\n /**\n * If it's not a string, it's a custom React component. Currently we only support\n * HTML custom React components.\n */\n typeof Component !== \"string\" ||\n /**\n * If it contains a dash, the element is a custom HTML webcomponent.\n */\n Component.includes(\"-\")) {\n return false;\n }\n else if (\n /**\n * If it's in our list of lowercase SVG tags, it's an SVG component\n */\n lowercaseSVGElements.indexOf(Component) > -1 ||\n /**\n * If it contains a capital letter, it's an SVG component\n */\n /[A-Z]/.test(Component)) {\n return true;\n }\n return false;\n}\n\nexport { isSVGComponent };\n","const scaleCorrectors = {};\nfunction addScaleCorrector(correctors) {\n Object.assign(scaleCorrectors, correctors);\n}\n\nexport { addScaleCorrector, scaleCorrectors };\n","/**\n * Generate a list of every possible transform key.\n */\nconst transformPropOrder = [\n \"transformPerspective\",\n \"x\",\n \"y\",\n \"z\",\n \"translateX\",\n \"translateY\",\n \"translateZ\",\n \"scale\",\n \"scaleX\",\n \"scaleY\",\n \"rotate\",\n \"rotateX\",\n \"rotateY\",\n \"rotateZ\",\n \"skew\",\n \"skewX\",\n \"skewY\",\n];\n/**\n * A quick lookup for transform props.\n */\nconst transformProps = new Set(transformPropOrder);\n\nexport { transformPropOrder, transformProps };\n","import { scaleCorrectors } from '../../projection/styles/scale-correction.mjs';\nimport { transformProps } from '../../render/html/utils/transform.mjs';\n\nfunction isForcedMotionValue(key, { layout, layoutId }) {\n return (transformProps.has(key) ||\n key.startsWith(\"origin\") ||\n ((layout || layoutId !== undefined) &&\n (!!scaleCorrectors[key] || key === \"opacity\")));\n}\n\nexport { isForcedMotionValue };\n","const isMotionValue = (value) => Boolean(value && value.getVelocity);\n\nexport { isMotionValue };\n","import { transformPropOrder } from './transform.mjs';\n\nconst translateAlias = {\n x: \"translateX\",\n y: \"translateY\",\n z: \"translateZ\",\n transformPerspective: \"perspective\",\n};\nconst numTransforms = transformPropOrder.length;\n/**\n * Build a CSS transform style from individual x/y/scale etc properties.\n *\n * This outputs with a default order of transforms/scales/rotations, this can be customised by\n * providing a transformTemplate function.\n */\nfunction buildTransform(transform, { enableHardwareAcceleration = true, allowTransformNone = true, }, transformIsDefault, transformTemplate) {\n // The transform string we're going to build into.\n let transformString = \"\";\n /**\n * Loop over all possible transforms in order, adding the ones that\n * are present to the transform string.\n */\n for (let i = 0; i < numTransforms; i++) {\n const key = transformPropOrder[i];\n if (transform[key] !== undefined) {\n const transformName = translateAlias[key] || key;\n transformString += `${transformName}(${transform[key]}) `;\n }\n }\n if (enableHardwareAcceleration && !transform.z) {\n transformString += \"translateZ(0)\";\n }\n transformString = transformString.trim();\n // If we have a custom `transform` template, pass our transform values and\n // generated transformString to that before returning\n if (transformTemplate) {\n transformString = transformTemplate(transform, transformIsDefault ? \"\" : transformString);\n }\n else if (allowTransformNone && transformIsDefault) {\n transformString = \"none\";\n }\n return transformString;\n}\n\nexport { buildTransform };\n","const checkStringStartsWith = (token) => (key) => typeof key === \"string\" && key.startsWith(token);\nconst isCSSVariableName = checkStringStartsWith(\"--\");\nconst isCSSVariableToken = checkStringStartsWith(\"var(--\");\nconst cssVariableRegex = /var\\s*\\(\\s*--[\\w-]+(\\s*,\\s*(?:(?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)+)?\\s*\\)/g;\n\nexport { cssVariableRegex, isCSSVariableName, isCSSVariableToken };\n","/**\n * Provided a value and a ValueType, returns the value as that value type.\n */\nconst getValueAsType = (value, type) => {\n return type && typeof value === \"number\"\n ? type.transform(value)\n : value;\n};\n\nexport { getValueAsType };\n","const clamp = (min, max, v) => Math.min(Math.max(v, min), max);\n\nexport { clamp };\n","import { clamp } from '../../../utils/clamp.mjs';\n\nconst number = {\n test: (v) => typeof v === \"number\",\n parse: parseFloat,\n transform: (v) => v,\n};\nconst alpha = {\n ...number,\n transform: (v) => clamp(0, 1, v),\n};\nconst scale = {\n ...number,\n default: 1,\n};\n\nexport { alpha, number, scale };\n","/**\n * TODO: When we move from string as a source of truth to data models\n * everything in this folder should probably be referred to as models vs types\n */\n// If this number is a decimal, make it just five decimal places\n// to avoid exponents\nconst sanitize = (v) => Math.round(v * 100000) / 100000;\nconst floatRegex = /(-)?([\\d]*\\.?[\\d])+/g;\nconst colorRegex = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\\((-?[\\d\\.]+%?[,\\s]+){2}(-?[\\d\\.]+%?)\\s*[\\,\\/]?\\s*[\\d\\.]*%?\\))/gi;\nconst singleColorRegex = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\\((-?[\\d\\.]+%?[,\\s]+){2}(-?[\\d\\.]+%?)\\s*[\\,\\/]?\\s*[\\d\\.]*%?\\))$/i;\nfunction isString(v) {\n return typeof v === \"string\";\n}\n\nexport { colorRegex, floatRegex, isString, sanitize, singleColorRegex };\n","import { isString } from '../utils.mjs';\n\nconst createUnitType = (unit) => ({\n test: (v) => isString(v) && v.endsWith(unit) && v.split(\" \").length === 1,\n parse: parseFloat,\n transform: (v) => `${v}${unit}`,\n});\nconst degrees = createUnitType(\"deg\");\nconst percent = createUnitType(\"%\");\nconst px = createUnitType(\"px\");\nconst vh = createUnitType(\"vh\");\nconst vw = createUnitType(\"vw\");\nconst progressPercentage = {\n ...percent,\n parse: (v) => percent.parse(v) / 100,\n transform: (v) => percent.transform(v * 100),\n};\n\nexport { degrees, percent, progressPercentage, px, vh, vw };\n","import { number } from '../../../value/types/numbers/index.mjs';\n\nconst int = {\n ...number,\n transform: Math.round,\n};\n\nexport { int };\n","import { scale, alpha } from '../../../value/types/numbers/index.mjs';\nimport { px, degrees, progressPercentage } from '../../../value/types/numbers/units.mjs';\nimport { int } from './type-int.mjs';\n\nconst numberValueTypes = {\n // Border props\n borderWidth: px,\n borderTopWidth: px,\n borderRightWidth: px,\n borderBottomWidth: px,\n borderLeftWidth: px,\n borderRadius: px,\n radius: px,\n borderTopLeftRadius: px,\n borderTopRightRadius: px,\n borderBottomRightRadius: px,\n borderBottomLeftRadius: px,\n // Positioning props\n width: px,\n maxWidth: px,\n height: px,\n maxHeight: px,\n size: px,\n top: px,\n right: px,\n bottom: px,\n left: px,\n // Spacing props\n padding: px,\n paddingTop: px,\n paddingRight: px,\n paddingBottom: px,\n paddingLeft: px,\n margin: px,\n marginTop: px,\n marginRight: px,\n marginBottom: px,\n marginLeft: px,\n // Transform props\n rotate: degrees,\n rotateX: degrees,\n rotateY: degrees,\n rotateZ: degrees,\n scale,\n scaleX: scale,\n scaleY: scale,\n scaleZ: scale,\n skew: degrees,\n skewX: degrees,\n skewY: degrees,\n distance: px,\n translateX: px,\n translateY: px,\n translateZ: px,\n x: px,\n y: px,\n z: px,\n perspective: px,\n transformPerspective: px,\n opacity: alpha,\n originX: progressPercentage,\n originY: progressPercentage,\n originZ: px,\n // Misc\n zIndex: int,\n // SVG\n fillOpacity: alpha,\n strokeOpacity: alpha,\n numOctaves: int,\n};\n\nexport { numberValueTypes };\n","import { buildTransform } from './build-transform.mjs';\nimport { isCSSVariableName } from '../../dom/utils/is-css-variable.mjs';\nimport { transformProps } from './transform.mjs';\nimport { getValueAsType } from '../../dom/value-types/get-as-type.mjs';\nimport { numberValueTypes } from '../../dom/value-types/number.mjs';\n\nfunction buildHTMLStyles(state, latestValues, options, transformTemplate) {\n const { style, vars, transform, transformOrigin } = state;\n // Track whether we encounter any transform or transformOrigin values.\n let hasTransform = false;\n let hasTransformOrigin = false;\n // Does the calculated transform essentially equal \"none\"?\n let transformIsNone = true;\n /**\n * Loop over all our latest animated values and decide whether to handle them\n * as a style or CSS variable.\n *\n * Transforms and transform origins are kept seperately for further processing.\n */\n for (const key in latestValues) {\n const value = latestValues[key];\n /**\n * If this is a CSS variable we don't do any further processing.\n */\n if (isCSSVariableName(key)) {\n vars[key] = value;\n continue;\n }\n // Convert the value to its default value type, ie 0 -> \"0px\"\n const valueType = numberValueTypes[key];\n const valueAsType = getValueAsType(value, valueType);\n if (transformProps.has(key)) {\n // If this is a transform, flag to enable further transform processing\n hasTransform = true;\n transform[key] = valueAsType;\n // If we already know we have a non-default transform, early return\n if (!transformIsNone)\n continue;\n // Otherwise check to see if this is a default transform\n if (value !== (valueType.default || 0))\n transformIsNone = false;\n }\n else if (key.startsWith(\"origin\")) {\n // If this is a transform origin, flag and enable further transform-origin processing\n hasTransformOrigin = true;\n transformOrigin[key] = valueAsType;\n }\n else {\n style[key] = valueAsType;\n }\n }\n if (!latestValues.transform) {\n if (hasTransform || transformTemplate) {\n style.transform = buildTransform(state.transform, options, transformIsNone, transformTemplate);\n }\n else if (style.transform) {\n /**\n * If we have previously created a transform but currently don't have any,\n * reset transform style to none.\n */\n style.transform = \"none\";\n }\n }\n /**\n * Build a transformOrigin style. Uses the same defaults as the browser for\n * undefined origins.\n */\n if (hasTransformOrigin) {\n const { originX = \"50%\", originY = \"50%\", originZ = 0, } = transformOrigin;\n style.transformOrigin = `${originX} ${originY} ${originZ}`;\n }\n}\n\nexport { buildHTMLStyles };\n","const createHtmlRenderState = () => ({\n style: {},\n transform: {},\n transformOrigin: {},\n vars: {},\n});\n\nexport { createHtmlRenderState };\n","import { useMemo } from 'react';\nimport { isForcedMotionValue } from '../../motion/utils/is-forced-motion-value.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\nimport { buildHTMLStyles } from './utils/build-styles.mjs';\nimport { createHtmlRenderState } from './utils/create-render-state.mjs';\n\nfunction copyRawValuesOnly(target, source, props) {\n for (const key in source) {\n if (!isMotionValue(source[key]) && !isForcedMotionValue(key, props)) {\n target[key] = source[key];\n }\n }\n}\nfunction useInitialMotionValues({ transformTemplate }, visualState, isStatic) {\n return useMemo(() => {\n const state = createHtmlRenderState();\n buildHTMLStyles(state, visualState, { enableHardwareAcceleration: !isStatic }, transformTemplate);\n return Object.assign({}, state.vars, state.style);\n }, [visualState]);\n}\nfunction useStyle(props, visualState, isStatic) {\n const styleProp = props.style || {};\n const style = {};\n /**\n * Copy non-Motion Values straight into style\n */\n copyRawValuesOnly(style, styleProp, props);\n Object.assign(style, useInitialMotionValues(props, visualState, isStatic));\n return props.transformValues ? props.transformValues(style) : style;\n}\nfunction useHTMLProps(props, visualState, isStatic) {\n // The `any` isn't ideal but it is the type of createElement props argument\n const htmlProps = {};\n const style = useStyle(props, visualState, isStatic);\n if (props.drag && props.dragListener !== false) {\n // Disable the ghost element when a user drags\n htmlProps.draggable = false;\n // Disable text selection\n style.userSelect =\n style.WebkitUserSelect =\n style.WebkitTouchCallout =\n \"none\";\n // Disable scrolling on the draggable direction\n style.touchAction =\n props.drag === true\n ? \"none\"\n : `pan-${props.drag === \"x\" ? \"y\" : \"x\"}`;\n }\n if (props.tabIndex === undefined &&\n (props.onTap || props.onTapStart || props.whileTap)) {\n htmlProps.tabIndex = 0;\n }\n htmlProps.style = style;\n return htmlProps;\n}\n\nexport { copyRawValuesOnly, useHTMLProps };\n","/**\n * A list of all valid MotionProps.\n *\n * @privateRemarks\n * This doesn't throw if a `MotionProp` name is missing - it should.\n */\nconst validMotionProps = new Set([\n \"animate\",\n \"exit\",\n \"variants\",\n \"initial\",\n \"style\",\n \"values\",\n \"variants\",\n \"transition\",\n \"transformTemplate\",\n \"transformValues\",\n \"custom\",\n \"inherit\",\n \"onLayoutAnimationStart\",\n \"onLayoutAnimationComplete\",\n \"onLayoutMeasure\",\n \"onBeforeLayoutMeasure\",\n \"onAnimationStart\",\n \"onAnimationComplete\",\n \"onUpdate\",\n \"onDragStart\",\n \"onDrag\",\n \"onDragEnd\",\n \"onMeasureDragConstraints\",\n \"onDirectionLock\",\n \"onDragTransitionEnd\",\n \"_dragX\",\n \"_dragY\",\n \"onHoverStart\",\n \"onHoverEnd\",\n \"onViewportEnter\",\n \"onViewportLeave\",\n \"ignoreStrict\",\n \"viewport\",\n]);\n/**\n * Check whether a prop name is a valid `MotionProp` key.\n *\n * @param key - Name of the property to check\n * @returns `true` is key is a valid `MotionProp`.\n *\n * @public\n */\nfunction isValidMotionProp(key) {\n return (key.startsWith(\"while\") ||\n (key.startsWith(\"drag\") && key !== \"draggable\") ||\n key.startsWith(\"layout\") ||\n key.startsWith(\"onTap\") ||\n key.startsWith(\"onPan\") ||\n validMotionProps.has(key));\n}\n\nexport { isValidMotionProp };\n","import { isValidMotionProp } from '../../../motion/utils/valid-prop.mjs';\n\nlet shouldForward = (key) => !isValidMotionProp(key);\nfunction loadExternalIsValidProp(isValidProp) {\n if (!isValidProp)\n return;\n // Explicitly filter our events\n shouldForward = (key) => key.startsWith(\"on\") ? !isValidMotionProp(key) : isValidProp(key);\n}\n/**\n * Emotion and Styled Components both allow users to pass through arbitrary props to their components\n * to dynamically generate CSS. They both use the `@emotion/is-prop-valid` package to determine which\n * of these should be passed to the underlying DOM node.\n *\n * However, when styling a Motion component `styled(motion.div)`, both packages pass through *all* props\n * as it's seen as an arbitrary component rather than a DOM node. Motion only allows arbitrary props\n * passed through the `custom` prop so it doesn't *need* the payload or computational overhead of\n * `@emotion/is-prop-valid`, however to fix this problem we need to use it.\n *\n * By making it an optionalDependency we can offer this functionality only in the situations where it's\n * actually required.\n */\ntry {\n /**\n * We attempt to import this package but require won't be defined in esm environments, in that case\n * isPropValid will have to be provided via `MotionContext`. In a 6.0.0 this should probably be removed\n * in favour of explicit injection.\n */\n loadExternalIsValidProp(require(\"@emotion/is-prop-valid\").default);\n}\ncatch (_a) {\n // We don't need to actually do anything here - the fallback is the existing `isPropValid`.\n}\nfunction filterProps(props, isDom, forwardMotionProps) {\n const filteredProps = {};\n for (const key in props) {\n /**\n * values is considered a valid prop by Emotion, so if it's present\n * this will be rendered out to the DOM unless explicitly filtered.\n *\n * We check the type as it could be used with the `feColorMatrix`\n * element, which we support.\n */\n if (key === \"values\" && typeof props.values === \"object\")\n continue;\n if (shouldForward(key) ||\n (forwardMotionProps === true && isValidMotionProp(key)) ||\n (!isDom && !isValidMotionProp(key)) ||\n // If trying to use native HTML drag events, forward drag listeners\n (props[\"draggable\"] && key.startsWith(\"onDrag\"))) {\n filteredProps[key] = props[key];\n }\n }\n return filteredProps;\n}\n\nexport { filterProps, loadExternalIsValidProp };\n","import { px } from '../../../value/types/numbers/units.mjs';\n\nfunction calcOrigin(origin, offset, size) {\n return typeof origin === \"string\"\n ? origin\n : px.transform(offset + size * origin);\n}\n/**\n * The SVG transform origin defaults are different to CSS and is less intuitive,\n * so we use the measured dimensions of the SVG to reconcile these.\n */\nfunction calcSVGTransformOrigin(dimensions, originX, originY) {\n const pxOriginX = calcOrigin(originX, dimensions.x, dimensions.width);\n const pxOriginY = calcOrigin(originY, dimensions.y, dimensions.height);\n return `${pxOriginX} ${pxOriginY}`;\n}\n\nexport { calcSVGTransformOrigin };\n","import { px } from '../../../value/types/numbers/units.mjs';\n\nconst dashKeys = {\n offset: \"stroke-dashoffset\",\n array: \"stroke-dasharray\",\n};\nconst camelKeys = {\n offset: \"strokeDashoffset\",\n array: \"strokeDasharray\",\n};\n/**\n * Build SVG path properties. Uses the path's measured length to convert\n * our custom pathLength, pathSpacing and pathOffset into stroke-dashoffset\n * and stroke-dasharray attributes.\n *\n * This function is mutative to reduce per-frame GC.\n */\nfunction buildSVGPath(attrs, length, spacing = 1, offset = 0, useDashCase = true) {\n // Normalise path length by setting SVG attribute pathLength to 1\n attrs.pathLength = 1;\n // We use dash case when setting attributes directly to the DOM node and camel case\n // when defining props on a React component.\n const keys = useDashCase ? dashKeys : camelKeys;\n // Build the dash offset\n attrs[keys.offset] = px.transform(-offset);\n // Build the dash array\n const pathLength = px.transform(length);\n const pathSpacing = px.transform(spacing);\n attrs[keys.array] = `${pathLength} ${pathSpacing}`;\n}\n\nexport { buildSVGPath };\n","import { buildHTMLStyles } from '../../html/utils/build-styles.mjs';\nimport { calcSVGTransformOrigin } from './transform-origin.mjs';\nimport { buildSVGPath } from './path.mjs';\n\n/**\n * Build SVG visual attrbutes, like cx and style.transform\n */\nfunction buildSVGAttrs(state, { attrX, attrY, attrScale, originX, originY, pathLength, pathSpacing = 1, pathOffset = 0, \n// This is object creation, which we try to avoid per-frame.\n...latest }, options, isSVGTag, transformTemplate) {\n buildHTMLStyles(state, latest, options, transformTemplate);\n /**\n * For svg tags we just want to make sure viewBox is animatable and treat all the styles\n * as normal HTML tags.\n */\n if (isSVGTag) {\n if (state.style.viewBox) {\n state.attrs.viewBox = state.style.viewBox;\n }\n return;\n }\n state.attrs = state.style;\n state.style = {};\n const { attrs, style, dimensions } = state;\n /**\n * However, we apply transforms as CSS transforms. So if we detect a transform we take it from attrs\n * and copy it into style.\n */\n if (attrs.transform) {\n if (dimensions)\n style.transform = attrs.transform;\n delete attrs.transform;\n }\n // Parse transformOrigin\n if (dimensions &&\n (originX !== undefined || originY !== undefined || style.transform)) {\n style.transformOrigin = calcSVGTransformOrigin(dimensions, originX !== undefined ? originX : 0.5, originY !== undefined ? originY : 0.5);\n }\n // Render attrX/attrY/attrScale as attributes\n if (attrX !== undefined)\n attrs.x = attrX;\n if (attrY !== undefined)\n attrs.y = attrY;\n if (attrScale !== undefined)\n attrs.scale = attrScale;\n // Build SVG path if one has been defined\n if (pathLength !== undefined) {\n buildSVGPath(attrs, pathLength, pathSpacing, pathOffset, false);\n }\n}\n\nexport { buildSVGAttrs };\n","import { createHtmlRenderState } from '../../html/utils/create-render-state.mjs';\n\nconst createSvgRenderState = () => ({\n ...createHtmlRenderState(),\n attrs: {},\n});\n\nexport { createSvgRenderState };\n","const isSVGTag = (tag) => typeof tag === \"string\" && tag.toLowerCase() === \"svg\";\n\nexport { isSVGTag };\n","import { useMemo } from 'react';\nimport { copyRawValuesOnly } from '../html/use-props.mjs';\nimport { buildSVGAttrs } from './utils/build-attrs.mjs';\nimport { createSvgRenderState } from './utils/create-render-state.mjs';\nimport { isSVGTag } from './utils/is-svg-tag.mjs';\n\nfunction useSVGProps(props, visualState, _isStatic, Component) {\n const visualProps = useMemo(() => {\n const state = createSvgRenderState();\n buildSVGAttrs(state, visualState, { enableHardwareAcceleration: false }, isSVGTag(Component), props.transformTemplate);\n return {\n ...state.attrs,\n style: { ...state.style },\n };\n }, [visualState]);\n if (props.style) {\n const rawStyles = {};\n copyRawValuesOnly(rawStyles, props.style, props);\n visualProps.style = { ...rawStyles, ...visualProps.style };\n }\n return visualProps;\n}\n\nexport { useSVGProps };\n","import { useMemo, createElement } from 'react';\nimport { useHTMLProps } from '../html/use-props.mjs';\nimport { filterProps } from './utils/filter-props.mjs';\nimport { isSVGComponent } from './utils/is-svg-component.mjs';\nimport { useSVGProps } from '../svg/use-props.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\n\nfunction createUseRender(forwardMotionProps = false) {\n const useRender = (Component, props, ref, { latestValues }, isStatic) => {\n const useVisualProps = isSVGComponent(Component)\n ? useSVGProps\n : useHTMLProps;\n const visualProps = useVisualProps(props, latestValues, isStatic, Component);\n const filteredProps = filterProps(props, typeof Component === \"string\", forwardMotionProps);\n const elementProps = {\n ...filteredProps,\n ...visualProps,\n ref,\n };\n /**\n * If component has been handed a motion value as its child,\n * memoise its initial value and render that. Subsequent updates\n * will be handled by the onChange handler\n */\n const { children } = props;\n const renderedChildren = useMemo(() => (isMotionValue(children) ? children.get() : children), [children]);\n return createElement(Component, {\n ...elementProps,\n children: renderedChildren,\n });\n };\n return useRender;\n}\n\nexport { createUseRender };\n","/**\n * Convert camelCase to dash-case properties.\n */\nconst camelToDash = (str) => str.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n\nexport { camelToDash };\n","function renderHTML(element, { style, vars }, styleProp, projection) {\n Object.assign(element.style, style, projection && projection.getProjectionStyles(styleProp));\n // Loop over any CSS variables and assign those.\n for (const key in vars) {\n element.style.setProperty(key, vars[key]);\n }\n}\n\nexport { renderHTML };\n","/**\n * A set of attribute names that are always read/written as camel case.\n */\nconst camelCaseAttributes = new Set([\n \"baseFrequency\",\n \"diffuseConstant\",\n \"kernelMatrix\",\n \"kernelUnitLength\",\n \"keySplines\",\n \"keyTimes\",\n \"limitingConeAngle\",\n \"markerHeight\",\n \"markerWidth\",\n \"numOctaves\",\n \"targetX\",\n \"targetY\",\n \"surfaceScale\",\n \"specularConstant\",\n \"specularExponent\",\n \"stdDeviation\",\n \"tableValues\",\n \"viewBox\",\n \"gradientTransform\",\n \"pathLength\",\n \"startOffset\",\n \"textLength\",\n \"lengthAdjust\",\n]);\n\nexport { camelCaseAttributes };\n","import { camelToDash } from '../../dom/utils/camel-to-dash.mjs';\nimport { renderHTML } from '../../html/utils/render.mjs';\nimport { camelCaseAttributes } from './camel-case-attrs.mjs';\n\nfunction renderSVG(element, renderState, _styleProp, projection) {\n renderHTML(element, renderState, undefined, projection);\n for (const key in renderState.attrs) {\n element.setAttribute(!camelCaseAttributes.has(key) ? camelToDash(key) : key, renderState.attrs[key]);\n }\n}\n\nexport { renderSVG };\n","import { isForcedMotionValue } from '../../../motion/utils/is-forced-motion-value.mjs';\nimport { isMotionValue } from '../../../value/utils/is-motion-value.mjs';\n\nfunction scrapeMotionValuesFromProps(props, prevProps) {\n const { style } = props;\n const newValues = {};\n for (const key in style) {\n if (isMotionValue(style[key]) ||\n (prevProps.style && isMotionValue(prevProps.style[key])) ||\n isForcedMotionValue(key, props)) {\n newValues[key] = style[key];\n }\n }\n return newValues;\n}\n\nexport { scrapeMotionValuesFromProps };\n","import { isMotionValue } from '../../../value/utils/is-motion-value.mjs';\nimport { scrapeMotionValuesFromProps as scrapeMotionValuesFromProps$1 } from '../../html/utils/scrape-motion-values.mjs';\nimport { transformPropOrder } from '../../html/utils/transform.mjs';\n\nfunction scrapeMotionValuesFromProps(props, prevProps) {\n const newValues = scrapeMotionValuesFromProps$1(props, prevProps);\n for (const key in props) {\n if (isMotionValue(props[key]) || isMotionValue(prevProps[key])) {\n const targetKey = transformPropOrder.indexOf(key) !== -1\n ? \"attr\" + key.charAt(0).toUpperCase() + key.substring(1)\n : key;\n newValues[targetKey] = props[key];\n }\n }\n return newValues;\n}\n\nexport { scrapeMotionValuesFromProps };\n","function resolveVariantFromProps(props, definition, custom, currentValues = {}, currentVelocity = {}) {\n /**\n * If the variant definition is a function, resolve.\n */\n if (typeof definition === \"function\") {\n definition = definition(custom !== undefined ? custom : props.custom, currentValues, currentVelocity);\n }\n /**\n * If the variant definition is a variant label, or\n * the function returned a variant label, resolve.\n */\n if (typeof definition === \"string\") {\n definition = props.variants && props.variants[definition];\n }\n /**\n * At this point we've resolved both functions and variant labels,\n * but the resolved variant label might itself have been a function.\n * If so, resolve. This can only have returned a valid target object.\n */\n if (typeof definition === \"function\") {\n definition = definition(custom !== undefined ? custom : props.custom, currentValues, currentVelocity);\n }\n return definition;\n}\n\nexport { resolveVariantFromProps };\n","import { useRef } from 'react';\n\n/**\n * Creates a constant value over the lifecycle of a component.\n *\n * Even if `useMemo` is provided an empty array as its final argument, it doesn't offer\n * a guarantee that it won't re-run for performance reasons later on. By using `useConstant`\n * you can ensure that initialisers don't execute twice or more.\n */\nfunction useConstant(init) {\n const ref = useRef(null);\n if (ref.current === null) {\n ref.current = init();\n }\n return ref.current;\n}\n\nexport { useConstant };\n","const isKeyframesTarget = (v) => {\n return Array.isArray(v);\n};\n\nexport { isKeyframesTarget };\n","import { isKeyframesTarget } from '../animation/utils/is-keyframes-target.mjs';\n\nconst isCustomValue = (v) => {\n return Boolean(v && typeof v === \"object\" && v.mix && v.toValue);\n};\nconst resolveFinalValueInKeyframes = (v) => {\n // TODO maybe throw if v.length - 1 is placeholder token?\n return isKeyframesTarget(v) ? v[v.length - 1] || 0 : v;\n};\n\nexport { isCustomValue, resolveFinalValueInKeyframes };\n","import { isCustomValue } from '../../utils/resolve-value.mjs';\nimport { isMotionValue } from './is-motion-value.mjs';\n\n/**\n * If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself\n *\n * TODO: Remove and move to library\n */\nfunction resolveMotionValue(value) {\n const unwrappedValue = isMotionValue(value) ? value.get() : value;\n return isCustomValue(unwrappedValue)\n ? unwrappedValue.toValue()\n : unwrappedValue;\n}\n\nexport { resolveMotionValue };\n","import { useContext } from 'react';\nimport { isAnimationControls } from '../../animation/utils/is-animation-controls.mjs';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { resolveVariantFromProps } from '../../render/utils/resolve-variants.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { resolveMotionValue } from '../../value/utils/resolve-motion-value.mjs';\nimport { MotionContext } from '../../context/MotionContext/index.mjs';\nimport { isControllingVariants, isVariantNode } from '../../render/utils/is-controlling-variants.mjs';\n\nfunction makeState({ scrapeMotionValuesFromProps, createRenderState, onMount, }, props, context, presenceContext) {\n const state = {\n latestValues: makeLatestValues(props, context, presenceContext, scrapeMotionValuesFromProps),\n renderState: createRenderState(),\n };\n if (onMount) {\n state.mount = (instance) => onMount(props, instance, state);\n }\n return state;\n}\nconst makeUseVisualState = (config) => (props, isStatic) => {\n const context = useContext(MotionContext);\n const presenceContext = useContext(PresenceContext);\n const make = () => makeState(config, props, context, presenceContext);\n return isStatic ? make() : useConstant(make);\n};\nfunction makeLatestValues(props, context, presenceContext, scrapeMotionValues) {\n const values = {};\n const motionValues = scrapeMotionValues(props, {});\n for (const key in motionValues) {\n values[key] = resolveMotionValue(motionValues[key]);\n }\n let { initial, animate } = props;\n const isControllingVariants$1 = isControllingVariants(props);\n const isVariantNode$1 = isVariantNode(props);\n if (context &&\n isVariantNode$1 &&\n !isControllingVariants$1 &&\n props.inherit !== false) {\n if (initial === undefined)\n initial = context.initial;\n if (animate === undefined)\n animate = context.animate;\n }\n let isInitialAnimationBlocked = presenceContext\n ? presenceContext.initial === false\n : false;\n isInitialAnimationBlocked = isInitialAnimationBlocked || initial === false;\n const variantToSet = isInitialAnimationBlocked ? animate : initial;\n if (variantToSet &&\n typeof variantToSet !== \"boolean\" &&\n !isAnimationControls(variantToSet)) {\n const list = Array.isArray(variantToSet) ? variantToSet : [variantToSet];\n list.forEach((definition) => {\n const resolved = resolveVariantFromProps(props, definition);\n if (!resolved)\n return;\n const { transitionEnd, transition, ...target } = resolved;\n for (const key in target) {\n let valueTarget = target[key];\n if (Array.isArray(valueTarget)) {\n /**\n * Take final keyframe if the initial animation is blocked because\n * we want to initialise at the end of that blocked animation.\n */\n const index = isInitialAnimationBlocked\n ? valueTarget.length - 1\n : 0;\n valueTarget = valueTarget[index];\n }\n if (valueTarget !== null) {\n values[key] = valueTarget;\n }\n }\n for (const key in transitionEnd)\n values[key] = transitionEnd[key];\n });\n }\n return values;\n}\n\nexport { makeUseVisualState };\n","const noop = (any) => any;\n\nexport { noop };\n","class Queue {\n constructor() {\n this.order = [];\n this.scheduled = new Set();\n }\n add(process) {\n if (!this.scheduled.has(process)) {\n this.scheduled.add(process);\n this.order.push(process);\n return true;\n }\n }\n remove(process) {\n const index = this.order.indexOf(process);\n if (index !== -1) {\n this.order.splice(index, 1);\n this.scheduled.delete(process);\n }\n }\n clear() {\n this.order.length = 0;\n this.scheduled.clear();\n }\n}\nfunction createRenderStep(runNextFrame) {\n /**\n * We create and reuse two queues, one to queue jobs for the current frame\n * and one for the next. We reuse to avoid triggering GC after x frames.\n */\n let thisFrame = new Queue();\n let nextFrame = new Queue();\n let numToRun = 0;\n /**\n * Track whether we're currently processing jobs in this step. This way\n * we can decide whether to schedule new jobs for this frame or next.\n */\n let isProcessing = false;\n let flushNextFrame = false;\n /**\n * A set of processes which were marked keepAlive when scheduled.\n */\n const toKeepAlive = new WeakSet();\n const step = {\n /**\n * Schedule a process to run on the next frame.\n */\n schedule: (callback, keepAlive = false, immediate = false) => {\n const addToCurrentFrame = immediate && isProcessing;\n const queue = addToCurrentFrame ? thisFrame : nextFrame;\n if (keepAlive)\n toKeepAlive.add(callback);\n if (queue.add(callback) && addToCurrentFrame && isProcessing) {\n // If we're adding it to the currently running queue, update its measured size\n numToRun = thisFrame.order.length;\n }\n return callback;\n },\n /**\n * Cancel the provided callback from running on the next frame.\n */\n cancel: (callback) => {\n nextFrame.remove(callback);\n toKeepAlive.delete(callback);\n },\n /**\n * Execute all schedule callbacks.\n */\n process: (frameData) => {\n /**\n * If we're already processing we've probably been triggered by a flushSync\n * inside an existing process. Instead of executing, mark flushNextFrame\n * as true and ensure we flush the following frame at the end of this one.\n */\n if (isProcessing) {\n flushNextFrame = true;\n return;\n }\n isProcessing = true;\n [thisFrame, nextFrame] = [nextFrame, thisFrame];\n // Clear the next frame queue\n nextFrame.clear();\n // Execute this frame\n numToRun = thisFrame.order.length;\n if (numToRun) {\n for (let i = 0; i < numToRun; i++) {\n const callback = thisFrame.order[i];\n callback(frameData);\n if (toKeepAlive.has(callback)) {\n step.schedule(callback);\n runNextFrame();\n }\n }\n }\n isProcessing = false;\n if (flushNextFrame) {\n flushNextFrame = false;\n step.process(frameData);\n }\n },\n };\n return step;\n}\n\nexport { createRenderStep };\n","import { createRenderStep } from './render-step.mjs';\n\nconst stepsOrder = [\n \"prepare\",\n \"read\",\n \"update\",\n \"preRender\",\n \"render\",\n \"postRender\",\n];\nconst maxElapsed = 40;\nfunction createRenderBatcher(scheduleNextBatch, allowKeepAlive) {\n let runNextFrame = false;\n let useDefaultElapsed = true;\n const state = {\n delta: 0,\n timestamp: 0,\n isProcessing: false,\n };\n const steps = stepsOrder.reduce((acc, key) => {\n acc[key] = createRenderStep(() => (runNextFrame = true));\n return acc;\n }, {});\n const processStep = (stepId) => steps[stepId].process(state);\n const processBatch = () => {\n const timestamp = performance.now();\n runNextFrame = false;\n state.delta = useDefaultElapsed\n ? 1000 / 60\n : Math.max(Math.min(timestamp - state.timestamp, maxElapsed), 1);\n state.timestamp = timestamp;\n state.isProcessing = true;\n stepsOrder.forEach(processStep);\n state.isProcessing = false;\n if (runNextFrame && allowKeepAlive) {\n useDefaultElapsed = false;\n scheduleNextBatch(processBatch);\n }\n };\n const wake = () => {\n runNextFrame = true;\n useDefaultElapsed = true;\n if (!state.isProcessing) {\n scheduleNextBatch(processBatch);\n }\n };\n const schedule = stepsOrder.reduce((acc, key) => {\n const step = steps[key];\n acc[key] = (process, keepAlive = false, immediate = false) => {\n if (!runNextFrame)\n wake();\n return step.schedule(process, keepAlive, immediate);\n };\n return acc;\n }, {});\n const cancel = (process) => stepsOrder.forEach((key) => steps[key].cancel(process));\n return { schedule, cancel, state, steps };\n}\n\nexport { createRenderBatcher, stepsOrder };\n","import { noop } from '../utils/noop.mjs';\nimport { createRenderBatcher } from './batcher.mjs';\n\nconst { schedule: frame, cancel: cancelFrame, state: frameData, steps, } = createRenderBatcher(typeof requestAnimationFrame !== \"undefined\" ? requestAnimationFrame : noop, true);\n\nexport { cancelFrame, frame, frameData, steps };\n","import { renderSVG } from './utils/render.mjs';\nimport { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.mjs';\nimport { makeUseVisualState } from '../../motion/utils/use-visual-state.mjs';\nimport { createSvgRenderState } from './utils/create-render-state.mjs';\nimport { buildSVGAttrs } from './utils/build-attrs.mjs';\nimport { isSVGTag } from './utils/is-svg-tag.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst svgMotionConfig = {\n useVisualState: makeUseVisualState({\n scrapeMotionValuesFromProps: scrapeMotionValuesFromProps,\n createRenderState: createSvgRenderState,\n onMount: (props, instance, { renderState, latestValues }) => {\n frame.read(() => {\n try {\n renderState.dimensions =\n typeof instance.getBBox ===\n \"function\"\n ? instance.getBBox()\n : instance.getBoundingClientRect();\n }\n catch (e) {\n // Most likely trying to measure an unrendered element under Firefox\n renderState.dimensions = {\n x: 0,\n y: 0,\n width: 0,\n height: 0,\n };\n }\n });\n frame.render(() => {\n buildSVGAttrs(renderState, latestValues, { enableHardwareAcceleration: false }, isSVGTag(instance.tagName), props.transformTemplate);\n renderSVG(instance, renderState);\n });\n },\n }),\n};\n\nexport { svgMotionConfig };\n","import { makeUseVisualState } from '../../motion/utils/use-visual-state.mjs';\nimport { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.mjs';\nimport { createHtmlRenderState } from './utils/create-render-state.mjs';\n\nconst htmlMotionConfig = {\n useVisualState: makeUseVisualState({\n scrapeMotionValuesFromProps,\n createRenderState: createHtmlRenderState,\n }),\n};\n\nexport { htmlMotionConfig };\n","function addDomEvent(target, eventName, handler, options = { passive: true }) {\n target.addEventListener(eventName, handler, options);\n return () => target.removeEventListener(eventName, handler);\n}\n\nexport { addDomEvent };\n","const isPrimaryPointer = (event) => {\n if (event.pointerType === \"mouse\") {\n return typeof event.button !== \"number\" || event.button <= 0;\n }\n else {\n /**\n * isPrimary is true for all mice buttons, whereas every touch point\n * is regarded as its own input. So subsequent concurrent touch points\n * will be false.\n *\n * Specifically match against false here as incomplete versions of\n * PointerEvents in very old browser might have it set as undefined.\n */\n return event.isPrimary !== false;\n }\n};\n\nexport { isPrimaryPointer };\n","import { isPrimaryPointer } from './utils/is-primary-pointer.mjs';\n\nfunction extractEventInfo(event, pointType = \"page\") {\n return {\n point: {\n x: event[pointType + \"X\"],\n y: event[pointType + \"Y\"],\n },\n };\n}\nconst addPointerInfo = (handler) => {\n return (event) => isPrimaryPointer(event) && handler(event, extractEventInfo(event));\n};\n\nexport { addPointerInfo, extractEventInfo };\n","import { addDomEvent } from './add-dom-event.mjs';\nimport { addPointerInfo } from './event-info.mjs';\n\nfunction addPointerEvent(target, eventName, handler, options) {\n return addDomEvent(target, eventName, addPointerInfo(handler), options);\n}\n\nexport { addPointerEvent };\n","/**\n * Pipe\n * Compose other transformers to run linearily\n * pipe(min(20), max(40))\n * @param {...functions} transformers\n * @return {function}\n */\nconst combineFunctions = (a, b) => (v) => b(a(v));\nconst pipe = (...transformers) => transformers.reduce(combineFunctions);\n\nexport { pipe };\n","function createLock(name) {\n let lock = null;\n return () => {\n const openLock = () => {\n lock = null;\n };\n if (lock === null) {\n lock = name;\n return openLock;\n }\n return false;\n };\n}\nconst globalHorizontalLock = createLock(\"dragHorizontal\");\nconst globalVerticalLock = createLock(\"dragVertical\");\nfunction getGlobalLock(drag) {\n let lock = false;\n if (drag === \"y\") {\n lock = globalVerticalLock();\n }\n else if (drag === \"x\") {\n lock = globalHorizontalLock();\n }\n else {\n const openHorizontal = globalHorizontalLock();\n const openVertical = globalVerticalLock();\n if (openHorizontal && openVertical) {\n lock = () => {\n openHorizontal();\n openVertical();\n };\n }\n else {\n // Release the locks because we don't use them\n if (openHorizontal)\n openHorizontal();\n if (openVertical)\n openVertical();\n }\n }\n return lock;\n}\nfunction isDragActive() {\n // Check the gesture lock - if we get it, it means no drag gesture is active\n // and we can safely fire the tap gesture.\n const openGestureLock = getGlobalLock(true);\n if (!openGestureLock)\n return true;\n openGestureLock();\n return false;\n}\n\nexport { createLock, getGlobalLock, isDragActive };\n","class Feature {\n constructor(node) {\n this.isMounted = false;\n this.node = node;\n }\n update() { }\n}\n\nexport { Feature };\n","import { addPointerEvent } from '../events/add-pointer-event.mjs';\nimport { pipe } from '../utils/pipe.mjs';\nimport { isDragActive } from './drag/utils/lock.mjs';\nimport { Feature } from '../motion/features/Feature.mjs';\nimport { frame } from '../frameloop/frame.mjs';\n\nfunction addHoverEvent(node, isActive) {\n const eventName = \"pointer\" + (isActive ? \"enter\" : \"leave\");\n const callbackName = \"onHover\" + (isActive ? \"Start\" : \"End\");\n const handleEvent = (event, info) => {\n if (event.type === \"touch\" || isDragActive())\n return;\n const props = node.getProps();\n if (node.animationState && props.whileHover) {\n node.animationState.setActive(\"whileHover\", isActive);\n }\n if (props[callbackName]) {\n frame.update(() => props[callbackName](event, info));\n }\n };\n return addPointerEvent(node.current, eventName, handleEvent, {\n passive: !node.getProps()[callbackName],\n });\n}\nclass HoverGesture extends Feature {\n mount() {\n this.unmount = pipe(addHoverEvent(this.node, true), addHoverEvent(this.node, false));\n }\n unmount() { }\n}\n\nexport { HoverGesture };\n","/**\n * Recursively traverse up the tree to check whether the provided child node\n * is the parent or a descendant of it.\n *\n * @param parent - Element to find\n * @param child - Element to test against parent\n */\nconst isNodeOrChild = (parent, child) => {\n if (!child) {\n return false;\n }\n else if (parent === child) {\n return true;\n }\n else {\n return isNodeOrChild(parent, child.parentElement);\n }\n};\n\nexport { isNodeOrChild };\n","import { extractEventInfo } from '../events/event-info.mjs';\nimport { addDomEvent } from '../events/add-dom-event.mjs';\nimport { addPointerEvent } from '../events/add-pointer-event.mjs';\nimport { Feature } from '../motion/features/Feature.mjs';\nimport { pipe } from '../utils/pipe.mjs';\nimport { isDragActive } from './drag/utils/lock.mjs';\nimport { isNodeOrChild } from './utils/is-node-or-child.mjs';\nimport { noop } from '../utils/noop.mjs';\nimport { frame } from '../frameloop/frame.mjs';\n\nfunction fireSyntheticPointerEvent(name, handler) {\n if (!handler)\n return;\n const syntheticPointerEvent = new PointerEvent(\"pointer\" + name);\n handler(syntheticPointerEvent, extractEventInfo(syntheticPointerEvent));\n}\nclass PressGesture extends Feature {\n constructor() {\n super(...arguments);\n this.removeStartListeners = noop;\n this.removeEndListeners = noop;\n this.removeAccessibleListeners = noop;\n this.startPointerPress = (startEvent, startInfo) => {\n this.removeEndListeners();\n if (this.isPressing)\n return;\n const props = this.node.getProps();\n const endPointerPress = (endEvent, endInfo) => {\n if (!this.checkPressEnd())\n return;\n const { onTap, onTapCancel } = this.node.getProps();\n frame.update(() => {\n /**\n * We only count this as a tap gesture if the event.target is the same\n * as, or a child of, this component's element\n */\n !isNodeOrChild(this.node.current, endEvent.target)\n ? onTapCancel && onTapCancel(endEvent, endInfo)\n : onTap && onTap(endEvent, endInfo);\n });\n };\n const removePointerUpListener = addPointerEvent(window, \"pointerup\", endPointerPress, { passive: !(props.onTap || props[\"onPointerUp\"]) });\n const removePointerCancelListener = addPointerEvent(window, \"pointercancel\", (cancelEvent, cancelInfo) => this.cancelPress(cancelEvent, cancelInfo), { passive: !(props.onTapCancel || props[\"onPointerCancel\"]) });\n this.removeEndListeners = pipe(removePointerUpListener, removePointerCancelListener);\n this.startPress(startEvent, startInfo);\n };\n this.startAccessiblePress = () => {\n const handleKeydown = (keydownEvent) => {\n if (keydownEvent.key !== \"Enter\" || this.isPressing)\n return;\n const handleKeyup = (keyupEvent) => {\n if (keyupEvent.key !== \"Enter\" || !this.checkPressEnd())\n return;\n fireSyntheticPointerEvent(\"up\", (event, info) => {\n const { onTap } = this.node.getProps();\n if (onTap) {\n frame.update(() => onTap(event, info));\n }\n });\n };\n this.removeEndListeners();\n this.removeEndListeners = addDomEvent(this.node.current, \"keyup\", handleKeyup);\n fireSyntheticPointerEvent(\"down\", (event, info) => {\n this.startPress(event, info);\n });\n };\n const removeKeydownListener = addDomEvent(this.node.current, \"keydown\", handleKeydown);\n const handleBlur = () => {\n if (!this.isPressing)\n return;\n fireSyntheticPointerEvent(\"cancel\", (cancelEvent, cancelInfo) => this.cancelPress(cancelEvent, cancelInfo));\n };\n const removeBlurListener = addDomEvent(this.node.current, \"blur\", handleBlur);\n this.removeAccessibleListeners = pipe(removeKeydownListener, removeBlurListener);\n };\n }\n startPress(event, info) {\n this.isPressing = true;\n const { onTapStart, whileTap } = this.node.getProps();\n /**\n * Ensure we trigger animations before firing event callback\n */\n if (whileTap && this.node.animationState) {\n this.node.animationState.setActive(\"whileTap\", true);\n }\n if (onTapStart) {\n frame.update(() => onTapStart(event, info));\n }\n }\n checkPressEnd() {\n this.removeEndListeners();\n this.isPressing = false;\n const props = this.node.getProps();\n if (props.whileTap && this.node.animationState) {\n this.node.animationState.setActive(\"whileTap\", false);\n }\n return !isDragActive();\n }\n cancelPress(event, info) {\n if (!this.checkPressEnd())\n return;\n const { onTapCancel } = this.node.getProps();\n if (onTapCancel) {\n frame.update(() => onTapCancel(event, info));\n }\n }\n mount() {\n const props = this.node.getProps();\n const removePointerListener = addPointerEvent(this.node.current, \"pointerdown\", this.startPointerPress, { passive: !(props.onTapStart || props[\"onPointerStart\"]) });\n const removeFocusListener = addDomEvent(this.node.current, \"focus\", this.startAccessiblePress);\n this.removeStartListeners = pipe(removePointerListener, removeFocusListener);\n }\n unmount() {\n this.removeStartListeners();\n this.removeEndListeners();\n this.removeAccessibleListeners();\n }\n}\n\nexport { PressGesture };\n","/**\n * Map an IntersectionHandler callback to an element. We only ever make one handler for one\n * element, so even though these handlers might all be triggered by different\n * observers, we can keep them in the same map.\n */\nconst observerCallbacks = new WeakMap();\n/**\n * Multiple observers can be created for multiple element/document roots. Each with\n * different settings. So here we store dictionaries of observers to each root,\n * using serialised settings (threshold/margin) as lookup keys.\n */\nconst observers = new WeakMap();\nconst fireObserverCallback = (entry) => {\n const callback = observerCallbacks.get(entry.target);\n callback && callback(entry);\n};\nconst fireAllObserverCallbacks = (entries) => {\n entries.forEach(fireObserverCallback);\n};\nfunction initIntersectionObserver({ root, ...options }) {\n const lookupRoot = root || document;\n /**\n * If we don't have an observer lookup map for this root, create one.\n */\n if (!observers.has(lookupRoot)) {\n observers.set(lookupRoot, {});\n }\n const rootObservers = observers.get(lookupRoot);\n const key = JSON.stringify(options);\n /**\n * If we don't have an observer for this combination of root and settings,\n * create one.\n */\n if (!rootObservers[key]) {\n rootObservers[key] = new IntersectionObserver(fireAllObserverCallbacks, { root, ...options });\n }\n return rootObservers[key];\n}\nfunction observeIntersection(element, options, callback) {\n const rootInteresectionObserver = initIntersectionObserver(options);\n observerCallbacks.set(element, callback);\n rootInteresectionObserver.observe(element);\n return () => {\n observerCallbacks.delete(element);\n rootInteresectionObserver.unobserve(element);\n };\n}\n\nexport { observeIntersection };\n","import { Feature } from '../Feature.mjs';\nimport { observeIntersection } from './observers.mjs';\n\nconst thresholdNames = {\n some: 0,\n all: 1,\n};\nclass InViewFeature extends Feature {\n constructor() {\n super(...arguments);\n this.hasEnteredView = false;\n this.isInView = false;\n }\n startObserver() {\n this.unmount();\n const { viewport = {} } = this.node.getProps();\n const { root, margin: rootMargin, amount = \"some\", once } = viewport;\n const options = {\n root: root ? root.current : undefined,\n rootMargin,\n threshold: typeof amount === \"number\" ? amount : thresholdNames[amount],\n };\n const onIntersectionUpdate = (entry) => {\n const { isIntersecting } = entry;\n /**\n * If there's been no change in the viewport state, early return.\n */\n if (this.isInView === isIntersecting)\n return;\n this.isInView = isIntersecting;\n /**\n * Handle hasEnteredView. If this is only meant to run once, and\n * element isn't visible, early return. Otherwise set hasEnteredView to true.\n */\n if (once && !isIntersecting && this.hasEnteredView) {\n return;\n }\n else if (isIntersecting) {\n this.hasEnteredView = true;\n }\n if (this.node.animationState) {\n this.node.animationState.setActive(\"whileInView\", isIntersecting);\n }\n /**\n * Use the latest committed props rather than the ones in scope\n * when this observer is created\n */\n const { onViewportEnter, onViewportLeave } = this.node.getProps();\n const callback = isIntersecting ? onViewportEnter : onViewportLeave;\n callback && callback(entry);\n };\n return observeIntersection(this.node.current, options, onIntersectionUpdate);\n }\n mount() {\n this.startObserver();\n }\n update() {\n if (typeof IntersectionObserver === \"undefined\")\n return;\n const { props, prevProps } = this.node;\n const hasOptionsChanged = [\"amount\", \"margin\", \"root\"].some(hasViewportOptionChanged(props, prevProps));\n if (hasOptionsChanged) {\n this.startObserver();\n }\n }\n unmount() { }\n}\nfunction hasViewportOptionChanged({ viewport = {} }, { viewport: prevViewport = {} } = {}) {\n return (name) => viewport[name] !== prevViewport[name];\n}\n\nexport { InViewFeature };\n","import { HoverGesture } from '../../gestures/hover.mjs';\nimport { FocusGesture } from '../../gestures/focus.mjs';\nimport { PressGesture } from '../../gestures/press.mjs';\nimport { InViewFeature } from './viewport/index.mjs';\n\nconst gestureAnimations = {\n inView: {\n Feature: InViewFeature,\n },\n tap: {\n Feature: PressGesture,\n },\n focus: {\n Feature: FocusGesture,\n },\n hover: {\n Feature: HoverGesture,\n },\n};\n\nexport { gestureAnimations };\n","import { addDomEvent } from '../events/add-dom-event.mjs';\nimport { Feature } from '../motion/features/Feature.mjs';\nimport { pipe } from '../utils/pipe.mjs';\n\nclass FocusGesture extends Feature {\n constructor() {\n super(...arguments);\n this.isActive = false;\n }\n onFocus() {\n let isFocusVisible = false;\n /**\n * If this element doesn't match focus-visible then don't\n * apply whileHover. But, if matches throws that focus-visible\n * is not a valid selector then in that browser outline styles will be applied\n * to the element by default and we want to match that behaviour with whileFocus.\n */\n try {\n isFocusVisible = this.node.current.matches(\":focus-visible\");\n }\n catch (e) {\n isFocusVisible = true;\n }\n if (!isFocusVisible || !this.node.animationState)\n return;\n this.node.animationState.setActive(\"whileFocus\", true);\n this.isActive = true;\n }\n onBlur() {\n if (!this.isActive || !this.node.animationState)\n return;\n this.node.animationState.setActive(\"whileFocus\", false);\n this.isActive = false;\n }\n mount() {\n this.unmount = pipe(addDomEvent(this.node.current, \"focus\", () => this.onFocus()), addDomEvent(this.node.current, \"blur\", () => this.onBlur()));\n }\n unmount() { }\n}\n\nexport { FocusGesture };\n","function shallowCompare(next, prev) {\n if (!Array.isArray(prev))\n return false;\n const prevLength = prev.length;\n if (prevLength !== next.length)\n return false;\n for (let i = 0; i < prevLength; i++) {\n if (prev[i] !== next[i])\n return false;\n }\n return true;\n}\n\nexport { shallowCompare };\n","import { resolveVariantFromProps } from './resolve-variants.mjs';\n\n/**\n * Creates an object containing the latest state of every MotionValue on a VisualElement\n */\nfunction getCurrent(visualElement) {\n const current = {};\n visualElement.values.forEach((value, key) => (current[key] = value.get()));\n return current;\n}\n/**\n * Creates an object containing the latest velocity of every MotionValue on a VisualElement\n */\nfunction getVelocity(visualElement) {\n const velocity = {};\n visualElement.values.forEach((value, key) => (velocity[key] = value.getVelocity()));\n return velocity;\n}\nfunction resolveVariant(visualElement, definition, custom) {\n const props = visualElement.getProps();\n return resolveVariantFromProps(props, definition, custom !== undefined ? custom : props.custom, getCurrent(visualElement), getVelocity(visualElement));\n}\n\nexport { resolveVariant };\n","import { camelToDash } from '../../render/dom/utils/camel-to-dash.mjs';\n\nconst optimizedAppearDataId = \"framerAppearId\";\nconst optimizedAppearDataAttribute = \"data-\" + camelToDash(optimizedAppearDataId);\n\nexport { optimizedAppearDataAttribute, optimizedAppearDataId };\n","import { noop } from './noop.mjs';\n\nlet warning = noop;\nlet invariant = noop;\nif (process.env.NODE_ENV !== \"production\") {\n warning = (check, message) => {\n if (!check && typeof console !== \"undefined\") {\n console.warn(message);\n }\n };\n invariant = (check, message) => {\n if (!check) {\n throw new Error(message);\n }\n };\n}\n\nexport { invariant, warning };\n","/**\n * Converts seconds to milliseconds\n *\n * @param seconds - Time in seconds.\n * @return milliseconds - Converted time in milliseconds.\n */\nconst secondsToMilliseconds = (seconds) => seconds * 1000;\nconst millisecondsToSeconds = (milliseconds) => milliseconds / 1000;\n\nexport { millisecondsToSeconds, secondsToMilliseconds };\n","const instantAnimationState = {\n current: false,\n};\n\nexport { instantAnimationState };\n","const isBezierDefinition = (easing) => Array.isArray(easing) && typeof easing[0] === \"number\";\n\nexport { isBezierDefinition };\n","import { isBezierDefinition } from '../../../easing/utils/is-bezier-definition.mjs';\n\nfunction isWaapiSupportedEasing(easing) {\n return Boolean(!easing ||\n (typeof easing === \"string\" && supportedWaapiEasing[easing]) ||\n isBezierDefinition(easing) ||\n (Array.isArray(easing) && easing.every(isWaapiSupportedEasing)));\n}\nconst cubicBezierAsString = ([a, b, c, d]) => `cubic-bezier(${a}, ${b}, ${c}, ${d})`;\nconst supportedWaapiEasing = {\n linear: \"linear\",\n ease: \"ease\",\n easeIn: \"ease-in\",\n easeOut: \"ease-out\",\n easeInOut: \"ease-in-out\",\n circIn: cubicBezierAsString([0, 0.65, 0.55, 1]),\n circOut: cubicBezierAsString([0.55, 0, 1, 0.45]),\n backIn: cubicBezierAsString([0.31, 0.01, 0.66, -0.59]),\n backOut: cubicBezierAsString([0.33, 1.53, 0.69, 0.99]),\n};\nfunction mapEasingToNativeEasing(easing) {\n if (!easing)\n return undefined;\n return isBezierDefinition(easing)\n ? cubicBezierAsString(easing)\n : Array.isArray(easing)\n ? easing.map(mapEasingToNativeEasing)\n : supportedWaapiEasing[easing];\n}\n\nexport { cubicBezierAsString, isWaapiSupportedEasing, mapEasingToNativeEasing, supportedWaapiEasing };\n","import { noop } from '../utils/noop.mjs';\n\n/*\n Bezier function generator\n This has been modified from Gaëtan Renaudeau's BezierEasing\n https://github.com/gre/bezier-easing/blob/master/src/index.js\n https://github.com/gre/bezier-easing/blob/master/LICENSE\n \n I've removed the newtonRaphsonIterate algo because in benchmarking it\n wasn't noticiably faster than binarySubdivision, indeed removing it\n usually improved times, depending on the curve.\n I also removed the lookup table, as for the added bundle size and loop we're\n only cutting ~4 or so subdivision iterations. I bumped the max iterations up\n to 12 to compensate and this still tended to be faster for no perceivable\n loss in accuracy.\n Usage\n const easeOut = cubicBezier(.17,.67,.83,.67);\n const x = easeOut(0.5); // returns 0.627...\n*/\n// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.\nconst calcBezier = (t, a1, a2) => (((1.0 - 3.0 * a2 + 3.0 * a1) * t + (3.0 * a2 - 6.0 * a1)) * t + 3.0 * a1) *\n t;\nconst subdivisionPrecision = 0.0000001;\nconst subdivisionMaxIterations = 12;\nfunction binarySubdivide(x, lowerBound, upperBound, mX1, mX2) {\n let currentX;\n let currentT;\n let i = 0;\n do {\n currentT = lowerBound + (upperBound - lowerBound) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - x;\n if (currentX > 0.0) {\n upperBound = currentT;\n }\n else {\n lowerBound = currentT;\n }\n } while (Math.abs(currentX) > subdivisionPrecision &&\n ++i < subdivisionMaxIterations);\n return currentT;\n}\nfunction cubicBezier(mX1, mY1, mX2, mY2) {\n // If this is a linear gradient, return linear easing\n if (mX1 === mY1 && mX2 === mY2)\n return noop;\n const getTForX = (aX) => binarySubdivide(aX, 0, 1, mX1, mX2);\n // If animation is at start/end, return t without easing\n return (t) => t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2);\n}\n\nexport { cubicBezier };\n","import { cubicBezier } from './cubic-bezier.mjs';\n\nconst easeIn = cubicBezier(0.42, 0, 1, 1);\nconst easeOut = cubicBezier(0, 0, 0.58, 1);\nconst easeInOut = cubicBezier(0.42, 0, 0.58, 1);\n\nexport { easeIn, easeInOut, easeOut };\n","// Accepts an easing function and returns a new one that outputs mirrored values for\n// the second half of the animation. Turns easeIn into easeInOut.\nconst mirrorEasing = (easing) => (p) => p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;\n\nexport { mirrorEasing };\n","// Accepts an easing function and returns a new one that outputs reversed values.\n// Turns easeIn into easeOut.\nconst reverseEasing = (easing) => (p) => 1 - easing(1 - p);\n\nexport { reverseEasing };\n","import { mirrorEasing } from './modifiers/mirror.mjs';\nimport { reverseEasing } from './modifiers/reverse.mjs';\n\nconst circIn = (p) => 1 - Math.sin(Math.acos(p));\nconst circOut = reverseEasing(circIn);\nconst circInOut = mirrorEasing(circOut);\n\nexport { circIn, circInOut, circOut };\n","import { cubicBezier } from './cubic-bezier.mjs';\nimport { mirrorEasing } from './modifiers/mirror.mjs';\nimport { reverseEasing } from './modifiers/reverse.mjs';\n\nconst backOut = cubicBezier(0.33, 1.53, 0.69, 0.99);\nconst backIn = reverseEasing(backOut);\nconst backInOut = mirrorEasing(backIn);\n\nexport { backIn, backInOut, backOut };\n","import { invariant } from '../../utils/errors.mjs';\nimport { cubicBezier } from '../cubic-bezier.mjs';\nimport { noop } from '../../utils/noop.mjs';\nimport { easeIn, easeInOut, easeOut } from '../ease.mjs';\nimport { circIn, circInOut, circOut } from '../circ.mjs';\nimport { backIn, backInOut, backOut } from '../back.mjs';\nimport { anticipate } from '../anticipate.mjs';\n\nconst easingLookup = {\n linear: noop,\n easeIn,\n easeInOut,\n easeOut,\n circIn,\n circInOut,\n circOut,\n backIn,\n backInOut,\n backOut,\n anticipate,\n};\nconst easingDefinitionToFunction = (definition) => {\n if (Array.isArray(definition)) {\n // If cubic bezier definition, create bezier curve\n invariant(definition.length === 4, `Cubic bezier arrays must contain four numerical values.`);\n const [x1, y1, x2, y2] = definition;\n return cubicBezier(x1, y1, x2, y2);\n }\n else if (typeof definition === \"string\") {\n // Else lookup from table\n invariant(easingLookup[definition] !== undefined, `Invalid easing type '${definition}'`);\n return easingLookup[definition];\n }\n return definition;\n};\n\nexport { easingDefinitionToFunction };\n","import { backIn } from './back.mjs';\n\nconst anticipate = (p) => (p *= 2) < 1 ? 0.5 * backIn(p) : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));\n\nexport { anticipate };\n","import { isString, singleColorRegex, floatRegex } from '../utils.mjs';\n\n/**\n * Returns true if the provided string is a color, ie rgba(0,0,0,0) or #000,\n * but false if a number or multiple colors\n */\nconst isColorString = (type, testProp) => (v) => {\n return Boolean((isString(v) && singleColorRegex.test(v) && v.startsWith(type)) ||\n (testProp && Object.prototype.hasOwnProperty.call(v, testProp)));\n};\nconst splitColor = (aName, bName, cName) => (v) => {\n if (!isString(v))\n return v;\n const [a, b, c, alpha] = v.match(floatRegex);\n return {\n [aName]: parseFloat(a),\n [bName]: parseFloat(b),\n [cName]: parseFloat(c),\n alpha: alpha !== undefined ? parseFloat(alpha) : 1,\n };\n};\n\nexport { isColorString, splitColor };\n","import { clamp } from '../../../utils/clamp.mjs';\nimport { number, alpha } from '../numbers/index.mjs';\nimport { sanitize } from '../utils.mjs';\nimport { isColorString, splitColor } from './utils.mjs';\n\nconst clampRgbUnit = (v) => clamp(0, 255, v);\nconst rgbUnit = {\n ...number,\n transform: (v) => Math.round(clampRgbUnit(v)),\n};\nconst rgba = {\n test: isColorString(\"rgb\", \"red\"),\n parse: splitColor(\"red\", \"green\", \"blue\"),\n transform: ({ red, green, blue, alpha: alpha$1 = 1 }) => \"rgba(\" +\n rgbUnit.transform(red) +\n \", \" +\n rgbUnit.transform(green) +\n \", \" +\n rgbUnit.transform(blue) +\n \", \" +\n sanitize(alpha.transform(alpha$1)) +\n \")\",\n};\n\nexport { rgbUnit, rgba };\n","import { rgba } from './rgba.mjs';\nimport { isColorString } from './utils.mjs';\n\nfunction parseHex(v) {\n let r = \"\";\n let g = \"\";\n let b = \"\";\n let a = \"\";\n // If we have 6 characters, ie #FF0000\n if (v.length > 5) {\n r = v.substring(1, 3);\n g = v.substring(3, 5);\n b = v.substring(5, 7);\n a = v.substring(7, 9);\n // Or we have 3 characters, ie #F00\n }\n else {\n r = v.substring(1, 2);\n g = v.substring(2, 3);\n b = v.substring(3, 4);\n a = v.substring(4, 5);\n r += r;\n g += g;\n b += b;\n a += a;\n }\n return {\n red: parseInt(r, 16),\n green: parseInt(g, 16),\n blue: parseInt(b, 16),\n alpha: a ? parseInt(a, 16) / 255 : 1,\n };\n}\nconst hex = {\n test: isColorString(\"#\"),\n parse: parseHex,\n transform: rgba.transform,\n};\n\nexport { hex };\n","import { alpha } from '../numbers/index.mjs';\nimport { percent } from '../numbers/units.mjs';\nimport { sanitize } from '../utils.mjs';\nimport { isColorString, splitColor } from './utils.mjs';\n\nconst hsla = {\n test: isColorString(\"hsl\", \"hue\"),\n parse: splitColor(\"hue\", \"saturation\", \"lightness\"),\n transform: ({ hue, saturation, lightness, alpha: alpha$1 = 1 }) => {\n return (\"hsla(\" +\n Math.round(hue) +\n \", \" +\n percent.transform(sanitize(saturation)) +\n \", \" +\n percent.transform(sanitize(lightness)) +\n \", \" +\n sanitize(alpha.transform(alpha$1)) +\n \")\");\n },\n};\n\nexport { hsla };\n","import { isString } from '../utils.mjs';\nimport { hex } from './hex.mjs';\nimport { hsla } from './hsla.mjs';\nimport { rgba } from './rgba.mjs';\n\nconst color = {\n test: (v) => rgba.test(v) || hex.test(v) || hsla.test(v),\n parse: (v) => {\n if (rgba.test(v)) {\n return rgba.parse(v);\n }\n else if (hsla.test(v)) {\n return hsla.parse(v);\n }\n else {\n return hex.parse(v);\n }\n },\n transform: (v) => {\n return isString(v)\n ? v\n : v.hasOwnProperty(\"red\")\n ? rgba.transform(v)\n : hsla.transform(v);\n },\n};\n\nexport { color };\n","/*\n Value in range from progress\n\n Given a lower limit and an upper limit, we return the value within\n that range as expressed by progress (usually a number from 0 to 1)\n\n So progress = 0.5 would change\n\n from -------- to\n\n to\n\n from ---- to\n\n E.g. from = 10, to = 20, progress = 0.5 => 15\n\n @param [number]: Lower limit of range\n @param [number]: Upper limit of range\n @param [number]: The progress between lower and upper limits expressed 0-1\n @return [number]: Value as calculated from progress within range (not limited within range)\n*/\nconst mix = (from, to, progress) => -progress * from + progress * to + from;\n\nexport { mix };\n","// Adapted from https://gist.github.com/mjackson/5311256\nfunction hueToRgb(p, q, t) {\n if (t < 0)\n t += 1;\n if (t > 1)\n t -= 1;\n if (t < 1 / 6)\n return p + (q - p) * 6 * t;\n if (t < 1 / 2)\n return q;\n if (t < 2 / 3)\n return p + (q - p) * (2 / 3 - t) * 6;\n return p;\n}\nfunction hslaToRgba({ hue, saturation, lightness, alpha }) {\n hue /= 360;\n saturation /= 100;\n lightness /= 100;\n let red = 0;\n let green = 0;\n let blue = 0;\n if (!saturation) {\n red = green = blue = lightness;\n }\n else {\n const q = lightness < 0.5\n ? lightness * (1 + saturation)\n : lightness + saturation - lightness * saturation;\n const p = 2 * lightness - q;\n red = hueToRgb(p, q, hue + 1 / 3);\n green = hueToRgb(p, q, hue);\n blue = hueToRgb(p, q, hue - 1 / 3);\n }\n return {\n red: Math.round(red * 255),\n green: Math.round(green * 255),\n blue: Math.round(blue * 255),\n alpha,\n };\n}\n\nexport { hslaToRgba };\n","import { mix } from './mix.mjs';\nimport { invariant } from './errors.mjs';\nimport { hslaToRgba } from './hsla-to-rgba.mjs';\nimport { hex } from '../value/types/color/hex.mjs';\nimport { rgba } from '../value/types/color/rgba.mjs';\nimport { hsla } from '../value/types/color/hsla.mjs';\n\n// Linear color space blending\n// Explained https://www.youtube.com/watch?v=LKnqECcg6Gw\n// Demonstrated http://codepen.io/osublake/pen/xGVVaN\nconst mixLinearColor = (from, to, v) => {\n const fromExpo = from * from;\n return Math.sqrt(Math.max(0, v * (to * to - fromExpo) + fromExpo));\n};\nconst colorTypes = [hex, rgba, hsla];\nconst getColorType = (v) => colorTypes.find((type) => type.test(v));\nfunction asRGBA(color) {\n const type = getColorType(color);\n invariant(Boolean(type), `'${color}' is not an animatable color. Use the equivalent color code instead.`);\n let model = type.parse(color);\n if (type === hsla) {\n // TODO Remove this cast - needed since Framer Motion's stricter typing\n model = hslaToRgba(model);\n }\n return model;\n}\nconst mixColor = (from, to) => {\n const fromRGBA = asRGBA(from);\n const toRGBA = asRGBA(to);\n const blended = { ...fromRGBA };\n return (v) => {\n blended.red = mixLinearColor(fromRGBA.red, toRGBA.red, v);\n blended.green = mixLinearColor(fromRGBA.green, toRGBA.green, v);\n blended.blue = mixLinearColor(fromRGBA.blue, toRGBA.blue, v);\n blended.alpha = mix(fromRGBA.alpha, toRGBA.alpha, v);\n return rgba.transform(blended);\n };\n};\n\nexport { mixColor, mixLinearColor };\n","import { cssVariableRegex } from '../../../render/dom/utils/is-css-variable.mjs';\nimport { noop } from '../../../utils/noop.mjs';\nimport { color } from '../color/index.mjs';\nimport { number } from '../numbers/index.mjs';\nimport { colorRegex, floatRegex, isString, sanitize } from '../utils.mjs';\n\nfunction test(v) {\n var _a, _b;\n return (isNaN(v) &&\n isString(v) &&\n (((_a = v.match(floatRegex)) === null || _a === void 0 ? void 0 : _a.length) || 0) +\n (((_b = v.match(colorRegex)) === null || _b === void 0 ? void 0 : _b.length) || 0) >\n 0);\n}\nconst cssVarTokeniser = {\n regex: cssVariableRegex,\n countKey: \"Vars\",\n token: \"${v}\",\n parse: noop,\n};\nconst colorTokeniser = {\n regex: colorRegex,\n countKey: \"Colors\",\n token: \"${c}\",\n parse: color.parse,\n};\nconst numberTokeniser = {\n regex: floatRegex,\n countKey: \"Numbers\",\n token: \"${n}\",\n parse: number.parse,\n};\nfunction tokenise(info, { regex, countKey, token, parse }) {\n const matches = info.tokenised.match(regex);\n if (!matches)\n return;\n info[\"num\" + countKey] = matches.length;\n info.tokenised = info.tokenised.replace(regex, token);\n info.values.push(...matches.map(parse));\n}\nfunction analyseComplexValue(value) {\n const originalValue = value.toString();\n const info = {\n value: originalValue,\n tokenised: originalValue,\n values: [],\n numVars: 0,\n numColors: 0,\n numNumbers: 0,\n };\n if (info.value.includes(\"var(--\"))\n tokenise(info, cssVarTokeniser);\n tokenise(info, colorTokeniser);\n tokenise(info, numberTokeniser);\n return info;\n}\nfunction parseComplexValue(v) {\n return analyseComplexValue(v).values;\n}\nfunction createTransformer(source) {\n const { values, numColors, numVars, tokenised } = analyseComplexValue(source);\n const numValues = values.length;\n return (v) => {\n let output = tokenised;\n for (let i = 0; i < numValues; i++) {\n if (i < numVars) {\n output = output.replace(cssVarTokeniser.token, v[i]);\n }\n else if (i < numVars + numColors) {\n output = output.replace(colorTokeniser.token, color.transform(v[i]));\n }\n else {\n output = output.replace(numberTokeniser.token, sanitize(v[i]));\n }\n }\n return output;\n };\n}\nconst convertNumbersToZero = (v) => typeof v === \"number\" ? 0 : v;\nfunction getAnimatableNone(v) {\n const parsed = parseComplexValue(v);\n const transformer = createTransformer(v);\n return transformer(parsed.map(convertNumbersToZero));\n}\nconst complex = {\n test,\n parse: parseComplexValue,\n createTransformer,\n getAnimatableNone,\n};\n\nexport { analyseComplexValue, complex };\n","import { mix } from './mix.mjs';\nimport { mixColor } from './mix-color.mjs';\nimport { pipe } from './pipe.mjs';\nimport { warning } from './errors.mjs';\nimport { color } from '../value/types/color/index.mjs';\nimport { complex, analyseComplexValue } from '../value/types/complex/index.mjs';\n\nconst mixImmediate = (origin, target) => (p) => `${p > 0 ? target : origin}`;\nfunction getMixer(origin, target) {\n if (typeof origin === \"number\") {\n return (v) => mix(origin, target, v);\n }\n else if (color.test(origin)) {\n return mixColor(origin, target);\n }\n else {\n return origin.startsWith(\"var(\")\n ? mixImmediate(origin, target)\n : mixComplex(origin, target);\n }\n}\nconst mixArray = (from, to) => {\n const output = [...from];\n const numValues = output.length;\n const blendValue = from.map((fromThis, i) => getMixer(fromThis, to[i]));\n return (v) => {\n for (let i = 0; i < numValues; i++) {\n output[i] = blendValue[i](v);\n }\n return output;\n };\n};\nconst mixObject = (origin, target) => {\n const output = { ...origin, ...target };\n const blendValue = {};\n for (const key in output) {\n if (origin[key] !== undefined && target[key] !== undefined) {\n blendValue[key] = getMixer(origin[key], target[key]);\n }\n }\n return (v) => {\n for (const key in blendValue) {\n output[key] = blendValue[key](v);\n }\n return output;\n };\n};\nconst mixComplex = (origin, target) => {\n const template = complex.createTransformer(target);\n const originStats = analyseComplexValue(origin);\n const targetStats = analyseComplexValue(target);\n const canInterpolate = originStats.numVars === targetStats.numVars &&\n originStats.numColors === targetStats.numColors &&\n originStats.numNumbers >= targetStats.numNumbers;\n if (canInterpolate) {\n return pipe(mixArray(originStats.values, targetStats.values), template);\n }\n else {\n warning(true, `Complex values '${origin}' and '${target}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`);\n return mixImmediate(origin, target);\n }\n};\n\nexport { mixArray, mixComplex, mixObject };\n","/*\n Progress within given range\n\n Given a lower limit and an upper limit, we return the progress\n (expressed as a number 0-1) represented by the given value, and\n limit that progress to within 0-1.\n\n @param [number]: Lower limit\n @param [number]: Upper limit\n @param [number]: Value to find progress within given range\n @return [number]: Progress of value within range as expressed 0-1\n*/\nconst progress = (from, to, value) => {\n const toFromDifference = to - from;\n return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;\n};\n\nexport { progress };\n","import { invariant } from './errors.mjs';\nimport { color } from '../value/types/color/index.mjs';\nimport { clamp } from './clamp.mjs';\nimport { mix } from './mix.mjs';\nimport { mixColor } from './mix-color.mjs';\nimport { mixComplex, mixArray, mixObject } from './mix-complex.mjs';\nimport { pipe } from './pipe.mjs';\nimport { progress } from './progress.mjs';\nimport { noop } from './noop.mjs';\n\nconst mixNumber = (from, to) => (p) => mix(from, to, p);\nfunction detectMixerFactory(v) {\n if (typeof v === \"number\") {\n return mixNumber;\n }\n else if (typeof v === \"string\") {\n return color.test(v) ? mixColor : mixComplex;\n }\n else if (Array.isArray(v)) {\n return mixArray;\n }\n else if (typeof v === \"object\") {\n return mixObject;\n }\n return mixNumber;\n}\nfunction createMixers(output, ease, customMixer) {\n const mixers = [];\n const mixerFactory = customMixer || detectMixerFactory(output[0]);\n const numMixers = output.length - 1;\n for (let i = 0; i < numMixers; i++) {\n let mixer = mixerFactory(output[i], output[i + 1]);\n if (ease) {\n const easingFunction = Array.isArray(ease) ? ease[i] || noop : ease;\n mixer = pipe(easingFunction, mixer);\n }\n mixers.push(mixer);\n }\n return mixers;\n}\n/**\n * Create a function that maps from a numerical input array to a generic output array.\n *\n * Accepts:\n * - Numbers\n * - Colors (hex, hsl, hsla, rgb, rgba)\n * - Complex (combinations of one or more numbers or strings)\n *\n * ```jsx\n * const mixColor = interpolate([0, 1], ['#fff', '#000'])\n *\n * mixColor(0.5) // 'rgba(128, 128, 128, 1)'\n * ```\n *\n * TODO Revist this approach once we've moved to data models for values,\n * probably not needed to pregenerate mixer functions.\n *\n * @public\n */\nfunction interpolate(input, output, { clamp: isClamp = true, ease, mixer } = {}) {\n const inputLength = input.length;\n invariant(inputLength === output.length, \"Both input and output ranges must be the same length\");\n /**\n * If we're only provided a single input, we can just make a function\n * that returns the output.\n */\n if (inputLength === 1)\n return () => output[0];\n // If input runs highest -> lowest, reverse both arrays\n if (input[0] > input[inputLength - 1]) {\n input = [...input].reverse();\n output = [...output].reverse();\n }\n const mixers = createMixers(output, ease, mixer);\n const numMixers = mixers.length;\n const interpolator = (v) => {\n let i = 0;\n if (numMixers > 1) {\n for (; i < input.length - 2; i++) {\n if (v < input[i + 1])\n break;\n }\n }\n const progressInRange = progress(input[i], input[i + 1], v);\n return mixers[i](progressInRange);\n };\n return isClamp\n ? (v) => interpolator(clamp(input[0], input[inputLength - 1], v))\n : interpolator;\n}\n\nexport { interpolate };\n","import { fillOffset } from './fill.mjs';\n\nfunction defaultOffset(arr) {\n const offset = [0];\n fillOffset(offset, arr.length - 1);\n return offset;\n}\n\nexport { defaultOffset };\n","import { mix } from '../mix.mjs';\nimport { progress } from '../progress.mjs';\n\nfunction fillOffset(offset, remaining) {\n const min = offset[offset.length - 1];\n for (let i = 1; i <= remaining; i++) {\n const offsetProgress = progress(0, remaining, i);\n offset.push(mix(min, 1, offsetProgress));\n }\n}\n\nexport { fillOffset };\n","import { easeInOut } from '../../easing/ease.mjs';\nimport { isEasingArray } from '../../easing/utils/is-easing-array.mjs';\nimport { easingDefinitionToFunction } from '../../easing/utils/map.mjs';\nimport { interpolate } from '../../utils/interpolate.mjs';\nimport { defaultOffset } from '../../utils/offsets/default.mjs';\nimport { convertOffsetToTimes } from '../../utils/offsets/time.mjs';\n\nfunction defaultEasing(values, easing) {\n return values.map(() => easing || easeInOut).splice(0, values.length - 1);\n}\nfunction keyframes({ duration = 300, keyframes: keyframeValues, times, ease = \"easeInOut\", }) {\n /**\n * Easing functions can be externally defined as strings. Here we convert them\n * into actual functions.\n */\n const easingFunctions = isEasingArray(ease)\n ? ease.map(easingDefinitionToFunction)\n : easingDefinitionToFunction(ease);\n /**\n * This is the Iterator-spec return value. We ensure it's mutable rather than using a generator\n * to reduce GC during animation.\n */\n const state = {\n done: false,\n value: keyframeValues[0],\n };\n /**\n * Create a times array based on the provided 0-1 offsets\n */\n const absoluteTimes = convertOffsetToTimes(\n // Only use the provided offsets if they're the correct length\n // TODO Maybe we should warn here if there's a length mismatch\n times && times.length === keyframeValues.length\n ? times\n : defaultOffset(keyframeValues), duration);\n const mapTimeToKeyframe = interpolate(absoluteTimes, keyframeValues, {\n ease: Array.isArray(easingFunctions)\n ? easingFunctions\n : defaultEasing(keyframeValues, easingFunctions),\n });\n return {\n calculatedDuration: duration,\n next: (t) => {\n state.value = mapTimeToKeyframe(t);\n state.done = t >= duration;\n return state;\n },\n };\n}\n\nexport { defaultEasing, keyframes };\n","const isEasingArray = (ease) => {\n return Array.isArray(ease) && typeof ease[0] !== \"number\";\n};\n\nexport { isEasingArray };\n","function convertOffsetToTimes(offset, duration) {\n return offset.map((o) => o * duration);\n}\n\nexport { convertOffsetToTimes };\n","/*\n Convert velocity into velocity per second\n\n @param [number]: Unit per frame\n @param [number]: Frame duration in ms\n*/\nfunction velocityPerSecond(velocity, frameDuration) {\n return frameDuration ? velocity * (1000 / frameDuration) : 0;\n}\n\nexport { velocityPerSecond };\n","import { velocityPerSecond } from '../../../utils/velocity-per-second.mjs';\n\nconst velocitySampleDuration = 5; // ms\nfunction calcGeneratorVelocity(resolveValue, t, current) {\n const prevT = Math.max(t - velocitySampleDuration, 0);\n return velocityPerSecond(current - resolveValue(prevT), t - prevT);\n}\n\nexport { calcGeneratorVelocity };\n","import { warning } from '../../../utils/errors.mjs';\nimport { clamp } from '../../../utils/clamp.mjs';\nimport { secondsToMilliseconds, millisecondsToSeconds } from '../../../utils/time-conversion.mjs';\n\nconst safeMin = 0.001;\nconst minDuration = 0.01;\nconst maxDuration = 10.0;\nconst minDamping = 0.05;\nconst maxDamping = 1;\nfunction findSpring({ duration = 800, bounce = 0.25, velocity = 0, mass = 1, }) {\n let envelope;\n let derivative;\n warning(duration <= secondsToMilliseconds(maxDuration), \"Spring duration must be 10 seconds or less\");\n let dampingRatio = 1 - bounce;\n /**\n * Restrict dampingRatio and duration to within acceptable ranges.\n */\n dampingRatio = clamp(minDamping, maxDamping, dampingRatio);\n duration = clamp(minDuration, maxDuration, millisecondsToSeconds(duration));\n if (dampingRatio < 1) {\n /**\n * Underdamped spring\n */\n envelope = (undampedFreq) => {\n const exponentialDecay = undampedFreq * dampingRatio;\n const delta = exponentialDecay * duration;\n const a = exponentialDecay - velocity;\n const b = calcAngularFreq(undampedFreq, dampingRatio);\n const c = Math.exp(-delta);\n return safeMin - (a / b) * c;\n };\n derivative = (undampedFreq) => {\n const exponentialDecay = undampedFreq * dampingRatio;\n const delta = exponentialDecay * duration;\n const d = delta * velocity + velocity;\n const e = Math.pow(dampingRatio, 2) * Math.pow(undampedFreq, 2) * duration;\n const f = Math.exp(-delta);\n const g = calcAngularFreq(Math.pow(undampedFreq, 2), dampingRatio);\n const factor = -envelope(undampedFreq) + safeMin > 0 ? -1 : 1;\n return (factor * ((d - e) * f)) / g;\n };\n }\n else {\n /**\n * Critically-damped spring\n */\n envelope = (undampedFreq) => {\n const a = Math.exp(-undampedFreq * duration);\n const b = (undampedFreq - velocity) * duration + 1;\n return -safeMin + a * b;\n };\n derivative = (undampedFreq) => {\n const a = Math.exp(-undampedFreq * duration);\n const b = (velocity - undampedFreq) * (duration * duration);\n return a * b;\n };\n }\n const initialGuess = 5 / duration;\n const undampedFreq = approximateRoot(envelope, derivative, initialGuess);\n duration = secondsToMilliseconds(duration);\n if (isNaN(undampedFreq)) {\n return {\n stiffness: 100,\n damping: 10,\n duration,\n };\n }\n else {\n const stiffness = Math.pow(undampedFreq, 2) * mass;\n return {\n stiffness,\n damping: dampingRatio * 2 * Math.sqrt(mass * stiffness),\n duration,\n };\n }\n}\nconst rootIterations = 12;\nfunction approximateRoot(envelope, derivative, initialGuess) {\n let result = initialGuess;\n for (let i = 1; i < rootIterations; i++) {\n result = result - envelope(result) / derivative(result);\n }\n return result;\n}\nfunction calcAngularFreq(undampedFreq, dampingRatio) {\n return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);\n}\n\nexport { calcAngularFreq, findSpring, maxDamping, maxDuration, minDamping, minDuration };\n","import { millisecondsToSeconds } from '../../../utils/time-conversion.mjs';\nimport { calcGeneratorVelocity } from '../utils/velocity.mjs';\nimport { findSpring, calcAngularFreq } from './find.mjs';\n\nconst durationKeys = [\"duration\", \"bounce\"];\nconst physicsKeys = [\"stiffness\", \"damping\", \"mass\"];\nfunction isSpringType(options, keys) {\n return keys.some((key) => options[key] !== undefined);\n}\nfunction getSpringOptions(options) {\n let springOptions = {\n velocity: 0.0,\n stiffness: 100,\n damping: 10,\n mass: 1.0,\n isResolvedFromDuration: false,\n ...options,\n };\n // stiffness/damping/mass overrides duration/bounce\n if (!isSpringType(options, physicsKeys) &&\n isSpringType(options, durationKeys)) {\n const derived = findSpring(options);\n springOptions = {\n ...springOptions,\n ...derived,\n velocity: 0.0,\n mass: 1.0,\n };\n springOptions.isResolvedFromDuration = true;\n }\n return springOptions;\n}\nfunction spring({ keyframes, restDelta, restSpeed, ...options }) {\n const origin = keyframes[0];\n const target = keyframes[keyframes.length - 1];\n /**\n * This is the Iterator-spec return value. We ensure it's mutable rather than using a generator\n * to reduce GC during animation.\n */\n const state = { done: false, value: origin };\n const { stiffness, damping, mass, velocity, duration, isResolvedFromDuration, } = getSpringOptions(options);\n const initialVelocity = velocity ? -millisecondsToSeconds(velocity) : 0.0;\n const dampingRatio = damping / (2 * Math.sqrt(stiffness * mass));\n const initialDelta = target - origin;\n const undampedAngularFreq = millisecondsToSeconds(Math.sqrt(stiffness / mass));\n /**\n * If we're working on a granular scale, use smaller defaults for determining\n * when the spring is finished.\n *\n * These defaults have been selected emprically based on what strikes a good\n * ratio between feeling good and finishing as soon as changes are imperceptible.\n */\n const isGranularScale = Math.abs(initialDelta) < 5;\n restSpeed || (restSpeed = isGranularScale ? 0.01 : 2);\n restDelta || (restDelta = isGranularScale ? 0.005 : 0.5);\n let resolveSpring;\n if (dampingRatio < 1) {\n const angularFreq = calcAngularFreq(undampedAngularFreq, dampingRatio);\n // Underdamped spring\n resolveSpring = (t) => {\n const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);\n return (target -\n envelope *\n (((initialVelocity +\n dampingRatio * undampedAngularFreq * initialDelta) /\n angularFreq) *\n Math.sin(angularFreq * t) +\n initialDelta * Math.cos(angularFreq * t)));\n };\n }\n else if (dampingRatio === 1) {\n // Critically damped spring\n resolveSpring = (t) => target -\n Math.exp(-undampedAngularFreq * t) *\n (initialDelta +\n (initialVelocity + undampedAngularFreq * initialDelta) * t);\n }\n else {\n // Overdamped spring\n const dampedAngularFreq = undampedAngularFreq * Math.sqrt(dampingRatio * dampingRatio - 1);\n resolveSpring = (t) => {\n const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);\n // When performing sinh or cosh values can hit Infinity so we cap them here\n const freqForT = Math.min(dampedAngularFreq * t, 300);\n return (target -\n (envelope *\n ((initialVelocity +\n dampingRatio * undampedAngularFreq * initialDelta) *\n Math.sinh(freqForT) +\n dampedAngularFreq *\n initialDelta *\n Math.cosh(freqForT))) /\n dampedAngularFreq);\n };\n }\n return {\n calculatedDuration: isResolvedFromDuration ? duration || null : null,\n next: (t) => {\n const current = resolveSpring(t);\n if (!isResolvedFromDuration) {\n let currentVelocity = initialVelocity;\n if (t !== 0) {\n /**\n * We only need to calculate velocity for under-damped springs\n * as over- and critically-damped springs can't overshoot, so\n * checking only for displacement is enough.\n */\n if (dampingRatio < 1) {\n currentVelocity = calcGeneratorVelocity(resolveSpring, t, current);\n }\n else {\n currentVelocity = 0;\n }\n }\n const isBelowVelocityThreshold = Math.abs(currentVelocity) <= restSpeed;\n const isBelowDisplacementThreshold = Math.abs(target - current) <= restDelta;\n state.done =\n isBelowVelocityThreshold && isBelowDisplacementThreshold;\n }\n else {\n state.done = t >= duration;\n }\n state.value = state.done ? target : current;\n return state;\n },\n };\n}\n\nexport { spring };\n","import { spring } from './spring/index.mjs';\nimport { calcGeneratorVelocity } from './utils/velocity.mjs';\n\nfunction inertia({ keyframes, velocity = 0.0, power = 0.8, timeConstant = 325, bounceDamping = 10, bounceStiffness = 500, modifyTarget, min, max, restDelta = 0.5, restSpeed, }) {\n const origin = keyframes[0];\n const state = {\n done: false,\n value: origin,\n };\n const isOutOfBounds = (v) => (min !== undefined && v < min) || (max !== undefined && v > max);\n const nearestBoundary = (v) => {\n if (min === undefined)\n return max;\n if (max === undefined)\n return min;\n return Math.abs(min - v) < Math.abs(max - v) ? min : max;\n };\n let amplitude = power * velocity;\n const ideal = origin + amplitude;\n const target = modifyTarget === undefined ? ideal : modifyTarget(ideal);\n /**\n * If the target has changed we need to re-calculate the amplitude, otherwise\n * the animation will start from the wrong position.\n */\n if (target !== ideal)\n amplitude = target - origin;\n const calcDelta = (t) => -amplitude * Math.exp(-t / timeConstant);\n const calcLatest = (t) => target + calcDelta(t);\n const applyFriction = (t) => {\n const delta = calcDelta(t);\n const latest = calcLatest(t);\n state.done = Math.abs(delta) <= restDelta;\n state.value = state.done ? target : latest;\n };\n /**\n * Ideally this would resolve for t in a stateless way, we could\n * do that by always precalculating the animation but as we know\n * this will be done anyway we can assume that spring will\n * be discovered during that.\n */\n let timeReachedBoundary;\n let spring$1;\n const checkCatchBoundary = (t) => {\n if (!isOutOfBounds(state.value))\n return;\n timeReachedBoundary = t;\n spring$1 = spring({\n keyframes: [state.value, nearestBoundary(state.value)],\n velocity: calcGeneratorVelocity(calcLatest, t, state.value),\n damping: bounceDamping,\n stiffness: bounceStiffness,\n restDelta,\n restSpeed,\n });\n };\n checkCatchBoundary(0);\n return {\n calculatedDuration: null,\n next: (t) => {\n /**\n * We need to resolve the friction to figure out if we need a\n * spring but we don't want to do this twice per frame. So here\n * we flag if we updated for this frame and later if we did\n * we can skip doing it again.\n */\n let hasUpdatedFrame = false;\n if (!spring$1 && timeReachedBoundary === undefined) {\n hasUpdatedFrame = true;\n applyFriction(t);\n checkCatchBoundary(t);\n }\n /**\n * If we have a spring and the provided t is beyond the moment the friction\n * animation crossed the min/max boundary, use the spring.\n */\n if (timeReachedBoundary !== undefined && t > timeReachedBoundary) {\n return spring$1.next(t - timeReachedBoundary);\n }\n else {\n !hasUpdatedFrame && applyFriction(t);\n return state;\n }\n },\n };\n}\n\nexport { inertia };\n","import { frame, cancelFrame, frameData } from '../../../frameloop/frame.mjs';\n\nconst frameloopDriver = (update) => {\n const passTimestamp = ({ timestamp }) => update(timestamp);\n return {\n start: () => frame.update(passTimestamp, true),\n stop: () => cancelFrame(passTimestamp),\n /**\n * If we're processing this frame we can use the\n * framelocked timestamp to keep things in sync.\n */\n now: () => frameData.isProcessing ? frameData.timestamp : performance.now(),\n };\n};\n\nexport { frameloopDriver };\n","/**\n * Implement a practical max duration for keyframe generation\n * to prevent infinite loops\n */\nconst maxGeneratorDuration = 20000;\nfunction calcGeneratorDuration(generator) {\n let duration = 0;\n const timeStep = 50;\n let state = generator.next(duration);\n while (!state.done && duration < maxGeneratorDuration) {\n duration += timeStep;\n state = generator.next(duration);\n }\n return duration >= maxGeneratorDuration ? Infinity : duration;\n}\n\nexport { calcGeneratorDuration, maxGeneratorDuration };\n","import { keyframes } from '../../generators/keyframes.mjs';\nimport { spring } from '../../generators/spring/index.mjs';\nimport { inertia } from '../../generators/inertia.mjs';\nimport { frameloopDriver } from './driver-frameloop.mjs';\nimport { interpolate } from '../../../utils/interpolate.mjs';\nimport { clamp } from '../../../utils/clamp.mjs';\nimport { millisecondsToSeconds, secondsToMilliseconds } from '../../../utils/time-conversion.mjs';\nimport { calcGeneratorDuration } from '../../generators/utils/calc-duration.mjs';\n\nconst types = {\n decay: inertia,\n inertia,\n tween: keyframes,\n keyframes: keyframes,\n spring,\n};\n/**\n * Animate a single value on the main thread.\n *\n * This function is written, where functionality overlaps,\n * to be largely spec-compliant with WAAPI to allow fungibility\n * between the two.\n */\nfunction animateValue({ autoplay = true, delay = 0, driver = frameloopDriver, keyframes: keyframes$1, type = \"keyframes\", repeat = 0, repeatDelay = 0, repeatType = \"loop\", onPlay, onStop, onComplete, onUpdate, ...options }) {\n let speed = 1;\n let hasStopped = false;\n let resolveFinishedPromise;\n let currentFinishedPromise;\n /**\n * Resolve the current Promise every time we enter the\n * finished state. This is WAAPI-compatible behaviour.\n */\n const updateFinishedPromise = () => {\n currentFinishedPromise = new Promise((resolve) => {\n resolveFinishedPromise = resolve;\n });\n };\n // Create the first finished promise\n updateFinishedPromise();\n let animationDriver;\n const generatorFactory = types[type] || keyframes;\n /**\n * If this isn't the keyframes generator and we've been provided\n * strings as keyframes, we need to interpolate these.\n * TODO: Support velocity for units and complex value types/\n */\n let mapNumbersToKeyframes;\n if (generatorFactory !== keyframes &&\n typeof keyframes$1[0] !== \"number\") {\n mapNumbersToKeyframes = interpolate([0, 100], keyframes$1, {\n clamp: false,\n });\n keyframes$1 = [0, 100];\n }\n const generator = generatorFactory({ ...options, keyframes: keyframes$1 });\n let mirroredGenerator;\n if (repeatType === \"mirror\") {\n mirroredGenerator = generatorFactory({\n ...options,\n keyframes: [...keyframes$1].reverse(),\n velocity: -(options.velocity || 0),\n });\n }\n let playState = \"idle\";\n let holdTime = null;\n let startTime = null;\n let cancelTime = null;\n /**\n * If duration is undefined and we have repeat options,\n * we need to calculate a duration from the generator.\n *\n * We set it to the generator itself to cache the duration.\n * Any timeline resolver will need to have already precalculated\n * the duration by this step.\n */\n if (generator.calculatedDuration === null && repeat) {\n generator.calculatedDuration = calcGeneratorDuration(generator);\n }\n const { calculatedDuration } = generator;\n let resolvedDuration = Infinity;\n let totalDuration = Infinity;\n if (calculatedDuration !== null) {\n resolvedDuration = calculatedDuration + repeatDelay;\n totalDuration = resolvedDuration * (repeat + 1) - repeatDelay;\n }\n let currentTime = 0;\n const tick = (timestamp) => {\n if (startTime === null)\n return;\n /**\n * requestAnimationFrame timestamps can come through as lower than\n * the startTime as set by performance.now(). Here we prevent this,\n * though in the future it could be possible to make setting startTime\n * a pending operation that gets resolved here.\n */\n if (speed > 0)\n startTime = Math.min(startTime, timestamp);\n if (speed < 0)\n startTime = Math.min(timestamp - totalDuration / speed, startTime);\n if (holdTime !== null) {\n currentTime = holdTime;\n }\n else {\n // Rounding the time because floating point arithmetic is not always accurate, e.g. 3000.367 - 1000.367 =\n // 2000.0000000000002. This is a problem when we are comparing the currentTime with the duration, for\n // example.\n currentTime = Math.round(timestamp - startTime) * speed;\n }\n // Rebase on delay\n const timeWithoutDelay = currentTime - delay * (speed >= 0 ? 1 : -1);\n const isInDelayPhase = speed >= 0 ? timeWithoutDelay < 0 : timeWithoutDelay > totalDuration;\n currentTime = Math.max(timeWithoutDelay, 0);\n /**\n * If this animation has finished, set the current time\n * to the total duration.\n */\n if (playState === \"finished\" && holdTime === null) {\n currentTime = totalDuration;\n }\n let elapsed = currentTime;\n let frameGenerator = generator;\n if (repeat) {\n /**\n * Get the current progress (0-1) of the animation. If t is >\n * than duration we'll get values like 2.5 (midway through the\n * third iteration)\n */\n const progress = currentTime / resolvedDuration;\n /**\n * Get the current iteration (0 indexed). For instance the floor of\n * 2.5 is 2.\n */\n let currentIteration = Math.floor(progress);\n /**\n * Get the current progress of the iteration by taking the remainder\n * so 2.5 is 0.5 through iteration 2\n */\n let iterationProgress = progress % 1.0;\n /**\n * If iteration progress is 1 we count that as the end\n * of the previous iteration.\n */\n if (!iterationProgress && progress >= 1) {\n iterationProgress = 1;\n }\n iterationProgress === 1 && currentIteration--;\n currentIteration = Math.min(currentIteration, repeat + 1);\n /**\n * Reverse progress if we're not running in \"normal\" direction\n */\n const iterationIsOdd = Boolean(currentIteration % 2);\n if (iterationIsOdd) {\n if (repeatType === \"reverse\") {\n iterationProgress = 1 - iterationProgress;\n if (repeatDelay) {\n iterationProgress -= repeatDelay / resolvedDuration;\n }\n }\n else if (repeatType === \"mirror\") {\n frameGenerator = mirroredGenerator;\n }\n }\n let p = clamp(0, 1, iterationProgress);\n if (currentTime > totalDuration) {\n p = repeatType === \"reverse\" && iterationIsOdd ? 1 : 0;\n }\n elapsed = p * resolvedDuration;\n }\n /**\n * If we're in negative time, set state as the initial keyframe.\n * This prevents delay: x, duration: 0 animations from finishing\n * instantly.\n */\n const state = isInDelayPhase\n ? { done: false, value: keyframes$1[0] }\n : frameGenerator.next(elapsed);\n if (mapNumbersToKeyframes) {\n state.value = mapNumbersToKeyframes(state.value);\n }\n let { done } = state;\n if (!isInDelayPhase && calculatedDuration !== null) {\n done = speed >= 0 ? currentTime >= totalDuration : currentTime <= 0;\n }\n const isAnimationFinished = holdTime === null &&\n (playState === \"finished\" || (playState === \"running\" && done));\n if (onUpdate) {\n onUpdate(state.value);\n }\n if (isAnimationFinished) {\n finish();\n }\n return state;\n };\n const stopAnimationDriver = () => {\n animationDriver && animationDriver.stop();\n animationDriver = undefined;\n };\n const cancel = () => {\n playState = \"idle\";\n stopAnimationDriver();\n resolveFinishedPromise();\n updateFinishedPromise();\n startTime = cancelTime = null;\n };\n const finish = () => {\n playState = \"finished\";\n onComplete && onComplete();\n stopAnimationDriver();\n resolveFinishedPromise();\n };\n const play = () => {\n if (hasStopped)\n return;\n if (!animationDriver)\n animationDriver = driver(tick);\n const now = animationDriver.now();\n onPlay && onPlay();\n if (holdTime !== null) {\n startTime = now - holdTime;\n }\n else if (!startTime || playState === \"finished\") {\n startTime = now;\n }\n if (playState === \"finished\") {\n updateFinishedPromise();\n }\n cancelTime = startTime;\n holdTime = null;\n /**\n * Set playState to running only after we've used it in\n * the previous logic.\n */\n playState = \"running\";\n animationDriver.start();\n };\n if (autoplay) {\n play();\n }\n const controls = {\n then(resolve, reject) {\n return currentFinishedPromise.then(resolve, reject);\n },\n get time() {\n return millisecondsToSeconds(currentTime);\n },\n set time(newTime) {\n newTime = secondsToMilliseconds(newTime);\n currentTime = newTime;\n if (holdTime !== null || !animationDriver || speed === 0) {\n holdTime = newTime;\n }\n else {\n startTime = animationDriver.now() - newTime / speed;\n }\n },\n get duration() {\n const duration = generator.calculatedDuration === null\n ? calcGeneratorDuration(generator)\n : generator.calculatedDuration;\n return millisecondsToSeconds(duration);\n },\n get speed() {\n return speed;\n },\n set speed(newSpeed) {\n if (newSpeed === speed || !animationDriver)\n return;\n speed = newSpeed;\n controls.time = millisecondsToSeconds(currentTime);\n },\n get state() {\n return playState;\n },\n play,\n pause: () => {\n playState = \"paused\";\n holdTime = currentTime;\n },\n stop: () => {\n hasStopped = true;\n if (playState === \"idle\")\n return;\n playState = \"idle\";\n onStop && onStop();\n cancel();\n },\n cancel: () => {\n if (cancelTime !== null)\n tick(cancelTime);\n cancel();\n },\n complete: () => {\n playState = \"finished\";\n },\n sample: (elapsed) => {\n startTime = 0;\n return tick(elapsed);\n },\n };\n return controls;\n}\n\nexport { animateValue };\n","import { animateStyle } from './index.mjs';\nimport { isWaapiSupportedEasing } from './easing.mjs';\nimport { getFinalKeyframe } from './utils/get-final-keyframe.mjs';\nimport { animateValue } from '../js/index.mjs';\nimport { millisecondsToSeconds, secondsToMilliseconds } from '../../../utils/time-conversion.mjs';\nimport { memo } from '../../../utils/memo.mjs';\nimport { noop } from '../../../utils/noop.mjs';\nimport { frameData, frame, cancelFrame } from '../../../frameloop/frame.mjs';\n\nconst supportsWaapi = memo(() => Object.hasOwnProperty.call(Element.prototype, \"animate\"));\n/**\n * A list of values that can be hardware-accelerated.\n */\nconst acceleratedValues = new Set([\n \"opacity\",\n \"clipPath\",\n \"filter\",\n \"transform\",\n \"backgroundColor\",\n]);\n/**\n * 10ms is chosen here as it strikes a balance between smooth\n * results (more than one keyframe per frame at 60fps) and\n * keyframe quantity.\n */\nconst sampleDelta = 10; //ms\n/**\n * Implement a practical max duration for keyframe generation\n * to prevent infinite loops\n */\nconst maxDuration = 20000;\nconst requiresPregeneratedKeyframes = (valueName, options) => options.type === \"spring\" ||\n valueName === \"backgroundColor\" ||\n !isWaapiSupportedEasing(options.ease);\nfunction createAcceleratedAnimation(value, valueName, { onUpdate, onComplete, ...options }) {\n const canAccelerateAnimation = supportsWaapi() &&\n acceleratedValues.has(valueName) &&\n !options.repeatDelay &&\n options.repeatType !== \"mirror\" &&\n options.damping !== 0 &&\n options.type !== \"inertia\";\n if (!canAccelerateAnimation)\n return false;\n /**\n * TODO: Unify with js/index\n */\n let hasStopped = false;\n let resolveFinishedPromise;\n let currentFinishedPromise;\n /**\n * Resolve the current Promise every time we enter the\n * finished state. This is WAAPI-compatible behaviour.\n */\n const updateFinishedPromise = () => {\n currentFinishedPromise = new Promise((resolve) => {\n resolveFinishedPromise = resolve;\n });\n };\n // Create the first finished promise\n updateFinishedPromise();\n let { keyframes, duration = 300, ease, times } = options;\n /**\n * If this animation needs pre-generated keyframes then generate.\n */\n if (requiresPregeneratedKeyframes(valueName, options)) {\n const sampleAnimation = animateValue({\n ...options,\n repeat: 0,\n delay: 0,\n });\n let state = { done: false, value: keyframes[0] };\n const pregeneratedKeyframes = [];\n /**\n * Bail after 20 seconds of pre-generated keyframes as it's likely\n * we're heading for an infinite loop.\n */\n let t = 0;\n while (!state.done && t < maxDuration) {\n state = sampleAnimation.sample(t);\n pregeneratedKeyframes.push(state.value);\n t += sampleDelta;\n }\n times = undefined;\n keyframes = pregeneratedKeyframes;\n duration = t - sampleDelta;\n ease = \"linear\";\n }\n const animation = animateStyle(value.owner.current, valueName, keyframes, {\n ...options,\n duration,\n /**\n * This function is currently not called if ease is provided\n * as a function so the cast is safe.\n *\n * However it would be possible for a future refinement to port\n * in easing pregeneration from Motion One for browsers that\n * support the upcoming `linear()` easing function.\n */\n ease: ease,\n times,\n });\n /**\n * WAAPI animations don't resolve startTime synchronously. But a blocked\n * thread could delay the startTime resolution by a noticeable amount.\n * For synching handoff animations with the new Motion animation we want\n * to ensure startTime is synchronously set.\n */\n if (options.syncStart) {\n animation.startTime = frameData.isProcessing\n ? frameData.timestamp\n : document.timeline\n ? document.timeline.currentTime\n : performance.now();\n }\n const cancelAnimation = () => animation.cancel();\n const safeCancel = () => {\n frame.update(cancelAnimation);\n resolveFinishedPromise();\n updateFinishedPromise();\n };\n /**\n * Prefer the `onfinish` prop as it's more widely supported than\n * the `finished` promise.\n *\n * Here, we synchronously set the provided MotionValue to the end\n * keyframe. If we didn't, when the WAAPI animation is finished it would\n * be removed from the element which would then revert to its old styles.\n */\n animation.onfinish = () => {\n value.set(getFinalKeyframe(keyframes, options));\n onComplete && onComplete();\n safeCancel();\n };\n /**\n * Animation interrupt callback.\n */\n const controls = {\n then(resolve, reject) {\n return currentFinishedPromise.then(resolve, reject);\n },\n attachTimeline(timeline) {\n animation.timeline = timeline;\n animation.onfinish = null;\n return noop;\n },\n get time() {\n return millisecondsToSeconds(animation.currentTime || 0);\n },\n set time(newTime) {\n animation.currentTime = secondsToMilliseconds(newTime);\n },\n get speed() {\n return animation.playbackRate;\n },\n set speed(newSpeed) {\n animation.playbackRate = newSpeed;\n },\n get duration() {\n return millisecondsToSeconds(duration);\n },\n play: () => {\n if (hasStopped)\n return;\n animation.play();\n /**\n * Cancel any pending cancel tasks\n */\n cancelFrame(cancelAnimation);\n },\n pause: () => animation.pause(),\n stop: () => {\n hasStopped = true;\n if (animation.playState === \"idle\")\n return;\n /**\n * WAAPI doesn't natively have any interruption capabilities.\n *\n * Rather than read commited styles back out of the DOM, we can\n * create a renderless JS animation and sample it twice to calculate\n * its current value, \"previous\" value, and therefore allow\n * Motion to calculate velocity for any subsequent animation.\n */\n const { currentTime } = animation;\n if (currentTime) {\n const sampleAnimation = animateValue({\n ...options,\n autoplay: false,\n });\n value.setWithVelocity(sampleAnimation.sample(currentTime - sampleDelta).value, sampleAnimation.sample(currentTime).value, sampleDelta);\n }\n safeCancel();\n },\n complete: () => animation.finish(),\n cancel: safeCancel,\n };\n return controls;\n}\n\nexport { createAcceleratedAnimation };\n","function memo(callback) {\n let result;\n return () => {\n if (result === undefined)\n result = callback();\n return result;\n };\n}\n\nexport { memo };\n","import { mapEasingToNativeEasing } from './easing.mjs';\n\nfunction animateStyle(element, valueName, keyframes, { delay = 0, duration, repeat = 0, repeatType = \"loop\", ease, times, } = {}) {\n const keyframeOptions = { [valueName]: keyframes };\n if (times)\n keyframeOptions.offset = times;\n const easing = mapEasingToNativeEasing(ease);\n /**\n * If this is an easing array, apply to keyframes, not animation as a whole\n */\n if (Array.isArray(easing))\n keyframeOptions.easing = easing;\n return element.animate(keyframeOptions, {\n delay,\n duration,\n easing: !Array.isArray(easing) ? easing : \"linear\",\n fill: \"both\",\n iterations: repeat + 1,\n direction: repeatType === \"reverse\" ? \"alternate\" : \"normal\",\n });\n}\n\nexport { animateStyle };\n","function getFinalKeyframe(keyframes, { repeat, repeatType = \"loop\" }) {\n const index = repeat && repeatType !== \"loop\" && repeat % 2 === 1\n ? 0\n : keyframes.length - 1;\n return keyframes[index];\n}\n\nexport { getFinalKeyframe };\n","import { transformProps } from '../../render/html/utils/transform.mjs';\n\nconst underDampedSpring = {\n type: \"spring\",\n stiffness: 500,\n damping: 25,\n restSpeed: 10,\n};\nconst criticallyDampedSpring = (target) => ({\n type: \"spring\",\n stiffness: 550,\n damping: target === 0 ? 2 * Math.sqrt(550) : 30,\n restSpeed: 10,\n});\nconst keyframesTransition = {\n type: \"keyframes\",\n duration: 0.8,\n};\n/**\n * Default easing curve is a slightly shallower version of\n * the default browser easing curve.\n */\nconst ease = {\n type: \"keyframes\",\n ease: [0.25, 0.1, 0.35, 1],\n duration: 0.3,\n};\nconst getDefaultTransition = (valueKey, { keyframes }) => {\n if (keyframes.length > 2) {\n return keyframesTransition;\n }\n else if (transformProps.has(valueKey)) {\n return valueKey.startsWith(\"scale\")\n ? criticallyDampedSpring(keyframes[1])\n : underDampedSpring;\n }\n return ease;\n};\n\nexport { getDefaultTransition };\n","import { complex } from '../../value/types/complex/index.mjs';\n\n/**\n * Check if a value is animatable. Examples:\n *\n * ✅: 100, \"100px\", \"#fff\"\n * ❌: \"block\", \"url(2.jpg)\"\n * @param value\n *\n * @internal\n */\nconst isAnimatable = (key, value) => {\n // If the list of keys tat might be non-animatable grows, replace with Set\n if (key === \"zIndex\")\n return false;\n // If it's a number or a keyframes array, we can animate it. We might at some point\n // need to do a deep isAnimatable check of keyframes, or let Popmotion handle this,\n // but for now lets leave it like this for performance reasons\n if (typeof value === \"number\" || Array.isArray(value))\n return true;\n if (typeof value === \"string\" && // It's animatable if we have a string\n (complex.test(value) || value === \"0\") && // And it contains numbers and/or colors\n !value.startsWith(\"url(\") // Unless it starts with \"url(\"\n ) {\n return true;\n }\n return false;\n};\n\nexport { isAnimatable };\n","import { complex } from './index.mjs';\nimport { floatRegex } from '../utils.mjs';\n\n/**\n * Properties that should default to 1 or 100%\n */\nconst maxDefaults = new Set([\"brightness\", \"contrast\", \"saturate\", \"opacity\"]);\nfunction applyDefaultFilter(v) {\n const [name, value] = v.slice(0, -1).split(\"(\");\n if (name === \"drop-shadow\")\n return v;\n const [number] = value.match(floatRegex) || [];\n if (!number)\n return v;\n const unit = value.replace(number, \"\");\n let defaultValue = maxDefaults.has(name) ? 1 : 0;\n if (number !== value)\n defaultValue *= 100;\n return name + \"(\" + defaultValue + unit + \")\";\n}\nconst functionRegex = /([a-z-]*)\\(.*?\\)/g;\nconst filter = {\n ...complex,\n getAnimatableNone: (v) => {\n const functions = v.match(functionRegex);\n return functions ? functions.map(applyDefaultFilter).join(\" \") : v;\n },\n};\n\nexport { filter };\n","import { color } from '../../../value/types/color/index.mjs';\nimport { filter } from '../../../value/types/complex/filter.mjs';\nimport { numberValueTypes } from './number.mjs';\n\n/**\n * A map of default value types for common values\n */\nconst defaultValueTypes = {\n ...numberValueTypes,\n // Color props\n color,\n backgroundColor: color,\n outlineColor: color,\n fill: color,\n stroke: color,\n // Border props\n borderColor: color,\n borderTopColor: color,\n borderRightColor: color,\n borderBottomColor: color,\n borderLeftColor: color,\n filter,\n WebkitFilter: filter,\n};\n/**\n * Gets the default ValueType for the provided value key\n */\nconst getDefaultValueType = (key) => defaultValueTypes[key];\n\nexport { defaultValueTypes, getDefaultValueType };\n","import { complex } from '../../../value/types/complex/index.mjs';\nimport { filter } from '../../../value/types/complex/filter.mjs';\nimport { getDefaultValueType } from './defaults.mjs';\n\nfunction getAnimatableNone(key, value) {\n let defaultValueType = getDefaultValueType(key);\n if (defaultValueType !== filter)\n defaultValueType = complex;\n // If value is not recognised as animatable, ie \"none\", create an animatable version origin based on the target\n return defaultValueType.getAnimatableNone\n ? defaultValueType.getAnimatableNone(value)\n : undefined;\n}\n\nexport { getAnimatableNone };\n","/**\n * Check if the value is a zero value string like \"0px\" or \"0%\"\n */\nconst isZeroValueString = (v) => /^0[^.\\s]+$/.test(v);\n\nexport { isZeroValueString };\n","import { isZeroValueString } from '../../utils/is-zero-value-string.mjs';\n\nfunction isNone(value) {\n if (typeof value === \"number\") {\n return value === 0;\n }\n else if (value !== null) {\n return value === \"none\" || value === \"0\" || isZeroValueString(value);\n }\n}\n\nexport { isNone };\n","/**\n * Decide whether a transition is defined on a given Transition.\n * This filters out orchestration options and returns true\n * if any options are left.\n */\nfunction isTransitionDefined({ when, delay: _delay, delayChildren, staggerChildren, staggerDirection, repeat, repeatType, repeatDelay, from, elapsed, ...transition }) {\n return !!Object.keys(transition).length;\n}\nfunction getValueTransition(transition, key) {\n return transition[key] || transition[\"default\"] || transition;\n}\n\nexport { getValueTransition, isTransitionDefined };\n","import { warning } from '../../utils/errors.mjs';\nimport { secondsToMilliseconds } from '../../utils/time-conversion.mjs';\nimport { instantAnimationState } from '../../utils/use-instant-transition-state.mjs';\nimport { createAcceleratedAnimation } from '../animators/waapi/create-accelerated-animation.mjs';\nimport { createInstantAnimation } from '../animators/instant.mjs';\nimport { getDefaultTransition } from '../utils/default-transitions.mjs';\nimport { isAnimatable } from '../utils/is-animatable.mjs';\nimport { getKeyframes } from '../utils/keyframes.mjs';\nimport { getValueTransition, isTransitionDefined } from '../utils/transitions.mjs';\nimport { animateValue } from '../animators/js/index.mjs';\n\nconst animateMotionValue = (valueName, value, target, transition = {}) => {\n return (onComplete) => {\n const valueTransition = getValueTransition(transition, valueName) || {};\n /**\n * Most transition values are currently completely overwritten by value-specific\n * transitions. In the future it'd be nicer to blend these transitions. But for now\n * delay actually does inherit from the root transition if not value-specific.\n */\n const delay = valueTransition.delay || transition.delay || 0;\n /**\n * Elapsed isn't a public transition option but can be passed through from\n * optimized appear effects in milliseconds.\n */\n let { elapsed = 0 } = transition;\n elapsed = elapsed - secondsToMilliseconds(delay);\n const keyframes = getKeyframes(value, valueName, target, valueTransition);\n /**\n * Check if we're able to animate between the start and end keyframes,\n * and throw a warning if we're attempting to animate between one that's\n * animatable and another that isn't.\n */\n const originKeyframe = keyframes[0];\n const targetKeyframe = keyframes[keyframes.length - 1];\n const isOriginAnimatable = isAnimatable(valueName, originKeyframe);\n const isTargetAnimatable = isAnimatable(valueName, targetKeyframe);\n warning(isOriginAnimatable === isTargetAnimatable, `You are trying to animate ${valueName} from \"${originKeyframe}\" to \"${targetKeyframe}\". ${originKeyframe} is not an animatable value - to enable this animation set ${originKeyframe} to a value animatable to ${targetKeyframe} via the \\`style\\` property.`);\n let options = {\n keyframes,\n velocity: value.getVelocity(),\n ease: \"easeOut\",\n ...valueTransition,\n delay: -elapsed,\n onUpdate: (v) => {\n value.set(v);\n valueTransition.onUpdate && valueTransition.onUpdate(v);\n },\n onComplete: () => {\n onComplete();\n valueTransition.onComplete && valueTransition.onComplete();\n },\n };\n /**\n * If there's no transition defined for this value, we can generate\n * unqiue transition settings for this value.\n */\n if (!isTransitionDefined(valueTransition)) {\n options = {\n ...options,\n ...getDefaultTransition(valueName, options),\n };\n }\n /**\n * Both WAAPI and our internal animation functions use durations\n * as defined by milliseconds, while our external API defines them\n * as seconds.\n */\n if (options.duration) {\n options.duration = secondsToMilliseconds(options.duration);\n }\n if (options.repeatDelay) {\n options.repeatDelay = secondsToMilliseconds(options.repeatDelay);\n }\n if (!isOriginAnimatable ||\n !isTargetAnimatable ||\n instantAnimationState.current ||\n valueTransition.type === false) {\n /**\n * If we can't animate this value, or the global instant animation flag is set,\n * or this is simply defined as an instant transition, return an instant transition.\n */\n return createInstantAnimation(instantAnimationState.current\n ? { ...options, delay: 0 }\n : options);\n }\n /**\n * Animate via WAAPI if possible.\n */\n if (value.owner &&\n value.owner.current instanceof HTMLElement &&\n !value.owner.getProps().onUpdate) {\n const acceleratedAnimation = createAcceleratedAnimation(value, valueName, options);\n if (acceleratedAnimation)\n return acceleratedAnimation;\n }\n /**\n * If we didn't create an accelerated animation, create a JS animation\n */\n return animateValue(options);\n };\n};\n\nexport { animateMotionValue };\n","import { getAnimatableNone } from '../../render/dom/value-types/animatable-none.mjs';\nimport { isAnimatable } from './is-animatable.mjs';\nimport { isNone } from './is-none.mjs';\n\nfunction getKeyframes(value, valueName, target, transition) {\n const isTargetAnimatable = isAnimatable(valueName, target);\n let keyframes;\n if (Array.isArray(target)) {\n keyframes = [...target];\n }\n else {\n keyframes = [null, target];\n }\n const defaultOrigin = transition.from !== undefined ? transition.from : value.get();\n let animatableTemplateValue = undefined;\n const noneKeyframeIndexes = [];\n for (let i = 0; i < keyframes.length; i++) {\n /**\n * Fill null/wildcard keyframes\n */\n if (keyframes[i] === null) {\n keyframes[i] = i === 0 ? defaultOrigin : keyframes[i - 1];\n }\n if (isNone(keyframes[i])) {\n noneKeyframeIndexes.push(i);\n }\n // TODO: Clean this conditional, it works for now\n if (typeof keyframes[i] === \"string\" &&\n keyframes[i] !== \"none\" &&\n keyframes[i] !== \"0\") {\n animatableTemplateValue = keyframes[i];\n }\n }\n if (isTargetAnimatable &&\n noneKeyframeIndexes.length &&\n animatableTemplateValue) {\n for (let i = 0; i < noneKeyframeIndexes.length; i++) {\n const index = noneKeyframeIndexes[i];\n keyframes[index] = getAnimatableNone(valueName, animatableTemplateValue);\n }\n }\n return keyframes;\n}\n\nexport { getKeyframes };\n","import { animateValue } from './js/index.mjs';\nimport { noop } from '../../utils/noop.mjs';\n\nfunction createInstantAnimation({ keyframes, delay, onUpdate, onComplete, }) {\n const setValue = () => {\n onUpdate && onUpdate(keyframes[keyframes.length - 1]);\n onComplete && onComplete();\n /**\n * TODO: As this API grows it could make sense to always return\n * animateValue. This will be a bigger project as animateValue\n * is frame-locked whereas this function resolves instantly.\n * This is a behavioural change and also has ramifications regarding\n * assumptions within tests.\n */\n return {\n time: 0,\n speed: 1,\n duration: 0,\n play: (noop),\n pause: (noop),\n stop: (noop),\n then: (resolve) => {\n resolve();\n return Promise.resolve();\n },\n cancel: (noop),\n complete: (noop),\n };\n };\n return delay\n ? animateValue({\n keyframes: [0, 1],\n duration: 0,\n delay,\n onComplete: setValue,\n })\n : setValue();\n}\n\nexport { createInstantAnimation };\n","import { isMotionValue } from '../utils/is-motion-value.mjs';\n\nfunction isWillChangeMotionValue(value) {\n return Boolean(isMotionValue(value) && value.add);\n}\n\nexport { isWillChangeMotionValue };\n","/**\n * Check if value is a numerical string, ie a string that is purely a number eg \"100\" or \"-100.1\"\n */\nconst isNumericalString = (v) => /^\\-?\\d*\\.?\\d+$/.test(v);\n\nexport { isNumericalString };\n","function addUniqueItem(arr, item) {\n if (arr.indexOf(item) === -1)\n arr.push(item);\n}\nfunction removeItem(arr, item) {\n const index = arr.indexOf(item);\n if (index > -1)\n arr.splice(index, 1);\n}\n// Adapted from array-move\nfunction moveItem([...arr], fromIndex, toIndex) {\n const startIndex = fromIndex < 0 ? arr.length + fromIndex : fromIndex;\n if (startIndex >= 0 && startIndex < arr.length) {\n const endIndex = toIndex < 0 ? arr.length + toIndex : toIndex;\n const [item] = arr.splice(fromIndex, 1);\n arr.splice(endIndex, 0, item);\n }\n return arr;\n}\n\nexport { addUniqueItem, moveItem, removeItem };\n","import { addUniqueItem, removeItem } from './array.mjs';\n\nclass SubscriptionManager {\n constructor() {\n this.subscriptions = [];\n }\n add(handler) {\n addUniqueItem(this.subscriptions, handler);\n return () => removeItem(this.subscriptions, handler);\n }\n notify(a, b, c) {\n const numSubscriptions = this.subscriptions.length;\n if (!numSubscriptions)\n return;\n if (numSubscriptions === 1) {\n /**\n * If there's only a single handler we can just call it without invoking a loop.\n */\n this.subscriptions[0](a, b, c);\n }\n else {\n for (let i = 0; i < numSubscriptions; i++) {\n /**\n * Check whether the handler exists before firing as it's possible\n * the subscriptions were modified during this loop running.\n */\n const handler = this.subscriptions[i];\n handler && handler(a, b, c);\n }\n }\n }\n getSize() {\n return this.subscriptions.length;\n }\n clear() {\n this.subscriptions.length = 0;\n }\n}\n\nexport { SubscriptionManager };\n","import { SubscriptionManager } from '../utils/subscription-manager.mjs';\nimport { velocityPerSecond } from '../utils/velocity-per-second.mjs';\nimport { warnOnce } from '../utils/warn-once.mjs';\nimport { frame, frameData } from '../frameloop/frame.mjs';\n\nconst isFloat = (value) => {\n return !isNaN(parseFloat(value));\n};\nconst collectMotionValues = {\n current: undefined,\n};\n/**\n * `MotionValue` is used to track the state and velocity of motion values.\n *\n * @public\n */\nclass MotionValue {\n /**\n * @param init - The initiating value\n * @param config - Optional configuration options\n *\n * - `transformer`: A function to transform incoming values with.\n *\n * @internal\n */\n constructor(init, options = {}) {\n /**\n * This will be replaced by the build step with the latest version number.\n * When MotionValues are provided to motion components, warn if versions are mixed.\n */\n this.version = \"10.16.5\";\n /**\n * Duration, in milliseconds, since last updating frame.\n *\n * @internal\n */\n this.timeDelta = 0;\n /**\n * Timestamp of the last time this `MotionValue` was updated.\n *\n * @internal\n */\n this.lastUpdated = 0;\n /**\n * Tracks whether this value can output a velocity. Currently this is only true\n * if the value is numerical, but we might be able to widen the scope here and support\n * other value types.\n *\n * @internal\n */\n this.canTrackVelocity = false;\n /**\n * An object containing a SubscriptionManager for each active event.\n */\n this.events = {};\n this.updateAndNotify = (v, render = true) => {\n this.prev = this.current;\n this.current = v;\n // Update timestamp\n const { delta, timestamp } = frameData;\n if (this.lastUpdated !== timestamp) {\n this.timeDelta = delta;\n this.lastUpdated = timestamp;\n frame.postRender(this.scheduleVelocityCheck);\n }\n // Update update subscribers\n if (this.prev !== this.current && this.events.change) {\n this.events.change.notify(this.current);\n }\n // Update velocity subscribers\n if (this.events.velocityChange) {\n this.events.velocityChange.notify(this.getVelocity());\n }\n // Update render subscribers\n if (render && this.events.renderRequest) {\n this.events.renderRequest.notify(this.current);\n }\n };\n /**\n * Schedule a velocity check for the next frame.\n *\n * This is an instanced and bound function to prevent generating a new\n * function once per frame.\n *\n * @internal\n */\n this.scheduleVelocityCheck = () => frame.postRender(this.velocityCheck);\n /**\n * Updates `prev` with `current` if the value hasn't been updated this frame.\n * This ensures velocity calculations return `0`.\n *\n * This is an instanced and bound function to prevent generating a new\n * function once per frame.\n *\n * @internal\n */\n this.velocityCheck = ({ timestamp }) => {\n if (timestamp !== this.lastUpdated) {\n this.prev = this.current;\n if (this.events.velocityChange) {\n this.events.velocityChange.notify(this.getVelocity());\n }\n }\n };\n this.hasAnimated = false;\n this.prev = this.current = init;\n this.canTrackVelocity = isFloat(this.current);\n this.owner = options.owner;\n }\n /**\n * Adds a function that will be notified when the `MotionValue` is updated.\n *\n * It returns a function that, when called, will cancel the subscription.\n *\n * When calling `onChange` inside a React component, it should be wrapped with the\n * `useEffect` hook. As it returns an unsubscribe function, this should be returned\n * from the `useEffect` function to ensure you don't add duplicate subscribers..\n *\n * ```jsx\n * export const MyComponent = () => {\n * const x = useMotionValue(0)\n * const y = useMotionValue(0)\n * const opacity = useMotionValue(1)\n *\n * useEffect(() => {\n * function updateOpacity() {\n * const maxXY = Math.max(x.get(), y.get())\n * const newOpacity = transform(maxXY, [0, 100], [1, 0])\n * opacity.set(newOpacity)\n * }\n *\n * const unsubscribeX = x.on(\"change\", updateOpacity)\n * const unsubscribeY = y.on(\"change\", updateOpacity)\n *\n * return () => {\n * unsubscribeX()\n * unsubscribeY()\n * }\n * }, [])\n *\n * return <motion.div style={{ x }} />\n * }\n * ```\n *\n * @param subscriber - A function that receives the latest value.\n * @returns A function that, when called, will cancel this subscription.\n *\n * @deprecated\n */\n onChange(subscription) {\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(false, `value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback).`);\n }\n return this.on(\"change\", subscription);\n }\n on(eventName, callback) {\n if (!this.events[eventName]) {\n this.events[eventName] = new SubscriptionManager();\n }\n const unsubscribe = this.events[eventName].add(callback);\n if (eventName === \"change\") {\n return () => {\n unsubscribe();\n /**\n * If we have no more change listeners by the start\n * of the next frame, stop active animations.\n */\n frame.read(() => {\n if (!this.events.change.getSize()) {\n this.stop();\n }\n });\n };\n }\n return unsubscribe;\n }\n clearListeners() {\n for (const eventManagers in this.events) {\n this.events[eventManagers].clear();\n }\n }\n /**\n * Attaches a passive effect to the `MotionValue`.\n *\n * @internal\n */\n attach(passiveEffect, stopPassiveEffect) {\n this.passiveEffect = passiveEffect;\n this.stopPassiveEffect = stopPassiveEffect;\n }\n /**\n * Sets the state of the `MotionValue`.\n *\n * @remarks\n *\n * ```jsx\n * const x = useMotionValue(0)\n * x.set(10)\n * ```\n *\n * @param latest - Latest value to set.\n * @param render - Whether to notify render subscribers. Defaults to `true`\n *\n * @public\n */\n set(v, render = true) {\n if (!render || !this.passiveEffect) {\n this.updateAndNotify(v, render);\n }\n else {\n this.passiveEffect(v, this.updateAndNotify);\n }\n }\n setWithVelocity(prev, current, delta) {\n this.set(current);\n this.prev = prev;\n this.timeDelta = delta;\n }\n /**\n * Set the state of the `MotionValue`, stopping any active animations,\n * effects, and resets velocity to `0`.\n */\n jump(v) {\n this.updateAndNotify(v);\n this.prev = v;\n this.stop();\n if (this.stopPassiveEffect)\n this.stopPassiveEffect();\n }\n /**\n * Returns the latest state of `MotionValue`\n *\n * @returns - The latest state of `MotionValue`\n *\n * @public\n */\n get() {\n if (collectMotionValues.current) {\n collectMotionValues.current.push(this);\n }\n return this.current;\n }\n /**\n * @public\n */\n getPrevious() {\n return this.prev;\n }\n /**\n * Returns the latest velocity of `MotionValue`\n *\n * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.\n *\n * @public\n */\n getVelocity() {\n // This could be isFloat(this.prev) && isFloat(this.current), but that would be wasteful\n return this.canTrackVelocity\n ? // These casts could be avoided if parseFloat would be typed better\n velocityPerSecond(parseFloat(this.current) -\n parseFloat(this.prev), this.timeDelta)\n : 0;\n }\n /**\n * Registers a new animation to control this `MotionValue`. Only one\n * animation can drive a `MotionValue` at one time.\n *\n * ```jsx\n * value.start()\n * ```\n *\n * @param animation - A function that starts the provided animation\n *\n * @internal\n */\n start(startAnimation) {\n this.stop();\n return new Promise((resolve) => {\n this.hasAnimated = true;\n this.animation = startAnimation(resolve);\n if (this.events.animationStart) {\n this.events.animationStart.notify();\n }\n }).then(() => {\n if (this.events.animationComplete) {\n this.events.animationComplete.notify();\n }\n this.clearAnimation();\n });\n }\n /**\n * Stop the currently active animation.\n *\n * @public\n */\n stop() {\n if (this.animation) {\n this.animation.stop();\n if (this.events.animationCancel) {\n this.events.animationCancel.notify();\n }\n }\n this.clearAnimation();\n }\n /**\n * Returns `true` if this value is currently animating.\n *\n * @public\n */\n isAnimating() {\n return !!this.animation;\n }\n clearAnimation() {\n delete this.animation;\n }\n /**\n * Destroy and clean up subscribers to this `MotionValue`.\n *\n * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically\n * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually\n * created a `MotionValue` via the `motionValue` function.\n *\n * @public\n */\n destroy() {\n this.clearListeners();\n this.stop();\n if (this.stopPassiveEffect) {\n this.stopPassiveEffect();\n }\n }\n}\nfunction motionValue(init, options) {\n return new MotionValue(init, options);\n}\n\nexport { MotionValue, collectMotionValues, motionValue };\n","/**\n * Tests a provided value against a ValueType\n */\nconst testValueType = (v) => (type) => type.test(v);\n\nexport { testValueType };\n","import { number } from '../../../value/types/numbers/index.mjs';\nimport { px, percent, degrees, vw, vh } from '../../../value/types/numbers/units.mjs';\nimport { testValueType } from './test.mjs';\nimport { auto } from './type-auto.mjs';\n\n/**\n * A list of value types commonly used for dimensions\n */\nconst dimensionValueTypes = [number, px, percent, degrees, vw, vh, auto];\n/**\n * Tests a dimensional value against the list of dimension ValueTypes\n */\nconst findDimensionValueType = (v) => dimensionValueTypes.find(testValueType(v));\n\nexport { dimensionValueTypes, findDimensionValueType };\n","/**\n * ValueType for \"auto\"\n */\nconst auto = {\n test: (v) => v === \"auto\",\n parse: (v) => v,\n};\n\nexport { auto };\n","import { color } from '../../../value/types/color/index.mjs';\nimport { complex } from '../../../value/types/complex/index.mjs';\nimport { dimensionValueTypes } from './dimensions.mjs';\nimport { testValueType } from './test.mjs';\n\n/**\n * A list of all ValueTypes\n */\nconst valueTypes = [...dimensionValueTypes, color, complex];\n/**\n * Tests a value against the list of ValueTypes\n */\nconst findValueType = (v) => valueTypes.find(testValueType(v));\n\nexport { findValueType };\n","import { isNumericalString } from '../../utils/is-numerical-string.mjs';\nimport { isZeroValueString } from '../../utils/is-zero-value-string.mjs';\nimport { resolveFinalValueInKeyframes } from '../../utils/resolve-value.mjs';\nimport { motionValue } from '../../value/index.mjs';\nimport { complex } from '../../value/types/complex/index.mjs';\nimport { getAnimatableNone } from '../dom/value-types/animatable-none.mjs';\nimport { findValueType } from '../dom/value-types/find.mjs';\nimport { resolveVariant } from './resolve-dynamic-variants.mjs';\n\n/**\n * Set VisualElement's MotionValue, creating a new MotionValue for it if\n * it doesn't exist.\n */\nfunction setMotionValue(visualElement, key, value) {\n if (visualElement.hasValue(key)) {\n visualElement.getValue(key).set(value);\n }\n else {\n visualElement.addValue(key, motionValue(value));\n }\n}\nfunction setTarget(visualElement, definition) {\n const resolved = resolveVariant(visualElement, definition);\n let { transitionEnd = {}, transition = {}, ...target } = resolved ? visualElement.makeTargetAnimatable(resolved, false) : {};\n target = { ...target, ...transitionEnd };\n for (const key in target) {\n const value = resolveFinalValueInKeyframes(target[key]);\n setMotionValue(visualElement, key, value);\n }\n}\nfunction setVariants(visualElement, variantLabels) {\n const reversedLabels = [...variantLabels].reverse();\n reversedLabels.forEach((key) => {\n const variant = visualElement.getVariant(key);\n variant && setTarget(visualElement, variant);\n if (visualElement.variantChildren) {\n visualElement.variantChildren.forEach((child) => {\n setVariants(child, variantLabels);\n });\n }\n });\n}\nfunction setValues(visualElement, definition) {\n if (Array.isArray(definition)) {\n return setVariants(visualElement, definition);\n }\n else if (typeof definition === \"string\") {\n return setVariants(visualElement, [definition]);\n }\n else {\n setTarget(visualElement, definition);\n }\n}\nfunction checkTargetForNewValues(visualElement, target, origin) {\n var _a, _b;\n const newValueKeys = Object.keys(target).filter((key) => !visualElement.hasValue(key));\n const numNewValues = newValueKeys.length;\n if (!numNewValues)\n return;\n for (let i = 0; i < numNewValues; i++) {\n const key = newValueKeys[i];\n const targetValue = target[key];\n let value = null;\n /**\n * If the target is a series of keyframes, we can use the first value\n * in the array. If this first value is null, we'll still need to read from the DOM.\n */\n if (Array.isArray(targetValue)) {\n value = targetValue[0];\n }\n /**\n * If the target isn't keyframes, or the first keyframe was null, we need to\n * first check if an origin value was explicitly defined in the transition as \"from\",\n * if not read the value from the DOM. As an absolute fallback, take the defined target value.\n */\n if (value === null) {\n value = (_b = (_a = origin[key]) !== null && _a !== void 0 ? _a : visualElement.readValue(key)) !== null && _b !== void 0 ? _b : target[key];\n }\n /**\n * If value is still undefined or null, ignore it. Preferably this would throw,\n * but this was causing issues in Framer.\n */\n if (value === undefined || value === null)\n continue;\n if (typeof value === \"string\" &&\n (isNumericalString(value) || isZeroValueString(value))) {\n // If this is a number read as a string, ie \"0\" or \"200\", convert it to a number\n value = parseFloat(value);\n }\n else if (!findValueType(value) && complex.test(targetValue)) {\n value = getAnimatableNone(key, targetValue);\n }\n visualElement.addValue(key, motionValue(value, { owner: visualElement }));\n if (origin[key] === undefined) {\n origin[key] = value;\n }\n if (value !== null)\n visualElement.setBaseTarget(key, value);\n }\n}\nfunction getOriginFromTransition(key, transition) {\n if (!transition)\n return;\n const valueTransition = transition[key] || transition[\"default\"] || transition;\n return valueTransition.from;\n}\nfunction getOrigin(target, transition, visualElement) {\n const origin = {};\n for (const key in target) {\n const transitionOrigin = getOriginFromTransition(key, transition);\n if (transitionOrigin !== undefined) {\n origin[key] = transitionOrigin;\n }\n else {\n const value = visualElement.getValue(key);\n if (value) {\n origin[key] = value.get();\n }\n }\n }\n return origin;\n}\n\nexport { checkTargetForNewValues, getOrigin, getOriginFromTransition, setTarget, setValues };\n","import { transformProps } from '../../render/html/utils/transform.mjs';\nimport { optimizedAppearDataAttribute } from '../optimized-appear/data-id.mjs';\nimport { animateMotionValue } from './motion-value.mjs';\nimport { isWillChangeMotionValue } from '../../value/use-will-change/is.mjs';\nimport { setTarget } from '../../render/utils/setters.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\n/**\n * Decide whether we should block this animation. Previously, we achieved this\n * just by checking whether the key was listed in protectedKeys, but this\n * posed problems if an animation was triggered by afterChildren and protectedKeys\n * had been set to true in the meantime.\n */\nfunction shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {\n const shouldBlock = protectedKeys.hasOwnProperty(key) && needsAnimating[key] !== true;\n needsAnimating[key] = false;\n return shouldBlock;\n}\nfunction animateTarget(visualElement, definition, { delay = 0, transitionOverride, type } = {}) {\n let { transition = visualElement.getDefaultTransition(), transitionEnd, ...target } = visualElement.makeTargetAnimatable(definition);\n const willChange = visualElement.getValue(\"willChange\");\n if (transitionOverride)\n transition = transitionOverride;\n const animations = [];\n const animationTypeState = type &&\n visualElement.animationState &&\n visualElement.animationState.getState()[type];\n for (const key in target) {\n const value = visualElement.getValue(key);\n const valueTarget = target[key];\n if (!value ||\n valueTarget === undefined ||\n (animationTypeState &&\n shouldBlockAnimation(animationTypeState, key))) {\n continue;\n }\n const valueTransition = {\n delay,\n elapsed: 0,\n ...transition,\n };\n /**\n * If this is the first time a value is being animated, check\n * to see if we're handling off from an existing animation.\n */\n if (window.HandoffAppearAnimations && !value.hasAnimated) {\n const appearId = visualElement.getProps()[optimizedAppearDataAttribute];\n if (appearId) {\n valueTransition.elapsed = window.HandoffAppearAnimations(appearId, key, value, frame);\n valueTransition.syncStart = true;\n }\n }\n value.start(animateMotionValue(key, value, valueTarget, visualElement.shouldReduceMotion && transformProps.has(key)\n ? { type: false }\n : valueTransition));\n const animation = value.animation;\n if (isWillChangeMotionValue(willChange)) {\n willChange.add(key);\n animation.then(() => willChange.remove(key));\n }\n animations.push(animation);\n }\n if (transitionEnd) {\n Promise.all(animations).then(() => {\n transitionEnd && setTarget(visualElement, transitionEnd);\n });\n }\n return animations;\n}\n\nexport { animateTarget };\n","import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\n\nfunction animateVariant(visualElement, variant, options = {}) {\n const resolved = resolveVariant(visualElement, variant, options.custom);\n let { transition = visualElement.getDefaultTransition() || {} } = resolved || {};\n if (options.transitionOverride) {\n transition = options.transitionOverride;\n }\n /**\n * If we have a variant, create a callback that runs it as an animation.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getAnimation = resolved\n ? () => Promise.all(animateTarget(visualElement, resolved, options))\n : () => Promise.resolve();\n /**\n * If we have children, create a callback that runs all their animations.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getChildAnimations = visualElement.variantChildren && visualElement.variantChildren.size\n ? (forwardDelay = 0) => {\n const { delayChildren = 0, staggerChildren, staggerDirection, } = transition;\n return animateChildren(visualElement, variant, delayChildren + forwardDelay, staggerChildren, staggerDirection, options);\n }\n : () => Promise.resolve();\n /**\n * If the transition explicitly defines a \"when\" option, we need to resolve either\n * this animation or all children animations before playing the other.\n */\n const { when } = transition;\n if (when) {\n const [first, last] = when === \"beforeChildren\"\n ? [getAnimation, getChildAnimations]\n : [getChildAnimations, getAnimation];\n return first().then(() => last());\n }\n else {\n return Promise.all([getAnimation(), getChildAnimations(options.delay)]);\n }\n}\nfunction animateChildren(visualElement, variant, delayChildren = 0, staggerChildren = 0, staggerDirection = 1, options) {\n const animations = [];\n const maxStaggerDuration = (visualElement.variantChildren.size - 1) * staggerChildren;\n const generateStaggerDuration = staggerDirection === 1\n ? (i = 0) => i * staggerChildren\n : (i = 0) => maxStaggerDuration - i * staggerChildren;\n Array.from(visualElement.variantChildren)\n .sort(sortByTreeOrder)\n .forEach((child, i) => {\n child.notify(\"AnimationStart\", variant);\n animations.push(animateVariant(child, variant, {\n ...options,\n delay: delayChildren + generateStaggerDuration(i),\n }).then(() => child.notify(\"AnimationComplete\", variant)));\n });\n return Promise.all(animations);\n}\nfunction sortByTreeOrder(a, b) {\n return a.sortNodePosition(b);\n}\n\nexport { animateVariant, sortByTreeOrder };\n","import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\nimport { animateVariant } from './visual-element-variant.mjs';\n\nfunction animateVisualElement(visualElement, definition, options = {}) {\n visualElement.notify(\"AnimationStart\", definition);\n let animation;\n if (Array.isArray(definition)) {\n const animations = definition.map((variant) => animateVariant(visualElement, variant, options));\n animation = Promise.all(animations);\n }\n else if (typeof definition === \"string\") {\n animation = animateVariant(visualElement, definition, options);\n }\n else {\n const resolvedDefinition = typeof definition === \"function\"\n ? resolveVariant(visualElement, definition, options.custom)\n : definition;\n animation = Promise.all(animateTarget(visualElement, resolvedDefinition, options));\n }\n return animation.then(() => visualElement.notify(\"AnimationComplete\", definition));\n}\n\nexport { animateVisualElement };\n","import { isAnimationControls } from '../../animation/utils/is-animation-controls.mjs';\nimport { isKeyframesTarget } from '../../animation/utils/is-keyframes-target.mjs';\nimport { shallowCompare } from '../../utils/shallow-compare.mjs';\nimport { isVariantLabel } from './is-variant-label.mjs';\nimport { resolveVariant } from './resolve-dynamic-variants.mjs';\nimport { variantPriorityOrder } from './variant-props.mjs';\nimport { animateVisualElement } from '../../animation/interfaces/visual-element.mjs';\n\nconst reversePriorityOrder = [...variantPriorityOrder].reverse();\nconst numAnimationTypes = variantPriorityOrder.length;\nfunction animateList(visualElement) {\n return (animations) => Promise.all(animations.map(({ animation, options }) => animateVisualElement(visualElement, animation, options)));\n}\nfunction createAnimationState(visualElement) {\n let animate = animateList(visualElement);\n const state = createState();\n let isInitialRender = true;\n /**\n * This function will be used to reduce the animation definitions for\n * each active animation type into an object of resolved values for it.\n */\n const buildResolvedTypeValues = (acc, definition) => {\n const resolved = resolveVariant(visualElement, definition);\n if (resolved) {\n const { transition, transitionEnd, ...target } = resolved;\n acc = { ...acc, ...target, ...transitionEnd };\n }\n return acc;\n };\n /**\n * This just allows us to inject mocked animation functions\n * @internal\n */\n function setAnimateFunction(makeAnimator) {\n animate = makeAnimator(visualElement);\n }\n /**\n * When we receive new props, we need to:\n * 1. Create a list of protected keys for each type. This is a directory of\n * value keys that are currently being \"handled\" by types of a higher priority\n * so that whenever an animation is played of a given type, these values are\n * protected from being animated.\n * 2. Determine if an animation type needs animating.\n * 3. Determine if any values have been removed from a type and figure out\n * what to animate those to.\n */\n function animateChanges(options, changedActiveType) {\n const props = visualElement.getProps();\n const context = visualElement.getVariantContext(true) || {};\n /**\n * A list of animations that we'll build into as we iterate through the animation\n * types. This will get executed at the end of the function.\n */\n const animations = [];\n /**\n * Keep track of which values have been removed. Then, as we hit lower priority\n * animation types, we can check if they contain removed values and animate to that.\n */\n const removedKeys = new Set();\n /**\n * A dictionary of all encountered keys. This is an object to let us build into and\n * copy it without iteration. Each time we hit an animation type we set its protected\n * keys - the keys its not allowed to animate - to the latest version of this object.\n */\n let encounteredKeys = {};\n /**\n * If a variant has been removed at a given index, and this component is controlling\n * variant animations, we want to ensure lower-priority variants are forced to animate.\n */\n let removedVariantIndex = Infinity;\n /**\n * Iterate through all animation types in reverse priority order. For each, we want to\n * detect which values it's handling and whether or not they've changed (and therefore\n * need to be animated). If any values have been removed, we want to detect those in\n * lower priority props and flag for animation.\n */\n for (let i = 0; i < numAnimationTypes; i++) {\n const type = reversePriorityOrder[i];\n const typeState = state[type];\n const prop = props[type] !== undefined ? props[type] : context[type];\n const propIsVariant = isVariantLabel(prop);\n /**\n * If this type has *just* changed isActive status, set activeDelta\n * to that status. Otherwise set to null.\n */\n const activeDelta = type === changedActiveType ? typeState.isActive : null;\n if (activeDelta === false)\n removedVariantIndex = i;\n /**\n * If this prop is an inherited variant, rather than been set directly on the\n * component itself, we want to make sure we allow the parent to trigger animations.\n *\n * TODO: Can probably change this to a !isControllingVariants check\n */\n let isInherited = prop === context[type] && prop !== props[type] && propIsVariant;\n /**\n *\n */\n if (isInherited &&\n isInitialRender &&\n visualElement.manuallyAnimateOnMount) {\n isInherited = false;\n }\n /**\n * Set all encountered keys so far as the protected keys for this type. This will\n * be any key that has been animated or otherwise handled by active, higher-priortiy types.\n */\n typeState.protectedKeys = { ...encounteredKeys };\n // Check if we can skip analysing this prop early\n if (\n // If it isn't active and hasn't *just* been set as inactive\n (!typeState.isActive && activeDelta === null) ||\n // If we didn't and don't have any defined prop for this animation type\n (!prop && !typeState.prevProp) ||\n // Or if the prop doesn't define an animation\n isAnimationControls(prop) ||\n typeof prop === \"boolean\") {\n continue;\n }\n /**\n * As we go look through the values defined on this type, if we detect\n * a changed value or a value that was removed in a higher priority, we set\n * this to true and add this prop to the animation list.\n */\n const variantDidChange = checkVariantsDidChange(typeState.prevProp, prop);\n let shouldAnimateType = variantDidChange ||\n // If we're making this variant active, we want to always make it active\n (type === changedActiveType &&\n typeState.isActive &&\n !isInherited &&\n propIsVariant) ||\n // If we removed a higher-priority variant (i is in reverse order)\n (i > removedVariantIndex && propIsVariant);\n /**\n * As animations can be set as variant lists, variants or target objects, we\n * coerce everything to an array if it isn't one already\n */\n const definitionList = Array.isArray(prop) ? prop : [prop];\n /**\n * Build an object of all the resolved values. We'll use this in the subsequent\n * animateChanges calls to determine whether a value has changed.\n */\n let resolvedValues = definitionList.reduce(buildResolvedTypeValues, {});\n if (activeDelta === false)\n resolvedValues = {};\n /**\n * Now we need to loop through all the keys in the prev prop and this prop,\n * and decide:\n * 1. If the value has changed, and needs animating\n * 2. If it has been removed, and needs adding to the removedKeys set\n * 3. If it has been removed in a higher priority type and needs animating\n * 4. If it hasn't been removed in a higher priority but hasn't changed, and\n * needs adding to the type's protectedKeys list.\n */\n const { prevResolvedValues = {} } = typeState;\n const allKeys = {\n ...prevResolvedValues,\n ...resolvedValues,\n };\n const markToAnimate = (key) => {\n shouldAnimateType = true;\n removedKeys.delete(key);\n typeState.needsAnimating[key] = true;\n };\n for (const key in allKeys) {\n const next = resolvedValues[key];\n const prev = prevResolvedValues[key];\n // If we've already handled this we can just skip ahead\n if (encounteredKeys.hasOwnProperty(key))\n continue;\n /**\n * If the value has changed, we probably want to animate it.\n */\n if (next !== prev) {\n /**\n * If both values are keyframes, we need to shallow compare them to\n * detect whether any value has changed. If it has, we animate it.\n */\n if (isKeyframesTarget(next) && isKeyframesTarget(prev)) {\n if (!shallowCompare(next, prev) || variantDidChange) {\n markToAnimate(key);\n }\n else {\n /**\n * If it hasn't changed, we want to ensure it doesn't animate by\n * adding it to the list of protected keys.\n */\n typeState.protectedKeys[key] = true;\n }\n }\n else if (next !== undefined) {\n // If next is defined and doesn't equal prev, it needs animating\n markToAnimate(key);\n }\n else {\n // If it's undefined, it's been removed.\n removedKeys.add(key);\n }\n }\n else if (next !== undefined && removedKeys.has(key)) {\n /**\n * If next hasn't changed and it isn't undefined, we want to check if it's\n * been removed by a higher priority\n */\n markToAnimate(key);\n }\n else {\n /**\n * If it hasn't changed, we add it to the list of protected values\n * to ensure it doesn't get animated.\n */\n typeState.protectedKeys[key] = true;\n }\n }\n /**\n * Update the typeState so next time animateChanges is called we can compare the\n * latest prop and resolvedValues to these.\n */\n typeState.prevProp = prop;\n typeState.prevResolvedValues = resolvedValues;\n /**\n *\n */\n if (typeState.isActive) {\n encounteredKeys = { ...encounteredKeys, ...resolvedValues };\n }\n if (isInitialRender && visualElement.blockInitialAnimation) {\n shouldAnimateType = false;\n }\n /**\n * If this is an inherited prop we want to hard-block animations\n * TODO: Test as this should probably still handle animations triggered\n * by removed values?\n */\n if (shouldAnimateType && !isInherited) {\n animations.push(...definitionList.map((animation) => ({\n animation: animation,\n options: { type, ...options },\n })));\n }\n }\n /**\n * If there are some removed value that haven't been dealt with,\n * we need to create a new animation that falls back either to the value\n * defined in the style prop, or the last read value.\n */\n if (removedKeys.size) {\n const fallbackAnimation = {};\n removedKeys.forEach((key) => {\n const fallbackTarget = visualElement.getBaseTarget(key);\n if (fallbackTarget !== undefined) {\n fallbackAnimation[key] = fallbackTarget;\n }\n });\n animations.push({ animation: fallbackAnimation });\n }\n let shouldAnimate = Boolean(animations.length);\n if (isInitialRender &&\n props.initial === false &&\n !visualElement.manuallyAnimateOnMount) {\n shouldAnimate = false;\n }\n isInitialRender = false;\n return shouldAnimate ? animate(animations) : Promise.resolve();\n }\n /**\n * Change whether a certain animation type is active.\n */\n function setActive(type, isActive, options) {\n var _a;\n // If the active state hasn't changed, we can safely do nothing here\n if (state[type].isActive === isActive)\n return Promise.resolve();\n // Propagate active change to children\n (_a = visualElement.variantChildren) === null || _a === void 0 ? void 0 : _a.forEach((child) => { var _a; return (_a = child.animationState) === null || _a === void 0 ? void 0 : _a.setActive(type, isActive); });\n state[type].isActive = isActive;\n const animations = animateChanges(options, type);\n for (const key in state) {\n state[key].protectedKeys = {};\n }\n return animations;\n }\n return {\n animateChanges,\n setActive,\n setAnimateFunction,\n getState: () => state,\n };\n}\nfunction checkVariantsDidChange(prev, next) {\n if (typeof next === \"string\") {\n return next !== prev;\n }\n else if (Array.isArray(next)) {\n return !shallowCompare(next, prev);\n }\n return false;\n}\nfunction createTypeState(isActive = false) {\n return {\n isActive,\n protectedKeys: {},\n needsAnimating: {},\n prevResolvedValues: {},\n };\n}\nfunction createState() {\n return {\n animate: createTypeState(true),\n whileInView: createTypeState(),\n whileHover: createTypeState(),\n whileTap: createTypeState(),\n whileDrag: createTypeState(),\n whileFocus: createTypeState(),\n exit: createTypeState(),\n };\n}\n\nexport { checkVariantsDidChange, createAnimationState };\n","import { Feature } from '../Feature.mjs';\n\nlet id = 0;\nclass ExitAnimationFeature extends Feature {\n constructor() {\n super(...arguments);\n this.id = id++;\n }\n update() {\n if (!this.node.presenceContext)\n return;\n const { isPresent, onExitComplete, custom } = this.node.presenceContext;\n const { isPresent: prevIsPresent } = this.node.prevPresenceContext || {};\n if (!this.node.animationState || isPresent === prevIsPresent) {\n return;\n }\n const exitAnimation = this.node.animationState.setActive(\"exit\", !isPresent, { custom: custom !== null && custom !== void 0 ? custom : this.node.getProps().custom });\n if (onExitComplete && !isPresent) {\n exitAnimation.then(() => onExitComplete(this.id));\n }\n }\n mount() {\n const { register } = this.node.presenceContext || {};\n if (register) {\n this.unmount = register(this.id);\n }\n }\n unmount() { }\n}\n\nexport { ExitAnimationFeature };\n","import { AnimationFeature } from './animation/index.mjs';\nimport { ExitAnimationFeature } from './animation/exit.mjs';\n\nconst animations = {\n animation: {\n Feature: AnimationFeature,\n },\n exit: {\n Feature: ExitAnimationFeature,\n },\n};\n\nexport { animations };\n","import { isAnimationControls } from '../../../animation/utils/is-animation-controls.mjs';\nimport { createAnimationState } from '../../../render/utils/animation-state.mjs';\nimport { Feature } from '../Feature.mjs';\n\nclass AnimationFeature extends Feature {\n /**\n * We dynamically generate the AnimationState manager as it contains a reference\n * to the underlying animation library. We only want to load that if we load this,\n * so people can optionally code split it out using the `m` component.\n */\n constructor(node) {\n super(node);\n node.animationState || (node.animationState = createAnimationState(node));\n }\n updateAnimationControlsSubscription() {\n const { animate } = this.node.getProps();\n this.unmount();\n if (isAnimationControls(animate)) {\n this.unmount = animate.subscribe(this.node);\n }\n }\n /**\n * Subscribe any provided AnimationControls to the component's VisualElement\n */\n mount() {\n this.updateAnimationControlsSubscription();\n }\n update() {\n const { animate } = this.node.getProps();\n const { animate: prevAnimate } = this.node.prevProps || {};\n if (animate !== prevAnimate) {\n this.updateAnimationControlsSubscription();\n }\n }\n unmount() { }\n}\n\nexport { AnimationFeature };\n","const distance = (a, b) => Math.abs(a - b);\nfunction distance2D(a, b) {\n // Multi-dimensional\n const xDelta = distance(a.x, b.x);\n const yDelta = distance(a.y, b.y);\n return Math.sqrt(xDelta ** 2 + yDelta ** 2);\n}\n\nexport { distance, distance2D };\n","import { extractEventInfo } from '../../events/event-info.mjs';\nimport { secondsToMilliseconds, millisecondsToSeconds } from '../../utils/time-conversion.mjs';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { pipe } from '../../utils/pipe.mjs';\nimport { distance2D } from '../../utils/distance.mjs';\nimport { isPrimaryPointer } from '../../events/utils/is-primary-pointer.mjs';\nimport { frame, cancelFrame, frameData } from '../../frameloop/frame.mjs';\n\n/**\n * @internal\n */\nclass PanSession {\n constructor(event, handlers, { transformPagePoint } = {}) {\n /**\n * @internal\n */\n this.startEvent = null;\n /**\n * @internal\n */\n this.lastMoveEvent = null;\n /**\n * @internal\n */\n this.lastMoveEventInfo = null;\n /**\n * @internal\n */\n this.handlers = {};\n this.updatePoint = () => {\n if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n return;\n const info = getPanInfo(this.lastMoveEventInfo, this.history);\n const isPanStarted = this.startEvent !== null;\n // Only start panning if the offset is larger than 3 pixels. If we make it\n // any larger than this we'll want to reset the pointer history\n // on the first update to avoid visual snapping to the cursoe.\n const isDistancePastThreshold = distance2D(info.offset, { x: 0, y: 0 }) >= 3;\n if (!isPanStarted && !isDistancePastThreshold)\n return;\n const { point } = info;\n const { timestamp } = frameData;\n this.history.push({ ...point, timestamp });\n const { onStart, onMove } = this.handlers;\n if (!isPanStarted) {\n onStart && onStart(this.lastMoveEvent, info);\n this.startEvent = this.lastMoveEvent;\n }\n onMove && onMove(this.lastMoveEvent, info);\n };\n this.handlePointerMove = (event, info) => {\n this.lastMoveEvent = event;\n this.lastMoveEventInfo = transformPoint(info, this.transformPagePoint);\n // Throttle mouse move event to once per frame\n frame.update(this.updatePoint, true);\n };\n this.handlePointerUp = (event, info) => {\n this.end();\n if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n return;\n const { onEnd, onSessionEnd } = this.handlers;\n const panInfo = getPanInfo(event.type === \"pointercancel\"\n ? this.lastMoveEventInfo\n : transformPoint(info, this.transformPagePoint), this.history);\n if (this.startEvent && onEnd) {\n onEnd(event, panInfo);\n }\n onSessionEnd && onSessionEnd(event, panInfo);\n };\n // If we have more than one touch, don't start detecting this gesture\n if (!isPrimaryPointer(event))\n return;\n this.handlers = handlers;\n this.transformPagePoint = transformPagePoint;\n const info = extractEventInfo(event);\n const initialInfo = transformPoint(info, this.transformPagePoint);\n const { point } = initialInfo;\n const { timestamp } = frameData;\n this.history = [{ ...point, timestamp }];\n const { onSessionStart } = handlers;\n onSessionStart &&\n onSessionStart(event, getPanInfo(initialInfo, this.history));\n this.removeListeners = pipe(addPointerEvent(window, \"pointermove\", this.handlePointerMove), addPointerEvent(window, \"pointerup\", this.handlePointerUp), addPointerEvent(window, \"pointercancel\", this.handlePointerUp));\n }\n updateHandlers(handlers) {\n this.handlers = handlers;\n }\n end() {\n this.removeListeners && this.removeListeners();\n cancelFrame(this.updatePoint);\n }\n}\nfunction transformPoint(info, transformPagePoint) {\n return transformPagePoint ? { point: transformPagePoint(info.point) } : info;\n}\nfunction subtractPoint(a, b) {\n return { x: a.x - b.x, y: a.y - b.y };\n}\nfunction getPanInfo({ point }, history) {\n return {\n point,\n delta: subtractPoint(point, lastDevicePoint(history)),\n offset: subtractPoint(point, startDevicePoint(history)),\n velocity: getVelocity(history, 0.1),\n };\n}\nfunction startDevicePoint(history) {\n return history[0];\n}\nfunction lastDevicePoint(history) {\n return history[history.length - 1];\n}\nfunction getVelocity(history, timeDelta) {\n if (history.length < 2) {\n return { x: 0, y: 0 };\n }\n let i = history.length - 1;\n let timestampedPoint = null;\n const lastPoint = lastDevicePoint(history);\n while (i >= 0) {\n timestampedPoint = history[i];\n if (lastPoint.timestamp - timestampedPoint.timestamp >\n secondsToMilliseconds(timeDelta)) {\n break;\n }\n i--;\n }\n if (!timestampedPoint) {\n return { x: 0, y: 0 };\n }\n const time = millisecondsToSeconds(lastPoint.timestamp - timestampedPoint.timestamp);\n if (time === 0) {\n return { x: 0, y: 0 };\n }\n const currentVelocity = {\n x: (lastPoint.x - timestampedPoint.x) / time,\n y: (lastPoint.y - timestampedPoint.y) / time,\n };\n if (currentVelocity.x === Infinity) {\n currentVelocity.x = 0;\n }\n if (currentVelocity.y === Infinity) {\n currentVelocity.y = 0;\n }\n return currentVelocity;\n}\n\nexport { PanSession };\n","import { mix } from '../../utils/mix.mjs';\n\nfunction calcLength(axis) {\n return axis.max - axis.min;\n}\nfunction isNear(value, target = 0, maxDistance = 0.01) {\n return Math.abs(value - target) <= maxDistance;\n}\nfunction calcAxisDelta(delta, source, target, origin = 0.5) {\n delta.origin = origin;\n delta.originPoint = mix(source.min, source.max, delta.origin);\n delta.scale = calcLength(target) / calcLength(source);\n if (isNear(delta.scale, 1, 0.0001) || isNaN(delta.scale))\n delta.scale = 1;\n delta.translate =\n mix(target.min, target.max, delta.origin) - delta.originPoint;\n if (isNear(delta.translate) || isNaN(delta.translate))\n delta.translate = 0;\n}\nfunction calcBoxDelta(delta, source, target, origin) {\n calcAxisDelta(delta.x, source.x, target.x, origin ? origin.originX : undefined);\n calcAxisDelta(delta.y, source.y, target.y, origin ? origin.originY : undefined);\n}\nfunction calcRelativeAxis(target, relative, parent) {\n target.min = parent.min + relative.min;\n target.max = target.min + calcLength(relative);\n}\nfunction calcRelativeBox(target, relative, parent) {\n calcRelativeAxis(target.x, relative.x, parent.x);\n calcRelativeAxis(target.y, relative.y, parent.y);\n}\nfunction calcRelativeAxisPosition(target, layout, parent) {\n target.min = layout.min - parent.min;\n target.max = target.min + calcLength(layout);\n}\nfunction calcRelativePosition(target, layout, parent) {\n calcRelativeAxisPosition(target.x, layout.x, parent.x);\n calcRelativeAxisPosition(target.y, layout.y, parent.y);\n}\n\nexport { calcAxisDelta, calcBoxDelta, calcLength, calcRelativeAxis, calcRelativeAxisPosition, calcRelativeBox, calcRelativePosition, isNear };\n","import { progress } from '../../../utils/progress.mjs';\nimport { calcLength } from '../../../projection/geometry/delta-calc.mjs';\nimport { clamp } from '../../../utils/clamp.mjs';\nimport { mix } from '../../../utils/mix.mjs';\n\n/**\n * Apply constraints to a point. These constraints are both physical along an\n * axis, and an elastic factor that determines how much to constrain the point\n * by if it does lie outside the defined parameters.\n */\nfunction applyConstraints(point, { min, max }, elastic) {\n if (min !== undefined && point < min) {\n // If we have a min point defined, and this is outside of that, constrain\n point = elastic ? mix(min, point, elastic.min) : Math.max(point, min);\n }\n else if (max !== undefined && point > max) {\n // If we have a max point defined, and this is outside of that, constrain\n point = elastic ? mix(max, point, elastic.max) : Math.min(point, max);\n }\n return point;\n}\n/**\n * Calculate constraints in terms of the viewport when defined relatively to the\n * measured axis. This is measured from the nearest edge, so a max constraint of 200\n * on an axis with a max value of 300 would return a constraint of 500 - axis length\n */\nfunction calcRelativeAxisConstraints(axis, min, max) {\n return {\n min: min !== undefined ? axis.min + min : undefined,\n max: max !== undefined\n ? axis.max + max - (axis.max - axis.min)\n : undefined,\n };\n}\n/**\n * Calculate constraints in terms of the viewport when\n * defined relatively to the measured bounding box.\n */\nfunction calcRelativeConstraints(layoutBox, { top, left, bottom, right }) {\n return {\n x: calcRelativeAxisConstraints(layoutBox.x, left, right),\n y: calcRelativeAxisConstraints(layoutBox.y, top, bottom),\n };\n}\n/**\n * Calculate viewport constraints when defined as another viewport-relative axis\n */\nfunction calcViewportAxisConstraints(layoutAxis, constraintsAxis) {\n let min = constraintsAxis.min - layoutAxis.min;\n let max = constraintsAxis.max - layoutAxis.max;\n // If the constraints axis is actually smaller than the layout axis then we can\n // flip the constraints\n if (constraintsAxis.max - constraintsAxis.min <\n layoutAxis.max - layoutAxis.min) {\n [min, max] = [max, min];\n }\n return { min, max };\n}\n/**\n * Calculate viewport constraints when defined as another viewport-relative box\n */\nfunction calcViewportConstraints(layoutBox, constraintsBox) {\n return {\n x: calcViewportAxisConstraints(layoutBox.x, constraintsBox.x),\n y: calcViewportAxisConstraints(layoutBox.y, constraintsBox.y),\n };\n}\n/**\n * Calculate a transform origin relative to the source axis, between 0-1, that results\n * in an asthetically pleasing scale/transform needed to project from source to target.\n */\nfunction calcOrigin(source, target) {\n let origin = 0.5;\n const sourceLength = calcLength(source);\n const targetLength = calcLength(target);\n if (targetLength > sourceLength) {\n origin = progress(target.min, target.max - sourceLength, source.min);\n }\n else if (sourceLength > targetLength) {\n origin = progress(source.min, source.max - targetLength, target.min);\n }\n return clamp(0, 1, origin);\n}\n/**\n * Rebase the calculated viewport constraints relative to the layout.min point.\n */\nfunction rebaseAxisConstraints(layout, constraints) {\n const relativeConstraints = {};\n if (constraints.min !== undefined) {\n relativeConstraints.min = constraints.min - layout.min;\n }\n if (constraints.max !== undefined) {\n relativeConstraints.max = constraints.max - layout.min;\n }\n return relativeConstraints;\n}\nconst defaultElastic = 0.35;\n/**\n * Accepts a dragElastic prop and returns resolved elastic values for each axis.\n */\nfunction resolveDragElastic(dragElastic = defaultElastic) {\n if (dragElastic === false) {\n dragElastic = 0;\n }\n else if (dragElastic === true) {\n dragElastic = defaultElastic;\n }\n return {\n x: resolveAxisElastic(dragElastic, \"left\", \"right\"),\n y: resolveAxisElastic(dragElastic, \"top\", \"bottom\"),\n };\n}\nfunction resolveAxisElastic(dragElastic, minLabel, maxLabel) {\n return {\n min: resolvePointElastic(dragElastic, minLabel),\n max: resolvePointElastic(dragElastic, maxLabel),\n };\n}\nfunction resolvePointElastic(dragElastic, label) {\n return typeof dragElastic === \"number\"\n ? dragElastic\n : dragElastic[label] || 0;\n}\n\nexport { applyConstraints, calcOrigin, calcRelativeAxisConstraints, calcRelativeConstraints, calcViewportAxisConstraints, calcViewportConstraints, defaultElastic, rebaseAxisConstraints, resolveAxisElastic, resolveDragElastic, resolvePointElastic };\n","function eachAxis(callback) {\n return [callback(\"x\"), callback(\"y\")];\n}\n\nexport { eachAxis };\n","/**\n * Bounding boxes tend to be defined as top, left, right, bottom. For various operations\n * it's easier to consider each axis individually. This function returns a bounding box\n * as a map of single-axis min/max values.\n */\nfunction convertBoundingBoxToBox({ top, left, right, bottom, }) {\n return {\n x: { min: left, max: right },\n y: { min: top, max: bottom },\n };\n}\nfunction convertBoxToBoundingBox({ x, y }) {\n return { top: y.min, right: x.max, bottom: y.max, left: x.min };\n}\n/**\n * Applies a TransformPoint function to a bounding box. TransformPoint is usually a function\n * provided by Framer to allow measured points to be corrected for device scaling. This is used\n * when measuring DOM elements and DOM event points.\n */\nfunction transformBoxPoints(point, transformPoint) {\n if (!transformPoint)\n return point;\n const topLeft = transformPoint({ x: point.left, y: point.top });\n const bottomRight = transformPoint({ x: point.right, y: point.bottom });\n return {\n top: topLeft.y,\n left: topLeft.x,\n bottom: bottomRight.y,\n right: bottomRight.x,\n };\n}\n\nexport { convertBoundingBoxToBox, convertBoxToBoundingBox, transformBoxPoints };\n","function isIdentityScale(scale) {\n return scale === undefined || scale === 1;\n}\nfunction hasScale({ scale, scaleX, scaleY }) {\n return (!isIdentityScale(scale) ||\n !isIdentityScale(scaleX) ||\n !isIdentityScale(scaleY));\n}\nfunction hasTransform(values) {\n return (hasScale(values) ||\n has2DTranslate(values) ||\n values.z ||\n values.rotate ||\n values.rotateX ||\n values.rotateY);\n}\nfunction has2DTranslate(values) {\n return is2DTranslate(values.x) || is2DTranslate(values.y);\n}\nfunction is2DTranslate(value) {\n return value && value !== \"0%\";\n}\n\nexport { has2DTranslate, hasScale, hasTransform };\n","import { mix } from '../../utils/mix.mjs';\nimport { hasTransform } from '../utils/has-transform.mjs';\n\n/**\n * Scales a point based on a factor and an originPoint\n */\nfunction scalePoint(point, scale, originPoint) {\n const distanceFromOrigin = point - originPoint;\n const scaled = scale * distanceFromOrigin;\n return originPoint + scaled;\n}\n/**\n * Applies a translate/scale delta to a point\n */\nfunction applyPointDelta(point, translate, scale, originPoint, boxScale) {\n if (boxScale !== undefined) {\n point = scalePoint(point, boxScale, originPoint);\n }\n return scalePoint(point, scale, originPoint) + translate;\n}\n/**\n * Applies a translate/scale delta to an axis\n */\nfunction applyAxisDelta(axis, translate = 0, scale = 1, originPoint, boxScale) {\n axis.min = applyPointDelta(axis.min, translate, scale, originPoint, boxScale);\n axis.max = applyPointDelta(axis.max, translate, scale, originPoint, boxScale);\n}\n/**\n * Applies a translate/scale delta to a box\n */\nfunction applyBoxDelta(box, { x, y }) {\n applyAxisDelta(box.x, x.translate, x.scale, x.originPoint);\n applyAxisDelta(box.y, y.translate, y.scale, y.originPoint);\n}\n/**\n * Apply a tree of deltas to a box. We do this to calculate the effect of all the transforms\n * in a tree upon our box before then calculating how to project it into our desired viewport-relative box\n *\n * This is the final nested loop within updateLayoutDelta for future refactoring\n */\nfunction applyTreeDeltas(box, treeScale, treePath, isSharedTransition = false) {\n const treeLength = treePath.length;\n if (!treeLength)\n return;\n // Reset the treeScale\n treeScale.x = treeScale.y = 1;\n let node;\n let delta;\n for (let i = 0; i < treeLength; i++) {\n node = treePath[i];\n delta = node.projectionDelta;\n /**\n * TODO: Prefer to remove this, but currently we have motion components with\n * display: contents in Framer.\n */\n const instance = node.instance;\n if (instance &&\n instance.style &&\n instance.style.display === \"contents\") {\n continue;\n }\n if (isSharedTransition &&\n node.options.layoutScroll &&\n node.scroll &&\n node !== node.root) {\n transformBox(box, {\n x: -node.scroll.offset.x,\n y: -node.scroll.offset.y,\n });\n }\n if (delta) {\n // Incoporate each ancestor's scale into a culmulative treeScale for this component\n treeScale.x *= delta.x.scale;\n treeScale.y *= delta.y.scale;\n // Apply each ancestor's calculated delta into this component's recorded layout box\n applyBoxDelta(box, delta);\n }\n if (isSharedTransition && hasTransform(node.latestValues)) {\n transformBox(box, node.latestValues);\n }\n }\n /**\n * Snap tree scale back to 1 if it's within a non-perceivable threshold.\n * This will help reduce useless scales getting rendered.\n */\n treeScale.x = snapToDefault(treeScale.x);\n treeScale.y = snapToDefault(treeScale.y);\n}\nfunction snapToDefault(scale) {\n if (Number.isInteger(scale))\n return scale;\n return scale > 1.0000000000001 || scale < 0.999999999999 ? scale : 1;\n}\nfunction translateAxis(axis, distance) {\n axis.min = axis.min + distance;\n axis.max = axis.max + distance;\n}\n/**\n * Apply a transform to an axis from the latest resolved motion values.\n * This function basically acts as a bridge between a flat motion value map\n * and applyAxisDelta\n */\nfunction transformAxis(axis, transforms, [key, scaleKey, originKey]) {\n const axisOrigin = transforms[originKey] !== undefined ? transforms[originKey] : 0.5;\n const originPoint = mix(axis.min, axis.max, axisOrigin);\n // Apply the axis delta to the final axis\n applyAxisDelta(axis, transforms[key], transforms[scaleKey], originPoint, transforms.scale);\n}\n/**\n * The names of the motion values we want to apply as translation, scale and origin.\n */\nconst xKeys = [\"x\", \"scaleX\", \"originX\"];\nconst yKeys = [\"y\", \"scaleY\", \"originY\"];\n/**\n * Apply a transform to a box from the latest resolved motion values.\n */\nfunction transformBox(box, transform) {\n transformAxis(box.x, transform, xKeys);\n transformAxis(box.y, transform, yKeys);\n}\n\nexport { applyAxisDelta, applyBoxDelta, applyPointDelta, applyTreeDeltas, scalePoint, transformAxis, transformBox, translateAxis };\n","import { convertBoundingBoxToBox, transformBoxPoints } from '../geometry/conversion.mjs';\nimport { translateAxis } from '../geometry/delta-apply.mjs';\n\nfunction measureViewportBox(instance, transformPoint) {\n return convertBoundingBoxToBox(transformBoxPoints(instance.getBoundingClientRect(), transformPoint));\n}\nfunction measurePageBox(element, rootProjectionNode, transformPagePoint) {\n const viewportBox = measureViewportBox(element, transformPagePoint);\n const { scroll } = rootProjectionNode;\n if (scroll) {\n translateAxis(viewportBox.x, scroll.offset.x);\n translateAxis(viewportBox.y, scroll.offset.y);\n }\n return viewportBox;\n}\n\nexport { measurePageBox, measureViewportBox };\n","import { invariant } from '../../utils/errors.mjs';\nimport { PanSession } from '../pan/PanSession.mjs';\nimport { getGlobalLock } from './utils/lock.mjs';\nimport { isRefObject } from '../../utils/is-ref-object.mjs';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { applyConstraints, calcRelativeConstraints, resolveDragElastic, calcViewportConstraints, defaultElastic, rebaseAxisConstraints, calcOrigin } from './utils/constraints.mjs';\nimport { createBox } from '../../projection/geometry/models.mjs';\nimport { eachAxis } from '../../projection/utils/each-axis.mjs';\nimport { measurePageBox } from '../../projection/utils/measure.mjs';\nimport { extractEventInfo } from '../../events/event-info.mjs';\nimport { convertBoxToBoundingBox, convertBoundingBoxToBox } from '../../projection/geometry/conversion.mjs';\nimport { addDomEvent } from '../../events/add-dom-event.mjs';\nimport { calcLength } from '../../projection/geometry/delta-calc.mjs';\nimport { mix } from '../../utils/mix.mjs';\nimport { percent } from '../../value/types/numbers/units.mjs';\nimport { animateMotionValue } from '../../animation/interfaces/motion-value.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst elementDragControls = new WeakMap();\n/**\n *\n */\n// let latestPointerEvent: PointerEvent\nclass VisualElementDragControls {\n constructor(visualElement) {\n // This is a reference to the global drag gesture lock, ensuring only one component\n // can \"capture\" the drag of one or both axes.\n // TODO: Look into moving this into pansession?\n this.openGlobalLock = null;\n this.isDragging = false;\n this.currentDirection = null;\n this.originPoint = { x: 0, y: 0 };\n /**\n * The permitted boundaries of travel, in pixels.\n */\n this.constraints = false;\n this.hasMutatedConstraints = false;\n /**\n * The per-axis resolved elastic values.\n */\n this.elastic = createBox();\n this.visualElement = visualElement;\n }\n start(originEvent, { snapToCursor = false } = {}) {\n /**\n * Don't start dragging if this component is exiting\n */\n const { presenceContext } = this.visualElement;\n if (presenceContext && presenceContext.isPresent === false)\n return;\n const onSessionStart = (event) => {\n // Stop any animations on both axis values immediately. This allows the user to throw and catch\n // the component.\n this.stopAnimation();\n if (snapToCursor) {\n this.snapToCursor(extractEventInfo(event, \"page\").point);\n }\n };\n const onStart = (event, info) => {\n // Attempt to grab the global drag gesture lock - maybe make this part of PanSession\n const { drag, dragPropagation, onDragStart } = this.getProps();\n if (drag && !dragPropagation) {\n if (this.openGlobalLock)\n this.openGlobalLock();\n this.openGlobalLock = getGlobalLock(drag);\n // If we don 't have the lock, don't start dragging\n if (!this.openGlobalLock)\n return;\n }\n this.isDragging = true;\n this.currentDirection = null;\n this.resolveConstraints();\n if (this.visualElement.projection) {\n this.visualElement.projection.isAnimationBlocked = true;\n this.visualElement.projection.target = undefined;\n }\n /**\n * Record gesture origin\n */\n eachAxis((axis) => {\n let current = this.getAxisMotionValue(axis).get() || 0;\n /**\n * If the MotionValue is a percentage value convert to px\n */\n if (percent.test(current)) {\n const { projection } = this.visualElement;\n if (projection && projection.layout) {\n const measuredAxis = projection.layout.layoutBox[axis];\n if (measuredAxis) {\n const length = calcLength(measuredAxis);\n current = length * (parseFloat(current) / 100);\n }\n }\n }\n this.originPoint[axis] = current;\n });\n // Fire onDragStart event\n if (onDragStart) {\n frame.update(() => onDragStart(event, info), false, true);\n }\n const { animationState } = this.visualElement;\n animationState && animationState.setActive(\"whileDrag\", true);\n };\n const onMove = (event, info) => {\n // latestPointerEvent = event\n const { dragPropagation, dragDirectionLock, onDirectionLock, onDrag, } = this.getProps();\n // If we didn't successfully receive the gesture lock, early return.\n if (!dragPropagation && !this.openGlobalLock)\n return;\n const { offset } = info;\n // Attempt to detect drag direction if directionLock is true\n if (dragDirectionLock && this.currentDirection === null) {\n this.currentDirection = getCurrentDirection(offset);\n // If we've successfully set a direction, notify listener\n if (this.currentDirection !== null) {\n onDirectionLock && onDirectionLock(this.currentDirection);\n }\n return;\n }\n // Update each point with the latest position\n this.updateAxis(\"x\", info.point, offset);\n this.updateAxis(\"y\", info.point, offset);\n /**\n * Ideally we would leave the renderer to fire naturally at the end of\n * this frame but if the element is about to change layout as the result\n * of a re-render we want to ensure the browser can read the latest\n * bounding box to ensure the pointer and element don't fall out of sync.\n */\n this.visualElement.render();\n /**\n * This must fire after the render call as it might trigger a state\n * change which itself might trigger a layout update.\n */\n onDrag && onDrag(event, info);\n };\n const onSessionEnd = (event, info) => this.stop(event, info);\n this.panSession = new PanSession(originEvent, {\n onSessionStart,\n onStart,\n onMove,\n onSessionEnd,\n }, { transformPagePoint: this.visualElement.getTransformPagePoint() });\n }\n stop(event, info) {\n const isDragging = this.isDragging;\n this.cancel();\n if (!isDragging)\n return;\n const { velocity } = info;\n this.startAnimation(velocity);\n const { onDragEnd } = this.getProps();\n if (onDragEnd) {\n frame.update(() => onDragEnd(event, info));\n }\n }\n cancel() {\n this.isDragging = false;\n const { projection, animationState } = this.visualElement;\n if (projection) {\n projection.isAnimationBlocked = false;\n }\n this.panSession && this.panSession.end();\n this.panSession = undefined;\n const { dragPropagation } = this.getProps();\n if (!dragPropagation && this.openGlobalLock) {\n this.openGlobalLock();\n this.openGlobalLock = null;\n }\n animationState && animationState.setActive(\"whileDrag\", false);\n }\n updateAxis(axis, _point, offset) {\n const { drag } = this.getProps();\n // If we're not dragging this axis, do an early return.\n if (!offset || !shouldDrag(axis, drag, this.currentDirection))\n return;\n const axisValue = this.getAxisMotionValue(axis);\n let next = this.originPoint[axis] + offset[axis];\n // Apply constraints\n if (this.constraints && this.constraints[axis]) {\n next = applyConstraints(next, this.constraints[axis], this.elastic[axis]);\n }\n axisValue.set(next);\n }\n resolveConstraints() {\n const { dragConstraints, dragElastic } = this.getProps();\n const { layout } = this.visualElement.projection || {};\n const prevConstraints = this.constraints;\n if (dragConstraints && isRefObject(dragConstraints)) {\n if (!this.constraints) {\n this.constraints = this.resolveRefConstraints();\n }\n }\n else {\n if (dragConstraints && layout) {\n this.constraints = calcRelativeConstraints(layout.layoutBox, dragConstraints);\n }\n else {\n this.constraints = false;\n }\n }\n this.elastic = resolveDragElastic(dragElastic);\n /**\n * If we're outputting to external MotionValues, we want to rebase the measured constraints\n * from viewport-relative to component-relative.\n */\n if (prevConstraints !== this.constraints &&\n layout &&\n this.constraints &&\n !this.hasMutatedConstraints) {\n eachAxis((axis) => {\n if (this.getAxisMotionValue(axis)) {\n this.constraints[axis] = rebaseAxisConstraints(layout.layoutBox[axis], this.constraints[axis]);\n }\n });\n }\n }\n resolveRefConstraints() {\n const { dragConstraints: constraints, onMeasureDragConstraints } = this.getProps();\n if (!constraints || !isRefObject(constraints))\n return false;\n const constraintsElement = constraints.current;\n invariant(constraintsElement !== null, \"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.\");\n const { projection } = this.visualElement;\n // TODO\n if (!projection || !projection.layout)\n return false;\n const constraintsBox = measurePageBox(constraintsElement, projection.root, this.visualElement.getTransformPagePoint());\n let measuredConstraints = calcViewportConstraints(projection.layout.layoutBox, constraintsBox);\n /**\n * If there's an onMeasureDragConstraints listener we call it and\n * if different constraints are returned, set constraints to that\n */\n if (onMeasureDragConstraints) {\n const userConstraints = onMeasureDragConstraints(convertBoxToBoundingBox(measuredConstraints));\n this.hasMutatedConstraints = !!userConstraints;\n if (userConstraints) {\n measuredConstraints = convertBoundingBoxToBox(userConstraints);\n }\n }\n return measuredConstraints;\n }\n startAnimation(velocity) {\n const { drag, dragMomentum, dragElastic, dragTransition, dragSnapToOrigin, onDragTransitionEnd, } = this.getProps();\n const constraints = this.constraints || {};\n const momentumAnimations = eachAxis((axis) => {\n if (!shouldDrag(axis, drag, this.currentDirection)) {\n return;\n }\n let transition = (constraints && constraints[axis]) || {};\n if (dragSnapToOrigin)\n transition = { min: 0, max: 0 };\n /**\n * Overdamp the boundary spring if `dragElastic` is disabled. There's still a frame\n * of spring animations so we should look into adding a disable spring option to `inertia`.\n * We could do something here where we affect the `bounceStiffness` and `bounceDamping`\n * using the value of `dragElastic`.\n */\n const bounceStiffness = dragElastic ? 200 : 1000000;\n const bounceDamping = dragElastic ? 40 : 10000000;\n const inertia = {\n type: \"inertia\",\n velocity: dragMomentum ? velocity[axis] : 0,\n bounceStiffness,\n bounceDamping,\n timeConstant: 750,\n restDelta: 1,\n restSpeed: 10,\n ...dragTransition,\n ...transition,\n };\n // If we're not animating on an externally-provided `MotionValue` we can use the\n // component's animation controls which will handle interactions with whileHover (etc),\n // otherwise we just have to animate the `MotionValue` itself.\n return this.startAxisValueAnimation(axis, inertia);\n });\n // Run all animations and then resolve the new drag constraints.\n return Promise.all(momentumAnimations).then(onDragTransitionEnd);\n }\n startAxisValueAnimation(axis, transition) {\n const axisValue = this.getAxisMotionValue(axis);\n return axisValue.start(animateMotionValue(axis, axisValue, 0, transition));\n }\n stopAnimation() {\n eachAxis((axis) => this.getAxisMotionValue(axis).stop());\n }\n /**\n * Drag works differently depending on which props are provided.\n *\n * - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values.\n * - Otherwise, we apply the delta to the x/y motion values.\n */\n getAxisMotionValue(axis) {\n const dragKey = \"_drag\" + axis.toUpperCase();\n const props = this.visualElement.getProps();\n const externalMotionValue = props[dragKey];\n return externalMotionValue\n ? externalMotionValue\n : this.visualElement.getValue(axis, (props.initial ? props.initial[axis] : undefined) || 0);\n }\n snapToCursor(point) {\n eachAxis((axis) => {\n const { drag } = this.getProps();\n // If we're not dragging this axis, do an early return.\n if (!shouldDrag(axis, drag, this.currentDirection))\n return;\n const { projection } = this.visualElement;\n const axisValue = this.getAxisMotionValue(axis);\n if (projection && projection.layout) {\n const { min, max } = projection.layout.layoutBox[axis];\n axisValue.set(point[axis] - mix(min, max, 0.5));\n }\n });\n }\n /**\n * When the viewport resizes we want to check if the measured constraints\n * have changed and, if so, reposition the element within those new constraints\n * relative to where it was before the resize.\n */\n scalePositionWithinConstraints() {\n if (!this.visualElement.current)\n return;\n const { drag, dragConstraints } = this.getProps();\n const { projection } = this.visualElement;\n if (!isRefObject(dragConstraints) || !projection || !this.constraints)\n return;\n /**\n * Stop current animations as there can be visual glitching if we try to do\n * this mid-animation\n */\n this.stopAnimation();\n /**\n * Record the relative position of the dragged element relative to the\n * constraints box and save as a progress value.\n */\n const boxProgress = { x: 0, y: 0 };\n eachAxis((axis) => {\n const axisValue = this.getAxisMotionValue(axis);\n if (axisValue) {\n const latest = axisValue.get();\n boxProgress[axis] = calcOrigin({ min: latest, max: latest }, this.constraints[axis]);\n }\n });\n /**\n * Update the layout of this element and resolve the latest drag constraints\n */\n const { transformTemplate } = this.visualElement.getProps();\n this.visualElement.current.style.transform = transformTemplate\n ? transformTemplate({}, \"\")\n : \"none\";\n projection.root && projection.root.updateScroll();\n projection.updateLayout();\n this.resolveConstraints();\n /**\n * For each axis, calculate the current progress of the layout axis\n * within the new constraints.\n */\n eachAxis((axis) => {\n if (!shouldDrag(axis, drag, null))\n return;\n /**\n * Calculate a new transform based on the previous box progress\n */\n const axisValue = this.getAxisMotionValue(axis);\n const { min, max } = this.constraints[axis];\n axisValue.set(mix(min, max, boxProgress[axis]));\n });\n }\n addListeners() {\n if (!this.visualElement.current)\n return;\n elementDragControls.set(this.visualElement, this);\n const element = this.visualElement.current;\n /**\n * Attach a pointerdown event listener on this DOM element to initiate drag tracking.\n */\n const stopPointerListener = addPointerEvent(element, \"pointerdown\", (event) => {\n const { drag, dragListener = true } = this.getProps();\n drag && dragListener && this.start(event);\n });\n const measureDragConstraints = () => {\n const { dragConstraints } = this.getProps();\n if (isRefObject(dragConstraints)) {\n this.constraints = this.resolveRefConstraints();\n }\n };\n const { projection } = this.visualElement;\n const stopMeasureLayoutListener = projection.addEventListener(\"measure\", measureDragConstraints);\n if (projection && !projection.layout) {\n projection.root && projection.root.updateScroll();\n projection.updateLayout();\n }\n measureDragConstraints();\n /**\n * Attach a window resize listener to scale the draggable target within its defined\n * constraints as the window resizes.\n */\n const stopResizeListener = addDomEvent(window, \"resize\", () => this.scalePositionWithinConstraints());\n /**\n * If the element's layout changes, calculate the delta and apply that to\n * the drag gesture's origin point.\n */\n const stopLayoutUpdateListener = projection.addEventListener(\"didUpdate\", (({ delta, hasLayoutChanged }) => {\n if (this.isDragging && hasLayoutChanged) {\n eachAxis((axis) => {\n const motionValue = this.getAxisMotionValue(axis);\n if (!motionValue)\n return;\n this.originPoint[axis] += delta[axis].translate;\n motionValue.set(motionValue.get() + delta[axis].translate);\n });\n this.visualElement.render();\n }\n }));\n return () => {\n stopResizeListener();\n stopPointerListener();\n stopMeasureLayoutListener();\n stopLayoutUpdateListener && stopLayoutUpdateListener();\n };\n }\n getProps() {\n const props = this.visualElement.getProps();\n const { drag = false, dragDirectionLock = false, dragPropagation = false, dragConstraints = false, dragElastic = defaultElastic, dragMomentum = true, } = props;\n return {\n ...props,\n drag,\n dragDirectionLock,\n dragPropagation,\n dragConstraints,\n dragElastic,\n dragMomentum,\n };\n }\n}\nfunction shouldDrag(direction, drag, currentDirection) {\n return ((drag === true || drag === direction) &&\n (currentDirection === null || currentDirection === direction));\n}\n/**\n * Based on an x/y offset determine the current drag direction. If both axis' offsets are lower\n * than the provided threshold, return `null`.\n *\n * @param offset - The x/y offset from origin.\n * @param lockThreshold - (Optional) - the minimum absolute offset before we can determine a drag direction.\n */\nfunction getCurrentDirection(offset, lockThreshold = 10) {\n let direction = null;\n if (Math.abs(offset.y) > lockThreshold) {\n direction = \"y\";\n }\n else if (Math.abs(offset.x) > lockThreshold) {\n direction = \"x\";\n }\n return direction;\n}\n\nexport { VisualElementDragControls, elementDragControls };\n","const createAxisDelta = () => ({\n translate: 0,\n scale: 1,\n origin: 0,\n originPoint: 0,\n});\nconst createDelta = () => ({\n x: createAxisDelta(),\n y: createAxisDelta(),\n});\nconst createAxis = () => ({ min: 0, max: 0 });\nconst createBox = () => ({\n x: createAxis(),\n y: createAxis(),\n});\n\nexport { createAxis, createAxisDelta, createBox, createDelta };\n","import { PanSession } from './PanSession.mjs';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { Feature } from '../../motion/features/Feature.mjs';\nimport { noop } from '../../utils/noop.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst asyncHandler = (handler) => (event, info) => {\n if (handler) {\n frame.update(() => handler(event, info));\n }\n};\nclass PanGesture extends Feature {\n constructor() {\n super(...arguments);\n this.removePointerDownListener = noop;\n }\n onPointerDown(pointerDownEvent) {\n this.session = new PanSession(pointerDownEvent, this.createPanHandlers(), { transformPagePoint: this.node.getTransformPagePoint() });\n }\n createPanHandlers() {\n const { onPanSessionStart, onPanStart, onPan, onPanEnd } = this.node.getProps();\n return {\n onSessionStart: asyncHandler(onPanSessionStart),\n onStart: asyncHandler(onPanStart),\n onMove: onPan,\n onEnd: (event, info) => {\n delete this.session;\n if (onPanEnd) {\n frame.update(() => onPanEnd(event, info));\n }\n },\n };\n }\n mount() {\n this.removePointerDownListener = addPointerEvent(this.node.current, \"pointerdown\", (event) => this.onPointerDown(event));\n }\n update() {\n this.session && this.session.updateHandlers(this.createPanHandlers());\n }\n unmount() {\n this.removePointerDownListener();\n this.session && this.session.end();\n }\n}\n\nexport { PanGesture };\n","/**\n * This should only ever be modified on the client otherwise it'll\n * persist through server requests. If we need instanced states we\n * could lazy-init via root.\n */\nconst globalProjectionState = {\n /**\n * Global flag as to whether the tree has animated since the last time\n * we resized the window\n */\n hasAnimatedSinceResize: true,\n /**\n * We set this to true once, on the first update. Any nodes added to the tree beyond that\n * update will be given a `data-projection-id` attribute.\n */\n hasEverUpdated: false,\n};\n\nexport { globalProjectionState };\n","import { px } from '../../value/types/numbers/units.mjs';\n\nfunction pixelsToPercent(pixels, axis) {\n if (axis.max === axis.min)\n return 0;\n return (pixels / (axis.max - axis.min)) * 100;\n}\n/**\n * We always correct borderRadius as a percentage rather than pixels to reduce paints.\n * For example, if you are projecting a box that is 100px wide with a 10px borderRadius\n * into a box that is 200px wide with a 20px borderRadius, that is actually a 10%\n * borderRadius in both states. If we animate between the two in pixels that will trigger\n * a paint each time. If we animate between the two in percentage we'll avoid a paint.\n */\nconst correctBorderRadius = {\n correct: (latest, node) => {\n if (!node.target)\n return latest;\n /**\n * If latest is a string, if it's a percentage we can return immediately as it's\n * going to be stretched appropriately. Otherwise, if it's a pixel, convert it to a number.\n */\n if (typeof latest === \"string\") {\n if (px.test(latest)) {\n latest = parseFloat(latest);\n }\n else {\n return latest;\n }\n }\n /**\n * If latest is a number, it's a pixel value. We use the current viewportBox to calculate that\n * pixel value as a percentage of each axis\n */\n const x = pixelsToPercent(latest, node.target.x);\n const y = pixelsToPercent(latest, node.target.y);\n return `${x}% ${y}%`;\n },\n};\n\nexport { correctBorderRadius, pixelsToPercent };\n","import { mix } from '../../utils/mix.mjs';\nimport { complex } from '../../value/types/complex/index.mjs';\n\nconst correctBoxShadow = {\n correct: (latest, { treeScale, projectionDelta }) => {\n const original = latest;\n const shadow = complex.parse(latest);\n // TODO: Doesn't support multiple shadows\n if (shadow.length > 5)\n return original;\n const template = complex.createTransformer(latest);\n const offset = typeof shadow[0] !== \"number\" ? 1 : 0;\n // Calculate the overall context scale\n const xScale = projectionDelta.x.scale * treeScale.x;\n const yScale = projectionDelta.y.scale * treeScale.y;\n shadow[0 + offset] /= xScale;\n shadow[1 + offset] /= yScale;\n /**\n * Ideally we'd correct x and y scales individually, but because blur and\n * spread apply to both we have to take a scale average and apply that instead.\n * We could potentially improve the outcome of this by incorporating the ratio between\n * the two scales.\n */\n const averageScale = mix(xScale, yScale, 0.5);\n // Blur\n if (typeof shadow[2 + offset] === \"number\")\n shadow[2 + offset] /= averageScale;\n // Spread\n if (typeof shadow[3 + offset] === \"number\")\n shadow[3 + offset] /= averageScale;\n return template(shadow);\n },\n};\n\nexport { correctBoxShadow };\n","import React__default, { useContext } from 'react';\nimport { usePresence } from '../../../components/AnimatePresence/use-presence.mjs';\nimport { LayoutGroupContext } from '../../../context/LayoutGroupContext.mjs';\nimport { SwitchLayoutGroupContext } from '../../../context/SwitchLayoutGroupContext.mjs';\nimport { globalProjectionState } from '../../../projection/node/state.mjs';\nimport { correctBorderRadius } from '../../../projection/styles/scale-border-radius.mjs';\nimport { correctBoxShadow } from '../../../projection/styles/scale-box-shadow.mjs';\nimport { addScaleCorrector } from '../../../projection/styles/scale-correction.mjs';\nimport { frame } from '../../../frameloop/frame.mjs';\n\nclass MeasureLayoutWithContext extends React__default.Component {\n /**\n * This only mounts projection nodes for components that\n * need measuring, we might want to do it for all components\n * in order to incorporate transforms\n */\n componentDidMount() {\n const { visualElement, layoutGroup, switchLayoutGroup, layoutId } = this.props;\n const { projection } = visualElement;\n addScaleCorrector(defaultScaleCorrectors);\n if (projection) {\n if (layoutGroup.group)\n layoutGroup.group.add(projection);\n if (switchLayoutGroup && switchLayoutGroup.register && layoutId) {\n switchLayoutGroup.register(projection);\n }\n projection.root.didUpdate();\n projection.addEventListener(\"animationComplete\", () => {\n this.safeToRemove();\n });\n projection.setOptions({\n ...projection.options,\n onExitComplete: () => this.safeToRemove(),\n });\n }\n globalProjectionState.hasEverUpdated = true;\n }\n getSnapshotBeforeUpdate(prevProps) {\n const { layoutDependency, visualElement, drag, isPresent } = this.props;\n const projection = visualElement.projection;\n if (!projection)\n return null;\n /**\n * TODO: We use this data in relegate to determine whether to\n * promote a previous element. There's no guarantee its presence data\n * will have updated by this point - if a bug like this arises it will\n * have to be that we markForRelegation and then find a new lead some other way,\n * perhaps in didUpdate\n */\n projection.isPresent = isPresent;\n if (drag ||\n prevProps.layoutDependency !== layoutDependency ||\n layoutDependency === undefined) {\n projection.willUpdate();\n }\n else {\n this.safeToRemove();\n }\n if (prevProps.isPresent !== isPresent) {\n if (isPresent) {\n projection.promote();\n }\n else if (!projection.relegate()) {\n /**\n * If there's another stack member taking over from this one,\n * it's in charge of the exit animation and therefore should\n * be in charge of the safe to remove. Otherwise we call it here.\n */\n frame.postRender(() => {\n const stack = projection.getStack();\n if (!stack || !stack.members.length) {\n this.safeToRemove();\n }\n });\n }\n }\n return null;\n }\n componentDidUpdate() {\n const { projection } = this.props.visualElement;\n if (projection) {\n projection.root.didUpdate();\n queueMicrotask(() => {\n if (!projection.currentAnimation && projection.isLead()) {\n this.safeToRemove();\n }\n });\n }\n }\n componentWillUnmount() {\n const { visualElement, layoutGroup, switchLayoutGroup: promoteContext, } = this.props;\n const { projection } = visualElement;\n if (projection) {\n projection.scheduleCheckAfterUnmount();\n if (layoutGroup && layoutGroup.group)\n layoutGroup.group.remove(projection);\n if (promoteContext && promoteContext.deregister)\n promoteContext.deregister(projection);\n }\n }\n safeToRemove() {\n const { safeToRemove } = this.props;\n safeToRemove && safeToRemove();\n }\n render() {\n return null;\n }\n}\nfunction MeasureLayout(props) {\n const [isPresent, safeToRemove] = usePresence();\n const layoutGroup = useContext(LayoutGroupContext);\n return (React__default.createElement(MeasureLayoutWithContext, { ...props, layoutGroup: layoutGroup, switchLayoutGroup: useContext(SwitchLayoutGroupContext), isPresent: isPresent, safeToRemove: safeToRemove }));\n}\nconst defaultScaleCorrectors = {\n borderRadius: {\n ...correctBorderRadius,\n applyTo: [\n \"borderTopLeftRadius\",\n \"borderTopRightRadius\",\n \"borderBottomLeftRadius\",\n \"borderBottomRightRadius\",\n ],\n },\n borderTopLeftRadius: correctBorderRadius,\n borderTopRightRadius: correctBorderRadius,\n borderBottomLeftRadius: correctBorderRadius,\n borderBottomRightRadius: correctBorderRadius,\n boxShadow: correctBoxShadow,\n};\n\nexport { MeasureLayout };\n","import { useContext, useId, useEffect } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\n\n/**\n * When a component is the child of `AnimatePresence`, it can use `usePresence`\n * to access information about whether it's still present in the React tree.\n *\n * ```jsx\n * import { usePresence } from \"framer-motion\"\n *\n * export const Component = () => {\n * const [isPresent, safeToRemove] = usePresence()\n *\n * useEffect(() => {\n * !isPresent && setTimeout(safeToRemove, 1000)\n * }, [isPresent])\n *\n * return <div />\n * }\n * ```\n *\n * If `isPresent` is `false`, it means that a component has been removed the tree, but\n * `AnimatePresence` won't really remove it until `safeToRemove` has been called.\n *\n * @public\n */\nfunction usePresence() {\n const context = useContext(PresenceContext);\n if (context === null)\n return [true, null];\n const { isPresent, onExitComplete, register } = context;\n // It's safe to call the following hooks conditionally (after an early return) because the context will always\n // either be null or non-null for the lifespan of the component.\n const id = useId();\n useEffect(() => register(id), []);\n const safeToRemove = () => onExitComplete && onExitComplete(id);\n return !isPresent && onExitComplete ? [false, safeToRemove] : [true];\n}\n/**\n * Similar to `usePresence`, except `useIsPresent` simply returns whether or not the component is present.\n * There is no `safeToRemove` function.\n *\n * ```jsx\n * import { useIsPresent } from \"framer-motion\"\n *\n * export const Component = () => {\n * const isPresent = useIsPresent()\n *\n * useEffect(() => {\n * !isPresent && console.log(\"I've been removed!\")\n * }, [isPresent])\n *\n * return <div />\n * }\n * ```\n *\n * @public\n */\nfunction useIsPresent() {\n return isPresent(useContext(PresenceContext));\n}\nfunction isPresent(context) {\n return context === null ? true : context.isPresent;\n}\n\nexport { isPresent, useIsPresent, usePresence };\n","import { circOut } from '../../easing/circ.mjs';\nimport { progress } from '../../utils/progress.mjs';\nimport { mix } from '../../utils/mix.mjs';\nimport { noop } from '../../utils/noop.mjs';\nimport { percent, px } from '../../value/types/numbers/units.mjs';\n\nconst borders = [\"TopLeft\", \"TopRight\", \"BottomLeft\", \"BottomRight\"];\nconst numBorders = borders.length;\nconst asNumber = (value) => typeof value === \"string\" ? parseFloat(value) : value;\nconst isPx = (value) => typeof value === \"number\" || px.test(value);\nfunction mixValues(target, follow, lead, progress, shouldCrossfadeOpacity, isOnlyMember) {\n if (shouldCrossfadeOpacity) {\n target.opacity = mix(0, \n // TODO Reinstate this if only child\n lead.opacity !== undefined ? lead.opacity : 1, easeCrossfadeIn(progress));\n target.opacityExit = mix(follow.opacity !== undefined ? follow.opacity : 1, 0, easeCrossfadeOut(progress));\n }\n else if (isOnlyMember) {\n target.opacity = mix(follow.opacity !== undefined ? follow.opacity : 1, lead.opacity !== undefined ? lead.opacity : 1, progress);\n }\n /**\n * Mix border radius\n */\n for (let i = 0; i < numBorders; i++) {\n const borderLabel = `border${borders[i]}Radius`;\n let followRadius = getRadius(follow, borderLabel);\n let leadRadius = getRadius(lead, borderLabel);\n if (followRadius === undefined && leadRadius === undefined)\n continue;\n followRadius || (followRadius = 0);\n leadRadius || (leadRadius = 0);\n const canMix = followRadius === 0 ||\n leadRadius === 0 ||\n isPx(followRadius) === isPx(leadRadius);\n if (canMix) {\n target[borderLabel] = Math.max(mix(asNumber(followRadius), asNumber(leadRadius), progress), 0);\n if (percent.test(leadRadius) || percent.test(followRadius)) {\n target[borderLabel] += \"%\";\n }\n }\n else {\n target[borderLabel] = leadRadius;\n }\n }\n /**\n * Mix rotation\n */\n if (follow.rotate || lead.rotate) {\n target.rotate = mix(follow.rotate || 0, lead.rotate || 0, progress);\n }\n}\nfunction getRadius(values, radiusName) {\n return values[radiusName] !== undefined\n ? values[radiusName]\n : values.borderRadius;\n}\n// /**\n// * We only want to mix the background color if there's a follow element\n// * that we're not crossfading opacity between. For instance with switch\n// * AnimateSharedLayout animations, this helps the illusion of a continuous\n// * element being animated but also cuts down on the number of paints triggered\n// * for elements where opacity is doing that work for us.\n// */\n// if (\n// !hasFollowElement &&\n// latestLeadValues.backgroundColor &&\n// latestFollowValues.backgroundColor\n// ) {\n// /**\n// * This isn't ideal performance-wise as mixColor is creating a new function every frame.\n// * We could probably create a mixer that runs at the start of the animation but\n// * the idea behind the crossfader is that it runs dynamically between two potentially\n// * changing targets (ie opacity or borderRadius may be animating independently via variants)\n// */\n// leadState.backgroundColor = followState.backgroundColor = mixColor(\n// latestFollowValues.backgroundColor as string,\n// latestLeadValues.backgroundColor as string\n// )(p)\n// }\nconst easeCrossfadeIn = compress(0, 0.5, circOut);\nconst easeCrossfadeOut = compress(0.5, 0.95, noop);\nfunction compress(min, max, easing) {\n return (p) => {\n // Could replace ifs with clamp\n if (p < min)\n return 0;\n if (p > max)\n return 1;\n return easing(progress(min, max, p));\n };\n}\n\nexport { mixValues };\n","/**\n * Reset an axis to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyAxisInto(axis, originAxis) {\n axis.min = originAxis.min;\n axis.max = originAxis.max;\n}\n/**\n * Reset a box to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyBoxInto(box, originBox) {\n copyAxisInto(box.x, originBox.x);\n copyAxisInto(box.y, originBox.y);\n}\n\nexport { copyAxisInto, copyBoxInto };\n","import { mix } from '../../utils/mix.mjs';\nimport { percent } from '../../value/types/numbers/units.mjs';\nimport { scalePoint } from './delta-apply.mjs';\n\n/**\n * Remove a delta from a point. This is essentially the steps of applyPointDelta in reverse\n */\nfunction removePointDelta(point, translate, scale, originPoint, boxScale) {\n point -= translate;\n point = scalePoint(point, 1 / scale, originPoint);\n if (boxScale !== undefined) {\n point = scalePoint(point, 1 / boxScale, originPoint);\n }\n return point;\n}\n/**\n * Remove a delta from an axis. This is essentially the steps of applyAxisDelta in reverse\n */\nfunction removeAxisDelta(axis, translate = 0, scale = 1, origin = 0.5, boxScale, originAxis = axis, sourceAxis = axis) {\n if (percent.test(translate)) {\n translate = parseFloat(translate);\n const relativeProgress = mix(sourceAxis.min, sourceAxis.max, translate / 100);\n translate = relativeProgress - sourceAxis.min;\n }\n if (typeof translate !== \"number\")\n return;\n let originPoint = mix(originAxis.min, originAxis.max, origin);\n if (axis === originAxis)\n originPoint -= translate;\n axis.min = removePointDelta(axis.min, translate, scale, originPoint, boxScale);\n axis.max = removePointDelta(axis.max, translate, scale, originPoint, boxScale);\n}\n/**\n * Remove a transforms from an axis. This is essentially the steps of applyAxisTransforms in reverse\n * and acts as a bridge between motion values and removeAxisDelta\n */\nfunction removeAxisTransforms(axis, transforms, [key, scaleKey, originKey], origin, sourceAxis) {\n removeAxisDelta(axis, transforms[key], transforms[scaleKey], transforms[originKey], transforms.scale, origin, sourceAxis);\n}\n/**\n * The names of the motion values we want to apply as translation, scale and origin.\n */\nconst xKeys = [\"x\", \"scaleX\", \"originX\"];\nconst yKeys = [\"y\", \"scaleY\", \"originY\"];\n/**\n * Remove a transforms from an box. This is essentially the steps of applyAxisBox in reverse\n * and acts as a bridge between motion values and removeAxisDelta\n */\nfunction removeBoxTransforms(box, transforms, originBox, sourceBox) {\n removeAxisTransforms(box.x, transforms, xKeys, originBox ? originBox.x : undefined, sourceBox ? sourceBox.x : undefined);\n removeAxisTransforms(box.y, transforms, yKeys, originBox ? originBox.y : undefined, sourceBox ? sourceBox.y : undefined);\n}\n\nexport { removeAxisDelta, removeAxisTransforms, removeBoxTransforms, removePointDelta };\n","import { calcLength } from './delta-calc.mjs';\n\nfunction isAxisDeltaZero(delta) {\n return delta.translate === 0 && delta.scale === 1;\n}\nfunction isDeltaZero(delta) {\n return isAxisDeltaZero(delta.x) && isAxisDeltaZero(delta.y);\n}\nfunction boxEquals(a, b) {\n return (a.x.min === b.x.min &&\n a.x.max === b.x.max &&\n a.y.min === b.y.min &&\n a.y.max === b.y.max);\n}\nfunction boxEqualsRounded(a, b) {\n return (Math.round(a.x.min) === Math.round(b.x.min) &&\n Math.round(a.x.max) === Math.round(b.x.max) &&\n Math.round(a.y.min) === Math.round(b.y.min) &&\n Math.round(a.y.max) === Math.round(b.y.max));\n}\nfunction aspectRatio(box) {\n return calcLength(box.x) / calcLength(box.y);\n}\n\nexport { aspectRatio, boxEquals, boxEqualsRounded, isDeltaZero };\n","import { addUniqueItem, removeItem } from '../../utils/array.mjs';\n\nclass NodeStack {\n constructor() {\n this.members = [];\n }\n add(node) {\n addUniqueItem(this.members, node);\n node.scheduleRender();\n }\n remove(node) {\n removeItem(this.members, node);\n if (node === this.prevLead) {\n this.prevLead = undefined;\n }\n if (node === this.lead) {\n const prevLead = this.members[this.members.length - 1];\n if (prevLead) {\n this.promote(prevLead);\n }\n }\n }\n relegate(node) {\n const indexOfNode = this.members.findIndex((member) => node === member);\n if (indexOfNode === 0)\n return false;\n /**\n * Find the next projection node that is present\n */\n let prevLead;\n for (let i = indexOfNode; i >= 0; i--) {\n const member = this.members[i];\n if (member.isPresent !== false) {\n prevLead = member;\n break;\n }\n }\n if (prevLead) {\n this.promote(prevLead);\n return true;\n }\n else {\n return false;\n }\n }\n promote(node, preserveFollowOpacity) {\n const prevLead = this.lead;\n if (node === prevLead)\n return;\n this.prevLead = prevLead;\n this.lead = node;\n node.show();\n if (prevLead) {\n prevLead.instance && prevLead.scheduleRender();\n node.scheduleRender();\n node.resumeFrom = prevLead;\n if (preserveFollowOpacity) {\n node.resumeFrom.preserveOpacity = true;\n }\n if (prevLead.snapshot) {\n node.snapshot = prevLead.snapshot;\n node.snapshot.latestValues =\n prevLead.animationValues || prevLead.latestValues;\n }\n if (node.root && node.root.isUpdating) {\n node.isLayoutDirty = true;\n }\n const { crossfade } = node.options;\n if (crossfade === false) {\n prevLead.hide();\n }\n /**\n * TODO:\n * - Test border radius when previous node was deleted\n * - boxShadow mixing\n * - Shared between element A in scrolled container and element B (scroll stays the same or changes)\n * - Shared between element A in transformed container and element B (transform stays the same or changes)\n * - Shared between element A in scrolled page and element B (scroll stays the same or changes)\n * ---\n * - Crossfade opacity of root nodes\n * - layoutId changes after animation\n * - layoutId changes mid animation\n */\n }\n }\n exitAnimationComplete() {\n this.members.forEach((node) => {\n const { options, resumingFrom } = node;\n options.onExitComplete && options.onExitComplete();\n if (resumingFrom) {\n resumingFrom.options.onExitComplete &&\n resumingFrom.options.onExitComplete();\n }\n });\n }\n scheduleRender() {\n this.members.forEach((node) => {\n node.instance && node.scheduleRender(false);\n });\n }\n /**\n * Clear any leads that have been removed this render to prevent them from being\n * used in future animations and to prevent memory leaks\n */\n removeLeadSnapshot() {\n if (this.lead && this.lead.snapshot) {\n this.lead.snapshot = undefined;\n }\n }\n}\n\nexport { NodeStack };\n","function buildProjectionTransform(delta, treeScale, latestTransform) {\n let transform = \"\";\n /**\n * The translations we use to calculate are always relative to the viewport coordinate space.\n * But when we apply scales, we also scale the coordinate space of an element and its children.\n * For instance if we have a treeScale (the culmination of all parent scales) of 0.5 and we need\n * to move an element 100 pixels, we actually need to move it 200 in within that scaled space.\n */\n const xTranslate = delta.x.translate / treeScale.x;\n const yTranslate = delta.y.translate / treeScale.y;\n if (xTranslate || yTranslate) {\n transform = `translate3d(${xTranslate}px, ${yTranslate}px, 0) `;\n }\n /**\n * Apply scale correction for the tree transform.\n * This will apply scale to the screen-orientated axes.\n */\n if (treeScale.x !== 1 || treeScale.y !== 1) {\n transform += `scale(${1 / treeScale.x}, ${1 / treeScale.y}) `;\n }\n if (latestTransform) {\n const { rotate, rotateX, rotateY } = latestTransform;\n if (rotate)\n transform += `rotate(${rotate}deg) `;\n if (rotateX)\n transform += `rotateX(${rotateX}deg) `;\n if (rotateY)\n transform += `rotateY(${rotateY}deg) `;\n }\n /**\n * Apply scale to match the size of the element to the size we want it.\n * This will apply scale to the element-orientated axes.\n */\n const elementScaleX = delta.x.scale * treeScale.x;\n const elementScaleY = delta.y.scale * treeScale.y;\n if (elementScaleX !== 1 || elementScaleY !== 1) {\n transform += `scale(${elementScaleX}, ${elementScaleY})`;\n }\n return transform || \"none\";\n}\n\nexport { buildProjectionTransform };\n","const compareByDepth = (a, b) => a.depth - b.depth;\n\nexport { compareByDepth };\n","import { addUniqueItem, removeItem } from '../../utils/array.mjs';\nimport { compareByDepth } from './compare-by-depth.mjs';\n\nclass FlatTree {\n constructor() {\n this.children = [];\n this.isDirty = false;\n }\n add(child) {\n addUniqueItem(this.children, child);\n this.isDirty = true;\n }\n remove(child) {\n removeItem(this.children, child);\n this.isDirty = true;\n }\n forEach(callback) {\n this.isDirty && this.children.sort(compareByDepth);\n this.isDirty = false;\n this.children.forEach(callback);\n }\n}\n\nexport { FlatTree };\n","import { SubscriptionManager } from '../../utils/subscription-manager.mjs';\nimport { mixValues } from '../animation/mix-values.mjs';\nimport { copyBoxInto } from '../geometry/copy.mjs';\nimport { translateAxis, transformBox, applyBoxDelta, applyTreeDeltas } from '../geometry/delta-apply.mjs';\nimport { calcRelativePosition, calcRelativeBox, calcBoxDelta, calcLength, isNear } from '../geometry/delta-calc.mjs';\nimport { removeBoxTransforms } from '../geometry/delta-remove.mjs';\nimport { createBox, createDelta } from '../geometry/models.mjs';\nimport { getValueTransition } from '../../animation/utils/transitions.mjs';\nimport { boxEqualsRounded, isDeltaZero, aspectRatio, boxEquals } from '../geometry/utils.mjs';\nimport { NodeStack } from '../shared/stack.mjs';\nimport { scaleCorrectors } from '../styles/scale-correction.mjs';\nimport { buildProjectionTransform } from '../styles/transform.mjs';\nimport { eachAxis } from '../utils/each-axis.mjs';\nimport { hasTransform, hasScale, has2DTranslate } from '../utils/has-transform.mjs';\nimport { FlatTree } from '../../render/utils/flat-tree.mjs';\nimport { resolveMotionValue } from '../../value/utils/resolve-motion-value.mjs';\nimport { globalProjectionState } from './state.mjs';\nimport { delay } from '../../utils/delay.mjs';\nimport { mix } from '../../utils/mix.mjs';\nimport { record } from '../../debug/record.mjs';\nimport { isSVGElement } from '../../render/dom/utils/is-svg-element.mjs';\nimport { animateSingleValue } from '../../animation/interfaces/single-value.mjs';\nimport { clamp } from '../../utils/clamp.mjs';\nimport { cancelFrame, frameData, steps, frame } from '../../frameloop/frame.mjs';\nimport { noop } from '../../utils/noop.mjs';\n\nconst transformAxes = [\"\", \"X\", \"Y\", \"Z\"];\n/**\n * We use 1000 as the animation target as 0-1000 maps better to pixels than 0-1\n * which has a noticeable difference in spring animations\n */\nconst animationTarget = 1000;\nlet id = 0;\n/**\n * Use a mutable data object for debug data so as to not create a new\n * object every frame.\n */\nconst projectionFrameData = {\n type: \"projectionFrame\",\n totalNodes: 0,\n resolvedTargetDeltas: 0,\n recalculatedProjection: 0,\n};\nfunction createProjectionNode({ attachResizeListener, defaultParent, measureScroll, checkIsScrollRoot, resetTransform, }) {\n return class ProjectionNode {\n constructor(latestValues = {}, parent = defaultParent === null || defaultParent === void 0 ? void 0 : defaultParent()) {\n /**\n * A unique ID generated for every projection node.\n */\n this.id = id++;\n /**\n * An id that represents a unique session instigated by startUpdate.\n */\n this.animationId = 0;\n /**\n * A Set containing all this component's children. This is used to iterate\n * through the children.\n *\n * TODO: This could be faster to iterate as a flat array stored on the root node.\n */\n this.children = new Set();\n /**\n * Options for the node. We use this to configure what kind of layout animations\n * we should perform (if any).\n */\n this.options = {};\n /**\n * We use this to detect when its safe to shut down part of a projection tree.\n * We have to keep projecting children for scale correction and relative projection\n * until all their parents stop performing layout animations.\n */\n this.isTreeAnimating = false;\n this.isAnimationBlocked = false;\n /**\n * Flag to true if we think this layout has been changed. We can't always know this,\n * currently we set it to true every time a component renders, or if it has a layoutDependency\n * if that has changed between renders. Additionally, components can be grouped by LayoutGroup\n * and if one node is dirtied, they all are.\n */\n this.isLayoutDirty = false;\n /**\n * Flag to true if we think the projection calculations for this node needs\n * recalculating as a result of an updated transform or layout animation.\n */\n this.isProjectionDirty = false;\n /**\n * Flag to true if the layout *or* transform has changed. This then gets propagated\n * throughout the projection tree, forcing any element below to recalculate on the next frame.\n */\n this.isSharedProjectionDirty = false;\n /**\n * Flag transform dirty. This gets propagated throughout the whole tree but is only\n * respected by shared nodes.\n */\n this.isTransformDirty = false;\n /**\n * Block layout updates for instant layout transitions throughout the tree.\n */\n this.updateManuallyBlocked = false;\n this.updateBlockedByResize = false;\n /**\n * Set to true between the start of the first `willUpdate` call and the end of the `didUpdate`\n * call.\n */\n this.isUpdating = false;\n /**\n * If this is an SVG element we currently disable projection transforms\n */\n this.isSVG = false;\n /**\n * Flag to true (during promotion) if a node doing an instant layout transition needs to reset\n * its projection styles.\n */\n this.needsReset = false;\n /**\n * Flags whether this node should have its transform reset prior to measuring.\n */\n this.shouldResetTransform = false;\n /**\n * An object representing the calculated contextual/accumulated/tree scale.\n * This will be used to scale calculcated projection transforms, as these are\n * calculated in screen-space but need to be scaled for elements to layoutly\n * make it to their calculated destinations.\n *\n * TODO: Lazy-init\n */\n this.treeScale = { x: 1, y: 1 };\n /**\n *\n */\n this.eventHandlers = new Map();\n this.hasTreeAnimated = false;\n // Note: Currently only running on root node\n this.updateScheduled = false;\n this.checkUpdateFailed = () => {\n if (this.isUpdating) {\n this.isUpdating = false;\n this.clearAllSnapshots();\n }\n };\n /**\n * This is a multi-step process as shared nodes might be of different depths. Nodes\n * are sorted by depth order, so we need to resolve the entire tree before moving to\n * the next step.\n */\n this.updateProjection = () => {\n /**\n * Reset debug counts. Manually resetting rather than creating a new\n * object each frame.\n */\n projectionFrameData.totalNodes =\n projectionFrameData.resolvedTargetDeltas =\n projectionFrameData.recalculatedProjection =\n 0;\n this.nodes.forEach(propagateDirtyNodes);\n this.nodes.forEach(resolveTargetDelta);\n this.nodes.forEach(calcProjection);\n this.nodes.forEach(cleanDirtyNodes);\n record(projectionFrameData);\n };\n this.hasProjected = false;\n this.isVisible = true;\n this.animationProgress = 0;\n /**\n * Shared layout\n */\n // TODO Only running on root node\n this.sharedNodes = new Map();\n this.latestValues = latestValues;\n this.root = parent ? parent.root || parent : this;\n this.path = parent ? [...parent.path, parent] : [];\n this.parent = parent;\n this.depth = parent ? parent.depth + 1 : 0;\n for (let i = 0; i < this.path.length; i++) {\n this.path[i].shouldResetTransform = true;\n }\n if (this.root === this)\n this.nodes = new FlatTree();\n }\n addEventListener(name, handler) {\n if (!this.eventHandlers.has(name)) {\n this.eventHandlers.set(name, new SubscriptionManager());\n }\n return this.eventHandlers.get(name).add(handler);\n }\n notifyListeners(name, ...args) {\n const subscriptionManager = this.eventHandlers.get(name);\n subscriptionManager && subscriptionManager.notify(...args);\n }\n hasListeners(name) {\n return this.eventHandlers.has(name);\n }\n /**\n * Lifecycles\n */\n mount(instance, isLayoutDirty = this.root.hasTreeAnimated) {\n if (this.instance)\n return;\n this.isSVG = isSVGElement(instance);\n this.instance = instance;\n const { layoutId, layout, visualElement } = this.options;\n if (visualElement && !visualElement.current) {\n visualElement.mount(instance);\n }\n this.root.nodes.add(this);\n this.parent && this.parent.children.add(this);\n if (isLayoutDirty && (layout || layoutId)) {\n this.isLayoutDirty = true;\n }\n if (attachResizeListener) {\n let cancelDelay;\n const resizeUnblockUpdate = () => (this.root.updateBlockedByResize = false);\n attachResizeListener(instance, () => {\n this.root.updateBlockedByResize = true;\n cancelDelay && cancelDelay();\n cancelDelay = delay(resizeUnblockUpdate, 250);\n if (globalProjectionState.hasAnimatedSinceResize) {\n globalProjectionState.hasAnimatedSinceResize = false;\n this.nodes.forEach(finishAnimation);\n }\n });\n }\n if (layoutId) {\n this.root.registerSharedNode(layoutId, this);\n }\n // Only register the handler if it requires layout animation\n if (this.options.animate !== false &&\n visualElement &&\n (layoutId || layout)) {\n this.addEventListener(\"didUpdate\", ({ delta, hasLayoutChanged, hasRelativeTargetChanged, layout: newLayout, }) => {\n if (this.isTreeAnimationBlocked()) {\n this.target = undefined;\n this.relativeTarget = undefined;\n return;\n }\n // TODO: Check here if an animation exists\n const layoutTransition = this.options.transition ||\n visualElement.getDefaultTransition() ||\n defaultLayoutTransition;\n const { onLayoutAnimationStart, onLayoutAnimationComplete, } = visualElement.getProps();\n /**\n * The target layout of the element might stay the same,\n * but its position relative to its parent has changed.\n */\n const targetChanged = !this.targetLayout ||\n !boxEqualsRounded(this.targetLayout, newLayout) ||\n hasRelativeTargetChanged;\n /**\n * If the layout hasn't seemed to have changed, it might be that the\n * element is visually in the same place in the document but its position\n * relative to its parent has indeed changed. So here we check for that.\n */\n const hasOnlyRelativeTargetChanged = !hasLayoutChanged && hasRelativeTargetChanged;\n if (this.options.layoutRoot ||\n (this.resumeFrom && this.resumeFrom.instance) ||\n hasOnlyRelativeTargetChanged ||\n (hasLayoutChanged &&\n (targetChanged || !this.currentAnimation))) {\n if (this.resumeFrom) {\n this.resumingFrom = this.resumeFrom;\n this.resumingFrom.resumingFrom = undefined;\n }\n this.setAnimationOrigin(delta, hasOnlyRelativeTargetChanged);\n const animationOptions = {\n ...getValueTransition(layoutTransition, \"layout\"),\n onPlay: onLayoutAnimationStart,\n onComplete: onLayoutAnimationComplete,\n };\n if (visualElement.shouldReduceMotion ||\n this.options.layoutRoot) {\n animationOptions.delay = 0;\n animationOptions.type = false;\n }\n this.startAnimation(animationOptions);\n }\n else {\n /**\n * If the layout hasn't changed and we have an animation that hasn't started yet,\n * finish it immediately. Otherwise it will be animating from a location\n * that was probably never commited to screen and look like a jumpy box.\n */\n if (!hasLayoutChanged) {\n finishAnimation(this);\n }\n if (this.isLead() && this.options.onExitComplete) {\n this.options.onExitComplete();\n }\n }\n this.targetLayout = newLayout;\n });\n }\n }\n unmount() {\n this.options.layoutId && this.willUpdate();\n this.root.nodes.remove(this);\n const stack = this.getStack();\n stack && stack.remove(this);\n this.parent && this.parent.children.delete(this);\n this.instance = undefined;\n cancelFrame(this.updateProjection);\n }\n // only on the root\n blockUpdate() {\n this.updateManuallyBlocked = true;\n }\n unblockUpdate() {\n this.updateManuallyBlocked = false;\n }\n isUpdateBlocked() {\n return this.updateManuallyBlocked || this.updateBlockedByResize;\n }\n isTreeAnimationBlocked() {\n return (this.isAnimationBlocked ||\n (this.parent && this.parent.isTreeAnimationBlocked()) ||\n false);\n }\n // Note: currently only running on root node\n startUpdate() {\n if (this.isUpdateBlocked())\n return;\n this.isUpdating = true;\n this.nodes && this.nodes.forEach(resetRotation);\n this.animationId++;\n }\n getTransformTemplate() {\n const { visualElement } = this.options;\n return visualElement && visualElement.getProps().transformTemplate;\n }\n willUpdate(shouldNotifyListeners = true) {\n this.root.hasTreeAnimated = true;\n if (this.root.isUpdateBlocked()) {\n this.options.onExitComplete && this.options.onExitComplete();\n return;\n }\n !this.root.isUpdating && this.root.startUpdate();\n if (this.isLayoutDirty)\n return;\n this.isLayoutDirty = true;\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n node.shouldResetTransform = true;\n node.updateScroll(\"snapshot\");\n if (node.options.layoutRoot) {\n node.willUpdate(false);\n }\n }\n const { layoutId, layout } = this.options;\n if (layoutId === undefined && !layout)\n return;\n const transformTemplate = this.getTransformTemplate();\n this.prevTransformTemplateValue = transformTemplate\n ? transformTemplate(this.latestValues, \"\")\n : undefined;\n this.updateSnapshot();\n shouldNotifyListeners && this.notifyListeners(\"willUpdate\");\n }\n update() {\n this.updateScheduled = false;\n const updateWasBlocked = this.isUpdateBlocked();\n // When doing an instant transition, we skip the layout update,\n // but should still clean up the measurements so that the next\n // snapshot could be taken correctly.\n if (updateWasBlocked) {\n this.unblockUpdate();\n this.clearAllSnapshots();\n this.nodes.forEach(clearMeasurements);\n return;\n }\n if (!this.isUpdating) {\n this.nodes.forEach(clearIsLayoutDirty);\n }\n this.isUpdating = false;\n /**\n * Write\n */\n this.nodes.forEach(resetTransformStyle);\n /**\n * Read ==================\n */\n // Update layout measurements of updated children\n this.nodes.forEach(updateLayout);\n /**\n * Write\n */\n // Notify listeners that the layout is updated\n this.nodes.forEach(notifyLayoutUpdate);\n this.clearAllSnapshots();\n /**\n * Manually flush any pending updates. Ideally\n * we could leave this to the following requestAnimationFrame but this seems\n * to leave a flash of incorrectly styled content.\n */\n const now = performance.now();\n frameData.delta = clamp(0, 1000 / 60, now - frameData.timestamp);\n frameData.timestamp = now;\n frameData.isProcessing = true;\n steps.update.process(frameData);\n steps.preRender.process(frameData);\n steps.render.process(frameData);\n frameData.isProcessing = false;\n }\n didUpdate() {\n if (!this.updateScheduled) {\n this.updateScheduled = true;\n queueMicrotask(() => this.update());\n }\n }\n clearAllSnapshots() {\n this.nodes.forEach(clearSnapshot);\n this.sharedNodes.forEach(removeLeadSnapshots);\n }\n scheduleUpdateProjection() {\n frame.preRender(this.updateProjection, false, true);\n }\n scheduleCheckAfterUnmount() {\n /**\n * If the unmounting node is in a layoutGroup and did trigger a willUpdate,\n * we manually call didUpdate to give a chance to the siblings to animate.\n * Otherwise, cleanup all snapshots to prevents future nodes from reusing them.\n */\n frame.postRender(() => {\n if (this.isLayoutDirty) {\n this.root.didUpdate();\n }\n else {\n this.root.checkUpdateFailed();\n }\n });\n }\n /**\n * Update measurements\n */\n updateSnapshot() {\n if (this.snapshot || !this.instance)\n return;\n this.snapshot = this.measure();\n }\n updateLayout() {\n if (!this.instance)\n return;\n // TODO: Incorporate into a forwarded scroll offset\n this.updateScroll();\n if (!(this.options.alwaysMeasureLayout && this.isLead()) &&\n !this.isLayoutDirty) {\n return;\n }\n /**\n * When a node is mounted, it simply resumes from the prevLead's\n * snapshot instead of taking a new one, but the ancestors scroll\n * might have updated while the prevLead is unmounted. We need to\n * update the scroll again to make sure the layout we measure is\n * up to date.\n */\n if (this.resumeFrom && !this.resumeFrom.instance) {\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n node.updateScroll();\n }\n }\n const prevLayout = this.layout;\n this.layout = this.measure(false);\n this.layoutCorrected = createBox();\n this.isLayoutDirty = false;\n this.projectionDelta = undefined;\n this.notifyListeners(\"measure\", this.layout.layoutBox);\n const { visualElement } = this.options;\n visualElement &&\n visualElement.notify(\"LayoutMeasure\", this.layout.layoutBox, prevLayout ? prevLayout.layoutBox : undefined);\n }\n updateScroll(phase = \"measure\") {\n let needsMeasurement = Boolean(this.options.layoutScroll && this.instance);\n if (this.scroll &&\n this.scroll.animationId === this.root.animationId &&\n this.scroll.phase === phase) {\n needsMeasurement = false;\n }\n if (needsMeasurement) {\n this.scroll = {\n animationId: this.root.animationId,\n phase,\n isRoot: checkIsScrollRoot(this.instance),\n offset: measureScroll(this.instance),\n };\n }\n }\n resetTransform() {\n if (!resetTransform)\n return;\n const isResetRequested = this.isLayoutDirty || this.shouldResetTransform;\n const hasProjection = this.projectionDelta && !isDeltaZero(this.projectionDelta);\n const transformTemplate = this.getTransformTemplate();\n const transformTemplateValue = transformTemplate\n ? transformTemplate(this.latestValues, \"\")\n : undefined;\n const transformTemplateHasChanged = transformTemplateValue !== this.prevTransformTemplateValue;\n if (isResetRequested &&\n (hasProjection ||\n hasTransform(this.latestValues) ||\n transformTemplateHasChanged)) {\n resetTransform(this.instance, transformTemplateValue);\n this.shouldResetTransform = false;\n this.scheduleRender();\n }\n }\n measure(removeTransform = true) {\n const pageBox = this.measurePageBox();\n let layoutBox = this.removeElementScroll(pageBox);\n /**\n * Measurements taken during the pre-render stage\n * still have transforms applied so we remove them\n * via calculation.\n */\n if (removeTransform) {\n layoutBox = this.removeTransform(layoutBox);\n }\n roundBox(layoutBox);\n return {\n animationId: this.root.animationId,\n measuredBox: pageBox,\n layoutBox,\n latestValues: {},\n source: this.id,\n };\n }\n measurePageBox() {\n const { visualElement } = this.options;\n if (!visualElement)\n return createBox();\n const box = visualElement.measureViewportBox();\n // Remove viewport scroll to give page-relative coordinates\n const { scroll } = this.root;\n if (scroll) {\n translateAxis(box.x, scroll.offset.x);\n translateAxis(box.y, scroll.offset.y);\n }\n return box;\n }\n removeElementScroll(box) {\n const boxWithoutScroll = createBox();\n copyBoxInto(boxWithoutScroll, box);\n /**\n * Performance TODO: Keep a cumulative scroll offset down the tree\n * rather than loop back up the path.\n */\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n const { scroll, options } = node;\n if (node !== this.root && scroll && options.layoutScroll) {\n /**\n * If this is a new scroll root, we want to remove all previous scrolls\n * from the viewport box.\n */\n if (scroll.isRoot) {\n copyBoxInto(boxWithoutScroll, box);\n const { scroll: rootScroll } = this.root;\n /**\n * Undo the application of page scroll that was originally added\n * to the measured bounding box.\n */\n if (rootScroll) {\n translateAxis(boxWithoutScroll.x, -rootScroll.offset.x);\n translateAxis(boxWithoutScroll.y, -rootScroll.offset.y);\n }\n }\n translateAxis(boxWithoutScroll.x, scroll.offset.x);\n translateAxis(boxWithoutScroll.y, scroll.offset.y);\n }\n }\n return boxWithoutScroll;\n }\n applyTransform(box, transformOnly = false) {\n const withTransforms = createBox();\n copyBoxInto(withTransforms, box);\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n if (!transformOnly &&\n node.options.layoutScroll &&\n node.scroll &&\n node !== node.root) {\n transformBox(withTransforms, {\n x: -node.scroll.offset.x,\n y: -node.scroll.offset.y,\n });\n }\n if (!hasTransform(node.latestValues))\n continue;\n transformBox(withTransforms, node.latestValues);\n }\n if (hasTransform(this.latestValues)) {\n transformBox(withTransforms, this.latestValues);\n }\n return withTransforms;\n }\n removeTransform(box) {\n const boxWithoutTransform = createBox();\n copyBoxInto(boxWithoutTransform, box);\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n if (!node.instance)\n continue;\n if (!hasTransform(node.latestValues))\n continue;\n hasScale(node.latestValues) && node.updateSnapshot();\n const sourceBox = createBox();\n const nodeBox = node.measurePageBox();\n copyBoxInto(sourceBox, nodeBox);\n removeBoxTransforms(boxWithoutTransform, node.latestValues, node.snapshot ? node.snapshot.layoutBox : undefined, sourceBox);\n }\n if (hasTransform(this.latestValues)) {\n removeBoxTransforms(boxWithoutTransform, this.latestValues);\n }\n return boxWithoutTransform;\n }\n setTargetDelta(delta) {\n this.targetDelta = delta;\n this.root.scheduleUpdateProjection();\n this.isProjectionDirty = true;\n }\n setOptions(options) {\n this.options = {\n ...this.options,\n ...options,\n crossfade: options.crossfade !== undefined ? options.crossfade : true,\n };\n }\n clearMeasurements() {\n this.scroll = undefined;\n this.layout = undefined;\n this.snapshot = undefined;\n this.prevTransformTemplateValue = undefined;\n this.targetDelta = undefined;\n this.target = undefined;\n this.isLayoutDirty = false;\n }\n forceRelativeParentToResolveTarget() {\n if (!this.relativeParent)\n return;\n /**\n * If the parent target isn't up-to-date, force it to update.\n * This is an unfortunate de-optimisation as it means any updating relative\n * projection will cause all the relative parents to recalculate back\n * up the tree.\n */\n if (this.relativeParent.resolvedRelativeTargetAt !==\n frameData.timestamp) {\n this.relativeParent.resolveTargetDelta(true);\n }\n }\n resolveTargetDelta(forceRecalculation = false) {\n var _a;\n /**\n * Once the dirty status of nodes has been spread through the tree, we also\n * need to check if we have a shared node of a different depth that has itself\n * been dirtied.\n */\n const lead = this.getLead();\n this.isProjectionDirty || (this.isProjectionDirty = lead.isProjectionDirty);\n this.isTransformDirty || (this.isTransformDirty = lead.isTransformDirty);\n this.isSharedProjectionDirty || (this.isSharedProjectionDirty = lead.isSharedProjectionDirty);\n const isShared = Boolean(this.resumingFrom) || this !== lead;\n /**\n * We don't use transform for this step of processing so we don't\n * need to check whether any nodes have changed transform.\n */\n const canSkip = !(forceRecalculation ||\n (isShared && this.isSharedProjectionDirty) ||\n this.isProjectionDirty ||\n ((_a = this.parent) === null || _a === void 0 ? void 0 : _a.isProjectionDirty) ||\n this.attemptToResolveRelativeTarget);\n if (canSkip)\n return;\n const { layout, layoutId } = this.options;\n /**\n * If we have no layout, we can't perform projection, so early return\n */\n if (!this.layout || !(layout || layoutId))\n return;\n this.resolvedRelativeTargetAt = frameData.timestamp;\n /**\n * If we don't have a targetDelta but do have a layout, we can attempt to resolve\n * a relativeParent. This will allow a component to perform scale correction\n * even if no animation has started.\n */\n // TODO If this is unsuccessful this currently happens every frame\n if (!this.targetDelta && !this.relativeTarget) {\n // TODO: This is a semi-repetition of further down this function, make DRY\n const relativeParent = this.getClosestProjectingParent();\n if (relativeParent &&\n relativeParent.layout &&\n this.animationProgress !== 1) {\n this.relativeParent = relativeParent;\n this.forceRelativeParentToResolveTarget();\n this.relativeTarget = createBox();\n this.relativeTargetOrigin = createBox();\n calcRelativePosition(this.relativeTargetOrigin, this.layout.layoutBox, relativeParent.layout.layoutBox);\n copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);\n }\n else {\n this.relativeParent = this.relativeTarget = undefined;\n }\n }\n /**\n * If we have no relative target or no target delta our target isn't valid\n * for this frame.\n */\n if (!this.relativeTarget && !this.targetDelta)\n return;\n /**\n * Lazy-init target data structure\n */\n if (!this.target) {\n this.target = createBox();\n this.targetWithTransforms = createBox();\n }\n /**\n * If we've got a relative box for this component, resolve it into a target relative to the parent.\n */\n if (this.relativeTarget &&\n this.relativeTargetOrigin &&\n this.relativeParent &&\n this.relativeParent.target) {\n this.forceRelativeParentToResolveTarget();\n calcRelativeBox(this.target, this.relativeTarget, this.relativeParent.target);\n /**\n * If we've only got a targetDelta, resolve it into a target\n */\n }\n else if (this.targetDelta) {\n if (Boolean(this.resumingFrom)) {\n // TODO: This is creating a new object every frame\n this.target = this.applyTransform(this.layout.layoutBox);\n }\n else {\n copyBoxInto(this.target, this.layout.layoutBox);\n }\n applyBoxDelta(this.target, this.targetDelta);\n }\n else {\n /**\n * If no target, use own layout as target\n */\n copyBoxInto(this.target, this.layout.layoutBox);\n }\n /**\n * If we've been told to attempt to resolve a relative target, do so.\n */\n if (this.attemptToResolveRelativeTarget) {\n this.attemptToResolveRelativeTarget = false;\n const relativeParent = this.getClosestProjectingParent();\n if (relativeParent &&\n Boolean(relativeParent.resumingFrom) ===\n Boolean(this.resumingFrom) &&\n !relativeParent.options.layoutScroll &&\n relativeParent.target &&\n this.animationProgress !== 1) {\n this.relativeParent = relativeParent;\n this.forceRelativeParentToResolveTarget();\n this.relativeTarget = createBox();\n this.relativeTargetOrigin = createBox();\n calcRelativePosition(this.relativeTargetOrigin, this.target, relativeParent.target);\n copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);\n }\n else {\n this.relativeParent = this.relativeTarget = undefined;\n }\n }\n /**\n * Increase debug counter for resolved target deltas\n */\n projectionFrameData.resolvedTargetDeltas++;\n }\n getClosestProjectingParent() {\n if (!this.parent ||\n hasScale(this.parent.latestValues) ||\n has2DTranslate(this.parent.latestValues)) {\n return undefined;\n }\n if (this.parent.isProjecting()) {\n return this.parent;\n }\n else {\n return this.parent.getClosestProjectingParent();\n }\n }\n isProjecting() {\n return Boolean((this.relativeTarget ||\n this.targetDelta ||\n this.options.layoutRoot) &&\n this.layout);\n }\n calcProjection() {\n var _a;\n const lead = this.getLead();\n const isShared = Boolean(this.resumingFrom) || this !== lead;\n let canSkip = true;\n /**\n * If this is a normal layout animation and neither this node nor its nearest projecting\n * is dirty then we can't skip.\n */\n if (this.isProjectionDirty || ((_a = this.parent) === null || _a === void 0 ? void 0 : _a.isProjectionDirty)) {\n canSkip = false;\n }\n /**\n * If this is a shared layout animation and this node's shared projection is dirty then\n * we can't skip.\n */\n if (isShared &&\n (this.isSharedProjectionDirty || this.isTransformDirty)) {\n canSkip = false;\n }\n /**\n * If we have resolved the target this frame we must recalculate the\n * projection to ensure it visually represents the internal calculations.\n */\n if (this.resolvedRelativeTargetAt === frameData.timestamp) {\n canSkip = false;\n }\n if (canSkip)\n return;\n const { layout, layoutId } = this.options;\n /**\n * If this section of the tree isn't animating we can\n * delete our target sources for the following frame.\n */\n this.isTreeAnimating = Boolean((this.parent && this.parent.isTreeAnimating) ||\n this.currentAnimation ||\n this.pendingAnimation);\n if (!this.isTreeAnimating) {\n this.targetDelta = this.relativeTarget = undefined;\n }\n if (!this.layout || !(layout || layoutId))\n return;\n /**\n * Reset the corrected box with the latest values from box, as we're then going\n * to perform mutative operations on it.\n */\n copyBoxInto(this.layoutCorrected, this.layout.layoutBox);\n /**\n * Record previous tree scales before updating.\n */\n const prevTreeScaleX = this.treeScale.x;\n const prevTreeScaleY = this.treeScale.y;\n /**\n * Apply all the parent deltas to this box to produce the corrected box. This\n * is the layout box, as it will appear on screen as a result of the transforms of its parents.\n */\n applyTreeDeltas(this.layoutCorrected, this.treeScale, this.path, isShared);\n /**\n * If this layer needs to perform scale correction but doesn't have a target,\n * use the layout as the target.\n */\n if (lead.layout &&\n !lead.target &&\n (this.treeScale.x !== 1 || this.treeScale.y !== 1)) {\n lead.target = lead.layout.layoutBox;\n }\n const { target } = lead;\n if (!target) {\n /**\n * If we don't have a target to project into, but we were previously\n * projecting, we want to remove the stored transform and schedule\n * a render to ensure the elements reflect the removed transform.\n */\n if (this.projectionTransform) {\n this.projectionDelta = createDelta();\n this.projectionTransform = \"none\";\n this.scheduleRender();\n }\n return;\n }\n if (!this.projectionDelta) {\n this.projectionDelta = createDelta();\n this.projectionDeltaWithTransform = createDelta();\n }\n const prevProjectionTransform = this.projectionTransform;\n /**\n * Update the delta between the corrected box and the target box before user-set transforms were applied.\n * This will allow us to calculate the corrected borderRadius and boxShadow to compensate\n * for our layout reprojection, but still allow them to be scaled correctly by the user.\n * It might be that to simplify this we may want to accept that user-set scale is also corrected\n * and we wouldn't have to keep and calc both deltas, OR we could support a user setting\n * to allow people to choose whether these styles are corrected based on just the\n * layout reprojection or the final bounding box.\n */\n calcBoxDelta(this.projectionDelta, this.layoutCorrected, target, this.latestValues);\n this.projectionTransform = buildProjectionTransform(this.projectionDelta, this.treeScale);\n if (this.projectionTransform !== prevProjectionTransform ||\n this.treeScale.x !== prevTreeScaleX ||\n this.treeScale.y !== prevTreeScaleY) {\n this.hasProjected = true;\n this.scheduleRender();\n this.notifyListeners(\"projectionUpdate\", target);\n }\n /**\n * Increase debug counter for recalculated projections\n */\n projectionFrameData.recalculatedProjection++;\n }\n hide() {\n this.isVisible = false;\n // TODO: Schedule render\n }\n show() {\n this.isVisible = true;\n // TODO: Schedule render\n }\n scheduleRender(notifyAll = true) {\n this.options.scheduleRender && this.options.scheduleRender();\n if (notifyAll) {\n const stack = this.getStack();\n stack && stack.scheduleRender();\n }\n if (this.resumingFrom && !this.resumingFrom.instance) {\n this.resumingFrom = undefined;\n }\n }\n setAnimationOrigin(delta, hasOnlyRelativeTargetChanged = false) {\n const snapshot = this.snapshot;\n const snapshotLatestValues = snapshot\n ? snapshot.latestValues\n : {};\n const mixedValues = { ...this.latestValues };\n const targetDelta = createDelta();\n if (!this.relativeParent ||\n !this.relativeParent.options.layoutRoot) {\n this.relativeTarget = this.relativeTargetOrigin = undefined;\n }\n this.attemptToResolveRelativeTarget = !hasOnlyRelativeTargetChanged;\n const relativeLayout = createBox();\n const snapshotSource = snapshot ? snapshot.source : undefined;\n const layoutSource = this.layout ? this.layout.source : undefined;\n const isSharedLayoutAnimation = snapshotSource !== layoutSource;\n const stack = this.getStack();\n const isOnlyMember = !stack || stack.members.length <= 1;\n const shouldCrossfadeOpacity = Boolean(isSharedLayoutAnimation &&\n !isOnlyMember &&\n this.options.crossfade === true &&\n !this.path.some(hasOpacityCrossfade));\n this.animationProgress = 0;\n let prevRelativeTarget;\n this.mixTargetDelta = (latest) => {\n const progress = latest / 1000;\n mixAxisDelta(targetDelta.x, delta.x, progress);\n mixAxisDelta(targetDelta.y, delta.y, progress);\n this.setTargetDelta(targetDelta);\n if (this.relativeTarget &&\n this.relativeTargetOrigin &&\n this.layout &&\n this.relativeParent &&\n this.relativeParent.layout) {\n calcRelativePosition(relativeLayout, this.layout.layoutBox, this.relativeParent.layout.layoutBox);\n mixBox(this.relativeTarget, this.relativeTargetOrigin, relativeLayout, progress);\n /**\n * If this is an unchanged relative target we can consider the\n * projection not dirty.\n */\n if (prevRelativeTarget &&\n boxEquals(this.relativeTarget, prevRelativeTarget)) {\n this.isProjectionDirty = false;\n }\n if (!prevRelativeTarget)\n prevRelativeTarget = createBox();\n copyBoxInto(prevRelativeTarget, this.relativeTarget);\n }\n if (isSharedLayoutAnimation) {\n this.animationValues = mixedValues;\n mixValues(mixedValues, snapshotLatestValues, this.latestValues, progress, shouldCrossfadeOpacity, isOnlyMember);\n }\n this.root.scheduleUpdateProjection();\n this.scheduleRender();\n this.animationProgress = progress;\n };\n this.mixTargetDelta(this.options.layoutRoot ? 1000 : 0);\n }\n startAnimation(options) {\n this.notifyListeners(\"animationStart\");\n this.currentAnimation && this.currentAnimation.stop();\n if (this.resumingFrom && this.resumingFrom.currentAnimation) {\n this.resumingFrom.currentAnimation.stop();\n }\n if (this.pendingAnimation) {\n cancelFrame(this.pendingAnimation);\n this.pendingAnimation = undefined;\n }\n /**\n * Start the animation in the next frame to have a frame with progress 0,\n * where the target is the same as when the animation started, so we can\n * calculate the relative positions correctly for instant transitions.\n */\n this.pendingAnimation = frame.update(() => {\n globalProjectionState.hasAnimatedSinceResize = true;\n this.currentAnimation = animateSingleValue(0, animationTarget, {\n ...options,\n onUpdate: (latest) => {\n this.mixTargetDelta(latest);\n options.onUpdate && options.onUpdate(latest);\n },\n onComplete: () => {\n options.onComplete && options.onComplete();\n this.completeAnimation();\n },\n });\n if (this.resumingFrom) {\n this.resumingFrom.currentAnimation = this.currentAnimation;\n }\n this.pendingAnimation = undefined;\n });\n }\n completeAnimation() {\n if (this.resumingFrom) {\n this.resumingFrom.currentAnimation = undefined;\n this.resumingFrom.preserveOpacity = undefined;\n }\n const stack = this.getStack();\n stack && stack.exitAnimationComplete();\n this.resumingFrom =\n this.currentAnimation =\n this.animationValues =\n undefined;\n this.notifyListeners(\"animationComplete\");\n }\n finishAnimation() {\n if (this.currentAnimation) {\n this.mixTargetDelta && this.mixTargetDelta(animationTarget);\n this.currentAnimation.stop();\n }\n this.completeAnimation();\n }\n applyTransformsToTarget() {\n const lead = this.getLead();\n let { targetWithTransforms, target, layout, latestValues } = lead;\n if (!targetWithTransforms || !target || !layout)\n return;\n /**\n * If we're only animating position, and this element isn't the lead element,\n * then instead of projecting into the lead box we instead want to calculate\n * a new target that aligns the two boxes but maintains the layout shape.\n */\n if (this !== lead &&\n this.layout &&\n layout &&\n shouldAnimatePositionOnly(this.options.animationType, this.layout.layoutBox, layout.layoutBox)) {\n target = this.target || createBox();\n const xLength = calcLength(this.layout.layoutBox.x);\n target.x.min = lead.target.x.min;\n target.x.max = target.x.min + xLength;\n const yLength = calcLength(this.layout.layoutBox.y);\n target.y.min = lead.target.y.min;\n target.y.max = target.y.min + yLength;\n }\n copyBoxInto(targetWithTransforms, target);\n /**\n * Apply the latest user-set transforms to the targetBox to produce the targetBoxFinal.\n * This is the final box that we will then project into by calculating a transform delta and\n * applying it to the corrected box.\n */\n transformBox(targetWithTransforms, latestValues);\n /**\n * Update the delta between the corrected box and the final target box, after\n * user-set transforms are applied to it. This will be used by the renderer to\n * create a transform style that will reproject the element from its layout layout\n * into the desired bounding box.\n */\n calcBoxDelta(this.projectionDeltaWithTransform, this.layoutCorrected, targetWithTransforms, latestValues);\n }\n registerSharedNode(layoutId, node) {\n if (!this.sharedNodes.has(layoutId)) {\n this.sharedNodes.set(layoutId, new NodeStack());\n }\n const stack = this.sharedNodes.get(layoutId);\n stack.add(node);\n const config = node.options.initialPromotionConfig;\n node.promote({\n transition: config ? config.transition : undefined,\n preserveFollowOpacity: config && config.shouldPreserveFollowOpacity\n ? config.shouldPreserveFollowOpacity(node)\n : undefined,\n });\n }\n isLead() {\n const stack = this.getStack();\n return stack ? stack.lead === this : true;\n }\n getLead() {\n var _a;\n const { layoutId } = this.options;\n return layoutId ? ((_a = this.getStack()) === null || _a === void 0 ? void 0 : _a.lead) || this : this;\n }\n getPrevLead() {\n var _a;\n const { layoutId } = this.options;\n return layoutId ? (_a = this.getStack()) === null || _a === void 0 ? void 0 : _a.prevLead : undefined;\n }\n getStack() {\n const { layoutId } = this.options;\n if (layoutId)\n return this.root.sharedNodes.get(layoutId);\n }\n promote({ needsReset, transition, preserveFollowOpacity, } = {}) {\n const stack = this.getStack();\n if (stack)\n stack.promote(this, preserveFollowOpacity);\n if (needsReset) {\n this.projectionDelta = undefined;\n this.needsReset = true;\n }\n if (transition)\n this.setOptions({ transition });\n }\n relegate() {\n const stack = this.getStack();\n if (stack) {\n return stack.relegate(this);\n }\n else {\n return false;\n }\n }\n resetRotation() {\n const { visualElement } = this.options;\n if (!visualElement)\n return;\n // If there's no detected rotation values, we can early return without a forced render.\n let hasRotate = false;\n /**\n * An unrolled check for rotation values. Most elements don't have any rotation and\n * skipping the nested loop and new object creation is 50% faster.\n */\n const { latestValues } = visualElement;\n if (latestValues.rotate ||\n latestValues.rotateX ||\n latestValues.rotateY ||\n latestValues.rotateZ) {\n hasRotate = true;\n }\n // If there's no rotation values, we don't need to do any more.\n if (!hasRotate)\n return;\n const resetValues = {};\n // Check the rotate value of all axes and reset to 0\n for (let i = 0; i < transformAxes.length; i++) {\n const key = \"rotate\" + transformAxes[i];\n // Record the rotation and then temporarily set it to 0\n if (latestValues[key]) {\n resetValues[key] = latestValues[key];\n visualElement.setStaticValue(key, 0);\n }\n }\n // Force a render of this element to apply the transform with all rotations\n // set to 0.\n visualElement.render();\n // Put back all the values we reset\n for (const key in resetValues) {\n visualElement.setStaticValue(key, resetValues[key]);\n }\n // Schedule a render for the next frame. This ensures we won't visually\n // see the element with the reset rotate value applied.\n visualElement.scheduleRender();\n }\n getProjectionStyles(styleProp = {}) {\n var _a, _b;\n // TODO: Return lifecycle-persistent object\n const styles = {};\n if (!this.instance || this.isSVG)\n return styles;\n if (!this.isVisible) {\n return { visibility: \"hidden\" };\n }\n else {\n styles.visibility = \"\";\n }\n const transformTemplate = this.getTransformTemplate();\n if (this.needsReset) {\n this.needsReset = false;\n styles.opacity = \"\";\n styles.pointerEvents =\n resolveMotionValue(styleProp.pointerEvents) || \"\";\n styles.transform = transformTemplate\n ? transformTemplate(this.latestValues, \"\")\n : \"none\";\n return styles;\n }\n const lead = this.getLead();\n if (!this.projectionDelta || !this.layout || !lead.target) {\n const emptyStyles = {};\n if (this.options.layoutId) {\n emptyStyles.opacity =\n this.latestValues.opacity !== undefined\n ? this.latestValues.opacity\n : 1;\n emptyStyles.pointerEvents =\n resolveMotionValue(styleProp.pointerEvents) || \"\";\n }\n if (this.hasProjected && !hasTransform(this.latestValues)) {\n emptyStyles.transform = transformTemplate\n ? transformTemplate({}, \"\")\n : \"none\";\n this.hasProjected = false;\n }\n return emptyStyles;\n }\n const valuesToRender = lead.animationValues || lead.latestValues;\n this.applyTransformsToTarget();\n styles.transform = buildProjectionTransform(this.projectionDeltaWithTransform, this.treeScale, valuesToRender);\n if (transformTemplate) {\n styles.transform = transformTemplate(valuesToRender, styles.transform);\n }\n const { x, y } = this.projectionDelta;\n styles.transformOrigin = `${x.origin * 100}% ${y.origin * 100}% 0`;\n if (lead.animationValues) {\n /**\n * If the lead component is animating, assign this either the entering/leaving\n * opacity\n */\n styles.opacity =\n lead === this\n ? (_b = (_a = valuesToRender.opacity) !== null && _a !== void 0 ? _a : this.latestValues.opacity) !== null && _b !== void 0 ? _b : 1\n : this.preserveOpacity\n ? this.latestValues.opacity\n : valuesToRender.opacityExit;\n }\n else {\n /**\n * Or we're not animating at all, set the lead component to its layout\n * opacity and other components to hidden.\n */\n styles.opacity =\n lead === this\n ? valuesToRender.opacity !== undefined\n ? valuesToRender.opacity\n : \"\"\n : valuesToRender.opacityExit !== undefined\n ? valuesToRender.opacityExit\n : 0;\n }\n /**\n * Apply scale correction\n */\n for (const key in scaleCorrectors) {\n if (valuesToRender[key] === undefined)\n continue;\n const { correct, applyTo } = scaleCorrectors[key];\n /**\n * Only apply scale correction to the value if we have an\n * active projection transform. Otherwise these values become\n * vulnerable to distortion if the element changes size without\n * a corresponding layout animation.\n */\n const corrected = styles.transform === \"none\"\n ? valuesToRender[key]\n : correct(valuesToRender[key], lead);\n if (applyTo) {\n const num = applyTo.length;\n for (let i = 0; i < num; i++) {\n styles[applyTo[i]] = corrected;\n }\n }\n else {\n styles[key] = corrected;\n }\n }\n /**\n * Disable pointer events on follow components. This is to ensure\n * that if a follow component covers a lead component it doesn't block\n * pointer events on the lead.\n */\n if (this.options.layoutId) {\n styles.pointerEvents =\n lead === this\n ? resolveMotionValue(styleProp.pointerEvents) || \"\"\n : \"none\";\n }\n return styles;\n }\n clearSnapshot() {\n this.resumeFrom = this.snapshot = undefined;\n }\n // Only run on root\n resetTree() {\n this.root.nodes.forEach((node) => { var _a; return (_a = node.currentAnimation) === null || _a === void 0 ? void 0 : _a.stop(); });\n this.root.nodes.forEach(clearMeasurements);\n this.root.sharedNodes.clear();\n }\n };\n}\nfunction updateLayout(node) {\n node.updateLayout();\n}\nfunction notifyLayoutUpdate(node) {\n var _a;\n const snapshot = ((_a = node.resumeFrom) === null || _a === void 0 ? void 0 : _a.snapshot) || node.snapshot;\n if (node.isLead() &&\n node.layout &&\n snapshot &&\n node.hasListeners(\"didUpdate\")) {\n const { layoutBox: layout, measuredBox: measuredLayout } = node.layout;\n const { animationType } = node.options;\n const isShared = snapshot.source !== node.layout.source;\n // TODO Maybe we want to also resize the layout snapshot so we don't trigger\n // animations for instance if layout=\"size\" and an element has only changed position\n if (animationType === \"size\") {\n eachAxis((axis) => {\n const axisSnapshot = isShared\n ? snapshot.measuredBox[axis]\n : snapshot.layoutBox[axis];\n const length = calcLength(axisSnapshot);\n axisSnapshot.min = layout[axis].min;\n axisSnapshot.max = axisSnapshot.min + length;\n });\n }\n else if (shouldAnimatePositionOnly(animationType, snapshot.layoutBox, layout)) {\n eachAxis((axis) => {\n const axisSnapshot = isShared\n ? snapshot.measuredBox[axis]\n : snapshot.layoutBox[axis];\n const length = calcLength(layout[axis]);\n axisSnapshot.max = axisSnapshot.min + length;\n /**\n * Ensure relative target gets resized and rerendererd\n */\n if (node.relativeTarget && !node.currentAnimation) {\n node.isProjectionDirty = true;\n node.relativeTarget[axis].max =\n node.relativeTarget[axis].min + length;\n }\n });\n }\n const layoutDelta = createDelta();\n calcBoxDelta(layoutDelta, layout, snapshot.layoutBox);\n const visualDelta = createDelta();\n if (isShared) {\n calcBoxDelta(visualDelta, node.applyTransform(measuredLayout, true), snapshot.measuredBox);\n }\n else {\n calcBoxDelta(visualDelta, layout, snapshot.layoutBox);\n }\n const hasLayoutChanged = !isDeltaZero(layoutDelta);\n let hasRelativeTargetChanged = false;\n if (!node.resumeFrom) {\n const relativeParent = node.getClosestProjectingParent();\n /**\n * If the relativeParent is itself resuming from a different element then\n * the relative snapshot is not relavent\n */\n if (relativeParent && !relativeParent.resumeFrom) {\n const { snapshot: parentSnapshot, layout: parentLayout } = relativeParent;\n if (parentSnapshot && parentLayout) {\n const relativeSnapshot = createBox();\n calcRelativePosition(relativeSnapshot, snapshot.layoutBox, parentSnapshot.layoutBox);\n const relativeLayout = createBox();\n calcRelativePosition(relativeLayout, layout, parentLayout.layoutBox);\n if (!boxEqualsRounded(relativeSnapshot, relativeLayout)) {\n hasRelativeTargetChanged = true;\n }\n if (relativeParent.options.layoutRoot) {\n node.relativeTarget = relativeLayout;\n node.relativeTargetOrigin = relativeSnapshot;\n node.relativeParent = relativeParent;\n }\n }\n }\n }\n node.notifyListeners(\"didUpdate\", {\n layout,\n snapshot,\n delta: visualDelta,\n layoutDelta,\n hasLayoutChanged,\n hasRelativeTargetChanged,\n });\n }\n else if (node.isLead()) {\n const { onExitComplete } = node.options;\n onExitComplete && onExitComplete();\n }\n /**\n * Clearing transition\n * TODO: Investigate why this transition is being passed in as {type: false } from Framer\n * and why we need it at all\n */\n node.options.transition = undefined;\n}\nfunction propagateDirtyNodes(node) {\n /**\n * Increase debug counter for nodes encountered this frame\n */\n projectionFrameData.totalNodes++;\n if (!node.parent)\n return;\n /**\n * If this node isn't projecting, propagate isProjectionDirty. It will have\n * no performance impact but it will allow the next child that *is* projecting\n * but *isn't* dirty to just check its parent to see if *any* ancestor needs\n * correcting.\n */\n if (!node.isProjecting()) {\n node.isProjectionDirty = node.parent.isProjectionDirty;\n }\n /**\n * Propagate isSharedProjectionDirty and isTransformDirty\n * throughout the whole tree. A future revision can take another look at\n * this but for safety we still recalcualte shared nodes.\n */\n node.isSharedProjectionDirty || (node.isSharedProjectionDirty = Boolean(node.isProjectionDirty ||\n node.parent.isProjectionDirty ||\n node.parent.isSharedProjectionDirty));\n node.isTransformDirty || (node.isTransformDirty = node.parent.isTransformDirty);\n}\nfunction cleanDirtyNodes(node) {\n node.isProjectionDirty =\n node.isSharedProjectionDirty =\n node.isTransformDirty =\n false;\n}\nfunction clearSnapshot(node) {\n node.clearSnapshot();\n}\nfunction clearMeasurements(node) {\n node.clearMeasurements();\n}\nfunction clearIsLayoutDirty(node) {\n node.isLayoutDirty = false;\n}\nfunction resetTransformStyle(node) {\n const { visualElement } = node.options;\n if (visualElement && visualElement.getProps().onBeforeLayoutMeasure) {\n visualElement.notify(\"BeforeLayoutMeasure\");\n }\n node.resetTransform();\n}\nfunction finishAnimation(node) {\n node.finishAnimation();\n node.targetDelta = node.relativeTarget = node.target = undefined;\n node.isProjectionDirty = true;\n}\nfunction resolveTargetDelta(node) {\n node.resolveTargetDelta();\n}\nfunction calcProjection(node) {\n node.calcProjection();\n}\nfunction resetRotation(node) {\n node.resetRotation();\n}\nfunction removeLeadSnapshots(stack) {\n stack.removeLeadSnapshot();\n}\nfunction mixAxisDelta(output, delta, p) {\n output.translate = mix(delta.translate, 0, p);\n output.scale = mix(delta.scale, 1, p);\n output.origin = delta.origin;\n output.originPoint = delta.originPoint;\n}\nfunction mixAxis(output, from, to, p) {\n output.min = mix(from.min, to.min, p);\n output.max = mix(from.max, to.max, p);\n}\nfunction mixBox(output, from, to, p) {\n mixAxis(output.x, from.x, to.x, p);\n mixAxis(output.y, from.y, to.y, p);\n}\nfunction hasOpacityCrossfade(node) {\n return (node.animationValues && node.animationValues.opacityExit !== undefined);\n}\nconst defaultLayoutTransition = {\n duration: 0.45,\n ease: [0.4, 0, 0.1, 1],\n};\nconst userAgentContains = (string) => typeof navigator !== \"undefined\" &&\n navigator.userAgent.toLowerCase().includes(string);\n/**\n * Measured bounding boxes must be rounded in Safari and\n * left untouched in Chrome, otherwise non-integer layouts within scaled-up elements\n * can appear to jump.\n */\nconst roundPoint = userAgentContains(\"applewebkit/\") && !userAgentContains(\"chrome/\")\n ? Math.round\n : noop;\nfunction roundAxis(axis) {\n // Round to the nearest .5 pixels to support subpixel layouts\n axis.min = roundPoint(axis.min);\n axis.max = roundPoint(axis.max);\n}\nfunction roundBox(box) {\n roundAxis(box.x);\n roundAxis(box.y);\n}\nfunction shouldAnimatePositionOnly(animationType, snapshot, layout) {\n return (animationType === \"position\" ||\n (animationType === \"preserve-aspect\" &&\n !isNear(aspectRatio(snapshot), aspectRatio(layout), 0.2)));\n}\n\nexport { cleanDirtyNodes, createProjectionNode, mixAxis, mixAxisDelta, mixBox, propagateDirtyNodes };\n","function record(data) {\n if (window.MotionDebug) {\n window.MotionDebug.record(data);\n }\n}\n\nexport { record };\n","function isSVGElement(element) {\n return element instanceof SVGElement && element.tagName !== \"svg\";\n}\n\nexport { isSVGElement };\n","import { frame, cancelFrame } from '../frameloop/frame.mjs';\n\n/**\n * Timeout defined in ms\n */\nfunction delay(callback, timeout) {\n const start = performance.now();\n const checkElapsed = ({ timestamp }) => {\n const elapsed = timestamp - start;\n if (elapsed >= timeout) {\n cancelFrame(checkElapsed);\n callback(elapsed - timeout);\n }\n };\n frame.read(checkElapsed, true);\n return () => cancelFrame(checkElapsed);\n}\n\nexport { delay };\n","import { animateMotionValue } from './motion-value.mjs';\nimport { motionValue } from '../../value/index.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\n\nfunction animateSingleValue(value, keyframes, options) {\n const motionValue$1 = isMotionValue(value) ? value : motionValue(value);\n motionValue$1.start(animateMotionValue(\"\", motionValue$1, keyframes, options));\n return motionValue$1.animation;\n}\n\nexport { animateSingleValue };\n","import { createProjectionNode } from './create-projection-node.mjs';\nimport { addDomEvent } from '../../events/add-dom-event.mjs';\n\nconst DocumentProjectionNode = createProjectionNode({\n attachResizeListener: (ref, notify) => addDomEvent(ref, \"resize\", notify),\n measureScroll: () => ({\n x: document.documentElement.scrollLeft || document.body.scrollLeft,\n y: document.documentElement.scrollTop || document.body.scrollTop,\n }),\n checkIsScrollRoot: () => true,\n});\n\nexport { DocumentProjectionNode };\n","import { createProjectionNode } from './create-projection-node.mjs';\nimport { DocumentProjectionNode } from './DocumentProjectionNode.mjs';\n\nconst rootProjectionNode = {\n current: undefined,\n};\nconst HTMLProjectionNode = createProjectionNode({\n measureScroll: (instance) => ({\n x: instance.scrollLeft,\n y: instance.scrollTop,\n }),\n defaultParent: () => {\n if (!rootProjectionNode.current) {\n const documentNode = new DocumentProjectionNode({});\n documentNode.mount(window);\n documentNode.setOptions({ layoutScroll: true });\n rootProjectionNode.current = documentNode;\n }\n return rootProjectionNode.current;\n },\n resetTransform: (instance, value) => {\n instance.style.transform = value !== undefined ? value : \"none\";\n },\n checkIsScrollRoot: (instance) => Boolean(window.getComputedStyle(instance).position === \"fixed\"),\n});\n\nexport { HTMLProjectionNode, rootProjectionNode };\n","import { DragGesture } from '../../gestures/drag/index.mjs';\nimport { PanGesture } from '../../gestures/pan/index.mjs';\nimport { MeasureLayout } from './layout/MeasureLayout.mjs';\nimport { HTMLProjectionNode } from '../../projection/node/HTMLProjectionNode.mjs';\n\nconst drag = {\n pan: {\n Feature: PanGesture,\n },\n drag: {\n Feature: DragGesture,\n ProjectionNode: HTMLProjectionNode,\n MeasureLayout,\n },\n};\n\nexport { drag };\n","import { Feature } from '../../motion/features/Feature.mjs';\nimport { noop } from '../../utils/noop.mjs';\nimport { VisualElementDragControls } from './VisualElementDragControls.mjs';\n\nclass DragGesture extends Feature {\n constructor(node) {\n super(node);\n this.removeGroupControls = noop;\n this.removeListeners = noop;\n this.controls = new VisualElementDragControls(node);\n }\n mount() {\n // If we've been provided a DragControls for manual control over the drag gesture,\n // subscribe this component to it on mount.\n const { dragControls } = this.node.getProps();\n if (dragControls) {\n this.removeGroupControls = dragControls.subscribe(this.controls);\n }\n this.removeListeners = this.controls.addListeners() || noop;\n }\n unmount() {\n this.removeGroupControls();\n this.removeListeners();\n }\n}\n\nexport { DragGesture };\n","import { invariant } from '../../../utils/errors.mjs';\nimport { isNumericalString } from '../../../utils/is-numerical-string.mjs';\nimport { isCSSVariableToken } from './is-css-variable.mjs';\n\n/**\n * Parse Framer's special CSS variable format into a CSS token and a fallback.\n *\n * ```\n * `var(--foo, #fff)` => [`--foo`, '#fff']\n * ```\n *\n * @param current\n */\nconst splitCSSVariableRegex = /var\\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\\)/;\nfunction parseCSSVariable(current) {\n const match = splitCSSVariableRegex.exec(current);\n if (!match)\n return [,];\n const [, token, fallback] = match;\n return [token, fallback];\n}\nconst maxDepth = 4;\nfunction getVariableValue(current, element, depth = 1) {\n invariant(depth <= maxDepth, `Max CSS variable fallback depth detected in property \"${current}\". This may indicate a circular fallback dependency.`);\n const [token, fallback] = parseCSSVariable(current);\n // No CSS variable detected\n if (!token)\n return;\n // Attempt to read this CSS variable off the element\n const resolved = window.getComputedStyle(element).getPropertyValue(token);\n if (resolved) {\n const trimmed = resolved.trim();\n return isNumericalString(trimmed) ? parseFloat(trimmed) : trimmed;\n }\n else if (isCSSVariableToken(fallback)) {\n // The fallback might itself be a CSS variable, in which case we attempt to resolve it too.\n return getVariableValue(fallback, element, depth + 1);\n }\n else {\n return fallback;\n }\n}\n/**\n * Resolve CSS variables from\n *\n * @internal\n */\nfunction resolveCSSVariables(visualElement, { ...target }, transitionEnd) {\n const element = visualElement.current;\n if (!(element instanceof Element))\n return { target, transitionEnd };\n // If `transitionEnd` isn't `undefined`, clone it. We could clone `target` and `transitionEnd`\n // only if they change but I think this reads clearer and this isn't a performance-critical path.\n if (transitionEnd) {\n transitionEnd = { ...transitionEnd };\n }\n // Go through existing `MotionValue`s and ensure any existing CSS variables are resolved\n visualElement.values.forEach((value) => {\n const current = value.get();\n if (!isCSSVariableToken(current))\n return;\n const resolved = getVariableValue(current, element);\n if (resolved)\n value.set(resolved);\n });\n // Cycle through every target property and resolve CSS variables. Currently\n // we only read single-var properties like `var(--foo)`, not `calc(var(--foo) + 20px)`\n for (const key in target) {\n const current = target[key];\n if (!isCSSVariableToken(current))\n continue;\n const resolved = getVariableValue(current, element);\n if (!resolved)\n continue;\n // Clone target if it hasn't already been\n target[key] = resolved;\n if (!transitionEnd)\n transitionEnd = {};\n // If the user hasn't already set this key on `transitionEnd`, set it to the unresolved\n // CSS variable. This will ensure that after the animation the component will reflect\n // changes in the value of the CSS variable.\n if (transitionEnd[key] === undefined) {\n transitionEnd[key] = current;\n }\n }\n return { target, transitionEnd };\n}\n\nexport { parseCSSVariable, resolveCSSVariables };\n","import { isKeyframesTarget } from '../../../animation/utils/is-keyframes-target.mjs';\nimport { invariant } from '../../../utils/errors.mjs';\nimport { transformPropOrder } from '../../html/utils/transform.mjs';\nimport { findDimensionValueType } from '../value-types/dimensions.mjs';\nimport { isBrowser } from '../../../utils/is-browser.mjs';\nimport { number } from '../../../value/types/numbers/index.mjs';\nimport { px } from '../../../value/types/numbers/units.mjs';\n\nconst positionalKeys = new Set([\n \"width\",\n \"height\",\n \"top\",\n \"left\",\n \"right\",\n \"bottom\",\n \"x\",\n \"y\",\n \"translateX\",\n \"translateY\",\n]);\nconst isPositionalKey = (key) => positionalKeys.has(key);\nconst hasPositionalKey = (target) => {\n return Object.keys(target).some(isPositionalKey);\n};\nconst isNumOrPxType = (v) => v === number || v === px;\nconst getPosFromMatrix = (matrix, pos) => parseFloat(matrix.split(\", \")[pos]);\nconst getTranslateFromMatrix = (pos2, pos3) => (_bbox, { transform }) => {\n if (transform === \"none\" || !transform)\n return 0;\n const matrix3d = transform.match(/^matrix3d\\((.+)\\)$/);\n if (matrix3d) {\n return getPosFromMatrix(matrix3d[1], pos3);\n }\n else {\n const matrix = transform.match(/^matrix\\((.+)\\)$/);\n if (matrix) {\n return getPosFromMatrix(matrix[1], pos2);\n }\n else {\n return 0;\n }\n }\n};\nconst transformKeys = new Set([\"x\", \"y\", \"z\"]);\nconst nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));\nfunction removeNonTranslationalTransform(visualElement) {\n const removedTransforms = [];\n nonTranslationalTransformKeys.forEach((key) => {\n const value = visualElement.getValue(key);\n if (value !== undefined) {\n removedTransforms.push([key, value.get()]);\n value.set(key.startsWith(\"scale\") ? 1 : 0);\n }\n });\n // Apply changes to element before measurement\n if (removedTransforms.length)\n visualElement.render();\n return removedTransforms;\n}\nconst positionalValues = {\n // Dimensions\n width: ({ x }, { paddingLeft = \"0\", paddingRight = \"0\" }) => x.max - x.min - parseFloat(paddingLeft) - parseFloat(paddingRight),\n height: ({ y }, { paddingTop = \"0\", paddingBottom = \"0\" }) => y.max - y.min - parseFloat(paddingTop) - parseFloat(paddingBottom),\n top: (_bbox, { top }) => parseFloat(top),\n left: (_bbox, { left }) => parseFloat(left),\n bottom: ({ y }, { top }) => parseFloat(top) + (y.max - y.min),\n right: ({ x }, { left }) => parseFloat(left) + (x.max - x.min),\n // Transform\n x: getTranslateFromMatrix(4, 13),\n y: getTranslateFromMatrix(5, 14),\n};\n// Alias translate longform names\npositionalValues.translateX = positionalValues.x;\npositionalValues.translateY = positionalValues.y;\nconst convertChangedValueTypes = (target, visualElement, changedKeys) => {\n const originBbox = visualElement.measureViewportBox();\n const element = visualElement.current;\n const elementComputedStyle = getComputedStyle(element);\n const { display } = elementComputedStyle;\n const origin = {};\n // If the element is currently set to display: \"none\", make it visible before\n // measuring the target bounding box\n if (display === \"none\") {\n visualElement.setStaticValue(\"display\", target.display || \"block\");\n }\n /**\n * Record origins before we render and update styles\n */\n changedKeys.forEach((key) => {\n origin[key] = positionalValues[key](originBbox, elementComputedStyle);\n });\n // Apply the latest values (as set in checkAndConvertChangedValueTypes)\n visualElement.render();\n const targetBbox = visualElement.measureViewportBox();\n changedKeys.forEach((key) => {\n // Restore styles to their **calculated computed style**, not their actual\n // originally set style. This allows us to animate between equivalent pixel units.\n const value = visualElement.getValue(key);\n value && value.jump(origin[key]);\n target[key] = positionalValues[key](targetBbox, elementComputedStyle);\n });\n return target;\n};\nconst checkAndConvertChangedValueTypes = (visualElement, target, origin = {}, transitionEnd = {}) => {\n target = { ...target };\n transitionEnd = { ...transitionEnd };\n const targetPositionalKeys = Object.keys(target).filter(isPositionalKey);\n // We want to remove any transform values that could affect the element's bounding box before\n // it's measured. We'll reapply these later.\n let removedTransformValues = [];\n let hasAttemptedToRemoveTransformValues = false;\n const changedValueTypeKeys = [];\n targetPositionalKeys.forEach((key) => {\n const value = visualElement.getValue(key);\n if (!visualElement.hasValue(key))\n return;\n let from = origin[key];\n let fromType = findDimensionValueType(from);\n const to = target[key];\n let toType;\n // TODO: The current implementation of this basically throws an error\n // if you try and do value conversion via keyframes. There's probably\n // a way of doing this but the performance implications would need greater scrutiny,\n // as it'd be doing multiple resize-remeasure operations.\n if (isKeyframesTarget(to)) {\n const numKeyframes = to.length;\n const fromIndex = to[0] === null ? 1 : 0;\n from = to[fromIndex];\n fromType = findDimensionValueType(from);\n for (let i = fromIndex; i < numKeyframes; i++) {\n /**\n * Don't allow wildcard keyframes to be used to detect\n * a difference in value types.\n */\n if (to[i] === null)\n break;\n if (!toType) {\n toType = findDimensionValueType(to[i]);\n invariant(toType === fromType ||\n (isNumOrPxType(fromType) && isNumOrPxType(toType)), \"Keyframes must be of the same dimension as the current value\");\n }\n else {\n invariant(findDimensionValueType(to[i]) === toType, \"All keyframes must be of the same type\");\n }\n }\n }\n else {\n toType = findDimensionValueType(to);\n }\n if (fromType !== toType) {\n // If they're both just number or px, convert them both to numbers rather than\n // relying on resize/remeasure to convert (which is wasteful in this situation)\n if (isNumOrPxType(fromType) && isNumOrPxType(toType)) {\n const current = value.get();\n if (typeof current === \"string\") {\n value.set(parseFloat(current));\n }\n if (typeof to === \"string\") {\n target[key] = parseFloat(to);\n }\n else if (Array.isArray(to) && toType === px) {\n target[key] = to.map(parseFloat);\n }\n }\n else if ((fromType === null || fromType === void 0 ? void 0 : fromType.transform) &&\n (toType === null || toType === void 0 ? void 0 : toType.transform) &&\n (from === 0 || to === 0)) {\n // If one or the other value is 0, it's safe to coerce it to the\n // type of the other without measurement\n if (from === 0) {\n value.set(toType.transform(from));\n }\n else {\n target[key] = fromType.transform(to);\n }\n }\n else {\n // If we're going to do value conversion via DOM measurements, we first\n // need to remove non-positional transform values that could affect the bbox measurements.\n if (!hasAttemptedToRemoveTransformValues) {\n removedTransformValues =\n removeNonTranslationalTransform(visualElement);\n hasAttemptedToRemoveTransformValues = true;\n }\n changedValueTypeKeys.push(key);\n transitionEnd[key] =\n transitionEnd[key] !== undefined\n ? transitionEnd[key]\n : target[key];\n value.jump(to);\n }\n }\n });\n if (changedValueTypeKeys.length) {\n const scrollY = changedValueTypeKeys.indexOf(\"height\") >= 0\n ? window.pageYOffset\n : null;\n const convertedTarget = convertChangedValueTypes(target, visualElement, changedValueTypeKeys);\n // If we removed transform values, reapply them before the next render\n if (removedTransformValues.length) {\n removedTransformValues.forEach(([key, value]) => {\n visualElement.getValue(key).set(value);\n });\n }\n // Reapply original values\n visualElement.render();\n // Restore scroll position\n if (isBrowser && scrollY !== null) {\n window.scrollTo({ top: scrollY });\n }\n return { target: convertedTarget, transitionEnd };\n }\n else {\n return { target, transitionEnd };\n }\n};\n/**\n * Convert value types for x/y/width/height/top/left/bottom/right\n *\n * Allows animation between `'auto'` -> `'100%'` or `0` -> `'calc(50% - 10vw)'`\n *\n * @internal\n */\nfunction unitConversion(visualElement, target, origin, transitionEnd) {\n return hasPositionalKey(target)\n ? checkAndConvertChangedValueTypes(visualElement, target, origin, transitionEnd)\n : { target, transitionEnd };\n}\n\nexport { positionalValues, unitConversion };\n","import { resolveCSSVariables } from './css-variables-conversion.mjs';\nimport { unitConversion } from './unit-conversion.mjs';\n\n/**\n * Parse a DOM variant to make it animatable. This involves resolving CSS variables\n * and ensuring animations like \"20%\" => \"calc(50vw)\" are performed in pixels.\n */\nconst parseDomVariant = (visualElement, target, origin, transitionEnd) => {\n const resolved = resolveCSSVariables(visualElement, target, transitionEnd);\n target = resolved.target;\n transitionEnd = resolved.transitionEnd;\n return unitConversion(visualElement, target, origin, transitionEnd);\n};\n\nexport { parseDomVariant };\n","// Does this device prefer reduced motion? Returns `null` server-side.\nconst prefersReducedMotion = { current: null };\nconst hasReducedMotionListener = { current: false };\n\nexport { hasReducedMotionListener, prefersReducedMotion };\n","const visualElementStore = new WeakMap();\n\nexport { visualElementStore };\n","import { warning, invariant } from '../utils/errors.mjs';\nimport { createBox } from '../projection/geometry/models.mjs';\nimport { isRefObject } from '../utils/is-ref-object.mjs';\nimport { initPrefersReducedMotion } from '../utils/reduced-motion/index.mjs';\nimport { hasReducedMotionListener, prefersReducedMotion } from '../utils/reduced-motion/state.mjs';\nimport { SubscriptionManager } from '../utils/subscription-manager.mjs';\nimport { motionValue } from '../value/index.mjs';\nimport { isWillChangeMotionValue } from '../value/use-will-change/is.mjs';\nimport { isMotionValue } from '../value/utils/is-motion-value.mjs';\nimport { transformProps } from './html/utils/transform.mjs';\nimport { isControllingVariants, isVariantNode } from './utils/is-controlling-variants.mjs';\nimport { isVariantLabel } from './utils/is-variant-label.mjs';\nimport { updateMotionValuesFromProps } from './utils/motion-values.mjs';\nimport { resolveVariantFromProps } from './utils/resolve-variants.mjs';\nimport { warnOnce } from '../utils/warn-once.mjs';\nimport { featureDefinitions } from '../motion/features/definitions.mjs';\nimport { variantProps } from './utils/variant-props.mjs';\nimport { visualElementStore } from './store.mjs';\nimport { frame, cancelFrame } from '../frameloop/frame.mjs';\n\nconst featureNames = Object.keys(featureDefinitions);\nconst numFeatures = featureNames.length;\nconst propEventHandlers = [\n \"AnimationStart\",\n \"AnimationComplete\",\n \"Update\",\n \"BeforeLayoutMeasure\",\n \"LayoutMeasure\",\n \"LayoutAnimationStart\",\n \"LayoutAnimationComplete\",\n];\nconst numVariantProps = variantProps.length;\n/**\n * A VisualElement is an imperative abstraction around UI elements such as\n * HTMLElement, SVGElement, Three.Object3D etc.\n */\nclass VisualElement {\n constructor({ parent, props, presenceContext, reducedMotionConfig, visualState, }, options = {}) {\n /**\n * A reference to the current underlying Instance, e.g. a HTMLElement\n * or Three.Mesh etc.\n */\n this.current = null;\n /**\n * A set containing references to this VisualElement's children.\n */\n this.children = new Set();\n /**\n * Determine what role this visual element should take in the variant tree.\n */\n this.isVariantNode = false;\n this.isControllingVariants = false;\n /**\n * Decides whether this VisualElement should animate in reduced motion\n * mode.\n *\n * TODO: This is currently set on every individual VisualElement but feels\n * like it could be set globally.\n */\n this.shouldReduceMotion = null;\n /**\n * A map of all motion values attached to this visual element. Motion\n * values are source of truth for any given animated value. A motion\n * value might be provided externally by the component via props.\n */\n this.values = new Map();\n /**\n * Cleanup functions for active features (hover/tap/exit etc)\n */\n this.features = {};\n /**\n * A map of every subscription that binds the provided or generated\n * motion values onChange listeners to this visual element.\n */\n this.valueSubscriptions = new Map();\n /**\n * A reference to the previously-provided motion values as returned\n * from scrapeMotionValuesFromProps. We use the keys in here to determine\n * if any motion values need to be removed after props are updated.\n */\n this.prevMotionValues = {};\n /**\n * An object containing a SubscriptionManager for each active event.\n */\n this.events = {};\n /**\n * An object containing an unsubscribe function for each prop event subscription.\n * For example, every \"Update\" event can have multiple subscribers via\n * VisualElement.on(), but only one of those can be defined via the onUpdate prop.\n */\n this.propEventSubscriptions = {};\n this.notifyUpdate = () => this.notify(\"Update\", this.latestValues);\n this.render = () => {\n if (!this.current)\n return;\n this.triggerBuild();\n this.renderInstance(this.current, this.renderState, this.props.style, this.projection);\n };\n this.scheduleRender = () => frame.render(this.render, false, true);\n const { latestValues, renderState } = visualState;\n this.latestValues = latestValues;\n this.baseTarget = { ...latestValues };\n this.initialValues = props.initial ? { ...latestValues } : {};\n this.renderState = renderState;\n this.parent = parent;\n this.props = props;\n this.presenceContext = presenceContext;\n this.depth = parent ? parent.depth + 1 : 0;\n this.reducedMotionConfig = reducedMotionConfig;\n this.options = options;\n this.isControllingVariants = isControllingVariants(props);\n this.isVariantNode = isVariantNode(props);\n if (this.isVariantNode) {\n this.variantChildren = new Set();\n }\n this.manuallyAnimateOnMount = Boolean(parent && parent.current);\n /**\n * Any motion values that are provided to the element when created\n * aren't yet bound to the element, as this would technically be impure.\n * However, we iterate through the motion values and set them to the\n * initial values for this component.\n *\n * TODO: This is impure and we should look at changing this to run on mount.\n * Doing so will break some tests but this isn't neccessarily a breaking change,\n * more a reflection of the test.\n */\n const { willChange, ...initialMotionValues } = this.scrapeMotionValuesFromProps(props, {});\n for (const key in initialMotionValues) {\n const value = initialMotionValues[key];\n if (latestValues[key] !== undefined && isMotionValue(value)) {\n value.set(latestValues[key], false);\n if (isWillChangeMotionValue(willChange)) {\n willChange.add(key);\n }\n }\n }\n }\n /**\n * This method takes React props and returns found MotionValues. For example, HTML\n * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.\n *\n * This isn't an abstract method as it needs calling in the constructor, but it is\n * intended to be one.\n */\n scrapeMotionValuesFromProps(_props, _prevProps) {\n return {};\n }\n mount(instance) {\n this.current = instance;\n visualElementStore.set(instance, this);\n if (this.projection && !this.projection.instance) {\n this.projection.mount(instance);\n }\n if (this.parent && this.isVariantNode && !this.isControllingVariants) {\n this.removeFromVariantTree = this.parent.addVariantChild(this);\n }\n this.values.forEach((value, key) => this.bindToMotionValue(key, value));\n if (!hasReducedMotionListener.current) {\n initPrefersReducedMotion();\n }\n this.shouldReduceMotion =\n this.reducedMotionConfig === \"never\"\n ? false\n : this.reducedMotionConfig === \"always\"\n ? true\n : prefersReducedMotion.current;\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(this.shouldReduceMotion !== true, \"You have Reduced Motion enabled on your device. Animations may not appear as expected.\");\n }\n if (this.parent)\n this.parent.children.add(this);\n this.update(this.props, this.presenceContext);\n }\n unmount() {\n visualElementStore.delete(this.current);\n this.projection && this.projection.unmount();\n cancelFrame(this.notifyUpdate);\n cancelFrame(this.render);\n this.valueSubscriptions.forEach((remove) => remove());\n this.removeFromVariantTree && this.removeFromVariantTree();\n this.parent && this.parent.children.delete(this);\n for (const key in this.events) {\n this.events[key].clear();\n }\n for (const key in this.features) {\n this.features[key].unmount();\n }\n this.current = null;\n }\n bindToMotionValue(key, value) {\n const valueIsTransform = transformProps.has(key);\n const removeOnChange = value.on(\"change\", (latestValue) => {\n this.latestValues[key] = latestValue;\n this.props.onUpdate &&\n frame.update(this.notifyUpdate, false, true);\n if (valueIsTransform && this.projection) {\n this.projection.isTransformDirty = true;\n }\n });\n const removeOnRenderRequest = value.on(\"renderRequest\", this.scheduleRender);\n this.valueSubscriptions.set(key, () => {\n removeOnChange();\n removeOnRenderRequest();\n });\n }\n sortNodePosition(other) {\n /**\n * If these nodes aren't even of the same type we can't compare their depth.\n */\n if (!this.current ||\n !this.sortInstanceNodePosition ||\n this.type !== other.type) {\n return 0;\n }\n return this.sortInstanceNodePosition(this.current, other.current);\n }\n loadFeatures({ children, ...renderedProps }, isStrict, preloadedFeatures, initialLayoutGroupConfig) {\n let ProjectionNodeConstructor;\n let MeasureLayout;\n /**\n * If we're in development mode, check to make sure we're not rendering a motion component\n * as a child of LazyMotion, as this will break the file-size benefits of using it.\n */\n if (process.env.NODE_ENV !== \"production\" &&\n preloadedFeatures &&\n isStrict) {\n const strictMessage = \"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.\";\n renderedProps.ignoreStrict\n ? warning(false, strictMessage)\n : invariant(false, strictMessage);\n }\n for (let i = 0; i < numFeatures; i++) {\n const name = featureNames[i];\n const { isEnabled, Feature: FeatureConstructor, ProjectionNode, MeasureLayout: MeasureLayoutComponent, } = featureDefinitions[name];\n if (ProjectionNode)\n ProjectionNodeConstructor = ProjectionNode;\n if (isEnabled(renderedProps)) {\n if (!this.features[name] && FeatureConstructor) {\n this.features[name] = new FeatureConstructor(this);\n }\n if (MeasureLayoutComponent) {\n MeasureLayout = MeasureLayoutComponent;\n }\n }\n }\n if (!this.projection && ProjectionNodeConstructor) {\n this.projection = new ProjectionNodeConstructor(this.latestValues, this.parent && this.parent.projection);\n const { layoutId, layout, drag, dragConstraints, layoutScroll, layoutRoot, } = renderedProps;\n this.projection.setOptions({\n layoutId,\n layout,\n alwaysMeasureLayout: Boolean(drag) ||\n (dragConstraints && isRefObject(dragConstraints)),\n visualElement: this,\n scheduleRender: () => this.scheduleRender(),\n /**\n * TODO: Update options in an effect. This could be tricky as it'll be too late\n * to update by the time layout animations run.\n * We also need to fix this safeToRemove by linking it up to the one returned by usePresence,\n * ensuring it gets called if there's no potential layout animations.\n *\n */\n animationType: typeof layout === \"string\" ? layout : \"both\",\n initialPromotionConfig: initialLayoutGroupConfig,\n layoutScroll,\n layoutRoot,\n });\n }\n return MeasureLayout;\n }\n updateFeatures() {\n for (const key in this.features) {\n const feature = this.features[key];\n if (feature.isMounted) {\n feature.update();\n }\n else {\n feature.mount();\n feature.isMounted = true;\n }\n }\n }\n triggerBuild() {\n this.build(this.renderState, this.latestValues, this.options, this.props);\n }\n /**\n * Measure the current viewport box with or without transforms.\n * Only measures axis-aligned boxes, rotate and skew must be manually\n * removed with a re-render to work.\n */\n measureViewportBox() {\n return this.current\n ? this.measureInstanceViewportBox(this.current, this.props)\n : createBox();\n }\n getStaticValue(key) {\n return this.latestValues[key];\n }\n setStaticValue(key, value) {\n this.latestValues[key] = value;\n }\n /**\n * Make a target animatable by Popmotion. For instance, if we're\n * trying to animate width from 100px to 100vw we need to measure 100vw\n * in pixels to determine what we really need to animate to. This is also\n * pluggable to support Framer's custom value types like Color,\n * and CSS variables.\n */\n makeTargetAnimatable(target, canMutate = true) {\n return this.makeTargetAnimatableFromInstance(target, this.props, canMutate);\n }\n /**\n * Update the provided props. Ensure any newly-added motion values are\n * added to our map, old ones removed, and listeners updated.\n */\n update(props, presenceContext) {\n if (props.transformTemplate || this.props.transformTemplate) {\n this.scheduleRender();\n }\n this.prevProps = this.props;\n this.props = props;\n this.prevPresenceContext = this.presenceContext;\n this.presenceContext = presenceContext;\n /**\n * Update prop event handlers ie onAnimationStart, onAnimationComplete\n */\n for (let i = 0; i < propEventHandlers.length; i++) {\n const key = propEventHandlers[i];\n if (this.propEventSubscriptions[key]) {\n this.propEventSubscriptions[key]();\n delete this.propEventSubscriptions[key];\n }\n const listener = props[\"on\" + key];\n if (listener) {\n this.propEventSubscriptions[key] = this.on(key, listener);\n }\n }\n this.prevMotionValues = updateMotionValuesFromProps(this, this.scrapeMotionValuesFromProps(props, this.prevProps), this.prevMotionValues);\n if (this.handleChildMotionValue) {\n this.handleChildMotionValue();\n }\n }\n getProps() {\n return this.props;\n }\n /**\n * Returns the variant definition with a given name.\n */\n getVariant(name) {\n return this.props.variants ? this.props.variants[name] : undefined;\n }\n /**\n * Returns the defined default transition on this component.\n */\n getDefaultTransition() {\n return this.props.transition;\n }\n getTransformPagePoint() {\n return this.props.transformPagePoint;\n }\n getClosestVariantNode() {\n return this.isVariantNode\n ? this\n : this.parent\n ? this.parent.getClosestVariantNode()\n : undefined;\n }\n getVariantContext(startAtParent = false) {\n if (startAtParent) {\n return this.parent ? this.parent.getVariantContext() : undefined;\n }\n if (!this.isControllingVariants) {\n const context = this.parent\n ? this.parent.getVariantContext() || {}\n : {};\n if (this.props.initial !== undefined) {\n context.initial = this.props.initial;\n }\n return context;\n }\n const context = {};\n for (let i = 0; i < numVariantProps; i++) {\n const name = variantProps[i];\n const prop = this.props[name];\n if (isVariantLabel(prop) || prop === false) {\n context[name] = prop;\n }\n }\n return context;\n }\n /**\n * Add a child visual element to our set of children.\n */\n addVariantChild(child) {\n const closestVariantNode = this.getClosestVariantNode();\n if (closestVariantNode) {\n closestVariantNode.variantChildren &&\n closestVariantNode.variantChildren.add(child);\n return () => closestVariantNode.variantChildren.delete(child);\n }\n }\n /**\n * Add a motion value and bind it to this visual element.\n */\n addValue(key, value) {\n // Remove existing value if it exists\n if (value !== this.values.get(key)) {\n this.removeValue(key);\n this.bindToMotionValue(key, value);\n }\n this.values.set(key, value);\n this.latestValues[key] = value.get();\n }\n /**\n * Remove a motion value and unbind any active subscriptions.\n */\n removeValue(key) {\n this.values.delete(key);\n const unsubscribe = this.valueSubscriptions.get(key);\n if (unsubscribe) {\n unsubscribe();\n this.valueSubscriptions.delete(key);\n }\n delete this.latestValues[key];\n this.removeValueFromRenderState(key, this.renderState);\n }\n /**\n * Check whether we have a motion value for this key\n */\n hasValue(key) {\n return this.values.has(key);\n }\n getValue(key, defaultValue) {\n if (this.props.values && this.props.values[key]) {\n return this.props.values[key];\n }\n let value = this.values.get(key);\n if (value === undefined && defaultValue !== undefined) {\n value = motionValue(defaultValue, { owner: this });\n this.addValue(key, value);\n }\n return value;\n }\n /**\n * If we're trying to animate to a previously unencountered value,\n * we need to check for it in our state and as a last resort read it\n * directly from the instance (which might have performance implications).\n */\n readValue(key) {\n var _a;\n return this.latestValues[key] !== undefined || !this.current\n ? this.latestValues[key]\n : (_a = this.getBaseTargetFromProps(this.props, key)) !== null && _a !== void 0 ? _a : this.readValueFromInstance(this.current, key, this.options);\n }\n /**\n * Set the base target to later animate back to. This is currently\n * only hydrated on creation and when we first read a value.\n */\n setBaseTarget(key, value) {\n this.baseTarget[key] = value;\n }\n /**\n * Find the base target for a value thats been removed from all animation\n * props.\n */\n getBaseTarget(key) {\n var _a;\n const { initial } = this.props;\n const valueFromInitial = typeof initial === \"string\" || typeof initial === \"object\"\n ? (_a = resolveVariantFromProps(this.props, initial)) === null || _a === void 0 ? void 0 : _a[key]\n : undefined;\n /**\n * If this value still exists in the current initial variant, read that.\n */\n if (initial && valueFromInitial !== undefined) {\n return valueFromInitial;\n }\n /**\n * Alternatively, if this VisualElement config has defined a getBaseTarget\n * so we can read the value from an alternative source, try that.\n */\n const target = this.getBaseTargetFromProps(this.props, key);\n if (target !== undefined && !isMotionValue(target))\n return target;\n /**\n * If the value was initially defined on initial, but it doesn't any more,\n * return undefined. Otherwise return the value as initially read from the DOM.\n */\n return this.initialValues[key] !== undefined &&\n valueFromInitial === undefined\n ? undefined\n : this.baseTarget[key];\n }\n on(eventName, callback) {\n if (!this.events[eventName]) {\n this.events[eventName] = new SubscriptionManager();\n }\n return this.events[eventName].add(callback);\n }\n notify(eventName, ...args) {\n if (this.events[eventName]) {\n this.events[eventName].notify(...args);\n }\n }\n}\n\nexport { VisualElement };\n","import { isBrowser } from '../is-browser.mjs';\nimport { hasReducedMotionListener, prefersReducedMotion } from './state.mjs';\n\nfunction initPrefersReducedMotion() {\n hasReducedMotionListener.current = true;\n if (!isBrowser)\n return;\n if (window.matchMedia) {\n const motionMediaQuery = window.matchMedia(\"(prefers-reduced-motion)\");\n const setReducedMotionPreferences = () => (prefersReducedMotion.current = motionMediaQuery.matches);\n motionMediaQuery.addListener(setReducedMotionPreferences);\n setReducedMotionPreferences();\n }\n else {\n prefersReducedMotion.current = false;\n }\n}\n\nexport { initPrefersReducedMotion };\n","import { isWillChangeMotionValue } from '../../value/use-will-change/is.mjs';\nimport { warnOnce } from '../../utils/warn-once.mjs';\nimport { motionValue } from '../../value/index.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\n\nfunction updateMotionValuesFromProps(element, next, prev) {\n const { willChange } = next;\n for (const key in next) {\n const nextValue = next[key];\n const prevValue = prev[key];\n if (isMotionValue(nextValue)) {\n /**\n * If this is a motion value found in props or style, we want to add it\n * to our visual element's motion value map.\n */\n element.addValue(key, nextValue);\n if (isWillChangeMotionValue(willChange)) {\n willChange.add(key);\n }\n /**\n * Check the version of the incoming motion value with this version\n * and warn against mismatches.\n */\n if (process.env.NODE_ENV === \"development\") {\n warnOnce(nextValue.version === \"10.16.5\", `Attempting to mix Framer Motion versions ${nextValue.version} with 10.16.5 may not work as expected.`);\n }\n }\n else if (isMotionValue(prevValue)) {\n /**\n * If we're swapping from a motion value to a static value,\n * create a new motion value from that\n */\n element.addValue(key, motionValue(nextValue, { owner: element }));\n if (isWillChangeMotionValue(willChange)) {\n willChange.remove(key);\n }\n }\n else if (prevValue !== nextValue) {\n /**\n * If this is a flat value that has changed, update the motion value\n * or create one if it doesn't exist. We only want to do this if we're\n * not handling the value with our animation state.\n */\n if (element.hasValue(key)) {\n const existingValue = element.getValue(key);\n // TODO: Only update values that aren't being animated or even looked at\n !existingValue.hasAnimated && existingValue.set(nextValue);\n }\n else {\n const latestValue = element.getStaticValue(key);\n element.addValue(key, motionValue(latestValue !== undefined ? latestValue : nextValue, { owner: element }));\n }\n }\n }\n // Handle removed values\n for (const key in prev) {\n if (next[key] === undefined)\n element.removeValue(key);\n }\n return next;\n}\n\nexport { updateMotionValuesFromProps };\n","import { getOrigin, checkTargetForNewValues } from '../utils/setters.mjs';\nimport { parseDomVariant } from './utils/parse-dom-variant.mjs';\nimport { VisualElement } from '../VisualElement.mjs';\n\nclass DOMVisualElement extends VisualElement {\n sortInstanceNodePosition(a, b) {\n /**\n * compareDocumentPosition returns a bitmask, by using the bitwise &\n * we're returning true if 2 in that bitmask is set to true. 2 is set\n * to true if b preceeds a.\n */\n return a.compareDocumentPosition(b) & 2 ? 1 : -1;\n }\n getBaseTargetFromProps(props, key) {\n return props.style ? props.style[key] : undefined;\n }\n removeValueFromRenderState(key, { vars, style }) {\n delete vars[key];\n delete style[key];\n }\n makeTargetAnimatableFromInstance({ transition, transitionEnd, ...target }, { transformValues }, isMounted) {\n let origin = getOrigin(target, transition || {}, this);\n /**\n * If Framer has provided a function to convert `Color` etc value types, convert them\n */\n if (transformValues) {\n if (transitionEnd)\n transitionEnd = transformValues(transitionEnd);\n if (target)\n target = transformValues(target);\n if (origin)\n origin = transformValues(origin);\n }\n if (isMounted) {\n checkTargetForNewValues(this, target, origin);\n const parsed = parseDomVariant(this, target, origin, transitionEnd);\n transitionEnd = parsed.transitionEnd;\n target = parsed.target;\n }\n return {\n transition,\n transitionEnd,\n ...target,\n };\n }\n}\n\nexport { DOMVisualElement };\n","import { buildHTMLStyles } from './utils/build-styles.mjs';\nimport { isCSSVariableName } from '../dom/utils/is-css-variable.mjs';\nimport { transformProps } from './utils/transform.mjs';\nimport { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.mjs';\nimport { renderHTML } from './utils/render.mjs';\nimport { getDefaultValueType } from '../dom/value-types/defaults.mjs';\nimport { measureViewportBox } from '../../projection/utils/measure.mjs';\nimport { DOMVisualElement } from '../dom/DOMVisualElement.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\n\nfunction getComputedStyle(element) {\n return window.getComputedStyle(element);\n}\nclass HTMLVisualElement extends DOMVisualElement {\n readValueFromInstance(instance, key) {\n if (transformProps.has(key)) {\n const defaultType = getDefaultValueType(key);\n return defaultType ? defaultType.default || 0 : 0;\n }\n else {\n const computedStyle = getComputedStyle(instance);\n const value = (isCSSVariableName(key)\n ? computedStyle.getPropertyValue(key)\n : computedStyle[key]) || 0;\n return typeof value === \"string\" ? value.trim() : value;\n }\n }\n measureInstanceViewportBox(instance, { transformPagePoint }) {\n return measureViewportBox(instance, transformPagePoint);\n }\n build(renderState, latestValues, options, props) {\n buildHTMLStyles(renderState, latestValues, options, props.transformTemplate);\n }\n scrapeMotionValuesFromProps(props, prevProps) {\n return scrapeMotionValuesFromProps(props, prevProps);\n }\n handleChildMotionValue() {\n if (this.childSubscription) {\n this.childSubscription();\n delete this.childSubscription;\n }\n const { children } = this.props;\n if (isMotionValue(children)) {\n this.childSubscription = children.on(\"change\", (latest) => {\n if (this.current)\n this.current.textContent = `${latest}`;\n });\n }\n }\n renderInstance(instance, renderState, styleProp, projection) {\n renderHTML(instance, renderState, styleProp, projection);\n }\n}\n\nexport { HTMLVisualElement, getComputedStyle };\n","import { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.mjs';\nimport { DOMVisualElement } from '../dom/DOMVisualElement.mjs';\nimport { buildSVGAttrs } from './utils/build-attrs.mjs';\nimport { camelToDash } from '../dom/utils/camel-to-dash.mjs';\nimport { camelCaseAttributes } from './utils/camel-case-attrs.mjs';\nimport { transformProps } from '../html/utils/transform.mjs';\nimport { renderSVG } from './utils/render.mjs';\nimport { getDefaultValueType } from '../dom/value-types/defaults.mjs';\nimport { createBox } from '../../projection/geometry/models.mjs';\nimport { isSVGTag } from './utils/is-svg-tag.mjs';\n\nclass SVGVisualElement extends DOMVisualElement {\n constructor() {\n super(...arguments);\n this.isSVGTag = false;\n }\n getBaseTargetFromProps(props, key) {\n return props[key];\n }\n readValueFromInstance(instance, key) {\n if (transformProps.has(key)) {\n const defaultType = getDefaultValueType(key);\n return defaultType ? defaultType.default || 0 : 0;\n }\n key = !camelCaseAttributes.has(key) ? camelToDash(key) : key;\n return instance.getAttribute(key);\n }\n measureInstanceViewportBox() {\n return createBox();\n }\n scrapeMotionValuesFromProps(props, prevProps) {\n return scrapeMotionValuesFromProps(props, prevProps);\n }\n build(renderState, latestValues, options, props) {\n buildSVGAttrs(renderState, latestValues, options, this.isSVGTag, props.transformTemplate);\n }\n renderInstance(instance, renderState, styleProp, projection) {\n renderSVG(instance, renderState, styleProp, projection);\n }\n mount(instance) {\n this.isSVGTag = isSVGTag(instance.tagName);\n super.mount(instance);\n }\n}\n\nexport { SVGVisualElement };\n","import { HTMLVisualElement } from '../html/HTMLVisualElement.mjs';\nimport { SVGVisualElement } from '../svg/SVGVisualElement.mjs';\nimport { isSVGComponent } from './utils/is-svg-component.mjs';\n\nconst createDomVisualElement = (Component, options) => {\n return isSVGComponent(Component)\n ? new SVGVisualElement(options, { enableHardwareAcceleration: false })\n : new HTMLVisualElement(options, { enableHardwareAcceleration: true });\n};\n\nexport { createDomVisualElement };\n","import { createMotionComponent } from '../../motion/index.mjs';\nimport { createMotionProxy } from './motion-proxy.mjs';\nimport { createDomMotionConfig } from './utils/create-config.mjs';\nimport { gestureAnimations } from '../../motion/features/gestures.mjs';\nimport { animations } from '../../motion/features/animations.mjs';\nimport { drag } from '../../motion/features/drag.mjs';\nimport { createDomVisualElement } from './create-visual-element.mjs';\nimport { layout } from '../../motion/features/layout.mjs';\n\nconst preloadedFeatures = {\n ...animations,\n ...gestureAnimations,\n ...drag,\n ...layout,\n};\n/**\n * HTML & SVG components, optimised for use with gestures and animation. These can be used as\n * drop-in replacements for any HTML & SVG component, all CSS & SVG properties are supported.\n *\n * @public\n */\nconst motion = /*@__PURE__*/ createMotionProxy((Component, config) => createDomMotionConfig(Component, config, preloadedFeatures, createDomVisualElement));\n/**\n * Create a DOM `motion` component with the provided string. This is primarily intended\n * as a full alternative to `motion` for consumers who have to support environments that don't\n * support `Proxy`.\n *\n * ```javascript\n * import { createDomMotionComponent } from \"framer-motion\"\n *\n * const motion = {\n * div: createDomMotionComponent('div')\n * }\n * ```\n *\n * @public\n */\nfunction createDomMotionComponent(key) {\n return createMotionComponent(createDomMotionConfig(key, { forwardMotionProps: false }, preloadedFeatures, createDomVisualElement));\n}\n\nexport { createDomMotionComponent, motion };\n","import { HTMLProjectionNode } from '../../projection/node/HTMLProjectionNode.mjs';\nimport { MeasureLayout } from './layout/MeasureLayout.mjs';\n\nconst layout = {\n layout: {\n ProjectionNode: HTMLProjectionNode,\n MeasureLayout,\n },\n};\n\nexport { layout };\n","import { isSVGComponent } from './is-svg-component.mjs';\nimport { createUseRender } from '../use-render.mjs';\nimport { svgMotionConfig } from '../../svg/config-motion.mjs';\nimport { htmlMotionConfig } from '../../html/config-motion.mjs';\n\nfunction createDomMotionConfig(Component, { forwardMotionProps = false }, preloadedFeatures, createVisualElement) {\n const baseConfig = isSVGComponent(Component)\n ? svgMotionConfig\n : htmlMotionConfig;\n return {\n ...baseConfig,\n preloadedFeatures,\n useRender: createUseRender(forwardMotionProps),\n createVisualElement,\n Component,\n };\n}\n\nexport { createDomMotionConfig };\n","import { useRef } from 'react';\nimport { useIsomorphicLayoutEffect } from './use-isomorphic-effect.mjs';\n\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useIsomorphicLayoutEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return isMounted;\n}\n\nexport { useIsMounted };\n","import * as React from 'react';\nimport { useId, useRef, useInsertionEffect } from 'react';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n });\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n document.head.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n top: ${top}px !important;\n left: ${left}px !important;\n }\n `);\n }\n return () => {\n document.head.removeChild(style);\n };\n }, [isPresent]);\n return (React.createElement(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size }, React.cloneElement(children, { ref })));\n}\n\nexport { PopChild };\n","import * as React from 'react';\nimport { useId, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n const context = useMemo(() => ({\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n },\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => presenceChildren.delete(childId);\n },\n }), \n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n presenceAffectsLayout ? undefined : [isPresent]);\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n if (mode === \"popLayout\") {\n children = React.createElement(PopChild, { isPresent: isPresent }, children);\n }\n return (React.createElement(PresenceContext.Provider, { value: context }, children));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n","import * as React from 'react';\nimport { useContext, useRef, cloneElement, Children, isValidElement } from 'react';\nimport { useForceUpdate } from '../../utils/use-force-update.mjs';\nimport { useIsMounted } from '../../utils/use-is-mounted.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { useUnmountEffect } from '../../utils/use-unmount-effect.mjs';\nimport { invariant } from '../../utils/errors.mjs';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction updateChildLookup(children, allChildren) {\n children.forEach((child) => {\n const key = getChildKey(child);\n allChildren.set(key, child);\n });\n}\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, exitBeforeEnter, presenceAffectsLayout = true, mode = \"sync\", }) => {\n invariant(!exitBeforeEnter, \"Replace exitBeforeEnter with mode='wait'\");\n // We want to force a re-render once all exiting animations have finished. We\n // either use a local forceRender function, or one from a parent context if it exists.\n const forceRender = useContext(LayoutGroupContext).forceRender || useForceUpdate()[0];\n const isMounted = useIsMounted();\n // Filter out any children that aren't ReactElements. We can only track ReactElements with a props.key\n const filteredChildren = onlyElements(children);\n let childrenToRender = filteredChildren;\n const exitingChildren = useRef(new Map()).current;\n // Keep a living record of the children we're actually rendering so we\n // can diff to figure out which are entering and exiting\n const presentChildren = useRef(childrenToRender);\n // A lookup table to quickly reference components by key\n const allChildren = useRef(new Map()).current;\n // If this is the initial component render, just deal with logic surrounding whether\n // we play onMount animations or not.\n const isInitialRender = useRef(true);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n updateChildLookup(filteredChildren, allChildren);\n presentChildren.current = childrenToRender;\n });\n useUnmountEffect(() => {\n isInitialRender.current = true;\n allChildren.clear();\n exitingChildren.clear();\n });\n if (isInitialRender.current) {\n return (React.createElement(React.Fragment, null, childrenToRender.map((child) => (React.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? undefined : false, presenceAffectsLayout: presenceAffectsLayout, mode: mode }, child)))));\n }\n // If this is a subsequent render, deal with entering and exiting children\n childrenToRender = [...childrenToRender];\n // Diff the keys of the currently-present and target children to update our\n // exiting list.\n const presentKeys = presentChildren.current.map(getChildKey);\n const targetKeys = filteredChildren.map(getChildKey);\n // Diff the present children with our target children and mark those that are exiting\n const numPresent = presentKeys.length;\n for (let i = 0; i < numPresent; i++) {\n const key = presentKeys[i];\n if (targetKeys.indexOf(key) === -1 && !exitingChildren.has(key)) {\n exitingChildren.set(key, undefined);\n }\n }\n // If we currently have exiting children, and we're deferring rendering incoming children\n // until after all current children have exiting, empty the childrenToRender array\n if (mode === \"wait\" && exitingChildren.size) {\n childrenToRender = [];\n }\n // Loop through all currently exiting components and clone them to overwrite `animate`\n // with any `exit` prop they might have defined.\n exitingChildren.forEach((component, key) => {\n // If this component is actually entering again, early return\n if (targetKeys.indexOf(key) !== -1)\n return;\n const child = allChildren.get(key);\n if (!child)\n return;\n const insertionIndex = presentKeys.indexOf(key);\n let exitingComponent = component;\n if (!exitingComponent) {\n const onExit = () => {\n // clean up the exiting children map\n exitingChildren.delete(key);\n // compute the keys of children that were rendered once but are no longer present\n // this could happen in case of too many fast consequent renderings\n // @link https://github.com/framer/motion/issues/2023\n const leftOverKeys = Array.from(allChildren.keys()).filter((childKey) => !targetKeys.includes(childKey));\n // clean up the all children map\n leftOverKeys.forEach((leftOverKey) => allChildren.delete(leftOverKey));\n // make sure to render only the children that are actually visible\n presentChildren.current = filteredChildren.filter((presentChild) => {\n const presentChildKey = getChildKey(presentChild);\n return (\n // filter out the node exiting\n presentChildKey === key ||\n // filter out the leftover children\n leftOverKeys.includes(presentChildKey));\n });\n // Defer re-rendering until all exiting children have indeed left\n if (!exitingChildren.size) {\n if (isMounted.current === false)\n return;\n forceRender();\n onExitComplete && onExitComplete();\n }\n };\n exitingComponent = (React.createElement(PresenceChild, { key: getChildKey(child), isPresent: false, onExitComplete: onExit, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode }, child));\n exitingChildren.set(key, exitingComponent);\n }\n childrenToRender.splice(insertionIndex, 0, exitingComponent);\n });\n // Add `MotionContext` even to children that don't need it to ensure we're rendering\n // the same tree between renders\n childrenToRender = childrenToRender.map((child) => {\n const key = child.key;\n return exitingChildren.has(key) ? (child) : (React.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, presenceAffectsLayout: presenceAffectsLayout, mode: mode }, child));\n });\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n childrenToRender.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n return (React.createElement(React.Fragment, null, exitingChildren.size\n ? childrenToRender\n : childrenToRender.map((child) => cloneElement(child))));\n};\n\nexport { AnimatePresence };\n","import { useState, useCallback } from 'react';\nimport { useIsMounted } from './use-is-mounted.mjs';\nimport { frame } from '../frameloop/frame.mjs';\n\nfunction useForceUpdate() {\n const isMounted = useIsMounted();\n const [forcedRenderCount, setForcedRenderCount] = useState(0);\n const forceRender = useCallback(() => {\n isMounted.current && setForcedRenderCount(forcedRenderCount + 1);\n }, [forcedRenderCount]);\n /**\n * Defer this to the end of the next animation frame in case there are multiple\n * synchronous calls.\n */\n const deferredForceRender = useCallback(() => frame.postRender(forceRender), [forceRender]);\n return [deferredForceRender, forcedRenderCount];\n}\n\nexport { useForceUpdate };\n","import { useEffect } from 'react';\n\nfunction useUnmountEffect(callback) {\n return useEffect(() => () => callback(), []);\n}\n\nexport { useUnmountEffect };\n","import { useConstant } from '../../utils/use-constant.mjs';\n\n/**\n * Can manually trigger a drag gesture on one or more `drag`-enabled `motion` components.\n *\n * ```jsx\n * const dragControls = useDragControls()\n *\n * function startDrag(event) {\n * dragControls.start(event, { snapToCursor: true })\n * }\n *\n * return (\n * <>\n * <div onPointerDown={startDrag} />\n * <motion.div drag=\"x\" dragControls={dragControls} />\n * </>\n * )\n * ```\n *\n * @public\n */\nclass DragControls {\n constructor() {\n this.componentControls = new Set();\n }\n /**\n * Subscribe a component's internal `VisualElementDragControls` to the user-facing API.\n *\n * @internal\n */\n subscribe(controls) {\n this.componentControls.add(controls);\n return () => this.componentControls.delete(controls);\n }\n /**\n * Start a drag gesture on every `motion` component that has this set of drag controls\n * passed into it via the `dragControls` prop.\n *\n * ```jsx\n * dragControls.start(e, {\n * snapToCursor: true\n * })\n * ```\n *\n * @param event - PointerEvent\n * @param options - Options\n *\n * @public\n */\n start(event, options) {\n this.componentControls.forEach((controls) => {\n controls.start(event.nativeEvent || event, options);\n });\n }\n}\nconst createDragControls = () => new DragControls();\n/**\n * Usually, dragging is initiated by pressing down on a `motion` component with a `drag` prop\n * and moving it. For some use-cases, for instance clicking at an arbitrary point on a video scrubber, we\n * might want to initiate that dragging from a different component than the draggable one.\n *\n * By creating a `dragControls` using the `useDragControls` hook, we can pass this into\n * the draggable component's `dragControls` prop. It exposes a `start` method\n * that can start dragging from pointer events on other components.\n *\n * ```jsx\n * const dragControls = useDragControls()\n *\n * function startDrag(event) {\n * dragControls.start(event, { snapToCursor: true })\n * }\n *\n * return (\n * <>\n * <div onPointerDown={startDrag} />\n * <motion.div drag=\"x\" dragControls={dragControls} />\n * </>\n * )\n * ```\n *\n * @public\n */\nfunction useDragControls() {\n return useConstant(createDragControls);\n}\n\nexport { DragControls, useDragControls };\n","import { invariant } from '../../utils/errors.mjs';\nimport { setValues } from '../../render/utils/setters.mjs';\nimport { animateVisualElement } from '../interfaces/visual-element.mjs';\n\nfunction stopAnimation(visualElement) {\n visualElement.values.forEach((value) => value.stop());\n}\n/**\n * @public\n */\nfunction animationControls() {\n /**\n * Track whether the host component has mounted.\n */\n let hasMounted = false;\n /**\n * A collection of linked component animation controls.\n */\n const subscribers = new Set();\n const controls = {\n subscribe(visualElement) {\n subscribers.add(visualElement);\n return () => void subscribers.delete(visualElement);\n },\n start(definition, transitionOverride) {\n invariant(hasMounted, \"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.\");\n const animations = [];\n subscribers.forEach((visualElement) => {\n animations.push(animateVisualElement(visualElement, definition, {\n transitionOverride,\n }));\n });\n return Promise.all(animations);\n },\n set(definition) {\n invariant(hasMounted, \"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook.\");\n return subscribers.forEach((visualElement) => {\n setValues(visualElement, definition);\n });\n },\n stop() {\n subscribers.forEach((visualElement) => {\n stopAnimation(visualElement);\n });\n },\n mount() {\n hasMounted = true;\n return () => {\n hasMounted = false;\n controls.stop();\n };\n },\n };\n return controls;\n}\n\nexport { animationControls };\n","import { animationControls } from './animation-controls.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\n\n/**\n * Creates `AnimationControls`, which can be used to manually start, stop\n * and sequence animations on one or more components.\n *\n * The returned `AnimationControls` should be passed to the `animate` property\n * of the components you want to animate.\n *\n * These components can then be animated with the `start` method.\n *\n * ```jsx\n * import * as React from 'react'\n * import { motion, useAnimation } from 'framer-motion'\n *\n * export function MyComponent(props) {\n * const controls = useAnimation()\n *\n * controls.start({\n * x: 100,\n * transition: { duration: 0.5 },\n * })\n *\n * return <motion.div animate={controls} />\n * }\n * ```\n *\n * @returns Animation controller with `start` and `stop` methods\n *\n * @public\n */\nfunction useAnimationControls() {\n const controls = useConstant(animationControls);\n useIsomorphicLayoutEffect(controls.mount, []);\n return controls;\n}\nconst useAnimation = useAnimationControls;\n\nexport { useAnimation, useAnimationControls };\n","import { interpolate } from './interpolate.mjs';\n\nconst isCustomValueType = (v) => {\n return typeof v === \"object\" && v.mix;\n};\nconst getMixer = (v) => (isCustomValueType(v) ? v.mix : undefined);\nfunction transform(...args) {\n const useImmediate = !Array.isArray(args[0]);\n const argOffset = useImmediate ? 0 : -1;\n const inputValue = args[0 + argOffset];\n const inputRange = args[1 + argOffset];\n const outputRange = args[2 + argOffset];\n const options = args[3 + argOffset];\n const interpolator = interpolate(inputRange, outputRange, {\n mixer: getMixer(outputRange[0]),\n ...options,\n });\n return useImmediate ? interpolator(inputValue) : interpolator;\n}\n\nexport { transform };\n","import { useContext, useState, useEffect } from 'react';\nimport { motionValue } from './index.mjs';\nimport { MotionConfigContext } from '../context/MotionConfigContext.mjs';\nimport { useConstant } from '../utils/use-constant.mjs';\n\n/**\n * Creates a `MotionValue` to track the state and velocity of a value.\n *\n * Usually, these are created automatically. For advanced use-cases, like use with `useTransform`, you can create `MotionValue`s externally and pass them into the animated component via the `style` prop.\n *\n * ```jsx\n * export const MyComponent = () => {\n * const scale = useMotionValue(1)\n *\n * return <motion.div style={{ scale }} />\n * }\n * ```\n *\n * @param initial - The initial state.\n *\n * @public\n */\nfunction useMotionValue(initial) {\n const value = useConstant(() => motionValue(initial));\n /**\n * If this motion value is being used in static mode, like on\n * the Framer canvas, force components to rerender when the motion\n * value is updated.\n */\n const { isStatic } = useContext(MotionConfigContext);\n if (isStatic) {\n const [, setLatest] = useState(initial);\n useEffect(() => value.on(\"change\", setLatest), []);\n }\n return value;\n}\n\nexport { useMotionValue };\n","import { useMotionValue } from './use-motion-value.mjs';\nimport { useIsomorphicLayoutEffect } from '../utils/use-isomorphic-effect.mjs';\nimport { cancelFrame, frame } from '../frameloop/frame.mjs';\n\nfunction useCombineMotionValues(values, combineValues) {\n /**\n * Initialise the returned motion value. This remains the same between renders.\n */\n const value = useMotionValue(combineValues());\n /**\n * Create a function that will update the template motion value with the latest values.\n * This is pre-bound so whenever a motion value updates it can schedule its\n * execution in Framesync. If it's already been scheduled it won't be fired twice\n * in a single frame.\n */\n const updateValue = () => value.set(combineValues());\n /**\n * Synchronously update the motion value with the latest values during the render.\n * This ensures that within a React render, the styles applied to the DOM are up-to-date.\n */\n updateValue();\n /**\n * Subscribe to all motion values found within the template. Whenever any of them change,\n * schedule an update.\n */\n useIsomorphicLayoutEffect(() => {\n const scheduleUpdate = () => frame.update(updateValue, false, true);\n const subscriptions = values.map((v) => v.on(\"change\", scheduleUpdate));\n return () => {\n subscriptions.forEach((unsubscribe) => unsubscribe());\n cancelFrame(updateValue);\n };\n });\n return value;\n}\n\nexport { useCombineMotionValues };\n","import { transform } from '../utils/transform.mjs';\nimport { useCombineMotionValues } from './use-combine-values.mjs';\nimport { useConstant } from '../utils/use-constant.mjs';\nimport { useComputed } from './use-computed.mjs';\n\nfunction useTransform(input, inputRangeOrTransformer, outputRange, options) {\n if (typeof input === \"function\") {\n return useComputed(input);\n }\n const transformer = typeof inputRangeOrTransformer === \"function\"\n ? inputRangeOrTransformer\n : transform(inputRangeOrTransformer, outputRange, options);\n return Array.isArray(input)\n ? useListTransform(input, transformer)\n : useListTransform([input], ([latest]) => transformer(latest));\n}\nfunction useListTransform(values, transformer) {\n const latest = useConstant(() => []);\n return useCombineMotionValues(values, () => {\n latest.length = 0;\n const numValues = values.length;\n for (let i = 0; i < numValues; i++) {\n latest[i] = values[i].get();\n }\n return transformer(latest);\n });\n}\n\nexport { useTransform };\n","import { collectMotionValues } from './index.mjs';\nimport { useCombineMotionValues } from './use-combine-values.mjs';\n\nfunction useComputed(compute) {\n /**\n * Open session of collectMotionValues. Any MotionValue that calls get()\n * will be saved into this array.\n */\n collectMotionValues.current = [];\n compute();\n const value = useCombineMotionValues(collectMotionValues.current, compute);\n /**\n * Synchronously close session of collectMotionValues.\n */\n collectMotionValues.current = undefined;\n return value;\n}\n\nexport { useComputed };\n","import $epM9y$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useState as $epM9y$useState, useRef as $epM9y$useRef, useEffect as $epM9y$useEffect, createElement as $epM9y$createElement, useCallback as $epM9y$useCallback, forwardRef as $epM9y$forwardRef, Fragment as $epM9y$Fragment} from \"react\";\nimport {composeEventHandlers as $epM9y$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {createCollection as $epM9y$createCollection} from \"@radix-ui/react-collection\";\nimport {useComposedRefs as $epM9y$useComposedRefs, composeRefs as $epM9y$composeRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $epM9y$createContextScope} from \"@radix-ui/react-context\";\nimport {useDirection as $epM9y$useDirection} from \"@radix-ui/react-direction\";\nimport {DismissableLayer as $epM9y$DismissableLayer} from \"@radix-ui/react-dismissable-layer\";\nimport {useFocusGuards as $epM9y$useFocusGuards} from \"@radix-ui/react-focus-guards\";\nimport {FocusScope as $epM9y$FocusScope} from \"@radix-ui/react-focus-scope\";\nimport {useId as $epM9y$useId} from \"@radix-ui/react-id\";\nimport {createPopperScope as $epM9y$createPopperScope, Root as $epM9y$Root, Anchor as $epM9y$Anchor, Content as $epM9y$Content, Arrow as $epM9y$Arrow} from \"@radix-ui/react-popper\";\nimport {Portal as $epM9y$Portal} from \"@radix-ui/react-portal\";\nimport {Presence as $epM9y$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $epM9y$Primitive, dispatchDiscreteCustomEvent as $epM9y$dispatchDiscreteCustomEvent} from \"@radix-ui/react-primitive\";\nimport {createRovingFocusGroupScope as $epM9y$createRovingFocusGroupScope, Root as $epM9y$Root1, Item as $epM9y$Item} from \"@radix-ui/react-roving-focus\";\nimport {Slot as $epM9y$Slot} from \"@radix-ui/react-slot\";\nimport {useCallbackRef as $epM9y$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\nimport {hideOthers as $epM9y$hideOthers} from \"aria-hidden\";\nimport {RemoveScroll as $epM9y$RemoveScroll} from \"react-remove-scroll\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst $6cc32821e9371a1c$var$SELECTION_KEYS = [\n 'Enter',\n ' '\n];\nconst $6cc32821e9371a1c$var$FIRST_KEYS = [\n 'ArrowDown',\n 'PageUp',\n 'Home'\n];\nconst $6cc32821e9371a1c$var$LAST_KEYS = [\n 'ArrowUp',\n 'PageDown',\n 'End'\n];\nconst $6cc32821e9371a1c$var$FIRST_LAST_KEYS = [\n ...$6cc32821e9371a1c$var$FIRST_KEYS,\n ...$6cc32821e9371a1c$var$LAST_KEYS\n];\nconst $6cc32821e9371a1c$var$SUB_OPEN_KEYS = {\n ltr: [\n ...$6cc32821e9371a1c$var$SELECTION_KEYS,\n 'ArrowRight'\n ],\n rtl: [\n ...$6cc32821e9371a1c$var$SELECTION_KEYS,\n 'ArrowLeft'\n ]\n};\nconst $6cc32821e9371a1c$var$SUB_CLOSE_KEYS = {\n ltr: [\n 'ArrowLeft'\n ],\n rtl: [\n 'ArrowRight'\n ]\n};\n/* -------------------------------------------------------------------------------------------------\n * Menu\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$MENU_NAME = 'Menu';\nconst [$6cc32821e9371a1c$var$Collection, $6cc32821e9371a1c$var$useCollection, $6cc32821e9371a1c$var$createCollectionScope] = $epM9y$createCollection($6cc32821e9371a1c$var$MENU_NAME);\nconst [$6cc32821e9371a1c$var$createMenuContext, $6cc32821e9371a1c$export$4027731b685e72eb] = $epM9y$createContextScope($6cc32821e9371a1c$var$MENU_NAME, [\n $6cc32821e9371a1c$var$createCollectionScope,\n $epM9y$createPopperScope,\n $epM9y$createRovingFocusGroupScope\n]);\nconst $6cc32821e9371a1c$var$usePopperScope = $epM9y$createPopperScope();\nconst $6cc32821e9371a1c$var$useRovingFocusGroupScope = $epM9y$createRovingFocusGroupScope();\nconst [$6cc32821e9371a1c$var$MenuProvider, $6cc32821e9371a1c$var$useMenuContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$MENU_NAME);\nconst [$6cc32821e9371a1c$var$MenuRootProvider, $6cc32821e9371a1c$var$useMenuRootContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$MENU_NAME);\nconst $6cc32821e9371a1c$export$d9b273488cd8ce6f = (props)=>{\n const { __scopeMenu: __scopeMenu , open: open = false , children: children , dir: dir , onOpenChange: onOpenChange , modal: modal = true } = props;\n const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);\n const [content, setContent] = $epM9y$useState(null);\n const isUsingKeyboardRef = $epM9y$useRef(false);\n const handleOpenChange = $epM9y$useCallbackRef(onOpenChange);\n const direction = $epM9y$useDirection(dir);\n $epM9y$useEffect(()=>{\n // Capture phase ensures we set the boolean before any side effects execute\n // in response to the key or pointer event as they might depend on this value.\n const handleKeyDown = ()=>{\n isUsingKeyboardRef.current = true;\n document.addEventListener('pointerdown', handlePointer, {\n capture: true,\n once: true\n });\n document.addEventListener('pointermove', handlePointer, {\n capture: true,\n once: true\n });\n };\n const handlePointer = ()=>isUsingKeyboardRef.current = false\n ;\n document.addEventListener('keydown', handleKeyDown, {\n capture: true\n });\n return ()=>{\n document.removeEventListener('keydown', handleKeyDown, {\n capture: true\n });\n document.removeEventListener('pointerdown', handlePointer, {\n capture: true\n });\n document.removeEventListener('pointermove', handlePointer, {\n capture: true\n });\n };\n }, []);\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Root, popperScope, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuProvider, {\n scope: __scopeMenu,\n open: open,\n onOpenChange: handleOpenChange,\n content: content,\n onContentChange: setContent\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuRootProvider, {\n scope: __scopeMenu,\n onClose: $epM9y$useCallback(()=>handleOpenChange(false)\n , [\n handleOpenChange\n ]),\n isUsingKeyboardRef: isUsingKeyboardRef,\n dir: direction,\n modal: modal\n }, children)));\n};\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$d9b273488cd8ce6f, {\n displayName: $6cc32821e9371a1c$var$MENU_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuAnchor\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$ANCHOR_NAME = 'MenuAnchor';\nconst $6cc32821e9371a1c$export$9fa5ebd18bee4d43 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , ...anchorProps } = props;\n const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Anchor, $epM9y$babelruntimehelpersesmextends({}, popperScope, anchorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$9fa5ebd18bee4d43, {\n displayName: $6cc32821e9371a1c$var$ANCHOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuPortal\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$PORTAL_NAME = 'MenuPortal';\nconst [$6cc32821e9371a1c$var$PortalProvider, $6cc32821e9371a1c$var$usePortalContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$PORTAL_NAME, {\n forceMount: undefined\n});\nconst $6cc32821e9371a1c$export$793392f970497feb = (props)=>{\n const { __scopeMenu: __scopeMenu , forceMount: forceMount , children: children , container: container } = props;\n const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$PORTAL_NAME, __scopeMenu);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$PortalProvider, {\n scope: __scopeMenu,\n forceMount: forceMount\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$Portal, {\n asChild: true,\n container: container\n }, children)));\n};\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$793392f970497feb, {\n displayName: $6cc32821e9371a1c$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuContent\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$CONTENT_NAME = 'MenuContent';\nconst [$6cc32821e9371a1c$var$MenuContentProvider, $6cc32821e9371a1c$var$useMenuContentContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$CONTENT_NAME);\nconst $6cc32821e9371a1c$export$479f0f2f71193efe = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const portalContext = $6cc32821e9371a1c$var$usePortalContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n const { forceMount: forceMount = portalContext.forceMount , ...contentProps } = props;\n const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n const rootContext = $6cc32821e9371a1c$var$useMenuRootContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$Collection.Provider, {\n scope: props.__scopeMenu\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$Collection.Slot, {\n scope: props.__scopeMenu\n }, rootContext.modal ? /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuRootContentModal, $epM9y$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef\n })) : /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuRootContentNonModal, $epM9y$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef\n })))));\n});\n/* ---------------------------------------------------------------------------------------------- */ const $6cc32821e9371a1c$var$MenuRootContentModal = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n const ref = $epM9y$useRef(null);\n const composedRefs = $epM9y$useComposedRefs(forwardedRef, ref); // Hide everything from ARIA except the `MenuContent`\n $epM9y$useEffect(()=>{\n const content = ref.current;\n if (content) return $epM9y$hideOthers(content);\n }, []);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuContentImpl, $epM9y$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs // we make sure we're not trapping once it's been closed\n ,\n trapFocus: context.open // make sure to only disable pointer events when open\n ,\n disableOutsidePointerEvents: context.open,\n disableOutsideScroll: true // When focus is trapped, a `focusout` event may still happen.\n ,\n onFocusOutside: $epM9y$composeEventHandlers(props.onFocusOutside, (event)=>event.preventDefault()\n , {\n checkForDefaultPrevented: false\n }),\n onDismiss: ()=>context.onOpenChange(false)\n }));\n});\nconst $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuContentImpl, $epM9y$babelruntimehelpersesmextends({}, props, {\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n onDismiss: ()=>context.onOpenChange(false)\n }));\n});\n/* ---------------------------------------------------------------------------------------------- */ const $6cc32821e9371a1c$var$MenuContentImpl = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , loop: loop = false , trapFocus: trapFocus , onOpenAutoFocus: onOpenAutoFocus , onCloseAutoFocus: onCloseAutoFocus , disableOutsidePointerEvents: disableOutsidePointerEvents , onEntryFocus: onEntryFocus , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , onFocusOutside: onFocusOutside , onInteractOutside: onInteractOutside , onDismiss: onDismiss , disableOutsideScroll: disableOutsideScroll , ...contentProps } = props;\n const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$CONTENT_NAME, __scopeMenu);\n const rootContext = $6cc32821e9371a1c$var$useMenuRootContext($6cc32821e9371a1c$var$CONTENT_NAME, __scopeMenu);\n const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);\n const rovingFocusGroupScope = $6cc32821e9371a1c$var$useRovingFocusGroupScope(__scopeMenu);\n const getItems = $6cc32821e9371a1c$var$useCollection(__scopeMenu);\n const [currentItemId, setCurrentItemId] = $epM9y$useState(null);\n const contentRef = $epM9y$useRef(null);\n const composedRefs = $epM9y$useComposedRefs(forwardedRef, contentRef, context.onContentChange);\n const timerRef = $epM9y$useRef(0);\n const searchRef = $epM9y$useRef('');\n const pointerGraceTimerRef = $epM9y$useRef(0);\n const pointerGraceIntentRef = $epM9y$useRef(null);\n const pointerDirRef = $epM9y$useRef('right');\n const lastPointerXRef = $epM9y$useRef(0);\n const ScrollLockWrapper = disableOutsideScroll ? $epM9y$RemoveScroll : $epM9y$Fragment;\n const scrollLockWrapperProps = disableOutsideScroll ? {\n as: $epM9y$Slot,\n allowPinchZoom: true\n } : undefined;\n const handleTypeaheadSearch = (key)=>{\n var _items$find, _items$find2;\n const search = searchRef.current + key;\n const items = getItems().filter((item)=>!item.disabled\n );\n const currentItem = document.activeElement;\n const currentMatch = (_items$find = items.find((item)=>item.ref.current === currentItem\n )) === null || _items$find === void 0 ? void 0 : _items$find.textValue;\n const values = items.map((item)=>item.textValue\n );\n const nextMatch = $6cc32821e9371a1c$var$getNextMatch(values, search, currentMatch);\n const newItem = (_items$find2 = items.find((item)=>item.textValue === nextMatch\n )) === null || _items$find2 === void 0 ? void 0 : _items$find2.ref.current; // Reset `searchRef` 1 second after it was last updated\n (function updateSearch(value) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current);\n if (value !== '') timerRef.current = window.setTimeout(()=>updateSearch('')\n , 1000);\n })(search);\n if (newItem) /**\n * Imperative focus during keydown is risky so we prevent React's batching updates\n * to avoid potential bugs. See: https://github.com/facebook/react/issues/20332\n */ setTimeout(()=>newItem.focus()\n );\n };\n $epM9y$useEffect(()=>{\n return ()=>window.clearTimeout(timerRef.current)\n ;\n }, []); // Make sure the whole tree has focus guards as our `MenuContent` may be\n // the last element in the DOM (beacuse of the `Portal`)\n $epM9y$useFocusGuards();\n const isPointerMovingToSubmenu = $epM9y$useCallback((event)=>{\n var _pointerGraceIntentRe, _pointerGraceIntentRe2;\n const isMovingTowards = pointerDirRef.current === ((_pointerGraceIntentRe = pointerGraceIntentRef.current) === null || _pointerGraceIntentRe === void 0 ? void 0 : _pointerGraceIntentRe.side);\n return isMovingTowards && $6cc32821e9371a1c$var$isPointerInGraceArea(event, (_pointerGraceIntentRe2 = pointerGraceIntentRef.current) === null || _pointerGraceIntentRe2 === void 0 ? void 0 : _pointerGraceIntentRe2.area);\n }, []);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuContentProvider, {\n scope: __scopeMenu,\n searchRef: searchRef,\n onItemEnter: $epM9y$useCallback((event)=>{\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n }, [\n isPointerMovingToSubmenu\n ]),\n onItemLeave: $epM9y$useCallback((event)=>{\n var _contentRef$current;\n if (isPointerMovingToSubmenu(event)) return;\n (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 || _contentRef$current.focus();\n setCurrentItemId(null);\n }, [\n isPointerMovingToSubmenu\n ]),\n onTriggerLeave: $epM9y$useCallback((event)=>{\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n }, [\n isPointerMovingToSubmenu\n ]),\n pointerGraceTimerRef: pointerGraceTimerRef,\n onPointerGraceIntentChange: $epM9y$useCallback((intent)=>{\n pointerGraceIntentRef.current = intent;\n }, [])\n }, /*#__PURE__*/ $epM9y$createElement(ScrollLockWrapper, scrollLockWrapperProps, /*#__PURE__*/ $epM9y$createElement($epM9y$FocusScope, {\n asChild: true,\n trapped: trapFocus,\n onMountAutoFocus: $epM9y$composeEventHandlers(onOpenAutoFocus, (event)=>{\n var _contentRef$current2;\n // when opening, explicitly focus the content area only and leave\n // `onEntryFocus` in control of focusing first item\n event.preventDefault();\n (_contentRef$current2 = contentRef.current) === null || _contentRef$current2 === void 0 || _contentRef$current2.focus();\n }),\n onUnmountAutoFocus: onCloseAutoFocus\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$DismissableLayer, {\n asChild: true,\n disableOutsidePointerEvents: disableOutsidePointerEvents,\n onEscapeKeyDown: onEscapeKeyDown,\n onPointerDownOutside: onPointerDownOutside,\n onFocusOutside: onFocusOutside,\n onInteractOutside: onInteractOutside,\n onDismiss: onDismiss\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$Root1, $epM9y$babelruntimehelpersesmextends({\n asChild: true\n }, rovingFocusGroupScope, {\n dir: rootContext.dir,\n orientation: \"vertical\",\n loop: loop,\n currentTabStopId: currentItemId,\n onCurrentTabStopIdChange: setCurrentItemId,\n onEntryFocus: $epM9y$composeEventHandlers(onEntryFocus, (event)=>{\n // only focus first item when using keyboard\n if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();\n })\n }), /*#__PURE__*/ $epM9y$createElement($epM9y$Content, $epM9y$babelruntimehelpersesmextends({\n role: \"menu\",\n \"aria-orientation\": \"vertical\",\n \"data-state\": $6cc32821e9371a1c$var$getOpenState(context.open),\n \"data-radix-menu-content\": \"\",\n dir: rootContext.dir\n }, popperScope, contentProps, {\n ref: composedRefs,\n style: {\n outline: 'none',\n ...contentProps.style\n },\n onKeyDown: $epM9y$composeEventHandlers(contentProps.onKeyDown, (event)=>{\n // submenu key events bubble through portals. We only care about keys in this menu.\n const target = event.target;\n const isKeyDownInside = target.closest('[data-radix-menu-content]') === event.currentTarget;\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n const isCharacterKey = event.key.length === 1;\n if (isKeyDownInside) {\n // menus should not be navigated using tab key so we prevent it\n if (event.key === 'Tab') event.preventDefault();\n if (!isModifierKey && isCharacterKey) handleTypeaheadSearch(event.key);\n } // focus first/last item based on key pressed\n const content = contentRef.current;\n if (event.target !== content) return;\n if (!$6cc32821e9371a1c$var$FIRST_LAST_KEYS.includes(event.key)) return;\n event.preventDefault();\n const items = getItems().filter((item)=>!item.disabled\n );\n const candidateNodes = items.map((item)=>item.ref.current\n );\n if ($6cc32821e9371a1c$var$LAST_KEYS.includes(event.key)) candidateNodes.reverse();\n $6cc32821e9371a1c$var$focusFirst(candidateNodes);\n }),\n onBlur: $epM9y$composeEventHandlers(props.onBlur, (event)=>{\n // clear search buffer when leaving the menu\n if (!event.currentTarget.contains(event.target)) {\n window.clearTimeout(timerRef.current);\n searchRef.current = '';\n }\n }),\n onPointerMove: $epM9y$composeEventHandlers(props.onPointerMove, $6cc32821e9371a1c$var$whenMouse((event)=>{\n const target = event.target;\n const pointerXHasChanged = lastPointerXRef.current !== event.clientX; // We don't use `event.movementX` for this check because Safari will\n // always return `0` on a pointer event.\n if (event.currentTarget.contains(target) && pointerXHasChanged) {\n const newDir = event.clientX > lastPointerXRef.current ? 'right' : 'left';\n pointerDirRef.current = newDir;\n lastPointerXRef.current = event.clientX;\n }\n }))\n })))))));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$479f0f2f71193efe, {\n displayName: $6cc32821e9371a1c$var$CONTENT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuGroup\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$GROUP_NAME = 'MenuGroup';\nconst $6cc32821e9371a1c$export$22a631d1f72787bb = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , ...groupProps } = props;\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Primitive.div, $epM9y$babelruntimehelpersesmextends({\n role: \"group\"\n }, groupProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$22a631d1f72787bb, {\n displayName: $6cc32821e9371a1c$var$GROUP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuLabel\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$LABEL_NAME = 'MenuLabel';\nconst $6cc32821e9371a1c$export$dd37bec0e8a99143 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , ...labelProps } = props;\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Primitive.div, $epM9y$babelruntimehelpersesmextends({}, labelProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$dd37bec0e8a99143, {\n displayName: $6cc32821e9371a1c$var$LABEL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuItem\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$ITEM_NAME = 'MenuItem';\nconst $6cc32821e9371a1c$var$ITEM_SELECT = 'menu.itemSelect';\nconst $6cc32821e9371a1c$export$2ce376c2cc3355c8 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { disabled: disabled = false , onSelect: onSelect , ...itemProps } = props;\n const ref = $epM9y$useRef(null);\n const rootContext = $6cc32821e9371a1c$var$useMenuRootContext($6cc32821e9371a1c$var$ITEM_NAME, props.__scopeMenu);\n const contentContext = $6cc32821e9371a1c$var$useMenuContentContext($6cc32821e9371a1c$var$ITEM_NAME, props.__scopeMenu);\n const composedRefs = $epM9y$useComposedRefs(forwardedRef, ref);\n const isPointerDownRef = $epM9y$useRef(false);\n const handleSelect = ()=>{\n const menuItem = ref.current;\n if (!disabled && menuItem) {\n const itemSelectEvent = new CustomEvent($6cc32821e9371a1c$var$ITEM_SELECT, {\n bubbles: true,\n cancelable: true\n });\n menuItem.addEventListener($6cc32821e9371a1c$var$ITEM_SELECT, (event)=>onSelect === null || onSelect === void 0 ? void 0 : onSelect(event)\n , {\n once: true\n });\n $epM9y$dispatchDiscreteCustomEvent(menuItem, itemSelectEvent);\n if (itemSelectEvent.defaultPrevented) isPointerDownRef.current = false;\n else rootContext.onClose();\n }\n };\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuItemImpl, $epM9y$babelruntimehelpersesmextends({}, itemProps, {\n ref: composedRefs,\n disabled: disabled,\n onClick: $epM9y$composeEventHandlers(props.onClick, handleSelect),\n onPointerDown: (event)=>{\n var _props$onPointerDown;\n (_props$onPointerDown = props.onPointerDown) === null || _props$onPointerDown === void 0 || _props$onPointerDown.call(props, event);\n isPointerDownRef.current = true;\n },\n onPointerUp: $epM9y$composeEventHandlers(props.onPointerUp, (event)=>{\n var _event$currentTarget;\n // Pointer down can move to a different menu item which should activate it on pointer up.\n // We dispatch a click for selection to allow composition with click based triggers and to\n // prevent Firefox from getting stuck in text selection mode when the menu closes.\n if (!isPointerDownRef.current) (_event$currentTarget = event.currentTarget) === null || _event$currentTarget === void 0 || _event$currentTarget.click();\n }),\n onKeyDown: $epM9y$composeEventHandlers(props.onKeyDown, (event)=>{\n const isTypingAhead = contentContext.searchRef.current !== '';\n if (disabled || isTypingAhead && event.key === ' ') return;\n if ($6cc32821e9371a1c$var$SELECTION_KEYS.includes(event.key)) {\n event.currentTarget.click();\n /**\n * We prevent default browser behaviour for selection keys as they should trigger\n * a selection only:\n * - prevents space from scrolling the page.\n * - if keydown causes focus to move, prevents keydown from firing on the new target.\n */ event.preventDefault();\n }\n })\n }));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$2ce376c2cc3355c8, {\n displayName: $6cc32821e9371a1c$var$ITEM_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ const $6cc32821e9371a1c$var$MenuItemImpl = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , disabled: disabled = false , textValue: textValue , ...itemProps } = props;\n const contentContext = $6cc32821e9371a1c$var$useMenuContentContext($6cc32821e9371a1c$var$ITEM_NAME, __scopeMenu);\n const rovingFocusGroupScope = $6cc32821e9371a1c$var$useRovingFocusGroupScope(__scopeMenu);\n const ref = $epM9y$useRef(null);\n const composedRefs = $epM9y$useComposedRefs(forwardedRef, ref);\n const [isFocused, setIsFocused] = $epM9y$useState(false); // get the item's `.textContent` as default strategy for typeahead `textValue`\n const [textContent, setTextContent] = $epM9y$useState('');\n $epM9y$useEffect(()=>{\n const menuItem = ref.current;\n if (menuItem) {\n var _menuItem$textContent;\n setTextContent(((_menuItem$textContent = menuItem.textContent) !== null && _menuItem$textContent !== void 0 ? _menuItem$textContent : '').trim());\n }\n }, [\n itemProps.children\n ]);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$Collection.ItemSlot, {\n scope: __scopeMenu,\n disabled: disabled,\n textValue: textValue !== null && textValue !== void 0 ? textValue : textContent\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$Item, $epM9y$babelruntimehelpersesmextends({\n asChild: true\n }, rovingFocusGroupScope, {\n focusable: !disabled\n }), /*#__PURE__*/ $epM9y$createElement($epM9y$Primitive.div, $epM9y$babelruntimehelpersesmextends({\n role: \"menuitem\",\n \"data-highlighted\": isFocused ? '' : undefined,\n \"aria-disabled\": disabled || undefined,\n \"data-disabled\": disabled ? '' : undefined\n }, itemProps, {\n ref: composedRefs,\n onPointerMove: $epM9y$composeEventHandlers(props.onPointerMove, $6cc32821e9371a1c$var$whenMouse((event)=>{\n if (disabled) contentContext.onItemLeave(event);\n else {\n contentContext.onItemEnter(event);\n if (!event.defaultPrevented) {\n const item = event.currentTarget;\n item.focus();\n }\n }\n })),\n onPointerLeave: $epM9y$composeEventHandlers(props.onPointerLeave, $6cc32821e9371a1c$var$whenMouse((event)=>contentContext.onItemLeave(event)\n )),\n onFocus: $epM9y$composeEventHandlers(props.onFocus, ()=>setIsFocused(true)\n ),\n onBlur: $epM9y$composeEventHandlers(props.onBlur, ()=>setIsFocused(false)\n )\n }))));\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuCheckboxItem\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$CHECKBOX_ITEM_NAME = 'MenuCheckboxItem';\nconst $6cc32821e9371a1c$export$f6f243521332502d = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { checked: checked = false , onCheckedChange: onCheckedChange , ...checkboxItemProps } = props;\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$ItemIndicatorProvider, {\n scope: props.__scopeMenu,\n checked: checked\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, $epM9y$babelruntimehelpersesmextends({\n role: \"menuitemcheckbox\",\n \"aria-checked\": $6cc32821e9371a1c$var$isIndeterminate(checked) ? 'mixed' : checked\n }, checkboxItemProps, {\n ref: forwardedRef,\n \"data-state\": $6cc32821e9371a1c$var$getCheckedState(checked),\n onSelect: $epM9y$composeEventHandlers(checkboxItemProps.onSelect, ()=>onCheckedChange === null || onCheckedChange === void 0 ? void 0 : onCheckedChange($6cc32821e9371a1c$var$isIndeterminate(checked) ? true : !checked)\n , {\n checkForDefaultPrevented: false\n })\n })));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$f6f243521332502d, {\n displayName: $6cc32821e9371a1c$var$CHECKBOX_ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuRadioGroup\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$RADIO_GROUP_NAME = 'MenuRadioGroup';\nconst [$6cc32821e9371a1c$var$RadioGroupProvider, $6cc32821e9371a1c$var$useRadioGroupContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$RADIO_GROUP_NAME, {\n value: undefined,\n onValueChange: ()=>{}\n});\nconst $6cc32821e9371a1c$export$ea2200c9eee416b3 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { value: value , onValueChange: onValueChange , ...groupProps } = props;\n const handleValueChange = $epM9y$useCallbackRef(onValueChange);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$RadioGroupProvider, {\n scope: props.__scopeMenu,\n value: value,\n onValueChange: handleValueChange\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$export$22a631d1f72787bb, $epM9y$babelruntimehelpersesmextends({}, groupProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$ea2200c9eee416b3, {\n displayName: $6cc32821e9371a1c$var$RADIO_GROUP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuRadioItem\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$RADIO_ITEM_NAME = 'MenuRadioItem';\nconst $6cc32821e9371a1c$export$69bd225e9817f6d0 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { value: value , ...radioItemProps } = props;\n const context = $6cc32821e9371a1c$var$useRadioGroupContext($6cc32821e9371a1c$var$RADIO_ITEM_NAME, props.__scopeMenu);\n const checked = value === context.value;\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$ItemIndicatorProvider, {\n scope: props.__scopeMenu,\n checked: checked\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, $epM9y$babelruntimehelpersesmextends({\n role: \"menuitemradio\",\n \"aria-checked\": checked\n }, radioItemProps, {\n ref: forwardedRef,\n \"data-state\": $6cc32821e9371a1c$var$getCheckedState(checked),\n onSelect: $epM9y$composeEventHandlers(radioItemProps.onSelect, ()=>{\n var _context$onValueChang;\n return (_context$onValueChang = context.onValueChange) === null || _context$onValueChang === void 0 ? void 0 : _context$onValueChang.call(context, value);\n }, {\n checkForDefaultPrevented: false\n })\n })));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$69bd225e9817f6d0, {\n displayName: $6cc32821e9371a1c$var$RADIO_ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuItemIndicator\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$ITEM_INDICATOR_NAME = 'MenuItemIndicator';\nconst [$6cc32821e9371a1c$var$ItemIndicatorProvider, $6cc32821e9371a1c$var$useItemIndicatorContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$ITEM_INDICATOR_NAME, {\n checked: false\n});\nconst $6cc32821e9371a1c$export$a2593e23056970a3 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , forceMount: forceMount , ...itemIndicatorProps } = props;\n const indicatorContext = $6cc32821e9371a1c$var$useItemIndicatorContext($6cc32821e9371a1c$var$ITEM_INDICATOR_NAME, __scopeMenu);\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Presence, {\n present: forceMount || $6cc32821e9371a1c$var$isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$Primitive.span, $epM9y$babelruntimehelpersesmextends({}, itemIndicatorProps, {\n ref: forwardedRef,\n \"data-state\": $6cc32821e9371a1c$var$getCheckedState(indicatorContext.checked)\n })));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$a2593e23056970a3, {\n displayName: $6cc32821e9371a1c$var$ITEM_INDICATOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuSeparator\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$SEPARATOR_NAME = 'MenuSeparator';\nconst $6cc32821e9371a1c$export$1cec7dcdd713e220 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , ...separatorProps } = props;\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Primitive.div, $epM9y$babelruntimehelpersesmextends({\n role: \"separator\",\n \"aria-orientation\": \"horizontal\"\n }, separatorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$1cec7dcdd713e220, {\n displayName: $6cc32821e9371a1c$var$SEPARATOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuArrow\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$ARROW_NAME = 'MenuArrow';\nconst $6cc32821e9371a1c$export$bcdda4773debf5fa = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , ...arrowProps } = props;\n const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Arrow, $epM9y$babelruntimehelpersesmextends({}, popperScope, arrowProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$bcdda4773debf5fa, {\n displayName: $6cc32821e9371a1c$var$ARROW_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuSub\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$SUB_NAME = 'MenuSub';\nconst [$6cc32821e9371a1c$var$MenuSubProvider, $6cc32821e9371a1c$var$useMenuSubContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$SUB_NAME);\nconst $6cc32821e9371a1c$export$71bdb9d1e2909932 = (props)=>{\n const { __scopeMenu: __scopeMenu , children: children , open: open = false , onOpenChange: onOpenChange } = props;\n const parentMenuContext = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$SUB_NAME, __scopeMenu);\n const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);\n const [trigger, setTrigger] = $epM9y$useState(null);\n const [content, setContent] = $epM9y$useState(null);\n const handleOpenChange = $epM9y$useCallbackRef(onOpenChange); // Prevent the parent menu from reopening with open submenus.\n $epM9y$useEffect(()=>{\n if (parentMenuContext.open === false) handleOpenChange(false);\n return ()=>handleOpenChange(false)\n ;\n }, [\n parentMenuContext.open,\n handleOpenChange\n ]);\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Root, popperScope, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuProvider, {\n scope: __scopeMenu,\n open: open,\n onOpenChange: handleOpenChange,\n content: content,\n onContentChange: setContent\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuSubProvider, {\n scope: __scopeMenu,\n contentId: $epM9y$useId(),\n triggerId: $epM9y$useId(),\n trigger: trigger,\n onTriggerChange: setTrigger\n }, children)));\n};\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$71bdb9d1e2909932, {\n displayName: $6cc32821e9371a1c$var$SUB_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuSubTrigger\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$SUB_TRIGGER_NAME = 'MenuSubTrigger';\nconst $6cc32821e9371a1c$export$5fbbb3ba7297405f = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$SUB_TRIGGER_NAME, props.__scopeMenu);\n const rootContext = $6cc32821e9371a1c$var$useMenuRootContext($6cc32821e9371a1c$var$SUB_TRIGGER_NAME, props.__scopeMenu);\n const subContext = $6cc32821e9371a1c$var$useMenuSubContext($6cc32821e9371a1c$var$SUB_TRIGGER_NAME, props.__scopeMenu);\n const contentContext = $6cc32821e9371a1c$var$useMenuContentContext($6cc32821e9371a1c$var$SUB_TRIGGER_NAME, props.__scopeMenu);\n const openTimerRef = $epM9y$useRef(null);\n const { pointerGraceTimerRef: pointerGraceTimerRef , onPointerGraceIntentChange: onPointerGraceIntentChange } = contentContext;\n const scope = {\n __scopeMenu: props.__scopeMenu\n };\n const clearOpenTimer = $epM9y$useCallback(()=>{\n if (openTimerRef.current) window.clearTimeout(openTimerRef.current);\n openTimerRef.current = null;\n }, []);\n $epM9y$useEffect(()=>clearOpenTimer\n , [\n clearOpenTimer\n ]);\n $epM9y$useEffect(()=>{\n const pointerGraceTimer = pointerGraceTimerRef.current;\n return ()=>{\n window.clearTimeout(pointerGraceTimer);\n onPointerGraceIntentChange(null);\n };\n }, [\n pointerGraceTimerRef,\n onPointerGraceIntentChange\n ]);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$export$9fa5ebd18bee4d43, $epM9y$babelruntimehelpersesmextends({\n asChild: true\n }, scope), /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuItemImpl, $epM9y$babelruntimehelpersesmextends({\n id: subContext.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": subContext.contentId,\n \"data-state\": $6cc32821e9371a1c$var$getOpenState(context.open)\n }, props, {\n ref: $epM9y$composeRefs(forwardedRef, subContext.onTriggerChange) // This is redundant for mouse users but we cannot determine pointer type from\n ,\n onClick: (event)=>{\n var _props$onClick;\n (_props$onClick = props.onClick) === null || _props$onClick === void 0 || _props$onClick.call(props, event);\n if (props.disabled || event.defaultPrevented) return;\n /**\n * We manually focus because iOS Safari doesn't always focus on click (e.g. buttons)\n * and we rely heavily on `onFocusOutside` for submenus to close when switching\n * between separate submenus.\n */ event.currentTarget.focus();\n if (!context.open) context.onOpenChange(true);\n },\n onPointerMove: $epM9y$composeEventHandlers(props.onPointerMove, $6cc32821e9371a1c$var$whenMouse((event)=>{\n contentContext.onItemEnter(event);\n if (event.defaultPrevented) return;\n if (!props.disabled && !context.open && !openTimerRef.current) {\n contentContext.onPointerGraceIntentChange(null);\n openTimerRef.current = window.setTimeout(()=>{\n context.onOpenChange(true);\n clearOpenTimer();\n }, 100);\n }\n })),\n onPointerLeave: $epM9y$composeEventHandlers(props.onPointerLeave, $6cc32821e9371a1c$var$whenMouse((event)=>{\n var _context$content;\n clearOpenTimer();\n const contentRect = (_context$content = context.content) === null || _context$content === void 0 ? void 0 : _context$content.getBoundingClientRect();\n if (contentRect) {\n var _context$content2;\n // TODO: make sure to update this when we change positioning logic\n const side = (_context$content2 = context.content) === null || _context$content2 === void 0 ? void 0 : _context$content2.dataset.side;\n const rightSide = side === 'right';\n const bleed = rightSide ? -5 : 5;\n const contentNearEdge = contentRect[rightSide ? 'left' : 'right'];\n const contentFarEdge = contentRect[rightSide ? 'right' : 'left'];\n contentContext.onPointerGraceIntentChange({\n area: [\n // consistently within polygon bounds\n {\n x: event.clientX + bleed,\n y: event.clientY\n },\n {\n x: contentNearEdge,\n y: contentRect.top\n },\n {\n x: contentFarEdge,\n y: contentRect.top\n },\n {\n x: contentFarEdge,\n y: contentRect.bottom\n },\n {\n x: contentNearEdge,\n y: contentRect.bottom\n }\n ],\n side: side\n });\n window.clearTimeout(pointerGraceTimerRef.current);\n pointerGraceTimerRef.current = window.setTimeout(()=>contentContext.onPointerGraceIntentChange(null)\n , 300);\n } else {\n contentContext.onTriggerLeave(event);\n if (event.defaultPrevented) return; // There's 100ms where the user may leave an item before the submenu was opened.\n contentContext.onPointerGraceIntentChange(null);\n }\n })),\n onKeyDown: $epM9y$composeEventHandlers(props.onKeyDown, (event)=>{\n const isTypingAhead = contentContext.searchRef.current !== '';\n if (props.disabled || isTypingAhead && event.key === ' ') return;\n if ($6cc32821e9371a1c$var$SUB_OPEN_KEYS[rootContext.dir].includes(event.key)) {\n var _context$content3;\n context.onOpenChange(true); // The trigger may hold focus if opened via pointer interaction\n // so we ensure content is given focus again when switching to keyboard.\n (_context$content3 = context.content) === null || _context$content3 === void 0 || _context$content3.focus(); // prevent window from scrolling\n event.preventDefault();\n }\n })\n })));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$5fbbb3ba7297405f, {\n displayName: $6cc32821e9371a1c$var$SUB_TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuSubContent\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$SUB_CONTENT_NAME = 'MenuSubContent';\nconst $6cc32821e9371a1c$export$e7142ab31822bde6 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const portalContext = $6cc32821e9371a1c$var$usePortalContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n const { forceMount: forceMount = portalContext.forceMount , ...subContentProps } = props;\n const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n const rootContext = $6cc32821e9371a1c$var$useMenuRootContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n const subContext = $6cc32821e9371a1c$var$useMenuSubContext($6cc32821e9371a1c$var$SUB_CONTENT_NAME, props.__scopeMenu);\n const ref = $epM9y$useRef(null);\n const composedRefs = $epM9y$useComposedRefs(forwardedRef, ref);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$Collection.Provider, {\n scope: props.__scopeMenu\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$Collection.Slot, {\n scope: props.__scopeMenu\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuContentImpl, $epM9y$babelruntimehelpersesmextends({\n id: subContext.contentId,\n \"aria-labelledby\": subContext.triggerId\n }, subContentProps, {\n ref: composedRefs,\n align: \"start\",\n side: rootContext.dir === 'rtl' ? 'left' : 'right',\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n trapFocus: false,\n onOpenAutoFocus: (event)=>{\n var _ref$current;\n // when opening a submenu, focus content for keyboard users only\n if (rootContext.isUsingKeyboardRef.current) (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.focus();\n event.preventDefault();\n } // The menu might close because of focusing another menu item in the parent menu. We\n ,\n onCloseAutoFocus: (event)=>event.preventDefault()\n ,\n onFocusOutside: $epM9y$composeEventHandlers(props.onFocusOutside, (event)=>{\n // We prevent closing when the trigger is focused to avoid triggering a re-open animation\n // on pointer interaction.\n if (event.target !== subContext.trigger) context.onOpenChange(false);\n }),\n onEscapeKeyDown: $epM9y$composeEventHandlers(props.onEscapeKeyDown, (event)=>{\n rootContext.onClose(); // ensure pressing escape in submenu doesn't escape full screen mode\n event.preventDefault();\n }),\n onKeyDown: $epM9y$composeEventHandlers(props.onKeyDown, (event)=>{\n // Submenu key events bubble through portals. We only care about keys in this menu.\n const isKeyDownInside = event.currentTarget.contains(event.target);\n const isCloseKey = $6cc32821e9371a1c$var$SUB_CLOSE_KEYS[rootContext.dir].includes(event.key);\n if (isKeyDownInside && isCloseKey) {\n var _subContext$trigger;\n context.onOpenChange(false); // We focus manually because we prevented it in `onCloseAutoFocus`\n (_subContext$trigger = subContext.trigger) === null || _subContext$trigger === void 0 || _subContext$trigger.focus(); // prevent window from scrolling\n event.preventDefault();\n }\n })\n })))));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$e7142ab31822bde6, {\n displayName: $6cc32821e9371a1c$var$SUB_CONTENT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $6cc32821e9371a1c$var$getOpenState(open) {\n return open ? 'open' : 'closed';\n}\nfunction $6cc32821e9371a1c$var$isIndeterminate(checked) {\n return checked === 'indeterminate';\n}\nfunction $6cc32821e9371a1c$var$getCheckedState(checked) {\n return $6cc32821e9371a1c$var$isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';\n}\nfunction $6cc32821e9371a1c$var$focusFirst(candidates) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates){\n // if focus is already where we want to go, we don't want to keep going through the candidates\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\n/**\n * Wraps an array around itself at a given start index\n * Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`\n */ function $6cc32821e9371a1c$var$wrapArray(array, startIndex) {\n return array.map((_, index)=>array[(startIndex + index) % array.length]\n );\n}\n/**\n * This is the \"meat\" of the typeahead matching logic. It takes in all the values,\n * the search and the current match, and returns the next match (or `undefined`).\n *\n * We normalize the search because if a user has repeatedly pressed a character,\n * we want the exact same behavior as if we only had that one character\n * (ie. cycle through options starting with that character)\n *\n * We also reorder the values by wrapping the array around the current match.\n * This is so we always look forward from the current match, and picking the first\n * match will always be the correct one.\n *\n * Finally, if the normalized search is exactly one character, we exclude the\n * current match from the values because otherwise it would be the first to match always\n * and focus would never move. This is as opposed to the regular case, where we\n * don't want focus to move if the current match still matches.\n */ function $6cc32821e9371a1c$var$getNextMatch(values, search, currentMatch) {\n const isRepeated = search.length > 1 && Array.from(search).every((char)=>char === search[0]\n );\n const normalizedSearch = isRepeated ? search[0] : search;\n const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;\n let wrappedValues = $6cc32821e9371a1c$var$wrapArray(values, Math.max(currentMatchIndex, 0));\n const excludeCurrentMatch = normalizedSearch.length === 1;\n if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v)=>v !== currentMatch\n );\n const nextMatch = wrappedValues.find((value)=>value.toLowerCase().startsWith(normalizedSearch.toLowerCase())\n );\n return nextMatch !== currentMatch ? nextMatch : undefined;\n}\n// Determine if a point is inside of a polygon.\n// Based on https://github.com/substack/point-in-polygon\nfunction $6cc32821e9371a1c$var$isPointInPolygon(point, polygon) {\n const { x: x , y: y } = point;\n let inside = false;\n for(let i = 0, j = polygon.length - 1; i < polygon.length; j = i++){\n const xi = polygon[i].x;\n const yi = polygon[i].y;\n const xj = polygon[j].x;\n const yj = polygon[j].y; // prettier-ignore\n const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n return inside;\n}\nfunction $6cc32821e9371a1c$var$isPointerInGraceArea(event, area) {\n if (!area) return false;\n const cursorPos = {\n x: event.clientX,\n y: event.clientY\n };\n return $6cc32821e9371a1c$var$isPointInPolygon(cursorPos, area);\n}\nfunction $6cc32821e9371a1c$var$whenMouse(handler) {\n return (event)=>event.pointerType === 'mouse' ? handler(event) : undefined\n ;\n}\nconst $6cc32821e9371a1c$export$be92b6f5f03c0fe9 = $6cc32821e9371a1c$export$d9b273488cd8ce6f;\nconst $6cc32821e9371a1c$export$b688253958b8dfe7 = $6cc32821e9371a1c$export$9fa5ebd18bee4d43;\nconst $6cc32821e9371a1c$export$602eac185826482c = $6cc32821e9371a1c$export$793392f970497feb;\nconst $6cc32821e9371a1c$export$7c6e2c02157bb7d2 = $6cc32821e9371a1c$export$479f0f2f71193efe;\nconst $6cc32821e9371a1c$export$eb2fcfdbd7ba97d4 = $6cc32821e9371a1c$export$22a631d1f72787bb;\nconst $6cc32821e9371a1c$export$b04be29aa201d4f5 = $6cc32821e9371a1c$export$dd37bec0e8a99143;\nconst $6cc32821e9371a1c$export$6d08773d2e66f8f2 = $6cc32821e9371a1c$export$2ce376c2cc3355c8;\nconst $6cc32821e9371a1c$export$16ce288f89fa631c = $6cc32821e9371a1c$export$f6f243521332502d;\nconst $6cc32821e9371a1c$export$a98f0dcb43a68a25 = $6cc32821e9371a1c$export$ea2200c9eee416b3;\nconst $6cc32821e9371a1c$export$371ab307eab489c0 = $6cc32821e9371a1c$export$69bd225e9817f6d0;\nconst $6cc32821e9371a1c$export$c3468e2714d175fa = $6cc32821e9371a1c$export$a2593e23056970a3;\nconst $6cc32821e9371a1c$export$1ff3c3f08ae963c0 = $6cc32821e9371a1c$export$1cec7dcdd713e220;\nconst $6cc32821e9371a1c$export$21b07c8f274aebd5 = $6cc32821e9371a1c$export$bcdda4773debf5fa;\nconst $6cc32821e9371a1c$export$d7a01e11500dfb6f = $6cc32821e9371a1c$export$71bdb9d1e2909932;\nconst $6cc32821e9371a1c$export$2ea8a7a591ac5eac = $6cc32821e9371a1c$export$5fbbb3ba7297405f;\nconst $6cc32821e9371a1c$export$6d4de93b380beddf = $6cc32821e9371a1c$export$e7142ab31822bde6;\n\n\n\n\nexport {$6cc32821e9371a1c$export$4027731b685e72eb as createMenuScope, $6cc32821e9371a1c$export$d9b273488cd8ce6f as Menu, $6cc32821e9371a1c$export$9fa5ebd18bee4d43 as MenuAnchor, $6cc32821e9371a1c$export$793392f970497feb as MenuPortal, $6cc32821e9371a1c$export$479f0f2f71193efe as MenuContent, $6cc32821e9371a1c$export$22a631d1f72787bb as MenuGroup, $6cc32821e9371a1c$export$dd37bec0e8a99143 as MenuLabel, $6cc32821e9371a1c$export$2ce376c2cc3355c8 as MenuItem, $6cc32821e9371a1c$export$f6f243521332502d as MenuCheckboxItem, $6cc32821e9371a1c$export$ea2200c9eee416b3 as MenuRadioGroup, $6cc32821e9371a1c$export$69bd225e9817f6d0 as MenuRadioItem, $6cc32821e9371a1c$export$a2593e23056970a3 as MenuItemIndicator, $6cc32821e9371a1c$export$1cec7dcdd713e220 as MenuSeparator, $6cc32821e9371a1c$export$bcdda4773debf5fa as MenuArrow, $6cc32821e9371a1c$export$71bdb9d1e2909932 as MenuSub, $6cc32821e9371a1c$export$5fbbb3ba7297405f as MenuSubTrigger, $6cc32821e9371a1c$export$e7142ab31822bde6 as MenuSubContent, $6cc32821e9371a1c$export$be92b6f5f03c0fe9 as Root, $6cc32821e9371a1c$export$b688253958b8dfe7 as Anchor, $6cc32821e9371a1c$export$602eac185826482c as Portal, $6cc32821e9371a1c$export$7c6e2c02157bb7d2 as Content, $6cc32821e9371a1c$export$eb2fcfdbd7ba97d4 as Group, $6cc32821e9371a1c$export$b04be29aa201d4f5 as Label, $6cc32821e9371a1c$export$6d08773d2e66f8f2 as Item, $6cc32821e9371a1c$export$16ce288f89fa631c as CheckboxItem, $6cc32821e9371a1c$export$a98f0dcb43a68a25 as RadioGroup, $6cc32821e9371a1c$export$371ab307eab489c0 as RadioItem, $6cc32821e9371a1c$export$c3468e2714d175fa as ItemIndicator, $6cc32821e9371a1c$export$1ff3c3f08ae963c0 as Separator, $6cc32821e9371a1c$export$21b07c8f274aebd5 as Arrow, $6cc32821e9371a1c$export$d7a01e11500dfb6f as Sub, $6cc32821e9371a1c$export$2ea8a7a591ac5eac as SubTrigger, $6cc32821e9371a1c$export$6d4de93b380beddf as SubContent};\n","import $9kmUS$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useRef as $9kmUS$useRef, createElement as $9kmUS$createElement, useCallback as $9kmUS$useCallback, forwardRef as $9kmUS$forwardRef} from \"react\";\nimport {composeEventHandlers as $9kmUS$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {composeRefs as $9kmUS$composeRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $9kmUS$createContextScope} from \"@radix-ui/react-context\";\nimport {useControllableState as $9kmUS$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {Primitive as $9kmUS$Primitive} from \"@radix-ui/react-primitive\";\nimport {createMenuScope as $9kmUS$createMenuScope, Root as $9kmUS$Root, Anchor as $9kmUS$Anchor, Portal as $9kmUS$Portal, Content as $9kmUS$Content, Group as $9kmUS$Group, Label as $9kmUS$Label, Item as $9kmUS$Item, CheckboxItem as $9kmUS$CheckboxItem, RadioGroup as $9kmUS$RadioGroup, RadioItem as $9kmUS$RadioItem, ItemIndicator as $9kmUS$ItemIndicator, Separator as $9kmUS$Separator, Arrow as $9kmUS$Arrow, Sub as $9kmUS$Sub, SubTrigger as $9kmUS$SubTrigger, SubContent as $9kmUS$SubContent} from \"@radix-ui/react-menu\";\nimport {useId as $9kmUS$useId} from \"@radix-ui/react-id\";\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenu\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$DROPDOWN_MENU_NAME = 'DropdownMenu';\nconst [$d08ef79370b62062$var$createDropdownMenuContext, $d08ef79370b62062$export$c0623cd925aeb687] = $9kmUS$createContextScope($d08ef79370b62062$var$DROPDOWN_MENU_NAME, [\n $9kmUS$createMenuScope\n]);\nconst $d08ef79370b62062$var$useMenuScope = $9kmUS$createMenuScope();\nconst [$d08ef79370b62062$var$DropdownMenuProvider, $d08ef79370b62062$var$useDropdownMenuContext] = $d08ef79370b62062$var$createDropdownMenuContext($d08ef79370b62062$var$DROPDOWN_MENU_NAME);\nconst $d08ef79370b62062$export$e44a253a59704894 = (props)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , children: children , dir: dir , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , modal: modal = true } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n const triggerRef = $9kmUS$useRef(null);\n const [open = false, setOpen] = $9kmUS$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /*#__PURE__*/ $9kmUS$createElement($d08ef79370b62062$var$DropdownMenuProvider, {\n scope: __scopeDropdownMenu,\n triggerId: $9kmUS$useId(),\n triggerRef: triggerRef,\n contentId: $9kmUS$useId(),\n open: open,\n onOpenChange: setOpen,\n onOpenToggle: $9kmUS$useCallback(()=>setOpen((prevOpen)=>!prevOpen\n )\n , [\n setOpen\n ]),\n modal: modal\n }, /*#__PURE__*/ $9kmUS$createElement($9kmUS$Root, $9kmUS$babelruntimehelpersesmextends({}, menuScope, {\n open: open,\n onOpenChange: setOpen,\n dir: dir,\n modal: modal\n }), children));\n};\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$e44a253a59704894, {\n displayName: $d08ef79370b62062$var$DROPDOWN_MENU_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuTrigger\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$TRIGGER_NAME = 'DropdownMenuTrigger';\nconst $d08ef79370b62062$export$d2469213b3befba9 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , disabled: disabled = false , ...triggerProps } = props;\n const context = $d08ef79370b62062$var$useDropdownMenuContext($d08ef79370b62062$var$TRIGGER_NAME, __scopeDropdownMenu);\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Anchor, $9kmUS$babelruntimehelpersesmextends({\n asChild: true\n }, menuScope), /*#__PURE__*/ $9kmUS$createElement($9kmUS$Primitive.button, $9kmUS$babelruntimehelpersesmextends({\n type: \"button\",\n id: context.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.open ? context.contentId : undefined,\n \"data-state\": context.open ? 'open' : 'closed',\n \"data-disabled\": disabled ? '' : undefined,\n disabled: disabled\n }, triggerProps, {\n ref: $9kmUS$composeRefs(forwardedRef, context.triggerRef),\n onPointerDown: $9kmUS$composeEventHandlers(props.onPointerDown, (event)=>{\n // only call handler if it's the left button (mousedown gets triggered by all mouse buttons)\n // but not when the control key is pressed (avoiding MacOS right click)\n if (!disabled && event.button === 0 && event.ctrlKey === false) {\n context.onOpenToggle(); // prevent trigger focusing when opening\n // this allows the content to be given focus without competition\n if (!context.open) event.preventDefault();\n }\n }),\n onKeyDown: $9kmUS$composeEventHandlers(props.onKeyDown, (event)=>{\n if (disabled) return;\n if ([\n 'Enter',\n ' '\n ].includes(event.key)) context.onOpenToggle();\n if (event.key === 'ArrowDown') context.onOpenChange(true); // prevent keydown from scrolling window / first focused item to execute\n // that keydown (inadvertently closing the menu)\n if ([\n 'Enter',\n ' ',\n 'ArrowDown'\n ].includes(event.key)) event.preventDefault();\n })\n })));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$d2469213b3befba9, {\n displayName: $d08ef79370b62062$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuPortal\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$PORTAL_NAME = 'DropdownMenuPortal';\nconst $d08ef79370b62062$export$cd369b4d4d54efc9 = (props)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...portalProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Portal, $9kmUS$babelruntimehelpersesmextends({}, menuScope, portalProps));\n};\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$cd369b4d4d54efc9, {\n displayName: $d08ef79370b62062$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuContent\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$CONTENT_NAME = 'DropdownMenuContent';\nconst $d08ef79370b62062$export$6e76d93a37c01248 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...contentProps } = props;\n const context = $d08ef79370b62062$var$useDropdownMenuContext($d08ef79370b62062$var$CONTENT_NAME, __scopeDropdownMenu);\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n const hasInteractedOutsideRef = $9kmUS$useRef(false);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Content, $9kmUS$babelruntimehelpersesmextends({\n id: context.contentId,\n \"aria-labelledby\": context.triggerId\n }, menuScope, contentProps, {\n ref: forwardedRef,\n onCloseAutoFocus: $9kmUS$composeEventHandlers(props.onCloseAutoFocus, (event)=>{\n var _context$triggerRef$c;\n if (!hasInteractedOutsideRef.current) (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();\n hasInteractedOutsideRef.current = false; // Always prevent auto focus because we either focus manually or want user agent focus\n event.preventDefault();\n }),\n onInteractOutside: $9kmUS$composeEventHandlers(props.onInteractOutside, (event)=>{\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;\n }),\n style: {\n ...props.style,\n '--radix-dropdown-menu-content-transform-origin': 'var(--radix-popper-transform-origin)',\n '--radix-dropdown-menu-content-available-width': 'var(--radix-popper-available-width)',\n '--radix-dropdown-menu-content-available-height': 'var(--radix-popper-available-height)',\n '--radix-dropdown-menu-trigger-width': 'var(--radix-popper-anchor-width)',\n '--radix-dropdown-menu-trigger-height': 'var(--radix-popper-anchor-height)'\n }\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$6e76d93a37c01248, {\n displayName: $d08ef79370b62062$var$CONTENT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuGroup\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$GROUP_NAME = 'DropdownMenuGroup';\nconst $d08ef79370b62062$export$246bebaba3a2f70e = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...groupProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Group, $9kmUS$babelruntimehelpersesmextends({}, menuScope, groupProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$246bebaba3a2f70e, {\n displayName: $d08ef79370b62062$var$GROUP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuLabel\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$LABEL_NAME = 'DropdownMenuLabel';\nconst $d08ef79370b62062$export$76e48c5b57f24495 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...labelProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Label, $9kmUS$babelruntimehelpersesmextends({}, menuScope, labelProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$76e48c5b57f24495, {\n displayName: $d08ef79370b62062$var$LABEL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuItem\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$ITEM_NAME = 'DropdownMenuItem';\nconst $d08ef79370b62062$export$ed97964d1871885d = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...itemProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Item, $9kmUS$babelruntimehelpersesmextends({}, menuScope, itemProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$ed97964d1871885d, {\n displayName: $d08ef79370b62062$var$ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuCheckboxItem\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$CHECKBOX_ITEM_NAME = 'DropdownMenuCheckboxItem';\nconst $d08ef79370b62062$export$53a69729da201fa9 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...checkboxItemProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$CheckboxItem, $9kmUS$babelruntimehelpersesmextends({}, menuScope, checkboxItemProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$53a69729da201fa9, {\n displayName: $d08ef79370b62062$var$CHECKBOX_ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuRadioGroup\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$RADIO_GROUP_NAME = 'DropdownMenuRadioGroup';\nconst $d08ef79370b62062$export$3323ad73d55f587e = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...radioGroupProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$RadioGroup, $9kmUS$babelruntimehelpersesmextends({}, menuScope, radioGroupProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$3323ad73d55f587e, {\n displayName: $d08ef79370b62062$var$RADIO_GROUP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuRadioItem\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$RADIO_ITEM_NAME = 'DropdownMenuRadioItem';\nconst $d08ef79370b62062$export$e4f69b41b1637536 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...radioItemProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$RadioItem, $9kmUS$babelruntimehelpersesmextends({}, menuScope, radioItemProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$e4f69b41b1637536, {\n displayName: $d08ef79370b62062$var$RADIO_ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuItemIndicator\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$INDICATOR_NAME = 'DropdownMenuItemIndicator';\nconst $d08ef79370b62062$export$42355ae145153fb6 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...itemIndicatorProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$ItemIndicator, $9kmUS$babelruntimehelpersesmextends({}, menuScope, itemIndicatorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$42355ae145153fb6, {\n displayName: $d08ef79370b62062$var$INDICATOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuSeparator\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$SEPARATOR_NAME = 'DropdownMenuSeparator';\nconst $d08ef79370b62062$export$da160178fd3bc7e9 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...separatorProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Separator, $9kmUS$babelruntimehelpersesmextends({}, menuScope, separatorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$da160178fd3bc7e9, {\n displayName: $d08ef79370b62062$var$SEPARATOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuArrow\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$ARROW_NAME = 'DropdownMenuArrow';\nconst $d08ef79370b62062$export$34b8980744021ec5 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...arrowProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Arrow, $9kmUS$babelruntimehelpersesmextends({}, menuScope, arrowProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$34b8980744021ec5, {\n displayName: $d08ef79370b62062$var$ARROW_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuSub\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$export$2f307d81a64f5442 = (props)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , children: children , open: openProp , onOpenChange: onOpenChange , defaultOpen: defaultOpen } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n const [open = false, setOpen] = $9kmUS$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Sub, $9kmUS$babelruntimehelpersesmextends({}, menuScope, {\n open: open,\n onOpenChange: setOpen\n }), children);\n};\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuSubTrigger\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$SUB_TRIGGER_NAME = 'DropdownMenuSubTrigger';\nconst $d08ef79370b62062$export$21dcb7ec56f874cf = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...subTriggerProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$SubTrigger, $9kmUS$babelruntimehelpersesmextends({}, menuScope, subTriggerProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$21dcb7ec56f874cf, {\n displayName: $d08ef79370b62062$var$SUB_TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuSubContent\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$SUB_CONTENT_NAME = 'DropdownMenuSubContent';\nconst $d08ef79370b62062$export$f34ec8bc2482cc5f = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...subContentProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$SubContent, $9kmUS$babelruntimehelpersesmextends({}, menuScope, subContentProps, {\n ref: forwardedRef,\n style: {\n ...props.style,\n '--radix-dropdown-menu-content-transform-origin': 'var(--radix-popper-transform-origin)',\n '--radix-dropdown-menu-content-available-width': 'var(--radix-popper-available-width)',\n '--radix-dropdown-menu-content-available-height': 'var(--radix-popper-available-height)',\n '--radix-dropdown-menu-trigger-width': 'var(--radix-popper-anchor-width)',\n '--radix-dropdown-menu-trigger-height': 'var(--radix-popper-anchor-height)'\n }\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$f34ec8bc2482cc5f, {\n displayName: $d08ef79370b62062$var$SUB_CONTENT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$export$be92b6f5f03c0fe9 = $d08ef79370b62062$export$e44a253a59704894;\nconst $d08ef79370b62062$export$41fb9f06171c75f4 = $d08ef79370b62062$export$d2469213b3befba9;\nconst $d08ef79370b62062$export$602eac185826482c = $d08ef79370b62062$export$cd369b4d4d54efc9;\nconst $d08ef79370b62062$export$7c6e2c02157bb7d2 = $d08ef79370b62062$export$6e76d93a37c01248;\nconst $d08ef79370b62062$export$eb2fcfdbd7ba97d4 = $d08ef79370b62062$export$246bebaba3a2f70e;\nconst $d08ef79370b62062$export$b04be29aa201d4f5 = $d08ef79370b62062$export$76e48c5b57f24495;\nconst $d08ef79370b62062$export$6d08773d2e66f8f2 = $d08ef79370b62062$export$ed97964d1871885d;\nconst $d08ef79370b62062$export$16ce288f89fa631c = $d08ef79370b62062$export$53a69729da201fa9;\nconst $d08ef79370b62062$export$a98f0dcb43a68a25 = $d08ef79370b62062$export$3323ad73d55f587e;\nconst $d08ef79370b62062$export$371ab307eab489c0 = $d08ef79370b62062$export$e4f69b41b1637536;\nconst $d08ef79370b62062$export$c3468e2714d175fa = $d08ef79370b62062$export$42355ae145153fb6;\nconst $d08ef79370b62062$export$1ff3c3f08ae963c0 = $d08ef79370b62062$export$da160178fd3bc7e9;\nconst $d08ef79370b62062$export$21b07c8f274aebd5 = $d08ef79370b62062$export$34b8980744021ec5;\nconst $d08ef79370b62062$export$d7a01e11500dfb6f = $d08ef79370b62062$export$2f307d81a64f5442;\nconst $d08ef79370b62062$export$2ea8a7a591ac5eac = $d08ef79370b62062$export$21dcb7ec56f874cf;\nconst $d08ef79370b62062$export$6d4de93b380beddf = $d08ef79370b62062$export$f34ec8bc2482cc5f;\n\n\n\n\nexport {$d08ef79370b62062$export$c0623cd925aeb687 as createDropdownMenuScope, $d08ef79370b62062$export$e44a253a59704894 as DropdownMenu, $d08ef79370b62062$export$d2469213b3befba9 as DropdownMenuTrigger, $d08ef79370b62062$export$cd369b4d4d54efc9 as DropdownMenuPortal, $d08ef79370b62062$export$6e76d93a37c01248 as DropdownMenuContent, $d08ef79370b62062$export$246bebaba3a2f70e as DropdownMenuGroup, $d08ef79370b62062$export$76e48c5b57f24495 as DropdownMenuLabel, $d08ef79370b62062$export$ed97964d1871885d as DropdownMenuItem, $d08ef79370b62062$export$53a69729da201fa9 as DropdownMenuCheckboxItem, $d08ef79370b62062$export$3323ad73d55f587e as DropdownMenuRadioGroup, $d08ef79370b62062$export$e4f69b41b1637536 as DropdownMenuRadioItem, $d08ef79370b62062$export$42355ae145153fb6 as DropdownMenuItemIndicator, $d08ef79370b62062$export$da160178fd3bc7e9 as DropdownMenuSeparator, $d08ef79370b62062$export$34b8980744021ec5 as DropdownMenuArrow, $d08ef79370b62062$export$2f307d81a64f5442 as DropdownMenuSub, $d08ef79370b62062$export$21dcb7ec56f874cf as DropdownMenuSubTrigger, $d08ef79370b62062$export$f34ec8bc2482cc5f as DropdownMenuSubContent, $d08ef79370b62062$export$be92b6f5f03c0fe9 as Root, $d08ef79370b62062$export$41fb9f06171c75f4 as Trigger, $d08ef79370b62062$export$602eac185826482c as Portal, $d08ef79370b62062$export$7c6e2c02157bb7d2 as Content, $d08ef79370b62062$export$eb2fcfdbd7ba97d4 as Group, $d08ef79370b62062$export$b04be29aa201d4f5 as Label, $d08ef79370b62062$export$6d08773d2e66f8f2 as Item, $d08ef79370b62062$export$16ce288f89fa631c as CheckboxItem, $d08ef79370b62062$export$a98f0dcb43a68a25 as RadioGroup, $d08ef79370b62062$export$371ab307eab489c0 as RadioItem, $d08ef79370b62062$export$c3468e2714d175fa as ItemIndicator, $d08ef79370b62062$export$1ff3c3f08ae963c0 as Separator, $d08ef79370b62062$export$21b07c8f274aebd5 as Arrow, $d08ef79370b62062$export$d7a01e11500dfb6f as Sub, $d08ef79370b62062$export$2ea8a7a591ac5eac as SubTrigger, $d08ef79370b62062$export$6d4de93b380beddf as SubContent};\n","import $1bpvS$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $1bpvS$forwardRef, useState as $1bpvS$useState, useRef as $1bpvS$useRef, useEffect as $1bpvS$useEffect, createElement as $1bpvS$createElement} from \"react\";\nimport {useComposedRefs as $1bpvS$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $1bpvS$createContextScope} from \"@radix-ui/react-context\";\nimport {composeEventHandlers as $1bpvS$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useControllableState as $1bpvS$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {usePrevious as $1bpvS$usePrevious} from \"@radix-ui/react-use-previous\";\nimport {useSize as $1bpvS$useSize} from \"@radix-ui/react-use-size\";\nimport {Presence as $1bpvS$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $1bpvS$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Checkbox\n * -----------------------------------------------------------------------------------------------*/ const $e698a72e93240346$var$CHECKBOX_NAME = 'Checkbox';\nconst [$e698a72e93240346$var$createCheckboxContext, $e698a72e93240346$export$b566c4ff5488ea01] = $1bpvS$createContextScope($e698a72e93240346$var$CHECKBOX_NAME);\nconst [$e698a72e93240346$var$CheckboxProvider, $e698a72e93240346$var$useCheckboxContext] = $e698a72e93240346$var$createCheckboxContext($e698a72e93240346$var$CHECKBOX_NAME);\nconst $e698a72e93240346$export$48513f6b9f8ce62d = /*#__PURE__*/ $1bpvS$forwardRef((props, forwardedRef)=>{\n const { __scopeCheckbox: __scopeCheckbox , name: name , checked: checkedProp , defaultChecked: defaultChecked , required: required , disabled: disabled , value: value = 'on' , onCheckedChange: onCheckedChange , ...checkboxProps } = props;\n const [button, setButton] = $1bpvS$useState(null);\n const composedRefs = $1bpvS$useComposedRefs(forwardedRef, (node)=>setButton(node)\n );\n const hasConsumerStoppedPropagationRef = $1bpvS$useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)\n const isFormControl = button ? Boolean(button.closest('form')) : true;\n const [checked = false, setChecked] = $1bpvS$useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked,\n onChange: onCheckedChange\n });\n const initialCheckedStateRef = $1bpvS$useRef(checked);\n $1bpvS$useEffect(()=>{\n const form = button === null || button === void 0 ? void 0 : button.form;\n if (form) {\n const reset = ()=>setChecked(initialCheckedStateRef.current)\n ;\n form.addEventListener('reset', reset);\n return ()=>form.removeEventListener('reset', reset)\n ;\n }\n }, [\n button,\n setChecked\n ]);\n return /*#__PURE__*/ $1bpvS$createElement($e698a72e93240346$var$CheckboxProvider, {\n scope: __scopeCheckbox,\n state: checked,\n disabled: disabled\n }, /*#__PURE__*/ $1bpvS$createElement($1bpvS$Primitive.button, $1bpvS$babelruntimehelpersesmextends({\n type: \"button\",\n role: \"checkbox\",\n \"aria-checked\": $e698a72e93240346$var$isIndeterminate(checked) ? 'mixed' : checked,\n \"aria-required\": required,\n \"data-state\": $e698a72e93240346$var$getState(checked),\n \"data-disabled\": disabled ? '' : undefined,\n disabled: disabled,\n value: value\n }, checkboxProps, {\n ref: composedRefs,\n onKeyDown: $1bpvS$composeEventHandlers(props.onKeyDown, (event)=>{\n // According to WAI ARIA, Checkboxes don't activate on enter keypress\n if (event.key === 'Enter') event.preventDefault();\n }),\n onClick: $1bpvS$composeEventHandlers(props.onClick, (event)=>{\n setChecked((prevChecked)=>$e698a72e93240346$var$isIndeterminate(prevChecked) ? true : !prevChecked\n );\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if checkbox is in a form, stop propagation from the button so that we only propagate\n // one click event (from the input). We propagate changes from an input so that native\n // form validation works and form events reflect checkbox updates.\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n })), isFormControl && /*#__PURE__*/ $1bpvS$createElement($e698a72e93240346$var$BubbleInput, {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name: name,\n value: value,\n checked: checked,\n required: required,\n disabled: disabled // We transform because the input is absolutely positioned but we have\n ,\n style: {\n transform: 'translateX(-100%)'\n }\n }));\n});\n/*#__PURE__*/ Object.assign($e698a72e93240346$export$48513f6b9f8ce62d, {\n displayName: $e698a72e93240346$var$CHECKBOX_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * CheckboxIndicator\n * -----------------------------------------------------------------------------------------------*/ const $e698a72e93240346$var$INDICATOR_NAME = 'CheckboxIndicator';\nconst $e698a72e93240346$export$59aad738f51d1c05 = /*#__PURE__*/ $1bpvS$forwardRef((props, forwardedRef)=>{\n const { __scopeCheckbox: __scopeCheckbox , forceMount: forceMount , ...indicatorProps } = props;\n const context = $e698a72e93240346$var$useCheckboxContext($e698a72e93240346$var$INDICATOR_NAME, __scopeCheckbox);\n return /*#__PURE__*/ $1bpvS$createElement($1bpvS$Presence, {\n present: forceMount || $e698a72e93240346$var$isIndeterminate(context.state) || context.state === true\n }, /*#__PURE__*/ $1bpvS$createElement($1bpvS$Primitive.span, $1bpvS$babelruntimehelpersesmextends({\n \"data-state\": $e698a72e93240346$var$getState(context.state),\n \"data-disabled\": context.disabled ? '' : undefined\n }, indicatorProps, {\n ref: forwardedRef,\n style: {\n pointerEvents: 'none',\n ...props.style\n }\n })));\n});\n/*#__PURE__*/ Object.assign($e698a72e93240346$export$59aad738f51d1c05, {\n displayName: $e698a72e93240346$var$INDICATOR_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ const $e698a72e93240346$var$BubbleInput = (props)=>{\n const { control: control , checked: checked , bubbles: bubbles = true , ...inputProps } = props;\n const ref = $1bpvS$useRef(null);\n const prevChecked = $1bpvS$usePrevious(checked);\n const controlSize = $1bpvS$useSize(control); // Bubble checked change to parents (e.g form change event)\n $1bpvS$useEffect(()=>{\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event('click', {\n bubbles: bubbles\n });\n input.indeterminate = $e698a72e93240346$var$isIndeterminate(checked);\n setChecked.call(input, $e698a72e93240346$var$isIndeterminate(checked) ? false : checked);\n input.dispatchEvent(event);\n }\n }, [\n prevChecked,\n checked,\n bubbles\n ]);\n return /*#__PURE__*/ $1bpvS$createElement(\"input\", $1bpvS$babelruntimehelpersesmextends({\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: $e698a72e93240346$var$isIndeterminate(checked) ? false : checked\n }, inputProps, {\n tabIndex: -1,\n ref: ref,\n style: {\n ...props.style,\n ...controlSize,\n position: 'absolute',\n pointerEvents: 'none',\n opacity: 0,\n margin: 0\n }\n }));\n};\nfunction $e698a72e93240346$var$isIndeterminate(checked) {\n return checked === 'indeterminate';\n}\nfunction $e698a72e93240346$var$getState(checked) {\n return $e698a72e93240346$var$isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';\n}\nconst $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;\nconst $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;\n\n\n\n\nexport {$e698a72e93240346$export$b566c4ff5488ea01 as createCheckboxScope, $e698a72e93240346$export$48513f6b9f8ce62d as Checkbox, $e698a72e93240346$export$59aad738f51d1c05 as CheckboxIndicator, $e698a72e93240346$export$be92b6f5f03c0fe9 as Root, $e698a72e93240346$export$adb584737d712b70 as Indicator};\n","import $8Wolv$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $8Wolv$forwardRef, createElement as $8Wolv$createElement, useRef as $8Wolv$useRef, useEffect as $8Wolv$useEffect, useState as $8Wolv$useState} from \"react\";\nimport {composeEventHandlers as $8Wolv$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useComposedRefs as $8Wolv$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $8Wolv$createContextScope} from \"@radix-ui/react-context\";\nimport {Primitive as $8Wolv$Primitive} from \"@radix-ui/react-primitive\";\nimport {createRovingFocusGroupScope as $8Wolv$createRovingFocusGroupScope, Root as $8Wolv$Root, Item as $8Wolv$Item} from \"@radix-ui/react-roving-focus\";\nimport {useControllableState as $8Wolv$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {useDirection as $8Wolv$useDirection} from \"@radix-ui/react-direction\";\nimport {useSize as $8Wolv$useSize} from \"@radix-ui/react-use-size\";\nimport {usePrevious as $8Wolv$usePrevious} from \"@radix-ui/react-use-previous\";\nimport {Presence as $8Wolv$Presence} from \"@radix-ui/react-presence\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Radio\n * -----------------------------------------------------------------------------------------------*/ const $ce77a8961b41be9e$var$RADIO_NAME = 'Radio';\nconst [$ce77a8961b41be9e$var$createRadioContext, $ce77a8961b41be9e$export$67d2296460f1b002] = $8Wolv$createContextScope($ce77a8961b41be9e$var$RADIO_NAME);\nconst [$ce77a8961b41be9e$var$RadioProvider, $ce77a8961b41be9e$var$useRadioContext] = $ce77a8961b41be9e$var$createRadioContext($ce77a8961b41be9e$var$RADIO_NAME);\nconst $ce77a8961b41be9e$export$d7b12c4107be0d61 = /*#__PURE__*/ $8Wolv$forwardRef((props, forwardedRef)=>{\n const { __scopeRadio: __scopeRadio , name: name , checked: checked = false , required: required , disabled: disabled , value: value = 'on' , onCheck: onCheck , ...radioProps } = props;\n const [button, setButton] = $8Wolv$useState(null);\n const composedRefs = $8Wolv$useComposedRefs(forwardedRef, (node)=>setButton(node)\n );\n const hasConsumerStoppedPropagationRef = $8Wolv$useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)\n const isFormControl = button ? Boolean(button.closest('form')) : true;\n return /*#__PURE__*/ $8Wolv$createElement($ce77a8961b41be9e$var$RadioProvider, {\n scope: __scopeRadio,\n checked: checked,\n disabled: disabled\n }, /*#__PURE__*/ $8Wolv$createElement($8Wolv$Primitive.button, $8Wolv$babelruntimehelpersesmextends({\n type: \"button\",\n role: \"radio\",\n \"aria-checked\": checked,\n \"data-state\": $ce77a8961b41be9e$var$getState(checked),\n \"data-disabled\": disabled ? '' : undefined,\n disabled: disabled,\n value: value\n }, radioProps, {\n ref: composedRefs,\n onClick: $8Wolv$composeEventHandlers(props.onClick, (event)=>{\n // radios cannot be unchecked so we only communicate a checked state\n if (!checked) onCheck === null || onCheck === void 0 || onCheck();\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if radio is in a form, stop propagation from the button so that we only propagate\n // one click event (from the input). We propagate changes from an input so that native\n // form validation works and form events reflect radio updates.\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n })), isFormControl && /*#__PURE__*/ $8Wolv$createElement($ce77a8961b41be9e$var$BubbleInput, {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name: name,\n value: value,\n checked: checked,\n required: required,\n disabled: disabled // We transform because the input is absolutely positioned but we have\n ,\n style: {\n transform: 'translateX(-100%)'\n }\n }));\n});\n/*#__PURE__*/ Object.assign($ce77a8961b41be9e$export$d7b12c4107be0d61, {\n displayName: $ce77a8961b41be9e$var$RADIO_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * RadioIndicator\n * -----------------------------------------------------------------------------------------------*/ const $ce77a8961b41be9e$var$INDICATOR_NAME = 'RadioIndicator';\nconst $ce77a8961b41be9e$export$d35a9ffa9a04f9e7 = /*#__PURE__*/ $8Wolv$forwardRef((props, forwardedRef)=>{\n const { __scopeRadio: __scopeRadio , forceMount: forceMount , ...indicatorProps } = props;\n const context = $ce77a8961b41be9e$var$useRadioContext($ce77a8961b41be9e$var$INDICATOR_NAME, __scopeRadio);\n return /*#__PURE__*/ $8Wolv$createElement($8Wolv$Presence, {\n present: forceMount || context.checked\n }, /*#__PURE__*/ $8Wolv$createElement($8Wolv$Primitive.span, $8Wolv$babelruntimehelpersesmextends({\n \"data-state\": $ce77a8961b41be9e$var$getState(context.checked),\n \"data-disabled\": context.disabled ? '' : undefined\n }, indicatorProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($ce77a8961b41be9e$export$d35a9ffa9a04f9e7, {\n displayName: $ce77a8961b41be9e$var$INDICATOR_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ const $ce77a8961b41be9e$var$BubbleInput = (props)=>{\n const { control: control , checked: checked , bubbles: bubbles = true , ...inputProps } = props;\n const ref = $8Wolv$useRef(null);\n const prevChecked = $8Wolv$usePrevious(checked);\n const controlSize = $8Wolv$useSize(control); // Bubble checked change to parents (e.g form change event)\n $8Wolv$useEffect(()=>{\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event('click', {\n bubbles: bubbles\n });\n setChecked.call(input, checked);\n input.dispatchEvent(event);\n }\n }, [\n prevChecked,\n checked,\n bubbles\n ]);\n return /*#__PURE__*/ $8Wolv$createElement(\"input\", $8Wolv$babelruntimehelpersesmextends({\n type: \"radio\",\n \"aria-hidden\": true,\n defaultChecked: checked\n }, inputProps, {\n tabIndex: -1,\n ref: ref,\n style: {\n ...props.style,\n ...controlSize,\n position: 'absolute',\n pointerEvents: 'none',\n opacity: 0,\n margin: 0\n }\n }));\n};\nfunction $ce77a8961b41be9e$var$getState(checked) {\n return checked ? 'checked' : 'unchecked';\n}\n\n\nconst $f99a8c78507165f7$var$ARROW_KEYS = [\n 'ArrowUp',\n 'ArrowDown',\n 'ArrowLeft',\n 'ArrowRight'\n];\n/* -------------------------------------------------------------------------------------------------\n * RadioGroup\n * -----------------------------------------------------------------------------------------------*/ const $f99a8c78507165f7$var$RADIO_GROUP_NAME = 'RadioGroup';\nconst [$f99a8c78507165f7$var$createRadioGroupContext, $f99a8c78507165f7$export$c547093f11b76da2] = $8Wolv$createContextScope($f99a8c78507165f7$var$RADIO_GROUP_NAME, [\n $8Wolv$createRovingFocusGroupScope,\n $ce77a8961b41be9e$export$67d2296460f1b002\n]);\nconst $f99a8c78507165f7$var$useRovingFocusGroupScope = $8Wolv$createRovingFocusGroupScope();\nconst $f99a8c78507165f7$var$useRadioScope = $ce77a8961b41be9e$export$67d2296460f1b002();\nconst [$f99a8c78507165f7$var$RadioGroupProvider, $f99a8c78507165f7$var$useRadioGroupContext] = $f99a8c78507165f7$var$createRadioGroupContext($f99a8c78507165f7$var$RADIO_GROUP_NAME);\nconst $f99a8c78507165f7$export$a98f0dcb43a68a25 = /*#__PURE__*/ $8Wolv$forwardRef((props, forwardedRef)=>{\n const { __scopeRadioGroup: __scopeRadioGroup , name: name , defaultValue: defaultValue , value: valueProp , required: required = false , disabled: disabled = false , orientation: orientation , dir: dir , loop: loop = true , onValueChange: onValueChange , ...groupProps } = props;\n const rovingFocusGroupScope = $f99a8c78507165f7$var$useRovingFocusGroupScope(__scopeRadioGroup);\n const direction = $8Wolv$useDirection(dir);\n const [value, setValue] = $8Wolv$useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n return /*#__PURE__*/ $8Wolv$createElement($f99a8c78507165f7$var$RadioGroupProvider, {\n scope: __scopeRadioGroup,\n name: name,\n required: required,\n disabled: disabled,\n value: value,\n onValueChange: setValue\n }, /*#__PURE__*/ $8Wolv$createElement($8Wolv$Root, $8Wolv$babelruntimehelpersesmextends({\n asChild: true\n }, rovingFocusGroupScope, {\n orientation: orientation,\n dir: direction,\n loop: loop\n }), /*#__PURE__*/ $8Wolv$createElement($8Wolv$Primitive.div, $8Wolv$babelruntimehelpersesmextends({\n role: \"radiogroup\",\n \"aria-required\": required,\n \"aria-orientation\": orientation,\n \"data-disabled\": disabled ? '' : undefined,\n dir: direction\n }, groupProps, {\n ref: forwardedRef\n }))));\n});\n/*#__PURE__*/ Object.assign($f99a8c78507165f7$export$a98f0dcb43a68a25, {\n displayName: $f99a8c78507165f7$var$RADIO_GROUP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * RadioGroupItem\n * -----------------------------------------------------------------------------------------------*/ const $f99a8c78507165f7$var$ITEM_NAME = 'RadioGroupItem';\nconst $f99a8c78507165f7$export$9f866c100ef519e4 = /*#__PURE__*/ $8Wolv$forwardRef((props, forwardedRef)=>{\n const { __scopeRadioGroup: __scopeRadioGroup , disabled: disabled , ...itemProps } = props;\n const context = $f99a8c78507165f7$var$useRadioGroupContext($f99a8c78507165f7$var$ITEM_NAME, __scopeRadioGroup);\n const isDisabled = context.disabled || disabled;\n const rovingFocusGroupScope = $f99a8c78507165f7$var$useRovingFocusGroupScope(__scopeRadioGroup);\n const radioScope = $f99a8c78507165f7$var$useRadioScope(__scopeRadioGroup);\n const ref = $8Wolv$useRef(null);\n const composedRefs = $8Wolv$useComposedRefs(forwardedRef, ref);\n const checked = context.value === itemProps.value;\n const isArrowKeyPressedRef = $8Wolv$useRef(false);\n $8Wolv$useEffect(()=>{\n const handleKeyDown = (event)=>{\n if ($f99a8c78507165f7$var$ARROW_KEYS.includes(event.key)) isArrowKeyPressedRef.current = true;\n };\n const handleKeyUp = ()=>isArrowKeyPressedRef.current = false\n ;\n document.addEventListener('keydown', handleKeyDown);\n document.addEventListener('keyup', handleKeyUp);\n return ()=>{\n document.removeEventListener('keydown', handleKeyDown);\n document.removeEventListener('keyup', handleKeyUp);\n };\n }, []);\n return /*#__PURE__*/ $8Wolv$createElement($8Wolv$Item, $8Wolv$babelruntimehelpersesmextends({\n asChild: true\n }, rovingFocusGroupScope, {\n focusable: !isDisabled,\n active: checked\n }), /*#__PURE__*/ $8Wolv$createElement($ce77a8961b41be9e$export$d7b12c4107be0d61, $8Wolv$babelruntimehelpersesmextends({\n disabled: isDisabled,\n required: context.required,\n checked: checked\n }, radioScope, itemProps, {\n name: context.name,\n ref: composedRefs,\n onCheck: ()=>context.onValueChange(itemProps.value)\n ,\n onKeyDown: $8Wolv$composeEventHandlers((event)=>{\n // According to WAI ARIA, radio groups don't activate items on enter keypress\n if (event.key === 'Enter') event.preventDefault();\n }),\n onFocus: $8Wolv$composeEventHandlers(itemProps.onFocus, ()=>{\n var _ref$current;\n /**\n * Our `RovingFocusGroup` will focus the radio when navigating with arrow keys\n * and we need to \"check\" it in that case. We click it to \"check\" it (instead\n * of updating `context.value`) so that the radio change event fires.\n */ if (isArrowKeyPressedRef.current) (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.click();\n })\n })));\n});\n/*#__PURE__*/ Object.assign($f99a8c78507165f7$export$9f866c100ef519e4, {\n displayName: $f99a8c78507165f7$var$ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * RadioGroupIndicator\n * -----------------------------------------------------------------------------------------------*/ const $f99a8c78507165f7$var$INDICATOR_NAME = 'RadioGroupIndicator';\nconst $f99a8c78507165f7$export$5fb54c671a65c88 = /*#__PURE__*/ $8Wolv$forwardRef((props, forwardedRef)=>{\n const { __scopeRadioGroup: __scopeRadioGroup , ...indicatorProps } = props;\n const radioScope = $f99a8c78507165f7$var$useRadioScope(__scopeRadioGroup);\n return /*#__PURE__*/ $8Wolv$createElement($ce77a8961b41be9e$export$d35a9ffa9a04f9e7, $8Wolv$babelruntimehelpersesmextends({}, radioScope, indicatorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($f99a8c78507165f7$export$5fb54c671a65c88, {\n displayName: $f99a8c78507165f7$var$INDICATOR_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ const $f99a8c78507165f7$export$be92b6f5f03c0fe9 = $f99a8c78507165f7$export$a98f0dcb43a68a25;\nconst $f99a8c78507165f7$export$6d08773d2e66f8f2 = $f99a8c78507165f7$export$9f866c100ef519e4;\nconst $f99a8c78507165f7$export$adb584737d712b70 = $f99a8c78507165f7$export$5fb54c671a65c88;\n\n\n\n\nexport {$f99a8c78507165f7$export$c547093f11b76da2 as createRadioGroupScope, $f99a8c78507165f7$export$a98f0dcb43a68a25 as RadioGroup, $f99a8c78507165f7$export$9f866c100ef519e4 as RadioGroupItem, $f99a8c78507165f7$export$5fb54c671a65c88 as RadioGroupIndicator, $f99a8c78507165f7$export$be92b6f5f03c0fe9 as Root, $f99a8c78507165f7$export$6d08773d2e66f8f2 as Item, $f99a8c78507165f7$export$adb584737d712b70 as Indicator};\n","// This file is a workaround for a bug in web browsers' \"native\"\n// ES6 importing system which is uncapable of importing \"*.json\" files.\n// https://github.com/catamphetamine/libphonenumber-js/issues/239\nexport default {\"version\":4,\"country_calling_codes\":{\"1\":[\"US\",\"AG\",\"AI\",\"AS\",\"BB\",\"BM\",\"BS\",\"CA\",\"DM\",\"DO\",\"GD\",\"GU\",\"JM\",\"KN\",\"KY\",\"LC\",\"MP\",\"MS\",\"PR\",\"SX\",\"TC\",\"TT\",\"VC\",\"VG\",\"VI\"],\"7\":[\"RU\",\"KZ\"],\"20\":[\"EG\"],\"27\":[\"ZA\"],\"30\":[\"GR\"],\"31\":[\"NL\"],\"32\":[\"BE\"],\"33\":[\"FR\"],\"34\":[\"ES\"],\"36\":[\"HU\"],\"39\":[\"IT\",\"VA\"],\"40\":[\"RO\"],\"41\":[\"CH\"],\"43\":[\"AT\"],\"44\":[\"GB\",\"GG\",\"IM\",\"JE\"],\"45\":[\"DK\"],\"46\":[\"SE\"],\"47\":[\"NO\",\"SJ\"],\"48\":[\"PL\"],\"49\":[\"DE\"],\"51\":[\"PE\"],\"52\":[\"MX\"],\"53\":[\"CU\"],\"54\":[\"AR\"],\"55\":[\"BR\"],\"56\":[\"CL\"],\"57\":[\"CO\"],\"58\":[\"VE\"],\"60\":[\"MY\"],\"61\":[\"AU\",\"CC\",\"CX\"],\"62\":[\"ID\"],\"63\":[\"PH\"],\"64\":[\"NZ\"],\"65\":[\"SG\"],\"66\":[\"TH\"],\"81\":[\"JP\"],\"82\":[\"KR\"],\"84\":[\"VN\"],\"86\":[\"CN\"],\"90\":[\"TR\"],\"91\":[\"IN\"],\"92\":[\"PK\"],\"93\":[\"AF\"],\"94\":[\"LK\"],\"95\":[\"MM\"],\"98\":[\"IR\"],\"211\":[\"SS\"],\"212\":[\"MA\",\"EH\"],\"213\":[\"DZ\"],\"216\":[\"TN\"],\"218\":[\"LY\"],\"220\":[\"GM\"],\"221\":[\"SN\"],\"222\":[\"MR\"],\"223\":[\"ML\"],\"224\":[\"GN\"],\"225\":[\"CI\"],\"226\":[\"BF\"],\"227\":[\"NE\"],\"228\":[\"TG\"],\"229\":[\"BJ\"],\"230\":[\"MU\"],\"231\":[\"LR\"],\"232\":[\"SL\"],\"233\":[\"GH\"],\"234\":[\"NG\"],\"235\":[\"TD\"],\"236\":[\"CF\"],\"237\":[\"CM\"],\"238\":[\"CV\"],\"239\":[\"ST\"],\"240\":[\"GQ\"],\"241\":[\"GA\"],\"242\":[\"CG\"],\"243\":[\"CD\"],\"244\":[\"AO\"],\"245\":[\"GW\"],\"246\":[\"IO\"],\"247\":[\"AC\"],\"248\":[\"SC\"],\"249\":[\"SD\"],\"250\":[\"RW\"],\"251\":[\"ET\"],\"252\":[\"SO\"],\"253\":[\"DJ\"],\"254\":[\"KE\"],\"255\":[\"TZ\"],\"256\":[\"UG\"],\"257\":[\"BI\"],\"258\":[\"MZ\"],\"260\":[\"ZM\"],\"261\":[\"MG\"],\"262\":[\"RE\",\"YT\"],\"263\":[\"ZW\"],\"264\":[\"NA\"],\"265\":[\"MW\"],\"266\":[\"LS\"],\"267\":[\"BW\"],\"268\":[\"SZ\"],\"269\":[\"KM\"],\"290\":[\"SH\",\"TA\"],\"291\":[\"ER\"],\"297\":[\"AW\"],\"298\":[\"FO\"],\"299\":[\"GL\"],\"350\":[\"GI\"],\"351\":[\"PT\"],\"352\":[\"LU\"],\"353\":[\"IE\"],\"354\":[\"IS\"],\"355\":[\"AL\"],\"356\":[\"MT\"],\"357\":[\"CY\"],\"358\":[\"FI\",\"AX\"],\"359\":[\"BG\"],\"370\":[\"LT\"],\"371\":[\"LV\"],\"372\":[\"EE\"],\"373\":[\"MD\"],\"374\":[\"AM\"],\"375\":[\"BY\"],\"376\":[\"AD\"],\"377\":[\"MC\"],\"378\":[\"SM\"],\"380\":[\"UA\"],\"381\":[\"RS\"],\"382\":[\"ME\"],\"383\":[\"XK\"],\"385\":[\"HR\"],\"386\":[\"SI\"],\"387\":[\"BA\"],\"389\":[\"MK\"],\"420\":[\"CZ\"],\"421\":[\"SK\"],\"423\":[\"LI\"],\"500\":[\"FK\"],\"501\":[\"BZ\"],\"502\":[\"GT\"],\"503\":[\"SV\"],\"504\":[\"HN\"],\"505\":[\"NI\"],\"506\":[\"CR\"],\"507\":[\"PA\"],\"508\":[\"PM\"],\"509\":[\"HT\"],\"590\":[\"GP\",\"BL\",\"MF\"],\"591\":[\"BO\"],\"592\":[\"GY\"],\"593\":[\"EC\"],\"594\":[\"GF\"],\"595\":[\"PY\"],\"596\":[\"MQ\"],\"597\":[\"SR\"],\"598\":[\"UY\"],\"599\":[\"CW\",\"BQ\"],\"670\":[\"TL\"],\"672\":[\"NF\"],\"673\":[\"BN\"],\"674\":[\"NR\"],\"675\":[\"PG\"],\"676\":[\"TO\"],\"677\":[\"SB\"],\"678\":[\"VU\"],\"679\":[\"FJ\"],\"680\":[\"PW\"],\"681\":[\"WF\"],\"682\":[\"CK\"],\"683\":[\"NU\"],\"685\":[\"WS\"],\"686\":[\"KI\"],\"687\":[\"NC\"],\"688\":[\"TV\"],\"689\":[\"PF\"],\"690\":[\"TK\"],\"691\":[\"FM\"],\"692\":[\"MH\"],\"850\":[\"KP\"],\"852\":[\"HK\"],\"853\":[\"MO\"],\"855\":[\"KH\"],\"856\":[\"LA\"],\"880\":[\"BD\"],\"886\":[\"TW\"],\"960\":[\"MV\"],\"961\":[\"LB\"],\"962\":[\"JO\"],\"963\":[\"SY\"],\"964\":[\"IQ\"],\"965\":[\"KW\"],\"966\":[\"SA\"],\"967\":[\"YE\"],\"968\":[\"OM\"],\"970\":[\"PS\"],\"971\":[\"AE\"],\"972\":[\"IL\"],\"973\":[\"BH\"],\"974\":[\"QA\"],\"975\":[\"BT\"],\"976\":[\"MN\"],\"977\":[\"NP\"],\"992\":[\"TJ\"],\"993\":[\"TM\"],\"994\":[\"AZ\"],\"995\":[\"GE\"],\"996\":[\"KG\"],\"998\":[\"UZ\"]},\"countries\":{\"AC\":[\"247\",\"00\",\"(?:[01589]\\\\d|[46])\\\\d{4}\",[5,6]],\"AD\":[\"376\",\"00\",\"(?:1|6\\\\d)\\\\d{7}|[135-9]\\\\d{5}\",[6,8,9],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"[135-9]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"1\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]]]],\"AE\":[\"971\",\"00\",\"(?:[4-7]\\\\d|9[0-689])\\\\d{7}|800\\\\d{2,9}|[2-4679]\\\\d{7}\",[5,6,7,8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{2,9})\",\"$1 $2\",[\"60|8\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[236]|[479][2-8]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{5})\",\"$1 $2 $3\",[\"[479]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"]],\"0\"],\"AF\":[\"93\",\"00\",\"[2-7]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-7]\"],\"0$1\"]],\"0\"],\"AG\":[\"1\",\"011\",\"(?:268|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([457]\\\\d{6})$|1\",\"268$1\",0,\"268\"],\"AI\":[\"1\",\"011\",\"(?:264|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2457]\\\\d{6})$|1\",\"264$1\",0,\"264\"],\"AL\":[\"355\",\"00\",\"(?:700\\\\d\\\\d|900)\\\\d{3}|8\\\\d{5,7}|(?:[2-5]|6\\\\d)\\\\d{7}\",[6,7,8,9],[[\"(\\\\d{3})(\\\\d{3,4})\",\"$1 $2\",[\"80|9\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"4[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2358][2-5]|4\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[23578]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"6\"],\"0$1\"]],\"0\"],\"AM\":[\"374\",\"00\",\"(?:[1-489]\\\\d|55|60|77)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]0\"],\"0 $1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"2|3[12]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"1|47\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[3-9]\"],\"0$1\"]],\"0\"],\"AO\":[\"244\",\"00\",\"[29]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[29]\"]]]],\"AR\":[\"54\",\"00\",\"(?:11|[89]\\\\d\\\\d)\\\\d{8}|[2368]\\\\d{9}\",[10,11],[[\"(\\\\d{4})(\\\\d{2})(\\\\d{4})\",\"$1 $2-$3\",[\"2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])\",\"2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)\",\"2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]\",\"2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]\"],\"0$1\",1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2-$3\",[\"1\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[68]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2-$3\",[\"[23]\"],\"0$1\",1],[\"(\\\\d)(\\\\d{4})(\\\\d{2})(\\\\d{4})\",\"$2 15-$3-$4\",[\"9(?:2[2-469]|3[3-578])\",\"9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))\",\"9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)\",\"9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]\",\"9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]\"],\"0$1\",0,\"$1 $2 $3-$4\"],[\"(\\\\d)(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$2 15-$3-$4\",[\"91\"],\"0$1\",0,\"$1 $2 $3-$4\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1-$2-$3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$2 15-$3-$4\",[\"9\"],\"0$1\",0,\"$1 $2 $3-$4\"]],\"0\",0,\"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?\",\"9$1\"],\"AS\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|684|900)\\\\d{7}\",[10],0,\"1\",0,\"([267]\\\\d{6})$|1\",\"684$1\",0,\"684\"],\"AT\":[\"43\",\"00\",\"1\\\\d{3,12}|2\\\\d{6,12}|43(?:(?:0\\\\d|5[02-9])\\\\d{3,9}|2\\\\d{4,5}|[3467]\\\\d{4}|8\\\\d{4,6}|9\\\\d{4,7})|5\\\\d{4,12}|8\\\\d{7,12}|9\\\\d{8,12}|(?:[367]\\\\d|4[0-24-9])\\\\d{4,11}\",[4,5,6,7,8,9,10,11,12,13],[[\"(\\\\d)(\\\\d{3,12})\",\"$1 $2\",[\"1(?:11|[2-9])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})\",\"$1 $2\",[\"517\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,5})\",\"$1 $2\",[\"5[079]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,10})\",\"$1 $2\",[\"(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3,9})\",\"$1 $2\",[\"[2-467]|5[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4,7})\",\"$1 $2 $3\",[\"5\"],\"0$1\"]],\"0\"],\"AU\":[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{7}(?:\\\\d(?:\\\\d{2})?)?|8[0-24-9]\\\\d{7})|[2-478]\\\\d{8}|1\\\\d{4,7}\",[5,6,7,8,9,10,12],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1 $2\",[\"16\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3\",[\"16\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"14|4\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[2378]\"],\"(0$1)\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1(?:30|[89])\"]]],\"0\",0,\"(183[12])|0\",0,0,0,[[\"(?:(?:2(?:[0-26-9]\\\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\\\d|2[0-8]))\\\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\\\d)\\\\d{3}|9(?:[02-9]\\\\d{3}|1(?:(?:[0-58]\\\\d|6[0135-9])\\\\d|7(?:0[0-24-9]|[1-9]\\\\d)|9(?:[0-46-9]\\\\d|5[0-79])))))\\\\d{3}\",[9]],[\"4(?:(?:79|94)[01]|83[0-389])\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,[\"163\\\\d{2,6}\",[5,6,7,8,9]],[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],\"AW\":[\"297\",\"00\",\"(?:[25-79]\\\\d\\\\d|800)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[25-9]\"]]]],\"AX\":[\"358\",\"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))\",\"2\\\\d{4,9}|35\\\\d{4,5}|(?:60\\\\d\\\\d|800)\\\\d{4,6}|7\\\\d{5,11}|(?:[14]\\\\d|3[0-46-9]|50)\\\\d{4,8}\",[5,6,7,8,9,10,11,12],0,\"0\",0,0,0,0,\"18\",0,\"00\"],\"AZ\":[\"994\",\"00\",\"365\\\\d{6}|(?:[124579]\\\\d|60|88)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"90\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[28]|2|365|46\",\"1[28]|2|365[45]|46\",\"1[28]|2|365(?:4|5[02])|46\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[13-9]\"],\"0$1\"]],\"0\"],\"BA\":[\"387\",\"00\",\"6\\\\d{8}|(?:[35689]\\\\d|49|70)\\\\d{6}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6[1-3]|[7-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2-$3\",[\"[3-5]|6[56]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"6\"],\"0$1\"]],\"0\"],\"BB\":[\"1\",\"011\",\"(?:246|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"246$1\",0,\"246\"],\"BD\":[\"880\",\"00\",\"[1-469]\\\\d{9}|8[0-79]\\\\d{7,8}|[2-79]\\\\d{8}|[2-9]\\\\d{7}|[3-9]\\\\d{6}|[57-9]\\\\d{5}\",[6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1-$2\",[\"31[5-8]|[459]1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1-$2\",[\"3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3,6})\",\"$1-$2\",[\"[13-9]|22\"],\"0$1\"],[\"(\\\\d)(\\\\d{7,8})\",\"$1-$2\",[\"2\"],\"0$1\"]],\"0\"],\"BE\":[\"32\",\"00\",\"4\\\\d{8}|[1-9]\\\\d{7}\",[8,9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"(?:80|9)0\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[239]|4[23]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[15-8]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"4\"],\"0$1\"]],\"0\"],\"BF\":[\"226\",\"00\",\"[025-7]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[025-7]\"]]]],\"BG\":[\"359\",\"00\",\"00800\\\\d{7}|[2-7]\\\\d{6,7}|[89]\\\\d{6,8}|2\\\\d{5}\",[6,7,8,9,12],[[\"(\\\\d)(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"43[1-6]|70[1-9]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\",\"$1 $2 $3\",[\"[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"(?:70|8)0\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3\",[\"43[1-7]|7\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[48]|9[08]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],\"BH\":[\"973\",\"00\",\"[136-9]\\\\d{7}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[13679]|8[02-4679]\"]]]],\"BI\":[\"257\",\"00\",\"(?:[267]\\\\d|31)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2367]\"]]]],\"BJ\":[\"229\",\"00\",\"[24-689]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[24-689]\"]]]],\"BL\":[\"590\",\"00\",\"590\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],0,\"0\",0,0,0,0,0,[[\"590(?:2[7-9]|3[3-7]|5[12]|87)\\\\d{4}\"],[\"69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5]))\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],0,0,0,0,0,[\"9(?:(?:395|76[018])\\\\d|475[0-5])\\\\d{4}\"]]],\"BM\":[\"1\",\"011\",\"(?:441|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"441$1\",0,\"441\"],\"BN\":[\"673\",\"00\",\"[2-578]\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-578]\"]]]],\"BO\":[\"591\",\"00(?:1\\\\d)?\",\"(?:[2-467]\\\\d\\\\d|8001)\\\\d{5}\",[8,9],[[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"[23]|4[46]\"]],[\"(\\\\d{8})\",\"$1\",[\"[67]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]],\"0\",0,\"0(1\\\\d)?\"],\"BQ\":[\"599\",\"00\",\"(?:[34]1|7\\\\d)\\\\d{5}\",[7],0,0,0,0,0,0,\"[347]\"],\"BR\":[\"55\",\"00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)\",\"(?:[1-46-9]\\\\d\\\\d|5(?:[0-46-9]\\\\d|5[0-46-9]))\\\\d{8}|[1-9]\\\\d{9}|[3589]\\\\d{8}|[34]\\\\d{7}\",[8,9,10,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"300|4(?:0[02]|37)\",\"4(?:02|37)0|[34]00\"]],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{4})\",\"$1 $2 $3\",[\"(?:[358]|90)0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2-$3\",[\"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]\"],\"($1)\"],[\"(\\\\d{2})(\\\\d{5})(\\\\d{4})\",\"$1 $2-$3\",[\"[16][1-9]|[2-57-9]\"],\"($1)\"]],\"0\",0,\"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\\\d{10,11}))?\",\"$2\"],\"BS\":[\"1\",\"011\",\"(?:242|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([3-8]\\\\d{6})$|1\",\"242$1\",0,\"242\"],\"BT\":[\"975\",\"00\",\"[17]\\\\d{7}|[2-8]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-68]|7[246]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[67]|7\"]]]],\"BW\":[\"267\",\"00\",\"(?:0800|(?:[37]|800)\\\\d)\\\\d{6}|(?:[2-6]\\\\d|90)\\\\d{5}\",[7,8,10],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"90\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[24-6]|3[15-9]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[37]\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],\"BY\":[\"375\",\"810\",\"(?:[12]\\\\d|33|44|902)\\\\d{7}|8(?:0[0-79]\\\\d{5,7}|[1-7]\\\\d{9})|8(?:1[0-489]|[5-79]\\\\d)\\\\d{7}|8[1-79]\\\\d{6,7}|8[0-79]\\\\d{5}|8\\\\d{5}\",[6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"800\"],\"8 $1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,4})\",\"$1 $2 $3\",[\"800\"],\"8 $1\"],[\"(\\\\d{4})(\\\\d{2})(\\\\d{3})\",\"$1 $2-$3\",[\"1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])\",\"1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])\"],\"8 0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"1(?:[56]|7[467])|2[1-3]\"],\"8 0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[1-4]\"],\"8 0$1\"],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"8 $1\"]],\"8\",0,\"0|80?\",0,0,0,0,\"8~10\"],\"BZ\":[\"501\",\"00\",\"(?:0800\\\\d|[2-8])\\\\d{6}\",[7,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[2-8]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1-$2-$3-$4\",[\"0\"]]]],\"CA\":[\"1\",\"011\",\"(?:[2-8]\\\\d|90)\\\\d{8}|3\\\\d{6}\",[7,10],0,\"1\",0,0,0,0,0,[[\"(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\\\d{6}\",[10]],[\"\",[10]],[\"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}\",[10]],[\"900[2-9]\\\\d{6}\",[10]],[\"52(?:3(?:[2-46-9][02-9]\\\\d|5(?:[02-46-9]\\\\d|5[0-46-9]))|4(?:[2-478][02-9]\\\\d|5(?:[034]\\\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\\\d)|9(?:[05-9]\\\\d|2[0-5]|49)))\\\\d{4}|52[34][2-9]1[02-9]\\\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\\\d{6}\",[10]],0,[\"310\\\\d{4}\",[7]],0,[\"600[2-9]\\\\d{6}\",[10]]]],\"CC\":[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{8}(?:\\\\d{2})?|8[0-24-9]\\\\d{7})|[148]\\\\d{8}|1\\\\d{5,7}\",[6,7,8,9,10,12],0,\"0\",0,\"([59]\\\\d{7})$|0\",\"8$1\",0,0,[[\"8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\\\d|70[23]|959))\\\\d{3}\",[9]],[\"4(?:(?:79|94)[01]|83[0-389])\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,0,[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],\"CD\":[\"243\",\"00\",\"[189]\\\\d{8}|[1-68]\\\\d{6}\",[7,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"88\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"[1-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"]],\"0\"],\"CF\":[\"236\",\"00\",\"(?:[27]\\\\d{3}|8776)\\\\d{4}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[278]\"]]]],\"CG\":[\"242\",\"00\",\"222\\\\d{6}|(?:0\\\\d|80)\\\\d{7}\",[9],[[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[02]\"]]]],\"CH\":[\"41\",\"00\",\"8\\\\d{11}|[2-9]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8[047]|90\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-79]|81\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"8\"],\"0$1\"]],\"0\"],\"CI\":[\"225\",\"00\",\"[02]\\\\d{9}\",[10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d)(\\\\d{5})\",\"$1 $2 $3 $4\",[\"2\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"0\"]]]],\"CK\":[\"682\",\"00\",\"[2-578]\\\\d{4}\",[5],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"[2-578]\"]]]],\"CL\":[\"56\",\"(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0\",\"12300\\\\d{6}|6\\\\d{9,10}|[2-9]\\\\d{8}\",[9,10,11],[[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"219\",\"2196\"],\"($1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"44\"]],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2[1-36]\"],\"($1)\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"9[2-9]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])\"],\"($1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"60|8\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"60\"]]]],\"CM\":[\"237\",\"00\",\"[26]\\\\d{8}|88\\\\d{6,7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"88\"]],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"[26]|88\"]]]],\"CN\":[\"86\",\"00|1(?:[12]\\\\d|79)\\\\d\\\\d00\",\"1[127]\\\\d{8,9}|2\\\\d{9}(?:\\\\d{2})?|[12]\\\\d{6,7}|86\\\\d{6}|(?:1[03-689]\\\\d|6)\\\\d{7,9}|(?:[3-579]\\\\d|8[0-57-9])\\\\d{6,9}\",[7,8,9,10,11,12],[[\"(\\\\d{2})(\\\\d{5,6})\",\"$1 $2\",[\"(?:10|2[0-57-9])[19]\",\"(?:10|2[0-57-9])(?:10|9[56])\",\"10(?:10|9[56])|2[0-57-9](?:100|9[56])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]\",\"(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))[19]\",\"85[23](?:10|95)|(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))(?:10|9[56])\",\"85[23](?:100|95)|(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))(?:100|9[56])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"(?:4|80)0\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"10|2(?:[02-57-9]|1[1-9])\",\"10|2(?:[02-57-9]|1[1-9])\",\"10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{7,8})\",\"$1 $2\",[\"9\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"80\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-578]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"1[3-9]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"[12]\"],\"0$1\",1]],\"0\",0,\"(1(?:[12]\\\\d|79)\\\\d\\\\d)|0\",0,0,0,0,\"00\"],\"CO\":[\"57\",\"00(?:4(?:[14]4|56)|[579])\",\"(?:60\\\\d\\\\d|9101)\\\\d{6}|(?:1\\\\d|3)\\\\d{9}\",[10,11],[[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"6\"],\"($1)\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"3[0-357]|91\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{7})\",\"$1-$2-$3\",[\"1\"],\"0$1\",0,\"$1 $2 $3\"]],\"0\",0,\"0([3579]|4(?:[14]4|56))?\"],\"CR\":[\"506\",\"00\",\"(?:8\\\\d|90)\\\\d{8}|(?:[24-8]\\\\d{3}|3005)\\\\d{4}\",[8,10],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-7]|8[3-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[89]\"]]],0,0,\"(19(?:0[0-2468]|1[09]|20|66|77|99))\"],\"CU\":[\"53\",\"119\",\"[27]\\\\d{6,7}|[34]\\\\d{5,7}|63\\\\d{6}|(?:5|8\\\\d\\\\d)\\\\d{7}\",[6,7,8,10],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1 $2\",[\"2[1-4]|[34]\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{6,7})\",\"$1 $2\",[\"7\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"[56]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"8\"],\"0$1\"]],\"0\"],\"CV\":[\"238\",\"0\",\"(?:[2-59]\\\\d\\\\d|800)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[2-589]\"]]]],\"CW\":[\"599\",\"00\",\"(?:[34]1|60|(?:7|9\\\\d)\\\\d)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[3467]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9[4-8]\"]]],0,0,0,0,0,\"[69]\"],\"CX\":[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{8}(?:\\\\d{2})?|8[0-24-9]\\\\d{7})|[148]\\\\d{8}|1\\\\d{5,7}\",[6,7,8,9,10,12],0,\"0\",0,\"([59]\\\\d{7})$|0\",\"8$1\",0,0,[[\"8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\\\d|7(?:0[01]|1[0-2])|958))\\\\d{3}\",[9]],[\"4(?:(?:79|94)[01]|83[0-389])\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,0,[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],\"CY\":[\"357\",\"00\",\"(?:[279]\\\\d|[58]0)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[257-9]\"]]]],\"CZ\":[\"420\",\"00\",\"(?:[2-578]\\\\d|60)\\\\d{7}|9\\\\d{8,11}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-8]|9[015-7]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"96\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]]]],\"DE\":[\"49\",\"00\",\"[2579]\\\\d{5,14}|49(?:[34]0|69|8\\\\d)\\\\d\\\\d?|49(?:37|49|60|7[089]|9\\\\d)\\\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\\\d{1,8}|(?:1|[368]\\\\d|4[0-8])\\\\d{3,13}|49(?:[015]\\\\d|2[13]|31|[46][1-8])\\\\d{1,9}\",[4,5,6,7,8,9,10,11,12,13,14,15],[[\"(\\\\d{2})(\\\\d{3,13})\",\"$1 $2\",[\"3[02]|40|[68]9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,12})\",\"$1 $2\",[\"2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1\",\"2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{2,11})\",\"$1 $2\",[\"[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]\",\"[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"138\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{2,10})\",\"$1 $2\",[\"3\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5,11})\",\"$1 $2\",[\"181\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{4,10})\",\"$1 $2 $3\",[\"1(?:3|80)|9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7,8})\",\"$1 $2\",[\"1[67]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7,12})\",\"$1 $2\",[\"8\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{6})\",\"$1 $2\",[\"185\",\"1850\",\"18500\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{7})\",\"$1 $2\",[\"18[68]\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{6})\",\"$1 $2\",[\"15[0568]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{7})\",\"$1 $2\",[\"15[1279]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{8})\",\"$1 $2\",[\"18\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{7,8})\",\"$1 $2 $3\",[\"1(?:6[023]|7)\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{2})(\\\\d{7})\",\"$1 $2 $3\",[\"15[279]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{8})\",\"$1 $2 $3\",[\"15\"],\"0$1\"]],\"0\"],\"DJ\":[\"253\",\"00\",\"(?:2\\\\d|77)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[27]\"]]]],\"DK\":[\"45\",\"00\",\"[2-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-9]\"]]]],\"DM\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|767|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"767$1\",0,\"767\"],\"DO\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"8001|8[024]9\"],\"DZ\":[\"213\",\"00\",\"(?:[1-4]|[5-79]\\\\d|80)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[1-4]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-8]\"],\"0$1\"]],\"0\"],\"EC\":[\"593\",\"00\",\"1\\\\d{9,10}|(?:[2-7]|9\\\\d)\\\\d{7}\",[8,9,10,11],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2-$3\",[\"[2-7]\"],\"(0$1)\",0,\"$1-$2-$3\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],\"EE\":[\"372\",\"00\",\"8\\\\d{9}|[4578]\\\\d{7}|(?:[3-8]\\\\d|90)\\\\d{5}\",[7,8,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88\",\"[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88\"]],[\"(\\\\d{4})(\\\\d{3,4})\",\"$1 $2\",[\"[45]|8(?:00|[1-49])\",\"[45]|8(?:00[1-9]|[1-49])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],\"EG\":[\"20\",\"00\",\"[189]\\\\d{8,9}|[24-6]\\\\d{8}|[135]\\\\d{7}\",[8,9,10],[[\"(\\\\d)(\\\\d{7,8})\",\"$1 $2\",[\"[23]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6,7})\",\"$1 $2\",[\"1[35]|[4-6]|8[2468]|9[235-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{8})\",\"$1 $2\",[\"1\"],\"0$1\"]],\"0\"],\"EH\":[\"212\",\"00\",\"[5-8]\\\\d{8}\",[9],0,\"0\",0,0,0,0,\"528[89]\"],\"ER\":[\"291\",\"00\",\"[178]\\\\d{6}\",[7],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[178]\"],\"0$1\"]],\"0\"],\"ES\":[\"34\",\"00\",\"[5-9]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]00\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-9]\"]]]],\"ET\":[\"251\",\"00\",\"(?:11|[2-579]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-579]\"],\"0$1\"]],\"0\"],\"FI\":[\"358\",\"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))\",\"[1-35689]\\\\d{4}|7\\\\d{10,11}|(?:[124-7]\\\\d|3[0-46-9])\\\\d{8}|[1-9]\\\\d{5,8}\",[5,6,7,8,9,10,11,12],[[\"(\\\\d)(\\\\d{4,9})\",\"$1 $2\",[\"[2568][1-8]|3(?:0[1-9]|[1-9])|9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1 $2\",[\"[12]00|[368]|70[07-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4,8})\",\"$1 $2\",[\"[1245]|7[135]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6,10})\",\"$1 $2\",[\"7\"],\"0$1\"]],\"0\",0,0,0,0,\"1[03-79]|[2-9]\",0,\"00\"],\"FJ\":[\"679\",\"0(?:0|52)\",\"45\\\\d{5}|(?:0800\\\\d|[235-9])\\\\d{6}\",[7,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[235-9]|45\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"0\"]]],0,0,0,0,0,0,0,\"00\"],\"FK\":[\"500\",\"00\",\"[2-7]\\\\d{4}\",[5]],\"FM\":[\"691\",\"00\",\"(?:[39]\\\\d\\\\d|820)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[389]\"]]]],\"FO\":[\"298\",\"00\",\"[2-9]\\\\d{5}\",[6],[[\"(\\\\d{6})\",\"$1\",[\"[2-9]\"]]],0,0,\"(10(?:01|[12]0|88))\"],\"FR\":[\"33\",\"00\",\"[1-9]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0 $1\"],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"[1-79]\"],\"0$1\"]],\"0\"],\"GA\":[\"241\",\"00\",\"(?:[067]\\\\d|11)\\\\d{6}|[2-7]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-7]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"0\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"11|[67]\"],\"0$1\"]],0,0,\"0(11\\\\d{6}|60\\\\d{6}|61\\\\d{6}|6[256]\\\\d{6}|7[467]\\\\d{6})\",\"$1\"],\"GB\":[\"44\",\"00\",\"[1-357-9]\\\\d{9}|[18]\\\\d{8}|8\\\\d{6}\",[7,9,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"800\",\"8001\",\"80011\",\"800111\",\"8001111\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"845\",\"8454\",\"84546\",\"845464\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"800\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{4,5})\",\"$1 $2\",[\"1(?:38|5[23]|69|76|94)\",\"1(?:(?:38|69)7|5(?:24|39)|768|946)\",\"1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5,6})\",\"$1 $2\",[\"1(?:[2-69][02-9]|[78])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[25]|7(?:0|6[02-9])\",\"[25]|7(?:0|6(?:[03-9]|2[356]))\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1389]\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"(?:1(?:1(?:3(?:[0-58]\\\\d\\\\d|73[0235])|4(?:[0-5]\\\\d\\\\d|69[7-9]|70[0-79])|(?:(?:5[0-26-9]|[78][0-49])\\\\d|6(?:[0-4]\\\\d|50))\\\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\\\d)\\\\d|1(?:[0-7]\\\\d|8[0-2]))|(?:3(?:0\\\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\\\d)\\\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\\\d{3})\\\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\\\d)|76\\\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\\\d|7[4-79])|295[5-7]|35[34]\\\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\\\d{3}\",[9,10]],[\"7(?:457[0-57-9]|700[01]|911[028])\\\\d{5}|7(?:[1-3]\\\\d\\\\d|4(?:[0-46-9]\\\\d|5[0-689])|5(?:0[0-8]|[13-9]\\\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\\\d|8[02-9]|9[0-689])|8(?:[014-9]\\\\d|[23][0-8])|9(?:[024-9]\\\\d|1[02-9]|3[0-689]))\\\\d{6}\",[10]],[\"80[08]\\\\d{7}|800\\\\d{6}|8001111\"],[\"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\\\d|8[2-49]))\\\\d{7}|845464\\\\d\",[7,10]],[\"70\\\\d{8}\",[10]],0,[\"(?:3[0347]|55)\\\\d{8}\",[10]],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\",[10]],[\"56\\\\d{8}\",[10]]],0,\" x\"],\"GD\":[\"1\",\"011\",\"(?:473|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"473$1\",0,\"473\"],\"GE\":[\"995\",\"00\",\"(?:[3-57]\\\\d\\\\d|800)\\\\d{6}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"70\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"32\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[57]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[348]\"],\"0$1\"]],\"0\"],\"GF\":[\"594\",\"00\",\"[56]94\\\\d{6}|(?:80|9\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[56]|9[47]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[89]\"],\"0$1\"]],\"0\"],\"GG\":[\"44\",\"00\",\"(?:1481|[357-9]\\\\d{3})\\\\d{6}|8\\\\d{6}(?:\\\\d{2})?\",[7,9,10],0,\"0\",0,\"([25-9]\\\\d{5})$|0\",\"1481$1\",0,0,[[\"1481[25-9]\\\\d{5}\",[10]],[\"7(?:(?:781|839)\\\\d|911[17])\\\\d{5}\",[10]],[\"80[08]\\\\d{7}|800\\\\d{6}|8001111\"],[\"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\\\d|8[0-3]))\\\\d{7}|845464\\\\d\",[7,10]],[\"70\\\\d{8}\",[10]],0,[\"(?:3[0347]|55)\\\\d{8}\",[10]],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\",[10]],[\"56\\\\d{8}\",[10]]]],\"GH\":[\"233\",\"00\",\"(?:[235]\\\\d{3}|800)\\\\d{5}\",[8,9],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[235]\"],\"0$1\"]],\"0\"],\"GI\":[\"350\",\"00\",\"(?:[25]\\\\d|60)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"2\"]]]],\"GL\":[\"299\",\"00\",\"(?:19|[2-689]\\\\d|70)\\\\d{4}\",[6],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"19|[2-9]\"]]]],\"GM\":[\"220\",\"00\",\"[2-9]\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-9]\"]]]],\"GN\":[\"224\",\"00\",\"722\\\\d{6}|(?:3|6\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"3\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[67]\"]]]],\"GP\":[\"590\",\"00\",\"590\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[569]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\\\d)\\\\d{4}\"],[\"69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5]))\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],0,0,0,0,0,[\"9(?:(?:395|76[018])\\\\d|475[0-5])\\\\d{4}\"]]],\"GQ\":[\"240\",\"00\",\"222\\\\d{6}|(?:3\\\\d|55|[89]0)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[235]\"]],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"[89]\"]]]],\"GR\":[\"30\",\"00\",\"5005000\\\\d{3}|8\\\\d{9,11}|(?:[269]\\\\d|70)\\\\d{8}\",[10,11,12],[[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"21|7\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2689]\"]],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{5})\",\"$1 $2 $3\",[\"8\"]]]],\"GT\":[\"502\",\"00\",\"80\\\\d{6}|(?:1\\\\d{3}|[2-7])\\\\d{7}\",[8,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-8]\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]]]],\"GU\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|671|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"671$1\",0,\"671\"],\"GW\":[\"245\",\"00\",\"[49]\\\\d{8}|4\\\\d{6}\",[7,9],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"40\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[49]\"]]]],\"GY\":[\"592\",\"001\",\"(?:[2-8]\\\\d{3}|9008)\\\\d{3}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-9]\"]]]],\"HK\":[\"852\",\"00(?:30|5[09]|[126-9]?)\",\"8[0-46-9]\\\\d{6,7}|9\\\\d{4,7}|(?:[2-7]|9\\\\d{3})\\\\d{7}\",[5,6,7,8,9,11],[[\"(\\\\d{3})(\\\\d{2,5})\",\"$1 $2\",[\"900\",\"9003\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-7]|8[1-4]|9(?:0[1-9]|[1-8])\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]]],0,0,0,0,0,0,0,\"00\"],\"HN\":[\"504\",\"00\",\"8\\\\d{10}|[237-9]\\\\d{7}\",[8,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"[237-9]\"]]]],\"HR\":[\"385\",\"00\",\"(?:[24-69]\\\\d|3[0-79])\\\\d{7}|80\\\\d{5,7}|[1-79]\\\\d{7}|6\\\\d{5,6}\",[6,7,8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"6[01]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[67]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-5]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],\"HT\":[\"509\",\"00\",\"(?:[2-489]\\\\d|55)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-589]\"]]]],\"HU\":[\"36\",\"00\",\"[235-7]\\\\d{8}|[1-9]\\\\d{7}\",[8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"(06 $1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]\"],\"(06 $1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-9]\"],\"06 $1\"]],\"06\"],\"ID\":[\"62\",\"00[89]\",\"(?:(?:00[1-9]|8\\\\d)\\\\d{4}|[1-36])\\\\d{6}|00\\\\d{10}|[1-9]\\\\d{8,10}|[2-9]\\\\d{7}\",[7,8,9,10,11,12,13],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"15\"]],[\"(\\\\d{2})(\\\\d{5,9})\",\"$1 $2\",[\"2[124]|[36]1\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5,7})\",\"$1 $2\",[\"800\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5,8})\",\"$1 $2\",[\"[2-79]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{3})\",\"$1-$2-$3\",[\"8[1-35-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6,8})\",\"$1 $2\",[\"1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"804\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"80\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1-$2-$3\",[\"8\"],\"0$1\"]],\"0\"],\"IE\":[\"353\",\"00\",\"(?:1\\\\d|[2569])\\\\d{6,8}|4\\\\d{6,9}|7\\\\d{8}|8\\\\d{8,9}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"2[24-9]|47|58|6[237-9]|9[35-9]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[45]0\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2569]|4[1-69]|7[14]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"70\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"81\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"4\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],\"IL\":[\"972\",\"0(?:0|1[2-9])\",\"1\\\\d{6}(?:\\\\d{3,5})?|[57]\\\\d{8}|[1-489]\\\\d{7}\",[7,8,9,10,11,12],[[\"(\\\\d{4})(\\\\d{3})\",\"$1-$2\",[\"125\"]],[\"(\\\\d{4})(\\\\d{2})(\\\\d{2})\",\"$1-$2-$3\",[\"121\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[2-489]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[57]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3\",[\"12\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1-$2\",[\"159\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3-$4\",[\"1[7-9]\"]],[\"(\\\\d{3})(\\\\d{1,2})(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3-$4\",[\"15\"]]],\"0\"],\"IM\":[\"44\",\"00\",\"1624\\\\d{6}|(?:[3578]\\\\d|90)\\\\d{8}\",[10],0,\"0\",0,\"([25-8]\\\\d{5})$|0\",\"1624$1\",0,\"74576|(?:16|7[56])24\"],\"IN\":[\"91\",\"00\",\"(?:000800|[2-9]\\\\d\\\\d)\\\\d{7}|1\\\\d{7,12}\",[8,9,10,11,12,13],[[\"(\\\\d{8})\",\"$1\",[\"5(?:0|2[23]|3[03]|[67]1|88)\",\"5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)\",\"5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)\"],0,1],[\"(\\\\d{4})(\\\\d{4,5})\",\"$1 $2\",[\"180\",\"1800\"],0,1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"140\"],0,1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"11|2[02]|33|4[04]|79[1-7]|80[2-46]\",\"11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])\",\"11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]\",\"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]\",\"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]\"],\"0$1\",1],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807\",\"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]\",\"1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\\\d|7(?:1(?:[013-8]\\\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\\\d|5[0-367])|70[13-7]))[2-7]\"],\"0$1\",1],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"[6-9]\"],\"0$1\",1],[\"(\\\\d{4})(\\\\d{2,4})(\\\\d{4})\",\"$1 $2 $3\",[\"1(?:6|8[06])\",\"1(?:6|8[06]0)\"],0,1],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"18\"],0,1]],\"0\"],\"IO\":[\"246\",\"00\",\"3\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"3\"]]]],\"IQ\":[\"964\",\"00\",\"(?:1|7\\\\d\\\\d)\\\\d{7}|[2-6]\\\\d{7,8}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-6]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\"],\"IR\":[\"98\",\"00\",\"[1-9]\\\\d{9}|(?:[1-8]\\\\d\\\\d|9)\\\\d{3,4}\",[4,5,6,7,10],[[\"(\\\\d{4,5})\",\"$1\",[\"96\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4,5})\",\"$1 $2\",[\"(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-8]\"],\"0$1\"]],\"0\"],\"IS\":[\"354\",\"00|1(?:0(?:01|[12]0)|100)\",\"(?:38\\\\d|[4-9])\\\\d{6}\",[7,9],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[4-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"3\"]]],0,0,0,0,0,0,0,\"00\"],\"IT\":[\"39\",\"00\",\"0\\\\d{5,10}|1\\\\d{8,10}|3(?:[0-8]\\\\d{7,10}|9\\\\d{7,8})|(?:55|70)\\\\d{8}|8\\\\d{5}(?:\\\\d{2,4})?\",[6,7,8,9,10,11],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1 $2\",[\"0[26]\"]],[\"(\\\\d{3})(\\\\d{3,6})\",\"$1 $2\",[\"0[13-57-9][0159]|8(?:03|4[17]|9[2-5])\",\"0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))\"]],[\"(\\\\d{4})(\\\\d{2,6})\",\"$1 $2\",[\"0(?:[13-579][2-46-8]|8[236-8])\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"894\"]],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"0[26]|5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"1(?:44|[679])|[378]\"]],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"0[13-57-9][0159]|14\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{5})\",\"$1 $2 $3\",[\"0[26]\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"3\"]]],0,0,0,0,0,0,[[\"0669[0-79]\\\\d{1,6}|0(?:1(?:[0159]\\\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\\\d\\\\d|3(?:[0159]\\\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\\\d|6[0-8])|7(?:[0159]\\\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\\\d{2,7}\"],[\"3[1-9]\\\\d{8}|3[2-9]\\\\d{7}\",[9,10]],[\"80(?:0\\\\d{3}|3)\\\\d{3}\",[6,9]],[\"(?:0878\\\\d{3}|89(?:2\\\\d|3[04]|4(?:[0-4]|[5-9]\\\\d\\\\d)|5[0-4]))\\\\d\\\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\\\d{6}\",[6,8,9,10]],[\"1(?:78\\\\d|99)\\\\d{6}\",[9,10]],0,0,0,[\"55\\\\d{8}\",[10]],[\"84(?:[08]\\\\d{3}|[17])\\\\d{3}\",[6,9]]]],\"JE\":[\"44\",\"00\",\"1534\\\\d{6}|(?:[3578]\\\\d|90)\\\\d{8}\",[10],0,\"0\",0,\"([0-24-8]\\\\d{5})$|0\",\"1534$1\",0,0,[[\"1534[0-24-8]\\\\d{5}\"],[\"7(?:(?:(?:50|82)9|937)\\\\d|7(?:00[378]|97[7-9]))\\\\d{5}\"],[\"80(?:07(?:35|81)|8901)\\\\d{4}\"],[\"(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\\\d{4}\"],[\"701511\\\\d{4}\"],0,[\"(?:3(?:0(?:07(?:35|81)|8901)|3\\\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\\\d{4})\\\\d{4}\"],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\"],[\"56\\\\d{8}\"]]],\"JM\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|658|900)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"658|876\"],\"JO\":[\"962\",\"00\",\"(?:(?:[2689]|7\\\\d)\\\\d|32|53)\\\\d{6}\",[8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2356]|87\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"70\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\"],\"JP\":[\"81\",\"010\",\"00[1-9]\\\\d{6,14}|[257-9]\\\\d{9}|(?:00|[1-9]\\\\d\\\\d)\\\\d{6}\",[8,9,10,11,12,13,14,15,16,17],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3\",[\"(?:12|57|99)0\"],\"0$1\"],[\"(\\\\d{4})(\\\\d)(\\\\d{4})\",\"$1-$2-$3\",[\"1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])\",\"1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]\",\"1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"60\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"[36]|4(?:2[09]|7[01])\",\"[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])\",\"1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]\",\"1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1-$2-$3\",[\"[14]|[289][2-9]|5[3-9]|7[2-4679]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"800\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"[257-9]\"],\"0$1\"]],\"0\",0,\"(000[259]\\\\d{6})$|(?:(?:003768)0?)|0\",\"$1\"],\"KE\":[\"254\",\"000\",\"(?:[17]\\\\d\\\\d|900)\\\\d{6}|(?:2|80)0\\\\d{6,7}|[4-6]\\\\d{6,8}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{5,7})\",\"$1 $2\",[\"[24-6]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"[17]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"]],\"0\"],\"KG\":[\"996\",\"00\",\"8\\\\d{9}|[235-9]\\\\d{8}\",[9,10],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"3(?:1[346]|[24-79])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[235-79]|88\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d)(\\\\d{2,3})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],\"KH\":[\"855\",\"00[14-9]\",\"1\\\\d{9}|[1-9]\\\\d{7,8}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],\"KI\":[\"686\",\"00\",\"(?:[37]\\\\d|6[0-79])\\\\d{6}|(?:[2-48]\\\\d|50)\\\\d{3}\",[5,8],0,\"0\"],\"KM\":[\"269\",\"00\",\"[3478]\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[3478]\"]]]],\"KN\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"869$1\",0,\"869\"],\"KP\":[\"850\",\"00|99\",\"85\\\\d{6}|(?:19\\\\d|[2-7])\\\\d{7}\",[8,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"]],\"0\"],\"KR\":[\"82\",\"00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))\",\"00[1-9]\\\\d{8,11}|(?:[12]|5\\\\d{3})\\\\d{7}|[13-6]\\\\d{9}|(?:[1-6]\\\\d|80)\\\\d{7}|[3-6]\\\\d{4,5}|(?:00|7)0\\\\d{8}\",[5,6,8,9,10,11,12,13,14],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1-$2\",[\"(?:3[1-3]|[46][1-4]|5[1-5])1\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"1\"]],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1-$2-$3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"60|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1-$2-$3\",[\"[1346]|5[1-5]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"[57]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})(\\\\d{4})\",\"$1-$2-$3\",[\"5\"],\"0$1\"]],\"0\",0,\"0(8(?:[1-46-8]|5\\\\d\\\\d))?\"],\"KW\":[\"965\",\"00\",\"18\\\\d{5}|(?:[2569]\\\\d|41)\\\\d{6}\",[7,8],[[\"(\\\\d{4})(\\\\d{3,4})\",\"$1 $2\",[\"[169]|2(?:[235]|4[1-35-9])|52\"]],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[245]\"]]]],\"KY\":[\"1\",\"011\",\"(?:345|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"345$1\",0,\"345\"],\"KZ\":[\"7\",\"810\",\"(?:33622|8\\\\d{8})\\\\d{5}|[78]\\\\d{9}\",[10,14],0,\"8\",0,0,0,0,\"33|7\",0,\"8~10\"],\"LA\":[\"856\",\"00\",\"[23]\\\\d{9}|3\\\\d{8}|(?:[235-8]\\\\d|41)\\\\d{6}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2[13]|3[14]|[4-8]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"30[013-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"[23]\"],\"0$1\"]],\"0\"],\"LB\":[\"961\",\"00\",\"[27-9]\\\\d{7}|[13-9]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[27-9]\"]]],\"0\"],\"LC\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|758|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-8]\\\\d{6})$|1\",\"758$1\",0,\"758\"],\"LI\":[\"423\",\"00\",\"[68]\\\\d{8}|(?:[2378]\\\\d|90)\\\\d{5}\",[7,9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[2379]|8(?:0[09]|7)\",\"[2379]|8(?:0(?:02|9)|7)\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"69\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]]],\"0\",0,\"(1001)|0\"],\"LK\":[\"94\",\"00\",\"[1-9]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[1-689]\"],\"0$1\"]],\"0\"],\"LR\":[\"231\",\"00\",\"(?:[25]\\\\d|33|77|88)\\\\d{7}|(?:2\\\\d|[4-6])\\\\d{6}\",[7,8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[4-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[23578]\"],\"0$1\"]],\"0\"],\"LS\":[\"266\",\"00\",\"(?:[256]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2568]\"]]]],\"LT\":[\"370\",\"00\",\"(?:[3469]\\\\d|52|[78]0)\\\\d{6}\",[8],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"52[0-7]\"],\"(8-$1)\",1],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[7-9]\"],\"8 $1\",1],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"37|4(?:[15]|6[1-8])\"],\"(8-$1)\",1],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[3-6]\"],\"(8-$1)\",1]],\"8\",0,\"[08]\"],\"LU\":[\"352\",\"00\",\"35[013-9]\\\\d{4,8}|6\\\\d{8}|35\\\\d{2,4}|(?:[2457-9]\\\\d|3[0-46-9])\\\\d{2,9}\",[4,5,6,7,8,9,10,11],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"20[2-689]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})\",\"$1 $2 $3 $4\",[\"2(?:[0367]|4[3-8])\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"80[01]|90[015]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"20\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})\",\"$1 $2 $3 $4 $5\",[\"2(?:[0367]|4[3-8])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,5})\",\"$1 $2 $3 $4\",[\"[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]\"]]],0,0,\"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\\\d)\"],\"LV\":[\"371\",\"00\",\"(?:[268]\\\\d|90)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[269]|8[01]\"]]]],\"LY\":[\"218\",\"00\",\"[2-9]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{7})\",\"$1-$2\",[\"[2-9]\"],\"0$1\"]],\"0\"],\"MA\":[\"212\",\"00\",\"[5-8]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"5[45]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5})\",\"$1-$2\",[\"5(?:2[2-489]|3[5-9]|9)|8(?:0[89]|92)\",\"5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|8(?:0[89]|92)\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1-$2\",[\"8\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1-$2\",[\"[5-7]\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"5(?:2(?:[0-25-79]\\\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\\\d)\\\\d{5}\"],[\"(?:6(?:[0-79]\\\\d|8[0-247-9])|7(?:[0167]\\\\d|2[0-2]|5[01]|8[0-3]))\\\\d{6}\"],[\"80[0-7]\\\\d{6}\"],[\"89\\\\d{7}\"],0,0,0,0,[\"(?:592(?:4[0-2]|93)|80[89]\\\\d\\\\d)\\\\d{4}\"]]],\"MC\":[\"377\",\"00\",\"(?:[3489]|6\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"4\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[389]\"]],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"6\"],\"0$1\"]],\"0\"],\"MD\":[\"373\",\"00\",\"(?:[235-7]\\\\d|[89]0)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"22|3\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[25-7]\"],\"0$1\"]],\"0\"],\"ME\":[\"382\",\"00\",\"(?:20|[3-79]\\\\d)\\\\d{6}|80\\\\d{6,7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-9]\"],\"0$1\"]],\"0\"],\"MF\":[\"590\",\"00\",\"590\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],0,\"0\",0,0,0,0,0,[[\"590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\\\d{4}\"],[\"69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5]))\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],0,0,0,0,0,[\"9(?:(?:395|76[018])\\\\d|475[0-5])\\\\d{4}\"]]],\"MG\":[\"261\",\"00\",\"[23]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[23]\"],\"0$1\"]],\"0\",0,\"([24-9]\\\\d{6})$|0\",\"20$1\"],\"MH\":[\"692\",\"011\",\"329\\\\d{4}|(?:[256]\\\\d|45)\\\\d{5}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[2-6]\"]]],\"1\"],\"MK\":[\"389\",\"00\",\"[2-578]\\\\d{7}\",[8],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2|34[47]|4(?:[37]7|5[47]|64)\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[347]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[58]\"],\"0$1\"]],\"0\"],\"ML\":[\"223\",\"00\",\"[24-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[24-9]\"]]]],\"MM\":[\"95\",\"00\",\"1\\\\d{5,7}|95\\\\d{6}|(?:[4-7]|9[0-46-9])\\\\d{6,8}|(?:2|8\\\\d)\\\\d{5,8}\",[6,7,8,9,10],[[\"(\\\\d)(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"16|2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[12]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[4-7]|8[1-35]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4,6})\",\"$1 $2 $3\",[\"9(?:2[0-4]|[35-9]|4[137-9])\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"92\"],\"0$1\"],[\"(\\\\d)(\\\\d{5})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],\"MN\":[\"976\",\"001\",\"[12]\\\\d{7,9}|[5-9]\\\\d{7}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"[12]1\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[5-9]\"]],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"[12]2[1-3]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5,6})\",\"$1 $2\",[\"[12](?:27|3[2-8]|4[2-68]|5[1-4689])\",\"[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{4,5})\",\"$1 $2\",[\"[12]\"],\"0$1\"]],\"0\"],\"MO\":[\"853\",\"00\",\"0800\\\\d{3}|(?:28|[68]\\\\d)\\\\d{6}\",[7,8],[[\"(\\\\d{4})(\\\\d{3})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[268]\"]]]],\"MP\":[\"1\",\"011\",\"[58]\\\\d{9}|(?:67|90)0\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"670$1\",0,\"670\"],\"MQ\":[\"596\",\"00\",\"596\\\\d{6}|(?:69|80|9\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[569]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],\"MR\":[\"222\",\"00\",\"(?:[2-4]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-48]\"]]]],\"MS\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|664|900)\\\\d{7}\",[10],0,\"1\",0,\"([34]\\\\d{6})$|1\",\"664$1\",0,\"664\"],\"MT\":[\"356\",\"00\",\"3550\\\\d{4}|(?:[2579]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2357-9]\"]]]],\"MU\":[\"230\",\"0(?:0|[24-7]0|3[03])\",\"(?:[57]|8\\\\d\\\\d)\\\\d{7}|[2-468]\\\\d{6}\",[7,8,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-46]|8[013]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[57]\"]],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"8\"]]],0,0,0,0,0,0,0,\"020\"],\"MV\":[\"960\",\"0(?:0|19)\",\"(?:800|9[0-57-9]\\\\d)\\\\d{7}|[34679]\\\\d{6}\",[7,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[34679]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"]]],0,0,0,0,0,0,0,\"00\"],\"MW\":[\"265\",\"00\",\"(?:[1289]\\\\d|31|77)\\\\d{7}|1\\\\d{6}\",[7,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[137-9]\"],\"0$1\"]],\"0\"],\"MX\":[\"52\",\"0[09]\",\"1(?:(?:[27]2|44|87|99)[1-9]|65[0-689])\\\\d{7}|(?:1(?:[01]\\\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-69]|9[1-8])|[2-9]\\\\d)\\\\d{8}\",[10,11],[[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"33|5[56]|81\"],0,1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-9]\"],0,1],[\"(\\\\d)(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$2 $3 $4\",[\"1(?:33|5[56]|81)\"],0,1],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$2 $3 $4\",[\"1\"],0,1]],\"01\",0,\"0(?:[12]|4[45])|1\",0,0,0,0,\"00\"],\"MY\":[\"60\",\"00\",\"1\\\\d{8,9}|(?:3\\\\d|[4-9])\\\\d{7}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3\",[\"[4-79]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1-$2 $3\",[\"1(?:[02469]|[378][1-9]|53)|8\",\"1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1-$2 $3\",[\"3\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1-$2-$3-$4\",[\"1(?:[367]|80)\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3\",[\"15\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2 $3\",[\"1\"],\"0$1\"]],\"0\"],\"MZ\":[\"258\",\"00\",\"(?:2|8\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2|8[2-79]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],\"NA\":[\"264\",\"00\",\"[68]\\\\d{7,8}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"88\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"6\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"87\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],\"NC\":[\"687\",\"00\",\"(?:050|[2-57-9]\\\\d\\\\d)\\\\d{3}\",[6],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1.$2.$3\",[\"[02-57-9]\"]]]],\"NE\":[\"227\",\"00\",\"[027-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"08\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[089]|2[013]|7[047]\"]]]],\"NF\":[\"672\",\"00\",\"[13]\\\\d{5}\",[6],[[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"1[0-3]\"]],[\"(\\\\d)(\\\\d{5})\",\"$1 $2\",[\"[13]\"]]],0,0,\"([0-258]\\\\d{4})$\",\"3$1\"],\"NG\":[\"234\",\"009\",\"(?:[124-7]|9\\\\d{3})\\\\d{6}|[1-9]\\\\d{7}|[78]\\\\d{9,13}\",[7,8,10,11,12,13,14],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"78\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[12]|9(?:0[3-9]|[1-9])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\",\"$1 $2 $3\",[\"[3-7]|8[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[7-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})(\\\\d{5,6})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"]],\"0\"],\"NI\":[\"505\",\"00\",\"(?:1800|[25-8]\\\\d{3})\\\\d{4}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[125-8]\"]]]],\"NL\":[\"31\",\"00\",\"(?:[124-7]\\\\d\\\\d|3(?:[02-9]\\\\d|1[0-8]))\\\\d{6}|8\\\\d{6,9}|9\\\\d{6,10}|1\\\\d{4,5}\",[5,6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{4,7})\",\"$1 $2\",[\"[89]0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"66\"],\"0$1\"],[\"(\\\\d)(\\\\d{8})\",\"$1 $2\",[\"6\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1[16-8]|2[259]|3[124]|4[17-9]|5[124679]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-578]|91\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],\"NO\":[\"47\",\"00\",\"(?:0|[2-9]\\\\d{3})\\\\d{4}\",[5,8],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-79]\"]]],0,0,0,0,0,\"[02-689]|7[0-8]\"],\"NP\":[\"977\",\"00\",\"(?:1\\\\d|9)\\\\d{9}|[1-9]\\\\d{7}\",[8,10,11],[[\"(\\\\d)(\\\\d{7})\",\"$1-$2\",[\"1[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1-$2\",[\"1[01]|[2-8]|9(?:[1-59]|[67][2-6])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1-$2\",[\"9\"]]],\"0\"],\"NR\":[\"674\",\"00\",\"(?:444|(?:55|8\\\\d)\\\\d|666)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[4-68]\"]]]],\"NU\":[\"683\",\"00\",\"(?:[4-7]|888\\\\d)\\\\d{3}\",[4,7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"8\"]]]],\"NZ\":[\"64\",\"0(?:0|161)\",\"[1289]\\\\d{9}|50\\\\d{5}(?:\\\\d{2,3})?|[27-9]\\\\d{7,8}|(?:[34]\\\\d|6[0-35-9])\\\\d{6}|8\\\\d{4,6}\",[5,6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{3,8})\",\"$1 $2\",[\"8[1-79]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"50[036-8]|8|90\",\"50(?:[0367]|88)|8|90\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"24|[346]|7[2-57-9]|9[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2(?:10|74)|[589]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"1|2[028]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,5})\",\"$1 $2 $3\",[\"2(?:[169]|7[0-35-9])|7\"],\"0$1\"]],\"0\",0,0,0,0,0,0,\"00\"],\"OM\":[\"968\",\"00\",\"(?:1505|[279]\\\\d{3}|500)\\\\d{4}|800\\\\d{5,6}\",[7,8,9],[[\"(\\\\d{3})(\\\\d{4,6})\",\"$1 $2\",[\"[58]\"]],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"2\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[179]\"]]]],\"PA\":[\"507\",\"00\",\"(?:00800|8\\\\d{3})\\\\d{6}|[68]\\\\d{7}|[1-57-9]\\\\d{6}\",[7,8,10,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[1-57-9]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"[68]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]]],\"PE\":[\"51\",\"00|19(?:1[124]|77|90)00\",\"(?:[14-8]|9\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"80\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"1\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[4-8]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"]]],\"0\",0,0,0,0,0,0,\"00\",\" Anexo \"],\"PF\":[\"689\",\"00\",\"4\\\\d{5}(?:\\\\d{2})?|8\\\\d{7,8}\",[6,8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"44\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"4|8[7-9]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]]]],\"PG\":[\"675\",\"00|140[1-3]\",\"(?:180|[78]\\\\d{3})\\\\d{4}|(?:[2-589]\\\\d|64)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"18|[2-69]|85\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[78]\"]]],0,0,0,0,0,0,0,\"00\"],\"PH\":[\"63\",\"00\",\"(?:[2-7]|9\\\\d)\\\\d{8}|2\\\\d{5}|(?:1800|8)\\\\d{7,9}\",[6,8,9,10,11,12,13],[[\"(\\\\d)(\\\\d{5})\",\"$1 $2\",[\"2\"],\"(0$1)\"],[\"(\\\\d{4})(\\\\d{4,6})\",\"$1 $2\",[\"3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2\",\"3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))\"],\"(0$1)\"],[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"346|4(?:27|9[35])|883\",\"3469|4(?:279|9(?:30|56))|8834\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-7]|8[2-8]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{4})(\\\\d{1,2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"1\"]]],\"0\"],\"PK\":[\"92\",\"00\",\"122\\\\d{6}|[24-8]\\\\d{10,11}|9(?:[013-9]\\\\d{8,10}|2(?:[01]\\\\d\\\\d|2(?:[06-8]\\\\d|1[01]))\\\\d{7})|(?:[2-8]\\\\d{3}|92(?:[0-7]\\\\d|8[1-9]))\\\\d{6}|[24-9]\\\\d{8}|[89]\\\\d{7}\",[8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,7})\",\"$1 $2 $3\",[\"[89]0\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"1\"]],[\"(\\\\d{3})(\\\\d{6,7})\",\"$1 $2\",[\"2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])\",\"9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{7,8})\",\"$1 $2\",[\"(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\"],\"(0$1)\"],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"58\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"3\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"[24-9]\"],\"(0$1)\"]],\"0\"],\"PL\":[\"48\",\"00\",\"(?:6|8\\\\d\\\\d)\\\\d{7}|[1-9]\\\\d{6}(?:\\\\d{2})?|[26]\\\\d{5}\",[6,7,8,9,10],[[\"(\\\\d{5})\",\"$1\",[\"19\"]],[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"11|20|64\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1\",\"(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"64\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[2-8]|[2-7]|8[1-79]|9[145]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"8\"]]]],\"PM\":[\"508\",\"00\",\"[45]\\\\d{5}|(?:708|80\\\\d)\\\\d{6}\",[6,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[45]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],\"PR\":[\"1\",\"011\",\"(?:[589]\\\\d\\\\d|787)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"787|939\"],\"PS\":[\"970\",\"00\",\"[2489]2\\\\d{6}|(?:1\\\\d|5)\\\\d{8}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2489]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],\"PT\":[\"351\",\"00\",\"1693\\\\d{5}|(?:[26-9]\\\\d|30)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2[12]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"16|[236-9]\"]]]],\"PW\":[\"680\",\"01[12]\",\"(?:[24-8]\\\\d\\\\d|345|900)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-9]\"]]]],\"PY\":[\"595\",\"00\",\"59\\\\d{4,6}|9\\\\d{5,10}|(?:[2-46-8]\\\\d|5[0-8])\\\\d{4,7}\",[6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{3,6})\",\"$1 $2\",[\"[2-9]0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{4,5})\",\"$1 $2\",[\"2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"87\"]],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"9(?:[5-79]|8[1-6])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-8]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"]]],\"0\"],\"QA\":[\"974\",\"00\",\"800\\\\d{4}|(?:2|800)\\\\d{6}|(?:0080|[3-7])\\\\d{7}\",[7,8,9,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"2[16]|8\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[3-7]\"]]]],\"RE\":[\"262\",\"00\",\"(?:26|[689]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2689]\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"26(?:2\\\\d\\\\d|3(?:0\\\\d|1[0-6]))\\\\d{4}\"],[\"69(?:2\\\\d\\\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\\\d{4}\"],[\"80\\\\d{7}\"],[\"89[1-37-9]\\\\d{6}\"],0,0,0,0,[\"9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]))\\\\d{4}\"],[\"8(?:1[019]|2[0156]|84|90)\\\\d{6}\"]]],\"RO\":[\"40\",\"00\",\"(?:[2378]\\\\d|62|90)\\\\d{7}|[23]\\\\d{5}\",[6,9],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"2[3-6]\",\"2[3-6]\\\\d9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"219|31\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[23]1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[236-9]\"],\"0$1\"]],\"0\",0,0,0,0,0,0,0,\" int \"],\"RS\":[\"381\",\"00\",\"38[02-9]\\\\d{6,9}|6\\\\d{7,9}|90\\\\d{4,8}|38\\\\d{5,6}|(?:7\\\\d\\\\d|800)\\\\d{3,9}|(?:[12]\\\\d|3[0-79])\\\\d{5,10}\",[6,7,8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3,9})\",\"$1 $2\",[\"(?:2[389]|39)0|[7-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5,10})\",\"$1 $2\",[\"[1-36]\"],\"0$1\"]],\"0\"],\"RU\":[\"7\",\"810\",\"8\\\\d{13}|[347-9]\\\\d{9}\",[10,14],[[\"(\\\\d{4})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"7(?:1[0-8]|2[1-9])\",\"7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))\",\"7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2\"],\"8 ($1)\",1],[\"(\\\\d{5})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"7(?:1[0-68]|2[1-9])\",\"7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))\",\"7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]\"],\"8 ($1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"8 ($1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[349]|8(?:[02-7]|1[1-8])\"],\"8 ($1)\",1],[\"(\\\\d{4})(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"8\"],\"8 ($1)\"]],\"8\",0,0,0,0,\"3[04-689]|[489]\",0,\"8~10\"],\"RW\":[\"250\",\"00\",\"(?:06|[27]\\\\d\\\\d|[89]00)\\\\d{6}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"0\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[7-9]\"],\"0$1\"]],\"0\"],\"SA\":[\"966\",\"00\",\"92\\\\d{7}|(?:[15]|8\\\\d)\\\\d{8}\",[9,10],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"9\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"81\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]],\"0\"],\"SB\":[\"677\",\"0[01]\",\"(?:[1-6]|[7-9]\\\\d\\\\d)\\\\d{4}\",[5,7],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"7|8[4-9]|9(?:[1-8]|9[0-8])\"]]]],\"SC\":[\"248\",\"010|0[0-2]\",\"800\\\\d{4}|(?:[249]\\\\d|64)\\\\d{5}\",[7],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[246]|9[57]\"]]],0,0,0,0,0,0,0,\"00\"],\"SD\":[\"249\",\"00\",\"[19]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[19]\"],\"0$1\"]],\"0\"],\"SE\":[\"46\",\"00\",\"(?:[26]\\\\d\\\\d|9)\\\\d{9}|[1-9]\\\\d{8}|[1-689]\\\\d{7}|[1-4689]\\\\d{6}|2\\\\d{5}\",[6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{2,3})(\\\\d{2})\",\"$1-$2 $3\",[\"20\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"9(?:00|39|44|9)\"],\"0$1\",0,\"$1 $2\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})\",\"$1-$2 $3\",[\"[12][136]|3[356]|4[0246]|6[03]|90[1-9]\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d)(\\\\d{2,3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"8\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{2})\",\"$1-$2 $3\",[\"1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{3})\",\"$1-$2 $3\",[\"9(?:00|39|44)\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{2})(\\\\d{2,3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"10|7\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"8\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1-$2 $3 $4\",[\"9\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4 $5\",[\"[26]\"],\"0$1\",0,\"$1 $2 $3 $4 $5\"]],\"0\"],\"SG\":[\"65\",\"0[0-3]\\\\d\",\"(?:(?:1\\\\d|8)\\\\d\\\\d|7000)\\\\d{7}|[3689]\\\\d{7}\",[8,10,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[369]|8(?:0[1-8]|[1-9])\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{4})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]]]],\"SH\":[\"290\",\"00\",\"(?:[256]\\\\d|8)\\\\d{3}\",[4,5],0,0,0,0,0,0,\"[256]\"],\"SI\":[\"386\",\"00|10(?:22|66|88|99)\",\"[1-7]\\\\d{7}|8\\\\d{4,7}|90\\\\d{4,6}\",[5,6,7,8],[[\"(\\\\d{2})(\\\\d{3,6})\",\"$1 $2\",[\"8[09]|9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"59|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[37][01]|4[0139]|51|6\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[1-57]\"],\"(0$1)\"]],\"0\",0,0,0,0,0,0,\"00\"],\"SJ\":[\"47\",\"00\",\"0\\\\d{4}|(?:[489]\\\\d|79)\\\\d{6}\",[5,8],0,0,0,0,0,0,\"79\"],\"SK\":[\"421\",\"00\",\"[2-689]\\\\d{8}|[2-59]\\\\d{6}|[2-5]\\\\d{5}\",[6,7,9],[[\"(\\\\d)(\\\\d{2})(\\\\d{3,4})\",\"$1 $2 $3\",[\"21\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"[3-5][1-8]1\",\"[3-5][1-8]1[67]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1/$2 $3 $4\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[689]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1/$2 $3 $4\",[\"[3-5]\"],\"0$1\"]],\"0\"],\"SL\":[\"232\",\"00\",\"(?:[237-9]\\\\d|66)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[236-9]\"],\"(0$1)\"]],\"0\"],\"SM\":[\"378\",\"00\",\"(?:0549|[5-7]\\\\d)\\\\d{6}\",[8,10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-7]\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"0\"]]],0,0,\"([89]\\\\d{5})$\",\"0549$1\"],\"SN\":[\"221\",\"00\",\"(?:[378]\\\\d|93)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[379]\"]]]],\"SO\":[\"252\",\"00\",\"[346-9]\\\\d{8}|[12679]\\\\d{7}|[1-5]\\\\d{6}|[1348]\\\\d{5}\",[6,7,8,9],[[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"8[125]\"]],[\"(\\\\d{6})\",\"$1\",[\"[134]\"]],[\"(\\\\d)(\\\\d{6})\",\"$1 $2\",[\"[15]|2[0-79]|3[0-46-8]|4[0-7]\"]],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"(?:2|90)4|[67]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[348]|64|79|90\"]],[\"(\\\\d{2})(\\\\d{5,7})\",\"$1 $2\",[\"1|28|6[0-35-9]|77|9[2-9]\"]]],\"0\"],\"SR\":[\"597\",\"00\",\"(?:[2-5]|68|[78]\\\\d)\\\\d{5}\",[6,7],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1-$2-$3\",[\"56\"]],[\"(\\\\d{3})(\\\\d{3})\",\"$1-$2\",[\"[2-5]\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[6-8]\"]]]],\"SS\":[\"211\",\"00\",\"[19]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[19]\"],\"0$1\"]],\"0\"],\"ST\":[\"239\",\"00\",\"(?:22|9\\\\d)\\\\d{5}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[29]\"]]]],\"SV\":[\"503\",\"00\",\"[267]\\\\d{7}|[89]00\\\\d{4}(?:\\\\d{4})?\",[7,8,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[89]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[267]\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"]]]],\"SX\":[\"1\",\"011\",\"7215\\\\d{6}|(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"(5\\\\d{6})$|1\",\"721$1\",0,\"721\"],\"SY\":[\"963\",\"00\",\"[1-39]\\\\d{8}|[1-5]\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-5]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"],\"0$1\",1]],\"0\"],\"SZ\":[\"268\",\"00\",\"0800\\\\d{4}|(?:[237]\\\\d|900)\\\\d{6}\",[8,9],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[0237]\"]],[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"9\"]]]],\"TA\":[\"290\",\"00\",\"8\\\\d{3}\",[4],0,0,0,0,0,0,\"8\"],\"TC\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|649|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-479]\\\\d{6})$|1\",\"649$1\",0,\"649\"],\"TD\":[\"235\",\"00|16\",\"(?:22|[69]\\\\d|77)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2679]\"]]],0,0,0,0,0,0,0,\"00\"],\"TG\":[\"228\",\"00\",\"[279]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[279]\"]]]],\"TH\":[\"66\",\"00[1-9]\",\"(?:001800|[2-57]|[689]\\\\d)\\\\d{7}|1\\\\d{7,9}\",[8,9,10,13],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[13-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],\"TJ\":[\"992\",\"810\",\"[0-57-9]\\\\d{8}\",[9],[[\"(\\\\d{6})(\\\\d)(\\\\d{2})\",\"$1 $2 $3\",[\"331\",\"3317\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"44[02-479]|[34]7\"]],[\"(\\\\d{4})(\\\\d)(\\\\d{4})\",\"$1 $2 $3\",[\"3[1-5]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[0-57-9]\"]]],0,0,0,0,0,0,0,\"8~10\"],\"TK\":[\"690\",\"00\",\"[2-47]\\\\d{3,6}\",[4,5,6,7]],\"TL\":[\"670\",\"00\",\"7\\\\d{7}|(?:[2-47]\\\\d|[89]0)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-489]|70\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"7\"]]]],\"TM\":[\"993\",\"810\",\"[1-6]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"12\"],\"(8 $1)\"],[\"(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[1-5]\"],\"(8 $1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"6\"],\"8 $1\"]],\"8\",0,0,0,0,0,0,\"8~10\"],\"TN\":[\"216\",\"00\",\"[2-57-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-57-9]\"]]]],\"TO\":[\"676\",\"00\",\"(?:0800|(?:[5-8]\\\\d\\\\d|999)\\\\d)\\\\d{3}|[2-8]\\\\d{4}\",[5,7],[[\"(\\\\d{2})(\\\\d{3})\",\"$1-$2\",[\"[2-4]|50|6[09]|7[0-24-69]|8[05]\"]],[\"(\\\\d{4})(\\\\d{3})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[5-9]\"]]]],\"TR\":[\"90\",\"00\",\"4\\\\d{6}|8\\\\d{11,12}|(?:[2-58]\\\\d\\\\d|900)\\\\d{7}\",[7,10,12,13],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"512|8[01589]|90\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"5(?:[0-59]|61)\",\"5(?:[0-59]|61[06])\",\"5(?:[0-59]|61[06]1)\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[24][1-8]|3[1-9]\"],\"(0$1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{6,7})\",\"$1 $2 $3\",[\"80\"],\"0$1\",1]],\"0\"],\"TT\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-46-8]\\\\d{6})$|1\",\"868$1\",0,\"868\"],\"TV\":[\"688\",\"00\",\"(?:2|7\\\\d\\\\d|90)\\\\d{4}\",[5,6,7],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"2\"]],[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"90\"]],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"7\"]]]],\"TW\":[\"886\",\"0(?:0[25-79]|19)\",\"[2-689]\\\\d{8}|7\\\\d{9,10}|[2-8]\\\\d{7}|2\\\\d{6}\",[7,8,9,10,11],[[\"(\\\\d{2})(\\\\d)(\\\\d{4})\",\"$1 $2 $3\",[\"202\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[258]0\"],\"0$1\"],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]\",\"[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[49]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\",0,0,0,0,0,0,0,\"#\"],\"TZ\":[\"255\",\"00[056]\",\"(?:[25-8]\\\\d|41|90)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[24]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[67]\"],\"0$1\"]],\"0\"],\"UA\":[\"380\",\"00\",\"[89]\\\\d{9}|[3-9]\\\\d{8}\",[9,10],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]\",\"6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])\",\"3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-7]|89|9[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"]],\"0\",0,0,0,0,0,0,\"0~0\"],\"UG\":[\"256\",\"00[057]\",\"800\\\\d{6}|(?:[29]0|[347]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"202\",\"2024\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"[27-9]|4(?:6[45]|[7-9])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"[34]\"],\"0$1\"]],\"0\"],\"US\":[\"1\",\"011\",\"[2-9]\\\\d{9}|3\\\\d{6}\",[10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"310\"],0,1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"($1) $2-$3\",[\"[2-9]\"],0,1,\"$1-$2-$3\"]],\"1\",0,0,0,0,0,[[\"(?:5056(?:[0-35-9]\\\\d|4[468])|73020\\\\d)\\\\d{4}|(?:4722|505[2-57-9]|983[289])\\\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[0149]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\\\d{6}\"],[\"\"],[\"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}\"],[\"900[2-9]\\\\d{6}\"],[\"52(?:3(?:[2-46-9][02-9]\\\\d|5(?:[02-46-9]\\\\d|5[0-46-9]))|4(?:[2-478][02-9]\\\\d|5(?:[034]\\\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\\\d)|9(?:[05-9]\\\\d|2[0-5]|49)))\\\\d{4}|52[34][2-9]1[02-9]\\\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\\\d{6}\"]]],\"UY\":[\"598\",\"0(?:0|1[3-9]\\\\d)\",\"0004\\\\d{2,9}|[1249]\\\\d{7}|(?:[49]\\\\d|80)\\\\d{5}\",[6,7,8,9,10,11,12,13],[[\"(\\\\d{3})(\\\\d{3,4})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[49]0|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[124]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3 $4\",[\"0\"]]],\"0\",0,0,0,0,0,0,\"00\",\" int. \"],\"UZ\":[\"998\",\"810\",\"(?:20|33|[5-79]\\\\d|88)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[235-9]\"],\"8 $1\"]],\"8\",0,0,0,0,0,0,\"8~10\"],\"VA\":[\"39\",\"00\",\"0\\\\d{5,10}|3[0-8]\\\\d{7,10}|55\\\\d{8}|8\\\\d{5}(?:\\\\d{2,4})?|(?:1\\\\d|39)\\\\d{7,8}\",[6,7,8,9,10,11],0,0,0,0,0,0,\"06698\"],\"VC\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|784|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"784$1\",0,\"784\"],\"VE\":[\"58\",\"00\",\"[68]00\\\\d{7}|(?:[24]\\\\d|[59]0)\\\\d{8}\",[10],[[\"(\\\\d{3})(\\\\d{7})\",\"$1-$2\",[\"[24-689]\"],\"0$1\"]],\"0\"],\"VG\":[\"1\",\"011\",\"(?:284|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-578]\\\\d{6})$|1\",\"284$1\",0,\"284\"],\"VI\":[\"1\",\"011\",\"[58]\\\\d{9}|(?:34|90)0\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"340$1\",0,\"340\"],\"VN\":[\"84\",\"00\",\"[12]\\\\d{9}|[135-9]\\\\d{8}|[16]\\\\d{7}|[16-8]\\\\d{6}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"80\"],\"0$1\",1],[\"(\\\\d{4})(\\\\d{4,6})\",\"$1 $2\",[\"1\"],0,1],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"6\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[357-9]\"],\"0$1\",1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2[48]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"],\"0$1\",1]],\"0\"],\"VU\":[\"678\",\"00\",\"[57-9]\\\\d{6}|(?:[238]\\\\d|48)\\\\d{3}\",[5,7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[57-9]\"]]]],\"WF\":[\"681\",\"00\",\"(?:40|72)\\\\d{4}|8\\\\d{5}(?:\\\\d{3})?\",[6,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[478]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]]]],\"WS\":[\"685\",\"0\",\"(?:[2-6]|8\\\\d{5})\\\\d{4}|[78]\\\\d{6}|[68]\\\\d{5}\",[5,6,7,10],[[\"(\\\\d{5})\",\"$1\",[\"[2-5]|6[1-9]\"]],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1 $2\",[\"[68]\"]],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"7\"]]]],\"XK\":[\"383\",\"00\",\"[23]\\\\d{7,8}|(?:4\\\\d\\\\d|[89]00)\\\\d{5}\",[8,9],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-4]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[23]\"],\"0$1\"]],\"0\"],\"YE\":[\"967\",\"00\",\"(?:1|7\\\\d)\\\\d{7}|[1-7]\\\\d{6}\",[7,8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-6]|7(?:[24-6]|8[0-7])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\"],\"YT\":[\"262\",\"00\",\"(?:80|9\\\\d)\\\\d{7}|(?:26|63)9\\\\d{6}\",[9],0,\"0\",0,0,0,0,0,[[\"269(?:0[0-467]|5[0-4]|6\\\\d|[78]0)\\\\d{4}\"],[\"639(?:0[0-79]|1[019]|[267]\\\\d|3[09]|40|5[05-9]|9[04-79])\\\\d{4}\"],[\"80\\\\d{7}\"],0,0,0,0,0,[\"9(?:(?:39|47)8[01]|769\\\\d)\\\\d{4}\"]]],\"ZA\":[\"27\",\"00\",\"[1-79]\\\\d{8}|8\\\\d{4,9}\",[5,6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1 $2\",[\"8[1-4]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\",\"$1 $2 $3\",[\"8[1-4]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"860\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],\"ZM\":[\"260\",\"00\",\"800\\\\d{6}|(?:21|63|[79]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[28]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"[79]\"],\"0$1\"]],\"0\"],\"ZW\":[\"263\",\"00\",\"2(?:[0-57-9]\\\\d{6,8}|6[0-24-9]\\\\d{6,7})|[38]\\\\d{9}|[35-8]\\\\d{8}|[3-6]\\\\d{7}|[1-689]\\\\d{6}|[1-3569]\\\\d{5}|[1356]\\\\d{4}\",[5,6,7,8,9,10],[[\"(\\\\d{3})(\\\\d{3,5})\",\"$1 $2\",[\"2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3\",[\"[49]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"80\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2\",\"2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)\",\"2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,5})\",\"$1 $2\",[\"1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"29[013-9]|39|54\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3,5})\",\"$1 $2\",[\"(?:25|54)8\",\"258|5483\"],\"0$1\"]],\"0\"]},\"nonGeographic\":{\"800\":[\"800\",0,\"(?:00|[1-9]\\\\d)\\\\d{6}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"\\\\d\"]]],0,0,0,0,0,0,[0,0,[\"(?:00|[1-9]\\\\d)\\\\d{6}\"]]],\"808\":[\"808\",0,\"[1-9]\\\\d{7}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[1-9]\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,[\"[1-9]\\\\d{7}\"]]],\"870\":[\"870\",0,\"7\\\\d{11}|[35-7]\\\\d{8}\",[9,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[35-7]\"]]],0,0,0,0,0,0,[0,[\"(?:[356]|774[45])\\\\d{8}|7[6-8]\\\\d{7}\"]]],\"878\":[\"878\",0,\"10\\\\d{10}\",[12],[[\"(\\\\d{2})(\\\\d{5})(\\\\d{5})\",\"$1 $2 $3\",[\"1\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[\"10\\\\d{10}\"]]],\"881\":[\"881\",0,\"6\\\\d{9}|[0-36-9]\\\\d{8}\",[9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\",[\"[0-37-9]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{5,6})\",\"$1 $2 $3\",[\"6\"]]],0,0,0,0,0,0,[0,[\"6\\\\d{9}|[0-36-9]\\\\d{8}\"]]],\"882\":[\"882\",0,\"[13]\\\\d{6}(?:\\\\d{2,5})?|[19]\\\\d{7}|(?:[25]\\\\d\\\\d|4)\\\\d{7}(?:\\\\d{2})?\",[7,8,9,10,11,12],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"16|342\"]],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"49\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"1[36]|9\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"3[23]\"]],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"16\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"10|23|3(?:[15]|4[57])|4|51\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"34\"]],[\"(\\\\d{2})(\\\\d{4,5})(\\\\d{5})\",\"$1 $2 $3\",[\"[1-35]\"]]],0,0,0,0,0,0,[0,[\"342\\\\d{4}|(?:337|49)\\\\d{6}|(?:3(?:2|47|7\\\\d{3})|50\\\\d{3})\\\\d{7}\",[7,8,9,10,12]],0,0,0,0,0,0,[\"1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\\\d{4}|6\\\\d{5,10})|(?:345\\\\d|9[89])\\\\d{6}|(?:10|2(?:3|85\\\\d)|3(?:[15]|[69]\\\\d\\\\d)|4[15-8]|51)\\\\d{8}\"]]],\"883\":[\"883\",0,\"(?:[1-4]\\\\d|51)\\\\d{6,10}\",[8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,8})\",\"$1 $2 $3\",[\"[14]|2[24-689]|3[02-689]|51[24-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"510\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"21\"]],[\"(\\\\d{4})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"51[13]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"[235]\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[\"(?:2(?:00\\\\d\\\\d|10)|(?:370[1-9]|51\\\\d0)\\\\d)\\\\d{7}|51(?:00\\\\d{5}|[24-9]0\\\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\\\d{5,9}\"]]],\"888\":[\"888\",0,\"\\\\d{11}\",[11],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\"]],0,0,0,0,0,0,[0,0,0,0,0,0,[\"\\\\d{11}\"]]],\"979\":[\"979\",0,\"[1359]\\\\d{8}\",[9],[[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[1359]\"]]],0,0,0,0,0,0,[0,0,0,[\"[1359]\\\\d{8}\"]]]}}","// Importing from a \".js\" file is a workaround for Node.js \"ES Modules\"\r\n// importing system which is even uncapable of importing \"*.json\" files.\r\nimport metadata from '../../metadata.min.json.js'\r\n\r\nexport default function withMetadataArgument(func, _arguments) {\r\n\tvar args = Array.prototype.slice.call(_arguments)\r\n\targs.push(metadata)\r\n\treturn func.apply(this, args)\r\n}","// Copy-pasted from:\n// https://github.com/substack/semver-compare/blob/master/index.js\n//\n// Inlining this function because some users reported issues with\n// importing from `semver-compare` in a browser with ES6 \"native\" modules.\n//\n// Fixes `semver-compare` not being able to compare versions with alpha/beta/etc \"tags\".\n// https://github.com/catamphetamine/libphonenumber-js/issues/381\nexport default function (a, b) {\n a = a.split('-');\n b = b.split('-');\n var pa = a[0].split('.');\n var pb = b[0].split('.');\n\n for (var i = 0; i < 3; i++) {\n var na = Number(pa[i]);\n var nb = Number(pb[i]);\n if (na > nb) return 1;\n if (nb > na) return -1;\n if (!isNaN(na) && isNaN(nb)) return 1;\n if (isNaN(na) && !isNaN(nb)) return -1;\n }\n\n if (a[1] && b[1]) {\n return a[1] > b[1] ? 1 : a[1] < b[1] ? -1 : 0;\n }\n\n return !a[1] && b[1] ? 1 : a[1] && !b[1] ? -1 : 0;\n}\n","var objectConstructor = {}.constructor;\nexport default function isObject(object) {\n return object !== undefined && object !== null && object.constructor === objectConstructor;\n}\n","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nimport compare from './tools/semver-compare.js';\nimport isObject from './helpers/isObject.js'; // Added \"possibleLengths\" and renamed\n// \"country_phone_code_to_countries\" to \"country_calling_codes\".\n\nvar V2 = '1.0.18'; // Added \"idd_prefix\" and \"default_idd_prefix\".\n\nvar V3 = '1.2.0'; // Moved `001` country code to \"nonGeographic\" section of metadata.\n\nvar V4 = '1.7.35';\nvar DEFAULT_EXT_PREFIX = ' ext. ';\nvar CALLING_CODE_REG_EXP = /^\\d+$/;\n/**\r\n * See: https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md\r\n */\n\nvar Metadata = /*#__PURE__*/function () {\n function Metadata(metadata) {\n _classCallCheck(this, Metadata);\n\n validateMetadata(metadata);\n this.metadata = metadata;\n setVersion.call(this, metadata);\n }\n\n _createClass(Metadata, [{\n key: \"getCountries\",\n value: function getCountries() {\n return Object.keys(this.metadata.countries).filter(function (_) {\n return _ !== '001';\n });\n }\n }, {\n key: \"getCountryMetadata\",\n value: function getCountryMetadata(countryCode) {\n return this.metadata.countries[countryCode];\n }\n }, {\n key: \"nonGeographic\",\n value: function nonGeographic() {\n if (this.v1 || this.v2 || this.v3) return; // `nonGeographical` was a typo.\n // It's present in metadata generated from `1.7.35` to `1.7.37`.\n // The test case could be found by searching for \"nonGeographical\".\n\n return this.metadata.nonGeographic || this.metadata.nonGeographical;\n }\n }, {\n key: \"hasCountry\",\n value: function hasCountry(country) {\n return this.getCountryMetadata(country) !== undefined;\n }\n }, {\n key: \"hasCallingCode\",\n value: function hasCallingCode(callingCode) {\n if (this.getCountryCodesForCallingCode(callingCode)) {\n return true;\n }\n\n if (this.nonGeographic()) {\n if (this.nonGeographic()[callingCode]) {\n return true;\n }\n } else {\n // A hacky workaround for old custom metadata (generated before V4).\n var countryCodes = this.countryCallingCodes()[callingCode];\n\n if (countryCodes && countryCodes.length === 1 && countryCodes[0] === '001') {\n return true;\n }\n }\n }\n }, {\n key: \"isNonGeographicCallingCode\",\n value: function isNonGeographicCallingCode(callingCode) {\n if (this.nonGeographic()) {\n return this.nonGeographic()[callingCode] ? true : false;\n } else {\n return this.getCountryCodesForCallingCode(callingCode) ? false : true;\n }\n } // Deprecated.\n\n }, {\n key: \"country\",\n value: function country(countryCode) {\n return this.selectNumberingPlan(countryCode);\n }\n }, {\n key: \"selectNumberingPlan\",\n value: function selectNumberingPlan(countryCode, callingCode) {\n // Supports just passing `callingCode` as the first argument.\n if (countryCode && CALLING_CODE_REG_EXP.test(countryCode)) {\n callingCode = countryCode;\n countryCode = null;\n }\n\n if (countryCode && countryCode !== '001') {\n if (!this.hasCountry(countryCode)) {\n throw new Error(\"Unknown country: \".concat(countryCode));\n }\n\n this.numberingPlan = new NumberingPlan(this.getCountryMetadata(countryCode), this);\n } else if (callingCode) {\n if (!this.hasCallingCode(callingCode)) {\n throw new Error(\"Unknown calling code: \".concat(callingCode));\n }\n\n this.numberingPlan = new NumberingPlan(this.getNumberingPlanMetadata(callingCode), this);\n } else {\n this.numberingPlan = undefined;\n }\n\n return this;\n }\n }, {\n key: \"getCountryCodesForCallingCode\",\n value: function getCountryCodesForCallingCode(callingCode) {\n var countryCodes = this.countryCallingCodes()[callingCode];\n\n if (countryCodes) {\n // Metadata before V4 included \"non-geographic entity\" calling codes\n // inside `country_calling_codes` (for example, `\"881\":[\"001\"]`).\n // Now the semantics of `country_calling_codes` has changed:\n // it's specifically for \"countries\" now.\n // Older versions of custom metadata will simply skip parsing\n // \"non-geographic entity\" phone numbers with new versions\n // of this library: it's not considered a bug,\n // because such numbers are extremely rare,\n // and developers extremely rarely use custom metadata.\n if (countryCodes.length === 1 && countryCodes[0].length === 3) {\n return;\n }\n\n return countryCodes;\n }\n }\n }, {\n key: \"getCountryCodeForCallingCode\",\n value: function getCountryCodeForCallingCode(callingCode) {\n var countryCodes = this.getCountryCodesForCallingCode(callingCode);\n\n if (countryCodes) {\n return countryCodes[0];\n }\n }\n }, {\n key: \"getNumberingPlanMetadata\",\n value: function getNumberingPlanMetadata(callingCode) {\n var countryCode = this.getCountryCodeForCallingCode(callingCode);\n\n if (countryCode) {\n return this.getCountryMetadata(countryCode);\n }\n\n if (this.nonGeographic()) {\n var metadata = this.nonGeographic()[callingCode];\n\n if (metadata) {\n return metadata;\n }\n } else {\n // A hacky workaround for old custom metadata (generated before V4).\n // In that metadata, there was no concept of \"non-geographic\" metadata\n // so metadata for `001` country code was stored along with other countries.\n // The test case can be found by searching for:\n // \"should work around `nonGeographic` metadata not existing\".\n var countryCodes = this.countryCallingCodes()[callingCode];\n\n if (countryCodes && countryCodes.length === 1 && countryCodes[0] === '001') {\n return this.metadata.countries['001'];\n }\n }\n } // Deprecated.\n\n }, {\n key: \"countryCallingCode\",\n value: function countryCallingCode() {\n return this.numberingPlan.callingCode();\n } // Deprecated.\n\n }, {\n key: \"IDDPrefix\",\n value: function IDDPrefix() {\n return this.numberingPlan.IDDPrefix();\n } // Deprecated.\n\n }, {\n key: \"defaultIDDPrefix\",\n value: function defaultIDDPrefix() {\n return this.numberingPlan.defaultIDDPrefix();\n } // Deprecated.\n\n }, {\n key: \"nationalNumberPattern\",\n value: function nationalNumberPattern() {\n return this.numberingPlan.nationalNumberPattern();\n } // Deprecated.\n\n }, {\n key: \"possibleLengths\",\n value: function possibleLengths() {\n return this.numberingPlan.possibleLengths();\n } // Deprecated.\n\n }, {\n key: \"formats\",\n value: function formats() {\n return this.numberingPlan.formats();\n } // Deprecated.\n\n }, {\n key: \"nationalPrefixForParsing\",\n value: function nationalPrefixForParsing() {\n return this.numberingPlan.nationalPrefixForParsing();\n } // Deprecated.\n\n }, {\n key: \"nationalPrefixTransformRule\",\n value: function nationalPrefixTransformRule() {\n return this.numberingPlan.nationalPrefixTransformRule();\n } // Deprecated.\n\n }, {\n key: \"leadingDigits\",\n value: function leadingDigits() {\n return this.numberingPlan.leadingDigits();\n } // Deprecated.\n\n }, {\n key: \"hasTypes\",\n value: function hasTypes() {\n return this.numberingPlan.hasTypes();\n } // Deprecated.\n\n }, {\n key: \"type\",\n value: function type(_type) {\n return this.numberingPlan.type(_type);\n } // Deprecated.\n\n }, {\n key: \"ext\",\n value: function ext() {\n return this.numberingPlan.ext();\n }\n }, {\n key: \"countryCallingCodes\",\n value: function countryCallingCodes() {\n if (this.v1) return this.metadata.country_phone_code_to_countries;\n return this.metadata.country_calling_codes;\n } // Deprecated.\n\n }, {\n key: \"chooseCountryByCountryCallingCode\",\n value: function chooseCountryByCountryCallingCode(callingCode) {\n return this.selectNumberingPlan(callingCode);\n }\n }, {\n key: \"hasSelectedNumberingPlan\",\n value: function hasSelectedNumberingPlan() {\n return this.numberingPlan !== undefined;\n }\n }]);\n\n return Metadata;\n}();\n\nexport { Metadata as default };\n\nvar NumberingPlan = /*#__PURE__*/function () {\n function NumberingPlan(metadata, globalMetadataObject) {\n _classCallCheck(this, NumberingPlan);\n\n this.globalMetadataObject = globalMetadataObject;\n this.metadata = metadata;\n setVersion.call(this, globalMetadataObject.metadata);\n }\n\n _createClass(NumberingPlan, [{\n key: \"callingCode\",\n value: function callingCode() {\n return this.metadata[0];\n } // Formatting information for regions which share\n // a country calling code is contained by only one region\n // for performance reasons. For example, for NANPA region\n // (\"North American Numbering Plan Administration\",\n // which includes USA, Canada, Cayman Islands, Bahamas, etc)\n // it will be contained in the metadata for `US`.\n\n }, {\n key: \"getDefaultCountryMetadataForRegion\",\n value: function getDefaultCountryMetadataForRegion() {\n return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());\n } // Is always present.\n\n }, {\n key: \"IDDPrefix\",\n value: function IDDPrefix() {\n if (this.v1 || this.v2) return;\n return this.metadata[1];\n } // Is only present when a country supports multiple IDD prefixes.\n\n }, {\n key: \"defaultIDDPrefix\",\n value: function defaultIDDPrefix() {\n if (this.v1 || this.v2) return;\n return this.metadata[12];\n }\n }, {\n key: \"nationalNumberPattern\",\n value: function nationalNumberPattern() {\n if (this.v1 || this.v2) return this.metadata[1];\n return this.metadata[2];\n } // \"possible length\" data is always present in Google's metadata.\n\n }, {\n key: \"possibleLengths\",\n value: function possibleLengths() {\n if (this.v1) return;\n return this.metadata[this.v2 ? 2 : 3];\n }\n }, {\n key: \"_getFormats\",\n value: function _getFormats(metadata) {\n return metadata[this.v1 ? 2 : this.v2 ? 3 : 4];\n } // For countries of the same region (e.g. NANPA)\n // formats are all stored in the \"main\" country for that region.\n // E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n\n }, {\n key: \"formats\",\n value: function formats() {\n var _this = this;\n\n var formats = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];\n return formats.map(function (_) {\n return new Format(_, _this);\n });\n }\n }, {\n key: \"nationalPrefix\",\n value: function nationalPrefix() {\n return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];\n }\n }, {\n key: \"_getNationalPrefixFormattingRule\",\n value: function _getNationalPrefixFormattingRule(metadata) {\n return metadata[this.v1 ? 4 : this.v2 ? 5 : 6];\n } // For countries of the same region (e.g. NANPA)\n // national prefix formatting rule is stored in the \"main\" country for that region.\n // E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n\n }, {\n key: \"nationalPrefixFormattingRule\",\n value: function nationalPrefixFormattingRule() {\n return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());\n }\n }, {\n key: \"_nationalPrefixForParsing\",\n value: function _nationalPrefixForParsing() {\n return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];\n }\n }, {\n key: \"nationalPrefixForParsing\",\n value: function nationalPrefixForParsing() {\n // If `national_prefix_for_parsing` is not set explicitly,\n // then infer it from `national_prefix` (if any)\n return this._nationalPrefixForParsing() || this.nationalPrefix();\n }\n }, {\n key: \"nationalPrefixTransformRule\",\n value: function nationalPrefixTransformRule() {\n return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];\n }\n }, {\n key: \"_getNationalPrefixIsOptionalWhenFormatting\",\n value: function _getNationalPrefixIsOptionalWhenFormatting() {\n return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];\n } // For countries of the same region (e.g. NANPA)\n // \"national prefix is optional when formatting\" flag is\n // stored in the \"main\" country for that region.\n // E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n\n }, {\n key: \"nationalPrefixIsOptionalWhenFormattingInNationalFormat\",\n value: function nationalPrefixIsOptionalWhenFormattingInNationalFormat() {\n return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());\n }\n }, {\n key: \"leadingDigits\",\n value: function leadingDigits() {\n return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];\n }\n }, {\n key: \"types\",\n value: function types() {\n return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];\n }\n }, {\n key: \"hasTypes\",\n value: function hasTypes() {\n // Versions 1.2.0 - 1.2.4: can be `[]`.\n\n /* istanbul ignore next */\n if (this.types() && this.types().length === 0) {\n return false;\n } // Versions <= 1.2.4: can be `undefined`.\n // Version >= 1.2.5: can be `0`.\n\n\n return !!this.types();\n }\n }, {\n key: \"type\",\n value: function type(_type2) {\n if (this.hasTypes() && getType(this.types(), _type2)) {\n return new Type(getType(this.types(), _type2), this);\n }\n }\n }, {\n key: \"ext\",\n value: function ext() {\n if (this.v1 || this.v2) return DEFAULT_EXT_PREFIX;\n return this.metadata[13] || DEFAULT_EXT_PREFIX;\n }\n }]);\n\n return NumberingPlan;\n}();\n\nvar Format = /*#__PURE__*/function () {\n function Format(format, metadata) {\n _classCallCheck(this, Format);\n\n this._format = format;\n this.metadata = metadata;\n }\n\n _createClass(Format, [{\n key: \"pattern\",\n value: function pattern() {\n return this._format[0];\n }\n }, {\n key: \"format\",\n value: function format() {\n return this._format[1];\n }\n }, {\n key: \"leadingDigitsPatterns\",\n value: function leadingDigitsPatterns() {\n return this._format[2] || [];\n }\n }, {\n key: \"nationalPrefixFormattingRule\",\n value: function nationalPrefixFormattingRule() {\n return this._format[3] || this.metadata.nationalPrefixFormattingRule();\n }\n }, {\n key: \"nationalPrefixIsOptionalWhenFormattingInNationalFormat\",\n value: function nationalPrefixIsOptionalWhenFormattingInNationalFormat() {\n return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();\n }\n }, {\n key: \"nationalPrefixIsMandatoryWhenFormattingInNationalFormat\",\n value: function nationalPrefixIsMandatoryWhenFormattingInNationalFormat() {\n // National prefix is omitted if there's no national prefix formatting rule\n // set for this country, or when the national prefix formatting rule\n // contains no national prefix itself, or when this rule is set but\n // national prefix is optional for this phone number format\n // (and it is not enforced explicitly)\n return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();\n } // Checks whether national prefix formatting rule contains national prefix.\n\n }, {\n key: \"usesNationalPrefix\",\n value: function usesNationalPrefix() {\n return this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a \"dummy\" one.\n !FIRST_GROUP_ONLY_PREFIX_PATTERN.test(this.nationalPrefixFormattingRule()) // In compressed metadata, `this.nationalPrefixFormattingRule()` is `0`\n // when `national_prefix_formatting_rule` is not present.\n // So, `true` or `false` are returned explicitly here, so that\n // `0` number isn't returned.\n ? true : false;\n }\n }, {\n key: \"internationalFormat\",\n value: function internationalFormat() {\n return this._format[5] || this.format();\n }\n }]);\n\n return Format;\n}();\n/**\r\n * A pattern that is used to determine if the national prefix formatting rule\r\n * has the first group only, i.e., does not start with the national prefix.\r\n * Note that the pattern explicitly allows for unbalanced parentheses.\r\n */\n\n\nvar FIRST_GROUP_ONLY_PREFIX_PATTERN = /^\\(?\\$1\\)?$/;\n\nvar Type = /*#__PURE__*/function () {\n function Type(type, metadata) {\n _classCallCheck(this, Type);\n\n this.type = type;\n this.metadata = metadata;\n }\n\n _createClass(Type, [{\n key: \"pattern\",\n value: function pattern() {\n if (this.metadata.v1) return this.type;\n return this.type[0];\n }\n }, {\n key: \"possibleLengths\",\n value: function possibleLengths() {\n if (this.metadata.v1) return;\n return this.type[1] || this.metadata.possibleLengths();\n }\n }]);\n\n return Type;\n}();\n\nfunction getType(types, type) {\n switch (type) {\n case 'FIXED_LINE':\n return types[0];\n\n case 'MOBILE':\n return types[1];\n\n case 'TOLL_FREE':\n return types[2];\n\n case 'PREMIUM_RATE':\n return types[3];\n\n case 'PERSONAL_NUMBER':\n return types[4];\n\n case 'VOICEMAIL':\n return types[5];\n\n case 'UAN':\n return types[6];\n\n case 'PAGER':\n return types[7];\n\n case 'VOIP':\n return types[8];\n\n case 'SHARED_COST':\n return types[9];\n }\n}\n\nexport function validateMetadata(metadata) {\n if (!metadata) {\n throw new Error('[libphonenumber-js] `metadata` argument not passed. Check your arguments.');\n } // `country_phone_code_to_countries` was renamed to\n // `country_calling_codes` in `1.0.18`.\n\n\n if (!isObject(metadata) || !isObject(metadata.countries)) {\n throw new Error(\"[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got \".concat(isObject(metadata) ? 'an object of shape: { ' + Object.keys(metadata).join(', ') + ' }' : 'a ' + typeOf(metadata) + ': ' + metadata, \".\"));\n }\n} // Babel transforms `typeof` into some \"branches\"\n// so istanbul will show this as \"branch not covered\".\n\n/* istanbul ignore next */\n\nvar typeOf = function typeOf(_) {\n return _typeof(_);\n};\n/**\r\n * Returns extension prefix for a country.\r\n * @param {string} country\r\n * @param {object} metadata\r\n * @return {string?}\r\n * @example\r\n * // Returns \" ext. \"\r\n * getExtPrefix(\"US\")\r\n */\n\n\nexport function getExtPrefix(country, metadata) {\n metadata = new Metadata(metadata);\n\n if (metadata.hasCountry(country)) {\n return metadata.country(country).ext();\n }\n\n return DEFAULT_EXT_PREFIX;\n}\n/**\r\n * Returns \"country calling code\" for a country.\r\n * Throws an error if the country doesn't exist or isn't supported by this library.\r\n * @param {string} country\r\n * @param {object} metadata\r\n * @return {string}\r\n * @example\r\n * // Returns \"44\"\r\n * getCountryCallingCode(\"GB\")\r\n */\n\nexport function getCountryCallingCode(country, metadata) {\n metadata = new Metadata(metadata);\n\n if (metadata.hasCountry(country)) {\n return metadata.country(country).countryCallingCode();\n }\n\n throw new Error(\"Unknown country: \".concat(country));\n}\nexport function isSupportedCountry(country, metadata) {\n // metadata = new Metadata(metadata)\n // return metadata.hasCountry(country)\n return metadata.countries.hasOwnProperty(country);\n}\n\nfunction setVersion(metadata) {\n var version = metadata.version;\n\n if (typeof version === 'number') {\n this.v1 = version === 1;\n this.v2 = version === 2;\n this.v3 = version === 3;\n this.v4 = version === 4;\n } else {\n if (!version) {\n this.v1 = true;\n } else if (compare(version, V3) === -1) {\n this.v2 = true;\n } else if (compare(version, V4) === -1) {\n this.v3 = true;\n } else {\n this.v4 = true;\n }\n }\n} // const ISO_COUNTRY_CODE = /^[A-Z]{2}$/\n// function isCountryCode(countryCode) {\n// \treturn ISO_COUNTRY_CODE.test(countryCodeOrCountryCallingCode)\n// }\n","import withMetadataArgument from './withMetadataArgument.js'\r\nimport { getCountryCallingCode as _getCountryCallingCode } from '../../core/index.js'\r\n\r\nexport function getCountryCallingCode() {\r\n\treturn withMetadataArgument(_getCountryCallingCode, arguments)\r\n}","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n/**\r\n * Merges two arrays.\r\n * @param {*} a\r\n * @param {*} b\r\n * @return {*}\r\n */\nexport default function mergeArrays(a, b) {\n var merged = a.slice();\n\n for (var _iterator = _createForOfIteratorHelperLoose(b), _step; !(_step = _iterator()).done;) {\n var element = _step.value;\n\n if (a.indexOf(element) < 0) {\n merged.push(element);\n }\n }\n\n return merged.sort(function (a, b) {\n return a - b;\n }); // ES6 version, requires Set polyfill.\n // let merged = new Set(a)\n // for (const element of b) {\n // \tmerged.add(i)\n // }\n // return Array.from(merged).sort((a, b) => a - b)\n}\n","import mergeArrays from './mergeArrays.js';\nexport default function checkNumberLength(nationalNumber, metadata) {\n return checkNumberLengthForType(nationalNumber, undefined, metadata);\n} // Checks whether a number is possible for the country based on its length.\n// Should only be called for the \"new\" metadata which has \"possible lengths\".\n\nexport function checkNumberLengthForType(nationalNumber, type, metadata) {\n var type_info = metadata.type(type); // There should always be \"<possiblePengths/>\" set for every type element.\n // This is declared in the XML schema.\n // For size efficiency, where a sub-description (e.g. fixed-line)\n // has the same \"<possiblePengths/>\" as the \"general description\", this is missing,\n // so we fall back to the \"general description\". Where no numbers of the type\n // exist at all, there is one possible length (-1) which is guaranteed\n // not to match the length of any real phone number.\n\n var possible_lengths = type_info && type_info.possibleLengths() || metadata.possibleLengths(); // let local_lengths = type_info && type.possibleLengthsLocal() || metadata.possibleLengthsLocal()\n // Metadata before version `1.0.18` didn't contain `possible_lengths`.\n\n if (!possible_lengths) {\n return 'IS_POSSIBLE';\n }\n\n if (type === 'FIXED_LINE_OR_MOBILE') {\n // No such country in metadata.\n\n /* istanbul ignore next */\n if (!metadata.type('FIXED_LINE')) {\n // The rare case has been encountered where no fixedLine data is available\n // (true for some non-geographic entities), so we just check mobile.\n return checkNumberLengthForType(nationalNumber, 'MOBILE', metadata);\n }\n\n var mobile_type = metadata.type('MOBILE');\n\n if (mobile_type) {\n // Merge the mobile data in if there was any. \"Concat\" creates a new\n // array, it doesn't edit possible_lengths in place, so we don't need a copy.\n // Note that when adding the possible lengths from mobile, we have\n // to again check they aren't empty since if they are this indicates\n // they are the same as the general desc and should be obtained from there.\n possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths()); // The current list is sorted; we need to merge in the new list and\n // re-sort (duplicates are okay). Sorting isn't so expensive because\n // the lists are very small.\n // if (local_lengths) {\n // \tlocal_lengths = mergeArrays(local_lengths, mobile_type.possibleLengthsLocal())\n // } else {\n // \tlocal_lengths = mobile_type.possibleLengthsLocal()\n // }\n }\n } // If the type doesn't exist then return 'INVALID_LENGTH'.\n else if (type && !type_info) {\n return 'INVALID_LENGTH';\n }\n\n var actual_length = nationalNumber.length; // In `libphonenumber-js` all \"local-only\" formats are dropped for simplicity.\n // // This is safe because there is never an overlap beween the possible lengths\n // // and the local-only lengths; this is checked at build time.\n // if (local_lengths && local_lengths.indexOf(nationalNumber.length) >= 0)\n // {\n // \treturn 'IS_POSSIBLE_LOCAL_ONLY'\n // }\n\n var minimum_length = possible_lengths[0];\n\n if (minimum_length === actual_length) {\n return 'IS_POSSIBLE';\n }\n\n if (minimum_length > actual_length) {\n return 'TOO_SHORT';\n }\n\n if (possible_lengths[possible_lengths.length - 1] < actual_length) {\n return 'TOO_LONG';\n } // We skip the first element since we've already checked it.\n\n\n return possible_lengths.indexOf(actual_length, 1) >= 0 ? 'IS_POSSIBLE' : 'INVALID_LENGTH';\n}\n","import Metadata from './metadata.js';\nimport checkNumberLength from './helpers/checkNumberLength.js';\n/**\r\n * Checks if a phone number is \"possible\" (basically just checks its length).\r\n *\r\n * isPossible(phoneNumberInstance, { ..., v2: true }, metadata)\r\n *\r\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\r\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\r\n *\r\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {string}\r\n */\n\nexport default function isPossiblePhoneNumber(input, options, metadata) {\n /* istanbul ignore if */\n if (options === undefined) {\n options = {};\n }\n\n metadata = new Metadata(metadata);\n\n if (options.v2) {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n\n metadata.selectNumberingPlan(input.countryCallingCode);\n } else {\n if (!input.phone) {\n return false;\n }\n\n if (input.country) {\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n\n metadata.country(input.country);\n } else {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n\n metadata.selectNumberingPlan(input.countryCallingCode);\n }\n } // Old metadata (< 1.0.18) had no \"possible length\" data.\n\n\n if (metadata.possibleLengths()) {\n return isPossibleNumber(input.phone || input.nationalNumber, metadata);\n } else {\n // There was a bug between `1.7.35` and `1.7.37` where \"possible_lengths\"\n // were missing for \"non-geographical\" numbering plans.\n // Just assume the number is possible in such cases:\n // it's unlikely that anyone generated their custom metadata\n // in that short period of time (one day).\n // This code can be removed in some future major version update.\n if (input.countryCallingCode && metadata.isNonGeographicCallingCode(input.countryCallingCode)) {\n // \"Non-geographic entities\" did't have `possibleLengths`\n // due to a bug in metadata generation process.\n return true;\n } else {\n throw new Error('Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.');\n }\n }\n}\nexport function isPossibleNumber(nationalNumber, metadata) {\n //, isInternational) {\n switch (checkNumberLength(nationalNumber, metadata)) {\n case 'IS_POSSIBLE':\n return true;\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n // \treturn !isInternational\n\n default:\n return false;\n }\n}\n","/**\r\n * Checks whether the entire input sequence can be matched\r\n * against the regular expression.\r\n * @return {boolean}\r\n */\nexport default function matchesEntirely(text, regular_expression) {\n // If assigning the `''` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n text = text || '';\n return new RegExp('^(?:' + regular_expression + ')$').test(text);\n}\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nimport Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nvar NON_FIXED_LINE_PHONE_TYPES = ['MOBILE', 'PREMIUM_RATE', 'TOLL_FREE', 'SHARED_COST', 'VOIP', 'PERSONAL_NUMBER', 'PAGER', 'UAN', 'VOICEMAIL']; // Finds out national phone number type (fixed line, mobile, etc)\n\nexport default function getNumberType(input, options, metadata) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {}; // When `parse()` returns an empty object — `{}` —\n // that means that the phone number is malformed,\n // so it can't possibly be valid.\n\n if (!input.country && !input.countryCallingCode) {\n return;\n }\n\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(input.country, input.countryCallingCode);\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone; // The following is copy-pasted from the original function:\n // https://github.com/googlei18n/libphonenumber/blob/3ea547d4fbaa2d0b67588904dfa5d3f2557c27ff/javascript/i18n/phonenumbers/phonenumberutil.js#L2835\n // Is this national number even valid for this country\n\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern())) {\n return;\n } // Is it fixed line number\n\n\n if (isNumberTypeEqualTo(nationalNumber, 'FIXED_LINE', metadata)) {\n // Because duplicate regular expressions are removed\n // to reduce metadata size, if \"mobile\" pattern is \"\"\n // then it means it was removed due to being a duplicate of the fixed-line pattern.\n //\n if (metadata.type('MOBILE') && metadata.type('MOBILE').pattern() === '') {\n return 'FIXED_LINE_OR_MOBILE';\n } // `MOBILE` type pattern isn't included if it matched `FIXED_LINE` one.\n // For example, for \"US\" country.\n // Old metadata (< `1.0.18`) had a specific \"types\" data structure\n // that happened to be `undefined` for `MOBILE` in that case.\n // Newer metadata (>= `1.0.18`) has another data structure that is\n // not `undefined` for `MOBILE` in that case (it's just an empty array).\n // So this `if` is just for backwards compatibility with old metadata.\n\n\n if (!metadata.type('MOBILE')) {\n return 'FIXED_LINE_OR_MOBILE';\n } // Check if the number happens to qualify as both fixed line and mobile.\n // (no such country in the minimal metadata set)\n\n /* istanbul ignore if */\n\n\n if (isNumberTypeEqualTo(nationalNumber, 'MOBILE', metadata)) {\n return 'FIXED_LINE_OR_MOBILE';\n }\n\n return 'FIXED_LINE';\n }\n\n for (var _iterator = _createForOfIteratorHelperLoose(NON_FIXED_LINE_PHONE_TYPES), _step; !(_step = _iterator()).done;) {\n var type = _step.value;\n\n if (isNumberTypeEqualTo(nationalNumber, type, metadata)) {\n return type;\n }\n }\n}\nexport function isNumberTypeEqualTo(nationalNumber, type, metadata) {\n type = metadata.type(type);\n\n if (!type || !type.pattern()) {\n return false;\n } // Check if any possible number lengths are present;\n // if so, we use them to avoid checking\n // the validation pattern if they don't match.\n // If they are absent, this means they match\n // the general description, which we have\n // already checked before a specific number type.\n\n\n if (type.possibleLengths() && type.possibleLengths().indexOf(nationalNumber.length) < 0) {\n return false;\n }\n\n return matchesEntirely(nationalNumber, type.pattern());\n}\n","import Metadata from '../metadata.js';\n/**\r\n * Returns a list of countries that the phone number could potentially belong to.\r\n * @param {string} callingCode — Calling code.\r\n * @param {string} nationalNumber — National (significant) number.\r\n * @param {object} metadata — Metadata.\r\n * @return {string[]} A list of possible countries.\r\n */\n\nexport default function getPossibleCountriesForNumber(callingCode, nationalNumber, metadata) {\n var _metadata = new Metadata(metadata);\n\n var possibleCountries = _metadata.getCountryCodesForCallingCode(callingCode);\n\n if (!possibleCountries) {\n return [];\n }\n\n return possibleCountries.filter(function (country) {\n return couldNationalNumberBelongToCountry(nationalNumber, country, metadata);\n });\n}\n\nfunction couldNationalNumberBelongToCountry(nationalNumber, country, metadata) {\n var _metadata = new Metadata(metadata);\n\n _metadata.selectNumberingPlan(country);\n\n if (_metadata.numberingPlan.possibleLengths().indexOf(nationalNumber.length) >= 0) {\n return true;\n }\n\n return false;\n}\n","// The minimum length of the national significant number.\nexport var MIN_LENGTH_FOR_NSN = 2; // The ITU says the maximum length should be 15,\n// but one can find longer numbers in Germany.\n\nexport var MAX_LENGTH_FOR_NSN = 17; // The maximum length of the country calling code.\n\nexport var MAX_LENGTH_COUNTRY_CODE = 3; // Digits accepted in phone numbers\n// (ascii, fullwidth, arabic-indic, and eastern arabic digits).\n\nexport var VALID_DIGITS = \"0-9\\uFF10-\\uFF19\\u0660-\\u0669\\u06F0-\\u06F9\"; // `DASHES` will be right after the opening square bracket of the \"character class\"\n\nvar DASHES = \"-\\u2010-\\u2015\\u2212\\u30FC\\uFF0D\";\nvar SLASHES = \"\\uFF0F/\";\nvar DOTS = \"\\uFF0E.\";\nexport var WHITESPACE = \" \\xA0\\xAD\\u200B\\u2060\\u3000\";\nvar BRACKETS = \"()\\uFF08\\uFF09\\uFF3B\\uFF3D\\\\[\\\\]\"; // export const OPENING_BRACKETS = '(\\uFF08\\uFF3B\\\\\\['\n\nvar TILDES = \"~\\u2053\\u223C\\uFF5E\"; // Regular expression of acceptable punctuation found in phone numbers. This\n// excludes punctuation found as a leading character only. This consists of dash\n// characters, white space characters, full stops, slashes, square brackets,\n// parentheses and tildes. Full-width variants are also present.\n\nexport var VALID_PUNCTUATION = \"\".concat(DASHES).concat(SLASHES).concat(DOTS).concat(WHITESPACE).concat(BRACKETS).concat(TILDES);\nexport var PLUS_CHARS = \"+\\uFF0B\"; // const LEADING_PLUS_CHARS_PATTERN = new RegExp('^[' + PLUS_CHARS + ']+')\n","import { VALID_PUNCTUATION } from '../constants.js'; // Removes brackets and replaces dashes with spaces.\n//\n// E.g. \"(999) 111-22-33\" -> \"999 111 22 33\"\n//\n// For some reason Google's metadata contains `<intlFormat/>`s with brackets and dashes.\n// Meanwhile, there's no single opinion about using punctuation in international phone numbers.\n//\n// For example, Google's `<intlFormat/>` for USA is `+1 213-373-4253`.\n// And here's a quote from WikiPedia's \"North American Numbering Plan\" page:\n// https://en.wikipedia.org/wiki/North_American_Numbering_Plan\n//\n// \"The country calling code for all countries participating in the NANP is 1.\n// In international format, an NANP number should be listed as +1 301 555 01 00,\n// where 301 is an area code (Maryland).\"\n//\n// I personally prefer the international format without any punctuation.\n// For example, brackets are remnants of the old age, meaning that the\n// phone number part in brackets (so called \"area code\") can be omitted\n// if dialing within the same \"area\".\n// And hyphens were clearly introduced for splitting local numbers into memorizable groups.\n// For example, remembering \"5553535\" is difficult but \"555-35-35\" is much simpler.\n// Imagine a man taking a bus from home to work and seeing an ad with a phone number.\n// He has a couple of seconds to memorize that number until it passes by.\n// If it were spaces instead of hyphens the man wouldn't necessarily get it,\n// but with hyphens instead of spaces the grouping is more explicit.\n// I personally think that hyphens introduce visual clutter,\n// so I prefer replacing them with spaces in international numbers.\n// In the modern age all output is done on displays where spaces are clearly distinguishable\n// so hyphens can be safely replaced with spaces without losing any legibility.\n//\n\nexport default function applyInternationalSeparatorStyle(formattedNumber) {\n return formattedNumber.replace(new RegExp(\"[\".concat(VALID_PUNCTUATION, \"]+\"), 'g'), ' ').trim();\n}\n","import applyInternationalSeparatorStyle from './applyInternationalSeparatorStyle.js'; // This was originally set to $1 but there are some countries for which the\n// first group is not used in the national pattern (e.g. Argentina) so the $1\n// group does not match correctly. Therefore, we use `\\d`, so that the first\n// group actually used in the pattern will be matched.\n\nexport var FIRST_GROUP_PATTERN = /(\\$\\d)/;\nexport default function formatNationalNumberUsingFormat(number, format, _ref) {\n var useInternationalFormat = _ref.useInternationalFormat,\n withNationalPrefix = _ref.withNationalPrefix,\n carrierCode = _ref.carrierCode,\n metadata = _ref.metadata;\n var formattedNumber = number.replace(new RegExp(format.pattern()), useInternationalFormat ? format.internationalFormat() : // This library doesn't use `domestic_carrier_code_formatting_rule`,\n // because that one is only used when formatting phone numbers\n // for dialing from a mobile phone, and this is not a dialing library.\n // carrierCode && format.domesticCarrierCodeFormattingRule()\n // \t// First, replace the $CC in the formatting rule with the desired carrier code.\n // \t// Then, replace the $FG in the formatting rule with the first group\n // \t// and the carrier code combined in the appropriate way.\n // \t? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))\n // \t: (\n // \t\twithNationalPrefix && format.nationalPrefixFormattingRule()\n // \t\t\t? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())\n // \t\t\t: format.format()\n // \t)\n withNationalPrefix && format.nationalPrefixFormattingRule() ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule()) : format.format());\n\n if (useInternationalFormat) {\n return applyInternationalSeparatorStyle(formattedNumber);\n }\n\n return formattedNumber;\n}\n","import Metadata from '../metadata.js';\n/**\r\n * Pattern that makes it easy to distinguish whether a region has a single\r\n * international dialing prefix or not. If a region has a single international\r\n * prefix (e.g. 011 in USA), it will be represented as a string that contains\r\n * a sequence of ASCII digits, and possibly a tilde, which signals waiting for\r\n * the tone. If there are multiple available international prefixes in a\r\n * region, they will be represented as a regex string that always contains one\r\n * or more characters that are not ASCII digits or a tilde.\r\n */\n\nvar SINGLE_IDD_PREFIX_REG_EXP = /^[\\d]+(?:[~\\u2053\\u223C\\uFF5E][\\d]+)?$/; // For regions that have multiple IDD prefixes\n// a preferred IDD prefix is returned.\n\nexport default function getIddPrefix(country, callingCode, metadata) {\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n\n if (countryMetadata.defaultIDDPrefix()) {\n return countryMetadata.defaultIDDPrefix();\n }\n\n if (SINGLE_IDD_PREFIX_REG_EXP.test(countryMetadata.IDDPrefix())) {\n return countryMetadata.IDDPrefix();\n }\n}\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport formatNationalNumberUsingFormat from './helpers/formatNationalNumberUsingFormat.js';\nimport Metadata, { getCountryCallingCode } from './metadata.js';\nimport getIddPrefix from './helpers/getIddPrefix.js';\nimport { formatRFC3966 } from './helpers/RFC3966.js';\nvar DEFAULT_OPTIONS = {\n formatExtension: function formatExtension(formattedNumber, extension, metadata) {\n return \"\".concat(formattedNumber).concat(metadata.ext()).concat(extension);\n }\n};\n/**\r\n * Formats a phone number.\r\n *\r\n * format(phoneNumberInstance, 'INTERNATIONAL', { ..., v2: true }, metadata)\r\n * format(phoneNumberInstance, 'NATIONAL', { ..., v2: true }, metadata)\r\n *\r\n * format({ phone: '8005553535', country: 'RU' }, 'INTERNATIONAL', { ... }, metadata)\r\n * format({ phone: '8005553535', country: 'RU' }, 'NATIONAL', undefined, metadata)\r\n *\r\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\r\n * @param {string} format\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {string}\r\n */\n\nexport default function formatNumber(input, format, options, metadata) {\n // Apply default options.\n if (options) {\n options = _objectSpread(_objectSpread({}, DEFAULT_OPTIONS), options);\n } else {\n options = DEFAULT_OPTIONS;\n }\n\n metadata = new Metadata(metadata);\n\n if (input.country && input.country !== '001') {\n // Validate `input.country`.\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n\n metadata.country(input.country);\n } else if (input.countryCallingCode) {\n metadata.selectNumberingPlan(input.countryCallingCode);\n } else return input.phone || '';\n\n var countryCallingCode = metadata.countryCallingCode();\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone; // This variable should have been declared inside `case`s\n // but Babel has a bug and it says \"duplicate variable declaration\".\n\n var number;\n\n switch (format) {\n case 'NATIONAL':\n // Legacy argument support.\n // (`{ country: ..., phone: '' }`)\n if (!nationalNumber) {\n return '';\n }\n\n number = formatNationalNumber(nationalNumber, input.carrierCode, 'NATIONAL', metadata, options);\n return addExtension(number, input.ext, metadata, options.formatExtension);\n\n case 'INTERNATIONAL':\n // Legacy argument support.\n // (`{ country: ..., phone: '' }`)\n if (!nationalNumber) {\n return \"+\".concat(countryCallingCode);\n }\n\n number = formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata, options);\n number = \"+\".concat(countryCallingCode, \" \").concat(number);\n return addExtension(number, input.ext, metadata, options.formatExtension);\n\n case 'E.164':\n // `E.164` doesn't define \"phone number extensions\".\n return \"+\".concat(countryCallingCode).concat(nationalNumber);\n\n case 'RFC3966':\n return formatRFC3966({\n number: \"+\".concat(countryCallingCode).concat(nationalNumber),\n ext: input.ext\n });\n // For reference, here's Google's IDD formatter:\n // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546\n // Not saying that this IDD formatter replicates it 1:1, but it seems to work.\n // Who would even need to format phone numbers in IDD format anyway?\n\n case 'IDD':\n if (!options.fromCountry) {\n return; // throw new Error('`fromCountry` option not passed for IDD-prefixed formatting.')\n }\n\n var formattedNumber = formatIDD(nationalNumber, input.carrierCode, countryCallingCode, options.fromCountry, metadata);\n return addExtension(formattedNumber, input.ext, metadata, options.formatExtension);\n\n default:\n throw new Error(\"Unknown \\\"format\\\" argument passed to \\\"formatNumber()\\\": \\\"\".concat(format, \"\\\"\"));\n }\n}\n\nfunction formatNationalNumber(number, carrierCode, formatAs, metadata, options) {\n var format = chooseFormatForNumber(metadata.formats(), number);\n\n if (!format) {\n return number;\n }\n\n return formatNationalNumberUsingFormat(number, format, {\n useInternationalFormat: formatAs === 'INTERNATIONAL',\n withNationalPrefix: format.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options && options.nationalPrefix === false ? false : true,\n carrierCode: carrierCode,\n metadata: metadata\n });\n}\n\nexport function chooseFormatForNumber(availableFormats, nationalNnumber) {\n for (var _iterator = _createForOfIteratorHelperLoose(availableFormats), _step; !(_step = _iterator()).done;) {\n var format = _step.value;\n\n // Validate leading digits.\n // The test case for \"else path\" could be found by searching for\n // \"format.leadingDigitsPatterns().length === 0\".\n if (format.leadingDigitsPatterns().length > 0) {\n // The last leading_digits_pattern is used here, as it is the most detailed\n var lastLeadingDigitsPattern = format.leadingDigitsPatterns()[format.leadingDigitsPatterns().length - 1]; // If leading digits don't match then move on to the next phone number format\n\n if (nationalNnumber.search(lastLeadingDigitsPattern) !== 0) {\n continue;\n }\n } // Check that the national number matches the phone number format regular expression\n\n\n if (matchesEntirely(nationalNnumber, format.pattern())) {\n return format;\n }\n }\n}\n\nfunction addExtension(formattedNumber, ext, metadata, formatExtension) {\n return ext ? formatExtension(formattedNumber, ext, metadata) : formattedNumber;\n}\n\nfunction formatIDD(nationalNumber, carrierCode, countryCallingCode, fromCountry, metadata) {\n var fromCountryCallingCode = getCountryCallingCode(fromCountry, metadata.metadata); // When calling within the same country calling code.\n\n if (fromCountryCallingCode === countryCallingCode) {\n var formattedNumber = formatNationalNumber(nationalNumber, carrierCode, 'NATIONAL', metadata); // For NANPA regions, return the national format for these regions\n // but prefix it with the country calling code.\n\n if (countryCallingCode === '1') {\n return countryCallingCode + ' ' + formattedNumber;\n } // If regions share a country calling code, the country calling code need\n // not be dialled. This also applies when dialling within a region, so this\n // if clause covers both these cases. Technically this is the case for\n // dialling from La Reunion to other overseas departments of France (French\n // Guiana, Martinique, Guadeloupe), but not vice versa - so we don't cover\n // this edge case for now and for those cases return the version including\n // country calling code. Details here:\n // http://www.petitfute.com/voyage/225-info-pratiques-reunion\n //\n\n\n return formattedNumber;\n }\n\n var iddPrefix = getIddPrefix(fromCountry, undefined, metadata.metadata);\n\n if (iddPrefix) {\n return \"\".concat(iddPrefix, \" \").concat(countryCallingCode, \" \").concat(formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata));\n }\n}\n","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nimport isViablePhoneNumber from './isViablePhoneNumber.js'; // https://www.ietf.org/rfc/rfc3966.txt\n\n/**\r\n * @param {string} text - Phone URI (RFC 3966).\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\n\nexport function parseRFC3966(text) {\n var number;\n var ext; // Replace \"tel:\" with \"tel=\" for parsing convenience.\n\n text = text.replace(/^tel:/, 'tel=');\n\n for (var _iterator = _createForOfIteratorHelperLoose(text.split(';')), _step; !(_step = _iterator()).done;) {\n var part = _step.value;\n\n var _part$split = part.split('='),\n _part$split2 = _slicedToArray(_part$split, 2),\n name = _part$split2[0],\n value = _part$split2[1];\n\n switch (name) {\n case 'tel':\n number = value;\n break;\n\n case 'ext':\n ext = value;\n break;\n\n case 'phone-context':\n // Only \"country contexts\" are supported.\n // \"Domain contexts\" are ignored.\n if (value[0] === '+') {\n number = value + number;\n }\n\n break;\n }\n } // If the phone number is not viable, then abort.\n\n\n if (!isViablePhoneNumber(number)) {\n return {};\n }\n\n var result = {\n number: number\n };\n\n if (ext) {\n result.ext = ext;\n }\n\n return result;\n}\n/**\r\n * @param {object} - `{ ?number, ?extension }`.\r\n * @return {string} Phone URI (RFC 3966).\r\n */\n\nexport function formatRFC3966(_ref) {\n var number = _ref.number,\n ext = _ref.ext;\n\n if (!number) {\n return '';\n }\n\n if (number[0] !== '+') {\n throw new Error(\"\\\"formatRFC3966()\\\" expects \\\"number\\\" to be in E.164 format.\");\n }\n\n return \"tel:\".concat(number).concat(ext ? ';ext=' + ext : '');\n}\n","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nimport Metadata from './metadata.js';\nimport isPossibleNumber from './isPossible.js';\nimport isValidNumber from './isValid.js'; // import checkNumberLength from './helpers/checkNumberLength.js'\n\nimport getNumberType from './helpers/getNumberType.js';\nimport getPossibleCountriesForNumber from './helpers/getPossibleCountriesForNumber.js';\nimport formatNumber from './format.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\n\nvar PhoneNumber = /*#__PURE__*/function () {\n /**\r\n * @param {string} countryOrCountryCallingCode\r\n * @param {string} nationalNumber\r\n * @param {object} metadata — Metadata JSON\r\n * @return {PhoneNumber}\r\n */\n function PhoneNumber(countryOrCountryCallingCode, nationalNumber, metadata) {\n _classCallCheck(this, PhoneNumber);\n\n if (!countryOrCountryCallingCode) {\n throw new TypeError('`country` or `countryCallingCode` not passed');\n }\n\n if (!nationalNumber) {\n throw new TypeError('`nationalNumber` not passed');\n }\n\n if (!metadata) {\n throw new TypeError('`metadata` not passed');\n }\n\n var _getCountryAndCountry = getCountryAndCountryCallingCode(countryOrCountryCallingCode, metadata),\n country = _getCountryAndCountry.country,\n countryCallingCode = _getCountryAndCountry.countryCallingCode;\n\n this.country = country;\n this.countryCallingCode = countryCallingCode;\n this.nationalNumber = nationalNumber;\n this.number = '+' + this.countryCallingCode + this.nationalNumber; // Exclude `metadata` property output from `PhoneNumber.toString()`\n // so that it doesn't clutter the console output of Node.js.\n // Previously, when Node.js did `console.log(new PhoneNumber(...))`,\n // it would output the whole internal structure of the `metadata` object.\n\n this.getMetadata = function () {\n return metadata;\n };\n }\n\n _createClass(PhoneNumber, [{\n key: \"setExt\",\n value: function setExt(ext) {\n this.ext = ext;\n }\n }, {\n key: \"getPossibleCountries\",\n value: function getPossibleCountries() {\n if (this.country) {\n return [this.country];\n }\n\n return getPossibleCountriesForNumber(this.countryCallingCode, this.nationalNumber, this.getMetadata());\n }\n }, {\n key: \"isPossible\",\n value: function isPossible() {\n return isPossibleNumber(this, {\n v2: true\n }, this.getMetadata());\n }\n }, {\n key: \"isValid\",\n value: function isValid() {\n return isValidNumber(this, {\n v2: true\n }, this.getMetadata());\n }\n }, {\n key: \"isNonGeographic\",\n value: function isNonGeographic() {\n var metadata = new Metadata(this.getMetadata());\n return metadata.isNonGeographicCallingCode(this.countryCallingCode);\n }\n }, {\n key: \"isEqual\",\n value: function isEqual(phoneNumber) {\n return this.number === phoneNumber.number && this.ext === phoneNumber.ext;\n } // This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,\n // but later it was found out that it doesn't include the possible `TOO_SHORT` result\n // returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,\n // so eventually I simply commented out this method from the `PhoneNumber` class\n // and just left the `validatePhoneNumberLength()` function, even though that one would require\n // and additional step to also validate the actual country / calling code of the phone number.\n // validateLength() {\n // \tconst metadata = new Metadata(this.getMetadata())\n // \tmetadata.selectNumberingPlan(this.countryCallingCode)\n // \tconst result = checkNumberLength(this.nationalNumber, metadata)\n // \tif (result !== 'IS_POSSIBLE') {\n // \t\treturn result\n // \t}\n // }\n\n }, {\n key: \"getType\",\n value: function getType() {\n return getNumberType(this, {\n v2: true\n }, this.getMetadata());\n }\n }, {\n key: \"format\",\n value: function format(_format, options) {\n return formatNumber(this, _format, options ? _objectSpread(_objectSpread({}, options), {}, {\n v2: true\n }) : {\n v2: true\n }, this.getMetadata());\n }\n }, {\n key: \"formatNational\",\n value: function formatNational(options) {\n return this.format('NATIONAL', options);\n }\n }, {\n key: \"formatInternational\",\n value: function formatInternational(options) {\n return this.format('INTERNATIONAL', options);\n }\n }, {\n key: \"getURI\",\n value: function getURI(options) {\n return this.format('RFC3966', options);\n }\n }]);\n\n return PhoneNumber;\n}();\n\nexport { PhoneNumber as default };\n\nvar isCountryCode = function isCountryCode(value) {\n return /^[A-Z]{2}$/.test(value);\n};\n\nfunction getCountryAndCountryCallingCode(countryOrCountryCallingCode, metadataJson) {\n var country;\n var countryCallingCode;\n var metadata = new Metadata(metadataJson); // If country code is passed then derive `countryCallingCode` from it.\n // Also store the country code as `.country`.\n\n if (isCountryCode(countryOrCountryCallingCode)) {\n country = countryOrCountryCallingCode;\n metadata.selectNumberingPlan(country);\n countryCallingCode = metadata.countryCallingCode();\n } else {\n countryCallingCode = countryOrCountryCallingCode;\n /* istanbul ignore if */\n\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(countryCallingCode)) {\n country = '001';\n }\n }\n }\n\n return {\n country: country,\n countryCallingCode: countryCallingCode\n };\n}\n","import Metadata from './metadata.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport getNumberType from './helpers/getNumberType.js';\n/**\r\n * Checks if a given phone number is valid.\r\n *\r\n * isValid(phoneNumberInstance, { ..., v2: true }, metadata)\r\n *\r\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\r\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\r\n *\r\n * If the `number` is a string, it will be parsed to an object,\r\n * but only if it contains only valid phone number characters (including punctuation).\r\n * If the `number` is an object, it is used as is.\r\n *\r\n * The optional `defaultCountry` argument is the default country.\r\n * I.e. it does not restrict to just that country,\r\n * e.g. in those cases where several countries share\r\n * the same phone numbering rules (NANPA, Britain, etc).\r\n * For example, even though the number `07624 369230`\r\n * belongs to the Isle of Man (\"IM\" country code)\r\n * calling `isValidNumber('07624369230', 'GB', metadata)`\r\n * still returns `true` because the country is not restricted to `GB`,\r\n * it's just that `GB` is the default one for the phone numbering rules.\r\n * For restricting the country see `isValidNumberForRegion()`\r\n * though restricting a country might not be a good idea.\r\n * https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#when-should-i-use-isvalidnumberforregion\r\n *\r\n * Examples:\r\n *\r\n * ```js\r\n * isValidNumber('+78005553535', metadata)\r\n * isValidNumber('8005553535', 'RU', metadata)\r\n * isValidNumber('88005553535', 'RU', metadata)\r\n * isValidNumber({ phone: '8005553535', country: 'RU' }, metadata)\r\n * ```\r\n */\n\nexport default function isValidNumber(input, options, metadata) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n metadata = new Metadata(metadata);\n /**\r\n * Checks if a phone number is \"possible\" (basically just checks its length).\r\n *\r\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {string}\r\n */\n\n metadata.selectNumberingPlan(input.country, input.countryCallingCode); // By default, countries only have type regexps when it's required for\n // distinguishing different countries having the same `countryCallingCode`.\n\n if (metadata.hasTypes()) {\n return getNumberType(input, options, metadata.metadata) !== undefined;\n } // If there are no type regexps for this country in metadata then use\n // `nationalNumberPattern` as a \"better than nothing\" replacement.\n\n\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n return matchesEntirely(nationalNumber, metadata.nationalNumberPattern());\n}\n","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n// This \"state\" object simply holds the state of the \"AsYouType\" parser:\n//\n// * `country?: string`\n// * `callingCode?: string`\n// * `digits: string`\n// * `international: boolean`\n// * `missingPlus: boolean`\n// * `IDDPrefix?: string`\n// * `carrierCode?: string`\n// * `nationalPrefix?: string`\n// * `nationalSignificantNumber?: string`\n// * `nationalSignificantNumberMatchesInput: boolean`\n// * `complexPrefixBeforeNationalSignificantNumber?: string`\n//\n// `state.country` and `state.callingCode` aren't required to be in sync.\n// For example, `state.country` could be `\"AR\"` and `state.callingCode` could be `undefined`.\n// So `state.country` and `state.callingCode` are totally independent.\n//\nvar AsYouTypeState = /*#__PURE__*/function () {\n function AsYouTypeState(_ref) {\n var onCountryChange = _ref.onCountryChange,\n onCallingCodeChange = _ref.onCallingCodeChange;\n\n _classCallCheck(this, AsYouTypeState);\n\n this.onCountryChange = onCountryChange;\n this.onCallingCodeChange = onCallingCodeChange;\n }\n\n _createClass(AsYouTypeState, [{\n key: \"reset\",\n value: function reset(_ref2) {\n var country = _ref2.country,\n callingCode = _ref2.callingCode;\n this.international = false;\n this.missingPlus = false;\n this.IDDPrefix = undefined;\n this.callingCode = undefined;\n this.digits = '';\n this.resetNationalSignificantNumber();\n this.initCountryAndCallingCode(country, callingCode);\n }\n }, {\n key: \"resetNationalSignificantNumber\",\n value: function resetNationalSignificantNumber() {\n this.nationalSignificantNumber = this.getNationalDigits();\n this.nationalSignificantNumberMatchesInput = true;\n this.nationalPrefix = undefined;\n this.carrierCode = undefined;\n this.complexPrefixBeforeNationalSignificantNumber = undefined;\n }\n }, {\n key: \"update\",\n value: function update(properties) {\n for (var _i = 0, _Object$keys = Object.keys(properties); _i < _Object$keys.length; _i++) {\n var key = _Object$keys[_i];\n this[key] = properties[key];\n }\n }\n }, {\n key: \"initCountryAndCallingCode\",\n value: function initCountryAndCallingCode(country, callingCode) {\n this.setCountry(country);\n this.setCallingCode(callingCode);\n }\n }, {\n key: \"setCountry\",\n value: function setCountry(country) {\n this.country = country;\n this.onCountryChange(country);\n }\n }, {\n key: \"setCallingCode\",\n value: function setCallingCode(callingCode) {\n this.callingCode = callingCode;\n this.onCallingCodeChange(callingCode, this.country);\n }\n }, {\n key: \"startInternationalNumber\",\n value: function startInternationalNumber(country, callingCode) {\n // Prepend the `+` to parsed input.\n this.international = true; // If a default country was set then reset it\n // because an explicitly international phone\n // number is being entered.\n\n this.initCountryAndCallingCode(country, callingCode);\n }\n }, {\n key: \"appendDigits\",\n value: function appendDigits(nextDigits) {\n this.digits += nextDigits;\n }\n }, {\n key: \"appendNationalSignificantNumberDigits\",\n value: function appendNationalSignificantNumberDigits(nextDigits) {\n this.nationalSignificantNumber += nextDigits;\n }\n /**\r\n * Returns the part of `this.digits` that corresponds to the national number.\r\n * Basically, all digits that have been input by the user, except for the\r\n * international prefix and the country calling code part\r\n * (if the number is an international one).\r\n * @return {string}\r\n */\n\n }, {\n key: \"getNationalDigits\",\n value: function getNationalDigits() {\n if (this.international) {\n return this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0));\n }\n\n return this.digits;\n }\n }, {\n key: \"getDigitsWithoutInternationalPrefix\",\n value: function getDigitsWithoutInternationalPrefix() {\n if (this.international) {\n if (this.IDDPrefix) {\n return this.digits.slice(this.IDDPrefix.length);\n }\n }\n\n return this.digits;\n }\n }]);\n\n return AsYouTypeState;\n}();\n\nexport { AsYouTypeState as default };\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n// Should be the same as `DIGIT_PLACEHOLDER` in `libphonenumber-metadata-generator`.\nexport var DIGIT_PLACEHOLDER = 'x'; // '\\u2008' (punctuation space)\n\nvar DIGIT_PLACEHOLDER_MATCHER = new RegExp(DIGIT_PLACEHOLDER); // Counts all occurences of a symbol in a string.\n// Unicode-unsafe (because using `.split()`).\n\nexport function countOccurences(symbol, string) {\n var count = 0; // Using `.split('')` to iterate through a string here\n // to avoid requiring `Symbol.iterator` polyfill.\n // `.split('')` is generally not safe for Unicode,\n // but in this particular case for counting brackets it is safe.\n // for (const character of string)\n\n for (var _iterator = _createForOfIteratorHelperLoose(string.split('')), _step; !(_step = _iterator()).done;) {\n var character = _step.value;\n\n if (character === symbol) {\n count++;\n }\n }\n\n return count;\n} // Repeats a string (or a symbol) N times.\n// http://stackoverflow.com/questions/202605/repeat-string-javascript\n\nexport function repeat(string, times) {\n if (times < 1) {\n return '';\n }\n\n var result = '';\n\n while (times > 1) {\n if (times & 1) {\n result += string;\n }\n\n times >>= 1;\n string += string;\n }\n\n return result + string;\n}\nexport function cutAndStripNonPairedParens(string, cutBeforeIndex) {\n if (string[cutBeforeIndex] === ')') {\n cutBeforeIndex++;\n }\n\n return stripNonPairedParens(string.slice(0, cutBeforeIndex));\n}\nexport function closeNonPairedParens(template, cut_before) {\n var retained_template = template.slice(0, cut_before);\n var opening_braces = countOccurences('(', retained_template);\n var closing_braces = countOccurences(')', retained_template);\n var dangling_braces = opening_braces - closing_braces;\n\n while (dangling_braces > 0 && cut_before < template.length) {\n if (template[cut_before] === ')') {\n dangling_braces--;\n }\n\n cut_before++;\n }\n\n return template.slice(0, cut_before);\n}\nexport function stripNonPairedParens(string) {\n var dangling_braces = [];\n var i = 0;\n\n while (i < string.length) {\n if (string[i] === '(') {\n dangling_braces.push(i);\n } else if (string[i] === ')') {\n dangling_braces.pop();\n }\n\n i++;\n }\n\n var start = 0;\n var cleared_string = '';\n dangling_braces.push(string.length);\n\n for (var _i = 0, _dangling_braces = dangling_braces; _i < _dangling_braces.length; _i++) {\n var index = _dangling_braces[_i];\n cleared_string += string.slice(start, index);\n start = index + 1;\n }\n\n return cleared_string;\n}\nexport function populateTemplateWithDigits(template, position, digits) {\n // Using `.split('')` to iterate through a string here\n // to avoid requiring `Symbol.iterator` polyfill.\n // `.split('')` is generally not safe for Unicode,\n // but in this particular case for `digits` it is safe.\n // for (const digit of digits)\n for (var _iterator2 = _createForOfIteratorHelperLoose(digits.split('')), _step2; !(_step2 = _iterator2()).done;) {\n var digit = _step2.value;\n\n // If there is room for more digits in current `template`,\n // then set the next digit in the `template`,\n // and return the formatted digits so far.\n // If more digits are entered than the current format could handle.\n if (template.slice(position + 1).search(DIGIT_PLACEHOLDER_MATCHER) < 0) {\n return;\n }\n\n position = template.search(DIGIT_PLACEHOLDER_MATCHER);\n template = template.replace(DIGIT_PLACEHOLDER_MATCHER, digit);\n }\n\n return [template, position];\n}\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n// These mappings map a character (key) to a specific digit that should\n// replace it for normalization purposes. Non-European digits that\n// may be used in phone numbers are mapped to a European equivalent.\n//\n// E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\n//\nexport var DIGITS = {\n '0': '0',\n '1': '1',\n '2': '2',\n '3': '3',\n '4': '4',\n '5': '5',\n '6': '6',\n '7': '7',\n '8': '8',\n '9': '9',\n \"\\uFF10\": '0',\n // Fullwidth digit 0\n \"\\uFF11\": '1',\n // Fullwidth digit 1\n \"\\uFF12\": '2',\n // Fullwidth digit 2\n \"\\uFF13\": '3',\n // Fullwidth digit 3\n \"\\uFF14\": '4',\n // Fullwidth digit 4\n \"\\uFF15\": '5',\n // Fullwidth digit 5\n \"\\uFF16\": '6',\n // Fullwidth digit 6\n \"\\uFF17\": '7',\n // Fullwidth digit 7\n \"\\uFF18\": '8',\n // Fullwidth digit 8\n \"\\uFF19\": '9',\n // Fullwidth digit 9\n \"\\u0660\": '0',\n // Arabic-indic digit 0\n \"\\u0661\": '1',\n // Arabic-indic digit 1\n \"\\u0662\": '2',\n // Arabic-indic digit 2\n \"\\u0663\": '3',\n // Arabic-indic digit 3\n \"\\u0664\": '4',\n // Arabic-indic digit 4\n \"\\u0665\": '5',\n // Arabic-indic digit 5\n \"\\u0666\": '6',\n // Arabic-indic digit 6\n \"\\u0667\": '7',\n // Arabic-indic digit 7\n \"\\u0668\": '8',\n // Arabic-indic digit 8\n \"\\u0669\": '9',\n // Arabic-indic digit 9\n \"\\u06F0\": '0',\n // Eastern-Arabic digit 0\n \"\\u06F1\": '1',\n // Eastern-Arabic digit 1\n \"\\u06F2\": '2',\n // Eastern-Arabic digit 2\n \"\\u06F3\": '3',\n // Eastern-Arabic digit 3\n \"\\u06F4\": '4',\n // Eastern-Arabic digit 4\n \"\\u06F5\": '5',\n // Eastern-Arabic digit 5\n \"\\u06F6\": '6',\n // Eastern-Arabic digit 6\n \"\\u06F7\": '7',\n // Eastern-Arabic digit 7\n \"\\u06F8\": '8',\n // Eastern-Arabic digit 8\n \"\\u06F9\": '9' // Eastern-Arabic digit 9\n\n};\nexport function parseDigit(character) {\n return DIGITS[character];\n}\n/**\r\n * Parses phone number digits from a string.\r\n * Drops all punctuation leaving only digits.\r\n * Also converts wide-ascii and arabic-indic numerals to conventional numerals.\r\n * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\r\n * @param {string} string\r\n * @return {string}\r\n * @example\r\n * ```js\r\n * parseDigits('8 (800) 555')\r\n * // Outputs '8800555'.\r\n * ```\r\n */\n\nexport default function parseDigits(string) {\n var result = ''; // Using `.split('')` here instead of normal `for ... of`\n // because the importing application doesn't neccessarily include an ES6 polyfill.\n // The `.split('')` approach discards \"exotic\" UTF-8 characters\n // (the ones consisting of four bytes) but digits\n // (including non-European ones) don't fall into that range\n // so such \"exotic\" characters would be discarded anyway.\n\n for (var _iterator = _createForOfIteratorHelperLoose(string.split('')), _step; !(_step = _iterator()).done;) {\n var character = _step.value;\n var digit = parseDigit(character);\n\n if (digit) {\n result += digit;\n }\n }\n\n return result;\n}\n","import checkNumberLength from './helpers/checkNumberLength.js';\nimport parseDigits from './helpers/parseDigits.js';\nimport formatNationalNumberUsingFormat from './helpers/formatNationalNumberUsingFormat.js';\nexport default function formatCompleteNumber(state, format, _ref) {\n var metadata = _ref.metadata,\n shouldTryNationalPrefixFormattingRule = _ref.shouldTryNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix = _ref.getSeparatorAfterNationalPrefix;\n var matcher = new RegExp(\"^(?:\".concat(format.pattern(), \")$\"));\n\n if (matcher.test(state.nationalSignificantNumber)) {\n return formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state, format, {\n metadata: metadata,\n shouldTryNationalPrefixFormattingRule: shouldTryNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix\n });\n }\n}\nexport function canFormatCompleteNumber(nationalSignificantNumber, metadata) {\n return checkNumberLength(nationalSignificantNumber, metadata) === 'IS_POSSIBLE';\n}\n\nfunction formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state, format, _ref2) {\n var metadata = _ref2.metadata,\n shouldTryNationalPrefixFormattingRule = _ref2.shouldTryNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix = _ref2.getSeparatorAfterNationalPrefix;\n // `format` has already been checked for `nationalPrefix` requirement.\n var nationalSignificantNumber = state.nationalSignificantNumber,\n international = state.international,\n nationalPrefix = state.nationalPrefix,\n carrierCode = state.carrierCode; // Format the number with using `national_prefix_formatting_rule`.\n // If the resulting formatted number is a valid formatted number, then return it.\n //\n // Google's AsYouType formatter is different in a way that it doesn't try\n // to format using the \"national prefix formatting rule\", and instead it\n // simply prepends a national prefix followed by a \" \" character.\n // This code does that too, but as a fallback.\n // The reason is that \"national prefix formatting rule\" may use parentheses,\n // which wouldn't be included has it used the simpler Google's way.\n //\n\n if (shouldTryNationalPrefixFormattingRule(format)) {\n var formattedNumber = formatNationalNumber(state, format, {\n useNationalPrefixFormattingRule: true,\n getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix,\n metadata: metadata\n });\n\n if (formattedNumber) {\n return formattedNumber;\n }\n } // Format the number without using `national_prefix_formatting_rule`.\n\n\n return formatNationalNumber(state, format, {\n useNationalPrefixFormattingRule: false,\n getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix,\n metadata: metadata\n });\n}\n\nfunction formatNationalNumber(state, format, _ref3) {\n var metadata = _ref3.metadata,\n useNationalPrefixFormattingRule = _ref3.useNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix = _ref3.getSeparatorAfterNationalPrefix;\n var formattedNationalNumber = formatNationalNumberUsingFormat(state.nationalSignificantNumber, format, {\n carrierCode: state.carrierCode,\n useInternationalFormat: state.international,\n withNationalPrefix: useNationalPrefixFormattingRule,\n metadata: metadata\n });\n\n if (!useNationalPrefixFormattingRule) {\n if (state.nationalPrefix) {\n // If a national prefix was extracted, then just prepend it,\n // followed by a \" \" character.\n formattedNationalNumber = state.nationalPrefix + getSeparatorAfterNationalPrefix(format) + formattedNationalNumber;\n } else if (state.complexPrefixBeforeNationalSignificantNumber) {\n formattedNationalNumber = state.complexPrefixBeforeNationalSignificantNumber + ' ' + formattedNationalNumber;\n }\n }\n\n if (isValidFormattedNationalNumber(formattedNationalNumber, state)) {\n return formattedNationalNumber;\n }\n} // Check that the formatted phone number contains exactly\n// the same digits that have been input by the user.\n// For example, when \"0111523456789\" is input for `AR` country,\n// the extracted `this.nationalSignificantNumber` is \"91123456789\",\n// which means that the national part of `this.digits` isn't simply equal to\n// `this.nationalPrefix` + `this.nationalSignificantNumber`.\n//\n// Also, a `format` can add extra digits to the `this.nationalSignificantNumber`\n// being formatted via `metadata[country].national_prefix_transform_rule`.\n// For example, for `VI` country, it prepends `340` to the national number,\n// and if this check hasn't been implemented, then there would be a bug\n// when `340` \"area coude\" is \"duplicated\" during input for `VI` country:\n// https://github.com/catamphetamine/libphonenumber-js/issues/318\n//\n// So, all these \"gotchas\" are filtered out.\n//\n// In the original Google's code, the comments say:\n// \"Check that we didn't remove nor add any extra digits when we matched\n// this formatting pattern. This usually happens after we entered the last\n// digit during AYTF. Eg: In case of MX, we swallow mobile token (1) when\n// formatted but AYTF should retain all the number entered and not change\n// in order to match a format (of same leading digits and length) display\n// in that way.\"\n// \"If it's the same (i.e entered number and format is same), then it's\n// safe to return this in formatted number as nothing is lost / added.\"\n// Otherwise, don't use this format.\n// https://github.com/google/libphonenumber/commit/3e7c1f04f5e7200f87fb131e6f85c6e99d60f510#diff-9149457fa9f5d608a11bb975c6ef4bc5\n// https://github.com/google/libphonenumber/commit/3ac88c7106e7dcb553bcc794b15f19185928a1c6#diff-2dcb77e833422ee304da348b905cde0b\n//\n\n\nfunction isValidFormattedNationalNumber(formattedNationalNumber, state) {\n return parseDigits(formattedNationalNumber) === state.getNationalDigits();\n}\n","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nvar PatternParser = /*#__PURE__*/function () {\n function PatternParser() {\n _classCallCheck(this, PatternParser);\n }\n\n _createClass(PatternParser, [{\n key: \"parse\",\n value: function parse(pattern) {\n this.context = [{\n or: true,\n instructions: []\n }];\n this.parsePattern(pattern);\n\n if (this.context.length !== 1) {\n throw new Error('Non-finalized contexts left when pattern parse ended');\n }\n\n var _this$context$ = this.context[0],\n branches = _this$context$.branches,\n instructions = _this$context$.instructions;\n\n if (branches) {\n return {\n op: '|',\n args: branches.concat([expandSingleElementArray(instructions)])\n };\n }\n /* istanbul ignore if */\n\n\n if (instructions.length === 0) {\n throw new Error('Pattern is required');\n }\n\n if (instructions.length === 1) {\n return instructions[0];\n }\n\n return instructions;\n }\n }, {\n key: \"startContext\",\n value: function startContext(context) {\n this.context.push(context);\n }\n }, {\n key: \"endContext\",\n value: function endContext() {\n this.context.pop();\n }\n }, {\n key: \"getContext\",\n value: function getContext() {\n return this.context[this.context.length - 1];\n }\n }, {\n key: \"parsePattern\",\n value: function parsePattern(pattern) {\n if (!pattern) {\n throw new Error('Pattern is required');\n }\n\n var match = pattern.match(OPERATOR);\n\n if (!match) {\n if (ILLEGAL_CHARACTER_REGEXP.test(pattern)) {\n throw new Error(\"Illegal characters found in a pattern: \".concat(pattern));\n }\n\n this.getContext().instructions = this.getContext().instructions.concat(pattern.split(''));\n return;\n }\n\n var operator = match[1];\n var before = pattern.slice(0, match.index);\n var rightPart = pattern.slice(match.index + operator.length);\n\n switch (operator) {\n case '(?:':\n if (before) {\n this.parsePattern(before);\n }\n\n this.startContext({\n or: true,\n instructions: [],\n branches: []\n });\n break;\n\n case ')':\n if (!this.getContext().or) {\n throw new Error('\")\" operator must be preceded by \"(?:\" operator');\n }\n\n if (before) {\n this.parsePattern(before);\n }\n\n if (this.getContext().instructions.length === 0) {\n throw new Error('No instructions found after \"|\" operator in an \"or\" group');\n }\n\n var _this$getContext = this.getContext(),\n branches = _this$getContext.branches;\n\n branches.push(expandSingleElementArray(this.getContext().instructions));\n this.endContext();\n this.getContext().instructions.push({\n op: '|',\n args: branches\n });\n break;\n\n case '|':\n if (!this.getContext().or) {\n throw new Error('\"|\" operator can only be used inside \"or\" groups');\n }\n\n if (before) {\n this.parsePattern(before);\n } // The top-level is an implicit \"or\" group, if required.\n\n\n if (!this.getContext().branches) {\n // `branches` are not defined only for the root implicit \"or\" operator.\n\n /* istanbul ignore else */\n if (this.context.length === 1) {\n this.getContext().branches = [];\n } else {\n throw new Error('\"branches\" not found in an \"or\" group context');\n }\n }\n\n this.getContext().branches.push(expandSingleElementArray(this.getContext().instructions));\n this.getContext().instructions = [];\n break;\n\n case '[':\n if (before) {\n this.parsePattern(before);\n }\n\n this.startContext({\n oneOfSet: true\n });\n break;\n\n case ']':\n if (!this.getContext().oneOfSet) {\n throw new Error('\"]\" operator must be preceded by \"[\" operator');\n }\n\n this.endContext();\n this.getContext().instructions.push({\n op: '[]',\n args: parseOneOfSet(before)\n });\n break;\n\n /* istanbul ignore next */\n\n default:\n throw new Error(\"Unknown operator: \".concat(operator));\n }\n\n if (rightPart) {\n this.parsePattern(rightPart);\n }\n }\n }]);\n\n return PatternParser;\n}();\n\nexport { PatternParser as default };\n\nfunction parseOneOfSet(pattern) {\n var values = [];\n var i = 0;\n\n while (i < pattern.length) {\n if (pattern[i] === '-') {\n if (i === 0 || i === pattern.length - 1) {\n throw new Error(\"Couldn't parse a one-of set pattern: \".concat(pattern));\n }\n\n var prevValue = pattern[i - 1].charCodeAt(0) + 1;\n var nextValue = pattern[i + 1].charCodeAt(0) - 1;\n var value = prevValue;\n\n while (value <= nextValue) {\n values.push(String.fromCharCode(value));\n value++;\n }\n } else {\n values.push(pattern[i]);\n }\n\n i++;\n }\n\n return values;\n}\n\nvar ILLEGAL_CHARACTER_REGEXP = /[\\(\\)\\[\\]\\?\\:\\|]/;\nvar OPERATOR = new RegExp( // any of:\n'(' + // or operator\n'\\\\|' + // or\n'|' + // or group start\n'\\\\(\\\\?\\\\:' + // or\n'|' + // or group end\n'\\\\)' + // or\n'|' + // one-of set start\n'\\\\[' + // or\n'|' + // one-of set end\n'\\\\]' + ')');\n\nfunction expandSingleElementArray(array) {\n if (array.length === 1) {\n return array[0];\n }\n\n return array;\n}\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nimport PatternParser from './AsYouTypeFormatter.PatternParser.js';\n\nvar PatternMatcher = /*#__PURE__*/function () {\n function PatternMatcher(pattern) {\n _classCallCheck(this, PatternMatcher);\n\n this.matchTree = new PatternParser().parse(pattern);\n }\n\n _createClass(PatternMatcher, [{\n key: \"match\",\n value: function match(string) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n allowOverflow = _ref.allowOverflow;\n\n if (!string) {\n throw new Error('String is required');\n }\n\n var result = _match(string.split(''), this.matchTree, true);\n\n if (result && result.match) {\n delete result.matchedChars;\n }\n\n if (result && result.overflow) {\n if (!allowOverflow) {\n return;\n }\n }\n\n return result;\n }\n }]);\n\n return PatternMatcher;\n}();\n/**\r\n * Matches `characters` against a pattern compiled into a `tree`.\r\n * @param {string[]} characters\r\n * @param {Tree} tree — A pattern compiled into a `tree`. See the `*.d.ts` file for the description of the `tree` structure.\r\n * @param {boolean} last — Whether it's the last (rightmost) subtree on its level of the match tree.\r\n * @return {object} See the `*.d.ts` file for the description of the result object.\r\n */\n\n\nexport { PatternMatcher as default };\n\nfunction _match(characters, tree, last) {\n // If `tree` is a string, then `tree` is a single character.\n // That's because when a pattern is parsed, multi-character-string parts\n // of a pattern are compiled into arrays of single characters.\n // I still wrote this piece of code for a \"general\" hypothetical case\n // when `tree` could be a string of several characters, even though\n // such case is not possible with the current implementation.\n if (typeof tree === 'string') {\n var characterString = characters.join('');\n\n if (tree.indexOf(characterString) === 0) {\n // `tree` is always a single character.\n // If `tree.indexOf(characterString) === 0`\n // then `characters.length === tree.length`.\n\n /* istanbul ignore else */\n if (characters.length === tree.length) {\n return {\n match: true,\n matchedChars: characters\n };\n } // `tree` is always a single character.\n // If `tree.indexOf(characterString) === 0`\n // then `characters.length === tree.length`.\n\n /* istanbul ignore next */\n\n\n return {\n partialMatch: true // matchedChars: characters\n\n };\n }\n\n if (characterString.indexOf(tree) === 0) {\n if (last) {\n // The `else` path is not possible because `tree` is always a single character.\n // The `else` case for `characters.length > tree.length` would be\n // `characters.length <= tree.length` which means `characters.length <= 1`.\n // `characters` array can't be empty, so that means `characters === [tree]`,\n // which would also mean `tree.indexOf(characterString) === 0` and that'd mean\n // that the `if (tree.indexOf(characterString) === 0)` condition before this\n // `if` condition would be entered, and returned from there, not reaching this code.\n\n /* istanbul ignore else */\n if (characters.length > tree.length) {\n return {\n overflow: true\n };\n }\n }\n\n return {\n match: true,\n matchedChars: characters.slice(0, tree.length)\n };\n }\n\n return;\n }\n\n if (Array.isArray(tree)) {\n var restCharacters = characters.slice();\n var i = 0;\n\n while (i < tree.length) {\n var subtree = tree[i];\n\n var result = _match(restCharacters, subtree, last && i === tree.length - 1);\n\n if (!result) {\n return;\n } else if (result.overflow) {\n return result;\n } else if (result.match) {\n // Continue with the next subtree with the rest of the characters.\n restCharacters = restCharacters.slice(result.matchedChars.length);\n\n if (restCharacters.length === 0) {\n if (i === tree.length - 1) {\n return {\n match: true,\n matchedChars: characters\n };\n } else {\n return {\n partialMatch: true // matchedChars: characters\n\n };\n }\n }\n } else {\n /* istanbul ignore else */\n if (result.partialMatch) {\n return {\n partialMatch: true // matchedChars: characters\n\n };\n } else {\n throw new Error(\"Unsupported match result:\\n\".concat(JSON.stringify(result, null, 2)));\n }\n }\n\n i++;\n } // If `last` then overflow has already been checked\n // by the last element of the `tree` array.\n\n /* istanbul ignore if */\n\n\n if (last) {\n return {\n overflow: true\n };\n }\n\n return {\n match: true,\n matchedChars: characters.slice(0, characters.length - restCharacters.length)\n };\n }\n\n switch (tree.op) {\n case '|':\n var partialMatch;\n\n for (var _iterator = _createForOfIteratorHelperLoose(tree.args), _step; !(_step = _iterator()).done;) {\n var branch = _step.value;\n\n var _result = _match(characters, branch, last);\n\n if (_result) {\n if (_result.overflow) {\n return _result;\n } else if (_result.match) {\n return {\n match: true,\n matchedChars: _result.matchedChars\n };\n } else {\n /* istanbul ignore else */\n if (_result.partialMatch) {\n partialMatch = true;\n } else {\n throw new Error(\"Unsupported match result:\\n\".concat(JSON.stringify(_result, null, 2)));\n }\n }\n }\n }\n\n if (partialMatch) {\n return {\n partialMatch: true // matchedChars: ...\n\n };\n } // Not even a partial match.\n\n\n return;\n\n case '[]':\n for (var _iterator2 = _createForOfIteratorHelperLoose(tree.args), _step2; !(_step2 = _iterator2()).done;) {\n var _char = _step2.value;\n\n if (characters[0] === _char) {\n if (characters.length === 1) {\n return {\n match: true,\n matchedChars: characters\n };\n }\n\n if (last) {\n return {\n overflow: true\n };\n }\n\n return {\n match: true,\n matchedChars: [_char]\n };\n }\n } // No character matches.\n\n\n return;\n\n /* istanbul ignore next */\n\n default:\n throw new Error(\"Unsupported instruction tree: \".concat(tree));\n }\n}\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nimport { DIGIT_PLACEHOLDER, countOccurences, repeat, cutAndStripNonPairedParens, closeNonPairedParens, stripNonPairedParens, populateTemplateWithDigits } from './AsYouTypeFormatter.util.js';\nimport formatCompleteNumber, { canFormatCompleteNumber } from './AsYouTypeFormatter.complete.js';\nimport PatternMatcher from './AsYouTypeFormatter.PatternMatcher.js';\nimport parseDigits from './helpers/parseDigits.js';\nexport { DIGIT_PLACEHOLDER } from './AsYouTypeFormatter.util.js';\nimport { FIRST_GROUP_PATTERN } from './helpers/formatNationalNumberUsingFormat.js';\nimport { VALID_PUNCTUATION } from './constants.js';\nimport applyInternationalSeparatorStyle from './helpers/applyInternationalSeparatorStyle.js'; // Used in phone number format template creation.\n// Could be any digit, I guess.\n\nvar DUMMY_DIGIT = '9'; // I don't know why is it exactly `15`\n\nvar LONGEST_NATIONAL_PHONE_NUMBER_LENGTH = 15; // Create a phone number consisting only of the digit 9 that matches the\n// `number_pattern` by applying the pattern to the \"longest phone number\" string.\n\nvar LONGEST_DUMMY_PHONE_NUMBER = repeat(DUMMY_DIGIT, LONGEST_NATIONAL_PHONE_NUMBER_LENGTH); // A set of characters that, if found in a national prefix formatting rules, are an indicator to\n// us that we should separate the national prefix from the number when formatting.\n\nvar NATIONAL_PREFIX_SEPARATORS_PATTERN = /[- ]/; // Deprecated: Google has removed some formatting pattern related code from their repo.\n// https://github.com/googlei18n/libphonenumber/commit/a395b4fef3caf57c4bc5f082e1152a4d2bd0ba4c\n// \"We no longer have numbers in formatting matching patterns, only \\d.\"\n// Because this library supports generating custom metadata\n// some users may still be using old metadata so the relevant\n// code seems to stay until some next major version update.\n\nvar SUPPORT_LEGACY_FORMATTING_PATTERNS = true; // A pattern that is used to match character classes in regular expressions.\n// An example of a character class is \"[1-4]\".\n\nvar CREATE_CHARACTER_CLASS_PATTERN = SUPPORT_LEGACY_FORMATTING_PATTERNS && function () {\n return /\\[([^\\[\\]])*\\]/g;\n}; // Any digit in a regular expression that actually denotes a digit. For\n// example, in the regular expression \"80[0-2]\\d{6,10}\", the first 2 digits\n// (8 and 0) are standalone digits, but the rest are not.\n// Two look-aheads are needed because the number following \\\\d could be a\n// two-digit number, since the phone number can be as long as 15 digits.\n\n\nvar CREATE_STANDALONE_DIGIT_PATTERN = SUPPORT_LEGACY_FORMATTING_PATTERNS && function () {\n return /\\d(?=[^,}][^,}])/g;\n}; // A regular expression that is used to determine if a `format` is\n// suitable to be used in the \"as you type formatter\".\n// A `format` is suitable when the resulting formatted number has\n// the same digits as the user has entered.\n//\n// In the simplest case, that would mean that the format\n// doesn't add any additional digits when formatting a number.\n// Google says that it also shouldn't add \"star\" (`*`) characters,\n// like it does in some Israeli formats.\n// Such basic format would only contain \"valid punctuation\"\n// and \"captured group\" identifiers ($1, $2, etc).\n//\n// An example of a format that adds additional digits:\n//\n// Country: `AR` (Argentina).\n// Format:\n// {\n// \"pattern\": \"(\\\\d)(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\n// \"leading_digits_patterns\": [\"91\"],\n// \"national_prefix_formatting_rule\": \"0$1\",\n// \"format\": \"$2 15-$3-$4\",\n// \"international_format\": \"$1 $2 $3-$4\"\n// }\n//\n// In the format above, the `format` adds `15` to the digits when formatting a number.\n// A sidenote: this format actually is suitable because `national_prefix_for_parsing`\n// has previously removed `15` from a national number, so re-adding `15` in `format`\n// doesn't actually result in any extra digits added to user's input.\n// But verifying that would be a complex procedure, so the code chooses a simpler path:\n// it simply filters out all `format`s that contain anything but \"captured group\" ids.\n//\n// This regular expression is called `ELIGIBLE_FORMAT_PATTERN` in Google's\n// `libphonenumber` code.\n//\n\n\nvar NON_ALTERING_FORMAT_REG_EXP = new RegExp('[' + VALID_PUNCTUATION + ']*' + // Google developers say:\n// \"We require that the first matching group is present in the\n// output pattern to ensure no data is lost while formatting.\"\n'\\\\$1' + '[' + VALID_PUNCTUATION + ']*' + '(\\\\$\\\\d[' + VALID_PUNCTUATION + ']*)*' + '$'); // This is the minimum length of the leading digits of a phone number\n// to guarantee the first \"leading digits pattern\" for a phone number format\n// to be preemptive.\n\nvar MIN_LEADING_DIGITS_LENGTH = 3;\n\nvar AsYouTypeFormatter = /*#__PURE__*/function () {\n function AsYouTypeFormatter(_ref) {\n var state = _ref.state,\n metadata = _ref.metadata;\n\n _classCallCheck(this, AsYouTypeFormatter);\n\n this.metadata = metadata;\n this.resetFormat();\n }\n\n _createClass(AsYouTypeFormatter, [{\n key: \"resetFormat\",\n value: function resetFormat() {\n this.chosenFormat = undefined;\n this.template = undefined;\n this.nationalNumberTemplate = undefined;\n this.populatedNationalNumberTemplate = undefined;\n this.populatedNationalNumberTemplatePosition = -1;\n }\n }, {\n key: \"reset\",\n value: function reset(numberingPlan, state) {\n this.resetFormat();\n\n if (numberingPlan) {\n this.isNANP = numberingPlan.callingCode() === '1';\n this.matchingFormats = numberingPlan.formats();\n\n if (state.nationalSignificantNumber) {\n this.narrowDownMatchingFormats(state);\n }\n } else {\n this.isNANP = undefined;\n this.matchingFormats = [];\n }\n }\n /**\r\n * Formats an updated phone number.\r\n * @param {string} nextDigits — Additional phone number digits.\r\n * @param {object} state — `AsYouType` state.\r\n * @return {[string]} Returns undefined if the updated phone number can't be formatted using any of the available formats.\r\n */\n\n }, {\n key: \"format\",\n value: function format(nextDigits, state) {\n var _this = this;\n\n // See if the phone number digits can be formatted as a complete phone number.\n // If not, use the results from `formatNationalNumberWithNextDigits()`,\n // which formats based on the chosen formatting pattern.\n //\n // Attempting to format complete phone number first is how it's done\n // in Google's `libphonenumber`, so this library just follows it.\n // Google's `libphonenumber` code doesn't explain in detail why does it\n // attempt to format digits as a complete phone number\n // instead of just going with a previoulsy (or newly) chosen `format`:\n //\n // \"Checks to see if there is an exact pattern match for these digits.\n // If so, we should use this instead of any other formatting template\n // whose leadingDigitsPattern also matches the input.\"\n //\n if (canFormatCompleteNumber(state.nationalSignificantNumber, this.metadata)) {\n for (var _iterator = _createForOfIteratorHelperLoose(this.matchingFormats), _step; !(_step = _iterator()).done;) {\n var format = _step.value;\n var formattedCompleteNumber = formatCompleteNumber(state, format, {\n metadata: this.metadata,\n shouldTryNationalPrefixFormattingRule: function shouldTryNationalPrefixFormattingRule(format) {\n return _this.shouldTryNationalPrefixFormattingRule(format, {\n international: state.international,\n nationalPrefix: state.nationalPrefix\n });\n },\n getSeparatorAfterNationalPrefix: function getSeparatorAfterNationalPrefix(format) {\n return _this.getSeparatorAfterNationalPrefix(format);\n }\n });\n\n if (formattedCompleteNumber) {\n this.resetFormat();\n this.chosenFormat = format;\n this.setNationalNumberTemplate(formattedCompleteNumber.replace(/\\d/g, DIGIT_PLACEHOLDER), state);\n this.populatedNationalNumberTemplate = formattedCompleteNumber; // With a new formatting template, the matched position\n // using the old template needs to be reset.\n\n this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(DIGIT_PLACEHOLDER);\n return formattedCompleteNumber;\n }\n }\n } // Format the digits as a partial (incomplete) phone number\n // using the previously chosen formatting pattern (or a newly chosen one).\n\n\n return this.formatNationalNumberWithNextDigits(nextDigits, state);\n } // Formats the next phone number digits.\n\n }, {\n key: \"formatNationalNumberWithNextDigits\",\n value: function formatNationalNumberWithNextDigits(nextDigits, state) {\n var previouslyChosenFormat = this.chosenFormat; // Choose a format from the list of matching ones.\n\n var newlyChosenFormat = this.chooseFormat(state);\n\n if (newlyChosenFormat) {\n if (newlyChosenFormat === previouslyChosenFormat) {\n // If it can format the next (current) digits\n // using the previously chosen phone number format\n // then return the updated formatted number.\n return this.formatNextNationalNumberDigits(nextDigits);\n } else {\n // If a more appropriate phone number format\n // has been chosen for these \"leading digits\",\n // then re-format the national phone number part\n // using the newly selected format.\n return this.formatNextNationalNumberDigits(state.getNationalDigits());\n }\n }\n }\n }, {\n key: \"narrowDownMatchingFormats\",\n value: function narrowDownMatchingFormats(_ref2) {\n var _this2 = this;\n\n var nationalSignificantNumber = _ref2.nationalSignificantNumber,\n nationalPrefix = _ref2.nationalPrefix,\n international = _ref2.international;\n var leadingDigits = nationalSignificantNumber; // \"leading digits\" pattern list starts with a\n // \"leading digits\" pattern fitting a maximum of 3 leading digits.\n // So, after a user inputs 3 digits of a national (significant) phone number\n // this national (significant) number can already be formatted.\n // The next \"leading digits\" pattern is for 4 leading digits max,\n // and the \"leading digits\" pattern after it is for 5 leading digits max, etc.\n // This implementation is different from Google's\n // in that it searches for a fitting format\n // even if the user has entered less than\n // `MIN_LEADING_DIGITS_LENGTH` digits of a national number.\n // Because some leading digit patterns already match for a single first digit.\n\n var leadingDigitsPatternIndex = leadingDigits.length - MIN_LEADING_DIGITS_LENGTH;\n\n if (leadingDigitsPatternIndex < 0) {\n leadingDigitsPatternIndex = 0;\n }\n\n this.matchingFormats = this.matchingFormats.filter(function (format) {\n return _this2.formatSuits(format, international, nationalPrefix) && _this2.formatMatches(format, leadingDigits, leadingDigitsPatternIndex);\n }); // If there was a phone number format chosen\n // and it no longer holds given the new leading digits then reset it.\n // The test for this `if` condition is marked as:\n // \"Reset a chosen format when it no longer holds given the new leading digits\".\n // To construct a valid test case for this one can find a country\n // in `PhoneNumberMetadata.xml` yielding one format for 3 `<leadingDigits>`\n // and yielding another format for 4 `<leadingDigits>` (Australia in this case).\n\n if (this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1) {\n this.resetFormat();\n }\n }\n }, {\n key: \"formatSuits\",\n value: function formatSuits(format, international, nationalPrefix) {\n // When a prefix before a national (significant) number is\n // simply a national prefix, then it's parsed as `this.nationalPrefix`.\n // In more complex cases, a prefix before national (significant) number\n // could include a national prefix as well as some \"capturing groups\",\n // and in that case there's no info whether a national prefix has been parsed.\n // If national prefix is not used when formatting a phone number\n // using this format, but a national prefix has been entered by the user,\n // and was extracted, then discard such phone number format.\n // In Google's \"AsYouType\" formatter code, the equivalent would be this part:\n // https://github.com/google/libphonenumber/blob/0a45cfd96e71cad8edb0e162a70fcc8bd9728933/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L175-L184\n if (nationalPrefix && !format.usesNationalPrefix() && // !format.domesticCarrierCodeFormattingRule() &&\n !format.nationalPrefixIsOptionalWhenFormattingInNationalFormat()) {\n return false;\n } // If national prefix is mandatory for this phone number format\n // and there're no guarantees that a national prefix is present in user input\n // then discard this phone number format as not suitable.\n // In Google's \"AsYouType\" formatter code, the equivalent would be this part:\n // https://github.com/google/libphonenumber/blob/0a45cfd96e71cad8edb0e162a70fcc8bd9728933/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L185-L193\n\n\n if (!international && !nationalPrefix && format.nationalPrefixIsMandatoryWhenFormattingInNationalFormat()) {\n return false;\n }\n\n return true;\n }\n }, {\n key: \"formatMatches\",\n value: function formatMatches(format, leadingDigits, leadingDigitsPatternIndex) {\n var leadingDigitsPatternsCount = format.leadingDigitsPatterns().length; // If this format is not restricted to a certain\n // leading digits pattern then it fits.\n // The test case could be found by searching for \"leadingDigitsPatternsCount === 0\".\n\n if (leadingDigitsPatternsCount === 0) {\n return true;\n } // Start narrowing down the list of possible formats based on the leading digits.\n // (only previously matched formats take part in the narrowing down process)\n // `leading_digits_patterns` start with 3 digits min\n // and then go up from there one digit at a time.\n\n\n leadingDigitsPatternIndex = Math.min(leadingDigitsPatternIndex, leadingDigitsPatternsCount - 1);\n var leadingDigitsPattern = format.leadingDigitsPatterns()[leadingDigitsPatternIndex]; // Google imposes a requirement on the leading digits\n // to be minimum 3 digits long in order to be eligible\n // for checking those with a leading digits pattern.\n //\n // Since `leading_digits_patterns` start with 3 digits min,\n // Google's original `libphonenumber` library only starts\n // excluding any non-matching formats only when the\n // national number entered so far is at least 3 digits long,\n // otherwise format matching would give false negatives.\n //\n // For example, when the digits entered so far are `2`\n // and the leading digits pattern is `21` –\n // it's quite obvious in this case that the format could be the one\n // but due to the absence of further digits it would give false negative.\n //\n // Also, `leading_digits_patterns` doesn't always correspond to a single\n // digits count. For example, `60|8` pattern would already match `8`\n // but the `60` part would require having at least two leading digits,\n // so the whole pattern would require inputting two digits first in order to\n // decide on whether it matches the input, even when the input is \"80\".\n //\n // This library — `libphonenumber-js` — allows filtering by `leading_digits_patterns`\n // even when there's only 1 or 2 digits of the national (significant) number.\n // To do that, it uses a non-strict pattern matcher written specifically for that.\n //\n\n if (leadingDigits.length < MIN_LEADING_DIGITS_LENGTH) {\n // Before leading digits < 3 matching was implemented:\n // return true\n //\n // After leading digits < 3 matching was implemented:\n try {\n return new PatternMatcher(leadingDigitsPattern).match(leadingDigits, {\n allowOverflow: true\n }) !== undefined;\n } catch (error)\n /* istanbul ignore next */\n {\n // There's a slight possibility that there could be some undiscovered bug\n // in the pattern matcher code. Since the \"leading digits < 3 matching\"\n // feature is not \"essential\" for operation, it can fall back to the old way\n // in case of any issues rather than halting the application's execution.\n console.error(error);\n return true;\n }\n } // If at least `MIN_LEADING_DIGITS_LENGTH` digits of a national number are\n // available then use the usual regular expression matching.\n //\n // The whole pattern is wrapped in round brackets (`()`) because\n // the pattern can use \"or\" operator (`|`) at the top level of the pattern.\n //\n\n\n return new RegExp(\"^(\".concat(leadingDigitsPattern, \")\")).test(leadingDigits);\n }\n }, {\n key: \"getFormatFormat\",\n value: function getFormatFormat(format, international) {\n return international ? format.internationalFormat() : format.format();\n }\n }, {\n key: \"chooseFormat\",\n value: function chooseFormat(state) {\n var _this3 = this;\n\n var _loop = function _loop() {\n var format = _step2.value;\n\n // If this format is currently being used\n // and is still suitable, then stick to it.\n if (_this3.chosenFormat === format) {\n return \"break\";\n } // Sometimes, a formatting rule inserts additional digits in a phone number,\n // and \"as you type\" formatter can't do that: it should only use the digits\n // that the user has input.\n //\n // For example, in Argentina, there's a format for mobile phone numbers:\n //\n // {\n // \"pattern\": \"(\\\\d)(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\n // \"leading_digits_patterns\": [\"91\"],\n // \"national_prefix_formatting_rule\": \"0$1\",\n // \"format\": \"$2 15-$3-$4\",\n // \"international_format\": \"$1 $2 $3-$4\"\n // }\n //\n // In that format, `international_format` is used instead of `format`\n // because `format` inserts `15` in the formatted number,\n // and `AsYouType` formatter should only use the digits\n // the user has actually input, without adding any extra digits.\n // In this case, it wouldn't make a difference, because the `15`\n // is first stripped when applying `national_prefix_for_parsing`\n // and then re-added when using `format`, so in reality it doesn't\n // add any new digits to the number, but to detect that, the code\n // would have to be more complex: it would have to try formatting\n // the digits using the format and then see if any digits have\n // actually been added or removed, and then, every time a new digit\n // is input, it should re-check whether the chosen format doesn't\n // alter the digits.\n //\n // Google's code doesn't go that far, and so does this library:\n // it simply requires that a `format` doesn't add any additonal\n // digits to user's input.\n //\n // Also, people in general should move from inputting phone numbers\n // in national format (possibly with national prefixes)\n // and use international phone number format instead:\n // it's a logical thing in the modern age of mobile phones,\n // globalization and the internet.\n //\n\n /* istanbul ignore if */\n\n\n if (!NON_ALTERING_FORMAT_REG_EXP.test(_this3.getFormatFormat(format, state.international))) {\n return \"continue\";\n }\n\n if (!_this3.createTemplateForFormat(format, state)) {\n // Remove the format if it can't generate a template.\n _this3.matchingFormats = _this3.matchingFormats.filter(function (_) {\n return _ !== format;\n });\n return \"continue\";\n }\n\n _this3.chosenFormat = format;\n return \"break\";\n };\n\n // When there are multiple available formats, the formatter uses the first\n // format where a formatting template could be created.\n //\n // For some weird reason, `istanbul` says \"else path not taken\"\n // for the `for of` line below. Supposedly that means that\n // the loop doesn't ever go over the last element in the list.\n // That's true because there always is `this.chosenFormat`\n // when `this.matchingFormats` is non-empty.\n // And, for some weird reason, it doesn't think that the case\n // with empty `this.matchingFormats` qualifies for a valid \"else\" path.\n // So simply muting this `istanbul` warning.\n // It doesn't skip the contents of the `for of` loop,\n // it just skips the `for of` line.\n //\n\n /* istanbul ignore next */\n for (var _iterator2 = _createForOfIteratorHelperLoose(this.matchingFormats.slice()), _step2; !(_step2 = _iterator2()).done;) {\n var _ret = _loop();\n\n if (_ret === \"break\") break;\n if (_ret === \"continue\") continue;\n }\n\n if (!this.chosenFormat) {\n // No format matches the national (significant) phone number.\n this.resetFormat();\n }\n\n return this.chosenFormat;\n }\n }, {\n key: \"createTemplateForFormat\",\n value: function createTemplateForFormat(format, state) {\n // The formatter doesn't format numbers when numberPattern contains '|', e.g.\n // (20|3)\\d{4}. In those cases we quickly return.\n // (Though there's no such format in current metadata)\n\n /* istanbul ignore if */\n if (SUPPORT_LEGACY_FORMATTING_PATTERNS && format.pattern().indexOf('|') >= 0) {\n return;\n } // Get formatting template for this phone number format\n\n\n var template = this.getTemplateForFormat(format, state); // If the national number entered is too long\n // for any phone number format, then abort.\n\n if (template) {\n this.setNationalNumberTemplate(template, state);\n return true;\n }\n }\n }, {\n key: \"getSeparatorAfterNationalPrefix\",\n value: function getSeparatorAfterNationalPrefix(format) {\n // `US` metadata doesn't have a `national_prefix_formatting_rule`,\n // so the `if` condition below doesn't apply to `US`,\n // but in reality there shoudl be a separator\n // between a national prefix and a national (significant) number.\n // So `US` national prefix separator is a \"special\" \"hardcoded\" case.\n if (this.isNANP) {\n return ' ';\n } // If a `format` has a `national_prefix_formatting_rule`\n // and that rule has a separator after a national prefix,\n // then it means that there should be a separator\n // between a national prefix and a national (significant) number.\n\n\n if (format && format.nationalPrefixFormattingRule() && NATIONAL_PREFIX_SEPARATORS_PATTERN.test(format.nationalPrefixFormattingRule())) {\n return ' ';\n } // At this point, there seems to be no clear evidence that\n // there should be a separator between a national prefix\n // and a national (significant) number. So don't insert one.\n\n\n return '';\n }\n }, {\n key: \"getInternationalPrefixBeforeCountryCallingCode\",\n value: function getInternationalPrefixBeforeCountryCallingCode(_ref3, options) {\n var IDDPrefix = _ref3.IDDPrefix,\n missingPlus = _ref3.missingPlus;\n\n if (IDDPrefix) {\n return options && options.spacing === false ? IDDPrefix : IDDPrefix + ' ';\n }\n\n if (missingPlus) {\n return '';\n }\n\n return '+';\n }\n }, {\n key: \"getTemplate\",\n value: function getTemplate(state) {\n if (!this.template) {\n return;\n } // `this.template` holds the template for a \"complete\" phone number.\n // The currently entered phone number is most likely not \"complete\",\n // so trim all non-populated digits.\n\n\n var index = -1;\n var i = 0;\n var internationalPrefix = state.international ? this.getInternationalPrefixBeforeCountryCallingCode(state, {\n spacing: false\n }) : '';\n\n while (i < internationalPrefix.length + state.getDigitsWithoutInternationalPrefix().length) {\n index = this.template.indexOf(DIGIT_PLACEHOLDER, index + 1);\n i++;\n }\n\n return cutAndStripNonPairedParens(this.template, index + 1);\n }\n }, {\n key: \"setNationalNumberTemplate\",\n value: function setNationalNumberTemplate(template, state) {\n this.nationalNumberTemplate = template;\n this.populatedNationalNumberTemplate = template; // With a new formatting template, the matched position\n // using the old template needs to be reset.\n\n this.populatedNationalNumberTemplatePosition = -1; // For convenience, the public `.template` property\n // contains the whole international number\n // if the phone number being input is international:\n // 'x' for the '+' sign, 'x'es for the country phone code,\n // a spacebar and then the template for the formatted national number.\n\n if (state.international) {\n this.template = this.getInternationalPrefixBeforeCountryCallingCode(state).replace(/[\\d\\+]/g, DIGIT_PLACEHOLDER) + repeat(DIGIT_PLACEHOLDER, state.callingCode.length) + ' ' + template;\n } else {\n this.template = template;\n }\n }\n /**\r\n * Generates formatting template for a national phone number,\r\n * optionally containing a national prefix, for a format.\r\n * @param {Format} format\r\n * @param {string} nationalPrefix\r\n * @return {string}\r\n */\n\n }, {\n key: \"getTemplateForFormat\",\n value: function getTemplateForFormat(format, _ref4) {\n var nationalSignificantNumber = _ref4.nationalSignificantNumber,\n international = _ref4.international,\n nationalPrefix = _ref4.nationalPrefix,\n complexPrefixBeforeNationalSignificantNumber = _ref4.complexPrefixBeforeNationalSignificantNumber;\n var pattern = format.pattern();\n /* istanbul ignore else */\n\n if (SUPPORT_LEGACY_FORMATTING_PATTERNS) {\n pattern = pattern // Replace anything in the form of [..] with \\d\n .replace(CREATE_CHARACTER_CLASS_PATTERN(), '\\\\d') // Replace any standalone digit (not the one in `{}`) with \\d\n .replace(CREATE_STANDALONE_DIGIT_PATTERN(), '\\\\d');\n } // Generate a dummy national number (consisting of `9`s)\n // that fits this format's `pattern`.\n //\n // This match will always succeed,\n // because the \"longest dummy phone number\"\n // has enough length to accomodate any possible\n // national phone number format pattern.\n //\n\n\n var digits = LONGEST_DUMMY_PHONE_NUMBER.match(pattern)[0]; // If the national number entered is too long\n // for any phone number format, then abort.\n\n if (nationalSignificantNumber.length > digits.length) {\n return;\n } // Get a formatting template which can be used to efficiently format\n // a partial number where digits are added one by one.\n // Below `strictPattern` is used for the\n // regular expression (with `^` and `$`).\n // This wasn't originally in Google's `libphonenumber`\n // and I guess they don't really need it\n // because they're not using \"templates\" to format phone numbers\n // but I added `strictPattern` after encountering\n // South Korean phone number formatting bug.\n //\n // Non-strict regular expression bug demonstration:\n //\n // this.nationalSignificantNumber : `111111111` (9 digits)\n //\n // pattern : (\\d{2})(\\d{3,4})(\\d{4})\n // format : `$1 $2 $3`\n // digits : `9999999999` (10 digits)\n //\n // '9999999999'.replace(new RegExp(/(\\d{2})(\\d{3,4})(\\d{4})/g), '$1 $2 $3') = \"99 9999 9999\"\n //\n // template : xx xxxx xxxx\n //\n // But the correct template in this case is `xx xxx xxxx`.\n // The template was generated incorrectly because of the\n // `{3,4}` variability in the `pattern`.\n //\n // The fix is, if `this.nationalSignificantNumber` has already sufficient length\n // to satisfy the `pattern` completely then `this.nationalSignificantNumber`\n // is used instead of `digits`.\n\n\n var strictPattern = new RegExp('^' + pattern + '$');\n var nationalNumberDummyDigits = nationalSignificantNumber.replace(/\\d/g, DUMMY_DIGIT); // If `this.nationalSignificantNumber` has already sufficient length\n // to satisfy the `pattern` completely then use it\n // instead of `digits`.\n\n if (strictPattern.test(nationalNumberDummyDigits)) {\n digits = nationalNumberDummyDigits;\n }\n\n var numberFormat = this.getFormatFormat(format, international);\n var nationalPrefixIncludedInTemplate; // If a user did input a national prefix (and that's guaranteed),\n // and if a `format` does have a national prefix formatting rule,\n // then see if that national prefix formatting rule\n // prepends exactly the same national prefix the user has input.\n // If that's the case, then use the `format` with the national prefix formatting rule.\n // Otherwise, use the `format` without the national prefix formatting rule,\n // and prepend a national prefix manually to it.\n\n if (this.shouldTryNationalPrefixFormattingRule(format, {\n international: international,\n nationalPrefix: nationalPrefix\n })) {\n var numberFormatWithNationalPrefix = numberFormat.replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule()); // If `national_prefix_formatting_rule` of a `format` simply prepends\n // national prefix at the start of a national (significant) number,\n // then such formatting can be used with `AsYouType` formatter.\n // There seems to be no `else` case: everywhere in metadata,\n // national prefix formatting rule is national prefix + $1,\n // or `($1)`, in which case such format isn't even considered\n // when the user has input a national prefix.\n\n /* istanbul ignore else */\n\n if (parseDigits(format.nationalPrefixFormattingRule()) === (nationalPrefix || '') + parseDigits('$1')) {\n numberFormat = numberFormatWithNationalPrefix;\n nationalPrefixIncludedInTemplate = true; // Replace all digits of the national prefix in the formatting template\n // with `DIGIT_PLACEHOLDER`s.\n\n if (nationalPrefix) {\n var i = nationalPrefix.length;\n\n while (i > 0) {\n numberFormat = numberFormat.replace(/\\d/, DIGIT_PLACEHOLDER);\n i--;\n }\n }\n }\n } // Generate formatting template for this phone number format.\n\n\n var template = digits // Format the dummy phone number according to the format.\n .replace(new RegExp(pattern), numberFormat) // Replace each dummy digit with a DIGIT_PLACEHOLDER.\n .replace(new RegExp(DUMMY_DIGIT, 'g'), DIGIT_PLACEHOLDER); // If a prefix of a national (significant) number is not as simple\n // as just a basic national prefix, then just prepend such prefix\n // before the national (significant) number, optionally spacing\n // the two with a whitespace.\n\n if (!nationalPrefixIncludedInTemplate) {\n if (complexPrefixBeforeNationalSignificantNumber) {\n // Prepend the prefix to the template manually.\n template = repeat(DIGIT_PLACEHOLDER, complexPrefixBeforeNationalSignificantNumber.length) + ' ' + template;\n } else if (nationalPrefix) {\n // Prepend national prefix to the template manually.\n template = repeat(DIGIT_PLACEHOLDER, nationalPrefix.length) + this.getSeparatorAfterNationalPrefix(format) + template;\n }\n }\n\n if (international) {\n template = applyInternationalSeparatorStyle(template);\n }\n\n return template;\n }\n }, {\n key: \"formatNextNationalNumberDigits\",\n value: function formatNextNationalNumberDigits(digits) {\n var result = populateTemplateWithDigits(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, digits);\n\n if (!result) {\n // Reset the format.\n this.resetFormat();\n return;\n }\n\n this.populatedNationalNumberTemplate = result[0];\n this.populatedNationalNumberTemplatePosition = result[1]; // Return the formatted phone number so far.\n\n return cutAndStripNonPairedParens(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1); // The old way which was good for `input-format` but is not so good\n // for `react-phone-number-input`'s default input (`InputBasic`).\n // return closeNonPairedParens(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1)\n // \t.replace(new RegExp(DIGIT_PLACEHOLDER, 'g'), ' ')\n }\n }, {\n key: \"shouldTryNationalPrefixFormattingRule\",\n value: function shouldTryNationalPrefixFormattingRule(format, _ref5) {\n var international = _ref5.international,\n nationalPrefix = _ref5.nationalPrefix;\n\n if (format.nationalPrefixFormattingRule()) {\n // In some countries, `national_prefix_formatting_rule` is `($1)`,\n // so it applies even if the user hasn't input a national prefix.\n // `format.usesNationalPrefix()` detects such cases.\n var usesNationalPrefix = format.usesNationalPrefix();\n\n if (usesNationalPrefix && nationalPrefix || !usesNationalPrefix && !international) {\n return true;\n }\n }\n }\n }]);\n\n return AsYouTypeFormatter;\n}();\n\nexport { AsYouTypeFormatter as default };\n","import Metadata from '../metadata.js';\nimport { VALID_DIGITS } from '../constants.js';\nvar CAPTURING_DIGIT_PATTERN = new RegExp('([' + VALID_DIGITS + '])');\nexport default function stripIddPrefix(number, country, callingCode, metadata) {\n if (!country) {\n return;\n } // Check if the number is IDD-prefixed.\n\n\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n var IDDPrefixPattern = new RegExp(countryMetadata.IDDPrefix());\n\n if (number.search(IDDPrefixPattern) !== 0) {\n return;\n } // Strip IDD prefix.\n\n\n number = number.slice(number.match(IDDPrefixPattern)[0].length); // If there're any digits after an IDD prefix,\n // then those digits are a country calling code.\n // Since no country code starts with a `0`,\n // the code below validates that the next digit (if present) is not `0`.\n\n var matchedGroups = number.match(CAPTURING_DIGIT_PATTERN);\n\n if (matchedGroups && matchedGroups[1] != null && matchedGroups[1].length > 0) {\n if (matchedGroups[1] === '0') {\n return;\n }\n }\n\n return number;\n}\n","/**\r\n * Strips any national prefix (such as 0, 1) present in a\r\n * (possibly incomplete) number provided.\r\n * \"Carrier codes\" are only used in Colombia and Brazil,\r\n * and only when dialing within those countries from a mobile phone to a fixed line number.\r\n * Sometimes it won't actually strip national prefix\r\n * and will instead prepend some digits to the `number`:\r\n * for example, when number `2345678` is passed with `VI` country selected,\r\n * it will return `{ number: \"3402345678\" }`, because `340` area code is prepended.\r\n * @param {string} number — National number digits.\r\n * @param {object} metadata — Metadata with country selected.\r\n * @return {object} `{ nationalNumber: string, nationalPrefix: string? carrierCode: string? }`. Even if a national prefix was extracted, it's not necessarily present in the returned object, so don't rely on its presence in the returned object in order to find out whether a national prefix has been extracted or not.\r\n */\nexport default function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {\n if (number && metadata.numberingPlan.nationalPrefixForParsing()) {\n // See METADATA.md for the description of\n // `national_prefix_for_parsing` and `national_prefix_transform_rule`.\n // Attempt to parse the first digits as a national prefix.\n var prefixPattern = new RegExp('^(?:' + metadata.numberingPlan.nationalPrefixForParsing() + ')');\n var prefixMatch = prefixPattern.exec(number);\n\n if (prefixMatch) {\n var nationalNumber;\n var carrierCode; // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n // If a `national_prefix_for_parsing` has any \"capturing groups\"\n // then it means that the national (significant) number is equal to\n // those \"capturing groups\" transformed via `national_prefix_transform_rule`,\n // and nothing could be said about the actual national prefix:\n // what is it and was it even there.\n // If a `national_prefix_for_parsing` doesn't have any \"capturing groups\",\n // then everything it matches is a national prefix.\n // To determine whether `national_prefix_for_parsing` matched any\n // \"capturing groups\", the value of the result of calling `.exec()`\n // is looked at, and if it has non-undefined values where there're\n // \"capturing groups\" in the regular expression, then it means\n // that \"capturing groups\" have been matched.\n // It's not possible to tell whether there'll be any \"capturing gropus\"\n // before the matching process, because a `national_prefix_for_parsing`\n // could exhibit both behaviors.\n\n var capturedGroupsCount = prefixMatch.length - 1;\n var hasCapturedGroups = capturedGroupsCount > 0 && prefixMatch[capturedGroupsCount];\n\n if (metadata.nationalPrefixTransformRule() && hasCapturedGroups) {\n nationalNumber = number.replace(prefixPattern, metadata.nationalPrefixTransformRule()); // If there's more than one captured group,\n // then carrier code is the second one.\n\n if (capturedGroupsCount > 1) {\n carrierCode = prefixMatch[1];\n }\n } // If there're no \"capturing groups\",\n // or if there're \"capturing groups\" but no\n // `national_prefix_transform_rule`,\n // then just strip the national prefix from the number,\n // and possibly a carrier code.\n // Seems like there could be more.\n else {\n // `prefixBeforeNationalNumber` is the whole substring matched by\n // the `national_prefix_for_parsing` regular expression.\n // There seem to be no guarantees that it's just a national prefix.\n // For example, if there's a carrier code, it's gonna be a\n // part of `prefixBeforeNationalNumber` too.\n var prefixBeforeNationalNumber = prefixMatch[0];\n nationalNumber = number.slice(prefixBeforeNationalNumber.length); // If there's at least one captured group,\n // then carrier code is the first one.\n\n if (hasCapturedGroups) {\n carrierCode = prefixMatch[1];\n }\n } // Tries to guess whether a national prefix was present in the input.\n // This is not something copy-pasted from Google's library:\n // they don't seem to have an equivalent for that.\n // So this isn't an \"officially approved\" way of doing something like that.\n // But since there seems no other existing method, this library uses it.\n\n\n var nationalPrefix;\n\n if (hasCapturedGroups) {\n var possiblePositionOfTheFirstCapturedGroup = number.indexOf(prefixMatch[1]);\n var possibleNationalPrefix = number.slice(0, possiblePositionOfTheFirstCapturedGroup); // Example: an Argentinian (AR) phone number `0111523456789`.\n // `prefixMatch[0]` is `01115`, and `$1` is `11`,\n // and the rest of the phone number is `23456789`.\n // The national number is transformed via `9$1` to `91123456789`.\n // National prefix `0` is detected being present at the start.\n // if (possibleNationalPrefix.indexOf(metadata.numberingPlan.nationalPrefix()) === 0) {\n\n if (possibleNationalPrefix === metadata.numberingPlan.nationalPrefix()) {\n nationalPrefix = metadata.numberingPlan.nationalPrefix();\n }\n } else {\n nationalPrefix = prefixMatch[0];\n }\n\n return {\n nationalNumber: nationalNumber,\n nationalPrefix: nationalPrefix,\n carrierCode: carrierCode\n };\n }\n }\n\n return {\n nationalNumber: number\n };\n}\n","import extractNationalNumberFromPossiblyIncompleteNumber from './extractNationalNumberFromPossiblyIncompleteNumber.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport checkNumberLength from './checkNumberLength.js';\n/**\r\n * Strips national prefix and carrier code from a complete phone number.\r\n * The difference from the non-\"FromCompleteNumber\" function is that\r\n * it won't extract national prefix if the resultant number is too short\r\n * to be a complete number for the selected phone numbering plan.\r\n * @param {string} number — Complete phone number digits.\r\n * @param {Metadata} metadata — Metadata with a phone numbering plan selected.\r\n * @return {object} `{ nationalNumber: string, carrierCode: string? }`.\r\n */\n\nexport default function extractNationalNumber(number, metadata) {\n // Parsing national prefixes and carrier codes\n // is only required for local phone numbers\n // but some people don't understand that\n // and sometimes write international phone numbers\n // with national prefixes (or maybe even carrier codes).\n // http://ucken.blogspot.ru/2016/03/trunk-prefixes-in-skype4b.html\n // Google's original library forgives such mistakes\n // and so does this library, because it has been requested:\n // https://github.com/catamphetamine/libphonenumber-js/issues/127\n var _extractNationalNumbe = extractNationalNumberFromPossiblyIncompleteNumber(number, metadata),\n carrierCode = _extractNationalNumbe.carrierCode,\n nationalNumber = _extractNationalNumbe.nationalNumber;\n\n if (nationalNumber !== number) {\n if (!shouldHaveExtractedNationalPrefix(number, nationalNumber, metadata)) {\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n } // Check the national (significant) number length after extracting national prefix and carrier code.\n // Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature.\n\n\n if (metadata.possibleLengths()) {\n // The number remaining after stripping the national prefix and carrier code\n // should be long enough to have a possible length for the country.\n // Otherwise, don't strip the national prefix and carrier code,\n // since the original number could be a valid number.\n // This check has been copy-pasted \"as is\" from Google's original library:\n // https://github.com/google/libphonenumber/blob/876268eb1ad6cdc1b7b5bef17fc5e43052702d57/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L3236-L3250\n // It doesn't check for the \"possibility\" of the original `number`.\n // I guess it's fine not checking that one. It works as is anyway.\n if (!isPossibleIncompleteNationalNumber(nationalNumber, metadata)) {\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n }\n }\n }\n\n return {\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n} // In some countries, the same digit could be a national prefix\n// or a leading digit of a valid phone number.\n// For example, in Russia, national prefix is `8`,\n// and also `800 555 35 35` is a valid number\n// in which `8` is not a national prefix, but the first digit\n// of a national (significant) number.\n// Same's with Belarus:\n// `82004910060` is a valid national (significant) number,\n// but `2004910060` is not.\n// To support such cases (to prevent the code from always stripping\n// national prefix), a condition is imposed: a national prefix\n// is not extracted when the original number is \"viable\" and the\n// resultant number is not, a \"viable\" national number being the one\n// that matches `national_number_pattern`.\n\nfunction shouldHaveExtractedNationalPrefix(nationalNumberBefore, nationalNumberAfter, metadata) {\n // The equivalent in Google's code is:\n // https://github.com/google/libphonenumber/blob/e326fa1fc4283bb05eb35cb3c15c18f98a31af33/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L2969-L3004\n if (matchesEntirely(nationalNumberBefore, metadata.nationalNumberPattern()) && !matchesEntirely(nationalNumberAfter, metadata.nationalNumberPattern())) {\n return false;\n } // This \"is possible\" national number (length) check has been commented out\n // because it's superceded by the (effectively) same check done in the\n // `extractNationalNumber()` function after it calls `shouldHaveExtractedNationalPrefix()`.\n // In other words, why run the same check twice if it could only be run once.\n // // Check the national (significant) number length after extracting national prefix and carrier code.\n // // Fixes a minor \"weird behavior\" bug: https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/57\n // // (Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature).\n // if (metadata.possibleLengths()) {\n // \tif (isPossibleIncompleteNationalNumber(nationalNumberBefore, metadata) &&\n // \t\t!isPossibleIncompleteNationalNumber(nationalNumberAfter, metadata)) {\n // \t\treturn false\n // \t}\n // }\n\n\n return true;\n}\n\nfunction isPossibleIncompleteNationalNumber(nationalNumber, metadata) {\n switch (checkNumberLength(nationalNumber, metadata)) {\n case 'TOO_SHORT':\n case 'INVALID_LENGTH':\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n return false;\n\n default:\n return true;\n }\n}\n","import Metadata from '../metadata.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport extractNationalNumber from './extractNationalNumber.js';\nimport checkNumberLength from './checkNumberLength.js';\nimport getCountryCallingCode from '../getCountryCallingCode.js';\n/**\r\n * Sometimes some people incorrectly input international phone numbers\r\n * without the leading `+`. This function corrects such input.\r\n * @param {string} number — Phone number digits.\r\n * @param {string?} country\r\n * @param {string?} callingCode\r\n * @param {object} metadata\r\n * @return {object} `{ countryCallingCode: string?, number: string }`.\r\n */\n\nexport default function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, callingCode, metadata) {\n var countryCallingCode = country ? getCountryCallingCode(country, metadata) : callingCode;\n\n if (number.indexOf(countryCallingCode) === 0) {\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(country, callingCode);\n var possibleShorterNumber = number.slice(countryCallingCode.length);\n\n var _extractNationalNumbe = extractNationalNumber(possibleShorterNumber, metadata),\n possibleShorterNationalNumber = _extractNationalNumbe.nationalNumber;\n\n var _extractNationalNumbe2 = extractNationalNumber(number, metadata),\n nationalNumber = _extractNationalNumbe2.nationalNumber; // If the number was not valid before but is valid now,\n // or if it was too long before, we consider the number\n // with the country calling code stripped to be a better result\n // and keep that instead.\n // For example, in Germany (+49), `49` is a valid area code,\n // so if a number starts with `49`, it could be both a valid\n // national German number or an international number without\n // a leading `+`.\n\n\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata.nationalNumberPattern()) || checkNumberLength(nationalNumber, metadata) === 'TOO_LONG') {\n return {\n countryCallingCode: countryCallingCode,\n number: possibleShorterNumber\n };\n }\n }\n\n return {\n number: number\n };\n}\n","import stripIddPrefix from './stripIddPrefix.js';\nimport extractCountryCallingCodeFromInternationalNumberWithoutPlusSign from './extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js';\nimport Metadata from '../metadata.js';\nimport { MAX_LENGTH_COUNTRY_CODE } from '../constants.js';\n/**\r\n * Converts a phone number digits (possibly with a `+`)\r\n * into a calling code and the rest phone number digits.\r\n * The \"rest phone number digits\" could include\r\n * a national prefix, carrier code, and national\r\n * (significant) number.\r\n * @param {string} number — Phone number digits (possibly with a `+`).\r\n * @param {string} [country] — Default country.\r\n * @param {string} [callingCode] — Default calling code (some phone numbering plans are non-geographic).\r\n * @param {object} metadata\r\n * @return {object} `{ countryCallingCodeSource: string?, countryCallingCode: string?, number: string }`\r\n * @example\r\n * // Returns `{ countryCallingCode: \"1\", number: \"2133734253\" }`.\r\n * extractCountryCallingCode('2133734253', 'US', null, metadata)\r\n * extractCountryCallingCode('2133734253', null, '1', metadata)\r\n * extractCountryCallingCode('+12133734253', null, null, metadata)\r\n * extractCountryCallingCode('+12133734253', 'RU', null, metadata)\r\n */\n\nexport default function extractCountryCallingCode(number, country, callingCode, metadata) {\n if (!number) {\n return {};\n }\n\n var isNumberWithIddPrefix; // If this is not an international phone number,\n // then either extract an \"IDD\" prefix, or extract a\n // country calling code from a number by autocorrecting it\n // by prepending a leading `+` in cases when it starts\n // with the country calling code.\n // https://wikitravel.org/en/International_dialling_prefix\n // https://github.com/catamphetamine/libphonenumber-js/issues/376\n\n if (number[0] !== '+') {\n // Convert an \"out-of-country\" dialing phone number\n // to a proper international phone number.\n var numberWithoutIDD = stripIddPrefix(number, country, callingCode, metadata); // If an IDD prefix was stripped then\n // convert the number to international one\n // for subsequent parsing.\n\n if (numberWithoutIDD && numberWithoutIDD !== number) {\n isNumberWithIddPrefix = true;\n number = '+' + numberWithoutIDD;\n } else {\n // Check to see if the number starts with the country calling code\n // for the default country. If so, we remove the country calling code,\n // and do some checks on the validity of the number before and after.\n // https://github.com/catamphetamine/libphonenumber-js/issues/376\n if (country || callingCode) {\n var _extractCountryCallin = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, callingCode, metadata),\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n shorterNumber = _extractCountryCallin.number;\n\n if (countryCallingCode) {\n return {\n countryCallingCodeSource: 'FROM_NUMBER_WITHOUT_PLUS_SIGN',\n countryCallingCode: countryCallingCode,\n number: shorterNumber\n };\n }\n }\n\n return {\n // No need to set it to `UNSPECIFIED`. It can be just `undefined`.\n // countryCallingCodeSource: 'UNSPECIFIED',\n number: number\n };\n }\n } // Fast abortion: country codes do not begin with a '0'\n\n\n if (number[1] === '0') {\n return {};\n }\n\n metadata = new Metadata(metadata); // The thing with country phone codes\n // is that they are orthogonal to each other\n // i.e. there's no such country phone code A\n // for which country phone code B exists\n // where B starts with A.\n // Therefore, while scanning digits,\n // if a valid country code is found,\n // that means that it is the country code.\n //\n\n var i = 2;\n\n while (i - 1 <= MAX_LENGTH_COUNTRY_CODE && i <= number.length) {\n var _countryCallingCode = number.slice(1, i);\n\n if (metadata.hasCallingCode(_countryCallingCode)) {\n metadata.selectNumberingPlan(_countryCallingCode);\n return {\n countryCallingCodeSource: isNumberWithIddPrefix ? 'FROM_NUMBER_WITH_IDD' : 'FROM_NUMBER_WITH_PLUS_SIGN',\n countryCallingCode: _countryCallingCode,\n number: number.slice(i)\n };\n }\n\n i++;\n }\n\n return {};\n} // The possible values for the returned `countryCallingCodeSource` are:\n//\n// Copy-pasted from:\n// https://github.com/google/libphonenumber/blob/master/resources/phonenumber.proto\n//\n// // The source from which the country_code is derived. This is not set in the\n// // general parsing method, but in the method that parses and keeps raw_input.\n// // New fields could be added upon request.\n// enum CountryCodeSource {\n// // Default value returned if this is not set, because the phone number was\n// // created using parse, not parseAndKeepRawInput. hasCountryCodeSource will\n// // return false if this is the case.\n// UNSPECIFIED = 0;\n//\n// // The country_code is derived based on a phone number with a leading \"+\",\n// // e.g. the French number \"+33 1 42 68 53 00\".\n// FROM_NUMBER_WITH_PLUS_SIGN = 1;\n//\n// // The country_code is derived based on a phone number with a leading IDD,\n// // e.g. the French number \"011 33 1 42 68 53 00\", as it is dialled from US.\n// FROM_NUMBER_WITH_IDD = 5;\n//\n// // The country_code is derived based on a phone number without a leading\n// // \"+\", e.g. the French number \"33 1 42 68 53 00\" when defaultCountry is\n// // supplied as France.\n// FROM_NUMBER_WITHOUT_PLUS_SIGN = 10;\n//\n// // The country_code is derived NOT based on the phone number itself, but\n// // from the defaultCountry parameter provided in the parsing function by the\n// // clients. This happens mostly for numbers written in the national format\n// // (without country code). For example, this would be set when parsing the\n// // French number \"01 42 68 53 00\", when defaultCountry is supplied as\n// // France.\n// FROM_DEFAULT_COUNTRY = 20;\n// }\n","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nimport _extractCountryCallingCode from './helpers/extractCountryCallingCode.js';\nimport extractCountryCallingCodeFromInternationalNumberWithoutPlusSign from './helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js';\nimport extractNationalNumberFromPossiblyIncompleteNumber from './helpers/extractNationalNumberFromPossiblyIncompleteNumber.js';\nimport stripIddPrefix from './helpers/stripIddPrefix.js';\nimport parseDigits from './helpers/parseDigits.js';\nimport { VALID_DIGITS, VALID_PUNCTUATION, PLUS_CHARS } from './constants.js';\nvar VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART = '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+';\nvar VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN = new RegExp('^' + VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART + '$', 'i');\nvar VALID_FORMATTED_PHONE_NUMBER_PART = '(?:' + '[' + PLUS_CHARS + ']' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']*' + '|' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+' + ')';\nvar AFTER_PHONE_NUMBER_DIGITS_END_PATTERN = new RegExp('[^' + VALID_PUNCTUATION + VALID_DIGITS + ']+' + '.*' + '$'); // Tests whether `national_prefix_for_parsing` could match\n// different national prefixes.\n// Matches anything that's not a digit or a square bracket.\n\nvar COMPLEX_NATIONAL_PREFIX = /[^\\d\\[\\]]/;\n\nvar AsYouTypeParser = /*#__PURE__*/function () {\n function AsYouTypeParser(_ref) {\n var defaultCountry = _ref.defaultCountry,\n defaultCallingCode = _ref.defaultCallingCode,\n metadata = _ref.metadata,\n onNationalSignificantNumberChange = _ref.onNationalSignificantNumberChange;\n\n _classCallCheck(this, AsYouTypeParser);\n\n this.defaultCountry = defaultCountry;\n this.defaultCallingCode = defaultCallingCode;\n this.metadata = metadata;\n this.onNationalSignificantNumberChange = onNationalSignificantNumberChange;\n }\n\n _createClass(AsYouTypeParser, [{\n key: \"input\",\n value: function input(text, state) {\n var _extractFormattedDigi = extractFormattedDigitsAndPlus(text),\n _extractFormattedDigi2 = _slicedToArray(_extractFormattedDigi, 2),\n formattedDigits = _extractFormattedDigi2[0],\n hasPlus = _extractFormattedDigi2[1];\n\n var digits = parseDigits(formattedDigits); // Checks for a special case: just a leading `+` has been entered.\n\n var justLeadingPlus;\n\n if (hasPlus) {\n if (!state.digits) {\n state.startInternationalNumber();\n\n if (!digits) {\n justLeadingPlus = true;\n }\n }\n }\n\n if (digits) {\n this.inputDigits(digits, state);\n }\n\n return {\n digits: digits,\n justLeadingPlus: justLeadingPlus\n };\n }\n /**\r\n * Inputs \"next\" phone number digits.\r\n * @param {string} digits\r\n * @return {string} [formattedNumber] Formatted national phone number (if it can be formatted at this stage). Returning `undefined` means \"don't format the national phone number at this stage\".\r\n */\n\n }, {\n key: \"inputDigits\",\n value: function inputDigits(nextDigits, state) {\n var digits = state.digits;\n var hasReceivedThreeLeadingDigits = digits.length < 3 && digits.length + nextDigits.length >= 3; // Append phone number digits.\n\n state.appendDigits(nextDigits); // Attempt to extract IDD prefix:\n // Some users input their phone number in international format,\n // but in an \"out-of-country\" dialing format instead of using the leading `+`.\n // https://github.com/catamphetamine/libphonenumber-js/issues/185\n // Detect such numbers as soon as there're at least 3 digits.\n // Google's library attempts to extract IDD prefix at 3 digits,\n // so this library just copies that behavior.\n // I guess that's because the most commot IDD prefixes are\n // `00` (Europe) and `011` (US).\n // There exist really long IDD prefixes too:\n // for example, in Australia the default IDD prefix is `0011`,\n // and it could even be as long as `14880011`.\n // An IDD prefix is extracted here, and then every time when\n // there's a new digit and the number couldn't be formatted.\n\n if (hasReceivedThreeLeadingDigits) {\n this.extractIddPrefix(state);\n }\n\n if (this.isWaitingForCountryCallingCode(state)) {\n if (!this.extractCountryCallingCode(state)) {\n return;\n }\n } else {\n state.appendNationalSignificantNumberDigits(nextDigits);\n } // If a phone number is being input in international format,\n // then it's not valid for it to have a national prefix.\n // Still, some people incorrectly input such numbers with a national prefix.\n // In such cases, only attempt to strip a national prefix if the number becomes too long.\n // (but that is done later, not here)\n\n\n if (!state.international) {\n if (!this.hasExtractedNationalSignificantNumber) {\n this.extractNationalSignificantNumber(state.getNationalDigits(), function (stateUpdate) {\n return state.update(stateUpdate);\n });\n }\n }\n }\n }, {\n key: \"isWaitingForCountryCallingCode\",\n value: function isWaitingForCountryCallingCode(_ref2) {\n var international = _ref2.international,\n callingCode = _ref2.callingCode;\n return international && !callingCode;\n } // Extracts a country calling code from a number\n // being entered in internatonal format.\n\n }, {\n key: \"extractCountryCallingCode\",\n value: function extractCountryCallingCode(state) {\n var _extractCountryCallin = _extractCountryCallingCode('+' + state.getDigitsWithoutInternationalPrefix(), this.defaultCountry, this.defaultCallingCode, this.metadata.metadata),\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n number = _extractCountryCallin.number;\n\n if (countryCallingCode) {\n state.setCallingCode(countryCallingCode);\n state.update({\n nationalSignificantNumber: number\n });\n return true;\n }\n }\n }, {\n key: \"reset\",\n value: function reset(numberingPlan) {\n if (numberingPlan) {\n this.hasSelectedNumberingPlan = true;\n\n var nationalPrefixForParsing = numberingPlan._nationalPrefixForParsing();\n\n this.couldPossiblyExtractAnotherNationalSignificantNumber = nationalPrefixForParsing && COMPLEX_NATIONAL_PREFIX.test(nationalPrefixForParsing);\n } else {\n this.hasSelectedNumberingPlan = undefined;\n this.couldPossiblyExtractAnotherNationalSignificantNumber = undefined;\n }\n }\n /**\r\n * Extracts a national (significant) number from user input.\r\n * Google's library is different in that it only applies `national_prefix_for_parsing`\r\n * and doesn't apply `national_prefix_transform_rule` after that.\r\n * https://github.com/google/libphonenumber/blob/a3d70b0487875475e6ad659af404943211d26456/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L539\r\n * @return {boolean} [extracted]\r\n */\n\n }, {\n key: \"extractNationalSignificantNumber\",\n value: function extractNationalSignificantNumber(nationalDigits, setState) {\n if (!this.hasSelectedNumberingPlan) {\n return;\n }\n\n var _extractNationalNumbe = extractNationalNumberFromPossiblyIncompleteNumber(nationalDigits, this.metadata),\n nationalPrefix = _extractNationalNumbe.nationalPrefix,\n nationalNumber = _extractNationalNumbe.nationalNumber,\n carrierCode = _extractNationalNumbe.carrierCode;\n\n if (nationalNumber === nationalDigits) {\n return;\n }\n\n this.onExtractedNationalNumber(nationalPrefix, carrierCode, nationalNumber, nationalDigits, setState);\n return true;\n }\n /**\r\n * In Google's code this function is called \"attempt to extract longer NDD\".\r\n * \"Some national prefixes are a substring of others\", they say.\r\n * @return {boolean} [result] — Returns `true` if extracting a national prefix produced different results from what they were.\r\n */\n\n }, {\n key: \"extractAnotherNationalSignificantNumber\",\n value: function extractAnotherNationalSignificantNumber(nationalDigits, prevNationalSignificantNumber, setState) {\n if (!this.hasExtractedNationalSignificantNumber) {\n return this.extractNationalSignificantNumber(nationalDigits, setState);\n }\n\n if (!this.couldPossiblyExtractAnotherNationalSignificantNumber) {\n return;\n }\n\n var _extractNationalNumbe2 = extractNationalNumberFromPossiblyIncompleteNumber(nationalDigits, this.metadata),\n nationalPrefix = _extractNationalNumbe2.nationalPrefix,\n nationalNumber = _extractNationalNumbe2.nationalNumber,\n carrierCode = _extractNationalNumbe2.carrierCode; // If a national prefix has been extracted previously,\n // then it's always extracted as additional digits are added.\n // That's assuming `extractNationalNumberFromPossiblyIncompleteNumber()`\n // doesn't do anything different from what it currently does.\n // So, just in case, here's this check, though it doesn't occur.\n\n /* istanbul ignore if */\n\n\n if (nationalNumber === prevNationalSignificantNumber) {\n return;\n }\n\n this.onExtractedNationalNumber(nationalPrefix, carrierCode, nationalNumber, nationalDigits, setState);\n return true;\n }\n }, {\n key: \"onExtractedNationalNumber\",\n value: function onExtractedNationalNumber(nationalPrefix, carrierCode, nationalSignificantNumber, nationalDigits, setState) {\n var complexPrefixBeforeNationalSignificantNumber;\n var nationalSignificantNumberMatchesInput; // This check also works with empty `this.nationalSignificantNumber`.\n\n var nationalSignificantNumberIndex = nationalDigits.lastIndexOf(nationalSignificantNumber); // If the extracted national (significant) number is the\n // last substring of the `digits`, then it means that it hasn't been altered:\n // no digits have been removed from the national (significant) number\n // while applying `national_prefix_transform_rule`.\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n\n if (nationalSignificantNumberIndex >= 0 && nationalSignificantNumberIndex === nationalDigits.length - nationalSignificantNumber.length) {\n nationalSignificantNumberMatchesInput = true; // If a prefix of a national (significant) number is not as simple\n // as just a basic national prefix, then such prefix is stored in\n // `this.complexPrefixBeforeNationalSignificantNumber` property and will be\n // prepended \"as is\" to the national (significant) number to produce\n // a formatted result.\n\n var prefixBeforeNationalNumber = nationalDigits.slice(0, nationalSignificantNumberIndex); // `prefixBeforeNationalNumber` is always non-empty,\n // because `onExtractedNationalNumber()` isn't called\n // when a national (significant) number hasn't been actually \"extracted\":\n // when a national (significant) number is equal to the national part of `digits`,\n // then `onExtractedNationalNumber()` doesn't get called.\n\n if (prefixBeforeNationalNumber !== nationalPrefix) {\n complexPrefixBeforeNationalSignificantNumber = prefixBeforeNationalNumber;\n }\n }\n\n setState({\n nationalPrefix: nationalPrefix,\n carrierCode: carrierCode,\n nationalSignificantNumber: nationalSignificantNumber,\n nationalSignificantNumberMatchesInput: nationalSignificantNumberMatchesInput,\n complexPrefixBeforeNationalSignificantNumber: complexPrefixBeforeNationalSignificantNumber\n }); // `onExtractedNationalNumber()` is only called when\n // the national (significant) number actually did change.\n\n this.hasExtractedNationalSignificantNumber = true;\n this.onNationalSignificantNumberChange();\n }\n }, {\n key: \"reExtractNationalSignificantNumber\",\n value: function reExtractNationalSignificantNumber(state) {\n // Attempt to extract a national prefix.\n //\n // Some people incorrectly input national prefix\n // in an international phone number.\n // For example, some people write British phone numbers as `+44(0)...`.\n //\n // Also, in some rare cases, it is valid for a national prefix\n // to be a part of an international phone number.\n // For example, mobile phone numbers in Mexico are supposed to be\n // dialled internationally using a `1` national prefix,\n // so the national prefix will be part of an international number.\n //\n // Quote from:\n // https://www.mexperience.com/dialing-cell-phones-in-mexico/\n //\n // \"Dialing a Mexican cell phone from abroad\n // When you are calling a cell phone number in Mexico from outside Mexico,\n // it’s necessary to dial an additional “1” after Mexico’s country code\n // (which is “52”) and before the area code.\n // You also ignore the 045, and simply dial the area code and the\n // cell phone’s number.\n //\n // If you don’t add the “1”, you’ll receive a recorded announcement\n // asking you to redial using it.\n //\n // For example, if you are calling from the USA to a cell phone\n // in Mexico City, you would dial +52 – 1 – 55 – 1234 5678.\n // (Note that this is different to calling a land line in Mexico City\n // from abroad, where the number dialed would be +52 – 55 – 1234 5678)\".\n //\n // Google's demo output:\n // https://libphonenumber.appspot.com/phonenumberparser?number=%2b5215512345678&country=MX\n //\n if (this.extractAnotherNationalSignificantNumber(state.getNationalDigits(), state.nationalSignificantNumber, function (stateUpdate) {\n return state.update(stateUpdate);\n })) {\n return true;\n } // If no format matches the phone number, then it could be\n // \"a really long IDD\" (quote from a comment in Google's library).\n // An IDD prefix is first extracted when the user has entered at least 3 digits,\n // and then here — every time when there's a new digit and the number\n // couldn't be formatted.\n // For example, in Australia the default IDD prefix is `0011`,\n // and it could even be as long as `14880011`.\n //\n // Could also check `!hasReceivedThreeLeadingDigits` here\n // to filter out the case when this check duplicates the one\n // already performed when there're 3 leading digits,\n // but it's not a big deal, and in most cases there\n // will be a suitable `format` when there're 3 leading digits.\n //\n\n\n if (this.extractIddPrefix(state)) {\n this.extractCallingCodeAndNationalSignificantNumber(state);\n return true;\n } // Google's AsYouType formatter supports sort of an \"autocorrection\" feature\n // when it \"autocorrects\" numbers that have been input for a country\n // with that country's calling code.\n // Such \"autocorrection\" feature looks weird, but different people have been requesting it:\n // https://github.com/catamphetamine/libphonenumber-js/issues/376\n // https://github.com/catamphetamine/libphonenumber-js/issues/375\n // https://github.com/catamphetamine/libphonenumber-js/issues/316\n\n\n if (this.fixMissingPlus(state)) {\n this.extractCallingCodeAndNationalSignificantNumber(state);\n return true;\n }\n }\n }, {\n key: \"extractIddPrefix\",\n value: function extractIddPrefix(state) {\n // An IDD prefix can't be present in a number written with a `+`.\n // Also, don't re-extract an IDD prefix if has already been extracted.\n var international = state.international,\n IDDPrefix = state.IDDPrefix,\n digits = state.digits,\n nationalSignificantNumber = state.nationalSignificantNumber;\n\n if (international || IDDPrefix) {\n return;\n } // Some users input their phone number in \"out-of-country\"\n // dialing format instead of using the leading `+`.\n // https://github.com/catamphetamine/libphonenumber-js/issues/185\n // Detect such numbers.\n\n\n var numberWithoutIDD = stripIddPrefix(digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);\n\n if (numberWithoutIDD !== undefined && numberWithoutIDD !== digits) {\n // If an IDD prefix was stripped then convert the IDD-prefixed number\n // to international number for subsequent parsing.\n state.update({\n IDDPrefix: digits.slice(0, digits.length - numberWithoutIDD.length)\n });\n this.startInternationalNumber(state, {\n country: undefined,\n callingCode: undefined\n });\n return true;\n }\n }\n }, {\n key: \"fixMissingPlus\",\n value: function fixMissingPlus(state) {\n if (!state.international) {\n var _extractCountryCallin2 = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(state.digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata),\n newCallingCode = _extractCountryCallin2.countryCallingCode,\n number = _extractCountryCallin2.number;\n\n if (newCallingCode) {\n state.update({\n missingPlus: true\n });\n this.startInternationalNumber(state, {\n country: state.country,\n callingCode: newCallingCode\n });\n return true;\n }\n }\n }\n }, {\n key: \"startInternationalNumber\",\n value: function startInternationalNumber(state, _ref3) {\n var country = _ref3.country,\n callingCode = _ref3.callingCode;\n state.startInternationalNumber(country, callingCode); // If a national (significant) number has been extracted before, reset it.\n\n if (state.nationalSignificantNumber) {\n state.resetNationalSignificantNumber();\n this.onNationalSignificantNumberChange();\n this.hasExtractedNationalSignificantNumber = undefined;\n }\n }\n }, {\n key: \"extractCallingCodeAndNationalSignificantNumber\",\n value: function extractCallingCodeAndNationalSignificantNumber(state) {\n if (this.extractCountryCallingCode(state)) {\n // `this.extractCallingCode()` is currently called when the number\n // couldn't be formatted during the standard procedure.\n // Normally, the national prefix would be re-extracted\n // for an international number if such number couldn't be formatted,\n // but since it's already not able to be formatted,\n // there won't be yet another retry, so also extract national prefix here.\n this.extractNationalSignificantNumber(state.getNationalDigits(), function (stateUpdate) {\n return state.update(stateUpdate);\n });\n }\n }\n }]);\n\n return AsYouTypeParser;\n}();\n/**\r\n * Extracts formatted phone number from text (if there's any).\r\n * @param {string} text\r\n * @return {string} [formattedPhoneNumber]\r\n */\n\n\nexport { AsYouTypeParser as default };\n\nfunction extractFormattedPhoneNumber(text) {\n // Attempt to extract a possible number from the string passed in.\n var startsAt = text.search(VALID_FORMATTED_PHONE_NUMBER_PART);\n\n if (startsAt < 0) {\n return;\n } // Trim everything to the left of the phone number.\n\n\n text = text.slice(startsAt); // Trim the `+`.\n\n var hasPlus;\n\n if (text[0] === '+') {\n hasPlus = true;\n text = text.slice('+'.length);\n } // Trim everything to the right of the phone number.\n\n\n text = text.replace(AFTER_PHONE_NUMBER_DIGITS_END_PATTERN, ''); // Re-add the previously trimmed `+`.\n\n if (hasPlus) {\n text = '+' + text;\n }\n\n return text;\n}\n/**\r\n * Extracts formatted phone number digits (and a `+`) from text (if there're any).\r\n * @param {string} text\r\n * @return {any[]}\r\n */\n\n\nfunction _extractFormattedDigitsAndPlus(text) {\n // Extract a formatted phone number part from text.\n var extractedNumber = extractFormattedPhoneNumber(text) || ''; // Trim a `+`.\n\n if (extractedNumber[0] === '+') {\n return [extractedNumber.slice('+'.length), true];\n }\n\n return [extractedNumber];\n}\n/**\r\n * Extracts formatted phone number digits (and a `+`) from text (if there're any).\r\n * @param {string} text\r\n * @return {any[]}\r\n */\n\n\nexport function extractFormattedDigitsAndPlus(text) {\n var _extractFormattedDigi3 = _extractFormattedDigitsAndPlus(text),\n _extractFormattedDigi4 = _slicedToArray(_extractFormattedDigi3, 2),\n formattedDigits = _extractFormattedDigi4[0],\n hasPlus = _extractFormattedDigi4[1]; // If the extracted phone number part\n // can possibly be a part of some valid phone number\n // then parse phone number characters from a formatted phone number.\n\n\n if (!VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN.test(formattedDigits)) {\n formattedDigits = '';\n }\n\n return [formattedDigits, hasPlus];\n}\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nimport Metadata from '../metadata.js';\nimport getNumberType from './getNumberType.js';\nexport default function getCountryByNationalNumber(nationalPhoneNumber, _ref) {\n var countries = _ref.countries,\n defaultCountry = _ref.defaultCountry,\n metadata = _ref.metadata;\n // Re-create `metadata` because it will be selecting a `country`.\n metadata = new Metadata(metadata);\n var matchingCountries = [];\n\n for (var _iterator = _createForOfIteratorHelperLoose(countries), _step; !(_step = _iterator()).done;) {\n var country = _step.value;\n metadata.country(country); // \"Leading digits\" patterns are only defined for about 20% of all countries.\n // By definition, matching \"leading digits\" is a sufficient but not a necessary\n // condition for a phone number to belong to a country.\n // The point of \"leading digits\" check is that it's the fastest one to get a match.\n // https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md#leading_digits\n // I'd suppose that \"leading digits\" patterns are mutually exclusive for different countries\n // because of the intended use of that feature.\n\n if (metadata.leadingDigits()) {\n if (nationalPhoneNumber && nationalPhoneNumber.search(metadata.leadingDigits()) === 0) {\n return country;\n }\n } // Else perform full validation with all of those\n // fixed-line/mobile/etc regular expressions.\n else if (getNumberType({\n phone: nationalPhoneNumber,\n country: country\n }, undefined, metadata.metadata)) {\n // If the `defaultCountry` is among the `matchingCountries` then return it.\n if (defaultCountry) {\n if (country === defaultCountry) {\n return country;\n }\n\n matchingCountries.push(country);\n } else {\n return country;\n }\n }\n } // Return the first (\"main\") one of the `matchingCountries`.\n\n\n if (matchingCountries.length > 0) {\n return matchingCountries[0];\n }\n}\n","import getCountryByNationalNumber from './getCountryByNationalNumber.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\nexport default function getCountryByCallingCode(callingCode, _ref) {\n var nationalPhoneNumber = _ref.nationalNumber,\n defaultCountry = _ref.defaultCountry,\n metadata = _ref.metadata;\n\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(callingCode)) {\n return '001';\n }\n }\n\n var possibleCountries = metadata.getCountryCodesForCallingCode(callingCode);\n\n if (!possibleCountries) {\n return;\n } // If there's just one country corresponding to the country code,\n // then just return it, without further phone number digits validation.\n\n\n if (possibleCountries.length === 1) {\n return possibleCountries[0];\n }\n\n return getCountryByNationalNumber(nationalPhoneNumber, {\n countries: possibleCountries,\n defaultCountry: defaultCountry,\n metadata: metadata.metadata\n });\n}\n","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nimport Metadata from './metadata.js';\nimport PhoneNumber from './PhoneNumber.js';\nimport AsYouTypeState from './AsYouTypeState.js';\nimport AsYouTypeFormatter, { DIGIT_PLACEHOLDER } from './AsYouTypeFormatter.js';\nimport AsYouTypeParser, { extractFormattedDigitsAndPlus } from './AsYouTypeParser.js';\nimport getCountryByCallingCode from './helpers/getCountryByCallingCode.js';\nimport getCountryByNationalNumber from './helpers/getCountryByNationalNumber.js';\nimport isObject from './helpers/isObject.js';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\n\nvar AsYouType = /*#__PURE__*/function () {\n /**\r\n * @param {(string|object)?} [optionsOrDefaultCountry] - The default country used for parsing non-international phone numbers. Can also be an `options` object.\r\n * @param {Object} metadata\r\n */\n function AsYouType(optionsOrDefaultCountry, metadata) {\n _classCallCheck(this, AsYouType);\n\n this.metadata = new Metadata(metadata);\n\n var _this$getCountryAndCa = this.getCountryAndCallingCode(optionsOrDefaultCountry),\n _this$getCountryAndCa2 = _slicedToArray(_this$getCountryAndCa, 2),\n defaultCountry = _this$getCountryAndCa2[0],\n defaultCallingCode = _this$getCountryAndCa2[1]; // `this.defaultCountry` and `this.defaultCallingCode` aren't required to be in sync.\n // For example, `this.defaultCountry` could be `\"AR\"` and `this.defaultCallingCode` could be `undefined`.\n // So `this.defaultCountry` and `this.defaultCallingCode` are totally independent.\n\n\n this.defaultCountry = defaultCountry;\n this.defaultCallingCode = defaultCallingCode;\n this.reset();\n }\n\n _createClass(AsYouType, [{\n key: \"getCountryAndCallingCode\",\n value: function getCountryAndCallingCode(optionsOrDefaultCountry) {\n // Set `defaultCountry` and `defaultCallingCode` options.\n var defaultCountry;\n var defaultCallingCode; // Turns out `null` also has type \"object\". Weird.\n\n if (optionsOrDefaultCountry) {\n if (isObject(optionsOrDefaultCountry)) {\n defaultCountry = optionsOrDefaultCountry.defaultCountry;\n defaultCallingCode = optionsOrDefaultCountry.defaultCallingCode;\n } else {\n defaultCountry = optionsOrDefaultCountry;\n }\n }\n\n if (defaultCountry && !this.metadata.hasCountry(defaultCountry)) {\n defaultCountry = undefined;\n }\n\n if (defaultCallingCode) {\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (this.metadata.isNonGeographicCallingCode(defaultCallingCode)) {\n defaultCountry = '001';\n }\n }\n }\n\n return [defaultCountry, defaultCallingCode];\n }\n /**\r\n * Inputs \"next\" phone number characters.\r\n * @param {string} text\r\n * @return {string} Formatted phone number characters that have been input so far.\r\n */\n\n }, {\n key: \"input\",\n value: function input(text) {\n var _this$parser$input = this.parser.input(text, this.state),\n digits = _this$parser$input.digits,\n justLeadingPlus = _this$parser$input.justLeadingPlus;\n\n if (justLeadingPlus) {\n this.formattedOutput = '+';\n } else if (digits) {\n this.determineTheCountryIfNeeded(); // Match the available formats by the currently available leading digits.\n\n if (this.state.nationalSignificantNumber) {\n this.formatter.narrowDownMatchingFormats(this.state);\n }\n\n var formattedNationalNumber;\n\n if (this.metadata.hasSelectedNumberingPlan()) {\n formattedNationalNumber = this.formatter.format(digits, this.state);\n }\n\n if (formattedNationalNumber === undefined) {\n // See if another national (significant) number could be re-extracted.\n if (this.parser.reExtractNationalSignificantNumber(this.state)) {\n this.determineTheCountryIfNeeded(); // If it could, then re-try formatting the new national (significant) number.\n\n var nationalDigits = this.state.getNationalDigits();\n\n if (nationalDigits) {\n formattedNationalNumber = this.formatter.format(nationalDigits, this.state);\n }\n }\n }\n\n this.formattedOutput = formattedNationalNumber ? this.getFullNumber(formattedNationalNumber) : this.getNonFormattedNumber();\n }\n\n return this.formattedOutput;\n }\n }, {\n key: \"reset\",\n value: function reset() {\n var _this = this;\n\n this.state = new AsYouTypeState({\n onCountryChange: function onCountryChange(country) {\n // Before version `1.6.0`, the official `AsYouType` formatter API\n // included the `.country` property of an `AsYouType` instance.\n // Since that property (along with the others) have been moved to\n // `this.state`, `this.country` property is emulated for compatibility\n // with the old versions.\n _this.country = country;\n },\n onCallingCodeChange: function onCallingCodeChange(callingCode, country) {\n _this.metadata.selectNumberingPlan(country, callingCode);\n\n _this.formatter.reset(_this.metadata.numberingPlan, _this.state);\n\n _this.parser.reset(_this.metadata.numberingPlan);\n }\n });\n this.formatter = new AsYouTypeFormatter({\n state: this.state,\n metadata: this.metadata\n });\n this.parser = new AsYouTypeParser({\n defaultCountry: this.defaultCountry,\n defaultCallingCode: this.defaultCallingCode,\n metadata: this.metadata,\n state: this.state,\n onNationalSignificantNumberChange: function onNationalSignificantNumberChange() {\n _this.determineTheCountryIfNeeded();\n\n _this.formatter.reset(_this.metadata.numberingPlan, _this.state);\n }\n });\n this.state.reset({\n country: this.defaultCountry,\n callingCode: this.defaultCallingCode\n });\n this.formattedOutput = '';\n return this;\n }\n /**\r\n * Returns `true` if the phone number is being input in international format.\r\n * In other words, returns `true` if and only if the parsed phone number starts with a `\"+\"`.\r\n * @return {boolean}\r\n */\n\n }, {\n key: \"isInternational\",\n value: function isInternational() {\n return this.state.international;\n }\n /**\r\n * Returns the \"calling code\" part of the phone number when it's being input\r\n * in an international format.\r\n * If no valid calling code has been entered so far, returns `undefined`.\r\n * @return {string} [callingCode]\r\n */\n\n }, {\n key: \"getCallingCode\",\n value: function getCallingCode() {\n // If the number is being input in national format and some \"default calling code\"\n // has been passed to `AsYouType` constructor, then `this.state.callingCode`\n // is equal to that \"default calling code\".\n //\n // If the number is being input in national format and no \"default calling code\"\n // has been passed to `AsYouType` constructor, then returns `undefined`,\n // even if a \"default country\" has been passed to `AsYouType` constructor.\n //\n if (this.isInternational()) {\n return this.state.callingCode;\n }\n } // A legacy alias.\n\n }, {\n key: \"getCountryCallingCode\",\n value: function getCountryCallingCode() {\n return this.getCallingCode();\n }\n /**\r\n * Returns a two-letter country code of the phone number.\r\n * Returns `undefined` for \"non-geographic\" phone numbering plans.\r\n * Returns `undefined` if no phone number has been input yet.\r\n * @return {string} [country]\r\n */\n\n }, {\n key: \"getCountry\",\n value: function getCountry() {\n var digits = this.state.digits; // Return `undefined` if no digits have been input yet.\n\n if (digits) {\n return this._getCountry();\n }\n }\n /**\r\n * Returns a two-letter country code of the phone number.\r\n * Returns `undefined` for \"non-geographic\" phone numbering plans.\r\n * @return {string} [country]\r\n */\n\n }, {\n key: \"_getCountry\",\n value: function _getCountry() {\n var country = this.state.country;\n /* istanbul ignore if */\n\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n // `AsYouType.getCountry()` returns `undefined`\n // for \"non-geographic\" phone numbering plans.\n if (country === '001') {\n return;\n }\n }\n\n return country;\n }\n }, {\n key: \"determineTheCountryIfNeeded\",\n value: function determineTheCountryIfNeeded() {\n // Suppose a user enters a phone number in international format,\n // and there're several countries corresponding to that country calling code,\n // and a country has been derived from the number, and then\n // a user enters one more digit and the number is no longer\n // valid for the derived country, so the country should be re-derived\n // on every new digit in those cases.\n //\n // If the phone number is being input in national format,\n // then it could be a case when `defaultCountry` wasn't specified\n // when creating `AsYouType` instance, and just `defaultCallingCode` was specified,\n // and that \"calling code\" could correspond to a \"non-geographic entity\",\n // or there could be several countries corresponding to that country calling code.\n // In those cases, `this.country` is `undefined` and should be derived\n // from the number. Again, if country calling code is ambiguous, then\n // `this.country` should be re-derived with each new digit.\n //\n if (!this.state.country || this.isCountryCallingCodeAmbiguous()) {\n this.determineTheCountry();\n }\n } // Prepends `+CountryCode ` in case of an international phone number\n\n }, {\n key: \"getFullNumber\",\n value: function getFullNumber(formattedNationalNumber) {\n var _this2 = this;\n\n if (this.isInternational()) {\n var prefix = function prefix(text) {\n return _this2.formatter.getInternationalPrefixBeforeCountryCallingCode(_this2.state, {\n spacing: text ? true : false\n }) + text;\n };\n\n var callingCode = this.state.callingCode;\n\n if (!callingCode) {\n return prefix(\"\".concat(this.state.getDigitsWithoutInternationalPrefix()));\n }\n\n if (!formattedNationalNumber) {\n return prefix(callingCode);\n }\n\n return prefix(\"\".concat(callingCode, \" \").concat(formattedNationalNumber));\n }\n\n return formattedNationalNumber;\n }\n }, {\n key: \"getNonFormattedNationalNumberWithPrefix\",\n value: function getNonFormattedNationalNumberWithPrefix() {\n var _this$state = this.state,\n nationalSignificantNumber = _this$state.nationalSignificantNumber,\n complexPrefixBeforeNationalSignificantNumber = _this$state.complexPrefixBeforeNationalSignificantNumber,\n nationalPrefix = _this$state.nationalPrefix;\n var number = nationalSignificantNumber;\n var prefix = complexPrefixBeforeNationalSignificantNumber || nationalPrefix;\n\n if (prefix) {\n number = prefix + number;\n }\n\n return number;\n }\n }, {\n key: \"getNonFormattedNumber\",\n value: function getNonFormattedNumber() {\n var nationalSignificantNumberMatchesInput = this.state.nationalSignificantNumberMatchesInput;\n return this.getFullNumber(nationalSignificantNumberMatchesInput ? this.getNonFormattedNationalNumberWithPrefix() : this.state.getNationalDigits());\n }\n }, {\n key: \"getNonFormattedTemplate\",\n value: function getNonFormattedTemplate() {\n var number = this.getNonFormattedNumber();\n\n if (number) {\n return number.replace(/[\\+\\d]/g, DIGIT_PLACEHOLDER);\n }\n }\n }, {\n key: \"isCountryCallingCodeAmbiguous\",\n value: function isCountryCallingCodeAmbiguous() {\n var callingCode = this.state.callingCode;\n var countryCodes = this.metadata.getCountryCodesForCallingCode(callingCode);\n return countryCodes && countryCodes.length > 1;\n } // Determines the country of the phone number\n // entered so far based on the country phone code\n // and the national phone number.\n\n }, {\n key: \"determineTheCountry\",\n value: function determineTheCountry() {\n this.state.setCountry(getCountryByCallingCode(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {\n nationalNumber: this.state.nationalSignificantNumber,\n defaultCountry: this.defaultCountry,\n metadata: this.metadata\n }));\n }\n /**\r\n * Returns a E.164 phone number value for the user's input.\r\n *\r\n * For example, for country `\"US\"` and input `\"(222) 333-4444\"`\r\n * it will return `\"+12223334444\"`.\r\n *\r\n * For international phone number input, it will also auto-correct\r\n * some minor errors such as using a national prefix when writing\r\n * an international phone number. For example, if the user inputs\r\n * `\"+44 0 7400 000000\"` then it will return an auto-corrected\r\n * `\"+447400000000\"` phone number value.\r\n *\r\n * Will return `undefined` if no digits have been input,\r\n * or when inputting a phone number in national format and no\r\n * default country or default \"country calling code\" have been set.\r\n *\r\n * @return {string} [value]\r\n */\n\n }, {\n key: \"getNumberValue\",\n value: function getNumberValue() {\n var _this$state2 = this.state,\n digits = _this$state2.digits,\n callingCode = _this$state2.callingCode,\n country = _this$state2.country,\n nationalSignificantNumber = _this$state2.nationalSignificantNumber; // Will return `undefined` if no digits have been input.\n\n if (!digits) {\n return;\n }\n\n if (this.isInternational()) {\n if (callingCode) {\n return '+' + callingCode + nationalSignificantNumber;\n } else {\n return '+' + digits;\n }\n } else {\n if (country || callingCode) {\n var callingCode_ = country ? this.metadata.countryCallingCode() : callingCode;\n return '+' + callingCode_ + nationalSignificantNumber;\n }\n }\n }\n /**\r\n * Returns an instance of `PhoneNumber` class.\r\n * Will return `undefined` if no national (significant) number\r\n * digits have been entered so far, or if no `defaultCountry` has been\r\n * set and the user enters a phone number not in international format.\r\n */\n\n }, {\n key: \"getNumber\",\n value: function getNumber() {\n var _this$state3 = this.state,\n nationalSignificantNumber = _this$state3.nationalSignificantNumber,\n carrierCode = _this$state3.carrierCode,\n callingCode = _this$state3.callingCode; // `this._getCountry()` is basically same as `this.state.country`\n // with the only change that it return `undefined` in case of a\n // \"non-geographic\" numbering plan instead of `\"001\"` \"internal use\" value.\n\n var country = this._getCountry();\n\n if (!nationalSignificantNumber) {\n return;\n } // `state.country` and `state.callingCode` aren't required to be in sync.\n // For example, `country` could be `\"AR\"` and `callingCode` could be `undefined`.\n // So `country` and `callingCode` are totally independent.\n\n\n if (!country && !callingCode) {\n return;\n } // By default, if `defaultCountry` parameter was passed when\n // creating `AsYouType` instance, `state.country` is gonna be\n // that `defaultCountry`, which doesn't entirely conform with\n // `parsePhoneNumber()`'s behavior where it attempts to determine\n // the country more precisely in cases when multiple countries\n // could correspond to the same `countryCallingCode`.\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/103#note_1417192969\n //\n // Because `AsYouType.getNumber()` method is supposed to be a 1:1\n // equivalent for `parsePhoneNumber(AsYouType.getNumberValue())`,\n // then it should also behave accordingly in cases of `country` ambiguity.\n // That's how users of this library would expect it to behave anyway.\n //\n\n\n if (country) {\n if (country === this.defaultCountry) {\n // `state.country` and `state.callingCode` aren't required to be in sync.\n // For example, `state.country` could be `\"AR\"` and `state.callingCode` could be `undefined`.\n // So `state.country` and `state.callingCode` are totally independent.\n var metadata = new Metadata(this.metadata.metadata);\n metadata.selectNumberingPlan(country);\n\n var _callingCode = metadata.numberingPlan.callingCode();\n\n var ambiguousCountries = this.metadata.getCountryCodesForCallingCode(_callingCode);\n\n if (ambiguousCountries.length > 1) {\n var exactCountry = getCountryByNationalNumber(nationalSignificantNumber, {\n countries: ambiguousCountries,\n defaultCountry: this.defaultCountry,\n metadata: this.metadata.metadata\n });\n\n if (exactCountry) {\n country = exactCountry;\n }\n }\n }\n }\n\n var phoneNumber = new PhoneNumber(country || callingCode, nationalSignificantNumber, this.metadata.metadata);\n\n if (carrierCode) {\n phoneNumber.carrierCode = carrierCode;\n } // Phone number extensions are not supported by \"As You Type\" formatter.\n\n\n return phoneNumber;\n }\n /**\r\n * Returns `true` if the phone number is \"possible\".\r\n * Is just a shortcut for `PhoneNumber.isPossible()`.\r\n * @return {boolean}\r\n */\n\n }, {\n key: \"isPossible\",\n value: function isPossible() {\n var phoneNumber = this.getNumber();\n\n if (!phoneNumber) {\n return false;\n }\n\n return phoneNumber.isPossible();\n }\n /**\r\n * Returns `true` if the phone number is \"valid\".\r\n * Is just a shortcut for `PhoneNumber.isValid()`.\r\n * @return {boolean}\r\n */\n\n }, {\n key: \"isValid\",\n value: function isValid() {\n var phoneNumber = this.getNumber();\n\n if (!phoneNumber) {\n return false;\n }\n\n return phoneNumber.isValid();\n }\n /**\r\n * @deprecated\r\n * This method is used in `react-phone-number-input/source/input-control.js`\r\n * in versions before `3.0.16`.\r\n */\n\n }, {\n key: \"getNationalNumber\",\n value: function getNationalNumber() {\n return this.state.nationalSignificantNumber;\n }\n /**\r\n * Returns the phone number characters entered by the user.\r\n * @return {string}\r\n */\n\n }, {\n key: \"getChars\",\n value: function getChars() {\n return (this.state.international ? '+' : '') + this.state.digits;\n }\n /**\r\n * Returns the template for the formatted phone number.\r\n * @return {string}\r\n */\n\n }, {\n key: \"getTemplate\",\n value: function getTemplate() {\n return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || '';\n }\n }]);\n\n return AsYouType;\n}();\n\nexport { AsYouType as default };\n","// Importing from a \".js\" file is a workaround for Node.js \"ES Modules\"\r\n// importing system which is even uncapable of importing \"*.json\" files.\r\nimport metadata from '../../metadata.min.json.js'\r\n\r\nimport { AsYouType as _AsYouType } from '../../core/index.js'\r\n\r\nexport function AsYouType(country) {\r\n\treturn _AsYouType.call(this, country, metadata)\r\n}\r\n\r\nAsYouType.prototype = Object.create(_AsYouType.prototype, {})\r\nAsYouType.prototype.constructor = AsYouType","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \"function\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \"function\") { throw new TypeError(\"Super expression must either be null or a function\"); } if (typeof _cache !== \"undefined\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\n\nfunction _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\"[native code]\") !== -1; }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n// https://stackoverflow.com/a/46971044/970769\n// \"Breaking changes in Typescript 2.1\"\n// \"Extending built-ins like Error, Array, and Map may no longer work.\"\n// \"As a recommendation, you can manually adjust the prototype immediately after any super(...) calls.\"\n// https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work\nvar ParseError = /*#__PURE__*/function (_Error) {\n _inherits(ParseError, _Error);\n\n var _super = _createSuper(ParseError);\n\n function ParseError(code) {\n var _this;\n\n _classCallCheck(this, ParseError);\n\n _this = _super.call(this, code); // Set the prototype explicitly.\n // Any subclass of FooError will have to manually set the prototype as well.\n\n Object.setPrototypeOf(_assertThisInitialized(_this), ParseError.prototype);\n _this.name = _this.constructor.name;\n return _this;\n }\n\n return _createClass(ParseError);\n}( /*#__PURE__*/_wrapNativeSuper(Error));\n\nexport { ParseError as default };\n","import { VALID_DIGITS } from '../../constants.js'; // The RFC 3966 format for extensions.\n\nvar RFC3966_EXTN_PREFIX = ';ext=';\n/**\r\n * Helper method for constructing regular expressions for parsing. Creates\r\n * an expression that captures up to max_length digits.\r\n * @return {string} RegEx pattern to capture extension digits.\r\n */\n\nvar getExtensionDigitsPattern = function getExtensionDigitsPattern(maxLength) {\n return \"([\".concat(VALID_DIGITS, \"]{1,\").concat(maxLength, \"})\");\n};\n/**\r\n * Helper initialiser method to create the regular-expression pattern to match\r\n * extensions.\r\n * Copy-pasted from Google's `libphonenumber`:\r\n * https://github.com/google/libphonenumber/blob/55b2646ec9393f4d3d6661b9c82ef9e258e8b829/javascript/i18n/phonenumbers/phonenumberutil.js#L759-L766\r\n * @return {string} RegEx pattern to capture extensions.\r\n */\n\n\nexport default function createExtensionPattern(purpose) {\n // We cap the maximum length of an extension based on the ambiguity of the way\n // the extension is prefixed. As per ITU, the officially allowed length for\n // extensions is actually 40, but we don't support this since we haven't seen real\n // examples and this introduces many false interpretations as the extension labels\n // are not standardized.\n\n /** @type {string} */\n var extLimitAfterExplicitLabel = '20';\n /** @type {string} */\n\n var extLimitAfterLikelyLabel = '15';\n /** @type {string} */\n\n var extLimitAfterAmbiguousChar = '9';\n /** @type {string} */\n\n var extLimitWhenNotSure = '6';\n /** @type {string} */\n\n var possibleSeparatorsBetweenNumberAndExtLabel = \"[ \\xA0\\\\t,]*\"; // Optional full stop (.) or colon, followed by zero or more spaces/tabs/commas.\n\n /** @type {string} */\n\n var possibleCharsAfterExtLabel = \"[:\\\\.\\uFF0E]?[ \\xA0\\\\t,-]*\";\n /** @type {string} */\n\n var optionalExtnSuffix = \"#?\"; // Here the extension is called out in more explicit way, i.e mentioning it obvious\n // patterns like \"ext.\".\n\n /** @type {string} */\n\n var explicitExtLabels = \"(?:e?xt(?:ensi(?:o\\u0301?|\\xF3))?n?|\\uFF45?\\uFF58\\uFF54\\uFF4E?|\\u0434\\u043E\\u0431|anexo)\"; // One-character symbols that can be used to indicate an extension, and less\n // commonly used or more ambiguous extension labels.\n\n /** @type {string} */\n\n var ambiguousExtLabels = \"(?:[x\\uFF58#\\uFF03~\\uFF5E]|int|\\uFF49\\uFF4E\\uFF54)\"; // When extension is not separated clearly.\n\n /** @type {string} */\n\n var ambiguousSeparator = \"[- ]+\"; // This is the same as possibleSeparatorsBetweenNumberAndExtLabel, but not matching\n // comma as extension label may have it.\n\n /** @type {string} */\n\n var possibleSeparatorsNumberExtLabelNoComma = \"[ \\xA0\\\\t]*\"; // \",,\" is commonly used for auto dialling the extension when connected. First\n // comma is matched through possibleSeparatorsBetweenNumberAndExtLabel, so we do\n // not repeat it here. Semi-colon works in Iphone and Android also to pop up a\n // button with the extension number following.\n\n /** @type {string} */\n\n var autoDiallingAndExtLabelsFound = \"(?:,{2}|;)\";\n /** @type {string} */\n\n var rfcExtn = RFC3966_EXTN_PREFIX + getExtensionDigitsPattern(extLimitAfterExplicitLabel);\n /** @type {string} */\n\n var explicitExtn = possibleSeparatorsBetweenNumberAndExtLabel + explicitExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterExplicitLabel) + optionalExtnSuffix;\n /** @type {string} */\n\n var ambiguousExtn = possibleSeparatorsBetweenNumberAndExtLabel + ambiguousExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;\n /** @type {string} */\n\n var americanStyleExtnWithSuffix = ambiguousSeparator + getExtensionDigitsPattern(extLimitWhenNotSure) + \"#\";\n /** @type {string} */\n\n var autoDiallingExtn = possibleSeparatorsNumberExtLabelNoComma + autoDiallingAndExtLabelsFound + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterLikelyLabel) + optionalExtnSuffix;\n /** @type {string} */\n\n var onlyCommasExtn = possibleSeparatorsNumberExtLabelNoComma + \"(?:,)+\" + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix; // The first regular expression covers RFC 3966 format, where the extension is added\n // using \";ext=\". The second more generic where extension is mentioned with explicit\n // labels like \"ext:\". In both the above cases we allow more numbers in extension than\n // any other extension labels. The third one captures when single character extension\n // labels or less commonly used labels are used. In such cases we capture fewer\n // extension digits in order to reduce the chance of falsely interpreting two\n // numbers beside each other as a number + extension. The fourth one covers the\n // special case of American numbers where the extension is written with a hash\n // at the end, such as \"- 503#\". The fifth one is exclusively for extension\n // autodialling formats which are used when dialling and in this case we accept longer\n // extensions. The last one is more liberal on the number of commas that acts as\n // extension labels, so we have a strict cap on the number of digits in such extensions.\n\n return rfcExtn + \"|\" + explicitExtn + \"|\" + ambiguousExtn + \"|\" + americanStyleExtnWithSuffix + \"|\" + autoDiallingExtn + \"|\" + onlyCommasExtn;\n}\n","import { MIN_LENGTH_FOR_NSN, VALID_DIGITS, VALID_PUNCTUATION, PLUS_CHARS } from '../constants.js';\nimport createExtensionPattern from './extension/createExtensionPattern.js'; // Regular expression of viable phone numbers. This is location independent.\n// Checks we have at least three leading digits, and only valid punctuation,\n// alpha characters and digits in the phone number. Does not include extension\n// data. The symbol 'x' is allowed here as valid punctuation since it is often\n// used as a placeholder for carrier codes, for example in Brazilian phone\n// numbers. We also allow multiple '+' characters at the start.\n//\n// Corresponds to the following:\n// [digits]{minLengthNsn}|\n// plus_sign*\n// (([punctuation]|[star])*[digits]){3,}([punctuation]|[star]|[digits]|[alpha])*\n//\n// The first reg-ex is to allow short numbers (two digits long) to be parsed if\n// they are entered as \"15\" etc, but only if there is no punctuation in them.\n// The second expression restricts the number of digits to three or more, but\n// then allows them to be in international form, and to have alpha-characters\n// and punctuation. We split up the two reg-exes here and combine them when\n// creating the reg-ex VALID_PHONE_NUMBER_PATTERN itself so we can prefix it\n// with ^ and append $ to each branch.\n//\n// \"Note VALID_PUNCTUATION starts with a -,\n// so must be the first in the range\" (c) Google devs.\n// (wtf did they mean by saying that; probably nothing)\n//\n\nvar MIN_LENGTH_PHONE_NUMBER_PATTERN = '[' + VALID_DIGITS + ']{' + MIN_LENGTH_FOR_NSN + '}'; //\n// And this is the second reg-exp:\n// (see MIN_LENGTH_PHONE_NUMBER_PATTERN for a full description of this reg-exp)\n//\n\nexport var VALID_PHONE_NUMBER = '[' + PLUS_CHARS + ']{0,1}' + '(?:' + '[' + VALID_PUNCTUATION + ']*' + '[' + VALID_DIGITS + ']' + '){3,}' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']*'; // This regular expression isn't present in Google's `libphonenumber`\n// and is only used to determine whether the phone number being input\n// is too short for it to even consider it a \"valid\" number.\n// This is just a way to differentiate between a really invalid phone\n// number like \"abcde\" and a valid phone number that a user has just\n// started inputting, like \"+1\" or \"1\": both these cases would be\n// considered `NOT_A_NUMBER` by Google's `libphonenumber`, but this\n// library can provide a more detailed error message — whether it's\n// really \"not a number\", or is it just a start of a valid phone number.\n\nvar VALID_PHONE_NUMBER_START_REG_EXP = new RegExp('^' + '[' + PLUS_CHARS + ']{0,1}' + '(?:' + '[' + VALID_PUNCTUATION + ']*' + '[' + VALID_DIGITS + ']' + '){1,2}' + '$', 'i');\nexport var VALID_PHONE_NUMBER_WITH_EXTENSION = VALID_PHONE_NUMBER + // Phone number extensions\n'(?:' + createExtensionPattern() + ')?'; // The combined regular expression for valid phone numbers:\n//\n\nvar VALID_PHONE_NUMBER_PATTERN = new RegExp( // Either a short two-digit-only phone number\n'^' + MIN_LENGTH_PHONE_NUMBER_PATTERN + '$' + '|' + // Or a longer fully parsed phone number (min 3 characters)\n'^' + VALID_PHONE_NUMBER_WITH_EXTENSION + '$', 'i'); // Checks to see if the string of characters could possibly be a phone number at\n// all. At the moment, checks to see that the string begins with at least 2\n// digits, ignoring any punctuation commonly found in phone numbers. This method\n// does not require the number to be normalized in advance - but does assume\n// that leading non-number symbols have been removed, such as by the method\n// `extract_possible_number`.\n//\n\nexport default function isViablePhoneNumber(number) {\n return number.length >= MIN_LENGTH_FOR_NSN && VALID_PHONE_NUMBER_PATTERN.test(number);\n} // This is just a way to differentiate between a really invalid phone\n// number like \"abcde\" and a valid phone number that a user has just\n// started inputting, like \"+1\" or \"1\": both these cases would be\n// considered `NOT_A_NUMBER` by Google's `libphonenumber`, but this\n// library can provide a more detailed error message — whether it's\n// really \"not a number\", or is it just a start of a valid phone number.\n\nexport function isViablePhoneNumberStart(number) {\n return VALID_PHONE_NUMBER_START_REG_EXP.test(number);\n}\n","import createExtensionPattern from './createExtensionPattern.js'; // Regexp of all known extension prefixes used by different regions followed by\n// 1 or more valid digits, for use when parsing.\n\nvar EXTN_PATTERN = new RegExp('(?:' + createExtensionPattern() + ')$', 'i'); // Strips any extension (as in, the part of the number dialled after the call is\n// connected, usually indicated with extn, ext, x or similar) from the end of\n// the number, and returns it.\n\nexport default function extractExtension(number) {\n var start = number.search(EXTN_PATTERN);\n\n if (start < 0) {\n return {};\n } // If we find a potential extension, and the number preceding this is a viable\n // number, we assume it is an extension.\n\n\n var numberWithoutExtension = number.slice(0, start);\n var matches = number.match(EXTN_PATTERN);\n var i = 1;\n\n while (i < matches.length) {\n if (matches[i]) {\n return {\n number: numberWithoutExtension,\n ext: matches[i]\n };\n }\n\n i++;\n }\n}\n","function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nimport { parseDigit } from './helpers/parseDigits.js';\n/**\r\n * Parses phone number characters from a string.\r\n * Drops all punctuation leaving only digits and the leading `+` sign (if any).\r\n * Also converts wide-ascii and arabic-indic numerals to conventional numerals.\r\n * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\r\n * @param {string} string\r\n * @return {string}\r\n * @example\r\n * ```js\r\n * // Outputs '8800555'.\r\n * parseIncompletePhoneNumber('8 (800) 555')\r\n * // Outputs '+7800555'.\r\n * parseIncompletePhoneNumber('+7 800 555')\r\n * ```\r\n */\n\nexport default function parseIncompletePhoneNumber(string) {\n var result = ''; // Using `.split('')` here instead of normal `for ... of`\n // because the importing application doesn't neccessarily include an ES6 polyfill.\n // The `.split('')` approach discards \"exotic\" UTF-8 characters\n // (the ones consisting of four bytes) but digits\n // (including non-European ones) don't fall into that range\n // so such \"exotic\" characters would be discarded anyway.\n\n for (var _iterator = _createForOfIteratorHelperLoose(string.split('')), _step; !(_step = _iterator()).done;) {\n var character = _step.value;\n result += parsePhoneNumberCharacter(character, result) || '';\n }\n\n return result;\n}\n/**\r\n * Parses next character while parsing phone number digits (including a `+`)\r\n * from text: discards everything except `+` and digits, and `+` is only allowed\r\n * at the start of a phone number.\r\n * For example, is used in `react-phone-number-input` where it uses\r\n * [`input-format`](https://gitlab.com/catamphetamine/input-format).\r\n * @param {string} character - Yet another character from raw input string.\r\n * @param {string?} prevParsedCharacters - Previous parsed characters.\r\n * @param {object} meta - Optional custom use-case-specific metadata.\r\n * @return {string?} The parsed character.\r\n */\n\nexport function parsePhoneNumberCharacter(character, prevParsedCharacters) {\n // Only allow a leading `+`.\n if (character === '+') {\n // If this `+` is not the first parsed character\n // then discard it.\n if (prevParsedCharacters) {\n return;\n }\n\n return '+';\n } // Allow digits.\n\n\n return parseDigit(character);\n}\n","// When phone numbers are written in `RFC3966` format — `\"tel:+12133734253\"` —\n// they can have their \"calling code\" part written separately in a `phone-context` parameter.\n// Example: `\"tel:12133734253;phone-context=+1\"`.\n// This function parses the full phone number from the local number and the `phone-context`\n// when the `phone-context` contains a `+` sign.\nimport { VALID_DIGITS // PLUS_CHARS\n} from '../constants.js';\nexport var PLUS_SIGN = '+';\nvar RFC3966_VISUAL_SEPARATOR_ = '[\\\\-\\\\.\\\\(\\\\)]?';\nvar RFC3966_PHONE_DIGIT_ = '(' + '[' + VALID_DIGITS + ']' + '|' + RFC3966_VISUAL_SEPARATOR_ + ')';\nvar RFC3966_GLOBAL_NUMBER_DIGITS_ = '^' + '\\\\' + PLUS_SIGN + RFC3966_PHONE_DIGIT_ + '*' + '[' + VALID_DIGITS + ']' + RFC3966_PHONE_DIGIT_ + '*' + '$';\n/**\r\n * Regular expression of valid global-number-digits for the phone-context\r\n * parameter, following the syntax defined in RFC3966.\r\n */\n\nvar RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_ = new RegExp(RFC3966_GLOBAL_NUMBER_DIGITS_, 'g'); // In this port of Google's library, we don't accept alpha characters in phone numbers.\n// const ALPHANUM_ = VALID_ALPHA_ + VALID_DIGITS\n\nvar ALPHANUM_ = VALID_DIGITS;\nvar RFC3966_DOMAINLABEL_ = '[' + ALPHANUM_ + ']+((\\\\-)*[' + ALPHANUM_ + '])*';\nvar VALID_ALPHA_ = 'a-zA-Z';\nvar RFC3966_TOPLABEL_ = '[' + VALID_ALPHA_ + ']+((\\\\-)*[' + ALPHANUM_ + '])*';\nvar RFC3966_DOMAINNAME_ = '^(' + RFC3966_DOMAINLABEL_ + '\\\\.)*' + RFC3966_TOPLABEL_ + '\\\\.?$';\n/**\r\n * Regular expression of valid domainname for the phone-context parameter,\r\n * following the syntax defined in RFC3966.\r\n */\n\nvar RFC3966_DOMAINNAME_PATTERN_ = new RegExp(RFC3966_DOMAINNAME_, 'g');\nexport var RFC3966_PREFIX_ = 'tel:';\nexport var RFC3966_PHONE_CONTEXT_ = ';phone-context=';\nexport var RFC3966_ISDN_SUBADDRESS_ = ';isub=';\n/**\r\n * Extracts the value of the phone-context parameter of `numberToExtractFrom`,\r\n * following the syntax defined in RFC3966.\r\n *\r\n * @param {string} numberToExtractFrom\r\n * @return {string|null} the extracted string (possibly empty), or `null` if no phone-context parameter is found.\r\n */\n\nexport default function extractPhoneContext(numberToExtractFrom) {\n var indexOfPhoneContext = numberToExtractFrom.indexOf(RFC3966_PHONE_CONTEXT_); // If no phone-context parameter is present\n\n if (indexOfPhoneContext < 0) {\n return null;\n }\n\n var phoneContextStart = indexOfPhoneContext + RFC3966_PHONE_CONTEXT_.length; // If phone-context parameter is empty\n\n if (phoneContextStart >= numberToExtractFrom.length) {\n return '';\n }\n\n var phoneContextEnd = numberToExtractFrom.indexOf(';', phoneContextStart); // If phone-context is not the last parameter\n\n if (phoneContextEnd >= 0) {\n return numberToExtractFrom.substring(phoneContextStart, phoneContextEnd);\n } else {\n return numberToExtractFrom.substring(phoneContextStart);\n }\n}\n/**\r\n * Returns whether the value of phoneContext follows the syntax defined in RFC3966.\r\n *\r\n * @param {string|null} phoneContext\r\n * @return {boolean}\r\n */\n\nexport function isPhoneContextValid(phoneContext) {\n if (phoneContext === null) {\n return true;\n }\n\n if (phoneContext.length === 0) {\n return false;\n } // Does phone-context value match pattern of global-number-digits or domainname.\n\n\n return RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(phoneContext) || RFC3966_DOMAINNAME_PATTERN_.test(phoneContext);\n}\n","import extractPhoneContext, { isPhoneContextValid, PLUS_SIGN, RFC3966_PREFIX_, RFC3966_PHONE_CONTEXT_, RFC3966_ISDN_SUBADDRESS_ } from './extractPhoneContext.js';\nimport ParseError from '../ParseError.js';\n/**\r\n * @param {string} numberToParse\r\n * @param {string} nationalNumber\r\n * @return {}\r\n */\n\nexport default function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref) {\n var extractFormattedPhoneNumber = _ref.extractFormattedPhoneNumber;\n var phoneContext = extractPhoneContext(numberToParse);\n\n if (!isPhoneContextValid(phoneContext)) {\n throw new ParseError('NOT_A_NUMBER');\n }\n\n var phoneNumberString;\n\n if (phoneContext === null) {\n // Extract a possible number from the string passed in.\n // (this strips leading characters that could not be the start of a phone number)\n phoneNumberString = extractFormattedPhoneNumber(numberToParse) || '';\n } else {\n phoneNumberString = ''; // If the phone context contains a phone number prefix, we need to capture\n // it, whereas domains will be ignored.\n\n if (phoneContext.charAt(0) === PLUS_SIGN) {\n phoneNumberString += phoneContext;\n } // Now append everything between the \"tel:\" prefix and the phone-context.\n // This should include the national number, an optional extension or\n // isdn-subaddress component. Note we also handle the case when \"tel:\" is\n // missing, as we have seen in some of the phone number inputs.\n // In that case, we append everything from the beginning.\n\n\n var indexOfRfc3966Prefix = numberToParse.indexOf(RFC3966_PREFIX_);\n var indexOfNationalNumber; // RFC 3966 \"tel:\" prefix is preset at this stage because\n // `isPhoneContextValid()` requires it to be present.\n\n /* istanbul ignore else */\n\n if (indexOfRfc3966Prefix >= 0) {\n indexOfNationalNumber = indexOfRfc3966Prefix + RFC3966_PREFIX_.length;\n } else {\n indexOfNationalNumber = 0;\n }\n\n var indexOfPhoneContext = numberToParse.indexOf(RFC3966_PHONE_CONTEXT_);\n phoneNumberString += numberToParse.substring(indexOfNationalNumber, indexOfPhoneContext);\n } // Delete the isdn-subaddress and everything after it if it is present.\n // Note extension won't appear at the same time with isdn-subaddress\n // according to paragraph 5.3 of the RFC3966 spec.\n\n\n var indexOfIsdn = phoneNumberString.indexOf(RFC3966_ISDN_SUBADDRESS_);\n\n if (indexOfIsdn > 0) {\n phoneNumberString = phoneNumberString.substring(0, indexOfIsdn);\n } // If both phone context and isdn-subaddress are absent but other\n // parameters are present, the parameters are left in nationalNumber.\n // This is because we are concerned about deleting content from a potential\n // number string when there is no strong evidence that the number is\n // actually written in RFC3966.\n\n\n if (phoneNumberString !== '') {\n return phoneNumberString;\n }\n}\n","// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\nimport { VALID_DIGITS, PLUS_CHARS, MIN_LENGTH_FOR_NSN, MAX_LENGTH_FOR_NSN } from './constants.js';\nimport ParseError from './ParseError.js';\nimport Metadata from './metadata.js';\nimport isViablePhoneNumber, { isViablePhoneNumberStart } from './helpers/isViablePhoneNumber.js';\nimport extractExtension from './helpers/extension/extractExtension.js';\nimport parseIncompletePhoneNumber from './parseIncompletePhoneNumber.js';\nimport getCountryCallingCode from './getCountryCallingCode.js';\nimport { isPossibleNumber } from './isPossible.js'; // import { parseRFC3966 } from './helpers/RFC3966.js'\n\nimport PhoneNumber from './PhoneNumber.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport extractCountryCallingCode from './helpers/extractCountryCallingCode.js';\nimport extractNationalNumber from './helpers/extractNationalNumber.js';\nimport stripIddPrefix from './helpers/stripIddPrefix.js';\nimport getCountryByCallingCode from './helpers/getCountryByCallingCode.js';\nimport extractFormattedPhoneNumberFromPossibleRfc3966NumberUri from './helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js'; // We don't allow input strings for parsing to be longer than 250 chars.\n// This prevents malicious input from consuming CPU.\n\nvar MAX_INPUT_STRING_LENGTH = 250; // This consists of the plus symbol, digits, and arabic-indic digits.\n\nvar PHONE_NUMBER_START_PATTERN = new RegExp('[' + PLUS_CHARS + VALID_DIGITS + ']'); // Regular expression of trailing characters that we want to remove.\n// A trailing `#` is sometimes used when writing phone numbers with extensions in US.\n// Example: \"+1 (645) 123 1234-910#\" number has extension \"910\".\n\nvar AFTER_PHONE_NUMBER_END_PATTERN = new RegExp('[^' + VALID_DIGITS + '#' + ']+$');\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false; // Examples:\n//\n// ```js\n// parse('8 (800) 555-35-35', 'RU')\n// parse('8 (800) 555-35-35', 'RU', metadata)\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } })\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } }, metadata)\n// parse('+7 800 555 35 35')\n// parse('+7 800 555 35 35', metadata)\n// ```\n//\n\n/**\r\n * Parses a phone number.\r\n *\r\n * parse('123456789', { defaultCountry: 'RU', v2: true }, metadata)\r\n * parse('123456789', { defaultCountry: 'RU' }, metadata)\r\n * parse('123456789', undefined, metadata)\r\n *\r\n * @param {string} input\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {object|PhoneNumber?} If `options.v2: true` flag is passed, it returns a `PhoneNumber?` instance. Otherwise, returns an object of shape `{ phone: '...', country: '...' }` (or just `{}` if no phone number was parsed).\r\n */\n\nexport default function parse(text, options, metadata) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n metadata = new Metadata(metadata); // Validate `defaultCountry`.\n\n if (options.defaultCountry && !metadata.hasCountry(options.defaultCountry)) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n\n throw new Error(\"Unknown country: \".concat(options.defaultCountry));\n } // Parse the phone number.\n\n\n var _parseInput = parseInput(text, options.v2, options.extract),\n formattedPhoneNumber = _parseInput.number,\n ext = _parseInput.ext,\n error = _parseInput.error; // If the phone number is not viable then return nothing.\n\n\n if (!formattedPhoneNumber) {\n if (options.v2) {\n if (error === 'TOO_SHORT') {\n throw new ParseError('TOO_SHORT');\n }\n\n throw new ParseError('NOT_A_NUMBER');\n }\n\n return {};\n }\n\n var _parsePhoneNumber = parsePhoneNumber(formattedPhoneNumber, options.defaultCountry, options.defaultCallingCode, metadata),\n country = _parsePhoneNumber.country,\n nationalNumber = _parsePhoneNumber.nationalNumber,\n countryCallingCode = _parsePhoneNumber.countryCallingCode,\n countryCallingCodeSource = _parsePhoneNumber.countryCallingCodeSource,\n carrierCode = _parsePhoneNumber.carrierCode;\n\n if (!metadata.hasSelectedNumberingPlan()) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n\n return {};\n } // Validate national (significant) number length.\n\n\n if (!nationalNumber || nationalNumber.length < MIN_LENGTH_FOR_NSN) {\n // Won't throw here because the regexp already demands length > 1.\n\n /* istanbul ignore if */\n if (options.v2) {\n throw new ParseError('TOO_SHORT');\n } // Google's demo just throws an error in this case.\n\n\n return {};\n } // Validate national (significant) number length.\n //\n // A sidenote:\n //\n // They say that sometimes national (significant) numbers\n // can be longer than `MAX_LENGTH_FOR_NSN` (e.g. in Germany).\n // https://github.com/googlei18n/libphonenumber/blob/7e1748645552da39c4e1ba731e47969d97bdb539/resources/phonenumber.proto#L36\n // Such numbers will just be discarded.\n //\n\n\n if (nationalNumber.length > MAX_LENGTH_FOR_NSN) {\n if (options.v2) {\n throw new ParseError('TOO_LONG');\n } // Google's demo just throws an error in this case.\n\n\n return {};\n }\n\n if (options.v2) {\n var phoneNumber = new PhoneNumber(countryCallingCode, nationalNumber, metadata.metadata);\n\n if (country) {\n phoneNumber.country = country;\n }\n\n if (carrierCode) {\n phoneNumber.carrierCode = carrierCode;\n }\n\n if (ext) {\n phoneNumber.ext = ext;\n }\n\n phoneNumber.__countryCallingCodeSource = countryCallingCodeSource;\n return phoneNumber;\n } // Check if national phone number pattern matches the number.\n // National number pattern is different for each country,\n // even for those ones which are part of the \"NANPA\" group.\n\n\n var valid = (options.extended ? metadata.hasSelectedNumberingPlan() : country) ? matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) : false;\n\n if (!options.extended) {\n return valid ? result(country, nationalNumber, ext) : {};\n } // isInternational: countryCallingCode !== undefined\n\n\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n carrierCode: carrierCode,\n valid: valid,\n possible: valid ? true : options.extended === true && metadata.possibleLengths() && isPossibleNumber(nationalNumber, metadata) ? true : false,\n phone: nationalNumber,\n ext: ext\n };\n}\n/**\r\n * Extracts a formatted phone number from text.\r\n * Doesn't guarantee that the extracted phone number\r\n * is a valid phone number (for example, doesn't validate its length).\r\n * @param {string} text\r\n * @param {boolean} [extract] — If `false`, then will parse the entire `text` as a phone number.\r\n * @param {boolean} [throwOnError] — By default, it won't throw if the text is too long.\r\n * @return {string}\r\n * @example\r\n * // Returns \"(213) 373-4253\".\r\n * extractFormattedPhoneNumber(\"Call (213) 373-4253 for assistance.\")\r\n */\n\nfunction _extractFormattedPhoneNumber(text, extract, throwOnError) {\n if (!text) {\n return;\n }\n\n if (text.length > MAX_INPUT_STRING_LENGTH) {\n if (throwOnError) {\n throw new ParseError('TOO_LONG');\n }\n\n return;\n }\n\n if (extract === false) {\n return text;\n } // Attempt to extract a possible number from the string passed in\n\n\n var startsAt = text.search(PHONE_NUMBER_START_PATTERN);\n\n if (startsAt < 0) {\n return;\n }\n\n return text // Trim everything to the left of the phone number\n .slice(startsAt) // Remove trailing non-numerical characters\n .replace(AFTER_PHONE_NUMBER_END_PATTERN, '');\n}\n/**\r\n * @param {string} text - Input.\r\n * @param {boolean} v2 - Legacy API functions don't pass `v2: true` flag.\r\n * @param {boolean} [extract] - Whether to extract a phone number from `text`, or attempt to parse the entire text as a phone number.\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\n\n\nfunction parseInput(text, v2, extract) {\n // // Parse RFC 3966 phone number URI.\n // if (text && text.indexOf('tel:') === 0) {\n // \treturn parseRFC3966(text)\n // }\n // let number = extractFormattedPhoneNumber(text, extract, v2)\n var number = extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(text, {\n extractFormattedPhoneNumber: function extractFormattedPhoneNumber(text) {\n return _extractFormattedPhoneNumber(text, extract, v2);\n }\n }); // If the phone number is not viable, then abort.\n\n if (!number) {\n return {};\n }\n\n if (!isViablePhoneNumber(number)) {\n if (isViablePhoneNumberStart(number)) {\n return {\n error: 'TOO_SHORT'\n };\n }\n\n return {};\n } // Attempt to parse extension first, since it doesn't require region-specific\n // data and we want to have the non-normalised number here.\n\n\n var withExtensionStripped = extractExtension(number);\n\n if (withExtensionStripped.ext) {\n return withExtensionStripped;\n }\n\n return {\n number: number\n };\n}\n/**\r\n * Creates `parse()` result object.\r\n */\n\n\nfunction result(country, nationalNumber, ext) {\n var result = {\n country: country,\n phone: nationalNumber\n };\n\n if (ext) {\n result.ext = ext;\n }\n\n return result;\n}\n/**\r\n * Parses a viable phone number.\r\n * @param {string} formattedPhoneNumber — Example: \"(213) 373-4253\".\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {Metadata} metadata\r\n * @return {object} Returns `{ country: string?, countryCallingCode: string?, nationalNumber: string? }`.\r\n */\n\n\nfunction parsePhoneNumber(formattedPhoneNumber, defaultCountry, defaultCallingCode, metadata) {\n // Extract calling code from phone number.\n var _extractCountryCallin = extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber), defaultCountry, defaultCallingCode, metadata.metadata),\n countryCallingCodeSource = _extractCountryCallin.countryCallingCodeSource,\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n number = _extractCountryCallin.number; // Choose a country by `countryCallingCode`.\n\n\n var country;\n\n if (countryCallingCode) {\n metadata.selectNumberingPlan(countryCallingCode);\n } // If `formattedPhoneNumber` is passed in \"national\" format\n // then `number` is defined and `countryCallingCode` is `undefined`.\n else if (number && (defaultCountry || defaultCallingCode)) {\n metadata.selectNumberingPlan(defaultCountry, defaultCallingCode);\n\n if (defaultCountry) {\n country = defaultCountry;\n } else {\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(defaultCallingCode)) {\n country = '001';\n }\n }\n }\n\n countryCallingCode = defaultCallingCode || getCountryCallingCode(defaultCountry, metadata.metadata);\n } else return {};\n\n if (!number) {\n return {\n countryCallingCodeSource: countryCallingCodeSource,\n countryCallingCode: countryCallingCode\n };\n }\n\n var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number), metadata),\n nationalNumber = _extractNationalNumbe.nationalNumber,\n carrierCode = _extractNationalNumbe.carrierCode; // Sometimes there are several countries\n // corresponding to the same country phone code\n // (e.g. NANPA countries all having `1` country phone code).\n // Therefore, to reliably determine the exact country,\n // national (significant) number should have been parsed first.\n //\n // When `metadata.json` is generated, all \"ambiguous\" country phone codes\n // get their countries populated with the full set of\n // \"phone number type\" regular expressions.\n //\n\n\n var exactCountry = getCountryByCallingCode(countryCallingCode, {\n nationalNumber: nationalNumber,\n defaultCountry: defaultCountry,\n metadata: metadata\n });\n\n if (exactCountry) {\n country = exactCountry;\n /* istanbul ignore if */\n\n if (exactCountry === '001') {// Can't happen with `USE_NON_GEOGRAPHIC_COUNTRY_CODE` being `false`.\n // If `USE_NON_GEOGRAPHIC_COUNTRY_CODE` is set to `true` for some reason,\n // then remove the \"istanbul ignore if\".\n } else {\n metadata.country(country);\n }\n }\n\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n countryCallingCodeSource: countryCallingCodeSource,\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport parse from './parse.js';\nexport default function parsePhoneNumberWithError(text, options, metadata) {\n return parse(text, _objectSpread(_objectSpread({}, options), {}, {\n v2: true\n }), metadata);\n}\n","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport isObject from './helpers/isObject.js'; // Extracts the following properties from function arguments:\n// * input `text`\n// * `options` object\n// * `metadata` JSON\n\nexport default function normalizeArguments(args) {\n var _Array$prototype$slic = Array.prototype.slice.call(args),\n _Array$prototype$slic2 = _slicedToArray(_Array$prototype$slic, 4),\n arg_1 = _Array$prototype$slic2[0],\n arg_2 = _Array$prototype$slic2[1],\n arg_3 = _Array$prototype$slic2[2],\n arg_4 = _Array$prototype$slic2[3];\n\n var text;\n var options;\n var metadata; // If the phone number is passed as a string.\n // `parsePhoneNumber('88005553535', ...)`.\n\n if (typeof arg_1 === 'string') {\n text = arg_1;\n } else throw new TypeError('A text for parsing must be a string.'); // If \"default country\" argument is being passed then move it to `options`.\n // `parsePhoneNumber('88005553535', 'RU', [options], metadata)`.\n\n\n if (!arg_2 || typeof arg_2 === 'string') {\n if (arg_4) {\n options = arg_3;\n metadata = arg_4;\n } else {\n options = undefined;\n metadata = arg_3;\n }\n\n if (arg_2) {\n options = _objectSpread({\n defaultCountry: arg_2\n }, options);\n }\n } // `defaultCountry` is not passed.\n // Example: `parsePhoneNumber('+78005553535', [options], metadata)`.\n else if (isObject(arg_2)) {\n if (arg_3) {\n options = arg_2;\n metadata = arg_3;\n } else {\n metadata = arg_2;\n }\n } else throw new Error(\"Invalid second argument: \".concat(arg_2));\n\n return {\n text: text,\n options: options,\n metadata: metadata\n };\n}\n","import parsePhoneNumberWithError_ from './parsePhoneNumberWithError_.js';\nimport normalizeArguments from './normalizeArguments.js';\nexport default function parsePhoneNumberWithError() {\n var _normalizeArguments = normalizeArguments(arguments),\n text = _normalizeArguments.text,\n options = _normalizeArguments.options,\n metadata = _normalizeArguments.metadata;\n\n return parsePhoneNumberWithError_(text, options, metadata);\n}\n","import withMetadataArgument from './withMetadataArgument.js'\r\nimport { parsePhoneNumberWithError as _parsePhoneNumberWithError } from '../../core/index.js'\r\n\r\nexport function parsePhoneNumberWithError() {\r\n\treturn withMetadataArgument(_parsePhoneNumberWithError, arguments)\r\n}\r\n","import f7, { forwardRef, createContext, useRef, useState, useEffect, useId, Children, isValidElement, cloneElement, useCallback, useContext, useLayoutEffect, useReducer, Fragment, useMemo, useImperativeHandle } from 'react';\nimport { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';\nimport e3, { keyframes, css } from 'styled-components';\nimport { createPortal } from 'react-dom';\nimport { v4 } from 'uuid';\nimport { motion, useDragControls, useAnimation, AnimatePresence, useMotionValue, useTransform } from 'framer-motion';\nimport * as t2 from '@radix-ui/react-tooltip';\nimport { Slot, Slottable } from '@radix-ui/react-slot';\nimport * as L1 from '@radix-ui/react-alert-dialog';\nimport * as l2 from '@radix-ui/react-dialog';\nimport * as W2 from '@radix-ui/react-dropdown-menu';\nimport { useForm, Controller } from 'react-hook-form';\nimport * as _5 from '@radix-ui/react-checkbox';\nimport * as q5 from '@radix-ui/react-popover';\nimport { Command } from 'cmdk';\nimport * as o4 from '@radix-ui/react-radio-group';\nimport * as k2 from '@radix-ui/react-select';\nimport * as d4 from '@radix-ui/react-switch';\nimport { AsYouType, parsePhoneNumber, getCountryCallingCode } from 'libphonenumber-js';\nimport { createPopper } from '@popperjs/core';\nimport * as h4 from '@radix-ui/react-tabs';\nimport * as u0 from '@radix-ui/react-avatar';\nimport * as ot from '@radix-ui/react-aspect-ratio';\nimport * as y2 from '@radix-ui/react-accordion';\n\nvar ct=Object.defineProperty;var st=(e,t,l)=>t in e?ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;var X=(e,t,l)=>(st(e,typeof t!=\"symbol\"?t+\"\":t,l),l);var b0={};var t7;function ht(){if(t7)return b0;t7=1;var e=f7,t=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),o=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0};function a(i,c,p){var u,h={},f=null,g=null;p!==void 0&&(f=\"\"+p),c.key!==void 0&&(f=\"\"+c.key),c.ref!==void 0&&(g=c.ref);for(u in c)o.call(c,u)&&!r.hasOwnProperty(u)&&(h[u]=c[u]);if(i&&i.defaultProps)for(u in c=i.defaultProps,c)h[u]===void 0&&(h[u]=c[u]);return {$$typeof:t,type:i,key:f,ref:g,props:h,_owner:n.current}}return b0.Fragment=l,b0.jsx=a,b0.jsxs=a,b0}var z0={};var l7;function mt(){return l7||(l7=1,process.env.NODE_ENV!==\"production\"&&function(){var e=f7,t=Symbol.for(\"react.element\"),l=Symbol.for(\"react.portal\"),o=Symbol.for(\"react.fragment\"),n=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),a=Symbol.for(\"react.provider\"),i=Symbol.for(\"react.context\"),c=Symbol.for(\"react.forward_ref\"),p=Symbol.for(\"react.suspense\"),u=Symbol.for(\"react.suspense_list\"),h=Symbol.for(\"react.memo\"),f=Symbol.for(\"react.lazy\"),g=Symbol.for(\"react.offscreen\"),C=Symbol.iterator,w=\"@@iterator\";function T(s){if(s===null||typeof s!=\"object\")return null;var M=C&&s[C]||s[w];return typeof M==\"function\"?M:null}var H=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function z(s){{for(var M=arguments.length,V=new Array(M>1?M-1:0),Z=1;Z<M;Z++)V[Z-1]=arguments[Z];S(\"error\",s,V);}}function S(s,M,V){{var Z=H.ReactDebugCurrentFrame,e1=Z.getStackAddendum();e1!==\"\"&&(M+=\"%s\",V=V.concat([e1]));var n1=V.map(function(Q){return String(Q)});n1.unshift(\"Warning: \"+M),Function.prototype.apply.call(console[s],console,n1);}}var k=!1,v=!1,F=!1,R=!1,W=!1,P;P=Symbol.for(\"react.module.reference\");function D(s){return !!(typeof s==\"string\"||typeof s==\"function\"||s===o||s===r||W||s===n||s===p||s===u||R||s===g||k||v||F||typeof s==\"object\"&&s!==null&&(s.$$typeof===f||s.$$typeof===h||s.$$typeof===a||s.$$typeof===i||s.$$typeof===c||s.$$typeof===P||s.getModuleId!==void 0))}function $(s,M,V){var Z=s.displayName;if(Z)return Z;var e1=M.displayName||M.name||\"\";return e1!==\"\"?V+\"(\"+e1+\")\":V}function x1(s){return s.displayName||\"Context\"}function p1(s){if(s==null)return null;if(typeof s.tag==\"number\"&&z(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),typeof s==\"function\")return s.displayName||s.name||null;if(typeof s==\"string\")return s;switch(s){case o:return \"Fragment\";case l:return \"Portal\";case r:return \"Profiler\";case n:return \"StrictMode\";case p:return \"Suspense\";case u:return \"SuspenseList\"}if(typeof s==\"object\")switch(s.$$typeof){case i:var M=s;return x1(M)+\".Consumer\";case a:var V=s;return x1(V._context)+\".Provider\";case c:return $(s,s.render,\"ForwardRef\");case h:var Z=s.displayName||null;return Z!==null?Z:p1(s.type)||\"Memo\";case f:{var e1=s,n1=e1._payload,Q=e1._init;try{return p1(Q(n1))}catch{return null}}}return null}var f1=Object.assign,a1=0,O,D1,X1,n2,r2,U,S1;function _(){}_.__reactDisabledLog=!0;function d1(){{if(a1===0){O=console.log,D1=console.info,X1=console.warn,n2=console.error,r2=console.group,U=console.groupCollapsed,S1=console.groupEnd;var s={configurable:!0,enumerable:!0,value:_,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s});}a1++;}}function j(){{if(a1--,a1===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:f1({},s,{value:O}),info:f1({},s,{value:D1}),warn:f1({},s,{value:X1}),error:f1({},s,{value:n2}),group:f1({},s,{value:r2}),groupCollapsed:f1({},s,{value:U}),groupEnd:f1({},s,{value:S1})});}a1<0&&z(\"disabledDepth fell below zero. This is a bug in React. Please file an issue.\");}}var i2=H.ReactCurrentDispatcher,n3;function r3(s,M,V){{if(n3===void 0)try{throw Error()}catch(e1){var Z=e1.stack.trim().match(/\\n( *(at )?)/);n3=Z&&Z[1]||\"\";}return `\n`+n3+s}}var i3=!1,a3;{var a5=typeof WeakMap==\"function\"?WeakMap:Map;a3=new a5;}function H2(s,M){if(!s||i3)return \"\";{var V=a3.get(s);if(V!==void 0)return V}var Z;i3=!0;var e1=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var n1;n1=i2.current,i2.current=null,d1();try{if(M){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==\"object\"&&Reflect.construct){try{Reflect.construct(Q,[]);}catch(i1){Z=i1;}Reflect.construct(s,[],Q);}else {try{Q.call();}catch(i1){Z=i1;}s.call(Q.prototype);}}else {try{throw Error()}catch(i1){Z=i1;}s();}}catch(i1){if(i1&&Z&&typeof i1.stack==\"string\"){for(var b=i1.stack.split(`\n`),d=Z.stack.split(`\n`),x=b.length-1,y=d.length-1;x>=1&&y>=0&&b[x]!==d[y];)y--;for(;x>=1&&y>=0;x--,y--)if(b[x]!==d[y]){if(x!==1||y!==1)do if(x--,y--,y<0||b[x]!==d[y]){var J=`\n`+b[x].replace(\" at new \",\" at \");return s.displayName&&J.includes(\"<anonymous>\")&&(J=J.replace(\"<anonymous>\",s.displayName)),typeof s==\"function\"&&a3.set(s,J),J}while(x>=1&&y>=0);break}}}finally{i3=!1,i2.current=n1,j(),Error.prepareStackTrace=e1;}var v1=s?s.displayName||s.name:\"\",m1=v1?r3(v1):\"\";return typeof s==\"function\"&&a3.set(s,m1),m1}function h0(s,M,V){return H2(s,!1)}function F2(s){var M=s.prototype;return !!(M&&M.isReactComponent)}function D2(s,M,V){if(s==null)return \"\";if(typeof s==\"function\")return H2(s,F2(s));if(typeof s==\"string\")return r3(s);switch(s){case p:return r3(\"Suspense\");case u:return r3(\"SuspenseList\")}if(typeof s==\"object\")switch(s.$$typeof){case c:return h0(s.render);case h:return D2(s.type,M,V);case f:{var Z=s,e1=Z._payload,n1=Z._init;try{return D2(n1(e1),M,V)}catch{}}}return \"\"}var w2=Object.prototype.hasOwnProperty,L2={},c3=H.ReactDebugCurrentFrame;function T2(s){if(s){var M=s._owner,V=D2(s.type,s._source,M?M.type:null);c3.setExtraStackFrame(V);}else c3.setExtraStackFrame(null);}function c5(s,M,V,Z,e1){{var n1=Function.call.bind(w2);for(var Q in s)if(n1(s,Q)){var b=void 0;try{if(typeof s[Q]!=\"function\"){var d=Error((Z||\"React class\")+\": \"+V+\" type `\"+Q+\"` is invalid; it must be a function, usually from the `prop-types` package, but received `\"+typeof s[Q]+\"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.\");throw d.name=\"Invariant Violation\",d}b=s[Q](M,Q,Z,V,null,\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\");}catch(x){b=x;}b&&!(b instanceof Error)&&(T2(e1),z(\"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).\",Z||\"React class\",V,Q,typeof b),T2(null)),b instanceof Error&&!(b.message in L2)&&(L2[b.message]=!0,T2(e1),z(\"Failed %s type: %s\",V,b.message),T2(null));}}}var s5=Array.isArray;function m0(s){return s5(s)}function f0(s){{var M=typeof Symbol==\"function\"&&Symbol.toStringTag,V=M&&s[Symbol.toStringTag]||s.constructor.name||\"Object\";return V}}function s3(s){try{return V2(s),!1}catch{return !0}}function V2(s){return \"\"+s}function I2(s){if(s3(s))return z(\"The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.\",f0(s)),V2(s)}var N2=H.ReactCurrentOwner,d5={key:!0,ref:!0,__self:!0,__source:!0},C0,I3,S3;S3={};function B3(s){if(w2.call(s,\"ref\")){var M=Object.getOwnPropertyDescriptor(s,\"ref\").get;if(M&&M.isReactWarning)return !1}return s.ref!==void 0}function E3(s){if(w2.call(s,\"key\")){var M=Object.getOwnPropertyDescriptor(s,\"key\").get;if(M&&M.isReactWarning)return !1}return s.key!==void 0}function a2(s,M){if(typeof s.ref==\"string\"&&N2.current&&M&&N2.current.stateNode!==M){var V=p1(N2.current.type);S3[V]||(z('Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',p1(N2.current.type),s.ref),S3[V]=!0);}}function $2(s,M){{var V=function(){C0||(C0=!0,z(\"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)\",M));};V.isReactWarning=!0,Object.defineProperty(s,\"key\",{get:V,configurable:!0});}}function g0(s,M){{var V=function(){I3||(I3=!0,z(\"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)\",M));};V.isReactWarning=!0,Object.defineProperty(s,\"ref\",{get:V,configurable:!0});}}var v0=function(s,M,V,Z,e1,n1,Q){var b={$$typeof:t,type:s,key:M,ref:V,props:Q,_owner:n1};return b._store={},Object.defineProperty(b._store,\"validated\",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,\"_self\",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.defineProperty(b,\"_source\",{configurable:!1,enumerable:!1,writable:!1,value:e1}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function M4(s,M,V,Z,e1){{var n1,Q={},b=null,d=null;V!==void 0&&(I2(V),b=\"\"+V),E3(M)&&(I2(M.key),b=\"\"+M.key),B3(M)&&(d=M.ref,a2(M,e1));for(n1 in M)w2.call(M,n1)&&!d5.hasOwnProperty(n1)&&(Q[n1]=M[n1]);if(s&&s.defaultProps){var x=s.defaultProps;for(n1 in x)Q[n1]===void 0&&(Q[n1]=x[n1]);}if(b||d){var y=typeof s==\"function\"?s.displayName||s.name||\"Unknown\":s;b&&$2(Q,y),d&&g0(Q,y);}return v0(s,b,d,e1,Z,N2.current,Q)}}var Z2=H.ReactCurrentOwner,d3=H.ReactDebugCurrentFrame;function O2(s){if(s){var M=s._owner,V=D2(s.type,s._source,M?M.type:null);d3.setExtraStackFrame(V);}else d3.setExtraStackFrame(null);}var S2;S2=!1;function x0(s){return typeof s==\"object\"&&s!==null&&s.$$typeof===t}function p5(){{if(Z2.current){var s=p1(Z2.current.type);if(s)return `\n\nCheck the render method of \\``+s+\"`.\"}return \"\"}}function b1(s){return \"\"}var B2={};function k4(s){{var M=p5();if(!M){var V=typeof s==\"string\"?s:s.displayName||s.name;V&&(M=`\n\nCheck the top-level render call using <`+V+\">.\");}return M}}function M0(s,M){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var V=k4(M);if(B2[V])return;B2[V]=!0;var Z=\"\";s&&s._owner&&s._owner!==Z2.current&&(Z=\" It was passed a child from \"+p1(s._owner.type)+\".\"),O2(s),z('Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,Z),O2(null);}}function A3(s,M){{if(typeof s!=\"object\")return;if(m0(s))for(var V=0;V<s.length;V++){var Z=s[V];x0(Z)&&M0(Z,M);}else if(x0(s))s._store&&(s._store.validated=!0);else if(s){var e1=T(s);if(typeof e1==\"function\"&&e1!==s.entries)for(var n1=e1.call(s),Q;!(Q=n1.next()).done;)x0(Q.value)&&M0(Q.value,M);}}}function u5(s){{var M=s.type;if(M==null||typeof M==\"string\")return;var V;if(typeof M==\"function\")V=M.propTypes;else if(typeof M==\"object\"&&(M.$$typeof===c||M.$$typeof===h))V=M.propTypes;else return;if(V){var Z=p1(M);c5(V,s.props,\"prop\",Z,s);}else if(M.PropTypes!==void 0&&!S2){S2=!0;var e1=p1(M);z(\"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?\",e1||\"Unknown\");}typeof M.getDefaultProps==\"function\"&&!M.getDefaultProps.isReactClassApproved&&z(\"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.\");}}function h5(s){{for(var M=Object.keys(s.props),V=0;V<M.length;V++){var Z=M[V];if(Z!==\"children\"&&Z!==\"key\"){O2(s),z(\"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.\",Z),O2(null);break}}s.ref!==null&&(O2(s),z(\"Invalid attribute `ref` supplied to `React.Fragment`.\"),O2(null));}}var m5={};function j1(s,M,V,Z,e1,n1){{var Q=D(s);if(!Q){var b=\"\";(s===void 0||typeof s==\"object\"&&s!==null&&Object.keys(s).length===0)&&(b+=\" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.\");var d=b1();d?b+=d:b+=p5();var x;s===null?x=\"null\":m0(s)?x=\"array\":s!==void 0&&s.$$typeof===t?(x=\"<\"+(p1(s.type)||\"Unknown\")+\" />\",b=\" Did you accidentally export a JSX literal instead of a component?\"):x=typeof s,z(\"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s\",x,b);}var y=M4(s,M,V,e1,n1);if(y==null)return y;if(Q){var J=M.children;if(J!==void 0)if(Z)if(m0(J)){for(var v1=0;v1<J.length;v1++)A3(J[v1],s);Object.freeze&&Object.freeze(J);}else z(\"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\");else A3(J,s);}if(w2.call(M,\"key\")){var m1=p1(s),i1=Object.keys(M).filter(function(T1){return T1!==\"key\"}),U1=i1.length>0?\"{key: someKey, \"+i1.join(\": ..., \")+\": ...}\":\"{key: someKey}\";if(!m5[m1+U1]){var p3=i1.length>0?\"{\"+i1.join(\": ..., \")+\": ...}\":\"{}\";z(`A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />`,U1,m1,p3,m1),m5[m1+U1]=!0;}}return s===o?h5(y):u5(y),y}}function P3(s,M,V){return j1(s,M,V,!0)}function f5(s,M,V){return j1(s,M,V,!1)}var C5=f5,k0=P3;z0.Fragment=o,z0.jsx=C5,z0.jsxs=k0;}()),z0}process.env.NODE_ENV===\"production\"?ht():mt();var o7;(e=>{let t=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i;function l(i,c){function p(C){return C>255?255:C<0?0:C}let u=o(i),h=p(u[0]+c),f=p(u[1]+c),g=p(u[2]+c);return n([h,f,g,1])}e.lightLevel=l;function o(i){if(!t.test(i))throw new Error(\"Tried to modify a non hex string\");let c=parseInt(i.slice(1),16),p=c>>16,u=c>>8&255,h=c&255;return [p,u,h,1]}e.createRgb=o;function n(i){function c(p){let u=p.toString(16).toLowerCase();return u.length<2?`0${u}`:u}return `#${c(i[0])}${c(i[1])}${c(i[2])}`}e.createHex=n;function r(i){let c=o(i);return (c[0]*299+c[1]*587+c[2]*114)/1e3<128}e.isDark=r;function a(i){return !r(i)}e.isLight=a;})(o7||(o7={}));function ft(e,t){let l;return function(...n){let r=()=>e.apply(this,n);clearTimeout(l),l=setTimeout(r,t);}}var n7;(e=>{function t(o,n){if(!o)throw new Error(n??\"assertion failed\");return !0}e.assert=t;function l(o,n){if(typeof o>\"u\"||o===null)throw new Error(n??\"assertDeclared\");return !0}e.assertDeclared=l;})(n7||(n7={}));var L4=class{constructor(){X(this,\"disposers\",new Map);X(this,\"registeredId\",0);}wait(e,t){let l=setTimeout(e,t),o=()=>{clearTimeout(l);};return this.registerDisposer(o)}repeat(e,t,l=!1){l&&e();let o=setInterval(e,t),n=()=>{clearInterval(o);};return this.registerDisposer(n)}flush(){this.disposers.forEach(e=>e());}registerDisposer(e){let t=this.registeredId++;return this.disposers.set(t,e),()=>{this.disposers.delete(t),e();}}};(e=>{function t(...o){let n=new e;return n.wait(...o),n.flush.bind(n)}e.wait=t;function l(...o){let n=new e;return n.repeat(...o),n.flush.bind(n)}e.repeat=l;})(L4||(L4={}));var r7;(e=>{e.byBruteForce=(t,l)=>{let o={every:1e3,for:1,hooks:[],...l||{}};return new Promise((n,r)=>{let a=0,i=!1,c=L4.repeat(()=>{p(++a);},o.every,!0);async function p(u){if(u>o.for&&!i)c(),r(`request did not finish in ${o.for} attempts`);else try{let h=await t();i||(c(),i=!0,n(h));}catch{o.hooks?.forEach(f=>f());}}})},e.the=(t,l)=>{let o={againAfter:1e3,for:1,hooks:[],...l||{}};return new Promise((n,r)=>{let a=0;async function i(p){try{let u=await t();n(u);}catch{o.hooks?.forEach(h=>h()),p<o.for?c():r(`request did not finish in ${o.for} attempts`);}}function c(){setTimeout(()=>{i(++a);},o.againAfter);}i(++a);})};})(r7||(r7={}));function C2(...e){let t=useRef(null);return useLayoutEffect(()=>{e.forEach(l=>{l&&(typeof l==\"function\"?l(t.current??null):l.current=t.current);});},[e]),t}function Ct(e){return e!=null&&typeof e==\"object\"&&\"current\"in e?e.current:e}var R3=!(typeof window<\"u\"&&window.document?.createElement);function gt({type:e,listener:t,element:l=R3?void 0:window,options:o}){let n=useRef();useEffect(()=>{n.current=t;},[t]);let r=useCallback(a=>{n.current?.(a);},[]);useEffect(()=>{let a=Ct(l);return a?.addEventListener(e,r,o),()=>a?.removeEventListener(e,r)},[e,l,o,r]);}function x7(){let[,e]=useReducer(t=>t+1,0);return e}var vt=(e,t=250)=>{let l=useMemo(()=>t!==0?ft(o=>e(o),t):o=>e(o),[t,e]);gt({type:\"resize\",listener:l,options:{passive:!0}});};var M7=R3?()=>{}:useLayoutEffect;function k7(e=250){let t=useCallback(()=>({width:R3?void 0:window.innerWidth,height:R3?void 0:window.innerHeight}),[]),[l,o]=useState(t);return vt(()=>{o(t);},e),l}var M5=class{constructor(t,l){this.ok=t,this.err=l;}};function I4(e){return new M5(e,null)}function S4(e){return new M5(null,e)}function C1(e){return t=>{e.forEach(l=>{l&&(typeof l==\"function\"?l(t):l.current=t);});}}function D3(e){return {__html:e}}var{entries:b7,setPrototypeOf:i7,isFrozen:xt,getPrototypeOf:Mt,getOwnPropertyDescriptor:kt}=Object,{freeze:$1,seal:Y1,create:z7}=Object,{apply:T4,construct:V4}=typeof Reflect<\"u\"&&Reflect;$1||($1=function(t){return t});Y1||(Y1=function(t){return t});T4||(T4=function(t,l,o){return t.apply(l,o)});V4||(V4=function(t,l){return new t(...l)});var g5=W1(Array.prototype.forEach),a7=W1(Array.prototype.pop),y0=W1(Array.prototype.push),x5=W1(String.prototype.toLowerCase),b4=W1(String.prototype.toString),c7=W1(String.prototype.match),H0=W1(String.prototype.replace),bt=W1(String.prototype.indexOf),zt=W1(String.prototype.trim),c2=W1(Object.prototype.hasOwnProperty),N1=W1(RegExp.prototype.test),F0=yt(TypeError);function W1(e){return function(t){for(var l=arguments.length,o=new Array(l>1?l-1:0),n=1;n<l;n++)o[n-1]=arguments[n];return T4(e,t,o)}}function yt(e){return function(){for(var t=arguments.length,l=new Array(t),o=0;o<t;o++)l[o]=arguments[o];return V4(e,l)}}function K(e,t){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x5;i7&&i7(e,null);let o=t.length;for(;o--;){let n=t[o];if(typeof n==\"string\"){let r=l(n);r!==n&&(xt(t)||(t[o]=r),n=r);}e[n]=!0;}return e}function Ht(e){for(let t=0;t<e.length;t++)c2(e,t)||(e[t]=null);return e}function u3(e){let t=z7(null);for(let[l,o]of b7(e))c2(e,l)&&(Array.isArray(o)?t[l]=Ht(o):o&&typeof o==\"object\"&&o.constructor===Object?t[l]=u3(o):t[l]=o);return t}function w0(e,t){for(;e!==null;){let o=kt(e,t);if(o){if(o.get)return W1(o.get);if(typeof o.value==\"function\")return W1(o.value)}e=Mt(e);}function l(){return null}return l}var s7=$1([\"a\",\"abbr\",\"acronym\",\"address\",\"area\",\"article\",\"aside\",\"audio\",\"b\",\"bdi\",\"bdo\",\"big\",\"blink\",\"blockquote\",\"body\",\"br\",\"button\",\"canvas\",\"caption\",\"center\",\"cite\",\"code\",\"col\",\"colgroup\",\"content\",\"data\",\"datalist\",\"dd\",\"decorator\",\"del\",\"details\",\"dfn\",\"dialog\",\"dir\",\"div\",\"dl\",\"dt\",\"element\",\"em\",\"fieldset\",\"figcaption\",\"figure\",\"font\",\"footer\",\"form\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"head\",\"header\",\"hgroup\",\"hr\",\"html\",\"i\",\"img\",\"input\",\"ins\",\"kbd\",\"label\",\"legend\",\"li\",\"main\",\"map\",\"mark\",\"marquee\",\"menu\",\"menuitem\",\"meter\",\"nav\",\"nobr\",\"ol\",\"optgroup\",\"option\",\"output\",\"p\",\"picture\",\"pre\",\"progress\",\"q\",\"rp\",\"rt\",\"ruby\",\"s\",\"samp\",\"section\",\"select\",\"shadow\",\"small\",\"source\",\"spacer\",\"span\",\"strike\",\"strong\",\"style\",\"sub\",\"summary\",\"sup\",\"table\",\"tbody\",\"td\",\"template\",\"textarea\",\"tfoot\",\"th\",\"thead\",\"time\",\"tr\",\"track\",\"tt\",\"u\",\"ul\",\"var\",\"video\",\"wbr\"]),z4=$1([\"svg\",\"a\",\"altglyph\",\"altglyphdef\",\"altglyphitem\",\"animatecolor\",\"animatemotion\",\"animatetransform\",\"circle\",\"clippath\",\"defs\",\"desc\",\"ellipse\",\"filter\",\"font\",\"g\",\"glyph\",\"glyphref\",\"hkern\",\"image\",\"line\",\"lineargradient\",\"marker\",\"mask\",\"metadata\",\"mpath\",\"path\",\"pattern\",\"polygon\",\"polyline\",\"radialgradient\",\"rect\",\"stop\",\"style\",\"switch\",\"symbol\",\"text\",\"textpath\",\"title\",\"tref\",\"tspan\",\"view\",\"vkern\"]),y4=$1([\"feBlend\",\"feColorMatrix\",\"feComponentTransfer\",\"feComposite\",\"feConvolveMatrix\",\"feDiffuseLighting\",\"feDisplacementMap\",\"feDistantLight\",\"feDropShadow\",\"feFlood\",\"feFuncA\",\"feFuncB\",\"feFuncG\",\"feFuncR\",\"feGaussianBlur\",\"feImage\",\"feMerge\",\"feMergeNode\",\"feMorphology\",\"feOffset\",\"fePointLight\",\"feSpecularLighting\",\"feSpotLight\",\"feTile\",\"feTurbulence\"]),Ft=$1([\"animate\",\"color-profile\",\"cursor\",\"discard\",\"font-face\",\"font-face-format\",\"font-face-name\",\"font-face-src\",\"font-face-uri\",\"foreignobject\",\"hatch\",\"hatchpath\",\"mesh\",\"meshgradient\",\"meshpatch\",\"meshrow\",\"missing-glyph\",\"script\",\"set\",\"solidcolor\",\"unknown\",\"use\"]),H4=$1([\"math\",\"menclose\",\"merror\",\"mfenced\",\"mfrac\",\"mglyph\",\"mi\",\"mlabeledtr\",\"mmultiscripts\",\"mn\",\"mo\",\"mover\",\"mpadded\",\"mphantom\",\"mroot\",\"mrow\",\"ms\",\"mspace\",\"msqrt\",\"mstyle\",\"msub\",\"msup\",\"msubsup\",\"mtable\",\"mtd\",\"mtext\",\"mtr\",\"munder\",\"munderover\",\"mprescripts\"]),wt=$1([\"maction\",\"maligngroup\",\"malignmark\",\"mlongdiv\",\"mscarries\",\"mscarry\",\"msgroup\",\"mstack\",\"msline\",\"msrow\",\"semantics\",\"annotation\",\"annotation-xml\",\"mprescripts\",\"none\"]),d7=$1([\"#text\"]),p7=$1([\"accept\",\"action\",\"align\",\"alt\",\"autocapitalize\",\"autocomplete\",\"autopictureinpicture\",\"autoplay\",\"background\",\"bgcolor\",\"border\",\"capture\",\"cellpadding\",\"cellspacing\",\"checked\",\"cite\",\"class\",\"clear\",\"color\",\"cols\",\"colspan\",\"controls\",\"controlslist\",\"coords\",\"crossorigin\",\"datetime\",\"decoding\",\"default\",\"dir\",\"disabled\",\"disablepictureinpicture\",\"disableremoteplayback\",\"download\",\"draggable\",\"enctype\",\"enterkeyhint\",\"face\",\"for\",\"headers\",\"height\",\"hidden\",\"high\",\"href\",\"hreflang\",\"id\",\"inputmode\",\"integrity\",\"ismap\",\"kind\",\"label\",\"lang\",\"list\",\"loading\",\"loop\",\"low\",\"max\",\"maxlength\",\"media\",\"method\",\"min\",\"minlength\",\"multiple\",\"muted\",\"name\",\"nonce\",\"noshade\",\"novalidate\",\"nowrap\",\"open\",\"optimum\",\"pattern\",\"placeholder\",\"playsinline\",\"popover\",\"popovertarget\",\"popovertargetaction\",\"poster\",\"preload\",\"pubdate\",\"radiogroup\",\"readonly\",\"rel\",\"required\",\"rev\",\"reversed\",\"role\",\"rows\",\"rowspan\",\"spellcheck\",\"scope\",\"selected\",\"shape\",\"size\",\"sizes\",\"span\",\"srclang\",\"start\",\"src\",\"srcset\",\"step\",\"style\",\"summary\",\"tabindex\",\"title\",\"translate\",\"type\",\"usemap\",\"valign\",\"value\",\"width\",\"wrap\",\"xmlns\",\"slot\"]),F4=$1([\"accent-height\",\"accumulate\",\"additive\",\"alignment-baseline\",\"amplitude\",\"ascent\",\"attributename\",\"attributetype\",\"azimuth\",\"basefrequency\",\"baseline-shift\",\"begin\",\"bias\",\"by\",\"class\",\"clip\",\"clippathunits\",\"clip-path\",\"clip-rule\",\"color\",\"color-interpolation\",\"color-interpolation-filters\",\"color-profile\",\"color-rendering\",\"cx\",\"cy\",\"d\",\"dx\",\"dy\",\"diffuseconstant\",\"direction\",\"display\",\"divisor\",\"dur\",\"edgemode\",\"elevation\",\"end\",\"exponent\",\"fill\",\"fill-opacity\",\"fill-rule\",\"filter\",\"filterunits\",\"flood-color\",\"flood-opacity\",\"font-family\",\"font-size\",\"font-size-adjust\",\"font-stretch\",\"font-style\",\"font-variant\",\"font-weight\",\"fx\",\"fy\",\"g1\",\"g2\",\"glyph-name\",\"glyphref\",\"gradientunits\",\"gradienttransform\",\"height\",\"href\",\"id\",\"image-rendering\",\"in\",\"in2\",\"intercept\",\"k\",\"k1\",\"k2\",\"k3\",\"k4\",\"kerning\",\"keypoints\",\"keysplines\",\"keytimes\",\"lang\",\"lengthadjust\",\"letter-spacing\",\"kernelmatrix\",\"kernelunitlength\",\"lighting-color\",\"local\",\"marker-end\",\"marker-mid\",\"marker-start\",\"markerheight\",\"markerunits\",\"markerwidth\",\"maskcontentunits\",\"maskunits\",\"max\",\"mask\",\"media\",\"method\",\"mode\",\"min\",\"name\",\"numoctaves\",\"offset\",\"operator\",\"opacity\",\"order\",\"orient\",\"orientation\",\"origin\",\"overflow\",\"paint-order\",\"path\",\"pathlength\",\"patterncontentunits\",\"patterntransform\",\"patternunits\",\"points\",\"preservealpha\",\"preserveaspectratio\",\"primitiveunits\",\"r\",\"rx\",\"ry\",\"radius\",\"refx\",\"refy\",\"repeatcount\",\"repeatdur\",\"restart\",\"result\",\"rotate\",\"scale\",\"seed\",\"shape-rendering\",\"slope\",\"specularconstant\",\"specularexponent\",\"spreadmethod\",\"startoffset\",\"stddeviation\",\"stitchtiles\",\"stop-color\",\"stop-opacity\",\"stroke-dasharray\",\"stroke-dashoffset\",\"stroke-linecap\",\"stroke-linejoin\",\"stroke-miterlimit\",\"stroke-opacity\",\"stroke\",\"stroke-width\",\"style\",\"surfacescale\",\"systemlanguage\",\"tabindex\",\"tablevalues\",\"targetx\",\"targety\",\"transform\",\"transform-origin\",\"text-anchor\",\"text-decoration\",\"text-rendering\",\"textlength\",\"type\",\"u1\",\"u2\",\"unicode\",\"values\",\"viewbox\",\"visibility\",\"version\",\"vert-adv-y\",\"vert-origin-x\",\"vert-origin-y\",\"width\",\"word-spacing\",\"wrap\",\"writing-mode\",\"xchannelselector\",\"ychannelselector\",\"x\",\"x1\",\"x2\",\"xmlns\",\"y\",\"y1\",\"y2\",\"z\",\"zoomandpan\"]),u7=$1([\"accent\",\"accentunder\",\"align\",\"bevelled\",\"close\",\"columnsalign\",\"columnlines\",\"columnspan\",\"denomalign\",\"depth\",\"dir\",\"display\",\"displaystyle\",\"encoding\",\"fence\",\"frame\",\"height\",\"href\",\"id\",\"largeop\",\"length\",\"linethickness\",\"lspace\",\"lquote\",\"mathbackground\",\"mathcolor\",\"mathsize\",\"mathvariant\",\"maxsize\",\"minsize\",\"movablelimits\",\"notation\",\"numalign\",\"open\",\"rowalign\",\"rowlines\",\"rowspacing\",\"rowspan\",\"rspace\",\"rquote\",\"scriptlevel\",\"scriptminsize\",\"scriptsizemultiplier\",\"selection\",\"separator\",\"separators\",\"stretchy\",\"subscriptshift\",\"supscriptshift\",\"symmetric\",\"voffset\",\"width\",\"xmlns\"]),v5=$1([\"xlink:href\",\"xml:id\",\"xlink:title\",\"xml:space\",\"xmlns:xlink\"]),Lt=Y1(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm),Tt=Y1(/<%[\\w\\W]*|[\\w\\W]*%>/gm),Vt=Y1(/\\$\\{[\\w\\W]*}/gm),It=Y1(/^data-[\\-\\w.\\u00B7-\\uFFFF]+$/),St=Y1(/^aria-[\\-\\w]+$/),y7=Y1(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i),Bt=Y1(/^(?:\\w+script|data):/i),Et=Y1(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g),H7=Y1(/^html$/i),At=Y1(/^[a-z][.\\w]*(-[.\\w]+)+$/i),h7=Object.freeze({__proto__:null,ARIA_ATTR:St,ATTR_WHITESPACE:Et,CUSTOM_ELEMENT:At,DATA_ATTR:It,DOCTYPE_NAME:H7,ERB_EXPR:Tt,IS_ALLOWED_URI:y7,IS_SCRIPT_OR_DATA:Bt,MUSTACHE_EXPR:Lt,TMPLIT_EXPR:Vt}),L0={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Pt=function(){return typeof window>\"u\"?null:window},Rt=function(t,l){if(typeof t!=\"object\"||typeof t.createPolicy!=\"function\")return null;let o=null,n=\"data-tt-policy-suffix\";l&&l.hasAttribute(n)&&(o=l.getAttribute(n));let r=\"dompurify\"+(o?\"#\"+o:\"\");try{return t.createPolicy(r,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn(\"TrustedTypes policy \"+r+\" could not be created.\"),null}},m7=function(){return {afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function F7(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pt(),t=b=>F7(b);if(t.version=\"3.2.3\",t.removed=[],!e||!e.document||e.document.nodeType!==L0.document)return t.isSupported=!1,t;let{document:l}=e,o=l,n=o.currentScript,{DocumentFragment:r,HTMLTemplateElement:a,Node:i,Element:c,NodeFilter:p,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:g}=e,C=c.prototype,w=w0(C,\"cloneNode\"),T=w0(C,\"remove\"),H=w0(C,\"nextSibling\"),z=w0(C,\"childNodes\"),S=w0(C,\"parentNode\");if(typeof a==\"function\"){let b=l.createElement(\"template\");b.content&&b.content.ownerDocument&&(l=b.content.ownerDocument);}let k,v=\"\",{implementation:F,createNodeIterator:R,createDocumentFragment:W,getElementsByTagName:P}=l,{importNode:D}=o,$=m7();t.isSupported=typeof b7==\"function\"&&typeof S==\"function\"&&F&&F.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:x1,ERB_EXPR:p1,TMPLIT_EXPR:f1,DATA_ATTR:a1,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:D1,ATTR_WHITESPACE:X1,CUSTOM_ELEMENT:n2}=h7,{IS_ALLOWED_URI:r2}=h7,U=null,S1=K({},[...s7,...z4,...y4,...H4,...d7]),_=null,d1=K({},[...p7,...F4,...u7,...v5]),j=Object.seal(z7(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),i2=null,n3=null,r3=!0,i3=!0,a3=!1,a5=!0,H2=!1,h0=!0,F2=!1,D2=!1,w2=!1,L2=!1,c3=!1,T2=!1,c5=!0,s5=!1,m0=\"user-content-\",f0=!0,s3=!1,V2={},I2=null,N2=K({},[\"annotation-xml\",\"audio\",\"colgroup\",\"desc\",\"foreignobject\",\"head\",\"iframe\",\"math\",\"mi\",\"mn\",\"mo\",\"ms\",\"mtext\",\"noembed\",\"noframes\",\"noscript\",\"plaintext\",\"script\",\"style\",\"svg\",\"template\",\"thead\",\"title\",\"video\",\"xmp\"]),d5=null,C0=K({},[\"audio\",\"video\",\"img\",\"source\",\"image\",\"track\"]),I3=null,S3=K({},[\"alt\",\"class\",\"for\",\"id\",\"label\",\"name\",\"pattern\",\"placeholder\",\"role\",\"summary\",\"title\",\"value\",\"style\",\"xmlns\"]),B3=\"http://www.w3.org/1998/Math/MathML\",E3=\"http://www.w3.org/2000/svg\",a2=\"http://www.w3.org/1999/xhtml\",$2=a2,g0=!1,v0=null,M4=K({},[B3,E3,a2],b4),Z2=K({},[\"mi\",\"mo\",\"mn\",\"ms\",\"mtext\"]),d3=K({},[\"annotation-xml\"]),O2=K({},[\"title\",\"style\",\"font\",\"a\",\"script\"]),S2=null,x0=[\"application/xhtml+xml\",\"text/html\"],p5=\"text/html\",b1=null,B2=null,k4=l.createElement(\"form\"),M0=function(d){return d instanceof RegExp||d instanceof Function},A3=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(B2&&B2===d)){if((!d||typeof d!=\"object\")&&(d={}),d=u3(d),S2=x0.indexOf(d.PARSER_MEDIA_TYPE)===-1?p5:d.PARSER_MEDIA_TYPE,b1=S2===\"application/xhtml+xml\"?b4:x5,U=c2(d,\"ALLOWED_TAGS\")?K({},d.ALLOWED_TAGS,b1):S1,_=c2(d,\"ALLOWED_ATTR\")?K({},d.ALLOWED_ATTR,b1):d1,v0=c2(d,\"ALLOWED_NAMESPACES\")?K({},d.ALLOWED_NAMESPACES,b4):M4,I3=c2(d,\"ADD_URI_SAFE_ATTR\")?K(u3(S3),d.ADD_URI_SAFE_ATTR,b1):S3,d5=c2(d,\"ADD_DATA_URI_TAGS\")?K(u3(C0),d.ADD_DATA_URI_TAGS,b1):C0,I2=c2(d,\"FORBID_CONTENTS\")?K({},d.FORBID_CONTENTS,b1):N2,i2=c2(d,\"FORBID_TAGS\")?K({},d.FORBID_TAGS,b1):{},n3=c2(d,\"FORBID_ATTR\")?K({},d.FORBID_ATTR,b1):{},V2=c2(d,\"USE_PROFILES\")?d.USE_PROFILES:!1,r3=d.ALLOW_ARIA_ATTR!==!1,i3=d.ALLOW_DATA_ATTR!==!1,a3=d.ALLOW_UNKNOWN_PROTOCOLS||!1,a5=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,H2=d.SAFE_FOR_TEMPLATES||!1,h0=d.SAFE_FOR_XML!==!1,F2=d.WHOLE_DOCUMENT||!1,L2=d.RETURN_DOM||!1,c3=d.RETURN_DOM_FRAGMENT||!1,T2=d.RETURN_TRUSTED_TYPE||!1,w2=d.FORCE_BODY||!1,c5=d.SANITIZE_DOM!==!1,s5=d.SANITIZE_NAMED_PROPS||!1,f0=d.KEEP_CONTENT!==!1,s3=d.IN_PLACE||!1,r2=d.ALLOWED_URI_REGEXP||y7,$2=d.NAMESPACE||a2,Z2=d.MATHML_TEXT_INTEGRATION_POINTS||Z2,d3=d.HTML_INTEGRATION_POINTS||d3,j=d.CUSTOM_ELEMENT_HANDLING||{},d.CUSTOM_ELEMENT_HANDLING&&M0(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&M0(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==\"boolean\"&&(j.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),H2&&(i3=!1),c3&&(L2=!0),V2&&(U=K({},d7),_=[],V2.html===!0&&(K(U,s7),K(_,p7)),V2.svg===!0&&(K(U,z4),K(_,F4),K(_,v5)),V2.svgFilters===!0&&(K(U,y4),K(_,F4),K(_,v5)),V2.mathMl===!0&&(K(U,H4),K(_,u7),K(_,v5))),d.ADD_TAGS&&(U===S1&&(U=u3(U)),K(U,d.ADD_TAGS,b1)),d.ADD_ATTR&&(_===d1&&(_=u3(_)),K(_,d.ADD_ATTR,b1)),d.ADD_URI_SAFE_ATTR&&K(I3,d.ADD_URI_SAFE_ATTR,b1),d.FORBID_CONTENTS&&(I2===N2&&(I2=u3(I2)),K(I2,d.FORBID_CONTENTS,b1)),f0&&(U[\"#text\"]=!0),F2&&K(U,[\"html\",\"head\",\"body\"]),U.table&&(K(U,[\"tbody\"]),delete i2.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!=\"function\")throw F0('TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!=\"function\")throw F0('TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.');k=d.TRUSTED_TYPES_POLICY,v=k.createHTML(\"\");}else k===void 0&&(k=Rt(g,n)),k!==null&&typeof v==\"string\"&&(v=k.createHTML(\"\"));$1&&$1(d),B2=d;}},u5=K({},[...z4,...y4,...Ft]),h5=K({},[...H4,...wt]),m5=function(d){let x=S(d);(!x||!x.tagName)&&(x={namespaceURI:$2,tagName:\"template\"});let y=x5(d.tagName),J=x5(x.tagName);return v0[d.namespaceURI]?d.namespaceURI===E3?x.namespaceURI===a2?y===\"svg\":x.namespaceURI===B3?y===\"svg\"&&(J===\"annotation-xml\"||Z2[J]):!!u5[y]:d.namespaceURI===B3?x.namespaceURI===a2?y===\"math\":x.namespaceURI===E3?y===\"math\"&&d3[J]:!!h5[y]:d.namespaceURI===a2?x.namespaceURI===E3&&!d3[J]||x.namespaceURI===B3&&!Z2[J]?!1:!h5[y]&&(O2[y]||!u5[y]):!!(S2===\"application/xhtml+xml\"&&v0[d.namespaceURI]):!1},j1=function(d){y0(t.removed,{element:d});try{S(d).removeChild(d);}catch{T(d);}},P3=function(d,x){try{y0(t.removed,{attribute:x.getAttributeNode(d),from:x});}catch{y0(t.removed,{attribute:null,from:x});}if(x.removeAttribute(d),d===\"is\")if(L2||c3)try{j1(x);}catch{}else try{x.setAttribute(d,\"\");}catch{}},f5=function(d){let x=null,y=null;if(w2)d=\"<remove></remove>\"+d;else {let m1=c7(d,/^[\\r\\n\\t ]+/);y=m1&&m1[0];}S2===\"application/xhtml+xml\"&&$2===a2&&(d='<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>'+d+\"</body></html>\");let J=k?k.createHTML(d):d;if($2===a2)try{x=new f().parseFromString(J,S2);}catch{}if(!x||!x.documentElement){x=F.createDocument($2,\"template\",null);try{x.documentElement.innerHTML=g0?v:J;}catch{}}let v1=x.body||x.documentElement;return d&&y&&v1.insertBefore(l.createTextNode(y),v1.childNodes[0]||null),$2===a2?P.call(x,F2?\"html\":\"body\")[0]:F2?x.documentElement:v1},C5=function(d){return R.call(d.ownerDocument||d,d,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},k0=function(d){return d instanceof h&&(typeof d.nodeName!=\"string\"||typeof d.textContent!=\"string\"||typeof d.removeChild!=\"function\"||!(d.attributes instanceof u)||typeof d.removeAttribute!=\"function\"||typeof d.setAttribute!=\"function\"||typeof d.namespaceURI!=\"string\"||typeof d.insertBefore!=\"function\"||typeof d.hasChildNodes!=\"function\")},s=function(d){return typeof i==\"function\"&&d instanceof i};function M(b,d,x){g5(b,y=>{y.call(t,d,x,B2);});}let V=function(d){let x=null;if(M($.beforeSanitizeElements,d,null),k0(d))return j1(d),!0;let y=b1(d.nodeName);if(M($.uponSanitizeElement,d,{tagName:y,allowedTags:U}),d.hasChildNodes()&&!s(d.firstElementChild)&&N1(/<[/\\w]/g,d.innerHTML)&&N1(/<[/\\w]/g,d.textContent)||d.nodeType===L0.progressingInstruction||h0&&d.nodeType===L0.comment&&N1(/<[/\\w]/g,d.data))return j1(d),!0;if(!U[y]||i2[y]){if(!i2[y]&&e1(y)&&(j.tagNameCheck instanceof RegExp&&N1(j.tagNameCheck,y)||j.tagNameCheck instanceof Function&&j.tagNameCheck(y)))return !1;if(f0&&!I2[y]){let J=S(d)||d.parentNode,v1=z(d)||d.childNodes;if(v1&&J){let m1=v1.length;for(let i1=m1-1;i1>=0;--i1){let U1=w(v1[i1],!0);U1.__removalCount=(d.__removalCount||0)+1,J.insertBefore(U1,H(d));}}}return j1(d),!0}return d instanceof c&&!m5(d)||(y===\"noscript\"||y===\"noembed\"||y===\"noframes\")&&N1(/<\\/no(script|embed|frames)/i,d.innerHTML)?(j1(d),!0):(H2&&d.nodeType===L0.text&&(x=d.textContent,g5([x1,p1,f1],J=>{x=H0(x,J,\" \");}),d.textContent!==x&&(y0(t.removed,{element:d.cloneNode()}),d.textContent=x)),M($.afterSanitizeElements,d,null),!1)},Z=function(d,x,y){if(c5&&(x===\"id\"||x===\"name\")&&(y in l||y in k4))return !1;if(!(i3&&!n3[x]&&N1(a1,x))){if(!(r3&&N1(O,x))){if(!_[x]||n3[x]){if(!(e1(d)&&(j.tagNameCheck instanceof RegExp&&N1(j.tagNameCheck,d)||j.tagNameCheck instanceof Function&&j.tagNameCheck(d))&&(j.attributeNameCheck instanceof RegExp&&N1(j.attributeNameCheck,x)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(x))||x===\"is\"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&N1(j.tagNameCheck,y)||j.tagNameCheck instanceof Function&&j.tagNameCheck(y))))return !1}else if(!I3[x]){if(!N1(r2,H0(y,X1,\"\"))){if(!((x===\"src\"||x===\"xlink:href\"||x===\"href\")&&d!==\"script\"&&bt(y,\"data:\")===0&&d5[d])){if(!(a3&&!N1(D1,H0(y,X1,\"\")))){if(y)return !1}}}}}}return !0},e1=function(d){return d!==\"annotation-xml\"&&c7(d,n2)},n1=function(d){M($.beforeSanitizeAttributes,d,null);let{attributes:x}=d;if(!x||k0(d))return;let y={attrName:\"\",attrValue:\"\",keepAttr:!0,allowedAttributes:_,forceKeepAttr:void 0},J=x.length;for(;J--;){let v1=x[J],{name:m1,namespaceURI:i1,value:U1}=v1,p3=b1(m1),T1=m1===\"value\"?U1:zt(U1);if(y.attrName=p3,y.attrValue=T1,y.keepAttr=!0,y.forceKeepAttr=void 0,M($.uponSanitizeAttribute,d,y),T1=y.attrValue,s5&&(p3===\"id\"||p3===\"name\")&&(P3(m1,d),T1=m0+T1),h0&&N1(/((--!?|])>)|<\\/(style|title)/i,T1)){P3(m1,d);continue}if(y.forceKeepAttr||(P3(m1,d),!y.keepAttr))continue;if(!a5&&N1(/\\/>/i,T1)){P3(m1,d);continue}H2&&g5([x1,p1,f1],Ye=>{T1=H0(T1,Ye,\" \");});let qe=b1(d.nodeName);if(Z(qe,p3,T1)){if(k&&typeof g==\"object\"&&typeof g.getAttributeType==\"function\"&&!i1)switch(g.getAttributeType(qe,p3)){case\"TrustedHTML\":{T1=k.createHTML(T1);break}case\"TrustedScriptURL\":{T1=k.createScriptURL(T1);break}}try{i1?d.setAttributeNS(i1,m1,T1):d.setAttribute(m1,T1),k0(d)?j1(d):a7(t.removed);}catch{}}}M($.afterSanitizeAttributes,d,null);},Q=function b(d){let x=null,y=C5(d);for(M($.beforeSanitizeShadowDOM,d,null);x=y.nextNode();)M($.uponSanitizeShadowNode,x,null),V(x),n1(x),x.content instanceof r&&b(x.content);M($.afterSanitizeShadowDOM,d,null);};return t.sanitize=function(b){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=null,y=null,J=null,v1=null;if(g0=!b,g0&&(b=\"<!-->\"),typeof b!=\"string\"&&!s(b))if(typeof b.toString==\"function\"){if(b=b.toString(),typeof b!=\"string\")throw F0(\"dirty is not a string, aborting\")}else throw F0(\"toString is not a function\");if(!t.isSupported)return b;if(D2||A3(d),t.removed=[],typeof b==\"string\"&&(s3=!1),s3){if(b.nodeName){let U1=b1(b.nodeName);if(!U[U1]||i2[U1])throw F0(\"root node is forbidden and cannot be sanitized in-place\")}}else if(b instanceof i)x=f5(\"<!---->\"),y=x.ownerDocument.importNode(b,!0),y.nodeType===L0.element&&y.nodeName===\"BODY\"||y.nodeName===\"HTML\"?x=y:x.appendChild(y);else {if(!L2&&!H2&&!F2&&b.indexOf(\"<\")===-1)return k&&T2?k.createHTML(b):b;if(x=f5(b),!x)return L2?null:T2?v:\"\"}x&&w2&&j1(x.firstChild);let m1=C5(s3?b:x);for(;J=m1.nextNode();)V(J),n1(J),J.content instanceof r&&Q(J.content);if(s3)return b;if(L2){if(c3)for(v1=W.call(x.ownerDocument);x.firstChild;)v1.appendChild(x.firstChild);else v1=x;return (_.shadowroot||_.shadowrootmode)&&(v1=D.call(o,v1,!0)),v1}let i1=F2?x.outerHTML:x.innerHTML;return F2&&U[\"!doctype\"]&&x.ownerDocument&&x.ownerDocument.doctype&&x.ownerDocument.doctype.name&&N1(H7,x.ownerDocument.doctype.name)&&(i1=\"<!DOCTYPE \"+x.ownerDocument.doctype.name+`>\n`+i1),H2&&g5([x1,p1,f1],U1=>{i1=H0(i1,U1,\" \");}),k&&T2?k.createHTML(i1):i1},t.setConfig=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};A3(b),D2=!0;},t.clearConfig=function(){B2=null,D2=!1;},t.isValidAttribute=function(b,d,x){B2||A3({});let y=b1(b),J=b1(d);return Z(y,J,x)},t.addHook=function(b,d){typeof d==\"function\"&&y0($[b],d);},t.removeHook=function(b){return a7($[b])},t.removeHooks=function(b){$[b]=[];},t.removeAllHooks=function(){$=m7();},t}F7();function Ot({children:e},t){let l=useRef(null),o=C2(t,l);return useEffect(function(){if(l.current?.firstElementChild&&l.current.firstElementChild?.focus){let r=l.current?.firstElementChild;r.tabIndex<0&&r.setAttribute(\"tabindex\",\"-1\"),r.focus();}},[t]),jsx(\"div\",{style:{display:\"contents\"},ref:o,children:isValidElement(e)===!1?jsx(\"span\",{style:{outline:\"none\"},children:e}):e})}var E2=forwardRef(Ot);function L7(e,[t,l]){if(t>l)throw new Error(\"min can not be greater than max\");return Math.min(l,Math.max(t,e))}function e2(e){return `${e/16}rem`}var I=class{constructor(t){X(this,\"componentName\");this.componentName=t;}getValue(t,l){let o=`var(--cellula-component-${this.componentName}-${t}`;return l?o+`, ${l})`:o+\")\"}};var E={fontFamily:{cssVar:\"--cellula--font-family\",value:\"'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'\"},fontWeightRegular:{cssVar:\"--cellula--font-weight--regular\",value:\"400\"},fontWeightSemiBold:{cssVar:\"--cellula--font-weight--semi-bold\",value:\"600\"},textDisplayXlarge:{cssVar:\"--cellula--text--display--x-large\",value:\"var(--cellula--font-weight--semi-bold) 3.75rem/4.688rem var(--cellula--font-family)\"},textDisplayLarge:{cssVar:\"--cellula--text--display--large\",value:\"var(--cellula--font-weight--semi-bold) 3.375rem/4.188rem var(--cellula--font-family)\"},textDisplayMedium:{cssVar:\"--cellula--text--display--medium\",value:\"var(--cellula--font-weight--semi-bold) 3rem/3.75rem var(--cellula--font-family)\"},textDisplaySmall:{cssVar:\"--cellula--text--display--small\",value:\"var(--cellula--font-weight--semi-bold) 2.625rem/3.25rem var(--cellula--font-family)\"},textHeadingXlarge:{cssVar:\"--cellula--text--heading--x-large\",value:\"var(--cellula--font-weight--semi-bold) 2.25rem/2.813rem var(--cellula--font-family)\"},textHeadingLarge:{cssVar:\"--cellula--text--heading--large\",value:\"var(--cellula--font-weight--semi-bold) 2rem/2.5rem var(--cellula--font-family)\"},textHeadingMedium:{cssVar:\"--cellula--text--heading--medium\",value:\"var(--cellula--font-weight--semi-bold) 1.75rem/2.188rem var(--cellula--font-family)\"},textHeadingSmall:{cssVar:\"--cellula--text--heading--small\",value:\"var(--cellula--font-weight--semi-bold) 1.5rem/1.875rem var(--cellula--font-family)\"},textHeadingXsmall:{cssVar:\"--cellula--text--heading--x-small\",value:\"var(--cellula--font-weight--semi-bold) 1.25rem/1.563rem var(--cellula--font-family)\"},textBodyLargeRegular:{cssVar:\"--cellula--text--body--large-regular\",value:\"var(--cellula--font-weight--regular) 1.125rem/1.625rem var(--cellula--font-family)\"},textBodyLargeSemiBold:{cssVar:\"--cellula--text--body--large-semi-bold\",value:\"var(--cellula--font-weight--semi-bold) 1.125rem/1.625rem var(--cellula--font-family)\"},textBodyRegular:{cssVar:\"--cellula--text--body--regular\",value:\"var(--cellula--font-weight--regular) 1rem/1.5rem var(--cellula--font-family)\"},textBodySemiBold:{cssVar:\"--cellula--text--body--semi-bold\",value:\"var(--cellula--font-weight--semi-bold) 1rem/1.5rem var(--cellula--font-family)\"},textBodySmallRegular:{cssVar:\"--cellula--text--body--small-regular\",value:\"var(--cellula--font-weight--regular) 0.875rem/1.25rem var(--cellula--font-family)\"},textBodySmallSemiBold:{cssVar:\"--cellula--text--body--small-semi-bold\",value:\"var(--cellula--font-weight--semi-bold) 0.875rem/1.25rem var(--cellula--font-family)\"},textLabelLargeRegular:{cssVar:\"--cellula--text--label--large-regular\",value:\"var(--cellula--font-weight--regular) 1.125rem/1.375rem var(--cellula--font-family)\"},textLabelLargeSemiBold:{cssVar:\"--cellula--text--label--large-semi-bold\",value:\"var(--cellula--font-weight--semi-bold) 1.125rem/1.375rem var(--cellula--font-family)\"},textLabelXlargeRegular:{cssVar:\"--cellula--text--label--x-large-regular\",value:\"var(--cellula--font-weight--regular) 1.25rem/1.563rem var(--cellula--font-family)\"},textLabelXlargeSemiBold:{cssVar:\"--cellula--text--label--x-large-semi-bold\",value:\"var(--cellula--font-weight--semi-bold) 1.125rem/1.563rem var(--cellula--font-family)\"},textLabelRegular:{cssVar:\"--cellula--text--label--regular\",value:\"var(--cellula--font-weight--regular) 1rem/1.25rem var(--cellula--font-family)\"},textLabelSemiBold:{cssVar:\"--cellula--text--label--semi-bold\",value:\"var(--cellula--font-weight--semi-bold) 1rem/1.25rem var(--cellula--font-family)\"},textLabelSmallRegular:{cssVar:\"--cellula--text--label--small-regular\",value:\"var(--cellula--font-weight--regular) 0.875rem/1.125rem var(--cellula--font-family)\"},textLabelSmallSemiBold:{cssVar:\"--cellula--text--label--small-semi-bold\",value:\"var(--cellula--font-weight--semi-bold) 0.875rem/1.125rem var(--cellula--font-family)\"},textLabelXsmallRegular:{cssVar:\"--cellula--text--label--x-small-regular\",value:\"var(--cellula--font-weight--regular) 0.75rem/0.938rem var(--cellula--font-family)\"},textLabelXsmallSemiBold:{cssVar:\"--cellula--text--label--x-small-semi-bold\",value:\"var(--cellula--font-weight--semi-bold) 0.75rem/0.938rem var(--cellula--font-family)\"},spacingX0_25:{cssVar:\"--cellula--space--x0_25\",value:\"0.125rem\"},spacingX0_5:{cssVar:\"--cellula--space--x0_5\",value:\"0.25rem\"},spacingX1:{cssVar:\"--cellula--space--x1\",value:\"0.5rem\"},spacingX1_5:{cssVar:\"--cellula--space--x1_5\",value:\"0.75rem\"},spacingX2:{cssVar:\"--cellula--space--x2\",value:\"1rem\"},spacingX2_5:{cssVar:\"--cellula--space--x2_5\",value:\"1.25rem\"},spacingX3:{cssVar:\"--cellula--space--x3\",value:\"1.5rem\"},spacingX4:{cssVar:\"--cellula--space--x4\",value:\"2rem\"},spacingX5:{cssVar:\"--cellula--space--x5\",value:\"2.5rem\"},spacingX6:{cssVar:\"--cellula--space--x6\",value:\"3rem\"},spacingX7:{cssVar:\"--cellula--space--x7\",value:\"3.5rem\"},spacingX8:{cssVar:\"--cellula--space--x8\",value:\"4rem\"},spacingX9:{cssVar:\"--cellula--space--x9\",value:\"4.5rem\"},sizeX0_25:{cssVar:\"--cellula--size--x0_25\",value:\"0.125rem\"},sizeX0_5:{cssVar:\"--cellula--size--x0_5\",value:\"0.25rem\"},sizeX1:{cssVar:\"--cellula--size--x1\",value:\"0.5rem\"},sizeX1_5:{cssVar:\"--cellula--size--x1_5\",value:\"0.75rem\"},sizeX2:{cssVar:\"--cellula--size--x2\",value:\"1rem\"},sizeX2_5:{cssVar:\"--cellula--size--x2_5\",value:\"1.25rem\"},sizeX3:{cssVar:\"--cellula--size--x3\",value:\"1.5rem\"},sizeX4:{cssVar:\"--cellula--size--x4\",value:\"2rem\"},sizeX5:{cssVar:\"--cellula--size--x5\",value:\"2.5rem\"},sizeX6:{cssVar:\"--cellula--size--x6\",value:\"3rem\"},sizeX7:{cssVar:\"--cellula--size--x7\",value:\"3.5rem\"},sizeX8:{cssVar:\"--cellula--size--x8\",value:\"4rem\"},sizeX9:{cssVar:\"--cellula--size--x9\",value:\"4.5rem\"},elevationSkim:{cssVar:\"--cellula--elevation--skim\",value:\"0px 1px 2px rgba(47, 49, 56, 0.2)\"},elevationLifted:{cssVar:\"--cellula--elevation--lifted\",value:\"0px 2px 6px rgba(47, 49, 56, 0.18)\"},elevationFloating:{cssVar:\"--cellula--elevation--floating\",value:\"0px 4px 14px rgba(47, 49, 56, 0.16)\"},elevationFlying:{cssVar:\"--cellula--elevation--flying\",value:\"0px 6px 22px rgba(47, 49, 56, 0.14)\"},borderRadiusXsmall:{cssVar:\"--cellula--border-radius--x-small\",value:\"0.25rem\"},borderRadiusSmall:{cssVar:\"--cellula--border-radius--small\",value:\"0.5rem\"},borderRadiusMedium:{cssVar:\"--cellula--border-radius--medium\",value:\"0.75rem\"},borderRadiusLarge:{cssVar:\"--cellula--border-radius--large\",value:\"1rem\"},borderRadiusPill:{cssVar:\"--cellula--border-radius--pill\",value:\"9999rem\"},borderRadiusCircle:{cssVar:\"--cellula--border-radius--circle\",value:\"50%\"}},m={text:{display:{xLarge:`var(${E.textDisplayXlarge.cssVar})`,large:`var(${E.textDisplayLarge.cssVar})`,medium:`var(${E.textDisplayMedium.cssVar})`,small:`var(${E.textDisplaySmall.cssVar})`},heading:{xLarge:`var(${E.textHeadingXlarge.cssVar})`,large:`var(${E.textHeadingLarge.cssVar})`,medium:`var(${E.textHeadingMedium.cssVar})`,small:`var(${E.textHeadingSmall.cssVar})`,xSmall:`var(${E.textHeadingXsmall.cssVar})`},body:{largeRegular:`var(${E.textBodyLargeRegular.cssVar})`,largeSemiBold:`var(${E.textBodyLargeSemiBold.cssVar})`,regular:`var(${E.textBodyRegular.cssVar})`,semiBold:`var(${E.textBodySemiBold.cssVar})`,smallRegular:`var(${E.textBodySmallRegular.cssVar})`,smallSemiBold:`var(${E.textBodySmallSemiBold.cssVar})`},label:{xLargeRegular:`var(${E.textLabelXlargeRegular.cssVar})`,xLargeSemiBold:`var(${E.textLabelXlargeSemiBold.cssVar})`,largeRegular:`var(${E.textLabelLargeRegular.cssVar})`,largeSemiBold:`var(${E.textLabelLargeSemiBold.cssVar})`,regular:`var(${E.textLabelRegular.cssVar})`,semiBold:`var(${E.textLabelSemiBold.cssVar})`,smallRegular:`var(${E.textLabelSmallRegular.cssVar})`,smallSemiBold:`var(${E.textLabelSmallSemiBold.cssVar})`,xSmallRegular:`var(${E.textLabelXsmallRegular.cssVar})`,xSmallSemiBold:`var(${E.textLabelXsmallSemiBold.cssVar})`}},spacing:{x0_25:`var(${E.spacingX0_25.cssVar})`,x0_5:`var(${E.spacingX0_5.cssVar})`,x1:`var(${E.spacingX1.cssVar})`,x1_5:`var(${E.spacingX1_5.cssVar})`,x2:`var(${E.spacingX2.cssVar})`,x2_5:`var(${E.spacingX2_5.cssVar})`,x3:`var(${E.spacingX3.cssVar})`,x4:`var(${E.spacingX4.cssVar})`,x5:`var(${E.spacingX5.cssVar})`,x6:`var(${E.spacingX6.cssVar})`,x7:`var(${E.spacingX7.cssVar})`,x8:`var(${E.spacingX8.cssVar})`,x9:`var(${E.spacingX9.cssVar})`},size:{x0_25:`var(${E.sizeX0_25.cssVar})`,x0_5:`var(${E.sizeX0_5.cssVar})`,x1:`var(${E.sizeX1.cssVar})`,x1_5:`var(${E.sizeX1_5.cssVar})`,x2:`var(${E.sizeX2.cssVar})`,x2_5:`var(${E.sizeX2_5.cssVar})`,x3:`var(${E.sizeX3.cssVar})`,x4:`var(${E.sizeX4.cssVar})`,x5:`var(${E.sizeX5.cssVar})`,x6:`var(${E.sizeX6.cssVar})`,x7:`var(${E.sizeX7.cssVar})`,x8:`var(${E.sizeX8.cssVar})`,x9:`var(${E.sizeX9.cssVar})`},elevation:{skim:`var(${E.elevationSkim.cssVar})`,lifted:`var(${E.elevationLifted.cssVar})`,floating:`var(${E.elevationFloating.cssVar})`,flying:`var(${E.elevationFlying.cssVar})`},borderRadius:{xSmall:`var(${E.borderRadiusXsmall.cssVar})`,small:`var(${E.borderRadiusSmall.cssVar})`,medium:`var(${E.borderRadiusMedium.cssVar})`,large:`var(${E.borderRadiusLarge.cssVar})`,pill:`var(${E.borderRadiusPill.cssVar})`,circle:`var(${E.borderRadiusCircle.cssVar})`},breakpointQuery:{small:\"@media screen and (min-width: 600px)\",medium:\"@media screen and (min-width: 905px)\",large:\"@media screen and (min-width: 1440px)\"}};var J1=new I(\"badgeNumber\");var Ut={ellipse:e3.div`\n\t\t--font: inherit;\n\t\t--background: transparent;\n\t\t--textColor: #000;\n\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tfont-variant-numeric: proportional-nums;\n\t\tbox-sizing: border-box;\n\t\tuser-select: none;\n\t\tbackground: var(--background);\n\t\tcolor: var(--textColor);\n\t\tfont: var(--font);\n\t\tflex-shrink: 0;\n\t\tbox-shadow: 0 0 2px var(--background);\n\n\t\t// Variants\n\t\t&[data-variant='interactive'] {\n\t\t\t--background: ${J1.getValue(\"interactiveBackground\")};\n\t\t\t--textColor: ${J1.getValue(\"interactiveTextColor\")};\n\t\t}\n\t\t&[data-variant='brandDark'] {\n\t\t\t--background: ${J1.getValue(\"brandDarkBackground\")};\n\t\t\t--textColor: ${J1.getValue(\"brandDarkTextColor\")};\n\t\t}\n\t\t&[data-variant='brandLight'] {\n\t\t\t--background: ${J1.getValue(\"brandLightBackground\")};\n\t\t\t--textColor: ${J1.getValue(\"brandLightTextColor\")};\n\t\t}\n\t\t&[data-variant='neutralDark'] {\n\t\t\t--background: ${J1.getValue(\"neutralDarkBackground\")};\n\t\t\t--textColor: ${J1.getValue(\"neutralDarkTextColor\")};\n\t\t}\n\t\t&[data-variant='neutralLight'] {\n\t\t\t--background: ${J1.getValue(\"neutralLightBackground\")};\n\t\t\t--textColor: ${J1.getValue(\"neutralLightTextColor\")};\n\t\t}\n\n\t\t// Sizes\n\t\t&[data-size='small'] {\n\t\t\t--font: ${J1.getValue(\"smallText\")};\n\n\t\t\tmin-width: ${e2(16)};\n\t\t\tborder-radius: ${e2(16/2)};\n\t\t\theight: ${e2(16)};\n\t\t\tpadding: 0 ${e2(4)};\n\t\t}\n\t\t&[data-size='medium'] {\n\t\t\t--font: ${J1.getValue(\"mediumText\")};\n\n\t\t\tmin-width: ${e2(20)};\n\t\t\tborder-radius: ${e2(20/2)};\n\t\t\theight: ${e2(20)};\n\t\t\t// The 5.5 (rather than 6, which is in the design) is intentional,\n\t\t\t// it's nudging the text a bit so no 1px content shifting is occurring.\n\t\t\tpadding: 0 ${e2(5.5)};\n\t\t}\n\t`,plus:e3.span`\n\t\tposition: relative;\n\t\t// Optically centers the plus sign, without these it'll look \"off\".\n\t\ttop: -${e2(1)};\n\t\tleft: -${e2(1)};\n\t\twidth: ${e2(5)};\n\t`};function Gt({label:e,value:t,decorative:l=!1,variant:o=\"interactive\",size:n=\"medium\",clampMax:r=9,displayZero:a=!1},i){let c=L7(t,[0,r]);return c===0&&!a?null:jsxs(Ut.ellipse,{\"aria-label\":!l&&e?e.replace(\"{{value}}\",t.toString()):void 0,\"aria-hidden\":l?\"true\":void 0,\"data-variant\":o,\"data-size\":n,ref:i,children:[c,t>r?jsx(\"span\",{className:\"plus\",children:\"+\"}):null]})}var Xt=forwardRef(Gt);var u1=new I(\"badgeText\");var Qt={svg:e3.svg`\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: block;\n\t\tpointer-events: none;\n\t\tfill: currentColor;\n\t\tstroke: currentColor;\n\t\tflex-shrink: 0;\n\n\t\t${({$rotation:e,$mirror:t,$center:l})=>{let o=\"\";if(e!==0&&(o+=`rotate(${e}deg) `),t!==null){let n=t===\"Horizontal\"||t===!0||!1,r=t===\"Vertical\"||t===!0||!1;n&&(o+=\"scaleX(-1) \"),r&&(o+=\"scaleY(-1) \");}return l?(o+=\"translateY(50%)\",`\n\t\t\t\t\tposition: relative;\n\t\t\t\t\ttop: 50%;\n\t\t\t\t\ttransform: ${o.trim()};\n\t\t\t\t\ttransform-origin: 50% 100%;\n\t\t\t\t\tvertical-align: super;\n\t\t\t\t`):o!==\"\"?`transform: ${o.trim()};`:null}}\n\t`};function qt({children:e,viewBox:t,rotation:l,mirror:o,center:n,className:r,dangerouslySetInnerHTML:a,...i},c){return jsx(Qt.svg,{\"aria-hidden\":\"true\",\"data-testid\":\"svg\",xmlns:\"http://www.w3.org/2000/svg\",viewBox:t??\"0 0 512 512\",$rotation:l??0,$mirror:o??null,$center:n??!1,className:r,dangerouslySetInnerHTML:a,...i,ref:c,children:e})}var h3=forwardRef(qt);var V7={cross:{innerHTML:'<path stroke=\"none\" d=\"M8.70711 7.29289C8.31658 6.90237 7.68342 6.90237 7.29289 7.29289C6.90237 7.68342 6.90237 8.31658 7.29289 8.70711L14.5858 16L7.29289 23.2929C6.90237 23.6834 6.90237 24.3166 7.29289 24.7071C7.68342 25.0976 8.31658 25.0976 8.70711 24.7071L16 17.4142L23.2929 24.7071C23.6834 25.0976 24.3166 25.0976 24.7071 24.7071C25.0976 24.3166 25.0976 23.6834 24.7071 23.2929L17.4142 16L24.7071 8.70711C25.0976 8.31658 25.0976 7.68342 24.7071 7.29289C24.3166 6.90237 23.6834 6.90237 23.2929 7.29289L16 14.5858L8.70711 7.29289Z\"/>',viewBox:\"0 0 32 32\"},infoCircle:{innerHTML:'<path stroke=\"none\" d=\"M14 21H14.5V15H14C13.4477 15 13 14.5523 13 14C13 13.4477 13.4477 13 14 13H16.5C17.0523 13 17.5 13.4477 17.5 14V21H18C18.5523 21 19 21.4477 19 22C19 22.5523 18.5523 23 18 23H14C13.4477 23 13 22.5523 13 22C13 21.4477 13.4477 21 14 21Z\"/><path stroke=\"none\" d=\"M16 11C16.8284 11 17.5 10.3284 17.5 9.5C17.5 8.67157 16.8284 8 16 8C15.1716 8 14.5 8.67157 14.5 9.5C14.5 10.3284 15.1716 11 16 11Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 2C8.26801 2 2 8.26801 2 16C2 23.732 8.26801 30 16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2ZM4 16C4 9.37258 9.37258 4 16 4C22.6274 4 28 9.37258 28 16C28 22.6274 22.6274 28 16 28C9.37258 28 4 22.6274 4 16Z\"/>',viewBox:\"0 0 32 32\"},plus:{innerHTML:'<path stroke=\"none\" d=\"M17 6C17 5.44772 16.5523 5 16 5C15.4477 5 15 5.44772 15 6V15H6C5.44772 15 5 15.4477 5 16C5 16.5523 5.44772 17 6 17H15V26C15 26.5523 15.4477 27 16 27C16.5523 27 17 26.5523 17 26V17H26C26.5523 17 27 16.5523 27 16C27 15.4477 26.5523 15 26 15H17V6Z\"/>',viewBox:\"0 0 32 32\"},chevronUp:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M25.7071 19.7071C25.3166 20.0976 24.6834 20.0976 24.2929 19.7071L16 11.4142L7.70711 19.7071C7.31658 20.0976 6.68342 20.0976 6.29289 19.7071C5.90237 19.3166 5.90237 18.6834 6.29289 18.2929L15.2929 9.29289C15.4804 9.10536 15.7348 9 16 9C16.2652 9 16.5196 9.10536 16.7071 9.29289L25.7071 18.2929C26.0976 18.6834 26.0976 19.3166 25.7071 19.7071Z\"/>',viewBox:\"0 0 32 32\"},chevronRight:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.2929 25.7071C11.9024 25.3166 11.9024 24.6834 12.2929 24.2929L20.5858 16L12.2929 7.70711C11.9024 7.31658 11.9024 6.68342 12.2929 6.29289C12.6834 5.90237 13.3166 5.90237 13.7071 6.29289L22.7071 15.2929C22.8946 15.4804 23 15.7348 23 16C23 16.2652 22.8946 16.5196 22.7071 16.7071L13.7071 25.7071C13.3166 26.0976 12.6834 26.0976 12.2929 25.7071Z\"/>',viewBox:\"0 0 32 32\"},chevronDown:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6.29289 12.2929C6.68342 11.9024 7.31658 11.9024 7.70711 12.2929L16 20.5858L24.2929 12.2929C24.6834 11.9024 25.3166 11.9024 25.7071 12.2929C26.0976 12.6834 26.0976 13.3166 25.7071 13.7071L16.7071 22.7071C16.5196 22.8946 16.2652 23 16 23C15.7348 23 15.4804 22.8946 15.2929 22.7071L6.29289 13.7071C5.90237 13.3166 5.90237 12.6834 6.29289 12.2929Z \"/>',viewBox:\"0 0 32 32\"},chevronLeft:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M19.7071 6.29289C20.0976 6.68342 20.0976 7.31658 19.7071 7.70711L11.4142 16L19.7071 24.2929C20.0976 24.6834 20.0976 25.3166 19.7071 25.7071C19.3166 26.0976 18.6834 26.0976 18.2929 25.7071L9.29289 16.7071C9.10536 16.5196 9 16.2652 9 16C9 15.7348 9.10536 15.4804 9.29289 15.2929L18.2929 6.29289C18.6834 5.90237 19.3166 5.90237 19.7071 6.29289Z\"/>',viewBox:\"0 0 32 32\"},laboratoryFlask:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11 4H10C9.44772 4 9 3.55228 9 3C9 2.44772 9.44772 2 10 2H22C22.5523 2 23 2.44772 23 3C23 3.55228 22.5523 4 22 4L21 4V16.7297L26.1093 25.4884C27.2759 27.4884 25.8333 30 23.5179 30H8.48207C6.16671 30 4.72409 27.4884 5.89074 25.4884L11 16.7297V4ZM19 4H13V6H15C15.5523 6 16 6.44772 16 7C16 7.55228 15.5523 8 15 8H13V10H16C16.5523 10 17 10.4477 17 11C17 11.5523 16.5523 12 16 12H13V14H15C15.5523 14 16 14.4477 16 15C16 15.5523 15.5523 16 15 16H13V16.7297C13 17.0838 12.906 17.4315 12.7276 17.7374L11.4077 20H20.5923L19.2724 17.7374C19.094 17.4315 19 17.0838 19 16.7297V4ZM21.759 22H10.241L7.61829 26.4961C7.22941 27.1628 7.71028 28 8.48207 28H23.5179C24.2897 28 24.7706 27.1628 24.3817 26.4961L21.759 22Z\"/>',viewBox:\"0 0 32 32\"},video:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 7a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3v-2.882l5.553 2.776A1 1 0 0 0 30 21V11a1 1 0 0 0-1.447-.894L23 12.882V10a3 3 0 0 0-3-3H5Zm16 7.48V22a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V10a1 1 0 0 1 1-1h15a1 1 0 0 1 1 1v4.48Zm2 2.402v-1.764l5-2.5v6.764l-5-2.5Z\"/>',viewBox:\"0 0 32 32\"},videoFilled:{innerHTML:'<path stroke=\"none\" d=\"M5 7C3.34315 7 2 8.34315 2 10V22C2 23.6569 3.34315 25 5 25H19C20.6569 25 22 23.6569 22 22V10C22 8.34315 20.6569 7 19 7H5Z\" /><path stroke=\"none\" d=\"M24.4961 13.2106L28.4961 10.8773C29.1628 10.4884 30 10.9692 30 11.741V20.259C30 21.0308 29.1628 21.5116 28.4961 21.1227L24.4961 18.7894C24.1889 18.6102 24 18.2813 24 17.9256V14.0744C24 13.7187 24.1889 13.3898 24.4961 13.2106Z\" />',viewBox:\"0 0 32 32\"},videoCrossed:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.29289 5.70711C3.90237 5.31658 3.90237 4.68342 4.29289 4.29289C4.68342 3.90237 5.31658 3.90237 5.70711 4.29289L8.41756 7.00335C8.44475 7.00113 8.47224 7 8.5 7H20C21.6569 7 23 8.34315 23 10V12.882L28.5528 10.1056C28.8628 9.95058 29.2309 9.96714 29.5257 10.1494C29.8205 10.3316 30 10.6534 30 11V21C30 21.3466 29.8205 21.6684 29.5257 21.8507C29.2309 22.0329 28.8628 22.0494 28.5528 21.8944L23 19.118V21.5858L27.7071 26.2929C28.0976 26.6834 28.0976 27.3166 27.7071 27.7071C27.3166 28.0976 26.6834 28.0976 26.2929 27.7071L4.29289 5.70711ZM21 19.5858V17.5202C20.9997 17.5063 20.9997 17.4922 21 17.4782V14.5218C20.9997 14.5078 20.9997 14.4938 21 14.4798V10C21 9.44771 20.5523 9 20 9H10.4142L21 19.5858ZM23 16.882V15.118L28 12.618V19.382L23 16.882Z\" /><path stroke=\"none\" d=\"M4 8C4.55228 8 5 8.44772 5 9V22C5 22.5523 5.44772 23 6 23H19C19.5523 23 20 23.4477 20 24C20 24.5523 19.5523 25 19 25H6C4.34315 25 3 23.6569 3 22V9C3 8.44772 3.44772 8 4 8Z\" />',viewBox:\"0 0 32 32\"},microphoneFilled:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10 9C10 5.68629 12.6863 3 16 3C19.3137 3 22 5.68629 22 9V16C22 19.3137 19.3137 22 16 22C12.6863 22 10 19.3137 10 16V9Z\" /><path stroke=\"none\" d=\"M7 15C7.55228 15 8 15.4477 8 16C8 20.4183 11.5817 24 16 24C20.4183 24 24 20.4183 24 16C24 15.4477 24.4477 15 25 15C25.5523 15 26 15.4477 26 16C26 21.1853 22.0533 25.4489 17 25.9506V29C17 29.5523 16.5523 30 16 30C15.4477 30 15 29.5523 15 29V25.9506C9.94668 25.4489 6 21.1853 6 16C6 15.4477 6.44772 15 7 15Z\" />',viewBox:\"0 0 32 32\"},microphoneCrossed:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22 9C22 5.68629 19.3137 3 16 3C12.8211 3 10.2195 5.47225 10.0132 8.59898L5.70711 4.29289C5.31658 3.90237 4.68342 3.90237 4.29289 4.29289C3.90237 4.68342 3.90237 5.31658 4.29289 5.70711L26.2929 27.7071C26.6834 28.0976 27.3166 28.0976 27.7071 27.7071C28.0976 27.3166 28.0976 26.6834 27.7071 26.2929L23.7429 22.3287C25.1529 20.6053 26 18.4009 26 16C26 15.4477 25.5523 15 25 15C24.4477 15 24 15.4477 24 16C24 17.8491 23.3736 19.5506 22.3199 20.9057L20.8907 19.4764C21.5887 18.4959 22 17.2954 22 16V9ZM12 9V10.5858L19.4463 18.0321C19.7984 17.4365 20 16.7422 20 16V9C20 6.79086 18.2091 5 16 5C13.7909 5 12 6.79086 12 9Z\" /><path stroke=\"none\" d=\"M17 25.9506V29C17 29.5523 16.5523 30 16 30C15.4477 30 15 29.5523 15 29V25.9506C9.94667 25.4489 5.99999 21.1853 5.99999 16C5.99999 15.4477 6.44771 15 6.99999 15C7.55228 15 7.99999 15.4477 7.99999 16C7.99999 20.4183 11.5817 24 16 24C17.1469 24 18.2349 23.7593 19.2184 23.3265C19.7239 23.1041 20.314 23.3336 20.5364 23.8391C20.7589 24.3446 20.5294 24.9348 20.0238 25.1572C19.0822 25.5715 18.0651 25.8447 17 25.9506Z\" /><path stroke=\"none\" d=\"M9.99998 15.5C9.99998 14.9477 10.4477 14.5 11 14.5C11.5523 14.5 12 14.9477 12 15.5V16C12 18.2091 13.7908 20 16 20C16.1357 20 16.2695 19.9933 16.4012 19.9802C16.9508 19.9256 17.4405 20.3269 17.4951 20.8765C17.5497 21.4261 17.1484 21.9159 16.5988 21.9704C16.4016 21.99 16.2018 22 16 22C12.6863 22 9.99998 19.3137 9.99998 16V15.5Z\" />',viewBox:\"0 0 32 32\"},microphone:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10 9C10 5.68629 12.6863 3 16 3C19.3137 3 22 5.68629 22 9V16C22 19.3137 19.3137 22 16 22C12.6863 22 10 19.3137 10 16V9ZM16 5C13.7909 5 12 6.79086 12 9V16C12 18.2091 13.7909 20 16 20C18.2091 20 20 18.2091 20 16V9C20 6.79086 18.2091 5 16 5Z\" /><path stroke=\"none\" d=\"M7 15C7.55228 15 8 15.4477 8 16C8 20.4183 11.5817 24 16 24C20.4183 24 24 20.4183 24 16C24 15.4477 24.4477 15 25 15C25.5523 15 26 15.4477 26 16C26 21.1853 22.0533 25.4489 17 25.9506V29C17 29.5523 16.5523 30 16 30C15.4477 30 15 29.5523 15 29V25.9506C9.94668 25.4489 6 21.1853 6 16C6 15.4477 6.44772 15 7 15Z\" />',viewBox:\"0 0 32 32\"},speaker:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M19.971 5.05123C21.3041 4.2514 23 5.21162 23 6.76621V25.2338C23 26.7884 21.3041 27.7486 19.971 26.9488L11.9605 22.1425C11.8051 22.0493 11.6273 22 11.446 22H7C5.34315 22 4 20.6569 4 19V13C4 11.3432 5.34315 10 7 10H11.446C11.6273 10 11.8051 9.95076 11.9605 9.85751L19.971 5.05123ZM13 11.5662L13 20.4338L21 25.2338V6.76621L13 11.5662ZM11 20L11 12H7C6.44772 12 6 12.4477 6 13V19C6 19.5523 6.44772 20 7 20H11Z\" /><path stroke=\"none\" d=\"M25.4314 11.1774C25.8857 10.8634 26.5086 10.9771 26.8226 11.4314C27.2085 11.9897 27.5035 12.6366 27.7015 13.3297C27.8997 14.0233 28 14.7603 28 15.5C28 16.2397 27.8997 16.9767 27.7015 17.6704C27.5035 18.3634 27.2085 19.0104 26.8226 19.5687C26.5086 20.023 25.8857 20.1367 25.4314 19.8226C24.9771 19.5086 24.8634 18.8857 25.1774 18.4314C25.4252 18.0729 25.6332 17.6293 25.7785 17.121C25.9235 16.6133 26 16.0617 26 15.5C26 14.9384 25.9235 14.3868 25.7785 13.8791C25.6332 13.3708 25.4252 12.9272 25.1774 12.5687C24.8634 12.1143 24.9771 11.4915 25.4314 11.1774Z\" />',viewBox:\"0 0 32 32\"},speakerCrossed:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.29289 5.70711C3.90237 5.31658 3.90237 4.68342 4.29289 4.29289C4.68342 3.90237 5.31658 3.90237 5.70711 4.29289L24.7017 23.2875C24.7053 23.2911 24.7089 23.2946 24.7124 23.2982L27.7071 26.2929C28.0976 26.6834 28.0976 27.3166 27.7071 27.7071C27.3166 28.0976 26.6834 28.0976 26.2929 27.7071L24.7657 26.1799C24.2549 27.1315 23.004 27.5685 21.971 26.9488L13.9605 22.1425C13.8051 22.0492 13.6273 22 13.446 22H9C7.34315 22 6 20.6568 6 19V13C6 11.475 7.1378 10.2158 8.61076 10.025L4.29289 5.70711ZM10.5824 11.9966C10.5552 11.9988 10.5277 12 10.5 12H9C8.44772 12 8 12.4477 8 13V19C8 19.5522 8.44772 20 9 20H13V14.4142L10.5824 11.9966ZM15 16.4142V20.4338L23 25.2338V24.4142L15 16.4142Z\" /><path stroke=\"none\" d=\"M21.971 5.05116C23.3041 4.25134 25 5.21156 25 6.76615V19.5C25 20.0522 24.5523 20.5 24 20.5C23.4477 20.5 23 20.0522 23 19.5L23 6.76615L15.3478 11.3575C14.8742 11.6416 14.26 11.488 13.9758 11.0145C13.6917 10.5409 13.8453 9.92661 14.3188 9.64247L21.971 5.05116Z\" />',viewBox:\"0 0 32 32\"},speakerViewFilled:{innerHTML:'<path stroke=\"none\" d=\"M5 4C4.44772 4 4 4.44772 4 5V9C4 9.55228 4.44772 10 5 10H9C9.55228 10 10 9.55228 10 9V5C10 4.44772 9.55228 4 9 4H5Z\" /><path d=\"M14 4C13.4477 4 13 4.44772 13 5V9C13 9.55228 13.4477 10 14 10H18C18.5523 10 19 9.55228 19 9V5C19 4.44772 18.5523 4 18 4H14Z\" /><path d=\"M22 5C22 4.44772 22.4477 4 23 4H27C27.5523 4 28 4.44772 28 5V9C28 9.55228 27.5523 10 27 10H23C22.4477 10 22 9.55228 22 9V5Z\" /><path d=\"M5 13C4.44772 13 4 13.4477 4 14V27C4 27.5523 4.44772 28 5 28H27C27.5523 28 28 27.5523 28 27V14C28 13.4477 27.5523 13 27 13H5Z\" />',viewBox:\"0 0 32 32\"},userFilled:{innerHTML:'<path stroke=\"none\" d=\"M22 9C22 12.3137 19.3137 15 16 15C12.6863 15 10 12.3137 10 9C10 5.68629 12.6863 3 16 3C19.3137 3 22 5.68629 22 9Z\"/><path d=\"M4 26C4 22.0724 6.34285 18.7246 10.9231 17.44C13.0349 16.8477 19.0053 16.859 21.0769 17.44C25.6572 18.7246 28 22.0724 28 26V27C28 28.1046 27.1046 29 26 29H6C4.89543 29 4 28.1046 4 27V26Z\"/>',viewBox:\"0 0 32 32\"},warningFilled:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M29.3867 25.0423L17.7558 3.71896C16.9978 2.32923 15.0023 2.32924 14.2442 3.71896L2.61331 25.0423C1.88635 26.3751 2.85098 28 4.3691 28H27.6309C29.149 28 30.1137 26.3751 29.3867 25.0423ZM16 9.75C16.6904 9.75 17.25 10.3096 17.25 11V17C17.25 17.6904 16.6904 18.25 16 18.25C15.3096 18.25 14.75 17.6904 14.75 17V11C14.75 10.3096 15.3096 9.75 16 9.75ZM14.5 22.5C14.5 21.6716 15.1716 21 16 21C16.8284 21 17.5 21.6716 17.5 22.5C17.5 23.3284 16.8284 24 16 24C15.1716 24 14.5 23.3284 14.5 22.5Z\"/>',viewBox:\"0 0 32 32\"},gridViewFilled:{innerHTML:'<path stroke=\"none\" d=\"M4 5C4 4.44772 4.44772 4 5 4H9C9.55228 4 10 4.44772 10 5V9C10 9.55228 9.55228 10 9 10H5C4.44772 10 4 9.55228 4 9V5Z\"/><path stroke=\"none\" d=\"M13 5C13 4.44772 13.4477 4 14 4H18C18.5523 4 19 4.44772 19 5V9C19 9.55228 18.5523 10 18 10H14C13.4477 10 13 9.55228 13 9V5Z\"/><path stroke=\"none\" d=\"M23 4C22.4477 4 22 4.44772 22 5V9C22 9.55228 22.4477 10 23 10H27C27.5523 10 28 9.55228 28 9V5C28 4.44772 27.5523 4 27 4H23Z\"/><path stroke=\"none\" d=\"M13 14C13 13.4477 13.4477 13 14 13H18C18.5523 13 19 13.4477 19 14V18C19 18.5523 18.5523 19 18 19H14C13.4477 19 13 18.5523 13 18V14Z\"/><path stroke=\"none\" d=\"M5 13C4.44772 13 4 13.4477 4 14V18C4 18.5523 4.44772 19 5 19H9C9.55228 19 10 18.5523 10 18V14C10 13.4477 9.55228 13 9 13H5Z\"/><path stroke=\"none\" d=\"M13 23C13 22.4477 13.4477 22 14 22H18C18.5523 22 19 22.4477 19 23V27C19 27.5523 18.5523 28 18 28H14C13.4477 28 13 27.5523 13 27V23Z\"/><path stroke=\"none\" d=\"M23 13C22.4477 13 22 13.4477 22 14V18C22 18.5523 22.4477 19 23 19H27C27.5523 19 28 18.5523 28 18V14C28 13.4477 27.5523 13 27 13H23Z\"/><path stroke=\"none\" d=\"M4 23C4 22.4477 4.44772 22 5 22H9C9.55228 22 10 22.4477 10 23V27C10 27.5523 9.55228 28 9 28H5C4.44772 28 4 27.5523 4 27V23Z\"/><path stroke=\"none\" d=\"M23 22C22.4477 22 22 22.4477 22 23V27C22 27.5523 22.4477 28 23 28H27C27.5523 28 28 27.5523 28 27V23C28 22.4477 27.5523 22 27 22H23Z\"/>',viewBox:\"0 0 32 32\"},calendarClockFilled:{innerHTML:'<path stroke=\"none\" d=\"M23.5 18.5C23.5 17.9477 23.0523 17.5 22.5 17.5C21.9477 17.5 21.5 17.9477 21.5 18.5V21.5C21.5 21.7652 21.6054 22.0196 21.7929 22.2071L23.2929 23.7071C23.6834 24.0976 24.3166 24.0976 24.7071 23.7071C25.0976 23.3166 25.0976 22.6834 24.7071 22.2929L23.5 21.0858V18.5Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10 3C10.5523 3 11 3.44772 11 4V5H21V4C21 3.44772 21.4477 3 22 3C22.5523 3 23 3.44772 23 4V5H27C28.6569 5 30 6.34315 30 8V21.5C30 25.6421 26.6421 29 22.5 29C21.1363 29 19.8577 28.6361 18.7558 28H5C3.34315 28 2 26.6569 2 25V8C2 6.34315 3.34315 5 5 5H9V4C9 3.44772 9.44772 3 10 3ZM4 11C4 10.4477 4.44772 10 5 10L27 10C27.5523 10 28 10.4477 28 11C28 11.5523 27.5523 12 27 12L5 12C4.44772 12 4 11.5523 4 11ZM8.5 15C7.67157 15 7 15.6716 7 16.5C7 17.3284 7.67157 18 8.5 18C9.32843 18 10 17.3284 10 16.5C10 15.6716 9.32843 15 8.5 15ZM12 16.5C12 15.6716 12.6716 15 13.5 15C14.3284 15 15 15.6716 15 16.5C15 17.3284 14.3284 18 13.5 18C12.6716 18 12 17.3284 12 16.5ZM8.5 20C7.67157 20 7 20.6716 7 21.5C7 22.3284 7.67157 23 8.5 23C9.32843 23 10 22.3284 10 21.5C10 20.6716 9.32843 20 8.5 20ZM22.5 16C19.4624 16 17 18.4624 17 21.5C17 24.5376 19.4624 27 22.5 27C25.5376 27 28 24.5376 28 21.5C28 18.4624 25.5376 16 22.5 16Z\"/>',viewBox:\"0 0 32 32\"},calendarFilled:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11 4C11 3.44772 10.5523 3 10 3C9.44772 3 9 3.44772 9 4V5H5C3.34315 5 2 6.34315 2 8V25C2 26.6569 3.34315 28 5 28H27C28.6569 28 30 26.6569 30 25V8C30 6.34315 28.6569 5 27 5H23V4C23 3.44772 22.5523 3 22 3C21.4477 3 21 3.44772 21 4V5H11V4ZM5 10C4.44772 10 4 10.4477 4 11C4 11.5523 4.44772 12 5 12L27 12C27.5523 12 28 11.5523 28 11C28 10.4477 27.5523 10 27 10L5 10ZM7 16.5C7 15.6716 7.67157 15 8.5 15C9.32843 15 10 15.6716 10 16.5C10 17.3284 9.32843 18 8.5 18C7.67157 18 7 17.3284 7 16.5ZM13.5 15C12.6716 15 12 15.6716 12 16.5C12 17.3284 12.6716 18 13.5 18C14.3284 18 15 17.3284 15 16.5C15 15.6716 14.3284 15 13.5 15ZM17 16.5C17 15.6716 17.6716 15 18.5 15C19.3284 15 20 15.6716 20 16.5C20 17.3284 19.3284 18 18.5 18C17.6716 18 17 17.3284 17 16.5ZM23.5 15C22.6716 15 22 15.6716 22 16.5C22 17.3284 22.6716 18 23.5 18C24.3284 18 25 17.3284 25 16.5C25 15.6716 24.3284 15 23.5 15ZM7 21.5C7 20.6716 7.67157 20 8.5 20C9.32843 20 10 20.6716 10 21.5C10 22.3284 9.32843 23 8.5 23C7.67157 23 7 22.3284 7 21.5ZM18.5 20C17.6716 20 17 20.6716 17 21.5C17 22.3284 17.6716 23 18.5 23C19.3284 23 20 22.3284 20 21.5C20 20.6716 19.3284 20 18.5 20ZM22 21.5C22 20.6716 22.6716 20 23.5 20C24.3284 20 25 20.6716 25 21.5C25 22.3284 24.3284 23 23.5 23C22.6716 23 22 22.3284 22 21.5ZM13.5 20C12.6716 20 12 20.6716 12 21.5C12 22.3284 12.6716 23 13.5 23C14.3284 23 15 22.3284 15 21.5C15 20.6716 14.3284 20 13.5 20Z\"/>',viewBox:\"0 0 32 32\"},envelopeFilled:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 9C2 7.34315 3.34315 6 5 6H27C28.6569 6 30 7.34315 30 9V23C30 24.6569 28.6569 26 27 26H5C3.34315 26 2 24.6569 2 23V9ZM5.58818 8.19127C5.14153 7.86644 4.51611 7.96519 4.19127 8.41184C3.86644 8.85849 3.96519 9.48391 4.41184 9.80875L9.92112 13.8155L4.16793 22.4453C3.86158 22.9048 3.98576 23.5257 4.44528 23.832C4.90481 24.1384 5.52568 24.0142 5.83203 23.5547L11.5399 14.9928L15.4118 17.8087C15.7625 18.0638 16.2375 18.0638 16.5882 17.8087L20.4601 14.9928L26.168 23.5547C26.4743 24.0142 27.0952 24.1384 27.5547 23.832C28.0142 23.5257 28.1384 22.9048 27.8321 22.4453L22.0789 13.8155L27.5882 9.80875C28.0348 9.48391 28.1336 8.85849 27.8087 8.41184C27.4839 7.96519 26.8585 7.86644 26.4118 8.19127L16 15.7635L5.58818 8.19127Z\" />',viewBox:\"0 0 32 32\"},waitingRoomFilled:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 2C11.9959 2 8.75 5.24594 8.75 9.25C8.75 13.2541 11.9959 16.5 16 16.5C20.0041 16.5 23.25 13.2541 23.25 9.25C23.25 5.24594 20.0041 2 16 2ZM16 4.5C16.5523 4.5 17 4.94772 17 5.5V9.01937L19.1247 10.7191C19.556 11.0641 19.6259 11.6934 19.2809 12.1247C18.9359 12.556 18.3066 12.6259 17.8753 12.2809L15.3753 10.2809C15.1381 10.0911 15 9.80378 15 9.5V5.5C15 4.94772 15.4477 4.5 16 4.5Z\"/><path stroke=\"none\" d=\"M5 21.75C5 19.1266 7.12665 17 9.75 17C12.3734 17 14.5 19.1266 14.5 21.75V25C15.0523 25 15.5 25.4477 15.5 26C15.5 26.5523 15.0523 27 14.5 27V29C14.5 29.5523 14.0523 30 13.5 30C12.9477 30 12.5 29.5523 12.5 29V27H7V29C7 29.5523 6.55228 30 6 30C5.44772 30 5 29.5523 5 29V27C4.44772 27 4 26.5523 4 26C4 25.4477 4.44772 25 5 25V21.75Z\"/><path stroke=\"none\" d=\"M22.25 17C19.6266 17 17.5 19.1266 17.5 21.75V25C16.9477 25 16.5 25.4477 16.5 26C16.5 26.5523 16.9477 27 17.5 27V29C17.5 29.5523 17.9477 30 18.5 30C19.0523 30 19.5 29.5523 19.5 29V27H25V29C25 29.5523 25.4477 30 26 30C26.5523 30 27 29.5523 27 29V27C27.5523 27 28 26.5523 28 26C28 25.4477 27.5523 25 27 25V21.75C27 19.1266 24.8734 17 22.25 17Z\"/>',viewBox:\"0 0 32 32\"},cog:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 11C13.2386 11 11 13.2386 11 16C11 18.7614 13.2386 21 16 21C18.7614 21 21 18.7614 21 16C21 13.2386 18.7614 11 16 11ZM13 16C13 14.3431 14.3431 13 16 13C17.6569 13 19 14.3431 19 16C19 17.6569 17.6569 19 16 19C14.3431 19 13 17.6569 13 16Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14.1429 2C13.6664 2 13.2561 2.33616 13.1624 2.80332L12.661 5.30285C12.0111 5.50389 11.3811 5.76434 10.7789 6.08089L8.65188 4.66536C8.25529 4.40143 7.72759 4.4539 7.39074 4.79076L4.77219 7.40933C4.43534 7.74618 4.38287 8.27388 4.6468 8.67046L6.0623 10.7975C5.74625 11.3987 5.48613 12.0276 5.28522 12.6764L2.80786 13.1615C2.33856 13.2534 2 13.6647 2 14.1429V17.8571C2 18.3336 2.33616 18.7439 2.80332 18.8376L5.30282 19.339C5.50387 19.9889 5.76431 20.6189 6.08087 21.2211L4.66535 23.3481C4.40144 23.7447 4.45391 24.2724 4.79075 24.6093L7.40933 27.2278C7.74618 27.5647 8.27388 27.6172 8.67046 27.3532L10.7975 25.9377C11.3987 26.2537 12.0277 26.5139 12.6765 26.7148L13.1615 29.1921C13.2534 29.6614 13.6646 30 14.1429 30H17.8571C18.3336 30 18.7439 29.6638 18.8376 29.1967L19.339 26.6971C19.9889 26.4961 20.6189 26.2357 21.2211 25.9191L23.3481 27.3346C23.7447 27.5986 24.2724 27.5461 24.6093 27.2092L27.2278 24.5907C27.5647 24.2538 27.6171 23.7261 27.3532 23.3295L25.9377 21.2025C26.2537 20.6013 26.5139 19.9724 26.7148 19.3236L29.1921 18.8385C29.6614 18.7466 30 18.3353 30 17.8571V14.1429C30 13.6664 29.6638 13.2561 29.1967 13.1624L26.6972 12.661C26.4961 12.0111 26.2357 11.3811 25.9191 10.7789L27.3346 8.65186C27.5986 8.25528 27.5461 7.72759 27.2092 7.39074L24.5907 4.77216C24.2538 4.43531 23.7261 4.38285 23.3295 4.64677L21.2025 6.0623C20.6013 5.74625 19.9723 5.48613 19.3235 5.28522L18.8385 2.80787C18.7466 2.33857 18.3354 2 17.8571 2H14.1429ZM14.5012 6.29814L14.9622 4H17.0339L17.4793 6.275C17.5541 6.65677 17.8434 6.96054 18.2211 7.05374C19.1049 7.27182 19.9508 7.62146 20.7306 8.09098C21.0619 8.29045 21.4785 8.28103 21.8004 8.06678L23.7557 6.76559L25.2158 8.22575L23.9146 10.181C23.7004 10.5029 23.691 10.9195 23.8905 11.2508C24.36 12.0306 24.7096 12.8766 24.9277 13.7603C25.0205 14.1364 25.3221 14.425 25.7019 14.5012L28 14.9622V17.0339L25.725 17.4794C25.3432 17.5541 25.0395 17.8435 24.9463 18.2212C24.7282 19.1049 24.3785 19.9508 23.909 20.7306C23.7095 21.0619 23.719 21.4785 23.9332 21.8005L25.2344 23.7557L23.7743 25.2158L21.819 23.9146C21.4971 23.7004 21.0805 23.691 20.7492 23.8904C19.9694 24.3599 19.1235 24.7096 18.2397 24.9277C17.8637 25.0205 17.575 25.3221 17.4988 25.7019L17.0378 28H14.9661L14.5207 25.725C14.4459 25.3432 14.1566 25.0395 13.7789 24.9463C12.8951 24.7282 12.0492 24.3785 11.2694 23.909C10.9381 23.7095 10.5215 23.719 10.1995 23.9332L8.24433 25.2344L6.78417 23.7742L8.08535 21.819C8.29959 21.4971 8.30901 21.0805 8.10954 20.7492C7.64002 19.9694 7.29038 19.1234 7.0723 18.2397C6.9795 17.8636 6.67788 17.575 6.2981 17.4988L4 17.0378V14.9661L6.27501 14.5206C6.65677 14.4459 6.96054 14.1565 7.05374 13.7788C7.27182 12.8951 7.62146 12.0492 8.09098 11.2694C8.29045 10.9381 8.28103 10.5215 8.06678 10.1995L6.76561 8.24433L8.22575 6.78418L10.181 8.08537C10.5029 8.29962 10.9195 8.30904 11.2508 8.10957C12.0306 7.64005 12.8765 7.2904 13.7603 7.07233C14.1363 6.97953 14.425 6.67791 14.5012 6.29814Z\" />',viewBox:\"0 0 32 32\"},cogFilled:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13.1624 2.80332C13.2561 2.33616 13.6664 2 14.1429 2H17.8571C18.3354 2 18.7466 2.33857 18.8385 2.80787L19.3235 5.28522C19.9723 5.48613 20.6013 5.74625 21.2025 6.0623L23.3295 4.64677C23.7261 4.38285 24.2538 4.43531 24.5907 4.77216L27.2092 7.39074C27.5461 7.72759 27.5986 8.25528 27.3346 8.65186L25.9191 10.7789C26.2357 11.3811 26.4961 12.0111 26.6972 12.661L29.1967 13.1624C29.6638 13.2561 30 13.6664 30 14.1429V17.8571C30 18.3353 29.6614 18.7466 29.1921 18.8385L26.7148 19.3236C26.5139 19.9724 26.2537 20.6013 25.9377 21.2025L27.3532 23.3295C27.6171 23.7261 27.5647 24.2538 27.2278 24.5907L24.6093 27.2092C24.2724 27.5461 23.7447 27.5986 23.3481 27.3346L21.2211 25.9191C20.6189 26.2357 19.9889 26.4961 19.339 26.6971L18.8376 29.1967C18.7439 29.6638 18.3336 30 17.8571 30H14.1429C13.6646 30 13.2534 29.6614 13.1615 29.1921L12.6765 26.7148C12.0277 26.5139 11.3987 26.2537 10.7975 25.9377L8.67046 27.3532C8.27388 27.6172 7.74618 27.5647 7.40933 27.2278L4.79075 24.6093C4.45391 24.2724 4.40144 23.7447 4.66535 23.3481L6.08087 21.2211C5.76431 20.6189 5.50387 19.9889 5.30282 19.339L2.80332 18.8376C2.33616 18.7439 2 18.3336 2 17.8571V14.1429C2 13.6647 2.33856 13.2534 2.80786 13.1615L5.28522 12.6764C5.48613 12.0276 5.74625 11.3987 6.0623 10.7975L4.6468 8.67046C4.38287 8.27388 4.43534 7.74618 4.77219 7.40933L7.39074 4.79076C7.72759 4.4539 8.25529 4.40143 8.65188 4.66536L10.7789 6.08089C11.3811 5.76434 12.0111 5.50389 12.661 5.30285L13.1624 2.80332ZM21 16C21 18.7614 18.7614 21 16 21C13.2386 21 11 18.7614 11 16C11 13.2386 13.2386 11 16 11C18.7614 11 21 13.2386 21 16Z\" />',viewBox:\"0 0 32 32\"},notesBoardPencil:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10 2a1 1 0 0 0-1 1v1H7a3 3 0 0 0-3 3v20a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-4.5a1 1 0 1 0-2 0V27a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h2v1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V6h2a1 1 0 0 1 1 1v.5a1 1 0 1 0 2 0V7a3 3 0 0 0-3-3h-2V3a1 1 0 0 0-1-1h-8Zm7 2v2h-6V4h6Z M26.752 8.298a1 1 0 0 0-1.418-.006l-10.54 10.5c-.129.128-.22.289-.264.465l-1 4a1 1 0 0 0 1.213 1.213l4-1a.999.999 0 0 0 .464-.263l10.5-10.5a1 1 0 0 0 .005-1.41l-2.96-3ZM15.874 22.126l.529-2.114 9.63-9.594 1.557 1.577-9.601 9.602-2.115.529Z M8 15a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1ZM9 10a1 1 0 1 0 0 2h9a1 1 0 1 0 0-2H9Z\"/>',viewBox:\"0 0 32 32\"},notesBoardMagnifying:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7 6C6.44772 6 6 6.44772 6 7V27C6 27.5523 6.44771 28 7 28H21C21.5523 28 22 27.5523 22 27V25C22 24.4477 22.4477 24 23 24C23.5523 24 24 24.4477 24 25V27C24 28.6569 22.6569 30 21 30H7C5.34315 30 4 28.6569 4 27V7C4 5.34315 5.34315 4 7 4H10C10.5523 4 11 4.44772 11 5C11 5.55228 10.5523 6 10 6H7ZM17 5C17 4.44772 17.4477 4 18 4H21C22.6569 4 24 5.34315 24 7V9C24 9.55228 23.5523 10 23 10C22.4477 10 22 9.55228 22 9V7C22 6.44772 21.5523 6 21 6H18C17.4477 6 17 5.55228 17 5Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 20C8 19.4477 8.44772 19 9 19H12C12.5523 19 13 19.4477 13 20C13 20.5523 12.5523 21 12 21H9C8.44772 21 8 20.5523 8 20Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 16C8 15.4477 8.44772 15 9 15H11C11.5523 15 12 15.4477 12 16C12 16.5523 11.5523 17 11 17H9C8.44772 17 8 16.5523 8 16Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 12C8 11.4477 8.44772 11 9 11H12C12.5523 11 13 11.4477 13 12C13 12.5523 12.5523 13 12 13H9C8.44772 13 8 12.5523 8 12Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 24C8 23.4477 8.44772 23 9 23H18C18.5523 23 19 23.4477 19 24C19 24.5523 18.5523 25 18 25H9C8.44772 25 8 24.5523 8 24Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M19 12C16.7909 12 15 13.7909 15 16C15 18.2091 16.7909 20 19 20C21.2091 20 23 18.2091 23 16C23 13.7909 21.2091 12 19 12ZM13 16C13 12.6863 15.6863 10 19 10C22.3137 10 25 12.6863 25 16C25 19.3137 22.3137 22 19 22C15.6863 22 13 19.3137 13 16Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21.9393 18.9393C22.5251 18.3536 23.4749 18.3536 24.0607 18.9393L27.5607 22.4393C28.1464 23.0251 28.1464 23.9749 27.5607 24.5607C26.9749 25.1464 26.0251 25.1464 25.4393 24.5607L21.9393 21.0607C21.3536 20.4749 21.3536 19.5251 21.9393 18.9393Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9 3C9 2.44772 9.44772 2 10 2H18C18.5523 2 19 2.44772 19 3V7C19 7.55228 18.5523 8 18 8H10C9.44772 8 9 7.55228 9 7V3ZM11 4V6H17V4H11Z\"/>',viewBox:\"0 0 32 32\"},pinMark:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm-3 5a3 3 0 1 1 6 0 3 3 0 0 1-6 0Z M16 2c-2.738 0-5.202.833-7.199 2.785C6.836 6.706 5.5 9.756 5.5 12.5c0 4.975 2.536 9.32 4.97 12.357a33.252 33.252 0 0 0 3.368 3.606 28.424 28.424 0 0 0 1.435 1.238 8.5 8.5 0 0 0 .087.068l.024.02.008.005.002.001c0 .001.001.001.606-.795l-.605.796a1 1 0 0 0 1.21 0L16 29l.605.796h.001l.002-.002.008-.006.024-.019a18.012 18.012 0 0 0 .407-.328c.271-.225.656-.554 1.115-.978a33.263 33.263 0 0 0 3.368-3.606c2.434-3.037 4.97-7.382 4.97-12.357 0-2.744-1.335-5.794-3.301-7.715C21.202 2.833 18.739 2 16 2Zm.806 24.993a27.55 27.55 0 0 1-.806.716 31.255 31.255 0 0 1-3.97-4.102C9.714 20.716 7.5 16.81 7.5 12.5c0-2.182 1.101-4.723 2.699-6.285C11.765 4.685 13.699 4 16 4c2.3 0 4.235.684 5.801 2.215C23.399 7.777 24.5 10.318 24.5 12.5c0 4.31-2.214 8.216-4.53 11.107a31.255 31.255 0 0 1-3.164 3.386Z\"/>',viewBox:\"0 0 32 32\"},speechBubbleLines:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 11a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1ZM9 14a1 1 0 1 0 0 2h10a1 1 0 1 0 0-2H9Z M3 8a5 5 0 0 1 5-5h16a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5h-8.06l-5.203 5.676A1 1 0 0 1 9 28v-5H8a5 5 0 0 1-5-5V8Zm5-3a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h2a1 1 0 0 1 1 1v3.43l3.763-4.106A1 1 0 0 1 15.5 21H24a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3H8Z\"/>',viewBox:\"0 0 32 32\"},group:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16.5 5.4a3 3 0 0 1 3.64 4.701 1 1 0 0 0 1.428 1.402A5 5 0 0 0 15.5 3.67a1 1 0 1 0 1 1.732Z M14 6a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm-3 5a3 3 0 1 1 6 0 3 3 0 0 1-6 0ZM18.078 17.367c-.921-.258-2.55-.366-4.066-.367-1.516-.001-3.153.105-4.09.367C6.076 18.446 4 21.335 4 24.75V26a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-1.25c0-3.415-2.076-6.304-5.922-7.383Zm-7.616 1.926c.648-.182 2.041-.294 3.549-.293 1.507.001 2.894.115 3.527.293C20.562 20.14 22 22.273 22 24.75V26a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-1.25c0-2.477 1.438-4.609 4.462-5.457Z M19.003 14.996a1 1 0 0 1 1.07-.924c.758.056 1.481.148 2.005.295C25.924 15.446 28 18.335 28 21.75V25a1 1 0 1 1-2 0v-3.25c0-2.477-1.438-4.609-4.462-5.457-.325-.091-.886-.173-1.612-.226a1 1 0 0 1-.923-1.071Z\"/>',viewBox:\"0 0 32 32\"},calendarX:{innerHTML:'<path stroke=\"none\" d=\"M11 4a1 1 0 1 0-2 0v3a1 1 0 1 0 2 0V4ZM13 5a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2h-6ZM22 3a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0V4a1 1 0 0 1 1-1Z M4 8v2h24V8a1 1 0 0 0-1-1h-2a1 1 0 1 1 0-2h2a3 3 0 0 1 3 3v10a1 1 0 1 1-2 0v-6H4v13a1 1 0 0 0 1 1h14a1 1 0 1 1 0 2H5a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h2a1 1 0 0 1 0 2H5a1 1 0 0 0-1 1Z M8.5 15a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM12 16.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM18.5 15a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM22 16.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM8.5 20a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM17 21.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM13.5 20a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM27.414 25l2.293 2.293a1 1 0 0 1-1.414 1.414L26 26.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L24.586 25l-2.293-2.293a1 1 0 0 1 1.414-1.414L26 23.586l2.293-2.293a1 1 0 0 1 1.414 1.414L27.414 25Z\"/>',viewBox:\"0 0 32 32\"},calendar:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10 3a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0V4a1 1 0 0 1 1-1ZM12 6a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2h-6a1 1 0 0 1-1-1ZM23 4a1 1 0 1 0-2 0v3a1 1 0 1 0 2 0V4ZM7 16.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM13.5 15a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM17 16.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM23.5 15a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM7 21.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM18.5 20a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM22 21.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM13.5 20a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z M4 10V8a1 1 0 0 1 1-1h2a1 1 0 0 0 0-2H5a3 3 0 0 0-3 3v17a3 3 0 0 0 3 3h22a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3h-2a1 1 0 1 0 0 2h2a1 1 0 0 1 1 1v2H4Zm0 2v13a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1V12H4Z\"/>',viewBox:\"0 0 32 32\"},clock:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 8a1 1 0 0 1 1 1v6.586l3.886 3.885a1 1 0 0 1-1.415 1.415l-4.174-4.175a1.003 1.003 0 0 1-.297-.716 M15 15.995V9a1 1 0 0 1 1-1 M2 16C2 8.268 8.268 2 16 2s14 6.268 14 14-6.268 14-14 14S2 23.732 2 16ZM16 4C9.373 4 4 9.373 4 16s5.373 12 12 12 12-5.373 12-12S22.627 4 16 4Z\"/>',viewBox:\"0 0 32 32\"},house:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14.777 3.181a2 2 0 0 1 2.446 0l10 7.728A2 2 0 0 1 28 12.49V26a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-7h-4v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V12.491a2 2 0 0 1 .777-1.582l10-7.728ZM26 12.491 16 4.764 6 12.49V26h6v-7a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v7h6V12.491Z\"/>',viewBox:\"0 0 32 32\"},houseFilled:{innerHTML:'<path stroke=\"none\" d=\"M15.4 3.45a1 1 0 0 1 1.2 0l10.6 7.95A2 2 0 0 1 28 13v14a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V13a2 2 0 0 1 .8-1.6l10.6-7.95Z\"/>',viewBox:\"0 0 32 32\"},wallet:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14.5 16a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm-.5 2.5a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Z M20 23h6a3 3 0 0 0 3-3V7c0-1.654-1.336-3-2.995-3H4a1 1 0 0 0-1 1v18a1 1 0 0 0 .629.928l12.257 4.903c1.97.789 4.114-.663 4.114-2.785V23ZM9.193 6h16.812c.549 0 .995.445.995 1v13a1 1 0 0 1-1 1h-6v-5h4a1 1 0 1 0 0-2h-4v-1.646c0-.48-.115-.943-.323-1.354H24a1 1 0 1 0 0-2h-7.308l-7.5-3ZM5 6.477v15.846l11.629 4.651A1 1 0 0 0 18 26.046V12.354a1 1 0 0 0-.629-.928L5 6.477Z\"/>',viewBox:\"0 0 32 32\"},logout:{innerHTML:'<path stroke=\"none\" d=\"M4 5a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v3.417a1 1 0 1 1-2 0V5a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.333a1 1 0 1 1 2 0V27a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V5Z M13 16a1 1 0 0 1 1-1h12.586l-2.293-2.293a1 1 0 0 1 1.414-1.414l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414-1.414L26.586 17H14a1 1 0 0 1-1-1Z\"/>',viewBox:\"0 0 32 32\"},login:{innerHTML:'<path stroke=\"none\" d=\"M4 5a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v3.417a1 1 0 1 1-2 0V5a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.333a1 1 0 1 1 2 0V27a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V5Z M28 16a1 1 0 0 1-1 1H14.414l2.293 2.293a1 1 0 0 1-1.414 1.414l-4-4a1 1 0 0 1 0-1.414l4-4a1 1 0 0 1 1.414 1.414L14.414 15H27a1 1 0 0 1 1 1Z\"/>',viewBox:\"0 0 32 32\"},check:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M26.707 9.293a1 1 0 0 1 0 1.414l-13.5 13.5a1 1 0 0 1-1.414 0l-7.5-7.5a1 1 0 1 1 1.414-1.414l6.793 6.793L25.293 9.293a1 1 0 0 1 1.414 0Z\"/>',viewBox:\"0 0 32 32\"},checkCircleFilled:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M30 16C30 23.732 23.732 30 16 30C8.26801 30 2 23.732 2 16C2 8.26801 8.26801 2 16 2C23.732 2 30 8.26801 30 16ZM23.8839 12.8839C24.372 12.3957 24.372 11.6043 23.8839 11.1161C23.3957 10.628 22.6043 10.628 22.1161 11.1161L13.5 19.7322L9.38388 15.6161C8.89573 15.128 8.10427 15.128 7.61612 15.6161C7.12796 16.1043 7.12796 16.8957 7.61612 17.3839L12.6161 22.3839C13.1043 22.872 13.8957 22.872 14.3839 22.3839L23.8839 12.8839Z\"/>',viewBox:\"0 0 32 32\"},arrowUp:{innerHTML:'<path stroke=\"none\" d=\"M23.293 13.707a1 1 0 0 0 1.414-1.414l-8-8a1 1 0 0 0-1.414 0l-8 8a1 1 0 1 0 1.414 1.414L15 7.414V27a1 1 0 1 0 2 0V7.414l6.293 6.293Z\"/>',viewBox:\"0 0 32 32\"},arrowRight:{innerHTML:'<path stroke=\"none\" d=\"M18.293 23.293a1 1 0 0 0 1.414 1.414l8-8a1 1 0 0 0 0-1.414l-8-8a1 1 0 1 0-1.414 1.414L24.586 15H5a1 1 0 1 0 0 2h19.586l-6.293 6.293Z\"/>',viewBox:\"0 0 32 32\"},arrowDown:{innerHTML:'<path stroke=\"none\" d=\"M8.707 18.293a1 1 0 0 0-1.414 1.414l8 8a1 1 0 0 0 1.414 0l8-8a1 1 0 0 0-1.414-1.414L17 24.586V5a1 1 0 1 0-2 0v19.586l-6.293-6.293Z\"/>',viewBox:\"0 0 32 32\"},arrowLeft:{innerHTML:'<path stroke=\"none\" d=\"M13.707 8.707a1 1 0 0 0-1.414-1.414l-8 8a1 1 0 0 0 0 1.414l8 8a1 1 0 0 0 1.414-1.414L7.414 17H27a1 1 0 1 0 0-2H7.414l6.293-6.293Z\"/>',viewBox:\"0 0 32 32\"},arrowDecrease:{innerHTML:'<path stroke=\"none\" d=\"M25.177 17.8783C25.0529 17.3401 25.3885 16.8032 25.9267 16.6791C26.4648 16.555 27.0017 16.8906 27.1258 17.4287L28.4744 23.2752C28.5986 23.8133 28.263 24.3502 27.7248 24.4744L21.8783 25.823C21.3402 25.9471 20.8033 25.6115 20.6792 25.0734C20.555 24.5352 20.8906 23.9983 21.4288 23.8742L24.9031 23.0727L3.47491 9.85105C3.0049 9.56105 2.85897 8.94492 3.14898 8.47491C3.43899 8.00489 4.05511 7.85897 4.52512 8.14898L25.9875 21.3917L25.177 17.8783Z\"/>',viewBox:\"0 0 32 32\"},arrowDisappeared:{innerHTML:'<path stroke=\"none\" d=\"M4.8 13.4001C4.46863 12.9582 3.84183 12.8687 3.4 13.2001C2.95817 13.5314 2.86863 14.1582 3.2 14.6001C6.22167 18.629 10.9639 21.0001 16 21.0001H25.5741L23.0383 23.5188C22.6465 23.9079 22.6443 24.5411 23.0335 24.933C23.4227 25.3248 24.0559 25.3269 24.4477 24.9378L28.7047 20.7095C29.0965 20.3204 29.0987 19.6872 28.7095 19.2953L24.4813 15.0383C24.0921 14.6465 23.4589 14.6443 23.0671 15.0335C22.6752 15.4227 22.6731 16.0559 23.0623 16.4477L25.5973 19.0001H16C11.5934 19.0001 7.44396 16.9253 4.8 13.4001Z\"/>',viewBox:\"0 0 32 32\"},arrowIncrease:{innerHTML:'<path stroke=\"none\" d=\"M25.1769 14.1218C25.0527 14.6599 25.3884 15.1968 25.9265 15.321C26.4647 15.4451 27.0016 15.1095 27.1257 14.5713L28.4743 8.72489C28.5985 8.18674 28.2628 7.64985 27.7247 7.52571L21.8782 6.17706C21.3401 6.05292 20.8032 6.38854 20.679 6.92669C20.5549 7.46484 20.8905 8.00174 21.4287 8.12588L24.9031 8.92735L3.47485 22.149C3.00483 22.439 2.85891 23.0551 3.14892 23.5252C3.43893 23.9952 4.05505 24.1411 4.52506 23.8511L25.9873 10.6084L25.1769 14.1218Z\" />',viewBox:\"0 0 32 32\"},arrowIncreaseSharp:{innerHTML:'<path stroke=\"none\" d=\"M26.5702 10.8766C26.7985 11.3795 27.3913 11.602 27.8942 11.3737C28.397 11.1453 28.6196 10.5526 28.3912 10.0497L25.9106 4.58655C25.6822 4.08368 25.0895 3.86113 24.5866 4.08947L19.1234 6.57014C18.6205 6.79848 18.398 7.39124 18.6263 7.89411C18.8547 8.39698 19.4474 8.61953 19.9503 8.3912L23.2002 6.91552L19.0095 17.916C17.3846 22.1813 13.2945 25 8.73017 25H5C4.44772 25 4 25.4478 4 26C4 26.5523 4.44772 27 5 27H8.73017C14.1244 27 18.9582 23.6688 20.8785 18.628L25.0809 7.59674L26.5702 10.8766Z\" />',viewBox:\"0 0 32 32\"},arrowUnchanged:{innerHTML:'<path stroke=\"none\" d=\"M23.0383 19.5187C22.6465 19.9079 22.6443 20.541 23.0335 20.9329C23.4227 21.3247 24.0559 21.3269 24.4477 20.9377L28.7047 16.7094C29.0965 16.3203 29.0987 15.6871 28.7095 15.2952L24.4813 11.0382C24.0921 10.6464 23.4589 10.6442 23.0671 11.0334C22.6752 11.4226 22.6731 12.0558 23.0623 12.4476L25.5974 15H4C3.44772 15 3 15.4477 3 16C3 16.5523 3.44772 17 4 17H25.5741L23.0383 19.5187Z\" />',viewBox:\"0 0 32 32\"},paperPlane:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M29.39 16.92a1 1 0 0 0 0-1.841l-26-11a1 1 0 0 0-1.33 1.263L5.936 16 2.06 26.658a1 1 0 0 0 1.33 1.263l26-11ZM7.7 15 4.724 6.815 26.434 16l-21.71 9.185L7.7 17H17a1 1 0 1 0 0-2H7.7Z\"/>',viewBox:\"0 0 32 32\"},paperPlaneFilled:{innerHTML:'<path stroke=\"none\" d=\"M30 16a1 1 0 0 1-.61.92l-26 11a1 1 0 0 1-1.33-1.262l3.273-9a1 1 0 0 1 .94-.658H17a1 1 0 0 0 0-2H6.273a1 1 0 0 1-.94-.658l-3.273-9a1 1 0 0 1 1.33-1.263l26 11A1 1 0 0 1 30 16Z\"/>',viewBox:\"0 0 32 32\"},paperClip:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M25.793 7.207a6.071 6.071 0 0 0-8.586 0l-12 12a3.95 3.95 0 1 0 5.586 5.586l10.5-10.5a1.829 1.829 0 0 0-2.586-2.586l-9 9a1 1 0 1 1-1.414-1.414l9-9a3.828 3.828 0 0 1 5.414 5.414l-10.5 10.5a5.95 5.95 0 1 1-8.414-8.414l12-12a8.071 8.071 0 0 1 11.414 11.414l-10.5 10.5a1 1 0 1 1-1.414-1.414l10.5-10.5a6.071 6.071 0 0 0 0-8.586Z\"/>',viewBox:\"0 0 32 32\"},download:{innerHTML:'<path stroke=\"none\" d=\"M4 23a5 5 0 0 0 5 5h14a5 5 0 0 0 5-5v-5a1 1 0 1 0-2 0v5a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3v-5a1 1 0 1 0-2 0v5Z M20.707 15.293a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L15 17.586V5a1 1 0 1 1 2 0v12.586l2.293-2.293a1 1 0 0 1 1.414 0Z\"/>',viewBox:\"0 0 32 32\"},x:{innerHTML:'<path stroke=\"none\" d=\"M8.707 7.293a1 1 0 0 0-1.414 1.414L14.586 16l-7.293 7.293a1 1 0 1 0 1.414 1.414L16 17.414l7.293 7.293a1 1 0 0 0 1.414-1.414L17.414 16l7.293-7.293a1 1 0 0 0-1.414-1.414L16 14.586 8.707 7.293Z\"/>',viewBox:\"0 0 32 32\"},medicalPlus:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 2a6 6 0 0 0-6 6v2H8a6 6 0 0 0 0 12h2v2a6 6 0 0 0 12 0v-2h2a6 6 0 0 0 0-12h-2V8a6 6 0 0 0-6-6Zm5 10a1 1 0 0 1-1-1V8a4 4 0 0 0-8 0v3a1 1 0 0 1-1 1H8a4 4 0 0 0 0 8h3a1 1 0 0 1 1 1v3a4 4 0 0 0 8 0v-3a1 1 0 0 1 1-1h3a4 4 0 0 0 0-8h-3Z\"/>',viewBox:\"0 0 32 32\"},medicalPlusFilled:{innerHTML:'<path stroke=\"none\" d=\"M16 2a5 5 0 0 0-5 5v4H7a5 5 0 0 0 0 10h4v4a5 5 0 0 0 10 0v-4h4a5 5 0 0 0 0-10h-4V7a5 5 0 0 0-5-5Z\"/>',viewBox:\"0 0 32 32\"},archiveFilled:{innerHTML:'<path stroke=\"none\" d=\"M4 5a1 1 0 0 1 1-1h22a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1ZM5 9a1 1 0 0 0 0 2h22a1 1 0 1 0 0-2H5ZM5 14a1 1 0 1 0 0 2h22a1 1 0 1 0 0-2H5ZM18.836 19.982a3.001 3.001 0 0 1-5.672 0C12.984 19.46 12.552 19 12 19H4a1 1 0 0 0-1 1v5a2 2 0 0 0 2 2h22a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1h-8c-.552 0-.984.46-1.164.982Z\"/>',viewBox:\"0 0 32 32\"},prohibited:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 2C23.732 2 30 8.26801 30 16C30 23.732 23.732 30 16 30C8.26801 30 2 23.732 2 16C2 8.26801 8.26801 2 16 2ZM28 16C28 9.37258 22.6274 4 16 4C13.0463 4 10.3419 5.06715 8.25118 6.83692L25.1631 23.7488C26.9329 21.6581 28 18.9537 28 16ZM23.7489 25.163C21.6582 26.9328 18.9537 28 16 28C9.37258 28 4 22.6274 4 16C4 13.0463 5.06717 10.3418 6.83697 8.25113L23.7489 25.163Z\"/>',viewBox:\"0 0 32 32\"},warning:{innerHTML:'<path stroke=\"none\" d=\"M17 12C17 11.4477 16.5523 11 16 11C15.4477 11 15 11.4477 15 12V18C15 18.5523 15.4477 19 16 19C16.5523 19 17 18.5523 17 18V12Z\"/><path stroke=\"none\" d=\"M16 21C15.1716 21 14.5 21.6716 14.5 22.5C14.5 23.3284 15.1716 24 16 24C16.8284 24 17.5 23.3284 17.5 22.5C17.5 21.6716 16.8284 21 16 21Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M18.6633 3.9639C17.5439 1.80517 14.4561 1.80517 13.3367 3.9639L2.62665 24.6191C1.59118 26.616 3.04045 29 5.28991 29H26.7101C28.9596 29 30.4088 26.616 29.3734 24.6191L18.6633 3.9639ZM15.1122 4.88453C15.4854 4.16495 16.5146 4.16495 16.8878 4.88453L27.5978 25.5397C27.943 26.2054 27.4599 27 26.7101 27H5.28991C4.54009 27 4.057 26.2054 4.40216 25.5397L15.1122 4.88453Z\"/>',viewBox:\"0 0 32 32\"},warningCircle:{innerHTML:'<path stroke=\"none\" d=\"M17 9C17 8.44772 16.5523 8 16 8C15.4477 8 15 8.44772 15 9V17C15 17.5523 15.4477 18 16 18C16.5523 18 17 17.5523 17 17V9Z\" /><path stroke=\"none\" d=\"M16 20.5C15.1716 20.5 14.5 21.1716 14.5 22C14.5 22.8284 15.1716 23.5 16 23.5C16.8284 23.5 17.5 22.8284 17.5 22C17.5 21.1716 16.8284 20.5 16 20.5Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 2C8.26801 2 2 8.26801 2 16C2 23.732 8.26801 30 16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2ZM4 16C4 9.37258 9.37258 4 16 4C22.6274 4 28 9.37258 28 16C28 22.6274 22.6274 28 16 28C9.37258 28 4 22.6274 4 16Z\" />',viewBox:\"0 0 32 32\"},user:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 3a6 6 0 1 0 0 12 6 6 0 0 0 0-12Zm-4 6a4 4 0 1 1 8 0 4 4 0 0 1-8 0ZM20.924 16.44c-1.093-.306-3.058-.439-4.91-.44-1.851-.001-3.825.128-4.938.44C6.466 17.733 4 21.18 4 25.25V26a3 3 0 0 0 3 3h18a3 3 0 0 0 3-3v-.75c0-4.07-2.466-7.517-7.076-8.81Zm-9.308 1.926c.824-.23 2.554-.367 4.397-.366 1.844.001 3.565.14 4.37.366C24.172 19.428 26 22.12 26 25.25V26a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-.75c0-3.131 1.829-5.822 5.616-6.884Z\"/>',viewBox:\"0 0 32 32\"},pin:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 21.4142L15.9717 25.3859C17.1012 26.5154 19.0338 25.9302 19.347 24.3639L20.4019 19.0893L28.1205 13.6863C29.6487 12.6165 29.8405 10.4263 28.5215 9.10726L22.8927 3.47852C21.5737 2.15948 19.3835 2.35126 18.3137 3.87945L12.9107 11.598L7.63612 12.653C6.06975 12.9662 5.48461 14.8988 6.61413 16.0283L10.5858 20L4.29289 26.2929C3.90237 26.6834 3.90237 27.3166 4.29289 27.7071C4.68342 28.0976 5.31658 28.0976 5.70711 27.7071L12 21.4142ZM19.9522 5.02638C20.3088 4.51698 21.0388 4.45305 21.4785 4.89273L27.1073 10.5215C27.5469 10.9611 27.483 11.6912 26.9736 12.0478L19.255 17.4508C18.8334 17.746 18.5417 18.1923 18.4408 18.6971L17.3859 23.9716L8.02835 14.6141L13.3029 13.5592C13.8076 13.4583 14.254 13.1666 14.5492 12.745L19.9522 5.02638Z\" />',viewBox:\"0 0 32 32\"},pinFilled:{innerHTML:'<path stroke=\"none\" d=\"M13.2319 11.7102L19.6041 3.74487C20.3488 2.81405 21.7372 2.73716 22.5801 3.58004L28.42 9.41994C29.2629 10.2628 29.186 11.6512 28.2551 12.3959L20.2898 18.7682C20.1028 18.9177 19.9758 19.1294 19.9316 19.3647L18.8494 25.1366C18.7012 25.927 17.7281 26.228 17.1594 25.6594L12.4571 20.9571L5.70711 27.7071C5.31658 28.0976 4.68342 28.0976 4.29289 27.7071C3.90237 27.3166 3.90237 26.6834 4.29289 26.2929L11.0429 19.5429L6.34061 14.8406C5.77199 14.272 6.07304 13.2988 6.86343 13.1506L12.6353 12.0684C12.8706 12.0243 13.0823 11.8972 13.2319 11.7102Z\" />',viewBox:\"0 0 32 32\"},pinCrossed:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21.0499 18.6357L28.1205 13.6863C29.6487 12.6165 29.8405 10.4263 28.5215 9.10726L22.8927 3.47852C21.5737 2.15948 19.3835 2.35126 18.3137 3.87945L13.3643 10.9501L5.70711 3.29289C5.31658 2.90237 4.68342 2.90237 4.29289 3.29289C3.90237 3.68342 3.90237 4.31658 4.29289 4.70711L12.7794 13.1936C12.7877 13.2022 12.7961 13.2106 12.8047 13.219L18.7811 19.1953C18.7894 19.2039 18.7978 19.2123 18.8063 19.2206L26.2929 26.7071C26.6834 27.0976 27.3166 27.0976 27.7071 26.7071C28.0976 26.3166 28.0976 25.6834 27.7071 25.2929L21.0499 18.6357ZM21.4785 4.89273C21.0388 4.45305 20.3088 4.51698 19.9522 5.02638L14.8004 12.3861L19.6139 17.1996L26.9736 12.0478C27.483 11.6912 27.5469 10.9611 27.1073 10.5215L21.4785 4.89273Z\" /><path stroke=\"none\" d=\"M10.9806 13.0039C11.0889 13.5454 10.7377 14.0723 10.1961 14.1806L8.02835 14.6141L17.3859 23.9716L17.8194 21.8039C17.9277 21.2623 18.4546 20.9111 18.9961 21.0194C19.5377 21.1277 19.8889 21.6545 19.7806 22.1961L19.347 24.3639C19.0338 25.9302 17.1012 26.5154 15.9717 25.3859L12 21.4142L5.70711 27.7071C5.31658 28.0976 4.68342 28.0976 4.29289 27.7071C3.90237 27.3166 3.90237 26.6834 4.29289 26.2929L10.5858 20L6.61414 16.0283C5.48461 14.8988 6.06975 12.9662 7.63612 12.653L9.80389 12.2194C10.3454 12.1111 10.8723 12.4623 10.9806 13.0039Z\" />',viewBox:\"0 0 32 32\"},playStoreLogo:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.5 5.88563C4.5 3.60278 6.94841 2.1564 8.94782 3.25811L27.3036 13.3726C29.3732 14.5129 29.3732 17.4872 27.3036 18.6276L8.94781 28.742C6.94841 29.8437 4.5 28.3973 4.5 26.1145V5.88563ZM7.98261 5.00979C7.51874 4.75419 6.98237 4.91004 6.69913 5.28498L16 14.5859L19.3258 11.2601L7.98261 5.00979ZM21.1494 12.2649L17.4142 16.0001L21.1494 19.7352L26.3384 16.8759C27.0283 16.4958 27.0283 15.5044 26.3384 15.1242L21.1494 12.2649ZM14.5858 16.0001L6.5 7.91427V24.0859L14.5858 16.0001ZM6.69914 26.7152L16 17.4143L19.3258 20.74L7.9826 26.9903C7.51874 27.2459 6.98238 27.0901 6.69914 26.7152Z\" />',viewBox:\"0 0 32 32\"},appleLogo:{innerHTML:'<path stroke=\"none\" d=\"M26.2994 11.3045C26.1417 11.4283 23.3742 13.0026 23.3742 16.505C23.3742 20.5557 26.8948 21.9886 27 22.0238C26.9825 22.1122 26.4395 23.9873 25.1432 25.8977C23.9873 27.5782 22.7786 29.2585 20.9395 29.2585C19.1004 29.2585 18.6274 28.1795 16.5079 28.1795C14.4411 28.1795 13.7054 29.294 12.0238 29.294C10.3423 29.294 9.16867 27.7373 7.82004 25.8269C6.26112 23.5804 5 20.0957 5 16.7879C5 11.4812 8.41566 8.66859 11.7786 8.66859C13.5653 8.66859 15.054 9.85379 16.175 9.85379C17.2435 9.85379 18.9075 8.59786 20.9393 8.59786C21.7101 8.59803 24.4778 8.66893 26.2994 11.3045ZM19.9762 6.35162C20.8169 5.34335 21.4125 3.94594 21.4125 2.54853C21.4125 2.35397 21.395 2.1594 21.3599 2.00012C19.9936 2.05322 18.3647 2.92002 17.3837 4.06977C16.6131 4.95422 15.8948 6.35163 15.8948 7.76684C15.8948 7.97905 15.9299 8.19143 15.9474 8.26216C16.0349 8.2798 16.1752 8.29762 16.3153 8.29762C17.5415 8.29744 19.0827 7.46609 19.9762 6.35162Z\" />',viewBox:\"0 0 32 32\"},ellipsisVertical:{innerHTML:'<path stroke=\"none\" d=\"M19 6C19 7.65685 17.6569 9 16 9C14.3431 9 13 7.65685 13 6C13 4.34315 14.3431 3 16 3C17.6569 3 19 4.34315 19 6Z\" /><path stroke=\"none\" d=\"M19 16C19 17.6569 17.6569 19 16 19C14.3431 19 13 17.6569 13 16C13 14.3431 14.3431 13 16 13C17.6569 13 19 14.3431 19 16Z\" /><path stroke=\"none\" d=\"M16 29C17.6569 29 19 27.6569 19 26C19 24.3431 17.6569 23 16 23C14.3431 23 13 24.3431 13 26C13 27.6569 14.3431 29 16 29Z\" />',viewBox:\"0 0 32 32\"},ellipsisHorizontal:{innerHTML:'<path stroke=\"none\" d=\"M3 16C3 17.6569 4.34315 19 6 19C7.65685 19 9 17.6569 9 16C9 14.3431 7.65685 13 6 13C4.34315 13 3 14.3431 3 16Z\" /><path stroke=\"none\" d=\"M16 19C14.3431 19 13 17.6569 13 16C13 14.3431 14.3431 13 16 13C17.6569 13 19 14.3431 19 16C19 17.6569 17.6569 19 16 19Z\" /><path stroke=\"none\" d=\"M26 19C24.3431 19 23 17.6569 23 16C23 14.3431 24.3431 13 26 13C27.6569 13 29 14.3431 29 16C29 17.6569 27.6569 19 26 19Z\" />',viewBox:\"0 0 32 32\"},keyboardEnter:{innerHTML:'<path stroke=\"none\" d=\"M18.8889 6C18.3366 6 17.8889 6.44772 17.8889 7C17.8889 7.55228 18.3366 8 18.8889 8H25C26.6569 8 28 9.34315 28 11V19C28 20.6569 26.6569 22 25 22H5.41421L8.70711 18.7071C9.09763 18.3166 9.09763 17.6834 8.70711 17.2929C8.31658 16.9024 7.68342 16.9024 7.29289 17.2929L2.29289 22.2929C1.90237 22.6834 1.90237 23.3166 2.29289 23.7071L7.29289 28.7071C7.68342 29.0976 8.31658 29.0976 8.70711 28.7071C9.09763 28.3166 9.09763 27.6834 8.70711 27.2929L5.41421 24H25C27.7614 24 30 21.7614 30 19V11C30 8.23858 27.7614 6 25 6H18.8889Z\"/>',viewBox:\"0 0 32 32\"},bin:{innerHTML:'<path stroke=\"none\" d=\"M12 13C12.5523 13 13 13.4477 13 14V24C13 24.5523 12.5523 25 12 25C11.4477 25 11 24.5523 11 24V14C11 13.4477 11.4477 13 12 13Z\"/><path stroke=\"none\" d=\"M17 14C17 13.4477 16.5523 13 16 13C15.4477 13 15 13.4477 15 14V24C15 24.5523 15.4477 25 16 25C16.5523 25 17 24.5523 17 24V14Z\"/><path stroke=\"none\" d=\"M20 13C20.5523 13 21 13.4477 21 14V24C21 24.5523 20.5523 25 20 25C19.4477 25 19 24.5523 19 24V14C19 13.4477 19.4477 13 20 13Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13 2C12.4697 2 11.9609 2.21058 11.5858 2.58574C11.2107 2.96085 11 3.46962 11 4V6H5C4.44772 6 4 6.44772 4 7C4 7.55228 4.44772 8 5 8H6V25C6 27.7614 8.23858 30 11 30H21C23.7614 30 26 27.7614 26 25V8H27C27.5523 8 28 7.55228 28 7C28 6.44772 27.5523 6 27 6H21V4C21 3.46962 20.7893 2.96085 20.4142 2.58574C20.0391 2.21058 19.5303 2 19 2H13ZM24 8H8V25C8 26.6569 9.34315 28 11 28H21C22.6569 28 24 26.6569 24 25V8ZM19 6V4H13V6H19Z\"/>',viewBox:\"0 0 32 32\"},network:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M30 16C30 8.26832 23.7325 2.00049 16.0009 2C8.26892 2 2 8.26801 2 16C2 23.7279 8.26134 29.9933 15.9877 30L16.0003 30.0001L16.0126 30C23.7388 29.9932 30 23.7278 30 16C30 16 30 16 30 16ZM27.9589 15.0001C27.8249 13.3757 27.3674 11.8431 26.6509 10.4667H22.5641C23.0923 11.9443 23.4053 13.4663 23.5001 15.0001H27.9589ZM23.5001 17.0001H27.9589C27.8249 18.6244 27.3674 20.1571 26.6509 21.5334H22.564C23.0923 20.0558 23.4053 18.5338 23.5001 17.0001ZM21.4957 15.0001C21.3875 13.4708 21.0309 11.945 20.4215 10.4667H11.5728C10.9627 11.945 10.6056 13.4708 10.4974 15.0001H21.4957ZM10.4974 17.0001H21.4957C21.3875 18.5293 21.0309 20.0552 20.4215 21.5334H11.5728C10.9627 20.0551 10.6056 18.5293 10.4974 17.0001ZM8.49292 15.0001C8.58784 13.4663 8.90113 11.9443 9.42993 10.4667H5.34907C4.6326 11.8431 4.17507 13.3757 4.04107 15.0001H8.49292ZM4.04108 17.0001H8.49292C8.58785 18.5339 8.90115 20.0558 9.42995 21.5334H5.34913C4.63264 20.1571 4.1751 18.6244 4.04108 17.0001ZM6.6588 23.5334C8.2865 25.5491 10.5534 27.0273 13.1513 27.6598C11.9809 26.3676 11.0269 24.9809 10.2923 23.5334H6.6588ZM12.5725 23.5334C13.4421 25.0033 14.5829 26.4011 15.9996 27.6783C17.4148 26.4011 18.5543 25.0034 19.4229 23.5334H12.5725ZM21.7025 23.5334C20.9686 24.9811 20.0154 26.3681 18.8458 27.6605C21.4449 27.0284 23.7129 25.5499 25.3412 23.5334H21.7025ZM6.65871 8.46674C8.28642 6.4509 10.5534 4.97266 13.1514 4.34014C11.9809 5.63239 11.0268 7.01918 10.2923 8.46674H6.65871ZM12.5725 8.46674C13.4421 6.99677 14.5829 5.59895 15.9996 4.32175C17.4148 5.59892 18.5543 6.99674 19.4229 8.46674H12.5725ZM21.7026 8.46674C20.9686 7.01894 20.0153 5.63191 18.8457 4.33944C21.445 4.97157 23.713 6.45015 25.3413 8.46674H21.7026Z\" />',viewBox:\"0 0 32 32\"},document:{innerHTML:'<path stroke=\"none\" d=\"M11 12C10.4477 12 10 12.4477 10 13C10 13.5523 10.4477 14 11 14H16C16.5523 14 17 13.5523 17 13C17 12.4477 16.5523 12 16 12H11Z\" /><path stroke=\"none\" d=\"M10 18C10 17.4477 10.4477 17 11 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H11C10.4477 19 10 18.5523 10 18Z\" /><path stroke=\"none\" d=\"M11 22C10.4477 22 10 22.4477 10 23C10 23.5523 10.4477 24 11 24H21C21.5523 24 22 23.5523 22 23C22 22.4477 21.5523 22 21 22H11Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 4C5 2.89543 5.89543 2 7 2H19.6379C20.1058 2 20.5589 2.16403 20.9183 2.46356L26.2804 6.93193C26.7364 7.31192 27 7.87481 27 8.46837V28C27 29.1046 26.1046 30 25 30H7C5.89543 30 5 29.1046 5 28V4ZM7 4H18V8.5C18 9.05228 18.4477 9.5 19 9.5H24.5C24.6821 9.5 24.8529 9.4513 25 9.36622V28H7V4ZM20 4.30171L23.8379 7.5H20V4.30171Z\" />',viewBox:\"0 0 32 32\"},wifi:{innerHTML:'<path stroke=\"none\" d=\"M27.3 12.7C27.5 12.9 27.7 13 28 13C28.2 13 28.5 12.9 28.6 12.7C29 12.3 29.1 11.7 28.7 11.3L28.6952 11.2952L28.6661 11.2648C28.1945 10.7707 23.6407 6 16 6C8.39157 6 3.84405 10.7305 3.25073 11.3477C3.22799 11.3713 3.21106 11.3889 3.19999 11.4C2.89999 11.8 2.89999 12.4 3.29999 12.8C3.69999 13.1 4.29999 13.1 4.69999 12.7L4.71548 12.6839C5.01476 12.3697 9.17746 8 16 8C23 8 27.3 12.7 27.3 12.7Z\" /><path stroke=\"none\" d=\"M24.3 16.2C24.5 16.4 24.7 16.5 25 16.5C25.3 16.5 25.5 16.4 25.7 16.2C26.1 15.8 26.1 15.2 25.7 14.8C25.6 14.6 21.8 11 16 11C10.2 11 6.4 14.6 6.3 14.8C5.9 15.2 5.9 15.8 6.3 16.2C6.7 16.6 7.3 16.6 7.7 16.2C7.7 16.2 11 13 16 13C21 13 24.3 16.2 24.3 16.2Z\" /><path stroke=\"none\" d=\"M21.5 20C21.2 20 21 19.9 20.8 19.7C20.7 19.6 19 18 16 18C13 18 11.3 19.6 11.2 19.7C10.8 20.1 10.2 20.1 9.8 19.7C9.4 19.3 9.4 18.7 9.8 18.3C9.9 18.2 12.1 16 16 16C19.9 16 22.1 18.2 22.2 18.3C22.6 18.7 22.6 19.3 22.2 19.7C22 19.9 21.8 20 21.5 20Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13 24C13 25.7 14.3 27 16 27C17.7 27 19 25.7 19 24C19 22.3 17.7 21 16 21C14.3 21 13 22.3 13 24ZM15 24C15 23.4 15.4 23 16 23C16.6 23 17 23.4 17 24C17 24.6 16.6 25 16 25C15.4 25 15 24.6 15 24Z\" />',viewBox:\"0 0 32 32\"},creditCard:{innerHTML:'<path stroke=\"none\" d=\"M6 17C6 16.4477 6.44772 16 7 16H23C23.5523 16 24 16.4477 24 17C24 17.5523 23.5523 18 23 18H7C6.44772 18 6 17.5523 6 17Z\" /><path stroke=\"none\" d=\"M7 20C6.44772 20 6 20.4477 6 21C6 21.5523 6.44772 22 7 22H10C10.5523 22 11 21.5523 11 21C11 20.4477 10.5523 20 10 20H7Z\" /><path stroke=\"none\" d=\"M13 21C13 20.4477 13.4477 20 14 20H17C17.5523 20 18 20.4477 18 21C18 21.5523 17.5523 22 17 22H14C13.4477 22 13 21.5523 13 21Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 6C3.34315 6 2 7.34315 2 9V23C2 24.6569 3.34315 26 5 26H27C28.6569 26 30 24.6569 30 23V9C30 7.34315 28.6569 6 27 6H5ZM4 9C4 8.44772 4.44772 8 5 8H27C27.5523 8 28 8.44772 28 9V11H4V9ZM4 13V23C4 23.5523 4.44772 24 5 24H27C27.5523 24 28 23.5523 28 23V13H4Z\" />',viewBox:\"0 0 32 32\"},padLockKey:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9 10C6.23858 10 4 12.2386 4 15V25C4 27.7614 6.23858 30 9 30H9.5C10.0523 30 10.5 29.5523 10.5 29C10.5 28.4477 10.0523 28 9.5 28H9C7.34315 28 6 26.6569 6 25V15C6 13.3431 7.34315 12 9 12H23C24.6569 12 26 13.3431 26 15V20.5C26 21.0523 26.4477 21.5 27 21.5C27.5523 21.5 28 21.0523 28 20.5V15C28 12.2386 25.7614 10 23 10V9C23 7.14347 22.2625 5.36302 20.9497 4.05028C19.637 2.73753 17.8565 2 16 2C14.1435 2 12.363 2.73753 11.0502 4.05028C9.7375 5.36303 9 7.14348 9 9V10ZM12.4645 5.46449C13.4022 4.5268 14.6739 4 16 4C17.3261 4 18.5978 4.5268 19.5355 5.46449C20.4732 6.40218 21 7.67393 21 9V10H11V9C11 7.67392 11.5268 6.40218 12.4645 5.46449Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 15C14.3431 15 13 16.3431 13 18C13 19.3113 13.8414 20.4262 15.0137 20.8341C15.0047 20.8881 15 20.9435 15 21V23C15 23.5523 15.4477 24 16 24C16.5523 24 17 23.5523 17 23V21C17 20.9435 16.9953 20.8881 16.9863 20.8341C18.1586 20.4262 19 19.3113 19 18C19 16.3431 17.6569 15 16 15ZM15 18C15 17.4477 15.4477 17 16 17C16.5523 17 17 17.4477 17 18C17 18.5523 16.5523 19 16 19C15.4477 19 15 18.5523 15 18Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24.1707 28C24.5825 29.1652 25.6938 30 27 30C28.6569 30 30 28.6569 30 27C30 25.3431 28.6569 24 27 24C25.6938 24 24.5825 24.8348 24.1707 26H16C15.4477 26 15 26.4477 15 27C15 27.5523 15.4477 28 16 28H17V29C17 29.5523 17.4477 30 18 30C18.5523 30 19 29.5523 19 29V28H20V29C20 29.5523 20.4477 30 21 30C21.5523 30 22 29.5523 22 29V28H24.1707ZM27 26C26.4477 26 26 26.4477 26 27C26 27.5523 26.4477 28 27 28C27.5523 28 28 27.5523 28 27C28 26.4477 27.5523 26 27 26Z\" />',viewBox:\"0 0 32 32\"},upload:{innerHTML:'<path stroke=\"none\" d=\"M11.2929 8.29289C10.9024 8.68342 10.9024 9.31658 11.2929 9.70711C11.6834 10.0976 12.3166 10.0976 12.7071 9.70711L15 7.41421L15 20C15 20.5523 15.4477 21 16 21C16.5523 21 17 20.5523 17 20L17 7.41421L19.2929 9.70711C19.6834 10.0976 20.3166 10.0976 20.7071 9.70711C21.0976 9.31658 21.0976 8.68342 20.7071 8.29289L16.7071 4.29289C16.3166 3.90237 15.6834 3.90237 15.2929 4.29289L11.2929 8.29289Z\" /><path stroke=\"none\" d=\"M9 28C6.23858 28 4 25.7614 4 23V18C4 17.4477 4.44771 17 5 17C5.55228 17 6 17.4477 6 18L6 23C6 24.6569 7.34315 26 9 26H23C24.6569 26 26 24.6569 26 23V18C26 17.4477 26.4477 17 27 17C27.5523 17 28 17.4477 28 18V23C28 25.7614 25.7614 28 23 28H9Z\" />',viewBox:\"0 0 32 32\"},userCard:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 13.5C8 11.567 9.567 10 11.5 10C13.433 10 15 11.567 15 13.5C15 14.2398 14.7705 14.926 14.3787 15.4913C16.107 16.3055 17 17.9386 17 19.75C17 20.9926 15.9926 22 14.75 22H8.25C7.00736 22 6 20.9926 6 19.75C6 17.9386 6.89297 16.3055 8.62127 15.4913C8.22953 14.926 8 14.2398 8 13.5ZM11.5 12C10.6716 12 10 12.6716 10 13.5C10 14.3284 10.6716 15 11.5 15C12.3284 15 13 14.3284 13 13.5C13 12.6716 12.3284 12 11.5 12ZM11.5049 17C10.7544 16.9994 10.1314 17.064 9.89367 17.138C8.63035 17.5317 8 18.5118 8 19.75C8 19.8881 8.11193 20 8.25 20H14.75C14.8881 20 15 19.8881 15 19.75C15 18.5118 14.3697 17.5317 13.1063 17.138C12.8754 17.0661 12.2556 17.0006 11.5049 17Z\" /><path stroke=\"none\" d=\"M18 10C17.4477 10 17 10.4477 17 11C17 11.5523 17.4477 12 18 12H25C25.5523 12 26 11.5523 26 11C26 10.4477 25.5523 10 25 10H18Z\" /><path stroke=\"none\" d=\"M19 15C19 14.4477 19.4477 14 20 14H25C25.5523 14 26 14.4477 26 15C26 15.5523 25.5523 16 25 16H20C19.4477 16 19 15.5523 19 15Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 5C3.34315 5 2 6.34315 2 8V24C2 25.6569 3.34315 27 5 27H27C28.6569 27 30 25.6569 30 24V8C30 6.34315 28.6569 5 27 5H5ZM4 8C4 7.44772 4.44772 7 5 7H27C27.5523 7 28 7.44772 28 8V24C28 24.5523 27.5523 25 27 25H5C4.44772 25 4 24.5523 4 24V8Z\" />',viewBox:\"0 0 32 32\"},zoomIn:{innerHTML:'<path stroke=\"none\" d=\"M8 13C8 12.4477 8.44772 12 9 12H12V9C12 8.44772 12.4477 8 13 8C13.5523 8 14 8.44772 14 9V12H17C17.5523 12 18 12.4477 18 13C18 13.5523 17.5523 14 17 14H14V17C14 17.5523 13.5523 18 13 18C12.4477 18 12 17.5523 12 17V14H9C8.44772 14 8 13.5523 8 13Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13 3C7.47715 3 3 7.47715 3 13C3 18.5228 7.47715 23 13 23C15.4013 23 17.6049 22.1536 19.3287 20.7429L26.2929 27.7072C26.6834 28.0977 27.3166 28.0977 27.7071 27.7072C28.0976 27.3166 28.0976 26.6835 27.7071 26.293L20.7429 19.3287C22.1536 17.6049 23 15.4013 23 13C23 7.47715 18.5228 3 13 3ZM5 13C5 8.58172 8.58172 5 13 5C17.4183 5 21 8.58172 21 13C21 17.4183 17.4183 21 13 21C8.58172 21 5 17.4183 5 13Z\" />',viewBox:\"0 0 32 32\"},zoomOut:{innerHTML:'<path stroke=\"none\" d=\"M9 12C8.44772 12 8 12.4477 8 13C8 13.5523 8.44772 14 9 14H17C17.5523 14 18 13.5523 18 13C18 12.4477 17.5523 12 17 12H9Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 13C3 7.47715 7.47715 3 13 3C18.5228 3 23 7.47715 23 13C23 15.4013 22.1536 17.6049 20.7429 19.3287L27.7071 26.293C28.0976 26.6835 28.0976 27.3166 27.7071 27.7072C27.3166 28.0977 26.6834 28.0977 26.2929 27.7072L19.3287 20.7429C17.6049 22.1536 15.4013 23 13 23C7.47715 23 3 18.5228 3 13ZM13 5C8.58172 5 5 8.58172 5 13C5 17.4183 8.58172 21 13 21C17.4183 21 21 17.4183 21 13C21 8.58172 17.4183 5 13 5Z\" />',viewBox:\"0 0 32 32\"},copyClipboard:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9 3C9 2.44772 9.44772 2 10 2H18C18.5523 2 19 2.44772 19 3V4H21C22.6569 4 24 5.34315 24 7V11C24 11.5523 23.5523 12 23 12C22.4477 12 22 11.5523 22 11V7C22 6.44772 21.5523 6 21 6H19V7C19 7.55228 18.5523 8 18 8H10C9.44772 8 9 7.55228 9 7V6H7C6.44772 6 6 6.44771 6 7V27C6 27.5523 6.44772 28 7 28H11C11.5523 28 12 28.4477 12 29C12 29.5523 11.5523 30 11 30H7C5.34315 30 4 28.6569 4 27V7C4 5.34315 5.34314 4 7 4H9V3ZM17 4V6H11V4H17Z\" /><path stroke=\"none\" d=\"M18 18C17.4477 18 17 18.4477 17 19C17 19.5523 17.4477 20 18 20H22C22.5523 20 23 19.5523 23 19C23 18.4477 22.5523 18 22 18H18Z\" /><path stroke=\"none\" d=\"M18 23C17.4477 23 17 23.4477 17 24C17 24.5523 17.4477 25 18 25H25C25.5523 25 26 24.5523 26 24C26 23.4477 25.5523 23 25 23H18Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 13C14.3431 13 13 14.3431 13 16V27C13 28.6569 14.3431 30 16 30H27C28.6569 30 30 28.6569 30 27V16C30 14.3431 28.6569 13 27 13H16ZM15 16C15 15.4477 15.4477 15 16 15H27C27.5523 15 28 15.4477 28 16V27C28 27.5523 27.5523 28 27 28H16C15.4477 28 15 27.5523 15 27V16Z\" />',viewBox:\"0 0 32 32\"},undo:{innerHTML:'<path stroke=\"none\" d=\"M8.70711 6.70711C9.09763 6.31658 9.09763 5.68342 8.70711 5.29289C8.31658 4.90237 7.68342 4.90237 7.29289 5.29289L3.29289 9.29289C3.10536 9.48043 3 9.73478 3 10C3 10.2652 3.10536 10.5196 3.29289 10.7071L7.29289 14.7071C7.68342 15.0976 8.31658 15.0976 8.70711 14.7071C9.09763 14.3166 9.09763 13.6834 8.70711 13.2929L6.41418 11H22C25.3137 11 28 13.6863 28 17C28 20.3137 25.3137 23 22 23H9C8.44772 23 8 23.4477 8 24C8 24.5523 8.44772 25 9 25H22C26.4183 25 30 21.4182 30 17C30 12.5817 26.4183 8.99997 22 8.99997H6.41424L8.70711 6.70711Z\"/>',viewBox:\"0 0 32 32\"},documentExport:{innerHTML:'<path stroke=\"none\" d=\"M4 4C4 2.89543 4.89543 2 6 2H16.5858C17.1162 2 17.6249 2.21071 18 2.58579L22.4142 7C22.7893 7.37507 23 7.88378 23 8.41421V13.5C23 14.0523 22.5523 14.5 22 14.5C21.4477 14.5 21 14.0523 21 13.5V9H17C16.4477 9 16 8.55228 16 8V4H6V28H21V23.5C21 22.9477 21.4477 22.5 22 22.5C22.5523 22.5 23 22.9477 23 23.5V28C23 29.1046 22.1046 30 21 30H6C4.89543 30 4 29.1046 4 28V4ZM18 5.41421L19.5858 7H18V5.41421Z\" /><path stroke=\"none\" d=\"M9 12C8.44772 12 8 12.4477 8 13C8 13.5523 8.44772 14 9 14H15C15.5523 14 16 13.5523 16 13C16 12.4477 15.5523 12 15 12H9Z\" /><path stroke=\"none\" d=\"M8 18C8 17.4477 8.44772 17 9 17H15C15.5523 17 16 17.4477 16 18C16 18.5523 15.5523 19 15 19H9C8.44772 19 8 18.5523 8 18Z\" /><path stroke=\"none\" d=\"M9 22C8.44772 22 8 22.4477 8 23C8 23.5523 8.44772 24 9 24H18C18.5523 24 19 23.5523 19 23C19 22.4477 18.5523 22 18 22H9Z\" /><path stroke=\"none\" d=\"M24.7929 22.2071C24.4024 21.8166 24.4024 21.1834 24.7929 20.7929L26.5858 19H19C18.4477 19 18 18.5523 18 18C18 17.4477 18.4477 17 19 17H26.5858L24.7929 15.2071C24.4024 14.8166 24.4024 14.1834 24.7929 13.7929C25.1834 13.4024 25.8166 13.4024 26.2071 13.7929L29.7071 17.2929C29.8946 17.4804 30 17.7348 30 18C30 18.2652 29.8946 18.5196 29.7071 18.7071L26.2071 22.2071C25.8166 22.5976 25.1834 22.5976 24.7929 22.2071Z\" />',viewBox:\"0 0 32 32\"},representative:{innerHTML:'<path stroke=\"none\" d=\"M15.4994 5.40073C15.0592 5.14607 14.5482 5 14.0001 5C12.3433 5 11.0001 6.34315 11.0001 8C11.0001 8.81892 11.3269 9.55953 11.8595 10.1018C12.2465 10.4959 12.2407 11.129 11.8467 11.516C11.4526 11.903 10.8195 11.8972 10.4325 11.5032C9.5476 10.6021 9.00012 9.36398 9.00012 8C9.00012 5.23858 11.2387 3 14.0001 3C14.9092 3 15.7644 3.24351 16.5008 3.66952C16.9789 3.94607 17.1423 4.55779 16.8657 5.03585C16.5892 5.51392 15.9775 5.67728 15.4994 5.40073Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M18 6C20.7615 6 23 8.23858 23 11C23 13.7614 20.7615 16 18 16C15.2386 16 13 13.7614 13 11C13 8.23858 15.2386 6 18 6ZM21 11C21 9.34315 19.6569 8 18 8C16.3432 8 15 9.34315 15 11C15 12.6569 16.3432 14 18 14C19.6569 14 21 12.6569 21 11Z\" /><path stroke=\"none\" d=\"M18.0099 17C18.5621 17 19.0099 17.4477 19.0099 18C19.0099 18.5523 18.5622 19 18.0099 19C16.4951 19 15.0986 19.1144 14.4624 19.2928C11.4384 20.141 10 22.2735 10 24.75V26C10 26.5523 10.4478 27 11 27H22C22.5523 27 23 27.4477 23 28C23 28.5523 22.5523 29 22 29H11C9.34319 29 8.00005 27.6569 8.00005 26V24.75C8.00005 21.3351 10.076 18.4459 13.9223 17.3671C14.8471 17.1078 16.4872 17 18.0099 17Z\" /><path stroke=\"none\" d=\"M12.9973 14.9955C12.9566 14.4448 12.4771 14.0312 11.9264 14.0719C11.1688 14.1278 10.4457 14.2204 9.92227 14.3671C6.07591 15.4459 4 18.3351 4 21.75V25C4 25.5523 4.44772 26 5 26C5.55228 26 6 25.5523 6 25V21.75C6 19.2735 7.43836 17.141 10.4623 16.2928C10.7872 16.2017 11.3481 16.12 12.0736 16.0665C12.6244 16.0258 13.038 15.5463 12.9973 14.9955Z\" /><path stroke=\"none\" d=\"M24.2929 25.7071C23.9024 25.3166 23.9024 24.6834 24.2929 24.2929L25.5858 23H19C18.4478 23 18 22.5523 18 22C18 21.4477 18.4478 21 19 21H25.5858L24.2929 19.7071C23.9024 19.3166 23.9024 18.6834 24.2929 18.2929C24.6835 17.9024 25.3166 17.9024 25.7072 18.2929L28.7072 21.2929C28.8947 21.4804 29 21.7348 29 22C29 22.2652 28.8947 22.5196 28.7072 22.7071L25.7072 25.7071C25.3166 26.0976 24.6835 26.0976 24.2929 25.7071Z\" />',viewBox:\"0 0 32 32\"},resizeSmaller:{innerHTML:'<path stroke=\"none\" d=\"M27.7071 5.70711C28.0976 5.31658 28.0976 4.68342 27.7071 4.29289C27.3166 3.90237 26.6834 3.90237 26.2929 4.29289L19 11.5858L19 8C19 7.44771 18.5523 7 18 7C17.4477 7 17 7.44771 17 8L17 14C17 14.5523 17.4477 15 18 15L24 15C24.5523 15 25 14.5523 25 14C25 13.4477 24.5523 13 24 13L20.4142 13L27.7071 5.70711Z\"/><path stroke=\"none\" d=\"M13 24C13 24.5523 13.4477 25 14 25C14.5523 25 15 24.5523 15 24L15 18C15 17.4477 14.5523 17 14 17L8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19L11.5858 19L4.29289 26.2929C3.90237 26.6834 3.90237 27.3166 4.29289 27.7071C4.68342 28.0976 5.31658 28.0976 5.70711 27.7071L13 20.4142L13 24Z\"/>',viewBox:\"0 0 32 32\"},resizeLarger:{innerHTML:'<path stroke=\"none\" d=\"M26 11C26 11.5523 26.4477 12 27 12C27.5523 12 28 11.5523 28 11V5C28 4.44772 27.5523 4 27 4H21C20.4477 4 20 4.44771 20 5C20 5.55228 20.4477 6 21 6L24.5858 6L17.2929 13.2929C16.9024 13.6834 16.9024 14.3166 17.2929 14.7071C17.6834 15.0976 18.3166 15.0976 18.7071 14.7071L26 7.41421V11Z\"/><path stroke=\"none\" d=\"M6 21C6 20.4477 5.55228 20 5 20C4.44772 20 4 20.4477 4 21V27C4 27.5523 4.44772 28 5 28H11C11.5523 28 12 27.5523 12 27C12 26.4477 11.5523 26 11 26H7.41421L14.7071 18.7071C15.0976 18.3166 15.0976 17.6834 14.7071 17.2929C14.3166 16.9024 13.6834 16.9024 13.2929 17.2929L6 24.5858V21Z\"/>',viewBox:\"0 0 32 32\"},pencil:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M26.1213 3.70705C24.9498 2.53548 23.0503 2.53547 21.8787 3.70705L5.29291 20.2928C5.16039 20.4254 5.06777 20.5925 5.02563 20.7751L3.52563 27.2751C3.4481 27.611 3.54911 27.9632 3.79291 28.2071C4.03672 28.4509 4.38892 28.5519 4.72488 28.4743L11.2249 26.9743C11.4075 26.9322 11.5746 26.8396 11.7071 26.7071L28.2929 10.1213C29.4645 8.94969 29.4645 7.0502 28.2929 5.87862L26.1213 3.70705ZM23.2929 5.12126C23.6834 4.73074 24.3166 4.73074 24.7071 5.12126L26.8787 7.29284C27.2692 7.68336 27.2692 8.31652 26.8787 8.70705L25 10.5857L21.4142 6.99995L23.2929 5.12126ZM20 8.41416L7.41423 20.9999L11 24.5857L23.5858 11.9999L20 8.41416ZM9.01711 25.4313L6.56871 22.9829L5.83419 26.1658L9.01711 25.4313Z\" />',viewBox:\"0 0 32 32\"},minus:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7 16C7 15.4477 7.44772 15 8 15L24 15C24.5523 15 25 15.4477 25 16C25 16.5523 24.5523 17 24 17L8 17C7.44772 17 7 16.5523 7 16Z\"/>',viewBox:\"0 0 32 32\"},intoBuilding:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" d=\"M18 12C17.4477 12 17 12.4477 17 13C17 13.5523 17.4477 14 18 14H19C19.5523 14 20 13.5523 20 13C20 12.4477 19.5523 12 19 12H18Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" d=\"M17 9C17 8.44772 17.4477 8 18 8H19C19.5523 8 20 8.44772 20 9C20 9.55228 19.5523 10 19 10H18C17.4477 10 17 9.55228 17 9Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" d=\"M22 12C21.4477 12 21 12.4477 21 13C21 13.5523 21.4477 14 22 14H23C23.5523 14 24 13.5523 24 13C24 12.4477 23.5523 12 23 12H22Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" d=\"M21 9C21 8.44772 21.4477 8 22 8H23C23.5523 8 24 8.44772 24 9C24 9.55228 23.5523 10 23 10H22C21.4477 10 21 9.55228 21 9Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" d=\"M18 16C17.4477 16 17 16.4477 17 17C17 17.5523 17.4477 18 18 18H19C19.5523 18 20 17.5523 20 17C20 16.4477 19.5523 16 19 16H18Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" d=\"M21 17C21 16.4477 21.4477 16 22 16H23C23.5523 16 24 16.4477 24 17C24 17.5523 23.5523 18 23 18H22C21.4477 18 21 17.5523 21 17Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" d=\"M18 20C17.4477 20 17 20.4477 17 21C17 21.5523 17.4477 22 18 22H19C19.5523 22 20 21.5523 20 21C20 20.4477 19.5523 20 19 20H18Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" d=\"M17 25C17 24.4477 17.4477 24 18 24H19C19.5523 24 20 24.4477 20 25C20 25.5523 19.5523 26 19 26H18C17.4477 26 17 25.5523 17 25Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" d=\"M22 24C21.4477 24 21 24.4477 21 25C21 25.5523 21.4477 26 22 26H23C23.5523 26 24 25.5523 24 25C24 24.4477 23.5523 24 23 24H22Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" d=\"M21 21C21 20.4477 21.4477 20 22 20H23C23.5523 20 24 20.4477 24 21C24 21.5523 23.5523 22 23 22H22C21.4477 22 21 21.5523 21 21Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" d=\"M7.99999 21C7.99999 20.4477 8.4477 20 8.99999 20H9.99999C10.5523 20 11 20.4477 11 21C11 21.5523 10.5523 22 9.99999 22H8.99999C8.4477 22 7.99999 21.5523 7.99999 21Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" d=\"M8.99999 24C8.4477 24 7.99999 24.4477 7.99999 25C7.99999 25.5523 8.4477 26 8.99999 26H9.99999C10.5523 26 11 25.5523 11 25C11 24.4477 10.5523 24 9.99999 24H8.99999Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M18 2C16.8954 2 16 2.89543 16 4C14.3431 4 13 5.34315 13 7V16H6.99999C5.34313 16 3.99998 17.3431 3.99998 19V28C3.99998 29.1046 4.89542 30 5.99998 30H26C27.1046 30 28 29.1046 28 28V7C28 5.34314 26.6568 4 25 4C25 2.89543 24.1046 2 23 2H18ZM16 6C15.4477 6 15 6.44772 15 7V28H26V7C26 6.44772 25.5523 6 25 6H16ZM13 18V28H5.99998V19C5.99998 18.4477 6.4477 18 6.99999 18H13Zv\" /><path stroke=\"none\" fill-rule=\"evenodd\" d=\"M4.49999 12C4.49998 11.4477 4.9477 11 5.49999 11H7.58583L4.2196 7.63374C3.86956 7.28369 3.90237 6.68335 4.2929 6.29282C4.68342 5.9023 5.28377 5.86948 5.63381 6.21952L8.99999 9.5857L8.99999 7.49997C8.99999 6.94769 9.4477 6.49997 9.99999 6.49997C10.5523 6.49997 11 6.94769 11 7.49997L11 12C11 12.2652 10.8946 12.5195 10.7071 12.7071C10.5196 12.8946 10.2652 13 9.99999 13H5.49999C4.9477 13 4.49999 12.5523 4.49999 12Z\" />',viewBox:\"0 0 32 32\"},magnifyingGlass:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M18.4733 19.8875C16.8415 21.2086 14.7631 22 12.5 22C7.25329 22 3 17.7467 3 12.5C3 7.25329 7.25329 3 12.5 3C17.7467 3 22 7.25329 22 12.5C22 14.7631 21.2086 16.8415 19.8875 18.4733L27.7071 26.2929C28.0976 26.6834 28.0976 27.3166 27.7071 27.7071C27.3166 28.0976 26.6834 28.0976 26.2929 27.7071L18.4733 19.8875ZM5 12.5C5 8.35786 8.35786 5 12.5 5C16.6421 5 20 8.35786 20 12.5C20 14.5129 19.207 16.3407 17.9163 17.6878C17.8731 17.719 17.8318 17.754 17.7929 17.7929C17.754 17.8318 17.719 17.8731 17.6878 17.9163C16.3407 19.207 14.5129 20 12.5 20C8.35786 20 5 16.6421 5 12.5Z\" />',viewBox:\"0 0 32 32\"},padLock:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 15C14.3431 15 13 16.3431 13 18C13 19.3113 13.8414 20.4262 15.0137 20.8341C15.0047 20.8881 15 20.9435 15 21V24C15 24.5523 15.4477 25 16 25C16.5523 25 17 24.5523 17 24V21C17 20.9435 16.9953 20.8881 16.9863 20.8341C18.1586 20.4262 19 19.3113 19 18C19 16.3431 17.6569 15 16 15ZM15 18C15 17.4477 15.4477 17 16 17C16.5523 17 17 17.4477 17 18C17 18.5523 16.5523 19 16 19C15.4477 19 15 18.5523 15 18Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9 10V9C9 7.14348 9.7375 5.36303 11.0502 4.05028C12.363 2.73753 14.1435 2 16 2C17.8565 2 19.637 2.73753 20.9497 4.05028C22.2625 5.36302 23 7.14347 23 9V10C25.7614 10 28 12.2386 28 15V25C28 27.7614 25.7614 30 23 30H9C6.23858 30 4 27.7614 4 25V15C4 12.2386 6.23858 10 9 10ZM12.4645 5.46449C13.4022 4.5268 14.6739 4 16 4C17.3261 4 18.5978 4.5268 19.5355 5.46449C20.4732 6.40218 21 7.67393 21 9V10H11V9C11 7.67392 11.5268 6.40218 12.4645 5.46449ZM9 12C7.34315 12 6 13.3431 6 15V25C6 26.6569 7.34315 28 9 28H23C24.6569 28 26 26.6569 26 25V15C26 13.3431 24.6569 12 23 12H9Z\"/>',viewBox:\"0 0 32 32\"},pencilPaper:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M26.8899 2.43149C26.1022 1.69396 24.8716 1.71417 24.1086 2.47715L11.2929 15.2929C11.1533 15.4325 11.0581 15.6103 11.0194 15.8039L10.0194 20.8039C9.95383 21.1317 10.0565 21.4707 10.2929 21.7071C10.5293 21.9435 10.8682 22.0461 11.1961 21.9806L16.1961 20.9806C16.3928 20.9412 16.5731 20.8436 16.7137 20.7005L29.4965 7.67672C30.2831 6.87529 30.2559 5.58346 29.4362 4.8159L26.8899 2.43149ZM25.5228 3.89136L28.0692 6.27577L26.3954 7.98112L23.9142 5.49997L25.5228 3.89136ZM22.5 6.91418L12.9212 16.493L12.2747 19.7252L15.502 19.0798L24.9944 9.40854L22.5 6.91418Z\"/><path stroke=\"none\" d=\"M4 7C4 5.34314 5.34315 4 7 4H16C16.5523 4 17 4.44772 17 5C17 5.55228 16.5523 6 16 6H7C6.44771 6 6 6.44772 6 7V25C6 25.5523 6.44772 26 7 26H25C25.5523 26 26 25.5523 26 25V16C26 15.4477 26.4477 15 27 15C27.5523 15 28 15.4477 28 16V25C28 26.6569 26.6569 28 25 28H7C5.34314 28 4 26.6569 4 25V7Z\"/>',viewBox:\"0 0 32 32\"},stopwatch:{innerHTML:'<path stroke=\"none\" d=\"M16.7071 18.2929L20.7071 22.2929C21.0976 22.6834 21.0976 23.3166 20.7071 23.7071C20.3166 24.0976 19.6834 24.0976 19.2929 23.7071L15.2929 19.7071C14.9024 19.3166 14.9024 18.6834 15.2929 18.2929C15.6834 17.9024 16.3166 17.9024 16.7071 18.2929Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 3C12 2.44772 12.4477 2 13 2H19C19.5523 2 20 2.44772 20 3C20 3.55228 19.5523 4 19 4H17V7.59851C22.8269 8.00179 27.4286 12.8564 27.4286 18.7857C27.4286 24.9792 22.4078 30 16.2143 30C10.0208 30 5 24.9792 5 18.7857C5 15.9034 6.08739 13.275 7.87432 11.2885L6.29289 9.70711C5.90237 9.31658 5.90237 8.68342 6.29289 8.29289C6.68342 7.90237 7.31658 7.90237 7.70711 8.29289L9.33943 9.92521C10.9374 8.68353 12.8802 7.86463 15 7.63639V4H13C12.4477 4 12 3.55228 12 3ZM7 18.7857C7 13.6968 11.1254 9.57141 16.2143 9.57141C21.3032 9.57141 25.4286 13.6968 25.4286 18.7857C25.4286 23.8746 21.3032 28 16.2143 28C11.1254 28 7 23.8746 7 18.7857Z\"/>',viewBox:\"0 0 32 32\"},hourglass:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6.64883 3C6.64883 2.44772 7.09655 2 7.64883 2H24.3512C24.9035 2 25.3512 2.44772 25.3512 3C25.3512 5.60022 24.3603 9.01689 22.7845 11.7855C21.9921 13.1776 21.0237 14.4566 19.9069 15.3986C19.6476 15.6173 19.3773 15.8203 19.0967 16.003C19.3731 16.1839 19.6396 16.3844 19.8954 16.6002C21.0103 17.5411 21.9794 18.8187 22.7735 20.21C24.3526 22.9768 25.3512 26.3938 25.3512 29C25.3512 29.5523 24.9035 30 24.3512 30H7.64883C7.09655 30 6.64883 29.5523 6.64883 29C6.64883 26.3953 7.63958 22.9786 9.2156 20.2108C10.008 18.8192 10.9765 17.541 12.0934 16.5998C12.3526 16.3813 12.6229 16.1786 12.9034 15.9962C12.6268 15.8151 12.3602 15.6143 12.1043 15.3982C10.9895 14.4566 10.0204 13.1781 9.22644 11.7864C7.6475 9.0187 6.64883 5.60167 6.64883 3ZM10.5373 10C10.6732 10.2698 10.8154 10.5355 10.9636 10.7953C11.681 12.0527 12.5115 13.1242 13.3948 13.8702C14.2779 14.6161 15.1558 14.9907 16 14.9907C16.8526 14.9907 17.7341 14.6149 18.6174 13.8698C19.5015 13.1242 20.3308 12.0533 21.0463 10.7962C21.1944 10.5361 21.3364 10.2702 21.4719 10H10.5373ZM9.67148 8H22.3345C22.8409 6.61618 23.1745 5.22086 23.2979 4H8.70257C8.82677 5.22056 9.1626 6.6159 9.67148 8ZM23.0456 26.443C22.5026 25.757 21.8317 25.1611 21.0934 24.6747C19.6225 23.7058 17.8092 23.1191 16 23.1191C14.1918 23.1191 12.3786 23.7029 10.9071 24.6709C10.1677 25.1574 9.49601 25.7538 8.95267 26.4413C9.32275 24.7253 10.0164 22.8463 10.9536 21.2005C11.669 19.9441 12.4983 18.8741 13.3823 18.1291C13.9242 17.6724 14.4655 17.3546 15 17.1771V20C15 20.5523 15.4477 21 16 21C16.5523 21 17 20.5523 17 20V17.1793C17.529 17.357 18.0663 17.6737 18.6055 18.1287C19.4888 18.874 20.3192 19.9446 21.0365 21.2013C21.9763 22.8479 22.6734 24.7272 23.0456 26.443ZM21.7082 28C21.2915 27.3812 20.7061 26.8146 19.9932 26.3449C18.8265 25.5764 17.3921 25.1191 16 25.1191C14.6069 25.1191 13.1725 25.5746 12.0063 26.3418C11.2924 26.8115 10.7063 27.3789 10.2894 28H21.7082Z\"/>',viewBox:\"0 0 32 32\"},duplicate:{innerHTML:'<path stroke=\"none\" d=\"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H7C7.55228 22 8 21.5523 8 21C8 20.4477 7.55228 20 7 20H5C4.44772 20 4 19.5523 4 19V5C4 4.44772 4.44772 4 5 4H19C19.5523 4 20 4.44772 20 5V7C20 7.55228 20.4477 8 21 8C21.5523 8 22 7.55228 22 7V5C22 3.34315 20.6569 2 19 2H5Z\"/><path stroke=\"none\" d=\"M13.7 10C13.1477 10 12.7 10.4477 12.7 11C12.7 11.5523 13.1477 12 13.7 12H15.5C16.0522 12 16.5 11.5523 16.5 11C16.5 10.4477 16.0522 10 15.5 10H13.7Z\"/><path stroke=\"none\" d=\"M18.1 11C18.1 10.4477 18.5477 10 19.1 10H20.9C21.4523 10 21.9 10.4477 21.9 11C21.9 11.5523 21.4523 12 20.9 12H19.1C18.5477 12 18.1 11.5523 18.1 11Z\"/><path stroke=\"none\" d=\"M23.5 11C23.5 10.4477 23.9477 10 24.5 10H26.3C26.8523 10 27.3 10.4477 27.3 11C27.3 11.5523 26.8523 12 26.3 12H24.5C23.9477 12 23.5 11.5523 23.5 11Z\"/><path stroke=\"none\" d=\"M18.1 29C18.1 28.4477 18.5477 28 19.1 28H20.9C21.4523 28 21.9 28.4477 21.9 29C21.9 29.5523 21.4523 30 20.9 30H19.1C18.5477 30 18.1 29.5523 18.1 29Z\"/><path stroke=\"none\" d=\"M24.5 28C23.9477 28 23.5 28.4477 23.5 29C23.5 29.5523 23.9477 30 24.5 30H26.3C26.8523 30 27.3 29.5523 27.3 29C27.3 28.4477 26.8523 28 26.3 28H24.5Z\"/><path stroke=\"none\" d=\"M12.7 29C12.7 28.4477 13.1477 28 13.7 28H15.5C16.0522 28 16.5 28.4477 16.5 29C16.5 29.5523 16.0522 30 15.5 30H13.7C13.1477 30 12.7 29.5523 12.7 29Z\"/><path stroke=\"none\" d=\"M12 19.1001C12 18.5478 11.5523 18.1001 11 18.1001C10.4477 18.1001 9.99997 18.5478 9.99997 19.1001V20.9001C9.99997 21.4524 10.4477 21.9001 11 21.9001C11.5523 21.9001 12 21.4524 12 20.9001V19.1001Z\"/><path stroke=\"none\" d=\"M29 18.1001C29.5523 18.1001 30 18.5478 30 19.1001V20.9001C30 21.4524 29.5523 21.9001 29 21.9001C28.4477 21.9001 28 21.4524 28 20.9001V19.1001C28 18.5478 28.4477 18.1001 29 18.1001Z\"/><path stroke=\"none\" d=\"M12 24.5C12 23.9477 11.5523 23.5 11 23.5C10.4477 23.5 9.99997 23.9477 9.99997 24.5V26.3C9.99997 26.8523 10.4477 27.3 11 27.3C11.5523 27.3 12 26.8523 12 26.3V24.5Z\"/><path stroke=\"none\" d=\"M29 23.5C29.5523 23.5 30 23.9477 30 24.5V26.3C30 26.8523 29.5523 27.3 29 27.3C28.4477 27.3 28 26.8523 28 26.3V24.5C28 23.9477 28.4477 23.5 29 23.5Z\"/><path stroke=\"none\" d=\"M12 13.7001C12 13.1478 11.5523 12.7001 11 12.7001C10.4477 12.7001 9.99997 13.1478 9.99997 13.7001V15.5001C9.99997 16.0524 10.4477 16.5001 11 16.5001C11.5523 16.5001 12 16.0524 12 15.5001V13.7001Z\"/><path stroke=\"none\" d=\"M29 12.7001C29.5523 12.7001 30 13.1478 30 13.7001V15.5001C30 16.0524 29.5523 16.5001 29 16.5001C28.4477 16.5001 28 16.0524 28 15.5001V13.7001C28 13.1478 28.4477 12.7001 29 12.7001Z\"/>',viewBox:\"0 0 32 32\"},notesBoard:{innerHTML:'<path stroke=\"none\" d=\"M11 12C10.4477 12 10 12.4477 10 13C10 13.5523 10.4477 14 11 14H16C16.5523 14 17 13.5523 17 13C17 12.4477 16.5523 12 16 12H11Z\" /><path stroke=\"none\" d=\"M10 17C10 16.4477 10.4477 16 11 16H21C21.5523 16 22 16.4477 22 17C22 17.5523 21.5523 18 21 18H11C10.4477 18 10 17.5523 10 17Z\" /><path stroke=\"none\" d=\"M11 20C10.4477 20 10 20.4477 10 21C10 21.5523 10.4477 22 11 22H21C21.5523 22 22 21.5523 22 21C22 20.4477 21.5523 20 21 20H11Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11 3C11 2.44772 11.4477 2 12 2H20C20.5523 2 21 2.44772 21 3V4H23C24.6569 4 26 5.34314 26 7V27C26 28.6569 24.6569 30 23 30H9C7.34315 30 6 28.6569 6 27V7C6 5.34315 7.34314 4 9 4H11V3ZM21 7V6H23C23.5523 6 24 6.44772 24 7V27C24 27.5523 23.5523 28 23 28H9C8.44771 28 8 27.5523 8 27V7C8 6.44771 8.44772 6 9 6H11V7C11 7.55228 11.4477 8 12 8H20C20.5523 8 21 7.55228 21 7ZM13 6H19V4H13V6Z\" />',viewBox:\"0 0 32 32\"},print:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9 3C9 2.44772 9.44772 2 10 2H22C22.5523 2 23 2.44772 23 3V7H27C28.6569 7 30 8.34315 30 10V21C30 22.6569 28.6569 24 27 24H25C24.4477 24 24 23.5523 24 23C24 22.4477 24.4477 22 25 22H27C27.5523 22 28 21.5523 28 21V10C28 9.44772 27.5523 9 27 9H5C4.44772 9 4 9.44772 4 10V21C4 21.5523 4.44772 22 5 22H7C7.55228 22 8 22.4477 8 23C8 23.5523 7.55228 24 7 24H5C3.34315 24 2 22.6569 2 21V10C2 8.34315 3.34315 7 5 7H9V3ZM11 7H21V4H11V7Z\"/><path stroke=\"none\" d=\"M13 21C13 20.4477 13.4477 20 14 20H18C18.5523 20 19 20.4477 19 21C19 21.5523 18.5523 22 18 22H14C13.4477 22 13 21.5523 13 21Z\"/><path stroke=\"none\" d=\"M13 25C13 24.4477 13.4477 24 14 24H18C18.5523 24 19 24.4477 19 25C19 25.5523 18.5523 26 18 26H14C13.4477 26 13 25.5523 13 25Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10 16C9.44772 16 9 16.4477 9 17V29C9 29.5523 9.44772 30 10 30H22C22.5523 30 23 29.5523 23 29V17C23 16.4477 22.5523 16 22 16H10ZM21 28H11V18H21V28Z\"/><path stroke=\"none\" d=\"M23 12.5C23 11.6716 23.6716 11 24.5 11C25.3284 11 26 11.6716 26 12.5C26 13.3284 25.3284 14 24.5 14C23.6716 14 23 13.3284 23 12.5Z\"/>',viewBox:\"0 0 32 32\"},listBullet:{innerHTML:'<path stroke=\"none\" d=\"M4 9C4 7.89543 4.89543 7 6 7C7.10457 7 8 7.89543 8 9C8 10.1046 7.10457 11 6 11C4.89543 11 4 10.1046 4 9Z\"/><path stroke=\"none\" d=\"M11 9C11 8.44772 11.4477 8 12 8H27C27.5523 8 28 8.44772 28 9C28 9.55228 27.5523 10 27 10H12C11.4477 10 11 9.55228 11 9Z\"/><path stroke=\"none\" d=\"M11 16C11 15.4477 11.4477 15 12 15H27C27.5523 15 28 15.4477 28 16C28 16.5523 27.5523 17 27 17H12C11.4477 17 11 16.5523 11 16Z\"/><path stroke=\"none\" d=\"M4 16C4 14.8954 4.89543 14 6 14C7.10457 14 8 14.8954 8 16C8 17.1046 7.10457 18 6 18C4.89543 18 4 17.1046 4 16Z\"/><path stroke=\"none\" d=\"M4 23C4 21.8954 4.89543 21 6 21C7.10457 21 8 21.8954 8 23C8 24.1046 7.10457 25 6 25C4.89543 25 4 24.1046 4 23Z\"/><path stroke=\"none\" d=\"M12 22C11.4477 22 11 22.4477 11 23C11 23.5523 11.4477 24 12 24H27C27.5523 24 28 23.5523 28 23C28 22.4477 27.5523 22 27 22H12Z\"/>',viewBox:\"0 0 32 32\"},tag:{innerHTML:'<path stroke=\"none\" d=\"M22.5 11C23.3284 11 24 10.3284 24 9.5C24 8.67157 23.3284 8 22.5 8C21.6716 8 21 8.67157 21 9.5C21 10.3284 21.6716 11 22.5 11Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M19.8284 4C19.0328 4 18.2697 4.31607 17.7071 4.87868L4.70711 17.8787C3.53554 19.0503 3.53554 20.9497 4.70711 22.1213L9.87868 27.2929C11.0503 28.4645 12.9498 28.4645 14.1213 27.2929L27.1213 14.2929C27.6839 13.7303 28 12.9672 28 12.1716V7C28 5.34315 26.6569 4 25 4H19.8284ZM19.1213 6.29289C19.3089 6.10536 19.5632 6 19.8284 6H25C25.5523 6 26 6.44772 26 7V12.1716C26 12.4368 25.8946 12.6911 25.7071 12.8787L12.7071 25.8787C12.3166 26.2692 11.6834 26.2692 11.2929 25.8787L6.12132 20.7071C5.7308 20.3166 5.7308 19.6834 6.12132 19.2929L19.1213 6.29289Z\"/>',viewBox:\"0 0 32 32\"},tags:{innerHTML:'<path stroke=\"none\" d=\"M16.5355 4.87868C17.0981 4.31607 17.8612 4 18.6569 4H25C25.5523 4 26 3.55228 26 3C26 2.44772 25.5523 2 25 2H18.6569C17.3308 2 16.059 2.52678 15.1213 3.46447L3.79289 14.7929C3.40237 15.1834 3.40237 15.8166 3.79289 16.2071C4.18342 16.5976 4.81658 16.5976 5.20711 16.2071L16.5355 4.87868Z\" /><path stroke=\"none\" d=\"M24 11.5C24 12.3284 23.3284 13 22.5 13C21.6716 13 21 12.3284 21 11.5C21 10.6716 21.6716 10 22.5 10C23.3284 10 24 10.6716 24 11.5Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M17.7071 6.87868C18.2697 6.31607 19.0328 6 19.8284 6H25C26.6569 6 28 7.34315 28 9V14.1716C28 14.9672 27.6839 15.7303 27.1213 16.2929L14.1213 29.2929C12.9498 30.4645 11.0503 30.4645 9.87868 29.2929L4.70711 24.1213C3.53554 22.9497 3.53554 21.0503 4.70711 19.8787L17.7071 6.87868ZM19.8284 8C19.5632 8 19.3089 8.10536 19.1213 8.29289L6.12132 21.2929C5.7308 21.6834 5.7308 22.3166 6.12132 22.7071L11.2929 27.8787C11.6834 28.2692 12.3166 28.2692 12.7071 27.8787L25.7071 14.8787C25.8946 14.6911 26 14.4368 26 14.1716V9C26 8.44772 25.5523 8 25 8H19.8284Z\" />',viewBox:\"0 0 32 32\"},wifiCrossed:{innerHTML:'<path stroke=\"none\" d=\"M5.73389 4.3C5.33389 3.9 4.73388 3.9 4.33389 4.3C3.93389 4.7 3.93389 5.3 4.33389 5.7L26.3339 27.7C26.5339 27.9 26.7339 28 27.0339 28C27.3339 28 27.5339 27.9 27.7339 27.7C28.1339 27.3 28.1339 26.7 27.7339 26.3L21.4279 19.994C21.7121 20.0263 22.0056 19.9283 22.2339 19.7C22.6339 19.3 22.6339 18.7 22.2339 18.3C22.1477 18.2138 20.5002 16.5663 17.5479 16.114L14.5339 13.1C15.0339 13 15.5339 13 16.0339 13C21.0339 13 24.3339 16.2 24.3339 16.2C24.5339 16.4 24.8339 16.5 25.0339 16.5C25.2339 16.5 25.5339 16.4 25.7339 16.2C26.1339 15.8 26.1339 15.2 25.7339 14.8C25.6339 14.6 21.8339 11 16.0339 11C14.9339 11 13.8339 11.1 12.8339 11.3L10.5339 9C12.2339 8.4 14.1339 8 16.0339 8C22.8564 8 27.0191 12.3697 27.3184 12.6839L27.3339 12.7C27.5339 12.9 27.7339 13 28.0339 13C28.2339 13 28.5339 12.9 28.6339 12.7C29.0339 12.3 29.1339 11.7 28.7339 11.3C28.7273 11.2934 28.716 11.2816 28.7 11.2649C28.2284 10.7708 23.6746 6 16.0339 6C13.6339 6 11.2339 6.5 8.93389 7.5L5.73389 4.3Z\" /><path stroke=\"none\" d=\"M5.33389 9.59997C4.03389 10.5 3.33389 11.3 3.33389 11.3C2.93389 11.7 2.93389 12.4 3.43389 12.6C3.63389 12.8 3.93389 12.9 4.13389 12.9C4.33389 12.9 4.63389 12.8 4.83389 12.6C4.83389 12.6 5.43389 12 6.53389 11.2C6.93389 10.9 7.03389 10.2 6.73389 9.79997C6.43389 9.39997 5.73389 9.29997 5.33389 9.59997Z\" /><path stroke=\"none\" d=\"M8.83389 13C9.33389 12.7 9.93389 12.9 10.2339 13.4C10.5339 13.9 10.3339 14.5 9.83389 14.8C8.53389 15.6 7.73389 16.3 7.73389 16.3C7.53389 16.5 7.23389 16.6 7.03389 16.6C6.73389 16.6 6.53389 16.5 6.33389 16.3C5.93389 15.9 5.93389 15.3 6.33389 14.9C6.33389 14.8 7.23389 13.9 8.83389 13Z\" /><path stroke=\"none\" d=\"M13.9339 17.2C13.7339 16.7 13.1339 16.4 12.6339 16.6C10.8339 17.3 9.83387 18.3 9.83387 18.3C9.43387 18.7 9.43387 19.3 9.83387 19.7C10.0339 19.9 10.2339 20 10.5339 20C10.8339 20 11.0339 19.9 11.2339 19.7C11.2339 19.7 12.0339 19 13.3339 18.5C13.8339 18.3 14.1339 17.7 13.9339 17.2Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16.0339 21C17.7339 21 19.0339 22.3 19.0339 24C19.0339 25.7 17.7339 27 16.0339 27C14.3339 27 13.0339 25.7 13.0339 24C13.0339 22.3 14.3339 21 16.0339 21ZM16.0339 25C16.6339 25 17.0339 24.6 17.0339 24C17.0339 23.4 16.6339 23 16.0339 23C15.4339 23 15.0339 23.4 15.0339 24C15.0339 24.6 15.4339 25 16.0339 25Z\" />',viewBox:\"0 0 32 32\"},speechBubbleDots:{innerHTML:'<path stroke=\"none\" d=\"M9.5 14.5024C10.3284 14.5024 11 13.8308 11 13.0024C11 12.174 10.3284 11.5024 9.5 11.5024C8.67157 11.5024 8 12.174 8 13.0024C8 13.8308 8.67157 14.5024 9.5 14.5024Z\" /><path stroke=\"none\" d=\"M17.5 13.0011C17.5 13.8295 16.8284 14.5011 16 14.5011C15.1716 14.5011 14.5 13.8295 14.5 13.0011C14.5 12.1727 15.1716 11.5011 16 11.5011C16.8284 11.5011 17.5 12.1727 17.5 13.0011Z\" /><path stroke=\"none\" d=\"M22.5 14.5C23.3284 14.5 24 13.8284 24 13C24 12.1716 23.3284 11.5 22.5 11.5C21.6716 11.5 21 12.1716 21 13C21 13.8284 21.6716 14.5 22.5 14.5Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 3C5.23858 3 3 5.23858 3 8V18C3 20.7614 5.23858 23 8 23H9V28C9 28.4124 9.25315 28.7825 9.63748 28.932C10.0218 29.0815 10.4585 28.9797 10.7372 28.6757L15.9399 23H24C26.7614 23 29 20.7614 29 18V8C29 5.23858 26.7614 3 24 3H8ZM5 8C5 6.34315 6.34315 5 8 5H24C25.6569 5 27 6.34315 27 8V18C27 19.6569 25.6569 21 24 21H15.5C15.2197 21 14.9523 21.1176 14.7628 21.3243L11 25.4292V22C11 21.4477 10.5523 21 10 21H8C6.34315 21 5 19.6569 5 18V8Z\" />',viewBox:\"0 0 32 32\"},speechBubble:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 5C6.34315 5 5 6.34315 5 8V18C5 19.6569 6.34315 21 8 21H10C10.5523 21 11 21.4477 11 22V25.4292L14.7628 21.3243C14.9523 21.1176 15.2197 21 15.5 21H24C25.6569 21 27 19.6569 27 18V8C27 6.34315 25.6569 5 24 5H8ZM3 8C3 5.23858 5.23858 3 8 3H24C26.7614 3 29 5.23858 29 8V18C29 20.7614 26.7614 23 24 23H15.9399L10.7372 28.6757C10.4585 28.9797 10.0218 29.0815 9.63748 28.932C9.25315 28.7825 9 28.4124 9 28V23H8C5.23858 23 3 20.7614 3 18V8Z\" />',viewBox:\"0 0 32 32\"},image:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10 8C7.79086 8 6 9.79086 6 12C6 14.2091 7.79086 16 10 16C12.2091 16 14 14.2091 14 12C14 9.79086 12.2091 8 10 8ZM8 12C8 10.8954 8.89543 10 10 10C11.1046 10 12 10.8954 12 12C12 13.1046 11.1046 14 10 14C8.89543 14 8 13.1046 8 12Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 4C3.34315 4 2 5.34314 2 7V24.9928L2.00002 25.0104C2.00564 26.6625 3.34663 28 5 28H27C28.6569 28 30 26.6569 30 25V22.5097C30.0001 22.5037 30.0001 22.4976 30 22.4915V7C30 5.34315 28.6569 4 27 4H5ZM28 20.4194V7C28 6.44772 27.5523 6 27 6H5C4.44771 6 4 6.44772 4 7V22.8898L7.86676 19.726C8.2434 19.4179 8.78718 19.4256 9.15493 19.7443L12.0298 22.2359L20.9068 15.6949C21.2714 15.4263 21.771 15.4362 22.1247 15.7191L28 20.4194ZM13.5791 23.5786L16.373 26H27C27.5523 26 28 25.5523 28 25V22.9806L21.475 17.7606L13.5791 23.5786ZM5 26C4.59159 26 4.24036 25.7552 4.08508 25.4043L8.48146 21.8072L13.3193 26H5Z\" />',viewBox:\"0 0 32 32\"},email:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 6C4 4.89543 4.89543 4 6 4H26C27.1046 4 28 4.89543 28 6V11.5C28 12.0523 27.5523 12.5 27 12.5C26.4477 12.5 26 12.0523 26 11.5V7.22057L16.4763 12.3792C16.1792 12.5402 15.8209 12.5402 15.5237 12.3792L6 7.22055V20H10C10.5523 20 11 20.4477 11 21C11 21.5523 10.5523 22 10 22H6C4.89543 22 4 21.1046 4 20V6ZM16 10.3627L7.94586 6H24.0542L16 10.3627Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M25.8333 23.1666C25.8333 23.4539 25.9475 23.7295 26.1507 23.9327C26.3538 24.1358 26.6294 24.25 26.9167 24.25C27.204 24.25 27.4796 24.1358 27.6827 23.9327C27.8851 23.7303 27.9992 23.456 28 23.1698L28 23.1667V21.5028L28 21.5C28 20.2144 27.6188 18.9577 26.9046 17.8888C26.1903 16.8199 25.1752 15.9868 23.9874 15.4948C22.7997 15.0028 21.4928 14.8741 20.2319 15.1249C18.971 15.3757 17.8128 15.9948 16.9038 16.9038C15.9948 17.8129 15.3757 18.971 15.1249 20.2319C14.8741 21.4928 15.0028 22.7997 15.4948 23.9874C15.9868 25.1752 16.8199 26.1903 17.8888 26.9045C18.9575 27.6187 20.214 27.9999 21.4994 28C22.5026 27.9985 23.4924 27.7684 24.3934 27.327C24.8894 27.084 25.4884 27.2891 25.7314 27.7851C25.9743 28.281 25.7692 28.8801 25.2733 29.123C24.099 29.6983 22.809 29.9982 21.5013 30H21.5C19.8189 30 18.1755 29.5015 16.7777 28.5675C15.3798 27.6335 14.2904 26.306 13.647 24.7528C13.0037 23.1996 12.8354 21.4906 13.1633 19.8417C13.4913 18.1929 14.3008 16.6783 15.4896 15.4896C16.6783 14.3008 18.1929 13.4913 19.8417 13.1633C21.4906 12.8354 23.1996 13.0037 24.7528 13.647C26.306 14.2904 27.6335 15.3798 28.5675 16.7777C29.5011 18.1749 29.9996 19.8175 30 21.4979L30 23.1622L30 23.1666C30 23.9844 29.6752 24.7686 29.0969 25.3469C28.5187 25.9251 27.7344 26.25 26.9167 26.25C26.0989 26.25 25.3147 25.9251 24.7364 25.3469C24.571 25.1814 24.4263 24.9991 24.304 24.804C23.5482 25.446 22.5694 25.8333 21.5 25.8333C19.1068 25.8333 17.1667 23.8932 17.1667 21.5C17.1667 19.1067 19.1068 17.1666 21.5 17.1666C23.8933 17.1666 25.8334 19.1067 25.8334 21.5C25.8334 21.5062 25.8334 21.5125 25.8333 21.5188V23.1666ZM19.1667 21.5C19.1667 20.2113 20.2114 19.1666 21.5 19.1666C22.7862 19.1666 23.8293 20.2072 23.8334 21.4924C23.8334 21.4949 23.8333 21.4975 23.8333 21.5V21.5138C23.8259 22.7961 22.7841 23.8333 21.5 23.8333C20.2114 23.8333 19.1667 22.7886 19.1667 21.5Z\"/>',viewBox:\"0 0 32 32\"},phoneX:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3.57357 7.2836C2.50323 13.0337 5.0284 18.8616 9.12158 22.9548C13.2147 27.048 19.0417 29.5722 24.7899 28.4993C25.6282 28.3429 26.4288 28.0079 27.0319 27.4107C27.6542 26.7943 27.9903 25.9723 28 25.01L28 22.5048C28.0073 21.687 27.7981 20.9031 27.2786 20.2894C26.7519 19.6672 26.0047 19.3364 25.167 19.249L21.9396 18.9165C20.8693 18.8008 19.793 19.1822 19.0196 19.9556L17.1701 21.8051C14.2699 20.2013 11.8701 17.8129 10.2669 14.9039L12.1266 13.0442C12.8951 12.2757 13.269 11.2008 13.1667 10.134L12.8331 6.91567L12.8323 6.90885C12.7374 6.05088 12.3767 5.29563 11.7515 4.76175C11.1318 4.23262 10.3366 3.99256 9.49536 3.99998L7.00001 3.99998L6.99621 3.99999C6.00618 4.00375 5.18907 4.36835 4.59358 5.0247C4.02725 5.64891 3.72609 6.46423 3.57357 7.2836ZM24.4229 26.5333C19.4865 27.4546 14.2938 25.2986 10.5358 21.5406C6.77783 17.7826 4.62043 12.5886 5.53979 7.6496C5.65469 7.03238 5.84928 6.61714 6.0748 6.36857C6.2709 6.15242 6.54131 6.00211 7.00205 5.99998L7.00381 5.99998L9.50003 6.00004L9.51011 5.99993C9.96356 5.99536 10.2643 6.12181 10.4528 6.28271C10.6365 6.43963 10.7963 6.69945 10.8441 7.12565L10.8445 7.12874L11.1761 10.3283C11.2214 10.8111 11.0499 11.2925 10.7124 11.63L8.84179 13.5006C8.2399 14.1025 8.06527 15.0488 8.49689 15.8357C10.2901 19.1047 12.9827 21.783 16.2352 23.5735C17.0223 24.0068 17.9704 23.8331 18.5735 23.2301L20.4338 21.3698C20.7849 21.0187 21.2649 20.8548 21.7259 20.9051L24.9602 21.2383C25.399 21.2842 25.6265 21.4332 25.7521 21.5816C25.8839 21.7373 26.0048 22.0128 26 22.4899L26 24.9945C25.9942 25.4724 25.841 25.7753 25.6245 25.9897C25.388 26.2239 24.9991 26.4257 24.4229 26.5333Z\"/><path stroke=\"none\" d=\"M19.2929 5.29287C19.6834 4.90235 20.3166 4.90235 20.7071 5.29287L23 7.58577L25.2929 5.29287C25.6834 4.90235 26.3166 4.90235 26.7071 5.29287C27.0977 5.6834 27.0977 6.31656 26.7071 6.70709L24.4142 8.99998L26.7071 11.2929C27.0977 11.6834 27.0977 12.3166 26.7071 12.7071C26.3166 13.0976 25.6834 13.0976 25.2929 12.7071L23 10.4142L20.7071 12.7071C20.3166 13.0976 19.6834 13.0976 19.2929 12.7071C18.9024 12.3166 18.9024 11.6834 19.2929 11.2929L21.5858 8.99998L19.2929 6.70709C18.9024 6.31656 18.9024 5.6834 19.2929 5.29287Z\"/>',viewBox:\"0 0 32 32\"},phone:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9.12157 22.9548C5.02839 18.8616 2.50322 13.0337 3.57356 7.28362C3.72608 6.46425 4.02724 5.64893 4.59357 5.02472C5.18906 4.36837 6.00617 4.00377 6.9962 4.00001L7 4L9.49535 4C10.3366 3.99258 11.1318 4.23264 11.7515 4.76177C12.3767 5.29565 12.7374 6.0509 12.8323 6.90887L12.8331 6.91569L13.1667 10.134C13.269 11.2008 12.8951 12.2757 12.1266 13.0442L10.2669 14.9039C11.8701 17.8129 14.2699 20.2014 17.1701 21.8051L19.0195 19.9556C19.793 19.1822 20.8693 18.8008 21.9395 18.9165L25.167 19.2491C26.0047 19.3364 26.7519 19.6672 27.2786 20.2894C27.7981 20.9031 28.0073 21.6871 28 22.5048L28 25.0101C27.9903 25.9723 27.6542 26.7943 27.0319 27.4107C26.4288 28.008 25.6282 28.3429 24.7898 28.4993C19.0417 29.5722 13.2147 27.048 9.12157 22.9548ZM10.5358 21.5406C14.2938 25.2986 19.4865 27.4547 24.4229 26.5333C24.9991 26.4257 25.388 26.2239 25.6245 25.9897C25.841 25.7753 25.9942 25.4724 26 24.9945L26 22.4899C26.0048 22.0128 25.8839 21.7373 25.7521 21.5816C25.6265 21.4332 25.399 21.2842 24.9602 21.2383L21.7259 20.9051C21.2649 20.8548 20.7849 21.0187 20.4338 21.3698L18.5735 23.2301C17.9704 23.8331 17.0223 24.0068 16.2352 23.5735C12.9827 21.783 10.29 19.1047 8.49688 15.8357C8.06526 15.0488 8.23989 14.1025 8.84178 13.5006L10.7124 11.63C11.0499 11.2925 11.2214 10.8111 11.1761 10.3283L10.8444 7.12875L10.8441 7.12567C10.7963 6.69947 10.6365 6.43965 10.4528 6.28273C10.2643 6.12183 9.96355 5.99538 9.5101 5.99995L9.50002 6.00005L7.0038 6L7.00204 6C6.5413 6.00213 6.27089 6.15244 6.07478 6.36859C5.84927 6.61716 5.65468 7.03239 5.53978 7.64962C4.62042 12.5886 6.77782 17.7826 10.5358 21.5406Z\" />',viewBox:\"0 0 32 32\"},eye:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 11.2858C13.3964 11.2858 11.2857 13.3964 11.2857 16.0001C11.2857 18.6037 13.3964 20.7143 16 20.7143C18.6036 20.7143 20.7143 18.6037 20.7143 16.0001C20.7143 13.3964 18.6036 11.2858 16 11.2858ZM13.2857 16.0001C13.2857 14.501 14.5009 13.2858 16 13.2858C17.4991 13.2858 18.7143 14.501 18.7143 16.0001C18.7143 17.4991 17.4991 18.7143 16 18.7143C14.5009 18.7143 13.2857 17.4991 13.2857 16.0001Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M29.8095 15.4129C26.063 10.2482 21.0792 7.56921 16 7.56921C10.9208 7.56921 5.93701 10.2482 2.19054 15.4129C1.93649 15.7632 1.93649 16.2371 2.19054 16.5873C5.93701 21.752 10.9208 24.431 16 24.431C21.0792 24.431 26.063 21.752 29.8095 16.5873C30.0635 16.2371 30.0635 15.7632 29.8095 15.4129ZM16 22.431C11.8553 22.431 7.62315 20.344 4.25011 16.0001C7.62315 11.6562 11.8553 9.56921 16 9.56921C20.1447 9.56921 24.3769 11.6562 27.7499 16.0001C24.3769 20.344 20.1447 22.431 16 22.431Z\" />',viewBox:\"0 0 32 32\"},eyeCrossed:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.29289 4.29289C3.90237 4.68342 3.90237 5.31658 4.29289 5.70711L26.2929 27.7071C26.6834 28.0976 27.3166 28.0976 27.7071 27.7071C28.0976 27.3166 28.0976 26.6834 27.7071 26.2929L23.6942 22.28C25.9365 20.9665 28.0145 19.0617 29.8095 16.5873C30.0635 16.237 30.0635 15.7631 29.8095 15.4129C24.5905 8.21835 16.9808 5.88536 10.1869 8.77268L5.70711 4.29289C5.31658 3.90237 4.68342 3.90237 4.29289 4.29289ZM11.7308 10.3166C17.1698 8.38424 23.2346 10.1839 27.7499 16C26.0792 18.1513 24.1973 19.7482 22.2258 20.8116L19.9655 18.5513C21.1426 16.7256 20.9319 14.2649 19.3335 12.6665C17.7351 11.0681 15.2744 10.8574 13.4488 12.0345L11.7308 10.3166ZM14.9223 13.5081L18.492 17.0777C18.9205 16.0861 18.7296 14.891 17.9193 14.0807C17.109 13.2704 15.9139 13.0795 14.9223 13.5081Z\" /><path stroke=\"none\" d=\"M6.38715 11.0211C6.82356 10.6827 7.45173 10.7621 7.7902 11.1985C8.12867 11.6349 8.04927 12.2631 7.61286 12.6015C6.42914 13.5196 5.29805 14.6509 4.25012 16.0002C8.24504 21.1454 13.4464 23.1316 18.3148 22.2139C18.8575 22.1116 19.3804 22.4686 19.4827 23.0114C19.585 23.5541 19.228 24.077 18.6852 24.1793C12.7399 25.3 6.60609 22.6744 2.19055 16.5873C1.93649 16.2371 1.93649 15.7632 2.19055 15.413C3.46151 13.6609 4.87416 12.1946 6.38715 11.0211Z\" />',viewBox:\"0 0 32 32\"},share:{innerHTML:'<path stroke=\"none\" d=\"M7 30C5.34315 30 4 28.6569 4 27L4 14C4 12.3432 5.34315 11 7 11H9.58333C10.1356 11 10.5833 11.4477 10.5833 12C10.5833 12.5523 10.1356 13 9.58333 13H7C6.44772 13 6 13.4477 6 14L6 27C6 27.5523 6.44772 28 7 28H25C25.5523 28 26 27.5523 26 27V14C26 13.4477 25.5523 13 25 13H23.3333C22.781 13 22.3333 12.5523 22.3333 12C22.3333 11.4477 22.781 11 23.3333 11H25C26.6569 11 28 12.3431 28 14V27C28 28.6569 26.6569 30 25 30H7Z\" /><path stroke=\"none\" d=\"M16 20C15.4477 20 15 19.5523 15 19V6.41422L12.7071 8.70711C12.3166 9.09763 11.6834 9.09763 11.2929 8.70711C10.9024 8.31658 10.9024 7.68342 11.2929 7.29289L15.2929 3.29289C15.6834 2.90237 16.3166 2.90237 16.7071 3.29289L20.7071 7.29289C21.0976 7.68342 21.0976 8.31658 20.7071 8.70711C20.3166 9.09763 19.6834 9.09763 19.2929 8.70711L17 6.41421V19C17 19.5523 16.5523 20 16 20Z\" />',viewBox:\"0 0 32 32\"},screenShare:{innerHTML:'<path stroke=\"none\" d=\"M11.2929 6.29289C10.9024 6.68342 10.9024 7.31658 11.2929 7.70711C11.6834 8.09763 12.3166 8.09763 12.7071 7.70711L15 5.41421L15 16C15 16.5523 15.4477 17 16 17C16.5523 17 17 16.5523 17 16L17 5.41421L19.2929 7.70711C19.6834 8.09763 20.3166 8.09763 20.7071 7.70711C21.0976 7.31658 21.0976 6.68342 20.7071 6.29289L16.7071 2.29289C16.3166 1.90237 15.6834 1.90237 15.2929 2.29289L11.2929 6.29289Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6 12C6 11.4477 6.44772 11 7 11H9C9.55228 11 10 10.5523 10 10C10 9.44772 9.55228 9 9 9H7C5.34315 9 4 10.3431 4 12V23C4 24.6569 5.34314 26 7 26H13V28H12C11.4477 28 11 28.4477 11 29C11 29.5523 11.4477 30 12 30H20C20.5523 30 21 29.5523 21 29C21 28.4477 20.5523 28 20 28H19V26H25C26.6569 26 28 24.6569 28 23V12C28 10.3431 26.6569 9 25 9H23C22.4477 9 22 9.44772 22 10C22 10.5523 22.4477 11 23 11H25C25.5523 11 26 11.4477 26 12V23C26 23.5523 25.5523 24 25 24H7C6.44772 24 6 23.5523 6 23V12ZM15 26V28H17V26H15Z\" />',viewBox:\"0 0 32 32\"},link:{innerHTML:'<path stroke=\"none\" d=\"M14.3212 19.7759C15.4121 20.7237 16.8093 21.2445 18.2545 21.2422C19.0424 21.2437 19.8229 21.0894 20.551 20.7883C21.2791 20.4873 21.9405 20.0453 22.4972 19.4878L26.7399 15.2451C27.2976 14.6881 27.7401 14.0267 28.0421 13.2986C28.3442 12.5705 28.4997 11.7899 28.5 11.0017C28.5003 10.2135 28.3452 9.43312 28.0437 8.70483C27.7422 7.97655 27.3001 7.3147 26.7428 6.75732C26.1854 6.19994 25.5237 5.75785 24.7955 5.4563C24.0672 5.15475 23.2866 4.99978 22.4984 5C21.7102 5.00022 20.9297 5.15555 20.2016 5.45752C19.4735 5.75948 18.8121 6.20207 18.255 6.75977L16.1335 8.88135C16.0406 8.9742 15.967 9.0845 15.9167 9.20581C15.8665 9.32712 15.8406 9.45707 15.8406 9.58838C15.8406 9.71969 15.8665 9.84963 15.9167 9.97095C15.967 10.0923 16.0406 10.2026 16.1335 10.2954C16.2263 10.3883 16.3365 10.462 16.4578 10.5122C16.5792 10.5625 16.7092 10.5884 16.8405 10.5884C16.9718 10.5884 17.1018 10.5625 17.2231 10.5122C17.3444 10.462 17.4547 10.3883 17.5475 10.2954L19.6691 8.17383C20.4195 7.42461 21.4367 7.00396 22.497 7.00439C23.5574 7.00483 24.5742 7.42643 25.324 8.17627C26.0738 8.92611 26.4951 9.94279 26.4955 11.0032C26.4958 12.0636 26.0751 13.0807 25.3258 13.8311L21.0832 18.0737C20.5574 18.5971 19.8964 18.9641 19.1741 19.1335C18.4518 19.303 17.6967 19.2682 16.993 19.0332C16.2892 18.7982 15.6647 18.3722 15.1892 17.8027C14.7136 17.2333 14.4057 16.5429 14.3 15.8086C14.2626 15.5464 14.1228 15.3099 13.9113 15.1506C13.6997 14.9914 13.4336 14.9225 13.1714 14.9592C12.9091 14.996 12.6722 15.1352 12.5125 15.3464C12.3528 15.5576 12.2834 15.8236 12.3195 16.0859C12.5191 17.5173 13.2302 18.8281 14.3212 19.7759Z\" /><path stroke=\"none\" d=\"M5.66728 26.5966C6.65427 27.2555 7.81456 27.6067 9.00128 27.6059C9.78908 27.6072 10.5694 27.4528 11.2974 27.1518C12.0254 26.8507 12.6867 26.4089 13.2435 25.8515L15.3651 23.7304C15.5526 23.5429 15.6579 23.2885 15.6579 23.0233C15.6579 22.7582 15.5526 22.5038 15.3651 22.3163C15.1775 22.1288 14.9232 22.0233 14.658 22.0233C14.3928 22.0233 14.1385 22.1288 13.951 22.3163L11.8294 24.4374C11.4579 24.8088 11.017 25.1033 10.5316 25.3043C10.0463 25.5054 9.52617 25.6088 9.00087 25.6088C8.47557 25.6088 7.95541 25.5054 7.47011 25.3043C6.9848 25.1033 6.54385 24.8086 6.17242 24.4372C5.801 24.0657 5.50638 23.6246 5.30537 23.1393C5.10437 22.654 5.00092 22.1338 5.00095 21.6085C5.00097 21.0833 5.10445 20.5631 5.3055 20.0778C5.50654 19.5925 5.80121 19.1516 6.17267 18.7802L10.4153 14.538C10.9411 14.0146 11.602 13.6476 12.3243 13.4782C13.0465 13.3087 13.8017 13.3433 14.5054 13.5783C15.209 13.8132 15.8336 14.2394 16.3091 14.8087C16.7847 15.3781 17.0927 16.0684 17.1985 16.8026C17.2359 17.0648 17.3757 17.3014 17.5872 17.4606C17.7988 17.6198 18.0649 17.6887 18.3271 17.652C18.5894 17.6153 18.8263 17.476 18.986 17.2648C19.1457 17.0536 19.2151 16.7876 19.179 16.5253C19.0242 15.4212 18.5645 14.3822 17.8516 13.5251C17.1387 12.6679 16.2008 12.0264 15.1434 11.673C14.086 11.3196 12.9509 11.2683 11.8659 11.5246C10.7808 11.7809 9.7888 12.3347 9.00128 13.1239L4.75861 17.3661C3.91905 18.2048 3.34721 19.2738 3.11546 20.4377C2.88372 21.6015 3.00249 22.8081 3.45674 23.9044C3.91099 25.0008 4.6803 25.9377 5.66728 26.5966Z\" />',viewBox:\"0 0 32 32\"},linkBroken:{innerHTML:'<path stroke=\"none\" d=\"M12 8C11.7348 8 11.4804 7.89457 11.2929 7.70703C11.1054 7.5195 11 7.26522 11 7V4C11 3.73478 11.1054 3.48051 11.2929 3.29297C11.4804 3.10543 11.7348 3 12 3C12.2652 3 12.5196 3.10543 12.7071 3.29297C12.8946 3.48051 13 3.73478 13 4V7C13 7.26521 12.8946 7.5195 12.7071 7.70703C12.5196 7.89456 12.2652 7.99999 12 8Z\"/><path stroke=\"none\" d=\"M15.4713 19.7754C16.1995 20.076 16.9802 20.2292 17.7681 20.2261C18.5559 20.2292 19.3365 20.076 20.0647 19.7754C20.7928 19.4747 21.4541 19.0326 22.0103 18.4746L26.2529 14.2324C27.377 13.107 28.0082 11.5813 28.0077 9.99072C28.0073 8.40011 27.3752 6.87477 26.2505 5.75C25.1258 4.62523 23.6005 3.99298 22.0099 3.99243C20.4193 3.99189 18.8936 4.62307 17.7681 5.74707L15.6465 7.86816C15.5537 7.96101 15.48 8.07131 15.4297 8.19263C15.3795 8.31394 15.3536 8.44389 15.3536 8.5752C15.3536 8.7065 15.3795 8.83645 15.4297 8.95776C15.48 9.07908 15.5537 9.18938 15.6465 9.28223C15.7393 9.37508 15.8496 9.44877 15.9709 9.49902C16.0922 9.54927 16.2222 9.5752 16.3535 9.5752C16.4848 9.5752 16.6149 9.54927 16.7362 9.49902C16.8575 9.44878 16.9677 9.37508 17.0606 9.28223L19.1821 7.16113C19.5535 6.78926 19.9945 6.49409 20.4799 6.29272C20.9654 6.09136 21.4857 5.98772 22.0113 5.98755C22.5368 5.98738 23.0573 6.0907 23.5428 6.29175C24.0284 6.4928 24.4696 6.78779 24.8412 7.15942C25.2128 7.53106 25.5075 7.97218 25.7085 8.45776C25.9095 8.94335 26.0129 9.46371 26.0127 9.98926C26.0125 10.5148 25.9087 11.0353 25.7073 11.5208C25.5059 12.0062 25.2108 12.447 24.8389 12.8184L20.5962 17.0605C19.8442 17.8071 18.8275 18.2261 17.7678 18.2261C16.7082 18.2261 15.6915 17.8071 14.9395 17.0605C14.752 16.873 14.4976 16.7676 14.2324 16.7676C13.9672 16.7676 13.7129 16.873 13.5254 17.0605C13.3379 17.2481 13.2325 17.5024 13.2325 17.7676C13.2325 18.0328 13.3379 18.2871 13.5254 18.4746C14.0816 19.0326 14.743 19.4747 15.4713 19.7754Z\"/><path stroke=\"none\" d=\"M6.65596 26.9983C7.64287 27.6572 8.80307 28.0085 9.98974 28.0078C10.7777 28.0092 11.5581 27.8549 12.2862 27.5537C13.0143 27.2526 13.6757 26.8105 14.2324 26.2529L16.3535 24.1318C16.4464 24.039 16.52 23.9287 16.5703 23.8074C16.6205 23.6861 16.6464 23.5561 16.6464 23.4248C16.6464 23.2935 16.6205 23.1635 16.5703 23.0422C16.52 22.9209 16.4464 22.8106 16.3535 22.7178C16.2607 22.6249 16.1504 22.5512 16.0291 22.501C15.9078 22.4507 15.7778 22.4248 15.6465 22.4248C15.5152 22.4248 15.3851 22.4507 15.2638 22.501C15.1425 22.5512 15.0323 22.6249 14.9394 22.7178L12.8184 24.8389C12.0682 25.5891 11.0508 26.0105 9.98993 26.0105C8.92904 26.0105 7.91157 25.5892 7.16137 24.8391C6.41118 24.089 5.9897 23.0716 5.98965 22.0107C5.9896 20.9499 6.411 19.9323 7.16113 19.1821L11.4038 14.9395C12.1559 14.1929 13.1727 13.7739 14.2324 13.7739C15.2922 13.7739 16.3089 14.1929 17.061 14.9395C17.1539 15.0323 17.2641 15.106 17.3854 15.1562C17.5067 15.2065 17.6368 15.2324 17.7681 15.2324C17.8994 15.2324 18.0294 15.2065 18.1507 15.1562C18.272 15.106 18.3822 15.0323 18.4751 14.9395C18.5679 14.8466 18.6416 14.7363 18.6918 14.615C18.7421 14.4937 18.768 14.3637 18.768 14.2324C18.768 14.1011 18.7421 13.9712 18.6918 13.8499C18.6416 13.7285 18.5679 13.6182 18.4751 13.5254C17.348 12.4037 15.8226 11.7739 14.2324 11.7739C12.6423 11.7739 11.1168 12.4037 9.98974 13.5254L5.74707 17.7681C4.90763 18.6068 4.33589 19.6758 4.10421 20.8396C3.87253 22.0034 3.99132 23.2099 4.44555 24.3062C4.89978 25.4024 5.66904 26.3394 6.65596 26.9983Z\"/><path stroke=\"none\" d=\"M9.63622 10.6362C9.50488 10.6364 9.37481 10.6106 9.25348 10.5603C9.13215 10.51 9.02194 10.4363 8.92921 10.3433L6.80763 8.22168C6.62012 8.03416 6.51477 7.77984 6.51477 7.51465C6.51477 7.24946 6.62012 6.99513 6.80763 6.80762C6.99515 6.6201 7.24948 6.51465 7.51466 6.51465C7.77985 6.51465 8.03418 6.6201 8.22169 6.80762L10.3433 8.9292C10.4831 9.06905 10.5783 9.24721 10.6169 9.44116C10.6554 9.63511 10.6356 9.8361 10.56 10.0188C10.4843 10.2015 10.3562 10.3576 10.1917 10.4675C10.0273 10.5774 9.83397 10.6362 9.63622 10.6362Z\"/><path stroke=\"none\" d=\"M4 13H7C7.26522 13 7.51957 12.8946 7.70711 12.707C7.89464 12.5195 8 12.2652 8 12C8 11.7348 7.89464 11.4805 7.70711 11.293C7.51957 11.1054 7.26522 11 7 11H4C3.73478 11 3.48043 11.1054 3.29289 11.293C3.10536 11.4805 3 11.7348 3 12C3 12.2652 3.10536 12.5195 3.29289 12.707C3.48043 12.8946 3.73478 13 4 13Z\"/><path stroke=\"none\" d=\"M24.1026 25.4094C24.2239 25.4597 24.354 25.4855 24.4853 25.4854C24.6831 25.4853 24.8765 25.4265 25.0409 25.3167C25.2053 25.2068 25.3334 25.0506 25.4091 24.8679C25.4847 24.6852 25.5046 24.4842 25.466 24.2903C25.4274 24.0963 25.3322 23.9182 25.1924 23.7783L23.0713 21.6567C22.9785 21.5639 22.8682 21.4902 22.7469 21.4399C22.6256 21.3897 22.4956 21.3638 22.3643 21.3638C22.233 21.3638 22.1029 21.3897 21.9816 21.4399C21.8603 21.4902 21.7501 21.5639 21.6572 21.6567C21.5644 21.7496 21.4907 21.8599 21.4405 21.9812C21.3902 22.1025 21.3644 22.2325 21.3644 22.3638C21.3644 22.4951 21.3902 22.625 21.4405 22.7463C21.4907 22.8677 21.5644 22.978 21.6572 23.0708L23.7783 25.1924C23.8711 25.2854 23.9813 25.3591 24.1026 25.4094Z\"/><path stroke=\"none\" d=\"M28 21H25C24.7348 21 24.4804 20.8946 24.2929 20.707C24.1054 20.5195 24 20.2652 24 20C24 19.7348 24.1054 19.4805 24.2929 19.293C24.4804 19.1054 24.7348 19 25 19H28C28.2652 19 28.5196 19.1054 28.7071 19.293C28.8946 19.4805 29 19.7348 29 20C29 20.2652 28.8946 20.5195 28.7071 20.707C28.5196 20.8946 28.2652 21 28 21Z\"/><path stroke=\"none\" d=\"M19.2929 28.707C19.4804 28.8946 19.7348 29 20 29C20.2652 29 20.5196 28.8946 20.7071 28.707C20.8946 28.5195 21 28.2652 21 28V25C21 24.7348 20.8946 24.4805 20.7071 24.293C20.5196 24.1054 20.2652 24 20 24C19.7348 24 19.4804 24.1054 19.2929 24.293C19.1054 24.4805 19 24.7348 19 25V28C19 28.2652 19.1054 28.5195 19.2929 28.707Z\"/>',viewBox:\"0 0 32 32\"},userX:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 3C12.6863 3 10 5.68629 10 9C10 12.3137 12.6863 15 16 15C19.3137 15 22 12.3137 22 9C22 5.68629 19.3137 3 16 3ZM12 9C12 6.79086 13.7909 5 16 5C18.2091 5 20 6.79086 20 9C20 11.2091 18.2091 13 16 13C13.7909 13 12 11.2091 12 9Z\" /><path stroke=\"none\" d=\"M11.6162 18.3662C12.4352 18.1365 14.1523 18 15.9866 18C16.5389 18 16.9866 17.5523 16.9866 17C16.9866 16.4477 16.5389 16 15.9866 16C14.1439 16 12.1835 16.1299 11.0761 16.4405C6.46638 17.7333 4 21.1805 4 25.25V26C4 27.6569 5.34315 29 7 29H15.9866C16.5389 29 16.9866 28.5523 16.9866 28C16.9866 27.4477 16.5389 27 15.9866 27H7C6.44772 27 6 26.5523 6 26V25.25C6 22.1189 7.82883 19.4284 11.6162 18.3662Z\" /><path stroke=\"none\" d=\"M24.4142 23L26.7071 25.2929C27.0976 25.6834 27.0976 26.3166 26.7071 26.7071C26.3166 27.0976 25.6834 27.0976 25.2929 26.7071L23 24.4142L20.7071 26.7071C20.3166 27.0976 19.6834 27.0976 19.2929 26.7071C18.9024 26.3166 18.9024 25.6834 19.2929 25.2929L21.5858 23L19.2929 20.7071C18.9024 20.3166 18.9024 19.6834 19.2929 19.2929C19.6834 18.9024 20.3166 18.9024 20.7071 19.2929L23 21.5858L25.2929 19.2929C25.6834 18.9024 26.3166 18.9024 26.7071 19.2929C27.0976 19.6834 27.0976 20.3166 26.7071 20.7071L24.4142 23Z\" />',viewBox:\"0 0 32 32\"},userPlus:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 3C12.6863 3 10 5.68629 10 9C10 12.3137 12.6863 15 16 15C19.3137 15 22 12.3137 22 9C22 5.68629 19.3137 3 16 3ZM12 9C12 6.79086 13.7909 5 16 5C18.2091 5 20 6.79086 20 9C20 11.2091 18.2091 13 16 13C13.7909 13 12 11.2091 12 9Z\" /><path stroke=\"none\" d=\"M11.6162 18.3662C12.4352 18.1365 14.1523 18 15.9866 18C16.5389 18 16.9866 17.5523 16.9866 17C16.9866 16.4477 16.5389 16 15.9866 16C14.1439 16 12.1835 16.1299 11.0761 16.4405C6.46638 17.7333 4 21.1805 4 25.25V26C4 27.6569 5.34315 29 7 29H15.9866C16.5389 29 16.9866 28.5523 16.9866 28C16.9866 27.4477 16.5389 27 15.9866 27H7C6.44772 27 6 26.5523 6 26V25.25C6 22.1189 7.82883 19.4284 11.6162 18.3662Z\" /><path stroke=\"none\" d=\"M23 18C23.5523 18 24 18.4477 24 19V22H27C27.5523 22 28 22.4478 28 23C28 23.5523 27.5523 24 27 24H24V27.0001C24 27.5523 23.5523 28.0001 23 28.0001C22.4477 28.0001 22 27.5523 22 27.0001V24H19C18.4477 24 18 23.5523 18 23C18 22.4478 18.4477 22 19 22H22V19C22 18.4477 22.4477 18 23 18Z\" />',viewBox:\"0 0 32 32\"},drop:{innerHTML:'<path stroke=\"none\" d=\"M11.8 24.2C12.9 25.4 14.4 26 16 26C16.6 26 17 25.6 17 25C17 24.4 16.6 24 16 24C15 24 14 23.6 13.2 22.8C12.4 22.1 12 21.1 12 20C12 19.4 11.6 19 11 19C10.4 19 10 19.4 10 20C10 21.6 10.6 23.1 11.8 24.2Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8.9 27C10.8 28.9 13.4 30 16 30C18.7 30 21.2 28.9 23.1 27C25 25 26 22.4 26 19.7C26 10.6006 17.9142 3.29809 16.8154 2.30572C16.755 2.25112 16.7156 2.21562 16.7 2.19998C16.3 1.89998 15.8 1.89998 15.4 2.19998C15 2.49998 6 10.1 6 19.7C6 22.5 7 25 8.9 27ZM8 19.7C8 12.4 14 6.19998 16 4.29998C18 6.19998 24 12.4 24 19.7C24 21.9 23.1 24.1 21.6 25.6C20.1 27.1 18.1 28 16 28C13.9 28 11.9 27.2 10.4 25.6C8.9 24 8 21.9 8 19.7Z\" />',viewBox:\"0 0 32 32\"},syringe:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M28.7071 4.70711C29.0976 4.31658 29.0976 3.68342 28.7071 3.29289C28.3166 2.90237 27.6834 2.90237 27.2929 3.29289L24.5 6.0858L24.4142 6.00003C23.6332 5.21898 22.3668 5.21898 21.5858 6.00003L20.4076 7.17824C19.2735 6.57543 17.8341 6.75172 16.8787 7.70711L12.7947 11.7911L12.7929 11.7929L12.7911 11.7947L9.79466 14.7911L9.79289 14.7929L9.79113 14.7947L7.5 17.0858L6.20711 15.7929C5.81658 15.4024 5.18342 15.4024 4.79289 15.7929C4.40237 16.1834 4.40237 16.8166 4.79289 17.2071L7.58577 20L3.99998 23.5858L3.70711 23.2929C3.31658 22.9024 2.68342 22.9024 2.29289 23.2929C1.90237 23.6834 1.90237 24.3166 2.29289 24.7071L6.29287 28.7071L6.29724 28.7115L7.29289 29.7071C7.68342 30.0976 8.31658 30.0976 8.70711 29.7071C9.09763 29.3166 9.09763 28.6834 8.70711 28.2929L8.41421 28L12 24.4142L14.7929 27.2071C15.1834 27.5976 15.8166 27.5976 16.2071 27.2071C16.5976 26.8166 16.5976 26.1834 16.2071 25.7929L14.9142 24.5L24.2929 15.1213C25.2483 14.1659 25.4246 12.7265 24.8218 11.5925L26 10.4142C26.781 9.63319 26.781 8.36686 26 7.58581L25.9142 7.50002L28.7071 4.70711ZM22.7977 12.212C22.7961 12.2104 22.7945 12.2088 22.7929 12.2071L19.7929 9.20714C19.7913 9.2056 19.7898 9.20405 19.7883 9.2025L19.7071 9.12132C19.3166 8.7308 18.6834 8.7308 18.2929 9.12132L14.9142 12.5L16.7071 14.2929C17.0976 14.6834 17.0976 15.3166 16.7071 15.7071C16.3166 16.0976 15.6834 16.0976 15.2929 15.7071L13.5 13.9142L11.9142 15.5L13.7071 17.2929C14.0976 17.6834 14.0976 18.3166 13.7071 18.7071C13.3166 19.0976 12.6834 19.0976 12.2929 18.7071L10.5 16.9142L8.91422 18.5L12.7071 22.2929L12.7119 22.2977L13.5 23.0858L22.8787 13.7071C23.2692 13.3166 23.2692 12.6834 22.8787 12.2929L22.7977 12.212ZM23.5 10.0858L24.5858 9.00003L23 7.41424L21.9142 8.50003L23.5 10.0858ZM10.5858 23L8.99999 21.4142L5.41419 25L6.99999 26.5858L10.5858 23Z\" />',viewBox:\"0 0 32 32\"},bandaid:{innerHTML:'<path stroke=\"none\" d=\"M13.5 15C12.9477 15 12.5 15.4477 12.5 16C12.5 16.5523 12.9477 17 13.5 17C14.0523 17 14.5 16.5523 14.5 16C14.5 15.4477 14.0523 15 13.5 15Z\"/><path stroke=\"none\" d=\"M16 17.5C15.4477 17.5 15 17.9477 15 18.5C15 19.0523 15.4477 19.5 16 19.5C16.5523 19.5 17 19.0523 17 18.5C17 17.9477 16.5523 17.5 16 17.5Z\"/><path stroke=\"none\" d=\"M16 12.5C15.4477 12.5 15 12.9477 15 13.5C15 14.0523 15.4477 14.5 16 14.5C16.5523 14.5 17 14.0523 17 13.5C17 12.9477 16.5523 12.5 16 12.5Z\"/><path stroke=\"none\" d=\"M18.5 15C17.9477 15 17.5 15.4477 17.5 16C17.5 16.5523 17.9477 17 18.5 17C19.0523 17 19.5 16.5523 19.5 16C19.5 15.4477 19.0523 15 18.5 15Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M26.7071 13.7071C29.0306 11.3836 29.0306 7.61639 26.7071 5.29287C24.3836 2.96935 20.6164 2.96935 18.2929 5.29287L16 7.58575L13.7071 5.29287C11.3836 2.96935 7.61643 2.96935 5.29291 5.29287C2.96939 7.61639 2.96938 11.3836 5.2929 13.7071L7.5858 16L5.29292 18.2929C2.9694 20.6164 2.9694 24.3836 5.29292 26.7071C7.61645 29.0306 11.3836 29.0306 13.7071 26.7071L16 24.4142L18.2929 26.7071C20.6164 29.0306 24.3836 29.0306 26.7071 26.7071C29.0306 24.3836 29.0306 20.6164 26.7071 18.2929L24.4142 16L26.7071 13.7071ZM12.2929 6.70709C10.7504 5.16461 8.24959 5.16461 6.70712 6.70709C5.16465 8.24956 5.16464 10.7504 6.70711 12.2929L19.7071 25.2929C21.2496 26.8353 23.7504 26.8353 25.2929 25.2929C26.8354 23.7504 26.8354 21.2496 25.2929 19.7071L12.2929 6.70709ZM23 14.5858L17.4142 8.99998L19.7071 6.70709C21.2496 5.16461 23.7504 5.16461 25.2929 6.70708C26.8354 8.24956 26.8354 10.7504 25.2929 12.2929L23 14.5858ZM9.00003 17.4142L14.5858 23L12.2929 25.2929C10.7505 26.8353 8.24961 26.8353 6.70714 25.2929C5.16466 23.7504 5.16467 21.2495 6.70714 19.7071L9.00003 17.4142Z\"/>',viewBox:\"0 0 32 32\"},pill:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M26.2071 16.2071C29.0829 13.3313 29.0829 8.66865 26.2071 5.79284C23.3313 2.91703 18.6687 2.91704 15.7929 5.79284L5.7929 15.7928C2.9171 18.6686 2.91709 23.3312 5.7929 26.2071C8.66871 29.0829 13.3313 29.0829 16.2071 26.2071L26.2071 16.2071ZM24.7929 7.20705C26.8877 9.30181 26.8877 12.6981 24.7929 14.7928L20.5 19.0857L12.9142 11.5L17.2071 7.20706C19.3019 5.1123 22.6981 5.1123 24.7929 7.20705ZM11.5 12.9142L7.20712 17.2071C5.11236 19.3018 5.11236 22.6981 7.20711 24.7928C9.30187 26.8876 12.6981 26.8876 14.7929 24.7928L19.0858 20.5L11.5 12.9142Z\"/>',viewBox:\"0 0 32 32\"},stethoscope:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 3C8.55228 3 9 3.44772 9 4V6C9 6.55228 8.55228 7 8 7C7.44772 7 7 6.55228 7 6C6.44772 6 6 6.44772 6 7V16C6 18.2091 7.79086 20 10 20H12C14.2091 20 16 18.2091 16 16V7C16 6.44772 15.5523 6 15 6C15 6.55228 14.5523 7 14 7C13.4477 7 13 6.55228 13 6V4C13 3.44772 13.4477 3 14 3C14.5523 3 15 3.44772 15 4C16.6569 4 18 5.34315 18 7V16C18 19.3137 15.3137 22 12 22C12 25.3137 14.6863 28 18 28C21.3137 28 24 25.3137 24 22V13.8293C22.8348 13.4175 22 12.3062 22 11C22 9.34315 23.3431 8 25 8C26.6569 8 28 9.34315 28 11C28 12.3062 27.1652 13.4175 26 13.8293V22C26 26.4183 22.4183 30 18 30C13.5817 30 10 26.4183 10 22C6.68629 22 4 19.3137 4 16V7C4 5.34315 5.34315 4 7 4C7 3.44772 7.44772 3 8 3ZM25 12C25.5523 12 26 11.5523 26 11C26 10.4477 25.5523 10 25 10C24.4477 10 24 10.4477 24 11C24 11.5523 24.4477 12 25 12Z\" />',viewBox:\"0 0 32 32\"},fingerprint:{innerHTML:'<path stroke=\"none\" d=\"M23.9593 5.458C23.8504 5.458 23.7414 5.43 23.6462 5.374C21.0323 3.988 18.7724 3.4 16.0632 3.4C13.3677 3.4 10.8082 4.058 8.48027 5.374C8.15354 5.556 7.74512 5.43 7.55453 5.094C7.37755 4.758 7.50007 4.324 7.82681 4.142C10.359 2.728 13.1362 2 16.0632 2C18.963 2 21.4952 2.658 24.2724 4.128C24.6127 4.31 24.7353 4.73 24.5583 5.066C24.4358 5.318 24.2043 5.458 23.9593 5.458ZM4.47779 12.808C4.34165 12.808 4.20551 12.766 4.08298 12.682C3.76986 12.458 3.70179 12.024 3.91962 11.702C5.26739 9.742 6.98274 8.202 9.02483 7.124C13.2996 4.856 18.7724 4.842 23.0608 7.11C25.1028 8.188 26.8182 9.714 28.166 11.66C28.3838 11.968 28.3157 12.416 28.0026 12.64C27.6895 12.864 27.2675 12.794 27.0496 12.472C25.8244 10.708 24.2724 9.322 22.4345 8.356C18.5273 6.298 13.531 6.298 9.63745 8.37C7.78596 9.35 6.23398 10.75 5.00873 12.514C4.89982 12.71 4.69561 12.808 4.47779 12.808ZM12.9865 29.706C12.8095 29.706 12.6325 29.636 12.51 29.496C11.3256 28.278 10.6857 27.494 9.77359 25.8C8.83423 24.078 8.34413 21.978 8.34413 19.724C8.34413 15.566 11.8021 12.178 16.0496 12.178C20.2971 12.178 23.7551 15.566 23.7551 19.724C23.7551 20.116 23.4556 20.424 23.0744 20.424C22.6932 20.424 22.3937 20.116 22.3937 19.724C22.3937 16.336 19.5484 13.578 16.0496 13.578C12.5508 13.578 9.70552 16.336 9.70552 19.724C9.70552 21.74 10.1412 23.602 10.9716 25.114C11.8429 26.724 12.4419 27.41 13.4902 28.502C13.7489 28.782 13.7489 29.216 13.4902 29.496C13.3404 29.636 13.1635 29.706 12.9865 29.706ZM22.7476 27.116C21.1276 27.116 19.6981 26.696 18.5273 25.87C16.4989 24.456 15.2872 22.16 15.2872 19.724C15.2872 19.332 15.5867 19.024 15.9679 19.024C16.3491 19.024 16.6486 19.332 16.6486 19.724C16.6486 21.698 17.6288 23.56 19.2897 24.708C20.2563 25.38 21.3862 25.702 22.7476 25.702C23.0744 25.702 23.6189 25.66 24.1635 25.562C24.5311 25.492 24.885 25.744 24.9531 26.136C25.0212 26.514 24.7761 26.878 24.3949 26.948C23.6189 27.102 22.9382 27.116 22.7476 27.116ZM20.0112 30C19.9568 30 19.8887 29.986 19.8343 29.972C17.6697 29.356 16.2538 28.53 14.7699 27.032C12.8639 25.086 11.8157 22.496 11.8157 19.724C11.8157 17.456 13.6944 15.608 16.0088 15.608C18.3231 15.608 20.2018 17.456 20.2018 19.724C20.2018 21.222 21.4679 22.44 23.0335 22.44C24.5991 22.44 25.8652 21.222 25.8652 19.724C25.8652 14.446 21.4407 10.162 15.9951 10.162C12.1288 10.162 8.58918 12.374 6.99636 15.804C6.46542 16.938 6.19314 18.268 6.19314 19.724C6.19314 20.816 6.28844 22.538 7.10527 24.778C7.24141 25.142 7.06443 25.548 6.71047 25.674C6.3565 25.814 5.9617 25.618 5.83918 25.268C5.1721 23.434 4.84536 21.614 4.84536 19.724C4.84536 18.044 5.15848 16.518 5.77111 15.188C7.58176 11.282 11.5979 8.748 15.9951 8.748C22.1895 8.748 27.2266 13.662 27.2266 19.71C27.2266 21.978 25.3479 23.826 23.0335 23.826C20.7192 23.826 18.8404 21.978 18.8404 19.71C18.8404 18.212 17.5744 16.994 16.0088 16.994C14.4432 16.994 13.1771 18.212 13.1771 19.71C13.1771 22.104 14.0756 24.344 15.7229 26.024C17.0162 27.34 18.2551 28.068 20.1746 28.614C20.5422 28.712 20.7464 29.104 20.6511 29.468C20.583 29.79 20.2971 30 20.0112 30Z\" stroke=\"black\" stroke-width=\"0.4\"/><path stroke=\"none\" d=\"M16.0632 1.80005C13.1021 1.80005 10.2913 2.53679 7.72948 3.96733C7.30422 4.20427 7.15197 4.75895 7.37757 5.18726L7.38056 5.19273C7.62121 5.61697 8.14772 5.78822 8.57759 5.54877L8.57869 5.54816C10.8758 4.24958 13.4012 3.60005 16.0632 3.60005C18.7356 3.60005 20.9627 4.17808 23.5489 5.54884C23.6753 5.62216 23.818 5.65805 23.9593 5.65805C24.2832 5.65805 24.5818 5.47245 24.7367 5.15639C24.9618 4.72535 24.8048 4.18596 24.3667 3.95168C21.5632 2.46778 18.9984 1.80005 16.0632 1.80005Z\" /><path stroke=\"none\" d=\"M8.93127 6.94728C13.2643 4.64843 18.8072 4.63419 23.1543 6.93325C25.225 8.02641 26.9643 9.57401 28.3299 11.5455C28.6091 11.9413 28.5232 12.5135 28.119 12.8027C27.7166 13.0906 27.1671 13.0014 26.8847 12.5852C25.6771 10.847 24.1494 9.48337 22.3415 8.53308C18.4925 6.50576 13.5662 6.50591 9.73141 8.54661C7.91221 9.50951 6.38539 10.885 5.17826 12.6206C5.02681 12.8845 4.75158 13.008 4.47778 13.008C4.29963 13.008 4.12433 12.9529 3.96989 12.847L3.96659 12.8447C3.5607 12.5544 3.4786 11.997 3.75396 11.59L3.75481 11.5887C5.12023 9.60307 6.85969 8.04089 8.93127 6.94728Z\" /><path stroke=\"none\" d=\"M15.9951 8.54805C11.5219 8.54805 7.43386 11.1255 5.58965 15.1039C4.96337 16.4636 4.64536 18.0192 4.64536 19.7241C4.64536 21.6378 4.97633 23.4806 5.65084 25.3354C5.8091 25.7853 6.31717 26.0426 6.78084 25.8613C7.24519 25.6939 7.4643 25.1683 7.29287 24.7087C6.48664 22.4975 6.39313 20.8005 6.39313 19.7241C6.39313 18.2926 6.66085 16.9923 7.17748 15.8889C8.73641 12.5319 12.204 10.362 15.9951 10.362C21.3363 10.362 25.6652 14.5625 25.6652 19.7241C25.6652 21.104 24.4964 22.24 23.0335 22.24C21.5706 22.24 20.4018 21.104 20.4018 19.7241C20.4018 17.3422 18.4302 15.408 16.0088 15.408C13.5873 15.408 11.6157 17.3422 11.6157 19.7241C11.6157 22.5474 12.6838 25.188 14.627 27.172L14.6278 27.1728C16.1373 28.6966 17.5838 29.5396 19.7795 30.1644L19.7845 30.1658C19.8418 30.1805 19.9302 30.2001 20.0112 30.2001C20.3883 30.2001 20.756 29.9278 20.8458 29.5141C20.9633 29.0554 20.7088 28.5506 20.2279 28.4213C18.3405 27.8842 17.1328 27.1734 15.8657 25.884C14.256 24.2424 13.3771 22.0531 13.3771 19.7101C13.3771 18.3301 14.5458 17.194 16.0088 17.194C17.4717 17.194 18.6404 18.3301 18.6404 19.7101C18.6404 22.0919 20.6121 24.0261 23.0335 24.0261C25.4549 24.0261 27.4266 22.0919 27.4266 19.7101C27.4266 13.547 22.2953 8.54805 15.9951 8.54805Z\" /><path stroke=\"none\" d=\"M16.0496 11.9781C11.6955 11.9781 8.14413 15.4517 8.14413 19.7241C8.14413 22.0059 8.64012 24.1396 9.59777 25.8954C10.5193 27.6067 11.1707 28.4055 12.3632 29.632C12.5275 29.8171 12.7599 29.9061 12.9865 29.9061C13.2182 29.9061 13.443 29.8139 13.6268 29.6421L13.6321 29.6371L13.6371 29.6318C13.9665 29.2751 13.9665 28.723 13.6371 28.3663L13.6345 28.3635C12.594 27.2797 12.0076 26.6082 11.1475 25.0189L11.1469 25.0178C10.3353 23.5401 9.90552 21.7123 9.90552 19.7241C9.90552 16.4524 12.6553 13.778 16.0496 13.778C19.4439 13.778 22.1937 16.4524 22.1937 19.7241C22.1937 20.2212 22.5775 20.6241 23.0744 20.6241C23.5712 20.6241 23.9551 20.2212 23.9551 19.7241C23.9551 15.4517 20.4037 11.9781 16.0496 11.9781Z\" /><path stroke=\"none\" d=\"M15.9679 18.8241C15.471 18.8241 15.0872 19.2269 15.0872 19.7241C15.0872 22.2265 16.3317 24.5831 18.4125 26.0338C19.6215 26.8866 21.0924 27.3161 22.7476 27.3161C22.9453 27.3161 23.6395 27.3017 24.4324 27.1445C24.9231 27.0536 25.2365 26.585 25.1501 26.1018C25.0643 25.6078 24.6116 25.2738 24.1273 25.3654C23.5937 25.4613 23.0614 25.5021 22.7476 25.5021C21.42 25.5021 20.3316 25.1888 19.4039 24.5438C17.7961 23.4326 16.8486 21.6313 16.8486 19.7241C16.8486 19.2269 16.4648 18.8241 15.9679 18.8241Z\" />',viewBox:\"0 0 32 32\"},camera:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 11C12.6863 11 10 13.6863 10 17C10 20.3137 12.6863 23 16 23C19.3137 23 22 20.3137 22 17C22 13.6863 19.3137 11 16 11ZM12 17C12 14.7909 13.7909 13 16 13C18.2091 13 20 14.7909 20 17C20 19.2091 18.2091 21 16 21C13.7909 21 12 19.2091 12 17Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11 5C10.6212 5 10.275 5.214 10.1056 5.55279L8.88197 8H5C3.34315 8 2 9.34315 2 11V24C2 25.6569 3.34315 27 5 27H27C28.6569 27 30 25.6569 30 24V11C30 9.34315 28.6569 8 27 8H23.118L21.8944 5.55279C21.725 5.214 21.3788 5 21 5H11ZM10.3944 9.44721L11.618 7H20.382L21.6056 9.44721C21.775 9.786 22.1212 10 22.5 10H27C27.5523 10 28 10.4477 28 11V24C28 24.5523 27.5523 25 27 25H5C4.44772 25 4 24.5523 4 24V11C4 10.4477 4.44772 10 5 10H9.5C9.87877 10 10.225 9.786 10.3944 9.44721Z\"/>',viewBox:\"0 0 32 32\"},cameraSwitch:{innerHTML:'<path stroke=\"none\" d=\"M24.7929 11.2071C24.4024 10.8166 24.4024 10.1834 24.7929 9.7929L26.5858 8.00002L9.00001 8C7.34315 7.99999 6 9.34314 6 11L6 15C6 15.5523 5.55229 16 5 16C4.44772 16 4 15.5523 4 15L4 11C4 8.23857 6.23858 5.99999 9.00001 6L26.5858 6.00002L24.7929 4.20711C24.4024 3.81658 24.4024 3.18341 24.7929 2.79289C25.1834 2.40237 25.8166 2.40237 26.2071 2.7929L29.7071 6.29289C30.0976 6.68341 30.0976 7.31657 29.7071 7.7071L26.2071 11.2071C25.8166 11.5976 25.1834 11.5976 24.7929 11.2071Z\" /><path stroke=\"none\" d=\"M7.20711 22.2071C7.59763 21.8166 7.59763 21.1834 7.20711 20.7929C6.81658 20.4024 6.18342 20.4024 5.79289 20.7929L2.29289 24.2929C2.10536 24.4804 2 24.7348 2 25C2 25.2652 2.10536 25.5196 2.29289 25.7071L5.79289 29.2071C6.18342 29.5976 6.81658 29.5976 7.20711 29.2071C7.59763 28.8166 7.59763 28.1834 7.20711 27.7929L5.4142 26L23 26C25.7614 26 28 23.7614 28 21L28 17C28 16.4477 27.5523 16 27 16C26.4477 16 26 16.4477 26 17L26 21C26 22.6569 24.6569 24 23 24L5.41423 24L7.20711 22.2071Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 12C13.7909 12 12 13.7909 12 16C12 18.2091 13.7909 20 16 20C18.2091 20 20 18.2091 20 16C20 13.7909 18.2091 12 16 12ZM14 16C14 14.8954 14.8954 14 16 14C17.1046 14 18 14.8954 18 16C18 17.1046 17.1046 18 16 18C14.8954 18 14 17.1046 14 16Z\" />',viewBox:\"0 0 32 32\"},thermometer:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13 6C13.5523 6 14 6.44772 14 7V19.6449C15.4457 20.0752 16.5 21.4145 16.5 23C16.5 24.933 14.933 26.5 13 26.5C11.067 26.5 9.5 24.933 9.5 23C9.5 21.4145 10.5543 20.0752 12 19.6449V7C12 6.44772 12.4477 6 13 6ZM13 21.5C12.1716 21.5 11.5 22.1716 11.5 23C11.5 23.8284 12.1716 24.5 13 24.5C13.8284 24.5 14.5 23.8284 14.5 23C14.5 22.1716 13.8284 21.5 13 21.5Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 7C8 4.23858 10.2386 2 13 2C15.7614 2 18 4.23858 18 7V18.101C19.2361 19.3626 20 21.0926 20 23C20 26.866 16.866 30 13 30C9.13401 30 6 26.866 6 23C6 21.0926 6.76392 19.3626 8 18.101V7ZM9.99991 18.5134C10.0038 18.7927 9.89136 19.072 9.66691 19.2729C8.6424 20.1899 8 21.5193 8 23C8 25.7614 10.2386 28 13 28C15.7614 28 18 25.7614 18 23C18 21.5193 17.3576 20.1899 16.3331 19.2729C16.1086 19.072 15.9962 18.7927 16.0001 18.5134L16 18.5V7C16 5.34315 14.6569 4 13 4C11.3431 4 10 5.34315 10 7V18.5L9.99991 18.5134Z\"/><path stroke=\"none\" d=\"M21 6C20.4477 6 20 6.44772 20 7C20 7.55228 20.4477 8 21 8H24C24.5523 8 25 7.55228 25 7C25 6.44772 24.5523 6 24 6H21Z\"/><path stroke=\"none\" d=\"M20 11.5C20 10.9477 20.4477 10.5 21 10.5H27C27.5523 10.5 28 10.9477 28 11.5C28 12.0523 27.5523 12.5 27 12.5H21C20.4477 12.5 20 12.0523 20 11.5Z\"/><path stroke=\"none\" d=\"M21 15C20.4477 15 20 15.4477 20 16C20 16.5523 20.4477 17 21 17H24C24.5523 17 25 16.5523 25 16C25 15.4477 24.5523 15 24 15H21Z\"/>',viewBox:\"0 0 32 32\"},graph:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22 5C22 4.44772 22.4477 4 23 4H27C27.5523 4 28 4.44772 28 5V26H29C29.5523 26 30 26.4477 30 27C30 27.5523 29.5523 28 29 28H3C2.44772 28 2 27.5523 2 27C2 26.4477 2.44772 26 3 26H4V20C4 19.4477 4.44772 19 5 19H9C9.55228 19 10 19.4477 10 20V26H13V13C13 12.4477 13.4477 12 14 12H18C18.5523 12 19 12.4477 19 13V26H22V5ZM24 26H26V6H24V26ZM17 26V14H15V26H17ZM8 26V21H6V26H8Z\" />',viewBox:\"0 0 32 32\"},suitcase:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21.9161 7C21.7098 5.77967 21.1293 4.64395 20.2426 3.75725C19.1174 2.63199 17.5912 2 16 2C14.4087 2 12.8826 2.63199 11.7574 3.75725C10.8707 4.64395 10.2902 5.77967 10.0839 7H5C3.34315 7 2 8.34315 2 10V26C2 27.6569 3.34315 29 5 29H27C28.6569 29 30 27.6569 30 26V10C30 8.34315 28.6569 7 27 7H21.9161ZM16 4C14.9391 4 13.9217 4.42136 13.1716 5.17146C12.662 5.681 12.3041 6.31392 12.127 7H19.873C19.6958 6.31392 19.338 5.681 18.8284 5.17146C18.0783 4.42136 17.0609 4 16 4ZM10 9V27H22V9H10ZM24 9V27H27C27.5523 27 28 26.5523 28 26V10C28 9.44772 27.5523 9 27 9H24ZM8 27V9H5C4.44772 9 4 9.44772 4 10V26C4 26.5523 4.44772 27 5 27H8Z\"/>',viewBox:\"0 0 32 32\"},thumbUp:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6 14.5232C5.99868 14.4653 6.00243 14.4077 6.011 14.3511C6.05404 14.067 6.21868 13.807 6.47349 13.6497C6.52212 13.6195 6.57352 13.5934 6.62723 13.5718L9.67801 12.2643C11.79 11.3592 13.2699 9.40937 13.5736 7.13172L13.7764 5.61067C13.9757 4.11615 15.2505 3 16.7583 3C18.239 3 19.5609 4.09298 19.708 5.63429C19.9234 7.89222 19.7859 9.6871 18.9672 12H26.25C27.7688 12 29 13.2312 29 14.75C29 15.5633 28.6469 16.2942 28.0857 16.7977C28.3483 17.2191 28.5 17.7168 28.5 18.25C28.5 19.2227 27.995 20.0774 27.2329 20.5663C27.4041 20.9248 27.5 21.3262 27.5 21.75C27.5 22.7191 26.9988 23.571 26.2414 24.0608C26.4073 24.4124 26.5 24.8053 26.5 25.2198C26.5 26.7587 25.2244 27.9911 23.6864 27.9381L12.3084 27.5457C11.3455 27.5125 10.3887 27.3779 9.4539 27.1443L6.77776 26.4752C6.69682 26.4568 6.6196 26.4287 6.54743 26.392C6.41427 26.3246 6.30052 26.2293 6.21176 26.1154C6.12224 26.0009 6.05712 25.8664 6.02422 25.7198C6.00659 25.6418 5.99821 25.561 6 25.4791V14.5232ZM16.7583 5C16.2529 5 15.8256 5.37409 15.7588 5.87499L15.556 7.39604C15.1592 10.3722 13.2255 12.9199 10.4658 14.1026L8 15.1594V24.7192L9.93897 25.204C10.7375 25.4036 11.5548 25.5185 12.3773 25.5469L23.7554 25.9392C24.1624 25.9533 24.5 25.6271 24.5 25.2198C24.5 24.8223 24.1777 24.5 23.7802 24.5H23.5C22.9477 24.5 22.5 24.0523 22.5 23.5C22.5 22.9477 22.9477 22.5 23.5 22.5H23.7802C23.8261 22.5 23.8717 22.5011 23.9171 22.5034C23.9444 22.5011 23.9721 22.5 24 22.5H24.75C25.1642 22.5 25.5 22.1642 25.5 21.75C25.5 21.3358 25.1642 21 24.75 21H24.5C23.9477 21 23.5 20.5523 23.5 20C23.5 19.4477 23.9477 19 24.5 19H24.75C24.8024 19 24.8544 19.0015 24.9061 19.0044C24.937 19.0015 24.9683 19 25 19H25.75C26.1642 19 26.5 18.6642 26.5 18.25C26.5 17.8358 26.1642 17.5 25.75 17.5H25C24.4477 17.5 24 17.0523 24 16.5C24 15.9477 24.4477 15.5 25 15.5H26.25C26.6642 15.5 27 15.1642 27 14.75C27 14.3358 26.6642 14 26.25 14H17.5221C17.448 14.0017 17.3732 13.9951 17.2988 13.9797C17.1815 13.9558 17.0718 13.9113 16.9734 13.8503C16.8469 13.7721 16.7426 13.6687 16.6644 13.5496C16.5212 13.3313 16.4654 13.0604 16.5209 12.7958C16.536 12.7227 16.5592 12.6525 16.5894 12.5862C17.7513 9.86891 17.9413 8.17446 17.717 5.82428C17.6742 5.37581 17.2763 5 16.7583 5Z\" /><path stroke=\"none\" d=\"M5 14C5 13.4477 4.55228 13 4 13C3.44772 13 3 13.4477 3 14V26C3 26.5523 3.44772 27 4 27C4.55228 27 5 26.5523 5 26V14Z\" />',viewBox:\"0 0 32 32\"},thumbDown:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M26 17.4768C26.0013 17.5347 25.9976 17.5923 25.989 17.6489C25.9459 17.9331 25.7812 18.1931 25.5263 18.3505C25.4777 18.3806 25.4264 18.4067 25.3728 18.4282L22.322 19.7357C20.21 20.6409 18.7301 22.5906 18.4264 24.8683L18.2236 26.3893C18.0243 27.8839 16.7495 29 15.2417 29C13.761 29 12.4391 27.907 12.292 26.3657C12.0766 24.1078 12.2141 22.3129 13.0328 20H5.75C4.23122 20 3 18.7688 3 17.25C3 16.4367 3.35308 15.7058 3.91434 15.2023C3.65172 14.7809 3.5 14.2832 3.5 13.75C3.5 12.7773 4.00498 11.9226 4.76708 11.4337C4.59586 11.0752 4.5 10.6738 4.5 10.25C4.5 9.28095 5.00124 8.42896 5.7586 7.93916C5.59274 7.58757 5.50001 7.1947 5.50001 6.78017C5.50001 5.2413 6.77562 4.00892 8.31357 4.06195L19.6916 4.4543C20.6545 4.4875 21.6113 4.62207 22.5461 4.85576L25.2223 5.52481C25.3012 5.54272 25.3766 5.56996 25.4471 5.60531C25.5845 5.67379 25.7014 5.77182 25.7919 5.88932C25.879 6.00201 25.9425 6.13378 25.9751 6.27729C25.9932 6.3563 26.0018 6.43815 26 6.52124L26 17.4768ZM15.2417 27C15.7471 27 16.1744 26.6259 16.2412 26.125L16.444 24.604C16.8408 21.6278 18.7745 19.0801 21.5342 17.8974L24 16.8406V7.28079L22.061 6.79604C21.2625 6.59642 20.4452 6.48147 19.6227 6.45311L8.24465 6.06076C7.83761 6.04673 7.50001 6.37289 7.50001 6.78017C7.50001 7.17773 7.82229 7.50001 8.21984 7.50001H8.50001C9.05229 7.50001 9.50001 7.94773 9.50001 8.50001C9.50001 9.05229 9.05229 9.50001 8.50001 9.50001H8.21984C8.17393 9.50001 8.12828 9.49887 8.08292 9.49662C8.05557 9.49887 8.02792 9.50001 8 9.50001H7.25C6.83579 9.50001 6.5 9.8358 6.5 10.25C6.5 10.6642 6.83579 11 7.25 11H7.5C8.05228 11 8.5 11.4477 8.5 12C8.5 12.5523 8.05228 13 7.5 13H7.25C7.19762 13 7.14559 12.9985 7.09393 12.9957C7.06301 12.9985 7.03168 13 7 13H6.25C5.83578 13 5.5 13.3358 5.5 13.75C5.5 14.1638 5.83513 14.4994 6.24879 14.5H7C7.55228 14.5 8 14.9477 8 15.5C8 15.5345 7.99825 15.5686 7.99484 15.6023C7.94363 16.1065 7.51777 16.5 7 16.5H5.75C5.33578 16.5 5 16.8358 5 17.25C5 17.6642 5.33578 18 5.75 18H14.4779C14.5529 17.9983 14.6288 18.0051 14.7042 18.0209C14.8201 18.0449 14.9287 18.089 15.0261 18.1494C15.1534 18.2279 15.2582 18.332 15.3366 18.452C15.4791 18.67 15.5345 18.9403 15.4791 19.2042C15.464 19.2773 15.4408 19.3475 15.4106 19.4138C14.2487 22.1311 14.0587 23.8255 14.283 26.1757C14.3258 26.6242 14.7237 27 15.2417 27Z\"/><path stroke=\"none\" d=\"M27 18C27 18.5523 27.4477 19 28 19C28.5523 19 29 18.5523 29 18L29 6.00001C29 5.44773 28.5523 5.00001 28 5.00001C27.4477 5.00001 27 5.44773 27 6.00001L27 18Z\"/>',viewBox:\"0 0 32 32\"},deviceLaptop:{innerHTML:'<path stroke=\"none\" d=\"M16 8.5C15.4477 8.5 15 8.94772 15 9.5C15 10.0523 15.4477 10.5 16 10.5C16.5523 10.5 17 10.0523 17 9.5C17 8.94772 16.5523 8.5 16 8.5Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 5C4.44772 5 4 5.44772 4 6V21C2.89543 21 2 21.8954 2 23V25C2 26.1046 2.89543 27 4 27H28C29.1046 27 30 26.1046 30 25V23C30 21.8954 29.1046 21 28 21V6C28 5.44772 27.5523 5 27 5H5ZM26 21V7H6V21H26ZM4 23V25H28V23H4Z\" />',viewBox:\"0 0 32 32\"},deviceSmartphone:{innerHTML:'<path stroke=\"none\" d=\"M13.5 6C13.5 5.44772 13.9477 5 14.5 5H17.5C18.0523 5 18.5 5.44772 18.5 6C18.5 6.55228 18.0523 7 17.5 7H14.5C13.9477 7 13.5 6.55228 13.5 6Z\"/><path stroke=\"none\" d=\"M16 24C15.1716 24 14.5 24.6716 14.5 25.5C14.5 26.3284 15.1716 27 16 27C16.8284 27 17.5 26.3284 17.5 25.5C17.5 24.6716 16.8284 24 16 24Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10 2C8.34315 2 7 3.34315 7 5V27C7 28.6569 8.34315 30 10 30H22C23.6569 30 25 28.6569 25 27V5C25 3.34315 23.6569 2 22 2H10ZM9 5C9 4.44772 9.44772 4 10 4H22C22.5523 4 23 4.44772 23 5V27C23 27.5523 22.5523 28 22 28H10C9.44772 28 9 27.5523 9 27V5Z\"/>',viewBox:\"0 0 32 32\"},deviceTablet:{innerHTML:'<path stroke=\"none\" d=\"M13.5 6C13.5 5.44772 13.9477 5 14.5 5H17.5C18.0523 5 18.5 5.44772 18.5 6C18.5 6.55228 18.0523 7 17.5 7H14.5C13.9477 7 13.5 6.55228 13.5 6Z\" /><path stroke=\"none\" d=\"M16 24C15.1716 24 14.5 24.6716 14.5 25.5C14.5 26.3284 15.1716 27 16 27C16.8284 27 17.5 26.3284 17.5 25.5C17.5 24.6716 16.8284 24 16 24Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 2C6.34315 2 5 3.34315 5 5V27C5 28.6569 6.34315 30 8 30H24C25.6569 30 27 28.6569 27 27V5C27 3.34315 25.6569 2 24 2H8ZM7 5C7 4.44772 7.44772 4 8 4H24C24.5523 4 25 4.44772 25 5V27C25 27.5523 24.5523 28 24 28H8C7.44772 28 7 27.5523 7 27V5Z\" />',viewBox:\"0 0 32 32\"},medicalPlusThin:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11 11V7C11 4.23858 13.2386 2 16 2C18.7614 2 21 4.23858 21 7V11H25C27.7614 11 30 13.2386 30 16C30 18.7614 27.7614 21 25 21H21V25C21 27.7614 18.7614 30 16 30C13.2386 30 11 27.7614 11 25V21H6.99999C4.23857 21 2 18.7614 2 16C2 13.2386 4.23859 11 7.00002 11L11 11ZM13 7C13 5.34315 14.3431 4 16 4C17.6569 4 19 5.34315 19 7V13H25C26.6569 13 28 14.3431 28 16C28 17.6569 26.6569 19 25 19H19V25C19 26.6569 17.6569 28 16 28C14.3431 28 13 26.6569 13 25V19H6.99999C5.34314 19 4 17.6569 4 16C4 14.3432 5.34315 13 7.00001 13L13 13V7Z\"/>',viewBox:\"0 0 32 32\"},videoBackground:{innerHTML:'<path stroke=\"none\" d=\"M4 7C4 6.44772 4.44771 6 5 6H27C27.5523 6 28 6.44772 28 7V25C28 25.5523 27.5523 26 27 26H26C25.4477 26 25 26.4477 25 27C25 27.5523 25.4477 28 26 28H27C28.6569 28 30 26.6569 30 25V7C30 5.34315 28.6569 4 27 4H5C3.34315 4 2 5.34314 2 7V25C2 26.6569 3.34315 28 5 28H6C6.55228 28 7 27.5523 7 27C7 26.4477 6.55228 26 6 26H5C4.44772 26 4 25.5523 4 25V7Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 13C12 10.7909 13.7909 9 16 9C18.2091 9 20 10.7909 20 13C20 15.2091 18.2091 17 16 17C13.7909 17 12 15.2091 12 13ZM16 11C14.8954 11 14 11.8954 14 13C14 14.1046 14.8954 15 16 15C17.1046 15 18 14.1046 18 13C18 11.8954 17.1046 11 16 11Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16.0095 18C17.1894 18.0009 18.487 18.0863 19.2387 18.3032C22.3343 19.1962 24 21.5934 24 24.4V26C24 27.1046 23.1046 28 22 28H10C8.89543 28 8 27.1046 8 26V24.4C8 21.5934 9.66573 19.1962 12.7613 18.3032C13.5254 18.0828 14.8294 17.9992 16.0095 18ZM16.0081 20C14.8368 19.9992 13.7834 20.0899 13.3156 20.2248C11.0676 20.8733 10 22.4934 10 24.4V26H22V24.4C22 22.4934 20.9324 20.8733 18.6844 20.2248C18.2276 20.0931 17.1796 20.0008 16.0081 20Z\"/>',viewBox:\"0 0 32 32\"},archive:{innerHTML:'<path stroke=\"none\" d=\"M5 4C4.44772 4 4 4.44772 4 5C4 5.55228 4.44772 6 5 6H27C27.5523 6 28 5.55228 28 5C28 4.44772 27.5523 4 27 4H5Z\" /><path stroke=\"none\" d=\"M4 10C4 9.44772 4.44772 9 5 9H27C27.5523 9 28 9.44772 28 10C28 10.5523 27.5523 11 27 11H5C4.44772 11 4 10.5523 4 10Z\" /><path stroke=\"none\" d=\"M4 15C4 14.4477 4.44772 14 5 14H27C27.5523 14 28 14.4477 28 15C28 15.5523 27.5523 16 27 16H5C4.44772 16 4 15.5523 4 15Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 20C2 19.4477 2.44772 19 3 19H13C13.5523 19 14 19.4477 14 20C14 21.1046 14.8954 22 16 22C17.1046 22 18 21.1046 18 20C18 19.4477 18.4477 19 19 19H29C29.5523 19 30 19.4477 30 20V25C30 26.6569 28.6569 28 27 28H5C3.34315 28 2 26.6569 2 25V20ZM19.874 21C19.4299 22.7252 17.8638 24 16 24C14.1362 24 12.5701 22.7252 12.126 21H4V25C4 25.5523 4.44772 26 5 26H27C27.5523 26 28 25.5523 28 25V21H19.874Z\" />',viewBox:\"0 0 32 32\"},secureConnection:{innerHTML:'<path stroke=\"none\" d=\"M15.9333 11C13.5969 11 11.3569 11.9311 9.70883 13.5872C9.31926 13.9787 8.6861 13.9802 8.29462 13.5906C7.90315 13.2011 7.9016 12.5679 8.29117 12.1764C10.3146 10.1431 13.0648 9 15.9333 9C18.8019 9 21.5521 10.1431 23.5755 12.1764C23.9651 12.5679 23.9635 13.2011 23.572 13.5906C23.1806 13.9802 22.5474 13.9787 22.1578 13.5872C20.5098 11.9311 18.2697 11 15.9333 11Z\"/><path stroke=\"none\" d=\"M11.7347 17.108C12.8458 15.994 14.3546 15.3679 15.928 15.3679C17.5014 15.3679 19.0102 15.994 20.1213 17.108C20.5114 17.499 21.1445 17.4998 21.5355 17.1098C21.9266 16.7198 21.9274 16.0866 21.5374 15.6956C20.051 14.2054 18.0327 13.3679 15.928 13.3679C13.8233 13.3679 11.805 14.2054 10.3187 15.6956C9.92864 16.0866 9.92945 16.7198 10.3205 17.1098C10.7115 17.4998 11.3447 17.499 11.7347 17.108Z\"/><path stroke=\"none\" d=\"M15.9333 18.1964C15.0865 18.1964 14.4 18.8829 14.4 19.7297C14.4 20.5766 15.0865 21.2631 15.9333 21.2631C16.7802 21.2631 17.4667 20.5766 17.4667 19.7297C17.4667 18.8829 16.7802 18.1964 15.9333 18.1964Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.78617 6.11992C11.4332 0.626694 20.616 0.626694 27.263 6.11992C27.4417 6.26761 27.5636 6.47282 27.6077 6.70043C27.8859 8.13555 28.0169 9.59984 27.9983 11.0662C28.0021 19.298 23.4555 26.7751 16.4059 29.9136C16.1473 30.0287 15.8519 30.0288 15.5931 29.9138C8.53864 26.779 3.98994 19.2968 4.00016 11.0614C3.99434 9.58925 4.14337 8.12095 4.44451 6.68544C4.49103 6.46367 4.6115 6.26427 4.78617 6.11992ZM6.33293 7.44093C6.10685 8.62907 5.99519 9.84079 6.00016 11.0559L6.00018 11.0614C5.99013 18.4254 9.96701 25.0116 15.9988 27.8986C22.0283 25.0078 26.0039 18.4237 25.9983 11.0608L25.9982 11.047C26.014 9.835 25.9173 8.62491 25.7096 7.43564C19.9191 2.85302 12.1219 2.85479 6.33293 7.44093Z\"/>',viewBox:\"0 0 32 32\"},treeChart:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 7C12 5.34315 13.3431 4 15 4H17C18.6569 4 20 5.34315 20 7V9C20 10.6569 18.6569 12 17 12V15H24C25.6569 15 27 16.3431 27 18V20C28.6569 20 30 21.3431 30 23V25C30 26.6569 28.6569 28 27 28H25C23.3431 28 22 26.6569 22 25V23C22 21.3431 23.3431 20 25 20V18C25 17.4477 24.5523 17 24 17H17V20C18.6569 20 20 21.3431 20 23V25C20 26.6569 18.6569 28 17 28H15C13.3431 28 12 26.6569 12 25V23C12 21.3431 13.3431 20 15 20V17H8C7.44772 17 7 17.4477 7 18V20C8.65685 20 10 21.3431 10 23V25C10 26.6569 8.65685 28 7 28H5C3.34315 28 2 26.6569 2 25V23C2 21.3431 3.34315 20 5 20V18C5 16.3431 6.34315 15 8 15H15V12C13.3431 12 12 10.6569 12 9V7ZM25 22C24.4477 22 24 22.4477 24 23V25C24 25.5523 24.4477 26 25 26H27C27.5523 26 28 25.5523 28 25V23C28 22.4477 27.5523 22 27 22H25ZM5 22H7C7.55228 22 8 22.4477 8 23V25C8 25.5523 7.55228 26 7 26H5C4.44772 26 4 25.5523 4 25V23C4 22.4477 4.44772 22 5 22ZM15 22C14.4477 22 14 22.4477 14 23V25C14 25.5523 14.4477 26 15 26H17C17.5523 26 18 25.5523 18 25V23C18 22.4477 17.5523 22 17 22H15ZM15 6C14.4477 6 14 6.44772 14 7V9C14 9.55228 14.4477 10 15 10H17C17.5523 10 18 9.55228 18 9V7C18 6.44772 17.5523 6 17 6H15Z\"/>',viewBox:\"0 0 32 32\"},linkIn:{innerHTML:'<path stroke=\"none\" d=\"M7 28C5.34315 28 4 26.6569 4 25V7C4 5.34314 5.34315 4 7 4H16C16.5523 4 17 4.44772 17 5C17 5.55228 16.5523 6 16 6L7 6C6.44772 6 6 6.44772 6 7L6 25C6 25.5523 6.44772 26 7 26H25C25.5523 26 26 25.5523 26 25L26 16C26 15.4477 26.4477 15 27 15C27.5523 15 28 15.4477 28 16L28 25C28 26.6569 26.6569 28 25 28H7Z\" /><path stroke=\"none\" d=\"M14 11C14.5523 11 15 11.4477 15 12L15 15.5858L24.2929 6.2929C24.6834 5.90237 25.3166 5.90237 25.7071 6.2929C26.0976 6.68342 26.0976 7.31658 25.7071 7.70711L16.4142 17L20 17C20.5523 17 21 17.4477 21 18C21 18.5523 20.5523 19 20 19L14 19C13.4477 19 13 18.5523 13 18L13 12C13 11.4477 13.4477 11 14 11Z\" />',viewBox:\"0 0 32 32\"},linkOut:{innerHTML:'<path stroke=\"none\" d=\"M27 12C26.4477 12 26 11.5523 26 11V7.41421L16.7071 16.7071C16.3166 17.0976 15.6834 17.0976 15.2929 16.7071C14.9024 16.3166 14.9024 15.6834 15.2929 15.2929L24.5858 6L21 6C20.4477 6 20 5.55228 20 5C20 4.44771 20.4477 4 21 4H27C27.5523 4 28 4.44772 28 5V11C28 11.5523 27.5523 12 27 12Z\"/><path stroke=\"none\" d=\"M8 27C6.34315 27 5 25.6569 5 24V8C5 6.34315 6.34315 5 8 5L16 5C16.5523 5 17 5.44772 17 6C17 6.55229 16.5523 7 16 7L8 7C7.44772 7 7 7.44772 7 8L7 24C7 24.5523 7.44772 25 8 25H24C24.5523 25 25 24.5523 25 24V16C25 15.4477 25.4477 15 26 15C26.5523 15 27 15.4477 27 16V24C27 25.6569 25.6568 27 24 27H8Z\"/>',viewBox:\"0 0 32 32\"},heart:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M27.5857 7.16734C30.3933 9.97494 30.3933 14.5269 27.5857 17.3345L16.7949 28.1254C16.7694 28.1582 16.7416 28.1897 16.7115 28.2199C16.3209 28.6104 15.6878 28.6104 15.2973 28.2199L4.41959 17.3422C1.61169 14.5343 1.61168 9.98176 4.41959 7.17385C7.2273 4.36615 11.7794 4.36592 14.5874 7.17334L16.0001 8.58572L17.4186 7.16725C20.2262 4.35974 24.7782 4.35978 27.5857 7.16734ZM15.2799 10.6938C15.2842 10.6982 15.2885 10.7027 15.2929 10.7071C15.6834 11.0976 16.3166 11.0976 16.7071 10.7071L18.8328 8.58149C20.8593 6.555 24.145 6.55504 26.1715 8.58156C28.198 10.6081 28.198 13.8938 26.1715 15.9203L15.9988 26.093L5.83381 15.928C3.80695 13.9011 3.80694 10.6149 5.8338 8.58807C7.86052 6.56135 11.1464 6.56119 13.1733 8.5877L15.2799 10.6938Z\"/>',viewBox:\"0 0 32 32\"},translate:{innerHTML:'<path stroke=\"none\" d=\"M17 4C15.3431 4 14 5.34315 14 7V10C14 10.5523 14.4477 11 15 11C15.5523 11 16 10.5523 16 10V7C16 6.44772 16.4477 6 17 6H27C27.5523 6 28 6.44772 28 7V17C28 17.5523 27.5523 18 27 18H20C19.4477 18 19 18.4477 19 19C19 19.5523 19.4477 20 20 20H27C28.6569 20 30 18.6569 30 17V7C30 5.34315 28.6569 4 27 4H17Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22 8C22.1894 8 22.3625 8.107 22.4472 8.27639L24.9426 13.2671C24.9459 13.2734 24.9491 13.2799 24.9522 13.2864L25.9472 15.2764C26.0707 15.5234 25.9706 15.8237 25.7236 15.9472C25.4766 16.0707 25.1763 15.9706 25.0528 15.7236L24.191 14H19.809L19.6972 14.2236C19.5737 14.4706 19.2734 14.5707 19.0264 14.4472C18.7794 14.3237 18.6793 14.0234 18.8028 13.7764L19.0479 13.2861C19.0509 13.2798 19.054 13.2735 19.0573 13.2673L21.5528 8.27639C21.6375 8.107 21.8106 8 22 8ZM20.309 13H23.691L22 9.61803L20.309 13Z\"/><path stroke=\"none\" d=\"M10.5 16.5C10.5 16.2239 10.2761 16 10 16C9.72386 16 9.5 16.2239 9.5 16.5V18H7C6.72386 18 6.5 18.2239 6.5 18.5C6.5 18.7761 6.72386 19 7 19H11.619L6.6799 23.1159C6.46777 23.2927 6.4391 23.608 6.61589 23.8201C6.79267 24.0322 7.10795 24.0609 7.32009 23.8841L9.49408 22.0725L12.7519 23.9341C12.9917 24.0711 13.2971 23.9878 13.4341 23.748C13.5711 23.5083 13.4878 23.2028 13.2481 23.0658L10.314 21.3892L13.3182 18.8857L13.3261 18.879C13.3822 18.8308 13.4251 18.7726 13.4542 18.7094C13.4817 18.6497 13.4979 18.5837 13.4998 18.5141C13.5005 18.4907 13.4995 18.4673 13.4969 18.4439C13.4952 18.4288 13.4928 18.4139 13.4898 18.3992C13.4712 18.308 13.4276 18.2257 13.3666 18.16C13.3238 18.1138 13.2741 18.0774 13.2203 18.051C13.1539 18.0184 13.0791 18 13 18H10.5V16.5Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 15C2 13.3431 3.34315 12 5 12H15C16.6569 12 18 13.3431 18 15V25C18 26.6569 16.6569 28 15 28H5C3.34315 28 2 26.6569 2 25V15ZM5 14C4.44772 14 4 14.4477 4 15V25C4 25.5523 4.44772 26 5 26H15C15.5523 26 16 25.5523 16 25V15C16 14.4477 15.5523 14 15 14H5Z\"/>',viewBox:\"0 0 32 32\"},translateCrossed:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.4472 8.27639C22.3625 8.107 22.1894 8 22 8C21.8106 8 21.6375 8.107 21.5528 8.27639L19.0573 13.2673C19.054 13.2735 19.0509 13.2798 19.0479 13.2861L18.0528 15.2764C17.9293 15.5234 18.0294 15.8237 18.2764 15.9472C18.5234 16.0707 18.8237 15.9706 18.9472 15.7236L19.809 14H24.191L25.0528 15.7236C25.1763 15.9706 25.4766 16.0707 25.7236 15.9472C25.9706 15.8237 26.0707 15.5234 25.9472 15.2764L24.9522 13.2864C24.9491 13.2799 24.9459 13.2734 24.9426 13.2671L22.4472 8.27639ZM22 9.61803L23.691 13H20.309L22 9.61803Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.70711 4.29289C5.31658 3.90237 4.68342 3.90237 4.29289 4.29289C3.90237 4.68342 3.90237 5.31658 4.29289 5.70711L26.2929 27.7071C26.6834 28.0976 27.3166 28.0976 27.7071 27.7071C28.0976 27.3166 28.0976 26.6834 27.7071 26.2929L21.4142 20H27C28.6569 20 30 18.6569 30 17V7C30 5.34315 28.6569 4 27 4H17C15.3431 4 14 5.34315 14 7V12.5858L5.70711 4.29289ZM15.9967 14.5824L19.4142 18H27C27.5523 18 28 17.5523 28 17V7C28 6.44772 27.5523 6 27 6H17C16.4477 6 16 6.44772 16 7V14.5C16 14.5278 15.9989 14.5553 15.9967 14.5824Z\"/><path stroke=\"none\" d=\"M10 16C10.2761 16 10.5 16.2239 10.5 16.5V18H13C13.0769 18 13.1498 18.0174 13.2149 18.0484C13.2742 18.0766 13.3289 18.117 13.3749 18.1692C13.3954 18.1923 13.4137 18.2174 13.4296 18.244C13.4822 18.3321 13.505 18.4318 13.4991 18.5297C13.4956 18.5902 13.4813 18.6478 13.4581 18.7006C13.428 18.7695 13.3818 18.8327 13.3201 18.8841L10.314 21.3892L13.2481 23.0658C13.4878 23.2028 13.5711 23.5083 13.4341 23.748C13.2971 23.9878 12.9917 24.0711 12.7519 23.9341L9.49409 22.0725L7.3201 23.8841C7.10797 24.0609 6.79268 24.0322 6.6159 23.8201C6.43912 23.608 6.46778 23.2927 6.67992 23.1159L11.619 19H7C6.72386 19 6.5 18.7761 6.5 18.5C6.5 18.2239 6.72386 18 7 18H9.5V16.5C9.5 16.2239 9.72386 16 10 16Z\"/><path stroke=\"none\" d=\"M4 15C4 14.4477 4.44772 14 5 14H8.5C9.05228 14 9.5 13.5523 9.5 13C9.5 12.4477 9.05228 12 8.5 12H5C3.34315 12 2 13.3431 2 15V25C2 26.6569 3.34315 28 5 28H15C16.6569 28 18 26.6569 18 25V21.5C18 20.9477 17.5523 20.5 17 20.5C16.4477 20.5 16 20.9477 16 21.5V25C16 25.5523 15.5523 26 15 26H5C4.44772 26 4 25.5523 4 25V15Z\"/>',viewBox:\"0 0 32 32\"},envelope:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 6C3.34315 6 2 7.34315 2 9V23C2 24.6569 3.34315 26 5 26H27C28.6569 26 30 24.6569 30 23V9C30 7.34315 28.6569 6 27 6H5ZM4 9.25006V22.2562L9.97002 13.7276L4 9.25006ZM26.7794 24H5.22063L11.5709 14.9282L15.4 17.8001C15.7556 18.0667 16.2444 18.0667 16.6 17.8001L20.4291 14.9282L26.7794 24ZM28 22.2562V9.25006L22.03 13.7276L28 22.2562ZM5.66659 8L16 15.7501L26.3334 8H5.66659Z\" />',viewBox:\"0 0 32 32\"},paragraph:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22 5C22 4.44772 22.4477 4 23 4H27C27.5523 4 28 4.44772 28 5V26H29C29.5523 26 30 26.4477 30 27C30 27.5523 29.5523 28 29 28H3C2.44772 28 2 27.5523 2 27C2 26.4477 2.44772 26 3 26H4V20C4 19.4477 4.44772 19 5 19H9C9.55228 19 10 19.4477 10 20V26H13V13C13 12.4477 13.4477 12 14 12H18C18.5523 12 19 12.4477 19 13V26H22V5ZM24 26H26V6H24V26ZM17 26V14H15V26H17ZM8 26V21H6V26H8Z\" />',viewBox:\"0 0 32 32\"},smartphoneSms:{innerHTML:'<path stroke=\"none\" d=\"M10.5 6C10.5 5.44772 10.9477 5 11.5 5H14.5C15.0523 5 15.5 5.44772 15.5 6C15.5 6.55228 15.0523 7 14.5 7H11.5C10.9477 7 10.5 6.55228 10.5 6Z\"/><path stroke=\"none\" d=\"M13 24C12.1716 24 11.5 24.6716 11.5 25.5C11.5 26.3284 12.1716 27 13 27C13.8284 27 14.5 26.3284 14.5 25.5C14.5 24.6716 13.8284 24 13 24Z\"/><path stroke=\"none\" d=\"M17.5 15.9998C18.0523 15.9998 18.5 15.552 18.5 14.9998C18.5 14.4475 18.0523 13.9998 17.5 13.9998C16.9478 13.9998 16.5 14.4475 16.5 14.9998C16.5 15.552 16.9478 15.9998 17.5 15.9998Z\"/><path stroke=\"none\" d=\"M22.5 15C22.5 15.5523 22.0523 16 21.5 16C20.9477 16 20.5 15.5523 20.5 15C20.5 14.4477 20.9477 14 21.5 14C22.0523 14 22.5 14.4477 22.5 15Z\"/><path stroke=\"none\" d=\"M25.5 16C26.0523 16 26.5 15.5523 26.5 15C26.5 14.4477 26.0523 14 25.5 14C24.9477 14 24.5 14.4477 24.5 15C24.5 15.5523 24.9477 16 25.5 16Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7 2C5.34315 2 4 3.34315 4 5V27C4 28.6569 5.34315 30 7 30H19C20.6569 30 22 28.6569 22 27V21.25H27C28.6569 21.25 30 19.9069 30 18.25V11C30 9.34315 28.6569 8 27 8H22V5C22 3.34315 20.6569 2 19 2H7ZM18.4872 24.6757L20 23.0253V27C20 27.5523 19.5523 28 19 28H7C6.44772 28 6 27.5523 6 27V5C6 4.44772 6.44772 4 7 4H19C19.5523 4 20 4.44772 20 5V8H16C14.3431 8 13 9.34315 13 11V18.25C13 19.9069 14.3431 21.25 16 21.25H16.75V24C16.75 24.4124 17.0031 24.7825 17.3875 24.932C17.7718 25.0815 18.2085 24.9797 18.4872 24.6757ZM16 10C15.4477 10 15 10.4477 15 11V18.25C15 18.8023 15.4477 19.25 16 19.25H17.75C18.3023 19.25 18.75 19.6977 18.75 20.25V21.4292L20.4503 19.5743C20.6398 19.3676 20.9072 19.25 21.1875 19.25H27C27.5523 19.25 28 18.8023 28 18.25V11C28 10.4477 27.5523 10 27 10H16Z\"/>',viewBox:\"0 0 32 32\"},checkCircle:{innerHTML:'<path stroke=\"none\" d=\"M23.7071 12.7071C24.0976 12.3166 24.0976 11.6834 23.7071 11.2929C23.3166 10.9024 22.6834 10.9024 22.2929 11.2929L13.5 20.0858L9.20711 15.7929C8.81658 15.4024 8.18342 15.4024 7.79289 15.7929C7.40237 16.1834 7.40237 16.8166 7.79289 17.2071L12.7929 22.2071C13.1834 22.5976 13.8166 22.5976 14.2071 22.2071L23.7071 12.7071Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 2C8.26801 2 2 8.26801 2 16C2 23.732 8.26801 30 16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2ZM4 16C4 9.37258 9.37258 4 16 4C22.6274 4 28 9.37258 28 16C28 22.6274 22.6274 28 16 28C9.37258 28 4 22.6274 4 16Z\" />',viewBox:\"0 0 32 32\"},xCircle:{innerHTML:'<path stroke=\"none\" d=\"M10.2929 10.2929C10.6834 9.90237 11.3166 9.90237 11.7071 10.2929L16 14.5858L20.2929 10.2929C20.6834 9.90237 21.3166 9.90237 21.7071 10.2929C22.0976 10.6834 22.0976 11.3166 21.7071 11.7071L17.4142 16L21.7071 20.2929C22.0976 20.6834 22.0976 21.3166 21.7071 21.7071C21.3166 22.0976 20.6834 22.0976 20.2929 21.7071L16 17.4142L11.7071 21.7071C11.3166 22.0976 10.6834 22.0976 10.2929 21.7071C9.90237 21.3166 9.90237 20.6834 10.2929 20.2929L14.5858 16L10.2929 11.7071C9.90237 11.3166 9.90237 10.6834 10.2929 10.2929Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 16C2 8.26801 8.26801 2 16 2C23.732 2 30 8.26801 30 16C30 23.732 23.732 30 16 30C8.26801 30 2 23.732 2 16ZM16 4C9.37258 4 4 9.37258 4 16C4 22.6274 9.37258 28 16 28C22.6274 28 28 22.6274 28 16C28 9.37258 22.6274 4 16 4Z\" />',viewBox:\"0 0 32 32\"},plusCircle:{innerHTML:'<path stroke=\"none\" d=\"M16 8C16.5523 8 17 8.44772 17 9V15H23C23.5523 15 24 15.4477 24 16C24 16.5523 23.5523 17 23 17H17V23C17 23.5523 16.5523 24 16 24C15.4477 24 15 23.5523 15 23V17H9C8.44772 17 8 16.5523 8 16C8 15.4477 8.44772 15 9 15H15V9C15 8.44772 15.4477 8 16 8Z\" ><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 16C2 8.26801 8.26801 2 16 2C23.732 2 30 8.26801 30 16C30 23.732 23.732 30 16 30C8.26801 30 2 23.732 2 16ZM16 4C9.37258 4 4 9.37258 4 16C4 22.6274 9.37258 28 16 28C22.6274 28 28 22.6274 28 16C28 9.37258 22.6274 4 16 4Z\" >',viewBox:\"0 0 32 32\"},questionMarkCircle:{innerHTML:'<path stroke=\"none\" d=\"M11.6667 11.9999C11.6667 9.97523 13.5979 8.33325 16 8.33325C17.2272 8.33325 18.3277 8.7467 19.1238 9.54281C19.9199 10.3389 20.3333 11.4393 20.3333 12.6666C20.3333 13.4401 20.015 14.1344 19.6445 14.69C19.2691 15.2532 18.7871 15.7536 18.3356 16.1599C17.8801 16.5698 17.4291 16.9077 17.0943 17.1421C17.0618 17.1648 17.0303 17.1866 17 17.2075V18.6666C17 19.2189 16.5523 19.6666 16 19.6666C15.4477 19.6666 15 19.2189 15 18.6666V16.6666C15 16.3156 15.184 15.9904 15.4847 15.8096L15.489 15.807L15.5105 15.7937C15.5305 15.7813 15.5617 15.7617 15.6025 15.7356C15.684 15.6831 15.8032 15.6045 15.9474 15.5036C16.2375 15.3005 16.6199 15.0133 16.9977 14.6733C17.3796 14.3296 17.7309 13.955 17.9804 13.5806C18.235 13.1988 18.3333 12.8931 18.3333 12.6666C18.3333 11.8938 18.0801 11.3276 17.7095 10.957C17.339 10.5865 16.7727 10.3333 16 10.3333C14.4021 10.3333 13.6667 11.3579 13.6667 11.9999C13.6667 12.5522 13.2189 12.9999 12.6667 12.9999C12.1144 12.9999 11.6667 12.5522 11.6667 11.9999Z\"/><path stroke=\"none\" d=\"M17.3333 22.6666C17.3333 23.403 16.7364 23.9999 16 23.9999C15.2636 23.9999 14.6667 23.403 14.6667 22.6666C14.6667 21.9302 15.2636 21.3333 16 21.3333C16.7364 21.3333 17.3333 21.9302 17.3333 22.6666Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 2C8.26801 2 2 8.26801 2 16C2 23.732 8.26801 30 16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2ZM4 16C4 9.37258 9.37258 4 16 4C22.6274 4 28 9.37258 28 16C28 22.6274 22.6274 28 16 28C9.37258 28 4 22.6274 4 16Z\"/>',viewBox:\"0 0 32 32\"},inbox:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 25C4 26.6569 5.34315 28 7 28H25C26.6569 28 28 26.6569 28 25V10C28 8.34315 26.6569 7 25 7H22C21.4477 7 21 7.44772 21 8C21 8.55229 21.4477 9 22 9H25C25.5523 9 26 9.44772 26 10V19H22.118C21.3605 19 20.668 19.428 20.3292 20.1056L19.382 22H12.618L11.6708 20.1056C11.332 19.428 10.6395 19 9.88197 19H6L6 10C6 9.44772 6.44772 9 7 9H10C10.5523 9 11 8.55229 11 8C11 7.44772 10.5523 7 10 7H7C5.34315 7 4 8.34315 4 10L4 25ZM6 21L6 25C6 25.5523 6.44772 26 7 26H25C25.5523 26 26 25.5523 26 25V21H22.118L21.1708 22.8944C20.832 23.572 20.1395 24 19.382 24H12.618C11.8605 24 11.168 23.572 10.8292 22.8944L9.88197 21H6Z\"/><path stroke=\"none\" d=\"M17 4C17 3.44772 16.5523 3 16 3C15.4477 3 15 3.44772 15 4L15 14.5858L12.7071 12.2929C12.3166 11.9024 11.6834 11.9024 11.2929 12.2929C10.9024 12.6834 10.9024 13.3166 11.2929 13.7071L15.2929 17.7071C15.6834 18.0976 16.3166 18.0976 16.7071 17.7071L20.7071 13.7071C21.0976 13.3166 21.0976 12.6834 20.7071 12.2929C20.3166 11.9024 19.6834 11.9024 19.2929 12.2929L17 14.5858L17 4Z\"/>',viewBox:\"0 0 32 32\"},clockArrow:{innerHTML:'<path d=\"M17 28C23.6274 28 29 22.6274 29 16C29 9.37258 23.6274 4 17 4C10.3726 4 5 9.37258 5 16\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M17 9V16L21 20\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M2.5 14L5 17L8 14.5\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>',viewBox:\"0 0 32 32\"},arrowRoundRight:{innerHTML:'<path stroke=\"none\" d=\"M25.9366 14.8122C25.3443 9.29567 20.6738 5 15 5C8.92487 5 4 9.92487 4 16C4 22.0751 8.92487 27 15 27C15.5523 27 16 27.4477 16 28C16 28.5523 15.5523 29 15 29C7.8203 29 2 23.1797 2 16C2 8.8203 7.8203 3 15 3C21.6245 3 27.0917 7.95492 27.8976 14.3608L28.7318 13.3598C29.0853 12.9356 29.7159 12.8782 30.1402 13.2318C30.5645 13.5854 30.6218 14.2159 30.2682 14.6402L27.7682 17.6402C27.4147 18.0645 26.7841 18.1218 26.3598 17.7682L23.3598 15.2682C22.9355 14.9147 22.8782 14.2841 23.2318 13.8598C23.5854 13.4356 24.2159 13.3782 24.6402 13.7318L25.9366 14.8122Z\" />',viewBox:\"0 0 32 32\"},arrowRoundLeft:{innerHTML:'<path stroke=\"none\" d=\"M6.06339 14.8122L7.35981 13.7318C7.78409 13.3782 8.41465 13.4356 8.76822 13.8598C9.12178 14.2841 9.06446 14.9147 8.64018 15.2682L5.64018 17.7682C5.2159 18.1218 4.58534 18.0645 4.23177 17.6402L1.73177 14.6402C1.37821 14.2159 1.43553 13.5854 1.85981 13.2318C2.28409 12.8782 2.91465 12.9356 3.26822 13.3598L4.10235 14.3608C4.90831 7.95492 10.3755 3 17 3C24.1797 3 30 8.8203 30 16C30 23.1797 24.1797 29 17 29C16.4477 29 16 28.5523 16 28C16 27.4477 16.4477 27 17 27C23.0751 27 28 22.0751 28 16C28 9.92487 23.0751 5 17 5C11.3262 5 6.6557 9.29568 6.06339 14.8122Z\" />',viewBox:\"0 0 32 32\"},minusCircle:{innerHTML:'<path stroke=\"none\" d=\"M10 15C9.44772 15 9 15.4477 9 16C9 16.5523 9.44772 17 10 17L22 17C22.5523 17 23 16.5523 23 16C23 15.4477 22.5523 15 22 15L10 15Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 2C8.26801 2 2 8.26801 2 16C2 23.732 8.26801 30 16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2ZM4 16C4 9.37258 9.37258 4 16 4C22.6274 4 28 9.37258 28 16C28 22.6274 22.6274 28 16 28C9.37258 28 4 22.6274 4 16Z\"/>',viewBox:\"0 0 32 32\"},calendarClock:{innerHTML:'<path stroke=\"none\" d=\"M10 3C10.5523 3 11 3.44772 11 4V7C11 7.55229 10.5523 8 10 8C9.44772 8 9 7.55229 9 7V4C9 3.44772 9.44772 3 10 3Z\" /><path stroke=\"none\" d=\"M12 6C12 5.44772 12.4477 5 13 5H19C19.5523 5 20 5.44772 20 6C20 6.55228 19.5523 7 19 7H13C12.4477 7 12 6.55228 12 6Z\" /><path stroke=\"none\" d=\"M23 4C23 3.44772 22.5523 3 22 3C21.4477 3 21 3.44772 21 4V7C21 7.55228 21.4477 8 22 8C22.5523 8 23 7.55228 23 7V4Z\" /><path stroke=\"none\" d=\"M4 10V8C4 7.44772 4.44772 7 5 7H7C7.55228 7 8 6.55228 8 6C8 5.44772 7.55228 5 7 5H5C3.34315 5 2 6.34315 2 8V25C2 26.6569 3.34315 28 5 28H15C15.5523 28 16 27.5523 16 27C16 26.4477 15.5523 26 15 26H5C4.44772 26 4 25.5523 4 25V12H28V15C28 15.5523 28.4477 16 29 16C29.5523 16 30 15.5523 30 15V8C30 6.34315 28.6569 5 27 5H25C24.4477 5 24 5.44772 24 6C24 6.55228 24.4477 7 25 7H27C27.5523 7 28 7.44772 28 8V10H4Z\" /><path stroke=\"none\" d=\"M7 16.5C7 15.6716 7.67157 15 8.5 15C9.32843 15 10 15.6716 10 16.5C10 17.3284 9.32843 18 8.5 18C7.67157 18 7 17.3284 7 16.5Z\" /><path stroke=\"none\" d=\"M13.5 15C12.6716 15 12 15.6716 12 16.5C12 17.3284 12.6716 18 13.5 18C14.3284 18 15 17.3284 15 16.5C15 15.6716 14.3284 15 13.5 15Z\" /><path stroke=\"none\" d=\"M7 21.5C7 20.6716 7.67157 20 8.5 20C9.32843 20 10 20.6716 10 21.5C10 22.3284 9.32843 23 8.5 23C7.67157 23 7 22.3284 7 21.5Z\" /><path stroke=\"none\" d=\"M24 19.5C24 18.9477 23.5523 18.5 23 18.5C22.4477 18.5 22 18.9477 22 19.5V22C22 22.2652 22.1054 22.5196 22.2929 22.7071L23.7929 24.2071C24.1834 24.5976 24.8166 24.5976 25.2071 24.2071C25.5976 23.8166 25.5976 23.1834 25.2071 22.7929L24 21.5858V19.5Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 22C16 18.134 19.134 15 23 15C26.866 15 30 18.134 30 22C30 25.866 26.866 29 23 29C19.134 29 16 25.866 16 22ZM23 17C20.2386 17 18 19.2386 18 22C18 24.7614 20.2386 27 23 27C25.7614 27 28 24.7614 28 22C28 19.2386 25.7614 17 23 17Z\" />',viewBox:\"0 0 32 32\"},bell:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 2C16.5523 2 17 2.44772 17 3V4.04938C22.0533 4.5511 26 8.81465 26 14V19.0858L28.7071 21.7929C28.8946 21.9804 29 22.2348 29 22.5V24.5C29 25.0523 28.5523 25.5 28 25.5H19.9691C19.723 27.4732 18.0398 29 16 29C13.9602 29 12.277 27.4732 12.0309 25.5H4C3.44772 25.5 3 25.0523 3 24.5V22.5C3 22.2348 3.10536 21.9804 3.29289 21.7929L6 19.0858V14C6 8.81465 9.94668 4.5511 15 4.04938V3C15 2.44772 15.4477 2 16 2ZM14.063 25.5C14.285 26.3626 15.0681 27 16 27C16.9319 27 17.715 26.3626 17.937 25.5H14.063ZM8 14C8 9.58172 11.5817 6 16 6C20.4183 6 24 9.58172 24 14V19.5C24 19.7652 24.1054 20.0196 24.2929 20.2071L27 22.9142V23.5H5V22.9142L7.70711 20.2071C7.89464 20.0196 8 19.7652 8 19.5V14Z\" />',viewBox:\"0 0 32 32\"},bellNotification:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M17 3C17 2.44772 16.5523 2 16 2C15.4477 2 15 2.44772 15 3V4.04938C9.94668 4.5511 6 8.81465 6 14V19.0858L3.29289 21.7929C3.10536 21.9804 3 22.2348 3 22.5V24.5C3 25.0523 3.44772 25.5 4 25.5H12.0309C12.277 27.4732 13.9602 29 16 29C18.0398 29 19.723 27.4732 19.9691 25.5H28C28.5523 25.5 29 25.0523 29 24.5V22.5C29 22.2348 28.8946 21.9804 28.7071 21.7929L26 19.0858V15C26 14.4477 25.5523 14 25 14C24.4477 14 24 14.4477 24 15V19.5C24 19.7652 24.1054 20.0196 24.2929 20.2071L27 22.9142V23.5H5V22.9142L7.70711 20.2071C7.89464 20.0196 8 19.7652 8 19.5V14C8 9.58172 11.5817 6 16 6C16.6124 6 17.2076 6.06863 17.7787 6.19823C18.3173 6.32044 18.853 5.9829 18.9752 5.4443C19.0974 4.90571 18.7599 4.37002 18.2213 4.24781C17.8224 4.1573 17.4148 4.09068 17 4.04945V3ZM16 27C15.0681 27 14.285 26.3626 14.063 25.5H17.937C17.715 26.3626 16.9319 27 16 27Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M23 5C20.7909 5 19 6.79086 19 9C19 11.2091 20.7909 13 23 13C25.2091 13 27 11.2091 27 9C27 6.79086 25.2091 5 23 5ZM21 9C21 7.89543 21.8954 7 23 7C24.1046 7 25 7.89543 25 9C25 10.1046 24.1046 11 23 11C21.8954 11 21 10.1046 21 9Z\"/>',viewBox:\"0 0 32 32\"},bellCrossed:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M17 3C17 2.44772 16.5523 2 16 2C15.4477 2 15 2.44772 15 3V4.0494C12.492 4.29854 10.2567 5.47461 8.6421 7.22788L5.70711 4.29289C5.31658 3.90237 4.68342 3.90237 4.29289 4.29289C3.90237 4.68342 3.90237 5.31658 4.29289 5.70711L26.2929 27.7071C26.6834 28.0976 27.3166 28.0976 27.7071 27.7071C28.0976 27.3166 28.0976 26.6834 27.7071 26.2929L26.9142 25.5H28C28.5523 25.5 29 25.0523 29 24.5V22.5C29 22.2348 28.8946 21.9804 28.7071 21.7929L26 19.0858V14C26 8.81465 22.0533 4.5511 17 4.04938V3ZM24.9142 23.5H27V22.9142L24.2929 20.2071C24.1054 20.0196 24 19.7652 24 19.5V14C24 9.58172 20.4183 6 16 6C13.6424 6 11.5231 7.01893 10.0578 8.64355L24.9142 23.5Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8.19823 12.2213C8.32044 11.6827 7.9829 11.147 7.4443 11.0248C6.90571 10.9026 6.37002 11.2401 6.24781 11.7787C6.08549 12.4941 6 13.2377 6 14V19.0858L3.29289 21.7929C3.10536 21.9804 3 22.2348 3 22.5V24.5C3 25.0523 3.44772 25.5 4 25.5H12.0309C12.277 27.4732 13.9602 29 16 29C18.0398 29 19.723 27.4732 19.9691 25.5H20C20.5523 25.5 21 25.0523 21 24.5C21 23.9477 20.5523 23.5 20 23.5H5V22.9142L7.70711 20.2071C7.89464 20.0196 8 19.7652 8 19.5V14C8 13.3876 8.06863 12.7924 8.19823 12.2213ZM16 27C15.0681 27 14.285 26.3626 14.063 25.5H17.937C17.715 26.3626 16.9319 27 16 27Z\" />',viewBox:\"0 0 32 32\"},bookUser:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.9142 6.49997C22.1332 5.71892 20.8668 5.71892 20.0858 6.49997L10.2929 16.2929C10.1831 16.4026 10.1004 16.5365 10.0513 16.6837L9.05131 19.6837C8.93154 20.0431 9.02506 20.4392 9.29289 20.7071C9.56072 20.9749 9.95689 21.0684 10.3162 20.9487L13.3162 19.9487C13.4635 19.8996 13.5973 19.8169 13.7071 19.7071L23.5 9.91418C24.281 9.13314 24.281 7.86681 23.5 7.08576L22.9142 6.49997ZM19.5 9.91417L11.874 17.5402L11.5811 18.4188L12.4598 18.1259L20.0858 10.5L19.5 9.91417ZM21.5 9.08575L20.9142 8.49996L21.5 7.91418L22.0858 8.49997L21.5 9.08575Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 4C4 2.89543 4.89543 2 6 2H26C27.1046 2 28 2.89543 28 4V23C28 23.5523 27.5523 24 27 24H26.7143C26.3198 24 26 24.3198 26 24.7143V27C26 27.5523 26.4477 28 27 28C27.5523 28 28 28.4477 28 29C28 29.5523 27.5523 30 27 30H8C5.79086 30 4 28.2091 4 26V4ZM8 24H24.095C24.033 24.2276 24 24.4671 24 24.7143V25H6.26756C6.61337 24.4022 7.25972 24 8 24ZM6.26756 27C6.61337 27.5978 7.25972 28 8 28H24.1707C24.0602 27.6872 24 27.3506 24 27H6.26756ZM6 22.5351C6.58835 22.1948 7.27143 22 8 22H26V4L6 4V22.5351Z\"/>',viewBox:\"0 0 32 32\"},bookCrossed:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.5 9V9.5H12C10.067 9.5 8.5 11.067 8.5 13C8.5 14.933 10.067 16.5 12 16.5H12.5V17C12.5 18.933 14.067 20.5 16 20.5C17.933 20.5 19.5 18.933 19.5 17V16.5H20C21.933 16.5 23.5 14.933 23.5 13C23.5 11.067 21.933 9.5 20 9.5H19.5V9C19.5 7.067 17.933 5.5 16 5.5C14.067 5.5 12.5 7.067 12.5 9ZM16 7.5C15.1716 7.5 14.5 8.17157 14.5 9V11.5H12C11.1716 11.5 10.5 12.1716 10.5 13C10.5 13.8284 11.1716 14.5 12 14.5H14.5V17C14.5 17.8284 15.1716 18.5 16 18.5C16.8284 18.5 17.5 17.8284 17.5 17V14.5H20C20.8284 14.5 21.5 13.8284 21.5 13C21.5 12.1716 20.8284 11.5 20 11.5H17.5V9C17.5 8.17157 16.8284 7.5 16 7.5Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6 2C4.89543 2 4 2.89543 4 4V26C4 28.2091 5.79086 30 8 30H27C27.5523 30 28 29.5523 28 29C28 28.4477 27.5523 28 27 28C26.4477 28 26 27.5523 26 27V24.7143C26 24.3198 26.3198 24 26.7143 24H27C27.5523 24 28 23.5523 28 23V4C28 2.89543 27.1046 2 26 2H6ZM24.095 24H8C7.25972 24 6.61337 24.4022 6.26756 25H24V24.7143C24 24.4671 24.033 24.2276 24.095 24ZM8 28C7.25972 28 6.61337 27.5978 6.26756 27H24C24 27.3506 24.0602 27.6872 24.1707 28H8ZM8 22C7.27143 22 6.58835 22.1948 6 22.5351V4L26 4V22H8Z\"/>',viewBox:\"0 0 32 32\"},waitingRoom:{innerHTML:'<path stroke=\"none\" d=\"M17 6C17 5.44772 16.5523 5 16 5C15.4477 5 15 5.44772 15 6V9.5C15 9.81476 15.1482 10.1111 15.4 10.3L17.4 11.8C17.8418 12.1314 18.4686 12.0418 18.8 11.6C19.1314 11.1582 19.0418 10.5314 18.6 10.2L17 9V6Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8.75 9.25C8.75 5.24594 11.9959 2 16 2C20.0041 2 23.25 5.24594 23.25 9.25C23.25 13.2541 20.0041 16.5 16 16.5C11.9959 16.5 8.75 13.2541 8.75 9.25ZM16 4C13.1005 4 10.75 6.3505 10.75 9.25C10.75 12.1495 13.1005 14.5 16 14.5C18.8995 14.5 21.25 12.1495 21.25 9.25C21.25 6.3505 18.8995 4 16 4Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9.75 17C7.12665 17 5 19.1266 5 21.75V25C4.44772 25 4 25.4477 4 26C4 26.5523 4.44772 27 5 27V29C5 29.5523 5.44772 30 6 30C6.55228 30 7 29.5523 7 29V27H12.5V29C12.5 29.5523 12.9477 30 13.5 30C14.0523 30 14.5 29.5523 14.5 29V27C15.0523 27 15.5 26.5523 15.5 26C15.5 25.4477 15.0523 25 14.5 25V21.75C14.5 19.1266 12.3734 17 9.75 17ZM12.5 25V21.75C12.5 20.2312 11.2688 19 9.75 19C8.23122 19 7 20.2312 7 21.75V25H12.5Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M17.5 21.75C17.5 19.1266 19.6266 17 22.25 17C24.8734 17 27 19.1266 27 21.75V25C27.5523 25 28 25.4477 28 26C28 26.5523 27.5523 27 27 27V29C27 29.5523 26.5523 30 26 30C25.4477 30 25 29.5523 25 29V27H19.5V29C19.5 29.5523 19.0523 30 18.5 30C17.9477 30 17.5 29.5523 17.5 29V27C16.9477 27 16.5 26.5523 16.5 26C16.5 25.4477 16.9477 25 17.5 25V21.75ZM25 25V21.75C25 20.2312 23.7688 19 22.25 19C20.7312 19 19.5 20.2312 19.5 21.75V25H25Z\"/>',viewBox:\"0 0 32 32\"},waitingRoomCog:{innerHTML:'<path stroke=\"none\" d=\"M17 6C17 5.44772 16.5523 5 16 5C15.4477 5 15 5.44772 15 6V9.5C15 9.81476 15.1482 10.1111 15.4 10.3L17.4 11.8C17.8418 12.1314 18.4686 12.0418 18.8 11.6C19.1314 11.1582 19.0418 10.5314 18.6 10.2L17 9V6Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8.75 9.25C8.75 5.24594 11.9959 2 16 2C20.0041 2 23.25 5.24594 23.25 9.25C23.25 13.2541 20.0041 16.5 16 16.5C11.9959 16.5 8.75 13.2541 8.75 9.25ZM16 4C13.1005 4 10.75 6.3505 10.75 9.25C10.75 12.1495 13.1005 14.5 16 14.5C18.8995 14.5 21.25 12.1495 21.25 9.25C21.25 6.3505 18.8995 4 16 4Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9.75 17C7.12665 17 5 19.1266 5 21.75V25C4.44772 25 4 25.4477 4 26C4 26.5523 4.44772 27 5 27V29C5 29.5523 5.44772 30 6 30C6.55228 30 7 29.5523 7 29V27H12.5V29C12.5 29.5523 12.9477 30 13.5 30C14.0523 30 14.5 29.5523 14.5 29V27C15.0523 27 15.5 26.5523 15.5 26C15.5 25.4477 15.0523 25 14.5 25V21.75C14.5 19.1266 12.3734 17 9.75 17ZM12.5 25V21.75C12.5 20.2312 11.2688 19 9.75 19C8.23122 19 7 20.2312 7 21.75V25H12.5Z\"/><path stroke=\"none\" d=\"M23.7482 24.6883C24.6918 24.6883 25.4567 23.9234 25.4567 22.9798C25.4567 22.0362 24.6918 21.2712 23.7482 21.2712C22.8046 21.2712 22.0397 22.0362 22.0397 22.9798C22.0397 23.9234 22.8046 24.6883 23.7482 24.6883Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.6092 16C22.1405 16 21.7347 16.3255 21.633 16.7831L21.2927 18.3145C21.1709 18.3787 21.0519 18.4475 20.936 18.5207L19.4392 18.0496C18.9922 17.9089 18.5073 18.0976 18.273 18.5035L17.134 20.4763C16.8996 20.8822 16.9786 21.3965 17.324 21.7133L18.4808 22.7744C18.4782 22.8426 18.4769 22.9111 18.4769 22.9799C18.4769 23.0487 18.4782 23.1171 18.4808 23.1853L17.324 24.2464C16.9786 24.5632 16.8996 25.0774 17.134 25.4834L18.273 27.4562C18.5073 27.8621 18.9922 28.0508 19.4392 27.9101L20.9359 27.439C21.0518 27.5122 21.1708 27.5811 21.2927 27.6454L21.633 29.1766C21.7347 29.6342 22.1405 29.9597 22.6092 29.9597H24.8872C25.3559 29.9597 25.7617 29.6342 25.8634 29.1766L26.2037 27.6454C26.3256 27.5811 26.4446 27.5122 26.5605 27.439L28.0572 27.9101C28.5043 28.0508 28.9891 27.8621 29.2234 27.4562L30.3625 25.4834C30.5968 25.0775 30.5178 24.5633 30.1724 24.2464L29.0156 23.1854C29.0182 23.1172 29.0195 23.0487 29.0195 22.9799C29.0195 22.9111 29.0182 22.8426 29.0156 22.7744L30.1724 21.7133C30.5178 21.3965 30.5968 20.8823 30.3625 20.4764L29.2234 18.5035C28.9891 18.0976 28.5043 17.9089 28.0572 18.0497L26.5604 18.5207C26.4445 18.4475 26.3256 18.3787 26.2037 18.3145L25.8634 16.7831C25.7617 16.3255 25.3559 16 24.8872 16H22.6092ZM23.1381 19.2298L23.4114 18H24.0851L24.3583 19.2298C24.43 19.5522 24.6563 19.8185 24.963 19.9413C25.2549 20.0581 25.5265 20.2161 25.7706 20.4084C26.0303 20.613 26.3744 20.676 26.6897 20.5768L27.8925 20.1982L28.2293 20.7817L27.3004 21.6337C27.0573 21.8567 26.9398 22.1854 26.9865 22.512C27.0082 22.6643 27.0195 22.8205 27.0195 22.9799C27.0195 23.1393 27.0082 23.2955 26.9865 23.4478C26.9398 23.7744 27.0573 24.103 27.3005 24.3261L28.2293 25.1781L27.8925 25.7615L26.6898 25.383C26.3744 25.2837 26.0304 25.3467 25.7707 25.5514C25.5265 25.7437 25.2549 25.9017 24.9629 26.0186C24.6563 26.1413 24.43 26.4076 24.3583 26.73L24.0851 27.9597H23.4114L23.1381 26.73C23.0664 26.4076 22.8402 26.1413 22.5335 26.0186C22.2415 25.9017 21.9699 25.7437 21.7257 25.5514C21.466 25.3467 21.122 25.2837 20.8066 25.383L19.604 25.7615L19.2671 25.1781L20.196 24.3261C20.4391 24.103 20.5566 23.7744 20.51 23.4477C20.4882 23.2955 20.4769 23.1393 20.4769 22.9799C20.4769 22.8205 20.4882 22.6643 20.51 22.512C20.5566 22.1853 20.4391 21.8567 20.196 21.6336L19.2671 20.7816L19.604 20.1982L20.8067 20.5768C21.1221 20.676 21.4661 20.613 21.7258 20.4084C21.9699 20.2161 22.2416 20.0581 22.5335 19.9413C22.8401 19.8185 23.0664 19.5522 23.1381 19.2298Z\"/>',viewBox:\"0 0 32 32\"},condom:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 2C16.5523 2 17 2.44772 17 3V4.10002C19.2822 4.56329 21 6.58104 21 9V28H21.5C22.0523 28 22.5 28.4477 22.5 29C22.5 29.5523 22.0523 30 21.5 30H10.5C9.94772 30 9.5 29.5523 9.5 29C9.5 28.4477 9.94772 28 10.5 28H11V9C11 6.58104 12.7178 4.56329 15 4.10002V3C15 2.44772 15.4477 2 16 2ZM13 28H19V9C19 7.34315 17.6569 6 16 6C14.3431 6 13 7.34315 13 9V28Z\" />',viewBox:\"0 0 32 32\"},gridView:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 4C4.44772 4 4 4.44772 4 5V9C4 9.55228 4.44772 10 5 10H9C9.55228 10 10 9.55228 10 9V5C10 4.44772 9.55228 4 9 4H5ZM6 6V8H8V6H6Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14 4C13.4477 4 13 4.44772 13 5V9C13 9.55228 13.4477 10 14 10H18C18.5523 10 19 9.55228 19 9V5C19 4.44772 18.5523 4 18 4H14ZM15 6V8H17V6H15Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22 5C22 4.44772 22.4477 4 23 4H27C27.5523 4 28 4.44772 28 5V9C28 9.55228 27.5523 10 27 10H23C22.4477 10 22 9.55228 22 9V5ZM24 8V6H26V8H24Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14 13C13.4477 13 13 13.4477 13 14V18C13 18.5523 13.4477 19 14 19H18C18.5523 19 19 18.5523 19 18V14C19 13.4477 18.5523 13 18 13H14ZM15 15V17H17V15H15Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 14C4 13.4477 4.44772 13 5 13H9C9.55228 13 10 13.4477 10 14V18C10 18.5523 9.55228 19 9 19H5C4.44772 19 4 18.5523 4 18V14ZM6 17V15H8V17H6Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14 22C13.4477 22 13 22.4477 13 23V27C13 27.5523 13.4477 28 14 28H18C18.5523 28 19 27.5523 19 27V23C19 22.4477 18.5523 22 18 22H14ZM15 24V26H17V24H15Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22 14C22 13.4477 22.4477 13 23 13H27C27.5523 13 28 13.4477 28 14V18C28 18.5523 27.5523 19 27 19H23C22.4477 19 22 18.5523 22 18V14ZM24 17V15H26V17H24Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 22C4.44772 22 4 22.4477 4 23V27C4 27.5523 4.44772 28 5 28H9C9.55228 28 10 27.5523 10 27V23C10 22.4477 9.55228 22 9 22H5ZM6 24V26H8V24H6Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22 23C22 22.4477 22.4477 22 23 22H27C27.5523 22 28 22.4477 28 23V27C28 27.5523 27.5523 28 27 28H23C22.4477 28 22 27.5523 22 27V23ZM24 26V24H26V26H24Z\"/>',viewBox:\"0 0 32 32\"},building:{innerHTML:'<path stroke=\"none\" d=\"M18 12C17.4477 12 17 12.4477 17 13C17 13.5523 17.4477 14 18 14H19C19.5523 14 20 13.5523 20 13C20 12.4477 19.5523 12 19 12H18Z\" /><path stroke=\"none\" d=\"M17 9C17 8.44772 17.4477 8 18 8H19C19.5523 8 20 8.44772 20 9C20 9.55228 19.5523 10 19 10H18C17.4477 10 17 9.55228 17 9Z\" /><path stroke=\"none\" d=\"M22 12C21.4477 12 21 12.4477 21 13C21 13.5523 21.4477 14 22 14H23C23.5523 14 24 13.5523 24 13C24 12.4477 23.5523 12 23 12H22Z\" /><path stroke=\"none\" d=\"M21 9C21 8.44772 21.4477 8 22 8H23C23.5523 8 24 8.44772 24 9C24 9.55228 23.5523 10 23 10H22C21.4477 10 21 9.55228 21 9Z\" /><path stroke=\"none\" d=\"M18 16C17.4477 16 17 16.4477 17 17C17 17.5523 17.4477 18 18 18H19C19.5523 18 20 17.5523 20 17C20 16.4477 19.5523 16 19 16H18Z\" /><path stroke=\"none\" d=\"M21 17C21 16.4477 21.4477 16 22 16H23C23.5523 16 24 16.4477 24 17C24 17.5523 23.5523 18 23 18H22C21.4477 18 21 17.5523 21 17Z\" /><path stroke=\"none\" d=\"M18 20C17.4477 20 17 20.4477 17 21C17 21.5523 17.4477 22 18 22H19C19.5523 22 20 21.5523 20 21C20 20.4477 19.5523 20 19 20H18Z\" /><path stroke=\"none\" d=\"M17 25C17 24.4477 17.4477 24 18 24H19C19.5523 24 20 24.4477 20 25C20 25.5523 19.5523 26 19 26H18C17.4477 26 17 25.5523 17 25Z\" /><path stroke=\"none\" d=\"M22 24C21.4477 24 21 24.4477 21 25C21 25.5523 21.4477 26 22 26H23C23.5523 26 24 25.5523 24 25C24 24.4477 23.5523 24 23 24H22Z\" /><path stroke=\"none\" d=\"M21 21C21 20.4477 21.4477 20 22 20H23C23.5523 20 24 20.4477 24 21C24 21.5523 23.5523 22 23 22H22C21.4477 22 21 21.5523 21 21Z\" /><path stroke=\"none\" d=\"M7.99999 21C7.99999 20.4477 8.4477 20 8.99999 20H9.99999C10.5523 20 11 20.4477 11 21C11 21.5523 10.5523 22 9.99999 22H8.99999C8.4477 22 7.99999 21.5523 7.99999 21Z\" /><path stroke=\"none\" d=\"M8.99999 24C8.4477 24 7.99999 24.4477 7.99999 25C7.99999 25.5523 8.4477 26 8.99999 26H9.99999C10.5523 26 11 25.5523 11 25C11 24.4477 10.5523 24 9.99999 24H8.99999Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M18 2C16.8954 2 16 2.89543 16 4C14.3431 4 13 5.34315 13 7V16H6.99999C5.34313 16 3.99998 17.3431 3.99998 19V28C3.99998 29.1046 4.89542 30 5.99998 30H26C27.1046 30 28 29.1046 28 28V7C28 5.34314 26.6568 4 25 4C25 2.89543 24.1046 2 23 2H18ZM16 6C15.4477 6 15 6.44772 15 7V28H26V7C26 6.44772 25.5523 6 25 6H16ZM13 18V28H5.99998V19C5.99998 18.4477 6.4477 18 6.99999 18H13Z\" /><path stroke=\"none\" d=\"M4.49999 12C4.49998 11.4477 4.9477 11 5.49999 11H7.58583L4.2196 7.63374C3.86956 7.28369 3.90237 6.68335 4.2929 6.29282C4.68342 5.9023 5.28377 5.86948 5.63381 6.21952L8.99999 9.5857L8.99999 7.49997C8.99999 6.94769 9.4477 6.49997 9.99999 6.49997C10.5523 6.49997 11 6.94769 11 7.49997L11 12C11 12.2652 10.8946 12.5195 10.7071 12.7071C10.5196 12.8946 10.2652 13 9.99999 13H5.49999C4.9477 13 4.49999 12.5523 4.49999 12Z\" />',viewBox:\"0 0 32 32\"},calendarCog:{innerHTML:'<path stroke=\"none\" d=\"M10 3C10.5523 3 11 3.44772 11 4V7C11 7.55229 10.5523 8 10 8C9.44772 8 9 7.55229 9 7V4C9 3.44772 9.44772 3 10 3Z\" /><path stroke=\"none\" d=\"M12 6C12 5.44772 12.4477 5 13 5H19C19.5523 5 20 5.44772 20 6C20 6.55228 19.5523 7 19 7H13C12.4477 7 12 6.55228 12 6Z\" /><path stroke=\"none\" d=\"M23 4C23 3.44772 22.5523 3 22 3C21.4477 3 21 3.44772 21 4V7C21 7.55228 21.4477 8 22 8C22.5523 8 23 7.55228 23 7V4Z\" /><path stroke=\"none\" d=\"M4 10V8C4 7.44772 4.44772 7 5 7H7C7.55228 7 8 6.55228 8 6C8 5.44772 7.55228 5 7 5H5C3.34315 5 2 6.34315 2 8V25C2 26.6569 3.34315 28 5 28H15C15.5523 28 16 27.5523 16 27C16 26.4477 15.5523 26 15 26H5C4.44772 26 4 25.5523 4 25V12H28V15C28 15.5523 28.4477 16 29 16C29.5523 16 30 15.5523 30 15V8C30 6.34315 28.6569 5 27 5H25C24.4477 5 24 5.44772 24 6C24 6.55228 24.4477 7 25 7H27C27.5523 7 28 7.44772 28 8V10H4Z\" /><path stroke=\"none\" d=\"M7 16.5C7 15.6716 7.67157 15 8.5 15C9.32843 15 10 15.6716 10 16.5C10 17.3284 9.32843 18 8.5 18C7.67157 18 7 17.3284 7 16.5Z\" /><path stroke=\"none\" d=\"M13.5 15C12.6716 15 12 15.6716 12 16.5C12 17.3284 12.6716 18 13.5 18C14.3284 18 15 17.3284 15 16.5C15 15.6716 14.3284 15 13.5 15Z\" /><path stroke=\"none\" d=\"M7 21.5C7 20.6716 7.67157 20 8.5 20C9.32843 20 10 20.6716 10 21.5C10 22.3284 9.32843 23 8.5 23C7.67157 23 7 22.3284 7 21.5Z\" /><path stroke=\"none\" d=\"M23.7482 24.6883C24.6918 24.6883 25.4567 23.9234 25.4567 22.9798C25.4567 22.0362 24.6918 21.2712 23.7482 21.2712C22.8046 21.2712 22.0397 22.0362 22.0397 22.9798C22.0397 23.9234 22.8046 24.6883 23.7482 24.6883Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.6092 16C22.1405 16 21.7347 16.3255 21.633 16.7831L21.2927 18.3145C21.1709 18.3787 21.0519 18.4475 20.936 18.5207L19.4392 18.0496C18.9922 17.9089 18.5073 18.0976 18.273 18.5035L17.134 20.4763C16.8996 20.8822 16.9786 21.3965 17.324 21.7133L18.4808 22.7744C18.4782 22.8426 18.4769 22.9111 18.4769 22.9799C18.4769 23.0487 18.4782 23.1171 18.4808 23.1853L17.324 24.2464C16.9786 24.5632 16.8996 25.0774 17.134 25.4834L18.273 27.4562C18.5073 27.8621 18.9922 28.0508 19.4392 27.9101L20.9359 27.439C21.0518 27.5122 21.1708 27.5811 21.2927 27.6454L21.633 29.1766C21.7347 29.6342 22.1405 29.9597 22.6092 29.9597H24.8872C25.3559 29.9597 25.7617 29.6342 25.8634 29.1766L26.2037 27.6454C26.3256 27.5811 26.4446 27.5122 26.5605 27.439L28.0572 27.9101C28.5043 28.0508 28.9891 27.8621 29.2234 27.4562L30.3625 25.4834C30.5968 25.0775 30.5178 24.5633 30.1724 24.2464L29.0156 23.1854C29.0182 23.1172 29.0195 23.0487 29.0195 22.9799C29.0195 22.9111 29.0182 22.8426 29.0156 22.7744L30.1724 21.7133C30.5178 21.3965 30.5968 20.8823 30.3625 20.4764L29.2234 18.5035C28.9891 18.0976 28.5043 17.9089 28.0572 18.0497L26.5604 18.5207C26.4445 18.4475 26.3256 18.3787 26.2037 18.3145L25.8634 16.7831C25.7617 16.3255 25.3559 16 24.8872 16H22.6092ZM23.1381 19.2298L23.4114 18H24.0851L24.3583 19.2298C24.43 19.5522 24.6563 19.8185 24.963 19.9413C25.2549 20.0581 25.5265 20.2161 25.7706 20.4084C26.0303 20.613 26.3744 20.676 26.6897 20.5768L27.8925 20.1982L28.2293 20.7817L27.3004 21.6337C27.0573 21.8567 26.9398 22.1854 26.9865 22.512C27.0082 22.6643 27.0195 22.8205 27.0195 22.9799C27.0195 23.1393 27.0082 23.2955 26.9865 23.4478C26.9398 23.7744 27.0573 24.103 27.3005 24.3261L28.2293 25.1781L27.8925 25.7615L26.6898 25.383C26.3744 25.2837 26.0304 25.3467 25.7707 25.5514C25.5265 25.7437 25.2549 25.9017 24.9629 26.0186C24.6563 26.1413 24.43 26.4076 24.3583 26.73L24.0851 27.9597H23.4114L23.1381 26.73C23.0664 26.4076 22.8402 26.1413 22.5335 26.0186C22.2415 25.9017 21.9699 25.7437 21.7257 25.5514C21.466 25.3467 21.122 25.2837 20.8066 25.383L19.604 25.7615L19.2671 25.1781L20.196 24.3261C20.4391 24.103 20.5566 23.7744 20.51 23.4477C20.4882 23.2955 20.4769 23.1393 20.4769 22.9799C20.4769 22.8205 20.4882 22.6643 20.51 22.512C20.5566 22.1853 20.4391 21.8567 20.196 21.6336L19.2671 20.7816L19.604 20.1982L20.8067 20.5768C21.1221 20.676 21.4661 20.613 21.7258 20.4084C21.9699 20.2161 22.2416 20.0581 22.5335 19.9413C22.8401 19.8185 23.0664 19.5522 23.1381 19.2298Z\" />',viewBox:\"0 0 32 32\"},speechBubbleLinesCog:{innerHTML:'<path stroke=\"none\" d=\"M8 5C6.34315 5 5 6.34315 5 8V18C5 19.6569 6.34315 21 8 21H10C10.5523 21 11 21.4477 11 22V25.4292L13.2628 22.9606C13.636 22.5535 14.2686 22.526 14.6757 22.8992C15.0828 23.2724 15.1103 23.905 14.7372 24.3121L10.7372 28.6757C10.4585 28.9797 10.0218 29.0815 9.63748 28.932C9.25315 28.7825 9 28.4124 9 28V23H8C5.23858 23 3 20.7614 3 18V8C3 5.23858 5.23858 3 8 3H24C26.7614 3 29 5.23858 29 8V15.5C29 16.0523 28.5523 16.5 28 16.5C27.4477 16.5 27 16.0523 27 15.5V8C27 6.34315 25.6569 5 24 5H8Z\"/><path stroke=\"none\" d=\"M8 11C8 10.4477 8.44772 10 9 10H23C23.5523 10 24 10.4477 24 11C24 11.5523 23.5523 12 23 12H9C8.44772 12 8 11.5523 8 11Z\"/><path stroke=\"none\" d=\"M9 14C8.44772 14 8 14.4477 8 15C8 15.5523 8.44772 16 9 16H19C19.5523 16 20 15.5523 20 15C20 14.4477 19.5523 14 19 14H9Z\"/><path stroke=\"none\" d=\"M22.7095 24.6883C23.6531 24.6883 24.418 23.9234 24.418 22.9798C24.418 22.0362 23.6531 21.2712 22.7095 21.2712C21.7659 21.2712 21.001 22.0362 21.001 22.9798C21.001 23.9234 21.7659 24.6883 22.7095 24.6883Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21.5705 16C21.1018 16 20.6959 16.3255 20.5943 16.7831L20.254 18.3145C20.1321 18.3787 20.0132 18.4475 19.8973 18.5207L18.4005 18.0496C17.9534 17.9089 17.4686 18.0976 17.2343 18.5035L16.0952 20.4763C15.8609 20.8822 15.9399 21.3965 16.2853 21.7133L17.4421 22.7744C17.4395 22.8426 17.4382 22.9111 17.4382 22.9799C17.4382 23.0487 17.4395 23.1171 17.4421 23.1853L16.2853 24.2464C15.9399 24.5632 15.8609 25.0774 16.0952 25.4834L17.2343 27.4562C17.4686 27.8621 17.9534 28.0508 18.4005 27.9101L19.8972 27.439C20.0131 27.5122 20.1321 27.5811 20.254 27.6454L20.5943 29.1766C20.6959 29.6342 21.1018 29.9597 21.5705 29.9597H23.8485C24.3172 29.9597 24.723 29.6342 24.8247 29.1766L25.165 27.6454C25.2868 27.5811 25.4059 27.5122 25.5218 27.439L27.0185 27.9101C27.4655 28.0508 27.9504 27.8621 28.1847 27.4562L29.3237 25.4834C29.5581 25.0775 29.4791 24.5633 29.1337 24.2464L27.9769 23.1854C27.9795 23.1172 27.9808 23.0487 27.9808 22.9799C27.9808 22.9111 27.9795 22.8426 27.9769 22.7744L29.1337 21.7133C29.4791 21.3965 29.5581 20.8823 29.3237 20.4764L28.1847 18.5035C27.9504 18.0976 27.4655 17.9089 27.0184 18.0497L25.5217 18.5207C25.4058 18.4475 25.2868 18.3787 25.165 18.3145L24.8247 16.7831C24.723 16.3255 24.3172 16 23.8485 16H21.5705ZM22.0993 19.2298L22.3726 18H23.0463L23.3196 19.2298C23.3913 19.5522 23.6175 19.8185 23.9242 19.9413C24.2161 20.0581 24.4878 20.2161 24.7319 20.4084C24.9916 20.613 25.3356 20.676 25.651 20.5768L26.8537 20.1982L27.1906 20.7817L26.2617 21.6337C26.0186 21.8567 25.9011 22.1854 25.9477 22.512C25.9695 22.6643 25.9808 22.8205 25.9808 22.9799C25.9808 23.1393 25.9695 23.2955 25.9477 23.4478C25.9011 23.7744 26.0186 24.103 26.2617 24.3261L27.1906 25.1781L26.8537 25.7615L25.651 25.383C25.3357 25.2837 24.9916 25.3467 24.7319 25.5514C24.4878 25.7437 24.2161 25.9017 23.9242 26.0186C23.6175 26.1413 23.3912 26.4076 23.3196 26.73L23.0463 27.9597H22.3726L22.0994 26.73C22.0277 26.4076 21.8014 26.1413 21.4948 26.0186C21.2028 25.9017 20.9311 25.7437 20.687 25.5514C20.4273 25.3467 20.0833 25.2837 19.7679 25.383L18.5652 25.7615L18.2284 25.1781L19.1572 24.3261C19.4004 24.103 19.5179 23.7744 19.4712 23.4477C19.4495 23.2955 19.4382 23.1393 19.4382 22.9799C19.4382 22.8205 19.4495 22.6643 19.4712 22.512C19.5179 22.1853 19.4004 21.8567 19.1572 21.6336L18.2284 20.7816L18.5652 20.1982L19.768 20.5768C20.0834 20.676 20.4274 20.613 20.6871 20.4084C20.9312 20.2161 21.2028 20.0581 21.4947 19.9413C21.8014 19.8185 22.0277 19.5522 22.0993 19.2298Z\"/>',viewBox:\"0 0 32 32\"},envelopMove:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11.8312 9.45027C12.0766 8.59181 12.8613 8 13.7542 8H27.674C29.0029 8 29.9623 9.27204 29.597 10.5497L26.1688 22.5417C25.9234 23.4002 25.1387 23.992 24.2458 23.992H10.3259C8.99704 23.992 8.03769 22.7199 8.40296 21.4422L11.8312 9.45027ZM15.0102 10L18.2913 15.1039L25.9472 10H15.0102ZM27.2317 11.5474L18.5547 17.3321C18.3316 17.4808 18.0582 17.5337 17.7957 17.4789C17.5333 17.4241 17.3038 17.2663 17.1588 17.0408L13.4089 11.2076L10.3259 21.992L24.2458 21.992L27.2317 11.5474Z\"/><path stroke=\"none\" d=\"M3 10C2.44772 10 2 10.4477 2 11C2 11.5523 2.44772 12 3 12H8.5C9.05228 12 9.5 11.5523 9.5 11C9.5 10.4477 9.05228 10 8.5 10H3Z\"/><path stroke=\"none\" d=\"M2 16C2 15.4477 2.44772 15 3 15H7C7.55228 15 8 15.4477 8 16C8 16.5523 7.55228 17 7 17H3C2.44772 17 2 16.5523 2 16Z\"/><path stroke=\"none\" d=\"M2 21C2 20.4477 2.44772 20 3 20H6C6.55228 20 7 20.4477 7 21C7 21.5523 6.55228 22 6 22H3C2.44772 22 2 21.5523 2 21Z\"/>',viewBox:\"0 0 32 32\"},houseArrow:{innerHTML:'<path stroke=\"none\" d=\"M15.2804 4.26532C14.5387 3.64724 13.4613 3.64724 12.7196 4.26532L4.71963 10.932C4.26365 11.312 4 11.8749 4 12.4684V26C4 27.1046 4.89543 28 6 28H10C11.1046 28 12 27.1046 12 26V20.5H16V26C16 27.1046 16.8954 28 18 28H22C23.1046 28 24 27.1046 24 26V19.5C24 18.9478 23.5523 18.5 23 18.5C22.4477 18.5 22 18.9478 22 19.5V26H18V20.5C18 19.3955 17.1046 18.5 16 18.5H12C10.8954 18.5 10 19.3955 10 20.5V26H6V12.4684L14 5.80176L17.8598 9.01827C18.2841 9.37183 18.9147 9.31451 19.2682 8.89023C19.6218 8.46596 19.5645 7.83539 19.1402 7.48183L15.2804 4.26532Z\"/><path stroke=\"none\" d=\"M24.7929 17.2071C24.4024 16.8166 24.4024 16.1834 24.7929 15.7929L26.5858 14H19C18.4477 14 18 13.5523 18 13C18 12.4477 18.4477 12 19 12H26.5858L24.7929 10.2071C24.4024 9.81658 24.4024 9.18342 24.7929 8.79289C25.1834 8.40237 25.8166 8.40237 26.2071 8.79289L29.7071 12.2929C30.0976 12.6834 30.0976 13.3166 29.7071 13.7071L26.2071 17.2071C25.8166 17.5976 25.1834 17.5976 24.7929 17.2071Z\"/>',viewBox:\"0 0 32 32\"},textItalic:{innerHTML:'<path stroke=\"none\" d=\"M7.99997 26.0001C7.44768 26.0001 6.99997 26.4479 6.99997 27.0001C6.99997 27.5524 7.44768 28.0001 7.99997 28.0001H10.9782C10.9923 28.0004 11.0064 28.0004 11.0205 28.0001L15 28.0001C15.5523 28.0001 16 27.5524 16 27.0001C16 26.4479 15.5523 26.0001 15 26.0001H12.553L21.6439 6.00002H24C24.5523 6.00002 25 5.5523 25 5.00002C25 4.44773 24.5523 4.00002 24 4.00002L21.0173 4.00002C21.0061 3.99983 20.995 3.99983 20.9838 4.00002L17 4.00002C16.4477 4.00002 16 4.44773 16 5.00002C16 5.5523 16.4477 6.00002 17 6.00002L19.447 6.00002L10.356 26.0001H7.99997Z\"/>',viewBox:\"0 0 32 32\"},textBold:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21.516 14.5806C22.7339 13.4192 23.5 11.814 23.5 10C23.5 6.32043 20.3479 3.5 16.6667 3.5L10 3.5C9.17157 3.5 8.5 4.17157 8.5 5L8.5 27C8.5 27.8284 9.17157 28.5 10 28.5H17.2593C21.6416 28.5 25.5 25.3015 25.5 21C25.5 18.2004 23.8656 15.868 21.516 14.5806ZM11.5 16.5L11.5 25.5H17.2593C20.3226 25.5 22.5 23.3259 22.5 21C22.5 18.6741 20.3226 16.5 17.2593 16.5H11.5ZM16.6696 13.5C18.8778 13.4985 20.5 11.8425 20.5 10C20.5 8.15672 18.8764 6.5 16.6667 6.5H11.5L11.5 13.5H16.6696Z\"/>',viewBox:\"0 0 32 32\"},sliders:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16.126 8H5C4.44772 8 4 7.55228 4 7C4 6.44772 4.44772 6 5 6H16.126C16.5701 4.27477 18.1362 3 20 3C21.8638 3 23.4299 4.27477 23.874 6H27C27.5523 6 28 6.44772 28 7C28 7.55228 27.5523 8 27 8H23.874C23.4299 9.72523 21.8638 11 20 11C18.1362 11 16.5701 9.72523 16.126 8ZM18 7C18 5.89543 18.8954 5 20 5C21.1046 5 22 5.89543 22 7C22 8.10457 21.1046 9 20 9C18.8954 9 18 8.10457 18 7Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6.12602 17H5C4.44772 17 4 16.5523 4 16C4 15.4477 4.44772 15 5 15H6.12602C6.57006 13.2748 8.13616 12 10 12C11.8638 12 13.4299 13.2748 13.874 15H27C27.5523 15 28 15.4477 28 16C28 16.5523 27.5523 17 27 17H13.874C13.4299 18.7252 11.8638 20 10 20C8.13616 20 6.57006 18.7252 6.12602 17ZM8 16C8 14.8954 8.89543 14 10 14C11.1046 14 12 14.8954 12 16C12 17.1046 11.1046 18 10 18C8.89543 18 8 17.1046 8 16Z\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M18.126 26H5C4.44772 26 4 25.5523 4 25C4 24.4477 4.44772 24 5 24H18.126C18.5701 22.2748 20.1362 21 22 21C23.8638 21 25.4299 22.2748 25.874 24H27C27.5523 24 28 24.4477 28 25C28 25.5523 27.5523 26 27 26H25.874C25.4299 27.7252 23.8638 29 22 29C20.1362 29 18.5701 27.7252 18.126 26ZM20 25C20 23.8954 20.8954 23 22 23C23.1046 23 24 23.8954 24 25C24 26.1046 23.1046 27 22 27C20.8954 27 20 26.1046 20 25Z\"/>',viewBox:\"0 0 32 32\"},listBullet2:{innerHTML:'<path stroke=\"none\" d=\"M4 7C4 5.89543 4.89543 5 6 5C7.10457 5 8 5.89543 8 7C8 8.10457 7.10457 9 6 9C4.89543 9 4 8.10457 4 7Z\"/><path stroke=\"none\" d=\"M11 7C11 6.44772 11.4477 6 12 6H27C27.5523 6 28 6.44772 28 7C28 7.55228 27.5523 8 27 8H12C11.4477 8 11 7.55228 11 7Z\"/><path stroke=\"none\" d=\"M11 16C11 15.4477 11.4477 15 12 15H27C27.5523 15 28 15.4477 28 16C28 16.5523 27.5523 17 27 17H12C11.4477 17 11 16.5523 11 16Z\"/><path stroke=\"none\" d=\"M4 16C4 14.8954 4.89543 14 6 14C7.10457 14 8 14.8954 8 16C8 17.1046 7.10457 18 6 18C4.89543 18 4 17.1046 4 16Z\"/><path stroke=\"none\" d=\"M4 25C4 23.8954 4.89543 23 6 23C7.10457 23 8 23.8954 8 25C8 26.1046 7.10457 27 6 27C4.89543 27 4 26.1046 4 25Z\"/><path stroke=\"none\" d=\"M12 24C11.4477 24 11 24.4477 11 25C11 25.5523 11.4477 26 12 26H27C27.5523 26 28 25.5523 28 25C28 24.4477 27.5523 24 27 24H12Z\"/>',viewBox:\"0 0 32 32\"},menu:{innerHTML:'<path stroke=\"none\" d=\"M7 7C6.44772 7 6 7.44772 6 8C6 8.55228 6.44772 9 7 9H25C25.5523 9 26 8.55228 26 8C26 7.44772 25.5523 7 25 7H7Z\" /><path stroke=\"none\" d=\"M6 15.9999C6 15.4477 6.44772 14.9999 7 14.9999H25C25.5523 14.9999 26 15.4477 26 15.9999C26 16.5522 25.5523 16.9999 25 16.9999H7C6.44772 16.9999 6 16.5522 6 15.9999Z\" /><path stroke=\"none\" d=\"M6 24C6 23.4477 6.44772 23 7 23H25C25.5523 23 26 23.4477 26 24C26 24.5523 25.5523 25 25 25H7C6.44772 25 6 24.5523 6 24Z\" />',viewBox:\"0 0 32 32\"},listNumber:{innerHTML:'<path stroke=\"none\" d=\"M7.50002 6L7.50001 11H8.00001C8.5523 11 9.00001 11.4477 9.00001 12C9.00001 12.5523 8.5523 13 8.00001 13H5.00001C4.44773 13 4.00001 12.5523 4.00001 12C4.00001 11.4477 4.44773 11 5.00001 11H5.50001V7.86607C5.04704 8.12816 4.46232 7.99624 4.16796 7.5547C3.86161 7.09517 3.98579 6.4743 4.44531 6.16795L5.94531 5.16795C6.25217 4.96338 6.64672 4.94431 6.97187 5.11833C7.29703 5.29235 7.50002 5.63121 7.50002 6Z\" /><path stroke=\"none\" d=\"M11 7C11 6.44772 11.4477 6 12 6H27C27.5523 6 28 6.44772 28 7C28 7.55228 27.5523 8 27 8H12C11.4477 8 11 7.55228 11 7Z\" /><path stroke=\"none\" d=\"M11 16C11 15.4477 11.4477 15 12 15H27C27.5523 15 28 15.4477 28 16C28 16.5523 27.5523 17 27 17H12C11.4477 17 11 16.5523 11 16Z\" /><path stroke=\"none\" d=\"M5 19C4.44772 19 4 19.4477 4 20C4 20.5523 4.44772 21 5 21H6.5C6.77614 21 7 21.2239 7 21.5C7 21.67 6.94942 21.8359 6.40479 22.1301C6.21454 22.2328 6.02498 22.3196 5.80528 22.4202C5.70137 22.4677 5.59041 22.5185 5.46975 22.5754C5.13205 22.7347 4.72743 22.9387 4.37709 23.2177C4.13882 23.4074 4 23.6954 4 24V26C4 26.5523 4.44772 27 5 27H8C8.55228 27 9 26.5523 9 26C9 25.4477 8.55228 25 8 25H6V24.5448C6.0949 24.4943 6.20196 24.4414 6.32271 24.3844C6.3981 24.3489 6.48253 24.3102 6.57234 24.269C6.81799 24.1565 7.10405 24.0254 7.35518 23.8898C8.05723 23.5107 9 22.83 9 21.5C9 20.1193 7.88071 19 6.5 19H5Z\" /><path stroke=\"none\" d=\"M12 24C11.4477 24 11 24.4477 11 25C11 25.5523 11.4477 26 12 26H27C27.5523 26 28 25.5523 28 25C28 24.4477 27.5523 24 27 24H12Z\" />',viewBox:\"0 0 32 32\"},speechBubbleExclamation:{innerHTML:'<path stroke=\"none\" d=\"M16 8C16.5523 8 17 8.44772 17 9V14C17 14.5523 16.5523 15 16 15C15.4477 15 15 14.5523 15 14V9C15 8.44772 15.4477 8 16 8Z\" /><path stroke=\"none\" d=\"M17.5 18C17.5 18.8284 16.8284 19.5 16 19.5C15.1716 19.5 14.5 18.8284 14.5 18C14.5 17.1716 15.1716 16.5 16 16.5C16.8284 16.5 17.5 17.1716 17.5 18Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 11C4 7.13401 7.13401 4 11 4H21C24.866 4 28 7.13401 28 11V17C28 20.866 24.866 24 21 24H16.4142L11.7071 28.7071C11.4211 28.9931 10.991 29.0787 10.6173 28.9239C10.2436 28.7691 10 28.4045 10 28V23.9291C6.60771 23.4439 4 20.5265 4 17V11ZM11 6C8.23858 6 6 8.23858 6 11V17C6 19.7614 8.23858 22 11 22C11.5523 22 12 22.4477 12 23V25.5858L15.2929 22.2929C15.4804 22.1054 15.7348 22 16 22H21C23.7614 22 26 19.7614 26 17V11C26 8.23858 23.7614 6 21 6H11Z\" />',viewBox:\"0 0 32 32\"},\"arrow-disappeared\":{innerHTML:'<path stroke=\"none\" d=\"M4.8 13.4001C4.46863 12.9582 3.84183 12.8687 3.4 13.2001C2.95817 13.5314 2.86863 14.1582 3.2 14.6001C6.22167 18.629 10.9639 21.0001 16 21.0001H25.5741L23.0383 23.5188C22.6465 23.9079 22.6443 24.5411 23.0335 24.933C23.4227 25.3248 24.0559 25.3269 24.4477 24.9378L28.7047 20.7095C29.0965 20.3204 29.0987 19.6872 28.7095 19.2953L24.4813 15.0383C24.0921 14.6465 23.4589 14.6443 23.0671 15.0335C22.6752 15.4227 22.6731 16.0559 23.0623 16.4477L25.5973 19.0001H16C11.5934 19.0001 7.44396 16.9253 4.8 13.4001Z\" />',viewBox:\"0 0 32 32\"},lineStraight:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 16C3 15.4477 3.44772 15 4 15H28C28.5523 15 29 15.4477 29 16C29 16.5523 28.5523 17 28 17H4C3.44772 17 3 16.5523 3 16Z\"/>',viewBox:\"0 0 32 32\"},lineWave:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M28.025 5.00024C28.5771 5.01405 29.0135 5.47281 28.9997 6.02492L28 5.99993C28.9997 6.02492 28.9997 6.02464 28.9997 6.02492L28.9996 6.02965L28.9993 6.0416L28.998 6.08673C28.9968 6.12609 28.995 6.18382 28.9925 6.25869C28.9874 6.40841 28.9792 6.62675 28.9668 6.90391C28.9421 7.4581 28.9006 8.24814 28.8335 9.19559C28.6994 11.0878 28.4624 13.6201 28.0496 16.1603C27.6392 18.6854 27.0452 21.2843 26.174 23.2758C25.7389 24.2703 25.2087 25.1746 24.5485 25.8432C23.8753 26.5248 23.024 26.9999 22 26.9999C19.9491 26.9999 18.594 25.5629 17.6549 23.9175C16.7098 22.2614 16.008 20.0911 15.3596 18.0532C15.336 17.979 15.3124 17.905 15.289 17.8312C14.6487 15.8176 14.0529 13.9441 13.3118 12.5467C12.5252 11.0633 11.7801 10.5001 11 10.5001C10.3514 10.5001 9.72562 10.7922 9.09363 11.4758C8.44727 12.1749 7.84649 13.2338 7.30623 14.6145C6.22729 17.3718 5.4893 21.1479 4.99226 25.1243C4.92376 25.6723 4.42397 26.0611 3.87595 25.9926C3.32793 25.9241 2.9392 25.4243 3.0077 24.8763C3.51067 20.8524 4.27267 16.8784 5.44374 13.8857C6.02847 12.3913 6.7402 11.0752 7.62508 10.1181C8.52434 9.14541 9.64857 8.50005 11 8.50005C12.9699 8.50005 14.2248 9.9993 15.0788 11.6097C15.9073 13.1719 16.5525 15.2028 17.1678 17.1397C17.2004 17.2424 17.233 17.3447 17.2654 17.4468C17.9295 19.5339 18.5715 21.4885 19.3919 22.9262C20.2185 24.3745 21.0509 24.9999 22 24.9999C22.3511 24.9999 22.7184 24.85 23.1254 24.4379C23.5452 24.0128 23.9565 23.3546 24.3417 22.4741C25.111 20.7156 25.6733 18.3145 26.0755 15.8395C26.4752 13.3798 26.7069 10.9121 26.8384 9.05428C26.9042 8.12673 26.9447 7.35427 26.9688 6.81471C26.9808 6.54499 26.9887 6.33364 26.9936 6.19039C26.9961 6.11878 26.9978 6.0642 26.9988 6.02788L27 5.98726L27.0003 5.97531\"/>',viewBox:\"0 0 32 32\"},regulatory_ce:{innerHTML:'<g transform=\"translate(0, 7)\"><path stroke=\"none\" d=\"M25.2711 3.74995C26.0317 3.4986 26.8365 3.40166 27.6365 3.46505L28.0002 3.48803V0.969867L27.5315 0.933105H26.744C26.5611 0.950567 26.3783 0.966191 26.1955 0.985491C25.0201 1.10106 23.8844 1.4661 22.8674 2.05525C20.5002 3.44116 19.0846 5.47131 18.6608 8.14847C18.4653 9.37977 18.5671 10.6389 18.958 11.8246C19.6349 13.9136 20.9483 15.5109 22.8758 16.6183C23.8924 17.2007 25.0243 17.5633 26.1955 17.6816C26.3783 17.7009 26.5611 17.7175 26.744 17.7349H27.5315L28.0002 17.6982V15.1782C27.7105 15.1901 27.4199 15.2131 27.1302 15.2113C25.8663 15.2103 24.635 14.8174 23.6126 14.089C22.5901 13.3605 21.8289 12.3338 21.4377 11.1556C21.3768 10.9717 21.3308 10.7879 21.2727 10.5949H26.278V8.07678H21.284C21.298 8.01337 21.3074 7.96374 21.3205 7.91595C21.8986 5.85179 23.2155 4.46313 25.2711 3.74995Z\"/><path stroke=\"none\" d=\"M8.6425 13.7705C7.28125 12.6051 6.58187 11.1071 6.57531 9.32875C6.5512 7.87735 7.10081 6.47309 8.10906 5.40998C9.53125 3.87427 11.335 3.29252 13.4228 3.48827V0.977463L12.9625 0.93335H12.175C11.9875 0.950811 11.8 0.967354 11.6125 0.986654C10.5727 1.09249 9.56306 1.39194 8.63781 1.86893C6.60031 2.92582 5.20219 4.52464 4.44344 6.66538C4.19774 7.36604 4.05383 8.0971 4.01594 8.83707C4.01256 8.87407 4.00724 8.91088 4 8.94735V9.71935C4.01781 9.90315 4.03375 10.087 4.05438 10.2708C4.18642 11.5021 4.60325 12.6877 5.27312 13.7374C6.35376 15.473 8.04467 16.7613 10.0272 17.3593C10.6873 17.5631 11.3713 17.6833 12.0625 17.7168C12.0993 17.7205 12.1359 17.726 12.1722 17.7333H12.9597L13.4219 17.6883V15.1784C11.6294 15.3558 10.0113 14.9422 8.6425 13.7705Z\"/></g>',viewBox:\"0 0 32 32\"},regulatory_ce2797:{innerHTML:'<path stroke=\"none\" d=\"M25.2711 3.74995C26.0317 3.4986 26.8365 3.40166 27.6365 3.46505L28.0002 3.48803V0.969867L27.5315 0.933105H26.744C26.5611 0.950567 26.3783 0.966191 26.1955 0.985491C25.0201 1.10106 23.8844 1.4661 22.8674 2.05525C20.5002 3.44116 19.0846 5.47131 18.6608 8.14847C18.4653 9.37977 18.5671 10.6389 18.958 11.8246C19.6349 13.9136 20.9483 15.5109 22.8758 16.6183C23.8924 17.2007 25.0243 17.5633 26.1955 17.6816C26.3783 17.7009 26.5611 17.7175 26.744 17.7349H27.5315L28.0002 17.6982V15.1782C27.7105 15.1901 27.4199 15.2131 27.1302 15.2113C25.8663 15.2103 24.635 14.8174 23.6126 14.089C22.5901 13.3605 21.8289 12.3338 21.4377 11.1556C21.3768 10.9717 21.3308 10.7879 21.2727 10.5949H26.278V8.07678H21.284C21.298 8.01337 21.3074 7.96374 21.3205 7.91595C21.8986 5.85179 23.2155 4.46313 25.2711 3.74995Z\"/><path stroke=\"none\" d=\"M8.6425 13.7705C7.28125 12.6051 6.58187 11.1071 6.57531 9.32875C6.5512 7.87735 7.10081 6.47309 8.10906 5.40998C9.53125 3.87427 11.335 3.29252 13.4228 3.48827V0.977463L12.9625 0.93335H12.175C11.9875 0.950811 11.8 0.967354 11.6125 0.986654C10.5727 1.09249 9.56306 1.39194 8.63781 1.86893C6.60031 2.92582 5.20219 4.52464 4.44344 6.66538C4.19774 7.36604 4.05383 8.0971 4.01594 8.83707C4.01256 8.87407 4.00724 8.91088 4 8.94735V9.71935C4.01781 9.90315 4.03375 10.087 4.05438 10.2708C4.18642 11.5021 4.60325 12.6877 5.27312 13.7374C6.35376 15.473 8.04467 16.7613 10.0272 17.3593C10.6873 17.5631 11.3713 17.6833 12.0625 17.7168C12.0993 17.7205 12.1359 17.726 12.1722 17.7333H12.9597L13.4219 17.6883V15.1784C11.6294 15.3558 10.0113 14.9422 8.6425 13.7705Z\"/><path stroke=\"none\" d=\"M4.04873 30.5198V29.9276C4.63343 29.3476 5.15318 28.8239 5.60795 28.3566C6.06272 27.8894 6.44441 27.4583 6.753 27.0636C7.0616 26.6608 7.29711 26.2942 7.45953 25.9639C7.62195 25.6255 7.70316 25.2992 7.70316 24.985C7.70316 24.5419 7.58134 24.1794 7.33771 23.8974C7.09408 23.6154 6.72458 23.4745 6.2292 23.4745C5.90436 23.4745 5.60389 23.5671 5.32778 23.7524C5.05166 23.9296 4.79991 24.1472 4.57253 24.405L4 23.837C4.32484 23.4825 4.66998 23.2005 5.03542 22.9911C5.40087 22.7736 5.8394 22.6648 6.35102 22.6648C7.07378 22.6648 7.64225 22.8743 8.05642 23.2932C8.47059 23.7041 8.67767 24.2519 8.67767 24.9367C8.67767 25.2992 8.59646 25.6658 8.43404 26.0364C8.27974 26.3989 8.06048 26.7776 7.77625 27.1723C7.50013 27.5591 7.16717 27.9659 6.77737 28.3929C6.39568 28.8118 5.97339 29.259 5.5105 29.7343C5.72164 29.7182 5.94091 29.7021 6.1683 29.6859C6.39568 29.6698 6.61089 29.6618 6.81391 29.6618H9.06748V30.5198H4.04873Z\"/><path stroke=\"none\" d=\"M12.0162 30.5198C12.0487 29.7947 12.1137 29.1301 12.2111 28.5258C12.3086 27.9216 12.4426 27.3496 12.6131 26.8098C12.7918 26.262 13.0151 25.7343 13.2831 25.2267C13.5592 24.7192 13.8881 24.1995 14.2698 23.6678H10.3961V22.8098H15.4027V23.4261C14.9398 24.0062 14.5622 24.5621 14.2698 25.0938C13.9856 25.6255 13.7582 26.1693 13.5876 26.7252C13.4171 27.2731 13.2912 27.8571 13.21 28.4775C13.1369 29.0898 13.0841 29.7705 13.0517 30.5198H12.0162Z\"/><path stroke=\"none\" d=\"M19.0214 26.7736C19.2813 26.7736 19.5533 26.693 19.8376 26.5319C20.1299 26.3707 20.402 26.1089 20.6537 25.7464C20.5888 24.9891 20.4101 24.4171 20.1178 24.0304C19.8254 23.6436 19.4315 23.4503 18.9362 23.4503C18.7494 23.4503 18.5707 23.4906 18.4002 23.5711C18.2378 23.6517 18.0956 23.7685 17.9738 23.9216C17.852 24.0666 17.7546 24.2438 17.6815 24.4533C17.6165 24.6628 17.584 24.8924 17.584 25.1421C17.584 25.6497 17.7018 26.0485 17.9373 26.3385C18.1728 26.6285 18.5342 26.7736 19.0214 26.7736ZM18.656 30.6648C18.2418 30.6648 17.8764 30.5883 17.5597 30.4352C17.2511 30.2821 16.9912 30.0888 16.78 29.8551L17.3404 29.2267C17.5028 29.412 17.6936 29.5611 17.9129 29.6739C18.1403 29.7866 18.3758 29.843 18.6194 29.843C18.8955 29.843 19.1554 29.7866 19.399 29.6739C19.6427 29.5611 19.8579 29.3758 20.0447 29.118C20.2314 28.8521 20.3817 28.5097 20.4954 28.0908C20.6091 27.6718 20.67 27.1522 20.6781 26.5319C20.4345 26.838 20.1502 27.0797 19.8254 27.2569C19.5006 27.4342 19.1757 27.5228 18.8509 27.5228C18.1768 27.5228 17.6409 27.3254 17.2429 26.9307C16.845 26.5359 16.646 25.9397 16.646 25.1421C16.646 24.7715 16.7069 24.4372 16.8288 24.1391C16.9506 23.833 17.113 23.5711 17.316 23.3536C17.5272 23.1361 17.7708 22.9669 18.0469 22.8461C18.3311 22.7252 18.6276 22.6648 18.9362 22.6648C19.3178 22.6648 19.6711 22.7413 19.9959 22.8944C20.3289 23.0475 20.6131 23.2811 20.8486 23.5953C21.0923 23.9015 21.279 24.2882 21.409 24.7554C21.547 25.2146 21.6161 25.7544 21.6161 26.3748C21.6161 27.1482 21.5349 27.8088 21.3724 28.3566C21.21 28.8964 20.9908 29.3395 20.7146 29.6859C20.4385 30.0243 20.1218 30.2741 19.7645 30.4352C19.4153 30.5883 19.0458 30.6648 18.656 30.6648Z\"/><path stroke=\"none\" d=\"M24.6136 30.5198C24.646 29.7947 24.711 29.1301 24.8085 28.5258C24.9059 27.9216 25.0399 27.3496 25.2104 26.8098C25.3891 26.262 25.6124 25.7343 25.8804 25.2267C26.1565 24.7192 26.4854 24.1995 26.8671 23.6678H22.9934V22.8098H28V23.4261C27.5371 24.0062 27.1595 24.5621 26.8671 25.0938C26.5829 25.6255 26.3555 26.1693 26.185 26.7252C26.0144 27.2731 25.8885 27.8571 25.8073 28.4775C25.7343 29.0898 25.6815 29.7705 25.649 30.5198H24.6136Z\"/>',viewBox:\"0 0 32 32\"},regulatory_release_date:{innerHTML:'<path stroke=\"none\" d=\"M6.75666 12.6958L9.82966 17.526L12.9131 12.6623C13.9548 14.3058 14.9527 15.8683 16.0059 17.526L19.0872 12.6623L21.9977 17.2423L22.1185 17.22C22.1373 17.0325 22.1716 16.8451 22.1716 16.6576C22.1716 12.6593 22.1716 8.66064 22.1716 4.66166C22.1716 4.01013 22.1716 4.00912 22.8248 4.00912C24.7988 4.00912 26.7728 4.01925 28.7468 4C29.1926 4 29.3343 4.13071 29.3333 4.56945C29.3215 12.177 29.3187 19.7845 29.3249 27.392C29.3249 27.9797 29.2979 28 28.6999 28C20.2275 28 11.7523 28 3.27428 28C2.66906 28 2.66802 28 2.66802 27.392C2.66802 24.7643 2.66802 22.137 2.66802 19.5099C2.65825 19.2973 2.70489 19.0859 2.80344 18.8959C4.04618 16.918 5.29829 14.9452 6.54728 12.9663C6.58478 12.9096 6.6327 12.8569 6.75666 12.6958ZM6.765 14.4862C6.68735 14.5691 6.61433 14.6561 6.54624 14.7466C5.62018 16.2057 4.68994 17.6617 3.78055 19.131C3.67126 19.3336 3.61644 19.5598 3.62117 19.7886C3.61075 22.0258 3.61388 24.2631 3.61492 26.5004C3.61492 27.0496 3.64513 27.0789 4.22847 27.0789C12.0801 27.0789 19.9313 27.0789 27.7822 27.0789C28.3385 27.0789 28.3749 27.0486 28.376 26.5247C28.376 19.4947 28.3787 12.4647 28.3843 5.43477C28.3843 5.02238 28.227 4.92308 27.8322 4.92814C26.5259 4.94841 25.2196 4.93625 23.9144 4.93625C23.1519 4.93625 23.1508 4.93625 23.1508 5.6587V18.602C23.1508 18.7459 23.1862 18.906 23.1352 19.0307C23.1098 19.0954 23.0706 19.1541 23.0201 19.203C22.9696 19.2519 22.9091 19.2899 22.8425 19.3144C22.4446 19.3853 22.1446 19.3073 21.8987 18.8928C21.0904 17.5341 20.2185 16.2108 19.3684 14.8753C19.1216 14.4882 19.0455 14.4872 18.8038 14.8692C18.1517 15.9007 17.5069 16.9352 16.8548 17.9667C16.5955 18.3771 16.3267 18.7824 16.01 19.2698C14.8954 17.6739 14.0214 16.0395 12.8849 14.472L9.8307 19.2992C8.78588 17.6567 7.79211 16.0942 6.765 14.4862Z\" stroke=\"none\"/>',viewBox:\"0 0 32 32\"},regulatory_manufacturer:{innerHTML:'<path stroke=\"none\" d=\"M9.88556 17.2794C10.0939 16.9987 10.2585 16.7924 10.4001 16.57C11.1136 15.4461 11.8125 14.315 12.5302 13.1941C12.9041 12.6084 13.0041 12.6205 13.3635 13.1941C14.1273 14.4076 14.8954 15.6171 15.6675 16.8226C15.755 16.9595 15.8759 17.0792 16.0206 17.2674C16.229 16.9977 16.405 16.7964 16.5467 16.5731C17.2758 15.4219 17.9997 14.2587 18.7267 13.1085C18.9996 12.6749 19.1434 12.6618 19.4215 13.0904C20.0892 14.1218 20.7381 15.1653 21.4006 16.2007C21.561 16.4523 21.7391 16.6948 21.9078 16.9413L22.038 16.9031C22.0505 16.7099 22.0734 16.5167 22.0734 16.3245C22.0734 12.4766 22.0734 8.62874 22.0734 4.78085C22.0734 4.05333 22.1234 4 22.8724 4C24.7702 4 26.6687 4 28.5679 4C29.2637 4 29.3293 4.06138 29.3293 4.71041C29.3321 12.2365 29.3335 19.7629 29.3335 27.2896C29.3335 27.9376 29.2741 28 28.6262 28C20.2475 28 11.8684 28 3.48903 28C2.70991 27.999 2.66825 27.9537 2.66825 27.1829C2.66825 24.6915 2.65991 22.199 2.6797 19.7075C2.6797 19.3664 2.74637 18.979 2.92136 18.6942C4.04317 16.8608 5.19519 15.0456 6.35867 13.2363C6.77531 12.5913 6.85239 12.6054 7.25133 13.2424C7.96796 14.3835 8.68042 15.5276 9.4033 16.6636C9.52621 16.8598 9.68765 17.0309 9.88556 17.2794Z\" />',viewBox:\"0 0 32 32\"},regulatory_ifu:{innerHTML:'<rect stroke=\"none\" x=\"2\" y=\"2.00317\" width=\"28\" height=\"28\" fill=\"url(#pattern0_2730_379)\"/><defs><pattern id=\"pattern0_2730_379\" patternContentUnits=\"objectBoundingBox\" width=\"1\" height=\"1\"><use xlink:href=\"#image0_2730_379\" transform=\"scale(0.00374532)\"/></pattern><image id=\"image0_2730_379\" width=\"267\" height=\"267\" xlink:href=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQsAAAELCAYAAADOVaNSAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABC6ADAAQAAAABAAABCwAAAAClsD9CAAAW+klEQVR4Ae2dCdAlVXmGIZo4oDCLwLAJM8omu5MCFRUNVpRCWUQxSLBkKQlRMEBMNGUVDpQkBoG4YEoiEEUghsRoJqIxMWLCNonEsG8Ks7DKMCOMMIoFJu8L9xY9f27//719v3O7T/fzVb3Tffv2Oec7zznn69One+6/wQYYBCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAA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fne93/Z31QaxRwsQl9XaEqwGATh5zq4picHDr/V6O2j0lPSdOb1Bq+au7P4zcDtpVR2pTL+hLQ0VQHkG0LA78J8WPIFI4V5BuKL3iD5yc1j0m9IGxXkR7j+7O0CKbKfHqr8lkiNNke04nSorfue5i5qdEvg3CACB+jgFVJb+2W/Xm8fVPmmHZsvh86VHpH6jrdl+z3VydPaJi/Syj1sCAKedZ4pta2feuZ9juTH/VnZwfL2H6Scg8VV8v94aZ6EtZOAZ8NeZ1sn5dpXvy7fs5hNyM9pzQPNK7kRjyRTN6bXSXyvd4q0lYR1h8AsVfVw6auS+0HqvjZO/g/Lv6skz3QjF2+V3WBLscA5uKTnj7pBXiMtlLz46N808JRws97W0yefk9q8om09IK2Q7pCWSn4fBIOACewqua9afnK2tzRJW6XCHBQelB6SVko3SH4K4wX/iVodwaJKBT0zcTDxWoGj6GxpTm87KLA8re8M2vejRaiP67PB/0TCIFCFwJ5K5CcqO0nuj5tK7o/e9rWJ9i1/LtqT+rBGWi31+6cvWD7mPum+6e8cIBwcMAhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQKDdBP4PxVoYmIq15bwAAAAASUVORK5CYII=\"/></defs>',viewBox:\"0 0 32 32\"},regulatory_medical_device:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16.0192 24.6694H3.16051C2.66779 24.6694 2.66675 24.6694 2.66675 24.1749V7.81391C2.66675 7.336 2.66675 7.33496 3.14593 7.33496H28.8644C29.329 7.33496 29.3332 7.33496 29.3332 7.79836V24.2184C29.3332 24.6601 29.3249 24.6663 28.878 24.6663L16.0192 24.6694ZM16.0057 8.07412H3.89283C3.41365 8.07412 3.40531 8.08552 3.40531 8.55929V23.4264C3.40531 23.9219 3.41156 23.9292 3.90741 23.9292H28.1331C28.5717 23.9292 28.5811 23.9157 28.5852 23.4741V8.73034V8.35817C28.5852 8.17053 28.5102 8.06582 28.3071 8.07515C28.2245 8.0793 28.142 8.07792 28.0591 8.07654C28.0176 8.07585 27.9759 8.07515 27.9342 8.07515L16.0057 8.07412ZM7.59919 13.5157C7.59473 13.5606 7.58921 13.6056 7.58368 13.6506C7.57112 13.7528 7.55856 13.8551 7.55856 13.9573V20.5071C7.55856 20.8083 7.55856 20.9578 7.4838 21.0323C7.4101 21.1058 7.26375 21.1063 6.97313 21.1073C6.86271 21.1073 6.75229 21.1064 6.64187 21.1055C6.42103 21.1036 6.20019 21.1018 5.97935 21.1073C5.75122 21.1156 5.66684 21.0285 5.66684 20.8015C5.6724 20.3392 5.67054 19.8768 5.66869 19.4145V19.4144C5.66777 19.1832 5.66684 18.9521 5.66684 18.7209V11.2702C5.66684 10.8369 5.66684 10.8296 6.09394 10.8275C6.34907 10.8275 6.60433 10.8281 6.85962 10.8287H6.85974C7.37052 10.8298 7.88145 10.831 8.39192 10.8275C8.63672 10.8275 8.74402 10.9094 8.8086 11.1645C9.25101 12.8613 9.70965 14.5504 10.1685 16.2405L10.1686 16.2406L10.3899 17.056C10.4273 17.1966 10.4729 17.3334 10.5185 17.4702C10.5402 17.5352 10.5618 17.6001 10.5826 17.6655L10.7014 17.651C10.7426 17.5012 10.7844 17.3516 10.8261 17.202C10.9045 16.9212 10.9829 16.6407 11.0576 16.3593C11.341 15.2915 11.6222 14.2237 11.9014 13.1559C11.9465 12.9835 11.9923 12.8112 12.0381 12.6388L12.0381 12.6388C12.1646 12.1627 12.2911 11.6868 12.4035 11.208C12.4702 10.924 12.6046 10.8203 12.8983 10.8265C13.6546 10.8421 14.4109 10.8348 15.1661 10.8265C15.4682 10.8265 15.5828 10.9364 15.5828 11.2474C15.5758 14.4045 15.5758 17.5608 15.5828 20.7165C15.5828 21.0088 15.4848 21.1312 15.1859 21.1135C14.9657 21.1018 14.7447 21.1057 14.5236 21.1096C14.4131 21.1116 14.3025 21.1135 14.1921 21.1135C13.7233 21.1135 13.7202 21.1135 13.7202 20.6512V13.8215V13.4307L13.5983 13.4058C13.571 13.49 13.5428 13.5739 13.5146 13.6579C13.4356 13.8934 13.3566 14.1289 13.2952 14.3689C13.0983 15.1309 12.906 15.8955 12.7141 16.6588L12.714 16.6592L12.714 16.6594C12.6065 17.087 12.4991 17.5141 12.391 17.9402C12.3061 18.2769 12.2202 18.6132 12.1342 18.9496L12.1342 18.9496C11.9725 19.5829 11.8107 20.2162 11.6556 20.8513C11.6108 21.0358 11.5295 21.1125 11.3431 21.1104C10.8566 21.1042 10.3691 21.1052 9.88468 21.1104C9.68467 21.1104 9.60342 21.0213 9.55446 20.8253C9.158 19.2334 8.7537 17.6443 8.34922 16.0546L8.09608 15.0593C8.0297 14.7962 7.96625 14.5325 7.90282 14.2688L7.90281 14.2688C7.85277 14.0608 7.80273 13.8528 7.75128 13.6453C7.73514 13.6003 7.71418 13.5572 7.68878 13.5167L7.59919 13.5157ZM17.7319 11.4164V15.9779L17.7235 15.9758C17.7235 16.5035 17.7242 17.0311 17.7249 17.5588C17.7263 18.6142 17.7277 19.6695 17.7235 20.7248C17.7225 20.9726 17.7767 21.1105 18.0652 21.1105C18.7285 21.1032 19.3917 21.0997 20.055 21.0962C20.8928 21.0918 21.7306 21.0874 22.5685 21.0752C23.2146 21.0555 23.8424 20.8566 24.381 20.5009C25.5998 19.7296 26.1103 18.5136 26.2686 17.1659C26.4071 15.9913 26.4009 14.794 25.9988 13.6412C25.6977 12.7807 25.2186 12.054 24.4685 11.5149C23.6466 10.924 22.6924 10.8691 21.7424 10.8421C20.9497 10.8197 20.1565 10.825 19.3634 10.8303C19.0175 10.8326 18.6715 10.8349 18.3256 10.8349C17.7319 10.8349 17.7319 10.8369 17.7319 11.4164ZM19.7425 17.002C19.7419 16.6607 19.7413 16.3194 19.7413 15.9779C19.7413 15.6411 19.7423 15.3038 19.7434 14.9664C19.7455 14.2913 19.7476 13.6157 19.7413 12.9424C19.7371 12.648 19.8434 12.5371 20.1361 12.5444C20.4431 12.5556 20.7504 12.5555 21.0575 12.5554C21.3715 12.5552 21.6854 12.5551 21.9987 12.5672C23.0977 12.6097 23.9123 13.3623 24.1071 14.4436C24.3104 15.4903 24.3069 16.5663 24.0966 17.6117C23.8383 18.8225 23.3383 19.3067 22.1174 19.428C21.7054 19.4683 21.2892 19.4645 20.8728 19.4607C20.626 19.4585 20.3791 19.4563 20.133 19.4632C19.8288 19.4694 19.7413 19.3315 19.7413 19.0485C19.7448 18.3665 19.7436 17.6844 19.7425 17.002Z\"/>',viewBox:\"0 0 32 32\"},regulatory_red_robin:{innerHTML:'<path stroke=\"none\" d=\"M23.3866 10.6988C23.3884 10.6037 23.4569 10.523 23.5504 10.5058L27.6288 9.75464C27.7867 9.72557 27.8477 9.53181 27.735 9.41753L22.5358 4.14444C22.4574 4.065 22.3293 4.065 22.2509 4.14445L17.8644 8.59363C17.7861 8.67308 17.6579 8.67308 17.5796 8.59363L14.0828 5.04685C14.0413 5.00483 13.9835 4.98325 13.9246 4.98788L4.42842 5.73549C4.25891 5.74884 4.18232 5.95419 4.30168 6.07528L12.5175 14.4103C12.5579 14.4513 12.5787 14.5078 12.5746 14.5652L11.6395 27.4585C11.6261 27.644 11.8509 27.7458 11.9814 27.6134L24.0171 15.4063C24.0938 15.3284 24.0939 15.2033 24.0171 15.1255L23.376 14.4748C23.3382 14.4365 23.3175 14.3845 23.3185 14.3307L23.3866 10.6988ZM19.2921 10.3291C19.2153 10.2513 19.2153 10.1261 19.292 10.0482L21.024 8.29118C21.1503 8.16306 21.3683 8.2538 21.3664 8.43369L21.3298 11.9092C21.3279 12.087 21.1123 12.1741 20.9874 12.0475L19.2921 10.3291ZM14.44 16.8314C14.4524 16.66 14.6611 16.583 14.7819 16.7054L17.1877 19.1444C17.2645 19.2223 17.2645 19.3474 17.1877 19.4253L14.4 22.2529C14.2694 22.3853 14.0446 22.2834 14.0581 22.098L14.44 16.8314ZM13.1522 7.10809C13.2111 7.10346 13.2689 7.12504 13.3104 7.16706L21.1539 15.1231C21.2306 15.201 21.2306 15.326 21.1539 15.4039L18.8993 17.6907C18.8209 17.7702 18.6927 17.7702 18.6144 17.6907L8.84249 7.77734C8.72314 7.65625 8.79973 7.45091 8.96923 7.43756L13.1522 7.10809ZM24.4769 8.28794C24.6071 8.40047 24.5438 8.61393 24.3734 8.63737L23.6329 8.73922C23.5127 8.75574 23.4057 8.66237 23.4057 8.54108V7.79905C23.4057 7.62778 23.6069 7.53574 23.7365 7.64776L24.4769 8.28794Z\" />',viewBox:\"0 0 32 32\"},regulatory_udi:{innerHTML:'<path stroke=\"none\" d=\"M15.9884 8C20.0902 8 24.1919 8 28.2937 8C28.4089 8 28.524 8.00247 28.6391 8.00247C28.8797 8.00123 28.9871 8.12594 28.9961 8.34324C29 8.4346 29 8.52597 29 8.61857C29 13.5486 29 18.4786 29 23.4086C29 23.9543 28.9521 24 28.3752 24.0012C20.1238 24.0012 11.8723 24.0012 3.6209 24.0012C3.05045 24.0012 3.00129 23.9518 3.00129 23.4012C3 18.4885 3 13.577 3 8.66548C3 8.00741 3.00776 8 3.68428 8C7.78478 8 11.8866 8 15.9884 8ZM16.0155 8.93834C12.1828 8.93834 8.35005 8.93834 4.51731 8.93834C4.03224 8.93834 4.02706 8.93834 4.02706 9.40875C4.02706 13.7881 4.02706 18.1687 4.02706 22.548C4.02706 22.8905 4.20988 23.0621 4.57552 23.0629C4.63373 23.0629 4.69065 23.0629 4.74886 23.0629C12.1259 23.0629 19.5029 23.0629 26.8799 23.0629C27.1296 23.0629 27.3792 23.0666 27.6289 23.0629C27.9561 23.0567 28.0053 23.0086 28.0105 22.6863C28.013 22.5122 28.0105 22.3381 28.0105 22.1641C28.0105 17.8946 28.0105 13.6239 28.0105 9.35443C28.0105 8.94822 27.9923 8.93834 27.5719 8.93834C23.7198 8.93834 19.869 8.93834 16.0168 8.93834H16.0155Z\" /><path stroke=\"none\" d=\"M15.1036 15.9746C15.1036 14.793 15.1036 13.6102 15.1036 12.4286C15.1036 12.0076 15.1489 11.9619 15.5744 11.9619C16.6507 11.9619 17.7269 11.9508 18.8018 11.9718C19.4667 11.9841 20.1096 12.0718 20.6865 12.4607C21.4794 12.9953 21.9257 13.7263 22.1197 14.6041C22.3254 15.5363 22.3448 16.4857 22.1236 17.4142C21.8338 18.6254 21.1237 19.5242 19.8146 19.8786C19.5249 19.9576 19.2132 19.9946 18.9105 19.9983C17.7773 20.0119 16.6442 20.0058 15.5111 20.0033C15.1411 20.0033 15.1036 19.9638 15.1036 19.6033C15.1023 18.3933 15.1036 17.1845 15.1036 15.9746ZM16.9546 16.0141C16.9546 16.7462 16.9598 17.4796 16.9521 18.2118C16.9495 18.4563 17.0491 18.5686 17.3091 18.5563C17.8355 18.5328 18.3646 18.5365 18.8898 18.4908C19.5986 18.4303 20.094 18.0118 20.173 17.3315C20.2583 16.5919 20.314 15.8375 20.2687 15.0967C20.2092 14.13 19.6077 13.4707 18.5082 13.4954C18.1253 13.504 17.7424 13.4756 17.3595 13.4744C16.9947 13.4744 16.9585 13.5102 16.9572 13.8707C16.9546 14.5843 16.9572 15.2992 16.9572 16.0129L16.9546 16.0141Z\"/><path stroke=\"none\" d=\"M8.59319 14.809C8.59319 15.5968 8.56732 16.3857 8.59966 17.1722C8.63717 18.0612 9.1714 18.6451 10.1079 18.6254C10.571 18.6155 11.0341 18.6106 11.3277 18.2118C11.4739 18.013 11.5929 17.7611 11.6214 17.5228C11.6809 17.024 11.6834 16.5178 11.6873 16.0153C11.6951 14.8239 11.6899 13.6337 11.6899 12.4422C11.6899 12.0212 11.7352 11.9755 12.1879 11.9669C12.5139 11.9607 12.8412 11.9669 13.1671 11.9669C13.3961 11.9669 13.5203 12.052 13.5164 12.2965C13.5047 13.3583 13.5047 14.4201 13.4996 15.4819C13.4957 16.1857 13.5099 16.8907 13.4802 17.5944C13.4517 18.2636 13.3198 18.9316 12.7584 19.3847C12.4169 19.66 11.99 19.8971 11.5618 20.0057C10.5736 20.2576 9.55558 20.2342 8.57379 19.965C8.19349 19.8613 7.81707 19.623 7.5325 19.3538C7.07459 18.9205 6.81071 18.3636 6.79906 17.729C6.77578 16.4746 6.75896 15.2202 6.74344 13.9658C6.73697 13.4349 6.73956 12.9027 6.74344 12.3718C6.74603 12.0348 6.80682 11.9767 7.16772 11.9706C7.50404 11.9656 7.84036 11.9632 8.17538 11.9706C8.51817 11.9792 8.57896 12.0385 8.58026 12.3632C8.58284 13.1781 8.58026 13.9942 8.58026 14.809C8.58414 14.809 8.58802 14.809 8.5919 14.809H8.59319Z\" /><path stroke=\"none\" d=\"M25.3108 16.0141C25.3108 17.187 25.3108 18.3587 25.3108 19.5317C25.3108 20.0021 25.2979 20.0119 24.8154 20.007C24.4791 20.0033 24.1428 20.0008 23.8077 20.007C23.5878 20.0107 23.496 19.9193 23.4986 19.7107C23.5038 19.1526 23.4986 18.5933 23.4986 18.034C23.4986 16.1561 23.4986 14.2794 23.4986 12.4015C23.4986 11.9928 23.5322 11.9619 23.9552 11.9632C24.2527 11.9632 24.5502 11.9632 24.8477 11.9644C25.2461 11.9644 25.3082 12.0224 25.3082 12.4163C25.3082 13.6164 25.3082 14.8165 25.3082 16.0153L25.3108 16.0141Z\" />',viewBox:\"0 0 32 32\"},regulatory_ref:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2.5 7.55597V24.444H29.5V7.55597H2.5ZM3.30114 8.35711H28.6989V23.6432H3.30114V8.35711ZM5.44451 11.7663V20.2146H7.14196V17.2185H9.12353L9.29345 17.3487C9.62192 17.6005 9.62881 17.6341 9.64208 19.0111L9.65397 20.2146H11.5642C11.5904 20.2146 11.5201 20.1224 11.4475 20.0626C11.4209 20.0407 11.3838 19.9959 11.3661 19.9001C11.3562 19.8463 11.3545 19.7824 11.3539 19.6792C11.3527 19.4762 11.3329 19.1786 11.3329 18.7238C11.3329 17.7548 11.3242 17.6057 11.2516 17.3437C11.1568 17.0018 11.0618 16.8043 10.8426 16.4931L10.6842 16.2681L10.8307 16.0762C11.1621 15.642 11.2935 15.2449 11.3214 14.5935C11.3447 14.0474 11.2942 13.774 11.0885 13.333C10.7601 12.6285 10.2066 12.1456 9.43018 11.8865C9.1552 11.7948 9.11403 11.7929 7.29723 11.7798L5.44451 11.7663ZM13.0651 11.7835V20.2145H18.9335V18.5499H14.7312V16.836H18.5031V15.152H14.7312V13.443H18.9335V11.7835H13.0651ZM20.6862 11.7835L20.6658 20.2145H22.3188V16.836H25.7133V15.152H22.3188V13.443H26.5345V11.7835H20.6862ZM7.81796 13.4649C8.81706 13.4473 9.08827 13.4974 9.37769 13.8007C9.5368 13.9674 9.64876 14.2449 9.64932 14.4745C9.65021 14.838 9.3835 15.2527 9.04972 15.4068C8.93839 15.4581 8.73222 15.4746 8.04829 15.4869C7.57458 15.4954 7.14201 15.4866 7.14201 15.4866V13.4768L7.81796 13.4649Z\" />',viewBox:\"0 0 32 32\"},star:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14.1533 3.83594C14.8365 2.19336 17.1634 2.19335 17.8466 3.83594L20.6563 10.5912L27.9492 11.1759C29.7225 11.318 30.4415 13.531 29.0904 14.6884L23.5341 19.448L25.2316 26.5646C25.6444 28.295 23.7619 29.6628 22.2437 28.7355L16 24.9218L9.75629 28.7355C8.23809 29.6628 6.35558 28.295 6.76836 26.5646L8.46593 19.448L2.90954 14.6884C1.55847 13.531 2.27751 11.318 4.05083 11.1759L11.3437 10.5912L14.1533 3.83594ZM18.8097 11.3592L16 4.604L13.1903 11.3592C12.9023 12.0517 12.2511 12.5249 11.5035 12.5848L4.21065 13.1695L9.76704 17.9291C10.3366 18.417 10.5854 19.1826 10.4113 19.9121L8.71378 27.0287L14.9575 23.215C15.5975 22.8241 16.4025 22.8241 17.0425 23.215L23.2862 27.0286L21.5886 19.9121C21.4146 19.1826 21.6634 18.417 22.2329 17.9291L27.7893 13.1695L20.4965 12.5848C19.7489 12.5249 19.0977 12.0517 18.8097 11.3592Z\" />',viewBox:\"0 0 32 32\"},starFilled:{innerHTML:'<path d=\"M17.8466 3.83594C17.1634 2.19335 14.8365 2.19336 14.1533 3.83594L11.3437 10.5912L4.05083 11.1759C2.27751 11.318 1.55847 13.531 2.90954 14.6884L8.46593 19.448L6.76836 26.5646C6.35558 28.295 8.23809 29.6628 9.75629 28.7355L16 24.9218L22.2437 28.7355C23.7619 29.6628 25.6444 28.295 25.2316 26.5646L23.5341 19.448L29.0904 14.6884C30.4415 13.531 29.7225 11.318 27.9492 11.1759L20.6563 10.5912L17.8466 3.83594Z\" />',viewBox:\"0 0 32 32\"},videoBlur:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 9C2 8.44772 2.44772 8 3 8H9.5C10.0523 8 10.5 8.44772 10.5 9C10.5 9.55228 10.0523 10 9.5 10H3C2.44772 10 2 9.55228 2 9Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 5C2 4.44772 2.44772 4 3 4H29C29.5523 4 30 4.44772 30 5C30 5.55228 29.5523 6 29 6H3C2.44772 6 2 5.55228 2 5Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 13C2 12.4477 2.44772 12 3 12H9C9.55228 12 10 12.4477 10 13C10 13.5523 9.55228 14 9 14H3C2.44772 14 2 13.5523 2 13Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 17C2 16.4477 2.44772 16 3 16H10C10.5523 16 11 16.4477 11 17C11 17.5523 10.5523 18 10 18H3C2.44772 18 2 17.5523 2 17Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 21C2 20.4477 2.44772 20 3 20H7C7.55228 20 8 20.4477 8 21C8 21.5523 7.55228 22 7 22H3C2.44772 22 2 21.5523 2 21Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 25C2 24.4477 2.44772 24 3 24H6C6.55228 24 7 24.4477 7 25C7 25.5523 6.55228 26 6 26H3C2.44772 26 2 25.5523 2 25Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M29 10H22.5C21.9477 10 21.5 9.55229 21.5 9C21.5 8.44772 21.9477 8 22.5 8H29C29.5523 8 30 8.44772 30 9C30 9.55229 29.5523 10 29 10Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22 13C22 12.4477 22.4477 12 23 12H29C29.5523 12 30 12.4477 30 13C30 13.5523 29.5523 14 29 14H23C22.4477 14 22 13.5523 22 13Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21 17C21 16.4477 21.4477 16 22 16H29C29.5523 16 30 16.4477 30 17C30 17.5523 29.5523 18 29 18H22C21.4477 18 21 17.5523 21 17Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M29 22H25C24.4477 22 24 21.5523 24 21C24 20.4477 24.4477 20 25 20H29C29.5523 20 30 20.4477 30 21C30 21.5523 29.5523 22 29 22Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M25 25C25 24.4477 25.4477 24 26 24H29C29.5523 24 30 24.4477 30 25C30 25.5523 29.5523 26 29 26H26C25.4477 26 25 25.5523 25 25Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15.9919 20C17.1632 19.9992 18.2166 20.0899 18.6844 20.2248C20.9324 20.8733 22 22.4934 22 24.4V26H10V24.4C10 22.4934 11.0676 20.8733 13.3156 20.2248C13.7724 20.0931 14.8204 20.0008 15.9919 20ZM15.9905 18C14.8106 18.0009 13.513 18.0863 12.7613 18.3032C9.66573 19.1962 8 21.5934 8 24.4V26C8 27.1046 8.89543 28 10 28H22C23.1046 28 24 27.1046 24 26V24.4C24 21.5934 22.3343 19.1962 19.2387 18.3032C18.4746 18.0828 17.1706 17.9992 15.9905 18Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 9C17.6569 9 19 10.3431 19 12C19 13.6569 17.6569 15 16 15C14.3431 15 13 13.6569 13 12C13 10.3431 14.3431 9 16 9ZM21 12C21 9.23858 18.7614 7 16 7C13.2386 7 11 9.23858 11 12C11 14.7614 13.2386 17 16 17C18.7614 17 21 14.7614 21 12Z\" />',viewBox:\"0 0 32 32\"},lightbulb:{innerHTML:'<path stroke=\"none\" d=\"M16 2C16.5523 2 17 2.44772 17 3V5C17 5.55228 16.5523 6 16 6C15.4477 6 15 5.55228 15 5V3C15 2.44772 15.4477 2 16 2Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15 27C13.3431 27 12 25.6569 12 24V21.9295C9.61038 20.5473 8 17.9626 8 15C8 10.5817 11.5817 7 16 7C20.4183 7 24 10.5817 24 15C24 17.9626 22.3896 20.5473 20 21.9295V24C20 25.6569 18.6569 27 17 27H15ZM18 17C18.5523 17 19 16.5523 19 16C19 15.4477 18.5523 15 18 15H14C13.4477 15 13 15.4477 13 16C13 16.5523 13.4477 17 14 17H15V25C14.4477 25 14 24.5523 14 24V21.3264C14 20.9403 13.7778 20.5888 13.4291 20.4231C11.3997 19.459 10 17.392 10 15C10 11.6863 12.6863 9 16 9C19.3137 9 22 11.6863 22 15C22 17.392 20.6003 19.459 18.5709 20.4231C18.2222 20.5888 18 20.9403 18 21.3264V24C18 24.5523 17.5523 25 17 25L17 17H18Z\" /><path stroke=\"none\" d=\"M13 29C13 28.4477 13.4477 28 14 28H18C18.5523 28 19 28.4477 19 29C19 29.5523 18.5523 30 18 30H14C13.4477 30 13 29.5523 13 29Z\" /><path stroke=\"none\" d=\"M4 14C3.44772 14 3 14.4477 3 15C3 15.5523 3.44772 16 4 16H6C6.55228 16 7 15.5523 7 15C7 14.4477 6.55228 14 6 14H4Z\" /><path stroke=\"none\" d=\"M6.79289 5.79289C7.18342 5.40237 7.81658 5.40237 8.20711 5.79289L9.70711 7.29289C10.0976 7.68342 10.0976 8.31658 9.70711 8.70711C9.31658 9.09763 8.68342 9.09763 8.29289 8.70711L6.79289 7.20711C6.40237 6.81658 6.40237 6.18342 6.79289 5.79289Z\" /><path stroke=\"none\" d=\"M26 14C25.4477 14 25 14.4477 25 15C25 15.5523 25.4477 16 26 16H28C28.5523 16 29 15.5523 29 15C29 14.4477 28.5523 14 28 14H26Z\" /><path stroke=\"none\" d=\"M25.2071 5.79289C25.5976 6.18342 25.5976 6.81658 25.2071 7.20711L23.7071 8.70711C23.3166 9.09763 22.6834 9.09763 22.2929 8.70711C21.9024 8.31658 21.9024 7.68342 22.2929 7.29289L23.7929 5.79289C24.1834 5.40237 24.8166 5.40237 25.2071 5.79289Z\" />',viewBox:\"0 0 32 32\"},hangUp:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15.9696 9C21.0827 9 26.2999 11.0607 29.2228 15.3161C29.6393 15.9225 29.9605 16.619 29.9966 17.3618C30.0346 18.1429 29.752 18.8802 29.136 19.5002L29.1336 19.5026L27.5751 21.0595C27.0543 21.589 26.4077 21.9354 25.6901 21.9919C24.9662 22.0489 24.2692 21.8027 23.674 21.3266L23.6693 21.3228L21.4508 19.523C20.7206 18.9212 20.2827 18.0173 20.2827 17.0583V14.7378C17.4645 13.923 14.4738 13.9301 11.6608 14.739V17.0468C11.6608 18.0119 11.2267 18.9214 10.486 19.517L8.26246 21.3232C7.68467 21.7913 7.01139 22.0511 6.29379 21.9916C5.58601 21.9328 4.9657 21.5742 4.45953 21.0594L2.89477 19.4963C2.29985 18.8899 1.9963 18.1674 2.00003 17.3945C2.00365 16.6456 2.29454 15.9371 2.72042 15.3164C5.64051 11.0607 10.8566 9 15.9696 9Z\" />',viewBox:\"0 0 32 32\"},boardExclamation:{innerHTML:'<path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10 2C9.44772 2 9 2.44772 9 3V4H7C5.34314 4 4 5.34315 4 7V27C4 28.6569 5.34315 30 7 30H21C22.6569 30 24 28.6569 24 27V25C24 24.4477 23.5523 24 23 24C22.4477 24 22 24.4477 22 25V27C22 27.5523 21.5523 28 21 28H7C6.44771 28 6 27.5523 6 27V7C6 6.44771 6.44772 6 7 6H9V7C9 7.55228 9.44772 8 10 8H18C18.5523 8 19 7.55228 19 7V6H21C21.5523 6 22 6.44772 22 7V8C22 8.55228 22.4477 9 23 9C23.5523 9 24 8.55228 24 8V7C24 5.34315 22.6569 4 21 4H19V3C19 2.44772 18.5523 2 18 2H10ZM17 6H11V4H17V6Z\" /><path stroke=\"none\" d=\"M8 16C8 15.4477 8.44772 15 9 15H14C14.5523 15 15 15.4477 15 16C15 16.5523 14.5523 17 14 17H9C8.44772 17 8 16.5523 8 16Z\" /><path d=\"M9 19C8.44772 19 8 19.4477 8 20C8 20.5523 8.44772 21 9 21H15C15.5523 21 16 20.5523 16 20C16 19.4477 15.5523 19 15 19H9Z\" /><path d=\"M8 24C8 23.4477 8.44772 23 9 23H18C18.5523 23 19 23.4477 19 24C19 24.5523 18.5523 25 18 25H9C8.44772 25 8 24.5523 8 24Z\" /><path stroke=\"none\" d=\"M23.5 13C24.0523 13 24.5 13.4477 24.5 14V16C24.5 16.5523 24.0523 17 23.5 17C22.9477 17 22.5 16.5523 22.5 16V14C22.5 13.4477 22.9477 13 23.5 13Z\" /><path stroke=\"none\" d=\"M24.5 19C24.5 19.5523 24.0523 20 23.5 20C22.9477 20 22.5 19.5523 22.5 19C22.5 18.4477 22.9477 18 23.5 18C24.0523 18 24.5 18.4477 24.5 19Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M23.5 10C19.9101 10 17 12.9101 17 16.5C17 20.0899 19.9101 23 23.5 23C27.0899 23 30 20.0899 30 16.5C30 12.9101 27.0899 10 23.5 10ZM19 16.5C19 14.0147 21.0147 12 23.5 12C25.9853 12 28 14.0147 28 16.5C28 18.9853 25.9853 21 23.5 21C21.0147 21 19 18.9853 19 16.5Z\" />',viewBox:\"0 0 32 32\"},fillFrame:{innerHTML:'<path stroke=\"none\" d=\"M23 15C22.4477 15 22 14.5523 22 14V11.4142L18.7071 14.7071C18.3166 15.0976 17.6834 15.0976 17.2929 14.7071C16.9024 14.3166 16.9024 13.6834 17.2929 13.2929L20.5858 10L18 10C17.4477 10 17 9.55228 17 9C17 8.44772 17.4477 8 18 8L23 8C23.5523 8 24 8.44772 24 9V14C24 14.5523 23.5523 15 23 15Z\" /><path stroke=\"none\" d=\"M9 17C9.55228 17 10 17.4477 10 18V20.5858L13.2929 17.2929C13.6834 16.9024 14.3166 16.9024 14.7071 17.2929C15.0976 17.6834 15.0976 18.3166 14.7071 18.7071L11.4142 22H14C14.5523 22 15 22.4477 15 23C15 23.5523 14.5523 24 14 24H9C8.44772 24 8 23.5523 8 23V18C8 17.4477 8.44772 17 9 17Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 7C4 5.34315 5.34315 4 7 4H25C26.6569 4 28 5.34315 28 7V25C28 26.6569 26.6569 28 25 28H7C5.34315 28 4 26.6569 4 25V7ZM7 6H25C25.5523 6 26 6.44772 26 7V25C26 25.5523 25.5523 26 25 26H7C6.44772 26 6 25.5523 6 25V7C6 6.44772 6.44772 6 7 6Z\" />',viewBox:\"0 0 32 32\"},fitFrame:{innerHTML:'<path stroke=\"none\" d=\"M10.2426 11.7573C10.6332 12.1479 10.6332 12.781 10.2426 13.1716L8.41421 15H13C13.5523 15 14 15.4477 14 16C14 16.5523 13.5523 17 13 17L8.41419 17L10.2426 18.8284C10.6332 19.2189 10.6332 19.8521 10.2426 20.2426C9.85211 20.6331 9.21894 20.6331 8.82842 20.2426L5.29288 16.7071C4.90236 16.3166 4.90236 15.6834 5.29288 15.2929L8.82842 11.7573C9.21894 11.3668 9.85211 11.3668 10.2426 11.7573Z\" /><path stroke=\"none\" d=\"M21.7929 20.2782C21.4024 19.8877 21.4024 19.2545 21.7929 18.864L23.6568 17H19C18.4477 17 18 16.5523 18 16C18 15.4477 18.4477 15 19 15H23.5858L21.7929 13.2071C21.4024 12.8166 21.4024 12.1834 21.7929 11.7929C22.1834 11.4024 22.8166 11.4024 23.2071 11.7929L26.7426 15.3284C27.1332 15.719 27.1332 16.3521 26.7426 16.7427L23.2071 20.2782C22.8166 20.6687 22.1834 20.6687 21.7929 20.2782Z\" /><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 7C2 5.34315 3.34315 4 5 4H27C28.6569 4 30 5.34315 30 7V25C30 26.6569 28.6569 28 27 28H5C3.34315 28 2 26.6569 2 25V7ZM5 6H27C27.5523 6 28 6.44772 28 7H4C4 6.44772 4.44772 6 5 6ZM4 9V23H28V9H4ZM28 25H4C4 25.5523 4.44772 26 5 26H27C27.5523 26 28 25.5523 28 25Z\" />',viewBox:\"0 0 32 32\"},phoneDown:{innerHTML:'<path stroke=\"none\" d=\"M29.246 15.2351C21.6871 8.25498 10.3069 8.25498 2.75994 15.2351C1.75687 16.1591 1.75687 17.7948 2.70024 18.7813L4.13321 20.2797C4.98105 21.1663 6.33043 21.2412 7.26186 20.467L9.61432 18.5066C10.1756 18.0446 10.5099 17.3328 10.5099 16.5711V14.078C10.5099 13.6499 10.7817 13.2665 11.1923 13.1455C14.3307 12.2212 17.6683 12.2126 20.8155 13.1448C21.2253 13.2661 21.496 13.6491 21.496 14.0764V16.5836C21.496 17.3328 21.8304 18.0446 22.3916 18.5191L24.7322 20.467C25.6755 21.2412 27.013 21.1663 27.8608 20.2797L29.2938 18.7813C30.2491 17.7948 30.2372 16.1591 29.246 15.2351Z\" />',viewBox:\"0 0 32 32\"}};var K1=new I(\"icon\");var I7=V7,ol=e3(h3)`\n\t--width: auto;\n\t--height: auto;\n\n\twidth: var(--width);\n\theight: var(--height);\n\n\t&[data-size='xSmall'] {\n\t\t--width: ${K1.getValue(\"xSmallSize\")};\n\t\t--height: ${K1.getValue(\"xSmallSize\")};\n\t}\n\n\t&[data-size='small'] {\n\t\t--width: ${K1.getValue(\"smallSize\")};\n\t\t--height: ${K1.getValue(\"smallSize\")};\n\t}\n\t&[data-size='medium'] {\n\t\t--width: ${K1.getValue(\"mediumSize\")};\n\t\t--height: ${K1.getValue(\"mediumSize\")};\n\t}\n\t&[data-size='large'] {\n\t\t--width: ${K1.getValue(\"largeSize\")};\n\t\t--height: ${K1.getValue(\"largeSize\")};\n\t}\n\t&[data-size='xLarge'] {\n\t\t--width: ${K1.getValue(\"xLargeSize\")};\n\t\t--height: ${K1.getValue(\"xLargeSize\")};\n\t}\n`;function nl({type:e,size:t=\"medium\",...l},o){return jsx(ol,{...l,ref:o,viewBox:I7[e]?.viewBox,dangerouslySetInnerHTML:D3(I7[e]?.innerHTML),\"data-size\":t})}var N=forwardRef(nl);var cl={container:e3.div`\n\t\t--font: inherit;\n\t\t--minHeight: auto;\n\t\t--background: transparent;\n\t\t--textColor: #000;\n\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tbox-sizing: border-box;\n\t\tpadding: ${u1.getValue(\"basePadding\")};\n\t\tuser-select: none;\n\t\tborder-radius: ${u1.getValue(\"baseBorderRadius\")};\n\t\tmin-height: var(--minHeight);\n\t\tbackground: var(--background);\n\t\tcolor: var(--textColor);\n\t\tfont: var(--font);\n\t\tflex-shrink: 0;\n\t\tbox-shadow: 0 0 2px var(--background);\n\n\t\t// Variants\n\t\t&[data-variant='interactive'] {\n\t\t\t--background: ${u1.getValue(\"interactiveBackground\")};\n\t\t\t--textColor: ${u1.getValue(\"interactiveTextColor\")};\n\t\t}\n\t\t&[data-variant='brandDark'] {\n\t\t\t--background: ${u1.getValue(\"brandDarkBackground\")};\n\t\t\t--textColor: ${u1.getValue(\"brandDarkTextColor\")};\n\t\t}\n\t\t&[data-variant='brandLight'] {\n\t\t\t--background: ${u1.getValue(\"brandLightBackground\")};\n\t\t\t--textColor: ${u1.getValue(\"brandLightTextColor\")};\n\t\t}\n\t\t&[data-variant='neutralDark'] {\n\t\t\t--background: ${u1.getValue(\"neutralDarkBackground\")};\n\t\t\t--textColor: ${u1.getValue(\"neutralDarkTextColor\")};\n\t\t}\n\t\t&[data-variant='neutralLight'] {\n\t\t\t--background: ${u1.getValue(\"neutralLightBackground\")};\n\t\t\t--textColor: ${u1.getValue(\"neutralLightTextColor\")};\n\t\t}\n\t\t&[data-variant='success'] {\n\t\t\t--background: ${u1.getValue(\"successBackground\")};\n\t\t\t--textColor: ${u1.getValue(\"successTextColor\")};\n\t\t}\n\t\t&[data-variant='info'] {\n\t\t\t--background: ${u1.getValue(\"infoBackground\")};\n\t\t\t--textColor: ${u1.getValue(\"infoTextColor\")};\n\t\t}\n\t\t&[data-variant='warning'] {\n\t\t\t--background: ${u1.getValue(\"warningBackground\")};\n\t\t\t--textColor: ${u1.getValue(\"warningTextColor\")};\n\t\t}\n\t\t&[data-variant='danger'] {\n\t\t\t--background: ${u1.getValue(\"dangerBackground\")};\n\t\t\t--textColor: ${u1.getValue(\"dangerTextColor\")};\n\t\t}\n\n\t\t// Sizes\n\t\t&[data-size='small'] {\n\t\t\t--font: ${u1.getValue(\"smallText\")};\n\t\t\t--minHeight: ${u1.getValue(\"smallHeight\")};\n\t\t}\n\t\t&[data-size='medium'] {\n\t\t\t--font: ${u1.getValue(\"mediumText\")};\n\t\t\t--minHeight: ${u1.getValue(\"mediumHeight\")};\n\t\t}\n\n\t\t.adjustText {\n\t\t\tbox-sizing: border-box;\n\t\t\tpadding-left: ${u1.getValue(\"baseAdjustTextPadding\")};\n\t\t\tposition: relative;\n\t\t}\n\t`};function sl(e,t){let{children:l,variant:o=\"interactive\",size:n=\"medium\",icon:r}=e,a=n===\"medium\"?\"small\":\"xSmall\";return jsxs(cl.container,{\"data-variant\":o,\"data-size\":n,ref:t,children:[r?jsx(N,{type:r,size:a}):null,jsx(\"span\",{className:\"adjustText\",children:l})]})}var dl=forwardRef(sl);function hl({children:e,className:t,type:l=\"button\",disabled:o,busy:n=!1,allowPassThrough:r,onClick:a,onMouseDown:i,onMouseUp:c,onMouseEnter:p,onMouseOver:u,onMouseLeave:h,onKeyUp:f,onKeyDown:g,onTouchEnd:C,onTouchMove:w,onTouchStart:T,onMouseMove:H,...z},S){function k(O){(!o||r)&&a&&a(O);}function v(O){(!o||r)&&i&&i(O);}function F(O){(!o||r)&&c&&c(O);}function R(O){(!o||r)&&p&&p(O);}function W(O){(!o||r)&&h&&h(O);}function P(O){(!o||r)&&H&&H(O);}function D(O){(!o||r)&&u&&u(O);}function $(O){(!o||r)&&g&&g(O);}function x1(O){(!o||r)&&f&&f(O);}function p1(O){(!o||r)&&T&&T(O);}function f1(O){(!o||r)&&C&&C(O);}function a1(O){(!o||r)&&w&&w(O);}return jsx(\"button\",{className:t,\"aria-disabled\":o?\"true\":void 0,\"aria-busy\":n?\"true\":void 0,onClick:k,onKeyDown:$,onKeyUp:x1,onMouseDown:v,onMouseMove:P,onMouseEnter:R,onMouseLeave:W,onMouseUp:F,onTouchEnd:f1,onTouchMove:a1,onTouchStart:p1,onMouseOver:D,type:l,...z,ref:S,children:e})}var s2=forwardRef(hl);var T0=new I(\"spinner\");var Cl=keyframes`\n\t0% {\n\t\tstroke-dasharray: 1, 786;\n\t\tstroke-dashoffset: 0;\n\t}\n\n\t50% {\n\t\tstroke-dasharray: 700, 786;\n\t\tstroke-dashoffset: -0;\n\t}\n\n\t100% {\n\t\tstroke-dasharray: 700, 786;\n\t\tstroke-dashoffset: -736;\n\t}\n`,gl=keyframes`\n\t100% {\n\t\ttransform: rotate(360deg);\n\t}\n`,E7={loader:e3.div`\n\t\t--size: 0;\n\t\tbox-sizing: border-box;\n\t\twidth: var(--size);\n\t\theight: var(--size);\n\t\tpadding: 2px;\n\n\t\tsvg {\n\t\t\tanimation: ${gl} 2s linear infinite;\n\t\t}\n\n\t\tsvg circle {\n\t\t\tstroke-linecap: round;\n\t\t\tanimation: ${Cl} 3.5s ease-in-out infinite;\n\t\t}\n\n\t\t&[data-size='xSmall'] {\n\t\t\t--size: ${T0.getValue(\"xSmallSize\")};\n\t\t}\n\n\t\t&[data-size='small'] {\n\t\t\t--size: ${T0.getValue(\"smallSize\")};\n\t\t}\n\n\t\t&[data-size='medium'] {\n\t\t\t--size: ${T0.getValue(\"mediumSize\")};\n\t\t}\n\n\t\t&[data-size='large'] {\n\t\t\t--size: ${T0.getValue(\"largeSize\")};\n\t\t}\n\t`,svg:e3.svg`\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tfont-size: inherit;\n\t\tfill: currentColor;\n\t\tstroke: currentColor;\n\t\tpointer-events: none;\n\t`};function vl({size:e,...t},l){return jsx(E7.loader,{\"data-testid\":\"loading-spinner\",\"data-size\":e||void 0,...t,ref:l,children:jsx(E7.svg,{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 256 256\",children:jsx(\"circle\",{cx:\"128\",cy:\"128\",r:\"118\",fill:\"none\",strokeWidth:\"7%\"})})})}var m3=forwardRef(vl);var kl=e3.span`\n\tborder: 0;\n\tclip: rect(1px, 1px, 1px, 1px);\n\tclip-path: inset(50%);\n\theight: 1px;\n\tmargin: -1px;\n\toverflow: hidden;\n\tpadding: 0;\n\tposition: absolute;\n\twidth: 1px;\n\tword-wrap: normal !important;\n`;function bl({children:e,...t},l){return jsx(kl,{...t,ref:l,children:e})}var V1=forwardRef(bl);var L=new I(\"button\");var k5=createContext(void 0);function B1(){let e=useContext(k5);if(e===void 0)throw new Error(\"useCellulaProviderContext must be used within a CellulaProvider\");return e}var V0;(n=>{function e(r,a,i,c){let p=[];if(a.tokens)for(let u in a.tokens){let h=a.tokens[u];c&&c[u]&&(h.value=c[u]),h.cssVar&&h.value&&p.push({name:h.cssVar,value:h.value});}if(a.components){let u=a.components;for(let h in u)if(u[h])for(let f in u[h])p.push({name:`--cellula-component-${h}-${f}`,value:u[h][f]});}t(r,p,i);}n.insertTokens=e;function t(r,a,i){let c=l(r);if(!c)throw new Error(\"CellulaProvider: Can't find sheet element...\");let p=`\n\t\t${i?\":root\":`[data-cellula-id=\"${r}\"]`} {\n\t\t\t${a.map(u=>`${u.name}: ${u.value};`).join(`\n`)}\n\t\t\t}\n`;for(let u=0;u<c.cssRules.length;u++)c.deleteRule(u);c.insertRule(p,c.cssRules.length);}function l(r){let a=document.getElementById(`cellula-theme-styles-${r}`);return a||(a=o(r)),a.sheet}function o(r){let a=document.createElement(\"style\");return a.id=`cellula-theme-styles-${r}`,a.appendChild(document.createTextNode(\"\")),a.type=\"text/css\",document.head.appendChild(a),a}})(V0||(V0={}));var P7;(e=>{let t=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i;function l(i,c){function p(C){return C>255?255:C<0?0:C}let u=o(i),h=p(u[0]+c),f=p(u[1]+c),g=p(u[2]+c);return n([h,f,g,1])}e.lightLevel=l;function o(i){if(!t.test(i))throw new Error(\"Tried to modify a non hex string\");let c=parseInt(i.slice(1),16),p=c>>16,u=c>>8&255,h=c&255;return [p,u,h,1]}e.createRgb=o;function n(i){function c(p){let u=p.toString(16).toLowerCase();return u.length<2?`0${u}`:u}return `#${c(i[0])}${c(i[1])}${c(i[2])}`}e.createHex=n;function r(i){let c=o(i);return (c[0]*299+c[1]*587+c[2]*114)/1e3<128}e.isDark=r;function a(i){return !r(i)}e.isLight=a;})(P7||(P7={}));function $7(e,t){let l;return function(...n){let r=()=>e.apply(this,n);clearTimeout(l),l=setTimeout(r,t);}}var R7;(e=>{function t(o,n){if(!o)throw new Error(n??\"assertion failed\");return !0}e.assert=t;function l(o,n){if(typeof o>\"u\"||o===null)throw new Error(n??\"assertDeclared\");return !0}e.assertDeclared=l;})(R7||(R7={}));var f3=class{constructor(){X(this,\"disposers\",new Map);X(this,\"registeredId\",0);}wait(e,t){let l=setTimeout(e,t),o=()=>{clearTimeout(l);};return this.registerDisposer(o)}repeat(e,t,l=!1){l&&e();let o=setInterval(e,t),n=()=>{clearInterval(o);};return this.registerDisposer(n)}flush(){this.disposers.forEach(e=>e());}registerDisposer(e){let t=this.registeredId++;return this.disposers.set(t,e),()=>{this.disposers.delete(t),e();}}};(e=>{function t(...o){let n=new e;return n.wait(...o),n.flush.bind(n)}e.wait=t;function l(...o){let n=new e;return n.repeat(...o),n.flush.bind(n)}e.repeat=l;})(f3||(f3={}));var Z7=class{constructor(){X(this,\"events\",Object.create(null));X(this,\"errorHandlers\",new WeakMap);}on(e,t,l){return (this.events[e]||(this.events[e]=[])).push(t),l&&this.errorHandlers.set(t,l),()=>{this.off(e,t);}}off(e,t){this.events[e]&&this.events[e].splice(this.events[e].indexOf(t)>>>0,1);}emit(e,t){(this.events[e]||[]).forEach(l=>{try{l(t);}catch(o){let n=this.errorHandlers.get(l);n&&n(o);}});}};function Fl(e){if(document.cookie.length>0){let t=document.cookie.indexOf(e+\"=\");if(t!==-1){t=t+e.length+1;let l=document.cookie.indexOf(\";\",t);return l===-1&&(l=document.cookie.length),unescape(document.cookie.substring(t,l))}}return null}function D7(){try{return !!Fl(\"VisibaIOSApp\")}catch{return !1}}var wl=class{static userAgentData(){return this.parseAgentData()}static browserIs(e){let t=[],l=this.userAgentData();return (e&1)===1&&t.push(l.browsers.edge),(e&32)===32&&t.push(l.browsers.samsungBrowser),(e&64)===64&&t.push(l.browsers.opera),(e&8)===8&&t.push(l.browsers.firefox),(e&16)===16&&t.push(l.browsers.chrome),(e&2)===2&&t.push(l.browsers.safari),(e&4)===4&&t.push(l.browsers.strictSafari),(e&128)===128&&t.push(l.browsers.ie),(e&256)===256&&t.push(l.browsers.edgeChromium),(e&512)===512&&t.push(l.browsers.edgeAndroid),(e&1024)===1024&&t.push(l.browsers.edgeIos),(e&2048)===2048&&t.push(l.browsers.firefoxIos),(e&4096)===4096&&t.push(l.browsers.chromeIos),t.filter(Boolean).length>0}static platformIs(e){let t=[],l=this.userAgentData();return (e&1)===1&&t.push(l.platform.ios),(e&2)===2&&t.push(l.platform.android),(e&4)===4&&t.push(l.platform.mobile),(e&8)===8&&t.push(l.platform.desktop),t.filter(Boolean).length>0}static runtimeSupportsTouch(){return \"ontouchstart\"in window||window.navigator.maxTouchPoints>0}static runtimeIsInBrowser(){return typeof navigator<\"u\"&&typeof window<\"u\"}static parseAgentData(){let e=this.runtimeIsInBrowser()&&navigator.userAgent.includes(\"Edge/\"),t=this.runtimeIsInBrowser()&&navigator.userAgent.includes(\"Edg/\"),l=this.runtimeIsInBrowser()&&navigator.userAgent.includes(\"EdgA/\"),o=this.runtimeIsInBrowser()&&navigator.userAgent.includes(\"EdgiOS/\"),n=e||t||l||o,r=this.runtimeIsInBrowser()&&navigator.userAgent.includes(\"SamsungBrowser/\"),a=this.runtimeIsInBrowser()&&(navigator.userAgent.includes(\"Opera\")||navigator.userAgent.includes(\"OPR/\")),i=this.runtimeIsInBrowser()&&navigator.userAgent.includes(\"OPiOS/\"),c=this.runtimeIsInBrowser()&&navigator.userAgent.includes(\"FxiOS/\"),p=this.runtimeIsInBrowser()&&(navigator.userAgent.includes(\"Firefox\")||c),u=this.runtimeIsInBrowser()&&navigator.userAgent.includes(\"CriOS/\"),h=this.runtimeIsInBrowser()&&(navigator.userAgent.includes(\"Chrome\")||u)&&!n&&!a&&!r,f=this.runtimeIsInBrowser()&&navigator.userAgent.includes(\"Safari\")&&!h&&!t&&!p&&!a&&!r||o||u||c,g=this.runtimeIsInBrowser()&&navigator.userAgent.includes(\"Safari\")&&!h&&!n&&!p&&!a&&!r,C=this.runtimeIsInBrowser()&&navigator.userAgent.includes(\"Trident\"),w=D7(),T=Object.freeze({edgeChromium:t,edgeAndroid:l,edgeIos:o,edge:n,firefoxIos:c,chromeIos:u,samsungBrowser:r,opera:a,operaIos:i,firefox:p,chrome:h,safari:f,strictSafari:g,ie:C,visibaIOSApp:w}),H=this.runtimeIsInBrowser()&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||D7()),z=this.runtimeIsInBrowser()&&/Android/.test(navigator.userAgent),S=H||z,v=Object.freeze({ios:H,android:z,mobile:S,desktop:!S});return Object.freeze({browsers:T,platform:v})}};var I0=(e=>(e[e.None=0]=\"None\",e[e.Ios=1]=\"Ios\",e[e.Android=2]=\"Android\",e[e.Mobile=4]=\"Mobile\",e[e.Desktop=8]=\"Desktop\",e))(I0||{}),b5=wl;function S0(e){return `${e/16}rem`}var N7;(e=>{e.byBruteForce=(t,l)=>{let o={every:1e3,for:1,hooks:[],...l||{}};return new Promise((n,r)=>{let a=0,i=!1,c=f3.repeat(()=>{p(++a);},o.every,!0);async function p(u){if(u>o.for&&!i)c(),r(`request did not finish in ${o.for} attempts`);else try{let h=await t();i||(c(),i=!0,n(h));}catch{o.hooks?.forEach(f=>f());}}})},e.the=(t,l)=>{let o={againAfter:1e3,for:1,hooks:[],...l||{}};return new Promise((n,r)=>{let a=0;async function i(p){try{let u=await t();n(u);}catch{o.hooks?.forEach(h=>h()),p<o.for?c():r(`request did not finish in ${o.for} attempts`);}}function c(){setTimeout(()=>{i(++a);},o.againAfter);}i(++a);})};})(N7||(N7={}));function O7(e,t){let l=e.trim().split(\" \");if(l.length===0)return \"\";let o=l[0].charAt(0).toUpperCase();if(l.length===1)return o;let n=(l[l.length-1]??\"\").charAt(0).toUpperCase();return o+(t)+n}function B0(e){if(e==null||e.trim()===\"\")return null;let t=Number(e);return Number.isFinite(t)?t:null}function E4(e){return typeof e==\"object\"&&!Array.isArray(e)&&e!==null&&\"ok\"in e&&\"err\"in e}function A4(e){return typeof e==\"object\"&&!Array.isArray(e)&&e!==null&&\"then\"in e}function _7(e){return typeof e==\"boolean\"}function U7(e){return typeof e==\"string\"}function G7(e){return e instanceof Error}function X7(e){return typeof e==\"function\"}var z5=class{constructor(){X(this,\"eventEmitter\",new Z7);X(this,\"storedNotifications\",new Map);}count(t){return this.get(t).length}add(t){this.storedNotifications.get(t.event)?.some(o=>o.guid===t.guid)||(this.storedNotifications.set(t.event,[...this.storedNotifications.get(t.event)||[],t]),this.eventEmitter.emit(this.convertTypeToEvent(t.event,\"add\"),t));}remove(t){let l=this.storedNotifications.get(t.event);l&&(l.splice(l.indexOf(t),1),this.eventEmitter.emit(this.convertTypeToEvent(t.event,\"remove\"),t));}isAdded(t){let l=this.storedNotifications.get(t.event);return l==null?!1:l.indexOf(t)!==-1}get(t){return this.storedNotifications.get(t)||[]}convertTypeToEvent(t,l){function o(n){return n.charAt(0).toUpperCase()+n.slice(1)}return `on${o(l)}${o(t)}`}};var y5=class{constructor(t){X(this,\"guid\");this.guid=t??v4();}};var H5=class extends y5{constructor(l){super();X(this,\"event\",\"toast\");X(this,\"type\",\"toast\");X(this,\"label\");X(this,\"message\");X(this,\"variant\");X(this,\"duration\");this.label=l.label,this.message=l.message??null,this.variant=l.variant??\"success\",this.duration=l.duration??5e3;}};var Vl={displayXLarge:m.text.display.xLarge,displayLarge:m.text.display.large,displayMedium:m.text.display.medium,displaySmall:m.text.display.small,headingXLarge:m.text.heading.xLarge,headingLarge:m.text.heading.large,headingMedium:m.text.heading.medium,headingSmall:m.text.heading.small,headingXSmall:m.text.heading.xSmall,bodyLargeRegular:m.text.body.largeRegular,bodyLargeSemiBold:m.text.body.largeSemiBold,bodyRegular:m.text.body.regular,bodySemiBold:m.text.body.semiBold,bodySmallRegular:m.text.body.smallRegular,bodySmallSemiBold:m.text.body.smallSemiBold,labelXLargeRegular:m.text.label.xLargeRegular,labelXLargeSemiBold:m.text.label.xLargeSemiBold,labelLargeRegular:m.text.label.largeRegular,labelLargeSemiBold:m.text.label.largeSemiBold,labelRegular:m.text.label.regular,labelSemiBold:m.text.label.semiBold,labelSmallRegular:m.text.label.smallRegular,labelSmallSemiBold:m.text.label.smallSemiBold,labelXSmallRegular:m.text.label.xSmallRegular,labelXSmallSemiBold:m.text.label.xSmallSemiBold},Il=e3.span`\n\t${({$variant:e})=>e&&css`\n\t\t\tfont: ${Vl[e]};\n\t\t`}\n\t${({$color:e})=>e&&css`\n\t\t\tcolor: ${e};\n\t\t`}\n\n\t&[data-preserve-line-breaks] {\n\t\twhite-space: pre-line;\n\t}\n\n\t&[data-truncate] {\n\t\tdisplay: block;\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t&:focus {\n\t\toutline: 0;\n\t}\n`;function Sl({children:e,as:t=\"span\",color:l=\"inherit\",variant:o,preserveLineBreaks:n,truncate:r,...a},i){return jsx(Il,{as:t,$color:l,$variant:o,\"data-preserve-line-breaks\":n||void 0,\"data-truncate\":r||void 0,ref:i,...a,children:e})}function Bl({children:e,...t},l){return jsx(z1,{as:\"h1\",ref:l,...t,children:e})}function El({children:e,...t},l){return jsx(z1,{as:\"h2\",ref:l,...t,children:e})}function Al({children:e,...t},l){return jsx(z1,{as:\"h3\",ref:l,...t,children:e})}function Pl({children:e,...t},l){return jsx(z1,{as:\"h4\",ref:l,...t,children:e})}function Rl({children:e,...t},l){return jsx(z1,{as:\"h5\",ref:l,...t,children:e})}function Dl({children:e,...t},l){return jsx(z1,{as:\"h6\",ref:l,...t,children:e})}function Nl({children:e,preserveLineBreaks:t=!0,...l},o){return jsx(z1,{as:\"p\",preserveLineBreaks:t,ref:o,...l,children:e})}var z1=forwardRef(Sl);z1.h1=forwardRef(Bl);z1.h2=forwardRef(El);z1.h3=forwardRef(Al);z1.h4=forwardRef(Pl);z1.h5=forwardRef(Rl);z1.h6=forwardRef(Dl);z1.p=forwardRef(Nl);var F1=new I(\"tooltip\");var $l={horizontal:[\"ArrowRight\",\"ArrowLeft\"],vertical:[\"ArrowDown\",\"ArrowUp\"]};function W7(e,t,l){let{selectors:o,direction:n=\"vertical\",releaseLockAtWrap:r=\"end\"}=l,a=t.current;if(a==null)return;let[i,c]=$l[n],p=e.key;if(![i,c,\"Enter\"].includes(p))return;let u=document.activeElement;if(u==null||!a.contains(u))return;let h=a.querySelectorAll(o.join(\",\"));if(!h.length)return;let f=Array.from(h).findIndex(C=>C===u);if(p===\"Enter\"){if(f===-1)return;u.click(),e.preventDefault();return}f===-1&&h[0].focus();let g;if(e.key===i){let C=f+1;if(C===h.length){if(r===\"start\"||r===\"both\"){e.preventDefault(),h[f].blur();return}C=0;}g=h[C];}else if(e.key===c){let C=f-1;if(C===-1){if(r===\"end\"||r===\"both\"){e.preventDefault(),h[f].blur();return}C=h.length-1;}g=h[C];}else return;g.focus(),e.preventDefault();}function Ol(e,t){useEffect(()=>{function l(o){W7(o,e,t);}return document.addEventListener(\"keydown\",l),()=>{document.removeEventListener(\"keydown\",l);}},[e,t]);}var J7=(o=>(o[o.Small=1]=\"Small\",o[o.Medium=2]=\"Medium\",o[o.Large=4]=\"Large\",o))(J7||{});function Xl(e){return e<=905?1:e<=1440?2:4}function jl(e){let{width:t}=k7(),l=useCallback(()=>R3||t==null?1:Xl(t),[t]),[o,n]=useState(l);return useEffect(()=>{n(l);},[t,l]),e!=null?(o&e)===o:o}var l1={normal:\"calc(var(--Z_INDEX_HACK, 0))\",high:\"calc(var(--Z_INDEX_HACK, 0) + 1)\",DANGER:\"calc(var(--Z_INDEX_HACK, 0) + 2)\"};var Kl=keyframes`\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translateY(-2px);\n\t}\n\n to {\n\t\topacity: 1;\n\t\ttransform: translateY(0);\n\t}\n`,Ql=keyframes`\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translateX(-2px);\n\t}\n\n to {\n\t\topacity: 1;\n\t\ttransform: translateX(0);\n\t}\n`,ql=keyframes`\n from {\n\t\topacity: 0;\n\t\ttransform: translateY(2px);\n\t}\n\n to {\n\t\topacity: 1;\n\t\ttransform: translateY(0);\n\t}\n`,Yl=keyframes`\n from {\n\t\topacity: 0;\n\t\ttransform: translateX(2px);\n\t}\n\n to {\n\t\topacity: 1;\n\t\ttransform: translateX(0);\n\t}\n`,R4={tooltip:e3(t2.Content)`\n\t\t--textColor: ${F1.getValue(\"baseTextColor\")};\n\t\t--background: ${F1.getValue(\"baseBackground\")};\n\t\t--arrowMargin: ${F1.getValue(\"baseArrowMargin\")};\n\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\ttext-align: left;\n\t\tpadding: ${F1.getValue(\"basePadding\")};\n\t\tfilter: drop-shadow(${F1.getValue(\"baseElevation\")});\n\t\tborder-radius: ${F1.getValue(\"baseBorderRadius\")};\n\t\tanimation-duration: 400ms;\n\t\tanimation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);\n\t\twill-change: transform, opacity;\n\t\twidth: auto;\n\t\tmax-width: 240px;\n\t\tbackground: var(--background);\n\t\t/* Needs to use a high z-index to have it appear on top of other elements */\n\t\tz-index: ${l1.DANGER};\n\n\t\t&[data-side='top'] {\n\t\t\tmargin-bottom: var(--arrowMargin);\n\t\t}\n\n\t\t&[data-side='bottom'] {\n\t\t\tmargin-top: var(--arrowMargin);\n\t\t}\n\n\t\t&[data-side='left'] {\n\t\t\tmargin-right: var(--arrowMargin);\n\t\t}\n\n\t\t&[data-side='right'] {\n\t\t\tmargin-left: var(--arrowMargin);\n\t\t}\n\n\t\t@media (prefers-reduced-motion: no-preference) {\n\t\t\t&[data-state='delayed-open'] {\n\t\t\t\t&[data-side='top'] {\n\t\t\t\t\tanimation-name: ${Kl};\n\t\t\t\t}\n\t\t\t\t&[data-side='right'] {\n\t\t\t\t\tanimation-name: ${Ql};\n\t\t\t\t}\n\t\t\t\t&[data-side='bottom'] {\n\t\t\t\t\tanimation-name: ${ql};\n\t\t\t\t}\n\t\t\t\t&[data-side='left'] {\n\t\t\t\t\tanimation-name: ${Yl};\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&[data-variant='dark'] {\n\t\t\t--background: ${F1.getValue(\"darkBackground\")};\n\t\t\t--textColor: ${F1.getValue(\"darkTextColor\")};\n\t\t}\n\n\t\t&[data-variant='light'] {\n\t\t\t--background: ${F1.getValue(\"lightBackground\")};\n\t\t\t--textColor: ${F1.getValue(\"lightTextColor\")};\n\t\t}\n\n\t\t&[data-variant='interactive'] {\n\t\t\t--background: ${F1.getValue(\"interactiveBackground\")};\n\t\t\t--textColor: ${F1.getValue(\"interactiveTextColor\")};\n\t\t}\n\t`,content:e3.div`\n\t\tfont: ${F1.getValue(\"baseText\")};\n\t\tword-wrap: break-word;\n\t\tword-break: break-word;\n\t\tcolor: var(--textColor);\n\t\tz-index: 1;\n\t`,arrow:e3.div`\n\t\twidth: ${F1.getValue(\"arrowSize\")};\n\t\theight: ${F1.getValue(\"arrowSize\")};\n\t\tmargin-top: calc((${F1.getValue(\"arrowSize\")} / 2 * -1));\n\t\ttransform: rotate(45deg);\n\t\tborder-bottom-right-radius: ${F1.getValue(\"arrowBorderRadius\")};\n\t\tz-index: -1;\n\t\tbackground: var(--background);\n\t\tvisibility: visible;\n\t`};function eo({children:e,content:t,open:l,defaultOpen:o,delayDuration:n,align:r=\"center\",variant:a=\"dark\",side:i=\"top\",onOpenChange:c,...p},u){let{portalElement:h}=B1();return t==null?jsx(Fragment,{children:e}):jsx(t2.Provider,{children:jsxs(t2.Root,{open:l,defaultOpen:o,delayDuration:n,onOpenChange:c,children:[jsx(t2.Trigger,{asChild:!0,children:e}),jsx(t2.Portal,{container:h,children:jsxs(R4.tooltip,{\"data-variant\":a,side:i,align:r,ref:u,...p,children:[jsx(R4.content,{children:t}),jsx(t2.Arrow,{asChild:!0,children:jsx(R4.arrow,{})})]})})]})})}var g3=forwardRef(eo);var D4=t2.Provider;var r1=new I(\"iconButton\");var oo=e3(s2)`\n\t--text-color: inherit;\n\t--hover-background: ${r1.getValue(\"baseHoverBackground\")};\n\t--active-background: ${r1.getValue(\"baseActiveBackground\")};\n\t--padding: 0;\n\t--iconSize: 0;\n\n\tuser-select: none;\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-user-drag: none;\n\t-webkit-touch-callout: none;\n\n\tborder: none;\n\tmargin: 0;\n\twidth: auto;\n\toverflow: visible;\n\tline-height: normal;\n\t-webkit-font-smoothing: inherit;\n\t-moz-osx-font-smoothing: inherit;\n\t-webkit-appearance: none;\n\tappearance: none;\n\ttransition: background 150ms ease-in;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\talign-items: center;\n\tjustify-content: center;\n\toutline: none;\n\tword-wrap: break-word;\n\tword-break: break-word;\n\tbackground: none;\n\tborder-radius: ${r1.getValue(\"baseBorderRadius\")};\n\tfont: ${r1.getValue(\"baseText\")};\n\tpadding: var(--padding);\n\tcolor: var(--text-color);\n\n\t& > svg {\n\t\twidth: var(--iconSize);\n\t\theight: var(--iconSize);\n\t}\n\n\t&:focus-visible {\n\t\toutline: 2px solid ${r1.getValue(\"baseFocusRingColor\")};\n\t\toutline-offset: 2px;\n\t}\n\n\t// Variants\n\t&[data-variant='interactive'] {\n\t\t--text-color: ${r1.getValue(\"interactiveTextColor\")};\n\t\t--hover-background: ${r1.getValue(\"interactiveHoverBackground\")};\n\t\t--active-background: ${r1.getValue(\"interactiveActiveBackground\")};\n\t}\n\t&[data-variant='on-dark'] {\n\t\t--text-color: ${r1.getValue(\"onDarkTextColor\")};\n\t\t--hover-background: ${r1.getValue(\"onDarkHoverBackground\")};\n\t\t--active-background: ${r1.getValue(\"onDarkActiveBackground\")};\n\t}\n\t&[data-variant='info'] {\n\t\t--text-color: ${r1.getValue(\"infoTextColor\")};\n\t\t--hover-background: ${r1.getValue(\"infoHoverBackground\")};\n\t\t--active-background: ${r1.getValue(\"infoActiveBackground\")};\n\t}\n\t&[data-variant='success'] {\n\t\t--text-color: ${r1.getValue(\"successTextColor\")};\n\t\t--hover-background: ${r1.getValue(\"successHoverBackground\")};\n\t\t--active-background: ${r1.getValue(\"successActiveBackground\")};\n\t}\n\t&[data-variant='warning'] {\n\t\t--text-color: ${r1.getValue(\"warningTextColor\")};\n\t\t--hover-background: ${r1.getValue(\"warningHoverBackground\")};\n\t\t--active-background: ${r1.getValue(\"warningActiveBackground\")};\n\t}\n\t&[data-variant='danger'] {\n\t\t--text-color: ${r1.getValue(\"dangerTextColor\")};\n\t\t--hover-background: ${r1.getValue(\"dangerHoverBackground\")};\n\t\t--active-background: ${r1.getValue(\"dangerActiveBackground\")};\n\t}\n\n\t// Sizes\n\t&[data-size='small'] {\n\t\t--padding: ${r1.getValue(\"smallPadding\")};\n\t\t--iconSize: ${r1.getValue(\"smallIconSize\")};\n\t}\n\t&[data-size='medium'] {\n\t\t--padding: ${r1.getValue(\"mediumPadding\")};\n\t\t--iconSize: ${r1.getValue(\"mediumIconSize\")};\n\t}\n\t&[data-size='large'] {\n\t\t--padding: ${r1.getValue(\"largePadding\")};\n\t\t--iconSize: ${r1.getValue(\"largeIconSize\")};\n\t}\n\n\t&[aria-busy='true'] {\n\t\topacity: 0.6;\n\t\tcursor: progress;\n\t}\n\n\t&[aria-disabled='true'] {\n\t\topacity: 0.6;\n\t\tcursor: not-allowed;\n\t}\n\n\t@media (hover: hover) {\n\t\t&:not([aria-busy='true'], [aria-disabled='true']) {\n\t\t\t&:active {\n\t\t\t\tbackground: var(--active-background);\n\t\t\t\ttransition: none;\n\t\t\t}\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--hover-background);\n\t\t\t}\n\t\t}\n\t}\n`;function no({icon:e,variant:t,size:l,text:o,tooltipAlign:n=\"center\",tooltipVariant:r=\"dark\",loading:a,...i},c){return jsx(g3,{content:o,variant:r,align:n,children:jsxs(oo,{\"data-variant\":t||void 0,\"data-size\":l||void 0,busy:a,...i,ref:c,children:[jsx(V1,{children:o}),jsx(N,{type:e})]})})}var E1=forwardRef(no);var M1=new I(\"toastNotification\");var $4=createContext(void 0);function q7(){let e=useContext($4);if(e===void 0)throw new Error(\"useCellulaI18nProviderContext must be used within a CellulaI18nProvider\");return e}function A(){let{texts:e}=q7();function t(l,o=null){if(!e)throw new Error(\"No translation texts where found. It seems that we are not in CellulaI18nProvider's context. useText() must be used within a CellulaI18nProvider.\");let n=e?.[l];if(o)for(let r in o)n=n.replace(`{{${r}}}`,o[r]);return n}return t}var $3={container:e3.div`\n\t\tposition: fixed;\n\t\tright: 0;\n\t\tbottom: ${m.spacing.x8};\n\t\tz-index: ${l1.DANGER};\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tpointer-events: none;\n\t\twidth: 100%;\n\n\t\t${m.breakpointQuery.medium} {\n\t\t\tright: 20px;\n\t\t\twidth: 448px;\n\t\t\tbottom: ${m.spacing.x2};\n\t\t}\n\t`,list:e3.ol`\n\t\tall: unset;\n\t`,listItemParent:e3(motion.li)`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tmargin: 10px;\n\t`,listItem:e3(motion.div)`\n\t\t&[data-variant='success'] {\n\t\t\t--_background: ${M1.getValue(\"successBackground\")};\n\t\t\t--_border: ${M1.getValue(\"successBorderColor\")};\n\t\t\t--_color: ${M1.getValue(\"successTextColor\")};\n\t\t\t--_iconColor: ${M1.getValue(\"successIconColor\")};\n\t\t}\n\t\t&[data-variant='warning'] {\n\t\t\t--_background: ${M1.getValue(\"warningBackground\")};\n\t\t\t--_border: ${M1.getValue(\"warningBorderColor\")};\n\t\t\t--_color: ${M1.getValue(\"warningTextColor\")};\n\t\t\t--_iconColor: ${M1.getValue(\"warningIconColor\")};\n\t\t}\n\t\t&[data-variant='danger'] {\n\t\t\t--_background: ${M1.getValue(\"dangerBackground\")};\n\t\t\t--_border: ${M1.getValue(\"dangerBorderColor\")};\n\t\t\t--_color: ${M1.getValue(\"dangerTextColor\")};\n\t\t\t--_iconColor: ${M1.getValue(\"dangerIconColor\")};\n\t\t}\n\t\t&[data-variant='info'] {\n\t\t\t--_background: ${M1.getValue(\"infoBackground\")};\n\t\t\t--_border: ${M1.getValue(\"infoBorderColor\")};\n\t\t\t--_color: ${M1.getValue(\"infoTextColor\")};\n\t\t\t--_iconColor: ${M1.getValue(\"infoIconColor\")};\n\t\t}\n\n\t\tpointer-events: all;\n\t\tdisplay: flex;\n\t\tbackground-color: var(--_background);\n\t\tborder: 1px solid var(--_border);\n\t\tcolor: var(--_content);\n\t\tpadding: ${M1.getValue(\"basePadding\")};\n\t\tgap: ${M1.getValue(\"baseGap\")};\n\t\tborder-radius: ${M1.getValue(\"baseBorderRadius\")};\n\t\twidth: inherit;\n\t\tbox-shadow: ${M1.getValue(\"baseElevation\")};\n\t`,text:e3.div`\n\t\tdisplay: flex;\n\t\tflex: 1;\n\t\tflex-direction: column;\n\t`,iconWrapper:e3.div`\n\t\tcolor: var(--_iconColor);\n\t`};function t6(e){let t=useContext(l6),[l,o]=useState([]),n=useRef(null),r=useRef(null),a=useRef(null),i=useRef(new f3),c=useCallback(u=>{t.remove(u),o([...t.get(\"toast\")]),r.current?.contains(document.activeElement)&&t.count(\"toast\")>0&&a.current?.focus();},[t]);useEffect(function(){function h(f){o([...t.get(\"toast\")]);}return t.eventEmitter.on(\"onAddToast\",h),t.eventEmitter.on(\"onRemoveToast\",h),()=>{t.eventEmitter.off(\"onAddToast\",h),t.eventEmitter.off(\"onRemoveToast\",h);}},[t]),useEffect(function(){function h(f){[\"f8\"].every(C=>f.code?.toLowerCase()===C.toLowerCase())&&a.current?.focus();}return document.addEventListener(\"keydown\",h),()=>document.removeEventListener(\"keydown\",h)},[]),useEffect(function(){i.current.flush();let h=l[l.length-1];return i.current.wait(()=>{let g=t.get(\"toast\")[0];g!=null&&c(g);},h?.duration??5*1e3)},[l,t,c]);function p(u){c(u);}return jsx($3.container,{ref:n,role:\"region\",\"aria-label\":\"Notifications\",tabIndex:-1,\"aria-hidden\":l.length===0,children:jsx($3.list,{tabIndex:-1,ref:a,children:jsx(AnimatePresence,{initial:!1,children:l.map((u,h)=>jsx(Co,{ref:h===0?r:void 0,notification:u,onClose:p},u.guid))})})})}var Co=forwardRef(function(t,l){function o(n){return r=>{r.key===\"Escape\"&&(r.nativeEvent.defaultPrevented||t.onClose(n));}}return jsx($3.listItemParent,{role:\"status\",\"aria-live\":\"off\",tabIndex:0,ref:l,layout:!0,initial:{opacity:0,y:50,scale:1},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.98,transition:{duration:.2}},transition:{type:\"spring\",stiffness:240,damping:20},onKeyDown:o(t.notification),children:jsx(xo,{...t})})}),go=100,vo=10;function xo(e){let t=useRef(null),l=useDragControls(),o=useAnimation(),n=A();function r(p,u){e:{if(u==null)break e;if(u<go)return !1}return p>vo}function a(p,u){if(t.current==null)return;r(t.current.offset.y,t.current.velocity.y)&&(e.onClose(e.notification),o.start(\"down\")),t.current=null;}function i(p,u){t.current=u;}function c(p){return u=>{e.onClose(p);}}return jsxs($3.listItem,{dragControls:l,\"data-variant\":e.notification.variant,drag:\"y\",dragConstraints:{top:0,bottom:100},dragSnapToOrigin:!0,onDragEnd:a,onDrag:i,initial:\"initial\",animate:o,transition:{type:\"spring\",damping:25,stiffness:100},variants:{up:{y:\"-300%\"},initial:{y:0},down:{y:\"300%\"}},children:[jsx($3.iconWrapper,{children:jsx(N,{type:Mo(e.notification.variant)})}),jsxs($3.text,{children:[jsx(z1,{variant:\"labelLargeSemiBold\",children:e.notification.label}),e.notification.message!=null?jsx(z1,{variant:\"labelRegular\",children:e.notification.message}):null]}),jsx(E1,{variant:e.notification.variant,size:\"small\",text:n(\"Common.Close\"),icon:\"x\",onClick:c(e.notification)})]})}function Mo(e){switch(e){case\"success\":return \"check\";case\"danger\":return \"warning\";case\"info\":return \"warningCircle\";case\"warning\":return \"warning\"}}var o6=new z5,l6=f7.createContext(o6);function bo(e){o6.add(new H5(e));}function O4(e){return jsxs(Fragment$1,{children:[jsx(t6,{}),e.children]})}var w5=createContext(void 0);function _4(){let e=useContext(w5);if(e===void 0)throw new Error(\"useLayoutContext must be used within a LayoutProvider\");return e}var g2=class g2{constructor(t){X(this,\"styleElement\",null);X(this,\"cachedKeys\",new Map);X(this,\"key_i\",0);X(this,\"cachedValues\",new Map);X(this,\"values_i\",0);X(this,\"insertedRules\",new Set);X(this,\"insertIndex\",0);X(this,\"breakpointMapping\",{base:0,S:1,M:2,L:3});X(this,\"cellulaId\");this.cellulaId=t;}QUIRK_HACK_TO_BE_USED_IN_RENDER_BODY(){this.create();}create(){if(this.styleElement!=null)return;let t=document.createElement(\"style\");t.appendChild(document.createTextNode(\"\")),t.type=\"text/css\",t.setAttribute(\"id\",`layout-provider-${this.cellulaId}`),document.head.appendChild(t),this.styleElement=t;}remove(){this.styleElement!=null&&(document.head.removeChild(this.styleElement),this.styleElement=null);}convertStyleIntoClassName(t){let l=[],o=Object.entries(t);for(let[n,r]of o){if(r==null)continue;let a=this.breakpointMapping[n],i=Object.entries(r);for(let[c,p]of i)if(p!=null)try{let u=this.toHyphenCase(c),h=this.numberToString(p),f=this.cachedKeys.get(u),g=this.cachedValues.get(h);f==null&&(f=++this.key_i*g2.KEY_DIGIT,this.cachedKeys.set(u,f)),g==null&&(g=++this.values_i*g2.VALUE_DIGIT,this.cachedValues.set(h,g));let C=this.getHexId(a,f,g);this.insertRule(C,a,u,h),l.push(C);}catch(u){console.error(`Could not insert rule \"${c}: ${p}\"`,u);}}return l}getStyleElement(){if(this.styleElement==null)throw new Error('\"styleElement\" has not been set, was this method run outside of the provider?');return this.styleElement}getSheet(){let t=this.getStyleElement();if(t.sheet==null)throw new Error('\"sheet\" is null, is this method being run outside a browser environment');return t.sheet}getHexId(t,l,o){let n=l*g2.KEY_DIGIT,r=o*g2.VALUE_DIGIT,a=t*g2.BREAK_POINT_DIGIT,i=n+r+a;return \"_\"+this.cellulaId+\"_\"+i.toString(16)}insertRule(t,l,o,n){if(this.insertedRules.has(t))return;let r=\"\";if(l===0)r=`.${t} { ${o}: ${n}; }`;else {let i;switch(l){case 1:i=600;break;case 2:i=905;break;case 3:i=1440;break;default:i=0;}r=`@media screen and (min-width: ${i}px) { .${t} { ${o}: ${n}; } }`;}this.getSheet().insertRule(r,this.insertIndex++),this.insertedRules.add(t);}toHyphenCase(t){return t.includes(\"-\")?t:t.replace(/[A-Z]/g,l=>\"-\"+l.toLowerCase())}numberToString(t){return typeof t==\"number\"?t.toString():t}};X(g2,\"BREAK_POINT_DIGIT\",1),X(g2,\"KEY_DIGIT\",100),X(g2,\"VALUE_DIGIT\",1e4);var L5=g2;function T5({children:e}){let{cellulaId:t}=B1(),l=useMemo(()=>new L5(t),[t]);return l.QUIRK_HACK_TO_BE_USED_IN_RENDER_BODY(),useEffect(()=>(l.create(),()=>{l.remove();}),[l]),jsx(w5.Provider,{value:l,children:e})}function V5({variant:e,direction:t}){if(e==null)return {};let l;if(typeof e==\"boolean\"){if(!e)return {};l=\"directional\";}else l=e;if(l===\"all\")return {width:\"100%\",height:\"100%\"};if(l===\"vertical\")return {height:\"100%\"};if(l===\"horizontal\")return {width:\"100%\"};if(t==null)throw new TypeError(\"ParseFluid is missing direction\");return t===\"vertical\"?{height:\"100%\"}:{width:\"100%\"}}function I5({align:e,direction:t,basis:l,gap:o,justify:n,shrink:r,wrap:a,grow:i,gridArea:c},p,u){let h={alignItems:e??p?.alignItems,flexDirection:t??p?.flexDirection,flexBasis:l??p?.flexBasis,gap:o??p?.gap,justifyContent:n??p?.justifyContent,flexShrink:r??p?.flexShrink,flexWrap:a??p?.flexWrap,flexGrow:i??p?.flexGrow,gridArea:c??p?.gridArea,...p};return {...h,...V5({variant:u,direction:h.flexDirection===\"column\"?\"vertical\":\"horizontal\"})}}function Eo({asChild:e,as:t,align:l,direction:o=\"column\",basis:n,gap:r,grow:a,justify:i,shrink:c,wrap:p,gridArea:u,fluid:h,style:f,breakpointSmallAndUp:g,breakpointMediumAndUp:C,breakpointLargeAndUp:w,className:T,...H},z){let S=_4(),k=e?Slot:t??\"div\",v=useMemo(()=>S.convertStyleIntoClassName({base:{display:\"flex\",...I5({align:l,direction:o,basis:n,gap:r,grow:a,justify:i,shrink:c,wrap:p,gridArea:u},f??{},h??!1)},S:g?I5(g,{},h??!1):void 0,M:C?I5(C,{},h??!1):void 0,L:w?I5(w,{},h??!1):void 0}),[S,l,o,n,r,a,i,c,p,u,h,f,g,C,w]);return T=Array.from(new Set([...T?.split(\" \")??[],...v])).join(\" \"),jsx(k,{className:T,...H,ref:z})}var w1=forwardRef(Eo);function Do({gridArea:e,padding:t,verticalPadding:l,horizontalPadding:o,asChild:n,width:r,height:a,borderRadius:i,border:c,background:p,boxShadow:u,style:h,...f},g){return t=t??h?.padding,t=t||`${l??\"0\"} ${o??\"0\"}`,jsx(n?Slot:w1,{ref:g,gridArea:e,style:{padding:t,width:r??\"100%\",height:a??\"100%\",borderRadius:i,border:c,backgroundColor:p,boxShadow:u,...h},...f})}var No=forwardRef(Do);function n6({\"data-testid\":e,asChild:t,horizontalPadding:l,verticalPadding:o,maxWidth:n,...r},a){let i=t?Slot:w1,{style:c,...p}=r,u=c??{};return jsx(i,{style:{alignItems:p.align??\"flex-start\",width:\"100%\",padding:`${o??0} ${l??\"16px\"}`,maxWidth:n??\"1320px\",marginTop:\"0\",marginRight:\"auto\",marginBottom:\"0\",marginLeft:\"auto\",...u},\"data-testid\":e,ref:a,...p})}var _o=forwardRef(n6);n6.displayName=\"CellulaSafeArea\";function i6({direction:e=\"vertical\",gap:t,fluid:l,asChild:o,...n},r){let a=e===\"vertical\"?\"column\":\"row\",{style:i,...c}=n,p={...i??{},...V5({variant:l,direction:e})};return o?jsx(Slot,{style:{display:\"flex\",flexDirection:a,gap:t,...p},ref:r,...c}):jsx(w1,{direction:a,gap:t,ref:r,style:p,...c})}var jo=forwardRef(i6);i6.displayName=\"CellulaStack\";function a6({vertical:e,horizontal:t,basis:l,asChild:o,children:n,...r},a){let i=o?Slot:w1,{style:c,...p}=r,u=n!=null?{marginTop:e,marginRight:t,marginBottom:e,marginLeft:t}:{width:t,height:e};return jsx(i,{ref:a,style:{flexBasis:l,flexShrink:0,flexGrow:0,...u,...c??{}},...p,children:n})}var G2=forwardRef(a6);a6.displayName=\"CellulaSpacer\";function s6({bleedAmount:e,asChild:t,viewportWide:l,...o},n){let r=t?Slot:w1,{style:a,...i}=o,c=l?{width:\"100vw\",height:void 0,position:\"relative\",left:\"50%\",right:\"50%\",marginLeft:\"-50vw\",marginRight:\"-50vw\",alignItems:void 0,...a}:{marginLeft:`-${e}`,marginRight:`-${e}`,width:void 0,height:void 0,alignItems:void 0,...a};return jsx(\"div\",{style:{width:\"100%\"},children:jsx(r,{style:c,ref:n,...i})})}var Yo=forwardRef(s6);s6.displayName=\"CellulaBleed\";var d6={\"Common.Close\":\"Luk\",\"Common.Download\":\"Download\",\"Common.UnknownError\":\"Ukendt fejl, pr\\xF8v igen\",\"Component.Attachment.DeleteTooltip\":\"Slet {{name}}\",\"Component.Attachment.DeleteUnspecifiedError\":\"Ukendt fejl ved sletning af vedh\\xE6ftet fil\",\"Component.DialogAlert.ButtonAbort.DisabledText\":\"Kan ikke klikke p\\xE5 denne knap under indl\\xE6sning\",\"Component.FileViewer.Download\":\"Download\",\"Component.FileViewer.FileCounter.Label\":\"Viser fil {{currentFile}} af {{totalFiles}}\",\"Component.FileViewer.FileCounter.Of\":\"af\",\"Component.FileViewer.NextItem\":\"N\\xE6ste objekt\",\"Component.FileViewer.PreviousItem\":\"Forrige objekt\",\"Component.Form.GeneralInputError\":\"Dette felt er ikke udfyldt korrekt\",\"Component.Form.UnknownSubmitError\":\"Der opstod en ukendt fejl\",\"Component.FormSubmitButton.Invalid\":\"Indtast alle obligatoriske felter for at forts\\xE6tte\",\"Component.FormSubmitButton.NotDirty\":\"Ingen nye \\xE6ndringer at gemme\",\"Component.InputCombobox.Empty\":\"Ingen objekter fundet\",\"Component.InputCombobox.Placeholder\":\"V\\xE6lg en mulighed\",\"Component.InputPhoneNumber.CountrySelectLabel\":\"V\\xE6lg land\",\"Component.InputPhoneNumber.InputLabel\":\"Telefonnummer\",\"Component.InputRating.OneStar\":\"\\xC9n stjerne\",\"Component.InputRating.SeveralStars\":\"{{count}} stjerner\",\"Component.InputSelect.Placeholder\":\"V\\xE6lg en mulighed\",\"Component.Label.Optional\":\"Valgfri\"};var p6={\"Common.Close\":\"Schlie\\xDFen\",\"Common.Download\":\"Herunterladen\",\"Common.UnknownError\":\"Unbekannter Fehler, bitte versuchen Sie es erneut\",\"Component.Attachment.DeleteTooltip\":\"{{name}} l\\xF6schen\",\"Component.Attachment.DeleteUnspecifiedError\":\"Unbekannter Fehler beim L\\xF6schen des Anhangs\",\"Component.DialogAlert.ButtonAbort.DisabledText\":\"Diese Schaltfl\\xE4che kann beim Laden nicht angeklickt werden\",\"Component.FileViewer.Download\":\"Herunterladen\",\"Component.FileViewer.FileCounter.Label\":\"Zeigt Datei {{currentFile}} von {{totalFiles}}\",\"Component.FileViewer.FileCounter.Of\":\"von\",\"Component.FileViewer.NextItem\":\"Weiter\",\"Component.FileViewer.PreviousItem\":\"Zur\\xFCck\",\"Component.Form.GeneralInputError\":\"Dieses Feld wurde nicht korrekt ausgef\\xFCllt\",\"Component.Form.UnknownSubmitError\":\"Es ist ein unbekannter Fehler aufgetreten\",\"Component.FormSubmitButton.Invalid\":\"Bitte f\\xFCllen Sie alle Pflichtfelder aus, um fortzufahren\",\"Component.FormSubmitButton.NotDirty\":\"Keine neuen \\xC4nderungen zu speichern\",\"Component.InputCombobox.Empty\":\"Keine Optionen gefunden\",\"Component.InputCombobox.Placeholder\":\"W\\xE4hlen Sie eine Option\",\"Component.InputPhoneNumber.CountrySelectLabel\":\"Land ausw\\xE4hlen\",\"Component.InputPhoneNumber.InputLabel\":\"Telefonnummer\",\"Component.InputRating.OneStar\":\"Ein Stern\",\"Component.InputRating.SeveralStars\":\"{{count}} Sterne\",\"Component.InputSelect.Placeholder\":\"W\\xE4hlen Sie eine Option\",\"Component.Label.Optional\":\"Optional\"};var u6={\"Common.Close\":\"Close\",\"Common.Download\":\"Download\",\"Common.UnknownError\":\"Unknown error, please try again\",\"Component.Attachment.DeleteTooltip\":\"Delete {{name}}\",\"Component.Attachment.DeleteUnspecifiedError\":\"Unknown error while deleting attachment\",\"Component.DialogAlert.ButtonAbort.DisabledText\":\"Can't click this button while loading\",\"Component.FileViewer.Download\":\"Download\",\"Component.FileViewer.FileCounter.Label\":\"Showing file {{currentFile}} of {{totalFiles}}\",\"Component.FileViewer.FileCounter.Of\":\"of\",\"Component.FileViewer.NextItem\":\"Next item\",\"Component.FileViewer.PreviousItem\":\"Previous item\",\"Component.Form.GeneralInputError\":\"This field is not filled in correctly\",\"Component.Form.UnknownSubmitError\":\"An unknown error occurred\",\"Component.FormSubmitButton.Invalid\":\"Please enter all required fields to proceed\",\"Component.FormSubmitButton.NotDirty\":\"No new changes to save\",\"Component.InputCombobox.Empty\":\"No items found\",\"Component.InputCombobox.Placeholder\":\"Choose an option\",\"Component.InputPhoneNumber.CountrySelectLabel\":\"Select country\",\"Component.InputPhoneNumber.InputLabel\":\"Phone number\",\"Component.InputRating.OneStar\":\"One star\",\"Component.InputRating.SeveralStars\":\"{{count}} stars\",\"Component.InputSelect.Placeholder\":\"Choose an option\",\"Component.Label.Optional\":\"Optional\"};var h6={\"Common.Close\":\"Sulje\",\"Common.Download\":\"Lataa\",\"Common.UnknownError\":\"Tuntematon virhe, yrit\\xE4 uudelleen\",\"Component.Attachment.DeleteTooltip\":\"Poista {{name}}\",\"Component.Attachment.DeleteUnspecifiedError\":\"Tuntematon virhe poistettaessa liitetiedostoa\",\"Component.DialogAlert.ButtonAbort.DisabledText\":\"T\\xE4t\\xE4 painiketta ei voi napsauttaa latauksen aikana\",\"Component.FileViewer.Download\":\"Lataa\",\"Component.FileViewer.FileCounter.Label\":\"N\\xE4ytet\\xE4\\xE4n tiedosto {{currentFile}}/{{totalFiles}}\",\"Component.FileViewer.FileCounter.Of\":\"/\",\"Component.FileViewer.NextItem\":\"Seuraava kohta\",\"Component.FileViewer.PreviousItem\":\"Edellinen kohta\",\"Component.Form.GeneralInputError\":\"T\\xE4t\\xE4 kentt\\xE4\\xE4 ei ole t\\xE4ytetty oikein\",\"Component.Form.UnknownSubmitError\":\"Tapahtui tuntematon virhe\",\"Component.FormSubmitButton.Invalid\":\"Jatka t\\xE4ytt\\xE4m\\xE4ll\\xE4 kaikki pakolliset kent\\xE4t\",\"Component.FormSubmitButton.NotDirty\":\"Ei uusia tallennettavia muutoksia\",\"Component.InputCombobox.Empty\":\"Vaihtoehtoja ei l\\xF6ytynyt\",\"Component.InputCombobox.Placeholder\":\"Valitse vaihtoehto\",\"Component.InputPhoneNumber.CountrySelectLabel\":\"Valitse maa\",\"Component.InputPhoneNumber.InputLabel\":\"Puhelinnumero\",\"Component.InputRating.OneStar\":\"Yksi t\\xE4hti\",\"Component.InputRating.SeveralStars\":\"{{count}} t\\xE4hte\\xE4\",\"Component.InputSelect.Placeholder\":\"Valitse vaihtoehto\",\"Component.Label.Optional\":\"Valinnainen\"};var m6={\"Common.Close\":\"Sluiten\",\"Common.Download\":\"Downloaden\",\"Common.UnknownError\":\"Onbekende fout, probeer het opnieuw\",\"Component.Attachment.DeleteTooltip\":\"Verwijderen {{name}}\",\"Component.Attachment.DeleteUnspecifiedError\":\"Onbekende fout bij het verwijderen van bijlage\",\"Component.DialogAlert.ButtonAbort.DisabledText\":\"Kan niet op deze knop klikken tijdens het laden\",\"Component.FileViewer.Download\":\"Downloaden\",\"Component.FileViewer.FileCounter.Label\":\"Bestand {{currentFile}} van {{totalFiles}} wordt weergegeven\",\"Component.FileViewer.FileCounter.Of\":\"van\",\"Component.FileViewer.NextItem\":\"Volgend item\",\"Component.FileViewer.PreviousItem\":\"Vorig item\",\"Component.Form.GeneralInputError\":\"Dit veld is niet correct ingevuld\",\"Component.Form.UnknownSubmitError\":\"Er is een onbekende fout opgetreden\",\"Component.FormSubmitButton.Invalid\":\"Voer alle verplichte velden in om door te gaan\",\"Component.FormSubmitButton.NotDirty\":\"Geen nieuwe wijzigingen om op te slaan\",\"Component.InputCombobox.Empty\":\"Geen items gevonden\",\"Component.InputCombobox.Placeholder\":\"Een optie kiezen\",\"Component.InputPhoneNumber.CountrySelectLabel\":\"Land selecteren\",\"Component.InputPhoneNumber.InputLabel\":\"Telefoonnummer\",\"Component.InputRating.OneStar\":\"E\\xE9n ster\",\"Component.InputRating.SeveralStars\":\"{{count}} sterren\",\"Component.InputSelect.Placeholder\":\"Een optie kiezen\",\"Component.Label.Optional\":\"Optioneel\"};var f6={\"Common.Close\":\"Lukk\",\"Common.Download\":\"Last ned\",\"Common.UnknownError\":\"Ukjent feil, pr\\xF8v p\\xE5 nytt\",\"Component.Attachment.DeleteTooltip\":\"Slett {{name}}\",\"Component.Attachment.DeleteUnspecifiedError\":\"Ukjent feil ved sletting av vedlegg\",\"Component.DialogAlert.ButtonAbort.DisabledText\":\"Kan ikke klikke p\\xE5 denne knappen mens det lastes inn\",\"Component.FileViewer.Download\":\"Last ned\",\"Component.FileViewer.FileCounter.Label\":\"Viser fil {{currentFile}} av {{totalFiles}}\",\"Component.FileViewer.FileCounter.Of\":\"av\",\"Component.FileViewer.NextItem\":\"Neste element\",\"Component.FileViewer.PreviousItem\":\"Forrige element\",\"Component.Form.GeneralInputError\":\"Dette feltet er ikke fylt ut riktig\",\"Component.Form.UnknownSubmitError\":\"Det oppstod en ukjent feil\",\"Component.FormSubmitButton.Invalid\":\"Fyll ut alle obligatoriske felt for \\xE5 fortsette\",\"Component.FormSubmitButton.NotDirty\":\"Ingen nye endringer \\xE5 lagre\",\"Component.InputCombobox.Empty\":\"Ingen elementer ble funnet\",\"Component.InputCombobox.Placeholder\":\"Velg et alternativ\",\"Component.InputPhoneNumber.CountrySelectLabel\":\"Velg land\",\"Component.InputPhoneNumber.InputLabel\":\"Telefonnummer\",\"Component.InputRating.OneStar\":\"\\xC9n stjerne\",\"Component.InputRating.SeveralStars\":\"{{count}} stjerner\",\"Component.InputSelect.Placeholder\":\"Velg et alternativ\",\"Component.Label.Optional\":\"Valgfritt\"};var C6={\"Common.Close\":\"St\\xE4ng\",\"Common.Download\":\"Ladda ner\",\"Common.UnknownError\":\"Ok\\xE4nt fel, f\\xF6rs\\xF6k igen\",\"Component.Attachment.DeleteTooltip\":\"Ta bort {{name}}\",\"Component.Attachment.DeleteUnspecifiedError\":\"Ok\\xE4nt fel uppstod vid borttagning av filen\",\"Component.DialogAlert.ButtonAbort.DisabledText\":\"Det g\\xE5r inte att klicka p\\xE5 denna knapp medan det laddas\",\"Component.FileViewer.Download\":\"Ladda ner\",\"Component.FileViewer.FileCounter.Label\":\"Visar fil {{currentFile}} av {{totalFiles}}\",\"Component.FileViewer.FileCounter.Of\":\"av\",\"Component.FileViewer.NextItem\":\"N\\xE4sta\",\"Component.FileViewer.PreviousItem\":\"F\\xF6reg\\xE5ende\",\"Component.Form.GeneralInputError\":\"Detta f\\xE4lt \\xE4r inte ifyllt korrekt\",\"Component.Form.UnknownSubmitError\":\"Ett ok\\xE4nt fel intr\\xE4ffade\",\"Component.FormSubmitButton.Invalid\":\"Fyll i alla obligatoriska f\\xE4lt f\\xF6r att g\\xE5 vidare\",\"Component.FormSubmitButton.NotDirty\":\"Inga nya \\xE4ndringar att spara\",\"Component.InputCombobox.Empty\":\"Inga alternativ hittades\",\"Component.InputCombobox.Placeholder\":\"V\\xE4lj ett alternativ\",\"Component.InputPhoneNumber.CountrySelectLabel\":\"V\\xE4lj land\",\"Component.InputPhoneNumber.InputLabel\":\"Telefonnummer\",\"Component.InputRating.OneStar\":\"En stj\\xE4rna\",\"Component.InputRating.SeveralStars\":\"{{count}} stj\\xE4rnor\",\"Component.InputSelect.Placeholder\":\"V\\xE4lj ett alternativ\",\"Component.Label.Optional\":\"Frivillig\"};function cn(){return {da:d6,de:p6,en:u6,fi:h6,nl:m6,no:f6,sv:C6}}function g6({lang:e,textOverrides:t,children:l}){let n={...cn()[e],...t};return jsx($4.Provider,{value:{texts:n},children:l})}function v6(e){switch(e){case\"da\":return \"da\";case\"de\":return \"de\";case\"en\":return \"en\";case\"fi\":return \"fi\";case\"nl\":return \"nl\";case\"no\":case\"nb\":return \"no\";case\"sv\":return \"sv\";default:return \"en\"}}function pn({id:e,theme:t,tokenOverrides:l,children:o}){return useLayoutEffect(function(){V0.insertTokens(e,t,!0,l);},[e,t,l]),jsx(k5.Provider,{value:{cellulaId:e,portalElement:document.body},children:o})}function un({id:e,theme:t,tokenOverrides:l,portalElement:o,children:n}){let r=useMemo(()=>o??document.createElement(\"div\"),[]);return useLayoutEffect(function(){V0.insertTokens(e,t,!1,l);},[e,t,l]),useLayoutEffect(function(){if(r.setAttribute(\"data-cellula-id\",e),!o)return document.body.appendChild(r),()=>{document.body.removeChild(r);}},[o,r,e]),jsx(k5.Provider,{value:{cellulaId:e,portalElement:r},children:jsx(\"div\",{style:{display:\"contents\"},\"data-cellula-id\":e,children:n})})}function hC({providedInRoot:e=!1,lang:t=\"en\",textOverrides:l,children:o,...n}){let r=useMemo(()=>v4(),[]),a=v6(t);return e?jsx(pn,{id:r,...n,children:jsx(x6,{lang:a,textOverrides:l,children:o})}):jsx(un,{id:r,...n,children:jsx(x6,{lang:a,textOverrides:l,children:o})})}function x6({lang:e,textOverrides:t,children:l}){return jsx(g6,{lang:e,textOverrides:t,children:jsx(O4,{children:jsx(T5,{children:jsx(D4,{children:l})})})})}var X2=forwardRef(({containerRef:e,children:t},l)=>{let o=x7(),{portalElement:n}=B1(),r=e?.current??n;return M7(()=>{o();},[]),r?createPortal(jsx(\"div\",{ref:l,style:r===globalThis?.document.body?{position:\"absolute\",top:0,left:0,zIndex:2147483647}:void 0,children:t}),r):null});X2.displayName=\"CellulaPortal\";var Mn=e3(s2)`\n\t--font: ${L.getValue(\"baseFont\")};\n\t--background: transparent;\n\t--backgroundHover: transparent;\n\t--backgroundActive: transparent;\n\t--textColor: #000;\n\t--border: none;\n\t--minHeight: auto;\n\t--minWidth: auto;\n\t--paddingVertical: 0;\n\t--paddingLeft: 0;\n\t--paddingRight: 0;\n\t--iconMarginLeft: 0;\n\t--iconMarginRight: 0;\n\t--iconSize: 0;\n\n\tuser-select: none;\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-user-drag: none;\n\t-webkit-touch-callout: none;\n\n\tmargin: 0;\n\twidth: auto;\n\toverflow: visible;\n\tcolor: inherit;\n\tline-height: normal;\n\t-webkit-font-smoothing: inherit;\n\t-moz-osx-font-smoothing: inherit;\n\t-webkit-appearance: none;\n\ttransition:\n\t\tbackground 150ms ease-in,\n\t\tbox-shadow 150ms ease-in;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\toutline: none;\n\tword-wrap: break-word;\n\tword-break: break-word;\n\tborder-radius: ${L.getValue(\"baseBorderRadius\")};\n\tpadding: var(--paddingVertical) var(--paddingRight) var(--paddingVertical) var(--paddingLeft);\n\tfont: var(--font);\n\tbackground: var(--background);\n\tborder: var(--border);\n\tmin-height: var(--minHeight);\n\tmin-width: var(--minWidth);\n\tcolor: var(--textColor);\n\n\t&:not([aria-disabled='true'], [aria-busy='true']) {\n\t\t&:hover {\n\t\t\tbackground: var(--backgroundHover);\n\t\t}\n\t\t&:active {\n\t\t\tbackground: var(--backgroundActive);\n\t\t}\n\t}\n\n\t& > .cellula-button__icon {\n\t\tflex: 0 0 auto;\n\t\tpadding-left: var(--iconMarginLeft);\n\t\tpadding-right: var(--iconMarginRight);\n\n\t\t& > svg {\n\t\t\twidth: var(--iconSize);\n\t\t\theight: var(--iconSize);\n\t\t}\n\t}\n\n\t& > .cellula-button__spinner {\n\t\tflex: 0 0 auto;\n\t\tpadding-right: ${L.getValue(\"baseIconMarginToText\")};\n\n\t\t& > div {\n\t\t\twidth: var(--iconSize);\n\t\t\theight: var(--iconSize);\n\t\t}\n\t}\n\n\t// Icon\n\t&[data-icon-position='leading'] {\n\t\t--iconMarginLeft: 0;\n\t\t--iconMarginRight: ${L.getValue(\"baseIconMarginToText\")};\n\t}\n\t&[data-icon-position='trailing'] {\n\t\t--iconMarginLeft: ${L.getValue(\"baseIconMarginToText\")};\n\t\t--iconMarginRight: 0;\n\t}\n\n\t// Variants\n\t&[data-variant='primary'] {\n\t\t--background: ${L.getValue(\"primaryBackground\")};\n\t\t--backgroundHover: ${L.getValue(\"primaryHoverBackground\")};\n\t\t--backgroundActive: ${L.getValue(\"primaryActiveBackground\")};\n\t\t--textColor: ${L.getValue(\"primaryTextColor\")};\n\t}\n\t&[data-variant='secondary'] {\n\t\t--backgroundHover: ${L.getValue(\"secondaryHoverBackground\")};\n\t\t--backgroundActive: ${L.getValue(\"secondaryActiveBackground\")};\n\t\t--textColor: ${L.getValue(\"secondaryTextColor\")};\n\t\t--border: 2px solid ${L.getValue(\"secondaryBorderColor\")};\n\t}\n\t&[data-variant='ghost'] {\n\t\t--backgroundHover: ${L.getValue(\"ghostHoverBackground\")};\n\t\t--backgroundActive: ${L.getValue(\"ghostActiveBackground\")};\n\t\t--textColor: ${L.getValue(\"ghostTextColor\")};\n\t}\n\t&[data-variant='danger'] {\n\t\t--background: ${L.getValue(\"dangerBackground\")};\n\t\t--backgroundHover: ${L.getValue(\"dangerHoverBackground\")};\n\t\t--backgroundActive: ${L.getValue(\"dangerActiveBackground\")};\n\t\t--textColor: ${L.getValue(\"dangerTextColor\")};\n\t}\n\n\t// Sizes\n\t&[data-size='xSmall'] {\n\t\t--paddingVertical: ${L.getValue(\"xSmallPaddingVertical\")};\n\t\t--paddingLeft: ${L.getValue(\"xSmallPaddingHorizontal\")};\n\t\t--paddingRight: ${L.getValue(\"xSmallPaddingHorizontal\")};\n\t\t--minHeight: ${L.getValue(\"xSmallMinHeight\")};\n\t\t--minWidth: ${L.getValue(\"xSmallMinWidth\")};\n\t\t--font: ${L.getValue(\"xSmallFont\")};\n\t\t--iconSize: ${L.getValue(\"xSmallIconSize\")};\n\n\t\t&[data-variant='secondary'] {\n\t\t\t--paddingVertical: calc(${L.getValue(\"xSmallPaddingVertical\")} - 2px);\n\t\t}\n\t\t&[aria-busy] {\n\t\t\t--paddingLeft: ${L.getValue(\"xSmallIconPadding\")};\n\t\t}\n\t\t&[data-icon][data-icon-position='leading'] {\n\t\t\t--paddingLeft: ${L.getValue(\"xSmallIconPadding\")};\n\t\t}\n\t\t&[data-icon][data-icon-position='trailing'] {\n\t\t\t--paddingRight: ${L.getValue(\"xSmallIconPadding\")};\n\t\t}\n\t}\n\t&[data-size='small'] {\n\t\t--paddingVertical: ${L.getValue(\"smallPaddingVertical\")};\n\t\t--paddingLeft: ${L.getValue(\"smallPaddingHorizontal\")};\n\t\t--paddingRight: ${L.getValue(\"smallPaddingHorizontal\")};\n\t\t--minHeight: ${L.getValue(\"smallMinHeight\")};\n\t\t--minWidth: ${L.getValue(\"smallMinWidth\")};\n\t\t--font: ${L.getValue(\"smallFont\")};\n\t\t--iconSize: ${L.getValue(\"smallIconSize\")};\n\n\t\t&[data-variant='secondary'] {\n\t\t\t--paddingVertical: calc(${L.getValue(\"smallPaddingVertical\")} - 2px);\n\t\t}\n\t\t&[aria-busy] {\n\t\t\t--paddingLeft: ${L.getValue(\"smallIconPadding\")};\n\t\t}\n\t\t&[data-icon][data-icon-position='leading'] {\n\t\t\t--paddingLeft: ${L.getValue(\"smallIconPadding\")};\n\t\t}\n\t\t&[data-icon][data-icon-position='trailing'] {\n\t\t\t--paddingRight: ${L.getValue(\"smallIconPadding\")};\n\t\t}\n\t}\n\t&[data-size='medium'] {\n\t\t--paddingVertical: ${L.getValue(\"mediumPaddingVertical\")};\n\t\t--paddingLeft: ${L.getValue(\"mediumPaddingHorizontal\")};\n\t\t--paddingRight: ${L.getValue(\"mediumPaddingHorizontal\")};\n\t\t--minHeight: ${L.getValue(\"mediumMinHeight\")};\n\t\t--minWidth: ${L.getValue(\"mediumMinWidth\")};\n\t\t--font: ${L.getValue(\"mediumFont\")};\n\t\t--iconSize: ${L.getValue(\"mediumIconSize\")};\n\n\t\t&[data-variant='secondary'] {\n\t\t\t--paddingVertical: calc(${L.getValue(\"mediumPaddingVertical\")} - 2px);\n\t\t}\n\t\t&[aria-busy] {\n\t\t\t--paddingLeft: ${L.getValue(\"mediumIconPadding\")};\n\t\t}\n\t\t&[data-icon][data-icon-position='leading'] {\n\t\t\t--paddingLeft: ${L.getValue(\"mediumIconPadding\")};\n\t\t}\n\t\t&[data-icon][data-icon-position='trailing'] {\n\t\t\t--paddingRight: ${L.getValue(\"mediumIconPadding\")};\n\t\t}\n\t}\n\t&[data-size='large'] {\n\t\t--paddingVertical: ${L.getValue(\"largePaddingVertical\")};\n\t\t--paddingLeft: ${L.getValue(\"largePaddingHorizontal\")};\n\t\t--paddingRight: ${L.getValue(\"largePaddingHorizontal\")};\n\t\t--minHeight: ${L.getValue(\"largeMinHeight\")};\n\t\t--minWidth: ${L.getValue(\"largeMinWidth\")};\n\t\t--font: ${L.getValue(\"largeFont\")};\n\t\t--iconSize: ${L.getValue(\"largeIconSize\")};\n\n\t\t&[data-variant='secondary'] {\n\t\t\t--paddingVertical: calc(${L.getValue(\"largePaddingVertical\")} - 2px);\n\t\t}\n\t\t&[aria-busy] {\n\t\t\t--paddingLeft: ${L.getValue(\"largeIconPadding\")};\n\t\t}\n\t\t&[data-icon][data-icon-position='leading'] {\n\t\t\t--paddingLeft: ${L.getValue(\"largeIconPadding\")};\n\t\t}\n\t\t&[data-icon][data-icon-position='trailing'] {\n\t\t\t--paddingRight: ${L.getValue(\"largeIconPadding\")};\n\t\t}\n\t}\n\t&[data-size='xLarge'] {\n\t\t--paddingVertical: ${L.getValue(\"xLargePaddingVertical\")};\n\t\t--paddingLeft: ${L.getValue(\"xLargePaddingHorizontal\")};\n\t\t--paddingRight: ${L.getValue(\"xLargePaddingHorizontal\")};\n\t\t--minHeight: ${L.getValue(\"xLargeMinHeight\")};\n\t\t--minWidth: ${L.getValue(\"xLargeMinWidth\")};\n\t\t--font: ${L.getValue(\"xLargeFont\")};\n\t\t--iconSize: ${L.getValue(\"xLargeIconSize\")};\n\n\t\t&[data-variant='secondary'] {\n\t\t\t--paddingVertical: calc(${L.getValue(\"xLargePaddingVertical\")} - 2px);\n\t\t}\n\t\t&[aria-busy] {\n\t\t\t--paddingLeft: ${L.getValue(\"xLargeIconPadding\")};\n\t\t}\n\t\t&[data-icon][data-icon-position='leading'] {\n\t\t\t--paddingLeft: ${L.getValue(\"xLargeIconPadding\")};\n\t\t}\n\t\t&[data-icon][data-icon-position='trailing'] {\n\t\t\t--paddingRight: ${L.getValue(\"xLargeIconPadding\")};\n\t\t}\n\t}\n\n\t&:focus-visible {\n\t\toutline: 2px solid ${L.getValue(\"baseFocusRingColor\")};\n\t\toutline-offset: 2px;\n\t}\n\n\t&[aria-disabled='true'] {\n\t\topacity: 0.6;\n\t\tcursor: not-allowed;\n\t}\n\n\t&[aria-busy='true'] {\n\t\topacity: 0.6;\n\t\tcursor: progress;\n\t}\n`;function kn({variant:e=\"primary\",iconPosition:t=\"leading\",size:l=\"medium\",disabled:o,loading:n,icon:r,disabledText:a,children:i,as:c,...p},u){let h;r&&(h=jsx(\"span\",{className:\"cellula-button__icon\",children:jsx(N,{type:r})}));let f=useId();return jsxs(Fragment,{children:[jsxs(Mn,{as:c,disabled:o||n,busy:n,...p,\"aria-describedby\":o&&a?`${f}-disabled-text`:p[\"aria-describedby\"],ref:u,\"data-variant\":e,\"data-size\":l,\"data-icon\":!!r||void 0,\"data-icon-position\":t,children:[r&&!n&&t===\"leading\"&&h,n&&jsx(\"span\",{className:\"cellula-button__spinner\",\"aria-hidden\":\"true\",children:jsx(m3,{size:\"medium\"})}),i,r&&!n&&t===\"trailing\"&&h]}),o&&a?jsx(X2,{children:jsx(V1,{id:`${f}-disabled-text`,children:a})}):null]})}var j2=forwardRef(kn);function zn({gap:e,justify:t,children:l},o){return jsx(w1,{gap:e??m.spacing.x2,breakpointSmallAndUp:{direction:\"row\",justify:t??\"flex-end\"},ref:o,children:l})}var KC=forwardRef(zn);var k1=new I(\"notificationAlert\");var X4={notificationAlert:e3.div`\n\t\t--borderColor: transparent;\n\t\t--background: transparent;\n\t\t--textColor: #000;\n\t\t--iconColor: #000;\n\n\t\tdisplay: flex;\n\t\twidth: auto;\n\t\tword-wrap: break-word;\n\t\tword-break: break-word;\n\t\tpadding: ${k1.getValue(\"basePadding\")};\n\t\tborder-radius: ${k1.getValue(\"baseBorderRadius\")};\n\t\tfont: ${k1.getValue(\"baseText\")};\n\t\tborder: 1px solid var(--borderColor);\n\t\tbackground: var(--background);\n\t\tcolor: var(--textColor);\n\n\t\t& > .cellula-notification-alert__icon {\n\t\t\tcolor: var(--iconColor);\n\t\t\tflex-shrink: 0;\n\t\t\talign-self: center;\n\t\t}\n\n\t\t// Variants\n\t\t&[data-variant='info'] {\n\t\t\t--borderColor: ${k1.getValue(\"infoBorderColor\")};\n\t\t\t--background: ${k1.getValue(\"infoBackground\")};\n\t\t\t--textColor: ${k1.getValue(\"infoTextColor\")};\n\t\t\t--iconColor: ${k1.getValue(\"infoIconColor\")};\n\t\t}\n\t\t&[data-variant='success'] {\n\t\t\t--borderColor: ${k1.getValue(\"successBorderColor\")};\n\t\t\t--background: ${k1.getValue(\"successBackground\")};\n\t\t\t--textColor: ${k1.getValue(\"successTextColor\")};\n\t\t\t--iconColor: ${k1.getValue(\"successIconColor\")};\n\t\t}\n\t\t&[data-variant='warning'] {\n\t\t\t--borderColor: ${k1.getValue(\"warningBorderColor\")};\n\t\t\t--background: ${k1.getValue(\"warningBackground\")};\n\t\t\t--textColor: ${k1.getValue(\"warningTextColor\")};\n\t\t\t--iconColor: ${k1.getValue(\"warningIconColor\")};\n\t\t}\n\t\t&[data-variant='danger'] {\n\t\t\t--borderColor: ${k1.getValue(\"dangerBorderColor\")};\n\t\t\t--background: ${k1.getValue(\"dangerBackground\")};\n\t\t\t--textColor: ${k1.getValue(\"dangerTextColor\")};\n\t\t\t--iconColor: ${k1.getValue(\"dangerIconColor\")};\n\t\t}\n\n\t\t& > * {\n\t\t\tmargin-right: ${k1.getValue(\"baseIconMargin\")};\n\t\t}\n\n\t\t& > *:last-child {\n\t\t\tmargin-right: 0;\n\t\t}\n\t`,body:e3.div`\n\t\tflex-grow: 1;\n\t`,closeButton:e3.div`\n\t\tflex-grow: 0;\n\t`};function Fn({variant:e,closable:t=!1,onClose:l,children:o,...n},r){let a=A();function i(){l&&l();}let c;switch(e){case\"success\":c=\"check\";break;case\"warning\":c=\"warningCircle\";break;case\"danger\":c=\"warning\";break;default:c=\"infoCircle\";}return jsxs(X4.notificationAlert,{\"data-variant\":e||void 0,...n,ref:r,children:[jsx(\"div\",{className:\"cellula-notification-alert__icon\",children:jsx(N,{type:c,size:\"small\"})}),jsx(X4.body,{children:o}),t?jsx(X4.closeButton,{children:jsx(E1,{variant:e,size:\"small\",icon:\"cross\",text:a(\"Common.Close\"),onClick:i})}):null]})}var A2=forwardRef(Fn);var A1=new I(\"dialogAlert\");var Bn=keyframes`\n\tfrom {\n\t\topacity: 0;\n\t}\n to {\n\t\topacity: 1;\n\t}\n`,En=keyframes`\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translate(-50%, -40%) scale(0.96);\n\t}\n to {\n\t\topacity: 1;\n\t\ttransform: translate(-50%, -50%) scale(1);\n\t}\n`,O3={overlay:e3(L1.Overlay)`\n\t\tbackground: rgba(0, 0, 0, 0.3);\n\t\tposition: fixed;\n\t\tinset: 0;\n\t\tanimation-duration: 500ms;\n\t\tanimation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);\n\t\twill-change: opacity;\n\t\t/* Needs to use a high z-index to have it appear on top of other elements */\n\t\tz-index: ${l1.DANGER};\n\n\t\t@media (prefers-reduced-motion: no-preference) {\n\t\t\tanimation-name: ${Bn};\n\t\t}\n\t`,close:e3.div`\n\t\tdisplay: flex;\n\t\tjustify-content: end;\n\t`,content:e3(L1.Content)`\n\t\tbackground: ${A1.getValue(\"background\")};\n\t\tborder-radius: ${A1.getValue(\"borderRadius\")};\n\t\tbox-shadow: ${A1.getValue(\"boxShadow\")};\n\t\tposition: fixed;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\twidth: 90vw;\n\t\tmax-width: ${A1.getValue(\"maxWidth\")};\n\t\tmax-height: 85vh;\n\t\tpadding: ${A1.getValue(\"padding\")};\n\t\tanimation-duration: 250ms;\n\t\tanimation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);\n\t\t/* Needs to use a high z-index to have it appear on top of other elements */\n\t\tz-index: ${l1.DANGER};\n\n\t\t&:focus {\n\t\t\toutline: none;\n\t\t}\n\t\t@media (prefers-reduced-motion: no-preference) {\n\t\t\tanimation-name: ${En};\n\t\t}\n\t`,inner:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tpadding: ${A1.getValue(\"innerPadding\")};\n\t`,header:e3(L1.Title)`\n\t\tfont: ${A1.getValue(\"headerText\")};\n\t\tmargin: 0;\n\n\t\t${m.breakpointQuery.medium} {\n\t\t\tfont: ${A1.getValue(\"headerTextAtMediumAndAbove\")};\n\t\t}\n\t`,body:e3(L1.Description)`\n\t\tfont: ${A1.getValue(\"bodyText\")};\n\t\tmargin: 0;\n\t\twhite-space: pre-line;\n\n\t\t${m.breakpointQuery.medium} {\n\t\t\tfont: ${A1.getValue(\"bodyTextAtMediumAndAbove\")};\n\t\t}\n\t`,buttonGroup:e3.div`\n\t\tdisplay: flex;\n\t\tjustify-content: stretch;\n\t\tgap: ${A1.getValue(\"buttonGroupGap\")};\n\t\tflex-direction: column-reverse;\n\n\t\t& > * {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t${m.breakpointQuery.small} {\n\t\t\tjustify-content: flex-end;\n\t\t\tflex-direction: row;\n\n\t\t\t& > * {\n\t\t\t\twidth: auto;\n\t\t\t}\n\t\t}\n\t`};function An({header:e,description:t,children:l,defaultOpen:o,trigger:n,isOpen:r,successText:a,abortText:i,successButtonVariant:c,onAbort:p,onSuccess:u,onOpenChange:h},f){let[g,C]=useState(!1),[w,T]=useState(!1),[H,z]=useState(null),S=useRef(!1),k=A(),{portalElement:v}=B1();useEffect(function(){r!==g&&C(r??g);},[r,g]),useEffect(function(){g||z(null);},[g]);function F(P){if(!w){if(S.current){S.current=!1;return}C(P),h?.(P);}}function R(P){let D=u?.(P);if(S.current=!0,z(null),D instanceof Promise){T(!0),D.then(()=>{C(!1);}).catch($=>{if($ instanceof S5){z($.message);return}z(k(\"Common.UnknownError\"));}).finally(()=>{T(!1);});return}C(!1);}function W(){z(null);}return jsxs(L1.Root,{defaultOpen:o,open:g,onOpenChange:F,children:[n!=null?jsx(L1.Trigger,{asChild:!0,children:n}):null,jsxs(L1.Portal,{container:v,children:[jsx(O3.overlay,{}),jsx(O3.content,{ref:f,children:jsxs(O3.inner,{children:[jsx(O3.header,{children:e}),jsx(G2,{vertical:A1.getValue(\"headerMarginBottom\")}),jsx(O3.body,{children:t}),l?jsxs(Fragment,{children:[jsx(G2,{vertical:A1.getValue(\"headerMarginBottom\")}),l]}):null,jsx(G2,{vertical:A1.getValue(\"bodyMarginBottom\")}),jsx(AnimatePresence,{children:H!=null?jsxs(motion.div,{initial:{height:0,opacity:0},animate:{height:\"auto\",opacity:1},exit:{height:0,opacity:0,transition:{duration:.1}},style:{overflow:\"hidden\"},children:[jsx(A2,{closable:!0,onClose:W,variant:\"danger\",children:jsx(E2,{children:H})}),jsx(G2,{vertical:A1.getValue(\"errorMarginBottom\")})]}):null}),jsxs(O3.buttonGroup,{children:[jsx(L1.Cancel,{asChild:!0,children:jsx(j2,{onClick:p,variant:\"ghost\",size:\"medium\",disabled:w,disabledText:k(\"Component.DialogAlert.ButtonAbort.DisabledText\"),children:i})}),a!=null?jsx(L1.Action,{asChild:!0,children:jsx(j2,{onClick:R,loading:w,variant:c??\"danger\",size:\"medium\",children:a})}):null]})]})})]})]})}var S5=class e extends Error{constructor(l){super(\"Should be handled Success Error\");X(this,\"message\");this.name=\"InvalidAnalyticConfig\",this.message=l,Object.setPrototypeOf(this,e.prototype);}},Pn=forwardRef(An);var c1=new I(\"dialogModal\");var Nn=keyframes`\n\tfrom {\n\t\topacity: 0;\n\t}\n to {\n\t\topacity: 1;\n\t}\n`,$n=keyframes`\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translate(-50%, -40%) scale(0.96);\n\t}\n to {\n\t\topacity: 1;\n\t\ttransform: translate(-50%, -50%) scale(1);\n\t}\n`,B5={overlay:e3(l2.Overlay)`\n\t\tbackground: rgba(0, 0, 0, 0.3);\n\t\tposition: fixed;\n\t\tinset: 0;\n\t\tanimation-duration: 500ms;\n\t\tanimation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);\n\t\twill-change: opacity;\n\t\t/* Needs to use a high z-index to have it appear on top of other elements */\n\t\tz-index: ${l1.DANGER};\n\n\t\t@media (prefers-reduced-motion: no-preference) {\n\t\t\tanimation-name: ${Nn};\n\t\t}\n\t`,content:e3(l2.Content)`\n\t\tdisplay: flex;\n\t\tbackground: ${c1.getValue(\"background\")};\n\t\tborder-radius: ${c1.getValue(\"borderRadius\")};\n\t\tbox-shadow: ${c1.getValue(\"boxShadow\")};\n\t\tz-index: ${l1.normal};\n\n\t\tposition: fixed;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\twidth: 90vw;\n\t\tmax-width: 550px;\n\t\tmax-height: 85vh;\n\t\tanimation-duration: 250ms;\n\t\tanimation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);\n\t\t/* Needs to use a high z-index to have it appear on top of other elements */\n\t\tz-index: ${l1.DANGER};\n\n\t\t&:focus {\n\t\t\toutline: none;\n\t\t}\n\t\t@media (prefers-reduced-motion: no-preference) {\n\t\t\tanimation-name: ${$n};\n\t\t}\n\t`,inner:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tpadding: ${c1.getValue(\"padding\")};\n\t\tmax-height: 100%;\n\t\tgap: ${c1.getValue(\"gap\")};\n\t\twidth: 100%;\n\t`,innerContent:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex-shrink: 1;\n\t\toverflow: auto;\n\t\tgap: ${c1.getValue(\"gap\")};\n\t\twidth: calc(100% + ${c1.getValue(\"padding\")});\n\t\tpadding: calc(${c1.getValue(\"gap\")} / 2) calc(${c1.getValue(\"padding\")} / 2);\n\t\tmargin: calc(${c1.getValue(\"gap\")} / -2) calc(${c1.getValue(\"padding\")} / -2);\n\t`,closeCornerButton:e3.div`\n\t\tposition: absolute;\n\t\tright: calc(${c1.getValue(\"padding\")} / 2);\n\t\ttop: calc(${c1.getValue(\"padding\")} / 2);\n\t`};function H6({defaultOpen:e,closeable:t=!0,trigger:l,open:o,abortText:n,children:r,onOpenChange:a,onOpenAutoFocus:i,onCloseAutoFocus:c,onEscapeKeyDown:p,onPointerDownOutside:u,onInteractOutside:h},f){let g=A(),[C,w]=useState(e),{portalElement:T}=B1();useEffect(function(){o!=null&&w(o);},[o]);function H(z){o==null&&w(z),a?.(z);}return jsxs(l2.Root,{open:C,onOpenChange:H,children:[l!=null?jsx(l2.Trigger,{asChild:!0,children:l}):null,jsxs(l2.Portal,{container:T,children:[jsx(B5.overlay,{}),jsx(B5.content,{ref:f,onOpenAutoFocus:i,onCloseAutoFocus:c,onEscapeKeyDown:p,onPointerDownOutside:u,onInteractOutside:h,children:jsxs(B5.inner,{children:[r,t?jsx(B5.closeCornerButton,{children:jsx(l2.Close,{asChild:!0,children:jsx(E1,{variant:\"neutral\",text:n??g(\"Common.Close\"),icon:\"x\",size:\"medium\"})})}):null]})})]})]})}var On={header:e3(l2.Title)`\n\t\tfont: ${c1.getValue(\"titleFont\")};\n\t\tmargin: 0;\n\t\tpadding-right: ${m.spacing.x3};\n\n\t\t${m.breakpointQuery.medium} {\n\t\t\tfont: ${c1.getValue(\"titleFontAtMediumAndAbove\")};\n\t\t}\n\t`};function w6({children:e},t){return jsx(On.header,{ref:t,children:e})}function L6({children:e},t){return jsx(\"div\",{ref:t,children:e})}var Xn=e3.div`\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex-shrink: 1;\n\toverflow: auto;\n\tgap: ${c1.getValue(\"gap\")};\n\twidth: calc(100% + ${c1.getValue(\"padding\")});\n\tpadding: calc(${c1.getValue(\"gap\")} / 2) calc(${c1.getValue(\"padding\")} / 2);\n\tmargin: calc(${c1.getValue(\"gap\")} / -2) calc(${c1.getValue(\"padding\")} / -2);\n\tfont: ${c1.getValue(\"contentFont\")};\n\tbox-sizing: border-box;\n`;function T6({children:e},t){return jsx(Xn,{ref:t,children:e})}var Jn=e3(l2.Description)`\n\tfont: ${c1.getValue(\"descriptionFont\")};\n\tmargin: 0;\n\n\t${m.breakpointQuery.medium} {\n\t\tfont: ${c1.getValue(\"descriptionFontAtMediumAndAbove\")};\n\t}\n`;function I6({children:e},t){return jsx(Jn,{ref:t,children:e})}function B6({children:e,...t},l){return jsx(l2.Close,{...t,ref:l,children:e})}var qn={Root:forwardRef(H6),Title:forwardRef(w6),Description:forwardRef(I6),Content:forwardRef(T6),Footer:forwardRef(L6),Close:forwardRef(B6)};var E6=new I(\"divider\");var tr={container:e3.div`\n\t\tbackground-color: ${E6.getValue(\"baseBackground\")};\n\n\t\t&[data-orientation='horizontal'] {\n\t\t\tmargin: 16px 0;\n\t\t\theight: 1px;\n\t\t\twidth: 100%;\n\t\t\tmargin: ${({$offset:e})=>e??0} 0;\n\t\t}\n\t\t&[data-orientation='vertical'] {\n\t\t\tmargin: 0 16px;\n\t\t\theight: 100%;\n\t\t\twidth: 1px;\n\t\t\tmargin: 0 ${({$offset:e})=>e??0};\n\t\t}\n\t`};function A6(e,t){let o=e.decorative??!0?{role:\"none\"}:{\"aria-orientation\":e.orientation===\"vertical\"?e.orientation:void 0,role:\"separator\"};return jsx(tr.container,{$offset:e.offset,\"data-orientation\":e.orientation??\"horizontal\",ref:t,...o})}var lr=forwardRef(A6);A6.displayName=\"CellulaDivider\";var G1=new I(\"dropdownMenu\");var rr={item:e3(W2.Item)`\n\t\tall: unset;\n\t\tbox-sizing: border-box;\n\t\tfont: ${G1.getValue(\"itemFont\")};\n\t\tcolor: ${G1.getValue(\"itemFontColor\")};\n\t\tborder-radius: ${G1.getValue(\"itemBorderRadius\")};\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: ${m.spacing.x1_5};\n\t\twidth: 100%;\n\t\tpadding: ${G1.getValue(\"itemPadding\")};\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tmargin-top: ${m.spacing.x0_25};\n\t\ttransition: background 150ms;\n\t\tword-break: break-word;\n\t\tmin-height: ${G1.getValue(\"itemMinHeight\")};\n\t\tz-index: 1;\n\n\t\t&:active {\n\t\t\tbackground: ${G1.getValue(\"itemActiveBackground\")};\n\t\t}\n\n\t\t&[data-disabled] {\n\t\t\topacity: 0.7;\n\t\t\tcursor: not-allowed;\n\t\t\tbackground: ${G1.getValue(\"itemDisabledBackground\")};\n\t\t}\n\n\t\t@media (hover: hover) {\n\t\t\t&[data-highlighted] {\n\t\t\t\tbackground: ${G1.getValue(\"itemHoverBackground\")};\n\t\t\t}\n\t\t}\n\t`};function R6({disabledText:e,children:t,...l},o){let n=jsx(rr.item,{...l,ref:o,children:t});return jsx(Fragment$1,{children:e?jsx(g3,{content:e??\"\",children:n}):n})}var N6={content:e3(W2.Content)`\n\t\t--contentMargin: ${m.spacing.x1};\n\n\t\tz-index: ${l1.high};\n\t\toverflow: hidden;\n\t\tborder: 1px solid ${G1.getValue(\"contentBorderColor\")};\n\t\tborder-radius: ${G1.getValue(\"contentBorderRadius\")};\n\t\tbackground: ${G1.getValue(\"contentBackground\")};\n\t\tbox-shadow: ${G1.getValue(\"contentBoxShadow\")};\n\t\tpadding: ${m.spacing.x0_5} 0;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tmax-height: min(calc(var(--radix-dropdown-menu-content-available-height) - var(--contentMargin)), 400px);\n\t\tmax-width: calc(var(--radix-dropdown-menu-content-available-width));\n\t\toverflow: hidden;\n\n\t\t&[data-side='top'] {\n\t\t\tmargin-bottom: var(--contentMargin);\n\t\t}\n\n\t\t&[data-side='bottom'] {\n\t\t\tmargin-top: var(--contentMargin);\n\t\t}\n\t`,contentInner:e3.div`\n\t\toverflow-x: hidden;\n\t\toverflow-y: auto;\n\t\theight: 100%;\n\t\tpadding: 0 ${m.spacing.x0_5};\n\t`};function $6({trigger:e,children:t,onCloseAutoFocus:l,onEscapeKeyDown:o,onPointerDownOutside:n,onFocusOutside:r,onInteractOutside:a,align:i,...c},p){return jsxs(W2.Root,{...c,children:[jsx(W2.Trigger,{ref:p,asChild:!0,children:e}),jsx(W2.Portal,{children:jsx(N6.content,{collisionPadding:8,loop:!0,onCloseAutoFocus:l,onEscapeKeyDown:o,onPointerDownOutside:n,onFocusOutside:r,onInteractOutside:a,align:i,children:jsx(N6.contentInner,{children:t})})})]})}var Jv={Root:forwardRef($6),Item:forwardRef(R6)};var dr={container:e3.div`\n\t\tdisplay: grid;\n\n\t\t${({$breakPoints:e})=>{let t=e[0];return t??null}}\n\n\t\t${({$breakPoints:e})=>{let t=e[1];return t!=null?css`\n\t\t\t\t\t@media only screen and (min-width: 600px) {\n\t\t\t\t\t\t${t}\n\t\t\t\t\t}\n\t\t\t\t`:null}}\n\n\t\t${({$breakPoints:e})=>{let t=e[2];return t!=null?css`\n\t\t\t\t\t@media only screen and (min-width: 905px) {\n\t\t\t\t\t\t${t}\n\t\t\t\t\t}\n\t\t\t\t`:null}}\n\n\t\t${({$breakPoints:e})=>{let t=e[3];return t!=null?css`\n\t\t\t\t\t@media only screen and (min-width: 1440px) {\n\t\t\t\t\t\t${t}\n\t\t\t\t\t}\n\t\t\t\t`:null}}\n\t`};function pr({children:e,areas:t,columns:l,rows:o,gap:n},r){let a=[null,null,null,null];return Array.isArray(t)?(l=l,o=o,n=n,a[0]=R0({areas:t,columns:l,rows:o,gap:n})):(t=t,l=l,o=o,n=n,t.base!=null&&(a[0]=R0({areas:t.base,columns:l?.base,rows:o?.base,gap:typeof n==\"string\"?n:n?.base})),t.S!=null&&(a[2]=R0({areas:t.S,columns:l?.S,rows:o?.S,gap:typeof n==\"string\"?n:n?.S})),t.M!=null&&(a[2]=R0({areas:t.M,columns:l?.M,rows:o?.M,gap:typeof n==\"string\"?n:n?.M})),t.L!=null&&(a[3]=R0({areas:t.L,columns:l?.L,rows:o?.L,gap:typeof n==\"string\"?n:n?.L}))),jsx(dr.container,{ref:r,$breakPoints:a,children:e})}function R0(e){let t={gridTemplateAreas:e.areas.map(o=>`\"${o}\"`).join(`\n`)};return e.gap&&(t.gap=e.gap),e.columns&&(t.gridTemplateColumns=e.columns.join(\" \")),e.rows&&(t.gridTemplateRows=e.rows.join(\" \")),`\n\t\t${t.gridTemplateAreas?`grid-template-areas: ${t.gridTemplateAreas};`:\"\"}\n\t\t${t.gridTemplateColumns?`grid-template-columns: ${t.gridTemplateColumns};`:\"\"}\n\t\t${t.gridTemplateRows?`grid-template-rows: ${t.gridTemplateRows};`:\"\"}\n\t\t${t.gap?`gap: ${t.gap};`:\"\"}\n\t`}var ur=forwardRef(pr);var O6={fileExcel:{innerHTML:'<path stroke=\"none\" d=\"M0 4C0 1.79086 1.79086 0 4 0H36C38.2091 0 40 1.79086 40 4V32L32 40H4C1.79086 40 0 38.2091 0 36V4Z\" fill=\"#EFEFF1\"/><path stroke=\"none\" d=\"M40 32H34.8593C33.2801 32 32 33.2801 32 34.8593V40L40 32Z\" fill=\"#008040\"/><rect stroke=\"none\" x=\"10\" y=\"10\" width=\"20\" height=\"20\" rx=\"2\" fill=\"#008040\"/><path stroke=\"none\" d=\"M16.9242 24.1552L19.1841 19.9487L17.1331 16.0941H18.6948L20.0199 18.684L21.3176 16.0941H22.8628L20.8118 20.0092L23.0717 24.1552H21.4606L19.9924 21.3673L18.5243 24.1552H16.9242Z\" fill=\"white\"/>',viewBox:\"0 0 40 40\"},filePdf:{innerHTML:'<path stroke=\"none\" d=\"M0 4C0 1.79086 1.79086 0 4 0H36C38.2091 0 40 1.79086 40 4V32L32 40H4C1.79086 40 0 38.2091 0 36V4Z\" fill=\"#EFEFF1\"/><path stroke=\"none\" d=\"M40 32H34.8593C33.2801 32 32 33.2801 32 34.8593V40L40 32Z\" fill=\"#F0423D\"/><rect stroke=\"none\" x=\"10\" y=\"10\" width=\"20\" height=\"20\" rx=\"2\" fill=\"#F0423D\"/><path stroke=\"none\" d=\"M12.9956 23.1415V17.4365H14.9556C15.2706 17.4365 15.5652 17.4686 15.8394 17.5328C16.1135 17.5911 16.3527 17.6932 16.5569 17.839C16.761 17.979 16.9214 18.1686 17.0381 18.4078C17.1606 18.6411 17.2219 18.9299 17.2219 19.274C17.2219 19.6065 17.1606 19.8953 17.0381 20.1403C16.9214 20.3853 16.761 20.5865 16.5569 20.744C16.3527 20.9015 16.1164 21.0182 15.8481 21.094C15.5798 21.1699 15.2939 21.2078 14.9906 21.2078H14.2819V23.1415H12.9956ZM14.2819 20.184H14.9119C15.6119 20.184 15.9619 19.8807 15.9619 19.274C15.9619 18.9765 15.8685 18.7665 15.6819 18.644C15.4952 18.5215 15.2269 18.4603 14.8769 18.4603H14.2819V20.184Z\" fill=\"white\"/><path stroke=\"none\" d=\"M18.208 23.1415V17.4365H19.818C20.2555 17.4365 20.6493 17.4919 20.9993 17.6028C21.3493 17.7136 21.6497 17.8857 21.9005 18.119C22.1513 18.3465 22.3438 18.6382 22.478 18.994C22.6122 19.3499 22.6793 19.7728 22.6793 20.2628C22.6793 20.7528 22.6122 21.1786 22.478 21.5403C22.3438 21.9019 22.1543 22.2024 21.9093 22.4415C21.6643 22.6749 21.3697 22.8499 21.0255 22.9665C20.6872 23.0832 20.308 23.1415 19.888 23.1415H18.208ZM19.4943 22.1003H19.7393C19.9843 22.1003 20.2059 22.0682 20.4043 22.004C20.6026 21.9399 20.7718 21.8378 20.9118 21.6978C21.0518 21.5519 21.1597 21.3624 21.2355 21.129C21.3172 20.8957 21.358 20.6069 21.358 20.2628C21.358 19.9244 21.3172 19.6415 21.2355 19.414C21.1597 19.1807 21.0518 18.9969 20.9118 18.8628C20.7718 18.7228 20.6026 18.6236 20.4043 18.5653C20.2059 18.5069 19.9843 18.4778 19.7393 18.4778H19.4943V22.1003Z\" fill=\"white\"/><path stroke=\"none\" d=\"M23.7622 23.1415V17.4365H27.3585V18.5215H25.0485V19.8428H27.026V20.9278H25.0485V23.1415H23.7622Z\" fill=\"white\"/>',viewBox:\"0 0 40 40\"},fileVideo:{innerHTML:'<path stroke=\"none\" d=\"M0 4C0 1.79086 1.79086 0 4 0H36C38.2091 0 40 1.79086 40 4V32L32 40H4C1.79086 40 0 38.2091 0 36V4Z\" fill=\"#EFEFF1\"/><path stroke=\"none\" d=\"M40 32H34.8593C33.2801 32 32 33.2801 32 34.8593V40L40 32Z\" fill=\"#6A6F7B\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 10C10.8954 10 10 10.8954 10 12V28C10 29.1046 10.8954 30 12 30H28C29.1046 30 30 29.1046 30 28V12C30 10.8954 29.1046 10 28 10H12Z\" fill=\"#6A6F7B\"/><path stroke=\"none\" d=\"M16 15.8143C16 15.0268 16.8681 14.5483 17.534 14.9688L24.1613 19.1545C24.7827 19.5469 24.7827 20.4531 24.1613 20.8455L17.534 25.0312C16.8681 25.4517 16 24.9732 16 24.1857L16 15.8143Z\" fill=\"white\"/>',viewBox:\"0 0 40 40\"},fileWord:{innerHTML:'<path stroke=\"none\" d=\"M0 4C0 1.79086 1.79086 0 4 0H36C38.2091 0 40 1.79086 40 4V32L32 40H4C1.79086 40 0 38.2091 0 36V4Z\" fill=\"#EFEFF1\"/><path stroke=\"none\" d=\"M40 32H34.8593C33.2801 32 32 33.2801 32 34.8593V40L40 32Z\" fill=\"#2166C3\"/><rect stroke=\"none\" x=\"10\" y=\"10\" width=\"20\" height=\"20\" rx=\"2\" fill=\"#2166C3\"/><path stroke=\"none\" d=\"M17.2396 24.1363L15.6615 16.0752H17.0307L18.0204 21.6124L19.2301 16.0752H20.8193L21.9795 21.7058L22.9967 16.0752H24.3384L22.7328 24.1363H21.3141L19.9945 18.1097L18.6858 24.1363H17.2396Z\" fill=\"white\"/>',viewBox:\"0 0 40 40\"},fileImage:{innerHTML:'<path stroke=\"none\" d=\"M0 4C0 1.79086 1.79086 0 4 0H36C38.2091 0 40 1.79086 40 4V32L32 40H4C1.79086 40 0 38.2091 0 36V4Z\" fill=\"#EFEFF1\"/><path stroke=\"none\" d=\"M40 32H34.8593C33.2801 32 32 33.2801 32 34.8593V40L40 32Z\" fill=\"#6A6F7B\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 10C10.8954 10 10 10.8954 10 12V28C10 29.1046 10.8954 30 12 30H28C29.1046 30 30 29.1046 30 28V12C30 10.8954 29.1046 10 28 10H12Z\" fill=\"#6A6F7B\"/><path stroke=\"none\" d=\"M12 27V25.5606L13.9503 23.6103C14.4771 23.0835 15.3448 23.1316 15.8102 23.7133L19.2396 28H13C12.4477 28 12 27.5523 12 27Z\" fill=\"white\"/><circle stroke=\"none\" cx=\"16.5\" cy=\"16.5\" r=\"2.5\" fill=\"white\"/><path stroke=\"none\" d=\"M24.4387 20.8457L28 25.2311V27C28 27.5523 27.5523 28 27 28H21.1605L18.8684 25.1349L22.5141 20.8262C23.0201 20.2283 23.9449 20.2377 24.4387 20.8457Z\" fill=\"white\"/>',viewBox:\"0 0 40 40\"},fileOtherFormat:{innerHTML:'<path stroke=\"none\" d=\"M0 4C0 1.79086 1.79086 0 4 0H36C38.2091 0 40 1.79086 40 4V32L32 40H4C1.79086 40 0 38.2091 0 36V4Z\" fill=\"#EFEFF1\"/><path stroke=\"none\" d=\"M40 32H34.8593C33.2801 32 32 33.2801 32 34.8593V40L40 32Z\" fill=\"#6A6F7B\"/><rect stroke=\"none\" x=\"10\" y=\"10\" width=\"20\" height=\"20\" rx=\"2\" fill=\"#6A6F7B\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14.25 15C14.25 14.5858 14.5858 14.25 15 14.25H25C25.4142 14.25 25.75 14.5858 25.75 15C25.75 15.4142 25.4142 15.75 25 15.75H15C14.5858 15.75 14.25 15.4142 14.25 15Z\" fill=\"white\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14.25 20C14.25 19.5858 14.5858 19.25 15 19.25H25C25.4142 19.25 25.75 19.5858 25.75 20C25.75 20.4142 25.4142 20.75 25 20.75H15C14.5858 20.75 14.25 20.4142 14.25 20Z\" fill=\"white\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14.25 25C14.25 24.5858 14.5858 24.25 15 24.25H25C25.4142 24.25 25.75 24.5858 25.75 25C25.75 25.4142 25.4142 25.75 25 25.75H15C14.5858 25.75 14.25 25.4142 14.25 25Z\" fill=\"white\"/>',viewBox:\"0 0 40 40\"},attachedForm:{innerHTML:'<path stroke=\"none\" d=\"M0 4C0 1.79086 1.79086 0 4 0H36C38.2091 0 40 1.79086 40 4V36C40 38.2091 38.2091 40 36 40H4C1.79086 40 0 38.2091 0 36V4Z\" fill=\"#F2FAFB\"/><path stroke=\"none\" d=\"M16.25 17C15.8358 17 15.5 17.3358 15.5 17.75C15.5 18.1642 15.8358 18.5 16.25 18.5H20C20.4142 18.5 20.75 18.1642 20.75 17.75C20.75 17.3358 20.4142 17 20 17H16.25Z\" fill=\"#3B5C76\"/><path stroke=\"none\" d=\"M15.5 21.5C15.5 21.0858 15.8358 20.75 16.25 20.75H23.75C24.1642 20.75 24.5 21.0858 24.5 21.5C24.5 21.9142 24.1642 22.25 23.75 22.25H16.25C15.8358 22.25 15.5 21.9142 15.5 21.5Z\" fill=\"#3B5C76\"/><path stroke=\"none\" d=\"M16.25 24.5C15.8358 24.5 15.5 24.8358 15.5 25.25C15.5 25.6642 15.8358 26 16.25 26H23.75C24.1642 26 24.5 25.6642 24.5 25.25C24.5 24.8358 24.1642 24.5 23.75 24.5H16.25Z\" fill=\"#3B5C76\"/><path stroke=\"none\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11.75 11C11.75 10.1716 12.4216 9.5 13.25 9.5H22.7285C23.0794 9.5 23.4192 9.62302 23.6887 9.84767L27.7103 13.1989C28.0523 13.4839 28.25 13.9061 28.25 14.3513V29C28.25 29.8284 27.5784 30.5 26.75 30.5H13.25C12.4216 30.5 11.75 29.8284 11.75 29V11ZM13.25 11H21.5V14.375C21.5 14.7892 21.8358 15.125 22.25 15.125H26.375C26.5116 15.125 26.6397 15.0885 26.75 15.0247V29H13.25V11ZM23 11.2263L25.8785 13.625H23V11.2263Z\" fill=\"#3B5C76\"/>',viewBox:\"0 0 40 40\"}};var _6=O6;function o2({type:e,...t}){return jsx(h3,{viewBox:_6[e]?.viewBox,dangerouslySetInnerHTML:D3(_6[e]?.innerHTML),...t})}var U6={ae:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#009E49\" d=\"M.5.5h300v50H.5z\"></path><path fill=\"#FFF\" d=\"M.5 50.5h300v50H.5z\"></path><path fill=\"#000\" d=\"M.5 100.5h300v50H.5z\"></path><path fill=\"#CE1126\" d=\"M.5.5h75v150H.5z\"></path></g>'},ag:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#000\" d=\"M.5.5h300v78.261H.5z\"></path><path fill=\"#0072C6\" d=\"M.5 78.761h300v43.478H.5z\"></path><path fill=\"#CE1126\" d=\"M.5.5v200h300V.5l-150 200z\"></path><path fill=\"#FFF\" d=\"M150.5 200.5l-58.695-78.261h117.391z\"></path><path fill=\"#FCD116\" d=\"M183.109 72.274l27.644-18.471l-32.609 6.486l18.472-27.644l-27.645 18.471l6.487-32.608l-18.472 27.644l-6.486-32.609l-6.486 32.609l-18.471-27.644l6.486 32.608l-27.645-18.471l18.472 27.644l-32.609-6.486l27.644 18.471l-32.608 6.487h130.435z\"></path></g>'},al:{viewBox:\"0 0 300 216\",innerHTML:'<g fill=\"none\"><path fill=\"#E41E20\" d=\"M300 215.143V.857H0v214.286z\"></path><path fill=\"#000\" d=\"M128.612 42.516c-2.084-.035-5.542.664-5.464 2.263c-5.804-.994-6.408 1.403-6.067 3.536c.552-.847 1.225-1.306 1.741-1.393c.774-.128 1.584.121 2.411.629s1.738 1.328 2.143 1.835c-2.048.49-3.631.174-5.237-.107c-.792-.139-1.9-.584-2.558-1.045c-.659-.461-.866-.894-1.902-1.955c-1.221-1.251-2.521-.898-2.116 1.045c.937 1.805 2.502 2.609 4.473 2.933c.949.156 2.362.494 3.964.496c1.602.002 3.401-.231 4.379-.027c-.588.369-1.254 1.006-2.571 1.259c-1.341.258-3.378-.797-4.621-1.085c.158 1.045 1.476 2.022 4.071 2.531c4.265.929 7.809 1.635 10.152 2.906c2.342 1.272 3.82 2.864 4.875 4.112c2.099 2.483 2.21 4.389 2.344 4.808c.432 3.967-.951 6.198-3.522 6.884c-1.286.343-3.569-.303-4.406-1.286c-.837-.983-1.652-2.672-1.42-5.317c.226-1.038 1.412-3.74.402-4.299c-4.655-2.573-10.308-5.175-14.397-6.723c-1.118-.424-2.039 1.096-2.397 1.688c-6.948-.846-13.212-5.548-16.031-10.554c-1.921-3.41-5.086.007-4.554 3.227c.859 3.595 3.598 6.194 6.884 8.036c3.372 1.857 7.588 3.685 11.853 3.589c2.297.435 2.275 3.407-.482 3.964c-5.392.034-9.694-.1-13.754-4.018c-3.08-2.813-4.815.539-3.924 2.438c1.509 5.854 9.86 7.493 18.308 5.598c3.271-.542 1.313 2.964.388 3c-3.53 2.531-9.85 5.008-15.415-.027c-2.547-1.95-4.269-.311-3.321 2.505c2.469 7.34 11.916 5.798 18.402 2.183c1.669-.93 3.185 1.235 1.152 2.88c-8.066 5.635-12.099 5.7-15.737 3.536c-4.555-1.796-4.955 3.255-2.25 4.915c3.007 1.845 10.659.462 16.272-3.067c2.407-1.789 2.515 1.009.991 2.116c-6.662 5.757-9.288 7.274-16.232 6.335c-3.444-.268-3.392 3.977-.683 5.638c3.698 2.268 10.921-1.497 16.527-6.147c2.359-1.261 2.747.807 1.58 3.254c-3.425 4.322-6.64 6.869-9.737 8.049c-3.097 1.18-6.075.992-8.183.268c-2.571-.884-2.894 1.789-1.473 4.219c.856 1.465 4.405 1.934 8.237.576c3.831-1.358 7.944-4.544 10.768-8.277c2.457-2.151 2.151.739 1.031 2.772c-5.655 8.939-10.827 12.256-17.638 11.692c-3.021-.513-3.706 1.836-1.781 4.004c3.38 2.803 7.607 2.715 11.304-.054c3.286-3.169 9.573-9.991 12.871-13.647c2.323-1.852 3.066-.026 2.384 3.737c-.62 2.155-2.172 4.424-6.402 6.08c-2.889 1.649-.719 3.922 1.446 3.964c1.192.023 3.612-1.37 5.464-3.455c2.436-2.743 2.581-4.585 3.924-8.853c1.269-2.081 3.535-1.11 3.536 1.071c-1.087 4.275-2.021 5.042-4.219 6.79c-2.102 1.973 1.464 2.631 2.665 1.821c3.476-2.343 4.745-5.373 5.906-8.129c.838-1.989 3.27-1.025 2.143 2.223c-2.694 7.762-7.121 10.819-14.866 12.388c-.785.14-1.264.603-.991 1.513c1.04 1.079 2.081 2.058 3.121 3.134c-4.789 1.395-8.68 2.178-13.473 3.576c-2.352-1.541-4.251-2.849-6.603-4.393c-.62-1.449-.909-3.662-4.379-2.103c-2.352-1.086-3.436-.688-4.741.402c1.884.07 2.703.575 3.442 1.433c.964 2.54 3.188 2.785 5.464 2.063c1.481 1.247 2.269 2.204 3.75 3.455c-2.764-.094-4.69-.143-7.446-.227c-2.632-2.826-4.732-2.671-6.616-.455c-1.436.221-2.044.252-3.027 1.996c1.545-.634 2.517-.825 3.188-.134c2.798 1.622 4.626 1.26 6.013 0c2.699.165 5.132.305 7.835.482c-.993.844-2.355 1.292-3.348 2.143c-4.055-1.16-6.171.401-6.884 3.71c-.544 1.336-.798 2.71-.563 4.138c.392-1.306 1.023-2.43 2.183-3.134c3.614.918 4.973-.557 5.17-2.719c1.742-1.421 4.369-1.735 6.107-3.174c2.033.651 3.015 1.054 5.063 1.701c.728 2.212 2.375 3.087 5.049 2.518c3.183.1 2.621 1.406 2.879 2.451c.846-1.5.822-2.96-1.138-4.286c-.714-1.938-2.294-2.82-4.366-1.701c-1.95-.554-2.463-1.35-4.406-1.902c4.915-1.566 8.401-1.919 13.313-3.482c1.229 1.16 2.204 1.992 3.442 3.027c.653.39 1.278.488 1.661 0c3.077-4.454 4.452-8.38 7.313-11.317c1.093-1.215 2.474-2.855 4.004-3.254c.765-.2 1.704-.078 2.304.576c.6.654 1.071 1.859.871 3.656c-.287 2.58-.91 3.395-1.634 4.942c-.724 1.547-1.609 2.499-2.518 3.683c-1.818 2.369-4.218 3.748-5.638 4.674c-2.841 1.852-4.042 1.042-6.241.924c-2.843.319-3.599 1.703-1.272 3.616c2.175 1.132 4.13 1.271 5.719.978c1.364-.252 2.961-2.013 4.098-2.96c1.28-1.479 3.403.275 1.955 1.996c-2.631 3.126-5.26 5.188-8.504 5.143c-3.409.459-2.771 2.374-.509 3.308c4.072 1.68 7.748-1.467 9.616-3.536c1.441-1.577 2.464-1.638 2.21.804c-1.431 4.42-3.385 6.128-6.576 6.348c-2.588-.24-2.616 1.757-.723 3.107c4.311 2.984 7.434-2.098 8.893-5.17c1.039-2.771 2.634-1.453 2.799.83c.021 3.051-1.357 5.542-5.049 8.665c2.825 4.5 6.118 9.078 8.946 13.594c2.828-4.515 6.121-9.093 8.946-13.594c-3.692-3.123-5.071-5.614-5.049-8.665c.165-2.284 1.759-3.601 2.799-.83c1.459 3.072 4.582 8.154 8.893 5.17c1.893-1.35 1.865-3.347-.723-3.107c-3.19-.221-5.145-1.928-6.576-6.348c-.254-2.441.769-2.38 2.21-.804c1.868 2.069 5.544 5.216 9.616 3.536c2.262-.934 2.9-2.849-.509-3.308c-3.244.045-5.874-2.016-8.504-5.143c-1.448-1.72.675-3.475 1.955-1.996c1.138.947 2.734 2.708 4.098 2.96c1.589.294 3.544.154 5.719-.978c2.327-1.912 1.57-3.297-1.272-3.616c-2.199.118-3.401.928-6.241-.924c-1.42-.926-3.819-2.305-5.638-4.674c-.909-1.185-1.794-2.136-2.518-3.683c-.724-1.547-1.347-2.362-1.634-4.942c-.2-1.798.271-3.002.871-3.656c.599-.654 1.538-.776 2.304-.576c1.531.4 2.911 2.039 4.004 3.254c2.861 2.937 4.235 6.863 7.313 11.317c.384.488 1.008.39 1.661 0c1.238-1.035 2.212-1.867 3.442-3.026c4.911 1.563 8.397 1.916 13.313 3.482c-1.943.552-2.456 1.348-4.406 1.902c-2.072-1.119-3.653-.237-4.366 1.7c-1.961 1.326-1.985 2.785-1.138 4.286c.258-1.045-.304-2.351 2.879-2.451c2.674.57 4.321-.306 5.049-2.518c2.047-.647 3.03-1.05 5.063-1.701c1.738 1.44 4.365 1.753 6.107 3.174c.197 2.161 1.556 3.637 5.17 2.719c1.159.704 1.79 1.827 2.183 3.134c.235-1.428-.019-2.803-.563-4.138c-.714-3.308-2.83-4.87-6.884-3.71c-.993-.851-2.355-1.299-3.348-2.143c2.703-.177 5.136-.317 7.835-.482c1.388 1.26 3.216 1.622 6.013 0c.67-.69 1.643-.5 3.187.134c-.982-1.744-1.591-1.775-3.026-1.996c-1.884-2.216-3.984-2.37-6.616.455c-2.757.084-4.682.133-7.446.228c1.48-1.251 2.269-2.208 3.75-3.455c2.276.723 4.5.477 5.465-2.063c.738-.858 1.558-1.363 3.442-1.433c-1.305-1.089-2.389-1.488-4.741-.402c-3.47-1.559-3.759.653-4.379 2.103c-2.351 1.543-4.251 2.851-6.602 4.393c-4.793-1.398-8.684-2.182-13.473-3.576c1.039-1.076 2.081-2.055 3.121-3.134c.272-.911-.206-1.374-.991-1.513c-7.746-1.569-12.172-4.626-14.866-12.388c-1.128-3.248 1.304-4.213 2.142-2.223c1.161 2.756 2.43 5.787 5.906 8.129c1.202.81 4.767.152 2.665-1.821c-2.198-1.749-3.131-2.515-4.219-6.79c0-2.181 2.267-3.152 3.536-1.072c1.343 4.268 1.488 6.11 3.924 8.853c1.852 2.086 4.272 3.479 5.464 3.455c2.166-.042 4.336-2.315 1.446-3.964c-4.23-1.656-5.782-3.925-6.402-6.08c-.682-3.763.06-5.589 2.383-3.737c3.297 3.656 9.584 10.479 12.871 13.647c3.697 2.769 7.924 2.857 11.304.054c1.925-2.169 1.239-4.518-1.781-4.004c-6.811.563-11.984-2.753-17.638-11.692c-1.12-2.034-1.426-4.924 1.031-2.772c2.824 3.733 6.937 6.918 10.768 8.277c3.831 1.358 7.38.889 8.237-.576c1.421-2.43 1.099-5.102-1.473-4.219c-2.108.724-5.086.912-8.183-.268c-3.096-1.18-6.311-3.728-9.736-8.05c-1.167-2.448-.779-4.515 1.58-3.254c5.606 4.65 12.828 8.415 16.527 6.147c2.709-1.661 2.761-5.907-.683-5.638c-6.944.938-9.57-.578-16.232-6.335c-1.525-1.108-1.416-3.905.991-2.116c5.614 3.528 13.265 4.911 16.272 3.067c2.705-1.66 2.304-6.711-2.25-4.915c-3.638 2.164-7.671 2.1-15.737-3.536c-2.033-1.645-.518-3.81 1.152-2.88c6.486 3.616 15.932 5.157 18.402-2.183c.947-2.815-.775-4.455-3.321-2.505c-5.566 5.034-11.885 2.558-15.415.027c-.924-.036-2.883-3.542.388-3c8.448 1.895 16.799.256 18.308-5.598c.89-1.898-.844-5.25-3.925-2.437c-4.061 3.917-8.363 4.052-13.754 4.018c-2.757-.557-2.78-3.53-.482-3.964c4.264.095 8.48-1.732 11.853-3.59c3.286-1.842 6.025-4.441 6.884-8.036c.532-3.221-2.633-6.637-4.554-3.228c-2.82 5.006-9.084 9.708-16.031 10.554c-.359-.591-1.28-2.111-2.397-1.688c-4.09 1.549-9.742 4.151-14.397 6.723c-1.011.559.176 3.262.402 4.299c.232 2.645-.583 4.334-1.42 5.317c-.838.983-3.121 1.629-4.406 1.286c-2.571-.686-3.954-2.918-3.522-6.884c.134-.419.244-2.325 2.344-4.808c1.055-1.248 2.532-2.84 4.875-4.112c2.342-1.272 5.887-1.978 10.152-2.906c2.595-.509 3.914-1.486 4.071-2.531c-1.242.288-3.28 1.342-4.621 1.085c-1.318-.254-1.984-.89-2.571-1.259c.979-.205 2.777.028 4.379.027c1.602-.002 3.016-.34 3.965-.496c1.972-.324 3.536-1.128 4.473-2.933c.405-1.943-.894-2.295-2.116-1.045c-1.036 1.061-1.243 1.494-1.902 1.955c-.658.461-1.766.907-2.558 1.045c-1.606.281-3.188.597-5.237.108c.405-.507 1.316-1.327 2.143-1.835c.827-.508 1.636-.758 2.411-.629c.516.087 1.189.546 1.741 1.393c.341-2.133-.264-4.531-6.067-3.536c.078-1.599-3.38-2.299-5.464-2.263c-1.18.02-3.601.711-5.344 1.527c-2.757.835-5.497 1.446-8.705 1.674c1.853 1.556 2.217 1.645 4.085 2.973c-2.829 1.029-5.019 3.161-6 4.554c2.47.118 3.286-.09 4.125.267c-3.442.997-4.999 1.581-6.817 3.402c.643.117 1.6.289 2.008.442c.423.159.248.376-.04.683c-.789.494-3.808 4.051-4.701 4.875c-.893-.824-3.912-4.381-4.701-4.875c-.288-.307-.463-.524-.04-.683c.408-.153 1.365-.325 2.009-.442c-1.818-1.821-3.376-2.405-6.817-3.402c.839-.357 1.654-.149 4.125-.267c-.981-1.392-3.171-3.525-6-4.554c1.868-1.328 2.232-1.417 4.085-2.973c-3.209-.228-5.949-.839-8.705-1.674c-1.756-.814-4.176-1.506-5.356-1.526zm.308 3.737c1.695 0 2.746.581 2.746 1.285c0 .717-1.05 1.3-2.746 1.3c-1.688 0-2.759-.636-2.759-1.353c0-.705 1.071-1.232 2.759-1.232zm42.161 0c1.688 0 2.759.527 2.759 1.232c0 .717-1.071 1.353-2.759 1.353c-1.695 0-2.746-.583-2.746-1.3c0-.704 1.05-1.285 2.746-1.285z\"></path></g>'},am:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#D90012\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#0033A0\" d=\"M.5 50.5h300v50H.5z\"></path><path fill=\"#F2A800\" d=\"M.5 100.5h300v50H.5z\"></path></g>'},ao:{viewBox:\"0 0 300 200\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#CE1126\" fill-rule=\"nonzero\" d=\"M0 0h300v200H0z\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M0 100h300v100H0z\"></path><path fill=\"#F9D616\" fill-rule=\"nonzero\" d=\"M132.883 76.437h13.077L150 64l4.04 12.437h13.077l-10.578 7.686l4.04 12.437L150 88.875l-10.579 7.686l4.04-12.437zm68.867 18.466a51.98 51.98 0 0 1 0 10.194l-9.952-.98c.27-2.738.27-5.496 0-8.234l9.952-.98zm-1.989 20.192a52.01 52.01 0 0 1-3.901 9.418l-8.819-4.714a42.004 42.004 0 0 0 3.151-7.607l9.569 2.903zm-9.564 17.893a52.015 52.015 0 0 1-7.208 7.208l-6.344-7.73a42.04 42.04 0 0 0 5.822-5.822l7.73 6.344zm-15.684 12.872a51.98 51.98 0 0 1-9.418 3.901l-2.902-9.57a41.952 41.952 0 0 0 7.606-3.151l4.714 8.82zm-19.416 5.89c-3.39.333-6.805.333-10.194 0l.98-9.952c2.738.27 5.496.27 8.234 0l.98 9.952zm-20.192-1.989a52.01 52.01 0 0 1-9.418-3.901l4.714-8.82a41.932 41.932 0 0 0 7.607 3.151l-2.903 9.57zm30.19-99.522a51.98 51.98 0 0 1 9.418 3.901l-4.714 8.819a42.024 42.024 0 0 0-7.606-3.151l2.902-9.569zm17.893 9.565a51.96 51.96 0 0 1 7.208 7.208l-7.73 6.344a41.93 41.93 0 0 0-5.822-5.822l6.344-7.73zm12.872 15.684a51.98 51.98 0 0 1 3.901 9.418l-9.569 2.903a42.033 42.033 0 0 0-3.151-7.607l8.819-4.714zm-8.803 74.423l4.862-5.701c2.559 2.477 6.004 4.917 8.503 7.135c2.499 2.217 4.414 4.061 5.964 6.581c2.272 3.693-.279 7.875-3.816 5.42c-1.913-1.328-3.115-4.911-6.044-7.876c-2.171-1.848-3.88-3.785-9.335-4.719c-.262-.045-.339-.599-.134-.84z\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M194.271 148.198a.672.672 0 1 1-1.344 0a.672.672 0 0 1 1.344 0z\"></path><path fill=\"#F9D616\" fill-rule=\"nonzero\" d=\"M155 52.521l-.95 8.9c19.598 2.056 34.95 18.46 34.95 38.6c0 21.528-17.472 39-39 39c-9.387 0-17.868-3.469-24.6-9l-5.7 6.95c8.284 6.801 18.753 11.05 30.3 11.05c26.496 0 48-21.504 48-48c0-24.781-18.888-44.961-43-47.5z\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M154.241 131.897l13.498 7.981l2.934 11.385l15.494-1.174l6.807-7.982l-25.236-17.488z\"></path><path fill=\"#F9D616\" fill-rule=\"nonzero\" d=\"M186.442 149.126c-17.357-11.543-28.394-17.775-45.028-27.233c-6.535-3.716-16.682-13.055-8.678-28.68c.504 10.258 41.046 38.415 58.177 50.658l-4.471 5.255z\"></path><path stroke=\"#000\" stroke-linecap=\"round\" d=\"M144.057 111.68c13.364 12.594 30.193 22.868 45.208 34.224\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M199.217 152.508a.673.673 0 0 1-1.007.583a.67.67 0 0 1-.335-.583a.671.671 0 1 1 1.342 0zm4.346 4.416a.672.672 0 1 1-1.344.001a.672.672 0 0 1 1.344-.001z\"></path></g>'},ar:{viewBox:\"0 0 301 188\",innerHTML:'<g fill=\"none\"><path fill=\"#74ACDF\" d=\"M.5.5h300V188H.5z\"></path><path fill=\"#FFF\" d=\"M.5 63.001h300v62.501H.5z\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M149.593 93.343l-17.394 18.754s-.34.339-.114.567c.226.227.567-.113.567-.113l18.754-17.394m-8.454 3.225c-3.316 1.233-4.28 3.986-7.306 4.932c-3.026.946-4.011 3.231-4.991 4.073c-.981.842-1.979.349-2.003.749c-.023.401 1.175.76 2.689-.146s1.486-2.329 5.168-3.516c3.682-1.188 3.789-3.277 7.215-4.198\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M149.315 93.759l-8.893 23.983s-.185.444.112.567c.296.123.48-.322.48-.322l10.67-23.247m-6.576 6.216c-2.592 2.408-2.429 5.321-4.863 7.352c-2.433 2.032-2.469 4.52-3.053 5.673c-.584 1.153-1.695 1.08-1.563 1.459c.132.379 1.376.252 2.428-1.165s.482-2.72 3.429-5.227c2.947-2.506 2.246-4.477 5.059-6.639\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M149.315 94.741l10.67 23.247s.183.444.48.322c.296-.123.112-.567.112-.567l-8.893-23.984m-.255 9.046c-.13 3.535 2.045 5.48 1.76 8.637c-.284 3.157 1.45 4.942 1.852 6.17c.402 1.228-.435 1.962-.074 2.137c.361.175 1.151-.795.894-2.541c-.258-1.745-1.583-2.264-1.271-6.12c.311-3.856-1.577-4.755-1.117-8.272\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M149.217 94.25l.962 25.561s0 .481.32.481c.321 0 .32-.481.32-.481l.962-25.561m-3.696 8.259c-1.473 3.216-.208 5.845-1.679 8.653c-1.471 2.808-.552 5.121-.65 6.409c-.098 1.288-1.153 1.646-.886 1.946c.267.3 1.368-.294 1.798-2.005c.43-1.711-.596-2.697 1.168-6.141c1.763-3.443.362-4.996 2.133-8.07\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M150.499 92.967l-25.56.962s-.481 0-.481.32c0 .321.481.32.481.32l25.561.962m-8.259-3.696c-3.216-1.473-5.845-.208-8.653-1.679c-2.808-1.47-5.121-.552-6.409-.65c-1.288-.098-1.646-1.153-1.946-.887c-.3.267.294 1.368 2.005 1.798c1.711.43 2.697-.596 6.141 1.168c3.443 1.763 4.996.362 8.07 2.133\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M150.991 93.065l-23.983-8.893s-.444-.185-.567.112c-.123.296.322.48.322.48l23.247 10.67m-6.216-6.576c-2.408-2.592-5.321-2.429-7.352-4.863c-2.032-2.433-4.52-2.469-5.673-3.053c-1.153-.584-1.08-1.695-1.458-1.564c-.379.132-.252 1.377 1.165 2.429c1.417 1.052 2.72.482 5.227 3.429c2.506 2.947 4.477 2.246 6.639 5.059\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M151.407 93.343l-18.754-17.394s-.34-.34-.567-.114c-.227.227.113.567.113.567l17.394 18.754m-3.225-8.454c-1.233-3.316-3.986-4.28-4.932-7.306c-.946-3.026-3.231-4.011-4.073-4.992c-.842-.98-.349-1.979-.749-2.002c-.401-.023-.76 1.175.146 2.689s2.328 1.486 3.516 5.168c1.188 3.682 3.276 3.789 4.198 7.214\"></path><path fill=\"#85340A\" d=\"M142.661 99.246c-3.071 1.456-3.724 3.81-6.727 4.645c2.579-.17 3.565-2.744 6.947-4.022m7.134-6.059l-11.955 12.862l12.861-11.955\"></path><path fill=\"#85340A\" d=\"M148.49 103.325c-1.143 3.202.061 5.328-1.473 8.042c1.703-1.943.58-4.461 2.068-7.756m.76-9.329l.641 17.547l.641-17.548\"></path><path fill=\"#85340A\" d=\"M145.17 101.865c-2.281 2.521-1.983 4.945-4.438 6.866c2.317-1.143 2.243-3.899 4.879-6.375m4.272-8.327l-6.123 16.457l7.307-15.967\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M150.009 93.065l-23.247 10.67s-.444.184-.322.48c.123.296.567.112.567.112l23.984-8.893m-9.046-.255c-3.535-.13-5.48 2.045-8.637 1.76c-3.157-.284-4.942 1.45-6.17 1.852c-1.228.402-1.962-.435-2.137-.074c-.175.361.795 1.151 2.541.894c1.745-.257 2.264-1.582 6.12-1.271c3.856.311 4.754-1.577 8.272-1.117\"></path><path fill=\"#85340A\" d=\"M141.346 95.866c-3.395.17-4.899 2.095-7.993 1.717c2.447.83 4.344-1.171 7.957-1.057m8.91-2.869l-15.966 7.308l16.458-6.123\"></path><path fill=\"#85340A\" d=\"M141.424 92.24c-3.202-1.142-5.327.061-8.041-1.472c1.943 1.703 4.461.58 7.756 2.068m9.329.759l-17.547.641l17.548.641\"></path><path fill=\"#85340A\" d=\"M142.885 88.92c-2.521-2.28-4.945-1.982-6.866-4.437c1.143 2.317 3.899 2.243 6.374 4.879m8.328 4.271l-16.457-6.123l15.967 7.307\"></path><path fill=\"#85340A\" d=\"M145.504 86.411c-1.456-3.072-3.81-3.724-4.645-6.727c.17 2.578 2.744 3.565 4.022 6.947m6.059 7.133L138.078 81.81l11.955 12.861\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M151.685 93.759l-10.67-23.247s-.183-.444-.48-.322c-.296.122-.112.567-.112.567l8.893 23.984m.255-9.046c.13-3.535-2.045-5.48-1.76-8.637c.284-3.157-1.45-4.942-1.852-6.17c-.402-1.228.435-1.962.074-2.137c-.361-.175-1.151.795-.894 2.541c.258 1.746 1.583 2.264 1.271 6.12c-.311 3.856 1.577 4.754 1.118 8.272\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M151.783 94.249l-.962-25.561s0-.481-.32-.481c-.321 0-.32.481-.32.481l-.962 25.561m3.696-8.258c1.473-3.216.208-5.845 1.679-8.653c1.471-2.808.552-5.121.65-6.409c.098-1.288 1.153-1.646.886-1.946c-.267-.3-1.368.294-1.798 2.005c-.43 1.711.596 2.697-1.168 6.141c-1.763 3.443-.362 4.996-2.133 8.07\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M151.685 94.74l8.893-23.983s.185-.444-.112-.567c-.296-.123-.48.322-.48.322l-10.67 23.247m6.576-6.215c2.592-2.408 2.429-5.321 4.863-7.352c2.433-2.032 2.469-4.521 3.053-5.673c.584-1.153 1.695-1.08 1.563-1.458c-.132-.379-1.376-.252-2.428 1.165c-1.053 1.417-.482 2.72-3.429 5.226c-2.947 2.507-2.246 4.477-5.059 6.639\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M151.407 95.156l17.394-18.754s.34-.34.113-.567c-.226-.227-.566.114-.566.114l-18.754 17.394m8.454-3.226c3.316-1.233 4.28-3.986 7.306-4.931c3.026-.946 4.011-3.231 4.991-4.073c.981-.842 1.979-.349 2.003-.749c.023-.401-1.175-.759-2.689.147s-1.486 2.328-5.168 3.516c-3.682 1.188-3.789 3.276-7.215 4.198\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M149.593 95.157l18.754 17.394s.339.341.567.114c.227-.227-.113-.567-.113-.567l-17.394-18.755m3.225 8.455c1.233 3.316 3.986 4.28 4.932 7.306c.946 3.026 3.231 4.011 4.073 4.991c.842.98.349 1.979.749 2.003c.401.023.76-1.176-.146-2.689c-.906-1.514-2.328-1.486-3.516-5.168c-1.188-3.682-3.276-3.788-4.198-7.214\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M150.501 95.533l25.56-.962s.481 0 .481-.32s-.481-.32-.481-.32l-25.561-.962m8.259 3.696c3.216 1.473 5.845.208 8.653 1.679c2.808 1.471 5.121.552 6.409.65c1.288.098 1.646 1.153 1.946.886c.3-.267-.294-1.368-2.005-1.798c-1.711-.43-2.697.596-6.141-1.167c-3.443-1.763-4.996-.362-8.07-2.133\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M150.01 95.435l23.983 8.893s.444.185.567-.112c.123-.297-.322-.48-.322-.48l-23.247-10.671m6.215 6.577c2.408 2.592 5.321 2.429 7.352 4.863c2.032 2.433 4.521 2.469 5.673 3.053c1.153.584 1.08 1.695 1.458 1.563c.379-.132.252-1.376-1.165-2.429c-1.417-1.052-2.72-.482-5.227-3.428c-2.506-2.947-4.477-2.247-6.639-5.059\"></path><path fill=\"#85340A\" d=\"M152.51 85.174c1.142-3.202-.061-5.327 1.472-8.041c-1.703 1.943-.58 4.461-2.068 7.756m-.759 9.329l-.641-17.548l-.641 17.548\"></path><path fill=\"#85340A\" d=\"M155.83 86.634c2.281-2.521 1.983-4.945 4.438-6.866c-2.317 1.143-2.243 3.9-4.879 6.375m-4.272 8.328l6.123-16.457l-7.307 15.967\"></path><path fill=\"#85340A\" d=\"M158.339 89.254c3.071-1.456 3.724-3.81 6.727-4.645c-2.578.17-3.565 2.744-6.947 4.022m-7.134 6.059l11.955-12.861l-12.862 11.955\"></path><path fill=\"#85340A\" d=\"M148.884 85.096c-.17-3.395-2.095-4.898-1.717-7.993c-.83 2.447 1.171 4.344 1.058 7.957m2.867 8.91l-7.307-15.966l6.123 16.458\"></path><path fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.417\" d=\"M150.991 95.435l23.247-10.67s.444-.183.322-.48c-.123-.297-.567-.112-.567-.112l-23.983 8.893m9.045.255c3.535.13 5.48-2.045 8.637-1.76c3.157.284 4.942-1.45 6.17-1.852c1.228-.402 1.962.435 2.137.074c.175-.361-.795-1.151-2.541-.894c-1.745.257-2.264 1.583-6.12 1.271c-3.856-.311-4.755 1.577-8.272 1.118\"></path><path fill=\"#85340A\" d=\"M159.654 92.634c3.395-.17 4.899-2.095 7.993-1.717c-2.447-.83-4.344 1.172-7.957 1.058m-8.91 2.867l15.966-7.307l-16.458 6.123\"></path><path fill=\"#85340A\" d=\"M159.576 96.26c3.202 1.142 5.327-.061 8.041 1.473c-1.943-1.703-4.461-.58-7.756-2.068m-9.329-.76l17.547-.641l-17.548-.641\"></path><path fill=\"#85340A\" d=\"M158.116 99.58c2.521 2.281 4.945 1.983 6.866 4.438c-1.143-2.317-3.899-2.243-6.375-4.879m-8.328-4.272l16.458 6.123l-15.968-7.307\"></path><path fill=\"#85340A\" d=\"M155.496 102.089c1.456 3.071 3.81 3.724 4.645 6.727c-.17-2.578-2.744-3.565-4.022-6.947m-6.059-7.134l12.862 11.955l-11.955-12.862\"></path><path fill=\"#85340A\" d=\"M152.116 103.404c.17 3.395 2.095 4.899 1.717 7.993c.83-2.447-1.172-4.344-1.058-7.958m-2.867-8.909l7.307 15.966l-6.123-16.458\"></path><circle cx=\"150.5\" cy=\"94.25\" r=\"10.417\" fill=\"#F6B40E\" stroke=\"#85340A\" stroke-width=\"0.563\"></circle><path fill=\"#843511\" d=\"M154.051 92.022c-.711 0-1.392.308-1.793.949c.801.721 2.571.799 3.773-.082a2.75 2.75 0 0 0-1.98-.867zm-.011.165c.692-.013 1.339.305 1.43.621c-.801.881-2.082.805-2.883.164c.35-.561.914-.776 1.453-.785z\"></path><path fill=\"#85340A\" d=\"M154.186 91.527c-1.041 0-1.282.241-1.763.641c-.481.401-.721.32-.801.401c-.08.081 0 .32.16.24c.16-.08.481-.24.961-.641c.481-.401.961-.401 1.442-.401c1.443 0 2.244 1.202 2.403 1.121c.161-.079-.8-1.361-2.402-1.361z\"></path><path fill=\"#85340A\" d=\"M157.07 92.007c-1.843-1.603-4.166-1.843-5.449-.641c-.314.42-.515.87-.597 1.339c-.162.913.124 1.898.839 2.908c-.081 0-.241.08-.321.16c-.636-1.217-.861-2.466-.653-3.654a5.19 5.19 0 0 1 .251-.913c1.763-1.442 4.166-1.603 5.929.802h.001v-.001z\"></path><circle cx=\"154.026\" cy=\"92.806\" r=\"1\" fill=\"#85340A\"></circle><path fill=\"#85340A\" d=\"M156.11 93.29c-1.362 1.042-2.725.962-3.526.481c-.801-.481-.801-.641-.641-.641c.16 0 .32.16.961.48c.641.321 1.603.321 3.205-.32h.001zm-7.204 2.4a.722.722 0 1 0 .727 1.125c.277.209.661.231.867.234c.031.001.072 0 .094 0c.205-.004.59-.026.867-.234a.722.722 0 1 0 .727-1.125a.482.482 0 0 1 .316.457c0 .266-.214.48-.48.48a.484.484 0 0 1-.48-.457c-.078.156-.388.621-.996.645c-.608-.024-.918-.488-.996-.645a.48.48 0 0 1-.96-.023a.477.477 0 0 1 .314-.457zm.784 2.134c-.802 0-1.119.726-1.84 1.207c.401-.16.716-.476 1.277-.797c.561-.32 1.039.07 1.359.07h.012c.32 0 .798-.391 1.359-.07c.561.321.888.637 1.289.797c-.721-.481-1.05-1.207-1.852-1.207c-.16 0-.477.086-.797.246h-.012c-.318-.16-.635-.246-.795-.246z\"></path><path fill=\"#85340A\" d=\"M149.42 98.772c-.316.014-.735.077-1.336.258c1.443-.32 1.761.164 2.402.164h.012c.641 0 .959-.484 2.402-.164c-1.603-.481-1.921-.164-2.402-.164h-.012c-.3 0-.538-.117-1.066-.094z\"></path><path fill=\"#85340A\" d=\"M148.156 99.02c-.093.001-.195.002-.305.012c1.683.16.874 1.125 2.636 1.125h.012c1.763 0 .966-.965 2.648-1.125c-1.763-.16-1.205.879-2.648.879h-.012c-1.352 0-.934-.909-2.331-.891zm3.788 2.602a1.444 1.444 0 0 0-2.885 0a1.483 1.483 0 0 1 2.885 0zm-7.92-9.615c1.843-1.603 4.166-1.843 5.449-.641c.314.42.515.87.597 1.339c.162.913-.124 1.898-.839 2.908c.081 0 .241.08.321.16c.636-1.217.861-2.466.653-3.654a5.19 5.19 0 0 0-.251-.913c-1.763-1.442-4.166-1.603-5.929.802h-.001v-.001z\"></path><path fill=\"#85340A\" d=\"M146.908 91.527c1.041 0 1.282.241 1.763.641c.481.401.721.32.801.401c.08.081 0 .32-.16.24c-.16-.08-.481-.24-.961-.641c-.481-.401-.961-.401-1.442-.401c-1.443 0-2.244 1.202-2.403 1.121c-.161-.079.8-1.361 2.402-1.361z\"></path><path fill=\"#843511\" d=\"M146.858 92.022c-.711 0-1.392.308-1.793.949c.801.721 2.571.799 3.773-.082a2.751 2.751 0 0 0-1.98-.867zm-.011.165c.692-.013 1.339.305 1.43.621c-.801.881-2.082.805-2.883.164c.35-.561.914-.776 1.453-.785z\"></path><circle cx=\"146.952\" cy=\"92.806\" r=\"1\" fill=\"#85340A\"></circle><path fill=\"#85340A\" d=\"M144.984 93.29c1.362 1.042 2.725.962 3.526.481c.801-.481.801-.641.641-.641c-.16 0-.32.16-.961.48c-.641.321-1.603.321-3.205-.32h-.001z\"></path></g>'},at:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#ED2939\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" d=\"M.5 67.166h300v66.667H.5z\"></path></g>'},au:{viewBox:\"0 0 301 151\",innerHTML:'<defs><path id=\"IconifyId-17ca80ef3d5-b8efe2-183\" d=\"M.5.5h150v75H.5z\"></path><path id=\"IconifyId-17ca80ef3d5-b8efe2-184\" d=\"M.5.5V38h175v37.5h-25L.5.5zm150 0h-75V88H.5V75.5l150-75z\"></path></defs><g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#00008B\" fill-rule=\"nonzero\" d=\"M.5.5h300v150H.5z\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-185\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-183\"></use></mask><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#FFF\" stroke-width=\"17.578\" d=\"M.5.5l150 75m0-75l-150 75\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-185)\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-186\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-184\"></use></mask><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"red\" stroke-width=\"9.375\" d=\"M.5.5l150 75m0-75l-150 75\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-186)\"></path><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#FFF\" stroke-width=\"23.438\" d=\"M75.5.5V88M.5 38h175\"></path><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"red\" stroke-width=\"14.063\" d=\"M75.5.5v80.273M.5 38h155.273\"></path><path fill=\"#00008B\" fill-rule=\"nonzero\" d=\"M.5 75.5h150V.5h50v100H.5z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M75.5 90.5l4.339 13.491l13.252-5.019l-7.842 11.803l12.187 7.232l-14.118 1.228l1.944 14.037L75.5 123l-9.762 10.272l1.944-14.037l-14.118-1.228l12.187-7.232l-7.842-11.803l13.252 5.019zm150 24.285l2.066 6.424l6.311-2.39l-3.734 5.621l5.803 3.444l-6.722.585l.926 6.684l-4.649-4.891l-4.649 4.891l.926-6.684l-6.722-.585l5.803-3.444l-3.734-5.621l6.31 2.39zM188 55.411l2.066 6.424l6.311-2.39l-3.734 5.621l5.803 3.444l-6.722.585l.926 6.684l-4.65-4.892l-4.649 4.891l.926-6.684l-6.723-.585l5.803-3.444l-3.734-5.621l6.311 2.39zm37.5-40.625l2.066 6.424l6.311-2.39l-3.734 5.62l5.803 3.444l-6.722.585l.926 6.684l-4.649-4.891l-4.649 4.891l.926-6.684l-6.722-.585l5.803-3.444l-3.734-5.62l6.31 2.39zm33.333 30.625l2.066 6.424l6.311-2.39l-3.734 5.621l5.803 3.444l-6.723.585l.926 6.684l-4.649-4.891l-4.649 4.891l.926-6.684l-6.723-.585l5.803-3.444l-3.734-5.621l6.311 2.39zM240.5 75.5l1.633 4.003l4.311.316l-3.302 2.79l1.032 4.198l-3.674-2.279l-3.674 2.279l1.032-4.198l-3.302-2.79l4.311-.316z\"></path></g>'},az:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#0098C3\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#E00034\" d=\"M.5 50.5h300v50H.5z\"></path><path fill=\"#00AE65\" d=\"M.5 100.5h300v50H.5z\"></path><circle cx=\"145.75\" cy=\"75.5\" r=\"22.5\" fill=\"#FFF\"></circle><circle cx=\"150.5\" cy=\"75.5\" r=\"18.75\" fill=\"#E00034\"></circle><path fill=\"#FFF\" d=\"M179.595 84.333l-6.449-3.06L170.759 88l-2.396-6.724l-6.445 3.069l3.06-6.449l-6.727-2.387l6.724-2.396l-3.069-6.445l6.449 3.06L170.742 63l2.396 6.724l6.445-3.069l-3.06 6.449l6.728 2.387l-6.724 2.396z\"></path></g>'},ba:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#002395\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FECB00\" d=\"M80 .5h150v150z\"></path><path fill=\"#FFF\" d=\"M61.376 10.341L53 4.255l-8.376 6.086L47.831.5h10.338zm23.927 2.818l-8.376 6.086l3.199 9.846l-8.376-6.085l-8.376 6.085l3.2-9.846l-8.376-6.086h10.353l3.199-9.846l3.2 9.846zm18.75 18.75l-8.376 6.086l3.199 9.846l-8.376-6.085l-8.376 6.085l3.2-9.846l-8.376-6.086h10.353l3.199-9.846l3.2 9.846zm18.75 18.759l-8.376 6.086l3.199 9.847l-8.376-6.086l-8.376 6.086l3.2-9.847l-8.376-6.086h10.353l3.199-9.846l3.2 9.846zm18.752 18.748l-8.376 6.086l3.2 9.846l-8.376-6.085l-8.376 6.085l3.199-9.846l-8.376-6.086h10.353l3.2-9.846l3.199 9.846zm18.744 18.751l-8.376 6.086l3.2 9.846l-8.376-6.086l-8.376 6.086l3.199-9.846l-8.376-6.086h10.353l3.2-9.847l3.199 9.847zm18.758 18.756l-8.375 6.085l3.199 9.847l-8.376-6.086l-8.376 6.086l3.199-9.847l-8.376-6.085h10.354l3.199-9.847l3.199 9.847zm18.749 18.741l-8.376 6.086l3.2 9.846l-8.376-6.085l-8.376 6.085l3.199-9.846l-8.376-6.086h10.354l3.199-9.846l3.199 9.846zm18.747 18.745H206.2l-3.2-9.846l-3.199 9.846h-10.353l8.376 6.086h10.353z\"></path></g>'},bb:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#00267F\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFC726\" d=\"M100.5.5h100v200h-100z\"></path><path fill=\"#000\" d=\"M150.5 52.05c3.25 8.862 6.563 18.088 13.65 25.15c-2.2-.725-6.05-1.375-8.525-1.313v37.275l10.525 1.563c.375-.037.5-.625.5-1.425c1.012-11.575 3.75-21.3 6.9-31.362c.225-1.375 4.213-6.625 1.138-5.7c-.375.05-4.487 1.725-3.838.925c5.6-5.8 13.788-9.975 21.738-11.212c.7-.175 1.112.175.487.987c-10.55 16.237-19.375 35.4-19.3 58.138c-4.1 0-14.038-2.425-18.15-2.425v26.3h-5.188l-1.188-73.45L150.5 52.05z\"></path><path fill=\"#000\" d=\"M150.5 52.05c-3.25 8.862-6.563 18.088-13.65 25.15c2.2-.725 6.05-1.375 8.525-1.313v37.275l-10.525 1.563c-.375-.037-.5-.625-.5-1.425c-1.012-11.575-3.75-21.3-6.9-31.362c-.225-1.375-4.213-6.625-1.138-5.7c.375.05 4.487 1.725 3.838.925c-5.6-5.8-13.788-9.975-21.738-11.212c-.7-.175-1.112.175-.487.987c10.55 16.237 19.375 35.4 19.3 58.138c4.1 0 14.038-2.425 18.15-2.425v26.3h5.188l1.188-73.45L150.5 52.05z\"></path></g>'},bd:{viewBox:\"0 0 301 181\",innerHTML:'<g fill=\"none\"><path fill=\"#006A4E\" d=\"M.5.5h300v180H.5z\"></path><circle cx=\"135.5\" cy=\"90.5\" r=\"60\" fill=\"#F42A41\"></circle></g>'},be:{viewBox:\"0 0 301 261\",innerHTML:'<g fill=\"none\"><path fill=\"#000\" d=\"M.5.5h300v260H.5z\"></path><path fill=\"#FAE042\" d=\"M100.5.5h100v260h-100z\"></path><path fill=\"#ED2939\" d=\"M200.5.5h100v260h-100z\"></path></g>'},bf:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#009E49\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#EF2B2D\" d=\"M.5.5h300v100H.5z\"></path><path fill=\"#FCD116\" d=\"M118.798 90.199l19.593 14.235l-7.484 23.033l19.593-14.235l19.593 14.235l-7.484-23.033l19.593-14.235h-24.218L150.5 67.166l-7.374 23.033z\"></path></g>'},bg:{viewBox:\"0 0 301 181\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.5h300v180H.5z\"></path><path fill=\"#00966E\" d=\"M.5 60.5h300v120H.5z\"></path><path fill=\"#D62612\" d=\"M.5 120.5h300v60H.5z\"></path></g>'},bh:{viewBox:\"0 0 301 181\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.5h300v180H.5\"></path><path fill=\"#CE1126\" d=\"M300.5.5h-226l46 18l-46 18l46 18l-46 18l46 18l-46 18l46 18l-46 18l46 18l-46 18h226\"></path></g>'},bi:{viewBox:\"0 0 301 181\",innerHTML:'<defs><path id=\"IconifyId-17ca80ef3d5-b8efe2-187\" d=\"M.5.5h300v180H.5z\"></path></defs><g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#CE1126\" fill-rule=\"nonzero\" d=\"M.5.5h300l-300 180h300z\"></path><path fill=\"#1EB53A\" fill-rule=\"nonzero\" d=\"M.5.5v180l300-180v180z\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-188\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-187\"></use></mask><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#FFF\" stroke-width=\"22.5\" d=\"M.5.5l300 180m0-180l-300 180\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-188)\"></path><circle cx=\"150.5\" cy=\"90.5\" r=\"51\" fill=\"#FFF\" fill-rule=\"nonzero\"></circle><path fill=\"#1EB53A\" fill-rule=\"nonzero\" d=\"M140.108 58.1l3.464 6l-3.464 6h6.928l3.464 6l3.464-6h6.928l-3.464-6l3.464-6h-6.928l-3.464-6l-3.464 6z\"></path><path fill=\"#CE1126\" fill-rule=\"nonzero\" d=\"M141.979 59.18l2.84 4.92l-2.84 4.92h5.681l2.84 4.92l2.841-4.92h5.681l-2.841-4.92l2.841-4.92h-5.681l-2.841-4.92l-2.84 4.92z\"></path><path fill=\"#1EB53A\" fill-rule=\"nonzero\" d=\"M117.233 97.475l3.464 6l-3.464 6h6.928l3.464 6l3.464-6h6.928l-3.464-6l3.464-6h-6.928l-3.464-6l-3.464 6z\"></path><path fill=\"#CE1126\" fill-rule=\"nonzero\" d=\"M119.104 98.555l2.84 4.92l-2.84 4.92h5.681l2.84 4.92l2.841-4.92h5.681l-2.841-4.92l2.841-4.92h-5.681l-2.841-4.92l-2.84 4.92z\"></path><path fill=\"#1EB53A\" fill-rule=\"nonzero\" d=\"M163.184 97.731l3.464 6l-3.464 6h6.929l3.464 6l3.464-6h6.928l-3.464-6.001l3.464-5.999h-6.928l-3.464-6l-3.464 6z\"></path><path fill=\"#CE1126\" fill-rule=\"nonzero\" d=\"M165.055 98.811l2.841 4.92l-2.841 4.92h5.681l2.841 4.919l2.84-4.919h5.681l-2.84-4.92l2.84-4.92h-5.681l-2.84-4.92l-2.841 4.919z\"></path></g>'},bj:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#FCD116\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#E8112D\" d=\"M.5 100.5h300v100H.5z\"></path><path fill=\"#008751\" d=\"M.5.5h120v200H.5z\"></path></g>'},bn:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#F7E017\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFF\" d=\"M300.5 73.416v35.417l-300-62.5V10.917z\"></path><path fill=\"#000\" d=\"M300.5 108.833v31.25l-300-62.5v-31.25z\"></path><path fill=\"#CF1126\" d=\"M145.447 119.191c-4.035-.534-7.732-1.819-10.302-3.578c-.498-.341-.965-.62-1.039-.62c-.074 0-.134.378-.135.847c-.001 1.329-.535 1.996-1.877 2.344c-1.283.333-3.241-.339-4.828-1.656c-1.644-1.364-3.542-2.405-5.148-2.823c-1.323-.344-3.078-.289-4.348.136c-.589.198-1.261.477-1.494.62c-.232.143-.491.261-.576.261c-.225 0-.193-1.428.043-1.883c.31-.599 1.075-1.188 1.965-1.512c.45-.164.819-.376.819-.47c0-.094-.152-.437-.337-.761c-.605-1.058-.357-2.083.698-2.888c1.08-.825 2.906-.967 4.521-.353c.407.155.786.281.841.281c.212 0 .082-.296-.502-1.15c-.676-.988-.81-1.475-.725-2.649c.108-1.489 1.321-2.705 2.806-2.812c1.213-.088 1.968.319 3.756 2.024c5.345 5.096 11.155 7.904 17.932 8.665c1.71.192 5.151.089 7.17-.215c6.098-.918 12.242-3.984 17.04-8.504c1.329-1.252 1.968-1.583 3.058-1.588c.948-.003 1.612.302 2.29 1.053c.62.686.829 1.339.763 2.382c-.043.67-.152.998-.55 1.646c-.588.957-.488 1.045.674.594c1.571-.611 3.506-.329 4.551.663c.919.872 1.006 1.745.293 2.93c-.261.433-.474.84-.474.904c0 .119.198.175 1.151.328c1.248.2 1.964 1.129 1.964 2.545c0 .424-.053.77-.117.77s-.537-.173-1.05-.385c-1.456-.6-2.283-.755-3.981-.745c-1.295.008-1.741.069-2.642.363c-1.383.451-2.86 1.322-4.064 2.396c-1.326 1.183-2.161 1.556-3.454 1.545c-1.2-.011-2.02-.361-2.453-1.046c-.232-.366-.264-.59-.208-1.417c.037-.54.03-.982-.015-.982s-.513.297-1.039.66c-1.382.952-2.265 1.422-3.848 2.048c-4.826 1.913-11.794 2.739-17.129 2.032z\"></path><path fill=\"#FC0\" d=\"M167.734 112.947c.86-.438 1.985-1.585 2.447-2.491c.368-.722.419-.971.463-2.235c.041-1.165.006-1.508-.192-1.897c-.221-.435-.291-.474-.846-.474c-.536 0-.639.052-.915.46c-.397.589-.437 1.86-.073 2.309c.227.281.259.284.741.083c.67-.28.783-.266.782.094c-.004.92-1.322 2.692-2.705 3.635c-.372.254-.706.538-.742.632c-.1.262.411.205 1.04-.116z\"></path><path fill=\"#FFD42A\" d=\"M148.635 117.962c.832-.275 1.305-.778 1.645-1.749c.169-.484.284-.987.254-1.118c-.071-.31-.429-.294-.825.036c-.271.226-.304.342-.226.803c.197 1.168-.217 1.458-2.427 1.695c-.218.023-.852-.014-1.409-.083c-1.05-.13-1.425-.026-1.044.289c.115.096.408.225.649.287c.587.151 2.751.049 3.383-.16zm4.577-.194c.125-.113.555-.311.954-.44c.533-.172.808-.356 1.033-.69c.649-.965.528-1.796-.425-2.918c-.516-.608-.746-.591-1.158.084c-.356.584-.348.621.165.754c.268.07.526.267.668.512c.559.965.394 1.564-.432 1.57c-.751.006-.957.112-1.16.598c-.105.251-.191.52-.191.597c.001.204.285.17.546-.067zm-1.501-1.091c.141-.384.19-1.073.175-2.479c-.011-1.071-.054-1.981-.094-2.021c-.125-.125-.742.272-.823.529c-.042.133.026.442.152.684c.192.371.217.719.158 2.18c-.075 1.847.046 2.157.432 1.107z\"></path><path fill=\"#FFD42A\" d=\"M148.186 115.798c.074-.344.171-1.047.215-1.562c.044-.515.148-1.166.232-1.447c.213-.72-.001-.91-.569-.506l-.425.303l.089 1.035c.08.933-.067 2.674-.283 3.349c-.057.178.026.133.262-.143c.189-.222.405-.685.479-1.029zm-3.127.502c.496-.454.598-.737.786-2.187c.097-.745.215-1.553.263-1.795c.108-.542-.106-.579-.683-.118c-.377.302-.392.349-.25.811c.188.612.02 2.127-.288 2.597c-.234.357-.714.438-1.166.196c-.198-.106-.24-.231-.178-.54c.115-.577-.216-.645-1.13-.231c-.856.387-1.185.353-1.069-.11c.047-.186-.003-.371-.126-.473c-.188-.156-.372-.152-1.623.03c-.209.031-.271-.038-.271-.299c0-.186-.042-.403-.093-.482c-.053-.082-.658-.153-1.408-.165c-1.445-.024-2.469-.263-3.179-.742c-.725-.488-.789-.873-.304-1.814c.225-.436.48-1.012.566-1.279c.086-.267.339-.659.56-.872c.222-.212.403-.444.403-.514c0-.18-.912-.012-1.293.238c-.259.17-.303.289-.242.661c.082.505-.238 1.255-.841 1.971c-.662.787-1.637.464-2.932-.972c-.488-.541-.671-.667-.796-.544c-.233.229-.05 1.027.314 1.368c.409.382 1.983 1.114 2.403 1.117c.423.003.557.101.813.591c.324.621 2.388 1.25 4.402 1.341c.637.029.681.054.746.437c.069.403.077.407 1.051.446c.978.04 1.119.107.828.398a.38.38 0 0 0-.07.372c.069.181.229.205.931.139c.466-.044.97-.108 1.12-.144c.206-.049.322.044.476.378c.156.34.313.462.677.527c.668.12 1.234.001 1.603-.337z\"></path><path fill=\"#FC0\" d=\"M163.147 115.555c1.218-.6 1.937-1.274 2.399-2.252c.219-.463.398-.902.398-.976c0-.168-.6-.449-.959-.449s-.433-.246-.279-.933c.15-.668-.03-1.506-.323-1.506c-.107 0-.295.155-.42.345c-.193.294-.202.419-.061.847c.209.634.045 1.107-.523 1.511c-.269.191-.416.412-.416.625c0 .181.023.33.051.33c.028 0 .324-.153.658-.34l.607-.34l.358.282c.197.155.358.407.358.561c0 .74-2.114 1.988-3.565 2.104c-.772.062-.905.036-1.173-.232c-.218-.218-.281-.402-.227-.661l.167-.799c.134-.646-.145-.558-.623.196c-.394.622-.512 1.287-.289 1.638c.18.284 1.385.557 2.237.506c.534-.031 1.063-.18 1.625-.457z\"></path><path fill=\"#CF1126\" d=\"M169.115 107.747c-.323-.492-.129-1.085.354-1.085c.286 0 .341.07.376.481c.029.343-.036.55-.226.723c-.259.234-.276.23-.504-.119z\"></path><path fill=\"#FC0\" d=\"M171.28 111.019c.765-.765 1.091-1.697 1.095-3.135l.003-1.082l.632-.3c.823-.391 1.603-1.172 1.603-1.605c0-.445-.198-.422-.557.063c-.26.352-.609.565-1.882 1.15c-.322.148-.343.227-.415 1.573c-.084 1.552-.296 2.134-1.162 3.193c-.53.648-.551.731-.18.731c.151 0 .54-.264.863-.588z\"></path><path fill=\"#FFD42A\" d=\"M132.609 109.993c.231-.292.577-.886.768-1.321c.191-.435.476-.928.632-1.097c.367-.395.162-.639-.43-.509c-.313.069-.438.185-.492.454c-.177.884-.497 1.787-.782 2.208c-.517.764-.529.795-.317.795c.11 0 .39-.239.621-.53z\"></path><path fill=\"#FC0\" d=\"M162.929 110.151c.074-.222-.351-.381-.532-.199c-.078.078-.099.211-.046.296c.119.194.503.13.578-.097z\"></path><path fill=\"#FFD42A\" d=\"M129.777 108.693c.691-.35 1.351-1.167 1.351-1.673c0-.331-.555-.696-1.059-.696c-.223 0-.643.183-.979.426c-1.051.761-2.174.606-2.789-.386c-.506-.816-1.034-1.26-1.5-1.26c-.582 0-.606.365-.036.564c.275.096.504.329.693.704c.554 1.102.877 1.299 2.35 1.427l.948.082l.042.576c.023.317.101.576.174.576c.073 0 .435-.153.805-.34z\"></path><path fill=\"#CF1126\" d=\"M129.551 107.746c-.121-.315.049-.61.353-.61c.278 0 .344.205.193.599c-.104.272-.444.279-.546.011z\"></path><path fill=\"#FC0\" d=\"M174.444 107.17c.074-.222-.35-.381-.532-.199c-.078.078-.099.211-.046.296c.119.194.503.13.578-.097z\"></path><path fill=\"#CF1126\" d=\"M147.655 109.91a50.543 50.543 0 0 0-1.423-.2c-3.453-.452-7.561-1.879-10.572-3.673c-6.795-4.048-11.764-11.071-13.327-18.836c-1.787-8.875-.514-16.51 3.679-22.074c.764-1.013 1.569-1.851 1.42-1.477c-.045.112-.363.888-.708 1.724c-1.938 4.703-2.179 9.674-.737 15.21c.571 2.192 1.107 3.6 2.116 5.557c3.533 6.853 10.151 11.908 17.452 13.329c.596.116 1.724.334 2.506.484c2.056.395 3.175.355 5.954-.211c2.598-.53 4.691-1.158 6.574-1.975c5.716-2.479 10.467-7.21 12.903-12.849c1.667-3.86 2.451-9.526 1.92-13.886c-.321-2.634-1.15-5.518-2.173-7.552c-.215-.428-.332-.779-.26-.779c.225 0 1.774 1.894 2.68 3.277c1.997 3.047 3.347 6.831 3.83 10.73c.397 3.206.054 8.34-.756 11.318c-1.664 6.117-5.304 11.926-9.707 15.491c-4.666 3.777-9.621 5.734-16.02 6.325c-1.342.125-4.84.168-5.351.067z\"></path><path fill=\"#FC0\" d=\"M159.472 107.303c.129-.112.274-.413.322-.67c.048-.256.156-.485.24-.508l.724-.197c.385-.104.689-.308.928-.622c.543-.712.492-1.631-.213-3.801a144.22 144.22 0 0 1-.668-2.091c-.13-.443-.245-.427-.64.085l-.327.424l.34.404c.45.535 1.177 2.735 1.198 3.625c.011.475-.063.83-.226 1.078c-.262.4-.127.392-2.082.125c-.434-.059-.71-.009-1.122.206c-.724.377-1.05.362-1.241-.058c-.237-.52-.448-.322-.448.421v.666h1.482l.086.522c.048.287.166.571.263.631c.248.154 1.102.005 1.384-.24z\"></path><path fill=\"#D40000\" d=\"M158.413 106.664c-.282-.43-.162-.746.282-.746c.244 0 .384.099.474.338c.273.717-.337 1.047-.756.408z\"></path><path fill=\"#FC0\" d=\"M141.268 106.049c.427-.184.935-.57 1.361-1.035l.68-.742l.785.095c.972.118.988.127.988.592c0 .369.024.381.914.465c.503.048 1.166.087 1.474.087c.395.001.614.077.745.26c.175.244.276.251 1.743.119c1.371-.123 1.641-.112 2.259.098c.439.149.922.214 1.289.173c1.05-.118 2.502-.982 2.712-1.613c.025-.076.406-.21.845-.298c1.061-.212 1.109-.44.12-.563a7.12 7.12 0 0 1-1.433-.355c-.359-.142-.851-.258-1.092-.258c-.533 0-1.041.33-1.041.675c0 .225.081.245.711.181c.594-.06.773-.024 1.085.224c.206.163.339.353.295.423c-.14.226-1.376.79-1.924.878c-.366.058-.664.017-.953-.132c-.48-.248-1.187-.287-1.32-.071c-.058.093-.207.035-.415-.16l-.326-.306l-.739.306c-.748.31-1.02.293-1.02-.063c0-.163-.22-.182-1.321-.11c-1.215.078-1.34.063-1.567-.19c-.21-.234-.22-.317-.071-.555c.139-.222.14-.315.009-.447c-.131-.131-.297-.132-.778-.003c-1.207.323-1.555.144-1.555-.799c0-.825-.674-1.179-1.348-.707c-1.107.776-1.394 1.693-.642 2.052c.553.264.412.576-.457 1.01c-1.243.622-2.338.543-4.423-.32c-.513-.213-.645-.127-.527.341c.115.459.534.711 1.58.95c1.122.256 2.481.174 3.357-.202z\"></path><path fill=\"#CF1126\" d=\"M142.277 103.392c-.052-.137.012-.294.167-.408c.215-.157.282-.156.447.009c.107.107.157.29.112.408c-.107.281-.617.275-.726-.009z\"></path><path fill=\"#FC0\" d=\"M140.52 103.75c.736-.467.719-.431.825-1.728c.074-.914.062-.982-.187-.982c-.359 0-.547.395-.547 1.149c0 .483-.076.7-.332.957c-.612.612-2.134.332-2.325-.427c-.066-.262.018-.497.337-.95c.665-.943.514-1.173-.3-.458c-.559.491-.66.506-.554.083c.098-.39-.105-.545-.562-.43c-.234.059-.359.206-.416.489c-.056.277-.182.43-.403.485c-.369.093-.998-.257-.998-.555c0-.221.941-1.37 2.151-2.626c.456-.473.829-.915.829-.982c0-.067-.244-.122-.542-.122c-.436 0-.542.049-.542.25c0 .138-.61.937-1.355 1.776c-1.554 1.75-1.683 2.114-.914 2.582c.62.378 1.412.349 2.034-.074l.506-.343v.623c0 .796.159 1.082.783 1.411c.784.415 1.733.366 2.512-.128zm22.377-.757c.001-.86.024-.933.271-.889c1.551.278 2.268.07 2.939-.85c.366-.503.398-.63.349-1.412l-.053-.859l.752.09c1.364.163 1.379.172 1.285.729c-.259 1.521-.734 2.358-1.906 3.36c-.82.7-.817 1.043.004.653c.696-.33 1.503-1.16 1.938-1.992c.319-.611.375-.883.381-1.848c.006-1.016.039-1.159.32-1.386c.236-.191.498-.246 1.058-.222c.672.029.777-.007 1.083-.362c.266-.309.321-.486.257-.828c-.118-.631.015-.851.736-1.217c.976-.495 1.355-1.021 1.355-1.881c0-.792-.245-1.258-.59-1.126c-.262.101-.301.785-.066 1.162c.086.138.119.35.072.472c-.126.329-.857.726-1.52.825c-.836.126-1.415.573-1.852 1.43c-.694 1.364-.594 1.301-1.2.754c-.93-.84-1.752-.618-2.102.568l-.15.507l-.25-.508c-.255-.516-.557-.639-.851-.345c-.263.263-.185.678.246 1.314c.222.328.404.742.404.921c0 .834-.788 1.509-1.542 1.32c-.403-.101-.761-.667-.761-1.204c0-.486-.364-.44-.474.059c-.185.839-.562.498-.727-.659c-.112-.783-.396-.826-.744-.112c-.223.456-.229.541-.051.745c.369.425.948 2.119 1.017 2.978c.095 1.174.37 1.036.372-.187z\"></path><path fill=\"#CF1126\" d=\"M167.37 98.418c-.331-.242-.179-.629.246-.629c.387 0 .693.319.582.608c-.098.254-.495.265-.828.021zm2.974-.906a.515.515 0 0 1 .493-.671c.26 0 .333.313.172.734c-.118.307-.561.264-.665-.063z\"></path><path fill=\"#FC0\" d=\"M134.897 102.892c.025-.131-.043-.226-.161-.226c-.252 0-.404.221-.284.414c.121.198.392.084.445-.188zm10.59-1.184c0-.194-.073-.267-.235-.236c-.353.068-.393.517-.045.517c.193 0 .28-.087.28-.281zm-14.694-1.159l.375-.491l1.405.094c1.711.115 1.916.019 3.185-1.49c.466-.555.926-1.008 1.021-1.008c.095 0 .174-.152.174-.339c0-.491-.59-.469-.904.034c-.453.724-1.718 2.091-2.052 2.218c-.186.071-.612.088-.945.038c-.505-.076-.565-.114-.359-.229c.357-.2 1.144-1.011 1.144-1.179c0-.219-.651-.418-1.059-.325c-.2.046-.676.256-1.058.466c-.723.398-1.27.408-1.27.023c0-.115.32-.555.711-.977c.391-.423.884-.962 1.095-1.198c.211-.236.44-.429.508-.429s.124-.092.124-.203c0-.144-.147-.203-.508-.203c-.465 0-.536.053-.834.614a4.33 4.33 0 0 1-.8 1.03c-.385.338-.557.402-.916.344c-.703-.114-1.141-.47-1.141-.925c0-.217-.087-.428-.193-.469c-.286-.11-.756.19-.756.483c0 .497.179.701.956 1.094c.692.349.792.451.83.84c.038.392.086.44.422.416c.536-.037.745.44.447 1.017c-.232.448-.294 1.245-.097 1.245c.066.001.288-.221.495-.491z\"></path><path fill=\"#F0F\" d=\"M131.398 99.482c0-.221.124-.251.474-.117c.18.069.189.11.045.201c-.28.179-.519.14-.519-.084z\"></path><path fill=\"#CF1126\" d=\"M131.94 98.895c0-.118.593-.428.819-.428c.264 0 .118.378-.176.457c-.426.113-.643.104-.643-.029z\"></path><path fill=\"#FC0\" d=\"M140.949 99.821c0-.294-.529-.253-.586.045c-.037.192.023.238.269.203c.174-.024.317-.136.317-.248zm23.343-2.068c.054-.28-.337-.469-.544-.262c-.206.206-.018.598.262.544a.383.383 0 0 0 .282-.282zm-36.329-2.859c.366-.315.37-.336.211-1.026c-.224-.969-.209-1.074.16-1.166c.467-.117 1.651.518 1.914 1.027c.203.393.198.42-.148.741c-.372.345-.37.746.002.746c.308 0 1.16-.806 1.16-1.097c0-.401-.946-1.351-1.693-1.7a3.33 3.33 0 0 0-1.461-.317c-.958-.002-1.088.205-.829 1.32c.304 1.306-.108 1.482-1.161.497c-.781-.731-1.088-1.492-1.085-2.69c.003-1.286.495-1.921 1.602-2.069c.736-.099.718-.271-.039-.385c-1.104-.165-2.037.571-2.392 1.888c-.393 1.461.508 3.241 2.104 4.156c.836.479 1.168.494 1.655.075zm43.508-1.602c.089-.089.163-.291.163-.448c0-.157.152-.492.339-.744c.186-.253.339-.51.339-.572c0-.257-.422-.248-.757.016c-.341.269-.598.275-.598.014c0-.066.163-.2.363-.297c.497-.242.539-.481.118-.672c-.537-.245-1.077.202-1.132.938c-.037.492.003.577.382.799c.347.204.411.313.353.605c-.101.504.109.681.43.361zm4.09-.463c.298-.269.542-.574.542-.677c0-.102.259-.373.576-.6c.898-.645 1.095-1.298.694-2.301c-.157-.393-.649-.938-1.716-1.899c-.823-.742-1.577-1.349-1.676-1.349c-.292 0-.24 1.073.057 1.168c.534.171.856.388 1.695 1.145c.977.881 1.426 1.705 1.181 2.164c-.237.442-.549.305-1.409-.617c-.452-.485-.899-.882-.992-.881c-.099.001-.169.177-.169.422c0 .307.164.602.61 1.098c.726.808.798 1.294.253 1.723c-.196.154-.398.281-.447.281c-.05 0-.209-.24-.354-.534c-.305-.618-2.165-2.581-2.445-2.581c-.126 0-.189.158-.189.471c0 .377.074.509.374.664c.37.191 1.281 1.111 2.2 2.22c.261.315.52.573.575.573c.053-.001.342-.221.64-.49zm1.824-5.224c-.121-.388-2.616-2.957-2.872-2.957c-.134 0-.174.157-.144.567c.036.495.091.58.431.67c.214.057.871.572 1.46 1.145c.589.573 1.105 1.008 1.147.966c.042-.041.032-.218-.022-.391z\"></path><path fill=\"#CF1126\" d=\"M193.828 98.396c.546-.058 1.095.397.909.979c-.046.105-.23.309-.536.517a6.27 6.27 0 0 1-1.285.639c-1.074.406-2.553.72-4.276.674h.245c-1.749.023-2.688-.139-3.911-.543c-1.034-.338-1.925-.595-1.988-1.509c0-.157.047-.25.127-.325a.753.753 0 0 1 .357-.167c.311-.068.67.112.982.214c.665.219 2.073.814 4.433.829c1.244.032 2.161-.264 3.11-.581c1.136-.378 1.295-.65 1.833-.727zm6.354-34.833c.016.001.03.005.044.01c.057.018.117.059.177.172v.005c.021.035.073.223.088.482s.008.597-.015.994c-.045.794-.16 1.814-.33 2.903c-.339 2.177-.887 4.633-1.466 6.101c-.567 1.359-1.81 2.577-3.021 3.675c-1.21 1.098-2.39 2.056-2.814 3.045c-.079.177-.117.424-.157.777a22.13 22.13 0 0 0-.098 1.328a93.935 93.935 0 0 0-.098 3.843c-.019 2.299.004 4.825.044 6.829l-.177.079c-.293.134-.636.307-1.018.482c-.765.349-1.688.688-2.647.659h-.005c-1.933-.014-2.794-.579-3.449-.832h-.005a2.075 2.075 0 0 0-.403-.108c.025-1.838.194-14.58.192-16.792v-.005c-.021-.605.553-1.377 1.299-2.066c.746-.689 1.63-1.301 2.145-1.687l.005-.005l.01-.005c.306-.272.931-.931 1.52-1.584c.295-.327.579-.653.802-.92c.223-.267.376-.452.453-.605a2.07 2.07 0 0 1 .31-.364c.167-.162.383-.337.615-.487c.232-.15.482-.273.704-.325c.221-.051.403-.037.551.054c.133.082.184.212.177.452c-.007.241-.094.565-.231.905c-.275.68-.743 1.436-1.082 1.899c-.208.283-.399.755-.586 1.304a18.496 18.496 0 0 0-.482 1.692c-.123.528-.204.933-.187 1.191c.004.064-.019.14.103.236a.262.262 0 0 0 .226.034a.275.275 0 0 0 .113-.079c.101-.106.169-.244.281-.492v-.005l.005-.005c.169-.432.829-.914 1.668-1.402c.839-.488 1.837-.999 2.642-1.619c.194-.157.243-.389.3-.664c.057-.275.113-.618.231-1.038c.236-.841.722-1.998 1.973-3.469l.064-.074l-.02-.098c-.274-1.401.096-2.749.6-3.582c.252-.417.546-.7.758-.797a.389.389 0 0 1 .191-.042z\"></path><path fill=\"#CF1126\" d=\"M198.116 63.873a.43.43 0 0 1 .256.098c.154.118.275.357.266.674a5.667 5.667 0 0 0-.433 3.321c-1.24 1.477-1.743 2.674-1.987 3.547c-.125.444-.182.804-.236 1.063c-.054.256-.116.393-.157.428c-.76.585-1.736 1.089-2.588 1.584c-.696.405-1.32.789-1.663 1.269c.019-.095.04-.193.064-.295c.069-.295.157-.621.251-.945c.139-.349.538-.794.999-1.156c.461-.362.987-.646 1.338-.728l.153-.034l.01-.153c.026-.397.35-1.313.802-2.17c.451-.857 1.046-1.684 1.515-1.988l.098-.064l-.005-.118c-.076-2.722.529-3.917.999-4.226a.558.558 0 0 1 .318-.107z\"></path><path fill=\"#CF1126\" d=\"M196.389 64.379c.072.004.124.027.187.103a.938.938 0 0 1 .162.394c-.248.732-.391 1.778-.359 3.232c-.573.419-1.117 1.23-1.56 2.071c-.428.813-.751 1.631-.832 2.189c-.426.133-.912.418-1.358.768c-.119.093-.235.19-.344.29c.127-.318.254-.578.349-.709c.358-.488.836-1.26 1.132-1.993c.1-.249.182-.49.226-.723c.484-.506.945-1.423.832-2.327c-.101-1.16.38-2.299.9-2.883c.261-.291.522-.42.665-.412z\"></path><path fill=\"#CF1126\" d=\"M194.426 64.66a.368.368 0 0 1 .192.084c.1.074.22.21.344.418a4.525 4.525 0 0 0-.551 2.553v.01c.069.537-.147 1.149-.423 1.599a.772.772 0 0 0-.334-.462a1.029 1.029 0 0 0-.605-.138c.096-1.43.394-2.753.772-3.478c.198-.379.41-.566.551-.585a.163.163 0 0 1 .054-.001zm-2.967 11.96c.022.029.001.033 0 .015v-.015zm-6.632 17.81c.092.019.182.043.261.074c.342.132.849.406 1.638.61l-1.909-.02l.01-.664z\"></path><path fill=\"#CF1126\" d=\"M192.525 94.16c.405-.058.812.397.674.978c-.034.105-.17.309-.397.517a4.39 4.39 0 0 1-.953.639a6.516 6.516 0 0 1-3.171.674h.181c-1.297.023-1.993-.139-2.9-.543c-.766-.338-1.428-.595-1.474-1.509c0-.157.035-.25.094-.325a.517.517 0 0 1 .265-.167c.23-.068.496.112.728.214c.493.219 1.537.814 3.287.829c.922.032 1.602-.264 2.306-.58c.842-.378.96-.649 1.36-.727z\"></path><path fill=\"#CF1126\" d=\"M193.244 96.234a.756.756 0 0 1 .79.979c-.04.105-.2.309-.466.517a5.22 5.22 0 0 1-1.117.64c-.933.406-2.218.72-3.715.674h.213c-1.52.023-2.335-.139-3.398-.543c-.898-.338-1.673-.595-1.727-1.509c0-.157.041-.25.11-.325a.622.622 0 0 1 .31-.167c.27-.068.581.112.853.214c.578.218 1.801.814 3.851.829c1.081.032 1.878-.264 2.702-.581c.988-.379 1.126-.651 1.594-.728zm-86.072 2.162c-.546-.058-1.095.397-.909.979c.046.105.23.309.536.517a6.27 6.27 0 0 0 1.285.639c1.074.406 2.553.72 4.277.674h-.245c1.749.023 2.688-.139 3.911-.543c1.034-.338 1.925-.595 1.988-1.509c0-.157-.047-.25-.127-.325a.753.753 0 0 0-.357-.167c-.31-.068-.669.112-.981.214c-.665.219-2.073.814-4.433.829c-1.244.032-2.161-.264-3.11-.581c-1.138-.378-1.297-.65-1.835-.727zm-6.354-34.833a.157.157 0 0 0-.044.01c-.057.018-.117.059-.177.172v.005c-.021.035-.073.223-.089.482a9.08 9.08 0 0 0 .015.994c.045.794.16 1.814.33 2.903c.339 2.177.887 4.633 1.466 6.101c.568 1.359 1.811 2.577 3.021 3.675c1.21 1.098 2.39 2.056 2.814 3.045c.079.177.117.424.157.777c.041.354.071.804.099 1.328c.054 1.049.086 2.396.098 3.843a259.27 259.27 0 0 1-.044 6.829l.177.079c.293.134.636.307 1.018.482c.765.349 1.688.688 2.647.659h.005c1.933-.014 2.794-.579 3.449-.832h.005c.126-.048.263-.085.403-.108c-.025-1.838-.194-14.58-.192-16.792v-.005c.021-.605-.553-1.377-1.299-2.066c-.746-.689-1.63-1.301-2.145-1.687l-.005-.005l-.01-.005c-.306-.272-.931-.931-1.52-1.584a33.34 33.34 0 0 1-.802-.92c-.223-.267-.376-.452-.453-.605a2.07 2.07 0 0 0-.31-.364a4.125 4.125 0 0 0-.615-.487a2.374 2.374 0 0 0-.704-.325c-.221-.051-.403-.037-.551.054c-.133.082-.184.212-.177.452c.007.241.094.565.231.905c.275.68.743 1.436 1.082 1.899c.208.283.399.755.586 1.304c.187.549.359 1.164.482 1.692s.204.933.187 1.191c-.004.064.019.14-.103.236a.262.262 0 0 1-.226.034a.275.275 0 0 1-.113-.079c-.101-.106-.169-.244-.281-.492v-.005l-.005-.005c-.169-.432-.829-.914-1.668-1.402c-.839-.488-1.837-.999-2.642-1.619c-.194-.157-.243-.389-.3-.664c-.057-.275-.113-.618-.231-1.038c-.236-.841-.722-1.998-1.973-3.469l-.064-.074l.02-.098c.274-1.401-.096-2.749-.6-3.582c-.252-.417-.546-.7-.758-.797a.385.385 0 0 0-.191-.042z\"></path><path fill=\"#CF1126\" d=\"M102.884 63.873a.43.43 0 0 0-.256.098c-.154.118-.275.357-.266.674c.409.883.654 2.071.433 3.321c1.24 1.477 1.743 2.674 1.988 3.547c.125.444.182.804.236 1.063c.053.256.116.393.157.428c.76.585 1.736 1.089 2.588 1.584c.696.405 1.32.789 1.663 1.269a8.925 8.925 0 0 0-.064-.295a19.052 19.052 0 0 0-.251-.945c-.139-.349-.537-.794-.999-1.156c-.461-.362-.987-.646-1.338-.728l-.152-.034l-.01-.153c-.026-.397-.35-1.313-.802-2.17c-.451-.857-1.046-1.684-1.515-1.988l-.098-.064l.005-.118c.076-2.722-.529-3.917-.999-4.226a.566.566 0 0 0-.32-.107z\"></path><path fill=\"#CF1126\" d=\"M104.611 64.379c-.072.004-.124.027-.187.103a.938.938 0 0 0-.162.394c.248.732.391 1.778.359 3.232c.573.419 1.117 1.23 1.56 2.071c.428.813.751 1.631.831 2.189c.426.133.912.418 1.358.768c.119.093.235.19.344.29c-.127-.318-.253-.578-.349-.709c-.358-.488-.836-1.26-1.132-1.993a3.86 3.86 0 0 1-.226-.723c-.484-.506-.945-1.423-.831-2.327c.101-1.16-.38-2.299-.9-2.883c-.261-.291-.521-.42-.665-.412z\"></path><path fill=\"#CF1126\" d=\"M106.574 64.66a.368.368 0 0 0-.192.084c-.099.074-.22.21-.344.418c.383.688.635 1.6.551 2.553v.01c-.069.537.147 1.149.423 1.599a.772.772 0 0 1 .334-.462c.187-.115.396-.149.605-.138c-.096-1.43-.394-2.753-.773-3.478c-.198-.379-.41-.566-.551-.585a.156.156 0 0 0-.053-.001zm2.967 11.96c-.022.029-.001.033 0 .015v-.015zm6.632 17.81a1.657 1.657 0 0 0-.261.074c-.342.132-.85.406-1.638.61l1.909-.02l-.01-.664z\"></path><path fill=\"#CF1126\" d=\"M108.476 94.16c-.405-.058-.812.397-.674.978c.034.105.17.309.398.517c.231.211.555.436.953.639c.797.406 1.893.72 3.171.674h-.181c1.297.023 1.993-.139 2.9-.543c.766-.338 1.428-.595 1.474-1.509c0-.157-.035-.25-.094-.325a.517.517 0 0 0-.265-.167c-.23-.068-.496.112-.728.214c-.493.219-1.537.814-3.287.829c-.922.032-1.602-.264-2.306-.58c-.844-.378-.962-.649-1.361-.727z\"></path><path fill=\"#CF1126\" d=\"M107.756 96.234a.756.756 0 0 0-.79.979c.04.105.2.309.466.517c.271.212.65.437 1.117.64c.933.406 2.218.72 3.715.674h-.213c1.52.023 2.335-.139 3.398-.543c.898-.338 1.673-.595 1.727-1.509c0-.157-.041-.25-.11-.325a.622.622 0 0 0-.31-.167c-.27-.068-.581.112-.853.214c-.578.218-1.801.814-3.851.829c-1.081.032-1.878-.264-2.702-.581c-.988-.379-1.126-.651-1.594-.728zm41.841 3.429c-2.6-.274-4.865-1.922-5.961-4.338c-.367-.808-.357-1.018.034-.736c.661.476 1.604.897 2.01.897c.334 0 .611.172 1.265.783c1.267 1.186 2.688 1.493 2.07.447c-.433-.733-.312-1.228.615-2.518c.466-.648.908-1.182.982-1.188c.075-.005.451.43.837.969c.829 1.157 1.086 2.027.78 2.644c-.268.541-.249.894.049.894c.327 0 1.455-.716 2.126-1.35a2.634 2.634 0 0 1 1.219-.673c.373-.089 1.004-.345 1.402-.568c.399-.224.753-.379.787-.344c.163.163-.919 2.001-1.62 2.752c-1.36 1.457-2.668 2.108-4.642 2.311c-.588.061-1.468.069-1.953.018z\"></path><path fill=\"#CF1126\" d=\"M152.902 96.379c-.043-.112-.043-.259 0-.328c.163-.265-.353-1.518-.993-2.411l-.887-1.237c-.12-.168-.295-.305-.388-.305c-.198 0-1.481 1.743-2.02 2.744c-.205.38-.372.894-.372 1.142c0 .247-.065.45-.145.45c-.373 0-1.108-.779-1.514-1.605c-.411-.836-.441-.988-.434-2.254c.009-1.602.244-2.615 1.119-4.812c.561-1.41.621-1.667.627-2.71c.008-1.255-.229-1.913-.923-2.56c-.413-.385-.352-.556.199-.556c.513 0 1.318.41 1.722.878c.385.446.632.3.751-.44c.045-.278.261-.719.481-.98c.331-.392.442-.449.647-.329c.37.215.857 1.266.857 1.849c0 .669.21.659.887-.04c.598-.618 1.004-.859 1.653-.982c.587-.111.577.131-.029.718c-.704.682-1.056 1.535-1.064 2.578c-.008 1.004.129 1.493.87 3.129c.699 1.542 1.07 3.037 1.07 4.319c0 1.381-.278 2.257-.961 3.034c-.682.775-1.042.996-1.153.708z\"></path><path fill=\"#CF1126\" d=\"M151.902 81.672c-.341-.669-1.055-1.494-1.292-1.494c-.214 0-1.284 1.188-1.284 1.425c0 .092-.084.237-.187.323c-.145.12-.311.073-.741-.208c-.699-.458-1.015-1.309-1.006-2.715c.008-1.226.204-2.063.882-3.755c.492-1.229.533-1.427.487-2.371c-.06-1.248-.398-2.014-1.346-3.052c-.365-.399-.663-.763-.663-.808c0-.045.282-.083.628-.083c.698 0 1.273.292 1.852.942c.202.227.42.413.485.413c.064 0 .159-.32.21-.711c.103-.783.382-1.321.686-1.321c.287 0 .61.715.61 1.352c0 .775.277.824.88.156c.271-.3.702-.614.958-.699c.481-.159 1.213-.075 1.356.155c.045.072-.174.407-.485.745c-1.364 1.48-1.639 3.147-.837 5.083c.654 1.58.873 2.7.804 4.113c-.074 1.528-.349 2.229-1.057 2.698c-.291.192-.559.35-.597.35c-.038 0-.192-.242-.343-.538z\"></path><path fill=\"#CF1126\" d=\"M148.752 68.603c-.7-.513-.931-1.004-.931-1.972c0-.497.092-.764.418-1.214c.482-.666.393-.876-.287-.681c-1.095.314-1.618.027-1.655-.906c-.018-.456.079-.651.693-1.389c.492-.591.671-.902.574-.998c-.096-.097-.679.408-1.872 1.622c-.952.969-2.023 1.959-2.379 2.2c-2.049 1.385-4.007 1.599-4.902.535c-.458-.544-.433-.851.097-1.18c.242-.15.654-.496.914-.768c.614-.641 2.444-1.962 3.353-2.42c.737-.372.914-.625.435-.625c-.622 0-2.614 1.297-4.123 2.685c-.445.409-1.084.866-1.42 1.014c-.754.333-2.234.455-2.892.238c-.466-.154-1.313-.953-1.313-1.239c0-.075.193-.241.429-.368s.658-.432.938-.677c1.208-1.06 3.497-2.15 5.315-2.532c.577-.121.364-.413-.281-.385c-1.246.055-3.723 1.215-5.204 2.436c-1.734 1.43-4.348 1.295-5.19-.268c-.144-.268-.23-.521-.19-.561c.04-.04.556-.195 1.146-.344c.637-.161 1.898-.683 3.105-1.284c1.899-.947 2.46-1.149 3.768-1.358c.587-.094.617-.381.047-.449c-.736-.087-1.863.282-3.853 1.261c-2.558 1.259-3.276 1.475-4.624 1.394c-1.23-.073-1.922-.39-2.92-1.333c-.652-.617-1.579-2.189-1.397-2.37c.043-.043.343 0 .668.095c.358.105 1.386.175 2.621.178c1.732.004 2.192-.041 3.116-.309c1.542-.446 3.596-1.489 4.999-2.538c2.685-2.008 4.875-2.815 7.668-2.826c2.577-.01 4.216.585 5.669 2.057c.491.498.91.821.978.753c.065-.065.136-.936.156-1.935c0 0 .76-.073.919.14c0 1.622.019 1.75.255 1.75c.155 0 .32-.159.422-.405c.22-.531 1.037-1.259 1.908-1.7c1.887-.956 5.15-.986 7.769-.07c1.104.386 2.33 1.079 3.497 1.978c1.169.9 3.563 2.105 4.979 2.507c1.431.406 3.953.509 5.248.214c.533-.121 1.033-.22 1.112-.22c.477 0-.336 1.591-1.29 2.522c-1.744 1.703-4.012 1.695-7.205-.025c-1.989-1.071-4.368-1.656-4.368-1.074c0 .121.125.203.31.203c.691 0 2.027.463 3.889 1.348c2.016.958 3.146 1.361 3.818 1.361c.487 0 .502.303.048.97c-.482.71-1.299 1.063-2.452 1.059c-1.104-.004-1.716-.245-2.701-1.064c-1.647-1.37-5.754-2.9-5.596-2.084c.031.164.23.264.653.328c1.429.218 3.106 1.019 4.822 2.305c.53.397 1.078.789 1.219.871c.235.138.239.18.053.528c-.307.574-1.084 1.021-1.925 1.108c-1.09.113-2.039-.212-3.019-1.032c-2.072-1.734-4.023-2.989-4.648-2.989c-.511 0-.282.281.618.759c1.183.627 2.4 1.476 3.294 2.299c.425.39.901.779 1.058.863c.376.201.361.494-.051 1.034c-.42.551-1.117.791-2.019.696c-1.8-.19-3.204-1.059-5.411-3.347c-.862-.894-1.631-1.626-1.709-1.626c-.294 0-.122.399.447 1.035c.705.788.841 1.233.574 1.871c-.236.566-.628.697-1.433.48c-.823-.221-.951-.019-.412.651c.805 1.002.686 2.228-.3 3.072c-.306.262-.627.476-.713.476c-.086 0-.304-.224-.484-.497c-.634-.962-1.191-.957-1.807.018a9.787 9.787 0 0 1-.403.611c-.008-.002-.295-.21-.64-.463z\"></path><path fill=\"#CF1126\" d=\"M151.889 49.047l-1.068.846l-.959-.723v5.781l2.027.025v-5.929zm-2.024-7.388c-.929.016-1.91.029-2.789.202c-.612.12-1.166.317-1.629.645c.077 1.777 8.542 2.518 10.814.034c-.479-.349-1.06-.554-1.702-.679c-.848-.164-1.786-.182-2.676-.197c.002.489.005.977.005 1.466l-2.022-.005l-.001-1.466zm1.654-8.818l-.503 4.925l5.068 2.475l-2.565-3.429l3.503-1.134zm-.564-1.282c-.77 0-1.338.287-1.338.628s.569.631 1.338.631c.769 0 1.333-.29 1.333-.631s-.564-.628-1.333-.628z\"></path><path fill=\"#CF1126\" d=\"M151.521 32.577l-1.315.01v10.289l1.341.005zm-6.253 10.474c-.213 2.733-.906 4.639-1.87 6.741l2.312-2.144l1.608 1.91l1.742-1.943l1.776 1.642l1.709-1.709l1.776 2.077l1.541-1.709l2.614 1.876c-.949-2.103-2.232-3.885-2.071-6.842c-2.532 1.88-8.548 2.22-11.137.101z\"></path></g>'},bo:{viewBox:\"0 0 301 205\",innerHTML:'<g fill=\"none\"><path fill=\"#007934\" d=\"M.5.227h300v204.545H.5z\"></path><path fill=\"#F9E300\" d=\"M.5.227h300v136.364H.5z\"></path><path fill=\"#D52B1E\" d=\"M.5.227h300v68.182H.5z\"></path></g>'},br:{viewBox:\"0 0 301 211\",innerHTML:'<defs><circle id=\"IconifyId-17ca80ef3d5-b8efe2-189\" cx=\"52.5\" cy=\"52.5\" r=\"52.5\"></circle></defs><g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#009B3A\" fill-rule=\"nonzero\" d=\"M.5.5h300v210H.5z\"></path><path fill=\"#FEDF00\" fill-rule=\"nonzero\" d=\"M26 105.5L150.5 185L275 105.5L150.5 26z\"></path><circle cx=\"150.5\" cy=\"105.5\" r=\"52.5\" fill=\"#002776\" fill-rule=\"nonzero\"></circle><g transform=\"translate(98 53)\"><mask id=\"IconifyId-17ca80ef3d5-b8efe2-190\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-189\"></use></mask><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M-105 157.5C-105 87.084-47.916 30 22.5 30S150 87.084 150 157.5h-7.5c0-66.274-53.726-120-120-120s-120 53.726-120 120h-7.5z\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-190)\"></path></g><path fill=\"#009B3A\" fill-rule=\"nonzero\" d=\"M122.483 89.245l4.497.157l.033-.928l-3.641-.127l.045-1.285l2.855.1l.03-.857l-2.856-.1l.035-.999l3.426.12l.033-.928l-4.283-.15zm6.343.27l.854.075l.299-3.415l.697 3.503l.783.068l1.295-3.328l-.299 3.415l.854.075l.436-4.981l-1.245-.109l-1.295 3.328l-.697-3.503l-1.245-.109zm10.359 1.169l3.696.635l.145-.845l-2.851-.49l.194-1.126l2.323.399l.145-.845l-2.323-.399l.133-.774l2.763.475l.145-.845l-3.608-.62zm32.457 7.873l-1.736-.755l.399-.917l1.736.755z\"></path><path fill=\"#009B3A\" fill-rule=\"nonzero\" d=\"M170.894 100.194l-.917-.399l.997-2.293l.917.4zm14.649 6.115c-.269.422.004.892.606 1.275c.602.384 1.013.37 1.186.099c.547-.859-2.615-2.11-1.641-3.607c.84-1.286 2.278-.285 2.82.06c.542.345 1.413 1.239.736 2.268l-.919-.586c.288-.452-.028-.886-.51-1.193c-.467-.297-.846-.433-1.125.003c-.466.698 2.633 2.016 1.683 3.507c-.7 1.099-1.919.619-2.732.101c-.693-.441-1.728-1.482-1.053-2.534l.949.607zm-7.295-2.448l3.916 2.216l.457-.808l-3.171-1.794l.633-1.119l2.487 1.407l.422-.746l-2.487-1.407l.493-.87l2.984 1.688l.457-.808l-3.73-2.11zm12.659 5.995c-.29.407-.043.891.539 1.305c.581.415.992.422 1.179.161c.591-.829-2.501-2.244-1.449-3.688c.906-1.24 2.29-.166 2.813.208c.523.374 1.346 1.311.616 2.304l-.887-.632c.311-.436.018-.886-.447-1.218c-.451-.321-.822-.477-1.123-.055c-.502.673 2.524 2.151 1.497 3.59c-.757 1.061-1.949.518-2.734-.042c-.669-.477-1.648-1.57-.92-2.585l.916.652zm-83.255-22.458c-.168-1.37-1.305-2.359-2.538-2.207c-1.233.151-2.097 1.385-1.929 2.756c.168 1.37 1.305 2.358 2.538 2.207c1.233-.152 2.097-1.385 1.929-2.756zm-2.233-1.247c1.699 0 1.699 3.047 0 3.047c-1.7 0-1.7-3.047 0-3.047zm94.358 28.659c.635-1.226.256-2.684-.848-3.255c-1.103-.572-2.513-.041-3.148 1.185c-.635 1.226-.255 2.683.848 3.255c1.104.571 2.513.04 3.148-1.185zm-1.138-2.291c1.403.96-.319 3.475-1.721 2.514c-1.402-.96.319-3.474 1.721-2.514zm-78.43-27.32c-.551-.887-1.662-.929-1.662-.929l-2.5.039l.087 4.999s1.983.001 2.51-.049c.527-.05 1.146-.354 1.551-.885c.404-.532.4-1.161.397-1.548c-.004-.387.058-.916-.383-1.627zm-2.04 3.159c-.384 0-1.123.005-1.123.005l-.055-3.142c1.034-.014 1.07-.014 1.471-.014c.742.013 1.055.566 1.211.924c.056.399.059.56.072.905c-.046.371-.156.677-.469.97c-.515.346-.775.352-1.107.352zm-4.789-.994s.523-.442.657-1.075c.135-.633-.257-1.15-.423-1.298c-.166-.148-.515-.499-1.031-.479c-.516.02-3.063.198-3.063.198l.278 4.993l.926-.065l-.129-1.853l1.608-.113l.387-.027s.498.815.545 1.318c.032.296.028.547.028.547h.903s.023-.889-.234-1.422c-.257-.533-.452-.724-.452-.724zm-.563-.777c-.195.163-.742.169-.742.169l-1.546.102l-.09-1.283c.235.002 1.464-.102 1.486-.102c.248-.008.527-.033.527-.033s.202.007.404.182a.53.53 0 0 1 .202.43c-.006.255-.151.486-.241.535zm53.373 8.381c.189-1.368-.656-2.615-1.886-2.784c-1.231-.17-2.382.801-2.571 2.168c-.189 1.368.656 2.614 1.886 2.784c1.23.17 2.382-.801 2.571-2.168zm-1.839-1.779c1.643.436.861 3.381-.782 2.945c-1.642-.436-.86-3.381.782-2.945zm-5.345-.161s.638-.248.972-.801c.334-.554.133-1.171.024-1.365c-.108-.195-.323-.64-.817-.79a229.97 229.97 0 0 0-2.959-.815l-1.371 4.809l.897.242l.483-1.793l1.557.42l.374.101s.204.933.085 1.423a5.08 5.08 0 0 1-.153.527l.852.295s.313-.833.244-1.42c-.069-.588-.188-.833-.188-.833zm-.278-.918c-.238.09-.757-.083-.757-.083l-1.495-.409l.335-1.241c.221.078 1.416.383 1.438.389c.236.074.509.142.509.142s.189.072.322.304a.529.529 0 0 1 .05.472c-.089.238-.302.409-.402.426zm18.438 8.276s.657-.192 1.037-.716c.38-.524.232-1.156.14-1.358c-.092-.203-.268-.665-.747-.857c-.48-.191-2.88-1.062-2.88-1.062l-1.773 4.676l.872.317l.634-1.746l1.515.55l.365.132s.124.946-.036 1.425c-.091.284-.197.512-.197.512l.824.366s.382-.803.364-1.394c-.02-.59-.118-.845-.118-.845zm-.199-.938c-.245.069-.747-.147-.747-.147l-1.454-.534l.438-1.209c.213.097 1.379.501 1.4.51c.23.093.495.184.495.184s.181.088.295.33a.531.531 0 0 1 .01.475c-.109.23-.335.382-.437.391zm-24.113-8.089s.632-.263.953-.825c.321-.562.105-1.174-.008-1.366c-.114-.192-.339-.632-.836-.77c-.498-.138-2.978-.743-2.978-.743l-1.255 4.84l.902.22l.44-1.804l1.566.382l.377.092l.839-.026zm-.299-.911c-.235.096-.758-.065-.758-.065l-1.504-.373l.305-1.249c.223.073 1.426.349 1.447.355c.239.068.512.13.512.13s.19.068.329.296a.529.529 0 0 1 .062.471c-.085.24-.294.415-.393.435z\"></path><path fill=\"#009B3A\" fill-rule=\"nonzero\" d=\"M171.452 97.677c-.129-.057-.263-.097-.398-.139c-.391.738-1.257 1.263-2.028.734c-1.403-.959.319-3.474 1.721-2.514c.339.232.492.554.515.896c.212.09.441.132.654.23c.09.041.178.084.267.124c.072-.92-.345-1.8-1.145-2.214c-1.103-.572-2.513-.041-3.148 1.184c-.635 1.226-.256 2.683.848 3.255c1.103.572 2.513.041 3.148-1.184c.025-.049.046-.098.068-.147c-.168-.074-.334-.151-.502-.225z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M168.754 88.532l-1.111.806l.425 1.307l-1.112-.808l-1.11.808l.424-1.307l-1.111-.806h1.373l.424-1.306l.425 1.306zm-63.251 6.844l1.322.961l-.505 1.555l1.323-.961l1.322.961l-.505-1.555l1.323-.961h-1.635l-.505-1.554l-.505 1.554zm57.892 7.017l.915.665l-.349 1.076l.915-.665l.915.665l-.35-1.076l.916-.665h-1.132l-.349-1.076l-.345 1.076zm-46.91 12.317l.56.392l-.216.667l.557-.405l.556.405l-.213-.655l.557-.404h-.688l-.212-.655l-.213.655zm-4.208 1.183l-.498 1.554h-1.633l1.322.961l-.505 1.555l1.323-.961l1.322.961l-.505-1.555l1.323-.961h-1.635l-.505-1.554m-8.212 6.385l1.102.8l-.421 1.296l1.102-.801l1.102.801l-.421-1.295l1.102-.801h-1.362l-.421-1.296l-.421 1.296zm24.711-15.249l1.08.784l-.413 1.27l1.08-.785l1.08.785l-.413-1.27l1.081-.784h-1.335l-.413-1.27l-.412 1.27zm-7.061 15.679l.996.724l-.38 1.171l.996-.724l.996.724l-.381-1.171l.997-.724h-1.231l-.381-1.17l-.38 1.17zm-1.481 5.494l.916.665l-.35 1.076l.916-.665l.915.665l-.35-1.076l.915-.665h-1.131l-.349-1.076l-.345 1.076zm7.09 4.181l1.323.961l-.505 1.555l1.322-.961l1.323.961l-.506-1.555l1.323-.961h-1.635l-.505-1.554l-.505 1.554zm21.369-18.846l1.111.806l-.424 1.307l1.111-.808l1.111.808l-.424-1.307l1.11-.806h-1.379l-.418-1.306l-.424 1.306zm-4.989 4.728l.915.665l-.349 1.076l.912-.667l.918.667l-.35-1.076l.915-.665h-1.131l-.349-1.076l-.35 1.076zm3.208 3.62l.556.405l-.212.654l.557-.404l.556.404l-.213-.655l.557-.404h-.688l-.212-.654l-.213.654zm7.849-3.76l1.111.807l-.424 1.306l1.11-.808l1.112.808l-.425-1.306l1.111-.807h-1.373l-.425-1.306l-.417 1.306zm-6.41 10.486l1.323.961l-.506 1.555l1.323-.961l1.322.961l-.505-1.555l1.323-.961h-1.635l-.505-1.554l-.498 1.554zm1.42 17.735l.425.308l-.162.499l.424-.308l.424.308l-.162-.499l.424-.308h-.524l-.162-.498l-.16.498zm10.797-11.858l.916.665l-.35 1.076l.916-.665l.915.665l-.35-1.076l.915-.665h-1.131l-.349-1.076l-.345 1.076zm3.818 5.763l1.111.807l-.425 1.306l1.111-.808l1.112.808l-.425-1.306l1.111-.807h-1.373l-.425-1.306l-.424 1.306zm6.907-3.905l.915-.665h-1.131l-.349-1.076l-.345 1.076h-1.137l.916.665l-.35 1.076l.916-.665l.915.665zm3.792-2.408l.915.665l-.349 1.076l.915-.665l.915.665l-.35-1.076l.915-.665h-1.131l-.349-1.076l-.35 1.076zm-.182 4.965l1.111.806l-.425 1.307l1.111-.808l1.111.808l-.424-1.307l1.111-.806h-1.373l-.425-1.306l-.424 1.306zm.441 5.483l.915.665l-.349 1.076l.915-.665l.915.665l-.349-1.076l.915-.665h-1.136l-.345-1.076l-.344 1.076zm5.226-9.509l.915.665l-.349 1.076l.915-.665l.915.665l-.349-1.076l.915-.665h-1.131l-.35-1.075l-.35 1.075zm3.885-2.719l1.111.807l-.424 1.306l1.111-.808l1.111.808l-.425-1.306l1.111-.807h-1.373l-.425-1.306l-.417 1.306l-1.348-.007m3.123-4.089l1.111.806l-.424 1.307l1.111-.808l1.111.808l-.425-1.306l1.111-.807h-1.373l-.424-1.306l-.425 1.306zm-2.482-4.867l1.322.96l-.505 1.555l1.323-.961l1.322.961l-.505-1.555l1.323-.96h-1.635l-.505-1.555l-.506 1.555zm8.01.792l.915.665l-.349 1.076l.915-.665l.915.665l-.35-1.076l.916-.665h-1.131l-.35-1.076l-.344 1.076z\"></path></g>'},bs:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#00ABC9\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FAE042\" d=\"M.5 50.5h300v50H.5z\"></path><path fill=\"#000\" d=\"M.5.5v150l125-75z\"></path></g>'},bw:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#75AADB\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" d=\"M.5 75.5h300v50H.5z\"></path><path fill=\"#000\" d=\"M.5 83.833h300v33.333H.5z\"></path></g>'},by:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#C8313E\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#4AA657\" d=\"M.5 100.5h300v50H.5z\"></path><path fill=\"#FFF\" d=\"M.5.5h33.333v150H.5z\"></path><path fill=\"#C8313E\" d=\"M6.297.5h4.348v2.459h1.449v2.459h1.449v2.459h1.449v2.459h1.45v2.459h-1.45v2.459h-1.449v2.459h-1.449v2.459h-1.449v2.459H9.196v2.459H7.747v-2.459h-1.45v-2.459H4.848v-2.459H3.399v-2.459H1.95v-2.459H.5v-2.459h1.449V7.877h1.449V5.418h1.449V2.959h1.449V.5h.001zm1.45 4.918h1.449v2.459h1.449v2.459h1.449v2.459h-1.449v2.459H9.196v2.459H7.747v-2.459h-1.45v-2.459H4.848v-2.459h1.449V7.877h1.45V5.418zm0 4.918h1.449v2.459H7.747v-2.459zM.5 2.959h1.449v2.459H.5V2.959zm0 14.754h1.449v2.459H.5v-2.459zM16.442.5h.869v4.918h-.869V.5zm0 17.213h.869v4.918h-.869v-4.918zM3.399 22.631h1.449v2.459h1.449v2.459h1.45v2.459h-1.45v2.459H4.848v2.459H3.399v-2.459H1.95v-2.459H.5v-2.459h1.449V25.09h1.449v-2.459h.001zm0 4.918h1.449v2.459H3.399v-2.459zm8.695-4.918h1.449v2.459h1.449v2.459h1.45v2.459h-1.45v2.459h-1.449v2.459h-1.449v-2.459h-1.449v-2.459H9.196v-2.459h1.449V25.09h1.449v-2.459zm0 4.918h1.449v2.459h-1.449v-2.459zM.5 37.385h1.449v2.459H.5v-2.459zm15.942-2.459h.869v4.918h-.869v-4.918zM.5 44.762h1.449v-2.459h1.449v-2.459h1.449v-2.459h1.449v-2.459h1.45v-2.459h1.449v2.459h1.449v2.459h1.449v2.459h1.449v2.459h1.449v2.459h1.45v2.459h.869v9.836h-.869v2.459h-1.45v2.459h-1.449v2.459h-1.449v2.459h-1.449v2.459H9.195v6.394H6.296V74.27H4.847v-2.459H3.398v-2.459H1.949v-2.459H.5v-7.377h1.449v2.459h1.449v2.459h1.449v2.459h1.449v-2.459h1.45v-2.459h1.449v-2.459h1.449v-2.459h1.449v-2.459h1.449v-2.459h-1.449V49.68h-1.449v-2.459H6.296v2.459h2.899v2.459H7.746v2.459h-1.45v2.459H4.847v-2.459H3.398v-2.459H1.949V49.68H.5v-4.918zm0 9.836h1.449v2.459H.5v-2.459zm15.942 7.377h.869v2.459h-.869v-2.459zm-2.898 4.918h1.449v2.459h1.45v2.459h.869v3.935h-.869V74.27h-1.45v-2.459h-1.449v-4.918zm-2.899 7.377h1.449v1.476h-1.449V74.27z\"></path><path fill=\"#C8313E\" d=\"M28.036.5h-4.348v2.459h-1.45v2.459h-1.449v2.459H19.34v2.459h-1.449v2.459h1.449v2.459h1.449v2.459h1.449v2.459h1.45v2.459h1.449v2.459h1.449v-2.459h1.449v-2.459h1.449v-2.459h1.449v-2.459h1.45v-2.459h1.449v-2.459h-1.449V7.877h-1.45V5.418h-1.449V2.959h-1.449V.5h.001zm-1.449 4.918h-1.449v2.459h-1.449v2.459h-1.45v2.459h1.45v2.459h1.449v2.459h1.449v-2.459h1.449v-2.459h1.449v-2.459h-1.449V7.877h-1.449V5.418zm0 4.918h-1.449v2.459h1.449v-2.459zm7.247-7.377h-1.449v2.459h1.449V2.959zm0 14.754h-1.449v2.459h1.449v-2.459zM17.892.5h-.869v4.918h.869V.5zm0 17.213h-.869v4.918h.869v-4.918zm13.043 4.918h-1.449v2.459h-1.449v2.459h-1.449v2.459h1.449v2.459h1.449v2.459h1.449v-2.459h1.45v-2.459h1.449v-2.459h-1.449V25.09h-1.45v-2.459zm0 4.918h-1.449v2.459h1.449v-2.459zm-8.696-4.918H20.79v2.459h-1.449v2.459h-1.449v2.459h1.449v2.459h1.449v2.459h1.449v-2.459h1.45v-2.459h1.449v-2.459h-1.449V25.09h-1.45v-2.459zm0 4.918H20.79v2.459h1.449v-2.459zm11.595 9.836h-1.449v2.459h1.449v-2.459zm-15.942-2.459h-.869v4.918h.869v-4.918zm15.942 9.836h-1.449v-2.459h-1.45v-2.459h-1.449v-2.459h-1.449v-2.459h-1.449v-2.459h-1.449v2.459H23.69v2.459h-1.45v2.459h-1.449v2.459h-1.449v2.459h-1.449v2.459h-.869v9.836h.869v2.459h1.449v2.459h1.449v2.459h1.449v2.459h1.45v2.459h1.449v6.394h2.898V74.27h1.449v-2.459h1.449v-2.459h1.45v-2.459h1.449v-7.377h-1.449v2.459h-1.45v2.459h-1.449v2.459h-1.449v-2.459h-1.449v-2.459h-1.449v-2.459H23.69v-2.459h-1.45v-2.459h-1.449v-2.459h1.449V49.68h1.45v-2.459h4.348v2.459H25.14v2.459h1.449v2.459h1.449v2.459h1.449v-2.459h1.449v-2.459h1.45V49.68h1.449v-4.918h-.001zm0 9.836h-1.449v2.459h1.449v-2.459zm-15.942 7.377h-.869v2.459h.869v-2.459zm2.898 4.918h-1.449v2.459h-1.449v2.459h-.869v3.935h.869V74.27h1.449v-2.459h1.449v-4.918zm2.899 7.377h-1.45v1.476h1.45V74.27z\"></path><path fill=\"#FCFCFC\" d=\"M9.255 17.63H7.806v-2.459H6.357v-2.459H4.908v-2.459h1.449V7.794h1.449V5.335h1.449v2.459h1.45v2.459h1.449v2.459h-1.449v2.459h-1.45zm17.397 0h-1.449v-2.459h-1.449v-2.459h-1.45v-2.459h1.45V7.794h1.449V5.335h1.449v2.459h1.45v2.459h1.449v2.459h-1.449v2.459h-1.45z\"></path><path fill=\"#C8313E\" d=\"M7.806 10.253h1.449v2.459H7.806zm17.332.083h1.449v2.459h-1.449z\"></path><path fill=\"#FFF\" d=\"M29.551 27.676H31v2.459h-1.449zm-8.804-.173h1.449v2.459h-1.449z\"></path><path fill=\"#FFFDFD\" d=\"M12.154 27.503h1.449v2.459h-1.449z\"></path><path fill=\"#FFF\" d=\"M3.458 27.503h1.449v2.459H3.458z\"></path><path fill=\"#C8313E\" d=\"M6.297 150.5h4.348v-2.459h1.449v-2.459h1.449v-2.459h1.449v-2.459h1.45v-2.459h-1.45v-2.459h-1.449v-2.459h-1.449v-2.459h-1.449v-2.459H9.196v-2.459H7.747v2.459h-1.45v2.459H4.848v2.459H3.399v2.459H1.95v2.459H.5v2.459h1.449v2.459h1.449v2.459h1.449v2.459h1.449v2.459h.001zm1.45-4.918h1.449v-2.459h1.449v-2.459h1.449v-2.459h-1.449v-2.459H9.196v-2.459H7.747v2.459h-1.45v2.459H4.848v2.459h1.449v2.459h1.45v2.459zm0-4.918h1.449v-2.459H7.747v2.459zM.5 148.041h1.449v-2.459H.5v2.459zm0-14.754h1.449v-2.459H.5v2.459zM16.442 150.5h.869v-4.918h-.869v4.918zm0-17.213h.869v-4.918h-.869v4.918zm-13.043-4.918h1.449v-2.459h1.449v-2.459h1.45v-2.459h-1.45v-2.459H4.848v-2.459H3.399v2.459H1.95v2.459H.5v2.459h1.449v2.459h1.449v2.459h.001zm0-4.918h1.449v-2.459H3.399v2.459zm8.695 4.918h1.449v-2.459h1.449v-2.459h1.45v-2.459h-1.45v-2.459h-1.449v-2.459h-1.449v2.459h-1.449v2.459H9.196v2.459h1.449v2.459h1.449v2.459zm0-4.918h1.449v-2.459h-1.449v2.459zM.5 113.615h1.449v-2.459H.5v2.459zm15.942 2.459h.869v-4.918h-.869v4.918zM.5 106.238h1.449v2.459h1.449v2.459h1.449v2.459h1.449v2.459h1.45v2.459h1.449v-2.459h1.449v-2.459h1.449v-2.459h1.449v-2.459h1.449v-2.459h1.45v-2.459h.869v-9.836h-.869v-2.459h-1.45v-2.459h-1.449v-2.459h-1.449v-2.459h-1.449v-2.459H9.195v-6.394H6.296v1.475H4.847v2.459H3.398v2.459H1.949v2.459H.5v7.377h1.449v-2.459h1.449v-2.459h1.449v-2.459h1.449v2.459h1.45v2.459h1.449v2.459h1.449v2.459h1.449v2.459h1.449v2.459h-1.449v2.459h-1.449v2.459H6.296v-2.459h2.899V98.86H7.746v-2.459h-1.45v-2.459H4.847v2.459H3.398v2.459H1.949v2.459H.5v4.919zm0-9.837h1.449v-2.459H.5v2.459zm15.942-7.377h.869v-2.459h-.869v2.459zm-2.898-4.917h1.449v-2.459h1.45v-2.459h.869v-3.934h-.869v1.475h-1.45v2.459h-1.449v4.918zm-2.899-7.378h1.449v-1.475h-1.449v1.475z\"></path><path fill=\"#C8313E\" d=\"M28.036 150.5h-4.348v-2.459h-1.45v-2.459h-1.449v-2.459H19.34v-2.459h-1.449v-2.459h1.449v-2.459h1.449v-2.459h1.449v-2.459h1.45v-2.459h1.449v-2.459h1.449v2.459h1.449v2.459h1.449v2.459h1.449v2.459h1.45v2.459h1.449v2.459h-1.449v2.459h-1.45v2.459h-1.449v2.459h-1.449v2.459h.001zm-1.449-4.918h-1.449v-2.459h-1.449v-2.459h-1.45v-2.459h1.45v-2.459h1.449v-2.459h1.449v2.459h1.449v2.459h1.449v2.459h-1.449v2.459h-1.449v2.459zm0-4.918h-1.449v-2.459h1.449v2.459zm7.247 7.377h-1.449v-2.459h1.449v2.459zm0-14.754h-1.449v-2.459h1.449v2.459zM17.892 150.5h-.869v-4.918h.869v4.918zm0-17.213h-.869v-4.918h.869v4.918zm13.043-4.918h-1.449v-2.459h-1.449v-2.459h-1.449v-2.459h1.449v-2.459h1.449v-2.459h1.449v2.459h1.45v2.459h1.449v2.459h-1.449v2.459h-1.45v2.459zm0-4.918h-1.449v-2.459h1.449v2.459zm-8.696 4.918H20.79v-2.459h-1.449v-2.459h-1.449v-2.459h1.449v-2.459h1.449v-2.459h1.449v2.459h1.45v2.459h1.449v2.459h-1.449v2.459h-1.45v2.459zm0-4.918H20.79v-2.459h1.449v2.459zm11.595-9.836h-1.449v-2.459h1.449v2.459zm-15.942 2.459h-.869v-4.918h.869v4.918zm15.942-9.836h-1.449v2.459h-1.45v2.459h-1.449v2.459h-1.449v2.459h-1.449v2.459h-1.449v-2.459H23.69v-2.459h-1.45v-2.459h-1.449v-2.459h-1.449v-2.459h-1.449v-2.459h-.869v-9.836h.869v-2.459h1.449v-2.459h1.449v-2.459h1.449v-2.459h1.45v-2.459h1.449v-6.394h2.898v1.475h1.449v2.459h1.449v2.459h1.45v2.459h1.449v7.377h-1.449v-2.459h-1.45v-2.459h-1.449v-2.459h-1.449v2.459h-1.449v2.459h-1.449v2.459H23.69v2.459h-1.45v2.459h-1.449v2.459h1.449v2.459h1.45v2.459h4.348v-2.459H25.14V98.86h1.449v-2.459h1.449v-2.459h1.449v2.459h1.449v2.459h1.45v2.459h1.449v4.919h-.001zm0-9.837h-1.449v-2.459h1.449v2.459zm-15.942-7.377h-.869v-2.459h.869v2.459zm2.898-4.917h-1.449v-2.459h-1.449v-2.459h-.869v-3.934h.869v1.475h1.449v2.459h1.449v4.918zm2.899-7.378h-1.45v-1.475h1.45v1.475z\"></path><path fill=\"#FCFCFC\" d=\"M25.078 133.37h1.45v2.459h1.449v2.459h1.449v2.459h-1.449v2.459h-1.449v2.459h-1.45v-2.459h-1.449v-2.459H22.18v-2.459h1.449v-2.459h1.449zm-17.396 0h1.449v2.459h1.449v2.459h1.449v2.459H10.58v2.459H9.131v2.459H7.682v-2.459h-1.45v-2.459H4.783v-2.459h1.449v-2.459h1.45z\"></path><path fill=\"#C8313E\" d=\"M25.078 138.288h1.449v2.459h-1.449zm-17.331-.083h1.449v2.459H7.747z\"></path><path fill=\"#FFF\" d=\"M3.334 120.865h1.449v2.459H3.334zm8.804.173h1.449v2.459h-1.449z\"></path><path fill=\"#FFFDFD\" d=\"M20.73 121.038h1.449v2.459H20.73z\"></path><path fill=\"#FFF\" d=\"M29.426 121.038h1.449v2.459h-1.449z\"></path></g>'},ca:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"red\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFF\" d=\"M75.5.5h150v150h-150z\"></path><path fill=\"red\" d=\"M150.498 14.562L140.264 33.65c-1.161 2.074-3.242 1.882-5.323.723l-7.409-3.837l5.522 29.318c1.161 5.356-2.564 5.356-4.403 3.04l-12.93-14.475l-2.099 7.351c-.242.965-1.307 1.979-2.903 1.738L94.368 54.07l4.295 15.613c.919 3.474 1.637 4.912-.928 5.829l-5.828 2.739l28.146 22.862c1.114.865 1.677 2.42 1.281 3.829l-2.464 8.084c9.691-1.117 18.375-2.798 28.071-3.833c.856-.091 2.289 1.321 2.283 2.313l-1.284 29.617h4.712l-.742-29.554c-.006-.992 1.294-2.468 2.15-2.377c9.696 1.035 18.38 2.716 28.071 3.833l-2.464-8.084c-.396-1.409.166-2.964 1.281-3.829l28.146-22.863l-5.828-2.739c-2.565-.916-1.847-2.355-.928-5.829l4.295-15.613l-16.351 3.438c-1.597.241-2.661-.772-2.903-1.738l-2.099-7.351l-12.93 14.476c-1.839 2.316-5.565 2.316-4.403-3.04l5.522-29.318l-7.409 3.837c-2.081 1.159-4.161 1.351-5.323-.723\"></path></g>'},cd:{viewBox:\"0 0 301 225\",innerHTML:'<g fill=\"none\"><path fill=\"#007FFF\" d=\"M.5 0h300v225H.5z\"></path><path fill=\"#F7D618\" d=\"M14 45h31.5l9.75-31.5L65 45h31.5L71 64.5L80.75 96l-25.5-19.5L29.75 96l9.75-31.5L14 45zM281.75 0L.5 168.75V225h18.75L300.5 56.25V0h-18.75z\"></path><path fill=\"#CE1021\" d=\"M300.5 0L.5 180v45l300-180V0\"></path></g>'},cf:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#003082\" d=\"M.5.5h300v50H.5z\"></path><path fill=\"#FFF\" d=\"M.5 50.5h300v50H.5z\"></path><path fill=\"#289728\" d=\"M.5 100.5h300v50H.5z\"></path><path fill=\"#FFCE00\" d=\"M.5 150.5h300v50H.5z\"></path><path fill=\"#D21034\" d=\"M125.5.5h50v200h-50z\"></path><path fill=\"#FFCE00\" d=\"M50.5 5.148l5.052 15.548h16.347l-13.226 9.608l5.053 15.548L50.5 36.243l-13.225 9.609l5.051-15.548l-13.225-9.608h16.348z\"></path></g>'},cg:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#009543\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FBDE4A\" d=\"M.5 200.5l200-200h100v200z\"></path><path fill=\"#DC241F\" d=\"M300.5.5v200h-200z\"></path></g>'},ch:{viewBox:\"0 0 301 301\",innerHTML:'<g fill=\"none\"><path fill=\"red\" d=\"M.5.5h300v300H.5z\"></path><path fill=\"#FFF\" d=\"M56.75 122.375h187.5v56.25H56.75z\"></path><path fill=\"#FFF\" d=\"M122.375 56.75h56.25v187.5h-56.25z\"></path></g>'},ci:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#F77F00\" d=\"M.5.5h100v200H.5z\"></path><path fill=\"#009E60\" d=\"M200.5.5h100v200h-100z\"></path></g>'},ck:{viewBox:\"0 0 300 150\",innerHTML:'<defs><clipPath id=\"IconifyId-17ca80ef3d5-b8efe2-195\"><path d=\"M0 0h150v75H0zm0 0\"></path></clipPath><clipPath id=\"IconifyId-17ca80ef3d5-b8efe2-196\"><path d=\"M0 0v37.5h200V100zm150 0H75v100H-50zm0 0\"></path></clipPath><clipPath id=\"IconifyId-17ca80ef3d5-b8efe2-197\"><path d=\"M0 0h200v100H0zm0 0\"></path></clipPath><clipPath id=\"IconifyId-17ca80ef3d5-b8efe2-198\"><path d=\"M0 0v37.5h200V100zm150 0H75v100H-50zm0 0\"></path></clipPath></defs><path fill=\"#012169\" d=\"M0 0h300v150H0z\"></path><path fill=\"#012169\" stroke=\"#fff\" stroke-width=\"15\" d=\"M0 0l150 75M0 75L150 0\"></path><g clip-path=\"url(#IconifyId-17ca80ef3d5-b8efe2-195)\"><g clip-path=\"url(#IconifyId-17ca80ef3d5-b8efe2-196)\"><path fill=\"#012169\" d=\"M0 0l150 75M0 75L150 0\"></path></g></g><g clip-path=\"url(#IconifyId-17ca80ef3d5-b8efe2-197)\"><g clip-path=\"url(#IconifyId-17ca80ef3d5-b8efe2-198)\"><path fill=\"none\" stroke=\"#c8102e\" stroke-width=\"10\" d=\"M0 0l150 75M0 75L150 0\"></path></g></g><path fill=\"#012169\" stroke=\"#fff\" d=\"M75 0v100M0 37.5h175\" stroke-width=\"25\"></path><path fill=\"#012169\" stroke=\"#c8102e\" stroke-width=\"15\" d=\"M75 0v100M0 37.5h175\"></path><path fill=\"#012169\" d=\"M0 75h150V0h150v150H0zm0 0\"></path><path fill=\"#fff\" d=\"M225 12.75l2.531 7.781h8.156l-6.593 4.782l2.531 7.78l-6.625-4.78l-6.625 4.78l2.531-7.78l-6.594-4.782h8.157zm0 0\"></path><path fill=\"#fff\" d=\"M250.32 18.133l-.851 8.137l7.449 3.316l-7.969 1.687l-.851 8.137l-4.11-7.062l-7.996 1.675l5.477-6.082l-4.078-7.046l7.453 3.316zm0 0\"></path><path fill=\"#fff\" d=\"M271.262 33.348l-4.09 7.086l5.457 6.062l-7.965-1.703l-4.09 7.09l-.879-8.121l-7.984-1.727l7.476-3.324l-.859-8.102l5.457 6.063zm0 0\"></path><path fill=\"#fff\" d=\"M284.203 55.766l-6.617 4.808l2.52 7.758l-6.586-4.793l-6.618 4.813l2.5-7.778l-6.593-4.824l8.183.004l2.508-7.75l2.52 7.758zm0 0\"></path><path fill=\"#fff\" d=\"M286.91 81.508l-8.004 1.703l-.851 8.113l-4.067-7.058l-8.004 1.703l5.45-6.09l-4.063-7.086l7.473 3.328l5.445-6.055l-.855 8.11zm0 0\"></path><path fill=\"#fff\" d=\"M278.91 106.125l-8.004-1.7l-4.078 7.063l-.844-8.097l-8.004-1.7l7.454-3.347l-.829-8.13l5.473 6.083l7.438-3.317l-4.079 7.063zm0 0\"></path><path fill=\"#fff\" d=\"M261.59 125.36l-6.621-4.805l-6.598 4.793l2.524-7.743l-6.622-4.808l8.168-.027l2.551-7.762l2.524 7.785l8.148-.008l-6.601 4.793zm0 0\"></path><path fill=\"#fff\" d=\"M237.941 135.89l-4.093-7.085l-7.977 1.695l5.457-6.047l-4.094-7.086l7.473 3.301l5.484-6.055l-.855 8.137l7.441 3.305l-7.976 1.699zm0 0\"></path><path fill=\"#fff\" d=\"M212.059 135.89l-.86-8.136l-7.976-1.7l7.441-3.304l-.855-8.137l5.484 6.055l7.473-3.3l-4.094 7.085l5.457 6.047l-7.977-1.695zm0 0\"></path><path fill=\"#fff\" d=\"M188.41 125.36l2.528-7.782l-6.602-4.793l8.148.008l2.524-7.785l2.55 7.762l8.169.027l-6.622 4.808l2.524 7.743l-6.598-4.793zm0 0\"></path><path fill=\"#fff\" d=\"M171.09 106.125l5.472-6.082l-4.078-7.063l7.438 3.317l5.473-6.082l-.829 8.129l7.454 3.347l-8.004 1.7l-.844 8.097l-4.078-7.062zm0 0\"></path><path fill=\"#fff\" d=\"M163.09 81.508l7.476-3.332l-.855-8.11l5.445 6.055l7.473-3.328l-4.063 7.086l5.45 6.09l-8.004-1.703l-4.067 7.058l-.851-8.113zm0 0\"></path><path fill=\"#fff\" d=\"M165.797 55.766l8.183-.004l2.52-7.758l2.508 7.75l8.183-.004l-6.593 4.824l2.5 7.778l-6.618-4.813l-6.585 4.793l2.52-7.758zm0 0\"></path><path fill=\"#fff\" d=\"M178.738 33.348l7.477 3.324l5.457-6.063l-.86 8.102l7.477 3.324l-7.984 1.727l-.88 8.12l-4.09-7.089l-7.964 1.703l5.457-6.062zm0 0\"></path><path fill=\"#fff\" d=\"M199.68 18.133l5.476 6.078l7.453-3.316l-4.078 7.046l5.477 6.082l-7.996-1.675l-4.11 7.062l-.851-8.137l-7.969-1.687l7.45-3.316zm0 0\"></path>'},cl:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#D52B1E\" d=\"M300.5 200.5H.5V.5h300z\"></path><path fill=\"#FFF\" d=\"M100.5 100.5h200V.5H.5z\"></path><path fill=\"#0039A6\" d=\"M100.5 100.5H.5V.5h100z\"></path><path fill=\"#FFF\" d=\"M26.724 42.774l14.694 10.677l-5.612 17.274L50.5 60.049l14.695 10.676l-5.613-17.274l14.695-10.677H56.113L50.5 25.5l-5.613 17.274z\"></path></g>'},cm:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#007A5E\" d=\"M.5.5h100v200H.5z\"></path><path fill=\"#CE1126\" d=\"M100.5.5h100v200h-100z\"></path><path fill=\"#FCD116\" d=\"M200.5.5h100v200h-100zm-75.362 91.76l15.675 11.388l-5.987 18.426l15.674-11.388l15.674 11.388l-5.987-18.426l15.675-11.388H156.4l-5.9-18.427l-5.899 18.427z\"></path></g>'},cn:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#DE2910\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFDE00\" d=\"M50.5 20.5l17.634 54.27l-46.166-33.541h57.064L32.867 74.77zm41.425 5.145l12.488-14.348l-1.67 18.948l-9.786-16.31l17.505 7.443zm18.676 16.269l17.077-8.377l-8.892 16.815l-2.69-18.83l13.244 13.653zm.284 25.839l19.009-.682l-14.978 11.724l5.226-18.289l6.522 17.868zm-18.194 16.5l17.798 6.711l-18.343 5.032l11.882-14.853l-.882 19z\"></path></g>'},co:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#FCD116\" d=\"M.5.5h300v100H.5z\"></path><path fill=\"#003893\" d=\"M.5 100.5h300v50H.5z\"></path><path fill=\"#CE1126\" d=\"M.5 150.5h300v50H.5z\"></path></g>'},cr:{viewBox:\"0 0 301 181\",innerHTML:'<g fill=\"none\"><path fill=\"#002B7F\" d=\"M.5.5h300v180H.5z\"></path><path fill=\"#FFF\" d=\"M.5 30.5h300v120H.5z\"></path><path fill=\"#CE1126\" d=\"M.5 60.5h300v60H.5z\"></path></g>'},cu:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#002A8F\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFF\" d=\"M.5 30.5h300v30H.5zm0 60h300v30H.5z\"></path><path fill=\"#CF142B\" d=\"M.5.5v150l129.902-75z\"></path><path fill=\"#FFF\" d=\"M43.801 53L38.75 68.551H22.402l13.219 9.609l-5.051 15.539L43.8 84.09l13.23 9.609l-5.051-15.539l13.219-9.609H48.85z\"></path></g>'},cv:{viewBox:\"0 0 301 177\",innerHTML:'<g fill=\"none\"><path fill=\"#003893\" d=\"M.501.5h300v176.471h-300z\"></path><path fill=\"#FFF\" d=\"M.501 88.735h300v44.118h-300z\"></path><path fill=\"#CE1126\" d=\"M.501 103.441h300v14.706h-300z\"></path><path fill=\"#FC0\" d=\"M104.609 63.95l5.186 3.768l-1.981 6.097l5.187-3.768l5.186 3.768l-1.981-6.097l5.186-3.768h-6.41l-1.981-6.097l-1.981 6.097zm-25.885 8.571l5.186 3.768l-1.981 6.097l5.186-3.768l5.186 3.768l-1.981-6.097l5.187-3.768h-6.411l-1.981-6.097l-1.981 6.097zm51.583-.267l5.186 3.768l-1.982 6.097l5.187-3.768l5.186 3.768l-1.981-6.097l5.187-3.768h-6.411l-1.981-6.097l-1.981 6.097zm16.067 22.284l5.186 3.768l-1.981 6.097l5.186-3.768l5.187 3.768l-1.981-6.097l5.186-3.768h-6.411l-1.981-6.097l-1.981 6.097zm0 27.059l5.186 3.768l-1.981 6.097l5.186-3.768l5.187 3.768l-1.981-6.097l5.186-3.768h-6.411l-1.981-6.097l-1.981 6.097zm-15.882 22.353l5.186 3.768l-1.982 6.097l5.187-3.768l5.186 3.768l-1.981-6.097l5.187-3.768h-6.411l-1.981-6.097l-1.981 6.097zm-25.869 8.242l5.186 3.768l-1.981 6.097l5.186-3.768l5.186 3.768l-1.98-6.097l5.186-3.768h-6.411l-1.981-6.097l-1.981 6.097zm-26.291-8.576l5.186 3.768l-1.981 6.097l5.187-3.768l5.186 3.768l-1.981-6.097l5.186-3.768h-6.41l-1.981-6.097l-1.981 6.097zm-15.548-22.152l5.186 3.768l-1.982 6.097l5.187-3.768l5.186 3.768l-1.981-6.097l5.187-3.768h-6.411l-1.981-6.097l-1.981 6.097zm.069-27.18l5.186 3.768l-1.981 6.097l5.187-3.768l5.186 3.768l-1.981-6.097l5.186-3.768h-6.411l-1.98-6.097l-1.982 6.097z\"></path></g>'},cy:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#2F4712\" d=\"M145.434 166.583a.346.346 0 0 1-.116-.082l-.042-.039a7.184 7.184 0 0 1-.528-.548a63.058 63.058 0 0 1-1.563-1.895a168.271 168.271 0 0 1-2.058-2.619l-.265-.344l-.264.344c-.161.211-1.021 1.326-2.058 2.619a60.387 60.387 0 0 1-1.563 1.895c-.24.274-.419.449-.527.548l-.042.039c-.045.043-.056.054-.094.072l-.044.003l-.669-.064l.323-.25l.299.19a.82.82 0 0 0-.086-.161a3.788 3.788 0 0 0-.31-.381c-.27-.295-.654-.651-.958-.927c-.683-.62-1.369-1.191-1.376-1.198l-.007-.005l4.788-3.521l-1.89-.881l1.01-1.135l3.469 1.485l3.47-1.485l1.01 1.135l-1.89.881l4.788 3.521l-.004.003c-.01.008-.696.58-1.379 1.2a16.21 16.21 0 0 0-.959.927a3.679 3.679 0 0 0-.31.38c-.046.067-.071.128-.084.157l.297-.185l.322.25l-.656.061l-.03.007l-.004.003zm8.643-5.34c-3.634 0-6.109-1.631-6.19-1.685c3.157-1.498 5.89-2.257 8.125-2.257h.039c1.886.007 3.053.575 3.7 1.05c.649.476.933.985.961 1.035l-.003.001c-2.14 1.234-4.37 1.857-6.63 1.857l-.002-.001zm-26.424 0c-2.259 0-4.49-.625-6.632-1.856l-.002-.001l.001-.003s.28-.534.959-1.032c.647-.475 1.814-1.043 3.7-1.05h.039c2.234 0 4.967.759 8.124 2.257c-.106.071-2.584 1.685-6.189 1.685l.004.003l-.004-.003zm36.21-2.17c-.366 0-.679-.185-.781-.46c-.1-.27-.069-.614.091-1.023c.265-.674.882-1.383 1.664-1.446l.046-.001l.106.002c.168.004.348.045.52.118c0 .001.059.701-.117 1.405c-.103.411-.258.724-.474.959a1.41 1.41 0 0 1-1.057.447l.002-.001zm-46 0c-.417 0-.793-.158-1.057-.444c-.216-.236-.371-.549-.474-.959a4.878 4.878 0 0 1-.117-1.406c.175-.074.354-.114.521-.118l.037-.001c.837 0 1.496.726 1.779 1.446c.16.409.191.753.091 1.023c-.1.27-.414.457-.78.457v.002zm28.774-2c3.79-7.175 7.728-7.949 9.245-7.949c.511.002.851.083.912.1l.003.018c0 .002.227 1.59-.88 3.306c-1.038 1.609-3.491 3.701-9.277 4.528l-.004.001l.001-.004zm-11.547.004c-5.787-.826-8.239-2.918-9.278-4.528c-1.108-1.717-.88-3.304-.878-3.32l.001-.004l.004-.001c.002 0 .354-.095.886-.098c1.54 0 5.477.774 9.266 7.947l.002.004l-.007-.003l.004.003zm23.41-1.147c-1.152 0-2.444-.095-3.841-.281h-.002l.001-.002c3.067-2.971 5.972-3.595 7.87-3.595c.148 0 .277.004.405.01c1.508.071 2.52.519 2.589.55a2.215 2.215 0 0 1-.198.674c-.168.361-.516.891-1.229 1.375c-1.241.842-3.123 1.269-5.595 1.269l-.002.003l.002-.003zm-35.27 0c-2.472 0-4.354-.427-5.594-1.268c-.713-.483-1.061-1.014-1.228-1.375a2.25 2.25 0 0 1-.198-.674c.065-.03 1.077-.48 2.588-.55c.128-.006.256-.01.391-.01c1.911 0 4.816.623 7.882 3.593l.003.003h-.004c-1.4.183-2.693.28-3.843.28l.003.001zm47.037-.46c-1.417-.023-2.42-.249-2.981-.673c-.265-.2-.396-.468-.352-.717c.054-.298.291-.602.726-.928c1.188-.891 2.948-1.362 5.233-1.402c.146-.002.295-.004.442-.004c.127 0 .253.001.377.004c2.727.066 5.151.682 5.175.687l.006.001l-.005.006c-2.231 2.23-5.812 3.026-8.419 3.026h-.202zm-59.007 0c-2.607 0-6.188-.796-8.421-3.029l-.002-.002l.007-.002a26.18 26.18 0 0 1 5.174-.688c.163-.004.327-.006.492-.006c2.444 0 4.315.474 5.561 1.408c.435.326.673.63.726.928c.045.248-.087.516-.352.717c-.561.424-1.564.65-2.981.672l-.2.007l-.004-.005zm67.657-4.334a.633.633 0 0 1-.6-.406c-.081-.248-.062-.535.06-.878c.118-.333.318-.646.562-.882c.183-.176.478-.387.838-.387c.175.005.312.035.432.092c.002.033.041.626-.097 1.23c-.083.369-.201.636-.369.841a1.076 1.076 0 0 1-.827.387l.001.003zm-76.104 0c-.321 0-.622-.142-.826-.389c-.168-.205-.286-.472-.369-.841a4.692 4.692 0 0 1-.097-1.225v-.006c.121-.057.257-.088.405-.092h.001c.386 0 .68.21.863.386c.244.235.444.548.562.882c.122.343.141.63.06.878a.638.638 0 0 1-.6.404v.003h.001zm56.594-.439c-.366 0-.679-.184-.781-.46c-.1-.269-.069-.614.091-1.023c.265-.674.882-1.383 1.664-1.446a.708.708 0 0 1 .046-.002l.106.003c.168.004.348.045.52.118c0 .002.059.701-.117 1.406c-.103.41-.258.724-.474.959a1.412 1.412 0 0 1-1.055.445zm-37.083 0c-.418 0-.793-.158-1.057-.444c-.216-.235-.371-.549-.474-.959a4.878 4.878 0 0 1-.117-1.406c.175-.074.354-.114.521-.118h.037c.837 0 1.496.726 1.779 1.446c.16.409.191.753.091 1.022c-.1.273-.416.457-.78.457v.002zm-9.504-.394c-5.246-.185-7.968-1.676-9.328-2.894c-.766-.686-1.191-1.366-1.413-1.816a3.853 3.853 0 0 1-.303-.813l.007-.003c.001 0 .496-.178 1.295-.193l.123-.001c1.769 0 5.371.743 9.618 5.718v.003l.001-.001zm56.09-.003c4.12-4.826 7.642-5.654 9.374-5.717l.153-.002l.205.002c.774.015 1.261.18 1.311.197v.001s-.074.346-.303.812c-.222.449-.647 1.129-1.413 1.815c-1.361 1.219-4.083 2.71-9.329 2.895l.003-.003h-.001zm-50.393-.526c-4.22-.643-6.611-2.454-7.874-3.862c-1.324-1.475-1.72-2.849-1.738-2.913c.008-.002.524-.136 1.3-.156c.056-.002.115-.002.175-.002c.06 0 .122 0 .184.002c2.123.046 5.978 1.008 7.952 6.928h.003l-.002.003zm44.696 0c1.974-5.923 5.829-6.884 7.952-6.931l.185-.002l.175.002c.776.02 1.293.154 1.297.156h.003c-.003.011-.389 1.41-1.738 2.912c-1.267 1.407-3.657 3.22-7.877 3.86l.003.003zm21.667-2.027c-2.348 0-4.022-.468-4.038-.473l-.004-.001l.004-.008c.015-.022 1.836-2.673 5.349-3.375a14.639 14.639 0 0 1 3.096-.274c2.022.031 3.483.441 3.497.446l.004.014c-.001 0 .016.152-.013.344c-.03.194-.113.498-.344.844c-.406.61-1.354 1.454-3.564 2.007a16.295 16.295 0 0 1-3.98.477l-.007-.001zm-88.03 0c-1.383 0-2.725-.16-3.987-.476c-2.21-.552-3.158-1.396-3.564-2.007a2.116 2.116 0 0 1-.344-.845a1.436 1.436 0 0 1-.01-.358l.01-.004c.006-.001 1.467-.411 3.488-.442l.242-.002c.976 0 1.936.093 2.855.276c3.512.703 5.333 3.353 5.351 3.38l.001.003l-.004.001c-.02.003-1.693.473-4.04.473l.002.001zm78.233-3.56c-.364 0-.667-.18-.771-.46c-.102-.275-.075-.616.081-1.011c.266-.675.884-1.383 1.664-1.447l.046-.001l.106.002c.169.004.349.045.521.118c0 .002.059.694-.117 1.394c-.106.422-.261.739-.474.969c-.26.283-.633.437-1.057.437l.001-.001zm-68.436 0c-.423 0-.798-.154-1.058-.435c-.213-.23-.368-.548-.473-.969a4.812 4.812 0 0 1-.117-1.395c.175-.074.354-.114.521-.118l.037-.001c.835 0 1.496.727 1.779 1.446c.156.396.183.736.081 1.011c-.102.281-.406.461-.77.461zm-7.367-1.011c-.032-.008-1.992-.512-3.989-1.742c-1.848-1.137-4.108-3.15-4.384-6.277v-.001l.004-.001s.172-.042.426-.051l.112-.002c.552 0 1.682.155 3.049 1.194c1.74 1.327 3.347 3.64 4.783 6.883l-.001-.003zm83.17 0c1.435-3.243 3.044-5.557 4.783-6.88c1.23-.936 2.265-1.165 2.916-1.192c.041-.002.079-.002.116-.002l.129.002c.252.01.423.051.43.053v.006c-.276 3.123-2.536 5.135-4.384 6.272c-1.993 1.224-3.95 1.73-3.993 1.74l.003.001zM104.09 143c-.012-.005-1.41-.564-3.156-2.028c-1.628-1.364-3.915-3.82-5.572-7.777c.001 0 .381-.203.962-.239a4.073 4.073 0 0 1 .256 0c.804.023 2.028.357 3.384 1.821c1.559 1.682 2.95 4.447 4.135 8.217l.003.01l-.01-.003l-.002-.001zm73.543-.01c1.183-3.765 2.574-6.53 4.133-8.212c1.357-1.464 2.581-1.798 3.369-1.82l.17-.003a2.531 2.531 0 0 1 1.064.243c-1.658 3.957-3.945 6.412-5.573 7.776c-1.746 1.464-3.144 2.023-3.158 2.029l-.012.004l.003-.017h.004zm12.47-.353c-.61 0-1.006-.137-1.176-.407c-.215-.342.045-.781.13-.907c.429-.637 1.428-1.28 2.695-1.28h.055c.265.004.541.04.798.104l.001.003c.001.009.083.62-.184 1.239c-.163.374-.713 1.248-2.319 1.248zm-98.476 0c-1.607 0-2.157-.872-2.319-1.247a2.586 2.586 0 0 1-.184-1.236l.001-.007a3.56 3.56 0 0 1 .799-.105h.055c1.267 0 2.266.643 2.695 1.28c.085.126.346.565.13.907c-.174.271-.568.408-1.177.408zm102.036-4.49c-.95 0-1.573-.06-1.579-.061l-.001-.001c0-.007.034-1.179 1.068-2.306c.975-1.062 3.065-2.356 7.493-2.486h.003v.006c-.001.005-.133 1.017-.599 2.078c-.429.975-1.24 2.192-2.671 2.452a21.763 21.763 0 0 1-3.713.314l-.001.004zm-105.596 0c-.898 0-2.27-.055-3.714-.317c-1.431-.26-2.243-1.477-2.671-2.452a8.447 8.447 0 0 1-.599-2.085h.004c4.428.13 6.519 1.424 7.493 2.486c1.006 1.096 1.066 2.235 1.068 2.307h-.003c-.007 0-.63.06-1.58.06l.002.001zm100.983-4.607a58.64 58.64 0 0 1-.248-5.029c0-2.492 2.657-3.489 2.77-3.531l.004-.001c-.007.05-.129.911-.25 1.919c-.094.784-.252 2.199-.252 2.873c0 .696-.485 1.547-1.009 2.361c-.5.776-1.005 1.402-1.01 1.408l-.003.004l.003-.003l-.005-.001zm-96.373 0c-.006-.008-.512-.633-1.011-1.409c-.524-.815-1.009-1.665-1.009-2.361c0-.672-.158-2.089-.252-2.873c-.12-.995-.24-1.846-.25-1.919l.004.001c.112.041 2.769 1.038 2.769 3.53c0 2.496-.246 5.005-.248 5.03v.004h-.003v-.003zm99.82-.237a.322.322 0 0 1-.145-.031a.305.305 0 0 1-.129-.149c-.064-.157-.05-.33-.001-.594c.086-.463.3-1.072.675-1.915a39.496 39.496 0 0 1 1.438-2.857l.008-.009a33.288 33.288 0 0 1 2.399-2.657c.775-.765 1.504-1.383 2.164-1.838c.835-.576 1.482-.848 2.035-.858h.003c.182 0 .327.023.459.066l.004.002v.002s.122 1.078.029 2.385c-.126 1.756-.561 3.071-1.293 3.909c-.804.918-2.179 1.959-3.873 2.93c-1.526.875-2.906 1.475-3.691 1.606c-.027 0-.054.003-.083.003l.001.005zm-103.264 0a.457.457 0 0 1-.083-.007c-.786-.131-2.165-.731-3.691-1.606c-1.694-.971-3.07-2.012-3.874-2.93c-.732-.838-1.168-2.153-1.293-3.909a14.562 14.562 0 0 1 .029-2.387c.137-.046.283-.068.438-.068c.588.01 1.215.274 2.063.858c.661.455 1.389 1.074 2.164 1.838a33.059 33.059 0 0 1 2.399 2.657l.011.013c.088.158.845 1.524 1.436 2.853c.374.844.589 1.452.674 1.915c.049.264.063.437-.001.594a.298.298 0 0 1-.128.149a.357.357 0 0 1-.146.03h.002z\"></path><path fill=\"#FFAD2D\" d=\"M233.443 32.325l-.785.313l-.308.123l-.951-.053l-.891.428l-1.58 1.079l-.069.05l-.589.154l-.547-.236l-.311.142l-.107.64l-.296.46l-.364.256l-1.261.129l-1.063.549l-1.383-.37l-.643.252l-1.366 1.231l-.698.33l-.244-.014l-.926-.047l-.391.128l-.584.564l-1.105.086l-.344.238l-.54 1.087l-.584.603l-.335.071l-.362-.133l-.272.048l-.123.696l-.264.291l-.74.255l-.591.493l-.519.266l-.695-.017h-.159l-.692.382l-1.302.114l-.541.517l-.119.11l-.253.153l-.413.247l-.102.061l-.498-.089l-.583.231l-.236-.363l-.404.242l-.535.023l-.666-.296l-.507-.226l-.371.054l-.129.647l-.013.068l-.39.519l-.728.441l-.099.129l-.828 1.069l-1.574 1.655l-1.331.676l-1.38.42l-.966.793l-2.533 1.256l-3.998 1.989l-.818.262l-1.173.188l-2.092.77l-1.846.557l-.103.031l-.365.111l-2.603.787l-1.212-.128l-.718.26l-1.868-.207l-1.299.026l-.822.171l-1.546.741l-2.609 1.254l-.862.788l-1.342.7l-1.572.498l.003-.66l-.009-.028l-.545.172l-.394.124l-1.275.197h-.709l-.44-.128l-.068.023l-2.606.859l-2.906.281l-1.454.467l-1.087-.018l-.679.203l-1.332.163l-.476-.127l-.107-.029l-3.917.17l-1.791-.202l-.854.194l-1.432-.482l-2.09-.242l-.488-.146l-1.098-.326l-.497.286l-.372.04l-.889-.323l-.32-.008l-.734.265l-.422-.108l-.393-.313l-.921-.137l-.561-.471l-3.134.415l-.85-.25l-2.851-.831l-.454.023l-.565.424l-.849.31l-.737.191l-1.004.035l-1.166-.306l-1.202-.583l-.444-.106l-.991.1l-.303.028l-1.822-.977l-2.348-1.468l-1.593-.765l-.598-.097l-.08.284l.297.935l.101.924l-.031.854l-.016.529l.149.475l.575.637l.24.64l.175 1.762l-.002 1.787l-.28 2.851l-.094.434l-.334 1.477l-.305 1.356l-1.182 3.611l-.325.448l-.797.543l-1.807 1.229l-1.33.767l-.421.174l-1.08.081l-.673-.035l-.838-.453l-.822-.212l-1.077-.775l-1.198-.248l-1.314-.759l-.342-.411l-.715-.067l-.992-.298v-.002l-.364-.109l-.252-.073l-1.265-.035l-1.18-.544l-.621-.15l-.849-.043l-.888.413v-.001l-.45.21l-.569-.226l-.412.026l-.466.705l-.07.109l-.321.17l-.4-.006l-.313-.008l-.339.148l-.456.198v.001l-.403.176l-.197.085l-.003-.003l-.121.024l-.215.037l-.267.051l-.47-.275l-.25-.147l-.419-.085l-.225.163l-.045.767l-.206.459l-.653.578l-.664.585l-.463.682l-1.225 2.797l-.768 1.128l-.238.263l-.803.885l-.712.552l-1.64 1.272l-1.553.58l-1.338.273l-.651.002l-1.232-.164l-1.108-.34l-1.217-.761l-1.334-1.073l-1.932-1.908l-.273-.165l-.057-.038l-.608-.389l-.451.012l-.177.291l-.097.421l-.082.373l-.221 2.122l.016.123l.116.874l1.467 2.05l.453 1.089l.074.125l.303.508l.231.388l.023.039l.501 1.496l-.352.844l.178.566l-.446.346l-.081.488l1.317 1.651l.287.728l-.321 1.01l-.512.557l-.143.152l.072.427l.606.545l1.03.917l.549 1.362l.418.365l.485-.103l.27.206l.409-.007l.403.403l.261.126l.412.205l.326.424l.072 1.304l.607 1.62l.009.878l.003.125l.378.649l.119.513l-.202 1.356l.482.436l.522-.107l.337.053l.542.451l.656 1l.642-.094l.407.196l1.967 1.778l.446.225l.025.014l.321.161l.399.403l.619-.411l.069-.007l.673-.059l.295.199l.568.383l.745-.01l1.615.495l.706.181l1.42.882l.604.373l.357.291l.475.387l.948.408l.813.194l.44.105l.332.128l.008-.021l.005.001l-.008.021l1.762.674l.954.223l.882.325l.642.235l.472.008l.667-.561l.645-.037l.537.134l.523-.088l.828-.51l.162-.24l.587-.28l1.981-.246l.579.188l1.487-.647l.996.277l.882-.313l1.926.428l.512.36l.572.655l.07.003l.637.012l-.266.444l.841.882l.76 1.148l.052.152l.552 1.621l.411.574l.287.801l.014.523l-.447.341l-.074.194l-.025.072l.09.218l.169-.092l.321-.178l.389-.06l.688.073l.455.048l.718-.357l.476-.237l.764.329l.84-.009l.353.157l.998.452l.51.048l.188-.124l.12-.285l-.062-.332l-.382-.441l-.843-.979l-.346-.504l-.263-.729l-.082-.931l-.058-.628l.105-.826l.226-.294l.167-.656h.003l.043-.171l.469-.622l1.241-.798l1.334-1.194l1.054-.695l1.087-.471l.029-.132l.121.049l2.764-.94l.045-.005l1.231-.214l8.307.585l.308-.093l.001-.002l.277-.777l.149-.144l.099-.094l.913-.402l.427-.061l1.185.292l.485.12l.777-.436l.551.009l1.139-.622l.704.018l.268-.107l1.371-.985l1.32-.379l.344-.182l.121-.067l1.353-.715l.86-.66l.742-.394l.813-.21l2.126-.15l.428-.712l.914-.122l.552-.623l.632-.257l.453-.652l.38-.547l.53-.307l1.7-.107l2.015.249l.267-.161l.455-1.625l.476-.305l1.284-1.871l.004-.682l.001-.569l.211-.811l-.144-1.463l.17-1.482l.798-1.883l.703-.76l1.134-.767l.576-.251l.816-.137v-.002l.12-.02l.208-.036l2.811-.038c.039-.029 1.022-.014 1.022-.014l.937-.012l2.371.422l.169.03l.802.259l.924.719l.979.956l.183.179l.634.267l.191.084l.524-.084l.746-.388l.562-.475l.767-.419l.019-.026l.431-.65l.013-.013l.01.002l.001-.004l-.007-.001l.17-.258l1.483-.577l1.743-.102l.196-.106l.109-.058l.46-.541l.432-.004l1.045.378l.735-.146l.583.233l.453-.054l.855-.102l.918.646l.535.068l1.886 1.103l.098.016l.051.009l.108.018l.224-.067l.333-.096l.044-.013l.042.058l.214.303l.294.042l.348-.464l-.138-.211l-.052-.077l-.674-.137l-.605-1.034l.576-.62l-.904-1.109l-.15-.184l-.051-.078l-.312-.474l-1.582-2.412l-2.06-1.645l-.001.001l-.721-.577l-.005-.003l-.253-.199l-1.101-1.119l-.786-1.044l-.103-.225l-.162-.354l-.471-1.026l-.821-.632l-.668-.731l-.033-.043l-1.38-1.875l-.227-.315l-.326-.188l-.689-.005l-.065-.065l-.039-.041l.023-.024l.33-.328l.368-.093l.159-.363l-.703-2.035l-.005-.071l-.052-.65l.573-2.952l.073-.36l.976-1.986l.605-.495l.66-1.297l.565-.83l.541-.527l.095-.056l.978-.592l.822-.115l.783-.111l1.366.421l1.3-.025l.254-.027l.59-.068l.97-.306l.458-.283l.238-.364l.495-1.662l.159-.529l.306-.575l1.768-2.036l1.337-1.236l3.006-2.204l1.472-.879l.751-.449l6.709-2.982l1.743-1.767l.908-.919l1.607-1.079l1.88-.77l1.618-1.281l.353-.445l.446-1.435l.371-.089l.335-.725l.095-.206l1.321-.931l.149-.074l5.129-2.57l.745.102l.399-.598l1.492-.25l.275-.046l.368-.184l.313-.533v-.105l.043-1.425l.318-.385l.174-.939l.164-.216l.171-.225l.423-.297l-.073-.177l.013.017z\"></path></g>'},cz:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#D7141A\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" d=\"M.5.5h300v100H.5z\"></path><path fill=\"#11457E\" d=\"M150.5 100.5L.5.5v200z\"></path></g>'},de:{viewBox:\"0 0 301 181\",innerHTML:'<g fill=\"none\"><path fill=\"#000\" d=\"M.5.5h300v180H.5z\"></path><path fill=\"#D00\" d=\"M.5 60.5h300v120H.5z\"></path><path fill=\"#FFCE00\" d=\"M.5 120.5h300v60H.5z\"></path></g>'},dj:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#6AB2E7\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#12AD2B\" d=\"M.5 100.5h300v100H.5z\"></path><path fill=\"#FFF\" d=\"M.5.5v200l86.603-50l86.603-50l-86.603-50z\"></path><path fill=\"#D7141A\" d=\"M66.787 75.5l6.205 19.098h20.081l-16.246 11.803l6.205 19.099l-16.246-11.804L50.541 125.5l6.206-19.099L40.5 94.598h20.081z\"></path></g>'},dk:{viewBox:\"0 0 301 227\",innerHTML:'<g fill=\"none\"><path fill=\"#C60C30\" d=\"M.5.5h300v226H.5z\"></path><path fill=\"#FFF\" d=\"M96.791.5h32.354v226H96.791z\"></path><path fill=\"#FFF\" d=\"M300.5 97.323v32.354H.5V97.323z\"></path></g>'},dm:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#006B3F\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFF\" d=\"M.5 81.75h300v12.5H.5z\"></path><path fill=\"#000\" d=\"M.5 69.25h300v12.5H.5z\"></path><path fill=\"#FCD116\" d=\"M.5 56.75h300v12.5H.5z\"></path><path fill=\"#FCD116\" d=\"M131.75.5h12.5v150h-12.5z\"></path><path fill=\"#000\" d=\"M144.25.5h12.5v150h-12.5z\"></path><path fill=\"#FFF\" d=\"M156.75.5h12.5v150h-12.5z\"></path><path fill=\"#D41C30\" d=\"M187.999 75.5c.169 20.71-16.483 37.636-37.193 37.805c-20.71.169-37.636-16.483-37.805-37.193a41.617 41.617 0 0 1 0-.612c-.169-20.71 16.483-37.636 37.193-37.805c20.71-.169 37.636 16.483 37.805 37.193v.612z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.5\" d=\"M149.298 45.897c0-.055 1.203-3.43 1.203-3.43l1.092 3.375s3.663.11 3.663.055s-2.898 2.213-2.898 2.213s1.367 3.872 1.313 3.762c-.055-.11-3.17-2.323-3.17-2.323s-3.17 2.212-3.115 2.212c.055 0 1.203-3.652 1.203-3.652l-2.843-2.158l3.552-.054zm2.404 59.291c0 .055-1.202 3.43-1.202 3.43l-1.093-3.375s-3.663-.109-3.663-.055s2.898-2.212 2.898-2.212s-1.368-3.873-1.313-3.763c.055.11 3.17 2.325 3.17 2.325s3.17-2.215 3.115-2.215c-.055 0-1.203 3.653-1.203 3.653l2.843 2.158l-3.552.054zm16.228-50.823c0 .055-1.203 3.43-1.203 3.43l-1.095-3.375s-3.66-.11-3.66-.055s2.895-2.212 2.895-2.212s-1.365-3.873-1.31-3.763c.053.11 3.17 2.323 3.17 2.323s3.17-2.212 3.115-2.212c-.055 0-1.203 3.653-1.203 3.653l2.843 2.157l-3.552.054zm10.522 30.762c0 .055-1.202 3.43-1.202 3.43l-1.093-3.375s-3.663-.11-3.663-.055s2.897-2.212 2.897-2.212s-1.367-3.873-1.313-3.763c.055.11 3.17 2.323 3.17 2.323s3.17-2.212 3.115-2.212c-.052 0-1.203 3.652-1.203 3.652l2.843 2.157l-3.551.055zm-53.505.881c0 .055-1.202 3.427-1.202 3.427l-1.093-3.373s-3.663-.112-3.663-.055c0 .055 2.897-2.215 2.897-2.215s-1.367-3.873-1.313-3.76c.055.11 3.17 2.323 3.17 2.323s3.17-2.212 3.115-2.212c-.055 0-1.203 3.65-1.203 3.65l2.843 2.158l-3.551.057zm9.716-31.283c0 .055-1.203 3.43-1.203 3.43l-1.095-3.375s-3.66-.11-3.66-.055s2.895-2.213 2.895-2.213s-1.365-3.873-1.31-3.762c.052.11 3.17 2.323 3.17 2.323s3.17-2.212 3.115-2.212c-.055 0-1.202 3.652-1.202 3.652l2.842 2.157l-3.552.055zm-12.333 11.24c0-.055 1.202-3.43 1.202-3.43l1.093 3.375s3.663.11 3.663.055s-2.898 2.212-2.898 2.212s1.368 3.873 1.313 3.762c-.055-.11-3.17-2.323-3.17-2.323s-3.17 2.213-3.115 2.213c.052 0 1.203-3.653 1.203-3.653l-2.843-2.157l3.552-.054zm10.455 30.708c0-.058 1.203-3.431 1.203-3.431l1.093 3.373s3.662.112 3.662.058c0-.058-2.895 2.212-2.895 2.212s1.365 3.873 1.31 3.76c-.055-.11-3.17-2.323-3.17-2.323s-3.17 2.213-3.115 2.213c.055 0 1.202-3.65 1.202-3.65l-2.842-2.157l3.552-.055zm43.073-31.526c0-.057 1.202-3.43 1.202-3.43l1.093 3.373s3.663.112 3.663.057c0-.057-2.897 2.213-2.897 2.213s1.367 3.872 1.313 3.76c-.055-.11-3.17-2.322-3.17-2.322s-3.17 2.212-3.115 2.212c.055 0 1.203-3.65 1.203-3.65l-2.843-2.158l3.551-.055zm-9.745 31.236c0-.056 1.203-3.431 1.203-3.431l1.092 3.375s3.663.11 3.663.056c0-.056-2.897 2.212-2.897 2.212s1.367 3.873 1.313 3.763c-.055-.112-3.17-2.325-3.17-2.325s-3.17 2.213-3.115 2.213c.055 0 1.203-3.65 1.203-3.65l-2.843-2.157l3.551-.056z\"></path><path fill=\"#009543\" d=\"M125.27 67.33h.179zm32.28 22.725h.179zm-9.407 36.072h.179zm-45.133 0h.179zm-8.242-37.002h.179zm98.874-67.101h-.178zm12.96 35.248h-.178zM174.463 83.06h-.18zM144.27 57.272h-.179zm11.142-34.73h-.178z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M154.853 74.397c1.231-.128 2.583 4.702 3.017 10.789c.435 6.087-.211 11.126-1.442 11.254c-1.232.128-2.583-4.702-3.018-10.79c-.434-6.086.212-11.124 1.443-11.253z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M157.049 74.374c1.303-.135 2.713 4.689 3.15 10.776c.438 6.087-.264 11.131-1.566 11.267c-1.303.136-2.713-4.689-3.15-10.776c-.438-6.088.264-11.132 1.566-11.267z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M155.95 73.802c1.043-.11 2.267 5.256 2.736 11.985c.469 6.729.004 12.273-1.038 12.384c-1.042.11-2.267-5.256-2.736-11.985c-.468-6.73-.004-12.274 1.038-12.384z\"></path><path fill=\"#9C4A00\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M139.447 91.141c1.914-.08 1.083-1.104 2.05-1.649c.966-.544 2.341-.184 2.754.497c.413.681.082 1.349.612 1.358c.532.01 14.982-.597 15.502-.026c.521.57.607 1.694.067 2.131c-.54.442-18.809.646-19.438.184c-.628-.455-1.549-2.382-1.547-2.495z\"></path><path fill=\"#FCD116\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M149.656 92.549c-.035 1.444 2.101 1.035 2.13 2.241c-.064 1.278-3.581.078-3.615-2.26c.146-2.336 3.588-3.491 3.631-2.156c.032 1.107-2.111.73-2.146 2.175z\"></path><path fill=\"#FCD116\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M150.916 92.565c-.035 1.444 2.101 1.035 2.13 2.241c-.064 1.278-3.581.078-3.615-2.26c.146-2.336 3.588-3.491 3.631-2.156c.032 1.108-2.112.731-2.146 2.175z\"></path><path fill=\"#FCD116\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M152.268 92.515c-.035 1.443 2.101 1.035 2.13 2.241c-.064 1.278-3.582.078-3.615-2.26c.146-2.336 3.588-3.491 3.631-2.156c.032 1.107-2.112.73-2.146 2.175z\"></path><path fill=\"#FCD116\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M153.528 92.531c-.035 1.443 2.101 1.035 2.13 2.241c-.064 1.278-3.581.078-3.615-2.26c.146-2.336 3.588-3.491 3.631-2.156c.032 1.108-2.111.731-2.146 2.175z\"></path><path fill=\"#9C4A00\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M159.565 91.11a1.22 1.22 0 0 1 1.193 1.256a1.238 1.238 0 0 1-1.245 1.219a1.22 1.22 0 0 1-1.193-1.256a1.238 1.238 0 0 1 1.245-1.219z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M151.96 85.819c.596-.09 1.193.905 1.335 2.223c.141 1.317-.229 2.458-.824 2.548c-.596.09-1.194-.905-1.334-2.223c-.142-1.317.227-2.458.823-2.548z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M150.121 85.675c.596-.09 1.194.904 1.335 2.222c.141 1.317-.228 2.458-.824 2.548c-.596.09-1.193-.905-1.334-2.222c-.142-1.318.227-2.458.823-2.548z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M148.804 83.32c.596-.09 1.193.905 1.335 2.222c.141 1.317-.229 2.458-.825 2.548c-.596.09-1.193-.905-1.334-2.222c-.141-1.317.228-2.458.824-2.548z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M150.644 82.972c.573-.091 1.163 1.014 1.317 2.467c.155 1.453-.185 2.705-.758 2.796c-.573.09-1.163-1.014-1.317-2.468c-.155-1.454.185-2.704.758-2.795z\"></path><path fill=\"#009543\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M153.232 83.159c.573-.089 1.156.944 1.301 2.307c.145 1.362-.202 2.539-.775 2.627c-.573.088-1.156-.944-1.301-2.307c-.145-1.362.202-2.538.775-2.627z\"></path><path fill=\"#009543\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M151.819 82.308c.573-.089 1.156.944 1.301 2.307c.146 1.362-.202 2.539-.775 2.627c-.573.088-1.156-.944-1.301-2.307c-.145-1.363.202-2.539.775-2.627z\"></path><path fill=\"#009543\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M150.035 81.079c.574-.088 1.156.944 1.301 2.307c.145 1.363-.202 2.539-.775 2.627c-.574.089-1.156-.944-1.301-2.307c-.145-1.362.202-2.539.775-2.627z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M148.385 80.334c.573-.089 1.156.944 1.301 2.307c.146 1.363-.202 2.539-.775 2.628c-.573.088-1.156-.944-1.301-2.307c-.146-1.363.201-2.539.775-2.628z\"></path><path fill=\"#9461C9\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M146.817 62.329s-3.664 3.18-3.253 11.786c.461 8.655 8.099 12.723 8.099 12.723s1.946-2.457 1.72-9.411c-.546-10.167-4.152-14.659-4.152-14.659l-2.414-.439z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M155.242 86.089c.603.018 1.013 1.103.917 2.424c-.096 1.321-.663 2.378-1.265 2.36c-.603-.018-1.013-1.104-.917-2.425c.096-1.32.663-2.377 1.265-2.359z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M153.458 85.619c.603.018 1.013 1.103.917 2.424c-.096 1.321-.663 2.378-1.265 2.36c-.603-.018-1.013-1.103-.917-2.424c.096-1.321.663-2.377 1.265-2.36z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M152.582 83.067c.603.018 1.013 1.104.917 2.425c-.096 1.321-.663 2.378-1.265 2.36c-.602-.018-1.013-1.104-.917-2.425c.096-1.321.662-2.377 1.265-2.36z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M154.454 83.053c.58.013.964 1.205.856 2.662c-.107 1.458-.664 2.629-1.244 2.615c-.58-.013-.963-1.205-.856-2.662c.107-1.458.664-2.628 1.244-2.615zm2.514.645c.58.015.969 1.135.869 2.502c-.1 1.366-.651 2.462-1.231 2.447c-.58-.015-.969-1.135-.869-2.502c.1-1.366.651-2.461 1.231-2.447z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M155.729 82.608c.58.015.969 1.135.869 2.502c-.1 1.366-.651 2.462-1.231 2.447c-.58-.015-.969-1.135-.869-2.502c.1-1.366.652-2.461 1.231-2.447z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M154.194 81.082c.58.015.969 1.135.869 2.501c-.1 1.367-.651 2.462-1.231 2.447c-.58-.015-.969-1.135-.869-2.501c.1-1.367.651-2.463 1.231-2.447z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M152.701 80.055c.58.015.969 1.135.869 2.501c-.1 1.366-.651 2.462-1.231 2.448c-.58-.016-.969-1.135-.869-2.502c.1-1.367.651-2.462 1.231-2.447z\"></path><path fill=\"#D41C30\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M150.845 68.392c1.592-.615 4.558 2.792 6.624 7.609c2.066 4.818 2.45 9.221.858 9.836c-1.592.615-4.558-2.792-6.624-7.609s-2.449-9.221-.858-9.836z\"></path><ellipse cx=\"152.175\" cy=\"68.18\" fill=\"#009543\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1.191\" ry=\"1.348\" transform=\"rotate(-88.991 152.175 68.18)\"></ellipse><ellipse cx=\"153.192\" cy=\"66.503\" fill=\"#009543\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1.19\" ry=\"1.208\" transform=\"rotate(-88.98 153.192 66.503)\"></ellipse><ellipse cx=\"151.562\" cy=\"66.48\" fill=\"#009543\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1.19\" ry=\"1.208\" transform=\"rotate(-88.991 151.562 66.48)\"></ellipse><ellipse cx=\"151.926\" cy=\"65.265\" fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1.118\" ry=\"1.264\" transform=\"rotate(-88.986 151.926 65.265)\"></ellipse><ellipse cx=\"151.779\" cy=\"63.836\" fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1.118\" ry=\"1.264\" transform=\"rotate(-88.986 151.779 63.836)\"></ellipse><ellipse cx=\"150.007\" cy=\"65.523\" fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1.191\" ry=\"1.208\" transform=\"rotate(-88.98 150.007 65.523)\"></ellipse><ellipse cx=\"150.375\" cy=\"64.021\" fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1.166\" ry=\"1.208\" transform=\"rotate(-88.98 150.375 64.02)\"></ellipse><ellipse cx=\"148.375\" cy=\"64.037\" fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1.191\" ry=\"1.348\" transform=\"rotate(-88.98 148.375 64.037)\"></ellipse><ellipse cx=\"150.858\" cy=\"62.086\" fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1.118\" ry=\"1.264\" transform=\"rotate(-88.986 150.858 62.086)\"></ellipse><ellipse cx=\"149.17\" cy=\"62.3\" fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1.166\" ry=\"1.208\" transform=\"rotate(-88.98 149.17 62.3)\"></ellipse><ellipse cx=\"146.601\" cy=\"64.096\" fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1.191\" ry=\"1.208\" transform=\"rotate(-88.991 146.6 64.096)\"></ellipse><ellipse cx=\"147.028\" cy=\"63.235\" fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1.166\" ry=\"1.208\" transform=\"rotate(-88.98 147.028 63.235)\"></ellipse><ellipse cx=\"147.541\" cy=\"62.256\" fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1.166\" ry=\"1.208\" transform=\"rotate(-88.98 147.541 62.256)\"></ellipse><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M151.022 65.251c2.043-.721 5.696 3.344 8.162 9.081c2.465 5.736 2.809 10.97.766 11.692c-2.042.721-5.696-3.345-8.161-9.081c-2.466-5.737-2.809-10.971-.767-11.692z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M157.744 75.29c.378-.18 1.118.642 1.651 1.836c.533 1.194.659 2.308.281 2.488c-.378.18-1.118-.642-1.651-1.836c-.533-1.195-.659-2.309-.281-2.488z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M158.365 77.45c3.203 3.899 2.798 6.375 2.464 8.471c-1.006-2.416-1.556-3.937-4.759-7.837c-3.203-3.9-1.605-6.637-1.384-8.079c.482 1.248.476 3.545 3.679 7.445z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M158.654 80.6c3.203 3.899 2.798 6.376 2.464 8.471c-1.006-2.416-1.556-3.937-4.759-7.837c-3.203-3.9-1.604-6.637-1.385-8.079c.483 1.248.477 3.544 3.68 7.445z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M158.75 83.137c3.28 3.83 2.925 6.314 2.633 8.416c-1.054-2.394-1.634-3.902-4.915-7.733c-3.281-3.832-1.737-6.602-1.546-8.048c.508 1.237.548 3.533 3.828 7.365zm-3.978-13.214c.751-.191 2.121 1.379 3.061 3.506s1.095 4.007.344 4.197c-.75.191-2.121-1.379-3.061-3.506s-1.094-4.006-.344-4.197z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M153.88 72.751c.675-.116 1.814 1.218 2.545 2.979c.731 1.761.776 3.283.102 3.399c-.675.116-1.814-1.218-2.545-2.979c-.731-1.761-.777-3.283-.102-3.399z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M152.428 74.196c.677-.102 1.789 1.256 2.483 3.031c.694 1.776.708 3.299.031 3.4c-.677.102-1.789-1.256-2.483-3.032c-.694-1.775-.708-3.297-.031-3.399zm1.377-4.49c.545-.1 1.497.884 2.125 2.196c.628 1.313.695 2.458.149 2.558c-.545.1-1.497-.883-2.125-2.196c-.627-1.313-.694-2.458-.149-2.558z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M152.668 70.635c.551-.07 1.439.964 1.985 2.308c.545 1.345.54 2.491-.01 2.561c-.551.07-1.439-.964-1.985-2.308c-.545-1.344-.541-2.491.01-2.561z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M152.655 71.558c.947 2.314 1.33 4.394.855 4.644c-.475.25-1.628-1.425-2.575-3.739m1.577-4.546c.551-.07 1.439.964 1.985 2.308c.545 1.345.541 2.491-.01 2.561c-.551.07-1.439-.963-1.985-2.308c-.545-1.344-.54-2.491.01-2.561z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M150.982 68.662c.552-.059 1.417.991 1.933 2.346c.515 1.355.485 2.501-.067 2.561c-.552.06-1.418-.992-1.933-2.347c-.516-1.355-.486-2.501.067-2.56z\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M151.007 68.416c.919 1.563 1.415 3.023 1.104 3.259c-.31.236-1.307-.842-2.227-2.406\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M151.643 67.379c.919 1.563 1.415 3.023 1.104 3.259c-.31.236-1.307-.842-2.227-2.406m3.983-.634c1.281 2.135 1.971 4.13 1.539 4.453c-.432.322-1.822-1.15-3.103-3.285\"></path><path fill=\"#006B3F\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M152.613 66.479c.923 1.726 1.422 3.337 1.112 3.596c-.309.259-1.309-.932-2.232-2.658\"></path><path fill=\"#9461C9\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M152.531 63.979c-.616.621-.013 1.781.551 2.2c.633.573 4.186 4.322 6.692 1.168c-2.008-.037-5.756-4.751-7.243-3.368h0z\"></path><path fill=\"#9461C9\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M152.092 62.129c-.616.621-.013 1.781.552 2.2c.632.574 4.186 4.322 6.692 1.168c-2.009-.037-5.757-4.751-7.244-3.368h0z\"></path><path fill=\"#9461C9\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M151.53 60.356c-.616.621-.013 1.781.552 2.2c.632.573 4.186 4.322 6.692 1.168c-2.008-.036-5.757-4.751-7.244-3.368z\"></path><path fill=\"#9461C9\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M150.31 58.328c-.616.621-.013 1.781.551 2.2c.633.574 4.186 4.322 6.692 1.168c-2.007-.036-5.756-4.75-7.243-3.368z\"></path><path fill=\"#9461C9\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M145.932 56.388c1.27-.945 3.603-1.221 5.42-.296c1.514.742 4.037 3.768 5.934 4.484c-1.335.238-2.147.037-3.001-.373c-1.685 1.22-2.285 1.403-4.002 1.643c-2.388.344-4.37-.277-5.066-1.522c-.709-1.176-.404-3.061.715-3.936z\"></path><ellipse cx=\"148.6\" cy=\"58.284\" fill=\"#D41C30\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1\" ry=\"1.094\" transform=\"rotate(-88.986 148.6 58.284)\"></ellipse><ellipse cx=\"145.271\" cy=\"60.858\" fill=\"#FCD116\" stroke=\"#000\" stroke-width=\"0.5\" rx=\"1\" ry=\"1.525\" transform=\"rotate(-110.341 145.27 60.858)\"></ellipse><circle cx=\"148.541\" cy=\"58.214\" r=\"1\" fill=\"#000\" transform=\"rotate(-88.974 148.54 58.214)\"></circle><path fill=\"#FCD116\" stroke=\"#000\" stroke-width=\"0.375\" d=\"M146.218 59.121c.101.487-.261 1.146-1.045 1.379c-.799.331-1.405 1.081-1.754 2.307c-1.214-2.796-.442-3.979.847-4.266c1.109-.354 1.778-.31 1.952.58z\"></path><circle cx=\"145.055\" cy=\"59.355\" r=\"1\" fill=\"#000\" transform=\"rotate(-93.141 145.055 59.355)\"></circle></g>'},dz:{viewBox:\"0 0 300 200\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M0 0h300v200H0z\"></path><path fill=\"#006233\" d=\"M0 0h150v200H0z\"></path><circle cx=\"150\" cy=\"100\" r=\"50\" fill=\"#D21034\"></circle><g fill=\"#D21034\"><path d=\"M177.951 123.776v-25h-15z\"></path><path d=\"M177.951 123.776l-14.694-20.225l12.135-8.817z\"></path><path d=\"M195.225 100l-23.776 7.726l-4.635-14.266z\"></path><path d=\"M195.225 100l-23.776-7.725l-4.635 14.266z\"></path><path d=\"M177.951 76.223v25h-15z\"></path><path d=\"M150 114.694l23.776-7.725l-4.635-14.266z\"></path><path d=\"M150 114.694l14.694-20.225l12.135 8.817z\"></path><path d=\"M150 85.305l14.694 20.226l12.135-8.817z\"></path><path d=\"M150 85.305l23.776 7.726l-4.635 14.266z\"></path><path d=\"M177.951 76.223l-14.694 20.226l12.135 8.817z\"></path></g></g>'},ee:{viewBox:\"0 0 301 191\",innerHTML:'<g fill=\"none\"><path fill=\"#4891D9\" d=\"M.5.5h300v190H.5z\"></path><path fill=\"#000\" d=\"M.5 63.833h300V190.5H.5z\"></path><path fill=\"#FFF\" d=\"M.5 127.166h300v63.333H.5z\"></path></g>'},eg:{viewBox:\"0 0 301 201\",innerHTML:'<defs><path id=\"IconifyId-17ca80ef3d5-b8efe2-200\" d=\"M18.574 2.844a4.434 4.434 0 0 1-.283.009c-2.068 0-6.873-1.061-8.725-2.652C7.627 1.671 2.743 2.853.708 2.853a1.58 1.58 0 0 1-.283-.029c-.005.464.02.944.048 1.381c.108 1.634.394 3.273.829 4.85c1.369 4.965 4.172 9.184 8.19 12.384c4.022-3.203 6.827-7.426 8.2-12.395a24.38 24.38 0 0 0 .832-4.85c.03-.427.054-.896.05-1.35z\"></path><path id=\"IconifyId-17ca80ef3d5-b8efe2-201\" d=\"M18.574 2.844a4.434 4.434 0 0 1-.283.009c-2.068 0-6.873-1.061-8.725-2.652C7.627 1.671 2.743 2.853.708 2.853a1.58 1.58 0 0 1-.283-.029c-.005.464.02.944.048 1.381c.108 1.634.394 3.273.829 4.85c1.369 4.965 4.172 9.184 8.19 12.384c4.022-3.203 6.827-7.426 8.2-12.395a24.38 24.38 0 0 0 .832-4.85c.03-.427.054-.896.05-1.35z\"></path></defs><g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M.5 100.5h300v100H.5z\"></path><path fill=\"#CE1126\" fill-rule=\"nonzero\" d=\"M.5.5h300v100H.5z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M.5 67.166h300v66.667H.5z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#C09300\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.793\" d=\"M150.5 131.77c6.647 0 13.008-.526 16.738-1.578c1.578-.286 1.578-1.099 1.578-2.152c1.578-.526.765-2.39 1.865-2.39c-1.1.287-1.339-1.865-2.677-1.577c0-1.865-1.865-2.104-3.443-1.579c-3.157 1.052-8.752 1.292-14.06 1.292c-5.308-.239-10.855-.239-14.06-1.292c-1.578-.525-3.442-.286-3.442 1.579c-1.34-.287-1.578 1.865-2.678 1.577c1.1 0 .286 1.864 1.865 2.39c0 1.052 0 1.866 1.626 2.152c3.68 1.052 10.041 1.578 16.688 1.578h0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#C09300\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.423\" d=\"M150.77 101.3l22.829 21.193l-1.625-38.49c-.239-5.833-5.308-4.495-8.991-2.391c-3.73 2.391-7.986 2.391-12.482.813c-4.495 1.578-8.751 1.578-12.481-.813c-3.682-2.104-8.751-3.443-8.99 2.391l-1.626 38.49L150.77 101.3h0z\"></path><path fill=\"#C09300\" fill-rule=\"nonzero\" d=\"M157.147 89.073l.766 18.552l2.151 2.104l-.813-20.417c-.526 0-1.865 0-2.104-.239z\"></path><path fill=\"#C09300\" fill-rule=\"nonzero\" stroke=\"#C09300\" stroke-linecap=\"square\" stroke-width=\"0.358\" d=\"M151.553 105.52l3.204 14.585l-1.053 1.052l-1.1-.813l-1.817-13.006l.765 13.006l-1.052 1.339l-1.052-1.339l.765-13.006l-1.817 13.006l-1.101.813l-1.051-1.052l3.204-14.585z\"></path><path fill=\"#C09300\" fill-rule=\"nonzero\" d=\"M131.657 82.663l-1.578 37.44l-2.678 2.389l1.626-38.49c.765-.526 2.104-1.338 2.63-1.339zm3.206 2.68l-1.339 31.318l-2.677 2.74l1.626-36.163c.526.526 2.105 1.816 2.391 2.104v.001h-.001zm2.917 2.39l-1.052 26.121l-2.152 2.103l1.339-29.801c.526.525 1.578 1.29 1.865 1.577zm3.157 1.34l-1.052 22.262l-2.104 1.707l1.052-24.782c.526.239 1.578.813 2.104.813zm2.916 0l-.766 18.552l-2.151 2.104l.813-20.417c.526 0 1.865 0 2.104-.239zm25.49-6.41l1.578 37.44l2.678 2.389l-1.626-38.49c-.764-.526-2.104-1.338-2.63-1.339zm-3.206 2.68l1.339 31.318l2.677 2.74l-1.626-36.163c-.526.526-2.105 1.816-2.391 2.104v.001h.001zm-2.917 2.39l1.052 26.121l2.152 2.103l-1.339-29.801c-.526.525-1.578 1.29-1.865 1.577zm-3.157 1.34l1.052 22.262l2.104 1.707l-1.052-24.782c-.525.239-1.578.813-2.104.813z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#C09300\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.396\" d=\"M143.327 99.113l-6.36 22.568l8.752 1.339l3.729-16.975zm14.346 0l6.36 22.568l-8.751 1.339l-3.73-16.975z\"></path><path stroke=\"#C09300\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.423\" d=\"M159.777 106.813l-.765 1.864l-4.135-3.949m-2.477 6.559l2.906 4.414m-.906 4.405l.93-4.399l.812-4.474l1.947 2.636l.854-3.04l2.725 2.795l-1.386 5.084l-1.912-3.145l-1.052 3.204l-1.964-3.054m-14.13-8.9l.765 1.864l4.135-3.949\"></path><path stroke=\"#C09300\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.423\" d=\"M144.087 102.14l.865 8.116l2.63-3.443m-1.052 1.337l1.437 4.958m.563-1.821l-2.906 4.414m.907 4.405l-.93-4.399l-.812-4.474l-1.947 2.636l-.854-3.04l-2.725 2.795l1.386 5.084l1.913-3.145l1.052 3.204l1.964-3.054\"></path><path stroke=\"#C09300\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.423\" d=\"M138.83 121.157l1.767-2.481l1.151 3.819l1.578-2.677l1.052 3.204m17.862-1.865l-1.767-2.481l-1.151 3.819l-1.578-2.677l-1.052 3.204\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#C09300\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.423\" d=\"M141.463 121.68c2.151.287 4.543.526 6.408.287c1.051 0 1.816 1.817-.287 2.104c-1.864.238-4.782 0-6.36-.288c-1.339-.239-4.256-.765-6.121-1.292c-1.865-.812-.525-2.389.526-2.151a35.005 35.005 0 0 0 5.834 1.34h0zm18.077 0c-2.152.287-4.543.526-6.36.287c-1.1 0-1.865 1.817.239 2.104c1.865.238 4.782 0 6.359-.288c1.339-.239 4.256-.765 6.121-1.292c1.866-.812.527-2.389-.526-2.151a34.969 34.969 0 0 1-5.833 1.34h0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#C09300\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.423\" d=\"M134.863 120.63c-1.626-.287-2.391 1.577-1.864 2.629c.239-.526 1.339-.526 1.578-1.052c.286-.812-.239-.812.286-1.577h0zm6.361 4.89c0-1.051 1.051-.922 1.051-1.974c0-.526-.286-1.339-.812-1.339s-1.053.526-1.053 1.052c-.239 1.052.814 1.21.814 2.261zm7.57-3.027c1.577 0 1.421 2.104.655 3.157c0-.765-1.339-1.052-1.339-1.577c0-.814 1.209-.814.684-1.58h0zm17.343-1.863c1.626-.287 2.392 1.577 1.865 2.629c-.239-.526-1.339-.526-1.578-1.052c-.287-.812.239-.812-.287-1.577h0zm-6.36 4.89c0-1.051-1.051-.922-1.051-1.974c0-.526.286-1.339.813-1.339c.526 0 1.052.526 1.052 1.052c.239 1.052-.814 1.21-.814 2.261h0zm-7.57-3.027c-1.577 0-1.421 2.104-.656 3.157c0-.765 1.339-1.052 1.339-1.577c0-.814-1.209-.814-.683-1.58z\"></path><path stroke=\"#C09300\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.297\" d=\"M135.39 121.157c.527 0 1.339.239 1.578.525l-1.578-.525zm2.627.813c.287 0 1.339.239 1.865.525l-1.865-.525zm9.567 1.05c-.526 0-1.578 0-1.865.238l1.865-.238zm-2.917 0c-.286-.287-1.339-.287-1.865 0h1.865z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#C09300\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.297\" d=\"M165.613 121.157c-.526 0-1.292.239-1.578.525l1.578-.525zm-2.63.813c-.286 0-1.339.239-1.865.525l1.865-.525zm-9.566 1.05c.526 0 1.578 0 1.865.238l-1.865-.238zm2.917 0c.286-.287 1.339-.287 1.865 0h-1.865z\"></path><path stroke=\"#C09300\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.423\" d=\"M156.963 102.14l-.865 8.116l-2.63-3.443\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#C09300\" stroke-width=\"0.383\" d=\"M150.493 109.577c10.881-8.369 9.948-20.628 9.948-20.628a4.27 4.27 0 0 1-.847.086c-2.282 0-7.726-1.306-8.996-2.964c-1.36 1.501-6.923 2.964-9.191 2.964c-.287 0-.574-.029-.847-.086c0 0-.947 12.258 9.933 20.628h0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M159.573 89.846a4.434 4.434 0 0 1-.283.009c-2.069 0-6.873-1.061-8.725-2.652c-1.94 1.47-6.824 2.652-8.859 2.652a1.58 1.58 0 0 1-.283-.029c-.005.464.019.944.048 1.381c.107 1.633.394 3.273.829 4.851c1.369 4.965 4.172 9.184 8.191 12.385c4.022-3.203 6.828-7.427 8.2-12.396a24.38 24.38 0 0 0 .832-4.85c.03-.427.053-.896.05-1.351z\"></path><g transform=\"translate(141 87)\"><mask id=\"IconifyId-17ca80ef3d5-b8efe2-202\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-200\"></use></mask><path fill=\"#C09300\" fill-rule=\"nonzero\" d=\"M-1.9-2.698h7.857v27.096H-1.9z\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-202)\"></path></g><g transform=\"translate(141 87)\"><mask id=\"IconifyId-17ca80ef3d5-b8efe2-203\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-201\"></use></mask><path fill=\"#C09300\" fill-rule=\"nonzero\" d=\"M12.829-2.698h8.275v27.096h-8.275z\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-203)\"></path></g><path stroke=\"#C09300\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.423\" d=\"M154.367 108.15l-1.437 4.958\"></path><path fill=\"#C09300\" fill-rule=\"nonzero\" d=\"M134.947 125.36c-.178-.034-.271-.175-.227-.341c.055-.203.217-.319.371-.265c.098.035.276.215.277.28c.001.074-.093.251-.134.251c-.018 0-.045.016-.061.034c-.033.039-.137.058-.226.041zm18.308 1.307c-.066-.024-.172-.173-.172-.241c.001-.129.191-.339.31-.341c.058 0 .218.083.278.145c.108.113.085.298-.051.403c-.067.052-.267.071-.365.034zm.122.827c-.14-.047-.191-.116-.203-.271c-.012-.162.004-.187.175-.28l.122-.066l.116.051c.16.071.231.148.237.256c.006.116-.08.234-.213.294c-.119.052-.126.053-.234.016zm-18.087-1.022c.086-.074.087-.149.004-.185c-.052-.022-.083-.017-.187.033s-.123.069-.117.119c.007.057.051.076.207.09c.014.001.056-.024.093-.057zm2.81 1.468a4.308 4.308 0 0 0-.414-.099c-.35-.067-.894-.19-1.041-.235a4.11 4.11 0 0 0-.251-.065a3.573 3.573 0 0 1-.439-.129a6.396 6.396 0 0 0-.376-.104a3.287 3.287 0 0 1-.358-.106a.598.598 0 0 0-.155-.044a.384.384 0 0 1-.131-.044a.813.813 0 0 0-.244-.059c-.185-.017-.322-.082-.401-.189c-.066-.091-.068-.162-.007-.288a.473.473 0 0 0 .048-.139c0-.023.022-.061.05-.084c.027-.023.049-.052.049-.065c0-.028.116-.197.185-.268c.09-.093.277-.183.382-.184c.062-.001.116-.017.143-.043c.03-.029.098-.047.218-.056l.174-.014l.068-.121a.532.532 0 0 0 .069-.193a.388.388 0 0 1 .039-.144c.021-.04.053-.137.072-.217c.07-.301.12-.468.15-.497c.043-.043.039-.061-.036-.154c-.04-.05-.088-.082-.122-.081a.483.483 0 0 0-.263.095c-.086.09-.199.149-.285.15a.422.422 0 0 1-.328-.183c-.045-.078-.045-.082.007-.188c.034-.069.078-.118.122-.134c.104-.039.368-.02.429.032c.043.037.076.041.214.025a.506.506 0 0 0 .175-.038c.007-.011.062-.027.123-.037c.061-.009.116-.032.123-.05c.007-.019.053-.041.101-.05a.247.247 0 0 0 .116-.05c.016-.019.061-.034.1-.035c.055 0 .081.017.114.076c.037.068.039.095.012.234c-.017.087-.05.197-.076.247a.478.478 0 0 0-.045.183a.222.222 0 0 1-.048.149a.203.203 0 0 0-.049.11c0 .03-.017.072-.038.092a.477.477 0 0 0-.064.188a.751.751 0 0 1-.056.199a.534.534 0 0 0-.046.16c-.008.062-.031.125-.051.141c-.02.016-.035.064-.035.105c0 .042-.02.116-.045.164a.797.797 0 0 0-.062.216a.544.544 0 0 1-.048.176a.51.51 0 0 0-.048.168a.527.527 0 0 1-.053.175c-.033.05-.031.062.015.122c.074.098.291.168.512.166c.172-.001.181-.005.243-.081a.453.453 0 0 0 .081-.193a.684.684 0 0 1 .051-.18a.534.534 0 0 0 .034-.202c-.001-.127-.007-.141-.091-.205c-.083-.064-.087-.074-.06-.133c.028-.061.142-.113.249-.114a.222.222 0 0 0 .1-.046a.44.44 0 0 1 .113-.062a.56.56 0 0 0 .148-.102c.109-.098.177-.101.232-.008c.035.058.034.076-.003.18a.792.792 0 0 0-.041.222c.001.059-.014.123-.033.145a.429.429 0 0 0-.059.147c-.014.06-.041.151-.062.204a.628.628 0 0 0-.037.193a.5.5 0 0 1-.049.192c-.071.137-.062.22.028.26c.021.009.066.032.101.051a.406.406 0 0 0 .163.034c.055 0 .149.021.208.046c.06.025.179.052.267.06c.155.014.159.012.229-.064a.515.515 0 0 0 .102-.214l.045-.19a.31.31 0 0 0-.094-.284c-.137-.127-.08-.297.1-.299a.817.817 0 0 0 .344-.138c.15-.142.244-.179.336-.133c.073.036.096.136.051.216a1.029 1.029 0 0 0-.068.205a8.45 8.45 0 0 1-.083.314a5.456 5.456 0 0 0-.088.361a3.409 3.409 0 0 1-.085.333a.94.94 0 0 0-.046.188a.63.63 0 0 1-.052.166c-.083.195-.208.233-.469.145zm-3.225.012c-.165-.155-.139-.269.106-.451c.104-.078.168-.069.287.04c.184.168.192.274.029.418c-.08.071-.115.086-.209.087c-.098.001-.125-.011-.213-.094zm1.016.309a.287.287 0 0 1-.208-.363c.043-.145.068-.159.28-.161c.238-.002.285.037.287.247c.001.118-.008.146-.067.2a.355.355 0 0 1-.292.077zm29.702.026c-.076-.063-.091-.091-.092-.172c-.001-.137.078-.237.249-.315c.227-.103.32-.089.406.062c.114.201.108.282-.028.417c-.075.075-.089.079-.262.081c-.169.001-.189-.003-.273-.073zm-28.353.383c-.121-.032-.184-.123-.186-.269c-.001-.111.007-.129.085-.19a.454.454 0 0 1 .193-.082c.089-.012.121-.004.193.046c.184.129.223.257.116.381c-.113.131-.22.162-.401.114zm7.306.327l-.093-.081l.013-.201c.007-.11.029-.244.049-.297a.963.963 0 0 0 .036-.27a1.047 1.047 0 0 1 .034-.276c.019-.057.051-.268.071-.47c.02-.202.047-.395.059-.428a.7.7 0 0 0 .022-.198a1.233 1.233 0 0 1 .044-.294c.029-.1.045-.24.045-.384c0-.125.011-.265.025-.311a.6.6 0 0 0 .025-.141c-.001-.059.086-.197.123-.197c.012 0 .063.058.113.128c.05.071.15.183.223.25c.32.296.306.27.202.367c-.038.036-.081.065-.094.065c-.014 0-.055.031-.092.068c-.055.056-.066.09-.066.199a.743.743 0 0 1-.038.227c-.035.087-.07.411-.083.757a.498.498 0 0 1-.028.168c-.013.02-.028.193-.034.385c-.006.192-.021.365-.034.384a.342.342 0 0 0-.025.131c-.004.195-.047.372-.105.433c-.046.048-.082.06-.177.062c-.103.005-.136-.008-.215-.076zm9.684-.221l.131-.038l-.009-.125l-.009-.125l-.104-.006c-.087-.005-.115.005-.169.062c-.096.101-.107.173-.034.227l.062.044l.132-.039zm-.759.518c-.052-.072-.055-.089-.031-.221c.014-.079.028-.214.029-.299a.617.617 0 0 1 .032-.209a.315.315 0 0 0 .028-.133c-.001-.063.021-.102.098-.175c.055-.052.099-.106.099-.121c0-.031.195-.182.236-.183c.016 0 .049-.022.074-.049a.172.172 0 0 1 .112-.049a.252.252 0 0 0 .133-.056c.062-.052.066-.068.064-.264a1.066 1.066 0 0 0-.043-.318a.507.507 0 0 1-.035-.162a3.224 3.224 0 0 0-.017-.304c-.02-.224-.029-.259-.088-.317c-.036-.036-.079-.065-.096-.065c-.032 0-.149-.137-.133-.155c.172-.184.479-.473.513-.484c.07-.022.176.025.203.091c.013.033.032.176.042.318c.009.142.029.324.043.403c.014.079.039.327.055.551c.016.224.04.445.054.492c.014.046.034.251.045.455c.011.204.032.413.046.464c.048.175.249.28.392.205c.024-.012.131-.037.238-.054c.249-.04.253-.048.231-.402c-.015-.246-.023-.28-.083-.354a.304.304 0 0 0-.129-.096c-.068-.016-.111-.074-.112-.152c0-.055.129-.185.21-.21a.758.758 0 0 0 .165-.109c.142-.116.235-.124.323-.03c.056.061.062.092.081.413c.015.248.032.368.061.419c.03.052.042.138.044.315c.001.166.015.271.043.332c.035.079.036.098.005.165c-.019.042-.043.1-.051.129c-.02.067-.058.078-.288.084a1.579 1.579 0 0 0-.287.033a1.84 1.84 0 0 1-.325.033c-.528.013-1.249.074-1.288.109c-.029.026-.114.035-.337.037l-.298.003l-.058-.08zm-11.259-1.981c.066-.046.071-.107.01-.123c-.077-.019-.14-.126-.145-.247c-.01-.218-.112-.23-.302-.037a2.177 2.177 0 0 1-.185.167l-.086.065l.062.063c.105.105.222.147.414.148c.124.002.194-.01.232-.036zm.776 2.377c-.038-.013-.069-.031-.069-.041c0-.023-.237-.168-.274-.167c-.015 0-.034-.029-.042-.065a3.209 3.209 0 0 0-.067-.224c-.05-.152-.049-.268.002-.299c.037-.023.024-.097-.026-.139c-.03-.025-.108-.044-.219-.051c-.235-.015-.262-.022-.344-.091c-.059-.049-.076-.088-.094-.217a.45.45 0 0 0-.066-.202c-.046-.048-.124-.06-.146-.024c-.007.012-.047.028-.089.036c-.051.01-.084.036-.1.078a.761.761 0 0 1-.088.146c-.062.079-.072.083-.225.085a.828.828 0 0 1-.244-.031c-.098-.038-.207-.055-.479-.074c-.39-.026-.57.003-.6.097c-.042.131-.356.4-.494.423a1.58 1.58 0 0 0-.208.052c-.059.019-.118.029-.132.021a2.261 2.261 0 0 0-.292-.047c-.279-.034-.381-.081-.382-.174c-.001-.057.17-.143.236-.119c.071.026.188.024.188-.002c0-.012.061-.035.135-.051a.432.432 0 0 0 .165-.063c.017-.019.063-.035.102-.036c.059 0 .086-.022.146-.114a.518.518 0 0 0 .073-.147c0-.019.022-.061.049-.095a.256.256 0 0 0 .048-.151a.691.691 0 0 1 .036-.195c.035-.099.034-.115-.02-.273a.61.61 0 0 0-.089-.186c-.017-.01-.045-.056-.061-.102c-.044-.122.003-.232.18-.421a.286.286 0 0 0 .051-.115c.017-.081.073-.126.158-.127c.062-.001.18.129.181.199a.22.22 0 0 0 .041.107c.024.033.05.141.064.274c.024.228.065.463.095.552c.026.077.162.182.235.182c.035 0 .132.015.215.034c.083.018.215.033.295.032c.144-.001.145-.001.292-.149a.793.793 0 0 0 .147-.175c-.004-.096-.326-.269-.585-.314c-.091-.016-.154-.127-.135-.234c.017-.091.138-.25.256-.335c.045-.033.194-.091.332-.129l.25-.07l.069-.135c.132-.257.409-.461.631-.463c.111-.001.134.012.223.122l.103.127c.098.121.153.264.139.358c-.014.088.023.228.061.228c.034 0 .399.354.416.405c.009.026.026.047.038.046c.031 0 .076.16.078.276c.002.172-.036.197-.303.202a1.619 1.619 0 0 0-.344.038l-.112.033l-.006.133c-.008.18.037.23.233.259a.53.53 0 0 1 .174.046c.014.013.055.024.091.024a.24.24 0 0 1 .114.033c.044.031.049.065.052.341l.003.308l.082.024a.344.344 0 0 1 .112.053c.059.056.137.032.169-.051c.016-.043.039-.1.051-.127c.011-.026.031-.189.044-.36c.012-.172.038-.355.057-.408c.019-.053.046-.226.059-.383c.014-.158.037-.302.053-.32c.016-.019.033-.169.039-.341c.009-.247.02-.318.054-.355c.036-.039.043-.094.04-.345l-.004-.298l-.1-.083c-.067-.055-.101-.103-.101-.143c-.001-.087.023-.112.148-.158l.212-.077a.395.395 0 0 0 .124-.065a.595.595 0 0 1 .218-.139c.019 0 .053.019.077.043c.054.056.059.284.008.379a.568.568 0 0 0-.035.228a.915.915 0 0 1-.036.264a2.955 2.955 0 0 0-.064.514c-.014.225-.039.432-.056.461a.596.596 0 0 0-.028.216a2.43 2.43 0 0 1-.035.368c-.02.112-.047.301-.059.42a1.522 1.522 0 0 1-.058.298a1.084 1.084 0 0 0-.049.254a.823.823 0 0 1-.06.255a.37.37 0 0 0-.045.126c.001.061-.129.283-.165.284c-.017 0-.041.021-.055.046c-.014.025-.059.052-.101.061a.456.456 0 0 0-.144.062a.695.695 0 0 1-.414.047zm21.033-1.891c.155-.067.199-.148.138-.258c-.052-.094-.128-.132-.252-.124c-.144.009-.262.104-.261.209c.001.068.018.092.108.152a.73.73 0 0 0 .126.072a.793.793 0 0 0 .141-.051zm-1.995.018c.107-.049.119-.064.119-.134c0-.109-.099-.237-.245-.318c-.155-.086-.211-.084-.28.008c-.054.072-.054.078-.015.184a.741.741 0 0 1 .041.146c0 .048.152.168.212.168a.57.57 0 0 0 .168-.054zm-.889.084a.725.725 0 0 0-.003-.207c-.015-.105-.034-.146-.094-.198c-.09-.078-.137-.07-.244.038c-.069.07-.079.097-.082.223c-.004.198.023.223.237.221c.17-.001.17-.001.186-.077zm-1.986.372c.086-.044.107-.092.085-.198a.186.186 0 0 0-.331-.078a.283.283 0 0 0-.054.094c0 .012-.016.035-.036.052c-.029.023-.031.041-.008.081a.227.227 0 0 0 .056.068c.047.03.214.019.288-.019zm3.16.285c.07-.054.076-.13.014-.184c-.073-.064-.205-.063-.341.002c-.081.039-.104.063-.104.11c0 .04.02.067.057.081c.085.032.329.026.374-.009zm-3.876 1.157c-.029-.027-.02-.145.013-.17a.353.353 0 0 1 .093-.043a.334.334 0 0 0 .1-.05a.428.428 0 0 1 .162-.05c.247-.036.462-.232.463-.421a.3.3 0 0 0-.017-.121c-.028-.043-.46-.017-.694.042c-.055.014-.083.003-.15-.061l-.083-.078l-.012-.353l-.012-.353l.108-.119a1.96 1.96 0 0 0 .167-.215a.48.48 0 0 1 .076-.102c.009-.004.06-.046.112-.093c.105-.093.277-.188.394-.216a.218.218 0 0 0 .1-.053c.014-.02.059-.038.099-.042c.061-.005.083.01.143.101c.039.059.072.14.074.179c.002.04.021.115.042.168c.021.052.045.158.055.233c.009.076.03.153.045.171c.038.044.34.065.393.027c.029-.021.042-.086.05-.248c.006-.126.027-.251.048-.294a.735.735 0 0 0 .054-.153c.024-.118.222-.391.34-.469c.057-.038.118-.082.135-.098a.273.273 0 0 1 .087-.046c.075-.023.092-.054.091-.16c-.001-.091-.077-.197-.234-.324c-.038-.031-.07-.075-.07-.098c-.001-.068.073-.197.188-.331a.764.764 0 0 0 .108-.145c0-.011.04-.045.087-.074c.068-.043.1-.049.149-.032c.067.023.086.057.147.262c.082.272.101.351.121.505a.885.885 0 0 0 .037.184c.009.014.12.048.246.075c.126.027.252.063.282.081a.603.603 0 0 0 .116.049c.086.024.202.107.202.145c0 .017.01.032.021.031c.027 0 .153.183.269.391c.13.234.122.229.331.227c.167-.001.187-.007.234-.066a.237.237 0 0 0 .05-.129c-.001-.075.063-.163.22-.302l.163-.146c.097-.088.207-.158.25-.159c.023 0 .146.043.275.095c.189.077.246.113.303.19c.124.168.388.237.519.136a.238.238 0 0 1 .09-.049c.015 0 .027-.017.027-.037c0-.051-.103-.328-.134-.363a.758.758 0 0 1-.051-.215a1.253 1.253 0 0 0-.077-.294a.945.945 0 0 1-.067-.335a2.543 2.543 0 0 0-.065-.405a1.409 1.409 0 0 1-.05-.245c-.002-.177-.152-.411-.305-.474a1.439 1.439 0 0 1-.126-.06c-.09-.049-.209-.042-.262.015a.156.156 0 0 1-.097.049c-.053 0-.213.13-.213.171c0 .012-.037.023-.082.023c-.067.001-.097-.018-.163-.099a.452.452 0 0 1-.082-.125c0-.014-.046-.063-.101-.109c-.082-.068-.101-.099-.102-.169c-.001-.069.011-.092.061-.114c.034-.015.062-.038.062-.051c0-.013.042-.031.093-.04c.051-.009.183-.039.293-.068c.276-.071.773-.076.894-.007c.045.025.11.052.146.06c.082.018.299.217.343.317a.274.274 0 0 0 .058.09c.013.008.032.059.042.115c.01.056.034.134.052.173c.028.059.066.306.104.683c.007.068.057.299.097.443c.015.053.043.175.063.272c.02.097.055.194.077.217c.021.023.04.06.04.084c.001.093.259.251.41.25c.131-.001.327-.09.45-.203a.668.668 0 0 1 .187-.132c.068-.017.177.035.216.102a.594.594 0 0 0 .231.213c.113.063.154.146.111.225c-.014.026-.045.048-.069.049a.7.7 0 0 0-.176.062a.696.696 0 0 1-.179.062c-.026 0-.168.039-.315.087a6.451 6.451 0 0 1-.581.151c-.303.063-.71.175-.76.211a.484.484 0 0 1-.125.035c-.17.03-.185.039-.201.126c-.02.107-.249.347-.418.437c-.117.063-.142.066-.434.066a3.377 3.377 0 0 1-.355-.013c-.025-.007-.053-.045-.062-.084a.245.245 0 0 0-.092-.121c-.08-.053-.171-.052-.375.006l-.091.026l-.015.237c-.008.13-.03.262-.048.294a3.1 3.1 0 0 0-.057.105a.893.893 0 0 1-.151.158c-.07.06-.172.15-.227.2c-.113.104-.21.119-.277.045a.167.167 0 0 0-.116-.047c-.084.001-.278-.079-.401-.164c-.075-.052-.232-.309-.233-.38c0-.014-.023-.047-.051-.073c-.04-.038-.083-.047-.207-.045a1.578 1.578 0 0 0-.269.028a4.636 4.636 0 0 1-.334.051a1.6 1.6 0 0 0-.302.06a1.086 1.086 0 0 1-.186.051c-.154.026-.2.083-.199.239c.001.083-.011.139-.034.158a.198.198 0 0 0-.05.097c-.021.097-.226.295-.371.36a4.543 4.543 0 0 0-.216.104c-.076.04-.142.048-.377.051a1.762 1.762 0 0 1-.306-.015zm-1.983.216l-.057-.039l.05-.069a.34.34 0 0 1 .143-.1c.174-.057.292-.128.434-.263c.078-.074.142-.153.142-.176c0-.023.03-.077.067-.12c.065-.076.068-.09.063-.332c-.005-.248-.018-.3-.11-.443c-.044-.068-.193-.176-.345-.25c-.101-.049-.137-.149-.085-.234c.022-.036.091-.168.154-.294l.144-.289c.045-.091.157-.096.233-.01c.071.081.187.285.187.331c0 .018.022.052.048.076c.057.05.18.262.181.31c0 .019.03.082.066.14a.411.411 0 0 1 .068.22c.002.063.02.154.04.203c.06.143.041.622-.031.757c-.03.056-.063.103-.073.103a.387.387 0 0 0-.092.099c-.077.103-.342.289-.412.29c-.023 0-.058.025-.078.055c-.034.051-.057.055-.359.065c-.266.007-.331.002-.378-.03zm-2.282.149c-.081-.083-.098-.118-.099-.2c-.001-.082.015-.115.094-.195c.146-.147.217-.151.47-.023c.241.122.322.133.344.047c.021-.083.159-.159.291-.16a.27.27 0 0 1 .197.068c.084.065.088.075.09.226c.002.154-.001.16-.097.245c-.092.081-.107.086-.222.075c-.146-.015-.233-.081-.257-.196c-.017-.083-.047-.104-.069-.047c-.007.018-.043.041-.079.05a.755.755 0 0 0-.265.167c-.031.029-.085.043-.173.044c-.118 0-.134-.007-.225-.101zm-2.103-1.298c.055-.021.067-.037.055-.077a3.955 3.955 0 0 1-.043-.164c-.024-.098-.036-.114-.089-.113c-.057 0-.163.06-.26.146c-.048.043-.077.146-.051.181c.056.078.223.089.388.027zm-1.931.725c.055-.042.057-.053.054-.494l-.002-.451l-.067-.059c-.064-.056-.088-.06-.548-.078a4.33 4.33 0 0 1-.577-.049a.446.446 0 0 0-.223-.007a.855.855 0 0 1-.281-.001c-.374-.059-.623-.012-.713.134c-.043.069-.043.076-.002.141a.187.187 0 0 0 .106.079c.034.006.115.026.179.045c.071.021.222.034.388.034c.149 0 .401.007.559.017c.158.01.378.021.489.023c.144.004.221.017.272.049l.071.044l-.015.232c-.014.222-.012.234.044.282c.067.057.148.102.184.102a.207.207 0 0 0 .082-.043zm-.211.768c0-.012-.063-.049-.139-.084a.864.864 0 0 1-.351-.284a.95.95 0 0 1-.118-.378c0-.048-.016-.069-.057-.078a7.822 7.822 0 0 0-.92-.101c-.2-.01-.573-.039-.83-.064c-.558-.055-.771-.048-.846.031a.443.443 0 0 0-.078.132a1.024 1.024 0 0 1-.121.204a.634.634 0 0 0-.094.151a.025.025 0 0 1-.025.025c-.014 0-.045.02-.07.043c-.063.06-.192.148-.258.178a1.885 1.885 0 0 0-.118.06c-.09.051-.715.057-.816.008a.406.406 0 0 0-.148-.035a.254.254 0 0 1-.125-.033c-.04-.027-.044-.045-.024-.101c.029-.082.112-.103.435-.108c.18-.003.232-.014.337-.068c.125-.065.34-.222.356-.261a.255.255 0 0 1 .056-.06a.254.254 0 0 0 .062-.124a.725.725 0 0 1 .063-.179c.056-.109.049-.175-.046-.446c-.097-.279-.132-.341-.243-.434c-.14-.118-.136-.174.02-.333c.068-.069.164-.186.213-.258c.079-.117.097-.13.167-.125c.067.006.089.026.149.138c.094.173.223.472.223.518c0 .02.017.07.036.112c.02.042.049.115.066.163c.04.119.062.132.269.149c.217.019.22.015.239-.276c.007-.111.024-.214.038-.227c.014-.013.025-.046.024-.072a1.842 1.842 0 0 0-.157-.432c-.042-.041-.025-.164.038-.27c.034-.058.072-.105.083-.105a.518.518 0 0 0 .115-.063c.13-.087.326-.108.409-.044c.054.041.063.07.075.258c.012.191.02.216.08.266c.036.03.093.055.127.055c.033 0 .081.018.106.039c.038.032.126.039.527.042c.555.004.866.019.905.043a.911.911 0 0 0 .215.016c.103-.001.328.007.5.017c.301.017.315.021.388.09l.076.071l.006.319c.007.369.028.416.189.414c.141-.001.181-.045.192-.208c.006-.078.024-.153.042-.167a.358.358 0 0 0 .069-.113c.042-.1.216-.275.297-.3a.364.364 0 0 0 .104-.059a.322.322 0 0 1 .124-.057c.18-.034.378-.1.424-.143a.278.278 0 0 1 .167-.051c.096-.005.126.005.167.052c.06.067.071.119.094.449c.01.136.03.276.046.312c.015.035.034.204.043.376l.015.312l-.078.103l-.078.103l-.809.007c-.445.004-.848.014-.895.023c-.094.018-.116.067-.114.252c.001.057-.016.104-.047.131a.237.237 0 0 0-.062.099c-.015.06-.181.186-.287.218a.372.372 0 0 0-.1.048a.967.967 0 0 1-.287.136c-.019 0-.035-.01-.035-.022z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#C09300\" stroke-width=\"0.423\" d=\"M154.604 84.865c.222.013-.3-1.189-.3-1.189c.588.601 2.81.745 2.81.745c-1.333-.589-2.666-5.032-2.509-8.574c.144-3.555-.509-4.953-1.032-5.476c-.667-.667-2.81-1.255-4.221-1.333c-.797-.039-.666.601-.666.601c-1.477-.379-2.953-.523-3.62-.078c-.627.418-.758 2.509-.301 2.143c1.111-.889 2.078-.078 2.745.889c.588.85.549 3.254-.301 6.064c-.889 2.953-3.32 5.907-3.32 5.907c1.32 0 3.176-1.176 3.176-1.176l-.444 1.843c1.398-.667 2.509-1.699 2.509-1.699l1.333 1.398c.444-.588 1.333-1.398 1.333-1.398s1.109 1.176 2.808 1.333h0z\"></path><path stroke=\"#C09300\" stroke-width=\"0.423\" d=\"M149.206 76.357s-.745 5.476-2.143 7.031m3.32-7.175s-.287 5.541-1.255 7.319m2.3-7.097s0 6.064.366 7.096m.954-6.795s.301 5.097 1.555 6.94\"></path><path fill=\"#C09300\" fill-rule=\"nonzero\" stroke=\"#C09300\" stroke-width=\"0.423\" d=\"M147.86 73.704c-.065-.484-.183-.863-.353-1.111c-.667-.967-1.634-1.777-2.744-.889c0 0 .379-1.176 1.189-1.216c.627-.039 2.052.47 3.307 2.614c0 0-.928-.209-1.15-.013c-.419.367-.249.615-.249.615h0z\"></path><path fill=\"#C09300\" fill-rule=\"nonzero\" stroke=\"#C09300\" stroke-width=\"0.423\" d=\"M144.645 70.253c.091-.3.235-.575.418-.693c.667-.444 2.144-.3 3.62.078c0 0-.131-.64.667-.601c1.411.078 3.555.667 4.221 1.333c.157.17.34.418.496.797h-.026c-.327-.457-1.255-.431-1.477-.405c-.353.039-.575.026-1.046.144c-.222.052-.562.118-.745.261c-.144.118-.261.549-.484.549c-.353 0-.327-.091-.418-.196c-.118-.144-.183-.353-.3-.34c-.366.065-.954-.222-1.699-.81c-.745-.588-1.033-.732-2-.666c-.954.078-1.255.614-1.255.614l.028-.065h0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M150.108 71.116c.222 0 .392-.17.392-.392a.385.385 0 0 0-.392-.392a.393.393 0 0 0-.392.392c0 .222.183.392.392.392z\"></path><path stroke=\"#C09300\" stroke-width=\"0.305\" d=\"M159.573 89.846a4.434 4.434 0 0 1-.283.009c-2.069 0-6.873-1.061-8.725-2.652c-1.94 1.47-6.824 2.652-8.859 2.652a1.58 1.58 0 0 1-.283-.029c-.005.464.019.944.048 1.381c.107 1.633.394 3.273.829 4.851c1.369 4.965 4.172 9.184 8.191 12.385c4.022-3.203 6.828-7.427 8.2-12.396a24.38 24.38 0 0 0 .832-4.85c.03-.427.053-.896.05-1.351h0z\"></path></g>'},er:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#EA0437\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#4189DD\" d=\"M.5 150.5h300v-75\"></path><path fill=\"#12AD2B\" d=\"M.5.5h300v75\"></path><path fill=\"#FFC726\" d=\"M69.575 111.248c-3.243.895-5.102 3.411-5.055 5.785l15.963-.064c.143-2.551-1.955-4.91-5.15-5.839c15.629-.323 29.207-6.177 31.674-9.934c-2.442-1.06-5.265.646-7.277.253c4.778-2.208 19.094-11.474 16.767-21.408c-1.809 5.517-7.29 10.083-9.624 11.308c5.348-8.12 12.65-16.574 6.315-23.121c.32 3.794-2.411 7.97-3.617 8.284c3.102-8.58 6.062-19.352-.659-26.454c.883 2.567.526 9.807-.689 10.133c-.374-5.834-1.37-18.106-7.514-17.931c1.951 1.737 2.805 6.479 2.849 11.268c-1.4-3.281-2.992-5.751-6.395-8.174c-2.754-5.28-7.653-9.656-12.552-12.79c.55 3.844 1.005 6.876 6.372 10.863c-2.798-.174-5.595-5.478-8.586-5.625c-2.379-.115-4.245 2.155-8.132.849c.43 1.283 2.244 1.851 2.626 2.8c-.833.575-2.809-.09-4.452-.945c2.26 3.079 5.763 4.889 8.736 4.278c3.536-.68 7.327-.32 10.943 1.737c-.924.474-4.518.471-6.825.183c2.097 2.123 3.503 3.53 7.149 3.507c3.256-.021 4.964-1.737 5.8-.674c2.043 2.42 3.417 4.839 5.126 7.689c-3.774.417-2.636-4.269-6.84-6.665c-2.362 4.888 2.716 10.682 6.173 13.091c.047 3.674.584 6.748 2.142 9.546c1.051 1.972 2.409 3.991 1.897 8.442c-2.069-1.507-4.092-6.59-3.347-10.625c-2.59.706-3.603 5.261-2.382 7.553c.912 1.745 1.521 5.085.469 6.578c-1.025 1.391-1.132 1.235-1.119 4.221c.037 1.787-.961 3.899-2.587 5.372c.34-1.259.727-3.424.35-4.778c-1.285 2.18-4.509 4.435-5.523 6.778c-.997 2.349-1.25 6.417-6.074 7.355c-6.206 1.232-8.348 2.307-12.341 3.941c-.443-3.033.883-9.358 3.42-8.997c2.476.441 9.984-2.587 7.298-8.912c-.531 1.994-2.3 3.939-4.213 4.025c2.067-2.682 5.755-5.458 3.959-9.951c-.998 1.91-2.569 4.202-4.951 5.492c2.553-4.893.297-6.357-2.735-2.327c-1.145 1.555-1.837 4.67-2.564 8.627c-1.191-3.218-1.112-7.454-2.523-10.894c-1.474-3.72 1.956-4.702 3.571-4.404c3.953 1.056 10.559 1.055 10.069-5.476c-1.707 2.209-4.702 2.892-7.935 2.096c3.631-2.652 6.498-7.639 2.452-10.243c-.135 2.761-2.272 5.857-5.125 7.283c-.668-2.33-.668-4.803-.095-7.514c-1.593 1.677-2.757 5.166-3.682 9.132c-.07-3.921.672-6.745 1.222-8.854c.834-3.081 2.906-1.076 6.078-.849c3.055.173 7.262-1.515 6.458-5.658c-1.043 1.639-3.185 2.277-5.372 2.104c2.634-1.596 7.223-4.431 4.706-8.792c-1.057 1.652-1.4 3.065-4.46 3.572c.801-1.844.934-4.45 3.309-5.483c-4.237-.844-6.662 1.937-7.896 6.291c-.5-3.019-1.095-4.131-1.213-6.339c2.29-2.544 2.53-7.52-2.428-8.632c-.294 2.567-.207 3.178.357 5.268c-2.327-1.383-5.608-2.146-7.792-.19c1.48 1.597 3.77 3.003 7.3 1.261c-.834 2.728-3.003 2.261-5.983 1.221c1.821 3.421 4.12 4.029 6.657 3.635c1.328 3.502 1.387 6.163-2.495 11.262c.179-3.169-.046-5.53-2.564-8.093c-2.158-2.113-3.911.091-.54 4.789c-2.046-1.506-4.361-4.564-5.058-7.621c-.674 3.776-.067 8.227 2.024 10.723c-.989 1.056-2.113-.112-3.777-2.697c.63 8.273 4.159 9.869 8.902 8.025c.135 4.541.135 8.745.405 14.23c-2.766-3.979-6.272-6.946-8.228-7.688c-.607 2.226 1.687 5.125 2.968 6.744c-1.956-.405-6.205-3.642-6.205-3.642c-.427 3.687 4.339 7.104 7.419 8.632c-3.619-.158-5.216-1.529-7.554-3.777c.045 10.228 11.082 8.452 13.151 6.879c.27 5.036.654 10.857.924 15.893c-3.12-.545-2.875-1.483-5.545-1.73c-7.41-.289-13.288-8.895-15.235-15.226c-.559 1.042-.115 2.132-.626 3.412c-1.203-3.107-2.74-7.121-4.801-8.989c.525 1.811.58 3.652.398 7.038c-.708-2.194-1.366-2.866-1.413-5.442c.045-1.977 1.908-3.436 1.804-6.217c-.076-2.03-1.928-6.431-2.201-9.837c-.897 3.506-1.46 7.202-2.833 9.373c.682-3.744.463-6.328 1.618-8.848c1.334-2.653 2.468-5.021 1.58-7.698c-.852 1.034-.558 1.973-2.698 4.486c-.465-2.732 2.766-7.105 5.902-8.863c2.212-1.165 4.999-5.333 3.183-8.19c-2.08 1.494-3.014 3.512-5.951 6.96c2.095-8.191 7.54-10.335 14.059-10.363c1.442-.007 4.35-.527 5.167-2.436c-1.837.709-4.01.799-5.943.412c1.407-2.065 4.37-1.797 7.131-1.809c2.166-.011 5.547-.304 6.913-3.388c-2.642 1.145-6.762 1.383-9.356.572c4.126-2.138 10.588-2.368 13.903-5.173c-3.778-2.82-13.231.657-19.202 4.752c1.669-1.526 4.306-4.233 5.762-6.418c-3.266-1.566-11.524 7.583-14.37 13.02c-2.702 1.526-3.783 3.918-4.833 5.587c1.44-4.865 1.593-8.396 2.794-12.403c-9.263 3.189-5.413 20.304-7.428 24.398c.237-4.521.045-10.328-1.816-13.322c-2.853 2.176-3.083 14.988-.405 25.653c-.967-2.854-2.793-5.519-3.379-8.992c-4.223 7.701 2.476 16.787 8.076 23.964c-4.216-2.196-8.386-6.92-11.124-10.88c.756 13.784 15.15 16.648 17.385 20.036c-3.033-1.412-8.832-4.206-11.292-1.278c4.005.925 7.201 1.993 9.775 3.681c3.735 4.665 10.809 6.705 23.129 7.22z\"></path></g>'},et:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#DA121A\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FCDD09\" d=\"M.5.5h300v100H.5z\"></path><path fill=\"#078930\" d=\"M.5.5h300v50H.5z\"></path><circle cx=\"150.5\" cy=\"75.5\" r=\"50\" fill=\"#0F47AF\"></circle><path fill=\"#FCDD09\" d=\"M112.458 62.984h29.062l6.571-20.223l1.752 5.394l-9.549 29.389l-2.835-2.06l2.978-9.166h-23.391l-4.588-3.334zm14.531 44.721l8.98-27.639l-17.203-12.499h5.671l25 18.163l-2.835 2.06l-7.796-5.665l-7.228 22.246l-4.589 3.334zm47.022 0L150.5 90.623l-17.203 12.499l1.752-5.393l25-18.163l1.083 3.333l-7.796 5.664l18.923 13.749l1.752 5.393zm14.531-44.721l-23.511 17.082l6.571 20.223l-4.588-3.333l-9.549-29.389h3.505l2.978 9.166l18.923-13.749h5.671zM150.5 35.344l8.98 27.639h21.264l-4.588 3.333h-30.901l1.083-3.333h9.637l-7.228-22.246l1.753-5.393z\"></path><path fill=\"#000\" stroke=\"#FCDD09\" stroke-width=\"1.667\" d=\"M150.5 93.833V115.5V93.833zm-17.436-12.668l-20.606 6.695l20.606-6.695zm6.66-20.497l-12.735-17.529l12.735 17.529zm21.552 0l12.735-17.529l-12.735 17.529zm6.66 20.497l20.606 6.695l-20.606-6.695z\"></path></g>'},fi:{viewBox:\"0 0 301 185\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.833h300v183.333H.5z\"></path><path fill=\"#003580\" d=\"M.5 67.5h300v50H.5z\"></path><path fill=\"#003580\" d=\"M83.834.833h50v183.333h-50z\"></path></g>'},fm:{viewBox:\"0 0 301 159\",innerHTML:'<g fill=\"none\"><path fill=\"#75B2DD\" d=\"M.5.552h300v157.895H.5z\"></path><path fill=\"#FFF\" d=\"M135.483 27.252l9.281 6.743l-3.545 10.91l9.281-6.743l9.281 6.743l-3.545-10.91l9.281-6.743h-11.472l-3.545-10.91l-3.493 10.91zM87.342 79.5l10.91 3.545v11.472l6.743-9.281l10.911 3.545l-6.743-9.281l6.743-9.281l-10.911 3.545l-6.743-9.281v11.472zm48.141 52.248h11.472l3.545 10.91l3.545-10.91h11.472l-9.281-6.743l3.545-10.911l-9.281 6.743l-9.281-6.743l3.545 10.911zm49.611-61.529l6.744 9.281l-6.744 9.281l10.911-3.545l6.743 9.281V83.045l10.91-3.545l-10.91-3.545V64.483l-6.743 9.281z\"></path></g>'},fr:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#ED2939\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" d=\"M.5.5h200v200H.5z\"></path><path fill=\"#002395\" d=\"M.5.5h100v200H.5z\"></path></g>'},ga:{viewBox:\"0 0 301 225\",innerHTML:'<g fill=\"none\"><path fill=\"#3A75C4\" d=\"M.5 0h300v225H.5z\"></path><path fill=\"#FCD116\" d=\"M.5 0h300v150H.5z\"></path><path fill=\"#009E60\" d=\"M.5 0h300v75H.5z\"></path></g>'},gb:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.5h299.843v149.983H.5z\"></path><path fill=\"#CF142B\" d=\"M135.428 90.444v60.039h29.988V90.444h134.928V60.46H165.416V.5h-29.988v59.96H.5v29.984z\"></path><path fill=\"#00247D\" d=\"M175.415 49.049V.5h97.08zm0 52.884v48.55h97.08zm-49.987 0v48.55H28.349zm0-52.884V.5H28.349zM.501 14.442v36.051h72.087zm299.842 0v36.051h-72.087zm0 122.099V100.49h-72.087zm-299.842 0V100.49h72.087z\"></path><path fill=\"#CF142B\" d=\"M300.343.5h-16.654L183.9 50.493h16.654L300.5.5m-183.557 99.987h-16.654L.5 150.48h16.654l99.946-49.993M83.768 50.532h16.653L.5.5v8.385zm133.255 49.936h-16.654L300.29 150.5v-8.385z\"></path></g>'},gd:{viewBox:\"0 0 301 181\",innerHTML:'<g fill=\"none\"><path fill=\"#CE1126\" d=\"M.5.5h300v180H.5z\"></path><path fill=\"#007A5E\" d=\"M25.7 25.7h249.6v129.6H25.7z\"></path><path fill=\"#FCD116\" d=\"M25.7 25.7h249.6L25.7 155.3h249.6z\"></path><circle cx=\"150.5\" cy=\"90.5\" r=\"21.6\" fill=\"#CE1126\"></circle><path fill=\"#CE1126\" d=\"M41.15 90.746c2.702 5.034 7.959 10.512 12.549 12.438c.074-5.112-1.74-11.664-4.22-16.884l-8.329 4.446z\"></path><path fill=\"#FCD116\" d=\"M36.567 73.478c3.918 8.166-10.16 27.648 13.294 32.214c-2.894-3.948-4.759-10.464-4.053-15.696c4.921 1.872 10.098 7.35 12.19 11.538c6.138-22.29-15.744-20.934-21.431-28.056zm95.102 10.904l11.638 8.455l-4.445 13.682l11.638-8.456l11.638 8.456l-4.445-13.682l11.638-8.455h-14.386L150.5 70.7l-4.445 13.682zM79.373 9.485l6.877 4.996l-2.627 8.084l6.877-4.996l6.877 4.996l-2.627-8.084l6.878-4.996h-8.539L90.5 1.4l-2.588 8.085zm60 0l6.877 4.996l-2.627 8.084l6.877-4.996l6.877 4.996l-2.627-8.084l6.877-4.996h-8.539L150.5 1.4l-2.588 8.085zm60 0l6.877 4.996l-2.627 8.084l6.877-4.996l6.877 4.996l-2.627-8.084l6.878-4.996h-8.539L210.5 1.4l-2.588 8.085zm-.5 156l6.877 4.996l-2.627 8.085l6.877-4.997l6.877 4.997l-2.627-8.085l6.878-4.996h-8.539L210 157.4l-2.588 8.085zm-60 0l6.877 4.996l-2.627 8.085l6.877-4.997l6.877 4.997l-2.627-8.085l6.878-4.996h-8.539L150 157.4l-2.588 8.085zm-60 0l6.877 4.996l-2.627 8.085L90 173.569l6.877 4.997l-2.627-8.085l6.878-4.996h-8.539L90 157.4l-2.588 8.085z\"></path></g>'},ge:{viewBox:\"0 0 300 200\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M0 0h300v200H0z\"></path><path fill=\"red\" d=\"M0 80h300v40H0z\"></path><path fill=\"red\" d=\"M130 0h40v200h-40zM85 33.144s-7.257 1.025-14.843 1.409C70.676 27.473 71.856 20 71.856 20H58.145s.998 7.071 1.393 14.55C51.906 34.163 45 33.145 45 33.145v13.711s7.152-1.279 14.568-1.76C59.196 52.873 58.145 60 58.145 60h13.711s-1.315-7.348-1.78-14.87c7.187.505 14.925 1.725 14.925 1.725V33.144H85zm0 120s-7.257 1.025-14.843 1.409c.519-7.08 1.699-14.553 1.699-14.553H58.145s.998 7.071 1.393 14.55C51.906 154.163 45 153.145 45 153.145v13.711s7.152-1.279 14.568-1.76c-.372 7.777-1.423 14.905-1.423 14.905h13.711s-1.315-7.348-1.78-14.87c7.187.505 14.925 1.725 14.925 1.725v-13.712H85zm170-120s-7.257 1.025-14.843 1.409c.52-7.08 1.699-14.553 1.699-14.553h-13.711s.998 7.071 1.393 14.55A172.498 172.498 0 0 1 215 33.145v13.711s7.152-1.279 14.568-1.76c-.372 7.777-1.423 14.905-1.423 14.905h13.711s-1.315-7.348-1.78-14.87c7.187.505 14.924 1.725 14.924 1.725V33.144zm0 120s-7.257 1.025-14.843 1.409c.52-7.08 1.699-14.553 1.699-14.553h-13.711s.998 7.071 1.393 14.55c-7.633-.387-14.538-1.405-14.538-1.405v13.711s7.153-1.279 14.568-1.76c-.372 7.777-1.423 14.905-1.423 14.905h13.711s-1.315-7.348-1.78-14.87c7.187.505 14.924 1.726 14.924 1.726v-13.713z\"></path></g>'},gh:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#006B3F\" d=\"M.5.5h300v200H.5\"></path><path fill=\"#FCD116\" d=\"M.5.5h300v133.333H.5\"></path><path fill=\"#CE1126\" d=\"M.5.5h300v66.667H.5\"></path><path fill=\"#000\" d=\"M114.5 92.5h70.667L128.5 133.833L149.834 66.5l22.666 67.333\"></path></g>'},gm:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#CE1126\" d=\"M.5.5h300v66.667H.5z\"></path><path fill=\"#FFF\" d=\"M.5 67.167h300v66.666H.5z\"></path><path fill=\"#0C1C8C\" d=\"M.5 78.278h300v44.444H.5z\"></path><path fill=\"#3A7728\" d=\"M.5 133.833h300V200.5H.5z\"></path></g>'},gn:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#E32118\" fill-rule=\"nonzero\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M.5.5h300v133.333H.5z\"></path><path fill=\"#3E9A00\" fill-rule=\"nonzero\" d=\"M.5.5h300v66.667H.5z\"></path><path fill=\"#0073CE\" fill-rule=\"nonzero\" d=\"M.5.5v200l75-100z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.5\" d=\"M169.417 113.167l2.083 3h0l1.917-2.834l-1.334-2.416zm-13.25 8.75l.167 3s.833 0 1.583-.25c.667-.25 1.25-.75 1.25-.75l-.083-1.583l-2.917-.417h0zm-11.167 0l-.167 2.917s-.75 0-1.5-.167c-.667-.167-1.25-.583-1.25-.583l-.833-2l3.75-.167h0zM134.5 80.4h31.917v33.433c0 11.25-14.667 2.583-15.917 8.583c-2.167-6.167-15.917 2.75-15.917-9.25c0-11.666-.083-32.766-.083-32.766h0zm-2.917 32.767l-2.166 3l-2.334-3.834l1.75-1.833z\"></path><path fill=\"gold\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.5\" d=\"M149.417 75.717l-1.834.083l-.916 1.641l-1-1.566l-1.834.075l.834-1.65l-1-1.567l1.916-.083l.834-1.642l1 1.567l1.833-.075l-.833 1.65zm-7.834.608l-1.833.45l-.5 1.775l-1.333-1.333l-1.75.433l.5-1.775l-1.25-1.35l1.75-.442l.5-1.783L139 73.633l1.833-.433l-.583 1.783zM134 77.883l-1.667.825l-.083 1.85l-1.583-1.016l-1.667.816l.167-1.85l-1.584-1.025l1.667-.833l.167-1.85l1.5 1.016l1.666-.816l-.083 1.85zm17.833-2.166l1.834.083l.833 1.641l1-1.566l1.833.075l-.833-1.65l1-1.567l-1.833-.083l-.917-1.642l-1 1.567l-1.833-.075l.833 1.65zm7.834.608l1.75.45l.5 1.775l1.333-1.333l1.75.433l-.5-1.775l1.333-1.35l-1.833-.442l-.5-1.783l-1.333 1.333l-1.75-.433l.5 1.783zm7.5 1.558l1.666.825l.084 1.85l1.583-1.016l1.667.816l-.084-1.85l1.5-1.025l-1.666-.833l-.084-1.85l-1.583 1.016l-1.667-.816l.167 1.85z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.5\" d=\"M142 123.917v4c0 2.833 17.167 2.833 17.167 0v-4c0 2.083-17.167 1.666-17.167 0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.5\" d=\"M126.667 118.667c1.5 7.667 15.333 7.833 15.333 7.833v-2.583c-.333-1 .25-1.333 2.5-1.667c.917-.083.5-1.417.5-1.417s-6 1.083-10.25-.583c-5.75-2.333-6.583-6.833-6.583-6.833s-.417 3.5-1.5 5.25h0zm47.75 0c-1.417 7.667-15.25 7.833-15.25 7.833v-2.583c.25-1-.333-1.333-2.583-1.667c-.917-.083-.417-1.417-.417-1.417s6 1.083 10.25-.583c5.667-2.333 6.333-6.833 6.333-6.833s.583 3.5 1.667 5.25h0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.5\" d=\"M127.75 115.75c-3.833-2.083-.833-4.25-.5-10.417c.583 3.75 4.833 5.333 4.333 7.75c-1.75.083-2.583-2.583-3.417.333l-.416 2.334h0zm45.583 0c3.833-2.167.667-4.25.333-10.417c-.583 3.75-4.75 5.333-4.25 7.75c1.667.083 2.5-2.583 3.333.333l.583 2.25v.084h.001z\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M147.25 128.917v-2.667h1.5c.167.083.333.167.417.25c.083.167.167.333.167.5c0 .167-.083.333-.083.417c-.083.167-.167.25-.25.333c-.083 0-.167.083-.25.083c-.167 0-.333.083-.583.083h-.333v1h-.585v.001zm.583-2.25v.75h.667c.083-.083.167-.083.167-.167c.083-.083.083-.083.083-.167c0-.167 0-.25-.083-.25c-.083-.083-.167-.167-.25-.167h-.584v.001zm4.084 2.25h-.583l-.25-.667H150l-.25.667h-.583l1.083-2.667h.583l1.084 2.667zm-1-1.084l-.417-1l-.333 1h.75zm1 1.084v-.5l1.417-1.75h-1.25v-.417h2v.417l-1.5 1.75h1.5v.5h-2.167z\"></path><path fill=\"#73452B\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.25\" d=\"M152.75 117.083s-.417.417-1.167.083c-.75-.334-.833-21.417-.833-21.417c1.667-1.833 3-2.417 3-2.417l1 .833c-3.75 1.917-3.417 4.667-3.083 9.417c.083 1.75.083 4 .5 6.167c.583 2.75 1.75 5.083 1.833 6.833c.083 1.085-1.25.501-1.25.501h0z\"></path><path fill=\"#73452B\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.25\" d=\"M150.167 92.833h1.5c-1.25 12.083-.167 19.25-.167 22.75c0 1.167.667 1.583.583 1.583c-1.5 1.667-2.25-.083-2.25-.083l.334-24.25h0z\"></path><path fill=\"#A36629\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.25\" d=\"M147.833 117.083c-1.417.667-1.583-.667-1.5-.833c3.083-6.25 4.417-20 1.583-21.5l.167-1.333c1.083.333 2.083 1.75 2.083 1.75c.417 15.417 0 21.75-.25 22c-1.5 1.583-2.083-.25-2.167-.417\"></path><path stroke=\"#000\" stroke-width=\"0.25\" d=\"M147.75 116.833c-.25-1.333 2.167-4.75 2-8.333m2.083 2.917c.75 2.083 1.083 3.917.917 5.667\"></path><path fill=\"#009A3B\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.25\" d=\"M155.083 87.167c.5-.583.5-.583 1.417-.583c.167-1.25 2.25-1.25 2.417.333c1.667-.333 2 .667 1.333 1.667c1.583-.417 3 0 2.583 1.833c2.833.75 1.75 2.75.5 3.167c-.167 1.25-1.333 1.667-2.917 1.167c-2 1.417-3.167.917-4.083-.5c-2.25.333-2.417-.167-3.417-1.417c-1.75.75-2.083.75-3.583-.167c-.083 1.167-.5.833-1.25.75c.083 1.5-.5 2.167-1.833 1.667c1 2.083-1.583 3-2.833 1.25c-1.167.083-1.25-.25-1.833-.667c-.5 1.667-2.333 1.417-2.667.5c-2.333-.333-2.083-1.583-.167-1.667c.167-1.333 1.333-1.083 2.083-.917c.083-.833.583-.667 1-.5c-.25-.583-.083-.917.667-1.083c-1.083-1.417-.417-1.917.667-2.417c-.583-1.333.417-1.25 1.167-1.333c-.083-1.417.333-1.667 1.833-1.833c-.167-.5.083-.917.917-.917c-.5-1.417.167-1.742 1.667-1.5c.25-2.058 4.667-1.083 4.333 1.75c1.249.167 1.666.417 1.999 1.417h0z\"></path><path stroke=\"#000\" stroke-width=\"0.25\" d=\"M146.167 86.417c.333.167.75 0 .833.917c.667-1.167 1.5-.5 1.5.833m4.583-2.417c-.333.5-1.583.5-1.417 1.833c-.417-.583-1.25-.75-1.583-.167m5-.249c0 .333-.083 1.333-.417 1.833m5.584-.417c.083.083-1.167 0-1.75.417m4.833 4.583c-.333-.167-1-.583-1.5.083c0-.333 0-1.25-.917-1.25m-.499 2.334c0-.833-.167-1.083-.333-1.333m-2.417.166c-.667-.5-1.333.25-1.333.667m-3.501-1.417c0-.333-.25-1 .333-1.25m-9.833 4.75c.167-.833.75-.833.667-1.25c-.083-.667-.833-1.25-1.75-.333m1.75.333c.5-.167 1-.083 1.167.167M142.583 92c.333-.333 1.167-.25 1.667 0m0-2c.417 0 1.167-.167 1.417.583c.917-1.417 1.583-1.25 1.75-.917m1.666-.166c.667-.25 1.833.417 2.5 1.583c.333-.917.833-.75 1.333-.833m3.167.833c1.083-.5 1.75.5 2.083.917c.5-.667.917-.667 1.417-.667M146 93.083c.25-.417.833-.5 1.25-.25c-.083-.75.417-1.083.75-.917\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M130.083 118.583l.417.333l-.917 1c-.167.167-.25.333-.25.333c-.083.167-.083.25-.083.333c0 .083.083.167.167.25c.083.168.25.168.333.168c.083 0 .167 0 .25-.083c.083 0 .167-.083.25-.25l1-1.083l.333.333l-.833 1l-.5.5c-.083.083-.167.083-.333.083h-.333c-.167-.083-.25-.167-.417-.25c-.167-.167-.333-.333-.333-.5c-.083-.083-.083-.25-.083-.333c0-.083 0-.25.083-.333c0-.083.167-.25.333-.5l.916-1.001zm.25 3.584L131.75 120l.417.25l-.083 2l.917-1.417l.417.25l-1.333 2.167l-.5-.25l.083-2l-.917 1.417l-.418-.25zm2.167 1.333l1.167-2.333l.417.25l-1.083 2.25l-.501-.167zm1.833-2l.833.333c.25.083.333.167.417.25c.167.083.25.167.333.333c.083.167.083.25.083.417c0 .25-.083.417-.167.667a.459.459 0 0 1-.25.417c-.083.167-.25.333-.417.333c-.083.083-.25.083-.333.083c-.167 0-.333 0-.5-.083l-.917-.333l.918-2.417zm.334.583l-.583 1.583l.333.167c.167 0 .25.083.333.083h.25c0-.083.083-.167.167-.25a.638.638 0 0 0 .167-.417c.083-.167.167-.333.167-.417c0-.083 0-.25-.083-.25c0-.083-.083-.167-.167-.25c-.083 0-.167-.083-.417-.167l-.167-.082zm3.5 3.084l-.583-.083l-.084-.584l-1-.25l-.333.583l-.583-.167l1.5-2.25l.5.083l.583 2.668zm-.75-1.167l-.167-1l-.5.917l.667.083zm1.083-1.333h1a.91.91 0 0 0 .417.083c.167.083.333.167.417.25c.083.167.167.25.167.417c.083.167.083.417.083.667c0 .167 0 .333-.083.5c-.083.167-.167.333-.333.417c-.083.083-.167.167-.333.25h-.5l-.917-.083l.082-2.501zm.5.416l-.083 1.75h.75c.083-.083.083-.083.167-.083c.083-.083.083-.167.167-.25c0-.167.083-.333.083-.5c0-.167 0-.333-.083-.417c0-.167 0-.25-.083-.25c-.083-.083-.167-.167-.25-.167h-.417l-.251-.083zm21.333.167l.5-.083l.25 1.5v.5c-.083.167-.167.25-.25.417c-.083.083-.25.167-.5.167s-.417 0-.583-.167c-.167-.083-.25-.25-.25-.583l.417-.083c.083.167.083.25.167.333c0 .083.083.083.25.083c.083 0 .167-.083.167-.167c.083-.083.083-.167.083-.417l-.25-1.583v.083h-.001zm.834-.167l.5-.083l.25 1.333a.912.912 0 0 1 .083.417c.083.083.167.167.25.167c.083.083.167.083.333 0c.167 0 .25-.083.25-.083c.083-.083.167-.167.083-.25v-.417l-.333-1.333l.5-.083l.25 1.25c.083.25.083.5.083.583c0 .167 0 .25-.083.333c0 .083-.083.167-.167.25c-.167.083-.333.167-.5.167c-.25.083-.417.083-.5.083c-.167-.083-.25-.083-.333-.167l-.25-.25c0-.167-.083-.333-.167-.583l-.249-1.334zm2.583 1.167l.417-.167c.083.167.167.25.333.25c.083.083.25.083.333 0c.167 0 .25-.083.333-.167c.083-.083.083-.167.083-.25c-.083-.083-.083-.083-.083-.167h-.667c-.25 0-.5 0-.583-.083a1.004 1.004 0 0 1-.417-.417v-.333c.083-.167.167-.25.25-.333c.083-.083.25-.167.417-.25c.333-.083.583-.083.75 0c.167.083.333.25.417.417l-.5.167c-.083-.083-.083-.167-.167-.167c-.083-.083-.25-.083-.333 0c-.167 0-.25.083-.333.167v.167c0 .083 0 .083.083.167h1.083c.083 0 .25.083.333.167c.083.083.167.167.167.333c.083.167.083.25 0 .417c0 .167-.083.25-.167.333l-.5.25c-.333.083-.583.083-.75 0a.754.754 0 0 1-.499-.501zm3.083-.167l-.833-1.916l-.667.333l-.167-.417l1.833-.75l.167.333l-.666.334l.75 1.833l-.417.25zm1.417-.666l-1.167-2.167l.417-.25l1.167 2.167l-.417.25zm1.667-2l.5-.167c.083.25.083.5 0 .667c-.083.25-.167.417-.417.583c-.333.167-.583.167-.917.083c-.25-.083-.5-.25-.75-.583c-.167-.333-.25-.667-.167-1c0-.25.167-.5.5-.75c.25-.083.5-.167.75-.083c.167 0 .333.083.5.25l-.417.333c-.083-.083-.167-.167-.333-.167c-.083 0-.167 0-.333.083a.46.46 0 0 0-.25.417c0 .167.083.333.167.583c.167.333.333.417.5.5c.167.083.333 0 .5-.083l.25-.25c0-.166 0-.25-.083-.416zm1.25.25l-1.5-2l.417-.333l1.5 2l-.417.333zm2.416-2.084l-.417.333l-.5-.25l-.75.667l.25.5l-.417.417l-.917-2.5l.417-.333l2.334 1.166zm-1.333-.166l-.833-.417l.333.917l.5-.5z\"></path></g>'},gq:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#E32118\" fill-rule=\"nonzero\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M.5.5h300v133.333H.5z\"></path><path fill=\"#3E9A00\" fill-rule=\"nonzero\" d=\"M.5.5h300v66.667H.5z\"></path><path fill=\"#0073CE\" fill-rule=\"nonzero\" d=\"M.5.5v200l75-100z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.5\" d=\"M169.417 113.167l2.083 3h0l1.917-2.834l-1.334-2.416zm-13.25 8.75l.167 3s.833 0 1.583-.25c.667-.25 1.25-.75 1.25-.75l-.083-1.583l-2.917-.417h0zm-11.167 0l-.167 2.917s-.75 0-1.5-.167c-.667-.167-1.25-.583-1.25-.583l-.833-2l3.75-.167h0zM134.5 80.4h31.917v33.433c0 11.25-14.667 2.583-15.917 8.583c-2.167-6.167-15.917 2.75-15.917-9.25c0-11.666-.083-32.766-.083-32.766h0zm-2.917 32.767l-2.166 3l-2.334-3.834l1.75-1.833z\"></path><path fill=\"gold\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.5\" d=\"M149.417 75.717l-1.834.083l-.916 1.641l-1-1.566l-1.834.075l.834-1.65l-1-1.567l1.916-.083l.834-1.642l1 1.567l1.833-.075l-.833 1.65zm-7.834.608l-1.833.45l-.5 1.775l-1.333-1.333l-1.75.433l.5-1.775l-1.25-1.35l1.75-.442l.5-1.783L139 73.633l1.833-.433l-.583 1.783zM134 77.883l-1.667.825l-.083 1.85l-1.583-1.016l-1.667.816l.167-1.85l-1.584-1.025l1.667-.833l.167-1.85l1.5 1.016l1.666-.816l-.083 1.85zm17.833-2.166l1.834.083l.833 1.641l1-1.566l1.833.075l-.833-1.65l1-1.567l-1.833-.083l-.917-1.642l-1 1.567l-1.833-.075l.833 1.65zm7.834.608l1.75.45l.5 1.775l1.333-1.333l1.75.433l-.5-1.775l1.333-1.35l-1.833-.442l-.5-1.783l-1.333 1.333l-1.75-.433l.5 1.783zm7.5 1.558l1.666.825l.084 1.85l1.583-1.016l1.667.816l-.084-1.85l1.5-1.025l-1.666-.833l-.084-1.85l-1.583 1.016l-1.667-.816l.167 1.85z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.5\" d=\"M142 123.917v4c0 2.833 17.167 2.833 17.167 0v-4c0 2.083-17.167 1.666-17.167 0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.5\" d=\"M126.667 118.667c1.5 7.667 15.333 7.833 15.333 7.833v-2.583c-.333-1 .25-1.333 2.5-1.667c.917-.083.5-1.417.5-1.417s-6 1.083-10.25-.583c-5.75-2.333-6.583-6.833-6.583-6.833s-.417 3.5-1.5 5.25h0zm47.75 0c-1.417 7.667-15.25 7.833-15.25 7.833v-2.583c.25-1-.333-1.333-2.583-1.667c-.917-.083-.417-1.417-.417-1.417s6 1.083 10.25-.583c5.667-2.333 6.333-6.833 6.333-6.833s.583 3.5 1.667 5.25h0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.5\" d=\"M127.75 115.75c-3.833-2.083-.833-4.25-.5-10.417c.583 3.75 4.833 5.333 4.333 7.75c-1.75.083-2.583-2.583-3.417.333l-.416 2.334h0zm45.583 0c3.833-2.167.667-4.25.333-10.417c-.583 3.75-4.75 5.333-4.25 7.75c1.667.083 2.5-2.583 3.333.333l.583 2.25v.084h.001z\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M147.25 128.917v-2.667h1.5c.167.083.333.167.417.25c.083.167.167.333.167.5c0 .167-.083.333-.083.417c-.083.167-.167.25-.25.333c-.083 0-.167.083-.25.083c-.167 0-.333.083-.583.083h-.333v1h-.585v.001zm.583-2.25v.75h.667c.083-.083.167-.083.167-.167c.083-.083.083-.083.083-.167c0-.167 0-.25-.083-.25c-.083-.083-.167-.167-.25-.167h-.584v.001zm4.084 2.25h-.583l-.25-.667H150l-.25.667h-.583l1.083-2.667h.583l1.084 2.667zm-1-1.084l-.417-1l-.333 1h.75zm1 1.084v-.5l1.417-1.75h-1.25v-.417h2v.417l-1.5 1.75h1.5v.5h-2.167z\"></path><path fill=\"#73452B\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.25\" d=\"M152.75 117.083s-.417.417-1.167.083c-.75-.334-.833-21.417-.833-21.417c1.667-1.833 3-2.417 3-2.417l1 .833c-3.75 1.917-3.417 4.667-3.083 9.417c.083 1.75.083 4 .5 6.167c.583 2.75 1.75 5.083 1.833 6.833c.083 1.085-1.25.501-1.25.501h0z\"></path><path fill=\"#73452B\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.25\" d=\"M150.167 92.833h1.5c-1.25 12.083-.167 19.25-.167 22.75c0 1.167.667 1.583.583 1.583c-1.5 1.667-2.25-.083-2.25-.083l.334-24.25h0z\"></path><path fill=\"#A36629\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.25\" d=\"M147.833 117.083c-1.417.667-1.583-.667-1.5-.833c3.083-6.25 4.417-20 1.583-21.5l.167-1.333c1.083.333 2.083 1.75 2.083 1.75c.417 15.417 0 21.75-.25 22c-1.5 1.583-2.083-.25-2.167-.417\"></path><path stroke=\"#000\" stroke-width=\"0.25\" d=\"M147.75 116.833c-.25-1.333 2.167-4.75 2-8.333m2.083 2.917c.75 2.083 1.083 3.917.917 5.667\"></path><path fill=\"#009A3B\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.25\" d=\"M155.083 87.167c.5-.583.5-.583 1.417-.583c.167-1.25 2.25-1.25 2.417.333c1.667-.333 2 .667 1.333 1.667c1.583-.417 3 0 2.583 1.833c2.833.75 1.75 2.75.5 3.167c-.167 1.25-1.333 1.667-2.917 1.167c-2 1.417-3.167.917-4.083-.5c-2.25.333-2.417-.167-3.417-1.417c-1.75.75-2.083.75-3.583-.167c-.083 1.167-.5.833-1.25.75c.083 1.5-.5 2.167-1.833 1.667c1 2.083-1.583 3-2.833 1.25c-1.167.083-1.25-.25-1.833-.667c-.5 1.667-2.333 1.417-2.667.5c-2.333-.333-2.083-1.583-.167-1.667c.167-1.333 1.333-1.083 2.083-.917c.083-.833.583-.667 1-.5c-.25-.583-.083-.917.667-1.083c-1.083-1.417-.417-1.917.667-2.417c-.583-1.333.417-1.25 1.167-1.333c-.083-1.417.333-1.667 1.833-1.833c-.167-.5.083-.917.917-.917c-.5-1.417.167-1.742 1.667-1.5c.25-2.058 4.667-1.083 4.333 1.75c1.249.167 1.666.417 1.999 1.417h0z\"></path><path stroke=\"#000\" stroke-width=\"0.25\" d=\"M146.167 86.417c.333.167.75 0 .833.917c.667-1.167 1.5-.5 1.5.833m4.583-2.417c-.333.5-1.583.5-1.417 1.833c-.417-.583-1.25-.75-1.583-.167m5-.249c0 .333-.083 1.333-.417 1.833m5.584-.417c.083.083-1.167 0-1.75.417m4.833 4.583c-.333-.167-1-.583-1.5.083c0-.333 0-1.25-.917-1.25m-.499 2.334c0-.833-.167-1.083-.333-1.333m-2.417.166c-.667-.5-1.333.25-1.333.667m-3.501-1.417c0-.333-.25-1 .333-1.25m-9.833 4.75c.167-.833.75-.833.667-1.25c-.083-.667-.833-1.25-1.75-.333m1.75.333c.5-.167 1-.083 1.167.167M142.583 92c.333-.333 1.167-.25 1.667 0m0-2c.417 0 1.167-.167 1.417.583c.917-1.417 1.583-1.25 1.75-.917m1.666-.166c.667-.25 1.833.417 2.5 1.583c.333-.917.833-.75 1.333-.833m3.167.833c1.083-.5 1.75.5 2.083.917c.5-.667.917-.667 1.417-.667M146 93.083c.25-.417.833-.5 1.25-.25c-.083-.75.417-1.083.75-.917\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M130.083 118.583l.417.333l-.917 1c-.167.167-.25.333-.25.333c-.083.167-.083.25-.083.333c0 .083.083.167.167.25c.083.168.25.168.333.168c.083 0 .167 0 .25-.083c.083 0 .167-.083.25-.25l1-1.083l.333.333l-.833 1l-.5.5c-.083.083-.167.083-.333.083h-.333c-.167-.083-.25-.167-.417-.25c-.167-.167-.333-.333-.333-.5c-.083-.083-.083-.25-.083-.333c0-.083 0-.25.083-.333c0-.083.167-.25.333-.5l.916-1.001zm.25 3.584L131.75 120l.417.25l-.083 2l.917-1.417l.417.25l-1.333 2.167l-.5-.25l.083-2l-.917 1.417l-.418-.25zm2.167 1.333l1.167-2.333l.417.25l-1.083 2.25l-.501-.167zm1.833-2l.833.333c.25.083.333.167.417.25c.167.083.25.167.333.333c.083.167.083.25.083.417c0 .25-.083.417-.167.667a.459.459 0 0 1-.25.417c-.083.167-.25.333-.417.333c-.083.083-.25.083-.333.083c-.167 0-.333 0-.5-.083l-.917-.333l.918-2.417zm.334.583l-.583 1.583l.333.167c.167 0 .25.083.333.083h.25c0-.083.083-.167.167-.25a.638.638 0 0 0 .167-.417c.083-.167.167-.333.167-.417c0-.083 0-.25-.083-.25c0-.083-.083-.167-.167-.25c-.083 0-.167-.083-.417-.167l-.167-.082zm3.5 3.084l-.583-.083l-.084-.584l-1-.25l-.333.583l-.583-.167l1.5-2.25l.5.083l.583 2.668zm-.75-1.167l-.167-1l-.5.917l.667.083zm1.083-1.333h1a.91.91 0 0 0 .417.083c.167.083.333.167.417.25c.083.167.167.25.167.417c.083.167.083.417.083.667c0 .167 0 .333-.083.5c-.083.167-.167.333-.333.417c-.083.083-.167.167-.333.25h-.5l-.917-.083l.082-2.501zm.5.416l-.083 1.75h.75c.083-.083.083-.083.167-.083c.083-.083.083-.167.167-.25c0-.167.083-.333.083-.5c0-.167 0-.333-.083-.417c0-.167 0-.25-.083-.25c-.083-.083-.167-.167-.25-.167h-.417l-.251-.083zm21.333.167l.5-.083l.25 1.5v.5c-.083.167-.167.25-.25.417c-.083.083-.25.167-.5.167s-.417 0-.583-.167c-.167-.083-.25-.25-.25-.583l.417-.083c.083.167.083.25.167.333c0 .083.083.083.25.083c.083 0 .167-.083.167-.167c.083-.083.083-.167.083-.417l-.25-1.583v.083h-.001zm.834-.167l.5-.083l.25 1.333a.912.912 0 0 1 .083.417c.083.083.167.167.25.167c.083.083.167.083.333 0c.167 0 .25-.083.25-.083c.083-.083.167-.167.083-.25v-.417l-.333-1.333l.5-.083l.25 1.25c.083.25.083.5.083.583c0 .167 0 .25-.083.333c0 .083-.083.167-.167.25c-.167.083-.333.167-.5.167c-.25.083-.417.083-.5.083c-.167-.083-.25-.083-.333-.167l-.25-.25c0-.167-.083-.333-.167-.583l-.249-1.334zm2.583 1.167l.417-.167c.083.167.167.25.333.25c.083.083.25.083.333 0c.167 0 .25-.083.333-.167c.083-.083.083-.167.083-.25c-.083-.083-.083-.083-.083-.167h-.667c-.25 0-.5 0-.583-.083a1.004 1.004 0 0 1-.417-.417v-.333c.083-.167.167-.25.25-.333c.083-.083.25-.167.417-.25c.333-.083.583-.083.75 0c.167.083.333.25.417.417l-.5.167c-.083-.083-.083-.167-.167-.167c-.083-.083-.25-.083-.333 0c-.167 0-.25.083-.333.167v.167c0 .083 0 .083.083.167h1.083c.083 0 .25.083.333.167c.083.083.167.167.167.333c.083.167.083.25 0 .417c0 .167-.083.25-.167.333l-.5.25c-.333.083-.583.083-.75 0a.754.754 0 0 1-.499-.501zm3.083-.167l-.833-1.916l-.667.333l-.167-.417l1.833-.75l.167.333l-.666.334l.75 1.833l-.417.25zm1.417-.666l-1.167-2.167l.417-.25l1.167 2.167l-.417.25zm1.667-2l.5-.167c.083.25.083.5 0 .667c-.083.25-.167.417-.417.583c-.333.167-.583.167-.917.083c-.25-.083-.5-.25-.75-.583c-.167-.333-.25-.667-.167-1c0-.25.167-.5.5-.75c.25-.083.5-.167.75-.083c.167 0 .333.083.5.25l-.417.333c-.083-.083-.167-.167-.333-.167c-.083 0-.167 0-.333.083a.46.46 0 0 0-.25.417c0 .167.083.333.167.583c.167.333.333.417.5.5c.167.083.333 0 .5-.083l.25-.25c0-.166 0-.25-.083-.416zm1.25.25l-1.5-2l.417-.333l1.5 2l-.417.333zm2.416-2.084l-.417.333l-.5-.25l-.75.667l.25.5l-.417.417l-.917-2.5l.417-.333l2.334 1.166zm-1.333-.166l-.833-.417l.333.917l.5-.5z\"></path></g>'},gr:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#0D5EAF\" fill-rule=\"nonzero\" d=\"M.5.5h300v200H.5z\"></path><path stroke=\"#FFF\" stroke-width=\"20\" d=\"M56.056.5v122.222M.5 56.055h111.111m0-22.222H300.5M111.611 78.278H300.5M.5 122.722h300M.5 167.167h300\"></path></g>'},gw:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#CE1126\" d=\"M.5.5h100v150H.5z\"></path><path fill=\"#FCD116\" d=\"M100.5.5h200v75h-200z\"></path><path fill=\"#009E49\" d=\"M100.5 75.5h200v75h-200z\"></path><path fill=\"#000\" d=\"M26.724 67.774l14.694 10.677l-5.612 17.274L50.5 85.049l14.695 10.676l-5.613-17.274l14.695-10.677H56.113L50.5 50.5l-5.613 17.274z\"></path></g>'},gy:{viewBox:\"0 0 301 181\",innerHTML:'<g fill=\"none\"><path fill=\"#009E49\" d=\"M.5.5h300v180H.5z\"></path><path fill=\"#FFF\" d=\"M.5.5l300 90l-300 90z\"></path><path fill=\"#FCD116\" d=\"M.5 8.33L274.1 90.5L.5 172.67z\"></path><path fill=\"#000\" d=\"M.5.5l150 90l-150 90z\"></path><path fill=\"#CE1126\" d=\"M.5 11l132.51 79.5L.5 170z\"></path></g>'},hk:{viewBox:\"0 0 900 600\",innerHTML:'<g fill=\"none\"><path fill=\"#DE2910\" d=\"M0 0h900v600H0z\"></path><path fill=\"#FFF\" d=\"M449.964 299.913c-105.263-44.486-58.602-181.581 42.07-174.69c-20.366 10.467-23.318 29.997-11.687 48.09c13.024 20.256-1.2 52.848-18.806 60.767c-28.935 13.025-34.728 47.75-11.577 65.833z\"></path><path fill=\"#DE2910\" d=\"M444.272 200.92l-5.92 9.294l-2.144-10.815l-10.679-2.759l9.625-5.39l-.671-10.999l8.085 7.49l10.256-4.043l-4.61 10.01l7.001 8.505l-10.943-1.293zm6.288 97.839c-12.731-6.534-22.996-20.155-27.468-36.431c-5.115-18.67-2.173-38.743 8.083-55.038l-2.208-1.394c-10.64 16.929-13.693 37.743-8.386 57.12c4.728 17.221 15.214 31.097 28.787 38.064l1.192-2.321z\"></path><path fill=\"#FFF\" d=\"M450.072 299.939c9.78-113.858 154.584-111.846 179.14-13.971c-16.248-16.135-35.734-12.908-49.348 3.745c-15.24 18.646-50.632 15.19-63.604.893c-21.329-23.494-56.144-18.273-66.188 9.333z\"></path><path fill=\"#DE2910\" d=\"M542.46 263.935l-10.668-2.758l9.623-5.381l-.676-11.01l8.1 7.489l10.254-4.037l-4.625 10.004l7.014 8.504l-10.944-1.29l-5.926 9.286l-2.151-10.807zm-91.107 36.214c2.28-14.127 12.063-28.099 26.16-37.381c16.176-10.634 36.175-14.04 54.842-9.32l.644-2.531c-19.389-4.888-40.127-1.36-56.916 9.675c-14.917 9.818-24.874 24.08-27.305 39.14l2.575.417z\"></path><path fill=\"#FFF\" d=\"M450.08 300.05c111.308-25.883 154.14 112.456 68.645 166.055c10.324-20.44 1.233-37.975-18.811-45.776c-22.443-8.732-30.093-43.46-20.504-60.215c15.753-27.545.029-59.043-29.33-60.065z\"></path><path fill=\"#DE2910\" d=\"M512.872 376.79l-.674-10.998l8.092 7.49l10.26-4.046l-4.618 10.018l7.008 8.504l-10.943-1.307l-5.921 9.3l-2.154-10.809l-10.663-2.765l9.613-5.386zm-62.596-75.457c14.14-2.197 30.451 2.79 43.636 13.328c15.112 12.098 24.53 30.067 25.811 49.278l2.606-.17c-1.343-19.95-11.107-38.583-26.79-51.14c-13.947-11.153-30.587-16.216-45.663-13.874l.4 2.578z\"></path><path fill=\"#FFF\" d=\"M449.978 300.092c59.011 97.862-59.32 181.347-136.716 116.599c22.63 3.502 36.497-10.563 37.722-32.037c1.37-24.042 32.034-42.05 50.932-38.107c31.065 6.47 56.163-18.218 48.062-46.455z\"></path><path fill=\"#DE2910\" d=\"M396.396 383.524l10.253-4.04l-4.623 10.01l7.018 8.51l-10.955-1.297l-5.922 9.293l-2.139-10.812l-10.673-2.758l9.613-5.388l-.665-10.996l8.093 7.478zm52.422-82.85c6.459 12.77 6.757 29.823.808 45.62c-6.836 18.11-21.015 32.62-38.89 39.775l.967 2.426c18.559-7.442 33.263-22.487 40.359-41.282c6.297-16.711 5.97-34.1-.916-47.715l-2.328 1.177z\"></path><path fill=\"#FFF\" d=\"M449.906 300.007c-74.837 86.364-190.803-.377-153.14-93.993c3.662 22.604 21.324 31.447 42.125 25.976c23.29-6.127 49.89 17.472 51.982 36.663c3.446 31.544 34.681 47.784 59.033 31.354z\"></path><path fill=\"#DE2910\" d=\"M354 274.83l7.009 8.503l-10.948-1.303l-5.924 9.303l-2.152-10.82l-10.668-2.76l9.622-5.375l-.676-11.003l8.095 7.478l10.253-4.03l-4.612 10.007zm94.993 24.254c-10.149 10.089-26.275 15.642-43.136 14.866c-19.337-.905-37.519-9.906-49.847-24.695l-2.008 1.669c12.813 15.35 31.665 24.686 51.733 25.626c17.84.825 34.277-4.86 45.097-15.615l-1.84-1.851z\"></path></g>'},hn:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#0073CF\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFF\" d=\"M.5 50.5h300v50H.5z\"></path><path fill=\"#0073CF\" d=\"M142.575 72.925l4.898 3.558l-1.871 5.759l4.898-3.559l4.898 3.559l-1.871-5.759l4.899-3.558h-6.055l-1.871-5.758l-1.871 5.758zm41.666-13.334l4.899 3.559l-1.871 5.758l4.898-3.559l4.898 3.559l-1.871-5.758l4.899-3.559h-6.055l-1.871-5.758l-1.871 5.758zm0 25l4.899 3.559l-1.871 5.758l4.898-3.559l4.898 3.559l-1.871-5.758l4.899-3.559h-6.055l-1.871-5.758l-1.871 5.758zm-83.333 0l4.898 3.559l-1.871 5.758l4.899-3.559l4.898 3.559l-1.871-5.758l4.898-3.559h-6.055l-1.87-5.758l-1.871 5.758zm0-25l4.898 3.559l-1.871 5.758l4.899-3.559l4.898 3.559l-1.871-5.758l4.898-3.559h-6.055l-1.87-5.758l-1.871 5.758z\"></path></g>'},hu:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#CE1126\" d=\"M.5.5h300v50H.5z\"></path><path fill=\"#FFF\" d=\"M.5 50.5h300v50H.5z\"></path><path fill=\"#008751\" d=\"M.5 100.5h300v50H.5z\"></path></g>'},id:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#CE1126\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" d=\"M.5 100.5h300v100H.5z\"></path></g>'},ie:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#009B48\" d=\"M.5.5h100v150H.5z\"></path><path fill=\"#FFF\" d=\"M100.5.5h100v150h-100z\"></path><path fill=\"#FF7900\" d=\"M200.5.5h100v150h-100z\"></path></g>'},il:{viewBox:\"0 0 301 219\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.409h300v218.182H.5z\"></path><path fill=\"#0038B8\" d=\"M.5 20.863h300v34.091H.5zm0 143.182h300v34.091H.5z\"></path><path stroke=\"#0038B8\" stroke-width=\"6.364\" d=\"M150.5 149.237l34.414-59.606h-68.828z\"></path><path stroke=\"#0038B8\" stroke-width=\"6.364\" d=\"M150.5 69.762l-34.414 59.607h68.828z\"></path></g>'},in:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#F93\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" d=\"M.5 67.166h300v66.667H.5z\"></path><path fill=\"#128807\" d=\"M.5 133.833h300V200.5H.5z\"></path><circle cx=\"150.5\" cy=\"100.5\" r=\"26.667\" fill=\"#008\"></circle><circle cx=\"150.5\" cy=\"100.5\" r=\"23.333\" fill=\"#FFF\"></circle><circle cx=\"150.5\" cy=\"100.5\" r=\"4.667\" fill=\"#008\"></circle><circle cx=\"173.634\" cy=\"103.546\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M150.5 123.833l.8-14l-.8-6.667l-.8 6.667z\"></path><circle cx=\"172.057\" cy=\"109.429\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M144.461 123.038l4.396-13.316l.953-6.647l-2.498 6.232z\"></path><circle cx=\"169.012\" cy=\"114.704\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M138.834 120.707l7.693-11.724l2.641-6.174l-4.026 5.373z\"></path><circle cx=\"164.705\" cy=\"119.011\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M134.001 116.999l10.465-9.334l4.148-5.28l-5.28 4.148z\"></path><circle cx=\"159.429\" cy=\"122.057\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M130.293 112.166l12.525-6.307l5.373-4.026l-6.174 2.641z\"></path><circle cx=\"153.546\" cy=\"123.634\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M127.962 106.539l13.73-2.851l6.232-2.498l-6.647.953z\"></path><circle cx=\"147.454\" cy=\"123.634\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M127.167 100.5l14 .8l6.667-.8l-6.667-.8z\"></path><circle cx=\"141.571\" cy=\"122.057\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M127.962 94.461l13.316 4.396l6.647.953l-6.232-2.498z\"></path><circle cx=\"136.296\" cy=\"119.011\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M130.293 88.833l11.724 7.693l6.174 2.64l-5.373-4.026z\"></path><circle cx=\"131.989\" cy=\"114.704\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M134.001 84.001l9.334 10.465l5.28 4.148l-4.148-5.28z\"></path><circle cx=\"128.943\" cy=\"109.429\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M138.834 80.293l6.307 12.524l4.026 5.374l-2.641-6.174z\"></path><circle cx=\"127.366\" cy=\"103.546\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M144.461 77.962l2.851 13.73l2.498 6.232l-.953-6.646z\"></path><circle cx=\"127.366\" cy=\"97.454\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M150.5 77.166l-.8 14l.8 6.667l.8-6.667z\"></path><circle cx=\"128.943\" cy=\"91.57\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M156.539 77.962l-4.396 13.316l-.953 6.646l2.498-6.232z\"></path><circle cx=\"131.989\" cy=\"86.295\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M162.167 80.293l-7.693 11.724l-2.64 6.174l4.026-5.374z\"></path><circle cx=\"136.296\" cy=\"81.988\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M166.999 84.001l-10.465 9.334l-4.148 5.28l5.28-4.148z\"></path><circle cx=\"141.571\" cy=\"78.943\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M170.707 88.833l-12.524 6.307l-5.373 4.026l6.174-2.64z\"></path><circle cx=\"147.454\" cy=\"77.366\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M173.038 94.461l-13.73 2.851l-6.232 2.498l6.646-.953z\"></path><circle cx=\"153.546\" cy=\"77.366\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M173.834 100.5l-14-.8l-6.667.8l6.667.8z\"></path><circle cx=\"159.429\" cy=\"78.943\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M173.038 106.539l-13.316-4.396l-6.646-.953l6.232 2.498z\"></path><circle cx=\"164.705\" cy=\"81.988\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M170.707 112.166l-11.724-7.693l-6.174-2.641l5.373 4.026z\"></path><circle cx=\"169.012\" cy=\"86.295\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M166.999 116.999l-9.334-10.465l-5.28-4.148l4.148 5.28z\"></path><circle cx=\"172.057\" cy=\"91.57\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M162.167 120.707l-6.307-12.525l-4.026-5.373l2.64 6.174z\"></path><circle cx=\"173.634\" cy=\"97.454\" r=\"1.167\" fill=\"#008\"></circle><path fill=\"#008\" d=\"M156.539 123.038l-2.851-13.73l-2.498-6.232l.953 6.647z\"></path></g>'},iq:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#CE1126\" d=\"M.5.5h300v66.667H.5z\"></path><path fill=\"#FFF\" d=\"M.5 67.166h300v66.667H.5z\"></path><path fill=\"#000\" d=\"M.5 133.833h300V200.5H.5z\"></path><path fill=\"#007A3D\" d=\"M91.716 125.266l-1.724-1.892l1.74-1.875l1.74-1.875l1.724 1.892l1.724 1.892l-1.74 1.875l-1.74 1.875l-1.722-1.896l-.002.004zm-11.836-.953c-.62-.246-1.626-1.058-2.286-1.842c-1.243-1.479-1.526-2.169-.691-1.683c1.245.725 3.712 1.196 4.589.879c3.238-1.176 3.973-5.876 1.388-8.858c-.507-.585-.923-1.264-.923-1.511c0-.247.539-.707 1.198-1.024c.923-.444 1.374-.927 1.965-2.107c.599-1.198.845-1.459 1.133-1.199c.411.371 1.8 3.976 1.8 4.673c0 .367.502.448 2.774.448h2.774l-.433-1.131c-.238-.621-.63-1.457-.871-1.858c-.39-.649-.393-.764-.018-1.054c.231-.179.999-.768 1.708-1.307c.708-.539 1.369-1.217 1.468-1.506c.245-.717 1.78-2.786 2.064-2.786c.126 0 .231 2.169.231 4.82v4.821h34.632V98.277l-.964-.648l-.963-.648l-.976.81l-.976.809v9.872H113.96c-8.001 0-14.547-.055-14.547-.12c0-.105 7.238-10.737 8.123-11.932c.184-.248.639-.926 1.01-1.506c.372-.58.75-1.122.84-1.205c.092-.083.466-.625.836-1.205c.368-.58.799-1.213.956-1.406c.158-.194 2.78-4.016 5.827-8.494c3.048-4.478 5.632-8.15 5.745-8.16c.112-.01.271.355.353.81c.457 2.522.808 3.934 1.17 4.711c.464.993.192 1.364-1.032 1.405c-.579.019-1.914 1.801-8.174 10.914c-4.114 5.99-7.522 10.997-7.573 11.129c-.051.132 3.658.24 8.243.24h8.335l.004-3.24c.002-1.781.096-3.379.208-3.55c.523-.801 6.034-4.989 6.418-4.877c.239.069 1.713 1.184 3.275 2.477l2.84 2.352v20.097H88.691l-.483 1.943c-.58 2.329-1.529 4.009-2.803 4.958c-1.211.885-3.935 1.135-5.532.499l.007.001zm59.983-23.054c0-10.938.091-15.717.301-15.859c.165-.111.882.461 1.593 1.271a47.958 47.958 0 0 0 2.817 2.892c1.323 1.233 1.461 1.46 1.053 1.73c-1.364.901-1.33.617-1.33 11.016v9.771h2.652c2.355 0 2.79-.087 3.879-.782c1.352-.862 1.441-.748.772.971c-.251.641-.53 1.913-.624 2.824l-.169 1.657l-5.472.082l-5.471.082V101.25v.009h-.001zm28.651 11.589c.145-4.405.563-5.9 2.05-7.319c1.144-1.092 2.781-1.61 4.675-1.477l1.419.1l.085-1.802c.108-2.284-.082-3.099-.781-3.341c-.838-.289-.667-1.236.349-1.925c.497-.337 1.714-1.505 2.703-2.596c.989-1.091 1.897-1.983 2.016-1.983s.217 4.355.217 9.679v9.68h3.893v-9.96c0-8.652-.058-10.023-.438-10.436c-.24-.261-.553-.476-.695-.476c-.624 0-.183-1.211.645-1.773c.498-.337 1.708-1.498 2.691-2.581c.982-1.083 1.89-1.899 2.017-1.814c.126.085.23 6.203.23 13.597v13.443h3.893V84.335l-.695-.657c-.382-.361-.695-.822-.695-1.023c0-.201.865-1.125 1.923-2.054c1.057-.93 2.192-2.101 2.522-2.605c1.419-2.169 1.396-2.493 1.396 18.895v19.811h-29.548l.177-3.859l-.049.005zm8.277-2.951v-1.966H175.7c-1.464 0-2.802 1.383-2.802 2.897v1.035h3.893v-1.966zm24.204-8.899c0-10.98.091-15.779.302-15.921c.166-.111.886.463 1.599 1.277c.714.814 1.985 2.12 2.827 2.904c1.328 1.237 1.467 1.465 1.057 1.737c-1.369.905-1.335.621-1.335 11.059v9.809h2.717c2.464 0 2.815-.073 3.776-.783c.584-.43 1.128-.708 1.212-.617c.084.091-.067.749-.335 1.463c-.268.714-.566 2.047-.661 2.961l-.173 1.664l-5.493.082l-5.493.082v-15.721v.004zM179.097 84.54c-.491-.195-1.054-.542-1.251-.769c-.303-.347-.153-.382.948-.21c1.977.306 3.188-.058 4.291-1.294l.97-1.085l1.347.52c.741.286 1.516.45 1.722.363c.534-.224 1.503-1.893 1.406-2.424c-.118-.648.429-.549.767.137c.664 1.349.11 3.059-1.159 3.58c-.621.255-1.221.262-2.227.028c-1.236-.288-1.438-.258-1.98.294c-1.211 1.237-3.058 1.566-4.833.863l-.001-.003zm3.371-4.995c-.67-.497-2.084-3.045-2.137-3.856c-.047-.695.067-.907.521-.979c.795-.124 1.163.452 1.774 2.78c.501 1.907.449 2.508-.157 2.054h-.001v.001z\"></path></g>'},ir:{viewBox:\"0 0 300 173\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#239F40\" fill-rule=\"nonzero\" d=\"M0 .5h300v172H0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M0 57.833h300v57.333H0z\"></path><path fill=\"#DA0000\" fill-rule=\"nonzero\" d=\"M0 115.166h300v57.333H0z\"></path><path stroke=\"#FFF\" stroke-linecap=\"square\" stroke-width=\"1.717\" d=\"M138 49.138h16m-16 5.351v-2.676h5.333v2.676h5.333v-2.676H146m8 2.676h-2.667v-2.676h5.333v-2.676m.001 2.676v2.676H162v-5.351m-2.666 0v5.351M138 57.451h10.667m2.667 0H162m-24 61.06h16m-16 5.351v-2.676h5.333v2.676h5.333v-2.676H146m8 2.676h-2.667v-2.676h5.333v-2.676m.001 2.676v2.676H162v-5.351m-2.666 0v5.351M138 115.549h10.667m2.667 0H162m2.667-66.411h16m-16 5.351v-2.676H170v2.676h5.333v-2.676h-2.667m8.001 2.676H178v-2.676h5.333v-2.676m.001 2.676v2.676h5.333v-5.351m-2.667 0v5.351m-21.333 2.962h10.667m2.666 0h10.667m-24 61.06h16m-16 5.351v-2.676H170v2.676h5.333v-2.676h-2.667m8.001 2.676H178v-2.676h5.333v-2.676m.001 2.676v2.676h5.333v-5.351m-2.667 0v5.351m-21.333-8.313h10.667m2.666 0h10.667m-104-66.411h16m-16 5.351v-2.676H90v2.676h5.333v-2.676h-2.667m8.001 2.676H98v-2.676h5.333v-2.676m.001 2.676v2.676h5.333v-5.351m-2.667 0v5.351m-21.333 2.962h10.667m2.666 0h10.667m-24 61.06h16m-16 5.351v-2.676H90v2.676h5.333v-2.676h-2.667m8.001 2.676H98v-2.676h5.333v-2.676m.001 2.676v2.676h5.333v-5.351m-2.667 0v5.351m-21.333-8.313h10.667m2.666 0h10.667m2.667-66.411h16m-16 5.351v-2.676h5.333v2.676H122v-2.676h-2.667m8.001 2.676h-2.667v-2.676H130v-2.676m0 2.676v2.676h5.333v-5.351m-2.666 0v5.351m-21.333 2.962H122m2.667 0h10.667m-24 61.06h16m-16 5.351v-2.676h5.333v2.676H122v-2.676h-2.667m8.001 2.676h-2.667v-2.676H130v-2.676m0 2.676v2.676h5.333v-5.351m-2.666 0v5.351m-21.333-8.313H122m2.667 0h10.667m109.333-66.411h16m-16 5.351v-2.676H250v2.676h5.333v-2.676h-2.667m8.001 2.676H258v-2.676h5.333v-2.676m.001 2.676v2.676h5.333v-5.351m-2.667 0v5.351m-21.333 2.962h10.667m2.666 0h10.667m-24 61.06h16m-16 5.351v-2.676H250v2.676h5.333v-2.676h-2.667m8.001 2.676H258v-2.676h5.333v-2.676m.001 2.676v2.676h5.333v-5.351m-2.667 0v5.351m-21.333-8.313h10.667m2.666 0h10.667m2.667-66.411h16m-16 5.351v-2.676h5.333v2.676H282v-2.676h-2.667m8.001 2.676h-2.667v-2.676H290v-2.676m0 2.676v2.676h5.333v-5.351m-2.666 0v5.351m-21.333 2.962H282m2.667 0h10.667m-24 61.06h16m-16 5.351v-2.676h5.333v2.676H282v-2.676h-2.667m8.001 2.676h-2.667v-2.676H290v-2.676m0 2.676v2.676h5.333v-5.351m-2.666 0v5.351m-21.333-8.313H282m2.667 0h10.667m-104-66.411h16m-16 5.351v-2.676h5.333v2.676H202v-2.676h-2.667m8.001 2.676h-2.667v-2.676H210v-2.676m0 2.676v2.676h5.333v-5.351m-2.666 0v5.351m-21.333 2.962H202m2.667 0h10.667m-24 61.06h16m-16 5.351v-2.676h5.333v2.676H202v-2.676h-2.667m8.001 2.676h-2.667v-2.676H210v-2.676m0 2.676v2.676h5.333v-5.351m-2.666 0v5.351m-21.333-8.313H202m2.667 0h10.667M218 49.138h16m-16 5.351v-2.676h5.333v2.676h5.333v-2.676H226m8 2.676h-2.667v-2.676h5.333v-2.676m.001 2.676v2.676H242v-5.351m-2.666 0v5.351M218 57.451h10.667m2.667 0H242m-24 61.06h16m-16 5.351v-2.676h5.333v2.676h5.333v-2.676H226m8 2.676h-2.667v-2.676h5.333v-2.676m.001 2.676v2.676H242v-5.351m-2.666 0v5.351M218 115.549h10.667m2.667 0H242M58 49.138h16m-16 5.351v-2.676h5.333v2.676h5.333v-2.676H66m8 2.676h-2.667v-2.676h5.333v-2.676m.001 2.676v2.676H82v-5.351m-2.666 0v5.351M58 57.451h10.667m2.667 0H82m-24 61.06h16m-16 5.351v-2.676h5.333v2.676h5.333v-2.676H66m8 2.676h-2.667v-2.676h5.333v-2.676m.001 2.676v2.676H82v-5.351m-2.666 0v5.351M58 115.549h10.667m2.667 0H82M4.667 49.138h16m-16 5.351v-2.676H10v2.676h5.333v-2.676h-2.667m8.001 2.676H18v-2.676h5.333v-2.676m.001 2.676v2.676h5.333v-5.351m-2.667 0v5.351M4.667 57.451h10.667m2.666 0h10.667m-24 61.06h16m-16 5.351v-2.676H10v2.676h5.333v-2.676h-2.667m8.001 2.676H18v-2.676h5.333v-2.676m.001 2.676v2.676h5.333v-5.351m-2.667 0v5.351m-21.333-8.313h10.667m2.666 0h10.667m2.667-66.411h16m-16 5.351v-2.676h5.333v2.676H42v-2.676h-2.667m8.001 2.676h-2.667v-2.676H50v-2.676m0 2.676v2.676h5.333v-5.351m-2.666 0v5.351m-21.333 2.962H42m2.667 0h10.667m-24 61.06h16m-16 5.351v-2.676h5.333v2.676H42v-2.676h-2.667m8.001 2.676h-2.667v-2.676H50v-2.676m0 2.676v2.676h5.333v-5.351m-2.666 0v5.351m-21.333-8.313H42m2.667 0h10.667\"></path><path fill=\"#DA0000\" fill-rule=\"nonzero\" d=\"M158.73 71.13s15.505 12.166 4.108 29.65c10.734-6.581 11.661-24.681-4.108-29.65zM150 69.402c-2.468 2.792-6.709.017-5.251-3.025c2.551 4.587 5.251.881 5.251.881s2.7 3.706 5.251-.881c1.458 3.042-2.782 5.817-5.251 3.025z\"></path><path fill=\"#DA0000\" fill-rule=\"nonzero\" d=\"M150 107.297l-1.772-2.327s-4.174 1.396-9.674-.532c4.506 0 7.024-.798 7.951-1.263c0 0-10.204-5.518-10.006-16.753c.596-11.368 6.626-14.826 6.626-14.826s-10.734 15.689 5.036 28.802l-.696-16.221V72.26c.895-.216 2.534-2.111 2.534-2.111s1.64 1.895 2.534 2.111v11.917l-.696 16.221c15.769-13.113 5.035-28.803 5.035-28.803s6.03 3.457 6.626 14.825c.199 11.235-10.005 16.753-10.005 16.753c.927.465 3.446 1.263 7.951 1.263c-5.5 1.928-9.674.532-9.674.532l-1.772 2.327l.002.002z\"></path><path fill=\"#DA0000\" fill-rule=\"nonzero\" d=\"M141.271 71.13s-15.505 12.166-4.108 29.65c-10.734-6.581-11.662-24.681 4.108-29.65z\"></path></g>'},is:{viewBox:\"0 0 301 217\",innerHTML:'<g fill=\"none\"><path fill=\"#003897\" d=\"M.5.5h300v216H.5\"></path><path fill=\"#FFF\" d=\"M84.5.5h48v216h-48m-84-132h300v48H.5\"></path><path fill=\"#D72828\" d=\"M96.5.5h24v216h-24m-96-120h300v24H.5\"></path></g>'},it:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#009246\" d=\"M.5.5h100v200H.5z\"></path><path fill=\"#FFF\" d=\"M100.5.5h100v200h-100z\"></path><path fill=\"#CE2B37\" d=\"M200.5.5h100v200h-100z\"></path></g>'},jm:{viewBox:\"0 0 301 151\",innerHTML:'<defs><path id=\"IconifyId-17ca80ef3d5-b8efe2-206\" d=\"M.5.5h300v150H.5z\"></path></defs><g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#009B3A\" fill-rule=\"nonzero\" d=\"M.5.5h300v150H.5z\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-207\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-206\"></use></mask><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#FED100\" stroke-width=\"20\" d=\"M300.5.5l-150 75l150 75M.5.5l150 75l-150 75\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-207)\"></path></g>'},jo:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#000\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFF\" d=\"M.5 50.5h300v50H.5z\"></path><path fill=\"#007A3D\" d=\"M.5 100.5h300v50H.5z\"></path><path fill=\"#CE1126\" d=\"M150.5 75.5l-150 75V.5z\"></path><path fill=\"#FFF\" d=\"M56.853 78.091l-6.392.596l.842 6.385l-4.45-4.641l-4.451 4.641l.843-6.385l-6.392-.596l5.501-3.32l-3.521-5.386l6.018 2.244l2.002-6.119l2.002 6.119l6.017-2.244l-3.52 5.386z\"></path></g>'},jp:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.5h300v200H.5z\"></path><circle cx=\"150.5\" cy=\"100.5\" r=\"60\" fill=\"#BC002D\"></circle></g>'},ke:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#000\" d=\"M.5.5h300v60H.5z\"></path><path fill=\"#060\" d=\"M.5 140.5h300v60H.5z\"></path><path fill=\"#000\" stroke=\"#000\" stroke-width=\"0.333\" d=\"M114.777 159.875l2.165 1.25l58.391-101.136c3.415-.915 5.29-4.163 7.165-7.41c1.25-2.165 6.25-10.826 8.417-22.079c-8.662 7.503-13.662 16.163-14.912 18.329c-1.875 3.247-3.75 6.495-2.835 9.91l-58.391 101.136z\"></path><path fill=\"#FFF\" d=\"M114.777 159.875l2.165 1.25l58.391-101.136c3.415-.915 5.29-4.163 7.165-7.41c1.25-2.165 6.25-10.826 8.417-22.079c-8.662 7.503-13.662 16.163-14.912 18.329c-1.875 3.247-3.75 6.495-2.835 9.91l-58.391 101.136z\"></path><path fill=\"#000\" stroke=\"#000\" stroke-width=\"0.333\" d=\"M186.224 159.875l-2.165 1.25l-58.391-101.136c-3.415-.915-5.29-4.163-7.165-7.41c-1.25-2.165-6.25-10.826-8.417-22.079c8.662 7.503 13.662 16.163 14.912 18.329c1.875 3.247 3.75 6.495 2.835 9.91l58.391 101.136z\"></path><path fill=\"#FFF\" d=\"M186.224 159.875l-2.165 1.25l-58.391-101.136c-3.415-.915-5.29-4.163-7.165-7.41c-1.25-2.165-6.25-10.826-8.417-22.079c8.662 7.503 13.662 16.163 14.912 18.329c1.875 3.247 3.75 6.495 2.835 9.91l58.391 101.136z\"></path><path fill=\"#B00\" d=\"M.5 70.5v60h126.25c3.75 10 16.25 30 23.75 30s20-20 23.75-30H300.5v-60H174.25c-3.75-10-16.25-30-23.75-30s-20 20-23.75 30H.5z\"></path><path fill=\"#000\" d=\"M174.25 130.5c3.75-10 6.25-20 6.25-30s-2.5-20-6.25-30c-3.75 10-6.25 20-6.25 30s2.5 20 6.25 30m-47.5 0c-3.75-10-6.25-20-6.25-30s2.5-20 6.25-30c3.75 10 6.25 20 6.25 30s-2.5 20-6.25 30\"></path><ellipse cx=\"150.5\" cy=\"100.5\" fill=\"#FFF\" rx=\"5\" ry=\"7.5\"></ellipse><path fill=\"#FFF\" d=\"M151.75 107.812s5 10 5 26.25s-5 26.25-5 26.25v-52.5zm-2.5-14.625s-5-10-5-26.25s5-26.25 5-26.25v52.5zm0 14.625s-5 10-5 26.25s5 26.25 5 26.25v-52.5zm2.5-14.625s5-10 5-26.25s-5-26.25-5-26.25v52.5z\"></path></g>'},kg:{viewBox:\"0 0 301 181\",innerHTML:'<defs><ellipse id=\"IconifyId-17ca80ef3d5-b8efe2-208\" cx=\"24.704\" cy=\"24.912\" rx=\"24.563\" ry=\"24.833\"></ellipse><ellipse id=\"IconifyId-17ca80ef3d5-b8efe2-209\" cx=\"24.704\" cy=\"24.912\" rx=\"24.563\" ry=\"24.833\"></ellipse><ellipse id=\"IconifyId-17ca80ef3d5-b8efe2-210\" cx=\"24.704\" cy=\"24.912\" rx=\"24.563\" ry=\"24.833\"></ellipse><ellipse id=\"IconifyId-17ca80ef3d5-b8efe2-211\" cx=\"24.704\" cy=\"24.912\" rx=\"24.563\" ry=\"24.833\"></ellipse><ellipse id=\"IconifyId-17ca80ef3d5-b8efe2-212\" cx=\"24.704\" cy=\"24.912\" rx=\"24.563\" ry=\"24.833\"></ellipse><ellipse id=\"IconifyId-17ca80ef3d5-b8efe2-213\" cx=\"24.704\" cy=\"24.912\" rx=\"24.563\" ry=\"24.833\"></ellipse></defs><g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#E8112D\" fill-rule=\"nonzero\" d=\"M.5.5h300v180H.5z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M153.224 58.281c-2.52-6.6 2.88-16.8-2.52-21.6c1.8 7.2-4.2 15-2.52 21.6c1.68 6.6 7.56 6.6 5.04 0z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M158.262 59.074c-1.457-6.913 5.473-16.143.89-21.728c.652 7.393-6.495 14.158-5.868 20.94c.626 6.782 6.434 7.701 4.978.788z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M163.113 60.646c-.357-7.056 7.931-15.088 4.278-21.322c-.513 7.404-8.63 12.968-9.071 19.764c-.442 6.797 5.15 8.614 4.793 1.558z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M167.659 62.957c.751-7.025 10.193-13.661 7.561-20.39c-1.665 7.232-10.552 11.458-12.052 18.102c-1.5 6.643 3.74 9.313 4.491 2.288z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M171.787 65.95c1.841-6.821 12.205-11.899 10.657-18.956c-2.776 6.883-12.214 9.667-14.735 15.993c-2.52 6.328 2.237 9.784 4.078 2.963z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M175.396 69.553c2.885-6.449 13.916-9.843 13.492-17.055c-3.819 6.364-13.576 7.637-17.055 13.492c-3.48 5.854.678 10.012 3.563 3.563z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M178.397 73.676c3.858-5.918 15.284-7.545 15.994-14.735c-4.767 5.688-14.604 5.419-18.956 10.658c-4.352 5.238-.896 9.995 2.962 4.077z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M180.717 78.217c4.737-5.242 16.276-5.061 18.102-12.051c-5.598 4.872-15.272 3.067-20.39 7.561c-5.118 4.493-2.449 9.732 2.288 4.49z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M182.297 83.066c5.498-4.436 16.868-2.452 19.764-9.071c-6.291 3.937-15.564.641-21.321 4.278c-5.758 3.637-3.941 9.229 1.557 4.793z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M183.099 88.102c6.125-3.521 17.044.216 20.94-5.868c-6.83 2.904-15.472-1.802-21.728.89c-6.256 2.692-5.336 8.499.788 4.978z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M183.104 93.202c6.6-2.52 16.8 2.88 21.6-2.52c-7.2 1.8-15-4.2-21.6-2.52c-6.6 1.679-6.6 7.559 0 5.04z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M182.311 98.239c6.913-1.456 16.143 5.473 21.728.89c-7.393.652-14.158-6.495-20.94-5.868c-6.781.627-7.701 6.434-.788 4.978z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M180.74 103.09c7.056-.357 15.088 7.931 21.321 4.278c-7.404-.513-12.968-8.63-19.764-9.071c-6.796-.442-8.613 5.151-1.557 4.793z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M178.429 107.636c7.025.751 13.661 10.193 20.39 7.561c-7.233-1.665-11.458-10.552-18.102-12.052c-6.644-1.499-9.313 3.74-2.288 4.491z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M175.435 111.764c6.821 1.841 11.899 12.205 18.956 10.658c-6.883-2.776-9.666-12.215-15.994-14.735c-6.327-2.52-9.783 2.237-2.962 4.077z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M171.832 115.374c6.449 2.885 9.843 13.916 17.055 13.491c-6.364-3.818-7.637-13.576-13.492-17.055c-5.854-3.479-10.011.679-3.563 3.564z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M167.71 118.375c5.918 3.858 7.545 15.284 14.735 15.993c-5.688-4.767-5.419-14.604-10.657-18.956c-5.24-4.352-9.996-.896-4.078 2.963z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M163.168 120.694c5.242 4.737 5.061 16.276 12.052 18.102c-4.872-5.598-3.068-15.272-7.561-20.39s-9.733-2.448-4.491 2.288z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M158.32 122.274c4.436 5.498 2.452 16.868 9.071 19.764c-3.937-6.292-.641-15.564-4.278-21.322c-3.637-5.757-9.23-3.94-4.793 1.558z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M153.283 123.077c3.522 6.125-.216 17.044 5.868 20.94c-2.904-6.83 1.802-15.472-.89-21.728c-2.692-6.256-8.499-5.337-4.978.788z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M148.184 123.081c2.52 6.6-2.88 16.8 2.52 21.6c-1.8-7.2 4.2-15 2.52-21.6c-1.68-6.6-7.56-6.6-5.04 0z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M143.147 122.288c1.456 6.913-5.473 16.143-.89 21.728c-.652-7.393 6.495-14.158 5.868-20.94c-.627-6.781-6.435-7.701-4.978-.788z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M138.295 120.717c.357 7.056-7.93 15.088-4.278 21.322c.513-7.404 8.63-12.968 9.072-19.764c.441-6.797-5.151-8.614-4.794-1.558z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M133.749 118.406c-.751 7.025-10.193 13.661-7.561 20.39c1.665-7.233 10.552-11.459 12.052-18.102c1.5-6.643-3.74-9.313-4.491-2.288z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M129.621 115.412c-1.841 6.821-12.205 11.899-10.658 18.956c2.776-6.883 12.215-9.667 14.735-15.993c2.521-6.327-2.236-9.783-4.077-2.963z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M126.012 111.81c-2.885 6.449-13.916 9.843-13.492 17.055c3.818-6.364 13.576-7.637 17.055-13.491c3.48-5.855-.678-10.013-3.563-3.564z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M123.011 107.687c-3.858 5.918-15.284 7.545-15.993 14.735c4.767-5.688 14.604-5.419 18.956-10.658c4.351-5.238.895-9.995-2.963-4.077z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M120.691 103.145c-4.736 5.242-16.276 5.061-18.102 12.052c5.598-4.873 15.272-3.068 20.39-7.561c5.119-4.493 2.449-9.732-2.288-4.491z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M119.111 98.297c-5.498 4.436-16.868 2.452-19.764 9.071c6.291-3.937 15.564-.641 21.322-4.278c5.757-3.637 3.94-9.229-1.558-4.793z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M118.309 93.261c-6.125 3.521-17.044-.216-20.94 5.868c6.83-2.904 15.472 1.802 21.728-.89c6.256-2.692 5.336-8.499-.788-4.978z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M118.304 88.161c-6.6 2.52-16.8-2.88-21.6 2.52c7.2-1.8 15 4.2 21.6 2.52c6.6-1.68 6.6-7.56 0-5.04z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M119.097 83.124c-6.913 1.456-16.143-5.473-21.728-.89c7.393-.652 14.158 6.495 20.94 5.868c6.781-.627 7.701-6.435.788-4.978z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M120.669 78.273c-7.056.357-15.088-7.931-21.322-4.278c7.404.513 12.968 8.63 19.764 9.071c6.796.442 8.613-5.15 1.558-4.793z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M122.98 73.727c-7.025-.751-13.661-10.193-20.39-7.561c7.233 1.665 11.459 10.552 18.102 12.051c6.643 1.5 9.312-3.739 2.288-4.49z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M125.973 69.599c-6.821-1.841-11.899-12.205-18.956-10.658c6.883 2.776 9.667 12.215 15.993 14.735c6.328 2.52 9.784-2.237 2.963-4.077z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M129.576 65.989c-6.449-2.885-9.843-13.916-17.055-13.492c6.364 3.819 7.637 13.576 13.492 17.055c5.854 3.48 10.012-.678 3.563-3.563z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M133.698 62.988c-5.918-3.858-7.545-15.284-14.735-15.993c5.688 4.767 5.419 14.604 10.658 18.956c5.239 4.351 9.996.895 4.077-2.963z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M138.24 60.669c-5.242-4.737-5.061-16.276-12.052-18.102c4.873 5.598 3.068 15.272 7.561 20.39c4.494 5.118 9.733 2.448 4.491-2.288z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M143.089 59.089c-4.436-5.498-2.452-16.868-9.072-19.764c3.937 6.292.641 15.564 4.278 21.322c3.638 5.757 9.23 3.94 4.794-1.558z\"></path><path fill=\"#FFEF00\" fill-rule=\"nonzero\" d=\"M148.125 58.286c-3.521-6.125.216-17.044-5.868-20.94c2.904 6.83-1.802 15.473.89 21.728c2.692 6.257 8.499 5.337 4.978-.788z\"></path><circle cx=\"150.704\" cy=\"90.681\" r=\"32.4\" fill=\"#E8112D\" fill-rule=\"nonzero\"></circle><path stroke=\"#FFEF00\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.4\" d=\"M182.599 90.195c.003 17.596-14.26 31.863-31.856 31.865c-17.596.003-31.862-14.26-31.865-31.856v-.009c-.003-17.596 14.26-31.862 31.856-31.865c17.596-.003 31.862 14.26 31.865 31.856v.009z\"></path><ellipse cx=\"150.704\" cy=\"88.911\" fill=\"#FFEF00\" fill-rule=\"nonzero\" rx=\"24.029\" ry=\"24.293\"></ellipse><g transform=\"translate(126 64)\"><mask id=\"IconifyId-17ca80ef3d5-b8efe2-214\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-208\"></use></mask><path fill=\"#E8112D\" fill-rule=\"nonzero\" d=\"M48.733 11.61c-18.768 0-33.982 15.381-33.982 34.355c0 18.974 15.214 34.355 33.982 34.355l-1.922 1.331c-19.494 0-35.298-15.977-35.298-35.686s15.804-35.686 35.298-35.686l1.922 1.331z\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-214)\"></path></g><g transform=\"translate(126 64)\"><mask id=\"IconifyId-17ca80ef3d5-b8efe2-215\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-209\"></use></mask><path fill=\"#E8112D\" fill-rule=\"nonzero\" d=\"M45.529 9.338C25.52 9.338 9.3 25.737 9.3 45.966s16.22 36.628 36.229 36.628l-1.922 1.486c-20.821 0-37.7-17.064-37.7-38.114c0-21.05 16.879-38.114 37.7-38.114l1.922 1.486z\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-215)\"></path></g><g transform=\"translate(126 64)\"><mask id=\"IconifyId-17ca80ef3d5-b8efe2-216\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-210\"></use></mask><path fill=\"#E8112D\" fill-rule=\"nonzero\" d=\"M42.325 6.815c-21.387 0-38.724 17.528-38.724 39.15s17.337 39.15 38.724 39.15l-1.922 1.614c-22.268 0-40.32-18.25-40.32-40.764c0-22.513 18.052-40.763 40.32-40.763l1.922 1.613z\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-216)\"></path></g><g transform=\"translate(126 64)\"><mask id=\"IconifyId-17ca80ef3d5-b8efe2-217\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-211\"></use></mask><path fill=\"#E8112D\" fill-rule=\"nonzero\" d=\"M.675 11.61c18.768 0 33.982 15.381 33.982 34.355c0 18.974-15.214 34.355-33.982 34.355l1.922 1.331c19.495 0 35.298-15.977 35.298-35.686S22.092 10.279 2.597 10.279L.675 11.61z\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-217)\"></path></g><g transform=\"translate(126 64)\"><mask id=\"IconifyId-17ca80ef3d5-b8efe2-218\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-212\"></use></mask><path fill=\"#E8112D\" fill-rule=\"nonzero\" d=\"M3.879 9.338c20.009 0 36.23 16.399 36.23 36.628s-16.22 36.628-36.23 36.628l1.922 1.486c20.821 0 37.699-17.064 37.699-38.114c0-21.05-16.879-38.114-37.699-38.114L3.879 9.338z\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-218)\"></path></g><g transform=\"translate(126 64)\"><mask id=\"IconifyId-17ca80ef3d5-b8efe2-219\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-213\"></use></mask><path fill=\"#E8112D\" fill-rule=\"nonzero\" d=\"M7.083 6.815c21.387 0 38.724 17.528 38.724 39.15s-17.338 39.15-38.724 39.15l1.922 1.614c22.268 0 40.32-18.25 40.32-40.764c0-22.513-18.052-40.763-40.32-40.763L7.083 6.815z\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-219)\"></path></g></g>'},kh:{viewBox:\"0 0 301 193\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#E00025\" fill-rule=\"nonzero\" d=\"M.5 48.5h300v96H.5z\"></path><path fill=\"#032EA1\" fill-rule=\"nonzero\" d=\"M.5.5h300v48H.5zm0 144h300v48H.5z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M149.37 58.994s-.07-1.974 1.08-1.995c1.15.021 1.08 1.995 1.08 1.995h-2.16zm47.505 51.606v-9.849c.322-1.249 1.382-2.354 2.179-2.576v-9.237c-1.206 0-1.796 1.571-1.796 1.571l-2.05 9.03v10.985l1.667.076z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" stroke-width=\"0.485\" d=\"M178.98 90.993h-2.957v6.266h2.957z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M123.46 90.993h54.625v21.018H123.46V90.993z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M104.218 110.561v-9.81c-.322-1.25-1.382-2.355-2.18-2.577v-8.637l1.796.971l2.05 9.03v11.022h-1.666v.001z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M104.218 110.6v-9.849c-.322-1.249-1.382-2.354-2.18-2.576v-9.237c1.206 0 1.796 1.571 1.796 1.571l2.05 9.03v10.985l-1.666.076z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M102.094 113.115c.845-.43 1.809-1.432 2.124-2.553h92.676c.315 1.121 1.279 2.123 2.124 2.553h-96.924z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M175.262 102.596h1.722v7.918h-1.722z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M123.461 98.686h54.624v2.443h-54.624zm0-3.312h54.624v2.155h-54.624z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linejoin=\"bevel\" stroke-width=\"0.443\" d=\"M123.461 92.066h54.624v2.09h-54.624z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" stroke-width=\"0.485\" d=\"M178.98 90.993h-2.957v6.266h2.957z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M198.072 113.115c-.831-.375-2.04-1.4-2.04-2.433V98.42l.57-1.012H175.71l.815 1.012v12.263c0 1.032-.83 2.058-1.661 2.433h23.207z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M137.838 102.596h1.722v7.918h-1.722zm23.517 0h1.721v7.918h-1.721z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M164.234 113.115c-.973-.375-2.39-1.4-2.39-2.433V99.02l1.267-1.612h-25.332l1.214 1.612v11.663c0 1.032-.973 2.058-1.945 2.433h27.186z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M142.284 102.596h1.722v7.918h-1.722zm14.551 0h1.721v7.918h-1.721z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M137.326 84.134v13.274h25.93V94.55l.038-10.415c-1.061.417-1.247 1.378-1.247 1.378v5.653h-23.4v-5.653s-.261-.96-1.321-1.378z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M159.738 113.115c-.848-.375-2.694-1.4-2.694-2.433V97.63c.18-.729 1.169-1.159 1.805-1.612h-17.195c.818.433 1.73.793 2.057 1.612v13.052c0 1.032-1.46 2.058-2.307 2.433h18.334z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M162.045 96.157v-9.402h-2.357v-.916h-18.643v.916h-2.357v9.402z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M123.892 102.596h1.722v7.918h-1.722z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M102.94 113.115c.832-.375 2.04-1.4 2.04-2.433V98.42l-.57-1.012h20.89l-.814 1.012v12.263c0 1.032.83 2.058 1.66 2.433h-23.205z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M105.179 89.246h1.928v7.152h-1.928zm-.012-1.53h1.928v1.507h-1.928z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M121.93 113.115c-.831-.375-2.04-1.4-2.04-2.433V99.02l1.738-1.612h-14.202l1.737 1.612v11.663c0 1.032-1.21 2.058-2.04 2.433h14.807z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M119.94 113.115c-.83-.375-2.038-1.4-2.038-2.433V100.14l1.137-1.612h-9.023l1.137 1.612v10.543c0 1.032-1.21 2.058-2.04 2.433h10.828zm73.883 0c-.83-.375-2.04-1.4-2.04-2.433V99.02l1.738-1.612h-14.202l1.737 1.612v11.663c0 1.032-1.21 2.058-2.04 2.433h14.807z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M191.834 113.115c-.83-.375-2.04-1.4-2.04-2.433V100.14l1.138-1.612h-9.023l1.137 1.612v10.543c0 1.032-1.21 2.058-2.04 2.433h10.828zM112.37 98.526h4.312v14.59h-4.311v-14.59zm43.653 14.589c-.83-.375-2.04-1.4-2.04-2.433V99.54l.683-1.012h-8.491l.682 1.012v11.143c0 1.032-1.21 2.058-2.04 2.433h11.206z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.46\" d=\"M148.268 98.53h4.303v14.581h-4.303z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M184.265 98.526h4.31v14.59h-4.31z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M146.101 92.985h8.637v3.182h-8.637z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M154.832 95.321c.01-.96 2.802-1.004 4.239-1.822h-17.257c1.437.818 4.164.885 4.164 1.822l.584 1.863l7.144.287l1.126-2.15z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M158.206 85.175c0-2.35.098-3.257.82-3.257v7.48c-1.771.642-3.035 2.903-3.035 2.903h-11.142s-1.264-2.26-3.036-2.903V81.92c.89 0 .896.947.896 3.257h15.497z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M145.015 86.567c1.435 1.723 1.302 4.646 1.286 6.37h8.325c-.016-1.723-.15-4.646 1.285-6.37h-10.896z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M106.506 102.596h1.722v7.918h-1.722zm87.456-13.35h1.929v7.152h-1.929z\"></path><path stroke=\"#000\" stroke-width=\"0.45\" d=\"M102.094 113.115c.845-.43 1.809-1.432 2.124-2.553h92.676c.315 1.121 1.279 2.123 2.124 2.553h-96.924z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M121.265 102.596h1.722v7.918h-1.722z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M103.829 86.808v10.598h1.205V86.781c-.434-.219-.842-.252-1.205.027z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M103.866 93.666c1.494.764 2.974 1.648 3.348 3.74h-3.348v-3.74z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" stroke-width=\"0.485\" d=\"M122.09 90.993h2.956v6.266h-2.956z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M124.587 90.491v6.915h.977v-6.932c-.305-.143-.722-.166-.977.017zm18.787-5.317v-2.657c-.038-1.329-1.324-1.425-1.362-2.394c0 0-.166-1.453.217-2.116c.52 1.943 1.467 1.586 1.467.787c0-.697-.536-1.346-1.636-3.039c-.352-.54-.134-2.236.359-2.843c.19 1.474.409 2.18 1.043 2.18c.386 0 .7-.253.7-.99c0-.94-.635-1.414-.948-2.269c-.365-.997-.114-2.014.493-2.582c.26 1.454.183 2.034.828 2.034c1.302-.412 0-2.298-.278-2.773c-.32-.555.43-1.66.43-1.66c.414 1.29.547 1.395.994 1.276c.564-.15.49-.987-.197-1.663c-.434-.426-.388-1.06.078-1.57c.468.914 1.067.858 1.125.315l-.376-2.109h8.282l-.411 2.04c-.118.583.67.71 1.16-.248c.466.51.512 1.145.078 1.571c-.687.676-.76 1.512-.197 1.663c.447.12.58.014.994-1.277c0 0 .673.754.43 1.661c-.277.475-1.58 2.361-.277 2.773c.646 0 .568-.58.828-2.034c.606.568.857 1.585.493 2.582c-.313.855-.95 1.33-.95 2.268c0 .738.316.99.702.99c.633 0 .85-.705 1.042-2.179c.493.606.71 2.302.359 2.843c-1.1 1.693-1.636 2.342-1.636 3.04c0 .798.947 1.154 1.467-.788c.383.663.217 2.116.217 2.116c-.038.97-1.324 1.065-1.362 2.394v2.657h-14.156v.001z\"></path><path stroke=\"#000\" stroke-width=\"0.375\" d=\"M146.41 65.631h8.222\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M149.694 66.826l-1.141-.587V64.56c.467.14.99.197 1.04.94c.163-1.06.456-1.009.916-1.422c.46.413.753.362.915 1.422c.05-.743.575-.8 1.04-.94v1.68l-1.14.586h-1.63z\"></path><path stroke=\"#000\" stroke-width=\"0.375\" d=\"M145.436 68.197h10.042\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M149.619 69.581l-1.894-1.302v-1.547c.664.153 1.41.216 1.482 1.031c.23-1.163.648-1.764 1.303-2.217c.655.453 1.072 1.054 1.303 2.217c.073-.815.818-.878 1.482-1.03v1.546l-1.894 1.302h-1.782z\"></path><path stroke=\"#000\" stroke-width=\"0.375\" d=\"M144.464 71.312h11.953\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M149.485 73.874l-2.178-1.913v-2.273c.764.226 1.62.318 1.705 1.515c.266-1.709.745-2.592 1.499-3.258c.753.666 1.232 1.55 1.499 3.258c.083-1.197.94-1.289 1.704-1.515v2.273l-2.178 1.913h-2.051zm4.015 2.541l-1.97 2.725h-2.23l-1.97-2.725zm-7.303 4.573c.985.54 1.349 1.611 1.454 3.625h5.544c.105-2.014.469-3.087 1.454-3.625h-8.452z\"></path><path stroke=\"#000\" stroke-width=\"0.375\" d=\"M143.443 75.12h14.177m-14.502 4.336h14.604\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M154.732 76.415v-2.737c-.936.257-1.542.812-1.812 1.564c0-.909-1.196-3.004-2.5-4.046c-1.307 1.167-2.523 3.062-2.498 4.046c-.223-.716-.877-1.306-1.812-1.564v2.737h8.622z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M155.146 80.988v-2.737c-1.026.258-1.69.812-1.987 1.564c0-.909-1.31-3.004-2.74-4.046c-1.433 1.167-2.766 3.063-2.74 4.046c-.244-.716-.961-1.306-1.987-1.564v2.737h9.454z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M156.3 86.604v-3.157c-1.277.33-2.07 1.273-2.472 1.824c0-1.709-1.93-4.315-3.41-5.169c-1.516.876-3.407 3.57-3.407 5.17c-.412-.548-1.195-1.495-2.472-1.825v3.157h11.76z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M155.609 93.612v-3.246c-1.126.441-1.463 1.527-1.817 2.264c.139-3.292-1.854-6.83-3.372-7.728c-1.518.898-3.548 4.512-3.371 7.728c-.364-.733-.691-1.823-1.818-2.264v3.246h10.378z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M193.974 87.716h1.928v1.507h-1.928zm-15.922 14.88h1.721v7.918h-1.721zm14.758 0h1.722v7.918h-1.722z\"></path><path stroke=\"#000\" stroke-width=\"0.45\" d=\"M138.688 93.612h23.357m-15.943.003h8.657v3.182h-8.657z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M154.819 98.526V95.28c-1.18.281-1.253.716-1.628 1.443c.139-1.966-1.254-4.209-2.771-5.107c-1.518.898-2.911 3.141-2.772 5.107c-.375-.727-.421-1.162-1.628-1.443v3.246h8.799zm-29.255-4.86c-1.494.764-2.974 1.648-3.348 3.74h3.348v-3.74z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M105.034 89.246h2.073v8.116h-2.073zm0-1.53h2.06v1.507h-2.06v-1.507z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" stroke-width=\"0.485\" d=\"M122.09 90.993h2.956v6.266h-2.956z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M107.078 97.3V83.406c.59 0 .683 2.036 2.039 2.036c.706 0 .63-.843.235-1.53c-.351-.608-.786-1.448-.196-3.014c.405 1.198 1.494 1.578 1.293.827c-.346-1.29-1.341-1.502-.594-3.505c.259 1.671 1.33 1.597 1.07.626c-.292-1.094-.898-1.543-.151-3.085c.419 1.752.985 1.65.985.562c0-1.607-.062-3.339 2.017-3.982c0 0 .12-1.473.87-1.473s.87 1.473.87 1.473c2.079.643 2.017 2.376 2.017 3.982c0 1.087.567 1.19.985-.562c.747 1.542.14 1.991-.152 3.085c-.26.972.81 1.045 1.07-.626c.748 2.003-.248 2.214-.593 3.505c-.201.751.888.371 1.292-.827c.59 1.565.156 2.405-.195 3.014c-.397.687-.472 1.53.234 1.53c1.357 0 1.448-2.036 2.04-2.036V97.3h-15.136z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M115.687 77.46l.87-.732v-.937c-.318.031-.492.14-.727.45c-.2-.622-.64-1.108-1.23-1.409c-.59.301-1.03.764-1.23 1.385c-.235-.308-.41-.396-.728-.427v.937l.87.732h2.175v.001z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M116.153 79.81l.405-.876v-1.218c-.32.031-.493.142-.728.455c-.2-.63-.64-1.122-1.23-1.427c-.59.305-1.03.775-1.23 1.405c-.235-.313-.41-.4-.728-.433v1.218l.405.876h3.106z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M116.214 82.988l1.293-1.578v-1.556c-.473.053-.731.241-1.081.771c-.297-1.067-.951-1.3-1.827-1.818c-.876.517-1.53.713-1.827 1.78c-.35-.53-.608-.68-1.081-.734v1.556l1.293 1.578h3.23v.001z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M116.593 86.115s1.507-1.315 1.597-2.037v-1.664c-.584.068-1.137.22-1.568.904c-.367-1.378-.94-1.762-2.022-2.43c-1.081.668-1.655 1.052-2.021 2.43c-.431-.684-.984-.835-1.568-.904v1.664c.19.722 1.597 2.037 1.597 2.037h3.985z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M117.236 91.885s2.065-2.285 2.112-3.176v-2.595c-.773.107-1.503.638-2.074 1.704c-.485-2.148-1.243-3.645-2.674-4.687c-1.43 1.042-2.188 2.54-2.673 4.687c-.571-1.066-1.302-1.597-2.074-1.704v2.595c.148.891 2.112 3.176 2.112 3.176h5.27z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M117.236 95.296S119 93.5 119.348 92.72v-2.595c-.773.107-1.503.638-2.074 1.705c-.485-2.148-1.243-3.378-2.674-4.419c-1.43 1.042-2.188 2.271-2.673 4.42c-.571-1.067-1.302-1.599-2.074-1.706v2.595c.448.78 2.112 2.576 2.112 2.576h5.27z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M117.948 97.282c-.515-2.24-.958-3.902-3.438-5.588c-2.48 1.685-2.923 3.347-3.438 5.588h6.876z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M119.225 98.526V95.28c-1.126.441-2.144 1.095-2.52 1.822c-.42-1.802-1.227-2.596-2.234-3.686c-1.006 1.09-1.68 1.884-2.1 3.686c-.375-.727-1.393-1.38-2.52-1.822v3.246h9.374zm-15.396-11.718v10.598h1.205V86.781c-.434-.219-.842-.252-1.205.027z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M103.866 93.666c1.494.764 2.974 1.648 3.348 3.74h-3.348v-3.74zm20.721-3.175v6.915h.977v-6.932c-.305-.143-.722-.166-.977.017z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M125.564 93.612c-1.494.764-2.974 1.648-3.348 3.74h3.348v-3.74zm71.676-6.804v10.598h-1.204V86.781c.434-.219.842-.252 1.205.027zM178.926 97.3V83.406c.59 0 .683 2.036 2.039 2.036c.706 0 .63-.843.235-1.53c-.351-.608-.786-1.448-.196-3.014c.405 1.198 1.494 1.578 1.293.827c-.346-1.29-1.341-1.502-.594-3.505c.259 1.671 1.33 1.597 1.07.626c-.292-1.094-.898-1.543-.151-3.085c.419 1.752.985 1.65.985.562c0-1.607-.062-3.339 2.017-3.982c0 0 .12-1.473.87-1.473s.87 1.473.87 1.473c2.079.643 2.017 2.376 2.017 3.982c0 1.087.567 1.19.985-.562c.747 1.542.142 1.991-.152 3.085c-.26.972.81 1.045 1.07-.626c.748 2.003-.248 2.214-.593 3.505c-.201.751.888.371 1.292-.827c.59 1.565.156 2.405-.195 3.014c-.397.687-.472 1.53.235 1.53c1.357 0 1.448-2.036 2.039-2.036V97.3h-15.136z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M187.535 77.46l.87-.732v-.937c-.318.031-.491.14-.727.45c-.2-.622-.64-1.108-1.23-1.409c-.59.301-1.03.764-1.23 1.385c-.235-.308-.41-.396-.728-.427v.937l.87.732h2.175v.001z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M188 79.81l.406-.876v-1.218c-.32.031-.492.142-.728.455c-.2-.63-.64-1.122-1.23-1.427c-.59.305-1.03.775-1.23 1.405c-.235-.313-.41-.4-.728-.433v1.218l.405.876H188z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M188.063 82.988l1.293-1.578v-1.556c-.473.053-.731.241-1.081.771c-.297-1.067-.951-1.3-1.827-1.818c-.876.517-1.53.713-1.827 1.78c-.35-.53-.608-.68-1.081-.734v1.556l1.293 1.578h3.23v.001z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M188.44 86.115s1.508-1.315 1.598-2.037v-1.664c-.584.068-1.137.22-1.568.904c-.367-1.378-.94-1.762-2.022-2.43c-1.082.668-1.655 1.052-2.022 2.43c-.431-.684-.984-.835-1.568-.904v1.664c.19.722 1.597 2.037 1.597 2.037h3.986z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M189.084 91.885s2.065-2.285 2.112-3.176v-2.595c-.773.107-1.503.638-2.074 1.704c-.486-2.148-1.244-3.645-2.674-4.687c-1.43 1.042-2.188 2.54-2.674 4.687c-.571-1.066-1.302-1.597-2.074-1.704v2.595c.148.891 2.112 3.176 2.112 3.176h5.272z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M189.084 95.296s1.765-1.796 2.112-2.576v-2.595c-.773.107-1.503.638-2.074 1.705c-.486-2.148-1.244-3.378-2.674-4.419c-1.43 1.042-2.188 2.271-2.674 4.42c-.571-1.067-1.302-1.599-2.074-1.706v2.595c.448.78 2.112 2.576 2.112 2.576h5.272z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M189.796 97.282c-.515-2.24-.958-3.902-3.438-5.588c-2.48 1.685-2.923 3.347-3.438 5.588h6.876zm7.407-3.616c-1.494.764-2.813 1.648-3.188 3.74h3.188v-3.74zm-20.72-3.175v6.915h-.977v-6.932c.305-.143.72-.166.977.017z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M175.506 93.666c1.494.764 2.974 1.648 3.348 3.74h-3.348v-3.74z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M176.483 90.491v6.915h-.977v-6.932c.305-.143.72-.166.977.017z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M175.506 93.666c1.494.764 2.974 1.648 3.348 3.74h-3.348v-3.74zm-16.479-9.455c0-2.697 2.328-3 2.328-3v2.4c-.886-.038-1.314.757-1.314 1.941c0 1.184.714 1.203.714 1.203v6.812h-1.73v-9.356h.002zm-17.204 0c0-2.697-2.33-3-2.33-3v2.4c.887-.038 1.315.757 1.315 1.941c0 1.184-.714 1.203-.714 1.203v6.812h1.729v-9.356h0zm49.287 14.277v-3.246c-1.125.441-2.143 1.095-2.518 1.822c-.42-1.802-1.228-2.596-2.234-3.686c-1.006 1.09-1.68 1.884-2.1 3.686c-.375-.727-1.393-1.38-2.52-1.822v3.246h9.373zm-99.488 26.485h117.757v6.015H91.622z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M88.518 130.978h123.964v6.006H88.518zm9.288-15.002h105.389v3.892H97.805z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M94.724 119.842h111.552v5.098H94.724zm4.923-6.858h101.707v2.963H99.647z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.49\" d=\"M110.686 113h7.682v23.968h-7.682z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.489\" d=\"M112.387 113h4.28v23.968h-4.28z\"></path><path stroke=\"#000\" stroke-width=\"0.45\" d=\"M112.309 115.957h4.437m-4.437 3h4.437m-4.437 3h4.437m-4.437 3h4.437m-4.437 3h4.437m-4.437 3h4.437m-4.437 3h4.437\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.49\" d=\"M146.525 113h7.683v23.968h-7.682z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.489\" d=\"M148.28 113h4.28v23.968h-4.28z\"></path><path stroke=\"#000\" stroke-width=\"0.45\" d=\"M148.3 115.952h4.133m-4.133 3.001h4.133m-4.133 3.002h4.133m-4.133 3.002h4.133m-4.133 3.001h4.133m-4.133 3.002h4.133m-4.133 3.001h4.133\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.49\" d=\"M182.579 113h7.683v23.968h-7.683z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.489\" d=\"M184.28 113h4.28v23.968h-4.28z\"></path><path stroke=\"#000\" stroke-width=\"0.45\" d=\"M184.202 115.957h4.437m-4.437 3h4.437m-4.437 3h4.437m-4.437 3h4.437m-4.437 3h4.437m-4.437 3h4.437m-4.437 3h4.437\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-linejoin=\"bevel\" stroke-width=\"0.45\" d=\"M127.265 102.596h1.722v7.918h-1.722zm3.6 0h1.722v7.918h-1.722zm3.6 0h1.722v7.918h-1.722zm30.151 0h1.722v7.918h-1.722zm3.6 0h1.722v7.918h-1.722zm3.6 0h1.722v7.918h-1.722z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.45\" d=\"M146.84 63.084l-.191-1.5h7.602l-.19 1.5zm.509-1.53l-.164-1.233h6.53l-.164 1.233zm1.037-1.279l-.11-1.233h4.349l-.11 1.233z\"></path></g>'},ki:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#CE1126\" fill-rule=\"nonzero\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#BD9C08\" stroke-width=\"0.75\" d=\"M175.195 71.146c4.379 1.173 11.006.882 13.982 4.354c-4.379-1.173-9.776 5.905-13.982 4.354c3.714 2.601-54.021 0-49.39 0c-4.379-1.174-11.006-.882-13.982-4.354c4.379 1.173 9.776-5.905 13.982-4.354c-3.714-2.6-10.157-4.614-11.649-8.874c3.714 2.6 11.269-2.224 14.628.69c-2.6-3.714-8.035-7.789-7.912-12.323c2.601 3.714 11.353 1.725 13.51 5.652c-1.173-4.379-4.708-10.026-3.22-14.286c1.173 4.379 9.988 5.467 10.762 9.931c.395-4.516-1.199-11.052 1.86-14.525c-.395 4.516 7.566 8.548 6.716 13.013c1.916-4.109 2.975-10.746 6.716-13.013c-1.916 4.109 4.335 10.599 1.86 14.525c3.206-3.206 6.299-9.144 10.762-9.931c-3.206 3.206.213 11.372-3.22 14.286c4.109-1.916 8.958-6.439 13.51-5.652c-4.109 1.916-3.702 10.772-7.912 12.323c4.516-.395 10.585-2.957 14.628-.69c-4.516.395-7.018 8.874-11.649 8.874z\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#BD9C08\" stroke-linejoin=\"round\" stroke-width=\"0.75\" d=\"M129.679 75.501l-15.793-6.456l17.049-.665l-12.633-11.468l16.248 5.206l-7.949-15.097l13.488 10.449l-2.306-16.905l9.101 14.432l3.615-16.675l3.615 16.675l9.1-14.432l-2.306 16.905l13.487-10.449l-7.949 15.097l16.249-5.206l-12.633 11.468l17.049.665l-15.793 6.456l15.793 6.456h-73.226z\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#BD9C08\" stroke-linecap=\"round\" stroke-width=\"0.9\" d=\"M171.179 75.5c0 11.421-9.258 20.679-20.679 20.679c-11.42 0-20.678-9.258-20.678-20.679s9.258-20.679 20.678-20.679c11.421 0 20.679 9.258 20.679 20.679z\"></path><path fill=\"#003F87\" fill-rule=\"nonzero\" d=\"M.5 83h300v67.5H.5z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M.5 129.071c10 0 20 6.429 30 6.429s20-6.429 30-6.429s20 6.429 30 6.429s20-6.429 30-6.429s20 6.429 29.999 6.429c10 0 20-6.429 30-6.429s20 6.429 30 6.429s20-6.429 30-6.429s20 6.429 30 6.429s20-6.429 30-6.429v-10.714c-10 0-20 6.428-30 6.428s-20-6.428-30-6.428s-20 6.428-30 6.428s-20-6.428-30-6.428s-20 6.428-30 6.428c-9.999 0-19.999-6.428-29.999-6.428s-20 6.428-30 6.428s-20-6.428-30-6.428s-20 6.428-30 6.428s-20-6.428-30-6.428v10.714z\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#BD9C08\" stroke-width=\"0.6\" d=\"M157.3 25.431l11.089.073c.071-.469-.951-1.403-1.822-1.539c-2.808-.441-4.913.468-8.32.503l-.947.963z\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#BD9C08\" stroke-width=\"0.6\" d=\"M135.216 22.822c2.604 3.29 7.652 5.576 12.476 5.606c6.5.04 13.707-5.22 22.425-6.831l-28.458-.586c-3.682-2.522-6.476-2.202-8.381-.639l-5.441.165c-.77.419.636 2.171 1.776 2.236l5.603.049z\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#BD9C08\" stroke-width=\"0.6\" d=\"M148.08 20.934c-1.035-4.759-4.854-6.81-9.446-7.418c-5.303-.703-17.511-1.423-25.62-3.752c3.508 3.45 10.855 5.173 15.958 5.952c5.405.825 10.667 2.027 14.837 5.176l4.271.042z\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#BD9C08\" stroke-linecap=\"round\" stroke-width=\"0.6\" d=\"M144.634 24.111c1.697 2.177 4.328 2.054 7.157.155c2.819-1.893 5.882-7.224 7.362-7.311c10.347-.601 22.862-4.968 28.833-8.341c-7.568 1.072-15.072 2.286-22.706 2.317c-13.025.052-14.566 5.984-19.874 10.143\"></path><path stroke=\"#BD9C08\" stroke-linecap=\"round\" stroke-width=\"0.6\" d=\"M146.655 21.552c2.776-1.768 5.032-4.075 7.631-6.003c4.304-3.191 9.275-3.285 14.612-3.35c4.73-.058 13.023-2.035 17.521-3.09\"></path><path stroke=\"#BD9C08\" stroke-width=\"0.6\" d=\"M143.767 20.718c-.82-4.256-4.802-5.533-9.834-6.297c-5.475-.832-11.059-1.294-16.519-2.803c-1.354-.374-2.617-1.035-3.925-1.553\"></path><path stroke=\"#BD9C08\" stroke-linecap=\"round\" stroke-width=\"0.6\" d=\"M145.511 26.991c5.136.377 8.954-1.168 13.336-3.353m-31.031-2.222h6.48\"></path><path fill=\"#BD9C08\" fill-rule=\"nonzero\" d=\"M137.185 20.719a.81.81 0 1 1-1.62 0a.81.81 0 1 1 1.62 0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M.5 86.214c10 0 20 6.429 30 6.429s20-6.429 30-6.429s20 6.429 30 6.429s20-6.429 30-6.429s20 6.429 29.999 6.429c10 0 20-6.429 30-6.429s20 6.429 30 6.429s20-6.429 30-6.429s20 6.429 30 6.429s20-6.429 30-6.429V75.5c-10 0-20 6.429-30 6.429s-20-6.429-30-6.429s-20 6.429-30 6.429s-20-6.429-30-6.429s-20 6.429-30 6.429c-9.999 0-19.999-6.429-29.999-6.429s-20 6.429-30 6.429s-20-6.429-30-6.429s-20 6.429-30 6.429S10.5 75.5.5 75.5v10.714zm0 21.429c10 0 20 6.429 30 6.429s20-6.429 30-6.429s20 6.429 30 6.429s20-6.429 30-6.429s20 6.429 29.999 6.429c10 0 20-6.429 30-6.429s20 6.429 30 6.429s20-6.429 30-6.429s20 6.429 30 6.429s20-6.429 30-6.429V96.929c-10 0-20 6.429-30 6.429s-20-6.429-30-6.429s-20 6.429-30 6.429s-20-6.429-30-6.429s-20 6.429-30 6.429c-9.999 0-19.999-6.429-29.999-6.429s-20 6.429-30 6.429s-20-6.429-30-6.429s-20 6.429-30 6.429s-20-6.429-30-6.429v10.714z\"></path></g>'},km:{viewBox:\"0 0 301 181\",innerHTML:'<g fill=\"none\"><path fill=\"#FFC61E\" d=\"M.5.5h300v180H.5z\"></path><path fill=\"#FFF\" d=\"M.5 45.5h300v135H.5z\"></path><path fill=\"#CE1126\" d=\"M.5 90.5h300v90H.5z\"></path><path fill=\"#3A75C4\" d=\"M.5 135.5h300v45H.5z\"></path><path fill=\"#3D8E33\" d=\"M.5 180.5l150-90L.5.5z\"></path><circle cx=\"51.5\" cy=\"90.5\" r=\"40.5\" fill=\"#FFF\"></circle><circle cx=\"69.5\" cy=\"90.5\" r=\"40.5\" fill=\"#3D8E33\"></circle><path fill=\"#FFF\" d=\"M53.368 59.195h5.449l1.683-5.183l1.683 5.183h5.449l-4.408 3.202l1.683 5.182l-4.407-3.202l-4.408 3.202l1.683-5.182zm0 19.325h5.449l1.683-5.182l1.683 5.182h5.449l-4.408 3.202l1.683 5.183l-4.407-3.202l-4.408 3.202l1.683-5.183zm0 19.325h5.449l1.683-5.183l1.683 5.183h5.449l-4.408 3.202l1.683 5.183l-4.407-3.203l-4.408 3.203l1.683-5.183zm0 19.325h5.449l1.683-5.183l1.683 5.183h5.449l-4.408 3.202l1.683 5.183l-4.407-3.202l-4.408 3.202l1.683-5.183z\"></path></g>'},kn:{viewBox:\"0 0 301 201\",innerHTML:'<defs><path id=\"IconifyId-17ca80ef3d5-b8efe2-220\" d=\"M.5.5h300v200H.5z\"></path><path id=\"IconifyId-17ca80ef3d5-b8efe2-221\" d=\"M.5.5h300v200H.5z\"></path></defs><g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#009E49\" fill-rule=\"nonzero\" d=\"M300.5.5H.5v200\"></path><path fill=\"#CE1126\" fill-rule=\"nonzero\" d=\"M.5 200.5h300V.5\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-222\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-220\"></use></mask><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#FCD116\" stroke-width=\"80\" d=\"M.5 200.5l300-200\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-222)\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-223\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-221\"></use></mask><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"60\" d=\"M.5 200.5l300-200\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-223)\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M180.544 70.072l20.326.82l5.501 19.585l7.062-19.078l20.326.82l-15.962-12.611l7.061-19.079l-16.927 11.284l-15.963-12.61l5.502 19.585zm-114 76l20.326.82l5.501 19.585l7.062-19.078l20.326.82l-15.962-12.611l7.061-19.079l-16.927 11.284l-15.963-12.61l5.502 19.585z\"></path></g>'},kp:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#024FA2\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFF\" d=\"M.5 25.5h300v100H.5z\"></path><path fill=\"#ED1C27\" d=\"M.5 29.666h300v91.667H.5z\"></path><circle cx=\"100.5\" cy=\"75.5\" r=\"33.333\" fill=\"#FFF\"></circle><path fill=\"#ED1C27\" d=\"M69.789 65.521l18.98 13.79l-7.249 22.313l18.98-13.79l18.981 13.79l-7.25-22.313l18.98-13.79H107.75l-7.25-22.313l-7.25 22.313z\"></path></g>'},kr:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#000\" d=\"M101.927 38.106L74.192 79.711L46.456 61.22l27.735-41.605z\"></path><path fill=\"#FFF\" d=\"M86.904 23.082L54.547 71.621l-3.468-2.312l32.357-48.538zm10.475 6.916L65.021 78.532l-3.467-2.311l32.358-48.534z\"></path><path fill=\"#000\" d=\"M254.465 139.808l-27.735 41.605l-27.736-18.49l27.735-41.605z\"></path><path fill=\"#FFF\" d=\"M239.526 124.755l-32.358 48.534l-3.467-2.312l32.357-48.533zm10.316 6.962l-32.357 48.538l-3.468-2.311l32.357-48.539z\"></path><path fill=\"#FFF\" d=\"M245.221 161.183l-2.311 3.467l-34.672-23.113l2.312-3.467z\"></path><circle cx=\"150.5\" cy=\"100.5\" r=\"50\" fill=\"#C60C30\"></circle><path fill=\"#003478\" d=\"M108.898 72.765c-7.659 11.488-4.555 27.01 6.934 34.669c11.488 7.659 27.01 4.554 34.669-6.934c7.659-11.488 23.18-14.592 34.669-6.934c11.488 7.659 14.592 23.18 6.934 34.669c-15.317 22.977-46.361 29.185-69.337 13.867c-22.978-15.317-29.187-46.361-13.869-69.337\"></path><path fill=\"#000\" d=\"M74.188 121.311l27.735 41.605l-27.736 18.49L46.452 139.8z\"></path><path fill=\"#FFF\" d=\"M54.543 129.401L86.9 177.94l-3.468 2.311l-32.357-48.538zm10.482-6.955l32.358 48.534l-3.467 2.311l-32.358-48.534z\"></path><path fill=\"#000\" d=\"M226.735 19.623l27.735 41.605l-27.736 18.49l-27.735-41.605z\"></path><path fill=\"#FFF\" d=\"M207.162 27.678l32.358 48.534l-3.467 2.312l-32.358-48.535zm10.328-6.899l32.357 48.538l-3.467 2.312l-32.357-48.539z\"></path><path fill=\"#FFF\" d=\"M242.948 36.4l2.311 3.468l-34.67 23.112l-2.312-3.467z\"></path><path fill=\"#000\" d=\"M227.94 43.842l4.623 6.933l-6.934 4.623l-4.623-6.933z\"></path><path fill=\"#FFF\" d=\"M79.992 145.026l2.312 3.467l-13.87 9.246l-2.31-3.468z\"></path></g>'},kw:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#007A3D\" d=\"M.5.5h300v50H.5z\"></path><path fill=\"#FFF\" d=\"M.5 50.5h300v50H.5z\"></path><path fill=\"#CE1126\" d=\"M.5 100.5h300v50H.5z\"></path><path fill=\"#000\" d=\"M.5.5l75 50v50l-75 50z\"></path></g>'},la:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#CE1126\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#002868\" d=\"M.5 50.5h300v100H.5z\"></path><circle cx=\"150.5\" cy=\"100.5\" r=\"40\" fill=\"#FFF\"></circle></g>'},lb:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#ED1C24\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" d=\"M.5 50.5h300v100H.5z\"></path><path fill=\"#00A651\" d=\"M149.136 50.5l-1.64 2.732c-.902 1.503-3.087 3.759-4.849 5.009c-1.762 1.25-3.886 3.111-4.731 4.137l-1.546 1.86l1.64-.429c.898-.237 2.069-.618 2.608-.845c.539-.228.979-.101.979.286v.039a.738.738 0 0 1-.012.078c-.238.964-3.052 3.172-5.286 4.098c-2.137.886-5.307 3.2-5.722 4.124c-.01.023-.018.057-.024.078c-.003.01-.01.029-.012.039c-.002.01.001.03 0 .039v.052c.002.01.008.03.012.039c.003.007.008.02.012.026a.142.142 0 0 1 .012.013l.012.013l.012.013l.036.026c.25.175.939.202 1.734.026c1.395-.308 1.97-.117 2.43.832c.705 1.452.301 2.107-1.321 2.107c-1.962 0-4.755 1.971-5.132 3.63c-.254 1.112-1.324 2.02-3.622 3.07c-3.753 1.715-8.596 4.989-8.932 5.997a.438.438 0 0 0-.012.091c0 1.429 3.161 1.329 7.74-.247c1.027-.353 1.479.007 2.254 1.77c.959 2.182.943 2.236-1.286 5.112c-1.557 2.009-2.926 3.045-4.413 3.356c-2.963.62-3.884 1.221-7.729 5.061c-1.84 1.837-3.687 3.357-4.106 3.369c-.164.005-.273.03-.33.078l-.012.013a.142.142 0 0 0-.012.013l-.012.013v.013l-.012.013v.078a.29.29 0 0 0 .024.065l.012.026c.309.569 2.339 1.691 3.48 1.691c.836 0 2.872-.956 4.519-2.12c2.89-2.045 3.033-2.076 4.2-.911c.665.664 1.215 1.95 1.215 2.849c0 1.37-.736 1.995-4.531 3.929c-2.807 1.43-6.105 3.889-8.684 6.466c-3.466 3.463-4.45 4.102-5.923 3.864c-.93-.151-1.451-.214-1.616-.117c-.005.003-.019.009-.024.013l-.012.013l-.012.013a.18.18 0 0 0-.012.052c0 .177.312.539.873 1.158c.531.586 1.764 1.067 2.738 1.067c2.654 0 11.043-3.127 13.628-5.073c2.4-1.807 4.732-2.156 6.666-1.015c2.992 1.766-2.011 5.321-11.433 8.13c-3.466 1.034-6.47 2.04-6.855 2.29c-.006.004-.02.009-.024.013l-.012.013l-.012.013v.013c-.135.223.064.811.472 1.353c.984 1.307 5.934 1.37 10.159.117c1.691-.501 5.901-2.205 9.357-3.773c6.267-2.843 6.291-2.838 8.484-1.691c5.095 2.666 4.624 7.33-1.498 14.999c-2.667 3.34-5.032 4.829-9.333 5.88c-1.591.389-4.861 3.47-4.861 4.579c0 .109.021.196.047.273h1.097a3.67 3.67 0 0 0 .732-.754c1.356-1.801 4.09-3.003 6.855-3.018c3.005-.017 6.686-1.667 9.451-4.241c2.429-2.261 4.87-2.936 6.714-1.847c1.022.603 1.951.663 3.186.195c2.195-.832 3.28-.43 3.28 1.21c0 .737.773 1.727 1.829 2.329c1.01.576 2.812 1.985 4 3.135c.905.876 1.564 1.276 1.912 1.275c.013 0 .035.002.047 0c.009-.001.027.002.036 0l.023-.013l.024-.013c.014-.007.035-.016.047-.026l.012-.013l.012-.013l.012-.013l.012-.013c.004-.007.007-.018.012-.026a.558.558 0 0 1 .012-.026l.012-.026c.003-.009.01-.029.012-.039c.003-.013-.002-.037 0-.052c.036-.385-.263-1.16-.955-2.25c-.407-.641-.614-1.28-.555-1.6c.003-.015.007-.038.012-.052l.012-.026v-.013a.142.142 0 0 0 .012-.013c.007-.011.015-.03.023-.039l.012-.013c.005-.005.018-.009.024-.013c.002-.001.009-.012.012-.013l.023-.013c.384-.148 2.415-.073 4.637.182c3.909.448 4.383.683 6.69 3.356c1.139 1.32 2.074 2.15 2.832 2.498h1.569c.335-.15.571-.369.625-.585c.002-.006.011-.02.012-.026c.002-.009-.001-.03 0-.039v-.078c-.134-.449-2.449-2.651-5.227-4.969c-6.313-5.269-7.281-7.194-7.304-14.492c-.013-4.364.194-5.482 1.215-6.609c1.591-1.754 2.466-1.712 6.371.325c2.95 1.538 3.866 1.667 10.572 1.522c7.202-.155 7.412-.111 11.032 2.016c2.029 1.192 4.507 2.789 5.522 3.552c2.239 1.684 4.513 1.802 5.05.26c.634-1.821-3.623-5.352-11.622-9.614c-7.954-4.237-8.787-5.423-5.121-7.35c2.086-1.096 2.23-1.076 5.534.768c2.648 1.477 3.86 1.795 5.557 1.444l2.171-.455l-4.779-3.916c-2.627-2.153-5.169-4.438-5.652-5.087c-1.396-1.877-4.095-3.122-6.749-3.122c-1.244 0-2.406-.238-2.725-.533c-.011-.01-.027-.029-.036-.039l-.012-.013c-.004-.005-.009-.021-.012-.026c-.746-1.332 1.502-1.964 7.776-2.211c8.452-.333 9.615-1.318 3.787-3.2c-2.327-.752-5.814-1.703-7.752-2.12c-2.364-.509-3.674-1.064-4-1.704a.818.818 0 0 1-.071-.234a.791.791 0 0 1 0-.182c.029-.217.158-.447.378-.689c.397-.438 2.293-.389 5.522.156c3.619.611 5.6.748 5.959.325c.373-.486-1.295-1.695-4.979-3.733c-3.357-1.857-7.593-4.862-9.522-6.765c-1.912-1.885-4.752-4.029-6.301-4.761c-2.045-.966-2.706-1.622-2.442-2.38c.461-1.324 3.677-1.337 5.758-.026c.845.533 3.061.963 4.92.95l3.386-.026l-2.242-.911c-2.239-.908-8.33-5.24-8.802-6.218a.318.318 0 0 1-.023-.065v-.052l.012-.013l.012-.013l.012-.013c.249-.184 1.654-.263 3.339-.169l3.386.195l-4.873-3.759c-3.575-2.755-5.779-3.941-8.295-4.475a326.718 326.718 0 0 1-4.802-1.054c-2.021-.474-5.415-4.012-6.796-7.09l-1.206-2.7zm-11.103 18.967c.073-.003.154 0 .236 0c.628 0 1.085.153 1.274.39c.004.005.02.02.023.026c.004.005.008.02.012.026a.47.47 0 0 1 .047.117c.002.01.011.029.012.039v.091a.816.816 0 0 1-.024.104c-.131.434-.839 1.226-1.581 1.769c-.568.415-.906.641-1.098.611c-.013-.003-.035-.008-.047-.013l-.024-.013c-.011-.008-.026-.029-.035-.039c-.129-.157-.153-.579-.153-1.327c.001-1.367.252-1.741 1.358-1.781zm16.436 1.691h.036c.959 0 1.604.449 1.734 1.197c.162.927-.223 1.184-1.734 1.184c-.85 0-1.343-.089-1.581-.325c-.177-.184-.211-.46-.141-.859c.127-.736.752-1.183 1.686-1.197zm-4.814.403c.834-.065 1.168.428 1.168 1.483c0 1.27-.486 1.666-2.773 2.251c-1.443.369-2.766.539-3.044.403a.126.126 0 0 1-.023-.013l-.012-.013c-.792-.873-.098-1.993 1.876-3.031c1.27-.667 2.18-1.031 2.808-1.08zm11.079.013c1.221-.04 1.375.537.779 2.251c-.205.589-1.055 1.066-1.888 1.066c-1.218 0-1.48-.294-1.321-1.522c.141-1.092.677-1.59 1.888-1.743c.2-.025.38-.046.542-.052zm-18.69 3.318c.042-.003.09 0 .13 0c1.481 0 .557 2.793-1.345 4.072c-1.694 1.139-3.495 1.628-4 1.184l-.012-.013a.418.418 0 0 1-.082-.117l-.012-.026l-.012-.039c-.002-.006-.011-.02-.012-.026c-.002-.01.002-.029 0-.039c-.002-.017-.011-.047-.012-.065v-.013c.042-1.526 3.607-4.768 5.357-4.918zm13.912 6.465c.705-.085 1.153.689.909 2.107c-.136.79-.841 1.335-1.9 1.47c-.809.103-1.307.067-1.498-.156l-.012-.013c-.008-.011-.016-.027-.023-.039l-.012-.026c-.001-.003-.011-.011-.012-.013c-.005-.013-.008-.038-.012-.052c-.094-.379.294-1.083 1.156-2.224c.499-.661.994-1.005 1.404-1.054zm-5.534.312c.034-.003.066 0 .095 0c1.417 0 1.647 1.248.366 2.004c-.591.349-1.165.609-1.357.638c-.006.001-.018.013-.024.013c-.005 0-.02-.012-.023-.013c-.107-.037-.889-.289-1.734-.573l-1.534-.52l1.734-.78c.892-.4 1.963-.729 2.477-.769zm11.929 1.562a4.807 4.807 0 0 1 2.1.39c1.28.537 1.53 1.002 1.286 2.407c-.33 1.907-1.372 2.121-4.932.989c-1.749-.557-1.929-.824-1.368-1.977c.534-1.102 1.635-1.742 2.914-1.809zm-26.407.468h.118c2.591 0 2.948.45 1.687 2.108a13.797 13.797 0 0 1-1.794 1.873c-.868.721-1.134.645-1.687-.494c-.658-1.356-.863-2.247-.543-2.784c.297-.48 1.025-.691 2.219-.703zm-6.82 1.145c1.105-.03 1.786.492 2.667 2.004l1.239 2.133l-1.852.716c-1.691.65-1.975.527-3.375-1.444c-.882-1.243-1.219-2.067-.979-2.589a.819.819 0 0 1 .083-.143l.035-.039l.036-.039c.316-.316.953-.488 1.923-.572c.077-.008.15-.026.223-.027zm40.802 6.387c1.228-.099 2.481.765 2.301 2.159c-.228 1.771-2.162 2.283-3.752 1.002c-.949-.766-.984-1.049-.248-2.16a2.222 2.222 0 0 1 1.699-1.001zm-23.162 3.317c.045-.003.094 0 .141 0a.834.834 0 0 1 .437.13a.883.883 0 0 1 .047.039l.023.026l.023.026l.024.026c.187.241.253.655.177 1.223c-.244 1.825-1.452 2.361-1.97.872c-.462-1.33-.013-2.271 1.098-2.342zm-7.74 1.405c.52-.071 1.374.275 2.23.989c.581.485.822.955.814 1.301a.704.704 0 0 1-.012.104c-.004.018-.007.047-.012.065c-.004.014-.018.039-.023.052a.677.677 0 0 1-.036.065c-.004.006-.008.02-.012.026l-.023.026a.746.746 0 0 1-.071.078c-.005.005-.018.021-.024.026c-.355.275-1.109.21-1.97-.455c-.712-.55-1.304-1.269-1.357-1.639v-.052c0-.353.184-.544.496-.586zm12.306.26c.24-.021.489.214.909.677c.526.58 1.144 1.691 1.369 2.471c.54 1.877-.313 2.661-1.982 1.808c-1.792-.915-2.227-2.363-1.191-3.994c.394-.621.64-.939.895-.962zm4.295 2.55c.455-.062 1.074.62 1.227 1.769c.089.67-.004 1.242-.213 1.418l-.012.013l-.024.013c-.008.005-.027.01-.035.013c-.002.001-.01.013-.012.013h-.059c-.878 0-1.38-.792-1.38-2.198c.001-.673.226-1.002.508-1.041zm-26.972 2.706c.903-.001 1.696.048 2.218.156c.861.178 1.435.424 1.711.716a.797.797 0 0 1 .141.208a.688.688 0 0 1 .036.117a.68.68 0 0 1 0 .234c-.103.528-.861 1.172-2.266 1.912c-1.165.614-3.136 1.323-4.389 1.561c-2.08.396-2.366.249-3.233-1.6c-.514-1.096-.931-2.139-.944-2.341v-.013c.001-.005-.002-.021 0-.026c.001-.002.011-.01.012-.013c.003-.005.008-.021.012-.026l.012-.013c.435-.45 4.038-.869 6.69-.872zm41.839 6.088c2.423-.107 3.73 1.532 1.097 3.564c-1.693 1.308-4.18 1.361-5.722.117c-1.11-.895-1.053-1.023.967-2.381c1.278-.858 2.577-1.252 3.658-1.3zm8.826 1.913c.043-.005.091 0 .13 0c.358-.002 1.184.42 1.841.95c1.169.943 1.165 1.005-.295 2.719c-.755.887-1.526 1.582-1.793 1.639h-.048c-.195-.059-1.261-.227-2.36-.377c-1.223-.168-1.994-.66-1.994-1.262c0-.027.007-.062.012-.091c.194-1.014 3.219-3.42 4.507-3.578zm-44.376 2.706c.112-.006.246 0 .389 0c1.666 0 2.584 1.371 2.584 3.864c0 3.349-2.042 3.081-2.986-.39c-.821-3.023-.903-3.423.013-3.474zm12.684.949c1.004-.032 3.435.529 3.752.911a.142.142 0 0 1 .012.013l.012.013v.013c0 .002.011.011.012.013v.039c-.032.259-.682 1.314-1.463 2.368l-1.439 1.938l-.755-2.498c-.373-1.245-.602-2.368-.555-2.654v-.013c.001-.004.011-.009.012-.013v-.013c.001-.003.01-.011.012-.013l.012-.013l.012-.013c.002-.002.01.001.012 0l.012-.013l.023-.013c.073-.029.189-.048.329-.052zm-6.171 1.106c.182-.018.467.029.861.091c.791.124 1.519.781 1.64 1.483c.147.852.066 1.447-.142 1.756a.614.614 0 0 1-.166.169a.545.545 0 0 1-.141.065a.81.81 0 0 1-.071.013a.664.664 0 0 1-.118 0c-.411-.052-.941-.561-1.404-1.548c-.534-1.138-.779-1.677-.684-1.899a.24.24 0 0 1 .036-.052a.304.304 0 0 1 .189-.078z\"></path></g>'},lc:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#6CF\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFF\" d=\"M100.5 137.5l50-7l50 7l-50-123.5z\"></path><path fill=\"#000\" d=\"M107.25 137.5l43.25-7l43.25 7l-43.25-107z\"></path><path fill=\"#FCD116\" d=\"M100.5 137.5h100l-50-62z\"></path></g>'},li:{viewBox:\"0 0 301 181\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#002B7F\" fill-rule=\"nonzero\" d=\"M.5.5h300v180H.5z\"></path><path fill=\"#CE1126\" fill-rule=\"nonzero\" d=\"M.5 90.5h300v90H.5z\"></path><path fill=\"#FFD83D\" fill-rule=\"nonzero\" d=\"M65.413 37.186l-.552 18.75H45.835c-2.34-4.551-4.274-8.416-4.274-13.649c0-4.38 3.445-7.859 8.41-7.859c5.257.001 11.032 1.772 15.442 2.758z\"></path><path fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.45\" d=\"M43.837 38.048v10.823m1.528-11.927v14.41m1.528-15.169v17.167m1.528-17.521v13.464m1.528-13.531v13.598m1.528-14.073v14.065m1.528-14.065v14.065m1.528-13.927v14.065m1.528-13.927v14.066m1.528-13.17v14.065m1.528-13.927v15.858m1.528-15.858v14.065m1.528-14.065v14.065\"></path><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.45\" d=\"M53.419 35.877c3.229.533 10.322 3.851 9.513 8.341c-1.146 6.363-4.862 3.809-9.789 2.895l-3.722 1.241c-1.332 1.36-3.294 2.605-4.619.965h-2.206v8.616h24.403V37.117l-13.58-1.24z\"></path><circle cx=\"64.345\" cy=\"34.395\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"61.014\" cy=\"33.593\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"57.635\" cy=\"32.744\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"54.243\" cy=\"32.179\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"50.851\" cy=\"31.844\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"47.525\" cy=\"32.034\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"44.354\" cy=\"33.119\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"41.683\" cy=\"35.084\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"39.787\" cy=\"37.824\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"38.874\" cy=\"41.047\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"38.908\" cy=\"44.39\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"39.546\" cy=\"47.664\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><path fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\" d=\"M65 36.359l-.138 1.93c-3.687-.565-8.914-2.62-13.787-2.62c-4.502 0-7.996 1.801-7.996 6.342c0 4.476 1.895 8.546 4.412 12.684l-2.619 1.241c-2.341-4.551-4.274-8.416-4.274-13.649c0-4.38 3.445-8.686 9.375-8.686c5.255.001 10.616 1.772 15.027 2.758z\"></path><path fill=\"#FFD83D\" fill-rule=\"nonzero\" d=\"M68.768 37.186l.551 18.75h19.026c2.341-4.551 4.274-8.416 4.274-13.649c0-4.38-3.445-7.859-8.41-7.859c-5.256.001-11.03 1.772-15.441 2.758z\"></path><path fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.45\" d=\"M90.344 38.048v10.823m-1.527-11.927v14.41m-1.529-15.169v17.167m-1.527-17.521v13.464m-1.529-13.531v13.598m-1.528-14.073v14.065m-1.527-14.065v14.065m-1.529-13.927v14.065M78.12 35.565v14.066m-1.528-13.17v14.065m-1.528-13.927v15.858m-1.528-15.858v14.065m-1.528-14.065v14.065\"></path><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.45\" d=\"M80.763 35.877c-3.229.533-10.322 3.851-9.513 8.341c1.146 6.363 4.862 3.809 9.789 2.895l3.722 1.241c1.332 1.36 3.293 2.605 4.619.965h2.206v8.616H67.183V37.117l13.58-1.24z\"></path><circle cx=\"69.837\" cy=\"34.395\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"73.168\" cy=\"33.593\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"76.546\" cy=\"32.744\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"79.938\" cy=\"32.179\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"83.33\" cy=\"31.844\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"86.656\" cy=\"32.034\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"89.828\" cy=\"33.119\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"92.499\" cy=\"35.084\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"94.394\" cy=\"37.824\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"95.308\" cy=\"41.047\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"95.273\" cy=\"44.39\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"94.636\" cy=\"47.664\" r=\"1.482\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><path fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\" d=\"M69.182 36.359l.138 1.93c3.687-.565 8.914-2.62 13.787-2.62c4.502 0 7.996 1.801 7.996 6.342c0 4.476-1.895 8.546-4.412 12.684l2.619 1.241c2.341-4.551 4.274-8.416 4.274-13.649c0-4.38-3.445-8.686-9.375-8.686c-5.256.001-10.617 1.772-15.027 2.758zm-2.091-19.922l-1.547 2.897l1.547 2.888l1.547-2.888l-1.547-2.897zm0 7.313l-1.547 2.888l1.547 2.897l1.547-2.897l-1.547-2.888zm-5.515-.764l2.44 1.547l2.432-1.547l-2.432-1.547l-2.44 1.547zm6.158 0l2.432 1.547l2.439-1.547l-2.439-1.547l-2.432 1.547z\"></path><circle cx=\"67.091\" cy=\"23.021\" r=\"1.172\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><circle cx=\"67.091\" cy=\"30.5\" r=\"3.137\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\"></circle><path stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.45\" d=\"M66.303 27.462c0 .934-.007 1.477-.009 1.987a18.79 18.79 0 0 0-2.231.234m6.056.001a18.584 18.584 0 0 0-2.231-.234v-1.987m-3.835 3.805a18.424 18.424 0 0 1 6.076 0\"></path><path fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\" d=\"M64.025 35.806c-.298 5.125-.903 10.344-2.897 14.137l3.244-1.313c1.133-4.298 1.371-9.853 1.716-12.478l-2.063-.346zm6.131 0l-2.063.347c.345 2.625.583 8.18 1.716 12.478l3.244 1.313c-1.994-3.794-2.599-9.013-2.897-14.138z\"></path><path fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.6\" d=\"M67.086 46.906c-3.874 0-6.72 1.826-6.891 6.478c-.947-1.666-4.953-6.908-8.691-6.206c-2.223.417-4.187 3.5-3.853 7.031c-1.84-5.289-7.232-6.156-11.166-3.028c3.492 2.872 5.046 11.35 7.988 15.028h45.225c2.941-3.678 4.504-12.156 7.997-15.028c-3.934-3.127-9.325-2.261-11.166 3.028c.334-3.531-1.64-6.614-3.863-7.031c-3.738-.701-7.734 4.54-8.681 6.206c-.17-4.652-3.025-6.478-6.899-6.478z\"></path><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.45\" d=\"M89.632 66.208c0 1.674-10.099 3.516-22.541 3.516c-12.443 0-22.541-1.842-22.541-3.516s10.098-2.551 22.541-2.551s22.541.876 22.541 2.551z\"></path><circle cx=\"67.091\" cy=\"34.833\" r=\"1.051\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.45\"></circle><circle cx=\"67.091\" cy=\"37.108\" r=\"1.12\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.45\"></circle><circle cx=\"67.091\" cy=\"39.555\" r=\"1.224\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.45\"></circle><circle cx=\"67.091\" cy=\"42.278\" r=\"1.396\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.45\"></circle><circle cx=\"67.091\" cy=\"45.311\" r=\"1.534\" fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.45\"></circle><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M66.482 48.262c-.166-.002-.323.138-.281.403c.049.313.11.899.169 1.294c.066.448.327.339.394-.009c.066-.348.04-.572.056-1.219c.007-.324-.173-.467-.338-.469zm1.218 0c-.166.002-.346.145-.338.469c.017.647-.01.87.056 1.219c.066.348.328.457.394.009c.059-.395.12-.981.169-1.294c.042-.266-.115-.405-.281-.403zm-2.306.168c-.152.021-.309.174-.3.337c.016.299.099.657.131 1.106c.033.464.36.284.394.019c.033-.265.071-.658.038-1.172c-.013-.193-.097-.278-.197-.291a.365.365 0 0 0-.066.001zm3.328 0c-.1.013-.185.098-.197.291c-.033.514.004.906.038 1.172c.034.266.361.446.394-.019c.032-.449.115-.808.131-1.106c.009-.163-.148-.316-.3-.337a.244.244 0 0 0-.066-.001zm-4.631.525a.336.336 0 0 0-.225.394c.083.382.159.803.159 1.191c0 .332.283.214.3-.019c.016-.232.047-.724.047-1.172c0-.334-.142-.429-.281-.394zm5.906 0c-.099.027-.188.143-.188.394c0 .448.03.94.047 1.172c.017.232.3.351.3.019c0-.387.076-.809.159-1.191a.337.337 0 0 0-.225-.394a.164.164 0 0 0-.093 0zm-17.728.052c-.166-.006-.283.22-.169.469c.182.398.376.65.563 1.078c.166.382.42.144.337-.122c-.083-.265-.173-.561-.422-1.125c-.093-.212-.209-.297-.309-.3zm29.644 0c-.1.003-.216.089-.309.3c-.249.564-.339.86-.422 1.125c-.083.266.171.504.337.122c.186-.429.38-.68.563-1.078c.113-.249-.003-.475-.169-.469zm-28.444.018c-.122.038-.197.193-.122.375c.149.365.365.739.516 1.134c.133.348.428.25.328-.066c-.1-.315-.129-.5-.328-1.097c-.1-.297-.272-.383-.394-.346zm27.15 0c-.105.022-.225.123-.3.347c-.199.597-.229.782-.328 1.097c-.1.315.195.414.328.066c.151-.395.366-.769.516-1.134c.075-.182 0-.337-.122-.375a.176.176 0 0 0-.094-.001zm-25.65.291c-.154.029-.274.265-.169.553c.133.365.321.71.488 1.125c.166.415.441.331.375.066c-.067-.265-.148-.705-.347-1.369c-.087-.29-.227-.398-.347-.375zm24.244 0c-.12-.023-.26.085-.347.375c-.199.664-.281 1.103-.347 1.369c-.066.265.209.349.375-.066s.355-.76.488-1.125c.104-.288-.015-.524-.169-.553zm-27.956.206c-.167.017-.319.29-.216.497c.166.332.271.445.431.797c.166.365.347.082.281-.15c-.066-.232-.151-.503-.234-.834c-.061-.243-.162-.32-.262-.31zm31.668 0c-.1-.01-.202.067-.262.309c-.083.332-.168.602-.234.834c-.066.232.115.515.281.15c.16-.352.265-.465.431-.797c.103-.206-.049-.479-.216-.496zm-20.109.84c-.175 0-.362.232-.3.45c.099.348.253.657.366 1.106c.099.398.382.2.366-.066a8.517 8.517 0 0 0-.178-1.191c-.045-.211-.149-.299-.254-.299zm8.55 0c-.105 0-.21.089-.253.3a8.652 8.652 0 0 0-.178 1.191c-.017.266.266.464.366.066c.112-.449.266-.758.366-1.106c.061-.219-.126-.451-.301-.451zm-4.275.356c-.216 0-.246.29-.253.525c-.025.771-.345 1.52-.619 1.894c-.274.373-.677.274-1.05.075a6.68 6.68 0 0 1-.994-.647c-.398-.299-.7-.124-.225.553c1.385 1.974 2.887 3.661 2.887 6.881c0 .416.073.544.253.544s.263-.128.263-.544c0-3.22 1.493-4.907 2.878-6.881c.475-.677.173-.852-.225-.553a6.68 6.68 0 0 1-.994.647c-.373.199-.776.298-1.05-.075s-.594-1.122-.619-1.894c-.007-.235-.037-.525-.252-.525zm-10.584-.483a.169.169 0 0 0-.056.009c-.081.026-.134.123-.103.291c.056.301.264.89.347 1.172c.083.282.43.222.347-.159c-.083-.381-.079-.497-.178-.928c-.056-.237-.225-.381-.357-.385zm21.168 0c-.132.004-.302.148-.356.384c-.1.431-.095.547-.178.928c-.083.381.264.441.347.159c.083-.282.291-.871.347-1.172c.031-.168-.023-.265-.103-.291c-.017-.004-.038-.009-.057-.008zm-27.459.122c-.174.014-.298.232-.122.553c.19.347.516.783.666 1.031c.149.249.408.081.225-.234c-.182-.315-.244-.677-.459-1.125c-.082-.168-.206-.234-.31-.225zm33.75 0c-.104-.008-.229.057-.309.225c-.216.448-.277.81-.459 1.125c-.183.315.076.483.225.234c.149-.249.475-.684.666-1.031c.175-.322.05-.54-.123-.553zm-43.256.998c-.2-.011-.263.351-.075.591c.274.348.464.533.778.816c.249.224.321-.067.197-.291c-.124-.224-.304-.452-.553-.825c-.137-.205-.256-.286-.347-.291zm52.762 0c-.091.005-.211.086-.347.291c-.249.373-.429.601-.553.825c-.125.224-.052.514.197.291c.314-.282.504-.467.778-.816c.188-.24.125-.601-.075-.591zm-51.253.3c-.16.002-.265.12-.141.394c.178.392.413.836.563 1.134c.149.299.604.399.422-.066c-.183-.464-.219-.703-.384-1.134a.52.52 0 0 0-.46-.328zm49.744 0a.516.516 0 0 0-.459.328c-.166.431-.202.67-.384 1.134c-.183.464.272.364.422.066c.149-.299.384-.742.563-1.134c.123-.274.017-.392-.142-.394zm-52.669.103c-.232.002-.252.235-.047.384c.274.199.6.42.919.675c.373.299.518.024.319-.225s-.393-.501-.891-.75a.7.7 0 0 0-.3-.084zm55.594 0a.665.665 0 0 0-.3.084c-.498.249-.692.501-.891.75c-.199.249-.055.524.319.225c.318-.255.645-.476.919-.675c.205-.148.185-.381-.047-.384zm-32.897.216c-.13.018-.242.166-.188.356c.099.348.212.717.281 1.078c.066.348.469.353.403.037c-.066-.315-.1-.71-.216-1.191c-.044-.18-.134-.267-.225-.281a.203.203 0 0 0-.055.001zm10.144 0c-.091.014-.182.101-.225.281c-.116.481-.149.875-.216 1.191c-.067.315.337.311.403-.037c.069-.361.182-.73.281-1.078c.054-.19-.058-.338-.188-.356a.145.145 0 0 0-.055-.001zm-19.172-.596c-.102.028-.161.223-.084.497c.423 1.518.553 2.317.478 2.691c-.075.373-.279.424-.553.3a5.628 5.628 0 0 1-.844-.478c-.249-.174-.508.034-.15.328c1.816 1.493 3.076 3.199 3.563 5.269c.099.423.365.473.291 0c-.412-2.607-.491-4.75.131-6.094c.234-.505-.002-.99-.375-.169c-.249.548-.652.763-.975.291c-.323-.473-.992-1.734-1.191-2.306c-.075-.214-.167-.314-.244-.328a.107.107 0 0 0-.047-.001zm28.209 0c-.077.014-.169.114-.244.328c-.199.572-.867 1.834-1.191 2.306c-.324.473-.726.257-.975-.291c-.374-.821-.609-.336-.375.169c.622 1.344.543 3.487.131 6.094c-.075.473.191.423.291 0c.487-2.07 1.746-3.776 3.563-5.269c.357-.294.099-.502-.15-.328s-.57.354-.844.478c-.274.125-.479.073-.553-.3c-.075-.373.055-1.173.478-2.691c.076-.274.018-.469-.084-.497a.149.149 0 0 0-.047.001zm-37.341.727c-.164.002-.3.117-.225.366c.12.399.367.829.45 1.078c.083.249.35.133.3-.216c-.05-.348-.074-.556-.141-.938c-.033-.19-.22-.292-.384-.29zm46.519 0c-.164-.002-.351.1-.384.291c-.066.382-.091.589-.141.938c-.05.348.217.464.3.216c.083-.249.33-.679.45-1.078c.075-.25-.061-.365-.225-.367zm-40.884-.52c-.191-.034-.218.457-.056.656c.216.266.515.587.816.947c.249.299.403.033.253-.216c-.149-.249-.371-.513-.769-1.144c-.1-.157-.181-.232-.244-.243zm35.25 0c-.064.011-.144.086-.244.244c-.398.63-.62.895-.769 1.144c-.149.249.004.514.253.216c.3-.36.6-.681.816-.947c.162-.2.134-.692-.056-.657zm-39.6 1.186c-.118-.008-.219.088-.169.328c.069.335.17.613.253.928c.083.315.3.261.3-.038s-.053-.632-.103-.947a.327.327 0 0 0-.281-.271zm43.95 0a.327.327 0 0 0-.281.272c-.05.315-.103.648-.103.947c0 .299.217.353.3.038c.083-.315.184-.593.253-.928c.049-.241-.051-.337-.169-.329zm-40.022.426c-.186.028-.349.208-.131.487c.348.448.73.762.862.928c.132.166.469.105.253-.244c-.221-.356-.554-.785-.703-1.05c-.056-.099-.17-.138-.281-.121zm36.019 0a.26.26 0 0 0-.206.122c-.149.265-.483.694-.703 1.05c-.216.348.12.41.253.244c.133-.166.514-.48.862-.928c.218-.28.054-.459-.131-.487a.236.236 0 0 0-.075-.001zm-42.216 1.252c-.146-.013-.197.105 0 .375c.448.614.942 1.542.975 1.941c.033.398-.164.394-.347.394c-.548 0-.815-.4-1.313-.516c-.498-.116-.57.146-.216.403c1.825 1.327 3.654 2.808 4.388 4.153c.299.548.702.748.478.225c-.686-1.601-.853-2.957-.703-3.778c.149-.821.353-1.374.328-1.847c-.025-.473-.293-.44-.403 0c-.075.299-.219.694-.319.844c-.1.149-.5.233-.881-.281c-.382-.514-1.344-1.504-1.659-1.753a.692.692 0 0 0-.328-.16zm48.488 0a.699.699 0 0 0-.328.159c-.315.249-1.278 1.239-1.659 1.753c-.382.514-.782.431-.881.281c-.1-.149-.244-.545-.319-.844c-.11-.44-.378-.473-.403 0c-.025.473.179 1.026.328 1.847c.149.821-.017 2.177-.703 3.778c-.224.523.18.323.478-.225c.734-1.345 2.563-2.826 4.387-4.153c.354-.258.282-.519-.216-.403c-.498.116-.765.516-1.313.516c-.183 0-.38.004-.347-.394c.033-.398.527-1.327.975-1.941c.197-.269.147-.387.001-.374z\"></path><path fill=\"#FFD83D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.45\" d=\"M45.538 64.295l.585 1.852m.618-2.203l.519 1.872m.781-2.086l.356 1.91m.85-2.151l.381 1.905m1.166-2.058l.31 1.918m1.335-1.916l.334 1.914m1.272-2.457l.241 1.927m1.27-1.829l.241 1.927m1.222-2.122l.241 1.927m1.226-2.079l.133 1.938m1.436-1.938l.115 1.939m1.307-2.037l.098 1.94m1.47-2.038l.081 1.941m1.723-1.99l.081 1.941m23.713.053l-.585 1.852m-.618-2.203l-.518 1.872m-.781-2.086l-.356 1.91m-.851-2.151l-.381 1.905m-1.165-2.058l-.31 1.918m-1.335-1.916l-.334 1.914m-1.273-2.457l-.241 1.927m-1.27-1.829l-.241 1.927m-1.221-2.122l-.241 1.927m-1.227-2.079l-.132 1.938m-1.436-1.938l-.115 1.939m-1.308-2.037l-.098 1.94m-1.47-2.038l-.081 1.941m-1.722-1.99l-.081 1.941m-2.161-2.067v2.137\"></path></g>'},lr:{viewBox:\"0 0 301 159\",innerHTML:'<defs><linearGradient id=\"IconifyId-17ca80ef3d5-b8efe2-224\" x1=\"0%\" x2=\"100%\" y1=\"50%\" y2=\"50%\"><stop offset=\"0%\" stop-color=\"#FFF\"></stop><stop offset=\"100%\"></stop></linearGradient></defs><g fill=\"none\"><path fill=\"#BF0A30\" d=\"M.5.552h300v157.895H.5z\"></path><path fill=\"url(#IconifyId-17ca80ef3d5-b8efe2-224)\" stroke=\"#FFF\" stroke-width=\"13.158\" d=\"M.5 22.084h300M.5 50.792h300M.5 79.5h300M.5 108.208h300M.5 136.916h300\"></path><path fill=\"#002868\" d=\"M.5.552h71.77v71.77H.5z\"></path><path fill=\"#FFF\" d=\"M15.908 29.784l12.656 9.195l-4.834 14.878l12.655-9.195l12.656 9.195l-4.834-14.878l12.656-9.195H41.219l-4.834-14.877l-4.834 14.877z\"></path></g>'},ls:{viewBox:\"0 0 300 200\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#00209F\" d=\"M300 59.865H0V0h300v59.865z\"></path><path fill=\"#009543\" d=\"M0 139.985h300V200H0v-60.015z\"></path><path fill=\"#FFF\" d=\"M0 59.865h300v80.12H0z\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M136.801 79.97c.116-6.208 2.364-11.586 6.9-13.954c1.126-.587 2.002-.478 3.3-1.05c.923-.407 1.563-1.473 2.85-1.5c1.359-.029 1.938.885 2.851 1.5c6.635 1.014 9.314 5.988 10.2 12.754c.095.505-.193 1.393.15 1.65v.45c-.343.257-.055 1.145-.15 1.65c-.668 5.883-2.42 10.683-4.5 15.154c5.037 7.214 10.462 14.041 15.75 21.005c.98-.269 1.72-.781 2.7-1.05c1.971 3.731 3.673 7.73 5.7 11.404c-7.299 4.802-16.725 7.477-27.899 8.402c-.456.094-1.293-.193-1.5.15h-6c-11.879-.521-21.166-3.635-29.25-7.952c1.606-4.144 3.651-7.851 5.4-11.853c.891.408 1.919.682 2.85 1.05c5.415-6.587 10.318-13.686 15.45-20.556c-2.034-4.766-3.975-9.626-4.649-15.753c-.098-.457.188-1.292-.153-1.501zm15.9-11.703c.018-.039-.024-.113 0-.15c-1.205 1.949.158 7.49-.151 10.053c1.39 1.76 3.188 3.113 4.801 4.651c-1.014.808-2.71-.593-3.6.15c-.993.828.347 6.787 0 7.502c.61 1.289 1.504 2.296 2.399 3.301c1.559-3.693 3.024-7.48 3.45-12.303c.25-.853.25-2.748 0-3.601c-.577-4.925-2.196-8.807-6.899-9.603zm-5.401 4.351v-4.352c-4.504.997-6.545 4.456-7.05 9.453c-.25.902-.25 2.848 0 3.751c.53 4.971 1.891 9.111 3.75 12.753c.34-1.367 2.166-2.153 2.55-3.75c.524-2.18-.381-4.554 0-7.203h-3.75c.72-.98 1.79-1.61 2.399-2.701a8.451 8.451 0 0 0 1.5-1.5c.258-.193.59-.31.601-.75c.25-1.551.25-4.149 0-5.701zm23.101 49.514c.569 1.23 1.611 1.989 2.249 3.15c1.174-.876 1.823-2.277 2.549-3.6c-.749-2.332-3.17.128-4.798.45zm-44.101 2.549c-.543-.857-.595-2.205-1.2-3c-.568 1.282-1.322 2.379-1.8 3.75c1.017-.232 2.217-.282 3-.75zm1.95-2.85a95.302 95.302 0 0 0 1.5 4.501c1.363-.337 2.813-.587 3.9-1.2c-.49-2.411-2.994-2.807-5.4-3.301zm34.8 2.551c.483 1.267 1.407 2.093 2.25 3c1.144-1.383 5.408-2.879 2.25-4.2c-1.617.283-2.843.957-4.5 1.2zm11.4 3.151c1.21-.089 1.89-.709 2.999-.901c-.332-1.118-1.019-1.881-1.349-3c-.853.955-2.19 2.03-1.65 3.901zm-38.25-3.451c.422 1.529 1.141 2.76 1.65 4.201c1.519-.232 2.542-.958 3.9-1.351c-.482-2.318-3.194-2.406-5.55-2.85zm18.3 1.5c.712.989 1.198 2.203 1.95 3.151c1.287-.813 2.867-1.333 4.2-2.101c-.25-2.779-4.097-1.443-6.15-1.05zm-8.1-.151c-.404-.345-1.447-.053-2.101-.15c.024.177-.026.427.151.45c.683 1.166 1.188 2.512 2.099 3.451c1.643-.907 3.891-1.21 5.4-2.251c-.339-.31-.469-.831-.601-1.35h-1.65c-.355-.345-1.346-.053-1.949-.151l-1.349.001zm-19.35.751c-.969-.239-1.997.682-3.151.75c.808.942 2.435 1.067 3.6 1.65c-.002-.947-.446-1.453-.449-2.4zm44.7 3.001c-.201-1.016-1.375-2.313-2.25-3.151c-1.128.923-2.43 1.67-3.45 2.701c.416.385.621.979.899 1.5c1.802-.149 3.023-.877 4.801-1.05zm-37.8-2.4c-1.027.423-2.201.698-3.3 1.05c.064.836.317 1.485.6 2.101c1.8.2 3.102.9 4.95 1.05c-.76-1.391-1.113-3.188-2.25-4.201zm27.751 1.049c-1.552.6-2.884 1.418-4.351 2.101c.29 3.236 4.69 1.288 6.9.9c-.881-.969-1.708-1.993-2.549-3.001zm-18.901.601c-1.562.288-2.713.987-4.2 1.35c.122.678.434 1.167.6 1.8c2.059.143 3.823.577 5.85.75c-.557-1.492-1.674-2.426-2.25-3.9zm9.3 3.901h3.15c-.561-1.54-1.64-2.561-2.4-3.901c-1.879.571-3.569 1.331-5.4 1.95c.138.912.703 1.396 1.05 2.1h1.05c.803-.097 1.997.197 2.55-.149z\"></path></g>'},lt:{viewBox:\"0 0 301 181\",innerHTML:'<g fill=\"none\"><path fill=\"#FDB913\" d=\"M.5.5h300v180H.5z\"></path><path fill=\"#C1272D\" d=\"M.5 90.5h300v90H.5z\"></path><path fill=\"#006A44\" d=\"M.5 60.5h300v60H.5z\"></path></g>'},lu:{viewBox:\"0 0 301 181\",innerHTML:'<g fill=\"none\"><path fill=\"#00A1DE\" d=\"M.5 90.5h300v90H.5z\"></path><path fill=\"#ED2939\" d=\"M.5.5h300v90H.5z\"></path><path fill=\"#FFF\" d=\"M.5 60.5h300v60H.5z\"></path></g>'},lv:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#9E3039\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFF\" d=\"M.5 60.5h300v30H.5z\"></path></g>'},ly:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#239E46\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#000\" d=\"M.5.5h300V113H.5z\"></path><path fill=\"#E70013\" d=\"M.5.5h300V38H.5z\"></path><path fill=\"#FFF\" d=\"M163.76 62.24c-7.323-5.226-17.496-3.526-22.722 3.798c-5.226 7.323-3.526 17.496 3.798 22.722a16.29 16.29 0 0 0 18.925 0c-7.323 7.321-19.195 7.32-26.516-.004c-7.322-7.323-7.32-19.195.004-26.516c7.32-7.32 19.189-7.32 26.511 0zm-4.14 13.26l25.23-8.19l-15.6 21.45V62.24l15.6 21.45l-25.23-8.19z\"></path></g>'},ma:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#C1272D\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#006233\" d=\"M150.49 67.166l-7.479 23.094l-24.26.021l19.615 14.271l-7.479 23.115a5499.298 5499.298 0 0 1 19.615-14.271l19.635 14.26l-7.5-23.094l19.615-14.292h-24.24l-7.522-23.104zm0 15.813l2.385 7.281l-4.75.01l2.365-7.291zm-9.073 12.167l-1.458 4.531l-6.198-4.51l7.656-.021zm5.125 0h7.917l2.448 7.542l-6.406 4.667l-6.406-4.667l2.447-7.542zm13.042 0h7.646l-6.177 4.531l-1.469-4.531zm-17.073 12.437l3.854 2.781l-6.198 4.51l2.344-7.291zm16 0l2.344 7.292l-6.188-4.5v-.01l3.844-2.782z\"></path></g>'},mc:{viewBox:\"0 0 301 241\",innerHTML:'<g fill=\"none\"><path fill=\"#CE1126\" d=\"M.5.5h300v120H.5z\"></path><path fill=\"#FFF\" d=\"M.5 120.5h300v120H.5z\"></path></g>'},mg:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FC3D32\" d=\"M100.5.5h200v100h-200z\"></path><path fill=\"#007E3A\" d=\"M100.5 100.5h200v100h-200z\"></path></g>'},mh:{viewBox:\"0 0 302 160\",innerHTML:'<g fill=\"none\"><path fill=\"#00285E\" stroke=\"#000\" stroke-width=\"0.274\" d=\"M1 1h300v157.907H1z\"></path><path fill=\"#F8991D\" stroke=\"#000\" stroke-linejoin=\"bevel\" stroke-width=\"0.274\" d=\"M301 40.032L1 146.578v-5.512L301 7.895z\"></path><path fill=\"#FFF\" stroke=\"#000\" stroke-linejoin=\"bevel\" stroke-width=\"0.274\" d=\"M1 152.058l300-79.811V40.032L1 146.578z\"></path><path fill=\"#FFF\" d=\"M59.289 108.882l2.397-31.225l7.707 18.799l-2.913-20.131l12.475 16.162l-8.081-18.825l16.019 12.69l-12.69-16.019l18.825 7.9l-16.162-12.162l20.131 2.78l-18.932-7.706l31.317-2.397l-31.317-2.397l18.932-7.707l-20.131 2.78l16.162-12.162l-18.825 7.901l12.69-16.02l-16.019 12.691l8.081-18.825L66.48 41.17l2.913-20.13l-7.707 18.799l-2.397-31.226l-2.397 31.226l-7.707-18.799l2.913 20.13l-12.474-16.161l8.08 18.825l-16.019-12.691l12.69 16.02l-18.824-7.901l16.161 12.162l-20.131-2.78l18.933 7.707l-31.318 2.397l31.318 2.397l-18.933 7.706l20.131-2.78l-16.161 12.162l18.824-7.9l-12.69 16.019l16.019-12.69l-8.08 18.825l12.474-16.162l-2.913 20.131l7.707-18.799z\"></path></g>'},mk:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#D20000\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFE600\" d=\"M.5.5h45l105 72.321L255.5.5h45l-300 150h45l105-72.321l105 72.321h45L.5.5zm300 60v30l-300-30v30l300-30zm-165-60l15 64.286L165.5.5h-30zm0 150l15-64.286l15 64.286h-30z\"></path><circle cx=\"150.5\" cy=\"75.5\" r=\"24.107\" fill=\"#FFE600\" stroke=\"#D20000\" stroke-width=\"4.286\"></circle></g>'},ml:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#14B53A\" d=\"M.5.5h100v200H.5z\"></path><path fill=\"#FCD116\" d=\"M100.5.5h100v200h-100z\"></path><path fill=\"#CE1126\" d=\"M200.5.5h100v200h-100z\"></path></g>'},mm:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#FECB00\" d=\"M.5.5h300v100H.5z\"></path><path fill=\"#EA2839\" d=\"M.5 100.5h300v100H.5z\"></path><path fill=\"#34B233\" d=\"M.5 67.166h300v66.667H.5z\"></path><path fill=\"#FFF\" d=\"M80.407 84.759l43.32 31.473l-16.547 50.926l43.32-31.474l43.32 31.474l-16.547-50.926l43.32-31.473h-53.546L150.5 33.833l-16.546 50.926z\"></path></g>'},mn:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#C4272F\" fill-rule=\"nonzero\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#015197\" fill-rule=\"nonzero\" d=\"M100.5.5h100v150h-100z\"></path><circle cx=\"50.5\" cy=\"51.75\" r=\"13.75\" fill=\"#F9CF02\" fill-rule=\"nonzero\"></circle><circle cx=\"50.5\" cy=\"45.5\" r=\"15\" fill=\"#C4272F\" fill-rule=\"nonzero\"></circle><circle cx=\"50.5\" cy=\"48\" r=\"10\" fill=\"#F9CF02\" fill-rule=\"nonzero\"></circle><path fill=\"#F9CF02\" fill-rule=\"nonzero\" d=\"M44.25 29.25a6.251 6.251 0 0 0 12.5 0c0-2.5-1.563-2.813-1.563-3.75c0-.937.938-2.188-.938-3.75c.938 1.563-.625 1.875-.625 3.438c0 1.563.625 1.563.625 2.813a1.25 1.25 0 0 1-2.5 0c0-1.25 1.25-2.5 1.25-4.375s-.313-2.5-1.25-4.063c-.937-1.563-2.5-2.813-1.25-4.063c-1.875.625-.938 3.125-.938 4.688c0 1.563-1.25 2.5-1.25 4.375s.938 2.188.938 3.438a1.25 1.25 0 0 1-2.5 0c0-1.25.625-1.25.625-2.813c0-1.563-1.563-1.875-.625-3.438c-1.875 1.563-.938 2.813-.938 3.75c0 .937-1.561 1.25-1.561 3.75zM23 68h12.5v60H23zm42.5 0H78v60H65.5zM38 78h25v5H38zm0 35h25v5H38zm0-45l12.5 7.5L63 68zm0 52.5l12.5 7.5l12.5-7.5z\"></path><circle cx=\"50.5\" cy=\"98\" r=\"13.25\" fill=\"#F9CF02\" fill-rule=\"nonzero\" stroke=\"#C4272F\" stroke-width=\"1.5\"></circle><path stroke=\"#C4272F\" stroke-width=\"1.5\" d=\"M50.5 84.75a6.625 6.625 0 1 1 0 13.25a6.625 6.625 0 1 0 0 13.25\"></path><circle cx=\"50.5\" cy=\"91.375\" r=\"2.5\" fill=\"#C4272F\" fill-rule=\"nonzero\"></circle><circle cx=\"50.5\" cy=\"104.625\" r=\"2.5\" fill=\"#C4272F\" fill-rule=\"nonzero\"></circle></g>'},mr:{viewBox:\"0 0 301 201\",innerHTML:'<defs><path id=\"IconifyId-17ca80ef3d5-b8efe2-225\" d=\"M.724.5h299.777v200H.724z\"></path></defs><g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#006233\" fill-rule=\"nonzero\" d=\"M.5.5h299.777v200H.5z\"></path><ellipse cx=\"150.389\" cy=\"75.5\" fill=\"#FFC400\" fill-rule=\"nonzero\" rx=\"64.535\" ry=\"64.583\"></ellipse><mask id=\"IconifyId-17ca80ef3d5-b8efe2-226\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-225\"></use></mask><ellipse cx=\"150.389\" cy=\"58.833\" fill=\"#006233\" fill-rule=\"nonzero\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-226)\" rx=\"62.453\" ry=\"62.5\"></ellipse><path fill=\"#FFC400\" fill-rule=\"nonzero\" d=\"M126.63 51.108l14.683 10.676l-5.608 17.275l14.684-10.676l14.683 10.676l-5.609-17.275l14.684-10.676h-18.15l-5.608-17.275l-5.609 17.275z\"></path></g>'},mt:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#CF142B\" fill-rule=\"nonzero\" d=\"M150.5.5h150v200h-150z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M.5.5h150v200H.5z\"></path><path fill=\"#F1EEEE\" fill-rule=\"nonzero\" d=\"M34.006 30.996c0 .33-.373.597-.834.597c-.461 0-.834-.267-.834-.597c0-.33.373-.597.834-.597c.461-.001.834.266.834.597z\"></path><path fill=\"#E60D2E\" fill-rule=\"nonzero\" d=\"M7.907 28.109v15.152h15.152c0 2.524 2.525 5.05 5.051 5.05v15.151h15.151V48.311c2.525 0 5.051-2.525 5.051-5.05h15.152V28.109H48.312c0-2.525-2.525-5.05-5.051-5.05V7.907H28.11v15.152c-2.525 0-5.051 2.525-5.051 5.05H7.907z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" d=\"M8.918 29.119v13.132h15.151c0 2.524 2.525 5.05 5.051 5.05v15.151h13.131V47.301c2.525 0 5.051-2.526 5.051-5.05h15.151V29.119H47.302c0-2.524-2.525-5.05-5.051-5.05V8.918H29.12v15.151c-2.526 0-5.051 2.526-5.051 5.05H8.918z\"></path><path fill=\"#CCC\" fill-rule=\"nonzero\" d=\"M9.423 29.624v12.121h15.151c0 2.525 2.525 5.051 5.051 5.051v15.151h12.121V46.796c2.525 0 5.051-2.526 5.051-5.051h15.151V29.624H46.797c0-2.525-2.525-5.05-5.051-5.05V9.423H29.625v15.151c-2.525 0-5.051 2.525-5.051 5.05H9.423z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" d=\"M28.679 24.393c.888.888.648 2.566-.536 3.75c-1.184 1.183-2.862 1.423-3.75.536c-.887-.888-.647-2.567.536-3.75c1.183-1.183 2.862-1.423 3.75-.536z\"></path><path fill=\"#D0D0D0\" fill-rule=\"nonzero\" d=\"M24.215 27.072l.357-.357l1.428.714L25.286 26l.357-.357l1.428 2.857zm4.649-.353l-.707.707l-2.144-2.143l.707-.707z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" d=\"M46.977 28.679c-.888.888-2.566.648-3.75-.536c-1.183-1.183-1.423-2.862-.535-3.75c.887-.888 2.566-.648 3.75.535c1.183 1.184 1.423 2.863.535 3.751z\"></path><path fill=\"#D0D0D0\" fill-rule=\"nonzero\" d=\"M44.299 24.215l.357.357l-.714 1.429l1.429-.714l.357.357l-2.857 1.429zm.351 4.647l-.707-.707l2.142-2.143l.707.707z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" d=\"M42.692 46.978c-.887-.888-.648-2.566.536-3.75c1.183-1.183 2.862-1.423 3.75-.536c.888.887.648 2.566-.535 3.75c-1.185 1.183-2.864 1.423-3.751.536z\"></path><path fill=\"#D0D0D0\" fill-rule=\"nonzero\" d=\"M47.156 44.3l-.357.357l-1.428-.714l.714 1.428l-.357.357l-1.428-2.857zm-4.649.352l.707-.707l2.144 2.143l-.708.707z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" d=\"M24.393 42.692c.888-.887 2.566-.648 3.75.536c1.184 1.183 1.424 2.862.536 3.75c-.888.888-2.566.648-3.75-.536c-1.184-1.183-1.424-2.862-.536-3.75z\"></path><path fill=\"#D0D0D0\" fill-rule=\"nonzero\" d=\"M27.072 47.157l-.357-.357l.714-1.429l-1.429.714l-.357-.357l2.857-1.429zm-.359-4.652l.707.707l-2.142 2.142l-.707-.707z\"></path><path stroke=\"#96877D\" stroke-width=\"0.172\" d=\"M46.291 35.685c.001 5.859-4.747 10.609-10.606 10.609c-5.858 0-10.607-4.75-10.606-10.609c-.001-5.858 4.747-10.608 10.606-10.608s10.608 4.75 10.606 10.608h0z\"></path><path stroke=\"#96877D\" stroke-width=\"0.172\" d=\"M43.766 35.686a8.08 8.08 0 1 1-16.162 0a8.08 8.08 0 1 1 16.162 0h0z\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M32.15 44.272a.503.503 0 1 1-1.01 0a.505.505 0 1 1 1.01 0zm8.081 0a.506.506 0 0 1-.758.438a.505.505 0 1 1 .758-.438zm-4.882 0v.526h-.673c-.673 0-.673.527 0 .527h.673v.527c.002.546.588.612.631.046l.043-.569h.673c.673 0 .673-.527 0-.527h-.673v-.527c0-.527-.674-.527-.674 0v-.003z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.068\" d=\"M41.45 37.229c.177-.045.47-.008.47-.008s.026.122-.051.162c.085.049.393.034.393.034s-.12.092-.179.128c.111.011.248.154.248.154s-.256.043-.367-.017c.068.136.06.256.06.256s-.414-.103-.563-.376m-.703-.564c-.1.248-.837-.214-.837-.214s.325.515.811.572m-9.172 4.365h8.626l.666-.529l-1.11-.598l-1.708-.581l-.683-.376l-1.264.068l-1.059.563l-1.452.171l-.341.393l-1.076.085l-1.691-.034l2.818.444l-2.323-.119z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.068\" d=\"M36.207 39.244c-1.08-.581-1.396.85-1.862 1.196c.628.107 1.102-.483 1.64-.769c.408 1.111 1.05.376 1.05.376s.671 1.063 1.563.581c.243.184.512.017.512.017s.325.06.393-.085c.171.06.359-.154.359-.154s.371.004.444-.188c.551.098 1.281-1.127 1.281-1.127l.222-.427l.325-.068s.021-.214-.154-.205c-.004-.128-.115-.196-.273-.171c.03-.077-.085-.136-.085-.136c-.307.077-.325.854-.325.854s-.538.41-.734.512c-.008-.444-.752-1.046-.598-1.332c.154-.286.636.44 1.059.307c.423-.133.63-.682.649-1.11c-.12-.29-.41-.769-.41-.769l-.273-.017l-.239-.581s-.504.329-.495.615c.009.286.53.529.53.529s-.3.188-.581.102c-.026.29.341.235.478.239c.068.209.273.325.273.325s.128.32-.205.29c-.333-.03-.726-.798-1.196-.444c-.5.376.222 1.059.222 1.059s-.44.23-.7.82c-1.064-.896-1.688-.478-2.87-.239z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.068\" d=\"M34.652 37.724c.444.418.134 1.114.307 1.247c.184.141.444-.068.444-.068c.465.124 1.298-.136 1.298-.136c.367.205.222-.098.444-.086c.196.504.854.41.854.41s-.602-.615-.974-.786c-.286.171-1.119.196-1.264.171c-.162-.029-.06-.227-.136-.342c.306-.298.064-1.038-.103-1.315c-.677-.452-1.488.322-.87.905h0zM31.7 36.472c-.559.151-1.528-.722-1.981-.386c-.453.335-.242 1.159.06 1.57c.295.401-.432.547-.628.785c-.185.224.06.483.06.483l.205.133l-.036.302l.109.362s.1.088.133-.024c.093.094.01.365.242.399c-.083-.174.06-.652.06-.652s.405.03.507-.145c.103-.175-.097-.556-.097-.556h.121c-.136-.093-.181-.374-.181-.374s.562-.178.556-.604c-.006-.426-.912-.879-.58-1.099c.368-.245 1.008.634 1.558.23c.544-.4.193-.012.193-.012s.249-.561-.301-.412zm2.884-5.982c-.747-.312-2.274-.331-3.126-.752c-.373.023-.54.318-.555.436c-.391-.019-.655.596-.598.717c-.711-.288-1.042.837-.811 1.068c-.606.025-.532.8-.589 1.016c-.194.472.043.631.427.461c.058.205-.023.32-.197.359c1.053 1.204 1.647-.741 2.571-.734c1.153-.338 1.606-.905 1.606-.905l.452.06l.82-1.726z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-width=\"0.068\" d=\"M36.651 29.628a1.102 1.102 0 1 1-2.204 0a1.102 1.102 0 0 1 2.204 0h0z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.068\" d=\"M33.61 38.305c-.683-.124-1.815-.833-1.93-1.759c.636-2.498 3.918-1.193 4.202-3.072c-.072-1.24.15-2.467.837-3.504c.32-.406.734-.512.734-.512s.074.264-.034.444c.542-.06 1.286.244 1.794.273c.149.303.136.414.102.598c-.034.184-.239.137-.239.137c-.132.126-.292.254-.649.188c-.269.205-.837.256-.837.256s1.187 1.251.991 1.64c.248.115.615.666.615.666s.812-.427 1.076-.82c.47 0 1.238.491 1.623.547c.47.38.939.769.939.769s-.56.367-.803-.119c-.295.026-.931-.679-1.811-.461c-.025.782-.888 1.332-.888 1.332s.805-.113 1.247.154c.457.384 1.127.905 1.127.905l.598 1.025s-.547.094-.752-.615c-.205.572-.214-.354-1.025-.786c-.248.03-.371.047-.581-.12c-.585.158-1.277.499-2.101.41c-.585.184-1.012.67-1.605.939c-.594.269-.769.137-.769.137l-.478.017c-.069.288-.03.726-.29.803c.167.179-.119.944-.41 1.076c.137.491.537.641.956.888c0 0 .371-.171.615.051c.243.222.495.854.495.854s-.507.034-.666-.034c-.16-.068-.175-.235-.358-.188c-1.157-1.029-1.768-.62-1.879-.854c-.114-.241.274-.868.154-1.265h0z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.068\" d=\"M30.83 33.718c.061-.076.483.084.483.084l.773.483l1.57 1.015l.556.809l-1.002-.326l-1.389-1.196l-.749-.483c0 .001-.302-.311-.242-.386zm9.288 2.571c-.542-.137-1.879 1.486-1.879 1.486l1.008 1.093s.03-1.861.871-2.579z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.068\" d=\"M33.508 31.763c-.296.379-.322 1.143.063 1.451c.036.464.431 1.399.74 1.487c.339.096 1.691.41 2.221.325c-.102.858.572 1.547 1.196 1.998a.366.366 0 0 0 .066.266c.07.092.397.109.412.058c.145.204.849.294.9.203c.049-.089-1.035-.844-1.276-1.074c-.204-.381-.591-1.231-.683-1.913c-.533-.633-1.447-.621-1.447-.621l.029-1.241l.051-1.401l-.495-.256s.1-.045.154-.102c.12.051.346-.19.376-.258c.114.04.217.04.237-.021c.018-.054.038-.293.079-.417c.374-.329-.054-1.027-.626-1.038c-.565-.011-.692.674-.681.727c.053.215.042.324 0 .376c-.042.053-.239.171-.239.171s-.316-.149-.701 0c-.384.149-.815.35-.837.598c-.175.026-.461.252-.512.444c-.154-.03-.354.098-.683.632c-.589.26-.623 1.52-.623 1.52s-.159.232-.166.354c-.007.123.055.235.132.214c.008.081.115.154.162.128c.017.081.134.127.205.115c.007.056.234.042.252-.008c.02-.055-.022-.332.004-.354c.025-.02.214.124.265.086c.051-.038-.01-.161-.038-.209c-.026-.043-.188-.09-.227-.29c-.038-.201.103-.478.103-.478s.641-.504.713-.935c.481.044.736-.378.874-.537h0z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.068\" d=\"M32.393 29.956c.146-.357.675-.325.675-.325s.189-.497.901-.201c.268-.207.974.09.974.09s.264-.352.611-.312c.642.075.748.663.709.764c-.351.089-.96-.286-1.422-.179c-.27.153-.708.314-.871.534c-.429.046-.886-.393-1.577-.371h0zm1.337.594c.16-.098.553-.271.82-.06c.28.301.709.581.709.581l.487.205l.222.137l-.145 2.229c-.451-.461-.873-.542-1.196-1.085c-.173-.233-.041-.792-.341-1.161c-.302-.37-.622-.62-.556-.846z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.068\" d=\"M34.9 31.194s.255-.048.326.012c.089.03.175.056.199.133c.097.029.163.078.163.151c.09.024.127.187.127.187l-.084.127s-.097-.091-.109-.187c-.061-.03-.196-.062-.23-.151c-.106-.011-.174-.065-.193-.157c-.097.022-.199-.115-.199-.115z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.068\" d=\"M37.06 29.739c-.145-.162-.401-.043-.401-.043l-.683 1.179l-.299.248l-.026.922l.248.863l-.085.666s.344-.323.384-.504c.038-.173-.128-.734-.128-.734s-.205-.35.043-.999c.247-.65.811-1.188.947-1.598h0z\"></path><path fill=\"#96877D\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.068\" d=\"M38.746 30.789s-1.067 1.524-2.813 2.067c-.482.116-.307-1.127-.307-1.127l-.12.034s-.269 1.217.376 1.23c1.755-.346 3.072-2.193 3.072-2.193l-.208-.011zm.723 8.763s-.162.12-.376 0c-.111-.256-.41-.273-.41-.273s-.192-.553-.495-.393c-.047-.286-.376-.137-.376-.137s-.008-.414-.393-.359c.128-.474-.53-.444-.53-.444s-.021-.534-.991-.427c2.088-.935 3.741 1.469 3.741 1.469m.821.769s.482.542.734.547c.252.004.273-.53.273-.53s.081.231.205.171c-.013.162.154.205.154.205s-.436 1.012-1.674.051m-3.467-.239l-.171.7s-.218.196-.154.239c.064.043.41-.068.41-.068s.538-.064.701-.222a.46.46 0 0 0 .358.273s.017-.107-.017-.171c.119.021.222-.017.222-.017s.068-.197-.085-.273c.017-.145.09-.273-.171-.256c-.192.205-.666.44-.786.359c-.119-.081.47-.341.308-.683\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M25.818 38.3l.695-.165l-.077-.322c-.018-.074-.047-.124-.088-.151c-.041-.026-.111-.034-.21-.022l-.012-.048l.598-.143l.011.048a.353.353 0 0 0-.145.063a.165.165 0 0 0-.055.088a.286.286 0 0 0 .008.139l.077.322l.555-.132a.634.634 0 0 0 .173-.059a.117.117 0 0 0 .043-.068a.26.26 0 0 0 .003-.127l-.015-.064l.048-.012l.181.758l-.048.012l-.015-.063c-.018-.073-.051-.121-.102-.144c-.033-.014-.102-.009-.208.017l-1.142.272a.589.589 0 0 0-.173.059a.117.117 0 0 0-.043.067a.253.253 0 0 0-.003.128l.015.063l-.048.011l-.313-1.315l.384-.109l.011.046a.543.543 0 0 0-.163.122a.263.263 0 0 0-.058.131a.626.626 0 0 0 .022.21l.094.388zm-.447-3.134a.824.824 0 0 1 .303-.597a.928.928 0 0 1 .684-.221a.965.965 0 0 1 .672.299c.172.184.251.4.237.647a.84.84 0 0 1-.301.614c-.187.16-.422.232-.703.216a.914.914 0 0 1-.688-.334a.857.857 0 0 1-.204-.624zm.096.031a.48.48 0 0 0 .159.401c.143.13.359.204.647.22c.296.017.528-.034.694-.151a.465.465 0 0 0 .203-.375a.526.526 0 0 0-.175-.433c-.127-.118-.333-.186-.619-.202c-.31-.017-.545.031-.704.144a.494.494 0 0 0-.205.396zm2.631-3.317l-.173.453l-1.012.272l-.037.105l-.014.035a1.145 1.145 0 0 1-.017.038l.493.188c.107.041.178.054.212.041c.049-.018.085-.058.11-.122l.025-.066l.046.018l-.277.728l-.046-.018l.024-.064c.027-.072.023-.132-.011-.181c-.019-.027-.077-.06-.174-.096l-1.097-.418c-.107-.041-.177-.054-.212-.041c-.049.019-.086.06-.11.124l-.024.064l-.046-.018l.235-.618a1.64 1.64 0 0 1 .191-.384a.48.48 0 0 1 .228-.162a.403.403 0 0 1 .286.006c.105.04.182.108.233.205a.62.62 0 0 1 .043.378l.62-.165a.904.904 0 0 0 .301-.122a.553.553 0 0 0 .156-.199l.047.019zm-1.331.874a.658.658 0 0 1 .017-.041l.011-.029c.062-.162.073-.297.034-.406a.358.358 0 0 0-.221-.225a.378.378 0 0 0-.297.001a.386.386 0 0 0-.2.226a1.18 1.18 0 0 0-.051.206l.707.268zm3.865-6.018l.351.456l-.039.025a.784.784 0 0 0-.329-.171a.577.577 0 0 0-.435.095a.594.594 0 0 0-.294.517a.985.985 0 0 0 .173.546c.094.146.208.26.342.343a.705.705 0 0 0 .392.121a.633.633 0 0 0 .335-.098a.73.73 0 0 0 .26-.288l-.285-.441a.482.482 0 0 0-.115-.139a.144.144 0 0 0-.089-.019a.37.37 0 0 0-.141.065l-.028-.043l.59-.382l.028.043l-.028.018c-.059.038-.086.083-.083.136a.476.476 0 0 0 .084.179l.302.467a1.39 1.39 0 0 1-.189.268c-.07.076-.156.147-.259.214c-.295.191-.58.241-.855.151a.904.904 0 0 1-.49-.379a.974.974 0 0 1-.153-.448a.988.988 0 0 1 .096-.541a.908.908 0 0 1 .332-.354a.963.963 0 0 1 .16-.085c.051-.02.129-.042.231-.065a.407.407 0 0 0 .1-.031c.014-.009.022-.023.024-.043c.002-.02-.009-.049-.031-.089l.043-.028zm2.958.205l-.68.181l-.045.309a.484.484 0 0 0-.004.164c.007.027.026.047.057.06c.031.014.09.012.176-.004l.013.048l-.553.147l-.013-.048c.07-.033.113-.062.129-.089a.824.824 0 0 0 .079-.291l.233-1.609l.045-.012l.999 1.298c.08.104.145.169.195.193a.282.282 0 0 0 .183.014l.013.048l-.692.184l-.013-.048c.069-.022.113-.046.132-.073a.096.096 0 0 0 .018-.082a.544.544 0 0 0-.1-.166l-.172-.224zm-.062-.086l-.487-.63l-.117.791l.604-.161zm3.207-.01l.044.011l-.174.486l-1.406-.055l.002-.049l.068.003c.077.003.133-.02.168-.068c.02-.028.032-.094.036-.197l.046-1.171c.005-.113-.005-.185-.029-.214c-.033-.041-.084-.062-.153-.065l-.068-.003l.002-.049l.822.032l-.002.05a.502.502 0 0 0-.204.019a.163.163 0 0 0-.082.068a.593.593 0 0 0-.029.204l-.044 1.14a.372.372 0 0 0 .015.153c.01.019.026.034.048.044c.022.01.091.017.208.022l.133.005a.956.956 0 0 0 .295-.02a.38.38 0 0 0 .158-.103a.991.991 0 0 0 .146-.243zm2.419.648l.039.023l-.302.419l-1.335-.442l.016-.047l.065.021c.073.024.133.018.18-.02c.027-.021.056-.081.089-.179l.368-1.113c.035-.108.046-.179.031-.214c-.021-.049-.064-.083-.129-.105l-.065-.021l.016-.047l.781.258l-.016.047a.494.494 0 0 0-.201-.038a.162.162 0 0 0-.098.042a.586.586 0 0 0-.085.188l-.358 1.084a.376.376 0 0 0-.028.152a.104.104 0 0 0 .034.055a.853.853 0 0 0 .194.078l.126.042a.951.951 0 0 0 .288.063a.38.38 0 0 0 .18-.055a.905.905 0 0 0 .21-.191zm1.95 1.032l-.574-.407l-.266.163a.453.453 0 0 0-.129.103c-.016.023-.019.05-.01.082c.009.033.048.077.116.132l-.029.04l-.467-.33l.029-.04c.07.033.12.047.15.042a.782.782 0 0 0 .274-.126l1.385-.851l.038.027l-.357 1.599a.679.679 0 0 0-.023.273a.282.282 0 0 0 .106.15l-.029.041l-.585-.414l.029-.041c.061.039.108.057.141.055a.095.095 0 0 0 .075-.039a.574.574 0 0 0 .064-.183l.062-.276zm.026-.102l.173-.777l-.682.417l.509.36zm2.155.396l.294.396l-.433 1.703l.841-.624c.09-.066.138-.118.146-.154c.01-.049-.006-.102-.048-.16l-.037-.051l.04-.029l.376.508l-.04.03l-.038-.052c-.046-.061-.097-.091-.153-.09c-.035.001-.093.032-.174.093l-1.23.912l-.029-.039l.462-1.833l-.898.666c-.09.066-.139.118-.146.153c-.01.05.006.103.048.16l.038.052l-.04.029l-.376-.508l.04-.03l.037.051c.046.062.098.093.154.091c.035-.001.093-.032.175-.093l1.015-.752a.784.784 0 0 0 .026-.169a.418.418 0 0 0-.027-.129a.4.4 0 0 0-.061-.102l.038-.029zm2.29 4.221l-.395.161l-.017-.048a.54.54 0 0 0 .138-.091a.27.27 0 0 0 .071-.143a.382.382 0 0 0-.026-.183l-.085-.241l-1.308.463c-.105.037-.167.072-.185.104c-.024.044-.024.1-.001.166l.021.06l-.047.016l-.257-.726l.047-.017l.021.061c.025.072.065.116.12.131c.033.009.098-.004.194-.037l1.309-.463l-.073-.206a.596.596 0 0 0-.078-.164a.249.249 0 0 0-.132-.08a.391.391 0 0 0-.204.01l-.017-.048l.409-.122l.495 1.397zm-1.438 3.222l-.025-.484l.816-.658a2.301 2.301 0 0 1-.008-.111l-.001-.037v-.042l-.527.027c-.114.006-.184.022-.211.049c-.038.036-.055.088-.051.155l.004.071l-.049.003l-.04-.777l.049-.003l.004.068c.004.077.032.13.084.161c.029.017.094.023.198.018l1.172-.061c.114-.006.185-.022.211-.049c.037-.037.054-.09.051-.158l-.004-.068l.049-.003l.035.661c.01.192.003.335-.02.428a.487.487 0 0 1-.143.241a.406.406 0 0 1-.265.11a.42.42 0 0 1-.296-.094a.616.616 0 0 1-.192-.328l-.501.401a.967.967 0 0 0-.227.233a.551.551 0 0 0-.062.245l-.051.002zm.866-1.336l.002.044l.001.031c.009.173.053.301.132.385a.36.36 0 0 0 .293.117a.379.379 0 0 0 .271-.12a.384.384 0 0 0 .092-.287a1.285 1.285 0 0 0-.036-.209l-.755.039zm.498 3.736l-.161.613l-.048-.013l.009-.034a.261.261 0 0 0-.004-.106a.38.38 0 0 0-.055-.14a1.193 1.193 0 0 0-.147-.178l-.556-.599l-.44-.116c-.108-.028-.179-.034-.212-.017c-.045.023-.077.07-.095.141l-.015.057l-.048-.013l.196-.746l.048.013l-.017.062c-.02.074-.011.133.026.176c.023.026.083.052.182.078l.416.109l.862-.289c.102-.034.166-.059.192-.074a.477.477 0 0 0 .111-.106a.186.186 0 0 0 .033-.072l.048.013l-.197.751l-.048-.012l.01-.039a.229.229 0 0 0 .001-.119a.097.097 0 0 0-.072-.074c-.031-.008-.094.004-.189.035l-.662.218l.451.487c.068.073.121.115.161.125a.111.111 0 0 0 .07-.002a.132.132 0 0 0 .059-.042a.267.267 0 0 0 .044-.101l.047.014z\"></path></g>'},mu:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#EA2839\" d=\"M.5.5h300v50H.5z\"></path><path fill=\"#1A206D\" d=\"M.5 50.5h300v50H.5z\"></path><path fill=\"#FFD500\" d=\"M.5 100.5h300v50H.5z\"></path><path fill=\"#00A551\" d=\"M.5 150.5h300v50H.5z\"></path></g>'},mv:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#D21034\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#007E3A\" d=\"M50.5 50.5h200v100h-200z\"></path><circle cx=\"163\" cy=\"100.5\" r=\"33.333\" fill=\"#FFF\"></circle><circle cx=\"175.5\" cy=\"100.5\" r=\"33.333\" fill=\"#007E3A\"></circle></g>'},mw:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#000\" d=\"M.5.5h300v200H.5z\"></path><circle cx=\"150.5\" cy=\"76.5\" r=\"43\" fill=\"#CE1126\"></circle><path fill=\"#CE1126\" d=\"M.5 67.166h300v66.667H.5zM150.5 8.5c-1.467 0-2 2.2-2 4.333c0 5.333.667 8 2 15.667c1.36-7.667 2-10.4 2-15.667c0-2.2-.666-4.333-2-4.333m5.927.259c-1.461-.128-2.184 2.017-2.37 4.143c-.465 5.313-.033 8.028.627 15.781c2.023-7.519 2.899-10.186 3.358-15.433c.191-2.192-.287-4.375-1.615-4.491m5.881.774c-1.444-.255-2.352 1.819-2.722 3.92c-.926 5.252-.733 7.994-.751 15.776c2.671-7.314 3.776-9.895 4.69-15.081c.382-2.167.096-4.384-1.217-4.615m5.792 1.284c-1.417-.38-2.501 1.607-3.053 3.668c-1.381 5.152-1.427 7.9-2.123 15.651c3.298-7.053 4.624-9.528 5.987-14.615c.568-2.126.477-4.359-.811-4.704m5.657 1.784c-1.378-.502-2.632 1.383-3.361 3.388c-1.824 5.012-2.11 7.745-3.479 15.406c3.9-6.739 5.436-9.089 7.238-14.038c.752-2.068.855-4.3-.398-4.756m5.481 2.27c-1.329-.62-2.743 1.149-3.644 3.082c-2.254 4.834-2.776 7.532-4.808 15.044c4.473-6.374 6.208-8.58 8.434-13.354c.929-1.994 1.227-4.209.018-4.772m5.262 2.739c-1.27-.733-2.832.905-3.899 2.753c-2.667 4.619-3.423 7.261-6.101 14.568c5.011-5.96 6.932-8.007 9.565-12.568c1.101-1.905 1.59-4.086.435-4.753m5.003 3.188c-1.201-.841-2.9.655-4.124 2.402c-3.059 4.369-4.043 6.936-7.348 13.98c5.511-5.5 7.604-7.372 10.624-11.686c1.263-1.802 1.941-3.932.848-4.696m4.707 3.611c-1.123-.943-2.946.4-4.317 2.034c-3.428 4.086-4.632 6.557-8.538 13.287c5.97-4.999 8.217-6.681 11.603-10.716c1.412-1.685 2.273-3.748 1.252-4.605m4.373 4.008c-1.037-1.037-2.97.141-4.478 1.65c-3.771 3.771-5.186 6.128-9.664 12.492c6.383-4.459 8.768-5.94 12.492-9.664c1.556-1.556 2.593-3.536 1.65-4.478m4.008 4.373c-.943-1.124-2.971-.118-4.605 1.253c-4.086 3.428-5.7 5.653-10.716 11.602c6.747-3.886 9.253-5.153 13.287-8.538c1.685-1.413 2.891-3.295 2.034-4.317m3.611 4.707c-.841-1.201-2.949-.376-4.697.847c-4.368 3.059-6.171 5.135-11.686 10.624c7.06-3.284 9.666-4.327 13.981-7.348c1.802-1.261 3.167-3.031 2.402-4.123m3.188 5.003c-.733-1.27-2.905-.632-4.753.435c-4.619 2.667-6.595 4.577-12.568 9.565c7.32-2.656 10.007-3.468 14.568-6.101c1.905-1.1 3.42-2.744 2.753-3.899m2.739 5.262c-.62-1.329-2.839-.883-4.773.019c-4.834 2.254-6.969 3.985-13.354 8.434c7.523-2.008 10.271-2.583 15.044-4.809c1.995-.93 3.647-2.436 3.083-3.644m2.27 5.481c-.502-1.378-2.752-1.127-4.756-.397c-5.012 1.824-7.289 3.363-14.038 7.238c7.669-1.344 10.457-1.677 15.406-3.479c2.068-.753 3.844-2.109 3.388-3.362m1.784 5.657c-.38-1.417-2.643-1.362-4.703-.81c-5.152 1.38-7.555 2.715-14.615 5.987c7.757-.671 10.563-.76 15.65-2.123c2.125-.57 4.013-1.766 3.668-3.054\"></path><path fill=\"#CE1126\" d=\"M83.533 64.692c-.255 1.444 1.819 2.352 3.92 2.722c5.252.926 7.994.733 15.776.751c-7.314-2.671-9.895-3.776-15.081-4.69c-2.167-.382-4.383-.096-4.615 1.217m1.284-5.792c-.38 1.417 1.607 2.501 3.668 3.053c5.152 1.38 7.9 1.427 15.65 2.123c-7.053-3.298-9.528-4.624-14.615-5.987c-2.125-.568-4.358-.477-4.703.811m1.784-5.657c-.502 1.378 1.383 2.632 3.388 3.361c5.011 1.824 7.745 2.11 15.406 3.479c-6.739-3.9-9.089-5.436-14.038-7.238c-2.067-.752-4.3-.855-4.756.398m2.27-5.481c-.62 1.329 1.148 2.743 3.082 3.644c4.834 2.254 7.532 2.777 15.044 4.809c-6.373-4.473-8.58-6.208-13.354-8.434c-1.993-.93-4.208-1.228-4.772-.019m2.74-5.262c-.733 1.27.905 2.832 2.753 3.899c4.619 2.667 7.261 3.423 14.568 6.101c-5.96-5.011-8.007-6.932-12.568-9.565c-1.906-1.101-4.087-1.59-4.753-.435m3.187-5.003c-.841 1.201.655 2.9 2.403 4.124c4.369 3.059 6.936 4.042 13.98 7.348c-5.5-5.511-7.372-7.604-11.686-10.624c-1.802-1.263-3.932-1.941-4.697-.848m3.611-4.707c-.943 1.123.4 2.946 2.034 4.317c4.086 3.428 6.557 4.631 13.287 8.538c-4.999-5.97-6.681-8.217-10.716-11.602c-1.685-1.413-3.748-2.274-4.605-1.253m4.008-4.373c-1.037 1.037.141 2.97 1.65 4.478c3.771 3.771 6.128 5.186 12.492 9.664c-4.46-6.383-5.94-8.768-9.664-12.492c-1.555-1.556-3.535-2.593-4.478-1.65m4.374-4.008c-1.124.943-.118 2.971 1.253 4.605c3.428 4.085 5.653 5.7 11.603 10.716c-3.886-6.747-5.153-9.252-8.538-13.287c-1.415-1.685-3.297-2.891-4.318-2.034m4.706-3.611c-1.202.841-.376 2.949.847 4.697c3.059 4.369 5.134 6.171 10.624 11.686c-3.283-7.06-4.327-9.666-7.348-13.98c-1.261-1.803-3.031-3.168-4.123-2.403m5.003-3.188c-1.27.733-.632 2.905.435 4.753c2.667 4.619 4.577 6.595 9.565 12.568c-2.656-7.32-3.468-10.007-6.101-14.568c-1.1-1.905-2.744-3.42-3.899-2.753m5.262-2.739c-1.329.62-.883 2.839.019 4.773c2.254 4.833 3.985 6.968 8.434 13.354c-2.008-7.523-2.583-10.271-4.808-15.044c-.931-1.995-2.436-3.647-3.645-3.083m5.481-2.27c-1.378.502-1.127 2.751-.397 4.756c1.824 5.012 3.363 7.289 7.238 14.038c-1.344-7.67-1.678-10.457-3.479-15.406c-.753-2.068-2.109-3.844-3.362-3.388m5.657-1.784c-1.417.38-1.362 2.643-.81 4.703c1.381 5.152 2.715 7.555 5.987 14.615c-.671-7.757-.76-10.563-2.123-15.651c-.57-2.124-1.766-4.012-3.054-3.667m5.792-1.284c-1.444.255-1.588 2.514-1.217 4.615c.926 5.252 2.046 7.763 4.69 15.081c.008-7.786.164-10.589-.751-15.776c-.382-2.166-1.409-4.151-2.722-3.92m5.881-.774c-1.461.128-1.8 2.366-1.615 4.491c.465 5.313 1.361 7.911 3.358 15.433c.687-7.756 1.086-10.534.627-15.781c-.191-2.193-1.041-4.26-2.37-4.143\"></path><path fill=\"#000\" d=\"M.5 62.166h300v5H.5z\"></path><path fill=\"#339E35\" d=\"M.5 133.833h300V200.5H.5z\"></path></g>'},my:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#CC0001\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFF\" d=\"M.5 139.786h300V150.5H.5zm0-21.429h300v10.714H.5zm0-21.429h300v10.714H.5zM.5 75.5h300v10.714H.5zm0-21.429h300v10.714H.5zm0-21.428h300v10.714H.5zm0-21.429h300v10.714H.5z\"></path><path fill=\"#010066\" d=\"M.5.5h150v85.714H.5z\"></path><path fill=\"#FC0\" d=\"M62.214 11.214c-17.801 0-32.25 14.401-32.25 32.143S44.413 75.5 62.214 75.5a32.162 32.162 0 0 0 17.457-5.12a28.623 28.623 0 0 1-9.351 1.565c-15.785 0-28.596-12.768-28.596-28.501S54.535 14.943 70.32 14.943c3.488 0 6.83.623 9.922 1.764a32.166 32.166 0 0 0-18.028-5.493z\"></path><path fill=\"#FC0\" d=\"M115.697 60.09l-13.585-7.088l4.016 14.506l-9.086-12.134l-2.835 14.769l-2.788-14.777l-9.124 12.107l4.063-14.494l-13.607 7.047l10.108-11.339l-15.395.591l14.152-5.939l-14.133-5.982l15.393.637l-10.072-11.37l13.585 7.088l-4.016-14.506l9.086 12.134l2.835-14.769l2.788 14.777l9.124-12.107l-4.063 14.494l13.607-7.047l-10.108 11.339l15.395-.591l-14.152 5.939l14.133 5.982l-15.393-.638z\"></path></g>'},mz:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M.5.5h300v68.75H.5z\"></path><path fill=\"#007168\" fill-rule=\"nonzero\" d=\"M.5.5h300V63H.5z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M.5 131.666h300v68.833H.5z\"></path><path fill=\"#FCE100\" fill-rule=\"nonzero\" d=\"M.5 138h300v62.5H.5z\"></path><path fill=\"#D21034\" fill-rule=\"nonzero\" d=\"M.5.5v200l131.25-100z\"></path><path fill=\"#FCE100\" fill-rule=\"nonzero\" d=\"M68.623 137.995l-24.385-17.854L19.887 138l9.444-28.708L4.822 91.651l30.221.111L44.247 63l9.234 28.777l30.198-.134l-24.515 17.674z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.417\" d=\"M23.075 117.976h17.566c1.413 1.586 4.567 2.232 7.57-.019c5.506-3.015 16.158.019 16.158.019l2.098-2.229l-5.113-16.78l-1.835-1.966s-3.933-2.36-11.405-1.573c-7.472.786-10.094-.262-10.094-.262s-6.554.786-8.39 1.704c-.202.163-2.098 2.097-2.098 2.097l-4.457 19.009z\"></path><path stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.417\" d=\"M26.615 113.65s16.78-2.097 21.63 4.326c-2.739 1.874-5.151 2.029-7.735.132c.411-.686 6.03-6.555 20.319-4.589\"></path><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.417\" d=\"M44.574 96.87l-.131 18.484m15.075-18.222l3.146 14.682M29.802 96.901l-1.746 7.572m-16.39 15.515l4.131 4.843c.485.289.916.271 1.347 0l6.122-7.347l2.572-3.184c.398-.472.525-.998.49-1.469l4.916-4.368c.402.028.642.073 1.044.1c-.475-.123-.824-.354-.45-.875l1.102-.857l.857 1.102s-1.224 1.592-1.347 1.592h-1.347l-2.572 2.327l1.124.994l1.692 4.639l2.082-1.47l-1.347-4.775l2.939-3.184l-1.102-1.715l.735-.98s10.171 6.404 14.09 4.69c.106.038.237-4.567.237-4.567s-10.53-1.102-10.776-3.184c-.245-2.082 2.327-2.326 2.327-2.326l-1.102-1.592l.245-.857l1.837 2.327l4.163-3.551l24.49 27.919c1.337-.542 1.622-.87 1.715-2.204c-.035-.034-24-27.551-24-27.551l1.837-1.959c.362-.408.489-.582.49-1.225l2.816-2.449c.847.291 1.387.798 1.837 1.469l7.743-6.562c.204.204.824.408 1.244.179l12.801-12.287l-13.951 9.854l-.49-.367c0-.408.506-.509 0-1.225c-.542-.65-1.347.612-1.469.612c-.122 0-2.019-.67-2.435-1.52l-.136 2.254l-3.551 3.306l-2.694-.122l-3.919 3.796l-.49 1.469l.612 1.225s-2.082 1.837-2.082 1.714c0-.122-.421-.541-.439-.595l1.786-1.609l.245-1.102l-.596-.931c-.181.132-2.465 2.522-2.588 2.277l-6.612-7.469l.367-1.347l-4.163-4.531c-1.518-.524-3.919-.612-4.408 2.694c-.382.777-3.551.122-3.551.122l-1.714.368l-9.673 13.714l5.388 6.49l11.02-13.959l.327-3.954l2.312 2.586c.771.099 1.506.108 2.204-.245l6.529 7.288l-1.087 1.061c.368.408.62.669.988 1.077c.368-.245.718-.539 1.085-.784c.123.164.327.474.45.637c-.547.298-.931.694-1.478.992c-.876-.571-1.721-1.281-1.657-2.412l-3.673 3.061l-.123.612l-10.898 9.061l-.98.123l-.245 2.816l7.102-5.877v-.857l.735.612l5.51-4.408s.367.49.245.49c-.123 0-4.898 4.408-4.898 4.408l-.122.49l-.857.735l-.49-.367l-6.612 5.877h-.979l-3.674 3.674c-.948.082-1.769.183-2.571.734l-6.582 5.809z\"></path></g>'},na:{viewBox:\"0 0 301 201\",innerHTML:'<defs><path id=\"IconifyId-17ca80ef3d5-b8efe2-230\" d=\"M.5.5h300v200H.5z\"></path><path id=\"IconifyId-17ca80ef3d5-b8efe2-231\" d=\"M.5.5h300v200H.5z\"></path></defs><g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#003580\" fill-rule=\"nonzero\" d=\"M300.5.5H.5v200z\"></path><path fill=\"#009543\" fill-rule=\"nonzero\" d=\"M.5 200.5h300V.5z\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-232\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-230\"></use></mask><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#FFF\" stroke-width=\"60\" d=\"M.5 200.5l300-200\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-232)\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-233\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-231\"></use></mask><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#D21034\" stroke-width=\"40\" d=\"M.5 200.5l300-200\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-233)\"></path><path fill=\"#FFCE00\" fill-rule=\"nonzero\" d=\"M60.5 22.166l5.176 14.015l11.49-9.549l-2.525 14.726l14.726-2.525l-9.549 11.49l14.015 5.176l-14.015 5.176l9.549 11.49l-14.726-2.524l2.525 14.725l-11.49-9.549L60.5 88.832l-5.176-14.015l-11.49 9.549l2.524-14.725l-14.725 2.524l9.549-11.49l-14.015-5.176l14.015-5.176l-9.549-11.49l14.725 2.525l-2.524-14.726l11.49 9.549z\"></path><circle cx=\"60.5\" cy=\"55.5\" r=\"18.333\" fill=\"#FFCE00\" fill-rule=\"nonzero\" stroke=\"#003580\" stroke-width=\"2\"></circle></g>'},ne:{viewBox:\"0 0 301 259\",innerHTML:'<g fill=\"none\"><path fill=\"#0DB02B\" d=\"M.5.928h300v257.143H.5z\"></path><path fill=\"#FFF\" d=\"M.5.928h300v171.429H.5z\"></path><path fill=\"#E05206\" d=\"M.5.928h300v85.714H.5z\"></path><circle cx=\"150.5\" cy=\"129.5\" r=\"36.429\" fill=\"#E05206\"></circle></g>'},ng:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#008751\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFF\" d=\"M100.5.5h100v150h-100z\"></path></g>'},ni:{viewBox:\"0 0 300 180\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#003976\" fill-rule=\"nonzero\" d=\"M0 0h300v179.999H0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M0 59.999h300v59.999H0z\"></path><path fill=\"#003976\" fill-rule=\"nonzero\" d=\"M168.751 100.562L150 68.589l-18.752 31.973z\"></path><path fill=\"#FFCF46\" fill-rule=\"nonzero\" d=\"M131.852 100.18L150 69.352l18.148 30.828z\"></path><path fill=\"#003976\" fill-rule=\"nonzero\" d=\"M132.456 99.799L150 70.114l17.544 29.685z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M166.941 99.418L150 70.876l-16.941 28.542z\"></path><path fill=\"#EF3E42\" fill-rule=\"nonzero\" d=\"M148.949 86.588c-.077 0-.143-.011-.231-.011c-.088 0-.055-.033-.055-.209c0-.671.033-1.254.275-1.485c.242-.231.538-.264.748-.264c.209 0 .297-.209.044-.286c-.253-.077-.407-.121-.715-.088c-.011-.407.132-.825.615-.825c.253 0 .407.022.803.022c.396 0 .858.582.858 1.209c0 .77-.022 1.511-.022 1.748c0 .236-.132.297-.346.297c-.215 0-.391-.006-.523-.006s-.22-.016-.22.225c0 .242-.033.484-.033.715c0 .231-.187.363-.506.198c-.318-.163-.472-.416-.692-1.24z\"></path><path fill=\"#FFCF46\" fill-rule=\"nonzero\" d=\"M124.448 85.224l-.257 1.718l.774.116l.232-1.546l.639.096l-.232 1.545l.918.138l.258-1.717l.564.085l-.362 2.42l-3.479-.521l.363-2.421zm.969-2.01l.602.19l.2-.642c.097-.31-.09-.596-.414-.697c-.323-.101-.559.094-.644.367l-.2.642c-.001-.003.217.066.456.14l-.161.626l-1.054-.329l.438-1.404c.176-.563.75-.825 1.351-.638c.537.167.983.717.799 1.309l-.247.789l1.209.378l-.192.614l-2.305-.719l.162-.626zm3.277-3.39c.214-.434-.014-.687-.282-.819l-2.082-1.029l.3-.607l2.074 1.025c.508.251.95.799.511 1.687c-.437.885-1.142.872-1.651.62l-2.074-1.025l.3-.607l2.082 1.029c.269.132.61.155.822-.274zm1.129-3.108l.4.288l.539-.751c.133-.184.076-.415-.159-.585c-.232-.167-.459-.145-.595.044l-.538.751l.353.253l-.41.563l-1.165-.836l.41-.563l.327.234l.502-.699c.186-.259 0-.483-.079-.539c-.129-.092-.4-.121-.55.088l-.502.699l.302.217l-.41.563l-.785-.563l.788-1.096c.386-.538.972-.85 1.458-.501c.218.156.371.427.404.719c.294-.07.562-.074.912.178c.35.251.707.787.196 1.498l-.9 1.254l-.908-.652l.41-.564zm.792-4.852l2.054 2.013l1.093-1.116l.459.45l-1.584 1.617l-2.513-2.464zm2.687-2.506l2.22 2.73l-.776.63l-2.22-2.729zm3.784-1.164c-.114-.183-.461-.418-.924-.128s-.436.808-.067 1.397c.364.581.894.81 1.292.56c.397-.248.41-.693.268-.92l.516-.323c.388.619.176 1.348-.509 1.776c-.689.431-1.537.132-2.097-.763c-.565-.902-.458-1.789.272-2.246c.733-.459 1.472-.143 1.764.322l-.515.325zm9.088-2.792l.137 1.196l.553-.063c.216-.025.82-.192.694-1.297c-.116-1.014-.717-1.029-.933-1.004l-.577.066l.126 1.102l-.646.088c-.098-.857-.192-1.697-.19-1.697l1.303-.15c.428-.049 1.394-.035 1.568 1.485c.107.944-.245 1.905-1.048 1.997l-1.428.163s-.104-.908-.204-1.799l.645-.087zm6.148-1.312l-1.735-.083l-.037.782l1.56.075l-.031.646l-1.56-.075l-.044.928l1.734.083l-.027.571l-2.444-.117l.167-3.515l2.445.116zm5.099.342l.544 2.402l.649-2.018l.663.213l-1.076 3.349l-.636-.204l-.609-2.546l-.685 2.131l-.668-.215l1.076-3.35zm4.015 1.521l-1.492 3.183l-.905-.424l1.492-3.184zm2.699 2.898c.115-.183.176-.596-.286-.888c-.462-.292-.916-.043-1.287.545c-.366.58-.341 1.157.056 1.408c.397.25.802.069.946-.157l.515.325c-.389.618-1.138.744-1.821.313c-.687-.433-.786-1.328-.223-2.221c.568-.9 1.413-1.189 2.141-.73c.732.462.769 1.265.476 1.73l-.517-.325zm10.283 13.443c.283-.245.398-.562.284-.896c-.172-.499-.726-.666-1.392-.438c-.662.227-1.015.716-.834 1.217c.149.42.507.609.951.493l-.223-.65l.519-.178l.411 1.199l-1.693.581l-.132-.384c.112-.039.264-.111.355-.184c-.346-.086-.607-.334-.755-.697c-.306-.755.212-1.659 1.198-1.997c.987-.338 1.828-.014 2.126.856c.236.686-.021 1.403-.632 1.614l-.183-.536zm-.964 3.681c.078.477.411.55.706.502l2.292-.375l.109.668l-2.283.374c-.56.092-1.237-.096-1.397-1.076c-.159-.974.421-1.373.981-1.465l2.283-.374l.109.669l-2.292.375c-.294.048-.585.229-.508.702zm-45.176 17.231l.25.407l.983-1.127l-1.45.374c.002-.001.107.168.217.346l-.515.284l-.296-.478l-.727.188l-.347-.559l3.58-.902l.41.662l-2.403 2.802l-.347-.56l.495-.562l-.366-.591l.516-.284zm1.449 4.232l1.565-2.268l-1.988 1.802l-.439-.484l2.607-2.363l.683.753l-1.595 2.255l2.403-1.362l.683.752l-2.607 2.363l-.438-.484l1.988-1.801l-2.411 1.335zm6.446 1.981l-1.368-1.069l-.482.617l1.231.962l-.398.509l-1.231-.962l-.571.731l1.368 1.07l-.352.45l-1.929-1.507l2.166-2.772l1.929 1.507zm1.291 1.943l.601.337c.19.106.443.031.585-.222c.139-.25.046-.499-.178-.624l-.777-.435l-.457.817l.226.127l-.252.581l-.281-.158l-.666 1.19l-.612-.343l1.718-3.071l1.676.938c.422.236.431.816.186 1.253c-.247.441-.746.54-.911.449c.211.118.308.469.096.85l-.481.86l-.591-.331l.404-.722c.208-.372.089-.565-.215-.735l-.322-.18l.251-.581zm3.811.196l-1.336 3.254l-.925-.38l1.336-3.254zm2.845 2.196c.057-.208-.006-.621-.532-.766c-.527-.145-.889.226-1.073.896c-.182.662.01 1.207.462 1.331c.452.125.788-.167.86-.425l.588.161c-.193.704-.873 1.042-1.652.828c-.784-.215-1.139-1.042-.86-2.06c.281-1.026 1.007-1.548 1.837-1.32c.835.229 1.104.987.958 1.517l-.588-.162zm10.318.329c-.033-.213-.26-.565-.8-.48c-.54.085-.719.571-.61 1.258c.106.678.505 1.096.968 1.023c.464-.073.65-.476.609-.741l.602-.095c.114.721-.368 1.308-1.165 1.434c-.803.126-1.466-.482-1.63-1.525c-.165-1.051.281-1.825 1.132-1.958c.855-.134 1.411.446 1.497.989l-.603.095zm3.812-1.663l-1.653.529l.239.746l1.488-.477l.197.616l-1.488.477l.284.883l1.653-.53l.175.544l-2.33.748l-1.075-3.35l2.33-.748zm1.484-1.254l2.075 1.326l-.957-1.892l.622-.314l1.588 3.14l-.596.301l-2.224-1.384l1.011 1.998l-.626.316l-1.589-3.139zm5.578.833l-1.723-2.368l-.825.6l-.347-.477l2.172-1.579l.347.476l-.83.603l1.723 2.37zm5.163-10.901l2.564 1.303l.708-1.393l.572.291l-1.026 2.018l-3.136-1.594zm-23.343 14.217l.475.05l-.294-1.466l-.587 1.377c0-.002.198.018.406.039l-.089.581l-.56-.057l-.294.691l-.654-.067l1.469-3.387l.775.079l.755 3.613l-.655-.067l-.143-.735l-.692-.071l.088-.58zm23.425-10.236l.28-.386l-1.417-.477l.9 1.196c-.001-.002.115-.163.237-.333l.46.366l-.328.457l.452.599l-.385.534l-2.203-2.962l.455-.632l3.508 1.148l-.384.534l-.709-.242l-.405.565l-.461-.367zm-3.442 2.894l.487-.488c.154-.154.15-.417-.056-.623c-.203-.202-.468-.18-.648.002l-.629.63l.663.662l.183-.183l.49.399l-.228.228l.965.964l-.496.496l-2.49-2.486l1.357-1.359c.342-.342.902-.194 1.257.161c.358.357.317.864.184.998c.171-.172.536-.17.844.138l.697.697l-.479.479l-.585-.584c-.302-.302-.52-.239-.766.007l-.261.261l-.489-.399zm7.422-18.032l-.004.477l1.431-.435l-1.428-.45c.003.001.002.199.001.408l-.587-.031l.002-.563l-.715-.225l.002-.658l3.514 1.131l-.003.779l-3.522 1.104l.002-.657l.718-.215l.002-.695l.587.03zm-3.176-11.912l.23.419l1.036-1.079l-1.466.305c.002-.002.099.172.2.355l-.527.259l-.273-.492l-.735.153l-.319-.575l3.619-.73l.378.681l-2.535 2.684l-.319-.575l.521-.538a120.26 120.26 0 0 0-.338-.608l.528-.259zm-5.157-6.328l.355.32l.625-1.358l-1.285.768c.001-.002.149.131.305.27l-.413.418l-.419-.375l-.644.386l-.49-.438l3.179-1.877l.58.519l-1.513 3.366l-.491-.438l.316-.679l-.518-.463l.413-.419zm-25.651-4.133l.442-.181l-.952-1.154l.133 1.491a19 19 0 0 1 .377-.156l.197.553l-.52.215l.067.747l-.608.251l-.307-3.679l.72-.297l2.374 2.827l-.609.25l-.474-.579l-.642.264l-.198-.552zm-15.595 23.287l-.003-.689c-.001-.218-.192-.4-.482-.399c-.286.002-.457.206-.455.462l.004.89l.937-.005a7.528 7.528 0 0 0-.001-.259l.629-.067l.002.323l1.363-.007l.004.701l-3.519.018l-.01-1.92c-.002-.483.498-.777.999-.779c.505-.003.838.383.838.571c-.001-.242.257-.5.693-.502l.985-.005l.004.677l-.827.004c-.427.002-.536.201-.534.549l.002.369l-.629.068zm44.409-16.908l.43.538c.136.17.399.196.625.015c.224-.179.231-.444.071-.645l-.556-.695l-.731.584l.161.203l-.451.443l-.202-.252l-1.065.851l-.438-.548l2.749-2.196l1.199 1.5c.302.379.092.918-.3 1.231c-.396.316-.895.22-1.013.072c.151.189.109.551-.231.823l-.77.615l-.423-.529l.646-.516c.333-.266.295-.49.078-.762l-.23-.288l.451-.444z\"></path><circle cx=\"126.103\" cy=\"96.647\" r=\"1\" fill=\"#FFCF46\" fill-rule=\"nonzero\"></circle><circle cx=\"173.896\" cy=\"96.647\" r=\"1\" fill=\"#FFCF46\" fill-rule=\"nonzero\"></circle><path fill=\"#B3D2EF\" fill-rule=\"nonzero\" d=\"M142.402 83.677l-.684 1.151l5.453 1.072a5.29 5.29 0 0 1-.019-.359l-4.75-1.864zm1.759-2.966l-.574.971l4.001 1.841c.043-.089.089-.174.138-.257l-3.565-2.555zm-.816 1.377l-.563.948l4.425 1.707a4.47 4.47 0 0 1 .07-.352l-3.932-2.303zm8.942 5.554l6.239 4.392c.585-.024 2.209-.095 2.54-.109l-8.605-4.619a3.936 3.936 0 0 1-.174.336zm-2.546 1.459l-.292 3.014c.169-.003.499-.006.557-.008v-2.99h-.005c-.089 0-.175-.005-.26-.016zm.425-7.28l.735-9.427l-.901-1.518l-.386.649l.322 10.291l.063-.003c.056.001.112.004.167.008zm11.554 8.802l-1.424-2.403l-7.588-1.618c-.042.161-.09.316-.147.466l9.159 3.555zm-2.469-4.162l-.827-1.391l-5.594.813a4.528 4.528 0 0 1-.064.457l6.485.121zm-1.267-2.133l-.621-1.048l-4.542 1.678c.016.142.024.285.027.432l5.136-1.062zm-1.198-2.017l-.432-.728l-3.701 2.555c.036.118.068.239.094.362l4.039-2.189zm-.819-1.383l-.547-.921l-3.086 3.366c.062.112.118.228.17.349l3.463-2.794zm-.765-1.286l-.366-.616l-2.889 3.776c.068.082.134.17.197.261l3.058-3.421zm-.681-1.149l-.366-.616l-2.735 4.424c.078.057.153.119.225.185l2.876-3.993zm-.828-1.394l-.516-.871l-2.148 5.833c.085.042.167.089.248.141l2.416-5.103zm-1.171-1.97l-.706-1.19l-1.383 7.918c.075.015.149.034.222.057l1.867-6.785zm-3.847-2.021l-.745 1.254l1.519 7.521c.073-.018.147-.033.223-.044l-.997-8.731zm-1.386 2.334l-.549.926l2.222 5.697c.055-.028.111-.054.168-.077l-1.841-6.546zm-1.069 1.8l-.432.728l2.8 4.323c.049-.035.098-.07.148-.101l-2.516-4.95zm-.893 1.507l-.726 1.223l3.486 2.787c.054-.063.111-.123.169-.18l-2.929-3.83zm-4.711 7.784l-.924 1.671l7.637-1.464a4.847 4.847 0 0 1-.065-.251l-6.648.044zm-2.155 3.787l-1.042 1.756l10.091-4.835a4.458 4.458 0 0 1-.094-.236l-8.955 3.315zm4.189.495l.432.687l4.671-3.793a3.792 3.792 0 0 1-.096-.166l-5.007 3.272zm.824 1.308l.013.019c.394.003.968.012 1.065.012l3.553-3.961a3.27 3.27 0 0 1-.138-.169l-4.493 4.099zm3.365-1.509c.283-.031.72-.088.844-.101l.907-1.874a2.893 2.893 0 0 1-.236-.194l-1.515 2.169zm1.319.278c.115.247.377.76.415.821l.685-2.721a2.397 2.397 0 0 1-.272-.113l-.828 2.013zm2.543 1.204c.25-.006.65-.008.796-.011l-.884-3.053a2.235 2.235 0 0 1-.27.058l.358 3.006zm1.611-.023c.18-.003.717.001 1.007.004l-2.228-3.238c-.09.048-.184.09-.279.127l1.5 3.107zm1.627.007c.359.002 1.145-.006 1.378-.003l-3.712-3.595a2.372 2.372 0 0 1-.148.121l2.482 3.477zm1.943-.002c.422-.004 1.257-.01 1.494-.015l-5.285-4.119a3.29 3.29 0 0 1-.25.308l4.041 3.826z\"></path><path fill=\"#4E2F91\" fill-rule=\"nonzero\" d=\"M160.439 88.465a10.724 10.724 0 0 1 .151 3.592l.217-.006a11.114 11.114 0 0 0-.052-3.054l-.316-.532zm-3.791-6.387a10.841 10.841 0 0 0-6.649-2.265c-2.503 0-4.808.844-6.647 2.264l-.32.539a10.633 10.633 0 0 1 6.967-2.587c2.663 0 5.098.976 6.969 2.589l-.32-.54zm-17.089 6.389l-.316.532a10.996 10.996 0 0 0-.023 3.259l.218.003a10.667 10.667 0 0 1-.113-1.557c-.001-.767.08-1.516.234-2.237z\"></path><path fill=\"#003976\" fill-rule=\"nonzero\" d=\"M160.756 88.998a11.032 11.032 0 0 1 .052 3.053h.217a11.29 11.29 0 0 0 .013-2.578l-.282-.475zm-4.388-7.393A11.05 11.05 0 0 0 150 79.598c-2.369 0-4.564.742-6.367 2.006l-.28.472A10.843 10.843 0 0 1 150 79.812c2.504 0 4.809.845 6.649 2.265l-.281-.472zm-17.125 7.394l-.281.475a11.085 11.085 0 0 0 .04 2.786l.217-.002a10.926 10.926 0 0 1 .024-3.259z\"></path><path fill=\"#009CDC\" fill-rule=\"nonzero\" d=\"M161.038 89.473a11.12 11.12 0 0 1-.013 2.579l.217.001a11.347 11.347 0 0 0 .049-2.153l-.253-.427zm-4.927-8.3a11.276 11.276 0 0 0-6.112-1.79c-2.251 0-4.348.657-6.111 1.789l-.256.432a11.052 11.052 0 0 1 6.367-2.006c2.369 0 4.565.742 6.368 2.007l-.256-.432zm-17.15 8.301l-.253.426a11.456 11.456 0 0 0 .077 2.362l.217-.002a11.268 11.268 0 0 1-.041-2.786z\"></path><path fill=\"#00AD8E\" fill-rule=\"nonzero\" d=\"M161.291 89.899a11.285 11.285 0 0 1-.049 2.153l.217-.001a11.759 11.759 0 0 0 .071-1.753l-.239-.399zm-5.415-9.122a11.485 11.485 0 0 0-5.877-1.61a11.48 11.48 0 0 0-5.876 1.609l-.235.396a11.27 11.27 0 0 1 6.111-1.789c2.251 0 4.349.657 6.112 1.79l-.235-.396zM138.708 89.9l-.237.399a11.753 11.753 0 0 0 .097 1.972l.216-.009a11.467 11.467 0 0 1-.076-2.362z\"></path><path fill=\"#FFF200\" fill-rule=\"nonzero\" d=\"M161.529 90.301a11.61 11.61 0 0 1-.072 1.756l.217-.005c.051-.443.077-.893.077-1.348l-.001-.031l-.221-.372zm-5.875-9.899A11.693 11.693 0 0 0 150 78.953a11.69 11.69 0 0 0-5.653 1.449l-.223.375A11.478 11.478 0 0 1 150 79.168c2.147 0 4.155.589 5.877 1.61l-.223-.376zm-17.182 9.897l-.223.375l-.001.029c0 .527.035 1.048.102 1.557l.219.011a11.589 11.589 0 0 1-.097-1.972z\"></path><path fill=\"#FAAB54\" fill-rule=\"nonzero\" d=\"M161.75 90.673l.001.031c0 .455-.026.905-.076 1.347l.216.001c.038-.337.062-.679.071-1.024l-.212-.355zm-6.308-10.627a11.91 11.91 0 0 0-5.443-1.309c-1.96 0-3.809.473-5.442 1.308l-.211.356a11.7 11.7 0 0 1 5.653-1.449c2.05 0 3.977.526 5.654 1.449l-.211-.355zm-17.193 10.629l-.211.354c.011.417.043.828.095 1.233l.217-.001a11.93 11.93 0 0 1-.102-1.557l.001-.029z\"></path><path fill=\"#ED1C2E\" fill-rule=\"nonzero\" d=\"M161.961 91.029c-.009.345-.033.686-.071 1.023l.217-.001c.025-.226.043-.454.056-.682l-.202-.34zm-6.72-11.323A12.134 12.134 0 0 0 150 78.522c-1.877 0-3.653.426-5.24 1.183l-.202.34A11.919 11.919 0 0 1 150 78.737c1.96 0 3.81.473 5.443 1.309l-.202-.34zm-17.404 11.662c.016.3.042.599.08.893l.217.001a11.919 11.919 0 0 1-.095-1.233l-.202.339z\"></path><path fill=\"#003976\" fill-rule=\"nonzero\" d=\"M143.883 92.8c.269.011 1.03.022 1.198.022c.168 0 .358.187-.011.187s-.952.022-1.041.022l-.146-.231zm.404.571c.179 0 .515-.033.627-.022c.112.011.168.099 0 .121c-.168.022-.381.066-.537.077l-.09-.176zm4.804-.638c.168.033 1.131-.011 1.299-.011v.177c-.403.011-1.03.077-1.198.066l-.101-.232zm4.804-.187c.269 0 .75.022.907.022l-.011.143c-.291-.011-.717.043-.806.043l-.09-.208zm3.17.044c.291-.022.907.011 1.075.011l-.012.165c-.347.011-.772.022-.941.022l-.122-.198zm6.511 1.159c-.397.016-.962.067-1.102.094c-.168.033-.235.22.056.176c.231-.035.834-.062 1.163-.073l-.117-.197zm-27.24.148c.373.009 1.228.082 1.668.156l.448-.242a25.74 25.74 0 0 0-1.98-.143l-.136.229zm.379-.638l-.118.2c.591-.136 1.676-.087 2.259.056l.202-.187c-.436-.215-1.781-.165-2.343-.069zm.34-.575l-.214.361c.739-.164 2.063-.303 2.719-.146l.19-.177c-.721-.249-2.117-.1-2.695-.038zm3.404 6.041c-.14-.035.048-.139.233-.219c.806-.352 1.837-.154 2.33-.055c.484.097.427.205.287.25a59.74 59.74 0 0 0 1.601-.038c-.366-.012-.79-.095-1.552-.344c-1.075-.352-2.508-.154-3.001 0c-.403.126-.881.207-1.384.125c.472.133.992.243 1.486.281zm22.013-6.836c-.803-.006-3.042.101-3.795.14c-.851.044-4.658.066-5.599.044c-.941-.022-5.533.088-6.876.088c-1.282 0-7.497-.06-8.786-.085l-.192.324c.74-.01 4.246.046 5.416.025c1.254-.022 4.502.022 5.622 0s3.785-.11 4.301-.088c.515.022 4.255 0 4.95-.044c.667-.042 3.15-.105 5.111-.148l-.152-.256zm.302.508a44.14 44.14 0 0 0-1.834.083c-.18.022-.369.187.056.154c.344-.026 1.415-.024 1.905-.023l-.127-.214zm.264.445c-.516.003-1.537.049-1.684.078c-.168.033-.28.253.034.187c.256-.054 1.289-.072 1.762-.076l-.112-.189zm.296.498c-.471.019-1.266.109-1.42.118c-.18.011-.347.187 0 .176c.282-.008 1.148-.083 1.529-.111l-.109-.183zm2.198 3.705c-.448.027-1.049-.083-1.301-.178c-.291-.11-.537-.154-.156.066c.336.194 1.159.353 1.594.343l-.137-.231zm.32.54c-.498.012-1.54-.15-2.27-.498c-.829-.396-1.902-.25-2.823-.132c-1.724.22-2.598.11-4.009-.22c-1.411-.33-3.315-.286-3.964-.022c-.649.264-.515.352.179.22c.695-.132 2.307-.33 3.696.044c1.389.374 2.71.44 3.561.374s1.546-.154 1.904-.132c.358.022.314.136 0 .176c-2.576.33-3.651.418-5.129 0c-1.479-.418-2.845-.264-3.831-.132c-.985.132-1.971.066-2.889-.286c-.919-.352-1.638-.468-2.195-.286c-.201.066-.269.176.067.132c.336-.044 1.276-.044 2.083.33c.806.374 2.038.462 3.136.308c1.097-.154 2.441-.33 3.606.154c1.165.483 2.508.374 3.696.198c1.187-.176 1.993-.396 2.934-.154c.83.213 1.955.272 2.424.223l-.176-.297z\"></path><path fill=\"#003976\" fill-rule=\"nonzero\" d=\"M166.167 98.115c-.53.092-1.89-.01-2.473-.149c-.649-.154-1.703-.022-3.203.264c-1.501.286-3.135-.198-3.987-.396c-.851-.198-1.903-.22-2.665-.132c-.761.088-1.971.242-3.696-.264c-2.138-.627-3.27-.352-3.807-.198c-.537.154-1.68.154-2.889-.176c-1.209-.33-2.307-.242-3.046-.044c-.739.198-1.859.352-2.889.044c-.952-.285-2.172-.287-2.917-.234l-.148.251c.647-.111 2.143-.147 3.043.203c1.076.418 2.532.245 3.024.088c1.097-.352 1.814-.286 2.889.044c.758.232 2.185.275 3.113.044c1.501-.374 2.352-.154 3.584.242c1.232.396 2.934.44 3.853.374c.918-.066 1.702-.286 2.822.066s2.62.594 3.919.286s2.464-.352 3.069-.242c.573.104 1.608.248 2.515.113l-.111-.184z\"></path><path fill=\"#003976\" fill-rule=\"nonzero\" d=\"M166.418 98.537c-.394.053-1.304.075-2.163-.042c-1.397-.192-2.424-.085-3.337.132c-1.389.33-2.173.22-3.292-.044c-1.12-.264-2.15-.33-3.404-.198s-3.113-.088-4.547-.462c-1.433-.374-2.598-.22-3.651.044c-1.052.264-2.687-.022-3.203-.264c-.515-.242-1.277-.264-2.307-.044c-1.03.22-1.949.154-3.002-.132c-.982-.267-2.277-.38-3.191-.233l-.103.173c.673-.076 2.356-.122 3.317.236c1.12.418 2.374.286 3.024.154c.649-.132 1.772-.18 2.262.066c1.052.528 2.713.407 3.315.242c1.366-.374 2.374-.374 3.539-.022s3.292.572 4.614.396c.892-.119 2.24-.066 3.337.242a6.165 6.165 0 0 0 3.405.022c1.232-.33 2.575-.242 3.315-.132c.704.104 1.267.189 2.191.063l-.119-.197z\"></path><path fill=\"#003976\" fill-rule=\"nonzero\" d=\"M166.724 99.053c-.431.038-1.823.052-2.425-.009c-.65-.066-1.703-.22-2.867.11c-1.165.33-2.822.286-3.74-.022c-.918-.308-2.105-.418-3.203-.264c-1.098.154-2.486.264-4.144-.22c-1.657-.484-2.307-.572-4.053-.11c-.74.195-4.301.154-5.309.198c-1.008.044-2.262-.33-3.024-.638c-.72-.291-2.599-.424-3.956-.271l-.157.264c1.273-.264 2.933-.03 3.576.337c-.814-.196-2.77-.108-3.822.078l-.233.393c1.663-.364 4.138-.271 5.04-.075c1.008.22 2.665.396 3.74.132c1.037-.255 2.697.064 3.718.462h4.657c-.73-.446-1.589-.194-2.215-.132c-.672.065-1.322-.089-1.635-.286c-.313-.198 0-.176.538-.33c1.557-.446 2.776.081 3.68.748h3.663c.99-.669 1.867-.342 2.378-.154c.129.047.411.103.776.154h3.861c.941-.374 2.173-.242 2.777-.154a7.74 7.74 0 0 0 2.499-.01l-.12-.201z\"></path><path fill=\"#00AD8E\" fill-rule=\"nonzero\" d=\"M164.055 94.557c-2.374-.038-3.381-1.438-4.258-2.901c-.448.022-1.098.089-1.523.066c-.067.22-.358.968-.538 1.54c-.515-.33-1.052-1.43-1.366-2.045c-.246 0-.761.022-1.165-.022c-.157.33-.627 1.407-.828 1.847c-.381-.396-1.299-1.737-1.635-2.265c-.426-.022-1.052.066-1.545.066c-.269.791-.806 1.957-1.479 2.638c-.493-.483-1.433-2.243-1.747-2.991c-.313 0-.941.132-1.299.132c-.313.615-1.209 2.463-1.747 3.43c-.896-.924-2.016-2.815-2.778-4.09l-1.075.088c-1.352 3.767-3.68 4.284-5.084 4.431l-1.062 1.789c.544.004 1.463.097 2.136.311c.762.242 2.173.417 3.27.022c1.098-.396 2.262-.33 3.404-.11c1.142.22 3.069.352 4.748-.461c2.15 1.077 3.517.483 4.569.264c1.053-.22 2.508-.374 3.629-.022c1.477.464 3.378.464 4.771.088c1.684-.455 2.693.427 3.958.482l-1.356-2.287z\"></path><path fill=\"#FFE01B\" fill-rule=\"nonzero\" d=\"M141.073 90.051c.089 2.001 1.232 4.096 4.099 6.602c.18.011.458.006.643 0c-.761-.748-2.48-2.622-3.062-3.535a3.567 3.567 0 0 1-.045-.429c1.579 1.792 2.743 3.177 4.244 3.837c.271-.049.642-.14.887-.231c-2.493-1.286-3.854-3.177-5.691-6.333c-.359.034-.818.056-1.075.089zm10.633.769c-.426 1.297-.935 2.529-1.674 3.167c.123.143.313.297.448.428c.313-.242.717-.715.817-.825c.19.088.258.462-.247 1.319c.65.44 1.747 1.048 2.531 1.289c-.655.099-1.438.327-1.792.382c-1.433-1.034-2.564-1.737-3.662-3.606c-.157.703-.05 1.041.448 1.605c.448.506 1.154 1.295 2.497 2.075c-.802.023-1.643-.145-2.587-.623c-.537-.902-1.612-2.925-1.814-5.409c.384-.008.939-.124 1.299-.132c.404.899 1.193 2.392 1.747 2.991c.474-.478 1.112-1.534 1.479-2.638c.134-.004.438-.017.51-.023zm3.889.399c-.135.648-.58 1.646-.893 2.185c-.09-.099-.244-.253-.325-.363l.828-1.847c.102.009.317.031.39.025zm-.781 2.646c.123.067.347.231.437.275c.258-.396.313-.715.246-1.308c-.303.242-.336.792-.683 1.033zm2.922-.604c.123.11.269.209.381.286c.224-.615.482-1.407.549-1.825a3.008 3.008 0 0 1-.392 0c-.227.64-.47 1.319-.538 1.539z\"></path><path d=\"M166.941 99.418L150 70.876l-16.941 28.542z\"></path></g>'},nl:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#21468B\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" d=\"M.5.5h300v133.333H.5z\"></path><path fill=\"#AE1C28\" d=\"M.5.5h300v66.667H.5z\"></path></g>'},no:{viewBox:\"0 0 301 219\",innerHTML:'<g fill=\"none\"><path fill=\"#EF2B2D\" d=\"M.5.409h300v218.182H.5z\"></path><path fill=\"#FFF\" d=\"M82.318.409h54.545v218.182H82.318z\"></path><path fill=\"#FFF\" d=\"M.5 82.227h300v54.545H.5z\"></path><path fill=\"#002868\" d=\"M95.955.409h27.273v218.182H95.955z\"></path><path fill=\"#002868\" d=\"M.5 95.863h300v27.273H.5z\"></path></g>'},np:{viewBox:\"0 0 301 380\",innerHTML:'<g fill=\"none\"><path fill=\"#003893\" d=\"M.5 380V0l300 188.402H102.37L293.418 380z\"></path><path fill=\"#DC143C\" d=\"M7.174 181.741h270.184L7.174 12.06v361.276h270.184L7.174 102.38z\"></path><path fill=\"#FFF\" d=\"M20.907 118.111c11.681 29.805 45.242 44.471 74.962 32.757a57.903 57.903 0 0 0 32.663-32.757c0 29.805-24.093 53.967-53.813 53.967c-29.719 0-53.812-24.162-53.812-53.967\"></path><ellipse cx=\"74.72\" cy=\"143.224\" fill=\"#FFF\" rx=\"25.041\" ry=\"25.114\"></ellipse><path fill=\"#FFF\" d=\"M84.303 120.022l-2.798-11.005l-6.785 9.093m17.707 7.356l1.614-11.241l-9.738 5.797m13.552 13.592l5.781-9.766l-11.209 1.619m7.335 17.757l9.068-6.804l-10.974-2.806m-.001 19.221l10.974-2.806l-9.068-6.804m-7.334 17.757l11.209 1.619l-5.781-9.766m-32.718-32.813l2.798-11.005l6.785 9.093\"></path><path fill=\"#FFF\" d=\"M57.013 125.466l-1.614-11.241l9.739 5.797m-13.554 13.592l-5.781-9.766l11.21 1.619\"></path><path fill=\"#FFF\" d=\"M49.678 143.224l-9.068-6.804l10.974-2.806m0 19.221l-10.974-2.806l9.068-6.804m-3.868 84.097l2.98 24.213l-24.143-2.989l14.652 19.475l-22.399 9.518l22.399 9.518l-14.652 19.475l24.143-2.989l-2.98 24.212l19.419-14.694l9.491 22.463l9.491-22.463l19.419 14.694l-2.98-24.212l24.144 2.989l-14.654-19.475l22.4-9.518l-22.4-9.518l14.654-19.475l-24.144 2.989l2.98-24.213l-19.419 14.695l-9.491-22.463l-9.491 22.463z\"></path></g>'},nr:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#002B7F\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFC61E\" d=\"M.5 69.25h300v12.5H.5z\"></path><path fill=\"#FFF\" d=\"M75.5 131.75l-3.235-12.926L63 128.4l3.661-12.812l-12.812 3.661l9.577-9.265L50.5 106.75l12.926-3.235l-9.577-9.265l12.812 3.661L63 85.1l9.265 9.576L75.5 81.75l3.235 12.926L88 85.1l-3.661 12.812l12.812-3.661l-9.577 9.265l12.926 3.234l-12.926 3.235l9.577 9.265l-12.812-3.661L88 128.4l-9.265-9.576z\"></path></g>'},nu:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\" transform=\"translate(1 1)\"><path fill=\"#FFF200\" d=\"M0 0h300v150H0z\"></path><path fill=\"#005A9B\" stroke=\"#000\" stroke-width=\"0.26\" d=\"M0 0h149.898v74.995H0z\"></path><path fill=\"#FFF\" stroke=\"#000\" stroke-width=\"0.26\" d=\"M0 24.99h31.637L0 9.114V0h18.101l44.255 22.061V0h24.921v22.061L131.533 0h18.365v9.114L117.997 24.99h31.901v25.009h-31.901l31.901 15.876v9.117h-18.365L87.277 52.928v22.064H62.356V52.928L18.101 74.992H0v-9.117l31.637-15.876H0z\"></path><path fill=\"#ED1C2E\" stroke=\"#000\" stroke-linejoin=\"bevel\" stroke-width=\"0.26\" d=\"M138.015 0L88.018 25.007h11.969L149.898 0zm11.883 74.995L99.934 49.999h12.021l37.943 19.035zM50.093 25.007L0 0v5.973l38.02 19.034zm-.103 24.992L0 74.995h11.962l49.997-24.996z\"></path><path fill=\"#ED1C2E\" stroke=\"#000\" stroke-width=\"0.26\" d=\"M0 30.179h67.665V0h14.643v30.179h67.59v14.644h-67.59v30.172H67.665V44.823H0z\"></path><circle cx=\"74.975\" cy=\"37.443\" r=\"12.588\" fill=\"#005A9B\" stroke=\"#000\" stroke-width=\"0.26\"></circle><path fill=\"#FFF200\" stroke=\"#000\" stroke-width=\"0.13\" d=\"M31.232 32.506l-1.22 3.794h-4.015l3.26 2.361l-1.252 3.79l3.227-2.355l3.228 2.355l-1.236-3.822l3.244-2.313h-3.999zM74.99 7.25l1.221 3.794h4.014l-3.26 2.361l1.253 3.79l-3.228-2.355l-3.228 2.355l1.236-3.822l-3.243-2.313h3.998zm0 50.068l1.221 3.794h4.014l-3.26 2.36l1.253 3.791l-3.228-2.356l-3.228 2.356l1.236-3.823l-3.243-2.312h3.998zm-.015-31.198l-2.519 7.828h-8.284l6.728 4.871l-2.585 7.822l6.66-4.86l6.66 4.86l-2.55-7.888l6.693-4.772h-8.251zm43.752 6.386l1.22 3.794h4.015l-3.26 2.361l1.252 3.79l-3.227-2.355l-3.228 2.355l1.236-3.822l-3.244-2.313h3.999z\"></path></g>'},nz:{viewBox:\"0 0 301 151\",innerHTML:'<defs><path id=\"IconifyId-17ca80ef3d5-b8efe2-234\" d=\"M.5.5h150v75H.5z\"></path><path id=\"IconifyId-17ca80ef3d5-b8efe2-235\" d=\"M.5.5l75 37.5H.5V.5zm75 0h75L75.5 38V.5zm0 37.5h75v37.5L75.5 38zm0 0v37.5H.5l75-37.5z\"></path></defs><g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#00247D\" fill-rule=\"nonzero\" d=\"M.5.5h300v150H.5z\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-236\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-234\"></use></mask><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#FFF\" stroke-width=\"15\" d=\"M.5.5l150 75m-150 0l150-75\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-236)\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-237\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-235\"></use></mask><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#CC142B\" stroke-width=\"10\" d=\"M.5.5l150 75m-150 0l150-75\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-237)\"></path><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#FFF\" stroke-width=\"25\" d=\"M75.5.5v75M.5 38h150\"></path><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#CC142B\" stroke-width=\"15\" d=\"M75.5.5v75M.5 38h150\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M245.108 53.043l6.242 4.535l-2.384 7.338l6.242-4.535l6.242 4.535l-2.384-7.338l6.242-4.535h-7.716l-2.384-7.338l-2.384 7.338z\"></path><path fill=\"#CC142B\" fill-rule=\"nonzero\" d=\"M248.958 54.294l3.863 2.806l-1.476 4.541l3.863-2.806l3.863 2.806l-1.475-4.541l3.862-2.806h-4.774l-1.476-4.541l-1.475 4.541z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M214.15 26.812l7.015 5.096l-2.68 8.247l7.015-5.097l7.015 5.097l-2.679-8.247l7.014-5.096h-8.671l-2.679-8.246l-2.679 8.246z\"></path><path fill=\"#CC142B\" fill-rule=\"nonzero\" d=\"M218 28.063l4.635 3.367l-1.77 5.45l4.635-3.368l4.635 3.368l-1.77-5.45L233 28.063h-5.729l-1.771-5.449l-1.771 5.449z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M179.491 61.683l7.014 5.096l-2.679 8.247l7.015-5.097l7.015 5.097l-2.68-8.247l7.015-5.096h-8.671l-2.679-8.246l-2.68 8.246z\"></path><path fill=\"#CC142B\" fill-rule=\"nonzero\" d=\"M183.341 62.934l4.635 3.367l-1.771 5.45l4.636-3.368l4.635 3.368l-1.77-5.45l4.635-3.367h-5.73l-1.77-5.449l-1.771 5.449z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M212.9 116.406l7.787 5.658l-2.974 9.154l7.787-5.658l7.787 5.658l-2.974-9.154l7.787-5.658h-9.625l-2.975-9.155l-2.974 9.155z\"></path><path fill=\"#CC142B\" fill-rule=\"nonzero\" d=\"M216.75 117.657l5.408 3.929l-2.066 6.357l5.408-3.929l5.408 3.929l-2.066-6.357l5.408-3.929h-6.684L225.5 111.3l-2.066 6.357z\"></path></g>'},om:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#DB161B\" fill-rule=\"nonzero\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M75.5.5h225v50h-225z\"></path><path fill=\"green\" fill-rule=\"nonzero\" d=\"M75.5 100.5h225v50h-225z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.142\" d=\"M17.767 26.16h8.06c.444 0 .804.338.804.754v3.797c0 .416-.36.754-.804.754h-8.06c-.444 0-.804-.337-.804-.754v-3.797c.001-.416.36-.754.804-.754z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.132\" d=\"M17.974 26.38h7.646c.421 0 .763.309.763.691v3.48c0 .382-.341.691-.763.691h-7.646c-.421 0-.763-.309-.763-.691v-3.48c.001-.382.342-.691.763-.691z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.083\" d=\"M21.476 27.708l.463.015l.021.21l.379.193l.295-.24l.357.192l-.336.21l.084.29l.421-.015v.387l-.336-.018l-.168.243l.379.275l-.295.225l-.316-.243l-.463.098l.021.355l-.505.032l-.063-.34l-.421-.177l-.232.243l-.358-.177l.211-.275l-.253-.177h-.358l-.021-.5l.358.032l.252-.29l-.295-.225l.379-.26l.273.21l.463-.063z\"></path><circle cx=\"21.616\" cy=\"28.755\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.5\"></circle><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.132\" d=\"M18.451 26.603l-.744.662m1.24-.662l-.744.662m1.239-.662l-.743.662m1.239-.662l-.744.662m1.24-.662l-.744.662m1.239-.662l-.743.662m1.24-.662l-.744.662m1.239-.662l-.744.662m1.24-.662l-.744.662m1.24-.662l-.744.662m1.239-.662l-.744.662m1.241-.662l-.744.662m-1.24-.662l-.744.662m3.223-.662l-.744.662m1.24-.662l-.744.662m1.24-.662l-.744.662m1.239-.662l-.744.662m.001-.662l.744.662m-1.24-.662l.744.662m-1.24-.662l.744.662m-1.24-.662l.744.662m-1.24-.662l.744.662m-1.239-.662l.744.662m-1.24-.662l.744.662m-1.239-.662l.744.662m-1.241-.662l.744.662m-1.239-.662l.744.662m-1.24-.662l.744.662m-1.24-.662l.744.662m1.24-.662l.744.662m-3.223-.662l.744.662m-1.24-.662l.743.662m-1.239-.662l.744.662m-1.24-.662l.744.662m0 3.092l-.744.665m1.24-.665l-.744.665m1.239-.665l-.743.665m1.239-.665l-.744.665m1.24-.665l-.744.665m1.239-.665l-.743.665m1.24-.665l-.744.665m1.239-.665l-.744.665m1.24-.665l-.744.665m1.24-.665l-.744.665m1.239-.665l-.744.665m1.241-.665l-.744.665m-1.24-.665l-.744.665m3.223-.665l-.744.665m1.24-.665l-.744.665m1.24-.665l-.744.665m1.239-.665l-.744.665m.001-.665l.744.665m-1.24-.665l.744.665m-1.24-.665l.744.665m-1.24-.665l.744.665m-1.24-.665l.744.665m-1.239-.665l.744.665m-1.24-.665l.744.665m-1.239-.665l.744.665m-1.241-.665l.744.665m-1.239-.665l.744.665m-1.24-.665l.744.665m-1.24-.665l.744.665m1.24-.665l.744.665m-3.223-.665l.744.665m-1.24-.665l.743.665m-1.239-.665l.744.665m-1.24-.665l.744.665\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.142\" d=\"M58.233 26.16h-8.06c-.444 0-.804.338-.804.754v3.797c0 .416.36.754.804.754h8.06c.444 0 .804-.337.804-.754v-3.797c-.001-.416-.361-.754-.804-.754z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.132\" d=\"M58.026 26.38H50.38c-.421 0-.763.309-.763.691v3.48c0 .382.342.691.763.691h7.646c.421 0 .763-.309.763-.691v-3.48c0-.382-.342-.691-.763-.691z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.083\" d=\"M54.524 27.708l-.463.015l-.021.21l-.379.193l-.295-.24l-.358.192l.337.21l-.084.29l-.421-.015v.387l.337-.018l.168.243l-.379.275l.294.225l.316-.243l.463.098l-.021.355l.505.032l.063-.34l.421-.177l.231.243l.358-.177l-.21-.275l.252-.177h.358l.021-.5l-.358.032l-.252-.29l.295-.225l-.379-.26l-.274.21l-.463-.063z\"></path><circle cx=\"54.384\" cy=\"28.755\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.5\"></circle><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.132\" d=\"M57.55 26.603l.743.662m-1.24-.662l.744.662m-1.239-.662l.744.662m-1.24-.662l.743.662m-1.239-.662l.744.662m-1.239-.662l.744.662m-1.241-.662l.744.662m-1.239-.662l.744.662m-1.24-.662l.744.662m-1.24-.662l.744.662m-1.239-.662l.744.662m-1.24-.662l.744.662m1.239-.662l.744.662m-3.223-.662l.744.662m-1.24-.662l.744.662m-1.239-.662l.744.662m-1.24-.662l.744.662m0-.662l-.744.662m1.239-.662l-.744.662m1.24-.662l-.744.662m1.24-.662l-.744.662m1.24-.662l-.744.662m1.239-.662l-.744.662m1.24-.662l-.744.662m1.24-.662l-.744.662m1.239-.662l-.744.662m1.241-.662l-.744.662m1.239-.662l-.744.662m1.24-.662l-.744.662m-1.239-.662l-.744.662m3.222-.662l-.743.662m1.239-.662l-.744.662m1.24-.662l-.744.662m1.24-.662l-.743.662m0 3.092l.743.665m-1.24-.665l.744.665m-1.239-.665l.744.665m-1.24-.665l.743.665m-1.239-.665l.744.665m-1.239-.665l.744.665m-1.241-.665l.744.665m-1.239-.665l.744.665m-1.24-.665l.744.665m-1.24-.665l.744.665m-1.239-.665l.744.665m-1.24-.665l.744.665m1.239-.665l.744.665m-3.223-.665l.744.665m-1.24-.665l.744.665m-1.239-.665l.744.665m-1.24-.665l.744.665m0-.665l-.744.665m1.239-.665l-.744.665m1.24-.665l-.744.665m1.24-.665l-.744.665m1.24-.665l-.744.665m1.239-.665l-.744.665m1.24-.665l-.744.665m1.24-.665l-.744.665m1.239-.665l-.744.665m1.241-.665l-.744.665m1.239-.665l-.744.665m1.24-.665l-.744.665m-1.239-.665l-.744.665m3.222-.665l-.743.665m1.239-.665l-.744.665m1.24-.665l-.744.665m1.24-.665l-.743.665\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.212\" d=\"M32.128 37.28C20.1 49.042 14.968 50.53 17.377 51.478c2.408.948 10.154-5.123 18.214-13.188c8.06-8.063 12.995-15.239 10.587-16.187c-2.408-.948-1.258 2.666-14.05 15.177z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.165\" d=\"M22.002 45.827l4.213 1.105c-3.965 3.758-8.427 5.305-9.666 4.643c-1.24-.662 2.231-2.21 5.453-5.748h0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.165\" d=\"M22.002 46.27l3.47.885c-3.863 3.613-7.684 4.64-8.673 4.2c-.994-.442 2.064-1.685 5.203-5.085z\"></path><path stroke=\"#DB161B\" stroke-width=\"0.165\" d=\"M34.947 36.765c-.01.058-.038.31-.063.41c0 .14-.015.245-.03.355c-.04.095-.033.182-.155.218a.468.468 0 0 1-.245.192a1.37 1.37 0 0 1-.31.163a.648.648 0 0 1-.368.028c-.11-.068-.188-.135-.277-.19c-.022-.087-.04-.215-.063-.3c.032.088.058.228.063.353c-.013.138-.063.198-.123.3m.432.299a.384.384 0 0 1-.03-.028c.073.065.042.035-.125-.052a1.485 1.485 0 0 0-.4-.11h-.43c-.167 0-.28.022-.4.055c-.087.077-.217.12-.308.19a.49.49 0 0 0-.185.218c-.085.075-.14.19-.217.248c-.033.125-.105.12-.152.218c.145.01.262.027.337.107c.13.06-.107-.057-.153-.107c-.102-.028-.127-.055-.277-.055c-.14-.04-.225.032-.37.055c-.083.042-.107.055-.215.055m1.262.571c-.063.002-.35.05-.462 0a.456.456 0 0 1-.278-.193c-.038-.072 0 .133 0 .22c-.012.16-.067.162-.152.272c-.09.05-.185.123-.277.162a.988.988 0 0 1-.278.137c-.092.038-.202.078-.277.135c-.103.065-.093.145-.152.245c.01.135.035.21.122.275c.035.09.118.183.185.245c.075.125.16.182-.032.218c-.105.04-.163.007-.275 0m-.064.191a6.446 6.446 0 0 1-.463-.135h-.43c-.167.01-.2.055-.34.107a.86.86 0 0 1-.277.193c-.065.075-.195.202-.245.3a.985.985 0 0 0-.063.355c.002.157.05.185.063.327c.035.115.09.223.185.325c.013.035.022.045.06.055m.043.358c-.012 0-.043.07-.087.13c-.098.1-.11.107-.263.107c-.135-.005-.123-.052-.217-.088c-.045-.067-.103-.122-.152-.215c-.035-.055-.068-.143-.11-.193c-.04-.065-.09-.112-.132-.172c-.04-.018-.055-.035-.107-.042c.125.02.135.063.217.127c.038.063.078.125.11.195c.012.093.042.165.042.28c0 .117 0 .202-.042.3c-.053.055-.09.11-.153.153a1.184 1.184 0 0 0-.155.17c-.067.042-.118.078-.195.13c-.067.037-.137.077-.24.087c-.13-.01-.168-.045-.263-.087c-.083-.06-.147-.098-.22-.15a.714.714 0 0 1-.153-.172c-.117-.03-.192-.018-.262.042a.59.59 0 0 0-.153.15c-.037.018-.095.07-.132.088m.259.05c.035.015.16.103.217.135c.035.113.09.175.107.295c.03.117.028.245.028.377c-.03.137-.088.238-.135.347c-.087.06-.13.1-.245.163a2.395 2.395 0 0 1-.353.028c-.085.027-.245.04-.327 0c-.12-.018-.211-.065-.299-.108c-.101-.057-.162-.11-.272-.162c-.053-.078-.136-.147-.217-.243c-.067-.09-.117-.14-.163-.24c.04.115.101.215.136.323c.062.113.098.155.108.295c.038.113.027.248.027.375c-.012.088-.018.253-.055.323v.083m-2.576.426v.04c0-.105-.003-.052.043.155c.083.093.276.117.438.078c.142-.103.137-.183.394-.233c.248.015.342.08.481.155c.165.073.24.11.35.272c.054.133.084.223-.087.273a1.14 1.14 0 0 1-.481.157c-.202 0-.348-.023-.438.077c-.139.127-.131.205-.131.427c-.047.07-.056.275-.087.353a.835.835 0 0 1-.394.077c-.047-.12-.1-.337-.131-.467c-.034-.14-.045-.335-.131-.43a1.129 1.129 0 0 0-.306-.272a.553.553 0 0 0-.263-.155c.172.078.196.163.219.35c-.151.067-.191.115-.438.117c-.242-.018-.3-.073-.393-.195c-.017.195-.087.26-.131.43c-.09.117-.128.238-.219.387c.039.19.122.198.131.43c.057.153.051.298.175.39c.056.06.097.073.219.077c-.253 0-.401-.025-.568-.117c-.13-.07-.228-.16-.35-.233a1.801 1.801 0 0 0-.524-.235c-.202 0-.348-.02-.438.077c-.123.08-.207.215-.262.39c-.04.202-.056.337.044.468c.074.152.091.21 0 .39c-.102.127-.253.143-.481.195a1.672 1.672 0 0 1-.438-.078\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.168\" d=\"M45.853 26.665c5.337-9.215 8.88-17.055 7.905-17.504c-.973-.448-6.092 6.667-11.43 15.88l3.525 1.624z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.147\" d=\"M45.5 26.502c5.147-8.889 8.695-16.393 7.917-16.752c-.778-.358-5.587 6.564-10.738 15.453\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.167\" d=\"M44.615 21.865c-.627 1.039-1.29 2.227-1.935 3.338l2.82 1.299c.643-1.112 1.345-2.282 1.933-3.339l-2.818-1.298z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.167\" d=\"M44.853 22.224c-.625 1.039-1.063 1.834-1.705 2.945l2.112.973c.645-1.111 1.12-1.889 1.708-2.945l-2.115-.973z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.168\" d=\"M46.386 23.427l-1.409-.649l-1.251 2.16l1.409.649z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.167\" d=\"M46.387 23.428l-2.66 1.511m1.408.648l-.157-2.809m7.78-10.346l-1.41-.649\"></path><circle cx=\"52.685\" cy=\"11.038\" r=\"1\" fill=\"#DB161B\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.5\" transform=\"rotate(-104.406 52.685 11.038)\"></circle><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.212\" d=\"M43.873 37.28c12.028 11.762 17.159 13.25 14.751 14.198c-2.408.948-10.154-5.123-18.214-13.188c-8.06-8.063-12.995-15.239-10.587-16.187c2.407-.948 1.257 2.666 14.05 15.177z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.165\" d=\"M53.998 45.827l-4.213 1.105c3.965 3.758 8.427 5.305 9.667 4.643c1.239-.662-2.232-2.21-5.454-5.748h0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.165\" d=\"M53.998 46.27l-3.47.885c3.863 3.613 7.684 4.64 8.673 4.2c.994-.442-2.064-1.685-5.203-5.085z\"></path><path stroke=\"#DB161B\" stroke-width=\"0.165\" d=\"M41.052 36.765c.01.058.038.31.063.41c0 .14.015.245.03.355c.04.095.032.182.155.218a.472.472 0 0 0 .245.192c.075.058.19.115.31.163a.645.645 0 0 0 .367.028c.11-.068.188-.135.278-.19c.022-.087.04-.215.063-.3a1.26 1.26 0 0 0-.063.353c.012.138.063.198.123.3m-.43.299a.384.384 0 0 0 .03-.028c-.072.065-.042.035.125-.052c.118-.055.245-.085.4-.11h.43c.167 0 .28.022.4.055c.088.077.218.12.308.19a.49.49 0 0 1 .185.218c.085.075.14.19.218.248c.032.125.105.12.152.218c-.145.01-.263.027-.337.107c-.13.06.107-.057.152-.107c.102-.028.127-.055.277-.055c.14-.04.225.032.37.055c.083.042.107.055.215.055m-1.263.571c.063.002.35.05.462 0c.125-.03.2-.09.277-.193c.038-.072 0 .133 0 .22c.013.16.068.162.153.272c.09.05.185.123.277.162c.078.06.172.1.277.137c.093.038.203.078.278.135c.102.065.092.145.152.245c-.01.135-.035.21-.123.275a.749.749 0 0 1-.185.245c-.075.125-.16.182.033.218c.105.04.163.007.275 0m.064.191a6.29 6.29 0 0 0 .462-.135h.43c.167.01.2.055.34.107a.86.86 0 0 0 .277.193c.065.075.195.202.245.3a.964.964 0 0 1 .063.355c-.002.157-.05.185-.063.327a.806.806 0 0 1-.185.325c-.012.035-.022.045-.06.055m-.042.358c.013 0 .042.07.088.13c.097.1.11.107.262.107c.135-.005.123-.052.218-.088c.045-.067.103-.122.152-.215c.035-.055.067-.143.11-.193c.04-.065.09-.112.133-.172c.04-.018.055-.035.107-.042c-.125.02-.135.063-.218.127c-.038.063-.077.125-.11.195c-.013.093-.042.165-.042.28a.7.7 0 0 0 .042.3c.053.055.09.11.152.153c.053.048.115.113.155.17c.067.042.117.078.195.13c.067.037.138.077.24.087c.13-.01.168-.045.262-.087c.083-.06.147-.098.22-.15a.689.689 0 0 0 .152-.172c.118-.03.192-.018.263.042c.06.04.112.093.152.15c.038.018.095.07.132.088m-.257.05c-.035.015-.16.103-.218.135c-.035.113-.09.175-.107.295c-.03.117-.027.245-.027.377c.03.137.087.238.135.347c.088.06.13.1.245.163c.107.015.215.028.353.028c.085.027.245.04.328 0c.12-.018.21-.065.298-.108c.101-.057.162-.11.272-.162c.053-.078.136-.147.217-.243c.068-.09.118-.14.164-.24c-.041.115-.102.215-.136.323c-.062.113-.098.155-.109.295c-.038.113-.027.248-.027.375c.012.088.019.253.055.323v.083m2.577.426v.04c0-.105.002-.052-.044.155c-.083.093-.276.117-.437.078c-.142-.103-.137-.183-.394-.233c-.248.015-.342.08-.481.155c-.165.073-.241.11-.35.272c-.054.133-.084.223.088.273c.137.087.299.135.481.157c.202 0 .347-.023.437.077c.139.127.131.205.131.427c.046.07.056.275.087.353c.122.05.193.077.394.077c.047-.12.099-.337.131-.467c.035-.14.045-.335.131-.43c.082-.105.186-.2.306-.272a.544.544 0 0 1 .262-.155c-.171.078-.196.163-.218.35c.15.067.191.115.437.117c.242-.018.3-.073.394-.195c.017.195.087.26.131.43c.09.117.128.238.219.387c-.039.19-.122.198-.131.43c-.057.153-.05.298-.174.39c-.056.06-.097.073-.219.077c.253 0 .4-.025.568-.117c.13-.07.228-.16.35-.233c.155-.1.346-.192.525-.235c.202 0 .347-.02.437.077c.124.08.207.215.262.39c.041.202.056.337-.043.468c-.074.152-.091.21 0 .39c.102.127.253.143.481.195c.167-.008.327-.04.437-.078\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.168\" d=\"M30.148 26.665c-5.337-9.215-8.88-17.055-7.905-17.504c.973-.448 6.093 6.667 11.43 15.88l-3.525 1.624z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.147\" d=\"M30.5 26.502c-5.147-8.889-8.695-16.393-7.917-16.752c.777-.358 5.587 6.564 10.737 15.453\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.167\" d=\"M31.385 21.865c.627 1.039 1.29 2.227 1.935 3.338l-2.82 1.299c-.643-1.112-1.345-2.282-1.933-3.339l2.818-1.298z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.167\" d=\"M31.148 22.224c.625 1.039 1.063 1.834 1.705 2.945l-2.113.973c-.645-1.111-1.12-1.889-1.708-2.945l2.116-.973z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.168\" d=\"M29.614 23.427l1.409-.649l1.252 2.16l-1.41.649z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.167\" d=\"M29.613 23.428l2.66 1.511m-1.408.648l.158-2.809m-7.781-10.346l1.41-.649\"></path><circle cx=\"23.331\" cy=\"11.063\" r=\"1\" fill=\"#DB161B\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.5\" transform=\"rotate(-75.558 23.33 11.063)\"></circle><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.153\" d=\"M34.315 21.74c0 7.736.045 10.65-.525 11.051c-.54.427-15.587 0-15.587 2.21s12.395 4.42 16.112 4.42c4.957 0 7.437-2.21 7.437-6.63V21.74h-7.437z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.132\" d=\"M34.315 23.949v1.105a25.12 25.12 0 0 0 7.437 0v-1.105a25.12 25.12 0 0 1-7.437 0zm0-2.209v1.105c2.48.368 4.957.368 7.437 0V21.74a25.187 25.187 0 0 1-7.437 0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.132\" d=\"M34.315 22.844v1.105a25.12 25.12 0 0 0 7.437 0v-1.105a25.12 25.12 0 0 1-7.437 0zm0 2.21v1.105c2.48.368 4.957.368 7.437 0v-1.105a25.12 25.12 0 0 1-7.437 0z\"></path><circle cx=\"34.653\" cy=\"23.473\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"2.231\"></circle><circle cx=\"36.005\" cy=\"23.592\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"2.231\"></circle><circle cx=\"37.358\" cy=\"23.711\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"2.232\"></circle><circle cx=\"38.71\" cy=\"23.711\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"2.232\"></circle><circle cx=\"40.061\" cy=\"23.592\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"2.231\"></circle><circle cx=\"41.414\" cy=\"23.473\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"2.231\"></circle><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.132\" d=\"M34.315 27.265l7.437 5.968m-6.694-5.968l6.695 5.303m-5.703-5.083l5.703 4.42m-4.958-4.42l4.958 3.757m-4.215-3.757l4.215 3.095m-3.473-3.095l3.473 2.432m-2.728-2.432l2.728 1.767m-1.985-1.767l1.985 1.327m-1.241-1.327l1.24.885m-.497-.885l.498.442m-7.438 0l7.437 5.968m.001-6.63l-8.18 6.63m7.435-6.63L33.82 33.01m6.198-5.525l-5.703 4.42m4.958-4.42l-4.957 3.757m4.214-3.757l-4.215 3.095m3.47-3.095l-3.47 2.432m2.728-2.432l-2.728 1.767m1.983-1.767l-1.982 1.327m1.239-1.327l-1.24.885m.495-.885l-.495.442m7.438 0l-8.18 6.63m8.18-5.967l-8.18 6.63m8.18-5.968l-8.18 6.633m8.18-5.968l-8.18 6.63m8.18-5.967l-8.18 6.63m8.18-5.968l-8.18 6.63m8.18-5.967l-8.18 6.63m8.18-5.965l-8.18 6.63m8.18-5.968l-7.685 6.188m7.685-5.525l-6.942 5.525m6.692-4.64L36.05 39.2m5.205-3.537l-4.46 3.537m3.965-2.432l-2.23 1.767m-4.215-9.945l7.187 5.747m-7.187-5.085L41.503 35m-7.188-5.083l6.94 5.525m-6.94-4.862l6.94 5.525m-6.94-4.863l6.692 5.305m-6.939-4.862l6.692 5.305m-6.692-4.643l6.197 4.863m-6.445-4.42l6.198 4.863m-6.446-4.421l5.948 4.64m-5.948-3.977l5.7 4.42m-5.7-3.758l4.958 3.978M34.315 26.16v1.105c2.48.368 4.957.368 7.437 0V26.16a25.187 25.187 0 0 1-7.437 0zm-.743 9.06l4.46 3.538m-4.46-2.873l3.965 3.093m-3.965-2.43l3.47 2.652m-3.47-1.99l2.478 1.99m-2.478-1.327l1.982 1.547m-1.982-.885l1.238.885\"></path><circle cx=\"34.653\" cy=\"26.788\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"2.231\"></circle><circle cx=\"36.005\" cy=\"26.907\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"2.231\"></circle><circle cx=\"37.358\" cy=\"27.026\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"2.232\"></circle><circle cx=\"38.71\" cy=\"27.026\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"2.232\"></circle><circle cx=\"40.061\" cy=\"26.907\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"2.231\"></circle><circle cx=\"41.414\" cy=\"26.788\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"2.231\"></circle><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.132\" d=\"M23.656 37.653l8.924-4.643m-9.42 4.42l8.427-4.42m-8.674 3.98l7.685-3.98m-7.933 3.538l6.693-3.538m-7.189 3.095l6.196-3.095m-5.948 2.433l4.213-2.21M22.169 35l3.223-1.768m-3.223 1.105l2.231-1.105m0 4.641l8.427-4.42m-7.683 4.642l7.931-4.2m-7.188 4.42l7.435-3.978m-6.692 4.198l6.197-3.315m-5.204 3.315l5.452-2.872m-4.71 3.095l4.71-2.433m-3.965 2.653l3.717-1.988M30.1 38.978l2.975-1.548m-1.982 1.77l1.982-1.105m-.99 1.105l1.237-.665m.498-5.745h-1.24a17.894 17.894 0 0 0 0 6.63h1.24a17.809 17.809 0 0 1 0-6.63zm-14.625 3.095l2.975-2.21m-2.975.662l2.975 2.653\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.094\" d=\"M23.656 33.232l-1.487.22c-.331 1.4-.331 2.578 0 3.978l1.487.443c-.33-1.401-.33-3.24 0-4.641h0z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.162\" d=\"M41.742 22.181v-1.114c-1.112.009-1.857-.654-1.857-1.326l-3.712.009c0 .663-.743 1.326-1.857 1.326v1.105h7.426z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.137\" d=\"M36.438 18.424h3.184v1.326h-3.184zm.264-1.326h2.653v1.326h-2.653zm0-1.326h2.653v1.326h-2.653zm.266-1.768h2.123v1.768h-2.123z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.142\" d=\"M36.878 12.457h2.305v1.547h-2.305z\"></path><ellipse cx=\"38.157\" cy=\"11.021\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.5\" rx=\"3.073\" ry=\"2.099\"></ellipse><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.134\" d=\"M39.695 10.91c0 .58.768 1.547.768 1.547c-.558.38-1.457.663-2.305.663c-.847 0-1.905-.158-2.305-.663c0 0 .768-.968.768-1.547s-.768-1.326-.768-1.326c.555-.38 1.457-.663 2.305-.663c.848 0 1.748.283 2.305.663c0 0-.768.747-.768 1.326z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.134\" d=\"M39.183 10.91c0 .58.767 1.768.767 1.768c-.555.38-.945.442-1.792.442c-.847 0-1.393.063-1.792-.442c0 0 .768-1.188.768-1.768c0-.579-.768-1.547-.768-1.547c.555-.38.945-.442 1.792-.442c.848 0 1.238.062 1.792.442c0 0-.767.968-.767 1.547z\"></path><circle cx=\"35.084\" cy=\"11.131\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.5\"></circle><circle cx=\"41.231\" cy=\"11.131\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.5\"></circle><circle cx=\"38.157\" cy=\"11.131\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.5\"></circle><circle cx=\"38.157\" cy=\"8.921\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.5\"></circle><circle cx=\"35.907\" cy=\"21.519\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.5\"></circle><circle cx=\"40.152\" cy=\"21.519\" r=\"1\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.5\"></circle><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.137\" d=\"M36.173 19.75h3.712l-1.855 1.989z\"></path><ellipse cx=\"38.029\" cy=\"21.298\" fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.5\" rx=\"1.061\" ry=\"1\"></ellipse><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.165\" d=\"M34.252 27.93h5.082c.171 0 .31.105.31.235v.857c0 .13-.139.235-.31.235h-5.082c-.171 0-.31-.105-.31-.235v-.857c.001-.13.139-.235.31-.235zm7.128-1.105c-.688 0-1.24.515-1.24 1.155v1.005c0 .64.553 1.155 1.24 1.155c.687 0 1.24-.515 1.24-1.155V27.98c0-.64-.552-1.155-1.24-1.155zm0 .443c-.413 0-.745.412-.745.925v.582c0 .513.333.923.745.923c.413 0 .743-.41.743-.923v-.582c0-.513-.33-.925-.743-.925z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.165\" d=\"M34.935 27.048c-.413 0-.743.41-.743.922v1.025c0 .513.33.925.743.925c.412 0 .742-.412.742-.925V27.97c0-.512-.33-.922-.742-.922zm0-.443c-.688 0-1.24.515-1.24 1.155v1.448c0 .64.553 1.155 1.24 1.155c.687 0 1.24-.515 1.24-1.155V27.76c0-.64-.552-1.155-1.24-1.155z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.165\" d=\"M32.952 27.488c-.412 0-.745.412-.745.925v.24c0 .512.333.925.745.925c.413 0 .743-.412.743-.925v-.24c0-.513-.33-.925-.743-.925zm0-.44c-.688 0-1.24.515-1.24 1.155v.663c0 .64.552 1.155 1.24 1.155c.685 0 1.24-.515 1.24-1.155v-.663c.001-.64-.555-1.155-1.24-1.155z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.165\" d=\"M29.978 26.877c-.743 0-1.338.46-1.338 1.032v1.145c0 .573.595 1.032 1.338 1.032c.742 0 1.337-.46 1.337-1.032v-1.145c0-.572-.595-1.032-1.337-1.032zm0-.494c-1.235 0-2.23.577-2.23 1.292v1.617c0 .715.995 1.29 2.23 1.29c1.235 0 2.23-.575 2.23-1.29v-1.617c0-.715-.995-1.292-2.23-1.292zm16.112.714c-.743 0-1.34.463-1.34 1.035v1.145c0 .573.597 1.032 1.34 1.032c.74 0 1.337-.46 1.337-1.032v-1.145c0-.572-.597-1.035-1.337-1.035zm0-.492c-1.237 0-2.232.575-2.232 1.29v1.617c0 .715.995 1.29 2.232 1.29c1.235 0 2.23-.575 2.23-1.29v-1.617c0-.715-.995-1.29-2.23-1.29z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#DB161B\" stroke-width=\"0.165\" d=\"M42.036 27.93h2.652c.089 0 .162.105.162.235v.857c0 .13-.073.235-.162.235h-2.652c-.089 0-.161-.105-.161-.235v-.857c0-.13.072-.235.161-.235zm-2.792-.22h1.547c.052 0 .094.14.094.313v1.143c0 .173-.042.313-.094.313h-1.547c-.052 0-.094-.14-.094-.313v-1.143c0-.173.042-.313.094-.313zm-8.18 0h1.547c.052 0 .094.14.094.313v1.143c0 .173-.042.313-.094.313h-1.547c-.052 0-.094-.14-.094-.313v-1.143c0-.173.042-.313.094-.313zm-5.361-.222h3.094c.104 0 .188.175.188.391v1.428c0 .216-.084.391-.188.391h-3.094c-.104 0-.188-.175-.188-.391v-1.428c0-.216.084-.391.188-.391zm21.552.222h2.873c.097 0 .175.175.175.391v1.428c0 .216-.078.391-.175.391h-2.873c-.097 0-.175-.175-.175-.391v-1.428c0-.216.078-.391.175-.391z\"></path></g>'},pa:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#005293\" d=\"M.5 100.5h150v100H.5z\"></path><path fill=\"#D21034\" d=\"M150.5.5h150v100h-150z\"></path><path fill=\"#005293\" d=\"M51.724 42.774l14.694 10.677l-5.612 17.275L75.5 60.049l14.695 10.677l-5.613-17.275l14.694-10.677H81.113L75.5 25.5l-5.613 17.274z\"></path><path fill=\"#D21034\" d=\"M201.724 142.775l14.694 10.676l-5.612 17.274L225.5 160.05l14.694 10.675l-5.613-17.274l14.695-10.676h-18.163L225.5 125.5l-5.613 17.275z\"></path></g>'},pe:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#D91023\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" d=\"M100.5.5h100v200h-100z\"></path></g>'},pg:{viewBox:\"0 0 301 225\",innerHTML:'<g fill=\"none\"><path fill=\"#000\" d=\"M.5 0h300v225H.5z\"></path><path fill=\"#CE1126\" d=\"M.5 0h300v225z\"></path><path fill=\"#FCD116\" d=\"M186.236 65.372c-2.216 2.862-7.459-2.879-13.74-3.01c-6.281-.131-10.73 6.02-12.563 8.113c-1.832 2.094-7.72 13.086-7.589 14.264c.13 1.178 3.664-3.271 4.973-4.057c.131 1.57-1.439 3.402-1.047 3.926c.393.523 4.58-3.141 6.019-3.271c.393 1.047-.785 2.094-.393 3.664c.524.523 2.879-2.617 4.45-3.271c.261 1.178-1.439 3.403-.524 4.842c.655.131 4.58-4.449 5.889-4.973c1.309-.524-.654 4.318 0 4.711c1.178-.785 4.842-4.973 6.02-5.496c1.178-.523-.131 5.365.393 5.365c1.439-1.047 5.104-6.02 5.496-6.805c.393-.785-.393 7.59 3.664 12.04c4.056 4.449 10.207 9.552 10.861 9.552c.785-1.439-.262-4.449.393-4.318c1.832 1.963 5.234 4.842 6.02 4.842c.785 0-.524-3.141.523-3.141c2.094 1.963 8.114 9.684 19.891 13.217c-.785-2.225-2.487-4.188-2.618-5.234c.785.13 3.534 1.439 4.057 1.308c.523-.131-5.758-7.852-5.366-8.898c1.44-.131 2.094.785 2.618.131c-.654-1.047-6.15-7.197-6.15-8.637c0-1.44 1.701.262 2.225 0c.523-.262-2.094-5.758-1.57-6.412c.523-.654 6.281 3.533 7.72 3.533c1.44 0 .393-5.104 1.047-5.365c.654-.262 5.496 2.748 6.543 2.748c1.046 0 .916-2.225 1.309-1.963c.393.262 11.777 11.646 7.852 24.994c-3.926 9.553-11.777 14.657-23.293 10.469c.654 1.047 6.804 6.151 13.479 4.318c6.674-1.832 14.787-7.066 13.871-20.152c-.916-13.086-5.234-14.918-5.889-16.881c-.654-1.963 1.047.523 2.487 1.047c1.439.523-.262-2.749-.654-4.188c-.393-1.439 4.318 3.01 5.496 3.402c1.178.393-2.748-10.73-3.926-11.516c-1.178-.785 1.178.262 1.962.523c.786.262-7.197-12.17-8.898-12.17c-1.701 0 1.439-.654 2.355-.654c.916 0-9.16-8.113-10.861-8.113c-1.702 0 3.664-2.094 4.187-2.225c.917.131-11.646-6.674-22.9.131c-.655-.523 5.3-4.645 5.496-6.412c.065-.458-1.963-1.439-2.094-1.963c-.131-.523 3.141-2.094 3.271-3.271c-.785-1.047-2.225-.654-3.01-.916c-.196-.981 2.749-3.403 2.487-4.449c-.196-.589-2.356-.785-2.879-.393c-.523.393 1.374-2.748 1.047-3.664c-.262-.393-1.309-.131-2.355.131c-.655-.131 3.402-5.758 2.617-6.543c-.785-.785-11.778 5.757-15.834 13.085c-4.056 7.329-.916 13.217-1.439 15.703c-.524 2.486-1.178 4.973-2.879 4.973s-5.626-2.618-6.935-3.926c-1.309-1.309-1.57-2.225-3.402-2.748c-1.833-.523-6.02 1.047-7.59 1.178c-1.57.13-7.721-1.178-8.113-.785c-.393.393 6.019 2.748 7.459 3.533c1.439.785 1.57 1.832 2.617 2.486c1.043.656 10.858 3.535 7.717 7.591zm38.342 18.451c3.141 3.141 24.34 17.273 24.34 34.547c0 17.274-15.442 16.75-19.891 16.227c4.973 4.187 23.817 3.402 23.817-16.227c0-17.273-24.34-34.547-27.48-36.117c-3.141-1.57-3.927-1.57-.786 1.57z\"></path><path fill=\"#FFF\" d=\"M109.875 110.547l3.281 11.265h11.335l-8.949 6.886l3.282 10.952l-8.949-6.885l-8.949 6.572l3.282-10.639l-8.949-6.886h11.037zm-34.212 62.5l3.282 11.265H90.28l-8.949 6.886l3.281 10.952l-8.949-6.885l-8.948 6.572l3.281-10.639l-8.949-6.886h11.037zm15.348-23.927l1.641 5.633h5.668l-4.475 3.443l1.641 5.476l-4.475-3.443l-4.474 3.286l1.64-5.319l-4.474-3.443h5.518zM75.663 69.725l3.282 11.265H90.28l-8.949 6.886l3.281 10.952l-8.949-6.885l-8.948 6.572l3.281-10.639l-8.949-6.886h11.037zm-34.375 43.947l3.282 11.265h11.335l-8.949 6.886l3.281 10.952l-8.949-6.885l-8.948 6.572l3.281-10.639l-8.949-6.886h11.037z\"></path></g>'},ph:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#0038A8\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#CE1126\" d=\"M.5 75.5h300v75H.5z\"></path><path fill=\"#FFF\" d=\"M130.404 75.5L.5 150.5V.5\"></path><circle cx=\"47.167\" cy=\"75.5\" r=\"15\" fill=\"#FCD116\"></circle><path fill=\"#FCD116\" d=\"M15.5 75.5l1.948 1.948L47.167 75.5l-29.719-1.948z\"></path><path fill=\"#FCD116\" d=\"M18.834 79.23l1.59 1.589l26.744-5.32z\"></path><path fill=\"#FCD116\" d=\"M18.834 71.77l1.59-1.59l26.744 5.32z\"></path><path fill=\"#FCD116\" d=\"M24.775 53.108v2.755L47.167 75.5L27.53 53.108zm-.281 4.995v2.248L47.167 75.5zm5.276-5.275h2.248L47.167 75.5zm17.397-8.995l-1.948 1.948L47.167 75.5l1.948-29.719z\"></path><path fill=\"#FCD116\" d=\"M43.437 47.166l-1.59 1.59l5.32 26.744zm7.46 0l1.59 1.59l-5.32 26.744zm18.662 5.942h-2.755L47.167 75.5l22.392-19.637zm-4.995-.28h-2.248L47.167 75.5zm5.275 5.275v2.248L47.167 75.5zM78.834 75.5l-1.948-1.948L47.167 75.5l29.719 1.948z\"></path><path fill=\"#FCD116\" d=\"M75.5 71.77l-1.59-1.59l-26.744 5.32z\"></path><path fill=\"#FCD116\" d=\"M75.5 79.23l-1.59 1.589l-26.744-5.32zm-5.941 18.662v-2.755L47.167 75.5l19.637 22.392zm.28-4.995v-2.248L47.167 75.5zm-5.275 5.275h-2.248L47.167 75.5z\"></path><path fill=\"#FCD116\" d=\"M47.167 107.166l1.948-1.948l-1.948-29.719l-1.948 29.719zm3.73-3.333l1.59-1.59l-5.32-26.744zm-7.46 0l-1.59-1.59l5.32-26.744z\"></path><path fill=\"#FCD116\" d=\"M24.775 97.892h2.755L47.167 75.5L24.775 95.137z\"></path><path fill=\"#FCD116\" d=\"M29.77 98.172h2.248l15.149-22.673z\"></path><path fill=\"#FCD116\" d=\"M24.494 92.897v-2.248L47.167 75.5zM4.016 22.44l5.92.744l1.36 5.811l2.538-5.401l5.946.502l-4.353-4.082l2.316-5.5l-5.228 2.878L8 13.49l1.122 5.861zm0 106.12l5.106 3.088L8 137.51l4.515-3.903l5.228 2.878l-2.316-5.499l4.353-4.083l-5.946.503l-2.538-5.401l-1.36 5.811zm96.313-57.958l3.408 4.898l-3.408 4.898l5.712-1.728l3.605 4.755l.121-5.966l5.637-1.959l-5.637-1.96l-.121-5.966l-3.605 4.756z\"></path></g>'},pk:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#01411C\" d=\"M75.5.5h225v200h-225z\"></path><circle cx=\"188\" cy=\"100.5\" r=\"60\" fill=\"#FFF\"></circle><circle cx=\"203.337\" cy=\"86.868\" r=\"55\" fill=\"#01411C\"></circle><path fill=\"#FFF\" d=\"M209.879 55.603l25.274 28.433l-37.16-8.147l34.852-15.251l-19.232 32.824z\"></path></g>'},pl:{viewBox:\"0 0 301 189\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.75h300v187.5H.5z\"></path><path fill=\"#DC143C\" d=\"M.5 94.5h300v93.75H.5z\"></path></g>'},pw:{viewBox:\"0 0 301 189\",innerHTML:'<g fill=\"none\"><path fill=\"#4AADD6\" d=\"M.5.75h300v187.5H.5z\"></path><circle cx=\"131.75\" cy=\"94.5\" r=\"56.25\" fill=\"#FFDE00\"></circle></g>'},qa:{viewBox:\"0 0 301 119\",innerHTML:'<g fill=\"none\"><path fill=\"#8D1B3D\" d=\"M.5.445h300v118.11H.5z\"></path><path fill=\"#FFF\" d=\"M.5.445v118.11h94.488l24.003-6.558l-24.003-6.57l24.003-6.558l-24.003-6.558l24.003-6.57l-24.003-6.558l24.003-6.558l-24.003-6.57l24.003-6.558l-24.003-6.558l24.003-6.57l-24.003-6.558l24.003-6.558l-24.003-6.57l24.003-6.558l-24.003-6.558l24.003-6.57L94.988.439H.5z\"></path></g>'},ro:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#002B7F\" d=\"M.5.5h100v200H.5z\"></path><path fill=\"#FCD116\" d=\"M100.5.5h100v200h-100z\"></path><path fill=\"#CE1126\" d=\"M200.5.5h100v200h-100z\"></path></g>'},ru:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M.5.5h300v100H.5z\"></path><path fill=\"#D52B1E\" d=\"M.5 100.5h300v100H.5z\"></path><path fill=\"#0039A6\" d=\"M.5 67.166h300v66.667H.5z\"></path></g>'},rw:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#00A1DE\" d=\"M.5.5h300v100H.5z\"></path><path fill=\"#FAD201\" d=\"M.5 100.5h300v50H.5z\"></path><path fill=\"#20603D\" d=\"M.5 150.5h300v50H.5z\"></path><path fill=\"#E5BE01\" d=\"M279 52.75l-22.336 1.305l21.237 7.042l-21.912-4.52l18.691 12.298l-19.996-10.037l14.871 16.717l-16.717-14.871l10.037 19.996l-12.298-18.69l4.52 21.912l-7.042-21.237L246.75 85l-.278-32.528z\"></path><path fill=\"#E5BE01\" d=\"M279 52.75l-22.336-1.305l21.237-7.042l-21.912 4.52l18.691-12.298l-19.996 10.037l14.871-16.717l-16.717 14.871l10.037-19.996l-12.298 18.691l4.52-21.912l-7.042 21.237L246.75 20.5l-.278 32.528z\"></path><path fill=\"#E5BE01\" d=\"M214.5 52.75l22.336 1.305l-21.237 7.042l21.912-4.52l-18.691 12.298l19.996-10.037l-14.871 16.717l16.717-14.871l-10.037 19.996l12.298-18.69l-4.52 21.912l7.042-21.237L246.75 85l.278-32.528z\"></path><path fill=\"#E5BE01\" d=\"M214.5 52.75l22.336-1.305l-21.237-7.042l21.912 4.52l-18.691-12.298l19.996 10.037l-14.871-16.717l16.717 14.871l-10.037-19.996l12.298 18.691l-4.52-21.912l7.042 21.237L246.75 20.5l.278 32.528z\"></path><circle cx=\"246.75\" cy=\"52.75\" r=\"9.528\" fill=\"#E5BE01\" stroke=\"#00A1DE\" stroke-width=\"0.944\"></circle></g>'},sa:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#006C35\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" d=\"M129.812 47.736c-.155-.004-.387.082-.713.275c-.731.49-2.18 2-2.225 3.738c-.044.98-.229.977.413 1.6c.464.669.927.603 1.862.112c.538-.396.719-.648.9-1.312c.223-1.114-1.172.527-1.35-.713c-.312-1.151.579-1.624 1.425-2.737c.02-.525.029-.953-.312-.963zm13.625.075c-.261.036-.581.37-1.025 1.175c-.318.843-1.69 2.119-.7 4.75c.81 1.668 1.143 4.38.775 7.4c-.561.859-.689 1.154-1.425 2.013c-1.034 1.112-2.154.827-3.013.412c-.803-.541-1.434-.819-1.8-2.537c.066-2.739.226-7.223-.275-8.175c-.738-1.474-1.955-.945-2.475-.5c-2.499 2.285-3.733 6.143-4.487 9.212c-.693 2.237-1.432 1.59-1.95.688c-1.263-1.183-1.351-10.433-2.875-8.913c-2.441 6.976 1.4 14.618 4.062 13.875c1.92.795 3.139-2.86 3.925-6.862c.538-1.123.949-1.252 1.225-.675c-.071 5.322.382 6.509 1.75 8.125c3.053 2.355 5.577.298 5.775.1l2.375-2.375c.529-.556 1.228-.59 1.975-.1c.726.66.633 1.797 2.188 2.587c1.308.523 4.102.127 4.75-1c.872-1.495 1.084-2.008 1.487-2.575c.622-.828 1.688-.462 1.688-.2c-.099.462-.725.918-.3 1.75c.74.555.912.198 1.35.075c1.548-.74 2.712-4.1 2.712-4.1c.068-1.253-.645-1.158-1.1-.9c-.594.363-.631.487-1.225.85c-.757.112-2.224.612-2.95-.513c-.741-1.352-.746-3.236-1.312-4.6c0-.099-.991-2.144-.075-2.275c.462.086 1.455.343 1.612-.487c.485-.809-1.046-3.105-2.087-4.263c-.904-.993-2.153-1.113-3.363-.1c-.847.779-.721 1.65-.887 2.475c-.216.948-.175 2.122.787 3.375c.845 1.667 2.381 3.806 1.875 6.825c0 0-.893 1.437-2.462 1.25c-.654-.143-1.721-.426-2.288-4.613c-.429-3.169.107-7.609-1.237-9.687c-.304-.784-.564-1.546-1-1.487zm-4.312.336c-.407.036-.857.509-1.225 1.425c-.315.696-.7 4.338-.637 4.338c-.252 1.084 1.132 1.543 1.762.15c.945-2.554.949-3.642 1.013-4.725c-.148-.825-.507-1.223-.913-1.188zm15.924.288c-.418.038-.75.282-.875.9c-.166 1.452-.081 2.241.163 3.45c.187.806 1.36 2.155 1.938 2.938c2.758 3.708 5.412 7.433 7.975 11.287c.403 2.862.698 5.662.888 8.45c.415 6.114.541 13.724.162 20.163c1.145.045 2.981-1.85 3.625-4.625c.419-3.839-.149-11.672-.187-13.938c-.027-.941-.085-2.063-.15-3.237a210.703 210.703 0 0 1 8.712 15.7c1.035-.492.805-6.319.2-7.138c-2.272-4.891-5.412-9.719-6.412-11.575c-.361-.67-1.592-2.542-3.05-4.7c-.268-3.079-.56-5.688-.75-6.475c-.469-3.255 1.338.367 1.087-1.525c-.586-3.251-2.38-5.46-4.5-8.438c-.683-.968-.67-1.166-1.725.237c-.63 1.431-.622 2.621-.437 3.737a19.864 19.864 0 0 0-1.113-1.475c-1.83-1.57-1.943-1.656-3.462-2.938c-.48-.339-1.392-.862-2.089-.798zm47.2.487c-.203-.032-.425.068-.675.437c-.477.418-.991 1.176-.975 2.15c.116 1.715.422 3.472.538 5.188l.125.688a6.313 6.313 0 0 0-.438-.512c-3.344-3.513 1.537-.574-.637-3.288c-1.838-2.019-2.376-2.661-3.95-3.875c-.789-.51-1.266-1.484-1.525.175c-.103 1.458-.21 3.146-.113 4.375c-.005.683.702 1.968 1.313 2.725a292.945 292.945 0 0 1 6.8 8.7c.482 6.206.611 11.895 1.1 18.112c-.069 2.659-.887 6.191-1.663 6.525c0 0-1.184.68-1.975-.075c-.575-.231-2.875-3.838-2.875-3.838c-1.177-1.079-1.962-.771-2.8 0c-2.31 2.23-3.355 6.409-4.925 9.287c-.405.642-1.545 1.189-2.812-.05c-3.22-4.398-1.337-10.659-1.738-9.05c-2.868 3.231-1.598 8.586-.95 9.737c.945 1.891 1.71 3.102 3.55 4.038c1.675 1.234 2.98.464 3.7-.4c1.686-1.747 1.709-6.216 2.5-7.1c.555-1.624 1.947-1.345 2.625-.625c.657.946 1.434 1.56 2.4 2.075c1.573 1.388 3.45 1.639 5.3.375c1.264-.709 2.085-1.631 2.825-3.45c.794-2.124.402-13.257.225-19.45a253.388 253.388 0 0 1 3.525 5.112c.511 5.436.743 10.791.575 15.925c-.121 1.021 3.563-3.048 3.538-4.975c-.017-1.686.003-3.214 0-4.638a195.907 195.907 0 0 1 5.15 8.688c1.013-.537.666-6.271.025-7.063c-1.711-2.871-3.903-5.974-5.6-8.375c-.336-3.03-.792-6.605-1-7.7c-.324-1.708-.648-4.273-1.138-6.3c-.134-.791-.539-3.32-.412-3.563c.2-.566.954.018 1.325-.637c.556-.606-1.927-7.039-3.188-8.875c-.453-.823-1.273-.538-2.287.8c-.941.881-.597 2.889-.238 4.8c.933 4.87 1.766 9.829 2.425 14.775a551.267 551.267 0 0 0-4.175-6.125c-.039-.204-.187-.952-.187-.963c0-.088-.202-3.984-.375-4.912c-.03-.377-.12-.486.275-.438c.419.352.476.371.737.487c.423.077.793-.638.538-1.3c-1.308-2.413-2.616-4.837-3.925-7.25c-.157-.152-.334-.315-.538-.347zm-121.811.125c-.725-.021-1.525.429-1.213 1.3c-.182.475 1.419 2.08 1.7 2.962c.252.628-.25 2.651.275 2.838c.483.209 1.147-1.4 1.4-2.888c.14-.815.034-3.604-1.862-4.175a1.568 1.568 0 0 0-.3-.037zm138.764.016c-.165.016-.367.283-.675.938c-.742 1.215-.997 3.391-.7 5.312c1.786 12.081 3.113 23.78 3.388 34.488c-.154 1.016-.198 1.557-.675 2.838c-1.054 1.351-2.217 3.046-3.313 3.862c-1.095.816-3.426 1.595-4.188 2.2c-2.418 1.397-2.43 3.004-.475 3.063c3.368-.391 7.354-.668 10.1-4.813c.734-1.162 1.599-4.311 1.637-6.238c.257-11.299-.145-22.346-1.837-30.512c-.109-.796-.46-2.624-.325-2.863c.218-.559 1.32.056 1.712-.587c.576-.588-2.85-4.975-4.05-6.85c-.239-.472-.387-.859-.599-.838zm-35.325.188c-.139.024-.345.236-.725.737c-.941 3.077-1.271 5.589-.912 7.5c2.417 12.613 4.894 24.105 4.5 36.112c1.146.008 2.471-2.622 3.037-5.225c.31-3.586-.207-5.768-.3-7.875s-2.386-19.206-2.85-20.8c-.56-3.015 2.23-.396 1.925-2.15c-.964-2.211-3.371-5.429-4.125-7.35c-.283-.514-.318-.99-.55-.949zm-86.012.237c-.297.051-.584.296-.687.7c-.066.264.114.704-.125.838c-.138.139-.659.045-.638-.688c0-.234-.171-.477-.275-.625c-.104-.068-.174-.087-.362-.087c-.23.009-.224.07-.35.263c-.056.196-.128.388-.128.612c-.028.261-.133.349-.325.388c-.214 0-.164.023-.337-.088c-.103-.113-.225-.157-.225-.35c0-.2-.052-.518-.113-.65c-.091-.12-.235-.182-.4-.225c-.899.004-.964 1.036-.912 1.425c-.067.073-.101 1.904 1.125 2.412c1.645.785 4.731.453 4.6-2.2c0-.234-.052-1.023-.075-1.237c-.168-.391-.478-.539-.775-.487l.002-.001zm22.075.025a3.681 3.681 0 0 0-1.5.412c-1.091 1.044-1.346 2.718-.487 3.763c.836.395 1.67 1.236 1.112 1.7c-2.363 2.524-8.515 6.743-8.825 7.512l-.013.025v.038c.002.006.008.02.013.025a.142.142 0 0 1 .012.013h.012c.003.001.01.012.013.012h.012l.013.013c.312.21 4.162.205 4.587.013c.004-.002.01-.011.013-.013h.012v-.013c1.323-.487 7.6-7.662 7.6-7.662c-.325-.279-.625-.484-.95-.763c-.348-.302-.313-.598 0-.9c1.555-.905 1.062-2.895.25-3.8a4.04 4.04 0 0 0-1.874-.375zm57.7.025c-.165.016-.366.271-.675.925c-.742 1.215-1.246 3.331-1.187 5.312c1.607 11.126 2.1 20.862 3.15 31.988c.086 1.076-.072 2.639-.788 3.263c-2.646 2.762-6.461 6.169-10.612 7.737c-.447.502 1.111 2.639 3.125 2.638c3.368-.391 6.329-2.282 9.075-7.263c.734-1.161 2.025-3.648 2.062-5.575c.257-11.299-.57-20.084-2.262-28.25c-.109-.796-.035-1.736.1-1.975c.218-.261.957.006 1.35-.637c.575-.588-1.538-5.462-2.738-7.338c-.239-.471-.387-.846-.6-.825zm-89.388.34c-.465.054-.902.433-1.113.938c-.078 1.784-.088 3.568.113 5.212c.812 2.884 1.069 5.421 1.462 8.375c.109 3.957-2.285 1.712-2.175-.25c.553-2.548.404-6.558-.087-7.575c-.389-1.016-.841-1.268-1.788-1.1c-.752-.046-2.695 2.071-3.237 5.575c0 0-.452 1.799-.65 3.4c-.266 1.81-1.465 3.092-2.3-.25c-.722-2.429-1.166-8.412-2.375-7.012c-.346 4.672-.758 12.894 3.212 13.738c4.802.462 2.149-8.118 3.888-9.675c.329-.77.937-.783.987.188v7.288c-.044 2.369 1.515 3.073 2.725 3.563c1.259-.097 2.094-.063 2.588 1.162c.197 4.201.403 8.412.6 12.613c0 0 2.911.837 3.05-7.088c.139-4.653-.927-8.557-.3-9.463c.022-.889 1.162-.933 1.95-.5c1.255.886 1.812 1.975 3.762 1.537c2.968-.818 4.756-2.258 4.8-4.537c-.173-2.166-.424-4.334-1.362-6.5c.131-.394-.568-1.419-.438-1.813c.533.836 1.34.766 1.525 0c-.505-1.665-1.292-3.26-2.562-3.95c-1.05-.925-2.587-.73-3.15 1.2c-.261 2.223.806 4.859 2.425 7.013c.344.841.825 2.241.612 3.5c-.862.491-1.716.287-2.437-.475c0 0-2.363-1.769-2.363-2.163c.627-4.014.135-4.474-.212-5.587c-.243-1.538-.971-2.025-1.563-3.075c-.591-.627-1.393-.627-1.775 0c-1.044 1.81-.554 5.696.2 7.438c.545 1.601 1.381 2.6.988 2.6c-.324.905-1 .694-1.488-.35c-.696-2.158-.837-5.375-.837-6.825c-.209-1.798-.442-5.638-1.625-6.612c-.315-.432-.688-.582-1.05-.54zm16.863.025c-.238.03-.502.166-.812.237c-1.021.325-1.977 1.207-1.675 2.925c1.207 7.333 1.993 12.929 3.2 20.262c.185.859-.534 1.991-1.463 1.875c-1.578-1.068-1.97-3.23-4.662-3.137c-1.949.023-4.172 2.144-4.45 4.187c-.325 1.623-.441 3.384 0 4.8c1.37 1.647 3.011 1.472 4.45 1.1c1.183-.487 2.157-1.653 2.575-1.375c.001.001.011-.002.012 0v.013c.258.451-.024 4.265-5.575 7.212c-3.411 1.532-6.126 1.898-7.588-.887c-.905-1.741.066-8.37-2.162-6.838c-6.59 16.987 15.439 19.358 17.9.7c.159-.526.645-1.054.987-.925c.15.064.288.268.338.65c-.511 16.894-17.042 18.052-19.85 12.738c-.696-1.253-.905-4.042-.975-5.713c-.127-1.011-.381-1.594-.675-1.825c-.67-.504-1.57.809-1.763 3.088c-.279 1.833-.2 2.336-.2 4.1c.882 13.344 22.155 7.611 25.613-3.413c1.711-5.698-.035-9.997.537-10.525c.005-.004.02-.009.025-.012a.192.192 0 0 1 .025-.012l.025-.013a.356.356 0 0 1 .075-.013c2.112 2.275 5.075.289 5.725-.5c.279-.395.975-.648 1.463-.138c1.647 1.184 4.534.626 5.137-1.462c.348-2.042.643-4.145.713-6.325c-1.073.333-1.939.583-2.288.95a.601.601 0 0 0-.162.3c-.093.604-.182 1.209-.275 1.813a.455.455 0 0 1-.05.138a.58.58 0 0 1-.2.187c-.379.207-1.041.089-1.075-.462c-.511-2.321-2.611-2.622-3.888.975c-.859.696-2.425.832-2.587-.213c.209-2.413-.764-2.737-2.713-1.6c-.627-4.78-1.248-9.344-1.875-14.125c.812-.023 1.557.566 2.3-.362c-.804-2.5-2.504-7.585-3.462-8.063c-.008-.003-.018-.01-.025-.012a1.38 1.38 0 0 0-.2-.188a.758.758 0 0 0-.188-.087a.666.666 0 0 0-.262-.025zm65.736.037c-.843-.025-1.776.506-1.413 1.562c-.212.576 1.811 2.531 2.138 3.6c.587 1.643-.448 3.211.162 3.438c.562.254 1.344-1.696 1.638-3.5c.339-1.458-.701-4.446-2.175-5.063a1.838 1.838 0 0 0-.35-.037zm-51.212 1.8c.384-.039.848.314 1.075.812c.242.532.121 1.041-.275 1.138c-.396.097-.908-.255-1.15-.788c-.242-.532-.121-1.053.275-1.15a.84.84 0 0 1 .075-.012zm95 2.463c-.769-.027-1.606.557-1.275 1.7c-.193.624 1.64 2.742 1.938 3.9c.267.824-.407 3.48.15 3.725c.512.275 1.233-1.835 1.5-3.787c.148-1.069-.644-4.82-1.988-5.488a1.367 1.367 0 0 0-.325-.05zm-52.525 1.3c.07.313.141.629.187.95c.158.693.293 1.381.438 2.063c-.607-.836-1.109-1.511-1.325-1.75c-1.372-1.632.032-1.072.7-1.263zm12.1 5.95c-.297.052-.584.309-.688.713c-.065.264.127.692-.112.825c-.138.139-.672.058-.65-.675c0-.234-.171-.49-.275-.638c-.104-.068-.174-.087-.363-.087c-.229.009-.224.07-.35.263c-.053.196-.125.39-.125.612c-.029.261-.12.349-.312.388c-.214 0-.176.023-.35-.088c-.103-.113-.225-.157-.225-.35c0-.2-.052-.518-.113-.65c-.091-.12-.235-.17-.4-.213c-.898.003-.952 1.023-.9 1.413c-.067.073-.113 1.916 1.113 2.425c1.645.784 4.743.44 4.612-2.213c0-.235-.064-1.023-.087-1.237c-.168-.392-.478-.54-.775-.488zm-55.247.55c-.203-.021-.469.054-.775.238c-1.455.787-2.018 3.121-1.112 4.487c.846 1.203 2.184.763 2.362.763c1.425.178 2.275-2.675 2.275-2.675s.043-.802-1.65.712c-.712.134-.809-.124-.987-.525c-.148-.742-.117-1.495.225-2.237c.157-.446 0-.729-.338-.763zm78.1.362c-.808-.039-1.668.484-1.888 1.587c.004.651.294 1.009.237 1.6c-.084.338-.432.56-1.262.163c.13-.12-.538-1.063-.538-1.063c-.647-.394-1.512.021-2.075.388a3.159 3.159 0 0 0-.187 2.512c.929 1.717 4.117 4.647 5.638 4.675c.028-1.548.179-3.607.263-4.888c.036-.483.149-1.016.612-1.138c.463-.121 1.266.466 1.275-.037c-.084-.985-.281-2.438-.837-3.125a1.577 1.577 0 0 0-1.238-.674zm-64.648 5.388c-.021.008-.043.026-.063.038a.479.479 0 0 0-.037.025c-.161.121-.351.4-.775.7c-.716.814-.844 1.381-.8 3.013c.041.173 1.359 3.837 2.475 6.413c.753 2.677 1.449 5.742.937 8.637c-1.762 3.827-5.305 7.26-8.725 9.125c-1.742.558-3.247.368-3.65-.012l-.012-.013c-1-.673-1.023-1.87-.963-2.075v-.013l.013-.013c2.886-2.01 6.182-3.637 8.762-9.063c.762-2.073.995-3.319.238-6.525c-.295-1.195-.66-2.178-1.475-3.025l.012-.012c.491-.235 1.766.703 1.963.112c-.302-1.531-1.338-3.586-2.513-4.638c-1.028-.934-2.146-1.042-3.087-.187c-1.06.59-1.286 2.709-.775 4.562c.567 1.396 2.097 1.641 3.187 4.45v.013c.023.176.374 2.097-.175 2.875c-.446 1.39-6.17 5.904-6.575 6.175c-.004.004-.033.021-.037.025a.154.154 0 0 0-.025.025a.074.074 0 0 1-.013.012h-.025l-.012-.012v-.013l-.013-.025c-.017-.112.013-.4 0-.862c-.037-.846.313-2.759.288-3.088v-.012a.08.08 0 0 0-.013-.013v-.013h-.012c-1.892 1.221-2.517 4.966-2.863 6.075c-4.79 3.31-10.229 5.772-13.362 9.125c-1.632 2.548 11.241-2.926 12.737-3.587c.013.009.026.025.038.037c.284.313.309 1.404 1.162 2.388c1.338 1.812 4.182 2.929 6.95 2.237c4.641-1.678 7.315-4.841 10.038-8.35c.389-.566.999-1.012 1.562-.575c1.871 4.188 7.264 7.168 14.238 7.475c1.614-1.962.842-2.927.187-3.337c-.202-.134-3.468-1.407-3.975-2.675c-.319-1.18.457-2.226 2.013-3.013c4.477-.541 8.879-1.143 13.137-2.512c.043-1.431.886-3.571 1.45-4.5c.392-.645.643-.709.738-.8c.003-.003.01-.009.012-.013l.013-.012l.012-.013v-.025a.432.432 0 0 0-.012-.125l-.725-.425l-14.288-.063a1.499 1.499 0 0 1-.387-.2l-.025-.025l-.013-.013c-.002-.002-.011-.01-.012-.013l-.013-.025l-.012-.013v-.012l-.013-.013v-.103l.013-.012a.284.284 0 0 1 .012-.025c.07-.094.239-.182.45-.263c3.412-.465 9.473-1.459 9.875-7.287c-.063-3.036-1.3-5.025-5.025-5.575c-2.737.212-4.69 2.86-4.375 5.775c-.131.785.266 2.325-.538 2.5c-5.251.48-10.982 3.77-11.175 6.125h-.013l-.012.013a.672.672 0 0 0-.025.013h-.025a.422.422 0 0 1-.038.012h-.075a3.776 3.776 0 0 1-.05-.012c-.341-.095-.781-.659-.712-1.45c-.2-4.071-1.525-8.677-3.6-12.225c-.74-.741-1.063-1.041-1.275-1.075h-.087c-.001.006-.01.005-.012.005zm13.675 2.15c-.297.052-.584.296-.688.7c-.065.264.127.705-.112.838c-.138.139-.672.058-.65-.675c0-.233-.171-.489-.275-.638c-.104-.068-.162-.087-.35-.087c-.229.009-.237.07-.363.262c-.053.196-.125.39-.125.613c-.028.261-.121.349-.312.387c-.214 0-.164.023-.338-.087c-.103-.113-.237-.157-.237-.35c0-.2-.04-.518-.1-.65c-.091-.12-.248-.17-.413-.213c-.899.003-.952 1.023-.9 1.413c-.067.073-.113 1.916 1.113 2.425c1.645.785 5.566.323 4.612-2.213c0-.235-.064-1.023-.087-1.237c-.168-.392-.479-.54-.775-.488zm55.187 2.262a.274.274 0 0 0-.137.012s-7.623 5.423-7.812 5.613c-.756.672-.378 3.036 0 2.762c.546.21 8.221-4.991 8.075-5.6c.335.02.495-2.675-.126-2.787zm-47.983.804c.311-.033.72.073 1.112.3c.569.329.92.827.875 1.188c-.002.01.002.028 0 .037c-.002.01-.022.029-.025.038l-.012.037a.15.15 0 0 1-.013.025l-.012.025a.528.528 0 0 1-.075.088c-.274.255-.905.219-1.5-.125c-.564-.326-.912-.827-.875-1.188c.001-.01.011-.028.012-.037a.425.425 0 0 1 .05-.125c.008-.014.016-.037.025-.05l.013-.013a.605.605 0 0 1 .062-.062a.721.721 0 0 1 .363-.138zm-66.764 1.375c-3.95.072-9.735 5.178-9.888 8.013c4.168-2.002 8.263-3.929 12.5-6c-.684-1.021-.041-1.941-2.612-2.013zm12.8 1.775c.387.005.796.196 1.012.738a1.282 1.282 0 0 1-.225 1.275v.013c-.004.006-.009.02-.012.025c-.166.214-.748.125-1.163.125c-.502-.022-.749-.104-1.05-.512c-.144-.453.294-.899.488-1.238c.002-.003.011-.009.012-.012a.657.657 0 0 1 .088-.1c.15-.137.409-.266.687-.3c.054-.008.107-.014.163-.014zm100.464 1.573c-.702.086-1.37.751-1.063 1.812c-.193.623.953 2.804 1.25 3.963c.268.824-.344 3.155.213 3.4c.512.274 1.86-1.384 1.813-3.463c.148-1.069-.381-5.007-1.725-5.675a1.253 1.253 0 0 0-.488-.037zm-85.324 3.85c-.621.043-1.175.375-.925 1.25c-.038.634 1.754 1.406 1.862 2.875c.256.605-.383 2.544.15 2.725c.489.202 1.169-1.341 1.425-2.775c.142-.786-.614-3.534-1.9-4.025a2.155 2.155 0 0 0-.612-.05zm25.537 3.487c.047-.003.089 0 .138 0h.025c1.592.432 3.938.477 5.975.688c1.659.105 2.479 1.404.925 1.95c-1.533.525-3.006.935-3.013 3.15c.202 1.097.159 1.673-.012 1.938a.815.815 0 0 1-.05.063l-.013.013l-.012.013l-.013.013l-.012.013l-.025.012a.44.44 0 0 1-.075.038c-.021.007-.052.009-.075.012c-.364.054-.894-.294-1.288-.5c-.945-.678-3.597-2.322-3.975-5.85c-.053-.799.543-1.486 1.5-1.553zm-62.376 2.713c-.1.003-.298.3-.563.637c-2.35 3.744-2.559 9.332-1.262 11c.689.788 1.825 1.134 2.662.888c1.477-.64 2.125-3.631 1.775-4.725c-.493-.771-.883-.893-1.375-.238c-1.039 2.109-1.471.666-1.562-.512c-.159-2.236.057-4.294.3-5.925c.13-.836.125-1.128.025-1.125zm80.064 4.916a1.077 1.077 0 0 0-.55.113c-.037 0-1.682 1.112-2.212 1.887c-.323.246-.287.46-.188.888c.252.579.696.397 1.2.125c.669-.091.992.347.938 1.15c-.309 1.001.137 1.375.137 1.438c0 .063.644.616 1.4.175c1.596-.609 2.59-1.202 4.825-1.688c.587-.012.553-1.582-.375-1.638c-1.21.061-2.327.123-3.538 1.075c-.745.172-.872-.281-1.037-.688c-.189-1.009.426-1.719.3-2.475c.034.033-.376-.334-.9-.362zm51.264 1.912c-.297.009-.609.05-1.063.087c-.49.104-.661.318-.75.913c.035.9.586.856 1.15 1.212c.327.416.539.792-.025 1.475c-.534.49-.915.76-1.45 1.25c-.252.431-.409 1.092.362 1.3c1.426.401 4.725-1.743 4.725-1.788c.534-.401.357-1.162.313-1.162c-.312-.356-1.015-.142-1.488-.2c-.225 0-.964-.109-.612-.762c.293-.407.401-.65.6-1.15c.223-.49.027-.82-.775-1.088a4.465 4.465 0 0 0-.987-.087zm-21.416 43.36c-.003.002-.009.011-.013.013c-2.371.609-2.297 3.07-.775 4.15c-25.037 0-63.46-.425-71.7-.425c-4.61 0-19.195-.55-19.475-.55c3.128 4.575 7.659 5.506 13.588 5.6c11.121 0 62.648-.138 77.312-.138c-1.043 1.851.095 4.83.912 5.375a.576.576 0 0 0 .163.074c.01.003.028-.001.037 0c.971.229 1.398-.474 1.725-.988c1.575.139 10.439.267 11.25-.012c.003-.001.01-.011.013-.012c.548.807 1.093 1.57 2.137 1.438c1.827-.392 3.267-.591 3.313-4.3c0 0-.187-6.321-4.338-5.925c-.982.148-3.737.425-3.737.425c-3.189-.379-5.527-.418-9.112-.55c.331-.42.915-2.121.2-2.737c-.187-.155-.465-.241-.85-.213h-.037c-.003-.001-.01-.012-.013-.013c-.011-.003-.028-.006-.037-.012a.341.341 0 0 1-.063-.063c-.004-.005-.021-.019-.025-.025c-.181-.264-.28-.911-.4-1.075l-.012-.012l-.013-.013l-.025-.013h-.012c-.002.002-.012.001-.013.001zm1.7 9.037c.005-.002.008.002.012 0c3.653.178 7.085.034 10.738.212c.579.492.289 1.62-.088 1.825a.35.35 0 0 1-.062.025c-.014.004-.036 0-.05 0c-.014 0-.036.004-.05 0c-1.188-.03-1.875-.057-3.063-.088a.704.704 0 0 0-.025-.175c-.282-.834-2.32-.778-2.8-.125l-.025.037c-.008.013-.019.037-.025.05a.536.536 0 0 0-.025.062c-.008.025-.009.062-.012.088c-.004.03-.015.069-.013.1c-1.604.193-3.046-.053-4.65-.113c-.47-.583-.415-1.643.138-1.898z\"></path></g>'},sb:{viewBox:\"0 0 301 151\",innerHTML:'<defs><path id=\"IconifyId-17ca80ef3d5-b8efe2-240\" d=\"M.5.5h300v150H.5z\"></path></defs><g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#215B33\" fill-rule=\"nonzero\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#0051BA\" fill-rule=\"nonzero\" d=\"M.5 150.5V.5h300\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-241\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-240\"></use></mask><path stroke=\"#FCD116\" stroke-width=\"15\" d=\"M300.5.5l-300 150\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-241)\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M9.123 15.484l8.816 6.406l-3.367 10.365l8.817-6.406l8.816 6.406l-3.367-10.365l8.817-6.406H26.756L23.389 5.12l-3.368 10.364zm59.223 0l8.817 6.406l-3.368 10.365l8.817-6.406l8.816 6.406l-3.367-10.365l8.817-6.406H85.98L82.612 5.12l-3.368 10.364zM38.734 40.865l8.817 6.405l-3.368 10.365L53 51.229l8.817 6.406l-3.368-10.365l8.817-6.405H56.368L53 30.5l-3.367 10.365zM9.123 66.245l8.816 6.406l-3.367 10.364l8.817-6.405l8.816 6.405l-3.367-10.364l8.817-6.406H26.756L23.389 55.88l-3.368 10.365zm59.223 0l8.817 6.406l-3.368 10.364l8.817-6.405l8.816 6.405l-3.367-10.364l8.817-6.406H85.98L82.612 55.88l-3.368 10.365z\"></path></g>'},sc:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#D62828\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FCD856\" d=\"M.5.5h200l-200 150z\"></path><path fill=\"#FFF\" d=\"M300.5 50.5v100H.5z\"></path><path fill=\"#003F87\" d=\"M.5.5h100l-100 150z\"></path><path fill=\"#007A3D\" d=\"M.5 150.5h300v-50z\"></path></g>'},sd:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#D21034\" d=\"M.5.5h300v50H.5z\"></path><path fill=\"#FFF\" d=\"M.5 50.5h300v50H.5z\"></path><path fill=\"#000\" d=\"M.5 100.5h300v50H.5z\"></path><path fill=\"#007229\" d=\"M.5.5l100 75l-100 75z\"></path></g>'},se:{viewBox:\"0 0 301 189\",innerHTML:'<g fill=\"none\"><path fill=\"#005293\" d=\"M.5.75h300v187.5H.5z\"></path><path fill=\"#FECB00\" d=\"M94.25.75h37.5v187.5h-37.5z\"></path><path fill=\"#FECB00\" d=\"M.5 75.75h300v37.5H.5z\"></path></g>'},sg:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#ED2939\" d=\"M.5.5h300v100H.5z\"></path><path fill=\"#FFF\" d=\"M.5 100.5h300v100H.5zm102.895-50c0 20.768-16.836 37.604-37.604 37.604S28.187 71.268 28.187 50.5s16.836-37.604 37.604-37.604c20.767 0 37.604 16.836 37.604 37.604z\"></path><path fill=\"#ED2939\" d=\"M115.211 50.5c0 19.627-15.911 35.537-35.537 35.537c-19.626 0-35.537-15.911-35.537-35.537c0-19.627 15.911-35.537 35.537-35.537c19.626 0 35.537 15.91 35.537 35.537z\"></path><path fill=\"#FFF\" d=\"M70.444 51.407l-5.108-3.919l-5.107 3.921l1.966-6.319l-5.125-3.895l6.324.013l1.94-6.328l1.942 6.327l6.323-.016l-5.123 3.897zm40.083 0l-5.108-3.919l-5.107 3.921l1.966-6.319l-5.125-3.895l6.324.013l1.94-6.328l1.942 6.327l6.323-.016l-5.123 3.897zM90.506 36.531l-5.108-3.919l-5.107 3.921l1.966-6.319l-5.125-3.895l6.323.013l1.94-6.328l1.942 6.327l6.324-.016l-5.123 3.897zM77.944 75.209l-5.108-3.919l-5.107 3.921l1.966-6.319l-5.125-3.895l6.324.013l1.94-6.328l1.942 6.327l6.323-.016l-5.123 3.897zm25.083 0l-5.108-3.919l-5.107 3.921l1.966-6.319l-5.125-3.895l6.324.013l1.94-6.328l1.942 6.327l6.323-.016l-5.123 3.897z\"></path></g>'},si:{viewBox:\"0 0 300 151\",innerHTML:'<g fill=\"none\"><path fill=\"#EC2227\" d=\"M0 .884h300v150H0z\"></path><path fill=\"#035EA5\" d=\"M0 .884h300v100H0z\"></path><path fill=\"#FFF\" d=\"M0 .884h300v50H0z\"></path><path fill=\"#035EA5\" d=\"M92.908 53.496l1.575-23.246a45.316 45.316 0 0 0-38.81 0l1.575 23.246a25.164 25.164 0 0 0 17.83 22.388a25.161 25.161 0 0 0 17.83-22.388\"></path><path fill=\"#FFF\" d=\"M60.525 56.645A22.361 22.361 0 0 0 75.079 72.94a22.361 22.361 0 0 0 14.554-16.295l-7.277-9.702l-2.911 3.881l-4.366-8.732l-4.366 8.732l-2.911-3.881l-7.277 9.702\"></path><path fill=\"#035EA5\" d=\"M61.175 59.071a4.852 4.852 0 0 0 6.627 1.776a4.849 4.849 0 0 1 4.851 0a4.856 4.856 0 0 0 4.852 0a4.849 4.849 0 0 1 4.851 0a4.852 4.852 0 0 0 6.627-1.776v1.401a4.852 4.852 0 0 1-6.627 1.776a4.849 4.849 0 0 0-4.851 0a4.85 4.85 0 0 1-4.852 0a4.849 4.849 0 0 0-4.851 0a4.852 4.852 0 0 1-6.627-1.776v-1.401z\"></path><path fill=\"#035EA5\" d=\"M61.175 61.872a4.852 4.852 0 0 0 6.627 1.776a4.849 4.849 0 0 1 4.851 0a4.856 4.856 0 0 0 4.852 0a4.849 4.849 0 0 1 4.851 0a4.851 4.851 0 0 0 6.627-1.775v1.4a4.851 4.851 0 0 1-6.627 1.776a4.849 4.849 0 0 0-4.851 0a4.85 4.85 0 0 1-4.852 0a4.849 4.849 0 0 0-4.851 0a4.851 4.851 0 0 1-6.627-1.775v-1.402z\"></path><path fill=\"#FEDC00\" d=\"M75.079 35.421l.364 1.189l1.212-.279l-.848.91l.848.91l-1.212-.28l-.364 1.189l-.364-1.189l-1.212.28l.848-.91l-.848-.91l1.212.279zm-5.458-7.277l.364 1.189l1.211-.279l-.848.91l.848.91l-1.211-.28l-.364 1.189l-.364-1.189l-1.211.28l.847-.91l-.847-.91l1.211.279zm10.915 0l.364 1.189l1.212-.279l-.848.91l.848.91l-1.212-.28l-.364 1.189l-.364-1.189l-1.212.28l.848-.91l-.848-.91l1.212.279z\"></path><path fill=\"#EC2227\" d=\"M57.035 29.632l1.611 23.77a23.762 23.762 0 0 0 16.433 21.014a23.764 23.764 0 0 0 16.432-21.014l1.611-23.77c.45.213.904.42 1.361.618l-1.575 23.246a25.164 25.164 0 0 1-17.829 22.389a25.163 25.163 0 0 1-17.83-22.389L55.673 30.25c.458-.198.912-.405 1.362-.618\"></path></g>'},sk:{viewBox:\"0 0 301 201\",innerHTML:'<defs><path id=\"IconifyId-17ca80ef3d5-b8efe2-242\" d=\"M40.919 100.5C24.472 92.578.946 76.854.946 45.749C.946 14.645 2.433.499 2.433.499h76.971s1.488 14.146 1.488 45.25c0 31.105-23.526 46.829-39.973 54.751z\"></path><path id=\"IconifyId-17ca80ef3d5-b8efe2-243\" d=\"M40.919 100.5C24.472 92.578.946 76.854.946 45.749C.946 14.645 2.433.499 2.433.499h76.971s1.488 14.146 1.488 45.25c0 31.105-23.526 46.829-39.973 54.751z\"></path></defs><g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#EE1C25\" fill-rule=\"nonzero\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#0B4EA2\" fill-rule=\"nonzero\" d=\"M.5.5h300v133.333H.5z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M.5.5h300v66.667H.5z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M105.919 155c-17.927-8.635-43.57-25.774-43.57-59.678c0-33.904 1.62-49.322 1.62-49.322h83.899s1.621 15.419 1.621 49.322c0 33.903-25.642 51.043-43.57 59.678z\"></path><path fill=\"#EE1C25\" fill-rule=\"nonzero\" d=\"M105.919 150.5c-16.447-7.922-39.973-23.646-39.973-54.751c0-31.104 1.487-45.25 1.487-45.25h76.971s1.488 14.146 1.488 45.25c0 31.105-23.526 46.829-39.973 54.751z\"></path><g transform=\"translate(65 50)\"><mask id=\"IconifyId-17ca80ef3d5-b8efe2-244\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-242\"></use></mask><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M44.436 37.594c4.453.072 13.142.246 20.879-2.342c0 0-.204 2.769-.204 5.994c0 3.226.204 5.994.204 5.994c-7.096-2.375-15.86-2.424-20.879-2.361v17.18h-7.034v-17.18c-5.018-.063-13.782-.014-20.878 2.361c0 0 .204-2.768.204-5.994c0-3.225-.204-5.994-.204-5.994c7.737 2.589 16.425 2.414 20.878 2.342V26.805c-4.059-.036-9.908.158-16.521 2.371c0 0 .204-2.769.204-5.994c0-3.225-.204-5.994-.204-5.994c6.604 2.21 12.445 2.407 16.503 2.371c-.208-6.832-2.199-15.443-2.199-15.443s4.096.32 5.734.32c1.639 0 5.734-.32 5.734-.32s-1.99 8.611-2.199 15.443c4.058.035 9.9-.162 16.503-2.371c0 0-.204 2.769-.204 5.994c0 3.226.204 5.994.204 5.994c-6.613-2.213-12.462-2.407-16.521-2.371v10.789z\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-244)\"></path></g><g transform=\"translate(65 50)\"><mask id=\"IconifyId-17ca80ef3d5-b8efe2-245\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-243\"></use></mask><path fill=\"#0B4EA2\" fill-rule=\"nonzero\" d=\"M40.194 110.704L6.116 80.327s4.357-14.091 12.86-14.091c6.757 0 9.224 5.449 9.224 5.449s4.437-11.486 12.719-11.486c8.283 0 12.72 11.486 12.72 11.486s2.465-5.449 9.223-5.449c8.504 0 12.86 14.091 12.86 14.091l-35.528 30.377z\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-245)\"></path></g></g>'},sl:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#1EB53A\" d=\"M.5.5h300v66.667H.5z\"></path><path fill=\"#FFF\" d=\"M.5 67.167h300v66.667H.5z\"></path><path fill=\"#0072C6\" d=\"M.5 133.833h300V200.5H.5z\"></path></g>'},sn:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#00853F\" d=\"M.5.5h100v200H.5z\"></path><path fill=\"#FDEF42\" d=\"M100.5.5h100v200h-100z\"></path><path fill=\"#E31B23\" d=\"M200.5.5h100v200h-100z\"></path><path fill=\"#00853F\" d=\"M118.798 90.199l19.593 14.235l-7.484 23.033l19.593-14.235l19.593 14.235l-7.484-23.033l19.593-14.235h-24.218L150.5 67.166l-7.484 23.033z\"></path></g>'},so:{viewBox:\"0 0 300 200\",innerHTML:'<g fill=\"none\"><path fill=\"#4189DD\" d=\"M0 0h300v200H0z\"></path><path fill=\"#FFF\" d=\"M104.208 85.122l28.301 20.561l-10.81 33.27L150 118.391l28.301 20.562l-10.81-33.27l28.301-20.561H160.81L150 51.852l-10.81 33.27z\"></path></g>'},sr:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#377E3F\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" d=\"M.5 40.5h300v120H.5z\"></path><path fill=\"#B40A2D\" d=\"M.5 60.5h300v80H.5z\"></path><path fill=\"#ECC81D\" d=\"M150.5 64.319l23.511 72.361l-61.554-44.721h76.085l-61.554 44.721z\"></path></g>'},ss:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#078930\" d=\"M.5 105.5h300v45H.5z\"></path><path fill=\"#FFF\" d=\"M.5 45.5h300v60H.5z\"></path><path fill=\"#000\" d=\"M.5.5h300v45H.5z\"></path><path fill=\"#DA121A\" d=\"M.5 53h300v45H.5z\"></path><path fill=\"#0F47AF\" d=\"M.5.5l129.904 75L.5 150.5z\"></path><path fill=\"#FCDD09\" d=\"M19.801 75.5l43.417 14.107l-26.833-36.932v45.65l26.833-36.932z\"></path></g>'},st:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#12AD2B\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFCE00\" d=\"M.5 43.357h300v64.286H.5z\"></path><path fill=\"#D21034\" d=\"M.5.5v150l75-75\"></path><path fill=\"#000\" d=\"M130.12 68.878l12.596 9.151l-4.811 14.807l12.595-9.151l12.596 9.151l-4.811-14.807l12.595-9.151h-15.569L150.5 54.071l-4.811 14.807zm75 0l12.596 9.151l-4.811 14.807l12.595-9.151l12.596 9.151l-4.811-14.807l12.595-9.151h-15.569L225.5 54.071l-4.811 14.807z\"></path></g>'},sy:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#000\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" d=\"M.5.5h300v133.333H.5z\"></path><path fill=\"#CE1126\" d=\"M.5.5h300v66.667H.5z\"></path><path fill=\"#007A3D\" d=\"M189.894 93.804l12.683 9.215l-4.812 15.009l12.735-9.252l12.735 9.252l-4.864-14.971l12.735-9.253h-15.741L210.5 78.833l-4.864 14.971zm-120 0l12.683 9.215l-4.812 15.009l12.735-9.252l12.735 9.252l-4.864-14.971l12.735-9.253H95.365L90.5 78.833l-4.864 14.971z\"></path></g>'},sz:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#3E5EB9\" fill-rule=\"nonzero\" d=\"M.5.498h300v200.004H.5z\"></path><path fill=\"#FFD900\" fill-rule=\"nonzero\" d=\"M.5 36.213h300v128.572H.5z\"></path><path fill=\"#B10C0C\" fill-rule=\"nonzero\" d=\"M.5 50.498h300v100H.5z\"></path><path fill=\"#FFD900\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.675\" d=\"M32.519 98.358h238.632c1.166 0 2.112.959 2.112 2.143h0c0 1.184-.946 2.143-2.112 2.143H32.519c-1.167 0-2.112-.959-2.112-2.143h0c0-1.184.945-2.143 2.112-2.143z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"1.957\" d=\"M246.928 77.642l-12.143 4.286l12.143 4.286l12.143-4.286z\"></path><path fill=\"#FFD900\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.625\" d=\"M63.481 80.5h175.465c.857 0 1.553.64 1.553 1.428h0c0 .789-.695 1.429-1.553 1.429H63.481c-.857 0-1.553-.64-1.553-1.429h0c0-.789.695-1.428 1.553-1.428z\"></path><path stroke=\"#000\" stroke-width=\"1.25\" d=\"M236.222 83.356c.714 0 1.429-.714 1.429-1.428s-.715-1.429-1.429-1.429\"></path><path stroke=\"#000\" stroke-width=\"1.25\" d=\"M234.794 83.356c.713 0 1.429-.714 1.429-1.429c0-.714-.716-1.429-1.429-1.429m-1.429 2.858c.713 0 1.429-.715 1.429-1.429c0-.714-.716-1.429-1.429-1.429\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"1.957\" d=\"M235.5 86.213l-12.143 4.286l12.143 4.286l12.143-4.286z\"></path><path fill=\"#FFD900\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.625\" d=\"M52.052 89.071h175.465c.857 0 1.553.64 1.553 1.429h0c0 .789-.695 1.429-1.553 1.429H52.052c-.857 0-1.553-.64-1.553-1.429h0c0-.789.696-1.429 1.553-1.429z\"></path><path stroke=\"#000\" stroke-width=\"1.25\" d=\"M224.794 91.927c.714 0 1.429-.714 1.429-1.429c0-.714-.716-1.429-1.429-1.429m-1.429 2.858c.713 0 1.429-.714 1.429-1.429c0-.714-.716-1.429-1.429-1.429m-1.429 2.859c.714 0 1.429-.715 1.429-1.429c0-.714-.715-1.429-1.429-1.429\"></path><path fill=\"#3D5DA7\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.5\" d=\"M256.182 98.798c-2.164 3.748 1.661-1.246 10.993 5.028c1.729 1.166 3.24 4.245 3.24 6.38c-.439-.294-.765-.947-1.249-1.371c-.677.678.647 3.788.84 5.258c-1.459-.817-1.318-1.203-1.803-2.207c.097 1.213-.25 4.554.33 5.84c-1.149-.328-1.073-1.254-1.674-1.439c.409 1.456-.356 3.041-.153 4.678c-.672-.666-1.388-1.187-1.7-1.455c-.052.78-1.292 2.828-1.321 3.565c-.57-.345-.725-.882-.82-1.243c-.708.89-3.227 4.179-3.389 5.182c-1.94-1.714-6.912-5.888-7.559-8.103c-.572 1.257-1.4 1.682-3.037 2.6c-.646-3.511-3.065-7.457-1.772-10.467c-.917.543-1.671 1.087-2.587 1.756c.87-5.086 5.296-11.049 11.661-14.002h0z\"></path><path fill=\"#A70000\" fill-rule=\"nonzero\" d=\"M248.108 117.361c.898-1.796 1.726-2.366 2.307-3.522c1.025-2.032 1.172-3.65 2.065-3.413c.893.237.893 1.069-.265 3.068c-1.158 1.998-1.708 2.425-4.107 3.867zm6.076 4.277c-.115-1.367.281-1.938.209-2.819c-.124-1.549-.757-2.613.067-2.689c.824-.075 1.209.453 1.211 2.015c.002 1.562-.239 1.972-1.487 3.493zm4.612 2.682c-.36-1.909-.091-2.756-.321-3.985c-.401-2.164-1.194-3.589-.431-3.787c.764-.198 1.224.502 1.514 2.696c.289 2.194.136 2.797-.762 5.076zm4.795-13.377c-1.126-.854-1.783-.912-2.509-1.461c-1.279-.964-1.926-1.995-2.338-1.483c-.411.512-.119 1.072 1.221 1.961s1.794.959 3.626.983zm-.795 6.339c-.594-1.232-1.218-1.545-1.602-2.338c-.679-1.394-.68-2.599-1.416-2.29c-.736.309-.795.94-.008 2.289c.788 1.348 1.2 1.593 3.026 2.339z\"></path><path fill=\"#3D5DA7\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.5\" d=\"M40.892 102.41c-.121-1.092.112-1.222-.559-2.045c.977.409 1.015 1.496 2.203.724c.437-.226.627-.233.097-1.445c1.239.057 5.298 1.449 5.948 1.481c1.707.078 4.822-1.793 6.985.508c2.076 2.098 1.382 4.276 1.382 7.181c-.834-.4-.432-.597-1.317-1.636c.664 2.54-.036 7.119-.036 9.813c-.34-.65-.291-.368-.624-1.041c-.885 2.459-1.946 2.964-1.946 5.87c-.319-1.139-.011-.898-.366-1.498c-.86 1.866-6.63 3.461-4.407 5.343c-2.007-1.177-2.887-1.054-3.797-2.111c-.392.253-.704.732-1.068 1.389c-3.528-1.624-2.267-5.125-5.031-7.464c-.479.98-.261.838-.777 2.434c-.56-2.217-.713-3.625-1.342-5.255c-.543.903-.494.558-1.48 1.923c-.408-2.701-1.072-3.338-.81-5.125c-1.048.739-.362.439-1.409 1.35c.991-6.92 5.278-12.034 8.354-10.396h0z\"></path><path fill=\"#A70000\" fill-rule=\"nonzero\" d=\"M36.551 113.704c.909-2.228 1.729-2.928 2.316-4.362c1.037-2.521 1.206-4.536 2.078-4.229c.872.308.857 1.345-.309 3.822c-1.166 2.478-1.712 3.004-4.085 4.769zm3.442 5.575c.364-1.998.939-2.725 1.176-4.011c.42-2.262.186-3.946.996-3.858c.81.089.993.942.454 3.192c-.539 2.251-.911 2.783-2.626 4.677zm4.117 3.875c.103-1.937.556-2.692.624-3.94c.123-2.194-.299-3.765.473-3.773c.773-.009 1.048.78.811 2.977c-.237 2.195-.522 2.744-1.908 4.736zm8.841-12.664c-1.69-1.685-2.713-1.999-3.803-3.082c-1.921-1.902-2.85-3.688-3.533-3.055c-.684.633-.272 1.582 1.75 3.392c2.023 1.811 2.726 2.075 5.586 2.745zM51.923 117c-1.102-1.691-1.909-2.129-2.62-3.218c-1.253-1.912-1.684-3.555-2.395-3.148c-.711.407-.552 1.266.807 3.119c1.358 1.854 1.904 2.195 4.208 3.247z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.988\" d=\"M221.93 100.5c-14.286 14.284-33.334 42.856-71.429 42.856c-33.334 0-57.143-28.571-71.429-42.856c14.285-14.287 38.095-42.859 71.429-42.859c38.095.001 57.143 28.572 71.429 42.859z\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M145.515 72.55c3.801 4.275.627 5.998 4.65 6.279c4.243.312 1.838 4.517 5.406 4.663c2.495.109-.249 10.076 2.153 13.365c2.446 3.429 4.495 1.005 4.538 3.482c.042 2.562-6.658 2.303-6.776 10.196c-.196 4.548-5.655 4.839-5.915 7.765c-.324 2.752 10.753 4.298 10.606 6.762c-.152 2.457-11.961 2.072-12.475 4.874c-.264 2.516 16.223 4.579 17.549 11.856c-2.46.805-9.46 1.563-14.75 1.566c-33.329.024-57.141-28.574-71.426-42.859C93.36 86.212 117.17 57.64 150.504 57.64c0 0-9.895 9.041-4.985 14.908l-.004.002z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M105.738 85.261h3.463V96.69h-3.463zm0 19.048h3.463v11.429h-3.463zm6.926-19.048h3.463V96.69h-3.463zm0 19.048h3.463v11.429h-3.463zm6.926-19.048h3.463V96.69h-3.463zm0 19.048h3.463v11.429h-3.463zm6.928-19.048h3.463V96.69h-3.463zm0 19.048h3.463v11.429h-3.463zm6.925-19.048h3.463V96.69h-3.463zm0 19.048h3.463v11.429h-3.463zm6.926-19.048h3.463V96.69h-3.463zm0 19.048h3.463v11.429h-3.463z\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M158.119 85.261h3.463V96.69h-3.463zm0 19.048h3.463v11.429h-3.463zm6.926-19.048h3.463V96.69h-3.463zm0 19.048h3.463v11.429h-3.463zm6.926-19.048h3.463V96.69h-3.463zm0 19.048h3.463v11.429h-3.463zm6.928-19.048h3.463V96.69h-3.463zm0 19.048h3.463v11.429h-3.463zm6.925-19.048h3.463V96.69h-3.463zm0 19.048h3.463v11.429h-3.463zm6.926-19.048h3.463V96.69h-3.463zm0 19.048h3.463v11.429h-3.463z\"></path><path fill=\"#3D5DA7\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.5\" d=\"M127.401 65.25c-1.979 3.827 3.465-1.273 11.999 5.134c1.582 1.19 3.849 5.894 3.849 8.073c-1.817-.386-5.035-2.18-5.035-2.18s3.776 3.782 3.776 8.142c-1.334-.834-2.001-.709-2.445-1.733c0 1.412 1.186 2.311 1.186 4.491a17.62 17.62 0 0 0-2.593-1.73c1.258 2.18-2.294 6.409-.516 7.82c-3.109-.45-6.29-2.436-7.549-4.616c-.667.45-.739 1.156-.765 1.908c.098.081-4.733-3.586-4.289-4.994c-.648.909-.739 1.408-.887 2.433c-1.775-1.75-3.401-3.5-3.993-5.763c-.789 1.024-.838 1.024-1.627 2.049c-.591-3.586-.591-3.458.591-6.531c-.838.555-1.528 1.11-2.366 1.793c.795-5.192 4.843-11.281 10.664-14.296h0z\"></path><path fill=\"#A70000\" fill-rule=\"nonzero\" d=\"M122.521 83.952c.316-2.638 1.006-3.631 1.212-5.329c.368-2.987-.068-5.17.99-5.115c1.058.055 1.363 1.157.84 4.138c-.523 2.979-.964 3.703-3.042 6.306zm5.527 4.829c-.214-2.225.196-3.173.06-4.606c-.235-2.522-1.014-4.231-.091-4.388c.923-.157 1.389.689 1.489 3.235c.1 2.546-.148 3.225-1.458 5.759zm8.625 3.939c-.938-1.925-1.744-2.5-2.35-3.739c-1.07-2.178-1.293-3.957-2.118-3.634c-.825.322-.78 1.242.412 3.374s1.73 2.567 4.056 3.999zm2.982-17.245c-2.389-1.257-3.616-1.273-5.155-2.081c-2.712-1.417-4.289-3.018-4.849-2.137c-.561.881.187 1.757 2.982 3.045c2.794 1.289 3.653 1.35 7.022 1.173zm.876 7.202c-1.74-1.447-2.769-1.66-3.89-2.591c-1.977-1.634-2.96-3.238-3.62-2.588c-.66.65-.219 1.509 1.855 3.048c2.074 1.54 2.783 1.731 5.655 2.131z\"></path></g>'},td:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#002664\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FECB00\" d=\"M100.5.5h200v200h-200z\"></path><path fill=\"#C60C30\" d=\"M200.5.5h100v200h-100z\"></path></g>'},tg:{viewBox:\"0 0 300 187\",innerHTML:'<g fill=\"none\"><path fill=\"#006A4E\" d=\"M0 .75h300v185.5H0z\"></path><path fill=\"#FFCE00\" d=\"M0 37.85h300v37.1H0zm0 74.2h300v37.1H0z\"></path><path fill=\"#D21034\" d=\"M0 .75h111.248v111.3H0z\"></path><path fill=\"#FFF\" d=\"M22.12 45.509L42.827 60.56l-7.91 24.354l20.707-15.052l20.707 15.052l-7.909-24.354l20.707-15.051H63.534l-7.91-24.354l-7.909 24.354z\"></path></g>'},th:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#ED1C24\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFF\" d=\"M.5 33.833h300v133.333H.5z\"></path><path fill=\"#241D4F\" d=\"M.5 67.166h300v66.667H.5z\"></path></g>'},tj:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#060\" fill-rule=\"nonzero\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M.5.5h300v107.143H.5z\"></path><path fill=\"#C00\" fill-rule=\"nonzero\" d=\"M.5.5h300v42.857H.5z\"></path><path fill=\"#F8C300\" fill-rule=\"nonzero\" d=\"M144.5 73.507a2.678 2.678 0 0 1 4.993 1.264v10.714h2.014V74.771a2.678 2.678 0 0 1 4.993-1.264a6.321 6.321 0 1 0-12 0\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M145.936 70.71a4.285 4.285 0 0 1 4.564 2.047a4.285 4.285 0 0 1 4.564-2.047a4.606 4.606 0 0 0-9.128 0\"></path><path fill=\"#F8C300\" fill-rule=\"nonzero\" d=\"M149.493 81.206a8.143 8.143 0 0 1-13.681 5.211a8.464 8.464 0 0 1-12.8 3.743c.782 7.805 12.483 6.212 13.354-1.378c3.676 6.453 11.759 4.605 14.124-3.3l-.997-4.276zm2.014 0a8.143 8.143 0 0 0 13.681 5.211a8.464 8.464 0 0 0 12.8 3.743c-.782 7.805-12.483 6.212-13.354-1.378c-3.676 6.453-11.759 4.605-14.124-3.3l.997-4.276z\"></path><path fill=\"#F8C300\" fill-rule=\"nonzero\" d=\"M141.68 95.066c-1.633 3.524-4.896 4.13-7.75 1.285c0 0 1.147-.811 2.376-1.034c-.23-.98.242-2.336.907-3.07c.698.477 1.672 1.433 1.92 2.544c1.721-.222 2.547.275 2.547.275zm12.771-.399c-2.184 3.211-5.502 3.277-7.855.006c0 0 1.264-.613 2.512-.634c-.068-1.005.619-2.266 1.395-2.881c.611.584 1.417 1.686 1.48 2.823c1.735.061 2.468.686 2.468.686zm12.666 1.686c-2.678 2.813-5.963 2.338-7.751-1.273c0 0 1.347-.399 2.582-.216c.097-1.002.979-2.135 1.845-2.615c.508.676 1.123 1.895 1.001 3.026c1.701.342 2.323 1.078 2.323 1.078z\"></path><path stroke=\"#F8C300\" stroke-width=\"4\" d=\"M129.714 102.928a72.864 72.864 0 0 1 41.572 0\"></path><path fill=\"#F8C300\" fill-rule=\"nonzero\" d=\"M150.5 46.571l3.149 9.691l-8.244-5.989h10.19l-8.244 5.989zm-15 4.02l3.149 9.691l-8.244-5.99h10.19l-8.244 5.99zm-10.981 10.98l3.149 9.691l-8.244-5.989h10.19l-8.243 5.989zm-4.019 15l3.149 9.691l-8.244-5.989h10.19l-8.244 5.989zm45-25.98l-3.149 9.691l8.244-5.99h-10.19l8.244 5.99zm10.981 10.98l-3.149 9.691l8.244-5.989h-10.19l8.244 5.989zm4.019 15l-3.149 9.691l8.244-5.989h-10.19l8.244 5.989z\"></path></g>'},tl:{viewBox:\"0 0 300 150\",innerHTML:'<g fill=\"none\"><path fill=\"#D82727\" d=\"M0 0h300v150H0z\"></path><path fill=\"#FFC71F\" d=\"M0 0l150.226 75L0 150z\"></path><path fill=\"#000\" d=\"M0 0l74.933 75L0 150z\"></path><path fill=\"#FFF\" d=\"M33.499 65.953l15.823-6.594l-8.698 14.932l10.969 12.943l-16.854-4.09L25.703 98L24.31 80.57L7.433 76.78l15.948-6.606l-1.351-17.276z\"></path></g>'},tn:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#E70013\" d=\"M.5.5h300v200H.5z\"></path><circle cx=\"150.5\" cy=\"100.5\" r=\"50\" fill=\"#FFF\"></circle><circle cx=\"150.5\" cy=\"100.5\" r=\"37.5\" fill=\"#E70013\"></circle><circle cx=\"160.5\" cy=\"100.5\" r=\"30\" fill=\"#FFF\"></circle><path fill=\"#E70013\" d=\"M138 100.5l40.703-13.225l-25.156 34.624V79.102l25.156 34.624z\"></path></g>'},to:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#C10000\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFF\" d=\"M.5.5h125v75H.5z\"></path><path fill=\"#C10000\" d=\"M53.625 9.875h18.75v56.25h-18.75z\"></path><path fill=\"#C10000\" d=\"M34.875 28.625h56.25v18.75h-56.25z\"></path></g>'},tr:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#E30A17\" d=\"M.5.5h300v200H.5z\"></path><circle cx=\"106.75\" cy=\"100.5\" r=\"50\" fill=\"#FFF\"></circle><circle cx=\"119.25\" cy=\"100.5\" r=\"40\" fill=\"#E30A17\"></circle><path fill=\"#FFF\" d=\"M146.334 100.5l45.225 14.695l-27.951-38.472v47.553l27.951-38.471z\"></path></g>'},tt:{viewBox:\"0 0 301 181\",innerHTML:'<g fill=\"none\"><path fill=\"#CE1126\" d=\"M.5.5h300v180H.5z\"></path><path fill=\"#FFF\" d=\"M.5.5l208.248 180H300.5L92.253.5z\"></path><path fill=\"#000\" d=\"M15.792.5l208.247 180h61.169L76.961.5z\"></path></g>'},tv:{viewBox:\"0 0 301 151\",innerHTML:'<defs><path id=\"IconifyId-17ca80ef3d5-b8efe2-246\" d=\"M.5.5h150v75H.5z\"></path><path id=\"IconifyId-17ca80ef3d5-b8efe2-247\" d=\"M75.5 38h75v37.5L75.5 38zm0 0v37.5H.5l75-37.5zm0 0H.5V.5l75 37.5zm0 0V.5h75L75.5 38z\"></path></defs><g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#5B97B1\" fill-rule=\"nonzero\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#00247D\" fill-rule=\"nonzero\" d=\"M.5.5h150v75H.5z\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-248\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-246\"></use></mask><path stroke=\"#FFF\" stroke-width=\"18\" d=\"M.5.5l150 75m0-75l-150 75\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-248)\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-249\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-247\"></use></mask><path stroke=\"#CF142B\" stroke-width=\"12\" d=\"M.5.5l150 75m0-75l-150 75\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-249)\"></path><path stroke=\"#FFF\" stroke-width=\"30\" d=\"M75.5.5v75M.5 38h150\"></path><path stroke=\"#CF142B\" stroke-width=\"18\" d=\"M75.5.5v75M.5 38h150\"></path><path fill=\"#FFCE00\" fill-rule=\"nonzero\" d=\"M273.409 18.51l2.8-8.659l2.799 8.659l9.084-.006l-7.354 5.343l2.813 8.654l-7.343-5.356l-7.345 5.355l2.815-8.654l-7.352-5.344zM246.81 94.15l2.8-8.659l2.8 8.659l9.083-.007l-7.353 5.344l2.813 8.654l-7.344-5.356l-7.345 5.355l2.815-8.654l-7.352-5.345zm26.599-17.123l2.8-8.659l2.799 8.659l9.084-.006l-7.354 5.343l2.813 8.654l-7.343-5.356l-7.345 5.355l2.815-8.654l-7.352-5.345zm-114.375 54.86l2.801-8.659l2.799 8.659l9.083-.007l-7.353 5.344l2.813 8.654l-7.344-5.356l-7.344 5.355l2.815-8.654l-7.353-5.345zm41.273-31.892l-2.8 8.658l-2.8-8.659l-9.083.007l7.353-5.343l-2.813-8.655l7.344 5.357l7.344-5.356l-2.814 8.654l7.352 5.345zm31.501-43.566l-2.8 8.659l-2.799-8.659l-9.084.006l7.354-5.343l-2.813-8.654l7.343 5.356l7.345-5.355l-2.815 8.654l7.352 5.344zm26.475-9.048l-2.801 8.658l-2.799-8.658l-9.083.006l7.353-5.343l-2.813-8.655l7.344 5.357l7.344-5.355l-2.815 8.653l7.353 5.345zm-26.475 75.402l-2.8 8.658l-2.799-8.659l-9.084.007l7.354-5.343l-2.813-8.655l7.343 5.357l7.345-5.356l-2.815 8.654l7.352 5.345zm-31.501 7.708l-2.8 8.658l-2.8-8.659l-9.083.007l7.353-5.344l-2.813-8.654l7.344 5.356l7.344-5.355l-2.814 8.654l7.352 5.345z\"></path></g>'},tw:{viewBox:\"0 0 300 200\",innerHTML:'<g fill=\"none\"><path fill=\"#ED1E24\" d=\"M0 0h300v200H0z\"></path><path fill=\"#2B2F84\" d=\"M0 0h150v100H0z\"></path><circle cx=\"74.976\" cy=\"49.991\" r=\"18.69\" fill=\"#FFF\"></circle><path fill=\"#FFF\" d=\"M79.361 28.94l-4.386-16.367l-4.396 16.408c2.314-.56 5.83-.69 8.782-.041zm-11.112.628L56.267 17.586l4.396 16.408c1.724-1.642 4.704-3.512 7.586-4.426zm-9.31 6.099l-16.368-4.386l12.011 12.011c.672-2.282 2.317-5.392 4.357-7.625zm-5.013 9.938l-16.368 4.386l16.408 4.397c-.56-2.314-.691-5.83-.04-8.783zm.627 11.113L42.571 68.7l16.408-4.396c-1.642-1.724-3.513-4.704-4.426-7.586zm6.1 9.31l-4.386 16.368l12.012-12.012c-2.284-.671-5.394-2.316-7.626-4.356zm9.937 5.013l4.386 16.368l4.396-16.408c-2.313.56-5.828.691-8.782.04zm11.113-.627l11.982 11.982l-4.396-16.408c-1.723 1.642-4.703 3.513-7.586 4.426zm9.31-6.1l16.368 4.386L95.37 56.689c-.672 2.283-2.317 5.393-4.357 7.625zm5.014-9.937l16.368-4.386l-16.408-4.397c.56 2.314.69 5.829.04 8.783zm-.628-11.113l11.982-11.982l-16.408 4.396c1.643 1.723 3.513 4.703 4.426 7.586zm-6.099-9.31l4.386-16.368l-12.012 12.011c2.283.671 5.393 2.316 7.626 4.357z\"></path></g>'},tz:{viewBox:\"0 0 301 201\",innerHTML:'<defs><path id=\"IconifyId-17ca80ef3d5-b8efe2-250\" d=\"M.5.5h300v200H.5z\"></path><path id=\"IconifyId-17ca80ef3d5-b8efe2-251\" d=\"M.5.5h300v200H.5z\"></path></defs><g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#1EB53A\" fill-rule=\"nonzero\" d=\"M.5.5h300l-300 200\"></path><path fill=\"#00A3DD\" fill-rule=\"nonzero\" d=\"M.5 200.5h300V.5\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-252\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-250\"></use></mask><path stroke=\"#FCD116\" stroke-width=\"70\" d=\"M.5 200.5l300-200\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-252)\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-253\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-251\"></use></mask><path stroke=\"#000\" stroke-width=\"50\" d=\"M.5 200.5l300-200\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-253)\"></path></g>'},ua:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#005BBB\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FFD500\" d=\"M.5 100.5h300v100H.5z\"></path></g>'},ug:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#000\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FCDC04\" d=\"M.5 33.833h300v33.333H.5z\"></path><path fill=\"#D90000\" d=\"M.5 67.166h300v33.333H.5z\"></path><path fill=\"#FCDC04\" d=\"M.5 133.833h300v33.333H.5z\"></path><path fill=\"#D90000\" d=\"M.5 167.166h300v33.333H.5z\"></path><circle cx=\"150.5\" cy=\"100.5\" r=\"31.167\" fill=\"#FFF\"></circle><path fill=\"#D90000\" stroke=\"#000\" stroke-width=\"0.333\" d=\"M145.007 76.63l-2.021-3.723c.78-.78 2.092-1.383 4.185-1.383c0 .142-.213 4.078-.213 4.078l-1.951 1.028z\"></path><path fill=\"#FCDC04\" stroke=\"#000\" stroke-width=\"0.333\" d=\"M146.957 75.637l.284-4.114s4.185-.248 6.454 2.482c.035-.036-2.234 3.191-2.234 3.191l-4.504-1.559z\"></path><path fill=\"#D90000\" stroke=\"#000\" stroke-width=\"0.333\" d=\"M151.532 77.162l2.057-3.191c1.383 1.454 1.95 2.482 2.163 4.043c.035.036-3.262.815-3.262.78c-.001-.036-.923-1.597-.958-1.632z\"></path><path fill=\"#000\" stroke=\"#000\" stroke-width=\"0.333\" d=\"M146.035 129.857s3.866-4.433 11.383-3.475c-1.135-1.844-4.787-1.632-4.787-1.632s-1.135-8.617-.248-9.043c.886-.425 4.646.035 4.646.035c.496 0 1.347-1.348.674-2.199c-.674-.851-2.66-4.114-1.844-4.752c.816-.638 5.248.355 5.248.355l-12.518-16.029s-1.277-6.028 1.277-8.936c3.085-2.553 2.766-5.319 2.659-5.284c-.426-2.801-4.681-4.823-7.553-2.234c-1.702 2.057-.567 3.617-.567 3.617s-4.468 1.206-4.646 1.986c-.177.78 5.036-.142 5.036-.142l-.497 3.581s-10.142 9.22-2.376 17.199c.071-.035.248-.355.248-.355s2.73 3.369 5.603 4.114c2.695 2.766 2.447 2.341 2.447 2.341s.532 4.362.035 5.213c-.674-.213-7.553-.461-8.582-.071c-.922.284-4.468.106-3.582 5.887a944.163 944.163 0 0 1 1.277-2.943s-.106 2.092.745 2.837c-.142-2.199.815-3.688.815-3.688s.177 2.411.709 2.766s.532-3.901 3.475-3.546s5.071.248 5.071.248s.993 8.333.674 9.114c-2.128-.496-7.199.213-7.518 1.49c2.979-.177 4.362.177 4.362.177s-2.41 2.128-1.666 3.369z\"></path><path fill=\"#9CA69C\" stroke=\"#9CA69C\" stroke-width=\"0.333\" d=\"M147.231 84.387s-7.38 8.134-4.196 14.358c.169-.868.095-1.413.202-1.378c-.177-.106.915.749.832.582c.023-.45-.333-1.414-.333-1.414l.999.25l-.583-1.082l1.415.166s-.499-1.331-.333-1.331c.166 0 1.165.083 1.165.083c-2.099-3.766-.119-6.894.832-10.234zm2.563-6.977s.39 2.801-1.135 3.617c-.248.177-1.206.497-1.064 1.064c.177.78.603.638 1.206.496c1.596-.283 3.44-3.688.993-5.177z\"></path><circle cx=\"146.5\" cy=\"79.833\" r=\"1\" fill=\"#FFF\"></circle><path fill=\"#D90000\" stroke=\"#000\" stroke-width=\"0.333\" d=\"M144.688 82.162c-.39.319-2.447 2.447-.426 3.227c2.092-.568 1.525-.957 1.986-1.419c.012-.957-1.04-1.205-1.56-1.808z\"></path><path fill=\"#9CA69C\" stroke=\"#9CA69C\" stroke-width=\"0.333\" d=\"M149.156 102.269c-.106.461-.567 2.163.071 3.475c1.773-.745 2.589-.532 3.192-.142c-1.455-1.17-2.022-1.667-3.263-3.333z\"></path><path fill=\"#FFF\" stroke=\"#FFF\" stroke-width=\"0.333\" d=\"M152.205 110.318l.106 3.972s1.383.248 2.021 0c.64-.248-.035-2.766-2.127-3.972z\"></path><path fill=\"#9CA69C\" stroke=\"#000\" stroke-width=\"0.333\" d=\"M162.241 110.815s-2.553-6.17-9.078-7.731c-6.525-1.56-5.674-8.51-5.142-8.936c.284-.603.497-1.525 2.376-.638c1.88.886 10.532 5.248 11.773 5.461c1.241.212.177 11.986.071 11.844z\"></path><path fill=\"#D90000\" stroke=\"#000\" stroke-width=\"0.333\" d=\"M156.035 103.049c-.106.071 8.723 5.213 6.064 9.646c2.518-1.667 1.702-4.575 1.702-4.575s2.057 5.355-2.943 7.979c.532.461.887.354.887.354l-.851.851s-.39.638 2.979-.993c-.922.745-.993 1.276-.993 1.276s.248.71 2.447-1.206c-1.773 1.915-2.163 2.908-2.163 2.873c4.787-.426 15.213-15.993-3.298-20.603c.993 1.029.851.887.851.887l-4.682 3.511z\"></path><path fill=\"#FFF\" stroke=\"#000\" stroke-width=\"0.333\" d=\"M156.425 101.524c1.206.851 1.631 1.135 1.773 1.56c-1.099-.248-2.092-.177-2.092-.177s-2.376-2.27-2.801-2.447c-.319 0-2.163-1.17-2.163-1.17c-.922-.461-1.773-3.652 1.632-2.73c3.51 1.666 4.007 1.809 4.007 1.809l4.185 1.312l2.411 2.695s-4.291-2.128-4.823-2.163c1.17.957 1.844 2.27 1.844 2.27c-1.36-.392-2.542-.746-3.973-.959z\"></path><path fill=\"#000\" stroke=\"#FFF\" stroke-width=\"0.333\" d=\"M139.723 82.481s4.114-.993 4.61-.851\"></path></g>'},us:{viewBox:\"0 0 300 159\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M0 .552h300v157.895H0z\"></path><path fill=\"#B22234\" d=\"M0 .552h300v12.146H0zm0 24.292h300V36.99H0zm0 24.291h300v12.146H0zm0 24.292h300v12.146H0zm0 24.291h300v12.146H0zm0 24.292h300v12.146H0zm0 24.291h300v12.146H0z\"></path><path fill=\"#3C3B6E\" d=\"M0 .552h120v85.02H0z\"></path><path fill=\"#FFF\" d=\"M5.638 7.454l2.859 2.077l-1.092 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.092 3.361l2.859-2.077l2.859 2.077l-1.092-3.361l2.858-2.077H31.25l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.092 3.361l2.859-2.077l2.858 2.077l-1.092-3.361l2.859-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.092 3.361l2.859-2.077l2.858 2.077l-1.092-3.361l2.859-2.077h-3.534l-1.091-3.36l-1.092 3.36zm19.894 0l2.859 2.077l-1.092 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.092 3.361l2.859-2.077l2.858 2.077l-1.092-3.361l2.859-2.077h-3.533l-1.092-3.36l-1.092 3.36zm-89.527 8.527l2.859 2.077l-1.092 3.36l2.859-2.077l2.858 2.077l-1.092-3.36l2.859-2.077h-3.534l-1.091-3.361l-1.092 3.361zm19.895 0l2.859 2.077l-1.092 3.36l2.858-2.077l2.859 2.077l-1.092-3.36l2.858-2.077h-3.533l-1.092-3.361l-1.092 3.361zm19.895 0l2.859 2.077l-1.092 3.36L60 19.341l2.859 2.077l-1.092-3.36l2.858-2.077h-3.533L60 12.62l-1.092 3.361zm19.895 0l2.858 2.077l-1.092 3.36l2.859-2.077l2.858 2.077l-1.092-3.36l2.859-2.077h-3.533l-1.092-3.361l-1.092 3.361zm19.894 0l2.859 2.077l-1.092 3.36l2.858-2.077l2.859 2.077l-1.092-3.36l2.858-2.077h-3.533l-1.092-3.361l-1.091 3.361zM5.638 24.507l2.859 2.077l-1.092 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.092 3.361l2.859-2.077l2.859 2.077l-1.092-3.361l2.858-2.077H31.25l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.092 3.361l2.859-2.077l2.858 2.077l-1.092-3.361l2.859-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.092 3.361l2.859-2.077l2.858 2.077l-1.092-3.361l2.859-2.077h-3.534l-1.091-3.36l-1.092 3.36zm19.894 0l2.859 2.077l-1.092 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.092 3.361l2.859-2.077l2.858 2.077l-1.092-3.361l2.859-2.077h-3.533l-1.092-3.36l-1.092 3.36zm-89.281 8.555l2.858 2.077l-1.091 3.36l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.076h-3.533l-1.092-3.361l-1.092 3.361zm19.895 0l2.858 2.077l-1.092 3.36l2.859-2.077l2.858 2.077l-1.092-3.361l2.859-2.076h-3.533l-1.092-3.361l-1.092 3.361zm19.895 0l2.858 2.077l-1.092 3.36l2.859-2.077l2.858 2.077l-1.092-3.361l2.859-2.076h-3.534l-1.091-3.361l-1.092 3.361zm19.894 0l2.859 2.077l-1.092 3.36l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.076h-3.533l-1.092-3.361l-1.092 3.361zm19.895 0l2.858 2.077l-1.092 3.36l2.859-2.077l2.858 2.077l-1.092-3.361l2.859-2.076h-3.533l-1.092-3.361l-1.092 3.361zM5.94 41.517l2.859 2.076l-1.092 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.076h-3.533l-1.092-3.361l-1.092 3.361zm19.895 0l2.858 2.076l-1.092 3.361l2.859-2.077l2.858 2.077l-1.091-3.361l2.858-2.076h-3.533l-1.092-3.361l-1.092 3.361zm19.895 0l2.858 2.076l-1.092 3.361l2.859-2.077l2.858 2.077l-1.092-3.361l2.859-2.076h-3.533l-1.092-3.361l-1.092 3.361zm19.894 0l2.859 2.076l-1.092 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.859-2.076h-3.534l-1.092-3.361l-1.091 3.361zm19.895 0l2.858 2.076l-1.091 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.076h-3.533l-1.092-3.361l-1.092 3.361zm19.895 0l2.858 2.076l-1.092 3.361l2.859-2.077l2.858 2.077l-1.092-3.361l2.859-2.076h-3.533l-1.092-3.361l-1.092 3.361zM6.127 58.299l2.858 2.077l-1.092 3.361l2.859-2.077l2.858 2.077l-1.092-3.361l2.859-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.894 0l2.859 2.077l-1.092 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.091 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.092 3.361l2.859-2.077l2.858 2.077l-1.091-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.894 0l2.859 2.077l-1.092 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.859-2.077h-3.534l-1.092-3.36l-1.091 3.36zm19.895 0l2.858 2.077l-1.091 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36zM5.884 75.279l2.858 2.077l-1.092 3.361l2.859-2.077l2.858 2.077l-1.092-3.361l2.859-2.077H11.6l-1.091-3.36l-1.092 3.36zm19.894 0l2.859 2.077l-1.092 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.091 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.077H51.39l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.092 3.361l2.859-2.077l2.858 2.077l-1.091-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.894 0l2.859 2.077l-1.092 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.859-2.077h-3.534l-1.092-3.36l-1.091 3.36zm19.895 0l2.858 2.077l-1.091 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36zM15.89 49.824l2.858 2.077l-1.091 3.36l2.858-2.077l2.859 2.077l-1.092-3.36l2.858-2.077h-3.533l-1.092-3.361l-1.092 3.361zm19.895 0l2.858 2.077l-1.092 3.36l2.859-2.077l2.858 2.077l-1.091-3.36l2.858-2.077h-3.533l-1.092-3.361l-1.092 3.361zm19.895 0l2.858 2.077l-1.092 3.36l2.859-2.077l2.858 2.077l-1.092-3.36l2.859-2.077h-3.533l-1.092-3.361l-1.092 3.361zm19.894 0l2.859 2.077l-1.092 3.36l2.858-2.077l2.859 2.077l-1.092-3.36l2.858-2.077h-3.533l-1.092-3.361l-1.092 3.361zm19.895 0l2.858 2.077l-1.092 3.36l2.859-2.077l2.858 2.077l-1.091-3.36l2.858-2.077h-3.533l-1.092-3.361l-1.092 3.361zM15.831 66.777l2.859 2.077l-1.092 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.092 3.361l2.859-2.077l2.859 2.077l-1.092-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.092 3.361l2.859-2.077l2.858 2.077l-1.092-3.361l2.859-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.894 0l2.859 2.077l-1.092 3.361l2.858-2.077l2.859 2.077l-1.092-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36zm19.895 0l2.858 2.077l-1.092 3.361l2.859-2.077l2.858 2.077l-1.091-3.361l2.858-2.077h-3.533l-1.092-3.36l-1.092 3.36z\"></path></g>'},uy:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#0038A8\" fill-rule=\"nonzero\" d=\"M111.611 22.722H300.5v22.222H111.611zm0 44.444H300.5v22.222H111.611zM.5 111.611h300v22.222H.5zm0 44.444h300v22.222H.5z\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-width=\"0.2\" d=\"M53.54 66.92l3.678 5.492C42.104 83.35 51.332 89.818 40.621 93.319c6.662-6.501-1.049-7.049 4.564-20.599\"></path><path stroke=\"#000\" stroke-width=\"0.2\" d=\"M50.911 68.476c-8.339 13.744-2.87 21.301-10.29 24.842\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.2\" d=\"M56.056 56.055h7.333l-7.333 40.333l-7.333-40.333h7.333v40.333\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-width=\"0.2\" d=\"M46.595 61.959l-1.283 6.484c-18.421-2.953-16.47 8.145-26.519 3.047c9.308.114 4.243-5.726 17.793-11.339\"></path><path stroke=\"#000\" stroke-width=\"0.2\" d=\"M43.635 61.2C28.02 65.022 26.544 74.233 18.793 71.49\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.2\" d=\"M56.056 56.055l5.186 5.186l-33.705 23.334L50.872 50.87l5.184 5.185l-28.52 28.52\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-width=\"0.2\" d=\"M45.191 53.54l-5.492 3.678c-10.938-15.114-17.406-5.887-20.907-16.597c6.501 6.661 7.049-1.049 20.599 4.564\"></path><path stroke=\"#000\" stroke-width=\"0.2\" d=\"M43.635 50.911c-13.744-8.339-21.301-2.87-24.842-10.29\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.2\" d=\"M56.056 56.055v7.333l-40.333-7.333l40.333-7.333v7.333H15.723\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-width=\"0.2\" d=\"M50.153 46.594l-6.485-1.283c2.953-18.421-8.145-16.47-3.047-26.519c-.113 9.307 5.726 4.242 11.339 17.793\"></path><path stroke=\"#000\" stroke-width=\"0.2\" d=\"M50.911 43.634c-3.822-15.615-13.033-17.091-10.29-24.842\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.2\" d=\"M56.056 56.055l-5.185 5.186l-23.335-33.705L61.241 50.87l-5.185 5.185l-28.52-28.52\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-width=\"0.2\" d=\"M58.572 45.191l-3.678-5.492c15.114-10.938 5.887-17.406 16.597-20.907c-6.661 6.501 1.049 7.049-4.563 20.599\"></path><path stroke=\"#000\" stroke-width=\"0.2\" d=\"M61.201 43.634c8.339-13.744 2.87-21.301 10.29-24.842\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.2\" d=\"M56.056 56.055h-7.333l7.333-40.333l7.333 40.333h-7.333V15.722\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-width=\"0.2\" d=\"M65.517 50.152l1.283-6.484c18.421 2.953 16.47-8.145 26.519-3.047c-9.308-.114-4.243 5.726-17.793 11.339\"></path><path stroke=\"#000\" stroke-width=\"0.2\" d=\"M68.477 50.911c15.615-3.822 17.091-13.033 24.842-10.29\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.2\" d=\"M56.056 56.055l-5.185-5.186l33.705-23.334L61.241 61.24l-5.185-5.185l28.52-28.52\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-width=\"0.2\" d=\"M66.92 58.571l5.492-3.678C83.35 70.007 89.818 60.78 93.319 71.49c-6.501-6.662-7.049 1.049-20.599-4.564\"></path><path stroke=\"#000\" stroke-width=\"0.2\" d=\"M68.477 61.2c13.744 8.339 21.301 2.87 24.842 10.29\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.2\" d=\"M56.056 56.055v-7.333l40.333 7.333l-40.333 7.333v-7.333h40.333\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-linecap=\"square\" stroke-width=\"0.2\" d=\"M61.959 65.516l6.485 1.283c-2.953 18.421 8.145 16.47 3.047 26.519c.114-9.307-5.726-4.243-11.339-17.793\"></path><path stroke=\"#000\" stroke-width=\"0.2\" d=\"M61.201 68.476c3.822 15.615 13.033 17.091 10.29 24.842\"></path><path fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.2\" d=\"M56.056 56.055l5.186-5.186l23.335 33.705L50.872 61.24l5.184-5.185l28.52 28.52\"></path><circle cx=\"56.056\" cy=\"56.055\" r=\"13.444\" fill=\"#FCD116\" fill-rule=\"nonzero\" stroke=\"#000\" stroke-width=\"0.2\"></circle><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M65.956 50.677c-.855.978-1.344-.733-4.4-.733c-3.055 0-3.544 1.833-4.033 1.466c-.489-.367 2.567-2.567 3.545-2.689c.977-.121 3.788.857 4.888 1.956m-3.545 1.101c.855.733.122 2.322-.733 2.322s-2.444-1.466-1.711-2.444\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M58.378 52.878c.122-1.467 1.344-1.711 3.3-1.711c1.955 0 2.811 1.467 3.544 1.833c-.855 0-1.589-1.222-3.544-1.222c-1.956 0-1.956 0-3.3 1.222m.367.244c.489-.733 1.1.733 2.444.733c1.344 0 2.078-.367 2.933-.978s-1.222 1.467-2.567 1.467c-1.344.001-3.177-.733-2.81-1.222\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M62.9 53.978c1.589-.855.611-2.078 0-2.322c.244.244 1.222 1.466 0 2.322m-6.844 7.333c.733 0 .978-.245 1.956-.245s3.3 1.344 4.645.855c-2.811 1.1-1.711.367-6.6.367h-.611m7.698.734c-.489-.856-.367-.611-1.344-1.956c.978.734 1.222 1.1 1.344 1.956m-7.088 1.222c3.056 0 2.567-.611 6.6-2.322c-2.934.367-3.545 1.344-6.6 1.344h-.611m.611-3.544c.856 0 1.1-.611 2.078-.611c.978 0 2.322.367 2.934.855c.122.122-.367-.978-1.345-1.1c-.978-.122-.611-1.711-1.711-1.956c0 .489.367.367.489 1.1c0 .611-1.1.611-1.344 0c.244.978-.489.978-1.1.978m-9.901-8.311c.855.978 1.344-.733 4.4-.733s3.545 1.833 4.034 1.466c.489-.367-2.567-2.567-3.545-2.689c-.978-.121-3.789.857-4.889 1.956m3.544 1.101c-.855.733-.122 2.322.733 2.322s2.444-1.466 1.711-2.444\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M53.734 52.878c-.122-1.467-1.345-1.711-3.3-1.711c-1.956 0-2.811 1.467-3.545 1.833c.856 0 1.589-1.222 3.545-1.222c1.955 0 1.955 0 3.3 1.222m-.367.244c-.489-.733-1.1.733-2.444.733c-1.344 0-2.078-.367-2.933-.978c-.856-.611 1.222 1.467 2.566 1.467c1.344.001 3.178-.733 2.811-1.222\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M49.211 53.978c-1.589-.855-.611-2.078 0-2.322c-.244.244-1.222 1.466 0 2.322m6.845 7.333c-.733 0-.978-.245-1.955-.245c-.978 0-3.3 1.344-4.645.855c2.811 1.1 1.711.367 6.6.367h.611m-7.7.734c.489-.856.367-.611 1.344-1.956c-.977.734-1.222 1.1-1.344 1.956m7.089 1.222c-3.055 0-2.566-.611-6.6-2.322c2.933.367 3.545 1.344 6.6 1.344h.611m-.611-3.544c-.855 0-1.1-.611-2.078-.611c-.978 0-2.322.367-2.933.855c-.122.122.367-.978 1.344-1.1c.978-.122.611-1.711 1.711-1.956c0 .489-.367.367-.489 1.1c0 .611 1.1.611 1.344 0c-.244.978.489.978 1.1.978m.001 6.356c-.611 0-2.2.367 0 .367s.611-.367 0-.367\"></path></g>'},uz:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#0099B5\" d=\"M.5.5h300v48H.5z\"></path><path fill=\"#CE1126\" d=\"M.5 48.5h300v54H.5z\"></path><path fill=\"#FFF\" d=\"M.5 51.5h300v48H.5z\"></path><path fill=\"#1EB53A\" d=\"M.5 102.5h300v48H.5z\"></path><circle cx=\"42.5\" cy=\"24.5\" r=\"18\" fill=\"#FFF\"></circle><circle cx=\"48.5\" cy=\"24.5\" r=\"18\" fill=\"#0099B5\"></circle><path fill=\"#FFF\" d=\"M78.596 8.988l2.116 1.537l-.808 2.487l2.116-1.537l2.116 1.537l-.809-2.487l2.117-1.537h-2.616L82.02 6.5l-.808 2.488zm14.4 0l2.116 1.537l-.808 2.487l2.116-1.537l2.116 1.537l-.809-2.487l2.117-1.537h-2.616L96.42 6.5l-.808 2.488zm14.4 0l2.116 1.537l-.808 2.487l2.116-1.537l2.116 1.537l-.809-2.487l2.117-1.537h-2.616L110.82 6.5l-.808 2.488zM78.852 23.383l2.116 1.537l-.808 2.487l2.116-1.537l2.116 1.537l-.808-2.487l2.116-1.537h-2.616l-.808-2.488l-.808 2.488zm14.4 0l2.116 1.537l-.808 2.487l2.116-1.537l2.116 1.537l-.808-2.487l2.116-1.537h-2.616l-.808-2.488l-.808 2.488zm14.4 0l2.116 1.537l-.808 2.487l2.116-1.537l2.116 1.537l-.808-2.487l2.116-1.537h-2.616l-.808-2.488l-.808 2.488zm-43.2 0l2.116 1.537l-.808 2.487l2.116-1.537l2.116 1.537l-.808-2.487l2.116-1.537h-2.616l-.808-2.488l-.808 2.488zm14.224 14.405l2.116 1.537l-.808 2.487l2.116-1.537l2.116 1.537l-.808-2.487l2.116-1.537h-2.616L82.1 35.3l-.808 2.488zm14.4 0l2.116 1.537l-.808 2.487l2.116-1.537l2.116 1.537l-.808-2.487l2.116-1.537h-2.616L96.5 35.3l-.808 2.488zm14.4 0l2.116 1.537l-.808 2.487l2.116-1.537l2.116 1.537l-.808-2.487l2.116-1.537h-2.616L110.9 35.3l-.808 2.488zm-43.2 0l2.116 1.537l-.808 2.487l2.116-1.537l2.116 1.537l-.808-2.487l2.116-1.537h-2.616L67.7 35.3l-.808 2.488zm-14.4 0l2.116 1.537l-.808 2.487l2.116-1.537l2.116 1.537l-.808-2.487l2.116-1.537h-2.616L53.3 35.3l-.808 2.488z\"></path></g>'},vc:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#0072C6\" d=\"M.5.5h80v200H.5z\"></path><path fill=\"#FCD116\" d=\"M75.5.5h225v200h-225z\"></path><path fill=\"#009E60\" d=\"M225.5.5h75v200h-75zm-91.666 141.667L150.5 175.5l16.667-33.333l-16.667-33.334zM113 100.5l16.667 33.333l16.667-33.333l-16.667-33.333zm41.667 0l16.667 33.333L188 100.5l-16.667-33.333z\"></path></g>'},ve:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#CF142B\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#00247D\" d=\"M.5.5h300v133.333H.5z\"></path><path fill=\"#FC0\" d=\"M.5.5h300v66.667H.5z\"></path><path fill=\"#FFF\" d=\"M86.157 117.263l4.806 3.682l-2.016 5.709l4.987-3.433l4.807 3.682l-1.725-5.803l4.987-3.434l-6.052-.154l-1.724-5.803l-2.017 5.708zM98.059 96.49l3.196 5.143l-3.903 4.628l5.878-1.45l3.196 5.142l.437-6.038l5.879-1.45l-5.608-2.282l.437-6.039l-3.904 4.628zm14.191-6.246l6.02.645l1.247 5.924l2.473-5.526l6.021.645l-4.492-4.06l2.473-5.527l-5.249 3.017l-4.491-4.06l1.247 5.925zm19.604-10.081l5.446 2.646l-.832 5.996l4.198-4.362l5.447 2.645l-2.852-5.341l4.199-4.362l-5.961 1.061l-2.852-5.341l-.833 5.997zm21.707-2.664l4.206 4.355l-2.843 5.346l5.442-2.654l4.206 4.355l-.843-5.995l5.442-2.654l-5.962-1.052l-.843-5.995l-2.842 5.345zm21.406 5.06l2.463 5.531l-4.499 4.052l6.015-.633l2.469 5.531l1.259-5.923l6.021-.633l-5.243-3.027l1.258-5.922l-4.499 4.051zm13.286 20.045l5.882 1.431l.457 6.038l3.179-5.153l5.883 1.432l-3.917-4.616l3.179-5.152l-5.601 2.299l-3.918-4.616l.457 6.037zm10.597 14.868l4.96 3.472l-1.77 5.79l4.835-3.643l4.96 3.473l-1.972-5.725l4.835-3.644l-6.053.106l-1.971-5.725l-1.77 5.79z\"></path></g>'},vn:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#DA251D\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#FF0\" d=\"M102.168 83.815l26.481 19.24l-10.115 31.131l26.482-19.239l26.481 19.239l-10.115-31.131l26.482-19.24h-32.841l-10.007-30.798l-10.007 30.798z\"></path></g>'},ws:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\"><path fill=\"#CE1126\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#002B7F\" d=\"M.5.5h150v75H.5z\"></path><path fill=\"#FFF\" d=\"M75.5 52.561l6.438 19.814l-16.855-12.246h20.834L69.062 72.375zM52.584 22.375L57.734 38L44.25 28.343h16.667L47.433 38zm46.354-3.125l4.828 14.583l-12.641-9.013h15.625l-12.641 9.013zM75.5 3.625l5.151 15.625l-13.484-9.657h16.667L70.35 19.25zM86.959 38.51l3.218 9.906l-8.427-6.122h10.417l-8.427 6.122z\"></path></g>'},xk:{viewBox:\"0 0 300 200\",innerHTML:'<g fill=\"none\"><path fill=\"#034896\" d=\"M0 .001h300V200H0z\"></path><path fill=\"#FEC900\" d=\"M147.815 78.519c.322-.005.968-.023 1.291-.031c.761.794 1.546 1.562 2.326 2.337c-.012.595.235 1.037.841 1.211c-.538.14-1.092.193-1.639.25a2.471 2.471 0 0 1-.84.725c.095.889.901 1.384 1.456 1.99c.577.056 1.224.037 1.667.487c.424.012.848.023 1.275.03c0 .552 0 1.104.005 1.657c.527-.054 1.188.044 1.343-.617a99.616 99.616 0 0 1 2.787.007c.242.515.818.54 1.278.759c.054.288.169.867.226 1.155c.462-.604.911-1.381 1.77-1.41c.264.371.544.737.827 1.099c.481.038.99.086 1.199.612c.215.008.644.024.859.034c.011 1.029-.065 2.066.06 3.094c.131.076.392.232.519.309c.008.829.008 1.657-.003 2.488c.519.438 1.381.832 1.838.069c.245-.003.492-.004.742-.001c.315.458.699.859 1.172 1.168c.005.806 0 1.614.014 2.424c1.074.387.383 1.849.59 2.729c.544.367.979.858 1.232 1.474c.15-.276.31-.547.47-.818c.617.009 1.24.018 1.863.038c.275.328.557.654.848.975c.13.137.389.415.519.551c.427.112.854.242 1.199.54l1.096.065c.299.662 1.044.57 1.645.696l-.816.608c-.019 1.349.101 2.712-.057 4.058l-.498.283c-.014.689-.136 1.368-.59 1.916c.283-.001.848-.008 1.131-.012c.014.16.038.478.052.636l.527.001c.016-.159.046-.479.06-.638c.329 0 .658.003.99.007l.043.602c.59.103 1.447-.223 1.77.465c1.525.033 3.051.015 4.579.009l.065.806c.234.27.468.542.699.818c.511.003 1.022.005 1.542.011c-.011.227-.033.681-.041.908c.465.424.982.795 1.645.791c.005-.28.011-.842.014-1.123l1 .012l.079-.625c.723.046 1.667-.182 1.841.786l.59-.876c.484.144.878.461 1.275.76c.008.205.016.616.022.821c.824.173.498 1.073.579 1.679c-.359.268-.71.548-1.06.825c.008.855.003 1.711-.014 2.569c-.256.005-.769.013-1.028.02c.005.976.008 1.954-.003 2.931c-.579.48-1.118 1.005-1.661 1.524v1.795c-.391.326-.778.659-1.164.99c0 .189.003.567.005.756c-.419.374-.892.672-1.457.738c-.269.317-.536.636-.788.967l-.721.192l.892.529a126.277 126.277 0 0 0-.008 3.536c-.721.591-1.642.56-2.521.555c-.302.373-.606.742-.913 1.109c-.653-.004-1.107.427-1.512.874c.016.562.024 1.124.049 1.688c.992.529 1.37 1.974 2.648 1.921c.011.939.171 2.011-.715 2.621a37.249 37.249 0 0 0-1.202-.016c-.614.889-1.958.281-2.885.446l.003-1.028a41.144 41.144 0 0 0-.854-.024c-.291.338-.587.67-.886 1.001c-.503.06-.927.317-1.316.619c-.614.044-1.229.025-1.841.019c-.011.159-.033.476-.046.635l-1.378-.027c-.383.382-.704.836-.731 1.402c-.318.27-.639.542-.952.818c.022.665.033 1.372-.666 1.686c.139.742-.413 2.056.642 2.265c-.011.27-.022.541-.03.813c-1.438.05-2.874.031-4.312.034c-.005-.488-.011-.975-.019-1.457c-1.041-.295-.405-1.626-.585-2.401a42.553 42.553 0 0 0-.617-.039l.011-.963c-.468-.05-1.006.019-1.204-.51l-.84.004c-.025-.394-.052-.786-.073-1.177c-.878.001-1.756 0-2.632-.003l-.054.81c-.248.269-.492.541-.731.817c-.446.001-.892.003-1.332.009c-.237.336-.465.674-.696 1.014c-.65.009-1.302.018-1.95.045a6.566 6.566 0 0 1-.753.757c-.008.205-.022.614-.027.821c-.5.045-1.05.052-1.183.643c-.432 0-.859-.004-1.286-.001c-.269.344-.533.696-.797 1.047c-.794-.003-1.585-.005-2.378.007c-.373.919-1.487.472-2.247.6c-.317.453-.71.844-1.177 1.142c-.011.506-.016 1.01-.016 1.52l-.623.045c-.006.487-.011.972-.014 1.464c-.356.276-.704.56-1.055.844c.038 1.316.034 2.633.008 3.951c.351.281.701.565 1.058.847c.003 1.161 0 2.322.003 3.484c-.246.237-.487.477-.725.721l-.896.025l-.023.905l-.7.696c-.965-.001-1.928-.004-2.889.007c-.439.563-.9 1.108-1.364 1.652c-.643.003-1.289-.001-1.93-.01c-.091-.496-.193-.994-.529-1.384c-.053-1.286-.027-2.571-.025-3.857c.534-.522 1.059-1.054 1.611-1.559c.003-.559.005-1.118.003-1.674l-.533-.296c-.118-1.746-.008-3.502-.041-5.25l-.958-.003c-.084-.536.016-1.243-.711-1.305c-.005-1.315-.008-2.629.019-3.941l-.961-.828c-.09-.506-.091-1.093-.672-1.285c-.009-.378-.015-.756-.02-1.134c-.693-.307-.581-1.414.156-1.569c-.609-.536-1.179-1.115-1.764-1.671l-.011-.725c-.676-.133-1.285-.465-1.945-.646c-.189-.47-.652-.511-1.094-.532a93.606 93.606 0 0 0-.426-.464a1.748 1.748 0 0 1-1.054-.512l-.765-.019c-.241-1.033-.719-1.998-.586-3.091a10.455 10.455 0 0 1-.747-.757c-1.332-.061-2.666.014-3.998-.031a1.081 1.081 0 0 1-.863-.337a19.97 19.97 0 0 0-.924-.873c-.02-.889.031-1.78-.039-2.666c-.233-.614-.62-1.147-.982-1.686c-.007-.203-.025-.604-.033-.805a40.21 40.21 0 0 0-.592-.087c0-.209.001-.627.003-.835c-.642-.381-.385-1.196-.483-1.8c-.531-.018-1.064-.031-1.593-.042l-.006-.824a96.809 96.809 0 0 1-.799-.755c-.216-.011-.646-.035-.861-.048c-.004-.211-.013-.632-.016-.844c-.491-.309-.627-.814-.608-1.365c.271-.011.813-.033 1.084-.042c0-.981.01-1.963-.04-2.943c-.324-.609-.592-1.264-1.109-1.742c-.128-.158-.387-.473-.517-.631l-.757-.058a67.25 67.25 0 0 0-.706-.707l-.005-1.21c-.817-.167-.514-1.06-.615-1.663c-.982-.642-.122-1.841.157-2.644c.186-.231.385-.449.596-.654c.366-.363.694-.763.997-1.18c.472-.005.944-.001 1.418 0c.275.36.559.718.842 1.078l.946-.063l-.002 1.097c1.775.001 3.55-.007 5.326.007c.048-.511-.046-1.146.618-1.26c.016-1.017.011-2.035.046-3.051c.623-.042 1.334.076 1.795-.46c.211-.012.631-.039.843-.054c-.004-.549-.003-1.096-.001-1.641c.857 0 1.718.045 2.574-.038l.293-.61c.574-.03.925.268 1.075.805c.313-.378.634-.749.964-1.113c.544-.12 1.047-.353 1.408-.79c.56-.473 1.275-.704 1.912-1.056l-.624-.623c-.026-.76-.54-1.289-1.135-1.682c-.013-.75-.013-1.5.002-2.247c.453-.409.892-.833 1.314-1.275l1.16-.001c.681-.933 1.531-1.725 2.432-2.44l.001-.848c.223.007.669.015.892.019c.084.548.549.593 1.001.606c.218-.296.464-.568.74-.814l.057-.684c.842-.559.27-1.811.454-2.659c.415-.413 1.001-.735 1.185-1.32c-.167-.581-.763-.886-1.158-1.302c.295-1.365-.976-1.983-1.679-2.898a87.376 87.376 0 0 0-.956-.107c-.103-.46-.06-1.021-.522-1.306a60.101 60.101 0 0 1-.015-1.945c1.378-.033 2.765.086 4.138-.063l.272-.47c.586-.357 1.233-.619 1.754-1.074c.575-.018 1.15-.024 1.727-.027c.275-.352.557-.7.837-1.048l.942.03c.015-.154.053-.448.071-.597z\"></path><path fill=\"#FFF\" d=\"M195.481 35.033l-3.265 10.04l-10.408-.107l8.54 6.207l-3.317 9.863l8.543-6.202l8.355 6.202l-3.26-10.04l8.483-6.031l-10.558-.003zm-29.928-4.478l-3.263 10.041l-10.408-.107l8.54 6.206l-3.317 9.864l8.543-6.203l8.355 6.203l-3.26-10.041l8.48-6.029l-10.555-.003zM73.888 44.223l3.264 10.04l10.408-.109l-8.54 6.207l3.318 9.864l-8.543-6.203l-8.354 6.203l3.258-10.043l-8.483-6.029l10.558-.001zm30.632-9.19l3.265 10.04l10.408-.107l-8.541 6.207l3.318 9.863l-8.543-6.202l-8.355 6.202l3.26-10.04l-8.483-6.031l10.558-.003zm29.926-4.478l3.264 10.041l10.407-.107l-8.542 6.206l3.32 9.864l-8.543-6.203l-8.355 6.203l3.259-10.041l-8.481-6.029l10.556-.003zm91.666 13.668l-3.265 10.04l-10.405-.109l8.54 6.207l-3.32 9.864l8.543-6.203l8.355 6.203l-3.257-10.043l8.48-6.029l-10.558-.001z\"></path></g>'},ye:{viewBox:\"0 0 300 200\",innerHTML:'<g fill=\"none\"><path fill=\"#FFF\" d=\"M0 0h300v200H0z\"></path><path fill=\"#CE1126\" d=\"M0 0h300v66.667H0z\"></path><path fill=\"#000\" d=\"M0 133.333h300V200H0z\"></path></g>'},za:{viewBox:\"0 0 300 200\",innerHTML:'<defs><path id=\"IconifyId-17ca80ef3d5-b8efe2-283\" d=\"M0 0h300v200H0z\"></path><path id=\"IconifyId-17ca80ef3d5-b8efe2-284\" d=\"M0 0l150 100L0 200\"></path></defs><g fill=\"none\" fill-rule=\"evenodd\"><mask id=\"IconifyId-17ca80ef3d5-b8efe2-285\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-283\"></use></mask><g mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-285)\"><path fill=\"#002395\" fill-rule=\"nonzero\" d=\"M0 0v200h300V0z\"></path><path fill=\"#DE3831\" fill-rule=\"nonzero\" d=\"M0 0v100h300V0z\"></path><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#FFF\" stroke-width=\"66.667\" d=\"M0 0l150 100L0 200m146-100h154\"></path><mask id=\"IconifyId-17ca80ef3d5-b8efe2-286\" fill=\"#fff\"><use xlink:href=\"#IconifyId-17ca80ef3d5-b8efe2-284\"></use></mask><path fill=\"#000\" fill-rule=\"nonzero\" stroke=\"#FFB612\" stroke-width=\"60\" d=\"M0 0l150 100L0 200\" mask=\"url(#IconifyId-17ca80ef3d5-b8efe2-286)\"></path><path stroke=\"#007A4D\" stroke-width=\"40\" d=\"M0 0l150 100L0 200m150-100h150\"></path></g></g>'},zm:{viewBox:\"0 0 301 201\",innerHTML:'<g fill=\"none\"><path fill=\"#198A00\" d=\"M.5.5h300v200H.5z\"></path><path fill=\"#EF7D00\" d=\"M264.786 71.928H300.5v128.571h-35.714z\"></path><path fill=\"#000\" d=\"M229.072 71.928h35.714v128.571h-35.714z\"></path><path fill=\"#DE2010\" d=\"M193.357 71.928h35.714v128.571h-35.714z\"></path><path fill=\"#EF7D00\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.321\" d=\"M274.275 24.548s12.286-4.815 13.476-5.808c.542.596-4.925 6.652-15.533 8.886c9.634-2.085 17.861-8.638 19.538-8.439c.487.099.379 6.404-21.703 11.864c15.262-3.673 24.138-10.425 24.03-9.68c.108.149-1.515 5.312-14.884 9.332c3.734-.794 13.855-6.453 13.747-5.361c.325.447-9.796 12.36-28.089 8.489c14.613 3.475 24.084-4.915 25.437-4.766c.271.05-2.706 7.347-21.108 7.794c8.822-.844 6.278-.05 6.278-.05s-5.196 3.723-11.474 1.192c4.925 1.241 5.466 1.291 5.574 1.688c-.325.496-4.384 1.241-8.281-.695c3.139 1.191 5.953 1.39 6.007 1.837c-.054.149-2.057 1.191-3.842.447c-1.786-.745-18.239-10.028-18.239-10.028l28.036-7.049l1.03.347zm-32.959 25.11c-2.465 0-2.533 2.012-2.533 2.012s-.203.145-.068 1.121c.407-.664.611-.872.611-.872c.271.042 1.402.353 3.189-.933c-1.629 1.556-.656 2.137-.656 2.137s-.384 1.224.859 1.473c-.384-.498-.158-.934-.158-.934s1.742-.166 1.628-2.116c.068 1.763 1.108 2.199 1.108 2.199s0 .975 1.131 1.058c-.61-.498-.475-1.266-.475-1.266s1.47-.975.226-2.635c.747-.394 1.357-1.494 1.357-1.494s-1.018-.394-1.493-.726c-.226-.436-.023-2.822-.023-2.822l-.611-3.091l-1.742 4.813c.07-.684.115 2.076-2.35 2.076z\"></path><path fill=\"#EF7D00\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.321\" d=\"M253.492 42.716c.054.05 1.84 1.887 3.572 1.787c.649-.496-1.353-1.588-1.353-1.837c.704.596 3.68 2.929 5.575 2.085c.758-.993-1.353-.844-3.681-3.525c1.624.993 5.683 3.177 7.577 2.333c.812-.794-4.222-3.277-5.899-5.213l-4.33-2.035l-5.899 4.418l4.438 1.987zm-6.657-15.091s2.002-1.092 10.013-.546c.866.099 5.466-1.44 6.928-1.886c2.327-.397 9.742-1.886 11.745-3.276c1.407-.149-.379 2.383-2.165 2.978c-1.895.794-8.768 2.979-11.204 2.681c2.923.05 1.299 2.234-3.572 1.191c2.327 1.191 1.461 1.39 1.461 1.39s-4.113.198-5.196-.645c2.76.943 1.624 1.291 1.624 1.291s-2.814.248-4.113-.298c2.003.546.974.894.974.894s-1.623.248-2.977-.199c-1.353-.447-3.41-3.575-3.518-3.575zm3.212 16.12l.294 4.854s-.158.249-.294.394c-.136.145-3.755-.519-3.257 2.012c0 1.038.023 1.307.792 1.888c-.204-.685-.136-1.162-.136-1.162s1.018.56 2.013-.975c-.679 1.514-.204 2.054-.045 2.095c.159.27-.271 1.494 1.086 1.473c-.52-.456-.271-1.12-.271-1.12s1.425-.207.927-2.572c.52-.477.724-.021.724-.021s.158 1.411 1.402 1.12c.566.29-.09 1.058-.09 1.058s.905.021 1.176-.685c.271-.705.588-1.971-.905-2.489c-.181-.498.588-.539.588-.539s.95.29 1.221.726c.271.436.181-1.141-.995-1.307c-1.448-.042-1.538-.311-1.538-.373s-.249-3.527-.362-4.523l-2.33.146z\"></path><path fill=\"#EF7D00\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.321\" d=\"M255.081 47.882c.018-.223-2.469-3.294-1.838-3.691c.631.119 1.665 1.516 2.503 1.063c-.254-.545-1.003-.238-1.853-1.632c-.85-1.576-.974-3.942-3.951-6.523c1.927 2.731 6.299 4.332 6.484 3.535c.185-.796-3.849-3.807-3.643-4.533c.802 1.49 4.853 4.811 7.838 4.536c.205-.639-2.444-1.93-3.126-3.135c-1.907-1.175-7.009-5.209-7.111-6.144c-1.857-2.484-3.016-3.235-3.556-3.521c-.209-.225-.261-.441-.302-.578c-1.153-2.492.374-3.302 1.268-3.421c.735-.075.949.026 1.478-.209c-.627-.225-1.253-.435-1.879-.66c.817.55 2.904.066 2.451 1.649c.915-.319 2.861-2.443-2.206-2.923c-1.649-1.735-8.43-2.733-10.127 4.841c.135.106.206.193.638.489c-2.141-.952-7.917-1.686-9.999-1.995c-5.623-1.488-11.463-5.074-12.025-4.633c-.751.306 3.398 3.846 3.182 3.924c-3.597-1.924-6.883-3.286-9.941-4.527c-2.151-.738-4.305-2.455-4.543-2.128c-.792 1.504 3.449 5.285 4.237 5.73c.789.425 6.992 3.065 6.901 3.098c-9.344-3.89-10.91-4.595-11.379-5.043c-.823-.17-2.83-2.655-3.389-2.495c-.306.276.308 4.201 4.766 5.963c.727.486 9.557 3.391 9.471 3.619c-.022.057-10.114-3.82-10.506-3.959c-1.946-.7-4.333-3.153-4.78-2.877c-.426.25 1.101 2.905 3.067 3.738c1.031.417 4.984 2.213 8.545 3.356c.227.075-6.402-2.306-9.589-3.527c-1.445-.736-2.126-1.653-2.346-1.455c-.326.197.526 4.12 10.769 6.333c.27.105 3.605-.725 3.441-.615c-.041.028-3.312.681-3.631.658c-.284-.04-2.076.194-2.108.28c-.108.265.649 1.67 5.938 1.377c.676-.037 4.345-1.225 4.037-.97c-.154.128-4.996 1.571-5.365 1.599c-.32.041-2.021.205-2.084.37c-.077.226 1.259 1.226 4.099 1.386c2.515.122 7.293-1.409 7.197-1.31c-.096.099-4.606 1.517-4.724 1.603c-.163.085-1.815.167-1.873.283c-.135.289 2.383 2.448 9.827.144c-.748.926-4.356 1.56-4.351 1.727c-.017.121.795.84 2.056 1.098c.631.129 1.494.102 2.283-.012c1.417-.26 2.91-.774 4.807-2.382c.227.505-4.739 2.81-4.506 3.03c1.077.916 4.654-.118 4.888-.238c.235-.12 6.888-3.561 6.865-3.96c.103.51-8.578 4.837-8.484 5.014c.557.816 3.523-.043 3.665-.118c.141-.075 3.785-1.88 3.885-1.933c.1-.053-4.282 2.352-3.891 2.718c-.189 1.562 6.843-1.078 7.394-1.407c.276-.164-3.378 1.473-3.387 2.251c1.176 1.824 4.943 1.245 5.524.844c.291-.201-.342 1.355-.138 1.214c.071-.029.82-.841 1.107-1.428c-.092.51-.505 1.313-.746 2.234s-.31 1.961-.641 3.065c-.076.485 2.321-.948 1.973-4.376c.205 1.783-.757 5.116-.505 5.289c.504.347 1.896-1.66 2.036-3.017c.413.685 1.281 2.116 2.028 2.445c-.081-1.037.014-.989-.322-2.008c.194-1.353.221-3.225.268-5.34c2.028 3.564 2.837 5.069 2.271 7.798c.603.231 1.567-1.905 1.489-3.004c.773 3.057 4.116 3.515 4.169 3.426z\"></path><path fill=\"#EF7D00\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.321\" d=\"M221.297 25.255s-1.381.957-3.099.9c.43 1.576 3.988.366 3.988.366s-1.718 1.745-2.945 2.026c.736.563 3.835.366 4.357.084c.521-.281 1.442-1.379 1.442-1.379s-3.191 3.377-3.651 3.349c-.061.394 3.344.253 4.05-.338c.705-.591 2.485-1.463 2.485-1.463s-4.663 2.983-4.878 2.983c1.749.422 5.246-.506 7.486-1.773c-3.314 2.026-3.62 2.392-5.308 3.067c1.503.31 2.27 1.238 7.363-.788c2.915-1.266 4.571-3.574 4.571-3.574c-1.81 2.223-4.663 4.109-7.823 5.966c-.184.338 3.375 1.716 7.915-2.617m8.713 2.59s.307 1.323 1.534 2.336s1.319 1.998 1.319 1.998m-3.466-12.945s.429 1.182 1.687 1.942c1.289.76 3.222 3.152 3.375 3.574c.148.511.89 4.193.828 4.587\"></path><path fill=\"#EF7D00\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.321\" d=\"M237.526 27.872c.092.45-1.81 2.73.797 5.403c-2.362 2.645-2.362 2.983-2.362 2.983s1.319.675 3.682-1.182c3.896 4.39 2.598 6.399 2.598 6.399\"></path><path fill=\"#EF7D00\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"0.321\" d=\"M241.931 38.376s-.359-.472.281-2.232c.576.637 1.217.772 1.498 1.03c.281.258 3.223.648 3.41 2.451m-1.731-17.778c0-.133-.592-1.298-2.802.159c1.184.066 2.354.689 2.802-.159zm21.092 5.331c.108.05 6.603 1.34 8.768.695c-2.76 3.375-8.281 1.092-8.281 1.092c2.706.745 2.814.695 3.68 1.39c.271.645-4.979.348-6.711-.546c4.817 1.39 4.925 1.291 5.088 1.837c.217.745-7.902-.199-8.605-1.191c2.165 1.539 3.356 1.837 4.546 2.532c-1.461.596-4.167 1.191-9.147-2.035c6.549 5.461 12.448 5.113 13.368 6.106c-2.273 3.078-11.095-1.837-15.155-4.319c-4.059-2.482 8.876 6.007 10.067 5.858c-.596.844-4.871.099-5.142-.298m9.202-5.412c-.758.099-3.031.099-3.355.05m-45.41-8.582s4.939 2.392 7.026 2.223c-.552.478-1.381.675-1.381.675c.522.197 1.964.901 4.142.45c-.522.478-1.197 1.013-1.197 1.013s1.872.647 3.988-.366c-.644.732-1.013 1.266-1.013 1.266l1.473.084\"></path></g>'},zw:{viewBox:\"0 0 301 151\",innerHTML:'<g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"#319208\" fill-rule=\"nonzero\" d=\"M.5.5h300v150H.5z\"></path><path fill=\"#FFD200\" fill-rule=\"nonzero\" d=\"M.5 21.928h300v107.143H.5z\"></path><path fill=\"#DE2010\" fill-rule=\"nonzero\" d=\"M.5 43.357h300v64.286H.5z\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M.5 64.785h300v21.429H.5z\"></path><path fill=\"#000\" fill-rule=\"nonzero\" d=\"M5.956.5l100 75l-100 75H.5V.5z\"></path><path fill=\"#FFF\" fill-rule=\"nonzero\" d=\"M.5.5l100 75l-100 75\"></path><path fill=\"#DE2010\" fill-rule=\"nonzero\" d=\"M4.746 63.728l21.753 15.396l-4.766 22.862l19.243-11.01l19.243 11.01l-4.765-22.862l21.753-15.396l-25.035-3.638l-11.196-22.685L29.78 60.09z\"></path><path fill=\"#FFC618\" fill-rule=\"nonzero\" d=\"M34.59 66.106c2.353 5.125 2.941 5.461 8.822 7.478c5.881 2.016 22.497 3.928 24.136 4.117c-1.071-1.071-19.787-14.935-23.631-17.708c-3.844-2.773-4.915-4.033-4.915-4.033s-3.466-6.239-4.663-8.066c-1.197-1.827-3.403-4.411-6.302-4.411c-2.899 0-4.663 1.701-5.503 4.726c-.462.126-2.941 1.639-2.857 3.193c.714-.084 5.21-1.345 6.764 3.739c1.554 5.084 1.638 13.402.042 17.519c-1.597 4.117-4.075 7.226-4.075 10.839c0 .504.336 1.513 1.176 1.513c.294 1.596 2.647 12.982 2.647 12.982h33.525l5.325-20.586\"></path><path stroke=\"#000\" stroke-width=\"0.063\" d=\"M34.59 66.106c2.353 5.125 2.941 5.461 8.822 7.478c5.881 2.016 22.497 3.928 24.136 4.117c-1.071-1.071-19.787-14.935-23.631-17.708c-3.844-2.773-4.915-4.033-4.915-4.033s-3.466-6.239-4.663-8.066c-1.197-1.827-3.403-4.411-6.302-4.411c-2.899 0-4.663 1.701-5.503 4.726c-.462.126-2.941 1.639-2.857 3.193c.714-.084 5.21-1.345 6.764 3.739c1.554 5.084 1.638 13.402.042 17.519c-1.597 4.117-4.075 7.226-4.075 10.839c0 .504.336 1.513 1.176 1.513c.294 1.596 2.647 12.982 2.647 12.982h33.525l5.325-20.586\"></path><path stroke=\"#000\" stroke-width=\"0.063\" d=\"M23.583 85.011s7.142-.42 9.075-.42c1.932 0 19.921.022 29.958 2.343\"></path><path stroke=\"#000\" stroke-width=\"0.063\" d=\"M26.105 84.87s-.716-.867-.253-2.589c.462-1.722 5.504-6.176 5.504-12.478m-.925 14.788s-.588-2.815 5.84-5.209c1.806-.546 6.974-3.445 7.142-5.797m-7.826 6.064s15.766.069 28.243 2.59\"></path><path stroke=\"#000\" stroke-width=\"0.063\" d=\"M39.539 77.768s5.417.185 6.3-.067c.882-.252 2.444-.907 3.065-2.754m-6.153 2.885s2.898-1.506 3.465-3.465M34.002 97.993s-1.239-8.591-1.492-13.402l3.235 3.088l3.422-2.993l2.942 3.14l3.402-2.887l2.942 3.307l3.369-2.865l2.681 3.117l3.36-2.43l3.994 3.796m-.701 2.713c-12.001-1.719-28.06-1.607-28.06-1.607m-5.579-29.694s9.762-4.665 11.484-5.316\"></path><path stroke=\"#000\" stroke-width=\"0.298\" d=\"M32.778 87.995l3.282 2.987l2.964-2.964l2.999 3.092l3.238-2.863l2.981 3.133l3.363-2.776l2.747 3.208l3.344-2.557l3.516 3.105\"></path><circle cx=\"42.089\" cy=\"82.323\" r=\"1.302\" stroke=\"#000\" stroke-width=\"0.298\"></circle><circle cx=\"47.587\" cy=\"82.692\" r=\"1.302\" stroke=\"#000\" stroke-width=\"0.298\"></circle><circle cx=\"27.122\" cy=\"47.516\" r=\"1.008\" stroke=\"#000\" stroke-width=\"0.298\"></circle></g>'}};var xr=U6,Mr=e3(h3)`\n\t--width: ${m.size.x2};\n\t--height: ${m.size.x2};\n\n\tstroke: none;\n\twidth: var(--width);\n\theight: var(--height);\n\n\t&[data-size='small'] {\n\t\t--width: ${m.size.x2};\n\t\t--height: ${m.size.x2};\n\t}\n\t&[data-size='medium'] {\n\t\t--width: ${m.size.x3};\n\t\t--height: ${m.size.x3};\n\t}\n\t&[data-size='large'] {\n\t\t--width: ${m.size.x4};\n\t\t--height: ${m.size.x4};\n\t}\n`;function kr({flag:e,size:t,...l},o){let n=xr[e];return n?jsx(Mr,{viewBox:n.viewBox,dangerouslySetInnerHTML:D3(n.innerHTML),...l,\"data-size\":t,ref:o}):jsx(N,{type:\"network\",size:t})}var X6=forwardRef(kr);var A5=createContext(void 0);function o1(){return useContext(A5)}function j6({onClick:e,...t},l){let o=o1();if(o===void 0)throw new Error(\"Form.Error must be used within an Form.Root to access FormContext\");let n=A(),r=o.control.formState.isDirty,a=o.disabledSubmitButtonWhenClean&&!r,i=o.disabledSubmitButtonWhenInvalid&&!o.control.formState.isValid;function c(h){if(t.disabled){h.preventDefault();return}e?.(h),o?.setSubmitError(!1);}let p=a||i?{\"aria-label\":void 0,disabled:!0,disabledText:n(a?\"Component.FormSubmitButton.NotDirty\":\"Component.FormSubmitButton.Invalid\")}:{},u=jsx(j2,{...t,type:\"submit\",loading:o.control.formState.isSubmitting,allowPassThrough:!0,onClick:c,ref:l,...p});return jsx(Fragment$1,{children:a?jsx(g3,{content:n(\"Component.FormSubmitButton.NotDirty\"),children:u}):u})}function J6(e,t){let l=o1();if(l===void 0)throw new Error(\"Form.SubmitButton must be used within an Form.Root to access FormContext\");return l.submitError?jsx(A2,{variant:\"danger\",ref:t,children:jsx(E2,{children:l.submitError})}):null}function Q6(e,t){let l=o1();if(l===void 0)throw new Error(\"Form.Success must be used within an Form.Root to access FormContext\");return l.successMessage?jsx(A2,{variant:\"success\",ref:t,children:jsx(E2,{children:l.successMessage})}):null}function wr({options:e,onSubmit:t,onAfterSubmit:l,onInvalid:o,onInputChange:n,children:r,disabledSubmitButtonWhenClean:a=!1,disabledSubmitButtonWhenInvalid:i=!1,allowSubmitEventPropagation:c=!1},p){let[u,h]=useState(null),[f,g]=useState(!1),C=useForm(e),w=A();useEffect(()=>{if(n){let k=C.watch((v,F)=>{n(v,F);});return ()=>{k.unsubscribe();}}},[n,C]);async function T(k){let v=k;Vr(v)&&(v=v()),e8(v)&&(v=await v),Y6(v)&&(v=v.err),Tr(v)&&(v=v.message),t8(v)?g(v):g(w(\"Component.Form.UnknownSubmitError\"));}async function H(k){o?.(k);}async function z(k){if(!(a&&!C.formState.isDirty)){g(!1),h(null);try{let F=t(k,C);if(e8(F)&&(F=await F),Y6(F)){if(F.err){await T(F.err);return}F=F.ok;}if(Lr(F)&&!F)return;t8(F)&&h(F),C.reset(k),l?.(k,C);}catch(v){await T(v);}}}function S(k){return c||(k.preventDefault(),k.stopPropagation()),C.handleSubmit(z,H)(k)}return jsx(A5.Provider,{value:{control:C,options:e,submitError:f,setSubmitError:g,disabledSubmitButtonWhenClean:a,disabledSubmitButtonWhenInvalid:i,successMessage:u},children:jsx(\"form\",{style:{display:\"contents\"},ref:p,onSubmit:S,noValidate:!0,children:r})})}function Y6(e){return typeof e==\"object\"&&!Array.isArray(e)&&e!==null&&\"ok\"in e&&\"err\"in e}function e8(e){return typeof e==\"object\"&&!Array.isArray(e)&&e!==null&&\"then\"in e}function Lr(e){return typeof e==\"boolean\"}function t8(e){return typeof e==\"string\"}function Tr(e){return e instanceof Error}function Vr(e){return typeof e==\"function\"}var Ir={Root:forwardRef(wr),Success:forwardRef(Q6),Error:forwardRef(J6),SubmitButton:forwardRef(j6)};function Sr(e,t){let l={};for(let o in e){let n=e[o];switch(t[o]===void 0&&(t[o]=null),n.type){case\"string\":l[o]=`${t[o]}`;break;case\"number\":{let r=B0(t[o]);if(r==null)throw new Error(`Expected ${o} to be a number`);l[o]=r;break}case\"boolean\":l[o]=t[o]===!0||t[o]===\"true\";break}}return l}var Z1=new I(\"input\");var J2={container:e3.div`\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t`,input:e3.input`\n\t\tall: unset;\n\n\t\tuser-select: none;\n\t\t-webkit-tap-highlight-color: transparent;\n\t\t-webkit-user-drag: none;\n\t\t-webkit-touch-callout: none;\n\n\t\tbox-sizing: border-box;\n\t\tflex: 1 1 auto;\n\t\tborder: ${S0(1)} solid ${Z1.getValue(\"baseBorderColor\")};\n\t\tmin-height: ${Z1.getValue(\"baseMinHeight\")};\n\t\tpadding: ${Z1.getValue(\"basePaddingVertical\")} ${Z1.getValue(\"basePaddingHorizontal\")};\n\t\tfont: ${Z1.getValue(\"baseFont\")};\n\t\tcolor: ${Z1.getValue(\"baseTextColor\")};\n\t\tborder-radius: ${Z1.getValue(\"baseBorderRadius\")};\n\t\toutline: none;\n\t\ttransition: border-color 150ms;\n\t\tbackground: ${Z1.getValue(\"baseBackground\")};\n\n\t\t&:read-only,\n\t\t&:disabled {\n\t\t\tbackground: ${Z1.getValue(\"readOnlyBackground\")};\n\t\t\tborder-color: ${Z1.getValue(\"readOnlyBorderColor\")};\n\t\t\topacity: 0.7;\n\t\t}\n\n\t\t&:disabled {\n\t\t\tcursor: not-allowed;\n\t\t}\n\n\t\t&::placeholder {\n\t\t\tcolor: ${Z1.getValue(\"placeholderTextColor\")};\n\t\t}\n\n\t\t&:hover:not(:disabled, :read-only),\n\t\t&:focus:not(:disabled, :read-only) {\n\t\t\tborder-color: ${Z1.getValue(\"hoverBorderColor\")};\n\t\t}\n\n\t\t&:focus:not(:disabled, :read-only) {\n\t\t\toutline: 3px solid ${Z1.getValue(\"focusRingColor\")};\n\t\t}\n\n\t\t&[aria-invalid='true'] {\n\t\t\tborder-color: ${Z1.getValue(\"invalidBorderColor\")};\n\t\t}\n\t`};function Er({invalid:e,...t},l){return jsx(J2.container,{children:jsx(J2.input,{\"aria-invalid\":e||void 0,...t,ref:l})})}var R5=forwardRef(Er);var I1=new I(\"textArea\");var a8={container:e3.div`\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tflex: 1 1 auto;\n\t\tflex-direction: column;\n\t\tbox-sizing: border-box;\n\t\tborder-radius: ${I1.getValue(\"baseBorderRadius\")};\n\t\tborder: 1px solid ${I1.getValue(\"baseBorderColor\")};\n\t\tbackground: ${I1.getValue(\"baseBackground\")};\n\t\ttransition:\n\t\t\tborder-color 150ms,\n\t\t\tbackground 150ms;\n\t\toverflow: hidden;\n\n\t\t&[data-read-only],\n\t\t&[data-disabled] {\n\t\t\tbackground: ${I1.getValue(\"readOnlyBackground\")};\n\t\t\tborder-color: ${I1.getValue(\"readOnlyBorderColor\")};\n\t\t\topacity: 0.7;\n\t\t}\n\n\t\t&[data-disabled] {\n\t\t\tcursor: not-allowed;\n\t\t}\n\n\t\t&[data-focus='true']:not([data-disabled], [data-read-only]) {\n\t\t\toutline: 3px solid ${I1.getValue(\"focusRingColor\")};\n\t\t}\n\n\t\t&[data-hover='true']:not([data-disabled], [data-read-only]),\n\t\t&[data-focus='true']:not([data-disabled], [data-read-only]) {\n\t\t\tborder-color: ${I1.getValue(\"hoverBorderColor\")};\n\t\t}\n\n\t\t&[data-invalid='true'] {\n\t\t\tborder-color: ${I1.getValue(\"invalidBorderColor\")};\n\t\t}\n\t`,textarea:e3.textarea`\n\t\tall: unset;\n\t\tbox-sizing: border-box;\n\t\tflex: 1 1 auto;\n\t\tpadding: ${I1.getValue(\"basePaddingVertical\")} ${I1.getValue(\"basePaddingHorizontal\")};\n\t\tfont: ${I1.getValue(\"baseFont\")};\n\t\tcolor: ${I1.getValue(\"baseTextColor\")};\n\t\toutline: none;\n\t\tbox-sizing: border-box;\n\t\tmin-height: calc(${I1.getValue(\"baseMinHeight\")} - 2px);\n\t\theight: calc(${I1.getValue(\"baseMinHeight\")} - 2px);\n\t\twhite-space: pre-wrap;\n\t\toverflow-wrap: break-word;\n\n\t\t&::placeholder {\n\t\t\tcolor: ${I1.getValue(\"placeholderTextColor\")};\n\t\t}\n\n\t\t&[data-resize='true'] {\n\t\t\tresize: vertical;\n\t\t}\n\n\t\t&[data-full-height='true'] {\n\t\t\theight: 100%;\n\t\t}\n\n\t\t&[aria-invalid] {\n\t\t\tpadding-right: ${I1.getValue(\"invalidPaddingRight\")};\n\t\t}\n\t`};function Dr({autoHeight:e,resize:t=!0,fullHeight:l,minHeight:o,maxHeight:n,invalid:r,value:a,disabled:i,readOnly:c,insertBefore:p,...u},h){let f=useRef(null),g=C2(f,h),[C,w]=useState(!1),[T,H]=useState(!1),[z,S]=useState(!1);function k(F,R){let W=window.getComputedStyle(F,null);F.style.height=`calc(${R}px + calc(${W.borderWidth} * 2))`;}let v=useCallback(F=>{F.style.height=\"\";let R=!0,W=F.scrollHeight;n&&W>n&&(R=!1),w(R),k(F,W);},[n]);return useEffect(function(){!e||!f.current||v(f.current);},[a,v,e]),useEffect(()=>{function F(W){if(!W.target)return;let P=W.target;v(P);}let R=f.current;if(R)return e&&(setTimeout(()=>v(R)),R.addEventListener(\"input\",F),R.addEventListener(\"change\",F)),()=>{R?.removeEventListener(\"input\",F),R?.removeEventListener(\"change\",F);}},[e,v,h]),jsxs(a8.container,{\"data-hover\":T?\"true\":void 0,\"data-focus\":z?\"true\":void 0,\"data-disabled\":i?\"true\":void 0,\"data-read-only\":c?\"true\":void 0,\"data-invalid\":r?\"true\":void 0,children:[p,r,jsx(a8.textarea,{\"aria-invalid\":r||void 0,\"data-resize\":t&&!e,\"data-full-height\":l||void 0,style:{overflow:C?\"hidden\":\"auto\",minHeight:o?`${o}px`:void 0,maxHeight:n?`${n}px`:void 0},value:a,disabled:i,readOnly:c,...u,ref:g,onFocus:()=>S(!0),onBlur:()=>S(!1),onMouseOver:()=>H(!0),onMouseOut:()=>H(!1)})]})}var c8=forwardRef(Dr);var D0=new I(\"label\");var d8={label:e3.div`\n\t\tall: unset;\n\n\t\tuser-select: none;\n\t\t-webkit-tap-highlight-color: transparent;\n\t\t-webkit-user-drag: none;\n\t\t-webkit-touch-callout: none;\n\n\t\tfont: ${D0.getValue(\"baseFont\")};\n\t\tcolor: ${D0.getValue(\"baseTextColor\")};\n\t\tword-break: break-word;\n\t`,optional:e3.span`\n\t\tfont: ${D0.getValue(\"optionalFont\")};\n\t\tcolor: ${D0.getValue(\"optionalTextColor\")};\n\t\tword-break: keep-all;\n\t`};function Or({type:e=\"label\",optional:t=!1,children:l,...o},n){let r=A();return l?jsxs(d8.label,{as:e,...o,ref:n,children:[jsx(\"span\",{children:l}),t?jsxs(Fragment$1,{children:[\" \",jsxs(d8.optional,{children:[\"(\",r(\"Component.Label.Optional\"),\")\"]})]}):null]}):null}var y1=forwardRef(Or);var X3=new I(\"helpText\");var u8={helpText:e3.span`\n\t\tdisplay: inline-flex;\n\t\tfont: ${X3.getValue(\"baseFont\")};\n\t\tcolor: ${X3.getValue(\"baseTextColor\")};\n\t\tmargin-top: ${X3.getValue(\"baseMarginTop\")};\n\n\t\t&[data-invalid='false'] {\n\t\t\tcolor: ${X3.getValue(\"baseTextColor\")};\n\t\t}\n\n\t\t&[data-invalid='true'] {\n\t\t\tcolor: ${X3.getValue(\"invalidTextColor\")};\n\t\t}\n\t`,icon:e3(N)`\n\t\tmargin-right: ${m.spacing.x0_5};\n\t`};function Xr({children:e,invalid:t,...l},o){return e?jsxs(u8.helpText,{...l,\"data-invalid\":t,ref:o,children:[t?jsx(u8.icon,{type:\"warningCircle\",size:\"xSmall\"}):null,e]}):null}var g1=forwardRef(Xr);var ee=new I(\"description\");var Qr={description:e3.span`\n\t\tfont: ${ee.getValue(\"baseFont\")};\n\t\tcolor: ${ee.getValue(\"baseTextColor\")};\n\t`};function qr({children:e,...t},l){return e?jsx(Qr.description,{...t,ref:l,children:e}):null}var H1=forwardRef(qr);var N0=new I(\"characterCount\");var ni={characterCount:e3.div`\n\t\tmargin-left: auto;\n\t\tmargin-top: ${N0.getValue(\"baseMarginTop\")};\n\t\tfont: ${N0.getValue(\"baseText\")};\n\t\tcolor: ${N0.getValue(\"baseTextColor\")};\n\n\t\t&[data-state-max-length-exceeded='true'] {\n\t\t\tcolor: ${N0.getValue(\"invalidTextColor\")};\n\t\t}\n\t`};function x3({limit:e,value:t,alwaysShow:l=!1}){let[o,n]=useState(t?.length??0);return useEffect(()=>{n(t?.length??0);},[t]),jsx(Fragment,{children:l||e!==void 0&&o>e?jsxs(ni.characterCount,{\"data-state-max-length-exceeded\":e!==void 0&&o>e,children:[o,\"/\",e]}):null})}var B=new I(\"commonInput\");function v2({id:e,name:t,label:l,hideLabel:o,required:n,invalid:r,invalidText:a,helperText:i,readOnly:c,onChange:p,onBlur:u,defaultValue:h,characterCount:f,alwaysShowCharacterCount:g,description:C,optional:w},T){let H=useId();e&&(H=e);let z=`${H}-helpText`,S=`${H}-description`;return {props:{id:H,required:n,onChange:p,onBlur:u,name:t,invalid:r,defaultValue:h,readOnly:c,\"aria-label\":o?l:void 0,\"aria-describedby\":[S,z].join(\" \"),\"aria-invalid\":r||void 0,\"aria-required\":n||void 0,ref:T},labelProps:{optional:n?!1:w,htmlFor:H,children:o?null:l},descriptionProps:{id:S,children:C??void 0},helpTextProps:{id:z,invalid:!!(r&&a),children:r&&a?a:i},characterCountProps:{limit:f,alwaysShow:g}}}var D5={container:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex: 1 1 auto;\n\t`,label:e3(y1)`\n\t\tmargin-bottom: ${B.getValue(\"labelMarginBottom\")};\n\t`,description:e3(H1)`\n\t\tmargin-bottom: ${B.getValue(\"descriptionMarginBottom\")};\n\t`,additionalInformation:e3.span`\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t`,footer:e3.div`\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tgap: ${B.getValue(\"helpTextGap\")};\n\t`},te=forwardRef(function({id:t,label:l,hideLabel:o,name:n,required:r,invalid:a,invalidText:i,helperText:c,readOnly:p,onChange:u,onBlur:h,defaultValue:f,characterCount:g,alwaysShowCharacterCount:C,description:w,optional:T,...H},z){let[S,k]=useState(f?.toString()??\"\");function v($){k($.target.value),u?.($);}let{props:F,descriptionProps:R,helpTextProps:W,labelProps:P,characterCountProps:D}=v2({id:t,name:n,label:l,hideLabel:o,required:r,invalid:a,invalidText:i,helperText:c,readOnly:p,onChange:v,onBlur:h,defaultValue:f,characterCount:g,alwaysShowCharacterCount:C,description:w,optional:T},z);return jsxs(D5.container,{children:[jsx(D5.label,{...P}),jsx(D5.description,{...R}),jsx(R5,{...H,...F}),jsxs(D5.footer,{children:[jsx(g1,{...W}),jsx(x3,{value:S,...D})]})]})});var h1=class{constructor(t,l,o,n){X(this,\"props\");X(this,\"staticTexts\");X(this,\"fieldState\");X(this,\"formState\");this.props=t,this.staticTexts=l,this.fieldState=o,this.formState=n;}isOptional(){return this.props.optional??(!this.props.options?.required||!1)}isRequired(){return this.props.required??(!!this.props.options?.required||!1)}isReadOnly(){return this.props.readOnly??!!(this.formState.isValid&&this.formState.isSubmitting)}isInvalid(){return this.props.invalid??(this.fieldState.invalid||!1)}invalidText(){return this.props.invalidText??(this.fieldState.error?.message||this.staticTexts?.(\"Component.Form.GeneralInputError\")||\"Unknown error\")}};function ui(e,t){let l=o1(),o=A();return l==null||e.name==null?jsx(te,{...e,ref:t}):jsx(Controller,{control:l.control.control,name:e.name,defaultValue:e.defaultValue,rules:{...e.options,onChange:e.onChange,onBlur:e.onBlur},disabled:e.disabled,render:({field:n,fieldState:r,formState:a})=>{let i=new h1(e,o,r,a);return jsx(te,{...e,...n,optional:i.isOptional(),required:i.isRequired(),readOnly:i.isReadOnly(),invalid:i.isInvalid(),invalidText:i.invalidText(),value:n.value??\"\",defaultValue:void 0,ref:C1([t,n.ref])})}})}var hi=forwardRef(ui);var $5={container:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex: 1 1 auto;\n\t`,label:e3(y1)`\n\t\tmargin-bottom: ${B.getValue(\"labelMarginBottom\")};\n\t`,description:e3(H1)`\n\t\tmargin-bottom: ${B.getValue(\"descriptionMarginBottom\")};\n\t`,footer:e3.div`\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tgap: ${B.getValue(\"helpTextGap\")};\n\t`},oe=forwardRef(function({id:t,name:l,label:o,hideLabel:n,required:r,invalid:a,invalidText:i,helperText:c,readOnly:p,onChange:u,onBlur:h,defaultValue:f,characterCount:g,alwaysShowCharacterCount:C,description:w,optional:T,...H},z){let[S,k]=useState(f?.toString()??\"\");function v(D){k(D.target.value),u?.(D);}let{props:F,labelProps:R,descriptionProps:W,helpTextProps:P}=v2({id:t,name:l,label:o,hideLabel:n,required:r,invalid:a,invalidText:i,helperText:c,defaultValue:f,readOnly:p,onChange:v,onBlur:h,description:w,optional:T},z);return jsxs($5.container,{children:[jsx($5.label,{...R}),jsx($5.description,{...W}),jsx(c8,{defaultValue:f,...H,...F}),jsxs($5.footer,{children:[jsx(g1,{...P}),jsx(x3,{value:S,limit:g,alwaysShow:C})]})]})});function vi(e,t){let l=o1(),o=A();return l==null||e.name==null?jsx(oe,{...e,ref:t}):jsx(Controller,{control:l.control.control,name:e.name,defaultValue:e.defaultValue,rules:{...e.options,onChange:e.onChange,onBlur:e.onBlur},disabled:e.disabled,render:({field:n,fieldState:r,formState:a})=>{let i=new h1(e,o,r,a);return jsx(oe,{...e,...n,optional:i.isOptional(),required:i.isRequired(),invalid:i.isInvalid(),invalidText:i.invalidText(),readOnly:i.isReadOnly(),value:n.value??\"\",defaultValue:void 0,ref:C1([t,n.ref])})}})}var xi=forwardRef(vi);var t1=new I(\"inputCheckbox\");var re=createContext(void 0);function f8(){return useContext(re)}var O5={item:e3(_5.Root)`\n\t\t--background: none;\n\t\t--indicator-border-color: ${t1.getValue(\"indicatorBorderColor\")};\n\t\t--indicator-background: ${t1.getValue(\"indicatorBackground\")};\n\t\t--indicator-outline: none;\n\n\t\tall: unset;\n\n\t\tuser-select: none;\n\t\t-webkit-tap-highlight-color: transparent;\n\t\t-webkit-user-drag: none;\n\t\t-webkit-touch-callout: none;\n\n\t\tbox-sizing: border-box;\n\t\tdisplay: flex;\n\t\tgap: ${t1.getValue(\"itemGap\")};\n\t\talign-items: center;\n\t\tcursor: default;\n\t\tfont: ${t1.getValue(\"itemFont\")};\n\t\tcolor: ${t1.getValue(\"itemTextColor\")};\n\t\tbackground: var(--background);\n\t\tborder-radius: ${m.borderRadius.xSmall};\n\t\ttransition:\n\t\t\tborder 150ms ease-out,\n\t\t\tbackground 150ms ease-out,\n\t\t\tbox-shadow 50ms ease-out;\n\n\t\t&[data-state='checked'] {\n\t\t\tfont: ${t1.getValue(\"checkedItemFont\")};\n\n\t\t\t--indicator-border-color: ${t1.getValue(\"checkedIndicatorBorderColor\")};\n\t\t\t--indicator-background: ${t1.getValue(\"checkedIndicatorBackground\")};\n\t\t}\n\n\t\t&:focus-visible {\n\t\t\toutline: 2px solid ${t1.getValue(\"focusColor\")};\n\t\t\toutline-offset: 2px;\n\t\t}\n\n\t\t&[data-variant='none'] {\n\t\t\t&:hover {\n\t\t\t\t--indicator-border-color: ${t1.getValue(\"checkedIndicatorBorderColor\")};\n\t\t\t}\n\n\t\t\t&:active {\n\t\t\t\t--indicator-outline: 0 0 0 2px ${t1.getValue(\"activeIndicatorOutlineColor\")};\n\t\t\t}\n\n\t\t\t&[data-invalid='true'] {\n\t\t\t\t--indicator-border-color: ${B.getValue(\"invalidBorderColor\")};\n\t\t\t}\n\t\t}\n\n\t\t&[data-variant='outlined'] {\n\t\t\tpadding: ${t1.getValue(\"outlinedItemPadding\")};\n\t\t\tborder: 1px solid ${t1.getValue(\"outlinedItemBorderColor\")};\n\t\t\tmin-height: ${t1.getValue(\"outlinedItemMinHeight\")};\n\t\t\tborder-radius: ${t1.getValue(\"outlinedItemBorderRadius\")};\n\n\t\t\t&:hover {\n\t\t\t\tborder-color: ${t1.getValue(\"hoverOutlinedItemBorderColor\")};\n\t\t\t}\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: 0 0 0 2px ${t1.getValue(\"activeOutlinedItemOutlineColor\")};\n\t\t\t}\n\n\t\t\t&[data-state='checked'] {\n\t\t\t\t--background: ${t1.getValue(\"checkedOutlinedItemBackground\")};\n\t\t\t}\n\n\t\t\t&[data-invalid='true'] {\n\t\t\t\tborder-color: ${B.getValue(\"invalidBorderColor\")};\n\t\t\t}\n\t\t}\n\n\t\t// Disabled/ReadOnly\n\t\t&[data-read-only='true'],\n\t\t&[data-disabled='true'] {\n\t\t\t--indicator-border-color: ${t1.getValue(\"disabledIndicatorBorderColor\")};\n\t\t\t--indicator-background: ${t1.getValue(\"disabledIndicatorBackground\")};\n\t\t\topacity: 0.7;\n\n\t\t\t&:hover,\n\t\t\t&:active {\n\t\t\t\t--indicator-border-color: ${t1.getValue(\"disabledIndicatorBorderColor\")};\n\t\t\t\t--indicator-outline: none;\n\t\t\t}\n\n\t\t\t&[data-variant='outlined'] {\n\t\t\t\t--background: ${t1.getValue(\"disabledOutlinedItemBackground\")};\n\t\t\t\tborder: none;\n\n\t\t\t\t&:hover,\n\t\t\t\t&:active {\n\t\t\t\t\tbox-shadow: none;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&[data-state='checked'] {\n\t\t\t\t--indicator-background: ${t1.getValue(\"disabledIndicatorBorderColor\")};\n\t\t\t}\n\t\t}\n\t`,check:e3.span`\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\twidth: ${t1.getValue(\"indicatorSize\")};\n\t\theight: ${t1.getValue(\"indicatorSize\")};\n\t\tborder: 2px solid var(--indicator-border-color);\n\t\tborder-radius: 4px;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tbox-shadow: var(--indicator-outline);\n\t\tbackground: var(--indicator-background);\n\t\ttransition:\n\t\t\tborder 150ms ease-out,\n\t\t\tbackground 100ms ease-out,\n\t\t\tbox-shadow 50ms ease-out;\n\t\tflex: 0 0 auto;\n\n\t\tsvg {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t`,indicator:e3(_5.Indicator)`\n\t\tdisplay: block;\n\t\tcolor: #fff;\n\t\tmargin: -2px;\n\t`,text:e3.span`\n\t\tdisplay: inline-flex;\n\t\tflex-direction: column;\n\n\t\t// To avoid layout shift, this pseudo-element is added.\n\t\t&::after {\n\t\t\tcontent: attr(data-text);\n\t\t\tcontent: attr(data-text) / '';\n\t\t\theight: 0;\n\t\t\tvisibility: hidden;\n\t\t\toverflow: hidden;\n\t\t\tuser-select: none;\n\t\t\tpointer-events: none;\n\t\t\tfont: ${t1.getValue(\"checkedItemFont\")};\n\t\t\t@media speech {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t`},ie=forwardRef(function({label:t,variant:l=\"none\",invalid:o,readOnly:n,disabled:r,onChange:a,checked:i,value:c,required:p},u){let[h,f]=useState(i??!1);useEffect(function(){f(i??!1);},[i]);function g(C){n||(f(C),a?.(C));}return jsxs(O5.item,{onCheckedChange:g,disabled:r,\"data-variant\":l,\"data-invalid\":o??void 0,\"aria-readonly\":n??void 0,\"data-read-only\":n??void 0,\"data-disabled\":r??void 0,checked:h,value:c,required:p,ref:u,children:[jsx(O5.check,{children:jsx(O5.indicator,{children:jsx(N,{type:\"check\"})})}),jsx(O5.text,{\"data-text\":t,children:t})]})});function Hi(e,t){let l=o1(),o=f8();if(o&&(e={...e,invalid:o.invalid,disabled:o.disabled,readOnly:o.readOnly,variant:o.variant},o.name))return jsx(ie,{...e,name:void 0});if(l==null||e.name==null)return jsx(ie,{...e});function n(r){e.onChange?.(typeof r.target.value==\"boolean\"?r.target.value:!1);}return jsx(Controller,{control:l.control.control,name:e.name,defaultValue:e.defaultChecked??!1,rules:{...e.options,onChange:n},disabled:e.disabled,render:({field:r,fieldState:a,formState:i})=>{let c=new h1(e,null,a,i);return jsx(ie,{...e,...r,required:c.isRequired(),readOnly:c.isReadOnly(),invalid:c.isInvalid(),checked:!!r.value,ref:C1([t,r.ref])})}})}var g8=forwardRef(Hi);var G5={group:e3.fieldset`\n\t\t--item-direction: column;\n\t\t--item-gap: ${t1.getValue(\"itemsGap\")};\n\t\t--items-margin: ${t1.getValue(\"itemsMargin\")};\n\n\t\tall: unset;\n\n\t\tuser-select: none;\n\t\t-webkit-tap-highlight-color: transparent;\n\t\t-webkit-user-drag: none;\n\t\t-webkit-touch-callout: none;\n\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\n\t\t&[data-direction='horizontal'] {\n\t\t\t--item-direction: row;\n\t\t\t--item-gap: ${t1.getValue(\"itemsGap\")};\n\n\t\t\t&[data-variant='none'] {\n\t\t\t\t--item-gap: ${t1.getValue(\"itemsHorizontalGap\")};\n\t\t\t}\n\t\t}\n\n\t\t&[data-variant='outlined'] {\n\t\t\t--item-gap: ${t1.getValue(\"outlinedItemsGap\")};\n\t\t\t--items-margin: 0;\n\t\t}\n\t`,legend:e3(y1)`\n\t\tmargin-bottom: ${B.getValue(\"labelMarginBottom\")};\n\t`,description:e3(H1)`\n\t\tmargin-bottom: ${B.getValue(\"descriptionMarginBottom\")};\n\t`,items:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: var(--item-direction);\n\t\tgap: var(--item-gap);\n\t\tflex-wrap: wrap;\n\t\tmargin: var(--items-margin) 0;\n\t`},v8=forwardRef(function({label:t,hideLabel:l,required:o,description:n,helperText:r,invalid:a,invalidText:i,variant:c=\"none\",name:p,children:u,disabled:h,readOnly:f,onChange:g,value:C,direction:w=\"vertical\",optional:T},H){let z=o1(),S=useId(),k=`${S}-description`,v=`${S}-help-text`,[F,R]=useState([]);return useEffect(function(){if(z&&p){let P=[];Children.toArray(u).map(D=>{if(!isValidElement(D)||D.type!==g8)return;function $(x1,p1,f1){return a1=>{let O=f1.getValues(p1);Array.isArray(O)?a1?O.push(x1.value):O.splice(O.indexOf(x1.value),1):O=[x1.value],x1.onChange?.(O),g?.(O);}}P.push(cloneElement(D,{...D.props,name:void 0,onChange:$(D.props,p,z.control),checked:C?.includes(D.props.value)}));}),R(P);}else R(u);},[u,z,p,g,C]),jsx(re.Provider,{value:{invalid:a??!1,disabled:h??!1,readOnly:f??!1,variant:c,values:[],name:p},children:jsxs(G5.group,{\"data-variant\":c,\"data-direction\":w,ref:H,tabIndex:-1,\"aria-describedby\":[k,v].join(\" \"),\"aria-required\":o?\"true\":void 0,\"aria-label\":l?t:void 0,children:[t&&!l?jsx(G5.legend,{type:\"legend\",optional:o?!1:T,children:t}):null,jsx(G5.description,{id:k,children:n}),jsx(G5.items,{children:F}),jsx(g1,{id:v,invalid:a,children:a&&i?i:r})]})})});function Ei(e,t){let l=o1(),o=A();if(!l||e.name==null)return jsx(v8,{...e});function n(r){e.onChange?.(Array.isArray(r.target.value)?r.target.value:[]);}return jsx(Controller,{control:l.control.control,name:e.name,rules:{...e.options,onChange:n},disabled:e.disabled,render:({field:r,fieldState:a,formState:i})=>{let c=new h1(e,o,a,i);return jsx(v8,{...e,...r,optional:c.isOptional(),required:c.isRequired(),readOnly:c.isReadOnly(),invalid:c.isInvalid(),invalidText:c.invalidText(),ref:C1([t,r.ref])})}})}var mz=forwardRef(Ei);var ae=createContext(void 0);function X5(){let e=useContext(ae);if(!e)throw new Error(\"useCellulaInputComboboxContext must be used within CellulaInputCombobox.Root\");return e}function M8({id:e,name:t,label:l,hideLabel:o,invalid:n,invalidText:r,helperText:a,onChange:i,required:c,value:p,readOnly:u,defaultValue:h,description:f,optional:g}){let C=useId();e&&(C=e);let w=`${C}-label`,T=`${C}-description`,H=`${C}-helpText`;return {props:{name:t,onChange:i,value:p??h},triggerProps:{id:C,role:\"combobox\",\"aria-required\":c?\"true\":void 0,\"aria-invalid\":n?\"true\":void 0,\"aria-labelledby\":o?void 0:w,\"aria-label\":o?l:void 0,\"aria-describedby\":[T,H].join(\" \"),\"aria-readonly\":u??void 0,\"data-placeholder\":p===void 0?!0:void 0},labelProps:{optional:c?!1:g,htmlFor:C,children:o?null:l},descriptionProps:{id:T,children:f??void 0},helpTextProps:{id:H,invalid:!!(n&&r),children:n&&r?r:a}}}var s1=new I(\"inputCombobox\");var W5={item:e3(Command.Item)`\n\t\tall: unset;\n\t\tbox-sizing: border-box;\n\t\tfont: ${s1.getValue(\"itemFont\")};\n\t\tcolor: ${s1.getValue(\"itemFontColor\")};\n\t\tborder-radius: ${s1.getValue(\"itemBorderRadius\")};\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: ${m.spacing.x1_5};\n\t\twidth: 100%;\n\t\tpadding: ${s1.getValue(\"itemPadding\")};\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tmargin-top: ${m.spacing.x0_25};\n\t\ttransition: background 150ms;\n\t\tword-break: break-word;\n\t\tmin-height: ${s1.getValue(\"itemMinHeight\")};\n\n\t\t&[data-state='selected'] {\n\t\t\tbackground: ${s1.getValue(\"itemSelectedBackground\")};\n\t\t}\n\n\t\t@media (hover: hover) {\n\t\t\t&[data-selected='true'] {\n\t\t\t\tbackground: ${s1.getValue(\"itemHoverBackground\")};\n\t\t\t}\n\t\t}\n\t`,label:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: ${m.spacing.x0_25};\n\t`,subLabel:e3.span`\n\t\tfont: ${s1.getValue(\"itemSubLabelFont\")};\n\t\tcolor: ${s1.getValue(\"itemSubLabelFontColor\")};\n\t`,icon:e3.div`\n\t\tflex: 0 0 auto;\n\t\tmargin-left: auto;\n\t`};function J5({label:e,subLabel:t,value:l}){let o=X5(),n={label:e,subLabel:t,value:l??e},r=useRef(null),a=e+\" \"+(t?t+\" \":\"\")+l,i=o.selected?.value===n.value;function c(){o.selectItem(n);}return useEffect(()=>{r.current&&i&&setTimeout(()=>{r.current?.scrollIntoView({block:\"center\"});});},[r.current]),jsxs(W5.item,{value:a,onSelect:c,\"aria-selected\":i?\"true\":void 0,\"data-selected\":i?\"true\":void 0,\"data-state\":i?\"selected\":void 0,ref:r,children:[jsxs(W5.label,{children:[e,t?jsx(W5.subLabel,{children:t}):null]}),i?jsx(W5.icon,{children:jsx(N,{type:\"check\",size:\"small\"})}):null]})}var M3={content:e3(Command)`\n\t\tz-index: ${l1.high};\n\t\toverflow: hidden;\n\t\tborder: 1px solid ${s1.getValue(\"contentBorderColor\")};\n\t\tborder-radius: ${s1.getValue(\"contentBorderRadius\")};\n\t\tbackground: ${s1.getValue(\"contentBackground\")};\n\t\tbox-shadow: ${s1.getValue(\"contentBoxShadow\")};\n\t\tcolor: ${s1.getValue(\"contentFontColor\")};\n\t\tpadding: ${m.spacing.x0_5};\n\t\twidth: var(--radix-popover-trigger-width);\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tmax-height: min(var(--radix-popover-content-available-height), 400px);\n\t`,contentHead:e3.div`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-item: space-between;\n\t\tpadding: ${m.spacing.x1};\n\t\tgap: ${m.spacing.x1};\n\t\tborder-bottom: 1px solid ${s1.getValue(\"inputBorderColor\")};\n\t`,contentInputIcon:e3.div`\n\t\tcolor: ${s1.getValue(\"inputIconColor\")};\n\t`,contentInput:e3(Command.Input)`\n\t\tall: unset;\n\t\tfont: ${s1.getValue(\"inputFont\")};\n\t\theight: ${s1.getValue(\"inputHeight\")};\n\t\twidth: 100%;\n\t`,contentList:e3.div`\n\t\toverflow-x: hidden;\n\t\toverflow-y: auto;\n\t\theight: 100%;\n\t`,contentEmpty:e3(Command.Empty)`\n\t\tfont: ${s1.getValue(\"emptyFont\")};\n\t\tcolor: ${s1.getValue(\"emptyFontColor\")};\n\t\tpadding: ${s1.getValue(\"emptyPadding\")};\n\t`};function y8({children:e}){let t=A(),l=X5();function o(n){l.onInputChange?.(n);}return jsx(q5.Content,{asChild:!0,children:jsxs(M3.content,{loop:!0,shouldFilter:!!l&&!l.onInputChange,children:[jsxs(M3.contentHead,{children:[jsx(M3.contentInputIcon,{children:jsx(N,{type:\"magnifyingGlass\",size:\"small\"})}),jsx(M3.contentInput,{onValueChange:o,\"aria-busy\":l.loading?\"true\":void 0}),l.loading&&jsx(M3.contentInputIcon,{children:jsx(m3,{size:\"small\"})})]}),!l.loading&&jsx(M3.contentEmpty,{children:t(\"Component.InputCombobox.Empty\")}),jsx(M3.contentList,{children:jsx(Command.List,{children:e})})]})})}var G0={container:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex: 1 1 auto;\n\t`,label:e3(y1)`\n\t\tmargin-bottom: ${B.getValue(\"labelMarginBottom\")};\n\t`,description:e3(H1)`\n\t\tmargin-bottom: ${B.getValue(\"descriptionMarginBottom\")};\n\t`,trigger:e3(s2)`\n\t\tall: unset;\n\n\t\tuser-select: none;\n\t\t-webkit-tap-highlight-color: transparent;\n\t\t-webkit-user-drag: none;\n\t\t-webkit-touch-callout: none;\n\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\t\tpadding: ${B.getValue(\"basePaddingVertical\")} ${B.getValue(\"basePaddingHorizontal\")};\n\t\tbackground-color: ${B.getValue(\"baseBackground\")};\n\t\tfont: ${B.getValue(\"baseFont\")};\n\t\tborder: 1px solid ${B.getValue(\"baseBorderColor\")};\n\t\tborder-radius: ${B.getValue(\"baseBorderRadius\")};\n\t\tcolor: ${s1.getValue(\"triggerFontColor\")};\n\t\ttransition: border-color 150ms;\n\t\tjustify-content: space-between;\n\t\tcursor: default;\n\n\t\t&:focus-visible,\n\t\t&[aria-expanded='true'] {\n\t\t\tborder-color: ${B.getValue(\"hoverBorderColor\")};\n\t\t\toutline: 3px solid ${B.getValue(\"focusRingColor\")};\n\t\t}\n\n\t\t&[data-selected='true'] {\n\t\t\tfont: ${s1.getValue(\"triggerSelectedFont\")};\n\t\t\tbackground: ${s1.getValue(\"triggerSelectedBackground\")};\n\t\t}\n\n\t\t&[aria-invalid='true'] {\n\t\t\tborder-color: ${B.getValue(\"invalidBorderColor\")};\n\t\t}\n\n\t\t&[aria-readonly='true'] {\n\t\t\topacity: 0.7;\n\t\t\tbackground: ${B.getValue(\"readOnlyBackground\")};\n\t\t\tborder-color: ${B.getValue(\"readOnlyBorderColor\")};\n\t\t}\n\n\t\t@media (hover: hover) {\n\t\t\t&:hover {\n\t\t\t\tborder-color: ${B.getValue(\"hoverBorderColor\")};\n\t\t\t}\n\t\t}\n\t`,triggerIcon:e3.span`\n\t\tcolor: ${s1.getValue(\"triggerIconColor\")};\n\t\ttransition: transform 150ms;\n\t\tmargin-left: ${m.spacing.x1};\n\n\t\t&[data-state='open'] {\n\t\t\ttransform: rotate(180deg);\n\t\t}\n\t`},de=forwardRef(function({id:t,name:l,label:o,hideLabel:n,invalid:r,invalidText:a,helperText:i,required:c,placeholder:p,defaultValue:u,value:h,onChange:f,readOnly:g,children:C,onInputChange:w,loading:T,disallowDeselection:H=!1,description:z,optional:S},k){let[v,F]=useState(!1),[R,W]=useState([]),P=A(),{props:D,labelProps:$,triggerProps:x1,helpTextProps:p1,descriptionProps:f1}=M8({id:t,name:l,label:o,hideLabel:n,invalid:r,invalidText:a,helperText:i,onChange:f,required:c,readOnly:g,value:h,defaultValue:u,description:z,optional:S}),[a1,O]=useState(null),[D1,X1]=useState(D.value??null),[n2,r2]=useState(!1),U=useCallback(_=>{let d1=_.value===D1&&H==!1?null:_;X1(d1?.value??null),O(d1),F(!1),D.onChange?.(d1);},[D,D1,H]);function S1(_){F(g?!1:_);}return useEffect(function(){let d1=[];Children.forEach(C,j=>{!j||!isValidElement(j)||j.type===J5&&d1.push({label:j.props.label,subLabel:j.props.subLabel,value:j.props.value});}),W(d1);},[C]),useEffect(function(){h!==void 0&&(O(null),X1(h??null));},[h]),useEffect(function(){let d1=null;D1&&(d1=R.find(j=>j.value.toLocaleLowerCase()===D1.toLocaleLowerCase())??null),d1==null&&D1&&n2?(O(null),X1(null),D.onChange?.(null)):O(d1);},[D1,R,f,D,n2]),useEffect(function(){r2(!0);},[]),jsx(ae.Provider,{value:{onInputChange:w,selectItem:U,selected:a1,loading:T??!1},children:jsxs(q5.Root,{open:v,onOpenChange:S1,children:[jsxs(G0.container,{children:[jsx(G0.label,{...$}),jsx(G0.description,{...f1}),jsx(q5.Trigger,{asChild:!0,ref:k,children:jsxs(G0.trigger,{\"aria-expanded\":v,\"data-selected\":a1?!0:void 0,...x1,children:[a1?a1.label:p??P(\"Component.InputCombobox.Placeholder\"),jsx(G0.triggerIcon,{\"data-state\":v?\"open\":void 0,children:jsx(N,{type:\"chevronDown\"})})]})}),jsx(g1,{...p1})]}),jsx(y8,{children:C})]})})});function Wi(e,t){let l=o1(),o=A();return l==null||e.name==null?jsx(de,{...e,ref:t}):jsx(Controller,{control:l.control.control,name:e.name,defaultValue:e.defaultValue,rules:{...e.options,onChange:e.onChange},render:({field:n,fieldState:r,formState:a})=>{let i=new h1(e,o,r,a);function c(p){n.onChange(p?p.value:null);}return jsx(de,{...e,...n,optional:i.isOptional(),required:i.isRequired(),readOnly:i.isReadOnly(),invalid:i.isInvalid(),invalidText:i.invalidText(),onChange:c,defaultValue:void 0,ref:C1([t,n.ref])})}})}var My={Root:forwardRef(Wi),Item:J5};var q=new I(\"inputRadio\");var ue=createContext(void 0);function H8(){let e=useContext(ue);if(e===void 0)throw new Error(\"useInputRadioContext must be used within a InputRadio.Root\");return e}var e4={group:e3.fieldset`\n\t\t--item-gap: ${q.getValue(\"itemsGap\")};\n\t\t--item-direction: column;\n\t\t--items-margin: ${q.getValue(\"itemsMargin\")};\n\n\t\tall: unset;\n\n\t\tuser-select: none;\n\t\t-webkit-tap-highlight-color: transparent;\n\t\t-webkit-user-drag: none;\n\t\t-webkit-touch-callout: none;\n\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\n\t\t&[data-direction='horizontal'] {\n\t\t\t--item-direction: row;\n\t\t\t--item-gap: ${q.getValue(\"itemsGap\")};\n\n\t\t\t&[data-variant='none'] {\n\t\t\t\t--item-gap: ${q.getValue(\"itemsHorizontalGap\")};\n\t\t\t}\n\t\t}\n\n\t\t&[data-variant='outlined'] {\n\t\t\t--item-gap: ${q.getValue(\"outlinedItemsGap\")};\n\t\t\t--items-margin: 0;\n\t\t}\n\t`,legend:e3(y1)`\n\t\tmargin-bottom: ${B.getValue(\"labelMarginBottom\")};\n\t`,description:e3(H1)`\n\t\tmargin-bottom: ${B.getValue(\"descriptionMarginBottom\")};\n\t`,items:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: var(--item-direction);\n\t\tgap: var(--item-gap);\n\t\tflex-wrap: wrap;\n\t\tmargin: var(--items-margin) 0;\n\t`};function L8(e,t){let l=o1(),o=A();return l==null||e.name==null?jsx(F8,{...e}):jsx(Controller,{control:l.control.control,name:e.name,defaultValue:e.defaultValue,rules:{...e.options,onChange:e.onChange},disabled:e.disabled,render:({field:n,fieldState:r,formState:a})=>{let i=new h1(e,o,r,a);return jsx(F8,{...e,...n,optional:i.isOptional(),required:i.isRequired(),invalid:i.isInvalid(),invalidText:i.invalidText(),readOnly:i.isReadOnly(),ref:C1([t,n.ref])})}})}var F8=forwardRef(function({label:t,hideLabel:l,description:o,direction:n=\"vertical\",helperText:r,name:a,variant:i=\"none\",children:c,onChange:p,value:u,optional:h,invalid:f=!1,invalidText:g,readOnly:C=!1,disabled:w=!1,required:T},H){let z=useId(),S=`${z}-description`,k=`${z}-help-text`;function v(F){C||p?.(F);}return jsx(ue.Provider,{value:{variant:i,invalid:f,readOnly:C,disabled:w},children:jsx(o4.Root,{name:a,onValueChange:v,value:u??(C?\"UNDEFINED_FAKE_VALUE\":void 0),disabled:w,required:T,asChild:!0,children:jsxs(e4.group,{\"data-variant\":i,\"data-direction\":n,\"aria-describedby\":[S,k].join(\" \"),\"aria-readonly\":C??void 0,\"aria-label\":l?t:void 0,ref:H,children:[t&&!l?jsx(e4.legend,{type:\"legend\",optional:T?!1:h,children:t}):null,jsx(e4.description,{id:S,children:o}),jsx(e4.items,{children:c}),jsx(g1,{id:k,invalid:f,children:f&&g?g:r})]})})})});var la=keyframes`\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t}\n to {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t}\n`,l4={item:e3(o4.Item)`\n\t\t--background: none;\n\t\t--radio-border-color: ${q.getValue(\"indicatorBorderColor\")};\n\t\t--radio-background: ${q.getValue(\"indicatorBackground\")};\n\t\t--radio-outline: none;\n\t\t--indicator-background: ${q.getValue(\"indicatorBorderColor\")};\n\n\t\tall: unset;\n\n\t\tuser-select: none;\n\t\t-webkit-tap-highlight-color: transparent;\n\t\t-webkit-user-drag: none;\n\t\t-webkit-touch-callout: none;\n\n\t\tbox-sizing: border-box;\n\t\tdisplay: flex;\n\t\tgap: ${q.getValue(\"itemGap\")};\n\t\talign-items: center;\n\t\tcursor: default;\n\t\tfont: ${q.getValue(\"itemFont\")};\n\t\tcolor: ${q.getValue(\"itemTextColor\")};\n\t\tbackground: var(--background);\n\t\tborder-radius: ${m.borderRadius.xSmall};\n\t\ttransition:\n\t\t\tborder 150ms ease-out,\n\t\t\tbackground 150ms ease-out,\n\t\t\tbox-shadow 50ms ease-out;\n\n\t\t&[data-state='checked'] {\n\t\t\tfont: ${q.getValue(\"checkedItemFont\")};\n\n\t\t\t--radio-border-color: ${q.getValue(\"checkedIndicatorBorderColor\")};\n\t\t\t--indicator-background: ${q.getValue(\"checkedIndicatorBorderColor\")};\n\t\t}\n\n\t\t&:focus-visible {\n\t\t\toutline: 2px solid ${q.getValue(\"focusColor\")};\n\t\t\toutline-offset: 2px;\n\t\t}\n\n\t\t&[data-variant='none'] {\n\t\t\t&:hover {\n\t\t\t\t--radio-border-color: ${q.getValue(\"checkedIndicatorBorderColor\")};\n\t\t\t}\n\n\t\t\t&:active {\n\t\t\t\t--radio-outline: 0 0 0 2px ${q.getValue(\"activeIndicatorOutlineColor\")};\n\t\t\t}\n\n\t\t\t&[data-invalid='true'] {\n\t\t\t\t--radio-border-color: ${B.getValue(\"invalidBorderColor\")};\n\t\t\t}\n\t\t}\n\n\t\t&[data-variant='outlined'] {\n\t\t\tpadding: ${q.getValue(\"outlinedItemPadding\")};\n\t\t\tborder: 1px solid ${q.getValue(\"outlinedItemBorderColor\")};\n\t\t\tmin-height: ${q.getValue(\"outlinedItemMinHeight\")};\n\t\t\tborder-radius: ${q.getValue(\"outlinedItemBorderRadius\")};\n\n\t\t\t&:hover {\n\t\t\t\tborder-color: ${q.getValue(\"hoverOutlinedItemBorderColor\")};\n\t\t\t}\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: 0 0 0 2px ${q.getValue(\"activeOutlinedItemOutlineColor\")};\n\t\t\t}\n\n\t\t\t&[data-state='checked'] {\n\t\t\t\t--background: ${q.getValue(\"checkedOutlinedItemBackground\")};\n\t\t\t}\n\n\t\t\t&[data-invalid='true'] {\n\t\t\t\tborder-color: ${B.getValue(\"invalidBorderColor\")};\n\t\t\t}\n\t\t}\n\n\t\t// Disabled/ReadOnly\n\t\t&[data-read-only='true'],\n\t\t&[data-disabled='true'] {\n\t\t\t--radio-border-color: ${q.getValue(\"disabledIndicatorBorderColor\")};\n\t\t\t--radio-background: ${q.getValue(\"disabledIndicatorBackground\")};\n\t\t\t--indicator-background: ${q.getValue(\"disabledIndicatorBorderColor\")};\n\t\t\topacity: 0.7;\n\n\t\t\t&:hover,\n\t\t\t&:active {\n\t\t\t\t--radio-border-color: ${q.getValue(\"disabledIndicatorBorderColor\")};\n\t\t\t\t--radio-outline: none;\n\t\t\t}\n\n\t\t\t&[data-variant='outlined'] {\n\t\t\t\t--background: ${q.getValue(\"disabledOutlinedItemBackground\")};\n\t\t\t\tborder: none;\n\n\t\t\t\t&:hover,\n\t\t\t\t&:active {\n\t\t\t\t\tbox-shadow: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,radio:e3.span`\n\t\tdisplay: flex;\n\t\twidth: ${q.getValue(\"indicatorOuterSize\")};\n\t\theight: ${q.getValue(\"indicatorOuterSize\")};\n\t\tborder: 2px solid var(--radio-border-color);\n\t\tborder-radius: 50%;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tbox-shadow: var(--radio-outline);\n\t\tbackground: var(--radio-background);\n\t\tflex: 0 0 auto;\n\t\ttransition:\n\t\t\tborder 150ms ease-out,\n\t\t\tbox-shadow 50ms ease-out;\n\t`,indicator:e3(o4.Indicator)`\n\t\tdisplay: block;\n\t\twidth: ${q.getValue(\"indicatorInnerSize\")};\n\t\theight: ${q.getValue(\"indicatorInnerSize\")};\n\t\tbackground: var(--indicator-background);\n\t\tborder-radius: 50%;\n\t\tanimation: ${la} 100ms ease-out;\n\t`,text:e3.span`\n\t\tdisplay: inline-flex;\n\t\tflex-direction: column;\n\n\t\t// To avoid layout shift, this pseudo-element is added.\n\t\t&::after {\n\t\t\tcontent: attr(data-text);\n\t\t\tcontent: attr(data-text) / '';\n\t\t\theight: 0;\n\t\t\tvisibility: hidden;\n\t\t\toverflow: hidden;\n\t\t\tuser-select: none;\n\t\t\tpointer-events: none;\n\t\t\tfont: ${q.getValue(\"checkedItemFont\")};\n\t\t\t@media speech {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t`};function T8({label:e,...t},l){let o=H8();return jsxs(l4.item,{\"data-variant\":o.variant,\"data-invalid\":o.invalid??void 0,\"aria-readonly\":o.readOnly??void 0,\"data-read-only\":o.readOnly??void 0,\"data-disabled\":o.disabled??void 0,...t,ref:l,children:[jsx(l4.radio,{children:jsx(l4.indicator,{})}),jsx(l4.text,{\"data-text\":e,children:e})]})}var oH={Root:forwardRef(L8),Item:forwardRef(T8)};var ra={label:e3(k2.Label)`\n\t\tpadding: 0 25px;\n\t\tfont-size: 12px;\n\t\tline-height: 25px;\n\t\tcolor: red;\n\t`};function I8(e,t){return jsxs(k2.Group,{...e,ref:t,children:[jsx(ra.label,{children:e.label}),e.children]})}var G=new I(\"inputSelect\");var k3=createContext({readOnly:!1,invalid:!1,isOpen:!1,setIsOpen:()=>{}});function S8(){let e=useContext(k3);if(!e)throw new Error(\"useInputSelectContext must be used within a CellulaSelectContext\");return e}var E8={item:e3(k2.Item)`\n\t\tall: unset;\n\t\tfont: ${m.text.body.regular};\n\t\tline-height: 1;\n\t\tcolor: ${G.getValue(\"itemColor\")};\n\t\tborder-radius: ${G.getValue(\"itemBorderRadius\")};\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\ttransition: all 150ms ease-out;\n\t\tbox-sizing: border-box;\n\t\theight: ${G.getValue(\"itemHeightMobile\")};\n\t\tpadding: ${G.getValue(\"itemPaddingMobile\")};\n\n\t\t${m.breakpointQuery.medium} {\n\t\t\theight: ${G.getValue(\"itemHeight\")};\n\t\t\tpadding: ${G.getValue(\"itemPadding\")};\n\t\t}\n\n\t\t&[data-disabled] {\n\t\t\tcolor: ${G.getValue(\"itemDisabledColor\")};\n\t\t\tpointer-events: none;\n\t\t}\n\n\t\t&[data-state='checked'] {\n\t\t\tfont: ${G.getValue(\"itemCheckedFont\")};\n\t\t\tbackground: ${G.getValue(\"itemCheckedBackground\")};\n\t\t}\n\n\t\t@media (hover: hover) {\n\t\t\t&[data-highlighted] {\n\t\t\t\tbackground-color: ${G.getValue(\"itemHighlightBackground\")};\n\t\t\t}\n\t\t}\n\t`,indicator:e3(k2.ItemIndicator)`\n\t\tposition: absolute;\n\t\tright: ${G.getValue(\"itemIndicatorSpacingMobile\")};\n\t\tcolor: ${G.getValue(\"itemIndicatorColor\")};\n\t\twidth: 25px;\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\n\t\t${m.breakpointQuery.medium} {\n\t\t\tright: ${G.getValue(\"itemIndicatorSpacing\")};\n\t\t}\n\t`};function A8({disabled:e,...t},l){let{readOnly:o}=useContext(k3);return jsxs(E8.item,{disabled:o||e,...t,ref:l,children:[jsx(k2.ItemText,{children:t.children}),jsx(E8.indicator,{children:jsx(N,{type:\"check\"})})]})}var K3={sheet:e3(k2.Content)`\n\t\tz-index: ${l1.DANGER};\n\t\toverflow: hidden;\n\t`,sheetBackground:e3(motion.div)`\n\t\tbackground: rgba(0, 0, 0, 0.3);\n\t\tposition: fixed;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tz-index: ${l1.DANGER};\n\t`,sheetContent:e3(motion.div)`\n\t\ttext-align: center;\n\t\tposition: fixed;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tmax-height: 70vh;\n\t\tz-index: ${l1.DANGER};\n\n\t\t/* A pseudo element is used as the content filling, it comes with the benefit to extend the\n\t height without affecting the layout. */\n\t\t&::before {\n\t\t\tcontent: '';\n\t\t\tdisplay: block;\n\t\t\tborder-radius: ${G.getValue(\"contentBorderRadius\")} ${G.getValue(\"contentBorderRadius\")} 0 0;\n\t\t\tbackground-color: ${G.getValue(\"contentBackground\")};\n\t\t\t/* Needs to be x bigger so the sheet may go under the viewport. It's for the cases where\n\t\t\t the user drags the sheet upwards, will look wonky without it. */\n\t\t\theight: calc(100vh * 2);\n\n\t\t\tz-index: -1;\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\n\t\t\tbox-shadow: 0 -5px 25px 7px rgb(0 0 0 / 20%);\n\t\t}\n\t`,sheetHeader:e3.div`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: ${m.spacing.x0_5};\n\t\tpadding: 0 ${m.spacing.x2};\n\t\tborder-bottom: 1px solid ${G.getValue(\"contentBorderColor\")};\n\t\tmin-height: ${G.getValue(\"itemHeight\")};\n\t`,sheetScrollable:e3.div`\n\t\tmax-height: calc(70vh - ${G.getValue(\"itemHeight\")});\n\t\twidth: 100%;\n\t\toverflow-y: auto;\n\t`,styledContent:e3(k2.Content)`\n\t\tpointer-events: none;\n\t\tz-index: ${l1.high};\n\t\toverflow: hidden;\n\t\tbackground-color: ${G.getValue(\"contentBackground\")};\n\t\tborder-radius: ${G.getValue(\"contentBorderRadius\")};\n\t\tborder: 1px solid ${G.getValue(\"contentBorderColor\")};\n\t\tbox-shadow: ${G.getValue(\"contentBoxShadow\")};\n\t`};function i4({labelProps:e,children:t,...l}){let o=S8(),{portalElement:n}=B1(),r=b5.platformIs(I0.Mobile),a=A();return jsx(AnimatePresence,{children:jsx(k2.Portal,{style:{zIndex:l1.DANGER},container:n,children:r?jsxs(Fragment$1,{children:[o.isOpen?jsx(K3.sheetBackground,{initial:{opacity:0},animate:{opacity:1}}):null,jsx(K3.sheet,{...l,ref:i=>i?.addEventListener(\"touchend\",c=>c.preventDefault()),children:jsxs(K3.sheetContent,{initial:{y:\"100%\"},animate:{y:0},transition:{type:\"spring\",stiffness:200,damping:20},children:[jsxs(K3.sheetHeader,{children:[jsx(z1,{variant:\"labelSmallSemiBold\",children:e.children}),e.optional?jsxs(z1,{variant:\"labelXSmallRegular\",children:[\" (\",a(\"Component.Label.Optional\"),\")\"]}):null]}),jsx(K3.sheetScrollable,{children:t})]})})]}):jsx(K3.styledContent,{...l,ref:i=>i?.addEventListener(\"touchend\",c=>c.preventDefault()),children:t})})})}var D8={trigger:e3(k2.SelectTrigger)`\n\t\tall: unset;\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tpadding: ${B.getValue(\"basePaddingVertical\")} ${B.getValue(\"basePaddingHorizontal\")};\n\t\tbackground-color: ${B.getValue(\"baseBackground\")};\n\t\tborder: 1px solid ${B.getValue(\"baseBorderColor\")};\n\t\tborder-radius: ${B.getValue(\"baseBorderRadius\")};\n\t\tcolor: ${G.getValue(\"triggerColor\")};\n\t\ttransition: border-color 150ms;\n\t\tfont: ${G.getValue(\"itemCheckedFont\")};\n\t\tbackground-color: ${G.getValue(\"triggerSelectedBackground\")};\n\n\t\tspan:nth-child(1) {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t&:hover {\n\t\t\tborder-color: ${B.getValue(\"hoverBorderColor\")};\n\t\t}\n\n\t\t&:focus-visible {\n\t\t\tborder-color: ${B.getValue(\"hoverBorderColor\")};\n\t\t\toutline: 3px solid ${B.getValue(\"focusRingColor\")};\n\t\t}\n\n\t\t&[data-disabled] {\n\t\t\tbackground-color: ${G.getValue(\"itemDisabledBackground\")};\n\t\t\topacity: 0.7;\n\t\t\tpointer-events: none;\n\t\t}\n\n\t\t&[data-placeholder] {\n\t\t\tfont: ${B.getValue(\"baseFont\")};\n\t\t\tcolor: ${G.getValue(\"triggerPlaceholderColor\")};\n\t\t\tbackground-color: ${G.getValue(\"triggerBackground\")};\n\t\t}\n\n\t\t&[aria-invalid='true'] {\n\t\t\tborder-color: ${G.getValue(\"triggerInvalidBorder\")};\n\t\t\tbackground-color: ${G.getValue(\"triggerInvalidBackground\")};\n\t\t}\n\n\t\t&[data-readonly] {\n\t\t\topacity: 0.7;\n\t\t\tbackground: ${B.getValue(\"readOnlyBackground\")};\n\t\t\tborder-color: ${B.getValue(\"readOnlyBorderColor\")};\n\t\t}\n\t`,arrowIcon:e3(k2.SelectIcon)`\n\t\tcolor: ${G.getValue(\"selectIconColor\")};\n\t`},N8=forwardRef(function({placeholder:t,...l},o){let n=A(),r=useContext(k3),a=l[\"aria-labelledby\"],i=l[\"aria-label\"];return jsxs(D8.trigger,{\"aria-labelledby\":a||void 0,\"aria-label\":i||void 0,\"aria-invalid\":r.invalid||void 0,...l,\"data-readonly\":r.readOnly||void 0,ref:o,children:[jsx(k2.Value,{placeholder:t??n(\"Component.InputSelect.Placeholder\")}),jsx(D8.arrowIcon,{children:jsx(N,{type:\"chevronDown\"})})]})});function $8({id:e,name:t,label:l,hideLabel:o,invalid:n,readOnly:r,invalidText:a,helperText:i,onValueChange:c,required:p,value:u,defaultValue:h,placeholder:f,description:g,optional:C}){let w=useId();e&&(w=e);let T=`${w}-label`,H=`${w}-helpText`,z=`${w}-description`;return {props:{id:w,name:t,invalid:n,readOnly:r,onValueChange:c,required:p,value:u,defaultValue:h},triggerProps:{\"aria-labelledby\":o?void 0:T,\"aria-label\":o?l:void 0,\"aria-describedby\":[z,H].join(\" \"),placeholder:f},labelProps:{optional:p?!1:C,htmlFor:w,children:o?null:l},descriptionProps:{id:z,children:g??void 0},helpTextProps:{id:H,invalid:!!(n&&a),children:n&&a?a:i}}}var M2={container:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t`,labelWrapper:e3.div`\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\tgap: ${m.size.x1};\n\t\tmargin-bottom: ${B.getValue(\"labelMarginBottom\")};\n\t`,description:e3(H1)`\n\t\tmargin-bottom: ${B.getValue(\"descriptionMarginBottom\")};\n\t`,viewport:e3(k2.Viewport)`\n\t\tpadding: ${G.getValue(\"itemViewportPaddingMobile\")};\n\n\t\t${m.breakpointQuery.medium} {\n\t\t\tpadding: ${G.getValue(\"itemViewportPadding\")};\n\t\t}\n\t`,scrollUpButton:e3(k2.ScrollUpButton)`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\theight: 25px;\n\t\tbackground-color: white;\n\t\tcolor: ${G.getValue(\"itemScrollButtonColor\")};\n\t\tcursor: default;\n\t`,scrollDownButton:e3(k2.ScrollDownButton)`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\theight: 25px;\n\t\tbackground-color: white;\n\t\tcolor: ${G.getValue(\"itemScrollButtonColor\")};\n\t\tcursor: default;\n\t`},Ce=forwardRef(function({label:t,hideLabel:l=!1,name:o,required:n=!1,id:r,invalid:a,invalidText:i,helperText:c,placeholder:p,readOnly:u,onValueChange:h,options:f,children:g,value:C,description:w,optional:T,open:H,labelSlot:z,...S},k){let{props:v,labelProps:F,triggerProps:R,descriptionProps:W,helpTextProps:P}=$8({id:r,name:o,label:t,hideLabel:l,invalid:a,invalidText:i,helperText:c,onValueChange:h,readOnly:u,required:n,options:f,value:C,placeholder:p,description:w,defaultValue:S.defaultValue,optional:T}),[D,$]=useState(H??!1),x1=b5.platformIs(I0.Mobile);useEffect(function(){$(H??!1);},[H]);function p1(a1){v.onValueChange?.(a1);}function f1(a1){$(a1);}return jsx(k3.Provider,{value:{readOnly:v.readOnly??!1,invalid:v.invalid??!1,isOpen:D,setIsOpen:$},children:jsxs(k2.Root,{...S,...v,open:D,onValueChange:p1,onOpenChange:f1,children:[jsxs(M2.container,{children:[jsxs(M2.labelWrapper,{children:[jsx(y1,{...F}),z??null]}),jsx(M2.description,{...W}),jsx(N8,{...x1?{onPointerDown:a1=>a1.preventDefault(),onClick:()=>$(!D)}:void 0,...R,ref:k}),jsx(g1,{...P})]}),jsxs(i4,{labelProps:F,children:[jsx(M2.scrollUpButton,{children:jsx(N,{type:\"chevronUp\"})}),jsx(M2.viewport,{children:g}),jsx(M2.scrollDownButton,{children:jsx(N,{type:\"chevronDown\"})})]})]})})});var ba={separator:e3(k2.Separator)`\n\t\theight: 1px;\n\t\tbackground-color: ${G.getValue(\"itemSeparatorBackground\")};\n\t\tmargin: ${G.getValue(\"itemSeparatorSpacing\")};\n\t`};function O8(e,t){return jsx(ba.separator,{ref:t})}function Ha(e,t){let l=o1(),o=A();if(l==null||e.name==null)return jsx(Ce,{...e,ref:t});function n(r){e.onValueChange?.(r.target.value);}return jsx(Controller,{control:l.control.control,name:e.name,defaultValue:e.defaultValue,rules:{...e.options,onChange:n},disabled:e.disabled,render:({field:r,fieldState:a,formState:i})=>{let c=new h1(e,o,a,i);function p(u){r.onChange(u);}return jsx(Ce,{...e,...r,optional:c.isOptional(),required:c.isRequired(),invalid:c.isInvalid(),invalidText:c.invalidText(),readOnly:c.isReadOnly(),value:r.value??\"\",onValueChange:p,defaultValue:void 0,ref:C1([t,r.ref])})}})}var ve={Root:forwardRef(Ha),Item:forwardRef(A8),Group:forwardRef(I8),Separator:forwardRef(O8)};var j0=new I(\"inputDate\");var J0={container:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex: 1 1 auto;\n\t`,label:e3(y1)`\n\t\tmargin-bottom: ${B.getValue(\"labelMarginBottom\")};\n\t`,description:e3(H1)`\n\t\tmargin-bottom: ${B.getValue(\"descriptionMarginBottom\")};\n\t`,input:e3(J2.input)`\n\t\tpadding-left: ${j0.getValue(\"iconPaddingLeft\")};\n\n\t\t&::-webkit-calendar-picker-indicator {\n\t\t\tbackground: transparent;\n\t\t\tbottom: 0;\n\t\t\tcolor: transparent;\n\t\t\tcursor: pointer;\n\t\t\theight: auto;\n\t\t\tleft: 0;\n\t\t\tposition: absolute;\n\t\t\tright: 0;\n\t\t\ttop: 0;\n\t\t\twidth: auto;\n\t\t}\n\t`,icon:e3(N)`\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: ${B.getValue(\"basePaddingHorizontal\")};\n\t\ttransform: translateY(-50%);\n\t\tcolor: ${j0.getValue(\"iconColor\")};\n\t\twidth: ${j0.getValue(\"iconSize\")};\n\t\theight: ${j0.getValue(\"iconSize\")};\n\t`},xe=forwardRef(function({id:t,name:l,label:o,hideLabel:n,required:r,invalid:a,invalidText:i,helperText:c,defaultValue:p,readOnly:u,onChange:h,onBlur:f,onClick:g,description:C,optional:w,...T},H){let{props:z,labelProps:S,descriptionProps:k,helpTextProps:v}=v2({id:t,name:l,label:o,hideLabel:n,required:r,invalid:a,invalidText:i,helperText:c,defaultValue:p,readOnly:u,onChange:h,onBlur:f,description:C,optional:w},H),F=useRef(null),R=C2(z.ref,F);function W(P){F.current&&F.current.showPicker(),g?.(P);}return jsxs(J0.container,{children:[jsx(J0.label,{...S}),jsx(J0.description,{...k}),jsxs(J2.container,{children:[jsx(J0.icon,{type:\"calendar\"}),jsx(J0.input,{...T,...z,ref:R,onClick:W,type:\"date\"})]}),jsx(g1,{...v})]})});function Va(e,t){let l=o1(),o=A();return l==null||e.name==null?jsx(xe,{...e,ref:t}):jsx(Controller,{control:l.control.control,name:e.name,defaultValue:e.defaultValue,rules:{...e.options,onChange:e.onChange,onBlur:e.onBlur},disabled:e.disabled,render:({field:n,fieldState:r,formState:a})=>{let i=new h1(e,o,r,a);return jsx(xe,{...e,...n,optional:i.isOptional(),required:i.isRequired(),readOnly:i.isReadOnly(),invalid:i.isInvalid(),invalidText:i.invalidText(),value:n.value??\"\",defaultValue:void 0,ref:C1([t,n.ref])})}})}var nw=forwardRef(Va);var Y3=new I(\"inputTime\");var t0={container:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex: 1 1 auto;\n\t`,label:e3(y1)`\n\t\tmargin-bottom: ${B.getValue(\"labelMarginBottom\")};\n\t`,description:e3(H1)`\n\t\tmargin-bottom: ${B.getValue(\"descriptionMarginBottom\")};\n\t`,input:e3(J2.input)`\n\t\tpadding-left: ${Y3.getValue(\"iconPaddingLeft\")};\n\n\t\t&::-webkit-calendar-picker-indicator {\n\t\t\tdisplay: none;\n\t\t}\n\t`,iconButton:e3(s2)`\n\t\tall: unset;\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: ${S0(1)};\n\t\ttransform: translateY(-50%);\n\t\tcolor: ${Y3.getValue(\"iconColor\")};\n\t\twidth: ${Y3.getValue(\"iconPaddingLeft\")};\n\t\theight: calc(100% - ${S0(2)});\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t`,icon:e3(N)`\n\t\twidth: ${Y3.getValue(\"iconSize\")};\n\t\theight: ${Y3.getValue(\"iconSize\")};\n\t`},ke=forwardRef(function({id:t,name:l,label:o,hideLabel:n,required:r,invalid:a,invalidText:i,helperText:c,defaultValue:p,readOnly:u,onChange:h,onBlur:f,description:g,optional:C,...w},T){let{props:H,labelProps:z,helpTextProps:S,descriptionProps:k}=v2({id:t,name:l,label:o,hideLabel:n,required:r,invalid:a,invalidText:i,helperText:c,defaultValue:p,readOnly:u,onChange:h,onBlur:f,description:g,optional:C},T),v=useRef(null),F=C2(H.ref,v);function R(){v.current&&v.current.showPicker();}return jsxs(t0.container,{children:[jsx(t0.label,{...z}),jsx(t0.description,{...k}),jsxs(J2.container,{children:[jsx(t0.iconButton,{onClick:R,tabIndex:-1,children:jsx(t0.icon,{type:\"clock\"})}),jsx(t0.input,{...w,...H,ref:F,type:\"time\"})]}),jsx(g1,{...S})]})});function Aa(e,t){let l=o1(),o=A();return l==null||e.name==null?jsx(ke,{...e,ref:t}):jsx(Controller,{control:l.control.control,name:e.name,defaultValue:e.defaultValue,rules:{...e.options,onChange:e.onChange,onBlur:e.onBlur},disabled:e.disabled,render:({field:n,fieldState:r,formState:a})=>{let i=new h1(e,o,r,a);return jsx(ke,{...e,...n,optional:i.isOptional(),required:i.isRequired(),readOnly:i.isReadOnly(),invalid:i.isInvalid(),invalidText:i.invalidText(),value:n.value??\"\",defaultValue:void 0,ref:C1([t,n.ref])})}})}var Pw=forwardRef(Aa);var O1=new I(\"inputSwitch\");var n0={container:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: ${m.size.x0_5};\n\t`,inputContainer:e3.div`\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t`,root:e3(d4.Root)`\n\t\tdisplay: flex;\n\t\twidth: ${m.size.x5};\n\t\theight: ${m.size.x2_5};\n\t\tborder: none;\n\t\tpadding: 0;\n\t\tborder-radius: ${m.borderRadius.medium};\n\t\tposition: relative;\n\t\ttransition: background 150ms;\n\t\toutline: none;\n\n\t\tsvg {\n\t\t\tmargin-top: 2px;\n\t\t\tmargin-right: 2px;\n\t\t\topacity: 1;\n\t\t}\n\n\t\tbackground: ${O1.getValue(\"inputBg\")};\n\n\t\tsvg {\n\t\t\topacity: 0;\n\t\t\ttransition: opacity 100ms;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: ${O1.getValue(\"inputHoverBg\")};\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: ${O1.getValue(\"inputActiveBg\")};\n\t\t}\n\n\t\t&[data-state='checked'] {\n\t\t\tbackground: ${O1.getValue(\"inputCheckedBg\")};\n\n\t\t\t&:hover {\n\t\t\t\tbackground: ${O1.getValue(\"inputCheckedHoverBg\")};\n\t\t\t}\n\n\t\t\tsvg {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\t&:active {\n\t\t\t\tbackground: ${O1.getValue(\"inputCheckedActiveBg\")};\n\t\t\t\ttransition: background ease 150ms;\n\n\t\t\t\tsvg {\n\t\t\t\t\topacity: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&[data-disabled='true'],\n\t\t&[aria-readonly='true'] {\n\t\t\topacity: 0.7;\n\n\t\t\t&:hover,\n\t\t\t&:active {\n\t\t\t\tbackground: ${O1.getValue(\"inputBg\")};\n\t\t\t}\n\n\t\t\t&[data-state='checked'] {\n\t\t\t\t&:hover,\n\t\t\t\t&:active {\n\t\t\t\t\tbackground: ${O1.getValue(\"inputCheckedBg\")};\n\n\t\t\t\t\tsvg {\n\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&[data-invalid='true'] {\n\t\t\toutline: 1px solid ${B.getValue(\"invalidBorderColor\")};\n\t\t\toutline-offset: 2px;\n\t\t}\n\n\t\t&:focus-visible {\n\t\t\toutline: 2px solid ${O1.getValue(\"inputFocus\")};\n\t\t\toutline-offset: 2px;\n\t\t}\n\t`,thumb:e3(d4.Thumb)`\n\t\tdisplay: block;\n\t\theight: ${m.size.x2};\n\t\twidth: ${m.size.x2};\n\t\tbackground-color: ${O1.getValue(\"thumbBg\")};\n\t\tborder-radius: ${m.borderRadius.circle};\n\t\tmargin-top: 2px;\n\t\ttransition: 0.25s;\n\t\tbox-shadow: ${m.elevation.skim};\n\n\t\t&:not([data-state='checked']) {\n\t\t\ttransform: translateX(calc(${m.size.x2_5} * -1));\n\t\t}\n\t`,label:e3.label`\n\t\tcolor: ${O1.getValue(\"labelColor\")};\n\t\tfont: ${O1.getValue(\"labelFont\")};\n\t\tmargin-left: ${m.size.x1};\n\n\t\t&[data-checked] {\n\t\t\tfont: ${O1.getValue(\"labelCheckedFont\")};\n\t\t}\n\n\t\t&[data-read-only] {\n\t\t\topacity: 0.7;\n\t\t\tpointer-events: none;\n\t\t}\n\t`,icon:e3(N)`\n\t\tcolor: ${O1.getValue(\"inputIconColor\")};\n\t\tmargin-left: ${m.size.x0_5};\n\t`},ye=forwardRef(function({onCheckedChange:t,invalid:l,invalidText:o,helperText:n,...r},a){let[i,c]=useState(r.defaultChecked||!1),p=useId();r.id&&(p=r.id);let u=`${p}-description`,h=`${p}-help-text`;async function f(g){r.readOnly||(c(g),t?.(g));}return jsxs(n0.container,{children:[jsxs(n0.inputContainer,{children:[jsxs(n0.root,{id:p,onCheckedChange:f,disabled:r.disabled,\"aria-readonly\":r.readOnly,\"data-invalid\":l,checked:i,...r,\"aria-invalid\":l,\"aria-describedby\":[u,h].join(\" \"),ref:a,children:[jsx(n0.icon,{type:\"check\",size:\"xSmall\",\"data-icon\":!0}),jsx(n0.thumb,{})]}),jsx(n0.label,{\"data-checked\":i?\"true\":void 0,\"data-read-only\":r.readOnly?\"true\":void 0,htmlFor:p,children:r.label})]}),jsx(g1,{id:h,invalid:l,children:l&&o?o:n})]})});function Za(e,t){let l=o1(),o=A();return l==null||e.name==null?jsx(ye,{...e,ref:t}):jsx(Controller,{control:l.control.control,name:e.name,defaultValue:e.defaultValue,rules:{...e.options,onChange:e.onChange,onBlur:e.onBlur},disabled:e.disabled,render:({field:n,fieldState:r,formState:a})=>{let i=new h1(e,o,r,a);function c(p){e.readOnly||n.onChange(p);}return jsx(ye,{...e,...n,required:i.isRequired(),invalid:i.isInvalid(),invalidText:i.invalidText(),readOnly:i.isReadOnly(),onCheckedChange:c,checked:!!n.value,ref:C1([t,n.ref])})}})}var nL=forwardRef(Za);var Fe=[{countryCode:\"AF\",name:\"Afghanistan\",nativeName:\"\\u0627\\u0641\\u063A\\u0627\\u0646\\u0633\\u062A\\u0627\\u0646\"},{countryCode:\"AL\",name:\"Albania\",nativeName:\"Shqip\\xEBria\"},{countryCode:\"DZ\",name:\"Algeria\",nativeName:\"\\u0627\\u0644\\u062C\\u0632\\u0627\\u0626\\u0631\"},{countryCode:\"AS\",name:\"American Samoa\",nativeName:\"American Samoa\"},{countryCode:\"AO\",name:\"Angola\",nativeName:\"Angola\"},{countryCode:\"AI\",name:\"Anguilla\",nativeName:\"Anguilla\"},{countryCode:\"AG\",name:\"Antigua and Barbuda\",nativeName:\"Antigua and Barbuda\"},{countryCode:\"AR\",name:\"Argentina\",nativeName:\"Argentina\"},{countryCode:\"AM\",name:\"Armenia\",nativeName:\"\\u0540\\u0561\\u0575\\u0561\\u057D\\u057F\\u0561\\u0576\"},{countryCode:\"AW\",name:\"Aruba\",nativeName:\"Aruba\"},{countryCode:\"AU\",name:\"Australia\",nativeName:\"Australia\"},{countryCode:\"AT\",name:\"Austria\",nativeName:\"\\xD6sterreich\"},{countryCode:\"AZ\",name:\"Azerbaijan\",nativeName:\"Az\\u0259rbaycan\"},{countryCode:\"BH\",name:\"Bahrain\",nativeName:\"\\u200F\\u0627\\u0644\\u0628\\u062D\\u0631\\u064A\\u0646\"},{countryCode:\"BD\",name:\"Bangladesh\",nativeName:\"\\u09AC\\u09BE\\u0982\\u09B2\\u09BE\\u09A6\\u09C7\\u09B6\"},{countryCode:\"BB\",name:\"Barbados\",nativeName:\"Barbados\"},{countryCode:\"BY\",name:\"Belarus\",nativeName:\"\\u0411\\u0435\\u043B\\u0430\\u0440\\u0443\\u0301\\u0441\\u044C\"},{countryCode:\"BE\",name:\"Belgium\",nativeName:\"Belgi\\xEB\"},{countryCode:\"BZ\",name:\"Belize\",nativeName:\"Belize\"},{countryCode:\"BJ\",name:\"Benin\",nativeName:\"B\\xE9nin\"},{countryCode:\"BM\",name:\"Bermuda\",nativeName:\"Bermuda\"},{countryCode:\"BT\",name:\"Bhutan\",nativeName:\"\\u02BCbrug-yul\"},{countryCode:\"BO\",name:\"Bolivia\",nativeName:\"Bolivia\"},{countryCode:\"BA\",name:\"Bosnia and Herzegovina\",nativeName:\"Bosna i Hercegovina\"},{countryCode:\"BW\",name:\"Botswana\",nativeName:\"Botswana\"},{countryCode:\"BR\",name:\"Brazil\",nativeName:\"Brasil\"},{countryCode:\"IO\",name:\"British Indian Ocean Territory\",nativeName:\"British Indian Ocean Territory\"},{countryCode:\"BN\",name:\"Brunei\",nativeName:\"Negara Brunei Darussalam\"},{countryCode:\"BG\",name:\"Bulgaria\",nativeName:\"\\u0411\\u044A\\u043B\\u0433\\u0430\\u0440\\u0438\\u044F\"},{countryCode:\"BF\",name:\"Burkina Faso\",nativeName:\"Burkina Faso\"},{countryCode:\"BI\",name:\"Burundi\",nativeName:\"Burundi\"},{countryCode:\"KH\",name:\"Cambodia\",nativeName:\"K\\xE2mp\\u016Dch\\xE9a\"},{countryCode:\"CM\",name:\"Cameroon\",nativeName:\"Cameroon\"},{countryCode:\"CA\",name:\"Canada\",nativeName:\"Canada\"},{countryCode:\"CV\",name:\"Cape Verde\",nativeName:\"Cabo Verde\"},{countryCode:\"KY\",name:\"Cayman Islands\",nativeName:\"Cayman Islands\"},{countryCode:\"CF\",name:\"Central African Republic\",nativeName:\"K\\xF6d\\xF6r\\xF6s\\xEAse t\\xEE B\\xEAafr\\xEEka\"},{countryCode:\"TD\",name:\"Chad\",nativeName:\"Tchad\"},{countryCode:\"CL\",name:\"Chile\",nativeName:\"Chile\"},{countryCode:\"CN\",name:\"China\",nativeName:\"\\u4E2D\\u56FD\"},{countryCode:\"CX\",name:\"Christmas Island\",nativeName:\"Christmas Island\"},{countryCode:\"CC\",name:\"Cocos (Keeling) Islands\",nativeName:\"Cocos (Keeling) Islands\"},{countryCode:\"CO\",name:\"Colombia\",nativeName:\"Colombia\"},{countryCode:\"KM\",name:\"Comoros\",nativeName:\"Komori\"},{countryCode:\"CK\",name:\"Cook Islands\",nativeName:\"Cook Islands\"},{countryCode:\"CR\",name:\"Costa Rica\",nativeName:\"Costa Rica\"},{countryCode:\"HR\",name:\"Croatia\",nativeName:\"Hrvatska\"},{countryCode:\"CU\",name:\"Cuba\",nativeName:\"Cuba\"},{countryCode:\"CY\",name:\"Cyprus\",nativeName:\"\\u039A\\u03CD\\u03C0\\u03C1\\u03BF\\u03C2\"},{countryCode:\"CZ\",name:\"Czech Republic\",nativeName:\"\\u010Cesk\\xE1 republika\"},{countryCode:\"CD\",name:\"Democratic Republic of the Congo\",nativeName:\"R\\xE9publique d\\xE9mocratique du Congo\"},{countryCode:\"DK\",name:\"Denmark\",nativeName:\"Danmark\"},{countryCode:\"DJ\",name:\"Djibouti\",nativeName:\"Djibouti\"},{countryCode:\"DM\",name:\"Dominica\",nativeName:\"Dominica\"},{countryCode:\"DO\",name:\"Dominican Republic\",nativeName:\"Rep\\xFAblica Dominicana\"},{countryCode:\"TL\",name:\"East Timor\",nativeName:\"Timor- Leste\"},{countryCode:\"EC\",name:\"Ecuador\",nativeName:\"Ecuador\"},{countryCode:\"EG\",name:\"Egypt\",nativeName:\"\\u0645\\u0635\\u0631\\u200E\"},{countryCode:\"SV\",name:\"El Salvador\",nativeName:\"El Salvador\"},{countryCode:\"GQ\",name:\"Equatorial Guinea\",nativeName:\"Guinea Ecuatorial\"},{countryCode:\"ER\",name:\"Eritrea\",nativeName:\"\\u12A4\\u122D\\u1275\\u122B\"},{countryCode:\"EE\",name:\"Estonia\",nativeName:\"Eesti\"},{countryCode:\"ET\",name:\"Ethiopia\",nativeName:\"\\u12A2\\u1275\\u12EE\\u1335\\u12EB\"},{countryCode:\"FK\",name:\"Falkland Islands\",nativeName:\"Falkland Islands\"},{countryCode:\"FO\",name:\"Faroe Islands\",nativeName:\"F\\xF8royar\"},{countryCode:\"FM\",name:\"Federated States of Micronesia\",nativeName:\"Micronesia\"},{countryCode:\"FJ\",name:\"Fiji\",nativeName:\"Fiji\"},{countryCode:\"FI\",name:\"Finland\",nativeName:\"Suomi\"},{countryCode:\"FR\",name:\"France\",nativeName:\"France\"},{countryCode:\"GF\",name:\"French Guiana\",nativeName:\"Guyane fran\\xE7aise\"},{countryCode:\"PF\",name:\"French Polynesia\",nativeName:\"Polyn\\xE9sie fran\\xE7aise\"},{countryCode:\"GA\",name:\"Gabon\",nativeName:\"Gabon\"},{countryCode:\"GE\",name:\"Georgia\",nativeName:\"\\u10E1\\u10D0\\u10E5\\u10D0\\u10E0\\u10D7\\u10D5\\u10D4\\u10DA\\u10DD\"},{countryCode:\"DE\",name:\"Germany\",nativeName:\"Deutschland\"},{countryCode:\"GH\",name:\"Ghana\",nativeName:\"Ghana\"},{countryCode:\"GI\",name:\"Gibraltar\",nativeName:\"Gibraltar\"},{countryCode:\"GR\",name:\"Greece\",nativeName:\"\\u0395\\u03BB\\u03BB\\u03AC\\u03B4\\u03B1\"},{countryCode:\"GL\",name:\"Greenland\",nativeName:\"Kalaallit Nunaat\"},{countryCode:\"GD\",name:\"Grenada\",nativeName:\"Grenada\"},{countryCode:\"GP\",name:\"Guadeloupe\",nativeName:\"Guadeloupe\"},{countryCode:\"GU\",name:\"Guam\",nativeName:\"Guam\"},{countryCode:\"GT\",name:\"Guatemala\",nativeName:\"Guatemala\"},{countryCode:\"GG\",name:\"Guernsey\",nativeName:\"Guernsey\"},{countryCode:\"GN\",name:\"Guinea\",nativeName:\"Guin\\xE9e\"},{countryCode:\"GW\",name:\"Guinea- Bissau\",nativeName:\"Guin\\xE9- Bissau\"},{countryCode:\"GY\",name:\"Guyana\",nativeName:\"Guyana\"},{countryCode:\"HT\",name:\"Haiti\",nativeName:\"Ha\\xEFti\"},{countryCode:\"HN\",name:\"Honduras\",nativeName:\"Honduras\"},{countryCode:\"HK\",name:\"Hong Kong\",nativeName:\"\\u9999\\u6E2F\"},{countryCode:\"HU\",name:\"Hungary\",nativeName:\"Magyarorsz\\xE1g\"},{countryCode:\"IS\",name:\"Iceland\",nativeName:\"\\xCDsland\"},{countryCode:\"IN\",name:\"India\",nativeName:\"\\u092D\\u093E\\u0930\\u0924\"},{countryCode:\"ID\",name:\"Indonesia\",nativeName:\"Indonesia\"},{countryCode:\"IR\",name:\"Iran\",nativeName:\"Ir\\u0101n\"},{countryCode:\"IQ\",name:\"Iraq\",nativeName:\"\\u0627\\u0644\\u0639\\u0631\\u0627\\u0642\"},{countryCode:\"IE\",name:\"Ireland\",nativeName:\"\\xC9ire\"},{countryCode:\"IM\",name:\"Isle of Man\",nativeName:\"Isle of Man\"},{countryCode:\"IL\",name:\"Israel\",nativeName:\"\\u05D9\\u05B4\\u05E9\\u05B0\\u05C2\\u05E8\\u05B8\\u05D0\\u05B5\\u05DC\"},{countryCode:\"IT\",name:\"Italy\",nativeName:\"Italia\"},{countryCode:\"CI\",name:\"Ivory Coast\",nativeName:\"C\\xF4te d'Ivoire\"},{countryCode:\"JM\",name:\"Jamaica\",nativeName:\"Jamaica\"},{countryCode:\"JP\",name:\"Japan\",nativeName:\"\\u65E5\\u672C\"},{countryCode:\"JE\",name:\"Jersey\",nativeName:\"Jersey\"},{countryCode:\"JO\",name:\"Jordan\",nativeName:\"\\u0627\\u0644\\u0623\\u0631\\u062F\\u0646\"},{countryCode:\"KZ\",name:\"Kazakhstan\",nativeName:\"\\u049A\\u0430\\u0437\\u0430\\u049B\\u0441\\u0442\\u0430\\u043D\"},{countryCode:\"KE\",name:\"Kenya\",nativeName:\"Kenya\"},{countryCode:\"KI\",name:\"Kiribati\",nativeName:\"Kiribati\"},{countryCode:\"KW\",name:\"Kuwait\",nativeName:\"\\u0627\\u0644\\u0643\\u0648\\u064A\\u062A\"},{countryCode:\"KG\",name:\"Kyrgyzstan\",nativeName:\"\\u041A\\u044B\\u0440\\u0433\\u044B\\u0437\\u0441\\u0442\\u0430\\u043D\"},{countryCode:\"LA\",name:\"Laos\",nativeName:\"\\u0EAA\\u0E9B\\u0E9B\\u0EA5\\u0EB2\\u0EA7\"},{countryCode:\"LV\",name:\"Latvia\",nativeName:\"Latvija\"},{countryCode:\"LB\",name:\"Lebanon\",nativeName:\"\\u0644\\u0628\\u0646\\u0627\\u0646\"},{countryCode:\"LS\",name:\"Lesotho\",nativeName:\"Lesotho\"},{countryCode:\"LR\",name:\"Liberia\",nativeName:\"Liberia\"},{countryCode:\"LY\",name:\"Libya\",nativeName:\"\\u200F\\u0644\\u064A\\u0628\\u064A\\u0627\"},{countryCode:\"LI\",name:\"Liechtenstein\",nativeName:\"Liechtenstein\"},{countryCode:\"LT\",name:\"Lithuania\",nativeName:\"Lietuva\"},{countryCode:\"LU\",name:\"Luxembourg\",nativeName:\"Luxembourg\"},{countryCode:\"MO\",name:\"Macau\",nativeName:\"\\u6FB3\\u9580\"},{countryCode:\"MG\",name:\"Madagascar\",nativeName:\"Madagasikara\"},{countryCode:\"MW\",name:\"Malawi\",nativeName:\"Malawi\"},{countryCode:\"MY\",name:\"Malaysia\",nativeName:\"Malaysia\"},{countryCode:\"MV\",name:\"Maldives\",nativeName:\"Maldives\"},{countryCode:\"ML\",name:\"Mali\",nativeName:\"Mali\"},{countryCode:\"MT\",name:\"Malta\",nativeName:\"Malta\"},{countryCode:\"MH\",name:\"Marshall Islands\",nativeName:\"M\\u0327aje\\u013C\"},{countryCode:\"MQ\",name:\"Martinique\",nativeName:\"Martinique\"},{countryCode:\"MR\",name:\"Mauritania\",nativeName:\"\\u0645\\u0648\\u0631\\u064A\\u062A\\u0627\\u0646\\u064A\\u0627\"},{countryCode:\"MU\",name:\"Mauritius\",nativeName:\"Maurice\"},{countryCode:\"YT\",name:\"Mayotte\",nativeName:\"Mayotte\"},{countryCode:\"MX\",name:\"Mexico\",nativeName:\"M\\xE9xico\"},{countryCode:\"MD\",name:\"Moldova\",nativeName:\"Moldova\"},{countryCode:\"MC\",name:\"Monaco\",nativeName:\"Monaco\"},{countryCode:\"MN\",name:\"Mongolia\",nativeName:\"\\u041C\\u043E\\u043D\\u0433\\u043E\\u043B \\u0443\\u043B\\u0441\"},{countryCode:\"MS\",name:\"Montserrat\",nativeName:\"Montserrat\"},{countryCode:\"MA\",name:\"Morocco\",nativeName:\"\\u0627\\u0644\\u0645\\u063A\\u0631\\u0628\"},{countryCode:\"MZ\",name:\"Mozambique\",nativeName:\"Mo\\xE7ambique\"},{countryCode:\"NA\",name:\"Namibia\",nativeName:\"Namibia\"},{countryCode:\"NR\",name:\"Nauru\",nativeName:\"Nauru\"},{countryCode:\"NP\",name:\"Nepal\",nativeName:\"\\u0928\\u0947\\u092A\\u093E\\u0932\"},{countryCode:\"NL\",name:\"Netherlands\",nativeName:\"Nederland\"},{countryCode:\"NC\",name:\"New Caledonia\",nativeName:\"Nouvelle-Cal\\xE9donie\"},{countryCode:\"NZ\",name:\"New Zealand\",nativeName:\"New Zealand\"},{countryCode:\"NI\",name:\"Nicaragua\",nativeName:\"Nicaragua\"},{countryCode:\"NE\",name:\"Niger\",nativeName:\"Niger\"},{countryCode:\"NG\",name:\"Nigeria\",nativeName:\"Nigeria\"},{countryCode:\"NU\",name:\"Niue\",nativeName:\"Niu\\u0113\"},{countryCode:\"NF\",name:\"Norfolk Island\",nativeName:\"Norfolk Island\"},{countryCode:\"KP\",name:\"North Korea\",nativeName:\"\\uBD81\\uD55C\"},{countryCode:\"MP\",name:\"Northern Mariana Islands\",nativeName:\"Northern Mariana Islands\"},{countryCode:\"NO\",name:\"Norway\",nativeName:\"Norge\"},{countryCode:\"OM\",name:\"Oman\",nativeName:\"\\u0639\\u0645\\u0627\\u0646\"},{countryCode:\"PK\",name:\"Pakistan\",nativeName:\"Pakistan\"},{countryCode:\"PW\",name:\"Palau\",nativeName:\"Palau\"},{countryCode:\"PA\",name:\"Panama\",nativeName:\"Panam\\xE1\"},{countryCode:\"PG\",name:\"Papua New Guinea\",nativeName:\"Papua Niugini\"},{countryCode:\"PY\",name:\"Paraguay\",nativeName:\"Paraguay\"},{countryCode:\"PE\",name:\"Peru\",nativeName:\"Per\\xFA\"},{countryCode:\"PH\",name:\"Philippines\",nativeName:\"Pilipinas\"},{countryCode:\"PL\",name:\"Poland\",nativeName:\"Polska\"},{countryCode:\"PT\",name:\"Portugal\",nativeName:\"Portugal\"},{countryCode:\"PR\",name:\"Puerto Rico\",nativeName:\"Puerto Rico\"},{countryCode:\"QA\",name:\"Qatar\",nativeName:\"\\u0642\\u0637\\u0631\"},{countryCode:\"MK\",name:\"Republic of Macedonia\",nativeName:\"\\u041C\\u0430\\u043A\\u0435\\u0434\\u043E\\u043D\\u0438\\u0458\\u0430\"},{countryCode:\"CG\",name:\"Republic of the Congo\",nativeName:\"R\\xE9publique du Congo\"},{countryCode:\"RO\",name:\"Romania\",nativeName:\"Rom\\xE2nia\"},{countryCode:\"RU\",name:\"Russia\",nativeName:\"\\u0420\\u043E\\u0441\\u0441\\u0438\\u044F\"},{countryCode:\"RW\",name:\"Rwanda\",nativeName:\"Rwanda\"},{countryCode:\"RE\",name:\"R\\xE9union\",nativeName:\"La R\\xE9union\"},{countryCode:\"SH\",name:\"Saint Helena\",nativeName:\"Saint Helena\"},{countryCode:\"KN\",name:\"Saint Kitts and Nevis\",nativeName:\"Saint Kitts and Nevis\"},{countryCode:\"LC\",name:\"Saint Lucia\",nativeName:\"Saint Lucia\"},{countryCode:\"PM\",name:\"Saint Pierre and Miquelon\",nativeName:\"Saint- Pierre - et - Miquelon\"},{countryCode:\"VC\",name:\"Saint Vincent and the Grenadines\",nativeName:\"Saint Vincent and the Grenadines\"},{countryCode:\"WS\",name:\"Samoa\",nativeName:\"Samoa\"},{countryCode:\"SM\",name:\"San Marino\",nativeName:\"San Marino\"},{countryCode:\"SA\",name:\"Saudi Arabia\",nativeName:\"\\u0627\\u0644\\u0639\\u0631\\u0628\\u064A\\u0629 \\u0627\\u0644\\u0633\\u0639\\u0648\\u062F\\u064A\\u0629\"},{countryCode:\"SN\",name:\"Senegal\",nativeName:\"S\\xE9n\\xE9gal\"},{countryCode:\"SC\",name:\"Seychelles\",nativeName:\"Seychelles\"},{countryCode:\"SL\",name:\"Sierra Leone\",nativeName:\"Sierra Leone\"},{countryCode:\"SG\",name:\"Singapore\",nativeName:\"Singapore\"},{countryCode:\"SK\",name:\"Slovakia\",nativeName:\"Slovensko\"},{countryCode:\"SI\",name:\"Slovenia\",nativeName:\"Slovenija\"},{countryCode:\"SB\",name:\"Solomon Islands\",nativeName:\"Solomon Islands\"},{countryCode:\"SO\",name:\"Somalia\",nativeName:\"Soomaaliya\"},{countryCode:\"ZA\",name:\"South Africa\",nativeName:\"South Africa\"},{countryCode:\"KR\",name:\"South Korea\",nativeName:\"\\uB300\\uD55C\\uBBFC\\uAD6D\"},{countryCode:\"SS\",name:\"South Sudan\",nativeName:\"South Sudan\"},{countryCode:\"ES\",name:\"Spain\",nativeName:\"Espa\\xF1a\"},{countryCode:\"LK\",name:\"Sri Lanka\",nativeName:\"\\u015Br\\u012B la\\u1E43k\\u0101va\"},{countryCode:\"SD\",name:\"Sudan\",nativeName:\"\\u0627\\u0644\\u0633\\u0648\\u062F\\u0627\\u0646\"},{countryCode:\"SR\",name:\"Suriname\",nativeName:\"Suriname\"},{countryCode:\"SJ\",name:\"Svalbard and Jan Mayen\",nativeName:\"Svalbard og Jan Mayen\"},{countryCode:\"SZ\",name:\"Swaziland\",nativeName:\"Swaziland\"},{countryCode:\"SE\",name:\"Sweden\",nativeName:\"Sverige\"},{countryCode:\"CH\",name:\"Switzerland\",nativeName:\"Schweiz\"},{countryCode:\"SY\",name:\"Syria\",nativeName:\"\\u0633\\u0648\\u0631\\u064A\\u0627\"},{countryCode:\"ST\",name:\"S\\xE3o Tom\\xE9 and Pr\\xEDncipe\",nativeName:\"S\\xE3o Tom\\xE9 e Pr\\xEDncipe\"},{countryCode:\"TW\",name:\"Taiwan\",nativeName:\"\\u81FA\\u7063\"},{countryCode:\"TJ\",name:\"Tajikistan\",nativeName:\"\\u0422\\u043E\\u04B7\\u0438\\u043A\\u0438\\u0441\\u0442\\u043E\\u043D\"},{countryCode:\"TZ\",name:\"Tanzania\",nativeName:\"Tanzania\"},{countryCode:\"TH\",name:\"Thailand\",nativeName:\"\\u0E1B\\u0E23\\u0E30\\u0E40\\u0E17\\u0E28\\u0E44\\u0E17\\u0E22\"},{countryCode:\"BS\",name:\"The Bahamas\",nativeName:\"Bahamas\"},{countryCode:\"GM\",name:\"The Gambia\",nativeName:\"Gambia\"},{countryCode:\"TG\",name:\"Togo\",nativeName:\"Togo\"},{countryCode:\"TK\",name:\"Tokelau\",nativeName:\"Tokelau\"},{countryCode:\"TO\",name:\"Tonga\",nativeName:\"Tonga\"},{countryCode:\"TT\",name:\"Trinidad and Tobago\",nativeName:\"Trinidad and Tobago\"},{countryCode:\"TN\",name:\"Tunisia\",nativeName:\"\\u062A\\u0648\\u0646\\u0633\"},{countryCode:\"TR\",name:\"Turkey\",nativeName:\"T\\xFCrkiye\"},{countryCode:\"TM\",name:\"Turkmenistan\",nativeName:\"T\\xFCrkmenistan\"},{countryCode:\"TV\",name:\"Tuvalu\",nativeName:\"Tuvalu\"},{countryCode:\"UG\",name:\"Uganda\",nativeName:\"Uganda\"},{countryCode:\"UA\",name:\"Ukraine\",nativeName:\"\\u0423\\u043A\\u0440\\u0430\\u0457\\u043D\\u0430\"},{countryCode:\"AE\",name:\"United Arab Emirates\",nativeName:\"\\u062F\\u0648\\u0644\\u0629 \\u0627\\u0644\\u0625\\u0645\\u0627\\u0631\\u0627\\u062A \\u0627\\u0644\\u0639\\u0631\\u0628\\u064A\\u0629 \\u0627\\u0644\\u0645\\u062A\\u062D\\u062F\\u0629\"},{countryCode:\"GB\",name:\"United Kingdom\",nativeName:\"United Kingdom\"},{countryCode:\"US\",name:\"United States\",nativeName:\"United States\"},{countryCode:\"UY\",name:\"Uruguay\",nativeName:\"Uruguay\"},{countryCode:\"UZ\",name:\"Uzbekistan\",nativeName:\"O\\u2018zbekiston\"},{countryCode:\"VU\",name:\"Vanuatu\",nativeName:\"Vanuatu\"},{countryCode:\"VE\",name:\"Venezuela\",nativeName:\"Venezuela\"},{countryCode:\"VN\",name:\"Vietnam\",nativeName:\"Vi\\u1EC7t Nam\"},{countryCode:\"WF\",name:\"Wallis and Futuna\",nativeName:\"Wallis et Futuna\"},{countryCode:\"EH\",name:\"Western Sahara\",nativeName:\"\\u0627\\u0644\\u0635\\u062D\\u0631\\u0627\\u0621 \\u0627\\u0644\\u063A\\u0631\\u0628\\u064A\\u0629\"},{countryCode:\"YE\",name:\"Yemen\",nativeName:\"\\u0627\\u0644\\u064A\\u064E\\u0645\\u064E\\u0646\"},{countryCode:\"ZM\",name:\"Zambia\",nativeName:\"Zambia\"},{countryCode:\"ZW\",name:\"Zimbabwe\",nativeName:\"Zimbabwe\"}];var we=new I(\"inputPhoneNumber\");var r0=new I(\"common\");var G8={trigger:e3(k2.Trigger)`\n\t\tall: unset;\n\t\tbox-sizing: border-box;\n\t\tcursor: default;\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tpadding: ${m.spacing.x1};\n\t\tgap: ${m.spacing.x0_5};\n\t\tborder-radius: ${m.borderRadius.small};\n\n\t\t&:hover {\n\t\t\tbackground: ${we.getValue(\"countrySelectTriggerHoverBg\")};\n\t\t}\n\n\t\t&:active,\n\t\t&[data-state='open'] {\n\t\t\tbackground: ${we.getValue(\"countrySelectTriggerActiveBg\")};\n\t\t}\n\n\t\t&:focus-visible {\n\t\t\toutline: 2px solid ${r0.getValue(\"focusColor\")};\n\t\t}\n\n\t\t&[data-disabled] {\n\t\t\t&:hover,\n\t\t\t&:active {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t`,value:e3(k2.Value)`\n\t\twidth: ${m.size.x3};\n\t\tflex-grow: 0;\n\t\tflex-shrink: 0;\n\t`,item:e3(k2.Item)``};function X8({onValueChange:e,value:t,readOnly:l}){let[o,n]=useState(t),a=A()(\"Component.InputPhoneNumber.CountrySelectLabel\"),i=Fe.find(p=>p.countryCode===o)?.nativeName;useEffect(function(){n(t);},[t]);function c(p){n(p),e?.(p);}return jsxs(k2.Root,{onValueChange:c,value:o,disabled:l,children:[jsx(G8.trigger,{asChild:!0,\"aria-label\":a,children:jsxs(s2,{children:[jsxs(G8.value,{className:\"SelectValue\",placeholder:jsx(N,{type:\"network\",size:\"medium\"}),children:[o?jsx(X6,{flag:o.toLocaleLowerCase(),size:\"medium\"}):null,jsx(V1,{children:i})]}),jsx(k2.Icon,{className:\"SelectIcon\",children:jsx(N,{type:\"chevronDown\",size:\"small\"})})]})}),jsxs(i4,{labelProps:{children:a},children:[jsx(M2.scrollUpButton,{children:jsx(N,{type:\"chevronUp\"})}),jsx(M2.viewport,{children:Fe.map(p=>jsxs(ve.Item,{value:p.countryCode,children:[p.nativeName,\" (+\",getCountryCallingCode(p.countryCode),\")\"]},p.countryCode))}),jsx(M2.scrollDownButton,{children:jsx(N,{type:\"chevronDown\"})})]})]})}var z3={container:e3.fieldset`\n\t\tall: unset;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex: 1 1 auto;\n\t`,label:e3(y1)`\n\t\tmargin-bottom: ${B.getValue(\"labelMarginBottom\")};\n\t`,description:e3(H1)`\n\t\tmargin-bottom: ${B.getValue(\"descriptionMarginBottom\")};\n\t`,inputContainer:e3.div`\n\t\tposition: relative;\n\t`,countrySelect:e3.div`\n\t\tposition: absolute;\n\t\ttop: ${m.spacing.x0_5};\n\t\tleft: ${m.spacing.x0_5};\n\t\tz-index: 1;\n\t\twidth: 64px;\n\t\theight: calc(100% - ${m.spacing.x0_5} * 2);\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tcolor: ${B.getValue(\"baseTextColor\")};\n\t`,input:e3(R5)`\n\t\tpadding-left: calc(64px + ${m.spacing.x1});\n\t`,additionalInformation:e3.span`\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t`,footer:e3.div`\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tgap: ${B.getValue(\"helpTextGap\")};\n\t`},Be=forwardRef(function({id:t,label:l,hideLabel:o,name:n,required:r,invalid:a,invalidText:i,helperText:c,readOnly:p,onChange:u,onBlur:h,description:f,defaultValue:g,characterCount:C,alwaysShowCharacterCount:w,countryCode:T,value:H,optional:z,...S},k){let[v,F]=useState(g?.toString()??H?.toString()??\"\"),[R,W]=useState(T),[P,D]=useState(new AsYouType(R)),$=useRef(null),p1=A()(\"Component.InputPhoneNumber.InputLabel\");function f1(_,d1){try{let j=parsePhoneNumber(_,R??d1);if(j.country===d1)return j;let i2=getCountryCallingCode(d1);return parsePhoneNumber(j.nationalNumber?`+${i2}${j.nationalNumber}`:_)}catch{}return null}useEffect(function(){if(typeof g==\"string\")try{let d1=parsePhoneNumber(g?.toString()??\"\",T);F(d1.format(\"INTERNATIONAL\")),W(d1.country??void 0);}catch{}},[]),useEffect(function(){D(new AsYouType(R));},[R]),useEffect(function(){$.current!=null&&(P.reset(),P.input(v),$.current.value=P.getNumberValue()??v,u?.({target:$.current}));},[v,u]);function a1(_){let d1=f1(v,_);d1?F(d1.format(\"INTERNATIONAL\")):v===\"\"&&F(`+${getCountryCallingCode(_)}`),W(_);}function O(_){F(_.target.value);}function D1(_){P.reset();let d1=P.input(v),j=P.getNumber();j?.country&&j.country!==R?a1(j.country):F(d1),h?.(_);}let{props:X1,helpTextProps:n2,labelProps:r2,characterCountProps:U,descriptionProps:S1}=v2({id:t,name:n,label:l,hideLabel:o,description:f,required:r,invalid:a,invalidText:i,helperText:c,readOnly:p,onChange:O,onBlur:h,defaultValue:g,characterCount:C,alwaysShowCharacterCount:w,optional:z},k);return jsxs(z3.container,{children:[jsx(z3.label,{type:\"legend\",...r2,htmlFor:void 0}),jsx(z3.description,{...S1}),jsxs(z3.inputContainer,{children:[jsx(z3.countrySelect,{children:jsx(X8,{onValueChange:a1,value:R,readOnly:p})}),jsx(z3.input,{...X1,...S,value:v,onChange:O,onBlur:D1,\"aria-label\":p1})]}),jsx(\"input\",{type:\"hidden\",ref:$}),jsxs(z3.footer,{children:[jsx(g1,{...n2}),jsx(x3,{value:v,...U})]})]})});function Ja(e,t){let l=o1(),o=A();return l==null||e.name==null?jsx(Be,{...e,ref:t}):jsx(Controller,{control:l.control.control,name:e.name,defaultValue:e.defaultValue,rules:{...e.options,onChange:e.onChange,onBlur:e.onBlur},disabled:e.disabled,render:({field:n,fieldState:r,formState:a})=>{let i=new h1(e,o,r,a);return jsx(Be,{...e,...n,optional:i.isOptional(),required:i.isRequired(),readOnly:i.isReadOnly(),invalid:i.isInvalid(),invalidText:i.invalidText(),value:n.value??\"\",defaultValue:void 0,ref:C1([t,n.ref])})}})}var Ka=forwardRef(Ja);var Y=new I(\"inputRating\");var Ae=createContext(void 0);function J8(){let e=useContext(Ae);if(e===void 0)throw new Error(\"useInputRatingContext must be used within a InputRadio.Root\");return e}var Q8={item:e3(o4.Item)`\n\t\t--background: none;\n\t\t--radio-border-color: ${Y.getValue(\"indicatorBorderColor\")};\n\t\t--radio-background: ${Y.getValue(\"indicatorBackground\")};\n\t\t--radio-outline: none;\n\t\t--indicator-background: ${Y.getValue(\"indicatorBorderColor\")};\n\n\t\tall: unset;\n\n\t\tuser-select: none;\n\t\t-webkit-tap-highlight-color: transparent;\n\t\t-webkit-user-drag: none;\n\t\t-webkit-touch-callout: none;\n\n\t\tbox-sizing: border-box;\n\t\tdisplay: flex;\n\t\tgap: ${Y.getValue(\"itemGap\")};\n\t\talign-items: center;\n\t\tcursor: default;\n\t\tfont: ${Y.getValue(\"itemFont\")};\n\t\tcolor: ${Y.getValue(\"itemTextColor\")};\n\t\tbackground: var(--background);\n\t\tborder-radius: ${m.borderRadius.xSmall};\n\t\ttransition:\n\t\t\tborder 150ms ease-out,\n\t\t\tbackground 150ms ease-out,\n\t\t\tbox-shadow 50ms ease-out;\n\t\tposition: relative;\n\n\t\t&:before {\n\t\t\topacity: 0;\n\t\t\tscale: 0.9;\n\t\t\ttransition:\n\t\t\t\topacity 200ms ease,\n\t\t\t\tscale 200ms ease;\n\t\t}\n\n\t\t&[data-state='checked'] {\n\t\t\tfont: ${Y.getValue(\"checkedItemFont\")};\n\n\t\t\t--radio-border-color: ${Y.getValue(\"checkedIndicatorBorderColor\")};\n\t\t\t--indicator-background: ${Y.getValue(\"checkedIndicatorBorderColor\")};\n\t\t}\n\n\t\t&:focus-visible {\n\t\t\toutline: 2px solid ${Y.getValue(\"focusColor\")};\n\t\t\toutline-offset: 2px;\n\t\t}\n\n\t\t&[data-variant='none'] {\n\t\t\t&:hover {\n\t\t\t\t--radio-border-color: ${Y.getValue(\"checkedIndicatorBorderColor\")};\n\n\t\t\t\t&:before {\n\t\t\t\t\tcontent: '';\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\ttop: 50%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\ttransform: translate(-50%, -50%);\n\t\t\t\t\topacity: 1;\n\t\t\t\t\tscale: 1;\n\t\t\t\t\twidth: calc(100% + ${m.size.x0_5});\n\t\t\t\t\theight: calc(100% + ${m.size.x0_5});\n\t\t\t\t\tbackground: ${Y.getValue(\"indicatorHover\")};\n\t\t\t\t\tz-index: -1;\n\t\t\t\t\tborder-radius: ${m.borderRadius.circle};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&:active {\n\t\t\t\t--radio-outline: 0 0 0 2px ${Y.getValue(\"activeIndicatorOutlineColor\")};\n\t\t\t}\n\n\t\t\t&[data-invalid='true'] {\n\t\t\t\t--radio-border-color: ${B.getValue(\"invalidBorderColor\")};\n\t\t\t}\n\t\t}\n\n\t\t&[data-variant='outlined'] {\n\t\t\tpadding: ${Y.getValue(\"outlinedItemPadding\")};\n\t\t\tborder: 1px solid ${Y.getValue(\"outlinedItemBorderColor\")};\n\t\t\tmin-height: ${Y.getValue(\"outlinedItemMinHeight\")};\n\t\t\tborder-radius: ${Y.getValue(\"outlinedItemBorderRadius\")};\n\n\t\t\t&:hover {\n\t\t\t\tborder-color: ${Y.getValue(\"hoverOutlinedItemBorderColor\")};\n\t\t\t}\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: 0 0 0 2px ${Y.getValue(\"activeOutlinedItemOutlineColor\")};\n\t\t\t}\n\n\t\t\t&[data-state='checked'] {\n\t\t\t\t--background: ${Y.getValue(\"checkedOutlinedItemBackground\")};\n\t\t\t}\n\n\t\t\t&[data-invalid='true'] {\n\t\t\t\tborder-color: ${B.getValue(\"invalidBorderColor\")};\n\t\t\t}\n\t\t}\n\n\t\t// Disabled/ReadOnly\n\t\t&[data-read-only='true'],\n\t\t&[data-disabled='true'] {\n\t\t\t--radio-border-color: ${Y.getValue(\"disabledIndicatorBorderColor\")};\n\t\t\t--radio-background: ${Y.getValue(\"disabledIndicatorBackground\")};\n\t\t\t--indicator-background: ${Y.getValue(\"disabledIndicatorBorderColor\")};\n\t\t\topacity: 0.7;\n\n\t\t\t&:hover,\n\t\t\t&:active {\n\t\t\t\t--radio-border-color: ${Y.getValue(\"disabledIndicatorBorderColor\")};\n\t\t\t\t--radio-outline: none;\n\t\t\t}\n\n\t\t\t&[data-variant='outlined'] {\n\t\t\t\t--background: ${Y.getValue(\"disabledOutlinedItemBackground\")};\n\t\t\t\tborder: none;\n\n\t\t\t\t&:hover,\n\t\t\t\t&:active {\n\t\t\t\t\tbox-shadow: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,radio:e3.span`\n\t\tdisplay: flex;\n\t\twidth: ${Y.getValue(\"indicatorOuterSize\")};\n\t\theight: ${Y.getValue(\"indicatorOuterSize\")};\n\t\tborder-radius: 50%;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tflex: 0 0 auto;\n\t`},Y8=forwardRef(function({label:t,filled:l,...o},n){let r=J8();return jsxs(Q8.item,{\"data-variant\":r.variant,\"data-invalid\":r.invalid??void 0,\"aria-readonly\":r.readOnly??void 0,\"data-read-only\":r.readOnly??void 0,\"data-disabled\":r.disabled??void 0,...o,ref:n,children:[jsx(Q8.radio,{children:l?jsx(N,{type:\"starFilled\",size:\"xLarge\"}):jsx(N,{type:\"star\",size:\"xLarge\"})}),jsx(V1,{children:jsx(\"span\",{\"data-text\":t,children:t})})]})});var u4={group:e3.fieldset`\n\t\t--item-gap: ${Y.getValue(\"itemsGap\")};\n\t\t--item-direction: column;\n\t\t--items-margin: ${Y.getValue(\"itemsMargin\")};\n\n\t\tall: unset;\n\n\t\tuser-select: none;\n\t\t-webkit-tap-highlight-color: transparent;\n\t\t-webkit-user-drag: none;\n\t\t-webkit-touch-callout: none;\n\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\n\t\t&[data-direction='horizontal'] {\n\t\t\t--item-direction: row;\n\t\t\t--item-gap: ${Y.getValue(\"itemsGap\")};\n\n\t\t\t&[data-variant='none'] {\n\t\t\t\t--item-gap: ${Y.getValue(\"itemsHorizontalGap\")};\n\t\t\t}\n\t\t}\n\n\t\t&[data-variant='outlined'] {\n\t\t\t--item-gap: ${Y.getValue(\"outlinedItemsGap\")};\n\t\t\t--items-margin: 0;\n\t\t}\n\t`,legend:e3(y1)`\n\t\tmargin-bottom: ${B.getValue(\"labelMarginBottom\")};\n\t`,description:e3(H1)`\n\t\tmargin-bottom: ${B.getValue(\"descriptionMarginBottom\")};\n\t`,items:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: var(--item-direction);\n\t\tgap: var(--item-gap);\n\t\tflex-wrap: wrap;\n\t\tmargin: var(--items-margin) 0;\n\t`};function l9(e,t){let l=o1(),o=A();return l==null||e.name==null?jsx(e9,{...e}):jsx(Controller,{control:l.control.control,name:e.name,defaultValue:e.defaultValue,rules:{...e.options,onChange:e.onChange},disabled:e.disabled,render:({field:n,fieldState:r,formState:a})=>{let i=new h1(e,o,r,a);return jsx(e9,{...e,...n,optional:i.isOptional(),required:i.isRequired(),invalid:i.isInvalid(),invalidText:i.invalidText(),readOnly:i.isReadOnly(),ref:C1([t,n.ref])})}})}var e9=forwardRef(function({label:t,hideLabel:l,description:o,direction:n=\"vertical\",helperText:r,name:a,variant:i=\"none\",onChange:c,value:p,optional:u,invalid:h=!1,invalidText:f,readOnly:g=!1,disabled:C=!1,required:w,max:T=5},H){let z=useId(),S=`${z}-description`,k=`${z}-help-text`,v=A(),[F,R]=useState(B0(p??\"0\")??0);function W(P){g||(c?.(P),R(B0(P)??0));}return jsx(Ae.Provider,{value:{variant:i,invalid:h,readOnly:g,disabled:C},children:jsx(o4.Root,{name:a,onValueChange:W,value:p??(g?\"UNDEFINED_FAKE_VALUE\":void 0),disabled:C,required:w,asChild:!0,children:jsxs(u4.group,{\"data-variant\":i,\"data-direction\":n,\"aria-describedby\":[S,k].join(\" \"),\"aria-readonly\":g??void 0,\"aria-label\":l?t:void 0,ref:H,children:[t&&!l?jsx(u4.legend,{type:\"legend\",optional:w?!1:u,children:t}):null,jsx(V1,{children:jsx(u4.description,{id:S,children:o})}),jsx(u4.items,{children:Array.from({length:T}).map((P,D)=>{let $=D+1;return jsx(Y8,{filled:F>=$,label:$===1?v(\"Component.InputRating.OneStar\"):v(\"Component.InputRating.SeveralStars\",{count:$.toString()}),value:$.toString()},D)})}),jsx(g1,{id:k,invalid:h,children:h&&f?f:r})]})})})});var GT={Root:forwardRef(l9)};var uc=e3.div`\n\tpointer-events: all;\n\t${({$minWidth:e})=>e?css`\n\t\t\t\t\tmin-width: ${e}px;\n\t\t\t\t`:\"\"}\n\tmax-width: calc(100% - 30px);\n\tz-index: ${l1.normal};\n`;function hc({onClickOutside:e,trigger:t,children:l}){let o=useRef(null);return useEffect(()=>{if(!o.current||!t)return;let n=createPopper(t,o.current,{placement:\"bottom-start\",strategy:\"fixed\"});function r(a){!o.current?.contains(a.target)&&a.target!==t&&e&&e();}return document.addEventListener(\"mousedown\",r),document.addEventListener(\"touchstart\",r),()=>{n.destroy(),document.removeEventListener(\"mousedown\",r),document.removeEventListener(\"touchstart\",r);}},[e,t]),jsx(X2,{children:jsx(uc,{$minWidth:t.getBoundingClientRect().width,ref:o,children:l})})}hc.displayName=\"CellulaPopover\";var Cc=e3.div`\n\tbox-sizing: border-box;\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbackground: rgba(0, 0, 0, 0.4);\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\tpadding: 10px;\n\tpointer-events: all;\n`;function gc({onBackdropClick:e,children:t}){let l=useRef(null);function o(n){n.target===l.current&&e!=null&&e(n);}return jsx(X2,{children:jsx(Cc,{ref:l,onClick:o,children:t})})}gc.displayName=\"CellulaTray\";var l3=createContext(void 0);function i9({children:e,onChange:t,defaultValue:l}){let[o,n]=useState([]),[r,a]=useState(l),i=useCallback(u=>{a(u),t?.(u);},[t]),c=useCallback(u=>{n(h=>{let f=h.findIndex(g=>g.value===u.value);return f===-1?[...h,u]:[...h.slice(0,f),u,...h.slice(f+1)]});},[]),p=useCallback(u=>{n(h=>{let f=h.findIndex(C=>C.value===u);if(f===-1)return h;let g=h[f];return [...h.slice(0,f),{...g,removed:!0},...h.slice(f+1)]});},[]);return jsx(l3.Provider,{value:{tabs:o,activeTab:r,changeTab:i,registerTab:c,unregisterTab:p},children:e})}var zc={tabRoot:e3(h4.Root)`\n\t\tdisplay: contents;\n\t`};function c9({children:e,defaultValue:t,onChange:l,...o}){return jsx(i9,{defaultValue:t,onChange:l,children:jsx(yc,{activationMode:\"manual\",...o,children:e})})}var yc=forwardRef(function({children:t,...l},o){let{activeTab:n,changeTab:r}=useContext(l3);return jsx(zc.tabRoot,{value:n,orientation:\"horizontal\",onValueChange:r,ref:o,...l,children:t})});var Lc={content:e3(h4.Content)`\n\t\toutline: none;\n\t\twidth: 100%;\n\t`};function d9({children:e,value:t,label:l,hiddenLabel:o,trailingSlot:n,disabled:r,...a}){let{registerTab:i,unregisterTab:c}=useContext(l3);return useLayoutEffect(function(){return i({value:t,label:l,hiddenLabel:o??null,trailingSlot:n??null,removed:!1,disabled:r??!1}),()=>{c(t);}},[t,l,o,n,i,c,r]),jsx(Lc.content,{value:t,...a,children:e})}var m2=new I(\"tabNavigation\");var Ne={wrapper:e3.div`\n\t\theight: 42px;\n\t\tz-index: ${l1.normal};\n\n\t\tposition: relative;\n\t\twidth: 100%;\n\n\t\t&::after {\n\t\t\tcontent: '';\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 2px;\n\t\t\tposition: absolute;\n\t\t\theight: 2px;\n\t\t\tbackground-color: ${m2.getValue(\"sliderBackground\")};\n\t\t\tz-index: -1;\n\t\t}\n\t`,container:e3(h4.List)`\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\theight: 40px;\n\t\twidth: 100%;\n\t\toverflow-x: auto;\n\t\toverflow-y: hidden;\n\t\tscroll-snap-type: x proximity;\n\t\t-webkit-overflow-scrolling: touch;\n\t\tpadding-bottom: 2px;\n\t\tbox-sizing: border-box;\n\n\t\t&::-webkit-scrollbar {\n\t\t\tdisplay: none;\n\t\t}\n\t`,tab:e3(h4.Trigger)`\n\t\tall: unset;\n\n\t\tuser-select: none;\n\t\t-webkit-tap-highlight-color: transparent;\n\t\t-webkit-user-drag: none;\n\t\t-webkit-touch-callout: none;\n\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: 100%;\n\t\ttransition: background-color 200ms ease-in-out color 150ms ease-in-out;\n\t\tpadding: ${m2.getValue(\"triggerPadding\")};\n\t\tcolor: ${m2.getValue(\"triggerPassiveColor\")};\n\t\tposition: relative;\n\t\ttransition: color 150ms ease-in-out;\n\t\ttext-overflow: ellipsis;\n\t\ttouch-action: manipulation;\n\t\tscroll-snap-align: start;\n\t\tcursor: default;\n\t\tfont: ${m2.getValue(\"triggerFont\")};\n\t\tgap: ${m.spacing.x1_5};\n\n\t\t${m.breakpointQuery.medium} {\n\t\t\tjustify-content: start;\n\t\t\twidth: auto;\n\t\t}\n\n\t\t&:focus-visible {\n\t\t\toutline: 2px solid ${r0.getValue(\"focusColor\")};\n\t\t\toutline-offset: -2px;\n\t\t\tborder-radius: 4px;\n\t\t}\n\n\t\t&[data-disabled] {\n\t\t\tcursor: not-allowed;\n\t\t\topacity: 0.7;\n\t\t}\n\n\t\t&[data-state='active'] {\n\t\t\t& .dataText {\n\t\t\t\tfont: ${m2.getValue(\"triggerActiveFont\")};\n\t\t\t\tcolor: ${m2.getValue(\"triggerActiveColor\")};\n\t\t\t}\n\n\t\t\t&::before {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 2px;\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: -2px;\n\t\t\t\tleft: 0;\n\t\t\t\tbackground-color: ${m2.getValue(\"triggerActiveBackground\")};\n\t\t\t}\n\t\t}\n\n\t\t& .dataText {\n\t\t\tdisplay: inline-flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tjustify-content: space-between;\n\t\t\tfont: ${m2.getValue(\"triggerFont\")};\n\t\t\ttransition: color 150ms ease-in-out;\n\n\t\t\t/*\n\t\t\t\tTo avoid layout shift, this pseudo-element is added.\n\t\t\t*/\n\t\t\t&::after {\n\t\t\t\tcontent: attr(data-text);\n\t\t\t\tcontent: attr(data-text) / '';\n\t\t\t\theight: 0;\n\t\t\t\tvisibility: hidden;\n\t\t\t\toverflow: hidden;\n\t\t\t\tuser-select: none;\n\t\t\t\tpointer-events: none;\n\t\t\t\tfont: ${m2.getValue(\"triggerActiveFont\")};\n\n\t\t\t\t@media speech {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t@media (hover: hover) {\n\t\t\t&:hover:not([data-disabled]) .dataText {\n\t\t\t\tcolor: ${m2.getValue(\"triggerHoverColor\")};\n\t\t\t}\n\t\t}\n\t`},u9=createContext({});function h9({label:e,onClick:t}){let{tabs:l}=useContext(l3);return jsx(u9.Provider,{value:{onClick:t},children:jsx(Ne.wrapper,{children:jsx(Ne.container,{\"aria-label\":e,children:l.filter(o=>!o.removed).map(o=>jsx(Fragment,{children:jsx(Bc,{value:o.value,hiddenLabel:o.hiddenLabel,trailingSlot:o.trailingSlot,disabled:o.disabled,children:o.label})},o.value))})})})}function Bc({value:e,hiddenLabel:t,trailingSlot:l,children:o,disabled:n}){let{onClick:r}=useContext(u9),a=useCallback(()=>{r?.(e);},[r,e]);return jsxs(Ne.tab,{value:e,onClick:a,\"aria-label\":t??void 0,disabled:n,children:[jsx(\"div\",{className:\"dataText\",\"data-text\":o,children:o}),l??null]})}var Ac={Root:c9,Content:d9,Bar:h9};var m4=createContext(void 0);var $c=e3(motion.div)`\n\tbackground-color: rgb(0 0 0 / 67%);\n\tposition: fixed;\n\tinset: 0;\n\t/* z-index: 1; */\n\t/* Needs to use a high z-index to have it appear on top of other elements */\n\tz-index: ${l1.DANGER};\n`;function Zc(e,t){return jsx(l2.Overlay,{asChild:!0,forceMount:!0,children:jsx($c,{ref:t,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}})})}var C9=forwardRef(Zc);var Wc=e3(motion.div)`\n\t--_padding: ${m.spacing.x1};\n\t--_inner-r: ${m.borderRadius.medium};\n\t--_outer-r: calc(var(--_inner-r) + var(--_padding));\n\t--_background-color: #fff;\n\t--_color: #000;\n\n\twidth: 100%;\n\t/* Gives a 30px margin from the top. Values like \"vh\" are not consistent across devices. */\n\theight: calc(100% - 30px);\n\tposition: fixed;\n\tbottom: 0;\n\tleft: 0;\n\tpadding: var(--_outer-r) 0;\n\tbox-sizing: border-box;\n\t/* z-index: 1; */\n\t/* Needs to use a high z-index to have it appear on top of other elements */\n\tz-index: ${l1.DANGER};\n\n\t/* Alter the spaces the sheet will take when at desktop. */\n\t@media screen and (min-width: 500px) {\n\t\theight: calc(100% - 40px);\n\t}\n\n\t/* A pseudo element is used as the content filling, it comes with the benefit to extend the\n\t height without affecting the layout. */\n\t&::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tbackground: var(--_background-color);\n\t\tborder-radius: var(--_outer-r);\n\t\t/* Needs to be x bigger so the sheet may go under the viewport. It's for the cases where\n\t\t\t the user drags the sheet upwards, will look wonky without it. */\n\t\theight: calc(100vh * 2);\n\n\t\tz-index: -1;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\n\t\tbox-shadow: 0 -5px 25px 7px rgb(0 0 0 / 20%);\n\t}\n\n\t&[data-variant='half'],\n\t&[data-variant='half-restricted'] {\n\t\theight: calc(50% + 30px);\n\t}\n\n\t&[data-variant='half-restricted'] {\n\t\toverflow: hidden;\n\t\tborder-radius: calc(var(--_outer-r) * 2);\n\t\tbottom: 10px;\n\t\tmax-width: 600px;\n\t\tmax-height: 540px;\n\t}\n\n\t&[data-variant='auto'],\n\t&[data-variant='auto-restricted'] {\n\t\theight: var(--_child-height);\n\t\tmax-height: calc(100% - 30px);\n\t}\n`,Jc=e3.div`\n\t/* Padding out the bottom is important, else the bottom scroll area can't be reached. */\n\theight: calc(100% + 60px);\n\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\n\toverflow-y: auto;\n\toverflow-x: hidden;\n\t/* Chrome and Firefox has an blur bleed issue which is super ugly, we'll use this for those browsers instead */\n\tmask-image: linear-gradient(to bottom, transparent 40px, #000 55px);\n\n\t/* There to hide the scrollbar to overflow up the corners. */\n\tborder-top-left-radius: var(--_outer-r);\n\tborder-top-right-radius: var(--_outer-r);\n\n\t/* Makes any scrolling impossible, its intention is to shave off any wonky edge cases that\n\t may cause interference with the dragging. */\n\t&.removeUserEvents {\n\t\tpointer-events: none;\n\t}\n`,Kc=e3.section`\n\tmargin: 48px 0 96px;\n\tmin-height: calc(100% - 48px - 96px);\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\toutline: none;\n`,Qc=e3.div`\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\n\twidth: 100%;\n\theight: 48px;\n\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\n\tborder-top-left-radius: var(--_outer-r);\n\tborder-top-right-radius: var(--_outer-r);\n\tpadding: var(--_padding) var(--_padding) var(--_padding) calc(var(--_padding) * 2);\n\tbox-sizing: border-box;\n\n\t/* Prevents accidental text selection when pulling down the Sheet. */\n\tuser-select: none;\n\n\t/* Only use this for Safari. */\n\t/* backdrop-filter: saturate(180%) blur(30px); */\n\n\tbackground-color: rgba(255, 255, 255, 0.72);\n\ttransition: background-color 150ms;\n\n\t&::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tbottom: -1px;\n\t\theight: 1px;\n\t\tbackground: rgba(0, 0, 0, 0.16);\n\t\topacity: 0;\n\t}\n\n\t&.show {\n\t\t&::after {\n\t\t\topacity: 1;\n\t\t}\n\t}\n`,qc=900,Yc=35;function g9({children:e},t){let{id:l,setIsOpen:o,isOpen:n,label:r,variant:a,onOpenAutoFocus:i,onCloseAutoFocus:c,onEscapeKeyDown:p,onPointerDownOutside:u,onInteractOutside:h,onCloseAnimationEnd:f}=useContext(m4),g=`${l}-label`,C=a.includes(\"full\"),w=a.includes(\"restricted\"),{portalElement:T}=B1(),H=useDragControls(),[z,S]=useState(!1),k=useRef(null),v=useRef(null),F=useRef(null),R=C2(t,F),W=useRef(!1),P=useRef(null),D=useRef(0),$=A();function x1(U){if(!W.current){if(getSelection()?.toString()){W.current=!0;return}if(U.target instanceof HTMLInputElement||U.target instanceof HTMLTextAreaElement){W.current=!0;return}z||(H.start(U),S(!0));}}function p1(U,S1){return w||S1==null||S1<qc?!1:U>Yc}function f1(){P.current=null,S(!1),W.current=!1;}function a1(U){f1();}function O(U){if(P.current==null)return;(U.screenY>P.current?1:U.screenY<P.current?0:null)===1&&D.current===0&&x1(U);}function D1(U){P.current=U.screenY,!v.current?.contains(U.target)&&x1(U);}function X1(U,S1){if(f1(),k.current==null)return;let _=p1(k.current.offset.y,k.current.velocity.y);o(!_),k.current=null;}function n2(U,S1){k.current=S1;}function r2(U){D.current=U.currentTarget.scrollTop;}return jsx(AnimatePresence,{onExitComplete:f,children:n?jsxs(l2.Portal,{container:T,forceMount:!0,children:[jsx(C9,{}),jsx(l2.Content,{asChild:!0,forceMount:!0,onCloseAutoFocus:c,onOpenAutoFocus:i,onEscapeKeyDown:p,onPointerDownOutside:u,onInteractOutside:h,children:jsxs(Wc,{\"data-variant\":a,ref:R,onDrag:n2,onDragEnd:X1,onPointerMove:O,onPointerDown:D1,onPointerUp:a1,drag:\"y\",dragControls:H,dragListener:!1,dragSnapToOrigin:!0,dragConstraints:{top:0,bottom:w?0:void 0},transition:{type:\"spring\",damping:C?23:20,stiffness:200},initial:{y:\"100%\"},animate:{y:0},exit:{y:\"calc(100% + 150px)\"},children:[jsx(es,{scrollRef:v,containerRef:R,hasStartedDragging:z,handleScroll:r2,labelId:g,children:e}),jsxs(Qc,{children:[r?jsx(\"div\",{id:g,\"aria-hidden\":\"true\",children:r}):jsx(\"div\",{}),jsx(l2.Close,{asChild:!0,children:jsx(E1,{variant:\"neutral\",size:\"medium\",icon:\"x\",text:$(\"Common.Close\")})})]})]})})]}):null})}function es(e){let t=useRef(null);return useEffect(function(){let o=t.current?.getBoundingClientRect().height??0;e.containerRef.current?.style.setProperty(\"--_child-height\",`${o+48+40}px`);},[e.containerRef]),jsx(Jc,{ref:e.scrollRef,className:e.hasStartedDragging?\"removeUserEvents\":void 0,onScroll:e.handleScroll,children:jsx(Kc,{ref:t,tabIndex:0,\"aria-labelledby\":e.labelId,children:e.children})})}function M9({label:e=null,variant:t=\"full\",onOpenChange:l,onOpen:o,onClose:n,children:r,defaultOpen:a=!1,open:i,onOpenAutoFocus:c,onCloseAutoFocus:p,onEscapeKeyDown:u,onPointerDownOutside:h,onInteractOutside:f,onCloseAnimationEnd:g},C){let[w,T]=useState(a),H=useId(),z=useRef(!1),S=useCallback(function(v){v===!0?o?.():n?.();},[o,n]);function k(v){i===void 0&&(T(v),S(v)),l?.(v);}return useEffect(function(){if(i===void 0){z.current=!0;return}if(T(i),z.current===!1){z.current=!0;return}S(i);},[i,S]),useImperativeHandle(C,()=>({open:()=>{k(!0);},close:()=>{k(!1);}})),jsx(m4.Provider,{value:{id:H,isOpen:w,setIsOpen:k,label:e,variant:t,onOpenAutoFocus:c,onCloseAutoFocus:p,onEscapeKeyDown:u,onPointerDownOutside:h,onInteractOutside:f,onCloseAnimationEnd:g},children:jsx(l2.Root,{open:w,onOpenChange:k,children:r})})}function b9(e,t){return jsx(l2.Trigger,{...e,ref:t})}function y9(e,t){return jsx(l2.Close,{...e,ref:t})}var H3={Root:forwardRef(M9),Trigger:forwardRef(b9),Content:forwardRef(g9),Close:forwardRef(y9)};function ss({trigger:e,children:t,...l},o){return jsxs(H3.Root,{...l,ref:o,children:[e?jsx(H3.Trigger,{asChild:!0,children:e}):null,jsx(H3.Content,{children:t})]})}var e5=forwardRef(ss);e5.Root=H3.Root;e5.Trigger=H3.Trigger;e5.Content=H3.Content;e5.Close=H3.Close;var R1=new I(\"attachment\");var C4=\"UNSPECIFIED_ERROR\";async function F9(e){let t=e;return X7(t)&&(t=t()),A4(t)&&(t=await t),E4(t)&&(t=t.err),G7(t)&&(t=t.message||C4),U7(t)?t:C4}async function w9(e){try{let t=e;if(A4(t)&&(t=await t),E4(t)){if(t.err)return S4(await F9(t.err));t=t.ok;}if(_7(t)&&!t)return I4(!1)}catch(t){return S4(await F9(t))}return I4(!0)}function Ze(e){let t=e.split(\".\");return t.length>1?t.pop()?.toLowerCase()??\"\":\"\"}function L9(e){let t=t5(e);return t!==5?t:ps(e)}function t5(e){return e.includes(\"image\")||e.includes(\"png\")||e.includes(\"jpg\")||e.includes(\"gif\")||e.includes(\"webp\")||e.includes(\"jpeg\")||e.includes(\"tiff\")?0:e.includes(\"doc\")||e.includes(\"docx\")?1:e.includes(\"video\")||e.includes(\"mp4\")||e.includes(\"mov\")?3:e.includes(\"pdf\")?2:e.includes(\"xlsx\")?4:5}function ps(e){let t=Ze(e);return t===\"png\"||t===\"jpg\"||t===\"gif\"||t===\"webp\"||t===\"jpeg\"||t===\"tiff\"?0:t===\"doc\"||t===\"docx\"?1:t===\"mp4\"||t===\"mov\"||e.includes(\"video\")?3:t===\"pdf\"?2:t===\"xlsx\"?4:5}function T9({fileType:e,preview:t,icon:l}){let o=!1,n;if(e===0&&typeof t==\"string\"||typeof t==\"string\")n=jsx(\"img\",{className:\"cellula-attachment__preview-image\",src:t,alt:\"\"});else if(e!==void 0)switch(e){case 0:n=jsx(o2,{type:\"fileImage\"});break;case 1:n=jsx(o2,{type:\"fileWord\"});break;case 2:n=jsx(o2,{type:\"filePdf\"});break;case 4:n=jsx(o2,{type:\"fileExcel\"});break;case 3:n=jsx(o2,{type:\"fileVideo\"});break;default:n=jsx(o2,{type:\"fileOtherFormat\"});}else if(t)n=t;else if(l)o=!0,n=jsx(N,{type:l,size:\"medium\"});else return jsx(Fragment$1,{});return jsx(\"div\",{className:\"cellula-attachment__preview-inner\",\"data-background\":o||void 0,children:n})}var fs=e3.div`\n\tdisplay: flex;\n\tposition: absolute;\n\twidth: 100%;\n\ttop: 0;\n\tleft: 0;\n\twhite-space: pre;\n\n\t.cellula-attachment__filename-start {\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmax-width: 100%;\n\t}\n`;function V9({children:e}){let[t,l]=useMemo(()=>{let o=e.length>6?6:0,n=e.slice(0,e.length-o),r=o!==0?e.slice(-o):null;return [n,r]},[e]);return jsxs(fs,{children:[jsx(\"span\",{className:\"cellula-attachment__filename-start\",\"aria-hidden\":!0,children:t}),jsx(\"span\",{\"aria-hidden\":!0,children:l}),jsx(V1,{children:e})]})}var ks={root:e3.div`\n\t\t.cellula-attachment__container {\n\t\t\tposition: relative;\n\t\t\tdisplay: flex;\n\t\t\talign-items: stretch;\n\t\t\tjustify-content: stretch;\n\t\t}\n\n\t\t.cellula-attachment__button {\n\t\t\tbackground: ${R1.getValue(\"baseBackground\")};\n\t\t\tborder: 1px solid ${R1.getValue(\"baseBorderColor\")};\n\t\t\tborder-radius: ${R1.getValue(\"baseBorderRadius\")};\n\t\t\tbox-shadow: ${R1.getValue(\"baseBoxShadow\")};\n\t\t\tpadding: ${R1.getValue(\"basePadding\")};\n\t\t\ttransition: box-shadow 100ms ease-in;\n\t\t\tdisplay: flex;\n\t\t\tgap: ${m.spacing.x1_5};\n\t\t\t${({$compactMode:e})=>e?\"\":\"width: 100%;\"};\n\n\t\t\t&:focus-visible {\n\t\t\t\toutline: 2px solid ${r0.getValue(\"focusColor\")};\n\t\t\t\toutline-offset: 2px;\n\t\t\t}\n\t\t}\n\n\t\t.cellula-attachment__preview {\n\t\t\twidth: ${({$size:e})=>e===\"small\"?\"40px\":\"72px\"};\n\t\t\theight: ${({$size:e})=>e===\"small\"?\"40px\":\"72px\"};\n\t\t\tflex-shrink: 0;\n\t\t\tposition: relative;\n\t\t}\n\n\t\t.cellula-attachment__preview-inner {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\ttransition: all 100ms ease-in;\n\t\t\tborder-radius: ${R1.getValue(\"baseBorderRadius\")};\n\t\t\tcolor: ${R1.getValue(\"previewIconColor\")};\n\t\t\toverflow: hidden;\n\n\t\t\t&[data-background='true'] {\n\t\t\t\tbackground: ${R1.getValue(\"previewBackground\")};\n\t\t\t}\n\t\t}\n\n\t\t.cellula-attachment__preview-spinner {\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t}\n\n\t\t.cellula-attachment__preview-image {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tobject-fit: cover;\n\t\t}\n\n\t\t.cellula-attachment__content {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: flex-start;\n\t\t\talign-items: flex-start;\n\t\t\tgap: ${m.spacing.x0_5};\n\t\t\tflex: 1 1 auto;\n\t\t\tword-break: break-all;\n\t\t\ttext-align: left;\n\t\t\ttransition: opacity 100ms ease-in;\n\t\t}\n\n\t\t.cellula-attachment__content-name {\n\t\t\tposition: relative;\n\t\t\twidth: 100%;\n\t\t\tmin-height: 1.125rem;\n\t\t\tfont: ${R1.getValue(\"nameFont\")};\n\t\t\tcolor: ${R1.getValue(\"nameFontColor\")};\n\t\t}\n\n\t\t.cellula-attachment__content-meta {\n\t\t\tfont: ${R1.getValue(\"metaFont\")};\n\t\t\tcolor: ${R1.getValue(\"metaFontColor\")};\n\t\t}\n\n\t\t.cellula-attachment__delete-button {\n\t\t\tposition: absolute;\n\t\t\ttop: calc(${R1.getValue(\"basePadding\")} / 2);\n\t\t\tright: calc(${R1.getValue(\"basePadding\")} / 2);\n\t\t}\n\n\t\t&[data-loading='true'] {\n\t\t\t.cellula-attachment__button {\n\t\t\t\tcursor: progress;\n\t\t\t}\n\n\t\t\t.cellula-attachment__preview-inner {\n\t\t\t\tfilter: blur(2px);\n\t\t\t\topacity: 0.6;\n\t\t\t}\n\n\t\t\t.cellula-attachment__content {\n\t\t\t\topacity: 0.7;\n\t\t\t}\n\t\t}\n\n\t\t&:not([data-loading='true']) {\n\t\t\t.cellula-attachment__button {\n\t\t\t\t@media (hover: hover) {\n\t\t\t\t\t&:hover {\n\t\t\t\t\t\tbox-shadow: ${R1.getValue(\"hoverBoxShadow\")};\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t&:active {\n\t\t\t\t\tbox-shadow: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&[data-delete-button='true'] {\n\t\t\t.cellula-attachment__content {\n\t\t\t\tpadding-right: calc(${K1.getValue(\"mediumSize\")} + ${m.spacing.x1});\n\t\t\t}\n\t\t}\n\n\t\t&[data-invalid='true'] {\n\t\t\t.cellula-attachment__button {\n\t\t\t\tborder-color: ${B.getValue(\"invalidBorderColor\")};\n\t\t\t}\n\t\t}\n\t`};function bs({name:e,compactMode:t=!1,size:l=\"small\",meta:o,icon:n=\"document\",preview:r,loading:a,onClick:i,onDelete:c,deleteTooltip:p,invalid:u,invalidText:h},f){let g=useRef(null),C=useRef(null),w=A(),H=`cellula-attachment-help-text-${useId()}`,[z,S]=useState(!1),[k,v]=useState(!1),F=a||z,R;Ze(e)&&(R=t5(e));function W(D){F||i?.(D);}async function P(D){if(!z){if(S(!0),c){let $=await w9(c(D));$.err&&v($.err);}S(!1);}}return jsxs(ks.root,{ref:f,\"data-loading\":F||void 0,\"data-invalid\":u?\"true\":void 0,\"data-delete-button\":c?\"true\":void 0,$compactMode:t,$size:l,children:[jsxs(\"div\",{className:\"cellula-attachment__container\",children:[jsx(Slottable,{children:jsxs(\"button\",{type:\"button\",className:\"cellula-attachment__button\",\"aria-busy\":a??void 0,onClick:W,\"aria-invalid\":u?\"true\":void 0,\"aria-describedby\":H,ref:g,children:[jsxs(\"div\",{className:\"cellula-attachment__preview\",children:[jsx(T9,{fileType:R,preview:r,icon:n}),F?jsx(\"div\",{className:\"cellula-attachment__preview-spinner\",children:jsx(m3,{size:\"medium\"})}):null]}),t?null:jsxs(\"div\",{className:\"cellula-attachment__content\",children:[jsx(\"div\",{className:\"cellula-attachment__content-name\",children:R!==void 0?jsx(V9,{children:e}):e}),o?jsx(\"div\",{className:\"cellula-attachment__content-meta\",children:o}):null]})]})}),c?jsx(\"div\",{className:\"cellula-attachment__delete-button\",children:jsx(E1,{icon:\"cross\",size:\"medium\",variant:\"neutral\",text:p??w(\"Component.Attachment.DeleteTooltip\",{name:e}),onClick:P,ref:C,loading:z})}):null]}),u&&h?jsx(g1,{invalid:!0,id:H,children:h}):null,k?jsxs(Fragment$1,{children:[jsx(G2,{vertical:m.spacing.x1}),jsx(A2,{variant:\"danger\",closable:!0,onClose:()=>v(!1),children:jsx(E2,{children:k===C4?w(\"Component.Attachment.DeleteUnspecifiedError\"):k})})]}):null]})}var zs=forwardRef(bs);zs.displayName=\"CellulaAttachment\";var q1=createContext(void 0);function B9({file:e,children:t,asChild:l}){let{files:o,setFiles:n,setIsOpen:r,setStartIndex:a}=useContext(q1),i=l?Slot:\"div\";useEffect(()=>(n(h=>[...h,e]),()=>{n(h=>h.filter(f=>f.id!==e.id));}),[e,n]);function c(){r(!0),a(o.findIndex(h=>h.id===e.id));}function p(){c();}function u(h){h.key===\"Space\"&&c();}return t===void 0?null:jsx(i,{onClick:p,onKeyDown:u,tabIndex:0,role:\"button\",children:t})}var A9={container:e3.div`\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tflex-direction: column;\n\t\tpadding: ${m.spacing.x1};\n\t\tgap: ${m.spacing.x2};\n\t\tmax-width: 400px;\n\t\twidth: 100%;\n\t\ttext-align: center;\n\t\tword-break: break-word;\n\t\tfont: ${m.text.label.regular};\n\t`,illustration:e3.div`\n\t\twidth: ${m.size.x9};\n\t\theight: ${m.size.x9};\n\t`};function P9({file:e}){let t;switch(t5(e.fileType)){case 1:t=jsx(o2,{type:\"fileWord\"});break;case 2:t=jsx(o2,{type:\"filePdf\"});break;case 4:t=jsx(o2,{type:\"fileExcel\"});break;default:t=jsx(o2,{type:\"fileOtherFormat\"});}return jsxs(A9.container,{children:[jsx(A9.illustration,{children:t}),jsx(\"span\",{children:e.fileName})]})}var Ge={itemStyle:e3.div`\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tflex-shrink: 0;\n\t\tscroll-snap-align: start;\n\t\tflex-direction: column;\n\t\toverflow: hidden;\n\t\twill-change: transform;\n\t\ttouch-action: manipulation;\n\t\tpadding: 0 ${m.spacing.x1_5};\n\t\toutline: none;\n\t`,video:e3.video`\n\t\twidth: auto;\n\t\tmax-width: 100%;\n\t\theight: auto;\n\t\tmax-height: 100%;\n\n\t\t&::-webkit-media-controls-fullscreen-button {\n\t\t\tdisplay: none;\n\t\t}\n\t`,img:e3.img`\n\t\tuser-select: none;\n\t\t-webkit-user-drag: none;\n\t\t-khtml-user-drag: none;\n\t\t-moz-user-drag: none;\n\t\t-o-user-drag: none;\n\t\tmax-width: 100%;\n\t\tmax-height: 100%;\n\t\tobject-fit: contain;\n\t`};function D9({index:e,file:t}){let l=useRef(!1),o=useRef(!1),n=useMemo(()=>new f3,[]),{setHasDisabledScroll:r,setShowBarManually:a,currentIndex:i,files:c}=useContext(q1),p=useRef(null),u=A(),[h,f]=useState(!1);function g(T){l.current&&(T.preventDefault(),T.stopPropagation()),o.current=!1;}function C(T){r(l.current=T.touches.length>1),o.current=!0;}function w(T){r(l.current=T.touches.length>1),n.flush(),n.repeat(()=>{o.current&&(a(H=>!H),n.flush());},300);}return useEffect(()=>{i===e&&p.current&&!h&&(p.current.focus(),f(!0));},[i,p,e,h]),jsxs(Ge.itemStyle,{\"data-index\":e,onPointerMove:g,onTouchStart:C,onTouchEnd:w,ref:p,tabIndex:-1,\"aria-hidden\":i!==e,children:[jsxs(V1,{children:[u(\"Component.FileViewer.FileCounter.Label\",{currentFile:`${e+1}`,totalFiles:`${c.length}`}),\". \",t.description?t.description+\". \":null,t.fileName]}),jsx(\"div\",{\"aria-hidden\":\"true\",style:{display:\"contents\"},children:jsx(Ps,{file:t})})]})}function Ps({file:e}){let t=e.fileType===\"\"?e.fileName:e.fileType,l=L9(t);return l===3?jsx(Ge.video,{src:e.downloadUrl,controls:!0,muted:!0,controlsList:\"nodownload nofullscreen noremoteplayback noplaybackrate\",disablePictureInPicture:!0,disableRemotePlayback:!0,preload:\"auto\"}):e.downloadUrl!=null&&l===0?jsx(Ge.img,{src:e.downloadUrl,loading:\"lazy\",alt:\"\"}):jsx(P9,{file:e})}var Z9=100,g4=50,Os={list:e3(motion.div)`\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tpadding: 0;\n\t\tbox-sizing: border-box;\n\t\tuser-select: none;\n\t\toverflow-y: hidden;\n\t\toverflow-x: auto;\n\t\tscroll-snap-type: x mandatory;\n\t\t-webkit-overflow-scrolling: touch;\n\t\tscrollbar-width: none;\n\n\t\t&.disabled-scroll {\n\t\t\toverflow-x: hidden;\n\t\t}\n\n\t\t&::-webkit-scrollbar {\n\t\t\tdisplay: none;\n\t\t}\n\t`};function _9(e){let t=useAnimation(),l=useRef(null),o=useRef(null),n=useRef(!1),{files:r,hasDisabledScroll:a,startIndex:i,setCurrentIndex:c,currentIndex:p,isOpen:u,setIsOpen:h,setShowBar:f,y:g}=useContext(q1);useLayoutEffect(function(){l.current!=null&&(l.current.scrollLeft=i*l.current.clientWidth);},[i]);let C=useCallback(()=>{if(l.current!=null){let{scrollLeft:k,clientWidth:v}=l.current,F=v/2,R=Math.floor((k-F)/v);c(R+1);}},[c]);useEffect(function(){if(u)return;let v=g.get();v!==0&&(v<g4?t.start(\"up\"):v>g4&&t.start(\"down\"));},[u,g,t]),useLayoutEffect(function(){C();},[C]),useEffect(()=>{!n.current&&l.current&&(l.current.querySelectorAll(\"video\").forEach(k=>k.pause()),l.current.querySelector(`[data-index=\"${p}\"]`)?.scrollIntoView());},[p]);let w=$7(()=>{n.current=!1;},100);function T(){C(),n.current=!0,w();}function H(k,v){e:{if(v==null)break e;if(v<Z9&&v>-Z9)return !1}return k>g4||k<-g4}function z(k,v){if(o.current==null)return;let F=H(o.current.offset.y,o.current.velocity.y);h(!F),f(!F),o.current=null;}function S(k,v){o.current=v,f(!H(v.offset.y,null));}return jsx(Os.list,{className:a?\"disabled-scroll\":\"\",ref:l,style:{y:g},drag:\"y\",initial:\"initial\",animate:t,dragSnapToOrigin:!0,transition:{type:\"spring\",damping:25,stiffness:100},variants:{up:{y:\"-100%\"},initial:{y:0},down:{y:\"100%\"}},onScroll:T,onDrag:S,onDragEnd:z,children:r.map((k,v)=>jsx(D9,{file:k,index:v},k.id))})}var F3=new I(\"fileViewer\");var U9=0;function _s(e,t,l){let o=e[t];e.splice(t,1),e.splice(l,0,o);}async function G9(e,t){let l=/filename=\"(.*?)\"/gi;try{let o=[[{method:\"get\",mode:\"cors\",referrerPolicy:\"no-referrer\",credentials:\"include\"},0],[{method:\"get\",mode:\"no-cors\",referrerPolicy:\"no-referrer\",credentials:\"include\"},1],[{method:\"get\",mode:\"cors\",referrerPolicy:\"no-referrer\",credentials:\"omit\"},2],[{method:\"get\",mode:\"no-cors\",referrerPolicy:\"no-referrer\",credentials:\"omit\"},3]];_s(o,U9,0);let n=null;for(let u=0;u<o.length;u++){let[h,f]=o[u];try{let g=await fetch(e,h);if(!g.ok)continue;n=g,U9=f;break}catch{}}if(n==null)throw new Error(`Could not fetch the file from the url: ${e}`);let r=await n.blob(),a=\"\",i=n.headers.get(\"content-disposition\");if(i){let u=l.exec(i);u!==null&&u[1]&&(a=u[1]);}a===\"\"&&(a=t);let c=URL.createObjectURL(r),p=document.createElement(\"a\");p.setAttribute(\"href\",c),p.setAttribute(\"download\",a),p.setAttribute(\"target\",\"__blank\"),p.setAttribute(\"rel\",\"noreferrer\"),document.body.appendChild(p),p.click(),document.body.removeChild(p);}catch(o){throw console.error(o),o}}var n5={actionBar:e3(motion.div)`\n\t\tposition: absolute;\n\t\tz-index: 1;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: calc(${m.spacing.x2} * 2 + ${m.spacing.x5});\n\t\tpadding: ${m.spacing.x2};\n\t\tdisplay: flex;\n\t\tgap: ${m.spacing.x1_5};\n\t\tjustify-content: space-between;\n\t\tbackground: ${F3.getValue(\"background\")};\n\t\tbox-sizing: border-box;\n\n\t\t${m.breakpointQuery.small} {\n\t\t\tgap: ${m.spacing.x2};\n\t\t\tpadding: ${m.spacing.x3};\n\t\t\theight: calc(${m.spacing.x3} * 2 + ${m.spacing.x5});\n\t\t}\n\n\t\t@media screen and (max-width: 400px) {\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: stretch;\n\n\t\t\t&[data-has-download-button] {\n\t\t\t\theight: calc(${m.spacing.x2} * 2 + ${m.spacing.x5} + 32px);\n\t\t\t}\n\t\t}\n\t`,navigation:e3.div`\n\t\tdisplay: flex;\n\t\tgap: ${m.spacing.x1};\n\t\talign-items: center;\n\t\tfont: ${m.text.label.regular};\n\t`,counterSegment:e3.span`\n\t\tfont-variant-numeric: tabular-nums;\n\t`,navigationCurrent:e3.div`\n\t\twidth: 100%;\n\t\ttext-align: center;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\tgap: ${m.spacing.x1};\n\t`,download:e3.div``};function X9(e){let{showBar:t,showBarManually:l,showDownload:o,y:n,currentIndex:r,files:a,onDownloadError:i,goToNext:c,goToPrevious:p}=useContext(q1),u=a.length-1,[h,f]=useState(!1),g=useTransform(n,[-70,0,70],[0,1,0]),C=A(),w=a[r];function T(){p();}function H(){c();}async function z(){let S=a[r];if(S!=null){f(!0);try{await G9(S.downloadUrl,S.fileName);}catch{i?.();}f(!1);}}return jsx(AnimatePresence,{initial:!1,children:t&&l?jsxs(n5.actionBar,{initial:{y:\"100%\"},animate:{y:0},exit:{y:\"100%\"},transition:{duration:.4,ease:\"backInOut\"},style:{opacity:g},\"data-has-download-button\":o??!1,children:[jsxs(n5.navigation,{children:[jsx(w1,{shrink:0,asChild:!0,children:jsx(E1,{icon:\"chevronLeft\",size:\"medium\",text:C(\"Component.FileViewer.PreviousItem\"),variant:\"on-dark\",tooltipVariant:\"light\",onClick:T})}),jsxs(n5.navigationCurrent,{children:[jsx(n5.counterSegment,{children:r+1}),C(\"Component.FileViewer.FileCounter.Of\"),jsx(n5.counterSegment,{children:u+1})]}),jsx(w1,{shrink:0,asChild:!0,children:jsx(E1,{icon:\"chevronRight\",size:\"medium\",text:C(\"Component.FileViewer.NextItem\"),variant:\"on-dark\",tooltipVariant:\"light\",onClick:H})})]}),o?jsxs(j2,{icon:\"download\",onClick:z,loading:h,size:\"xSmall\",children:[C(\"Component.FileViewer.Download\"),\" \",jsxs(V1,{children:[\": \",w.fileName]})]}):null]}):null})}var W9={topBar:e3(motion.div)`\n\t\tposition: absolute;\n\t\tz-index: 1;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: calc(${m.spacing.x1_5} + ${m.spacing.x6});\n\t\tpadding: ${m.spacing.x1_5};\n\t\tdisplay: flex;\n\t\tgap: ${m.spacing.x1_5};\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\tbackground: ${F3.getValue(\"background\")};\n\t\tbox-sizing: border-box;\n\n\t\t${m.breakpointQuery.small} {\n\t\t\tgap: ${m.spacing.x2};\n\t\t\tpadding: ${m.spacing.x2};\n\t\t\theight: calc(${m.spacing.x2} + ${m.spacing.x6});\n\t\t}\n\t`,description:e3.div`\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t\tfont: ${m.text.label.regular};\n\t`};function K9(e){let{showBar:t,showBarManually:l,y:o,currentIndex:n,files:r}=useContext(q1),[a,i]=useState(null),c=useTransform(o,[-70,0,70],[0,1,0]);return useEffect(()=>{let p=r[n];i(p&&p.description?p.description:null);},[r,n]),jsx(AnimatePresence,{initial:!1,children:t&&l?jsxs(W9.topBar,{initial:{y:\"-100%\"},animate:{y:0},exit:{y:\"-100%\"},transition:{duration:.4,ease:\"backInOut\"},style:{opacity:c},children:[jsx(W9.description,{children:a}),jsx(l2.Close,{asChild:!0,children:jsx(w1,{shrink:0,asChild:!0,children:jsx(E1,{icon:\"x\",size:\"medium\",text:\"Close\",variant:\"on-dark\",tooltipVariant:\"light\"})})})]}):null})}var Je={background:e3(motion.div)`\n\t\tbackground: ${F3.getValue(\"background\")};\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t`,fader:e3(motion.div)`\n\t\tposition: fixed;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tz-index: ${l1.DANGER};\n\t`,container:e3.div`\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\theight: 100%;\n\t\tcolor: ${F3.getValue(\"textColor\")};\n\t\tpadding-top: calc(${m.spacing.x1_5} + ${m.spacing.x6});\n\t\tpadding-bottom: calc(${m.spacing.x2} * 2 + ${m.spacing.x5});\n\n\t\t${m.breakpointQuery.small} {\n\t\t\tpadding-top: calc(${m.spacing.x2} + ${m.spacing.x6});\n\t\t\tpadding-bottom: calc(${m.spacing.x3} * 2 + ${m.spacing.x5});\n\t\t}\n\t`};function id(){let{y:e}=useContext(q1),t=useTransform(e,[-innerHeight*2,0,innerHeight*2],[0,1,0]);return jsx(Je.background,{style:{opacity:t},\"aria-hidden\":!0})}function et({onDownloadError:e,defaultOpen:t=!1,showDownload:l=!0,defaultStartIndex:o=0,onClose:n,children:r}){let{portalElement:a}=B1(),[i,c]=useState(t),[p,u]=useState(!0),[h,f]=useState(!0),[g,C]=useState(o),[w,T]=useState(0),[H,z]=useState(!1),[S,k]=useState([]),v=useMotionValue(0);useEffect(function(){return v.onChange(D=>{})},[v]),useEffect(function(){u(i),f(i),i||n?.();},[i]),useEffect(function(){function D($){switch($.key){case\"Escape\":case\"Esc\":c(!1);break}}return globalThis.addEventListener(\"keyup\",D),()=>{globalThis.removeEventListener(\"keyup\",D);}},[]);let F=useCallback(()=>{let P=S.length-1,D=w-1;T(D<0?P:D);},[S,w,T]),R=useCallback(()=>{let P=S.length-1,D=w+1;T(D>P?0:D);},[S,w,T]);function W(P){P.preventDefault();}return jsxs(q1.Provider,{value:{isOpen:i,setIsOpen:c,files:S,setFiles:k,hasDisabledScroll:H,setHasDisabledScroll:z,startIndex:g,setStartIndex:C,showBar:p,setShowBar:u,showBarManually:h,setShowBarManually:f,showDownload:l,currentIndex:w,setCurrentIndex:T,y:v,onDownloadError:e,goToPrevious:F,goToNext:R},children:[r,jsx(l2.Root,{open:i,onOpenChange:c,children:jsx(AnimatePresence,{children:i&&S.length?jsx(l2.Portal,{container:a,forceMount:!0,children:jsx(l2.Overlay,{children:jsx(l2.Content,{onOpenAutoFocus:W,children:jsx(Je.fader,{transition:{ease:\"linear\"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:jsxs(Je.container,{children:[jsx(id,{}),jsx(K9,{}),jsx(_9,{}),jsx(X9,{})]})})})})}):null})})]})}var sE={Root:et,Item:B9};var d0=new I(\"avatar\");var x4={root:e3(u0.Root)`\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tvertical-align: middle;\n\t\toverflow: hidden;\n\t\tuser-select: none;\n\t\tborder-radius: 100%;\n\t\tbackground-color: ${d0.getValue(\"background\")};\n\t\tflex-shrink: 0;\n\n\t\t&[data-size='small'] {\n\t\t\t--_avatar-size: 32px;\n\t\t\t--_font-size: ${m.text.label.semiBold};\n\t\t}\n\t\t&[data-size='medium'] {\n\t\t\t--_avatar-size: 40px;\n\t\t\t--_font-size: ${m.text.label.largeSemiBold};\n\t\t}\n\t\t&[data-size='large'] {\n\t\t\t--_avatar-size: 48px;\n\t\t\t--_font-size: ${m.text.label.xLargeSemiBold};\n\t\t}\n\n\t\twidth: var(--_avatar-size);\n\t\theight: var(--_avatar-size);\n\t`,image:e3(u0.Image)`\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t\tborder-radius: inherit;\n\t`,icon:e3.div`\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t\tborder-radius: inherit;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tbackground-color: ${d0.getValue(\"iconBackground\")};\n\t\tcolor: ${d0.getValue(\"iconColor\")};\n\t\tfont-size: var(--_avatar-size);\n\t`,fallback:e3(u0.Fallback)`\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tbackground-color: ${d0.getValue(\"fallbackBackground\")};\n\t\tcolor: ${d0.getValue(\"fallbackColor\")};\n\t\tfont: var(--_font-size);\n\t`};function sd({src:e,name:t,size:l=\"medium\",icon:o},n){return jsx(x4.root,{\"data-size\":l,ref:n,children:jsx(dd,{src:e,fallback:t,icon:o!=null?jsx(N,{type:o,size:l}):null})})}function dd({fallback:e,src:t,icon:l}){if(e==null)return jsx(x4.icon,{\"aria-hidden\":\"true\",children:l});let o=O7(e??\"\",\"\");return jsxs(Fragment,{children:[t!=null?jsx(x4.image,{\"aria-hidden\":\"true\",src:t}):null,jsx(x4.fallback,{\"aria-hidden\":\"true\",delayMs:t?600:void 0,children:o})]})}var pd=forwardRef(sd);var _1=new I(\"textLink\");var md=e3.a`\n\tall: unset;\n\n\t--font: ${_1.getValue(\"baseText\")};\n\t--iconSize: ${_1.getValue(\"baseIconSize\")};\n\t--iconMargin: 0;\n\t--iconMarginLeft: 0;\n\t--iconMarginRight: 0;\n\t--iconOrder: 0;\n\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-user-drag: none;\n\t-webkit-touch-callout: none;\n\n\tdisplay: inline-flex;\n\tcolor: ${_1.getValue(\"baseTextColor\")};\n\ttext-decoration: none;\n\talign-items: center;\n\tcursor: pointer;\n\tword-wrap: break-word;\n\tword-break: break-word;\n\n\t&:active {\n\t\tcolor: ${_1.getValue(\"activeTextColor\")};\n\t}\n\n\t&:focus-visible {\n\t\toutline: 2px solid ${_1.getValue(\"baseFocusRingColor\")};\n\t\toutline-offset: 3px;\n\t\tborder-radius: 1px;\n\t}\n\n\t&[data-size='small'] {\n\t\t--font: ${_1.getValue(\"smallText\")};\n\t\t--iconSize: ${_1.getValue(\"smallIconSize\")};\n\t\t--iconMargin: ${_1.getValue(\"smallIconMargin\")};\n\t}\n\n\t&[data-size='medium'] {\n\t\t--font: ${_1.getValue(\"mediumText\")};\n\t\t--iconSize: ${_1.getValue(\"mediumIconSize\")};\n\t\t--iconMargin: ${_1.getValue(\"mediumIconMargin\")};\n\t}\n\n\t&[data-size='large'] {\n\t\t--font: ${_1.getValue(\"largeText\")};\n\t\t--iconSize: ${_1.getValue(\"largeIconSize\")};\n\t\t--iconMargin: ${_1.getValue(\"largeIconMargin\")};\n\t}\n\n\t&[data-icon-position='leading'] {\n\t\t--iconMarginLeft: 0;\n\t\t--iconMarginRight: var(--iconMargin);\n\t\t--iconOrder: 0;\n\t}\n\n\t&[data-icon-position='trailing'] {\n\t\t--iconMarginLeft: var(--iconMargin);\n\t\t--iconMarginRight: 0;\n\t\t--iconOrder: 2;\n\t}\n\n\t@media (hover: hover) {\n\t\t&:focus:not(:focus-visible) {\n\t\t\toutline: none;\n\t\t}\n\n\t\t&:hover {\n\t\t\ttext-decoration: underline;\n\t\t}\n\t}\n`,fd=e3.span`\n\tfont: var(--font);\n`,Cd=e3(N)`\n\tflex: 0 0 auto;\n\twidth: var(--iconSize);\n\theight: var(--iconSize);\n\tmargin-left: var(--iconMarginLeft);\n\tmargin-right: var(--iconMarginRight);\n\torder: var(--iconOrder);\n`;function gd({children:e,size:t=\"medium\",icon:l,iconPosition:o=\"leading\",as:n,...r},a){return jsxs(md,{as:n,...r,\"data-size\":t,\"data-icon-position\":l?o:void 0,ref:a,children:[l?jsx(Cd,{type:l}):null,jsx(fd,{children:e})]})}var AE=forwardRef(gd);var Md=e3.img`\n\twidth: 100%;\n\theight: 100%;\n\tobject-fit: cover;\n`;function kd({children:e,...t},l){return jsx(ot.Root,{...t,ref:l,children:e})}function bd(e,t){return jsx(Md,{...e,ref:t})}var OE={Root:forwardRef(kd),Img:forwardRef(bd)};var Qe=new I(\"accordion\");var zd=keyframes`\n from {\n height: 0;\n }\n to {\n height: var(--radix-accordion-content-height);\n }\n`,yd=keyframes`\n from {\n height: var(--radix-accordion-content-height);\n }\n to {\n height: 0;\n }\n`,Hd=e3(y2.Root)`\n\twidth: 100%;\n`,Fd=e3(y2.Item)`\n\tuser-select: none;\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-user-drag: none;\n\t-webkit-touch-callout: none;\n\n\toverflow: hidden;\n\tmargin-top: 1px;\n\tborder-bottom: 1px solid #b3b7be;\n\tpadding: ${m.spacing.x1} 0;\n\n\t&:first-child {\n\t\tmargin-top: 0;\n\t}\n\n\t&:focus-within {\n\t\tposition: relative;\n\t\tz-index: 1;\n\t\tbox-shadow: 0 0 0 2px #44a5ff;\n\t}\n`,wd=e3(y2.Header)`\n\tdisplay: flex;\n\tfont: ${Qe.getValue(\"headerFont\")};\n`,Ld=e3(y2.Trigger)`\n\tall: unset;\n\tfont-family: inherit;\n\tbackground-color: transparent;\n\theight: ${m.size.x6};\n\tflex: 1;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\n\t&:hover {\n\t\tbackground-color: var(--mauve-2);\n\t}\n\n\t& > .accordionChevron {\n\t\ttransition: transform 300ms cubic-bezier(0.87, 0, 0.13, 1);\n\t}\n\n\t&[data-state='open'] > .accordionChevron {\n\t\ttransform: rotate(180deg);\n\t}\n`,Td=e3.div`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tgap: ${m.spacing.x1};\n\tpadding-right: ${m.spacing.x2};\n\tflex-shrink: 0;\n\tflex-grow: 1;\n`,Vd=e3(y2.Content)`\n\toverflow: hidden;\n\tfont: ${Qe.getValue(\"bodyFont\")};\n\n\t&[data-state='open'] {\n\t\tanimation: ${zd} 300ms cubic-bezier(0.87, 0, 0.13, 1);\n\t}\n\n\t&[data-state='closed'] {\n\t\tanimation: ${yd} 300ms cubic-bezier(0.87, 0, 0.13, 1);\n\t}\n`,Id=e3.div`\n\tpadding: ${m.spacing.x1} 0;\n`,Sd=forwardRef(function({children:t,className:l,...o},n){return jsx(wd,{children:jsxs(Ld,{className:l,...o,ref:n,children:[jsx(Td,{children:t}),jsx(N,{type:\"chevronDown\",className:\"accordionChevron\"})]})})}),Bd=forwardRef(function({children:t,className:l,...o},n){return jsx(Vd,{className:l,...o,ref:n,children:jsx(Id,{children:t})})});function Ed(e){return jsxs(Fd,{...e,children:[jsx(Sd,{children:e.header}),jsx(Bd,{children:e.children})]})}var YE={Root:Hd,Item:Ed};/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */\n\nexport { YE as Accordion, O4 as AppNotificationsProvider, OE as AspectRatio, zs as Attachment, E2 as AutoFocus, pd as Avatar, Xt as BadgeNumber, dl as BadgeText, Yo as Bleed, No as Box, J7 as BreakPoints, j2 as Button, KC as ButtonArrange, g6 as CellulaI18nProvider, Hi as CellulaInputCheckbox, hC as CellulaProvider, k5 as CellulaProviderContext, H1 as Description, Pn as DialogAlert, S5 as DialogAlertSuccessError, qn as DialogModal, lr as Divider, Jv as DropdownMenu, sE as FileViewer, X6 as Flag, w1 as Flex, Ir as Form, A5 as FormContext, ur as Grid, s2 as HeadlessButton, h3 as HeadlessIcon, g1 as HelpText, N as Icon, E1 as IconButton, o2 as Illustration, R5 as Input, g8 as InputCheckbox, mz as InputCheckboxGroup, My as InputCombobox, nw as InputDate, Ka as InputPhoneNumber, oH as InputRadio, GT as InputRating, ve as InputSelect, nL as InputSwitch, hi as InputText, xi as InputTextArea, Pw as InputTime, y1 as Label, T5 as LayoutProvider, A2 as NotificationAlert, hc as Popover, X2 as Portal, _o as SafeArea, e5 as Sheet, G2 as Spacer, m3 as Spinner, jo as Stack, Ac as TabNavigation, z1 as Text, c8 as TextArea, AE as TextLink, I as ThemeProperties, g3 as Tooltip, D4 as TooltipProvider, gc as Tray, V1 as VisuallyHidden, m as coreTokens, E as coreTokensData, J2 as elements, Sr as formDataParser, l1 as restrictedZIndexes, bo as toast, Ol as useArrowNavigation, jl as useBreakpoint, B1 as useCellulaProviderContext, o1 as useFormContext };\n","// Reason: Structured logging needs should be able to take in anything.\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { Disposer, EventEmitter, isSomeError } from '@visiba/std';\n\nexport class Logger {\n\tprivate static runtime: Runtime | null = null; // TODO: Nullable<Runtime>\n\tpublic static attachChannel(channel: Channel): void {\n\t\tthis.runtime ??= new Runtime();\n\n\t\tLogger.runtime?.attachChannel(channel);\n\t}\n\n\tpublic static on(event: Events, cb: (data: EventDispatchedData) => void): Disposer {\n\t\tif (Logger.runtime == null) throw new Error('Logger runtime is not initialized');\n\n\t\treturn Logger.runtime.on(event, cb);\n\t}\n\n\tpublic static off(event: Events, cb: (data: EventDispatchedData) => void): void {\n\t\tif (Logger.runtime == null) throw new Error('Logger runtime is not initialized');\n\n\t\tLogger.runtime.off(event, cb);\n\t}\n\n\tconstructor(private readonly ctx: string | null = null) {\n\t\t// Empty\n\t}\n\n\t/**\n\t * Fine-grained trace information describing exactly what’s happening in the application, as a tool for debugging.\n\t */\n\tpublic logVerbose(strTemplate: string, ...replaceArgs: any[]): void {\n\t\tthis.createMessage(LogLevel.Verbose, strTemplate, ...replaceArgs);\n\t}\n\n\t/**\n\t * Less fine-grained than the Verbose level, as it does not “trace” progress,\n\t * but instead injects useful “debug information” at important points in the application.\n\t */\n\tpublic logDebug(strTemplate: string, ...replaceArgs: any[]): void {\n\t\tthis.createMessage(LogLevel.Debug, strTemplate, ...replaceArgs);\n\t}\n\n\t/**\n\t * Events of note from a service/platform perspective.\n\t */\n\tpublic logInformation(strTemplate: string, ...replaceArgs: any[]): void {\n\t\tthis.createMessage(LogLevel.Information, strTemplate, ...replaceArgs);\n\t}\n\n\t/**\n\t * Something that needs tech/developer attention, but isn’t acute or a hindrance to continued operation.\n\t */\n\tpublic logWarning(strTemplate: string, ...replaceArgs: any[]): void {\n\t\tthis.createMessage(LogLevel.Warning, strTemplate, ...replaceArgs);\n\t}\n\n\t/**\n\t * Similar to Warning, but this event resulted in an unrecoverable action.\n\t * These are typically of high priority to attend to, as they may completely hinder users from using a certain feature.\n\t */\n\tpublic logError(strTemplate: string, ...replaceArgs: any[]): void {\n\t\tthis.createMessage(LogLevel.Error, strTemplate, ...replaceArgs);\n\t}\n\n\t/**\n\t * An event that is cause for alarm and acute intervention. The entire service or an important component\n\t * of the service fails to do its task. Leaving all related operations to fail.\n\t */\n\tpublic logFatal(strTemplate: string, ...replaceArgs: any[]): void {\n\t\tthis.createMessage(LogLevel.Fatal, strTemplate, ...replaceArgs);\n\t}\n\n\tprivate createMessage(level: LogLevel, template: string, ...replaceArgs: string[]): void {\n\t\tif (Logger.runtime == null) return;\n\n\t\tconst message = {\n\t\t\ttimestamp: Date.now(),\n\t\t\tctx: this.ctx,\n\t\t\tlevel,\n\t\t\ttemplate,\n\t\t\tdata: replaceArgs,\n\t\t};\n\n\t\tLogger.runtime.enqueue(message);\n\t}\n}\n\n// prettier-ignore\nexport enum LogLevel {\n\tVerbose = 1 << 6,\n\tDebug = 1 << 5,\n\tInformation = 1 << 4,\n\tWarning = 1 << 3,\n\tError = 1 << 2,\n\tFatal = 1 << 1,\n\tNone = 0,\n}\n\nexport interface Channel {\n\tout(str: string, msgRaw: Message): void;\n}\n\n/**\n * Built-in channel that writes to the console.\n */\nexport class StdOutChannel implements Channel {\n\tout(str: string, msgRaw: Message) {\n\t\tswitch (msgRaw.level) {\n\t\t\tcase LogLevel.Error:\n\t\t\tcase LogLevel.Fatal: {\n\t\t\t\tconsole.error('%c ' + str, 'color: rgb(255, 117, 117)');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase LogLevel.Warning: {\n\t\t\t\tconsole.warn('%c ' + str, 'color: rgb(255, 182, 0)');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase LogLevel.Verbose: {\n\t\t\t\tconsole.log('%c ' + str, 'color: rgb(170, 170, 170)');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase LogLevel.Debug: {\n\t\t\t\tconsole.log('%c ' + str, 'color: rgb(0, 255, 164)');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\tconsole.log('%c ' + str, 'color: #1ca8fa');\n\t\t}\n\t}\n}\n\nexport type Events = Lowercase<keyof typeof LogLevel>;\nexport type EventDispatchedData = [parsedMsg: string, msg: Message];\n\nclass Runtime extends EventEmitter<Record<Events, EventDispatchedData>> {\n\tprivate messages: Message[] = [];\n\tprivate isScheduledToPrint = false;\n\tprivate printIndex = 0;\n\n\tpublic level = LogLevel.Verbose;\n\tprivate channel: Channel | null = null; // TODO: Nullable<Channel>\n\n\tpublic attachChannel(channel: Channel): void {\n\t\tthis.channel = channel;\n\t}\n\n\tprivate print(parsedMsg: string, msg: Message): void {\n\t\tthis.channel?.out(parsedMsg, msg);\n\t}\n\n\tprivate dispatchEvent(parsedMsg: string, msg: Message): void {\n\t\tconst level = LogLevel[msg.level].toLowerCase() as Lowercase<keyof typeof LogLevel>;\n\t\tthis.emit(level, [parsedMsg, msg]);\n\t}\n\n\tpublic enqueue(msg: Message): void {\n\t\tthis.messages.push(msg);\n\n\t\tif (this.isScheduledToPrint) return;\n\n\t\tthis.isScheduledToPrint = true;\n\n\t\tqueueMicrotask(() => {\n\t\t\tthis.walk();\n\t\t\tthis.isScheduledToPrint = false;\n\t\t});\n\t}\n\n\tprivate walk(): void {\n\t\twhile (this.printIndex < this.messages.length) {\n\t\t\tconst msg = this.messages[this.printIndex];\n\t\t\tthis.printIndex++;\n\n\t\t\tif (msg.level > this.level) return;\n\n\t\t\tconst parsedMsg = this.parseMessage(msg);\n\t\t\tthis.dispatchEvent(parsedMsg, msg);\n\t\t\tthis.print(parsedMsg, msg);\n\t\t}\n\t}\n\n\tprivate parseMessage(msg: Message): string {\n\t\tlet extractedDataIndex = 0;\n\n\t\tlet result = '';\n\t\tlet walkerIndex = 0;\n\t\twhile (walkerIndex < msg.template.length) {\n\t\t\tconst openBraceIndex = msg.template.indexOf('{', walkerIndex);\n\t\t\tif (openBraceIndex === -1) {\n\t\t\t\tresult += msg.template.slice(walkerIndex);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst closeBraceIndex = msg.template.indexOf('}', openBraceIndex + 1);\n\t\t\tif (closeBraceIndex === -1) {\n\t\t\t\tresult += msg.template.slice(walkerIndex);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tresult += msg.template.slice(walkerIndex, openBraceIndex);\n\t\t\t// const key = msg.template.slice(openBraceIndex + 1, closeBraceIndex);\n\n\t\t\tconst data = this.unwrapData(msg.data[extractedDataIndex]);\n\n\t\t\tresult += data;\n\t\t\textractedDataIndex++;\n\n\t\t\twalkerIndex = closeBraceIndex + 1;\n\t\t}\n\n\t\treturn ['[' + new Date(msg.timestamp).toLocaleTimeString(navigator.language) + ']', this.getCtxSection(msg), result]\n\t\t\t.filter(Boolean)\n\t\t\t.join(' ');\n\t}\n\n\tprivate unwrapData(someValue: any): string {\n\t\tif (isSomeError(someValue)) {\n\t\t\treturn someValue.message;\n\t\t}\n\n\t\treturn `${someValue}`;\n\t}\n\n\tprivate getCtxSection(msg: Message): string | null {\n\t\tif (!msg.ctx) return null;\n\n\t\treturn '[' + msg.ctx + ']';\n\t}\n}\n\nexport interface Message {\n\ttimestamp: number;\n\tctx: string | null;\n\tlevel: LogLevel;\n\ttemplate: string;\n\tdata: string[];\n}\n","import type { Country } from './common';\n\n/**\n * Implements:\n * https://en.wikipedia.org/wiki/National_identification_number#Sweden\n */\nexport class SE implements Country {\n\tprivate static readonly VALIDATION_REGEX = /^([0-9]{6}|[0-9]{8})[-|+]?[0-9A-Z]{4}$/i;\n\n\tpublic validate(input: string): boolean {\n\t\tif (input.length < 10 || input.length > 13 || !SE.VALIDATION_REGEX.test(input)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst normalized = this.normalize(input);\n\t\t// Month cant be over 12\n\t\tif (parseInt(normalized.substring(4, 6)) > 12) return false;\n\n\t\t// Apply checksum if there are no letters (expected behavior with letters is unknown)\n\t\tif (normalized.match(/[A-Z]/gi) === null && !this.luhnCheck(normalized.substring(2))) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tpublic normalize(input: string): string {\n\t\t// Normalize to YYYYMMDDXXXZ\n\t\tlet normalized = '';\n\t\tconst centuryMod = input[6] === '+' ? 1 : 0;\n\t\tswitch (input.length) {\n\t\t\tcase 11: // YYMMDD?XXXZ\n\t\t\t\tnormalized =\n\t\t\t\t\tMath.floor((new Date().getFullYear() - parseInt(input.substring(0, 2))) / 100) +\n\t\t\t\t\tcenturyMod +\n\t\t\t\t\tinput.substring(0, 6) +\n\t\t\t\t\tinput.substring(7);\n\t\t\t\tbreak;\n\n\t\t\tcase 10: // YYMMDDXXXZ (century guessing; by the year you were born, not the birth date)\n\t\t\t\tnormalized =\n\t\t\t\t\tMath.floor((new Date().getFullYear() - parseInt(input.substring(0, 2))) / 100) + input.substring(0, 6) + input.substring(6);\n\t\t\t\tbreak;\n\n\t\t\tcase 12: // YYYYMMDDXXXZ\n\t\t\t\tnormalized = input;\n\t\t\t\tbreak;\n\n\t\t\tcase 13: // YYYYMMDD?XXXZ\n\t\t\t\tnormalized = input.substring(0, 8) + input.substring(9);\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn normalized;\n\t}\n\n\tpublic getDateOfBirth(input: string): Date | null {\n\t\tif (!this.validate(input)) return null;\n\t\tconst dateOfBirth = this.normalize(input).slice(0, 8);\n\n\t\tconst year = +dateOfBirth.slice(0, 4);\n\t\tconst month = +dateOfBirth.slice(4, 6);\n\t\tlet day = +dateOfBirth.slice(6, 8);\n\n\t\t// If it's a samordningsnummer, then correct the birthday\n\t\tif (day > 60) {\n\t\t\tday -= 60;\n\t\t}\n\n\t\treturn new Date(year, month - 1, day, 0, 0, 0, 0);\n\t}\n\n\t/**\n\t * Luhn algorithm in JavaScript: validate credit card number supplied as string of numbers\n\t * @author ShirtlessKirk. Copyright (c) 2012.\n\t * @license WTFPL (http://www.wtfpl.net/txt/copying)\n\t */\n\tprivate luhnCheck(input: string): boolean {\n\t\tconst arr = [0, 2, 4, 6, 8, 1, 3, 5, 7, 9];\n\t\tlet len = input.length;\n\t\tlet bit = 1;\n\t\tlet sum = 0;\n\t\tlet val: number;\n\n\t\twhile (len) {\n\t\t\tval = parseInt(input.charAt(--len), 10);\n\t\t\t// eslint-disable-next-line no-cond-assign\n\t\t\tsum += (bit ^= 1) ? arr[val] : val;\n\t\t}\n\n\t\treturn !!sum && sum % 10 === 0;\n\t}\n}\n","import { SE, GB, NO, DK, FI, NL } from './countries/mod';\nimport type { Country } from './countries/mod';\n\n/**\n * ## cortex:national-identity-number\n */\nexport namespace NiN {\n\texport interface Implementations {\n\t\tSE: SE;\n\t\tNO: NO;\n\t\tFI: FI;\n\t\tDK: DK;\n\t\tGB: GB;\n\t\tNL: NL;\n\t}\n\n\texport type ImplementationsKeys = keyof Implementations;\n\n\t/**\n\t * Check if an implementation exists for provided countryCode\n\t */\n\texport function supportsCountryCode(countryCode: string): boolean {\n\t\tswitch (countryCode) {\n\t\t\tcase 'SE':\n\t\t\t\treturn true;\n\t\t\tcase 'NO':\n\t\t\t\treturn true;\n\t\t\tcase 'FI':\n\t\t\t\treturn true;\n\t\t\tcase 'DK':\n\t\t\t\treturn true;\n\t\t\tcase 'GB':\n\t\t\t\treturn true;\n\t\t\tcase 'NL':\n\t\t\t\treturn true;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}\n\n\t/**\n\t * Validates a NiN based on countryCode\n\t */\n\texport function validate(countryCode: keyof Implementations, input: string): boolean {\n\t\tconst country = produce(countryCode);\n\n\t\treturn country.validate(input);\n\t}\n\n\t/**\n\t * Tries to normalize different formats\n\t */\n\texport function normalize(countryCode: keyof Implementations, input: string): string {\n\t\tconst country = produce(countryCode);\n\n\t\treturn country.normalize(input);\n\t}\n\n\t/**\n\t * Creates a specific Country implementation for given countryCode\n\t */\n\texport function produce(countryCode: keyof Implementations): Country {\n\t\tlet country: Country;\n\n\t\tswitch (countryCode) {\n\t\t\tcase 'SE':\n\t\t\t\tcountry = new SE();\n\t\t\t\tbreak;\n\t\t\tcase 'NO':\n\t\t\t\tcountry = new NO();\n\t\t\t\tbreak;\n\t\t\tcase 'FI':\n\t\t\t\tcountry = new FI();\n\t\t\t\tbreak;\n\t\t\tcase 'DK':\n\t\t\t\tcountry = new DK();\n\t\t\t\tbreak;\n\t\t\tcase 'GB':\n\t\t\t\tcountry = new GB();\n\t\t\t\tbreak;\n\t\t\tcase 'NL':\n\t\t\t\tcountry = new NL();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`CountryCode \"${countryCode}\" not implemented`);\n\t\t}\n\n\t\treturn country;\n\t}\n}\n","import { NiN } from './nin';\n\n/**\n * ## cortex:national-identity-number\n * Implementation for validating different national identity numbers.\n */\nexport namespace NiNFormatter {\n\texport const COUNTRIES: Readonly<Record<NiN.ImplementationsKeys, string>> = {\n\t\tSE: 'YYYYMMDD-XXXX',\n\t\tFI: 'DDMMYYCZZZQ',\n\t\tNO: 'DDMMYYXXXYY',\n\t\tDK: 'DDMMYY-SSSS',\n\t\tGB: 'XXXXXXXXXX',\n\t\tNL: 'XXXXXXXXX',\n\t};\n\n\t/**\n\t * Returns a formatted NiN\n\t *\n\t * ```tsx\n\t * const ninStr = '199901018';\n\t * const formatted = NiNFormatter.format('SE', ninStr);\n\t * formatted // 19990101-8\n\t * ```\n\t */\n\texport function format(countryCode: NiN.ImplementationsKeys, nationalIdentityNumber: string): string {\n\t\tconst [formattedNationalIdentityNumber] = formatWithPlaceholder(countryCode, nationalIdentityNumber);\n\n\t\treturn formattedNationalIdentityNumber;\n\t}\n\n\t/**\n\t *\tReturns a formatted NiN and formatted placeholder based on country code. Eg:\n\t *\n\t * ```tsx\n\t * const ninStr = '199901018';\n\t * const [formattedNationalIdentityNumber, placeholder] = NiNFormatter.formatWithPlaceholder('SE', ninStr);\n\t * formattedNationalIdentityNumber // 19990101-8\n\t * placeholder // 19990101-8XXX\n\t * ```\n\t */\n\texport function formatWithPlaceholder(\n\t\tcountryCode: NiN.ImplementationsKeys,\n\t\tnationalIdentityNumber: string,\n\t): [formattedNationalIdentityNumber: string, placeholder: string] {\n\t\tconst template = COUNTRIES[countryCode];\n\t\tif (template == null) throw new Error(`${countryCode} does not exist in NiN-helper`);\n\n\t\tconst splittedTemplate = template.split('');\n\t\tconst splittedNiN = nationalIdentityNumber.split('');\n\n\t\tsplittedNiN.forEach((nin, index) => {\n\t\t\tsplittedTemplate[index] = nin;\n\t\t});\n\n\t\tlet nationalIdentityNumberArray: string[];\n\t\tlet placeholderArray: string[];\n\t\tlet placeholderArrayWithoutDash: string[];\n\n\t\t// Country specific exceptions\n\t\tif (countryCode === 'FI') {\n\t\t\tplaceholderArray = template.split('');\n\t\t\tplaceholderArrayWithoutDash = template.replace('-', '').split('');\n\n\t\t\tnationalIdentityNumberArray = nationalIdentityNumber.split('');\n\t\t} else {\n\t\t\tnationalIdentityNumber = nationalIdentityNumber.replace(/-/g, '');\n\t\t\tnationalIdentityNumberArray = nationalIdentityNumber.split('');\n\t\t\tplaceholderArray = template.split('');\n\t\t\tplaceholderArrayWithoutDash = template.replace('-', '').split('');\n\n\t\t\tif (countryCode === 'SE') {\n\t\t\t\tif (nationalIdentityNumberArray.length < placeholderArrayWithoutDash.length && NiN.validate('SE', nationalIdentityNumber)) {\n\t\t\t\t\tplaceholderArray.splice(0, 2);\n\t\t\t\t\tplaceholderArrayWithoutDash.splice(0, 2);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If missing a - add it\n\t\t\tif (placeholderArray.indexOf('-') > -1 && nationalIdentityNumberArray.length > placeholderArray.indexOf('-')) {\n\t\t\t\tnationalIdentityNumberArray.splice(placeholderArray.indexOf('-'), 0, '-');\n\t\t\t}\n\t\t}\n\n\t\t// Merge input with placeholder\n\t\tconst meshArray = nationalIdentityNumberArray.slice();\n\t\tif (nationalIdentityNumberArray.length < placeholderArray.length) {\n\t\t\tfor (let i = nationalIdentityNumberArray.length; i < placeholderArray.length; i++) {\n\t\t\t\tmeshArray[i] = placeholderArray[i];\n\t\t\t}\n\t\t}\n\n\t\treturn [nationalIdentityNumberArray.join(''), meshArray.join('')];\n\t}\n}\n","import type { Country } from './common';\n\n/**\n * Implements:\n * https://www.nhs.uk/using-the-nhs/about-the-nhs/what-is-an-nhs-number/\n * https://en.wikipedia.org/wiki/NHS_number\n */\nexport class GB implements Country {\n\tprivate static readonly VALIDATION_REGEX = /^[0-9]{10}$/;\n\n\tpublic validate(input: string): boolean {\n\t\t// Strip all whitespace.\n\t\tconst normalizedNumber = this.normalize(input);\n\n\t\t// Verify that the NHS number consists of exactly 10 ASCII digits.\n\t\tconst isStructurallyValid = normalizedNumber.match(GB.VALIDATION_REGEX);\n\t\tif (!isStructurallyValid) {\n\t\t\treturn false;\n\t\t}\n\n\t\tlet checksum = 0;\n\t\t// Multiply each of the first 9 digits by 11 subtracted by their 1-based position (here, it is\n\t\t// 10 subtracted by their 0-based position for simplicity).\n\t\tfor (let i = 0; i < 9; i++) {\n\t\t\tchecksum += parseInt(normalizedNumber[i]) * (10 - i);\n\t\t}\n\t\t// Get the remainder of the checksum divided by 11, then subtract 11 by the remainder to get\n\t\t// the checksum total. If the total is 11, it is considered to be 0 (done here by getting the\n\t\t// remainder of the total divided by 11).\n\t\tchecksum = (11 - (checksum % 11)) % 11;\n\n\t\t// If the total is equal to the check digit, the NHS number is valid.\n\t\treturn checksum === parseInt(normalizedNumber[9], 10);\n\t}\n\n\tpublic normalize(input: string): string {\n\t\treturn input.replace(/ /g, '');\n\t}\n\n\tpublic getDateOfBirth(): null {\n\t\treturn null;\n\t}\n}\n","import type { Country } from './common';\n\n/**\n * Implements:\n * http://www.skatteetaten.no/en/Person/National-Registry/Birth-and-name-selection/Children-born-in-Norway/National-ID-number/\n */\nexport class NO implements Country {\n\tprivate static readonly VALIDATION_REGEX = /^[0-9]{11}$/i;\n\n\tpublic validate(input: string): boolean {\n\t\tif (!NO.VALIDATION_REGEX.test(input)) return false;\n\n\t\t// No normalization\n\t\tconst normalized = input;\n\n\t\t// Validate check digits\n\t\tif (!this.validateNorwegianBirthNumber(normalized)) return false;\n\n\t\treturn true;\n\t}\n\n\tpublic normalize(input: string): string {\n\t\treturn input;\n\t}\n\n\tpublic getDateOfBirth(input: string): Date | null {\n\t\tif (!this.validate(input)) return null;\n\n\t\tconst dateOfBirth = this.normalize(input).slice(0, 9);\n\t\tconst number = +dateOfBirth.slice(6, 9);\n\t\tlet century = '18';\n\n\t\tif (number < 500) {\n\t\t\tcentury = '19';\n\t\t} else {\n\t\t\tcentury = '20';\n\t\t}\n\n\t\tconst year = +`${century}${dateOfBirth.slice(4, 6)}`;\n\t\tconst month = +dateOfBirth.slice(2, 4);\n\t\tlet day = +dateOfBirth.slice(0, 2);\n\n\t\t// If it's a temporary nin, then correct the birthday\n\t\tif (day > 40) {\n\t\t\tday -= 40;\n\t\t}\n\n\t\treturn new Date(year, month - 1, day, 0, 0, 0, 0);\n\t}\n\n\t/**\n\t * Validates a norwegian Birth Number by verifying its check digits.\n\t */\n\tprivate validateNorwegianBirthNumber(birthNumber: string): boolean {\n\t\t// https://en.wikipedia.org/wiki/National_identification_number#Norway (doesn't contain detailed info)\n\t\t// https://github.com/miles-no/no-validation-scala/blob/master/src/main/scala/no/sand/eirik/novalidation/ValidBirthNumber.scala (implementation from here)\n\n\t\t// Each check digit is calculated by multiplying every digit to the left of it with\n\t\t// a specific factor per index, summing the result and then doing 11 - sum % 11.\n\t\t// If the calculated digits match those in the input number, the number is valid.\n\n\t\tconst digit1 = this.validateNorwegianBirthNumber_Checksum(birthNumber, [3, 7, 6, 1, 8, 9, 4, 5, 2]);\n\t\tconst digit2 = this.validateNorwegianBirthNumber_Checksum(birthNumber, [5, 4, 3, 2, 7, 6, 5, 4, 3, 2]);\n\n\t\treturn parseInt(birthNumber[9]) === digit1 && parseInt(birthNumber[10]) === digit2;\n\t}\n\n\tprivate validateNorwegianBirthNumber_Checksum(birthNumber: string, factors: number[]): number {\n\t\tlet sum = 0;\n\t\tfor (let n = 0; n < factors.length; n++) sum += factors[n] * parseInt(birthNumber.charAt(n));\n\n\t\tconst result = 11 - (sum % 11);\n\n\t\treturn result === 11 ? 0 : result;\n\t}\n}\n","import type { Country } from './common';\n\n/**\n * https://en.wikipedia.org/wiki/National_identification_number#Denmark\n * https://en.wikipedia.org/wiki/Personal_identification_number_(Denmark)\n */\nexport class DK implements Country {\n\tprivate static readonly VALIDATION_REGEX = /^\\d{6}-(\\d{4}|[a-z|æ|ø|å]{4})$/i;\n\tprivate static readonly TEMP_CPR_LAST_CHARS = /^[a-z|æ|ø|å]{4}$/i;\n\n\tpublic validate(input: string): boolean {\n\t\tconst match = DK.VALIDATION_REGEX.test(input);\n\t\tif (!match) return false;\n\n\t\tif (this.isTempCPR(input)) return this.isBirthDateValid(input, '19');\n\n\t\tconst birthCentury = Number(input[7]) > 4 ? '19' : '20';\n\n\t\treturn this.isBirthDateValid(input, birthCentury);\n\t}\n\n\tpublic normalize(input: string): string {\n\t\treturn input.toUpperCase();\n\t}\n\n\tpublic getDateOfBirth(): null {\n\t\treturn null;\n\t}\n\n\tprivate isTempCPR(input: string): boolean {\n\t\treturn DK.TEMP_CPR_LAST_CHARS.test(input.substring(7, 11));\n\t}\n\n\tprivate isBirthDateValid(input: string, century: string): boolean {\n\t\tconst dateString = `${century}${input.substring(4, 6)}/${input.substring(2, 4)}/${input.substring(0, 2)}`;\n\t\tconst birthDay = new Date(dateString);\n\n\t\tif (birthDay.toString() === 'Invalid Date' || parseInt(input.substring(2, 4)) !== birthDay.getMonth() + 1) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n}\n","import type { Country } from './common';\n\n/**\n * https://en.wikipedia.org/wiki/National_identification_number#Finland\n */\nexport class FI implements Country {\n\tprivate static readonly CHECK_SUM_CHAR = '0123456789ABCDEFHJKLMNPRSTUVWXY';\n\tprivate static readonly VALIDATION_REGEX = /^[0-9]{6}[-|+|A][0-9]{3}[0-9A-Z]$/i;\n\n\tpublic validate(input: string): boolean {\n\t\tconst normalized = this.normalize(input);\n\n\t\tif (!FI.VALIDATION_REGEX.test(normalized)) return false;\n\n\t\t// Validate checksum character\n\t\tconst mod = parseInt(normalized.substring(0, 6) + normalized.substring(7, 10)) % 31;\n\t\tif (normalized[normalized.length - 1] !== FI.CHECK_SUM_CHAR[mod]) return false;\n\n\t\treturn true;\n\t}\n\n\tpublic normalize(input: string): string {\n\t\treturn input.toUpperCase();\n\t}\n\n\tpublic getDateOfBirth(input: string): Date | null {\n\t\tif (!this.validate(input)) return null;\n\n\t\tconst dateOfBirth = this.normalize(input).slice(0, 8);\n\t\tlet century = '18';\n\n\t\tif (dateOfBirth.includes('-')) {\n\t\t\tcentury = '19';\n\t\t} else if (dateOfBirth.includes('A')) {\n\t\t\tcentury = '20';\n\t\t}\n\n\t\tconst year = +`${century}${dateOfBirth.slice(4, 6)}`;\n\t\tconst month = +dateOfBirth.slice(2, 4);\n\t\tconst day = +dateOfBirth.slice(0, 2);\n\n\t\treturn new Date(year, month - 1, day, 0, 0, 0, 0);\n\t}\n}\n","import type { Country } from './common';\n\n/**\n * Implements: nothing yet...\n * https://hasnode.byrayray.dev/how-to-validate-bsn-pgn-and-own-in-the-netherlands-with-typescriptjavascript\n * https://developers.wiki.kennisnet.nl/index.php?title=OSO:2022/beveiliging/versleuteling_bsn\n */\nexport class NL implements Country {\n\t// No validation implemented yet. Just fixing the broken stuff in Office for now.\n\t// TODO: Add validation for NL\n\tpublic validate(input: string): boolean {\n\t\tthis.normalize(input);\n\n\t\treturn true;\n\t}\n\n\tpublic normalize(input: string): string {\n\t\treturn input.toUpperCase();\n\t}\n\n\tpublic getDateOfBirth(): null {\n\t\treturn null;\n\t}\n}\n","// src/errors/argument_error.ts\nvar ArgumentError = class _ArgumentError extends Error {\n constructor(message) {\n super(message);\n this.message = message;\n this.name = \"ArgumentError\";\n Object.setPrototypeOf(this, _ArgumentError.prototype);\n }\n};\n\n// src/errors/application_error.ts\nvar ApplicationError = class _ApplicationError extends Error {\n constructor(message) {\n super(message);\n this.message = message;\n this.name = \"ApplicationError\";\n Object.setPrototypeOf(this, _ApplicationError.prototype);\n }\n};\n\n// src/clamp.tsx\nfunction clamp(value, [min, max]) {\n if (min > max)\n throw new Error(\"min can not be greater than max\");\n return Math.min(max, Math.max(min, value));\n}\n\n// src/color.ts\nvar Color;\n((Color2) => {\n const HEX_REGEX = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;\n function lightLevel(hex, amount) {\n function normalizeValue(value) {\n if (value > 255) {\n return 255;\n }\n if (value < 0) {\n return 0;\n }\n return value;\n }\n const rgb = createRgb(hex);\n const r = normalizeValue(rgb[0] + amount);\n const g = normalizeValue(rgb[1] + amount);\n const b = normalizeValue(rgb[2] + amount);\n return createHex([r, g, b, 1]);\n }\n Color2.lightLevel = lightLevel;\n function createRgb(hex) {\n if (!HEX_REGEX.test(hex)) {\n throw new Error(\"Tried to modify a non hex string\");\n }\n const num = parseInt(hex.slice(1), 16);\n const red = num >> 16;\n const green = num >> 8 & 255;\n const blue = num & 255;\n return [red, green, blue, 1];\n }\n Color2.createRgb = createRgb;\n function createHex(rgb) {\n function section(num) {\n const str = num.toString(16).toLowerCase();\n return str.length < 2 ? `0${str}` : str;\n }\n return `#${section(rgb[0])}${section(rgb[1])}${section(rgb[2])}`;\n }\n Color2.createHex = createHex;\n function isDark(hex) {\n const rgb = createRgb(hex);\n const yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1e3;\n return yiq < 128;\n }\n Color2.isDark = isDark;\n function isLight(hex) {\n return !isDark(hex);\n }\n Color2.isLight = isLight;\n})(Color || (Color = {}));\n\n// src/debounce.ts\nfunction debounce(fn, interval) {\n let timeout;\n return function debouncer(...args) {\n const functionCall = () => fn.apply(this, args);\n clearTimeout(timeout);\n timeout = setTimeout(functionCall, interval);\n };\n}\n\n// src/debug.ts\nvar Debug;\n((Debug2) => {\n function assert(expression, message) {\n if (!expression) {\n throw new Error(message ?? \"assertion failed\");\n }\n return true;\n }\n Debug2.assert = assert;\n function assertDeclared(value, message) {\n if (typeof value === \"undefined\" || value === null) {\n throw new Error(message ?? \"assertDeclared\");\n }\n return true;\n }\n Debug2.assertDeclared = assertDeclared;\n})(Debug || (Debug = {}));\n\n// src/timer.ts\nvar Timer = class {\n disposers = /* @__PURE__ */ new Map();\n registeredId = 0;\n wait(callback, duration) {\n const timeout = setTimeout(callback, duration);\n const disposer = () => {\n clearTimeout(timeout);\n };\n return this.registerDisposer(disposer);\n }\n repeat(callback, duration, callOnceOnInvoke = false) {\n if (callOnceOnInvoke) {\n callback();\n }\n const interval = setInterval(callback, duration);\n const disposer = () => {\n clearInterval(interval);\n };\n return this.registerDisposer(disposer);\n }\n flush() {\n this.disposers.forEach((disposer) => disposer());\n }\n registerDisposer(disposer) {\n const localUid = this.registeredId++;\n this.disposers.set(localUid, disposer);\n return () => {\n this.disposers.delete(localUid);\n disposer();\n };\n }\n};\n((Timer2) => {\n function wait(...args) {\n const time = new Timer2();\n time.wait(...args);\n return time.flush.bind(time);\n }\n Timer2.wait = wait;\n function repeat(...args) {\n const time = new Timer2();\n time.repeat(...args);\n return time.flush.bind(time);\n }\n Timer2.repeat = repeat;\n})(Timer || (Timer = {}));\n\n// src/delay.tsx\nfunction delay(delayTime) {\n return new Promise((resolve) => Timer.wait(resolve, delayTime));\n}\n\n// src/event_emitter.ts\nvar EventEmitter = class {\n events = /* @__PURE__ */ Object.create(null);\n errorHandlers = /* @__PURE__ */ new WeakMap();\n constructor() {\n }\n on(event, handler, errorHandler) {\n (this.events[event] || (this.events[event] = [])).push(handler);\n if (errorHandler) {\n this.errorHandlers.set(handler, errorHandler);\n }\n return () => {\n this.off(event, handler);\n };\n }\n /**\n * Un-registers handlers for events emitted by this instance.\n */\n off(event, handler) {\n if (!this.events[event])\n return;\n this.events[event].splice(this.events[event].indexOf(handler) >>> 0, 1);\n }\n /**\n * Emits an event containing a given value.\n */\n emit(event, data) {\n (this.events[event] || []).forEach((handler) => {\n try {\n handler(data);\n } catch (error) {\n const errorHandler = this.errorHandlers.get(handler);\n if (errorHandler)\n errorHandler(error);\n }\n });\n }\n};\n\n// src/get_cookie.tsx\nfunction getCookie(name) {\n if (document.cookie.length > 0) {\n let start = document.cookie.indexOf(name + \"=\");\n if (start !== -1) {\n start = start + name.length + 1;\n let end = document.cookie.indexOf(\";\", start);\n if (end === -1) {\n end = document.cookie.length;\n }\n return unescape(document.cookie.substring(start, end));\n }\n }\n return null;\n}\n\n// src/is_visiba_ios_app.tsx\nfunction isVisibaIOSApp() {\n try {\n const cookie = getCookie(\"VisibaIOSApp\");\n return !!cookie;\n } catch {\n return false;\n }\n}\n\n// src/get_platform.tsx\nvar DeviceType = /* @__PURE__ */ ((DeviceType2) => {\n DeviceType2[DeviceType2[\"Ios\"] = 0] = \"Ios\";\n DeviceType2[DeviceType2[\"Android\"] = 1] = \"Android\";\n DeviceType2[DeviceType2[\"Web\"] = 2] = \"Web\";\n return DeviceType2;\n})(DeviceType || {});\nfunction getPlatform() {\n const userAgent = navigator.userAgent || navigator.vendor;\n if (/android/i.test(userAgent)) {\n return 1 /* Android */;\n }\n if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream || isVisibaIOSApp()) {\n return 0 /* Ios */;\n }\n return 2 /* Web */;\n}\n\n// src/platform.tsx\nvar Platform = class {\n static userAgentData() {\n return this.parseAgentData();\n }\n static browserIs(test) {\n const statements = [];\n const agent = this.userAgentData();\n if ((test & 1 /* Edge */) === 1 /* Edge */) {\n statements.push(agent.browsers.edge);\n }\n if ((test & 32 /* SamsungBrowser */) === 32 /* SamsungBrowser */) {\n statements.push(agent.browsers.samsungBrowser);\n }\n if ((test & 64 /* Opera */) === 64 /* Opera */) {\n statements.push(agent.browsers.opera);\n }\n if ((test & 8 /* Firefox */) === 8 /* Firefox */) {\n statements.push(agent.browsers.firefox);\n }\n if ((test & 16 /* Chrome */) === 16 /* Chrome */) {\n statements.push(agent.browsers.chrome);\n }\n if ((test & 2 /* Safari */) === 2 /* Safari */) {\n statements.push(agent.browsers.safari);\n }\n if ((test & 4 /* StrictSafari */) === 4 /* StrictSafari */) {\n statements.push(agent.browsers.strictSafari);\n }\n if ((test & 128 /* IE */) === 128 /* IE */) {\n statements.push(agent.browsers.ie);\n }\n if ((test & 256 /* EdgeChromium */) === 256 /* EdgeChromium */) {\n statements.push(agent.browsers.edgeChromium);\n }\n if ((test & 512 /* EdgeAndroid */) === 512 /* EdgeAndroid */) {\n statements.push(agent.browsers.edgeAndroid);\n }\n if ((test & 1024 /* EdgeIos */) === 1024 /* EdgeIos */) {\n statements.push(agent.browsers.edgeIos);\n }\n if ((test & 2048 /* FirefoxIos */) === 2048 /* FirefoxIos */) {\n statements.push(agent.browsers.firefoxIos);\n }\n if ((test & 4096 /* ChromeIos */) === 4096 /* ChromeIos */) {\n statements.push(agent.browsers.chromeIos);\n }\n return statements.filter(Boolean).length > 0;\n }\n static platformIs(test) {\n const statements = [];\n const agent = this.userAgentData();\n if ((test & 1 /* Ios */) === 1 /* Ios */) {\n statements.push(agent.platform.ios);\n }\n if ((test & 2 /* Android */) === 2 /* Android */) {\n statements.push(agent.platform.android);\n }\n if ((test & 4 /* Mobile */) === 4 /* Mobile */) {\n statements.push(agent.platform.mobile);\n }\n if ((test & 8 /* Desktop */) === 8 /* Desktop */) {\n statements.push(agent.platform.desktop);\n }\n return statements.filter(Boolean).length > 0;\n }\n static runtimeSupportsTouch() {\n return \"ontouchstart\" in window || window.navigator.maxTouchPoints > 0;\n }\n static runtimeIsInBrowser() {\n return typeof navigator !== \"undefined\" && typeof window !== \"undefined\";\n }\n static parseAgentData() {\n const edgeHTML = this.runtimeIsInBrowser() && navigator.userAgent.includes(\"Edge/\");\n const edgeChromium = this.runtimeIsInBrowser() && navigator.userAgent.includes(\"Edg/\");\n const edgeAndroid = this.runtimeIsInBrowser() && navigator.userAgent.includes(\"EdgA/\");\n const edgeIos = this.runtimeIsInBrowser() && navigator.userAgent.includes(\"EdgiOS/\");\n const edge = edgeHTML || edgeChromium || edgeAndroid || edgeIos;\n const samsungBrowser = this.runtimeIsInBrowser() && navigator.userAgent.includes(\"SamsungBrowser/\");\n const opera = this.runtimeIsInBrowser() && (navigator.userAgent.includes(\"Opera\") || navigator.userAgent.includes(\"OPR/\"));\n const operaIos = this.runtimeIsInBrowser() && navigator.userAgent.includes(\"OPiOS/\");\n const firefoxIos = this.runtimeIsInBrowser() && navigator.userAgent.includes(\"FxiOS/\");\n const firefox = this.runtimeIsInBrowser() && (navigator.userAgent.includes(\"Firefox\") || firefoxIos);\n const chromeIos = this.runtimeIsInBrowser() && navigator.userAgent.includes(\"CriOS/\");\n const chrome = this.runtimeIsInBrowser() && (navigator.userAgent.includes(\"Chrome\") || chromeIos) && !edge && !opera && !samsungBrowser;\n const safari = this.runtimeIsInBrowser() && navigator.userAgent.includes(\"Safari\") && !chrome && !edgeChromium && !firefox && !opera && !samsungBrowser || edgeIos || chromeIos || firefoxIos;\n const strictSafari = this.runtimeIsInBrowser() && navigator.userAgent.includes(\"Safari\") && !chrome && !edge && !firefox && !opera && !samsungBrowser;\n const ie = this.runtimeIsInBrowser() && navigator.userAgent.includes(\"Trident\");\n const visibaIOSApp = isVisibaIOSApp();\n const browsers = Object.freeze({\n edgeChromium,\n edgeAndroid,\n edgeIos,\n edge,\n firefoxIos,\n chromeIos,\n samsungBrowser,\n opera,\n operaIos,\n firefox,\n chrome,\n safari,\n strictSafari,\n ie,\n visibaIOSApp\n });\n const ios = this.runtimeIsInBrowser() && (/iPad|iPhone|iPod/.test(navigator.userAgent) || isVisibaIOSApp());\n const android = this.runtimeIsInBrowser() && /Android/.test(navigator.userAgent);\n const mobile = ios || android;\n const desktop = !mobile;\n const platform2 = Object.freeze({\n ios,\n android,\n mobile,\n desktop\n });\n return Object.freeze({\n browsers,\n platform: platform2\n });\n }\n};\nvar BrowserList = /* @__PURE__ */ ((BrowserList2) => {\n BrowserList2[BrowserList2[\"None\"] = 0] = \"None\";\n BrowserList2[BrowserList2[\"Edge\"] = 1] = \"Edge\";\n BrowserList2[BrowserList2[\"Safari\"] = 2] = \"Safari\";\n BrowserList2[BrowserList2[\"StrictSafari\"] = 4] = \"StrictSafari\";\n BrowserList2[BrowserList2[\"Firefox\"] = 8] = \"Firefox\";\n BrowserList2[BrowserList2[\"Chrome\"] = 16] = \"Chrome\";\n BrowserList2[BrowserList2[\"SamsungBrowser\"] = 32] = \"SamsungBrowser\";\n BrowserList2[BrowserList2[\"Opera\"] = 64] = \"Opera\";\n BrowserList2[BrowserList2[\"IE\"] = 128] = \"IE\";\n BrowserList2[BrowserList2[\"EdgeChromium\"] = 256] = \"EdgeChromium\";\n BrowserList2[BrowserList2[\"EdgeAndroid\"] = 512] = \"EdgeAndroid\";\n BrowserList2[BrowserList2[\"EdgeIos\"] = 1024] = \"EdgeIos\";\n BrowserList2[BrowserList2[\"FirefoxIos\"] = 2048] = \"FirefoxIos\";\n BrowserList2[BrowserList2[\"ChromeIos\"] = 4096] = \"ChromeIos\";\n BrowserList2[BrowserList2[\"OperaIos\"] = 8192] = \"OperaIos\";\n BrowserList2[BrowserList2[\"visibaIOSApp\"] = 16384] = \"visibaIOSApp\";\n return BrowserList2;\n})(BrowserList || {});\nvar PlatformList = /* @__PURE__ */ ((PlatformList2) => {\n PlatformList2[PlatformList2[\"None\"] = 0] = \"None\";\n PlatformList2[PlatformList2[\"Ios\"] = 1] = \"Ios\";\n PlatformList2[PlatformList2[\"Android\"] = 2] = \"Android\";\n PlatformList2[PlatformList2[\"Mobile\"] = 4] = \"Mobile\";\n PlatformList2[PlatformList2[\"Desktop\"] = 8] = \"Desktop\";\n return PlatformList2;\n})(PlatformList || {});\nvar platform = Platform;\n\n// src/parameter_handler.ts\nvar ParameterHandler = class {\n /**\n * Map of current parameters.\n * */\n parameters = /* @__PURE__ */ Object.create(null);\n /** Appends a new object of parameters */\n append(item) {\n Object.assign(this.parameters, item);\n }\n /** Clears the parameter maps. */\n clearParameters() {\n this.parameters = /* @__PURE__ */ Object.create(null);\n }\n /** Returns a query string based on the values in the map. */\n getString() {\n if (Object.keys(this.parameters).length === 0)\n return \"\";\n const entries = Object.entries(this.parameters);\n return entries.reduce((accumulator, currentValue, currentIndex) => {\n let combine = accumulator + currentValue.join(\"=\");\n if (entries.length - 1 !== currentIndex) {\n combine += \"&\";\n }\n return combine;\n }, \"?\");\n }\n};\n\n// src/prefers_reduced_motion.tsx\nfunction prefersReducedMotion() {\n return globalThis.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n}\n\n// src/rem.ts\nfunction rem(px) {\n return `${px / 16}rem`;\n}\nfunction remToNumber(remValue) {\n const strippedRem = remValue.replace(\"rem\", \"\");\n const value = parseInt(strippedRem, 10);\n if (isNaN(value)) {\n return 16;\n }\n return value * 16;\n}\n\n// src/retry.ts\nvar Retry;\n((Retry2) => {\n Retry2.byBruteForce = (fn, options) => {\n const defaultOption = {\n every: 1e3,\n for: 1,\n hooks: [],\n ...options ? options : {}\n };\n return new Promise((resolve, reject) => {\n let attempts = 0;\n let finishedRequest = false;\n const disposer = Timer.repeat(\n () => {\n proxy(++attempts);\n },\n defaultOption.every,\n true\n );\n async function proxy(attempt) {\n if (attempt > defaultOption.for && !finishedRequest) {\n disposer();\n reject(`request did not finish in ${defaultOption.for} attempts`);\n } else {\n try {\n const resolvedIntoThis = await fn();\n if (!finishedRequest) {\n disposer();\n finishedRequest = true;\n resolve(resolvedIntoThis);\n }\n } catch (error) {\n defaultOption.hooks?.forEach((hook) => hook());\n }\n }\n }\n });\n };\n Retry2.the = (fn, options) => {\n const defaultOption = {\n againAfter: 1e3,\n for: 1,\n hooks: [],\n ...options ? options : {}\n };\n return new Promise((resolve, reject) => {\n let attempts = 0;\n async function proxy(attempt) {\n try {\n const resolvedIntoThis = await fn();\n resolve(resolvedIntoThis);\n } catch (error) {\n defaultOption.hooks?.forEach((hook) => hook());\n if (attempt < defaultOption.for) {\n retry();\n } else {\n reject(`request did not finish in ${defaultOption.for} attempts`);\n }\n }\n }\n function retry() {\n setTimeout(() => {\n proxy(++attempts);\n }, defaultOption.againAfter);\n }\n proxy(++attempts);\n });\n };\n})(Retry || (Retry = {}));\n\n// src/safe_json_parse.ts\nfunction safeJsonParse(data) {\n try {\n return JSON.parse(data);\n } catch (error) {\n return data;\n }\n}\n\n// src/storage.tsx\nfunction storage(spec = {}) {\n const storeType = spec.type ?? \"local\";\n const store = storeType === \"local\" ? globalThis.localStorage : globalThis.sessionStorage;\n return {\n storeType,\n get(key) {\n const item = store.getItem(`${spec.prefix ?? \"\"}${key.toString()}`);\n if (!item)\n return null;\n return safeJsonParse(item);\n },\n set(key, data) {\n store.setItem(`${spec.prefix ?? \"\"}${key.toString()}`, JSON.stringify(data));\n },\n removeItem(key) {\n store.removeItem(`${spec.prefix ?? \"\"}${key.toString()}`);\n }\n };\n}\n\n// src/vector.ts\nvar Vec2 = class {\n constructor(x, y) {\n this.x = x;\n this.y = y;\n }\n getAsObj() {\n return {\n x: this.x,\n y: this.y\n };\n }\n};\nvar Vec3 = class {\n constructor(x, y, z) {\n this.x = x;\n this.y = y;\n this.z = z;\n }\n getAsObj() {\n return {\n x: this.x,\n y: this.y,\n z: this.z\n };\n }\n};\n\n// src/create_initials.ts\nfunction createInitials(commonName, separator) {\n const parts = commonName.trim().split(\" \");\n if (parts.length === 0) {\n return \"\";\n }\n const firstPart = parts[0].charAt(0).toUpperCase();\n if (parts.length === 1) {\n return firstPart;\n }\n const secondPart = (parts[parts.length - 1] ?? \"\").charAt(0).toUpperCase();\n return firstPart + (separator ?? \"\") + secondPart;\n}\n\n// src/format_bytes.ts\nfunction formatBytes(bytes, decimals = 2) {\n if (bytes === 0)\n return \"0 Bytes\";\n const base = 1024;\n const dm = decimals < 0 ? 0 : decimals;\n const sizes = [\"Bytes\", \"KB\", \"MB\", \"GB\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\"];\n const sizeIndex = Math.floor(Math.log(bytes) / Math.log(base));\n return (bytes / Math.pow(base, sizeIndex)).toFixed(dm) + \" \" + sizes[sizeIndex];\n}\n\n// src/convert_to_milliseconds.tsx\nfunction convertToMilliseconds(hours, minutes, seconds) {\n return (hours * 60 * 60 + minutes * 60 + seconds) * 1e3;\n}\n\n// src/is_some_error.tsx\nfunction isSomeError(value) {\n return value instanceof Error || value instanceof DOMException || value instanceof AggregateError || value instanceof EvalError || value instanceof RangeError || value instanceof ReferenceError || value instanceof SyntaxError || value instanceof TypeError || value instanceof URIError;\n}\n\n// src/safe_number_parse.ts\nfunction safeNumberParse(input) {\n if (input == null || input.trim() === \"\")\n return null;\n const parsed = Number(input);\n if (!Number.isFinite(parsed))\n return null;\n return parsed;\n}\n\n// src/type_checks.tsx\nfunction isResultType(value) {\n if (typeof value === \"object\" && !Array.isArray(value) && value !== null && \"ok\" in value && \"err\" in value) {\n return true;\n }\n return false;\n}\nfunction isPromise(value) {\n return typeof value === \"object\" && !Array.isArray(value) && value !== null && \"then\" in value;\n}\nfunction isBoolean(value) {\n return typeof value === \"boolean\";\n}\nfunction isString(value) {\n return typeof value === \"string\";\n}\nfunction isError(value) {\n return value instanceof Error;\n}\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\n\nexport { ApplicationError, ArgumentError, BrowserList, Color, Debug, DeviceType, EventEmitter, ParameterHandler, PlatformList, Retry, Timer, Vec2, Vec3, clamp, convertToMilliseconds, createInitials, debounce, delay, formatBytes, getCookie, getPlatform, isBoolean, isError, isFunction, isPromise, isResultType, isSomeError, isString, isVisibaIOSApp, platform, prefersReducedMotion, rem, remToNumber, safeJsonParse, safeNumberParse, storage };\n//# sourceMappingURL=out.js.map\n//# sourceMappingURL=index.mjs.map","import { useRef } from 'react';\n\n/**\n * Represents a factory function that creates a value of type T.\n *\n * @template T - The type of the value created by the factory function.\n */\ntype FactoryFn<T> = () => T;\n\n/**\n * Custom React hook that returns a constant value.\n * The value is created using the provided factory function and\n * remains the same across re-renders of the component.\n *\n * @template T - The type of the value created by the factory function.\n * @param {FactoryFn<T>} factory - The factory function that creates the value.\n * @returns {T} - The constant value.\n */\nexport function useConstant<T>(factory: FactoryFn<T>): T {\n\t/**\n\t * Reference to store the created value.\n\t * The value persists across re-renders of the component.\n\t *\n\t * @type {React.MutableRefObject<T | undefined>}\n\t */\n\tconst historyRef = useRef<T>();\n\n\t// Check if the current value of `historyRef` is `null` or `undefined`.\n\t// If it is, it means that the factory function hasn't been called yet.\n\tif (historyRef.current == null) {\n\t\t// Call the factory function to create the value of type T.\n\t\t// Store the created value in the `current` property of `historyRef`.\n\t\thistoryRef.current = factory();\n\t}\n\n\t// Return the value stored in the `current` property of `historyRef`.\n\t// The value will persist across re-renders of the component using this hook.\n\treturn historyRef.current;\n}\n","export const isSSR = !(typeof window !== 'undefined' && window.document?.createElement);\n","import { DispatchWithoutAction, useReducer } from 'react';\n\n/**\n * There's very few cases this hook is needed. It should not really be viewed as\n * a solution, it's an escape hatch. Try to avoid this pattern if possible.\n *\n * See: https://reactjs.org/docs/hooks-faq.html#is-there-something-like-forceupdate\n */\nexport function useMisbehavedForceUpdate(): DispatchWithoutAction {\n\tconst [, forceUpdate] = useReducer((x) => x + 1, 0);\n\n\treturn forceUpdate;\n}\n","import { useMemo } from 'react';\nimport { debounce } from '@visiba/std';\nimport { useEventListener } from './use_event_listener';\n\nexport const useResize = (callback: (event: Event) => void, wait = 250): void => {\n\tconst handleResize = useMemo(\n\t\t() => (wait !== 0 ? debounce((event: Event) => callback(event), wait) : (event: Event) => callback(event)),\n\t\t[wait, callback],\n\t);\n\n\tuseEventListener({\n\t\ttype: 'resize',\n\t\tlistener: handleResize,\n\t\toptions: { passive: true },\n\t});\n};\n","import { getRefElement } from '@misc/get_ref_element';\nimport { isSSR } from '@misc/is_ssr';\nimport { useRef, useEffect, useCallback, RefObject } from 'react';\n\ninterface UseEventListener {\n\ttype: keyof WindowEventMap;\n\tlistener: EventListener;\n\telement?: RefObject<Element> | Document | Window | null;\n\toptions?: AddEventListenerOptions;\n}\n\nexport function useEventListener({ type, listener, element = isSSR ? undefined : window, options }: UseEventListener): void {\n\tconst savedListener = useRef<EventListener>();\n\n\tuseEffect(() => {\n\t\tsavedListener.current = listener;\n\t}, [listener]);\n\n\tconst handleEventListener = useCallback((event: Event) => {\n\t\tsavedListener.current?.(event);\n\t}, []);\n\n\tuseEffect(() => {\n\t\tconst target = getRefElement(element);\n\t\ttarget?.addEventListener(type, handleEventListener, options);\n\n\t\treturn () => target?.removeEventListener(type, handleEventListener);\n\t}, [type, element, options, handleEventListener]);\n}\n","import type { RefObject } from 'react';\n\nexport function getRefElement<T>(element?: RefObject<Element> | T): Element | T | undefined | null {\n\tif (element != null && typeof element === 'object' && 'current' in element) {\n\t\treturn element.current;\n\t}\n\n\treturn element as T;\n}\n","import { isSSR } from '@misc/is_ssr';\nimport { useEffect } from 'react';\n\n/**\n * ## @cellula/react\n *\n * `useEffect` is not meant to run on the server. To suppress any warnings, this\n * hook will just no-op on the server.\n *\n * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect\n */\nexport const useSsrSafeEffect = (\n\t!isSSR\n\t\t? useEffect\n\t\t: () => {\n\t\t\t\t// noop\n\t\t\t}\n) as typeof useEffect;\n","import { isSSR } from '@misc/is_ssr';\nimport { useLayoutEffect } from 'react';\n\n/**\n * ## @cellula/react\n *\n * `useLayoutEffect` is not meant to run on the server. To suppress any\n * warnings, this hook will just no-op on the server.\n *\n * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect\n */\nexport const useSsrSafeLayoutEffect = (\n\t!isSSR\n\t\t? useLayoutEffect\n\t\t: () => {\n\t\t\t\t// noop\n\t\t\t}\n) as typeof useLayoutEffect;\n","import { useState, useCallback } from 'react';\nimport { useResize } from './use_resize';\nimport { isSSR } from '@misc/is_ssr';\n\n// TODO: Move to Cellula repo.\n\nexport function useWindowSize(wait = 250): {\n\twidth?: number;\n\theight?: number;\n} {\n\tconst getWindowSize = useCallback(\n\t\t() => ({\n\t\t\twidth: isSSR ? undefined : window.innerWidth,\n\t\t\theight: isSSR ? undefined : window.innerHeight,\n\t\t}),\n\t\t[],\n\t);\n\tconst [windowSize, setWindowSize] = useState(getWindowSize);\n\n\tuseResize(() => {\n\t\tsetWindowSize(getWindowSize);\n\t}, wait);\n\n\treturn windowSize;\n}\n","/**\n * 🚨 If you don't know exactly what you're doing, don't ever use this. 🚨\n */\nexport function dangerouslyInjectHTML(htmlString: string): { __html: string } {\n\treturn { __html: htmlString };\n}\n","/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */\n\nconst {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor\n} = Object;\nlet {\n freeze,\n seal,\n create\n} = Object; // eslint-disable-line import/no-mutable-exports\nlet {\n apply,\n construct\n} = typeof Reflect !== 'undefined' && Reflect;\nif (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n}\nif (!seal) {\n seal = function seal(x) {\n return x;\n };\n}\nif (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n}\nif (!construct) {\n construct = function construct(Func, args) {\n return new Func(...args);\n };\n}\nconst arrayForEach = unapply(Array.prototype.forEach);\nconst arrayPop = unapply(Array.prototype.pop);\nconst arrayPush = unapply(Array.prototype.push);\nconst stringToLowerCase = unapply(String.prototype.toLowerCase);\nconst stringToString = unapply(String.prototype.toString);\nconst stringMatch = unapply(String.prototype.match);\nconst stringReplace = unapply(String.prototype.replace);\nconst stringIndexOf = unapply(String.prototype.indexOf);\nconst stringTrim = unapply(String.prototype.trim);\nconst objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);\nconst regExpTest = unapply(RegExp.prototype.test);\nconst typeErrorCreate = unconstruct(TypeError);\n/**\n * Creates a new function that calls the given function with a specified thisArg and arguments.\n *\n * @param func - The function to be wrapped and called.\n * @returns A new function that calls the given function with a specified thisArg and arguments.\n */\nfunction unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n return apply(func, thisArg, args);\n };\n}\n/**\n * Creates a new function that constructs an instance of the given constructor function with the provided arguments.\n *\n * @param func - The constructor function to be wrapped and called.\n * @returns A new function that constructs an instance of the given constructor function with the provided arguments.\n */\nfunction unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n return construct(func, args);\n };\n}\n/**\n * Add properties to a lookup table\n *\n * @param set - The set to which elements will be added.\n * @param array - The array containing elements to be added to the set.\n * @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.\n * @returns The modified set with added elements.\n */\nfunction addToSet(set, array) {\n let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n element = lcElement;\n }\n }\n set[element] = true;\n }\n return set;\n}\n/**\n * Clean up an array to harden against CSPP\n *\n * @param array - The array to be cleaned.\n * @returns The cleaned version of the array\n */\nfunction cleanArray(array) {\n for (let index = 0; index < array.length; index++) {\n const isPropertyExist = objectHasOwnProperty(array, index);\n if (!isPropertyExist) {\n array[index] = null;\n }\n }\n return array;\n}\n/**\n * Shallow clone an object\n *\n * @param object - The object to be cloned.\n * @returns A new object that copies the original.\n */\nfunction clone(object) {\n const newObject = create(null);\n for (const [property, value] of entries(object)) {\n const isPropertyExist = objectHasOwnProperty(object, property);\n if (isPropertyExist) {\n if (Array.isArray(value)) {\n newObject[property] = cleanArray(value);\n } else if (value && typeof value === 'object' && value.constructor === Object) {\n newObject[property] = clone(value);\n } else {\n newObject[property] = value;\n }\n }\n }\n return newObject;\n}\n/**\n * This method automatically checks if the prop is function or getter and behaves accordingly.\n *\n * @param object - The object to look up the getter function in its prototype chain.\n * @param prop - The property name for which to find the getter function.\n * @returns The getter function found in the prototype chain or a fallback function.\n */\nfunction lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n object = getPrototypeOf(object);\n }\n function fallbackValue() {\n return null;\n }\n return fallbackValue;\n}\n\nconst html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);\nconst svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\nconst svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);\n// List of SVG elements that are disallowed by default.\n// We still need to know them so that we can do namespace\n// checks properly in case one wants to add them to\n// allow-list.\nconst svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\nconst mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']);\n// Similarly to SVG, we want to know all MathML elements,\n// even those that we disallow by default.\nconst mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\nconst text = freeze(['#text']);\n\nconst html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);\nconst svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\nconst mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\nconst xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n// eslint-disable-next-line unicorn/better-regex\nconst MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\nconst ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\nconst TMPLIT_EXPR = seal(/\\$\\{[\\w\\W]*}/gm); // eslint-disable-line unicorn/better-regex\nconst DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]+$/); // eslint-disable-line no-useless-escape\nconst ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\nconst IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n);\nconst IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\nconst ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n);\nconst DOCTYPE_NAME = seal(/^html$/i);\nconst CUSTOM_ELEMENT = seal(/^[a-z][.\\w]*(-[.\\w]+)+$/i);\n\nvar EXPRESSIONS = /*#__PURE__*/Object.freeze({\n __proto__: null,\n ARIA_ATTR: ARIA_ATTR,\n ATTR_WHITESPACE: ATTR_WHITESPACE,\n CUSTOM_ELEMENT: CUSTOM_ELEMENT,\n DATA_ATTR: DATA_ATTR,\n DOCTYPE_NAME: DOCTYPE_NAME,\n ERB_EXPR: ERB_EXPR,\n IS_ALLOWED_URI: IS_ALLOWED_URI,\n IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,\n MUSTACHE_EXPR: MUSTACHE_EXPR,\n TMPLIT_EXPR: TMPLIT_EXPR\n});\n\n/* eslint-disable @typescript-eslint/indent */\n// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType\nconst NODE_TYPE = {\n element: 1,\n attribute: 2,\n text: 3,\n cdataSection: 4,\n entityReference: 5,\n // Deprecated\n entityNode: 6,\n // Deprecated\n progressingInstruction: 7,\n comment: 8,\n document: 9,\n documentType: 10,\n documentFragment: 11,\n notation: 12 // Deprecated\n};\nconst getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n};\n/**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param trustedTypes The policy factory.\n * @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).\n * @return The policy created (or null, if Trusted Types\n * are not supported or creating the policy failed).\n */\nconst _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {\n if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {\n suffix = purifyHostElement.getAttribute(ATTR_NAME);\n }\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n};\nconst _createHooksMap = function _createHooksMap() {\n return {\n afterSanitizeAttributes: [],\n afterSanitizeElements: [],\n afterSanitizeShadowDOM: [],\n beforeSanitizeAttributes: [],\n beforeSanitizeElements: [],\n beforeSanitizeShadowDOM: [],\n uponSanitizeAttribute: [],\n uponSanitizeElement: [],\n uponSanitizeShadowNode: []\n };\n};\nfunction createDOMPurify() {\n let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n const DOMPurify = root => createDOMPurify(root);\n DOMPurify.version = '3.2.3';\n DOMPurify.removed = [];\n if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n return DOMPurify;\n }\n let {\n document\n } = window;\n const originalDocument = document;\n const currentScript = originalDocument.currentScript;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes\n } = window;\n const ElementPrototype = Element.prototype;\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const remove = lookupGetter(ElementPrototype, 'remove');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n let trustedTypesPolicy;\n let emptyHTML = '';\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName\n } = document;\n const {\n importNode\n } = originalDocument;\n let hooks = _createHooksMap();\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n CUSTOM_ELEMENT\n } = EXPRESSIONS;\n let {\n IS_ALLOWED_URI: IS_ALLOWED_URI$1\n } = EXPRESSIONS;\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);\n /*\n * Configure how DOMPurify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false\n }\n }));\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n /* Output should be safe even for XML used within HTML and alike.\n * This means, DOMPurify removes comments when containing risky content.\n */\n let SAFE_FOR_XML = true;\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);\n let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n let HTML_INTEGRATION_POINTS = addToSet({}, ['annotation-xml']);\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE = null;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc = null;\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n const formElement = document.createElement('form');\n const isRegexOrFunction = function isRegexOrFunction(testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n /**\n * _parseConfig\n *\n * @param cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function _parseConfig() {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;\n /* Set configuration parameters */\n ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};\n FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};\n USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;\n HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, text);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html$1);\n addToSet(ALLOWED_ATTR, html);\n }\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg$1);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl$1);\n addToSet(ALLOWED_ATTR, mathMl);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n if (cfg.TRUSTED_TYPES_POLICY) {\n if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.');\n }\n if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.');\n }\n // Overwrite existing TrustedTypes policy.\n trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;\n // Sign local variables required by `sanitize`.\n emptyHTML = trustedTypesPolicy.createHTML('');\n } else {\n // Uninitialized policy, attempt to initialize the internal dompurify policy.\n if (trustedTypesPolicy === undefined) {\n trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);\n }\n // If creating the internal policy succeeded sign internal variables.\n if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {\n emptyHTML = trustedTypesPolicy.createHTML('');\n }\n }\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n CONFIG = cfg;\n };\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);\n const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);\n /**\n * @param element a DOM element whose namespace is being checked\n * @returns Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function _checkValidNamespace(element) {\n let parent = getParentNode(element);\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template'\n };\n }\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n }\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);\n }\n // For XHTML and XML documents that support custom namespaces\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {\n return true;\n }\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n /**\n * _forceRemove\n *\n * @param node a DOM node\n */\n const _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, {\n element: node\n });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n getParentNode(node).removeChild(node);\n } catch (_) {\n remove(node);\n }\n };\n /**\n * _removeAttribute\n *\n * @param name an Attribute name\n * @param element a DOM node\n */\n const _removeAttribute = function _removeAttribute(name, element) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: element.getAttributeNode(name),\n from: element\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: element\n });\n }\n element.removeAttribute(name);\n // We void attribute values for unremovable \"is\" attributes\n if (name === 'is') {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(element);\n } catch (_) {}\n } else {\n try {\n element.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n /**\n * _initDocument\n *\n * @param dirty - a string of dirty markup\n * @return a DOM, filled with the dirty markup\n */\n const _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n let doc = null;\n let leadingWhitespace = null;\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' + dirty + '</body></html>';\n }\n const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n const body = doc.body || doc.documentElement;\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n /**\n * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n *\n * @param root The root element or node to start traversing on.\n * @return The created NodeIterator\n */\n const _createNodeIterator = function _createNodeIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);\n };\n /**\n * _isClobbered\n *\n * @param element element to check for clobbering attacks\n * @return true if clobbered, false if safe\n */\n const _isClobbered = function _isClobbered(element) {\n return element instanceof HTMLFormElement && (typeof element.nodeName !== 'string' || typeof element.textContent !== 'string' || typeof element.removeChild !== 'function' || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== 'function' || typeof element.setAttribute !== 'function' || typeof element.namespaceURI !== 'string' || typeof element.insertBefore !== 'function' || typeof element.hasChildNodes !== 'function');\n };\n /**\n * Checks whether the given object is a DOM node.\n *\n * @param value object to check whether it's a DOM node\n * @return true is object is a DOM node\n */\n const _isNode = function _isNode(value) {\n return typeof Node === 'function' && value instanceof Node;\n };\n function _executeHooks(hooks, currentNode, data) {\n arrayForEach(hooks, hook => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n }\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n * @param currentNode to check for permission to exist\n * @return true if node was killed, false if left alive\n */\n const _sanitizeElements = function _sanitizeElements(currentNode) {\n let content = null;\n /* Execute a hook if present */\n _executeHooks(hooks.beforeSanitizeElements, currentNode, null);\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n /* Execute a hook if present */\n _executeHooks(hooks.uponSanitizeElement, currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS\n });\n /* Detect mXSS attempts abusing namespace confusion */\n if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n return true;\n }\n /* Remove any occurrence of processing instructions */\n if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {\n _forceRemove(currentNode);\n return true;\n }\n /* Remove any kind of possibly harmful comments */\n if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\\w]/g, currentNode.data)) {\n _forceRemove(currentNode);\n return true;\n }\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {\n return false;\n }\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {\n return false;\n }\n }\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n for (let i = childCount - 1; i >= 0; --i) {\n const childClone = cloneNode(childNodes[i], true);\n childClone.__removalCount = (currentNode.__removalCount || 0) + 1;\n parentNode.insertBefore(childClone, getNextSibling(currentNode));\n }\n }\n }\n _forceRemove(currentNode);\n return true;\n }\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n /* Make sure that older browsers don't get fallback-tag mXSS */\n if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\\/no(script|embed|frames)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {\n /* Get the element's text content */\n content = currentNode.textContent;\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n content = stringReplace(content, expr, ' ');\n });\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, {\n element: currentNode.cloneNode()\n });\n currentNode.textContent = content;\n }\n }\n /* Execute a hook if present */\n _executeHooks(hooks.afterSanitizeElements, currentNode, null);\n return false;\n };\n /**\n * _isValidAttribute\n *\n * @param lcTag Lowercase tag name of containing element.\n * @param lcName Lowercase attribute name.\n * @param value Attribute value.\n * @return Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (value) {\n return false;\n } else ;\n return true;\n };\n /**\n * _isBasicCustomElement\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n *\n * @param tagName name of the tag of the node to sanitize\n * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.\n */\n const _isBasicCustomElement = function _isBasicCustomElement(tagName) {\n return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);\n };\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param currentNode to sanitize\n */\n const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n /* Execute a hook if present */\n _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);\n const {\n attributes\n } = currentNode;\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes || _isClobbered(currentNode)) {\n return;\n }\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR,\n forceKeepAttr: undefined\n };\n let l = attributes.length;\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n const attr = attributes[l];\n const {\n name,\n namespaceURI,\n value: attrValue\n } = attr;\n const lcName = transformCaseFunc(name);\n let value = name === 'value' ? attrValue : stringTrim(attrValue);\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n /* Work around a security issue with comments inside attributes */\n if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\\/(style|title)/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n value = stringReplace(value, expr, ' ');\n });\n }\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n /* Handle attributes that require Trusted Types */\n if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {\n if (namespaceURI) ; else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n {\n value = trustedTypesPolicy.createHTML(value);\n break;\n }\n case 'TrustedScriptURL':\n {\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n }\n }\n }\n }\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n } else {\n arrayPop(DOMPurify.removed);\n }\n } catch (_) {}\n }\n /* Execute a hook if present */\n _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);\n };\n /**\n * _sanitizeShadowDOM\n *\n * @param fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n let shadowNode = null;\n const shadowIterator = _createNodeIterator(fragment);\n /* Execute a hook if present */\n _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);\n /* Sanitize tags and elements */\n _sanitizeElements(shadowNode);\n /* Check attributes next */\n _sanitizeAttributes(shadowNode);\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n }\n /* Execute a hook if present */\n _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);\n };\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty) {\n let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let body = null;\n let importedNode = null;\n let currentNode = null;\n let returnNode = null;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n if (typeof dirty.toString === 'function') {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n } else {\n throw typeErrorCreate('toString is not a function');\n }\n }\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n /* Clean up removed elements */\n DOMPurify.removed = [];\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n /* Get node iterator */\n const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);\n /* Now start iterating over the created document */\n while (currentNode = nodeIterator.nextNode()) {\n /* Sanitize tags and elements */\n _sanitizeElements(currentNode);\n /* Check attributes next */\n _sanitizeAttributes(currentNode);\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n }\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n return returnNode;\n }\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n /* Serialize doctype if allowed */\n if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {\n serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n serializedHTML = stringReplace(serializedHTML, expr, ' ');\n });\n }\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n DOMPurify.setConfig = function () {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n arrayPush(hooks[entryPoint], hookFunction);\n };\n DOMPurify.removeHook = function (entryPoint) {\n return arrayPop(hooks[entryPoint]);\n };\n DOMPurify.removeHooks = function (entryPoint) {\n hooks[entryPoint] = [];\n };\n DOMPurify.removeAllHooks = function () {\n hooks = _createHooksMap();\n };\n return DOMPurify;\n}\nvar purify = createDOMPurify();\n\nexport { purify as default };\n//# sourceMappingURL=purify.es.mjs.map\n","/**\n * ## cortex:std:color\n * Exposes an api that you can use to modify brightness of a given hex or check\n * if the hex is a dark or light color (based on a YIQ equation)\n */\nexport namespace Color {\n\t// Only used some functionality from https://github.com/Qix-/color/blob/master/index.js\n\t// since they don't seem to support tree shaking and we're only interested in\n\t// a few lines from that lib anyway\n\n\ttype RgbTuple = [number, number, number, number];\n\ttype Hex = string;\n\n\tconst HEX_REGEX = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;\n\n\t/**\n\t * Changes the brightness by an amount\n\t *\n\t * @param hex a valid color code, e.g. #1ea0b4\n\t * @param ratio a int value\n\t */\n\texport function lightLevel(hex: Hex, amount: number): string {\n\t\t// To visualize how the color changes in a color picker, here's how a\n\t\t// positive amount effects a color:\n\t\t// Before running this function, RGB values are: [23, 95, 45] (hex #175F2D)\n\t\t// - - - - -\n\t\t// - - - - -\n\t\t// - - - - -\n\t\t// - - - x -\n\t\t// - - - - -\n\t\t// After running this function with a amount of 40, the new RGB values\n\t\t// are now: [63, 135, 75] (hex #357D41)\n\t\t// - - - - -\n\t\t// - - - - -\n\t\t// - - x - -\n\t\t// - - - - -\n\t\t// - - - - -\n\t\t// By adding another 40, it'll move linear closer to the top left corner.\n\t\t// Having a negative amount will move it linear in the other direction\n\n\t\t/**\n\t\t * Scoped helper to deal with overflows\n\t\t */\n\t\tfunction normalizeValue(value: number): number {\n\t\t\tif (value > 255) {\n\t\t\t\treturn 255;\n\t\t\t}\n\n\t\t\tif (value < 0) {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\treturn value;\n\t\t}\n\n\t\tconst rgb = createRgb(hex);\n\n\t\tconst r = normalizeValue(rgb[0] + amount);\n\t\tconst g = normalizeValue(rgb[1] + amount);\n\t\tconst b = normalizeValue(rgb[2] + amount);\n\n\t\treturn createHex([r, g, b, 1]);\n\t}\n\n\t/**\n\t * Converts a color code to an RGB tuple\n\t *\n\t * @param hex a valid color code, e.g. #1ea0b4\n\t */\n\texport function createRgb(hex: Hex): RgbTuple {\n\t\tif (!HEX_REGEX.test(hex)) {\n\t\t\tthrow new Error('Tried to modify a non hex string');\n\t\t}\n\n\t\t// Hex is base 16\n\t\tconst num = parseInt(hex.slice(1), 16);\n\n\t\tconst red = num >> 16;\n\t\tconst green = (num >> 8) & 0x00ff;\n\t\tconst blue = num & 0x0000ff;\n\n\t\t// The last number in the tuple is alpha, and it's not currently implemented\n\t\treturn [red, green, blue, 1];\n\t}\n\n\t/**\n\t * Converts an RGB tuple to a color code\n\t *\n\t * @param rgb an tuple containing hex decimal values from 0 - 255\n\t */\n\texport function createHex(rgb: RgbTuple): string {\n\t\tfunction section(num: number): string {\n\t\t\tconst str = num.toString(16).toLowerCase();\n\n\t\t\treturn str.length < 2 ? `0${str}` : str;\n\t\t}\n\n\t\treturn `#${section(rgb[0])}${section(rgb[1])}${section(rgb[2])}`;\n\t}\n\n\t/**\n\t * Checks if a color is \"dark\" based on a YIQ equation\n\t * The one being used can be found here:\n\t * http://24ways.org/2010/calculating-color-contrast\n\t *\n\t * @param hex a valid color code, e.g. #1ea0b4\n\t */\n\texport function isDark(hex: Hex): boolean {\n\t\t// YIQ equation from http://24ways.org/2010/calculating-color-contrast\n\t\tconst rgb = createRgb(hex);\n\t\tconst yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;\n\n\t\treturn yiq < 128;\n\t}\n\n\t/**\n\t * Checks if a color is \"light\" based on a YIQ equation.\n\t * The one being used can be found here:\n\t * http://24ways.org/2010/calculating-color-contrast\n\t *\n\t * @param hex a valid color code, e.g. #1ea0b4\n\t */\n\texport function isLight(hex: Hex): boolean {\n\t\treturn !isDark(hex);\n\t}\n}\n","/**\n * ## cortex:std:debug\n * Module to \"assert\" certain criteria within the code. If code is being\n * executed in a production environment it'll throw an error. If code is being\n * executed in a development environment call \"debugger\" first.\n *\n * ### Code example\n *\n * ```ts\n * const valueFromService = getValueFromService()!;\n * // throws an error if null or undefined. If dev env it'll launch the debugger before the throw\n * Debug.assertDeclared(valueFromService);\n *\n * // continue with valueFromService being defined\n * ```\n */\nexport namespace Debug {\n\t/** Asserts value's truthiness, if false -> fail */\n\texport function assert<T>(expression: T, message?: string): expression is T {\n\t\tif (!expression) {\n\t\t\tthrow new Error(message ?? 'assertion failed');\n\t\t}\n\n\t\treturn true;\n\t}\n\n\t/** Asserts that value is not undefined or null */\n\texport function assertDeclared<T>(value: T, message?: string): value is NonNullable<T> {\n\t\tif (typeof value === 'undefined' || value === null) {\n\t\t\tthrow new Error(message ?? 'assertDeclared');\n\t\t}\n\n\t\treturn true;\n\t}\n}\n","/**\n * ## cortex:std:ArgumentError\n * Custom error type to throw when argument checking fails.\n */\nexport class ArgumentError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'ArgumentError';\n\t\tObject.setPrototypeOf(this, ArgumentError.prototype);\n\t}\n}\n","/**\n * ## cortex:std:ApplicationError\n * Custom error type to throw when application flow fails.\n */\nexport class ApplicationError extends Error {\n\tconstructor(public message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'ApplicationError';\n\t\tObject.setPrototypeOf(this, ApplicationError.prototype);\n\t}\n}\n","export function clamp(value: number, [min, max]: [min: number, max: number]): number {\n\tif (min > max) throw new Error('min can not be greater than max');\n\n\treturn Math.min(max, Math.max(min, value));\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-ts-comment */\n\ntype ArgumentsType<T extends (...args: any[]) => any> = T extends (...args: infer A) => any ? A : never;\n\n/**\n * ## cortex:std:debounce\n * Runs a behavior that should only happen after a repeated action has completed.\n */\nexport function debounce<T extends (...args: any) => any>(fn: T, interval: number): (...args: ArgumentsType<T>) => void {\n\tlet timeout: ReturnType<typeof setTimeout>;\n\n\treturn function debouncer(...args: any[]): void {\n\t\t// @ts-ignore\n\t\tconst functionCall = (): void => fn.apply(this, args);\n\n\t\tclearTimeout(timeout);\n\t\ttimeout = setTimeout(functionCall, interval);\n\t};\n}\n","// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Fn = (...args: any) => unknown;\n\nexport class Timer {\n\tprivate disposers = new Map<number, Timer.Disposer>();\n\tprivate registeredId = 0;\n\n\tpublic wait(callback: Fn, duration: number): Timer.Disposer {\n\t\tconst timeout = setTimeout(callback, duration);\n\n\t\tconst disposer = (): void => {\n\t\t\tclearTimeout(timeout);\n\t\t};\n\n\t\treturn this.registerDisposer(disposer);\n\t}\n\n\tpublic repeat(callback: Fn, duration: number, callOnceOnInvoke = false): Timer.Disposer {\n\t\tif (callOnceOnInvoke) {\n\t\t\tcallback();\n\t\t}\n\n\t\tconst interval = setInterval(callback, duration);\n\n\t\tconst disposer = (): void => {\n\t\t\tclearInterval(interval);\n\t\t};\n\n\t\treturn this.registerDisposer(disposer);\n\t}\n\n\tpublic flush(): void {\n\t\tthis.disposers.forEach((disposer) => disposer());\n\t}\n\n\tprivate registerDisposer(disposer: Timer.Disposer): Timer.Disposer {\n\t\tconst localUid = this.registeredId++;\n\n\t\tthis.disposers.set(localUid, disposer);\n\n\t\treturn () => {\n\t\t\tthis.disposers.delete(localUid);\n\n\t\t\tdisposer();\n\t\t};\n\t}\n}\n\n/**\n * ## cortex:std:timer\n * Wrapper around JavaScript's setTimeout and setInterval to provide a more\n * intuitive api interface\n */\nexport namespace Timer {\n\texport type Disposer = () => void;\n\ttype GetArgumentTypes<T extends Fn> = T extends (...x: infer argumentsType) => unknown ? argumentsType : never;\n\n\texport function wait(...args: GetArgumentTypes<Timer['wait']>): Disposer {\n\t\tconst time = new Timer();\n\n\t\ttime.wait(...args);\n\n\t\treturn time.flush.bind(time);\n\t}\n\n\texport function repeat(...args: GetArgumentTypes<Timer['repeat']>): Disposer {\n\t\tconst time = new Timer();\n\n\t\ttime.repeat(...args);\n\n\t\treturn time.flush.bind(time);\n\t}\n}\n","import { Timer } from './timer';\n\nexport function delay(delayTime: number): Promise<void> {\n\treturn new Promise((resolve) => Timer.wait(resolve, delayTime));\n}\n","// Reason: The internals of the event emitter needs to work with any boxed value.\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nexport type EventHandler<T> = (event: T) => void;\n\nexport type Disposer = () => void;\n\ntype ErrorHandler = (error: unknown) => void;\n\nexport class EventEmitter<T extends Record<`on${Capitalize<string>}`, any>> {\n\tprivate readonly events: { [key in keyof T]: EventHandler<any>[] } = Object.create(null);\n\tprivate readonly errorHandlers = new WeakMap<EventHandler<any>, ErrorHandler>();\n\n\tconstructor() {\n\t\t// Empty\n\t}\n\n\t/**\n\t * Registers handlers for events emitted by this instance.\n\t */\n\tpublic on<K extends keyof T>(event: K, handler: EventHandler<T[K]>): Disposer;\n\tpublic on<K extends keyof T>(event: K, handler: EventHandler<T[K]>, errorHandler: ErrorHandler): Disposer;\n\tpublic on<K extends keyof T>(event: K, handler: EventHandler<T[K]>, errorHandler?: ErrorHandler): Disposer {\n\t\t(this.events[event] || (this.events[event] = [])).push(handler);\n\n\t\tif (errorHandler) {\n\t\t\tthis.errorHandlers.set(handler, errorHandler);\n\t\t}\n\n\t\treturn () => {\n\t\t\tthis.off(event, handler);\n\t\t};\n\t}\n\n\t/**\n\t * Un-registers handlers for events emitted by this instance.\n\t */\n\tpublic off<K extends keyof T>(event: K, handler: EventHandler<T[K]>): void {\n\t\tif (!this.events[event]) return;\n\n\t\tthis.events[event].splice(this.events[event].indexOf(handler) >>> 0, 1);\n\t}\n\n\t/**\n\t * Emits an event containing a given value.\n\t */\n\tpublic emit<K extends keyof T>(event: K, data: T[K]): void {\n\t\t(this.events[event] || []).forEach((handler) => {\n\t\t\ttry {\n\t\t\t\thandler(data);\n\t\t\t} catch (error: unknown) {\n\t\t\t\tconst errorHandler = this.errorHandlers.get(handler);\n\t\t\t\tif (errorHandler) errorHandler(error);\n\t\t\t}\n\t\t});\n\t}\n}\n","export function getCookie(name: string): string | null {\n\tif (document.cookie.length > 0) {\n\t\tlet start = document.cookie.indexOf(name + '=');\n\t\tif (start !== -1) {\n\t\t\tstart = start + name.length + 1;\n\t\t\tlet end = document.cookie.indexOf(';', start);\n\n\t\t\tif (end === -1) {\n\t\t\t\tend = document.cookie.length;\n\t\t\t}\n\n\t\t\treturn unescape(document.cookie.substring(start, end));\n\t\t}\n\t}\n\n\treturn null;\n}\n","import { getCookie } from './get_cookie';\n\nexport function isVisibaIOSApp(): boolean {\n\ttry {\n\t\tconst cookie = getCookie('VisibaIOSApp');\n\n\t\treturn !!cookie;\n\t} catch {\n\t\treturn false;\n\t}\n}\n","import { isVisibaIOSApp } from './is_visiba_ios_app';\n\nclass Platform {\n\tpublic static userAgentData(): Readonly<UserAgentData> {\n\t\treturn this.parseAgentData();\n\t}\n\n\tpublic static browserIs(test: number): boolean {\n\t\tconst statements: boolean[] = [];\n\t\tconst agent = this.userAgentData();\n\n\t\tif ((test & BrowserList.Edge) === BrowserList.Edge) {\n\t\t\tstatements.push(agent.browsers.edge);\n\t\t}\n\n\t\tif ((test & BrowserList.SamsungBrowser) === BrowserList.SamsungBrowser) {\n\t\t\tstatements.push(agent.browsers.samsungBrowser);\n\t\t}\n\n\t\tif ((test & BrowserList.Opera) === BrowserList.Opera) {\n\t\t\tstatements.push(agent.browsers.opera);\n\t\t}\n\n\t\tif ((test & BrowserList.Firefox) === BrowserList.Firefox) {\n\t\t\tstatements.push(agent.browsers.firefox);\n\t\t}\n\n\t\tif ((test & BrowserList.Chrome) === BrowserList.Chrome) {\n\t\t\tstatements.push(agent.browsers.chrome);\n\t\t}\n\n\t\tif ((test & BrowserList.Safari) === BrowserList.Safari) {\n\t\t\tstatements.push(agent.browsers.safari);\n\t\t}\n\n\t\tif ((test & BrowserList.StrictSafari) === BrowserList.StrictSafari) {\n\t\t\tstatements.push(agent.browsers.strictSafari);\n\t\t}\n\n\t\tif ((test & BrowserList.IE) === BrowserList.IE) {\n\t\t\tstatements.push(agent.browsers.ie);\n\t\t}\n\n\t\tif ((test & BrowserList.EdgeChromium) === BrowserList.EdgeChromium) {\n\t\t\tstatements.push(agent.browsers.edgeChromium);\n\t\t}\n\n\t\tif ((test & BrowserList.EdgeAndroid) === BrowserList.EdgeAndroid) {\n\t\t\tstatements.push(agent.browsers.edgeAndroid);\n\t\t}\n\n\t\tif ((test & BrowserList.EdgeIos) === BrowserList.EdgeIos) {\n\t\t\tstatements.push(agent.browsers.edgeIos);\n\t\t}\n\n\t\tif ((test & BrowserList.FirefoxIos) === BrowserList.FirefoxIos) {\n\t\t\tstatements.push(agent.browsers.firefoxIos);\n\t\t}\n\n\t\tif ((test & BrowserList.ChromeIos) === BrowserList.ChromeIos) {\n\t\t\tstatements.push(agent.browsers.chromeIos);\n\t\t}\n\n\t\treturn statements.filter(Boolean).length > 0;\n\t}\n\n\tpublic static platformIs(test: number): boolean {\n\t\tconst statements: boolean[] = [];\n\t\tconst agent = this.userAgentData();\n\n\t\tif ((test & PlatformList.Ios) === PlatformList.Ios) {\n\t\t\tstatements.push(agent.platform.ios);\n\t\t}\n\n\t\tif ((test & PlatformList.Android) === PlatformList.Android) {\n\t\t\tstatements.push(agent.platform.android);\n\t\t}\n\n\t\tif ((test & PlatformList.Mobile) === PlatformList.Mobile) {\n\t\t\tstatements.push(agent.platform.mobile);\n\t\t}\n\n\t\tif ((test & PlatformList.Desktop) === PlatformList.Desktop) {\n\t\t\tstatements.push(agent.platform.desktop);\n\t\t}\n\n\t\treturn statements.filter(Boolean).length > 0;\n\t}\n\n\tpublic static runtimeSupportsTouch(): boolean {\n\t\treturn 'ontouchstart' in window || window.navigator.maxTouchPoints > 0;\n\t}\n\n\tpublic static runtimeIsInBrowser(): boolean {\n\t\treturn typeof navigator !== 'undefined' && typeof window !== 'undefined';\n\t}\n\n\tprivate static parseAgentData(): Readonly<UserAgentData> {\n\t\tconst edgeHTML = this.runtimeIsInBrowser() && navigator.userAgent.includes('Edge/');\n\t\tconst edgeChromium = this.runtimeIsInBrowser() && navigator.userAgent.includes('Edg/');\n\t\tconst edgeAndroid = this.runtimeIsInBrowser() && navigator.userAgent.includes('EdgA/');\n\t\tconst edgeIos = this.runtimeIsInBrowser() && navigator.userAgent.includes('EdgiOS/');\n\t\tconst edge = edgeHTML || edgeChromium || edgeAndroid || edgeIos;\n\t\tconst samsungBrowser = this.runtimeIsInBrowser() && navigator.userAgent.includes('SamsungBrowser/');\n\t\tconst opera = this.runtimeIsInBrowser() && (navigator.userAgent.includes('Opera') || navigator.userAgent.includes('OPR/'));\n\t\tconst operaIos = this.runtimeIsInBrowser() && navigator.userAgent.includes('OPiOS/');\n\t\tconst firefoxIos = this.runtimeIsInBrowser() && navigator.userAgent.includes('FxiOS/');\n\t\tconst firefox = this.runtimeIsInBrowser() && (navigator.userAgent.includes('Firefox') || firefoxIos);\n\t\tconst chromeIos = this.runtimeIsInBrowser() && navigator.userAgent.includes('CriOS/');\n\t\tconst chrome =\n\t\t\tthis.runtimeIsInBrowser() && (navigator.userAgent.includes('Chrome') || chromeIos) && !edge && !opera && !samsungBrowser;\n\t\tconst safari =\n\t\t\t(this.runtimeIsInBrowser() &&\n\t\t\t\tnavigator.userAgent.includes('Safari') &&\n\t\t\t\t!chrome &&\n\t\t\t\t!edgeChromium &&\n\t\t\t\t!firefox &&\n\t\t\t\t!opera &&\n\t\t\t\t!samsungBrowser) ||\n\t\t\tedgeIos ||\n\t\t\tchromeIos ||\n\t\t\tfirefoxIos;\n\t\tconst strictSafari =\n\t\t\tthis.runtimeIsInBrowser() && navigator.userAgent.includes('Safari') && !chrome && !edge && !firefox && !opera && !samsungBrowser;\n\t\tconst ie = this.runtimeIsInBrowser() && navigator.userAgent.includes('Trident');\n\t\tconst visibaIOSApp = isVisibaIOSApp();\n\n\t\tconst browsers = Object.freeze({\n\t\t\tedgeChromium,\n\t\t\tedgeAndroid,\n\t\t\tedgeIos,\n\t\t\tedge,\n\t\t\tfirefoxIos,\n\t\t\tchromeIos,\n\t\t\tsamsungBrowser,\n\t\t\topera,\n\t\t\toperaIos,\n\t\t\tfirefox,\n\t\t\tchrome,\n\t\t\tsafari,\n\t\t\tstrictSafari,\n\t\t\tie,\n\t\t\tvisibaIOSApp,\n\t\t} satisfies BrowsersData);\n\n\t\tconst ios = this.runtimeIsInBrowser() && (/iPad|iPhone|iPod/.test(navigator.userAgent) || isVisibaIOSApp());\n\t\tconst android = this.runtimeIsInBrowser() && /Android/.test(navigator.userAgent);\n\t\tconst mobile = ios || android;\n\t\tconst desktop = !mobile;\n\n\t\tconst platform = Object.freeze({\n\t\t\tios,\n\t\t\tandroid,\n\t\t\tmobile,\n\t\t\tdesktop,\n\t\t} satisfies PlatfromData);\n\n\t\treturn Object.freeze({\n\t\t\tbrowsers,\n\t\t\tplatform,\n\t\t});\n\t}\n}\n\ninterface BrowsersData {\n\tedgeChromium: boolean;\n\tedgeAndroid: boolean;\n\tedgeIos: boolean;\n\tedge: boolean;\n\tsamsungBrowser: boolean;\n\topera: boolean;\n\toperaIos: boolean;\n\tfirefoxIos: boolean;\n\tfirefox: boolean;\n\tchromeIos: boolean;\n\tchrome: boolean;\n\tsafari: boolean;\n\tstrictSafari: boolean;\n\tie: boolean;\n\tvisibaIOSApp: boolean;\n}\n\ninterface PlatfromData {\n\tios: boolean;\n\tandroid: boolean;\n\tmobile: boolean;\n\tdesktop: boolean;\n}\n\ninterface UserAgentData {\n\tbrowsers: Readonly<BrowsersData>;\n\tplatform: Readonly<PlatfromData>;\n}\n\n// prettier-ignore\nexport enum BrowserList {\n None = 0, // 0 - Runtime is in terminal\n Edge = 1 << 0, // 1\n Safari = 1 << 1, // 2\n StrictSafari = 1 << 2, // 4 - All browsers within iOS is using Safari in the background, but this flag ignores that fact.\n Firefox = 1 << 3, // 8\n Chrome = 1 << 4, // 16\n SamsungBrowser = 1 << 5, // 32\n Opera = 1 << 6, // 64\n IE = 1 << 7, // 128\n EdgeChromium = 1 << 8, // 256\n EdgeAndroid = 1 << 9, // 512\n EdgeIos = 1 << 10, // 1024\n FirefoxIos = 1 << 11, // 2048\n ChromeIos = 1 << 12, // 4096\n OperaIos = 1 << 13, // 8192\n visibaIOSApp = 1 << 14, // 16384\n}\n\n// prettier-ignore\nexport enum PlatformList {\n None = 0, // 0 - Runtime is in terminal\n Ios = 1 << 0, // 1\n Android = 1 << 1, // 2\n Mobile = 1 << 2, // 4\n Desktop = 1 << 3, // 8\n}\n\nexport const platform = Platform;\n","// Reason: Keeping the typing easy for generic behavior.\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { Timer } from './timer';\n\n/**\n * ## cortex:std:retry\n * Module for retrying a given function either x amount of times\n * or every x seconds\n */\nexport namespace Retry {\n\tinterface TheOptions {\n\t\tagainAfter: number;\n\t\tfor: number;\n\t\thooks: Array<() => void>;\n\t}\n\n\tinterface BruteForceOptions {\n\t\tevery: number;\n\t\tfor: number;\n\t\thooks: Array<() => void>;\n\t}\n\n\t/** Retry a function every x amount of seconds, regardless of success or failure */\n\texport const byBruteForce = <T extends (...args: any) => any>(\n\t\tfn: T,\n\t\toptions?: Partial<BruteForceOptions>,\n\t): Promise<ReturnType<T>> => {\n\t\tconst defaultOption: BruteForceOptions = {\n\t\t\tevery: 1000,\n\t\t\tfor: 1,\n\t\t\thooks: [],\n\t\t\t...(options ? options : {}),\n\t\t};\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet attempts = 0;\n\t\t\tlet finishedRequest = false;\n\n\t\t\tconst disposer = Timer.repeat(\n\t\t\t\t() => {\n\t\t\t\t\tproxy(++attempts);\n\t\t\t\t},\n\t\t\t\tdefaultOption.every,\n\t\t\t\ttrue,\n\t\t\t);\n\n\t\t\tasync function proxy(attempt: number): Promise<void> {\n\t\t\t\tif (attempt > defaultOption.for && !finishedRequest) {\n\t\t\t\t\tdisposer();\n\n\t\t\t\t\treject(`request did not finish in ${defaultOption.for} attempts`);\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconst resolvedIntoThis = await fn();\n\t\t\t\t\t\tif (!finishedRequest) {\n\t\t\t\t\t\t\tdisposer();\n\t\t\t\t\t\t\tfinishedRequest = true;\n\n\t\t\t\t\t\t\tresolve(resolvedIntoThis);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tdefaultOption.hooks?.forEach((hook) => hook());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t};\n\n\t/** Retry a function for a given amount of times in case if fails */\n\texport const the = <T extends (...args: any) => any>(fn: T, options?: Partial<TheOptions>): Promise<ReturnType<T>> => {\n\t\tconst defaultOption: TheOptions = {\n\t\t\tagainAfter: 1000,\n\t\t\tfor: 1,\n\t\t\thooks: [],\n\t\t\t...(options ? options : {}),\n\t\t};\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet attempts = 0;\n\n\t\t\tasync function proxy(attempt: number): Promise<void> {\n\t\t\t\ttry {\n\t\t\t\t\tconst resolvedIntoThis = await fn();\n\n\t\t\t\t\tresolve(resolvedIntoThis);\n\t\t\t\t} catch (error) {\n\t\t\t\t\tdefaultOption.hooks?.forEach((hook) => hook());\n\n\t\t\t\t\tif (attempt < defaultOption.for) {\n\t\t\t\t\t\tretry();\n\t\t\t\t\t} else {\n\t\t\t\t\t\treject(`request did not finish in ${defaultOption.for} attempts`);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction retry(): void {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tproxy(++attempts);\n\t\t\t\t}, defaultOption.againAfter);\n\t\t\t}\n\n\t\t\tproxy(++attempts);\n\t\t});\n\t};\n}\n","/**\n * # cortex:std:parameterHandler\n * Builds a query string based on the instance's current appended value.\n *\n * ### Code example\n *\n * ```ts\n * const parameterHandler = new ParameterHandler();\n *\n * parameterHandler.append({ first: 1, second: 2 });\n * // '?first=1&second=2'\n * parameterHandler.getString();\n * ```\n */\n// Reason: Needed to allow generic behavior.\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport class ParameterHandler<T extends Record<string, any> = Record<string, any>> {\n\t/**\n\t * Map of current parameters.\n\t * */\n\tprivate parameters: T = Object.create(null);\n\n\t/** Appends a new object of parameters */\n\tpublic append(item: T): void {\n\t\tObject.assign(this.parameters, item);\n\t}\n\n\t/** Clears the parameter maps. */\n\tpublic clearParameters(): void {\n\t\tthis.parameters = Object.create(null);\n\t}\n\n\t/** Returns a query string based on the values in the map. */\n\tpublic getString(): string {\n\t\tif (Object.keys(this.parameters).length === 0) return '';\n\n\t\tconst entries = Object.entries(this.parameters);\n\n\t\treturn entries.reduce((accumulator, currentValue, currentIndex) => {\n\t\t\tlet combine = accumulator + currentValue.join('=');\n\n\t\t\tif (entries.length - 1 !== currentIndex) {\n\t\t\t\tcombine += '&';\n\t\t\t}\n\n\t\t\treturn combine;\n\t\t}, '?');\n\t}\n}\n","export type RemLike = `${number}rem`;\n\nexport function rem(px: number): RemLike {\n\treturn `${px / 16}rem`;\n}\n\nexport function remToNumber(remValue: RemLike): number {\n\tconst strippedRem = remValue.replace('rem', '');\n\tconst value = parseInt(strippedRem, 10);\n\n\tif (isNaN(value)) {\n\t\t// We could throw here but it's better to be safe I guess ¯\\_(ツ)_/¯\n\t\treturn 16;\n\t}\n\n\treturn value * 16;\n}\n","/**\n * ## cortex:std:safeJsonParse\n * Returns a parsed JSON object or the inserted data.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function safeJsonParse<T>(data: any): T {\n\ttry {\n\t\treturn JSON.parse(data) as T;\n\t} catch (error) {\n\t\treturn data;\n\t}\n}\n","/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { safeJsonParse } from './safe_json_parse';\n\nexport type StorageType = 'session' | 'local';\n\nexport interface StorageSpecification {\n\tprefix?: string;\n\ttype?: StorageType;\n}\n\n// This function is not explicitly exporting a type since it should always\n// be this return value\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function storage<T extends Record<any, any>>(spec: StorageSpecification = {}) {\n\tconst storeType: StorageType = spec.type ?? 'local';\n\tconst store: Storage = storeType === 'local' ? globalThis.localStorage : globalThis.sessionStorage;\n\n\treturn {\n\t\tstoreType,\n\n\t\tget<K extends keyof T>(key: K): T[K] | null {\n\t\t\tconst item = store.getItem(`${spec.prefix ?? ''}${key.toString()}`);\n\t\t\tif (!item) return null;\n\n\t\t\treturn safeJsonParse<T[K]>(item);\n\t\t},\n\n\t\tset<K extends keyof T>(key: K, data: T[K]): void {\n\t\t\tstore.setItem(`${spec.prefix ?? ''}${key.toString()}`, JSON.stringify(data));\n\t\t},\n\n\t\tremoveItem<K extends keyof T>(key: K): void {\n\t\t\tstore.removeItem(`${spec.prefix ?? ''}${key.toString()}`);\n\t\t},\n\t} as const;\n}\n","/**\n * ## @visiba-cortex/std\n *\n * Splits a string into initials.\n *\n * @example\n * ```ts\n * import { createInitials } from '@visiba-cortex/std';\n *\n * createInitials('first'); // 'F'\n * createInitials('first second'); // 'FS'\n * createInitials('first second third'); // 'FT'\n * ```\n */\nexport function createInitials(commonName: string): string;\n/**\n * ## @visiba-cortex/std\n *\n * Splits a string into initials, with a custom separator.\n *\n * @example\n * ```ts\n * import { createInitials } from '@visiba-cortex/std';\n *\n * createInitials('first', '-'); // 'F'\n * createInitials('first second', '-'); // 'F-S'\n * createInitials('first second third', '-'); // 'F-T'\n * ```\n */\nexport function createInitials(commonName: string, separator: string): string;\nexport function createInitials(commonName: string, separator?: string): string {\n\tconst parts = commonName.trim().split(' ');\n\tif (parts.length === 0) {\n\t\treturn '';\n\t}\n\n\tconst firstPart = parts[0].charAt(0).toUpperCase();\n\tif (parts.length === 1) {\n\t\treturn firstPart;\n\t}\n\n\tconst secondPart = (parts[parts.length - 1] ?? '').charAt(0).toUpperCase();\n\n\treturn firstPart + (separator ?? '') + secondPart;\n}\n","export function formatBytes(bytes: number, decimals = 2): string {\n\tif (bytes === 0) return '0 Bytes';\n\n\tconst base = 1024;\n\tconst dm = decimals < 0 ? 0 : decimals;\n\tconst sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n\n\tconst sizeIndex = Math.floor(Math.log(bytes) / Math.log(base));\n\n\treturn (bytes / Math.pow(base, sizeIndex)).toFixed(dm) + ' ' + sizes[sizeIndex];\n}\n","export function isSomeError(value: unknown): value is Error {\n\treturn (\n\t\tvalue instanceof Error ||\n\t\tvalue instanceof DOMException ||\n\t\tvalue instanceof AggregateError ||\n\t\tvalue instanceof EvalError ||\n\t\tvalue instanceof RangeError ||\n\t\tvalue instanceof ReferenceError ||\n\t\tvalue instanceof SyntaxError ||\n\t\tvalue instanceof TypeError ||\n\t\tvalue instanceof URIError\n\t);\n}\n","function _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nexport { _extends as default };","function asyncGeneratorStep(n, t, e, r, o, a, c) {\n try {\n var i = n[a](c),\n u = i.value;\n } catch (n) {\n return void e(n);\n }\n i.done ? t(u) : Promise.resolve(u).then(r, o);\n}\nfunction _asyncToGenerator(n) {\n return function () {\n var t = this,\n e = arguments;\n return new Promise(function (r, o) {\n var a = n.apply(t, e);\n function _next(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n);\n }\n function _throw(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n);\n }\n _next(void 0);\n });\n };\n}\nexport { _asyncToGenerator as default };"],"x_google_ignoreList":[160,161,162,163,164,165,288,304,337,386,418,420,436,437,438,439,440,457,458,508,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,838,839,840,841,842,844,845,846,848,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1873,1894,1895]}